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

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