@popsure/dirty-swan 0.28.0-beta.4 → 0.28.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 (357) hide show
  1. package/Readme.md +2 -0
  2. package/dist/{App.d.ts → cjs/App.d.ts} +0 -1
  3. package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  4. package/dist/{index.js → cjs/index.js} +2811 -1441
  5. package/dist/cjs/index.js.map +1 -0
  6. package/dist/{lib → cjs/lib}/components/autocompleteAddress/demo.d.ts +0 -1
  7. package/dist/cjs/lib/components/autocompleteAddress/index.d.ts +19 -0
  8. package/dist/{lib/components/input/currency → cjs/lib/components/autocompleteAddress}/index.test.d.ts +0 -0
  9. package/dist/{lib/components/autocompleteAddress/util → cjs/lib/components/autocompleteAddress}/mapStyle.d.ts +0 -0
  10. package/dist/{lib → cjs/lib}/components/autocompleteAddress/util/index.d.ts +1 -1
  11. package/dist/{lib → cjs/lib}/components/button/icons/index.d.ts +0 -0
  12. package/dist/cjs/lib/components/button/index.d.ts +13 -0
  13. package/dist/{lib → cjs/lib}/components/cards/cardButton/index.d.ts +0 -0
  14. package/dist/{lib → cjs/lib}/components/cards/cardWithLeftIcon/index.d.ts +0 -0
  15. package/dist/{lib → cjs/lib}/components/cards/cardWithTopIcon/index.d.ts +0 -0
  16. package/dist/{lib → cjs/lib}/components/cards/cardWithTopLeftIcon/index.d.ts +0 -0
  17. package/dist/{lib → cjs/lib}/components/cards/icons/index.d.ts +0 -0
  18. package/dist/{lib → cjs/lib}/components/cards/index.d.ts +0 -0
  19. package/dist/{lib → cjs/lib}/components/cards/infoCard/index.d.ts +0 -0
  20. package/dist/{lib → cjs/lib}/components/chip/index.d.ts +0 -1
  21. package/dist/cjs/lib/components/comparisonTable/components/AccordionItem/AccordionItem.d.ts +9 -0
  22. package/dist/cjs/lib/components/comparisonTable/components/AccordionItem/index.d.ts +1 -0
  23. package/dist/{lib → cjs/lib}/components/comparisonTable/components/Chevron.d.ts +0 -1
  24. package/dist/{lib → cjs/lib}/components/comparisonTable/components/Row/index.d.ts +1 -2
  25. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableArrows/Arrow.d.ts +0 -1
  26. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableArrows/index.d.ts +4 -3
  27. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableInfoButton/index.d.ts +0 -1
  28. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableRating/StarIcon.d.ts +0 -1
  29. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableRating/ZapIcon.d.ts +0 -1
  30. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableRating/index.d.ts +0 -1
  31. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableRowHeader/index.d.ts +0 -1
  32. package/dist/{lib → cjs/lib}/components/comparisonTable/components/TableTrueFalse.d.ts +0 -1
  33. package/dist/cjs/lib/components/comparisonTable/hooks/useComparisonTable.d.ts +14 -0
  34. package/dist/{lib → cjs/lib}/components/comparisonTable/index.d.ts +10 -4
  35. package/dist/{lib → cjs/lib}/components/dateSelector/index.d.ts +0 -1
  36. package/dist/{lib → cjs/lib}/components/downloadButton/index.d.ts +0 -0
  37. package/dist/{lib → cjs/lib}/components/input/autoSuggestInput/index.d.ts +0 -1
  38. package/dist/{lib → cjs/lib}/components/input/autoSuggestMultiSelect/index.d.ts +0 -1
  39. package/dist/{lib → cjs/lib}/components/input/currency/format/index.d.ts +0 -0
  40. package/dist/{lib → cjs/lib}/components/input/currency/index.d.ts +0 -1
  41. package/dist/cjs/lib/components/input/currency/index.test.d.ts +1 -0
  42. package/dist/{lib → cjs/lib}/components/input/iban/formatIban/index.d.ts +0 -0
  43. package/dist/{lib → cjs/lib}/components/input/iban/index.d.ts +0 -1
  44. package/dist/cjs/lib/components/input/index.d.ts +16 -0
  45. package/dist/{lib → cjs/lib}/components/markdown/index.d.ts +0 -0
  46. package/dist/{lib/components/modal/regularModal → cjs/lib/components/modal/bottomModal}/index.d.ts +0 -1
  47. package/dist/{lib → cjs/lib}/components/modal/bottomOrRegularModal/index.d.ts +0 -1
  48. package/dist/{lib → cjs/lib}/components/modal/hooks/useOnClose.d.ts +0 -0
  49. package/dist/{lib → cjs/lib}/components/modal/index.d.ts +0 -0
  50. package/dist/{lib/components/modal/bottomModal → cjs/lib/components/modal/regularModal}/index.d.ts +0 -1
  51. package/dist/cjs/lib/components/multiDropzone/UploadFileCell/index.d.ts +10 -0
  52. package/dist/cjs/lib/components/multiDropzone/icons/index.d.ts +11 -0
  53. package/dist/cjs/lib/components/multiDropzone/index.d.ts +15 -0
  54. package/dist/cjs/lib/components/multiDropzone/index.test.d.ts +1 -0
  55. package/dist/cjs/lib/components/multiDropzone/types.d.ts +31 -0
  56. package/dist/cjs/lib/components/multiDropzone/utils/index.d.ts +11 -0
  57. package/dist/{lib → cjs/lib}/components/segmentedControl/index.d.ts +0 -1
  58. package/dist/cjs/lib/components/segmentedControl/index.test.d.ts +1 -0
  59. package/dist/{lib → cjs/lib}/components/signaturePad/index.d.ts +0 -0
  60. package/dist/{lib → cjs/lib}/index.d.ts +0 -0
  61. package/dist/{lib → cjs/lib}/models/autoSuggestInput/index.d.ts +0 -0
  62. package/dist/{lib → cjs/lib}/models/download.d.ts +0 -0
  63. package/dist/{lib → cjs/lib}/scss/private/base/demo.d.ts +0 -1
  64. package/dist/{lib → cjs/lib}/scss/public/demo.d.ts +0 -1
  65. package/dist/{lib → cjs/lib}/util/calendarDate/index.d.ts +0 -0
  66. package/dist/cjs/lib/util/formatBytes/index.d.ts +1 -0
  67. package/dist/cjs/lib/util/testUtils/customRender.d.ts +7 -0
  68. package/dist/cjs/lib/util/testUtils/index.d.ts +2 -0
  69. package/dist/{lib → cjs/lib}/util/zeroFill.d.ts +0 -0
  70. package/dist/{mapStyle-32849fbf.js → cjs/mapStyle-a64f125f.js} +1 -1
  71. package/dist/cjs/mapStyle-a64f125f.js.map +1 -0
  72. package/dist/esm/App.d.ts +3 -0
  73. package/dist/esm/_commonjsHelpers-0f86abda.js +23 -0
  74. package/dist/esm/_commonjsHelpers-0f86abda.js.map +1 -0
  75. package/dist/esm/components/autocompleteAddress/demo.js +65 -0
  76. package/dist/esm/components/autocompleteAddress/demo.js.map +1 -0
  77. package/dist/esm/components/autocompleteAddress/index.js +2063 -0
  78. package/dist/esm/components/autocompleteAddress/index.js.map +1 -0
  79. package/dist/esm/components/autocompleteAddress/index.test.js +116 -0
  80. package/dist/esm/components/autocompleteAddress/index.test.js.map +1 -0
  81. package/dist/esm/components/button/index.js +25 -0
  82. package/dist/esm/components/button/index.js.map +1 -0
  83. package/dist/esm/components/cards/cardButton/index.js +6 -0
  84. package/dist/esm/components/cards/cardButton/index.js.map +1 -0
  85. package/dist/esm/components/cards/cardWithLeftIcon/index.js +7 -0
  86. package/dist/esm/components/cards/cardWithLeftIcon/index.js.map +1 -0
  87. package/dist/esm/components/cards/cardWithTopIcon/index.js +7 -0
  88. package/dist/esm/components/cards/cardWithTopIcon/index.js.map +1 -0
  89. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js +7 -0
  90. package/dist/esm/components/cards/cardWithTopLeftIcon/index.js.map +1 -0
  91. package/dist/esm/components/cards/index.js +125 -0
  92. package/dist/esm/components/cards/index.js.map +1 -0
  93. package/dist/esm/components/cards/infoCard/index.js +7 -0
  94. package/dist/esm/components/cards/infoCard/index.js.map +1 -0
  95. package/dist/esm/components/chip/index.js +22 -0
  96. package/dist/esm/components/chip/index.js.map +1 -0
  97. package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +32 -0
  98. package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js.map +1 -0
  99. package/dist/esm/components/comparisonTable/components/AccordionItem/index.js +8 -0
  100. package/dist/esm/components/comparisonTable/components/AccordionItem/index.js.map +1 -0
  101. package/dist/esm/components/comparisonTable/components/Chevron.js +10 -0
  102. package/dist/esm/components/comparisonTable/components/Chevron.js.map +1 -0
  103. package/dist/esm/components/comparisonTable/components/Row/index.js +36 -0
  104. package/dist/esm/components/comparisonTable/components/Row/index.js.map +1 -0
  105. package/dist/esm/components/comparisonTable/components/TableArrows/Arrow.js +10 -0
  106. package/dist/esm/components/comparisonTable/components/TableArrows/Arrow.js.map +1 -0
  107. package/dist/esm/components/comparisonTable/components/TableArrows/index.js +24 -0
  108. package/dist/esm/components/comparisonTable/components/TableArrows/index.js.map +1 -0
  109. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +17 -0
  110. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js.map +1 -0
  111. package/dist/esm/components/comparisonTable/components/TableRating/StarIcon.js +10 -0
  112. package/dist/esm/components/comparisonTable/components/TableRating/StarIcon.js.map +1 -0
  113. package/dist/esm/components/comparisonTable/components/TableRating/ZapIcon.js +10 -0
  114. package/dist/esm/components/comparisonTable/components/TableRating/ZapIcon.js.map +1 -0
  115. package/dist/esm/components/comparisonTable/components/TableRating/index.js +27 -0
  116. package/dist/esm/components/comparisonTable/components/TableRating/index.js.map +1 -0
  117. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js +22 -0
  118. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js.map +1 -0
  119. package/dist/esm/components/comparisonTable/components/TableTrueFalse.js +13 -0
  120. package/dist/esm/components/comparisonTable/components/TableTrueFalse.js.map +1 -0
  121. package/dist/esm/components/comparisonTable/index.js +1585 -0
  122. package/dist/esm/components/comparisonTable/index.js.map +1 -0
  123. package/dist/esm/components/dateSelector/index.js +2161 -0
  124. package/dist/esm/components/dateSelector/index.js.map +1 -0
  125. package/dist/esm/components/downloadButton/index.js +36 -0
  126. package/dist/esm/components/downloadButton/index.js.map +1 -0
  127. package/dist/esm/components/input/autoSuggestInput/index.js +2161 -0
  128. package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -0
  129. package/dist/esm/components/input/autoSuggestMultiSelect/index.js +42 -0
  130. package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -0
  131. package/dist/esm/components/input/currency/index.js +52 -0
  132. package/dist/esm/components/input/currency/index.js.map +1 -0
  133. package/dist/esm/components/input/currency/index.test.js +120 -0
  134. package/dist/esm/components/input/currency/index.test.js.map +1 -0
  135. package/dist/esm/components/input/iban/index.js +34 -0
  136. package/dist/esm/components/input/iban/index.js.map +1 -0
  137. package/dist/esm/components/input/index.js +30 -0
  138. package/dist/esm/components/input/index.js.map +1 -0
  139. package/dist/esm/components/markdown/index.js +22164 -0
  140. package/dist/esm/components/markdown/index.js.map +1 -0
  141. package/dist/esm/components/modal/bottomModal/index.js +31 -0
  142. package/dist/esm/components/modal/bottomModal/index.js.map +1 -0
  143. package/dist/esm/components/modal/bottomOrRegularModal/index.js +35 -0
  144. package/dist/esm/components/modal/bottomOrRegularModal/index.js.map +1 -0
  145. package/dist/esm/components/modal/regularModal/index.js +24 -0
  146. package/dist/esm/components/modal/regularModal/index.js.map +1 -0
  147. package/dist/esm/components/multiDropzone/UploadFileCell/index.js +6 -0
  148. package/dist/esm/components/multiDropzone/UploadFileCell/index.js.map +1 -0
  149. package/dist/esm/components/multiDropzone/index.js +2851 -0
  150. package/dist/esm/components/multiDropzone/index.js.map +1 -0
  151. package/dist/esm/components/multiDropzone/index.test.js +7602 -0
  152. package/dist/esm/components/multiDropzone/index.test.js.map +1 -0
  153. package/dist/esm/components/segmentedControl/index.js +42 -0
  154. package/dist/esm/components/segmentedControl/index.js.map +1 -0
  155. package/dist/esm/components/segmentedControl/index.test.js +63 -0
  156. package/dist/esm/components/segmentedControl/index.test.js.map +1 -0
  157. package/dist/esm/components/signaturePad/index.js +560 -0
  158. package/dist/esm/components/signaturePad/index.js.map +1 -0
  159. package/dist/esm/customRender-39982d87.js +24102 -0
  160. package/dist/esm/customRender-39982d87.js.map +1 -0
  161. package/dist/esm/index-171a0108.js +997 -0
  162. package/dist/esm/index-171a0108.js.map +1 -0
  163. package/dist/esm/index-21239ab0.js +237 -0
  164. package/dist/esm/index-21239ab0.js.map +1 -0
  165. package/dist/esm/index-47663d39.js +48 -0
  166. package/dist/esm/index-47663d39.js.map +1 -0
  167. package/dist/esm/index-51913e93.js +382 -0
  168. package/dist/esm/index-51913e93.js.map +1 -0
  169. package/dist/esm/index-be398f1d.js +69 -0
  170. package/dist/esm/index-be398f1d.js.map +1 -0
  171. package/dist/esm/index-dd80248b.js +91 -0
  172. package/dist/esm/index-dd80248b.js.map +1 -0
  173. package/dist/esm/index-e9e37a34.js +62 -0
  174. package/dist/esm/index-e9e37a34.js.map +1 -0
  175. package/dist/esm/index.d.ts +2 -0
  176. package/dist/esm/index.js +49 -0
  177. package/dist/esm/index.js.map +1 -0
  178. package/dist/esm/lib/components/autocompleteAddress/demo.d.ts +4 -0
  179. package/dist/esm/lib/components/autocompleteAddress/index.d.ts +19 -0
  180. package/dist/esm/lib/components/autocompleteAddress/index.test.d.ts +1 -0
  181. package/dist/esm/lib/components/autocompleteAddress/mapStyle.d.ts +2 -0
  182. package/dist/esm/lib/components/autocompleteAddress/util/index.d.ts +4 -0
  183. package/dist/esm/lib/components/button/icons/index.d.ts +9 -0
  184. package/dist/esm/lib/components/button/index.d.ts +13 -0
  185. package/dist/esm/lib/components/cards/cardButton/index.d.ts +16 -0
  186. package/dist/esm/lib/components/cards/cardWithLeftIcon/index.d.ts +14 -0
  187. package/dist/esm/lib/components/cards/cardWithTopIcon/index.d.ts +15 -0
  188. package/dist/esm/lib/components/cards/cardWithTopLeftIcon/index.d.ts +14 -0
  189. package/dist/esm/lib/components/cards/icons/index.d.ts +13 -0
  190. package/dist/esm/lib/components/cards/index.d.ts +16 -0
  191. package/dist/esm/lib/components/cards/infoCard/index.d.ts +13 -0
  192. package/dist/esm/lib/components/chip/index.d.ts +6 -0
  193. package/dist/esm/lib/components/comparisonTable/components/AccordionItem/AccordionItem.d.ts +9 -0
  194. package/dist/esm/lib/components/comparisonTable/components/AccordionItem/index.d.ts +1 -0
  195. package/dist/esm/lib/components/comparisonTable/components/Chevron.d.ts +4 -0
  196. package/dist/esm/lib/components/comparisonTable/components/Row/index.d.ts +11 -0
  197. package/dist/esm/lib/components/comparisonTable/components/TableArrows/Arrow.d.ts +4 -0
  198. package/dist/esm/lib/components/comparisonTable/components/TableArrows/index.d.ts +10 -0
  199. package/dist/esm/lib/components/comparisonTable/components/TableInfoButton/index.d.ts +5 -0
  200. package/dist/esm/lib/components/comparisonTable/components/TableRating/StarIcon.d.ts +4 -0
  201. package/dist/esm/lib/components/comparisonTable/components/TableRating/ZapIcon.d.ts +4 -0
  202. package/dist/esm/lib/components/comparisonTable/components/TableRating/index.d.ts +7 -0
  203. package/dist/esm/lib/components/comparisonTable/components/TableRowHeader/index.d.ts +7 -0
  204. package/dist/esm/lib/components/comparisonTable/components/TableTrueFalse.d.ts +5 -0
  205. package/dist/esm/lib/components/comparisonTable/hooks/useComparisonTable.d.ts +14 -0
  206. package/dist/esm/lib/components/comparisonTable/index.d.ts +51 -0
  207. package/dist/esm/lib/components/dateSelector/index.d.ts +23 -0
  208. package/dist/esm/lib/components/downloadButton/index.d.ts +10 -0
  209. package/dist/esm/lib/components/input/autoSuggestInput/index.d.ts +13 -0
  210. package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.d.ts +11 -0
  211. package/dist/esm/lib/components/input/currency/format/index.d.ts +2 -0
  212. package/dist/esm/lib/components/input/currency/index.d.ts +7 -0
  213. package/dist/esm/lib/components/input/currency/index.test.d.ts +1 -0
  214. package/dist/esm/lib/components/input/iban/formatIban/index.d.ts +1 -0
  215. package/dist/esm/lib/components/input/iban/index.d.ts +6 -0
  216. package/dist/esm/lib/components/input/index.d.ts +16 -0
  217. package/dist/esm/lib/components/markdown/index.d.ts +9 -0
  218. package/dist/esm/lib/components/modal/bottomModal/index.d.ts +3 -0
  219. package/dist/esm/lib/components/modal/bottomOrRegularModal/index.d.ts +3 -0
  220. package/dist/esm/lib/components/modal/hooks/useOnClose.d.ts +7 -0
  221. package/dist/esm/lib/components/modal/index.d.ts +13 -0
  222. package/dist/esm/lib/components/modal/regularModal/index.d.ts +3 -0
  223. package/dist/esm/lib/components/multiDropzone/UploadFileCell/index.d.ts +10 -0
  224. package/dist/esm/lib/components/multiDropzone/icons/index.d.ts +11 -0
  225. package/dist/esm/lib/components/multiDropzone/index.d.ts +15 -0
  226. package/dist/esm/lib/components/multiDropzone/index.test.d.ts +1 -0
  227. package/dist/esm/lib/components/multiDropzone/types.d.ts +31 -0
  228. package/dist/esm/lib/components/multiDropzone/utils/index.d.ts +11 -0
  229. package/dist/esm/lib/components/segmentedControl/index.d.ts +11 -0
  230. package/dist/esm/lib/components/segmentedControl/index.test.d.ts +1 -0
  231. package/dist/esm/lib/components/signaturePad/index.d.ts +19 -0
  232. package/dist/esm/lib/index.d.ts +20 -0
  233. package/dist/esm/lib/models/autoSuggestInput/index.d.ts +4 -0
  234. package/dist/esm/lib/models/download.d.ts +1 -0
  235. package/dist/esm/lib/scss/private/base/demo.d.ts +5 -0
  236. package/dist/esm/lib/scss/public/demo.d.ts +1 -0
  237. package/dist/esm/lib/util/calendarDate/index.d.ts +3 -0
  238. package/dist/esm/lib/util/formatBytes/index.d.ts +1 -0
  239. package/dist/esm/lib/util/testUtils/customRender.d.ts +7 -0
  240. package/dist/esm/lib/util/testUtils/index.d.ts +2 -0
  241. package/dist/esm/lib/util/zeroFill.d.ts +1 -0
  242. package/dist/esm/mapStyle-1288a869.js +187 -0
  243. package/dist/esm/mapStyle-1288a869.js.map +1 -0
  244. package/dist/esm/scss/private/base/demo.js +80 -0
  245. package/dist/esm/scss/private/base/demo.js.map +1 -0
  246. package/dist/esm/scss/public/demo.js +284 -0
  247. package/dist/esm/scss/public/demo.js.map +1 -0
  248. package/dist/esm/style-inject.es-1f59c1d0.js +29 -0
  249. package/dist/esm/style-inject.es-1f59c1d0.js.map +1 -0
  250. package/dist/esm/tslib.es6-5bc94358.js +104 -0
  251. package/dist/esm/tslib.es6-5bc94358.js.map +1 -0
  252. package/dist/esm/useOnClose-54f9e6b9.js +40 -0
  253. package/dist/esm/useOnClose-54f9e6b9.js.map +1 -0
  254. package/dist/esm/util/testUtils/customRender.js +7 -0
  255. package/dist/esm/util/testUtils/customRender.js.map +1 -0
  256. package/dist/esm/v4-d2999257.js +69 -0
  257. package/dist/esm/v4-d2999257.js.map +1 -0
  258. package/dist/index.css +75 -3
  259. package/dist/index.css.map +1 -1
  260. package/dist/lib/scss/index.scss +2 -0
  261. package/dist/lib/scss/private/components/_input.scss +1 -3
  262. package/dist/lib/scss/public/demo.tsx +1 -1
  263. package/{src/lib/components/autocompleteAddress/modes/dynamic.module.scss → dist/lib/scss/third-party/_google_places.scss} +37 -37
  264. package/dist/lib/scss/third-party/_index.scss +1 -0
  265. package/dist/lib/scss/utils/_index.scss +12 -0
  266. package/package.json +14 -8
  267. package/src/lib/components/autocompleteAddress/demo.tsx +5 -9
  268. package/src/lib/components/autocompleteAddress/index.stories.mdx +1 -1
  269. package/src/lib/components/autocompleteAddress/index.test.tsx +95 -0
  270. package/src/lib/components/autocompleteAddress/index.tsx +315 -113
  271. package/src/lib/components/autocompleteAddress/{util/mapStyle.ts → mapStyle.ts} +0 -0
  272. package/src/lib/components/autocompleteAddress/util/index.ts +1 -1
  273. package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.module.scss +44 -0
  274. package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.tsx +74 -0
  275. package/src/lib/components/comparisonTable/components/AccordionItem/index.tsx +1 -0
  276. package/src/lib/components/comparisonTable/components/Row/index.tsx +1 -3
  277. package/src/lib/components/comparisonTable/components/Row/style.module.scss +11 -2
  278. package/src/lib/components/comparisonTable/components/TableArrows/index.tsx +2 -4
  279. package/src/lib/components/comparisonTable/components/TableArrows/style.module.scss +3 -1
  280. package/src/lib/components/comparisonTable/hooks/useComparisonTable.ts +124 -0
  281. package/src/lib/components/comparisonTable/index.stories.mdx +226 -8
  282. package/src/lib/components/comparisonTable/index.tsx +175 -122
  283. package/src/lib/components/comparisonTable/style.module.scss +16 -6
  284. package/src/lib/components/input/autoSuggestInput/style.module.scss +4 -1
  285. package/src/lib/components/input/currency/index.stories.mdx +8 -0
  286. package/src/lib/components/input/currency/index.test.tsx +22 -22
  287. package/src/lib/components/input/index.stories.mdx +42 -0
  288. package/src/lib/components/input/index.tsx +77 -41
  289. package/src/lib/components/input/style.module.scss +10 -0
  290. package/src/lib/components/modal/regularModal/index.tsx +14 -12
  291. package/src/lib/components/modal/regularModal/style.module.scss +16 -15
  292. package/src/lib/components/multiDropzone/UploadFileCell/index.tsx +44 -64
  293. package/src/lib/components/multiDropzone/UploadFileCell/style.module.scss +3 -9
  294. package/src/lib/components/multiDropzone/icons/eye.svg +10 -3
  295. package/src/lib/components/multiDropzone/icons/file-error.svg +4 -0
  296. package/src/lib/components/multiDropzone/icons/file-upload.svg +4 -0
  297. package/src/lib/components/multiDropzone/icons/file.svg +4 -0
  298. package/src/lib/components/multiDropzone/icons/index.ts +12 -44
  299. package/src/lib/components/multiDropzone/icons/trash-error.svg +6 -0
  300. package/src/lib/components/multiDropzone/icons/trash.svg +5 -5
  301. package/src/lib/components/multiDropzone/icons/upload-small.svg +12 -0
  302. package/src/lib/components/multiDropzone/index.stories.mdx +75 -0
  303. package/src/lib/components/multiDropzone/index.test.tsx +230 -0
  304. package/src/lib/components/multiDropzone/index.tsx +104 -66
  305. package/src/lib/components/multiDropzone/types.ts +36 -0
  306. package/src/lib/components/multiDropzone/utils/index.test.ts +112 -0
  307. package/src/lib/components/multiDropzone/utils/index.ts +69 -0
  308. package/src/lib/components/segmentedControl/index.test.tsx +45 -0
  309. package/src/lib/components/segmentedControl/index.tsx +1 -0
  310. package/src/lib/scss/index.scss +2 -0
  311. package/src/lib/scss/private/components/_input.scss +1 -3
  312. package/src/lib/scss/public/demo.tsx +1 -1
  313. package/src/lib/scss/third-party/_google_places.scss +62 -0
  314. package/src/lib/scss/third-party/_index.scss +1 -0
  315. package/src/lib/scss/utils/_index.scss +12 -0
  316. package/src/lib/util/formatBytes/index.test.ts +19 -0
  317. package/src/lib/util/formatBytes/index.ts +13 -0
  318. package/src/lib/util/testUtils/customRender.tsx +15 -0
  319. package/src/lib/util/testUtils/index.ts +5 -0
  320. package/src/setupTests.js +50 -2
  321. package/dist/index.js.map +0 -1
  322. package/dist/lib/components/autocompleteAddress/components/GoogleMapsWrapper.d.ts +0 -8
  323. package/dist/lib/components/autocompleteAddress/index.d.ts +0 -23
  324. package/dist/lib/components/autocompleteAddress/modes/dynamic.d.ts +0 -12
  325. package/dist/lib/components/autocompleteAddress/modes/manual.d.ts +0 -9
  326. package/dist/lib/components/autocompleteAddress/util/googleMapsLoader.d.ts +0 -17
  327. package/dist/lib/components/button/index.d.ts +0 -13
  328. package/dist/lib/components/comparisonTable/hooks/useActiveTableArrows.d.ts +0 -10
  329. package/dist/lib/components/input/index.d.ts +0 -10
  330. package/dist/lib/components/multiDropzone/UploadFileCell/index.d.ts +0 -9
  331. package/dist/lib/components/multiDropzone/icons/index.d.ts +0 -25
  332. package/dist/lib/components/multiDropzone/index.d.ts +0 -21
  333. package/dist/mapStyle-32849fbf.js.map +0 -1
  334. package/src/lib/components/autocompleteAddress/components/GoogleMapsWrapper.tsx +0 -81
  335. package/src/lib/components/autocompleteAddress/modes/dynamic.tsx +0 -118
  336. package/src/lib/components/autocompleteAddress/modes/manual.tsx +0 -81
  337. package/src/lib/components/autocompleteAddress/util/googleMapsLoader.tsx +0 -73
  338. package/src/lib/components/comparisonTable/hooks/useActiveTableArrows.ts +0 -63
  339. package/src/lib/components/multiDropzone/icons/bmp-complete.svg +0 -10
  340. package/src/lib/components/multiDropzone/icons/bmp.svg +0 -10
  341. package/src/lib/components/multiDropzone/icons/doc-complete.svg +0 -11
  342. package/src/lib/components/multiDropzone/icons/doc.svg +0 -11
  343. package/src/lib/components/multiDropzone/icons/docx-complete.svg +0 -12
  344. package/src/lib/components/multiDropzone/icons/docx.svg +0 -12
  345. package/src/lib/components/multiDropzone/icons/generic-complete.svg +0 -4
  346. package/src/lib/components/multiDropzone/icons/generic-error.svg +0 -7
  347. package/src/lib/components/multiDropzone/icons/generic.svg +0 -4
  348. package/src/lib/components/multiDropzone/icons/heic-complete.svg +0 -11
  349. package/src/lib/components/multiDropzone/icons/heic.svg +0 -11
  350. package/src/lib/components/multiDropzone/icons/jpeg-complete.svg +0 -11
  351. package/src/lib/components/multiDropzone/icons/jpeg.svg +0 -11
  352. package/src/lib/components/multiDropzone/icons/jpg-complete.svg +0 -10
  353. package/src/lib/components/multiDropzone/icons/jpg.svg +0 -10
  354. package/src/lib/components/multiDropzone/icons/pdf-complete.svg +0 -8
  355. package/src/lib/components/multiDropzone/icons/pdf.svg +0 -8
  356. package/src/lib/components/multiDropzone/icons/png-complete.svg +0 -10
  357. package/src/lib/components/multiDropzone/icons/png.svg +0 -10
@@ -0,0 +1,2063 @@
1
+ import { _ as __assign } from '../../tslib.es6-5bc94358.js';
2
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
+ import { useState, useRef, useEffect, useCallback } from 'react';
4
+ import { c as classnames } from '../../index-e9e37a34.js';
5
+ import { l as lodash_debounce } from '../../index-51913e93.js';
6
+ import { c as commonjsGlobal } from '../../_commonjsHelpers-0f86abda.js';
7
+ import Input from '../input/index.js';
8
+ import { s as styleInject } from '../../style-inject.es-1f59c1d0.js';
9
+ import '../../v4-d2999257.js';
10
+ import 'crypto';
11
+
12
+ var lodash_isequal = {exports: {}};
13
+
14
+ /**
15
+ * Lodash (Custom Build) <https://lodash.com/>
16
+ * Build: `lodash modularize exports="npm" -o ./`
17
+ * Copyright JS Foundation and other contributors <https://js.foundation/>
18
+ * Released under MIT license <https://lodash.com/license>
19
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
20
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
21
+ */
22
+
23
+ (function (module, exports) {
24
+ /** Used as the size to enable large array optimizations. */
25
+ var LARGE_ARRAY_SIZE = 200;
26
+
27
+ /** Used to stand-in for `undefined` hash values. */
28
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
29
+
30
+ /** Used to compose bitmasks for value comparisons. */
31
+ var COMPARE_PARTIAL_FLAG = 1,
32
+ COMPARE_UNORDERED_FLAG = 2;
33
+
34
+ /** Used as references for various `Number` constants. */
35
+ var MAX_SAFE_INTEGER = 9007199254740991;
36
+
37
+ /** `Object#toString` result references. */
38
+ var argsTag = '[object Arguments]',
39
+ arrayTag = '[object Array]',
40
+ asyncTag = '[object AsyncFunction]',
41
+ boolTag = '[object Boolean]',
42
+ dateTag = '[object Date]',
43
+ errorTag = '[object Error]',
44
+ funcTag = '[object Function]',
45
+ genTag = '[object GeneratorFunction]',
46
+ mapTag = '[object Map]',
47
+ numberTag = '[object Number]',
48
+ nullTag = '[object Null]',
49
+ objectTag = '[object Object]',
50
+ promiseTag = '[object Promise]',
51
+ proxyTag = '[object Proxy]',
52
+ regexpTag = '[object RegExp]',
53
+ setTag = '[object Set]',
54
+ stringTag = '[object String]',
55
+ symbolTag = '[object Symbol]',
56
+ undefinedTag = '[object Undefined]',
57
+ weakMapTag = '[object WeakMap]';
58
+
59
+ var arrayBufferTag = '[object ArrayBuffer]',
60
+ dataViewTag = '[object DataView]',
61
+ float32Tag = '[object Float32Array]',
62
+ float64Tag = '[object Float64Array]',
63
+ int8Tag = '[object Int8Array]',
64
+ int16Tag = '[object Int16Array]',
65
+ int32Tag = '[object Int32Array]',
66
+ uint8Tag = '[object Uint8Array]',
67
+ uint8ClampedTag = '[object Uint8ClampedArray]',
68
+ uint16Tag = '[object Uint16Array]',
69
+ uint32Tag = '[object Uint32Array]';
70
+
71
+ /**
72
+ * Used to match `RegExp`
73
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
74
+ */
75
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
76
+
77
+ /** Used to detect host constructors (Safari). */
78
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
79
+
80
+ /** Used to detect unsigned integer values. */
81
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
82
+
83
+ /** Used to identify `toStringTag` values of typed arrays. */
84
+ var typedArrayTags = {};
85
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
86
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
87
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
88
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
89
+ typedArrayTags[uint32Tag] = true;
90
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
91
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
92
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
93
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
94
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
95
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
96
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
97
+ typedArrayTags[weakMapTag] = false;
98
+
99
+ /** Detect free variable `global` from Node.js. */
100
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
101
+
102
+ /** Detect free variable `self`. */
103
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
104
+
105
+ /** Used as a reference to the global object. */
106
+ var root = freeGlobal || freeSelf || Function('return this')();
107
+
108
+ /** Detect free variable `exports`. */
109
+ var freeExports = exports && !exports.nodeType && exports;
110
+
111
+ /** Detect free variable `module`. */
112
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
113
+
114
+ /** Detect the popular CommonJS extension `module.exports`. */
115
+ var moduleExports = freeModule && freeModule.exports === freeExports;
116
+
117
+ /** Detect free variable `process` from Node.js. */
118
+ var freeProcess = moduleExports && freeGlobal.process;
119
+
120
+ /** Used to access faster Node.js helpers. */
121
+ var nodeUtil = (function() {
122
+ try {
123
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
124
+ } catch (e) {}
125
+ }());
126
+
127
+ /* Node.js helper references. */
128
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
129
+
130
+ /**
131
+ * A specialized version of `_.filter` for arrays without support for
132
+ * iteratee shorthands.
133
+ *
134
+ * @private
135
+ * @param {Array} [array] The array to iterate over.
136
+ * @param {Function} predicate The function invoked per iteration.
137
+ * @returns {Array} Returns the new filtered array.
138
+ */
139
+ function arrayFilter(array, predicate) {
140
+ var index = -1,
141
+ length = array == null ? 0 : array.length,
142
+ resIndex = 0,
143
+ result = [];
144
+
145
+ while (++index < length) {
146
+ var value = array[index];
147
+ if (predicate(value, index, array)) {
148
+ result[resIndex++] = value;
149
+ }
150
+ }
151
+ return result;
152
+ }
153
+
154
+ /**
155
+ * Appends the elements of `values` to `array`.
156
+ *
157
+ * @private
158
+ * @param {Array} array The array to modify.
159
+ * @param {Array} values The values to append.
160
+ * @returns {Array} Returns `array`.
161
+ */
162
+ function arrayPush(array, values) {
163
+ var index = -1,
164
+ length = values.length,
165
+ offset = array.length;
166
+
167
+ while (++index < length) {
168
+ array[offset + index] = values[index];
169
+ }
170
+ return array;
171
+ }
172
+
173
+ /**
174
+ * A specialized version of `_.some` for arrays without support for iteratee
175
+ * shorthands.
176
+ *
177
+ * @private
178
+ * @param {Array} [array] The array to iterate over.
179
+ * @param {Function} predicate The function invoked per iteration.
180
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
181
+ * else `false`.
182
+ */
183
+ function arraySome(array, predicate) {
184
+ var index = -1,
185
+ length = array == null ? 0 : array.length;
186
+
187
+ while (++index < length) {
188
+ if (predicate(array[index], index, array)) {
189
+ return true;
190
+ }
191
+ }
192
+ return false;
193
+ }
194
+
195
+ /**
196
+ * The base implementation of `_.times` without support for iteratee shorthands
197
+ * or max array length checks.
198
+ *
199
+ * @private
200
+ * @param {number} n The number of times to invoke `iteratee`.
201
+ * @param {Function} iteratee The function invoked per iteration.
202
+ * @returns {Array} Returns the array of results.
203
+ */
204
+ function baseTimes(n, iteratee) {
205
+ var index = -1,
206
+ result = Array(n);
207
+
208
+ while (++index < n) {
209
+ result[index] = iteratee(index);
210
+ }
211
+ return result;
212
+ }
213
+
214
+ /**
215
+ * The base implementation of `_.unary` without support for storing metadata.
216
+ *
217
+ * @private
218
+ * @param {Function} func The function to cap arguments for.
219
+ * @returns {Function} Returns the new capped function.
220
+ */
221
+ function baseUnary(func) {
222
+ return function(value) {
223
+ return func(value);
224
+ };
225
+ }
226
+
227
+ /**
228
+ * Checks if a `cache` value for `key` exists.
229
+ *
230
+ * @private
231
+ * @param {Object} cache The cache to query.
232
+ * @param {string} key The key of the entry to check.
233
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
234
+ */
235
+ function cacheHas(cache, key) {
236
+ return cache.has(key);
237
+ }
238
+
239
+ /**
240
+ * Gets the value at `key` of `object`.
241
+ *
242
+ * @private
243
+ * @param {Object} [object] The object to query.
244
+ * @param {string} key The key of the property to get.
245
+ * @returns {*} Returns the property value.
246
+ */
247
+ function getValue(object, key) {
248
+ return object == null ? undefined : object[key];
249
+ }
250
+
251
+ /**
252
+ * Converts `map` to its key-value pairs.
253
+ *
254
+ * @private
255
+ * @param {Object} map The map to convert.
256
+ * @returns {Array} Returns the key-value pairs.
257
+ */
258
+ function mapToArray(map) {
259
+ var index = -1,
260
+ result = Array(map.size);
261
+
262
+ map.forEach(function(value, key) {
263
+ result[++index] = [key, value];
264
+ });
265
+ return result;
266
+ }
267
+
268
+ /**
269
+ * Creates a unary function that invokes `func` with its argument transformed.
270
+ *
271
+ * @private
272
+ * @param {Function} func The function to wrap.
273
+ * @param {Function} transform The argument transform.
274
+ * @returns {Function} Returns the new function.
275
+ */
276
+ function overArg(func, transform) {
277
+ return function(arg) {
278
+ return func(transform(arg));
279
+ };
280
+ }
281
+
282
+ /**
283
+ * Converts `set` to an array of its values.
284
+ *
285
+ * @private
286
+ * @param {Object} set The set to convert.
287
+ * @returns {Array} Returns the values.
288
+ */
289
+ function setToArray(set) {
290
+ var index = -1,
291
+ result = Array(set.size);
292
+
293
+ set.forEach(function(value) {
294
+ result[++index] = value;
295
+ });
296
+ return result;
297
+ }
298
+
299
+ /** Used for built-in method references. */
300
+ var arrayProto = Array.prototype,
301
+ funcProto = Function.prototype,
302
+ objectProto = Object.prototype;
303
+
304
+ /** Used to detect overreaching core-js shims. */
305
+ var coreJsData = root['__core-js_shared__'];
306
+
307
+ /** Used to resolve the decompiled source of functions. */
308
+ var funcToString = funcProto.toString;
309
+
310
+ /** Used to check objects for own properties. */
311
+ var hasOwnProperty = objectProto.hasOwnProperty;
312
+
313
+ /** Used to detect methods masquerading as native. */
314
+ var maskSrcKey = (function() {
315
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
316
+ return uid ? ('Symbol(src)_1.' + uid) : '';
317
+ }());
318
+
319
+ /**
320
+ * Used to resolve the
321
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
322
+ * of values.
323
+ */
324
+ var nativeObjectToString = objectProto.toString;
325
+
326
+ /** Used to detect if a method is native. */
327
+ var reIsNative = RegExp('^' +
328
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
329
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
330
+ );
331
+
332
+ /** Built-in value references. */
333
+ var Buffer = moduleExports ? root.Buffer : undefined,
334
+ Symbol = root.Symbol,
335
+ Uint8Array = root.Uint8Array,
336
+ propertyIsEnumerable = objectProto.propertyIsEnumerable,
337
+ splice = arrayProto.splice,
338
+ symToStringTag = Symbol ? Symbol.toStringTag : undefined;
339
+
340
+ /* Built-in method references for those with the same name as other `lodash` methods. */
341
+ var nativeGetSymbols = Object.getOwnPropertySymbols,
342
+ nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
343
+ nativeKeys = overArg(Object.keys, Object);
344
+
345
+ /* Built-in method references that are verified to be native. */
346
+ var DataView = getNative(root, 'DataView'),
347
+ Map = getNative(root, 'Map'),
348
+ Promise = getNative(root, 'Promise'),
349
+ Set = getNative(root, 'Set'),
350
+ WeakMap = getNative(root, 'WeakMap'),
351
+ nativeCreate = getNative(Object, 'create');
352
+
353
+ /** Used to detect maps, sets, and weakmaps. */
354
+ var dataViewCtorString = toSource(DataView),
355
+ mapCtorString = toSource(Map),
356
+ promiseCtorString = toSource(Promise),
357
+ setCtorString = toSource(Set),
358
+ weakMapCtorString = toSource(WeakMap);
359
+
360
+ /** Used to convert symbols to primitives and strings. */
361
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
362
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
363
+
364
+ /**
365
+ * Creates a hash object.
366
+ *
367
+ * @private
368
+ * @constructor
369
+ * @param {Array} [entries] The key-value pairs to cache.
370
+ */
371
+ function Hash(entries) {
372
+ var index = -1,
373
+ length = entries == null ? 0 : entries.length;
374
+
375
+ this.clear();
376
+ while (++index < length) {
377
+ var entry = entries[index];
378
+ this.set(entry[0], entry[1]);
379
+ }
380
+ }
381
+
382
+ /**
383
+ * Removes all key-value entries from the hash.
384
+ *
385
+ * @private
386
+ * @name clear
387
+ * @memberOf Hash
388
+ */
389
+ function hashClear() {
390
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
391
+ this.size = 0;
392
+ }
393
+
394
+ /**
395
+ * Removes `key` and its value from the hash.
396
+ *
397
+ * @private
398
+ * @name delete
399
+ * @memberOf Hash
400
+ * @param {Object} hash The hash to modify.
401
+ * @param {string} key The key of the value to remove.
402
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
403
+ */
404
+ function hashDelete(key) {
405
+ var result = this.has(key) && delete this.__data__[key];
406
+ this.size -= result ? 1 : 0;
407
+ return result;
408
+ }
409
+
410
+ /**
411
+ * Gets the hash value for `key`.
412
+ *
413
+ * @private
414
+ * @name get
415
+ * @memberOf Hash
416
+ * @param {string} key The key of the value to get.
417
+ * @returns {*} Returns the entry value.
418
+ */
419
+ function hashGet(key) {
420
+ var data = this.__data__;
421
+ if (nativeCreate) {
422
+ var result = data[key];
423
+ return result === HASH_UNDEFINED ? undefined : result;
424
+ }
425
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
426
+ }
427
+
428
+ /**
429
+ * Checks if a hash value for `key` exists.
430
+ *
431
+ * @private
432
+ * @name has
433
+ * @memberOf Hash
434
+ * @param {string} key The key of the entry to check.
435
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
436
+ */
437
+ function hashHas(key) {
438
+ var data = this.__data__;
439
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
440
+ }
441
+
442
+ /**
443
+ * Sets the hash `key` to `value`.
444
+ *
445
+ * @private
446
+ * @name set
447
+ * @memberOf Hash
448
+ * @param {string} key The key of the value to set.
449
+ * @param {*} value The value to set.
450
+ * @returns {Object} Returns the hash instance.
451
+ */
452
+ function hashSet(key, value) {
453
+ var data = this.__data__;
454
+ this.size += this.has(key) ? 0 : 1;
455
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
456
+ return this;
457
+ }
458
+
459
+ // Add methods to `Hash`.
460
+ Hash.prototype.clear = hashClear;
461
+ Hash.prototype['delete'] = hashDelete;
462
+ Hash.prototype.get = hashGet;
463
+ Hash.prototype.has = hashHas;
464
+ Hash.prototype.set = hashSet;
465
+
466
+ /**
467
+ * Creates an list cache object.
468
+ *
469
+ * @private
470
+ * @constructor
471
+ * @param {Array} [entries] The key-value pairs to cache.
472
+ */
473
+ function ListCache(entries) {
474
+ var index = -1,
475
+ length = entries == null ? 0 : entries.length;
476
+
477
+ this.clear();
478
+ while (++index < length) {
479
+ var entry = entries[index];
480
+ this.set(entry[0], entry[1]);
481
+ }
482
+ }
483
+
484
+ /**
485
+ * Removes all key-value entries from the list cache.
486
+ *
487
+ * @private
488
+ * @name clear
489
+ * @memberOf ListCache
490
+ */
491
+ function listCacheClear() {
492
+ this.__data__ = [];
493
+ this.size = 0;
494
+ }
495
+
496
+ /**
497
+ * Removes `key` and its value from the list cache.
498
+ *
499
+ * @private
500
+ * @name delete
501
+ * @memberOf ListCache
502
+ * @param {string} key The key of the value to remove.
503
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
504
+ */
505
+ function listCacheDelete(key) {
506
+ var data = this.__data__,
507
+ index = assocIndexOf(data, key);
508
+
509
+ if (index < 0) {
510
+ return false;
511
+ }
512
+ var lastIndex = data.length - 1;
513
+ if (index == lastIndex) {
514
+ data.pop();
515
+ } else {
516
+ splice.call(data, index, 1);
517
+ }
518
+ --this.size;
519
+ return true;
520
+ }
521
+
522
+ /**
523
+ * Gets the list cache value for `key`.
524
+ *
525
+ * @private
526
+ * @name get
527
+ * @memberOf ListCache
528
+ * @param {string} key The key of the value to get.
529
+ * @returns {*} Returns the entry value.
530
+ */
531
+ function listCacheGet(key) {
532
+ var data = this.__data__,
533
+ index = assocIndexOf(data, key);
534
+
535
+ return index < 0 ? undefined : data[index][1];
536
+ }
537
+
538
+ /**
539
+ * Checks if a list cache value for `key` exists.
540
+ *
541
+ * @private
542
+ * @name has
543
+ * @memberOf ListCache
544
+ * @param {string} key The key of the entry to check.
545
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
546
+ */
547
+ function listCacheHas(key) {
548
+ return assocIndexOf(this.__data__, key) > -1;
549
+ }
550
+
551
+ /**
552
+ * Sets the list cache `key` to `value`.
553
+ *
554
+ * @private
555
+ * @name set
556
+ * @memberOf ListCache
557
+ * @param {string} key The key of the value to set.
558
+ * @param {*} value The value to set.
559
+ * @returns {Object} Returns the list cache instance.
560
+ */
561
+ function listCacheSet(key, value) {
562
+ var data = this.__data__,
563
+ index = assocIndexOf(data, key);
564
+
565
+ if (index < 0) {
566
+ ++this.size;
567
+ data.push([key, value]);
568
+ } else {
569
+ data[index][1] = value;
570
+ }
571
+ return this;
572
+ }
573
+
574
+ // Add methods to `ListCache`.
575
+ ListCache.prototype.clear = listCacheClear;
576
+ ListCache.prototype['delete'] = listCacheDelete;
577
+ ListCache.prototype.get = listCacheGet;
578
+ ListCache.prototype.has = listCacheHas;
579
+ ListCache.prototype.set = listCacheSet;
580
+
581
+ /**
582
+ * Creates a map cache object to store key-value pairs.
583
+ *
584
+ * @private
585
+ * @constructor
586
+ * @param {Array} [entries] The key-value pairs to cache.
587
+ */
588
+ function MapCache(entries) {
589
+ var index = -1,
590
+ length = entries == null ? 0 : entries.length;
591
+
592
+ this.clear();
593
+ while (++index < length) {
594
+ var entry = entries[index];
595
+ this.set(entry[0], entry[1]);
596
+ }
597
+ }
598
+
599
+ /**
600
+ * Removes all key-value entries from the map.
601
+ *
602
+ * @private
603
+ * @name clear
604
+ * @memberOf MapCache
605
+ */
606
+ function mapCacheClear() {
607
+ this.size = 0;
608
+ this.__data__ = {
609
+ 'hash': new Hash,
610
+ 'map': new (Map || ListCache),
611
+ 'string': new Hash
612
+ };
613
+ }
614
+
615
+ /**
616
+ * Removes `key` and its value from the map.
617
+ *
618
+ * @private
619
+ * @name delete
620
+ * @memberOf MapCache
621
+ * @param {string} key The key of the value to remove.
622
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
623
+ */
624
+ function mapCacheDelete(key) {
625
+ var result = getMapData(this, key)['delete'](key);
626
+ this.size -= result ? 1 : 0;
627
+ return result;
628
+ }
629
+
630
+ /**
631
+ * Gets the map value for `key`.
632
+ *
633
+ * @private
634
+ * @name get
635
+ * @memberOf MapCache
636
+ * @param {string} key The key of the value to get.
637
+ * @returns {*} Returns the entry value.
638
+ */
639
+ function mapCacheGet(key) {
640
+ return getMapData(this, key).get(key);
641
+ }
642
+
643
+ /**
644
+ * Checks if a map value for `key` exists.
645
+ *
646
+ * @private
647
+ * @name has
648
+ * @memberOf MapCache
649
+ * @param {string} key The key of the entry to check.
650
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
651
+ */
652
+ function mapCacheHas(key) {
653
+ return getMapData(this, key).has(key);
654
+ }
655
+
656
+ /**
657
+ * Sets the map `key` to `value`.
658
+ *
659
+ * @private
660
+ * @name set
661
+ * @memberOf MapCache
662
+ * @param {string} key The key of the value to set.
663
+ * @param {*} value The value to set.
664
+ * @returns {Object} Returns the map cache instance.
665
+ */
666
+ function mapCacheSet(key, value) {
667
+ var data = getMapData(this, key),
668
+ size = data.size;
669
+
670
+ data.set(key, value);
671
+ this.size += data.size == size ? 0 : 1;
672
+ return this;
673
+ }
674
+
675
+ // Add methods to `MapCache`.
676
+ MapCache.prototype.clear = mapCacheClear;
677
+ MapCache.prototype['delete'] = mapCacheDelete;
678
+ MapCache.prototype.get = mapCacheGet;
679
+ MapCache.prototype.has = mapCacheHas;
680
+ MapCache.prototype.set = mapCacheSet;
681
+
682
+ /**
683
+ *
684
+ * Creates an array cache object to store unique values.
685
+ *
686
+ * @private
687
+ * @constructor
688
+ * @param {Array} [values] The values to cache.
689
+ */
690
+ function SetCache(values) {
691
+ var index = -1,
692
+ length = values == null ? 0 : values.length;
693
+
694
+ this.__data__ = new MapCache;
695
+ while (++index < length) {
696
+ this.add(values[index]);
697
+ }
698
+ }
699
+
700
+ /**
701
+ * Adds `value` to the array cache.
702
+ *
703
+ * @private
704
+ * @name add
705
+ * @memberOf SetCache
706
+ * @alias push
707
+ * @param {*} value The value to cache.
708
+ * @returns {Object} Returns the cache instance.
709
+ */
710
+ function setCacheAdd(value) {
711
+ this.__data__.set(value, HASH_UNDEFINED);
712
+ return this;
713
+ }
714
+
715
+ /**
716
+ * Checks if `value` is in the array cache.
717
+ *
718
+ * @private
719
+ * @name has
720
+ * @memberOf SetCache
721
+ * @param {*} value The value to search for.
722
+ * @returns {number} Returns `true` if `value` is found, else `false`.
723
+ */
724
+ function setCacheHas(value) {
725
+ return this.__data__.has(value);
726
+ }
727
+
728
+ // Add methods to `SetCache`.
729
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
730
+ SetCache.prototype.has = setCacheHas;
731
+
732
+ /**
733
+ * Creates a stack cache object to store key-value pairs.
734
+ *
735
+ * @private
736
+ * @constructor
737
+ * @param {Array} [entries] The key-value pairs to cache.
738
+ */
739
+ function Stack(entries) {
740
+ var data = this.__data__ = new ListCache(entries);
741
+ this.size = data.size;
742
+ }
743
+
744
+ /**
745
+ * Removes all key-value entries from the stack.
746
+ *
747
+ * @private
748
+ * @name clear
749
+ * @memberOf Stack
750
+ */
751
+ function stackClear() {
752
+ this.__data__ = new ListCache;
753
+ this.size = 0;
754
+ }
755
+
756
+ /**
757
+ * Removes `key` and its value from the stack.
758
+ *
759
+ * @private
760
+ * @name delete
761
+ * @memberOf Stack
762
+ * @param {string} key The key of the value to remove.
763
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
764
+ */
765
+ function stackDelete(key) {
766
+ var data = this.__data__,
767
+ result = data['delete'](key);
768
+
769
+ this.size = data.size;
770
+ return result;
771
+ }
772
+
773
+ /**
774
+ * Gets the stack value for `key`.
775
+ *
776
+ * @private
777
+ * @name get
778
+ * @memberOf Stack
779
+ * @param {string} key The key of the value to get.
780
+ * @returns {*} Returns the entry value.
781
+ */
782
+ function stackGet(key) {
783
+ return this.__data__.get(key);
784
+ }
785
+
786
+ /**
787
+ * Checks if a stack value for `key` exists.
788
+ *
789
+ * @private
790
+ * @name has
791
+ * @memberOf Stack
792
+ * @param {string} key The key of the entry to check.
793
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
794
+ */
795
+ function stackHas(key) {
796
+ return this.__data__.has(key);
797
+ }
798
+
799
+ /**
800
+ * Sets the stack `key` to `value`.
801
+ *
802
+ * @private
803
+ * @name set
804
+ * @memberOf Stack
805
+ * @param {string} key The key of the value to set.
806
+ * @param {*} value The value to set.
807
+ * @returns {Object} Returns the stack cache instance.
808
+ */
809
+ function stackSet(key, value) {
810
+ var data = this.__data__;
811
+ if (data instanceof ListCache) {
812
+ var pairs = data.__data__;
813
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
814
+ pairs.push([key, value]);
815
+ this.size = ++data.size;
816
+ return this;
817
+ }
818
+ data = this.__data__ = new MapCache(pairs);
819
+ }
820
+ data.set(key, value);
821
+ this.size = data.size;
822
+ return this;
823
+ }
824
+
825
+ // Add methods to `Stack`.
826
+ Stack.prototype.clear = stackClear;
827
+ Stack.prototype['delete'] = stackDelete;
828
+ Stack.prototype.get = stackGet;
829
+ Stack.prototype.has = stackHas;
830
+ Stack.prototype.set = stackSet;
831
+
832
+ /**
833
+ * Creates an array of the enumerable property names of the array-like `value`.
834
+ *
835
+ * @private
836
+ * @param {*} value The value to query.
837
+ * @param {boolean} inherited Specify returning inherited property names.
838
+ * @returns {Array} Returns the array of property names.
839
+ */
840
+ function arrayLikeKeys(value, inherited) {
841
+ var isArr = isArray(value),
842
+ isArg = !isArr && isArguments(value),
843
+ isBuff = !isArr && !isArg && isBuffer(value),
844
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
845
+ skipIndexes = isArr || isArg || isBuff || isType,
846
+ result = skipIndexes ? baseTimes(value.length, String) : [],
847
+ length = result.length;
848
+
849
+ for (var key in value) {
850
+ if ((inherited || hasOwnProperty.call(value, key)) &&
851
+ !(skipIndexes && (
852
+ // Safari 9 has enumerable `arguments.length` in strict mode.
853
+ key == 'length' ||
854
+ // Node.js 0.10 has enumerable non-index properties on buffers.
855
+ (isBuff && (key == 'offset' || key == 'parent')) ||
856
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
857
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
858
+ // Skip index properties.
859
+ isIndex(key, length)
860
+ ))) {
861
+ result.push(key);
862
+ }
863
+ }
864
+ return result;
865
+ }
866
+
867
+ /**
868
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
869
+ *
870
+ * @private
871
+ * @param {Array} array The array to inspect.
872
+ * @param {*} key The key to search for.
873
+ * @returns {number} Returns the index of the matched value, else `-1`.
874
+ */
875
+ function assocIndexOf(array, key) {
876
+ var length = array.length;
877
+ while (length--) {
878
+ if (eq(array[length][0], key)) {
879
+ return length;
880
+ }
881
+ }
882
+ return -1;
883
+ }
884
+
885
+ /**
886
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
887
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
888
+ * symbols of `object`.
889
+ *
890
+ * @private
891
+ * @param {Object} object The object to query.
892
+ * @param {Function} keysFunc The function to get the keys of `object`.
893
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
894
+ * @returns {Array} Returns the array of property names and symbols.
895
+ */
896
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
897
+ var result = keysFunc(object);
898
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
899
+ }
900
+
901
+ /**
902
+ * The base implementation of `getTag` without fallbacks for buggy environments.
903
+ *
904
+ * @private
905
+ * @param {*} value The value to query.
906
+ * @returns {string} Returns the `toStringTag`.
907
+ */
908
+ function baseGetTag(value) {
909
+ if (value == null) {
910
+ return value === undefined ? undefinedTag : nullTag;
911
+ }
912
+ return (symToStringTag && symToStringTag in Object(value))
913
+ ? getRawTag(value)
914
+ : objectToString(value);
915
+ }
916
+
917
+ /**
918
+ * The base implementation of `_.isArguments`.
919
+ *
920
+ * @private
921
+ * @param {*} value The value to check.
922
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
923
+ */
924
+ function baseIsArguments(value) {
925
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
926
+ }
927
+
928
+ /**
929
+ * The base implementation of `_.isEqual` which supports partial comparisons
930
+ * and tracks traversed objects.
931
+ *
932
+ * @private
933
+ * @param {*} value The value to compare.
934
+ * @param {*} other The other value to compare.
935
+ * @param {boolean} bitmask The bitmask flags.
936
+ * 1 - Unordered comparison
937
+ * 2 - Partial comparison
938
+ * @param {Function} [customizer] The function to customize comparisons.
939
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
940
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
941
+ */
942
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
943
+ if (value === other) {
944
+ return true;
945
+ }
946
+ if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
947
+ return value !== value && other !== other;
948
+ }
949
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
950
+ }
951
+
952
+ /**
953
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
954
+ * deep comparisons and tracks traversed objects enabling objects with circular
955
+ * references to be compared.
956
+ *
957
+ * @private
958
+ * @param {Object} object The object to compare.
959
+ * @param {Object} other The other object to compare.
960
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
961
+ * @param {Function} customizer The function to customize comparisons.
962
+ * @param {Function} equalFunc The function to determine equivalents of values.
963
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
964
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
965
+ */
966
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
967
+ var objIsArr = isArray(object),
968
+ othIsArr = isArray(other),
969
+ objTag = objIsArr ? arrayTag : getTag(object),
970
+ othTag = othIsArr ? arrayTag : getTag(other);
971
+
972
+ objTag = objTag == argsTag ? objectTag : objTag;
973
+ othTag = othTag == argsTag ? objectTag : othTag;
974
+
975
+ var objIsObj = objTag == objectTag,
976
+ othIsObj = othTag == objectTag,
977
+ isSameTag = objTag == othTag;
978
+
979
+ if (isSameTag && isBuffer(object)) {
980
+ if (!isBuffer(other)) {
981
+ return false;
982
+ }
983
+ objIsArr = true;
984
+ objIsObj = false;
985
+ }
986
+ if (isSameTag && !objIsObj) {
987
+ stack || (stack = new Stack);
988
+ return (objIsArr || isTypedArray(object))
989
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
990
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
991
+ }
992
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
993
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
994
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
995
+
996
+ if (objIsWrapped || othIsWrapped) {
997
+ var objUnwrapped = objIsWrapped ? object.value() : object,
998
+ othUnwrapped = othIsWrapped ? other.value() : other;
999
+
1000
+ stack || (stack = new Stack);
1001
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1002
+ }
1003
+ }
1004
+ if (!isSameTag) {
1005
+ return false;
1006
+ }
1007
+ stack || (stack = new Stack);
1008
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
1009
+ }
1010
+
1011
+ /**
1012
+ * The base implementation of `_.isNative` without bad shim checks.
1013
+ *
1014
+ * @private
1015
+ * @param {*} value The value to check.
1016
+ * @returns {boolean} Returns `true` if `value` is a native function,
1017
+ * else `false`.
1018
+ */
1019
+ function baseIsNative(value) {
1020
+ if (!isObject(value) || isMasked(value)) {
1021
+ return false;
1022
+ }
1023
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
1024
+ return pattern.test(toSource(value));
1025
+ }
1026
+
1027
+ /**
1028
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
1029
+ *
1030
+ * @private
1031
+ * @param {*} value The value to check.
1032
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1033
+ */
1034
+ function baseIsTypedArray(value) {
1035
+ return isObjectLike(value) &&
1036
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1037
+ }
1038
+
1039
+ /**
1040
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1041
+ *
1042
+ * @private
1043
+ * @param {Object} object The object to query.
1044
+ * @returns {Array} Returns the array of property names.
1045
+ */
1046
+ function baseKeys(object) {
1047
+ if (!isPrototype(object)) {
1048
+ return nativeKeys(object);
1049
+ }
1050
+ var result = [];
1051
+ for (var key in Object(object)) {
1052
+ if (hasOwnProperty.call(object, key) && key != 'constructor') {
1053
+ result.push(key);
1054
+ }
1055
+ }
1056
+ return result;
1057
+ }
1058
+
1059
+ /**
1060
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
1061
+ * partial deep comparisons.
1062
+ *
1063
+ * @private
1064
+ * @param {Array} array The array to compare.
1065
+ * @param {Array} other The other array to compare.
1066
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1067
+ * @param {Function} customizer The function to customize comparisons.
1068
+ * @param {Function} equalFunc The function to determine equivalents of values.
1069
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
1070
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1071
+ */
1072
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1073
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
1074
+ arrLength = array.length,
1075
+ othLength = other.length;
1076
+
1077
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1078
+ return false;
1079
+ }
1080
+ // Assume cyclic values are equal.
1081
+ var stacked = stack.get(array);
1082
+ if (stacked && stack.get(other)) {
1083
+ return stacked == other;
1084
+ }
1085
+ var index = -1,
1086
+ result = true,
1087
+ seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
1088
+
1089
+ stack.set(array, other);
1090
+ stack.set(other, array);
1091
+
1092
+ // Ignore non-index properties.
1093
+ while (++index < arrLength) {
1094
+ var arrValue = array[index],
1095
+ othValue = other[index];
1096
+
1097
+ if (customizer) {
1098
+ var compared = isPartial
1099
+ ? customizer(othValue, arrValue, index, other, array, stack)
1100
+ : customizer(arrValue, othValue, index, array, other, stack);
1101
+ }
1102
+ if (compared !== undefined) {
1103
+ if (compared) {
1104
+ continue;
1105
+ }
1106
+ result = false;
1107
+ break;
1108
+ }
1109
+ // Recursively compare arrays (susceptible to call stack limits).
1110
+ if (seen) {
1111
+ if (!arraySome(other, function(othValue, othIndex) {
1112
+ if (!cacheHas(seen, othIndex) &&
1113
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1114
+ return seen.push(othIndex);
1115
+ }
1116
+ })) {
1117
+ result = false;
1118
+ break;
1119
+ }
1120
+ } else if (!(
1121
+ arrValue === othValue ||
1122
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
1123
+ )) {
1124
+ result = false;
1125
+ break;
1126
+ }
1127
+ }
1128
+ stack['delete'](array);
1129
+ stack['delete'](other);
1130
+ return result;
1131
+ }
1132
+
1133
+ /**
1134
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
1135
+ * the same `toStringTag`.
1136
+ *
1137
+ * **Note:** This function only supports comparing values with tags of
1138
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1139
+ *
1140
+ * @private
1141
+ * @param {Object} object The object to compare.
1142
+ * @param {Object} other The other object to compare.
1143
+ * @param {string} tag The `toStringTag` of the objects to compare.
1144
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1145
+ * @param {Function} customizer The function to customize comparisons.
1146
+ * @param {Function} equalFunc The function to determine equivalents of values.
1147
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1148
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1149
+ */
1150
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1151
+ switch (tag) {
1152
+ case dataViewTag:
1153
+ if ((object.byteLength != other.byteLength) ||
1154
+ (object.byteOffset != other.byteOffset)) {
1155
+ return false;
1156
+ }
1157
+ object = object.buffer;
1158
+ other = other.buffer;
1159
+
1160
+ case arrayBufferTag:
1161
+ if ((object.byteLength != other.byteLength) ||
1162
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1163
+ return false;
1164
+ }
1165
+ return true;
1166
+
1167
+ case boolTag:
1168
+ case dateTag:
1169
+ case numberTag:
1170
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
1171
+ // Invalid dates are coerced to `NaN`.
1172
+ return eq(+object, +other);
1173
+
1174
+ case errorTag:
1175
+ return object.name == other.name && object.message == other.message;
1176
+
1177
+ case regexpTag:
1178
+ case stringTag:
1179
+ // Coerce regexes to strings and treat strings, primitives and objects,
1180
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1181
+ // for more details.
1182
+ return object == (other + '');
1183
+
1184
+ case mapTag:
1185
+ var convert = mapToArray;
1186
+
1187
+ case setTag:
1188
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
1189
+ convert || (convert = setToArray);
1190
+
1191
+ if (object.size != other.size && !isPartial) {
1192
+ return false;
1193
+ }
1194
+ // Assume cyclic values are equal.
1195
+ var stacked = stack.get(object);
1196
+ if (stacked) {
1197
+ return stacked == other;
1198
+ }
1199
+ bitmask |= COMPARE_UNORDERED_FLAG;
1200
+
1201
+ // Recursively compare objects (susceptible to call stack limits).
1202
+ stack.set(object, other);
1203
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1204
+ stack['delete'](object);
1205
+ return result;
1206
+
1207
+ case symbolTag:
1208
+ if (symbolValueOf) {
1209
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
1210
+ }
1211
+ }
1212
+ return false;
1213
+ }
1214
+
1215
+ /**
1216
+ * A specialized version of `baseIsEqualDeep` for objects with support for
1217
+ * partial deep comparisons.
1218
+ *
1219
+ * @private
1220
+ * @param {Object} object The object to compare.
1221
+ * @param {Object} other The other object to compare.
1222
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1223
+ * @param {Function} customizer The function to customize comparisons.
1224
+ * @param {Function} equalFunc The function to determine equivalents of values.
1225
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1226
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1227
+ */
1228
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1229
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
1230
+ objProps = getAllKeys(object),
1231
+ objLength = objProps.length,
1232
+ othProps = getAllKeys(other),
1233
+ othLength = othProps.length;
1234
+
1235
+ if (objLength != othLength && !isPartial) {
1236
+ return false;
1237
+ }
1238
+ var index = objLength;
1239
+ while (index--) {
1240
+ var key = objProps[index];
1241
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
1242
+ return false;
1243
+ }
1244
+ }
1245
+ // Assume cyclic values are equal.
1246
+ var stacked = stack.get(object);
1247
+ if (stacked && stack.get(other)) {
1248
+ return stacked == other;
1249
+ }
1250
+ var result = true;
1251
+ stack.set(object, other);
1252
+ stack.set(other, object);
1253
+
1254
+ var skipCtor = isPartial;
1255
+ while (++index < objLength) {
1256
+ key = objProps[index];
1257
+ var objValue = object[key],
1258
+ othValue = other[key];
1259
+
1260
+ if (customizer) {
1261
+ var compared = isPartial
1262
+ ? customizer(othValue, objValue, key, other, object, stack)
1263
+ : customizer(objValue, othValue, key, object, other, stack);
1264
+ }
1265
+ // Recursively compare objects (susceptible to call stack limits).
1266
+ if (!(compared === undefined
1267
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
1268
+ : compared
1269
+ )) {
1270
+ result = false;
1271
+ break;
1272
+ }
1273
+ skipCtor || (skipCtor = key == 'constructor');
1274
+ }
1275
+ if (result && !skipCtor) {
1276
+ var objCtor = object.constructor,
1277
+ othCtor = other.constructor;
1278
+
1279
+ // Non `Object` object instances with different constructors are not equal.
1280
+ if (objCtor != othCtor &&
1281
+ ('constructor' in object && 'constructor' in other) &&
1282
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
1283
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
1284
+ result = false;
1285
+ }
1286
+ }
1287
+ stack['delete'](object);
1288
+ stack['delete'](other);
1289
+ return result;
1290
+ }
1291
+
1292
+ /**
1293
+ * Creates an array of own enumerable property names and symbols of `object`.
1294
+ *
1295
+ * @private
1296
+ * @param {Object} object The object to query.
1297
+ * @returns {Array} Returns the array of property names and symbols.
1298
+ */
1299
+ function getAllKeys(object) {
1300
+ return baseGetAllKeys(object, keys, getSymbols);
1301
+ }
1302
+
1303
+ /**
1304
+ * Gets the data for `map`.
1305
+ *
1306
+ * @private
1307
+ * @param {Object} map The map to query.
1308
+ * @param {string} key The reference key.
1309
+ * @returns {*} Returns the map data.
1310
+ */
1311
+ function getMapData(map, key) {
1312
+ var data = map.__data__;
1313
+ return isKeyable(key)
1314
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1315
+ : data.map;
1316
+ }
1317
+
1318
+ /**
1319
+ * Gets the native function at `key` of `object`.
1320
+ *
1321
+ * @private
1322
+ * @param {Object} object The object to query.
1323
+ * @param {string} key The key of the method to get.
1324
+ * @returns {*} Returns the function if it's native, else `undefined`.
1325
+ */
1326
+ function getNative(object, key) {
1327
+ var value = getValue(object, key);
1328
+ return baseIsNative(value) ? value : undefined;
1329
+ }
1330
+
1331
+ /**
1332
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1333
+ *
1334
+ * @private
1335
+ * @param {*} value The value to query.
1336
+ * @returns {string} Returns the raw `toStringTag`.
1337
+ */
1338
+ function getRawTag(value) {
1339
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
1340
+ tag = value[symToStringTag];
1341
+
1342
+ try {
1343
+ value[symToStringTag] = undefined;
1344
+ var unmasked = true;
1345
+ } catch (e) {}
1346
+
1347
+ var result = nativeObjectToString.call(value);
1348
+ if (unmasked) {
1349
+ if (isOwn) {
1350
+ value[symToStringTag] = tag;
1351
+ } else {
1352
+ delete value[symToStringTag];
1353
+ }
1354
+ }
1355
+ return result;
1356
+ }
1357
+
1358
+ /**
1359
+ * Creates an array of the own enumerable symbols of `object`.
1360
+ *
1361
+ * @private
1362
+ * @param {Object} object The object to query.
1363
+ * @returns {Array} Returns the array of symbols.
1364
+ */
1365
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1366
+ if (object == null) {
1367
+ return [];
1368
+ }
1369
+ object = Object(object);
1370
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
1371
+ return propertyIsEnumerable.call(object, symbol);
1372
+ });
1373
+ };
1374
+
1375
+ /**
1376
+ * Gets the `toStringTag` of `value`.
1377
+ *
1378
+ * @private
1379
+ * @param {*} value The value to query.
1380
+ * @returns {string} Returns the `toStringTag`.
1381
+ */
1382
+ var getTag = baseGetTag;
1383
+
1384
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1385
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
1386
+ (Map && getTag(new Map) != mapTag) ||
1387
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
1388
+ (Set && getTag(new Set) != setTag) ||
1389
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
1390
+ getTag = function(value) {
1391
+ var result = baseGetTag(value),
1392
+ Ctor = result == objectTag ? value.constructor : undefined,
1393
+ ctorString = Ctor ? toSource(Ctor) : '';
1394
+
1395
+ if (ctorString) {
1396
+ switch (ctorString) {
1397
+ case dataViewCtorString: return dataViewTag;
1398
+ case mapCtorString: return mapTag;
1399
+ case promiseCtorString: return promiseTag;
1400
+ case setCtorString: return setTag;
1401
+ case weakMapCtorString: return weakMapTag;
1402
+ }
1403
+ }
1404
+ return result;
1405
+ };
1406
+ }
1407
+
1408
+ /**
1409
+ * Checks if `value` is a valid array-like index.
1410
+ *
1411
+ * @private
1412
+ * @param {*} value The value to check.
1413
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1414
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1415
+ */
1416
+ function isIndex(value, length) {
1417
+ length = length == null ? MAX_SAFE_INTEGER : length;
1418
+ return !!length &&
1419
+ (typeof value == 'number' || reIsUint.test(value)) &&
1420
+ (value > -1 && value % 1 == 0 && value < length);
1421
+ }
1422
+
1423
+ /**
1424
+ * Checks if `value` is suitable for use as unique object key.
1425
+ *
1426
+ * @private
1427
+ * @param {*} value The value to check.
1428
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1429
+ */
1430
+ function isKeyable(value) {
1431
+ var type = typeof value;
1432
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1433
+ ? (value !== '__proto__')
1434
+ : (value === null);
1435
+ }
1436
+
1437
+ /**
1438
+ * Checks if `func` has its source masked.
1439
+ *
1440
+ * @private
1441
+ * @param {Function} func The function to check.
1442
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1443
+ */
1444
+ function isMasked(func) {
1445
+ return !!maskSrcKey && (maskSrcKey in func);
1446
+ }
1447
+
1448
+ /**
1449
+ * Checks if `value` is likely a prototype object.
1450
+ *
1451
+ * @private
1452
+ * @param {*} value The value to check.
1453
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1454
+ */
1455
+ function isPrototype(value) {
1456
+ var Ctor = value && value.constructor,
1457
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
1458
+
1459
+ return value === proto;
1460
+ }
1461
+
1462
+ /**
1463
+ * Converts `value` to a string using `Object.prototype.toString`.
1464
+ *
1465
+ * @private
1466
+ * @param {*} value The value to convert.
1467
+ * @returns {string} Returns the converted string.
1468
+ */
1469
+ function objectToString(value) {
1470
+ return nativeObjectToString.call(value);
1471
+ }
1472
+
1473
+ /**
1474
+ * Converts `func` to its source code.
1475
+ *
1476
+ * @private
1477
+ * @param {Function} func The function to convert.
1478
+ * @returns {string} Returns the source code.
1479
+ */
1480
+ function toSource(func) {
1481
+ if (func != null) {
1482
+ try {
1483
+ return funcToString.call(func);
1484
+ } catch (e) {}
1485
+ try {
1486
+ return (func + '');
1487
+ } catch (e) {}
1488
+ }
1489
+ return '';
1490
+ }
1491
+
1492
+ /**
1493
+ * Performs a
1494
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1495
+ * comparison between two values to determine if they are equivalent.
1496
+ *
1497
+ * @static
1498
+ * @memberOf _
1499
+ * @since 4.0.0
1500
+ * @category Lang
1501
+ * @param {*} value The value to compare.
1502
+ * @param {*} other The other value to compare.
1503
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1504
+ * @example
1505
+ *
1506
+ * var object = { 'a': 1 };
1507
+ * var other = { 'a': 1 };
1508
+ *
1509
+ * _.eq(object, object);
1510
+ * // => true
1511
+ *
1512
+ * _.eq(object, other);
1513
+ * // => false
1514
+ *
1515
+ * _.eq('a', 'a');
1516
+ * // => true
1517
+ *
1518
+ * _.eq('a', Object('a'));
1519
+ * // => false
1520
+ *
1521
+ * _.eq(NaN, NaN);
1522
+ * // => true
1523
+ */
1524
+ function eq(value, other) {
1525
+ return value === other || (value !== value && other !== other);
1526
+ }
1527
+
1528
+ /**
1529
+ * Checks if `value` is likely an `arguments` object.
1530
+ *
1531
+ * @static
1532
+ * @memberOf _
1533
+ * @since 0.1.0
1534
+ * @category Lang
1535
+ * @param {*} value The value to check.
1536
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1537
+ * else `false`.
1538
+ * @example
1539
+ *
1540
+ * _.isArguments(function() { return arguments; }());
1541
+ * // => true
1542
+ *
1543
+ * _.isArguments([1, 2, 3]);
1544
+ * // => false
1545
+ */
1546
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1547
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
1548
+ !propertyIsEnumerable.call(value, 'callee');
1549
+ };
1550
+
1551
+ /**
1552
+ * Checks if `value` is classified as an `Array` object.
1553
+ *
1554
+ * @static
1555
+ * @memberOf _
1556
+ * @since 0.1.0
1557
+ * @category Lang
1558
+ * @param {*} value The value to check.
1559
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1560
+ * @example
1561
+ *
1562
+ * _.isArray([1, 2, 3]);
1563
+ * // => true
1564
+ *
1565
+ * _.isArray(document.body.children);
1566
+ * // => false
1567
+ *
1568
+ * _.isArray('abc');
1569
+ * // => false
1570
+ *
1571
+ * _.isArray(_.noop);
1572
+ * // => false
1573
+ */
1574
+ var isArray = Array.isArray;
1575
+
1576
+ /**
1577
+ * Checks if `value` is array-like. A value is considered array-like if it's
1578
+ * not a function and has a `value.length` that's an integer greater than or
1579
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1580
+ *
1581
+ * @static
1582
+ * @memberOf _
1583
+ * @since 4.0.0
1584
+ * @category Lang
1585
+ * @param {*} value The value to check.
1586
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1587
+ * @example
1588
+ *
1589
+ * _.isArrayLike([1, 2, 3]);
1590
+ * // => true
1591
+ *
1592
+ * _.isArrayLike(document.body.children);
1593
+ * // => true
1594
+ *
1595
+ * _.isArrayLike('abc');
1596
+ * // => true
1597
+ *
1598
+ * _.isArrayLike(_.noop);
1599
+ * // => false
1600
+ */
1601
+ function isArrayLike(value) {
1602
+ return value != null && isLength(value.length) && !isFunction(value);
1603
+ }
1604
+
1605
+ /**
1606
+ * Checks if `value` is a buffer.
1607
+ *
1608
+ * @static
1609
+ * @memberOf _
1610
+ * @since 4.3.0
1611
+ * @category Lang
1612
+ * @param {*} value The value to check.
1613
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1614
+ * @example
1615
+ *
1616
+ * _.isBuffer(new Buffer(2));
1617
+ * // => true
1618
+ *
1619
+ * _.isBuffer(new Uint8Array(2));
1620
+ * // => false
1621
+ */
1622
+ var isBuffer = nativeIsBuffer || stubFalse;
1623
+
1624
+ /**
1625
+ * Performs a deep comparison between two values to determine if they are
1626
+ * equivalent.
1627
+ *
1628
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
1629
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
1630
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
1631
+ * by their own, not inherited, enumerable properties. Functions and DOM
1632
+ * nodes are compared by strict equality, i.e. `===`.
1633
+ *
1634
+ * @static
1635
+ * @memberOf _
1636
+ * @since 0.1.0
1637
+ * @category Lang
1638
+ * @param {*} value The value to compare.
1639
+ * @param {*} other The other value to compare.
1640
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1641
+ * @example
1642
+ *
1643
+ * var object = { 'a': 1 };
1644
+ * var other = { 'a': 1 };
1645
+ *
1646
+ * _.isEqual(object, other);
1647
+ * // => true
1648
+ *
1649
+ * object === other;
1650
+ * // => false
1651
+ */
1652
+ function isEqual(value, other) {
1653
+ return baseIsEqual(value, other);
1654
+ }
1655
+
1656
+ /**
1657
+ * Checks if `value` is classified as a `Function` object.
1658
+ *
1659
+ * @static
1660
+ * @memberOf _
1661
+ * @since 0.1.0
1662
+ * @category Lang
1663
+ * @param {*} value The value to check.
1664
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1665
+ * @example
1666
+ *
1667
+ * _.isFunction(_);
1668
+ * // => true
1669
+ *
1670
+ * _.isFunction(/abc/);
1671
+ * // => false
1672
+ */
1673
+ function isFunction(value) {
1674
+ if (!isObject(value)) {
1675
+ return false;
1676
+ }
1677
+ // The use of `Object#toString` avoids issues with the `typeof` operator
1678
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
1679
+ var tag = baseGetTag(value);
1680
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1681
+ }
1682
+
1683
+ /**
1684
+ * Checks if `value` is a valid array-like length.
1685
+ *
1686
+ * **Note:** This method is loosely based on
1687
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1688
+ *
1689
+ * @static
1690
+ * @memberOf _
1691
+ * @since 4.0.0
1692
+ * @category Lang
1693
+ * @param {*} value The value to check.
1694
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1695
+ * @example
1696
+ *
1697
+ * _.isLength(3);
1698
+ * // => true
1699
+ *
1700
+ * _.isLength(Number.MIN_VALUE);
1701
+ * // => false
1702
+ *
1703
+ * _.isLength(Infinity);
1704
+ * // => false
1705
+ *
1706
+ * _.isLength('3');
1707
+ * // => false
1708
+ */
1709
+ function isLength(value) {
1710
+ return typeof value == 'number' &&
1711
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1712
+ }
1713
+
1714
+ /**
1715
+ * Checks if `value` is the
1716
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1717
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1718
+ *
1719
+ * @static
1720
+ * @memberOf _
1721
+ * @since 0.1.0
1722
+ * @category Lang
1723
+ * @param {*} value The value to check.
1724
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1725
+ * @example
1726
+ *
1727
+ * _.isObject({});
1728
+ * // => true
1729
+ *
1730
+ * _.isObject([1, 2, 3]);
1731
+ * // => true
1732
+ *
1733
+ * _.isObject(_.noop);
1734
+ * // => true
1735
+ *
1736
+ * _.isObject(null);
1737
+ * // => false
1738
+ */
1739
+ function isObject(value) {
1740
+ var type = typeof value;
1741
+ return value != null && (type == 'object' || type == 'function');
1742
+ }
1743
+
1744
+ /**
1745
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1746
+ * and has a `typeof` result of "object".
1747
+ *
1748
+ * @static
1749
+ * @memberOf _
1750
+ * @since 4.0.0
1751
+ * @category Lang
1752
+ * @param {*} value The value to check.
1753
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1754
+ * @example
1755
+ *
1756
+ * _.isObjectLike({});
1757
+ * // => true
1758
+ *
1759
+ * _.isObjectLike([1, 2, 3]);
1760
+ * // => true
1761
+ *
1762
+ * _.isObjectLike(_.noop);
1763
+ * // => false
1764
+ *
1765
+ * _.isObjectLike(null);
1766
+ * // => false
1767
+ */
1768
+ function isObjectLike(value) {
1769
+ return value != null && typeof value == 'object';
1770
+ }
1771
+
1772
+ /**
1773
+ * Checks if `value` is classified as a typed array.
1774
+ *
1775
+ * @static
1776
+ * @memberOf _
1777
+ * @since 3.0.0
1778
+ * @category Lang
1779
+ * @param {*} value The value to check.
1780
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1781
+ * @example
1782
+ *
1783
+ * _.isTypedArray(new Uint8Array);
1784
+ * // => true
1785
+ *
1786
+ * _.isTypedArray([]);
1787
+ * // => false
1788
+ */
1789
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1790
+
1791
+ /**
1792
+ * Creates an array of the own enumerable property names of `object`.
1793
+ *
1794
+ * **Note:** Non-object values are coerced to objects. See the
1795
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1796
+ * for more details.
1797
+ *
1798
+ * @static
1799
+ * @since 0.1.0
1800
+ * @memberOf _
1801
+ * @category Object
1802
+ * @param {Object} object The object to query.
1803
+ * @returns {Array} Returns the array of property names.
1804
+ * @example
1805
+ *
1806
+ * function Foo() {
1807
+ * this.a = 1;
1808
+ * this.b = 2;
1809
+ * }
1810
+ *
1811
+ * Foo.prototype.c = 3;
1812
+ *
1813
+ * _.keys(new Foo);
1814
+ * // => ['a', 'b'] (iteration order is not guaranteed)
1815
+ *
1816
+ * _.keys('hi');
1817
+ * // => ['0', '1']
1818
+ */
1819
+ function keys(object) {
1820
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1821
+ }
1822
+
1823
+ /**
1824
+ * This method returns a new empty array.
1825
+ *
1826
+ * @static
1827
+ * @memberOf _
1828
+ * @since 4.13.0
1829
+ * @category Util
1830
+ * @returns {Array} Returns the new empty array.
1831
+ * @example
1832
+ *
1833
+ * var arrays = _.times(2, _.stubArray);
1834
+ *
1835
+ * console.log(arrays);
1836
+ * // => [[], []]
1837
+ *
1838
+ * console.log(arrays[0] === arrays[1]);
1839
+ * // => false
1840
+ */
1841
+ function stubArray() {
1842
+ return [];
1843
+ }
1844
+
1845
+ /**
1846
+ * This method returns `false`.
1847
+ *
1848
+ * @static
1849
+ * @memberOf _
1850
+ * @since 4.13.0
1851
+ * @category Util
1852
+ * @returns {boolean} Returns `false`.
1853
+ * @example
1854
+ *
1855
+ * _.times(2, _.stubFalse);
1856
+ * // => [false, false]
1857
+ */
1858
+ function stubFalse() {
1859
+ return false;
1860
+ }
1861
+
1862
+ module.exports = isEqual;
1863
+ }(lodash_isequal, lodash_isequal.exports));
1864
+
1865
+ var isEqual = lodash_isequal.exports;
1866
+
1867
+ var z7=Object.defineProperty;var V=(t,a)=>{for(var z in a)z7(t,z,{get:a[z],enumerable:!0});};var s=["AF","AL","DZ","AD","AS","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","MS","ME","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","SH","KN","LC","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW","AX","BQ","CW","GG","IM","JE","BL","MF","SX","XK","SS"];var r={};V(r,{countries:()=>L,default:()=>p7,locale:()=>y});var y="en",L={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Republic of the Congo",CD:"Democratic Republic of the Congo",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MK:"North Macedonia",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Eswatini",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Vietnam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe",AX:"\xC5land Islands",BQ:"Bonaire, Sint Eustatius and Saba",CW:"Cura\xE7ao",GG:"Guernsey",IM:"Isle of Man",JE:"Jersey",ME:"Montenegro",BL:"Saint Barth\xE9lemy",MF:"Saint Martin (French part)",RS:"Serbia",SX:"Sint Maarten (Dutch part)",SS:"South Sudan",XK:"Kosovo"},p7={locale:y,countries:L};var m={};V(m,{countries:()=>S,default:()=>M7,locale:()=>B});var B="de",S={AF:"Afghanistan",EG:"\xC4gypten",AX:"\xC5land",AL:"Albanien",DZ:"Algerien",AS:"Amerikanisch-Samoa",VI:"Amerikanische Jungferninseln",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarktis",AG:"Antigua und Barbuda",GQ:"\xC4quatorialguinea",AR:"Argentinien",AM:"Armenien",AW:"Aruba",AZ:"Aserbaidschan",ET:"\xC4thiopien",AU:"Australien",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesch",BB:"Barbados",BY:"Belarus",BE:"Belgien",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivien",BQ:"Bonaire",BA:"Bosnien und Herzegowina",BW:"Botswana",BV:"Bouvetinsel",BR:"Brasilien",VG:"Britische Jungferninseln",IO:"Britisches Territorium im Indischen Ozean",BN:"Brunei Darussalam",BG:"Bulgarien",BF:"Burkina Faso",BI:"Burundi",CL:"Chile",CN:"China",CK:"Cookinseln",CR:"Costa Rica",CI:"Elfenbeink\xFCste",CW:"Cura\xE7ao",DK:"D\xE4nemark",DE:"Deutschland",DM:"Dominica",DO:"Dominikanische Republik",DJ:"Dschibuti",EC:"Ecuador",SV:"El Salvador",ER:"Eritrea",EE:"Estland",FK:"Falklandinseln",FO:"F\xE4r\xF6er",FJ:"Fidschi",FI:"Finnland",FR:"Frankreich",GF:"Franz\xF6sisch-Guayana",PF:"Franz\xF6sisch-Polynesien",TF:"Franz\xF6sische S\xFCd- und Antarktisgebiete",GA:"Gabun",GM:"Gambia",GE:"Georgien",GH:"Ghana",GI:"Gibraltar",GD:"Grenada",GR:"Griechenland",GL:"Gr\xF6nland",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard und McDonaldinseln",HN:"Honduras",HK:"Hongkong",IN:"Indien",ID:"Indonesien",IM:"Insel Man",IQ:"Irak",IR:"Iran",IE:"Irland",IS:"Island",IL:"Israel",IT:"Italien",JM:"Jamaika",JP:"Japan",YE:"Jemen",JE:"Jersey",JO:"Jordanien",KY:"Kaimaninseln",KH:"Kambodscha",CM:"Kamerun",CA:"Kanada",CV:"Kap Verde",KZ:"Kasachstan",QA:"Katar",KE:"Kenia",KG:"Kirgisistan",KI:"Kiribati",CC:"Kokosinseln",CO:"Kolumbien",KM:"Komoren",CD:"Kongo",KP:"Nordkorea",KR:"S\xFCdkorea",HR:"Kroatien",CU:"Kuba",KW:"Kuwait",LA:"Laos",LS:"Lesotho",LV:"Lettland",LB:"Libanon",LR:"Liberia",LY:"Libyen",LI:"Liechtenstein",LT:"Litauen",LU:"Luxemburg",MO:"Macao",MG:"Madagaskar",MW:"Malawi",MY:"Malaysia",MV:"Malediven",ML:"Mali",MT:"Malta",MA:"Marokko",MH:"Marshallinseln",MQ:"Martinique",MR:"Mauretanien",MU:"Mauritius",YT:"Mayotte",MX:"Mexiko",FM:"Mikronesien",MD:"Moldawien",MC:"Monaco",MN:"Mongolei",ME:"Montenegro",MS:"Montserrat",MZ:"Mosambik",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NC:"Neukaledonien",NZ:"Neuseeland",NI:"Nicaragua",NL:"Niederlande",NE:"Niger",NG:"Nigeria",NU:"Niue",MK:"Nordmazedonien",MP:"N\xF6rdliche Marianen",NF:"Norfolkinsel",NO:"Norwegen",OM:"Oman",AT:"\xD6sterreich",TL:"Osttimor",PK:"Pakistan",PS:"Staat Pal\xE4stina",PW:"Palau",PA:"Panama",PG:"Papua-Neuguinea",PY:"Paraguay",PE:"Peru",PH:"Philippinen",PN:"Pitcairninseln",PL:"Polen",PT:"Portugal",PR:"Puerto Rico",TW:"Taiwan",CG:"Republik Kongo",RE:"R\xE9union",RW:"Ruanda",RO:"Rum\xE4nien",RU:"Russische F\xF6deration",BL:"Saint-Barth\xE9lemy",MF:"Saint-Martin",SB:"Salomonen",ZM:"Sambia",WS:"Samoa",SM:"San Marino",ST:"S\xE3o Tom\xE9 und Pr\xEDncipe",SA:"Saudi-Arabien",SE:"Schweden",CH:"Schweiz",SN:"Senegal",RS:"Serbien",SC:"Seychellen",SL:"Sierra Leone",ZW:"Simbabwe",SG:"Singapur",SX:"Sint Maarten",SK:"Slowakei",SI:"Slowenien",SO:"Somalia",ES:"Spanien",LK:"Sri Lanka",SH:"St. Helena",KN:"St. Kitts und Nevis",LC:"St. Lucia",PM:"Saint-Pierre und Miquelon",VC:"St. Vincent und die Grenadinen",ZA:"S\xFCdafrika",SD:"Sudan",GS:"S\xFCdgeorgien und die S\xFCdlichen Sandwichinseln",SS:"S\xFCdsudan",SR:"Suriname",SJ:"Svalbard und Jan Mayen",SZ:"Eswatini",SY:"Syrien, Arabische Republik",TJ:"Tadschikistan",TZ:"Tansania, Vereinigte Republik",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad und Tobago",TD:"Tschad",CZ:"Tschechische Republik",TN:"Tunesien",TR:"T\xFCrkei",TM:"Turkmenistan",TC:"Turks- und Caicosinseln",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",HU:"Ungarn",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Usbekistan",VU:"Vanuatu",VA:"Vatikanstadt",VE:"Venezuela",AE:"Vereinigte Arabische Emirate",US:"Vereinigte Staaten",GB:"Vereinigtes K\xF6nigreich",VN:"Vietnam",WF:"Wallis und Futuna",CX:"Weihnachtsinsel",EH:"Westsahara",CF:"Zentralafrikanische Republik",CY:"Zypern",XK:"Kosovo"},M7={locale:B,countries:S};var c7={en:r,de:m};function $5(t,a="en"){return c7[a].countries[t]}var f7=(t="en")=>s.map(a=>({name:c7[t].countries[a],code:a}));f7();
1868
+
1869
+ var geocoderAddressComponentToPartialAddress = function (input) {
1870
+ var mapping = {
1871
+ route: {
1872
+ key: 'street',
1873
+ value: 'long_name',
1874
+ },
1875
+ street_number: {
1876
+ key: 'houseNumber',
1877
+ value: 'long_name',
1878
+ },
1879
+ postal_code: {
1880
+ key: 'postcode',
1881
+ value: 'long_name',
1882
+ },
1883
+ locality: {
1884
+ key: 'city',
1885
+ value: 'long_name',
1886
+ },
1887
+ country: {
1888
+ key: 'country',
1889
+ value: 'short_name',
1890
+ },
1891
+ };
1892
+ var toReturn = {};
1893
+ input.forEach(function (value) {
1894
+ var type = value.types[0];
1895
+ var mappedValue = mapping[type];
1896
+ if (mappedValue) {
1897
+ toReturn[mappedValue.key] = value[mappedValue.value];
1898
+ }
1899
+ });
1900
+ return toReturn;
1901
+ };
1902
+
1903
+ var css_248z = "@media (max-width: 34rem) {\n .style-module_input-line__34TKK {\n flex-direction: column;\n }\n .style-module_input-line__34TKK > *:not(:first-child) {\n margin-top: 16px;\n }\n}\n\n@media (max-width: 34rem) {\n .style-module_house-number-input__1sDS5 {\n max-width: none !important;\n }\n}\n\n.style-module_map-container__2rzjU {\n position: relative;\n height: 112px;\n margin-bottom: 16px;\n border-radius: 8px;\n transition: 0.3s height ease-in-out, 0.3s margin-top ease-in-out;\n overflow: hidden;\n}\n.style-module_map-container--hidden__2AnYR {\n height: 0;\n margin: 0;\n}\n\n@keyframes style-module_appear-in__3HZHT {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.style-module_appear-in-animate__1bJyO {\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_loading-spinner__3-nri {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute !important;\n background-color: rgba(142, 140, 238, 0.25);\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 100;\n animation-name: style-module_appear-in__3HZHT;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n}\n\n.style-module_map__1Vtps {\n width: 100%;\n height: 100%;\n}";
1904
+ var styles = {"input-line":"style-module_input-line__34TKK","house-number-input":"style-module_house-number-input__1sDS5","map-container":"style-module_map-container__2rzjU","map-container--hidden":"style-module_map-container--hidden__2AnYR","appear-in-animate":"style-module_appear-in-animate__1bJyO","appear-in":"style-module_appear-in__3HZHT","loading-spinner":"style-module_loading-spinner__3-nri","map":"style-module_map__1Vtps"};
1905
+ styleInject(css_248z);
1906
+
1907
+ var GERMANY_LAT_LNG = { lat: 51.54317, lng: 10.3181503 };
1908
+ var GERMANY_ALPHA_CODE = 'DE';
1909
+ var MAP_CONFIG_OBJ = {
1910
+ zoom: 6,
1911
+ center: GERMANY_LAT_LNG,
1912
+ fullscreenControl: false,
1913
+ mapTypeControl: false,
1914
+ panControl: false,
1915
+ zoomControl: false,
1916
+ streetViewControl: false,
1917
+ scrollwheel: false,
1918
+ scaleControl: false,
1919
+ rotateControl: false,
1920
+ draggable: false,
1921
+ };
1922
+ var loadGoogleMapsApiDynamically = function (callback, apiKey) {
1923
+ var existingScript = document.getElementById('googleMapsImportScript');
1924
+ if (existingScript) {
1925
+ return;
1926
+ }
1927
+ var googleMapImportScript = document.createElement('script');
1928
+ googleMapImportScript.id = 'googleMapsImportScript';
1929
+ googleMapImportScript.type = 'text/javascript';
1930
+ googleMapImportScript.src = "https://maps.googleapis.com/maps/api/js?key=" + apiKey + "&libraries=places";
1931
+ document.head.appendChild(googleMapImportScript);
1932
+ googleMapImportScript.onload = function () {
1933
+ callback();
1934
+ };
1935
+ };
1936
+ var AutoCompleteAddress = function (_a) {
1937
+ var _b;
1938
+ var apiKey = _a.apiKey, initialAddress = _a.address, onAddressChange = _a.onAddressChange, placeholders = _a.placeholders, manualAddressEntryTexts = _a.manualAddressEntryTexts;
1939
+ var _c = useState(false), manualAddressEntry = _c[0], setManualAddressEntry = _c[1];
1940
+ var _d = useState(false), isLoading = _d[0], setIsLoading = _d[1];
1941
+ var autocomplete = useRef(null);
1942
+ var autocompleteElement = useRef(null);
1943
+ var map = useRef(null);
1944
+ var marker = useRef(null);
1945
+ var _e = useState(initialAddress), address = _e[0], setAddress = _e[1];
1946
+ var _f = useState(window.google !== undefined), hasLoadedGoogleAPI = _f[0], setHasLoadedGoogleAPI = _f[1];
1947
+ loadGoogleMapsApiDynamically(function () {
1948
+ setHasLoadedGoogleAPI(true);
1949
+ }, apiKey);
1950
+ var _g = useState(null), place = _g[0], setPlace = _g[1];
1951
+ useEffect(function () {
1952
+ if (address) {
1953
+ if (autocompleteElement.current && address.street) {
1954
+ autocompleteElement.current.value = address.street;
1955
+ }
1956
+ if (isEqual(address, initialAddress) === false) {
1957
+ onAddressChange(__assign({}, address));
1958
+ }
1959
+ handleEnterAddressManually();
1960
+ }
1961
+ }, [initialAddress, address, onAddressChange, hasLoadedGoogleAPI]);
1962
+ useEffect(function () {
1963
+ if (hasLoadedGoogleAPI === false) {
1964
+ return;
1965
+ }
1966
+ var reference = document.getElementById('autocomplete');
1967
+ autocomplete.current = new google.maps.places.Autocomplete(reference, {
1968
+ types: ['address'],
1969
+ componentRestrictions: { country: GERMANY_ALPHA_CODE },
1970
+ });
1971
+ autocomplete.current.addListener('place_changed', onPlaceChanged);
1972
+ map.current = new google.maps.Map(document.getElementById('map'), MAP_CONFIG_OBJ);
1973
+ import('../../mapStyle-1288a869.js').then(function (_a) {
1974
+ var _b, _c;
1975
+ var style = _a.style;
1976
+ (_b = map.current) === null || _b === void 0 ? void 0 : _b.mapTypes.set('styled_map', style);
1977
+ (_c = map.current) === null || _c === void 0 ? void 0 : _c.setMapTypeId('styled_map');
1978
+ });
1979
+ marker.current = new google.maps.Marker({
1980
+ map: map.current,
1981
+ });
1982
+ setPlaceFromAddress(address);
1983
+ }, [hasLoadedGoogleAPI]); // eslint-disable-line
1984
+ var onPlaceChanged = function (newPlace, updateAddress) {
1985
+ var _a, _b, _c, _d, _e;
1986
+ if (newPlace === void 0) { newPlace = (_a = autocomplete.current) === null || _a === void 0 ? void 0 : _a.getPlace(); }
1987
+ if (updateAddress === void 0) { updateAddress = true; }
1988
+ if ((_b = newPlace === null || newPlace === void 0 ? void 0 : newPlace.geometry) === null || _b === void 0 ? void 0 : _b.location) {
1989
+ var geocoderAddress_1 = geocoderAddressComponentToPartialAddress(newPlace.address_components);
1990
+ setPlace(newPlace);
1991
+ if (updateAddress) {
1992
+ setAddress(function (oldValue) { return (__assign(__assign({}, geocoderAddress_1), { additionalInformation: oldValue === null || oldValue === void 0 ? void 0 : oldValue.additionalInformation })); });
1993
+ }
1994
+ (_c = map.current) === null || _c === void 0 ? void 0 : _c.panTo(newPlace.geometry.location);
1995
+ (_d = map.current) === null || _d === void 0 ? void 0 : _d.setZoom(15);
1996
+ (_e = marker.current) === null || _e === void 0 ? void 0 : _e.setPosition(newPlace.geometry.location);
1997
+ }
1998
+ };
1999
+ var setPlaceFromAddress = useCallback(function (address) {
2000
+ var _a, _b, _c;
2001
+ if (!map.current) {
2002
+ return;
2003
+ }
2004
+ if (address) {
2005
+ var service_1 = new google.maps.places.PlacesService(map.current);
2006
+ var query = ((_a = address.street) !== null && _a !== void 0 ? _a : '') + " " + ((_b = address.houseNumber) !== null && _b !== void 0 ? _b : '') + ", " + ((_c = address.city) !== null && _c !== void 0 ? _c : '') + ", " + (address.country
2007
+ ? $5(address.country)
2008
+ : '');
2009
+ setIsLoading(true);
2010
+ service_1.findPlaceFromQuery({
2011
+ fields: ['place_id'],
2012
+ query: query,
2013
+ }, function (results) {
2014
+ var firstResult = results && results[0];
2015
+ if (firstResult && firstResult.place_id) {
2016
+ service_1.getDetails({ placeId: firstResult.place_id }, function (newPlace) {
2017
+ onPlaceChanged(newPlace !== null && newPlace !== void 0 ? newPlace : undefined, false);
2018
+ });
2019
+ }
2020
+ setIsLoading(false);
2021
+ });
2022
+ }
2023
+ }, []);
2024
+ var debouncedSetPlace = lodash_debounce(setPlaceFromAddress, 1000);
2025
+ var handleEnterAddressManually = function () {
2026
+ setManualAddressEntry(true);
2027
+ };
2028
+ return (jsxs(Fragment, { children: [jsxs("div", __assign({ className: classnames("wmx8 bg-grey-500 " + styles['map-container'], (_b = {},
2029
+ _b[styles['map-container--hidden']] = place === null,
2030
+ _b)) }, { children: [jsx("div", { className: styles.map, id: "map" }, void 0),
2031
+ isLoading && (jsx("div", __assign({ className: styles['loading-spinner'] }, { children: jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0),
2032
+ jsx("div", __assign({ className: "wmx8" }, { children: manualAddressEntry === false ? (jsxs("div", __assign({ style: { position: 'relative' } }, { children: [jsx(Input, { className: "w100", id: "autocomplete", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.manualAddressEntry) || 'Search for address', ref: autocompleteElement }, "autocomplete-search"),
2033
+ hasLoadedGoogleAPI === false && (jsx("div", __assign({ className: styles['loading-spinner'] }, { children: jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxs(Fragment, { children: [jsxs("div", __assign({ className: "d-flex c-gap16 " + styles['input-line'] }, { children: [jsx(Input, { className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: function (e) {
2034
+ var newAddress = __assign(__assign({}, address), { street: e.target.value, country: GERMANY_ALPHA_CODE });
2035
+ setAddress(newAddress);
2036
+ debouncedSetPlace(newAddress);
2037
+ } }, "autocomplete-street"),
2038
+ jsx(Input, { className: "wmx2 " + styles['house-number-input'], "data-cy": "autocomplete-house-number", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.houseNumber) || 'House Number', value: (address === null || address === void 0 ? void 0 : address.houseNumber) || '', onChange: function (e) {
2039
+ var newAddress = __assign(__assign({}, address), { houseNumber: e.target.value, country: GERMANY_ALPHA_CODE });
2040
+ setAddress(newAddress);
2041
+ debouncedSetPlace(newAddress);
2042
+ } }, "autocomplete-house-number")] }), void 0),
2043
+ jsx(Input, { className: "mt16", "data-cy": "autocomplete-additional-info", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.additionalInformation) ||
2044
+ 'Additional information (C/O, apartment, …)', value: (address === null || address === void 0 ? void 0 : address.additionalInformation) || '', onChange: function (e) {
2045
+ var newAddress = __assign(__assign({}, address), { additionalInformation: e.target.value, country: GERMANY_ALPHA_CODE });
2046
+ setAddress(newAddress);
2047
+ } }, "autocomplete-additional-info"),
2048
+ jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles['input-line'] }, { children: [jsx(Input, { className: "w100", "data-cy": "autocomplete-postcode", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.postcode) || 'Postcode', value: (address === null || address === void 0 ? void 0 : address.postcode) || '', onChange: function (e) {
2049
+ var newAddress = __assign(__assign({}, address), { postcode: e.target.value, country: GERMANY_ALPHA_CODE });
2050
+ setAddress(newAddress);
2051
+ debouncedSetPlace(newAddress);
2052
+ } }, "autocomplete-postcode"),
2053
+ jsx(Input, { className: "w100", "data-cy": "autocomplete-city", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.city) || 'City', value: (address === null || address === void 0 ? void 0 : address.city) || '', onChange: function (e) {
2054
+ var newAddress = __assign(__assign({}, address), { city: e.target.value, country: GERMANY_ALPHA_CODE });
2055
+ setAddress(newAddress);
2056
+ debouncedSetPlace(newAddress);
2057
+ } }, "autocomplete-city")] }), void 0)] }, void 0)) }), void 0),
2058
+ manualAddressEntry === false && (jsxs("div", __assign({ className: "p-p mt8" }, { children: [(manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.preText) || 'Or ',
2059
+ jsx("span", __assign({ className: "p-a fw-bold c-pointer", onClick: handleEnterAddressManually }, { children: (manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.cta) || 'Enter address manually' }), void 0)] }), void 0))] }, void 0));
2060
+ };
2061
+
2062
+ export default AutoCompleteAddress;
2063
+ //# sourceMappingURL=index.js.map