function setCookie(e,t,n,o){var a=e+"="+window.escape(t);if(null!=n){var s=new Date,i=new Date;i.setTime(s.getTime()+864e5*n),a+="; expires="+i.toGMTString()}return null!=o&&(a+="; PATH="+o),document.cookie=a,null}function setDatedCookie(e,t,n,o){var a=e+"="+window.escape(t)+(null==n?"":"; expires="+n.toGMTString());return null!=o&&(a+="; PATH="+o),document.cookie=a,null}function getCookie(e){var t=e+"=",n=document.cookie,o=null;if(n.length>0){var a=n.indexOf(t);if(-1!=a){a+=t.length;var s=n.indexOf(";",a);-1==s&&(s=n.length),o=window.unescape(n.substring(a,s))}}return o}function deleteCookie(e,t){setCookie(e,"Deleted",-1,t)}window.unescape=window.unescape||window.decodeURI,window.escape=window.escape||window.encodeURI,function(e){function t(){e('nav div[class^="menu"]').each(function(){var t=e(this).attr("class");if("menu1 menuPos menuOn"===t){var n=e("nav .menu1").height()+a;e(".mask").animate({height:n},"fast")}else if("menu2 menuPos menuOn"===t){var n=e("nav .menu2").height()+a;e(".mask").animate({height:n},"fast")}else if("menu3 menuPos menuOn"===t){var n=e("nav .menu3").height()+a;e(".mask").animate({height:n},"fast")}})}function n(){e(".scrollup").fadeOut()}function o(){e(".scrollup").fadeIn()}var a=e(".holder").height(),s=0;e(".holder").outerHeight(),parseInt(e(".clicker1").css("padding-top"));e(".clicker1").click(function(t){e(".menu1").toggleClass("menuOn").css({"margin-top":-a}).toggleClass("menuPos"),e(".clicker1").toggleClass("active"),e(".topnav-fixed .menuOn").is(":visible")?(s=e(".topnav-fixed .menu1").height(),e(".mask").animate({height:s},"fast")):(s=0,e(".mask").animate({height:s},"fast")),e(".topnav-fixed .menu2").css("top")>"0px"?(e(".menu2").toggleClass("menuOn"),e(".clicker2").toggleClass("active"),e(".menu2").toggleClass("menuPos"),s=e(".topnav-fixed .menu1").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu3").css("top")>"0px"?(e(".menu3").toggleClass("menuOn"),e(".clicker3").toggleClass("active"),e(".menu3").toggleClass("menuPos"),s=e(".topnav-fixed .menu1").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu4").css("top")>"0px"?(e(".menu4").toggleClass("menuOn"),e(".clicker4").toggleClass("active"),e(".menu4").toggleClass("menuPos"),s=e(".topnav-fixed .menu1").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu5").css("top")>"0px"&&(e(".menu5").toggleClass("menuOn"),e(".clicker5").toggleClass("active"),e(".menu5").toggleClass("menuPos"),s=e(".topnav-fixed .menu1").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),t.stopPropagation()}),e(".clicker2").click(function(t){e(".menu2").toggleClass("menuOn").css({"margin-top":-a}).toggleClass("menuPos"),e(".clicker2").toggleClass("active"),e(".topnav-fixed .menuOn").is(":visible")?(s=e(".topnav-fixed .menu2").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):(s=0,e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),e(".topnav-fixed .menu1").css("top")>"0px"?(e(".menu1").toggleClass("menuOn"),e(".clicker1").toggleClass("active"),e(".menu1").toggleClass("menuPos"),s=e(".topnav-fixed .menu2").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu3").css("top")>"0px"?(e(".menu3").toggleClass("menuOn"),e(".clicker3").toggleClass("active"),e(".menu3").toggleClass("menuPos"),s=e(".topnav-fixed .menu2").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu4").css("top")>"0px"?(e(".menu4").toggleClass("menuOn"),e(".clicker4").toggleClass("active"),e(".menu4").toggleClass("menuPos"),s=e(".topnav-fixed .menu2").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu5").css("top")>"0px"&&(e(".menu5").toggleClass("menuOn"),e(".clicker5").toggleClass("active"),e(".menu5").toggleClass("menuPos"),s=e(".topnav-fixed .menu2").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),t.stopPropagation()}),e(".clicker3").click(function(t){e(".menu3").toggleClass("menuOn").css({"margin-top":-a}).toggleClass("menuPos"),e(".clicker3").toggleClass("active"),e(".topnav-fixed .menuOn").is(":visible")?(s=e(".topnav-fixed .menu3").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):(s=0,e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),e(".topnav-fixed .menu1").css("top")>"0px"?(e(".menu1").toggleClass("menuOn"),e(".clicker1").toggleClass("active"),e(".menu1").toggleClass("menuPos"),s=e(".topnav-fixed .menu3").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu2").css("top")>"0px"?(e(".menu2").toggleClass("menuOn"),e(".clicker2").toggleClass("active"),e(".menu2").toggleClass("menuPos"),s=e(".topnav-fixed .menu3").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu4").css("top")>"0px"?(e(".menu4").toggleClass("menuOn"),e(".clicker4").toggleClass("active"),e(".menu4").toggleClass("menuPos"),s=e(".topnav-fixed .menu3").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu5").css("top")>"0px"&&(e(".menu5").toggleClass("menuOn"),e(".clicker5").toggleClass("active"),e(".menu5").toggleClass("menuPos"),s=e(".topnav-fixed .menu3").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),t.stopPropagation()}),e(".clicker4").click(function(t){e(".menu4").toggleClass("menuOn").css({"margin-top":-a}).toggleClass("menuPos"),e(".clicker4").toggleClass("active"),e(".topnav-fixed .menuOn").is(":visible")?(s=e(".topnav-fixed .menu4").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):(s=0,e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),e(".topnav-fixed .menu1").css("top")>"0px"?(e(".menu1").toggleClass("menuOn"),e(".clicker1").toggleClass("active"),e(".menu1").toggleClass("menuPos"),s=e(".topnav-fixed .menu4").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu2").css("top")>"0px"?(e(".menu2").toggleClass("menuOn"),e(".clicker2").toggleClass("active"),e(".menu2").toggleClass("menuPos"),s=e(".topnav-fixed .menu4").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu3").css("top")>"0px"?(e(".menu3").toggleClass("menuOn"),e(".clicker3").toggleClass("active"),e(".menu3").toggleClass("menuPos"),s=e(".topnav-fixed .menu4").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu5").css("top")>"0px"&&(e(".menu5").toggleClass("menuOn"),e(".clicker5").toggleClass("active"),e(".menu5").toggleClass("menuPos"),s=e(".topnav-fixed .menu4").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),t.stopPropagation()}),e(".clicker5").click(function(t){e(".menu5").toggleClass("menuOn").css({"margin-top":-a}).toggleClass("menuPos"),e(".clicker5").toggleClass("active"),e(".topnav-fixed .menuOn").is(":visible")?(s=e(".topnav-fixed .menu5").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):(s=0,e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),e(".topnav-fixed .menu1").css("top")>"0px"?(e(".menu1").toggleClass("menuOn"),e(".clicker1").toggleClass("active"),e(".menu1").toggleClass("menuPos"),s=e(".topnav-fixed .menu5").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu2").css("top")>"0px"?(e(".menu2").toggleClass("menuOn"),e(".clicker2").toggleClass("active"),e(".menu2").toggleClass("menuPos"),s=e(".topnav-fixed .menu5").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu3").css("top")>"0px"?(e(".menu3").toggleClass("menuOn"),e(".clicker3").toggleClass("active"),e(".menu3").toggleClass("menuPos"),s=e(".topnav-fixed .menu5").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")):e(".topnav-fixed .menu4").css("top")>"0px"&&(e(".menu4").toggleClass("menuOn"),e(".clicker4").toggleClass("active"),e(".menu4").toggleClass("menuPos"),s=e(".topnav-fixed .menu5").height(),e(".mask").toggleClass("border-bottom").animate({height:s},"fast")),t.stopPropagation()}),e(".mask").click(function(e){e.stopPropagation()}),e("html, body, #container").click(function(t){if(e(".topnav-fixed .menu1").css("top")>"0px"){e(".menu1").toggleClass("menuOn"),e(".clicker1").toggleClass("active"),e(".menu1").toggleClass("menuPos");var n=0;e(".mask").toggleClass("border-bottom").animate({height:n},"fast"),t.stopPropagation()}else if(e(".topnav-fixed .menu2").css("top")>"0px"){e(".menu2").toggleClass("menuOn"),e(".clicker2").toggleClass("active"),e(".menu2").toggleClass("menuPos");var n=0;e(".mask").toggleClass("border-bottom").animate({height:n},"fast"),t.stopPropagation()}else if(e(".topnav-fixed .menu3").css("top")>"0px"){e(".menu3").toggleClass("menuOn"),e(".clicker3").toggleClass("active"),e(".menu3").toggleClass("menuPos");var n=0;e(".mask").toggleClass("border-bottom").animate({height:n},"fast"),t.stopPropagation()}else if(e(".topnav-fixed .menu4").css("top")>"0px"){e(".menu4").toggleClass("menuOn"),e(".clicker4").toggleClass("active"),e(".menu4").toggleClass("menuPos");var n=0;e(".mask").toggleClass("border-bottom").animate({height:n},"fast"),t.stopPropagation()}}),"ontouch"in document&&e("#container").bind("touchend",function(){return!1});var i;e(window).bind("resize",function(){clearTimeout(i),i=setTimeout(t,100)});var l={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return l.Android()||l.BlackBerry()||l.iOS()||l.Opera()||l.Windows()}};if(!function(){return!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect}()||l.Android()&&l.Opera()){document.documentElement.className=document.documentElement.className.replace(/\bsvg\b/g,"no-svg");for(var c=document.getElementsByTagName("img"),r=/.*\.svg$/,m=0;m!=c.length;++m)c[m].src.match(r)&&(c[m].src=c[m].src.slice(0,-3)+"png")}var u=window.navigator.userAgent,g=parseFloat(u.slice(u.indexOf("Android")+8));u.indexOf("Android")>=0&&g<=3||u.match(/IEMobile/i)&&u.match(/MSIE\s(?!9.0)/)||u.indexOf("BlackBerry")>=0&&u.indexOf("WebKit")>=0?(e(".topnav-fixed").addClass("nav-float"),e(".page-head .site-logo").addClass("not-fixed")):e(".topnav-fixed").addClass("nav-fixed"),u.match(/iPhone|iPad|iPod/i)&&(e("input, select, option").bind("focus",function(t){e(".topnav-fixed").removeClass("nav-fixed").addClass("nav-absolute"),e("html, body").animate({})}),e("input, select, option").bind("blur",function(t){e(".topnav-fixed").removeClass("nav-absolute").addClass("nav-fixed")})),"placeholder"in document.createElement("input")||(e("input[placeholder], textarea[placeholder]").each(function(){var t=e(this).attr("placeholder");""==this.value&&(this.value=t),e(this).focus(function(){this.value==t&&(this.value="")}).blur(function(){""==e.trim(this.value)&&(this.value=t)})}),e("form").submit(function(){e(this).find("input[placeholder], textarea[placeholder]").each(function(){this.value==e(this).attr("placeholder")&&(this.value="")})})),e("#search-relevance select.select").each(function(){var t=e(this).attr("title");""!=e("option:selected",this).val()&&(t=e("option:selected",this).text()),e(this).addClass("customise").after(''+t+"").change(function(){var t=e("option:selected",this).text();e(this).next().text(t)})});e(".pagination-holder a.prev_page, .pagination-holder a.next_page").html(" "),e("#content").on("DOMNodeInserted ",".about-author iframe",function(){e(this).css({float:"left",width:"55%"})});var d=(new Date).getFullYear();e(".copyright-truncated .current-year, .copyright-full .current-year").text(d),e(function(){e("#content article p:empty").remove()});var h=function(){var e=document.documentElement,t=e.scrollTop++,n=e.scrollTop==t+1?e:document.body;return e.scrollTop=t,n}(),f=.85*(document.body.scrollHeight-e(window).height()),p=!1,v=(new Date,!1);e(window).scroll(function(){v=!0}),setInterval(function(){v&&(v=!1,p&&h.scrollTopf&&(o(),p=!0))},30),e(".scrollup").click(function(){return e("html, body").animate({scrollTop:0},600),!1});var C=navigator.appVersion;-1===C.indexOf("MSIE 9.0")&&-1===C.indexOf("MSIE 8.0")&&-1===C.indexOf("MSIE 7.0")||(document.documentElement.className=document.documentElement.className.match(/\bno-svg\b|\bsvg\b/g)+" lt-ie9")}(jQuery),$(document).ready(function(){}),$.fn.serializeObject=function(){var e={},t=this.serializeArray();return $.each(t,function(){void 0!==e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""}),e};var cb=function(){},raf=requestAnimationFrame||mozRequestAnimationFrame||webkitRequestAnimationFrame||msRequestAnimationFrame;raf?raf(cb):window.addEventListener("load",cb),$(document).ready(function(){function e(){"use strict";$.AdminLTE.boxWidget={selectors:$.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,icons:$.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,animationSpeed:$.AdminLTE.options.animationSpeed,activate:function(e){var t=this;e||(e=document),$(e).on("click",t.selectors.collapse,function(e){e.preventDefault(),t.collapse($(this))}),$(e).on("click",t.selectors.remove,function(e){e.preventDefault(),t.remove($(this))})},collapse:function(e){var t=this,n=e.parents(".box").first(),o=n.find("> .box-body, > .box-footer, > form >.box-body, > form > .box-footer");n.hasClass("collapsed-box")?(e.children(":first").removeClass(t.icons.open).addClass(t.icons.collapse),o.slideDown(t.animationSpeed,function(){n.removeClass("collapsed-box")})):(e.children(":first").removeClass(t.icons.collapse).addClass(t.icons.open),o.slideUp(t.animationSpeed,function(){n.addClass("collapsed-box")}))},remove:function(e){e.parents(".box").first().slideUp(this.animationSpeed)}}}function t(){var e=window.innerHeight,t=parseInt($("#main-container").height(),10),n=$("#content").height(),o=n+e-t;t header").length>0&&(n=!0),$(".content-inner > section > header").length>0&&(n=!0),$(".content-inner > article > header").length>0&&(n=!0),n||$(".col-left, .col-right").addClass("no-header"),$(".user-action-inline").addClass("label label-info"),$(".user-action-inline-old").addClass("label label-danger"),$(".user-action-inline, .user-action-inline-old").parent(":not(.user-action-container)").css({position:"relative"}),t(),$(window).on("resize",function(){t()})});var allCookies=document.cookie;$(document).ready(function(){!function(e){e.fn.shuffle_banners=function(){var t=this.get(),n=function(e){return Math.floor(Math.random()*e)},o=e.map(t,function(){var o=n(t.length),a=e(t[o]).clone(!0)[0];return t.splice(o,1),a});return this.each(function(t){e(this).replaceWith(e(o[t]))}),e(o)}}(jQuery);var e=$(".shuffle-banners");_.each(e,function(e,t){var n=$(e),o={};_.each($(n).find(".shuffle-banner"),function(e){var t=$(e).data("shuffle_group");void 0==o[t]&&(o[t]=[]),o[t].push($(e).find(">:first-child"))}),_.each(o,function(e,t){$('.shuffle-banner[data-shuffle_group="'+t+'"]').shuffle_banners()})})}),function(e,t,n){function o(n,o){function a(){l(0,0),v.attr("src",n.src),i()}function s(){u=this.clientWidth||v.width(),g=this.clientHeight||v.height(),i()}function i(){l(0,0),v.css({visibility:"visible"}),"function"==typeof d.oncreate&&d.oncreate.call(n,v,p)}function l(e,t){var n=c(e,O,C,u),o=c(t,k,b,g);v.css("transform","translate("+n+"px, "+o+"px)")}function c(e,t,n,o){var a,s,i;return a=e-t,s=a/n>1?1:a/n,s=s>1?1:s,i=(n-o)*s,i=on&&i>0?0:i}function r(e){C=+t(this).width(),b=+t(this).height()}function m(){v.remove(),p.remove(),f[0].style.overflowX=w,f[0].style.overflowY=P,f[0].style.position=y,"function"==typeof d.ondestroy&&d.ondestroy.call(n)}var u=n.clientWidth,g=n.clientHeight,d=t.extend(!0,{parent:"BODY",src:function(){return this.src},onerror:function(t){e.open(t)},ondestroy:null},o),h="function"==typeof d.src?d.src.call(n):d.src,f=t("function"==typeof d.parent?d.parent.call(n):d.parent),p=t("
"),v=t("").on("load",s).on("error",a).attr("src",h).css({visibility:"hidden",width:"auto",height:"auto",transition:d.transition}),C=0,b=0,x=f[0]===t("BODY")[0],k=x?Math.max(t("BODY").scrollTop(),t(e).scrollTop()):f.scrollTop(),O=x?Math.max(t("BODY").scrollLeft(),t(e).scrollLeft()):f.scrollLeft(),w=f[0].style.overflowX,P=f[0].style.overflowY,y=f[0].style.position;try{(x?t(e):f).on("resize",r).trigger("resize")}catch(e){return void d.onerror(h)}x||f.css("position","relative"),f.css({"overflow-x":"hidden","overflow-y":"hidden"}),p.on("mousemove.imageCursorZoom",function(e){l(e.pageX,e.pageY)}).on("click.imageCursorZoom",m).css({overflow:"hidden",position:"absolute",left:O,top:k,background:"white",width:"100%",height:"100%","z-index":9999}).append(v).appendTo(f)}t.imageCursorZoom=o,t.fn.imageCursorZoom=function(e){return this.on("click.imageCursorZoom",function(){o(this,e)})},n&&n.amd&&n("imageCursorZoom",[],function(){return o})}(this,this.jQuery,this.define),$(document).ready(function(){var e=$("body .intense-zoom");e.length&&_.each(e,function(e){var t=$(e);t.on("click",function(e){e.preventDefault();var n=t.attr("href")||t.data("image")||t.attr("src"),o=new Image;o.src=n,$.imageCursorZoom(o)})})}); /** * Slick Modals - HTML5 and CSS3 Powered Modal Popups * --------------------------------------------------- * @file Defines main jQuery plugin * @author Capelle @ Codecanyon * @copyright @author * @version 5.0 * @url https://codecanyon.net/item/slick-modal-css3-powered-popups/12335988 */ !function(g){"use strict";if(!g||void 0===g)return u("[Slick Modals] No jQuery library detected. Load SlickModals after jQuery has been loaded on the page.");var s={restrict_hideOnUrls:[],restrict_cookieSet:!1,restrict_cookieName:"slickModal-1",restrict_cookieScope:"domain",restrict_cookieDays:"30",restrict_cookieSetClass:"setSmCookie-1",restrict_dateRange:!1,restrict_dateRangeStart:"",restrict_dateRangeEnd:"",restrict_dateRangeServerTime:!0,restrict_dateRangeServerTimeFile:"",restrict_dateRangeServerTimeZone:"Europe/London",restrict_showAfterVisits:1,restrict_showAfterVisitsResetWhenShown:!1,popup_type:"none",popup_delayedTime:"1s",popup_scrollDistance:"400px",popup_scrollHideOnUp:!1,popup_exitShowAlways:!1,popup_autoClose:!1,popup_autoCloseAfter:"5s",popup_openWithHash:!1,popup_redirectOnClose:!1,popup_redirectOnCloseUrl:"",popup_redirectOnCloseTarget:"_blank",popup_redirectOnCloseTriggers:"overlay button",popup_position:"center",popup_animation:"fadeIn",popup_closeButtonEnable:!0,popup_closeButtonStyle:"cancel simple",popup_closeButtonAlign:"right",popup_closeButtonPlace:"outside",popup_closeButtonText:"Close",popup_reopenClass:"open-sm",popup_reopenClassTrigger:"click",popup_reopenStickyButtonEnable:!1,popup_reopenStickyButtonText:"Open popup",popup_enableESC:!0,popup_bodyClass:"",popup_wrapperClass:"",popup_draggableEnable:!1,popup_allowMultipleInstances:!1,popup_css:{width:"480px",height:"auto",background:"#fff",margin:"24px",padding:"24px","animation-duration":"0.4s"},overlay_isVisible:!0,overlay_closesPopup:!0,overlay_animation:"fadeIn",overlay_css:{background:"rgba(0, 0, 0, .8)","animation-duration":"0.4s","animation-delay":"0s"},content_loadViaAjax:!1,content_animate:!1,content_animation:"zoomIn",content_css:{"animation-duration":"0.4s","animation-delay":"0.4s"},page_animate:!1,page_animation:"scale",page_animationDuration:".4s",page_blurRadius:"1px",page_scaleValue:".9",page_moveDistance:"30%",mobile_show:!0,mobile_breakpoint:"480px",mobile_position:"bottomCenter",mobile_css:{width:"100%",height:"auto",background:"#fff",margin:"0",padding:"18px","animation-duration":"0.4s"},callback_beforeInit:g.noop,callback_afterInit:g.noop,callback_beforeOpen:g.noop,callback_afterOpen:g.noop,callback_afterVisible:g.noop,callback_beforeClose:g.noop,callback_afterClose:g.noop,callback_afterHidden:g.noop},a="SlickModals",l="sm-",c="[Slick Modals] ",i=" can be passed into this method.";function u(t){console.log(t)}function o(t,e){this.$el=g(t),this.$wrapper="",this.$overlay="",this.$popup="",this.settings=g.extend(!0,{},s,e),this.autoCloseTimer=null,this.ajaxContentLoaded=0,this._build()}o.prototype={constructor:o,_build:function(){if("true"!==this.$el.attr("data-sm-init"))return this.$el.hide(),u(c+'Element is missing data-sm-init="true" attribute.');this.settings.callback_beforeInit(),this._createParent(),this.settings.overlay_isVisible&&this._createOverlay(),this.settings.popup_reopenStickyButtonEnable&&this._createStickyButton(),this._createPopup(),this.settings.content_animate&&this._contentAnimate(),this._createEvents(),this._checkInitRestrictions()},_createParent:function(){this.$el.wrapAll('
'),this.$wrapper=this.$el.parent();var t=this.settings.popup_type,e=0;switch(!0){case"delayed"===t:e=this.settings.popup_delayedTime;break;case"scrolled"===t:e=this.settings.popup_scrollDistance}this.$wrapper.attr({"data-sm-type":t,"data-sm-type-val":e}),this.settings.popup_autoClose&&this.$wrapper.attr({"data-sm-autoClose":"enable","data-sm-autoClose-after":this.settings.popup_autoCloseAfter})},_createOverlay:function(){this.$wrapper.prepend('
'),this.$overlay=this.$wrapper.children(".sm-overlay"),this.$overlay.attr({"data-sm-animated":!0,"data-sm-close":this.settings.overlay_closesPopup,"data-sm-effect":this.settings.overlay_animation}).css(this.settings.overlay_css)},_createStickyButton:function(){if(""===this.settings.popup_reopenClass)return u(c+'Sticky button must have defined "popup_reopenClass" within the plugin settings.');g("body").append('
'+this.settings.popup_reopenStickyButtonText+"
")},_createPopup:function(){this.$el.attr("data-sm-init","false").wrapAll('
'),this.$popup=this.$wrapper.children(".sm-popup");var t=g(window).width()<=parseInt(this.settings.mobile_breakpoint),e=null;(e=t?this.settings.mobile_css:this.settings.popup_css)["animation-delay"]=(this.settings.overlay_isVisible?parseFloat(this.settings.overlay_css["animation-duration"])/2:0)+"s",this.$popup.attr({"data-sm-animated":!0,"data-sm-position":t?this.settings.mobile_position:this.settings.popup_position,"data-sm-effect":this.settings.popup_animation}).css(e).prepend(this.settings.popup_closeButtonEnable?'
':"",this.settings.popup_draggableEnable?'
':""),this._popupPositionCorrect()},_contentAnimate:function(){this.$el.attr({"data-sm-animated":!0,"data-sm-effect":this.settings.content_animation}).css(this.settings.content_css)},_checkInitRestrictions:function(){var a,e,o=this;function s(){return!!o.settings.restrict_cookieSet&&-11?arguments[1]:void 0,i=h?Number(h):0;i!=i&&(i=0);var j=Math.min(Math.max(i,0),e);return!(g+j>e)&&c.call(d,f,i)!=-1};b?b(String.prototype,"includes",{value:d,configurable:!0,writable:!0}):String.prototype.includes=d}(),String.prototype.startsWith||!function(){var a=function(){try{var a={},b=Object.defineProperty,c=b(a,a,a)&&b}catch(a){}return c}(),b={}.toString,c=function(a){if(null==this)throw new TypeError;var c=String(this);if(a&&"[object RegExp]"==b.call(a))throw new TypeError;var d=c.length,e=String(a),f=e.length,g=arguments.length>1?arguments[1]:void 0,h=g?Number(g):0;h!=h&&(h=0);var i=Math.min(Math.max(h,0),d);if(f+i>d)return!1;for(var j=-1;++j":">",'"':""","'":"'","`":"`"},g={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},h=function(a){var b=function(b){return a[b]},c="(?:"+Object.keys(a).join("|")+")",d=RegExp(c),e=RegExp(c,"g");return function(a){return a=null==a?"":""+a,d.test(a)?a.replace(e,b):a}},i=h(f),j=h(g),k=function(b,c){d.useDefault||(a.valHooks.select.set=d._set,d.useDefault=!0),this.$element=a(b),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=c,null===this.options.title&&(this.options.title=this.$element.attr("title"));var e=this.options.windowPadding;"number"==typeof e&&(this.options.windowPadding=[e,e,e,e]),this.val=k.prototype.val,this.render=k.prototype.render,this.refresh=k.prototype.refresh,this.setStyle=k.prototype.setStyle,this.selectAll=k.prototype.selectAll,this.deselectAll=k.prototype.deselectAll,this.destroy=k.prototype.destroy,this.remove=k.prototype.remove,this.show=k.prototype.show,this.hide=k.prototype.hide,this.init()};k.VERSION="1.12.2",k.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(a,b){return 1==a?"{0} item selected":"{0} items selected"},maxOptionsText:function(a,b){return[1==a?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==b?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:''},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0},k.prototype={constructor:k,init:function(){var b=this,c=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),this.options.dropdownAlignRight===!0&&this.$menu.addClass("dropdown-menu-right"),"undefined"!=typeof c&&(this.$button.attr("data-id",c),a('label[for="'+c+'"]').click(function(a){a.preventDefault(),b.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(a){b.$menuInner.attr("aria-expanded",!1),b.$element.trigger("hide.bs.select",a)},"hidden.bs.dropdown":function(a){b.$element.trigger("hidden.bs.select",a)},"show.bs.dropdown":function(a){b.$menuInner.attr("aria-expanded",!0),b.$element.trigger("show.bs.select",a)},"shown.bs.dropdown":function(a){b.$element.trigger("shown.bs.select",a)}}),b.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){b.$button.addClass("bs-invalid").focus(),b.$element.on({"focus.bs.select":function(){b.$button.focus(),b.$element.off("focus.bs.select")},"shown.bs.select":function(){b.$element.val(b.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&b.$button.removeClass("bs-invalid"),b.$element.off("rendered.bs.select")}})}),setTimeout(function(){b.$element.trigger("loaded.bs.select")})},createDropdown:function(){var b=this.multiple||this.options.showTick?" show-tick":"",c=this.$element.parent().hasClass("input-group")?" input-group-btn":"",d=this.autofocus?" autofocus":"",e=this.options.header?'
'+this.options.header+"
":"",f=this.options.liveSearch?'':"",g=this.multiple&&this.options.actionsBox?'
":"",h=this.multiple&&this.options.doneButton?'
":"",j='
";return a(j)},createView:function(){var a=this.createDropdown(),b=this.createLi();return a.find("ul")[0].innerHTML=b,a},reloadLi:function(){var a=this.createLi();this.$menuInner[0].innerHTML=a},createLi:function(){var c=this,d=[],e=0,f=document.createElement("option"),g=-1,h=function(a,b,c,d){return""+a+""},j=function(d,e,f,g){return''+d+''};if(this.options.title&&!this.multiple&&(g--,!this.$element.find(".bs-title-option").length)){var k=this.$element[0];f.className="bs-title-option",f.innerHTML=this.options.title,f.value="",k.insertBefore(f,k.firstChild);var l=a(k.options[k.selectedIndex]);void 0===l.attr("selected")&&void 0===this.$element.data("selected")&&(f.selected=!0)}var m=this.$element.find("option");return m.each(function(b){var f=a(this);if(g++,!f.hasClass("bs-title-option")){var k,l=this.className||"",n=i(this.style.cssText),o=f.data("content")?f.data("content"):f.html(),p=f.data("tokens")?f.data("tokens"):null,q="undefined"!=typeof f.data("subtext")?''+f.data("subtext")+"":"",r="undefined"!=typeof f.data("icon")?' ':"",s=f.parent(),t="OPTGROUP"===s[0].tagName,u=t&&s[0].disabled,v=this.disabled||u;if(""!==r&&v&&(r=""+r+""),c.options.hideDisabled&&(v&&!t||u))return k=f.data("prevHiddenIndex"),f.next().data("prevHiddenIndex",void 0!==k?k:b),void g--;if(f.data("content")||(o=r+''+o+q+""),t&&f.data("divider")!==!0){if(c.options.hideDisabled&&v){if(void 0===s.data("allOptionsDisabled")){var w=s.children();s.data("allOptionsDisabled",w.filter(":disabled").length===w.length)}if(s.data("allOptionsDisabled"))return void g--}var x=" "+s[0].className||"";if(0===f.index()){e+=1;var y=s[0].label,z="undefined"!=typeof s.data("subtext")?''+s.data("subtext")+"":"",A=s.data("icon")?' ':"";y=A+''+i(y)+z+"",0!==b&&d.length>0&&(g++,d.push(h("",null,"divider",e+"div"))),g++,d.push(h(y,null,"dropdown-header"+x,e))}if(c.options.hideDisabled&&v)return void g--;d.push(h(j(o,"opt "+l+x,n,p),b,"",e))}else if(f.data("divider")===!0)d.push(h("",b,"divider"));else if(f.data("hidden")===!0)k=f.data("prevHiddenIndex"),f.next().data("prevHiddenIndex",void 0!==k?k:b),d.push(h(j(o,l,n,p),b,"hidden is-hidden"));else{var B=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName;if(!B&&c.options.hideDisabled&&(k=f.data("prevHiddenIndex"),void 0!==k)){var C=m.eq(k)[0].previousElementSibling;C&&"OPTGROUP"===C.tagName&&!C.disabled&&(B=!0)}B&&(g++,d.push(h("",null,"divider",e+"div"))),d.push(h(j(o,l,n,p),b))}c.liObj[b]=g}}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),d.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(b){var c,d=this,e=this.$element.find("option");b!==!1&&e.each(function(a){var b=d.findLis().eq(d.liObj[a]);d.setDisabled(a,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,b),d.setSelected(a,this.selected,b)}),this.togglePlaceholder(),this.tabIndex();var f=e.map(function(){if(this.selected){if(d.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled))return;var b,c=a(this),e=c.data("icon")&&d.options.showIcon?' ':"";return b=d.options.showSubtext&&c.data("subtext")&&!d.multiple?' '+c.data("subtext")+"":"","undefined"!=typeof c.attr("title")?c.attr("title"):c.data("content")&&d.options.showContent?c.data("content").toString():e+c.html()+b}}).toArray(),g=this.multiple?f.join(this.options.multipleSeparator):f[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var h=this.options.selectedTextFormat.split(">");if(h.length>1&&f.length>h[1]||1==h.length&&f.length>=2){c=this.options.hideDisabled?", [disabled]":"";var i=e.not('[data-divider="true"], [data-hidden="true"]'+c).length,k="function"==typeof this.options.countSelectedText?this.options.countSelectedText(f.length,i):this.options.countSelectedText;g=k.replace("{0}",f.length.toString()).replace("{1}",i.toString())}}void 0==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(g=this.options.title),g||(g="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",j(a.trim(g.replace(/<[^>]*>?/g,"")))),this.$button.children(".filter-option").html(g),this.$element.trigger("rendered.bs.select")},setStyle:function(a,b){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var c=a?a:this.options.style;"add"==b?this.$button.addClass(c):"remove"==b?this.$button.removeClass(c):(this.$button.removeClass(this.options.style),this.$button.addClass(c))},liHeight:function(b){if(b||this.options.size!==!1&&!this.sizeInfo){var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("ul"),f=document.createElement("li"),g=document.createElement("li"),h=document.createElement("a"),i=document.createElement("span"),j=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,k=this.options.liveSearch?document.createElement("div"):null,l=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,m=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(i.className="text",c.className=this.$menu[0].parentNode.className+" open",d.className="dropdown-menu open",e.className="dropdown-menu inner",f.className="divider",i.appendChild(document.createTextNode("Inner text")),h.appendChild(i),g.appendChild(h),e.appendChild(g),e.appendChild(f),j&&d.appendChild(j),k){var n=document.createElement("input");k.className="bs-searchbox",n.className="form-control",k.appendChild(n),d.appendChild(k)}l&&d.appendChild(l),d.appendChild(e),m&&d.appendChild(m),c.appendChild(d),document.body.appendChild(c);var o=h.offsetHeight,p=j?j.offsetHeight:0,q=k?k.offsetHeight:0,r=l?l.offsetHeight:0,s=m?m.offsetHeight:0,t=a(f).outerHeight(!0),u="function"==typeof getComputedStyle&&getComputedStyle(d),v=u?null:a(d),w={vert:parseInt(u?u.paddingTop:v.css("paddingTop"))+parseInt(u?u.paddingBottom:v.css("paddingBottom"))+parseInt(u?u.borderTopWidth:v.css("borderTopWidth"))+parseInt(u?u.borderBottomWidth:v.css("borderBottomWidth")),horiz:parseInt(u?u.paddingLeft:v.css("paddingLeft"))+parseInt(u?u.paddingRight:v.css("paddingRight"))+parseInt(u?u.borderLeftWidth:v.css("borderLeftWidth"))+parseInt(u?u.borderRightWidth:v.css("borderRightWidth"))},x={vert:w.vert+parseInt(u?u.marginTop:v.css("marginTop"))+parseInt(u?u.marginBottom:v.css("marginBottom"))+2,horiz:w.horiz+parseInt(u?u.marginLeft:v.css("marginLeft"))+parseInt(u?u.marginRight:v.css("marginRight"))+2};document.body.removeChild(c),this.sizeInfo={liHeight:o,headerHeight:p,searchHeight:q,actionsHeight:r,doneButtonHeight:s,dividerHeight:t,menuPadding:w,menuExtras:x}}},setSize:function(){if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var b,c,d,e,f,g,h,i,j=this,k=this.$menu,l=this.$menuInner,m=a(window),n=this.$newElement[0].offsetHeight,o=this.$newElement[0].offsetWidth,p=this.sizeInfo.liHeight,q=this.sizeInfo.headerHeight,r=this.sizeInfo.searchHeight,s=this.sizeInfo.actionsHeight,t=this.sizeInfo.doneButtonHeight,u=this.sizeInfo.dividerHeight,v=this.sizeInfo.menuPadding,w=this.sizeInfo.menuExtras,x=this.options.hideDisabled?".disabled":"",y=function(){var b,c=j.$newElement.offset(),d=a(j.options.container);j.options.container&&!d.is("body")?(b=d.offset(),b.top+=parseInt(d.css("borderTopWidth")),b.left+=parseInt(d.css("borderLeftWidth"))):b={top:0,left:0};var e=j.options.windowPadding;f=c.top-b.top-m.scrollTop(),g=m.height()-f-n-b.top-e[2],h=c.left-b.left-m.scrollLeft(),i=m.width()-h-o-b.left-e[1],f-=e[0],h-=e[3]};if(y(),"auto"===this.options.size){var z=function(){var m,n=function(b,c){return function(d){return c?d.classList?d.classList.contains(b):a(d).hasClass(b):!(d.classList?d.classList.contains(b):a(d).hasClass(b))}},u=j.$menuInner[0].getElementsByTagName("li"),x=Array.prototype.filter?Array.prototype.filter.call(u,n("hidden",!1)):j.$lis.not(".hidden"),z=Array.prototype.filter?Array.prototype.filter.call(x,n("dropdown-header",!0)):x.filter(".dropdown-header");y(),b=g-w.vert,c=i-w.horiz,j.options.container?(k.data("height")||k.data("height",k.height()),d=k.data("height"),k.data("width")||k.data("width",k.width()),e=k.data("width")):(d=k.height(),e=k.width()),j.options.dropupAuto&&j.$newElement.toggleClass("dropup",f>g&&b-w.verti&&c-w.horiz3?3*p+w.vert-2:0,k.css({"max-height":b+"px",overflow:"hidden","min-height":m+q+r+s+t+"px"}),l.css({"max-height":b-q-r-s-t-v.vert+"px","overflow-y":"auto","min-height":Math.max(m-v.vert,0)+"px"})};z(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",z),m.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",z)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(x).length>this.options.size){var A=this.$lis.not(".divider").not(x).children().slice(0,this.options.size).last().parent().index(),B=this.$lis.slice(0,A+1).filter(".divider").length;b=p*this.options.size+B*u+v.vert,j.options.container?(k.data("height")||k.data("height",k.height()),d=k.data("height")):d=k.height(),j.options.dropupAuto&&this.$newElement.toggleClass("dropup",f>g&&b-w.vert');var b,c,d,e=this,f=a(this.options.container),g=function(a){e.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",a.hasClass("dropup")),b=a.offset(),f.is("body")?c={top:0,left:0}:(c=f.offset(),c.top+=parseInt(f.css("borderTopWidth"))-f.scrollTop(),c.left+=parseInt(f.css("borderLeftWidth"))-f.scrollLeft()),d=a.hasClass("dropup")?0:a[0].offsetHeight,e.$bsContainer.css({top:b.top-c.top+d,left:b.left-c.left,width:a[0].offsetWidth})};this.$button.on("click",function(){var b=a(this);e.isDisabled()||(g(e.$newElement),e.$bsContainer.appendTo(e.options.container).toggleClass("open",!b.hasClass("open")).append(e.$menu))}),a(window).on("resize scroll",function(){g(e.$newElement)}),this.$element.on("hide.bs.select",function(){e.$menu.data("height",e.$menu.height()),e.$bsContainer.detach()})},setSelected:function(a,b,c){c||(this.togglePlaceholder(),c=this.findLis().eq(this.liObj[a])),c.toggleClass("selected",b).find("a").attr("aria-selected",b)},setDisabled:function(a,b,c){c||(c=this.findLis().eq(this.liObj[a])),b?c.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",!0):c.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",!1)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var a=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled").attr("aria-disabled",!1)),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!a.isDisabled()})},togglePlaceholder:function(){var a=this.$element.val();this.$button.toggleClass("bs-placeholder",null===a||""===a||a.constructor===Array&&0===a.length)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&this.$element.attr("tabindex")!==-98&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var b=this,c=a(document);c.data("spaceSelect",!1),this.$button.on("keyup",function(a){/(32)/.test(a.keyCode.toString(10))&&c.data("spaceSelect")&&(a.preventDefault(),c.data("spaceSelect",!1))}),this.$button.on("click",function(){b.setSize()}),this.$element.on("shown.bs.select",function(){if(b.options.liveSearch||b.multiple){if(!b.multiple){var a=b.liObj[b.$element[0].selectedIndex];if("number"!=typeof a||b.options.size===!1)return;var c=b.$lis.eq(a)[0].offsetTop-b.$menuInner[0].offsetTop;c=c-b.$menuInner[0].offsetHeight/2+b.sizeInfo.liHeight/2,b.$menuInner[0].scrollTop=c}}else b.$menuInner.find(".selected a").focus()}),this.$menuInner.on("click","li a",function(c){var d=a(this),f=d.parent().data("originalIndex"),g=b.$element.val(),h=b.$element.prop("selectedIndex"),i=!0;if(b.multiple&&1!==b.options.maxOptions&&c.stopPropagation(),c.preventDefault(),!b.isDisabled()&&!d.parent().hasClass("disabled")){var j=b.$element.find("option"),k=j.eq(f),l=k.prop("selected"),m=k.parent("optgroup"),n=b.options.maxOptions,o=m.data("maxOptions")||!1;if(b.multiple){if(k.prop("selected",!l),b.setSelected(f,!l),d.blur(),n!==!1||o!==!1){var p=n
');t[2]&&(u=u.replace("{var}",t[2][n>1?0:1]),v=v.replace("{var}",t[2][o>1?0:1])),k.prop("selected",!1),b.$menu.append(w),n&&p&&(w.append(a("
"+u+"
")),i=!1,b.$element.trigger("maxReached.bs.select")),o&&q&&(w.append(a("
"+v+"
")),i=!1,b.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){b.setSelected(f,!1)},10),w.delay(750).fadeOut(300,function(){a(this).remove()})}}}else j.prop("selected",!1),k.prop("selected",!0),b.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",!1),b.setSelected(f,!0);!b.multiple||b.multiple&&1===b.options.maxOptions?b.$button.focus():b.options.liveSearch&&b.$searchbox.focus(),i&&(g!=b.$element.val()&&b.multiple||h!=b.$element.prop("selectedIndex")&&!b.multiple)&&(e=[f,k.prop("selected"),l],b.$element.triggerNative("change"))}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(c){c.currentTarget==this&&(c.preventDefault(),c.stopPropagation(),b.options.liveSearch&&!a(c.target).hasClass("close")?b.$searchbox.focus():b.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(a){a.preventDefault(),a.stopPropagation(),b.options.liveSearch?b.$searchbox.focus():b.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){b.$button.click()}),this.$searchbox.on("click",function(a){a.stopPropagation()}),this.$menu.on("click",".actions-btn",function(c){b.options.liveSearch?b.$searchbox.focus():b.$button.focus(),c.preventDefault(),c.stopPropagation(),a(this).hasClass("bs-select-all")?b.selectAll():b.deselectAll()}),this.$element.change(function(){b.render(!1),b.$element.trigger("changed.bs.select",e),e=null})},liveSearchListener:function(){var c=this,d=a('
  • ');this.$button.on("click.dropdown.data-api",function(){c.$menuInner.find(".active").removeClass("active"),c.$searchbox.val()&&(c.$searchbox.val(""),c.$lis.not(".is-hidden").removeClass("hidden"),d.parent().length&&d.remove()),c.multiple||c.$menuInner.find(".selected").addClass("active"),setTimeout(function(){c.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(a){a.stopPropagation()}),this.$searchbox.on("input propertychange",function(){if(c.$lis.not(".is-hidden").removeClass("hidden"),c.$lis.filter(".active").removeClass("active"),d.remove(),c.$searchbox.val()){var e,f=c.$lis.not(".is-hidden, .divider, .dropdown-header");if(e=c.options.liveSearchNormalize?f.not(":a"+c._searchStyle()+'("'+b(c.$searchbox.val())+'")'):f.not(":"+c._searchStyle()+'("'+c.$searchbox.val()+'")'),e.length===f.length)d.html(c.options.noneResultsText.replace("{0}",'"'+i(c.$searchbox.val())+'"')),c.$menuInner.append(d),c.$lis.addClass("hidden");else{e.addClass("hidden");var g,h=c.$lis.not(".hidden");h.each(function(b){var c=a(this);c.hasClass("divider")?void 0===g?c.addClass("hidden"):(g&&g.addClass("hidden"),g=c):c.hasClass("dropdown-header")&&h.eq(b+1).data("optgroup")!==c.data("optgroup")?c.addClass("hidden"):g=null}),g&&g.addClass("hidden"),f.not(".hidden").first().addClass("active"),c.$menuInner.scrollTop(0)}}})},_searchStyle:function(){var a={begins:"ibegins",startsWith:"ibegins"};return a[this.options.liveSearchStyle]||"icontains"},val:function(a){return"undefined"!=typeof a?(this.$element.val(a),this.render(),this.$element):this.$element.val()},changeAll:function(b){if(this.multiple){"undefined"==typeof b&&(b=!0),this.findLis();var c=this.$element.find("option"),d=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),e=d.length,f=[];if(b){if(d.filter(".selected").length===d.length)return}else if(0===d.filter(".selected").length)return;d.toggleClass("selected",b);for(var g=0;g=48&&b.keyCode<=57||b.keyCode>=96&&b.keyCode<=105||b.keyCode>=65&&b.keyCode<=90))return i.options.container?i.$button.trigger("click"):(i.setSize(),i.$menu.parent().addClass("open"),f=!0),void i.$searchbox.focus();if(i.options.liveSearch&&/(^9$|27)/.test(b.keyCode.toString(10))&&f&&(b.preventDefault(),b.stopPropagation(),i.$menuInner.click(),i.$button.focus()),/(38|40)/.test(b.keyCode.toString(10))){if(c=i.$lis.filter(j),!c.length)return;d=i.options.liveSearch?c.index(c.filter(".active")):c.index(c.find("a").filter(":focus").parent()),e=i.$menuInner.data("prevIndex"),38==b.keyCode?(!i.options.liveSearch&&d!=e||d==-1||d--,d<0&&(d+=c.length)):40==b.keyCode&&((i.options.liveSearch||d==e)&&d++,d%=c.length),i.$menuInner.data("prevIndex",d),i.options.liveSearch?(b.preventDefault(),g.hasClass("dropdown-toggle")||(c.removeClass("active").eq(d).addClass("active").children("a").focus(),g.focus())):c.eq(d).children("a").focus()}else if(!g.is("input")){var l,m,n=[];c=i.$lis.filter(j),c.each(function(c){a.trim(a(this).children("a").text().toLowerCase()).substring(0,1)==k[b.keyCode]&&n.push(c)}),l=a(document).data("keycount"),l++,a(document).data("keycount",l),m=a.trim(a(":focus").text().toLowerCase()).substring(0,1),m!=k[b.keyCode]?(l=1,a(document).data("keycount",l)):l>=n.length&&(a(document).data("keycount",0),l>n.length&&(l=1)),c.eq(n[l-1]).children("a").focus()}if((/(13|32)/.test(b.keyCode.toString(10))||/(^9$)/.test(b.keyCode.toString(10))&&i.options.selectOnTab)&&f){if(/(32)/.test(b.keyCode.toString(10))||b.preventDefault(),i.options.liveSearch)/(32)/.test(b.keyCode.toString(10))||(i.$menuInner.find(".active a").click(),g.focus());else{var o=a(":focus");o.click(),o.focus(),b.preventDefault(),a(document).data("spaceSelect",!0)}a(document).data("keycount",0)}(/(^9$|27)/.test(b.keyCode.toString(10))&&f&&(i.multiple||i.options.liveSearch)||/(27)/.test(b.keyCode.toString(10))&&!f)&&(i.$menu.parent().removeClass("open"),i.options.container&&i.$newElement.removeClass("open"),i.$button.focus())},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide(); },show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var l=a.fn.selectpicker;a.fn.selectpicker=c,a.fn.selectpicker.Constructor=k,a.fn.selectpicker.noConflict=function(){return a.fn.selectpicker=l,this},a(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',k.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(a){a.stopPropagation()}),a(window).on("load.bs.select.data-api",function(){a(".selectpicker").each(function(){var b=a(this);c.call(b,b.data())})})}(a)}); //# sourceMappingURL=bootstrap-select.js.map $(document).ready(function(){$('.event-selectbox').selectpicker({});}); $(document).ready(function(){$('.event-side-selectbox').selectpicker({});}); $(document).ready(function(){$('.load-disabled').each(function(){$(this).prop('disabled',false);$('.fa',$(this)).removeClass('fa-spin');});$('#side_events_search_frm').on('submit',function(e){e.preventDefault();var form_data=$('#side_events_search_frm').serializeObject();form_data['csurl']=encodeURIComponent(full_uri+"amodules/events_ext_side/ajax/search_events.php");form_data['baseurl']=baseurl;$.ajax({url:baseurl+'/proxy.php',data:form_data,type:'post',dataType:'json',async:false,cache:false,success:function(r){if(r.result==1){if(r.hasOwnProperty('flashm')){$.post(baseurl+'/flashm.php',{'flashm':r.flashm});} window.redirectLink=r.link;window.setTimeout(function(){var rlink=window.redirectLink;console.log(rlink);delete(window.redirectLink);document.location.href=rlink;},200);}}});});if(window.event_srch){$.each(window.event_srch,function(name,val){var $form=$('#side_events_search_frm');var $el=$('#'+name+'_side',$form),type=$el.attr('type');switch(type){case'checkbox':$el.prop('checked','checked');break;case'radio':$el.filter('[value="'+val+'"]').prop('checked','checked');break;default:$el.selectpicker('val',val);break;}});}}); $(document).ready(function(){var marqueewidth="140px";var marqueeheight="140px";var marqueespeed=1;var pauseit=1;marqueespeed=(document.all)?marqueespeed:Math.max(1,marqueespeed-1);var copyspeed=marqueespeed;var pausespeed=(pauseit==0)?copyspeed:0;var iedom=document.all||document.getElementById;var actualheight='';var cross_marquee,ns_marquee;function scrollmarquee_x(){if(parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px";else cross_marquee.style.top=parseInt(marqueeheight)+8+"px";} var form_data={csurl:encodeURIComponent("https://www.cypruswebsites.com/acrons/anews/phileleftheros_news.json"),baseurl:baseurl};$.ajax({url:baseurl+'/proxy.php',type:"POST",data:form_data,dataType:"json",cache:false,success:function(r){var keys=[];for(var rkey in r){if(r.hasOwnProperty(rkey))keys.push(rkey);} if(keys.length>0){var $news_container=$('#phileleftheros-news');var $newsScroller=$('
    ').attr('id','newsScroller').css({position:"relative",overflow:"hidden",height:marqueeheight}).on("mouseover",function(mover){copyspeed=pausespeed;}).on("mouseout",function(mout){copyspeed=marqueespeed});var $iemarquee=$('
    ').attr('id','iemarquee').css({position:"absolute",left:"0",top:"0",width:"100%"});$newsScroller.html($iemarquee);$news_container.html($newsScroller);for(var i=0;i'+news_item.title+'

    ';$iemarquee.append($p);} cross_marquee=document.getElementById("iemarquee");cross_marquee.style.top=parseInt(marqueeheight)+8+"px";actualheight=cross_marquee.offsetHeight;var lefttime=setInterval(function(){if(parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px";else cross_marquee.style.top=parseInt(marqueeheight)+8+"px";},50);}}});}); $(document).ready(function(){if($('.side_banner').length>0){var side_banners=[];$('.side_banner').each(function(i){side_banners.push($(this).attr('id'));});$.ajax({url:curl_path,data:{domain_id:global_domain_id,side_banners:side_banners,type:'banners'},dataType:'json',type:'POST',cache:false,success:function(r){if(typeof(r)!=undefined){$.each(r,function(i,ban){$("#"+ban.banner_code).html(ban.banner_content);});if(typeof equalHeight!="undefined"){equalHeight($('.site-col'));}}}});}});