1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[7201],{44387:(W,V,l)=>{l.d(V,{p:()=>T});var d=l(81790),g=l(3544),I=l(51188),A=l(10916),b=l(54438);let T=(()=>{var h;class B{constructor(){}}return(h=B).\u0275fac=function(k){return new(k||h)},h.\u0275mod=b.$C({type:h}),h.\u0275inj=b.G2t({providers:[g.J,d.Y],imports:[A.G,I.iI]}),B})()},8154:(W,V,l)=>{l.d(V,{L:()=>Zt});var d=l(49823),g=l(12128),I=l(5812),A=l.n(I),b=l(77339),T=l(51188),h=l(64075),B=l(53419),e=l(54438),k=l(35052),L=l(37084),v=l(53387),N=l(92995);class J{constructor(r){this.id=(0,h.SiN)(),this.titre=null,this.baliseType=N.f2.Point,this.dateCreation=null,this.dateModification=null,this.estPublie=!1,this.article=new v.n9,this.listeCategoriesIds=[],this.listeCategories=[],this.emplacement=new v.ad,this.usrIdCreePar=null,this.perIdCreePar=null,this.auteur=null,this.provenanceId=null,this.provenance=null,this.carteId=null,this.isUndesirable=!1,this.isApproved=!1,this.totalLikes=0,this.isLikedByUser=!1,this.totalVotes=0,Object.assign(this,r)}}var X=l(50370),te=l(3544),w=l(72609),D=l(67376),f=function(a){return a.Ferme="Ferme",a.Categorie="Categorie",a.Contenue="Contenue",a}(f||{}),S=function(a){return a.Point="300584CB-CBC1-4BE1-9102-03613B8DA68A",a.Zone="9B812C70-7BB6-4988-B6E7-0D21194E55EA",a.Ligne="1CF04852-FB18-4D51-A869-71813CED019F",a}(S||{});const ie={Plan:{id:"B4212A26-D2CC-447F-8CC4-28693ABD4AF1",codeHR:"ROADMAP",nom:"Plan"},Satellite:{id:"B639D40C-6698-46E3-8650-0DF5D0C78233",codeHR:"SATELLITE",nom:"Satellite"}};var le=l(5964),U=l(96354),Q=l(50969);const ve={fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!0,mapTypeControlOptions:{mapTypeIds:["roadmap","satellite"]},gestureHandling:"cooperative",zoomControl:!0,cameraControl:!0,zoomControlOptions:{position:9},styles:[{featureType:"poi.attraction",stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"poi.government",stylers:[{visibility:"off"}]},{featureType:"poi.medical",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",stylers:[{visibility:"off"}]},{featureType:"poi.school",stylers:[{visibility:"off"}]},{featureType:"poi.sports_complex",stylers:[{visibility:"off"}]}]};var Pe=l(26927),z=l(88974),re=l(60177),fe=l(63851),Ee=l(9310),H=l(89079),G=l(89417),Ce=l(9454),Te=l(59042),ce=l(32102),Me=l(37403),Ie=l(86600),Oe=l(82765),ue=l(82798),me=l(88834),se=l(36013),be=l(14823),Se=l(72811),Re=l(81405),Ae=l(94668),xe=l(95390),Ne=l(73910),ye=l(6053);const $e=["floatingIcon"],Ve=["adresseAutoComplete"],Be=["stepper"],K=(a,r)=>r.id,ge=(a,r)=>r.categorieId,_e=(a,r)=>r.baliseId,ke=()=>[0,.25,.5,.93,1];function je(a,r){if(1&a&&e.nrm(0,"vplus-mobile-header",33),2&a){const t=e.XpG();e.Y8G("headerTitle","")("returnButtonType",t.currentCarte.isVisiblePortailCitoyen?"back-button":"home-button")("menuId",t.currentCarte.id)}}function Le(a,r){1&a&&(e.j41(0,"div",34),e.nrm(1,"vplus-article-non-publiee"),e.k0s())}function we(a,r){1&a&&(e.j41(0,"div",37),e.pXf(1,13),e.k0s())}function Ge(a,r){if(1&a){const t=e.RV6();e.j41(0,"ion-toolbar",66)(1,"ion-buttons",67)(2,"a",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.goBack())}),e.nrm(3,"ion-icon",69),e.k0s()(),e.j41(4,"ion-title"),e.nrm(5,"span",70),e.nI1(6,"safeHtml"),e.k0s()()}if(2&a){const t=e.XpG(2);e.AVh("preview-warning-toolbar",t.isPreview&&!t.inParticipationCitoyenne),e.R7$(5),e.Y8G("innerHTML",e.bMT(6,3,t.currentCarteTitre),e.npT)}}function Fe(a,r){if(1&a){const t=e.RV6();e.j41(0,"ion-button",71),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.openModal())}),e.pXf(1,14),e.k0s()}}function De(a,r){if(1&a){const t=e.RV6();e.j41(0,"span",85),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG(7);return e.Njj(o.openMarkerSidePanel(null,i,!0))}),e.EFF(1),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG(2).$implicit,i=e.XpG(5);e.AVh("active-balise",i.activeCategorie===n.id&&i.activeBalise===t.baliseId)("balises",i.activeBalise!=t.baliseId),e.Y8G("id",t.baliseId),e.R7$(),e.SpI("",t.baliseTitre," ")}}function Xe(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",80),e.bIt("opened",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(5);return e.Njj(o.openCategorie(null,i))})("closed",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(5);return e.Njj(o.closeCategorie(i.id))}),e.j41(1,"mat-expansion-panel-header",81)(2,"mat-panel-title",82),e.nrm(3,"i"),e.j41(4,"span",83)(5,"b"),e.EFF(6),e.k0s()()()(),e.Z7z(7,De,2,6,"span",84,_e),e.k0s()}if(2&a){const t=e.XpG(),n=t.$implicit,i=t.$index,o=e.XpG(5);e.AVh("firstCateg",0===i),e.Y8G("expanded",o.activeCategorie===n.id),e.R7$(),e.Y8G("collapsedHeight","30px")("expandedHeight","30px"),e.R7$(),e.AVh("active-categorie",null===o.activeSection&&o.activeCategorie===n.id),e.FS9("matTooltip",n.nom),e.Y8G("matTooltipDisabled",n.nom.length<o.maxTextLength),e.R7$(),e.ZvI("",n.icone," categorie-icon"),e.R7$(3),e.JRh(n.nom),e.R7$(),e.Dyx(n.balises)}}function Ue(a,r){1&a&&e.DNE(0,Xe,9,13,"mat-expansion-panel",79),2&a&&e.vxM(0,r.$implicit.blsCount?0:-1)}function ze(a,r){if(1&a&&(e.j41(0,"div"),e.Z7z(1,Ue,1,1,null,null,K),e.k0s()),2&a){const t=e.XpG(4);e.R7$(),e.Dyx(t.currentCarte.categoriesSansSection)}}function He(a,r){if(1&a&&(e.j41(0,"div"),e.nrm(1,"i",91),e.k0s()),2&a){e.XpG();const t=e.sdS(1);e.R7$(),e.AVh("icon-plus",!t.expanded)("icon-minus",t.expanded)}}function We(a,r){if(1&a){const t=e.RV6();e.j41(0,"span",36),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG(8);return e.Njj(o.openMarkerSidePanel(null,i,!0))}),e.EFF(1),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG(2).$implicit,i=e.XpG(2).$implicit,o=e.XpG(4);e.AVh("active-balise",o.activeSection===i.id&&o.activeCategorie===n.id&&o.activeBalise===t.baliseId)("balises",o.activeBalise!=t.baliseId),e.Y8G("id",t.baliseId),e.R7$(),e.SpI("",t.baliseTitre," ")}}function Ze(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",80),e.bIt("opened",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2).$implicit,s=e.XpG(4);return e.Njj(s.openCategorie(o,i))})("closed",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(6);return e.Njj(o.closeCategorie(i.id))}),e.j41(1,"mat-expansion-panel-header",93)(2,"mat-panel-title",94),e.nrm(3,"i"),e.j41(4,"span",83)(5,"b"),e.EFF(6),e.k0s()()()(),e.Z7z(7,We,2,6,"span",95,_e),e.k0s()}if(2&a){const t=e.XpG().$implicit,n=e.XpG(2).$implicit,i=e.XpG(4);e.Y8G("expanded",i.activeCategorie===t.id||1===n.visibleCategories),e.R7$(),e.Y8G("collapsedHeight","40px")("expandedHeight","40px"),e.R7$(),e.AVh("active-categorie",i.activeSection===n.id&&i.activeCategorie===t.id),e.FS9("matTooltip",t.nom),e.Y8G("matTooltipDisabled",t.nom.length<i.maxTextLength),e.R7$(),e.ZvI("",t.icone," categorie-icon"),e.R7$(3),e.JRh(t.nom),e.R7$(),e.Dyx(t.balises)}}function Ke(a,r){1&a&&e.DNE(0,Ze,9,11,"mat-expansion-panel",92),2&a&&e.vxM(0,r.$implicit.blsCount?0:-1)}function Ye(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",87,2),e.bIt("opened",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(4);return e.Njj(o.openSection(i))})("closed",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(4);return e.Njj(o.closeSection(i.id))}),e.j41(2,"mat-expansion-panel-header",88),e.bIt("click",function(){e.eBV(t);const i=e.sdS(1),o=e.XpG(5);return e.Njj(1===o.currentCarte.sections.length&&0===o.currentCarte.categoriesSansSection.length&&o.clickSingleSection(i))}),e.j41(3,"mat-panel-title",89)(4,"span",90),e.EFF(5),e.k0s()(),e.DNE(6,He,2,4,"div"),e.k0s(),e.Z7z(7,Ke,1,1,null,null,K),e.k0s()}if(2&a){const t=e.XpG().$implicit,n=e.XpG(4);e.Y8G("expanded",1===n.visibleSections.length&&0===n.visibleCategoriesSansSection.length||n.activeSection===t.id),e.R7$(2),e.Y8G("collapsedHeight","60px")("expandedHeight","60px"),e.R7$(),e.FS9("matTooltip",t.titre),e.Y8G("matTooltipDisabled",t.titre.length<n.maxTextLength),e.R7$(2),e.JRh(t.titre),e.R7$(),e.vxM(6,1===n.visibleSections.length&&0!==n.visibleCategoriesSansSection.length||1!==n.visibleSections.length?6:-1),e.R7$(),e.Dyx(t.categories)}}
1function Je(a,r){if(1&a&&e.DNE(0,Ye,9,7,"mat-expansion-panel",86),2&a){const t=r.$implicit;e.vxM(0,t.categories.length>0&&!t.allCategoriesEmpty?0:-1)}}function Qe(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",96),e.bIt("click",function(){e.eBV(t);const i=e.XpG(4);return e.Njj(i.openAddPinPanel())}),e.nrm(1,"i",97),e.j41(2,"span"),e.pXf(3,16),e.k0s()()}}function qe(a,r){if(1&a&&(e.j41(0,"div",73),e.DNE(1,ze,3,0,"div"),e.Z7z(2,Je,1,1,null,null,K),e.DNE(4,Qe,4,0,"button",78),e.k0s()),2&a){const t=e.XpG(3);e.R7$(),e.vxM(1,0!==t.currentCarte.categoriesSansSection.length?1:-1),e.R7$(),e.Dyx(t.visibleSections),e.R7$(2),e.vxM(4,t.currentCarte.ajoutBaliseByPC&&t.categorieList.length>0?4:-1)}}function et(a,r){1&a&&e.eu8(0)}function tt(a,r){if(1&a&&(e.j41(0,"div",52),e.DNE(1,et,1,0,"ng-container",98),e.k0s()),2&a){e.XpG(2);const t=e.sdS(56);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function nt(a,r){if(1&a&&(e.j41(0,"div",99),e.EFF(1),e.k0s()),2&a){const t=e.XpG(4);e.R7$(),e.SpI(" ",t.localizableContent.moderationLabel," ")}}function it(a,r){if(1&a&&(e.j41(0,"div",59)(1,"div")(2,"span"),e.pXf(3,17),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"vplusMoment"),e.k0s()(),e.DNE(7,nt,2,1,"div",99),e.k0s()),2&a){const t=e.XpG(3);e.R7$(5),e.Lme("",t.sidePanelContent.balise.auteur," - ",e.i5U(6,3,t.sidePanelContent.balise.dateCreation,!0),""),e.R7$(2),e.vxM(7,!t.isHardModeration||null!=t.sidePanelContent&&t.sidePanelContent.balise.isApproved?-1:7)}}function ot(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",61)(1,"button",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.likeBalise())}),e.nrm(2,"i"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"shortNumberFilter"),e.k0s()()}if(2&a){const t=e.XpG(3);e.R7$(2),e.AVh("icon-heart-full",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.isLikedByUser))("icon-heart",!(t.isLoggedIn&&null!=t.sidePanelContent&&t.sidePanelContent.balise.isLikedByUser)),e.R7$(2),e.JRh(e.bMT(5,5,null!=t.sidePanelContent&&t.sidePanelContent.balise.totalLikes?null==t.sidePanelContent?null:t.sidePanelContent.balise.totalLikes:0))}}function at(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",77)(1,"button",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.voteBalise(i.EnumVoteType.Upvote))}),e.nrm(2,"i"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"shortNumberFilter"),e.k0s(),e.j41(6,"button",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.voteBalise(i.EnumVoteType.Downvote))}),e.nrm(7,"i"),e.k0s()()}if(2&a){const t=e.XpG(3);e.R7$(2),e.AVh("icon-upvote-active",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Upvote)("icon-upvote",!(t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Upvote)),e.R7$(),e.AVh("vote-up",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Upvote)("vote-down",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Downvote),e.R7$(),e.SpI(" ",e.bMT(5,13,null!=t.sidePanelContent&&t.sidePanelContent.balise.totalVotes?null==t.sidePanelContent?null:t.sidePanelContent.balise.totalVotes:0)," "),e.R7$(3),e.AVh("icon-downvote-active",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Downvote)("icon-downvote",!(t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Downvote))}}function st(a,r){1&a&&e.eu8(0)}function lt(a,r){if(1&a&&e.DNE(0,st,1,0,"ng-container",98),2&a){e.XpG(2);const t=e.sdS(58);e.Y8G("ngTemplateOutlet",t)}}function rt(a,r){if(1&a){const t=e.RV6();e.nrm(0,"ion-header",72),e.j41(1,"ion-content"),e.DNE(2,qe,5,2,"div",73),e.j41(3,"div",74)(4,"div",75),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.closeAddPinPanel())}),e.nrm(5,"i",50),e.k0s(),e.j41(6,"h4",51)(7,"span"),e.pXf(8,15),e.k0s()(),e.DNE(9,tt,2,1,"div",52),e.k0s(),e.j41(10,"div",76)(11,"div",75),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.closeMarkerSidePanel())}),e.nrm(12,"i",50),e.k0s(),e.j41(13,"h4",51),e.nrm(14,"i",58),e.j41(15,"span"),e.EFF(16),e.k0s()(),e.DNE(17,it,8,6,"div",59),e.j41(18,"div",52)(19,"div",60),e.DNE(20,ot,6,7,"div",61)(21,at,8,15,"div",77),e.k0s(),e.nrm(22,"vplus-froala-container",63),e.DNE(23,lt,1,1,"ng-container"),e.k0s()()()}if(2&a){const t=e.XpG(2);e.xc7("height","10px"),e.R7$(2),e.vxM(2,t.isPanelVisible||t.addPinStep!==t.EnumStepAjoutBalise.Ferme?-1:2),e.R7$(),e.AVh("collapsed",t.addPinStep===t.EnumStepAjoutBalise.Ferme),e.R7$(6),e.vxM(9,!t.isMobile||t.addPinStep!==t.EnumStepAjoutBalise.Categorie&&t.addPinStep!==t.EnumStepAjoutBalise.Contenue?-1:9),e.R7$(),e.AVh("collapsed",!t.isPanelVisible),e.R7$(4),e.Y8G("ngClass",null==t.sidePanelContent?null:t.sidePanelContent.icone),e.R7$(2),e.JRh(null==t.sidePanelContent?null:t.sidePanelContent.balise.titre),e.R7$(),e.vxM(17,t.sidePanelContent&&t.sidePanelContent.balise.provenanceId!==t.EnumProvenanceId.TDB?17:-1),e.R7$(3),e.vxM(20,t.interactionLike?20:-1),e.R7$(),e.vxM(21,t.interactionVote?21:-1),e.R7$(),e.Y8G("content",null==t.sidePanelContent?null:t.sidePanelContent.balise.article.contenu),e.R7$(),e.vxM(23,null!=t.sidePanelContent&&t.sidePanelContent.balise.emplacement.adresse?23:-1)}}function ct(a,r){if(1&a){const t=e.RV6();e.j41(0,"span",85),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG(5);return e.Njj(o.openMarkerSidePanel(null,i,!0))}),e.EFF(1),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG(2).$implicit,i=e.XpG(3);e.AVh("active-balise",i.activeCategorie===n.id&&i.activeBalise===t.baliseId)("balises",
1i.activeBalise!=t.baliseId),e.Y8G("id",t.baliseId),e.R7$(),e.SpI("",t.baliseTitre," ")}}function _t(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",80),e.bIt("opened",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(3);return e.Njj(o.openCategorie(null,i))})("closed",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(3);return e.Njj(o.closeCategorie(i.id))}),e.j41(1,"mat-expansion-panel-header",81)(2,"mat-panel-title",82),e.nrm(3,"i"),e.j41(4,"span",83)(5,"b"),e.EFF(6),e.k0s()()()(),e.Z7z(7,ct,2,6,"span",84,_e),e.k0s()}if(2&a){const t=e.XpG(),n=t.$implicit,i=t.$index,o=e.XpG(3);e.AVh("firstCateg",0===i),e.Y8G("expanded",o.activeCategorie===n.id),e.R7$(),e.Y8G("collapsedHeight","30px")("expandedHeight","30px"),e.R7$(),e.AVh("active-categorie",null===o.activeSection&&o.activeCategorie===n.id),e.FS9("matTooltip",n.nom),e.Y8G("matTooltipDisabled",n.nom.length<o.maxTextLength),e.R7$(),e.ZvI("",n.icone," categorie-icon"),e.R7$(3),e.JRh(n.nom),e.R7$(),e.Dyx(n.balises)}}function dt(a,r){1&a&&e.DNE(0,_t,9,13,"mat-expansion-panel",79),2&a&&e.vxM(0,r.$implicit.blsCount?0:-1)}function pt(a,r){if(1&a&&(e.j41(0,"div",46),e.Z7z(1,dt,1,1,null,null,K),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.Dyx(t.currentCarte.categoriesSansSection)}}function Ct(a,r){if(1&a&&(e.j41(0,"div"),e.nrm(1,"i",91),e.k0s()),2&a){e.XpG();const t=e.sdS(1);e.R7$(),e.AVh("icon-plus",!t.expanded)("icon-minus",t.expanded)}}function ut(a,r){if(1&a){const t=e.RV6();e.j41(0,"span",36),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG(6);return e.Njj(o.openMarkerSidePanel(null,i,!0))}),e.EFF(1),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG(2).$implicit,i=e.XpG(2).$implicit,o=e.XpG(2);e.AVh("active-balise",o.activeSection===i.id&&o.activeCategorie===n.id&&o.activeBalise===t.baliseId)("balises",o.activeBalise!=t.baliseId),e.Y8G("id",t.baliseId),e.R7$(),e.SpI("",t.baliseTitre," ")}}function mt(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",80),e.bIt("opened",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2).$implicit,s=e.XpG(2);return e.Njj(s.openCategorie(o,i))})("closed",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(4);return e.Njj(o.closeCategorie(i.id))}),e.j41(1,"mat-expansion-panel-header",93)(2,"mat-panel-title",94),e.nrm(3,"i"),e.j41(4,"span",83)(5,"b"),e.EFF(6),e.k0s()()()(),e.Z7z(7,ut,2,6,"span",95,_e),e.k0s()}if(2&a){const t=e.XpG().$implicit,n=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("expanded",i.activeCategorie===t.id||1===n.visibleCategories),e.R7$(),e.Y8G("collapsedHeight","40px")("expandedHeight","40px"),e.R7$(),e.AVh("active-categorie",i.activeSection===n.id&&i.activeCategorie===t.id),e.FS9("matTooltip",t.nom),e.Y8G("matTooltipDisabled",t.nom.length<i.maxTextLength),e.R7$(),e.ZvI("",t.icone," categorie-icon"),e.R7$(3),e.JRh(t.nom),e.R7$(),e.Dyx(t.balises)}}function gt(a,r){1&a&&e.DNE(0,mt,9,11,"mat-expansion-panel",92),2&a&&e.vxM(0,r.$implicit.blsCount?0:-1)}function ht(a,r){if(1&a){const t=e.RV6();e.j41(0,"mat-expansion-panel",87,2),e.bIt("opened",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.openSection(i))})("closed",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.closeSection(i.id))}),e.j41(2,"mat-expansion-panel-header",88),e.bIt("click",function(){e.eBV(t);const i=e.sdS(1),o=e.XpG(3);return e.Njj(1===o.currentCarte.sections.length&&0===o.currentCarte.categoriesSansSection.length&&o.clickSingleSection(i))}),e.j41(3,"mat-panel-title",89)(4,"span",90),e.EFF(5),e.k0s()(),e.DNE(6,Ct,2,4,"div"),e.k0s(),e.Z7z(7,gt,1,1,null,null,K),e.k0s()}if(2&a){const t=e.XpG().$implicit,n=e.XpG(2);e.Y8G("expanded",1===n.visibleSections.length&&0===n.visibleCategoriesSansSection.length||n.activeSection===t.id),e.R7$(2),e.Y8G("collapsedHeight","60px")("expandedHeight","60px"),e.R7$(),e.FS9("matTooltip",t.titre),e.Y8G("matTooltipDisabled",t.titre.length<n.maxTextLength),e.R7$(2),e.JRh(t.titre),e.R7$(),e.vxM(6,1===n.visibleSections.length&&0!==n.visibleCategoriesSansSection.length||1!==n.visibleSections.length?6:-1),e.R7$(),e.Dyx(t.categories)}}function vt(a,r){if(1&a&&e.DNE(0,ht,9,7,"mat-expansion-panel",86),2&a){const t=r.$implicit;e.vxM(0,t.categories.length>0&&!t.allCategoriesEmpty?0:-1)}}function Pt(a,r){if(1&a){const t=e.RV6();e.j41(0,"button",96),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.openAddPinPanel())}),e.nrm(1,"i",97),e.j41(2,"span"),e.pXf(3,18),e.k0s()()}}function ft(a,r){if(1&a&&(e.j41(0,"div",47),e.DNE(1,Pt,4,0,"button",78),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.vxM(1,t.currentCarte.ajoutBaliseByPC&&t.categorieList.length>0?1:-1)}}function Et(a,r){1&a&&e.eu8(0)}function Tt(a,r){if(1&a&&(e.j41(0,"div",52),e.DNE(1,Et,1,0,"ng-container",98),e.k0s()),2&a){e.XpG();const t=e.sdS(56);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Mt(a,r){if(1&a&&e.nrm(0,"i",101,3),2&a){const t=e.XpG(2);e.HbH(t.addPinForm.get("categorieIcon").value)}}function It(a,r){if(1&a){const t=e.RV6();e.j41(0,"map-marker",102),e.bIt("mapDragend",function(i){e.eBV(t);const o=e.XpG(2);return e.Njj(o.updatePosition(i))}),e.k0s()}if(2&a){const t=e.XpG(2);e.Y8G("position",t.newBalisePreview.position)("options",t.newBalisePreview.options)}}
1function Ot(a,r){if(1&a&&(e.j41(0,"div",99),e.EFF(1),e.k0s()),2&a){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.localizableContent.moderationLabel," ")}}function bt(a,r){if(1&a&&(e.j41(0,"div",59)(1,"div")(2,"span"),e.pXf(3,19),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"vplusMoment"),e.k0s()(),e.DNE(7,Ot,2,1,"div",99),e.k0s()),2&a){const t=e.XpG(2);e.R7$(5),e.Lme("",t.sidePanelContent.balise.auteur," - ",e.i5U(6,3,t.sidePanelContent.balise.dateCreation,!0),""),e.R7$(2),e.vxM(7,!t.isHardModeration||null!=t.sidePanelContent&&t.sidePanelContent.balise.isApproved?-1:7)}}function St(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",61)(1,"button",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.likeBalise())}),e.nrm(2,"i"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"shortNumberFilter"),e.k0s()()}if(2&a){const t=e.XpG(2);e.R7$(2),e.AVh("icon-heart-full",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.isLikedByUser))("icon-heart",!(t.isLoggedIn&&null!=t.sidePanelContent&&t.sidePanelContent.balise.isLikedByUser)),e.R7$(2),e.JRh(e.bMT(5,5,null!=t.sidePanelContent&&t.sidePanelContent.balise.totalLikes?null==t.sidePanelContent?null:t.sidePanelContent.balise.totalLikes:0))}}function Rt(a,r){if(1&a){const t=e.RV6();e.j41(0,"div",62)(1,"button",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.voteBalise(i.EnumVoteType.Upvote))}),e.nrm(2,"i"),e.k0s(),e.j41(3,"span",103),e.EFF(4),e.nI1(5,"shortNumberFilter"),e.k0s(),e.j41(6,"button",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.voteBalise(i.EnumVoteType.Downvote))}),e.nrm(7,"i"),e.k0s()()}if(2&a){const t=e.XpG(2);e.R7$(2),e.AVh("icon-upvote-active",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Upvote)("icon-upvote",!(t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Upvote)),e.R7$(),e.AVh("vote-up",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Upvote)("vote-down",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Downvote),e.R7$(),e.SpI(" ",e.bMT(5,13,null!=t.sidePanelContent&&t.sidePanelContent.balise.totalVotes?null==t.sidePanelContent?null:t.sidePanelContent.balise.totalVotes:0)," "),e.R7$(3),e.AVh("icon-downvote-active",t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Downvote)("icon-downvote",!(t.isLoggedIn&&(null==t.sidePanelContent?null:t.sidePanelContent.balise.voteCode)===t.EnumVoteType.Downvote))}}function At(a,r){1&a&&e.eu8(0)}function xt(a,r){if(1&a&&e.DNE(0,At,1,0,"ng-container",98),2&a){e.XpG();const t=e.sdS(58);e.Y8G("ngTemplateOutlet",t)}}function Nt(a,r){if(1&a){const t=e.RV6();e.j41(0,"map-marker",104,4),e.bIt("mapMouseover",function(){const i=e.eBV(t).$implicit,o=e.sdS(1),s=e.XpG(2);return e.Njj(s.openMarkerInfo(o,i))})("mapMouseout",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.closeMarkerInfo())})("mapClick",function(){const i=e.eBV(t).$implicit,o=e.XpG(2);return e.Njj(o.openMarkerSidePanel(i))}),e.k0s()}if(2&a){const t=r.$implicit;e.Y8G("position",t.position)("options",t.options)}}function yt(a,r){if(1&a){const t=e.RV6();e.j41(0,"map-polygon",106,5),e.bIt("polygonMouseover",function(){e.eBV(t);const i=e.sdS(1),o=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.openMarkerInfo(i,o))})("polygonMouseout",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.closeMarkerInfo())})("polygonClick",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.openMarkerSidePanel(i))}),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG().$implicit;e.Y8G("paths",t.paths)("options",n.options)}}function $t(a,r){if(1&a){const t=e.RV6();e.j41(0,"map-circle",107,6),e.bIt("circleMouseover",function(){e.eBV(t);const i=e.sdS(1),o=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.openMarkerInfo(i,o.baliseId))})("circleMousemove",function(){e.eBV(t);const i=e.sdS(1),o=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.openMarkerInfo(i,o))})("circleMouseout",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.closeMarkerInfo())})("circleClick",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.openMarkerSidePanel(i))}),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG().$implicit;e.Y8G("center",t.center)("radius",t.radiusInMeter)("options",n.options)}}function Vt(a,r){if(1&a&&(e.j41(0,"span"),e.Z7z(1,yt,2,2,"map-polygon",65,e.Vm6),e.Z7z(3,$t,2,3,"map-circle",105,e.Vm6),e.k0s()),2&a){const t=r.$implicit;e.R7$(),e.Dyx(t.vertices),e.R7$(2),e.Dyx(t.circles)}}function Bt(a,r){if(1&a){const t=e.RV6();e.j41(0,"map-polyline",109,7),e.bIt("polylineMouseover",function(){e.eBV(t);const i=e.sdS(1),o=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.openMarkerInfo(i,o))})("polylineMouseout",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.closeMarkerInfo())})("polylineClick",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.openMarkerSidePanel(i))}),e.k0s()}if(2&a){const t=r.$implicit,n=e.XpG().$implicit;e.Y8G("path",t.paths)("options",n.options)}}function kt(a,r){1&a&&e.Z7z(0,Bt,2,2,"map-polyline",108,e.Vm6),2&a&&e.Dyx(r.$implicit.vertices)}function jt(a,r){if(1&a&&(e.j41(0,"div")(1,"span"),e.nrm(2,"i"),e.
1EFF(3),e.k0s()()),2&a){const t=r.$implicit;e.R7$(2),e.ZvI("info-icon ",t.icone,""),e.R7$(),e.JRh(t.nom)}}function Lt(a,r){if(1&a){const t=e.RV6();e.j41(0,"map-polygon",110,8),e.bIt("polygonClick",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.displayOutOfZoneError())}),e.k0s()}if(2&a){const t=e.XpG(2);e.Y8G("paths",t.addPinRestriction.vertices)("options",t.addPinRestriction.options)}}function wt(a,r){1&a&&e.nrm(0,"i",135)}function Gt(a,r){1&a&&(e.j41(0,"div",136)(1,"h1"),e.pXf(2,27),e.k0s(),e.j41(3,"span"),e.pXf(4,28),e.k0s()())}function Ft(a,r){if(1&a&&(e.j41(0,"mat-option",123),e.nrm(1,"i"),e.j41(2,"span",83),e.EFF(3),e.k0s()()),2&a){const t=r.$implicit;e.Y8G("value",t.categorieId),e.R7$(),e.HbH(t.categorieIcon),e.R7$(2),e.SpI(" ",t.categorieNom,"")}}function Dt(a,r){1&a&&(e.j41(0,"mat-error"),e.pXf(1,29),e.k0s())}function Xt(a,r){1&a&&(e.j41(0,"div",136)(1,"h1"),e.pXf(2,30),e.k0s(),e.j41(3,"span"),e.pXf(4,31),e.k0s()())}function Ut(a,r){if(1&a){const t=e.RV6();e.j41(0,"form",111)(1,"mat-vertical-stepper",112,9),e.bIt("selectionChange",function(i){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onStepChange(i))}),e.DNE(3,wt,1,0,"ng-template",113),e.j41(4,"mat-step",114),e.qex(5),e.DNE(6,Gt,5,0,"ng-template",115),e.j41(7,"div",116)(8,"div",117)(9,"div",118)(10,"mat-form-field",119)(11,"mat-label"),e.pXf(12,20),e.k0s(),e.j41(13,"mat-select",120,10),e.bIt("selectionChange",function(i){e.eBV(t);const o=e.XpG(2);return e.Njj(o.selectNewPinCategorie(i.value))}),e.j41(15,"mat-select-trigger",121)(16,"span",122),e.nrm(17,"i"),e.EFF(18),e.k0s()(),e.Z7z(19,Ft,4,4,"mat-option",123,ge),e.k0s(),e.DNE(21,Dt,2,0,"mat-error"),e.k0s(),e.j41(22,"div",124)(23,"vplus-adresse-autocomplete",125,11),e.bIt("adresseChanged",function(i){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onAdresseChanged(i))}),e.k0s(),e.j41(25,"mat-checkbox",126),e.pXf(26,21),e.k0s()()()()(),e.bVm(),e.k0s(),e.j41(27,"mat-step"),e.DNE(28,Xt,5,0,"ng-template",115),e.j41(29,"div",116)(30,"div",117)(31,"div",118)(32,"mat-form-field",127)(33,"mat-label"),e.pXf(34,22),e.k0s(),e.nrm(35,"input",128),e.j41(36,"mat-hint",129),e.EFF(37),e.k0s(),e.j41(38,"mat-error"),e.pXf(39,23),e.k0s()(),e.j41(40,"mat-form-field",130),e.nrm(41,"textarea",131),e.j41(42,"mat-hint",129),e.EFF(43),e.k0s(),e.j41(44,"mat-error"),e.pXf(45,24),e.k0s()()()(),e.j41(46,"div",132)(47,"button",133),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.submitNewPin())}),e.pXf(48,25),e.k0s(),e.j41(49,"button",134),e.pXf(50,26),e.k0s()()()()()()}if(2&a){const t=e.sdS(14),n=e.XpG(2);e.Y8G("formGroup",n.addPinForm),e.R7$(),e.Y8G("linear",!0),e.R7$(3),e.Y8G("completed",n.isStepValid),e.R7$(9),e.Y8G("value",n.addPinForm.get("categorieId").value),e.R7$(4),e.HbH(n.getCategorieIcon(null==t.selected?null:t.selected.value)),e.R7$(),e.SpI(" ",n.getCategorieNom(null==t.selected?null:t.selected.value)," "),e.R7$(),e.Dyx(n.categorieList),e.R7$(2),e.vxM(21,n.addPinForm.get("categorieId").hasError("required")?21:-1),e.R7$(2),e.AVh("with-errors",n.adresseControl.hasError("outsideZone")),e.Y8G("adresseControl",n.adresseControl)("isRequired",!0)("showErrorMessage",!0)("showCarteInteractiveError",!0),e.R7$(2),e.Y8G("checked",n.addPinForm.get("isApproximative").value),e.R7$(12),e.SpI(" ",n.addPinForm.get("title").value.length," / 60 "),e.R7$(6),e.SpI(" ",n.addPinForm.get("description").value.length," / 255 ")}}function zt(a,r){1&a&&(e.j41(0,"div",141)(1,"span"),e.pXf(2,32),e.k0s()())}function Ht(a,r){if(1&a&&(e.j41(0,"div",137)(1,"span",138),e.nrm(2,"i",139),e.k0s(),e.j41(3,"span",140),e.EFF(4),e.k0s(),e.DNE(5,zt,3,0,"div",141),e.k0s()),2&a){const t=e.XpG(2);e.R7$(4),e.SpI(" ",t.fullAddress," "),e.R7$(),e.vxM(5,null!=t.sidePanelContent&&t.sidePanelContent.balise.isApproximative?5:-1)}}function Wt(a,r){if(1&a){const t=e.RV6();e.j41(0,"ion-content",36),e.nI1(1,"async"),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onContentClick())}),e.DNE(2,we,2,0,"div",37)(3,Ge,7,5,"ion-toolbar",38),e.j41(4,"div",39)(5,"div",40)(6,"ion-footer",41),e.DNE(7,Fe,2,0,"ion-button",42),e.j41(8,"ion-modal",43),e.bIt("willPresent",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onModalOpen())})("willDismiss",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onModalClose())}),e.DNE(9,rt,24,15,"ng-template"),e.k0s()()(),e.j41(10,"div",44)(11,"div",45),e.DNE(12,pt,3,0,"div",46),e.Z7z(13,vt,1,1,null,null,K),e.k0s(),e.DNE(15,ft,2,1,"div",47),e.j41(16,"div",48)(17,"div",49),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeAddPinPanel())}),e.nrm(18,"i",50),e.k0s(),e.j41(19,"h4",51)(20,"span"),e.pXf(21,12),e.k0s()(),e.DNE(22,Tt,2,1,"div",52),e.k0s()(),e.j41(23,"div",53),e.DNE(24,Mt,2,2,"i",54),e.qex(25),e.j41(26,"google-map",55),e.bIt("projectionChanged",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onMapProjectionChanged())})("mapClick",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o.placeNewPin(i))})("mapMousemove",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o.updateFloatingIcon(i))}),e.DNE(27,It,1,2,"map-marker",56),e.j41(28,"div",57)(29,"div",49),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeMarkerSidePanel())}),e.nrm(30,"i",50),e.k0s(),e.j41(31,"h4",51),e.nrm(32,"i",58),e.j41(33,"span"),e.EFF(34),e.k0s()(),e.DNE(35,bt,8,6,"div",59),e.j41(36,"div",52)(37,"div",60),e.DNE(38,St,6,7,"div",61)(39,Rt,8,15,"div",62),e.k0s(),e.nrm(40,"vplus-froala-container",63),e.DNE(41,xt,1,1,"ng-container"),e.k0s()(),e.Z7z(42,Nt,2,2,"map-marker",56,K),e.nI1(44,"blsTypeFilter"),e.Z7z(45,Vt,5,0,"span",null,K),e.nI1(47,"blsTypeFilter"),e.Z7z(48,kt,2,0,null,null,K),e.nI1(50,"blsTypeFilter"),e.j41(51,"map-info-window",64),e.Z7z(52,jt,4,4,"div",null,ge),e.k0s(),e.DNE(54,Lt,2,2,"map-polygon",65),e.k0s(),e.bVm(),e.k0s(),e.DNE(55,Ut,51,17,"ng-template",null,0,e.C5r)(57,Ht,6,2,"ng-template",null,1,e.C5r),e.k0s()()}if(2&a){const t=e.XpG();e.AVh("filter-searche-global-active",e.bMT(1,36,t.selectIsSearchHeaderVisible$)),e.Y8G("id",t.currentCarte.id),e.R7$(2),e.vxM(2,t.isPreview?2:-1),e.R7$(),e.vxM(3,t.inParticipationCitoyenne?-1:3),e.R7$(),e.AVh("preview-small-margin-top",t.isPreview&&!t.inParticipationCitoyenne)("isMobile",t.isMobile),e.R7$(),e.AVh("activated",t.isNavActivated),e.R7$(2),e.vxM(7,t.isNavActivated?-1:7),e.R7$(),e.Y8G("canDismiss",!0)("breakpoints",e.lJ4(47,ke))("initialBreakp
1oint",t.initialBreakpoint),e.R7$(4),e.vxM(12,0!==t.currentCarte.categoriesSansSection.length?12:-1),e.R7$(),e.Dyx(t.visibleSections),e.R7$(2),e.vxM(15,t.isMainView?15:-1),e.R7$(),e.AVh("collapsed",t.addPinStep===t.EnumStepAjoutBalise.Ferme),e.R7$(6),e.vxM(22,t.isMobile||t.addPinStep!==t.EnumStepAjoutBalise.Categorie&&t.addPinStep!==t.EnumStepAjoutBalise.Contenue?-1:22),e.R7$(),e.AVh("margin-top-30px",t.isPreview&&!t.inParticipationCitoyenne),e.R7$(),e.vxM(24,t.addPinForm.get("categorieId").value&&t.addPinStep===t.EnumStepAjoutBalise.Categorie?24:-1),e.R7$(2),e.Y8G("center",t.mapCenter)("options",t.options),e.R7$(),e.vxM(27,t.newBalisePreview.options.visible?27:-1),e.R7$(),e.AVh("collapsed",!t.isPanelVisible),e.R7$(4),e.Y8G("ngClass",null==t.sidePanelContent?null:t.sidePanelContent.icone),e.R7$(2),e.JRh(null==t.sidePanelContent?null:t.sidePanelContent.balise.titre),e.R7$(),e.vxM(35,t.sidePanelContent&&t.sidePanelContent.balise.provenanceId!==t.EnumProvenanceId.TDB?35:-1),e.R7$(3),e.vxM(38,t.interactionLike?38:-1),e.R7$(),e.vxM(39,t.interactionVote?39:-1),e.R7$(),e.Y8G("content",null==t.sidePanelContent?null:t.sidePanelContent.balise.article.contenu),e.R7$(),e.vxM(41,null!=t.sidePanelContent&&t.sidePanelContent.balise.emplacement.adresse?41:-1),e.R7$(),e.Dyx(e.i5U(44,38,t.mapMarkers,t.EnumBaliseTypeId.Point)),e.R7$(3),e.Dyx(e.i5U(47,41,t.mapMarkers,t.EnumBaliseTypeId.Zone)),e.R7$(3),e.Dyx(e.i5U(50,44,t.mapMarkers,t.EnumBaliseTypeId.Ligne)),e.R7$(4),e.Dyx(t.infosElements),e.R7$(2),e.vxM(54,t.currentCarte.applyRestriction&&t.addPinStep!==t.EnumStepAjoutBalise.Ferme?54:-1)}}let Zt=(()=>{var a;class r{constructor(){var n,i;this.location=(0,e.WQX)(re.aZ),this.store=(0,e.WQX)(Ee.il),this.carteInteractiveService=(0,e.WQX)(te.J),this.carteMarkerIconService=(0,e.WQX)(w.ee),this.appConfig=(0,e.WQX)(k.o),this.appMetaTags=(0,e.WQX)(L.W),this.route=(0,e.WQX)(T.nX),this.router=(0,e.WQX)(T.Ix),this.fb=(0,e.WQX)(G.ze),this.action$=(0,e.WQX)(b.En),this.redirectConnexionService=(0,e.WQX)(fe.x),this.cdr=(0,e.WQX)(e.gRc),this.destroyRef=(0,e.WQX)(e.abz),this.inParticipationCitoyenne=!1,this.EnumProvenanceId=N.iZ,this.EnumStepAjoutBalise=f,this.EnumBaliseTypeId=S,this.EnumMapTypes=Object.values(ie),this.isPreview=null!==(n=null===(i=this.route)||void 0===i?void 0:i.snapshot.data.preview)&&void 0!==n&&n,this.isHardModeration=this.appConfig.appConfig.modules.carte.isHardModeration,this.options=ve,this.mapCenter={lat:this.appConfig.appConfig.latitudeCenter,lng:this.appConfig.appConfig.longitudeCenter},this.mapMarkers=[],this.groupIcon="icon-balises-multiples",this.infosElements=[],this.maxTextLength=40,this.dataLoaded=!1,this.refreshSingleSection=!1,this.isPanelVisible=!1,this.visibleSections=[],this.visibleCategoriesSansSection=[],this.addPinStep=f.Ferme,this.categorieList=[],this.newBalisePreview={position:{lat:0,lng:0},options:{icon:{url:"",scaledSize:new google.maps.Size(36,48)},visible:!1,draggable:!0}},this.addPinRestriction={vertices:[[{lat:85.0511,lng:-180},{lat:85.0511,lng:0},{lat:85.0511,lng:180},{lat:-85.0511,lng:180},{lat:-85.0511,lng:0},{lat:-85.0511,lng:-180}]],options:{strokeOpacity:0,fillColor:"#4f4f4d",fillOpacity:"0.8",visible:!0,zIndex:999}},this.defaultZoneColor="#8a8a8a",this.groupZoneColor="#00253E",this.selectedZoneColor="#53A004",this.hexThemeColor=getComputedStyle(document.documentElement).getPropertyValue("--primary-color"),this.breadcrumb=[],this.carteModuleName="carte-interactive",this.localizableContent={moderationLabel:"Votre balise est en attente de mod\xE9ration"},this.isMainView=!0,this.isNavActivated=!1,this.EnumVoteType=v.or,this.isLoggedIn=!1,this.interactionLike=this.appConfig.appConfig.modules.carte.interactionLike,this.interactionVote=this.appConfig.appConfig.modules.carte.interactionVote,this.showHeader=!0,this.initialBreakpoint=.93,this.isMobile=!1,this.selectIsSearchHeaderVisible$=this.store.select(d.selectIsSearchHeaderVisible),this.term=this.route.snapshot.queryParamMap.get("term"),this.pendingRoute=null,this.mapInitiallyFitted=!1,this.viewInitialized=!1}
1ngOnInit(){const n=this.route._routerState.snapshot.url.split("/"+this.carteModuleName)[0].slice(1),i=this.route.snapshot.params.slug,o=`${this.carteModuleName}${this.isPreview?"/apercu/"+i:"/"+i}`;this.mapBaseUrl=this.inParticipationCitoyenne?`${n}/${o}`:o,this.store.select(d.selectCurrentUser).pipe((0,H.pQ)(this.destroyRef)).subscribe(s=>this.currentUser=s),this.store.select(d.selectIsLoggedIn).pipe((0,H.pQ)(this.destroyRef)).subscribe(s=>this.isLoggedIn=s),this.store.select(g.h9).pipe((0,H.pQ)(this.destroyRef),(0,le.p)(s=>!!s)).subscribe(s=>{var c,_,p;this.currentCarte=s,this.currentCarteTitre=this.currentCarte.titre,null!==(c=this.term)&&void 0!==c&&c.trim()&&(this.currentCarteTitre=(0,Pe.g)(this.currentCarte.titre,this.term)),this.options.mapTypeId=null===(_=this.EnumMapTypes.find(u=>u.id===s.mapTypeId))||void 0===_?void 0:_.codeHR.toLowerCase(),this.categorieList=[],this.restrictionPolygones=null!==(p=JSON.parse(s.restrictionPath))&&void 0!==p?p:[],this.addPinRestriction.vertices=[this.addPinRestriction.vertices[0],...this.restrictionPolygones],this.currentCarte.categoriesSansSection.forEach(u=>{u.isActive&&this.categorieList.push({categorieId:u.id,categorieNom:u.nom,categorieIcon:u.icone,sectionId:u.sectionId,catAjoutBaliseParPC:u.catAjoutBaliseParPC})}),this.currentCarte.sections.forEach(u=>{u.categories.forEach($=>{$.isActive&&this.categorieList.push({categorieId:$.id,categorieNom:$.nom,categorieIcon:$.icone,sectionId:$.sectionId,catAjoutBaliseParPC:$.catAjoutBaliseParPC})}),u.allCategoriesEmpty=u.categories.every($=>0===$.blsCount)}),this.manageVisibleNavElt();const P=this.inParticipationCitoyenne?"section":"arg1",m=this.inParticipationCitoyenne?"categorie":"arg2",M=this.inParticipationCitoyenne?"balise":"arg3";let x=null;for(const u of this.currentCarte.sections)if(!this.currentCarte.categoriesSansSection.find(q=>u.titre===q.nom)&&this.sanitizeName(u.titre)===this.route.snapshot.params[P]){x=u;break}const C=x?this.route.snapshot.params[P]:null,E=x?this.route.snapshot.params[m]:this.route.snapshot.params[P],y=x?this.route.snapshot.params[M]:this.route.snapshot.params[m];this.currentCarte.balises&&this.carteMarkerIconService.preload().then(()=>{if(this.loadBalises(this.currentCarte.balises),this.pendingRoute={section:C,categorie:E,balise:y},this.categorieList.sort((u,$)=>u.categorieNom<$.categorieNom?-1:u.categorieNom>$.categorieNom?1:0),this.viewInitialized&&this.pendingRoute){const{section:u,categorie:$,balise:q}=this.pendingRoute;this.pendingRoute=null,this.loadExistingRoute(u,$,q)}this.scheduleInitialMapFit()})}),this.adresseControl=new G.hs({value:null,disabled:!0},[G.k0.required]),this.addPinForm=this.fb.group({categorieId:[null,[G.k0.required]],categorieIcon:null,title:["",[G.k0.required,G.k0.maxLength(60)]],description:["",[G.k0.maxLength(255)]],adresse:this.adresseControl,isApproximative:!1}),this.inParticipationCitoyenne||this.generateBreadcrumb(),this.action$.pipe((0,b.gp)(g.En.likeBaliseSuccess),(0,U.T)(s=>s.payload),(0,H.pQ)(this.destroyRef)).subscribe(()=>{this.sidePanelContent.balise.totalLikes++,this.sidePanelContent.balise.isLikedByUser=!0}),this.action$.pipe((0,b.gp)(g.En.unlikeBaliseSuccess),(0,U.T)(s=>s.payload),(0,H.pQ)(this.destroyRef)).subscribe(()=>{this.sidePanelContent.balise.totalLikes--,this.sidePanelContent.balise.isLikedByUser=!1}),this.action$.pipe((0,b.gp)(g.En.voteBaliseSuccess),(0,U.T)(s=>s.payload),(0,H.pQ)(this.destroyRef)).subscribe(s=>{switch(s.voteCode){case v.or.Upvote:this.sidePanelContent.balise.totalVotes+=this.sidePanelContent.balise.voteCode===v.or.Downvote?2:1,this.sidePanelContent.balise.voteCode=v.or.Upvote;break;case v.or.Downvote:this.sidePanelContent.balise.totalVotes-=this.sidePanelContent.balise.voteCode===v.or.Upvote?2:1,this.sidePanelContent.balise.voteCode=v.or.Downvote}}),this.action$.pipe((0,b.gp)(g.En.unvoteBaliseSuccess),(0,U.T)(s=>s.payload),(0,H.pQ)(this.destroyRef)).subscribe(()=>{this.sidePanelContent.balise.voteCode===v.or.Upvote?this.sidePanelContent.balise.totalVotes-=1:this.sidePanelContent.balise.voteCode===v.or.Downvote&&(this.sidePanelContent.balise.totalVotes+=1),this.sidePanelContent.balise.voteCode=v.or.No_vote}),this.manageMobileFeatures(),this.modal&&this.setCurrentBreakpoint(),window.addEventListener("resize",()=>{this.manageMobileFeatures()}),this.addPinForm.get("categorieId").valueChanges.pipe((0,H.pQ)(this.destroyRef)).subscribe(s=>{s?this.adresseControl.enable():this.adresseControl.disable()})}ngAfterViewInit(){if(this.viewInitialized=!0,this.pendingRoute){const{section:n,categorie:i,balise:o}=this.pendingRoute;this.pendingRoute=null,this.loadExistingRoute(n,i,o)}}onContentClick(){this.store.dispatch(d.Actions.setIsSearchHeaderVisible({payload:!1}))}
1generateBreadcrumb(){this.breadcrumb.push(new X.J("Carte-interactive","/carte-interactive")),this.breadcrumb.push(new X.J(this.currentCarteTitre,""))}get isStepValid(){var n;return(null===(n=this.addPinForm.get("categorieId"))||void 0===n?void 0:n.valid)&&this.adresseControl.valid}onStepChange(n){this.stepper&&(0===n.selectedIndex?this.addPinStep=f.Categorie:1===n.selectedIndex&&(this.addPinStep=f.Contenue))}goToStep(n){this.stepper&&(this.cdr.detectChanges(),this.stepper.selectedIndex=n)}onAdresseChanged(n){var i;if(n){if(null===(i=this.addPinForm.get("isApproximative"))||void 0===i||i.setValue(n.isApproximative),!n.isApproximative){const s=n.latitude,c=n.longitude;if(this.currentCarte.applyRestriction&&this.restrictionPolygones.length>0){const _=new google.maps.LatLng(s,c);this.restrictionPolygones.some(P=>{const m=new google.maps.Polygon({paths:P});return google.maps.geometry.poly.containsLocation(_,m)})?this.placePinByAdresse(s,c):(this.addPinForm.get("adresse").setErrors({outsideZone:!0}),this.addPinForm.get("adresse").markAsTouched())}else this.placePinByAdresse(s,c)}this.isStepValid&&(this.addPinStep=f.Contenue,this.goToStep(1))}else{var o;null===(o=this.addPinForm.get("isApproximative"))||void 0===o||o.setValue(!1)}}loadExistingRoute(n,i,o){const s=!n&&i?this.currentCarte.categoriesSansSection.find(_=>this.sanitizeName(_.nom)===i):null,c=s&&o&&this.currentCarte.balises.find(_=>{var p;return this.sanitizeName(_.baliseSlug)===o&&null===(null!==(p=_.sectionId)&&void 0!==p?p:null)&&_.categorieId===s.id});if(c){this.activeSection=null,this.openCategorie(null,s);const _=this.mapMarkers.find(p=>{var P;return null===(null!==(P=p.sectionId)&&void 0!==P?P:null)&&p.baliseId===c.baliseId&&p.categorie.id===c.categorieId});this.openMarkerSidePanel(_)}else{if(s)return this.activeSection=null,void this.openCategorie(null,s);{const _=n?this.currentCarte.sections.find(m=>this.sanitizeName(m.titre)===n):null,p=_&&i?_.categories.find(m=>this.sanitizeName(m.nom)===i):null,P=p&&o&&this.currentCarte.balises.find(m=>this.sanitizeName(m.baliseSlug)===o&&m.sectionId===_.id&&m.categorieId===p.id);if(P){this.activeSection=_.id,this.openCategorie(_,p);const m=this.mapMarkers.find(M=>M.sectionId===P.sectionId&&M.baliseId===P.baliseId&&M.categorie.id===P.categorieId);return void this.openMarkerSidePanel(m)}if(p)return this.activeSection=_.id,void this.openCategorie(_,p);if(_)return void this.openSection(_)}this.updateRoute()}}updateRoute(n=null,i=null,o=null){let s="";!n&&i&&(s+="/"+this.sanitizeName(i),o&&(s+="/"+this.sanitizeName(o))),n&&(s+="/"+this.sanitizeName(n),i&&(s+="/"+this.sanitizeName(i),o&&(s+="/"+this.sanitizeName(o))));const c=this.route.snapshot.queryParams;"showHeader"in c&&"false"===c.showHeader&&(this.showHeader=!1,s+="?showHeader=false"),this.location.replaceState(`/${this.mapBaseUrl}${s}`)}setActiveSection(n){this.activeSection=n.id,this.activeCategorie=1===n.categories.length?n.categories[0].id:null}setActiveCategorie(n){this.activeCategorie=n}openSection(n){this.activeSection!==n.id&&(this.setActiveSection(n),this.displayBalsForSection(n.id),this.updateRoute(n.titre),this.refreshSingleSection=!1)}clickSingleSection(n){this.refreshSingleSection=!0,n.open(n)}closeSection(n){this.closeSidePanelIfOpened(),this.activeSection===n&&(this.mapMarkers.forEach(i=>{i.baliseType!==S.Point?this.setMarkerZoneColor(i,i.options.primaryZoneColor):i.options={...i.options,icon:{...i.options.icon,url:this.getPointMarkerIconUrlFromMarker(i,i.categorie.iconeBase,!1)}},i.id=(0,h.SiN)()}),this.activeSection=null,this.activeCategorie=null,this.activeBalise=null,this.updateRoute())}closeCategorie(n){this.closeSidePanelIfOpened(),this.activeCategorie===n&&(this.currentCarte.categoriesSansSection.find(o=>o.id===n)&&this.mapMarkers.forEach(o=>{o.baliseType!==S.Point?this.setMarkerZoneColor(o,o.options.primaryZoneColor):o.options={...o.options,icon:{...o.options.icon,url:this.getPointMarkerIconUrlFromMarker(o,o.categorie.iconeBase,!1)}},o.id=(0,h.SiN)()}),this.activeCategorie=null,this.activeBalise=null,this.updateRoute())}openCategorie(n,i){if(this.activeCategorie===i.id&&!n)return this.activeSection=null,void this.updateRoute(null==n?void 0:n.titre,i.nom);this.activeCategorie===i.id&&n||(n?(this.setActiveCategorie(i.id),this.displayBalsForCategorie(n.id,i.id)):(this.activeSection=null,this.activeCategorie=i.id,this.displayBalsForCategorie(null,i.id)),this.updateRoute(null==n?void 0:n.titre,i.nom))}sanitizeName(n){return A()(n,{lower:!0,strict:!0})}trackById(n,i){return i.id}onMapProjectionChanged(){this.scheduleInitialMapFit()}scheduleInitialMapFit(){this.mapInitiallyFitted||this.activeSection||this.activeCategorie||!this.map||0===this.mapMarkers.length||(this.centerMap(),this.mapInitiallyFitted=!0)}centerMap(){if(this.map&&this.mapMarkers.length>0){const n=new google.maps.LatLngBounds;for(const i of this.mapMarkers)i.options.visible&&this.extendBoundsWithMarker(n,i);n.isEmpty()||this.setbounds(n)}}
1extendBoundsWithPosition(n,i){if(!i)return;const o=Number(i.lat),s=Number(i.lng);!Number.isFinite(o)||!Number.isFinite(s)||n.extend(new google.maps.LatLng(o,s))}extendBoundsWithMarker(n,i){if(i.baliseType===S.Point)return void this.extendBoundsWithPosition(n,i.position);let o=!1;for(const p of null!==(s=i.vertices)&&void 0!==s?s:[]){var s;for(const P of null!==(c=p.paths)&&void 0!==c?c:[]){var c;const m=(0,v.Qz)(P);m&&(n.extend(new google.maps.LatLng(m.lat,m.lng)),o=!0)}}for(const p of null!==(_=i.circles)&&void 0!==_?_:[]){var _;const P=new google.maps.LatLngBounds;p.boundsToMap(P),P.isEmpty()||(n.union(P),o=!0)}o||this.extendBoundsWithPosition(n,i.position)}setbounds(n){var i;if(n.getNorthEast().equals(n.getSouthWest())){const s=new google.maps.LatLng(n.getNorthEast().lat()+.001,n.getNorthEast().lng()+.001),c=new google.maps.LatLng(n.getSouthWest().lat()-.001,n.getSouthWest().lng()-.001);n.extend(s),n.extend(c)}const o=()=>{var s;return null===(s=this.map)||void 0===s?void 0:s.fitBounds(n)};null!==(i=this.map)&&void 0!==i&&null!==(i=i.googleMap)&&void 0!==i&&i.getBounds()?setTimeout(o):google.maps.event.addListenerOnce(this.map.googleMap,"idle",o)}addMarkerOnMap(n){var i,o;const s=this.getZoneColor(n),c=null!==(i=[S.Point,S.Zone,S.Ligne].find(y=>{var u;return y.toLowerCase()===(null!==(u=n.baliseType)&&void 0!==u?u:"").toLowerCase()}))&&void 0!==i?i:n.baliseType,_=c===S.Ligne?N.Kx.polyline:N.Kx.polygon,p=JSON.parse(null!==(o=n.zonePath)&&void 0!==o?o:"[]"),P=p.filter(y=>!y[0].radius).map(y=>new v.tS((0,h.SiN)(),y,_)),m=p.filter(y=>!!y[0].radius).map(([{lat:y,lng:u,radius:$}])=>new v.jl((0,h.SiN)(),new google.maps.LatLng(y,u),$)),M=c===S.Point,x=M?null:s,C={id:(0,h.SiN)(),position:{lat:n.empLatitude,lng:n.empLongitude},options:{icon:{url:M?this.getPointMarkerIconUrl(n.categorieIcone,s):"",scaledSize:new google.maps.Size(36,48)},clickable:!0,strokeColor:x,fillColor:x,primaryZoneColor:x,primaryPinColor:M?s:null,visible:!0},emplacementId:n.emplacementId,vertices:P,circles:m,baliseId:n.baliseId,sectionId:n.sectionId,sectionTitre:n.sectionTitre,categorie:{id:n.categorieId,nom:n.categorieNom,iconeBase:n.categorieIcone,iconeMarker:n.categorieIcone},isGrouped:!1,baliseType:c},E=this.mapMarkers.filter(y=>y.baliseId===n.baliseId);if(E.length>=1){const y=-1!==E.findIndex(u=>u.baliseId===n.baliseId&&u.categorie.id!==n.categorieId);E.forEach(u=>(u.baliseId===n.baliseId&&(u.isGrouped=y,u.options.visible=!1,u.id=(0,h.SiN)()),u)),y&&(C.isGrouped=!0,C.baliseType!==S.Point?this.setMarkerZoneColor(C,this.groupZoneColor):C.options.icon.url=this.getPointMarkerIconUrl(this.groupIcon,this.groupZoneColor))}this.mapMarkers.push(C)}setMarkerZoneColor(n,i){n.options.strokeColor=i,n.options.fillColor=i,n.options={...n.options}}getZoneColor(n){let i;switch(n.colorOption){case v.d_.Theme:i=this.hexThemeColor;break;case v.d_.Custom:i=n.colorCode;break;default:i=this.defaultZoneColor}return i}getPointMarkerIconUrl(n,i,o=!1){return this.carteMarkerIconService.getPointMarkerIconUrl(n,i,o)}getPointMarkerIconUrlFromMarker(n,i,o=!1){var s;const c=null!==(s=n.options.primaryPinColor)&&void 0!==s?s:this.defaultZoneColor;return this.getPointMarkerIconUrl(i,c,o)}getCategoriePinColor(n){var i;const o=null===(i=this.currentCarte)||void 0===i||null===(i=i.categoriesSansSection)||void 0===i?void 0:i.find(x=>x.id===n);var s,c;if(o)return this.getZoneColor({colorOption:null===(s=o.color)||void 0===s?void 0:s.colorOption,colorCode:null===(c=o.color)||void 0===c?void 0:c.colorCode});for(const x of null!==(_=null===(p=this.currentCarte)||void 0===p?void 0:p.sections)&&void 0!==_?_:[]){var _,p,P;const C=null===(P=x.categories)||void 0===P?void 0:P.find(E=>E.id===n);var m,M;if(C)return this.getZoneColor({colorOption:null===(m=C.color)||void 0===m?void 0:m.colorOption,colorCode:null===(M=C.color)||void 0===M?void 0:M.colorCode})}return this.defaultZoneColor}getCategorieIcon(n){const i=this.categorieList.find(o=>o.categorieId===n);return i?i.categorieIcon:""}getCategorieNom(n){const i=this.categorieList.find(o=>o.categorieId===n);return i?i.categorieNom:""}loadBalises(n){this.mapInitiallyFitted=!1;for(const i of n)this.addMarkerOnMap(i)}getMarkerCategoryColor(n){var i,o;return n.isGrouped?this.groupZoneColor:n.baliseType!==S.Point?null!==(o=n.options.primaryZoneColor)&&void 0!==o?o:this.defaultZoneColor:null!==(i=n.options.primaryPinColor)&&void 0!==i?i:this.defaultZoneColor}applyMarkerDisplayColor(n,i,o=!1){n.baliseType!==S.Point?this.setMarkerZoneColor(n,i):n.options={...n.options,icon:{...n.options.icon,url:this.getPointMarkerIconUrl(n.isGrouped?this.groupIcon:n.categorie.iconeBase,i,o)}},n.id=(0,h.SiN)()}
1applyFilterColors(n){this.mapMarkers.forEach(i=>{n(i)?this.applyMarkerDisplayColor(i,this.getMarkerCategoryColor(i),!1):this.applyMarkerDisplayColor(i,this.defaultZoneColor,!1)})}applySelectedBaliseColors(n){this.mapMarkers.forEach(i=>{i.baliseId===n.baliseId&&i.categorie.id===n.categorie.id?this.applyMarkerDisplayColor(i,this.selectedZoneColor,!0):this.applyMarkerDisplayColor(i,i.categorie.id===n.categorie.id?this.getMarkerCategoryColor(i):this.defaultZoneColor,!1)})}displayBalsForSection(n){this.closeSidePanelIfOpened(),this.mapMarkers.forEach(o=>{var s;if((null!==(s=o.sectionId)&&void 0!==s?s:null)===(null!=n?n:null)){const c=this.mapMarkers.filter(_=>{var p;return(null!==(p=_.sectionId)&&void 0!==p?p:null)===(null!=n?n:null)&&_.baliseId===o.baliseId});c.length>1?(o.isGrouped=!0,o.options.visible=!1,c[0].options.visible=!0):(o.isGrouped=!1,o.options.visible=!0)}}),this.applyFilterColors(o=>{var s;return(null!==(s=o.sectionId)&&void 0!==s?s:null)===(null!=n?n:null)});const i=new google.maps.LatLngBounds;this.mapMarkers.forEach(o=>{var s;(null!==(s=o.sectionId)&&void 0!==s?s:null)===(null!=n?n:null)&&this.extendBoundsWithMarker(i,o)}),i.isEmpty()||this.setbounds(i)}displayBalsForCategorie(n,i){this.closeSidePanelIfOpened(),this.mapMarkers.forEach(s=>{var c;(null!==(c=s.sectionId)&&void 0!==c?c:null)===(null!=n?n:null)&&s.categorie.id===i&&(s.isGrouped=!1,s.options={...s.options,visible:!0})}),this.applyFilterColors(s=>{var c;return(null!==(c=s.sectionId)&&void 0!==c?c:null)===(null!=n?n:null)&&s.categorie.id===i});const o=new google.maps.LatLngBounds;this.mapMarkers.forEach(s=>{var c;(null!==(c=s.sectionId)&&void 0!==c?c:null)===(null!=n?n:null)&&s.categorie.id===i&&this.extendBoundsWithMarker(o,s)}),o.isEmpty()||this.setbounds(o)}openMarkerSidePanel(n=null,i=null,o=null){const s=!(n||!i);var c,_;if((n=s?this.mapMarkers.find(m=>m.baliseId===i.baliseId&&m.categorie.id===i.categorieId):n)&&s)if(this.map.panTo({lat:null!==(c=n.position.lat)&&void 0!==c?c:JSON.parse(i.zonePath)[0][0].lat,lng:null!==(_=n.position.lng)&&void 0!==_?_:JSON.parse(i.zonePath)[0][0].lng}),n.baliseType!==S.Point){const m=[...n.vertices,...n.circles].reduce((M,x)=>x.boundsToMap(M),new google.maps.LatLngBounds);this.setbounds(m)}else this.map.googleMap.setZoom(17);if(clearTimeout(this.closeSidePanelTimeout),this.isPanelVisible&&this.oldMarkerInPanel===n)return this.closeMarkerSidePanel(null,!1),this.oldMarkerInPanel=null,void(this.activeBalise=null);if(this.isPanelVisible)this.closeMarkerSidePanel(n,s);else{const m=n.baliseId;var p;m&&(this.activeBalise=m,this.activeSection=null!==(p=n.sectionId)&&void 0!==p?p:null,this.activeCategorie=n.categorie.id,this.applySelectedBaliseColors(n),this.carteInteractiveService.fetchBaliseById(m).pipe((0,H.pQ)(this.destroyRef)).subscribe(M=>{if(this.sidePanelContent={balise:M},this.sidePanelContent.icone=n.isGrouped?this.groupIcon:n.categorie.iconeBase,n.baliseType!==S.Point){const x=[...n.vertices,...n.circles].reduce((C,E)=>E.boundsToMap(C),new google.maps.LatLngBounds);this.setbounds(x)}else this.map.panTo({lat:n.position.lat,lng:n.position.lng}),this.map.googleMap.setZoom(17);this.isPanelVisible=!0,this.updateRoute(n.sectionTitre,n.categorie.nom,M.article.slug)}))}const P=document.getElementById(this.activeBalise);P&&!o&&setTimeout(()=>{P.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),this.modal.isOpen||(this.modal.initialBreakpoint=.5,this.modal.present().then(()=>{this.modal.initialBreakpoint=.93}))},300),this.oldMarkerInPanel=n}closeMarkerSidePanel(n=null,i=null){this.isPanelVisible=!1,this.activeBalise=null;const o=this.oldMarkerInPanel;this.oldMarkerInPanel=null,n||(this.activeCategorie?this.applyFilterColors(s=>{var c,_;return(null!==(c=s.sectionId)&&void 0!==c?c:null)===(null!==(_=this.activeSection)&&void 0!==_?_:null)&&s.categorie.id===this.activeCategorie}):this.activeSection?this.applyFilterColors(s=>{var c,_;return(null!==(c=s.sectionId)&&void 0!==c?c:null)===(null!==(_=this.activeSection)&&void 0!==_?_:null)}):o&&this.applyMarkerDisplayColor(o,this.getMarkerCategoryColor(o),!1)),o&&this.updateRoute(o.sectionTitre,o.categorie.nom),this.closeSidePanelTimeout=setTimeout(()=>{this.sidePanelContent=null,n&&this.openMarkerSidePanel(n,null,i)},300)}closeSidePanelIfOpened(){this.isPanelVisible&&this.closeMarkerSidePanel()}openMarkerInfo(n,i){i.isGrouped&&(this.infosElements=[],this.mouseOverMarkerTimeout=setTimeout(()=>
1{if(this.mapMarkers.forEach(o=>{o.baliseId===i.baliseId&&-1===this.infosElements.findIndex(s=>s.categorieId===o.categorie.id)&&this.infosElements.push({categorieId:o.categorie.id,icone:o.categorie.iconeBase,nom:o.categorie.nom})}),i.baliseType!==S.Point){const o=[...i.vertices,...i.circles].reduce((s,c)=>c.boundsToMap(s),new google.maps.LatLngBounds);this.infoWindow.position=o.getCenter(),this.infoWindow.open()}else this.infoWindow.open(n)},300))}closeMarkerInfo(){clearTimeout(this.mouseOverMarkerTimeout),this.infoWindow.close()}ionViewWillEnter(){var n,i;this.appMetaTags.updateMetaTags(null===(n=this.currentCarte)||void 0===n?void 0:n.titre),null!==(i=this.route.snapshot)&&void 0!==i&&null!==(i=i.queryParams)&&void 0!==i&&i.ajout&&this.openAddPinPanel(!0)}goBack(){window.history.length>1?this.location.back():this.router.navigate(["/"])}openAddPinPanel(n=!1){var i,o;if(this.isPreview)this.store.dispatch(new d.Actions.ShowSnackBar("Il n'est pas possible d'ajouter des balises en mode aper\xE7u",d.EnumSnackBarType.Echec));else if(this.currentUser){if(this.isMobile&&this.modal&&n&&this.modal.present(),this.addPinStep=f.Categorie,this.setMarkersClickable(!1),this.isMainView=!1,this.currentCarte.applyRestriction&&this.restrictionPolygones.length>0){const s=new google.maps.LatLngBounds;this.restrictionPolygones.forEach(c=>{c.forEach(({lat:_,lng:p})=>{s.extend(new google.maps.LatLng(_,p))})}),this.setbounds(s)}}else this.modal.dismiss(),(null===(i=this.route)||void 0===i||null===(i=i.parent)||void 0===i||null===(i=i.parent)||void 0===i||null===(i=i.snapshot.data)||void 0===i?void 0:i.module)===v.AL.Participation?this.router.navigate([this.appConfig.appConfig.moduleName.partCitoyenne.url,null===(o=this.route)||void 0===o||null===(o=o.parent)||void 0===o?void 0:o.snapshot.params.slug,"carte-interactive",this.route.snapshot.params.slug,"connexion"],{queryParams:{ajout:"1"}}):this.router.navigate(["carte-interactive","connexion",this.route.snapshot.params.slug],{queryParams:{ajout:"1"}})}setMarkersClickable(n){this.mapMarkers.forEach(i=>{i.baliseType!==S.Point&&(i.options.clickable=n,i.id=(0,h.SiN)())})}selectNewPinCategorie(n){this.categorieIcon=this.getCategorieIcon(n),this.addPinForm.get("categorieIcon").patchValue(this.addPinForm.get("categorieIcon").value===this.categorieIcon?null:this.categorieIcon);const i=n?this.getCategoriePinColor(n):this.defaultZoneColor,o=this.getPointMarkerIconUrl(this.categorieIcon,i,!0);this.newBalisePreview.options={...this.newBalisePreview.options,icon:{...this.newBalisePreview.options.icon,url:o,scaledSize:new google.maps.Size(36,48)}}}updateFloatingIcon(n){var i;null!==(i=this.floatingIcon)&&void 0!==i&&i.nativeElement&&(this.floatingIcon.nativeElement.style.top=n.pixel.y-11+"px",this.floatingIcon.nativeElement.style.left=n.pixel.x-11+"px")}placeNewPin(n){this.addPinStep===f.Categorie&&this.addPinForm.get("categorieId").value&&(this.newBalisePreview={...this.newBalisePreview,position:{...this.newBalisePreview.position,lat:n.latLng.lat(),lng:n.latLng.lng()},options:{...this.newBalisePreview.options,icon:{...this.newBalisePreview.options.icon,url:this.getPointMarkerIconUrl(this.categorieIcon,this.getCategoriePinColor(this.addPinForm.get("categorieId").value))},visible:!0}},(new google.maps.Geocoder).geocode({location:this.newBalisePreview.position},(o,s)=>{if(s!==google.maps.GeocoderStatus.OK&&0===o.length)return;const c=h.iMc.getAdresseFromResultAddressComponents(o[0].address_components);this.adresseAutoComplete.setAdresseSelected(c.adresse,null,!0,o[0].place_id,!0)}),this.modal.present())}placePinByAdresse(n,i){this.map.panTo({lat:n,lng:i}),this.newBalisePreview={...this.newBalisePreview,position:{lat:n,lng:i},options:{...this.newBalisePreview.options,icon:{...this.newBalisePreview.options.icon,url:this.getPointMarkerIconUrl(this.categorieIcon,this.getCategoriePinColor(this.addPinForm.get("categorieId").value))},visible:!0}}}updatePosition(n){!this.currentCarte.applyRestriction||this.restrictionPolygones.some(o=>{const s=new google.maps.Polygon({paths:o});return google.maps.geometry.poly.containsLocation(n.latLng,s)})?this.newBalisePreview.position={lat:n.latLng.lat(),lng:n.latLng.lng()}:this.newBalisePreview=(0,D.cloneDeep)(this.newBalisePreview)}displayOutOfZoneError(){this.store.dispatch(new d.Actions.ShowSnackBar("Veuillez d\xE9poser le point \xE0 l'int\xE9rieur des zone
1s permises",d.EnumSnackBarType.Echec))}closeAddPinPanel(){this.addPinStep=f.Ferme,this.setMarkersClickable(!0),this.addPinForm.reset(),this.addPinForm.patchValue({categorieId:null,categorieIcon:null,title:"",description:"",isApproximative:!1}),this.newBalisePreview.options.visible=!1,this.isMainView=!0}submitNewPin(){this.addPinForm.invalid?this.addPinForm.markAllAsTouched():(new google.maps.Geocoder).geocode({location:this.newBalisePreview.position},(i,o)=>{var s,c,_,p,P;if(o!==google.maps.GeocoderStatus.OK&&0===i.length)return;const m=h.iMc.getAdresseFromResultAddressComponents(i[0].address_components),M=new v.ad;M.latitude=this.newBalisePreview.position.lat,M.longitude=this.newBalisePreview.position.lng,M.nom=null,M.isNew=!0,M.adrNoInf=m.adrNoInf,M.adrVP=m.adrVP,M.adresse=m.adresse,M.adresseProvenanceId=v.Mg.GOOGLE_MAPS,M.isApproximative=this.addPinForm.get("isApproximative").value;const x=this.addPinForm.get("categorieId").value,C=this.categorieList.find(Y=>Y.categorieId===x),E=new J;E.emplacement=M,E.titre=this.addPinForm.get("title").value,E.estPublie=!0,E.perIdCreePar=this.currentUser.perId,E.auteur=`${this.currentUser.prenom} ${this.currentUser.nom}`,E.carteId=this.currentCarte.id,E.adrRecherchePar=h.cz.Adresse,E.listeCategoriesIds=[x],E.article.id=(0,h.SiN)(),E.article.contenu=this.addPinForm.get("description").value,E.article.slug=(0,h.qzq)(this.addPinForm.get("title").value);const y=(0,D.omit)(E,["article","id","emplacement"]),u=(0,D.omit)(E.emplacement,["id","adrId"]),$=(0,D.omit)(E.article,["id"]),q=(0,D.omit)(null!==(s=this.createdBalise)&&void 0!==s?s:{},["id","emplacement","article"]),de=(0,D.omit)(null!==(c=null===(_=this.createdBalise)||void 0===_?void 0:_.emplacement)&&void 0!==c?c:{},["id","adrId"]),pe=(0,D.omit)(null!==(p=null===(P=this.createdBalise)||void 0===P?void 0:P.article)&&void 0!==p?p:{},["id"]);(JSON.stringify(y)!==JSON.stringify(q)&&JSON.stringify($)!==JSON.stringify(pe)||JSON.stringify(u)!==JSON.stringify(de))&&(this.createdBalise=E,this.carteInteractiveService.submitBalise(E).pipe((0,H.pQ)(this.destroyRef)).subscribe(Y=>{var oe;this.newBalisePreview.options.visible=!1;const ae={baliseId:E.id,baliseSlug:E.article.slug,baliseTitre:E.titre,baliseType:E.baliseType,categorieIcone:null==C?void 0:C.categorieIcon,categorieId:null==C?void 0:C.categorieId,categorieNom:null==C?void 0:C.categorieNom,colorCode:null,colorOption:v.d_.PreSelection,empLatitude:E.emplacement.latitude,empLongitude:E.emplacement.longitude,emplacementId:Y.emplacement.id,sectionId:C.sectionId,sectionOrdre:null,sectionTitre:null,zonePath:null};if(!this.isHardModeration&&null!=Y&&null!==(oe=Y.balise)&&void 0!==oe&&oe.isApproved||this.isHardModeration){this.addMarkerOnMap(ae),this.currentCarte.balises.push(ae);const ee=this.currentCarte.sections.find(ne=>ne.id===C.sectionId),he=ee?ee.categories.find(ne=>ne.id===(null==C?void 0:C.categorieId)):this.currentCarte.categoriesSansSection.find(ne=>ne.id===(null==C?void 0:C.categorieId));he.balises.unshift(ae),he.balises.sort((ne,Kt)=>ne.baliseTitre.localeCompare(Kt.baliseTitre))}const R=this.currentCarte.sections.find(ee=>ee.id===C.sectionId);this.isHardModeration||(R?(R.allCategoriesEmpty=!1,R.categories.find(ee=>ee.id===(null==C?void 0:C.categorieId)).blsCount++):this.currentCarte.categoriesSansSection.find(ee=>ee.id===(null==C?void 0:C.categorieId)).blsCount++),this.activeCategorie=x,this.activeSection=C.sectionId,this.closeAddPinPanel(),this.store.dispatch(new d.Actions.ShowSnackBar(this.isHardModeration?"Balise envoy\xE9e en mod\xE9ration avec succ\xE8s":"Votre balise a \xE9t\xE9 soumise avec succ\xE8s")),this.manageVisibleNavElt()},()=>{this.store.dispatch(new d.Actions.ShowSnackBar("Une erreur est survenue lors de la soumission de votre balise",d.EnumSnackBarType.Echec))}))})}likeBalise(){if(!this.currentUser)return this.redirectConnexionService.redirectConnection();this.store.dispatch(!this.isPreview||this.inParticipationCitoyenne?this.sidePanelContent.balise.isLikedByUser?g.En.unlikeBalise({payload:this.sidePanelContent.balise.id}):g.En.likeBalise({payload:this.sidePanelContent.balise.id}):this.sidePanelContent.balise.isLikedByUser?g.En.unlikeBaliseSuccess({payload:this.sidePanelContent.balise.id}):g.En.likeBaliseSuccess({payload:this.sidePanelContent.balise.id}))}voteBalise(n){if(!this.currentUser)return this.redirectConnexionService.redirectConnection();this.store.dispatch(!this.isPreview||this.inParticipationCitoyenne?this.sidePanelContent.balise.voteCode===n?g.En.unvoteBalise({payload:this.sidePanelContent.balise}):g.En.voteBalise({payload:{balise:this.sidePanelContent.balise,voteCode:n}}):this.sidePanelContent.balise.voteCode===n?g.En.unvoteBaliseSuccess({payload:this.sidePanelContent.balise}):g.En.voteBaliseSuccess({payload:{balise:this.sidePanelContent.balise,voteCode:n}}))}manageVisibleNavElt(){this.visibleCategoriesSansSection=this.currentCarte.categoriesSansSection.filter(o=>o.blsCount>0),this.visibleSections=this.currentCarte.sections.filter(o=>!o.allCategoriesEmpty);const n=2===this.visibleSections.length&&this.visibleSections.some(o=>0===o.categories.length||0===o.categories.filter(s=>s.blsCount>0).length),i=1===this.visibleSections.length&&0===this.visibleCategoriesSansSection.length&&this.visibleSections.some(o=>o.categories.filter(s=>s.blsCount>0).length>0);(n||i)&&this.visibleSections.forEach(o=>{const s=o.categories.filter(c=>c.blsCount>0).length;o.visibleCategories=s}),this.visibleSections.length<1&&1===this.visibleCategoriesSansSection.length&&(this.activeCategorie=this.visibleCategoriesSansSection[0].id)}windowHasMobileWidth(){return window.innerWidth<960}get fullAddress(){var n;const i=null===(n=this.sidePanelContent)||void 0===n?void 0:n.balise.emplacement;return[null==i?void 0:i.adresse,null==i?void 0:i.adrVille].filter(
1Boolean).join(", ")}toggleNav(){this.isNavActivated=!this.isNavActivated}openModal(){this.modal.present()}closeModal(){this.modal.dismiss()}onModalOpen(){this.isNavActivated=!0}onModalClose(){this.isNavActivated=!1}manageMobileFeatures(){const n=!this.windowHasMobileWidth();this.options={...this.options,zoomControl:n},this.isMobile=!!this.windowHasMobileWidth()}setCurrentBreakpoint(){const n=window.innerHeight;this.initialBreakpoint=n<=600?.87:n<=830?.9:.93,this.modal.setCurrentBreakpoint(this.initialBreakpoint)}}return(a=r).\u0275fac=function(n){return new(n||a)},a.\u0275cmp=e.VBU({type:a,selectors:[["vplus-carte-interactive-article"]],viewQuery:function(n,i){if(1&n&&(e.GBs(Q.u6,5),e.GBs(Q.D1,5),e.GBs($e,5),e.GBs(Ve,5),e.GBs(Be,5),e.GBs(z.Sb,5)),2&n){let o;e.mGM(o=e.lsd())&&(i.map=o.first),e.mGM(o=e.lsd())&&(i.infoWindow=o.first),e.mGM(o=e.lsd())&&(i.floatingIcon=o.first),e.mGM(o=e.lsd())&&(i.adresseAutoComplete=o.first),e.mGM(o=e.lsd())&&(i.stepper=o.first),e.mGM(o=e.lsd())&&(i.modal=o.first)}},inputs:{carte:"carte",inParticipationCitoyenne:"inParticipationCitoyenne"},decls:3,vars:3,consts:()=>{let t,n,i,o,s,c,_,p,P,m,M,x,C,E,y,u,$,q,de,pe,Y,oe,ae;return t=" Ajout d'un lieu",n="Aper\xE7u",i=" AFFICHER LA LISTE ",o=" Ajout d'un lieu",s="Ajouter un lieu",c="Ajout\xE9e par ",_="Ajouter un lieu",p="Ajout\xE9e par ",P="Adresse postale",m="Br\xE8ve description de votre lieu",M="Cat\xE9gorie",x=" Adresse approximative ",C="Nom du lieu",E="Ce champ est obligatoire",y="Ce champ est obligatoire",u="Soumettre",$="Pr\xE9c\xE9dent",q="Cat\xE9gorie et emplacement",de="Choisissez une cat\xE9gorie, puis d\xE9posez votre lieu sur la carte ou saisissez l'adresse dans le champ ci-dessous",pe=" La cat\xE9gorie est requise. ",Y="Description",oe="Saisissez les informations de votre lieu",ae=" Adresse approximative ",[["addPinStepper",""],["adressePin",""],["expansionPanel",""],["floatingIcon",""],["markerElem","mapMarker"],["polygonElem","mapPolygon"],["circleElem","mapCircle"],["polyLineElem","mapPolyline"],["restriction","mapPolygon"],["stepper",""],["catSelect",""],["adresseAutoComplete",""],t,n,i,o,s,c,_,p,M,x,C,E,y,u,$,q,de,pe,Y,oe,ae,[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","menuId"],[1,"main-page-container","container-center"],[3,"id","filter-searche-global-active"],[3,"click","id"],[1,"preview-warning"],[1,"pc-toolbar-desktop",3,"preview-warning-toolbar"],[1,"carte-interactive-wrapper","flex","main-page-container"],[1,"carte-section-side-menu","hide-desktop"],[1,"pc-mobile-footer"],["no-lines","","expand","full"],["backdropDismiss","true",1,"hide-desktop",3,"willPresent","willDismiss","canDismiss","breakpoints","initialBreakpoint"],[1,"carte-section-side-menu","hide-mobile"],[1,"overflow-auto"],[1,"margin-top-12"],[1,"button-container"],[1,"maps-side-panel","flex-column","add-pin"],[1,"side-panel-close",3,"click"],[1,"icon-close"],[1,"side-panel-title"],[1,"side-panel-content"],[1,"google-maps-wrapper"],["id","new-pin-preview",3,"class"],["height","100%","width","100%",3,"projectionChanged","mapClick","mapMousemove","center","options"],[3,"position","options"],[1,"maps-side-panel","flex-column","hide-mobile"],[3,"ngClass"],[1,"side-panel-author"],[1,"like-vote-section","flex"],[1,"like-section"],["+class","vote-section"],[1,"responsive-padding-bottom",3,"content"],[1,"map-info"],[3,"paths","options"],[1,"pc-toolbar-desktop"],["slot","start"],["routerLinkActive","active",3,"click"],["name","arrow-back",1,"hide-ion-tooltip"],[3,"innerHTML"],["no-lines","","expand","full",3,"click"],["no-lines","","translucent",""],[1,"custom-margin"],[1,"maps-side-panel","mobile","flex-column","add-pin"],[1,"side-panel-close","custom-side",3,"click"],[1,"maps-side-panel","mobile","flex-column"],[1,"vote-section"],["mat-raised-button","","color","primary",1,"custom-button-standard","custom-button-full","ajout-balise-btn"],["hideToggle","true",1,"side-menu-element","map-categorie",3,"expanded","firstCateg"],["hideToggle","true",1,"side-menu-element","map-categorie",3,"opened","closed","expanded"],[1,"side-menu-element","list-categorie-item",3,"collapsedHeight","expandedHeight"],[1,"element-title","align-center","padding-left-24",3,"matTooltip","matTooltipDisabled"],[1,"ellipsis-cat"],[1,"categ-sans-section",3,"id","active-balise","balises"],[1,"categ-sans-section",3,"click","id"],["hideToggle","true",3,"expanded"],["hideToggle","true",3,"opened","closed","expanded"],[1,"side-menu-element","list-section-item",3,"click","collapsedHeight","expandedHeight"],[3,"matTooltip","matTooltipDisabled"],[1,"section-title","ellipsis","bold"],[1,"expand-icon"],["hideToggle","true",1,"side-menu-element","map-categorie",3,"expanded"],[1,"side-menu-element",3,"collapsedHeight","expandedHeight"],[1,"element-title","align-center",3,"matTooltip","matTooltipDisabled"],[3,"id","active-balise","balises"],["mat-raised-button","","color","primary",1,"custom-button-standard","custom-button-full","ajout-balise-btn",3,"click"],[1,"icon-plus-circle"],[4,"ngTemplateOutlet"],[1,"balise-pending"],["mat-icon-button","",3,"click"],["id","new-pin-preview"],[3,"mapDragend","position","options"],[",",""],[3,"mapMouseover","mapMouseout","mapClick","position","options"],[3,"center","radius","options"],[3,"polygonMouseover","polygonMouseout","polygonClick","paths","options"],[3,"circleMouseover","circleMousemove","circleMouseout","circleClick","center","radius","options"],[3,"path","options"],[3,"polylineMouseover","polylineMouseout","polylineClick","path","options"],[3,"polygonClick","paths","options"],[1,"balise-form",3,"formGroup"],[3,"selectionChange","linear"],["matStepperIcon","edit"],[3,"completed"],["matStepLabel",""],[1,"stepper-content"],[1,"editor-section","editor-title-section"],[1,"editor-section","flex-title","editor-title"],[1,"full-width"],["formControlName","categorieId",3,"selectionChange","value"],["matTooltipShowDelay","500"],[1,"block","mat-option-ellipsis-start"],[3,"value"],[1,"selection-geographique-adresse-container"],["placeholder",P,3,"adresseChanged","adresseControl","isRequired","showErrorMessage","showCarteInteractiveError"],["disabled","true",1,"adresse-approximative-checkbox",3,"checked"],[1,"full-width","margin-bottom-1"],["matInput","","required","","formControlName","title","maxlength","60"],["align","end"],["appearance","outline",1,"full-width","margin-bottom-1"],["matInput","","formControlName","description","placeholder",m,"cdkTextareaAutosize","","autosize","","maxlength","255",1,"min-height-5vh"],[1,"ajout-balise-form-actions"],["mat-raised-button","",1,"custom-button-standard","custom-button-full",3,"click"],["mat-stroked-button","","matStepperPrevious","",1,"custom-button-standard","custom-button-stroked"],[1,"icon-check"],[1,"step-header-wrapper"],[1,"adresse-section"],[1,"icon-span"],[1,"icon-map-pin"],[1,"adresse-span"],[1,"adresse-approximative"]]},template:function(n,i){1&n&&e.DNE(0,je,1,3,"vplus-mobile-header",33)(1,Le,2,0,"div",34)(2,Wt,59,48,"ion-content",35),2&n&&(e.vxM(0,!i.inParticipationCitoyenne&&i.showHeader?0:-1),e.R7$(),e.vxM(1,i.currentCarte.isVisiblePortailCitoyen||i.isPreview?-1:1),e.R7$(),e.vxM(2,i.currentCarte.isVisiblePortailCitoyen||i.isPreview?2:-1))},dependencies:[Ce.GK,Ce.Z2,Ce.WN,Te.fg,ce.rl,ce.nJ,ce.MV,ce.TL,Me.xb,Ie.wT,Oe.So,ue.VO,ue.$2,me.$z,me.iY,se.V5,se.Ti,se.M6,se.FR,se.xJ,be.oV,re.YU,re.T3,G.qT,G.me,G.BC,G.cb,G.YS,G.tU,G.j4,G.JD,Se.H,Re.f,z.Jm,z.QW,z.W9,z.M0,z.eU,z.iq,z.BC,z.ai,z.Sb,Ae.j,xe.m,B.v,Q.u6,Q.py,Q.D1,Q.fU,Q.tc,Q.ZC,T.wQ,re.Jj,Ne.x,h.Nu$,h.E2B,ye.$],styles:[".carte-section-side-menu.hide-mobile[_ngcontent-%COMP%]{position:relative;width:26%;min-width:300px;min-height:412px;background-color:#fff;height:100vh;overflow:hidden;display:grid;grid-template-rows:1fr auto}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{display:contents}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{overflow:visible}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .icon-close[_ngcontent-%COMP%]{font-size:24px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%]{width:80%}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:10px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] .element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;margin-right:10px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] .edit-element[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .categorie-icon[_ngcontent-%COMP%]{margin-right:10px;color:#000}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .list-section-item[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{font-size:19px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .list-section-item[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{font-size:17px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .map-categorie[_ngcontent-%COMP%]{border-bottom:none;cursor:pointer}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .active-categorie[_ngcontent-%COMP%], .carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .active-categorie[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#8bd23f}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ellipsis-cat[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .active-balise[_ngcontent-%COMP%]{color:var(--dark-text-color)!important;margin-left:25px;margin-top:10px;display:block;word-wrap:break-word;font-weight:600}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .balises[_ngcontent-%COMP%]{color:var(--standard-text-color)!important;margin-left:25px;margin-top:10px;display:block;word-wrap:break-word}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .balises[_ngcontent-%COMP%]:hover{color:var(--dark-text-color)!important}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .categ-sans-section[_ngcontent-%COMP%]{margin-left:50px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .list-categorie-item[_ngcontent-%COMP%]{margin-top:10px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .firstCateg[_ngcontent-%COMP%]{margin-top:5px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{border-radius:unset;box-shadow:unset;
1border-bottom:1px solid var(--divider-color)}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background:transparent!important}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .element-title[_ngcontent-%COMP%]:hover{color:#8bd23f!important}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .padding-left-24[_ngcontent-%COMP%]{padding-left:24px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-btn[_ngcontent-%COMP%]{margin:16px auto}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .button-container[_ngcontent-%COMP%]{position:sticky;bottom:0;background:#fff;display:flex;border-top:1px solid var(--divider-color);justify-content:center;z-index:10}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{justify-content:center}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-left:auto}@media (max-width: 1394px){.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%]{flex-direction:column}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:0!important;margin-bottom:18px}.carte-section-side-menu.hide-mobile[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-bottom:0}}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%]::part(scroll){overflow-y:var(--overflow);overscroll-behavior-y:contain}ion-modal[_ngcontent-%COMP%]::part(handle){top:10px!important}ion-modal[_ngcontent-%COMP%]{--border-radius: 30px 30px 0px 0px !important;--backdrop-opacity: 0;--width: 100%}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%]{display:contents}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .custom-margin[_ngcontent-%COMP%]{margin-top:2.5rem}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{display:contents}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{overflow:visible}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%]{width:80%}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:10px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] .element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;margin-right:10px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .side-menu-element[_ngcontent-%COMP%] .edit-element[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .categorie-icon[_ngcontent-%COMP%]{margin-right:10px;color:#000}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .list-section-item[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{font-size:19px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .list-section-item[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{font-size:17px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .map-categorie[_ngcontent-%COMP%]{border-bottom:none;cursor:pointer}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .active-categorie[_ngcontent-%COMP%]{color:#8bd23f}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .active-categorie[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#8bd23f}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .ellipsis-cat[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .active-balise[_ngcontent-%COMP%]{color:var(--dark-text-color)!important;margin-left:25px;margin-top:10px;display:block;word-wrap:break-word;font-weight:600}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .balises[_ngcontent-%COMP%]{color:var(--standard-text-color)!important;margin-left:25px;margin-top:10px;display:block;word-wrap:break-word}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .balises[_ngcontent-%COMP%]:hover{color:var(--dark-text-color)!important}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .categ-sans-section[_ngcontent-%COMP%]{margin-left:50px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .list-categorie-item[_ngcontent-%COMP%]{margin-top:10px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .firstCateg[_ngcontent-%COMP%]{margin-top:5px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{border-radius:unset;box-shadow:unset;
1border-bottom:1px solid var(--divider-color)}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background:transparent!important}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .element-title[_ngcontent-%COMP%]:hover{color:#8bd23f!important}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .padding-left-24[_ngcontent-%COMP%]{padding-left:24px}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .ajout-balise-btn[_ngcontent-%COMP%]{margin:16px auto}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{justify-content:center}ion-modal[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-left:auto}.carte-section-side-menu.hide-desktop[_ngcontent-%COMP%]{position:absolute;width:26%;min-width:300px;overflow-y:auto;background-color:#fff;overflow:auto;z-index:1000;border-radius:30px 30px 0 0;bottom:0}.carte-section-side-menu.hide-desktop[_ngcontent-%COMP%] ion-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.carte-section-side-menu.hide-desktop[_ngcontent-%COMP%] ion-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{font-weight:700;--color: var(--primary-color);--font-family: var(--primary-font);--background: white;box-shadow:none!important;--box-shadow: none}.carte-section-side-menu.hide-desktop[_ngcontent-%COMP%] ion-footer[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{box-shadow:none!important}.carte-section-side-menu.hide-desktop.activated[_ngcontent-%COMP%]{display:none}.google-maps-wrapper[_ngcontent-%COMP%]{position:relative;width:80%;min-width:inherit!important;max-width:inherit!important;padding:0;margin-right:0;overflow:auto}@media (max-width: 599px){.google-maps-wrapper.margin-top-30px[_ngcontent-%COMP%]{margin-top:30px}}.google-maps-wrapper[_ngcontent-%COMP%] #new-pin-preview[_ngcontent-%COMP%]{position:absolute;z-index:2;font-size:larger;top:-50px;left:-50px;pointer-events:none}.google-maps-wrapper[_ngcontent-%COMP%] .map-center-button[_ngcontent-%COMP%]{position:absolute;bottom:110px;right:10px;height:40px;width:40px;min-width:40px;padding:0}.google-maps-wrapper[_ngcontent-%COMP%] .map-center-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:23px!important;font-weight:700;color:#666}.google-maps-wrapper[_ngcontent-%COMP%] .map-info[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{color:#000;margin-right:5px}.maps-side-panel[_ngcontent-%COMP%]{width:30%;min-width:400px;position:absolute;top:0;left:0;bottom:0;background-color:#fff;margin-left:0;transition:margin-left .3s;border:1px solid var(--divider-color);z-index:1}.maps-side-panel.add-pin[_ngcontent-%COMP%]{width:100%;min-width:300px}.maps-side-panel.add-pin.collapsed[_ngcontent-%COMP%]{margin-left:calc(max(100%,300px)*-1)}.maps-side-panel.add-pin[_ngcontent-%COMP%] .side-panel-content[_ngcontent-%COMP%]{margin-top:0}.maps-side-panel.add-pin[_ngcontent-%COMP%] .side-panel-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:smaller}.maps-side-panel.add-pin[_ngcontent-%COMP%] .side-panel-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block}.maps-side-panel.add-pin[_ngcontent-%COMP%] .side-panel-content[_ngcontent-%COMP%] button.selected[_ngcontent-%COMP%]{background-color:#0000001f}.maps-side-panel.add-pin[_ngcontent-%COMP%] .side-panel-content[_ngcontent-%COMP%] button.mat-flat-button[_ngcontent-%COMP%]:not(.selected){background-color:transparent}.maps-side-panel.mobile[_ngcontent-%COMP%]:not(.collapsed){min-width:100%!important;border:none!important}.maps-side-panel.mobile[_ngcontent-%COMP%]:not(.collapsed) .icon-close[_ngcontent-%COMP%]{font-size:24px}.maps-side-panel.mobile[_ngcontent-%COMP%] .side-panel-title[_ngcontent-%COMP%]{font-size:20px}.maps-side-panel[_ngcontent-%COMP%] .side-panel-close[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:0;top:0;height:30px;width:30px;color:var(--primary-color);display:flex;justify-content:center;align-items:center}.maps-side-panel[_ngcontent-%COMP%] .side-panel-close.custom-side[_ngcontent-%COMP%]{color:var(--primary-color);background-color:transparent;margin-right:10px;margin-top:.8rem}.maps-side-panel[_ngcontent-%COMP%] .side-panel-title[_ngcontent-%COMP%]{padding:40px 18px 0}@media (min-width: 960px){.maps-side-panel[_ngcontent-%COMP%] .side-panel-title[_ngcontent-%COMP%]{padding:40px 18px 7px}}.maps-side-panel[_ngcontent-%COMP%] .side-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:10px;color:#000}.maps-side-panel[_ngcontent-%COMP%] .side-panel-author[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.9rem;padding:0 18px;color:var(--standard-text-color)}.maps-side-panel[_ngcontent-%COMP%] .side-panel-content[_ngcontent-%COMP%]{flex:1;padding:0 18px 18px;overflow-y:auto}.maps-side-panel.collapsed[_ngcontent-%COMP%]{margin-left:calc(max(30%,400px)*-1)}@media (max-width: 959px){.carte-interactive-wrapper[_ngcontent-%COMP%]{flex-direction:column-reverse}.carte-interactive-wrapper[_ngcontent-%COMP%] .carte-section-side-menu[_ngcontent-%COMP%]{width:100%!important}.carte-interactive-wrapper[_ngcontent-%COMP%] .carte-section-side-menu[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%]{flex-direction:column}.carte-interactive-wrapper[_ngcontent-%COMP%] .carte-section-side-menu[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:16px}.carte-interactive-wrapper[_ngcontent-%COMP%] .carte-section-side-menu[_ngcontent-%COMP%] .ajout-balise-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-left:auto}.carte-interactive-wrapper[_ngcontent-%COMP%] .google-maps-wrapper[_ngcontent-%COMP%]{width:100%;height:100%}.carte-interactive-wrapper[_ngcontent-%COMP%] .maps-side-panel[_ngcontent-%COMP%]{width:100%;min-width:0}
1.carte-interactive-wrapper[_ngcontent-%COMP%] .maps-side-panel.collapsed[_ngcontent-%COMP%]{margin-left:-100%}}.main-page-container[_ngcontent-%COMP%], .carte-interactive-wrapper[_ngcontent-%COMP%]{height:80%}.main-page-container.isMobile[_ngcontent-%COMP%], .carte-interactive-wrapper.isMobile[_ngcontent-%COMP%]{height:100%}.balise-pending[_ngcontent-%COMP%]{font-style:italic;color:#696969}.like-vote-section[_ngcontent-%COMP%]{align-items:flex-start}.like-vote-section[_ngcontent-%COMP%] button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.like-vote-section[_ngcontent-%COMP%] .like-section[_ngcontent-%COMP%]{margin-right:15px;display:flex;align-items:center}.like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%]{display:flex;align-items:center}.like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .icon-upvote[_ngcontent-%COMP%], .like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .icon-downvote[_ngcontent-%COMP%]{color:#0000003d}.like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .icon-upvote[_ngcontent-%COMP%]:hover, .like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .icon-upvote-active[_ngcontent-%COMP%], .like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .vote-up[_ngcontent-%COMP%]{color:#30b736}.like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .icon-downvote[_ngcontent-%COMP%]:hover, .like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .icon-downvote-active[_ngcontent-%COMP%], .like-vote-section[_ngcontent-%COMP%] .vote-section[_ngcontent-%COMP%] .vote-down[_ngcontent-%COMP%]{color:#ec5e27}.icon-heart-full[_ngcontent-%COMP%]{color:#ff3347}.icon-heart[_ngcontent-%COMP%]{color:#0000003d} .mat-vertical-content-container{margin-left:10px!important} .mat-vertical-content-container .mat-vertical-content{padding-right:0!important} .balise-form mat-vertical-stepper mat-step-header{padding:15px 0 35px!important} .balise-form mat-vertical-stepper mat-step-header .mat-step-label h1{font-size:18px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px!important} .balise-form mat-vertical-stepper mat-step-header .mat-step-label span{font-size:14px;white-space:normal} .balise-form mat-vertical-stepper .mat-step:first-child mat-step-header{padding:25px 0 45px!important}@media (min-width: 960px) and (max-width: 1428px){ .balise-form mat-vertical-stepper .mat-step:first-child mat-step-header{padding:35px 0 55px!important}}@media (min-width: 960px){ .balise-form vplus-adresse-autocomplete.with-errors .mat-form-field{margin-bottom:30px}} .balise-form vplus-adresse-autocomplete .adresse-inputs-container{display:inline!important;font-size:18px!important}@media (min-width: 960px){ .balise-form vplus-adresse-autocomplete .adresse-inputs-container{font-size:16px!important}} .balise-form vplus-adresse-autocomplete .adresse-inputs-container mat-error{font-size:12px;margin-bottom:10px} .balise-form .mat-stepper-vertical-line:before{top:-30px!important;bottom:-2px!important}@media (min-width: 960px) and (max-width: 1428px){ .balise-form .mat-stepper-vertical-line:before{top:-40px}} .balise-form .mat-checkbox-checked.mat-accent.mat-checkbox-disabled .mat-checkbox-background{background-color:#989898!important} .balise-form .mat-checkbox-inner-container{height:18px;width:18px}@media (min-width: 960px){ .balise-form .mat-checkbox-inner-container{height:16px;width:16px}}.stepper-content[_ngcontent-%COMP%] .editor-title-section[_ngcontent-%COMP%]{display:block;padding-top:10px}.adresse-section[_ngcontent-%COMP%]{margin-top:25px}.adresse-section[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:5px}.adresse-section[_ngcontent-%COMP%] .adresse-approximative[_ngcontent-%COMP%]{color:var(--standard-text-color);font-size:.9rem;margin-left:24px;margin-top:10px}.selection-geographique-adresse-container[_ngcontent-%COMP%] mat-error[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.85rem}.balise-form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{font-size:18px!important}@media (min-width: 960px){.balise-form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{font-size:16px!important}}.balise-form[_ngcontent-%COMP%] .adresse-approximative-checkbox[_ngcontent-%COMP%]{font-size:18px!important;margin-top:30px}@media (min-width: 960px){.balise-form[_ngcontent-%COMP%] .adresse-approximative-checkbox[_ngcontent-%COMP%]{font-size:16px!important;margin-top:10px}}"]}),r})()},81790:(W,V,l)=>{l.d(V,{Y:()=>B});var d=l(12128),g=l(3544),I=l(96354),A=l(99437),b=l(54438),T=l(9310),h=l(51188);let B=(()=>{var e;class k{constructor(v,N,F){this.store=v,this.carteInteractiveService=N,this.router=F}resolve(v){const N=v.params.slug;return(v.data.preview?this.carteInteractiveService.fetchCartePreview(N):this.carteInteractiveService.fetchCarte(N)).pipe((0,I.T)(j=>this.store.dispatch(d.En.setCurrentCarte({payload:j}))),(0,A.W)(()=>this.router.navigate(["page-non-trouvee"])))}}return(e=k).\u0275fac=function(v){return new(v||e)(b.KVO(T.il),b.KVO(g.J),b.KVO(h.Ix))},e.\u0275prov=b.jDH({token:e,factory:e.\u0275fac}),k})()},3544:(W,V,l)=>{l.d(V,{J:()=>b});var d=l(72609),g=l(98377),I=l(54438);const A="/carte-interactive";let b=(()=>{var T;class h{constructor(e,k){this.backend=e,this.localisationService=k}fetchCarte(e){return this.backend.get(`${A}/${e}?localisation=${this.localisationService.getCurrentLocalisation()}`)}fetchCartePreview(e){return this.backend.get(`${A}/preview/${e}?localisation=${this.localisationService.getCurrentLocalisation()}`)}fetchBaliseById(e){return this.backend.get(`${A}/balise/${e}?localisation=${this.localisationService.getCurrentLocalisation()}`)}submitBalise(e){return this.backend.post(`${A}/balise`,e)}likeBalise(e){return this.backend.post(`${A}/balise/${e}/like`,{})}unlikeBalise(e){return this.backend.delete(`${A}/balise/${e}/like`)}voteBalise(e,k){return this.backend.post(`${A}/balise/${e}/vote`,{voteCode:k})}unvoteBalise(e){return this.backend.delete(`${A}/balise/${e}/vote`)}}return(T=h).\u0275fac=function(e){return new(e||T)(I.KVO(d.m3),I.KVO(g.A))},T.\u0275prov=I.jDH({token:T,factory:T.\u0275fac}),h})()},56868:(W,V,l)=>{l.r(V),l.d(V,{likeBalise:()=>I,likeBaliseSuccess:()=>A,setCurrentCarte:()=>g,unlikeBalise:()=>b,unlikeBaliseSuccess:()=>T,unvoteBalise:()=>e,unvoteBaliseSuccess:()=>k,voteBalise:()=>h,voteBaliseSuccess:()=>B});var d=l(9310);const g=(0,d.VP)("[Carte_Interactive] SET_CURRENT_CARTE",(0,d.xk)()),I=(0,d.VP)("[Carte_Interactive] LIKE_BALISE",(0,d.xk)()),A=(0,d.VP)("[Carte_Interactive] LIKE_BALISE_SUCCESS",(0,d.xk)()),b=(0,d.VP)("[Carte_Interactive] UNLIKE_BALISE",(0,d.xk)()),T=(0,d.VP)("[Carte_Interactive] UNLIKE_BALISE_SUCCESS",(0,d.xk)()),h=(0,d.VP)("[Carte_Interactive] VOTE_BALISE",(0,d.xk)()),B=(0,d.VP)("[Carte_Interactive] VOTE_BALISE_SUCCESS",(0,d.xk)()),e=(0,d.VP)("[Carte_Interactive] UNVOTE_BALISE",(0,d.xk)()),k=(0,d.VP)("[Carte_Interactive] UNVOTE_BALISE_SUCCESS",(0,d.xk)())},22058:(W,V,l)=>{l.d(V,{_:()=>F});var d=l(56868),g=l(49823),I=l(77339),A=l(35052),b=l(3544),T=l(96354),h=l(25558),B=l(99437),e=l(16293),k=l(87191),L=l(18810),v=l(54438),N=l(9310);let F=(()=>{var j;class O{constructor(Z,X,te,w,D){this.actions$=Z,this.store=X,this.carteInteractiveService=te,this.appConfig=w,this.googleAnalyticsService=D,this.likeBalise$=(0,I.EH)(()=>this.actions$.pipe((0,I.gp)(d.likeBalise),(0,T.T)(f=>f.payload),(0,h.n)(f=>this.carteInteractiveService.likeBalise(f).pipe((0,T.T)(()=>(this.googleAnalyticsService.emitCustomEvent(e.e.Reagir,null,e.l.Engagement),d.likeBaliseSuccess({payload:f}))),(0,B.W)(S=>(this.store.dispatch(new g.Actions.ShowSnackBar("Impossible d'aimer cette balise.",g.EnumSnackBarType.Ec
1hec)),(0,L.$)(S))))))),this.unlikeBalise$=(0,I.EH)(()=>this.actions$.pipe((0,I.gp)(d.unlikeBalise),(0,T.T)(f=>f.payload),(0,h.n)(f=>this.carteInteractiveService.unlikeBalise(f).pipe((0,T.T)(()=>d.unlikeBaliseSuccess({payload:f})),(0,B.W)(S=>(this.store.dispatch(new g.Actions.ShowSnackBar("Impossible de supprimer votre J'aime.",g.EnumSnackBarType.Echec)),(0,L.$)(S))))))),this.voteBalise$=(0,I.EH)(()=>this.actions$.pipe((0,I.gp)(d.voteBalise),(0,T.T)(f=>f.payload),(0,h.n)(({balise:f,voteCode:S})=>this.carteInteractiveService.voteBalise(f.id,S).pipe((0,T.T)(ie=>{if("Succ\xe8s"===ie.message)return this.googleAnalyticsService.emitCustomEvent(e.e.Reagir,null,e.l.Engagement),d.voteBaliseSuccess({payload:{balise:f,voteCode:S}})}))),(0,B.W)(f=>(this.store.dispatch(new g.Actions.ShowSnackBar("Impossible de voter pour cette balise.",g.EnumSnackBarType.Echec)),(0,L.$)(f))))),this.unvoteBalise$=(0,I.EH)(()=>this.actions$.pipe((0,I.gp)(d.unvoteBalise),(0,T.T)(f=>f.payload),(0,h.n)(f=>this.carteInteractiveService.unvoteBalise(f.id).pipe((0,T.T)(S=>{if("Succ\xe8s"===S.message)return this.googleAnalyticsService.emitCustomEvent(e.e.Reagir,null,e.l.Engagement),d.unvoteBaliseSuccess({payload:f})}))),(0,B.W)(f=>(this.store.dispatch(new g.Actions.ShowSnackBar("Impossible de supprimer votre vote.",g.EnumSnackBarType.Echec)),(0,L.$)(f))))),this.isHardModeration=w.appConfig.modules.babillard.isHardModeration}}return(j=O).\u0275fac=function(Z){return new(Z||j)(v.KVO(I.En),v.KVO(N.il),v.KVO(b.J),v.KVO(A.o),v.KVO(k.p))},j.\u0275prov=v.jDH({token:j,factory:j.\u0275fac}),O})()},49995:(W,V,l)=>{l.d(V,{o:()=>h});var d=l(12128),g=l(9310),I=l(67376);const b=(0,g.vy)(d.K0.current,(0,g.on)(d.En.setCurrentCarte,(B,{payload:e})=>(0,I.cloneDeep)(e))),h={current:function T(B,e){return b(B,e)}}},12128:(W,V,l)=>{l.d(V,{En:()=>b,K0:()=>g,h9:()=>A});var d=l(9310);const g={current:null},I=(0,d.UX)("carteInteractive"),A=(0,d.Mz)(I,T=>T.current);var b=l(56868)},72811:(W,V,l)=>{l.d(V,{H:()=>v});var d=l(72609),g=l(21413),I=l(43236),A=l(39974),b=l(54360),T=l(58750),B=l(1807);var k=l(56977),L=l(54438);let v=(()=>{var N;class F extends d.dI{get minHeight(){return this._minHeight}set minHeight(O){this._minHeight=O,this.updateMinHeight()}get maxHeight(){return this._maxHeight}set maxHeight(O){this._maxHeight=O,this.updateMaxHeight()}onResize(O){this.el.clientWidth!==this._clientWidth&&(this._clientWidth=this.element.nativeElement.clientWidth,this.adjust())}onInput(O){this.inputs.next(O.value)}constructor(O){super(),this.element=O,this.inputs=new g.B,this.el=O.nativeElement,this._clientWidth=this.el.clientWidth}ngOnInit(){this.inputs.pipe(function e(N,F=I.E,j){const O=(0,B.O)(N,F);return function h(N,F){return(0,A.N)((j,O)=>{const{leading:J=!0,trailing:Z=!1}=null!=F?F:{};let X=!1,te=null,w=null,D=!1;const f=()=>{null==w||w.unsubscribe(),w=null,Z&&(le(),D&&O.complete())},S=()=>{w=null,D&&O.complete()},ie=U=>w=(0,T.Tg)(N(U)).subscribe((0,b._)(O,f,S)),le=()=>{if(X){X=!1;const U=te;te=null,O.next(U),!D&&ie(U)}};j.subscribe((0,b._)(O,U=>{X=!0,te=U,(!w||w.closed)&&(J?le():ie(U))},()=>{D=!0,(!(Z&&X&&w)||w.closed)&&O.complete()}))})}(()=>O,j)}(75),(0,k.Q)(this.destroy$)).subscribe(O=>this.adjust())}ngAfterViewInit(){const O=window.getComputedStyle(this.el,null);"both"===O.resize?this.el.style.resize="horizontal":"vertical"===O.resize&&(this.el.style.resize="none"),this.adjust()}adjust(){this.el.style.height!==this.element.nativeElement.scrollHeight+"px"&&(this.el.style.overflow="hidden",this.el.style.height="auto",this.el.style.height=this.el.scrollHeight+"px")}updateMinHeight(){this.el.style.minHeight=this._minHeight+"px"}updateMaxHeight(){this.el.style.maxHeight=this._maxHeight+"px"}}return(N=F).\u0275fac=function(O){return new(O||N)(L.rXU(L.aKT))},N.\u0275dir=L.FsC({type:N,selectors:[["textarea","autosize",""]],hostBindings:function(O,J){1&O&&L.bIt("resize",function(X){return J.onResize(X.target)},!1,L.tSv)("input",function(X){return J.onInput(X.target)})},inputs:{minHeight:"minHeight",maxHeight:"maxHeight"},features:[L.Vt3]}),F})()},55430:(W,V,l)=>{l.d(V,{Q:()=>A});var d=l(35052),g=l(51188),I=l(54438);const A=()=>{const b=(0,I.WQX)(g.Ix);return!!(0,I.WQX)(d.o).appConfig.allowConnection||b.createUrlTree(["page-non-trouvee"])}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.