| Server IP : 54.36.91.62 / Your IP : 216.73.217.94 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/lemans/components/com_mymaplocations/assets/js/ |
Upload File : |
(function(c){
c(window.jQuery,window,document)
})(function(c,j,t,u){
c.widget("selectBox.selectBoxIt",{
VERSION:"3.5.0",
options:{
showEffect:"none",
showEffectOptions:{},
showEffectSpeed:"medium",
hideEffect:"none",
hideEffectOptions:{},
hideEffectSpeed:"medium",
showFirstOption:!0,
defaultText:"",
defaultIcon:"",
downArrowIcon:"",
theme:"default",
keydownOpen:!0,
isMobile:function(){
return/iPhone|iPod|iPad|Silk|Android|BlackBerry|Opera Mini|IEMobile/.test(navigator.userAgent||navigator.vendor||j.opera)
},
"native":!1,
aggressiveChange:!1,
selectWhenHidden:!0,
viewport:c(j),
similarSearch:!1,
copyAttributes:["title","rel"],
copyClasses:"button",
nativeMousedown:!1,
customShowHideEvent:!1,
autoWidth:!0,
html:!0,
populate:"",
dynamicPositioning:!0
},
getThemes:function(){
var a=c(this.element).attr("data-theme")||"c";
return{
bootstrap:{
focus:"active",
hover:"",
enabled:"enabled",
disabled:"disabled",
arrow:"caret",
button:"btn",
list:"dropdown-menu",
container:"bootstrap",
open:"open"
},
jqueryui:{
focus:"ui-state-focus",
hover:"ui-state-hover",
enabled:"ui-state-enabled",
disabled:"ui-state-disabled",
arrow:"ui-icon ui-icon-triangle-1-s",
button:"ui-widget ui-state-default",
list:"ui-widget ui-widget-content",
container:"jqueryui",
open:"selectboxit-open"
},
jquerymobile:{
focus:"ui-btn-down-"+a,
hover:"ui-btn-hover-"+a,
enabled:"ui-enabled",
disabled:"ui-disabled",
arrow:"ui-icon ui-icon-arrow-d ui-icon-shadow",
button:"ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-"+a,
list:"ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-"+
a,
container:"jquerymobile",
open:"selectboxit-open"
},
"default":{
focus:"selectboxit-focus",
hover:"selectboxit-hover",
enabled:"selectboxit-enabled",
disabled:"selectboxit-disabled",
arrow:"selectboxit-default-arrow",
button:"selectboxit-btn",
list:"selectboxit-list",
container:"selectboxit-container",
open:"selectboxit-open"
}
}
},
_create:function(a){
var b=this.options.populate;
if(this.element.is("select"))return this.widgetProto=c.Widget.prototype,this.originalElem=this.element[0],this.selectBox=this.element,
this.options.populate&&(this.add&&!a)&&(c.isFunction(b)?this.add(b.call()):this.add(b)),this.selectItems=this.element.find("option"),this.firstSelectItem=this.selectItems.slice(0,1),this.documentHeight=c(t).height(),this.theme=this.getThemes()[this.options.theme]||this.getThemes()["default"],this.currentFocus=0,this.blur=!0,this.textArray=[],this.currentIndex=0,this.currentText="",this.flipped=!1,a||(this.selectBoxStyles=this.selectBox.attr("style")),this.element.hide(),this._createDropdownButton()._createUnorderedList()._copyAttributes()._replaceSelectBox()._addClasses(this.theme)._eventHandlers(),
this.originalElem.disabled&&this.disable&&this.disable(),this._ariaAccessibility&&this._ariaAccessibility(),this._mobile&&this._mobile(),this.options["native"]&&this._applyNativeSelect(),this.triggerEvent("create"),this
},
_createDropdownButton:function(){
var a=this.originalElemId=this.originalElem.id||"",b=this.originalElemValue=this.originalElem.value||"",g=this.originalElemName=this.originalElem.name||"",d=this.options.copyClasses,f=this.selectBox.attr("class")||"";
this.dropdownText=c("<span/>",
{
id:a&&a+"SelectBoxItText",
"class":"selectboxit-text",
unselectable:"on",
text:this.firstSelectItem.text()
}).attr("data-val",b);
this.dropdownImageContainer=c("<span/>",{
"class":"selectboxit-option-icon-container"
});
this.dropdownImage=c("<i/>",{
id:a&&a+"SelectBoxItDefaultIcon",
"class":"selectboxit-default-icon",
unselectable:"on"
});
this.dropdown=c("<span/>",{
id:a&&a+"SelectBoxIt",
"class":"selectboxit "+("button"===d?f:"")+" "+(this.selectBox.prop("disabled")?this.theme.disabled:this.theme.enabled),
name:g,
tabindex:this.selectBox.attr("tabindex")||"0",
unselectable:"on"
}).append(this.dropdownImageContainer.append(this.dropdownImage)).append(this.dropdownText);
this.dropdownContainer=c("<span/>",{
id:a&&a+"SelectBoxItContainer",
"class":"selectboxit-container "+("container"===d?f:"")
}).append(this.dropdown);
return this
},
_createUnorderedList:function(){
var a=this,b,g,d,f,e,k,q,p="",h=a.originalElemId||"",h=c("<ul/>",{
id:h&&h+"SelectBoxItOptions",
"class":"selectboxit-options",
tabindex:-1
}),m,r,l,n;
a.options.showFirstOption||
(a.selectItems=a.selectBox.find("option").slice(1));
a.selectItems.each(function(h){
d=g="";
b=c(this).prop("disabled");
f=c(this).attr("data-icon")||"";
k=(e=c(this).attr("data-iconurl")||"")?"selectboxit-option-icon-url":"";
q=e?"style=\"background-image:url('"+e+"');\"":"";
m=c(this).attr("data-selectedtext");
l=(r=c(this).attr("data-text"))?r:c(this).text();
n=c(this).parent();
n.is("optgroup")&&(g="selectboxit-optgroup-option",0===c(this).index()&&(d='<span class="selectboxit-optgroup-header '+n.first().attr("class")+
'"data-disabled="true">'+n.first().attr("label")+"</span>"));
p+=d+'<li id="'+h+'" data-val="'+this.value+'" data-disabled="'+b+'" class="'+g+" selectboxit-option "+(c(this).attr("class")||"")+'"><a class="selectboxit-option-anchor"><span class="selectboxit-option-icon-container"><i class="selectboxit-option-icon '+f+" "+(k||a.theme.container)+'"'+q+"></i></span>"+(a.options.html?l:a.htmlEscape(l))+"</a></li>";
a.textArray[h]=b?"":l;
this.selected&&(a._setText(a.dropdownText,m||l),a.currentFocus=h)
});
if(a.options.defaultText||a.selectBox.attr("data-text")){
var j=a.options.defaultText||a.selectBox.attr("data-text");
a._setText(a.dropdownText,j);
a.options.defaultText=j
}
h.append(p);
a.list=h;
a.dropdownContainer.append(a.list);
a.listItems=a.list.find("li");
a.listAnchors=a.list.find("a");
a.listItems.first().addClass("selectboxit-option-first");
a.listItems.last().addClass("selectboxit-option-last");
a.list.find("li[data-disabled='true']").not(".optgroupHeader").addClass(a.theme.disabled);
a.dropdownImage.addClass(a.selectBox.attr("data-icon")||
a.options.defaultIcon||a.listItems.eq(a.currentFocus).find("i").attr("class"));
a.dropdownImage.attr("style",a.listItems.eq(a.currentFocus).find("i").attr("style"));
return a
},
_replaceSelectBox:function(){
var a=this.originalElem.id||"",b=this.selectBox.attr("size"),b=this.listSize=b===u?"auto":"0"===b?"auto":+b;
this.selectBox.css("display","none").after(this.dropdownContainer);
this.dropdown.height();
this.downArrow=c("<i/>",{
id:a&&a+"SelectBoxItArrow",
"class":"selectboxit-arrow",
unselectable:"on"
});
this.downArrowContainer=c("<span/>",{
id:a&&a+"SelectBoxItArrowContainer",
"class":"selectboxit-arrow-container",
unselectable:"on"
}).append(this.downArrow);
this.dropdown.append(this.downArrowContainer);
this.listItems.removeClass("selectboxit-selected").eq(this.currentFocus).addClass("selectboxit-selected");
this._realOuterWidth(this.dropdownImageContainer)||this.dropdownImageContainer.remove();
this.options.autoWidth&&(this.dropdown.is(":visible")?this.dropdown.css({
width:"auto"
}).css({
width:this.list.outerWidth(!0)+
this.downArrowContainer.outerWidth(!0)+this.dropdownImage.outerWidth(!0)
}):this.dropdown.css({
width:"auto"
}).css({
width:this._realOuterWidth(this.list)+this._realOuterWidth(this.downArrowContainer)+this._realOuterWidth(this.dropdownImage)
}),this.list.css({
"min-width":this.dropdown.width()
}));
this.dropdownText.css({
"max-width":this.dropdownContainer.width()-(this.downArrowContainer.outerWidth(!0)+this.dropdownImage.outerWidth(!0))
});
"number"===c.type(b)&&(this.maxHeight=this.listAnchors.outerHeight(!0)*
b);
return this
},
_scrollToView:function(a){
var b=this.listItems.eq(this.currentFocus),c=this.list.scrollTop(),d=b.height(),b=b.position().top,f=Math.abs(b),e=this.list.height();
"search"===a?e-b<d?this.list.scrollTop(c+(b-(e-d))):-1>b&&this.list.scrollTop(b-d):"up"===a?-1>b&&this.list.scrollTop(c-f):"down"===a&&e-b<d&&this.list.scrollTop(c+(f-e+d));
return this
},
_callbackSupport:function(a){
c.isFunction(a)&&a.call(this,this.dropdown);
return this
},
_setText:function(a,b){
this.options.html?a.html(b):a.text(b);
return this
},
open:function(a){
var b=this,c=b.options.showEffect,d=b.options.showEffectSpeed,f=b.options.showEffectOptions,e=b.options["native"],k=b.options.isMobile();
if(!b.listItems.length||b.dropdown.hasClass(b.theme.disabled))return b;
if(!e&&!k&&!this.list.is(":visible")){
b.triggerEvent("open");
b._dynamicPositioning&&b.options.dynamicPositioning&&b._dynamicPositioning();
if("none"===c)b.list.show();
else if("show"===c||"slideDown"===c||"fadeIn"===c)b.list[c](d);else b.list.show(c,f,d);
b.list.promise().done(function(){
b._scrollToView("search")
})
}
b._callbackSupport(a);
return b
},
close:function(a){
var b=this.options.hideEffect,c=this.options.hideEffectSpeed,d=this.options.hideEffectOptions,f=this.options["native"],e=this.options.isMobile();
if(!f&&!e&&this.list.is(":visible"))if(this.triggerEvent("close"),"none"===b)this.list.hide();
else if("hide"===b||"slideUp"===b||"fadeOut"===b)this.list[b](c);else this.list.hide(b,d,c);
this._callbackSupport(a);
return this
},
toggle:function(){
var a=this.list.is(":visible");
a?this.close():a||this.open()
},
_keyMappings:{
38:"up",
40:"down",
13:"enter",
8:"backspace",
9:"tab",
32:"space",
27:"esc"
},
_keydownMethods:function(){
var a=this,b=a.list.is(":visible")||!a.options.keydownOpen;
return{
down:function(){
a.moveDown&&b&&a.moveDown()
},
up:function(){
a.moveUp&&b&&a.moveUp()
},
enter:function(){
var b=a.listItems.eq(a.currentFocus);
a._update(b);
"true"!==b.attr("data-preventclose")&&a.close();
a.triggerEvent("enter")
},
tab:function(){
a.triggerEvent("tab-blur");
a.close()
},
backspace:function(){
a.triggerEvent("backspace")
},
esc:function(){
a.close()
}
}
},
_eventHandlers:function(){
var a=this,b=a.options.nativeMousedown,g=a.options.customShowHideEvent,d,f,e=a.focusClass,k=a.hoverClass,j=a.openClass;
this.dropdown.on({
"click.selectBoxIt":function(){
a.dropdown.trigger("focus",!0);
a.originalElem.disabled||(a.triggerEvent("click"),!b&&!g&&a.toggle())
},
"mousedown.selectBoxIt":function(){
c(this).data("mdown",!0);
a.triggerEvent("mousedown");
b&&!g&&a.toggle()
},
"mouseup.selectBoxIt":function(){
a.triggerEvent("mouseup")
},
"blur.selectBoxIt":function(){
a.blur&&
(a.triggerEvent("blur"),a.close(),c(this).removeClass(e))
},
"focus.selectBoxIt":function(b,d){
var m=c(this).data("mdown");
c(this).removeData("mdown");
!m&&!d&&setTimeout(function(){
a.triggerEvent("tab-focus")
},0);
d||(c(this).hasClass(a.theme.disabled)||c(this).addClass(e),a.triggerEvent("focus"))
},
"keydown.selectBoxIt":function(b){
var c=a._keyMappings[b.keyCode],d=a._keydownMethods()[c];
d&&(d(),a.options.keydownOpen&&("up"===c||"down"===c)&&a.open());
d&&"tab"!==c&&b.preventDefault()
},
"keypress.selectBoxIt":function(b){
var c=
a._keyMappings[b.charCode||b.keyCode],d=String.fromCharCode(b.charCode||b.keyCode);
a.search&&(!c||c&&"space"===c)&&a.search(d,!0,!0);
"space"===c&&b.preventDefault()
},
"mouseenter.selectBoxIt":function(){
a.triggerEvent("mouseenter")
},
"mouseleave.selectBoxIt":function(){
a.triggerEvent("mouseleave")
}
});
a.list.on({
"mouseover.selectBoxIt":function(){
a.blur=!1
},
"mouseout.selectBoxIt":function(){
a.blur=!0
},
"focusin.selectBoxIt":function(){
a.dropdown.trigger("focus",!0)
}
});
a.list.on({
"click.selectBoxIt":function(){
a._update(c(this));
a.triggerEvent("option-click");
"false"===c(this).attr("data-disabled")&&"true"!==c(this).attr("data-preventclose")&&a.close()
},
"focusin.selectBoxIt":function(){
a.listItems.not(c(this)).removeAttr("data-active");
c(this).attr("data-active","");
var b=a.list.is(":hidden");
(a.options.searchWhenHidden&&b||a.options.aggressiveChange||b&&a.options.selectWhenHidden)&&a._update(c(this));
c(this).add(c(this).find(".selectboxit-option-anchor")).addClass(e)
},
"mouseup.selectBoxIt":function(){
b&&!g&&(a._update(c(this)),
a.triggerEvent("option-mouseup"),"false"===c(this).attr("data-disabled")&&"true"!==c(this).attr("data-preventclose")&&a.close())
},
"mouseenter.selectBoxIt":function(){
"false"===c(this).attr("data-disabled")&&(a.listItems.removeAttr("data-active"),c(this).addClass(e).attr("data-active",""),a.listItems.not(c(this)).add(a.listAnchors.not(c(this).find(".selectboxit-option-anchor"))).removeClass(e),c(this).add(c(this).find(".selectboxit-option-anchor")).addClass(e),a.currentFocus=+c(this).attr("id"))
},
"mouseleave.selectBoxIt":function(){
"false"===c(this).attr("data-disabled")&&(a.listItems.not(c(this)).removeClass(e).removeAttr("data-active"),c(this).add(c(this).find(".selectboxit-option-anchor")).addClass(e),a.currentFocus=+c(this).attr("id"))
},
"blur.selectBoxIt":function(){
c(this).add(c(this).find(".selectboxit-option-anchor")).removeClass(e)
}
},".selectboxit-option");
a.selectBox.on({
"change.selectBoxIt, internal-change.selectBoxIt":function(b,c){
var e,g;
c||(e=a.list.find('li[data-val="'+a.originalElem.value+
'"]'),e.length&&(a.listItems.eq(a.currentFocus).removeClass(a.focusClass),a.currentFocus=+e.attr("id")));
e=a.listItems.eq(a.currentFocus);
g=e.attr("data-selectedtext");
f=(d=e.attr("data-text"))?d:e.find("a").text();
a._setText(a.dropdownText,g||f);
a.dropdownText.attr("data-val",a.originalElem.value);
e.find("i").attr("class")&&(a.dropdownImage.attr("class",e.find("i").attr("class")).addClass("selectboxit-default-icon"),a.dropdownImage.attr("style",e.find("i").attr("style")));
a.triggerEvent("changed")
},
"disable.selectBoxIt":function(){
a.dropdown.addClass(a.theme.disabled)
},
"enable.selectBoxIt":function(){
a.dropdown.removeClass(a.theme.disabled)
},
"open.selectBoxIt":function(){
var b=a.list.find("li[data-val='"+a.dropdownText.attr("data-val")+"']");
b.length||(b=0===a.currentFocus&&!a.options.showFirstOption&&a.listItems.eq(0).hasClass(a.theme.disabled)?a.listItems.not("[data-disabled=true]").first():a.listItems.first());
a.currentFocus=+b.attr("id");
b=a.listItems.eq(a.currentFocus);
a.dropdown.addClass(j).removeClass(k).addClass(e);
a.listItems.removeClass(a.selectedClass).removeAttr("data-active").not(b).add(a.listAnchors.not(b.find(".selectboxit-option-anchor"))).removeClass(e);
b.addClass(a.selectedClass).add(b.find(".selectboxit-option-anchor")).addClass(e)
},
"close.selectBoxIt":function(){
a.dropdown.removeClass(j)
},
"blur.selectBoxIt":function(){
a.dropdown.removeClass(e)
},
"mouseenter.selectBoxIt":function(){
c(this).hasClass(a.theme.disabled)||a.dropdown.addClass(k)
},
"mouseleave.selectBoxIt":function(){
a.dropdown.removeClass(k)
}
});
return a
},
_update:function(a){
var b,c=this.options.defaultText||this.selectBox.attr("data-text"),d=this.listItems.eq(this.currentFocus);
"false"===a.attr("data-disabled")&&(this.listItems.eq(this.currentFocus).attr("data-selectedtext"),(b=d.attr("data-text"))||d.text(),(c&&this.options.html?this.dropdownText.html()===c:this.dropdownText.text()===c)&&this.selectBox.val()===a.attr("data-val")?this.triggerEvent("change"):(this.selectBox.val(a.attr("data-val")),this.currentFocus=+a.attr("id"),this.originalElem.value!==
this.dropdownText.attr("data-val")&&this.triggerEvent("change")))
},
_addClasses:function(a){
this.focusClass=a.focus;
this.hoverClass=a.hover;
var b=a.button,c=a.list,d=a.arrow,f=a.container;
this.openClass=a.open;
this.selectedClass="selectboxit-selected";
this.downArrow.addClass(this.selectBox.attr("data-downarrow")||this.options.downArrowIcon||d);
this.dropdownContainer.addClass(f);
this.dropdown.addClass(b);
this.list.addClass(c);
return this
},
refresh:function(a){
this._destroySelectBoxIt()._create(!0)._callbackSupport(a).triggerEvent("refresh");
return this
},
htmlEscape:function(a){
return String(a).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")
},
triggerEvent:function(a){
this.selectBox.trigger(a,{
selectbox:this.selectBox,
selectboxOption:this.selectItems.eq(this.options.showFirstOption?this.currentFocus:0<=this.currentFocus-1?this.currentFocus:0),
dropdown:this.dropdown,
dropdownOption:this.listItems.eq(this.currentFocus)
});
return this
},
_copyAttributes:function(){
this._addSelectBoxAttributes&&
this._addSelectBoxAttributes();
return this
},
_realOuterWidth:function(a){
if(a.is(":visible"))return a.outerWidth(!0);
a=a.clone();
var b;
a.css({
visibility:"hidden",
display:"block",
position:"absolute"
}).appendTo("body");
b=a.outerWidth(!0);
a.remove();
return b
}
});
var s=c.selectBox.selectBoxIt.prototype;
s._applyNativeSelect=function(){
var a=this,b,c,d;
a.dropdownContainer.append(a.selectBox);
a.selectBox.css({
display:"block",
width:a.dropdown.outerWidth(),
height:a.dropdown.outerHeight(),
opacity:"0",
position:"absolute",
top:"0",
left:"0",
cursor:"pointer",
"z-index":"999999",
margin:a.dropdown.css("margin"),
padding:"0",
"-webkit-appearance":"menulist-button"
}).on({
"changed.selectBoxIt":function(){
b=a.selectBox.find("option").filter(":selected");
d=(c=b.attr("data-text"))?c:b.text();
a._setText(a.dropdownText,d);
a.list.find('li[data-val="'+b.val()+'"]').find("i").attr("class")&&a.dropdownImage.attr("class",a.list.find('li[data-val="'+b.val()+'"]').find("i").attr("class")).addClass("selectboxit-default-icon")
}
})
};
s._mobile=
function(){
this.options.isMobile()&&this._applyNativeSelect();
return this
}
});