vue-instantsearch 4.7.0 → 4.7.2

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 (425) hide show
  1. package/README.md +14 -2
  2. package/package.json +20 -104
  3. package/src/__tests__/index.js +12 -3
  4. package/src/components/Autocomplete.vue +4 -5
  5. package/src/components/Breadcrumb.vue +9 -6
  6. package/src/components/ClearRefinements.vue +2 -5
  7. package/src/components/Configure.js +1 -1
  8. package/src/components/CurrentRefinements.vue +6 -9
  9. package/src/components/DynamicWidgets.js +6 -4
  10. package/src/components/HierarchicalMenu.vue +4 -5
  11. package/src/components/HierarchicalMenuList.vue +3 -6
  12. package/src/components/Highlighter.vue +6 -7
  13. package/src/components/Hits.vue +4 -5
  14. package/src/components/HitsPerPage.vue +8 -13
  15. package/src/components/Index.js +1 -1
  16. package/src/components/InfiniteHits.vue +18 -10
  17. package/src/components/InstantSearch.js +1 -1
  18. package/src/components/InstantSearchSsr.js +1 -1
  19. package/src/components/Menu.vue +7 -5
  20. package/src/components/MenuSelect.vue +5 -9
  21. package/src/components/NumericMenu.vue +1 -1
  22. package/src/components/Pagination.vue +20 -30
  23. package/src/components/Panel.vue +4 -16
  24. package/src/components/PoweredBy.vue +2 -2
  25. package/src/components/QueryRuleCustomData.vue +3 -12
  26. package/src/components/RangeInput.vue +10 -8
  27. package/src/components/RatingMenu.vue +11 -22
  28. package/src/components/RefinementList.vue +12 -29
  29. package/src/components/RelevantSort.vue +9 -21
  30. package/src/components/SearchBox.vue +10 -40
  31. package/src/components/SearchInput.vue +12 -17
  32. package/src/components/SortBy.vue +4 -5
  33. package/src/components/StateResults.vue +2 -7
  34. package/src/components/Stats.vue +8 -5
  35. package/src/components/ToggleRefinement.vue +4 -5
  36. package/src/components/VoiceSearch.vue +10 -50
  37. package/src/components/__Template.vue +7 -17
  38. package/src/components/__tests__/Autocomplete.js +7 -1
  39. package/src/components/__tests__/Breadcrumb.js +7 -2
  40. package/src/components/__tests__/ClearRefinements.js +6 -1
  41. package/src/components/__tests__/Configure.js +7 -2
  42. package/src/components/__tests__/ConfigureRelatedItems.js +7 -2
  43. package/src/components/__tests__/CurrentRefinements.js +6 -0
  44. package/src/components/__tests__/DynamicWidgets.js +8 -3
  45. package/src/components/__tests__/ExperimentalDynamicWidgets.js +9 -1
  46. package/src/components/__tests__/HierarchicalMenu.js +12 -4
  47. package/src/components/__tests__/Highlight.js +5 -0
  48. package/src/components/__tests__/Hits.js +5 -0
  49. package/src/components/__tests__/HitsPerPage.js +5 -0
  50. package/src/components/__tests__/Index-integration.js +5 -0
  51. package/src/components/__tests__/Index.js +7 -1
  52. package/src/components/__tests__/InfiniteHits.js +7 -2
  53. package/src/components/__tests__/InstantSearch-integration.js +6 -1
  54. package/src/components/__tests__/InstantSearch.js +18 -5
  55. package/src/components/__tests__/InstantSearchSsr.js +6 -1
  56. package/src/components/__tests__/Menu.js +8 -3
  57. package/src/components/__tests__/MenuSelect.js +5 -0
  58. package/src/components/__tests__/NumericMenu.js +6 -1
  59. package/src/components/__tests__/Pagination.js +5 -0
  60. package/src/components/__tests__/Panel.js +5 -0
  61. package/src/components/__tests__/PoweredBy.js +6 -1
  62. package/src/components/__tests__/QueryRuleContext.js +5 -0
  63. package/src/components/__tests__/QueryRuleCustomData.js +5 -0
  64. package/src/components/__tests__/RangeInput.js +5 -0
  65. package/src/components/__tests__/RatingMenu.js +5 -0
  66. package/src/components/__tests__/RefinementList.js +7 -2
  67. package/src/components/__tests__/RelevantSort.js +7 -1
  68. package/src/components/__tests__/SearchBox.js +15 -10
  69. package/src/components/__tests__/Snippet.js +5 -0
  70. package/src/components/__tests__/SortBy.js +5 -0
  71. package/src/components/__tests__/StateResults.js +35 -9
  72. package/src/components/__tests__/Stats.js +5 -0
  73. package/src/components/__tests__/ToggleRefinement.js +5 -0
  74. package/src/components/__tests__/VoiceSearch.js +6 -1
  75. package/src/components/__tests__/__Template.js +5 -0
  76. package/src/components/__tests__/__snapshots__/PoweredBy.js.snap +2 -2
  77. package/src/components/__tests__/__snapshots__/__Template.js.snap +0 -345
  78. package/src/connectors/connectStateResults.js +31 -31
  79. package/src/mixins/__tests__/panel.test.js +4 -0
  80. package/src/mixins/__tests__/suit.test.js +4 -0
  81. package/src/mixins/__tests__/widget.test.js +8 -4
  82. package/src/mixins/panel.js +2 -2
  83. package/src/plugin.js +1 -1
  84. package/src/util/__tests__/createServerRootMixin.test.js +266 -206
  85. package/src/util/__tests__/parseAlgoliaHit.test.js +1 -1
  86. package/src/util/createInstantSearchComponent.js +7 -7
  87. package/src/util/createServerRootMixin.js +17 -16
  88. package/src/util/parseAlgoliaHit.js +3 -3
  89. package/src/util/polyfills.js +1 -0
  90. package/src/util/testutils/client.js +1 -1
  91. package/src/util/unescape.js +1 -1
  92. package/src/util/vue-compat/index-vue2.js +1 -1
  93. package/src/util/vue-compat/index-vue3.js +1 -1
  94. package/src/widgets.js +7 -21
  95. package/vue2/cjs/index.js +1 -1
  96. package/vue2/cjs/index.js.map +1 -1
  97. package/vue2/es/package.json.js +1 -1
  98. package/vue2/es/src/components/Autocomplete.vue.js +1 -1
  99. package/vue2/es/src/components/Autocomplete.vue.js.map +1 -1
  100. package/vue2/es/src/components/Autocomplete.vue_rollup-plugin-vue=script.js +2 -0
  101. package/vue2/es/src/components/Autocomplete.vue_rollup-plugin-vue=script.js.map +1 -0
  102. package/vue2/es/src/components/Breadcrumb.vue.js +1 -1
  103. package/vue2/es/src/components/Breadcrumb.vue.js.map +1 -1
  104. package/vue2/es/src/components/Breadcrumb.vue_rollup-plugin-vue=script.js +2 -0
  105. package/vue2/es/src/components/Breadcrumb.vue_rollup-plugin-vue=script.js.map +1 -0
  106. package/vue2/es/src/components/ClearRefinements.vue.js +1 -1
  107. package/vue2/es/src/components/ClearRefinements.vue.js.map +1 -1
  108. package/vue2/es/src/components/ClearRefinements.vue_rollup-plugin-vue=script.js +2 -0
  109. package/vue2/es/src/components/ClearRefinements.vue_rollup-plugin-vue=script.js.map +1 -0
  110. package/vue2/es/src/components/Configure.js.map +1 -1
  111. package/vue2/es/src/components/ConfigureRelatedItems.js.map +1 -1
  112. package/vue2/es/src/components/CurrentRefinements.vue.js +1 -1
  113. package/vue2/es/src/components/CurrentRefinements.vue.js.map +1 -1
  114. package/vue2/es/src/components/CurrentRefinements.vue_rollup-plugin-vue=script.js +2 -0
  115. package/vue2/es/src/components/CurrentRefinements.vue_rollup-plugin-vue=script.js.map +1 -0
  116. package/vue2/es/src/components/DynamicWidgets.js.map +1 -1
  117. package/vue2/es/src/components/HierarchicalMenu.vue.js +1 -1
  118. package/vue2/es/src/components/HierarchicalMenu.vue.js.map +1 -1
  119. package/vue2/es/src/components/HierarchicalMenu.vue_rollup-plugin-vue=script.js +2 -0
  120. package/vue2/es/src/components/HierarchicalMenu.vue_rollup-plugin-vue=script.js.map +1 -0
  121. package/vue2/es/src/components/HierarchicalMenuList.vue.js +1 -1
  122. package/vue2/es/src/components/HierarchicalMenuList.vue.js.map +1 -1
  123. package/vue2/es/src/components/HierarchicalMenuList.vue_rollup-plugin-vue=script.js +2 -0
  124. package/vue2/es/src/components/HierarchicalMenuList.vue_rollup-plugin-vue=script.js.map +1 -0
  125. package/vue2/es/src/components/Highlight.vue.js +1 -1
  126. package/vue2/es/src/components/Highlight.vue.js.map +1 -1
  127. package/vue2/es/src/components/Highlight.vue_rollup-plugin-vue=script.js +2 -0
  128. package/vue2/es/src/components/Highlight.vue_rollup-plugin-vue=script.js.map +1 -0
  129. package/vue2/es/src/components/Highlighter.vue.js +1 -1
  130. package/vue2/es/src/components/Highlighter.vue.js.map +1 -1
  131. package/vue2/es/src/components/Highlighter.vue_rollup-plugin-vue=script.js +2 -0
  132. package/vue2/es/src/components/Highlighter.vue_rollup-plugin-vue=script.js.map +1 -0
  133. package/vue2/es/src/components/Hits.vue.js +1 -1
  134. package/vue2/es/src/components/Hits.vue.js.map +1 -1
  135. package/vue2/es/src/components/Hits.vue_rollup-plugin-vue=script.js +2 -0
  136. package/vue2/es/src/components/Hits.vue_rollup-plugin-vue=script.js.map +1 -0
  137. package/vue2/es/src/components/HitsPerPage.vue.js +1 -1
  138. package/vue2/es/src/components/HitsPerPage.vue.js.map +1 -1
  139. package/vue2/es/src/components/HitsPerPage.vue_rollup-plugin-vue=script.js +2 -0
  140. package/vue2/es/src/components/HitsPerPage.vue_rollup-plugin-vue=script.js.map +1 -0
  141. package/vue2/es/src/components/Index.js.map +1 -1
  142. package/vue2/es/src/components/InfiniteHits.vue.js +1 -1
  143. package/vue2/es/src/components/InfiniteHits.vue.js.map +1 -1
  144. package/vue2/es/src/components/InfiniteHits.vue_rollup-plugin-vue=script.js +2 -0
  145. package/vue2/es/src/components/InfiniteHits.vue_rollup-plugin-vue=script.js.map +1 -0
  146. package/vue2/es/src/components/InstantSearch.js.map +1 -1
  147. package/vue2/es/src/components/InstantSearchSsr.js.map +1 -1
  148. package/vue2/es/src/components/Menu.vue.js +1 -1
  149. package/vue2/es/src/components/Menu.vue.js.map +1 -1
  150. package/vue2/es/src/components/Menu.vue_rollup-plugin-vue=script.js +2 -0
  151. package/vue2/es/src/components/Menu.vue_rollup-plugin-vue=script.js.map +1 -0
  152. package/vue2/es/src/components/MenuSelect.vue.js +1 -1
  153. package/vue2/es/src/components/MenuSelect.vue.js.map +1 -1
  154. package/vue2/es/src/components/MenuSelect.vue_rollup-plugin-vue=script.js +2 -0
  155. package/vue2/es/src/components/MenuSelect.vue_rollup-plugin-vue=script.js.map +1 -0
  156. package/vue2/es/src/components/NumericMenu.vue.js +1 -1
  157. package/vue2/es/src/components/NumericMenu.vue.js.map +1 -1
  158. package/vue2/es/src/components/NumericMenu.vue_rollup-plugin-vue=script.js +2 -0
  159. package/vue2/es/src/components/NumericMenu.vue_rollup-plugin-vue=script.js.map +1 -0
  160. package/vue2/es/src/components/Pagination.vue.js +1 -1
  161. package/vue2/es/src/components/Pagination.vue.js.map +1 -1
  162. package/vue2/es/src/components/Pagination.vue_rollup-plugin-vue=script.js +2 -0
  163. package/vue2/es/src/components/Pagination.vue_rollup-plugin-vue=script.js.map +1 -0
  164. package/vue2/es/src/components/Panel.vue.js +1 -1
  165. package/vue2/es/src/components/Panel.vue.js.map +1 -1
  166. package/vue2/es/src/components/Panel.vue_rollup-plugin-vue=script.js +2 -0
  167. package/vue2/es/src/components/Panel.vue_rollup-plugin-vue=script.js.map +1 -0
  168. package/vue2/es/src/components/PoweredBy.vue.js +1 -1
  169. package/vue2/es/src/components/PoweredBy.vue.js.map +1 -1
  170. package/vue2/es/src/components/PoweredBy.vue_rollup-plugin-vue=script.js +2 -0
  171. package/vue2/es/src/components/PoweredBy.vue_rollup-plugin-vue=script.js.map +1 -0
  172. package/vue2/es/src/components/QueryRuleContext.js.map +1 -1
  173. package/vue2/es/src/components/QueryRuleCustomData.vue.js +1 -1
  174. package/vue2/es/src/components/QueryRuleCustomData.vue.js.map +1 -1
  175. package/vue2/es/src/components/QueryRuleCustomData.vue_rollup-plugin-vue=script.js +2 -0
  176. package/vue2/es/src/components/QueryRuleCustomData.vue_rollup-plugin-vue=script.js.map +1 -0
  177. package/vue2/es/src/components/RangeInput.vue.js +1 -1
  178. package/vue2/es/src/components/RangeInput.vue.js.map +1 -1
  179. package/vue2/es/src/components/RangeInput.vue_rollup-plugin-vue=script.js +2 -0
  180. package/vue2/es/src/components/RangeInput.vue_rollup-plugin-vue=script.js.map +1 -0
  181. package/vue2/es/src/components/RatingMenu.vue.js +1 -1
  182. package/vue2/es/src/components/RatingMenu.vue.js.map +1 -1
  183. package/vue2/es/src/components/RatingMenu.vue_rollup-plugin-vue=script.js +2 -0
  184. package/vue2/es/src/components/RatingMenu.vue_rollup-plugin-vue=script.js.map +1 -0
  185. package/vue2/es/src/components/RefinementList.vue.js +1 -1
  186. package/vue2/es/src/components/RefinementList.vue.js.map +1 -1
  187. package/vue2/es/src/components/RefinementList.vue_rollup-plugin-vue=script.js +2 -0
  188. package/vue2/es/src/components/RefinementList.vue_rollup-plugin-vue=script.js.map +1 -0
  189. package/vue2/es/src/components/RelevantSort.vue.js +1 -1
  190. package/vue2/es/src/components/RelevantSort.vue.js.map +1 -1
  191. package/vue2/es/src/components/RelevantSort.vue_rollup-plugin-vue=script.js +2 -0
  192. package/vue2/es/src/components/RelevantSort.vue_rollup-plugin-vue=script.js.map +1 -0
  193. package/vue2/es/src/components/SearchBox.vue.js +1 -1
  194. package/vue2/es/src/components/SearchBox.vue.js.map +1 -1
  195. package/vue2/es/src/components/SearchBox.vue_rollup-plugin-vue=script.js +2 -0
  196. package/vue2/es/src/components/SearchBox.vue_rollup-plugin-vue=script.js.map +1 -0
  197. package/vue2/es/src/components/SearchInput.vue.js +1 -1
  198. package/vue2/es/src/components/SearchInput.vue.js.map +1 -1
  199. package/vue2/es/src/components/SearchInput.vue_rollup-plugin-vue=script.js +2 -0
  200. package/vue2/es/src/components/SearchInput.vue_rollup-plugin-vue=script.js.map +1 -0
  201. package/vue2/es/src/components/Snippet.vue.js +1 -1
  202. package/vue2/es/src/components/Snippet.vue.js.map +1 -1
  203. package/vue2/es/src/components/Snippet.vue_rollup-plugin-vue=script.js +2 -0
  204. package/vue2/es/src/components/Snippet.vue_rollup-plugin-vue=script.js.map +1 -0
  205. package/vue2/es/src/components/SortBy.vue.js +1 -1
  206. package/vue2/es/src/components/SortBy.vue.js.map +1 -1
  207. package/vue2/es/src/components/SortBy.vue_rollup-plugin-vue=script.js +2 -0
  208. package/vue2/es/src/components/SortBy.vue_rollup-plugin-vue=script.js.map +1 -0
  209. package/vue2/es/src/components/StateResults.vue.js +1 -1
  210. package/vue2/es/src/components/StateResults.vue.js.map +1 -1
  211. package/vue2/es/src/components/StateResults.vue_rollup-plugin-vue=script.js +2 -0
  212. package/vue2/es/src/components/StateResults.vue_rollup-plugin-vue=script.js.map +1 -0
  213. package/vue2/es/src/components/Stats.vue.js +1 -1
  214. package/vue2/es/src/components/Stats.vue.js.map +1 -1
  215. package/vue2/es/src/components/Stats.vue_rollup-plugin-vue=script.js +2 -0
  216. package/vue2/es/src/components/Stats.vue_rollup-plugin-vue=script.js.map +1 -0
  217. package/vue2/es/src/components/ToggleRefinement.vue.js +1 -1
  218. package/vue2/es/src/components/ToggleRefinement.vue.js.map +1 -1
  219. package/vue2/es/src/components/ToggleRefinement.vue_rollup-plugin-vue=script.js +2 -0
  220. package/vue2/es/src/components/ToggleRefinement.vue_rollup-plugin-vue=script.js.map +1 -0
  221. package/vue2/es/src/components/VoiceSearch.vue.js +1 -1
  222. package/vue2/es/src/components/VoiceSearch.vue.js.map +1 -1
  223. package/vue2/es/src/components/VoiceSearch.vue_rollup-plugin-vue=script.js +2 -0
  224. package/vue2/es/src/components/VoiceSearch.vue_rollup-plugin-vue=script.js.map +1 -0
  225. package/vue2/es/src/mixins/panel.js.map +1 -1
  226. package/vue2/es/src/mixins/suit.js.map +1 -1
  227. package/vue2/es/src/mixins/widget.js.map +1 -1
  228. package/vue2/es/src/plugin.js.map +1 -1
  229. package/vue2/es/src/util/createInstantSearchComponent.js +1 -1
  230. package/vue2/es/src/util/createInstantSearchComponent.js.map +1 -1
  231. package/vue2/es/src/util/createServerRootMixin.js +1 -1
  232. package/vue2/es/src/util/createServerRootMixin.js.map +1 -1
  233. package/vue2/es/src/util/parseAlgoliaHit.js.map +1 -1
  234. package/vue2/es/src/util/polyfills.js.map +1 -1
  235. package/vue2/es/src/util/suit.js.map +1 -1
  236. package/vue2/es/src/util/unescape.js.map +1 -1
  237. package/vue2/es/src/util/vue-compat/index-vue2.js.map +1 -1
  238. package/vue2/umd/index.js +1 -1
  239. package/vue2/umd/index.js.map +1 -1
  240. package/vue3/cjs/index.js +1 -1
  241. package/vue3/cjs/index.js.map +1 -1
  242. package/vue3/es/package.json.js +1 -1
  243. package/vue3/es/src/components/Autocomplete.vue.js +1 -1
  244. package/vue3/es/src/components/Autocomplete.vue_vue&type=script&lang.js.map +1 -1
  245. package/vue3/es/src/components/Autocomplete.vue_vue&type=template&id=7ca53d64&lang.js +2 -0
  246. package/vue3/es/src/components/Autocomplete.vue_vue&type=template&id=7ca53d64&lang.js.map +1 -0
  247. package/vue3/es/src/components/Breadcrumb.vue.js +1 -1
  248. package/vue3/es/src/components/Breadcrumb.vue_vue&type=script&lang.js.map +1 -1
  249. package/vue3/es/src/components/{Breadcrumb.vue_vue&type=template&id=6f46de9a&lang.js → Breadcrumb.vue_vue&type=template&id=5374ac81&lang.js} +2 -2
  250. package/vue3/es/src/components/Breadcrumb.vue_vue&type=template&id=5374ac81&lang.js.map +1 -0
  251. package/vue3/es/src/components/ClearRefinements.vue.js +1 -1
  252. package/vue3/es/src/components/ClearRefinements.vue_vue&type=script&lang.js.map +1 -1
  253. package/vue3/es/src/components/ClearRefinements.vue_vue&type=template&id=1b5799b9&lang.js +2 -0
  254. package/vue3/es/src/components/ClearRefinements.vue_vue&type=template&id=1b5799b9&lang.js.map +1 -0
  255. package/vue3/es/src/components/Configure.js.map +1 -1
  256. package/vue3/es/src/components/ConfigureRelatedItems.js.map +1 -1
  257. package/vue3/es/src/components/CurrentRefinements.vue.js +1 -1
  258. package/vue3/es/src/components/CurrentRefinements.vue_vue&type=script&lang.js.map +1 -1
  259. package/vue3/es/src/components/{CurrentRefinements.vue_vue&type=template&id=4f1917ff&lang.js → CurrentRefinements.vue_vue&type=template&id=6256a290&lang.js} +2 -2
  260. package/vue3/es/src/components/CurrentRefinements.vue_vue&type=template&id=6256a290&lang.js.map +1 -0
  261. package/vue3/es/src/components/DynamicWidgets.js.map +1 -1
  262. package/vue3/es/src/components/HierarchicalMenu.vue.js +1 -1
  263. package/vue3/es/src/components/HierarchicalMenu.vue_vue&type=script&lang.js.map +1 -1
  264. package/vue3/es/src/components/{HierarchicalMenu.vue_vue&type=template&id=4361a0b8&lang.js → HierarchicalMenu.vue_vue&type=template&id=3548a9a1&lang.js} +2 -2
  265. package/vue3/es/src/components/HierarchicalMenu.vue_vue&type=template&id=3548a9a1&lang.js.map +1 -0
  266. package/vue3/es/src/components/HierarchicalMenuList.vue.js +1 -1
  267. package/vue3/es/src/components/HierarchicalMenuList.vue_vue&type=script&lang.js.map +1 -1
  268. package/vue3/es/src/components/{HierarchicalMenuList.vue_vue&type=template&id=0435b314&lang.js → HierarchicalMenuList.vue_vue&type=template&id=45723c6c&lang.js} +2 -2
  269. package/vue3/es/src/components/HierarchicalMenuList.vue_vue&type=template&id=45723c6c&lang.js.map +1 -0
  270. package/vue3/es/src/components/Highlight.vue.js +1 -1
  271. package/vue3/es/src/components/{Highlight.vue_vue&type=template&id=300b0ab4&lang.js → Highlight.vue_vue&type=template&id=7592ff40&lang.js} +1 -1
  272. package/vue3/es/src/components/{Highlight.vue_vue&type=template&id=300b0ab4&lang.js.map → Highlight.vue_vue&type=template&id=7592ff40&lang.js.map} +1 -1
  273. package/vue3/es/src/components/Highlighter.vue.js +1 -1
  274. package/vue3/es/src/components/Highlighter.vue_vue&type=script&lang.js.map +1 -1
  275. package/vue3/es/src/components/{Highlighter.vue_vue&type=template&id=92153c3e&lang.js → Highlighter.vue_vue&type=template&id=11ec06d9&lang.js} +1 -1
  276. package/vue3/es/src/components/Highlighter.vue_vue&type=template&id=11ec06d9&lang.js.map +1 -0
  277. package/vue3/es/src/components/Hits.vue.js +1 -1
  278. package/vue3/es/src/components/Hits.vue_vue&type=script&lang.js.map +1 -1
  279. package/vue3/es/src/components/Hits.vue_vue&type=template&id=5bc4cfef&lang.js +2 -0
  280. package/vue3/es/src/components/Hits.vue_vue&type=template&id=5bc4cfef&lang.js.map +1 -0
  281. package/vue3/es/src/components/HitsPerPage.vue.js +1 -1
  282. package/vue3/es/src/components/HitsPerPage.vue_vue&type=script&lang.js.map +1 -1
  283. package/vue3/es/src/components/{HitsPerPage.vue_vue&type=template&id=74f3ac28&lang.js → HitsPerPage.vue_vue&type=template&id=73c9813e&lang.js} +2 -2
  284. package/vue3/es/src/components/HitsPerPage.vue_vue&type=template&id=73c9813e&lang.js.map +1 -0
  285. package/vue3/es/src/components/Index.js.map +1 -1
  286. package/vue3/es/src/components/InfiniteHits.vue.js +1 -1
  287. package/vue3/es/src/components/InfiniteHits.vue_vue&type=script&lang.js.map +1 -1
  288. package/vue3/es/src/components/InfiniteHits.vue_vue&type=template&id=0e2ba520&lang.js +2 -0
  289. package/vue3/es/src/components/InfiniteHits.vue_vue&type=template&id=0e2ba520&lang.js.map +1 -0
  290. package/vue3/es/src/components/InstantSearch.js.map +1 -1
  291. package/vue3/es/src/components/InstantSearchSsr.js.map +1 -1
  292. package/vue3/es/src/components/Menu.vue.js +1 -1
  293. package/vue3/es/src/components/Menu.vue_vue&type=script&lang.js.map +1 -1
  294. package/vue3/es/src/components/{Menu.vue_vue&type=template&id=9bcc0be2&lang.js → Menu.vue_vue&type=template&id=577979d0&lang.js} +2 -2
  295. package/vue3/es/src/components/Menu.vue_vue&type=template&id=577979d0&lang.js.map +1 -0
  296. package/vue3/es/src/components/MenuSelect.vue.js +1 -1
  297. package/vue3/es/src/components/MenuSelect.vue_vue&type=script&lang.js.map +1 -1
  298. package/vue3/es/src/components/MenuSelect.vue_vue&type=template&id=12bad393&lang.js +2 -0
  299. package/vue3/es/src/components/MenuSelect.vue_vue&type=template&id=12bad393&lang.js.map +1 -0
  300. package/vue3/es/src/components/NumericMenu.vue.js +1 -1
  301. package/vue3/es/src/components/NumericMenu.vue_vue&type=script&lang.js.map +1 -1
  302. package/vue3/es/src/components/{NumericMenu.vue_vue&type=template&id=160fae0c&lang.js → NumericMenu.vue_vue&type=template&id=ada9761c&lang.js} +2 -2
  303. package/vue3/es/src/components/NumericMenu.vue_vue&type=template&id=ada9761c&lang.js.map +1 -0
  304. package/vue3/es/src/components/Pagination.vue.js +1 -1
  305. package/vue3/es/src/components/Pagination.vue_vue&type=script&lang.js.map +1 -1
  306. package/vue3/es/src/components/Pagination.vue_vue&type=template&id=189fc463&lang.js +2 -0
  307. package/vue3/es/src/components/Pagination.vue_vue&type=template&id=189fc463&lang.js.map +1 -0
  308. package/vue3/es/src/components/Panel.vue.js +1 -1
  309. package/vue3/es/src/components/Panel.vue_vue&type=script&lang.js.map +1 -1
  310. package/vue3/es/src/components/Panel.vue_vue&type=template&id=766abb5d&lang.js +2 -0
  311. package/vue3/es/src/components/Panel.vue_vue&type=template&id=766abb5d&lang.js.map +1 -0
  312. package/vue3/es/src/components/PoweredBy.vue.js +1 -1
  313. package/vue3/es/src/components/PoweredBy.vue_vue&type=script&lang.js.map +1 -1
  314. package/vue3/es/src/components/{PoweredBy.vue_vue&type=template&id=3e8d7a5b&lang.js → PoweredBy.vue_vue&type=template&id=85db7eac&lang.js} +1 -1
  315. package/vue3/es/src/components/PoweredBy.vue_vue&type=template&id=85db7eac&lang.js.map +1 -0
  316. package/vue3/es/src/components/QueryRuleContext.js.map +1 -1
  317. package/vue3/es/src/components/QueryRuleCustomData.vue.js +1 -1
  318. package/vue3/es/src/components/QueryRuleCustomData.vue_vue&type=script&lang.js.map +1 -1
  319. package/vue3/es/src/components/QueryRuleCustomData.vue_vue&type=template&id=31c98630&lang.js +2 -0
  320. package/vue3/es/src/components/QueryRuleCustomData.vue_vue&type=template&id=31c98630&lang.js.map +1 -0
  321. package/vue3/es/src/components/RangeInput.vue.js +1 -1
  322. package/vue3/es/src/components/RangeInput.vue_vue&type=script&lang.js.map +1 -1
  323. package/vue3/es/src/components/RangeInput.vue_vue&type=template&id=2c7c21d8&lang.js +2 -0
  324. package/vue3/es/src/components/RangeInput.vue_vue&type=template&id=2c7c21d8&lang.js.map +1 -0
  325. package/vue3/es/src/components/RatingMenu.vue.js +1 -1
  326. package/vue3/es/src/components/RatingMenu.vue_vue&type=script&lang.js.map +1 -1
  327. package/vue3/es/src/components/{RatingMenu.vue_vue&type=template&id=9254de68&lang.js → RatingMenu.vue_vue&type=template&id=0fb40347&lang.js} +2 -2
  328. package/vue3/es/src/components/RatingMenu.vue_vue&type=template&id=0fb40347&lang.js.map +1 -0
  329. package/vue3/es/src/components/RefinementList.vue.js +1 -1
  330. package/vue3/es/src/components/RefinementList.vue_vue&type=script&lang.js.map +1 -1
  331. package/vue3/es/src/components/RefinementList.vue_vue&type=template&id=00083417&lang.js +2 -0
  332. package/vue3/es/src/components/RefinementList.vue_vue&type=template&id=00083417&lang.js.map +1 -0
  333. package/vue3/es/src/components/RelevantSort.vue.js +1 -1
  334. package/vue3/es/src/components/RelevantSort.vue_vue&type=script&lang.js.map +1 -1
  335. package/vue3/es/src/components/RelevantSort.vue_vue&type=template&id=0d400606&lang.js +2 -0
  336. package/vue3/es/src/components/RelevantSort.vue_vue&type=template&id=0d400606&lang.js.map +1 -0
  337. package/vue3/es/src/components/SearchBox.vue.js +1 -1
  338. package/vue3/es/src/components/SearchBox.vue_vue&type=script&lang.js.map +1 -1
  339. package/vue3/es/src/components/SearchBox.vue_vue&type=template&id=30bd05ae&lang.js +2 -0
  340. package/vue3/es/src/components/SearchBox.vue_vue&type=template&id=30bd05ae&lang.js.map +1 -0
  341. package/vue3/es/src/components/SearchInput.vue.js +1 -1
  342. package/vue3/es/src/components/SearchInput.vue_vue&type=script&lang.js.map +1 -1
  343. package/vue3/es/src/components/SearchInput.vue_vue&type=template&id=084af36e&lang.js +2 -0
  344. package/vue3/es/src/components/SearchInput.vue_vue&type=template&id=084af36e&lang.js.map +1 -0
  345. package/vue3/es/src/components/Snippet.vue.js +1 -1
  346. package/vue3/es/src/components/{Snippet.vue_vue&type=template&id=eb4966c6&lang.js → Snippet.vue_vue&type=template&id=1cd4c392&lang.js} +1 -1
  347. package/vue3/es/src/components/{Snippet.vue_vue&type=template&id=eb4966c6&lang.js.map → Snippet.vue_vue&type=template&id=1cd4c392&lang.js.map} +1 -1
  348. package/vue3/es/src/components/SortBy.vue.js +1 -1
  349. package/vue3/es/src/components/SortBy.vue_vue&type=script&lang.js.map +1 -1
  350. package/vue3/es/src/components/{SortBy.vue_vue&type=template&id=b69b3b76&lang.js → SortBy.vue_vue&type=template&id=6a94a4c1&lang.js} +2 -2
  351. package/vue3/es/src/components/SortBy.vue_vue&type=template&id=6a94a4c1&lang.js.map +1 -0
  352. package/vue3/es/src/components/StateResults.vue.js +1 -1
  353. package/vue3/es/src/components/StateResults.vue_vue&type=script&lang.js.map +1 -1
  354. package/vue3/es/src/components/StateResults.vue_vue&type=template&id=2ea5b184&lang.js +2 -0
  355. package/vue3/es/src/components/StateResults.vue_vue&type=template&id=2ea5b184&lang.js.map +1 -0
  356. package/vue3/es/src/components/Stats.vue.js +1 -1
  357. package/vue3/es/src/components/Stats.vue_vue&type=script&lang.js.map +1 -1
  358. package/vue3/es/src/components/{Stats.vue_vue&type=template&id=7337491f&lang.js → Stats.vue_vue&type=template&id=05ff9d6a&lang.js} +2 -2
  359. package/vue3/es/src/components/Stats.vue_vue&type=template&id=05ff9d6a&lang.js.map +1 -0
  360. package/vue3/es/src/components/ToggleRefinement.vue.js +1 -1
  361. package/vue3/es/src/components/ToggleRefinement.vue_vue&type=script&lang.js.map +1 -1
  362. package/vue3/es/src/components/{ToggleRefinement.vue_vue&type=template&id=14e4586f&lang.js → ToggleRefinement.vue_vue&type=template&id=461db228&lang.js} +2 -2
  363. package/vue3/es/src/components/ToggleRefinement.vue_vue&type=template&id=461db228&lang.js.map +1 -0
  364. package/vue3/es/src/components/VoiceSearch.vue.js +1 -1
  365. package/vue3/es/src/components/VoiceSearch.vue_vue&type=script&lang.js.map +1 -1
  366. package/vue3/es/src/components/{VoiceSearch.vue_vue&type=template&id=24b0f67a&lang.js → VoiceSearch.vue_vue&type=template&id=1cf17560&lang.js} +2 -2
  367. package/vue3/es/src/components/VoiceSearch.vue_vue&type=template&id=1cf17560&lang.js.map +1 -0
  368. package/vue3/es/src/mixins/panel.js.map +1 -1
  369. package/vue3/es/src/mixins/suit.js.map +1 -1
  370. package/vue3/es/src/mixins/widget.js.map +1 -1
  371. package/vue3/es/src/plugin.js.map +1 -1
  372. package/vue3/es/src/util/createInstantSearchComponent.js +1 -1
  373. package/vue3/es/src/util/createInstantSearchComponent.js.map +1 -1
  374. package/vue3/es/src/util/createServerRootMixin.js +1 -1
  375. package/vue3/es/src/util/createServerRootMixin.js.map +1 -1
  376. package/vue3/es/src/util/parseAlgoliaHit.js.map +1 -1
  377. package/vue3/es/src/util/polyfills.js.map +1 -1
  378. package/vue3/es/src/util/suit.js.map +1 -1
  379. package/vue3/es/src/util/unescape.js.map +1 -1
  380. package/vue3/es/src/util/vue-compat/index-vue3.js.map +1 -1
  381. package/vue3/umd/index.js +1 -1
  382. package/vue3/umd/index.js.map +1 -1
  383. package/CHANGELOG.md +0 -892
  384. package/vue3/es/src/components/Autocomplete.vue_vue&type=template&id=e7c95fd0&lang.js +0 -2
  385. package/vue3/es/src/components/Autocomplete.vue_vue&type=template&id=e7c95fd0&lang.js.map +0 -1
  386. package/vue3/es/src/components/Breadcrumb.vue_vue&type=template&id=6f46de9a&lang.js.map +0 -1
  387. package/vue3/es/src/components/ClearRefinements.vue_vue&type=template&id=410a3aaa&lang.js +0 -2
  388. package/vue3/es/src/components/ClearRefinements.vue_vue&type=template&id=410a3aaa&lang.js.map +0 -1
  389. package/vue3/es/src/components/CurrentRefinements.vue_vue&type=template&id=4f1917ff&lang.js.map +0 -1
  390. package/vue3/es/src/components/HierarchicalMenu.vue_vue&type=template&id=4361a0b8&lang.js.map +0 -1
  391. package/vue3/es/src/components/HierarchicalMenuList.vue_vue&type=template&id=0435b314&lang.js.map +0 -1
  392. package/vue3/es/src/components/Highlighter.vue_vue&type=template&id=92153c3e&lang.js.map +0 -1
  393. package/vue3/es/src/components/Hits.vue_vue&type=template&id=ef242920&lang.js +0 -2
  394. package/vue3/es/src/components/Hits.vue_vue&type=template&id=ef242920&lang.js.map +0 -1
  395. package/vue3/es/src/components/HitsPerPage.vue_vue&type=template&id=74f3ac28&lang.js.map +0 -1
  396. package/vue3/es/src/components/InfiniteHits.vue_vue&type=template&id=dcfb64b8&lang.js +0 -2
  397. package/vue3/es/src/components/InfiniteHits.vue_vue&type=template&id=dcfb64b8&lang.js.map +0 -1
  398. package/vue3/es/src/components/Menu.vue_vue&type=template&id=9bcc0be2&lang.js.map +0 -1
  399. package/vue3/es/src/components/MenuSelect.vue_vue&type=template&id=694477eb&lang.js +0 -2
  400. package/vue3/es/src/components/MenuSelect.vue_vue&type=template&id=694477eb&lang.js.map +0 -1
  401. package/vue3/es/src/components/NumericMenu.vue_vue&type=template&id=160fae0c&lang.js.map +0 -1
  402. package/vue3/es/src/components/Pagination.vue_vue&type=template&id=849a166c&lang.js +0 -2
  403. package/vue3/es/src/components/Pagination.vue_vue&type=template&id=849a166c&lang.js.map +0 -1
  404. package/vue3/es/src/components/Panel.vue_vue&type=template&id=d32d57f8&lang.js +0 -2
  405. package/vue3/es/src/components/Panel.vue_vue&type=template&id=d32d57f8&lang.js.map +0 -1
  406. package/vue3/es/src/components/PoweredBy.vue_vue&type=template&id=3e8d7a5b&lang.js.map +0 -1
  407. package/vue3/es/src/components/QueryRuleCustomData.vue_vue&type=template&id=e4da0782&lang.js +0 -2
  408. package/vue3/es/src/components/QueryRuleCustomData.vue_vue&type=template&id=e4da0782&lang.js.map +0 -1
  409. package/vue3/es/src/components/RangeInput.vue_vue&type=template&id=1e17783d&lang.js +0 -2
  410. package/vue3/es/src/components/RangeInput.vue_vue&type=template&id=1e17783d&lang.js.map +0 -1
  411. package/vue3/es/src/components/RatingMenu.vue_vue&type=template&id=9254de68&lang.js.map +0 -1
  412. package/vue3/es/src/components/RefinementList.vue_vue&type=template&id=28927239&lang.js +0 -2
  413. package/vue3/es/src/components/RefinementList.vue_vue&type=template&id=28927239&lang.js.map +0 -1
  414. package/vue3/es/src/components/RelevantSort.vue_vue&type=template&id=257b248b&lang.js +0 -2
  415. package/vue3/es/src/components/RelevantSort.vue_vue&type=template&id=257b248b&lang.js.map +0 -1
  416. package/vue3/es/src/components/SearchBox.vue_vue&type=template&id=27029d83&lang.js +0 -2
  417. package/vue3/es/src/components/SearchBox.vue_vue&type=template&id=27029d83&lang.js.map +0 -1
  418. package/vue3/es/src/components/SearchInput.vue_vue&type=template&id=2eed8ffc&lang.js +0 -2
  419. package/vue3/es/src/components/SearchInput.vue_vue&type=template&id=2eed8ffc&lang.js.map +0 -1
  420. package/vue3/es/src/components/SortBy.vue_vue&type=template&id=b69b3b76&lang.js.map +0 -1
  421. package/vue3/es/src/components/StateResults.vue_vue&type=template&id=5992f3d5&lang.js +0 -2
  422. package/vue3/es/src/components/StateResults.vue_vue&type=template&id=5992f3d5&lang.js.map +0 -1
  423. package/vue3/es/src/components/Stats.vue_vue&type=template&id=7337491f&lang.js.map +0 -1
  424. package/vue3/es/src/components/ToggleRefinement.vue_vue&type=template&id=14e4586f&lang.js.map +0 -1
  425. package/vue3/es/src/components/VoiceSearch.vue_vue&type=template&id=24b0f67a&lang.js.map +0 -1
@@ -1,2 +1,2 @@
1
- var r="4.7.0";export{r as version};
1
+ var r="4.7.2";export{r as version};
2
2
  //# sourceMappingURL=package.json.js.map
@@ -1,2 +1,2 @@
1
- import e from"./Autocomplete.vue_vue&type=script&lang.js";import{render as t}from"./Autocomplete.vue_vue&type=template&id=e7c95fd0&lang.js";e.render=t,e.__file="src/components/Autocomplete.vue";export default e;
1
+ import e from"./Autocomplete.vue_vue&type=script&lang.js";import{render as t}from"./Autocomplete.vue_vue&type=template&id=7ca53d64&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=Autocomplete.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.vue_vue&type=script&lang.js","sources":["../../../../src/components/Autocomplete.vue"],"sourcesContent":["<template>\n <div\n :class=\"suit()\"\n v-if=\"state\"\n >\n <slot\n :refine=\"state.refine\"\n :current-refinement=\"state.currentRefinement\"\n :indices=\"state.indices\"\n >\n <p>This widget doesn't render anything without a filled in default slot.</p>\n <p>query, function to refine and results are provided.</p>\n <pre>refine: Function</pre>\n <pre>currentRefinement: \"{{ state.currentRefinement }}\"</pre>\n <details>\n <summary><code>indices</code>:</summary>\n <pre>{{ state.indices }}</pre>\n </details>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectAutocomplete } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisAutocomplete',\n mixins: [\n createWidgetMixin(\n {\n connector: connectAutocomplete,\n },\n {\n $$widgetType: 'ais.autocomplete',\n }\n ),\n createSuitMixin({ name: 'Autocomplete' }),\n ],\n props: {\n escapeHTML: {\n type: Boolean,\n required: false,\n default: true,\n },\n },\n computed: {\n widgetParams() {\n return {\n escapeHTML: this.escapeHTML,\n };\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectAutocomplete","$$widgetType","createSuitMixin","props","escapeHTML","type","Boolean","required","default","computed","widgetParams","this"],"mappings":"wMA2Be,CACbA,KAAM,kBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,qBAGlBC,EAAgB,CAAEN,KAAM,kBAE1BO,MAAO,CACLC,WAAY,CACVC,KAAMC,QACNC,UAAU,EACVC,SAAS,IAGbC,SAAU,CACRC,8BACS,CACLN,WAAYO,KAAKP"}
1
+ {"version":3,"file":"Autocomplete.vue_vue&type=script&lang.js","sources":["../../../../src/components/Autocomplete.vue"],"sourcesContent":["<template>\n <div :class=\"suit()\" v-if=\"state\">\n <slot\n :refine=\"state.refine\"\n :current-refinement=\"state.currentRefinement\"\n :indices=\"state.indices\"\n >\n <p>\n This widget doesn't render anything without a filled in default slot.\n </p>\n <p>query, function to refine and results are provided.</p>\n <pre>refine: Function</pre>\n <pre>currentRefinement: \"{{ state.currentRefinement }}\"</pre>\n <details>\n <summary><code>indices</code>:</summary>\n <pre>{{ state.indices }}</pre>\n </details>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectAutocomplete } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisAutocomplete',\n mixins: [\n createWidgetMixin(\n {\n connector: connectAutocomplete,\n },\n {\n $$widgetType: 'ais.autocomplete',\n }\n ),\n createSuitMixin({ name: 'Autocomplete' }),\n ],\n props: {\n escapeHTML: {\n type: Boolean,\n required: false,\n default: true,\n },\n },\n computed: {\n widgetParams() {\n return {\n escapeHTML: this.escapeHTML,\n };\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectAutocomplete","$$widgetType","createSuitMixin","props","escapeHTML","type","Boolean","required","default","computed","widgetParams","this"],"mappings":"wMA0Be,CACbA,KAAM,kBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,qBAGlBC,EAAgB,CAAEN,KAAM,kBAE1BO,MAAO,CACLC,WAAY,CACVC,KAAMC,QACNC,UAAU,EACVC,SAAS,IAGbC,SAAU,CACRC,wBACE,MAAO,CACLN,WAAYO,KAAKP"}
@@ -0,0 +1,2 @@
1
+ import{openBlock as e,createBlock as n,renderSlot as t,createVNode as i,toDisplayString as r,createCommentVNode as u,createTextVNode as l}from"vue";var s=i("p",null," This widget doesn't render anything without a filled in default slot. ",-1),a=i("p",null,"query, function to refine and results are provided.",-1),d=i("pre",null,"refine: Function",-1),f=i("summary",null,[i("code",null,"indices"),l(":")],-1);function c(l,c,o,m,p,v){return l.state?(e(),n("div",{key:0,class:l.suit()},[t(l.$slots,"default",{refine:l.state.refine,currentRefinement:l.state.currentRefinement,indices:l.state.indices},function(){return[s,a,d,i("pre",null,'currentRefinement: "'+r(l.state.currentRefinement)+'"',1),i("details",null,[f,i("pre",null,r(l.state.indices),1)])]})],2)):u("",!0)}export{c as render};
2
+ //# sourceMappingURL=Autocomplete.vue_vue&type=template&id=7ca53d64&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Autocomplete.vue_vue&type=template&id=7ca53d64&lang.js","sources":["../../../../src/components/Autocomplete.vue?vue&type=template&id=7ca53d64&lang.js"],"sourcesContent":["<template>\n <div :class=\"suit()\" v-if=\"state\">\n <slot\n :refine=\"state.refine\"\n :current-refinement=\"state.currentRefinement\"\n :indices=\"state.indices\"\n >\n <p>\n This widget doesn't render anything without a filled in default slot.\n </p>\n <p>query, function to refine and results are provided.</p>\n <pre>refine: Function</pre>\n <pre>currentRefinement: \"{{ state.currentRefinement }}\"</pre>\n <details>\n <summary><code>indices</code>:</summary>\n <pre>{{ state.indices }}</pre>\n </details>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectAutocomplete } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisAutocomplete',\n mixins: [\n createWidgetMixin(\n {\n connector: connectAutocomplete,\n },\n {\n $$widgetType: 'ais.autocomplete',\n }\n ),\n createSuitMixin({ name: 'Autocomplete' }),\n ],\n props: {\n escapeHTML: {\n type: Boolean,\n required: false,\n default: true,\n },\n },\n computed: {\n widgetParams() {\n return {\n escapeHTML: this.escapeHTML,\n };\n },\n },\n};\n</script>\n"],"names":["_createVNode","_ctx","_createBlock","class","_renderSlot","refine","currentRefinement","indices","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4"],"mappings":"0JAOMA,2FAGAA,WAAG,4DACHA,aAAK,yBAGHA,kBAASA,EAAoB,YAAd,aAAc,yCAbRC,aAA3BC,eAAMC,MAAOF,WACXG,sBACGC,OAAQJ,QAAMI,OACdC,kBAAoBL,QAAMK,kBAC1BC,QAASN,QAAMM,2BAEhBC,EAGAC,EACAC,EACAV,aAAK,yBAAuBC,QAAMK,mBAAoB,OACtDN,kBACEW,EACAX,eAAQC,QAAMM"}
@@ -1,2 +1,2 @@
1
- import e from"./Breadcrumb.vue_vue&type=script&lang.js";import{render as r}from"./Breadcrumb.vue_vue&type=template&id=6f46de9a&lang.js";e.render=r,e.__file="src/components/Breadcrumb.vue";export default e;
1
+ import e from"./Breadcrumb.vue_vue&type=script&lang.js";import{render as r}from"./Breadcrumb.vue_vue&type=template&id=5374ac81&lang.js";e.render=r;export default e;
2
2
  //# sourceMappingURL=Breadcrumb.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumb.vue_vue&type=script&lang.js","sources":["../../../../src/components/Breadcrumb.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"[suit(), !state.canRefine && suit('', 'noRefinement')]\"\n >\n <slot\n :items=\"state.items\"\n :can-refine=\"state.canRefine\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n >\n <ul :class=\"suit('list')\">\n <li :class=\"[suit('item'), !state.items.length && suit('item', 'selected')]\">\n <a\n v-if=\"Boolean(state.items.length)\"\n :href=\"state.createURL()\"\n :class=\"suit('link')\"\n @click.prevent=\"state.refine()\"\n >\n <slot name=\"rootLabel\">Home</slot>\n </a>\n <span v-else>\n <slot name=\"rootLabel\">Home</slot>\n </span>\n </li>\n <li\n v-for=\"(item, index) in state.items\"\n :key=\"item.label\"\n :class=\"[suit('item'), isLastItem(index) && suit('item', 'selected')]\"\n >\n <span\n :class=\"suit('separator')\"\n aria-hidden=\"true\"\n >\n <slot name=\"separator\">></slot>\n </span>\n <a\n v-if=\"!isLastItem(index)\"\n :href=\"state.createURL(item.value)\"\n :class=\"suit('link')\"\n @click.prevent=\"state.refine(item.value)\"\n >{{ item.label }}</a>\n <span v-else>{{ item.label }}</span>\n </li>\n </ul>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectBreadcrumb } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\n\nexport default {\n name: 'AisBreadcrumb',\n mixins: [\n createWidgetMixin(\n {\n connector: connectBreadcrumb,\n },\n {\n $$widgetType: 'ais.breadcrumb',\n }\n ),\n createPanelConsumerMixin(),\n createSuitMixin({ name: 'Breadcrumb' }),\n ],\n props: {\n attributes: {\n type: Array,\n required: true,\n },\n separator: {\n type: String,\n default: undefined,\n },\n rootPath: {\n type: String,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n attributes: this.attributes,\n separator: this.separator,\n rootPath: this.rootPath,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n isLastItem(index) {\n return this.state.items.length - 1 === index;\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectBreadcrumb","$$widgetType","createPanelConsumerMixin","createSuitMixin","props","attributes","type","Array","required","separator","String","default","undefined","rootPath","transformItems","Function","computed","widgetParams","this","methods","isLastItem","index","state","items","length"],"mappings":"oQAuDe,CACbA,KAAM,gBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,mBAGlBC,IACAC,EAAgB,CAAEP,KAAM,gBAE1BQ,MAAO,CACLC,WAAY,CACVC,KAAMC,MACNC,UAAU,GAEZC,UAAW,CACTH,KAAMI,OACNC,aAASC,GAEXC,SAAU,CACRP,KAAMI,OACNC,aAASC,GAEXE,eAAgB,CACdR,KAAMS,SACNJ,aAASC,IAGbI,SAAU,CACRC,8BACS,CACLZ,WAAYa,KAAKb,WACjBI,UAAWS,KAAKT,UAChBI,SAAUK,KAAKL,SACfC,eAAgBI,KAAKJ,kBAI3BK,QAAS,CACPC,oBAAWC,UACFH,KAAKI,MAAMC,MAAMC,OAAS,IAAMH"}
1
+ {"version":3,"file":"Breadcrumb.vue_vue&type=script&lang.js","sources":["../../../../src/components/Breadcrumb.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"[suit(), !state.canRefine && suit('', 'noRefinement')]\"\n >\n <slot\n :items=\"state.items\"\n :can-refine=\"state.canRefine\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n >\n <ul :class=\"suit('list')\">\n <li\n :class=\"[\n suit('item'),\n !state.items.length && suit('item', 'selected'),\n ]\"\n >\n <a\n v-if=\"Boolean(state.items.length)\"\n :href=\"state.createURL()\"\n :class=\"suit('link')\"\n @click.prevent=\"state.refine()\"\n >\n <slot name=\"rootLabel\">Home</slot>\n </a>\n <span v-else>\n <slot name=\"rootLabel\">Home</slot>\n </span>\n </li>\n <li\n v-for=\"(item, index) in state.items\"\n :key=\"item.label\"\n :class=\"[suit('item'), isLastItem(index) && suit('item', 'selected')]\"\n >\n <span :class=\"suit('separator')\" aria-hidden=\"true\">\n <slot name=\"separator\">></slot>\n </span>\n <a\n v-if=\"!isLastItem(index)\"\n :href=\"state.createURL(item.value)\"\n :class=\"suit('link')\"\n @click.prevent=\"state.refine(item.value)\"\n >{{ item.label }}</a\n >\n <span v-else>{{ item.label }}</span>\n </li>\n </ul>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectBreadcrumb } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\n\nexport default {\n name: 'AisBreadcrumb',\n mixins: [\n createWidgetMixin(\n {\n connector: connectBreadcrumb,\n },\n {\n $$widgetType: 'ais.breadcrumb',\n }\n ),\n createPanelConsumerMixin(),\n createSuitMixin({ name: 'Breadcrumb' }),\n ],\n props: {\n attributes: {\n type: Array,\n required: true,\n },\n separator: {\n type: String,\n default: undefined,\n },\n rootPath: {\n type: String,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n attributes: this.attributes,\n separator: this.separator,\n rootPath: this.rootPath,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n isLastItem(index) {\n return this.state.items.length - 1 === index;\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectBreadcrumb","$$widgetType","createPanelConsumerMixin","createSuitMixin","props","attributes","type","Array","required","separator","String","default","undefined","rootPath","transformItems","Function","computed","widgetParams","this","methods","isLastItem","index","state","items","length"],"mappings":"oQA0De,CACbA,KAAM,gBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,mBAGlBC,IACAC,EAAgB,CAAEP,KAAM,gBAE1BQ,MAAO,CACLC,WAAY,CACVC,KAAMC,MACNC,UAAU,GAEZC,UAAW,CACTH,KAAMI,OACNC,aAASC,GAEXC,SAAU,CACRP,KAAMI,OACNC,aAASC,GAEXE,eAAgB,CACdR,KAAMS,SACNJ,aAASC,IAGbI,SAAU,CACRC,wBACE,MAAO,CACLZ,WAAYa,KAAKb,WACjBI,UAAWS,KAAKT,UAChBI,SAAUK,KAAKL,SACfC,eAAgBI,KAAKJ,kBAI3BK,QAAS,CACPC,oBAAWC,GACT,OAAOH,KAAKI,MAAMC,MAAMC,OAAS,IAAMH"}
@@ -1,2 +1,2 @@
1
- import{openBlock as e,createBlock as t,renderSlot as s,createVNode as n,withModifiers as a,Fragment as i,renderList as r,toDisplayString as l,createCommentVNode as u,createTextVNode as o}from"vue";var c=o("Home"),f={key:1},m=o("Home"),k=o(">"),p={key:1};function v(o,v,L,R,h,d){return o.state?(e(),t("div",{key:0,class:[o.suit(),!o.state.canRefine&&o.suit("","noRefinement")]},[s(o.$slots,"default",{items:o.state.items,canRefine:o.state.canRefine,refine:o.state.refine,createURL:o.state.createURL},function(){return[n("ul",{class:o.suit("list")},[n("li",{class:[o.suit("item"),!o.state.items.length&&o.suit("item","selected")]},[Boolean(o.state.items.length)?(e(),t("a",{key:0,href:o.state.createURL(),class:o.suit("link"),onClick:v[1]||(v[1]=a(function(e){return o.state.refine()},["prevent"]))},[s(o.$slots,"rootLabel",{},function(){return[c]})],10,["href"])):(e(),t("span",f,[s(o.$slots,"rootLabel",{},function(){return[m]})]))],2),(e(!0),t(i,null,r(o.state.items,function(i,r){return e(),t("li",{key:i.label,class:[o.suit("item"),d.isLastItem(r)&&o.suit("item","selected")]},[n("span",{class:o.suit("separator"),"aria-hidden":"true"},[s(o.$slots,"separator",{},function(){return[k]})],2),d.isLastItem(r)?(e(),t("span",p,l(i.label),1)):(e(),t("a",{key:0,href:o.state.createURL(i.value),class:o.suit("link"),onClick:a(function(e){return o.state.refine(i.value)},["prevent"])},l(i.label),11,["href","onClick"]))],2)}),128))],2)]})],2)):u("v-if",!0)}export{v as render};
2
- //# sourceMappingURL=Breadcrumb.vue_vue&type=template&id=6f46de9a&lang.js.map
1
+ import{openBlock as e,createBlock as t,renderSlot as s,createVNode as n,withModifiers as a,Fragment as i,renderList as r,toDisplayString as l,createCommentVNode as u,createTextVNode as o}from"vue";var c=o("Home"),f={key:1},m=o("Home"),k=o(">"),p={key:1};function L(o,L,R,h,v,d){return o.state?(e(),t("div",{key:0,class:[o.suit(),!o.state.canRefine&&o.suit("","noRefinement")]},[s(o.$slots,"default",{items:o.state.items,canRefine:o.state.canRefine,refine:o.state.refine,createURL:o.state.createURL},function(){return[n("ul",{class:o.suit("list")},[n("li",{class:[o.suit("item"),!o.state.items.length&&o.suit("item","selected")]},[Boolean(o.state.items.length)?(e(),t("a",{key:0,href:o.state.createURL(),class:o.suit("link"),onClick:L[1]||(L[1]=a(function(e){return o.state.refine()},["prevent"]))},[s(o.$slots,"rootLabel",{},function(){return[c]})],10,["href"])):(e(),t("span",f,[s(o.$slots,"rootLabel",{},function(){return[m]})]))],2),(e(!0),t(i,null,r(o.state.items,function(i,r){return e(),t("li",{key:i.label,class:[o.suit("item"),d.isLastItem(r)&&o.suit("item","selected")]},[n("span",{class:o.suit("separator"),"aria-hidden":"true"},[s(o.$slots,"separator",{},function(){return[k]})],2),d.isLastItem(r)?(e(),t("span",p,l(i.label),1)):(e(),t("a",{key:0,href:o.state.createURL(i.value),class:o.suit("link"),onClick:a(function(e){return o.state.refine(i.value)},["prevent"])},l(i.label),11,["href","onClick"]))],2)}),128))],2)]})],2)):u("",!0)}export{L as render};
2
+ //# sourceMappingURL=Breadcrumb.vue_vue&type=template&id=5374ac81&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumb.vue_vue&type=template&id=5374ac81&lang.js","sources":["../../../../src/components/Breadcrumb.vue?vue&type=template&id=5374ac81&lang.js"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"[suit(), !state.canRefine && suit('', 'noRefinement')]\"\n >\n <slot\n :items=\"state.items\"\n :can-refine=\"state.canRefine\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n >\n <ul :class=\"suit('list')\">\n <li\n :class=\"[\n suit('item'),\n !state.items.length && suit('item', 'selected'),\n ]\"\n >\n <a\n v-if=\"Boolean(state.items.length)\"\n :href=\"state.createURL()\"\n :class=\"suit('link')\"\n @click.prevent=\"state.refine()\"\n >\n <slot name=\"rootLabel\">Home</slot>\n </a>\n <span v-else>\n <slot name=\"rootLabel\">Home</slot>\n </span>\n </li>\n <li\n v-for=\"(item, index) in state.items\"\n :key=\"item.label\"\n :class=\"[suit('item'), isLastItem(index) && suit('item', 'selected')]\"\n >\n <span :class=\"suit('separator')\" aria-hidden=\"true\">\n <slot name=\"separator\">></slot>\n </span>\n <a\n v-if=\"!isLastItem(index)\"\n :href=\"state.createURL(item.value)\"\n :class=\"suit('link')\"\n @click.prevent=\"state.refine(item.value)\"\n >{{ item.label }}</a\n >\n <span v-else>{{ item.label }}</span>\n </li>\n </ul>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectBreadcrumb } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\n\nexport default {\n name: 'AisBreadcrumb',\n mixins: [\n createWidgetMixin(\n {\n connector: connectBreadcrumb,\n },\n {\n $$widgetType: 'ais.breadcrumb',\n }\n ),\n createPanelConsumerMixin(),\n createSuitMixin({ name: 'Breadcrumb' }),\n ],\n props: {\n attributes: {\n type: Array,\n required: true,\n },\n separator: {\n type: String,\n default: undefined,\n },\n rootPath: {\n type: String,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n attributes: this.attributes,\n separator: this.separator,\n rootPath: this.rootPath,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n isLastItem(index) {\n return this.state.items.length - 1 === index;\n },\n },\n};\n</script>\n"],"names":["_ctx","_createBlock","class","canRefine","_renderSlot","items","refine","createURL","_createVNode","Boolean","length","href","onClick","item","index","key","label","$options","aria-hidden","value"],"mappings":"6MAwBmC,sBAGA,YASA,8CAlCzBA,aADRC,eAEGC,OAAQF,UAASA,QAAMG,WAAaH,6BAErCI,sBACGC,MAAOL,QAAMK,MACbF,UAAYH,QAAMG,UAClBG,OAAQN,QAAMM,OACdC,UAAWP,QAAMO,6BAElBC,QAAKN,MAAOF,iBACVQ,QACGN,0EAMOO,QAAQT,QAAMK,MAAMK,aAD5BT,aAEGU,KAAMX,QAAMO,YACZL,MAAOF,eACPY,yCAAeZ,QAAMM,0BAEtBF,qEAEFH,YACEG,+DAGJH,WAC0BD,QAAMK,eAAtBQ,EAAMC,cADhBb,QAEGc,IAAKF,EAAKG,MACVd,OAAQF,eAAciB,aAAWH,IAAUd,6BAE5CQ,UAAON,MAAOF,oBAAmBkB,cAAY,SAC3Cd,qDAGOa,aAAWH,QAMpBb,aAAgBY,EAAKG,gBAPrBf,aAEGU,KAAMX,QAAMO,UAAUM,EAAKM,OAC3BjB,MAAOF,eACPY,6BAAeZ,QAAMM,OAAOO,EAAKM,wBAC9BN,EAAKG"}
@@ -1,2 +1,2 @@
1
- import e from"./ClearRefinements.vue_vue&type=script&lang.js";import{render as t}from"./ClearRefinements.vue_vue&type=template&id=410a3aaa&lang.js";e.render=t,e.__file="src/components/ClearRefinements.vue";export default e;
1
+ import e from"./ClearRefinements.vue_vue&type=script&lang.js";import{render as t}from"./ClearRefinements.vue_vue&type=template&id=1b5799b9&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=ClearRefinements.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClearRefinements.vue_vue&type=script&lang.js","sources":["../../../../src/components/ClearRefinements.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"suit()\"\n >\n <slot\n :can-refine=\"canRefine\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n >\n <button\n type=\"reset\"\n :class=\"[suit('button'), !canRefine && suit('button', 'disabled')]\"\n :disabled=\"!canRefine\"\n @click.prevent=\"state.refine\"\n >\n <slot name=\"resetLabel\">Clear refinements</slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectClearRefinements } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\n\nexport default {\n name: 'AisClearRefinements',\n mixins: [\n createWidgetMixin(\n {\n connector: connectClearRefinements,\n },\n {\n $$widgetType: 'ais.clearRefinements',\n }\n ),\n createPanelConsumerMixin(),\n createSuitMixin({ name: 'ClearRefinements' }),\n ],\n props: {\n excludedAttributes: {\n type: Array,\n default: undefined,\n },\n includedAttributes: {\n type: Array,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n includedAttributes: this.includedAttributes,\n excludedAttributes: this.excludedAttributes,\n transformItems: this.transformItems,\n };\n },\n canRefine() {\n return this.state.hasRefinements;\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectClearRefinements","$$widgetType","createPanelConsumerMixin","createSuitMixin","props","excludedAttributes","type","Array","default","undefined","includedAttributes","transformItems","Function","computed","widgetParams","this","canRefine","state","hasRefinements"],"mappings":"0QA4Be,CACbA,KAAM,sBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,yBAGlBC,IACAC,EAAgB,CAAEP,KAAM,sBAE1BQ,MAAO,CACLC,mBAAoB,CAClBC,KAAMC,MACNC,aAASC,GAEXC,mBAAoB,CAClBJ,KAAMC,MACNC,aAASC,GAEXE,eAAgB,CACdL,KAAMM,SACNJ,aAASC,IAGbI,SAAU,CACRC,8BACS,CACLJ,mBAAoBK,KAAKL,mBACzBL,mBAAoBU,KAAKV,mBACzBM,eAAgBI,KAAKJ,iBAGzBK,4BACSD,KAAKE,MAAMC"}
1
+ {"version":3,"file":"ClearRefinements.vue_vue&type=script&lang.js","sources":["../../../../src/components/ClearRefinements.vue"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n :can-refine=\"canRefine\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n >\n <button\n type=\"reset\"\n :class=\"[suit('button'), !canRefine && suit('button', 'disabled')]\"\n :disabled=\"!canRefine\"\n @click.prevent=\"state.refine\"\n >\n <slot name=\"resetLabel\"> Clear refinements </slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectClearRefinements } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\n\nexport default {\n name: 'AisClearRefinements',\n mixins: [\n createWidgetMixin(\n {\n connector: connectClearRefinements,\n },\n {\n $$widgetType: 'ais.clearRefinements',\n }\n ),\n createPanelConsumerMixin(),\n createSuitMixin({ name: 'ClearRefinements' }),\n ],\n props: {\n excludedAttributes: {\n type: Array,\n default: undefined,\n },\n includedAttributes: {\n type: Array,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n includedAttributes: this.includedAttributes,\n excludedAttributes: this.excludedAttributes,\n transformItems: this.transformItems,\n };\n },\n canRefine() {\n return this.state.hasRefinements;\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectClearRefinements","$$widgetType","createPanelConsumerMixin","createSuitMixin","props","excludedAttributes","type","Array","default","undefined","includedAttributes","transformItems","Function","computed","widgetParams","this","canRefine","state","hasRefinements"],"mappings":"0QAyBe,CACbA,KAAM,sBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,yBAGlBC,IACAC,EAAgB,CAAEP,KAAM,sBAE1BQ,MAAO,CACLC,mBAAoB,CAClBC,KAAMC,MACNC,aAASC,GAEXC,mBAAoB,CAClBJ,KAAMC,MACNC,aAASC,GAEXE,eAAgB,CACdL,KAAMM,SACNJ,aAASC,IAGbI,SAAU,CACRC,wBACE,MAAO,CACLJ,mBAAoBK,KAAKL,mBACzBL,mBAAoBU,KAAKV,mBACzBM,eAAgBI,KAAKJ,iBAGzBK,qBACE,OAAOD,KAAKE,MAAMC"}
@@ -0,0 +1,2 @@
1
+ import{openBlock as e,createBlock as t,renderSlot as n,createVNode as r,withModifiers as a,createCommentVNode as i,createTextVNode as s}from"vue";var f=s(" Clear refinements ");function u(s,u,o,c,l,d){return s.state?(e(),t("div",{key:0,class:s.suit()},[n(s.$slots,"default",{canRefine:d.canRefine,refine:s.state.refine,createURL:s.state.createURL},function(){return[r("button",{type:"reset",class:[s.suit("button"),!d.canRefine&&s.suit("button","disabled")],disabled:!d.canRefine,onClick:u[1]||(u[1]=a(function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.state.refine&&(e=s.state).refine.apply(e,t)},["prevent"]))},[n(s.$slots,"resetLabel",{},function(){return[f]})],10,["disabled"])]})],2)):i("",!0)}export{u as render};
2
+ //# sourceMappingURL=ClearRefinements.vue_vue&type=template&id=1b5799b9&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClearRefinements.vue_vue&type=template&id=1b5799b9&lang.js","sources":["../../../../src/components/ClearRefinements.vue?vue&type=template&id=1b5799b9&lang.js"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n :can-refine=\"canRefine\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n >\n <button\n type=\"reset\"\n :class=\"[suit('button'), !canRefine && suit('button', 'disabled')]\"\n :disabled=\"!canRefine\"\n @click.prevent=\"state.refine\"\n >\n <slot name=\"resetLabel\"> Clear refinements </slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectClearRefinements } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\n\nexport default {\n name: 'AisClearRefinements',\n mixins: [\n createWidgetMixin(\n {\n connector: connectClearRefinements,\n },\n {\n $$widgetType: 'ais.clearRefinements',\n }\n ),\n createPanelConsumerMixin(),\n createSuitMixin({ name: 'ClearRefinements' }),\n ],\n props: {\n excludedAttributes: {\n type: Array,\n default: undefined,\n },\n includedAttributes: {\n type: Array,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n includedAttributes: this.includedAttributes,\n excludedAttributes: this.excludedAttributes,\n transformItems: this.transformItems,\n };\n },\n canRefine() {\n return this.state.hasRefinements;\n },\n },\n};\n</script>\n"],"names":["_ctx","_createBlock","class","_renderSlot","canRefine","$options","refine","createURL","_createVNode","type","disabled","onClick"],"mappings":"gNACaA,aAAXC,eAAmBC,MAAOF,WACxBG,sBACGC,UAAYC,YACZC,OAAQN,QAAMM,OACdC,UAAWP,QAAMO,6BAElBC,YACEC,KAAK,QACJP,OAAQF,kBAAiBK,aAAaL,6BACtCU,UAAWL,YACXM,iGAAeX,QAAMM,WAANN,SAAMM,mCAEtBH"}
@@ -1 +1 @@
1
- {"version":3,"file":"Configure.js","sources":["../../../../src/components/Configure.js"],"sourcesContent":["import { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\nimport { connectConfigure } from 'instantsearch.js/es/connectors';\nimport { isVue3, renderCompat } from '../util/vue-compat';\n\nexport default {\n inheritAttrs: false,\n name: 'AisConfigure',\n mixins: [\n createSuitMixin({ name: 'Configure' }),\n createWidgetMixin(\n {\n connector: connectConfigure,\n },\n {\n $$widgetType: 'ais.configure',\n }\n ),\n ],\n computed: {\n widgetParams() {\n return {\n searchParameters: this.$attrs,\n };\n },\n },\n render: renderCompat(function(h) {\n const slot = isVue3 ? this.$slots.default : this.$scopedSlots.default;\n\n if (!this.state || !slot) {\n return null;\n }\n\n return h(\n 'div',\n {\n class: this.suit(),\n },\n [\n slot({\n refine: this.state.refine,\n searchParameters: this.state.widgetParams.searchParameters,\n }),\n ]\n );\n }),\n};\n"],"names":["inheritAttrs","name","mixins","createSuitMixin","createWidgetMixin","connector","connectConfigure","$$widgetType","computed","widgetParams","searchParameters","this","$attrs","render","renderCompat","h","slot","$slots","default","state","class","suit","refine"],"mappings":"qQAKe,CACbA,cAAc,EACdC,KAAM,eACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,cACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,mBAIpBC,SAAU,CACRC,8BACS,CACLC,iBAAkBC,KAAKC,UAI7BC,OAAQC,EAAa,SAASC,OACtBC,EAAgBL,KAAKM,OAAOC,eAE7BP,KAAKQ,OAAUH,EAIbD,EACL,MACA,CACEK,MAAOT,KAAKU,QAEd,CACEL,EAAK,CACHM,OAAQX,KAAKQ,MAAMG,OACnBZ,iBAAkBC,KAAKQ,MAAMV,aAAaC,qBAXvC"}
1
+ {"version":3,"file":"Configure.js","sources":["../../../../src/components/Configure.js"],"sourcesContent":["import { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\nimport { connectConfigure } from 'instantsearch.js/es/connectors';\nimport { isVue3, renderCompat } from '../util/vue-compat';\n\nexport default {\n inheritAttrs: false,\n name: 'AisConfigure',\n mixins: [\n createSuitMixin({ name: 'Configure' }),\n createWidgetMixin(\n {\n connector: connectConfigure,\n },\n {\n $$widgetType: 'ais.configure',\n }\n ),\n ],\n computed: {\n widgetParams() {\n return {\n searchParameters: this.$attrs,\n };\n },\n },\n render: renderCompat(function (h) {\n const slot = isVue3 ? this.$slots.default : this.$scopedSlots.default;\n\n if (!this.state || !slot) {\n return null;\n }\n\n return h(\n 'div',\n {\n class: this.suit(),\n },\n [\n slot({\n refine: this.state.refine,\n searchParameters: this.state.widgetParams.searchParameters,\n }),\n ]\n );\n }),\n};\n"],"names":["inheritAttrs","name","mixins","createSuitMixin","createWidgetMixin","connector","connectConfigure","$$widgetType","computed","widgetParams","searchParameters","this","$attrs","render","renderCompat","h","const","slot","$slots","default","state","class","suit","refine"],"mappings":"qQAKe,CACbA,cAAc,EACdC,KAAM,eACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,cACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,mBAIpBC,SAAU,CACRC,wBACE,MAAO,CACLC,iBAAkBC,KAAKC,UAI7BC,OAAQC,EAAa,SAAUC,GAC7BC,IAAMC,EAAgBN,KAAKO,OAAOC,QAElC,OAAKR,KAAKS,OAAUH,EAIbF,EACL,MACA,CACEM,MAAOV,KAAKW,QAEd,CACEL,EAAK,CACHM,OAAQZ,KAAKS,MAAMG,OACnBb,iBAAkBC,KAAKS,MAAMX,aAAaC,qBAXvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConfigureRelatedItems.js","sources":["../../../../src/components/ConfigureRelatedItems.js"],"sourcesContent":["import { createWidgetMixin } from '../mixins/widget';\nimport { EXPERIMENTAL_connectConfigureRelatedItems } from 'instantsearch.js/es/connectors';\n\nexport default {\n inheritAttrs: false,\n name: 'AisExperimentalConfigureRelatedItems',\n mixins: [\n createWidgetMixin(\n {\n connector: EXPERIMENTAL_connectConfigureRelatedItems,\n },\n {\n $$widgetType: 'ais.configureRelatedItems',\n }\n ),\n ],\n props: {\n hit: {\n type: Object,\n required: true,\n },\n matchingPatterns: {\n type: Object,\n required: true,\n },\n transformSearchParameters: {\n type: Function,\n required: false,\n },\n },\n computed: {\n widgetParams() {\n return {\n hit: this.hit,\n matchingPatterns: this.matchingPatterns,\n transformSearchParameters: this.transformSearchParameters,\n };\n },\n },\n render() {\n return null;\n },\n};\n"],"names":["inheritAttrs","name","mixins","createWidgetMixin","connector","EXPERIMENTAL_connectConfigureRelatedItems","$$widgetType","props","hit","type","Object","required","matchingPatterns","transformSearchParameters","Function","computed","widgetParams","this","render"],"mappings":"0KAGe,CACbA,cAAc,EACdC,KAAM,uCACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,+BAIpBC,MAAO,CACLC,IAAK,CACHC,KAAMC,OACNC,UAAU,GAEZC,iBAAkB,CAChBH,KAAMC,OACNC,UAAU,GAEZE,0BAA2B,CACzBJ,KAAMK,SACNH,UAAU,IAGdI,SAAU,CACRC,8BACS,CACLR,IAAKS,KAAKT,IACVI,iBAAkBK,KAAKL,iBACvBC,0BAA2BI,KAAKJ,6BAItCK,yBACS"}
1
+ {"version":3,"file":"ConfigureRelatedItems.js","sources":["../../../../src/components/ConfigureRelatedItems.js"],"sourcesContent":["import { createWidgetMixin } from '../mixins/widget';\nimport { EXPERIMENTAL_connectConfigureRelatedItems } from 'instantsearch.js/es/connectors';\n\nexport default {\n inheritAttrs: false,\n name: 'AisExperimentalConfigureRelatedItems',\n mixins: [\n createWidgetMixin(\n {\n connector: EXPERIMENTAL_connectConfigureRelatedItems,\n },\n {\n $$widgetType: 'ais.configureRelatedItems',\n }\n ),\n ],\n props: {\n hit: {\n type: Object,\n required: true,\n },\n matchingPatterns: {\n type: Object,\n required: true,\n },\n transformSearchParameters: {\n type: Function,\n required: false,\n },\n },\n computed: {\n widgetParams() {\n return {\n hit: this.hit,\n matchingPatterns: this.matchingPatterns,\n transformSearchParameters: this.transformSearchParameters,\n };\n },\n },\n render() {\n return null;\n },\n};\n"],"names":["inheritAttrs","name","mixins","createWidgetMixin","connector","EXPERIMENTAL_connectConfigureRelatedItems","$$widgetType","props","hit","type","Object","required","matchingPatterns","transformSearchParameters","Function","computed","widgetParams","this","render"],"mappings":"0KAGe,CACbA,cAAc,EACdC,KAAM,uCACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,+BAIpBC,MAAO,CACLC,IAAK,CACHC,KAAMC,OACNC,UAAU,GAEZC,iBAAkB,CAChBH,KAAMC,OACNC,UAAU,GAEZE,0BAA2B,CACzBJ,KAAMK,SACNH,UAAU,IAGdI,SAAU,CACRC,wBACE,MAAO,CACLR,IAAKS,KAAKT,IACVI,iBAAkBK,KAAKL,iBACvBC,0BAA2BI,KAAKJ,6BAItCK,kBACE,OAAO"}
@@ -1,2 +1,2 @@
1
- import e from"./CurrentRefinements.vue_vue&type=script&lang.js";import{render as t}from"./CurrentRefinements.vue_vue&type=template&id=4f1917ff&lang.js";e.render=t,e.__file="src/components/CurrentRefinements.vue";export default e;
1
+ import e from"./CurrentRefinements.vue_vue&type=script&lang.js";import{render as t}from"./CurrentRefinements.vue_vue&type=template&id=6256a290&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=CurrentRefinements.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CurrentRefinements.vue_vue&type=script&lang.js","sources":["../../../../src/components/CurrentRefinements.vue"],"sourcesContent":["<template>\n <div\n :class=\"[suit(), noRefinement && suit('','noRefinement')]\"\n v-if=\"state\"\n >\n <slot\n :refine=\"state.refine\"\n :items=\"state.items\"\n :createURL=\"state.createURL\"\n >\n <ul :class=\"suit('list')\">\n <li\n v-for=\"item in state.items\"\n :key=\"item.attribute\"\n :class=\"suit('item')\"\n >\n <slot\n name=\"item\"\n :refine=\"item.refine\"\n :item=\"item\"\n :createURL=\"state.createURL\"\n >\n <span :class=\"suit('label')\">{{ capitalize(item.label) }}: </span>\n <span\n v-for=\"refinement in item.refinements\"\n :key=\"createItemKey(refinement)\"\n :class=\"suit('category')\"\n >\n <slot\n name=\"refinement\"\n :refine=\"item.refine\"\n :refinement=\"refinement\"\n :createURL=\"state.createURL\"\n >\n <span :class=\"suit('categoryLabel')\">\n <q v-if=\"refinement.attribute === 'query'\">{{ refinement.label }}</q>\n <template v-else>\n {{ refinement.label }}\n </template>\n </span>\n <button\n :class=\"suit('delete')\"\n @click=\"item.refine(refinement)\"\n >\n ✕\n </button>\n </slot>\n </span>\n </slot>\n </li>\n </ul>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectCurrentRefinements } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisCurrentRefinements',\n mixins: [\n createSuitMixin({ name: 'CurrentRefinements' }),\n createWidgetMixin(\n {\n connector: connectCurrentRefinements,\n },\n {\n $$widgetType: 'ais.currentRefinements',\n }\n ),\n createPanelConsumerMixin(),\n ],\n props: {\n includedAttributes: {\n type: Array,\n default: undefined,\n },\n excludedAttributes: {\n type: Array,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n noRefinement() {\n return this.state && this.state.items.length === 0;\n },\n widgetParams() {\n return {\n includedAttributes: this.includedAttributes,\n excludedAttributes: this.excludedAttributes,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n createItemKey({ attribute, value, type, operator }) {\n return [attribute, type, value, operator].join(':');\n },\n capitalize(value) {\n if (!value) return '';\n return (\n value\n .toString()\n .charAt(0)\n .toLocaleUpperCase() + value.toString().slice(1)\n );\n },\n },\n};\n</script>\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","connectCurrentRefinements","$$widgetType","createPanelConsumerMixin","props","includedAttributes","type","Array","default","undefined","excludedAttributes","transformItems","Function","computed","noRefinement","this","state","items","length","widgetParams","methods","createItemKey","ref","attribute","value","join","capitalize","toString","charAt","toLocaleUpperCase","slice"],"mappings":"4QA6De,CACbA,KAAM,wBACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,uBACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,2BAGlBC,KAEFC,MAAO,CACLC,mBAAoB,CAClBC,KAAMC,MACNC,aAASC,GAEXC,mBAAoB,CAClBJ,KAAMC,MACNC,aAASC,GAEXE,eAAgB,CACdL,KAAMM,SACNJ,aAASC,IAGbI,SAAU,CACRC,+BACSC,KAAKC,OAAqC,IAA5BD,KAAKC,MAAMC,MAAMC,QAExCC,8BACS,CACLd,mBAAoBU,KAAKV,mBACzBK,mBAAoBK,KAAKL,mBACzBC,eAAgBI,KAAKJ,kBAI3BS,QAAS,CACPC,uBAAcC,qCACL,CAACC,SAAiBC,cAAiBC,KAAK,MAEjDC,oBAAWF,UACJA,EAEHA,EACGG,WACAC,OAAO,GACPC,oBAAsBL,EAAMG,WAAWG,MAAM,GAL/B"}
1
+ {"version":3,"file":"CurrentRefinements.vue_vue&type=script&lang.js","sources":["../../../../src/components/CurrentRefinements.vue"],"sourcesContent":["<template>\n <div :class=\"[suit(), noRefinement && suit('', 'noRefinement')]\" v-if=\"state\">\n <slot\n :refine=\"state.refine\"\n :items=\"state.items\"\n :createURL=\"state.createURL\"\n >\n <ul :class=\"suit('list')\">\n <li\n v-for=\"item in state.items\"\n :key=\"item.attribute\"\n :class=\"suit('item')\"\n >\n <slot\n name=\"item\"\n :refine=\"item.refine\"\n :item=\"item\"\n :createURL=\"state.createURL\"\n >\n <span :class=\"suit('label')\">{{ capitalize(item.label) }}: </span>\n <span\n v-for=\"refinement in item.refinements\"\n :key=\"createItemKey(refinement)\"\n :class=\"suit('category')\"\n >\n <slot\n name=\"refinement\"\n :refine=\"item.refine\"\n :refinement=\"refinement\"\n :createURL=\"state.createURL\"\n >\n <span :class=\"suit('categoryLabel')\">\n <q v-if=\"refinement.attribute === 'query'\">{{\n refinement.label\n }}</q>\n <template v-else>\n {{ refinement.label }}\n </template>\n </span>\n <button\n :class=\"suit('delete')\"\n @click=\"item.refine(refinement)\"\n >\n ✕\n </button>\n </slot>\n </span>\n </slot>\n </li>\n </ul>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectCurrentRefinements } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisCurrentRefinements',\n mixins: [\n createSuitMixin({ name: 'CurrentRefinements' }),\n createWidgetMixin(\n {\n connector: connectCurrentRefinements,\n },\n {\n $$widgetType: 'ais.currentRefinements',\n }\n ),\n createPanelConsumerMixin(),\n ],\n props: {\n includedAttributes: {\n type: Array,\n default: undefined,\n },\n excludedAttributes: {\n type: Array,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n noRefinement() {\n return this.state && this.state.items.length === 0;\n },\n widgetParams() {\n return {\n includedAttributes: this.includedAttributes,\n excludedAttributes: this.excludedAttributes,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n createItemKey({ attribute, value, type, operator }) {\n return [attribute, type, value, operator].join(':');\n },\n capitalize(value) {\n if (!value) return '';\n return (\n value.toString().charAt(0).toLocaleUpperCase() +\n value.toString().slice(1)\n );\n },\n },\n};\n</script>\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","connectCurrentRefinements","$$widgetType","createPanelConsumerMixin","props","includedAttributes","type","Array","default","undefined","excludedAttributes","transformItems","Function","computed","noRefinement","this","state","items","length","widgetParams","methods","createItemKey","attribute","value","join","capitalize","toString","charAt","toLocaleUpperCase","slice"],"mappings":"4QA4De,CACbA,KAAM,wBACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,uBACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,2BAGlBC,KAEFC,MAAO,CACLC,mBAAoB,CAClBC,KAAMC,MACNC,aAASC,GAEXC,mBAAoB,CAClBJ,KAAMC,MACNC,aAASC,GAEXE,eAAgB,CACdL,KAAMM,SACNJ,aAASC,IAGbI,SAAU,CACRC,wBACE,OAAOC,KAAKC,OAAqC,IAA5BD,KAAKC,MAAMC,MAAMC,QAExCC,wBACE,MAAO,CACLd,mBAAoBU,KAAKV,mBACzBK,mBAAoBK,KAAKL,mBACzBC,eAAgBI,KAAKJ,kBAI3BS,QAAS,CACPC,sDACE,MAAO,CAACC,SAAiBC,cAAiBC,KAAK,MAEjDC,oBAAWF,GACT,OAAKA,EAEHA,EAAMG,WAAWC,OAAO,GAAGC,oBAC3BL,EAAMG,WAAWG,MAAM,GAHN"}
@@ -1,2 +1,2 @@
1
- import{openBlock as e,createBlock as t,renderSlot as n,createVNode as i,Fragment as s,renderList as r,toDisplayString as a,createTextVNode as l,createCommentVNode as u}from"vue";var c={key:0};function f(f,o,m,y,b,R){return f.state?(e(),t("div",{key:0,class:[f.suit(),R.noRefinement&&f.suit("","noRefinement")]},[n(f.$slots,"default",{refine:f.state.refine,items:f.state.items,createURL:f.state.createURL},function(){return[i("ul",{class:f.suit("list")},[(e(!0),t(s,null,r(f.state.items,function(u){return e(),t("li",{key:u.attribute,class:f.suit("item")},[n(f.$slots,"item",{refine:u.refine,item:u,createURL:f.state.createURL},function(){return[i("span",{class:f.suit("label")},a(R.capitalize(u.label))+": ",3),(e(!0),t(s,null,r(u.refinements,function(r){return e(),t("span",{key:R.createItemKey(r),class:f.suit("category")},[n(f.$slots,"refinement",{refine:u.refine,refinement:r,createURL:f.state.createURL},function(){return[i("span",{class:f.suit("categoryLabel")},["query"===r.attribute?(e(),t("q",c,a(r.label),1)):(e(),t(s,{key:1},[l(a(r.label),1)],2112))],2),i("button",{class:f.suit("delete"),onClick:function(e){return u.refine(r)}}," ✕ ",10,["onClick"])]})],2)}),128))]})],2)}),128))],2)]})],2)):u("v-if",!0)}export{f as render};
2
- //# sourceMappingURL=CurrentRefinements.vue_vue&type=template&id=4f1917ff&lang.js.map
1
+ import{openBlock as e,createBlock as t,renderSlot as n,createVNode as i,Fragment as s,renderList as r,toDisplayString as a,createTextVNode as l,createCommentVNode as u}from"vue";var c={key:0};function f(f,o,m,y,b,R){return f.state?(e(),t("div",{key:0,class:[f.suit(),R.noRefinement&&f.suit("","noRefinement")]},[n(f.$slots,"default",{refine:f.state.refine,items:f.state.items,createURL:f.state.createURL},function(){return[i("ul",{class:f.suit("list")},[(e(!0),t(s,null,r(f.state.items,function(u){return e(),t("li",{key:u.attribute,class:f.suit("item")},[n(f.$slots,"item",{refine:u.refine,item:u,createURL:f.state.createURL},function(){return[i("span",{class:f.suit("label")},a(R.capitalize(u.label))+": ",3),(e(!0),t(s,null,r(u.refinements,function(r){return e(),t("span",{key:R.createItemKey(r),class:f.suit("category")},[n(f.$slots,"refinement",{refine:u.refine,refinement:r,createURL:f.state.createURL},function(){return[i("span",{class:f.suit("categoryLabel")},["query"===r.attribute?(e(),t("q",c,a(r.label),1)):(e(),t(s,{key:1},[l(a(r.label),1)],64))],2),i("button",{class:f.suit("delete"),onClick:function(e){return u.refine(r)}}," ✕ ",10,["onClick"])]})],2)}),128))]})],2)}),128))],2)]})],2)):u("",!0)}export{f as render};
2
+ //# sourceMappingURL=CurrentRefinements.vue_vue&type=template&id=6256a290&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentRefinements.vue_vue&type=template&id=6256a290&lang.js","sources":["../../../../src/components/CurrentRefinements.vue?vue&type=template&id=6256a290&lang.js"],"sourcesContent":["<template>\n <div :class=\"[suit(), noRefinement && suit('', 'noRefinement')]\" v-if=\"state\">\n <slot\n :refine=\"state.refine\"\n :items=\"state.items\"\n :createURL=\"state.createURL\"\n >\n <ul :class=\"suit('list')\">\n <li\n v-for=\"item in state.items\"\n :key=\"item.attribute\"\n :class=\"suit('item')\"\n >\n <slot\n name=\"item\"\n :refine=\"item.refine\"\n :item=\"item\"\n :createURL=\"state.createURL\"\n >\n <span :class=\"suit('label')\">{{ capitalize(item.label) }}: </span>\n <span\n v-for=\"refinement in item.refinements\"\n :key=\"createItemKey(refinement)\"\n :class=\"suit('category')\"\n >\n <slot\n name=\"refinement\"\n :refine=\"item.refine\"\n :refinement=\"refinement\"\n :createURL=\"state.createURL\"\n >\n <span :class=\"suit('categoryLabel')\">\n <q v-if=\"refinement.attribute === 'query'\">{{\n refinement.label\n }}</q>\n <template v-else>\n {{ refinement.label }}\n </template>\n </span>\n <button\n :class=\"suit('delete')\"\n @click=\"item.refine(refinement)\"\n >\n ✕\n </button>\n </slot>\n </span>\n </slot>\n </li>\n </ul>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectCurrentRefinements } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisCurrentRefinements',\n mixins: [\n createSuitMixin({ name: 'CurrentRefinements' }),\n createWidgetMixin(\n {\n connector: connectCurrentRefinements,\n },\n {\n $$widgetType: 'ais.currentRefinements',\n }\n ),\n createPanelConsumerMixin(),\n ],\n props: {\n includedAttributes: {\n type: Array,\n default: undefined,\n },\n excludedAttributes: {\n type: Array,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n noRefinement() {\n return this.state && this.state.items.length === 0;\n },\n widgetParams() {\n return {\n includedAttributes: this.includedAttributes,\n excludedAttributes: this.excludedAttributes,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n createItemKey({ attribute, value, type, operator }) {\n return [attribute, type, value, operator].join(':');\n },\n capitalize(value) {\n if (!value) return '';\n return (\n value.toString().charAt(0).toLocaleUpperCase() +\n value.toString().slice(1)\n );\n },\n },\n};\n</script>\n"],"names":["_ctx","_createBlock","class","$options","_renderSlot","refine","items","createURL","_createVNode","item","key","attribute","label","refinements","refinement","onClick"],"mappings":"+NACyEA,aAAvEC,eAAMC,OAAQF,SAAQG,gBAAgBH,6BACpCI,sBACGC,OAAQL,QAAMK,OACdC,MAAON,QAAMM,MACbC,UAAWP,QAAMO,6BAElBC,QAAKN,MAAOF,wBACVC,WACiBD,QAAMM,eAAdG,cADTR,QAEGS,IAAKD,EAAKE,UACVT,MAAOF,iBAERI,mBAEGC,OAAQI,EAAKJ,OACbI,KAAMA,EACNF,UAAWP,QAAMO,6BAElBC,UAAON,MAAOF,mBAAkBG,aAAWM,EAAKG,QAAS,eACzDX,WACuBQ,EAAKI,qBAAnBC,cADTb,UAEGS,IAAKP,gBAAcW,GACnBZ,MAAOF,qBAERI,yBAEGC,OAAQI,EAAKJ,OACbS,WAAYA,EACZP,UAAWP,QAAMO,6BAElBC,UAAON,MAAOF,oCACHc,EAAWH,eAApBV,UACEa,EAAWF,gBAEbX,iBACKa,EAAWF,oBAGlBJ,YACGN,MAAOF,iBACPe,2BAAON,EAAKJ,OAAOS"}
@@ -1 +1 @@
1
- {"version":3,"file":"DynamicWidgets.js","sources":["../../../../src/components/DynamicWidgets.js"],"sourcesContent":["import { createWidgetMixin } from '../mixins/widget';\nimport { connectDynamicWidgets } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\nimport { _objectSpread } from '../util/polyfills';\nimport { isVue3, renderCompat, getDefaultSlot } from '../util/vue-compat';\n\nfunction getWidgetAttribute(vnode) {\n const props = isVue3\n ? vnode.props\n : vnode.componentOptions && vnode.componentOptions.propsData;\n if (props) {\n if (props.attribute) {\n return props.attribute;\n }\n if (Array.isArray(props.attributes)) {\n return props.attributes[0];\n }\n }\n\n let children;\n if (isVue3) {\n children =\n vnode.children && vnode.children.default && vnode.children.default();\n } else {\n children =\n vnode.componentOptions && vnode.componentOptions.children\n ? vnode.componentOptions.children\n : vnode.children;\n }\n\n if (Array.isArray(children)) {\n // return first child with a truthy attribute\n return children.reduce(\n (acc, curr) => acc || getWidgetAttribute(curr),\n undefined\n );\n }\n\n return undefined;\n}\n\nexport default {\n name: 'AisDynamicWidgets',\n mixins: [\n createWidgetMixin(\n {\n connector: connectDynamicWidgets,\n },\n {\n $$widgetType: 'ais.dynamicWidgets',\n }\n ),\n createSuitMixin({ name: 'DynamicWidgets' }),\n ],\n props: {\n transformItems: {\n type: Function,\n default: undefined,\n },\n facets: {\n type: Array,\n default: undefined,\n },\n maxValuesPerFacet: {\n type: Number,\n default: undefined,\n },\n },\n render: renderCompat(function(h) {\n const components = new Map();\n\n (getDefaultSlot(this) || []).forEach(vnode => {\n const attribute = getWidgetAttribute(vnode);\n if (attribute) {\n components.set(\n attribute,\n h('div', { key: attribute, class: [this.suit('widget')] }, [vnode])\n );\n }\n });\n\n // by default, render everything, but hidden so that the routing doesn't disappear\n if (!this.state) {\n const allComponents = [];\n components.forEach(component => allComponents.push(component));\n\n return h(\n 'div',\n _objectSpread(\n {\n class: [this.suit()],\n },\n { attrs: { hidden: true } }\n ),\n allComponents\n );\n }\n\n return h(\n 'div',\n { class: [this.suit()] },\n this.state.attributesToRender.map(attribute => components.get(attribute))\n );\n }),\n computed: {\n widgetParams() {\n return {\n transformItems: this.transformItems,\n facets: this.facets,\n maxValuesPerFacet: this.maxValuesPerFacet,\n // we do not pass \"widgets\" to the connector, since Vue is in charge of rendering\n widgets: [],\n };\n },\n },\n};\n"],"names":["name","mixins","createWidgetMixin","connector","connectDynamicWidgets","$$widgetType","createSuitMixin","props","transformItems","type","Function","default","undefined","facets","Array","maxValuesPerFacet","Number","render","renderCompat","h","components","Map","getDefaultSlot","this","forEach","vnode","attribute","getWidgetAttribute","children","isArray","attributes","reduce","acc","curr","set","key","class","suit","state","allComponents","component","push","_objectSpread","attrs","hidden","attributesToRender","map","get","computed","widgetParams","widgets"],"mappings":"mVAyCe,CACbA,KAAM,oBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,uBAGlBC,EAAgB,CAAEN,KAAM,oBAE1BO,MAAO,CACLC,eAAgB,CACdC,KAAMC,SACNC,aAASC,GAEXC,OAAQ,CACNJ,KAAMK,MACNH,aAASC,GAEXG,kBAAmB,CACjBN,KAAMO,OACNL,aAASC,IAGbK,OAAQC,EAAa,SAASC,cACtBC,EAAa,IAAIC,QAEtBC,EAAeC,OAAS,IAAIC,iBAAQC,OAC7BC,EAlEZ,SAASC,EAAmBF,OAatBG,EAZErB,EACFkB,EAAMlB,SAENA,EAAO,IACLA,EAAMmB,iBACDnB,EAAMmB,aAEXZ,MAAMe,QAAQtB,EAAMuB,mBACfvB,EAAMuB,WAAW,MAM1BF,EACEH,EAAMG,UAAYH,EAAMG,SAASjB,SAAWc,EAAMG,SAASjB,UAQ3DG,MAAMe,QAAQD,UAETA,EAASG,gBACbC,EAAKC,UAASD,GAAOL,EAAmBM,SACzCrB,GAsCkBe,CAAmBF,GACjCC,GACFN,EAAWc,IACTR,EACAP,EAAE,MAAO,CAAEgB,IAAKT,EAAWU,MAAO,CAACb,EAAKc,KAAK,YAAc,CAACZ,QAM7DF,KAAKe,MAAO,KACTC,EAAgB,UACtBnB,EAAWI,iBAAQgB,UAAaD,EAAcE,KAAKD,KAE5CrB,EACL,MACAuB,EACE,CACEN,MAAO,CAACb,KAAKc,SAEf,CAAEM,MAAO,CAAEC,QAAQ,KAErBL,UAIGpB,EACL,MACA,CAAEiB,MAAO,CAACb,KAAKc,SACfd,KAAKe,MAAMO,mBAAmBC,aAAIpB,UAAaN,EAAW2B,IAAIrB,QAGlEsB,SAAU,CACRC,8BACS,CACLzC,eAAgBe,KAAKf,eACrBK,OAAQU,KAAKV,OACbE,kBAAmBQ,KAAKR,kBAExBmC,QAAS"}
1
+ {"version":3,"file":"DynamicWidgets.js","sources":["../../../../src/components/DynamicWidgets.js"],"sourcesContent":["import { createWidgetMixin } from '../mixins/widget';\nimport { connectDynamicWidgets } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\nimport { _objectSpread } from '../util/polyfills';\nimport { isVue3, renderCompat, getDefaultSlot } from '../util/vue-compat';\n\nfunction getWidgetAttribute(vnode) {\n const props = isVue3\n ? vnode.props\n : vnode.componentOptions && vnode.componentOptions.propsData;\n if (props) {\n if (props.attribute) {\n return props.attribute;\n }\n if (Array.isArray(props.attributes)) {\n return props.attributes[0];\n }\n }\n\n let children;\n if (isVue3) {\n children =\n vnode.children && vnode.children.default && vnode.children.default();\n } else {\n children =\n vnode.componentOptions && vnode.componentOptions.children\n ? vnode.componentOptions.children\n : vnode.children;\n }\n\n if (Array.isArray(children)) {\n // return first child with a truthy attribute\n return children.reduce(\n (acc, curr) => acc || getWidgetAttribute(curr),\n undefined\n );\n }\n\n return undefined;\n}\n\nexport default {\n name: 'AisDynamicWidgets',\n mixins: [\n createWidgetMixin(\n {\n connector: connectDynamicWidgets,\n },\n {\n $$widgetType: 'ais.dynamicWidgets',\n }\n ),\n createSuitMixin({ name: 'DynamicWidgets' }),\n ],\n props: {\n transformItems: {\n type: Function,\n default: undefined,\n },\n facets: {\n type: Array,\n default: undefined,\n },\n maxValuesPerFacet: {\n type: Number,\n default: undefined,\n },\n },\n render: renderCompat(function (h) {\n const components = new Map();\n\n (getDefaultSlot(this) || []).forEach((vnode) => {\n const attribute = getWidgetAttribute(vnode);\n if (attribute) {\n components.set(\n attribute,\n h('div', { key: attribute, class: [this.suit('widget')] }, [vnode])\n );\n }\n });\n\n // by default, render everything, but hidden so that the routing doesn't disappear\n if (!this.state) {\n const allComponents = [];\n components.forEach((component) => allComponents.push(component));\n\n return h(\n 'div',\n _objectSpread(\n {\n class: [this.suit()],\n },\n { attrs: { hidden: true } }\n ),\n allComponents\n );\n }\n\n return h(\n 'div',\n { class: [this.suit()] },\n this.state.attributesToRender.map((attribute) =>\n components.get(attribute)\n )\n );\n }),\n computed: {\n widgetParams() {\n return {\n transformItems: this.transformItems,\n facets: this.facets,\n maxValuesPerFacet: this.maxValuesPerFacet,\n // we do not pass \"widgets\" to the connector, since Vue is in charge of rendering\n widgets: [],\n };\n },\n },\n};\n"],"names":["name","mixins","createWidgetMixin","connector","connectDynamicWidgets","$$widgetType","createSuitMixin","props","transformItems","type","Function","default","undefined","facets","Array","maxValuesPerFacet","Number","render","renderCompat","h","components","Map","getDefaultSlot","this","forEach","vnode","const","attribute","getWidgetAttribute","children","isArray","attributes","reduce","acc","curr","set","key","class","suit","state","allComponents","component","push","_objectSpread","attrs","hidden","attributesToRender","map","get","computed","widgetParams","widgets"],"mappings":"mVAyCe,CACbA,KAAM,oBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,uBAGlBC,EAAgB,CAAEN,KAAM,oBAE1BO,MAAO,CACLC,eAAgB,CACdC,KAAMC,SACNC,aAASC,GAEXC,OAAQ,CACNJ,KAAMK,MACNH,aAASC,GAEXG,kBAAmB,CACjBN,KAAMO,OACNL,aAASC,IAGbK,OAAQC,EAAa,SAAUC,cACvBC,EAAa,IAAIC,IAavB,IAXCC,EAAeC,OAAS,IAAIC,iBAASC,GACpCC,IAAMC,EAlEZ,SAASC,EAAmBH,GAC1BC,IAYIG,EAZEtB,EACFkB,EAAMlB,MAEV,GAAIA,EAAO,CACT,GAAIA,EAAMoB,UACR,OAAOpB,EAAMoB,UAEf,GAAIb,MAAMgB,QAAQvB,EAAMwB,YACtB,OAAOxB,EAAMwB,WAAW,GAe5B,GATEF,EACEJ,EAAMI,UAAYJ,EAAMI,SAASlB,SAAWc,EAAMI,SAASlB,UAQ3DG,MAAMgB,QAAQD,GAEhB,OAAOA,EAASG,gBACbC,EAAKC,UAASD,GAAOL,EAAmBM,SACzCtB,GAsCkBgB,CAAmBH,GACjCE,GACFP,EAAWe,IACTR,EACAR,EAAE,MAAO,CAAEiB,IAAKT,EAAWU,MAAO,CAACd,EAAKe,KAAK,YAAc,CAACb,QAM7DF,KAAKgB,MAAO,CACfb,IAAMc,EAAgB,GAGtB,OAFApB,EAAWI,iBAASiB,UAAcD,EAAcE,KAAKD,KAE9CtB,EACL,MACAwB,EACE,CACEN,MAAO,CAACd,KAAKe,SAEf,CAAEM,MAAO,CAAEC,QAAQ,KAErBL,GAIJ,OAAOrB,EACL,MACA,CAAEkB,MAAO,CAACd,KAAKe,SACff,KAAKgB,MAAMO,mBAAmBC,aAAKpB,UACjCP,EAAW4B,IAAIrB,QAIrBsB,SAAU,CACRC,wBACE,MAAO,CACL1C,eAAgBe,KAAKf,eACrBK,OAAQU,KAAKV,OACbE,kBAAmBQ,KAAKR,kBAExBoC,QAAS"}
@@ -1,2 +1,2 @@
1
- import e from"./HierarchicalMenu.vue_vue&type=script&lang.js";import{render as r}from"./HierarchicalMenu.vue_vue&type=template&id=4361a0b8&lang.js";e.render=r,e.__file="src/components/HierarchicalMenu.vue";export default e;
1
+ import e from"./HierarchicalMenu.vue_vue&type=script&lang.js";import{render as r}from"./HierarchicalMenu.vue_vue&type=template&id=3548a9a1&lang.js";e.render=r;export default e;
2
2
  //# sourceMappingURL=HierarchicalMenu.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HierarchicalMenu.vue_vue&type=script&lang.js","sources":["../../../../src/components/HierarchicalMenu.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"[suit(), !state.canRefine && suit('', 'noRefinement')]\"\n >\n <slot\n :items=\"state.items\"\n :can-refine=\"state.canRefine\"\n :can-toggle-show-more=\"state.canToggleShowMore\"\n :is-showing-more=\"state.isShowingMore\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n :toggle-show-more=\"state.toggleShowMore\"\n :send-event=\"state.sendEvent\"\n >\n <hierarchical-menu-list\n :items=\"state.items\"\n :level=\"0\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n :suit=\"suit\"\n />\n\n <button\n v-if=\"showMore\"\n :class=\"[\n suit('showMore'),\n !state.canToggleShowMore && suit('showMore', 'disabled')\n ]\"\n :disabled=\"!state.canToggleShowMore\"\n @click.prevent=\"state.toggleShowMore\"\n >\n <slot\n name=\"showMoreLabel\"\n :is-showing-more=\"state.isShowingMore\"\n >{{ state.isShowingMore ? 'Show less' : 'Show more' }}</slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHierarchicalMenu } from 'instantsearch.js/es/connectors';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport HierarchicalMenuList from './HierarchicalMenuList.vue';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHierarchicalMenu',\n mixins: [\n createSuitMixin({ name: 'HierarchicalMenu' }),\n createWidgetMixin(\n {\n connector: connectHierarchicalMenu,\n },\n {\n $$widgetType: 'ais.hierarchicalMenu',\n }\n ),\n createPanelConsumerMixin(),\n ],\n components: {\n HierarchicalMenuList,\n },\n props: {\n attributes: {\n type: Array,\n required: true,\n },\n limit: {\n type: Number,\n default: undefined,\n },\n showMoreLimit: {\n type: Number,\n default: undefined,\n },\n showMore: {\n type: Boolean,\n default: false,\n },\n sortBy: {\n type: [Array, Function],\n default: undefined,\n },\n separator: {\n type: String,\n default: undefined,\n },\n rootPath: {\n type: String,\n default: undefined,\n },\n showParentLevel: {\n type: Boolean,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n attributes: this.attributes,\n limit: this.limit,\n showMore: this.showMore,\n showMoreLimit: this.showMoreLimit,\n separator: this.separator,\n rootPath: this.rootPath,\n showParentLevel: this.showParentLevel,\n sortBy: this.sortBy,\n transformItems: this.transformItems,\n };\n },\n },\n};\n</script>\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","connectHierarchicalMenu","$$widgetType","createPanelConsumerMixin","components","HierarchicalMenuList","props","attributes","type","Array","required","limit","Number","default","undefined","showMoreLimit","showMore","Boolean","sortBy","Function","separator","String","rootPath","showParentLevel","transformItems","computed","widgetParams","this"],"mappings":"uTAgDe,CACbA,KAAM,sBACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,qBACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,yBAGlBC,KAEFC,WAAY,sBACVC,GAEFC,MAAO,CACLC,WAAY,CACVC,KAAMC,MACNC,UAAU,GAEZC,MAAO,CACLH,KAAMI,OACNC,aAASC,GAEXC,cAAe,CACbP,KAAMI,OACNC,aAASC,GAEXE,SAAU,CACRR,KAAMS,QACNJ,SAAS,GAEXK,OAAQ,CACNV,KAAM,CAACC,MAAOU,UACdN,aAASC,GAEXM,UAAW,CACTZ,KAAMa,OACNR,aAASC,GAEXQ,SAAU,CACRd,KAAMa,OACNR,aAASC,GAEXS,gBAAiB,CACff,KAAMS,QACNJ,aAASC,GAEXU,eAAgB,CACdhB,KAAMW,SACNN,aAASC,IAGbW,SAAU,CACRC,8BACS,CACLnB,WAAYoB,KAAKpB,WACjBI,MAAOgB,KAAKhB,MACZK,SAAUW,KAAKX,SACfD,cAAeY,KAAKZ,cACpBK,UAAWO,KAAKP,UAChBE,SAAUK,KAAKL,SACfC,gBAAiBI,KAAKJ,gBACtBL,OAAQS,KAAKT,OACbM,eAAgBG,KAAKH"}
1
+ {"version":3,"file":"HierarchicalMenu.vue_vue&type=script&lang.js","sources":["../../../../src/components/HierarchicalMenu.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"[suit(), !state.canRefine && suit('', 'noRefinement')]\"\n >\n <slot\n :items=\"state.items\"\n :can-refine=\"state.canRefine\"\n :can-toggle-show-more=\"state.canToggleShowMore\"\n :is-showing-more=\"state.isShowingMore\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n :toggle-show-more=\"state.toggleShowMore\"\n :send-event=\"state.sendEvent\"\n >\n <hierarchical-menu-list\n :items=\"state.items\"\n :level=\"0\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n :suit=\"suit\"\n />\n\n <button\n v-if=\"showMore\"\n :class=\"[\n suit('showMore'),\n !state.canToggleShowMore && suit('showMore', 'disabled'),\n ]\"\n :disabled=\"!state.canToggleShowMore\"\n @click.prevent=\"state.toggleShowMore\"\n >\n <slot name=\"showMoreLabel\" :is-showing-more=\"state.isShowingMore\">\n {{ state.isShowingMore ? 'Show less' : 'Show more' }}\n </slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHierarchicalMenu } from 'instantsearch.js/es/connectors';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport HierarchicalMenuList from './HierarchicalMenuList.vue';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHierarchicalMenu',\n mixins: [\n createSuitMixin({ name: 'HierarchicalMenu' }),\n createWidgetMixin(\n {\n connector: connectHierarchicalMenu,\n },\n {\n $$widgetType: 'ais.hierarchicalMenu',\n }\n ),\n createPanelConsumerMixin(),\n ],\n components: {\n HierarchicalMenuList,\n },\n props: {\n attributes: {\n type: Array,\n required: true,\n },\n limit: {\n type: Number,\n default: undefined,\n },\n showMoreLimit: {\n type: Number,\n default: undefined,\n },\n showMore: {\n type: Boolean,\n default: false,\n },\n sortBy: {\n type: [Array, Function],\n default: undefined,\n },\n separator: {\n type: String,\n default: undefined,\n },\n rootPath: {\n type: String,\n default: undefined,\n },\n showParentLevel: {\n type: Boolean,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n attributes: this.attributes,\n limit: this.limit,\n showMore: this.showMore,\n showMoreLimit: this.showMoreLimit,\n separator: this.separator,\n rootPath: this.rootPath,\n showParentLevel: this.showParentLevel,\n sortBy: this.sortBy,\n transformItems: this.transformItems,\n };\n },\n },\n};\n</script>\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","connectHierarchicalMenu","$$widgetType","createPanelConsumerMixin","components","HierarchicalMenuList","props","attributes","type","Array","required","limit","Number","default","undefined","showMoreLimit","showMore","Boolean","sortBy","Function","separator","String","rootPath","showParentLevel","transformItems","computed","widgetParams","this"],"mappings":"uTA+Ce,CACbA,KAAM,sBACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,qBACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,yBAGlBC,KAEFC,WAAY,sBACVC,GAEFC,MAAO,CACLC,WAAY,CACVC,KAAMC,MACNC,UAAU,GAEZC,MAAO,CACLH,KAAMI,OACNC,aAASC,GAEXC,cAAe,CACbP,KAAMI,OACNC,aAASC,GAEXE,SAAU,CACRR,KAAMS,QACNJ,SAAS,GAEXK,OAAQ,CACNV,KAAM,CAACC,MAAOU,UACdN,aAASC,GAEXM,UAAW,CACTZ,KAAMa,OACNR,aAASC,GAEXQ,SAAU,CACRd,KAAMa,OACNR,aAASC,GAEXS,gBAAiB,CACff,KAAMS,QACNJ,aAASC,GAEXU,eAAgB,CACdhB,KAAMW,SACNN,aAASC,IAGbW,SAAU,CACRC,wBACE,MAAO,CACLnB,WAAYoB,KAAKpB,WACjBI,MAAOgB,KAAKhB,MACZK,SAAUW,KAAKX,SACfD,cAAeY,KAAKZ,cACpBK,UAAWO,KAAKP,UAChBE,SAAUK,KAAKL,SACfC,gBAAiBI,KAAKJ,gBACtBL,OAAQS,KAAKT,OACbM,eAAgBG,KAAKH"}
@@ -1,2 +1,2 @@
1
- import{resolveComponent as e,openBlock as t,createBlock as o,renderSlot as s,createVNode as i,withModifiers as n,createTextVNode as r,toDisplayString as a,createCommentVNode as l}from"vue";function g(g,h,c,u,w,f){var M=e("hierarchical-menu-list");return g.state?(t(),o("div",{key:0,class:[g.suit(),!g.state.canRefine&&g.suit("","noRefinement")]},[s(g.$slots,"default",{items:g.state.items,canRefine:g.state.canRefine,canToggleShowMore:g.state.canToggleShowMore,isShowingMore:g.state.isShowingMore,refine:g.state.refine,createURL:g.state.createURL,toggleShowMore:g.state.toggleShowMore,sendEvent:g.state.sendEvent},function(){return[i(M,{items:g.state.items,level:0,refine:g.state.refine,createURL:g.state.createURL,suit:g.suit},null,8,["items","refine","createURL","suit"]),c.showMore?(t(),o("button",{key:0,class:[g.suit("showMore"),!g.state.canToggleShowMore&&g.suit("showMore","disabled")],disabled:!g.state.canToggleShowMore,onClick:h[1]||(h[1]=n(function(){for(var e,t=[],o=arguments.length;o--;)t[o]=arguments[o];return g.state.toggleShowMore&&(e=g.state).toggleShowMore.apply(e,t)},["prevent"]))},[s(g.$slots,"showMoreLabel",{isShowingMore:g.state.isShowingMore},function(){return[r(a(g.state.isShowingMore?"Show less":"Show more"),1)]})],10,["disabled"])):l("v-if",!0)]})],2)):l("v-if",!0)}export{g as render};
2
- //# sourceMappingURL=HierarchicalMenu.vue_vue&type=template&id=4361a0b8&lang.js.map
1
+ import{resolveComponent as e,openBlock as t,createBlock as o,renderSlot as s,createVNode as n,withModifiers as r,createTextVNode as i,toDisplayString as a,createCommentVNode as l}from"vue";function g(g,h,c,u,w,M){var f=e("hierarchical-menu-list");return g.state?(t(),o("div",{key:0,class:[g.suit(),!g.state.canRefine&&g.suit("","noRefinement")]},[s(g.$slots,"default",{items:g.state.items,canRefine:g.state.canRefine,canToggleShowMore:g.state.canToggleShowMore,isShowingMore:g.state.isShowingMore,refine:g.state.refine,createURL:g.state.createURL,toggleShowMore:g.state.toggleShowMore,sendEvent:g.state.sendEvent},function(){return[n(f,{items:g.state.items,level:0,refine:g.state.refine,createURL:g.state.createURL,suit:g.suit},null,8,["items","refine","createURL","suit"]),c.showMore?(t(),o("button",{key:0,class:[g.suit("showMore"),!g.state.canToggleShowMore&&g.suit("showMore","disabled")],disabled:!g.state.canToggleShowMore,onClick:h[1]||(h[1]=r(function(){for(var e,t=[],o=arguments.length;o--;)t[o]=arguments[o];return g.state.toggleShowMore&&(e=g.state).toggleShowMore.apply(e,t)},["prevent"]))},[s(g.$slots,"showMoreLabel",{isShowingMore:g.state.isShowingMore},function(){return[i(a(g.state.isShowingMore?"Show less":"Show more"),1)]})],10,["disabled"])):l("",!0)]})],2)):l("",!0)}export{g as render};
2
+ //# sourceMappingURL=HierarchicalMenu.vue_vue&type=template&id=3548a9a1&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HierarchicalMenu.vue_vue&type=template&id=3548a9a1&lang.js","sources":["../../../../src/components/HierarchicalMenu.vue?vue&type=template&id=3548a9a1&lang.js"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"[suit(), !state.canRefine && suit('', 'noRefinement')]\"\n >\n <slot\n :items=\"state.items\"\n :can-refine=\"state.canRefine\"\n :can-toggle-show-more=\"state.canToggleShowMore\"\n :is-showing-more=\"state.isShowingMore\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n :toggle-show-more=\"state.toggleShowMore\"\n :send-event=\"state.sendEvent\"\n >\n <hierarchical-menu-list\n :items=\"state.items\"\n :level=\"0\"\n :refine=\"state.refine\"\n :createURL=\"state.createURL\"\n :suit=\"suit\"\n />\n\n <button\n v-if=\"showMore\"\n :class=\"[\n suit('showMore'),\n !state.canToggleShowMore && suit('showMore', 'disabled'),\n ]\"\n :disabled=\"!state.canToggleShowMore\"\n @click.prevent=\"state.toggleShowMore\"\n >\n <slot name=\"showMoreLabel\" :is-showing-more=\"state.isShowingMore\">\n {{ state.isShowingMore ? 'Show less' : 'Show more' }}\n </slot>\n </button>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHierarchicalMenu } from 'instantsearch.js/es/connectors';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport HierarchicalMenuList from './HierarchicalMenuList.vue';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHierarchicalMenu',\n mixins: [\n createSuitMixin({ name: 'HierarchicalMenu' }),\n createWidgetMixin(\n {\n connector: connectHierarchicalMenu,\n },\n {\n $$widgetType: 'ais.hierarchicalMenu',\n }\n ),\n createPanelConsumerMixin(),\n ],\n components: {\n HierarchicalMenuList,\n },\n props: {\n attributes: {\n type: Array,\n required: true,\n },\n limit: {\n type: Number,\n default: undefined,\n },\n showMoreLimit: {\n type: Number,\n default: undefined,\n },\n showMore: {\n type: Boolean,\n default: false,\n },\n sortBy: {\n type: [Array, Function],\n default: undefined,\n },\n separator: {\n type: String,\n default: undefined,\n },\n rootPath: {\n type: String,\n default: undefined,\n },\n showParentLevel: {\n type: Boolean,\n default: undefined,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n attributes: this.attributes,\n limit: this.limit,\n showMore: this.showMore,\n showMoreLimit: this.showMoreLimit,\n separator: this.separator,\n rootPath: this.rootPath,\n showParentLevel: this.showParentLevel,\n sortBy: this.sortBy,\n transformItems: this.transformItems,\n };\n },\n },\n};\n</script>\n"],"names":["_ctx","_createBlock","class","canRefine","_renderSlot","items","canToggleShowMore","isShowingMore","refine","createURL","toggleShowMore","sendEvent","_createVNode","level","suit","$props","disabled","onClick"],"mappings":"8PAEUA,aADRC,eAEGC,OAAQF,UAASA,QAAMG,WAAaH,6BAErCI,sBACGC,MAAOL,QAAMK,MACbF,UAAYH,QAAMG,UAClBG,kBAAsBN,QAAMM,kBAC5BC,cAAiBP,QAAMO,cACvBC,OAAQR,QAAMQ,OACdC,UAAWT,QAAMS,UACjBC,eAAkBV,QAAMU,eACxBC,UAAYX,QAAMW,6BAEnBC,KACGP,MAAOL,QAAMK,MACbQ,MAAO,EACPL,OAAQR,QAAMQ,OACdC,UAAWT,QAAMS,UACjBK,KAAMd,sDAIDe,gBADRd,kBAEGC,qFAIAc,UAAWhB,QAAMM,kBACjBW,iGAAejB,QAAMU,mBAANV,SAAMU,2CAEtBN,4BAA4BG,cAAiBP,QAAMO,qCAC9CP,QAAMO"}
@@ -1,2 +1,2 @@
1
- import e from"./HierarchicalMenuList.vue_vue&type=script&lang.js";import{render as r}from"./HierarchicalMenuList.vue_vue&type=template&id=0435b314&lang.js";e.render=r,e.__file="src/components/HierarchicalMenuList.vue";export default e;
1
+ import e from"./HierarchicalMenuList.vue_vue&type=script&lang.js";import{render as r}from"./HierarchicalMenuList.vue_vue&type=template&id=45723c6c&lang.js";e.render=r;export default e;
2
2
  //# sourceMappingURL=HierarchicalMenuList.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HierarchicalMenuList.vue_vue&type=script&lang.js","sources":["../../../../src/components/HierarchicalMenuList.vue"],"sourcesContent":["<template>\n <ul\n :class=\"[\n suit('list'),\n level > 0 && suit('list', 'child'),\n suit('list', `lvl${level}`)\n ]\"\n >\n <li\n v-for=\"item in items\"\n :key=\"item.value\"\n :class=\"[\n suit('item'),\n item.data && suit('item', 'parent'),\n item.isRefined && suit('item', 'selected')\n ]\"\n >\n <a\n :href=\"createURL(item.value)\"\n :class=\"[\n suit('link'),\n item.isRefined && suit('link', 'selected')\n ]\"\n @click.prevent=\"refine(item.value)\"\n >\n <span :class=\"suit('label')\">{{ item.label }}</span>\n <span :class=\"suit('count')\">{{ item.count }}</span>\n </a>\n\n <hierarchical-menu-list\n v-if=\"item.data\"\n :items=\"item.data\"\n :level=\"level + 1\"\n :refine=\"refine\"\n :createURL=\"createURL\"\n :suit=\"suit\"\n />\n </li>\n </ul>\n</template>\n\n<script>\nexport default {\n name: 'HierarchicalMenuList',\n props: {\n items: {\n type: Array,\n required: true,\n },\n level: {\n type: Number,\n required: true,\n },\n refine: {\n type: Function,\n required: true,\n },\n createURL: {\n type: Function,\n required: true,\n },\n suit: {\n type: Function,\n required: true,\n },\n },\n};\n</script>\n"],"names":["name","props","items","type","Array","required","level","Number","refine","Function","createURL","suit"],"mappings":"cA0Ce,CACbA,KAAM,uBACNC,MAAO,CACLC,MAAO,CACLC,KAAMC,MACNC,UAAU,GAEZC,MAAO,CACLH,KAAMI,OACNF,UAAU,GAEZG,OAAQ,CACNL,KAAMM,SACNJ,UAAU,GAEZK,UAAW,CACTP,KAAMM,SACNJ,UAAU,GAEZM,KAAM,CACJR,KAAMM,SACNJ,UAAU"}
1
+ {"version":3,"file":"HierarchicalMenuList.vue_vue&type=script&lang.js","sources":["../../../../src/components/HierarchicalMenuList.vue"],"sourcesContent":["<template>\n <ul\n :class=\"[\n suit('list'),\n level > 0 && suit('list', 'child'),\n suit('list', `lvl${level}`),\n ]\"\n >\n <li\n v-for=\"item in items\"\n :key=\"item.value\"\n :class=\"[\n suit('item'),\n item.data && suit('item', 'parent'),\n item.isRefined && suit('item', 'selected'),\n ]\"\n >\n <a\n :href=\"createURL(item.value)\"\n :class=\"[suit('link'), item.isRefined && suit('link', 'selected')]\"\n @click.prevent=\"refine(item.value)\"\n >\n <span :class=\"suit('label')\">{{ item.label }}</span>\n <span :class=\"suit('count')\">{{ item.count }}</span>\n </a>\n\n <hierarchical-menu-list\n v-if=\"item.data\"\n :items=\"item.data\"\n :level=\"level + 1\"\n :refine=\"refine\"\n :createURL=\"createURL\"\n :suit=\"suit\"\n />\n </li>\n </ul>\n</template>\n\n<script>\nexport default {\n name: 'HierarchicalMenuList',\n props: {\n items: {\n type: Array,\n required: true,\n },\n level: {\n type: Number,\n required: true,\n },\n refine: {\n type: Function,\n required: true,\n },\n createURL: {\n type: Function,\n required: true,\n },\n suit: {\n type: Function,\n required: true,\n },\n },\n};\n</script>\n"],"names":["name","props","items","type","Array","required","level","Number","refine","Function","createURL","suit"],"mappings":"cAuCe,CACbA,KAAM,uBACNC,MAAO,CACLC,MAAO,CACLC,KAAMC,MACNC,UAAU,GAEZC,MAAO,CACLH,KAAMI,OACNF,UAAU,GAEZG,OAAQ,CACNL,KAAMM,SACNJ,UAAU,GAEZK,UAAW,CACTP,KAAMM,SACNJ,UAAU,GAEZM,KAAM,CACJR,KAAMM,SACNJ,UAAU"}
@@ -1,2 +1,2 @@
1
- import{resolveComponent as e,openBlock as i,createBlock as t,Fragment as l,renderList as s,createVNode as u,withModifiers as n,toDisplayString as a,createCommentVNode as r}from"vue";function c(c,f,v,o,m,d){var k=e("hierarchical-menu-list",!0);return i(),t("ul",{class:[v.suit("list"),v.level>0&&v.suit("list","child"),v.suit("list","lvl"+v.level)]},[(i(!0),t(l,null,s(v.items,function(e){return i(),t("li",{key:e.value,class:[v.suit("item"),e.data&&v.suit("item","parent"),e.isRefined&&v.suit("item","selected")]},[u("a",{href:v.createURL(e.value),class:[v.suit("link"),e.isRefined&&v.suit("link","selected")],onClick:n(function(i){return v.refine(e.value)},["prevent"])},[u("span",{class:v.suit("label")},a(e.label),3),u("span",{class:v.suit("count")},a(e.count),3)],10,["href","onClick"]),e.data?(i(),t(k,{key:0,items:e.data,level:v.level+1,refine:v.refine,createURL:v.createURL,suit:v.suit},null,8,["items","level","refine","createURL","suit"])):r("v-if",!0)],2)}),128))],2)}export{c as render};
2
- //# sourceMappingURL=HierarchicalMenuList.vue_vue&type=template&id=0435b314&lang.js.map
1
+ import{resolveComponent as e,openBlock as t,createBlock as i,Fragment as l,renderList as s,createVNode as u,withModifiers as n,toDisplayString as a,createCommentVNode as r}from"vue";function c(c,f,v,o,m,d){var k=e("hierarchical-menu-list",!0);return t(),i("ul",{class:[v.suit("list"),v.level>0&&v.suit("list","child"),v.suit("list","lvl"+v.level)]},[(t(!0),i(l,null,s(v.items,function(e){return t(),i("li",{key:e.value,class:[v.suit("item"),e.data&&v.suit("item","parent"),e.isRefined&&v.suit("item","selected")]},[u("a",{href:v.createURL(e.value),class:[v.suit("link"),e.isRefined&&v.suit("link","selected")],onClick:n(function(t){return v.refine(e.value)},["prevent"])},[u("span",{class:v.suit("label")},a(e.label),3),u("span",{class:v.suit("count")},a(e.count),3)],10,["href","onClick"]),e.data?(t(),i(k,{key:0,items:e.data,level:v.level+1,refine:v.refine,createURL:v.createURL,suit:v.suit},null,8,["items","level","refine","createURL","suit"])):r("",!0)],2)}),128))],2)}export{c as render};
2
+ //# sourceMappingURL=HierarchicalMenuList.vue_vue&type=template&id=45723c6c&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HierarchicalMenuList.vue_vue&type=template&id=45723c6c&lang.js","sources":["../../../../src/components/HierarchicalMenuList.vue?vue&type=template&id=45723c6c&lang.js"],"sourcesContent":["<template>\n <ul\n :class=\"[\n suit('list'),\n level > 0 && suit('list', 'child'),\n suit('list', `lvl${level}`),\n ]\"\n >\n <li\n v-for=\"item in items\"\n :key=\"item.value\"\n :class=\"[\n suit('item'),\n item.data && suit('item', 'parent'),\n item.isRefined && suit('item', 'selected'),\n ]\"\n >\n <a\n :href=\"createURL(item.value)\"\n :class=\"[suit('link'), item.isRefined && suit('link', 'selected')]\"\n @click.prevent=\"refine(item.value)\"\n >\n <span :class=\"suit('label')\">{{ item.label }}</span>\n <span :class=\"suit('count')\">{{ item.count }}</span>\n </a>\n\n <hierarchical-menu-list\n v-if=\"item.data\"\n :items=\"item.data\"\n :level=\"level + 1\"\n :refine=\"refine\"\n :createURL=\"createURL\"\n :suit=\"suit\"\n />\n </li>\n </ul>\n</template>\n\n<script>\nexport default {\n name: 'HierarchicalMenuList',\n props: {\n items: {\n type: Array,\n required: true,\n },\n level: {\n type: Number,\n required: true,\n },\n refine: {\n type: Function,\n required: true,\n },\n createURL: {\n type: Function,\n required: true,\n },\n suit: {\n type: Function,\n required: true,\n },\n },\n};\n</script>\n"],"names":["_createBlock","class","$props","item","key","value","_createVNode","href","isRefined","onClick","label","count","data","items","level","refine","createURL","suit"],"mappings":"8PACEA,QACGC,+FAMDD,WACiBE,iBAARC,cADTH,QAEGI,IAAKD,EAAKE,MACVJ,gGAMDK,OACGC,KAAML,YAAUC,EAAKE,OACrBJ,OAAQC,eAAcC,EAAKK,WAAaN,2BACxCO,6BAAeP,SAAOC,EAAKE,uBAE5BC,UAAOL,MAAOC,mBAAkBC,EAAKO,UACrCJ,UAAOL,MAAOC,mBAAkBC,EAAKQ,kCAI/BR,EAAKS,UADbZ,WAEGa,MAAOV,EAAKS,KACZE,MAAOZ,UACPa,OAAQb,SACRc,UAAWd,YACXe,KAAMf"}
@@ -1,2 +1,2 @@
1
- import e from"./Highlight.vue_vue&type=script&lang.js";import{render as t}from"./Highlight.vue_vue&type=template&id=300b0ab4&lang.js";e.render=t,e.__file="src/components/Highlight.vue";export default e;
1
+ import e from"./Highlight.vue_vue&type=script&lang.js";import{render as t}from"./Highlight.vue_vue&type=template&id=7592ff40&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=Highlight.vue.js.map
@@ -1,2 +1,2 @@
1
1
  import{resolveComponent as t,openBlock as i,createBlock as h}from"vue";function g(g,e,a,r,u,l){var m=t("ais-highlighter");return i(),h(m,{hit:a.hit,attribute:a.attribute,"highlighted-tag-name":a.highlightedTagName,suit:g.suit,"highlight-property":"_highlightResult","pre-tag":"<mark>","post-tag":"</mark>"},null,8,["hit","attribute","highlighted-tag-name","suit"])}export{g as render};
2
- //# sourceMappingURL=Highlight.vue_vue&type=template&id=300b0ab4&lang.js.map
2
+ //# sourceMappingURL=Highlight.vue_vue&type=template&id=7592ff40&lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Highlight.vue_vue&type=template&id=300b0ab4&lang.js","sources":["../../../../src/components/Highlight.vue?vue&type=template&id=300b0ab4&lang.js"],"sourcesContent":["<template>\n <ais-highlighter\n :hit=\"hit\"\n :attribute=\"attribute\"\n :highlighted-tag-name=\"highlightedTagName\"\n :suit=\"suit\"\n highlight-property=\"_highlightResult\"\n pre-tag=\"<mark>\"\n post-tag=\"</mark>\"\n />\n</template>\n\n<script>\nimport { createSuitMixin } from '../mixins/suit';\nimport AisHighlighter from './Highlighter.vue';\n\nexport default {\n name: 'AisHighlight',\n mixins: [createSuitMixin({ name: 'Highlight' })],\n components: { AisHighlighter },\n props: {\n hit: {\n type: Object,\n required: true,\n },\n attribute: {\n type: String,\n required: true,\n },\n highlightedTagName: {\n type: String,\n default: 'mark',\n },\n },\n};\n</script>\n"],"names":["_createBlock","hit","$props","attribute","suit","_ctx"],"mappings":"qIACEA,KACGC,IAAKC,MACLC,UAAWD,mCACWA,qBACtBE,KAAMC,4BACY,6BACX,oBACC"}
1
+ {"version":3,"file":"Highlight.vue_vue&type=template&id=7592ff40&lang.js","sources":["../../../../src/components/Highlight.vue?vue&type=template&id=7592ff40&lang.js"],"sourcesContent":["<template>\n <ais-highlighter\n :hit=\"hit\"\n :attribute=\"attribute\"\n :highlighted-tag-name=\"highlightedTagName\"\n :suit=\"suit\"\n highlight-property=\"_highlightResult\"\n pre-tag=\"<mark>\"\n post-tag=\"</mark>\"\n />\n</template>\n\n<script>\nimport { createSuitMixin } from '../mixins/suit';\nimport AisHighlighter from './Highlighter.vue';\n\nexport default {\n name: 'AisHighlight',\n mixins: [createSuitMixin({ name: 'Highlight' })],\n components: { AisHighlighter },\n props: {\n hit: {\n type: Object,\n required: true,\n },\n attribute: {\n type: String,\n required: true,\n },\n highlightedTagName: {\n type: String,\n default: 'mark',\n },\n },\n};\n</script>\n"],"names":["_createBlock","hit","$props","attribute","highlighted-tag-name","suit","_ctx","highlight-property","pre-tag","post-tag"],"mappings":"qIACEA,KACGC,IAAKC,MACLC,UAAWD,YACXE,uBAAsBF,qBACtBG,KAAMC,OACPC,qBAAmB,mBACnBC,UAAQ,SACRC,WAAS"}
@@ -1,2 +1,2 @@
1
- import e from"./Highlighter.vue_vue&type=script&lang.js";import{render as t}from"./Highlighter.vue_vue&type=template&id=92153c3e&lang.js";e.render=t,e.__file="src/components/Highlighter.vue";export default e;
1
+ import e from"./Highlighter.vue_vue&type=script&lang.js";import{render as t}from"./Highlighter.vue_vue&type=template&id=11ec06d9&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=Highlighter.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Highlighter.vue_vue&type=script&lang.js","sources":["../../../../src/components/Highlighter.vue"],"sourcesContent":["<template>\n <span :class=\"suit()\">\n <component\n v-for=\"({ value, isHighlighted }, index) in parsedHighlights\"\n :class=\"[isHighlighted && suit('highlighted')]\"\n :key=\"index\"\n :is=\"isHighlighted ? highlightedTagName : TextNode\"\n >{{ value }}</component>\n </span>\n</template>\n\n<script>\nimport { isVue3 } from '../util/vue-compat';\nimport { parseAlgoliaHit } from '../util/parseAlgoliaHit';\n\nconst TextNode = isVue3\n ? (props, context) => context.slots.default()\n : {\n functional: true,\n render(createElement, context) {\n const slots = context.slots();\n return slots.default;\n },\n };\n\nexport default {\n name: 'AisHighlighter',\n props: {\n hit: {\n type: Object,\n required: true,\n },\n attribute: {\n type: String,\n required: true,\n },\n highlightedTagName: {\n type: String,\n default: 'mark',\n },\n suit: {\n type: Function,\n required: true,\n },\n highlightProperty: {\n type: String,\n required: true,\n },\n preTag: {\n type: String,\n required: true,\n },\n postTag: {\n type: String,\n required: true,\n },\n },\n data() {\n return { TextNode };\n },\n computed: {\n parsedHighlights() {\n return parseAlgoliaHit({\n attribute: this.attribute,\n hit: this.hit,\n highlightProperty: this.highlightProperty,\n preTag: this.preTag,\n postTag: this.postTag,\n });\n },\n },\n};\n</script>\n"],"names":["const","TextNode","props","context","slots","default","name","hit","type","Object","required","attribute","String","highlightedTagName","suit","Function","highlightProperty","preTag","postTag","data","computed","parsedHighlights","parseAlgoliaHit","this"],"mappings":"sGAeAA,IAAMC,WACDC,EAAOC,UAAYA,EAAQC,MAAMC,yBASvB,CACbC,KAAM,iBACNJ,MAAO,CACLK,IAAK,CACHC,KAAMC,OACNC,UAAU,GAEZC,UAAW,CACTH,KAAMI,OACNF,UAAU,GAEZG,mBAAoB,CAClBL,KAAMI,OACNP,QAAS,QAEXS,KAAM,CACJN,KAAMO,SACNL,UAAU,GAEZM,kBAAmB,CACjBR,KAAMI,OACNF,UAAU,GAEZO,OAAQ,CACNT,KAAMI,OACNF,UAAU,GAEZQ,QAAS,CACPV,KAAMI,OACNF,UAAU,IAGdS,sBACS,UAAElB,IAEXmB,SAAU,CACRC,mCACSC,EAAgB,CACrBX,UAAWY,KAAKZ,UAChBJ,IAAKgB,KAAKhB,IACVS,kBAAmBO,KAAKP,kBACxBC,OAAQM,KAAKN,OACbC,QAASK,KAAKL"}
1
+ {"version":3,"file":"Highlighter.vue_vue&type=script&lang.js","sources":["../../../../src/components/Highlighter.vue"],"sourcesContent":["<template>\n <span :class=\"suit()\">\n <component\n v-for=\"({ value, isHighlighted }, index) in parsedHighlights\"\n :class=\"[isHighlighted && suit('highlighted')]\"\n :key=\"index\"\n :is=\"isHighlighted ? highlightedTagName : TextNode\"\n >{{ value }}</component\n >\n </span>\n</template>\n\n<script>\nimport { getDefaultSlot, renderCompat, isVue3 } from '../util/vue-compat';\nimport { parseAlgoliaHit } from '../util/parseAlgoliaHit';\n\nconst TextNode = isVue3\n ? (props, context) => context.slots.default()\n : {\n render: renderCompat(function () {\n return getDefaultSlot(this);\n }),\n };\n\nexport default {\n name: 'AisHighlighter',\n props: {\n hit: {\n type: Object,\n required: true,\n },\n attribute: {\n type: String,\n required: true,\n },\n highlightedTagName: {\n type: String,\n default: 'mark',\n },\n suit: {\n type: Function,\n required: true,\n },\n highlightProperty: {\n type: String,\n required: true,\n },\n preTag: {\n type: String,\n required: true,\n },\n postTag: {\n type: String,\n required: true,\n },\n },\n data() {\n return { TextNode };\n },\n computed: {\n parsedHighlights() {\n return parseAlgoliaHit({\n attribute: this.attribute,\n hit: this.hit,\n highlightProperty: this.highlightProperty,\n preTag: this.preTag,\n postTag: this.postTag,\n });\n },\n },\n};\n</script>\n"],"names":["const","TextNode","props","context","slots","default","name","hit","type","Object","required","attribute","String","highlightedTagName","suit","Function","highlightProperty","preTag","postTag","data","computed","parsedHighlights","parseAlgoliaHit","this"],"mappings":"sGAgBAA,IAAMC,WACDC,EAAOC,UAAYA,EAAQC,MAAMC,yBAOvB,CACbC,KAAM,iBACNJ,MAAO,CACLK,IAAK,CACHC,KAAMC,OACNC,UAAU,GAEZC,UAAW,CACTH,KAAMI,OACNF,UAAU,GAEZG,mBAAoB,CAClBL,KAAMI,OACNP,QAAS,QAEXS,KAAM,CACJN,KAAMO,SACNL,UAAU,GAEZM,kBAAmB,CACjBR,KAAMI,OACNF,UAAU,GAEZO,OAAQ,CACNT,KAAMI,OACNF,UAAU,GAEZQ,QAAS,CACPV,KAAMI,OACNF,UAAU,IAGdS,gBACE,MAAO,UAAElB,IAEXmB,SAAU,CACRC,4BACE,OAAOC,EAAgB,CACrBX,UAAWY,KAAKZ,UAChBJ,IAAKgB,KAAKhB,IACVS,kBAAmBO,KAAKP,kBACxBC,OAAQM,KAAKN,OACbC,QAASK,KAAKL"}
@@ -1,2 +1,2 @@
1
1
  import{openBlock as t,createBlock as e,Fragment as i,renderList as s,resolveDynamicComponent as u,withCtx as l,createTextVNode as n,toDisplayString as r}from"vue";function a(a,h,g,o,c,d){return t(),e("span",{class:g.suit()},[(t(!0),e(i,null,s(d.parsedHighlights,function(i,s){var a=i.value,h=i.isHighlighted;return t(),e(u(h?g.highlightedTagName:c.TextNode),{class:[h&&g.suit("highlighted")],key:s},{default:l(function(){return[n(r(a),1)]}),_:2},1032,["class"])}),128))],2)}export{a as render};
2
- //# sourceMappingURL=Highlighter.vue_vue&type=template&id=92153c3e&lang.js.map
2
+ //# sourceMappingURL=Highlighter.vue_vue&type=template&id=11ec06d9&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Highlighter.vue_vue&type=template&id=11ec06d9&lang.js","sources":["../../../../src/components/Highlighter.vue?vue&type=template&id=11ec06d9&lang.js"],"sourcesContent":["<template>\n <span :class=\"suit()\">\n <component\n v-for=\"({ value, isHighlighted }, index) in parsedHighlights\"\n :class=\"[isHighlighted && suit('highlighted')]\"\n :key=\"index\"\n :is=\"isHighlighted ? highlightedTagName : TextNode\"\n >{{ value }}</component\n >\n </span>\n</template>\n\n<script>\nimport { getDefaultSlot, renderCompat, isVue3 } from '../util/vue-compat';\nimport { parseAlgoliaHit } from '../util/parseAlgoliaHit';\n\nconst TextNode = isVue3\n ? (props, context) => context.slots.default()\n : {\n render: renderCompat(function () {\n return getDefaultSlot(this);\n }),\n };\n\nexport default {\n name: 'AisHighlighter',\n props: {\n hit: {\n type: Object,\n required: true,\n },\n attribute: {\n type: String,\n required: true,\n },\n highlightedTagName: {\n type: String,\n default: 'mark',\n },\n suit: {\n type: Function,\n required: true,\n },\n highlightProperty: {\n type: String,\n required: true,\n },\n preTag: {\n type: String,\n required: true,\n },\n postTag: {\n type: String,\n required: true,\n },\n },\n data() {\n return { TextNode };\n },\n computed: {\n parsedHighlights() {\n return parseAlgoliaHit({\n attribute: this.attribute,\n hit: this.hit,\n highlightProperty: this.highlightProperty,\n preTag: this.preTag,\n postTag: this.postTag,\n });\n },\n },\n};\n</script>\n"],"names":["_createBlock","class","$props","$options","index","isHighlighted","$data","key","value"],"mappings":"sMACEA,UAAOC,MAAOC,kBACZF,WAC8CG,8BAAVC,8CADpCJ,IAIOK,EAAgBH,qBAAqBI,aAFzCL,OAAQI,GAAiBH,uBACzBK,IAAKH,oCAEFI"}
@@ -1,2 +1,2 @@
1
- import e from"./Hits.vue_vue&type=script&lang.js";import{render as t}from"./Hits.vue_vue&type=template&id=ef242920&lang.js";e.render=t,e.__file="src/components/Hits.vue";export default e;
1
+ import e from"./Hits.vue_vue&type=script&lang.js";import{render as t}from"./Hits.vue_vue&type=template&id=5bc4cfef&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=Hits.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hits.vue_vue&type=script&lang.js","sources":["../../../../src/components/Hits.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"suit()\"\n >\n <slot\n :items=\"items\"\n :insights=\"state.insights\"\n :send-event=\"state.sendEvent\"\n >\n <ol :class=\"suit('list')\">\n <li\n v-for=\"(item, itemIndex) in items\"\n :key=\"item.objectID\"\n :class=\"suit('item')\"\n >\n <slot\n name=\"item\"\n :item=\"item\"\n :index=\"itemIndex\"\n :insights=\"state.insights\"\n >objectID: {{ item.objectID }}, index: {{ itemIndex }}</slot>\n </li>\n </ol>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHitsWithInsights } from 'instantsearch.js/es/connectors';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHits',\n mixins: [\n createWidgetMixin(\n {\n connector: connectHitsWithInsights,\n },\n {\n $$widgetType: 'ais.hits',\n }\n ),\n createSuitMixin({ name: 'Hits' }),\n ],\n props: {\n escapeHTML: {\n type: Boolean,\n default: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n items() {\n return this.state.hits;\n },\n widgetParams() {\n return {\n escapeHTML: this.escapeHTML,\n transformItems: this.transformItems,\n };\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectHitsWithInsights","$$widgetType","createSuitMixin","props","escapeHTML","type","Boolean","default","transformItems","Function","undefined","computed","items","this","state","hits","widgetParams"],"mappings":"4MAiCe,CACbA,KAAM,UACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,aAGlBC,EAAgB,CAAEN,KAAM,UAE1BO,MAAO,CACLC,WAAY,CACVC,KAAMC,QACNC,SAAS,GAEXC,eAAgB,CACdH,KAAMI,SACNF,aAASG,IAGbC,SAAU,CACRC,wBACSC,KAAKC,MAAMC,MAEpBC,8BACS,CACLZ,WAAYS,KAAKT,WACjBI,eAAgBK,KAAKL"}
1
+ {"version":3,"file":"Hits.vue_vue&type=script&lang.js","sources":["../../../../src/components/Hits.vue"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n :items=\"items\"\n :insights=\"state.insights\"\n :send-event=\"state.sendEvent\"\n >\n <ol :class=\"suit('list')\">\n <li\n v-for=\"(item, itemIndex) in items\"\n :key=\"item.objectID\"\n :class=\"suit('item')\"\n >\n <slot\n name=\"item\"\n :item=\"item\"\n :index=\"itemIndex\"\n :insights=\"state.insights\"\n >\n objectID: {{ item.objectID }}, index: {{ itemIndex }}\n </slot>\n </li>\n </ol>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHitsWithInsights } from 'instantsearch.js/es/connectors';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHits',\n mixins: [\n createWidgetMixin(\n {\n connector: connectHitsWithInsights,\n },\n {\n $$widgetType: 'ais.hits',\n }\n ),\n createSuitMixin({ name: 'Hits' }),\n ],\n props: {\n escapeHTML: {\n type: Boolean,\n default: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n items() {\n return this.state.hits;\n },\n widgetParams() {\n return {\n escapeHTML: this.escapeHTML,\n transformItems: this.transformItems,\n };\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectHitsWithInsights","$$widgetType","createSuitMixin","props","escapeHTML","type","Boolean","default","transformItems","Function","undefined","computed","items","this","state","hits","widgetParams"],"mappings":"4MAgCe,CACbA,KAAM,UACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,aAGlBC,EAAgB,CAAEN,KAAM,UAE1BO,MAAO,CACLC,WAAY,CACVC,KAAMC,QACNC,SAAS,GAEXC,eAAgB,CACdH,KAAMI,SACNF,aAASG,IAGbC,SAAU,CACRC,iBACE,OAAOC,KAAKC,MAAMC,MAEpBC,wBACE,MAAO,CACLZ,WAAYS,KAAKT,WACjBI,eAAgBK,KAAKL"}
@@ -0,0 +1,2 @@
1
+ import{openBlock as t,createBlock as s,renderSlot as e,createVNode as i,Fragment as n,renderList as u,createTextVNode as o,toDisplayString as l,createCommentVNode as r}from"vue";function c(c,a,m,d,f,g){return c.state?(t(),s("div",{key:0,class:c.suit()},[e(c.$slots,"default",{items:g.items,insights:c.state.insights,sendEvent:c.state.sendEvent},function(){return[i("ol",{class:c.suit("list")},[(t(!0),s(n,null,u(g.items,function(i,n){return t(),s("li",{key:i.objectID,class:c.suit("item")},[e(c.$slots,"item",{item:i,index:n,insights:c.state.insights},function(){return[o(" objectID: "+l(i.objectID)+", index: "+l(n),1)]})],2)}),128))],2)]})],2)):r("",!0)}export{c as render};
2
+ //# sourceMappingURL=Hits.vue_vue&type=template&id=5bc4cfef&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hits.vue_vue&type=template&id=5bc4cfef&lang.js","sources":["../../../../src/components/Hits.vue?vue&type=template&id=5bc4cfef&lang.js"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n :items=\"items\"\n :insights=\"state.insights\"\n :send-event=\"state.sendEvent\"\n >\n <ol :class=\"suit('list')\">\n <li\n v-for=\"(item, itemIndex) in items\"\n :key=\"item.objectID\"\n :class=\"suit('item')\"\n >\n <slot\n name=\"item\"\n :item=\"item\"\n :index=\"itemIndex\"\n :insights=\"state.insights\"\n >\n objectID: {{ item.objectID }}, index: {{ itemIndex }}\n </slot>\n </li>\n </ol>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHitsWithInsights } from 'instantsearch.js/es/connectors';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHits',\n mixins: [\n createWidgetMixin(\n {\n connector: connectHitsWithInsights,\n },\n {\n $$widgetType: 'ais.hits',\n }\n ),\n createSuitMixin({ name: 'Hits' }),\n ],\n props: {\n escapeHTML: {\n type: Boolean,\n default: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n computed: {\n items() {\n return this.state.hits;\n },\n widgetParams() {\n return {\n escapeHTML: this.escapeHTML,\n transformItems: this.transformItems,\n };\n },\n },\n};\n</script>\n"],"names":["_ctx","_createBlock","class","_renderSlot","items","$options","insights","sendEvent","_createVNode","item","itemIndex","key","objectID","index"],"mappings":"iNACaA,aAAXC,eAAmBC,MAAOF,WACxBG,sBACGC,MAAOC,QACPC,SAAUN,QAAMM,SAChBC,UAAYP,QAAMO,6BAEnBC,QAAKN,MAAOF,wBACVC,WAC8BI,iBAApBI,EAAMC,cADhBT,QAEGU,IAAKF,EAAKG,SACVV,MAAOF,iBAERG,mBAEGM,KAAMA,EACNI,MAAOH,EACPJ,SAAUN,QAAMM,8CAEJG,EAAKG,UAAW,cAAYF"}
@@ -1,2 +1,2 @@
1
- import e from"./HitsPerPage.vue_vue&type=script&lang.js";import{render as t}from"./HitsPerPage.vue_vue&type=template&id=74f3ac28&lang.js";e.render=t,e.__file="src/components/HitsPerPage.vue";export default e;
1
+ import e from"./HitsPerPage.vue_vue&type=script&lang.js";import{render as t}from"./HitsPerPage.vue_vue&type=template&id=73c9813e&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=HitsPerPage.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HitsPerPage.vue_vue&type=script&lang.js","sources":["../../../../src/components/HitsPerPage.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"suit()\"\n >\n <slot\n :items=\"state.items\"\n :refine=\"state.refine\"\n :hasNoResults=\"state.hasNoResults\"\n :canRefine=\"state.canRefine\"\n >\n <select\n :class=\"suit('select')\"\n v-model=\"selected\"\n @change=\"handleChange\"\n >\n <option\n v-for=\"item in state.items\"\n :key=\"item.value\"\n :class=\"suit('option')\"\n :value=\"item.value\"\n >{{ item.label }}</option>\n </select>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHitsPerPage } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHitsPerPage',\n mixins: [\n createSuitMixin({ name: 'HitsPerPage' }),\n createWidgetMixin(\n {\n connector: connectHitsPerPage,\n },\n {\n $$widgetType: 'ais.hitsPerPage',\n }\n ),\n createPanelConsumerMixin(),\n ],\n props: {\n items: {\n type: Array,\n required: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n data() {\n return {\n selected: this.items.find(item => item.default === true).value,\n };\n },\n computed: {\n widgetParams() {\n return {\n items: this.items,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n handleChange() {\n this.state.refine(this.selected);\n },\n },\n};\n</script>\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","connectHitsPerPage","$$widgetType","createPanelConsumerMixin","props","items","type","Array","required","transformItems","Function","default","undefined","data","selected","this","find","item","value","computed","widgetParams","methods","handleChange","state","refine"],"mappings":"qQAiCe,CACbA,KAAM,iBACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,gBACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,oBAGlBC,KAEFC,MAAO,CACLC,MAAO,CACLC,KAAMC,MACNC,UAAU,GAEZC,eAAgB,CACdH,KAAMI,SACNC,aAASC,IAGbC,sBACS,CACLC,SAAUC,KAAKV,MAAMW,cAAKC,UAAyB,IAAjBA,EAAKN,UAAkBO,QAG7DC,SAAU,CACRC,8BACS,CACLf,MAAOU,KAAKV,MACZI,eAAgBM,KAAKN,kBAI3BY,QAAS,CACPC,6BACOC,MAAMC,OAAOT,KAAKD"}
1
+ {"version":3,"file":"HitsPerPage.vue_vue&type=script&lang.js","sources":["../../../../src/components/HitsPerPage.vue"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n :items=\"state.items\"\n :refine=\"state.refine\"\n :has-no-results=\"state.hasNoResults\"\n :can-refine=\"state.canRefine\"\n >\n <select :class=\"suit('select')\" v-model=\"selected\" @change=\"handleChange\">\n <option\n v-for=\"item in state.items\"\n :key=\"item.value\"\n :class=\"suit('option')\"\n :value=\"item.value\"\n >\n {{ item.label }}\n </option>\n </select>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHitsPerPage } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHitsPerPage',\n mixins: [\n createSuitMixin({ name: 'HitsPerPage' }),\n createWidgetMixin(\n {\n connector: connectHitsPerPage,\n },\n {\n $$widgetType: 'ais.hitsPerPage',\n }\n ),\n createPanelConsumerMixin(),\n ],\n props: {\n items: {\n type: Array,\n required: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n data() {\n return {\n selected: this.items.find((item) => item.default === true).value,\n };\n },\n computed: {\n widgetParams() {\n return {\n items: this.items,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n handleChange() {\n this.state.refine(this.selected);\n },\n },\n};\n</script>\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","connectHitsPerPage","$$widgetType","createPanelConsumerMixin","props","items","type","Array","required","transformItems","Function","default","undefined","data","selected","this","find","item","value","computed","widgetParams","methods","handleChange","state","refine"],"mappings":"qQA4Be,CACbA,KAAM,iBACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,gBACxBG,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,oBAGlBC,KAEFC,MAAO,CACLC,MAAO,CACLC,KAAMC,MACNC,UAAU,GAEZC,eAAgB,CACdH,KAAMI,SACNC,aAASC,IAGbC,gBACE,MAAO,CACLC,SAAUC,KAAKV,MAAMW,cAAMC,UAA0B,IAAjBA,EAAKN,UAAkBO,QAG/DC,SAAU,CACRC,wBACE,MAAO,CACLf,MAAOU,KAAKV,MACZI,eAAgBM,KAAKN,kBAI3BY,QAAS,CACPC,wBACEP,KAAKQ,MAAMC,OAAOT,KAAKD"}
@@ -1,2 +1,2 @@
1
- import{openBlock as e,createBlock as t,renderSlot as n,withDirectives as s,createVNode as a,Fragment as l,renderList as u,toDisplayString as i,vModelSelect as o,createCommentVNode as r}from"vue";function c(c,f,d,h,v,p){return c.state?(e(),t("div",{key:0,class:c.suit()},[n(c.$slots,"default",{items:c.state.items,refine:c.state.refine,hasNoResults:c.state.hasNoResults,canRefine:c.state.canRefine},function(){return[s(a("select",{class:c.suit("select"),"onUpdate:modelValue":f[1]||(f[1]=function(e){return v.selected=e}),onChange:f[2]||(f[2]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return p.handleChange&&p.handleChange.apply(p,e)})},[(e(!0),t(l,null,u(c.state.items,function(n){return e(),t("option",{key:n.value,class:c.suit("option"),value:n.value},i(n.label),11,["value"])}),128))],34),[[o,v.selected]])]})],2)):r("v-if",!0)}export{c as render};
2
- //# sourceMappingURL=HitsPerPage.vue_vue&type=template&id=74f3ac28&lang.js.map
1
+ import{openBlock as e,createBlock as t,renderSlot as n,withDirectives as s,createVNode as a,Fragment as l,renderList as u,toDisplayString as i,vModelSelect as o,createCommentVNode as r}from"vue";function c(c,f,d,h,p,v){return c.state?(e(),t("div",{key:0,class:c.suit()},[n(c.$slots,"default",{items:c.state.items,refine:c.state.refine,hasNoResults:c.state.hasNoResults,canRefine:c.state.canRefine},function(){return[s(a("select",{class:c.suit("select"),"onUpdate:modelValue":f[1]||(f[1]=function(e){return p.selected=e}),onChange:f[2]||(f[2]=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return v.handleChange&&v.handleChange.apply(v,e)})},[(e(!0),t(l,null,u(c.state.items,function(n){return e(),t("option",{key:n.value,class:c.suit("option"),value:n.value},i(n.label),11,["value"])}),128))],34),[[o,p.selected]])]})],2)):r("",!0)}export{c as render};
2
+ //# sourceMappingURL=HitsPerPage.vue_vue&type=template&id=73c9813e&lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HitsPerPage.vue_vue&type=template&id=73c9813e&lang.js","sources":["../../../../src/components/HitsPerPage.vue?vue&type=template&id=73c9813e&lang.js"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n :items=\"state.items\"\n :refine=\"state.refine\"\n :has-no-results=\"state.hasNoResults\"\n :can-refine=\"state.canRefine\"\n >\n <select :class=\"suit('select')\" v-model=\"selected\" @change=\"handleChange\">\n <option\n v-for=\"item in state.items\"\n :key=\"item.value\"\n :class=\"suit('option')\"\n :value=\"item.value\"\n >\n {{ item.label }}\n </option>\n </select>\n </slot>\n </div>\n</template>\n\n<script>\nimport { connectHitsPerPage } from 'instantsearch.js/es/connectors';\nimport { createPanelConsumerMixin } from '../mixins/panel';\nimport { createWidgetMixin } from '../mixins/widget';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisHitsPerPage',\n mixins: [\n createSuitMixin({ name: 'HitsPerPage' }),\n createWidgetMixin(\n {\n connector: connectHitsPerPage,\n },\n {\n $$widgetType: 'ais.hitsPerPage',\n }\n ),\n createPanelConsumerMixin(),\n ],\n props: {\n items: {\n type: Array,\n required: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n },\n data() {\n return {\n selected: this.items.find((item) => item.default === true).value,\n };\n },\n computed: {\n widgetParams() {\n return {\n items: this.items,\n transformItems: this.transformItems,\n };\n },\n },\n methods: {\n handleChange() {\n this.state.refine(this.selected);\n },\n },\n};\n</script>\n"],"names":["_ctx","_createBlock","class","_renderSlot","items","refine","hasNoResults","canRefine","_createVNode","$data","onChange","$options","item","key","value","label"],"mappings":"kOACaA,aAAXC,eAAmBC,MAAOF,WACxBG,sBACGC,MAAOJ,QAAMI,MACbC,OAAQL,QAAMK,OACdC,aAAgBN,QAAMM,aACtBC,UAAYP,QAAMO,+BAEnBC,YAASN,MAAOF,sEAAyBS,eAAWC,8FAAQC,qDAC1DV,WACiBD,QAAMI,eAAdQ,cADTX,YAEGY,IAAKD,EAAKE,MACVZ,MAAOF,iBACPc,MAAOF,EAAKE,SAEVF,EAAKG,sCAP6BN"}
@@ -1 +1 @@
1
- {"version":3,"file":"Index.js","sources":["../../../../src/components/Index.js"],"sourcesContent":["import { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\nimport indexWidget from 'instantsearch.js/es/widgets/index/index';\nimport { renderCompat, getDefaultSlot } from '../util/vue-compat';\n\n// wrapped in a dummy function, since indexWidget doesn't render\nconst connectIndex = () => indexWidget;\n\nexport default {\n name: 'AisIndex',\n mixins: [\n createSuitMixin({ name: 'Index' }),\n createWidgetMixin(\n { connector: connectIndex },\n {\n $$widgetType: 'ais.index',\n }\n ),\n ],\n provide() {\n return {\n // The widget is created & registered by widgetMixin, accessor is needed\n // because provide is not reactive.\n $_ais_getParentIndex: () => this.widget,\n };\n },\n props: {\n indexName: {\n type: String,\n required: true,\n },\n indexId: {\n type: String,\n required: false,\n },\n },\n render: renderCompat(function(h) {\n return h('div', {}, getDefaultSlot(this));\n }),\n computed: {\n widgetParams() {\n return {\n indexName: this.indexName,\n indexId: this.indexId,\n };\n },\n },\n};\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","indexWidget","$$widgetType","provide","$_ais_getParentIndex","this","widget","props","indexName","type","String","required","indexId","render","renderCompat","h","getDefaultSlot","computed","widgetParams"],"mappings":"wQAQe,CACbA,KAAM,WACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,UACxBG,EACE,CAAEC,4BAPmBC,IAQrB,CACEC,aAAc,eAIpBC,oCACS,CAGLC,uCAA4BC,EAAKC,UAGrCC,MAAO,CACLC,UAAW,CACTC,KAAMC,OACNC,UAAU,GAEZC,QAAS,CACPH,KAAMC,OACNC,UAAU,IAGdE,OAAQC,EAAa,SAASC,UACrBA,EAAE,MAAO,GAAIC,EAAeX,SAErCY,SAAU,CACRC,8BACS,CACLV,UAAWH,KAAKG,UAChBI,QAASP,KAAKO"}
1
+ {"version":3,"file":"Index.js","sources":["../../../../src/components/Index.js"],"sourcesContent":["import { createSuitMixin } from '../mixins/suit';\nimport { createWidgetMixin } from '../mixins/widget';\nimport indexWidget from 'instantsearch.js/es/widgets/index/index';\nimport { renderCompat, getDefaultSlot } from '../util/vue-compat';\n\n// wrapped in a dummy function, since indexWidget doesn't render\nconst connectIndex = () => indexWidget;\n\nexport default {\n name: 'AisIndex',\n mixins: [\n createSuitMixin({ name: 'Index' }),\n createWidgetMixin(\n { connector: connectIndex },\n {\n $$widgetType: 'ais.index',\n }\n ),\n ],\n provide() {\n return {\n // The widget is created & registered by widgetMixin, accessor is needed\n // because provide is not reactive.\n $_ais_getParentIndex: () => this.widget,\n };\n },\n props: {\n indexName: {\n type: String,\n required: true,\n },\n indexId: {\n type: String,\n required: false,\n },\n },\n render: renderCompat(function (h) {\n return h('div', {}, getDefaultSlot(this));\n }),\n computed: {\n widgetParams() {\n return {\n indexName: this.indexName,\n indexId: this.indexId,\n };\n },\n },\n};\n"],"names":["name","mixins","createSuitMixin","createWidgetMixin","connector","indexWidget","$$widgetType","provide","$_ais_getParentIndex","this","widget","props","indexName","type","String","required","indexId","render","renderCompat","h","getDefaultSlot","computed","widgetParams"],"mappings":"wQAQe,CACbA,KAAM,WACNC,OAAQ,CACNC,EAAgB,CAAEF,KAAM,UACxBG,EACE,CAAEC,4BAPmBC,IAQrB,CACEC,aAAc,eAIpBC,8BACE,MAAO,CAGLC,uCAA4BC,EAAKC,UAGrCC,MAAO,CACLC,UAAW,CACTC,KAAMC,OACNC,UAAU,GAEZC,QAAS,CACPH,KAAMC,OACNC,UAAU,IAGdE,OAAQC,EAAa,SAAUC,GAC7B,OAAOA,EAAE,MAAO,GAAIC,EAAeX,SAErCY,SAAU,CACRC,wBACE,MAAO,CACLV,UAAWH,KAAKG,UAChBI,QAASP,KAAKO"}
@@ -1,2 +1,2 @@
1
- import e from"./InfiniteHits.vue_vue&type=script&lang.js";import{render as t}from"./InfiniteHits.vue_vue&type=template&id=dcfb64b8&lang.js";e.render=t,e.__file="src/components/InfiniteHits.vue";export default e;
1
+ import e from"./InfiniteHits.vue_vue&type=script&lang.js";import{render as t}from"./InfiniteHits.vue_vue&type=template&id=0e2ba520&lang.js";e.render=t;export default e;
2
2
  //# sourceMappingURL=InfiniteHits.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteHits.vue_vue&type=script&lang.js","sources":["../../../../src/components/InfiniteHits.vue"],"sourcesContent":["<template>\n <div\n v-if=\"state\"\n :class=\"suit()\"\n >\n\n <slot\n v-if=\"showPrevious\"\n name=\"loadPrevious\"\n :refine-previous=\"refinePrevious\"\n :page=\"state.results.page\"\n :is-first-page=\"state.isFirstPage\"\n >\n <button\n :class=\"[suit('loadPrevious'), state.isFirstPage && suit('loadPrevious', 'disabled')]\"\n :disabled=\"state.isFirstPage\"\n @click=\"refinePrevious()\"\n >Show previous results</button>\n </slot>\n\n <slot\n :items=\"items\"\n :results=\"state.results\"\n :is-last-page=\"state.isLastPage\"\n :refine-previous=\"refinePrevious\"\n :refine-next=\"refineNext\"\n :refine=\"refineNext\"\n :insights=\"state.insights\"\n :send-event=\"state.sendEvent\"\n >\n <ol :class=\"suit('list')\">\n <li\n v-for=\"(item, index) in items\"\n :class=\"suit('item')\"\n :key=\"item.objectID\"\n >\n <slot\n name=\"item\"\n :item=\"item\"\n :index=\"index\"\n :insights=\"state.insights\"\n >objectID: {{ item.objectID }}, index: {{ index }}</slot>\n </li>\n </ol>\n\n <slot\n name=\"loadMore\"\n :refine-next=\"refineNext\"\n :refine=\"refineNext\"\n :page=\"state.results.page\"\n :is-last-page=\"state.isLastPage\"\n >\n <button\n :class=\"[suit('loadMore'), state.isLastPage && suit('loadMore', 'disabled')]\"\n :disabled=\"state.isLastPage\"\n @click=\"refineNext()\"\n >Show more results</button>\n </slot>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectInfiniteHitsWithInsights } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisInfiniteHits',\n mixins: [\n createWidgetMixin(\n {\n connector: connectInfiniteHitsWithInsights,\n },\n {\n $$widgetType: 'ais.infiniteHits',\n }\n ),\n createSuitMixin({ name: 'InfiniteHits' }),\n ],\n props: {\n showPrevious: {\n type: Boolean,\n default: false,\n },\n escapeHTML: {\n type: Boolean,\n default: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n cache: {\n type: Object,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n showPrevious: this.showPrevious,\n escapeHTML: this.escapeHTML,\n transformItems: this.transformItems,\n cache: this.cache,\n };\n },\n items() {\n // Fixes InstantSearch.js connectors API: every list\n // of things must be called `items`\n return this.state.hits;\n },\n },\n methods: {\n refinePrevious() {\n this.state.showPrevious();\n },\n refineNext() {\n this.state.showMore();\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectInfiniteHitsWithInsights","$$widgetType","createSuitMixin","props","showPrevious","type","Boolean","default","escapeHTML","transformItems","Function","undefined","cache","Object","computed","widgetParams","this","items","state","hits","methods","refinePrevious","refineNext","showMore"],"mappings":"oNAmEe,CACbA,KAAM,kBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,qBAGlBC,EAAgB,CAAEN,KAAM,kBAE1BO,MAAO,CACLC,aAAc,CACZC,KAAMC,QACNC,SAAS,GAEXC,WAAY,CACVH,KAAMC,QACNC,SAAS,GAEXE,eAAgB,CACdJ,KAAMK,SACNH,aAASI,GAEXC,MAAO,CACLP,KAAMQ,OACNN,aAASI,IAGbG,SAAU,CACRC,8BACS,CACLX,aAAcY,KAAKZ,aACnBI,WAAYQ,KAAKR,WACjBC,eAAgBO,KAAKP,eACrBG,MAAOI,KAAKJ,QAGhBK,wBAGSD,KAAKE,MAAMC,OAGtBC,QAAS,CACPC,+BACOH,MAAMd,gBAEbkB,2BACOJ,MAAMK"}
1
+ {"version":3,"file":"InfiniteHits.vue_vue&type=script&lang.js","sources":["../../../../src/components/InfiniteHits.vue"],"sourcesContent":["<template>\n <div v-if=\"state\" :class=\"suit()\">\n <slot\n v-if=\"showPrevious\"\n name=\"loadPrevious\"\n :refine-previous=\"refinePrevious\"\n :page=\"state.results.page\"\n :is-first-page=\"state.isFirstPage\"\n >\n <button\n :class=\"[\n suit('loadPrevious'),\n state.isFirstPage && suit('loadPrevious', 'disabled'),\n ]\"\n :disabled=\"state.isFirstPage\"\n @click=\"refinePrevious()\"\n >\n Show previous results\n </button>\n </slot>\n\n <slot\n :items=\"items\"\n :results=\"state.results\"\n :is-last-page=\"state.isLastPage\"\n :refine-previous=\"refinePrevious\"\n :refine-next=\"refineNext\"\n :refine=\"refineNext\"\n :insights=\"state.insights\"\n :send-event=\"state.sendEvent\"\n >\n <ol :class=\"suit('list')\">\n <li\n v-for=\"(item, index) in items\"\n :class=\"suit('item')\"\n :key=\"item.objectID\"\n >\n <slot\n name=\"item\"\n :item=\"item\"\n :index=\"index\"\n :insights=\"state.insights\"\n >\n objectID: {{ item.objectID }}, index: {{ index }}\n </slot>\n </li>\n </ol>\n\n <slot\n name=\"loadMore\"\n :refine-next=\"refineNext\"\n :refine=\"refineNext\"\n :page=\"state.results.page\"\n :is-last-page=\"state.isLastPage\"\n >\n <button\n :class=\"[\n suit('loadMore'),\n state.isLastPage && suit('loadMore', 'disabled'),\n ]\"\n :disabled=\"state.isLastPage\"\n @click=\"refineNext()\"\n >\n Show more results\n </button>\n </slot>\n </slot>\n </div>\n</template>\n\n<script>\nimport { createWidgetMixin } from '../mixins/widget';\nimport { connectInfiniteHitsWithInsights } from 'instantsearch.js/es/connectors';\nimport { createSuitMixin } from '../mixins/suit';\n\nexport default {\n name: 'AisInfiniteHits',\n mixins: [\n createWidgetMixin(\n {\n connector: connectInfiniteHitsWithInsights,\n },\n {\n $$widgetType: 'ais.infiniteHits',\n }\n ),\n createSuitMixin({ name: 'InfiniteHits' }),\n ],\n props: {\n showPrevious: {\n type: Boolean,\n default: false,\n },\n escapeHTML: {\n type: Boolean,\n default: true,\n },\n transformItems: {\n type: Function,\n default: undefined,\n },\n cache: {\n type: Object,\n default: undefined,\n },\n },\n computed: {\n widgetParams() {\n return {\n showPrevious: this.showPrevious,\n escapeHTML: this.escapeHTML,\n transformItems: this.transformItems,\n cache: this.cache,\n };\n },\n items() {\n // Fixes InstantSearch.js connectors API: every list\n // of things must be called `items`\n return this.state.hits;\n },\n },\n methods: {\n refinePrevious() {\n this.state.showPrevious();\n },\n refineNext() {\n this.state.showMore();\n },\n },\n};\n</script>\n"],"names":["name","mixins","createWidgetMixin","connector","connectInfiniteHitsWithInsights","$$widgetType","createSuitMixin","props","showPrevious","type","Boolean","default","escapeHTML","transformItems","Function","undefined","cache","Object","computed","widgetParams","this","items","state","hits","methods","refinePrevious","refineNext","showMore"],"mappings":"oNA2Ee,CACbA,KAAM,kBACNC,OAAQ,CACNC,EACE,CACEC,UAAWC,GAEb,CACEC,aAAc,qBAGlBC,EAAgB,CAAEN,KAAM,kBAE1BO,MAAO,CACLC,aAAc,CACZC,KAAMC,QACNC,SAAS,GAEXC,WAAY,CACVH,KAAMC,QACNC,SAAS,GAEXE,eAAgB,CACdJ,KAAMK,SACNH,aAASI,GAEXC,MAAO,CACLP,KAAMQ,OACNN,aAASI,IAGbG,SAAU,CACRC,wBACE,MAAO,CACLX,aAAcY,KAAKZ,aACnBI,WAAYQ,KAAKR,WACjBC,eAAgBO,KAAKP,eACrBG,MAAOI,KAAKJ,QAGhBK,iBAGE,OAAOD,KAAKE,MAAMC,OAGtBC,QAAS,CACPC,0BACEL,KAAKE,MAAMd,gBAEbkB,sBACEN,KAAKE,MAAMK"}