imio.smartweb.core 1.2.34__py3-none-any.whl → 1.2.37__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/sitemap.py +52 -46
- imio/smartweb/core/contents/rest/utils.py +99 -0
- imio/smartweb/core/contents/sections/external_content/configure.zcml +29 -0
- imio/smartweb/core/contents/sections/external_content/view.pt +25 -7
- imio/smartweb/core/contents/sections/external_content/view_idelux_waste.pt +50 -0
- imio/smartweb/core/contents/sections/external_content/view_inbw_containers_affluence.pt +91 -0
- imio/smartweb/core/contents/sections/external_content/view_odwb_widget.pt +20 -0
- imio/smartweb/core/contents/sections/external_content/views.py +303 -124
- imio/smartweb/core/contents/sections/text/view.pt +1 -1
- imio/smartweb/core/interfaces.py +7 -0
- imio/smartweb/core/profiles/default/metadata.xml +1 -1
- imio/smartweb/core/profiles/default/registry/plone.xml +21 -4
- imio/smartweb/core/profiles/default/types/Collection.xml +13 -0
- imio/smartweb/core/profiles/default/types/File.xml +13 -0
- imio/smartweb/core/profiles/default/types/Image.xml +13 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.BlockLink.xml +5 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.CirkwiView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.DirectoryView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.EventsView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Folder.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.NewsView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
- imio/smartweb/core/tests/test_section_external_content.py +23 -23
- imio/smartweb/core/tests/test_sections.py +3 -15
- imio/smartweb/core/tests/test_sitemap.py +41 -22
- imio/smartweb/core/upgrades/configure.zcml +36 -0
- imio/smartweb/core/upgrades/profiles/1053_to_1054/registry.xml +39 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Collection.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/File.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Image.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.BlockLink.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.CirkwiView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.DirectoryView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.EventsView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Folder.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.NewsView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Page.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.PortalPage.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Procedure.xml +12 -0
- imio/smartweb/core/viewlets/configure.zcml +10 -0
- imio/smartweb/core/viewlets/external_content.py +13 -5
- imio/smartweb/core/viewlets/odwb_widget_header.pt +19 -0
- imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/568.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/568.smartweb-webcomponents-compiled.js.LICENSE.txt +14 -0
- imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/804.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/src/utils/translation.js +2 -2
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/METADATA +28 -1
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/RECORD +74 -56
- imio/smartweb/core/webcomponents/build/css/323.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/392.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/528.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/647.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/js/143.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/144.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/392.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/493.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/528.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/528.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/647.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/729.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/729.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -642
- imio/smartweb/core/webcomponents/build/js/979.smartweb-webcomponents-compiled.js +0 -1
- /imio/smartweb/core/webcomponents/build/js/{9.smartweb-webcomponents-compiled.js.LICENSE.txt → 209.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{143.smartweb-webcomponents-compiled.js.LICENSE.txt → 218.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{493.smartweb-webcomponents-compiled.js.LICENSE.txt → 674.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{144.smartweb-webcomponents-compiled.js.LICENSE.txt → 799.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.2.34-py3.10-nspkg.pth → /imio.smartweb.core-1.2.37-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.34.dist-info → imio.smartweb.core-1.2.37.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[373],{99024:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LanguageContext:()=>b,default:()=>k});var a=n(25602),s=n(33467),l=n(64373),r=n(7278),c=n(86110),i=n(83198);const o=function(e){let t=(0,l.W6)();const s=n(7709),[o,m]=(0,a.useState)(e.activeFilter),[u,d]=(0,a.useState)(null),[v,f]=(0,a.useState)(null),{response:h,error:g,isLoading:E}=(0,c.A)({method:"get",url:"",baseURL:e.url,headers:{Accept:"application/json"},params:o});(0,a.useEffect)((()=>{if(null!==h){const e=h.topics.map((e=>({value:e.token,label:e.title}))),t=h.category?h.category.map((e=>({value:e.token,label:e.title}))):"";d(e),f(t)}}),[h]);const p=(0,a.useCallback)((e=>{let{target:{name:t,value:n}}=e;n.length>2?m((e=>({...e,[t]:n})),[]):m((e=>{const n={...e},{[t]:a,...s}=n;return s}))})),j=(0,a.useCallback)(((e,t)=>{const n=t.name;e?m((t=>({...t,[n]:e.value})),[]):m((e=>{const t={...e},{[n]:a,...s}=t;return s}))})),b=(0,a.useRef)(!0);(0,a.useEffect)((()=>{b.current?b.current=!1:(t.push({pathname:"./",search:s.stringify(o)}),e.onChange(o))}),[o]);let k=u&&u.filter((t=>t.value===e.activeFilter.topics)),w=v&&v.filter((t=>t.value===e.activeFilter.category));const N={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:n,isDisabled:a,isFocused:s,isSelected:l}=t;return{...e}}};return a.createElement(a.Fragment,null,a.createElement("form",{className:"r-filter",onSubmit:function(t){t.preventDefault(),e.onChange(o)}},a.createElement("div",{className:"r-filter-search"},a.createElement(i.rk,null,(e=>{let{translate:t}=e;return a.createElement("input",{className:"input-custom-class",name:"SearchableText",type:"text",value:o.SearchableText,onChange:p,placeholder:t({text:"Recherche"})})})),a.createElement("button",{type:"submit"}))),a.createElement("div",{className:"r-filter topics-Filter"},a.createElement(i.rk,null,(e=>{let{translate:t}=e;return a.createElement(r.Ay,{styles:N,name:"topics",className:"select-custom-class library-topics",isClearable:!0,onChange:j,options:u&&u,placeholder:t({text:"Thématiques"}),value:k&&k[0]})}))),a.createElement("div",{className:"r-filter facilities-Filter"},a.createElement(i.rk,null,(e=>{let{translate:t}=e;return a.createElement(r.Ay,{styles:N,name:"category",className:"select-custom-class library-facilities",isClearable:!0,onChange:j,options:v&&v,placeholder:t({text:"Catégories"}),value:w&&w[0]})}))))};var m=n(18874),u=n(60711),d=n.n(u),v=(n(29442),n(1182));n(1053);const f=e=>{let{queryUrl:t,onChange:s}=e,r=(0,l.W6)();const o=n(7709).parse((0,m.A)().toString()),u={...o,UID:o.u,fullobjects:1},[f,h]=(0,a.useState)(u),[g,E]=(0,a.useState)({}),[p,j]=(0,a.useState)(),[b,k]=(0,a.useState)(),{response:w,error:N,isLoading:y}=(0,c.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:f},[]);(0,a.useEffect)((()=>{null!==w&&E(w.items[0]),window.scrollTo(0,0)}),[w]),(0,a.useEffect)((()=>{g.items&&g.items.length>0&&(j(g.items.filter((e=>"File"===e["@type"]))),k(g.items.filter((e=>"Image"===e["@type"]))))}),[g]),d().locale("fr");const A=d()(g.created).startOf("minute").fromNow(),C=d()(g.modified).startOf("minute").fromNow();return a.createElement("div",{className:"new-content r-content"},a.createElement("button",{type:"button",onClick:function(){r.push("./"),s(null)}},a.createElement(i.HT,{text:"Retour"})),a.createElement("article",null,a.createElement("header",null,a.createElement("h2",{className:"r-content-title"},g.title),a.createElement("div",{className:"r-content-description"},a.createElement(v.$,null,g.description))),a.createElement("figure",null,a.createElement("div",{className:"r-content-img",style:{backgroundImage:g.image_affiche_scale?"url("+g.image_affiche_scale+")":""}})),a.createElement("div",{className:"r-content-news-info"},a.createElement("div",{className:"r-content-news-info-container"},a.createElement("div",{className:"r-content-news-info-schedul"},a.createElement("div",{className:"icon-baseline"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin",viewBox:"0 0 19.41 19.41"},a.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"}))),a.createElement("div",{className:"dpinlb"},a.createElement("div",{className:"r-content-news-info--date"},a.createElement("div",{className:"r-content-date"},A===C?a.createElement("div",{className:"r-content-date-publish"},a.createElement("span",null,"Publié ",A)):a.createElement("div",null,a.createElement("div",{className:"r-content-date-publish"},a.createElement("span",null,"Publié ",A)),a.createElement("div",{className:"r-card-date-last"},a.createElement("span",null,"Actualisé ",C," "))))))),null===g.site_url&&null===g.video_url?"":a.createElement("div",{className:"r-content-news-info-link"},a.createElement("div",{className:"icon-baseline"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.41 19.41"},a.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"}))),a.createElement("div",{className:"dpinlb"},null===g.site_url?"":a.createElement("div",{className:"r-content-news-info-event_link"},a.createElement("a",{href:g.site_url},g.site_url)),null===g.video_url?"":a.createElement("div",{className:"r-content-news-info--video"},a.createElement("a",{href:g.video_url},"Lien vers la vidéo")))),null===g.facebook&&null===g.instagram&&null===g.twitter?"":a.createElement("div",{className:"r-content-news-info-social"},a.createElement("ul",null,g.facebook?a.createElement("li",null,a.createElement("a",{href:g.facebook,target:"_blank"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"800",width:"1200",viewBox:"-204.79995 -341.33325 1774.9329 2047.9995"},a.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"}),a.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"})))):"",g.instagram?a.createElement("li",null,a.createElement("a",{href:g.instagram,target:"_blank"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"800",width:"1200",viewBox:"-100.7682 -167.947 873.3244 1007.682"},a.createElement("g",{fill:"#100f0d"},a.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"}),a.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"}))))):"",g.twitter?a.createElement("li",null,a.createElement("a",{href:g.twitter,target:"_blank"},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"800",width:"1200",viewBox:"-44.7006 -60.54775 387.4052 363.2865"},a.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"})))):"")))),a.createElement("div",{className:"r-content-text",dangerouslySetInnerHTML:{__html:g.text&&g.text.data}}),p&&a.createElement("div",{className:"r-content-files"},p.map(((e,t)=>a.createElement("div",{className:"r-content-file"},a.createElement("a",{key:t,href:e.targetUrl,className:"r-content-file-link",rel:"nofollow"},a.createElement("span",{className:"r-content-file-title"},e.title),a.createElement("span",{className:"r-content-file-icon"},a.createElement("svg",{width:"21",height:"21",viewBox:"0 0 24 24",fill:"none",stroke:"#8899a4","stroke-width":"2","stroke-linecap":"square","stroke-linejoin":"arcs"},a.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&&a.createElement("div",{className:"r-content-gallery"},a.createElement("div",{class:"spotlight-group flexbin r-content-gallery"},b.map(((e,t)=>a.createElement("a",{key:t,class:"spotlight",href:e.image_full_scale},a.createElement("img",{src:e.image_preview_scale,alt:""}))))))))},h=e=>{let{item:t}=e;const[n,s]=(0,a.useState)(),l=t.title&&t.title,r=t.description&&t.description,c=t.taxonomy_contact_category?t.taxonomy_contact_category[0].title:"";(0,a.useEffect)((()=>{r.length>=150?s(r.substring(0,150)+"..."):s(r)}),[t]),d().locale((0,a.useContext)(b));const o=d()(t.created).startOf("minute").fromNow(),m=d()(t.modified).startOf("minute").fromNow();return a.createElement("div",{className:"r-list-item"},a.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+")":""}}),a.createElement("div",{className:"r-item-text"},c?a.createElement("span",{className:"r-item-categorie"},c):"",a.createElement("span",{className:"r-item-title"},l),r?a.createElement(v.$,{className:"r-item-description"},n):"",a.createElement("div",{className:"r-item-read-more",style:{textDecoration:"none"}},o===m?a.createElement("div",{className:"r-card-date-last"},a.createElement("span",null,a.createElement(i.HT,{text:"Publié"})," "),a.createElement("span",null,o)):a.createElement("div",{className:"r-card-date-last"},a.createElement("span",null,a.createElement(i.HT,{text:"Actualisé"})," "),a.createElement("span",null,m)))),a.createElement("div",{className:"r-item-arrow-more"}))};var g=n(75681),E=n.n(g);const p=e=>{let{itemsArray:t,onChange:n,parentCallback:l}=e;return a.createElement(a.Fragment,null,a.createElement("ul",{className:"r-result-list actu-result-list"},t.map(((e,t)=>a.createElement("li",{key:t,className:"r-list-item-group",onClick:()=>{return t=e.UID,void n(t);var t}},a.createElement(s.N_,{className:"r-news-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+E()(e.title).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.UID),state:{idItem:e.UID}}},a.createElement(h,{item:e,key:e.created})))))))};var j=n(48743);const b=(0,a.createContext)("fr");function k(e){return a.createElement(b.Provider,{value:e.currentLanguage},a.createElement(s.Kd,{basename:e.viewPath},a.createElement(i.Kq,{language:e.currentLanguage,translation:j.A},a.createElement(w,{queryFilterUrl:e.queryFilterUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize}))))}const w=e=>{const t=n(7709),{u:s,...r}=Object.assign({b_start:0,fullobjects:1},t.parse((0,m.A)().toString())),[u,d]=(0,a.useState)([]),[v,h]=(0,a.useState)([]),[g,E]=(0,a.useState)(null),[j,b]=(0,a.useState)(r),[k,w]=(0,a.useState)(0),[N,y]=(0,a.useState)(!1),{response:A,error:C,isLoading:x,isMore:_}=(0,c.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:j,load:N},[]);(0,a.useEffect)((()=>{null!==A&&(d(_?e=>[...e,...A.items]:A.items),h(A.items_total))}),[A]);const z=e=>{E(e)},S=e=>{y(!1),w((e=>0)),b(e)};let P;(0,a.useEffect)((()=>{b((e=>({...e,b_start:k})))}),[k]),u&&u.length>0?P=a.createElement(p,{onChange:z,itemsArray:u}):x||(P=a.createElement("p",null,a.createElement(i.HT,{text:"Aucune actualité n'a été trouvée"})));const T=a.createElement("div",{className:"lds-roller-container"},a.createElement("div",{className:"lds-roller"},a.createElement("div",null),a.createElement("div",null),a.createElement("div",null),a.createElement("div",null),a.createElement("div",null),a.createElement("div",null),a.createElement("div",null),a.createElement("div",null)));return a.createElement("div",null,a.createElement("div",{className:"r-wrapper r-actu-wrapper"},a.createElement("div",{className:"r-result r-annuaire-result"},a.createElement(l.dO,null,a.createElement(l.qh,{exact:!0,path:"/"},a.createElement("div",{className:"r-result-filter actu-result-filter"},a.createElement(o,{url:e.queryFilterUrl,activeFilter:j,onChange:S}),e.proposeUrl&&a.createElement("div",{className:"r-add-news"},a.createElement("a",{target:"_blank",href:e.proposeUrl},a.createElement(i.HT,{text:"Proposer une actualité"}))),v>0?a.createElement("p",{className:"r-results-numbers"},a.createElement("span",null,v)," ",v>1?a.createElement(i.HT,{text:"Actualités trouvées"}):a.createElement(i.HT,{text:"Actualité trouvée"})):a.createElement("p",{className:"r-results-numbers"},a.createElement(i.HT,{text:"Aucun résultat"}))),a.createElement("div",null,P),a.createElement("div",{className:"r-load-more"},v-e.batchSize>k?a.createElement("div",null,a.createElement("span",{className:"no-more-result"},x?T:""),a.createElement("button",{onClick:()=>{w((t=>t+parseInt(e.batchSize))),y(!0)},className:"btn-grad"},x?a.createElement(i.HT,{text:"Chargement..."}):a.createElement(i.HT,{text:"Plus de résultats"}))):a.createElement("span",{className:"no-more-result"},x?T:""))),a.createElement(l.qh,{path:"/:name"},a.createElement(f,{onChange:z,onReturn:S,queryUrl:e.queryUrl}))))))}},86110:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(25602),s=n(99938);const l=e=>{const[t,n]=(0,a.useState)(null),[l,r]=(0,a.useState)(""),[c,i]=(0,a.useState)(!0),[o,m]=(0,a.useState)(!1),u=new AbortController;return(0,a.useEffect)((()=>((async e=>{if(i(!0),e.load?m(!0):m(!1),0!=Object.keys(e.params).length)try{const t=await s.A.request(e);n(t.data),i(!1),r(null)}catch(e){r(e)}else n(null)})({...e,signal:u.signal}),()=>u.abort())),[e.params]),{response:t,error:l,isLoading:c,isMore:o}}},18874:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(25602);var a=n(64373);const s=function(){return new URLSearchParams((0,a.zy)().search)}},48743:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const a={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"},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"},"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"},"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 ...)"},Personnalisé:{en:"Custom",fr:"Personnalisé",de:"Benutzerdefiniert",nl:"Aangepast"}}},35358:(e,t,n)=>{var a={"./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 s(e){var t=l(e);return n(t)}function l(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=l,e.exports=s,s.id=35358}}]);
|
@@ -0,0 +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:()=>w});var n=a(25602),l=a(33467),r=a(64373),c=a(7278),s=a(86110),i=a(83198);const o=function(e){let t=(0,r.W6)();const l=a(7709),[o,m]=(0,n.useState)(e.activeFilter),[u,d]=(0,n.useState)(null),[h,g]=(0,n.useState)(null),[p,v]=(0,n.useState)(null),{response:f,error:E,isLoading:w}=(0,s.A)({method:"get",url:"",baseURL:e.url,headers:{Accept:"application/json"},params:o});(0,n.useEffect)((()=>{if(null!==f){const e=f.topics&&f.topics.map((e=>({value:e.token,label:e.title}))),t=f.taxonomy_contact_category&&f.taxonomy_contact_category.map((e=>({value:e.token,label:e.title}))),a=f.facilities&&f.facilities.map((e=>({value:e.token,label:e.title})));d(e),g(t),v(a)}}),[f]);const b=(0,n.useCallback)((e=>{let{target:{name:t,value:a}}=e;a.length>2?m((e=>({...e,[t]:a})),[]):m((e=>{const a={...e},{[t]:n,...l}=a;return l}))})),y=(0,n.useCallback)(((e,t)=>{const a=t.name;e?m((t=>({...t,[a]:e.value})),[]):m((e=>{const t={...e},{[a]:n,...l}=t;return l}))})),N=(0,n.useRef)(!0);(0,n.useEffect)((()=>{N.current?N.current=!1:(t.push({pathname:"./",search:l.stringify(o)}),e.onChange(o))}),[o]);let k=u&&u.filter((t=>t.value===e.activeFilter.topics)),A=h&&h.filter((t=>t.value===e.activeFilter.taxonomy_contact_category)),C=p&&p.filter((t=>t.value===e.activeFilter.facilities));const x={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:n,isFocused:l,isSelected:r}=t;return{...e}}};return n.createElement(n.Fragment,null,n.createElement("form",{className:"r-filter",onSubmit:function(t){t.preventDefault(),e.onChange(o)}},n.createElement("div",{className:"r-filter-search"},n.createElement(i.rk,null,(e=>{let{translate:t}=e;return n.createElement("input",{className:"input-custom-class",name:"SearchableText",type:"text",value:o.SearchableText,onChange:b,placeholder:t({text:"Recherche"})})})),n.createElement("button",{type:"submit"}))),n.createElement("div",{className:"r-filter topics-Filter"},n.createElement(i.rk,null,(e=>{let{translate:t}=e;return n.createElement(c.Ay,{styles:x,name:"topics",className:"select-custom-class library-topics",isClearable:!0,onChange:y,options:u&&u,placeholder:t({text:"Thématiques"}),value:k&&k[0]})}))),n.createElement("div",{className:"r-filter facilities-Filter"},n.createElement(i.rk,null,(e=>{let{translate:t}=e;return n.createElement(c.Ay,{styles:x,name:"taxonomy_contact_category_for_filtering",className:"select-custom-class library-facilities",isClearable:!0,onChange:y,options:h&&h,placeholder:t({text:"Catégories"}),value:A&&A[0]})}))),n.createElement("div",{className:"r-filter facilities-Filter"},n.createElement(i.rk,null,(e=>{let{translate:t}=e;return n.createElement(c.Ay,{styles:x,name:"facilities",className:"select-custom-class library-facilities",isClearable:!0,onChange:y,options:p&&p,placeholder:t({text:"Facilités"}),value:C&&C[0]})}))))};var m=a(18874),u=a(1182);a(1053);const d=e=>{let{queryUrl:t,onChange:l}=e,c=(0,r.W6)();const o=a(7709),{u:d,...h}=Object.assign({UID:o.parse((0,m.A)().toString()).u,fullobjects:1}),[g,p]=(0,n.useState)(h),[v,f]=(0,n.useState)({}),[E,w]=(0,n.useState)(),[b,y]=(0,n.useState)(),[N,k]=(0,n.useState)([]),[A,C]=(0,n.useState)(),[x,_]=(0,n.useState)(!0),{response:z}=(0,s.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:g},[]);(0,n.useEffect)((()=>{p(h)}),[o.parse((0,m.A)().toString()).u]),(0,n.useEffect)((()=>{null!==z&&f(z.items[0]),window.scrollTo(0,0)}),[z]),(0,n.useEffect)((()=>{if(v.image_affiche_scale){const e=new Image;e.src=v.image_affiche_scale,e.onload=()=>{C(e)}}}),[v]),(0,n.useEffect)((()=>{v.urls&&k(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 S=v.country&&v.country.title,I="https://www.google.com/maps/dir/?api=1&destination="+v.street+"+"+v.number+"+"+v.complement+"+"+v.zipcode+"+"+v.city+"+"+S;I=I.replaceAll("+null","");return n.createElement("div",{className:"annuaire-content r-content"},n.createElement("button",{type:"button",onClick:function(){c.push("./"),l(null)}},n.createElement(i.HT,{text:"Retour"})),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(u.$,null,v.description)),n.createElement("div",{className:"contactTextAll"},n.createElement("p",{className:"annuaire-info-title"},"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:I,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("div",{onClick:()=>{_(!x)},className:"annuaire-schedul",role:"button","aria-expanded":"false"},n.createElement("div",{className:"annuaire-schedul-icon"},n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"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"},x?n.createElement(n.Fragment,null,n.createElement("span",{className:"Fermé"===v.schedule_for_today?"annuaire-day-close":"annuaire-day-open"},v.schedule_for_today),n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",fill:"currentColor",class:"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,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:"Logo"}):"",v.logo_thumb_scale&&n.createElement("img",{className:"annuaire-logo",src:v.logo_thumb_scale,alt:"Logo"}))),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:""}))))))))},h=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],o=t.number?t.number:"",m=t.street?t.street:"",u=t.complement?t.complement:"",d=t.zipcode?t.zipcode:"",h=t.city?t.city:"",g=t.phones?t.phones:"",p=t.mails?t.mails:"",v=t.topics?t.topics:"";let f=t.country&&t.country.title,E="https://www.google.com/maps/dir/?api=1&destination="+t.street+"+"+t.number+"+"+t.complement+"+"+t.zipcode+"+"+t.city+"+"+f;return E=E.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"},m?n.createElement("div",{className:"r-item-adresse"},o?n.createElement("span",null,o+" "):"",m?n.createElement("span",null,m+", "):"",u?n.createElement("span",null,u+", "):"",n.createElement("br",null),d?n.createElement("span",null,d+" "):"",h?n.createElement("span",null,h):"",n.createElement("div",{className:"itineraty"},n.createElement("a",{href:E,target:"_blank",rel:"noreferrer"},"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"},p?p.map(((e,t)=>n.createElement("span",{key:t},e.mail_address))):""),n.createElement("div",{className:"topics"},v?v.map(((e,t)=>n.createElement("span",{key:t},e.title))):"")))))};var g=a(75681),p=a.n(g);const v=e=>{let{contactArray:t,onChange:a,onHover:r,parentCallback:c}=e;function s(e){r(e)}return 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:()=>s(e.UID),onMouseLeave:()=>s(null),onClick:()=>{return t=e.UID,void a(t);var t}},n.createElement(l.N_,{className:"r-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+p()(e.title).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.UID),state:{idItem:e.UID}}}),n.createElement(h,{item:e,key:e.created}))))))};var f=a(81499),E=a(48743);function w(e){return n.createElement(l.Kd,{basename:e.viewPath},n.createElement(i.Kq,{language:e.currentLanguage,translation:E.A},n.createElement(b,{queryFilterUrl:e.queryFilterUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize,displayMap:e.displayMap})))}function b(e){const t=a(7709),{u:l,...c}=Object.assign({b_start:0,fullobjects:1},t.parse((0,m.A)().toString())),[u,h]=(0,n.useState)([]),[g,p]=(0,n.useState)([]),[E,w]=(0,n.useState)(null),[b,y]=(0,n.useState)(null),[N,k]=(0,n.useState)(c),[A,C]=(0,n.useState)(0),[x,_]=(0,n.useState)(!1),z="True"===e.displayMap,{response:S,error:I,isLoading:M,isMore:L}=(0,s.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:N,load:x},[]);(0,n.useEffect)((()=>{null!==S&&(h(L?e=>[...e,...S.items]:S.items),p(S.items_total))}),[S]);const U=e=>{w(e)},T=e=>{y(e)};(0,n.useEffect)((()=>{k((e=>({...e,b_start:A})))}),[A]);let D=document.getElementById("portal-header").offsetHeight;const P=(0,n.useRef)(),[B,F]=n.useState({height:0});let q,R;(0,n.useEffect)((()=>{F({height:P.current.clientHeight})}),[P.current]),u&&u.length>0?(q=n.createElement(v,{onChange:U,contactArray:u,onHover:T}),R=n.createElement(f.A,{headerHeight:B.height+D,clickId:E,hoverId:b,items:u,queryUrl:e.queryUrl})):M||(q=n.createElement("p",null,n.createElement(i.HT,{text:"Aucun contact n'a été trouvé"})));const V=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(z?"view-map":"no-map")},n.createElement("div",{className:"r-result-filter-container",ref:P,style:{top:D}},n.createElement("div",{id:"r-result-filter",className:"r-result-filter container annuaire-result-filter"},n.createElement(o,{url:e.queryFilterUrl,activeFilter:N,onChange:e=>{_(!1),C((()=>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(i.HT,{text:"Proposer un contact"}))),g>0?n.createElement("p",{className:"r-results-numbers"},n.createElement("span",null,g),g>1?n.createElement(i.HT,{text:"contacts trouvés"}):n.createElement(i.HT,{text:"contact trouvé"})):n.createElement("p",{className:"r-results-numbers"},n.createElement(i.HT,{text:"Aucun résultat"})))),n.createElement(r.dO,null,n.createElement(r.qh,{exact:!0,path:"/"},n.createElement("div",{className:"r-wrapper container r-annuaire-wrapper"},n.createElement("div",{className:"r-result r-annuaire-result"},n.createElement("div",null,q),n.createElement("div",{className:"r-load-more"},g-e.batchSize>A?n.createElement("div",null,n.createElement("span",{className:"no-more-result"},M?V:""),n.createElement("button",{onClick:()=>{C((t=>t+parseInt(e.batchSize))),_(!0)},className:"btn-grad"},M?n.createElement(i.HT,{text:"Chargement..."}):n.createElement(i.HT,{text:"Plus de résultats"}))):n.createElement("span",{className:"no-more-result"},M?V:""))),z&&n.createElement("div",{className:"r-map annuaire-map",style:{top:B.height+D,height:"calc(100vh-"+B.height+D}},R))),n.createElement(r.qh,{path:"/:name"},n.createElement("div",{className:"r-wrapper container r-annuaire-wrapper"},n.createElement("div",{className:"r-result r-annuaire-result"},n.createElement(d,{queryUrl:e.queryUrl,onChange:U})),z&&n.createElement("div",{className:"r-map annuaire-map",style:{top:B.height+D,height:"calc(100vh-"+B.height+D}},R)))))}},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});a(25602);var n=a(64373);const l=function(){return new URLSearchParams((0,n.zy)().search)}},81499:(e,t,a)=>{a.d(t,{A:()=>E});var n=a(25602),l=a(39978),r=a(97238),c=a(27948),s=a(31493),i=a(45823),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(33467),p=a(75681),v=a.n(p);function f(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 E=function(e){const[t,l]=(0,n.useState)(null),[m,p]=(0,n.useState)([]),[E,w]=(0,n.useState)(null),b=a(7709),{u:y,...N}=Object.assign({UID:b.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));p(t)}),[e]);const k=e=>new(u().Icon)({iconUrl:e,iconSize:[29,37]}),A=t=>t===e.clickId||t===e.hoverId?999:1;(0,n.useEffect)((()=>{var e=m&&m.filter((e=>e.UID===N.UID));l(e[0])}),[m]),(0,n.useEffect)((()=>{if(m.length>0){let e=[];m.map(((t,a)=>{let n=t.geolocation.latitude,l=t.geolocation.longitude;e.push([n,l])})),w(e)}}),[m]);const C=m.map((t=>{return n.createElement(r.p,{key:t.UID,icon:(a=t.UID,a===N.UID||a===e.hoverId?k(h):k(d)),zIndexOffset:A(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(/\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 a}));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!=E?n.createElement(f,{activeItem:t,activeItemUID:N.UID,arrayOfLatLngs:E&&E}):"",m&&C))}},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"},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"},"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"},"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 ...)"},Personnalisé:{en:"Custom",fr:"Personnalisé",de:"Benutzerdefiniert",nl:"Aangepast"}}}}]);
|