1
function scrollToGatewayInputError(){var e=jQuery(".gateway-errors,.assisted-cc-input-feedback").first();(e.closest("form")||jQuery("form").first()).find('button[type="submit"],input[type="submit"]').prop("disabled",!1).removeClass("disabled").find("i.fas,i.far,i.fal,i.fab").removeAttr("class").addClass("fas fa-arrow-circle-right").find("span").toggle(),e.length&&elementOutOfViewPort(e[0])&&jQuery("html, body").animate({scrollTop:e.offset().top-50}
2
,500)}
3
function elementOutOfViewPort(e){var e=e.getBoundingClientRect(),t={}
4
;return t.top=e.top<0,t.left=e.left<0,t.bottom=e.bottom>(window.innerHeight||document.documentElement.clientHeight),t.right=e.right>(window.innerWidth||document.documentElement.clientWidth),t.any=t.top||t.left||t.bottom||t.right,t.any}
5
!function(g){var j="iCheck",C=j+"-helper",v="checkbox",b="radio",Q="checked",h="un"+Q,w="disabled",f="determinate",k="in"+f,S="update",M="type",x="click",D="touchbegin.i touchend.i",T="addClass",U="removeClass",R="trigger",H="label",m="cursor",W=/ip(hone|od|ad)|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;function P(e,t,n){var i=e[0],a=/er/.test(n)?k:/bl/.test(n)?w:Q,r=n==S?{checked:i[Q],disabled:i[w],indeterminate:"true"==e.attr(k)||"false"==e.attr(f)}
6
:i[a];if(/^(ch|di|in)/.test(n)&&!r)A(e,a);else if(/^(un|en|de)/.test(n)&&r)I(e,a);else if(n==S)for(var o in r)(r[o]?A:I)(e,o,!0);else t&&"toggle"!=n||(t||e[R]("ifClicked"),r?i[M]!==b&&I(e,a):A(e,a))}
7
function A(e,t,n){var i,a,r=e[0],o=e.parent(),s=t==Q,d=t==k,l=t==w,u=d?f:s?h:"enabled",c=y(e,u+E(r[M])),p=y(e,t+E(r[M]));!0!==r[t]&&(!n&&t==Q&&r[M]==b&&r.name&&(i=e.closest("form"),a='input[name="'+r.name+'"]',(a=i.length?i.find(a):g(a)).each(function(){this!==r&&g(this).data(j)&&I(g(this),t)}
8
)),d?(r[t]=!0,r[Q]&&I(e,Q,"force")):(n||(r[t]=!0),s&&r[k]&&I(e,k,!1)),O(e,s,t,n)),r[w]&&y(e,m,!0)&&o.find("."+C).css(m,"default"),o[T](p||y(e,t)||""),o.attr("role")&&!d&&o.attr("aria-"+(l?w:Q),"true"),o[U](c||y(e,u)||"")}
9
function I(e,t,n){var i=e[0],a=e.parent(),r=t==Q,o=t==k,s=t==w,d=o?f:r?h:"enabled",l=y(e,d+E(i[M])),u=y(e,t+E(i[M]));!1!==i[t]&&(!o&&n&&"force"!=n||(i[t]=!1),O(e,r,d,n)),!i[w]&&y(e,m,!0)&&a.find("."+C).css(m,"pointer"),a[U](u||y(e,t)||""),a.attr("role")&&!o&&a.attr("aria-"+(s?w:Q),"false"),a[T](l||y(e,d)||"")}
10
function L(e,t){e.data(j)&&(e.parent().html(e.attr("style",e.data(j).s||"")),t&&e[R](t),e.off(".i").unwrap(),g(H+'[for="'+e[0].id+'"]').add(e.closest(H)).off(".i"))}
11
function y(e,t,n){if(e.data(j))return e.data(j).o[t+(n?"":"Class")]}
12
function E(e){return e.charAt(0).toUpperCase()+e.slice(1)}
13
function O(e,t,n,i){i||(t&&e[R]("ifToggled"),e[R]("change")[R]("ifChanged")[R]("if"+E(n)))}
14
g.fn[j]=function(t,n){function e(e){e.each(function(){var e=g(this);r=e.is(a)?r.add(e):r.add(e.find(a))}
15
)}
16
var u,i,c,p,h,f,m,y,a='input[type="'+v+'"], input[type="'+b+'"]',r=g();return/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t)?(t=t.toLowerCase(),e(this),r.each(function(){var e=g(this);"destroy"==t?L(e,"ifDestroyed"):P(e,!0,t),g.isFunction(n)&&n()}
17
)):"object"!=typeof t&&t?this:(i=(u=g.extend({checkedClass:Q,disabledClass:w,indeterminateClass:k,labelHover:!0}
18
,t)).handle,c=u.hoverClass||"hover",p=u.focusClass||"focus",h=u.activeClass||"active",f=!!u.labelHover,m=u.labelHoverClass||"hover",y=0|(""+u.increaseArea).replace("%",""),i!=v&&i!=b||(a='input[type="'+i+'"]'),y<-50&&(y=-50),e(this),r.each(function(){var i=g(this),a=(L(i),this),e=a.id,t=-y+"%",n=100+2*y+"%",t={position:"absolute",top:t,left:t,display:"block",width:n,height:n,margin:0,padding:0,background:"#fff",border:0,opacity:0}
19
,n=W?{position:"absolute",visibility:"hidden"}
20
:y?t:{position:"absolute",opacity:0}
21
,r=a[M]==v?u.checkboxClass||"i"+v:u.radioClass||"i"+b,o=g(H+'[for="'+e+'"]').add(i.closest(H)),s=!!u.aria,d=j+"-"+Math.random().toString(36).substr(2,6),l='<div class="'+r+'" '+(s?'role="'+a[M]+'" ':"");s&&o.each(function(){l+='aria-labelledby="',this.id?l+=this.id:(this.id=d,l+=d),l+='"'}
22
),l=i.wrap(l+"/>")[R]("ifCreated").parent().append(u.insert),r=g('<ins class="'+C+'"/>').css(t).appendTo(l),i.data(j,{o:u,s:i.attr("style")}
23
).css(n),u.inheritClass&&l[T](a.className||""),u.inheritID&&e&&l.attr("id",j+"-"+e),"static"==l.css("position")&&l.css("position","relative"),P(i,!0,S),o.length&&o.on(x+".i mouseover.i mouseout.i "+D,function(e){var t=e[M],n=g(this);if(!a[w]){if(t==x){if(g(e.target).is("a"))return;P(i,!1,!0)}
24
else f&&(/ut|nd/.test(t)?(l[U](c),n[U](m)):(l[T](c),n[T](m)));if(!W)return!1;e.stopPropagation()}
25
}
26
),i.on(x+".i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[M],e=e.keyCode;return t!=x&&("keydown"==t&&32==e?(a[M]==b&&a[Q]||(a[Q]?I:A)(i,Q),!1):void("keyup"==t&&a[M]==b?a[Q]||A(i,Q):/us|ur/.test(t)&&l["blur"==t?U:T](p)))}
27
),r.on(x+" mousedown mouseup mouseover mouseout "+D,function(e){var t=e[M],n=/wn|up/.test(t)?h:c;if(!a[w]){if(t==x?P(i,!1,!0):(/wn|er|in/.test(t)?l[T](n):l[U](n+" "+h),o.length&&f&&n==c&&o[/ut|nd/.test(t)?U:T](m)),!W)return!1;e.stopPropagation()}
28
}
29
)}
30
))}
31
}
32
(window.jQuery||window.Zepto),function(e){"object"!=typeof e.WHMCS&&(e.WHMCS={hasModule:function(e){return typeof WHMCS[e]!=="undefined"&&Object.getOwnPropertyNames(WHMCS[e]).length>0}
33
,loadModule:function(e,t){if(this.hasModule(e))return;WHMCS[e]={}
34
;if(typeof t==="function")t.apply(WHMCS[e]);else for(var n in t)if(t.hasOwnProperty(n)){WHMCS[e][n]={}
35
;t[n].apply(WHMCS[e][n])}
36
}
37
}
38
)}
39
(window),jQuery(document).ready(function(){jQuery(document).on("click",".disable-on-click",function(){var e;jQuery(this).addClass("disabled"),jQuery(this).hasClass("spinner-on-click")&&(e=$(this).find("i.fas,i.far,i.fal,i.fab"),jQuery(e).removeAttr("class").addClass("fas fa-spinner fa-spin"))}
40
).on("click","#openTicketSubmit.disabled",function(){return!1}
...
</html>