imio.smartweb.core 1.2.65__py3-none-any.whl → 1.2.67__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.
- imio/smartweb/core/browser/controlpanel.py +41 -0
- imio/smartweb/core/browser/faceted/block_view.pt +4 -4
- imio/smartweb/core/browser/faceted/summary_view.pt +4 -4
- imio/smartweb/core/browser/static/smartweb-view-compiled.css +1 -1
- imio/smartweb/core/browser/static/src/view.less +4 -0
- imio/smartweb/core/contents/__init__.py +2 -0
- imio/smartweb/core/contents/configure.zcml +1 -0
- imio/smartweb/core/contents/folder/block_view.pt +8 -8
- imio/smartweb/core/contents/folder/summary_view.pt +4 -4
- imio/smartweb/core/contents/publication/__init__.py +0 -0
- imio/smartweb/core/contents/publication/configure.zcml +5 -0
- imio/smartweb/core/contents/publication/content.py +23 -0
- imio/smartweb/core/contents/rest/directory/view.pt +2 -1
- imio/smartweb/core/contents/rest/events/view.pt +2 -1
- imio/smartweb/core/contents/rest/news/view.pt +2 -1
- imio/smartweb/core/contents/rest/view.py +4 -0
- imio/smartweb/core/contents/sections/common_templates/table.pt +13 -3
- imio/smartweb/core/contents/sections/external_content/view.pt +1 -1
- imio/smartweb/core/contents/sections/files/content.py +7 -1
- imio/smartweb/core/contents/sections/files/view.py +38 -11
- imio/smartweb/core/contents/sections/views.py +19 -6
- imio/smartweb/core/profiles/default/metadata.xml +1 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml +38 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +1 -0
- imio/smartweb/core/profiles/default/types.xml +1 -0
- imio/smartweb/core/subscribers.py +24 -0
- imio/smartweb/core/subscribers.zcml +4 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_institutions.json +60 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_publication.json +105 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_publications.json +270 -0
- imio/smartweb/core/tests/test_iadeliberations.py +136 -0
- imio/smartweb/core/tests/test_vocabularies.py +54 -0
- imio/smartweb/core/upgrades/configure.zcml +37 -1
- imio/smartweb/core/upgrades/profiles/1059_to_1060/registry/iadeliberation.xml +9 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.Publication.xml +38 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.SectionFiles.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types.xml +4 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/workflows.xml +6 -0
- imio/smartweb/core/utils.py +27 -0
- imio/smartweb/core/vocabularies.py +44 -0
- imio/smartweb/core/vocabularies.zcml +12 -0
- imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/{324.smartweb-webcomponents-compiled.js → 828.smartweb-webcomponents-compiled.js} +2 -2
- imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +12 -2
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +88 -60
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +27 -1
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +6 -2
- imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +69 -39
- imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +30 -3
- imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +10 -7
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +4 -2
- imio/smartweb/core/webcomponents/src/components/News/News.jsx +3 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsCard/NewsCard.jsx +60 -48
- imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +30 -3
- imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +28 -7
- imio/smartweb/core/webcomponents/src/index.scss +188 -174
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/METADATA +27 -1
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/RECORD +70 -57
- /imio/smartweb/core/webcomponents/build/js/{324.smartweb-webcomponents-compiled.js.LICENSE.txt → 828.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.2.65-py3.10-nspkg.pth → /imio.smartweb.core-1.2.67-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.65.dist-info → imio.smartweb.core-1.2.67.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[486],{47486:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var n=a(25602),l=a(8174),r=a(41665),c=a(64651),s=a(82198),i=a(86110),o=a(83198),m=a(72668),u=a(94274),d=a(68473);const h=function(e){let t=(0,r.Zp)();const[a,l]=(0,n.useState)(e.activeFilter),[c,h]=(0,n.useState)([]),[p,g]=(0,n.useState)(null),[v,f]=(0,n.useState)(null),[E,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(null),{response:N,error:k,isLoading:x}=(0,i.A)({method:"get",url:"",baseURL:e.url,headers:{Accept:"application/json"},params:a});(0,n.useEffect)((()=>{if(null!==N){const e=N.topics&&N.topics.map((e=>({value:e.token,label:e.title}))),t=N.taxonomy_contact_category&&N.taxonomy_contact_category.map((e=>({value:e.token,label:e.title}))),a=N.facilities&&N.facilities.map((e=>({value:e.token,label:e.title})));h(e),g(t),f(a)}}),[N]);const C=(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}))})),A=(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}))})),S=(0,n.useRef)(!0);(0,n.useEffect)((()=>{S.current?S.current=!1:(t({pathname:"./",search:m.A.stringify(a)}),e.onChange(a))}),[a]);let _=c&&c.filter((t=>t.value===e.activeFilter.topics)),z=p&&p.filter((t=>t.value===e.activeFilter.taxonomy_contact_category)),M=v&&v.filter((t=>t.value===e.activeFilter.facilities)),I=u.c&&u.c.filter((t=>t.value===e.activeFilter.topics));return 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:C,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"}),n.createElement("div",{className:"r-filter top-filter topics-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.E,name:"topics",className:"select-custom-no-border",isClearable:!0,onChange:A,options:c&&c,placeholder:t({text:"Thématiques"}),value:_&&_[0]})}))),n.createElement("div",{className:"r-filter top-filter iam-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.E,name:"iam",className:"select-custom-no-border",isClearable:!0,onChange:A,options:u.c&&u.c,placeholder:t({text:"Profil"}),value:I&&I[0]})}))),n.createElement("div",{className:"r-filter top-filter facilities-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.E,name:"facilities",className:"select-custom-no-border",isClearable:!0,onChange:A,options:v&&v,placeholder:t({text:"Facilités"}),value:M&&M[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 facilities-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.o,name:"taxonomy_contact_category_for_filtering",className:"select-custom-class library-facilities",isClearable:!0,onChange:A,options:p&&p,placeholder:t({text:"Catégories"}),value:z&&z[0]})}))))))};var p=a(18874),g=a(91015);a(1053);const v=e=>{let{queryUrl:t,onChange:a}=e;const l=(0,r.Zp)(),{u:c,...s}=Object.assign({UID:m.A.parse((0,p.A)().toString()).u,fullobjects:1}),[u,d]=(0,n.useState)(s),[h,v]=(0,n.useState)({}),[f,E]=(0,n.useState)(),[w,b]=(0,n.useState)(),[y,N]=(0,n.useState)([]),[k,x]=(0,n.useState)(),[C,A]=(0,n.useState)(!0),{response:S}=(0,i.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:u},[]);(0,n.useEffect)((()=>{d(s)}),[m.A.parse((0,p.A)().toString()).u]),(0,n.useEffect)((()=>{null!==S&&v(S.items[0]),window.scrollTo({top:0,left:0,behavior:"instant"})}),[S]),(0,n.useEffect)((()=>{if(h.image_affiche_scale){const e=new Image;e.src=h.image_affiche_scale,e.onload=()=>{x(e)}}}),[h]),(0,n.useEffect)((()=>{h.urls&&N(h.urls.filter((e=>"website"!==e.type)))}),[h]),(0,n.useEffect)((()=>{h.items&&h.items.length>0&&(E(h.items.filter((e=>"File"===e["@type"]))),b(h.items.filter((e=>"Image"===e["@type"]))))}),[h]);let _=h.country&&h.country.title,z="https://www.google.com/maps/dir/?api=1&destination="+h.street+"+"+h.number+"+"+h.complement+"+"+h.zipcode+"+"+h.city+"+"+_;z=z.replaceAll("+null","");return n.createElement("div",{className:"annuaire-content r-content"},n.createElement("button",{type:"button",onClick:function(){l(".."),a(null)}},n.createElement(o.HT,{text:"Retour"})),n.createElement("article",null,n.createElement("header",null,n.createElement("h2",{className:"r-content-title"},h.title),h.subtitle?n.createElement("h3",{className:"r-content-subtitle"},h.subtitle):""),h.image_affiche_scale&&n.createElement("figure",{className:"r-content-figure"},n.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+h.image_affiche_scale+")"}}),n.createElement("img",{className:"r-content-figure-img",src:h.image_affiche_scale,style:{objectFit:k&&k.width>=k.height?"cover":"contain"},alt:""}))),n.createElement("div",{className:"contactCard"},n.createElement("div",{className:"contactText"},n.createElement("div",{className:"r-content-description"},n.createElement(g.o,null,h.description)),n.createElement("div",{className:"contactTextAll"},n.createElement("p",{className:"annuaire-info-title"},n.createElement(o.HT,{text:"Infos pratiques"})),h.category?n.createElement("span",null,h.category):"",h.street?n.createElement("div",{className:"annaire-adresse"},n.createElement("div",{className:"annaire-adresse-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}))),n.createElement("div",{className:"annaire-adresse-content"},n.createElement("a",{href:z,target:"_blank",rel:"noreferrer"},h.number?n.createElement("span",null,h.number+" "):"",h.street?n.createElement("span",null,h.street+", "):"",h.complement?n.createElement("span",null,h.complement+", "):"",h.zipcode?n.createElement("span",null,h.zipcode+" "):"",h.city?n.createElement("span",null,h.city):""))):"",h.table_date&&n.createElement("a",{href:"javascript:void(0)",onClick:()=>{A(!C)},className:"annuaire-schedul",role:"button","aria-expanded":"false","aria-label":"Afficher l'horaire complet"},n.createElement("div",{className:"annuaire-schedul-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-clock-fill",viewBox:"0 0 16 16"},n.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z"}))),n.createElement("div",{className:"annuaire-schedul-content"},C?n.createElement(n.Fragment,null,n.createElement("span",{className:"Fermé"===h.schedule_for_today?"annuaire-day-close":"annuaire-day-open"},n.createElement(o.HT,{text:h.schedule_for_today})),n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",fill:"currentColor",className:"bi bi-caret-down-fill",viewBox:"0 0 16 16"},n.createElement("path",{d:"M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"}))):n.createElement("div",null,n.createElement("ul",null,h.table_date.map(((e,t)=>{const a=Object.keys(e)[0],l=e[a];return n.createElement("li",{key:t},n.createElement("strong",null,n.createElement(o.HT,{text:a}),":")," ",l)})))))),h.phones&&h.phones.length>0?n.createElement("div",{className:"annuaire-phone"},n.createElement("div",{className:"annuaire-phone-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"}))),n.createElement("div",{className:"annuaire-phone-content"},h.phones.map(((e,t)=>n.createElement("span",{key:t},e.label?e.label+": ":"",n.createElement("a",{href:"tel:"+e.number},e.number)))))):"",h.mails&&h.mails.length>0?n.createElement("div",{className:"annuaire-website-mails"},n.createElement("div",{className:"annuaire-website-mails-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"}))),n.createElement("div",{className:"annuaire-website-mails-content"},h.mails.map(((e,t)=>n.createElement("span",{key:t},e.label?e.label+": ":"",n.createElement("a",{href:"mailto:"+e.mail_address},e.mail_address)))))):"",h.urls&&h.urls.length>0?n.createElement("div",{className:"annuaire-website-link"},n.createElement("div",{className:"annuaire-website-link-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},n.createElement("path",{d:"M2.5 2A1.5 1.5 0 0 0 1 3.5V12h14V3.5A1.5 1.5 0 0 0 13.5 2h-11zM0 12.5h16a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5z"}))),n.createElement("ul",{className:"annuaire-website-link-content"},h.urls.filter((e=>"website"===e.type)).map(((e,t)=>n.createElement(n.Fragment,null,n.createElement("li",{key:t},n.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},e.url))))))):"",y&&n.createElement("div",{className:"annuaire-social-link"},y.length>1?n.createElement("ul",null,y.map(((e,t)=>n.createElement("li",{key:t},n.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},"facebook"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"})):"instagram"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"})):"twitter"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"})):"youtube"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z"})):"pinterest"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0a8 8 0 0 0-2.915 15.452c-.07-.633-.134-1.606.027-2.297.146-.625.938-3.977.938-3.977s-.239-.479-.239-1.187c0-1.113.645-1.943 1.448-1.943.682 0 1.012.512 1.012 1.127 0 .686-.437 1.712-.663 2.663-.188.796.4 1.446 1.185 1.446 1.422 0 2.515-1.5 2.515-3.664 0-1.915-1.377-3.254-3.342-3.254-2.276 0-3.612 1.707-3.612 3.471 0 .688.265 1.425.595 1.826a.24.24 0 0 1 .056.23c-.061.252-.196.796-.222.907-.035.146-.116.177-.268.107-1-.465-1.624-1.926-1.624-3.1 0-2.523 1.834-4.84 5.286-4.84 2.775 0 4.932 1.977 4.932 4.62 0 2.757-1.739 4.976-4.151 4.976-.811 0-1.573-.421-1.834-.919l-.498 1.902c-.181.695-.669 1.566-.995 2.097A8 8 0 1 0 8 0z"})):""))))):n.createElement("div",null,n.createElement("a",{href:y[0]&&y[0].url,target:"_blank",rel:"noreferrer"},y[0]&&"facebook"===y[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"})):y[0]&&"instagram"===y[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"})):y[0]&&"twitter"===y[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"})):y[0]&&"youtube"===y[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z"})):y[0]&&"pinterest"===y[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0a8 8 0 0 0-2.915 15.452c-.07-.633-.134-1.606.027-2.297.146-.625.938-3.977.938-3.977s-.239-.479-.239-1.187c0-1.113.645-1.943 1.448-1.943.682 0 1.012.512 1.012 1.127 0 .686-.437 1.712-.663 2.663-.188.796.4 1.446 1.185 1.446 1.422 0 2.515-1.5 2.515-3.664 0-1.915-1.377-3.254-3.342-3.254-2.276 0-3.612 1.707-3.612 3.471 0 .688.265 1.425.595 1.826a.24.24 0 0 1 .056.23c-.061.252-.196.796-.222.907-.035.146-.116.177-.268.107-1-.465-1.624-1.926-1.624-3.1 0-2.523 1.834-4.84 5.286-4.84 2.775 0 4.932 1.977 4.932 4.62 0 2.757-1.739 4.976-4.151 4.976-.811 0-1.573-.421-1.834-.919l-.498 1.902c-.181.695-.669 1.566-.995 2.097A8 8 0 1 0 8 0z"})):""))),h.logo_thumb_scale?n.createElement("img",{className:"annuaire-logo",src:h.logo_thumb_scale,alt:""}):"")),f&&n.createElement("div",{className:"r-content-files"},f.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"})))))))),w&&n.createElement("div",{className:"r-content-gallery"},n.createElement("div",{className:"spotlight-group flexbin r-content-gallery"},w.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=e=>{let{item:t}=e;const[a,l]=(0,n.useState)(new Image),[r,c]=(0,n.useState)(""),s=t.title&&t.title,i=t.taxonomy_contact_category&&t.taxonomy_contact_category[0],m=t.number?t.number:"",u=t.street?t.street:"",d=t.complement?t.complement:"",h=t.zipcode?t.zipcode:"",p=t.city?t.city:"",g=t.phones?t.phones:"",v=t.mails?t.mails:"",f=t.topics?t.topics:"";let E=t.country&&t.country.title,w="https://www.google.com/maps/dir/?api=1&destination="+t.street+"+"+t.number+"+"+t.complement+"+"+t.zipcode+"+"+t.city+"+"+E;return w=w.replaceAll("+null",""),(0,n.useEffect)((()=>{(t.image_affiche_scale||t.logo_thumb_scale)&&(async()=>{const e=new Image,a=t.image_affiche_scale||t.logo_thumb_scale||"";e.src=a;try{await e.decode(),l(e);const t=e.width<e.height?"img-contain":"img-cover";c(t)}catch(e){console.error("Error loading image:",e)}})()}),[t]),n.createElement("div",{className:"r-list-item"},a&&a.src?n.createElement(n.Fragment,null,n.createElement("div",{className:"r-item-img"},n.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+a.src+")"}}),n.createElement("img",{className:"r-content-figure-img "+r,src:a.src,alt:""}))):n.createElement(n.Fragment,null,n.createElement("div",{className:"r-item-img r-item-img-placeholder"})),n.createElement("div",{className:"r-item-text"},n.createElement("span",{className:"r-item-title"},s),i?n.createElement("span",{className:"r-item-categorie"},i.title):"",n.createElement("div",{className:"r-item-all"},u?n.createElement("div",{className:"r-item-adresse"},m?n.createElement("span",null,m+" "):"",u?n.createElement("span",null,u+", "):"",d?n.createElement("span",null,d+", "):"",n.createElement("br",null),h?n.createElement("span",null,h+" "):"",p?n.createElement("span",null,p):"",n.createElement("div",{className:"itineraty"},n.createElement("a",{href:w,target:"_blank",rel:"noreferrer"},n.createElement(o.HT,{text:"Itinéraire"})))):"",n.createElement("div",{className:"r-item-contact"},n.createElement("div",{className:"phones"},g?g.map(((e,t)=>n.createElement("span",{key:t},e.number))):""),n.createElement("div",{className:"mails"},v?v.map(((e,t)=>n.createElement("span",{key:t},e.mail_address))):""),n.createElement("div",{className:"topics"},f?f.slice(0,3).map(((e,t)=>n.createElement("span",{key:t},e.title))):"")))))};var E=a(75681),w=a.n(E);const b=e=>{let{contactArray:t,onChange:a,onHover:r,parentCallback:s}=e;const{scrollPos:i,updateScrollPos:o}=(0,n.useContext)(c.z);function m(e){r(e)}return(0,n.useEffect)((()=>{window.scrollTo({top:i,left:0,behavior:"instant"})}),[t]),n.createElement(n.Fragment,null,n.createElement("ul",{className:"r-result-list annuaire-result-list"},t.map(((e,t)=>n.createElement("li",{key:t,className:"r-list-item-group",onMouseEnter:()=>m(e.UID),onMouseLeave:()=>m(null),onClick:()=>{return t=e.UID,a(t),void o(window.scrollY);var t}},n.createElement(l.N_,{className:"r-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+w()(e.title).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.UID),state:{idItem:e.UID}}}),n.createElement(f,{item:e,key:e.created}))))))};var y=a(81499),N=a(48743);function k(e){const[t,a]=(0,n.useState)(0);return n.createElement(l.Kd,{basename:e.viewPath},n.createElement(o.Kq,{language:e.currentLanguage,translation:N.A},n.createElement(c.z.Provider,{value:{scrollPos:t,updateScrollPos:e=>{a(e)}}},n.createElement(x,{queryFilterUrl:e.queryFilterUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize,displayMap:e.displayMap}))))}function x(e){const{u:t,...a}=Object.assign({b_start:0,fullobjects:1},m.A.parse((0,p.A)().toString())),{scrollPos:l,updateScrollPos:s}=(0,n.useContext)(c.z),[u,d]=(0,n.useState)([]),[g,f]=(0,n.useState)([]),[E,w]=(0,n.useState)(null),[N,k]=(0,n.useState)(null),[x,C]=(0,n.useState)(a),[A,S]=(0,n.useState)(0),[_,z]=(0,n.useState)(!1),M="True"===e.displayMap,{response:I,error:T,isLoading:L,isMore:D}=(0,i.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:x,load:_},[]);(0,n.useEffect)((()=>{null!==I&&(d(D?e=>[...e,...I.items]:I.items),f(I.items_total))}),[I]);const P=e=>{w(e)},U=e=>{k(e)};(0,n.useEffect)((()=>{C((e=>({...e,b_start:A})))}),[A]);const F=(0,n.useRef)(),[B,H]=n.useState({height:0}),[V,q]=(0,n.useState)(0);let R,O;(0,n.useEffect)((()=>{H({height:F.current.clientHeight}),q(F.current.offsetTop)}),[F]),u&&u.length>0?(R=n.createElement(b,{onChange:P,contactArray:u,onHover:U}),O=n.createElement(y.A,{headerHeight:B.height+V,clickId:E,hoverId:N,items:u,queryUrl:e.queryUrl})):L||(R=n.createElement("p",null,n.createElement(o.HT,{text:"Aucun contact n'a été trouvé"})));const j=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(M?"view-map":"no-map")},n.createElement("div",{className:"r-result-filter-container",ref:F,style:{top:V}},n.createElement("div",{id:"r-result-filter",className:"r-result-filter container annuaire-result-filter"},n.createElement(h,{url:e.queryFilterUrl,activeFilter:x,onChange:e=>{z(!1),S((()=>0)),C(e),window.scrollTo(0,0)}}),e.proposeUrl&&n.createElement("div",{className:"r-add-contact"},n.createElement("a",{target:"_blank",rel:"noreferrer",href:e.proposeUrl},n.createElement(o.HT,{text:"Proposer un contact"}),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"})))),g>0?n.createElement("p",{className:"r-results-numbers"},n.createElement("span",null,g),g>1?n.createElement(o.HT,{text:"contacts trouvés"}):n.createElement(o.HT,{text:"contact trouvé"})):n.createElement("p",{className:"r-results-numbers"},n.createElement(o.HT,{text:"Aucun résultat"})))),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"},n.createElement("div",null,R),n.createElement("div",{className:"r-load-more"},g-e.batchSize>A?n.createElement("div",null,n.createElement("span",{className:"no-more-result"},L?j:""),n.createElement("button",{onClick:()=>{s(window.scrollY),S((t=>t+parseInt(e.batchSize))),z(!0)},className:"btn-grad"},L?n.createElement(o.HT,{text:"Chargement..."}):n.createElement(o.HT,{text:"Plus de résultats"}))):n.createElement("span",{className:"no-more-result"},L?j:""))),M&&n.createElement("div",{className:"r-map annuaire-map",style:{top:B.height+V,height:"calc(100vh-"+B.height+V}},O))}),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(v,{queryUrl:e.queryUrl,onChange:P})),M&&n.createElement("div",{className:"r-map annuaire-map",style:{top:B.height+V,height:"calc(100vh-"+B.height+V}},O))})))}},94274:(e,t,a)=>{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)=>{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)=>{a.d(t,{z:()=>n});const n=(0,a(25602).createContext)()},86110:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(25602),l=a(99938);const r=e=>{const[t,a]=(0,n.useState)(null),[r,c]=(0,n.useState)(""),[s,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),c(null)}catch(e){c(e)}else a(null)})({...e,signal:u.signal}),()=>u.abort())),[e.params]),{response:t,error:r,isLoading:s,isMore:o}}},18874:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(41665);const l=function(){return new URLSearchParams((0,n.zy)().search)}},81499:(e,t,a)=>{a.d(t,{A:()=>w});var n=a(25602),l=a(28009),r=a(77059),c=a(60055),s=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 h=a.p+"assets/pin-react-active.07d154037a15be5525b823fdc626cf29.svg";var p=a(8174),g=a(75681),v=a.n(g),f=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 w=function(e){const[t,a]=(0,n.useState)(null),[l,m]=(0,n.useState)([]),[g,w]=(0,n.useState)(null),{u:b,...y}=Object.assign({UID:f.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 N=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])})),w(e)}}),[l]);const x=l.map(((t,a)=>{return n.createElement(r.p,{key:a,icon:(l=t.UID,l===y.UID||l===e.hoverId?N(h):N(d)),zIndexOffset:k(t.UID),position:[t.geolocation?t.geolocation.latitude:"",t.geolocation?t.geolocation.longitude:""],eventHandlers:{mouseover:e=>{}}},n.createElement(c.z,{closeButton:!1},n.createElement(p.N_,{className:"r-map-popup",style:{textDecoration:"none"},to:{pathname:"/"+v()(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(s.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!=g?n.createElement(E,{activeItem:t,activeItemUID:y.UID,arrayOfLatLngs:g&&g}):"",l&&x))}},48743:(e,t,a)=>{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"}}}}]);
|
1
|
+
"use strict";(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[486],{47486:(e,t,a)=>{a.r(t),a.d(t,{default:()=>x});var n=a(25602),l=a(8174),r=a(41665),c=a(64651),s=a(82198),i=a(86110),o=a(83198),m=a(72668),u=a(94274),d=a(68473);const h=function(e){let t=(0,r.Zp)();const[a,l]=(0,n.useState)(e.activeFilter),[c,h]=(0,n.useState)([]),[g,p]=(0,n.useState)(null),[v,f]=(0,n.useState)(null),[E,w]=(0,n.useState)(!1),[b,y]=(0,n.useState)(null),{response:N,error:x,isLoading:A}=(0,i.A)({method:"get",url:"",baseURL:e.url,headers:{Accept:"application/json"},params:a});(0,n.useEffect)((()=>{if(null!==N){const e=N.topics&&N.topics.map((e=>({value:e.token,label:e.title}))),t=N.taxonomy_contact_category&&N.taxonomy_contact_category.map((e=>({value:e.token,label:e.title}))),a=N.facilities&&N.facilities.map((e=>({value:e.token,label:e.title})));h(e),p(t),f(a)}}),[N]);const k=(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}))})),C=(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.useRef)(!0);(0,n.useEffect)((()=>{_.current?_.current=!1:(t({pathname:"./",search:m.A.stringify(a)}),e.onChange(a))}),[a]);let S=c&&c.filter((t=>t.value===e.activeFilter.topics)),z=g&&g.filter((t=>t.value===e.activeFilter.taxonomy_contact_category)),M=v&&v.filter((t=>t.value===e.activeFilter.facilities)),L=u.c&&u.c.filter((t=>t.value===e.activeFilter.topics));return 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:k,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"}),n.createElement("div",{className:"r-filter top-filter topics-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.E,name:"topics",className:"select-custom-no-border",isClearable:!0,onChange:C,options:c&&c,placeholder:t({text:"Thématiques"}),value:S&&S[0]})}))),n.createElement("div",{className:"r-filter top-filter iam-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.E,name:"iam",className:"select-custom-no-border",isClearable:!0,onChange:C,options:u.c&&u.c,placeholder:t({text:"Profil"}),value:L&&L[0]})}))),n.createElement("div",{className:"r-filter top-filter facilities-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.E,name:"facilities",className:"select-custom-no-border",isClearable:!0,onChange:C,options:v&&v,placeholder:t({text:"Facilités"}),value:M&&M[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 facilities-Filter"},n.createElement(o.rk,null,(e=>{let{translate:t}=e;return n.createElement(s.Ay,{styles:d.o,name:"taxonomy_contact_category_for_filtering",className:"select-custom-class library-facilities",isClearable:!0,onChange:C,options:g&&g,placeholder:t({text:"Catégories"}),value:z&&z[0]})}))))))};var g=a(18874),p=a(91015);a(1053);const v=e=>{let{queryUrl:t,onChange:a,contextAuthenticatedUser:l}=e;const c=(0,r.Zp)(),{u:s,...u}=Object.assign({UID:m.A.parse((0,g.A)().toString()).u,fullobjects:1}),[d,h]=(0,n.useState)(u),[v,f]=(0,n.useState)({}),[E,w]=(0,n.useState)(),[b,y]=(0,n.useState)(),[N,x]=(0,n.useState)([]),[A,k]=(0,n.useState)(),[C,_]=(0,n.useState)(!0),{response:S}=(0,i.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:d},[]);(0,n.useEffect)((()=>{h(u)}),[m.A.parse((0,g.A)().toString()).u]),(0,n.useEffect)((()=>{null!==S&&f(S.items[0]),window.scrollTo({top:0,left:0,behavior:"instant"})}),[S]),(0,n.useEffect)((()=>{if(v.image_affiche_scale){const e=new Image;e.src=v.image_affiche_scale,e.onload=()=>{k(e)}}}),[v]),(0,n.useEffect)((()=>{v.urls&&x(v.urls.filter((e=>"website"!==e.type)))}),[v]),(0,n.useEffect)((()=>{v.items&&v.items.length>0&&(w(v.items.filter((e=>"File"===e["@type"]))),y(v.items.filter((e=>"Image"===e["@type"]))))}),[v]);let z=v.country&&v.country.title,M="https://www.google.com/maps/dir/?api=1&destination="+v.street+"+"+v.number+"+"+v.complement+"+"+v.zipcode+"+"+v.city+"+"+z;M=M.replaceAll("+null","");return n.createElement("div",{className:"annuaire-content r-content"},n.createElement("button",{type:"button",onClick:function(){c(".."),a(null)}},n.createElement(o.HT,{text:"Retour"})),"False"===l?n.createElement("a",{href:v["@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",null,n.createElement("h2",{className:"r-content-title"},v.title),v.subtitle?n.createElement("h3",{className:"r-content-subtitle"},v.subtitle):""),v.image_affiche_scale&&n.createElement("figure",{className:"r-content-figure"},n.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+v.image_affiche_scale+")"}}),n.createElement("img",{className:"r-content-figure-img",src:v.image_affiche_scale,style:{objectFit:A&&A.width>=A.height?"cover":"contain"},alt:""}))),n.createElement("div",{className:"contactCard"},n.createElement("div",{className:"contactText"},n.createElement("div",{className:"r-content-description"},n.createElement(p.o,null,v.description)),n.createElement("div",{className:"contactTextAll"},n.createElement("p",{className:"annuaire-info-title"},n.createElement(o.HT,{text:"Infos pratiques"})),v.category?n.createElement("span",null,v.category):"",v.street?n.createElement("div",{className:"annaire-adresse"},n.createElement("div",{className:"annaire-adresse-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}))),n.createElement("div",{className:"annaire-adresse-content"},n.createElement("a",{href:M,target:"_blank",rel:"noreferrer"},v.number?n.createElement("span",null,v.number+" "):"",v.street?n.createElement("span",null,v.street+", "):"",v.complement?n.createElement("span",null,v.complement+", "):"",v.zipcode?n.createElement("span",null,v.zipcode+" "):"",v.city?n.createElement("span",null,v.city):""))):"",v.table_date&&n.createElement("a",{href:"javascript:void(0)",onClick:()=>{_(!C)},className:"annuaire-schedul",role:"button","aria-expanded":"false","aria-label":"Afficher l'horaire complet"},n.createElement("div",{className:"annuaire-schedul-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-clock-fill",viewBox:"0 0 16 16"},n.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z"}))),n.createElement("div",{className:"annuaire-schedul-content"},C?n.createElement(n.Fragment,null,n.createElement("span",{className:"Fermé"===v.schedule_for_today?"annuaire-day-close":"annuaire-day-open"},n.createElement(o.HT,{text:v.schedule_for_today})),n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",fill:"currentColor",className:"bi bi-caret-down-fill",viewBox:"0 0 16 16"},n.createElement("path",{d:"M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"}))):n.createElement("div",null,n.createElement("ul",null,v.table_date.map(((e,t)=>{const a=Object.keys(e)[0],l=e[a];return n.createElement("li",{key:t},n.createElement("strong",null,n.createElement(o.HT,{text:a}),":")," ",l)})))))),v.phones&&v.phones.length>0?n.createElement("div",{className:"annuaire-phone"},n.createElement("div",{className:"annuaire-phone-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"}))),n.createElement("div",{className:"annuaire-phone-content"},v.phones.map(((e,t)=>n.createElement("span",{key:t},e.label?e.label+": ":"",n.createElement("a",{href:"tel:"+e.number},e.number)))))):"",v.mails&&v.mails.length>0?n.createElement("div",{className:"annuaire-website-mails"},n.createElement("div",{className:"annuaire-website-mails-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"}))),n.createElement("div",{className:"annuaire-website-mails-content"},v.mails.map(((e,t)=>n.createElement("span",{key:t},e.label?e.label+": ":"",n.createElement("a",{href:"mailto:"+e.mail_address},e.mail_address)))))):"",v.urls&&v.urls.length>0?n.createElement("div",{className:"annuaire-website-link"},n.createElement("div",{className:"annuaire-website-link-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},n.createElement("path",{d:"M2.5 2A1.5 1.5 0 0 0 1 3.5V12h14V3.5A1.5 1.5 0 0 0 13.5 2h-11zM0 12.5h16a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5z"}))),n.createElement("ul",{className:"annuaire-website-link-content"},v.urls.filter((e=>"website"===e.type)).map(((e,t)=>n.createElement(n.Fragment,null,n.createElement("li",{key:t},n.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},e.url))))))):"",N&&n.createElement("div",{className:"annuaire-social-link"},N.length>1?n.createElement("ul",null,N.map(((e,t)=>n.createElement("li",{key:t},n.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},"facebook"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"})):"instagram"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"})):"twitter"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"})):"youtube"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z"})):"pinterest"===e.type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0a8 8 0 0 0-2.915 15.452c-.07-.633-.134-1.606.027-2.297.146-.625.938-3.977.938-3.977s-.239-.479-.239-1.187c0-1.113.645-1.943 1.448-1.943.682 0 1.012.512 1.012 1.127 0 .686-.437 1.712-.663 2.663-.188.796.4 1.446 1.185 1.446 1.422 0 2.515-1.5 2.515-3.664 0-1.915-1.377-3.254-3.342-3.254-2.276 0-3.612 1.707-3.612 3.471 0 .688.265 1.425.595 1.826a.24.24 0 0 1 .056.23c-.061.252-.196.796-.222.907-.035.146-.116.177-.268.107-1-.465-1.624-1.926-1.624-3.1 0-2.523 1.834-4.84 5.286-4.84 2.775 0 4.932 1.977 4.932 4.62 0 2.757-1.739 4.976-4.151 4.976-.811 0-1.573-.421-1.834-.919l-.498 1.902c-.181.695-.669 1.566-.995 2.097A8 8 0 1 0 8 0z"})):""))))):n.createElement("div",null,n.createElement("a",{href:N[0]&&N[0].url,target:"_blank",rel:"noreferrer"},N[0]&&"facebook"===N[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"})):N[0]&&"instagram"===N[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"})):N[0]&&"twitter"===N[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"})):N[0]&&"youtube"===N[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z"})):N[0]&&"pinterest"===N[0].type?n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor",viewBox:"0 0 16 16"},n.createElement("path",{d:"M8 0a8 8 0 0 0-2.915 15.452c-.07-.633-.134-1.606.027-2.297.146-.625.938-3.977.938-3.977s-.239-.479-.239-1.187c0-1.113.645-1.943 1.448-1.943.682 0 1.012.512 1.012 1.127 0 .686-.437 1.712-.663 2.663-.188.796.4 1.446 1.185 1.446 1.422 0 2.515-1.5 2.515-3.664 0-1.915-1.377-3.254-3.342-3.254-2.276 0-3.612 1.707-3.612 3.471 0 .688.265 1.425.595 1.826a.24.24 0 0 1 .056.23c-.061.252-.196.796-.222.907-.035.146-.116.177-.268.107-1-.465-1.624-1.926-1.624-3.1 0-2.523 1.834-4.84 5.286-4.84 2.775 0 4.932 1.977 4.932 4.62 0 2.757-1.739 4.976-4.151 4.976-.811 0-1.573-.421-1.834-.919l-.498 1.902c-.181.695-.669 1.566-.995 2.097A8 8 0 1 0 8 0z"})):""))),v.logo_thumb_scale?n.createElement("img",{className:"annuaire-logo",src:v.logo_thumb_scale,alt:""}):"")),E&&n.createElement("div",{className:"r-content-files"},E.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"})))))))),b&&n.createElement("div",{className:"r-content-gallery"},n.createElement("div",{className:"spotlight-group flexbin r-content-gallery"},b.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=e=>{let{item:t,contextAuthenticatedUser:a}=e;const[l,r]=(0,n.useState)(new Image),[c,s]=(0,n.useState)(""),i=t.title&&t.title,m=t.taxonomy_contact_category&&t.taxonomy_contact_category[0],u=t.number?t.number:"",d=t.street?t.street:"",h=t.complement?t.complement:"",g=t.zipcode?t.zipcode:"",p=t.city?t.city:"",v=t.phones?t.phones:"",f=t.mails?t.mails:"",E=t.topics?t.topics:"";let w=t.country&&t.country.title,b="https://www.google.com/maps/dir/?api=1&destination="+t.street+"+"+t.number+"+"+t.complement+"+"+t.zipcode+"+"+t.city+"+"+w;return b=b.replaceAll("+null",""),(0,n.useEffect)((()=>{(t.image_affiche_scale||t.logo_thumb_scale)&&(async()=>{const e=new Image,a=t.image_affiche_scale||t.logo_thumb_scale||"";e.src=a;try{await e.decode(),r(e);const t=e.width<e.height?"img-contain":"img-cover";s(t)}catch(e){console.error("Error loading image:",e)}})()}),[t]),n.createElement(n.Fragment,null,"False"===a?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"},l&&l.src?n.createElement(n.Fragment,null,n.createElement("div",{className:"r-item-img"},n.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+l.src+")"}}),n.createElement("img",{className:"r-content-figure-img "+c,src:l.src,alt:""}))):n.createElement(n.Fragment,null,n.createElement("div",{className:"r-item-img r-item-img-placeholder"})),n.createElement("div",{className:"r-item-text"},n.createElement("span",{className:"r-item-title"},i),m?n.createElement("span",{className:"r-item-categorie"},m.title):"",n.createElement("div",{className:"r-item-all"},d?n.createElement("div",{className:"r-item-adresse"},u?n.createElement("span",null,u+" "):"",d?n.createElement("span",null,d+", "):"",h?n.createElement("span",null,h+", "):"",n.createElement("br",null),g?n.createElement("span",null,g+" "):"",p?n.createElement("span",null,p):"",n.createElement("div",{className:"itineraty"},n.createElement("a",{href:b,target:"_blank",rel:"noreferrer"},n.createElement(o.HT,{text:"Itinéraire"})))):"",n.createElement("div",{className:"r-item-contact"},n.createElement("div",{className:"phones"},v?v.map(((e,t)=>n.createElement("span",{key:t},e.number))):""),n.createElement("div",{className:"mails"},f?f.map(((e,t)=>n.createElement("span",{key:t},e.mail_address))):""),n.createElement("div",{className:"topics"},E?E.slice(0,3).map(((e,t)=>n.createElement("span",{key:t},e.title))):""))))))};var E=a(75681),w=a.n(E);const b=e=>{let{contactArray:t,onChange:a,onHover:r,contextAuthenticatedUser:s}=e;const{scrollPos:i,updateScrollPos:o}=(0,n.useContext)(c.z);function m(e){r(e)}return(0,n.useEffect)((()=>{window.scrollTo({top:i,left:0,behavior:"instant"})}),[t]),n.createElement(n.Fragment,null,n.createElement("ul",{className:"r-result-list annuaire-result-list"},t.map(((e,t)=>n.createElement("li",{key:t,className:"r-list-item-group",onMouseEnter:()=>m(e.UID),onMouseLeave:()=>m(null),onClick:()=>{return t=e.UID,a(t),void o(window.scrollY);var t}},n.createElement(l.N_,{className:"r-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+w()(e.title).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.UID),state:{idItem:e.UID}}}),n.createElement(f,{item:e,contextAuthenticatedUser:s,key:e.created}))))))};var y=a(81499),N=a(48743);function x(e){const[t,a]=(0,n.useState)(0);return n.createElement(l.Kd,{basename:e.viewPath},n.createElement(o.Kq,{language:e.currentLanguage,translation:N.A},n.createElement(c.z.Provider,{value:{scrollPos:t,updateScrollPos:e=>{a(e)}}},n.createElement(A,{queryFilterUrl:e.queryFilterUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize,displayMap:e.displayMap,contextAuthenticatedUser:e.contextAuthenticatedUser}))))}function A(e){const{u:t,...a}=Object.assign({b_start:0,fullobjects:1},m.A.parse((0,g.A)().toString())),{scrollPos:l,updateScrollPos:s}=(0,n.useContext)(c.z),[u,d]=(0,n.useState)([]),[p,f]=(0,n.useState)([]),[E,w]=(0,n.useState)(null),[N,x]=(0,n.useState)(null),[A,k]=(0,n.useState)(a),[C,_]=(0,n.useState)(0),[S,z]=(0,n.useState)(!1),M="True"===e.displayMap,{response:L,error:I,isLoading:U,isMore:T}=(0,i.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:A,load:S},[]);(0,n.useEffect)((()=>{null!==L&&(d(T?e=>[...e,...L.items]:L.items),f(L.items_total))}),[L]);const D=e=>{w(e)},P=e=>{x(e)};(0,n.useEffect)((()=>{k((e=>({...e,b_start:C})))}),[C]);const F=(0,n.useRef)(),[B,H]=n.useState({height:0}),[q,V]=(0,n.useState)(0);let R,O;(0,n.useEffect)((()=>{H({height:F.current.clientHeight}),V(F.current.offsetTop)}),[F]),u&&u.length>0?(R=n.createElement(b,{onChange:D,contactArray:u,onHover:P,contextAuthenticatedUser:e.contextAuthenticatedUser}),O=n.createElement(y.A,{headerHeight:B.height+q,clickId:E,hoverId:N,items:u,queryUrl:e.queryUrl})):U||(R=n.createElement("p",null,n.createElement(o.HT,{text:"Aucun contact n'a été trouvé"})));const j=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(M?"view-map":"no-map")},n.createElement("div",{className:"r-result-filter-container",ref:F,style:{top:q}},n.createElement("div",{id:"r-result-filter",className:"r-result-filter container annuaire-result-filter"},n.createElement(h,{url:e.queryFilterUrl,activeFilter:A,onChange:e=>{z(!1),_((()=>0)),k(e),window.scrollTo(0,0)}}),e.proposeUrl&&n.createElement("div",{className:"r-add-contact"},n.createElement("a",{target:"_blank",rel:"noreferrer",href:e.proposeUrl},n.createElement(o.HT,{text:"Proposer un contact"}),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"})))),p>0?n.createElement("p",{className:"r-results-numbers"},n.createElement("span",null,p),p>1?n.createElement(o.HT,{text:"contacts trouvés"}):n.createElement(o.HT,{text:"contact trouvé"})):n.createElement("p",{className:"r-results-numbers"},n.createElement(o.HT,{text:"Aucun résultat"})))),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"},n.createElement("div",null,R),n.createElement("div",{className:"r-load-more"},p-e.batchSize>C?n.createElement("div",null,n.createElement("span",{className:"no-more-result"},U?j:""),n.createElement("button",{onClick:()=>{s(window.scrollY),_((t=>t+parseInt(e.batchSize))),z(!0)},className:"btn-grad"},U?n.createElement(o.HT,{text:"Chargement..."}):n.createElement(o.HT,{text:"Plus de résultats"}))):n.createElement("span",{className:"no-more-result"},U?j:""))),M&&n.createElement("div",{className:"r-map annuaire-map",style:{top:B.height+q,height:"calc(100vh-"+B.height+q}},O))}),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(v,{queryUrl:e.queryUrl,onChange:D,contextAuthenticatedUser:e.contextAuthenticatedUser})),M&&n.createElement("div",{className:"r-map annuaire-map",style:{top:B.height+q,height:"calc(100vh-"+B.height+q}},O))})))}},94274:(e,t,a)=>{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)=>{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)=>{a.d(t,{z:()=>n});const n=(0,a(25602).createContext)()},86110:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(25602),l=a(37178);const r=e=>{const[t,a]=(0,n.useState)(null),[r,c]=(0,n.useState)(""),[s,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),c(null)}catch(e){c(e)}else a(null)})({...e,signal:u.signal}),()=>u.abort())),[e.params]),{response:t,error:r,isLoading:s,isMore:o}}},18874:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(41665);const l=function(){return new URLSearchParams((0,n.zy)().search)}},81499:(e,t,a)=>{a.d(t,{A:()=>w});var n=a(25602),l=a(28009),r=a(77059),c=a(60055),s=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 h=a.p+"assets/pin-react-active.07d154037a15be5525b823fdc626cf29.svg";var g=a(8174),p=a(75681),v=a.n(p),f=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 w=function(e){const[t,a]=(0,n.useState)(null),[l,m]=(0,n.useState)([]),[p,w]=(0,n.useState)(null),{u:b,...y}=Object.assign({UID:f.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 N=e=>new(u().Icon)({iconUrl:e,iconSize:[29,37]}),x=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])})),w(e)}}),[l]);const A=l.map(((t,a)=>{return n.createElement(r.p,{key:a,icon:(l=t.UID,l===y.UID||l===e.hoverId?N(h):N(d)),zIndexOffset:x(t.UID),position:[t.geolocation?t.geolocation.latitude:"",t.geolocation?t.geolocation.longitude:""],eventHandlers:{mouseover:e=>{}}},n.createElement(c.z,{closeButton:!1},n.createElement(g.N_,{className:"r-map-popup",style:{textDecoration:"none"},to:{pathname:"/"+v()(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(s.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!=p?n.createElement(E,{activeItem:t,activeItemUID:y.UID,arrayOfLatLngs:p&&p}):"",l&&A))}},48743:(e,t,a)=>{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"}}}}]);
|