")})}$aui_doing_init_flatpickr=false;function aui_init_flatpickr(){if(typeof jQuery.fn.flatpickr==="function"&&!$aui_doing_init_flatpickr){$aui_doing_init_flatpickr=true;try{flatpickr.localize({weekdays:{shorthand:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],longhand:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],},months:{shorthand:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],longhand:['January','February','March','April','May','June','July','August','September','October','November','December'],},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:1,ordinal:function(nth){var s=nth%100;if(s>3&&s<21)return"th";switch(s%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:' to ',weekAbbreviation:'Wk',scrollTitle:'Scroll to increment',toggleTitle:'Click to toggle',amPM:['AM','PM'],yearAriaLabel:'Year',hourAriaLabel:'Hour',minuteAriaLabel:'Minute',time_24hr:false})}catch(err){console.log(err.message)}jQuery('input[data-aui-init="flatpickr"]:not(.flatpickr-input)').flatpickr()}$aui_doing_init_flatpickr=false}$aui_doing_init_iconpicker=false;function aui_init_iconpicker(){if(typeof jQuery.fn.iconpicker==="function"&&!$aui_doing_init_iconpicker){$aui_doing_init_iconpicker=true;jQuery('input[data-aui-init="iconpicker"]:not(.iconpicker-input)').iconpicker()}$aui_doing_init_iconpicker=false}function aui_modal_iframe($title,$url,$footer,$dismissible,$class,$dialog_class,$body_class,responsive){if(!$body_class){$body_class='p-0'}var wClass='text-center position-absolute w-100 text-dark overlay overlay-white p-0 m-0 d-none d-flex justify-content-center align-items-center';var $body="",sClass="w-100 p-0 m-0";if(responsive){$body+='
';wClass+=' h-100';sClass+=' embed-responsive-item'}else{wClass+=' vh-100';sClass+=' vh-100'}$body+='
';$body+='
';if(responsive){$body+='
'}$m=aui_modal($title,$body,$footer,$dismissible,$class,$dialog_class,$body_class);jQuery($m).on('shown.bs.modal',function(e){iFrame=jQuery('#embedModal-iframe');jQuery('.ac-preview-loading').addClass('d-flex');iFrame.attr({src:$url});iFrame.load(function(){jQuery('.ac-preview-loading').removeClass('d-flex')})});return $m}function aui_modal($title,$body,$footer,$dismissible,$class,$dialog_class,$body_class){if(!$class){$class=''}if(!$dialog_class){$dialog_class=''}if(!$body){$body=''}jQuery('.aui-modal').modal('hide').modal('dispose').remove();jQuery('.modal-backdrop').remove();var $modal='';$modal+=''+'
'+'
';if($title){$modal+=''}$modal+='
'+$body+'
';if($footer){$modal+=''}$modal+='
'+'
'+'
';jQuery('body').append($modal);return jQuery('.aui-modal').modal('hide').modal({})}function aui_conditional_fields(form){jQuery(form).find(".aui-conditional-field").each(function(){var $element_require=jQuery(this).data('element-require');if($element_require){$element_require=$element_require.replace("'","'");$element_require=$element_require.replace(""",'"');if(aui_check_form_condition($element_require,form)){jQuery(this).removeClass('d-none')}else{jQuery(this).addClass('d-none')}}})}function aui_check_form_condition(condition,form){if(form){condition=condition.replace(/\(form\)/g,"('"+form+"')")}return new Function("return "+condition+";")()}jQuery.fn.aui_isOnScreen=function(){var win=jQuery(window);var viewport={top:win.scrollTop(),left:win.scrollLeft()};viewport.right=viewport.left+win.width();viewport.bottom=viewport.top+win.height();var bounds=this.offset();bounds.right=bounds.left+this.outerWidth();bounds.bottom=bounds.top+this.outerHeight();return(!(viewport.rightbounds.right||viewport.bottombounds.bottom))};function aui_carousel_maybe_show_multiple_items($carousel){var $items={};var $item_count=0;if(!jQuery($carousel).find('.carousel-inner-original').length){jQuery($carousel).append(''+jQuery($carousel).find('.carousel-inner').html()+'
')}jQuery($carousel).find('.carousel-inner-original .carousel-item').each(function(){$items[$item_count]=jQuery(this).html();$item_count++});if(!$item_count){return}if(jQuery(window).width()<=576){if(jQuery($carousel).find('.carousel-inner').hasClass('aui-multiple-items')&&jQuery($carousel).find('.carousel-inner-original').length){jQuery($carousel).find('.carousel-inner').removeClass('aui-multiple-items').html(jQuery($carousel).find('.carousel-inner-original').html());jQuery($carousel).find(".carousel-indicators li").removeClass("d-none")}}else{var $md_count=jQuery($carousel).data('limit_show');var $new_items='';var $new_items_count=0;var $new_item_count=0;var $closed=true;Object.keys($items).forEach(function(key,index){if(index!=0&&Number.isInteger(index/$md_count)){$new_items+='';$closed=true}if(index==0||Number.isInteger(index/$md_count)){$active=index==0?'active':'';$new_items+='';$closed=false;$new_items_count++;$new_item_count=0}$new_items+='
'+$items[index]+'
';$new_item_count++});if(!$closed){if($md_count-$new_item_count>0){$placeholder_count=$md_count-$new_item_count;while($placeholder_count>0){$new_items+='
';$placeholder_count--}}$new_items+='
'}jQuery($carousel).find('.carousel-inner').addClass('aui-multiple-items').html($new_items);jQuery($carousel).find('.carousel-item.active img').each(function(){if(real_srcset=jQuery(this).attr("data-srcset")){if(!jQuery(this).attr("srcset"))jQuery(this).attr("srcset",real_srcset)}if(real_src=jQuery(this).attr("data-src")){if(!jQuery(this).attr("srcset"))jQuery(this).attr("src",real_src)}});$hide_count=$new_items_count-1;jQuery($carousel).find(".carousel-indicators li:gt("+$hide_count+")").addClass("d-none")}jQuery(window).trigger("aui_carousel_multiple")}function aui_init_carousel_multiple_items(){jQuery(window).on("resize",function(){jQuery('.carousel-multiple-items').each(function(){aui_carousel_maybe_show_multiple_items(this)})});jQuery('.carousel-multiple-items').each(function(){aui_carousel_maybe_show_multiple_items(this)})}function init_nav_sub_menus(){jQuery('.navbar-multi-sub-menus').each(function(i,obj){if(jQuery(this).hasClass("has-sub-sub-menus")){return true}jQuery(this).addClass('has-sub-sub-menus');jQuery(this).find('.dropdown-menu a.dropdown-toggle').on('click',function(e){var $el=jQuery(this);$el.toggleClass('active-dropdown');var $parent=jQuery(this).offsetParent(".dropdown-menu");if(!jQuery(this).next().hasClass('show')){jQuery(this).parents('.dropdown-menu').first().find('.show').removeClass("show")}var $subMenu=jQuery(this).next(".dropdown-menu");$subMenu.toggleClass('show');jQuery(this).parent("li").toggleClass('show');jQuery(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown',function(e){jQuery('.dropdown-menu .show').removeClass("show");$el.removeClass('active-dropdown')});if(!$parent.parent().hasClass('navbar-nav')){$el.next().addClass('position-relative border-top border-bottom')}return false})})}function aui_lightbox_embed($link,ele){ele.preventDefault();jQuery('.aui-carousel-modal').remove();var $modal='';jQuery('body').append($modal);jQuery('.aui-carousel-modal').modal({});jQuery('.aui-carousel-modal').on('hidden.bs.modal',function(e){jQuery("iframe").attr('src','')});$container=jQuery($link).closest('.aui-gallery');$clicked_href=jQuery($link).attr('href');$images=[];$container.find('.aui-lightbox-image').each(function(){var a=this;var href=jQuery(a).attr('href');if(href){$images.push(href)}});if($images.length){var $carousel='';if($images.length>1){$i=0;$carousel+='
';$container.find('.aui-lightbox-image').each(function(){$active=$clicked_href==jQuery(this).attr('href')?'active':'';$carousel+=' ';$i++});$carousel+=' '}$i=0;$carousel+='
';$container.find('.aui-lightbox-image').each(function(){var a=this;var href=jQuery(a).attr('href');$active=$clicked_href==jQuery(this).attr('href')?'active':'';$carousel+='
';var css_height=window.innerWidth>window.innerHeight?'90vh':'auto';var img=href?jQuery(a).find('img').clone().attr('src',href).attr('sizes','').removeClass().addClass('mx-auto d-block w-auto mw-100 rounded').css('max-height',css_height).get(0).outerHTML:jQuery(a).find('img').clone().removeClass().addClass('mx-auto d-block w-auto mw-100 rounded').css('max-height',css_height).get(0).outerHTML;$carousel+=img;if(jQuery(a).parent().find('.carousel-caption').length){$carousel+=jQuery(a).parent().find('.carousel-caption').clone().removeClass('sr-only').get(0).outerHTML}else if(jQuery(a).parent().find('.figure-caption').length){$carousel+=jQuery(a).parent().find('.figure-caption').clone().removeClass('sr-only').addClass('carousel-caption').get(0).outerHTML}$carousel+='
';$i++});$container.find('.aui-lightbox-iframe').each(function(){var a=this;$active=$clicked_href==jQuery(this).attr('href')?'active':'';$carousel+='
';var css_height=window.innerWidth>window.innerHeight?'95vh':'auto';var url=jQuery(a).attr('href');var iframe='';var img=iframe;$carousel+=img;$carousel+='
';$i++});$carousel+='
';if($images.length>1){$carousel+='
';$carousel+=' ';$carousel+=' ';$carousel+=' ';$carousel+=' '}$carousel+='
';var $close='× ';jQuery('.aui-carousel-modal .modal-content').html($carousel).prepend($close)}}function aui_init_lightbox_embed(){jQuery('.aui-lightbox-image, .aui-lightbox-iframe').off('click').on("click",function(ele){aui_lightbox_embed(this,ele)})}function aui_init_modal_iframe(){jQuery('.aui-has-embed, [data-aui-embed="iframe"]').each(function(e){if(!jQuery(this).hasClass('aui-modal-iframed')&&jQuery(this).data('embed-url')){jQuery(this).addClass('aui-modal-iframed');jQuery(this).on("click",function(e1){aui_modal_iframe('',jQuery(this).data('embed-url'),'',true,'','modal-lg','aui-modal-iframe p-0',true);return false})}})}$aui_doing_toast=false;function aui_toast($id,$type,$title,$title_small,$body,$time,$can_close){if($aui_doing_toast){setTimeout(function(){aui_toast($id,$type,$title,$title_small,$body,$time,$can_close)},500);return}$aui_doing_toast=true;if($can_close==null){$can_close=false}if($time==''||$time==null){$time=3000}if(document.getElementById($id)){jQuery('#'+$id).toast('show');setTimeout(function(){$aui_doing_toast=false},500);return}var uniqid=Date.now();if($id){uniqid=$id}$op="";$tClass='';$thClass='';$icon="";if($type=='success'){$op="opacity:.92;";$tClass='alert alert-success';$thClass='bg-transparent border-0 alert-success';$icon="
"}else if($type=='error'||$type=='danger'){$op="opacity:.92;";$tClass='alert alert-danger';$thClass='bg-transparent border-0 alert-danger';$icon="
"}else if($type=='info'){$op="opacity:.92;";$tClass='alert alert-info';$thClass='bg-transparent border-0 alert-info';$icon="
"}else if($type=='warning'){$op="opacity:.92;";$tClass='alert alert-warning';$thClass='bg-transparent border-0 alert-warning';$icon="
"}if(!document.getElementById("aui-toasts")){jQuery('body').append('')}$toast='';if($type||$title||$title_small){$toast+=''}if($body){$toast+='
'+$body+'
'}$toast+='
';jQuery('.aui-toast-bottom-right').prepend($toast);jQuery('#'+uniqid).toast('show');setTimeout(function(){$aui_doing_toast=false},500)}function aui_init_counters(){const animNum=(EL)=>{if(EL._isAnimated)return;EL._isAnimated=true;let end=EL.dataset.auiend;let start=EL.dataset.auistart;let duration=EL.dataset.auiduration?EL.dataset.auiduration:2000;let seperator=EL.dataset.auisep?EL.dataset.auisep:'';jQuery(EL).prop('Counter',start).animate({Counter:end},{duration:Math.abs(duration),easing:'swing',step:function(now){const text=seperator?(Math.ceil(now)).toLocaleString('en-US'):Math.ceil(now);const html=seperator?text.split(",").map(n=>`${n} `).join(","):text;if(seperator&&seperator!=','){html.replace(',',seperator)}jQuery(this).html(html)}})};const inViewport=(entries,observer)=>{entries.forEach(entry=>{if(entry.isIntersecting)animNum(entry.target)})};jQuery("[data-auicounter]").each((i,EL)=>{const observer=new IntersectionObserver(inViewport);observer.observe(EL)})}function aui_init(){aui_init_counters();init_nav_sub_menus();aui_init_tooltips();aui_init_select2();aui_init_flatpickr();aui_init_iconpicker();aui_init_greedy_nav();aui_time_ago('timeago');aui_init_carousel_multiple_items();aui_init_lightbox_embed();aui_init_modal_iframe()}jQuery(window).on("load",function(){aui_init()});jQuery(function($){var ua=navigator.userAgent.toLowerCase();var isiOS=ua.match(/(iphone|ipod|ipad)/);if(isiOS){var pS=0;pM=parseFloat($('body').css('marginTop'));$(document).on('show.bs.modal',function(){pS=window.scrollY;$('body').css({marginTop:-pS,overflow:'hidden',position:'fixed',})}).on('hidden.bs.modal',function(){$('body').css({marginTop:pM,overflow:'visible',position:'inherit',});window.scrollTo(0,pS)})}});var aui_confirm=function(message,okButtonText,cancelButtonText,isDelete,large){okButtonText=okButtonText||'Yes';cancelButtonText=cancelButtonText||'Cancel';message=message||'Are you sure?';sizeClass=large?'':'modal-sm';btnClass=isDelete?'btn-danger':'btn-primary';deferred=jQuery.Deferred();var $body="";$body+=""+message+" ";$body+="";$body+=""+cancelButtonText+" ";$body+=""+okButtonText+" ";$body+="
";$modal=aui_modal('',$body,'',false,'',sizeClass);return deferred.promise()};function aui_flip_color_scheme_on_scroll($value,$iframe){if(!$value)$value=window.scrollY;var navbar=$iframe?$iframe.querySelector('.color-scheme-flip-on-scroll'):document.querySelector('.color-scheme-flip-on-scroll');if(navbar==null)return;let cs_original=navbar.dataset.cso;let cs_scroll=navbar.dataset.css;if(!cs_scroll&&!cs_original){if(navbar.classList.contains('navbar-light')){cs_original='navbar-light';cs_scroll='navbar-dark'}else if(navbar.classList.contains('navbar-dark')){cs_original='navbar-dark';cs_scroll='navbar-light'}navbar.dataset.cso=cs_original;navbar.dataset.css=cs_scroll}if($value>0){navbar.classList.remove(cs_original);navbar.classList.add(cs_scroll)}else{navbar.classList.remove(cs_scroll);navbar.classList.add(cs_original)}}window.onscroll=function(){aui_set_data_scroll()};function aui_set_data_scroll(){document.documentElement.dataset.scroll=window.scrollY}aui_set_data_scroll();aui_flip_color_scheme_on_scroll(); En cliquant sur ”J’accepte”, vous acceptez l’utilisation des cookies. Nous utilisons les cookies afin de fournir les services et fonctionnalités proposés sur notre site et afin d’améliorer l’expérience de nos utilisateurs. Les cookies sont des données qui sont téléchargés ou stockés sur votre ordinateur ou sur tout autre appareil. Accepter Reject Read More Privacy & Cookies Policy
Commentaires récents