PageSourceSearch

https://www.protectioncivile.org/wp-content/plugins/fnpc-training-search/assets/js/dist/training.js?ver=1.0

js protectioncivile.org collected 2026-10-02 16:23:36 UTC 89,048 bytes, 91 lines download raw bytes

1let gmap;let markers=[];let markersObjects=[];let geoloc;let checkedThemes=[];let status;let seats;let startDate,endDate,maxDate,minDate;let dateContainer;const mapStyle=[{"featureType":"administrative.land_parcel","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway.controlled_access","stylers":[{"visibility":"on"}]},{"featureType":"road.highway.controlled_access","elementType":"geometry.fill","stylers":[{"color":"#e6e6e6"}]},{"featureType":"road.highway.controlled_access","elementType":"geometry.stroke","stylers":[{"color":"#e6e6e6"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#88afcc"},{"visibility":"on"}]},{"featureType":"all","elementType":"all","stylers":[{"hue":"#0c2f72"},{"saturation":100}]}];/**
2 * On document load, this initializes training filters & list
3 */jQuery(function($){if($(".fnpc-training-search-module").length){showTrainingFilters(fnpc_training_list);showTrainingList();showTrainingMap();showTrainingButton();filterTrainings()}else if($(".fnpc-antenna-office").length){$(document).on("click",".display-hidden-contact-map-coords",function(e){e.preventDefault();e.stopPropagation();if($(".hidden-contact-map-coords").is(":visible"))$(".hidden-contact-map-coords").stop().slideUp();else{$(".hidden-contact-map-coords").stop().slideDown();setTimeout(updateBounds,50)}});showAntennaList();showTrainingMap();markersObjects.forEach(marker=>{marker.setVisible(true)})}else if($(".fnpc-antenna-recruitment").length){$(document).on("click",".fnpc-antenna-choice",function(e){e.preventDefault();e.stopPropagation();let eprotec_id=$(this).attr("data-id");let choice=sessionStorage.getItem("fnpc-antenna-choice");if(choice!=null){let choices=choice.split("|");if(choices.length<3&&!choices.includes(eprotec_id)){choices.push(eprotec_id);choice=choices.join("|")}}else{choice=eprotec_id}sessionStorage.setItem("fnpc-antenna-choice",choice);window.location.href=$(this).attr("href")})}else if($(".fnpc-antenna-recruitment-list").length){let choice=sessionStorage.getItem("fnpc-antenna-choice");function updateRecruitementContainer(data){let html="<h3>Vos antennes s\xE9lectionn\xE9es <small>(max 3 choix)</small></h3>";let choice=sessionStorage.getItem("fnpc-antenna-choice");let count=1;if(choice){let choices=choice.split("|");if(choices.length===3){html+=`
4                        <div class="recruitement-antenna__warning">
5                            Vous ne pouvez pas choisir plus de 3 antennes
6                        </div>
7                    `}html+="<div class=\"recruitement-container\">";choices.forEach(function(id){let suffix=count===1?"er":"e";let value=data[id];html+=`
8                        <div class="recruitement-antenna" data-id="${id}">
9                            <div>
10                                <i data-icon="circlexmark" class="times"></i>
11                                <p class="recruitement-antenna__title">${count}<sup>${suffix}</sup> choix</p>
12                            </div>
13                            <p class="recruitement-antenna__title">${value["antenne"]}</p>
14                            <div class="recruitement-antenna__data">
15                                <i data-icon="locationdot"></i>
16                                <p>${value["address"]}, ${value["city"]}</p>
17                            </div>
18                            
19                        </div>
20                    `;count++});while(count<=3){html+="<a href=\"/antenne-secourisme/\" class=\"recruitement-antenna\" data-id=\"\"><i data-icon=\"plus\" class=\"plus\"></i></a>";count++}}else{html+="<div class=\"recruitement-container\">";let container=document.querySelector(".recruitement-container");if(container){container.innerHTML=""}}html+="</div><div class=\"fnpc-recruitement-submit\">Je valide mes choix</div>";$(".fnpc-antenna-recruitment-list").html(html);initCustomIcons()}if(choice!=null){$.get("/wp-json/fnpc/recruitment-antennas/",{id:choice},function(data,status){if(!data.hasOwnProperty("error")&&Object.keys(data).length>0){updateRecruitementContainer(data);$(document).on("click",".recruitement-antenna",function(e){let eprotec_id=$(this).attr("data-id");let choice=sessionStorage.getItem("fnpc-antenna-choice");if(choice!=null){let choices=choice.split("|");choices=choices.filter(function(el){return el!=eprotec_id});choice=choices.join("|")}if(choice!=""){sessionStorage.setItem("fnpc-antenna-choice",choice)}else{sessionStorage.removeItem("fnpc-antenna-choice")}updateRecruitementContainer(data);if(choice===""){$(".fnpc-recruitement-submit").addClass("disabled");
20$(".recruitement-container").append("<p>Veuillez choisir au moins une antenne pour vous engager</p>")}});$(document).on("click",".fnpc-recruitement-submit:not(.disabled)",function(e){let url="https://benevolat.protection-civile.org/register/volunteer?";let choice=sessionStorage.getItem("fnpc-antenna-choice");if(choice!=null){let choices=choice.split("|");let el=[];for(const[key,value]of Object.entries(choices)){el.push("antenne[]="+value)}url+=el.join("&");url+="&redirect="+window.location.href;window.location.href=url}})}})}}});/**
21 * Creates a readable date for humans based on the doctrine dates
22 * @param eventDate
23 * @returns {string}
24 */function parseDates(eventDate){eventDate=new Date(eventDate);let month=1+eventDate.getMonth();return eventDate.getDate()+"/"+month+"/"+eventDate.getFullYear()}/**
25 * Creates a date compliant with HTML date input format
26 * @param eventDate
27 * @returns {string}
28 */function parseDatesForHtml(eventDate){eventDate=new Date(eventDate);let month=("0"+(eventDate.getMonth()+1)).slice(-2);let day=("0"+eventDate.getDate()).slice(-2);return eventDate.getFullYear()+"-"+month+"-"+day}function getDatesPeriod(start,end){start=start.setHours(0,0,0);end=end.setHours(23,59,59);for(var arr=[],dt=new Date(start);dt<=end;dt.setDate(dt.getDate()+1)){arr.push({date:parseDatesForHtml(new Date(dt))})}return arr}/**
29 * Calculates the distance between two GPS coordinates
30 * @param lat1
31 * @param lon1
32 * @param lat2
33 * @param lon2
34 * @returns {number}
35 */function haversine(lat1,lon1,lat2,lon2){// The math module contains a function named toRadians which converts from degrees to radians.
36lon1=lon1*Math.PI/180;lon2=lon2*Math.PI/180;lat1=lat1*Math.PI/180;lat2=lat2*Math.PI/180;// Haversine formula
37let dlon=lon2-lon1;let dlat=lat2-lat1;let a=Math.pow(Math.sin(dlat/2),2)+Math.cos(lat1)*Math.cos(lat2)*Math.pow(Math.sin(dlon/2),2);let c=2*Math.asin(Math.sqrt(a));// Radius of earth in kilometers.
38let r=6371;// calculate the result
39return c*r}function updateTrainingSearchForm(id){return()=>{filters.themes=[id];markers=[];markersObjects.forEach(marker=>{marker.setMap(null)});markersObjects=[];results=fnpc_training_list;showTrainingFilters(fnpc_training_list);showTrainingList();showTrainingMap(false);showTrainingButton();filterTrainings()}}document.querySelectorAll("a[href^=\"#training-search--\"]").forEach(link=>{const id=link.href.split("--")[1];link.addEventListener("click",updateTrainingSearchForm(id))});/**
40 * Displays the list of trainings based on the value of a variable : results
41 */function showTrainingList(){if(document.getElementById("training-result--list")){let innerHtml="";if(Array.isArray(results)&&results.length>0){document.getElementById("disability-contact-bar").style.display="none";document.querySelector(".fnpc-training-search-module > .no-training-result").style.display="none";document.getElementById("fnpc-training-results").style.display="block";results.forEach(function(element){const transports=element.place_transports?element.place_transports.split(";").map(e=>e.split(":")):[];let location=element.place_id?element.place_city:element.cplace_city;if(location&&location.toLowerCase()=="paris"){if(element.cplace_id&&!element.place_id){location=element.cplace_address.substring(element.cplace_address.length-8);location=element.cplace_city+" "+location.substring(0,2)}else{location=element.place_address.substring(element.place_address.length-8);location=element.place_city+" "+location.substring(0,2)}}let seats=element.available_places>1?"s":"";let startDate=parseDates(element.start_date.date);let endDate=parseDates(element.end_date.date);let dates=startDate===endDate?startDate:"<span>du </span>"+startDate+"<span> au</span> "+endDate;element.priceCPF=element.priceCPF==null?element.priceGP:element.priceCPF;let price=status==="pro"?element.priceFP:status==="vsc"?element.priceVSC:status==="cpf"?element.priceCPF:element.priceGP;const elementVSC=status==="vsc"?"&vsc=1":"";innerHtml+="<div class=\"training-result\" id=\"training-result--"+element.id+"\" data-id=\""+element.id+"\"> "+"<div class=\"training-result--detail\">"+"<div class=\"training-result--title\">"+"<h3>"+element.training_name+"</h3>
41"+"<a href=\"/detail-formation/?id_session="+element.id+"&status="+status+"\"><span>voir le d\xE9tail</span><i data-icon=\"information\"></i></a>"+"</div>"+"<div class=\"training-result--infos\">"+"<div class=\"training-result--date\"><i data-icon=\"calendar\"></i><span>"+dates+"</span></div>"+"<div class=\"training-result--seats\"><i data-icon=\"chair\"></i></i><span>"+element.available_places+" place"+seats+"</span></div>"+"<div class=\"training-result--location\"><i data-icon=\"location\"></i></i><span>"+location+"</span></div>"+"<div class=\"training-result--transports\">";transports.forEach(trans=>{let transportLogo=trans[0].replace("\xE9","e").toLowerCase();innerHtml+="<i data-icon=\""+transportLogo+"\"></i><span>"+trans[1]+"</span>&nbsp;&nbsp;&nbsp;&nbsp;"});innerHtml+="</div>"+"</div></div>"+"<div class=\"training-result--purchase\">"+"<div class=\"training-result--price\"><span>"+price+"\u20AC<small>ttc</small>/</span><i data-icon=\"user\"></i></div>"+"<a href=\""+redirect_link+"?id_session="+element.id+elementVSC+"\"><i data-icon=\"cart\"></i><span>Achat rapide</span></a>"+"</div>"+"</div>"})}else{innerHtml+="<div class=\"no-training-result\">Votre recherche ne pr\xE9sente aucune formation disponible. <br> Nous vous invitons \xE0 contacter votre d\xE9partement pour plus de renseignements.</div>";document.getElementById("disability-contact-bar").style.display="block";document.querySelector(".fnpc-training-search-module > .no-training-result").style.display="block";document.getElementById("fnpc-training-results").style.display="none"}document.getElementById("training-result--list").innerHTML=innerHtml}initCustomIcons()}/**
42 * Generates markers for Gmap from antenna list
43 */function showAntennaList(){fnpc_training_list.forEach(function(element,index){if(element.coords&&element.display_on_map){markers.push({"marker_id":index,"lat":parseFloat(element.coords[0]),"lng":parseFloat(element.coords[1]),"opening_hours":element.opening_hours,"phone":element.phone,"website":element.website,"email":element.email,"phone_training":element.phone_training,"email_training":element.email_training,"address":element.address+" - "+element.postcode+" - "+element.city,"city":element.name})}})}/**
44 * Displays the map of trainings
45 */function showTrainingMap(withMapCreation=true){if(document.getElementById("training-result--map")){if(withMapCreation){gmap=new google.maps.Map(document.getElementById("training-result--map"),{zoom:5,center:{lat:46.681381,lng:2.248186},styles:mapStyle,mapTypeControl:false,streetViewControl:false})}const bounds=new google.maps.LatLngBounds;markers.forEach(function(element){let marker=new google.maps.Marker({position:{lat:element.lat||45,lng:element.lng||6},title:element.city,content:element.address,map:gmap,icon:{url:map_marker_link,size:new google.maps.Size(30,41),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(15,41)}});if(withMapCreation){marker.setVisible(false)}bounds.extend(marker.position);let content;if(element.training){content="<div class=\"marker-content\">"+"<div class=\"marker-notice\">"+"</div>"+"<h1 class=\"marker-heading\">"+element.city+"</h1>"+"<div>"+"<div class=\"marker-bodyContent marker-address\">"+"<span>"+"<svg width=\"11\" height=\"17\" viewBox=\"0 0 11 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.23871 4.15625C4.225 4.15625 3.3999 5.02793 3.3999 6.09888C3.3999 7.16982 4.225 8.0415 5.23871 8.0415C6.25242 8.0415 7.07751 7.16982 7.07751 6.09888C7.07751 5.02793 6.25242 4.15625 5.23871 4.15625ZM5.23871 7.48647C4.51448 7.48647 3.92528 6.86399 3.92528 6.09888C3.92528 5.33376 4.51448 4.71129 5.23871 4.71129C5.96294 4.71129 6.55214 5.33376 6.55214 6.09888C6.55214 6.86399 5.96294 7.48647 5.23871 7.48647Z\" fill=\"#E38C31\"/><path d=\"M8.75406 2.38474C7.80263 1.37957 6.53755 0.825928 5.1921 0.825928C3.84638 0.825928 2.58157 1.37957 1.63014 2.38474C-0.130613 4.24466 -0.349427 7.74414 1.15626 9.86437L5.1921 16.0219L9.22189 9.87297C10.7336 7.74414 10.5148 4.24466 8.75406 2.38474ZM8.79582 9.54856L5.1921 15.0467L1.58259 9.53995C0.216914 7.61621 0.412612 4.45585 2.00183 2.77715C2.85397 1.87688 3.98692 1.38096 5.1921 1.38096C6.39728 1.38096 7.53023 1.87688 8.38263 2.77715C9.97185 4.45585 10.1675 7.61621 8.79582 9.54856Z\" fill=\"#E38C31\"/></svg>"+"</span>"+"<span>"+element.address+"</span>"+"</div>"+"<div class=\"marker-bodyContent marker-training\">"+"<span>"+"<svg width=\"26\" height=\"22\" viewBox=\"0 0 26 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_516_159)\"> <path d=\"M0.248322 4.99791L8.47031 1.75763C8.51769 1.73895 8.56817 1.73009 8.61886 1.73158C8.66955 1.73306 8.71946 1.74485 8.76575 1.76628C8.81203 1.78771 8.85377 1.81835 8.8886 1.85645C8.92343 1.89456 8.95066 1.93938 8.96873 1.98837C8.9868 2.03735 8.99537 2.08954 8.99393 2.14194C8.99249 2.19435 8.98109 2.24595 8.96037 2.2938C8.93964 2.34165 8.91 2.3848 8.87314 2.42081C8.83628 2.45682 8.79293 2.48497 8.74555 2.50365L1.47012 5.37118L6.5066 7.35672L12.8405 4.39154C12.8867 4.36989 12.9366 4.35786 12.9873 4.35613C13.0379 4.3544 13.0885 4.36301 13.1359 4.38146C13.1834 4.39991 13.2269 4.42785 13.2639 4.46367C13.3009 4.4995 13.3307 4.54251 13.3517 4.59025C13.3726 4.638 13.3842 4.68953 13.3859 4.74193C13.3876 4.79432 13.3793 4.84654 13.3614 4.89561C13.3436 4.94468 13.3165 4.98963 13.2819 5.0279C13.2472 5.06617 13.2056 5.09701 13.1595 5.11866L7.52274 7.7573L13 9.91608L24.5273 5.37118L13 0.826287L10.1562 1.94663C10.0606 1.98436 9.95429 1.98125 9.86082 1.93798C9.76735 1.89471 9.69433 1.81482 9.65783 1.71589C9.62133 1.61697 9.62434 1.5071 9.6662 1.41046C9.70805 1.31383 9.78532 1.23834 9.88102 1.20061L12.8624 0.0261911C12.951 -0.00873038 13.049 -0.00873038 13.1376 0.0261911L25.7517 4.99791C25.8247 5.02695 25.8875 5.07815 25.9318 5.14477C25.9761 5.21139 25.9999 5.29032 26 5.37118V7.1924C26 7.27322 25.9763 7.35213 25.9319 7.4187C25.8876 7.48526 25.8247 7.53633 25.7517 7.56515L21.8126 9.11756V10.5009C21.8145 10.5546 21.8059 10.6081 21.7873 10.6582C21.7687 10.7083 21.7406 10.7541 21.7046 10.7927C21.6685 10.8314 21.6253 10.8621 21.5775 10.8831C21.5297 10.9041 21.4783 10.9149 21.4264 10.9149C21.3745 10.9149 21.3231 10.9041 21.2753 10.8831C21.2275 10.8621 21.1843 10.8314 21.1482 10.7927C21.1122 10.7541 21.084 10.7083 21.0655 10.6582C21.0469 10.6081 21.0383 10.5546 21.0402 10.5009V9.42416L13.1376 12.539C13.049 12.574 12.951 12.574 12.8624 12.539L6.90625 10.1912V16.509C9.13293 17.7218 11.6507 18.2447 14.1577 18.0152C16.6646 17.7856 19.0543 16.8133 21.0402 15.2149V12.1001C21.0438 11.9967 21.0861 11.8988 21.1581 11.827C21.2302 11.7552 21.3263 11.715 21.4264 11.715C21.5265 11.715 21.6226 11.7552 21.6946 11.827C21.7667 11.8988 21.809 11.9967 21.8126 12.1001V15.4076C21.8125 15.4674 21.7995 15.5265 21.7744 15.5805C21.7494 15.6344 21.713 15.6819 21.6679 15.7194C19.6157 17.4196 17.1378 18.4809 14.5238 18.7792C11.9099 19.0776 9.26775 18.6006 6.90625 17.4041V19.0201C7.2491 19.1167 7.54637 19.3387 7.74282 19.6449C7.93928 19.951 8.02157 20.3205 7.97441 20.6846C7.92725 21.0488 7.75384 21.3828 7.4864 21.6248C7.21897 21.8667 6.87568 22.0001 6.52031 22.0001C6.16494 22.0001 5.82166 21.8667 5.55422 21.6248C5.28678 21.3828 5.11338 21.0488 5.06622 20.6846C5.01906 20.3205 5.10135 19.951 5.29781 19.6449C5.49426 19.3387 5.79152 19.1167 6.13437 19.0201V16.9825C5.50258 16.6114 4.90014 16.1892 4.33266 15.7199C4.28753 15.6824 4.2511 15.6349 4.22606 15.581C4.20101 15.527 4.18798 15.4679 4.18793 15.4081V9.11966L0.249336 7.56725C0.175825 7.53841 0.112574 7.48707 0.0680218 7.4201C0.0234699 7.35312 -0.000259399 7.27368 0 7.1924V5.37118C0.000112534 5.29032 0.0238934 5.21139 0.0682163 5.14477C0.112537 5.07815 0.175325 5.02695 0.248322 4.99791ZM5.82461 20.4853C5.82461 20.6275 5.86539 20.7665 5.94181 20.8847C6.01822 21.0029 6.12682 21.095 6.25388 21.1494C6.38094 21.2038 6.52075 21.218 6.65562 21.1902C6.79049 21.1624 6.91436 21.0939 7.01156 20.9933C7.10877 20.8928 7.17494 20.7647 7.2017 20.6252C7.22847 20.4858 7.21463 20.3412 7.16194 20.2099C7.10924 20.0786 7.02006 19.9664 6.90566 19.8875C6.79127 19.8086 6.65681 19.7665 6.5193 19.7666C6.3354 19.7669 6.15909 19.8424 6.02891 19.9767C5.89873 20.111 5.82528 20.2931 5.82461 20.4832V20.4853ZM25.2276 5.95078L13.3864 10.618V11.5866L25.2276 6.91888V5.95078ZM12.6136 11.5866V10.618L6.90625 8.36787V9.33649L12.6136 11.5866ZM4.9593 15.2144C5.33529 15.5166 5.72725 15.7971 6.13336 16.0543V9.88668L4.9593 9.42416V15.2144ZM6.13336 9.02989V8.06389L0.772383 5.95078V6.91888L6.13336 9.02989Z\" fill=\"#E38C31\"/> </g> <defs> <clipPath id=\"clip0_516_159\"> <rect width=\"26\" height=\"22\" fill=\"white\" transform=\"matrix(-1 0 0 1 26 0)\"/> </clipPath> </defs> </svg>"+"</span>"+"<span> Formation(s) disponible(s): "+element.training+"</span>"+"</div>"+"</div>"+"</div>"}else{let phone=element.phone||"";let website=element.website?"<a href=\"https://"+element.website+"\">"+element.website+"</a>":"";let email=element.email?"<a href=\"mailto:"+element.email+"\">"+element.email+"</a>":"";let trainingPhone=element.training_phone?"<a href=\"tel:"+element.training_phone+"\">"+element.training_phone+"</a>":"";let trainingEmail=element.training_email?"<a href=\"mailto:"+element.training_email+"\">"+element.training_email+"</a>":"";content="<div class=\"marker-content\">"+"<div class=\"marker-notice\">"+"</div>"+"<h1 class=\"marker-heading\">"+element.city+"</h1>"+"<div>"+"<div class=\"marker-bodyContent marker-address\">"+"<span>"+"<svg width=\"11\" height=\"17\" viewBox=\"0 0 11 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.23871 4.15625C4.225 4.15625 3.3999 5.02793 3.3999 6.09888
45C3.3999 7.16982 4.225 8.0415 5.23871 8.0415C6.25242 8.0415 7.07751 7.16982 7.07751 6.09888C7.07751 5.02793 6.25242 4.15625 5.23871 4.15625ZM5.23871 7.48647C4.51448 7.48647 3.92528 6.86399 3.92528 6.09888C3.92528 5.33376 4.51448 4.71129 5.23871 4.71129C5.96294 4.71129 6.55214 5.33376 6.55214 6.09888C6.55214 6.86399 5.96294 7.48647 5.23871 7.48647Z\" fill=\"#E38C31\"/><path d=\"M8.75406 2.38474C7.80263 1.37957 6.53755 0.825928 5.1921 0.825928C3.84638 0.825928 2.58157 1.37957 1.63014 2.38474C-0.130613 4.24466 -0.349427 7.74414 1.15626 9.86437L5.1921 16.0219L9.22189 9.87297C10.7336 7.74414 10.5148 4.24466 8.75406 2.38474ZM8.79582 9.54856L5.1921 15.0467L1.58259 9.53995C0.216914 7.61621 0.412612 4.45585 2.00183 2.77715C2.85397 1.87688 3.98692 1.38096 5.1921 1.38096C6.39728 1.38096 7.53023 1.87688 8.38263 2.77715C9.97185 4.45585 10.1675 7.61621 8.79582 9.54856Z\" fill=\"#E38C31\"/></svg>"+"</span>"+"<span>"+element.address+"</span>"+"</div>"+"<div class=\"marker-bodyContent marker-phone\">"+"<span>"+"<svg width=\"15\" height=\"16\" viewBox=\"0 0 15 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14.0065 12.1865L11.0951 10.1353C10.7257 9.87708 10.2304 9.96204 9.95727 10.3305L9.10922 11.4825C9.00024 11.6343 8.80212 11.6783 8.64445 11.5858L8.48314 11.4919C7.94837 11.1839 7.28299 10.8005 5.94236 9.38368C4.60174 7.96684 4.23812 7.26334 3.94664 6.69941L3.85819 6.52898C3.76939 6.36244 3.81029 6.15224 3.95405 6.03618L5.0437 5.1405C5.39235 4.8519 5.47288 4.32883 5.22875 3.93839L3.28721 0.862595C3.03702 0.464997 2.53506 0.34564 2.14774 0.591624L0.930313 1.36424C0.547791 1.60182 0.26715 1.9866 0.147236 2.43794C-0.291156 4.12549 0.0386418 7.03795 4.09959 11.3288C7.32998 14.7413 9.73486 15.6591 11.3878 15.6591C11.7682 15.6608 12.1471 15.6085 12.5144 15.5036C12.9417 15.3771 13.306 15.0805 13.5307 14.6763L14.2627 13.3909C14.4959 12.9816 14.383 12.451 14.0065 12.1865ZM13.8497 13.131L13.1194 14.4172C12.958 14.709 12.696 14.9235 12.3883 15.0159C10.9137 15.4436 8.33741 15.0893 4.43874 10.9705C0.540066 6.85158 0.204763 4.13006 0.609616 2.57193C0.697142 2.24644 0.900454 1.9693 1.17697 1.79854L2.39439 1.02694C2.56245 0.920107 2.78031 0.971891 2.88888 1.14443L3.94355 2.81729L4.82876 4.21995C4.93477 4.38931 4.89994 4.6163 4.7487 4.74163L3.65881 5.6373C3.32713 5.90525 3.23241 6.39006 3.43662 6.77484L3.52316 6.94097C3.82951 7.53455 4.21037 8.27297 5.60085 9.74175C6.99134 11.2105 7.69006 11.6129 8.25165 11.9365L8.40912 12.0282C8.7733 12.2439 9.23223 12.1439 9.48584 11.7935L10.3336 10.642C10.4523 10.4823 10.6671 10.4455 10.8274 10.5574L13.7385 12.6086C13.902 12.7232 13.951 12.9535 13.8497 13.131Z\" fill=\"#E38C31\"/><path d=\"M8.15033 2.99717C10.3998 2.99982 12.2227 4.9257 12.2252 7.30219C12.2252 7.44206 12.3325 7.55542 12.4649 7.55542C12.5973 7.55542 12.7046 7.44206 12.7046 7.30219C12.7018 4.6461 10.6644 2.49363 8.15033 2.49072C8.01795 2.49072 7.91064 2.60409 7.91064 2.74395C7.91064 2.88381 8.01795 2.99717 8.15033 2.99717Z\" fill=\"#E38C31\"/><path d=\"M8.15034 4.51671C9.60587 4.51852 10.7854 5.76462 10.7871 7.30232C10.7871 7.44218 10.8944 7.55554 11.0268 7.55554C11.1592 7.55554 11.2665 7.44218 11.2665 7.30232C11.2645 5.48501 9.8705 4.01233 8.15034 4.01025C8.01795 4.01025 7.91064 4.12362 7.91064 4.26348C7.91064 4.40334 8.01795 4.51671 8.15034 4.51671Z\" fill=\"#E38C31\"/><path d=\"M8.15034 6.036C8.81192 6.03683 9.34805 6.60323 9.34886 7.30219C9.34886 7.44206 9.45619 7.55542 9.58855 7.55542C9.72091 7.55542 9.82825 7.44206 9.82825 7.30219C9.82718 6.32365 9.07658 5.53064 8.15034 5.52954C8.01795 5.52954 7.91064 5.6429 7.91064 5.78277C7.91064 5.92263 8.01795 6.036 8.15034 6.036Z\" fill=\"#E38C31\"/></svg>"+"</span>"+"<span>"+phone+"</span>"+"</div>"+"<div class=\"marker-bodyContent marker-website\">"+"<span>"+"<svg width=\"13\" height=\"15\" viewBox=\"0 0 13 15\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M11.3611 12.2716C12.3796 11.059 13 9.46487 13 7.71991C13 5.90438 12.3285 4.25248 11.2356 3.02327V3.02303C11.2347 3.02161 11.2333 3.02114 11.2327 3.01995C10.0943 1.74148 8.49931 0.923112 6.72526 0.85894L6.72503 0.858703L6.5984 0.855151C6.56567 0.853967 6.53295 0.852783 6.5 0.852783C6.46705 0.852783 6.43433 0.853967 6.4016 0.855151L6.27541 0.858703L6.27519 0.85894C4.50114 0.923112 2.90617 1.74148 1.76778 3.01995C1.76688 3.02114 1.76553 3.02161 1.76486 3.02303C1.76486 3.02303 1.76486 3.02327 1.76464 3.02351C0.671517 4.25248 0 5.90438 0 7.71991C0 9.46487 0.620414 11.059 1.6389 12.2716C1.64024 12.2738 1.64024 12.2761 1.64181 12.2783C1.64584 12.2842 1.65167 12.287 1.65593 12.2925C2.80038 13.6441 4.44241 14.5148 6.27497 14.5811L6.27519 14.5814L6.40138 14.5849C6.43433 14.5859 6.46705 14.587 6.5 14.587C6.53295 14.587 6.56567 14.5859 6.5984 14.5847L6.72459 14.5811L6.72481 14.5809C8.55938 14.5143 10.2032 13.642 11.3477 12.2875C11.3506 12.2835 11.3553 
4512.2823 11.358 12.278C11.3598 12.2761 11.3598 12.2738 11.3611 12.2716ZM0.453879 7.95671H3.14421C3.16953 8.96049 3.35512 9.93586 3.6855 10.8497C3.04805 11.0933 2.43862 11.4201 1.86752 11.8279C1.02767 10.7725 0.504983 9.42722 0.453879 7.95671ZM1.9899 3.463C2.54755 3.84614 3.14129 4.15303 3.76059 4.38225C3.38134 5.35478 3.17155 6.40332 3.14421 7.48311H0.453879C0.507448 5.94227 1.07855 4.53925 1.9899 3.463ZM12.5461 7.48311H9.85579C9.82845 6.40332 9.61866 5.35478 9.23941 4.38225C9.85871 4.15303 10.4524 3.84614 11.0101 3.463C11.9214 4.53925 12.4926 5.94227 12.5461 7.48311ZM6.27586 4.39598C5.62788 4.37657 4.99178 4.27451 4.37719 4.09217C4.83152 3.10757 5.473 2.21887 6.27586 1.47888V4.39598ZM6.27586 4.86958V7.48311H3.59248C3.62005 6.45352 3.82447 5.45494 4.19003 4.52906C4.86379 4.73531 5.56333 4.84945 6.27586 4.86958ZM6.72414 4.86958C7.43667 4.84945 8.13621 4.73555 8.81019 4.52906C9.17576 5.45494 9.38017 6.45352 9.40774 7.48311H6.72414V4.86958ZM6.72414 4.39598V1.47888C7.527 2.21887 8.16848 3.10757 8.62281 4.09217C8.00822 4.27451 7.37212 4.37657 6.72414 4.39598ZM9.05719 3.9482C8.62662 2.99509 8.02907 2.12675 7.28919 1.3825C8.60174 1.56389 9.78272 2.19093 10.6923 3.11538C10.1759 3.46158 9.62807 3.74005 9.05719 3.9482ZM3.94281 3.9482C3.37193 3.74005 2.82414 3.46158 2.30795 3.11538C3.21728 2.19093 4.39848 1.56389 5.71103 1.3825C4.97093 2.12675 4.37338 2.99509 3.94281 3.9482ZM3.59248 7.95671H6.27586V10.3337C5.53464 10.3545 4.80843 10.4767 4.11047 10.6986C3.7951 9.83309 3.61781 8.9084 3.59248 7.95671ZM6.27586 10.8073V13.9609C5.41652 13.1689 4.74276 12.2065 4.28462 11.139C4.92722 10.9389 5.59471 10.8276 6.27586 10.8073ZM6.72414 13.9609V10.8073C7.40529 10.8274 8.07278 10.9389 8.71538 11.1388C8.25724 12.2065 7.58348 13.1689 6.72414 13.9609ZM6.72414 10.3337V7.95671H9.40752C9.38219 8.9084 9.2049 9.83309 8.88931 10.6988C8.19157 10.4767 7.46536 10.3545 6.72414 10.3337ZM9.85579 7.95671H12.5461C12.495 9.42722 11.9726 10.7725 11.1325 11.8279C10.5614 11.4201 9.95195 11.0933 9.3145 10.8497C9.6451 9.93586 9.83047 8.96049 9.85579 7.95671ZM2.17212 12.1826C2.70243 11.8103 3.26703 11.511 3.85697 11.2873C4.29291 12.3197 4.91871 13.2605 5.71081 14.0573C4.33214 13.8667 3.09826 13.1847 2.17212 12.1826ZM7.28919 14.0573C8.08129 13.2607 8.70709 12.3199 9.14303 11.2873C9.73297 11.511 10.2973 11.8103 10.8279 12.1826C9.90174 13.1847 8.66786 13.8667 7.28919 14.0573Z\" fill=\"#E38C31\"/></svg>"+"</span>"+"<span>"+website+"</span>"+"</div>"+"<div class=\"marker-bodyContent marker-email\">"+"<span>"+"<svg width=\"14\" height=\"12\" viewBox=\"0 0 14 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13.282 0.666748H0.717965C0.323066 0.666748 0 1.03597 0 1.48725V10.5129C0 10.9642 0.323066 11.3334 0.717965 11.3334H13.2821C13.6769 11.3334 14 10.9642 14 10.5129V1.48725C14 1.03597 13.6769 0.666748 13.282 0.666748ZM13.0126 1.28209L7.413 6.08215C7.31232 6.16972 7.15777 6.2245 6.99997 6.22369C6.8422 6.2245 6.68768 6.16972 6.58697 6.08215L0.987355 1.28209H13.0126ZM10.0215 6.39887L13.0728 10.7066C13.0758 10.7109 13.0796 10.7142 13.0828 10.7181H0.917164C0.920391 10.714 0.924164 10.7109 0.927227 10.7066L3.97852 6.39887C4.072 6.26678 4.05429 6.07312 3.93848 5.96603C3.8229 5.85919 3.65345 5.87944 3.55994 6.01156L0.538453 10.2772V1.66672L6.26407 6.5744C6.47929 6.75759 6.74114 6.83822 6.99995 6.83903C7.2584 6.83841 7.52046 6.75778 7.73582 6.5744L13.4614 1.66672V10.2772L10.44 6.01156C10.3465 5.87947 10.1769 5.85915 10.0615 5.96603C9.94571 6.07287 9.92794 6.26678 10.0215 6.39887Z\" fill=\"#E38C31\"/></svg>"+"</span>"+"<span>"+email+"</span>"+"</div>"+"<div class=\"marker-bodyContent marker-training\">"+"<span>"+"<svg width=\"13\" height=\"11\" viewBox=\"0 0 26 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_516_159)\"> <path d=\"M0.248322 4.99791L8.47031 1.75763C8.51769 1.73895 8.56817 1.73009 8.61886 1.73158C8.66955 1.73306 8.71946 1.74485 8.76575 1.76628C8.81203 1.78771 8.85377 1.81835 8.8886 1.85645C8.92343 1.89456 8.95066 1.93938 8.96873 1.98837C8.9868 2.03735 8.99537 2.08954 8.99393 2.14194C8.99249 2.19435 8.98109 2.24595 8.96037 2.2938C8.93964 2.34165 8.91 2.3848 8.87314 2.42081C8.83628 2.45682 8.79293 2.48497 8.74555 2.50365L1.47012 5.37118L6.5066 7.35672L12.8405 4.39154C12.8867 4.36989 12.9366 4.35786 12.9873 4.35613C13.0379 4.3544 13.0885 4.36301 13.1359 4.38146C13.1834 4.39991 13.2269 4.42785 13.2639 4.46367C13.3009 4.4995 13.3307 4.54251 13.3517 4.59025C13.3726 4.638 13.3842 4.68953 13.3859 4.74193C13.3876 4.79432 13.3793 4.84654 13.3614 4.89561C13.3436 4.94468 13.3165 4.98963 13.2819 5.0279C13.2472 5.06617 13.2056 5.09701 13.1595 5.11866L7.52274 7.7573L13 9.91608L24.5273 5.37118L13 0.826287L10.1562 1.94663C10.0606 1.98436 9.95429 1.98125 9.86082 1.93798C9.76735 1.89471 9.69433 1.81482 9.65783 1.71589C9.62133 1.61697 9.62434 1.5071 9.6662 1.41046C9.70805 1.31383 9.78532 1.23834 9.88102 1.20061L12.8624 0.0261911C12.951 -0.00873038 13.049 -0.00873038 13.1376 0.0261911L25.7517 4.99791C25.8247 5.02695 25.8875 5.07815 25.9318 5.14477C25.9761 5.21139 25.9999 5.29032 26 5.37118V7.1924C26 7.27322 25.9763 7.35213 25.9319 7.4187C25.8876 7.48526 25.8247 7.53633 25.7517 7.56515L21.8126 9.11756V10.5009C21.8145 10.5546 21.8059 10.6081 21.7873 10.6582C21.7687 10.7083 21.7406 10.7541 21.7046 10.7927C21.6685 10.8314 21.6253 10.8621 21.5775 10.8831C21.5297 10.9041 21.4783 10.9149 21.4264 10.9149C21.3745 10.9149 21.3231 10.9041 21.2753 10.8831C21.2275 10.8621 21.1843 10.8314 21.1482 10.7927C21.1122 10.7541 21.084 10.7083 21.0655 10.6582C21.0469 10.6081 21.0383 10.5546 21.0402 10.5009V9.42416L13.1376 12.539C13.049 12.574 12.951 12.574 12.8624 12.539L6.90625 10.1912V16.509C9.13293 17.7218 11.6507 18.2447 14.1577 18.0152C16.6646 17.7856 19.0543 16.8133 21.0402 15.2149V12.1001C21.0438 11.9967 21.0861 11.8988 21.1581 11.827C21.2302 11.7552 21.3263 11.715 21.4264 11.715C21.5265 11.715 21.6226 11.7552 21.6946 11.827C21.7667 11.8988 21.809 11.9967 21.8126 12.1001V15.4076C21.8125 15.4674 21.7995 15.5265 21.7744 15.5805C21.7494 15.6344 21.713 15.6819 21.6679 15.7194C19.6157 17.4196 17.1378 18.4809 14.5238 18.7792C11.9099 19.0776 9.26775 18.6006 6.90625 17.4041V19.0201C7.2491 19.1167 7.54637 19.3387 7.74282 19.6449C7.93928 19.951 8.02157 20.3205 7.97441 20.6846C7.92725 21.0488 7.75384 21.3828 7.4864 21.6248C7.21897 21.8667 6.87568 22.0001 6.52031 22.0001C6.16494 22.0001 5.82166 21.8667 5.55422 21.6248C5.28678 21.3828 5.11338 21.0488 5.06622 20.6846C5.01906 20.3205 5.10135 19.951 5.29781 19.6449C5.49426 19.3387 5.79152 19.1167 6.13437 19.0201V16.9825C5.50258 16.6114 4.90014 16.1892 4.33266 15.7199C4.28753 15.6824 4.2511 15.6349 4.22606 15.581C4.20101 15.527 4.18798 15.4679 4.18793 15.4081V9.11966L0.249336 7.56725C0.175825 7.53841 0.112574 7.48707 0.0680218 7.4201C0.0234699 7.35312 -0.000259399 7.27368 0 7.1924V5.37118C0.000112534 5.29032 0.0238934 5.21139 0.0682163 5.14477C0.112537 5.07815 0.175325 5.02695 0.248322 4.99791ZM5.82461 20.4853C5.82461 20.6275 5.86539 20.7665 5.94181 20.8847C6.01822 21.0029 6.12682 21.095 6.25388 21.1494C6.38094 21.2038 6.52075 21.218 6.65562 21.1902C6.79049 21.1624 6.91436 21.0939 7.01156 20.9933C7.10877 20.8928 7.17494 20.7647 7.2017 20.6252C7.22847 20.4858 7.21463 20.3412 7.16194 20.2099C7.10924 20.0786 7.02006 19.9664 6.90566 19.8875C6.79127 19.8086 6.65681 19.7665 6.5193 19.7666C6.3354 19.7669 6.15909 19.8424 6.02891 19.9767C5.89873 20.111 5.82528 20.2931 5.82461 20.4832V20.4853ZM25.2276 5.95078L13.3864 10.618V11.5866L25.2276 6.91888V5.95078ZM12.6136 11.5866V10.618L6.90625 8.36787V9.33649L12.6136 11.5866ZM4.9593 15.2144C5.33529 15.5166 5.72725 15.7971 6.13336 16.0543V9.88668L4.9593 9.42416V15.2144ZM6.13336 9.02989V8.06389L0.772383 5.95078V6.91888L6.13336 9.02989Z\" fill=\"#E38C31\"/> </g> <defs> <clipPath id=\"clip0_516_159\"> <rect width=\"26\" height=\"22\" fill=\"white\" transform=\"matrix(-1 0 0 1 26 0)\"/> </clipPath> </defs> </svg>"+"</span>"+"<span>"+trainingPhone+"<br>"+trainingEmail+"</span>"+"</div>"+"</div>"+"</div>"}let infoWindow=new google.maps.InfoWindow({maxWidth:225});marker.addListener("click",()=>{infoWindow.close();infoWindow.setContent(content);infoWindow.open({anchor:marker,gmap,shouldFocus:false})});if(!withMapCreation){marker.setVisible(false)}markersObjects.push(marker)});if(withMapCreation){gmap.fitBounds(bounds);gmap.setZoom(Math.min(gmap.zoom,17))}}}/**
46 * rescales map
47 */function updateBounds(){const bounds=new google.maps.LatLngBounds;
47markers.forEach(function(element){bounds.extend({lat:element.lat,lng:element.lng})});gmap.fitBounds(bounds);gmap.setZoom(Math.min(gmap.zoom,17))}/** Adds values of filters chosen by users to form inputs */function addFilterValues(){let filters;if(Array.isArray(results)&&results.length>0){let selectedPositions=Array.from(document.getElementById("training_position").selectedOptions);let positionResult="";if(selectedPositions.length>0){selectedPositions.forEach(function(element){positionResult+=element.value+" | "})}else{positionResult="all"}filters={location:jQuery("#training_position")&&jQuery("#training_position").select2("data")&&jQuery("#training_position").select2("data")[0]?{text:jQuery("#training_position").select2("data")[0].zipcode+" "+jQuery("#training_position").select2("data")[0].city,lat:jQuery("#training_position").select2("data")[0].lat,lng:jQuery("#training_position").select2("data")[0].lng}:{},// date_start: parseDatesForHtml(fnpcStartDate),
48date_start:parseDatesForHtml(startDate),// date_end: parseDatesForHtml(fnpcEndDate),
49date_end:parseDatesForHtml(endDate),seats:seats,themes:checkedThemes,status:status}}if(filters!==undefined){document.getElementById("input-filters").value=JSON.stringify(filters)}}/**
50 * Displays a form submission button or error message based on the value of a variable : results
51 */function showTrainingButton(){if(document.getElementById("fnpc-training-button")){let innerHtml;if(Array.isArray(results)&&results.length>0){let message=results.length===1?"Voir la formation":"Voir les "+results.length+" formations";innerHtml="<form method=\"post\" action=\"/formations-pres-de-chez-vous/\">"+"<input id=\"input-filters\" type=\"hidden\" name=\"filters\" value=\"\">"+"<input type=\"submit\" value=\""+message+"\">"+"</form>";document.getElementById("disability-contact-bar").style.display="none"}else{innerHtml="<div class=\"no-training-result\">Votre recherche ne pr\xE9sente aucune formation disponible. <br> Nous vous invitons \xE0 contacter votre d\xE9partement pour plus de renseignements.</div>";document.getElementById("disability-contact-bar").style.display="block"}document.getElementById("fnpc-training-button").innerHTML=innerHtml;addFilterValues()}}/**
52 * Displays filters to enable user to reduce training results
53 */function showTrainingFilters(fnpc_training_list){if(Array.isArray(fnpc_training_list)&&document.getElementById("fnpc-training-search-bar")){let innerHtml="<div id=\"fnpc-training-overlay\"></div>";let maxCandidates=Math.max.apply(Math,fnpc_training_list.map(function(o){return o.available_places}));let seatsFilter="<div id=\"training-filter--seats\" class=\"training-filter\">"+"<div id=\"training-filter--seats-toggle\"><i data-icon=\"team\"></i><span>Candidats ?</span></div>"+"<div class=\"training-filter--container\">"+"<label for=\"training_seats\" style=\"width: 250px\"><i data-icon=\"team\"></i> Nombre de candidats ?</label>"+"<div style=\"padding: 15px 0 15px 35px;\">"+"<div id=\"training-filter--seats-minus\" class=\"training--seat-button\"><i data-icon=\"minus\"></i></div>"+"<input id=\"training_seats\" type=\"number\" min=\"1\" max=\""+maxCandidates+"\" value=\"1\">"+"<div id=\"training-filter--seats-plus\" class=\"training--seat-button\"><i data-icon=\"plus\"></i></div>"+"</div></div></div>";let statusFilter="<div id=\"training-filter--status\" class=\"training-filter\">"+"<select class=\"stm_not_select2\" id=\"training_status\" name=\"status\">"+"<option value=\"all\"> </option>"+"<option value=\"gp\" "+(filters&&filters.status&&filters.status==="gp"?"selected":"")+">Particulier</option>"+"<option value=\"pro\" "+(filters&&filters.status&&filters.status==="pro"?"selected":"")+">Professionnel</option>"+"<option value=\"vsc\" "+(filters&&filters.status&&filters.status==="vsc"?"selected":"")+">Service Civique</option>"+// '<option value="et" ' + ((filters && filters.status && filters.status === "et") ? 'selected' : '') + '>Etudiant</option>' +
54"<option value=\"cpf\" "+(filters&&filters.status&&filters.status==="cpf"?"selected":"")+">Eligible CPF</option>"+"</select>"+"</div>";let positions=[];let positionOptions="";fnpc_training_list.forEach(function(element){if(element.cplace_coords&&!element.place_coords){let coord=element.cplace_coords[0]+" "+element.cplace_coords[1];if(positions.indexOf(coord)===-1){positions.push(coord);positionOptions+="<option value=\""+element.cplace_id+"\" data-lat=\""+element.cplace_coords[0]+"\" data-long=\""+element.cplace_coords[1]+"\">"+element.cplace_address+"</option>";let marker_city=element.cplace_city;if(marker_city.toLowerCase()=="paris"){marker_city=element.cplace_address.substring(element.cplace_address.length-8);marker_city=element.cplace_city+" "+marker_city.substring(0,2)}markers.push({"marker_id":element.cplace_id,"lat":element.cplace_coords[0],"lng":element.cplace_coords[1],"training":element.training_name,"address":element.cplace_address,"city":element.place_name??marker_city})}else{let marker=markers.find(function(marker){return marker.marker_id===element.cplace_id&&marker.training.indexOf(element.training_name)===-1});if(typeof marker!=="undefined"){marker.training+=", "+element.training_name}}}else if(element.place_coords){let coord=element.place_coords[0]+" "+element.place_coords[1];if(positions.indexOf(coord)===-1){positions.push(coord);positionOptions+="<option value=\""+element.place_id+"\" data-lat=\""+element.place_coords[0]+"\" data-long=\""+element.place_coords[1]+"\">"+element.place_address+"</option>";let marker_city=element.place_city;if(marker_city.toLowerCase()=="paris"){marker_city=element.place_address.substring(element.place_address.length-8);marker_city=element.place_city+" "+marker_city.substring(0,2)}markers.push({"marker_id":element.place_id,"lat":element.place_coords[0],"lng":element.place_coords[1],"training":element.training_name,"address":element.place_address,"city":element.place_name??marker_city})}else{let marker=markers.find(function(marker){return marker.marker_id===element.place_id&&marker.training.indexOf(element.training_name)===-1});if(typeof marker!=="undefined"){marker.training+=", "+element.training_name}}}});for(let i=0;i<markers.length;i++){for(let j=0;j<fnpc_training_list.length;j++){if(fnpc_training_list[j].place_id==markers[i].marker_id||fnpc_training_list[j].cplace_id==markers[i].marker_id){fnpc_training_list[j].marker_id=i}}}let positionFilter="<div id=\"training-filter--position\" class=\"training-filter "+(!display_formations?"wider":"")+"\">"+"<select id=\"training_position\" class=\"stm_not_select2\" name=\"position\"></select>"+"</div>";let themes=[];themes["fccats"]=[];themes["cats"]=[];let themeOptions=[];let themeFCOptions=[];fnpc_training_list.forEach(function(element){if(themes.indexOf(element.training_id)===-1){themes.push(element.training_id);let isSelected=false;if(filters?.themes){for(let i=0;i<filters.themes.length;i++){if(filters.themes[i]==element.training_id){isSelected=true}}}if(element.continuous){if(themes["fccats"].indexOf(element.cat_id)===-1){themes["fccats"].push(element.cat_id);themeFCOptions[element.cat_id]="<div class=\"training-filter--theme-cat\"><h3>"+element.cat_name+"</h3><div class=\"training-filter--theme-container\">"}themeFCOptions[element.cat_id]+="<div class=\"training-filter--theme "+(isSelected?"checked":"")+"\">"+"<input type=\"checkbox\" name=\"theme[]\" value=\""+element.training_id+"\" id=\""+element.training_id+"\" "+(isSelected?"checked":"")+">"+"<label for=\""+element.training_id+"\">"+element.training_name+"</label>"+"</div>"}else{if(themes["cats"].indexOf(element.cat_id)===-1){themes["cats"].push(element.cat_id);themeOptions[element.cat_id]="<div class=\"training-filter--theme-cat\"><h3>"+element.cat_name+"</h3><div class=\"training-filter--theme-container\">"}themeOptions[element.cat_id]+="<div class=\"training-filter--theme "+(isSelected?"checked":"")+"\">"+"<input type=\"checkbox\" name=\"theme[]\" value=\""+element.training_id+"\" id=\""+element.training_id+"\" "+(isSelected?"checked":"")+">"+"<label for=\""+element.training_id+"\">"+element.training_name+"</label>"+"</div>"}}});let themeFCHtml="";themeFCOptions.forEach(function(element){themeFCHtml+=element+"</div></div>"});let themeHtml="";themeOptions.forEach(function(element){themeHtml+=element+"</div></div>"});let themeFilter="<div id=\"training-filter--themes\" class=\"training-filter\" "+(!display_formations?"style=\"display:none;\"":"")+">"+"<div id=\"training-filter--theme-toggle\"><i data-icon=\"check\"></i><span>Th\xE8me formation ?</span></div>"+"<div id=\"training-filter--theme-container\" class=\"training-filter--container nonfc\">"+"<div id=\"training-filter--themes-switch\">"+"<span id=\"training-filter--themes-switch-nonFc\">Formation initiale</span>
54"+"<div class=\"theme-switch\"><div class=\"theme-slider\"></div></div>"+"<span id=\"training-filter--themes-switch-fc\">Formation continue</span>"+"</div>"+"<div class=\"training-filter--themes\">"+"<div class=\"training-filter--themes-nonfc\">"+themeHtml+"</div>"+"<div class=\"training-filter--themes-fc\">"+themeFCHtml+"</div>"+"</div>"+"</div>"+"</div>";maxDate=Math.max.apply(Math,fnpc_training_list.map(function(o){return new Date(o.end_date.date).getTime()}));minDate=Math.min.apply(Math,fnpc_training_list.map(function(o){return new Date(o.start_date.date).getTime()}));startDate=minDate;if(filters&&filters.date_start){startDate=new Date(filters.date_start).getTime()}endDate=maxDate;if(filters&&filters.date_end){endDate=new Date(filters.date_end).getTime()}const weekDays=["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"];let dateFilter="<div class=\"date-picker-container training-filter\">"+"<div class=\"date-input\"><i data-icon=\"calendar\"></i>&nbsp;<span id=\"datePickerInput\">Dates ?</span></div>"+"<div class=\"calendar-container\" id=\"calendarContainer\">"+"<div class=\"calendar-header\">"+"<div id=\"datePickerInputDateStart\">"+"Du"+"</div>"+"<div id=\"datePickerInputDateEnd\">"+"Au"+"</div>"+"</div>"+"<div class=\"calendars-wrapper\">"+"<button class=\"fnpc-calendar-btn\" id=\"prevMonth\"><i class=\"fa fa-arrow-left\"></i></button>"+"<div class=\"calendar\" id=\"calendar1\">"+"<div class=\"month-header\" id=\"month1Header\"></div>"+"<div class=\"weekdays\">"+weekDays.map(day=>`<div>${day}</div>`).join("")+"</div>"+"<div class=\"days\" id=\"days1\"></div>"+"</div>"+"<div class=\"calendar\" id=\"calendar2\">"+"<div class=\"month-header\" id=\"month2Header\"></div>"+"<div class=\"weekdays\">"+weekDays.map(day=>`<div>${day}</div>`).join("")+"</div>"+"<div class=\"days\" id=\"days2\"></div>"+"</div>"+"<button class=\"fnpc-calendar-btn\" id=\"nextMonth\"><i class=\"fa fa-arrow-right\"></i></button>"+"</div>"+"<div class=\"calendar-footer\">"+"<div class=\"calendar-footer-btn\">"+"Valider"+"</div>"+"</div>"+"</div>"+"</div>";innerHtml+=positionFilter+dateFilter+seatsFilter+themeFilter+statusFilter;document.getElementById("fnpc-training-search-bar").innerHTML=innerHtml;if(filters&&filters.seats&&parseInt(filters.seats)!==1){document.getElementById("training_seats").value=filters.seats;updateSeats()}dateContainer=document.querySelector(".date-input");const calendar=new addFnpcCalendar(dateContainer);calendar.init();addTrainingFiltersEventListeners()}}function updateSeats(variation){let seats=jQuery("#training_seats")[0];if(variation){seats.value=parseInt(seats.value)+parseInt(variation);if(parseInt(seats.value)<parseInt(seats.min)){seats.value=seats.min}if(parseInt(seats.value)>parseInt(seats.max)){seats.value=seats.max}}jQuery("#training-filter--seats-toggle span").html(seats.value+(seats.value>1?" candidats":" candidat"));filterTrainings()}function addTrainingFiltersEventListeners(){/*transforms position filter with select2 */jQuery("#training_position").select2({multiple:false,ajax:{url:"https://admin-formations.protection-civile.org/api/cityZip/?depts="+depts,// url: 'https://127.0.0.1:8000/api/cityZip/',
55dataType:"json",delay:200,processResults:function(data){return{results:data.r}}},closeOnSelect:true,placeholder:{id:"all",text:filters&&filters.location&&filters.location.text?filters.location.text:"      Lieu formation ?"},templateResult:formatPosition,templateSelection:formatPosition,escapeMarkup:function(markup){return markup}}).on("select2:select select2:unselect",function(e){jQuery(this).value=e.params.data.id;filterTrainings()});/* adds event listeners to seat filter */jQuery("#training-filter--seats-toggle").on("click",function(){jQuery(this).parent().toggleClass("active");jQuery("#fnpc-training-overlay").toggleClass("active");updateSeats()});jQuery("#training-filter--seats-minus").on("click",function(){updateSeats(-1)});jQuery("#training-filter--seats-plus").on("click",function(){updateSeats(1)});jQuery("#training_seats").on("change",updateSeats);/* transforms status filter with select2 */status=document.getElementById("training_status").value;jQuery("#training_status").select2({allowClear:true,placeholder:{id:"all",text:"<i><svg width=\"21\" height=\"31\" viewBox=\"0 0 21 31\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.9681 28.8554L20.4885 26.2912C20.4776 26.2327 20.4559 26.177 20.4248 26.1274C20.3936 26.0778 20.3536 26.0352 20.307 26.0021C20.2603 25.9689 20.208 25.9459 20.153 25.9343C20.0981 25.9226 20.0415 25.9226 19.9865 25.9343C19.9315 25.9459 19.8792 25.969 19.8326 26.0022C19.786 26.0353 19.746 26.0779 19.7148 26.1275C19.6837 26.1771 19.662 26.2328 19.6511 26.2913C19.6402 26.3499 19.6402 26.4101 19.6511 26.4686L20.1284 29.0195C20.1506 29.1944 20.1751 29.5977 19.9799 29.8368C19.6471 30.2449 18.9309 30.0342 17.1025 30.0917V25.8117C17.1025 25.6912 17.0575 25.5757 16.9775 25.4906C16.8975 25.4054 16.789 25.3576 16.6758 25.3576C16.5627 25.3576 16.4541 25.4054 16.374
551 25.4906C16.2941 25.5757 16.2492 25.6912 16.2492 25.8117V30.0917H4.76441V25.8117C4.76441 25.6912 4.71945 25.5757 4.63944 25.4906C4.55942 25.4054 4.4509 25.3576 4.33774 25.3576C4.22458 25.3576 4.11605 25.4054 4.03604 25.4906C3.95602 25.5757 3.91107 25.6912 3.91107 25.8117V30.0917H1.75612C1.06378 30.0917 0.77535 29.7684 0.869786 29.0195L2.11053 22.3884C2.38019 20.9504 3.63232 20.7191 3.69888 20.6864L7.9536 19.5699C8.64367 22.3478 12.3671 22.3254 13.0452 19.5651L17.2976 20.6864C17.3704 20.7221 18.618 20.9558 18.8865 22.3878L19.2557 24.3592C19.2661 24.4182 19.2874 24.4745 19.3184 24.5247C19.3493 24.575 19.3893 24.6182 19.4361 24.6518C19.4829 24.6855 19.5354 24.7089 19.5908 24.7208C19.6461 24.7327 19.7031 24.7328 19.7585 24.721C19.8138 24.7093 19.8665 24.686 19.9133 24.6525C19.9601 24.6189 20.0003 24.5758 20.0313 24.5257C20.0624 24.4755 20.0838 24.4193 20.0943 24.3602C20.1049 24.3012 20.1042 24.2405 20.0926 24.1818L19.7234 22.2104C19.4492 20.7488 18.4502 20.1518 17.8785 19.9229C17.5781 19.806 16.1911 19.4694 13.1311 18.6514V17.9515C14.0466 17.442 14.8133 16.6749 15.3477 15.7339C15.8821 14.7929 16.1638 13.7139 16.1621 12.6143V12.5331C17.5895 12.2528 18.2494 10.7167 17.4376 9.6051V6.37855C17.4128 5.68134 17.2619 4.99575 16.9933 4.35932C16.5831 3.3827 15.7064 2.11484 13.857 1.62623C12.4535 1.25568 11.6832 0.718027 11.2845 0.326894C11.0702 0.116695 10.7894 0 10.498 0C10.2065 0 9.92577 0.116695 9.71147 0.326894C9.31325 0.714999 8.5424 1.25568 7.13895 1.62623C6.28562 1.85268 5.55687 2.26682 4.98229 2.85775C4.90082 2.9415 4.85394 3.05626 4.85196 3.17679C4.84999 3.29732 4.89308 3.41375 4.97177 3.50046C5.05045 3.58717 5.15828 3.63707 5.27152 3.63917C5.38477 3.64127 5.49417 3.5954 5.57564 3.51166C6.04099 3.03334 6.63605 2.69609 7.34546 2.5084C8.92185 2.09184 9.81558 1.4573 10.2878 0.998359C10.3451 0.941935 10.4204 0.9106 10.4985 0.9106C10.5767 0.9106 10.6519 0.941935 10.7093 0.998359C11.1809 1.4573 12.0746 2.09184 13.6516 2.5084C16.5342 3.27008 16.5831 6.25383 16.5837 6.37916V8.93424C16.4475 8.87664 16.3063 8.83344 16.1621 8.80527C16.1257 8.61031 16.3828 7.41633 15.3429 6.84537C10.9596 4.43984 7.12302 5.98863 5.67691 6.76606C5.42763 6.89913 5.21819 7.10361 5.07216 7.35648C4.92612 7.60935 4.84929 7.90057 4.85031 8.19738V8.80285C4.70068 8.83195 4.55427 8.8774 4.4134 8.93848C4.41738 6.45606 4.33546 6.0849 4.63413 5.13613C4.6528 5.07938 4.66069 5.01924 4.65735 4.95921C4.654 4.89918 4.63949 4.84045 4.61465 4.78644C4.58981 4.73243 4.55514 4.68421 4.51265 4.64457C4.47015 4.60494 4.42069 4.57468 4.36712 4.55556C4.31355 4.53643 4.25695 4.52882 4.20059 4.53317C4.14424 4.53751 4.08926 4.55373 4.03884 4.58087C3.98842 4.60802 3.94357 4.64555 3.90689 4.69129C3.87021 4.73703 3.84243 4.79007 3.82517 4.84732C3.66618 5.34098 3.57684 5.857 3.56007 6.37855V9.62689C2.76362 10.7464 3.44629 12.2571 4.85031 12.5331C4.8577 12.5713 4.73653 15.0477 6.63378 16.973C7.00262 17.3485 7.41727 17.6695 7.86656 17.9273V18.6599C3.28415 19.863 3.48611 19.8103 3.46677 19.8151C3.44743 19.82 1.65599 20.1784 1.2737 22.2128L0.032949 28.8554C0.0310707 28.8635 0.0297399 28.8718 0.0289667 28.8802C-0.134874 30.1075 0.474408 30.9993 1.75839 30.9993H19.2409C19.8508 30.9993 20.3156 30.8086 20.6233 30.4314C20.9738 30.0027 21.0574 29.3373 20.9681 28.8554ZM16.1621 9.73588C17.1952 10.0628 17.1901 11.2738 16.1621 11.5989V9.73588ZM4.85031 11.5989C3.82005 11.2726 3.82062 10.0616 4.85031 9.73588V11.5989ZM12.2738 18.9771C12.2457 19.4571 12.047 19.9077 11.7181 20.2373C11.3891 20.567 10.9546 20.7511 10.5028 20.7522C10.051 20.7532 9.61575 20.5712 9.28545 20.2431C8.95514 19.915 8.75456 19.4654 8.72445 18.9856C8.71591 18.8512 8.7216 18.6169 8.7199 18.3245C9.87431 18.7328 11.1214 18.7362 12.2777 18.3341C12.276 18.6484 12.2817 18.8476 12.2738 18.9771ZM5.70364 12.5331V8.19678C5.70326 8.06787 5.73672 7.94141 5.80025 7.83165C5.86377 7.72189 5.95484 7.6332 6.06318 7.57557C7.43064 6.84936 8.93702 6.46854 10.4653 6.46272C11.8084 6.46272 13.341 6.76545 14.9538 7.65186C15.0612 7.7104 15.1514 7.79939 15.2143 7.909C15.2773 8.01862 15.3105 8.1446 15.3105 8.27307V12.6143C15.3105 14.4912 14.3468 16.3452 12.5098 17.251C9.25579 18.8555 5.70364 16.2217 5.70364 12.5331Z\" fill=\"#E38C31\"/></svg></i>"+"<span>Vous \xEAtes ?</span>"},templateResult:formatStatus,templateSelection:formatStatus,escapeMarkup:function(markup){return markup},minimumResultsForSearch:Infinity}).on("select2:select select2:unselect",function(e){jQuery(this).value=e.params.data.id;filterTrainings()});dateContainer.addEventListener("dateChange",event=>{startDate=event.detail.startDate;endDate=event.detail.endDate;filterTrainings()});/* adds event listeners to theme filter */jQuery("#training-filter--theme-toggle").on("click",function(){jQuery(this).parent().toggleClass("active");jQuery("#fnpc-training-overlay").toggleClass("active")});jQuery("#training-filter--themes-switch-nonFc").on("click",function(){jQuery("#training-filter--theme-container").removeClass("fc").addClass("nonfc")});jQuery("#training-filter--themes-switch-fc").on("click",function(){jQuery("#training-filter--theme-container").removeClass("nonfc").addClass("fc")});jQuery("#training-filter--themes-switch .theme-switch").on("click",function(){jQuery("#training-filter--theme-container").toggleClass("fc nonfc")});jQuery(".training-filter--theme input").on("click",function(){jQuery(this).parent().toggleClass("checked");let checked=document.querySelectorAll("input[type=\"checkbox\"][name=\"theme[]\"]:checked").length;document.querySelector("#training-filter--theme-toggle span").textContent=checked<1?"Th\xE8me formation":checked===1?checked+" formation s\xE9lectionn\xE9e":checked+" formations s\xE9lectionn\xE9es";filterTrainings()});jQuery(".training-filter--theme-cat h3").on("click",function(){jQuery(this).parent().find(".training-filter--theme-container input").each(function(){jQuery(this).prop("checked",true);jQuery(this).parent().addClass("checked")});let checked=document.querySelectorAll("input[type=\"checkbox\"][name=\"theme[]\"]:checked").length;document.querySelector("#training-filter--theme-toggle span").textContent=checked<1?"Th\xE8me formation":checked===1?checked+" formation s\xE9lectionn\xE9e":checked+" formations s\xE9lectionn\xE9es";filterTrainings()});jQuery("#fnpc-training-overlay").on("click",function(){jQuery(".training-filter").each(function(){jQuery(this).removeClass("active start end")});jQuery(this).removeClass("active")});if(document.getElementById("fnpc-training-search-button")){document.getElementById("fnpc-training-search-button").addEventListener("click",function(){document.getElementById("fnpc-training-search-bar").classList.toggle("active")});document.getElementById("fnpc-training-search-bar").classList.toggle("active")}}/**
56 * Returns select2 status options with svg
57 * @param status select2 option
58 * @returns {string|*} select2 option
59 */function formatPosition(status){let icon="<i><svg width=\"11\" height=\"17\" viewBox=\"0 0 11 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.23871 4.15625C4.225 4.15625 3.3999 5.02793 3.3999 6.09888
59C3.3999 7.16982 4.225 8.0415 5.23871 8.0415C6.25242 8.0415 7.07751 7.16982 7.07751 6.09888C7.07751 5.02793 6.25242 4.15625 5.23871 4.15625ZM5.23871 7.48647C4.51448 7.48647 3.92528 6.86399 3.92528 6.09888C3.92528 5.33376 4.51448 4.71129 5.23871 4.71129C5.96294 4.71129 6.55214 5.33376 6.55214 6.09888C6.55214 6.86399 5.96294 7.48647 5.23871 7.48647Z\" fill=\"#E38C31\"/><path d=\"M8.75406 2.38474C7.80263 1.37957 6.53755 0.825928 5.1921 0.825928C3.84638 0.825928 2.58157 1.37957 1.63014 2.38474C-0.130613 4.24466 -0.349427 7.74414 1.15626 9.86437L5.1921 16.0219L9.22189 9.87297C10.7336 7.74414 10.5148 4.24466 8.75406 2.38474ZM8.79582 9.54856L5.1921 15.0467L1.58259 9.53995C0.216914 7.61621 0.412612 4.45585 2.00183 2.77715C2.85397 1.87688 3.98692 1.38096 5.1921 1.38096C6.39728 1.38096 7.53023 1.87688 8.38263 2.77715C9.97185 4.45585 10.1675 7.61621 8.79582 9.54856Z\" fill=\"#E38C31\"/></svg></i>";if(!status.id||status.id==="geolocation"){return"<span>"+status.text+"</span>"}if(!status.id||status.id==="all"){return icon+"<span>"+status.text+"</span>"}return icon+"<span>"+status.zipcode+" "+status.city+"</span>"}/**
60 * Returns select2 status options with svg
61 * @param status select2 option
62 * @returns {string|*} select2 option
63 */function formatStatus(status){if(!status.id){return status.text}let content="";switch(status.id){case"gp":content+="<i><svg width=\"21\" height=\"31\" viewBox=\"0 0 21 31\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.9681 28.8554L20.4885 26.2912C20.4776 26.2327 20.4559 26.177 20.4248 26.1274C20.3936 26.0778 20.3536 26.0352 20.307 26.0021C20.2603 25.9689 20.208 25.9459 20.153 25.9343C20.0981 25.9226 20.0415 25.9226 19.9865 25.9343C19.9315 25.9459 19.8792 25.969 19.8326 26.0022C19.786 26.0353 19.746 26.0779 19.7148 26.1275C19.6837 26.1771 19.662 26.2328 19.6511 26.2913C19.6402 26.3499 19.6402 26.4101 19.6511 26.4686L20.1284 29.0195C20.1506 29.1944 20.1751 29.5977 19.9799 29.8368C19.6471 30.2449 18.9309 30.0342 17.1025 30.0917V25.8117C17.1025 25.6912 17.0575 25.5757 16.9775 25.4906C16.8975 25.4054 16.789 25.3576 16.6758 25.3576C16.5627 25.3576 16.4541 25.4054 16.3741 25.4906C16.2941 25.5757 16.2492 25.6912 16.2492 25.8117V30.0917H4.76441V25.8117C4.76441 25.6912 4.71945 25.5757 4.63944 25.4906C4.55942 25.4054 4.4509 25.3576 4.33774 25.3576C4.22458 25.3576 4.11605 25.4054 4.03604 25.4906C3.95602 25.5757 3.91107 25.6912 3.91107 25.8117V30.0917H1.75612C1.06378 30.0917 0.77535 29.7684 0.869786 29.0195L2.11053 22.3884C2.38019 20.9504 3.63232 20.7191 3.69888 20.6864L7.9536 19.5699C8.64367 22.3478 12.3671 22.3254 13.0452 19.5651L17.2976 20.6864C17.3704 20.7221 18.618 20.9558 18.8865 22.3878L19.2557 24.3592C19.2661 24.4182 19.2874 24.4745 19.3184 24.5247C19.3493 24.575 19.3893 24.6182 19.4361 24.6518C19.4829 24.6855 19.5354 24.7089 19.5908 24.7208C19.6461 24.7327 19.7031 24.7328 19.7585 24.721C19.8138 24.7093 19.8665 24.686 19.9133 24.6525C19.9601 24.6189 20.0003 24.5758 20.0313 24.5257C20.0624 24.4755 20.0838 24.4193 20.0943 24.3602C20.1049 24.3012 20.1042 24.2405 20.0926 24.1818L19.7234 22.2104C19.4492 20.7488 18.4502 20.1518 17.8785 19.9229C17.5781 19.806 16.1911 19.4694 13.1311 18.6514V17.9515C14.0466 17.442 14.8133 16.6749 15.3477 15.7339C15.8821 14.7929 16.1638 13.7139 16.1621 12.6143V12.5331C17.5895 12.2528 18.2494 10.7167 17.4376 9.6051V6.37855C17.4128 5.68134 17.2619 4.99575 16.9933 4.35932C16.5831 3.3827 15.7064 2.11484 13.857 1.62623C12.4535 1.25568 11.6832 0.718027 11.2845 0.326894C11.0702 0.116695 10.7894 0 10.498 0C10.2065 0 9.92577 0.116695 9.71147 0.326894C9.31325 0.714999 8.5424 1.25568 7.13895 1.62623C6.28562 1.85268 5.55687 2.26682 4.98229 2.85775C4.90082 2.9415 4.85394 3.05626 4.85196 3.17679C4.84999 3.29732 4.89308 3.41375 4.97177 3.50046C5.05045 3.58717 5.15828 3.63707 5.27152 3.63917C5.38477 3.64127 5.49417 3.5954 5.57564 3.51166C6.04099 3.03334 6.63605 2.69609 7.34546 2.5084C8.92185 2.09184 9.81558 1.4573 10.2878 0.998359C10.3451 0.941935 10.4204 0.9106 10.4985 0.9106C10.5767 0.9106 10.6519 0.941935 10.7093 0.998359C11.1809 1.4573 12.0746 2.09184 13.6516 2.5084C16.5342 3.27008 16.5831 6.25383 16.5837 6.37916V8.93424C16.4475 8.87664 16.3063 8.83344 16.1621 8.80527C16.1257 8.61031 16.3828 7.41633 15.3429 6.84537C10.9596 4.43984 7.12302 5.98863 5.67691 6.76606C5.42763 6.89913 5.21819 7.10361 5.07216 7.35648C4.92612 7.60935 4.84929 7.90057 4.85031 8.19738V8.80285C4.70068 8.83195 4.55427 8.8774 4.4134 8.93848C4.41738 6.45606 4.33546 6.0849 4.63413 5.13613C4.6528 5.07938 4.66069 5.01924 4.65735 4.95921C4.654 4.89918 4.63949 4.84045 4.61465 4.78644C4.58981 4.73243 4.55514 4.68421 4.51265 4.64457C4.47015 4.60494 4.42069 4.57468 4.36712 4.55556C4.31355 4.53643 4.25695 4.52882 4.20059 4.53317C4.14424 4.53751 4.08926 4.55373 4.03884 4.58087C3.98842 4.60802 3.94357 4.64555 3.90689 4.69129C3.87021 4.73703 3.84243 4.79007 3.82517 4.84732C3.66618 5.34098 3.57684 5.857 3.56007 6.37855V9.62689C2.76362 10.7464 3.44629 12.2571 4.85031 12.5331C4.8577 12.5713 4.73653 15.0477 6.63378 16.973C7.00262 17.3485 7.41727 17.6695 7.86656 17.9273V18.6599C3.28415 19.863 3.48611 19.8103 3.46677 19.8151C3.44743 19.82 1.65599 20.1784 
631.2737 22.2128L0.032949 28.8554C0.0310707 28.8635 0.0297399 28.8718 0.0289667 28.8802C-0.134874 30.1075 0.474408 30.9993 1.75839 30.9993H19.2409C19.8508 30.9993 20.3156 30.8086 20.6233 30.4314C20.9738 30.0027 21.0574 29.3373 20.9681 28.8554ZM16.1621 9.73588C17.1952 10.0628 17.1901 11.2738 16.1621 11.5989V9.73588ZM4.85031 11.5989C3.82005 11.2726 3.82062 10.0616 4.85031 9.73588V11.5989ZM12.2738 18.9771C12.2457 19.4571 12.047 19.9077 11.7181 20.2373C11.3891 20.567 10.9546 20.7511 10.5028 20.7522C10.051 20.7532 9.61575 20.5712 9.28545 20.2431C8.95514 19.915 8.75456 19.4654 8.72445 18.9856C8.71591 18.8512 8.7216 18.6169 8.7199 18.3245C9.87431 18.7328 11.1214 18.7362 12.2777 18.3341C12.276 18.6484 12.2817 18.8476 12.2738 18.9771ZM5.70364 12.5331V8.19678C5.70326 8.06787 5.73672 7.94141 5.80025 7.83165C5.86377 7.72189 5.95484 7.6332 6.06318 7.57557C7.43064 6.84936 8.93702 6.46854 10.4653 6.46272C11.8084 6.46272 13.341 6.76545 14.9538 7.65186C15.0612 7.7104 15.1514 7.79939 15.2143 7.909C15.2773 8.01862 15.3105 8.1446 15.3105 8.27307V12.6143C15.3105 14.4912 14.3468 16.3452 12.5098 17.251C9.25579 18.8555 5.70364 16.2217 5.70364 12.5331Z\" fill=\"#E38C31\"/></svg></i>"+"<span>"+status.text+"</span>";break;case"vsc":content+="<i><svg width=\"27\" height=\"27\" viewBox=\"0 0 27 27\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M26.7607 9.51009L20.4581 3.20746C20.3035 3.05289 20.0981 2.96777 19.8795 2.96777C19.6609 2.96777 19.4554 3.05289 19.3009 3.20746L17.2637 5.24454C17.1092 5.39911 17.0241 5.60457 17.0241 5.82316C17.0241 6.01918 17.093 6.20428 17.2186 6.35194L16.396 7.17457C15.5192 6.79034 14.5269 6.75047 13.6263 7.05581C12.6122 6.75115 11.5272 6.78918 10.5899 7.1606L9.78134 6.352C9.9069 6.20434 9.97583 6.01918 9.97583 5.82321C9.97583 5.60462 9.89071 5.39916 9.7362 5.24459L7.69912 3.20751C7.54455 3.05294 7.33909 2.96783 7.1205 2.96783C6.90191 2.96783 6.69645 3.05294 6.54193 3.20751L0.23925 9.51009C-0.0797499 9.82909 -0.0797499 10.3482 0.23925 10.6673L2.27639 12.7044C2.43095 12.8589 2.63641 12.944 2.855 12.944C3.03167 12.944 3.19926 12.8876 3.33886 12.7846L6.31701 15.7628C6.2667 15.8031 6.21792 15.8463 6.17125 15.8929L5.37573 16.6884C4.68731 17.3769 4.68731 18.4969 5.37573 19.1853C5.71994 19.5295 6.17204 19.7016 6.62415 19.7016C6.68506 19.7016 6.74591 19.6982 6.80656 19.692C6.75393 20.2028 6.92263 20.7323 7.31325 21.1229C7.65745 21.4671 8.10956 21.6391 8.56166 21.6391C8.7012 21.6391 8.84074 21.6226 8.97712 21.5898C8.98213 22.0352 9.15384 22.4791 9.49293 22.8182C9.83714 23.1624 10.2892 23.3345 10.7413 23.3345C10.9488 23.3345 11.1561 23.2978 11.3532 23.2253L11.6179 23.49C11.9768 23.8489 12.4683 24.0317 12.9512 24.0317C13.3724 24.0317 13.7871 23.8925 14.101 23.6097C14.4534 23.2925 14.6593 22.8614 14.6841 22.3914C15.2838 22.5853 15.9663 22.4809 16.4299 22.0635C16.7789 21.7492 16.9842 21.3231 17.0122 20.8583C17.6167 21.0615 18.3098 20.9596 18.7788 20.5373C19.1283 20.2226 19.3337 19.7958 19.3612 19.3302C19.965 19.532 20.6565 19.4296 21.1246 19.0081C21.489 18.68 21.6968 18.23 21.7096 17.7411C21.7222 17.2591 21.5339 16.7872 21.1931 16.4463L20.5963 15.8495L23.6611 12.7846C23.8007 12.8876 23.9683 12.944 24.145 12.944C24.3636 12.944 24.569 12.8589 24.7236 12.7044L26.7607 10.6672C27.0797 10.3482 27.0797 9.82909 26.7607 9.51009ZM5.93505 18.626C5.55508 18.2461 5.55508 17.6278 5.93505 17.2478L6.73057 16.4523C6.92057 16.2623 7.17012 16.1673 7.41967 16.1673C7.66921 16.1673 7.91876 16.2623 8.10877 16.4523C8.48873 16.8323 8.48873 17.4505 8.10877 17.8305L7.31325 18.626C6.93328 19.006 6.31501 19.006 5.93505 18.626ZM7.87256 20.5635C7.68852 20.3795 7.5871 20.1347 7.5871 19.8744C7.5871 19.6141 7.68846 19.3694 7.87256 19.1853L8.29002 18.7679C8.48003 18.5779 8.72958 18.4829 8.97912 18.4829C9.22867 18.4829 9.47821 18.5779 9.66822 18.7679C10.0482 19.1478 10.0482 19.7661 9.66822 20.1461L9.25076 20.5635C9.06672 20.7476 8.82197 20.849 8.56166 20.849C8.30136 20.849 8.05661 20.7476 7.87256 20.5635ZM10.0523 22.2589C9.67233 21.8789 9.67233 21.2607 10.0523 20.8807C10.2423 20.6907 10.4919 20.5957 10.7414 20.5957C10.9909 20.5957 11.2405 20.6907 11.4305 20.8807C11.8105 21.2607 11.8105 21.8789 11.4305 22.2589C11.0505 22.6389 10.4323 22.6389 10.0523 22.2589ZM20.9188 17.7204C20.9118 17.9902 20.7969 18.2388 20.5953 18.4203C20.2364 18.7435 19.5717 18.7 19.2008 18.329L17.7022 16.8304C17.5477 16.6759 17.2973 16.6759 17.1429 16.8304C16.9884 16.9849 16.9884 17.2353 17.1429 17.3897L18.288 18.5348C18.4789 18.7257 18.5801 18.9796 18.5731 19.2496C18.566 19.5194 18.4511 19.768 18.2495 19.9495C17.8905 20.2726 17.2259 20.2291 16.855 19.8582L15.3533 18.3565C15.1989 18.2021 14.9485 18.2021 14.794 18.3565C14.6395 18.511 14.6395 18.7614 14.794 18.9159
63L15.9391 20.061C16.13 20.2519 16.2312 20.5057 16.2241 20.7757C16.2171 21.0455 16.1022 21.2941 15.9006 21.4756C15.5417 21.7988 14.8771 21.7553 14.5061 21.3844L13.0245 19.9028C12.8701 19.7483 12.6196 19.7483 12.4652 19.9028C12.3108 20.0573 12.3108 20.3077 12.4652 20.4621L13.6103 21.6072L13.6117 21.6086C13.8017 21.7994 13.9024 22.0526 13.8954 22.322C13.8883 22.5918 13.7734 22.8403 13.5718 23.0218C13.2129 23.345 12.5483 23.3015 12.1773 22.9305L12.0265 22.7797C12.6776 22.0887 12.6658 20.9971 11.9899 20.3213C11.6375 19.9689 11.172 19.7973 10.7092 19.8057C10.8212 19.2458 10.6608 18.6417 10.2276 18.2085C9.91286 17.8937 9.50785 17.7233 9.09509 17.6964C9.29722 17.0829 9.15526 16.3799 8.66819 15.8928C8.23787 15.4625 7.63879 15.3012 7.08195 15.4089L3.90545 12.2324L4.0403 12.0975C4.19476 11.9431 4.19476 11.6926 4.0403 11.5382C3.88583 11.3837 3.63539 11.3837 3.48098 11.5382L2.87431 12.1449C2.8723 12.1468 2.86634 12.1528 2.85506 12.1528C2.84377 12.1528 2.83776 12.1468 2.83581 12.1449L0.798725 10.1078C0.788072 10.0971 0.788072 10.0798 0.798725 10.0692L7.1013 3.76672C7.10325 3.76477 7.10926 3.75876 7.1205 3.75876C7.13178 3.75876 7.13779 3.76477 7.13974 3.76672L9.17688 5.80381C9.17883 5.80581 9.18484 5.81177 9.18484 5.82305C9.18484 5.83429 9.17883 5.8403 9.17688 5.8423L4.66928 10.3499C4.51481 10.5044 4.51481 10.7548 4.66928 10.9092C4.82374 11.0637 5.07418 11.0637 5.2286 10.9092L9.22434 6.91348L10.2211 7.91024C10.297 7.98612 10.3982 8.0261 10.5009 8.0261C10.5586 8.0261 10.6168 8.01344 10.6713 7.98749C11.2216 7.72461 11.8688 7.61286 12.5147 7.6551C12.3908 7.75155 12.2709 7.8556 12.157 7.96951L9.98833 10.1382C9.29991 10.8266 9.29991 11.9467 9.98833 12.6351C10.3218 12.9686 10.7651 13.1522 11.2367 13.1522C11.7084 13.1522 12.1517 12.9686 12.4852 12.6351L14.056 11.0643C14.2315 10.8889 14.517 10.8888 14.6924 11.0643L20.6337 17.0056C20.8247 17.1965 20.926 17.4504 20.9188 17.7204ZM26.2014 10.1079L24.1643 12.145C24.1623 12.1469 24.1563 12.1529 24.145 12.1529C24.1338 12.1529 24.1278 12.1469 24.1258 12.145L19.6446 7.6638C19.4901 7.50934 19.2397 7.50934 19.0853 7.6638C18.9308 7.81827 18.9308 8.06871 19.0853 8.22312L23.0946 12.2325L20.0371 15.29L15.2518 10.5048C14.7679 10.021 13.9806 10.021 13.4968 10.5048L11.926 12.0757C11.546 12.4557 10.9277 12.4557 10.5478 12.0757C10.1678 11.6957 10.1678 11.0775 10.5478 10.6975L12.7165 8.52878C13.8977 7.3476 15.8197 7.3476 17.001 8.52878C17.1555 8.68324 17.4059 8.68324 17.5603 8.52878C17.7148 8.37431 17.7148 8.12387 17.5603 7.96946C17.4173 7.82649 17.2656 7.69755 17.1072 7.58201L17.7757 6.91342L17.8869 7.02459C18.0413 7.17905 18.2918 7.17905 18.4462 7.02459C18.6006 6.87013 18.6006 6.61968 18.4462 6.46527L17.8231 5.84225C17.8212 5.84025 17.8152 5.83429 17.8152 5.823C17.8152 5.81172 17.8212 5.8057 17.8231 5.80375L19.8603 3.76662C19.8622 3.76467 19.8682 3.75865 19.8795 3.75865C19.8908 3.75865 19.8968 3.76467 19.8988 3.76662L26.2014 10.0692C26.212 10.08 26.212 10.0973 26.2014 10.1079Z\" fill=\"#1F417A\"/></svg></i>"+"<span>"+status.text+"</span>";break;case"pro":content+="<i><svg width=\"26\" height=\"23\" viewBox=\"0 0 26 23\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14.559 11.1636H11.441C11.3114 11.1637 11.1831 11.1926 11.0635 11.2484C10.9438 11.3043 10.8351 11.3862 10.7436 11.4893C10.6521 11.5924 10.5795 11.7147 10.53 11.8494C10.4806 11.984 10.4552 12.1283 10.4553 12.274V14.0643C10.4557 14.358 10.5597 14.6395 10.7445 14.8471C10.9293 15.0547 11.1797 15.1715 11.441 15.1718H14.559C14.8202 15.1715 15.0707 15.0547 15.2555 14.8471C15.4402 14.6395 15.5442 14.358 15.5446 14.0643V12.274C15.5448 12.1283 15.5194 11.984 15.4699 11.8494C15.4204 11.7147 15.3479 11.5924 15.2563 11.4893C15.1648 11.3862 15.0561 11.3043 14.9365 11.2484C14.8168 11.1926 14.6885 11.1637 14.559 11.1636ZM14.7829 14.062C14.7826 14.1286 14.7589 14.1924 14.717 14.2395C14.675 14.2865 14.6182 14.313 14.559 14.3132H11.441C11.3817 14.313 11.3249 14.2865 11.283 14.2395C11.241 14.1924 11.2173 14.1286 11.217 14.062V12.274C11.2172 12.2073 11.2408 12.1434 11.2828 12.0963C11.3248 12.0492 11.3817 12.0228 11.441 12.0228H14.559C14.6183 12.0228 14.6751 12.0492 14.7171 12.0963C14.7591 12.1434 14.7828 12.2073 14.7829 12.274V14.062Z\" fill=\"#1F417A\"/><path d=\"M25.9944 4.79091C25.9675 4.49918 25.8455 4.22898 25.6519 4.03247C25.4582 3.83595 25.2067 3.72704 24.9458 3.72677H17.5079V1.7218C17.5074 1.26529 17.346 0.827608 17.0588 0.504805C16.7717 0.182003 16.3824 0.000453413 15.9763 0H10.0237C9.61764 0.000453413 9.22831 0.182003 8.94118 0.504805C8.65404 0.827608 8.49255 1.26529 8.49215 1.7218V3.72677H1.05422C0.793339 3.72704 0.541797 3.83595 0.348143 4.03247C0.154489 4.22898 0.0324522 4.49918 0.00558594 4.79091C0.00199361 4.83036 0.000129376 4.86999 0 4.90965L0 21.8148C0.000268893 22.129
631 0.111424 22.4303 0.30907 22.6525C0.506717 22.8747 0.774705 22.9997 1.05422 23H24.9458C25.2253 22.9997 25.4933 22.8747 25.6909 22.6525C25.8886 22.4303 25.9997 22.1291 26 21.8148V4.90965C25.9999 4.86999 25.998 4.83036 25.9944 4.79091ZM9.25387 1.7218C9.25414 1.49236 9.33533 1.2724 9.47965 1.11016C9.62396 0.947917 9.81962 0.856637 10.0237 0.856334H15.9763C16.1804 0.856637 16.376 0.947917 16.5204 1.11016C16.6647 1.2724 16.7459 1.49236 16.7461 1.7218V3.72677H16.2571V2.0552C16.257 1.88325 16.1962 1.71838 16.088 1.59679C15.9798 1.4752 15.8332 1.40682 15.6802 1.40667H10.3198C10.1668 1.40682 10.0202 1.4752 9.912 1.59679C9.80385 1.71838 9.74302 1.88325 9.74289 2.0552V3.72734H9.25387V1.7218ZM15.4954 2.26244V3.72677H10.5046V2.26244H15.4954ZM25.2383 5.49481C25.2366 6.01781 25.1037 6.52966 24.8547 6.9715C24.6058 7.41334 24.251 7.76722 23.8311 7.99245L16.7451 11.7677C16.6999 11.7918 16.6594 11.8256 16.6258 11.8672C16.5923 11.9088 16.5663 11.9575 16.5495 12.0104C16.5155 12.1173 16.5207 12.2349 16.5638 12.3375C16.607 12.4401 16.6846 12.5192 16.7797 12.5574C16.8747 12.5956 16.9794 12.5898 17.0706 12.5413L24.1566 8.76886C24.5729 8.54656 24.9417 8.22629 25.2383 7.82975V21.8165C25.2383 21.9038 25.2075 21.9874 25.1526 22.0491C25.0978 22.1107 25.0234 22.1454 24.9458 22.1454H1.05422C1.01568 22.1454 0.977518 22.1368 0.941931 22.1202C0.906343 22.1036 0.874031 22.0792 0.84685 22.0485C0.819668 22.0177 0.798155 21.9813 0.783545 21.9412C0.768936 21.9011 0.761518 21.8582 0.761719 21.8148V7.82804C1.0581 8.2252 1.42698 8.54606 1.84336 8.76886L8.94156 12.5482C8.98678 12.5722 9.03576 12.586 9.08573 12.5888C9.13569 12.5916 9.18565 12.5833 9.23276 12.5644C9.27987 12.5454 9.3232 12.5163 9.36028 12.4785C9.39736 12.4408 9.42746 12.3952 9.44887 12.3443C9.47027 12.2935 9.48256 12.2384 9.48504 12.1823C9.48751 12.1261 9.48012 12.0699 9.46329 12.017C9.44646 11.964 9.42051 11.9153 9.38693 11.8736C9.35335 11.8319 9.31279 11.7981 9.26758 11.774L2.16887 7.99245C1.749 7.76722 1.3942 7.41334 1.14527 6.9715C0.896345 6.52966 0.763398 6.01781 0.761719 5.49481V4.90965C0.7612 4.89843 0.7612 4.88719 0.761719 4.87597C0.769134 4.79501 0.802989 4.72003 0.856736 4.66551C0.910483 4.61099 0.980304 4.58081 1.0527 4.58082H24.9458C25.0182 4.58081 25.088 4.61099 25.1417 4.66551C25.1955 4.72003 25.2293 4.79501 25.2368 4.87597C25.2373 4.88719 25.2373 4.89843 25.2368 4.90965L25.2383 5.49481Z\" fill=\"#1F417A\"/></svg></i>"+"<span>"+status.text+"</span>";break;case"et":content+="<i><svg width=\"26\" height=\"22\" viewBox=\"0 0 26 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0.248322 4.99791L8.47031 1.75763C8.51769 1.73895 8.56817 1.73009 8.61886 1.73158C8.66955 1.73306 8.71946 1.74485 8.76575 1.76628C8.81203 1.78771 8.85377 1.81835 8.8886 1.85645C8.92343 1.89456 8.95066 1.93938 8.96873 1.98837C8.9868 2.03735 8.99537 2.08954 8.99393 2.14194C8.99249 2.19435 8.98109 2.24595 8.96037 2.2938C8.93964 2.34165 8.91 2.3848 8.87314 2.42081C8.83628 2.45682 8.79293 2.48497 8.74555 2.50365L1.47012 5.37118L6.5066 7.35672L12.8405 4.39154C12.8867 4.36989 12.9366 4.35786 12.9873 4.35613C13.0379 4.3544 13.0885 4.36301 13.1359 4.38146C13.1834 4.39991 13.2269 4.42785 13.2639 4.46367C13.3009 4.4995 13.3307 4.54251 13.3517 4.59025C13.3726 4.638 13.3842 4.68953 13.3859 4.74193C13.3876 4.79432 13.3793 4.84654 13.3614 4.89561C13.3436 4.94468 13.3165 4.98963 13.2819 5.0279C13.2472 5.06617 13.2056 5.09701 13.1595 5.11866L7.52274 7.7573L13 9.91608L24.5273 5.37118L13 0.826287L10.1562 1.94663C10.0606 1.98436 9.95429 1.98125 9.86082 1.93798C9.76735 1.89471 9.69433 1.81482 9.65783 1.71589C9.62133 1.61697 9.62434 1.5071 9.6662 1.41046C9.70805 1.31383 9.78532 1.23834 9.88102 1.20061L12.8624 0.0261911C12.951 -0.00873038 13.049 -0.00873038 13.1376 0.0261911L25.7517 4.99791C25.8247 5.02695 25.8875 5.07815 25.9318 5.14477C25.9761 5.21139 25.9999 5.29032 26 5.37118V7.1924C26 7.27322 25.9763 7.35213 25.9319 7.4187C25.8876 7.48526 25.8247 7.53633 25.7517 7.56515L21.8126 9.11756V10.5009C21.8145 10.5546 21.8059 10.6081 21.7873 10.6582C21.7687 10.7083 21.7406 10.7541 21.7046 10.7927C21.6685 10.8314 21.6253 10.8621 21.5775 10.8831C21.5297 10.9041 21.4783 10.9149 21.4264 10.9149C21.3745 10.9149 21.3231 10.9041 21.2753 10.8831C21.2275 10.8621 21.1843 10.8314 21.1482 10.7927C21.1122 10.7541 21.084 10.7083 21.0655 10.6582C21.0469 10.6081 21.0383 10.5546 21.0402 10.5009V9.42416L13.1376 12.539C13.049 12.574 12.951 12.574 12.8624 12.539L6.90625 10.1912V16.509C9.13293 17.7218 11.6507 18.2447 14.1577 18.0152C16.6646 17.7856 19.0543 16.8133 21.0402 15.2149V12.1001C21.0438 11.9967 21.0861 11.8988 21.1581 11.827C21.2302 11.7552 21.3263 11.715 21.4264 11.715C21.5265 11.715 21.6226 11.7552 21.6946 11.827C21.7667 11.8988 21.809 11.9967 21.8126 12.1001V15.4076C21.8125 15.4674 21.7995 15.5265 21.7744 15.5805C21.7494 15.6344 21.713 15.6819 21.6679 15.7194C19.6157 17.4196 17.1378 18.4809 14.5238 18.7792C11.9099 19.0776 9.26775 18.6006 6.90625 17.4041V19.0201C7.2491 19.1167 7.54637 19.3387 7.74282 19.6449C7.93928 19.951 8.02157 20.3205 7.97441 20.6846C7.92725 21.0488 7.75384 21.3828 7.4864 21.6248C7.21897 21.8667 6.87568 22.0001 6.52031 22.0001C6.16494 22.0001 5.82166 21.8667 5.55422 21.6248C5.28678 21.3828 5.11338 21.0488 5.06622 20.6846C5.01906 20.3205 5.10135 19.951 5.29781 19.6449C5.49426 19.3387 5.79152 19.1167 6.13437 19.0201V16.9825C5.50258 16.6114 4.90014 16.1892 4.33266 15.7199C4.28753 15.6824 4.2511 15.6349 4.22606 15.581C4.20101 15.527 4.18798 15.4679 4.18793 15.4081V9.11966L0.249336 7.56725C0.175825 7.53841 0.112574 7.48707 0.0680218 7.4201C0.0234699 7.35312 -0.000259399 7.27368 0 7.1924V5.37118C0.000112534 5.29032 0.0238934 5.21139 0.0682163 5.14477C0.112537 5.07815 0.175325 5.02695 0.248322 4.99791ZM5.82461 20.4853C5.82461 20.6275 5.86539 20.7665 5.94181 20.8847C6.01822 21.0029 6.12682 21.095 6.25388 21.1494C6.38094 21.2038 6.52075 21.218 6.65562 21.1902C6.79049 21.1624 6.91436 21.0939 7.01156 20.9933C7.10877 20.8928 7.17494 20.7647 7.2017 20.6252C7.22847 20.4858 7.21463 20.3412 7.16194 20.2099C7.10924 20.0786 7.02006 19.9664 6.90566 19.8875C6.79127 19.8086 6.65681 19.7665 6.5193 19.7666C6.3354 19.7669 6.15909 19.8424 6.02891 19.9767C5.89873 20.111 5.82528 20.2931 5.82461 20.4832V20.4853ZM25.2276 5.95078L13.3864 10.618V11.5866L25.2276 6.91888V5.95078ZM12.6136 11.5866V10.618L6.90625 8.36787V9.33649L12.6136 11.5866ZM4.9593 15.2144C5.33529 15.5166 5.72725 15.7971 6.13336 16.0543V9.88668L4.9593 9.42416V15.2144ZM6.13336 9.02989V8.06389L0.772383 5.95078V6.91888L6.13336 9.02989Z\" fill=\"#E38C31\"/></svg></i>"+"<span>"+status.text+"</span>";break;case"cpf":content+="<i><svg width=\"21\" height=\"31\" viewBox=\"0 0 21 31\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.9681 28.8554L20.4885 26.2912C20.4776 26.2327 20.4559 26.177 20.4248 26.1274C20.3936 26.0778 20.3536 26.0352 20.307 26.0021C20.2603 25.9689 20.208 25.9459 20.153 25.9343C20.0981 25.9226 20.0415 25.9226 19.9865 25.9343C19.9315 25.9459 19.8792 25.969 19.8326 26.0022C19.786 26.0353 19.746 26.0779 19.7148 26.1275C19.6837 26.1771 19.662 26.2328 19.6511 26.2913C19.6402 26.3499 19.6402 26.4101 19.6511 26.4686L20.1284 29.0195C20.1506 29.1944 20.1751 29.5977 19.9799 29.8368C19.6471 30.2449 18.9309 30.0342 17.1025 30.0917V25.8117C17.1025 25.6912 17.0575 25.5757 16.9775 25.4906C16.8975 25.4054 16.789 25.3576 16.6758 25.3576C16.5627 25.3576 16.4541 25.4054 16.374
631 25.4906C16.2941 25.5757 16.2492 25.6912 16.2492 25.8117V30.0917H4.76441V25.8117C4.76441 25.6912 4.71945 25.5757 4.63944 25.4906C4.55942 25.4054 4.4509 25.3576 4.33774 25.3576C4.22458 25.3576 4.11605 25.4054 4.03604 25.4906C3.95602 25.5757 3.91107 25.6912 3.91107 25.8117V30.0917H1.75612C1.06378 30.0917 0.77535 29.7684 0.869786 29.0195L2.11053 22.3884C2.38019 20.9504 3.63232 20.7191 3.69888 20.6864L7.9536 19.5699C8.64367 22.3478 12.3671 22.3254 13.0452 19.5651L17.2976 20.6864C17.3704 20.7221 18.618 20.9558 18.8865 22.3878L19.2557 24.3592C19.2661 24.4182 19.2874 24.4745 19.3184 24.5247C19.3493 24.575 19.3893 24.6182 19.4361 24.6518C19.4829 24.6855 19.5354 24.7089 19.5908 24.7208C19.6461 24.7327 19.7031 24.7328 19.7585 24.721C19.8138 24.7093 19.8665 24.686 19.9133 24.6525C19.9601 24.6189 20.0003 24.5758 20.0313 24.5257C20.0624 24.4755 20.0838 24.4193 20.0943 24.3602C20.1049 24.3012 20.1042 24.2405 20.0926 24.1818L19.7234 22.2104C19.4492 20.7488 18.4502 20.1518 17.8785 19.9229C17.5781 19.806 16.1911 19.4694 13.1311 18.6514V17.9515C14.0466 17.442 14.8133 16.6749 15.3477 15.7339C15.8821 14.7929 16.1638 13.7139 16.1621 12.6143V12.5331C17.5895 12.2528 18.2494 10.7167 17.4376 9.6051V6.37855C17.4128 5.68134 17.2619 4.99575 16.9933 4.35932C16.5831 3.3827 15.7064 2.11484 13.857 1.62623C12.4535 1.25568 11.6832 0.718027 11.2845 0.326894C11.0702 0.116695 10.7894 0 10.498 0C10.2065 0 9.92577 0.116695 9.71147 0.326894C9.31325 0.714999 8.5424 1.25568 7.13895 1.62623C6.28562 1.85268 5.55687 2.26682 4.98229 2.85775C4.90082 2.9415 4.85394 3.05626 4.85196 3.17679C4.84999 3.29732 4.89308 3.41375 4.97177 3.50046C5.05045 3.58717 5.15828 3.63707 5.27152 3.63917C5.38477 3.64127 5.49417 3.5954 5.57564 3.51166C6.04099 3.03334 6.63605 2.69609 7.34546 2.5084C8.92185 2.09184 9.81558 1.4573 10.2878 0.998359C10.3451 0.941935 10.4204 0.9106 10.4985 0.9106C10.5767 0.9106 10.6519 0.941935 10.7093 0.998359C11.1809 1.4573 12.0746 2.09184 13.6516 2.5084C16.5342 3.27008 16.5831 6.25383 16.5837 6.37916V8.93424C16.4475 8.87664 16.3063 8.83344 16.1621 8.80527C16.1257 8.61031 16.3828 7.41633 15.3429 6.84537C10.9596 4.43984 7.12302 5.98863 5.67691 6.76606C5.42763 6.89913 5.21819 7.10361 5.07216 7.35648C4.92612 7.60935 4.84929 7.90057 4.85031 8.19738V8.80285C4.70068 8.83195 4.55427 8.8774 4.4134 8.93848C4.41738 6.45606 4.33546 6.0849 4.63413 5.13613C4.6528 5.07938 4.66069 5.01924 4.65735 4.95921C4.654 4.89918 4.63949 4.84045 4.61465 4.78644C4.58981 4.73243 4.55514 4.68421 4.51265 4.64457C4.47015 4.60494 4.42069 4.57468 4.36712 4.55556C4.31355 4.53643 4.25695 4.52882 4.20059 4.53317C4.14424 4.53751 4.08926 4.55373 4.03884 4.58087C3.98842 4.60802 3.94357 4.64555 3.90689 4.69129C3.87021 4.73703 3.84243 4.79007 3.82517 4.84732C3.66618 5.34098 3.57684 5.857 3.56007 6.37855V9.62689C2.76362 10.7464 3.44629 12.2571 4.85031 12.5331C4.8577 12.5713 4.73653 15.0477 6.63378 16.973C7.00262 17.3485 7.41727 17.6695 7.86656 17.9273V18.6599C3.28415 19.863 3.48611 19.8103 3.46677 19.8151C3.44743 19.82 1.65599 20.1784 1.2737 22.2128L0.032949 28.8554C0.0310707 28.8635 0.0297399 28.8718 0.0289667 28.8802C-0.134874 30.1075 0.474408 30.9993 1.75839 30.9993H19.2409C19.8508 30.9993 20.3156 30.8086 20.6233 30.4314C20.9738 30.0027 21.0574 29.3373 20.9681 28.8554ZM16.1621 9.73588C17.1952 10.0628 17.1901 11.2738 16.1621 11.5989V9.73588ZM4.85031 11.5989C3.82005 11.2726 3.82062 10.0616 4.85031 9.73588V11.5989ZM12.2738 18.9771C12.2457 19.4571 12.047 19.9077 11.7181 20.2373C11.3891 20.567 10.9546 20.7511 10.5028 20.7522C10.051 20.7532 9.61575 20.5712 9.28545 20.2431C8.95514 19.915 8.75456 19.4654 8.72445 18.9856C8.71591 18.8512 8.7216 18.6169 8.7199 18.3245C9.87431 18.7328 11.1214 18.7362 12.2777 18.3341C12.276 18.6484 12.2817 18.8476 12.2738 18.9771ZM5.70364 12.5331V8.19678C5.70326 8.06787 5.73672 7.94141 5.80025 7.83165C5.86377 7.72189 5.95484 7.6332 6.06318 7.57557C7.43064 6.84936 8.93702 6.46854 10.4653 6.46272C11.8084 6.46272 13.341 6.76545 14.9538 7.65186C15.0612 7.7104 15.1514 7.79939 15.2143 7.909C15.2773 8.01862 15.3105 8.1446 15.3105 8.27307V12.6143C15.3105 14.4912 14.3468 16.3452 12.5098 17.251C9.25579 18.8555 5.70364 16.2217 5.70364 12.5331Z\" fill=\"#E38C31\"/></svg></i>"+"<span>"+status.text+"</span>";break;default:content+="<i><svg width=\"21\" height=\"31\" viewBox=\"0 0 21 31\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.9681 28.8554L20.4885 26.2912C20.4776 26.2327 20.4559 26.177 20.4248 26.1274C20.3936 26.0778 20.3536 26.0352 20.307 26.0021C20.2603 25.9689 20.208 25.9459 20.153 25.9343C20.0981 25.9226 20.0415 25.9226 19.9865 25.9343C19.9315 25.9459 19.8792 25.969 19.8326 26.0022C19.786 26.0353 19.746 26.0779 19.7148 26.1275C19.6837 26.1771 19.662 26.2328 19.6511 26.2913C19.6402 26.3499 19.6402 26.4101 19.6511 26.4686L20.1284 29.0195C20.1506 29.1944 20.1751 29.5977 19.9799 29.8368C19.6471 30.2449 18.9309 30.0342 17.1025 30.0917V25.8117C17.1025 25.6912 17.0575 25.5757 16.9775 25.4906C16.8975 25.4054 16.789 25.3576 16.6758 25.3576C16.5627 25.3576 16.4541 25.4054 16.374
631 25.4906C16.2941 25.5757 16.2492 25.6912 16.2492 25.8117V30.0917H4.76441V25.8117C4.76441 25.6912 4.71945 25.5757 4.63944 25.4906C4.55942 25.4054 4.4509 25.3576 4.33774 25.3576C4.22458 25.3576 4.11605 25.4054 4.03604 25.4906C3.95602 25.5757 3.91107 25.6912 3.91107 25.8117V30.0917H1.75612C1.06378 30.0917 0.77535 29.7684 0.869786 29.0195L2.11053 22.3884C2.38019 20.9504 3.63232 20.7191 3.69888 20.6864L7.9536 19.5699C8.64367 22.3478 12.3671 22.3254 13.0452 19.5651L17.2976 20.6864C17.3704 20.7221 18.618 20.9558 18.8865 22.3878L19.2557 24.3592C19.2661 24.4182 19.2874 24.4745 19.3184 24.5247C19.3493 24.575 19.3893 24.6182 19.4361 24.6518C19.4829 24.6855 19.5354 24.7089 19.5908 24.7208C19.6461 24.7327 19.7031 24.7328 19.7585 24.721C19.8138 24.7093 19.8665 24.686 19.9133 24.6525C19.9601 24.6189 20.0003 24.5758 20.0313 24.5257C20.0624 24.4755 20.0838 24.4193 20.0943 24.3602C20.1049 24.3012 20.1042 24.2405 20.0926 24.1818L19.7234 22.2104C19.4492 20.7488 18.4502 20.1518 17.8785 19.9229C17.5781 19.806 16.1911 19.4694 13.1311 18.6514V17.9515C14.0466 17.442 14.8133 16.6749 15.3477 15.7339C15.8821 14.7929 16.1638 13.7139 16.1621 12.6143V12.5331C17.5895 12.2528 18.2494 10.7167 17.4376 9.6051V6.37855C17.4128 5.68134 17.2619 4.99575 16.9933 4.35932C16.5831 3.3827 15.7064 2.11484 13.857 1.62623C12.4535 1.25568 11.6832 0.718027 11.2845 0.326894C11.0702 0.116695 10.7894 0 10.498 0C10.2065 0 9.92577 0.116695 9.71147 0.326894C9.31325 0.714999 8.5424 1.25568 7.13895 1.62623C6.28562 1.85268 5.55687 2.26682 4.98229 2.85775C4.90082 2.9415 4.85394 3.05626 4.85196 3.17679C4.84999 3.29732 4.89308 3.41375 4.97177 3.50046C5.05045 3.58717 5.15828 3.63707 5.27152 3.63917C5.38477 3.64127 5.49417 3.5954 5.57564 3.51166C6.04099 3.03334 6.63605 2.69609 7.34546 2.5084C8.92185 2.09184 9.81558 1.4573 10.2878 0.998359C10.3451 0.941935 10.4204 0.9106 10.4985 0.9106C10.5767 0.9106 10.6519 0.941935 10.7093 0.998359C11.1809 1.4573 12.0746 2.09184 13.6516 2.5084C16.5342 3.27008 16.5831 6.25383 16.5837 6.37916V8.93424C16.4475 8.87664 16.3063 8.83344 16.1621 8.80527C16.1257 8.61031 16.3828 7.41633 15.3429 6.84537C10.9596 4.43984 7.12302 5.98863 5.67691 6.76606C5.42763 6.89913 5.21819 7.10361 5.07216 7.35648C4.92612 7.60935 4.84929 7.90057 4.85031 8.19738V8.80285C4.70068 8.83195 4.55427 8.8774 4.4134 8.93848C4.41738 6.45606 4.33546 6.0849 4.63413 5.13613C4.6528 5.07938 4.66069 5.01924 4.65735 4.95921C4.654 4.89918 4.63949 4.84045 4.61465 4.78644C4.58981 4.73243 4.55514 4.68421 4.51265 4.64457C4.47015 4.60494 4.42069 4.57468 4.36712 4.55556C4.31355 4.53643 4.25695 4.52882 4.20059 4.53317C4.14424 4.53751 4.08926 4.55373 4.03884 4.58087C3.98842 4.60802 3.94357 4.64555 3.90689 4.69129C3.87021 4.73703 3.84243 4.79007 3.82517 4.84732C3.66618 5.34098 3.57684 5.857 3.56007 6.37855V9.62689C2.76362 10.7464 3.44629 12.2571 4.85031 12.5331C4.8577 12.5713 4.73653 15.0477 6.63378 16.973C7.00262 17.3485 7.41727 17.6695 7.86656 17.9273V18.6599C3.28415 19.863 3.48611 19.8103 3.46677 19.8151C3.44743 19.82 1.65599 20.1784 1.2737 22.2128L0.032949 28.8554C0.0310707 28.8635 0.0297399 28.8718 0.0289667 28.8802C-0.134874 30.1075 0.474408 30.9993 1.75839 30.9993H19.2409C19.8508 30.9993 20.3156 30.8086 20.6233 30.4314C20.9738 30.0027 21.0574 29.3373 20.9681 28.8554ZM16.1621 9.73588C17.1952 10.0628 17.1901 11.2738 16.1621 11.5989V9.73588ZM4.85031 11.5989C3.82005 11.2726 3.82062 10.0616 4.85031 9.73588V11.5989ZM12.2738 18.9771C12.2457 19.4571 12.047 19.9077 11.7181 20.2373C11.3891 20.567 10.9546 20.7511 10.5028 20.7522C10.051 20.7532 9.61575 20.5712 9.28545 20.2431C8.95514 19.915 8.75456 19.4654 8.72445 18.9856C8.71591 18.8512 8.7216 18.6169 8.7199 18.3245C9.87431 18.7328 11.1214 18.7362 12.2777 18.3341C12.276 18.6484 12.2817 18.8476 12.2738 18.9771ZM5.70364 12.5331V8.19678C5.70326 8.06787 5.73672 7.94141 5.80025 7.83165C5.86377 7.72189 5.95484 7.6332 6.06318 7.57557C7.43064 6.84936 8.93702 6.46854 10.4653 6.46272C11.8084 6.46272 13.341 6.76545 14.9538 7.65186C15.0612 7.7104 15.1514 7.79939 15.2143 7.909C15.2773 8.01862 15.3105 8.1446 15.3105 8.27307V12.6143C15.3105 14.4912 14.3468 16.3452 12.5098 17.251C9.25579 18.8555 5.70364 16.2217 5.70364 12.5331Z\" fill=\"#E38C31\"/></svg></i>"+"<span>Vous \xEAtes ?</span>";break;}return content}let trainingRadius=30;/**
64 * Changes the value of training results based on selected position option
65 * @param results Json of training sessions
66 * @returns {*} results: filtered Json of training sessions
67 */function filterTrainingsbyPosition(results){let selectedPositions=document.getElementById("training_position").selectedOptions;// let posVal = [];
68let posLat=null;let posLong=null;if(jQuery("#training_position")&&jQuery("#training_position").select2("data")&&jQuery("#training_position").select2("data")[0]){posLat=jQuery("#training_position").select2("data")[0].lat;posLong=jQuery("#training_position").select2("data")[0].lng}else if(filters&&filters.location&&filters.location.lat&&filters.location.lng){posLat=filters.location.lat;posLong=filters.location.lng}let filteredResults=results;if(posLat&&posLong){results=results.map(function(element){let d=NaN;if(element.place_id&&element.place_coords){d=haversine(element.place_coords[0],element.place_coords[1],posLat,posLong)}else if(element.cplace_id&&element.cplace_coords){d=haversine(element.cplace_coords[0],element.cplace_coords[1],posLat,posLong)}if(isNaN(d)){d=999999}return{...element,d}});results=results.sort(({d:d1},{d:d2})=>d1-d2);filteredResults=results.filter(function({d}){return d<trainingRadius});if(filteredResults.length<50){filteredResults=results.slice(0,50)}}return filteredResults}/**
69 * Changes the value of training results based on selected number of seats
70 * @param results Json of training sessions
71 * @returns {*} results: filtered Json of training sessions
72 */function filterTrainingsbyAvailableSeats(results){seats=parseInt(document.getElementById("training_seats").value);if(!isNaN(seats)&&seats>0){results=results.filter(function(element){return parseInt(element.available_places)>=seats})}return results}/**
73 * Changes the value of training results based on whether trainee is a member of the public, a professional or a student
74 * @param results Json of training sessions
75 * @returns {*} results: filtered Json of training sessions
76 */function filterTrainingsbyTraineeStatus(results){status=document.getElementById("training_status").value;if(status==="gp"||status==="et"){results=results.filter(function(element){return element.availableForGP&&parseInt(element.priceGP)>0})}else if(status==="pro"){results=results.filter(function(element){return element.availableForPro&&parseInt(element.priceFP)>0})}else if(status==="vsc"){results=results.filter(function(element){return element.availableForVSC&&parseInt(element.priceVSC)>0})}else if(status==="cpf"){results=results.filter(function(element){return element.isCpf})}return results}/**
77 * Changes the value of training results based on start & end days selected by users
78 * @param results Json of training sessions
79 * @returns {*} results: filtered Json of training sessions
80 */function filterTrainingsbyDates(results){if(startDate>endDate){endDate=startDate}results=results.filter(function(element){return new Date(parseDatesForHtml(element.start_date.date)).getTime()>=new Date(parseDatesForHtml(startDate)).getTime()&&new Date(parseDatesForHtml(element.end_date.date)).getTime()<=new Date(parseDatesForHtml(endDate)).getTime()});return results}/**
81 * Changes the value of training results based on selected themes
82 * @param results Json of training sessions
83 * @returns {*} results: filtered Json of training sessions
84 */function filterTrainingsbyTheme(results){checkedThemes=[];let checked=0;let themes=document.querySelectorAll(".training-filter--theme input");
84themes.forEach(function(element){if(element.checked){checkedThemes.push(element.value);checked++}});if(checked>0){results=results.filter(function(element){let response=false;checkedThemes.forEach(function(value){if(element.training_id==value){response=true}});return response})}return results}/**
85 * Changes the value of results based on user filter selections
86 */var triggerFilters;function filterTrainings(){clearTimeout(triggerFilters);triggerFilters=setTimeout(filterTrainingsNow,200)}function filterTrainingsNow(){results=fnpc_training_list;//filters results based on selected seats number
87results=filterTrainingsbyAvailableSeats(results);//filters results based on selected status
88results=filterTrainingsbyTraineeStatus(results);//filters results based on selected dates
89results=filterTrainingsbyDates(results);//filters results based on selected themes
90results=filterTrainingsbyTheme(results);//filters based on selected position option
91results=filterTrainingsbyPosition(results);showTrainingList();showTrainingButton();initCustomIcons();updateTrainingMap()}function updateTrainingMap(){if(document.getElementById("training-result--map")){let markersToShow=[];results.forEach(function(result){if(result.marker_id>=0&&markersToShow.indexOf(result.marker_id)==-1){markersToShow.push(result.marker_id)}});markersObjects.forEach(function(marker){marker.setVisible(false)});const bounds=new google.maps.LatLngBounds;markersToShow.forEach(function(index){markersObjects[index].setVisible(true);bounds.extend(markersObjects[index].position)});gmap.fitBounds(bounds);gmap.setZoom(Math.min(gmap.zoom,17))}}

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.