/*! ========= INFORMATION ============================ - document: Float Menu Pro - brand: Wow-Company - brand-url: https://wow-company.com/ - store-url: https://wow-estore.com/ - author: Dmytro Lobov - url: https://wow-estore.com/item/float-menu-pro/ ==================================================== */ "use strict";!function(e){var t={position:["left","center"],offset:[0,0],buttonShape:"round",buttonColor:"custom",buttonOverColor:"custom",iconColor:"white",iconOverColor:"white",labelColor:"match",labelTextColor:"match",labelEffect:"slide-out-fade",labelAnimate:"default",labelConnected:!1,labelsOn:!0,sideSpace:!1,buttonSpace:!1,labelSpace:!1,mobileEnable:!1,mobileScreen:768,subPosition:["circular",100,-90,90],subEffect:["slide",30],subAnimate:[400,"easeOutQuad"],subSpace:!1,subOpen:"mouseover",subTop:42,windowPosition:["center","center"],windowOffset:[0,0],windowCorners:"match",windowColor:"match",windowShadow:!0,showAfterPosition:!1,hideAfterPosition:!1,barAnimate:[250,"easeOutQuad"],hideUnderWidth:!1,shareTarget:"default"},o={default:[400,"easeOutQuad"],fade:[200,"easeOutQuad"],"slide-in-in":{show:[400,"easeOutQuad"],hide:[400,"swing"]}},s={build:a,destroy:i};function a(s){var a=function(s){var a=e.extend({},t,s);"string"==typeof a.position&&(a.position=a.position.split("-"));"center"===a.position[0]&&(a.position[0]=t.position[0],r('Bar horizontal position cannot be "center". Horizontal position reset to "left".'));a.position[1]||(a.position[1]=t.position[1]);0===a.offset||!1===a.offset?a.offset=[0,0]:"string"==typeof a.offset&&(a.offset=n(a.offset));!s.buttonShape&&s.shape&&(a.buttonShape=a.shape);"square"!==a.buttonShape&&"round"!==a.buttonShape&&"rounded"!==a.buttonShape&&"rounded-out"!==a.buttonShape&&(a.buttonShape="square");!s.buttonColor&&s.color&&(a.buttonColor=a.color);"default"===a.buttonColor&&(a.buttonColor="custom");!s.buttonOverColor&&s.overColor&&(a.buttonOverColor=a.overColor);"default"===a.buttonOverColor&&(a.buttonOverColor="custom");"match"===a.labelColor&&(a.labelColor=a.buttonOverColor);"match"===a.labelTextColor&&(a.labelTextColor=a.iconOverColor);"slide"===a.labelEffect&&(a.labelEffect="slide-out");"slide-in-fade"===a.labelEffect&&(a.labelEffect="slide-in");!s.labelAnimate&&s.labelAnim&&(a.labelAnimate=a.labelAnim);"default"===a.labelAnimate&&(o[a.labelEffect]?a.labelAnimate=o[a.labelEffect]:a.labelAnimate=o[0]);a.labelAnimate=l(a.labelAnimate),a.labelConnected&&("slide-in"===a.labelEffect||"slide-out-out"===a.labelEffect||"slide-in-in"===a.labelEffect?(a.labelConnected=!1,r('"labelConnected: true" incompatible with "labelEffect: '+a.labelEffect+'". "labelConnected" reset to false.')):a.labelSpace&&(a.labelSpace=!1,r('"labelSpace: true" incompatible with "labelConnected: true". "labelSpace" reset to false.')));"string"==typeof a.subPosition&&(a.subPosition=[a.subPosition]);"circular"===a.subPosition[0]&&(a.subPosition[1]||(a.subPosition[1]=t.subPosition[1]),void 0===a.subPosition[2]&&(a.subPosition[2]=t.subPosition[2]),void 0===a.subPosition[3]&&(a.subPosition[3]=t.subPosition[3]),a.subSpace&&(a.subSpace=!1));!s.subAnimate&&s.subAnim&&(a.subAnimate=a.subAnim);"default"===a.subAnimate&&(a.subAnimate=t.subAnimate);"string"==typeof a.subEffect&&(a.subEffect=[a.subEffect]);"linear-fade"!==a.subEffect[0]&&"linear-slide"!==a.subEffect[0]||a.subEffect[1]||(a.subEffect[1]=t.subEffect[1]);a.subAnimate=l(a.subAnimate),"string"==typeof a.windowPosition&&(a.windowPosition=a.windowPosition.split("-"));a.windowPosition[1]||(a.windowPosition[1]=t.windowPosition[1]);0===a.windowOffset||!1===a.windowOffset?a.windowOffset=[0,0]:"string"==typeof a.windowOffset&&(a.windowOffset=n(a.windowOffset));"match"===a.windowCorners&&("round"!==a.buttonShape&&"rounded"!==a.buttonShape&&"rounded-out"!==a.buttonShape||(a.windowCorners="round"));"match"===a.windowColor?a.windowColor=a.buttonColor:"default"===a.windowColor&&(a.windowColor="custom");"default"===a.barAnimate&&(a.barAnimate=t.barAnimate);a.barAnimate=l(a.barAnimate),a.hideUnder&&(a.hideUnderWidth=a.hideUnder);return a}(s);return this.each((function(){var o=e(this);o.data("fm-built")&&i.apply(this),o.data("fm-built",!0);var s=o.children(".fm-bar"),l=s.children(),d=o.children(".fm-window"),f=e(window),u=e(document),h=!0,m=!1,p=null,b=null,w=[];function v(t){t.children().each((function(t){e(this).hasClass("fm-sub")?function(t,o){var i,n,r,d,f,h,C=(t=e(t)).children(".fm-icon"),g=t.children("ul"),y=g.children(),k=null,A=null,S='
',E=a.subPosition[0],P=a.subEffect[0],O=m?"right":"left",T=y.length,x=c(C.css("width")),q=c(C.css("height")),M=[],j=null,L={},I={},U=0,z=0,D=!1,_=a.subAnimate.show[0],Q=a.subAnimate.show[1],W=a.subAnimate.hide[0],G=a.subAnimate.hide[1];v(g),"side"===E&&t.addClass("fm-side");a.subSpace&&t.addClass("fm-sub-space");"linear-slide"!==P&&"circular"!==E||t.addClass("fm-posabs");("under"===E&&"linear-slide"===P||"circular"===E&&"slide"===P||"circular"===E&&"linear-slide"===P)&&y.each((function(t){e(this).css("z-index",100-t)}));l[o+1]&&(A=l.eq(o+1));if("circular"===E){t.addClass("fm-circular");var H,F,R,B,$=a.subPosition[1],J=a.subPosition[2],K=a.subPosition[3],N=J*Math.PI/180,V=(K*Math.PI/180-N)/(T-1);y.each((function(t){H=t*V+N,F=Math.round($*Math.cos(H)),R=Math.round($*Math.sin(H)),(B={top:R})[O]=F,e(this).css(B),M[t]=[F,R]})),(k=e(S).appendTo(t)).css({width:$+x,height:2*$+x,"border-radius":m?$+"px 0 0 "+$+"px":"0 "+$+"px "+$+"px 0",top:-$}),f=c(l.eq(0).css("margin-bottom")),0!==o&&(z=$+f,h=c(s.css("margin-top")),t.css("margin-top",f)),A&&(U=$+f)}else{if("linear-slide"===P){var X=0;y.each((function(t){var o=e(this);o.css("top",X),M[t]=X,X+=c(o.css("height"))+c(o.css("margin-bottom"))})),g.css({width:x,height:X})}k=e(S).appendTo(t),"side"===E?k.css({width:x+c(g.css("margin-"+O)),height:q}):k.css({width:x,height:q+c(g.css("margin-top"))}),"under"===E&&A&&(U=g.outerHeight(!0)+c(A.css("margin-top"))+c(g.css("margin-top")))}switch(g.addClass("fm-hide"),P){case"fade":L={opacity:0},I={opacity:1},g.css(L),n=function(){g.velocity("stop").removeClass("fm-hide").velocity(I,_,Q)},r=function(){g.velocity("stop").velocity(L,W,G,(function(){g.addClass("fm-hide")}))};break;case"slide":"circular"===E?((L={top:0,opacity:0})[O]=0,y.css(L),n=function(){g.removeClass("fm-hide"),y.each((function(t){(I={top:M[t][1],opacity:1})[O]=M[t][0],e(this).velocity("stop").velocity(I,_,Q)}))},r=function(){y.each((function(t){e(this).velocity("stop").velocity(L,W,G,(function(){t===T-1&&g.addClass("fm-hide")}))}))}):("side"===E?(L[O]=0,I[O]=x):(L={top:0},I={top:C[0].clientHeight}),L.opacity=0,I.opacity=1,g.css(L),n=function(){g.velocity("stop").removeClass("fm-hide").velocity(I,_,Q)},r=function(){g.velocity("stop").velocity(L,W,G,(function(){g.addClass("fm-hide")}))});break;case"linear-fade":L={opacity:0},I={opacity:1},y.css(L),n=function(){j="show",g.removeClass("fm-hide"),te(),d=0,i=setInterval((function(){y.eq(d).velocity("stop").velocity(I,_,Q),d===T-1?te():d++}),a.subEffect[1])},r=function(){j="hide",te(),d=T-1,i=setInterval((function(){var e=d;y.eq(d).velocity("stop").velocity(L,_,Q,(function(){"hide"===j&&0===e&&g.addClass("fm-hide")})),0===d?te():d--}),a.subEffect[1])};break;case"linear-slide":var Y,Z,ee;"side"===E?L[O]=-x:"circular"===E?(L={top:0})[O]=0:L={top:-q},L.opacity=0,y.css(L),n=function(){j="show",g.removeClass("fm-hide"),te(),d=0,i=setInterval((function(){"side"===E?I[O]=0:"circular"===E?(I={top:M[d][1]})[O]=M[d][0]:I={top:M[d]},I.opacity=1,y.eq(d).velocity("stop").velocity(I,_,Q),d===T-1?te():d++}),a.subEffect[1])},r=function(){j="hide","side"===E||"circular"===E?(Y=0,Z=T-1,ee=1):(Y=T-1,Z=0,ee=-1),te(),d=Y,i=setInterval((function(){var e=d;y.eq(d).velocity("stop").velocity(L,_,Q,(function(){"hide"===j&&e===Z&&g.addClass("fm-hide")})),d===Z?te():d+=ee}),a.subEffect[1])};break;default:n=function(){g.removeClass("fm-hide")},r=function(){g.addClass("fm-hide")}}function te(){clearInterval(i)}function oe(){n(),k&&k.addClass("fm-show"),z&&(s.velocity("stop").velocity({"margin-top":h-z+f},_,Q),t.velocity("stop").velocity({"margin-top":z},_,Q)),U&&A.velocity("stop").velocity({"margin-top":U},_,Q),D=!0,p=t}function se(){r(),k&&k.removeClass("fm-show"),z&&(s.velocity("stop").velocity({"margin-top":h},_,Q),t.velocity("stop").velocity({"margin-top":f},_,Q)),U&&A.velocity("stop").velocity({"margin-top":w[o+1]},_,Q),D=!1,p=null}t.show=oe,t.hide=se,"click"===a.subOpen?(C.on("click",(function(e){D?se():(p&&p.hide(),oe()),e.stopPropagation()})),u.on("click",(function(o){!D||b||e(o.target).closest(t).length||se()}))):(t.on("mouseenter touchstart",oe),t.on("mouseleave",se));window.addEventListener("scroll",(function(){D&&se()}))}(this,t):function(t){var o,s,i,n,l,f=e(t).children("a, .fm-link"),u=f.children(".fm-icon"),h=f.children(".fm-label"),p=null,w=e(window).width(),v='',C='',g=m?"right":"left",y=40,A=!1,P={},O={},T={},x=a.labelAnimate.show[0],q=a.labelAnimate.show[1],M=a.labelAnimate.hide[0],j=a.labelAnimate.hide[1];if(a.labelsOn&&h.length){switch(s=c(u.css("width")),i=h.outerWidth(!0),"left"===a.position[0]?h.css({left:s+"px"}):h.css({right:s+"px"}),"round"!==a.buttonShape&&"rounded"!==a.buttonShape||(A=!0),a.labelConnected&&"left"===a.position[0]?h.css({left:0,"padding-left":s+12+"px"}):a.labelConnected&&"right"===a.position[0]&&h.css({right:0,"padding-right":s+12+"px"}),a.labelConnected||!a.labelSpace&&"round"!==a.buttonShape&&"rounded"!==a.buttonShape&&"rounded-out"!==a.buttonShape||(p=e(C).appendTo(f)),a.labelEffect){case"fade":P={opacity:0},O={opacity:1},h.css(P),n=function(){p&&p.addClass("fm-show"),h.velocity("stop").addClass("fm-show").velocity(O,x,q)},l=function(){h.velocity("stop").velocity(P,M,j,(function(){h.removeClass("fm-show"),p&&p.removeClass("fm-show")}))};break;case"slide-out":case"slide-out-fade":(o=f.wrap(v).parent()).css("width",s),A&&o.addClass("fm-off"),P[g]=-i+s,a.labelConnected?O[g]=0:O[g]=s,"slide-out-fade"===a.labelEffect&&(P.opacity=0,O.opacity=1),h.css(P),n=function(){o.css("width",s+i),A&&o.removeClass("fm-off"),p&&p.addClass("fm-show"),h.velocity("stop").addClass("fm-show").velocity(O,x,q,(function(){o.addClass("fm-off")}))},l=function(){o.removeClass("fm-off"),h.velocity("stop").velocity(P,M,j,(function(){h.removeClass("fm-show"),o.css("width",s),A&&o.addClass("fm-off"),p&&p.removeClass("fm-show")}))};break;case"slide-in":(P={opacity:0})[g]=s+y,(O={opacity:1})[g]=s,h.css(P),n=function(){p&&p.addClass("fm-show"),h.velocity("stop").addClass("fm-show").velocity(O,x,q)},l=function(){h.velocity("stop").velocity(P,M,j,(function(){h.removeClass("fm-show"),p&&p.removeClass("fm-show")}))};break;case"slide-out-out":case"slide-in-in":(o=f.wrap(v).parent()).css("width",s),A&&o.addClass("fm-off"),"slide-out-out"===a.labelEffect?(P[g]=-i+s,O[g]=s,T[g]=s+y):(P[g]=s+y,O[g]=s,T[g]=-i+s),P.opacity=0,O.opacity=1,T.opacity=0,n=function(){o.css("width",s+i+y),A&&o.removeClass("fm-off"),p&&p.addClass("fm-show"),h.velocity("stop").css(P).addClass("fm-show").velocity(O,x,q,(function(){o.css("width",s+i),o.addClass("fm-off")}))},l=function(){o.removeClass("fm-off"),o.css("width",s+i+y),h.velocity("stop").velocity(T,M,j,(function(){h.removeClass("fm-show"),o.css("width",s),A&&o.addClass("fm-off"),p&&p.removeClass("fm-show")}))};break;default:n=function(){p&&p.addClass("fm-show"),h.addClass("fm-show")},l=function(){h.removeClass("fm-show"),p&&p.removeClass("fm-show")}}1==a.mobileEnable&&a.mobileScreen>=w?f.on("touchend",(function(e){h.hasClass("fm-show")||(e.preventDefault(),n(),L(f,h))})):(f.on("mouseenter",n),f.on("mouseleave",l))}function L(t,o){e(document).on("touchstart",(function(s){e(s.target).closest(t).length||o.removeClass("fm-show")}))}var I,U,z,D=f.data("share");D?"pinterest"===D?f.on("click",S):(I=a.shareServices[D])?(U=I.url.replace("{URL}",PAGE_URL).replace("{TITLE}",PAGE_TITLE),f.attr("href",U),"app"===I.target?f.attr("target","_self"):"popup"===("default"===a.shareTarget?I.target:a.shareTarget)?f.on("click",{url:U,params:I.popup},E):f.attr("target","_blank")):r('There is no share data for "'+D+'".'):(z=f.attr("href"))&&z.indexOf("fm-popup")>-1&&"#"!==z&&f.on("click",(function(){var t;return t=z,d.addClass("fm-show"),k(b=e(t).addClass("fm-show")),!1}));"show"===f.attr("data-label")&&n()}(this)}))}function C(){d.removeClass("fm-show"),b.removeClass("fm-show"),b=null}function g(){A(s,a.position,a.offset),b&&k(b)}function y(){g(),a.hideUnderWidth&&(f.width()