1(()=>{function t(t,i,o){return(i=function(t){var i=function(t,i){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,i||"default");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"===e(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}SoftSystem.Utils.ConvertVP=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0!=t)return e?100*t/window.innerWidth:100*t/window.innerHeight;if(0!=e&&0!=i){var o=[];return o.width=Math.ceil(window.innerWidth*e/100),o.height=Math.ceil(window.innerHeight*i/100),o}return 0!=e?Math.ceil(window.innerWidth*e/100):0!=i?Math.ceil(window.innerHeight*i/100):void 0},SoftSystem.Utils.CheckIframe=function(){try{return window.self!==window.top}catch(t){return!0}};var i="1vw";"undefined"!=typeof cfg&&2!=cfg.microsite||(i=SoftSystem.Utils.ConvertVP(0,1,0)),SoftSystem.Blocs={VueApp:null,OptionsGrid:{animate:!0,margin:0,cellHeight:i,verticalMargin:"0vw",staticGrid:!0,resizable:!1,disableResize:!0,disableDrag:!0,detachGrid:!1,minRow:0,oneColumnSize:767}},SoftSystem.Blocs.ChargerGridStack=function(){$(window).width()<768||GridStack.initAll(SoftSystem.Blocs.OptionsGrid)},SoftSystem.Blocs.ResizeGridstack=function(){if(!($(window).width()<768)){var t=$(".grid-stack");$(t).each((function(){var t=$(this)[0].gridstack;
1$(this).find(".autoheight").each((function(){var e=$(this).find(".bloc")[0].scrollHeight,i=parseInt(pxTOvw(e));t.update(this,{h:i})}))}))}},SoftSystem.Blocs.Parallax=function(){$(".parallax").length>0&&$(window).on("load resize scroll",(function(){$(".parallax").each((function(){var t=-$(window).scrollTop(),e=0;$(".header").length>0&&(e=$(".header").height());var i=(t- -($(this).position().top-$(this).height()))/4-e;i>0&&(i=0),$(this).visible("partial")&&$(this).css({"background-position":"0px "+i+"px"})}))}))},SoftSystem.Blocs.SetupSite=function(){$(window).width()>=768&&(SoftSystem.Blocs.ChargerGridStack(),SoftSystem.Blocs.ResizeGridstack()),$(window).width()>=768&&SoftSystem.Blocs.Parallax()},SoftSystem.Blocs.Cartes=[],SoftSystem.Blocs.AddCarte=function(t){SoftSystem.Blocs.Cartes.push(t)},SoftSystem.Blocs.InitCartes=function(){for(var t=SoftSystem.Blocs.Cartes,i=new L.Popup,o=L.icon({iconUrl:"/images/vendor/leaflet/dist/marker-icon.png"}),n=[],s=0;s<t.length;s++){var r=t[s],a="bloc_carte_"+r.bloc_id,l=L.map(a,{scrollWheelZoom:!1});L.tileLayer.provider("OpenStreetMap").addTo(l);var c=[];"array"!=typeof r.markers&&"object"!=e(r.markers)||(c=r.markers);for(s=0;s<c.length;s++){var u=c[s],d=[u.latitude,u.longitude];n.push(d);var f=L.marker(d,{icon:o,texte:u.texte[cfg.langue],alt:u.titre[cfg.langue],title:u.titre[cfg.langue]});l.addLayer(f),f.on("click",(function(t){i.setLatLng(t.latlng),l.openPopup(i),i.setContent("<strong>"+this.options.title+"</strong>"+this.options.texte)}))}c.length>0&&l.fitBounds(n)}},SoftSystem.Blocs.Accordeons={VueAppForm:null,VueApp:null},SoftSystem.Blocs.Accordeons.SetupSite=function(){$(".liste_accordeon > li > span > a").on("click",(function(t){t.preventDefault();var e=$(this).closest(".liste_accordeon"),i=!1;$(this).closest("li").find(".reponse").is(":visible")&&(i=!0),e.find(".reponse").slideUp(150),e.find(".plus").removeClass("fa-minus").addClass("fa-plus"),e.find("li").removeClass("active"),i||($(this).closest("li").addClass("active").find(".reponse").slideDown(150),$(this).closest("li").find(".plus").removeClass("fa-plus").addClass("fa-minus")),""!=$(this).data("ref")&&(location.hash="#"+$(this).data("ref")),setTimeout((function(){SoftSystem.Blocs.ResizeGridstack()}),150)}));var t=location.hash;""!=t&&(t=t.replace("#",""),$(".liste_accordeon > li > span >
1 a").each((function(){var e=$(this).data("ref");t==e&&($(this).closest("li").find(".reponse").is(":visible")||$(this).trigger("click"))})))},SoftSystem.Blocs.Slider={},SoftSystem.Blocs.Slider.SetupSite=function(){$(".bloc_slider_slick").slick({dots:!0,autoplay:!0,fade:!1})},SoftSystem.Blocs.FormulaireIntranet=function(e){window.scrollTo(0,0),parent.scrollTo(0,0);for(var i={},o=0;o<e.items.length;o++){var n=e.items[o];i[n.id]={x:n.x,y:n.y,w:n.w,h:n.h}}SoftSystem.Blocs.VueApp=new Vue({el:"#app_blocs",data:{afficherOptions:!0,afficherGrid:!1,type:"texte",items:i,grid:null,settings:e,modif:!1,template:0,contenuCopie:0,urlDuplicate:""},mounted:function(){this.setupGrid();var t=localStorage.getItem("afficherGrid");null!=t&&(t=JSON.parse(t),this.afficherGrid=t)},watch:{afficherOptions:function(t){t?(this.grid.enable(),parent.document.getElementById("tab-grid").classList.remove("preview")):parent.document.getElementById("tab-grid").classList.add("preview")},afficherGrid:function(t){localStorage.setItem("afficherGrid",t)}},methods:{setupGrid:function(){var t={column:12,margin:0,cellHeight:SoftSystem.Utils.ConvertVP(0,1,0),verticalMargin:"0vw",static:!1,alwaysShowResizeHandle:this.settings.resize,disableResize:!this.settings.resize};this.grid=GridStack.init(t);var e=this;this.grid.on("resizestop",(function(t,i){e.updateItems(),e.modif=!0})),this.grid.on("dragstop",(function(t,i){e.updateItems(),e.modif=!0})),this.settings.mobile||(SoftSystem.Blocs.HookFormulaire(),SoftSystem.Blocs.ContextMenu())},updateItems:function(){for(var t=this.grid.getGridItems(),e=0;e<t.length;e++){var i=t[e],o=i.getAttribute("data-id"),n={x:i.gridstackNode.x,y:i.gridstackNode.y,w:i.gridstackNode.w,h:i.gridstackNode.h};Vue.set(this.items,o,n)}SoftSystem.Blocs.AdjustFrame()},getHeight:function(t){return void 0!==this.items[t]?this.items[t].h:0},deleteBloc:function(t){t.preventDefault();var e=t.target,i=$(e).closest(".grid-stack-item"),o=i.data("id"),n=window;SoftSystem.Utils.CheckIframe()&&(n=parent);var s=this.settings.url+"delete/"+o+"/?ajax=1",r=this;n.bootbox.confirm("Confirmer la suppression du bloc",(function(t){t&&(r.grid.removeWidget(i[0]),Vue.delete(r.items,o),axios.get(s).then((function(t){r.saveBlocs()})))}))},resetMobile:function(){url=this.settings.url+"reset_mobile/"+this.settings.module+"/"+this.settings.enr+"/",axios.get(url).then((function(t){window.location.reload(!0)}))},getItemsJson:function(){return this.updateItems(),JSON.stringify(this.items)},saveBlocs:function(){var t=this.getItemsJson();document.getElementById("data").value=t,document.getElementById("form_blocs").submit()},utiliserTemplate:function(){var t=parseInt(this.template),e=this.settings.module,i=this.settings.enr,o=this.settings.url+"utiliser-template/"+e+"/"+i+"/"+t+"/?ajax=1";axios.get(o).then((function(t){parent.SoftSystem.Blocs.MarkSubmit(),window.location.reload(!0)}))},creerGabarit:function(t){var e=t.target,i=$(e).data("url"),o=window;SoftSystem.Utils.CheckIframe()&&(o=parent),o.bootbox.prompt({title:"Créer un gabarit pour quel module ? ",inputType:"select",inputOptions:this.settings.modules,value:"",onShown:function(){o.$(".bootbox-input-select").addClass("form-select")},callback:function(t){null!=t&&(i=i.replace("[mod]",t),top.location=i)}})},copierBlocs:function(){var e=parseInt(this.contenuCopie),i=this.settings.module,o=this.settings.enr,n=this.settings.url+"copier-contenus/"+i+"/"+o+"/"+e+"/?ajax=1",s=window;SoftSystem.Utils.CheckIframe()&&(s=parent),e>0&&s.bootbox.confirm({title:"Copier blocs d'une autre page",message:'<label style="color:red;text-decoration: underline;">ATTENTION !</label> Cette action supprimera tout le contenu de votre page actuelle pour le remplacer avec le contenu d\'une autre page.<br/><br/>Ãtes-vous vraiment sûr ?',buttons:{confirm:{label:"Oui",className:"btn-success"},cancel:{label:"Non",className:"btn-warning"}},callback:function(t){t?axios.get(n).then((function(t){window.location.reload(!0)})):$("#select_contenus").val(0)}}).css(t({"font-weight":"bold",color:"#FFF","font-size":"1.2em"},"font-weight","bold"))},duplicateTo:function(t){this.urlDuplicate=t.target.href;var e=$("#boite_duplicate").html();$(t.target).next(".boite_duplicate_unique").html(e).show()}
1,copierVersSelect:function(t){var e=$(t).siblings("select").first().val(),i=this.urlDuplicate;0!=e&&(i=i+e+"/?ajax=1",$(".boite_duplicate_unique").hide(),axios.get(i).then((function(t){var e=window;SoftSystem.Utils.CheckIframe()&&(e=parent),e.bootbox.confirm({message:"Bloc copié, voulez-vous aller sur la page sélectionnée ?",buttons:{confirm:{label:"Oui",className:"btn-success"},cancel:{label:"Non",className:"btn-warning"}},callback:function(i){i&&(e.location.href="../"+t.data.id)}})})))},openFancybox:function(t,e){return t.stopImmediatePropagation(),$(".contextMenu").length>0&&$(".contextMenu, .contextMenu-trigger").fadeOut(),!SoftSystem.Utils.CheckIframe()||(t.preventDefault(),"undefined"==typeof url&&(e=t.target.getAttribute("href")),parent.$.fancybox.open({padding:0,href:e,type:"iframe",width:"95%",height:"95%",autoSize:!1}),!1)},clickEdit:function(t){var e=$(t.target);e.hasClass("grid-stack-item")||(e=e.closest(".grid-stack-item")),$(e).find(".bloc_edit").first()[0].click()},devMode:function(){return SoftSystem.Utils.CheckIframe()?parent.cfg.devMode:cfg.devMode}}})},SoftSystem.Blocs.HookFormulaire=function(){if(SoftSystem.Utils.CheckIframe()){var t=$(".iframe_bloc",parent.document),e=t.prop("id"),i=t.closest("form").prop("id"),o=i+"_blocs",n=parent.document.getElementById(o);null==n&&((n=parent.document.createElement("input")).setAttribute("type","hidden"),n.setAttribute("name","blocs"),n.setAttribute("id",o)),parent.document.getElementById(i).appendChild(n);var s=$("#grid_site").height();SoftSystem.Blocs.AdjustFrame(e,s),$(window.parent,window.parent.document).on("scroll",(function(){SoftSystem.Blocs.AdjustHeaderBar()}))}},SoftSystem.Blocs.AdjustHeaderBar=function(){var t=$(".iframe_bloc",parent.document),e=$(window.parent.document),i=$(".topnav",parent.document),o=$("#config-header"),n=t.offset().top,s=e.scrollTop(),r=$(i[0]).height(),a=parseInt(n-s-r);a<0?(a=Math.abs(a),o.css("top",a+"px")):o.css("top","0px")},SoftSystem.Blocs.TriggerSave=function(t,e){var i=document.getElementById(t).contentWindow.SoftSystem.Blocs.VueApp.getItemsJson(),o=e+"_blocs";document.getElementById(o).value=i},SoftSystem.Blocs.ContextMenu=function(){$("#grid_site").on("contextmenu",(function(t){t.preventDefault(),$(".contextMenu").css("left",t.pageX).css("top",t.pageY).fadeIn(150),$(".contextMenu-trigger").show()})),$(".contextMenu-trigger").on("click",(function(t){t.preventDefault(),$(".contextMenu").fadeOut(),$(".contextMenu-trigger").hide()}))},SoftSystem.Blocs.AdjustFrame=function(){var t=$("#grid_site").height();if(0==t?t=750:t+=250,SoftSystem.Utils.CheckIframe()){var e=$(".iframe_bloc",parent.document);$(e).css("height",t+"px")}},SoftSystem.Blocs.CloseDuplicatePopup=function(){$(document).on("click",".boite_duplicate_unique a.fas",(function(t){t.preventDefault(),$(".boite_duplicate_unique").hide()}))},SoftSystem.Blocs.MarkSubmit=function(){var t=$(".iframe_bloc");t.get(0).onload=function(){t.get(0).onload=null,$("#Donnees").submit()}}})();
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.