@mjhls/mjh-framework 1.0.837-formassembly-segment-v1 → 1.0.837

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 (287) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +24 -24
  4. package/dist/cjs/AD300x250x600.js +24 -24
  5. package/dist/cjs/AD728x90.js +27 -27
  6. package/dist/cjs/ADFloatingFooter.js +23 -23
  7. package/dist/cjs/ADFooter.js +6 -6
  8. package/dist/cjs/ADGutter.js +23 -23
  9. package/dist/cjs/{ADInfeed-0158bee3.js → ADInfeed-8b336c67.js} +4 -4
  10. package/dist/cjs/ADSkyscraper.js +23 -23
  11. package/dist/cjs/ADSponsoredResources.js +23 -23
  12. package/dist/cjs/ADWebcast.js +23 -23
  13. package/dist/cjs/ADWelcome.js +20 -20
  14. package/dist/cjs/{ADlgInfeed-3583144f.js → ADlgInfeed-aedd5e18.js} +4 -4
  15. package/dist/cjs/AccordionPanel.js +8 -8
  16. package/dist/cjs/AdSlot.js +24 -24
  17. package/dist/cjs/AdSlotsProvider.js +13 -13
  18. package/dist/cjs/AlgoliaSearch.js +508 -500
  19. package/dist/cjs/AlphabeticList.js +10 -10
  20. package/dist/cjs/ArticleCarousel.js +17 -17
  21. package/dist/cjs/ArticleProgramLandingPage.js +50 -50
  22. package/dist/cjs/ArticleSeriesLandingPage.js +31 -31
  23. package/dist/cjs/ArticleSeriesListing.js +33 -33
  24. package/dist/cjs/Auth.js +484 -348
  25. package/dist/cjs/AuthWrapper.js +201 -240
  26. package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
  27. package/dist/cjs/Beam.js +8 -8
  28. package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
  29. package/dist/cjs/Breadcrumbs.js +8 -8
  30. package/dist/cjs/CMEDeck.js +24 -24
  31. package/dist/cjs/Column2.js +16 -16
  32. package/dist/cjs/Column3.js +33 -33
  33. package/dist/cjs/ConferenceArticleCard.js +22 -22
  34. package/dist/cjs/DeckContent.js +42 -42
  35. package/dist/cjs/DeckQueue.js +31 -31
  36. package/dist/cjs/{Dfp-391fd124.js → Dfp-93399f8c.js} +15 -15
  37. package/dist/cjs/EventsDeck.js +45 -45
  38. package/dist/cjs/ExternalResources.js +47 -47
  39. package/dist/cjs/Feature.js +4 -4
  40. package/dist/cjs/ForbesHero.js +12 -12
  41. package/dist/cjs/GridContent.js +47 -47
  42. package/dist/cjs/GridHero.js +13 -13
  43. package/dist/cjs/GroupDeck.js +14 -14
  44. package/dist/cjs/HamMagazine.js +36 -36
  45. package/dist/cjs/Hero.js +4 -4
  46. package/dist/cjs/HighlightenVideo.js +2 -2
  47. package/dist/cjs/HorizontalArticleListing.js +47 -47
  48. package/dist/cjs/HorizontalHero.js +4 -4
  49. package/dist/cjs/IssueContentDeck.js +13 -13
  50. package/dist/cjs/IssueDeck.js +16 -16
  51. package/dist/cjs/IssueLanding.js +84 -84
  52. package/dist/cjs/KMTracker.js +15 -15
  53. package/dist/cjs/LeftNav.js +22 -22
  54. package/dist/cjs/MasterDeck.js +41 -41
  55. package/dist/cjs/MediaSeriesLanding.js +509 -465
  56. package/dist/cjs/NavDvm.js +13 -13
  57. package/dist/cjs/NavMagazine.js +40 -40
  58. package/dist/cjs/NavNative.js +41 -41
  59. package/dist/cjs/OncliveHero.js +4 -4
  60. package/dist/cjs/OncliveLargeHero.js +13 -13
  61. package/dist/cjs/PageFilter.js +6 -6
  62. package/dist/cjs/PartnerDetailListing.js +57 -57
  63. package/dist/cjs/PdfDownload.js +1 -1
  64. package/dist/cjs/PopUpModal.js +6 -6
  65. package/dist/cjs/PubSection.js +34 -34
  66. package/dist/cjs/PubToc.js +8 -8
  67. package/dist/cjs/PublicationDeck.js +8 -8
  68. package/dist/cjs/PublicationLanding.js +55 -55
  69. package/dist/cjs/QueueDeckExpanded.js +38 -38
  70. package/dist/cjs/RecentNews.js +3 -3
  71. package/dist/cjs/RelatedContent.js +35 -35
  72. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  73. package/dist/cjs/Search.js +8 -8
  74. package/dist/cjs/Segment.js +6 -6
  75. package/dist/cjs/SeriesListingDeck.js +20 -20
  76. package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-cbab9f0f.js} +14 -14
  77. package/dist/cjs/SetCookie.js +1 -1
  78. package/dist/cjs/SideFooter.js +17 -17
  79. package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-ecb4f972.js} +10 -10
  80. package/dist/cjs/TaxonomyCard.js +10 -10
  81. package/dist/cjs/TaxonomyDescription.js +46 -46
  82. package/dist/cjs/TemplateNormal.js +47 -47
  83. package/dist/cjs/ThumbnailCard.js +7 -7
  84. package/dist/cjs/Ustream.js +13 -13
  85. package/dist/cjs/VerticalHero.js +3 -3
  86. package/dist/cjs/VideoProgramLandingPage.js +52 -52
  87. package/dist/cjs/VideoSeriesCard.js +14 -14
  88. package/dist/cjs/VideoSeriesFilter.js +9 -9
  89. package/dist/cjs/VideoSeriesLandingPage.js +37 -37
  90. package/dist/cjs/VideoSeriesListing.js +33 -33
  91. package/dist/cjs/View.js +91 -92
  92. package/dist/cjs/YahooHero.js +15 -15
  93. package/dist/cjs/YoutubeGroup.js +26 -26
  94. package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
  95. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
  96. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  97. package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
  98. package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
  99. package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
  100. package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
  101. package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
  102. package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
  103. package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
  104. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
  105. package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
  106. package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
  107. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
  108. package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
  109. package/dist/cjs/faundadb.js +7 -7
  110. package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
  111. package/dist/cjs/getRelatedArticle.js +135 -71
  112. package/dist/cjs/getRootDocGroup.js +6 -6
  113. package/dist/cjs/getSerializers.js +45 -45
  114. package/dist/cjs/{getTargeting-15ad167c.js → getTargeting-be6168ad.js} +11 -11
  115. package/dist/cjs/getTargeting.js +8 -8
  116. package/dist/cjs/{index-f5eddbab.js → index-0a582ba9.js} +166 -166
  117. package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
  118. package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
  119. package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
  120. package/dist/cjs/{index-6367b7bf.js → index-f86bb269.js} +35 -35
  121. package/dist/cjs/{index-2cf30c83.js → index-fc2f1ca2.js} +4 -4
  122. package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
  123. package/dist/cjs/index.js +137 -137
  124. package/dist/cjs/{inherits-0c7830c5.js → inherits-c2065b95.js} +19 -19
  125. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  126. package/dist/cjs/keys-7f2c2108.js +25 -0
  127. package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
  128. package/dist/cjs/{main-7b5e57b0.js → main-025fdc78.js} +234 -159
  129. package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
  130. package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
  131. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
  132. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  133. package/dist/cjs/stringify-c9ac1214.js +17 -0
  134. package/dist/cjs/timeDifferenceCalc.js +1 -1
  135. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
  136. package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
  137. package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
  138. package/dist/cjs/urlFor.js +1 -1
  139. package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
  140. package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
  141. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
  142. package/dist/esm/AD.js +1 -1
  143. package/dist/esm/AD300x250.js +24 -24
  144. package/dist/esm/AD300x250x600.js +24 -24
  145. package/dist/esm/AD728x90.js +27 -27
  146. package/dist/esm/ADFloatingFooter.js +23 -23
  147. package/dist/esm/ADFooter.js +6 -6
  148. package/dist/esm/ADGutter.js +23 -23
  149. package/dist/esm/{ADInfeed-427022e9.js → ADInfeed-28b1e946.js} +4 -4
  150. package/dist/esm/ADSkyscraper.js +23 -23
  151. package/dist/esm/ADSponsoredResources.js +23 -23
  152. package/dist/esm/ADWebcast.js +23 -23
  153. package/dist/esm/ADWelcome.js +20 -20
  154. package/dist/esm/{ADlgInfeed-28d3f944.js → ADlgInfeed-0b474b02.js} +4 -4
  155. package/dist/esm/AccordionPanel.js +8 -8
  156. package/dist/esm/AdSlot.js +24 -24
  157. package/dist/esm/AdSlotsProvider.js +13 -13
  158. package/dist/esm/AlgoliaSearch.js +507 -499
  159. package/dist/esm/AlphabeticList.js +10 -10
  160. package/dist/esm/ArticleCarousel.js +17 -17
  161. package/dist/esm/ArticleProgramLandingPage.js +50 -50
  162. package/dist/esm/ArticleSeriesLandingPage.js +31 -31
  163. package/dist/esm/ArticleSeriesListing.js +33 -33
  164. package/dist/esm/Auth.js +484 -348
  165. package/dist/esm/AuthWrapper.js +201 -240
  166. package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-5ae7409f.js} +1 -1
  167. package/dist/esm/Beam.js +8 -8
  168. package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-52cf21c5.js} +34 -34
  169. package/dist/esm/Breadcrumbs.js +7 -7
  170. package/dist/esm/CMEDeck.js +24 -24
  171. package/dist/esm/Column2.js +16 -16
  172. package/dist/esm/Column3.js +33 -33
  173. package/dist/esm/ConferenceArticleCard.js +22 -22
  174. package/dist/esm/DeckContent.js +42 -42
  175. package/dist/esm/DeckQueue.js +31 -31
  176. package/dist/esm/{Dfp-2f9796e1.js → Dfp-43f121ff.js} +15 -15
  177. package/dist/esm/EventsDeck.js +43 -43
  178. package/dist/esm/ExternalResources.js +47 -47
  179. package/dist/esm/Feature.js +4 -4
  180. package/dist/esm/ForbesHero.js +12 -12
  181. package/dist/esm/GridContent.js +47 -47
  182. package/dist/esm/GridHero.js +13 -13
  183. package/dist/esm/GroupDeck.js +14 -14
  184. package/dist/esm/HamMagazine.js +36 -36
  185. package/dist/esm/Hero.js +4 -4
  186. package/dist/esm/HighlightenVideo.js +2 -2
  187. package/dist/esm/HorizontalArticleListing.js +47 -47
  188. package/dist/esm/HorizontalHero.js +4 -4
  189. package/dist/esm/IssueContentDeck.js +13 -13
  190. package/dist/esm/IssueDeck.js +15 -15
  191. package/dist/esm/IssueLanding.js +84 -84
  192. package/dist/esm/KMTracker.js +15 -15
  193. package/dist/esm/LeftNav.js +22 -22
  194. package/dist/esm/MasterDeck.js +41 -41
  195. package/dist/esm/MediaSeriesLanding.js +509 -465
  196. package/dist/esm/NavDvm.js +13 -13
  197. package/dist/esm/NavMagazine.js +40 -40
  198. package/dist/esm/NavNative.js +39 -39
  199. package/dist/esm/OncliveHero.js +4 -4
  200. package/dist/esm/OncliveLargeHero.js +13 -13
  201. package/dist/esm/PageFilter.js +6 -6
  202. package/dist/esm/PartnerDetailListing.js +57 -57
  203. package/dist/esm/PdfDownload.js +1 -1
  204. package/dist/esm/PopUpModal.js +6 -6
  205. package/dist/esm/PubSection.js +34 -34
  206. package/dist/esm/PubToc.js +8 -8
  207. package/dist/esm/PublicationDeck.js +7 -7
  208. package/dist/esm/PublicationLanding.js +54 -54
  209. package/dist/esm/QueueDeckExpanded.js +38 -38
  210. package/dist/esm/RecentNews.js +3 -3
  211. package/dist/esm/RelatedContent.js +35 -35
  212. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  213. package/dist/esm/Search.js +7 -7
  214. package/dist/esm/Segment.js +6 -6
  215. package/dist/esm/SeriesListingDeck.js +20 -20
  216. package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-5c62a578.js} +14 -14
  217. package/dist/esm/SetCookie.js +1 -1
  218. package/dist/esm/SideFooter.js +17 -17
  219. package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-cd38ae60.js} +9 -9
  220. package/dist/esm/TaxonomyCard.js +10 -10
  221. package/dist/esm/TaxonomyDescription.js +46 -46
  222. package/dist/esm/TemplateNormal.js +47 -47
  223. package/dist/esm/ThumbnailCard.js +7 -7
  224. package/dist/esm/Ustream.js +13 -13
  225. package/dist/esm/VerticalHero.js +3 -3
  226. package/dist/esm/VideoProgramLandingPage.js +51 -51
  227. package/dist/esm/VideoSeriesCard.js +14 -14
  228. package/dist/esm/VideoSeriesFilter.js +9 -9
  229. package/dist/esm/VideoSeriesLandingPage.js +37 -37
  230. package/dist/esm/VideoSeriesListing.js +33 -33
  231. package/dist/esm/View.js +90 -91
  232. package/dist/esm/YahooHero.js +15 -15
  233. package/dist/esm/YoutubeGroup.js +26 -26
  234. package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
  235. package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
  236. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  237. package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
  238. package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
  239. package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
  240. package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
  241. package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
  242. package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
  243. package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
  244. package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
  245. package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
  246. package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
  247. package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
  248. package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
  249. package/dist/esm/faundadb.js +7 -7
  250. package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
  251. package/dist/esm/getRelatedArticle.js +135 -71
  252. package/dist/esm/getRootDocGroup.js +6 -6
  253. package/dist/esm/getSerializers.js +45 -45
  254. package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
  255. package/dist/esm/getTargeting.js +8 -8
  256. package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
  257. package/dist/esm/{index-f7fb1e25.js → index-2446af28.js} +4 -4
  258. package/dist/esm/{index-6c12bdd5.js → index-35bdcc81.js} +6 -6
  259. package/dist/esm/{index-fed909cb.js → index-66ffc224.js} +163 -163
  260. package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
  261. package/dist/esm/{index-c00b0bbb.js → index-79cfd25c.js} +35 -35
  262. package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
  263. package/dist/esm/index.js +118 -118
  264. package/dist/esm/{inherits-75d45541.js → inherits-a41fe93f.js} +19 -19
  265. package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
  266. package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
  267. package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
  268. package/dist/esm/{main-747e7d25.js → main-b5c5aac1.js} +228 -153
  269. package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
  270. package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
  271. package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
  272. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  273. package/dist/esm/stringify-59c8f690.js +15 -0
  274. package/dist/esm/timeDifferenceCalc.js +1 -1
  275. package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
  276. package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
  277. package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
  278. package/dist/esm/urlFor.js +1 -1
  279. package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
  280. package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
  281. package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
  282. package/package.json +110 -110
  283. package/dist/cjs/keys-a586b7a0.js +0 -25
  284. package/dist/cjs/stringify-7c5aff47.js +0 -17
  285. package/dist/esm/stringify-4330ccdc.js +0 -15
  286. package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
  287. package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
@@ -1,25 +1,25 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-a4107da3.js';
3
- import './es6.string.iterator-c990c18c.js';
4
- import './_library-528f1934.js';
5
- import './_object-pie-33c40e79.js';
6
- import { _ as _extends$1 } from './extends-6f2fcc99.js';
7
- import './_object-sap-964b6feb.js';
8
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-75d45541.js';
9
- import './define-property-8af5f002.js';
10
- import './web.dom.iterable-4439f05a.js';
11
- import { _ as _typeof$1 } from './typeof-af9c50d8.js';
12
- import './_is-array-58e95429.js';
1
+ import { _ as _extends$1 } from './extends-60e0e1c6.js';
2
+ import { _ as _typeof$2 } from './typeof-a286cf0c.js';
3
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a41fe93f.js';
13
4
  import React, { createContext, Component, Children, version as version$2 } from 'react';
14
- import { E as EventEmitter } from './events-6c3a7a63.js';
15
5
  import PropTypes from 'prop-types';
16
- import { m as moment } from './moment-b6f49411.js';
17
- import 'react-dom';
18
- import './index-51a80699.js';
19
- import urlFor from './urlFor.js';
20
- import { L as LazyLoad } from './index-6c12bdd5.js';
6
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
7
+ import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-67e1773f.js';
8
+ import { E as EventEmitter } from './events-6c3a7a63.js';
21
9
  import { DropdownButton } from 'react-bootstrap';
22
- import { _ as _objectWithoutPropertiesLoose$1, a as _extends, c as classnames } from './index-aaa2dae0.js';
10
+ import urlFor from './urlFor.js';
11
+ import { m as moment } from './moment-bc12cb97.js';
12
+ import { L as LazyLoad } from './index-35bdcc81.js';
13
+ import './_to-object-b50e61c3.js';
14
+ import './_object-pie-133f504a.js';
15
+ import './es6.string.iterator-bc33758b.js';
16
+ import './web.dom.iterable-4109ff68.js';
17
+ import './_is-array-3e99e06e.js';
18
+ import './_library-528f1934.js';
19
+ import './_object-sap-f353c2a9.js';
20
+ import './define-property-fe54dc9f.js';
21
+ import './index-0dbff1d1.js';
22
+ import 'react-dom';
23
23
 
24
24
  function _objectWithoutProperties(source, excluded) {
25
25
  if (source == null) return {};
@@ -96,22 +96,33 @@ function _createClass(Constructor, protoProps, staticProps) {
96
96
  return Constructor;
97
97
  }
98
98
 
99
+ var _typeof_1 = createCommonjsModule(function (module) {
99
100
  function _typeof(obj) {
100
101
  "@babel/helpers - typeof";
101
102
 
102
103
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
103
- _typeof = function _typeof(obj) {
104
+ module.exports = _typeof = function _typeof(obj) {
104
105
  return typeof obj;
105
106
  };
107
+
108
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
106
109
  } else {
107
- _typeof = function _typeof(obj) {
110
+ module.exports = _typeof = function _typeof(obj) {
108
111
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
109
112
  };
113
+
114
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
110
115
  }
111
116
 
112
117
  return _typeof(obj);
113
118
  }
114
119
 
120
+ module.exports = _typeof;
121
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
122
+ });
123
+
124
+ var _typeof$1 = unwrapExports(_typeof_1);
125
+
115
126
  function _assertThisInitialized(self) {
116
127
  if (self === void 0) {
117
128
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -121,7 +132,7 @@ function _assertThisInitialized(self) {
121
132
  }
122
133
 
123
134
  function _possibleConstructorReturn(self, call) {
124
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
135
+ if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
125
136
  return call;
126
137
  }
127
138
 
@@ -135,15 +146,6 @@ function _getPrototypeOf(o) {
135
146
  return _getPrototypeOf(o);
136
147
  }
137
148
 
138
- function _setPrototypeOf(o, p) {
139
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
140
- o.__proto__ = p;
141
- return o;
142
- };
143
-
144
- return _setPrototypeOf(o, p);
145
- }
146
-
147
149
  function _inherits(subClass, superClass) {
148
150
  if (typeof superClass !== "function" && superClass !== null) {
149
151
  throw new TypeError("Super expression must either be null or a function");
@@ -294,6 +296,22 @@ var reactFastCompare = function isEqual(a, b) {
294
296
  }
295
297
  };
296
298
 
299
+ function _typeof(obj) {
300
+ "@babel/helpers - typeof";
301
+
302
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
303
+ _typeof = function _typeof(obj) {
304
+ return typeof obj;
305
+ };
306
+ } else {
307
+ _typeof = function _typeof(obj) {
308
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
309
+ };
310
+ }
311
+
312
+ return _typeof(obj);
313
+ }
314
+
297
315
  // From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
298
316
  var shallowEqual = function shallowEqual(objA, objB) {
299
317
  if (objA === objB) {
@@ -338,7 +356,7 @@ var removeEmptyKey = function removeEmptyKey(obj) {
338
356
  return;
339
357
  }
340
358
 
341
- if (!objectHasKeys(value)) {
359
+ if (!objectHasKeys$1(value)) {
342
360
  delete obj[key];
343
361
  } else {
344
362
  removeEmptyKey(value);
@@ -374,7 +392,7 @@ function addQueryID(hits, queryID) {
374
392
  });
375
393
  });
376
394
  }
377
- function find(array, comparator) {
395
+ function find$2(array, comparator) {
378
396
  if (!Array.isArray(array)) {
379
397
  return undefined;
380
398
  }
@@ -387,11 +405,11 @@ function find(array, comparator) {
387
405
 
388
406
  return undefined;
389
407
  }
390
- function objectHasKeys(object) {
408
+ function objectHasKeys$1(object) {
391
409
  return object && Object.keys(object).length > 0;
392
410
  } // https://github.com/babel/babel/blob/3aaafae053fa75febb3aa45d45b6f00646e30ba4/packages/babel-helpers/src/helpers.js#L604-L620
393
411
 
394
- function omit(source, excluded) {
412
+ function omit$1(source, excluded) {
395
413
  if (source === null || source === undefined) {
396
414
  return {};
397
415
  }
@@ -462,9 +480,9 @@ var instantSearchContext = createContext({
462
480
  var InstantSearchConsumer = instantSearchContext.Consumer,
463
481
  InstantSearchProvider = instantSearchContext.Provider;
464
482
 
465
- var _createContext = createContext(undefined),
466
- IndexConsumer = _createContext.Consumer,
467
- IndexProvider = _createContext.Provider;
483
+ var _createContext$1 = createContext(undefined),
484
+ IndexConsumer = _createContext$1.Consumer,
485
+ IndexProvider = _createContext$1.Provider;
468
486
 
469
487
  /**
470
488
  * Connectors are the HOC used to transform React components
@@ -677,9 +695,9 @@ function createConnectorWithoutContext(connectorDesc) {
677
695
  }, {
678
696
  key: "render",
679
697
  value: function render() {
680
- var _this$props = this.props,
681
- contextValue = _this$props.contextValue,
682
- props = _objectWithoutProperties(_this$props, ["contextValue"]);
698
+ var _this$props = this.props;
699
+ _this$props.contextValue;
700
+ var props = _objectWithoutProperties(_this$props, ["contextValue"]);
683
701
 
684
702
  var providedProps = this.state.providedProps;
685
703
 
@@ -830,7 +848,7 @@ function parseAlgoliaHit(_ref2) {
830
848
  });
831
849
  }
832
850
 
833
- var version = '6.11.0';
851
+ var version$1 = '6.10.3';
834
852
 
835
853
  var withKeysPropType = function withKeysPropType(keys) {
836
854
  return function (props, propName, componentName) {
@@ -1027,7 +1045,7 @@ function hasRefinements(_ref) {
1027
1045
  return Object.hasOwnProperty.call(searchState, id);
1028
1046
  }
1029
1047
 
1030
- function getRefinements(_ref2) {
1048
+ function getRefinements$1(_ref2) {
1031
1049
  var multiIndex = _ref2.multiIndex,
1032
1050
  indexId = _ref2.indexId,
1033
1051
  namespace = _ref2.namespace,
@@ -1069,7 +1087,7 @@ function getCurrentRefinementValue(props, searchState, context, id, defaultValue
1069
1087
  var hasRefinementsValue = hasRefinements(args);
1070
1088
 
1071
1089
  if (hasRefinementsValue) {
1072
- return getRefinements(args);
1090
+ return getRefinements$1(args);
1073
1091
  }
1074
1092
 
1075
1093
  if (props.defaultRefinement) {
@@ -1110,10 +1128,10 @@ function cleanUpValueWithSingleIndex(_ref3) {
1110
1128
  attribute = _ref3.attribute;
1111
1129
 
1112
1130
  if (namespace) {
1113
- return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
1131
+ return _objectSpread({}, searchState, _defineProperty({}, namespace, omit$1(searchState[namespace], [attribute])));
1114
1132
  }
1115
1133
 
1116
- return omit(searchState, [id]);
1134
+ return omit$1(searchState, [id]);
1117
1135
  }
1118
1136
 
1119
1137
  function cleanUpValueWithMultiIndex(_ref4) {
@@ -1126,20 +1144,20 @@ function cleanUpValueWithMultiIndex(_ref4) {
1126
1144
 
1127
1145
  if (namespace && indexSearchState) {
1128
1146
  return _objectSpread({}, searchState, {
1129
- indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
1147
+ indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit$1(indexSearchState[namespace], [attribute])))))
1130
1148
  });
1131
1149
  }
1132
1150
 
1133
1151
  if (indexSearchState) {
1134
1152
  return _objectSpread({}, searchState, {
1135
- indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
1153
+ indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit$1(indexSearchState, [id])))
1136
1154
  });
1137
1155
  }
1138
1156
 
1139
1157
  return searchState;
1140
1158
  }
1141
1159
 
1142
- function getId() {
1160
+ function getId$f() {
1143
1161
  return 'configure';
1144
1162
  }
1145
1163
 
@@ -1149,20 +1167,20 @@ var connectConfigure = createConnectorWithContext({
1149
1167
  return {};
1150
1168
  },
1151
1169
  getSearchParameters: function getSearchParameters(searchParameters, props) {
1152
- var children = props.children,
1153
- contextValue = props.contextValue,
1154
- indexContextValue = props.indexContextValue,
1155
- items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1170
+ props.children;
1171
+ props.contextValue;
1172
+ props.indexContextValue;
1173
+ var items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1156
1174
 
1157
1175
  return searchParameters.setQueryParameters(items);
1158
1176
  },
1159
1177
  transitionState: function transitionState(props, prevSearchState, nextSearchState) {
1160
- var id = getId();
1178
+ var id = getId$f();
1161
1179
 
1162
- var children = props.children,
1163
- contextValue = props.contextValue,
1164
- indexContextValue = props.indexContextValue,
1165
- items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1180
+ props.children;
1181
+ props.contextValue;
1182
+ props.indexContextValue;
1183
+ var items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1166
1184
 
1167
1185
  var propKeys = Object.keys(props);
1168
1186
  var nonPresentKeys = this._props ? Object.keys(this._props).filter(function (prop) {
@@ -1170,7 +1188,7 @@ var connectConfigure = createConnectorWithContext({
1170
1188
  }) : [];
1171
1189
  this._props = props;
1172
1190
 
1173
- var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
1191
+ var nextValue = _defineProperty({}, id, _objectSpread({}, omit$1(nextSearchState[id], nonPresentKeys), items));
1174
1192
 
1175
1193
  return refineValue(nextSearchState, nextValue, {
1176
1194
  ais: props.contextValue,
@@ -1178,7 +1196,7 @@ var connectConfigure = createConnectorWithContext({
1178
1196
  });
1179
1197
  },
1180
1198
  cleanUp: function cleanUp(props, searchState) {
1181
- var id = getId();
1199
+ var id = getId$f();
1182
1200
  var indexId = getIndexId({
1183
1201
  ais: props.contextValue,
1184
1202
  multiIndexContext: props.indexContextValue
@@ -1426,13 +1444,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
1426
1444
  return target;
1427
1445
  }
1428
1446
 
1429
- var omit$1 = _objectWithoutPropertiesLoose;
1447
+ var omit = _objectWithoutPropertiesLoose;
1430
1448
 
1431
- function objectHasKeys$1(obj) {
1449
+ function objectHasKeys(obj) {
1432
1450
  return obj && Object.keys(obj).length > 0;
1433
1451
  }
1434
1452
 
1435
- var objectHasKeys_1 = objectHasKeys$1;
1453
+ var objectHasKeys_1 = objectHasKeys;
1436
1454
 
1437
1455
  var isValidUserToken = function isValidUserToken(userToken) {
1438
1456
  if (userToken === null) {
@@ -1540,7 +1558,7 @@ var lib = {
1540
1558
  }
1541
1559
  return {};
1542
1560
  } else if (typeof attribute === 'string') {
1543
- return omit$1(refinementList, [attribute]);
1561
+ return omit(refinementList, [attribute]);
1544
1562
  } else if (typeof attribute === 'function') {
1545
1563
  var hasChanged = false;
1546
1564
 
@@ -1585,7 +1603,7 @@ var lib = {
1585
1603
  }
1586
1604
  };
1587
1605
 
1588
- var RefinementList = lib;
1606
+ var RefinementList$3 = lib;
1589
1607
 
1590
1608
  /**
1591
1609
  * isEqual, but only for numeric refinement values, possible values:
@@ -1954,22 +1972,22 @@ SearchParameters.prototype = {
1954
1972
  clearRefinements: function clearRefinements(attribute) {
1955
1973
  var patch = {
1956
1974
  numericRefinements: this._clearNumericRefinements(attribute),
1957
- facetsRefinements: RefinementList.clearRefinement(
1975
+ facetsRefinements: RefinementList$3.clearRefinement(
1958
1976
  this.facetsRefinements,
1959
1977
  attribute,
1960
1978
  'conjunctiveFacet'
1961
1979
  ),
1962
- facetsExcludes: RefinementList.clearRefinement(
1980
+ facetsExcludes: RefinementList$3.clearRefinement(
1963
1981
  this.facetsExcludes,
1964
1982
  attribute,
1965
1983
  'exclude'
1966
1984
  ),
1967
- disjunctiveFacetsRefinements: RefinementList.clearRefinement(
1985
+ disjunctiveFacetsRefinements: RefinementList$3.clearRefinement(
1968
1986
  this.disjunctiveFacetsRefinements,
1969
1987
  attribute,
1970
1988
  'disjunctiveFacet'
1971
1989
  ),
1972
- hierarchicalFacetsRefinements: RefinementList.clearRefinement(
1990
+ hierarchicalFacetsRefinements: RefinementList$3.clearRefinement(
1973
1991
  this.hierarchicalFacetsRefinements,
1974
1992
  attribute,
1975
1993
  'hierarchicalFacet'
@@ -2245,7 +2263,7 @@ SearchParameters.prototype = {
2245
2263
  }
2246
2264
  return {};
2247
2265
  } else if (typeof attribute === 'string') {
2248
- return omit$1(this.numericRefinements, [attribute]);
2266
+ return omit(this.numericRefinements, [attribute]);
2249
2267
  } else if (typeof attribute === 'function') {
2250
2268
  var hasChanged = false;
2251
2269
  var numericRefinements = this.numericRefinements;
@@ -2337,10 +2355,10 @@ SearchParameters.prototype = {
2337
2355
  if (!this.isConjunctiveFacet(facet)) {
2338
2356
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2339
2357
  }
2340
- if (RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
2358
+ if (RefinementList$3.isRefined(this.facetsRefinements, facet, value)) return this;
2341
2359
 
2342
2360
  return this.setQueryParameters({
2343
- facetsRefinements: RefinementList.addRefinement(this.facetsRefinements, facet, value)
2361
+ facetsRefinements: RefinementList$3.addRefinement(this.facetsRefinements, facet, value)
2344
2362
  });
2345
2363
  },
2346
2364
  /**
@@ -2354,10 +2372,10 @@ SearchParameters.prototype = {
2354
2372
  if (!this.isConjunctiveFacet(facet)) {
2355
2373
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2356
2374
  }
2357
- if (RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
2375
+ if (RefinementList$3.isRefined(this.facetsExcludes, facet, value)) return this;
2358
2376
 
2359
2377
  return this.setQueryParameters({
2360
- facetsExcludes: RefinementList.addRefinement(this.facetsExcludes, facet, value)
2378
+ facetsExcludes: RefinementList$3.addRefinement(this.facetsExcludes, facet, value)
2361
2379
  });
2362
2380
  },
2363
2381
  /**
@@ -2373,10 +2391,10 @@ SearchParameters.prototype = {
2373
2391
  facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
2374
2392
  }
2375
2393
 
2376
- if (RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2394
+ if (RefinementList$3.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2377
2395
 
2378
2396
  return this.setQueryParameters({
2379
- disjunctiveFacetsRefinements: RefinementList.addRefinement(
2397
+ disjunctiveFacetsRefinements: RefinementList$3.addRefinement(
2380
2398
  this.disjunctiveFacetsRefinements, facet, value)
2381
2399
  });
2382
2400
  },
@@ -2461,10 +2479,10 @@ SearchParameters.prototype = {
2461
2479
  if (!this.isConjunctiveFacet(facet)) {
2462
2480
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2463
2481
  }
2464
- if (!RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
2482
+ if (!RefinementList$3.isRefined(this.facetsRefinements, facet, value)) return this;
2465
2483
 
2466
2484
  return this.setQueryParameters({
2467
- facetsRefinements: RefinementList.removeRefinement(this.facetsRefinements, facet, value)
2485
+ facetsRefinements: RefinementList$3.removeRefinement(this.facetsRefinements, facet, value)
2468
2486
  });
2469
2487
  },
2470
2488
  /**
@@ -2478,10 +2496,10 @@ SearchParameters.prototype = {
2478
2496
  if (!this.isConjunctiveFacet(facet)) {
2479
2497
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2480
2498
  }
2481
- if (!RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
2499
+ if (!RefinementList$3.isRefined(this.facetsExcludes, facet, value)) return this;
2482
2500
 
2483
2501
  return this.setQueryParameters({
2484
- facetsExcludes: RefinementList.removeRefinement(this.facetsExcludes, facet, value)
2502
+ facetsExcludes: RefinementList$3.removeRefinement(this.facetsExcludes, facet, value)
2485
2503
  });
2486
2504
  },
2487
2505
  /**
@@ -2496,10 +2514,10 @@ SearchParameters.prototype = {
2496
2514
  throw new Error(
2497
2515
  facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
2498
2516
  }
2499
- if (!RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2517
+ if (!RefinementList$3.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2500
2518
 
2501
2519
  return this.setQueryParameters({
2502
- disjunctiveFacetsRefinements: RefinementList.removeRefinement(
2520
+ disjunctiveFacetsRefinements: RefinementList$3.removeRefinement(
2503
2521
  this.disjunctiveFacetsRefinements, facet, value)
2504
2522
  });
2505
2523
  },
@@ -2565,7 +2583,7 @@ SearchParameters.prototype = {
2565
2583
  }
2566
2584
 
2567
2585
  return this.setQueryParameters({
2568
- facetsRefinements: RefinementList.toggleRefinement(this.facetsRefinements, facet, value)
2586
+ facetsRefinements: RefinementList$3.toggleRefinement(this.facetsRefinements, facet, value)
2569
2587
  });
2570
2588
  },
2571
2589
  /**
@@ -2581,7 +2599,7 @@ SearchParameters.prototype = {
2581
2599
  }
2582
2600
 
2583
2601
  return this.setQueryParameters({
2584
- facetsExcludes: RefinementList.toggleRefinement(this.facetsExcludes, facet, value)
2602
+ facetsExcludes: RefinementList$3.toggleRefinement(this.facetsExcludes, facet, value)
2585
2603
  });
2586
2604
  },
2587
2605
  /**
@@ -2598,7 +2616,7 @@ SearchParameters.prototype = {
2598
2616
  }
2599
2617
 
2600
2618
  return this.setQueryParameters({
2601
- disjunctiveFacetsRefinements: RefinementList.toggleRefinement(
2619
+ disjunctiveFacetsRefinements: RefinementList$3.toggleRefinement(
2602
2620
  this.disjunctiveFacetsRefinements, facet, value)
2603
2621
  });
2604
2622
  },
@@ -2737,7 +2755,7 @@ SearchParameters.prototype = {
2737
2755
  if (!this.isConjunctiveFacet(facet)) {
2738
2756
  return false;
2739
2757
  }
2740
- return RefinementList.isRefined(this.facetsRefinements, facet, value);
2758
+ return RefinementList$3.isRefined(this.facetsRefinements, facet, value);
2741
2759
  },
2742
2760
  /**
2743
2761
  * Returns true if the facet contains exclusions or if a specific value is
@@ -2753,7 +2771,7 @@ SearchParameters.prototype = {
2753
2771
  if (!this.isConjunctiveFacet(facet)) {
2754
2772
  return false;
2755
2773
  }
2756
- return RefinementList.isRefined(this.facetsExcludes, facet, value);
2774
+ return RefinementList$3.isRefined(this.facetsExcludes, facet, value);
2757
2775
  },
2758
2776
  /**
2759
2777
  * Returns true if the facet contains a refinement, or if a value passed is a
@@ -2768,7 +2786,7 @@ SearchParameters.prototype = {
2768
2786
  if (!this.isDisjunctiveFacet(facet)) {
2769
2787
  return false;
2770
2788
  }
2771
- return RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value);
2789
+ return RefinementList$3.isRefined(this.disjunctiveFacetsRefinements, facet, value);
2772
2790
  },
2773
2791
  /**
2774
2792
  * Returns true if the facet contains a refinement, or if a value passed is a
@@ -2954,7 +2972,7 @@ SearchParameters.prototype = {
2954
2972
  var isNextValueDefined = nextWithNumbers[key] !== undefined;
2955
2973
 
2956
2974
  if (isPreviousValueDefined && !isNextValueDefined) {
2957
- return omit$1(previous, [key]);
2975
+ return omit(previous, [key]);
2958
2976
  }
2959
2977
 
2960
2978
  if (isNextValueDefined) {
@@ -4687,7 +4705,7 @@ var requestBuilder = {
4687
4705
 
4688
4706
  var requestBuilder_1 = requestBuilder;
4689
4707
 
4690
- var version$1 = '3.4.4';
4708
+ var version = '3.4.4';
4691
4709
 
4692
4710
  /**
4693
4711
  * Event triggered when a parameter is set or updated
@@ -4794,7 +4812,7 @@ var version$1 = '3.4.4';
4794
4812
  */
4795
4813
  function AlgoliaSearchHelper(client, index, options) {
4796
4814
  if (typeof client.addAlgoliaAgent === 'function') {
4797
- client.addAlgoliaAgent('JS Helper (' + version$1 + ')');
4815
+ client.addAlgoliaAgent('JS Helper (' + version + ')');
4798
4816
  }
4799
4817
 
4800
4818
  this.setClient(client);
@@ -4949,7 +4967,7 @@ AlgoliaSearchHelper.prototype.findAnswers = function(options) {
4949
4967
  nbHits: options.nbHits
4950
4968
  },
4951
4969
  {
4952
- params: omit$1(requestBuilder_1._getHitsSearchParams(derivedState), [
4970
+ params: omit(requestBuilder_1._getHitsSearchParams(derivedState), [
4953
4971
  'attributesToSnippet',
4954
4972
  'hitsPerPage',
4955
4973
  'restrictSearchableAttributes',
@@ -6063,7 +6081,7 @@ AlgoliaSearchHelper.prototype.setClient = function(newClient) {
6063
6081
  if (this.client === newClient) return this;
6064
6082
 
6065
6083
  if (typeof newClient.addAlgoliaAgent === 'function') {
6066
- newClient.addAlgoliaAgent('JS Helper (' + version$1 + ')');
6084
+ newClient.addAlgoliaAgent('JS Helper (' + version + ')');
6067
6085
  }
6068
6086
  this.client = newClient;
6069
6087
 
@@ -6182,7 +6200,7 @@ function algoliasearchHelper(client, index, opts) {
6182
6200
  * @member module:algoliasearchHelper.version
6183
6201
  * @type {number}
6184
6202
  */
6185
- algoliasearchHelper.version = version$1;
6203
+ algoliasearchHelper.version = version;
6186
6204
 
6187
6205
  /**
6188
6206
  * Constructor for the Helper.
@@ -6214,13 +6232,13 @@ function createOptionalFilter(_ref) {
6214
6232
  return "".concat(attributeName, ":").concat(attributeValue, "<score=").concat(attributeScore || 1, ">");
6215
6233
  }
6216
6234
 
6217
- var defaultProps = {
6235
+ var defaultProps$1 = {
6218
6236
  transformSearchParameters: function transformSearchParameters(x) {
6219
6237
  return _objectSpread({}, x);
6220
6238
  }
6221
6239
  };
6222
6240
 
6223
- function getId$1() {
6241
+ function getId$e() {
6224
6242
  // We store the search state of this widget in `configure`.
6225
6243
  return 'configure';
6226
6244
  }
@@ -6268,7 +6286,7 @@ function getSearchParametersFromProps(props) {
6268
6286
 
6269
6287
  var connectConfigureRelatedItems = createConnectorWithContext({
6270
6288
  displayName: 'AlgoliaConfigureRelatedItems',
6271
- defaultProps: defaultProps,
6289
+ defaultProps: defaultProps$1,
6272
6290
  getProvidedProps: function getProvidedProps() {
6273
6291
  return {};
6274
6292
  },
@@ -6276,7 +6294,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
6276
6294
  return searchParameters.setQueryParameters(getSearchParametersFromProps(props));
6277
6295
  },
6278
6296
  transitionState: function transitionState(props, _prevSearchState, nextSearchState) {
6279
- var id = getId$1(); // We need to transform the exhaustive search parameters back to clean
6297
+ var id = getId$e(); // We need to transform the exhaustive search parameters back to clean
6280
6298
  // search parameters without the empty default keys so we don't pollute the
6281
6299
  // `configure` search state.
6282
6300
 
@@ -6287,7 +6305,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
6287
6305
  }) : [];
6288
6306
  this._searchParameters = searchParameters;
6289
6307
 
6290
- var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
6308
+ var nextValue = _defineProperty({}, id, _objectSpread({}, omit$1(nextSearchState[id], nonPresentKeys), searchParameters));
6291
6309
 
6292
6310
  return refineValue(nextSearchState, nextValue, {
6293
6311
  ais: props.contextValue,
@@ -6297,7 +6315,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
6297
6315
  cleanUp: function cleanUp(props, searchState) {
6298
6316
  var _this = this;
6299
6317
 
6300
- var id = getId$1();
6318
+ var id = getId$e();
6301
6319
  var indexId = getIndexId({
6302
6320
  ais: props.contextValue,
6303
6321
  multiIndexContext: props.indexContextValue
@@ -6370,7 +6388,7 @@ function getWidgetRefinements(attribute, widgetKey, searchState) {
6370
6388
  }
6371
6389
  }
6372
6390
 
6373
- function getRefinements$1(attribute) {
6391
+ function getRefinements(attribute) {
6374
6392
  var searchState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6375
6393
  var refinements = Object.keys(searchState).filter(function (widgetKey) {
6376
6394
  return searchState[widgetKey] !== undefined && searchState[widgetKey][attribute] !== undefined;
@@ -6387,7 +6405,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
6387
6405
  var searchState = _ref.searchState,
6388
6406
  trackedFilters = _ref.trackedFilters;
6389
6407
  var ruleContexts = Object.keys(trackedFilters).reduce(function (facets, facetName) {
6390
- var facetRefinements = getRefinements$1(facetName, searchState);
6408
+ var facetRefinements = getRefinements(facetName, searchState);
6391
6409
  var getTrackedFacetValues = trackedFilters[facetName];
6392
6410
  var trackedFacetValues = getTrackedFacetValues(facetRefinements);
6393
6411
  return [].concat(_toConsumableArray(facets), _toConsumableArray(facetRefinements.filter(function (facetRefinement) {
@@ -6399,7 +6417,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
6399
6417
  return ruleContexts;
6400
6418
  }
6401
6419
 
6402
- var defaultProps$1 = {
6420
+ var defaultProps = {
6403
6421
  transformItems: function transformItems(items) {
6404
6422
  return items;
6405
6423
  },
@@ -6410,7 +6428,7 @@ var defaultProps$1 = {
6410
6428
  };
6411
6429
  var connectQueryRules = createConnectorWithContext({
6412
6430
  displayName: 'AlgoliaQueryRules',
6413
- defaultProps: defaultProps$1,
6431
+ defaultProps: defaultProps,
6414
6432
  getProvidedProps: function getProvidedProps(props, _1, searchResults) {
6415
6433
  var results = getResults(searchResults, {
6416
6434
  ais: props.contextValue,
@@ -6587,20 +6605,10 @@ _defineProperty(Index, "propTypes", {
6587
6605
  children: PropTypes.node
6588
6606
  });
6589
6607
 
6590
- var IndexWrapper = function IndexWrapper(props) {
6591
- var inferredIndexId = props.indexName;
6592
- return React.createElement(InstantSearchConsumer, null, function (contextValue) {
6593
- return React.createElement(Index, _extends({
6594
- contextValue: contextValue,
6595
- indexId: inferredIndexId
6596
- }, props));
6597
- });
6598
- };
6599
-
6600
- IndexWrapper.propTypes = {
6608
+ ({
6601
6609
  indexName: PropTypes.string.isRequired,
6602
6610
  indexId: PropTypes.string
6603
- };
6611
+ });
6604
6612
 
6605
6613
  function createWidgetsManager(onWidgetsUpdate) {
6606
6614
  var widgets = []; // Is an update scheduled?
@@ -6661,7 +6669,7 @@ function createStore(initialState) {
6661
6669
  function addAlgoliaAgents(searchClient) {
6662
6670
  if (typeof searchClient.addAlgoliaAgent === 'function') {
6663
6671
  searchClient.addAlgoliaAgent("react (".concat(version$2, ")"));
6664
- searchClient.addAlgoliaAgent("react-instantsearch (".concat(version, ")"));
6672
+ searchClient.addAlgoliaAgent("react-instantsearch (".concat(version$1, ")"));
6665
6673
  }
6666
6674
  }
6667
6675
 
@@ -6899,8 +6907,8 @@ function createInstantSearchManager(_ref) {
6899
6907
  nextIsSearchStalled = false;
6900
6908
  }
6901
6909
 
6902
- var resultsFacetValues = currentState.resultsFacetValues,
6903
- partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6910
+ currentState.resultsFacetValues;
6911
+ var partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6904
6912
 
6905
6913
  store.setState(_objectSpread({}, partialState, {
6906
6914
  results: results,
@@ -6921,8 +6929,8 @@ function createInstantSearchManager(_ref) {
6921
6929
  nextIsSearchStalled = false;
6922
6930
  }
6923
6931
 
6924
- var resultsFacetValues = currentState.resultsFacetValues,
6925
- partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6932
+ currentState.resultsFacetValues;
6933
+ var partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6926
6934
 
6927
6935
  store.setState(_objectSpread({}, partialState, {
6928
6936
  isSearchStalled: nextIsSearchStalled,
@@ -6934,9 +6942,9 @@ function createInstantSearchManager(_ref) {
6934
6942
  function handleNewSearch() {
6935
6943
  if (!stalledSearchTimer) {
6936
6944
  stalledSearchTimer = setTimeout(function () {
6937
- var _store$getState = store.getState(),
6938
- resultsFacetValues = _store$getState.resultsFacetValues,
6939
- partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
6945
+ var _store$getState = store.getState();
6946
+ _store$getState.resultsFacetValues;
6947
+ var partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
6940
6948
 
6941
6949
  store.setState(_objectSpread({}, partialState, {
6942
6950
  isSearchStalled: true
@@ -7435,21 +7443,21 @@ _defineProperty(InstantSearch, "propTypes", {
7435
7443
  stalledSearchDelay: PropTypes.number
7436
7444
  });
7437
7445
 
7438
- var getId$2 = function getId(props) {
7446
+ var getId$d = function getId(props) {
7439
7447
  return props.attributes[0];
7440
7448
  };
7441
- var namespace = 'hierarchicalMenu';
7449
+ var namespace$6 = 'hierarchicalMenu';
7442
7450
 
7443
- function _refine(props, searchState, nextRefinement, context) {
7444
- var id = getId$2(props);
7451
+ function _refine$9(props, searchState, nextRefinement, context) {
7452
+ var id = getId$d(props);
7445
7453
 
7446
7454
  var nextValue = _defineProperty({}, id, nextRefinement || '');
7447
7455
 
7448
7456
  var resetPage = true;
7449
- return refineValue(searchState, nextValue, context, resetPage, namespace);
7457
+ return refineValue(searchState, nextValue, context, resetPage, namespace$6);
7450
7458
  }
7451
7459
 
7452
- function transformValue(values) {
7460
+ function transformValue$1(values) {
7453
7461
  return values.reduce(function (acc, item) {
7454
7462
  if (item.isRefined) {
7455
7463
  acc.push({
@@ -7460,7 +7468,7 @@ function transformValue(values) {
7460
7468
  }); // Create a variable in order to keep the same acc for the recursion, otherwise "reduce" returns a new one
7461
7469
 
7462
7470
  if (item.data) {
7463
- acc = acc.concat(transformValue(item.data));
7471
+ acc = acc.concat(transformValue$1(item.data));
7464
7472
  }
7465
7473
  }
7466
7474
 
@@ -7522,7 +7530,7 @@ var connectBreadcrumb = createConnectorWithContext({
7522
7530
  transformItems: PropTypes.func
7523
7531
  },
7524
7532
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
7525
- var id = getId$2(props);
7533
+ var id = getId$d(props);
7526
7534
  var results = getResults(searchResults, {
7527
7535
  ais: props.contextValue,
7528
7536
  multiIndexContext: props.indexContextValue
@@ -7537,7 +7545,7 @@ var connectBreadcrumb = createConnectorWithContext({
7537
7545
  }
7538
7546
 
7539
7547
  var values = results.getFacetValues(id);
7540
- var items = values.data ? transformValue(values.data) : [];
7548
+ var items = values.data ? transformValue$1(values.data) : [];
7541
7549
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
7542
7550
  return {
7543
7551
  canRefine: transformedItems.length > 0,
@@ -7545,7 +7553,7 @@ var connectBreadcrumb = createConnectorWithContext({
7545
7553
  };
7546
7554
  },
7547
7555
  refine: function refine(props, searchState, nextRefinement) {
7548
- return _refine(props, searchState, nextRefinement, {
7556
+ return _refine$9(props, searchState, nextRefinement, {
7549
7557
  ais: props.contextValue,
7550
7558
  multiIndexContext: props.indexContextValue
7551
7559
  });
@@ -7608,13 +7616,13 @@ var connectCurrentRefinements = createConnectorWithContext({
7608
7616
  }
7609
7617
  });
7610
7618
 
7611
- var getId$3 = function getId(props) {
7619
+ var getId$c = function getId(props) {
7612
7620
  return props.attributes[0];
7613
7621
  };
7614
- var namespace$1 = 'hierarchicalMenu';
7622
+ var namespace$5 = 'hierarchicalMenu';
7615
7623
 
7616
- function getCurrentRefinement(props, searchState, context) {
7617
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)), null);
7624
+ function getCurrentRefinement$b(props, searchState, context) {
7625
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$5, ".").concat(getId$c(props)), null);
7618
7626
 
7619
7627
  if (currentRefinement === '') {
7620
7628
  return null;
@@ -7623,13 +7631,13 @@ function getCurrentRefinement(props, searchState, context) {
7623
7631
  return currentRefinement;
7624
7632
  }
7625
7633
 
7626
- function getValue(path, props, searchState, context) {
7634
+ function getValue$2(path, props, searchState, context) {
7627
7635
  var id = props.id,
7628
7636
  attributes = props.attributes,
7629
7637
  separator = props.separator,
7630
7638
  rootPath = props.rootPath,
7631
7639
  showParentLevel = props.showParentLevel;
7632
- var currentRefinement = getCurrentRefinement(props, searchState, context);
7640
+ var currentRefinement = getCurrentRefinement$b(props, searchState, context);
7633
7641
  var nextRefinement;
7634
7642
 
7635
7643
  if (currentRefinement === null) {
@@ -7650,14 +7658,14 @@ function getValue(path, props, searchState, context) {
7650
7658
  return nextRefinement;
7651
7659
  }
7652
7660
 
7653
- function transformValue$1(value, props, searchState, context) {
7661
+ function transformValue(value, props, searchState, context) {
7654
7662
  return value.map(function (v) {
7655
7663
  return {
7656
7664
  label: v.name,
7657
- value: getValue(v.path, props, searchState, context),
7665
+ value: getValue$2(v.path, props, searchState, context),
7658
7666
  count: v.count,
7659
7667
  isRefined: v.isRefined,
7660
- items: v.data && transformValue$1(v.data, props, searchState, context)
7668
+ items: v.data && transformValue(v.data, props, searchState, context)
7661
7669
  };
7662
7670
  });
7663
7671
  }
@@ -7673,20 +7681,20 @@ var truncate = function truncate() {
7673
7681
  });
7674
7682
  };
7675
7683
 
7676
- function _refine$1(props, searchState, nextRefinement, context) {
7677
- var id = getId$3(props);
7684
+ function _refine$8(props, searchState, nextRefinement, context) {
7685
+ var id = getId$c(props);
7678
7686
 
7679
7687
  var nextValue = _defineProperty({}, id, nextRefinement || '');
7680
7688
 
7681
7689
  var resetPage = true;
7682
- return refineValue(searchState, nextValue, context, resetPage, namespace$1);
7690
+ return refineValue(searchState, nextValue, context, resetPage, namespace$5);
7683
7691
  }
7684
7692
 
7685
- function _cleanUp(props, searchState, context) {
7686
- return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)));
7693
+ function _cleanUp$7(props, searchState, context) {
7694
+ return cleanUpValue(searchState, context, "".concat(namespace$5, ".").concat(getId$c(props)));
7687
7695
  }
7688
7696
 
7689
- var sortBy = ['name:asc'];
7697
+ var sortBy$1 = ['name:asc'];
7690
7698
  /**
7691
7699
  * connectHierarchicalMenu connector provides the logic to build a widget that will
7692
7700
  * give the user the ability to explore a tree-like structure.
@@ -7768,7 +7776,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7768
7776
  var showMore = props.showMore,
7769
7777
  limit = props.limit,
7770
7778
  showMoreLimit = props.showMoreLimit;
7771
- var id = getId$3(props);
7779
+ var id = getId$c(props);
7772
7780
  var results = getResults(searchResults, {
7773
7781
  ais: props.contextValue,
7774
7782
  multiIndexContext: props.indexContextValue
@@ -7778,7 +7786,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7778
7786
  if (!isFacetPresent) {
7779
7787
  return {
7780
7788
  items: [],
7781
- currentRefinement: getCurrentRefinement(props, searchState, {
7789
+ currentRefinement: getCurrentRefinement$b(props, searchState, {
7782
7790
  ais: props.contextValue,
7783
7791
  multiIndexContext: props.indexContextValue
7784
7792
  }),
@@ -7788,16 +7796,16 @@ var connectHierarchicalMenu = createConnectorWithContext({
7788
7796
 
7789
7797
  var itemsLimit = showMore ? showMoreLimit : limit;
7790
7798
  var value = results.getFacetValues(id, {
7791
- sortBy: sortBy
7799
+ sortBy: sortBy$1
7792
7800
  });
7793
- var items = value.data ? transformValue$1(value.data, props, searchState, {
7801
+ var items = value.data ? transformValue(value.data, props, searchState, {
7794
7802
  ais: props.contextValue,
7795
7803
  multiIndexContext: props.indexContextValue
7796
7804
  }) : [];
7797
7805
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
7798
7806
  return {
7799
7807
  items: truncate(transformedItems, itemsLimit),
7800
- currentRefinement: getCurrentRefinement(props, searchState, {
7808
+ currentRefinement: getCurrentRefinement$b(props, searchState, {
7801
7809
  ais: props.contextValue,
7802
7810
  multiIndexContext: props.indexContextValue
7803
7811
  }),
@@ -7805,13 +7813,13 @@ var connectHierarchicalMenu = createConnectorWithContext({
7805
7813
  };
7806
7814
  },
7807
7815
  refine: function refine(props, searchState, nextRefinement) {
7808
- return _refine$1(props, searchState, nextRefinement, {
7816
+ return _refine$8(props, searchState, nextRefinement, {
7809
7817
  ais: props.contextValue,
7810
7818
  multiIndexContext: props.indexContextValue
7811
7819
  });
7812
7820
  },
7813
7821
  cleanUp: function cleanUp(props, searchState) {
7814
- return _cleanUp(props, searchState, {
7822
+ return _cleanUp$7(props, searchState, {
7815
7823
  ais: props.contextValue,
7816
7824
  multiIndexContext: props.indexContextValue
7817
7825
  });
@@ -7825,7 +7833,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7825
7833
  limit = props.limit,
7826
7834
  showMoreLimit = props.showMoreLimit,
7827
7835
  contextValue = props.contextValue;
7828
- var id = getId$3(props);
7836
+ var id = getId$c(props);
7829
7837
  var itemsLimit = showMore ? showMoreLimit : limit;
7830
7838
  searchParameters = searchParameters.addHierarchicalFacet({
7831
7839
  name: id,
@@ -7836,7 +7844,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7836
7844
  }).setQueryParameters({
7837
7845
  maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, itemsLimit)
7838
7846
  });
7839
- var currentRefinement = getCurrentRefinement(props, searchState, {
7847
+ var currentRefinement = getCurrentRefinement$b(props, searchState, {
7840
7848
  ais: contextValue,
7841
7849
  multiIndexContext: props.indexContextValue
7842
7850
  });
@@ -7849,8 +7857,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
7849
7857
  },
7850
7858
  getMetadata: function getMetadata(props, searchState) {
7851
7859
  var rootAttribute = props.attributes[0];
7852
- var id = getId$3(props);
7853
- var currentRefinement = getCurrentRefinement(props, searchState, {
7860
+ var id = getId$c(props);
7861
+ var currentRefinement = getCurrentRefinement$b(props, searchState, {
7854
7862
  ais: props.contextValue,
7855
7863
  multiIndexContext: props.indexContextValue
7856
7864
  });
@@ -7858,7 +7866,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7858
7866
  label: "".concat(rootAttribute, ": ").concat(currentRefinement),
7859
7867
  attribute: rootAttribute,
7860
7868
  value: function value(nextState) {
7861
- return _refine$1(props, nextState, '', {
7869
+ return _refine$8(props, nextState, '', {
7862
7870
  ais: props.contextValue,
7863
7871
  multiIndexContext: props.indexContextValue
7864
7872
  });
@@ -8035,12 +8043,12 @@ var connectHits = createConnectorWithContext({
8035
8043
  }
8036
8044
  });
8037
8045
 
8038
- function getId$4() {
8046
+ function getId$b() {
8039
8047
  return 'hitsPerPage';
8040
8048
  }
8041
8049
 
8042
- function getCurrentRefinement$1(props, searchState, context) {
8043
- var id = getId$4();
8050
+ function getCurrentRefinement$a(props, searchState, context) {
8051
+ var id = getId$b();
8044
8052
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
8045
8053
 
8046
8054
  if (typeof currentRefinement === 'string') {
@@ -8075,7 +8083,7 @@ var connectHitsPerPage = createConnectorWithContext({
8075
8083
  transformItems: PropTypes.func
8076
8084
  },
8077
8085
  getProvidedProps: function getProvidedProps(props, searchState) {
8078
- var currentRefinement = getCurrentRefinement$1(props, searchState, {
8086
+ var currentRefinement = getCurrentRefinement$a(props, searchState, {
8079
8087
  ais: props.contextValue,
8080
8088
  multiIndexContext: props.indexContextValue
8081
8089
  });
@@ -8092,7 +8100,7 @@ var connectHitsPerPage = createConnectorWithContext({
8092
8100
  };
8093
8101
  },
8094
8102
  refine: function refine(props, searchState, nextRefinement) {
8095
- var id = getId$4();
8103
+ var id = getId$b();
8096
8104
 
8097
8105
  var nextValue = _defineProperty({}, id, nextRefinement);
8098
8106
 
@@ -8106,27 +8114,27 @@ var connectHitsPerPage = createConnectorWithContext({
8106
8114
  return cleanUpValue(searchState, {
8107
8115
  ais: props.contextValue,
8108
8116
  multiIndexContext: props.indexContextValue
8109
- }, getId$4());
8117
+ }, getId$b());
8110
8118
  },
8111
8119
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8112
- return searchParameters.setHitsPerPage(getCurrentRefinement$1(props, searchState, {
8120
+ return searchParameters.setHitsPerPage(getCurrentRefinement$a(props, searchState, {
8113
8121
  ais: props.contextValue,
8114
8122
  multiIndexContext: props.indexContextValue
8115
8123
  }));
8116
8124
  },
8117
8125
  getMetadata: function getMetadata() {
8118
8126
  return {
8119
- id: getId$4()
8127
+ id: getId$b()
8120
8128
  };
8121
8129
  }
8122
8130
  });
8123
8131
 
8124
- function getId$5() {
8132
+ function getId$a() {
8125
8133
  return 'page';
8126
8134
  }
8127
8135
 
8128
- function getCurrentRefinement$2(props, searchState, context) {
8129
- var id = getId$5();
8136
+ function getCurrentRefinement$9(props, searchState, context) {
8137
+ var id = getId$a();
8130
8138
  var page = 1;
8131
8139
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
8132
8140
 
@@ -8138,9 +8146,9 @@ function getCurrentRefinement$2(props, searchState, context) {
8138
8146
  }
8139
8147
 
8140
8148
  function getStateWithoutPage(state) {
8141
- var _ref = state || {},
8142
- page = _ref.page,
8143
- rest = _objectWithoutProperties(_ref, ["page"]);
8149
+ var _ref = state || {};
8150
+ _ref.page;
8151
+ var rest = _objectWithoutProperties(_ref, ["page"]);
8144
8152
 
8145
8153
  return rest;
8146
8154
  }
@@ -8249,14 +8257,14 @@ var connectInfiniteHits = createConnectorWithContext({
8249
8257
  },
8250
8258
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8251
8259
  return searchParameters.setQueryParameters({
8252
- page: getCurrentRefinement$2(props, searchState, {
8260
+ page: getCurrentRefinement$9(props, searchState, {
8253
8261
  ais: props.contextValue,
8254
8262
  multiIndexContext: props.indexContextValue
8255
8263
  }) - 1
8256
8264
  });
8257
8265
  },
8258
8266
  refine: function refine(props, searchState, event, index) {
8259
- var id = getId$5();
8267
+ var id = getId$a();
8260
8268
 
8261
8269
  var nextValue = _defineProperty({}, id, index + 1);
8262
8270
 
@@ -8268,14 +8276,14 @@ var connectInfiniteHits = createConnectorWithContext({
8268
8276
  }
8269
8277
  });
8270
8278
 
8271
- var namespace$2 = 'menu';
8279
+ var namespace$4 = 'menu';
8272
8280
 
8273
- function getId$6(props) {
8281
+ function getId$9(props) {
8274
8282
  return props.attribute;
8275
8283
  }
8276
8284
 
8277
- function getCurrentRefinement$3(props, searchState, context) {
8278
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)), null);
8285
+ function getCurrentRefinement$8(props, searchState, context) {
8286
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)), null);
8279
8287
 
8280
8288
  if (currentRefinement === '') {
8281
8289
  return null;
@@ -8285,28 +8293,28 @@ function getCurrentRefinement$3(props, searchState, context) {
8285
8293
  }
8286
8294
 
8287
8295
  function getValue$1(name, props, searchState, context) {
8288
- var currentRefinement = getCurrentRefinement$3(props, searchState, context);
8296
+ var currentRefinement = getCurrentRefinement$8(props, searchState, context);
8289
8297
  return name === currentRefinement ? '' : name;
8290
8298
  }
8291
8299
 
8292
- function getLimit(_ref) {
8300
+ function getLimit$1(_ref) {
8293
8301
  var showMore = _ref.showMore,
8294
8302
  limit = _ref.limit,
8295
8303
  showMoreLimit = _ref.showMoreLimit;
8296
8304
  return showMore ? showMoreLimit : limit;
8297
8305
  }
8298
8306
 
8299
- function _refine$2(props, searchState, nextRefinement, context) {
8300
- var id = getId$6(props);
8307
+ function _refine$7(props, searchState, nextRefinement, context) {
8308
+ var id = getId$9(props);
8301
8309
 
8302
8310
  var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
8303
8311
 
8304
8312
  var resetPage = true;
8305
- return refineValue(searchState, nextValue, context, resetPage, namespace$2);
8313
+ return refineValue(searchState, nextValue, context, resetPage, namespace$4);
8306
8314
  }
8307
8315
 
8308
- function _cleanUp$1(props, searchState, context) {
8309
- return cleanUpValue(searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)));
8316
+ function _cleanUp$6(props, searchState, context) {
8317
+ return cleanUpValue(searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)));
8310
8318
  }
8311
8319
 
8312
8320
  var defaultSortBy = ['count:desc', 'name:asc'];
@@ -8365,7 +8373,7 @@ var connectMenu = createConnectorWithContext({
8365
8373
  if (!canRefine) {
8366
8374
  return {
8367
8375
  items: [],
8368
- currentRefinement: getCurrentRefinement$3(props, searchState, {
8376
+ currentRefinement: getCurrentRefinement$8(props, searchState, {
8369
8377
  ais: props.contextValue,
8370
8378
  multiIndexContext: props.indexContextValue
8371
8379
  }),
@@ -8412,8 +8420,8 @@ var connectMenu = createConnectorWithContext({
8412
8420
 
8413
8421
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
8414
8422
  return {
8415
- items: transformedItems.slice(0, getLimit(props)),
8416
- currentRefinement: getCurrentRefinement$3(props, searchState, {
8423
+ items: transformedItems.slice(0, getLimit$1(props)),
8424
+ currentRefinement: getCurrentRefinement$8(props, searchState, {
8417
8425
  ais: props.contextValue,
8418
8426
  multiIndexContext: props.indexContextValue
8419
8427
  }),
@@ -8423,7 +8431,7 @@ var connectMenu = createConnectorWithContext({
8423
8431
  };
8424
8432
  },
8425
8433
  refine: function refine(props, searchState, nextRefinement) {
8426
- return _refine$2(props, searchState, nextRefinement, {
8434
+ return _refine$7(props, searchState, nextRefinement, {
8427
8435
  ais: props.contextValue,
8428
8436
  multiIndexContext: props.indexContextValue
8429
8437
  });
@@ -8432,11 +8440,11 @@ var connectMenu = createConnectorWithContext({
8432
8440
  return {
8433
8441
  facetName: props.attribute,
8434
8442
  query: nextRefinement,
8435
- maxFacetHits: getLimit(props)
8443
+ maxFacetHits: getLimit$1(props)
8436
8444
  };
8437
8445
  },
8438
8446
  cleanUp: function cleanUp(props, searchState) {
8439
- return _cleanUp$1(props, searchState, {
8447
+ return _cleanUp$6(props, searchState, {
8440
8448
  ais: props.contextValue,
8441
8449
  multiIndexContext: props.indexContextValue
8442
8450
  });
@@ -8444,10 +8452,10 @@ var connectMenu = createConnectorWithContext({
8444
8452
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8445
8453
  var attribute = props.attribute;
8446
8454
  searchParameters = searchParameters.setQueryParameters({
8447
- maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
8455
+ maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
8448
8456
  });
8449
8457
  searchParameters = searchParameters.addDisjunctiveFacet(attribute);
8450
- var currentRefinement = getCurrentRefinement$3(props, searchState, {
8458
+ var currentRefinement = getCurrentRefinement$8(props, searchState, {
8451
8459
  ais: props.contextValue,
8452
8460
  multiIndexContext: props.indexContextValue
8453
8461
  });
@@ -8459,8 +8467,8 @@ var connectMenu = createConnectorWithContext({
8459
8467
  return searchParameters;
8460
8468
  },
8461
8469
  getMetadata: function getMetadata(props, searchState) {
8462
- var id = getId$6(props);
8463
- var currentRefinement = getCurrentRefinement$3(props, searchState, {
8470
+ var id = getId$9(props);
8471
+ var currentRefinement = getCurrentRefinement$8(props, searchState, {
8464
8472
  ais: props.contextValue,
8465
8473
  multiIndexContext: props.indexContextValue
8466
8474
  });
@@ -8474,7 +8482,7 @@ var connectMenu = createConnectorWithContext({
8474
8482
  label: "".concat(props.attribute, ": ").concat(currentRefinement),
8475
8483
  attribute: props.attribute,
8476
8484
  value: function value(nextState) {
8477
- return _refine$2(props, nextState, '', {
8485
+ return _refine$7(props, nextState, '', {
8478
8486
  ais: props.contextValue,
8479
8487
  multiIndexContext: props.indexContextValue
8480
8488
  });
@@ -8548,19 +8556,19 @@ function parseItem(value) {
8548
8556
  endStr = _value$split2[1];
8549
8557
 
8550
8558
  return {
8551
- start: startStr.length > 0 ? parseFloat(startStr) : null,
8552
- end: endStr.length > 0 ? parseFloat(endStr) : null
8559
+ start: startStr.length > 0 ? parseInt(startStr, 10) : null,
8560
+ end: endStr.length > 0 ? parseInt(endStr, 10) : null
8553
8561
  };
8554
8562
  }
8555
8563
 
8556
8564
  var namespace$3 = 'multiRange';
8557
8565
 
8558
- function getId$7(props) {
8566
+ function getId$8(props) {
8559
8567
  return props.attribute;
8560
8568
  }
8561
8569
 
8562
- function getCurrentRefinement$4(props, searchState, context) {
8563
- return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)), '');
8570
+ function getCurrentRefinement$7(props, searchState, context) {
8571
+ return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$8(props)), '');
8564
8572
  }
8565
8573
 
8566
8574
  function isRefinementsRangeIncludesInsideItemRange(stats, start, end) {
@@ -8579,15 +8587,15 @@ function itemHasRefinement(attribute, results, value) {
8579
8587
  return !(Boolean(stats) && (isRefinementsRangeIncludesInsideItemRange(stats, start, end) || isItemRangeIncludedInsideRefinementsRange(stats, start, end)));
8580
8588
  }
8581
8589
 
8582
- function _refine$3(props, searchState, nextRefinement, context) {
8583
- var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
8590
+ function _refine$6(props, searchState, nextRefinement, context) {
8591
+ var nextValue = _defineProperty({}, getId$8(props), nextRefinement);
8584
8592
 
8585
8593
  var resetPage = true;
8586
8594
  return refineValue(searchState, nextValue, context, resetPage, namespace$3);
8587
8595
  }
8588
8596
 
8589
- function _cleanUp$2(props, searchState, context) {
8590
- return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)));
8597
+ function _cleanUp$5(props, searchState, context) {
8598
+ return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$8(props)));
8591
8599
  }
8592
8600
  /**
8593
8601
  * connectNumericMenu connector provides the logic to build a widget that will
@@ -8621,7 +8629,7 @@ var connectNumericMenu = createConnectorWithContext({
8621
8629
  },
8622
8630
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
8623
8631
  var attribute = props.attribute;
8624
- var currentRefinement = getCurrentRefinement$4(props, searchState, {
8632
+ var currentRefinement = getCurrentRefinement$7(props, searchState, {
8625
8633
  ais: props.contextValue,
8626
8634
  multiIndexContext: props.indexContextValue
8627
8635
  });
@@ -8635,11 +8643,11 @@ var connectNumericMenu = createConnectorWithContext({
8635
8643
  label: item.label,
8636
8644
  value: value,
8637
8645
  isRefined: value === currentRefinement,
8638
- noRefinement: results ? itemHasRefinement(getId$7(props), results, value) : false
8646
+ noRefinement: results ? itemHasRefinement(getId$8(props), results, value) : false
8639
8647
  };
8640
8648
  });
8641
8649
  var stats = results && results.getFacetByName(attribute) ? results.getFacetStats(attribute) : null;
8642
- var refinedItem = find(items, function (item) {
8650
+ var refinedItem = find$2(items, function (item) {
8643
8651
  return item.isRefined === true;
8644
8652
  });
8645
8653
 
@@ -8664,13 +8672,13 @@ var connectNumericMenu = createConnectorWithContext({
8664
8672
  };
8665
8673
  },
8666
8674
  refine: function refine(props, searchState, nextRefinement) {
8667
- return _refine$3(props, searchState, nextRefinement, {
8675
+ return _refine$6(props, searchState, nextRefinement, {
8668
8676
  ais: props.contextValue,
8669
8677
  multiIndexContext: props.indexContextValue
8670
8678
  });
8671
8679
  },
8672
8680
  cleanUp: function cleanUp(props, searchState) {
8673
- return _cleanUp$2(props, searchState, {
8681
+ return _cleanUp$5(props, searchState, {
8674
8682
  ais: props.contextValue,
8675
8683
  multiIndexContext: props.indexContextValue
8676
8684
  });
@@ -8678,7 +8686,7 @@ var connectNumericMenu = createConnectorWithContext({
8678
8686
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8679
8687
  var attribute = props.attribute;
8680
8688
 
8681
- var _parseItem = parseItem(getCurrentRefinement$4(props, searchState, {
8689
+ var _parseItem = parseItem(getCurrentRefinement$7(props, searchState, {
8682
8690
  ais: props.contextValue,
8683
8691
  multiIndexContext: props.indexContextValue
8684
8692
  })),
@@ -8698,8 +8706,8 @@ var connectNumericMenu = createConnectorWithContext({
8698
8706
  return searchParameters;
8699
8707
  },
8700
8708
  getMetadata: function getMetadata(props, searchState) {
8701
- var id = getId$7(props);
8702
- var value = getCurrentRefinement$4(props, searchState, {
8709
+ var id = getId$8(props);
8710
+ var value = getCurrentRefinement$7(props, searchState, {
8703
8711
  ais: props.contextValue,
8704
8712
  multiIndexContext: props.indexContextValue
8705
8713
  });
@@ -8710,7 +8718,7 @@ var connectNumericMenu = createConnectorWithContext({
8710
8718
  });
8711
8719
 
8712
8720
  if (value !== '') {
8713
- var _find = find(props.items, function (item) {
8721
+ var _find = find$2(props.items, function (item) {
8714
8722
  return stringifyItem(item) === value;
8715
8723
  }),
8716
8724
  label = _find.label;
@@ -8720,7 +8728,7 @@ var connectNumericMenu = createConnectorWithContext({
8720
8728
  attribute: props.attribute,
8721
8729
  currentRefinement: label,
8722
8730
  value: function value(nextState) {
8723
- return _refine$3(props, nextState, '', {
8731
+ return _refine$6(props, nextState, '', {
8724
8732
  ais: props.contextValue,
8725
8733
  multiIndexContext: props.indexContextValue
8726
8734
  });
@@ -8736,12 +8744,12 @@ var connectNumericMenu = createConnectorWithContext({
8736
8744
  }
8737
8745
  });
8738
8746
 
8739
- function getId$8() {
8747
+ function getId$7() {
8740
8748
  return 'page';
8741
8749
  }
8742
8750
 
8743
- function getCurrentRefinement$5(props, searchState, context) {
8744
- var id = getId$8();
8751
+ function getCurrentRefinement$6(props, searchState, context) {
8752
+ var id = getId$7();
8745
8753
  var page = 1;
8746
8754
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
8747
8755
 
@@ -8752,8 +8760,8 @@ function getCurrentRefinement$5(props, searchState, context) {
8752
8760
  return currentRefinement;
8753
8761
  }
8754
8762
 
8755
- function _refine$4(props, searchState, nextPage, context) {
8756
- var id = getId$8();
8763
+ function _refine$5(props, searchState, nextPage, context) {
8764
+ var id = getId$7();
8757
8765
 
8758
8766
  var nextValue = _defineProperty({}, id, nextPage);
8759
8767
 
@@ -8793,7 +8801,7 @@ var connectPagination = createConnectorWithContext({
8793
8801
  var nbPages = results.nbPages;
8794
8802
  return {
8795
8803
  nbPages: nbPages,
8796
- currentRefinement: getCurrentRefinement$5(props, searchState, {
8804
+ currentRefinement: getCurrentRefinement$6(props, searchState, {
8797
8805
  ais: props.contextValue,
8798
8806
  multiIndexContext: props.indexContextValue
8799
8807
  }),
@@ -8801,7 +8809,7 @@ var connectPagination = createConnectorWithContext({
8801
8809
  };
8802
8810
  },
8803
8811
  refine: function refine(props, searchState, nextPage) {
8804
- return _refine$4(props, searchState, nextPage, {
8812
+ return _refine$5(props, searchState, nextPage, {
8805
8813
  ais: props.contextValue,
8806
8814
  multiIndexContext: props.indexContextValue
8807
8815
  });
@@ -8810,17 +8818,17 @@ var connectPagination = createConnectorWithContext({
8810
8818
  return cleanUpValue(searchState, {
8811
8819
  ais: props.contextValue,
8812
8820
  multiIndexContext: props.indexContextValue
8813
- }, getId$8());
8821
+ }, getId$7());
8814
8822
  },
8815
8823
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8816
- return searchParameters.setPage(getCurrentRefinement$5(props, searchState, {
8824
+ return searchParameters.setPage(getCurrentRefinement$6(props, searchState, {
8817
8825
  ais: props.contextValue,
8818
8826
  multiIndexContext: props.indexContextValue
8819
8827
  }) - 1);
8820
8828
  },
8821
8829
  getMetadata: function getMetadata() {
8822
8830
  return {
8823
- id: getId$8()
8831
+ id: getId$7()
8824
8832
  };
8825
8833
  }
8826
8834
  });
@@ -8866,11 +8874,11 @@ var connectPoweredBy = createConnectorWithContext({
8866
8874
  * @providedPropType {number} precision - Number of digits after decimal point to use.
8867
8875
  */
8868
8876
 
8869
- function getId$9(props) {
8877
+ function getId$6(props) {
8870
8878
  return props.attribute;
8871
8879
  }
8872
8880
 
8873
- var namespace$4 = 'range';
8881
+ var namespace$2 = 'range';
8874
8882
 
8875
8883
  function getCurrentRange(boundaries, stats, precision) {
8876
8884
  var pow = Math.pow(10, precision);
@@ -8900,8 +8908,8 @@ function getCurrentRange(boundaries, stats, precision) {
8900
8908
  };
8901
8909
  }
8902
8910
 
8903
- function getCurrentRefinement$6(props, searchState, currentRange, context) {
8904
- var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)), {}),
8911
+ function getCurrentRefinement$5(props, searchState, currentRange, context) {
8912
+ var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)), {}),
8905
8913
  min = _getCurrentRefinement.min,
8906
8914
  max = _getCurrentRefinement.max;
8907
8915
 
@@ -8967,7 +8975,7 @@ function nextValueForRefinement(hasBound, isReset, range, value) {
8967
8975
  return next;
8968
8976
  }
8969
8977
 
8970
- function _refine$5(props, searchState, nextRefinement, currentRange, context) {
8978
+ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
8971
8979
  var nextMin = nextRefinement.min,
8972
8980
  nextMax = nextRefinement.max;
8973
8981
  var currentMinRange = currentRange.min,
@@ -8991,7 +8999,7 @@ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
8991
8999
  throw Error("You can't provide max value greater than range.");
8992
9000
  }
8993
9001
 
8994
- var id = getId$9(props);
9002
+ var id = getId$6(props);
8995
9003
  var resetPage = true;
8996
9004
 
8997
9005
  var nextValue = _defineProperty({}, id, {
@@ -8999,11 +9007,11 @@ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
8999
9007
  max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
9000
9008
  });
9001
9009
 
9002
- return refineValue(searchState, nextValue, context, resetPage, namespace$4);
9010
+ return refineValue(searchState, nextValue, context, resetPage, namespace$2);
9003
9011
  }
9004
9012
 
9005
- function _cleanUp$3(props, searchState, context) {
9006
- return cleanUpValue(searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)));
9013
+ function _cleanUp$4(props, searchState, context) {
9014
+ return cleanUpValue(searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)));
9007
9015
  }
9008
9016
 
9009
9017
  var connectRange = createConnectorWithContext({
@@ -9058,7 +9066,7 @@ var connectRange = createConnectorWithContext({
9058
9066
  min: rangeMin,
9059
9067
  max: rangeMax
9060
9068
  };
9061
- var currentRefinement = getCurrentRefinement$6(props, searchState, this._currentRange, {
9069
+ var currentRefinement = getCurrentRefinement$5(props, searchState, this._currentRange, {
9062
9070
  ais: props.contextValue,
9063
9071
  multiIndexContext: props.indexContextValue
9064
9072
  });
@@ -9072,13 +9080,13 @@ var connectRange = createConnectorWithContext({
9072
9080
  };
9073
9081
  },
9074
9082
  refine: function refine(props, searchState, nextRefinement) {
9075
- return _refine$5(props, searchState, nextRefinement, this._currentRange, {
9083
+ return _refine$4(props, searchState, nextRefinement, this._currentRange, {
9076
9084
  ais: props.contextValue,
9077
9085
  multiIndexContext: props.indexContextValue
9078
9086
  });
9079
9087
  },
9080
9088
  cleanUp: function cleanUp(props, searchState) {
9081
- return _cleanUp$3(props, searchState, {
9089
+ return _cleanUp$4(props, searchState, {
9082
9090
  ais: props.contextValue,
9083
9091
  multiIndexContext: props.indexContextValue
9084
9092
  });
@@ -9086,7 +9094,7 @@ var connectRange = createConnectorWithContext({
9086
9094
  getSearchParameters: function getSearchParameters(params, props, searchState) {
9087
9095
  var attribute = props.attribute;
9088
9096
 
9089
- var _getCurrentRefinement2 = getCurrentRefinement$6(props, searchState, this._currentRange, {
9097
+ var _getCurrentRefinement2 = getCurrentRefinement$5(props, searchState, this._currentRange, {
9090
9098
  ais: props.contextValue,
9091
9099
  multiIndexContext: props.indexContextValue
9092
9100
  }),
@@ -9112,7 +9120,7 @@ var connectRange = createConnectorWithContext({
9112
9120
  minRange = _this$_currentRange.min,
9113
9121
  maxRange = _this$_currentRange.max;
9114
9122
 
9115
- var _getCurrentRefinement3 = getCurrentRefinement$6(props, searchState, this._currentRange, {
9123
+ var _getCurrentRefinement3 = getCurrentRefinement$5(props, searchState, this._currentRange, {
9116
9124
  ais: props.contextValue,
9117
9125
  multiIndexContext: props.indexContextValue
9118
9126
  }),
@@ -9131,7 +9139,7 @@ var connectRange = createConnectorWithContext({
9131
9139
  label: fragments.join(''),
9132
9140
  attribute: props.attribute,
9133
9141
  value: function value(nextState) {
9134
- return _refine$5(props, nextState, {}, _this._currentRange, {
9142
+ return _refine$4(props, nextState, {}, _this._currentRange, {
9135
9143
  ais: props.contextValue,
9136
9144
  multiIndexContext: props.indexContextValue
9137
9145
  });
@@ -9147,7 +9155,7 @@ var connectRange = createConnectorWithContext({
9147
9155
  }
9148
9156
 
9149
9157
  return {
9150
- id: getId$9(props),
9158
+ id: getId$6(props),
9151
9159
  index: getIndexId({
9152
9160
  ais: props.contextValue,
9153
9161
  multiIndexContext: props.indexContextValue
@@ -9157,14 +9165,14 @@ var connectRange = createConnectorWithContext({
9157
9165
  }
9158
9166
  });
9159
9167
 
9160
- var namespace$5 = 'refinementList';
9168
+ var namespace$1 = 'refinementList';
9161
9169
 
9162
- function getId$a(props) {
9170
+ function getId$5(props) {
9163
9171
  return props.attribute;
9164
9172
  }
9165
9173
 
9166
- function getCurrentRefinement$7(props, searchState, context) {
9167
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)), []);
9174
+ function getCurrentRefinement$4(props, searchState, context) {
9175
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$1, ".").concat(getId$5(props)), []);
9168
9176
 
9169
9177
  if (typeof currentRefinement !== 'string') {
9170
9178
  return currentRefinement;
@@ -9177,8 +9185,8 @@ function getCurrentRefinement$7(props, searchState, context) {
9177
9185
  return [];
9178
9186
  }
9179
9187
 
9180
- function getValue$2(name, props, searchState, context) {
9181
- var currentRefinement = getCurrentRefinement$7(props, searchState, context);
9188
+ function getValue(name, props, searchState, context) {
9189
+ var currentRefinement = getCurrentRefinement$4(props, searchState, context);
9182
9190
  var isAnewValue = currentRefinement.indexOf(name) === -1;
9183
9191
  var nextRefinement = isAnewValue ? currentRefinement.concat([name]) // cannot use .push(), it mutates
9184
9192
  : currentRefinement.filter(function (selectedValue) {
@@ -9188,15 +9196,15 @@ function getValue$2(name, props, searchState, context) {
9188
9196
  return nextRefinement;
9189
9197
  }
9190
9198
 
9191
- function getLimit$1(_ref) {
9199
+ function getLimit(_ref) {
9192
9200
  var showMore = _ref.showMore,
9193
9201
  limit = _ref.limit,
9194
9202
  showMoreLimit = _ref.showMoreLimit;
9195
9203
  return showMore ? showMoreLimit : limit;
9196
9204
  }
9197
9205
 
9198
- function _refine$6(props, searchState, nextRefinement, context) {
9199
- var id = getId$a(props); // Setting the value to an empty string ensures that it is persisted in
9206
+ function _refine$3(props, searchState, nextRefinement, context) {
9207
+ var id = getId$5(props); // Setting the value to an empty string ensures that it is persisted in
9200
9208
  // the URL as an empty value.
9201
9209
  // This is necessary in the case where `defaultRefinement` contains one
9202
9210
  // item and we try to deselect it. `nextSelected` would be an empty array,
@@ -9207,11 +9215,11 @@ function _refine$6(props, searchState, nextRefinement, context) {
9207
9215
  var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
9208
9216
 
9209
9217
  var resetPage = true;
9210
- return refineValue(searchState, nextValue, context, resetPage, namespace$5);
9218
+ return refineValue(searchState, nextValue, context, resetPage, namespace$1);
9211
9219
  }
9212
9220
 
9213
- function _cleanUp$4(props, searchState, context) {
9214
- return cleanUpValue(searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)));
9221
+ function _cleanUp$3(props, searchState, context) {
9222
+ return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$5(props)));
9215
9223
  }
9216
9224
  /**
9217
9225
  * connectRefinementList connector provides the logic to build a widget that will
@@ -9238,7 +9246,7 @@ function _cleanUp$4(props, searchState, context) {
9238
9246
  */
9239
9247
 
9240
9248
 
9241
- var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
9249
+ var sortBy = ['isRefined', 'count:desc', 'name:asc'];
9242
9250
  var connectRefinementList = createConnectorWithContext({
9243
9251
  displayName: 'AlgoliaRefinementList',
9244
9252
  propTypes: {
@@ -9276,7 +9284,7 @@ var connectRefinementList = createConnectorWithContext({
9276
9284
  if (!canRefine) {
9277
9285
  return {
9278
9286
  items: [],
9279
- currentRefinement: getCurrentRefinement$7(props, searchState, {
9287
+ currentRefinement: getCurrentRefinement$4(props, searchState, {
9280
9288
  ais: props.contextValue,
9281
9289
  multiIndexContext: props.indexContextValue
9282
9290
  }),
@@ -9289,7 +9297,7 @@ var connectRefinementList = createConnectorWithContext({
9289
9297
  var items = isFromSearch ? searchForFacetValuesResults[attribute].map(function (v) {
9290
9298
  return {
9291
9299
  label: v.value,
9292
- value: getValue$2(v.value, props, searchState, {
9300
+ value: getValue(v.value, props, searchState, {
9293
9301
  ais: props.contextValue,
9294
9302
  multiIndexContext: props.indexContextValue
9295
9303
  }),
@@ -9302,11 +9310,11 @@ var connectRefinementList = createConnectorWithContext({
9302
9310
  isRefined: v.isRefined
9303
9311
  };
9304
9312
  }) : results.getFacetValues(attribute, {
9305
- sortBy: sortBy$1
9313
+ sortBy: sortBy
9306
9314
  }).map(function (v) {
9307
9315
  return {
9308
9316
  label: v.name,
9309
- value: getValue$2(v.name, props, searchState, {
9317
+ value: getValue(v.name, props, searchState, {
9310
9318
  ais: props.contextValue,
9311
9319
  multiIndexContext: props.indexContextValue
9312
9320
  }),
@@ -9316,8 +9324,8 @@ var connectRefinementList = createConnectorWithContext({
9316
9324
  });
9317
9325
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
9318
9326
  return {
9319
- items: transformedItems.slice(0, getLimit$1(props)),
9320
- currentRefinement: getCurrentRefinement$7(props, searchState, {
9327
+ items: transformedItems.slice(0, getLimit(props)),
9328
+ currentRefinement: getCurrentRefinement$4(props, searchState, {
9321
9329
  ais: props.contextValue,
9322
9330
  multiIndexContext: props.indexContextValue
9323
9331
  }),
@@ -9327,7 +9335,7 @@ var connectRefinementList = createConnectorWithContext({
9327
9335
  };
9328
9336
  },
9329
9337
  refine: function refine(props, searchState, nextRefinement) {
9330
- return _refine$6(props, searchState, nextRefinement, {
9338
+ return _refine$3(props, searchState, nextRefinement, {
9331
9339
  ais: props.contextValue,
9332
9340
  multiIndexContext: props.indexContextValue
9333
9341
  });
@@ -9336,11 +9344,11 @@ var connectRefinementList = createConnectorWithContext({
9336
9344
  return {
9337
9345
  facetName: props.attribute,
9338
9346
  query: nextRefinement,
9339
- maxFacetHits: getLimit$1(props)
9347
+ maxFacetHits: getLimit(props)
9340
9348
  };
9341
9349
  },
9342
9350
  cleanUp: function cleanUp(props, searchState) {
9343
- return _cleanUp$4(props, searchState, {
9351
+ return _cleanUp$3(props, searchState, {
9344
9352
  ais: props.contextValue,
9345
9353
  multiIndexContext: props.indexContextValue
9346
9354
  });
@@ -9351,10 +9359,10 @@ var connectRefinementList = createConnectorWithContext({
9351
9359
  var addKey = operator === 'and' ? 'addFacet' : 'addDisjunctiveFacet';
9352
9360
  var addRefinementKey = "".concat(addKey, "Refinement");
9353
9361
  searchParameters = searchParameters.setQueryParameters({
9354
- maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
9362
+ maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
9355
9363
  });
9356
9364
  searchParameters = searchParameters[addKey](attribute);
9357
- return getCurrentRefinement$7(props, searchState, {
9365
+ return getCurrentRefinement$4(props, searchState, {
9358
9366
  ais: props.contextValue,
9359
9367
  multiIndexContext: props.indexContextValue
9360
9368
  }).reduce(function (res, val) {
@@ -9362,7 +9370,7 @@ var connectRefinementList = createConnectorWithContext({
9362
9370
  }, searchParameters);
9363
9371
  },
9364
9372
  getMetadata: function getMetadata(props, searchState) {
9365
- var id = getId$a(props);
9373
+ var id = getId$5(props);
9366
9374
  var context = {
9367
9375
  ais: props.contextValue,
9368
9376
  multiIndexContext: props.indexContextValue
@@ -9370,21 +9378,21 @@ var connectRefinementList = createConnectorWithContext({
9370
9378
  return {
9371
9379
  id: id,
9372
9380
  index: getIndexId(context),
9373
- items: getCurrentRefinement$7(props, searchState, context).length > 0 ? [{
9381
+ items: getCurrentRefinement$4(props, searchState, context).length > 0 ? [{
9374
9382
  attribute: props.attribute,
9375
9383
  label: "".concat(props.attribute, ": "),
9376
- currentRefinement: getCurrentRefinement$7(props, searchState, context),
9384
+ currentRefinement: getCurrentRefinement$4(props, searchState, context),
9377
9385
  value: function value(nextState) {
9378
- return _refine$6(props, nextState, [], context);
9386
+ return _refine$3(props, nextState, [], context);
9379
9387
  },
9380
- items: getCurrentRefinement$7(props, searchState, context).map(function (item) {
9388
+ items: getCurrentRefinement$4(props, searchState, context).map(function (item) {
9381
9389
  return {
9382
9390
  label: "".concat(item),
9383
9391
  value: function value(nextState) {
9384
- var nextSelectedItems = getCurrentRefinement$7(props, nextState, context).filter(function (other) {
9392
+ var nextSelectedItems = getCurrentRefinement$4(props, nextState, context).filter(function (other) {
9385
9393
  return other !== item;
9386
9394
  });
9387
- return _refine$6(props, searchState, nextSelectedItems, context);
9395
+ return _refine$3(props, searchState, nextSelectedItems, context);
9388
9396
  }
9389
9397
  };
9390
9398
  })
@@ -9443,7 +9451,7 @@ var connectScrollTo = createConnectorWithContext({
9443
9451
  // See: https://github.com/algolia/react-instantsearch/issues/164
9444
9452
 
9445
9453
 
9446
- var cleanedSearchState = omit(searchState, ['configure', id]);
9454
+ var cleanedSearchState = omit$1(searchState, ['configure', id]);
9447
9455
  var hasNotChanged = shallowEqual(this._prevSearchState, cleanedSearchState);
9448
9456
  this._prevSearchState = cleanedSearchState;
9449
9457
  return {
@@ -9453,12 +9461,12 @@ var connectScrollTo = createConnectorWithContext({
9453
9461
  }
9454
9462
  });
9455
9463
 
9456
- function getId$b() {
9464
+ function getId$4() {
9457
9465
  return 'query';
9458
9466
  }
9459
9467
 
9460
- function getCurrentRefinement$8(props, searchState, context) {
9461
- var id = getId$b();
9468
+ function getCurrentRefinement$3(props, searchState, context) {
9469
+ var id = getId$4();
9462
9470
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
9463
9471
 
9464
9472
  if (currentRefinement) {
@@ -9468,8 +9476,8 @@ function getCurrentRefinement$8(props, searchState, context) {
9468
9476
  return '';
9469
9477
  }
9470
9478
 
9471
- function _refine$7(props, searchState, nextRefinement, context) {
9472
- var id = getId$b();
9479
+ function _refine$2(props, searchState, nextRefinement, context) {
9480
+ var id = getId$4();
9473
9481
 
9474
9482
  var nextValue = _defineProperty({}, id, nextRefinement);
9475
9483
 
@@ -9477,8 +9485,8 @@ function _refine$7(props, searchState, nextRefinement, context) {
9477
9485
  return refineValue(searchState, nextValue, context, resetPage);
9478
9486
  }
9479
9487
 
9480
- function _cleanUp$5(props, searchState, context) {
9481
- return cleanUpValue(searchState, context, getId$b());
9488
+ function _cleanUp$2(props, searchState, context) {
9489
+ return cleanUpValue(searchState, context, getId$4());
9482
9490
  }
9483
9491
  /**
9484
9492
  * connectSearchBox connector provides the logic to build a widget that will
@@ -9499,7 +9507,7 @@ var connectSearchBox = createConnectorWithContext({
9499
9507
  },
9500
9508
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
9501
9509
  return {
9502
- currentRefinement: getCurrentRefinement$8(props, searchState, {
9510
+ currentRefinement: getCurrentRefinement$3(props, searchState, {
9503
9511
  ais: props.contextValue,
9504
9512
  multiIndexContext: props.indexContextValue
9505
9513
  }),
@@ -9507,26 +9515,26 @@ var connectSearchBox = createConnectorWithContext({
9507
9515
  };
9508
9516
  },
9509
9517
  refine: function refine(props, searchState, nextRefinement) {
9510
- return _refine$7(props, searchState, nextRefinement, {
9518
+ return _refine$2(props, searchState, nextRefinement, {
9511
9519
  ais: props.contextValue,
9512
9520
  multiIndexContext: props.indexContextValue
9513
9521
  });
9514
9522
  },
9515
9523
  cleanUp: function cleanUp(props, searchState) {
9516
- return _cleanUp$5(props, searchState, {
9524
+ return _cleanUp$2(props, searchState, {
9517
9525
  ais: props.contextValue,
9518
9526
  multiIndexContext: props.indexContextValue
9519
9527
  });
9520
9528
  },
9521
9529
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
9522
- return searchParameters.setQuery(getCurrentRefinement$8(props, searchState, {
9530
+ return searchParameters.setQuery(getCurrentRefinement$3(props, searchState, {
9523
9531
  ais: props.contextValue,
9524
9532
  multiIndexContext: props.indexContextValue
9525
9533
  }));
9526
9534
  },
9527
9535
  getMetadata: function getMetadata(props, searchState) {
9528
- var id = getId$b();
9529
- var currentRefinement = getCurrentRefinement$8(props, searchState, {
9536
+ var id = getId$4();
9537
+ var currentRefinement = getCurrentRefinement$3(props, searchState, {
9530
9538
  ais: props.contextValue,
9531
9539
  multiIndexContext: props.indexContextValue
9532
9540
  });
@@ -9539,7 +9547,7 @@ var connectSearchBox = createConnectorWithContext({
9539
9547
  items: currentRefinement === null ? [] : [{
9540
9548
  label: "".concat(id, ": ").concat(currentRefinement),
9541
9549
  value: function value(nextState) {
9542
- return _refine$7(props, nextState, '', {
9550
+ return _refine$2(props, nextState, '', {
9543
9551
  ais: props.contextValue,
9544
9552
  multiIndexContext: props.indexContextValue
9545
9553
  });
@@ -9550,12 +9558,12 @@ var connectSearchBox = createConnectorWithContext({
9550
9558
  }
9551
9559
  });
9552
9560
 
9553
- function getId$c() {
9561
+ function getId$3() {
9554
9562
  return 'relevancyStrictness';
9555
9563
  }
9556
9564
 
9557
- function getCurrentRefinement$9(props, searchState, context) {
9558
- var id = getId$c();
9565
+ function getCurrentRefinement$2(props, searchState, context) {
9566
+ var id = getId$3();
9559
9567
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id);
9560
9568
  return currentRefinement;
9561
9569
  }
@@ -9581,13 +9589,13 @@ var connectRelevantSort = createConnectorWithContext({
9581
9589
  };
9582
9590
  },
9583
9591
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
9584
- return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$9(props, searchState, {
9592
+ return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$2(props, searchState, {
9585
9593
  ais: props.contextValue,
9586
9594
  multiIndexContext: props.indexContextValue
9587
9595
  }));
9588
9596
  },
9589
9597
  refine: function refine(props, searchState, nextRefinement) {
9590
- var nextValue = _defineProperty({}, getId$c(), nextRefinement);
9598
+ var nextValue = _defineProperty({}, getId$3(), nextRefinement);
9591
9599
 
9592
9600
  var resetPage = true;
9593
9601
  return refineValue(searchState, nextValue, {
@@ -9597,12 +9605,12 @@ var connectRelevantSort = createConnectorWithContext({
9597
9605
  }
9598
9606
  });
9599
9607
 
9600
- function getId$d() {
9608
+ function getId$2() {
9601
9609
  return 'sortBy';
9602
9610
  }
9603
9611
 
9604
- function getCurrentRefinement$a(props, searchState, context) {
9605
- var id = getId$d();
9612
+ function getCurrentRefinement$1(props, searchState, context) {
9613
+ var id = getId$2();
9606
9614
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
9607
9615
 
9608
9616
  if (currentRefinement) {
@@ -9639,7 +9647,7 @@ var connectSortBy = createConnectorWithContext({
9639
9647
  transformItems: PropTypes.func
9640
9648
  },
9641
9649
  getProvidedProps: function getProvidedProps(props, searchState) {
9642
- var currentRefinement = getCurrentRefinement$a(props, searchState, {
9650
+ var currentRefinement = getCurrentRefinement$1(props, searchState, {
9643
9651
  ais: props.contextValue,
9644
9652
  multiIndexContext: props.indexContextValue
9645
9653
  });
@@ -9656,7 +9664,7 @@ var connectSortBy = createConnectorWithContext({
9656
9664
  };
9657
9665
  },
9658
9666
  refine: function refine(props, searchState, nextRefinement) {
9659
- var id = getId$d();
9667
+ var id = getId$2();
9660
9668
 
9661
9669
  var nextValue = _defineProperty({}, id, nextRefinement);
9662
9670
 
@@ -9670,10 +9678,10 @@ var connectSortBy = createConnectorWithContext({
9670
9678
  return cleanUpValue(searchState, {
9671
9679
  ais: props.contextValue,
9672
9680
  multiIndexContext: props.indexContextValue
9673
- }, getId$d());
9681
+ }, getId$2());
9674
9682
  },
9675
9683
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
9676
- var selectedIndex = getCurrentRefinement$a(props, searchState, {
9684
+ var selectedIndex = getCurrentRefinement$1(props, searchState, {
9677
9685
  ais: props.contextValue,
9678
9686
  multiIndexContext: props.indexContextValue
9679
9687
  });
@@ -9681,7 +9689,7 @@ var connectSortBy = createConnectorWithContext({
9681
9689
  },
9682
9690
  getMetadata: function getMetadata() {
9683
9691
  return {
9684
- id: getId$d()
9692
+ id: getId$2()
9685
9693
  };
9686
9694
  }
9687
9695
  });
@@ -9717,15 +9725,15 @@ var connectStats = createConnectorWithContext({
9717
9725
  }
9718
9726
  });
9719
9727
 
9720
- function getId$e(props) {
9728
+ function getId$1(props) {
9721
9729
  return props.attribute;
9722
9730
  }
9723
9731
 
9724
- var namespace$6 = 'toggle';
9732
+ var namespace = 'toggle';
9725
9733
  var falsyStrings = ['0', 'false', 'null', 'undefined'];
9726
9734
 
9727
- function getCurrentRefinement$b(props, searchState, context) {
9728
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)), false);
9735
+ function getCurrentRefinement(props, searchState, context) {
9736
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace, ".").concat(getId$1(props)), false);
9729
9737
 
9730
9738
  if (falsyStrings.indexOf(currentRefinement) !== -1) {
9731
9739
  return false;
@@ -9734,17 +9742,17 @@ function getCurrentRefinement$b(props, searchState, context) {
9734
9742
  return Boolean(currentRefinement);
9735
9743
  }
9736
9744
 
9737
- function _refine$8(props, searchState, nextRefinement, context) {
9738
- var id = getId$e(props);
9745
+ function _refine$1(props, searchState, nextRefinement, context) {
9746
+ var id = getId$1(props);
9739
9747
 
9740
9748
  var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
9741
9749
 
9742
9750
  var resetPage = true;
9743
- return refineValue(searchState, nextValue, context, resetPage, namespace$6);
9751
+ return refineValue(searchState, nextValue, context, resetPage, namespace);
9744
9752
  }
9745
9753
 
9746
- function _cleanUp$6(props, searchState, context) {
9747
- return cleanUpValue(searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)));
9754
+ function _cleanUp$1(props, searchState, context) {
9755
+ return cleanUpValue(searchState, context, "".concat(namespace, ".").concat(getId$1(props)));
9748
9756
  }
9749
9757
  /**
9750
9758
  * connectToggleRefinement connector provides the logic to build a widget that will
@@ -9783,14 +9791,14 @@ var connectToggleRefinement = createConnectorWithContext({
9783
9791
  ais: props.contextValue,
9784
9792
  multiIndexContext: props.indexContextValue
9785
9793
  });
9786
- var currentRefinement = getCurrentRefinement$b(props, searchState, {
9794
+ var currentRefinement = getCurrentRefinement(props, searchState, {
9787
9795
  ais: props.contextValue,
9788
9796
  multiIndexContext: props.indexContextValue
9789
9797
  });
9790
9798
  var allFacetValues = results && results.getFacetByName(attribute) ? results.getFacetValues(attribute) : null;
9791
9799
  var facetValue = // Use null to always be consistent with type of the value
9792
9800
  // count: number | null
9793
- allFacetValues && allFacetValues.length ? find(allFacetValues, function (item) {
9801
+ allFacetValues && allFacetValues.length ? find$2(allFacetValues, function (item) {
9794
9802
  return item.name === value.toString();
9795
9803
  }) : null;
9796
9804
  var facetValueCount = facetValue && facetValue.count;
@@ -9811,13 +9819,13 @@ var connectToggleRefinement = createConnectorWithContext({
9811
9819
  };
9812
9820
  },
9813
9821
  refine: function refine(props, searchState, nextRefinement) {
9814
- return _refine$8(props, searchState, nextRefinement, {
9822
+ return _refine$1(props, searchState, nextRefinement, {
9815
9823
  ais: props.contextValue,
9816
9824
  multiIndexContext: props.indexContextValue
9817
9825
  });
9818
9826
  },
9819
9827
  cleanUp: function cleanUp(props, searchState) {
9820
- return _cleanUp$6(props, searchState, {
9828
+ return _cleanUp$1(props, searchState, {
9821
9829
  ais: props.contextValue,
9822
9830
  multiIndexContext: props.indexContextValue
9823
9831
  });
@@ -9826,7 +9834,7 @@ var connectToggleRefinement = createConnectorWithContext({
9826
9834
  var attribute = props.attribute,
9827
9835
  value = props.value,
9828
9836
  filter = props.filter;
9829
- var checked = getCurrentRefinement$b(props, searchState, {
9837
+ var checked = getCurrentRefinement(props, searchState, {
9830
9838
  ais: props.contextValue,
9831
9839
  multiIndexContext: props.indexContextValue
9832
9840
  });
@@ -9843,8 +9851,8 @@ var connectToggleRefinement = createConnectorWithContext({
9843
9851
  return nextSearchParameters;
9844
9852
  },
9845
9853
  getMetadata: function getMetadata(props, searchState) {
9846
- var id = getId$e(props);
9847
- var checked = getCurrentRefinement$b(props, searchState, {
9854
+ var id = getId$1(props);
9855
+ var checked = getCurrentRefinement(props, searchState, {
9848
9856
  ais: props.contextValue,
9849
9857
  multiIndexContext: props.indexContextValue
9850
9858
  });
@@ -9860,7 +9868,7 @@ var connectToggleRefinement = createConnectorWithContext({
9860
9868
  currentRefinement: checked,
9861
9869
  attribute: props.attribute,
9862
9870
  value: function value(nextState) {
9863
- return _refine$8(props, nextState, false, {
9871
+ return _refine$1(props, nextState, false, {
9864
9872
  ais: props.contextValue,
9865
9873
  multiIndexContext: props.indexContextValue
9866
9874
  });
@@ -9876,7 +9884,7 @@ var connectToggleRefinement = createConnectorWithContext({
9876
9884
  }
9877
9885
  });
9878
9886
 
9879
- function getId$f() {
9887
+ function getId() {
9880
9888
  return 'query';
9881
9889
  }
9882
9890
 
@@ -9885,7 +9893,7 @@ function getAdditionalId() {
9885
9893
  }
9886
9894
 
9887
9895
  function getCurrentRefinementQuery(props, searchState, context) {
9888
- var id = getId$f();
9896
+ var id = getId();
9889
9897
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
9890
9898
 
9891
9899
  if (currentRefinement) {
@@ -9906,10 +9914,10 @@ function getCurrentRefinementAdditional(props, searchState, context) {
9906
9914
  return {};
9907
9915
  }
9908
9916
 
9909
- function _refine$9(props, searchState, nextRefinement, context) {
9917
+ function _refine(props, searchState, nextRefinement, context) {
9910
9918
  var _nextValue;
9911
9919
 
9912
- var id = getId$f();
9920
+ var id = getId();
9913
9921
  var voiceParams = getAdditionalId();
9914
9922
  var queryLanguages = props.language ? {
9915
9923
  queryLanguages: [props.language.split('-')[0]]
@@ -9926,8 +9934,8 @@ function _refine$9(props, searchState, nextRefinement, context) {
9926
9934
  return refineValue(searchState, nextValue, context, resetPage);
9927
9935
  }
9928
9936
 
9929
- function _cleanUp$7(props, searchState, context) {
9930
- var interimState = cleanUpValue(searchState, context, getId$f());
9937
+ function _cleanUp(props, searchState, context) {
9938
+ var interimState = cleanUpValue(searchState, context, getId());
9931
9939
  return cleanUpValue(interimState, context, getAdditionalId());
9932
9940
  }
9933
9941
 
@@ -9946,13 +9954,13 @@ var connectVoiceSearch = createConnectorWithContext({
9946
9954
  };
9947
9955
  },
9948
9956
  refine: function refine(props, searchState, nextRefinement) {
9949
- return _refine$9(props, searchState, nextRefinement, {
9957
+ return _refine(props, searchState, nextRefinement, {
9950
9958
  ais: props.contextValue,
9951
9959
  multiIndexContext: props.indexContextValue
9952
9960
  });
9953
9961
  },
9954
9962
  cleanUp: function cleanUp(props, searchState) {
9955
- return _cleanUp$7(props, searchState, {
9963
+ return _cleanUp(props, searchState, {
9956
9964
  ais: props.contextValue,
9957
9965
  multiIndexContext: props.indexContextValue
9958
9966
  });
@@ -9969,7 +9977,7 @@ var connectVoiceSearch = createConnectorWithContext({
9969
9977
  return searchParameters.setQuery(query).setQueryParameters(additionalParams);
9970
9978
  },
9971
9979
  getMetadata: function getMetadata(props, searchState) {
9972
- var id = getId$f();
9980
+ var id = getId();
9973
9981
  var currentRefinement = getCurrentRefinementQuery(props, searchState, {
9974
9982
  ais: props.contextValue,
9975
9983
  multiIndexContext: props.indexContextValue
@@ -9983,7 +9991,7 @@ var connectVoiceSearch = createConnectorWithContext({
9983
9991
  items: currentRefinement === null ? [] : [{
9984
9992
  label: "".concat(id, ": ").concat(currentRefinement),
9985
9993
  value: function value(nextState) {
9986
- return _refine$9(props, nextState, '', {
9994
+ return _refine(props, nextState, '', {
9987
9995
  ais: props.contextValue,
9988
9996
  multiIndexContext: props.indexContextValue
9989
9997
  });
@@ -10036,7 +10044,7 @@ function range(_ref) {
10036
10044
  return (start + current) * limitStep;
10037
10045
  });
10038
10046
  }
10039
- function find$2(array, comparator) {
10047
+ function find(array, comparator) {
10040
10048
  if (!Array.isArray(array)) {
10041
10049
  return undefined;
10042
10050
  }
@@ -10050,11 +10058,11 @@ function find$2(array, comparator) {
10050
10058
  return undefined;
10051
10059
  }
10052
10060
 
10053
- var cx = createClassNames('Panel');
10061
+ var cx$p = createClassNames('Panel');
10054
10062
 
10055
- var _createContext$1 = createContext(function setCanRefine() {}),
10056
- PanelConsumer = _createContext$1.Consumer,
10057
- PanelProvider = _createContext$1.Provider;
10063
+ var _createContext = createContext(function setCanRefine() {}),
10064
+ PanelConsumer = _createContext.Consumer,
10065
+ PanelProvider = _createContext.Provider;
10058
10066
 
10059
10067
  var Panel =
10060
10068
  /*#__PURE__*/
@@ -10097,15 +10105,15 @@ function (_Component) {
10097
10105
  footer = _this$props.footer;
10098
10106
  var canRefine = this.state.canRefine;
10099
10107
  return React.createElement("div", {
10100
- className: classnames(cx('', !canRefine && '-noRefinement'), className)
10108
+ className: classnames(cx$p('', !canRefine && '-noRefinement'), className)
10101
10109
  }, header && React.createElement("div", {
10102
- className: cx('header')
10110
+ className: cx$p('header')
10103
10111
  }, header), React.createElement("div", {
10104
- className: cx('body')
10112
+ className: cx$p('body')
10105
10113
  }, React.createElement(PanelProvider, {
10106
10114
  value: this.setCanRefine
10107
10115
  }, children)), footer && React.createElement("div", {
10108
- className: cx('footer')
10116
+ className: cx$p('footer')
10109
10117
  }, footer));
10110
10118
  }
10111
10119
  }]);
@@ -10228,8 +10236,8 @@ _defineProperty(Link, "propTypes", {
10228
10236
  onClick: PropTypes.func.isRequired
10229
10237
  });
10230
10238
 
10231
- var cx$1 = createClassNames('Breadcrumb');
10232
- var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
10239
+ var cx$o = createClassNames('Breadcrumb');
10240
+ var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
10233
10241
  label: PropTypes.string.isRequired,
10234
10242
  value: PropTypes.string.isRequired
10235
10243
  }));
@@ -10258,9 +10266,9 @@ function (_Component) {
10258
10266
  translate = _this$props.translate,
10259
10267
  className = _this$props.className;
10260
10268
  var rootPath = canRefine ? React.createElement("li", {
10261
- className: cx$1('item')
10269
+ className: cx$o('item')
10262
10270
  }, React.createElement(Link, {
10263
- className: cx$1('link'),
10271
+ className: cx$o('link'),
10264
10272
  onClick: function onClick() {
10265
10273
  return !rootURL ? refine() : null;
10266
10274
  },
@@ -10269,12 +10277,12 @@ function (_Component) {
10269
10277
  var breadcrumb = items.map(function (item, idx) {
10270
10278
  var isLast = idx === items.length - 1;
10271
10279
  return React.createElement("li", {
10272
- className: cx$1('item', isLast && 'item--selected'),
10280
+ className: cx$o('item', isLast && 'item--selected'),
10273
10281
  key: idx
10274
10282
  }, React.createElement("span", {
10275
- className: cx$1('separator')
10283
+ className: cx$o('separator')
10276
10284
  }, separator), !isLast ? React.createElement(Link, {
10277
- className: cx$1('link'),
10285
+ className: cx$o('link'),
10278
10286
  onClick: function onClick() {
10279
10287
  return refine(item.value);
10280
10288
  },
@@ -10282,9 +10290,9 @@ function (_Component) {
10282
10290
  }, item.label) : item.label);
10283
10291
  });
10284
10292
  return React.createElement("div", {
10285
- className: classnames(cx$1('', !canRefine && '-noRefinement'), className)
10293
+ className: classnames(cx$o('', !canRefine && '-noRefinement'), className)
10286
10294
  }, React.createElement("ul", {
10287
- className: cx$1('list')
10295
+ className: cx$o('list')
10288
10296
  }, rootPath, breadcrumb));
10289
10297
  }
10290
10298
  }]);
@@ -10295,7 +10303,7 @@ function (_Component) {
10295
10303
  _defineProperty(Breadcrumb, "propTypes", {
10296
10304
  canRefine: PropTypes.bool.isRequired,
10297
10305
  createURL: PropTypes.func.isRequired,
10298
- items: itemsPropType,
10306
+ items: itemsPropType$2,
10299
10307
  refine: PropTypes.func.isRequired,
10300
10308
  rootURL: PropTypes.string,
10301
10309
  separator: PropTypes.node,
@@ -10407,7 +10415,7 @@ var BreadcrumbWidget = function BreadcrumbWidget(props) {
10407
10415
 
10408
10416
  connectBreadcrumb(BreadcrumbWidget);
10409
10417
 
10410
- var cx$2 = createClassNames('ClearRefinements');
10418
+ var cx$n = createClassNames('ClearRefinements');
10411
10419
 
10412
10420
  var ClearRefinements =
10413
10421
  /*#__PURE__*/
@@ -10430,9 +10438,9 @@ function (_Component) {
10430
10438
  translate = _this$props.translate,
10431
10439
  className = _this$props.className;
10432
10440
  return React.createElement("div", {
10433
- className: classnames(cx$2(''), className)
10441
+ className: classnames(cx$n(''), className)
10434
10442
  }, React.createElement("button", {
10435
- className: cx$2('button', !canRefine && 'button--disabled'),
10443
+ className: cx$n('button', !canRefine && 'button--disabled'),
10436
10444
  onClick: function onClick() {
10437
10445
  return refine(items);
10438
10446
  },
@@ -10500,7 +10508,7 @@ var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
10500
10508
 
10501
10509
  connectCurrentRefinements(ClearRefinementsWidget);
10502
10510
 
10503
- var cx$3 = createClassNames('CurrentRefinements');
10511
+ var cx$m = createClassNames('CurrentRefinements');
10504
10512
  var CurrentRefinements = function CurrentRefinements(_ref) {
10505
10513
  var items = _ref.items,
10506
10514
  canRefine = _ref.canRefine,
@@ -10508,31 +10516,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
10508
10516
  translate = _ref.translate,
10509
10517
  className = _ref.className;
10510
10518
  return React.createElement("div", {
10511
- className: classnames(cx$3('', !canRefine && '-noRefinement'), className)
10519
+ className: classnames(cx$m('', !canRefine && '-noRefinement'), className)
10512
10520
  }, React.createElement("ul", {
10513
- className: cx$3('list', !canRefine && 'list--noRefinement')
10521
+ className: cx$m('list', !canRefine && 'list--noRefinement')
10514
10522
  }, items.map(function (item) {
10515
10523
  return React.createElement("li", {
10516
10524
  key: item.label,
10517
- className: cx$3('item')
10525
+ className: cx$m('item')
10518
10526
  }, React.createElement("span", {
10519
- className: cx$3('label')
10527
+ className: cx$m('label')
10520
10528
  }, item.label), item.items ? item.items.map(function (nest) {
10521
10529
  return React.createElement("span", {
10522
10530
  key: nest.label,
10523
- className: cx$3('category')
10531
+ className: cx$m('category')
10524
10532
  }, React.createElement("span", {
10525
- className: cx$3('categoryLabel')
10533
+ className: cx$m('categoryLabel')
10526
10534
  }, nest.label), React.createElement("button", {
10527
- className: cx$3('delete'),
10535
+ className: cx$m('delete'),
10528
10536
  onClick: function onClick() {
10529
10537
  return refine(nest.value);
10530
10538
  }
10531
10539
  }, translate('clearFilter', nest)));
10532
10540
  }) : React.createElement("span", {
10533
- className: cx$3('category')
10541
+ className: cx$m('category')
10534
10542
  }, React.createElement("button", {
10535
- className: cx$3('delete'),
10543
+ className: cx$m('delete'),
10536
10544
  onClick: function onClick() {
10537
10545
  return refine(item.value);
10538
10546
  }
@@ -10608,14 +10616,14 @@ var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
10608
10616
 
10609
10617
  connectCurrentRefinements(CurrentRefinementsWidget);
10610
10618
 
10611
- var cx$4 = createClassNames('SearchBox');
10619
+ var cx$l = createClassNames('SearchBox');
10612
10620
  var defaultLoadingIndicator = React.createElement("svg", {
10613
10621
  width: "18",
10614
10622
  height: "18",
10615
10623
  viewBox: "0 0 38 38",
10616
10624
  xmlns: "http://www.w3.org/2000/svg",
10617
10625
  stroke: "#444",
10618
- className: cx$4('loadingIcon')
10626
+ className: cx$l('loadingIcon')
10619
10627
  }, React.createElement("g", {
10620
10628
  fill: "none",
10621
10629
  fillRule: "evenodd"
@@ -10638,7 +10646,7 @@ var defaultLoadingIndicator = React.createElement("svg", {
10638
10646
  repeatCount: "indefinite"
10639
10647
  })))));
10640
10648
  var defaultReset = React.createElement("svg", {
10641
- className: cx$4('resetIcon'),
10649
+ className: cx$l('resetIcon'),
10642
10650
  xmlns: "http://www.w3.org/2000/svg",
10643
10651
  viewBox: "0 0 20 20",
10644
10652
  width: "10",
@@ -10647,7 +10655,7 @@ var defaultReset = React.createElement("svg", {
10647
10655
  d: "M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"
10648
10656
  }));
10649
10657
  var defaultSubmit = React.createElement("svg", {
10650
- className: cx$4('submitIcon'),
10658
+ className: cx$l('submitIcon'),
10651
10659
  xmlns: "http://www.w3.org/2000/svg",
10652
10660
  width: "10",
10653
10661
  height: "10",
@@ -10656,7 +10664,7 @@ var defaultSubmit = React.createElement("svg", {
10656
10664
  d: "M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"
10657
10665
  }));
10658
10666
 
10659
- var SearchBox =
10667
+ var SearchBox$1 =
10660
10668
  /*#__PURE__*/
10661
10669
  function (_Component) {
10662
10670
  _inherits(SearchBox, _Component);
@@ -10819,12 +10827,12 @@ function (_Component) {
10819
10827
  /* eslint-disable max-len */
10820
10828
 
10821
10829
  return React.createElement("div", {
10822
- className: classnames(cx$4(''), className)
10830
+ className: classnames(cx$l(''), className)
10823
10831
  }, React.createElement("form", {
10824
10832
  noValidate: true,
10825
10833
  onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
10826
10834
  onReset: this.onReset,
10827
- className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
10835
+ className: cx$l('form', isSearchStalled && 'form--stalledSearch'),
10828
10836
  action: "",
10829
10837
  role: "search"
10830
10838
  }, React.createElement("input", _extends({
@@ -10841,19 +10849,19 @@ function (_Component) {
10841
10849
  value: query,
10842
10850
  onChange: this.onChange
10843
10851
  }, searchInputEvents, {
10844
- className: cx$4('input')
10852
+ className: cx$l('input')
10845
10853
  })), React.createElement("button", {
10846
10854
  type: "submit",
10847
10855
  title: translate('submitTitle'),
10848
- className: cx$4('submit')
10856
+ className: cx$l('submit')
10849
10857
  }, submit), React.createElement("button", {
10850
10858
  type: "reset",
10851
10859
  title: translate('resetTitle'),
10852
- className: cx$4('reset'),
10860
+ className: cx$l('reset'),
10853
10861
  hidden: !query || isSearchStalled
10854
10862
  }, reset), this.props.showLoadingIndicator && React.createElement("span", {
10855
10863
  hidden: !isSearchStalled,
10856
- className: cx$4('loadingIndicator')
10864
+ className: cx$l('loadingIndicator')
10857
10865
  }, loadingIndicator)));
10858
10866
  /* eslint-enable */
10859
10867
  }
@@ -10862,7 +10870,7 @@ function (_Component) {
10862
10870
  return SearchBox;
10863
10871
  }(Component);
10864
10872
 
10865
- _defineProperty(SearchBox, "propTypes", {
10873
+ _defineProperty(SearchBox$1, "propTypes", {
10866
10874
  currentRefinement: PropTypes.string,
10867
10875
  className: PropTypes.string,
10868
10876
  refine: PropTypes.func.isRequired,
@@ -10883,7 +10891,7 @@ _defineProperty(SearchBox, "propTypes", {
10883
10891
  })])
10884
10892
  });
10885
10893
 
10886
- _defineProperty(SearchBox, "defaultProps", {
10894
+ _defineProperty(SearchBox$1, "defaultProps", {
10887
10895
  currentRefinement: '',
10888
10896
  className: '',
10889
10897
  focusShortcuts: ['s', '/'],
@@ -10896,11 +10904,11 @@ _defineProperty(SearchBox, "defaultProps", {
10896
10904
  submit: defaultSubmit
10897
10905
  });
10898
10906
 
10899
- var SearchBox$1 = translatable({
10907
+ var SearchBox$2 = translatable({
10900
10908
  resetTitle: 'Clear the search query.',
10901
10909
  submitTitle: 'Submit your search query.',
10902
10910
  placeholder: 'Search here…'
10903
- })(SearchBox);
10911
+ })(SearchBox$1);
10904
10912
 
10905
10913
  var itemsPropType$1 = PropTypes.arrayOf(PropTypes.shape({
10906
10914
  value: PropTypes.any,
@@ -11000,7 +11008,7 @@ function (_Component) {
11000
11008
  }, translate('noResults')) : null;
11001
11009
  return React.createElement("div", {
11002
11010
  className: cx('searchBox')
11003
- }, React.createElement(SearchBox$1, {
11011
+ }, React.createElement(SearchBox$2, {
11004
11012
  currentRefinement: this.state.query,
11005
11013
  refine: function refine(value) {
11006
11014
  _this2.setState({
@@ -11080,13 +11088,13 @@ _defineProperty(List, "defaultProps", {
11080
11088
  isFromSearch: false
11081
11089
  });
11082
11090
 
11083
- var cx$5 = createClassNames('HierarchicalMenu');
11084
- var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
11091
+ var cx$k = createClassNames('HierarchicalMenu');
11092
+ var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
11085
11093
  label: PropTypes.string.isRequired,
11086
11094
  value: PropTypes.string,
11087
11095
  count: PropTypes.number.isRequired,
11088
11096
  items: function items() {
11089
- return itemsPropType$2.apply(void 0, arguments);
11097
+ return itemsPropType.apply(void 0, arguments);
11090
11098
  }
11091
11099
  }));
11092
11100
 
@@ -11113,15 +11121,15 @@ function (_Component) {
11113
11121
  createURL = _this$props.createURL,
11114
11122
  refine = _this$props.refine;
11115
11123
  return React.createElement(Link, {
11116
- className: cx$5('link'),
11124
+ className: cx$k('link'),
11117
11125
  onClick: function onClick() {
11118
11126
  return refine(item.value);
11119
11127
  },
11120
11128
  href: createURL(item.value)
11121
11129
  }, React.createElement("span", {
11122
- className: cx$5('label')
11130
+ className: cx$k('label')
11123
11131
  }, item.label), ' ', React.createElement("span", {
11124
- className: cx$5('count')
11132
+ className: cx$k('count')
11125
11133
  }, item.count));
11126
11134
  });
11127
11135
 
@@ -11141,7 +11149,7 @@ function (_Component) {
11141
11149
  className = _this$props2.className;
11142
11150
  return React.createElement(List, {
11143
11151
  renderItem: this.renderItem,
11144
- cx: cx$5,
11152
+ cx: cx$k,
11145
11153
  translate: translate,
11146
11154
  items: items,
11147
11155
  showMore: showMore,
@@ -11161,7 +11169,7 @@ _defineProperty(HierarchicalMenu, "propTypes", {
11161
11169
  refine: PropTypes.func.isRequired,
11162
11170
  createURL: PropTypes.func.isRequired,
11163
11171
  canRefine: PropTypes.bool.isRequired,
11164
- items: itemsPropType$2,
11172
+ items: itemsPropType,
11165
11173
  showMore: PropTypes.bool,
11166
11174
  className: PropTypes.string,
11167
11175
  limit: PropTypes.number,
@@ -11275,7 +11283,7 @@ var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
11275
11283
 
11276
11284
  connectHierarchicalMenu(HierarchicalMenuWidget);
11277
11285
 
11278
- var Highlight = function Highlight(_ref) {
11286
+ var Highlight$2 = function Highlight(_ref) {
11279
11287
  var cx = _ref.cx,
11280
11288
  value = _ref.value,
11281
11289
  highlightedTagName = _ref.highlightedTagName,
@@ -11287,7 +11295,7 @@ var Highlight = function Highlight(_ref) {
11287
11295
  className: cx(className)
11288
11296
  }, value);
11289
11297
  };
11290
- Highlight.propTypes = {
11298
+ Highlight$2.propTypes = {
11291
11299
  cx: PropTypes.func.isRequired,
11292
11300
  value: PropTypes.string.isRequired,
11293
11301
  isHighlighted: PropTypes.bool.isRequired,
@@ -11318,7 +11326,7 @@ var Highlighter = function Highlighter(_ref2) {
11318
11326
  return React.createElement("span", {
11319
11327
  key: i
11320
11328
  }, item.map(function (element, index) {
11321
- return React.createElement(Highlight, {
11329
+ return React.createElement(Highlight$2, {
11322
11330
  cx: cx,
11323
11331
  key: index,
11324
11332
  value: element.value,
@@ -11331,7 +11339,7 @@ var Highlighter = function Highlighter(_ref2) {
11331
11339
  }, separator));
11332
11340
  }
11333
11341
 
11334
- return React.createElement(Highlight, {
11342
+ return React.createElement(Highlight$2, {
11335
11343
  cx: cx,
11336
11344
  key: i,
11337
11345
  value: item.value,
@@ -11360,12 +11368,12 @@ Highlighter.defaultProps = {
11360
11368
  separator: ', '
11361
11369
  };
11362
11370
 
11363
- var cx$6 = createClassNames('Highlight');
11371
+ var cx$j = createClassNames('Highlight');
11364
11372
 
11365
11373
  var Highlight$1 = function Highlight(props) {
11366
11374
  return React.createElement(Highlighter, _extends({}, props, {
11367
11375
  highlightProperty: "_highlightResult",
11368
- cx: cx$6
11376
+ cx: cx$j
11369
11377
  }));
11370
11378
  };
11371
11379
 
@@ -11410,9 +11418,9 @@ var Highlight$1 = function Highlight(props) {
11410
11418
  * );
11411
11419
  */
11412
11420
 
11413
- var Highlight$2 = connectHighlight(Highlight$1);
11421
+ var Highlight = connectHighlight(Highlight$1);
11414
11422
 
11415
- var cx$7 = createClassNames('Hits');
11423
+ var cx$i = createClassNames('Hits');
11416
11424
 
11417
11425
  var DefaultHitComponent = function DefaultHitComponent(props) {
11418
11426
  return React.createElement("div", {
@@ -11425,19 +11433,19 @@ var DefaultHitComponent = function DefaultHitComponent(props) {
11425
11433
  }, JSON.stringify(props).slice(0, 100), "...");
11426
11434
  };
11427
11435
 
11428
- var Hits = function Hits(_ref) {
11436
+ var Hits$1 = function Hits(_ref) {
11429
11437
  var hits = _ref.hits,
11430
11438
  _ref$className = _ref.className,
11431
11439
  className = _ref$className === void 0 ? '' : _ref$className,
11432
11440
  _ref$hitComponent = _ref.hitComponent,
11433
11441
  HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
11434
11442
  return React.createElement("div", {
11435
- className: classnames(cx$7(''), className)
11443
+ className: classnames(cx$i(''), className)
11436
11444
  }, React.createElement("ul", {
11437
- className: cx$7('list')
11445
+ className: cx$i('list')
11438
11446
  }, hits.map(function (hit) {
11439
11447
  return React.createElement("li", {
11440
- className: cx$7('item'),
11448
+ className: cx$i('item'),
11441
11449
  key: hit.objectID
11442
11450
  }, React.createElement(HitComponent, {
11443
11451
  hit: hit
@@ -11448,7 +11456,7 @@ var Hits = function Hits(_ref) {
11448
11456
  var HitPropTypes = PropTypes.shape({
11449
11457
  objectID: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
11450
11458
  });
11451
- Hits.propTypes = {
11459
+ Hits$1.propTypes = {
11452
11460
  hits: PropTypes.arrayOf(HitPropTypes.isRequired).isRequired,
11453
11461
  className: PropTypes.string,
11454
11462
  hitComponent: PropTypes.func
@@ -11487,7 +11495,7 @@ Hits.propTypes = {
11487
11495
  * );
11488
11496
  */
11489
11497
 
11490
- var Hits$1 = connectHits(Hits);
11498
+ var Hits = connectHits(Hits$1);
11491
11499
 
11492
11500
  var Select =
11493
11501
  /*#__PURE__*/
@@ -11551,7 +11559,7 @@ _defineProperty(Select, "propTypes", {
11551
11559
  selectedItem: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
11552
11560
  });
11553
11561
 
11554
- var cx$8 = createClassNames('HitsPerPage');
11562
+ var cx$h = createClassNames('HitsPerPage');
11555
11563
 
11556
11564
  var HitsPerPage =
11557
11565
  /*#__PURE__*/
@@ -11573,12 +11581,12 @@ function (_Component) {
11573
11581
  refine = _this$props.refine,
11574
11582
  className = _this$props.className;
11575
11583
  return React.createElement("div", {
11576
- className: classnames(cx$8(''), className)
11584
+ className: classnames(cx$h(''), className)
11577
11585
  }, React.createElement(Select, {
11578
11586
  onSelect: refine,
11579
11587
  selectedItem: currentRefinement,
11580
11588
  items: items,
11581
- cx: cx$8
11589
+ cx: cx$h
11582
11590
  }));
11583
11591
  }
11584
11592
  }]);
@@ -11644,7 +11652,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
11644
11652
 
11645
11653
  connectHitsPerPage(HitsPerPage);
11646
11654
 
11647
- var cx$9 = createClassNames('InfiniteHits');
11655
+ var cx$g = createClassNames('InfiniteHits');
11648
11656
 
11649
11657
  var InfiniteHits =
11650
11658
  /*#__PURE__*/
@@ -11671,24 +11679,24 @@ function (_Component) {
11671
11679
  translate = _this$props.translate,
11672
11680
  className = _this$props.className;
11673
11681
  return React.createElement("div", {
11674
- className: classnames(cx$9(''), className)
11682
+ className: classnames(cx$g(''), className)
11675
11683
  }, showPrevious && React.createElement("button", {
11676
- className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
11684
+ className: cx$g('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
11677
11685
  onClick: function onClick() {
11678
11686
  return refinePrevious();
11679
11687
  },
11680
11688
  disabled: !hasPrevious
11681
11689
  }, translate('loadPrevious')), React.createElement("ul", {
11682
- className: cx$9('list')
11690
+ className: cx$g('list')
11683
11691
  }, hits.map(function (hit) {
11684
11692
  return React.createElement("li", {
11685
11693
  key: hit.objectID,
11686
- className: cx$9('item')
11694
+ className: cx$g('item')
11687
11695
  }, React.createElement(HitComponent, {
11688
11696
  hit: hit
11689
11697
  }));
11690
11698
  })), React.createElement("button", {
11691
- className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
11699
+ className: cx$g('loadMore', !hasMore && 'loadMore--disabled'),
11692
11700
  onClick: function onClick() {
11693
11701
  return refineNext();
11694
11702
  },
@@ -11769,7 +11777,7 @@ var InfiniteHits$1 = translatable({
11769
11777
 
11770
11778
  connectInfiniteHits(InfiniteHits$1);
11771
11779
 
11772
- var cx$a = createClassNames('Menu');
11780
+ var cx$f = createClassNames('Menu');
11773
11781
 
11774
11782
  var Menu =
11775
11783
  /*#__PURE__*/
@@ -11791,20 +11799,20 @@ function (_Component) {
11791
11799
 
11792
11800
  _defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
11793
11801
  var createURL = _this.props.createURL;
11794
- var label = _this.props.isFromSearch ? React.createElement(Highlight$2, {
11802
+ var label = _this.props.isFromSearch ? React.createElement(Highlight, {
11795
11803
  attribute: "label",
11796
11804
  hit: item
11797
11805
  }) : item.label;
11798
11806
  return React.createElement(Link, {
11799
- className: cx$a('link'),
11807
+ className: cx$f('link'),
11800
11808
  onClick: function onClick() {
11801
11809
  return _this.selectItem(item, resetQuery);
11802
11810
  },
11803
11811
  href: createURL(item.value)
11804
11812
  }, React.createElement("span", {
11805
- className: cx$a('label')
11813
+ className: cx$f('label')
11806
11814
  }, label), ' ', React.createElement("span", {
11807
- className: cx$a('count')
11815
+ className: cx$f('count')
11808
11816
  }, item.count));
11809
11817
  });
11810
11818
 
@@ -11834,7 +11842,7 @@ function (_Component) {
11834
11842
  return React.createElement(List, {
11835
11843
  renderItem: this.renderItem,
11836
11844
  selectItem: this.selectItem,
11837
- cx: cx$a,
11845
+ cx: cx$f,
11838
11846
  translate: translate,
11839
11847
  items: items,
11840
11848
  showMore: showMore,
@@ -11944,7 +11952,7 @@ var MenuWidget = function MenuWidget(props) {
11944
11952
 
11945
11953
  connectMenu(MenuWidget);
11946
11954
 
11947
- var cx$b = createClassNames('MenuSelect');
11955
+ var cx$e = createClassNames('MenuSelect');
11948
11956
 
11949
11957
  var MenuSelect =
11950
11958
  /*#__PURE__*/
@@ -11982,26 +11990,26 @@ function (_Component) {
11982
11990
  translate = _this$props.translate,
11983
11991
  className = _this$props.className;
11984
11992
  return React.createElement("div", {
11985
- className: classnames(cx$b('', !canRefine && '-noRefinement'), className)
11993
+ className: classnames(cx$e('', !canRefine && '-noRefinement'), className)
11986
11994
  }, React.createElement("select", {
11987
11995
  value: this.selectedValue,
11988
11996
  onChange: this.handleSelectChange,
11989
- className: cx$b('select')
11997
+ className: cx$e('select')
11990
11998
  }, React.createElement("option", {
11991
11999
  value: "ais__see__all__option",
11992
- className: cx$b('option')
12000
+ className: cx$e('option')
11993
12001
  }, translate('seeAllOption')), items.map(function (item) {
11994
12002
  return React.createElement("option", {
11995
12003
  key: item.value,
11996
12004
  value: item.value,
11997
- className: cx$b('option')
12005
+ className: cx$e('option')
11998
12006
  }, item.label, " (", item.count, ")");
11999
12007
  })));
12000
12008
  }
12001
12009
  }, {
12002
12010
  key: "selectedValue",
12003
12011
  get: function get() {
12004
- var _ref2 = find$2(this.props.items, function (item) {
12012
+ var _ref2 = find(this.props.items, function (item) {
12005
12013
  return item.isRefined === true;
12006
12014
  }) || {
12007
12015
  value: 'ais__see__all__option'
@@ -12078,7 +12086,7 @@ var MenuSelectWidget = function MenuSelectWidget(props) {
12078
12086
 
12079
12087
  connectMenu(MenuSelectWidget);
12080
12088
 
12081
- var cx$c = createClassNames('NumericMenu');
12089
+ var cx$d = createClassNames('NumericMenu');
12082
12090
 
12083
12091
  var NumericMenu =
12084
12092
  /*#__PURE__*/
@@ -12103,9 +12111,9 @@ function (_Component) {
12103
12111
  refine = _this$props.refine,
12104
12112
  translate = _this$props.translate;
12105
12113
  return React.createElement("label", {
12106
- className: cx$c('label')
12114
+ className: cx$d('label')
12107
12115
  }, React.createElement("input", {
12108
- className: cx$c('radio'),
12116
+ className: cx$d('radio'),
12109
12117
  type: "radio",
12110
12118
  checked: item.isRefined,
12111
12119
  disabled: item.noRefinement,
@@ -12113,7 +12121,7 @@ function (_Component) {
12113
12121
  return refine(item.value);
12114
12122
  }
12115
12123
  }), React.createElement("span", {
12116
- className: cx$c('labelText')
12124
+ className: cx$d('labelText')
12117
12125
  }, item.value === '' ? translate('all') : item.label));
12118
12126
  });
12119
12127
 
@@ -12131,7 +12139,7 @@ function (_Component) {
12131
12139
  renderItem: this.renderItem,
12132
12140
  showMore: false,
12133
12141
  canRefine: canRefine,
12134
- cx: cx$c,
12142
+ cx: cx$d,
12135
12143
  items: items.map(function (item) {
12136
12144
  return _objectSpread({}, item, {
12137
12145
  key: item.value
@@ -12276,7 +12284,7 @@ _defineProperty(LinkList, "propTypes", {
12276
12284
  canRefine: PropTypes.bool.isRequired
12277
12285
  });
12278
12286
 
12279
- var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
12287
+ var cx$c = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
12280
12288
 
12281
12289
  function calculateSize(padding, maxPages) {
12282
12290
  return Math.min(2 * padding + 1, maxPages);
@@ -12312,7 +12320,7 @@ function getPages(currentPage, maxPages, padding) {
12312
12320
  });
12313
12321
  }
12314
12322
 
12315
- var Pagination =
12323
+ var Pagination$1 =
12316
12324
  /*#__PURE__*/
12317
12325
  function (_Component) {
12318
12326
  _inherits(Pagination, _Component);
@@ -12419,9 +12427,9 @@ function (_Component) {
12419
12427
  }
12420
12428
 
12421
12429
  return React.createElement("div", {
12422
- className: classnames(cx$d('', !canRefine && '-noRefinement'), className)
12430
+ className: classnames(cx$c('', !canRefine && '-noRefinement'), className)
12423
12431
  }, React.createElement(ListComponent, _extends({}, otherProps, {
12424
- cx: cx$d,
12432
+ cx: cx$c,
12425
12433
  items: items,
12426
12434
  onSelect: refine,
12427
12435
  createURL: createURL,
@@ -12433,7 +12441,7 @@ function (_Component) {
12433
12441
  return Pagination;
12434
12442
  }(Component);
12435
12443
 
12436
- _defineProperty(Pagination, "propTypes", {
12444
+ _defineProperty(Pagination$1, "propTypes", {
12437
12445
  nbPages: PropTypes.number.isRequired,
12438
12446
  currentRefinement: PropTypes.number.isRequired,
12439
12447
  refine: PropTypes.func.isRequired,
@@ -12450,7 +12458,7 @@ _defineProperty(Pagination, "propTypes", {
12450
12458
  className: PropTypes.string
12451
12459
  });
12452
12460
 
12453
- _defineProperty(Pagination, "defaultProps", {
12461
+ _defineProperty(Pagination$1, "defaultProps", {
12454
12462
  listComponent: LinkList,
12455
12463
  showFirst: true,
12456
12464
  showPrevious: true,
@@ -12461,7 +12469,7 @@ _defineProperty(Pagination, "defaultProps", {
12461
12469
  className: ''
12462
12470
  });
12463
12471
 
12464
- var Pagination$1 = translatable({
12472
+ var Pagination$2 = translatable({
12465
12473
  previous: '‹',
12466
12474
  next: '›',
12467
12475
  first: '«',
@@ -12476,7 +12484,7 @@ var Pagination$1 = translatable({
12476
12484
  ariaPage: function ariaPage(currentRefinement) {
12477
12485
  return "Page ".concat(currentRefinement.toString());
12478
12486
  }
12479
- })(Pagination);
12487
+ })(Pagination$1);
12480
12488
 
12481
12489
  /**
12482
12490
  * The Pagination widget displays a simple pagination system allowing the user to
@@ -12533,12 +12541,12 @@ var Pagination$1 = translatable({
12533
12541
  */
12534
12542
 
12535
12543
  var PaginationWidget = function PaginationWidget(props) {
12536
- return React.createElement(PanelWrapper, props, React.createElement(Pagination$1, props));
12544
+ return React.createElement(PanelWrapper, props, React.createElement(Pagination$2, props));
12537
12545
  };
12538
12546
 
12539
- var Pagination$2 = connectPagination(PaginationWidget);
12547
+ var Pagination = connectPagination(PaginationWidget);
12540
12548
 
12541
- var cx$e = createClassNames('PoweredBy');
12549
+ var cx$b = createClassNames('PoweredBy');
12542
12550
  /* eslint-disable max-len */
12543
12551
 
12544
12552
  var AlgoliaLogo = function AlgoliaLogo() {
@@ -12548,7 +12556,7 @@ var AlgoliaLogo = function AlgoliaLogo() {
12548
12556
  viewBox: "0 0 1366 362",
12549
12557
  width: "100",
12550
12558
  height: "27",
12551
- className: cx$e('logo')
12559
+ className: cx$b('logo')
12552
12560
  }, React.createElement("linearGradient", {
12553
12561
  id: "g",
12554
12562
  x1: "428.258",
@@ -12596,13 +12604,13 @@ function (_Component) {
12596
12604
  translate = _this$props.translate,
12597
12605
  className = _this$props.className;
12598
12606
  return React.createElement("div", {
12599
- className: classnames(cx$e(''), className)
12607
+ className: classnames(cx$b(''), className)
12600
12608
  }, React.createElement("span", {
12601
- className: cx$e('text')
12609
+ className: cx$b('text')
12602
12610
  }, translate('searchBy')), ' ', React.createElement("a", {
12603
12611
  href: url,
12604
12612
  target: "_blank",
12605
- className: cx$e('link'),
12613
+ className: cx$b('link'),
12606
12614
  "aria-label": "Algolia",
12607
12615
  rel: "noopener noreferrer"
12608
12616
  }, React.createElement(AlgoliaLogo, null)));
@@ -12655,7 +12663,7 @@ var PoweredBy$1 = translatable({
12655
12663
 
12656
12664
  connectPoweredBy(PoweredBy$1);
12657
12665
 
12658
- var cx$f = createClassNames('RangeInput');
12666
+ var cx$a = createClassNames('RangeInput');
12659
12667
  var RawRangeInput =
12660
12668
  /*#__PURE__*/
12661
12669
  function (_Component) {
@@ -12735,12 +12743,12 @@ function (_Component) {
12735
12743
 
12736
12744
  var step = 1 / Math.pow(10, precision);
12737
12745
  return React.createElement("div", {
12738
- className: classnames(cx$f('', !canRefine && '-noRefinement'), className)
12746
+ className: classnames(cx$a('', !canRefine && '-noRefinement'), className)
12739
12747
  }, React.createElement("form", {
12740
- className: cx$f('form'),
12748
+ className: cx$a('form'),
12741
12749
  onSubmit: this.onSubmit
12742
12750
  }, React.createElement("input", {
12743
- className: cx$f('input', 'input--min'),
12751
+ className: cx$a('input', 'input--min'),
12744
12752
  type: "number",
12745
12753
  min: min,
12746
12754
  max: max,
@@ -12754,9 +12762,9 @@ function (_Component) {
12754
12762
  });
12755
12763
  }
12756
12764
  }), React.createElement("span", {
12757
- className: cx$f('separator')
12765
+ className: cx$a('separator')
12758
12766
  }, translate('separator')), React.createElement("input", {
12759
- className: cx$f('input', 'input--max'),
12767
+ className: cx$a('input', 'input--max'),
12760
12768
  type: "number",
12761
12769
  min: min,
12762
12770
  max: max,
@@ -12770,7 +12778,7 @@ function (_Component) {
12770
12778
  });
12771
12779
  }
12772
12780
  }), React.createElement("button", {
12773
- className: cx$f('submit'),
12781
+ className: cx$a('submit'),
12774
12782
  type: "submit"
12775
12783
  }, translate('submit'))));
12776
12784
  }
@@ -12851,7 +12859,7 @@ var RangeInputWidget = function RangeInputWidget(props) {
12851
12859
 
12852
12860
  connectRange(RangeInputWidget);
12853
12861
 
12854
- var cx$g = createClassNames('RatingMenu');
12862
+ var cx$9 = createClassNames('RatingMenu');
12855
12863
 
12856
12864
  var RatingMenu =
12857
12865
  /*#__PURE__*/
@@ -12904,12 +12912,12 @@ function (_Component) {
12904
12912
 
12905
12913
  icons.push([React.createElement("svg", {
12906
12914
  key: icon,
12907
- className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
12915
+ className: cx$9('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
12908
12916
  "aria-hidden": "true",
12909
12917
  width: "24",
12910
12918
  height: "24"
12911
12919
  }, React.createElement("use", {
12912
- xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
12920
+ xlinkHref: "#".concat(cx$9(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
12913
12921
  })), ' ']);
12914
12922
  } // The last item of the list (the default item), should not
12915
12923
  // be clickable if it is selected.
@@ -12925,15 +12933,15 @@ function (_Component) {
12925
12933
  };
12926
12934
  return React.createElement("li", {
12927
12935
  key: lowerBound,
12928
- className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
12936
+ className: cx$9('item', selected && 'item--selected', disabled && 'item--disabled')
12929
12937
  }, React.createElement("a", _extends({
12930
- className: cx$g('link'),
12938
+ className: cx$9('link'),
12931
12939
  "aria-label": "".concat(rating).concat(translate('ratingLabel'))
12932
12940
  }, onClickHandler), icons, React.createElement("span", {
12933
- className: cx$g('label'),
12941
+ className: cx$9('label'),
12934
12942
  "aria-hidden": "true"
12935
12943
  }, translate('ratingLabel')), ' ', React.createElement("span", {
12936
- className: cx$g('count')
12944
+ className: cx$9('count')
12937
12945
  }, count)));
12938
12946
  }
12939
12947
  }, {
@@ -12965,7 +12973,7 @@ function (_Component) {
12965
12973
  start: 0,
12966
12974
  end: Math.max(inclusiveLength, 0)
12967
12975
  }).map(function (index) {
12968
- var element = find$2(values, function (item) {
12976
+ var element = find(values, function (item) {
12969
12977
  return item.value === limitMax - index;
12970
12978
  });
12971
12979
  var placeholder = {
@@ -12989,24 +12997,24 @@ function (_Component) {
12989
12997
  });
12990
12998
  });
12991
12999
  return React.createElement("div", {
12992
- className: classnames(cx$g('', !canRefine && '-noRefinement'), className)
13000
+ className: classnames(cx$9('', !canRefine && '-noRefinement'), className)
12993
13001
  }, React.createElement("svg", {
12994
13002
  xmlns: "http://www.w3.org/2000/svg",
12995
13003
  style: {
12996
13004
  display: 'none'
12997
13005
  }
12998
13006
  }, React.createElement("symbol", {
12999
- id: cx$g('starSymbol'),
13007
+ id: cx$9('starSymbol'),
13000
13008
  viewBox: "0 0 24 24"
13001
13009
  }, React.createElement("path", {
13002
13010
  d: "M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"
13003
13011
  })), React.createElement("symbol", {
13004
- id: cx$g('starEmptySymbol'),
13012
+ id: cx$9('starEmptySymbol'),
13005
13013
  viewBox: "0 0 24 24"
13006
13014
  }, React.createElement("path", {
13007
13015
  d: "M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"
13008
13016
  }))), React.createElement("ul", {
13009
- className: cx$g('list', !canRefine && 'list--noRefinement')
13017
+ className: cx$9('list', !canRefine && 'list--noRefinement')
13010
13018
  }, items));
13011
13019
  }
13012
13020
  }]);
@@ -13094,7 +13102,7 @@ var RatingMenuWidget = function RatingMenuWidget(props) {
13094
13102
 
13095
13103
  connectRange(RatingMenuWidget);
13096
13104
 
13097
- var cx$h = createClassNames('RefinementList');
13105
+ var cx$8 = createClassNames('RefinementList');
13098
13106
 
13099
13107
  var RefinementList$1 =
13100
13108
  /*#__PURE__*/
@@ -13125,23 +13133,23 @@ function (_Component) {
13125
13133
  });
13126
13134
 
13127
13135
  _defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
13128
- var label = _this.props.isFromSearch ? React.createElement(Highlight$2, {
13136
+ var label = _this.props.isFromSearch ? React.createElement(Highlight, {
13129
13137
  attribute: "label",
13130
13138
  hit: item
13131
13139
  }) : item.label;
13132
13140
  return React.createElement("label", {
13133
- className: cx$h('label')
13141
+ className: cx$8('label')
13134
13142
  }, React.createElement("input", {
13135
- className: cx$h('checkbox'),
13143
+ className: cx$8('checkbox'),
13136
13144
  type: "checkbox",
13137
13145
  checked: item.isRefined,
13138
13146
  onChange: function onChange() {
13139
13147
  return _this.selectItem(item, resetQuery);
13140
13148
  }
13141
13149
  }), React.createElement("span", {
13142
- className: cx$h('labelText')
13150
+ className: cx$8('labelText')
13143
13151
  }, label), ' ', React.createElement("span", {
13144
- className: cx$h('count')
13152
+ className: cx$8('count')
13145
13153
  }, item.count.toLocaleString()));
13146
13154
  });
13147
13155
 
@@ -13165,7 +13173,7 @@ function (_Component) {
13165
13173
  return React.createElement(List, {
13166
13174
  renderItem: this.renderItem,
13167
13175
  selectItem: this.selectItem,
13168
- cx: cx$h,
13176
+ cx: cx$8,
13169
13177
  translate: translate,
13170
13178
  items: items,
13171
13179
  showMore: showMore,
@@ -13277,9 +13285,9 @@ var RefinementListWidget = function RefinementListWidget(props) {
13277
13285
  return React.createElement(PanelWrapper, props, React.createElement(RefinementList$2, props));
13278
13286
  };
13279
13287
 
13280
- var RefinementList$3 = connectRefinementList(RefinementListWidget);
13288
+ var RefinementList = connectRefinementList(RefinementListWidget);
13281
13289
 
13282
- var cx$i = createClassNames('ScrollTo');
13290
+ var cx$7 = createClassNames('ScrollTo');
13283
13291
 
13284
13292
  var ScrollTo =
13285
13293
  /*#__PURE__*/
@@ -13312,7 +13320,7 @@ function (_Component) {
13312
13320
  ref: function ref(_ref) {
13313
13321
  return _this.el = _ref;
13314
13322
  },
13315
- className: cx$i('')
13323
+ className: cx$7('')
13316
13324
  }, this.props.children);
13317
13325
  }
13318
13326
  }]);
@@ -13406,14 +13414,14 @@ connectScrollTo(ScrollTo);
13406
13414
  * );
13407
13415
  */
13408
13416
 
13409
- var SearchBox$2 = connectSearchBox(SearchBox$1);
13417
+ var SearchBox = connectSearchBox(SearchBox$2);
13410
13418
 
13411
- var cx$j = createClassNames('Snippet');
13419
+ var cx$6 = createClassNames('Snippet');
13412
13420
 
13413
13421
  var Snippet = function Snippet(props) {
13414
13422
  return React.createElement(Highlighter, _extends({}, props, {
13415
13423
  highlightProperty: "_snippetResult",
13416
- cx: cx$j
13424
+ cx: cx$6
13417
13425
  }));
13418
13426
  };
13419
13427
 
@@ -13463,7 +13471,7 @@ var Snippet = function Snippet(props) {
13463
13471
 
13464
13472
  connectHighlight(Snippet);
13465
13473
 
13466
- var cx$k = createClassNames('RelevantSort');
13474
+ var cx$5 = createClassNames('RelevantSort');
13467
13475
 
13468
13476
  var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
13469
13477
  var isRelevantSorted = _ref.isRelevantSorted;
@@ -13480,13 +13488,13 @@ var RelevantSort = function RelevantSort(_ref2) {
13480
13488
  TextComponent = _ref2.textComponent,
13481
13489
  refine = _ref2.refine;
13482
13490
  return !isVirtualReplica ? null : React.createElement("div", {
13483
- className: classnames(cx$k(''), className)
13491
+ className: classnames(cx$5(''), className)
13484
13492
  }, React.createElement("div", {
13485
- className: cx$k('text')
13493
+ className: cx$5('text')
13486
13494
  }, TextComponent && React.createElement(TextComponent, {
13487
13495
  isRelevantSorted: isRelevantSorted
13488
13496
  })), React.createElement("button", {
13489
- className: cx$k('button'),
13497
+ className: cx$5('button'),
13490
13498
  onClick: function onClick() {
13491
13499
  return refine(isRelevantSorted ? 0 : undefined);
13492
13500
  }
@@ -13506,7 +13514,7 @@ RelevantSort.propTypes = {
13506
13514
 
13507
13515
  connectRelevantSort(RelevantSort);
13508
13516
 
13509
- var cx$l = createClassNames('SortBy');
13517
+ var cx$4 = createClassNames('SortBy');
13510
13518
 
13511
13519
  var SortBy =
13512
13520
  /*#__PURE__*/
@@ -13528,9 +13536,9 @@ function (_Component) {
13528
13536
  refine = _this$props.refine,
13529
13537
  className = _this$props.className;
13530
13538
  return React.createElement("div", {
13531
- className: classnames(cx$l(''), className)
13539
+ className: classnames(cx$4(''), className)
13532
13540
  }, React.createElement(Select, {
13533
- cx: cx$l,
13541
+ cx: cx$4,
13534
13542
  items: items,
13535
13543
  selectedItem: currentRefinement,
13536
13544
  onSelect: refine
@@ -13596,7 +13604,7 @@ _defineProperty(SortBy, "defaultProps", {
13596
13604
 
13597
13605
  connectSortBy(SortBy);
13598
13606
 
13599
- var cx$m = createClassNames('Stats');
13607
+ var cx$3 = createClassNames('Stats');
13600
13608
 
13601
13609
  var Stats = function Stats(_ref) {
13602
13610
  var _ref$className = _ref.className,
@@ -13607,9 +13615,9 @@ var Stats = function Stats(_ref) {
13607
13615
  processingTimeMS = _ref.processingTimeMS,
13608
13616
  translate = _ref.translate;
13609
13617
  return React.createElement("div", {
13610
- className: classnames(cx$m(''), className)
13618
+ className: classnames(cx$3(''), className)
13611
13619
  }, React.createElement("span", {
13612
- className: cx$m('text')
13620
+ className: cx$3('text')
13613
13621
  }, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
13614
13622
  };
13615
13623
 
@@ -13657,7 +13665,7 @@ var Stats$1 = translatable({
13657
13665
 
13658
13666
  connectStats(Stats$1);
13659
13667
 
13660
- var cx$n = createClassNames('ToggleRefinement');
13668
+ var cx$2 = createClassNames('ToggleRefinement');
13661
13669
 
13662
13670
  var ToggleRefinement = function ToggleRefinement(_ref) {
13663
13671
  var currentRefinement = _ref.currentRefinement,
@@ -13666,18 +13674,18 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
13666
13674
  refine = _ref.refine,
13667
13675
  className = _ref.className;
13668
13676
  return React.createElement("div", {
13669
- className: classnames(cx$n('', !canRefine && '-noRefinement'), className)
13677
+ className: classnames(cx$2('', !canRefine && '-noRefinement'), className)
13670
13678
  }, React.createElement("label", {
13671
- className: cx$n('label')
13679
+ className: cx$2('label')
13672
13680
  }, React.createElement("input", {
13673
- className: cx$n('checkbox'),
13681
+ className: cx$2('checkbox'),
13674
13682
  type: "checkbox",
13675
13683
  checked: currentRefinement,
13676
13684
  onChange: function onChange(event) {
13677
13685
  return refine(event.target.checked);
13678
13686
  }
13679
13687
  }), React.createElement("span", {
13680
- className: cx$n('labelText')
13688
+ className: cx$2('labelText')
13681
13689
  }, label)));
13682
13690
  };
13683
13691
 
@@ -13886,7 +13894,7 @@ function createVoiceSearchHelper(_ref) {
13886
13894
  };
13887
13895
  }
13888
13896
 
13889
- var cx$o = createClassNames('VoiceSearch');
13897
+ var cx$1 = createClassNames('VoiceSearch');
13890
13898
 
13891
13899
  var ButtonSvg = function ButtonSvg(_ref) {
13892
13900
  var children = _ref.children;
@@ -14032,15 +14040,15 @@ function (_Component) {
14032
14040
  isBrowserSupported: isBrowserSupported()
14033
14041
  };
14034
14042
  return React.createElement("div", {
14035
- className: cx$o('')
14043
+ className: cx$1('')
14036
14044
  }, React.createElement("button", {
14037
- className: cx$o('button'),
14045
+ className: cx$1('button'),
14038
14046
  type: "button",
14039
14047
  title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
14040
14048
  onClick: this.onClick,
14041
14049
  disabled: !isBrowserSupported()
14042
14050
  }, React.createElement(ButtonTextComponent, innerProps)), React.createElement("div", {
14043
- className: cx$o('status')
14051
+ className: cx$1('status')
14044
14052
  }, React.createElement(StatusComponent, innerProps)));
14045
14053
  }
14046
14054
  }, {
@@ -14068,14 +14076,14 @@ var VoiceSearch$1 = translatable({
14068
14076
 
14069
14077
  connectVoiceSearch(VoiceSearch$1);
14070
14078
 
14071
- var cx$p = createClassNames('QueryRuleCustomData');
14079
+ var cx = createClassNames('QueryRuleCustomData');
14072
14080
 
14073
14081
  var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
14074
14082
  var items = _ref.items,
14075
14083
  className = _ref.className,
14076
14084
  children = _ref.children;
14077
14085
  return React.createElement("div", {
14078
- className: classnames(cx$p(''), className)
14086
+ className: classnames(cx(''), className)
14079
14087
  }, children({
14080
14088
  items: items
14081
14089
  }));
@@ -14128,7 +14136,7 @@ var AlgoliaSearch = function (_React$Component) {
14128
14136
  LazyLoad,
14129
14137
  null,
14130
14138
  React.createElement('img', {
14131
- src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$1(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
14139
+ src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2(hit.thumbnail === 'string') ? hit.thumbnail : this.props.defaultImage
14132
14140
  })
14133
14141
  )
14134
14142
  )
@@ -14186,7 +14194,7 @@ var AlgoliaSearch = function (_React$Component) {
14186
14194
  onSearchParameters: this.props.onSearchParameters
14187
14195
  }, this.props),
14188
14196
  React.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
14189
- React.createElement(SearchBox$2, null),
14197
+ React.createElement(SearchBox, null),
14190
14198
  this.props.refinementAttributes && React.createElement(
14191
14199
  'div',
14192
14200
  { className: 'search_refinement' },
@@ -14194,18 +14202,18 @@ var AlgoliaSearch = function (_React$Component) {
14194
14202
  return React.createElement(
14195
14203
  DropdownButton,
14196
14204
  { title: item.title },
14197
- React.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
14205
+ React.createElement(RefinementList, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
14198
14206
  );
14199
14207
  })
14200
14208
  ),
14201
14209
  React.createElement(
14202
14210
  'div',
14203
14211
  { className: 'AlgoliaResults' },
14204
- React.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
14212
+ React.createElement(Hits, { hitComponent: function hitComponent(hit) {
14205
14213
  return _this2.Deck(_extends$1({}, hit, { propsObj: propsObj }));
14206
14214
  } })
14207
14215
  ),
14208
- React.createElement(Pagination$2, null)
14216
+ React.createElement(Pagination, null)
14209
14217
  ),
14210
14218
  React.createElement(
14211
14219
  'style',