imio.smartweb.core 1.3.7__py3-none-any.whl → 1.3.8__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/contents/rest/campaign/endpoint.py +6 -6
- imio/smartweb/core/webcomponents/build/css/666.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/js/666.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Campaign/Campaign.scss +17 -0
- imio/smartweb/core/webcomponents/src/components/Campaign/CampaignContent/CampaignContent.jsx +28 -11
- imio/smartweb/core/webcomponents/src/utils/CampaignMap.jsx +2 -1
- {imio_smartweb_core-1.3.7.dist-info → imio.smartweb.core-1.3.8.dist-info}/METADATA +15 -15
- {imio_smartweb_core-1.3.7.dist-info → imio.smartweb.core-1.3.8.dist-info}/RECORD +14 -14
- {imio_smartweb_core-1.3.7.dist-info → imio.smartweb.core-1.3.8.dist-info}/WHEEL +1 -1
- /imio.smartweb.core-1.3.7-py3.12-nspkg.pth → /imio.smartweb.core-1.3.8-py3.8-nspkg.pth +0 -0
- {imio_smartweb_core-1.3.7.dist-info/licenses → imio.smartweb.core-1.3.8.dist-info}/LICENSE.GPL +0 -0
- {imio_smartweb_core-1.3.7.dist-info/licenses → imio.smartweb.core-1.3.8.dist-info}/LICENSE.rst +0 -0
- {imio_smartweb_core-1.3.7.dist-info → imio.smartweb.core-1.3.8.dist-info}/namespace_packages.txt +0 -0
- {imio_smartweb_core-1.3.7.dist-info → imio.smartweb.core-1.3.8.dist-info}/top_level.txt +0 -0
@@ -80,10 +80,10 @@ class CampaignEndpoint(BaseTsEndpoint):
|
|
80
80
|
|
81
81
|
else:
|
82
82
|
# single project
|
83
|
-
json.pop("evolution")
|
84
|
-
json.pop("roles")
|
85
|
-
json.pop("submission")
|
86
|
-
json.pop("user")
|
83
|
+
json.pop("evolution", None)
|
84
|
+
json.pop("roles", None)
|
85
|
+
json.pop("submission", None)
|
86
|
+
json.pop("user", None)
|
87
87
|
json_res = json
|
88
88
|
# Return a json which represents a project or which contains a list of projects
|
89
89
|
return json_res
|
@@ -138,7 +138,7 @@ class ZonesEndpoint(BaseTsEndpoint):
|
|
138
138
|
def query_url(self):
|
139
139
|
wcs_api = get_ts_api_url("wcs")
|
140
140
|
campaign_id = self.context.linked_campaign
|
141
|
-
return f"{wcs_api}/cards/imio-ideabox-zone/list?
|
141
|
+
return f"{wcs_api}/cards/imio-ideabox-zone/list?campagne={campaign_id}"
|
142
142
|
|
143
143
|
|
144
144
|
@implementer(IExpandableElement)
|
@@ -157,7 +157,7 @@ class TsTopicsEndpoint(BaseTsEndpoint):
|
|
157
157
|
def query_url(self):
|
158
158
|
wcs_api = get_ts_api_url("wcs")
|
159
159
|
campaign_id = self.context.linked_campaign
|
160
|
-
return f"{wcs_api}/cards/imio-ideabox-theme/list?
|
160
|
+
return f"{wcs_api}/cards/imio-ideabox-theme/list?campagne={campaign_id}"
|
161
161
|
|
162
162
|
|
163
163
|
@implementer(IExpandableElement)
|
@@ -1 +1 @@
|
|
1
|
-
body,html{max-width:100%;overflow-x:initial!important}.r-content-vote-btn a{background:#252525;border-radius:8px;color:#fff;display:inline-block;padding:1rem;text-decoration:none;transition:all .5s ease}#content>header{display:none}.row{margin:0}.breadcrumb,.row{padding:0}.portaltype-imio-smartweb-campaignview header#content-header{z-index:9}.campaign-vote{display:flex;font-size:13px;gap:13px}.campaign-vote .bi{font-size:13px;margin-right:5px}.campaign-vote-pour{background-color:#ebf9ed;border-radius:5px;color:#0ca72b;padding:5px 15px;text-decoration:none}.campaign-vote-pour:focus,.campaign-vote-pour:hover{background-color:#d9f8de;color:#0ca72b}.campaign-vote-contre{background-color:#f4e2e4;border-radius:5px;color:#b70a0a;padding:5px 15px;text-decoration:none}.campaign-vote-contre:focus,.campaign-vote-contre:hover{background-color:#f0d0d4;color:#b70a0a}.campaign-vote-contre-count,.campaign-vote-contre-text,.campaign-vote-pour-count,.r-item-arrow{font-size:15px}.r-item-arrow{align-items:center;background:#f2f2f2;border-radius:50px;display:flex;height:30px;justify-content:center;opacity:0;position:absolute;right:0;top:50%;translate:0 -50%;width:30px}.r-list-item-group:focus .r-item-arrow,.r-list-item-group:hover .r-item-arrow{opacity:1}body .outer-wrapper>.container{max-width:100%!important;padding:0!important}@media screen and (min-width:1200px){.r-campaign-wrapper{margin-right:inherit;max-width:100%;padding-left:0;padding-right:0}}#portal-column-content{padding:0!important}#portal-column-content h1{font-size:0;position:absolute}#viewlet-below-content-description,#viewlet-below-content-title{display:none}header#content-header{background:#fff;position:-webkit-sticky;position:sticky;top:0}article>header{margin-bottom:0}.r-campaign-result{grid-area:1/1/3/2}.r-map.campaign-map{grid-area:1/2/2/3;position:-webkit-sticky;position:sticky}.r-wrapper{display:block}@media screen and (min-width:1200px){.r-wrapper{display:grid;gap:40px;grid-template-columns:minmax(20px,800px) minmax(20px,100%);justify-content:space-between;margin-left:auto;width:calc(558px + 50vw)}}@media screen and (min-width:1400px){.r-wrapper{width:calc(648px + 50vw)}}.r-wrapper .r-result{margin-top:2rem;padding-bottom:2rem}.r-wrapper .r-result-list{padding:0}.r-wrapper .r-result-list .r-list-item-group{list-style:none;margin:1rem 0;position:relative}.r-wrapper .r-result-list .r-list-item-group .r-list-item-link{inset:0!important;position:absolute!important}.r-wrapper .r-result-list .r-list-item-group .r-list-item{display:flex;flex-direction:column;height:100%}@media screen and (min-width:600px){.r-wrapper .r-result-list .r-list-item-group .r-list-item{flex-direction:row}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img{height:149px;padding-bottom:0;width:246px}}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text{flex-grow:1;margin-top:.6rem}@media screen and (min-width:600px){.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text{margin-left:1.5rem;margin-top:0}}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text a{position:relative}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-title{display:block;font-weight:700}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-categorie{display:block}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all{display:flex;gap:10px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-adresse{width:36%}@media screen and (max-width:1200px){.r-wrapper .r-map{margin-top:2rem!important}.r-wrapper .r-map .leaflet-container{height:50vh!important}}.r-load-more{margin-bottom:2rem;text-align:center}.r-load-more button{background:#000;border:1px solid #0000;border-radius:10px;border-bottom-left-radius:10px;border-bottom-left-radius:0;color:#fff;display:block;font-size:14px;font-weight:700;margin:0 auto;padding:.4rem 1rem}.r-load-more button:hover{background:rgba(0,0,0,.871)}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img{background-color:#000;background-size:cover;border-radius:5px;padding-bottom:56%;position:relative;width:100%;z-index:-1}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img.r-item-img-placeholder{background-color:#f2f2f2}@media screen and (min-width:600px){.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img{flex:246px 0 0;height:149px;padding-bottom:0;width:246px}}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img div,.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img img{border-radius:5px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text{display:flex;flex-direction:column;font-size:13px;gap:10px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-title{font-size:18px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-categorie{color:#747474;font-size:13px;font-weight:400;margin-bottom:5px;text-transform:uppercase}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all{color:#727272}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all a{color:#000}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-adresse .itineraty{margin-top:5px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-adresse .itineraty:before{background-size:contain;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7.68 10.97'%3E%3Cg data-name='Calque 2'%3E%3Cpath d='M3.84 5.21a1.37 1.37 0 1 1 1.37-1.37 1.37 1.37 0 0 1-1.37 1.37m0-5.21A3.84 3.84 0 0 0 0 3.84C0 6.72 3.84 11 3.84 11s3.84-4.28 3.84-7.16A3.84 3.84 0 0 0 3.84 0' data-name='Calque 1'/%3E%3C/g%3E%3C/svg%3E") no-repeat;content:"";display:inline-block;height:15px;vertical-align:middle;width:15px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-campaign{width:100%}.icon-baseline{align-self:center;display:inline-flex;margin-right:.4rem}.icon-baseline svg{height:1em;position:relative;top:.125em;width:1em}.dpinlb{display:inline-block;vertical-align:top}.r-recurence-past{opacity:.5}.recurence-schedul{position:relative}.recurence-schedul-more{display:block}.recurence-modal-display{background-color:#fff;border:1px solid #dadada;border-radius:10px;box-shadow:.7px 0 5.3px rgba(0,0,0,.024),2.5px 0 17.9px rgba(0,0,0,.036),11px 0 80px #0000000f;left:0;padding:10px 15px!important;position:absolute;right:0;top:0;width:-webkit-max-content;width:max-content}.recurence-modal-display span{border-bottom:1px solid #969696;color:#000;display:block;font-size:14px;margin-bottom:.4rem}.recurence-modal-display ul{margin:0}.recurence-modal-display li{list-style:none}.recurence-modal-hide{display:none}.r-content-img{margin-top:1.5rem;padding-bottom:60%;position:relative}.r-content-header{margin-bottom:1rem}.r-content-title{margin:0}.r-content-recur-start-hours{display:flex}.news-info-title{color:#008fd2;display:block;font-weight:700;margin-bottom:1rem}.r-content-news-info{display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:2rem}@media screen and (min-width:600px){.r-content-news-info-container{column-count:2}}.r-content-news-info-container>div{break-inside:avoid;margin:.6rem 0;padding-right:3rem}.r-content-news-info-container>div svg{width:16px}.r-content-news-info-container .r-content-news-info--date{display:flex}.r-content-news-info-container .r-content-news-info--date .r-content-date-end,.r-content-news-info-container .r-content-news-info--date .r-content-date-start,.r-content-news-info-container .r-content-news-info--date .r-content-date-start-hours{display:flex;flex-wrap:wrap}.r-content-news-info-container .r-content-news-info-social svg{height:30px;width:30px}.r-content-news-info-container .r-content-news-info-social ul{align-items:center;display:flex;margin:0}.r-content-news-info-container .r-content-news-info-social ul li{list-style:none}.r-content-news-info-container .r-content-news-info-social ul li a:hover{opacity:.7}@media screen and (max-width:1000px){.r-content-news-info-action{margin-top:1.1rem}}.r-content-news-info-action a{text-decoration:none}.r-content-news-info-action>div{margin:.6rem 0}.r-content-news-info-action .r-content-booking{margin-top:0}.r-content-news-info-action .r-content-booking a{align-items:center;background:#000;border-radius:10px;border-bottom-left-radius:0;color:#fff;cursor:pointer;display:block;display:flex;font-weight:500;gap:10px;padding:.4rem 1rem;text-decoration:none}.r-content-news-info-action .r-content-booking a svg{width:22px;fill:#fff}.r-content-news-info-action .r-content-booking a:hover{background:#3f3f3f;color:#fff}.r-content-topics{display:flex;gap:15px}.r-content-topics span{background:#f1f1f1;border-radius:5px;margin-right:5px;padding:5px}.r-content-title-cat{color:#8e8e8e;font-size:14px;margin-right:5px}smartweb-campaign{display:block;min-height:80vh}.campaign-comment-container{border:1px solid #cbcbcb;border-radius:5px;color:#6c6c6c;font-size:14px;margin-top:2rem;padding:24px}.campaign-comment-title{border-bottom:1px solid #cbcbcb;color:#0f0f0f;font-size:18px;font-weight:400;margin-bottom:2rem}.campaign-comment p{color:#171717;font-size:1rem;margin-bottom:0;margin-top:5px}.campaign-comment-actions{text-align:center}.campaign-comment-action-button{background:#f5f5f5;border:1px solid #0000;border-radius:5px;display:inline-block;font-size:14px;font-weight:500;margin:1rem 0;padding:9px;text-align:center;text-transform:uppercase}.campaign-comment-action-button:focus,.campaign-comment-action-button:hover{border:1px solid #bbb}.no-map .envent-content{margin:0 auto;max-width:700px}.no-map .r-result-filter-container{position:relative;top:inherit}.no-map .r-item-title{margin-bottom:1rem!important}.no-map .r-item-text{padding-bottom:2rem}@media screen and (min-width:600px){.no-map .r-campaign-wrapper{display:block}.no-map .r-result-list{display:grid;gap:20px;grid-template-columns:1fr 1fr 1fr;max-width:1296px}.no-map .r-list-item-group{transition:all .2s ease}.no-map .r-list-item-group:focus,.no-map .r-list-item-group:hover{transform:translateY(-10px)!important}.no-map .r-list-item-group .r-list-item{box-shadow:0 8px 26px #00000014;flex-direction:column!important}.no-map .r-list-item-group .r-list-item .r-item-img{border-radius:0!important;height:0!important;margin-bottom:.5rem;padding-bottom:60%!important;width:100%!important}.no-map .r-list-item-group .r-list-item .r-item-text{display:grid;grid-template-columns:1fr 1fr;margin-right:1.5rem}.no-map .r-list-item-group .r-list-item .r-item-text:after{display:none}.no-map .r-list-item-group .r-list-item .r-item-text .r-item-categorie{grid-row-start:1}.no-map .r-list-item-group .r-list-item .r-item-text .r-item-title{font-weight:500!important;grid-column-end:3;grid-column-start:1;grid-row-start:2;margin-bottom:2rem;margin-top:1rem}.no-map .r-list-item-group .r-list-item .r-item-text .r-item-date{grid-column-start:2;grid-row-start:1;justify-self:end}}.no-map .r-result.r-campaign-result{max-width:1296px}.no-map .campaign-content{margin:0 auto;max-width:700px}.r-list-item.Publié sans vote .campaign-vote,.vote_nodisplay,figure.Publié sans vote .campaign-vote{display:none}.vote_noactif{color:#c7c7c7;filter:grayscale(30%);opacity:.6;pointer-events:none}
|
1
|
+
body,html{max-width:100%;overflow-x:initial!important}.r-content-vote-btn a{background:#252525;border-radius:8px;color:#fff;display:inline-block;padding:1rem;text-decoration:none;transition:all .5s ease}#content>header{display:none}.row{margin:0}.breadcrumb,.row{padding:0}.portaltype-imio-smartweb-campaignview header#content-header{z-index:9}.campaign-vote{display:flex;font-size:13px;gap:13px}.campaign-vote .bi{font-size:13px;margin-right:5px}.campaign-vote-pour{background-color:#ebf9ed;border-radius:5px;color:#0ca72b;padding:5px 15px;text-decoration:none}.campaign-vote-pour:focus,.campaign-vote-pour:hover{background-color:#d9f8de;color:#0ca72b}.campaign-vote-contre{background-color:#f4e2e4;border-radius:5px;color:#b70a0a;padding:5px 15px;text-decoration:none}.campaign-vote-contre:focus,.campaign-vote-contre:hover{background-color:#f0d0d4;color:#b70a0a}.campaign-vote-contre-count,.campaign-vote-contre-text,.campaign-vote-pour-count,.r-item-arrow{font-size:15px}.r-item-arrow{align-items:center;background:#f2f2f2;border-radius:50px;display:flex;height:30px;justify-content:center;opacity:0;position:absolute;right:0;top:50%;translate:0 -50%;width:30px}.r-list-item-group:focus .r-item-arrow,.r-list-item-group:hover .r-item-arrow{opacity:1}body .outer-wrapper>.container{max-width:100%!important;padding:0!important}@media screen and (min-width:1200px){.r-campaign-wrapper{margin-right:inherit;max-width:100%;padding-left:0;padding-right:0}}#portal-column-content{padding:0!important}#portal-column-content h1{font-size:0;position:absolute}#viewlet-below-content-description,#viewlet-below-content-title{display:none}header#content-header{background:#fff;position:-webkit-sticky;position:sticky;top:0}article>header{margin-bottom:0}.r-campaign-result{grid-area:1/1/3/2}.r-map.campaign-map{grid-area:1/2/2/3;position:-webkit-sticky;position:sticky}.r-wrapper{display:block}@media screen and (min-width:1200px){.r-wrapper{display:grid;gap:40px;grid-template-columns:minmax(20px,800px) minmax(20px,100%);justify-content:space-between;margin-left:auto;width:calc(558px + 50vw)}}@media screen and (min-width:1400px){.r-wrapper{width:calc(648px + 50vw)}}.r-wrapper .r-result{margin-top:2rem;padding-bottom:2rem}.r-wrapper .r-result-list{padding:0}.r-wrapper .r-result-list .r-list-item-group{list-style:none;margin:1rem 0;position:relative}.r-wrapper .r-result-list .r-list-item-group .r-list-item-link{inset:0!important;position:absolute!important}.r-wrapper .r-result-list .r-list-item-group .r-list-item{display:flex;flex-direction:column;height:100%}@media screen and (min-width:600px){.r-wrapper .r-result-list .r-list-item-group .r-list-item{flex-direction:row}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img{height:149px;padding-bottom:0;width:246px}}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text{flex-grow:1;margin-top:.6rem}@media screen and (min-width:600px){.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text{margin-left:1.5rem;margin-top:0}}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text a{position:relative}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-title{display:block;font-weight:700}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-categorie{display:block}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all{display:flex;gap:10px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-adresse{width:36%}@media screen and (max-width:1200px){.r-wrapper .r-map{margin-top:2rem!important}.r-wrapper .r-map .leaflet-container{height:50vh!important}}.r-load-more{margin-bottom:2rem;text-align:center}.r-load-more button{background:#000;border:1px solid #0000;border-radius:10px;border-bottom-left-radius:10px;border-bottom-left-radius:0;color:#fff;display:block;font-size:14px;font-weight:700;margin:0 auto;padding:.4rem 1rem}.r-load-more button:hover{background:rgba(0,0,0,.871)}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img{background-color:#000;background-size:cover;border-radius:5px;padding-bottom:56%;position:relative;width:100%;z-index:-1}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img.r-item-img-placeholder{background-color:#f2f2f2}@media screen and (min-width:600px){.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img{flex:246px 0 0;height:149px;padding-bottom:0;width:246px}}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img div,.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-img img{border-radius:5px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text{display:flex;flex-direction:column;font-size:13px;gap:10px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-title{font-size:18px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-categorie{color:#747474;font-size:13px;font-weight:400;margin-bottom:5px;text-transform:uppercase}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all{color:#727272}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all a{color:#000}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-adresse .itineraty{margin-top:5px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-adresse .itineraty:before{background-size:contain;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7.68 10.97'%3E%3Cg data-name='Calque 2'%3E%3Cpath d='M3.84 5.21a1.37 1.37 0 1 1 1.37-1.37 1.37 1.37 0 0 1-1.37 1.37m0-5.21A3.84 3.84 0 0 0 0 3.84C0 6.72 3.84 11 3.84 11s3.84-4.28 3.84-7.16A3.84 3.84 0 0 0 3.84 0' data-name='Calque 1'/%3E%3C/g%3E%3C/svg%3E") no-repeat;content:"";display:inline-block;height:15px;vertical-align:middle;width:15px}.r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text .r-item-all .r-item-campaign{width:100%}.icon-baseline{align-self:center;display:inline-flex;margin-right:.4rem}.icon-baseline svg{height:1em;position:relative;top:.125em;width:1em}.dpinlb{display:inline-block;vertical-align:top}.r-recurence-past{opacity:.5}.recurence-schedul{position:relative}.recurence-schedul-more{display:block}.recurence-modal-display{background-color:#fff;border:1px solid #dadada;border-radius:10px;box-shadow:.7px 0 5.3px rgba(0,0,0,.024),2.5px 0 17.9px rgba(0,0,0,.036),11px 0 80px #0000000f;left:0;padding:10px 15px!important;position:absolute;right:0;top:0;width:-webkit-max-content;width:max-content}.recurence-modal-display span{border-bottom:1px solid #969696;color:#000;display:block;font-size:14px;margin-bottom:.4rem}.recurence-modal-display ul{margin:0}.recurence-modal-display li{list-style:none}.recurence-modal-hide{display:none}.r-content-img{margin-top:1.5rem;padding-bottom:60%;position:relative}.r-content-header{margin-bottom:1rem}.r-content-title{margin:0}.r-content-recur-start-hours{display:flex}.news-info-title{color:#008fd2;display:block;font-weight:700;margin-bottom:1rem}.r-content-news-info{display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:2rem}@media screen and (min-width:600px){.r-content-news-info-container{column-count:2}}.r-content-news-info-container>div{break-inside:avoid;margin:.6rem 0;padding-right:3rem}.r-content-news-info-container>div svg{width:16px}.r-content-news-info-container .r-content-news-info--date{display:flex}.r-content-news-info-container .r-content-news-info--date .r-content-date-end,.r-content-news-info-container .r-content-news-info--date .r-content-date-start,.r-content-news-info-container .r-content-news-info--date .r-content-date-start-hours{display:flex;flex-wrap:wrap}.r-content-news-info-container .r-content-news-info-social svg{height:30px;width:30px}.r-content-news-info-container .r-content-news-info-social ul{align-items:center;display:flex;margin:0}.r-content-news-info-container .r-content-news-info-social ul li{list-style:none}.r-content-news-info-container .r-content-news-info-social ul li a:hover{opacity:.7}@media screen and (max-width:1000px){.r-content-news-info-action{margin-top:1.1rem}}.r-content-news-info-action a{text-decoration:none}.r-content-news-info-action>div{margin:.6rem 0}.r-content-news-info-action .r-content-booking{margin-top:0}.r-content-news-info-action .r-content-booking a{align-items:center;background:#000;border-radius:10px;border-bottom-left-radius:0;color:#fff;cursor:pointer;display:block;display:flex;font-weight:500;gap:10px;padding:.4rem 1rem;text-decoration:none}.r-content-news-info-action .r-content-booking a svg{width:22px;fill:#fff}.r-content-news-info-action .r-content-booking a:hover{background:#3f3f3f;color:#fff}.r-content-topics{display:flex;gap:15px}.r-content-topics span{background:#f1f1f1;border-radius:5px;margin-right:5px;padding:5px}.r-content-title-cat{color:#8e8e8e;font-size:14px;margin-right:5px}smartweb-campaign{display:block;min-height:80vh}.campaign-comment-container{border:1px solid #cbcbcb;border-radius:5px;color:#6c6c6c;font-size:14px;margin-top:2rem;padding:24px}.campaign-comment-title{border-bottom:1px solid #cbcbcb;color:#0f0f0f;font-size:18px;font-weight:400;margin-bottom:2rem}.campaign-comment p{color:#171717;font-size:1rem;margin-bottom:0;margin-top:5px}.campaign-comment-actions{text-align:center}.campaign-comment-action-button{background:#f5f5f5;border:1px solid #0000;border-radius:5px;display:inline-block;font-size:14px;font-weight:500;margin:1rem 0;padding:9px;text-align:center;text-transform:uppercase}.campaign-comment-action-button:focus,.campaign-comment-action-button:hover{border:1px solid #bbb}.campaign-info-container{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:1rem}.campaign-info-container div{background:#f1f1f1;border-radius:5px;font-size:14px;margin-right:5px;padding:5px}.campaign-info-container div i{margin-right:5px}.no-map .envent-content{margin:0 auto;max-width:700px}.no-map .r-result-filter-container{position:relative;top:inherit}.no-map .r-item-title{margin-bottom:1rem!important}.no-map .r-item-text{padding-bottom:2rem}@media screen and (min-width:600px){.no-map .r-campaign-wrapper{display:block}.no-map .r-result-list{display:grid;gap:20px;grid-template-columns:1fr 1fr 1fr;max-width:1296px}.no-map .r-list-item-group{transition:all .2s ease}.no-map .r-list-item-group:focus,.no-map .r-list-item-group:hover{transform:translateY(-10px)!important}.no-map .r-list-item-group .r-list-item{box-shadow:0 8px 26px #00000014;flex-direction:column!important}.no-map .r-list-item-group .r-list-item .r-item-img{border-radius:0!important;height:0!important;margin-bottom:.5rem;padding-bottom:60%!important;width:100%!important}.no-map .r-list-item-group .r-list-item .r-item-text{display:grid;grid-template-columns:1fr 1fr;margin-right:1.5rem}.no-map .r-list-item-group .r-list-item .r-item-text:after{display:none}.no-map .r-list-item-group .r-list-item .r-item-text .r-item-categorie{grid-row-start:1}.no-map .r-list-item-group .r-list-item .r-item-text .r-item-title{font-weight:500!important;grid-column-end:3;grid-column-start:1;grid-row-start:2;margin-bottom:2rem;margin-top:1rem}.no-map .r-list-item-group .r-list-item .r-item-text .r-item-date{grid-column-start:2;grid-row-start:1;justify-self:end}}.no-map .r-result.r-campaign-result{max-width:1296px}.no-map .campaign-content{margin:0 auto;max-width:700px}.r-list-item.Publié sans vote .campaign-vote,.vote_nodisplay,figure.Publié sans vote .campaign-vote{display:none}.vote_noactif{color:#c7c7c7;filter:grayscale(30%);opacity:.6;pointer-events:none}
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[666],{14541:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(25602);const r=n.p+"assets/pin-react-active.07d154037a15be5525b823fdc626cf29.svg"},62678:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(25602);const r=n.p+"assets/pin-react.fda934b5daf26dd4da2a71a7e7e44431.svg"},85533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r=n(25602),a=n(8174),s=n(41665),l=n(64651),o=n(32101),i=n(86110),c=n(83198),u=n(60711),m=n.n(u),d=n(72668),f=n(68473);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}const j=function(e){let t=(0,s.Zp)();const[n,a]=(0,r.useState)(e.activeFilter),[l,u]=(0,r.useState)(null),[m,p]=(0,r.useState)([]),[v,j]=(0,r.useState)([]),{response:b,error:y,isLoading:E}=(0,i.A)({method:"get",url:[{url:e.queryZonesUrl,identifier:"zones"},{url:e.queryTopicsUrl,identifier:"topics"}],headers:{Accept:"application/json"},params:n,paramsSerializer:{indexes:null}});(0,r.useEffect)((()=>{if(null!==b){const e=b.topics&&b.topics.items.map((e=>({value:e.value,label:e.title}))),t=(b.category&&b.category.map((e=>({value:e.token,label:e.title,queryString:"category"}))),b.zones&&b.zones.items.map((e=>({value:e.id,label:e.digest,queryString:"zones"}))));p(e),j(t)}}),[b]);const w=(0,r.useCallback)((t=>{let{target:{name:n,value:r}}=t;r.length>2?(u(r),e.onChangeSearch(r)):(u(null),e.onChangeSearch(null))})),P=(0,r.useCallback)(((e,t)=>{const n=t.name;e?a((t=>g(g({},t),{},{[n]:e.value})),[]):a((e=>{const t=g({},e),{[n]:r}=t;return function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,[n].map(h))}))})),k=(0,r.useRef)(!0);(0,r.useEffect)((()=>{k.current?k.current=!1:(t({pathname:"./",search:d.A.stringify(n)}),e.onChange(n))}),[n,l]);let O=m&&m.filter((t=>t.value===e.activeFilter.topics)),N=v&&v.filter((t=>t.value===e.activeFilter.zones));return r.createElement(r.Fragment,null,r.createElement("div",{className:"react-filters-menu"},r.createElement("div",{className:"react-filters-container"},r.createElement("form",{className:"r-filter r-filter-search",onSubmit:function(t){t.preventDefault(),e.onChange(n),e.onChangeSearch(l)}},r.createElement("div",{className:"relative"},r.createElement(c.rk,null,(e=>{let{translate:t}=e;return r.createElement("input",{className:"input-custom-class",name:"SearchableText",type:"text",value:n.SearchableText,onChange:w,placeholder:t({text:"Recherche"})})})),r.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"},r.createElement("path",{d:"M13 24a11 11 0 1 0 0-22 11 11 0 0 0 0 22zm8-3 9 9"})))),r.createElement("div",{className:"r-filter top-filter topics-Filter"},r.createElement(c.rk,null,(e=>{let{translate:t}=e;return r.createElement(o.Ay,{styles:f.E,name:"filter-themes",className:"select-custom-no-border",isClearable:!0,onChange:P,options:m&&m,placeholder:t({text:"Thématiques"}),value:O&&O[0]})}))),r.createElement("div",{className:"r-filter top-filter topics-Filter"},r.createElement(c.rk,null,(e=>{let{translate:t}=e;return r.createElement(o.Ay,{styles:f.E,name:"filter-zones",className:"select-custom-no-border",isClearable:!0,onChange:P,options:v&&v,placeholder:t({text:"Zones"}),value:N&&N[0]})}))))))};var b=n(18874);n(1053);const y=["u"];function E(e){let{queryUrl:t,onChange:n,displayRedThumbs:a}=e;const l=(0,s.Zp)(),o=Object.assign({id:d.A.parse((0,b.A)().toString()).u,b_start:0}),{u}=o,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(o,y),[f,p]=(0,r.useState)(m),[g,v]=(0,r.useState)(null),[h,j]=(0,r.useState)(""),[E,P]=(0,r.useState)(null),[k,O]=(0,r.useState)(null),[N,S]=(0,r.useState)(null),[C,x]=(0,r.useState)(),{response:A,error:T,isLoading:z}=(0,i.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:f},[]);return(0,r.useEffect)((()=>{if(null!==A){const e=A.workflow.fields.statut;"Publié sans vote"===e||"Publié"===e?j("vote_nodisplay"):["Clôture","Retenu","Rejeté"].includes(e)?j("vote_noactif"):j("vote_display"),v(A.fields);const t=new URL(A.url),n="".concat(t.protocol,"//").concat(t.hostname),r="".concat(n,"/ideabox-voter-pour-un-projet/?projet=").concat(A.id),a="".concat(n,"/ideabox-voter-contre-un-projet/?projet=").concat(A.id),s="".concat(n,"/ideabox-commenter-un-projet/");S(s),P(r),O(a)}window.scrollTo({top:0,left:0,behavior:"instant"})}),[A]),z?r.createElement("div",{className:"lds-roller-container"},r.createElement(c.HT,{text:"Chargement..."}),r.createElement("div",{className:"lds-roller"},r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null))):r.createElement("div",{className:"campaign-content r-content"},r.createElement("button",{type:"button",onClick:function(){l(".."),n(null)}},r.createElement(c.HT,{text:"Retour"})),r.createElement(w,{item:g,urlVotePour:E,urlVoteContre:k,voteContext:h,urlComment:N,displayRedThumbs:a}))}function w(e){let{item:t,urlVotePour:n,urlVoteContre:a,urlComment:s,voteContext:l,displayRedThumbs:o}=e;const[i,u]=(0,r.useState)(new Image),[m,d]=(0,r.useState)("");return(0,r.useEffect)((()=>{if(t){const e=t.images_raw[0].image.content||"",n=new Image;n.src="data:image/jpeg;base64,"+e,n.onload=()=>{u(n);const e=n.width<n.height?"img-contain":"img-cover";d(e)},n.onerror=e=>{console.error("Error loading image:",e)}}}),[t]),r.createElement(r.Fragment,null,r.createElement("article",null,r.createElement("header",null,r.createElement("h2",{className:"r-content-title"},t.nom)),r.createElement("figure",null,r.createElement("div",{className:"campaign-vote ".concat(l),style:{marginTop:"1.5rem"}},r.createElement("a",{href:n,target:"_blank",className:"campaign-vote-pour"},r.createElement("i",{className:"bi bi-hand-thumbs-up-fill"}),r.createElement("span",{className:"campaign-vote-pour-count"},"(",t.votes_pour,")"),r.createElement("span",{className:"campaign-vote-contre-text"}," Je vote pour")),o&&r.createElement("a",{href:a,target:"_blank",className:"campaign-vote-contre"},r.createElement("i",{className:"bi bi-hand-thumbs-down-fill"}),r.createElement("span",{className:"campaign-vote-contre-count"},"(",t.votes_contre,")"),r.createElement("span",{className:"campaign-vote-contre-text"}," Je vote contre"))),i?r.createElement("div",{className:"r-content-img"},r.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+i.src+")"}}),r.createElement("img",{className:"r-content-figure-img "+m,src:i.src,alt:""})):r.createElement(r.Fragment,null,r.createElement("div",{className:"r-item-img r-item-img-placeholder"})))),r.createElement("div",{className:"contactCard"},r.createElement("div",{className:"contactText"},r.createElement("div",{className:"r-content-text"},t.description&&r.createElement("div",{className:"campaign-description",dangerouslySetInnerHTML:{__html:t.description}})),t.commentaires&&r.createElement("div",{className:"campaign-comment-container"},r.createElement("p",{className:"campaign-comment-title"},r.createElement(c.HT,{text:"Commentaires"}),":"),r.createElement("div",{className:"campaign-comment",dangerouslySetInnerHTML:{__html:t.commentaires}}),r.createElement("div",{className:"campaign-comment-actions"},r.createElement("a",{href:s,target:"_blank",className:"campaign-comment-action-button"},r.createElement(c.HT,{text:"Ajouter un commentaire"})))))))}const P=e=>{const[t,n]=(0,r.useState)(new Image),[a,s]=(0,r.useState)(""),l=e.voteContext,o="Publié sans vote"===l||"Publié"===l?"vote_nodisplay":["Clôture","Retenu","Rejeté"].includes(l)?"vote_noactif":"vote_display";return(0,r.useEffect)((()=>{e.item.images_raw[0].image.content&&(async()=>{const t=new Image,r=e.item.images_raw[0].image.content||"";t.src="data:image/jpeg;base64,"+r;try{await t.decode(),n(t);const e=t.width<t.height?"img-contain":"img-cover";s(e)}catch(e){console.error("Error loading image:",e)}})()}),[e.item]),r.createElement(r.Fragment,null,r.createElement("div",{className:"r-list-item"},t&&t.src?r.createElement(r.Fragment,null,r.createElement("div",{className:"r-item-img"},r.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+t.src+")"}}),r.createElement("img",{className:"r-content-figure-img "+a,src:t.src,alt:""}))):r.createElement(r.Fragment,null,r.createElement("div",{className:"r-item-img r-item-img-placeholder"})),r.createElement("div",{className:"r-item-text"},r.createElement("span",{className:"r-item-title"},e.item.nom),r.createElement("div",{className:"campaign-vote "+o},r.createElement("div",{className:"campaign-vote-pour"},r.createElement("i",{className:"bi bi-hand-thumbs-up-fill"}),r.createElement("span",{className:"campaign-vote-pour-count"},e.item.votes_pour)),e.displayRedThumbs&&r.createElement("div",{className:"campaign-vote-contre"},r.createElement("i",{className:"bi bi-hand-thumbs-down-fill"}),r.createElement("span",{className:"campaign-vote-contre-count"},e.item.votes_contre)))),r.createElement("div",{className:"r-item-arrow"},r.createElement("i",{className:"bi bi-chevron-right"}))))};var k=n(75681),O=n.n(k);const N=e=>{let{itemsArray:t,onChange:n,onHover:s,showCategoriesOrTopics:o,contextAuthenticatedUser:i,displayRedThumbs:c}=e;const{scrollPos:u,updateScrollPos:m}=(0,r.useContext)(l.z);function d(e){s(e)}return(0,r.useEffect)((()=>{window.scrollTo({top:u,left:0,behavior:"instant"})}),[t]),r.createElement(r.Fragment,null,r.createElement("ul",{className:"r-result-list event-result-list"},t.map(((e,t)=>r.createElement("li",{key:t,className:"r-list-item-group",onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),onClick:()=>{return t=e.id,n(t),void m(window.scrollY);var t}},r.createElement(a.N_,{className:"r-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+O()(e.text).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.id),state:{idItem:e.id}}}),r.createElement(P,{item:e.fields,voteContext:e.workflow.fields.statut,showCategoriesOrTopics:o,key:e.created,contextAuthenticatedUser:i,displayRedThumbs:c}))))))};var S=n(28009),C=n(77059),x=n(60055),A=n(69780),T=n(16545),z=n(97284),D=n.n(z),R=n(62678),q=n(14541);const L=["u"];function I(e){let{activeItem:t,arrayOfLatLngs:n}=e;const r=(0,S.ko)();if(t){const e=[];e.push(t.fields.geolocalisation.lat),e.push(t.fields.geolocalisation.lon),r.setView(e,15)}else{let e=new(D().LatLngBounds)(n);r.fitBounds(e)}return null}const _=function(e){const[t,n]=(0,r.useState)(null),[s,l]=(0,r.useState)([]),[o,i]=(0,r.useState)(null),c=Object.assign({id:d.A.parse((0,b.A)().toString()).u}),{u}=c,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(c,L);(0,r.useEffect)((()=>{if(!e.items)return;const t=e.items.filter((e=>e.fields?e.fields.geolocalisation.lat&&50.4989185!==e.fields.geolocalisation.lat&&4.7184485!==e.fields.geolocalisation.lon:e.geolocation.latitude&&50.4989185!==e.geolocation.latitude&&4.7184485!==e.geolocation.longitude));l(t)}),[e.items]);const f=e=>new(D().Icon)({iconUrl:e,iconSize:[29,37]}),p=t=>t===e.clickId||t===e.hoverId?999:1;(0,r.useEffect)((()=>{var e=s&&s.filter((e=>e.id===m.id));n(e[0])}),[s]),(0,r.useEffect)((()=>{if(s.length>0){let e=[];s.map(((t,n)=>{let r=t.fields.geolocalisation.lat,a=t.fields.geolocalisation.lon;e.push([r,a])})),i(e)}}),[s]);const g=s.map(((t,n)=>{return r.createElement(C.p,{key:n,icon:(s=t.id,s===m.id||s===e.hoverId?f(q.A):f(R.A)),zIndexOffset:p(t.id),position:[t.fields.geolocalisation?t.fields.geolocalisation.lat:"",t.fields.geolocalisation?t.fields.geolocalisation.lon:""],eventHandlers:{mouseover:e=>{}}},r.createElement(x.z,{closeButton:!1},r.createElement(a.N_,{className:"r-map-popup",style:{textDecoration:"none"},to:{pathname:"/"+O()(t.text).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(t.id),state:{idItem:t.id}}},r.createElement("span",{className:"r-map-popup-title"},t.text)),r.createElement("a",{href:"https://www.google.com/maps/dir/?api=1&destination=".concat(t.fields.rue?t.fields.rue+" "+t.fields.numero:""),className:"r-map-popup-adress"},t.fields.rue&&t.fields.rue+" "+t.fields.numero)));var s}));return r.createElement("div",null,r.createElement(A.W,{style:{height:"calc(100vh - ".concat(e.headerHeight,"px)"),minHeight:"600px"},center:[50.85034,4.35171],zoom:35},r.createElement(T.e,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),null!=o?r.createElement(I,{activeItem:t,activeItemUID:m.id,arrayOfLatLngs:o&&o}):"",s&&g))};var F=n(48743);const U=["u"];function M(e){const[t,n]=(0,r.useState)(0);return r.createElement(a.Kd,{basename:e.viewPath},r.createElement(c.Kq,{language:e.currentLanguage,translation:F.A},r.createElement(l.z.Provider,{value:{scrollPos:t,updateScrollPos:e=>{n(e)}}},r.createElement(H,{queryZonesUrl:e.queryZonesUrl,queryTopicsUrl:e.queryTopicsUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize,displayMap:e.displayMap,language:e.currentLanguage,displayRedThumbs:e.displayRedThumbs}))))}function H(e){const t=Object.assign({b_start:0,fullobjects:1,"event_dates.query":[m()().format("YYYY-MM-DD")],"event_dates.range":"True"===e.onlyPastCampaign?"max":"min"},d.A.parse((0,b.A)().toString())),{u:n}=t,{scrollPos:a,updateScrollPos:o}=(function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}}(t,U),(0,r.useContext)(l.z)),[u,f]=(0,r.useState)([]),[p,g]=(0,r.useState)([]),[v,h]=(0,r.useState)(null),[y,w]=(0,r.useState)(null),[P,k]=(0,r.useState)({b_start:0}),[O,S]=(0,r.useState)(null),[C,x]=(0,r.useState)(0),[A,T]=(0,r.useState)(!1),z="True"===e.displayMap,D="True"===e.displayRedThumbs,{response:R,error:q,isLoading:L,isMore:I}=(0,i.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:P,paramsSerializer:{indexes:null},load:A},[]);(0,r.useEffect)((()=>{if(null!==R){let e=R.items;if(O&&""!==O.trim()){const t=O.toLowerCase();e=R.items.filter((e=>{var n;return((null===(n=e.fields.nom)||void 0===n?void 0:n.toLowerCase())||"").includes(t)}))}f(I?t=>[...t,...e]:e),g(e.length)}}),[R,O]);const F=e=>{h(e)},M=e=>{w(e)},H=(0,r.useRef)(),[V,W]=r.useState({height:0}),[K,Z]=(0,r.useState)(0);let B,G;(0,r.useEffect)((()=>{W({height:H.current.clientHeight}),Z(H.current.offsetTop)}),[H]),u&&u.length>0?(B=r.createElement(N,{onChange:F,itemsArray:u,onHover:M,displayRedThumbs:D}),G=r.createElement(_,{headerHeight:V.height+K,clickId:v,hoverId:y,items:u,queryUrl:e.queryUrl})):L||(B=r.createElement("p",null,r.createElement(c.HT,{text:"Aucun projet n'a été trouvé"})));const J=r.createElement("div",{className:"lds-roller-container"},r.createElement(c.HT,{text:"Chargement..."}),r.createElement("div",{className:"lds-roller"},r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null)));return r.createElement("div",{className:"ref ".concat(z?"view-map":"no-map")},r.createElement("div",{className:"r-result-filter-container",ref:H,style:z?{top:K}:{}},r.createElement("div",{id:"r-result-filter",className:"r-result-filter container annuaire-result-filter"},r.createElement(j,{queryZonesUrl:e.queryZonesUrl,queryTopicsUrl:e.queryTopicsUrl,activeFilter:P,onChange:e=>{T(!1),x((()=>0)),k(e),window.scrollTo(0,0)},onChangeSearch:e=>{T(!1),x((()=>0)),S(e)}}),e.proposeUrl&&r.createElement("div",{className:"r-add-contact"},r.createElement("a",{target:"_blank",rel:"noreferrer",href:e.proposeUrl},r.createElement(c.HT,{text:"Proposer un projet"}),r.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"},r.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"}),r.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?r.createElement("p",{className:"r-results-numbers"},r.createElement("span",null,p),p>1?r.createElement(c.HT,{text:"projets trouvés"}):r.createElement(c.HT,{text:"projet trouvé"})):r.createElement("p",{className:"r-results-numbers"},r.createElement(c.HT,{text:"Aucun résultat"})))),r.createElement(s.BV,null,r.createElement(s.qh,{exact:!0,path:"/",element:r.createElement("div",{className:"r-wrapper container r-campaign-wrapper"},r.createElement("div",{className:"r-result r-campaign-result"},r.createElement("div",null,B),r.createElement("div",{className:"r-load-more"},p-e.batchSize>C?r.createElement("div",null,r.createElement("span",{className:"no-more-result"},L?J:""),r.createElement("button",{onClick:()=>{o(window.scrollY),x((t=>t+parseInt(e.batchSize))),T(!0)},className:"btn-grad"},L?r.createElement(c.HT,{text:"Chargement..."}):r.createElement(c.HT,{text:"Plus de résultats"}))):r.createElement("span",{className:"no-more-result"},L?J:""))),z&&r.createElement("div",{className:"r-map campaign-map",style:{top:V.height+K,height:"calc(100vh-"+V.height+K}},G))}),r.createElement(s.qh,{path:"/:name",element:r.createElement("div",{className:"r-wrapper container r-campaign-wrapper"},r.createElement("div",{className:"r-result r-campaign-result"},r.createElement(E,{queryUrl:e.queryUrl,onChange:F,onlyPastCampaign:e.onlyPastCampaign,contextAuthenticatedUser:e.contextAuthenticatedUser,displayRedThumbs:D})),z&&r.createElement("div",{className:"r-map campaign-map",style:{top:V.height+K,height:"calc(100vh-"+V.height+K}},G))})))}},68473:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{E:()=>l,o:()=>o});const l={control:e=>a(a({},e),{},{backgroundColor:"white",borderColor:"transparent",borderRadius:"10px",minWidth:"150px",height:"40px"}),menu:e=>a(a({},e),{},{width:"max-content",maxWidth:"250px"}),placeholder:e=>a(a({},e),{},{color:"000",fontWeight:"bold",fontSize:"14px",letterSpacing:"1.4px"}),indicators:e=>a(a({},e),{},{color:"blue"}),option:e=>a({},e)},o={control:e=>a(a({},e),{},{backgroundColor:"white",borderRadius:"10px",height:"30px",minWidth:"150px"}),placeholder:e=>a(a({},e),{},{color:"000",fontWeight:"bold",fontSize:"12px",letterSpacing:"1.4px"}),menu:e=>a(a({},e),{},{width:"max-content",maxWidth:"250px"}),option:(e,t)=>{let{data:n,isDisabled:r,isFocused:s,isSelected:l}=t;return a({},e)}}},64651:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=(0,n(25602).createContext)()},86110:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(25602),a=n(37178);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=e=>{const[t,n]=(0,r.useState)(null),[s,o]=(0,r.useState)(""),[i,c]=(0,r.useState)(!0),[u,m]=(0,r.useState)(!1),d=new AbortController;return(0,r.useEffect)((()=>((async e=>{if(c(!0),e.load?m(!0):m(!1),0===Object.keys(e.params).length)return n(null),void c(!1);try{if(Array.isArray(e.url)){const t=e.url.map(((t,n)=>{const{url:r,identifier:s}="string"==typeof t?{url:t,identifier:"request_".concat(n)}:t;return a.A.request(l(l({},e),{},{url:r,signal:d.signal})).then((e=>({identifier:s,data:e.data})))})),r=(await Promise.all(t)).reduce(((e,t)=>{let{identifier:n,data:r}=t;return e[n]=r,e}),{});n(r)}else{const t=await a.A.request(e);n(t.data)}o(null)}catch(e){o(e),n(null)}finally{c(!1)}})(l(l({},e),{},{signal:d.signal})),()=>d.abort())),[e.params]),{response:t,error:s,isLoading:i,isMore:u}}},18874:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(41665);const a=function(){return new URLSearchParams((0,r.zy)().search)}},48743:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={Publié:{en:"Published",fr:"Publié",de:"Veröffentlicht",nl:"Gepubliceerd"},Actualisé:{en:"Updated",fr:"Actualisé",de:"Aktualisiert",nl:"Bijgewerkt"},Événements:{en:"Events",fr:"Événements",de:"Veranstaltungen",nl:"Evenementen"},Actualités:{en:"News",fr:"Actualités",de:"Nachrichten",nl:"Nieuws"},Contacts:{en:"Contacts",fr:"Contacts",de:"Kontakte",nl:"Contacten"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques",de:"Praktische Informationen",nl:"Praktische informatie"},"Chargement...":{en:"Loading",fr:"Chargement...",de:"Laden",nl:"Laden..."},Recherche:{en:"Search",fr:"Recherche",de:"Suche",nl:"Zoeken"},Thématiques:{en:"Themes",fr:"Thématiques",de:"Themen",nl:"Thema's"},"Je suis":{en:"I am",fr:"Je suis",de:"Ich bin",nl:"Ik ben"},Catégories:{en:"Categories",fr:"Catégories",de:"Kategorien",nl:"Categorieën"},"Catégories locale":{en:"Local categories",fr:"Catégories locale",de:"Lokale Kategorien",nl:"Lokale categorieën"},"Catégories spécifiques":{en:"Specific categories",fr:"Catégories spécifiques",de:"Spezifische Kategorien",nl:"Specifieke categorieën"},Quoi:{en:"What",fr:"Quoi",de:"Was",nl:"Wat"},Facilités:{en:"Facilities",fr:"Facilités",de:"Einrichtungen",nl:"Faciliteiten"},"Plus de résultats":{en:"More results",fr:"Plus de résultats",de:"Mehr Ergebnisse",nl:"Meer resultaten"},"Aucun résultat":{en:"No result",fr:"Aucun résultat",de:"Kein Ergebnis",nl:"Geen resultaat"},Résultats:{en:"Results",fr:"Résultats",de:"Ergebnisse",nl:"Resultaten"},Retour:{en:"Return",fr:"Retour",de:"Zurück",nl:"Terug"},Téléchargements:{en:"Downloads",fr:"Téléchargements",de:"Downloads",nl:"Downloads"},Billetterie:{en:"Ticketing",fr:"Billetterie",de:"Tickets",nl:"Ticketverkoop"},"Lien vers la vidéo":{en:"Link to video",fr:"Lien vers la vidéo",de:"Link zum Video",nl:"Link naar video"},"Participation en ligne":{en:"Join online",fr:"Participation en ligne",de:"Online teilnehmen",nl:"Doe online mee"},"Actualités trouvées":{en:" News found",fr:" Actualités trouvées",de:" Nachrichten gefunden",nl:" Nieuws gevonden"},"Actualité trouvée":{en:" News found",fr:" Actualité trouvée",de:" Nachricht gefunden",nl:" Nieuws gevonden"},"Aucune actualité n'a été trouvée":{en:"No news was found",fr:"Aucune actualité n'a été trouvée",de:"Keine Nachrichten gefunden",nl:"Geen nieuws gevonden"},"Proposer une actualité":{en:"Suggest a news",fr:"Proposer une actualité",de:"Nachricht vorschlagen",nl:"Nieuws voorstellen"},"événements trouvés":{en:" Events found",fr:" Événements trouvés",de:" Veranstaltungen gefunden",nl:" Evenementen gevonden"},"projets trouvés":{en:" Projects found",fr:" Projets trouvés",de:" Projekte gefunden",nl:" Projecten gevonden"},"projet trouvé":{en:" Project found",fr:" Projet trouvé",de:" Projekt gefunden",nl:" Project 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"},"projets trouvés":{en:" Projects found",fr:" Projets trouvés",de:" Projekte gefunden",nl:" Projecten gevonden"},"projet trouvé":{en:" Project found",fr:" Projet trouvé",de:" Projekt gefunden",nl:" Project gevonden"},"Aucun projet n'a été trouvé":{en:"No project was found",fr:"Aucun projet n'a été trouvé",de:"Kein Projekt gefunden",nl:"Geen project gevonden"},"Proposer un projet":{en:"Suggest a project",fr:"Proposer un projet",de:"Projekt vorschlagen",nl:"Project 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"},"Filtrer par profil":{en:"Filter by profile",fr:"Filtrer par profil",de:"Nach Profile filtern",nl:"Filteren op profiel"},"Filtrer par thématique":{en:"Filter by theme",fr:"Filtrer par thématique",de:"Nach Thema filtern",nl:"Filteren op thema"},Commentaires:{en:"Comments",fr:"Commentaires",de:"Kommentare",nl:"Reacties"},"Ajouter un commentaire":{en:"Add a comment",fr:"Ajouter un commentaire",de:"Kommentar hinzufügen",nl:"Reactie toevoegen"}}},35358:(e,t,n)=>{var r={"./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 a(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=s,e.exports=a,a.id=35358}}]);
|
1
|
+
(self.webpackChunkimio_smartweb_core_webcomponents=self.webpackChunkimio_smartweb_core_webcomponents||[]).push([[666],{14541:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(25602);const r=n.p+"assets/pin-react-active.07d154037a15be5525b823fdc626cf29.svg"},62678:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(25602);const r=n.p+"assets/pin-react.fda934b5daf26dd4da2a71a7e7e44431.svg"},85533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r=n(25602),a=n(8174),s=n(41665),l=n(64651),o=n(32101),i=n(86110),c=n(83198),u=n(60711),m=n.n(u),d=n(72668),f=n(68473);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}const j=function(e){let t=(0,s.Zp)();const[n,a]=(0,r.useState)(e.activeFilter),[l,u]=(0,r.useState)(null),[m,p]=(0,r.useState)([]),[v,j]=(0,r.useState)([]),{response:b,error:y,isLoading:E}=(0,i.A)({method:"get",url:[{url:e.queryZonesUrl,identifier:"zones"},{url:e.queryTopicsUrl,identifier:"topics"}],headers:{Accept:"application/json"},params:n,paramsSerializer:{indexes:null}});(0,r.useEffect)((()=>{if(null!==b){const e=b.topics&&b.topics.items.map((e=>({value:e.value,label:e.title}))),t=(b.category&&b.category.map((e=>({value:e.token,label:e.title,queryString:"category"}))),b.zones&&b.zones.items.map((e=>({value:e.id,label:e.digest,queryString:"zones"}))));p(e),j(t)}}),[b]);const w=(0,r.useCallback)((t=>{let{target:{name:n,value:r}}=t;r.length>2?(u(r),e.onChangeSearch(r)):(u(null),e.onChangeSearch(null))})),P=(0,r.useCallback)(((e,t)=>{const n=t.name;e?a((t=>g(g({},t),{},{[n]:e.value})),[]):a((e=>{const t=g({},e),{[n]:r}=t;return function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,[n].map(h))}))})),k=(0,r.useRef)(!0);(0,r.useEffect)((()=>{k.current?k.current=!1:(t({pathname:"./",search:d.A.stringify(n)}),e.onChange(n))}),[n,l]);let N=m&&m.filter((t=>t.value===e.activeFilter.topics)),O=v&&v.filter((t=>t.value===e.activeFilter.zones));return r.createElement(r.Fragment,null,r.createElement("div",{className:"react-filters-menu"},r.createElement("div",{className:"react-filters-container"},r.createElement("form",{className:"r-filter r-filter-search",onSubmit:function(t){t.preventDefault(),e.onChange(n),e.onChangeSearch(l)}},r.createElement("div",{className:"relative"},r.createElement(c.rk,null,(e=>{let{translate:t}=e;return r.createElement("input",{className:"input-custom-class",name:"SearchableText",type:"text",value:n.SearchableText,onChange:w,placeholder:t({text:"Recherche"})})})),r.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"},r.createElement("path",{d:"M13 24a11 11 0 1 0 0-22 11 11 0 0 0 0 22zm8-3 9 9"})))),r.createElement("div",{className:"r-filter top-filter topics-Filter"},r.createElement(c.rk,null,(e=>{let{translate:t}=e;return r.createElement(o.Ay,{styles:f.E,name:"filter-themes",className:"select-custom-no-border",isClearable:!0,onChange:P,options:m&&m,placeholder:t({text:"Thématiques"}),value:N&&N[0]})}))),r.createElement("div",{className:"r-filter top-filter topics-Filter"},r.createElement(c.rk,null,(e=>{let{translate:t}=e;return r.createElement(o.Ay,{styles:f.E,name:"filter-zones",className:"select-custom-no-border",isClearable:!0,onChange:P,options:v&&v,placeholder:t({text:"Zones"}),value:O&&O[0]})}))))))};var b=n(18874);n(1053);const y=["u"];function E(e){let{queryUrl:t,onChange:n,displayRedThumbs:a}=e;const l=(0,s.Zp)(),o=Object.assign({id:d.A.parse((0,b.A)().toString()).u,b_start:0}),{u}=o,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(o,y),[f,p]=(0,r.useState)(m),[g,v]=(0,r.useState)(null),[h,j]=(0,r.useState)(""),[E,P]=(0,r.useState)(null),[k,N]=(0,r.useState)(null),[O,S]=(0,r.useState)(null),[C,x]=(0,r.useState)(),{response:A,error:T,isLoading:z}=(0,i.A)({method:"get",url:"",baseURL:t,headers:{Accept:"application/json"},params:f},[]);return(0,r.useEffect)((()=>{if(null!==A){const e=A.workflow.fields.statut;"Publié sans vote"===e||"Publié"===e?j("vote_nodisplay"):["Clôture","Retenu","Rejeté"].includes(e)?j("vote_noactif"):j("vote_display"),v(A.fields);const t=new URL(A.url),n="".concat(t.protocol,"//").concat(t.hostname),r="".concat(n,"/ideabox-voter-pour-un-projet/?projet=").concat(A.id),a="".concat(n,"/ideabox-voter-contre-un-projet/?projet=").concat(A.id),s="".concat(n,"/ideabox-commenter-un-projet/");S(s),P(r),N(a)}window.scrollTo({top:0,left:0,behavior:"instant"})}),[A]),z?r.createElement("div",{className:"lds-roller-container"},r.createElement(c.HT,{text:"Chargement..."}),r.createElement("div",{className:"lds-roller"},r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null))):r.createElement("div",{className:"campaign-content r-content"},r.createElement("button",{type:"button",onClick:function(){l(".."),n(null)}},r.createElement(c.HT,{text:"Retour"})),r.createElement(w,{item:g,urlVotePour:E,urlVoteContre:k,voteContext:h,urlComment:O,displayRedThumbs:a}))}function w(e){let{item:t,urlVotePour:n,urlVoteContre:a,urlComment:s,voteContext:l,displayRedThumbs:o}=e;const[i,u]=(0,r.useState)(new Image),[m,d]=(0,r.useState)("");return(0,r.useEffect)((()=>{if(t){const e=t.images_raw[0].image.content||"",n=new Image;n.src="data:image/jpeg;base64,"+e,n.onload=()=>{u(n);const e=n.width<n.height?"img-contain":"img-cover";d(e)},n.onerror=e=>{console.error("Error loading image:",e)}}}),[t]),t?r.createElement(r.Fragment,null,r.createElement("article",null,r.createElement("header",null,r.createElement("h2",{className:"r-content-title"},t.nom)),r.createElement("figure",null,r.createElement("div",{className:"campaign-vote ".concat(l),style:{marginTop:"1.5rem"}},r.createElement("a",{href:n,target:"_blank",className:"campaign-vote-pour"},r.createElement("i",{className:"bi bi-hand-thumbs-up-fill"}),r.createElement("span",{className:"campaign-vote-pour-count"},"(",t.votes_pour,")"),r.createElement("span",{className:"campaign-vote-contre-text"}," Je vote pour")),o&&r.createElement("a",{href:a,target:"_blank",className:"campaign-vote-contre"},r.createElement("i",{className:"bi bi-hand-thumbs-down-fill"}),r.createElement("span",{className:"campaign-vote-contre-count"},"(",t.votes_contre,")"),r.createElement("span",{className:"campaign-vote-contre-text"}," Je vote contre"))),i?r.createElement("div",{className:"r-content-img"},r.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+i.src+")"}}),r.createElement("img",{className:"r-content-figure-img "+m,src:i.src,alt:""})):r.createElement(r.Fragment,null,r.createElement("div",{className:"r-item-img r-item-img-placeholder"})))),r.createElement("div",{className:"contactCard"},r.createElement("div",{className:"contactText"},r.createElement("div",{className:"r-content-text"},(t.themes||t.zones)&&r.createElement("div",{className:"campaign-info-container"},t.themes&&r.createElement("div",{className:"campaign-topics"},r.createElement("i",{class:"bi bi-tag"}),r.createElement("span",null,t.themes)),t.zones&&r.createElement("div",{className:"campaign-zones"},r.createElement("i",{class:"bi bi-geo-alt"}),t.zones)),t.description&&r.createElement("div",{className:"campaign-description",dangerouslySetInnerHTML:{__html:t.description}})),t.commentaires&&r.createElement("div",{className:"campaign-comment-container"},r.createElement("p",{className:"campaign-comment-title"},r.createElement(c.HT,{text:"Commentaires"}),":"),r.createElement("div",{className:"campaign-comment",dangerouslySetInnerHTML:{__html:t.commentaires}})),r.createElement("div",{className:"campaign-comment-actions"},r.createElement("a",{href:s,target:"_blank",className:"campaign-comment-action-button"},r.createElement(c.HT,{text:"Ajouter un commentaire"})))))):r.createElement("div",null,"Aucun projet")}const P=e=>{const[t,n]=(0,r.useState)(new Image),[a,s]=(0,r.useState)(""),l=e.voteContext,o="Publié sans vote"===l||"Publié"===l?"vote_nodisplay":["Clôture","Retenu","Rejeté"].includes(l)?"vote_noactif":"vote_display";return(0,r.useEffect)((()=>{e.item.images_raw[0].image.content&&(async()=>{const t=new Image,r=e.item.images_raw[0].image.content||"";t.src="data:image/jpeg;base64,"+r;try{await t.decode(),n(t);const e=t.width<t.height?"img-contain":"img-cover";s(e)}catch(e){console.error("Error loading image:",e)}})()}),[e.item]),r.createElement(r.Fragment,null,r.createElement("div",{className:"r-list-item"},t&&t.src?r.createElement(r.Fragment,null,r.createElement("div",{className:"r-item-img"},r.createElement("div",{className:"r-content-figure-blur",style:{backgroundImage:"url("+t.src+")"}}),r.createElement("img",{className:"r-content-figure-img "+a,src:t.src,alt:""}))):r.createElement(r.Fragment,null,r.createElement("div",{className:"r-item-img r-item-img-placeholder"})),r.createElement("div",{className:"r-item-text"},r.createElement("span",{className:"r-item-title"},e.item.nom),r.createElement("div",{className:"campaign-vote "+o},r.createElement("div",{className:"campaign-vote-pour"},r.createElement("i",{className:"bi bi-hand-thumbs-up-fill"}),r.createElement("span",{className:"campaign-vote-pour-count"},e.item.votes_pour)),e.displayRedThumbs&&r.createElement("div",{className:"campaign-vote-contre"},r.createElement("i",{className:"bi bi-hand-thumbs-down-fill"}),r.createElement("span",{className:"campaign-vote-contre-count"},e.item.votes_contre)))),r.createElement("div",{className:"r-item-arrow"},r.createElement("i",{className:"bi bi-chevron-right"}))))};var k=n(75681),N=n.n(k);const O=e=>{let{itemsArray:t,onChange:n,onHover:s,showCategoriesOrTopics:o,contextAuthenticatedUser:i,displayRedThumbs:c}=e;const{scrollPos:u,updateScrollPos:m}=(0,r.useContext)(l.z);function d(e){s(e)}return(0,r.useEffect)((()=>{window.scrollTo({top:u,left:0,behavior:"instant"})}),[t]),r.createElement(r.Fragment,null,r.createElement("ul",{className:"r-result-list event-result-list"},t.map(((e,t)=>r.createElement("li",{key:t,className:"r-list-item-group",onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),onClick:()=>{return t=e.id,n(t),void m(window.scrollY);var t}},r.createElement(a.N_,{className:"r-list-item-link",style:{textDecoration:"none"},to:{pathname:"/"+N()(e.text).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(e.id),state:{idItem:e.id}}}),r.createElement(P,{item:e.fields,voteContext:e.workflow.fields.statut,showCategoriesOrTopics:o,key:e.created,contextAuthenticatedUser:i,displayRedThumbs:c}))))))};var S=n(28009),C=n(77059),x=n(60055),A=n(69780),T=n(16545),z=n(97284),D=n.n(z),R=n(62678),q=n(14541);const L=["u"];function I(e){let{activeItem:t,arrayOfLatLngs:n}=e;const r=(0,S.ko)();if(t){const e=[];e.push(t.fields.geolocalisation.lat),e.push(t.fields.geolocalisation.lon),r.setView(e,15)}else{let e=new(D().LatLngBounds)(n);r.fitBounds(e)}return null}const _=function(e){const[t,n]=(0,r.useState)(null),[s,l]=(0,r.useState)([]),[o,i]=(0,r.useState)(null),c=Object.assign({id:d.A.parse((0,b.A)().toString()).u}),{u}=c,m=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(c,L);(0,r.useEffect)((()=>{if(!e.items)return;const t=e.items.filter((e=>(console.log(e),e.fields.geolocalisation?e.fields.geolocalisation.lat&&50.4989185!==e.fields.geolocalisation.lat&&4.7184485!==e.fields.geolocalisation.lon:e.geolocation.latitude&&50.4989185!==e.geolocation.latitude&&4.7184485!==e.geolocation.longitude)));l(t)}),[e.items]);const f=e=>new(D().Icon)({iconUrl:e,iconSize:[29,37]}),p=t=>t===e.clickId||t===e.hoverId?999:1;(0,r.useEffect)((()=>{var e=s&&s.filter((e=>e.id===m.id));n(e[0])}),[s]),(0,r.useEffect)((()=>{if(s.length>0){let e=[];s.map(((t,n)=>{let r=t.fields.geolocalisation.lat,a=t.fields.geolocalisation.lon;e.push([r,a])})),i(e)}}),[s]);const g=s.map(((t,n)=>{return r.createElement(C.p,{key:n,icon:(s=t.id,s===m.id||s===e.hoverId?f(q.A):f(R.A)),zIndexOffset:p(t.id),position:[t.fields.geolocalisation?t.fields.geolocalisation.lat:"",t.fields.geolocalisation?t.fields.geolocalisation.lon:""],eventHandlers:{mouseover:e=>{}}},r.createElement(x.z,{closeButton:!1},r.createElement(a.N_,{className:"r-map-popup",style:{textDecoration:"none"},to:{pathname:"/"+N()(t.text).replace(/[^a-zA-Z ]/g,"").replace(/\s/g,"-").toLowerCase(),search:"?u=".concat(t.id),state:{idItem:t.id}}},r.createElement("span",{className:"r-map-popup-title"},t.text)),r.createElement("a",{href:"https://www.google.com/maps/dir/?api=1&destination=".concat(t.fields.rue?t.fields.rue+" "+t.fields.numero:""),className:"r-map-popup-adress"},t.fields.rue&&t.fields.rue+" "+t.fields.numero)));var s}));return r.createElement("div",null,r.createElement(A.W,{style:{height:"calc(100vh - ".concat(e.headerHeight,"px)"),minHeight:"600px"},center:[50.85034,4.35171],zoom:35},r.createElement(T.e,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),null!=o?r.createElement(I,{activeItem:t,activeItemUID:m.id,arrayOfLatLngs:o&&o}):"",s&&g))};var F=n(48743);const U=["u"];function M(e){const[t,n]=(0,r.useState)(0);return r.createElement(a.Kd,{basename:e.viewPath},r.createElement(c.Kq,{language:e.currentLanguage,translation:F.A},r.createElement(l.z.Provider,{value:{scrollPos:t,updateScrollPos:e=>{n(e)}}},r.createElement(H,{queryZonesUrl:e.queryZonesUrl,queryTopicsUrl:e.queryTopicsUrl,queryUrl:e.queryUrl,proposeUrl:e.proposeUrl,batchSize:e.batchSize,displayMap:e.displayMap,language:e.currentLanguage,displayRedThumbs:e.displayRedThumbs}))))}function H(e){const t=Object.assign({b_start:0,fullobjects:1,"event_dates.query":[m()().format("YYYY-MM-DD")],"event_dates.range":"True"===e.onlyPastCampaign?"max":"min"},d.A.parse((0,b.A)().toString())),{u:n}=t,{scrollPos:a,updateScrollPos:o}=(function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}}(t,U),(0,r.useContext)(l.z)),[u,f]=(0,r.useState)([]),[p,g]=(0,r.useState)([]),[v,h]=(0,r.useState)(null),[y,w]=(0,r.useState)(null),[P,k]=(0,r.useState)({b_start:0}),[N,S]=(0,r.useState)(null),[C,x]=(0,r.useState)(0),[A,T]=(0,r.useState)(!1),z="True"===e.displayMap,D="True"===e.displayRedThumbs,{response:R,error:q,isLoading:L,isMore:I}=(0,i.A)({method:"get",url:"",baseURL:e.queryUrl,headers:{Accept:"application/json"},params:P,paramsSerializer:{indexes:null},load:A},[]);(0,r.useEffect)((()=>{if(null!==R){let e=R.items;if(N&&""!==N.trim()){const t=N.toLowerCase();e=R.items.filter((e=>{var n;return((null===(n=e.fields.nom)||void 0===n?void 0:n.toLowerCase())||"").includes(t)}))}f(I?t=>[...t,...e]:e),g(e.length)}}),[R,N]);const F=e=>{h(e)},M=e=>{w(e)},H=(0,r.useRef)(),[V,W]=r.useState({height:0}),[K,Z]=(0,r.useState)(0);let B,G;(0,r.useEffect)((()=>{W({height:H.current.clientHeight}),Z(H.current.offsetTop)}),[H]),u&&u.length>0?(B=r.createElement(O,{onChange:F,itemsArray:u,onHover:M,displayRedThumbs:D}),G=r.createElement(_,{headerHeight:V.height+K,clickId:v,hoverId:y,items:u,queryUrl:e.queryUrl})):L||(B=r.createElement("p",null,r.createElement(c.HT,{text:"Aucun projet n'a été trouvé"})));const J=r.createElement("div",{className:"lds-roller-container"},r.createElement(c.HT,{text:"Chargement..."}),r.createElement("div",{className:"lds-roller"},r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null),r.createElement("div",null)));return r.createElement("div",{className:"ref ".concat(z?"view-map":"no-map")},r.createElement("div",{className:"r-result-filter-container",ref:H,style:z?{top:K}:{}},r.createElement("div",{id:"r-result-filter",className:"r-result-filter container annuaire-result-filter"},r.createElement(j,{queryZonesUrl:e.queryZonesUrl,queryTopicsUrl:e.queryTopicsUrl,activeFilter:P,onChange:e=>{T(!1),x((()=>0)),k(e),window.scrollTo(0,0)},onChangeSearch:e=>{T(!1),x((()=>0)),S(e)}}),e.proposeUrl&&r.createElement("div",{className:"r-add-contact"},r.createElement("a",{target:"_blank",rel:"noreferrer",href:e.proposeUrl},r.createElement(c.HT,{text:"Proposer un projet"}),r.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"},r.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"}),r.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?r.createElement("p",{className:"r-results-numbers"},r.createElement("span",null,p),p>1?r.createElement(c.HT,{text:"projets trouvés"}):r.createElement(c.HT,{text:"projet trouvé"})):r.createElement("p",{className:"r-results-numbers"},r.createElement(c.HT,{text:"Aucun résultat"})))),r.createElement(s.BV,null,r.createElement(s.qh,{exact:!0,path:"/",element:r.createElement("div",{className:"r-wrapper container r-campaign-wrapper"},r.createElement("div",{className:"r-result r-campaign-result"},r.createElement("div",null,B),r.createElement("div",{className:"r-load-more"},p-e.batchSize>C?r.createElement("div",null,r.createElement("span",{className:"no-more-result"},L?J:""),r.createElement("button",{onClick:()=>{o(window.scrollY),x((t=>t+parseInt(e.batchSize))),T(!0)},className:"btn-grad"},L?r.createElement(c.HT,{text:"Chargement..."}):r.createElement(c.HT,{text:"Plus de résultats"}))):r.createElement("span",{className:"no-more-result"},L?J:""))),z&&r.createElement("div",{className:"r-map campaign-map",style:{top:V.height+K,height:"calc(100vh-"+V.height+K}},G))}),r.createElement(s.qh,{path:"/:name",element:r.createElement("div",{className:"r-wrapper container r-campaign-wrapper"},r.createElement("div",{className:"r-result r-campaign-result"},r.createElement(E,{queryUrl:e.queryUrl,onChange:F,onlyPastCampaign:e.onlyPastCampaign,contextAuthenticatedUser:e.contextAuthenticatedUser,displayRedThumbs:D})),z&&r.createElement("div",{className:"r-map campaign-map",style:{top:V.height+K,height:"calc(100vh-"+V.height+K}},G))})))}},68473:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{E:()=>l,o:()=>o});const l={control:e=>a(a({},e),{},{backgroundColor:"white",borderColor:"transparent",borderRadius:"10px",minWidth:"150px",height:"40px"}),menu:e=>a(a({},e),{},{width:"max-content",maxWidth:"250px"}),placeholder:e=>a(a({},e),{},{color:"000",fontWeight:"bold",fontSize:"14px",letterSpacing:"1.4px"}),indicators:e=>a(a({},e),{},{color:"blue"}),option:e=>a({},e)},o={control:e=>a(a({},e),{},{backgroundColor:"white",borderRadius:"10px",height:"30px",minWidth:"150px"}),placeholder:e=>a(a({},e),{},{color:"000",fontWeight:"bold",fontSize:"12px",letterSpacing:"1.4px"}),menu:e=>a(a({},e),{},{width:"max-content",maxWidth:"250px"}),option:(e,t)=>{let{data:n,isDisabled:r,isFocused:s,isSelected:l}=t;return a({},e)}}},64651:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=(0,n(25602).createContext)()},86110:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(25602),a=n(37178);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const i=e=>{const[t,n]=(0,r.useState)(null),[s,o]=(0,r.useState)(""),[i,c]=(0,r.useState)(!0),[u,m]=(0,r.useState)(!1),d=new AbortController;return(0,r.useEffect)((()=>((async e=>{if(c(!0),e.load?m(!0):m(!1),0===Object.keys(e.params).length)return n(null),void c(!1);try{if(Array.isArray(e.url)){const t=e.url.map(((t,n)=>{const{url:r,identifier:s}="string"==typeof t?{url:t,identifier:"request_".concat(n)}:t;return a.A.request(l(l({},e),{},{url:r,signal:d.signal})).then((e=>({identifier:s,data:e.data})))})),r=(await Promise.all(t)).reduce(((e,t)=>{let{identifier:n,data:r}=t;return e[n]=r,e}),{});n(r)}else{const t=await a.A.request(e);n(t.data)}o(null)}catch(e){o(e),n(null)}finally{c(!1)}})(l(l({},e),{},{signal:d.signal})),()=>d.abort())),[e.params]),{response:t,error:s,isLoading:i,isMore:u}}},18874:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(41665);const a=function(){return new URLSearchParams((0,r.zy)().search)}},48743:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={Publié:{en:"Published",fr:"Publié",de:"Veröffentlicht",nl:"Gepubliceerd"},Actualisé:{en:"Updated",fr:"Actualisé",de:"Aktualisiert",nl:"Bijgewerkt"},Événements:{en:"Events",fr:"Événements",de:"Veranstaltungen",nl:"Evenementen"},Actualités:{en:"News",fr:"Actualités",de:"Nachrichten",nl:"Nieuws"},Contacts:{en:"Contacts",fr:"Contacts",de:"Kontakte",nl:"Contacten"},"Infos pratiques":{en:"Practical information",fr:"Infos pratiques",de:"Praktische Informationen",nl:"Praktische informatie"},"Chargement...":{en:"Loading",fr:"Chargement...",de:"Laden",nl:"Laden..."},Recherche:{en:"Search",fr:"Recherche",de:"Suche",nl:"Zoeken"},Thématiques:{en:"Themes",fr:"Thématiques",de:"Themen",nl:"Thema's"},"Je suis":{en:"I am",fr:"Je suis",de:"Ich bin",nl:"Ik ben"},Catégories:{en:"Categories",fr:"Catégories",de:"Kategorien",nl:"Categorieën"},"Catégories locale":{en:"Local categories",fr:"Catégories locale",de:"Lokale Kategorien",nl:"Lokale categorieën"},"Catégories spécifiques":{en:"Specific categories",fr:"Catégories spécifiques",de:"Spezifische Kategorien",nl:"Specifieke categorieën"},Quoi:{en:"What",fr:"Quoi",de:"Was",nl:"Wat"},Facilités:{en:"Facilities",fr:"Facilités",de:"Einrichtungen",nl:"Faciliteiten"},"Plus de résultats":{en:"More results",fr:"Plus de résultats",de:"Mehr Ergebnisse",nl:"Meer resultaten"},"Aucun résultat":{en:"No result",fr:"Aucun résultat",de:"Kein Ergebnis",nl:"Geen resultaat"},Résultats:{en:"Results",fr:"Résultats",de:"Ergebnisse",nl:"Resultaten"},Retour:{en:"Return",fr:"Retour",de:"Zurück",nl:"Terug"},Téléchargements:{en:"Downloads",fr:"Téléchargements",de:"Downloads",nl:"Downloads"},Billetterie:{en:"Ticketing",fr:"Billetterie",de:"Tickets",nl:"Ticketverkoop"},"Lien vers la vidéo":{en:"Link to video",fr:"Lien vers la vidéo",de:"Link zum Video",nl:"Link naar video"},"Participation en ligne":{en:"Join online",fr:"Participation en ligne",de:"Online teilnehmen",nl:"Doe online mee"},"Actualités trouvées":{en:" News found",fr:" Actualités trouvées",de:" Nachrichten gefunden",nl:" Nieuws gevonden"},"Actualité trouvée":{en:" News found",fr:" Actualité trouvée",de:" Nachricht gefunden",nl:" Nieuws gevonden"},"Aucune actualité n'a été trouvée":{en:"No news was found",fr:"Aucune actualité n'a été trouvée",de:"Keine Nachrichten gefunden",nl:"Geen nieuws gevonden"},"Proposer une actualité":{en:"Suggest a news",fr:"Proposer une actualité",de:"Nachricht vorschlagen",nl:"Nieuws voorstellen"},"événements trouvés":{en:" Events found",fr:" Événements trouvés",de:" Veranstaltungen gefunden",nl:" Evenementen gevonden"},"projets trouvés":{en:" Projects found",fr:" Projets trouvés",de:" Projekte gefunden",nl:" Projecten gevonden"},"projet trouvé":{en:" Project found",fr:" Projet trouvé",de:" Projekt gefunden",nl:" Project 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"},"projets trouvés":{en:" Projects found",fr:" Projets trouvés",de:" Projekte gefunden",nl:" Projecten gevonden"},"projet trouvé":{en:" Project found",fr:" Projet trouvé",de:" Projekt gefunden",nl:" Project gevonden"},"Aucun projet n'a été trouvé":{en:"No project was found",fr:"Aucun projet n'a été trouvé",de:"Kein Projekt gefunden",nl:"Geen project gevonden"},"Proposer un projet":{en:"Suggest a project",fr:"Proposer un projet",de:"Projekt vorschlagen",nl:"Project 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"},"Filtrer par profil":{en:"Filter by profile",fr:"Filtrer par profil",de:"Nach Profile filtern",nl:"Filteren op profiel"},"Filtrer par thématique":{en:"Filter by theme",fr:"Filtrer par thématique",de:"Nach Thema filtern",nl:"Filteren op thema"},Commentaires:{en:"Comments",fr:"Commentaires",de:"Kommentare",nl:"Reacties"},"Ajouter un commentaire":{en:"Add a comment",fr:"Ajouter un commentaire",de:"Kommentar hinzufügen",nl:"Reactie toevoegen"}}},35358:(e,t,n)=>{var r={"./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 a(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=s,e.exports=a,a.id=35358}}]);
|
@@ -634,6 +634,23 @@ smartweb-campaign {
|
|
634
634
|
border: solid 1px #bbbbbb;
|
635
635
|
}
|
636
636
|
}
|
637
|
+
|
638
|
+
.campaign-info-container {
|
639
|
+
display: flex;
|
640
|
+
flex-wrap: wrap;
|
641
|
+
gap: 10px;
|
642
|
+
margin-bottom: 1rem;
|
643
|
+
div {
|
644
|
+
padding: 5px;
|
645
|
+
background: #f1f1f1;
|
646
|
+
border-radius: 5px;
|
647
|
+
margin-right: 5px;
|
648
|
+
font-size: 14px;
|
649
|
+
i {
|
650
|
+
margin-right: 5px;
|
651
|
+
}
|
652
|
+
}
|
653
|
+
}
|
637
654
|
// // No Map
|
638
655
|
// // Main
|
639
656
|
.no-map {
|
imio/smartweb/core/webcomponents/src/components/Campaign/CampaignContent/CampaignContent.jsx
CHANGED
@@ -127,8 +127,9 @@ function ContentText({
|
|
127
127
|
};
|
128
128
|
}
|
129
129
|
}, [item]);
|
130
|
-
|
131
|
-
|
130
|
+
return !item ? (
|
131
|
+
<div>Aucun projet</div>
|
132
|
+
) : (
|
132
133
|
<>
|
133
134
|
<article>
|
134
135
|
<header>
|
@@ -177,6 +178,22 @@ function ContentText({
|
|
177
178
|
<div className="contactCard">
|
178
179
|
<div className="contactText">
|
179
180
|
<div className="r-content-text">
|
181
|
+
{(item.themes || item.zones) && (
|
182
|
+
<div className="campaign-info-container">
|
183
|
+
{item.themes && (
|
184
|
+
<div className="campaign-topics">
|
185
|
+
<i class="bi bi-tag"></i>
|
186
|
+
<span>{item.themes}</span>
|
187
|
+
</div>
|
188
|
+
)}
|
189
|
+
{item.zones && (
|
190
|
+
<div className="campaign-zones">
|
191
|
+
<i class="bi bi-geo-alt"></i>
|
192
|
+
{item.zones}
|
193
|
+
</div>
|
194
|
+
)}
|
195
|
+
</div>
|
196
|
+
)}
|
180
197
|
{item.description && (
|
181
198
|
<div
|
182
199
|
className="campaign-description"
|
@@ -197,17 +214,17 @@ function ContentText({
|
|
197
214
|
__html: item.commentaires,
|
198
215
|
}}
|
199
216
|
/>
|
200
|
-
<div className="campaign-comment-actions">
|
201
|
-
<a
|
202
|
-
href={urlComment}
|
203
|
-
target="_blank"
|
204
|
-
className="campaign-comment-action-button"
|
205
|
-
>
|
206
|
-
<Translate text="Ajouter un commentaire" />
|
207
|
-
</a>
|
208
|
-
</div>
|
209
217
|
</div>
|
210
218
|
)}
|
219
|
+
<div className="campaign-comment-actions">
|
220
|
+
<a
|
221
|
+
href={urlComment}
|
222
|
+
target="_blank"
|
223
|
+
className="campaign-comment-action-button"
|
224
|
+
>
|
225
|
+
<Translate text="Ajouter un commentaire" />
|
226
|
+
</a>
|
227
|
+
</div>
|
211
228
|
</div>
|
212
229
|
{/* add files to download */}
|
213
230
|
{/* {files && (
|
@@ -38,7 +38,8 @@ function Map(props) {
|
|
38
38
|
return;
|
39
39
|
}
|
40
40
|
const filterArray = props.items.filter((isgeo) => {
|
41
|
-
|
41
|
+
console.log(isgeo);
|
42
|
+
if (isgeo.fields.geolocalisation) {
|
42
43
|
return (
|
43
44
|
isgeo.fields.geolocalisation.lat &&
|
44
45
|
isgeo.fields.geolocalisation.lat !== 50.4989185 &&
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.1
|
2
2
|
Name: imio.smartweb.core
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.8
|
4
4
|
Summary: Core product for iMio websites
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.core
|
6
6
|
Author: Christophe Boulanger
|
@@ -57,19 +57,6 @@ Requires-Dist: plone.restapi[test]; extra == "test"
|
|
57
57
|
Requires-Dist: requests-mock; extra == "test"
|
58
58
|
Requires-Dist: beautifulsoup4; extra == "test"
|
59
59
|
Requires-Dist: freezegun; extra == "test"
|
60
|
-
Dynamic: author
|
61
|
-
Dynamic: author-email
|
62
|
-
Dynamic: classifier
|
63
|
-
Dynamic: description
|
64
|
-
Dynamic: home-page
|
65
|
-
Dynamic: keywords
|
66
|
-
Dynamic: license
|
67
|
-
Dynamic: license-file
|
68
|
-
Dynamic: project-url
|
69
|
-
Dynamic: provides-extra
|
70
|
-
Dynamic: requires-dist
|
71
|
-
Dynamic: requires-python
|
72
|
-
Dynamic: summary
|
73
60
|
|
74
61
|
.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
|
75
62
|
If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
|
@@ -204,6 +191,19 @@ Changelog
|
|
204
191
|
=========
|
205
192
|
|
206
193
|
|
194
|
+
1.3.8 (2025-04-16)
|
195
|
+
------------------
|
196
|
+
|
197
|
+
- Fix queries to get zones / topics from e-guichet
|
198
|
+
[boulch]
|
199
|
+
|
200
|
+
- Fix json pop to prevent errors when change comme from backoffice
|
201
|
+
[thomlamb]
|
202
|
+
|
203
|
+
- Campaign view : Change add comment btn to be visible when there is no comment
|
204
|
+
[thomlamb]
|
205
|
+
|
206
|
+
|
207
207
|
1.3.7 (2025-04-15)
|
208
208
|
------------------
|
209
209
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
imio.smartweb.core-1.3.
|
1
|
+
imio.smartweb.core-1.3.8-py3.8-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
|
2
2
|
imio/smartweb/core/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
3
3
|
imio/smartweb/core/config.py,sha256=BUgfvh4hCaw0onCYAG4gQI1O4hZ-GzXWEltdHi4YLIs,337
|
4
4
|
imio/smartweb/core/configure.zcml,sha256=sCJwomh6ve6OPSDexKNacz2PUkqzI5EVn8SEMZo4Sfw,1630
|
@@ -220,7 +220,7 @@ imio/smartweb/core/contents/rest/view.py,sha256=RlQG2NGojTxQaEySg6Kl1xxDy2KkoC4k
|
|
220
220
|
imio/smartweb/core/contents/rest/campaign/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
221
221
|
imio/smartweb/core/contents/rest/campaign/configure.zcml,sha256=LaZqHBIshYCreTqevApeXioRd8aC9RELcHqJiqg4zCY,2314
|
222
222
|
imio/smartweb/core/contents/rest/campaign/content.py,sha256=F2G0Ta427afuc8o0Rpl7MgJfs1wQJkyltl2qlsK9RlM,3106
|
223
|
-
imio/smartweb/core/contents/rest/campaign/endpoint.py,sha256=
|
223
|
+
imio/smartweb/core/contents/rest/campaign/endpoint.py,sha256=4KjlTgHFuLxSY-jKWY7Efk0FSQMZMuHpQHqYtF4cTJs,7511
|
224
224
|
imio/smartweb/core/contents/rest/campaign/view.pt,sha256=1BSHwa14s0oLq8B8k7XgZCOgmWLFEyHsnuaN3BHOx8c,1012
|
225
225
|
imio/smartweb/core/contents/rest/campaign/view.py,sha256=L96QAMaZveNbOdwzxTGGQFrlfF2t09s8de1oj-zZuAk,845
|
226
226
|
imio/smartweb/core/contents/rest/directory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -721,7 +721,7 @@ imio/smartweb/core/webcomponents/build/assets/pin-react.fda934b5daf26dd4da2a71a7
|
|
721
721
|
imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css,sha256=wWiRww8nYFkWCz8ArFPrhUIegyMD4KNeQGGM2udov08,8426
|
722
722
|
imio/smartweb/core/webcomponents/build/css/420.smartweb-webcomponents-compiled.css,sha256=3Q92R9fWkaxgUWZBpVP1GxVu5NoyQ0l0y_vjjfJgcO8,15928
|
723
723
|
imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css,sha256=fliDxV7ndq55M6cIWIXkHFB5zHmzhRKqkogFqE2C_Xw,8343
|
724
|
-
imio/smartweb/core/webcomponents/build/css/666.smartweb-webcomponents-compiled.css,sha256=
|
724
|
+
imio/smartweb/core/webcomponents/build/css/666.smartweb-webcomponents-compiled.css,sha256=bFf3xBOCl5tqx25caQzXWSIt7wGAeRqd3otfgN4uYMw,11699
|
725
725
|
imio/smartweb/core/webcomponents/build/css/884.smartweb-webcomponents-compiled.css,sha256=Caa6G19xHRnmDsB_YZGqkJTU5o7LP2IwO_HdlwtN1EU,32644
|
726
726
|
imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css,sha256=zRQhgF9klDIGadELi-8rqHrKbHYgLO8Bq4skgUjAXBA,2861
|
727
727
|
imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css,sha256=M8icautg0PsMAmXKrHtVpzfxbu14EYhtawBoD6spwdE,4719
|
@@ -735,7 +735,7 @@ imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js
|
|
735
735
|
imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js,sha256=B03VEQIf5-peYZ3aIPo4HwSjhvfIfcjlCdGtpf1Z7XM,64198
|
736
736
|
imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js.LICENSE.txt,sha256=srGNtnoNHz0w5OlaCDZLtTP8yBsDypbLTNk4qjsLvTU,317
|
737
737
|
imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js,sha256=mA2ASTIlSg0T8xOqrOPxhHSu9_4HZLOfC3xscQfhi2M,35316
|
738
|
-
imio/smartweb/core/webcomponents/build/js/666.smartweb-webcomponents-compiled.js,sha256=
|
738
|
+
imio/smartweb/core/webcomponents/build/js/666.smartweb-webcomponents-compiled.js,sha256=axBZNuyIksTwTcIMVlUyPU_2ZpF7l7L95wArYeMX_2o,35433
|
739
739
|
imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js,sha256=QMD0dRW14xDwbGZu7ItIUo5UrDxm6_f-mXjEe_BQT-A,17400
|
740
740
|
imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js.LICENSE.txt,sha256=R14i0Dp6JC2AOtJVaegrZVAe22i9niDnCBKa5vn7QVc,59
|
741
741
|
imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js,sha256=SDOFrHK3AuLHcrpSvRqHWmxr4AYuf5XtmIarPNh-gck,156597
|
@@ -767,10 +767,10 @@ imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactC
|
|
767
767
|
imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx,sha256=_UbuWGN_Goao7BXlW19rIuvoj_2X7JkXBN8KXqOvbS8,2309
|
768
768
|
imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx,sha256=yg7k4KgIOprikaOImjO-Mh7r83tbw0rgkc3YprQ72_4,13423
|
769
769
|
imio/smartweb/core/webcomponents/src/components/Campaign/Campaign.jsx,sha256=Wm6QkHScfigtYDgSzIFiVinLY75b5v02x_DmczKnhcI,12932
|
770
|
-
imio/smartweb/core/webcomponents/src/components/Campaign/Campaign.scss,sha256=
|
770
|
+
imio/smartweb/core/webcomponents/src/components/Campaign/Campaign.scss,sha256=EIs6VbLyj17G2_lOp35rEcaUHglq1rdkM23IQU2cRhU,18662
|
771
771
|
imio/smartweb/core/webcomponents/src/components/Campaign/index.js,sha256=QSsDk_SfGrFNtfNvm4tpstUxzU7-t8664a_oRHTGYq0,97
|
772
772
|
imio/smartweb/core/webcomponents/src/components/Campaign/CampaignCard/CampaignCard.jsx,sha256=M0IA6iyMiEPuBGB7bdR0MrDXhwfex2vQIq5tgFOoUzA,3415
|
773
|
-
imio/smartweb/core/webcomponents/src/components/Campaign/CampaignContent/CampaignContent.jsx,sha256=
|
773
|
+
imio/smartweb/core/webcomponents/src/components/Campaign/CampaignContent/CampaignContent.jsx,sha256=wFIEa4oD0-T1xCeY_bj5tgLHDfGwxPgU_4iGAwu4avI,10697
|
774
774
|
imio/smartweb/core/webcomponents/src/components/Campaign/CampaignList/CampaignList.jsx,sha256=s1Na63_Xp0yPmQRr7UH5XPAAkmeppB4O8OGOxvBlqWo,2586
|
775
775
|
imio/smartweb/core/webcomponents/src/components/Campaign/Filters/Filter.jsx,sha256=g2sPYM3opHXKz7FpGZRvUbMJ8cTR2OJEyLKH-rIYbX8,7677
|
776
776
|
imio/smartweb/core/webcomponents/src/components/Events/Events.jsx,sha256=sUlNvDWctBhLqftqO6gon9o2ixs9KCs9OqB898h2pho,14493
|
@@ -806,15 +806,15 @@ imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx,s
|
|
806
806
|
imio/smartweb/core/webcomponents/src/hooks/ScrollContext.jsx,sha256=s9bnwrWBvP3hKyNV99kGpKKmSP85Zd5G3Eh8uhkXBas,85
|
807
807
|
imio/smartweb/core/webcomponents/src/hooks/useAxios.js,sha256=Q0OufeKiUrmDifUip29CykzeTNcQAUKiUdViJBmG3Dw,2445
|
808
808
|
imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js,sha256=3OhVCCDmzRQCxs-x14UhwiCaqn2aqpwxL4sypt1nlEo,165
|
809
|
-
imio/smartweb/core/webcomponents/src/utils/CampaignMap.jsx,sha256=
|
809
|
+
imio/smartweb/core/webcomponents/src/utils/CampaignMap.jsx,sha256=MSUTVXGCN2VV3Gml8nIxRMUEnTYqkNAayFJdZmMsL0M,6072
|
810
810
|
imio/smartweb/core/webcomponents/src/utils/Map.jsx,sha256=EpmA8-iqHIkWrjgjR9JKvZp1J6YRz__VcHzOII7puDQ,5284
|
811
811
|
imio/smartweb/core/webcomponents/src/utils/Map.scss,sha256=DVQ6sUQOKFvLhbcamY6EmSrfWYq61gqaQUZ_YM1Le0Q,343
|
812
812
|
imio/smartweb/core/webcomponents/src/utils/translation.js,sha256=C9Zl506jbPx1GJa_1FeYhvo_7zpJJnWp4QjBA-rSkYY,10555
|
813
813
|
imio/smartweb/core/webcomponents/src/utils/url.js,sha256=iyl_1QXfPBgUn0LEbZYT_zMEEjmj5DMiEz44Z6AKLcg,244
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
814
|
+
imio.smartweb.core-1.3.8.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
815
|
+
imio.smartweb.core-1.3.8.dist-info/LICENSE.rst,sha256=RzkMFz6AX3-cHd531zd2YQcXai8RIbjFWTs6m66Y5u4,653
|
816
|
+
imio.smartweb.core-1.3.8.dist-info/METADATA,sha256=zUqFQUZ4i3y2_7ewnipSJ-1jtNKF8pQ9U6E-APyhMuo,63355
|
817
|
+
imio.smartweb.core-1.3.8.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
818
|
+
imio.smartweb.core-1.3.8.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
819
|
+
imio.smartweb.core-1.3.8.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
820
|
+
imio.smartweb.core-1.3.8.dist-info/RECORD,,
|
File without changes
|
{imio_smartweb_core-1.3.7.dist-info/licenses → imio.smartweb.core-1.3.8.dist-info}/LICENSE.GPL
RENAMED
File without changes
|
{imio_smartweb_core-1.3.7.dist-info/licenses → imio.smartweb.core-1.3.8.dist-info}/LICENSE.rst
RENAMED
File without changes
|
{imio_smartweb_core-1.3.7.dist-info → imio.smartweb.core-1.3.8.dist-info}/namespace_packages.txt
RENAMED
File without changes
|
File without changes
|