@mychoice/mychoice-sdk-components 1.0.0

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 (285) hide show
  1. package/README.md +11 -0
  2. package/dist/cjs/components/buttons/BattonTab/BattonTab.d.ts +3 -0
  3. package/dist/cjs/components/buttons/BattonTab/BattonTabMobile.d.ts +3 -0
  4. package/dist/cjs/components/buttons/BattonTab/index.d.ts +2 -0
  5. package/dist/cjs/components/buttons/ButtonArrow/ButtonArrow.d.ts +3 -0
  6. package/dist/cjs/components/buttons/ButtonArrow/index.d.ts +1 -0
  7. package/dist/cjs/components/buttons/ButtonBase/ButtonBase.d.ts +3 -0
  8. package/dist/cjs/components/buttons/ButtonBase/index.d.ts +1 -0
  9. package/dist/cjs/components/buttons/ButtonForm/ButtonForm.d.ts +3 -0
  10. package/dist/cjs/components/buttons/ButtonForm/index.d.ts +1 -0
  11. package/dist/cjs/components/buttons/ButtonMenu/ButtonMenu.d.ts +3 -0
  12. package/dist/cjs/components/buttons/ButtonMenu/index.d.ts +1 -0
  13. package/dist/cjs/components/buttons/ButtonTabArrow/ButtonTabArrow.d.ts +3 -0
  14. package/dist/cjs/components/buttons/ButtonTabArrow/index.d.ts +1 -0
  15. package/dist/cjs/components/buttons/index.d.ts +7 -0
  16. package/dist/cjs/components/buttons/interfaces.d.ts +39 -0
  17. package/dist/cjs/components/headers/HeaderDropDown/HeaderDropDown.d.ts +3 -0
  18. package/dist/cjs/components/headers/HeaderDropDown/index.d.ts +1 -0
  19. package/dist/cjs/components/headers/HeaderNavGroup/HeaderNavGroup.d.ts +3 -0
  20. package/dist/cjs/components/headers/HeaderNavGroup/index.d.ts +1 -0
  21. package/dist/cjs/components/headers/index.d.ts +3 -0
  22. package/dist/cjs/components/headers/interfaces.d.ts +12 -0
  23. package/dist/cjs/components/icons/IconChecked.d.ts +2 -0
  24. package/dist/cjs/components/icons/IconDecline.d.ts +3 -0
  25. package/dist/cjs/components/icons/IconDelete.d.ts +3 -0
  26. package/dist/cjs/components/icons/IconSuccess.d.ts +3 -0
  27. package/dist/cjs/components/icons/IconTooltip.d.ts +3 -0
  28. package/dist/cjs/components/icons/arrows/IconArrow.d.ts +3 -0
  29. package/dist/cjs/components/icons/arrows/IconDropdownArrow.d.ts +3 -0
  30. package/dist/cjs/components/icons/arrows/IconTabArrow.d.ts +3 -0
  31. package/dist/cjs/components/icons/arrows/index.d.ts +3 -0
  32. package/dist/cjs/components/icons/index.d.ts +8 -0
  33. package/dist/cjs/components/icons/insurances/car/NavigationCar.d.ts +3 -0
  34. package/dist/cjs/components/icons/insurances/car/index.d.ts +1 -0
  35. package/dist/cjs/components/icons/insurances/home/NavigationAddress.d.ts +3 -0
  36. package/dist/cjs/components/icons/insurances/home/NavigationProperty.d.ts +3 -0
  37. package/dist/cjs/components/icons/insurances/home/index.d.ts +2 -0
  38. package/dist/cjs/components/icons/insurances/index.d.ts +3 -0
  39. package/dist/cjs/components/icons/insurances/shared/NavigationBase.d.ts +3 -0
  40. package/dist/cjs/components/icons/insurances/shared/NavigationDiscount.d.ts +3 -0
  41. package/dist/cjs/components/icons/insurances/shared/NavigationPerson.d.ts +3 -0
  42. package/dist/cjs/components/icons/insurances/shared/NavigationQuotes.d.ts +3 -0
  43. package/dist/cjs/components/icons/insurances/shared/index.d.ts +4 -0
  44. package/dist/cjs/components/icons/interfaces.d.ts +14 -0
  45. package/dist/cjs/components/icons/loaders/IconLoaderPrimary.d.ts +3 -0
  46. package/dist/cjs/components/icons/loaders/IconLoaderSecondary.d.ts +2 -0
  47. package/dist/cjs/components/icons/loaders/IconLoaderVideo.d.ts +5 -0
  48. package/dist/cjs/components/icons/loaders/index.d.ts +2 -0
  49. package/dist/cjs/components/index.d.ts +10 -0
  50. package/dist/cjs/components/inputs/CheckboxForm/CheckboxForm.d.ts +3 -0
  51. package/dist/cjs/components/inputs/CheckboxForm/index.d.ts +1 -0
  52. package/dist/cjs/components/inputs/InputForm/InputForm.d.ts +3 -0
  53. package/dist/cjs/components/inputs/InputForm/index.d.ts +1 -0
  54. package/dist/cjs/components/inputs/InputFormEmail/InputFormEmail.d.ts +3 -0
  55. package/dist/cjs/components/inputs/InputFormEmail/index.d.ts +1 -0
  56. package/dist/cjs/components/inputs/InputFormLicence/InputFormLicence.d.ts +3 -0
  57. package/dist/cjs/components/inputs/InputFormLicence/index.d.ts +1 -0
  58. package/dist/cjs/components/inputs/InputFormPhone/InputFormPhone.d.ts +3 -0
  59. package/dist/cjs/components/inputs/InputFormPhone/index.d.ts +1 -0
  60. package/dist/cjs/components/inputs/index.d.ts +6 -0
  61. package/dist/cjs/components/inputs/interfaces.d.ts +19 -0
  62. package/dist/cjs/components/messages/InfoMessage/InfoMessage.d.ts +3 -0
  63. package/dist/cjs/components/messages/InfoMessage/index.d.ts +1 -0
  64. package/dist/cjs/components/messages/index.d.ts +1 -0
  65. package/dist/cjs/components/messages/interfaces.d.ts +6 -0
  66. package/dist/cjs/components/navigations/HeaderNavLink/HeaderNavLink.d.ts +1 -0
  67. package/dist/cjs/components/navigations/HeaderNavLink/index.d.ts +1 -0
  68. package/dist/cjs/components/navigations/Step/Step.d.ts +3 -0
  69. package/dist/cjs/components/navigations/Step/index.d.ts +1 -0
  70. package/dist/cjs/components/navigations/index.d.ts +3 -0
  71. package/dist/cjs/components/navigations/interfaces.d.ts +25 -0
  72. package/dist/cjs/components/quotes/OfferDetail/OfferDetail.d.ts +3 -0
  73. package/dist/cjs/components/quotes/OfferDetail/OfferDetailTitle.d.ts +3 -0
  74. package/dist/cjs/components/quotes/OfferDetail/OperationHoursInfo.d.ts +3 -0
  75. package/dist/cjs/components/quotes/OfferDetail/index.d.ts +3 -0
  76. package/dist/cjs/components/quotes/OfferHeader/OfferHeader.d.ts +3 -0
  77. package/dist/cjs/components/quotes/OfferHeader/index.d.ts +1 -0
  78. package/dist/cjs/components/quotes/OfferPrice/OfferPrice.d.ts +3 -0
  79. package/dist/cjs/components/quotes/OfferPrice/index.d.ts +1 -0
  80. package/dist/cjs/components/quotes/QuoteEdit/QuoteEdit.d.ts +3 -0
  81. package/dist/cjs/components/quotes/QuoteEdit/index.d.ts +1 -0
  82. package/dist/cjs/components/quotes/index.d.ts +5 -0
  83. package/dist/cjs/components/quotes/interfaces.d.ts +40 -0
  84. package/dist/cjs/components/selects/SelectForm/SelectForm.d.ts +3 -0
  85. package/dist/cjs/components/selects/SelectForm/index.d.ts +2 -0
  86. package/dist/cjs/components/selects/index.d.ts +1 -0
  87. package/dist/cjs/components/selects/interfaces.d.ts +9 -0
  88. package/dist/cjs/components/titles/TitleForm/TitleForm.d.ts +3 -0
  89. package/dist/cjs/components/titles/TitleForm/index.d.ts +1 -0
  90. package/dist/cjs/components/titles/index.d.ts +2 -0
  91. package/dist/cjs/components/titles/interfaces.d.ts +6 -0
  92. package/dist/cjs/components/tooltips/SdkTooltip/SdkTooltip.d.ts +3 -0
  93. package/dist/cjs/components/tooltips/SdkTooltip/index.d.ts +1 -0
  94. package/dist/cjs/components/tooltips/TooltipForm/TooltipForm.d.ts +3 -0
  95. package/dist/cjs/components/tooltips/TooltipForm/index.d.ts +1 -0
  96. package/dist/cjs/components/tooltips/index.d.ts +3 -0
  97. package/dist/cjs/components/tooltips/interfaces.d.ts +4 -0
  98. package/dist/cjs/constants/api.d.ts +46 -0
  99. package/dist/cjs/constants/application.d.ts +12 -0
  100. package/dist/cjs/constants/device.d.ts +20 -0
  101. package/dist/cjs/constants/forms/index.d.ts +2 -0
  102. package/dist/cjs/constants/forms/licence.d.ts +5 -0
  103. package/dist/cjs/constants/forms/user.d.ts +13 -0
  104. package/dist/cjs/constants/index.d.ts +7 -0
  105. package/dist/cjs/constants/insurances/car/index.d.ts +1 -0
  106. package/dist/cjs/constants/insurances/car/pages/driver.d.ts +46 -0
  107. package/dist/cjs/constants/insurances/car/pages/index.d.ts +3 -0
  108. package/dist/cjs/constants/insurances/car/pages/quote.d.ts +1 -0
  109. package/dist/cjs/constants/insurances/car/pages/vehicle.d.ts +54 -0
  110. package/dist/cjs/constants/insurances/home/index.d.ts +1 -0
  111. package/dist/cjs/constants/insurances/home/pages/address.d.ts +13 -0
  112. package/dist/cjs/constants/insurances/home/pages/applicant.d.ts +16 -0
  113. package/dist/cjs/constants/insurances/home/pages/index.d.ts +3 -0
  114. package/dist/cjs/constants/insurances/home/pages/property.d.ts +34 -0
  115. package/dist/cjs/constants/insurances/index.d.ts +3 -0
  116. package/dist/cjs/constants/insurances/shared/index.d.ts +1 -0
  117. package/dist/cjs/constants/insurances/shared/options.d.ts +8 -0
  118. package/dist/cjs/constants/modals.d.ts +6 -0
  119. package/dist/cjs/constants/ui/buttons.d.ts +9 -0
  120. package/dist/cjs/constants/ui/colors.d.ts +15 -0
  121. package/dist/cjs/constants/ui/index.d.ts +6 -0
  122. package/dist/cjs/constants/ui/inputs.d.ts +12 -0
  123. package/dist/cjs/constants/ui/main.d.ts +5 -0
  124. package/dist/cjs/constants/ui/quotes.d.ts +4 -0
  125. package/dist/cjs/constants/ui/sizes.d.ts +22 -0
  126. package/dist/cjs/helpers/date-fns.d.ts +26 -0
  127. package/dist/cjs/helpers/index.d.ts +3 -0
  128. package/dist/cjs/helpers/lodash.d.ts +6 -0
  129. package/dist/cjs/helpers/main.d.ts +5 -0
  130. package/dist/cjs/hoox/index.d.ts +1 -0
  131. package/dist/cjs/hoox/useEffectOnce/index.d.ts +1 -0
  132. package/dist/cjs/hoox/useEffectOnce/useEffectOnce.d.ts +1 -0
  133. package/dist/cjs/index.d.ts +5 -0
  134. package/dist/cjs/index.js +1590 -0
  135. package/dist/cjs/index.js.map +1 -0
  136. package/dist/cjs/interfaces/general.d.ts +16 -0
  137. package/dist/cjs/interfaces/index.d.ts +2 -0
  138. package/dist/cjs/interfaces/inputs.d.ts +37 -0
  139. package/dist/cjs/utils/InputValueReducer/actions.d.ts +4 -0
  140. package/dist/cjs/utils/InputValueReducer/index.d.ts +3 -0
  141. package/dist/cjs/utils/InputValueReducer/inputValueReducer.d.ts +3 -0
  142. package/dist/cjs/utils/InputValueReducer/interfaces.d.ts +12 -0
  143. package/dist/esm/components/buttons/BattonTab/BattonTab.d.ts +3 -0
  144. package/dist/esm/components/buttons/BattonTab/BattonTabMobile.d.ts +3 -0
  145. package/dist/esm/components/buttons/BattonTab/index.d.ts +2 -0
  146. package/dist/esm/components/buttons/ButtonArrow/ButtonArrow.d.ts +3 -0
  147. package/dist/esm/components/buttons/ButtonArrow/index.d.ts +1 -0
  148. package/dist/esm/components/buttons/ButtonBase/ButtonBase.d.ts +3 -0
  149. package/dist/esm/components/buttons/ButtonBase/index.d.ts +1 -0
  150. package/dist/esm/components/buttons/ButtonForm/ButtonForm.d.ts +3 -0
  151. package/dist/esm/components/buttons/ButtonForm/index.d.ts +1 -0
  152. package/dist/esm/components/buttons/ButtonMenu/ButtonMenu.d.ts +3 -0
  153. package/dist/esm/components/buttons/ButtonMenu/index.d.ts +1 -0
  154. package/dist/esm/components/buttons/ButtonTabArrow/ButtonTabArrow.d.ts +3 -0
  155. package/dist/esm/components/buttons/ButtonTabArrow/index.d.ts +1 -0
  156. package/dist/esm/components/buttons/index.d.ts +7 -0
  157. package/dist/esm/components/buttons/interfaces.d.ts +39 -0
  158. package/dist/esm/components/headers/HeaderDropDown/HeaderDropDown.d.ts +3 -0
  159. package/dist/esm/components/headers/HeaderDropDown/index.d.ts +1 -0
  160. package/dist/esm/components/headers/HeaderNavGroup/HeaderNavGroup.d.ts +3 -0
  161. package/dist/esm/components/headers/HeaderNavGroup/index.d.ts +1 -0
  162. package/dist/esm/components/headers/index.d.ts +3 -0
  163. package/dist/esm/components/headers/interfaces.d.ts +12 -0
  164. package/dist/esm/components/icons/IconChecked.d.ts +2 -0
  165. package/dist/esm/components/icons/IconDecline.d.ts +3 -0
  166. package/dist/esm/components/icons/IconDelete.d.ts +3 -0
  167. package/dist/esm/components/icons/IconSuccess.d.ts +3 -0
  168. package/dist/esm/components/icons/IconTooltip.d.ts +3 -0
  169. package/dist/esm/components/icons/arrows/IconArrow.d.ts +3 -0
  170. package/dist/esm/components/icons/arrows/IconDropdownArrow.d.ts +3 -0
  171. package/dist/esm/components/icons/arrows/IconTabArrow.d.ts +3 -0
  172. package/dist/esm/components/icons/arrows/index.d.ts +3 -0
  173. package/dist/esm/components/icons/index.d.ts +8 -0
  174. package/dist/esm/components/icons/insurances/car/NavigationCar.d.ts +3 -0
  175. package/dist/esm/components/icons/insurances/car/index.d.ts +1 -0
  176. package/dist/esm/components/icons/insurances/home/NavigationAddress.d.ts +3 -0
  177. package/dist/esm/components/icons/insurances/home/NavigationProperty.d.ts +3 -0
  178. package/dist/esm/components/icons/insurances/home/index.d.ts +2 -0
  179. package/dist/esm/components/icons/insurances/index.d.ts +3 -0
  180. package/dist/esm/components/icons/insurances/shared/NavigationBase.d.ts +3 -0
  181. package/dist/esm/components/icons/insurances/shared/NavigationDiscount.d.ts +3 -0
  182. package/dist/esm/components/icons/insurances/shared/NavigationPerson.d.ts +3 -0
  183. package/dist/esm/components/icons/insurances/shared/NavigationQuotes.d.ts +3 -0
  184. package/dist/esm/components/icons/insurances/shared/index.d.ts +4 -0
  185. package/dist/esm/components/icons/interfaces.d.ts +14 -0
  186. package/dist/esm/components/icons/loaders/IconLoaderPrimary.d.ts +3 -0
  187. package/dist/esm/components/icons/loaders/IconLoaderSecondary.d.ts +2 -0
  188. package/dist/esm/components/icons/loaders/IconLoaderVideo.d.ts +5 -0
  189. package/dist/esm/components/icons/loaders/index.d.ts +2 -0
  190. package/dist/esm/components/index.d.ts +10 -0
  191. package/dist/esm/components/inputs/CheckboxForm/CheckboxForm.d.ts +3 -0
  192. package/dist/esm/components/inputs/CheckboxForm/index.d.ts +1 -0
  193. package/dist/esm/components/inputs/InputForm/InputForm.d.ts +3 -0
  194. package/dist/esm/components/inputs/InputForm/index.d.ts +1 -0
  195. package/dist/esm/components/inputs/InputFormEmail/InputFormEmail.d.ts +3 -0
  196. package/dist/esm/components/inputs/InputFormEmail/index.d.ts +1 -0
  197. package/dist/esm/components/inputs/InputFormLicence/InputFormLicence.d.ts +3 -0
  198. package/dist/esm/components/inputs/InputFormLicence/index.d.ts +1 -0
  199. package/dist/esm/components/inputs/InputFormPhone/InputFormPhone.d.ts +3 -0
  200. package/dist/esm/components/inputs/InputFormPhone/index.d.ts +1 -0
  201. package/dist/esm/components/inputs/index.d.ts +6 -0
  202. package/dist/esm/components/inputs/interfaces.d.ts +19 -0
  203. package/dist/esm/components/messages/InfoMessage/InfoMessage.d.ts +3 -0
  204. package/dist/esm/components/messages/InfoMessage/index.d.ts +1 -0
  205. package/dist/esm/components/messages/index.d.ts +1 -0
  206. package/dist/esm/components/messages/interfaces.d.ts +6 -0
  207. package/dist/esm/components/navigations/HeaderNavLink/HeaderNavLink.d.ts +1 -0
  208. package/dist/esm/components/navigations/HeaderNavLink/index.d.ts +1 -0
  209. package/dist/esm/components/navigations/Step/Step.d.ts +3 -0
  210. package/dist/esm/components/navigations/Step/index.d.ts +1 -0
  211. package/dist/esm/components/navigations/index.d.ts +3 -0
  212. package/dist/esm/components/navigations/interfaces.d.ts +25 -0
  213. package/dist/esm/components/quotes/OfferDetail/OfferDetail.d.ts +3 -0
  214. package/dist/esm/components/quotes/OfferDetail/OfferDetailTitle.d.ts +3 -0
  215. package/dist/esm/components/quotes/OfferDetail/OperationHoursInfo.d.ts +3 -0
  216. package/dist/esm/components/quotes/OfferDetail/index.d.ts +3 -0
  217. package/dist/esm/components/quotes/OfferHeader/OfferHeader.d.ts +3 -0
  218. package/dist/esm/components/quotes/OfferHeader/index.d.ts +1 -0
  219. package/dist/esm/components/quotes/OfferPrice/OfferPrice.d.ts +3 -0
  220. package/dist/esm/components/quotes/OfferPrice/index.d.ts +1 -0
  221. package/dist/esm/components/quotes/QuoteEdit/QuoteEdit.d.ts +3 -0
  222. package/dist/esm/components/quotes/QuoteEdit/index.d.ts +1 -0
  223. package/dist/esm/components/quotes/index.d.ts +5 -0
  224. package/dist/esm/components/quotes/interfaces.d.ts +40 -0
  225. package/dist/esm/components/selects/SelectForm/SelectForm.d.ts +3 -0
  226. package/dist/esm/components/selects/SelectForm/index.d.ts +2 -0
  227. package/dist/esm/components/selects/index.d.ts +1 -0
  228. package/dist/esm/components/selects/interfaces.d.ts +9 -0
  229. package/dist/esm/components/titles/TitleForm/TitleForm.d.ts +3 -0
  230. package/dist/esm/components/titles/TitleForm/index.d.ts +1 -0
  231. package/dist/esm/components/titles/index.d.ts +2 -0
  232. package/dist/esm/components/titles/interfaces.d.ts +6 -0
  233. package/dist/esm/components/tooltips/SdkTooltip/SdkTooltip.d.ts +3 -0
  234. package/dist/esm/components/tooltips/SdkTooltip/index.d.ts +1 -0
  235. package/dist/esm/components/tooltips/TooltipForm/TooltipForm.d.ts +3 -0
  236. package/dist/esm/components/tooltips/TooltipForm/index.d.ts +1 -0
  237. package/dist/esm/components/tooltips/index.d.ts +3 -0
  238. package/dist/esm/components/tooltips/interfaces.d.ts +4 -0
  239. package/dist/esm/constants/api.d.ts +46 -0
  240. package/dist/esm/constants/application.d.ts +12 -0
  241. package/dist/esm/constants/device.d.ts +20 -0
  242. package/dist/esm/constants/forms/index.d.ts +2 -0
  243. package/dist/esm/constants/forms/licence.d.ts +5 -0
  244. package/dist/esm/constants/forms/user.d.ts +13 -0
  245. package/dist/esm/constants/index.d.ts +7 -0
  246. package/dist/esm/constants/insurances/car/index.d.ts +1 -0
  247. package/dist/esm/constants/insurances/car/pages/driver.d.ts +46 -0
  248. package/dist/esm/constants/insurances/car/pages/index.d.ts +3 -0
  249. package/dist/esm/constants/insurances/car/pages/quote.d.ts +1 -0
  250. package/dist/esm/constants/insurances/car/pages/vehicle.d.ts +54 -0
  251. package/dist/esm/constants/insurances/home/index.d.ts +1 -0
  252. package/dist/esm/constants/insurances/home/pages/address.d.ts +13 -0
  253. package/dist/esm/constants/insurances/home/pages/applicant.d.ts +16 -0
  254. package/dist/esm/constants/insurances/home/pages/index.d.ts +3 -0
  255. package/dist/esm/constants/insurances/home/pages/property.d.ts +34 -0
  256. package/dist/esm/constants/insurances/index.d.ts +3 -0
  257. package/dist/esm/constants/insurances/shared/index.d.ts +1 -0
  258. package/dist/esm/constants/insurances/shared/options.d.ts +8 -0
  259. package/dist/esm/constants/modals.d.ts +6 -0
  260. package/dist/esm/constants/ui/buttons.d.ts +9 -0
  261. package/dist/esm/constants/ui/colors.d.ts +15 -0
  262. package/dist/esm/constants/ui/index.d.ts +6 -0
  263. package/dist/esm/constants/ui/inputs.d.ts +12 -0
  264. package/dist/esm/constants/ui/main.d.ts +5 -0
  265. package/dist/esm/constants/ui/quotes.d.ts +4 -0
  266. package/dist/esm/constants/ui/sizes.d.ts +22 -0
  267. package/dist/esm/helpers/date-fns.d.ts +26 -0
  268. package/dist/esm/helpers/index.d.ts +3 -0
  269. package/dist/esm/helpers/lodash.d.ts +6 -0
  270. package/dist/esm/helpers/main.d.ts +5 -0
  271. package/dist/esm/hoox/index.d.ts +1 -0
  272. package/dist/esm/hoox/useEffectOnce/index.d.ts +1 -0
  273. package/dist/esm/hoox/useEffectOnce/useEffectOnce.d.ts +1 -0
  274. package/dist/esm/index.d.ts +5 -0
  275. package/dist/esm/index.js +1456 -0
  276. package/dist/esm/index.js.map +1 -0
  277. package/dist/esm/interfaces/general.d.ts +16 -0
  278. package/dist/esm/interfaces/index.d.ts +2 -0
  279. package/dist/esm/interfaces/inputs.d.ts +37 -0
  280. package/dist/esm/utils/InputValueReducer/actions.d.ts +4 -0
  281. package/dist/esm/utils/InputValueReducer/index.d.ts +3 -0
  282. package/dist/esm/utils/InputValueReducer/inputValueReducer.d.ts +3 -0
  283. package/dist/esm/utils/InputValueReducer/interfaces.d.ts +12 -0
  284. package/dist/index.d.ts +716 -0
  285. package/package.json +38 -0
@@ -0,0 +1,1456 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import React, { useState, useRef, useEffect, useReducer, useCallback, memo } from 'react';
3
+ import { isEqual, range, cloneDeep } from 'lodash';
4
+ import { format, parse, isValid, getDaysInMonth, addYears, subYears, addMonths, subMonths, addDays, subDays, compareAsc, startOfMonth, endOfMonth, startOfYear, endOfYear, isWithinInterval, isBefore, isAfter, eachDayOfInterval, eachMonthOfInterval, eachYearOfInterval, compareDesc, differenceInYears, differenceInMonths, differenceInHours } from 'date-fns';
5
+ import ReactPhoneInput from 'react-phone-input-2';
6
+ import { NavLink } from 'react-router-dom';
7
+ export { NavLink as HeaderNavLink } from 'react-router-dom';
8
+ import ReactTooltip from 'rc-tooltip';
9
+
10
+ const IconLoaderPrimary = (props) => {
11
+ const { width, height, className } = props;
12
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", style: { width, height }, viewBox: "0 0 44 44", className: `icon-svg ${className}`, children: jsxs("g", { fill: "none", fillRule: "evenodd", strokeWidth: "2", children: [jsxs("circle", { cx: "22", cy: "22", r: "1", children: [jsx("animate", { attributeName: "r", begin: "0s", dur: "1.8s", values: "1; 20", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.165, 0.84, 0.44, 1", repeatCount: "indefinite" }), jsx("animate", { attributeName: "stroke-opacity", begin: "0s", dur: "1.8s", values: "1; 0", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.3, 0.61, 0.355, 1", repeatCount: "indefinite" })] }), jsxs("circle", { cx: "22", cy: "22", r: "1", children: [jsx("animate", { attributeName: "r", begin: "-0.9s", dur: "1.8s", values: "1; 20", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.165, 0.84, 0.44, 1", repeatCount: "indefinite" }), jsx("animate", { attributeName: "stroke-opacity", begin: "-0.9s", dur: "1.8s", values: "1; 0", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.3, 0.61, 0.355, 1", repeatCount: "indefinite" })] })] }) }));
13
+ };
14
+ IconLoaderPrimary.defaultProps = {
15
+ width: '2.75rem',
16
+ height: '2.75rem',
17
+ className: 'icon-loader-primary',
18
+ };
19
+
20
+ const IconLoaderSecondary = () => (jsxs("div", { className: "loading-secondary", children: [jsx("span", {}), jsx("span", {}), jsx("span", {})] }));
21
+
22
+ const IconDropdownArrow = (props) => {
23
+ const { className, color, colorType } = props;
24
+ return (jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 20.8 11.8", children: jsx("polygon", { fill: colorType || color || '#FFFFFF', points: "19.4,0 10.4,9 1.4,0 0,1.4 9,10.4 10.4,11.8 11.8,10.4 20.8,1.4 " }) }));
25
+ };
26
+ IconDropdownArrow.defaultProps = {
27
+ className: '',
28
+ };
29
+
30
+ const numberWithCommas$1 = (value) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
31
+ const yearMessage = 'We’re sorry. We cannot currently provide Quotes online '
32
+ + 'for vehicles that are 20 years or older. Please call our broker partner at '
33
+ + '1-0000000000 to get a quote over the phone.';
34
+ const dailyKilometresRange = [
35
+ 1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200,
36
+ ];
37
+ const dailyKilometresRangeForBusiness = [
38
+ 1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200, 250, 300, 350, 400,
39
+ ];
40
+ const yearlyKilometresRange = [
41
+ 500, 1000, 2000, 3000, 5000, 8000, 10000, 15000, 20000, 30000, 50000, 60000, 80000, 100000,
42
+ ];
43
+ const carCondition = [{ value: 'N', name: 'New' }, { value: 'U', name: 'Used' }];
44
+ const carStatus = [{ value: true, name: 'Leased' }, { value: false, name: 'Owned' }];
45
+ const carWinterTiresCheck = [{ value: true, name: 'Yes' }, { value: false, name: 'No' }];
46
+ const carKeepPlace = [
47
+ { name: 'Private Garage', value: 'garage' },
48
+ { name: 'Private Driveway', value: 'driveway' },
49
+ { name: 'Underground Parking', value: 'underground' },
50
+ { name: 'Parking Lot', value: 'lot' },
51
+ { name: 'Carport', value: 'carport' },
52
+ { name: 'Indoor Storage', value: 'storage' },
53
+ { name: 'Street', value: 'street' },
54
+ { name: 'Other', value: 'other' },
55
+ ];
56
+ const comprehensiveCoverage = [
57
+ { value: true, name: 'Yes' },
58
+ { value: false, name: 'No' },
59
+ ];
60
+ const collisionCoverage = [
61
+ { value: true, name: 'Yes' },
62
+ { value: false, name: 'No' },
63
+ ];
64
+ const carUsagePurpose = [{ value: 'personal', name: 'Personal' }, { value: 'business', name: 'Business' }];
65
+ const firstDriveDistanceList = dailyKilometresRange.map((item) => {
66
+ if (item === 1) {
67
+ return { value: `${item}`, name: `${item}KM or Less` };
68
+ }
69
+ return { value: `${item}`, name: `${numberWithCommas$1(item)}KM` };
70
+ });
71
+ const dailyDriveBusinessDistanceList = dailyKilometresRangeForBusiness.map((item) => {
72
+ if (item === 1) {
73
+ return { value: `${item}`, name: `${item}KM or Less` };
74
+ }
75
+ return { value: `${item}`, name: `${item}KM` };
76
+ });
77
+ const yearlyDriveDistanceList = yearlyKilometresRange.map((item) => ({ value: `${item}`, name: `${numberWithCommas$1(item)}KM` }));
78
+ var VehicleConditionTypes;
79
+ (function (VehicleConditionTypes) {
80
+ VehicleConditionTypes["New"] = "N";
81
+ VehicleConditionTypes["Used"] = "U";
82
+ })(VehicleConditionTypes || (VehicleConditionTypes = {}));
83
+ var VehiclePrimaryUseTypes;
84
+ (function (VehiclePrimaryUseTypes) {
85
+ VehiclePrimaryUseTypes["Personal"] = "personal";
86
+ VehiclePrimaryUseTypes["Business"] = "business";
87
+ })(VehiclePrimaryUseTypes || (VehiclePrimaryUseTypes = {}));
88
+ var CoverageTypes;
89
+ (function (CoverageTypes) {
90
+ CoverageTypes["Comprehensive"] = "comprehensive";
91
+ CoverageTypes["Collision"] = "collision";
92
+ CoverageTypes["Liability"] = "liability";
93
+ })(CoverageTypes || (CoverageTypes = {}));
94
+
95
+ var DriverLicenceTypes;
96
+ (function (DriverLicenceTypes) {
97
+ DriverLicenceTypes["G1"] = "g1";
98
+ DriverLicenceTypes["G2"] = "g2";
99
+ DriverLicenceTypes["G"] = "g";
100
+ })(DriverLicenceTypes || (DriverLicenceTypes = {}));
101
+
102
+ var GenderTypes;
103
+ (function (GenderTypes) {
104
+ GenderTypes["Male"] = "M";
105
+ GenderTypes["Female"] = "F";
106
+ GenderTypes["Other"] = "Other";
107
+ })(GenderTypes || (GenderTypes = {}));
108
+ var OccupationTypes;
109
+ (function (OccupationTypes) {
110
+ OccupationTypes[OccupationTypes["Employed"] = 800] = "Employed";
111
+ OccupationTypes[OccupationTypes["Unemployed"] = 998] = "Unemployed";
112
+ })(OccupationTypes || (OccupationTypes = {}));
113
+ var DriverPriorityTypes;
114
+ (function (DriverPriorityTypes) {
115
+ DriverPriorityTypes["Prn"] = "Prn";
116
+ DriverPriorityTypes["Occ"] = "Occ";
117
+ })(DriverPriorityTypes || (DriverPriorityTypes = {}));
118
+
119
+ const maritalStatusOptions = [{ name: 'Single', value: 'S' }, { name: 'Married/Common Law', value: 'M' }];
120
+ const occupationOptions = [{ name: 'Employed', value: 998 }, { name: 'Unemployed', value: 800 }];
121
+ const genderOptions = [
122
+ { value: GenderTypes.Male, name: 'Male' },
123
+ { value: GenderTypes.Female, name: 'Female' },
124
+ { value: GenderTypes.Other, name: 'Other' },
125
+ ];
126
+ const applicantRelationshipOptions = [
127
+ { name: 'Spouse', value: 'Spouse' },
128
+ { name: 'Co-habitant', value: 'Co-habitant' },
129
+ { name: 'Child', value: 'Child' },
130
+ { name: 'Parent', value: 'Parent' },
131
+ { name: 'Sibling', value: 'Sibling' },
132
+ { name: 'Relative', value: 'Relative' },
133
+ { name: 'Employee', value: 'Employee' },
134
+ { name: 'Insured', value: 'Insured' },
135
+ { name: 'Lessee', value: 'Lessee' },
136
+ { name: 'Third Party', value: 'Third Party' },
137
+ { name: 'Other', value: 'Other' },
138
+ ];
139
+ const insuranceCancellationReasonOptions = [
140
+ { name: 'Cancelled for non-payment', value: 'NonPay' },
141
+ { name: 'Cancelled for other reason', value: 'OtherLapse' },
142
+ { name: 'Driving without insurance', value: 'DWOI' },
143
+ { name: 'No car/no insurance needed', value: 'NotReqrd' },
144
+ { name: 'Cancelled for material misrepresentation', value: 'MatMisrep' },
145
+ ];
146
+ const licenceSuspensionsReasonOptions = [
147
+ { name: 'Alcohol related licence suspension', value: 'Alcohol' },
148
+ { name: 'Criminal related (Non-Alcohol) Licence Suspension', value: 'Crim' },
149
+ { name: 'Too many convictions', value: 'Points' },
150
+ { name: 'Suspension due to non payment of fines', value: 'Fine' },
151
+ { name: 'Other - Administrative', value: 'OtherSusp' },
152
+ { name: 'Other - Non-administrative', value: 'OtherNonAdmin' },
153
+ ];
154
+ const coverageOptions = [
155
+ { name: 'No Coverage', value: 0 },
156
+ { name: '$500 Deductible', value: 500 },
157
+ { name: '$1,000 Deductible', value: 1000 },
158
+ { name: '$1,500 Deductible', value: 1500 },
159
+ ];
160
+ const liabilityOptions = [
161
+ { name: '$1,000,000', value: 1000000 },
162
+ { name: '$2,000,000', value: 2000000 },
163
+ ];
164
+ const trafficTicketsGroupOptions = [
165
+ {
166
+ label: 'Common',
167
+ options: [
168
+ { value: 'SP', name: 'Speeding' },
169
+ { value: 'SS', name: 'Stop sign' },
170
+ { value: 'TSL', name: 'Traffic light' },
171
+ { value: 'CPV', name: 'Prohibited use of hand-held device' },
172
+ { value: 'IT', name: 'Improper turn' },
173
+ ],
174
+ },
175
+ {
176
+ label: 'Minor',
177
+ options: [
178
+ { value: 'DB', name: 'Defective brakes' },
179
+ { value: 'LIC', name: 'Drivers licence violations' },
180
+ { value: 'FCIC', name: 'Failure to carry or have insurance card' },
181
+ { value: 'FPEI', name: 'Failure to produce evidence of insurance' },
182
+ { value: 'FTS', name: 'Failing to signal' },
183
+ { value: 'SB', name: 'Failure to use seatbelts' },
184
+ { value: 'FTY', name: 'Failing to yield' },
185
+ { value: 'PX', name: 'Failing to yield to pedestrian' },
186
+ { value: 'FTC', name: 'Following too closely' },
187
+ { value: 'HL', name: 'Headlight offenses' },
188
+ { value: 'ILC', name: 'Improper lane change' },
189
+ { value: 'IP', name: 'Improper passing' },
190
+ { value: 'IT', name: 'Improper turn' },
191
+ { value: 'DH', name: 'Improper use of divided highway' },
192
+ { value: 'MINOR', name: 'Other minor conviction (not specified)' },
193
+ { value: 'OT', name: 'Obstructing traffic' },
194
+ { value: 'CPV', name: 'Prohibited use of hand-held device' },
195
+ { value: 'SP', name: 'Speeding' },
196
+ { value: 'SS', name: 'Stop sign' },
197
+ { value: 'TSL', name: 'Traffic light' },
198
+ { value: 'UM', name: 'Unsafe move' },
199
+ { value: 'UV', name: 'Unsafe vehicle' },
200
+ { value: 'OW', name: 'Wrong way on one way' },
201
+ { value: 'DRD', name: 'Distracted driving' },
202
+ ],
203
+ },
204
+ {
205
+ label: 'Major',
206
+ options: [
207
+ { value: 'FDH', name: 'Failure to report damage to highway property' },
208
+ { value: 'FRA', name: 'Failure to report accident' },
209
+ { value: 'PSB', name: 'Improper passing of a school bus' },
210
+ { value: 'PSG', name: 'Improper passing/speeding in a school or playground zone' },
211
+ { value: 'OMVNI', name: 'Operator motor vehicle - no insurance' },
212
+ { value: 'MAJOR', name: 'Other major conviction (not specified)' },
213
+ { value: 'STN', name: 'Stunting' },
214
+ ],
215
+ },
216
+ {
217
+ label: 'Serious',
218
+ options: [
219
+ { value: 'ALC', name: 'Class G1/G2 driver with alcohol in blood' },
220
+ { value: 'RB', name: 'Class G1/G2 refuse breath sample' },
221
+ { value: 'CN', name: 'Criminal negligence' },
222
+ { value: 'DD', name: 'Dangerous driving' },
223
+ { value: 'DUS', name: 'Driving while licence under suspension' },
224
+ { value: 'FTR', name: 'Failure to stop/remain at the scene of an accident' },
225
+ { value: 'IMP', name: 'Impaired driving' },
226
+ { value: 'MM', name: 'Manslaughter committed in the operation or use of a motor vehicle' },
227
+ { value: 'SECTD', name: 'Other serious conviction (not specified)' },
228
+ { value: 'CD', name: 'Careless driving, undue care or attention' },
229
+ { value: 'RAC', name: 'Racing' },
230
+ ],
231
+ },
232
+ ];
233
+ var DriverListTypes;
234
+ (function (DriverListTypes) {
235
+ DriverListTypes["InsuranceCancellation"] = "insuranceCancellationList";
236
+ DriverListTypes["LicenceSuspension"] = "licenceSuspensionList";
237
+ DriverListTypes["Accident"] = "accidentList";
238
+ DriverListTypes["Ticket"] = "ticketList";
239
+ })(DriverListTypes || (DriverListTypes = {}));
240
+
241
+ const defaultBrokerPhone = '1-855-843-1570';
242
+
243
+ var HomeOwnerTypes;
244
+ (function (HomeOwnerTypes) {
245
+ HomeOwnerTypes["Home"] = "home";
246
+ HomeOwnerTypes["Condo"] = "condo";
247
+ HomeOwnerTypes["Tenant"] = "tenant";
248
+ })(HomeOwnerTypes || (HomeOwnerTypes = {}));
249
+ const homeOwnerTypeOptions = [
250
+ { value: '', name: '-' },
251
+ { value: HomeOwnerTypes.Home, name: 'Homeowner' },
252
+ { value: HomeOwnerTypes.Condo, name: 'Condo Owner' },
253
+ { value: HomeOwnerTypes.Tenant, name: 'Tenant' },
254
+ ];
255
+ //
256
+ const comprehensiveCoverages = [
257
+ { value: true, name: 'Yes' },
258
+ { value: false, name: 'No' },
259
+ ];
260
+ // export const collisionCoverage = [
261
+ // { value: true, name: 'Yes' },
262
+ // { value: false, name: 'No' },
263
+ // ];
264
+ //
265
+ // export enum CoverageTypes {
266
+ // Comprehensive = 'comprehensive',
267
+ // Collision = 'collision',
268
+ // Liability = 'liability',
269
+ // }
270
+
271
+ const residentsOptions = [
272
+ { value: '', name: '-' },
273
+ { value: '1', name: 'You and your family' },
274
+ { value: '2', name: 'Your family and another family' },
275
+ { value: '3', name: 'Your family and two other families' },
276
+ { value: '0', name: 'It is rented out/Used for commercial purposes' },
277
+ ];
278
+ const insuredYearsOptions = [
279
+ { value: '', name: '-' },
280
+ { value: '0', name: 'Less than 1 year' },
281
+ { value: '1', name: '1 year' },
282
+ { value: '2', name: '2 years' },
283
+ { value: '3', name: '3 years' },
284
+ { value: '4', name: '4 years' },
285
+ { value: '5', name: '5 years' },
286
+ { value: '6', name: '6 years' },
287
+ { value: '7', name: '7 years' },
288
+ { value: '8', name: '8 years' },
289
+ { value: '9', name: '9 years' },
290
+ { value: '10', name: '10 years' },
291
+ { value: '11', name: 'More than 10 years' },
292
+ ];
293
+ const claimTypeOptions = [
294
+ { value: '', name: '-' },
295
+ { value: 'personal', name: 'Personal Property Claim' },
296
+ { value: 'sewer', name: 'Sewer Backup Claim' },
297
+ { value: 'liability', name: 'Liability Claim' },
298
+ { value: 'fire', name: 'Fire Claim' },
299
+ { value: 'windhail', name: 'Wind/Hail Claim' },
300
+ { value: 'waterdamage', name: 'Water Damage Claim' },
301
+ { value: 'other', name: 'Other Type of Claim' },
302
+ ];
303
+ var ApplicantListTypes;
304
+ (function (ApplicantListTypes) {
305
+ ApplicantListTypes["InsuranceCancellation"] = "insuranceCancellationList";
306
+ ApplicantListTypes["InsuranceClaim"] = "InsuranceClaimList";
307
+ })(ApplicantListTypes || (ApplicantListTypes = {}));
308
+
309
+ var DwellingInfoTypes;
310
+ (function (DwellingInfoTypes) {
311
+ DwellingInfoTypes["BurglarAlarm"] = "burglarAlarm";
312
+ DwellingInfoTypes["FireAlarm"] = "fireAlarm";
313
+ DwellingInfoTypes["Sprinkler"] = "sprinkler";
314
+ DwellingInfoTypes["Deadbolt"] = "deadbolt";
315
+ })(DwellingInfoTypes || (DwellingInfoTypes = {}));
316
+ const constructionTypeOptions = [
317
+ { value: '', name: '-' },
318
+ { value: 'wood', name: 'Wood' },
319
+ { value: 'mansory', name: 'Mansory' },
320
+ { value: 'brick', name: 'Brick' },
321
+ { value: 'fireresist', name: 'Fire Resist' },
322
+ { value: 'other', name: 'Other' },
323
+ ];
324
+ const exteriorFinishOptions = [
325
+ { value: '', name: '-' },
326
+ { value: 'brick', name: 'Brick' },
327
+ { value: 'brickveneer', name: 'Brick Veneer' },
328
+ { value: 'masonryveneer', name: 'Masonry Veneer' },
329
+ { value: 'concrete', name: 'Concrete' },
330
+ { value: 'logs', name: 'Logs' },
331
+ { value: 'stone', name: 'Stone' },
332
+ { value: 'stoneveneer', name: 'Stone Veneer' },
333
+ { value: 'vinyl', name: 'Vinyl' },
334
+ { value: 'wood', name: 'Wood' },
335
+ ];
336
+ const garageTypeOptions = [
337
+ { value: '', name: '-' },
338
+ { value: 'attached', name: 'Attached' },
339
+ { value: 'builtin', name: 'Builtin' },
340
+ { value: 'basement', name: 'Basement' },
341
+ { value: 'carport', name: 'Carport' },
342
+ { value: 'none', name: 'None' },
343
+ ];
344
+ const buildingStructureOptions = [
345
+ { value: '', name: '-' },
346
+ { value: 'detached', name: 'Detached' },
347
+ { value: 'semidetached', name: 'Semidetached' },
348
+ { value: 'highrise', name: 'High Rise' },
349
+ { value: 'lowrise', name: 'Low Rise' },
350
+ { value: 'basement', name: 'Basement' },
351
+ { value: 'endrow', name: 'End Row' },
352
+ { value: 'inrow', name: 'In Row' },
353
+ { value: 'duplex', name: 'Duplex' },
354
+ { value: 'triplex', name: 'Triplex' },
355
+ ];
356
+ const fireHallDistanceOptions = [
357
+ { value: '', name: '-' },
358
+ { value: '5', name: 'Within 5km' },
359
+ { value: '8', name: 'Within 8km' },
360
+ { value: '13', name: 'Within 13km' },
361
+ { value: '16', name: 'Over 13km' },
362
+ ];
363
+ const fireHydrantDistanceOptions = [
364
+ { value: '', name: '-' },
365
+ { value: '150', name: 'Within 150m' },
366
+ { value: '300', name: 'Within 300m' },
367
+ { value: '301', name: 'Over 300m' },
368
+ ];
369
+ const heatingTypeOptions = [
370
+ { value: '', name: '-' },
371
+ { value: 'naturalgas', name: 'Natural Gas' },
372
+ { value: 'electric', name: 'Electric' },
373
+ { value: 'wood', name: 'Wood' },
374
+ { value: 'water', name: 'Water' },
375
+ { value: 'geothermal', name: 'Geothermal' },
376
+ { value: 'radiant', name: 'Radiant' },
377
+ { value: 'oil', name: 'Oil' },
378
+ { value: 'fireplace', name: 'Fireplace' },
379
+ { value: 'woodstove', name: 'Wood Stove' },
380
+ { value: 'woodfurnace', name: 'Wood Furnace' },
381
+ { value: 'pelletstove', name: 'Pallet Stove' },
382
+ { value: 'none', name: 'None' },
383
+ { value: 'unknown', name: 'Unknown' },
384
+ ];
385
+
386
+ const yesNoOptions = [{ name: 'Yes', value: true }, { name: 'No', value: false }];
387
+ const yesNoOptionsTemporary = [{ name: 'Yes', value: true }, { name: 'No', value: false }];
388
+
389
+ var DateTypes;
390
+ (function (DateTypes) {
391
+ DateTypes["Day"] = "Day";
392
+ DateTypes["Month"] = "Month";
393
+ DateTypes["Year"] = "Year";
394
+ })(DateTypes || (DateTypes = {}));
395
+
396
+ var ButtonVariantTypes;
397
+ (function (ButtonVariantTypes) {
398
+ ButtonVariantTypes["Circle"] = "circle";
399
+ ButtonVariantTypes["Rectangle"] = "rectangle";
400
+ })(ButtonVariantTypes || (ButtonVariantTypes = {}));
401
+ var ButtonTypes;
402
+ (function (ButtonTypes) {
403
+ ButtonTypes["Submit"] = "submit";
404
+ ButtonTypes["Button"] = "button";
405
+ ButtonTypes["Reset"] = "reset";
406
+ })(ButtonTypes || (ButtonTypes = {}));
407
+
408
+ var ColorVariablesTypes;
409
+ (function (ColorVariablesTypes) {
410
+ ColorVariablesTypes["Default"] = "var(--color-primary)";
411
+ ColorVariablesTypes["Primary"] = "var(--color-primary)";
412
+ ColorVariablesTypes["Secondary"] = "var(--color-primary)";
413
+ })(ColorVariablesTypes || (ColorVariablesTypes = {}));
414
+ var ColorTypes;
415
+ (function (ColorTypes) {
416
+ ColorTypes["Default"] = "default";
417
+ ColorTypes["Primary"] = "primary";
418
+ ColorTypes["Secondary"] = "secondary";
419
+ })(ColorTypes || (ColorTypes = {}));
420
+ var CategoryTypes;
421
+ (function (CategoryTypes) {
422
+ CategoryTypes["Outlined"] = "outlined";
423
+ CategoryTypes["Filled"] = "filled";
424
+ CategoryTypes["Default"] = "default";
425
+ })(CategoryTypes || (CategoryTypes = {}));
426
+
427
+ var InputTypes;
428
+ (function (InputTypes) {
429
+ InputTypes["Text"] = "text";
430
+ InputTypes["Number"] = "number";
431
+ InputTypes["Password"] = "password";
432
+ InputTypes["Email"] = "email";
433
+ })(InputTypes || (InputTypes = {}));
434
+ var ValidationStatusTypes;
435
+ (function (ValidationStatusTypes) {
436
+ ValidationStatusTypes["Initial"] = "initial";
437
+ ValidationStatusTypes["Loading"] = "isLoading";
438
+ ValidationStatusTypes["Declined"] = "declined";
439
+ ValidationStatusTypes["Approved"] = "approved";
440
+ })(ValidationStatusTypes || (ValidationStatusTypes = {}));
441
+
442
+ var SizeTypes;
443
+ (function (SizeTypes) {
444
+ SizeTypes["Small"] = "small";
445
+ SizeTypes["Medium"] = "medium";
446
+ SizeTypes["Large"] = "large";
447
+ })(SizeTypes || (SizeTypes = {}));
448
+ var AlignTypes;
449
+ (function (AlignTypes) {
450
+ AlignTypes["TL"] = "tl";
451
+ AlignTypes["TC"] = "tc";
452
+ AlignTypes["TR"] = "tr";
453
+ AlignTypes["CL"] = "cl";
454
+ AlignTypes["CC"] = "cc";
455
+ AlignTypes["CR"] = "cr";
456
+ AlignTypes["BL"] = "bl";
457
+ AlignTypes["BC"] = "bc";
458
+ AlignTypes["BR"] = "br";
459
+ })(AlignTypes || (AlignTypes = {}));
460
+ var DirectionTypes;
461
+ (function (DirectionTypes) {
462
+ DirectionTypes["Left"] = "left";
463
+ DirectionTypes["Up"] = "up";
464
+ DirectionTypes["Right"] = "right";
465
+ DirectionTypes["Down"] = "down";
466
+ })(DirectionTypes || (DirectionTypes = {}));
467
+
468
+ var CompanyRoleTypes;
469
+ (function (CompanyRoleTypes) {
470
+ CompanyRoleTypes["Broker"] = "broker";
471
+ CompanyRoleTypes["Offering"] = "offering";
472
+ })(CompanyRoleTypes || (CompanyRoleTypes = {}));
473
+
474
+ var DeviceTypes;
475
+ (function (DeviceTypes) {
476
+ DeviceTypes["Desktop"] = "desktop";
477
+ DeviceTypes["Mobile"] = "mobile";
478
+ })(DeviceTypes || (DeviceTypes = {}));
479
+ const DeviceTypeWidthList = [
480
+ {
481
+ type: DeviceTypes.Mobile,
482
+ minWidth: 0,
483
+ },
484
+ {
485
+ type: DeviceTypes.Desktop,
486
+ minWidth: 601,
487
+ },
488
+ ];
489
+ var ScreenBPTypes;
490
+ (function (ScreenBPTypes) {
491
+ ScreenBPTypes["XS"] = "xs";
492
+ ScreenBPTypes["SM"] = "sm";
493
+ ScreenBPTypes["MD"] = "md";
494
+ ScreenBPTypes["LG"] = "lg";
495
+ ScreenBPTypes["XL"] = "xl";
496
+ ScreenBPTypes["XXL"] = "xxl";
497
+ })(ScreenBPTypes || (ScreenBPTypes = {}));
498
+ const ScreenBPList = [
499
+ {
500
+ BP: ScreenBPTypes.XS,
501
+ minWidth: 0,
502
+ },
503
+ {
504
+ BP: ScreenBPTypes.SM,
505
+ minWidth: 321,
506
+ },
507
+ {
508
+ BP: ScreenBPTypes.MD,
509
+ minWidth: 601,
510
+ },
511
+ {
512
+ BP: ScreenBPTypes.LG,
513
+ minWidth: 861,
514
+ },
515
+ {
516
+ BP: ScreenBPTypes.XL,
517
+ minWidth: 1201,
518
+ },
519
+ {
520
+ BP: ScreenBPTypes.XXL,
521
+ minWidth: 1920,
522
+ },
523
+ ];
524
+
525
+ var AppTypes;
526
+ (function (AppTypes) {
527
+ AppTypes["MyChoice"] = "MyChoice";
528
+ AppTypes["Partner"] = "Partner";
529
+ AppTypes["TheBig"] = "TheBig";
530
+ })(AppTypes || (AppTypes = {}));
531
+ var InsuranceTypes;
532
+ (function (InsuranceTypes) {
533
+ InsuranceTypes["Car"] = "car";
534
+ InsuranceTypes["Life"] = "life";
535
+ InsuranceTypes["Home"] = "home";
536
+ })(InsuranceTypes || (InsuranceTypes = {}));
537
+ const defaultLocalIndex = 'insurance';
538
+ const MAX_LOCAL_STORAGE_HOURS = 168;
539
+
540
+ const API_ROOT = process.env.REACT_APP_API_BASE_URL ? process.env.REACT_APP_API_BASE_URL.toString() : '';
541
+ const API_AUTH = {
542
+ POST_SIGN_IN: `${API_ROOT}login/`,
543
+ GET_SIGN_OUT: `${API_ROOT}logout/`,
544
+ POST_SIGN_UP: `${API_ROOT}registration/`,
545
+ POST_FORGOT: `${API_ROOT}password/reset/`,
546
+ POST_RESET: `${API_ROOT}password/reset/confirm/`,
547
+ POST_EMAIL_VERIFICATION: `${API_ROOT}registration/verify-email/`,
548
+ POST_TOKEN: `${API_ROOT}token/refresh/`,
549
+ POST_EMAIL_VALIDATION: `${API_ROOT}email/validate/`,
550
+ };
551
+ const PROFILE_API = {
552
+ USER: `${API_ROOT}user/me/`,
553
+ POST_PASSWORD_CHANGE: `${API_ROOT}password/change/`,
554
+ };
555
+ const API_APP = {
556
+ GET_PARTNER: `${API_ROOT}partners/`,
557
+ };
558
+ const API_FORM_CAR = {
559
+ GET_POSTAL: `${API_ROOT}postal/auto/`,
560
+ GET_VEHICLE: `${API_ROOT}vehicle/year`,
561
+ POST_QUOTE_DATA: `${API_ROOT}autoquote/`,
562
+ GET_QUOTE_DATA: `${API_ROOT}autoquote/`,
563
+ POST_QUOTE_ONLIA_URL: `${API_ROOT}autoquote/onlia-leads/`,
564
+ };
565
+ const API_FORM_HOME = {
566
+ GET_POSTAL: `${API_ROOT}postal/home/`,
567
+ POST_QUOTE_DATA: `${API_ROOT}homequote/`,
568
+ };
569
+ var HttpRequestHeaderTypes;
570
+ (function (HttpRequestHeaderTypes) {
571
+ HttpRequestHeaderTypes["Json"] = "JSON";
572
+ HttpRequestHeaderTypes["MultiPart"] = "MultiPart";
573
+ })(HttpRequestHeaderTypes || (HttpRequestHeaderTypes = {}));
574
+ var RequestStatusTypes;
575
+ (function (RequestStatusTypes) {
576
+ RequestStatusTypes["Waiting"] = "Waiting";
577
+ RequestStatusTypes["Loading"] = "Loading";
578
+ RequestStatusTypes["Success"] = "Success";
579
+ RequestStatusTypes["Error"] = "Error";
580
+ })(RequestStatusTypes || (RequestStatusTypes = {}));
581
+ var RequestTypes;
582
+ (function (RequestTypes) {
583
+ RequestTypes["Get"] = "GET";
584
+ RequestTypes["Post"] = "POST";
585
+ RequestTypes["Put"] = "PUT";
586
+ RequestTypes["Delete"] = "DELETE";
587
+ RequestTypes["Patch"] = "PATCH";
588
+ })(RequestTypes || (RequestTypes = {}));
589
+
590
+ var ModalTypes;
591
+ (function (ModalTypes) {
592
+ ModalTypes["MessageModal"] = "MessageModal";
593
+ ModalTypes["ConfirmModal"] = "ConfirmModal";
594
+ ModalTypes["PostalModal"] = "PostalModal";
595
+ ModalTypes["FinaleModal"] = "FinaleModal";
596
+ })(ModalTypes || (ModalTypes = {}));
597
+
598
+ const IconArrow = (props) => {
599
+ const { width, height, className } = props;
600
+ return (jsx("svg", { className: className, xmlns: "http://www.w3.org/2000/svg", style: { width, height }, viewBox: "0 0 22 16", children: jsx("path", { d: "M14.8,0.5c-0.3-0.3-0.8-0.3-1.1,0c-0.3,0.3-0.3,0.8,0,1.1l0,0l5.6,\n 5.6H0.8C0.4,7.2,0,7.5,0,8c0,0,0,0,0,0 c0,0.4,0.4,0.8,0.8,0.8h18.6l-5.6,\n 5.6c-0.3,0.3-0.3,0.8,0,1.1c0.3,0.3,0.8,0.3,1.1,0c0,0,0,0,0,\n 0l7-7c0.3-0.3,0.3-0.8,0-1.1 L14.8,0.5z" }) }));
601
+ };
602
+ IconArrow.defaultProps = {
603
+ className: `icon-arrow-${CategoryTypes.Outlined} icon-direction-${DirectionTypes.Down}`,
604
+ width: '1.375rem',
605
+ height: '1rem',
606
+ };
607
+
608
+ const IconTabArrow = (props) => {
609
+ const { width, height, className } = props;
610
+ return (jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 10 18", style: { height, width }, children: jsx("path", { fill: "#FFFFFF", d: "M8.1,7.4l-7-7c-0.2-0.2-0.5-0.2-0.7,0s-0.2,0.5,0,0.7L7,7.7l-6.6,6.6c-0.2,0.2-0.2,0.5,0,0.7\n c0.1,0.1,0.2,0.1,0.4,0.1s0.3,0,0.4-0.1l7-7C8.3,7.9,8.3,7.5,8.1,7.4z" }) }));
611
+ };
612
+ IconTabArrow.defaultProps = {
613
+ className: '',
614
+ width: '0.625rem',
615
+ height: '1.125rem',
616
+ };
617
+
618
+ const NavigationBase = (props) => {
619
+ const { height, width, className, viewBox, children, } = props;
620
+ return (jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", style: { height, width }, viewBox: viewBox, children: jsx("g", { fill: "var(--color-primary)", children: children }) }));
621
+ };
622
+ NavigationBase.defaultProps = {
623
+ className: '',
624
+ height: '1.75rem',
625
+ width: 'auto',
626
+ };
627
+
628
+ const NavigationDiscount = ({ height, width, className }) => (jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 26.1 26.1", children: [jsx("path", { d: "M9.8,11.6c1,0,1.8-0.8,1.8-1.8c0-1-0.8-1.8-1.8-1.8c-1,0-1.8,0.8-1.8,1.8c0,0,0,0,0,0\n C7.9,10.8,8.8,11.6,9.8,11.6z M9.8,9c0.4,0,0.8,0.3,0.8,0.8s-0.3,0.8-0.8,0.8S9,10.2,9,9.8l0,0C9,9.3,9.3,9,9.8,9z" }), jsx("path", { d: "M15.8,13.9c0-1-0.8-1.8-1.8-1.8c-1,0-1.8,0.8-1.8,1.8c0,1,0.8,1.8,1.8,1.8c0,0,0,0,0,0\n C15,15.8,15.8,15,15.8,13.9z M13.2,13.9c0-0.4,0.3-0.8,0.8-0.8s0.8,0.3,0.8,0.8s-0.3,0.8-0.8,0.8l0,0\n C13.5,14.7,13.2,14.4,13.2,13.9z" }), jsx("path", { d: "M15.3,8.4c-0.2-0.2-0.5-0.2-0.8,0c0,0,0,0,0,0l-5.9,5.9c-0.2,0.2-0.2,0.5,0,0.8c0,0,0,0,0,0\n c0.1,0.1,0.2,0.2,0.4,0.2c0.1,0,0.3-0.1,0.4-0.2l5.9-5.9C15.5,9,15.5,8.6,15.3,8.4z" }), jsx("path", { d: "M19.8,17.5c0.5,0,0.9,0.4,0.9,0.9c0,0.3,0.2,0.5,0.5,0.5s0.5-0.2,0.5-0.5c0,0,0,0,0,\n 0c0-0.9-0.6-1.7-1.4-1.9v-0.3c0-0.3-0.2-0.5-0.5-0.5s-0.5,0.2-0.5,0.5c0,0,0,0,0,0v0.3c-1,\n 0.3-1.7,1.4-1.4,2.4c0.2,0.8,1,1.4,1.9,1.4c0.5,0,0.9,0.4,0.9,0.9c0,0.5-0.4,0.9-0.9,\n 0.9c-0.5,0-0.9-0.4-0.9-0.9l0,0c0-0.3-0.2-0.5-0.5-0.5s-0.5,0.2-0.5,0.5c0,0,0,0,0,0\n c0,0.9,0.6,1.7,1.4,1.9v0.4c0,0.3,0.2,0.5,0.5,0.5s0.5-0.2,0.5-0.5c0,0,0,0,0,\n 0v-0.4c1-0.3,1.7-1.4,1.4-2.4c-0.2-0.8-1-1.4-1.9-1.4c-0.5,0.1-0.9-0.3-1-0.8c-0.1-0.5,\n 0.3-0.9,0.8-1C19.7,17.5,19.8,17.5,19.8,17.5L19.8,17.5z" }), jsx("path", { d: "M22.6,14.2l0.8-1.2c0.5-0.7,0.5-1.6,0-2.4l-0.9-1.3c-0.1-0.2-0.2-0.4-0.2-0.6l0.1-1.6c0-0.9-0.4-1.6-1.2-2\n l-1.4-0.7c-0.2-0.1-0.4-0.3-0.5-0.5l-0.7-1.4c-0.4-0.8-1.2-1.2-2-1.2L15,1.4c-0.2,0-0.5,\n 0-0.6-0.2L13,0.4c-0.7-0.5-1.6-0.5-2.4,0L9.4,1.2C9.2,1.3,8.9,1.4,8.7,1.4L7.1,1.3c-0.9,\n 0-1.6,0.4-2,1.2L4.4,3.9C4.3,4.1,4.1,4.3,3.9,4.4L2.5,5.1c-0.8,0.4-1.2,1.2-1.2,2\n l0.1,1.6c0,0.2,0,0.5-0.2,0.6l-0.9,1.3c-0.5,0.7-0.5,1.6,0,2.4l0.9,1.3c0.1,0.2,\n 0.2,0.4,0.2,0.6l-0.1,1.6c0,0.9,0.4,1.6,1.2,2l1.4,0.7c0.2,0.1,0.4,0.3,0.5,0.5l0.7,\n 1.4c0.4,0.8,1.2,1.2,2,1.2l1.6-0.1c0.2,0,0.5,0,0.6,0.2l1.3,0.9c0.7,0.5,1.6,0.5,2.4,0\n l1.2-0.8c1.5,3.1,5.3,4.4,8.4,2.9s4.4-5.3,2.9-8.4C24.9,15.8,23.8,14.8,22.6,\n 14.2L22.6,14.2z M13.8,21.6l-1.3,0.9c-0.4,0.2-0.8,0.2-1.2,0l-1.3-0.9c-0.4-0.3-0.8-0.4-1.3-0.3l-1.6,\n 0.1c-0.4,0-0.8-0.2-1-0.6l-0.7-1.4c-0.2-0.4-0.5-0.7-0.9-0.9L3,17.7c-0.4-0.2-0.6-0.6-0.6-1L2.5,\n 15c0-0.5-0.1-0.9-0.3-1.3l-0.9-1.3c-0.2-0.4-0.2-0.8,0-1.2l0.9-1.3c0.3-0.4,0.4-0.8,0.3-1.3\n L2.4,7c0-0.4,0.2-0.8,0.6-1l1.4-0.7c0.4-0.2,0.7-0.5,0.9-0.9L6,3c0.2-0.4,0.6-0.6,1-0.6l1.6,\n 0.1c0.5,0,0.9-0.1,1.3-0.3l1.3-0.9c0.4-0.2,0.8-0.2,1.2,0l1.3,0.9c0.4,0.3,0.8,0.4,1.3,\n 0.3l1.6-0.1c0.4,0,0.8,0.2,1,0.6l0.7,1.4c0.2,0.4,0.5,0.7,0.9,0.9L20.7,6\n c0.4,0.2,0.6,0.6,0.6,1l-0.1,1.6c0,0.5,0.1,0.9,0.3,1.3l0.9,1.3c0.2,0.4,0.2,0.8,\n 0,1.2l-0.9,1.3c0,0,0,0,0,0c-3.3-1-6.8,1-7.7,4.3C13.5,19.2,13.5,20.4,13.8,21.6C13.8,\n 21.6,13.8,21.6,13.8,21.6L13.8,21.6z M19.8,25c-2.9,0-5.2-2.3-5.2-5.2s2.3-5.2,5.2-5.2\n S25,17,25,19.8S22.7,25,19.8,25C19.8,25,19.8,25,19.8,25L19.8,25z" })] }));
629
+ NavigationDiscount.defaultProps = {
630
+ className: '',
631
+ height: '1.75rem',
632
+ width: 'auto',
633
+ };
634
+
635
+ const NavigationPerson = ({ height, width, className }) => (jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 36 24.1", children: [jsx("path", { d: "M33.1,0H2.8C1.3,0,0,1.3,0,2.8v18.4l0,0c0,1.6,1.3,2.8,2.8,2.8h30.3c1.6,0,2.8-1.3,2.8-2.8l0,0V2.8\n C36,1.3,34.7,0,33.1,0z M2.8,1.4h30.3c0.8,0,1.4,0.6,1.4,1.4v16.4H13.9c-0.4,0-0.7,0.3-0.7,0.7c0,0.4,\n 0.3,0.7,0.7,0.7h20.7v0.6c0,0.8-0.6,1.4-1.4,1.4H2.8c-0.8,0-1.4-0.6-1.4-1.4v-0.6h6.3c0.4,0,0.7-0.3,\n 0.7-0.7c0-0.4-0.3-0.7-0.7-0.7l0,0H1.4V2.8C1.4,2.1,2,1.4,2.8,1.4L2.8,1.4z" }), jsx("path", { d: "M19.7,5.8h3.8c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.8c-0.4,0-0.7,0.3-0.7,0.7S19.3,\n 5.8,19.7,5.8C19.7,5.8,19.7,5.8,19.7,5.8z" }), jsx("path", { d: "M26.5,5.8h3.9c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.9c-0.4,0-0.7,0.3-0.7,\n 0.7S26.1,5.8,26.5,5.8C26.5,5.8,26.5,5.8,26.5,5.8z" }), jsx("path", { d: "M19.7,8.8h10.7c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7H19.7c-0.4,0-0.7,\n 0.3-0.7,0.7S19.3,8.8,19.7,8.8C19.7,8.8,19.7,8.8,19.7,8.8z" }), jsx("path", { d: "M19.7,11.9h3.2c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.2c-0.4,0-0.7,\n 0.3-0.7,0.7S19.3,11.9,19.7,11.9C19.7,11.9,19.7,11.9,19.7,11.9z" }), jsx("path", { d: "M29.7,10.5h-2.7c-0.9,0-1.7,0.8-1.7,1.7c0,0,0,0,0,0v2.6c0,0.9,0.8,1.7,1.7,\n 1.7l0,0h2.7c0.9,0,1.7-0.8,1.7-1.7c0,0,0,0,0,0v-2.6C31.4,11.3,30.6,10.5,29.7,\n 10.5L29.7,10.5z M30,14.8c0,0.2-0.1,0.3-0.3,0.3h-2.7c-0.2,0-0.3-0.1-0.3-0.3v-2.6\n c0-0.2,0.1-0.3,0.3-0.3h2.7c0.2,0,0.3,0.1,0.3,0.3V14.8z" }), jsx("path", { d: "M19.7,15h3.2c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.2c-0.4,0-0.7,\n 0.3-0.7,0.7S19.3,15,19.7,15C19.7,15,19.7,15,19.7,15z" }), jsx("path", { d: "M5.6,16.5h9.9c0.4,0,0.7-0.3,0.7-0.7V4.9c0-0.4-0.3-0.7-0.7-0.7H5.6c-0.4,0-0.7,0.3-0.7,0.7v10.9\n C4.9,16.1,5.2,16.5,5.6,16.5z M14.8,15.1H6.3v-2l0,0c0.3-1.1,1.3-1.8,2.5-1.8h3.6c1.1,0,2.1,0.7,2.5,\n 1.8l0,0L14.8,15.1z M9,8.3c0-0.8,0.7-1.5,1.5-1.5S12,7.5,12,8.3s-0.7,1.5-1.5,1.5C9.7,9.8,9,9.1,9,\n 8.3C9,8.3,9,8.3,9,8.3L9,8.3z M14.8,10.6c-0.5-0.4-1.1-0.7-1.8-0.8c0.9-1.4,\n 0.5-3.1-0.9-4c-0.1-0.1-0.3-0.2-0.4-0.2h3.1L14.8,10.6L14.8,10.6z M9.4,5.6\n C7.9,6.2,7.2,7.9,7.8,9.4C7.9,9.6,8,9.7,8.1,9.8c-0.7,0.1-1.3,0.4-1.8,0.8v-5L9.4,5.6z" }), jsx("path", { d: "M11.2,19.4c-0.3-0.2-0.8-0.1-1,0.2c-0.2,0.3-0.1,0.8,0.2,1s0.8,0.1,1-0.2c0,0,0.1-0.1,0.1-0.1\n C11.6,19.9,11.5,19.5,11.2,19.4z" })] }));
636
+ NavigationPerson.defaultProps = {
637
+ className: '',
638
+ height: '1.75rem',
639
+ width: 'auto',
640
+ };
641
+
642
+ const NavigationQuotes = ({ height, width, className }) => (jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 21.2 27.6", children: [jsx("path", { d: "M0,3.2v24c0,0.3,0.2,0.5,0.5,0.5H18c0.3,0,0.5-0.2,\n 0.5-0.5V7.8c0,0,0,0,0,0c0,0,0-0.1,0-0.1c0,0,0,0,0,0\n c0-0.1-0.1-0.1-0.1-0.1l-4.6-4.6c0,0-0.1-0.1-0.1-0.1l0,\n 0c0,0-0.1,0-0.1,0c0,0,0,0,0,0H0.5C0.2,2.8,0,3,0,3.2z M16.9,7.4h-3v-3\n L16.9,7.4z M0.9,3.7h12v4.1c0,0.3,0.2,0.5,0.5,0.5h4.1v18.4H0.9V3.7z" }), jsx("path", { d: "M19.4,24v0.9h1.4c0.3,0,0.5-0.2,0.5-0.5v-24C21.2,0.2,21,0,20.7,\n 0c0,0,0,0,0,0H3.2C3,0,2.8,0.2,2.8,0.5v1.4h0.9V0.9h16.6v23H19.4z" }), jsx("path", { d: "M3.7,9.2h11.1v0.9H3.7V9.2z" }), jsx("path", { d: "M3.7,6.5h3.7v0.9H3.7V6.5z" }), jsx("path", { d: "M3.7,12h7.4v0.9H3.7V12z" }), jsx("path", { d: "M12,12h2.8v0.9H12V12z" }), jsx("path", { d: "M3.7,14.7h11.1v0.9H3.7V14.7z" }), jsx("path", { d: "M3.7,20.3h11.1v0.9H3.7V20.3z" }), jsx("path", { d: "M7.8,17.5h6.9v0.9H7.8V17.5z" }), jsx("path", { d: "M3.7,17.5h3.2v0.9H3.7V17.5z" }), jsx("path", { d: "M3.7,23h1.8V24H3.7V23z" }), jsx("path", { d: "M6.4,23h8.3V24H6.4V23z" })] }));
643
+ NavigationQuotes.defaultProps = {
644
+ className: '',
645
+ height: '1.75rem',
646
+ width: 'auto',
647
+ };
648
+
649
+ const NavigationCar = ({ height, width, className }) => (jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 34.9 27", children: [jsx("path", { d: "M33.5,10l-0.8-0.8L30.1,2c-0.5-1.2-1.6-2-2.9-2h-19C6.8,0,\n 5.7,0.8,5.2,2L2.6,9.1l-1.1,1c-1,0.8-1.5,2-1.5,3.3v10.5C0,25.6,\n 1.4,27,3.1,27h2c1.7,0,3.1-1.4,3.1-3.1v-1.5h18.5v1.5c0,1.7,1.4,\n 3.1,3.1,3.1h2c1.7,0,3.1-1.4,3.1-3.1V13.1C34.9,11.9,34.4,10.8,33.5,\n 10z M6.6,2.5c0.2-0.6,0.8-1,1.5-1h19.1c0.7,0,1.3,0.4,1.5,1L31,\n 8.8h-1.7c-0.4-2.8-3-4.7-5.8-4.3c-2.2,0.3-4,2.1-4.3,4.3H4.3L6.6,\n 2.5z M27.8,8.8L27.8,8.8h-7.1C21.1,6.8,23,5.6,25,6C26.4,6.3,27.5,\n 7.4,27.8,8.8z M6.7,23.9c0,0.9-0.7,1.6-1.6,1.6h-2c-0.9,\n 0-1.6-0.7-1.6-1.6v-2c0.5,0.3,1.1,0.4,1.6,0.4h3.6V23.9z M33.4,\n 23.9c0,0.9-0.7,1.6-1.6,1.6h-2c-0.9,0-1.6-0.7-1.6-1.6v-1.5h3.6c0.6,\n 0,1.1-0.1,1.6-0.4L33.4,23.9z M31.7,20.9L31.7,20.9l-28.6,0c-0.9,\n 0-1.6-0.7-1.6-1.6c0,0,0,0,0,0v-5.9c0-0.8,0.4-1.6,1-2.1l0,\n 0l1-1h28.2l0.7,0.8c0,0,0,0,0,0c0.6,0.5,0.9,1.3,0.9,\n 2v6.1h0C33.4,20.1,32.6,20.9,31.7,20.9z" }), jsx("path", { d: "M9.8,13.3H4.2c-0.4,0-0.7,0.3-0.7,0.7v3.9c0,0.4,0.3,\n 0.7,0.7,0.7h5.6c0.4,0,0.7-0.3,0.7-0.7V14C10.6,13.6,\n 10.2,13.3,9.8,13.3z M9.1,17.1H5v-2.4h4.1V17.1z" }), jsx("path", { d: "M30.6,13.3H25c-0.4,0-0.7,0.3-0.7,0.7v3.9c0,0.4,0.3,\n 0.7,0.7,0.7h5.6c0.4,0,0.7-0.3,0.7-0.7V14C31.4,13.6,\n 31,13.3,30.6,13.3z M29.9,17.1h-4.1v-2.4h4.1V17.1z" }), jsx("path", { d: "M21,16.4C21,16.4,21,16.4,21,16.4h-7.2c-0.4,0-0.7,\n 0.3-0.7,0.7c0,0.4,0.3,0.7,0.7,0.7H21c0.4,0,0.7-0.3,\n 0.7-0.7C21.8,16.7,21.4,16.4,21,16.4z" }), jsx("path", { d: "M13.8,15.6H21c0.4,0,0.7-0.3,0.7-0.7s-0.3-0.7-0.7-0.7h-7.2c-0.4,\n 0-0.7,0.3-0.7,0.7S13.4,15.6,13.8,15.6z" })] }));
650
+ NavigationCar.defaultProps = {
651
+ className: '',
652
+ height: '1.75rem',
653
+ width: 'auto',
654
+ };
655
+
656
+ const NavigationAddress = ({ height, width, className }) => (jsx(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 21.694 32.447", children: jsx("path", { d: "M15.3,10.847A4.457,4.457,0,1,0,10.848,15.3,4.462,4.462,0,0,0,15.3,10.847m-7.554,0a3.1,3.1,0,1,1,3.1,3.1,3.1,3.1,0,0,1-3.1-3.1m7.063,12.871L19.494,17.4A10.658,10.658,0,0,0,20.525,6.04,10.662,10.662,0,0,0,10.96,0h-.211A10.671,10.671,\n 0,0,0,1.17,6.039,10.661,10.661,0,0,0,2.191,17.384l4.691,6.334C2.665,24.366,0,25.969,0,27.932c0,2.933,5.589,4.515,10.847,4.515s10.848-1.582,10.848-4.515c0-1.964-2.665-3.566-6.881-4.214M3.274,16.565a9.31,9.31,0,0,1-.888-9.921,9.326,9.326,0,0,1,8.376-5.285h.185a9.321,9.321,0,0,1,8.36,5.285,9.315,9.315,0,0,1-.9,9.933L10.848,26.792,3.283,16.576Zm7.573,14.524c-5.431,0-9.488-1.667-9.488-3.157,0-1.1,2.4-2.477,6.443-2.97l2.5,3.374a.68.68,0,0,0,1.091,0l2.5-3.374c4.039.493,6.443,1.874,6.443,2.97,0,1.49-4.057,3.157-9.489,3.157", transform: "translate(0 0)" }) }));
657
+ NavigationAddress.defaultProps = {
658
+ className: '',
659
+ height: '1.75rem',
660
+ width: 'auto',
661
+ };
662
+
663
+ const NavigationProperty = ({ height, width, className }) => (jsx(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 33.801 30.063", children: jsx("path", { d: "M33.566,13.977l-6.214-5.3V1.5a.669.669,0,0,0-.669-.67H23.176a.669.669,0,0,0-.669.67V4.54L17.375.161a.669.669,0,0,0-.867,0L.236,13.976A.669.669,0,1,0,\n 1.1,15L16.94,1.547,32.7,14.994a.669.669,0,0,0,.868-1.018M23.845,2.171h2.169V7.533l-2.169-1.85ZM17.367,4.347a.667.667,0,0,0-.867,0L3.463,15.415a.669.669,0\n ,0,0,.867,1.02l1.037-.881v13.84a.669.669,0,0,0,.67.669H27.755a.668.668,0,0,0,.669-.669V15.541l1.046.893a.669.669,0,0,0,.868-1.018Zm2.564,24.377H13.945V20.746h5.986Zm7.155-14.258V28.724H21.269V20.078a.668.668,0,0,0-.669-.669H13.276a.668.668,0,0,0-.669.669v8.647h-5.9V14.486a.59.59,0,0,0-.011-.059L16.932,5.734,27.1,14.409c0,.02-.011.037-.011.057", transform: "translate(0 0)" }) }));
664
+ NavigationProperty.defaultProps = {
665
+ className: '',
666
+ height: '1.75rem',
667
+ width: 'auto',
668
+ };
669
+
670
+ const IconDelete = (props) => {
671
+ const { width, height, className, onClick, color, colorType, } = props;
672
+ return (jsx("svg", { className: className, onClick: onClick, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 14 14", style: { height, width }, children: jsxs("g", { fill: colorType || color || '#FFFFFF', children: [jsx("rect", { x: "6.5", y: "2.1", transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -2.8995 7)", width: "1", height: "9.9" }), jsx("rect", { x: "2.1", y: "6.5", transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -2.8995 7)", width: "9.9", height: "1" }), jsx("path", { d: "M7,14c-3.9,0-7-3.1-7-7c0-3.9,3.1-7,\n 7-7c3.9,0,7,3.1,7,7C14,10.9,10.9,14,7,14z M7,1C3.7,1,1,3.7,1,7s2.7,6,6,6\n s6-2.7,6-6S10.3,1,7,1z" })] }) }));
673
+ };
674
+ IconDelete.defaultProps = {
675
+ className: '',
676
+ width: '0.875rem',
677
+ height: '0.875rem',
678
+ };
679
+
680
+ const IconTooltip = (props) => {
681
+ const [isHover, setIsHover] = useState(false);
682
+ const { width, height, className, } = props;
683
+ const handleEvent = (type) => () => {
684
+ // const element = document.getElementById(tooltipId as string);
685
+ if (type === 'mouseOver') {
686
+ if (!isHover) {
687
+ setIsHover(true);
688
+ // element?.classList.add('show');
689
+ }
690
+ }
691
+ if (type === 'mouseLeave') {
692
+ setIsHover(false);
693
+ // element?.classList.remove('show');
694
+ }
695
+ };
696
+ return (jsxs("svg", { className: className, onMouseOver: handleEvent('mouseOver'), onMouseLeave: handleEvent('mouseLeave'), version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 18 18", style: { width, height }, children: [!isHover
697
+ && (jsx("path", { fill: "var(--color-secondary)", d: "M9,18c-5,0-9-4-9-9c0-5,4-9,9-9c5,0,9,4,9,\n 9C18,14,14,18,9,18z M9,1C4.6,1,1,4.6,1,9s3.6,8,8,8s8-3.6,8-8 S13.4,1,9,1z" })), isHover
698
+ && jsx("circle", { fill: "var(--color-secondary)", cx: "9", cy: "9", r: "9" }), jsxs("g", { fill: isHover ? '#FFF' : 'var(--color-secondary)', children: [jsx("path", { d: "M9.8,13.8c0,0.4-0.3,0.8-0.8,0.8s-0.8-0.3-0.8-0.8S8.6,13,9,13S9.8,13.3,9.8,13.8z" }), jsx("path", { d: "M9,11.6c-0.3,0-0.6-0.3-0.6-0.6v-0.8c0-0.7,0.5-1.4,1.1-1.6c0.8-0.3,1.4-1.1,\n 1.5-2 c0-1.1-1-2-2.1-2c-1.1,0-2,0.9-2,2c0,0.3-0.3,0.6-0.6,0.5C6.1,7.2,5.8,7,5.8,\n 6.7c0-1.8,1.4-3.2,3.1-3.2c1.8,0,3.2,1.4,3.2,3.1 c0,0,0,0.1,0,0.1c-0.1,1.4-1,\n 2.6-2.2,3C9.7,9.8,9.6,10,9.6,10.2V11C9.6,11.3,9.3,11.6,9,11.6C9,11.6,9,11.6,9,11.6z" })] }), jsx("circle", { fill: "transparent", cx: "9", cy: "9", r: "9" })] }));
699
+ };
700
+ IconTooltip.defaultProps = {
701
+ className: '',
702
+ width: '1.25rem',
703
+ height: '1.25rem',
704
+ };
705
+
706
+ const IconSuccess = ({ width, height, className, }) => (jsx("svg", { className: `icon-svg ${className || 'icon-primary'}`, version: "1.1", id: "svg-icon-approve", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 50 50", style: { width, height }, children: jsx("path", { fillRule: "evenodd", clipRule: "evenodd", fill: "#02b917", d: "M47.3,12c0.9-0.8,1-2.1,0.2-3c-0.8-0.9-2.1-1-3-0.2c-0.1,0.1-0.1,0.1-0.2,0.2L17.6,35.9L5.6,23.9\n c-0.8-0.8-2.2-0.8-3,0s-0.8,2.2,0,3l13.4,13.4c0.8,0.8,2.1,0.8,3,0c0,0,0,0,0,0L47.3,12z" }) }));
707
+ IconSuccess.defaultProps = {
708
+ className: '',
709
+ width: '1.25rem',
710
+ height: '1.25rem',
711
+ };
712
+
713
+ const IconChecked = () => (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9.003", height: "6.611", viewBox: "0 0 9.003 6.611", children: jsx("g", { transform: "translate(0 -67.998)", children: jsx("g", { transform: "translate(0 67.997)", children: jsx("path", { fill: "#f9733e", d: "M8.87,68.129a.45.45,0,0,0-.637,0L2.841,73.522.768,71.449a.45.45,0,0,0-.637\n .637l2.391,2.391a.45.45,0,0,0,.637,0L8.87,68.766A.45.45,0,0,0,8.87,68.129Z", transform: "translate(0 -67.997)" }) }) }) }));
714
+
715
+ const IconDecline = ({ width, height, className }) => (jsx("svg", { className: `icon-svg ${className || 'icon-primary'}`, xmlns: "http://www.w3.org/2000/svg", id: "svg-icon-decline", version: "1.1", x: "0px", y: "0px", viewBox: "0 0 50 50", style: { width, height }, children: jsx("path", { fillRule: "evenodd", clipRule: "evenodd", fill: "#F50011", d: "M47.2,7c1-1.3,0.8-3.2-0.5-4.2C45.6,2,44.1,2,43,2.8L25,20.8L7,2.8c-1.3-1-3.2-0.7-4.2,0.6\n C2.1,4.5,2.1,6,2.8,7l17.9,18L2.8,43c-1.1,1.2-1.1,3.1,0.1,4.2c1.2,1.1,3,1.1,4.1,0l17.9-18l18,\n 18c1.2,1.1,3.1,1.1,4.2-0.1c1.1-1.2,1.1-3,0-4.1l-18-18L47.2,7z" }) }));
716
+ IconDecline.defaultProps = {
717
+ className: '',
718
+ width: '1.25rem',
719
+ height: '1.25rem',
720
+ };
721
+
722
+ const ButtonBase = (props) => {
723
+ const { color, category, className, variant, size, label, type, onClick, children, } = props;
724
+ const buttonVariant = variant === ButtonVariantTypes.Rectangle ? variant : `button-${variant}-${size}`;
725
+ return (jsx("button", { className: [
726
+ size,
727
+ `button-${category}-${color}`,
728
+ buttonVariant,
729
+ className,
730
+ ].join(' '), type: type, onClick: onClick, children: children || label }));
731
+ };
732
+ ButtonBase.defaultProps = {
733
+ variant: ButtonVariantTypes.Rectangle,
734
+ category: CategoryTypes.Default,
735
+ className: '',
736
+ type: ButtonTypes.Button,
737
+ };
738
+
739
+ const ButtonForm = (props) => {
740
+ const { selected, onClick, label, className, } = props;
741
+ const color = selected ? ColorTypes.Primary : ColorTypes.Default;
742
+ const category = selected ? CategoryTypes.Filled : CategoryTypes.Outlined;
743
+ return (jsx(ButtonBase, { className: className, type: ButtonTypes.Button, onClick: onClick, label: label, category: category, color: color, variant: ButtonVariantTypes.Rectangle, size: SizeTypes.Large }));
744
+ };
745
+ ButtonForm.defaultProps = {
746
+ selected: true,
747
+ label: '',
748
+ };
749
+
750
+ const ButtonTab = (props) => {
751
+ const { className, selfDelete, iconClick, buttonClick, label, } = props;
752
+ return (jsxs("button", { className: `${className} navigation-tab`, type: ButtonTypes.Button, onClick: buttonClick, children: [jsx("h4", { children: label }), selfDelete && jsx(IconDelete, { onClick: iconClick })] }));
753
+ };
754
+ ButtonTab.defaultProps = {
755
+ className: '',
756
+ selfDelete: true,
757
+ };
758
+
759
+ const ButtonTabMobile = (props) => {
760
+ const { className, selfDelete, iconClick, buttonClick, label, } = props;
761
+ return (jsxs("div", { className: "navigation-tab-mobile", children: [jsx("button", { className: `${className} tab-item`, type: ButtonTypes.Button, onClick: buttonClick, children: jsx("h4", { children: label }) }), selfDelete && jsx("button", { className: "tab-item-delete", onClick: iconClick, children: "Delete" })] }));
762
+ };
763
+ ButtonTabMobile.defaultProps = {
764
+ className: '',
765
+ selfDelete: true,
766
+ };
767
+
768
+ const ButtonMenu = ({ className, onClick }) => (jsxs("button", { className: `${className} hamburger`, onClick: onClick, children: [jsx("span", {}), jsx("span", {}), jsx("span", {})] }));
769
+ ButtonMenu.defaultProps = {
770
+ className: '',
771
+ };
772
+
773
+ const ButtonArrow = (props) => {
774
+ const { color, size, category, direction, onClick, } = props;
775
+ const iconColor = `${category === CategoryTypes.Outlined ? color : ColorTypes.Primary}`;
776
+ const iconWidth = size === SizeTypes.Small ? '1rem' : '1.375rem';
777
+ return (jsx(ButtonBase, { size: size, category: category, color: color, variant: ButtonVariantTypes.Circle, className: "button-arrow", onClick: onClick, children: jsx(IconArrow, { className: `icon-arrow-${iconColor} icon-direction-${direction}`, width: iconWidth }) }));
778
+ };
779
+ ButtonArrow.defaultProps = {
780
+ direction: DirectionTypes.Down,
781
+ category: CategoryTypes.Outlined,
782
+ color: ColorTypes.Default,
783
+ };
784
+
785
+ const ButtonTabArrow = (props) => {
786
+ const { className, onClick, direction, } = props;
787
+ return (jsx("button", { className: `button-tab-arrow ${className} ${direction}`, onClick: onClick, children: jsx(IconTabArrow, { className: `icon-direction-${direction}` }) }));
788
+ };
789
+ ButtonTabArrow.defaultProps = {
790
+ className: '',
791
+ direction: DirectionTypes.Left,
792
+ };
793
+
794
+ var InputValueActionTypes;
795
+ (function (InputValueActionTypes) {
796
+ InputValueActionTypes["Set"] = "SetValue";
797
+ InputValueActionTypes["Clear"] = "ClearValue";
798
+ })(InputValueActionTypes || (InputValueActionTypes = {}));
799
+
800
+ const inputValueReducer = (state, action) => {
801
+ switch (action.type) {
802
+ case InputValueActionTypes.Set:
803
+ return action.payload;
804
+ case InputValueActionTypes.Clear:
805
+ return undefined;
806
+ default: return state;
807
+ }
808
+ };
809
+
810
+ const optionsIsEqual = (options1, options2) => isEqual(options1, options2);
811
+ const isValueInOptions = (value, options) => !!options.find((item) => item.value === value);
812
+ const getValueIndexInOptions = (value, options) => (options.findIndex((item) => item.value === value));
813
+ const getValuesFromNumbers = (start, end) => (range(Number(start), Number(end)).map((item) => ({
814
+ name: item.toString(),
815
+ value: item.toString(),
816
+ })));
817
+ const deepClone = cloneDeep;
818
+
819
+ const getDate = (date) => {
820
+ if (date) {
821
+ const dateArr = date.split('-');
822
+ switch (dateArr.length) {
823
+ case 1:
824
+ return new Date(+dateArr[0]);
825
+ case 2:
826
+ return new Date(+dateArr[0], +dateArr[1] - 1);
827
+ case 3:
828
+ return new Date(+dateArr[0], +dateArr[1] - 1, +dateArr[2]);
829
+ default:
830
+ return new Date();
831
+ }
832
+ }
833
+ return new Date();
834
+ };
835
+ const getFormattedDate = (date, pattern) => {
836
+ if (date) {
837
+ return format(getDate(date), pattern);
838
+ }
839
+ return format(new Date(), pattern);
840
+ };
841
+ const isDateValid = (date) => {
842
+ const parsed = parse(date, 'yyyy-MM-dd', new Date());
843
+ return isValid(parsed);
844
+ };
845
+ const getDaysOfMonth = (date) => getDaysInMonth(getDate(date));
846
+ const addYearsToDate = (date, yearCount) => {
847
+ if (date) {
848
+ return format(addYears(getDate(date), +yearCount), 'yyyy-MM-dd');
849
+ }
850
+ return format(addYears(new Date(), +yearCount), 'yyyy-MM-dd');
851
+ };
852
+ const subYearsFromDate = (date, yearCount) => {
853
+ if (date) {
854
+ return format(subYears(getDate(date), +yearCount), 'yyyy-MM-dd');
855
+ }
856
+ return format(subYears(new Date(), +yearCount), 'yyyy-MM-dd');
857
+ };
858
+ const addMonthsToDate = (date, monthCount) => {
859
+ if (date) {
860
+ return format(addMonths(getDate(date), +monthCount), 'yyyy-MM-dd');
861
+ }
862
+ return format(addMonths(new Date(), +monthCount), 'yyyy-MM-dd');
863
+ };
864
+ const subMonthsFromDate = (date, monthCount) => {
865
+ if (date) {
866
+ return format(subMonths(getDate(date), +monthCount), 'yyyy-MM-dd');
867
+ }
868
+ return format(subMonths(new Date(), +monthCount), 'yyyy-MM-dd');
869
+ };
870
+ const addDaysToDate = (date, dayCount) => {
871
+ if (date) {
872
+ return format(addDays(getDate(date), +dayCount), 'yyyy-MM-dd');
873
+ }
874
+ return format(addDays(new Date(), +dayCount), 'yyyy-MM-dd');
875
+ };
876
+ const subDaysFromDate = (date, dayCount) => {
877
+ if (date) {
878
+ return format(subDays(getDate(date), +dayCount), 'yyyy-MM-dd');
879
+ }
880
+ return format(subDays(new Date(), +dayCount), 'yyyy-MM-dd');
881
+ };
882
+ const compareDates = (dateLeft, dateRight) => compareAsc(getDate(dateLeft), getDate(dateRight));
883
+ const getStartOfMonth = (date) => {
884
+ if (date) {
885
+ return startOfMonth(getDate(date));
886
+ }
887
+ return startOfMonth(new Date());
888
+ };
889
+ const getEndOfMonth = (date) => {
890
+ if (date) {
891
+ return endOfMonth(getDate(date));
892
+ }
893
+ return endOfMonth(new Date());
894
+ };
895
+ const getStartOfYear = (date) => {
896
+ if (date) {
897
+ return startOfYear(getDate(date));
898
+ }
899
+ return startOfYear(new Date());
900
+ };
901
+ const getEndOfYear = (date) => {
902
+ if (date) {
903
+ return endOfYear(getDate(date));
904
+ }
905
+ return endOfYear(new Date());
906
+ };
907
+ const getMinDate = (date, yearCount) => {
908
+ if (date && yearCount) {
909
+ const newDate = addYearsToDate(date, +yearCount);
910
+ const currentDate = getFormattedDate('', 'yyyy-MM-dd');
911
+ return compareDates(currentDate, newDate) >= 0 ? newDate : currentDate;
912
+ }
913
+ return '1922-01-01';
914
+ };
915
+ const getMinDateByYears = (date, yearCount) => {
916
+ if (date) {
917
+ const newDate = format(subYears(new Date(), +yearCount), 'yyyy-MM-dd');
918
+ return compareDates(date, newDate) >= 0 ? date : newDate;
919
+ }
920
+ return '1922-01-01';
921
+ };
922
+ const getDayStartEndDates = (currentDate, minDate, maxDate) => {
923
+ let start = getStartOfMonth('1922-01-01');
924
+ let end = getEndOfMonth('1922-01-01');
925
+ const { month, year, day = '01' } = currentDate;
926
+ if (month && year) {
927
+ const yearMonth = `${year}-${month}`;
928
+ const formattedDate = `${yearMonth}-${day}`;
929
+ start = getStartOfMonth(yearMonth);
930
+ if (yearMonth === getFormattedDate('', 'yyyy-MM')) {
931
+ end = (maxDate && compareDates('', maxDate) <= 0) ? getDate(maxDate) : new Date();
932
+ }
933
+ else if (maxDate && (yearMonth === getFormattedDate(maxDate, 'yyyy-MM'))) {
934
+ end = compareDates('', maxDate) <= 0 ? getDate(maxDate) : new Date();
935
+ }
936
+ else {
937
+ end = getEndOfMonth(yearMonth);
938
+ }
939
+ if (minDate && (compareDates(formattedDate, minDate) <= 0)) {
940
+ start = getDate(minDate);
941
+ end = getEndOfMonth(minDate);
942
+ }
943
+ if (maxDate && (compareDates(formattedDate, maxDate) >= 0)) {
944
+ end = getDate(maxDate);
945
+ start = getStartOfMonth(maxDate);
946
+ }
947
+ }
948
+ return { start, end };
949
+ };
950
+ const getMonthStartEndDates = (currentDate, minDate, maxDate) => {
951
+ let start = getStartOfYear('1922-01-01');
952
+ let end = getEndOfYear('1922-01-01');
953
+ const { year, month, day = '01' } = currentDate;
954
+ let formattedDate = '';
955
+ if (maxDate && year) {
956
+ if (year === format(getDate(maxDate), 'yyyy')) {
957
+ formattedDate = maxDate;
958
+ }
959
+ }
960
+ if (year && month && day) {
961
+ formattedDate = `${year}-${month}-${day}`;
962
+ start = getStartOfYear(formattedDate);
963
+ if (year === format(new Date(), 'yyyy')) {
964
+ end = maxDate && compareDates('', maxDate) <= 0 ? getDate(maxDate) : new Date();
965
+ }
966
+ else {
967
+ end = getEndOfYear(formattedDate);
968
+ }
969
+ if (minDate && maxDate && (getFormattedDate(minDate, 'yyyy') === getFormattedDate(maxDate, 'yyyy'))) {
970
+ start = getDate(minDate);
971
+ end = getDate(maxDate);
972
+ }
973
+ else {
974
+ if (minDate
975
+ && (isWithinInterval(getDate(formattedDate), { start: getDate(minDate), end: getEndOfYear(minDate) })
976
+ || isBefore(getDate(formattedDate), getDate(minDate)))) {
977
+ start = getDate(minDate);
978
+ end = getEndOfYear(minDate);
979
+ }
980
+ if (maxDate
981
+ && (isWithinInterval(getDate(formattedDate), { start: getStartOfYear(maxDate), end: getDate(maxDate) })
982
+ || isAfter(getDate(formattedDate), getDate(maxDate)))) {
983
+ end = getDate(maxDate);
984
+ start = getStartOfYear(maxDate);
985
+ }
986
+ }
987
+ }
988
+ else if (minDate && maxDate) {
989
+ if (getFormattedDate(minDate, 'yyyy') === getFormattedDate(maxDate, 'yyyy')) {
990
+ start = getDate(minDate);
991
+ end = getDate(maxDate);
992
+ }
993
+ else {
994
+ start = getStartOfYear(maxDate);
995
+ end = getEndOfYear(maxDate);
996
+ }
997
+ }
998
+ return { start, end };
999
+ };
1000
+ const getYearStartEndDates = (currentDate, minDate, maxDate) => {
1001
+ const { day, month, year } = currentDate;
1002
+ const formattedDate = year && month && day ? `${year}-${month}-${day}` : '1922-01-01';
1003
+ let start = getDate('1922-01-01');
1004
+ let end = maxDate && compareDates('', maxDate) <= 0 ? getDate(maxDate) : new Date();
1005
+ if (minDate) {
1006
+ start = getDate(minDate);
1007
+ }
1008
+ if (maxDate && !(compareAsc(getDate(formattedDate), getDate(maxDate)) === 1)) {
1009
+ end = getDate(maxDate);
1010
+ }
1011
+ return { start, end };
1012
+ };
1013
+ const getDateOptions = (type, minDate, maxDate, defaultValue) => {
1014
+ const options = [];
1015
+ if (type === DateTypes.Day) {
1016
+ const { start: startDay, end: endDay, } = getDayStartEndDates(defaultValue, minDate, maxDate);
1017
+ eachDayOfInterval({ start: startDay, end: endDay }).forEach((item) => {
1018
+ options.push({
1019
+ name: format(item, 'dd'),
1020
+ value: format(item, 'dd'),
1021
+ });
1022
+ });
1023
+ }
1024
+ if (type === DateTypes.Month) {
1025
+ const { start: startMonth, end: endMonth, } = getMonthStartEndDates(defaultValue, minDate, maxDate);
1026
+ eachMonthOfInterval({ start: startMonth, end: endMonth }).forEach((item) => {
1027
+ options.push({
1028
+ name: format(item, 'MMMM'),
1029
+ value: format(item, 'MM'),
1030
+ });
1031
+ });
1032
+ }
1033
+ if (type === DateTypes.Year) {
1034
+ const { start: startYear, end: endYear, } = getYearStartEndDates(defaultValue, minDate, maxDate);
1035
+ eachYearOfInterval({ start: startYear, end: endYear }).sort(compareDesc).forEach((item) => {
1036
+ options.push({
1037
+ name: format(item, 'yyyy'),
1038
+ value: format(item, 'yyyy'),
1039
+ });
1040
+ });
1041
+ }
1042
+ return options;
1043
+ };
1044
+ const getYearIntervalOptions = (yearsCount) => getDateOptions(DateTypes.Year, subYearsFromDate(getFormattedDate('', 'yyyy-MM-dd'), yearsCount), getFormattedDate('', 'yyyy-MM-dd'), {});
1045
+ const getDifferenceInYears = (dateLeft, dateRight) => differenceInYears(getDate(dateLeft), getDate(dateRight));
1046
+ const getDifferenceInMonths = (dateLeft, dateRight) => differenceInMonths(getDate(dateLeft), getDate(dateRight));
1047
+ const getDifferenceInHours = (dateLeft, dateRight) => differenceInHours(getDate(dateLeft), getDate(dateRight));
1048
+
1049
+ const getNumericOptions = (start, end, suffix) => {
1050
+ const options = [{ value: '', name: '-' }];
1051
+ let i = start;
1052
+ while (i <= end) {
1053
+ options.push({ value: i.toString(), name: `${i}${suffix || ''}` });
1054
+ i += 1;
1055
+ }
1056
+ return options;
1057
+ };
1058
+ const formatPostalCode = (str = '') => (str && str.replace(/[^a-zA-Z0-9]/g, '').replace(/ /g, '').replace(/-/g, '').replace(/.{3}(?=.)/g, '$& ')
1059
+ .toUpperCase());
1060
+ const postalCodeFormat = (postalCode = '') => postalCode && postalCode.replace(/\s/g, '').substr(0, 6);
1061
+ const numberWithCommas = (value) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
1062
+
1063
+ const useEffectOnce = (effect) => {
1064
+ const destroyFunc = useRef();
1065
+ const effectCalled = useRef(false);
1066
+ const renderAfterCalled = useRef(false);
1067
+ const [val, setVal] = useState(0);
1068
+ if (effectCalled.current) {
1069
+ renderAfterCalled.current = true;
1070
+ }
1071
+ useEffect(() => {
1072
+ // only execute the effect first time around
1073
+ if (!effectCalled.current) {
1074
+ destroyFunc.current = effect();
1075
+ effectCalled.current = true;
1076
+ }
1077
+ // this forces one render after the effect is run
1078
+ setVal(() => val + 1);
1079
+ return () => {
1080
+ // if the comp didn't render since the useEffect was called,
1081
+ // we know it's the dummy React cycle
1082
+ if (!renderAfterCalled.current) {
1083
+ return;
1084
+ }
1085
+ if (destroyFunc.current) {
1086
+ destroyFunc.current();
1087
+ }
1088
+ };
1089
+ }, []);
1090
+ };
1091
+
1092
+ const SelectForm = React.memo((props) => {
1093
+ const { className, size, options, groupOptions, defaultValue, disabled, name, onChange, placeholder, autoSelectIfValueIsOutOfOptions, error, } = props;
1094
+ const currentOptions = [...options];
1095
+ if (groupOptions?.length) {
1096
+ groupOptions.map((item) => currentOptions.push(...item.options));
1097
+ }
1098
+ const [selectedIndex, setSelectedIndex] = useState(0);
1099
+ const [localValue, setLocalValue,] = useReducer(inputValueReducer, defaultValue);
1100
+ const [localOptions, setLocalOptions,] = useReducer(inputValueReducer, currentOptions);
1101
+ const setLocalSelect = useCallback((selectValue, selectIndex) => {
1102
+ setLocalValue({
1103
+ type: InputValueActionTypes.Set,
1104
+ payload: selectValue,
1105
+ });
1106
+ setSelectedIndex(selectIndex);
1107
+ }, []);
1108
+ const setLocalSelectWithOnChange = useCallback((selectValue, selectIndex, onChangeValue) => {
1109
+ const externalValue = onChangeValue || selectValue;
1110
+ setLocalSelect(selectValue, selectIndex);
1111
+ if (onChange) {
1112
+ onChange({
1113
+ name,
1114
+ value: externalValue,
1115
+ });
1116
+ }
1117
+ }, []);
1118
+ const reRenderSelect = useCallback(() => {
1119
+ const selectOptionsLength = ((currentOptions.length - 1) > 1 ? (currentOptions.length - 1) : 1);
1120
+ const selectedOptionIndex = selectedIndex < 0.5 * (localOptions.length - 1) ? 1 : selectOptionsLength;
1121
+ if (!optionsIsEqual(currentOptions, localOptions)) {
1122
+ setLocalOptions({
1123
+ type: InputValueActionTypes.Set,
1124
+ payload: currentOptions,
1125
+ });
1126
+ }
1127
+ if (isValueInOptions(defaultValue, currentOptions)) {
1128
+ setLocalSelect(defaultValue, getValueIndexInOptions(defaultValue, currentOptions));
1129
+ }
1130
+ else if (autoSelectIfValueIsOutOfOptions) {
1131
+ setLocalSelectWithOnChange((currentOptions[selectedOptionIndex]?.value || ''), selectedOptionIndex);
1132
+ }
1133
+ else {
1134
+ setLocalSelectWithOnChange('', 0, '');
1135
+ }
1136
+ }, [defaultValue, options, groupOptions, selectedIndex]);
1137
+ const handleChange = useCallback((event) => {
1138
+ setLocalSelectWithOnChange(event.currentTarget.value, (event.currentTarget.selectedIndex - 1));
1139
+ }, []);
1140
+ useEffect(() => {
1141
+ if (defaultValue !== localValue || !optionsIsEqual(currentOptions, localOptions)) {
1142
+ reRenderSelect();
1143
+ }
1144
+ }, [defaultValue, options, groupOptions]);
1145
+ useEffectOnce(() => {
1146
+ if (defaultValue && !isValueInOptions(defaultValue, currentOptions)) {
1147
+ reRenderSelect();
1148
+ }
1149
+ });
1150
+ return (jsxs("select", { className: ` ${className} ${size} ${disabled ? 'disabled' : ''} ${error ? 'error' : ''}`, name: name, disabled: disabled || false, onChange: handleChange, value: localValue !== '' ? localValue : '', children: [placeholder && (jsx("option", { className: "disabled", value: "", disabled: true, children: placeholder })), options.map((option, index) => (jsx("option", { value: option.value, disabled: !!option.disabled, children: option.name }, `${name}-${option.value}-${index}`))), groupOptions?.map((item, index) => (jsx("optgroup", { label: item.label, children: item.options.map((option, itemIndex) => (jsx("option", { value: option.value, disabled: !!option.disabled, children: option.name }, `${name}-${option.value}-${itemIndex}`))) }, `${name}-${item.label}-${index}`)))] }));
1151
+ }, (prevProps, nextProps) => {
1152
+ const testValue = prevProps.defaultValue === nextProps.defaultValue;
1153
+ const disabled = prevProps.disabled === nextProps.disabled;
1154
+ const error = prevProps.error === nextProps.error;
1155
+ const testOptions = optionsIsEqual(prevProps.options, nextProps.options);
1156
+ return !(!testValue || !testOptions || !disabled || !error);
1157
+ });
1158
+ SelectForm.defaultProps = {
1159
+ size: SizeTypes.Large,
1160
+ className: '',
1161
+ autoSelectIfValueIsOutOfOptions: true,
1162
+ defaultValue: '',
1163
+ disabled: false,
1164
+ error: false,
1165
+ options: [],
1166
+ groupOptions: [],
1167
+ };
1168
+
1169
+ const TitleForm = (props) => {
1170
+ const { title, subTitle, className, isActive, } = props;
1171
+ if (title) {
1172
+ return (jsxs("div", { children: [jsxs("h4", { className: className, children: [isActive
1173
+ && jsx(IconChecked, {}), title] }), subTitle && jsx("p", { className: `${className} label-subtitle`, children: subTitle })] }));
1174
+ }
1175
+ return null;
1176
+ };
1177
+ TitleForm.defaultProps = {
1178
+ className: '',
1179
+ title: '',
1180
+ };
1181
+
1182
+ const InputForm = memo((props) => {
1183
+ const { size, className, name, type, defaultValue, onChange, placeholder, disabled, minValue, maxValue, } = props;
1184
+ const [isRender, setIsRender] = useState(false);
1185
+ const [value, setValue,] = useReducer(inputValueReducer, defaultValue);
1186
+ useEffect(() => {
1187
+ if (defaultValue !== value) {
1188
+ setIsRender(false);
1189
+ }
1190
+ }, [defaultValue]);
1191
+ useEffect(() => {
1192
+ setIsRender(true);
1193
+ }, [isRender]);
1194
+ const handleChange = useCallback((event) => {
1195
+ setValue({
1196
+ type: InputValueActionTypes.Set,
1197
+ payload: event.currentTarget.value,
1198
+ });
1199
+ if (onChange) {
1200
+ onChange({
1201
+ name,
1202
+ value: event.currentTarget.value,
1203
+ });
1204
+ }
1205
+ }, []);
1206
+ if (isRender) {
1207
+ return (jsx("input", { className: `${size} ${disabled ? 'disabled' : ''} ${className}`, type: type, name: name, defaultValue: defaultValue, onChange: handleChange, placeholder: placeholder, disabled: disabled, min: minValue, max: maxValue }));
1208
+ }
1209
+ return jsx("div", { className: `${size} ${disabled ? 'disabled' : ''} ${className}` });
1210
+ }, (prevProps, nextProps) => {
1211
+ const testDefaultValue = prevProps.defaultValue === nextProps.defaultValue;
1212
+ const minMaxValue = nextProps.defaultValue !== nextProps.minValue
1213
+ || nextProps.defaultValue !== nextProps.maxValue;
1214
+ const testMinValue = prevProps.minValue === nextProps.minValue;
1215
+ const testMaxValue = prevProps.maxValue === nextProps.maxValue;
1216
+ return !(!testDefaultValue || !testMinValue || !testMaxValue || !minMaxValue);
1217
+ });
1218
+ InputForm.defaultProps = {
1219
+ size: SizeTypes.Large,
1220
+ className: '',
1221
+ type: InputTypes.Text,
1222
+ defaultValue: '',
1223
+ placeholder: '',
1224
+ disabled: false,
1225
+ error: false,
1226
+ };
1227
+
1228
+ const InputFormPhone = React.memo((props) => {
1229
+ const { size, className, disabled, defaultValue, name, onChange, placeholder, } = props;
1230
+ const [value, setValue,] = useReducer(inputValueReducer, defaultValue);
1231
+ const handleChange = useCallback((phoneNumber) => {
1232
+ setValue({
1233
+ type: InputValueActionTypes.Set,
1234
+ payload: phoneNumber,
1235
+ });
1236
+ if (onChange) {
1237
+ onChange({
1238
+ name,
1239
+ value: phoneNumber,
1240
+ });
1241
+ }
1242
+ }, []);
1243
+ return (jsx(ReactPhoneInput, { buttonClass: "dropdown-button", inputProps: {
1244
+ className: `input-form-phone ${size} ${disabled ? 'disabled' : ''} ${className}`,
1245
+ name,
1246
+ placeholder: placeholder || '(855) 325-8444',
1247
+ }, country: "ca", value: value, onlyCountries: ['ca'], disableDropdown: true, disableCountryCode: true, onChange: handleChange, autoFormat: true }));
1248
+ }, (prevProps, nextProps) => prevProps.defaultValue === nextProps.defaultValue);
1249
+ InputFormPhone.defaultProps = {
1250
+ size: SizeTypes.Large,
1251
+ type: InputTypes.Text,
1252
+ className: '',
1253
+ defaultValue: '',
1254
+ placeholder: '',
1255
+ disabled: false,
1256
+ error: false,
1257
+ };
1258
+
1259
+ const returnValue = (str) => (str ? str.replace(/ /g, '').replace(/-/g, '').replace(/.{5}(?=.)/g, '$&-') : '');
1260
+ const InputFormLicence = React.memo((props) => {
1261
+ const { className, maxLength, name, onChange, placeholder, defaultValue, disabled, size, } = props;
1262
+ const [inputValue, setInputValue,] = useReducer(inputValueReducer, returnValue(defaultValue));
1263
+ // useEffect(() => {
1264
+ // props.onChange({ target: { value: inputValue, name: props.name } }, props.rootName);
1265
+ // }, [inputValue]);
1266
+ // const handleChange = (event) => {
1267
+ // setInputValue(returnValue(event.target.value, props.maxLength));
1268
+ // }
1269
+ const handleChange = (event) => {
1270
+ setInputValue({
1271
+ type: InputValueActionTypes.Set,
1272
+ payload: returnValue(event.target.value),
1273
+ });
1274
+ if (onChange) {
1275
+ onChange({
1276
+ name,
1277
+ value: returnValue(event.target.value),
1278
+ });
1279
+ }
1280
+ };
1281
+ return (jsx("input", { placeholder: placeholder, name: name, className: `${size} ${disabled ? 'disabled' : ''} ${className}`, value: inputValue, maxLength: maxLength, onChange: handleChange, onBlur: handleChange }));
1282
+ });
1283
+ InputFormLicence.defaultProps = {
1284
+ size: SizeTypes.Large,
1285
+ type: InputTypes.Text,
1286
+ className: '',
1287
+ defaultValue: '',
1288
+ placeholder: '',
1289
+ disabled: false,
1290
+ error: false,
1291
+ };
1292
+
1293
+ const InputFormEmail = memo((props) => {
1294
+ const [inputValue, setInputValue] = useState();
1295
+ const [isValidate, setIsValidate] = useState(false);
1296
+ const { className, disabled, defaultValue, name, onChange, placeholder, validationStatus, error, } = props;
1297
+ useEffect(() => {
1298
+ const data = setTimeout(() => {
1299
+ if (onChange && isValidate) {
1300
+ onChange({
1301
+ name,
1302
+ value: inputValue,
1303
+ });
1304
+ }
1305
+ }, 1000);
1306
+ return () => clearTimeout(data);
1307
+ }, [inputValue, isValidate]);
1308
+ const loadingIcon = (validationStatus === ValidationStatusTypes.Loading)
1309
+ && jsx(IconLoaderPrimary, { width: "1.25rem", height: "1.25rem", className: "icon-validate loader" });
1310
+ const declinedIcon = (validationStatus === ValidationStatusTypes.Declined)
1311
+ && jsx(IconDecline, { width: "1rem", height: "1rem", className: "icon-validate" });
1312
+ const approvedIcon = (validationStatus === ValidationStatusTypes.Approved)
1313
+ && jsx(IconSuccess, { className: "icon-validate" });
1314
+ return (jsxs("div", { className: "input-form-email", children: [jsx("input", { className: `input-form ${className} ${error ? 'error' : ''} ${SizeTypes.Large}`, type: InputTypes.Email, placeholder: placeholder, defaultValue: defaultValue, name: name, onChange: (event) => {
1315
+ if (!isValidate) {
1316
+ setIsValidate(true);
1317
+ }
1318
+ setInputValue(event.target.value);
1319
+ }, disabled: disabled }), loadingIcon || declinedIcon || approvedIcon] }));
1320
+ }, (prevProps, nextProps) => {
1321
+ const testValue = prevProps.defaultValue === nextProps.defaultValue;
1322
+ const testStatus = prevProps.validationStatus === nextProps.validationStatus;
1323
+ return !(!testValue || !testStatus);
1324
+ });
1325
+ InputFormEmail.defaultProps = {
1326
+ className: '',
1327
+ defaultValue: '',
1328
+ placeholder: '',
1329
+ disabled: false,
1330
+ error: false,
1331
+ validationStatus: ValidationStatusTypes.Initial,
1332
+ };
1333
+
1334
+ const CheckboxForm = memo((props) => {
1335
+ const { label, className, name, defaultValue, onChange, disabled, } = props;
1336
+ const handleChange = useCallback((event) => {
1337
+ if (onChange) {
1338
+ onChange({
1339
+ name,
1340
+ value: event.target.checked,
1341
+ });
1342
+ }
1343
+ }, []);
1344
+ return (jsxs("label", { className: "checkbox-form", children: [jsx("input", { className: ` ${disabled ? 'disabled' : ''} ${className}`, type: "checkbox", name: name, checked: defaultValue, onChange: handleChange, disabled: disabled }), jsx("span", { className: "checkmark" }), jsx("p", { children: label })] }));
1345
+ }, (prevProps, nextProps) => prevProps.defaultValue === nextProps.defaultValue);
1346
+ CheckboxForm.defaultProps = {
1347
+ className: '',
1348
+ defaultValue: false,
1349
+ disabled: false,
1350
+ };
1351
+
1352
+ const Step = ({ item, index, className, itemsCount, isMobile, }) => (jsxs("li", { className: `navigation-step ${className}`, value: index, children: [item?.icon, jsxs("div", { className: "step-label", children: [jsx("span", { className: "step-name", children: isMobile ? `${item?.name} / ${itemsCount}` : item?.name }), jsx("span", { className: "step-title", children: item?.title })] }), !isMobile && jsx("span", { className: `navigation-dot ${className}` })] }));
1353
+ Step.defaultProps = {
1354
+ className: '',
1355
+ isMobile: false,
1356
+ };
1357
+
1358
+ const SdkTooltip = ({ description }) => (jsx(ReactTooltip, { placement: "left", overlay: jsx("span", { className: "tooltip-text", children: description }), overlayClassName: "tooltip-container", defaultVisible: false, children: jsx("div", { children: jsx(IconTooltip, { className: "tooltip-icon" }) }) }));
1359
+
1360
+ const TooltipForm = ({ id, description }) => (jsx(SdkTooltip, { id: id, description: description }));
1361
+
1362
+ const HeaderNavGroup = ({ className, navItems, isExternal = false, }) => (jsx(Fragment, { children: navItems.map((navItem, index) => {
1363
+ const isLogin = navItem.name?.toUpperCase() === 'LOGIN';
1364
+ const isLogout = navItem.name?.toUpperCase() === 'LOGOUT';
1365
+ const isSignup = navItem.name?.toUpperCase() === 'SIGNUP';
1366
+ if (!isExternal) {
1367
+ return (jsx(NavLink, { className: `${className} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, to: isExternal ? { pathname: navItem.link } : navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
1368
+ }
1369
+ return (jsx("a", { className: `${className} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, href: navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
1370
+ }) }));
1371
+ HeaderNavGroup.defaultProps = {
1372
+ className: '',
1373
+ };
1374
+
1375
+ const HeaderDropDown = ({ name, navItems }) => {
1376
+ const [menuIsOpen, setMenuIsOpen] = useState(false);
1377
+ const handleDropdownClick = (event) => {
1378
+ switch (event.type) {
1379
+ case 'click':
1380
+ setMenuIsOpen(!menuIsOpen);
1381
+ break;
1382
+ case 'blur':
1383
+ setMenuIsOpen(false);
1384
+ break;
1385
+ }
1386
+ };
1387
+ return (jsxs(Fragment, { children: [jsxs("button", { className: "dropdown", onBlur: handleDropdownClick, onClick: handleDropdownClick, children: [jsx("h6", { children: name }), jsx(IconDropdownArrow, { className: menuIsOpen ? 'rotated' : '' })] }), menuIsOpen && (jsx("div", { className: "user-menu", children: navItems.map((navItem) => {
1388
+ const isLogout = navItem.name?.toUpperCase() === 'LOGOUT';
1389
+ return (jsx("a", { className: `${isLogout ? 'logout' : ''}`, href: navItem.link, target: "_blank", rel: "noreferrer", children: navItem.name }));
1390
+ }) }))] }));
1391
+ };
1392
+
1393
+ const OfferPrice = ({ companyLogo, price, className }) => (jsxs("div", { className: "offer-price", children: [jsx("img", { src: companyLogo, alt: "company logo" }), jsxs("div", { className: `price-container ${className}`, children: [jsxs("h1", { children: ["$", price?.monthly, jsx("span", { children: "/ month" })] }), jsxs("h2", { children: ["$", price?.yearly, jsx("span", { children: "/ year" })] })] })] }));
1394
+ OfferPrice.defaultProps = {
1395
+ companyLogo: '',
1396
+ price: { monthly: 0, yearly: 0 },
1397
+ };
1398
+
1399
+ const OfferHeader = ({ companyName, isBestOffer, className }) => (jsxs("div", { className: "offer-header", children: [jsx("h3", { className: className, children: companyName }), isBestOffer && jsx("span", { className: "best-offer", children: "Best Offer" })] }));
1400
+ OfferHeader.defaultProps = {
1401
+ companyName: '',
1402
+ isBestOffer: false,
1403
+ className: '',
1404
+ };
1405
+
1406
+ const OfferDetailTitle = ({ name, companyType, className, }) => {
1407
+ let title;
1408
+ switch (companyType) {
1409
+ case CompanyRoleTypes.Offering:
1410
+ title = `Who is ${name}?`;
1411
+ break;
1412
+ case CompanyRoleTypes.Broker:
1413
+ title = `Brokered by ${name}`;
1414
+ break;
1415
+ default:
1416
+ title = name;
1417
+ }
1418
+ return (jsx("h3", { className: `${className} detail-title`, children: title }));
1419
+ };
1420
+ OfferDetailTitle.defaultProps = {
1421
+ name: '',
1422
+ companyType: '',
1423
+ };
1424
+
1425
+ const OfferDetail = ({ logo, name, companyType, description, className, children, }) => (jsxs("div", { className: "offer-detail", children: [logo && jsx("img", { src: logo, alt: "company logo" }), jsx(OfferDetailTitle, { className: className, name: name, companyType: companyType }), description && jsx("p", { children: description }), children] }));
1426
+ OfferDetail.defaultProps = {
1427
+ logo: '',
1428
+ name: '',
1429
+ companyType: '',
1430
+ description: '',
1431
+ };
1432
+
1433
+ const OperationHoursInfo = ({ weekdayHours, saturdayHours, sundayHours, }) => (jsxs("div", { className: "operation-hours", children: [jsxs("h5", { children: ['M - F : ', jsx("span", { children: weekdayHours })] }), jsxs("h5", { children: ['Sa : ', jsx("span", { children: saturdayHours })] }), jsxs("h5", { children: ['Su : ', jsx("span", { children: sundayHours })] })] }));
1434
+ OperationHoursInfo.defaultProps = {
1435
+ weekdayHours: 'CLOSED',
1436
+ saturdayHours: 'CLOSED',
1437
+ sundayHours: 'CLOSED',
1438
+ };
1439
+
1440
+ const QuoteEdit = ({ editClick, title, items, className, }) => (jsxs("div", { className: "quote-edit-container", children: [jsx("h5", { className: className, children: title }), jsx("div", { className: "edit-content", children: items?.map((item, index) => (jsxs("div", { className: "edit-content-item", children: [item.length > 1
1441
+ ? (jsx("div", { children: item.map((value, valueIndex) => (jsx("div", { className: "edit-value", children: value }, `edit-nested-item-${valueIndex}`))) })) : jsx("span", { className: "edit-value", children: item[0] }), jsx("span", { className: "edit-button", role: "none", onClick: editClick && editClick(index || 0), children: "Edit" })] }, `edit-item-${index}`))) })] }));
1442
+ QuoteEdit.defaultProps = {
1443
+ title: '',
1444
+ items: [],
1445
+ className: '',
1446
+ };
1447
+
1448
+ const InfoMessage = memo(({ text, className, isRemovable, onIconClick, }) => (jsxs("div", { className: `info-message ${className}`, children: [jsx("span", { children: text }), isRemovable
1449
+ && (jsx(IconDelete, { className: "icon-label-delete icon-close", onClick: onIconClick, color: "#FCF4F4", height: "1.125rem", width: "1.125rem" }))] })));
1450
+ InfoMessage.defaultProps = {
1451
+ className: '',
1452
+ isRemovable: false,
1453
+ };
1454
+
1455
+ export { API_APP, API_AUTH, API_FORM_CAR, API_FORM_HOME, API_ROOT, AlignTypes, AppTypes, ApplicantListTypes, ButtonArrow, ButtonBase, ButtonForm, ButtonMenu, ButtonTab, ButtonTabArrow, ButtonTabMobile, ButtonTypes, ButtonVariantTypes, CategoryTypes, CheckboxForm, ColorTypes, ColorVariablesTypes, CompanyRoleTypes, CoverageTypes, DateTypes, DeviceTypeWidthList, DeviceTypes, DirectionTypes, DriverLicenceTypes, DriverListTypes, DriverPriorityTypes, DwellingInfoTypes, GenderTypes, HeaderDropDown, HeaderNavGroup, HomeOwnerTypes, HttpRequestHeaderTypes, IconArrow, IconChecked, IconDecline, IconDelete, IconDropdownArrow, IconLoaderPrimary, IconLoaderSecondary, IconSuccess, IconTabArrow, IconTooltip, InfoMessage, InputForm, InputFormEmail, InputFormLicence, InputFormPhone, InputTypes, InsuranceTypes, MAX_LOCAL_STORAGE_HOURS, ModalTypes, NavigationAddress, NavigationBase, NavigationCar, NavigationDiscount, NavigationPerson, NavigationProperty, NavigationQuotes, OccupationTypes, OfferDetail, OfferDetailTitle, OfferHeader, OfferPrice, OperationHoursInfo, PROFILE_API, QuoteEdit, RequestStatusTypes, RequestTypes, ScreenBPList, ScreenBPTypes, SdkTooltip, SelectForm, SizeTypes, Step, TitleForm, TooltipForm, ValidationStatusTypes, VehicleConditionTypes, VehiclePrimaryUseTypes, addDaysToDate, addMonthsToDate, addYearsToDate, applicantRelationshipOptions, buildingStructureOptions, carCondition, carKeepPlace, carStatus, carUsagePurpose, carWinterTiresCheck, claimTypeOptions, collisionCoverage, compareDates, comprehensiveCoverage, comprehensiveCoverages, constructionTypeOptions, coverageOptions, dailyDriveBusinessDistanceList, deepClone, defaultBrokerPhone, defaultLocalIndex, exteriorFinishOptions, fireHallDistanceOptions, fireHydrantDistanceOptions, firstDriveDistanceList, formatPostalCode, garageTypeOptions, genderOptions, getDateOptions, getDayStartEndDates, getDaysOfMonth, getDifferenceInHours, getDifferenceInMonths, getDifferenceInYears, getEndOfMonth, getEndOfYear, getFormattedDate, getMinDate, getMinDateByYears, getMonthStartEndDates, getNumericOptions, getStartOfMonth, getStartOfYear, getValueIndexInOptions, getValuesFromNumbers, getYearIntervalOptions, getYearStartEndDates, heatingTypeOptions, homeOwnerTypeOptions, insuranceCancellationReasonOptions, insuredYearsOptions, isDateValid, isValueInOptions, liabilityOptions, licenceSuspensionsReasonOptions, maritalStatusOptions, numberWithCommas, occupationOptions, optionsIsEqual, postalCodeFormat, residentsOptions, subDaysFromDate, subMonthsFromDate, subYearsFromDate, trafficTicketsGroupOptions, useEffectOnce, yearMessage, yearlyDriveDistanceList, yesNoOptions, yesNoOptionsTemporary };
1456
+ //# sourceMappingURL=index.js.map