@mjhls/mjh-framework 1.0.883-mwn-test-v3 → 1.0.883

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 (302) hide show
  1. package/dist/cjs/AD.js +9 -10
  2. package/dist/cjs/AD300x250.js +27 -28
  3. package/dist/cjs/AD300x250x600.js +27 -28
  4. package/dist/cjs/AD728x90.js +30 -31
  5. package/dist/cjs/ADFloatingFooter.js +30 -31
  6. package/dist/cjs/ADFooter.js +12 -13
  7. package/dist/cjs/ADGutter.js +30 -31
  8. package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-4f661172.js} +13 -15
  9. package/dist/cjs/ADSkyscraper.js +30 -31
  10. package/dist/cjs/ADSponsoredResources.js +30 -31
  11. package/dist/cjs/ADWebcast.js +30 -31
  12. package/dist/cjs/ADWelcome.js +31 -32
  13. package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-6242e5b5.js} +10 -11
  14. package/dist/cjs/AccordionPanel.js +27 -29
  15. package/dist/cjs/AdSlot.js +31 -32
  16. package/dist/cjs/AdSlotsProvider.js +15 -17
  17. package/dist/cjs/AlgoliaSearch.js +1103 -1160
  18. package/dist/cjs/AlphabeticList.js +23 -24
  19. package/dist/cjs/ArticleCarousel.js +19 -20
  20. package/dist/cjs/ArticleProgramLandingPage.js +60 -61
  21. package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
  22. package/dist/cjs/ArticleSeriesListing.js +59 -60
  23. package/dist/cjs/Auth.js +283 -287
  24. package/dist/cjs/AuthWrapper.js +148 -59
  25. package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-421d5ec1.js} +13 -14
  26. package/dist/cjs/Beam.js +6 -6
  27. package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-bac780ac.js} +55 -56
  28. package/dist/cjs/Breadcrumbs.js +25 -27
  29. package/dist/cjs/CMEDeck.js +81 -81
  30. package/dist/cjs/Column1.js +11 -14
  31. package/dist/cjs/Column2.js +31 -34
  32. package/dist/cjs/Column3.js +56 -59
  33. package/dist/cjs/ConferenceArticleCard.js +25 -26
  34. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  35. package/dist/cjs/DeckContent.js +92 -96
  36. package/dist/cjs/DeckQueue.js +86 -90
  37. package/dist/cjs/{Dfp-9be904d5.js → Dfp-ab12cd55.js} +34 -35
  38. package/dist/cjs/EventsDeck.js +133 -140
  39. package/dist/cjs/ExternalResources.js +78 -79
  40. package/dist/cjs/Feature.js +26 -28
  41. package/dist/cjs/ForbesHero.js +40 -41
  42. package/dist/cjs/GridContent.js +231 -236
  43. package/dist/cjs/GridHero.js +42 -43
  44. package/dist/cjs/GroupDeck.js +57 -58
  45. package/dist/cjs/HamMagazine.js +127 -132
  46. package/dist/cjs/Header.js +12 -14
  47. package/dist/cjs/Hero.js +15 -16
  48. package/dist/cjs/HighlightenVideo.js +17 -18
  49. package/dist/cjs/HorizontalArticleListing.js +71 -72
  50. package/dist/cjs/HorizontalHero.js +28 -29
  51. package/dist/cjs/IssueContentDeck.js +71 -76
  52. package/dist/cjs/IssueDeck.js +70 -75
  53. package/dist/cjs/IssueLanding.js +64 -65
  54. package/dist/cjs/LeftNav.js +37 -39
  55. package/dist/cjs/MasterDeck.js +70 -71
  56. package/dist/cjs/MediaSeriesLanding.js +985 -988
  57. package/dist/cjs/NavDvm.js +72 -77
  58. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  59. package/dist/cjs/NavMagazine.js +134 -139
  60. package/dist/cjs/NavNative.js +126 -134
  61. package/dist/cjs/OncliveHero.js +21 -22
  62. package/dist/cjs/OncliveLargeHero.js +70 -71
  63. package/dist/cjs/PageFilter.js +12 -13
  64. package/dist/cjs/PartnerDetailListing.js +373 -272
  65. package/dist/cjs/PdfDownload.js +9 -10
  66. package/dist/cjs/PopUpModal.js +17 -19
  67. package/dist/cjs/PubSection.js +40 -41
  68. package/dist/cjs/PubToc.js +13 -14
  69. package/dist/cjs/PublicationDeck.js +65 -70
  70. package/dist/cjs/PublicationLanding.js +106 -114
  71. package/dist/cjs/QueueDeckExpanded.js +308 -308
  72. package/dist/cjs/RecentNews.js +22 -23
  73. package/dist/cjs/RelatedContent.js +29 -30
  74. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  75. package/dist/cjs/RolesDeck.js +27 -32
  76. package/dist/cjs/Search.js +16 -20
  77. package/dist/cjs/Segment.js +4 -4
  78. package/dist/cjs/SeriesListingDeck.js +36 -36
  79. package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-372e418f.js} +30 -31
  80. package/dist/cjs/SetCookie.js +1 -1
  81. package/dist/cjs/SideFooter.js +34 -35
  82. package/dist/cjs/SocialIcons.js +9 -10
  83. package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-80a2130a.js} +32 -36
  84. package/dist/cjs/SocialShare.js +29 -31
  85. package/dist/cjs/TaxonomyCard.js +61 -66
  86. package/dist/cjs/TaxonomyDescription.js +53 -54
  87. package/dist/cjs/TemplateNormal.js +72 -73
  88. package/dist/cjs/ThumbnailCard.js +24 -26
  89. package/dist/cjs/Ustream.js +78 -70
  90. package/dist/cjs/VerticalHero.js +19 -20
  91. package/dist/cjs/VideoProgramLandingPage.js +74 -78
  92. package/dist/cjs/VideoSeriesCard.js +32 -33
  93. package/dist/cjs/VideoSeriesFilter.js +16 -16
  94. package/dist/cjs/VideoSeriesLandingPage.js +50 -51
  95. package/dist/cjs/VideoSeriesListing.js +76 -77
  96. package/dist/cjs/View.js +249 -252
  97. package/dist/cjs/YahooHero.js +39 -40
  98. package/dist/cjs/YoutubeGroup.js +58 -59
  99. package/dist/cjs/{_is-array-54228b29.js → _is-array-bd978497.js} +6 -6
  100. package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-ee3d4802.js} +7 -7
  101. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  102. package/dist/cjs/{_object-sap-d1978572.js → _object-sap-fee50a62.js} +1 -1
  103. package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-18379aba.js} +2 -2
  104. package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-15014394.js} +30 -30
  105. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-05029198.js} +6 -7
  106. package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-5cb3af28.js} +33 -33
  107. package/dist/cjs/{debounce-d4a2369b.js → debounce-6191c8ee.js} +2 -2
  108. package/dist/cjs/{define-property-e8404b64.js → define-property-530a5e9e.js} +6 -6
  109. package/dist/cjs/{defineProperty-9673846a.js → defineProperty-5ca424cd.js} +1 -1
  110. package/dist/cjs/{entities-df1aed86.js → entities-fb0c6568.js} +1 -1
  111. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  112. package/dist/cjs/{extends-7c86182f.js → extends-1d905ddb.js} +7 -7
  113. package/dist/cjs/faundadb.js +19 -19
  114. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  115. package/dist/cjs/getRelatedArticle.js +16 -16
  116. package/dist/cjs/getRootDocGroup.js +6 -6
  117. package/dist/cjs/getSerializers.js +43 -43
  118. package/dist/cjs/{getTargeting-9d509319.js → getTargeting-41f2f52d.js} +3 -3
  119. package/dist/cjs/getTargeting.js +6 -6
  120. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  121. package/dist/cjs/{index-af49d679.js → index-27377172.js} +574 -584
  122. package/dist/cjs/{index-50be6759.js → index-53e27416.js} +1 -1
  123. package/dist/cjs/{index-f86bb269.js → index-79eed652.js} +6 -6
  124. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  125. package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
  126. package/dist/cjs/{index-d48b231c.js → index-ff69979f.js} +3 -3
  127. package/dist/cjs/{index.es-f3e47207.js → index.es-e9d84959.js} +7 -8
  128. package/dist/cjs/{index.esm-88593816.js → index.esm-05850a2f.js} +4 -4
  129. package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
  130. package/dist/cjs/{index.esm-d81454e7.js → index.esm-974f47d9.js} +4 -1
  131. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-bf016399.js} +18 -19
  132. package/dist/cjs/index.js +164 -169
  133. package/dist/cjs/{inherits-de66ea16.js → inherits-337c73a7.js} +22 -22
  134. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  135. package/dist/cjs/{keys-e982b3fa.js → keys-91f31941.js} +6 -6
  136. package/dist/cjs/{lodash-f0783643.js → lodash-b5e0d5f6.js} +1 -1
  137. package/dist/cjs/{main-f1c77adb.js → main-bc7d4bf8.js} +69 -70
  138. package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
  139. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  140. package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-0a78cdf3.js} +12 -12
  141. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  142. package/dist/cjs/{stringify-f7a37a8d.js → stringify-13405ce2.js} +5 -5
  143. package/dist/cjs/timeDifferenceCalc.js +1 -1
  144. package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-39fd0757.js} +7 -7
  145. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-f2f8744b.js} +1 -1
  146. package/dist/cjs/{typeof-567e31ff.js → typeof-3dd6d3df.js} +35 -35
  147. package/dist/cjs/urlFor.js +6 -6
  148. package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-5619c1fa.js} +4 -4
  149. package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
  150. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  151. package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-a9359910.js} +2 -2
  152. package/dist/esm/AD.js +1 -1
  153. package/dist/esm/AD300x250.js +21 -21
  154. package/dist/esm/AD300x250x600.js +21 -21
  155. package/dist/esm/AD728x90.js +23 -23
  156. package/dist/esm/ADFloatingFooter.js +21 -21
  157. package/dist/esm/ADFooter.js +4 -4
  158. package/dist/esm/ADGutter.js +21 -21
  159. package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-7db96917.js} +6 -6
  160. package/dist/esm/ADSkyscraper.js +21 -21
  161. package/dist/esm/ADSponsoredResources.js +21 -21
  162. package/dist/esm/ADWebcast.js +21 -21
  163. package/dist/esm/ADWelcome.js +18 -18
  164. package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-a3931e68.js} +4 -4
  165. package/dist/esm/AccordionPanel.js +6 -6
  166. package/dist/esm/AdSlot.js +20 -20
  167. package/dist/esm/AdSlotsProvider.js +9 -9
  168. package/dist/esm/AlgoliaSearch.js +552 -608
  169. package/dist/esm/AlphabeticList.js +8 -8
  170. package/dist/esm/ArticleCarousel.js +13 -13
  171. package/dist/esm/ArticleProgramLandingPage.js +48 -48
  172. package/dist/esm/ArticleSeriesLandingPage.js +29 -29
  173. package/dist/esm/ArticleSeriesListing.js +32 -32
  174. package/dist/esm/Auth.js +199 -199
  175. package/dist/esm/AuthWrapper.js +118 -28
  176. package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-2277b67c.js} +1 -1
  177. package/dist/esm/Beam.js +6 -6
  178. package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-ea93e8f7.js} +34 -34
  179. package/dist/esm/Breadcrumbs.js +5 -5
  180. package/dist/esm/CMEDeck.js +21 -21
  181. package/dist/esm/Column1.js +4 -4
  182. package/dist/esm/Column2.js +19 -19
  183. package/dist/esm/Column3.js +35 -35
  184. package/dist/esm/ConferenceArticleCard.js +10 -10
  185. package/dist/esm/DeckContent.js +46 -46
  186. package/dist/esm/DeckQueue.js +46 -46
  187. package/dist/esm/{Dfp-102f0beb.js → Dfp-d6a5629f.js} +13 -13
  188. package/dist/esm/EventsDeck.js +47 -47
  189. package/dist/esm/ExternalResources.js +46 -46
  190. package/dist/esm/Feature.js +6 -6
  191. package/dist/esm/ForbesHero.js +10 -10
  192. package/dist/esm/GridContent.js +85 -85
  193. package/dist/esm/GridHero.js +11 -11
  194. package/dist/esm/GroupDeck.js +12 -12
  195. package/dist/esm/HamMagazine.js +24 -24
  196. package/dist/esm/Hero.js +7 -7
  197. package/dist/esm/HighlightenVideo.js +2 -2
  198. package/dist/esm/HorizontalArticleListing.js +46 -46
  199. package/dist/esm/HorizontalHero.js +8 -8
  200. package/dist/esm/IssueContentDeck.js +25 -25
  201. package/dist/esm/IssueDeck.js +34 -34
  202. package/dist/esm/IssueLanding.js +53 -53
  203. package/dist/esm/LeftNav.js +20 -20
  204. package/dist/esm/MasterDeck.js +34 -34
  205. package/dist/esm/MediaSeriesLanding.js +325 -325
  206. package/dist/esm/NavDvm.js +14 -14
  207. package/dist/esm/NavMagazine.js +30 -30
  208. package/dist/esm/NavNative.js +30 -30
  209. package/dist/esm/OncliveHero.js +7 -7
  210. package/dist/esm/OncliveLargeHero.js +11 -11
  211. package/dist/esm/PageFilter.js +4 -4
  212. package/dist/esm/PartnerDetailListing.js +188 -86
  213. package/dist/esm/PdfDownload.js +2 -2
  214. package/dist/esm/PopUpModal.js +4 -4
  215. package/dist/esm/PubSection.js +32 -32
  216. package/dist/esm/PubToc.js +6 -6
  217. package/dist/esm/PublicationDeck.js +27 -27
  218. package/dist/esm/PublicationLanding.js +47 -51
  219. package/dist/esm/QueueDeckExpanded.js +34 -34
  220. package/dist/esm/RecentNews.js +4 -4
  221. package/dist/esm/RelatedContent.js +10 -10
  222. package/dist/esm/RolesDeck.js +12 -12
  223. package/dist/esm/Search.js +6 -6
  224. package/dist/esm/Segment.js +4 -4
  225. package/dist/esm/SeriesListingDeck.js +18 -18
  226. package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-88c4133d.js} +5 -5
  227. package/dist/esm/SetCookie.js +1 -1
  228. package/dist/esm/SideFooter.js +13 -13
  229. package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-7f3d6531.js} +8 -8
  230. package/dist/esm/TaxonomyCard.js +27 -27
  231. package/dist/esm/TaxonomyDescription.js +44 -44
  232. package/dist/esm/TemplateNormal.js +48 -48
  233. package/dist/esm/ThumbnailCard.js +10 -10
  234. package/dist/esm/Ustream.js +71 -62
  235. package/dist/esm/VerticalHero.js +6 -6
  236. package/dist/esm/VideoProgramLandingPage.js +52 -52
  237. package/dist/esm/VideoSeriesCard.js +13 -13
  238. package/dist/esm/VideoSeriesFilter.js +7 -7
  239. package/dist/esm/VideoSeriesLandingPage.js +35 -35
  240. package/dist/esm/VideoSeriesListing.js +33 -33
  241. package/dist/esm/View.js +83 -82
  242. package/dist/esm/YahooHero.js +13 -13
  243. package/dist/esm/YoutubeGroup.js +12 -12
  244. package/dist/esm/{_is-array-8d21b9e3.js → _is-array-8914b83f.js} +6 -6
  245. package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-13e31915.js} +7 -7
  246. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  247. package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-fc9da7e8.js} +1 -1
  248. package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-ee8f6d98.js} +2 -2
  249. package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-40371743.js} +30 -30
  250. package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-0fb60d94.js} +34 -34
  251. package/dist/esm/{debounce-533d9748.js → debounce-89969f66.js} +2 -2
  252. package/dist/esm/define-property-73034847.js +18 -0
  253. package/dist/esm/{defineProperty-8c30428f.js → defineProperty-e66a2c7c.js} +1 -1
  254. package/dist/esm/{entities-6d9154b4.js → entities-731f3fdb.js} +1 -1
  255. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  256. package/dist/esm/{extends-6d8e3924.js → extends-9a61581c.js} +7 -7
  257. package/dist/esm/faundadb.js +5 -5
  258. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  259. package/dist/esm/getRelatedArticle.js +11 -11
  260. package/dist/esm/getRootDocGroup.js +4 -4
  261. package/dist/esm/getSerializers.js +43 -43
  262. package/dist/esm/{getTargeting-4061f839.js → getTargeting-e6820763.js} +2 -2
  263. package/dist/esm/getTargeting.js +6 -6
  264. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  265. package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
  266. package/dist/esm/{index-79cfd25c.js → index-511bdaa5.js} +6 -6
  267. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  268. package/dist/esm/{index-98ca9cec.js → index-637e8f49.js} +1 -1
  269. package/dist/esm/{index-d7489d39.js → index-afb3bbc2.js} +134 -134
  270. package/dist/esm/{index-3f5c03b2.js → index-f7fdcc91.js} +3 -3
  271. package/dist/esm/{index.esm-eb1e8e80.js → index.esm-3fdda599.js} +4 -2
  272. package/dist/esm/{index.esm-28aafed6.js → index.esm-a8ff922c.js} +4 -4
  273. package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
  274. package/dist/esm/{index.esm-37268dca.js → index.esm-ed50151c.js} +2 -2
  275. package/dist/esm/index.js +122 -124
  276. package/dist/esm/{inherits-a6ba2ec4.js → inherits-eeaf6740.js} +18 -18
  277. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  278. package/dist/esm/{keys-31dcdb31.js → keys-a5ffafe7.js} +6 -6
  279. package/dist/esm/{lodash-f97fd99a.js → lodash-a818d390.js} +1 -1
  280. package/dist/esm/{main-1894c974.js → main-ede573ee.js} +53 -53
  281. package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
  282. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  283. package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-9c3bb613.js} +12 -12
  284. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  285. package/dist/esm/stringify-ebc16384.js +15 -0
  286. package/dist/esm/timeDifferenceCalc.js +1 -1
  287. package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-e333293f.js} +7 -7
  288. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-e3dcad26.js} +1 -1
  289. package/dist/esm/{typeof-e9fc0c5d.js → typeof-938ae770.js} +35 -35
  290. package/dist/esm/urlFor.js +4 -4
  291. package/dist/esm/{ustream-api-d3714624.js → ustream-api-d325d196.js} +4 -4
  292. package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
  293. package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-6b037ff9.js} +2 -2
  294. package/package.json +1 -1
  295. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  296. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  297. package/dist/cjs/typeof-1358762e.js +0 -33
  298. package/dist/esm/define-property-5f1bda73.js +0 -18
  299. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  300. package/dist/esm/stringify-2b084bee.js +0 -15
  301. package/dist/esm/typeof-2f07d0e8.js +0 -30
  302. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-e761d404.js} +1 -1
@@ -1,26 +1,25 @@
1
- import { _ as _extends$1 } from './extends-6d8e3924.js';
2
- import { _ as _typeof$2 } from './typeof-e9fc0c5d.js';
3
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a6ba2ec4.js';
1
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
+ import './core.get-iterator-method-0fb60d94.js';
3
+ import './_library-528f1934.js';
4
+ import './_object-pie-33c40e79.js';
5
+ import { _ as _extends$1 } from './extends-9a61581c.js';
6
+ import './_object-sap-fc9da7e8.js';
7
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-eeaf6740.js';
8
+ import './define-property-73034847.js';
9
+ import './web.dom.iterable-6b037ff9.js';
10
+ import { _ as _typeof$2 } from './typeof-938ae770.js';
11
+ import './_is-array-8914b83f.js';
4
12
  import React__default, { createContext, Component, Children, version as version$2 } from 'react';
5
- import PropTypes from 'prop-types';
6
- import { _ as _typeof$1 } from './typeof-2f07d0e8.js';
7
- import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
8
13
  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-755f2cc2.js';
13
- import './_commonjsHelpers-0c4b6f40.js';
14
- import './core.get-iterator-method-ea258bb1.js';
15
- import './_object-pie-133f504a.js';
16
- import './web.dom.iterable-ab4dea5c.js';
17
- import './_is-array-8d21b9e3.js';
18
- import './_library-528f1934.js';
19
- import './_object-sap-7cee6f84.js';
20
- import './define-property-5f1bda73.js';
21
- import './slicedToArray-6ebcbfea.js';
22
- import './index-3f5c03b2.js';
14
+ import PropTypes from 'prop-types';
15
+ import { m as moment } from './moment-b6f49411.js';
23
16
  import 'react-dom';
17
+ import './slicedToArray-9c3bb613.js';
18
+ import './index-f7fdcc91.js';
19
+ import urlFor from './urlFor.js';
20
+ import { L as LazyLoad } from './index-5f7e79e7.js';
21
+ import { DropdownButton } from 'react-bootstrap';
22
+ import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-637e8f49.js';
24
23
 
25
24
  function _objectWithoutProperties(source, excluded) {
26
25
  if (source == null) return {};
@@ -97,6 +96,33 @@ function _createClass(Constructor, protoProps, staticProps) {
97
96
  return Constructor;
98
97
  }
99
98
 
99
+ var _typeof_1 = createCommonjsModule(function (module) {
100
+ function _typeof(obj) {
101
+ "@babel/helpers - typeof";
102
+
103
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
104
+ module.exports = _typeof = function _typeof(obj) {
105
+ return typeof obj;
106
+ };
107
+
108
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
109
+ } else {
110
+ module.exports = _typeof = function _typeof(obj) {
111
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
112
+ };
113
+
114
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
115
+ }
116
+
117
+ return _typeof(obj);
118
+ }
119
+
120
+ module.exports = _typeof;
121
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
122
+ });
123
+
124
+ var _typeof = unwrapExports(_typeof_1);
125
+
100
126
  function _assertThisInitialized(self) {
101
127
  if (self === void 0) {
102
128
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -106,7 +132,7 @@ function _assertThisInitialized(self) {
106
132
  }
107
133
 
108
134
  function _possibleConstructorReturn(self, call) {
109
- if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
135
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
110
136
  return call;
111
137
  }
112
138
 
@@ -270,20 +296,20 @@ var reactFastCompare = function isEqual(a, b) {
270
296
  }
271
297
  };
272
298
 
273
- function _typeof(obj) {
299
+ function _typeof$1(obj) {
274
300
  "@babel/helpers - typeof";
275
301
 
276
302
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
277
- _typeof = function _typeof(obj) {
303
+ _typeof$1 = function _typeof(obj) {
278
304
  return typeof obj;
279
305
  };
280
306
  } else {
281
- _typeof = function _typeof(obj) {
307
+ _typeof$1 = function _typeof(obj) {
282
308
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
283
309
  };
284
310
  }
285
311
 
286
- return _typeof(obj);
312
+ return _typeof$1(obj);
287
313
  }
288
314
 
289
315
  // From https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
@@ -319,7 +345,7 @@ var defer = function defer(f) {
319
345
  };
320
346
 
321
347
  var isPlainObject = function isPlainObject(value) {
322
- return _typeof(value) === 'object' && value !== null && !Array.isArray(value);
348
+ return _typeof$1(value) === 'object' && value !== null && !Array.isArray(value);
323
349
  };
324
350
 
325
351
  var removeEmptyKey = function removeEmptyKey(obj) {
@@ -330,7 +356,7 @@ var removeEmptyKey = function removeEmptyKey(obj) {
330
356
  return;
331
357
  }
332
358
 
333
- if (!objectHasKeys$1(value)) {
359
+ if (!objectHasKeys(value)) {
334
360
  delete obj[key];
335
361
  } else {
336
362
  removeEmptyKey(value);
@@ -366,7 +392,7 @@ function addQueryID(hits, queryID) {
366
392
  });
367
393
  });
368
394
  }
369
- function find$2(array, comparator) {
395
+ function find(array, comparator) {
370
396
  if (!Array.isArray(array)) {
371
397
  return undefined;
372
398
  }
@@ -379,11 +405,11 @@ function find$2(array, comparator) {
379
405
 
380
406
  return undefined;
381
407
  }
382
- function objectHasKeys$1(object) {
408
+ function objectHasKeys(object) {
383
409
  return object && Object.keys(object).length > 0;
384
410
  } // https://github.com/babel/babel/blob/3aaafae053fa75febb3aa45d45b6f00646e30ba4/packages/babel-helpers/src/helpers.js#L604-L620
385
411
 
386
- function omit$1(source, excluded) {
412
+ function omit(source, excluded) {
387
413
  if (source === null || source === undefined) {
388
414
  return {};
389
415
  }
@@ -454,9 +480,9 @@ var instantSearchContext = createContext({
454
480
  var InstantSearchConsumer = instantSearchContext.Consumer,
455
481
  InstantSearchProvider = instantSearchContext.Provider;
456
482
 
457
- var _createContext$1 = createContext(undefined),
458
- IndexConsumer = _createContext$1.Consumer,
459
- IndexProvider = _createContext$1.Provider;
483
+ var _createContext = createContext(undefined),
484
+ IndexConsumer = _createContext.Consumer,
485
+ IndexProvider = _createContext.Provider;
460
486
 
461
487
  /**
462
488
  * Connectors are the HOC used to transform React components
@@ -669,9 +695,9 @@ function createConnectorWithoutContext(connectorDesc) {
669
695
  }, {
670
696
  key: "render",
671
697
  value: function render() {
672
- var _this$props = this.props;
673
- _this$props.contextValue;
674
- var props = _objectWithoutProperties(_this$props, ["contextValue"]);
698
+ var _this$props = this.props,
699
+ contextValue = _this$props.contextValue,
700
+ props = _objectWithoutProperties(_this$props, ["contextValue"]);
675
701
 
676
702
  var providedProps = this.state.providedProps;
677
703
 
@@ -822,7 +848,7 @@ function parseAlgoliaHit(_ref2) {
822
848
  });
823
849
  }
824
850
 
825
- var version$1 = '6.11.2';
851
+ var version = '6.10.3';
826
852
 
827
853
  var withKeysPropType = function withKeysPropType(keys) {
828
854
  return function (props, propName, componentName) {
@@ -1019,7 +1045,7 @@ function hasRefinements(_ref) {
1019
1045
  return Object.hasOwnProperty.call(searchState, id);
1020
1046
  }
1021
1047
 
1022
- function getRefinements$1(_ref2) {
1048
+ function getRefinements(_ref2) {
1023
1049
  var multiIndex = _ref2.multiIndex,
1024
1050
  indexId = _ref2.indexId,
1025
1051
  namespace = _ref2.namespace,
@@ -1061,7 +1087,7 @@ function getCurrentRefinementValue(props, searchState, context, id, defaultValue
1061
1087
  var hasRefinementsValue = hasRefinements(args);
1062
1088
 
1063
1089
  if (hasRefinementsValue) {
1064
- return getRefinements$1(args);
1090
+ return getRefinements(args);
1065
1091
  }
1066
1092
 
1067
1093
  if (props.defaultRefinement) {
@@ -1102,10 +1128,10 @@ function cleanUpValueWithSingleIndex(_ref3) {
1102
1128
  attribute = _ref3.attribute;
1103
1129
 
1104
1130
  if (namespace) {
1105
- return _objectSpread({}, searchState, _defineProperty({}, namespace, omit$1(searchState[namespace], [attribute])));
1131
+ return _objectSpread({}, searchState, _defineProperty({}, namespace, omit(searchState[namespace], [attribute])));
1106
1132
  }
1107
1133
 
1108
- return omit$1(searchState, [id]);
1134
+ return omit(searchState, [id]);
1109
1135
  }
1110
1136
 
1111
1137
  function cleanUpValueWithMultiIndex(_ref4) {
@@ -1118,20 +1144,20 @@ function cleanUpValueWithMultiIndex(_ref4) {
1118
1144
 
1119
1145
  if (namespace && indexSearchState) {
1120
1146
  return _objectSpread({}, searchState, {
1121
- indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit$1(indexSearchState[namespace], [attribute])))))
1147
+ indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, _objectSpread({}, indexSearchState, _defineProperty({}, namespace, omit(indexSearchState[namespace], [attribute])))))
1122
1148
  });
1123
1149
  }
1124
1150
 
1125
1151
  if (indexSearchState) {
1126
1152
  return _objectSpread({}, searchState, {
1127
- indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit$1(indexSearchState, [id])))
1153
+ indices: _objectSpread({}, searchState.indices, _defineProperty({}, indexId, omit(indexSearchState, [id])))
1128
1154
  });
1129
1155
  }
1130
1156
 
1131
1157
  return searchState;
1132
1158
  }
1133
1159
 
1134
- function getId$f() {
1160
+ function getId() {
1135
1161
  return 'configure';
1136
1162
  }
1137
1163
 
@@ -1141,20 +1167,20 @@ var connectConfigure = createConnectorWithContext({
1141
1167
  return {};
1142
1168
  },
1143
1169
  getSearchParameters: function getSearchParameters(searchParameters, props) {
1144
- props.children;
1145
- props.contextValue;
1146
- props.indexContextValue;
1147
- var items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1170
+ var children = props.children,
1171
+ contextValue = props.contextValue,
1172
+ indexContextValue = props.indexContextValue,
1173
+ items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1148
1174
 
1149
1175
  return searchParameters.setQueryParameters(items);
1150
1176
  },
1151
1177
  transitionState: function transitionState(props, prevSearchState, nextSearchState) {
1152
- var id = getId$f();
1178
+ var id = getId();
1153
1179
 
1154
- props.children;
1155
- props.contextValue;
1156
- props.indexContextValue;
1157
- var items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1180
+ var children = props.children,
1181
+ contextValue = props.contextValue,
1182
+ indexContextValue = props.indexContextValue,
1183
+ items = _objectWithoutProperties(props, ["children", "contextValue", "indexContextValue"]);
1158
1184
 
1159
1185
  var propKeys = Object.keys(props);
1160
1186
  var nonPresentKeys = this._props ? Object.keys(this._props).filter(function (prop) {
@@ -1162,7 +1188,7 @@ var connectConfigure = createConnectorWithContext({
1162
1188
  }) : [];
1163
1189
  this._props = props;
1164
1190
 
1165
- var nextValue = _defineProperty({}, id, _objectSpread({}, omit$1(nextSearchState[id], nonPresentKeys), items));
1191
+ var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), items));
1166
1192
 
1167
1193
  return refineValue(nextSearchState, nextValue, {
1168
1194
  ais: props.contextValue,
@@ -1170,7 +1196,7 @@ var connectConfigure = createConnectorWithContext({
1170
1196
  });
1171
1197
  },
1172
1198
  cleanUp: function cleanUp(props, searchState) {
1173
- var id = getId$f();
1199
+ var id = getId();
1174
1200
  var indexId = getIndexId({
1175
1201
  ais: props.contextValue,
1176
1202
  multiIndexContext: props.indexContextValue
@@ -1251,7 +1277,7 @@ function _arrayWithoutHoles(arr) {
1251
1277
  }
1252
1278
 
1253
1279
  function _iterableToArray(iter) {
1254
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1280
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1255
1281
  }
1256
1282
 
1257
1283
  function _unsupportedIterableToArray(o, minLen) {
@@ -1418,13 +1444,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
1418
1444
  return target;
1419
1445
  }
1420
1446
 
1421
- var omit = _objectWithoutPropertiesLoose;
1447
+ var omit$1 = _objectWithoutPropertiesLoose;
1422
1448
 
1423
- function objectHasKeys(obj) {
1449
+ function objectHasKeys$1(obj) {
1424
1450
  return obj && Object.keys(obj).length > 0;
1425
1451
  }
1426
1452
 
1427
- var objectHasKeys_1 = objectHasKeys;
1453
+ var objectHasKeys_1 = objectHasKeys$1;
1428
1454
 
1429
1455
  var isValidUserToken = function isValidUserToken(userToken) {
1430
1456
  if (userToken === null) {
@@ -1532,7 +1558,7 @@ var lib = {
1532
1558
  }
1533
1559
  return {};
1534
1560
  } else if (typeof attribute === 'string') {
1535
- return omit(refinementList, [attribute]);
1561
+ return omit$1(refinementList, [attribute]);
1536
1562
  } else if (typeof attribute === 'function') {
1537
1563
  var hasChanged = false;
1538
1564
 
@@ -1577,7 +1603,7 @@ var lib = {
1577
1603
  }
1578
1604
  };
1579
1605
 
1580
- var RefinementList$3 = lib;
1606
+ var RefinementList = lib;
1581
1607
 
1582
1608
  /**
1583
1609
  * isEqual, but only for numeric refinement values, possible values:
@@ -1946,22 +1972,22 @@ SearchParameters.prototype = {
1946
1972
  clearRefinements: function clearRefinements(attribute) {
1947
1973
  var patch = {
1948
1974
  numericRefinements: this._clearNumericRefinements(attribute),
1949
- facetsRefinements: RefinementList$3.clearRefinement(
1975
+ facetsRefinements: RefinementList.clearRefinement(
1950
1976
  this.facetsRefinements,
1951
1977
  attribute,
1952
1978
  'conjunctiveFacet'
1953
1979
  ),
1954
- facetsExcludes: RefinementList$3.clearRefinement(
1980
+ facetsExcludes: RefinementList.clearRefinement(
1955
1981
  this.facetsExcludes,
1956
1982
  attribute,
1957
1983
  'exclude'
1958
1984
  ),
1959
- disjunctiveFacetsRefinements: RefinementList$3.clearRefinement(
1985
+ disjunctiveFacetsRefinements: RefinementList.clearRefinement(
1960
1986
  this.disjunctiveFacetsRefinements,
1961
1987
  attribute,
1962
1988
  'disjunctiveFacet'
1963
1989
  ),
1964
- hierarchicalFacetsRefinements: RefinementList$3.clearRefinement(
1990
+ hierarchicalFacetsRefinements: RefinementList.clearRefinement(
1965
1991
  this.hierarchicalFacetsRefinements,
1966
1992
  attribute,
1967
1993
  'hierarchicalFacet'
@@ -2237,7 +2263,7 @@ SearchParameters.prototype = {
2237
2263
  }
2238
2264
  return {};
2239
2265
  } else if (typeof attribute === 'string') {
2240
- return omit(this.numericRefinements, [attribute]);
2266
+ return omit$1(this.numericRefinements, [attribute]);
2241
2267
  } else if (typeof attribute === 'function') {
2242
2268
  var hasChanged = false;
2243
2269
  var numericRefinements = this.numericRefinements;
@@ -2329,10 +2355,10 @@ SearchParameters.prototype = {
2329
2355
  if (!this.isConjunctiveFacet(facet)) {
2330
2356
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2331
2357
  }
2332
- if (RefinementList$3.isRefined(this.facetsRefinements, facet, value)) return this;
2358
+ if (RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
2333
2359
 
2334
2360
  return this.setQueryParameters({
2335
- facetsRefinements: RefinementList$3.addRefinement(this.facetsRefinements, facet, value)
2361
+ facetsRefinements: RefinementList.addRefinement(this.facetsRefinements, facet, value)
2336
2362
  });
2337
2363
  },
2338
2364
  /**
@@ -2346,10 +2372,10 @@ SearchParameters.prototype = {
2346
2372
  if (!this.isConjunctiveFacet(facet)) {
2347
2373
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2348
2374
  }
2349
- if (RefinementList$3.isRefined(this.facetsExcludes, facet, value)) return this;
2375
+ if (RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
2350
2376
 
2351
2377
  return this.setQueryParameters({
2352
- facetsExcludes: RefinementList$3.addRefinement(this.facetsExcludes, facet, value)
2378
+ facetsExcludes: RefinementList.addRefinement(this.facetsExcludes, facet, value)
2353
2379
  });
2354
2380
  },
2355
2381
  /**
@@ -2365,10 +2391,10 @@ SearchParameters.prototype = {
2365
2391
  facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
2366
2392
  }
2367
2393
 
2368
- if (RefinementList$3.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2394
+ if (RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2369
2395
 
2370
2396
  return this.setQueryParameters({
2371
- disjunctiveFacetsRefinements: RefinementList$3.addRefinement(
2397
+ disjunctiveFacetsRefinements: RefinementList.addRefinement(
2372
2398
  this.disjunctiveFacetsRefinements, facet, value)
2373
2399
  });
2374
2400
  },
@@ -2453,10 +2479,10 @@ SearchParameters.prototype = {
2453
2479
  if (!this.isConjunctiveFacet(facet)) {
2454
2480
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2455
2481
  }
2456
- if (!RefinementList$3.isRefined(this.facetsRefinements, facet, value)) return this;
2482
+ if (!RefinementList.isRefined(this.facetsRefinements, facet, value)) return this;
2457
2483
 
2458
2484
  return this.setQueryParameters({
2459
- facetsRefinements: RefinementList$3.removeRefinement(this.facetsRefinements, facet, value)
2485
+ facetsRefinements: RefinementList.removeRefinement(this.facetsRefinements, facet, value)
2460
2486
  });
2461
2487
  },
2462
2488
  /**
@@ -2470,10 +2496,10 @@ SearchParameters.prototype = {
2470
2496
  if (!this.isConjunctiveFacet(facet)) {
2471
2497
  throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
2472
2498
  }
2473
- if (!RefinementList$3.isRefined(this.facetsExcludes, facet, value)) return this;
2499
+ if (!RefinementList.isRefined(this.facetsExcludes, facet, value)) return this;
2474
2500
 
2475
2501
  return this.setQueryParameters({
2476
- facetsExcludes: RefinementList$3.removeRefinement(this.facetsExcludes, facet, value)
2502
+ facetsExcludes: RefinementList.removeRefinement(this.facetsExcludes, facet, value)
2477
2503
  });
2478
2504
  },
2479
2505
  /**
@@ -2488,10 +2514,10 @@ SearchParameters.prototype = {
2488
2514
  throw new Error(
2489
2515
  facet + ' is not defined in the disjunctiveFacets attribute of the helper configuration');
2490
2516
  }
2491
- if (!RefinementList$3.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2517
+ if (!RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value)) return this;
2492
2518
 
2493
2519
  return this.setQueryParameters({
2494
- disjunctiveFacetsRefinements: RefinementList$3.removeRefinement(
2520
+ disjunctiveFacetsRefinements: RefinementList.removeRefinement(
2495
2521
  this.disjunctiveFacetsRefinements, facet, value)
2496
2522
  });
2497
2523
  },
@@ -2557,7 +2583,7 @@ SearchParameters.prototype = {
2557
2583
  }
2558
2584
 
2559
2585
  return this.setQueryParameters({
2560
- facetsRefinements: RefinementList$3.toggleRefinement(this.facetsRefinements, facet, value)
2586
+ facetsRefinements: RefinementList.toggleRefinement(this.facetsRefinements, facet, value)
2561
2587
  });
2562
2588
  },
2563
2589
  /**
@@ -2573,7 +2599,7 @@ SearchParameters.prototype = {
2573
2599
  }
2574
2600
 
2575
2601
  return this.setQueryParameters({
2576
- facetsExcludes: RefinementList$3.toggleRefinement(this.facetsExcludes, facet, value)
2602
+ facetsExcludes: RefinementList.toggleRefinement(this.facetsExcludes, facet, value)
2577
2603
  });
2578
2604
  },
2579
2605
  /**
@@ -2590,7 +2616,7 @@ SearchParameters.prototype = {
2590
2616
  }
2591
2617
 
2592
2618
  return this.setQueryParameters({
2593
- disjunctiveFacetsRefinements: RefinementList$3.toggleRefinement(
2619
+ disjunctiveFacetsRefinements: RefinementList.toggleRefinement(
2594
2620
  this.disjunctiveFacetsRefinements, facet, value)
2595
2621
  });
2596
2622
  },
@@ -2729,7 +2755,7 @@ SearchParameters.prototype = {
2729
2755
  if (!this.isConjunctiveFacet(facet)) {
2730
2756
  return false;
2731
2757
  }
2732
- return RefinementList$3.isRefined(this.facetsRefinements, facet, value);
2758
+ return RefinementList.isRefined(this.facetsRefinements, facet, value);
2733
2759
  },
2734
2760
  /**
2735
2761
  * Returns true if the facet contains exclusions or if a specific value is
@@ -2745,7 +2771,7 @@ SearchParameters.prototype = {
2745
2771
  if (!this.isConjunctiveFacet(facet)) {
2746
2772
  return false;
2747
2773
  }
2748
- return RefinementList$3.isRefined(this.facetsExcludes, facet, value);
2774
+ return RefinementList.isRefined(this.facetsExcludes, facet, value);
2749
2775
  },
2750
2776
  /**
2751
2777
  * Returns true if the facet contains a refinement, or if a value passed is a
@@ -2760,7 +2786,7 @@ SearchParameters.prototype = {
2760
2786
  if (!this.isDisjunctiveFacet(facet)) {
2761
2787
  return false;
2762
2788
  }
2763
- return RefinementList$3.isRefined(this.disjunctiveFacetsRefinements, facet, value);
2789
+ return RefinementList.isRefined(this.disjunctiveFacetsRefinements, facet, value);
2764
2790
  },
2765
2791
  /**
2766
2792
  * Returns true if the facet contains a refinement, or if a value passed is a
@@ -2946,7 +2972,7 @@ SearchParameters.prototype = {
2946
2972
  var isNextValueDefined = nextWithNumbers[key] !== undefined;
2947
2973
 
2948
2974
  if (isPreviousValueDefined && !isNextValueDefined) {
2949
- return omit(previous, [key]);
2975
+ return omit$1(previous, [key]);
2950
2976
  }
2951
2977
 
2952
2978
  if (isNextValueDefined) {
@@ -4051,29 +4077,20 @@ function extractNormalizedFacetValues(results, attribute) {
4051
4077
  }
4052
4078
 
4053
4079
  /**
4054
- * Sort nodes of a hierarchical or disjunctive facet results
4080
+ * Sort nodes of a hierarchical facet results
4055
4081
  * @private
4056
- * @param {function} sortFn
4057
- * @param {HierarchicalFacet|Array} node node upon which we want to apply the sort
4058
- * @param {string[]} names attribute names
4059
- * @param {number} [level=0] current index in the names array
4082
+ * @param {HierarchicalFacet} node node to upon which we want to apply the sort
4060
4083
  */
4061
- function recSort(sortFn, node, names, level) {
4062
- level = level || 0;
4063
-
4064
- if (Array.isArray(node)) {
4065
- return sortFn(node, names[level]);
4066
- }
4067
-
4084
+ function recSort(sortFn, node) {
4068
4085
  if (!node.data || node.data.length === 0) {
4069
4086
  return node;
4070
4087
  }
4071
4088
 
4072
4089
  var children = node.data.map(function(childNode) {
4073
- return recSort(sortFn, childNode, names, level + 1);
4090
+ return recSort(sortFn, childNode);
4074
4091
  });
4075
- var sortedChildren = sortFn(children, names[level]);
4076
- var newNode = defaultsPure({data: sortedChildren}, node);
4092
+ var sortedChildren = sortFn(children);
4093
+ var newNode = merge_1({}, node, {data: sortedChildren});
4077
4094
  return newNode;
4078
4095
  }
4079
4096
 
@@ -4083,72 +4100,6 @@ function vanillaSortFn(order, data) {
4083
4100
  return data.sort(order);
4084
4101
  }
4085
4102
 
4086
- /**
4087
- * @typedef FacetOrdering
4088
- * @type {Object}
4089
- * @property {string[]} [order]
4090
- * @property {'count' | 'alpha' | 'hidden'} [sortRemainingBy]
4091
- */
4092
-
4093
- /**
4094
- * Sorts facet arrays via their facet ordering
4095
- * @param {Array} facetValues the values
4096
- * @param {FacetOrdering} facetOrdering the ordering
4097
- * @returns {Array}
4098
- */
4099
- function sortViaFacetOrdering(facetValues, facetOrdering) {
4100
- var orderedFacets = [];
4101
- var remainingFacets = [];
4102
-
4103
- var order = facetOrdering.order || [];
4104
- /**
4105
- * an object with the keys being the values in order, the values their index:
4106
- * ['one', 'two'] -> { one: 0, two: 1 }
4107
- */
4108
- var reverseOrder = order.reduce(function(acc, name, i) {
4109
- acc[name] = i;
4110
- return acc;
4111
- }, {});
4112
-
4113
- facetValues.forEach(function(item) {
4114
- // hierarchical facets get sorted using their raw name
4115
- var name = item.path || item.name;
4116
- if (reverseOrder[name] !== undefined) {
4117
- orderedFacets[reverseOrder[name]] = item;
4118
- } else {
4119
- remainingFacets.push(item);
4120
- }
4121
- });
4122
-
4123
- var sortRemainingBy = facetOrdering.sortRemainingBy;
4124
- var ordering;
4125
- if (sortRemainingBy === 'hidden') {
4126
- return orderedFacets;
4127
- } else if (sortRemainingBy === 'alpha') {
4128
- ordering = [['path', 'name'], ['asc', 'asc']];
4129
- } else {
4130
- ordering = [['count'], ['desc']];
4131
- }
4132
-
4133
- return orderedFacets.concat(
4134
- orderBy_1(remainingFacets, ordering[0], ordering[1])
4135
- );
4136
- }
4137
-
4138
- /**
4139
- * @param {SearchResults} results the search results class
4140
- * @param {string} attribute the attribute to retrieve ordering of
4141
- * @returns {FacetOrdering=}
4142
- */
4143
- function getFacetOrdering(results, attribute) {
4144
- return (
4145
- results.renderingContent &&
4146
- results.renderingContent.facetOrdering &&
4147
- results.renderingContent.facetOrdering.values &&
4148
- results.renderingContent.facetOrdering.values[attribute]
4149
- );
4150
- }
4151
-
4152
4103
  /**
4153
4104
  * Get a the list of values for a given facet attribute. Those values are sorted
4154
4105
  * refinement first, descending count (bigger value on top), and name ascending
@@ -4161,9 +4112,6 @@ function getFacetOrdering(results, attribute) {
4161
4112
  * might not be respected if you have facet values that are already refined.
4162
4113
  * @param {string} attribute attribute name
4163
4114
  * @param {object} opts configuration options.
4164
- * @param {boolean} [opts.facetOrdering]
4165
- * Force the use of facetOrdering from the result if a sortBy is present. If
4166
- * sortBy isn't present, facetOrdering will be used automatically.
4167
4115
  * @param {Array.<string> | function} opts.sortBy
4168
4116
  * When using strings, it consists of
4169
4117
  * the name of the [FacetValue](#SearchResults.FacetValue) or the
@@ -4203,41 +4151,30 @@ SearchResults.prototype.getFacetValues = function(attribute, opts) {
4203
4151
  return undefined;
4204
4152
  }
4205
4153
 
4206
- var options = defaultsPure({}, opts, {
4207
- sortBy: SearchResults.DEFAULT_SORT,
4208
- // if no sortBy is given, attempt to sort based on facetOrdering
4209
- // if it is given, we still allow to sort via facet ordering first
4210
- facetOrdering: !(opts && opts.sortBy)
4211
- });
4212
-
4213
- var results = this;
4214
- var attributes;
4215
- if (Array.isArray(facetValues)) {
4216
- attributes = [attribute];
4217
- } else {
4218
- var config = results._state.getHierarchicalFacetByName(facetValues.name);
4219
- attributes = config.attributes;
4220
- }
4154
+ var options = defaultsPure({}, opts, {sortBy: SearchResults.DEFAULT_SORT});
4221
4155
 
4222
- return recSort(function(data, facetName) {
4223
- if (options.facetOrdering) {
4224
- var facetOrdering = getFacetOrdering(results, facetName);
4225
- if (Boolean(facetOrdering)) {
4226
- return sortViaFacetOrdering(data, facetOrdering);
4227
- }
4156
+ if (Array.isArray(options.sortBy)) {
4157
+ var order = formatSort(options.sortBy, SearchResults.DEFAULT_SORT);
4158
+ if (Array.isArray(facetValues)) {
4159
+ return orderBy_1(facetValues, order[0], order[1]);
4228
4160
  }
4229
-
4230
- if (Array.isArray(options.sortBy)) {
4231
- var order = formatSort(options.sortBy, SearchResults.DEFAULT_SORT);
4232
- return orderBy_1(data, order[0], order[1]);
4233
- } else if (typeof options.sortBy === 'function') {
4234
- return vanillaSortFn(options.sortBy, data);
4161
+ // If facetValues is not an array, it's an object thus a hierarchical facet object
4162
+ return recSort(function(hierarchicalFacetValues) {
4163
+ return orderBy_1(hierarchicalFacetValues, order[0], order[1]);
4164
+ }, facetValues);
4165
+ } else if (typeof options.sortBy === 'function') {
4166
+ if (Array.isArray(facetValues)) {
4167
+ return facetValues.sort(options.sortBy);
4235
4168
  }
4236
- throw new Error(
4237
- 'options.sortBy is optional but if defined it must be ' +
4238
- 'either an array of string (predicates) or a sorting function'
4239
- );
4240
- }, facetValues, attributes);
4169
+ // If facetValues is not an array, it's an object thus a hierarchical facet object
4170
+ return recSort(function(data) {
4171
+ return vanillaSortFn(options.sortBy, data);
4172
+ }, facetValues);
4173
+ }
4174
+ throw new Error(
4175
+ 'options.sortBy is optional but if defined it must be ' +
4176
+ 'either an array of string (predicates) or a sorting function'
4177
+ );
4241
4178
  };
4242
4179
 
4243
4180
  /**
@@ -4768,7 +4705,7 @@ var requestBuilder = {
4768
4705
 
4769
4706
  var requestBuilder_1 = requestBuilder;
4770
4707
 
4771
- var version = '3.5.3';
4708
+ var version$1 = '3.4.4';
4772
4709
 
4773
4710
  /**
4774
4711
  * Event triggered when a parameter is set or updated
@@ -4875,7 +4812,7 @@ var version = '3.5.3';
4875
4812
  */
4876
4813
  function AlgoliaSearchHelper(client, index, options) {
4877
4814
  if (typeof client.addAlgoliaAgent === 'function') {
4878
- client.addAlgoliaAgent('JS Helper (' + version + ')');
4815
+ client.addAlgoliaAgent('JS Helper (' + version$1 + ')');
4879
4816
  }
4880
4817
 
4881
4818
  this.setClient(client);
@@ -5030,7 +4967,7 @@ AlgoliaSearchHelper.prototype.findAnswers = function(options) {
5030
4967
  nbHits: options.nbHits
5031
4968
  },
5032
4969
  {
5033
- params: omit(requestBuilder_1._getHitsSearchParams(derivedState), [
4970
+ params: omit$1(requestBuilder_1._getHitsSearchParams(derivedState), [
5034
4971
  'attributesToSnippet',
5035
4972
  'hitsPerPage',
5036
4973
  'restrictSearchableAttributes',
@@ -6144,7 +6081,7 @@ AlgoliaSearchHelper.prototype.setClient = function(newClient) {
6144
6081
  if (this.client === newClient) return this;
6145
6082
 
6146
6083
  if (typeof newClient.addAlgoliaAgent === 'function') {
6147
- newClient.addAlgoliaAgent('JS Helper (' + version + ')');
6084
+ newClient.addAlgoliaAgent('JS Helper (' + version$1 + ')');
6148
6085
  }
6149
6086
  this.client = newClient;
6150
6087
 
@@ -6263,7 +6200,7 @@ function algoliasearchHelper(client, index, opts) {
6263
6200
  * @member module:algoliasearchHelper.version
6264
6201
  * @type {number}
6265
6202
  */
6266
- algoliasearchHelper.version = version;
6203
+ algoliasearchHelper.version = version$1;
6267
6204
 
6268
6205
  /**
6269
6206
  * Constructor for the Helper.
@@ -6295,13 +6232,13 @@ function createOptionalFilter(_ref) {
6295
6232
  return "".concat(attributeName, ":").concat(attributeValue, "<score=").concat(attributeScore || 1, ">");
6296
6233
  }
6297
6234
 
6298
- var defaultProps$1 = {
6235
+ var defaultProps = {
6299
6236
  transformSearchParameters: function transformSearchParameters(x) {
6300
6237
  return _objectSpread({}, x);
6301
6238
  }
6302
6239
  };
6303
6240
 
6304
- function getId$e() {
6241
+ function getId$1() {
6305
6242
  // We store the search state of this widget in `configure`.
6306
6243
  return 'configure';
6307
6244
  }
@@ -6349,7 +6286,7 @@ function getSearchParametersFromProps(props) {
6349
6286
 
6350
6287
  var connectConfigureRelatedItems = createConnectorWithContext({
6351
6288
  displayName: 'AlgoliaConfigureRelatedItems',
6352
- defaultProps: defaultProps$1,
6289
+ defaultProps: defaultProps,
6353
6290
  getProvidedProps: function getProvidedProps() {
6354
6291
  return {};
6355
6292
  },
@@ -6357,7 +6294,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
6357
6294
  return searchParameters.setQueryParameters(getSearchParametersFromProps(props));
6358
6295
  },
6359
6296
  transitionState: function transitionState(props, _prevSearchState, nextSearchState) {
6360
- var id = getId$e(); // We need to transform the exhaustive search parameters back to clean
6297
+ var id = getId$1(); // We need to transform the exhaustive search parameters back to clean
6361
6298
  // search parameters without the empty default keys so we don't pollute the
6362
6299
  // `configure` search state.
6363
6300
 
@@ -6368,7 +6305,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
6368
6305
  }) : [];
6369
6306
  this._searchParameters = searchParameters;
6370
6307
 
6371
- var nextValue = _defineProperty({}, id, _objectSpread({}, omit$1(nextSearchState[id], nonPresentKeys), searchParameters));
6308
+ var nextValue = _defineProperty({}, id, _objectSpread({}, omit(nextSearchState[id], nonPresentKeys), searchParameters));
6372
6309
 
6373
6310
  return refineValue(nextSearchState, nextValue, {
6374
6311
  ais: props.contextValue,
@@ -6378,7 +6315,7 @@ var connectConfigureRelatedItems = createConnectorWithContext({
6378
6315
  cleanUp: function cleanUp(props, searchState) {
6379
6316
  var _this = this;
6380
6317
 
6381
- var id = getId$e();
6318
+ var id = getId$1();
6382
6319
  var indexId = getIndexId({
6383
6320
  ais: props.contextValue,
6384
6321
  multiIndexContext: props.indexContextValue
@@ -6451,7 +6388,7 @@ function getWidgetRefinements(attribute, widgetKey, searchState) {
6451
6388
  }
6452
6389
  }
6453
6390
 
6454
- function getRefinements(attribute) {
6391
+ function getRefinements$1(attribute) {
6455
6392
  var searchState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6456
6393
  var refinements = Object.keys(searchState).filter(function (widgetKey) {
6457
6394
  return searchState[widgetKey] !== undefined && searchState[widgetKey][attribute] !== undefined;
@@ -6468,7 +6405,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
6468
6405
  var searchState = _ref.searchState,
6469
6406
  trackedFilters = _ref.trackedFilters;
6470
6407
  var ruleContexts = Object.keys(trackedFilters).reduce(function (facets, facetName) {
6471
- var facetRefinements = getRefinements(facetName, searchState);
6408
+ var facetRefinements = getRefinements$1(facetName, searchState);
6472
6409
  var getTrackedFacetValues = trackedFilters[facetName];
6473
6410
  var trackedFacetValues = getTrackedFacetValues(facetRefinements);
6474
6411
  return [].concat(_toConsumableArray(facets), _toConsumableArray(facetRefinements.filter(function (facetRefinement) {
@@ -6480,7 +6417,7 @@ function getRuleContextsFromTrackedFilters(_ref) {
6480
6417
  return ruleContexts;
6481
6418
  }
6482
6419
 
6483
- var defaultProps = {
6420
+ var defaultProps$1 = {
6484
6421
  transformItems: function transformItems(items) {
6485
6422
  return items;
6486
6423
  },
@@ -6491,7 +6428,7 @@ var defaultProps = {
6491
6428
  };
6492
6429
  var connectQueryRules = createConnectorWithContext({
6493
6430
  displayName: 'AlgoliaQueryRules',
6494
- defaultProps: defaultProps,
6431
+ defaultProps: defaultProps$1,
6495
6432
  getProvidedProps: function getProvidedProps(props, _1, searchResults) {
6496
6433
  var results = getResults(searchResults, {
6497
6434
  ais: props.contextValue,
@@ -6668,10 +6605,20 @@ _defineProperty(Index, "propTypes", {
6668
6605
  children: PropTypes.node
6669
6606
  });
6670
6607
 
6671
- ({
6608
+ var IndexWrapper = function IndexWrapper(props) {
6609
+ var inferredIndexId = props.indexName;
6610
+ return React__default.createElement(InstantSearchConsumer, null, function (contextValue) {
6611
+ return React__default.createElement(Index, _extends({
6612
+ contextValue: contextValue,
6613
+ indexId: inferredIndexId
6614
+ }, props));
6615
+ });
6616
+ };
6617
+
6618
+ IndexWrapper.propTypes = {
6672
6619
  indexName: PropTypes.string.isRequired,
6673
6620
  indexId: PropTypes.string
6674
- });
6621
+ };
6675
6622
 
6676
6623
  function createWidgetsManager(onWidgetsUpdate) {
6677
6624
  var widgets = []; // Is an update scheduled?
@@ -6732,7 +6679,7 @@ function createStore(initialState) {
6732
6679
  function addAlgoliaAgents(searchClient) {
6733
6680
  if (typeof searchClient.addAlgoliaAgent === 'function') {
6734
6681
  searchClient.addAlgoliaAgent("react (".concat(version$2, ")"));
6735
- searchClient.addAlgoliaAgent("react-instantsearch (".concat(version$1, ")"));
6682
+ searchClient.addAlgoliaAgent("react-instantsearch (".concat(version, ")"));
6736
6683
  }
6737
6684
  }
6738
6685
 
@@ -6904,7 +6851,7 @@ function createInstantSearchManager(_ref) {
6904
6851
 
6905
6852
  function search() {
6906
6853
  if (!skip) {
6907
- var _getSearchParameters = getSearchParameters(helper.state),
6854
+ var _getSearchParameters = getSearchParameters(),
6908
6855
  mainParameters = _getSearchParameters.mainParameters,
6909
6856
  derivedParameters = _getSearchParameters.derivedParameters; // We have to call `slice` because the method `detach` on the derived
6910
6857
  // helpers mutates the value `derivedHelpers`. The `forEach` loop does
@@ -6970,8 +6917,8 @@ function createInstantSearchManager(_ref) {
6970
6917
  nextIsSearchStalled = false;
6971
6918
  }
6972
6919
 
6973
- currentState.resultsFacetValues;
6974
- var partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6920
+ var resultsFacetValues = currentState.resultsFacetValues,
6921
+ partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6975
6922
 
6976
6923
  store.setState(_objectSpread({}, partialState, {
6977
6924
  results: results,
@@ -6992,8 +6939,8 @@ function createInstantSearchManager(_ref) {
6992
6939
  nextIsSearchStalled = false;
6993
6940
  }
6994
6941
 
6995
- currentState.resultsFacetValues;
6996
- var partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6942
+ var resultsFacetValues = currentState.resultsFacetValues,
6943
+ partialState = _objectWithoutProperties(currentState, ["resultsFacetValues"]);
6997
6944
 
6998
6945
  store.setState(_objectSpread({}, partialState, {
6999
6946
  isSearchStalled: nextIsSearchStalled,
@@ -7005,9 +6952,9 @@ function createInstantSearchManager(_ref) {
7005
6952
  function handleNewSearch() {
7006
6953
  if (!stalledSearchTimer) {
7007
6954
  stalledSearchTimer = setTimeout(function () {
7008
- var _store$getState = store.getState();
7009
- _store$getState.resultsFacetValues;
7010
- var partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
6955
+ var _store$getState = store.getState(),
6956
+ resultsFacetValues = _store$getState.resultsFacetValues,
6957
+ partialState = _objectWithoutProperties(_store$getState, ["resultsFacetValues"]);
7011
6958
 
7012
6959
  store.setState(_objectSpread({}, partialState, {
7013
6960
  isSearchStalled: true
@@ -7506,21 +7453,21 @@ _defineProperty(InstantSearch, "propTypes", {
7506
7453
  stalledSearchDelay: PropTypes.number
7507
7454
  });
7508
7455
 
7509
- var getId$d = function getId(props) {
7456
+ var getId$2 = function getId(props) {
7510
7457
  return props.attributes[0];
7511
7458
  };
7512
- var namespace$6 = 'hierarchicalMenu';
7459
+ var namespace = 'hierarchicalMenu';
7513
7460
 
7514
- function _refine$9(props, searchState, nextRefinement, context) {
7515
- var id = getId$d(props);
7461
+ function _refine(props, searchState, nextRefinement, context) {
7462
+ var id = getId$2(props);
7516
7463
 
7517
7464
  var nextValue = _defineProperty({}, id, nextRefinement || '');
7518
7465
 
7519
7466
  var resetPage = true;
7520
- return refineValue(searchState, nextValue, context, resetPage, namespace$6);
7467
+ return refineValue(searchState, nextValue, context, resetPage, namespace);
7521
7468
  }
7522
7469
 
7523
- function transformValue$1(values) {
7470
+ function transformValue(values) {
7524
7471
  return values.reduce(function (acc, item) {
7525
7472
  if (item.isRefined) {
7526
7473
  acc.push({
@@ -7531,7 +7478,7 @@ function transformValue$1(values) {
7531
7478
  }); // Create a variable in order to keep the same acc for the recursion, otherwise "reduce" returns a new one
7532
7479
 
7533
7480
  if (item.data) {
7534
- acc = acc.concat(transformValue$1(item.data));
7481
+ acc = acc.concat(transformValue(item.data));
7535
7482
  }
7536
7483
  }
7537
7484
 
@@ -7593,7 +7540,7 @@ var connectBreadcrumb = createConnectorWithContext({
7593
7540
  transformItems: PropTypes.func
7594
7541
  },
7595
7542
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
7596
- var id = getId$d(props);
7543
+ var id = getId$2(props);
7597
7544
  var results = getResults(searchResults, {
7598
7545
  ais: props.contextValue,
7599
7546
  multiIndexContext: props.indexContextValue
@@ -7608,7 +7555,7 @@ var connectBreadcrumb = createConnectorWithContext({
7608
7555
  }
7609
7556
 
7610
7557
  var values = results.getFacetValues(id);
7611
- var items = values.data ? transformValue$1(values.data) : [];
7558
+ var items = values.data ? transformValue(values.data) : [];
7612
7559
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
7613
7560
  return {
7614
7561
  canRefine: transformedItems.length > 0,
@@ -7616,7 +7563,7 @@ var connectBreadcrumb = createConnectorWithContext({
7616
7563
  };
7617
7564
  },
7618
7565
  refine: function refine(props, searchState, nextRefinement) {
7619
- return _refine$9(props, searchState, nextRefinement, {
7566
+ return _refine(props, searchState, nextRefinement, {
7620
7567
  ais: props.contextValue,
7621
7568
  multiIndexContext: props.indexContextValue
7622
7569
  });
@@ -7679,13 +7626,13 @@ var connectCurrentRefinements = createConnectorWithContext({
7679
7626
  }
7680
7627
  });
7681
7628
 
7682
- var getId$c = function getId(props) {
7629
+ var getId$3 = function getId(props) {
7683
7630
  return props.attributes[0];
7684
7631
  };
7685
- var namespace$5 = 'hierarchicalMenu';
7632
+ var namespace$1 = 'hierarchicalMenu';
7686
7633
 
7687
- function getCurrentRefinement$b(props, searchState, context) {
7688
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$5, ".").concat(getId$c(props)), null);
7634
+ function getCurrentRefinement(props, searchState, context) {
7635
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)), null);
7689
7636
 
7690
7637
  if (currentRefinement === '') {
7691
7638
  return null;
@@ -7694,13 +7641,13 @@ function getCurrentRefinement$b(props, searchState, context) {
7694
7641
  return currentRefinement;
7695
7642
  }
7696
7643
 
7697
- function getValue$2(path, props, searchState, context) {
7644
+ function getValue(path, props, searchState, context) {
7698
7645
  var id = props.id,
7699
7646
  attributes = props.attributes,
7700
7647
  separator = props.separator,
7701
7648
  rootPath = props.rootPath,
7702
7649
  showParentLevel = props.showParentLevel;
7703
- var currentRefinement = getCurrentRefinement$b(props, searchState, context);
7650
+ var currentRefinement = getCurrentRefinement(props, searchState, context);
7704
7651
  var nextRefinement;
7705
7652
 
7706
7653
  if (currentRefinement === null) {
@@ -7721,14 +7668,14 @@ function getValue$2(path, props, searchState, context) {
7721
7668
  return nextRefinement;
7722
7669
  }
7723
7670
 
7724
- function transformValue(value, props, searchState, context) {
7671
+ function transformValue$1(value, props, searchState, context) {
7725
7672
  return value.map(function (v) {
7726
7673
  return {
7727
7674
  label: v.name,
7728
- value: getValue$2(v.path, props, searchState, context),
7675
+ value: getValue(v.path, props, searchState, context),
7729
7676
  count: v.count,
7730
7677
  isRefined: v.isRefined,
7731
- items: v.data && transformValue(v.data, props, searchState, context)
7678
+ items: v.data && transformValue$1(v.data, props, searchState, context)
7732
7679
  };
7733
7680
  });
7734
7681
  }
@@ -7744,20 +7691,20 @@ var truncate = function truncate() {
7744
7691
  });
7745
7692
  };
7746
7693
 
7747
- function _refine$8(props, searchState, nextRefinement, context) {
7748
- var id = getId$c(props);
7694
+ function _refine$1(props, searchState, nextRefinement, context) {
7695
+ var id = getId$3(props);
7749
7696
 
7750
7697
  var nextValue = _defineProperty({}, id, nextRefinement || '');
7751
7698
 
7752
7699
  var resetPage = true;
7753
- return refineValue(searchState, nextValue, context, resetPage, namespace$5);
7700
+ return refineValue(searchState, nextValue, context, resetPage, namespace$1);
7754
7701
  }
7755
7702
 
7756
- function _cleanUp$7(props, searchState, context) {
7757
- return cleanUpValue(searchState, context, "".concat(namespace$5, ".").concat(getId$c(props)));
7703
+ function _cleanUp(props, searchState, context) {
7704
+ return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$3(props)));
7758
7705
  }
7759
7706
 
7760
- var sortBy$1 = ['name:asc'];
7707
+ var sortBy = ['name:asc'];
7761
7708
  /**
7762
7709
  * connectHierarchicalMenu connector provides the logic to build a widget that will
7763
7710
  * give the user the ability to explore a tree-like structure.
@@ -7839,7 +7786,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7839
7786
  var showMore = props.showMore,
7840
7787
  limit = props.limit,
7841
7788
  showMoreLimit = props.showMoreLimit;
7842
- var id = getId$c(props);
7789
+ var id = getId$3(props);
7843
7790
  var results = getResults(searchResults, {
7844
7791
  ais: props.contextValue,
7845
7792
  multiIndexContext: props.indexContextValue
@@ -7849,7 +7796,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7849
7796
  if (!isFacetPresent) {
7850
7797
  return {
7851
7798
  items: [],
7852
- currentRefinement: getCurrentRefinement$b(props, searchState, {
7799
+ currentRefinement: getCurrentRefinement(props, searchState, {
7853
7800
  ais: props.contextValue,
7854
7801
  multiIndexContext: props.indexContextValue
7855
7802
  }),
@@ -7859,16 +7806,16 @@ var connectHierarchicalMenu = createConnectorWithContext({
7859
7806
 
7860
7807
  var itemsLimit = showMore ? showMoreLimit : limit;
7861
7808
  var value = results.getFacetValues(id, {
7862
- sortBy: sortBy$1
7809
+ sortBy: sortBy
7863
7810
  });
7864
- var items = value.data ? transformValue(value.data, props, searchState, {
7811
+ var items = value.data ? transformValue$1(value.data, props, searchState, {
7865
7812
  ais: props.contextValue,
7866
7813
  multiIndexContext: props.indexContextValue
7867
7814
  }) : [];
7868
7815
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
7869
7816
  return {
7870
7817
  items: truncate(transformedItems, itemsLimit),
7871
- currentRefinement: getCurrentRefinement$b(props, searchState, {
7818
+ currentRefinement: getCurrentRefinement(props, searchState, {
7872
7819
  ais: props.contextValue,
7873
7820
  multiIndexContext: props.indexContextValue
7874
7821
  }),
@@ -7876,13 +7823,13 @@ var connectHierarchicalMenu = createConnectorWithContext({
7876
7823
  };
7877
7824
  },
7878
7825
  refine: function refine(props, searchState, nextRefinement) {
7879
- return _refine$8(props, searchState, nextRefinement, {
7826
+ return _refine$1(props, searchState, nextRefinement, {
7880
7827
  ais: props.contextValue,
7881
7828
  multiIndexContext: props.indexContextValue
7882
7829
  });
7883
7830
  },
7884
7831
  cleanUp: function cleanUp(props, searchState) {
7885
- return _cleanUp$7(props, searchState, {
7832
+ return _cleanUp(props, searchState, {
7886
7833
  ais: props.contextValue,
7887
7834
  multiIndexContext: props.indexContextValue
7888
7835
  });
@@ -7896,7 +7843,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7896
7843
  limit = props.limit,
7897
7844
  showMoreLimit = props.showMoreLimit,
7898
7845
  contextValue = props.contextValue;
7899
- var id = getId$c(props);
7846
+ var id = getId$3(props);
7900
7847
  var itemsLimit = showMore ? showMoreLimit : limit;
7901
7848
  searchParameters = searchParameters.addHierarchicalFacet({
7902
7849
  name: id,
@@ -7907,7 +7854,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7907
7854
  }).setQueryParameters({
7908
7855
  maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, itemsLimit)
7909
7856
  });
7910
- var currentRefinement = getCurrentRefinement$b(props, searchState, {
7857
+ var currentRefinement = getCurrentRefinement(props, searchState, {
7911
7858
  ais: contextValue,
7912
7859
  multiIndexContext: props.indexContextValue
7913
7860
  });
@@ -7920,8 +7867,8 @@ var connectHierarchicalMenu = createConnectorWithContext({
7920
7867
  },
7921
7868
  getMetadata: function getMetadata(props, searchState) {
7922
7869
  var rootAttribute = props.attributes[0];
7923
- var id = getId$c(props);
7924
- var currentRefinement = getCurrentRefinement$b(props, searchState, {
7870
+ var id = getId$3(props);
7871
+ var currentRefinement = getCurrentRefinement(props, searchState, {
7925
7872
  ais: props.contextValue,
7926
7873
  multiIndexContext: props.indexContextValue
7927
7874
  });
@@ -7929,7 +7876,7 @@ var connectHierarchicalMenu = createConnectorWithContext({
7929
7876
  label: "".concat(rootAttribute, ": ").concat(currentRefinement),
7930
7877
  attribute: rootAttribute,
7931
7878
  value: function value(nextState) {
7932
- return _refine$8(props, nextState, '', {
7879
+ return _refine$1(props, nextState, '', {
7933
7880
  ais: props.contextValue,
7934
7881
  multiIndexContext: props.indexContextValue
7935
7882
  });
@@ -8106,12 +8053,12 @@ var connectHits = createConnectorWithContext({
8106
8053
  }
8107
8054
  });
8108
8055
 
8109
- function getId$b() {
8056
+ function getId$4() {
8110
8057
  return 'hitsPerPage';
8111
8058
  }
8112
8059
 
8113
- function getCurrentRefinement$a(props, searchState, context) {
8114
- var id = getId$b();
8060
+ function getCurrentRefinement$1(props, searchState, context) {
8061
+ var id = getId$4();
8115
8062
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
8116
8063
 
8117
8064
  if (typeof currentRefinement === 'string') {
@@ -8146,7 +8093,7 @@ var connectHitsPerPage = createConnectorWithContext({
8146
8093
  transformItems: PropTypes.func
8147
8094
  },
8148
8095
  getProvidedProps: function getProvidedProps(props, searchState) {
8149
- var currentRefinement = getCurrentRefinement$a(props, searchState, {
8096
+ var currentRefinement = getCurrentRefinement$1(props, searchState, {
8150
8097
  ais: props.contextValue,
8151
8098
  multiIndexContext: props.indexContextValue
8152
8099
  });
@@ -8163,7 +8110,7 @@ var connectHitsPerPage = createConnectorWithContext({
8163
8110
  };
8164
8111
  },
8165
8112
  refine: function refine(props, searchState, nextRefinement) {
8166
- var id = getId$b();
8113
+ var id = getId$4();
8167
8114
 
8168
8115
  var nextValue = _defineProperty({}, id, nextRefinement);
8169
8116
 
@@ -8177,27 +8124,27 @@ var connectHitsPerPage = createConnectorWithContext({
8177
8124
  return cleanUpValue(searchState, {
8178
8125
  ais: props.contextValue,
8179
8126
  multiIndexContext: props.indexContextValue
8180
- }, getId$b());
8127
+ }, getId$4());
8181
8128
  },
8182
8129
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8183
- return searchParameters.setHitsPerPage(getCurrentRefinement$a(props, searchState, {
8130
+ return searchParameters.setHitsPerPage(getCurrentRefinement$1(props, searchState, {
8184
8131
  ais: props.contextValue,
8185
8132
  multiIndexContext: props.indexContextValue
8186
8133
  }));
8187
8134
  },
8188
8135
  getMetadata: function getMetadata() {
8189
8136
  return {
8190
- id: getId$b()
8137
+ id: getId$4()
8191
8138
  };
8192
8139
  }
8193
8140
  });
8194
8141
 
8195
- function getId$a() {
8142
+ function getId$5() {
8196
8143
  return 'page';
8197
8144
  }
8198
8145
 
8199
- function getCurrentRefinement$9(props, searchState, context) {
8200
- var id = getId$a();
8146
+ function getCurrentRefinement$2(props, searchState, context) {
8147
+ var id = getId$5();
8201
8148
  var page = 1;
8202
8149
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
8203
8150
 
@@ -8209,9 +8156,9 @@ function getCurrentRefinement$9(props, searchState, context) {
8209
8156
  }
8210
8157
 
8211
8158
  function getStateWithoutPage(state) {
8212
- var _ref = state || {};
8213
- _ref.page;
8214
- var rest = _objectWithoutProperties(_ref, ["page"]);
8159
+ var _ref = state || {},
8160
+ page = _ref.page,
8161
+ rest = _objectWithoutProperties(_ref, ["page"]);
8215
8162
 
8216
8163
  return rest;
8217
8164
  }
@@ -8320,14 +8267,14 @@ var connectInfiniteHits = createConnectorWithContext({
8320
8267
  },
8321
8268
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8322
8269
  return searchParameters.setQueryParameters({
8323
- page: getCurrentRefinement$9(props, searchState, {
8270
+ page: getCurrentRefinement$2(props, searchState, {
8324
8271
  ais: props.contextValue,
8325
8272
  multiIndexContext: props.indexContextValue
8326
8273
  }) - 1
8327
8274
  });
8328
8275
  },
8329
8276
  refine: function refine(props, searchState, event, index) {
8330
- var id = getId$a();
8277
+ var id = getId$5();
8331
8278
 
8332
8279
  var nextValue = _defineProperty({}, id, index + 1);
8333
8280
 
@@ -8339,14 +8286,14 @@ var connectInfiniteHits = createConnectorWithContext({
8339
8286
  }
8340
8287
  });
8341
8288
 
8342
- var namespace$4 = 'menu';
8289
+ var namespace$2 = 'menu';
8343
8290
 
8344
- function getId$9(props) {
8291
+ function getId$6(props) {
8345
8292
  return props.attribute;
8346
8293
  }
8347
8294
 
8348
- function getCurrentRefinement$8(props, searchState, context) {
8349
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)), null);
8295
+ function getCurrentRefinement$3(props, searchState, context) {
8296
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)), null);
8350
8297
 
8351
8298
  if (currentRefinement === '') {
8352
8299
  return null;
@@ -8356,28 +8303,28 @@ function getCurrentRefinement$8(props, searchState, context) {
8356
8303
  }
8357
8304
 
8358
8305
  function getValue$1(name, props, searchState, context) {
8359
- var currentRefinement = getCurrentRefinement$8(props, searchState, context);
8306
+ var currentRefinement = getCurrentRefinement$3(props, searchState, context);
8360
8307
  return name === currentRefinement ? '' : name;
8361
8308
  }
8362
8309
 
8363
- function getLimit$1(_ref) {
8310
+ function getLimit(_ref) {
8364
8311
  var showMore = _ref.showMore,
8365
8312
  limit = _ref.limit,
8366
8313
  showMoreLimit = _ref.showMoreLimit;
8367
8314
  return showMore ? showMoreLimit : limit;
8368
8315
  }
8369
8316
 
8370
- function _refine$7(props, searchState, nextRefinement, context) {
8371
- var id = getId$9(props);
8317
+ function _refine$2(props, searchState, nextRefinement, context) {
8318
+ var id = getId$6(props);
8372
8319
 
8373
8320
  var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : '');
8374
8321
 
8375
8322
  var resetPage = true;
8376
- return refineValue(searchState, nextValue, context, resetPage, namespace$4);
8323
+ return refineValue(searchState, nextValue, context, resetPage, namespace$2);
8377
8324
  }
8378
8325
 
8379
- function _cleanUp$6(props, searchState, context) {
8380
- return cleanUpValue(searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)));
8326
+ function _cleanUp$1(props, searchState, context) {
8327
+ return cleanUpValue(searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)));
8381
8328
  }
8382
8329
 
8383
8330
  var defaultSortBy = ['count:desc', 'name:asc'];
@@ -8436,7 +8383,7 @@ var connectMenu = createConnectorWithContext({
8436
8383
  if (!canRefine) {
8437
8384
  return {
8438
8385
  items: [],
8439
- currentRefinement: getCurrentRefinement$8(props, searchState, {
8386
+ currentRefinement: getCurrentRefinement$3(props, searchState, {
8440
8387
  ais: props.contextValue,
8441
8388
  multiIndexContext: props.indexContextValue
8442
8389
  }),
@@ -8483,8 +8430,8 @@ var connectMenu = createConnectorWithContext({
8483
8430
 
8484
8431
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
8485
8432
  return {
8486
- items: transformedItems.slice(0, getLimit$1(props)),
8487
- currentRefinement: getCurrentRefinement$8(props, searchState, {
8433
+ items: transformedItems.slice(0, getLimit(props)),
8434
+ currentRefinement: getCurrentRefinement$3(props, searchState, {
8488
8435
  ais: props.contextValue,
8489
8436
  multiIndexContext: props.indexContextValue
8490
8437
  }),
@@ -8494,7 +8441,7 @@ var connectMenu = createConnectorWithContext({
8494
8441
  };
8495
8442
  },
8496
8443
  refine: function refine(props, searchState, nextRefinement) {
8497
- return _refine$7(props, searchState, nextRefinement, {
8444
+ return _refine$2(props, searchState, nextRefinement, {
8498
8445
  ais: props.contextValue,
8499
8446
  multiIndexContext: props.indexContextValue
8500
8447
  });
@@ -8503,11 +8450,11 @@ var connectMenu = createConnectorWithContext({
8503
8450
  return {
8504
8451
  facetName: props.attribute,
8505
8452
  query: nextRefinement,
8506
- maxFacetHits: getLimit$1(props)
8453
+ maxFacetHits: getLimit(props)
8507
8454
  };
8508
8455
  },
8509
8456
  cleanUp: function cleanUp(props, searchState) {
8510
- return _cleanUp$6(props, searchState, {
8457
+ return _cleanUp$1(props, searchState, {
8511
8458
  ais: props.contextValue,
8512
8459
  multiIndexContext: props.indexContextValue
8513
8460
  });
@@ -8515,10 +8462,10 @@ var connectMenu = createConnectorWithContext({
8515
8462
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8516
8463
  var attribute = props.attribute;
8517
8464
  searchParameters = searchParameters.setQueryParameters({
8518
- maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
8465
+ maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
8519
8466
  });
8520
8467
  searchParameters = searchParameters.addDisjunctiveFacet(attribute);
8521
- var currentRefinement = getCurrentRefinement$8(props, searchState, {
8468
+ var currentRefinement = getCurrentRefinement$3(props, searchState, {
8522
8469
  ais: props.contextValue,
8523
8470
  multiIndexContext: props.indexContextValue
8524
8471
  });
@@ -8530,8 +8477,8 @@ var connectMenu = createConnectorWithContext({
8530
8477
  return searchParameters;
8531
8478
  },
8532
8479
  getMetadata: function getMetadata(props, searchState) {
8533
- var id = getId$9(props);
8534
- var currentRefinement = getCurrentRefinement$8(props, searchState, {
8480
+ var id = getId$6(props);
8481
+ var currentRefinement = getCurrentRefinement$3(props, searchState, {
8535
8482
  ais: props.contextValue,
8536
8483
  multiIndexContext: props.indexContextValue
8537
8484
  });
@@ -8545,7 +8492,7 @@ var connectMenu = createConnectorWithContext({
8545
8492
  label: "".concat(props.attribute, ": ").concat(currentRefinement),
8546
8493
  attribute: props.attribute,
8547
8494
  value: function value(nextState) {
8548
- return _refine$7(props, nextState, '', {
8495
+ return _refine$2(props, nextState, '', {
8549
8496
  ais: props.contextValue,
8550
8497
  multiIndexContext: props.indexContextValue
8551
8498
  });
@@ -8561,17 +8508,14 @@ function _arrayWithHoles(arr) {
8561
8508
  }
8562
8509
 
8563
8510
  function _iterableToArrayLimit(arr, i) {
8564
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8565
-
8566
- if (_i == null) return;
8511
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
8567
8512
  var _arr = [];
8568
8513
  var _n = true;
8569
8514
  var _d = false;
8570
-
8571
- var _s, _e;
8515
+ var _e = undefined;
8572
8516
 
8573
8517
  try {
8574
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
8518
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
8575
8519
  _arr.push(_s.value);
8576
8520
 
8577
8521
  if (i && _arr.length === i) break;
@@ -8622,19 +8566,19 @@ function parseItem(value) {
8622
8566
  endStr = _value$split2[1];
8623
8567
 
8624
8568
  return {
8625
- start: startStr.length > 0 ? parseFloat(startStr) : null,
8626
- end: endStr.length > 0 ? parseFloat(endStr) : null
8569
+ start: startStr.length > 0 ? parseInt(startStr, 10) : null,
8570
+ end: endStr.length > 0 ? parseInt(endStr, 10) : null
8627
8571
  };
8628
8572
  }
8629
8573
 
8630
8574
  var namespace$3 = 'multiRange';
8631
8575
 
8632
- function getId$8(props) {
8576
+ function getId$7(props) {
8633
8577
  return props.attribute;
8634
8578
  }
8635
8579
 
8636
- function getCurrentRefinement$7(props, searchState, context) {
8637
- return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$8(props)), '');
8580
+ function getCurrentRefinement$4(props, searchState, context) {
8581
+ return getCurrentRefinementValue(props, searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)), '');
8638
8582
  }
8639
8583
 
8640
8584
  function isRefinementsRangeIncludesInsideItemRange(stats, start, end) {
@@ -8653,15 +8597,15 @@ function itemHasRefinement(attribute, results, value) {
8653
8597
  return !(Boolean(stats) && (isRefinementsRangeIncludesInsideItemRange(stats, start, end) || isItemRangeIncludedInsideRefinementsRange(stats, start, end)));
8654
8598
  }
8655
8599
 
8656
- function _refine$6(props, searchState, nextRefinement, context) {
8657
- var nextValue = _defineProperty({}, getId$8(props), nextRefinement);
8600
+ function _refine$3(props, searchState, nextRefinement, context) {
8601
+ var nextValue = _defineProperty({}, getId$7(props), nextRefinement);
8658
8602
 
8659
8603
  var resetPage = true;
8660
8604
  return refineValue(searchState, nextValue, context, resetPage, namespace$3);
8661
8605
  }
8662
8606
 
8663
- function _cleanUp$5(props, searchState, context) {
8664
- return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$8(props)));
8607
+ function _cleanUp$2(props, searchState, context) {
8608
+ return cleanUpValue(searchState, context, "".concat(namespace$3, ".").concat(getId$7(props)));
8665
8609
  }
8666
8610
  /**
8667
8611
  * connectNumericMenu connector provides the logic to build a widget that will
@@ -8695,7 +8639,7 @@ var connectNumericMenu = createConnectorWithContext({
8695
8639
  },
8696
8640
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
8697
8641
  var attribute = props.attribute;
8698
- var currentRefinement = getCurrentRefinement$7(props, searchState, {
8642
+ var currentRefinement = getCurrentRefinement$4(props, searchState, {
8699
8643
  ais: props.contextValue,
8700
8644
  multiIndexContext: props.indexContextValue
8701
8645
  });
@@ -8709,11 +8653,11 @@ var connectNumericMenu = createConnectorWithContext({
8709
8653
  label: item.label,
8710
8654
  value: value,
8711
8655
  isRefined: value === currentRefinement,
8712
- noRefinement: results ? itemHasRefinement(getId$8(props), results, value) : false
8656
+ noRefinement: results ? itemHasRefinement(getId$7(props), results, value) : false
8713
8657
  };
8714
8658
  });
8715
8659
  var stats = results && results.getFacetByName(attribute) ? results.getFacetStats(attribute) : null;
8716
- var refinedItem = find$2(items, function (item) {
8660
+ var refinedItem = find(items, function (item) {
8717
8661
  return item.isRefined === true;
8718
8662
  });
8719
8663
 
@@ -8738,13 +8682,13 @@ var connectNumericMenu = createConnectorWithContext({
8738
8682
  };
8739
8683
  },
8740
8684
  refine: function refine(props, searchState, nextRefinement) {
8741
- return _refine$6(props, searchState, nextRefinement, {
8685
+ return _refine$3(props, searchState, nextRefinement, {
8742
8686
  ais: props.contextValue,
8743
8687
  multiIndexContext: props.indexContextValue
8744
8688
  });
8745
8689
  },
8746
8690
  cleanUp: function cleanUp(props, searchState) {
8747
- return _cleanUp$5(props, searchState, {
8691
+ return _cleanUp$2(props, searchState, {
8748
8692
  ais: props.contextValue,
8749
8693
  multiIndexContext: props.indexContextValue
8750
8694
  });
@@ -8752,7 +8696,7 @@ var connectNumericMenu = createConnectorWithContext({
8752
8696
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8753
8697
  var attribute = props.attribute;
8754
8698
 
8755
- var _parseItem = parseItem(getCurrentRefinement$7(props, searchState, {
8699
+ var _parseItem = parseItem(getCurrentRefinement$4(props, searchState, {
8756
8700
  ais: props.contextValue,
8757
8701
  multiIndexContext: props.indexContextValue
8758
8702
  })),
@@ -8772,8 +8716,8 @@ var connectNumericMenu = createConnectorWithContext({
8772
8716
  return searchParameters;
8773
8717
  },
8774
8718
  getMetadata: function getMetadata(props, searchState) {
8775
- var id = getId$8(props);
8776
- var value = getCurrentRefinement$7(props, searchState, {
8719
+ var id = getId$7(props);
8720
+ var value = getCurrentRefinement$4(props, searchState, {
8777
8721
  ais: props.contextValue,
8778
8722
  multiIndexContext: props.indexContextValue
8779
8723
  });
@@ -8784,7 +8728,7 @@ var connectNumericMenu = createConnectorWithContext({
8784
8728
  });
8785
8729
 
8786
8730
  if (value !== '') {
8787
- var _find = find$2(props.items, function (item) {
8731
+ var _find = find(props.items, function (item) {
8788
8732
  return stringifyItem(item) === value;
8789
8733
  }),
8790
8734
  label = _find.label;
@@ -8794,7 +8738,7 @@ var connectNumericMenu = createConnectorWithContext({
8794
8738
  attribute: props.attribute,
8795
8739
  currentRefinement: label,
8796
8740
  value: function value(nextState) {
8797
- return _refine$6(props, nextState, '', {
8741
+ return _refine$3(props, nextState, '', {
8798
8742
  ais: props.contextValue,
8799
8743
  multiIndexContext: props.indexContextValue
8800
8744
  });
@@ -8810,12 +8754,12 @@ var connectNumericMenu = createConnectorWithContext({
8810
8754
  }
8811
8755
  });
8812
8756
 
8813
- function getId$7() {
8757
+ function getId$8() {
8814
8758
  return 'page';
8815
8759
  }
8816
8760
 
8817
- function getCurrentRefinement$6(props, searchState, context) {
8818
- var id = getId$7();
8761
+ function getCurrentRefinement$5(props, searchState, context) {
8762
+ var id = getId$8();
8819
8763
  var page = 1;
8820
8764
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, page);
8821
8765
 
@@ -8826,8 +8770,8 @@ function getCurrentRefinement$6(props, searchState, context) {
8826
8770
  return currentRefinement;
8827
8771
  }
8828
8772
 
8829
- function _refine$5(props, searchState, nextPage, context) {
8830
- var id = getId$7();
8773
+ function _refine$4(props, searchState, nextPage, context) {
8774
+ var id = getId$8();
8831
8775
 
8832
8776
  var nextValue = _defineProperty({}, id, nextPage);
8833
8777
 
@@ -8867,7 +8811,7 @@ var connectPagination = createConnectorWithContext({
8867
8811
  var nbPages = results.nbPages;
8868
8812
  return {
8869
8813
  nbPages: nbPages,
8870
- currentRefinement: getCurrentRefinement$6(props, searchState, {
8814
+ currentRefinement: getCurrentRefinement$5(props, searchState, {
8871
8815
  ais: props.contextValue,
8872
8816
  multiIndexContext: props.indexContextValue
8873
8817
  }),
@@ -8875,7 +8819,7 @@ var connectPagination = createConnectorWithContext({
8875
8819
  };
8876
8820
  },
8877
8821
  refine: function refine(props, searchState, nextPage) {
8878
- return _refine$5(props, searchState, nextPage, {
8822
+ return _refine$4(props, searchState, nextPage, {
8879
8823
  ais: props.contextValue,
8880
8824
  multiIndexContext: props.indexContextValue
8881
8825
  });
@@ -8884,17 +8828,17 @@ var connectPagination = createConnectorWithContext({
8884
8828
  return cleanUpValue(searchState, {
8885
8829
  ais: props.contextValue,
8886
8830
  multiIndexContext: props.indexContextValue
8887
- }, getId$7());
8831
+ }, getId$8());
8888
8832
  },
8889
8833
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
8890
- return searchParameters.setPage(getCurrentRefinement$6(props, searchState, {
8834
+ return searchParameters.setPage(getCurrentRefinement$5(props, searchState, {
8891
8835
  ais: props.contextValue,
8892
8836
  multiIndexContext: props.indexContextValue
8893
8837
  }) - 1);
8894
8838
  },
8895
8839
  getMetadata: function getMetadata() {
8896
8840
  return {
8897
- id: getId$7()
8841
+ id: getId$8()
8898
8842
  };
8899
8843
  }
8900
8844
  });
@@ -8940,11 +8884,11 @@ var connectPoweredBy = createConnectorWithContext({
8940
8884
  * @providedPropType {number} precision - Number of digits after decimal point to use.
8941
8885
  */
8942
8886
 
8943
- function getId$6(props) {
8887
+ function getId$9(props) {
8944
8888
  return props.attribute;
8945
8889
  }
8946
8890
 
8947
- var namespace$2 = 'range';
8891
+ var namespace$4 = 'range';
8948
8892
 
8949
8893
  function getCurrentRange(boundaries, stats, precision) {
8950
8894
  var pow = Math.pow(10, precision);
@@ -8974,8 +8918,8 @@ function getCurrentRange(boundaries, stats, precision) {
8974
8918
  };
8975
8919
  }
8976
8920
 
8977
- function getCurrentRefinement$5(props, searchState, currentRange, context) {
8978
- var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)), {}),
8921
+ function getCurrentRefinement$6(props, searchState, currentRange, context) {
8922
+ var _getCurrentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)), {}),
8979
8923
  min = _getCurrentRefinement.min,
8980
8924
  max = _getCurrentRefinement.max;
8981
8925
 
@@ -9041,7 +8985,7 @@ function nextValueForRefinement(hasBound, isReset, range, value) {
9041
8985
  return next;
9042
8986
  }
9043
8987
 
9044
- function _refine$4(props, searchState, nextRefinement, currentRange, context) {
8988
+ function _refine$5(props, searchState, nextRefinement, currentRange, context) {
9045
8989
  var nextMin = nextRefinement.min,
9046
8990
  nextMax = nextRefinement.max;
9047
8991
  var currentMinRange = currentRange.min,
@@ -9065,7 +9009,7 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
9065
9009
  throw Error("You can't provide max value greater than range.");
9066
9010
  }
9067
9011
 
9068
- var id = getId$6(props);
9012
+ var id = getId$9(props);
9069
9013
  var resetPage = true;
9070
9014
 
9071
9015
  var nextValue = _defineProperty({}, id, {
@@ -9073,11 +9017,11 @@ function _refine$4(props, searchState, nextRefinement, currentRange, context) {
9073
9017
  max: nextValueForRefinement(props.max !== undefined, isMaxReset, currentMaxRange, nextMaxAsNumber)
9074
9018
  });
9075
9019
 
9076
- return refineValue(searchState, nextValue, context, resetPage, namespace$2);
9020
+ return refineValue(searchState, nextValue, context, resetPage, namespace$4);
9077
9021
  }
9078
9022
 
9079
- function _cleanUp$4(props, searchState, context) {
9080
- return cleanUpValue(searchState, context, "".concat(namespace$2, ".").concat(getId$6(props)));
9023
+ function _cleanUp$3(props, searchState, context) {
9024
+ return cleanUpValue(searchState, context, "".concat(namespace$4, ".").concat(getId$9(props)));
9081
9025
  }
9082
9026
 
9083
9027
  var connectRange = createConnectorWithContext({
@@ -9132,7 +9076,7 @@ var connectRange = createConnectorWithContext({
9132
9076
  min: rangeMin,
9133
9077
  max: rangeMax
9134
9078
  };
9135
- var currentRefinement = getCurrentRefinement$5(props, searchState, this._currentRange, {
9079
+ var currentRefinement = getCurrentRefinement$6(props, searchState, this._currentRange, {
9136
9080
  ais: props.contextValue,
9137
9081
  multiIndexContext: props.indexContextValue
9138
9082
  });
@@ -9146,13 +9090,13 @@ var connectRange = createConnectorWithContext({
9146
9090
  };
9147
9091
  },
9148
9092
  refine: function refine(props, searchState, nextRefinement) {
9149
- return _refine$4(props, searchState, nextRefinement, this._currentRange, {
9093
+ return _refine$5(props, searchState, nextRefinement, this._currentRange, {
9150
9094
  ais: props.contextValue,
9151
9095
  multiIndexContext: props.indexContextValue
9152
9096
  });
9153
9097
  },
9154
9098
  cleanUp: function cleanUp(props, searchState) {
9155
- return _cleanUp$4(props, searchState, {
9099
+ return _cleanUp$3(props, searchState, {
9156
9100
  ais: props.contextValue,
9157
9101
  multiIndexContext: props.indexContextValue
9158
9102
  });
@@ -9160,7 +9104,7 @@ var connectRange = createConnectorWithContext({
9160
9104
  getSearchParameters: function getSearchParameters(params, props, searchState) {
9161
9105
  var attribute = props.attribute;
9162
9106
 
9163
- var _getCurrentRefinement2 = getCurrentRefinement$5(props, searchState, this._currentRange, {
9107
+ var _getCurrentRefinement2 = getCurrentRefinement$6(props, searchState, this._currentRange, {
9164
9108
  ais: props.contextValue,
9165
9109
  multiIndexContext: props.indexContextValue
9166
9110
  }),
@@ -9186,7 +9130,7 @@ var connectRange = createConnectorWithContext({
9186
9130
  minRange = _this$_currentRange.min,
9187
9131
  maxRange = _this$_currentRange.max;
9188
9132
 
9189
- var _getCurrentRefinement3 = getCurrentRefinement$5(props, searchState, this._currentRange, {
9133
+ var _getCurrentRefinement3 = getCurrentRefinement$6(props, searchState, this._currentRange, {
9190
9134
  ais: props.contextValue,
9191
9135
  multiIndexContext: props.indexContextValue
9192
9136
  }),
@@ -9205,7 +9149,7 @@ var connectRange = createConnectorWithContext({
9205
9149
  label: fragments.join(''),
9206
9150
  attribute: props.attribute,
9207
9151
  value: function value(nextState) {
9208
- return _refine$4(props, nextState, {}, _this._currentRange, {
9152
+ return _refine$5(props, nextState, {}, _this._currentRange, {
9209
9153
  ais: props.contextValue,
9210
9154
  multiIndexContext: props.indexContextValue
9211
9155
  });
@@ -9221,7 +9165,7 @@ var connectRange = createConnectorWithContext({
9221
9165
  }
9222
9166
 
9223
9167
  return {
9224
- id: getId$6(props),
9168
+ id: getId$9(props),
9225
9169
  index: getIndexId({
9226
9170
  ais: props.contextValue,
9227
9171
  multiIndexContext: props.indexContextValue
@@ -9231,14 +9175,14 @@ var connectRange = createConnectorWithContext({
9231
9175
  }
9232
9176
  });
9233
9177
 
9234
- var namespace$1 = 'refinementList';
9178
+ var namespace$5 = 'refinementList';
9235
9179
 
9236
- function getId$5(props) {
9180
+ function getId$a(props) {
9237
9181
  return props.attribute;
9238
9182
  }
9239
9183
 
9240
- function getCurrentRefinement$4(props, searchState, context) {
9241
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$1, ".").concat(getId$5(props)), []);
9184
+ function getCurrentRefinement$7(props, searchState, context) {
9185
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)), []);
9242
9186
 
9243
9187
  if (typeof currentRefinement !== 'string') {
9244
9188
  return currentRefinement;
@@ -9251,8 +9195,8 @@ function getCurrentRefinement$4(props, searchState, context) {
9251
9195
  return [];
9252
9196
  }
9253
9197
 
9254
- function getValue(name, props, searchState, context) {
9255
- var currentRefinement = getCurrentRefinement$4(props, searchState, context);
9198
+ function getValue$2(name, props, searchState, context) {
9199
+ var currentRefinement = getCurrentRefinement$7(props, searchState, context);
9256
9200
  var isAnewValue = currentRefinement.indexOf(name) === -1;
9257
9201
  var nextRefinement = isAnewValue ? currentRefinement.concat([name]) // cannot use .push(), it mutates
9258
9202
  : currentRefinement.filter(function (selectedValue) {
@@ -9262,15 +9206,15 @@ function getValue(name, props, searchState, context) {
9262
9206
  return nextRefinement;
9263
9207
  }
9264
9208
 
9265
- function getLimit(_ref) {
9209
+ function getLimit$1(_ref) {
9266
9210
  var showMore = _ref.showMore,
9267
9211
  limit = _ref.limit,
9268
9212
  showMoreLimit = _ref.showMoreLimit;
9269
9213
  return showMore ? showMoreLimit : limit;
9270
9214
  }
9271
9215
 
9272
- function _refine$3(props, searchState, nextRefinement, context) {
9273
- var id = getId$5(props); // Setting the value to an empty string ensures that it is persisted in
9216
+ function _refine$6(props, searchState, nextRefinement, context) {
9217
+ var id = getId$a(props); // Setting the value to an empty string ensures that it is persisted in
9274
9218
  // the URL as an empty value.
9275
9219
  // This is necessary in the case where `defaultRefinement` contains one
9276
9220
  // item and we try to deselect it. `nextSelected` would be an empty array,
@@ -9281,11 +9225,11 @@ function _refine$3(props, searchState, nextRefinement, context) {
9281
9225
  var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');
9282
9226
 
9283
9227
  var resetPage = true;
9284
- return refineValue(searchState, nextValue, context, resetPage, namespace$1);
9228
+ return refineValue(searchState, nextValue, context, resetPage, namespace$5);
9285
9229
  }
9286
9230
 
9287
- function _cleanUp$3(props, searchState, context) {
9288
- return cleanUpValue(searchState, context, "".concat(namespace$1, ".").concat(getId$5(props)));
9231
+ function _cleanUp$4(props, searchState, context) {
9232
+ return cleanUpValue(searchState, context, "".concat(namespace$5, ".").concat(getId$a(props)));
9289
9233
  }
9290
9234
  /**
9291
9235
  * connectRefinementList connector provides the logic to build a widget that will
@@ -9312,7 +9256,7 @@ function _cleanUp$3(props, searchState, context) {
9312
9256
  */
9313
9257
 
9314
9258
 
9315
- var sortBy = ['isRefined', 'count:desc', 'name:asc'];
9259
+ var sortBy$1 = ['isRefined', 'count:desc', 'name:asc'];
9316
9260
  var connectRefinementList = createConnectorWithContext({
9317
9261
  displayName: 'AlgoliaRefinementList',
9318
9262
  propTypes: {
@@ -9350,7 +9294,7 @@ var connectRefinementList = createConnectorWithContext({
9350
9294
  if (!canRefine) {
9351
9295
  return {
9352
9296
  items: [],
9353
- currentRefinement: getCurrentRefinement$4(props, searchState, {
9297
+ currentRefinement: getCurrentRefinement$7(props, searchState, {
9354
9298
  ais: props.contextValue,
9355
9299
  multiIndexContext: props.indexContextValue
9356
9300
  }),
@@ -9363,7 +9307,7 @@ var connectRefinementList = createConnectorWithContext({
9363
9307
  var items = isFromSearch ? searchForFacetValuesResults[attribute].map(function (v) {
9364
9308
  return {
9365
9309
  label: v.value,
9366
- value: getValue(v.value, props, searchState, {
9310
+ value: getValue$2(v.value, props, searchState, {
9367
9311
  ais: props.contextValue,
9368
9312
  multiIndexContext: props.indexContextValue
9369
9313
  }),
@@ -9376,11 +9320,11 @@ var connectRefinementList = createConnectorWithContext({
9376
9320
  isRefined: v.isRefined
9377
9321
  };
9378
9322
  }) : results.getFacetValues(attribute, {
9379
- sortBy: sortBy
9323
+ sortBy: sortBy$1
9380
9324
  }).map(function (v) {
9381
9325
  return {
9382
9326
  label: v.name,
9383
- value: getValue(v.name, props, searchState, {
9327
+ value: getValue$2(v.name, props, searchState, {
9384
9328
  ais: props.contextValue,
9385
9329
  multiIndexContext: props.indexContextValue
9386
9330
  }),
@@ -9390,8 +9334,8 @@ var connectRefinementList = createConnectorWithContext({
9390
9334
  });
9391
9335
  var transformedItems = props.transformItems ? props.transformItems(items) : items;
9392
9336
  return {
9393
- items: transformedItems.slice(0, getLimit(props)),
9394
- currentRefinement: getCurrentRefinement$4(props, searchState, {
9337
+ items: transformedItems.slice(0, getLimit$1(props)),
9338
+ currentRefinement: getCurrentRefinement$7(props, searchState, {
9395
9339
  ais: props.contextValue,
9396
9340
  multiIndexContext: props.indexContextValue
9397
9341
  }),
@@ -9401,7 +9345,7 @@ var connectRefinementList = createConnectorWithContext({
9401
9345
  };
9402
9346
  },
9403
9347
  refine: function refine(props, searchState, nextRefinement) {
9404
- return _refine$3(props, searchState, nextRefinement, {
9348
+ return _refine$6(props, searchState, nextRefinement, {
9405
9349
  ais: props.contextValue,
9406
9350
  multiIndexContext: props.indexContextValue
9407
9351
  });
@@ -9410,11 +9354,11 @@ var connectRefinementList = createConnectorWithContext({
9410
9354
  return {
9411
9355
  facetName: props.attribute,
9412
9356
  query: nextRefinement,
9413
- maxFacetHits: getLimit(props)
9357
+ maxFacetHits: getLimit$1(props)
9414
9358
  };
9415
9359
  },
9416
9360
  cleanUp: function cleanUp(props, searchState) {
9417
- return _cleanUp$3(props, searchState, {
9361
+ return _cleanUp$4(props, searchState, {
9418
9362
  ais: props.contextValue,
9419
9363
  multiIndexContext: props.indexContextValue
9420
9364
  });
@@ -9425,10 +9369,10 @@ var connectRefinementList = createConnectorWithContext({
9425
9369
  var addKey = operator === 'and' ? 'addFacet' : 'addDisjunctiveFacet';
9426
9370
  var addRefinementKey = "".concat(addKey, "Refinement");
9427
9371
  searchParameters = searchParameters.setQueryParameters({
9428
- maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))
9372
+ maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit$1(props))
9429
9373
  });
9430
9374
  searchParameters = searchParameters[addKey](attribute);
9431
- return getCurrentRefinement$4(props, searchState, {
9375
+ return getCurrentRefinement$7(props, searchState, {
9432
9376
  ais: props.contextValue,
9433
9377
  multiIndexContext: props.indexContextValue
9434
9378
  }).reduce(function (res, val) {
@@ -9436,7 +9380,7 @@ var connectRefinementList = createConnectorWithContext({
9436
9380
  }, searchParameters);
9437
9381
  },
9438
9382
  getMetadata: function getMetadata(props, searchState) {
9439
- var id = getId$5(props);
9383
+ var id = getId$a(props);
9440
9384
  var context = {
9441
9385
  ais: props.contextValue,
9442
9386
  multiIndexContext: props.indexContextValue
@@ -9444,21 +9388,21 @@ var connectRefinementList = createConnectorWithContext({
9444
9388
  return {
9445
9389
  id: id,
9446
9390
  index: getIndexId(context),
9447
- items: getCurrentRefinement$4(props, searchState, context).length > 0 ? [{
9391
+ items: getCurrentRefinement$7(props, searchState, context).length > 0 ? [{
9448
9392
  attribute: props.attribute,
9449
9393
  label: "".concat(props.attribute, ": "),
9450
- currentRefinement: getCurrentRefinement$4(props, searchState, context),
9394
+ currentRefinement: getCurrentRefinement$7(props, searchState, context),
9451
9395
  value: function value(nextState) {
9452
- return _refine$3(props, nextState, [], context);
9396
+ return _refine$6(props, nextState, [], context);
9453
9397
  },
9454
- items: getCurrentRefinement$4(props, searchState, context).map(function (item) {
9398
+ items: getCurrentRefinement$7(props, searchState, context).map(function (item) {
9455
9399
  return {
9456
9400
  label: "".concat(item),
9457
9401
  value: function value(nextState) {
9458
- var nextSelectedItems = getCurrentRefinement$4(props, nextState, context).filter(function (other) {
9402
+ var nextSelectedItems = getCurrentRefinement$7(props, nextState, context).filter(function (other) {
9459
9403
  return other !== item;
9460
9404
  });
9461
- return _refine$3(props, searchState, nextSelectedItems, context);
9405
+ return _refine$6(props, searchState, nextSelectedItems, context);
9462
9406
  }
9463
9407
  };
9464
9408
  })
@@ -9517,7 +9461,7 @@ var connectScrollTo = createConnectorWithContext({
9517
9461
  // See: https://github.com/algolia/react-instantsearch/issues/164
9518
9462
 
9519
9463
 
9520
- var cleanedSearchState = omit$1(searchState, ['configure', id]);
9464
+ var cleanedSearchState = omit(searchState, ['configure', id]);
9521
9465
  var hasNotChanged = shallowEqual(this._prevSearchState, cleanedSearchState);
9522
9466
  this._prevSearchState = cleanedSearchState;
9523
9467
  return {
@@ -9527,12 +9471,12 @@ var connectScrollTo = createConnectorWithContext({
9527
9471
  }
9528
9472
  });
9529
9473
 
9530
- function getId$4() {
9474
+ function getId$b() {
9531
9475
  return 'query';
9532
9476
  }
9533
9477
 
9534
- function getCurrentRefinement$3(props, searchState, context) {
9535
- var id = getId$4();
9478
+ function getCurrentRefinement$8(props, searchState, context) {
9479
+ var id = getId$b();
9536
9480
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
9537
9481
 
9538
9482
  if (currentRefinement) {
@@ -9542,8 +9486,8 @@ function getCurrentRefinement$3(props, searchState, context) {
9542
9486
  return '';
9543
9487
  }
9544
9488
 
9545
- function _refine$2(props, searchState, nextRefinement, context) {
9546
- var id = getId$4();
9489
+ function _refine$7(props, searchState, nextRefinement, context) {
9490
+ var id = getId$b();
9547
9491
 
9548
9492
  var nextValue = _defineProperty({}, id, nextRefinement);
9549
9493
 
@@ -9551,8 +9495,8 @@ function _refine$2(props, searchState, nextRefinement, context) {
9551
9495
  return refineValue(searchState, nextValue, context, resetPage);
9552
9496
  }
9553
9497
 
9554
- function _cleanUp$2(props, searchState, context) {
9555
- return cleanUpValue(searchState, context, getId$4());
9498
+ function _cleanUp$5(props, searchState, context) {
9499
+ return cleanUpValue(searchState, context, getId$b());
9556
9500
  }
9557
9501
  /**
9558
9502
  * connectSearchBox connector provides the logic to build a widget that will
@@ -9573,7 +9517,7 @@ var connectSearchBox = createConnectorWithContext({
9573
9517
  },
9574
9518
  getProvidedProps: function getProvidedProps(props, searchState, searchResults) {
9575
9519
  return {
9576
- currentRefinement: getCurrentRefinement$3(props, searchState, {
9520
+ currentRefinement: getCurrentRefinement$8(props, searchState, {
9577
9521
  ais: props.contextValue,
9578
9522
  multiIndexContext: props.indexContextValue
9579
9523
  }),
@@ -9581,26 +9525,26 @@ var connectSearchBox = createConnectorWithContext({
9581
9525
  };
9582
9526
  },
9583
9527
  refine: function refine(props, searchState, nextRefinement) {
9584
- return _refine$2(props, searchState, nextRefinement, {
9528
+ return _refine$7(props, searchState, nextRefinement, {
9585
9529
  ais: props.contextValue,
9586
9530
  multiIndexContext: props.indexContextValue
9587
9531
  });
9588
9532
  },
9589
9533
  cleanUp: function cleanUp(props, searchState) {
9590
- return _cleanUp$2(props, searchState, {
9534
+ return _cleanUp$5(props, searchState, {
9591
9535
  ais: props.contextValue,
9592
9536
  multiIndexContext: props.indexContextValue
9593
9537
  });
9594
9538
  },
9595
9539
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
9596
- return searchParameters.setQuery(getCurrentRefinement$3(props, searchState, {
9540
+ return searchParameters.setQuery(getCurrentRefinement$8(props, searchState, {
9597
9541
  ais: props.contextValue,
9598
9542
  multiIndexContext: props.indexContextValue
9599
9543
  }));
9600
9544
  },
9601
9545
  getMetadata: function getMetadata(props, searchState) {
9602
- var id = getId$4();
9603
- var currentRefinement = getCurrentRefinement$3(props, searchState, {
9546
+ var id = getId$b();
9547
+ var currentRefinement = getCurrentRefinement$8(props, searchState, {
9604
9548
  ais: props.contextValue,
9605
9549
  multiIndexContext: props.indexContextValue
9606
9550
  });
@@ -9613,7 +9557,7 @@ var connectSearchBox = createConnectorWithContext({
9613
9557
  items: currentRefinement === null ? [] : [{
9614
9558
  label: "".concat(id, ": ").concat(currentRefinement),
9615
9559
  value: function value(nextState) {
9616
- return _refine$2(props, nextState, '', {
9560
+ return _refine$7(props, nextState, '', {
9617
9561
  ais: props.contextValue,
9618
9562
  multiIndexContext: props.indexContextValue
9619
9563
  });
@@ -9624,12 +9568,12 @@ var connectSearchBox = createConnectorWithContext({
9624
9568
  }
9625
9569
  });
9626
9570
 
9627
- function getId$3() {
9571
+ function getId$c() {
9628
9572
  return 'relevancyStrictness';
9629
9573
  }
9630
9574
 
9631
- function getCurrentRefinement$2(props, searchState, context) {
9632
- var id = getId$3();
9575
+ function getCurrentRefinement$9(props, searchState, context) {
9576
+ var id = getId$c();
9633
9577
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id);
9634
9578
  return currentRefinement;
9635
9579
  }
@@ -9655,13 +9599,13 @@ var connectRelevantSort = createConnectorWithContext({
9655
9599
  };
9656
9600
  },
9657
9601
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
9658
- return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$2(props, searchState, {
9602
+ return searchParameters.setQueryParameter('relevancyStrictness', getCurrentRefinement$9(props, searchState, {
9659
9603
  ais: props.contextValue,
9660
9604
  multiIndexContext: props.indexContextValue
9661
9605
  }));
9662
9606
  },
9663
9607
  refine: function refine(props, searchState, nextRefinement) {
9664
- var nextValue = _defineProperty({}, getId$3(), nextRefinement);
9608
+ var nextValue = _defineProperty({}, getId$c(), nextRefinement);
9665
9609
 
9666
9610
  var resetPage = true;
9667
9611
  return refineValue(searchState, nextValue, {
@@ -9671,12 +9615,12 @@ var connectRelevantSort = createConnectorWithContext({
9671
9615
  }
9672
9616
  });
9673
9617
 
9674
- function getId$2() {
9618
+ function getId$d() {
9675
9619
  return 'sortBy';
9676
9620
  }
9677
9621
 
9678
- function getCurrentRefinement$1(props, searchState, context) {
9679
- var id = getId$2();
9622
+ function getCurrentRefinement$a(props, searchState, context) {
9623
+ var id = getId$d();
9680
9624
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, null);
9681
9625
 
9682
9626
  if (currentRefinement) {
@@ -9713,7 +9657,7 @@ var connectSortBy = createConnectorWithContext({
9713
9657
  transformItems: PropTypes.func
9714
9658
  },
9715
9659
  getProvidedProps: function getProvidedProps(props, searchState) {
9716
- var currentRefinement = getCurrentRefinement$1(props, searchState, {
9660
+ var currentRefinement = getCurrentRefinement$a(props, searchState, {
9717
9661
  ais: props.contextValue,
9718
9662
  multiIndexContext: props.indexContextValue
9719
9663
  });
@@ -9730,7 +9674,7 @@ var connectSortBy = createConnectorWithContext({
9730
9674
  };
9731
9675
  },
9732
9676
  refine: function refine(props, searchState, nextRefinement) {
9733
- var id = getId$2();
9677
+ var id = getId$d();
9734
9678
 
9735
9679
  var nextValue = _defineProperty({}, id, nextRefinement);
9736
9680
 
@@ -9744,10 +9688,10 @@ var connectSortBy = createConnectorWithContext({
9744
9688
  return cleanUpValue(searchState, {
9745
9689
  ais: props.contextValue,
9746
9690
  multiIndexContext: props.indexContextValue
9747
- }, getId$2());
9691
+ }, getId$d());
9748
9692
  },
9749
9693
  getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {
9750
- var selectedIndex = getCurrentRefinement$1(props, searchState, {
9694
+ var selectedIndex = getCurrentRefinement$a(props, searchState, {
9751
9695
  ais: props.contextValue,
9752
9696
  multiIndexContext: props.indexContextValue
9753
9697
  });
@@ -9755,7 +9699,7 @@ var connectSortBy = createConnectorWithContext({
9755
9699
  },
9756
9700
  getMetadata: function getMetadata() {
9757
9701
  return {
9758
- id: getId$2()
9702
+ id: getId$d()
9759
9703
  };
9760
9704
  }
9761
9705
  });
@@ -9791,15 +9735,15 @@ var connectStats = createConnectorWithContext({
9791
9735
  }
9792
9736
  });
9793
9737
 
9794
- function getId$1(props) {
9738
+ function getId$e(props) {
9795
9739
  return props.attribute;
9796
9740
  }
9797
9741
 
9798
- var namespace = 'toggle';
9742
+ var namespace$6 = 'toggle';
9799
9743
  var falsyStrings = ['0', 'false', 'null', 'undefined'];
9800
9744
 
9801
- function getCurrentRefinement(props, searchState, context) {
9802
- var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace, ".").concat(getId$1(props)), false);
9745
+ function getCurrentRefinement$b(props, searchState, context) {
9746
+ var currentRefinement = getCurrentRefinementValue(props, searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)), false);
9803
9747
 
9804
9748
  if (falsyStrings.indexOf(currentRefinement) !== -1) {
9805
9749
  return false;
@@ -9808,17 +9752,17 @@ function getCurrentRefinement(props, searchState, context) {
9808
9752
  return Boolean(currentRefinement);
9809
9753
  }
9810
9754
 
9811
- function _refine$1(props, searchState, nextRefinement, context) {
9812
- var id = getId$1(props);
9755
+ function _refine$8(props, searchState, nextRefinement, context) {
9756
+ var id = getId$e(props);
9813
9757
 
9814
9758
  var nextValue = _defineProperty({}, id, nextRefinement ? nextRefinement : false);
9815
9759
 
9816
9760
  var resetPage = true;
9817
- return refineValue(searchState, nextValue, context, resetPage, namespace);
9761
+ return refineValue(searchState, nextValue, context, resetPage, namespace$6);
9818
9762
  }
9819
9763
 
9820
- function _cleanUp$1(props, searchState, context) {
9821
- return cleanUpValue(searchState, context, "".concat(namespace, ".").concat(getId$1(props)));
9764
+ function _cleanUp$6(props, searchState, context) {
9765
+ return cleanUpValue(searchState, context, "".concat(namespace$6, ".").concat(getId$e(props)));
9822
9766
  }
9823
9767
  /**
9824
9768
  * connectToggleRefinement connector provides the logic to build a widget that will
@@ -9857,14 +9801,14 @@ var connectToggleRefinement = createConnectorWithContext({
9857
9801
  ais: props.contextValue,
9858
9802
  multiIndexContext: props.indexContextValue
9859
9803
  });
9860
- var currentRefinement = getCurrentRefinement(props, searchState, {
9804
+ var currentRefinement = getCurrentRefinement$b(props, searchState, {
9861
9805
  ais: props.contextValue,
9862
9806
  multiIndexContext: props.indexContextValue
9863
9807
  });
9864
9808
  var allFacetValues = results && results.getFacetByName(attribute) ? results.getFacetValues(attribute) : null;
9865
9809
  var facetValue = // Use null to always be consistent with type of the value
9866
9810
  // count: number | null
9867
- allFacetValues && allFacetValues.length ? find$2(allFacetValues, function (item) {
9811
+ allFacetValues && allFacetValues.length ? find(allFacetValues, function (item) {
9868
9812
  return item.name === value.toString();
9869
9813
  }) : null;
9870
9814
  var facetValueCount = facetValue && facetValue.count;
@@ -9885,13 +9829,13 @@ var connectToggleRefinement = createConnectorWithContext({
9885
9829
  };
9886
9830
  },
9887
9831
  refine: function refine(props, searchState, nextRefinement) {
9888
- return _refine$1(props, searchState, nextRefinement, {
9832
+ return _refine$8(props, searchState, nextRefinement, {
9889
9833
  ais: props.contextValue,
9890
9834
  multiIndexContext: props.indexContextValue
9891
9835
  });
9892
9836
  },
9893
9837
  cleanUp: function cleanUp(props, searchState) {
9894
- return _cleanUp$1(props, searchState, {
9838
+ return _cleanUp$6(props, searchState, {
9895
9839
  ais: props.contextValue,
9896
9840
  multiIndexContext: props.indexContextValue
9897
9841
  });
@@ -9900,7 +9844,7 @@ var connectToggleRefinement = createConnectorWithContext({
9900
9844
  var attribute = props.attribute,
9901
9845
  value = props.value,
9902
9846
  filter = props.filter;
9903
- var checked = getCurrentRefinement(props, searchState, {
9847
+ var checked = getCurrentRefinement$b(props, searchState, {
9904
9848
  ais: props.contextValue,
9905
9849
  multiIndexContext: props.indexContextValue
9906
9850
  });
@@ -9917,8 +9861,8 @@ var connectToggleRefinement = createConnectorWithContext({
9917
9861
  return nextSearchParameters;
9918
9862
  },
9919
9863
  getMetadata: function getMetadata(props, searchState) {
9920
- var id = getId$1(props);
9921
- var checked = getCurrentRefinement(props, searchState, {
9864
+ var id = getId$e(props);
9865
+ var checked = getCurrentRefinement$b(props, searchState, {
9922
9866
  ais: props.contextValue,
9923
9867
  multiIndexContext: props.indexContextValue
9924
9868
  });
@@ -9934,7 +9878,7 @@ var connectToggleRefinement = createConnectorWithContext({
9934
9878
  currentRefinement: checked,
9935
9879
  attribute: props.attribute,
9936
9880
  value: function value(nextState) {
9937
- return _refine$1(props, nextState, false, {
9881
+ return _refine$8(props, nextState, false, {
9938
9882
  ais: props.contextValue,
9939
9883
  multiIndexContext: props.indexContextValue
9940
9884
  });
@@ -9950,7 +9894,7 @@ var connectToggleRefinement = createConnectorWithContext({
9950
9894
  }
9951
9895
  });
9952
9896
 
9953
- function getId() {
9897
+ function getId$f() {
9954
9898
  return 'query';
9955
9899
  }
9956
9900
 
@@ -9959,7 +9903,7 @@ function getAdditionalId() {
9959
9903
  }
9960
9904
 
9961
9905
  function getCurrentRefinementQuery(props, searchState, context) {
9962
- var id = getId();
9906
+ var id = getId$f();
9963
9907
  var currentRefinement = getCurrentRefinementValue(props, searchState, context, id, '');
9964
9908
 
9965
9909
  if (currentRefinement) {
@@ -9980,10 +9924,10 @@ function getCurrentRefinementAdditional(props, searchState, context) {
9980
9924
  return {};
9981
9925
  }
9982
9926
 
9983
- function _refine(props, searchState, nextRefinement, context) {
9927
+ function _refine$9(props, searchState, nextRefinement, context) {
9984
9928
  var _nextValue;
9985
9929
 
9986
- var id = getId();
9930
+ var id = getId$f();
9987
9931
  var voiceParams = getAdditionalId();
9988
9932
  var queryLanguages = props.language ? {
9989
9933
  queryLanguages: [props.language.split('-')[0]]
@@ -10000,8 +9944,8 @@ function _refine(props, searchState, nextRefinement, context) {
10000
9944
  return refineValue(searchState, nextValue, context, resetPage);
10001
9945
  }
10002
9946
 
10003
- function _cleanUp(props, searchState, context) {
10004
- var interimState = cleanUpValue(searchState, context, getId());
9947
+ function _cleanUp$7(props, searchState, context) {
9948
+ var interimState = cleanUpValue(searchState, context, getId$f());
10005
9949
  return cleanUpValue(interimState, context, getAdditionalId());
10006
9950
  }
10007
9951
 
@@ -10020,13 +9964,13 @@ var connectVoiceSearch = createConnectorWithContext({
10020
9964
  };
10021
9965
  },
10022
9966
  refine: function refine(props, searchState, nextRefinement) {
10023
- return _refine(props, searchState, nextRefinement, {
9967
+ return _refine$9(props, searchState, nextRefinement, {
10024
9968
  ais: props.contextValue,
10025
9969
  multiIndexContext: props.indexContextValue
10026
9970
  });
10027
9971
  },
10028
9972
  cleanUp: function cleanUp(props, searchState) {
10029
- return _cleanUp(props, searchState, {
9973
+ return _cleanUp$7(props, searchState, {
10030
9974
  ais: props.contextValue,
10031
9975
  multiIndexContext: props.indexContextValue
10032
9976
  });
@@ -10043,7 +9987,7 @@ var connectVoiceSearch = createConnectorWithContext({
10043
9987
  return searchParameters.setQuery(query).setQueryParameters(additionalParams);
10044
9988
  },
10045
9989
  getMetadata: function getMetadata(props, searchState) {
10046
- var id = getId();
9990
+ var id = getId$f();
10047
9991
  var currentRefinement = getCurrentRefinementQuery(props, searchState, {
10048
9992
  ais: props.contextValue,
10049
9993
  multiIndexContext: props.indexContextValue
@@ -10057,7 +10001,7 @@ var connectVoiceSearch = createConnectorWithContext({
10057
10001
  items: currentRefinement === null ? [] : [{
10058
10002
  label: "".concat(id, ": ").concat(currentRefinement),
10059
10003
  value: function value(nextState) {
10060
- return _refine(props, nextState, '', {
10004
+ return _refine$9(props, nextState, '', {
10061
10005
  ais: props.contextValue,
10062
10006
  multiIndexContext: props.indexContextValue
10063
10007
  });
@@ -10110,7 +10054,7 @@ function range(_ref) {
10110
10054
  return (start + current) * limitStep;
10111
10055
  });
10112
10056
  }
10113
- function find(array, comparator) {
10057
+ function find$2(array, comparator) {
10114
10058
  if (!Array.isArray(array)) {
10115
10059
  return undefined;
10116
10060
  }
@@ -10124,11 +10068,11 @@ function find(array, comparator) {
10124
10068
  return undefined;
10125
10069
  }
10126
10070
 
10127
- var cx$p = createClassNames('Panel');
10071
+ var cx = createClassNames('Panel');
10128
10072
 
10129
- var _createContext = createContext(function setCanRefine() {}),
10130
- PanelConsumer = _createContext.Consumer,
10131
- PanelProvider = _createContext.Provider;
10073
+ var _createContext$1 = createContext(function setCanRefine() {}),
10074
+ PanelConsumer = _createContext$1.Consumer,
10075
+ PanelProvider = _createContext$1.Provider;
10132
10076
 
10133
10077
  var Panel =
10134
10078
  /*#__PURE__*/
@@ -10171,15 +10115,15 @@ function (_Component) {
10171
10115
  footer = _this$props.footer;
10172
10116
  var canRefine = this.state.canRefine;
10173
10117
  return React__default.createElement("div", {
10174
- className: classnames(cx$p('', !canRefine && '-noRefinement'), className)
10118
+ className: classnames(cx('', !canRefine && '-noRefinement'), className)
10175
10119
  }, header && React__default.createElement("div", {
10176
- className: cx$p('header')
10120
+ className: cx('header')
10177
10121
  }, header), React__default.createElement("div", {
10178
- className: cx$p('body')
10122
+ className: cx('body')
10179
10123
  }, React__default.createElement(PanelProvider, {
10180
10124
  value: this.setCanRefine
10181
10125
  }, children)), footer && React__default.createElement("div", {
10182
- className: cx$p('footer')
10126
+ className: cx('footer')
10183
10127
  }, footer));
10184
10128
  }
10185
10129
  }]);
@@ -10302,8 +10246,8 @@ _defineProperty(Link, "propTypes", {
10302
10246
  onClick: PropTypes.func.isRequired
10303
10247
  });
10304
10248
 
10305
- var cx$o = createClassNames('Breadcrumb');
10306
- var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
10249
+ var cx$1 = createClassNames('Breadcrumb');
10250
+ var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
10307
10251
  label: PropTypes.string.isRequired,
10308
10252
  value: PropTypes.string.isRequired
10309
10253
  }));
@@ -10332,9 +10276,9 @@ function (_Component) {
10332
10276
  translate = _this$props.translate,
10333
10277
  className = _this$props.className;
10334
10278
  var rootPath = canRefine ? React__default.createElement("li", {
10335
- className: cx$o('item')
10279
+ className: cx$1('item')
10336
10280
  }, React__default.createElement(Link, {
10337
- className: cx$o('link'),
10281
+ className: cx$1('link'),
10338
10282
  onClick: function onClick() {
10339
10283
  return !rootURL ? refine() : null;
10340
10284
  },
@@ -10343,12 +10287,12 @@ function (_Component) {
10343
10287
  var breadcrumb = items.map(function (item, idx) {
10344
10288
  var isLast = idx === items.length - 1;
10345
10289
  return React__default.createElement("li", {
10346
- className: cx$o('item', isLast && 'item--selected'),
10290
+ className: cx$1('item', isLast && 'item--selected'),
10347
10291
  key: idx
10348
10292
  }, React__default.createElement("span", {
10349
- className: cx$o('separator')
10293
+ className: cx$1('separator')
10350
10294
  }, separator), !isLast ? React__default.createElement(Link, {
10351
- className: cx$o('link'),
10295
+ className: cx$1('link'),
10352
10296
  onClick: function onClick() {
10353
10297
  return refine(item.value);
10354
10298
  },
@@ -10356,9 +10300,9 @@ function (_Component) {
10356
10300
  }, item.label) : item.label);
10357
10301
  });
10358
10302
  return React__default.createElement("div", {
10359
- className: classnames(cx$o('', !canRefine && '-noRefinement'), className)
10303
+ className: classnames(cx$1('', !canRefine && '-noRefinement'), className)
10360
10304
  }, React__default.createElement("ul", {
10361
- className: cx$o('list')
10305
+ className: cx$1('list')
10362
10306
  }, rootPath, breadcrumb));
10363
10307
  }
10364
10308
  }]);
@@ -10369,7 +10313,7 @@ function (_Component) {
10369
10313
  _defineProperty(Breadcrumb, "propTypes", {
10370
10314
  canRefine: PropTypes.bool.isRequired,
10371
10315
  createURL: PropTypes.func.isRequired,
10372
- items: itemsPropType$2,
10316
+ items: itemsPropType,
10373
10317
  refine: PropTypes.func.isRequired,
10374
10318
  rootURL: PropTypes.string,
10375
10319
  separator: PropTypes.node,
@@ -10481,7 +10425,7 @@ var BreadcrumbWidget = function BreadcrumbWidget(props) {
10481
10425
 
10482
10426
  connectBreadcrumb(BreadcrumbWidget);
10483
10427
 
10484
- var cx$n = createClassNames('ClearRefinements');
10428
+ var cx$2 = createClassNames('ClearRefinements');
10485
10429
 
10486
10430
  var ClearRefinements =
10487
10431
  /*#__PURE__*/
@@ -10504,9 +10448,9 @@ function (_Component) {
10504
10448
  translate = _this$props.translate,
10505
10449
  className = _this$props.className;
10506
10450
  return React__default.createElement("div", {
10507
- className: classnames(cx$n(''), className)
10451
+ className: classnames(cx$2(''), className)
10508
10452
  }, React__default.createElement("button", {
10509
- className: cx$n('button', !canRefine && 'button--disabled'),
10453
+ className: cx$2('button', !canRefine && 'button--disabled'),
10510
10454
  onClick: function onClick() {
10511
10455
  return refine(items);
10512
10456
  },
@@ -10574,7 +10518,7 @@ var ClearRefinementsWidget = function ClearRefinementsWidget(props) {
10574
10518
 
10575
10519
  connectCurrentRefinements(ClearRefinementsWidget);
10576
10520
 
10577
- var cx$m = createClassNames('CurrentRefinements');
10521
+ var cx$3 = createClassNames('CurrentRefinements');
10578
10522
  var CurrentRefinements = function CurrentRefinements(_ref) {
10579
10523
  var items = _ref.items,
10580
10524
  canRefine = _ref.canRefine,
@@ -10582,31 +10526,31 @@ var CurrentRefinements = function CurrentRefinements(_ref) {
10582
10526
  translate = _ref.translate,
10583
10527
  className = _ref.className;
10584
10528
  return React__default.createElement("div", {
10585
- className: classnames(cx$m('', !canRefine && '-noRefinement'), className)
10529
+ className: classnames(cx$3('', !canRefine && '-noRefinement'), className)
10586
10530
  }, React__default.createElement("ul", {
10587
- className: cx$m('list', !canRefine && 'list--noRefinement')
10531
+ className: cx$3('list', !canRefine && 'list--noRefinement')
10588
10532
  }, items.map(function (item) {
10589
10533
  return React__default.createElement("li", {
10590
10534
  key: item.label,
10591
- className: cx$m('item')
10535
+ className: cx$3('item')
10592
10536
  }, React__default.createElement("span", {
10593
- className: cx$m('label')
10537
+ className: cx$3('label')
10594
10538
  }, item.label), item.items ? item.items.map(function (nest) {
10595
10539
  return React__default.createElement("span", {
10596
10540
  key: nest.label,
10597
- className: cx$m('category')
10541
+ className: cx$3('category')
10598
10542
  }, React__default.createElement("span", {
10599
- className: cx$m('categoryLabel')
10543
+ className: cx$3('categoryLabel')
10600
10544
  }, nest.label), React__default.createElement("button", {
10601
- className: cx$m('delete'),
10545
+ className: cx$3('delete'),
10602
10546
  onClick: function onClick() {
10603
10547
  return refine(nest.value);
10604
10548
  }
10605
10549
  }, translate('clearFilter', nest)));
10606
10550
  }) : React__default.createElement("span", {
10607
- className: cx$m('category')
10551
+ className: cx$3('category')
10608
10552
  }, React__default.createElement("button", {
10609
- className: cx$m('delete'),
10553
+ className: cx$3('delete'),
10610
10554
  onClick: function onClick() {
10611
10555
  return refine(item.value);
10612
10556
  }
@@ -10682,14 +10626,14 @@ var CurrentRefinementsWidget = function CurrentRefinementsWidget(props) {
10682
10626
 
10683
10627
  connectCurrentRefinements(CurrentRefinementsWidget);
10684
10628
 
10685
- var cx$l = createClassNames('SearchBox');
10629
+ var cx$4 = createClassNames('SearchBox');
10686
10630
  var defaultLoadingIndicator = React__default.createElement("svg", {
10687
10631
  width: "18",
10688
10632
  height: "18",
10689
10633
  viewBox: "0 0 38 38",
10690
10634
  xmlns: "http://www.w3.org/2000/svg",
10691
10635
  stroke: "#444",
10692
- className: cx$l('loadingIcon')
10636
+ className: cx$4('loadingIcon')
10693
10637
  }, React__default.createElement("g", {
10694
10638
  fill: "none",
10695
10639
  fillRule: "evenodd"
@@ -10712,7 +10656,7 @@ var defaultLoadingIndicator = React__default.createElement("svg", {
10712
10656
  repeatCount: "indefinite"
10713
10657
  })))));
10714
10658
  var defaultReset = React__default.createElement("svg", {
10715
- className: cx$l('resetIcon'),
10659
+ className: cx$4('resetIcon'),
10716
10660
  xmlns: "http://www.w3.org/2000/svg",
10717
10661
  viewBox: "0 0 20 20",
10718
10662
  width: "10",
@@ -10721,7 +10665,7 @@ var defaultReset = React__default.createElement("svg", {
10721
10665
  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"
10722
10666
  }));
10723
10667
  var defaultSubmit = React__default.createElement("svg", {
10724
- className: cx$l('submitIcon'),
10668
+ className: cx$4('submitIcon'),
10725
10669
  xmlns: "http://www.w3.org/2000/svg",
10726
10670
  width: "10",
10727
10671
  height: "10",
@@ -10730,7 +10674,7 @@ var defaultSubmit = React__default.createElement("svg", {
10730
10674
  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"
10731
10675
  }));
10732
10676
 
10733
- var SearchBox$1 =
10677
+ var SearchBox =
10734
10678
  /*#__PURE__*/
10735
10679
  function (_Component) {
10736
10680
  _inherits(SearchBox, _Component);
@@ -10893,12 +10837,12 @@ function (_Component) {
10893
10837
  /* eslint-disable max-len */
10894
10838
 
10895
10839
  return React__default.createElement("div", {
10896
- className: classnames(cx$l(''), className)
10840
+ className: classnames(cx$4(''), className)
10897
10841
  }, React__default.createElement("form", {
10898
10842
  noValidate: true,
10899
10843
  onSubmit: this.props.onSubmit ? this.props.onSubmit : this.onSubmit,
10900
10844
  onReset: this.onReset,
10901
- className: cx$l('form', isSearchStalled && 'form--stalledSearch'),
10845
+ className: cx$4('form', isSearchStalled && 'form--stalledSearch'),
10902
10846
  action: "",
10903
10847
  role: "search"
10904
10848
  }, React__default.createElement("input", _extends({
@@ -10915,19 +10859,19 @@ function (_Component) {
10915
10859
  value: query,
10916
10860
  onChange: this.onChange
10917
10861
  }, searchInputEvents, {
10918
- className: cx$l('input')
10862
+ className: cx$4('input')
10919
10863
  })), React__default.createElement("button", {
10920
10864
  type: "submit",
10921
10865
  title: translate('submitTitle'),
10922
- className: cx$l('submit')
10866
+ className: cx$4('submit')
10923
10867
  }, submit), React__default.createElement("button", {
10924
10868
  type: "reset",
10925
10869
  title: translate('resetTitle'),
10926
- className: cx$l('reset'),
10870
+ className: cx$4('reset'),
10927
10871
  hidden: !query || isSearchStalled
10928
10872
  }, reset), this.props.showLoadingIndicator && React__default.createElement("span", {
10929
10873
  hidden: !isSearchStalled,
10930
- className: cx$l('loadingIndicator')
10874
+ className: cx$4('loadingIndicator')
10931
10875
  }, loadingIndicator)));
10932
10876
  /* eslint-enable */
10933
10877
  }
@@ -10936,7 +10880,7 @@ function (_Component) {
10936
10880
  return SearchBox;
10937
10881
  }(Component);
10938
10882
 
10939
- _defineProperty(SearchBox$1, "propTypes", {
10883
+ _defineProperty(SearchBox, "propTypes", {
10940
10884
  currentRefinement: PropTypes.string,
10941
10885
  className: PropTypes.string,
10942
10886
  refine: PropTypes.func.isRequired,
@@ -10957,7 +10901,7 @@ _defineProperty(SearchBox$1, "propTypes", {
10957
10901
  })])
10958
10902
  });
10959
10903
 
10960
- _defineProperty(SearchBox$1, "defaultProps", {
10904
+ _defineProperty(SearchBox, "defaultProps", {
10961
10905
  currentRefinement: '',
10962
10906
  className: '',
10963
10907
  focusShortcuts: ['s', '/'],
@@ -10970,11 +10914,11 @@ _defineProperty(SearchBox$1, "defaultProps", {
10970
10914
  submit: defaultSubmit
10971
10915
  });
10972
10916
 
10973
- var SearchBox$2 = translatable({
10917
+ var SearchBox$1 = translatable({
10974
10918
  resetTitle: 'Clear the search query.',
10975
10919
  submitTitle: 'Submit your search query.',
10976
10920
  placeholder: 'Search here…'
10977
- })(SearchBox$1);
10921
+ })(SearchBox);
10978
10922
 
10979
10923
  var itemsPropType$1 = PropTypes.arrayOf(PropTypes.shape({
10980
10924
  value: PropTypes.any,
@@ -11074,7 +11018,7 @@ function (_Component) {
11074
11018
  }, translate('noResults')) : null;
11075
11019
  return React__default.createElement("div", {
11076
11020
  className: cx('searchBox')
11077
- }, React__default.createElement(SearchBox$2, {
11021
+ }, React__default.createElement(SearchBox$1, {
11078
11022
  currentRefinement: this.state.query,
11079
11023
  refine: function refine(value) {
11080
11024
  _this2.setState({
@@ -11089,7 +11033,7 @@ function (_Component) {
11089
11033
  e.preventDefault();
11090
11034
  e.stopPropagation();
11091
11035
 
11092
- if (isFromSearch && items.length > 0) {
11036
+ if (isFromSearch) {
11093
11037
  selectItem(items[0], _this2.resetQuery);
11094
11038
  }
11095
11039
  }
@@ -11154,13 +11098,13 @@ _defineProperty(List, "defaultProps", {
11154
11098
  isFromSearch: false
11155
11099
  });
11156
11100
 
11157
- var cx$k = createClassNames('HierarchicalMenu');
11158
- var itemsPropType = PropTypes.arrayOf(PropTypes.shape({
11101
+ var cx$5 = createClassNames('HierarchicalMenu');
11102
+ var itemsPropType$2 = PropTypes.arrayOf(PropTypes.shape({
11159
11103
  label: PropTypes.string.isRequired,
11160
11104
  value: PropTypes.string,
11161
11105
  count: PropTypes.number.isRequired,
11162
11106
  items: function items() {
11163
- return itemsPropType.apply(void 0, arguments);
11107
+ return itemsPropType$2.apply(void 0, arguments);
11164
11108
  }
11165
11109
  }));
11166
11110
 
@@ -11187,15 +11131,15 @@ function (_Component) {
11187
11131
  createURL = _this$props.createURL,
11188
11132
  refine = _this$props.refine;
11189
11133
  return React__default.createElement(Link, {
11190
- className: cx$k('link'),
11134
+ className: cx$5('link'),
11191
11135
  onClick: function onClick() {
11192
11136
  return refine(item.value);
11193
11137
  },
11194
11138
  href: createURL(item.value)
11195
11139
  }, React__default.createElement("span", {
11196
- className: cx$k('label')
11140
+ className: cx$5('label')
11197
11141
  }, item.label), ' ', React__default.createElement("span", {
11198
- className: cx$k('count')
11142
+ className: cx$5('count')
11199
11143
  }, item.count));
11200
11144
  });
11201
11145
 
@@ -11215,7 +11159,7 @@ function (_Component) {
11215
11159
  className = _this$props2.className;
11216
11160
  return React__default.createElement(List, {
11217
11161
  renderItem: this.renderItem,
11218
- cx: cx$k,
11162
+ cx: cx$5,
11219
11163
  translate: translate,
11220
11164
  items: items,
11221
11165
  showMore: showMore,
@@ -11235,7 +11179,7 @@ _defineProperty(HierarchicalMenu, "propTypes", {
11235
11179
  refine: PropTypes.func.isRequired,
11236
11180
  createURL: PropTypes.func.isRequired,
11237
11181
  canRefine: PropTypes.bool.isRequired,
11238
- items: itemsPropType,
11182
+ items: itemsPropType$2,
11239
11183
  showMore: PropTypes.bool,
11240
11184
  className: PropTypes.string,
11241
11185
  limit: PropTypes.number,
@@ -11349,7 +11293,7 @@ var HierarchicalMenuWidget = function HierarchicalMenuWidget(props) {
11349
11293
 
11350
11294
  connectHierarchicalMenu(HierarchicalMenuWidget);
11351
11295
 
11352
- var Highlight$2 = function Highlight(_ref) {
11296
+ var Highlight = function Highlight(_ref) {
11353
11297
  var cx = _ref.cx,
11354
11298
  value = _ref.value,
11355
11299
  highlightedTagName = _ref.highlightedTagName,
@@ -11361,7 +11305,7 @@ var Highlight$2 = function Highlight(_ref) {
11361
11305
  className: cx(className)
11362
11306
  }, value);
11363
11307
  };
11364
- Highlight$2.propTypes = {
11308
+ Highlight.propTypes = {
11365
11309
  cx: PropTypes.func.isRequired,
11366
11310
  value: PropTypes.string.isRequired,
11367
11311
  isHighlighted: PropTypes.bool.isRequired,
@@ -11392,7 +11336,7 @@ var Highlighter = function Highlighter(_ref2) {
11392
11336
  return React__default.createElement("span", {
11393
11337
  key: i
11394
11338
  }, item.map(function (element, index) {
11395
- return React__default.createElement(Highlight$2, {
11339
+ return React__default.createElement(Highlight, {
11396
11340
  cx: cx,
11397
11341
  key: index,
11398
11342
  value: element.value,
@@ -11405,7 +11349,7 @@ var Highlighter = function Highlighter(_ref2) {
11405
11349
  }, separator));
11406
11350
  }
11407
11351
 
11408
- return React__default.createElement(Highlight$2, {
11352
+ return React__default.createElement(Highlight, {
11409
11353
  cx: cx,
11410
11354
  key: i,
11411
11355
  value: item.value,
@@ -11434,12 +11378,12 @@ Highlighter.defaultProps = {
11434
11378
  separator: ', '
11435
11379
  };
11436
11380
 
11437
- var cx$j = createClassNames('Highlight');
11381
+ var cx$6 = createClassNames('Highlight');
11438
11382
 
11439
11383
  var Highlight$1 = function Highlight(props) {
11440
11384
  return React__default.createElement(Highlighter, _extends({}, props, {
11441
11385
  highlightProperty: "_highlightResult",
11442
- cx: cx$j
11386
+ cx: cx$6
11443
11387
  }));
11444
11388
  };
11445
11389
 
@@ -11484,9 +11428,9 @@ var Highlight$1 = function Highlight(props) {
11484
11428
  * );
11485
11429
  */
11486
11430
 
11487
- var Highlight = connectHighlight(Highlight$1);
11431
+ var Highlight$2 = connectHighlight(Highlight$1);
11488
11432
 
11489
- var cx$i = createClassNames('Hits');
11433
+ var cx$7 = createClassNames('Hits');
11490
11434
 
11491
11435
  var DefaultHitComponent = function DefaultHitComponent(props) {
11492
11436
  return React__default.createElement("div", {
@@ -11499,19 +11443,19 @@ var DefaultHitComponent = function DefaultHitComponent(props) {
11499
11443
  }, JSON.stringify(props).slice(0, 100), "...");
11500
11444
  };
11501
11445
 
11502
- var Hits$1 = function Hits(_ref) {
11446
+ var Hits = function Hits(_ref) {
11503
11447
  var hits = _ref.hits,
11504
11448
  _ref$className = _ref.className,
11505
11449
  className = _ref$className === void 0 ? '' : _ref$className,
11506
11450
  _ref$hitComponent = _ref.hitComponent,
11507
11451
  HitComponent = _ref$hitComponent === void 0 ? DefaultHitComponent : _ref$hitComponent;
11508
11452
  return React__default.createElement("div", {
11509
- className: classnames(cx$i(''), className)
11453
+ className: classnames(cx$7(''), className)
11510
11454
  }, React__default.createElement("ul", {
11511
- className: cx$i('list')
11455
+ className: cx$7('list')
11512
11456
  }, hits.map(function (hit) {
11513
11457
  return React__default.createElement("li", {
11514
- className: cx$i('item'),
11458
+ className: cx$7('item'),
11515
11459
  key: hit.objectID
11516
11460
  }, React__default.createElement(HitComponent, {
11517
11461
  hit: hit
@@ -11522,7 +11466,7 @@ var Hits$1 = function Hits(_ref) {
11522
11466
  var HitPropTypes = PropTypes.shape({
11523
11467
  objectID: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
11524
11468
  });
11525
- Hits$1.propTypes = {
11469
+ Hits.propTypes = {
11526
11470
  hits: PropTypes.arrayOf(HitPropTypes.isRequired).isRequired,
11527
11471
  className: PropTypes.string,
11528
11472
  hitComponent: PropTypes.func
@@ -11561,7 +11505,7 @@ Hits$1.propTypes = {
11561
11505
  * );
11562
11506
  */
11563
11507
 
11564
- var Hits = connectHits(Hits$1);
11508
+ var Hits$1 = connectHits(Hits);
11565
11509
 
11566
11510
  var Select =
11567
11511
  /*#__PURE__*/
@@ -11625,7 +11569,7 @@ _defineProperty(Select, "propTypes", {
11625
11569
  selectedItem: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
11626
11570
  });
11627
11571
 
11628
- var cx$h = createClassNames('HitsPerPage');
11572
+ var cx$8 = createClassNames('HitsPerPage');
11629
11573
 
11630
11574
  var HitsPerPage =
11631
11575
  /*#__PURE__*/
@@ -11647,12 +11591,12 @@ function (_Component) {
11647
11591
  refine = _this$props.refine,
11648
11592
  className = _this$props.className;
11649
11593
  return React__default.createElement("div", {
11650
- className: classnames(cx$h(''), className)
11594
+ className: classnames(cx$8(''), className)
11651
11595
  }, React__default.createElement(Select, {
11652
11596
  onSelect: refine,
11653
11597
  selectedItem: currentRefinement,
11654
11598
  items: items,
11655
- cx: cx$h
11599
+ cx: cx$8
11656
11600
  }));
11657
11601
  }
11658
11602
  }]);
@@ -11718,7 +11662,7 @@ _defineProperty(HitsPerPage, "defaultProps", {
11718
11662
 
11719
11663
  connectHitsPerPage(HitsPerPage);
11720
11664
 
11721
- var cx$g = createClassNames('InfiniteHits');
11665
+ var cx$9 = createClassNames('InfiniteHits');
11722
11666
 
11723
11667
  var InfiniteHits =
11724
11668
  /*#__PURE__*/
@@ -11745,24 +11689,24 @@ function (_Component) {
11745
11689
  translate = _this$props.translate,
11746
11690
  className = _this$props.className;
11747
11691
  return React__default.createElement("div", {
11748
- className: classnames(cx$g(''), className)
11692
+ className: classnames(cx$9(''), className)
11749
11693
  }, showPrevious && React__default.createElement("button", {
11750
- className: cx$g('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
11694
+ className: cx$9('loadPrevious', !hasPrevious && 'loadPrevious--disabled'),
11751
11695
  onClick: function onClick() {
11752
11696
  return refinePrevious();
11753
11697
  },
11754
11698
  disabled: !hasPrevious
11755
11699
  }, translate('loadPrevious')), React__default.createElement("ul", {
11756
- className: cx$g('list')
11700
+ className: cx$9('list')
11757
11701
  }, hits.map(function (hit) {
11758
11702
  return React__default.createElement("li", {
11759
11703
  key: hit.objectID,
11760
- className: cx$g('item')
11704
+ className: cx$9('item')
11761
11705
  }, React__default.createElement(HitComponent, {
11762
11706
  hit: hit
11763
11707
  }));
11764
11708
  })), React__default.createElement("button", {
11765
- className: cx$g('loadMore', !hasMore && 'loadMore--disabled'),
11709
+ className: cx$9('loadMore', !hasMore && 'loadMore--disabled'),
11766
11710
  onClick: function onClick() {
11767
11711
  return refineNext();
11768
11712
  },
@@ -11843,7 +11787,7 @@ var InfiniteHits$1 = translatable({
11843
11787
 
11844
11788
  connectInfiniteHits(InfiniteHits$1);
11845
11789
 
11846
- var cx$f = createClassNames('Menu');
11790
+ var cx$a = createClassNames('Menu');
11847
11791
 
11848
11792
  var Menu =
11849
11793
  /*#__PURE__*/
@@ -11865,20 +11809,20 @@ function (_Component) {
11865
11809
 
11866
11810
  _defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
11867
11811
  var createURL = _this.props.createURL;
11868
- var label = _this.props.isFromSearch ? React__default.createElement(Highlight, {
11812
+ var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
11869
11813
  attribute: "label",
11870
11814
  hit: item
11871
11815
  }) : item.label;
11872
11816
  return React__default.createElement(Link, {
11873
- className: cx$f('link'),
11817
+ className: cx$a('link'),
11874
11818
  onClick: function onClick() {
11875
11819
  return _this.selectItem(item, resetQuery);
11876
11820
  },
11877
11821
  href: createURL(item.value)
11878
11822
  }, React__default.createElement("span", {
11879
- className: cx$f('label')
11823
+ className: cx$a('label')
11880
11824
  }, label), ' ', React__default.createElement("span", {
11881
- className: cx$f('count')
11825
+ className: cx$a('count')
11882
11826
  }, item.count));
11883
11827
  });
11884
11828
 
@@ -11908,7 +11852,7 @@ function (_Component) {
11908
11852
  return React__default.createElement(List, {
11909
11853
  renderItem: this.renderItem,
11910
11854
  selectItem: this.selectItem,
11911
- cx: cx$f,
11855
+ cx: cx$a,
11912
11856
  translate: translate,
11913
11857
  items: items,
11914
11858
  showMore: showMore,
@@ -12018,7 +11962,7 @@ var MenuWidget = function MenuWidget(props) {
12018
11962
 
12019
11963
  connectMenu(MenuWidget);
12020
11964
 
12021
- var cx$e = createClassNames('MenuSelect');
11965
+ var cx$b = createClassNames('MenuSelect');
12022
11966
 
12023
11967
  var MenuSelect =
12024
11968
  /*#__PURE__*/
@@ -12056,26 +12000,26 @@ function (_Component) {
12056
12000
  translate = _this$props.translate,
12057
12001
  className = _this$props.className;
12058
12002
  return React__default.createElement("div", {
12059
- className: classnames(cx$e('', !canRefine && '-noRefinement'), className)
12003
+ className: classnames(cx$b('', !canRefine && '-noRefinement'), className)
12060
12004
  }, React__default.createElement("select", {
12061
12005
  value: this.selectedValue,
12062
12006
  onChange: this.handleSelectChange,
12063
- className: cx$e('select')
12007
+ className: cx$b('select')
12064
12008
  }, React__default.createElement("option", {
12065
12009
  value: "ais__see__all__option",
12066
- className: cx$e('option')
12010
+ className: cx$b('option')
12067
12011
  }, translate('seeAllOption')), items.map(function (item) {
12068
12012
  return React__default.createElement("option", {
12069
12013
  key: item.value,
12070
12014
  value: item.value,
12071
- className: cx$e('option')
12015
+ className: cx$b('option')
12072
12016
  }, item.label, " (", item.count, ")");
12073
12017
  })));
12074
12018
  }
12075
12019
  }, {
12076
12020
  key: "selectedValue",
12077
12021
  get: function get() {
12078
- var _ref2 = find(this.props.items, function (item) {
12022
+ var _ref2 = find$2(this.props.items, function (item) {
12079
12023
  return item.isRefined === true;
12080
12024
  }) || {
12081
12025
  value: 'ais__see__all__option'
@@ -12152,7 +12096,7 @@ var MenuSelectWidget = function MenuSelectWidget(props) {
12152
12096
 
12153
12097
  connectMenu(MenuSelectWidget);
12154
12098
 
12155
- var cx$d = createClassNames('NumericMenu');
12099
+ var cx$c = createClassNames('NumericMenu');
12156
12100
 
12157
12101
  var NumericMenu =
12158
12102
  /*#__PURE__*/
@@ -12177,9 +12121,9 @@ function (_Component) {
12177
12121
  refine = _this$props.refine,
12178
12122
  translate = _this$props.translate;
12179
12123
  return React__default.createElement("label", {
12180
- className: cx$d('label')
12124
+ className: cx$c('label')
12181
12125
  }, React__default.createElement("input", {
12182
- className: cx$d('radio'),
12126
+ className: cx$c('radio'),
12183
12127
  type: "radio",
12184
12128
  checked: item.isRefined,
12185
12129
  disabled: item.noRefinement,
@@ -12187,7 +12131,7 @@ function (_Component) {
12187
12131
  return refine(item.value);
12188
12132
  }
12189
12133
  }), React__default.createElement("span", {
12190
- className: cx$d('labelText')
12134
+ className: cx$c('labelText')
12191
12135
  }, item.value === '' ? translate('all') : item.label));
12192
12136
  });
12193
12137
 
@@ -12205,7 +12149,7 @@ function (_Component) {
12205
12149
  renderItem: this.renderItem,
12206
12150
  showMore: false,
12207
12151
  canRefine: canRefine,
12208
- cx: cx$d,
12152
+ cx: cx$c,
12209
12153
  items: items.map(function (item) {
12210
12154
  return _objectSpread({}, item, {
12211
12155
  key: item.value
@@ -12350,7 +12294,7 @@ _defineProperty(LinkList, "propTypes", {
12350
12294
  canRefine: PropTypes.bool.isRequired
12351
12295
  });
12352
12296
 
12353
- var cx$c = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
12297
+ var cx$d = createClassNames('Pagination'); // Determines the size of the widget (the number of pages displayed - that the user can directly click on)
12354
12298
 
12355
12299
  function calculateSize(padding, maxPages) {
12356
12300
  return Math.min(2 * padding + 1, maxPages);
@@ -12386,7 +12330,7 @@ function getPages(currentPage, maxPages, padding) {
12386
12330
  });
12387
12331
  }
12388
12332
 
12389
- var Pagination$1 =
12333
+ var Pagination =
12390
12334
  /*#__PURE__*/
12391
12335
  function (_Component) {
12392
12336
  _inherits(Pagination, _Component);
@@ -12493,9 +12437,9 @@ function (_Component) {
12493
12437
  }
12494
12438
 
12495
12439
  return React__default.createElement("div", {
12496
- className: classnames(cx$c('', !canRefine && '-noRefinement'), className)
12440
+ className: classnames(cx$d('', !canRefine && '-noRefinement'), className)
12497
12441
  }, React__default.createElement(ListComponent, _extends({}, otherProps, {
12498
- cx: cx$c,
12442
+ cx: cx$d,
12499
12443
  items: items,
12500
12444
  onSelect: refine,
12501
12445
  createURL: createURL,
@@ -12507,7 +12451,7 @@ function (_Component) {
12507
12451
  return Pagination;
12508
12452
  }(Component);
12509
12453
 
12510
- _defineProperty(Pagination$1, "propTypes", {
12454
+ _defineProperty(Pagination, "propTypes", {
12511
12455
  nbPages: PropTypes.number.isRequired,
12512
12456
  currentRefinement: PropTypes.number.isRequired,
12513
12457
  refine: PropTypes.func.isRequired,
@@ -12524,7 +12468,7 @@ _defineProperty(Pagination$1, "propTypes", {
12524
12468
  className: PropTypes.string
12525
12469
  });
12526
12470
 
12527
- _defineProperty(Pagination$1, "defaultProps", {
12471
+ _defineProperty(Pagination, "defaultProps", {
12528
12472
  listComponent: LinkList,
12529
12473
  showFirst: true,
12530
12474
  showPrevious: true,
@@ -12535,7 +12479,7 @@ _defineProperty(Pagination$1, "defaultProps", {
12535
12479
  className: ''
12536
12480
  });
12537
12481
 
12538
- var Pagination$2 = translatable({
12482
+ var Pagination$1 = translatable({
12539
12483
  previous: '‹',
12540
12484
  next: '›',
12541
12485
  first: '«',
@@ -12550,7 +12494,7 @@ var Pagination$2 = translatable({
12550
12494
  ariaPage: function ariaPage(currentRefinement) {
12551
12495
  return "Page ".concat(currentRefinement.toString());
12552
12496
  }
12553
- })(Pagination$1);
12497
+ })(Pagination);
12554
12498
 
12555
12499
  /**
12556
12500
  * The Pagination widget displays a simple pagination system allowing the user to
@@ -12607,12 +12551,12 @@ var Pagination$2 = translatable({
12607
12551
  */
12608
12552
 
12609
12553
  var PaginationWidget = function PaginationWidget(props) {
12610
- return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$2, props));
12554
+ return React__default.createElement(PanelWrapper, props, React__default.createElement(Pagination$1, props));
12611
12555
  };
12612
12556
 
12613
- var Pagination = connectPagination(PaginationWidget);
12557
+ var Pagination$2 = connectPagination(PaginationWidget);
12614
12558
 
12615
- var cx$b = createClassNames('PoweredBy');
12559
+ var cx$e = createClassNames('PoweredBy');
12616
12560
  /* eslint-disable max-len */
12617
12561
 
12618
12562
  var AlgoliaLogo = function AlgoliaLogo() {
@@ -12622,7 +12566,7 @@ var AlgoliaLogo = function AlgoliaLogo() {
12622
12566
  viewBox: "0 0 1366 362",
12623
12567
  width: "100",
12624
12568
  height: "27",
12625
- className: cx$b('logo')
12569
+ className: cx$e('logo')
12626
12570
  }, React__default.createElement("linearGradient", {
12627
12571
  id: "g",
12628
12572
  x1: "428.258",
@@ -12670,13 +12614,13 @@ function (_Component) {
12670
12614
  translate = _this$props.translate,
12671
12615
  className = _this$props.className;
12672
12616
  return React__default.createElement("div", {
12673
- className: classnames(cx$b(''), className)
12617
+ className: classnames(cx$e(''), className)
12674
12618
  }, React__default.createElement("span", {
12675
- className: cx$b('text')
12619
+ className: cx$e('text')
12676
12620
  }, translate('searchBy')), ' ', React__default.createElement("a", {
12677
12621
  href: url,
12678
12622
  target: "_blank",
12679
- className: cx$b('link'),
12623
+ className: cx$e('link'),
12680
12624
  "aria-label": "Algolia",
12681
12625
  rel: "noopener noreferrer"
12682
12626
  }, React__default.createElement(AlgoliaLogo, null)));
@@ -12729,7 +12673,7 @@ var PoweredBy$1 = translatable({
12729
12673
 
12730
12674
  connectPoweredBy(PoweredBy$1);
12731
12675
 
12732
- var cx$a = createClassNames('RangeInput');
12676
+ var cx$f = createClassNames('RangeInput');
12733
12677
  var RawRangeInput =
12734
12678
  /*#__PURE__*/
12735
12679
  function (_Component) {
@@ -12809,12 +12753,12 @@ function (_Component) {
12809
12753
 
12810
12754
  var step = 1 / Math.pow(10, precision);
12811
12755
  return React__default.createElement("div", {
12812
- className: classnames(cx$a('', !canRefine && '-noRefinement'), className)
12756
+ className: classnames(cx$f('', !canRefine && '-noRefinement'), className)
12813
12757
  }, React__default.createElement("form", {
12814
- className: cx$a('form'),
12758
+ className: cx$f('form'),
12815
12759
  onSubmit: this.onSubmit
12816
12760
  }, React__default.createElement("input", {
12817
- className: cx$a('input', 'input--min'),
12761
+ className: cx$f('input', 'input--min'),
12818
12762
  type: "number",
12819
12763
  min: min,
12820
12764
  max: max,
@@ -12828,9 +12772,9 @@ function (_Component) {
12828
12772
  });
12829
12773
  }
12830
12774
  }), React__default.createElement("span", {
12831
- className: cx$a('separator')
12775
+ className: cx$f('separator')
12832
12776
  }, translate('separator')), React__default.createElement("input", {
12833
- className: cx$a('input', 'input--max'),
12777
+ className: cx$f('input', 'input--max'),
12834
12778
  type: "number",
12835
12779
  min: min,
12836
12780
  max: max,
@@ -12844,7 +12788,7 @@ function (_Component) {
12844
12788
  });
12845
12789
  }
12846
12790
  }), React__default.createElement("button", {
12847
- className: cx$a('submit'),
12791
+ className: cx$f('submit'),
12848
12792
  type: "submit"
12849
12793
  }, translate('submit'))));
12850
12794
  }
@@ -12925,7 +12869,7 @@ var RangeInputWidget = function RangeInputWidget(props) {
12925
12869
 
12926
12870
  connectRange(RangeInputWidget);
12927
12871
 
12928
- var cx$9 = createClassNames('RatingMenu');
12872
+ var cx$g = createClassNames('RatingMenu');
12929
12873
 
12930
12874
  var RatingMenu =
12931
12875
  /*#__PURE__*/
@@ -12978,12 +12922,12 @@ function (_Component) {
12978
12922
 
12979
12923
  icons.push([React__default.createElement("svg", {
12980
12924
  key: icon,
12981
- className: cx$9('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
12925
+ className: cx$g('starIcon', icon >= lowerBound ? 'starIcon--empty' : 'starIcon--full'),
12982
12926
  "aria-hidden": "true",
12983
12927
  width: "24",
12984
12928
  height: "24"
12985
12929
  }, React__default.createElement("use", {
12986
- xlinkHref: "#".concat(cx$9(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
12930
+ xlinkHref: "#".concat(cx$g(icon >= lowerBound ? 'starEmptySymbol' : 'starSymbol'))
12987
12931
  })), ' ']);
12988
12932
  } // The last item of the list (the default item), should not
12989
12933
  // be clickable if it is selected.
@@ -12999,15 +12943,15 @@ function (_Component) {
12999
12943
  };
13000
12944
  return React__default.createElement("li", {
13001
12945
  key: lowerBound,
13002
- className: cx$9('item', selected && 'item--selected', disabled && 'item--disabled')
12946
+ className: cx$g('item', selected && 'item--selected', disabled && 'item--disabled')
13003
12947
  }, React__default.createElement("a", _extends({
13004
- className: cx$9('link'),
12948
+ className: cx$g('link'),
13005
12949
  "aria-label": "".concat(rating).concat(translate('ratingLabel'))
13006
12950
  }, onClickHandler), icons, React__default.createElement("span", {
13007
- className: cx$9('label'),
12951
+ className: cx$g('label'),
13008
12952
  "aria-hidden": "true"
13009
12953
  }, translate('ratingLabel')), ' ', React__default.createElement("span", {
13010
- className: cx$9('count')
12954
+ className: cx$g('count')
13011
12955
  }, count)));
13012
12956
  }
13013
12957
  }, {
@@ -13039,7 +12983,7 @@ function (_Component) {
13039
12983
  start: 0,
13040
12984
  end: Math.max(inclusiveLength, 0)
13041
12985
  }).map(function (index) {
13042
- var element = find(values, function (item) {
12986
+ var element = find$2(values, function (item) {
13043
12987
  return item.value === limitMax - index;
13044
12988
  });
13045
12989
  var placeholder = {
@@ -13063,24 +13007,24 @@ function (_Component) {
13063
13007
  });
13064
13008
  });
13065
13009
  return React__default.createElement("div", {
13066
- className: classnames(cx$9('', !canRefine && '-noRefinement'), className)
13010
+ className: classnames(cx$g('', !canRefine && '-noRefinement'), className)
13067
13011
  }, React__default.createElement("svg", {
13068
13012
  xmlns: "http://www.w3.org/2000/svg",
13069
13013
  style: {
13070
13014
  display: 'none'
13071
13015
  }
13072
13016
  }, React__default.createElement("symbol", {
13073
- id: cx$9('starSymbol'),
13017
+ id: cx$g('starSymbol'),
13074
13018
  viewBox: "0 0 24 24"
13075
13019
  }, React__default.createElement("path", {
13076
13020
  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"
13077
13021
  })), React__default.createElement("symbol", {
13078
- id: cx$9('starEmptySymbol'),
13022
+ id: cx$g('starEmptySymbol'),
13079
13023
  viewBox: "0 0 24 24"
13080
13024
  }, React__default.createElement("path", {
13081
13025
  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"
13082
13026
  }))), React__default.createElement("ul", {
13083
- className: cx$9('list', !canRefine && 'list--noRefinement')
13027
+ className: cx$g('list', !canRefine && 'list--noRefinement')
13084
13028
  }, items));
13085
13029
  }
13086
13030
  }]);
@@ -13168,7 +13112,7 @@ var RatingMenuWidget = function RatingMenuWidget(props) {
13168
13112
 
13169
13113
  connectRange(RatingMenuWidget);
13170
13114
 
13171
- var cx$8 = createClassNames('RefinementList');
13115
+ var cx$h = createClassNames('RefinementList');
13172
13116
 
13173
13117
  var RefinementList$1 =
13174
13118
  /*#__PURE__*/
@@ -13199,23 +13143,23 @@ function (_Component) {
13199
13143
  });
13200
13144
 
13201
13145
  _defineProperty(_assertThisInitialized(_this), "renderItem", function (item, resetQuery) {
13202
- var label = _this.props.isFromSearch ? React__default.createElement(Highlight, {
13146
+ var label = _this.props.isFromSearch ? React__default.createElement(Highlight$2, {
13203
13147
  attribute: "label",
13204
13148
  hit: item
13205
13149
  }) : item.label;
13206
13150
  return React__default.createElement("label", {
13207
- className: cx$8('label')
13151
+ className: cx$h('label')
13208
13152
  }, React__default.createElement("input", {
13209
- className: cx$8('checkbox'),
13153
+ className: cx$h('checkbox'),
13210
13154
  type: "checkbox",
13211
13155
  checked: item.isRefined,
13212
13156
  onChange: function onChange() {
13213
13157
  return _this.selectItem(item, resetQuery);
13214
13158
  }
13215
13159
  }), React__default.createElement("span", {
13216
- className: cx$8('labelText')
13160
+ className: cx$h('labelText')
13217
13161
  }, label), ' ', React__default.createElement("span", {
13218
- className: cx$8('count')
13162
+ className: cx$h('count')
13219
13163
  }, item.count.toLocaleString()));
13220
13164
  });
13221
13165
 
@@ -13239,7 +13183,7 @@ function (_Component) {
13239
13183
  return React__default.createElement(List, {
13240
13184
  renderItem: this.renderItem,
13241
13185
  selectItem: this.selectItem,
13242
- cx: cx$8,
13186
+ cx: cx$h,
13243
13187
  translate: translate,
13244
13188
  items: items,
13245
13189
  showMore: showMore,
@@ -13351,9 +13295,9 @@ var RefinementListWidget = function RefinementListWidget(props) {
13351
13295
  return React__default.createElement(PanelWrapper, props, React__default.createElement(RefinementList$2, props));
13352
13296
  };
13353
13297
 
13354
- var RefinementList = connectRefinementList(RefinementListWidget);
13298
+ var RefinementList$3 = connectRefinementList(RefinementListWidget);
13355
13299
 
13356
- var cx$7 = createClassNames('ScrollTo');
13300
+ var cx$i = createClassNames('ScrollTo');
13357
13301
 
13358
13302
  var ScrollTo =
13359
13303
  /*#__PURE__*/
@@ -13386,7 +13330,7 @@ function (_Component) {
13386
13330
  ref: function ref(_ref) {
13387
13331
  return _this.el = _ref;
13388
13332
  },
13389
- className: cx$7('')
13333
+ className: cx$i('')
13390
13334
  }, this.props.children);
13391
13335
  }
13392
13336
  }]);
@@ -13480,14 +13424,14 @@ connectScrollTo(ScrollTo);
13480
13424
  * );
13481
13425
  */
13482
13426
 
13483
- var SearchBox = connectSearchBox(SearchBox$2);
13427
+ var SearchBox$2 = connectSearchBox(SearchBox$1);
13484
13428
 
13485
- var cx$6 = createClassNames('Snippet');
13429
+ var cx$j = createClassNames('Snippet');
13486
13430
 
13487
13431
  var Snippet = function Snippet(props) {
13488
13432
  return React__default.createElement(Highlighter, _extends({}, props, {
13489
13433
  highlightProperty: "_snippetResult",
13490
- cx: cx$6
13434
+ cx: cx$j
13491
13435
  }));
13492
13436
  };
13493
13437
 
@@ -13537,7 +13481,7 @@ var Snippet = function Snippet(props) {
13537
13481
 
13538
13482
  connectHighlight(Snippet);
13539
13483
 
13540
- var cx$5 = createClassNames('RelevantSort');
13484
+ var cx$k = createClassNames('RelevantSort');
13541
13485
 
13542
13486
  var DefaultButtonTextComponent = function DefaultButtonTextComponent(_ref) {
13543
13487
  var isRelevantSorted = _ref.isRelevantSorted;
@@ -13554,13 +13498,13 @@ var RelevantSort = function RelevantSort(_ref2) {
13554
13498
  TextComponent = _ref2.textComponent,
13555
13499
  refine = _ref2.refine;
13556
13500
  return !isVirtualReplica ? null : React__default.createElement("div", {
13557
- className: classnames(cx$5(''), className)
13501
+ className: classnames(cx$k(''), className)
13558
13502
  }, React__default.createElement("div", {
13559
- className: cx$5('text')
13503
+ className: cx$k('text')
13560
13504
  }, TextComponent && React__default.createElement(TextComponent, {
13561
13505
  isRelevantSorted: isRelevantSorted
13562
13506
  })), React__default.createElement("button", {
13563
- className: cx$5('button'),
13507
+ className: cx$k('button'),
13564
13508
  onClick: function onClick() {
13565
13509
  return refine(isRelevantSorted ? 0 : undefined);
13566
13510
  }
@@ -13580,7 +13524,7 @@ RelevantSort.propTypes = {
13580
13524
 
13581
13525
  connectRelevantSort(RelevantSort);
13582
13526
 
13583
- var cx$4 = createClassNames('SortBy');
13527
+ var cx$l = createClassNames('SortBy');
13584
13528
 
13585
13529
  var SortBy =
13586
13530
  /*#__PURE__*/
@@ -13602,9 +13546,9 @@ function (_Component) {
13602
13546
  refine = _this$props.refine,
13603
13547
  className = _this$props.className;
13604
13548
  return React__default.createElement("div", {
13605
- className: classnames(cx$4(''), className)
13549
+ className: classnames(cx$l(''), className)
13606
13550
  }, React__default.createElement(Select, {
13607
- cx: cx$4,
13551
+ cx: cx$l,
13608
13552
  items: items,
13609
13553
  selectedItem: currentRefinement,
13610
13554
  onSelect: refine
@@ -13670,7 +13614,7 @@ _defineProperty(SortBy, "defaultProps", {
13670
13614
 
13671
13615
  connectSortBy(SortBy);
13672
13616
 
13673
- var cx$3 = createClassNames('Stats');
13617
+ var cx$m = createClassNames('Stats');
13674
13618
 
13675
13619
  var Stats = function Stats(_ref) {
13676
13620
  var _ref$className = _ref.className,
@@ -13681,9 +13625,9 @@ var Stats = function Stats(_ref) {
13681
13625
  processingTimeMS = _ref.processingTimeMS,
13682
13626
  translate = _ref.translate;
13683
13627
  return React__default.createElement("div", {
13684
- className: classnames(cx$3(''), className)
13628
+ className: classnames(cx$m(''), className)
13685
13629
  }, React__default.createElement("span", {
13686
- className: cx$3('text')
13630
+ className: cx$m('text')
13687
13631
  }, translate('stats', nbHits, processingTimeMS, nbSortedHits, areHitsSorted)));
13688
13632
  };
13689
13633
 
@@ -13731,7 +13675,7 @@ var Stats$1 = translatable({
13731
13675
 
13732
13676
  connectStats(Stats$1);
13733
13677
 
13734
- var cx$2 = createClassNames('ToggleRefinement');
13678
+ var cx$n = createClassNames('ToggleRefinement');
13735
13679
 
13736
13680
  var ToggleRefinement = function ToggleRefinement(_ref) {
13737
13681
  var currentRefinement = _ref.currentRefinement,
@@ -13740,18 +13684,18 @@ var ToggleRefinement = function ToggleRefinement(_ref) {
13740
13684
  refine = _ref.refine,
13741
13685
  className = _ref.className;
13742
13686
  return React__default.createElement("div", {
13743
- className: classnames(cx$2('', !canRefine && '-noRefinement'), className)
13687
+ className: classnames(cx$n('', !canRefine && '-noRefinement'), className)
13744
13688
  }, React__default.createElement("label", {
13745
- className: cx$2('label')
13689
+ className: cx$n('label')
13746
13690
  }, React__default.createElement("input", {
13747
- className: cx$2('checkbox'),
13691
+ className: cx$n('checkbox'),
13748
13692
  type: "checkbox",
13749
13693
  checked: currentRefinement,
13750
13694
  onChange: function onChange(event) {
13751
13695
  return refine(event.target.checked);
13752
13696
  }
13753
13697
  }), React__default.createElement("span", {
13754
- className: cx$2('labelText')
13698
+ className: cx$n('labelText')
13755
13699
  }, label)));
13756
13700
  };
13757
13701
 
@@ -13960,7 +13904,7 @@ function createVoiceSearchHelper(_ref) {
13960
13904
  };
13961
13905
  }
13962
13906
 
13963
- var cx$1 = createClassNames('VoiceSearch');
13907
+ var cx$o = createClassNames('VoiceSearch');
13964
13908
 
13965
13909
  var ButtonSvg = function ButtonSvg(_ref) {
13966
13910
  var children = _ref.children;
@@ -14106,15 +14050,15 @@ function (_Component) {
14106
14050
  isBrowserSupported: isBrowserSupported()
14107
14051
  };
14108
14052
  return React__default.createElement("div", {
14109
- className: cx$1('')
14053
+ className: cx$o('')
14110
14054
  }, React__default.createElement("button", {
14111
- className: cx$1('button'),
14055
+ className: cx$o('button'),
14112
14056
  type: "button",
14113
14057
  title: isBrowserSupported() ? translate('buttonTitle') : translate('disabledButtonTitle'),
14114
14058
  onClick: this.onClick,
14115
14059
  disabled: !isBrowserSupported()
14116
14060
  }, React__default.createElement(ButtonTextComponent, innerProps)), React__default.createElement("div", {
14117
- className: cx$1('status')
14061
+ className: cx$o('status')
14118
14062
  }, React__default.createElement(StatusComponent, innerProps)));
14119
14063
  }
14120
14064
  }, {
@@ -14142,14 +14086,14 @@ var VoiceSearch$1 = translatable({
14142
14086
 
14143
14087
  connectVoiceSearch(VoiceSearch$1);
14144
14088
 
14145
- var cx = createClassNames('QueryRuleCustomData');
14089
+ var cx$p = createClassNames('QueryRuleCustomData');
14146
14090
 
14147
14091
  var QueryRuleCustomData = function QueryRuleCustomData(_ref) {
14148
14092
  var items = _ref.items,
14149
14093
  className = _ref.className,
14150
14094
  children = _ref.children;
14151
14095
  return React__default.createElement("div", {
14152
- className: classnames(cx(''), className)
14096
+ className: classnames(cx$p(''), className)
14153
14097
  }, children({
14154
14098
  items: items
14155
14099
  }));
@@ -14264,7 +14208,7 @@ var AlgoliaSearch = function (_React$Component) {
14264
14208
  onSearchParameters: this.props.onSearchParameters
14265
14209
  }, this.props),
14266
14210
  React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
14267
- React__default.createElement(SearchBox, null),
14211
+ React__default.createElement(SearchBox$2, null),
14268
14212
  this.props.refinementAttributes && React__default.createElement(
14269
14213
  'div',
14270
14214
  { className: 'search_refinement' },
@@ -14272,18 +14216,18 @@ var AlgoliaSearch = function (_React$Component) {
14272
14216
  return React__default.createElement(
14273
14217
  DropdownButton,
14274
14218
  { title: item.title },
14275
- React__default.createElement(RefinementList, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
14219
+ React__default.createElement(RefinementList$3, { showMore: item.showMore, limit: item.limit, showMoreLimit: item.showMoreLimit, attribute: item.attribute })
14276
14220
  );
14277
14221
  })
14278
14222
  ),
14279
14223
  React__default.createElement(
14280
14224
  'div',
14281
14225
  { className: 'AlgoliaResults' },
14282
- React__default.createElement(Hits, { hitComponent: function hitComponent(hit) {
14226
+ React__default.createElement(Hits$1, { hitComponent: function hitComponent(hit) {
14283
14227
  return _this2.Deck(_extends$1({}, hit, { propsObj: propsObj }));
14284
14228
  } })
14285
14229
  ),
14286
- React__default.createElement(Pagination, null)
14230
+ React__default.createElement(Pagination$2, null)
14287
14231
  ),
14288
14232
  React__default.createElement(
14289
14233
  'style',