Object.size=function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b};String.prototype.id4jquery=function(){return this.replace(/\./g,"\\.")};function nz(a,b){return"undefined"==typeof a||null===a?b:a}function msgDebug(a,b){try{"undefined"!=typeof console&&console.log&&("undefined"!=typeof b?console.log(a,b):console.log(a))}catch(c){}}function msgErr(a,b){alert(a);msgDebug(a,b)}var waitForFinalEvent=function(){var a={};return function(b,c,d){a[d]&&clearTimeout(a[d]);a[d]=setTimeout(b,c)}}();
(function(a){a.fn.initListItems=function(b,c){""==nz(c,"")?this.data(b+"Items",a()):this.data(b+"Items",this.find(c))}})(jQuery);
var waiting={obj:null,getObj:function(b){return $('')},setTxt:function(b,a){b=b.children().children("p");""==nz(a,"")?b.empty().hide():b.html(a).show()},show:function(b,a,e){!0===e&&b.empty();"undefined"==typeof b&&(b=$("body"));null===this.obj&&(this.obj=this.getObj());this.setTxt(this.obj,a);b.append(this.obj)},hide:function(){null!==this.obj&&this.obj.detach()}},objDivToStrip=document.createElement("DIV");
function stripHtml(b){objDivToStrip.innerHTML=b;return objDivToStrip.innerText}function callDefaultFct(b){var a=callDefaultFct.caller.name;a=a.substring(0,a.length-5);"undefined"==typeof b?b=[]:Array.isArray(b)||(b=[b]);return window[a].apply(this,b)}function callHookOrFct(b,a){"undefined"==typeof a?a=[]:Array.isArray(a)||(a=[a]);return"function"===typeof window[b+"_hook"]?window[b+"_hook"].apply(this,a):window[b].apply(this,a)}
function initChildFields(b){var a='input[typ="phone"]';b.find(a).addBack(a).attr("pattern",'"^((+d{1,3}(-| )?(?d)?(-| )?d{1,5})|((?d{2,6})?))(-| )?(d{3,4})(-| )?(d{4})(( x| ext)d{1,5}){0,1}$"');a="select[value],.process > input";b.find(a).addBack(a).each(function(d,c){c=$(c);d=nz(c.attr("value"),"");c.parent().hasClass("process")?(c.siblings("div.selected").removeClass("selected"),c.siblings('div[value="'+d+'"]').addClass("selected")):(c.children("option[selected]").removeAttr("selected"),c.children('option[value="'+
d+'"]').attr("selected",!0))});a=":checkbox[value]";b.find(a).addBack(a).each(function(d,c){c=$(c);"F"==nz(c.attr("value"),"T")?c.removeAttr("checked"):c.attr("checked",!0)});a="input[name]:not([oldval]),textarea[name]:not([oldval]),select[name]:not([oldval])";a=b.find(a).addBack(a);a.each(function(d,c){c=$(c);c.attr("oldval",getFieldVal(c))});a.filter(":not(input)").change(onModifyInput);a.filter('input:not([type="date"])').change(onModifyInput);a.filter('input[type="date"]').blur(onModifyInput);
a=".editor";a=b.find(a).addBack(a);a.parent().css("position","relative");a.click(function(d){d.stopImmediatePropagation();"function"===typeof window.appEditorClick&&appEditorClick.call(d.target)}).on("focus",function(){var d=$(this);d.parents(".extend_form,.extend_grid").first().find(".btn.emoji").hide();d.siblings(".btn.emoji").show();d.data("modify",!1)}).on("paste input",function(d){$(this).data("modify",!0);if("paste"==d.type){d.preventDefault();clipboardData=d.originalEvent.clipboardData||d.clipboardData||
window.clipboardData;d=clipboardData.getData("text/plain").split("\n");for(var c,f=0,g=d.length;f div, .process[ro="F"] > div';b.find(a).addBack(a).click(function(d){d.stopImmediatePropagation();
var c=$(this);d=c.siblings('input[type="hidden"]');c=c.parent().hasClass("process")?c.attr("value"):c.hasClass("switchOn")?"T":"F";c!=getFieldVal(d)&&d.val(c).trigger("change")});$.fn.animateVisibleItems&&b.animateVisibleItems();a="form:not([data-data]):not([action])[data-action]";b.find(a).addBack(a).each(function(d,c){c=$(c);c.attr("action",c.attr("data-action")).removeAttr("data-action")});a="#menu_burger";window.hasOwnProperty("burgerClick")&&b.find(a).addBack(a).click(burgerClick);window.setTimeout(function(){b.find("[data-default]").addBack("[data-default]").each(function(c,
f){""!=context.defaultNav?(c=b.find("#"+context.defaultNav),context.defaultNav="",0 .blk").find(".nav[data-data]");a=":not(.nav)[data-data]";b.find(a).addBack(a).each(function(d,c){d=$(c).attr("data-data");d=e.filter('[data-data="'+d+'"]');0objOnLoad.nbrWait++){window.setTimeout(function(){switchContent(b,a,e,d)},300);return}return alert("Chargement en cours, veuillez r\u00e9essayer")}objOnLoad.nbrWait=0;objOnLoad.callbackAfter=d;objOnLoad.contTyp=nz(a.attr("data-typ"),"UNKNOW");objOnLoad.objContainer=a;objOnLoad.tabCompToInit=[];if("PAGE"==objOnLoad.contTyp)objOnLoad.objContainer.children(".page").trigger("unload").remove();else if("STK"==objOnLoad.contTyp||null!=click.action&&
"popup"==click.action[0]){if(objOnLoad.objContainer.children(":visible").hide(),0a[e].length?click.id:a[e][2]):b.ctx[c]=null)}}c=
(click.objNav.hasClass("ctnr")?click.objNav:click.objNav.parents(".ctnr")).first();f=JSON.parse(click.objNav.attr("data-nav"));e=0;for(d=f.length;eEn savoir plus').click(function(e){e.preventDefault();e.stopImmediatePropagation();var d=$(this),c=$(this).parent().children("p").first(),f=c.html();c.load("/core/txt/rgpd."+context.version+".html",{},function(){c.prepend($("").html(f));d.hide()})}),a=$("").click(function(){document.cookie=
"RGPD=true; path=/; SameSite=Strict; max-age=31536000";$("#rgpd").hide()});$(document.body).append($('').append(a).append(b).append($("").html(context.rgpd)))}$(document).click(function(e){var d=$(e.target);if(!(d.is("input,textarea,select,option")||(click.objSrc=d,click.objId=void 0==click.objSrc.attr("idrow")&&void 0==click.objSrc.attr("data-nav")?click.objSrc.parents("[idrow],[data-nav]").first():click.objSrc,click.id=nz(click.objId.attr("idrow"),""),click.objSrc.is("img")&&
click.objSrc.parent().parent().hasClass("fileUpload"))||!click.objSrc.is("img")&&click.objSrc.parent().hasClass("docUpload"))){var c=click.objSrc;checkAction(e,c)||click.objSrc.parents().each(function(f,g){c=$(g);return!checkAction(e,c)})}});objOnLoad.contTyp="PAGE";objOnLoad.objContainer=$("body");objOnLoad.tabCompToInit=[];objOnLoad.objNew=$("body > .page");afterContentLoaded()});
function checkAction(b,a){if(a.hasClass("page")||"body"==a.prop("tagName").toLowerCase())return!0;if(void 0!=a.attr("data-action")&&(a.is("button,img")||a.hasClass("link")))return"a"!=a.prop("tagName").toLowerCase()&&b.preventDefault(),execAction(!1,a),!0;if(void 0!=a.attr("data-click"))return"a"!=a.prop("tagName").toLowerCase()&&b.preventDefault(),execClick(b,a),!0;if(a.is("button")||a.hasClass("button")){var e=a.parents("[data-action]").first(),d=a.parent(".toolbar");0==d.length&&(d=e);if(0var objModal,objModalContent,objModalButton,animateEnabled=!1;$(document).ready(function(){objModal=$("#modal");0==objModal.length&&(objModalButton=$('X
'),objModalContent=$('').append(objModalButton),objModal=$('').hide().append(objModalContent),$("body").append(objModal));animateEnabled=void 0!==$("body")[0].style.animationName;$(document.body).append('')});
window.onclick=function(b){b.target==document.getElementById("modal")&&closeModal()};window.onresize=function(b){burgerOnResize()};function closeModal(){objModal.hide()}function showModal(b,c,a){objModalContent.html(waiting.getObj());objModal.show();switchContent(b,objModalContent,c,function(d){d?objModalContent.prepend(objModalButton).fadeIn():(objModalContent.empty(),closeModal());"function"==typeof a&&a.apply(this,[d])})}
function showMsg(b,c){var a=$("#msgPanel");c&&msgDebug(b);a.children(".msg").html(b);a.css({color:c?"red":"#606080",top:4+$(document).scrollTop()});"none"==a.css("display")&&a.slideDown().delay(c?3500:1500).slideUp()}function stdPostFail(b,c,a,d){"abort"!=a&&(msgDebug(["Request Failed",d,c,a]),showMsg("ERREUR : "+a+"\n\n"+c,!0))}
function appendInEditor(b,c){void 0==c&&(c=window.getSelection());for(var a=1,d=c.rangeCount;a
L'Essentiel au Meilleur Prix