imio.smartweb.core 1.2.12__py3-none-any.whl → 1.2.68__py3-none-any.whl

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 (361) hide show
  1. imio/smartweb/core/behaviors/categorization.py +24 -0
  2. imio/smartweb/core/behaviors/configure.zcml +7 -0
  3. imio/smartweb/core/browser/configure.zcml +41 -1
  4. imio/smartweb/core/browser/controlpanel.py +41 -0
  5. imio/smartweb/core/browser/dashboards/configure.zcml +0 -2
  6. imio/smartweb/core/browser/dashboards/plausible.py +4 -4
  7. imio/smartweb/core/browser/faceted/block_view.pt +4 -4
  8. imio/smartweb/core/browser/faceted/summary_view.pt +4 -4
  9. imio/smartweb/core/browser/forms.py +3 -3
  10. imio/smartweb/core/browser/redirect_to_main_react_view.py +52 -0
  11. imio/smartweb/core/browser/search/search.pt +2 -1
  12. imio/smartweb/core/browser/search/search.py +4 -0
  13. imio/smartweb/core/browser/sitemap.py +148 -0
  14. imio/smartweb/core/browser/static/icons/action-delete.svg +3 -0
  15. imio/smartweb/core/browser/static/icons/action-e-guichet.svg +1 -1
  16. imio/smartweb/core/browser/static/icons/action-email.svg +1 -1
  17. imio/smartweb/core/browser/static/icons/action-engagement-2.svg +4 -0
  18. imio/smartweb/core/browser/static/icons/action-engagement.svg +1 -1
  19. imio/smartweb/core/browser/static/icons/action-nous-contacter.svg +1 -1
  20. imio/smartweb/core/browser/static/icons/action-nous-rejoindre.svg +2 -1
  21. imio/smartweb/core/browser/static/icons/action-organiser-un-evenement.svg +1 -1
  22. imio/smartweb/core/browser/static/icons/action-panneaux.svg +3 -0
  23. imio/smartweb/core/browser/static/icons/action-signaler-un-probleme.svg +1 -1
  24. imio/smartweb/core/browser/static/icons/action-voir-plan.svg +1 -1
  25. imio/smartweb/core/browser/static/icons/action-vote.svg +3 -0
  26. imio/smartweb/core/browser/static/icons/categorie-associations.svg +1 -1
  27. imio/smartweb/core/browser/static/icons/categorie-attention.svg +3 -0
  28. imio/smartweb/core/browser/static/icons/categorie-avis-et-enquetes.svg +1 -1
  29. imio/smartweb/core/browser/static/icons/categorie-cinema.svg +1 -1
  30. imio/smartweb/core/browser/static/icons/categorie-commerce.svg +1 -1
  31. imio/smartweb/core/browser/static/icons/categorie-concert.svg +1 -1
  32. imio/smartweb/core/browser/static/icons/categorie-culture.svg +1 -1
  33. imio/smartweb/core/browser/static/icons/categorie-demarches.svg +1 -1
  34. imio/smartweb/core/browser/static/icons/categorie-enfance.svg +1 -1
  35. imio/smartweb/core/browser/static/icons/categorie-enseignement.svg +1 -1
  36. imio/smartweb/core/browser/static/icons/categorie-environnement-gestion-des-dechets.svg +1 -1
  37. imio/smartweb/core/browser/static/icons/categorie-exposition.svg +1 -1
  38. imio/smartweb/core/browser/static/icons/categorie-horaires.svg +1 -1
  39. imio/smartweb/core/browser/static/icons/categorie-infos-travaux-2.svg +4 -0
  40. imio/smartweb/core/browser/static/icons/categorie-infos-travaux.svg +1 -1
  41. imio/smartweb/core/browser/static/icons/categorie-mandataires.svg +1 -1
  42. imio/smartweb/core/browser/static/icons/categorie-mobilite.svg +1 -1
  43. imio/smartweb/core/browser/static/icons/categorie-mon-dossier.svg +1 -1
  44. imio/smartweb/core/browser/static/icons/categorie-nature.svg +3 -0
  45. imio/smartweb/core/browser/static/icons/categorie-parc-de-stationnement.svg +1 -1
  46. imio/smartweb/core/browser/static/icons/categorie-parcs-a-conteneurs.svg +4 -0
  47. imio/smartweb/core/browser/static/icons/categorie-parcs-et-jardins.svg +1 -1
  48. imio/smartweb/core/browser/static/icons/categorie-plus.svg +3 -0
  49. imio/smartweb/core/browser/static/icons/categorie-primes-2.svg +5 -0
  50. imio/smartweb/core/browser/static/icons/categorie-primes.svg +1 -1
  51. imio/smartweb/core/browser/static/icons/categorie-sport-courir.svg +1 -1
  52. imio/smartweb/core/browser/static/icons/categorie-sport-natation.svg +4 -0
  53. imio/smartweb/core/browser/static/icons/categorie-sport-velo.svg +1 -1
  54. imio/smartweb/core/browser/static/icons/categorie-tourisme.svg +1 -1
  55. imio/smartweb/core/browser/static/icons/organisation-academie-musique.svg +1 -1
  56. imio/smartweb/core/browser/static/icons/organisation-centre-sportif.svg +1 -1
  57. imio/smartweb/core/browser/static/icons/organisation-cpas.svg +1 -1
  58. imio/smartweb/core/browser/static/icons/organisation-ecole-des-arts.svg +1 -1
  59. imio/smartweb/core/browser/static/icons/organisation-ecole-sac.svg +4 -0
  60. imio/smartweb/core/browser/static/icons/organisation-ecole.svg +1 -1
  61. imio/smartweb/core/browser/static/icons/organisation-mobilite.svg +1 -1
  62. imio/smartweb/core/browser/static/icons/organisation-scout.svg +3 -0
  63. imio/smartweb/core/browser/static/icons/reseausocial-behance.svg +3 -0
  64. imio/smartweb/core/browser/static/icons/reseausocial-facebook.svg +1 -1
  65. imio/smartweb/core/browser/static/icons/reseausocial-linkedin.svg +3 -0
  66. imio/smartweb/core/browser/static/icons/reseausocial-twitter.svg +3 -13
  67. imio/smartweb/core/browser/static/icons/reseausocial-vimeo.svg +1 -1
  68. imio/smartweb/core/browser/static/icons/reseausocial-youtube.svg +1 -1
  69. imio/smartweb/core/browser/static/icons/vue-actualites.svg +1 -1
  70. imio/smartweb/core/browser/static/icons/vue-agenda.svg +1 -1
  71. imio/smartweb/core/browser/static/icons/vue-annuaire.svg +1 -1
  72. imio/smartweb/core/browser/static/smartweb-edit-compiled.css +1 -1
  73. imio/smartweb/core/browser/static/smartweb-edit-compiled.js +1 -1
  74. imio/smartweb/core/browser/static/smartweb-view-compiled.css +1 -1
  75. imio/smartweb/core/browser/static/smartweb-view-compiled.js +1 -1
  76. imio/smartweb/core/browser/static/src/edit.js +5 -0
  77. imio/smartweb/core/browser/static/src/edit.less +42 -0
  78. imio/smartweb/core/browser/static/src/view.js +11 -0
  79. imio/smartweb/core/browser/static/src/view.less +4 -0
  80. imio/smartweb/core/browser/utils.py +5 -32
  81. imio/smartweb/core/browser/vocabulary.py +40 -0
  82. imio/smartweb/core/contents/__init__.py +4 -0
  83. imio/smartweb/core/contents/configure.zcml +1 -0
  84. imio/smartweb/core/contents/cropping.py +1 -1
  85. imio/smartweb/core/contents/folder/block_view.pt +8 -8
  86. imio/smartweb/core/contents/folder/summary_view.pt +4 -4
  87. imio/smartweb/core/contents/pages/cirkwi/content.py +5 -0
  88. imio/smartweb/core/contents/pages/cirkwi/view.py +2 -1
  89. imio/smartweb/core/contents/pages/portal_page/view.py +3 -0
  90. imio/smartweb/core/contents/pages/views.py +3 -1
  91. imio/smartweb/core/contents/publication/configure.zcml +5 -0
  92. imio/smartweb/core/contents/publication/content.py +23 -0
  93. imio/smartweb/core/contents/rest/base.py +24 -10
  94. imio/smartweb/core/contents/rest/configure.zcml +7 -0
  95. imio/smartweb/core/contents/rest/directory/content.py +2 -2
  96. imio/smartweb/core/contents/rest/directory/endpoint.py +2 -2
  97. imio/smartweb/core/contents/rest/directory/view.pt +3 -1
  98. imio/smartweb/core/contents/rest/directory/view.py +3 -0
  99. imio/smartweb/core/contents/rest/events/content.py +15 -2
  100. imio/smartweb/core/contents/rest/events/endpoint.py +5 -7
  101. imio/smartweb/core/contents/rest/events/view.pt +6 -1
  102. imio/smartweb/core/contents/rest/events/view.py +15 -0
  103. imio/smartweb/core/contents/rest/news/content.py +8 -2
  104. imio/smartweb/core/contents/rest/news/endpoint.py +4 -2
  105. imio/smartweb/core/contents/rest/news/view.pt +5 -1
  106. imio/smartweb/core/contents/rest/news/view.py +11 -0
  107. imio/smartweb/core/contents/rest/search/endpoint.py +4 -4
  108. imio/smartweb/core/contents/rest/traversal.py +18 -0
  109. imio/smartweb/core/contents/rest/utils.py +98 -0
  110. imio/smartweb/core/contents/rest/view.py +11 -0
  111. imio/smartweb/core/contents/sections/common_templates/carousel.pt +6 -2
  112. imio/smartweb/core/contents/sections/common_templates/table.pt +22 -8
  113. imio/smartweb/core/contents/sections/configure.zcml +18 -0
  114. imio/smartweb/core/contents/sections/contact/content.py +2 -2
  115. imio/smartweb/core/contents/sections/contact/utils.py +2 -154
  116. imio/smartweb/core/contents/sections/events/content.py +12 -4
  117. imio/smartweb/core/contents/sections/events/view.py +20 -2
  118. imio/smartweb/core/contents/sections/external_content/configure.zcml +29 -0
  119. imio/smartweb/core/contents/sections/external_content/view.pt +25 -7
  120. imio/smartweb/core/contents/sections/external_content/view_idelux_waste.pt +50 -0
  121. imio/smartweb/core/contents/sections/external_content/view_inbw_containers_affluence.pt +91 -0
  122. imio/smartweb/core/contents/sections/external_content/view_odwb_widget.pt +20 -0
  123. imio/smartweb/core/contents/sections/external_content/views.py +306 -125
  124. imio/smartweb/core/contents/sections/files/content.py +7 -1
  125. imio/smartweb/core/contents/sections/files/view.py +40 -12
  126. imio/smartweb/core/contents/sections/links/view.py +5 -0
  127. imio/smartweb/core/contents/sections/macros.pt +39 -9
  128. imio/smartweb/core/contents/sections/news/content.py +11 -3
  129. imio/smartweb/core/contents/sections/news/view.py +20 -2
  130. imio/smartweb/core/contents/sections/text/view.pt +5 -4
  131. imio/smartweb/core/contents/sections/text/views.py +2 -0
  132. imio/smartweb/core/contents/sections/views.py +81 -4
  133. imio/smartweb/core/interfaces.py +15 -0
  134. imio/smartweb/core/profiles/default/actions.xml +15 -0
  135. imio/smartweb/core/profiles/default/diff_tool.xml +8 -0
  136. imio/smartweb/core/profiles/default/metadata.xml +1 -1
  137. imio/smartweb/core/profiles/default/registry/plone.xml +21 -4
  138. imio/smartweb/core/profiles/default/repositorytool.xml +1 -0
  139. imio/smartweb/core/profiles/default/taxonomies/page_category.xml +16 -0
  140. imio/smartweb/core/profiles/default/taxonomies/procedure_category.xml +26 -0
  141. imio/smartweb/core/profiles/default/types/Collection.xml +13 -0
  142. imio/smartweb/core/profiles/default/types/File.xml +13 -0
  143. imio/smartweb/core/profiles/default/types/Image.xml +13 -0
  144. imio/smartweb/core/profiles/default/types/imio.smartweb.BlockLink.xml +5 -0
  145. imio/smartweb/core/profiles/default/types/imio.smartweb.CirkwiView.xml +1 -0
  146. imio/smartweb/core/profiles/default/types/imio.smartweb.DirectoryView.xml +1 -0
  147. imio/smartweb/core/profiles/default/types/imio.smartweb.EventsView.xml +2 -0
  148. imio/smartweb/core/profiles/default/types/imio.smartweb.Folder.xml +1 -0
  149. imio/smartweb/core/profiles/default/types/imio.smartweb.NewsView.xml +2 -0
  150. imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
  151. imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
  152. imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
  153. imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml +38 -0
  154. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +1 -0
  155. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +2 -0
  156. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +0 -1
  157. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +1 -0
  158. imio/smartweb/core/profiles/default/types.xml +1 -0
  159. imio/smartweb/core/profiles/icons/basic/registry.xml +120 -0
  160. imio/smartweb/core/profiles/testing/types/imio.smartweb.DirectoryView.xml +11 -0
  161. imio/smartweb/core/profiles/testing/types/imio.smartweb.EventsView.xml +11 -0
  162. imio/smartweb/core/profiles/testing/types/imio.smartweb.NewsView.xml +11 -0
  163. imio/smartweb/core/profiles/validation/contentrules.xml +102 -0
  164. imio/smartweb/core/profiles.zcml +8 -0
  165. imio/smartweb/core/rest/authentic_sources.py +23 -11
  166. imio/smartweb/core/subscribers.py +24 -0
  167. imio/smartweb/core/subscribers.zcml +4 -0
  168. imio/smartweb/core/tests/resources/json_iadeliberations_institutions.json +60 -0
  169. imio/smartweb/core/tests/resources/json_iadeliberations_publication.json +105 -0
  170. imio/smartweb/core/tests/resources/json_iadeliberations_publications.json +270 -0
  171. imio/smartweb/core/tests/resources/json_rest_events.json +6 -2
  172. imio/smartweb/core/tests/resources/json_rest_news.json +2 -2
  173. imio/smartweb/core/tests/resources/json_rest_specific_events.json +1 -1
  174. imio/smartweb/core/tests/test_cropping.py +4 -4
  175. imio/smartweb/core/tests/test_htmx_in_sections.py +131 -0
  176. imio/smartweb/core/tests/test_iadeliberations.py +136 -0
  177. imio/smartweb/core/tests/test_icons.py +1 -1
  178. imio/smartweb/core/tests/test_redirect_to_main_react_view.py +79 -0
  179. imio/smartweb/core/tests/test_rest.py +283 -22
  180. imio/smartweb/core/tests/test_section_contact.py +2 -2
  181. imio/smartweb/core/tests/test_section_events.py +28 -5
  182. imio/smartweb/core/tests/test_section_external_content.py +26 -25
  183. imio/smartweb/core/tests/test_section_news.py +30 -8
  184. imio/smartweb/core/tests/test_sections.py +38 -15
  185. imio/smartweb/core/tests/test_sitemap.py +174 -0
  186. imio/smartweb/core/tests/test_vocabularies.py +61 -4
  187. imio/smartweb/core/tests/test_vocabulary.py +43 -0
  188. imio/smartweb/core/tests/utils.py +15 -0
  189. imio/smartweb/core/upgrades/configure.zcml +180 -0
  190. imio/smartweb/core/upgrades/profiles/1051_to_1052/actions.xml +20 -0
  191. imio/smartweb/core/upgrades/profiles/1052_to_1053/diff_tool.xml +8 -0
  192. imio/smartweb/core/upgrades/profiles/1052_to_1053/repositorytool.xml +9 -0
  193. imio/smartweb/core/upgrades/profiles/1052_to_1053/types/imio.smartweb.SectionHTML.xml +14 -0
  194. imio/smartweb/core/upgrades/profiles/1053_to_1054/registry.xml +39 -0
  195. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Collection.xml +13 -0
  196. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/File.xml +13 -0
  197. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Image.xml +13 -0
  198. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.BlockLink.xml +12 -0
  199. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.CirkwiView.xml +12 -0
  200. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.DirectoryView.xml +12 -0
  201. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.EventsView.xml +12 -0
  202. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Folder.xml +12 -0
  203. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.NewsView.xml +12 -0
  204. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Page.xml +12 -0
  205. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.PortalPage.xml +12 -0
  206. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Procedure.xml +12 -0
  207. imio/smartweb/core/upgrades/profiles/1055_to_1056/types/imio.smartweb.SectionFiles.xml +12 -0
  208. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.EventsView.xml +11 -0
  209. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.NewsView.xml +11 -0
  210. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionEvents.xml +11 -0
  211. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionNews.xml +11 -0
  212. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.cfg +9 -0
  213. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.xml +73 -0
  214. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.cfg +9 -0
  215. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.xml +118 -0
  216. imio/smartweb/core/upgrades/profiles/1058_to_1059/registry/linkedin-icon.xml +126 -0
  217. imio/smartweb/core/upgrades/profiles/1059_to_1060/registry/iadeliberation.xml +9 -0
  218. imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.Publication.xml +38 -0
  219. imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.SectionFiles.xml +11 -0
  220. imio/smartweb/core/upgrades/profiles/1060_to_1061/types.xml +4 -0
  221. imio/smartweb/core/upgrades/profiles/1060_to_1061/workflows.xml +6 -0
  222. imio/smartweb/core/utils.py +65 -3
  223. imio/smartweb/core/viewlets/configure.zcml +43 -0
  224. imio/smartweb/core/viewlets/external_content.py +13 -5
  225. imio/smartweb/core/viewlets/footer.pt +5 -0
  226. imio/smartweb/core/viewlets/footer.py +5 -0
  227. imio/smartweb/core/viewlets/htmx.py +15 -0
  228. imio/smartweb/core/viewlets/htmx_js_header.pt +59 -0
  229. imio/smartweb/core/viewlets/httpheaders.py +13 -0
  230. imio/smartweb/core/viewlets/odwb_widget_header.pt +19 -0
  231. imio/smartweb/core/viewlets/offcanvas.pt +2 -1
  232. imio/smartweb/core/viewlets/ogp_tag_header.pt +19 -0
  233. imio/smartweb/core/viewlets/ogptags.py +144 -0
  234. imio/smartweb/core/viewlets/social.py +23 -0
  235. imio/smartweb/core/vocabularies.py +66 -2
  236. imio/smartweb/core/vocabularies.zcml +18 -0
  237. imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
  238. imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
  239. imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
  240. imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
  241. imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -0
  242. imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -0
  243. imio/smartweb/core/webcomponents/build/css/884.smartweb-webcomponents-compiled.css +1 -0
  244. imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -0
  245. imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
  246. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +2 -0
  247. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +16 -0
  248. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +2 -0
  249. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js.LICENSE.txt +10 -0
  250. imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -0
  251. imio/smartweb/core/webcomponents/build/js/499.smartweb-webcomponents-compiled.js +2 -0
  252. imio/smartweb/core/webcomponents/build/js/{212.smartweb-webcomponents-compiled.js.LICENSE.txt → 499.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
  253. imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +2 -0
  254. imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
  255. imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js +2 -0
  256. imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
  257. imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -0
  258. imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -0
  259. imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js +2 -0
  260. imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js.LICENSE.txt +3 -0
  261. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  262. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
  263. imio/smartweb/core/webcomponents/package.json +46 -44
  264. imio/smartweb/core/webcomponents/src/assets/contentIcon/download.svg +1 -0
  265. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +160 -92
  266. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +250 -157
  267. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +113 -81
  268. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +394 -188
  269. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +26 -9
  270. imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +213 -100
  271. imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
  272. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +86 -0
  273. imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +615 -0
  274. imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +67 -0
  275. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +181 -103
  276. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +316 -182
  277. imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +275 -80
  278. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +136 -0
  279. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +104 -0
  280. imio/smartweb/core/webcomponents/src/components/Filters/IamData.jsx +42 -0
  281. imio/smartweb/core/webcomponents/src/components/Filters/MainFilter.scss +227 -0
  282. imio/smartweb/core/webcomponents/src/components/Filters/PublicTargetData.jsx +94 -0
  283. imio/smartweb/core/webcomponents/src/components/Filters/SelectStyles.js +58 -0
  284. imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.jsx +149 -0
  285. imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.scss +70 -0
  286. imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +139 -83
  287. imio/smartweb/core/webcomponents/src/components/News/News.jsx +141 -74
  288. imio/smartweb/core/webcomponents/src/components/News/News.scss +41 -15
  289. imio/smartweb/core/webcomponents/src/components/News/NewsCard/NewsCard.jsx +96 -0
  290. imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +309 -0
  291. imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +76 -0
  292. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +28 -14
  293. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +28 -14
  294. imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +51 -32
  295. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +29 -15
  296. imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +18 -13
  297. imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
  298. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +19 -6
  299. imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
  300. imio/smartweb/core/webcomponents/src/hooks/ScrollContext.jsx +3 -0
  301. imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -6
  302. imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
  303. imio/smartweb/core/webcomponents/src/index.scss +246 -211
  304. imio/smartweb/core/webcomponents/src/utils/Map.jsx +159 -0
  305. imio/smartweb/core/webcomponents/src/{components/Annuaire/ContactMap/ContactMap.scss → utils/Map.scss} +2 -2
  306. imio/smartweb/core/webcomponents/src/utils/translation.js +283 -14
  307. imio.smartweb.core-1.2.68-py3.11-nspkg.pth +2 -0
  308. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/METADATA +548 -3
  309. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/RECORD +317 -240
  310. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/WHEEL +1 -1
  311. imio/smartweb/core/webcomponents/build/assets/location-bla.1423bcce16ddcb21141430cac1428dc1.svg +0 -1
  312. imio/smartweb/core/webcomponents/build/assets/next-react-white.819cb069ac8eec300a9db6a7707712d6.svg +0 -1
  313. imio/smartweb/core/webcomponents/build/assets/next-react.17bc43ff4a6a86f4520f5782f6a89a72.svg +0 -1
  314. imio/smartweb/core/webcomponents/build/assets/search.57bdbf5b191499cd77514097d1c4972c.svg +0 -1
  315. imio/smartweb/core/webcomponents/build/css/267.smartweb-webcomponents-compiled.css +0 -1
  316. imio/smartweb/core/webcomponents/build/css/323.smartweb-webcomponents-compiled.css +0 -1
  317. imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +0 -1
  318. imio/smartweb/core/webcomponents/build/css/779.smartweb-webcomponents-compiled.css +0 -1
  319. imio/smartweb/core/webcomponents/build/js/144.smartweb-webcomponents-compiled.js +0 -2
  320. imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +0 -2
  321. imio/smartweb/core/webcomponents/build/js/267.smartweb-webcomponents-compiled.js +0 -1
  322. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +0 -2
  323. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
  324. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +0 -2
  325. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
  326. imio/smartweb/core/webcomponents/build/js/565.smartweb-webcomponents-compiled.js +0 -1
  327. imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js +0 -2
  328. imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
  329. imio/smartweb/core/webcomponents/build/js/779.smartweb-webcomponents-compiled.js +0 -1
  330. imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +0 -2
  331. imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js +0 -2
  332. imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -642
  333. imio/smartweb/core/webcomponents/pnpm-lock.yaml +0 -7066
  334. imio/smartweb/core/webcomponents/src/assets/facebook-news.svg +0 -1
  335. imio/smartweb/core/webcomponents/src/assets/location-bla.svg +0 -1
  336. imio/smartweb/core/webcomponents/src/assets/next-react.svg +0 -1
  337. imio/smartweb/core/webcomponents/src/assets/search.svg +0 -1
  338. imio/smartweb/core/webcomponents/src/assets/skeleton.svg +0 -1
  339. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactMap/ContactMap.jsx +0 -156
  340. imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/LoaderCss.jsx +0 -7
  341. imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/Skeleton.jsx +0 -20
  342. imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +0 -49
  343. imio/smartweb/core/webcomponents/src/components/Events/ContactContent/ContactContent.jsx +0 -400
  344. imio/smartweb/core/webcomponents/src/components/Events/ContactList/ContactList.jsx +0 -42
  345. imio/smartweb/core/webcomponents/src/components/Events/ContactMap/ContactMap.jsx +0 -156
  346. imio/smartweb/core/webcomponents/src/components/Events/Skeleton/Skeleton.jsx +0 -20
  347. imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +0 -78
  348. imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +0 -261
  349. imio/smartweb/core/webcomponents/src/components/News/ContactList/ContactList.jsx +0 -37
  350. imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.jsx +0 -127
  351. imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.scss +0 -4
  352. imio/smartweb/core/webcomponents/src/components/News/Skeleton/Skeleton.jsx +0 -20
  353. imio/smartweb/core/webcomponents/src/components/Search/Skeleton/Skeleton.jsx +0 -20
  354. imio.smartweb.core-1.2.12-py3.10-nspkg.pth +0 -3
  355. /imio/smartweb/core/{webcomponents/src/components/Events/ContactMap/ContactMap.scss → contents/publication/__init__.py} +0 -0
  356. /imio/smartweb/core/webcomponents/build/js/{144.smartweb-webcomponents-compiled.js.LICENSE.txt → 799.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  357. /imio/smartweb/core/webcomponents/build/js/{9.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  358. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.GPL +0 -0
  359. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.rst +0 -0
  360. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/namespace_packages.txt +0 -0
  361. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[884],{75954:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>P});var n=a(25602),l=a(8174),r=a(41665),s=a(64651),c=a(82198),i=a(86110),o=a(83198),m=a(54368),u=a.n(m),d=(a(55369),a(60711)),v=a.n(d),h=a(2494),f=a(57377),g=a(96745),p=a(42090),E=a(31540),b=a(64478);const w={fr:g.fr,nl:p.nl,de:E.de,en:b.b};const y=function(e){let{language:t,setDates:a}=e;const[l,r]=(0,n.useState)([null,null]),[s,c]=l,[i,m]=(0,n.useState)(n.createElement(o.HT,{text:"Quand"})),[d,g]=(0,n.useState)(),p=v()().format("YYYY-MM-DD"),E={all:n.createElement(o.HT,{text:"Toutes les dates"}),today:n.createElement(o.HT,{text:"Aujourd'hui"}),tomorrow:n.createElement(o.HT,{text:"Demain"}),thisWeekEnd:n.createElement(o.HT,{text:"Ce week-end"}),thisWeek:n.createElement(o.HT,{text:"Cette semaine"}),thisMonth:n.createElement(o.HT,{text:"Ce mois-ci"}),custom:n.createElement(o.HT,{text:"Personnalisé (Du ... au ...)"})};return(0,n.useState)((()=>{g(w[t])}),[]),n.createElement(n.Fragment,null,n.createElement("div",{className:"period-filter"},n.createElement(h.A,{className:"period-filter-toggler",onSelect:e=>{switch(e){case"all":a({"event_dates.query":[p]}),m(E.all);break;case"today":a({"event_dates.query":[p,p]}),m(E.today);break;case"tomorrow":const e=v()().add(1,"days").format("YYYY-MM-DD");a({"event_dates.query":[e,e]}),m(E.tomorrow);break;case"thisWeekEnd":const t=v()().endOf("week").format("YYYY-MM-DD"),n=v()().endOf("week").add(1,"days").format("YYYY-MM-DD");a({"event_dates.query":[t,n]}),m(E.thisWeekEnd);break;case"thisWeek":const l=v()().endOf("week").add(1,"days").format("YYYY-MM-DD");a({"event_dates.query":[p,l]}),m(E.thisWeek);break;case"thisMonth":const r=v()().endOf("month").format("YYYY-MM-DD");a({"event_dates.query":[p,r]}),m(E.thisMonth)}},title:i},n.createElement(f.A.Item,{eventKey:"all"},E.all),n.createElement(f.A.Item,{eventKey:"today"},E.today),n.createElement(f.A.Item,{eventKey:"tomorrow"},E.tomorrow),n.createElement(f.A.Item,{eventKey:"thisWeekEnd"},E.thisWeekEnd),n.createElement(f.A.Item,{eventKey:"thisWeek"},E.thisWeek),n.createElement(f.A.Item,{eventKey:"thisMonth"},E.thisMonth),n.createElement("div",{className:"perdiod-filter-range"},d&&n.createElement(o.rk,null,(e=>{let{translate:t,language:l}=e;return n.createElement(u(),{dateFormat:"dd/MM/yyyy",placeholderText:t({text:"Personnalisé (Du ... au ...)"}),selectsRange:!0,startDate:s,endDate:c,minDate:(new Date).setDate((new Date).getDate()+1),onChange:e=>{r(e),(null!==e[0]&&null!==e[1]||null==e[0]&&null==e[1])&&(e=>{r(e);const t=e.filter((e=>null!==e)).map((e=>v()(e).format("YYYY-MM-DD")));a({"event_dates.query":t}),e.every((e=>null===e))?m(E.all):m(E.custom)})(e)},isClearable:!0,locale:d})}))))))};var j=a(72668);const k=[{label:"Petit enfant",value:"i8gf49541q"},{label:"Petit enfant » 1 an",value:"tdtpdh546x"},{label:"Petit enfant » 2 ans",value:"19hb3u884v"},{label:"Petit enfant » 3 ans",value:"cl7oi9xaig"},{label:"Enfant",value:"omg40jn2yl"},{label:"Enfant » 4 ans",value:"a04ryxt74a"},{label:"Enfant » 5 ans",value:"2u0ugvi72u"},{label:"Enfant » 6 ans",value:"8btkbsp9ei"},{label:"Enfant » 7 ans",value:"gp881gyhmy"},{label:"Enfant » 8 ans",value:"me9vnw7vnk"},{label:"Enfant » 9 ans",value:"11ps76le1h"},{label:"Enfant » 10 ans",value:"rf2m1fbrot"},{label:"Enfant » 11 ans",value:"79qhii8mnf"},{label:"Adolescent",value:"ah0rbc2qr4"},{label:"Adolescent » 12 ans",value:"x6rmmxao6i"},{label:"Adolescent » 13 ans",value:"1pn83a9xkw"},{label:"Adolescent » 14 ans",value:"b8skpvhfka"},{label:"Adolescent » 15 ans",value:"snvxin8j4j"},{label:"Adolescent » 16 ans",value:"v4ty7v0hab"},{label:"Adolescent » 17 ans",value:"1x1ii6jxhu"},{label:"Adulte",value:"5lfbjyeea0"},{label:"Plus de 60 ans",value:"58cuuquwed"},{label:"Tout public",value:"ry275hefdy"}];var N=a(94274),x=a(68473);const A=function(e){let t=(0,r.Zp)();const[a,l]=(0,n.useState)(e.activeFilter),[s,m]=(0,n.useState)(null),[u,d]=(0,n.useState)(null),[h,f]=(0,n.useState)([]),[g,p]=(0,n.useState)(null),{response:E,error:b,isLoading:w}=(0,i.A)({method:"get",url:"",baseURL:e.url,headers:{Accept:"application/json"},params:a,paramsSerializer:{indexes:null}});(0,n.useEffect)((()=>{if(null!==E){const e=E.topics&&E.topics.map((e=>({value:e.token,label:e.title}))),t=E.category&&E.category.map((e=>({value:e.token,label:e.title,queryString:"category"}))),a=E.local_category&&E.local_category.map((e=>({value:e.token,label:e.title,queryString:"local_category"})));m(e),d(t),f(a)}}),[E]);const A=[{label:n.createElement(o.HT,{text:"Catégories spécifiques"}),options:h},{label:n.createElement(o.HT,{text:"Catégories"}),options:u}],M=(0,n.useCallback)((e=>{let{target:{name:t,value:a}}=e;a.length>2?l((e=>({...e,[t]:a})),[]):l((e=>{const a={...e},{[t]:n,...l}=a;return l}))})),D=(0,n.useCallback)(((e,t)=>{const a=t.name;e?l((t=>({...t,[a]:e.value})),[]):l((e=>{const t={...e},{[a]:n,...l}=t;return l}))})),_=(0,n.useCallback)(((e,t)=>{e?l((t=>({...t,[e.queryString]:e.value})),[]):l((e=>{const a={...e},{[t.removedValues[0].queryString]:n,...l}=a;return l}))})),C=(0,n.useRef)(!0);(0,n.useEffect)((()=>{C.current?C.current=!1:(t({pathname:"./",search:j.A.stringify(a)}),e.onChange(a))}),[a]);let T=s&&s.filter((t=>t.value===e.activeFilter.topics)),S=u&&u.filter((t=>t.value===e.activeFilter.category)),H=k&&k.filter((t=>t.value===e.activeFilter.topics)),Y=N.c&&N.c.filter((t=>t.value===e.activeFilter.topics));return(0,n.useEffect)((()=>{g&&l((e=>{if(g["event_dates.query"].length>1){const{"event_dates.range":t,...a}=g,n="min:max";return{...e,...a,"event_dates.range":n}}return g["event_dates.query"].every((e=>null===e))?{...e,"event_dates.query":[v()().format("YYYY-MM-DD")],"event_dates.range":"min"}:{...e,...g,"event_dates.range":"min"}}))}),[g]),n.createElement(n.Fragment,null,n.createElement("div",{className:"react-filters-menu"},n.createElement("div",{className:"react-filters-container"},n.createElement("form",{className:"r-filter r-filter-search",onSubmit:function(t){t.preventDefault(),e.onChange(a)}},n.createElement("div",{className:"relative"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement("input",{className:"input-custom-class",name:"SearchableText",type:"text",value:a.SearchableText,onChange:M,placeholder:t({text:"Recherche"})})})),n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"#9f9f9f",strokeWidth:"4","aria-hidden":"true",display:"block",overflow:"visible",style:{height:16,width:16},viewBox:"0 0 32 32"},n.createElement("path",{d:"M13 24a11 11 0 1 0 0-22 11 11 0 0 0 0 22zm8-3 9 9"})))),n.createElement("button",{className:"more-filter-btn collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapseOne","aria-expanded":"false","aria-controls":"collapseOne"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",style:{height:16,width:16},fill:"none",stroke:"currentColor",strokeWidth:"3","aria-hidden":"true",display:"block",overflow:"visible"},n.createElement("path",{d:"M7 16H3m26 0H15M29 6h-4m-8 0H3m26 20h-4M7 16a4 4 0 108 0 4 4 0 00-8 0zM17 6a4 4 0 108 0 4 4 0 00-8 0zm0 20a4 4 0 108 0 4 4 0 00-8 0zm0 0H3"}))),n.createElement("div",{className:"react-sep-menu"}),"False"===e.onlyPastEvents&&n.createElement("div",{className:"r-filter schedul-Filter"},n.createElement(y,{language:e.language,setDates:p})),n.createElement("div",{className:"react-sep-menu"}),n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement("div",{className:"r-filter top-filter facilities-Filter"},n.createElement(c.Ay,{styles:x.E,name:"category",className:"select-custom-no-border library-facilities",isClearable:!0,onChange:_,options:0===h.length?u&&u:A,placeholder:t({text:"Quoi"}),value:S&&S[0]}))})))),n.createElement("div",{id:"collapseOne",className:"accordion-collapse collapse more-filter-container ","aria-labelledby":"headingOne","data-bs-parent":"#accordionExample"},n.createElement("div",{className:"accordion-body"},n.createElement("div",{className:"r-filter collapse-filter topics-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(c.Ay,{styles:x.o,name:"topics",className:"library-topics",isClearable:!0,onChange:D,options:s&&s,placeholder:t({text:"Thématiques"}),value:T&&T[0]})}))),n.createElement("div",{className:"r-filter collapse-filter public-target-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(c.Ay,{styles:x.o,name:"taxonomy_event_public",className:"library-topics",isClearable:!0,onChange:D,options:k&&k,placeholder:t({text:"Public cible"}),value:H&&H[0]})}))),n.createElement("div",{className:"r-filter collapse-filter iam-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(c.Ay,{styles:x.o,name:"iam",className:"library-topics",isClearable:!0,onChange:D,options:N.c&&N.c,placeholder:t({text:"Profil"}),value:Y&&Y[0]})}))))))};var M=a(18874),D=a(91015);a(1053);const _=e=>{let{queryUrl:t,onChange:a,onlyPastEvents:l,contextAuthenticatedUser:s}=e,c=(0,r.Zp)();const{u:m,...u}=Object.assign({UID:j.A.parse((0,M.A)().toString()).u,fullobjects:1,"event_dates.query":v()().format("YYYY-MM-DD"),"event_dates.range":"True"===l?"max":"min"}),[d,h]=(0,n.useState)(u),[f,g]=(0,n.useState)({}),[p,E]=(0,n.useState)([]),[b,w]=(0,n.useState)(),[y,k]=(0,n.useState)(),[N,x]=(0,n.useState)(!1),A=(0,n.useRef)(),{response:_,error:C,isLoading:T}=(0,i.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:d},[]);(0,n.useEffect)((()=>{h(u)}),[j.A.parse((0,M.A)().toString()).u]),(0,n.useEffect)((()=>{null!==_&&(g(_.items[0]),_.items.length>1?_.items.map(((e,t)=>{const a=new Date;new Date(e.start)>=a&&E((t=>[...t,e.start]))})):E(null)),window.scrollTo({top:0,left:0,behavior:"instant"})}),[_]),(0,n.useEffect)((()=>{f.items&&f.items.length>0&&(w(f.items.filter((e=>"File"===e["@type"]))),k(f.items.filter((e=>"Image"===e["@type"]))))}),[f]),(0,n.useEffect)((()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&q()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),v().locale("be");const S=v().utc(f.start).format("DD-MM-YYYY"),H=v().utc(f.end).format("DD-MM-YYYY"),Y=v().utc(f.start).format("LT"),z=v().utc(f.end).format("LT"),P=v()(),L=p&&p.filter((e=>v()(e).isAfter(P)));let I="https://www.google.com/maps/dir/?api=1&destination="+f.street+"+"+f.number+"+"+f.complement+"+"+f.zipcode+"+"+f.city;I=I.replaceAll("+null","");const q=()=>{x(!1)};return n.createElement("div",{className:"envent-content r-content"},n.createElement("button",{type:"button",onClick:function(){c(".."),a(null)}},n.createElement(o.HT,{text:"Retour"})),"False"===s?n.createElement("a",{href:f["@id"],target:"_blank",title:"Editer la fiche",className:"edit-rest-elements edit-rest-elements-content"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-pencil-square",viewBox:"0 0 16 16"},n.createElement("path",{d:"M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"}),n.createElement("path",{"fill-rule":"evenodd",d:"M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"}))):"",n.createElement("article",null,n.createElement("header",{className:"r-content-header"},n.createElement("h2",{className:"r-content-title"},f.title),f.local_category?n.createElement("span",{className:"r-content-title-cat"},f.local_category.title):"",f.category?n.createElement("span",{className:"r-content-title-cat"},f.category.title):"",n.createElement("span",null)),n.createElement("figure",null,n.createElement("div",{className:"r-content-img",style:{backgroundImage:f.image_affiche_scale?"url("+f.image_affiche_scale+")":""}})),n.createElement("span",{className:"news-info-title"},n.createElement(o.HT,{text:"Infos pratiques"})),n.createElement("div",{className:"r-content-news-info"},n.createElement("div",{className:"r-content-news-info-container"},n.createElement("div",{className:"r-content-news-info-schedul"},n.createElement("div",{className:"icon-baseline"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin",viewBox:"0 0 19.41 19.41"},n.createElement("path",{d:"M16.09,2.74H14.35V.85a.44.44,0,0,0-.43-.44H12.47A.44.44,0,0,0,12,.85V2.74H7.38V.85A.44.44,0,0,0,7,.41H5.5a.44.44,0,0,0-.44.44V2.74H3.32A1.74,1.74,0,0,0,1.58,4.48V17.26A1.74,1.74,0,0,0,3.32,19H16.09a1.74,1.74,0,0,0,1.75-1.74V4.48A1.74,1.74,0,0,0,16.09,2.74Zm-.21,14.52H3.54A.22.22,0,0,1,3.32,17h0V6.22H16.09V17a.21.21,0,0,1-.21.22Z"}))),n.createElement("div",{ref:A,className:"dpinlb"},!p&&n.createElement("div",{className:"r-content-news-info--date"},S===H?n.createElement("div",null,f.whole_day?n.createElement("div",{className:"r-content-date-start"},n.createElement("span",null,n.createElement(o.HT,{text:"Le"})," "),n.createElement("div",{className:"r-time"},S)):f.open_end?n.createElement(n.Fragment,null,n.createElement("div",{className:"r-content-date-one-day"},n.createElement("div",{className:"r-content-date-start"},n.createElement("span",null,n.createElement(o.HT,{text:"Le"})," "),n.createElement("div",{className:"r-time"},S),n.createElement("span",null," ",n.createElement(o.HT,{text:"à"})," "),n.createElement("div",{className:"r-time-hours"},Y)))):n.createElement(n.Fragment,null,n.createElement("div",{className:"r-content-date-one-day"},n.createElement("div",{className:"r-content-date-start"},n.createElement("span",null,n.createElement(o.HT,{text:"Le"})," "),n.createElement("div",{className:"r-time"},S)),n.createElement("div",{className:"r-content-date-start-hours"},n.createElement("span",null,n.createElement(o.HT,{text:"de"})," "),n.createElement("div",{className:"r-time-hours"},Y),n.createElement("span",null," ",n.createElement(o.HT,{text:"à"})," "),n.createElement("div",{className:"r-time-hours"},z))))):n.createElement("div",{className:"r-content-date-du-au"},n.createElement("div",{className:"r-content-date-start"},n.createElement("span",null,"Du "),n.createElement("div",{className:"r-time"},S)),n.createElement("div",{className:"r-content-date-end"},n.createElement("span",null," au "),n.createElement("div",{className:"r-time"},H)))),p&&n.createElement("a",{onClick:()=>{x(!0)},className:"recurence-schedul",role:"button","aria-expanded":"false"},n.createElement("p",null,f.whole_day?v()(L[0]).format("DD-MM-YYYY"):n.createElement(n.Fragment,null,v()(L[0]).format("DD-MM-YYYY"),n.createElement("div",{className:"r-content-recur-start-hours"},n.createElement("span",null,n.createElement(o.HT,{text:"de"})," "),n.createElement("div",{className:"r-time-hours"},Y),n.createElement("span",null," ",n.createElement(o.HT,{text:"à"})," "),n.createElement("div",{className:"r-time-hours"},z))),n.createElement("span",{className:"recurence-schedul-more"},"Prochaines dates",n.createElement("i",{class:"bi bi-arrow-down-short"}))),n.createElement("div",{className:N?"recurence-modal-display":"recurence-modal-hide"},n.createElement("ul",null,L.map(((e,t)=>n.createElement("li",{key:t},v()(e).format("DD-MM-YYYY"))))))))),n.createElement("div",{className:"r-content-news-info-aera"},f.street?n.createElement("div",{className:"icon-baseline"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.41 19.41"},n.createElement("path",{d:"M9,18.34C3.9,10.94,3,10.18,3,7.45a6.75,6.75,0,0,1,13.49,0c0,2.73-.94,3.49-6,10.89a.85.85,0,0,1-1.17.22A.77.77,0,0,1,9,18.34Zm.7-8.07A2.82,2.82,0,1,0,6.89,7.45a2.83,2.83,0,0,0,2.82,2.82Z"}))):"",n.createElement("div",{className:"dpinlb"},n.createElement("div",{className:"r-content-news-info--itinirary"},f.street?n.createElement("a",{href:I,target:"_blank"},n.createElement("span",null,"Itinéraire")):""),!0===f.reduced_mobility_facilities?n.createElement("div",{className:"r-content-news-info--reduced"},n.createElement("span",null,n.createElement(o.HT,{text:"Accessible aux PMR"}))):"",!0===f.free_entry?n.createElement("div",{className:"r-content-news-info--entry"},n.createElement("span",null,n.createElement(o.HT,{text:"Gratuit"}))):"")),(f.contact_name||f.contact_phone||f.contact_email)&&n.createElement("div",{className:"r-content-news-info-contact"},n.createElement("div",{className:"dpinlb"},n.createElement("div",{className:"r-content-news-info--name"},n.createElement("span",null,f.contact_name)),n.createElement("div",{className:"r-content-news-info--phone"},n.createElement("span",null,n.createElement("a",{href:"tel:".concat(f.contact_phone)},f.contact_phone))),n.createElement("div",{className:"r-content-news-info--email"},n.createElement("a",{href:"mailto:".concat(f.contact_email)},f.contact_email)))),null===f.event_url&&null===f.online_participation&&null===f.video_url?"":n.createElement("div",{className:"r-content-news-info-link"},n.createElement("div",{className:"icon-baseline"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.41 19.41"},n.createElement("path",{d:"M16.36,2.22H3.06a1.3,1.3,0,0,0-1.3,1.3h0v9a1.3,1.3,0,0,0,1.3,1.3H7.52v1.74h-.7a.8.8,0,0,0,0,1.6h5.79a.8.8,0,0,0,0-1.6h-.7V13.85h4.45a1.31,1.31,0,0,0,1.3-1.3v-9A1.3,1.3,0,0,0,16.36,2.22Zm-1.9,10.83a.37.37,0,1,1,.36-.37h0a.36.36,0,0,1-.36.36Zm1.6.08a.45.45,0,1,1,.44-.45h0a.44.44,0,0,1-.44.45h0Zm.53-1.35H2.82V3.52a.23.23,0,0,1,.23-.23H16.36a.23.23,0,0,1,.23.23h0v8.27Z"}))),n.createElement("div",{className:"dpinlb"},null===f.event_url?"":n.createElement("div",{className:"r-content-news-info-event_link"},n.createElement("a",{href:f.event_url},n.createElement(o.HT,{text:"Lien de l'événement"}))),null===f.online_participation?"":n.createElement("div",{className:"r-content-news-info--online_participation"},n.createElement("a",{href:f.online_participation},n.createElement(o.HT,{text:"Participation en ligne"}))),null===f.video_url?"":n.createElement("div",{className:"r-content-news-info--video"},n.createElement("a",{href:f.video_url},n.createElement(o.HT,{text:"Lien vers la vidéo"}))))),null===f.facebook&&null===f.instagram&&null===f.twitter?"":n.createElement("div",{className:"r-content-news-info-social"},n.createElement("ul",null,f.facebook?n.createElement("li",null,n.createElement("a",{href:f.facebook,target:"_blank"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"800",width:"1200",viewBox:"-204.79995 -341.33325 1774.9329 2047.9995"},n.createElement("path",{d:"M1365.333 682.667C1365.333 305.64 1059.693 0 682.667 0 305.64 0 0 305.64 0 682.667c0 340.738 249.641 623.16 576 674.373V880H402.667V682.667H576v-150.4c0-171.094 101.917-265.6 257.853-265.6 74.69 0 152.814 13.333 152.814 13.333v168h-86.083c-84.804 0-111.25 52.623-111.25 106.61v128.057h189.333L948.4 880H789.333v477.04c326.359-51.213 576-333.635 576-674.373",fill:"#100f0d"}),n.createElement("path",{d:"M948.4 880l30.267-197.333H789.333V554.609C789.333 500.623 815.78 448 900.584 448h86.083V280s-78.124-13.333-152.814-13.333c-155.936 0-257.853 94.506-257.853 265.6v150.4H402.667V880H576v477.04a687.805 687.805 0 00106.667 8.293c36.288 0 71.91-2.84 106.666-8.293V880H948.4",fill:"#fff"})))):"",f.instagram?n.createElement("li",null,n.createElement("a",{href:f.instagram,target:"_blank"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"800",width:"1200",viewBox:"-100.7682 -167.947 873.3244 1007.682"},n.createElement("g",{fill:"#100f0d"},n.createElement("path",{d:"M335.895 0c-91.224 0-102.663.387-138.49 2.021-35.752 1.631-60.169 7.31-81.535 15.612-22.088 8.584-40.82 20.07-59.493 38.743-18.674 18.673-30.16 37.407-38.743 59.495C9.33 137.236 3.653 161.653 2.02 197.405.386 233.232 0 244.671 0 335.895c0 91.222.386 102.661 2.02 138.488 1.633 35.752 7.31 60.169 15.614 81.534 8.584 22.088 20.07 40.82 38.743 59.495 18.674 18.673 37.405 30.159 59.493 38.743 21.366 8.302 45.783 13.98 81.535 15.612 35.827 1.634 47.266 2.021 138.49 2.021 91.222 0 102.661-.387 138.488-2.021 35.752-1.631 60.169-7.31 81.534-15.612 22.088-8.584 40.82-20.07 59.495-38.743 18.673-18.675 30.159-37.407 38.743-59.495 8.302-21.365 13.981-45.782 15.612-81.534 1.634-35.827 2.021-47.266 2.021-138.488 0-91.224-.387-102.663-2.021-138.49-1.631-35.752-7.31-60.169-15.612-81.534-8.584-22.088-20.07-40.822-38.743-59.495-18.675-18.673-37.407-30.159-59.495-38.743-21.365-8.302-45.782-13.981-81.534-15.612C438.556.387 427.117 0 335.895 0zm0 60.521c89.686 0 100.31.343 135.729 1.959 32.75 1.493 50.535 6.965 62.37 11.565 15.68 6.094 26.869 13.372 38.622 25.126 11.755 11.754 19.033 22.944 25.127 38.622 4.6 11.836 10.072 29.622 11.565 62.371 1.616 35.419 1.959 46.043 1.959 135.73 0 89.687-.343 100.311-1.959 135.73-1.493 32.75-6.965 50.535-11.565 62.37-6.094 15.68-13.372 26.869-25.127 38.622-11.753 11.755-22.943 19.033-38.621 25.127-11.836 4.6-29.622 10.072-62.371 11.565-35.413 1.616-46.036 1.959-135.73 1.959-89.694 0-100.315-.343-135.73-1.96-32.75-1.492-50.535-6.964-62.37-11.564-15.68-6.094-26.869-13.372-38.622-25.127-11.754-11.753-19.033-22.943-25.127-38.621-4.6-11.836-10.071-29.622-11.565-62.371-1.616-35.419-1.959-46.043-1.959-135.73 0-89.687.343-100.311 1.959-135.73 1.494-32.75 6.965-50.535 11.565-62.37 6.094-15.68 13.373-26.869 25.126-38.622 11.754-11.755 22.944-19.033 38.622-25.127 11.836-4.6 29.622-10.072 62.371-11.565 35.419-1.616 46.043-1.959 135.73-1.959"}),n.createElement("path",{d:"M335.895 447.859c-61.838 0-111.966-50.128-111.966-111.964 0-61.838 50.128-111.966 111.966-111.966 61.836 0 111.964 50.128 111.964 111.966 0 61.836-50.128 111.964-111.964 111.964zm0-284.451c-95.263 0-172.487 77.224-172.487 172.487 0 95.261 77.224 172.485 172.487 172.485 95.261 0 172.485-77.224 172.485-172.485 0-95.263-77.224-172.487-172.485-172.487m219.608-6.815c0 22.262-18.047 40.307-40.308 40.307-22.26 0-40.307-18.045-40.307-40.307 0-22.261 18.047-40.308 40.307-40.308 22.261 0 40.308 18.047 40.308 40.308"}))))):"",f.twitter?n.createElement("li",null,n.createElement("a",{href:f.twitter,target:"_blank"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"800",width:"1200",viewBox:"-44.7006 -60.54775 387.4052 363.2865"},n.createElement("path",{fill:"#000",d:"M93.719 242.19c112.46 0 173.96-93.168 173.96-173.96 0-2.646-.054-5.28-.173-7.903a124.338 124.338 0 0030.498-31.66c-10.955 4.87-22.744 8.148-35.11 9.626 12.622-7.57 22.313-19.543 26.885-33.817a122.62 122.62 0 01-38.824 14.841C239.798 7.433 223.915 0 206.326 0c-33.764 0-61.144 27.381-61.144 61.132 0 4.798.537 9.465 1.586 13.941-50.815-2.557-95.874-26.886-126.03-63.88a60.977 60.977 0 00-8.279 30.73c0 21.212 10.794 39.938 27.208 50.893a60.685 60.685 0 01-27.69-7.647c-.009.257-.009.507-.009.781 0 29.61 21.075 54.332 49.051 59.934a61.218 61.218 0 01-16.122 2.152 60.84 60.84 0 01-11.491-1.103c7.784 24.293 30.355 41.971 57.115 42.465-20.926 16.402-47.287 26.171-75.937 26.171-4.929 0-9.798-.28-14.584-.846 27.059 17.344 59.189 27.464 93.722 27.464"})))):""))),n.createElement("div",{className:"r-content-news-info-action"},f.ticket_url?n.createElement("div",{className:"r-content-booking"},n.createElement("a",{href:f.ticket_url},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.41 19.41"},n.createElement("circle",{cx:"13.03",cy:"14.61",r:"0.63",fill:"fill:#fff"}),n.createElement("circle",{cx:"11.59",cy:"6.52",r:"0.63",fill:"fill:#fff"}),n.createElement("path",{d:"M17.11,11.47h.62V7.71h-1.6a1.25,1.25,0,0,1-1.25-1.25,1.27,1.27,0,0,1,.67-1.12l.54-.28-1.6-3.39-12.8,6h0v3.76h.63a1.26,1.26,0,0,1,0,2.51H1.68v3.76H17.73V14h-.62a1.26,1.26,0,1,1,0-2.51Zm-6.9-6.4a.63.63,0,0,0,1.14-.53l2.54-1.2.58,1.23A2.52,2.52,0,0,0,14,7.71H4.63Zm6.27,10.08v1.34H13.66a.63.63,0,1,0-1.26,0H2.93V15.16a2.51,2.51,0,0,0,0-4.86V9H12.4a.63.63,0,0,0,1.26,0h2.82V10.3a2.51,2.51,0,0,0,0,4.86Z",fill:"fill:#fff"}),n.createElement("circle",{cx:"13.03",cy:"10.85",r:"0.63",fill:"fill:#fff"}),n.createElement("circle",{cx:"13.03",cy:"12.73",r:"0.63",fill:"fill:#fff"})),n.createElement(o.HT,{text:"Billetterie"}))):"")),n.createElement("div",{className:"r-content-description"},n.createElement(D.o,null,f.description)),n.createElement("div",{className:"r-content-text",dangerouslySetInnerHTML:{__html:f.text&&f.text.data}}),b&&n.createElement("div",{className:"r-content-files"},b.map(((e,t)=>n.createElement("div",{key:t,className:"r-content-file"},n.createElement("a",{href:e.targetUrl,className:"r-content-file-link",rel:"nofollow"},n.createElement("span",{className:"r-content-file-title"},e.title),n.createElement("span",{className:"r-content-file-icon"},n.createElement("svg",{width:"21",height:"21",viewBox:"0 0 24 24",fill:"none",stroke:"#8899a4","stroke-width":"2","stroke-linecap":"square","stroke-linejoin":"arcs"},n.createElement("path",{d:"M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5"}))," ")))))),y&&n.createElement("div",{className:"r-content-gallery"},n.createElement("div",{className:"spotlight-group flexbin r-content-gallery"},y.map(((e,t)=>n.createElement("a",{key:t,className:"spotlight",href:e.image_full_scale},n.createElement("img",{src:e.image_preview_scale,alt:""})))))),f.topics&&f.topics.length>0&&n.createElement("div",{className:"r-content-topics"},f.topics.map(((e,t)=>n.createElement("a",{key:t},n.createElement("span",null,e.title)))))))},C=e=>{let{item:t,showCategoriesOrTopics:a,contextAuthenticatedUser:l}=e;v().locale("be");const r=t.title&&t.title,s=v().utc(t.start).format("DD-MM-YYYY"),c=v().utc(t.end).format("DD-MM-YYYY");return n.createElement(n.Fragment,null,"False"===l?n.createElement("a",{href:t["@id"],target:"_blank",title:"Editer la fiche",className:"edit-rest-elements"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-pencil-square",viewBox:"0 0 16 16"},n.createElement("path",{d:"M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"}),n.createElement("path",{"fill-rule":"evenodd",d:"M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"}))):"",n.createElement("div",{className:"r-list-item"},n.createElement("div",{className:t.image_vignette_scale?"r-item-img":"r-item-img r-item-img-placeholder",style:{backgroundImage:t.image_vignette_scale?"url("+t.image_vignette_scale+")":""}}),n.createElement("div",{className:"r-item-text"},s&&n.createElement("span",{className:"r-item-date"},s===c?s:n.createElement(n.Fragment,null,s," ",n.createElement(o.HT,{text:"au"})," ",c)),n.createElement("span",{className:"r-item-title"},r),"topic"===a?t.topics&&t.topics[0]&&n.createElement("span",{className:"r-item-categorie"},t.topics[0].title):"category"===a?t.local_category?n.createElement("span",{className:"r-item-categorie"},t.local_category.title):t.category&&n.createElement("span",{className:"r-item-categorie"},t.category.title):"")))};var T=a(75681),S=a.n(T);const H=e=>{let{itemsArray:t,onChange:a,onHover:r,showCategoriesOrTopics:c,contextAuthenticatedUser:i}=e;const{scrollPos:o,updateScrollPos:m}=(0,n.useContext)(s.z);function u(e){r(e)}return(0,n.useEffect)((()=>{window.scrollTo({top:o,left:0,behavior:"instant"})}),[t]),n.createElement(n.Fragment,null,n.createElement("ul",{className:"r-result-list event-result-list"},t.map(((e,t)=>n.createElement("li",{key:t,className:"r-list-item-group",onMouseEnter:()=>u(e.UID),onMouseLeave:()=>u(null),onClick:()=>{return t=e.UID,a(t),void m(window.scrollY);var t}},n.createElement(l.N_,{className:"r-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+S()(e.title).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.UID),state:{idItem:e.UID}}}),n.createElement(C,{item:e,showCategoriesOrTopics:c,key:e.created,contextAuthenticatedUser:i}))))))};var Y=a(81499),z=a(48743);function P(e){const[t,a]=(0,n.useState)(0);return n.createElement(l.Kd,{basename:e.viewPath},n.createElement(o.Kq,{language:e.currentLanguage,translation:z.A},n.createElement(s.z.Provider,{value:{scrollPos:t,updateScrollPos:e=>{a(e)}}},n.createElement(L,{queryFilterUrl:e.queryFilterUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize,displayMap:e.displayMap,onlyPastEvents:e.onlyPastEvents,language:e.currentLanguage,showCategoriesOrTopics:e.showCategoriesOrTopics,contextAuthenticatedUser:e.contextAuthenticatedUser}))))}function L(e){const{u:t,...a}=Object.assign({b_start:0,fullobjects:1,"event_dates.query":[v()().format("YYYY-MM-DD")],"event_dates.range":"True"===e.onlyPastEvents?"max":"min"},j.A.parse((0,M.A)().toString())),{scrollPos:l,updateScrollPos:c}=(0,n.useContext)(s.z),[m,u]=(0,n.useState)([]),[d,h]=(0,n.useState)([]),[f,g]=(0,n.useState)(null),[p,E]=(0,n.useState)(null),[b,w]=(0,n.useState)(a),[y,k]=(0,n.useState)(0),[N,x]=(0,n.useState)(!1),D="True"===e.displayMap,{response:C,error:T,isLoading:S,isMore:z}=(0,i.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:b,paramsSerializer:{indexes:null},load:N},[]);(0,n.useEffect)((()=>{null!==C&&(u(z?e=>[...e,...C.items]:C.items),h(C.items_total))}),[C]);const P=e=>{g(e)},L=e=>{E(e)};(0,n.useEffect)((()=>{w((e=>({...e,b_start:y})))}),[y]);const I=(0,n.useRef)(),[q,U]=n.useState({height:0}),[F,V]=(0,n.useState)(0);let O,R;(0,n.useEffect)((()=>{U({height:I.current.clientHeight}),V(I.current.offsetTop)}),[I]),m&&m.length>0?(O=n.createElement(H,{onChange:P,itemsArray:m,onHover:L,showCategoriesOrTopics:e.showCategoriesOrTopics,contextAuthenticatedUser:e.contextAuthenticatedUser}),R=n.createElement(Y.A,{headerHeight:q.height+F,clickId:f,hoverId:p,items:m,queryUrl:e.queryUrl})):S||(O=n.createElement("p",null,n.createElement(o.HT,{text:"Aucun événement n'a été trouvé"})));const W=n.createElement("div",{className:"lds-roller-container"},n.createElement("div",{className:"lds-roller"},n.createElement("div",null),n.createElement("div",null),n.createElement("div",null),n.createElement("div",null),n.createElement("div",null),n.createElement("div",null),n.createElement("div",null),n.createElement("div",null)));return n.createElement("div",{className:"ref ".concat(D?"view-map":"no-map")},n.createElement("div",{className:"r-result-filter-container",ref:I,style:{top:F}},n.createElement("div",{id:"r-result-filter",className:"r-result-filter container annuaire-result-filter"},n.createElement(A,{url:e.queryFilterUrl,activeFilter:b,onChange:e=>{x(!1),k((()=>0)),w(e),window.scrollTo(0,0)},language:e.language,onlyPastEvents:e.onlyPastEvents}),e.proposeUrl&&n.createElement("div",{className:"r-add-event"},n.createElement("a",{target:"_blank",href:e.proposeUrl},n.createElement(o.HT,{text:"Proposer un événement"}),n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-plus-circle",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),n.createElement("path",{d:"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"})))))),n.createElement(r.BV,null,n.createElement(r.qh,{exact:!0,path:"/",element:n.createElement("div",{className:"r-wrapper container r-annuaire-wrapper"},n.createElement("div",{className:"r-result r-annuaire-result"},d>0?n.createElement("p",{className:"r-results-numbers"},n.createElement("span",null,d),d>1?n.createElement(o.HT,{text:"événements trouvés"}):n.createElement(o.HT,{text:"événement trouvé"})):n.createElement("p",{className:"r-results-numbers"},n.createElement(o.HT,{text:"Aucun résultat"})),n.createElement("div",null,O),n.createElement("div",{className:"r-load-more"},d-e.batchSize>y?n.createElement("div",null,n.createElement("span",{className:"no-more-result"},S?W:""),n.createElement("button",{onClick:()=>{c(window.scrollY),k((t=>t+parseInt(e.batchSize))),x(!0)},className:"btn-grad"},S?n.createElement(o.HT,{text:"Chargement..."}):n.createElement(o.HT,{text:"Plus de résultats"}))):n.createElement("span",{className:"no-more-result"},S?W:""))),D&&n.createElement("div",{className:"r-map annuaire-map",style:{top:q.height+F,height:"calc(100vh-"+q.height+F}},R))}),n.createElement(r.qh,{path:"/:name",element:n.createElement("div",{className:"r-wrapper container r-annuaire-wrapper"},n.createElement("div",{className:"r-result r-annuaire-result"},n.createElement(_,{queryUrl:e.queryUrl,onChange:P,onlyPastEvents:e.onlyPastEvents,contextAuthenticatedUser:e.contextAuthenticatedUser})),D&&n.createElement("div",{className:"r-map annuaire-map",style:{top:q.height+F,height:"calc(100vh-"+q.height+F}},R))})))}},94274:(e,t,a)=>{"use strict";a.d(t,{c:()=>n});const n=[{label:"Commerçant",value:"merchant"},{label:"Demandeur d'emploi",value:"job_seeker"},{label:"En situation de handicap",value:"disabled_person"},{label:"Jeune",value:"young"},{label:"Journaliste",value:"journalist"},{label:"Nouvel arrivant",value:"newcomer"},{label:"Organisateur d'événement",value:"event_planner"},{label:"Parent",value:"parent"},{label:"Senior",value:"elder"},{label:"Touriste",value:"tourist"}]},68473:(e,t,a)=>{"use strict";a.d(t,{E:()=>n,o:()=>l});const n={control:e=>({...e,backgroundColor:"white",borderColor:"transparent",borderRadius:"10px",minWidth:"150px",height:"40px"}),menu:e=>({...e,width:"max-content",maxWidth:"250px"}),placeholder:e=>({...e,color:"000",fontWeight:"bold",fontSize:"14px",letterSpacing:"1.4px"}),indicators:e=>({...e,color:"blue"}),option:e=>({...e})},l={control:e=>({...e,backgroundColor:"white",borderRadius:"10px",height:"30px",minWidth:"150px"}),placeholder:e=>({...e,color:"000",fontWeight:"bold",fontSize:"12px",letterSpacing:"1.4px"}),menu:e=>({...e,width:"max-content",maxWidth:"250px"}),option:(e,t)=>{let{data:a,isDisabled:n,isFocused:l,isSelected:r}=t;return{...e}}}},64651:(e,t,a)=>{"use strict";a.d(t,{z:()=>n});const n=(0,a(25602).createContext)()},86110:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(25602),l=a(37178);const r=e=>{const[t,a]=(0,n.useState)(null),[r,s]=(0,n.useState)(""),[c,i]=(0,n.useState)(!0),[o,m]=(0,n.useState)(!1),u=new AbortController;return(0,n.useEffect)((()=>((async e=>{if(i(!0),e.load?m(!0):m(!1),0!=Object.keys(e.params).length)try{const t=await l.A.request(e);a(t.data),i(!1),s(null)}catch(e){s(e)}else a(null)})({...e,signal:u.signal}),()=>u.abort())),[e.params]),{response:t,error:r,isLoading:c,isMore:o}}},18874:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(41665);const l=function(){return new URLSearchParams((0,n.zy)().search)}},81499:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(25602),l=a(28009),r=a(77059),s=a(60055),c=a(69780),i=a(16545),o=a(18874),m=a(97284),u=a.n(m);const d=a.p+"assets/pin-react.fda934b5daf26dd4da2a71a7e7e44431.svg";const v=a.p+"assets/pin-react-active.07d154037a15be5525b823fdc626cf29.svg";var h=a(8174),f=a(75681),g=a.n(f),p=a(72668);function E(e){let{activeItem:t,arrayOfLatLngs:a}=e;const n=(0,l.ko)();if(t){const e=[];e.push(t.geolocation.latitude),e.push(t.geolocation.longitude),n.setView(e,15)}else{let e=new(u().LatLngBounds)(a);n.fitBounds(e)}return null}const b=function(e){const[t,a]=(0,n.useState)(null),[l,m]=(0,n.useState)([]),[f,b]=(0,n.useState)(null),{u:w,...y}=Object.assign({UID:p.A.parse((0,o.A)().toString()).u});(0,n.useEffect)((()=>{const t=e.items.filter((e=>e.geolocation.latitude&&50.4989185!==e.geolocation.latitude&&4.7184485!==e.geolocation.longitude));m(t)}),[e]);const j=e=>new(u().Icon)({iconUrl:e,iconSize:[29,37]}),k=t=>t===e.clickId||t===e.hoverId?999:1;(0,n.useEffect)((()=>{var e=l&&l.filter((e=>e.UID===y.UID));a(e[0])}),[l]),(0,n.useEffect)((()=>{if(l.length>0){let e=[];l.map(((t,a)=>{let n=t.geolocation.latitude,l=t.geolocation.longitude;e.push([n,l])})),b(e)}}),[l]);const N=l.map(((t,a)=>{return n.createElement(r.p,{key:a,icon:(l=t.UID,l===y.UID||l===e.hoverId?j(v):j(d)),zIndexOffset:k(t.UID),position:[t.geolocation?t.geolocation.latitude:"",t.geolocation?t.geolocation.longitude:""],eventHandlers:{mouseover:e=>{}}},n.createElement(s.z,{closeButton:!1},n.createElement(h.N_,{className:"r-map-popup",style:{textDecoration:"none"},to:{pathname:"/"+g()(t.title).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(t.UID),state:{idItem:t.UID}}},n.createElement("span",{className:"r-map-popup-title"},t.title),n.createElement("p",{className:"r-map-popup-category"},t.category&&t.category.title))));var l}));return n.createElement("div",null,n.createElement(c.W,{style:{height:"calc(100vh - ".concat(e.headerHeight,"px)"),minHeight:"600px"},center:[50.85034,4.35171],zoom:15},n.createElement(i.e,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),null!=f?n.createElement(E,{activeItem:t,activeItemUID:y.UID,arrayOfLatLngs:f&&f}):"",l&&N))}},48743:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});const n={Publié:{en:"Published",fr:"Publié",de:"Veröffentlicht",nl:"Gepubliceerd"},Actualisé:{en:"Updated",fr:"Actualisé",de:"Aktualisiert",nl:"Bijgewerkt"},Événements:{en:"Events",fr:"Événements",de:"Veranstaltungen",nl:"Evenementen"},Actualités:{en:"News",fr:"Actualités",de:"Nachrichten",nl:"Nieuws"},Contacts:{en:"Contacts",fr:"Contacts",de:"Kontakte",nl:"Contacten"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques",de:"Praktische Informationen",nl:"Praktische informatie"},"Chargement...":{en:"Loading",fr:"Chargement...",de:"Laden",nl:"Laden..."},Recherche:{en:"Search",fr:"Recherche",de:"Suche",nl:"Zoeken"},Thématiques:{en:"Themes",fr:"Thématiques",de:"Themen",nl:"Thema's"},"Je suis":{en:"I am",fr:"Je suis",de:"Ich bin",nl:"Ik ben"},Catégories:{en:"Categories",fr:"Catégories",de:"Kategorien",nl:"Categorieën"},"Catégories locale":{en:"Local categories",fr:"Catégories locale",de:"Lokale Kategorien",nl:"Lokale categorieën"},"Catégories spécifiques":{en:"Specific categories",fr:"Catégories spécifiques",de:"Spezifische Kategorien",nl:"Specifieke categorieën"},Quoi:{en:"What",fr:"Quoi",de:"Was",nl:"Wat"},Facilités:{en:"Facilities",fr:"Facilités",de:"Einrichtungen",nl:"Faciliteiten"},"Plus de résultats":{en:"More results",fr:"Plus de résultats",de:"Mehr Ergebnisse",nl:"Meer resultaten"},"Aucun résultat":{en:"No result",fr:"Aucun résultat",de:"Kein Ergebnis",nl:"Geen resultaat"},Résultats:{en:"Results",fr:"Résultats",de:"Ergebnisse",nl:"Resultaten"},Retour:{en:"Return",fr:"Retour",de:"Zurück",nl:"Terug"},Téléchargements:{en:"Downloads",fr:"Téléchargements",de:"Downloads",nl:"Downloads"},Billetterie:{en:"Ticketing",fr:"Billetterie",de:"Tickets",nl:"Ticketverkoop"},"Lien vers la vidéo":{en:"Link to video",fr:"Lien vers la vidéo",de:"Link zum Video",nl:"Link naar video"},"Participation en ligne":{en:"Join online",fr:"Participation en ligne",de:"Online teilnehmen",nl:"Doe online mee"},"Actualités trouvées":{en:" News found",fr:" Actualités trouvées",de:" Nachrichten gefunden",nl:" Nieuws gevonden"},"Actualité trouvée":{en:" News found",fr:" Actualité trouvée",de:" Nachricht gefunden",nl:" Nieuws gevonden"},"Aucune actualité n'a été trouvée":{en:"No news was found",fr:"Aucune actualité n'a été trouvée",de:"Keine Nachrichten gefunden",nl:"Geen nieuws gevonden"},"Proposer une actualité":{en:"Suggest a news",fr:"Proposer une actualité",de:"Nachricht vorschlagen",nl:"Nieuws voorstellen"},"événements trouvés":{en:" Events found",fr:" Événements trouvés",de:" Veranstaltungen gefunden",nl:" Evenementen gevonden"},"événement trouvé":{en:" Event found",fr:" Événement trouvé",de:" Veranstaltung gefunden",nl:" Evenement gevonden"},Gratuit:{en:"Free",fr:"Gratuit",de:"Kostenlos",nl:"Gratis"},"Aucun événement n'a été trouvé":{en:"No event was found",fr:"Aucun événement n'a été trouvé",de:"Keine Veranstaltungen gefunden",nl:"Geen evenement gevonden"},"Proposer un événement":{en:"Suggest a event",fr:"Proposer un événement",de:"Veranstaltung vorschlagen",nl:"Evenement voorstellen"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques",de:"Praktische Informationen",nl:"Praktische informatie"},"Accessible aux PMR":{en:"Accessibility for PRM",fr:"Accessible aux PMR",de:"Barrierefreiheit für PMR",nl:"Toegankelijk voor PRM"},"Lien de l'événement":{en:"Event link",fr:"Lien de l'événement",de:"Veranstaltungslink",nl:"Evenement link"},"contacts trouvés":{en:" Contact found",fr:" Contacts trouvés",de:" Kontakt gefunden",nl:" Contact gevonden"},"contact trouvé":{en:" Contact found",fr:" Contact trouvé",de:" Kontakt gefunden",nl:" Contact gevonden"},"Aucun contact n'a été trouvé":{en:"No contact was found",fr:"Aucun contact n'a été trouvé",de:"Kein Kontakt gefunden",nl:"Geen contact gevonden"},"Proposer un contact":{en:"Suggest a contact",fr:"Proposer un contact",de:"Kontakt vorschlagen",nl:"Contact voorstellen"},Quand:{en:"When",fr:"Quand",de:"Wann",nl:"Wanneer"},"Toutes les dates":{en:"All dates",fr:"Toutes les dates",de:"Alle Daten",nl:"Alle data"},"Aujourd'hui":{en:"Today",fr:"Aujourd'hui",de:"Heute",nl:"Vandaag"},Demain:{en:"Tomorrow",fr:"Demain",de:"Morgen",nl:"Morgen"},"Ce week-end":{en:"This weekend",fr:"Ce week-end",de:"Dieses Wochenende",nl:"Dit weekend"},"Cette semaine":{en:"This week",fr:"Cette semaine",de:"Diese Woche",nl:"Deze week"},"Ce mois-ci":{en:"This month",fr:"Ce mois-ci",de:"Diesen Monat",nl:"Deze maand"},"Personnalisé (Du ... au ...)":{en:"Custom (From ... to ...)",fr:"Personnalisé (Du ... au ...)",de:"Benutzerdefiniert (Von ... bis ...)",nl:"Aangepast (Van ... tot ...)"},Le:{en:"On",fr:"Le",de:"Am",nl:"Op"},de:{en:"of",fr:"de",de:"von",nl:"van"},à:{en:"at",fr:"à",de:"um",nl:"om"},Du:{en:"From",fr:"Du",de:"Von",nl:"Van"},au:{en:"to",fr:"au",de:"bis",nl:"tot"},Personnalisé:{en:"Custom",fr:"Personnalisé",de:"Benutzerdefiniert",nl:"Aangepast"},Monday:{en:"Monday",fr:"Lundi",de:"Montag",nl:"Maandag"},Tuesday:{en:"Tuesday",fr:"Mardi",de:"Dienstag",nl:"Dinsdag"},Wednesday:{en:"Wednesday",fr:"Mercredi",de:"Mittwoch",nl:"Woensdag"},Thursday:{en:"Thursday",fr:"Jeudi",de:"Donnerstag",nl:"Donderdag"},Friday:{en:"Friday",fr:"Vendredi",de:"Freitag",nl:"Vrijdag"},Saturday:{en:"Saturday",fr:"Samedi",de:"Samstag",nl:"Zaterdag"},Sunday:{en:"Sunday",fr:"Dimanche",de:"Sonntag",nl:"Zondag"},Fermé:{en:"Closed",fr:"Fermé",de:"Geschlossen",nl:"Gesloten"},Ouvert:{en:"Open",fr:"Ouvert",de:"Geöffnet",nl:"Open"},Itinéraire:{en:"Itinerary",fr:"Itinéraire",de:"Route",nl:"Route"}}},35358:(e,t,a)=>{var n={"./af":42687,"./af.js":42687,"./ar":58475,"./ar-dz":31422,"./ar-dz.js":31422,"./ar-kw":44718,"./ar-kw.js":44718,"./ar-ly":60595,"./ar-ly.js":60595,"./ar-ma":1178,"./ar-ma.js":1178,"./ar-ps":22817,"./ar-ps.js":22817,"./ar-sa":34096,"./ar-sa.js":34096,"./ar-tn":64818,"./ar-tn.js":64818,"./ar.js":58475,"./az":57699,"./az.js":57699,"./be":59445,"./be.js":59445,"./bg":1427,"./bg.js":1427,"./bm":99613,"./bm.js":99613,"./bn":87764,"./bn-bd":23575,"./bn-bd.js":23575,"./bn.js":87764,"./bo":35707,"./bo.js":35707,"./br":89424,"./br.js":89424,"./bs":13575,"./bs.js":13575,"./ca":19088,"./ca.js":19088,"./cs":52650,"./cs.js":52650,"./cv":12405,"./cv.js":12405,"./cy":9e3,"./cy.js":9e3,"./da":60563,"./da.js":60563,"./de":76663,"./de-at":37237,"./de-at.js":37237,"./de-ch":61195,"./de-ch.js":61195,"./de.js":76663,"./dv":45690,"./dv.js":45690,"./el":27141,"./el.js":27141,"./en-au":64650,"./en-au.js":64650,"./en-ca":67896,"./en-ca.js":67896,"./en-gb":629,"./en-gb.js":629,"./en-ie":85106,"./en-ie.js":85106,"./en-il":13721,"./en-il.js":13721,"./en-in":83159,"./en-in.js":83159,"./en-nz":79516,"./en-nz.js":79516,"./en-sg":71230,"./en-sg.js":71230,"./eo":97404,"./eo.js":97404,"./es":11592,"./es-do":82844,"./es-do.js":82844,"./es-mx":23132,"./es-mx.js":23132,"./es-us":31541,"./es-us.js":31541,"./es.js":11592,"./et":7645,"./et.js":7645,"./eu":97726,"./eu.js":97726,"./fa":54397,"./fa.js":54397,"./fi":94997,"./fi.js":94997,"./fil":41037,"./fil.js":41037,"./fo":44567,"./fo.js":44567,"./fr":60548,"./fr-ca":72597,"./fr-ca.js":72597,"./fr-ch":22078,"./fr-ch.js":22078,"./fr.js":60548,"./fy":73893,"./fy.js":73893,"./ga":35236,"./ga.js":35236,"./gd":71663,"./gd.js":71663,"./gl":7463,"./gl.js":7463,"./gom-deva":27298,"./gom-deva.js":27298,"./gom-latn":59533,"./gom-latn.js":59533,"./gu":90504,"./gu.js":90504,"./he":53843,"./he.js":53843,"./hi":24767,"./hi.js":24767,"./hr":19738,"./hr.js":19738,"./hu":131,"./hu.js":131,"./hy-am":40374,"./hy-am.js":40374,"./id":25289,"./id.js":25289,"./is":4076,"./is.js":4076,"./it":21273,"./it-ch":86181,"./it-ch.js":86181,"./it.js":21273,"./ja":25377,"./ja.js":25377,"./jv":39972,"./jv.js":39972,"./ka":53368,"./ka.js":53368,"./kk":97018,"./kk.js":97018,"./km":19068,"./km.js":19068,"./kn":48805,"./kn.js":48805,"./ko":81062,"./ko.js":81062,"./ku":74932,"./ku-kmr":76163,"./ku-kmr.js":76163,"./ku.js":74932,"./ky":3584,"./ky.js":3584,"./lb":49790,"./lb.js":49790,"./lo":70617,"./lo.js":70617,"./lt":120,"./lt.js":120,"./lv":95522,"./lv.js":95522,"./me":54262,"./me.js":54262,"./mi":36978,"./mi.js":36978,"./mk":26568,"./mk.js":26568,"./ml":57309,"./ml.js":57309,"./mn":58715,"./mn.js":58715,"./mr":59879,"./mr.js":59879,"./ms":53008,"./ms-my":46955,"./ms-my.js":46955,"./ms.js":53008,"./mt":19333,"./mt.js":19333,"./my":67714,"./my.js":67714,"./nb":84572,"./nb.js":84572,"./ne":40873,"./ne.js":40873,"./nl":73154,"./nl-be":65766,"./nl-be.js":65766,"./nl.js":73154,"./nn":84696,"./nn.js":84696,"./oc-lnc":99044,"./oc-lnc.js":99044,"./pa-in":93051,"./pa-in.js":93051,"./pl":26828,"./pl.js":26828,"./pt":8132,"./pt-br":29813,"./pt-br.js":29813,"./pt.js":8132,"./ro":8331,"./ro.js":8331,"./ru":43509,"./ru.js":43509,"./sd":58419,"./sd.js":58419,"./se":92332,"./se.js":92332,"./si":37256,"./si.js":37256,"./sk":22546,"./sk.js":22546,"./sl":69403,"./sl.js":69403,"./sq":3888,"./sq.js":3888,"./sr":79369,"./sr-cyrl":50536,"./sr-cyrl.js":50536,"./sr.js":79369,"./ss":24314,"./ss.js":24314,"./sv":52805,"./sv.js":52805,"./sw":50886,"./sw.js":50886,"./ta":2691,"./ta.js":2691,"./te":2727,"./te.js":2727,"./tet":87451,"./tet.js":87451,"./tg":46217,"./tg.js":46217,"./th":14148,"./th.js":14148,"./tk":96205,"./tk.js":96205,"./tl-ph":3861,"./tl-ph.js":3861,"./tlh":53426,"./tlh.js":53426,"./tr":97110,"./tr.js":97110,"./tzl":51992,"./tzl.js":51992,"./tzm":95919,"./tzm-latn":19673,"./tzm-latn.js":19673,"./tzm.js":95919,"./ug-cn":5048,"./ug-cn.js":5048,"./uk":61600,"./uk.js":61600,"./ur":97327,"./ur.js":97327,"./uz":33127,"./uz-latn":86929,"./uz-latn.js":86929,"./uz.js":33127,"./vi":69733,"./vi.js":69733,"./x-pseudo":66261,"./x-pseudo.js":66261,"./yo":93096,"./yo.js":93096,"./zh-cn":80802,"./zh-cn.js":80802,"./zh-hk":46030,"./zh-hk.js":46030,"./zh-mo":45123,"./zh-mo.js":45123,"./zh-tw":26710,"./zh-tw.js":26710};function l(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}l.keys=function(){return Object.keys(n)},l.resolve=r,e.exports=l,l.id=35358}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[919],{34919:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var r=a(25602),n=a(8174),l=a(82198),s=a(41665),c=a(37178),i=a(83198),o=a(72668);const u=function(e){let t=(0,s.Zp)();const[a,n]=(0,r.useState)(e.activeFilter),[u,m]=(0,r.useState)({}),[d,h]=(0,r.useState)(null),[g,f]=(0,r.useState)(null);(0,r.useEffect)((()=>{(()=>{const t=c.A.request({method:"get",url:"",baseURL:e.url+"/@vocabularies/imio.smartweb.vocabulary.Topics",headers:{Accept:"application/json"}}),a=c.A.request({method:"get",url:"",baseURL:e.url+"/@vocabularies/imio.smartweb.vocabulary.IAm",headers:{Accept:"application/json"}});c.A.all([t,a]).then(c.A.spread((function(){const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];if(null!==e){const t=e.data.items.map((e=>({value:e.token,label:e.title})));h(t)}if(null!==t){const e=t.data.items.map((e=>({value:e.token,label:e.title})));f(e)}}))).catch((e=>{console.error("errors")}))})()}),[]);const v=e=>{m({SearchableText:e.target.value}),e.target.value?n((t=>({...t,SearchableText:e.target.value})),[]):n((e=>{const t={...e},{SearchableText:a,...r}=t;return r}))},p=(0,r.useCallback)(((e,t)=>{const a=t.name;e?n((t=>({...t,[a]:e.value})),[]):n((e=>{const t={...e},{[a]:r,...n}=t;return n}))})),E=(0,r.useRef)(!0);(0,r.useEffect)((()=>{E.current?E.current=!1:(t({pathname:"./",search:o.A.stringify(a)}),e.onChange(a))}),[a]);let b=d&&d.filter((t=>t.value===e.activeFilter.topics)),N=g&&g.filter((t=>t.value===e.activeFilter.iam));const T={control:e=>({...e,backgroundColor:"white",borderRadius:"0",height:"50px"}),placeholder:e=>({...e,color:"000",fontWeight:"bold",fontSize:"12px",textTransform:"uppercase",letterSpacing:"1.2px"}),option:(e,t)=>{let{data:a,isDisabled:r,isFocused:n,isSelected:l}=t;return{...e}}};return r.createElement(r.Fragment,null,r.createElement("div",{className:"col-md-6 py-1 r-search search-bar-filter"},r.createElement("form",{onSubmit:e=>{e.preventDefault(),u.SearchableText?n((e=>({...e,SearchableText:u.SearchableText})),[]):n((e=>{const t={...e},{SearchableText:a,...r}=t;return r}))}},r.createElement("label",null,r.createElement(i.rk,null,(e=>{let{translate:t}=e;return r.createElement("input",{name:"SearchableText",type:"text",onChange:v,value:u.SearchableText,placeholder:t({text:"Recherche"})})}))),r.createElement("button",{type:"submit"}))),r.createElement("div",{className:"col-md-3 col-lg-2 py-1 r-search search-select-filter"},r.createElement(i.rk,null,(e=>{let{translate:t}=e;return r.createElement(l.Ay,{styles:T,name:"iam",className:"r-search-select",isClearable:!0,onChange:p,options:g&&g,placeholder:t({text:"Je suis"}),value:N&&N[0]})}))),r.createElement("div",{className:"col-md-3 col-lg-2 py-1 r-search search-select-filter"},r.createElement(i.rk,null,(e=>{let{translate:t}=e;return r.createElement(l.Ay,{styles:T,name:"topics",className:"r-search-select",isClearable:!0,onChange:p,options:d&&d,placeholder:t({text:"Thématiques"}),value:b&&b[0]})}))))};var m=a(86110),d=a(14799),h=a.n(d);const g=e=>{const[t,a]=(0,r.useState)([]),{response:n,error:l,isLoading:s}=(0,m.A)({method:"get",url:"",baseURL:e.url+"/@search?&_core=directory&b_size=100",headers:{Accept:"application/json"},params:e.urlParams.SearchableText||e.urlParams.iam||e.urlParams.topics?e.urlParams:{}},[e]);return(0,r.useEffect)((()=>{a(null!==n?n.items:[])}),[n]),r.createElement("div",{className:"search-contact"},r.createElement("div",{className:"r-search-header"},r.createElement("h2",{className:"r-search-header-title"},r.createElement(i.HT,{text:"Contacts"})),r.createElement("p",{className:"r-search-header-count"},t.length>0?r.createElement(r.Fragment,null," ",t.length," ",r.createElement(i.HT,{text:"Résultats"})," "):r.createElement(i.HT,{text:"Aucun résultat"}))),r.createElement("ul",{className:"r-search-list"},t.map(((t,a)=>r.createElement("li",{key:a,className:"r-search-item"},r.createElement("a",{href:t._url},r.createElement("div",{className:"r-search-img"},t.has_leadimage[0]?r.createElement("div",{className:"r-search-img",style:{backgroundImage:"url("+t.image_url+")"}}):r.createElement("div",{className:"r-search-img no-search-item-img"})),r.createElement(h(),{highlightClassName:"r-search-highlighter",searchWords:[e.urlParams.SearchableText],textToHighlight:t.title})))))))},f=e=>{const[t,a]=(0,r.useState)([]),{response:n,error:l,isLoading:s}=(0,m.A)({method:"get",url:"",baseURL:e.url+"/@search?&_core=news&b_size=100",headers:{Accept:"application/json"},params:e.urlParams.SearchableText||e.urlParams.iam||e.urlParams.topics?e.urlParams:{}},[e]);return(0,r.useEffect)((()=>{a(null!==n?n.items:[])}),[n]),r.createElement("div",{className:"search-news"},r.createElement("div",{className:"r-search-header"},r.createElement("h2",{className:"r-search-header-title"},r.createElement(i.HT,{text:"Actualités"})),r.createElement("p",{className:"r-search-header-count"},t.length>0?r.createElement(r.Fragment,null," ",t.length," ",r.createElement(i.HT,{text:"Résultats"})," "):r.createElement(i.HT,{text:"Aucun résultat"}))),r.createElement("ul",{className:"r-search-list"},t.map(((t,a)=>r.createElement("li",{key:a,className:"r-search-item"},r.createElement("a",{href:t._url},r.createElement("div",{className:"r-search-img"},t.has_leadimage[0]?r.createElement("div",{className:"r-search-img",style:{backgroundImage:"url("+t.image_url+")"}}):r.createElement("div",{className:"r-search-img no-search-item-img"})),r.createElement(h(),{highlightClassName:"r-search-highlighter",searchWords:[e.urlParams.SearchableText],textToHighlight:t.title})))))))},v=e=>{const[t,a]=(0,r.useState)([]),{response:n,error:l,isLoading:s}=(0,m.A)({method:"get",url:"",baseURL:e.url+"/@search?&_core=events&b_size=100",headers:{Accept:"application/json"},params:e.urlParams.SearchableText||e.urlParams.iam||e.urlParams.topics?e.urlParams:{}},[e]);return(0,r.useEffect)((()=>{a(null!==n?n.items:[])}),[n]),r.createElement("div",{className:"search-events"},r.createElement("div",{className:"r-search-header"},r.createElement("h2",{className:"r-search-header-title"},r.createElement(i.HT,{text:"Événements"})),r.createElement("p",{className:"r-search-header-count"},t.length>0?r.createElement(r.Fragment,null," ",t.length," ",r.createElement(i.HT,{text:"Résultats"})," "):r.createElement(i.HT,{text:"Aucun résultat"}))),r.createElement("ul",{className:"r-search-list"},t.map(((t,a)=>r.createElement("li",{key:a,className:"r-search-item"},r.createElement("a",{href:t._url},r.createElement("div",{className:"r-search-img"},t.has_leadimage[0]?r.createElement("div",{className:"r-search-img",style:{backgroundImage:"url("+t.image_url+")"}}):r.createElement("div",{className:"r-search-img no-search-item-img"})),r.createElement(h(),{highlightClassName:"r-search-highlighter",searchWords:[e.urlParams.SearchableText],textToHighlight:t.title})))))))},p=e=>{const[t,a]=(0,r.useState)([]),{response:n,error:l,isLoading:s}=(0,m.A)({method:"get",url:"",baseURL:e.url+"/@search?&b_size=100",headers:{Accept:"application/json"},params:e.urlParams.SearchableText||e.urlParams.iam||e.urlParams.topics?e.urlParams:{}},[e]);return(0,r.useEffect)((()=>{a(null!==n?n.items:[])}),[n]),r.createElement("div",{className:"search-web"},r.createElement("div",{className:"r-search-header"},r.createElement("h2",{className:"r-search-header-title"},r.createElement(i.HT,{text:"Infos pratiques"})),r.createElement("p",{className:"r-search-header-count"},t.length>0?r.createElement(r.Fragment,null," ",t.length," ",r.createElement(i.HT,{text:"Résultats"})," "):r.createElement(i.HT,{text:"Aucun résultat"}))),r.createElement("ul",{className:"r-search-list"},t.map(((t,a)=>r.createElement("li",{key:a,className:"r-search-item"},r.createElement("a",{href:t["@id"]},r.createElement(h(),{highlightClassName:"r-search-highlighter",searchWords:[e.urlParams.SearchableText],textToHighlight:t.title})))))))};var E=a(18874),b=a(48743);function N(e){return r.createElement(n.Kd,null,r.createElement(i.Kq,{language:e.currentLanguage,translation:b.A},r.createElement(T,{queryFilterUrl:e.queryFilterUrl,queryUrl:e.queryUrl,resultOption:JSON.parse(e.resultOption)})))}const T=e=>{const t=o.A.parse((0,E.A)().toString()),{SearchableText:a,iam:n,topics:l}=t,s={SearchableText:a,iam:n,topics:l},[c,i]=(0,r.useState)(s),[m,d]=(0,r.useState)(6);return r.createElement("div",{className:"ref"},r.createElement("div",{className:"r-search r-search-container"},r.createElement("div",{className:"row r-search-filters"},r.createElement(u,{url:e.queryUrl,activeFilter:c,onChange:e=>{i(e)}})),r.createElement("div",{className:"r-search-result"},r.createElement(p,{urlParams:c,url:e.queryUrl}),e.resultOption.news&&r.createElement(f,{urlParams:c,url:e.queryUrl}),e.resultOption.events&&r.createElement(v,{urlParams:c,url:e.queryUrl}),e.resultOption.directory&&r.createElement(g,{urlParams:c,url:e.queryUrl}))))}},86110:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(25602),n=a(37178);const l=e=>{const[t,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(""),[c,i]=(0,r.useState)(!0),[o,u]=(0,r.useState)(!1),m=new AbortController;return(0,r.useEffect)((()=>((async e=>{if(i(!0),e.load?u(!0):u(!1),0!=Object.keys(e.params).length)try{const t=await n.A.request(e);a(t.data),i(!1),s(null)}catch(e){s(e)}else a(null)})({...e,signal:m.signal}),()=>m.abort())),[e.params]),{response:t,error:l,isLoading:c,isMore:o}}},18874:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(41665);const n=function(){return new URLSearchParams((0,r.zy)().search)}},48743:(e,t,a)=>{a.d(t,{A:()=>r});const r={Publié:{en:"Published",fr:"Publié",de:"Veröffentlicht",nl:"Gepubliceerd"},Actualisé:{en:"Updated",fr:"Actualisé",de:"Aktualisiert",nl:"Bijgewerkt"},Événements:{en:"Events",fr:"Événements",de:"Veranstaltungen",nl:"Evenementen"},Actualités:{en:"News",fr:"Actualités",de:"Nachrichten",nl:"Nieuws"},Contacts:{en:"Contacts",fr:"Contacts",de:"Kontakte",nl:"Contacten"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques",de:"Praktische Informationen",nl:"Praktische informatie"},"Chargement...":{en:"Loading",fr:"Chargement...",de:"Laden",nl:"Laden..."},Recherche:{en:"Search",fr:"Recherche",de:"Suche",nl:"Zoeken"},Thématiques:{en:"Themes",fr:"Thématiques",de:"Themen",nl:"Thema's"},"Je suis":{en:"I am",fr:"Je suis",de:"Ich bin",nl:"Ik ben"},Catégories:{en:"Categories",fr:"Catégories",de:"Kategorien",nl:"Categorieën"},"Catégories locale":{en:"Local categories",fr:"Catégories locale",de:"Lokale Kategorien",nl:"Lokale categorieën"},"Catégories spécifiques":{en:"Specific categories",fr:"Catégories spécifiques",de:"Spezifische Kategorien",nl:"Specifieke categorieën"},Quoi:{en:"What",fr:"Quoi",de:"Was",nl:"Wat"},Facilités:{en:"Facilities",fr:"Facilités",de:"Einrichtungen",nl:"Faciliteiten"},"Plus de résultats":{en:"More results",fr:"Plus de résultats",de:"Mehr Ergebnisse",nl:"Meer resultaten"},"Aucun résultat":{en:"No result",fr:"Aucun résultat",de:"Kein Ergebnis",nl:"Geen resultaat"},Résultats:{en:"Results",fr:"Résultats",de:"Ergebnisse",nl:"Resultaten"},Retour:{en:"Return",fr:"Retour",de:"Zurück",nl:"Terug"},Téléchargements:{en:"Downloads",fr:"Téléchargements",de:"Downloads",nl:"Downloads"},Billetterie:{en:"Ticketing",fr:"Billetterie",de:"Tickets",nl:"Ticketverkoop"},"Lien vers la vidéo":{en:"Link to video",fr:"Lien vers la vidéo",de:"Link zum Video",nl:"Link naar video"},"Participation en ligne":{en:"Join online",fr:"Participation en ligne",de:"Online teilnehmen",nl:"Doe online mee"},"Actualités trouvées":{en:" News found",fr:" Actualités trouvées",de:" Nachrichten gefunden",nl:" Nieuws gevonden"},"Actualité trouvée":{en:" News found",fr:" Actualité trouvée",de:" Nachricht gefunden",nl:" Nieuws gevonden"},"Aucune actualité n'a été trouvée":{en:"No news was found",fr:"Aucune actualité n'a été trouvée",de:"Keine Nachrichten gefunden",nl:"Geen nieuws gevonden"},"Proposer une actualité":{en:"Suggest a news",fr:"Proposer une actualité",de:"Nachricht vorschlagen",nl:"Nieuws voorstellen"},"événements trouvés":{en:" Events found",fr:" Événements trouvés",de:" Veranstaltungen gefunden",nl:" Evenementen gevonden"},"événement trouvé":{en:" Event found",fr:" Événement trouvé",de:" Veranstaltung gefunden",nl:" Evenement gevonden"},Gratuit:{en:"Free",fr:"Gratuit",de:"Kostenlos",nl:"Gratis"},"Aucun événement n'a été trouvé":{en:"No event was found",fr:"Aucun événement n'a été trouvé",de:"Keine Veranstaltungen gefunden",nl:"Geen evenement gevonden"},"Proposer un événement":{en:"Suggest a event",fr:"Proposer un événement",de:"Veranstaltung vorschlagen",nl:"Evenement voorstellen"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques",de:"Praktische Informationen",nl:"Praktische informatie"},"Accessible aux PMR":{en:"Accessibility for PRM",fr:"Accessible aux PMR",de:"Barrierefreiheit für PMR",nl:"Toegankelijk voor PRM"},"Lien de l'événement":{en:"Event link",fr:"Lien de l'événement",de:"Veranstaltungslink",nl:"Evenement link"},"contacts trouvés":{en:" Contact found",fr:" Contacts trouvés",de:" Kontakt gefunden",nl:" Contact gevonden"},"contact trouvé":{en:" Contact found",fr:" Contact trouvé",de:" Kontakt gefunden",nl:" Contact gevonden"},"Aucun contact n'a été trouvé":{en:"No contact was found",fr:"Aucun contact n'a été trouvé",de:"Kein Kontakt gefunden",nl:"Geen contact gevonden"},"Proposer un contact":{en:"Suggest a contact",fr:"Proposer un contact",de:"Kontakt vorschlagen",nl:"Contact voorstellen"},Quand:{en:"When",fr:"Quand",de:"Wann",nl:"Wanneer"},"Toutes les dates":{en:"All dates",fr:"Toutes les dates",de:"Alle Daten",nl:"Alle data"},"Aujourd'hui":{en:"Today",fr:"Aujourd'hui",de:"Heute",nl:"Vandaag"},Demain:{en:"Tomorrow",fr:"Demain",de:"Morgen",nl:"Morgen"},"Ce week-end":{en:"This weekend",fr:"Ce week-end",de:"Dieses Wochenende",nl:"Dit weekend"},"Cette semaine":{en:"This week",fr:"Cette semaine",de:"Diese Woche",nl:"Deze week"},"Ce mois-ci":{en:"This month",fr:"Ce mois-ci",de:"Diesen Monat",nl:"Deze maand"},"Personnalisé (Du ... au ...)":{en:"Custom (From ... to ...)",fr:"Personnalisé (Du ... au ...)",de:"Benutzerdefiniert (Von ... bis ...)",nl:"Aangepast (Van ... tot ...)"},Le:{en:"On",fr:"Le",de:"Am",nl:"Op"},de:{en:"of",fr:"de",de:"von",nl:"van"},à:{en:"at",fr:"à",de:"um",nl:"om"},Du:{en:"From",fr:"Du",de:"Von",nl:"Van"},au:{en:"to",fr:"au",de:"bis",nl:"tot"},Personnalisé:{en:"Custom",fr:"Personnalisé",de:"Benutzerdefiniert",nl:"Aangepast"},Monday:{en:"Monday",fr:"Lundi",de:"Montag",nl:"Maandag"},Tuesday:{en:"Tuesday",fr:"Mardi",de:"Dienstag",nl:"Dinsdag"},Wednesday:{en:"Wednesday",fr:"Mercredi",de:"Mittwoch",nl:"Woensdag"},Thursday:{en:"Thursday",fr:"Jeudi",de:"Donnerstag",nl:"Donderdag"},Friday:{en:"Friday",fr:"Vendredi",de:"Freitag",nl:"Vrijdag"},Saturday:{en:"Saturday",fr:"Samedi",de:"Samstag",nl:"Zaterdag"},Sunday:{en:"Sunday",fr:"Dimanche",de:"Sonntag",nl:"Zondag"},Fermé:{en:"Closed",fr:"Fermé",de:"Geschlossen",nl:"Gesloten"},Ouvert:{en:"Open",fr:"Ouvert",de:"Geöffnet",nl:"Open"},Itinéraire:{en:"Itinerary",fr:"Itinéraire",de:"Route",nl:"Route"}}}}]);