var IsPaste,IsSelected,nDotCount=0,IsErrorBottom,IsErrorTop,IsMultiLinePaste;function checkForDecimalPoint(e){return"."==e?0==nDotCount?(nDotCount+=1,0):2:0}function identifyDot(e){var t=0,n=!1;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(n=!0);return n}function IsNumeric(e,t){var n;0==t?n="0123456789":1==t?n="0123456789.":2==t?n="0123456789 ":3==t&&(n="0123456789()- ");var o,a=!0;for(i=0;i<e.length&&1==a;i++)o=e.charAt(i),-1==n.indexOf(o)&&(a=!1);return a}function ValidatePhoneFormat(e,t,n=""){try{var o=$(e).val().replace(/([()-\s])+/g,""),i=o.length;if(i<=0)return!0;if(i>0)if("2"==t||11!=i&&10!=i||0!=o[0]||(i=(o=o.substring(1)).length),"1"==t||"3"==t){if(10!=i)return!1}else if("2"==t){if(void 0!==n&&null!=n&&""!=n&&"353"==n){if(9==i&&0!=o[0]&&(i=(o=0+o).length),i<9||i>10)return!1}else if(10==i&&0==o[0]&&(i=(o=o.substring(1)).length),i<10||i>11)return!1}else if("4"==t&&(i<9||i>10))return!1;return!0}catch(e){return!0}}function Phone_pattern(e,t){if(e.value=e.value.replace(/([()-\s])+/g,""),void 0!==t&&null!=t&&""!=t){var n=e.value,o=n.length;if(o<=0)return;if("2"!=t&&11==o&&0==n[0]&&(o=(n=n.substring(1)).length),"1"!=t&&"3"!=t||10!=o){if("2"==t){if(10==o&&0!=n[0]?o=(n=0+n).length:(o<=10||12==o)&&0==n[0]&&(o=(n=n.substring(1)).length),10==o||11==o){i=n.replace(/(\d{3})\-?(\d{4})\-?(\d{4})/,"$1 $2 $3");e.value=i}}else if("4"==t&&(9==o&&0!=n[0]?o=(n=0+n).length:(o<=9||o>10)&&0==n[0]&&(o=(n=n.substring(1)).length),9==o||10==o)){i=n.replace(/(\d{2})\-?(\d{4})\-?(\d{4})/,"($1) $2 $3");e.value=i}}else if("3"==t){var i=n.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"$1-$2-$3");e.value=i}else{var i=n.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1)-$2-$3");e.value=i}}else{i=e.value.replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,"($1)-$2-$3");e.value=i}}function stripChars(e,t){var n="",o=e.length,i=e.split(""),a=0,r=0;for(r=0;r<o;r++)1==IsNumeric(i[r],t)&&(1==t?"."==i[r]&&0==a&&1!=nDotCount?(n+=i[r],a+=1,nDotCount=1):"."!=i[r]&&(n+=i[r]):n+=i[r]);return n}function checkMaxLength(e,t){if(t>0&&t<e.length){var n=e.split(""),o="",i=0;for(i=0;i<t;i++)o+=n[i];return o}return e}function identifyDotPosition(e){var t=0,n=0;for(t=0;t<e.length;t++)"."==e.charAt(t)&&(n=t);return n}function modifyTextString(e,t,n,o){if(0==t){var i=0,a=e.split(""),r="";for(i=0;i<e.length-1;i++)r+=a[i];return r}if(1==t)return r=Math.round(e*Math.pow(10,n))/Math.pow(10,n)}function decimalPlacesValidation(e,t){identifyDotPosition(e.value)==e.value.length-1?e.value=modifyTextString(e.value,0,t,identifyDotPosition(e.value)):e.value.length-1-identifyDotPosition(e.value)>t&&(e.value=modifyTextString(e.value,1,t,identifyDotPosition(e.value)))}function validate(e,t,n){nDotCount=0;var o=0;if(e.value=checkMaxLength(stripChars(e.value,t),e.maxLength),1==t&&1==identifyDot(e.value)){if(e.value=Math.round(e.value*Math.pow(10,n))/Math.pow(10,n),0==identifyDot(e.value))for(o=0;o<n;o++)0;else if(e.value.length-1-identifyDotPosition(e.value)<n)for(o=e.value.length-1-identifyDotPosition(e.value);o<n;o++)0}else if(1==t&&0==identifyDot(e.value))for(e.value=Math.round(e.value*Math.pow(10,n))/Math.pow(10,n),o=0;o<n;o++)0}function dynamicWidthChange(e,t,n){var o=new Array(10,8,10,10,10,10,10,9,10,10),i=t,a=$(e).val();if(""!=a&&a.length>5){i=0;for(var r=0;r<a.length;r++){var d=a.substring(r,r+1);i="."==d?parseInt(i)+parseInt(4):d==n?parseInt(i)+parseInt(12):parseInt(i)+parseInt(o[d])}0==i&&(i=t),$(e).css("width",i+"px")}else $(e).css("width",i+"px")}function makeCurrencySymbolInTextbox(e,t){e.value.indexOf("$")>=0||(e.value.indexOf("£")>=0||(e.value.indexOf("%")>=0||(e.value=t+e.value.replace(t,""))))}function validateDecimal(e,t,n){var o="",i="";e.value.indexOf("$")>=0?o="$":e.value.indexOf("£")>=0?o="£":e.value.indexOf("%")>=0&&(i="%"),nDotCount=0;var a,r=0;if(e.value=checkMaxLength(stripChars(e.value,t),e.maxLength),1==t&&1==identifyDot(e.value)){if("."==e.value&&(e.value="0.00"),e.value=Math.round(e.value*Math.pow(10,n))/Math.pow(10,n),0==identifyDot(e.value)){for(a=n>0?".":"",r=0;r<n;r++)a+="0";var d=e.value+a;parseInt(d.length)<=parseInt(e.maxLength)&&(e.value=e.value+a)}else if(e.value.length-1-identifyDotPosition(e.value)<n){for(a="",r=e.value.length-1-identifyDotPosition(e.value);r<n;r++)a+="0";d=e.value+a;parseInt(d.length)<=parseInt(e.maxLength)&&(e.value=e.value+a)}}else if(1==t&&0==identifyDot(e.value)){for(e.value=Math.round(e.value*Math.pow(10,n))/Math.pow(10,n),a=n>0?".":"",r=0;r<n;r++)a+="0";d=e.value+a;parseInt(d.length)<=parseInt(e.maxLength)&&(e.value=e.value+a)}e.value=o+e.value+i}function pasteHandlerKeyup(e,t,n){if("Microsoft Internet Explorer"==navigator.appName){if(IsSelected){nDotCount=0;var o=checkMaxLength(stripChars(e.value,n),e.maxLength);e.value=o,IsSelected=!1}8!=t.keyCode&&46!=t.keyCode||identifyDot(e.value)||(nDotCount=0),""==e.value&&(nDotCount=0)}else{if("keyup"==t.type&&IsPaste){nDotCount=0;o=checkMaxLength(stripChars(e.value,n),e.maxLength);e.value=o,IsPaste=!1}8!=t.which&&46!=t.which||identifyDot(e.value)||(nDotCount=0),""==e.value&&(nDotCount=0)}}function pasteHandler(e,t,n){if("Microsoft Internet Explorer"==navigator.appName){if(13==t.keyCode)return!0;if("paste"==t.type){var o=getSelText();e.value;if(""!=o)return IsSelected=!0,!0;if(!isNaN(e.maxLength)){event.returnValue=!1,maxLength=parseInt(e.maxLength);var i=document.selection.createRange(),a=e.maxLength-e.value.length+i.text.length,r=window.clipboardData.getData("Text").substr(0,a);i.text=stripChars(r,n)}}return d=String.fromCharCode(t.keyCode),1==identifyDot(getSelText())&&(nDotCount=0),!(checkForDecimalPoint(d)>1&&1!=identifyDot(getSelText()))&&IsNumeric(d,n)}var d;if(!("keypress"!=t.type||t.ctrlKey&&118==t.which))return 0==t.which||8==t.which||13==t.which||!("."==(d=String.fromCharCode(t.which))&&e.value.indexOf(".")>=0)&&IsNumeric(d,n);"keypress"==t.type&&t.ctrlKey&&118==t.which&&(IsPaste=!0)}function getSelText(){var e="";if(window.getSelection)e=window.getSelection();else if(document.getSelection)e=document.getSelection();else{if(!document.selection)return;e=document.selection.createRange().text}return e}function validateGridPager(textbox,position,grd,pagecount){if(textbox.value=stripChars(textbox.value,0),""!=textbox.value&&textbox.value>0&&textbox.value<=pagecount){var gridname=grd;if(0==position){var lblstring="lblerrormsgForGridbottom"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="",IsErrorBottom=!1}else{var lblstring="lblerrormsgForGridtop"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="",IsErrorTop=!1}}else{var gridname=grd;if(0==position){var lblstring="lblerrormsgForGridbottom"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="Invalid page no.",IsErrorBottom=!0}else{var lblstring="lblerrormsgForGridtop"+gridname,lbl=eval(document.getElementById(lblstring));lbl.innerHTML="Invalid page no.",IsErrorTop=!0}}}function checkError(e,t){return 0==e?!IsErrorBottom:!IsErrorTop}var oldTextValue="",startPos,endPos,enterCount=0,newMaxLength=0,keyPressTextValue="",keyDownSelText="",pasteStartPos,pasteEndPos;function keyPressHandler(e,t,n){if("Microsoft Internet Explorer"==navigator.appName)return n>e.value.length||(selText=getSelText(),selText.length>1&&13==t.keyCode||selText.length>0&&13!=t.keyCode);var o=0,i=!1;o=getCharCountFF(e.value,n);if(8!=t.which&&0!=t.which||""!=keyPressTextValue||(keyPressTextValue=e.value),13==t.which&&(i=!0,o+=1),n>o)return t.ctrlKey&&118==t.which&&(oldTextValue=e.value,startPos=e.selectionStart,endPos=e.selectionEnd,IsMultiLinePaste=!0),!0;if(t.ctrlKey&&118==t.which)return IsMultiLinePaste=!0,oldTextValue=e.value,startPos=e.selectionStart,endPos=e.selectionEnd,!0;if(t.ctrlKey&&97==t.which)return!0;if(0==t.which||8==t.which)return!0;var a=e.selectionStart,r=e.selectionEnd-a;return!!(r>1&&i)||r>0&&!i}function getCharCountFF(e,t){var n=0,o=0,i=0;for(n=0;n<e.length;n++)10==e.charCodeAt(n)&&(o+=1),i+=1;return i+o}function identifyEnter(e,t){var n=0,o=0;for(n=0;n<e.length;n++)10==e.charCodeAt(n)&&(o+=1);return o}function setMaxLengthforPaste(e,t){var n=0,o=e.split(""),i="",a=0;for(n=0;n<e.length;n++)if(i+=o[n],13==e.charCodeAt(n)?newMaxLength+=1:a+=1,a==t)return i}function getValidCharsWithEnter(e,t){var n=0,o=e.split(""),i="",a=0,r=0;for(n=0;n<e.length&&(10==e.charCodeAt(n)||13==e.charCodeAt(n)?r+=2:10!=e.charCodeAt(n)&&13!=e.charCodeAt(n)&&(a+=1),!(a+r>t));n++)i+=o[n];return i}function setOldValue(e){if("Microsoft Internet Explorer"!=navigator.appName)return pasteStartPos=e.selectionStart,pasteEndPos=e.selectionEnd,!0}function keyUpMultiLine(e,t,n){if("Microsoft Internet Explorer"==navigator.appName);else{var o=identifyEnter(e.value,n),i=identifyEnter(keyPressTextValue,n);if(8!=t.which&&46!=t.which||(i!=o&&(newMaxLength-=i-o),(""==e.value||newMaxLength<0)&&(newMaxLength=0),keyPressTextValue=""),n<getCharCountFF(oldTextValue,n)&&IsMultiLinePaste){if(endPos-startPos>0&&endPos-startPos<n){var a=e.value;s=getCharCountFF(oldTextValue.substring(startPos,endPos),n)+(n-getCharCountFF(oldTextValue,n));var r=oldTextValue.substring(0,startPos),d=oldTextValue.substring(endPos,getCharCountFF(oldTextValue,n)),l=(c=a.substring(startPos,getCharCountFF(a,n))).substring(0,s);e.value=r+l+d,e.value=getValidCharsWithEnter(e.value,n)}else e.value=checkMaxLength(e.value,n),e.value=getValidCharsWithEnter(e.value,n);return IsMultiLinePaste=!1,!1}if(IsMultiLinePaste){var s;a=e.value;if(startPos!=endPos){s=getCharCountFF(oldTextValue.substring(startPos,endPos),n)+(n-getCharCountFF(oldTextValue,n));r=oldTextValue.substring(0,startPos),a.substring(0,startPos),d=oldTextValue.substring(endPos,getCharCountFF(oldTextValue,n));var c=a.substring(startPos,getCharCountFF(a,n))}else{s=n-getCharCountFF(oldTextValue,n);r=oldTextValue.substring(0,startPos),a.substring(0,startPos),d=oldTextValue.substring(endPos,getCharCountFF(oldTextValue,n)),c=a.substring(endPos,getCharCountFF(a,n))}l=c.substring(0,s);return e.value=r+l+d,e.value=getValidCharsWithEnter(e.value,n),newMaxLength=identifyEnter(e.value,n),IsMultiLinePaste=!1,!1}}}function checkMultiLineMaxLength(e,t){if(t>0&&t<e.length){var n=e.split(""),o="",i=0,a=0,r=0;for(r=0;r<t;r++){if(13==e.charCodeAt(r)?a+=2:13!=e.charCodeAt(r)&&10!=e.charCodeAt(r)&&(i+=1),i+a>t)return o;o+=n[r]}return o}return e}function onPasteHandler(e,t,n){if("Microsoft Internet Explorer"!=navigator.appName){clipboardData=t.clipboardData||window.clipboardData;var o=e.value+clipboardData.getData("Text");return e.value=getValidCharsWithEnter(o,n),!1}if(""==e.value)return e.value=checkMultiLineMaxLength(window.clipboardData.getData("Text"),n),!1;if(!isNaN(n)){event.returnValue=!1,n=parseInt(n);var i=document.selection.createRange(),a=n-e.value.length+i.text.length,r=window.clipboardData.getData("Text").substr(0,a);i.text=r,e.value=checkMultiLineMaxLength(e.value,n)}}function validateMultiLine(e,t){"Microsoft Internet Explorer"==navigator.appName?e.value=checkMultiLineMaxLength(e.value,t):e.value=getValidCharsWithEnter(e.value,t)}function validateDecimalNew(e,t){var n=e.value;if(isNaN(n))return alert("Enter numeric data"),e.value="",e.focus(),!1;if(0==n)return e.value=0,e.focus(),!1;var o=n.split(".");return o.length>1&&o[1].length<1&&(n=o[0]),e.value=format_number(n,t),!0}function format_number(e,t){return e<0?"-"+format_number2(e=-e,t):format_number2(e,t)}function format_number2(e,t){var n=new String(e).split("."),o=parseInt(n[0],10),i="";if(isNaN(o)&&(o="0"),n.length>1){for(var a=new String(n[1]),r=0,d=0;r<String(n[1]).length&&0==parseInt(String(n[1]).charAt(r),10);)d+=1,r+=1;a=parseInt(a,10)/Math.pow(10,parseInt(a.length-t-1)),Math.round(a),a=parseInt(a)/10,(a=Math.round(a))==Math.pow(10,parseInt(t))&&(o+=1,a="0");var l=new String("");if(r=0,a>0)for(;r<d;)l+="0",r+=1;-1==(c=(a=String(o)+"."+l+String(a)).indexOf("."))&&(c=(a+=".").indexOf("."));for(var s=parseInt(c)+parseInt(t);a.length<=s;)a+="0";i=a}else{var c;a=new String(o);c=(a+=".").indexOf(".");for(s=parseInt(c)+parseInt(t);a.length<=s;)a+="0";i=a}return i}
/*! enscroll - v0.6.1 - 2014-09-01
* Copyright (c) 2014 ; Licensed  */function setMerchantFrameHeight(){vui.frame.zenswipe.getHeight()}function onResponsiveIframeCallback(e){$("#"+vui.contentContainer),void 0!==$("#"+vui.contentContainer).find("#iFrame_dvccframe")&&$("#"+vui.contentContainer).find("#iFrame_"+vui.contentContainer).height(e.VerifyAddressHeight)}function FailedCapture3DSecurePopup(){"undefined"==typeof swal?"undefined"!=typeof SetErrorDisplayMessageReport&&$.isFunction(SetErrorDisplayMessageReport)&&SetErrorDisplayMessageReport("0","Your authentication is failed. please try again!",""):swal({title:"Your authentication is failed. please try again!",text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},function(e){})}function createCapture3DSecurePopup(){if($("body").find("#frame3d_cardintent").length<=0){$("body").append("<div class='zenswipe-payment-frame' id='frame3d_cardintent'><div class='zenswipe-payment-container'><div  class='zenswipe-payment-inner'><div class='zen-close-btn'><img src='https://vagaro.azureedge.net/static-content/Images/popup-close-img.png' onclick='_cardIntendent.CloseCardIntendentInfo(false);' style='cursor: pointer;'></div><div id='divframe3d_cardintent' class='zenswipe-iframe-wrapper'></div > </div ></div ></div > ")}return!0}!function(e,t,n,o){var i={verticalScrolling:!0,horizontalScrolling:!1,verticalScrollerSide:"right",showOnHover:!1,scrollIncrement:20,minScrollbarLength:40,pollChanges:!0,drawCorner:!0,drawScrollButtons:!1,clickTrackToScroll:!0,easingDuration:500,propagateWheelEvent:!0,verticalTrackClass:"vertical-track",horizontalTrackClass:"horizontal-track",horizontalHandleClass:"horizontal-handle",verticalHandleClass:"vertical-handle",scrollUpButtonClass:"scroll-up-btn",scrollDownButtonClass:"scroll-down-btn",scrollLeftButtonClass:"scroll-left-btn",scrollRightButtonClass:"scroll-right-btn",cornerClass:"scrollbar-corner",zIndex:1,addPaddingToPane:!0,horizontalHandleHTML:'<div class="left"></div><div class="right"></div>',verticalHandleHTML:'<div class="top"></div><div class="bottom"></div>'},a=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},r=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,17)},d=function(t,n){var o=e(t).css(n),i=/^-?\d+/.exec(o);return i?+i[0]:0},l=function(e){var t,n,o={width:"5px",height:"1px",overflow:"hidden",padding:"8px 0",visibility:"hidden",whiteSpace:"pre-line",font:"10px/1 serif"},i=document.createElement(e),a=document.createTextNode("a\na");for(n in o)i.style[n]=o[n];return i.appendChild(a),document.body.appendChild(i),t=i.scrollHeight<28,document.body.removeChild(i),t},s=.5*Math.PI,c=10*Math.log(2),p=function(e,t,n){var o=s/t,i=e*o;return Math.round(i*Math.cos(o*n))},u=function(e,t,n){return Math.round(e*c*Math.pow(2,-10*n/t+1)/t)},m=function(e,t,n,o){return 2*n/Math.PI*Math.asin((o-e)/t)},h=function(t){var n=e(this).data("enscroll"),o=this,i=n.settings,a=function(){var t=e(this).data("enscroll"),n=t.settings;t&&n.showOnHover&&(n.verticalScrolling&&e(t.verticalTrackWrapper).is(":visible")&&e(t.verticalTrackWrapper).stop().fadeTo(275,0),n.horizontalScrolling&&e(t.horizontalTrackWrapper).is(":visible")&&e(t.horizontalTrackWrapper).stop().fadeTo(275,0),t._fadeTimer=null)};n&&i.showOnHover&&(n._fadeTimer?clearTimeout(n._fadeTimer):(i.verticalScrolling&&e(n.verticalTrackWrapper).is(":visible")&&e(n.verticalTrackWrapper).stop().fadeTo(275,1),i.horizontalScrolling&&e(n.horizontalTrackWrapper).is(":visible")&&e(n.horizontalTrackWrapper).stop().fadeTo(275,1)),!1!==t&&(n._fadeTimer=setTimeout(function(){a.call(o)},1750)))},f=function(t,n){var o=e(t),i=o.data("enscroll"),a=o.scrollTop();i&&i.settings.verticalScrolling&&(o.scrollTop(a+n),i.settings.showOnHover&&h.call(t))},g=function(t,n){var o=e(t),i=o.data("enscroll"),a=o.scrollLeft();i&&i.settings.horizontalScrolling&&(o.scrollLeft(a+n),i.settings.showOnHover&&h.call(t))},v=function(t){if(1===t.which){var o,i,a,d,l,s,c,p,u,m=t.data.pane,f=e(m),g=f.data("enscroll"),v=!0,b=function(){v&&(a!==d&&(g._scrollingY||(g._scrollingY=!0,g._startY=f.scrollTop(),r(function(){A(f)})),i.style.top=a+"px",g._endY=a*u/p,d=a),r(b),g.settings.showOnHover&&h.call(m))},y=function(){return v=!1,n.body.style.cursor=c,this.style.cursor="",o.removeClass("dragging"),e(n.body).off("mousemove.enscroll.vertical").off("mouseup.enscroll.vertical"),e(n).off("mouseout.enscroll.vertical"),f.on("scroll.enscroll.pane",function(e){S.call(this,e)}),!1};return o=e(g.verticalTrackWrapper).find(".enscroll-track"),i=o.children().first()[0],a=parseInt(i.style.top,10),u=m.scrollHeight-(g._scrollHeightNoPadding?e(m).height():e(m).innerHeight()),l=t.clientY-e(i).offset().top,p=o.height()-e(i).outerHeight(),s=o.offset().top,f.off("scroll.enscroll.pane"),e(n.body).on({"mousemove.enscroll.vertical":function(e){return v&&(a=e.clientY-s-l,a=Math.min(0>a?0:a,p)),!1},"mouseup.enscroll.vertical":function(e){y.call(i,e)}}),e(n).on("mouseout.enscroll.vertical",function(e){e.target.nodeName&&"HTML"===e.target.nodeName.toUpperCase()&&y.call(i,e)}),o.hasClass("dragging")||(o.addClass("dragging"),c=e(n.body).css("cursor"),this.style.cursor=n.body.style.cursor="ns-resize"),r(b),!1}},b=function(t){if(1===t.which){var o,i,a,d,l,s,c,p,u,m=t.data.pane,f=e(m),g=e(m).data("enscroll"),v=!0,b=function(){v&&(a!==d&&(g._scrollingX||(g._scrollingX=!0,g._startX=f.scrollLeft(),r(function(){A(f)})),i.style.left=a+"px",g._endX=a*l/u,d=a),r(b),g.settings.showOnHover&&h.call(m))},y=function(){return v=!1,o.removeClass("dragging"),n.body.style.cursor=p,this.style.cursor="",o.removeClass("dragging"),e(n.body).off("mousemove.enscroll.horizontal").off("mouseup.enscroll.horizontal"),e(n).off("mouseout.enscroll.horizontal"),f.on("scroll.enscroll.pane",function(e){S.call(this,e)}),!1};return o=e(g.horizontalTrackWrapper).find(".enscroll-track"),i=o.children().first()[0],a=parseInt(i.style.left,10),l=m.scrollWidth-e(m).innerWidth(),s=t.clientX-e(i).offset().left,u=o.width()-e(i).outerWidth(),c=o.offset().left,f.off("scroll.enscroll.pane"),e(n.body).on({"mousemove.enscroll.horizontal":function(e){return v&&(a=e.clientX-c-s,a=Math.min(0>a?0:a,u)),!1},"mouseup.enscroll.horizontal":function(e){y.call(i,e)}}),e(n).on("mouseout.enscroll.horizontal",function(e){e.target.nodeName&&"HTML"===e.target.nodeName.toUpperCase()&&y.call(i,e)}),o.hasClass("dragging")||(o.addClass("dragging"),p=e("body").css("cursor"),this.style.cursor=n.body.style.cursor="ew-resize"),r(b),!1}},A=function(e){var t,n,o,i=e.data("enscroll"),a=i._duration;!0===i._scrollingX&&(0===(t=i._endX-i._startX)?i._scrollingX=!1:(n=e.scrollLeft(),o=m(i._startX,t,a,n),t>0?n>=i._endX||n<i._startX?i._scrollingX=!1:(g(e,Math.max(1,p(t,a,o))),r(function(){A(e)})):n<=i._endX||n>i._startX?i._scrollingX=!1:(g(e,Math.min(-1,p(t,a,o))),r(function(){A(e)})))),!0===i._scrollingY&&(0===(t=i._endY-i._startY)?i._scrollingY=!1:(n=e.scrollTop(),o=m(i._startY,t,a,n),t>0?n>=i._endY||n<i._startY?i._scrollingY=!1:(f(e,Math.max(1,p(t,a,o))),r(function(){A(e)})):n<=i._endY||n>i._startY?i._scrollingY=!1:(f(e,Math.min(-1,p(t,a,o))),r(function(){A(e)}))))},y=function(e,t){var n=e.data("enscroll"),o=e.scrollLeft(),i=e[0].scrollWidth-e.innerWidth();return!(!n.settings.horizontalScrolling||n._scrollingY)&&(n._scrollingX||(n._scrollingX=!0,n._startX=o,n._endX=n._startX,r(function(){A(e)})),n._endX=t>0?Math.min(o+t,i):Math.max(0,o+t),0>t&&o>0||t>0&&i>o)},C=function(e,t){var n=e.data("enscroll"),o=e.scrollTop(),i=e[0].scrollHeight-(n._scrollHeightNoPadding?e.height():e.innerHeight());return!(!n.settings.verticalScrolling||n._scrollingX)&&(n._scrollingY||(n._scrollingY=!0,n._startY=o,n._endY=n._startY,r(function(){A(e)})),n._endY=t>0?Math.min(o+t,i):Math.max(0,o+t),0>t&&o>0||t>0&&i>o)},w=function(t){var n=e(this),o=n.data("enscroll"),i=o.settings.scrollIncrement,r="deltaX"in t?-t.deltaX:"wheelDeltaX"in t?t.wheelDeltaX:0,d="deltaY"in t?-t.deltaY:"wheelDeltaY"in t?t.wheelDeltaY:"wheelDelta"in t?t.wheelDelta:0;Math.abs(r)>Math.abs(d)?(y(n,(r>0?-i:i)<<2)||!o.settings.propagateWheelEvent)&&a(t):(C(n,(d>0?-i:i)<<2)||!o.settings.propagateWheelEvent)&&a(t)},S=function(){var t,n,o,i=e(this),a=i.data("enscroll");a&&(a.settings.verticalScrolling&&(t=(n=e(a.verticalTrackWrapper).find(".enscroll-track")[0]).firstChild,o=i.scrollTop()/(this.scrollHeight-(a._scrollHeightNoPadding?i.height():i.innerHeight())),o=isNaN(o)?0:o,t.style.top=o*(e(n).height()-e(t).outerHeight())+"px"),a.settings.horizontalScrolling&&(t=(n=e(a.horizontalTrackWrapper).find(".enscroll-track")[0]).firstChild,o=i.scrollLeft()/(this.scrollWidth-i.innerWidth()),o=isNaN(o)?0:o,t.style.left=o*(e(n).width()-e(t).innerWidth())+"px"))},k=function(t){var n,o=e(this),i=o.data("enscroll");if(!/(input)|(select)|(textarea)/i.test(this.nodeName)&&t.target===this&&i){switch(n=i.settings.scrollIncrement,t.keyCode){case 32:case 34:return C(o,o.height()),!1;case 33:return C(o,-o.height()),!1;case 35:return C(o,this.scrollHeight),!1;case 36:return C(o,-this.scrollHeight),!1;case 37:return y(o,-n),!1;case 38:return C(o,-n),!1;case 39:return y(o,n),!1;case 40:return C(o,n),!1}return!0}},x=function(){var t=this,o=e(t).data("enscroll").settings,i=!0,a=0,d=0,l=e(t).offset().top,s=l+e(t).outerHeight(),c=e(t).offset().left,p=c+e(t).outerWidth(),u=function(){o.horizontalScrolling&&a&&g(t,parseInt(a/4,10)),o.verticalScrolling&&d&&f(t,parseInt(d/4,10)),i&&r(u)};r(u),e(n).on({"mousemove.enscroll.pane":function(e){var t=e.pageX,n=e.pageY;a=c>t?t-c:t>p?t-p:0,d=l>n?n-l:n>s?n-s:0},"mouseup.enscroll.pane":function(){i=!1,e(n).off("mousemove.enscroll.pane").off("mouseup.enscroll.pane")}})},I=function(e){var t,n,o,i,d,l,s,c=this,p=function(e){t=e.touches[0].clientX,n=e.touches[0].clientY,o||(o=n===d&&t===i?void 0:Math.abs(d-n)>Math.abs(i-t)?"y":"x"),a(e)},m=function(){l&&("y"===o?(f(c,d-n),s=d-n,d=n):"x"===o&&(g(c,i-t),s=i-t,i=t),r(m))},h=function(){var e=0,t=Math.abs(1.5*s);this.removeEventListener("touchmove",p,!1),this.removeEventListener("touchend",h,!1),l=!1,r(function n(){var i;e===t||l||(i=u(s,t,e),isNaN(i)||0===i||(e+=1,"y"===o?f(c,i):g(c,i),r(n)))})};1===e.touches.length&&(i=e.touches[0].clientX,d=e.touches[0].clientY,l=!0,this.addEventListener("touchmove",p,!1),this.addEventListener("touchend",h,!1),r(m))},E={reposition:function(){return this.each(function(){var t,n,o,i=e(this),a=i.data("enscroll"),r=function(e,t,n){e.style.left=t+"px",e.style.top=n+"px"};a&&(o=i.position(),t=a.corner,a.settings.verticalScrolling&&r(n=a.verticalTrackWrapper,"right"===a.settings.verticalScrollerSide?o.left+i.outerWidth()-e(n).width()-d(this,"border-right-width"):o.left+d(this,"border-left-width"),o.top+d(this,"border-top-width")),a.settings.horizontalScrolling&&r(n=a.horizontalTrackWrapper,o.left+d(this,"border-left-width"),o.top+i.outerHeight()-e(n).height()-d(this,"border-bottom-width")),t&&r(t,o.left+i.outerWidth()-e(t).outerWidth()-d(this,"border-right-width"),o.top+i.outerHeight()-e(t).outerHeight()-d(this,"border-bottom-width")))})},resize:function(){return this.each(function(){var t,n,o,i,a,r,d,l,s,c,p,u,m,h,f,g,v=e(this),b=v.data("enscroll");return!b||(t=b.settings,void(v.is(":visible")?(t.verticalScrolling&&(i=b.verticalTrackWrapper,n=v.innerHeight(),a=n/this.scrollHeight,r=e(i).find(".enscroll-track")[0],s=e(i).find("."+t.scrollUpButtonClass),c=e(i).find("."+t.scrollDownButtonClass),l=t.horizontalScrolling?n-e(b.horizontalTrackWrapper).find(".enscroll-track").outerHeight():n,l-=e(r).outerHeight()-e(r).height()+s.outerHeight()+c.outerHeight(),m=r.firstChild,f=Math.max(a*l,t.minScrollbarLength),f-=e(m).outerHeight()-e(m).height(),i.style.display="none",r.style.height=l+"px",m.style.height=f+"px",1>a&&(a=v.scrollTop()/(this.scrollHeight-v.height()),m.style.top=a*(l-f)+"px",i.style.display="block")),t.horizontalScrolling&&(i=b.horizontalTrackWrapper,o=v.innerWidth(),a=o/this.scrollWidth,r=e(i).find(".enscroll-track")[0],p=e(i).find("."+t.scrollLeftButtonClass),u=e(i).find("."+t.scrollRightButtonClass),d=t.verticalScrolling?o-e(b.verticalTrackWrapper).find(".enscroll-track").outerWidth():o,d-=e(r).outerWidth()-e(r).width()+p.outerWidth()+u.outerWidth(),m=r.firstChild,h=Math.max(a*d,t.minScrollbarLength),h-=e(m).outerWidth()-e(m).width(),i.style.display="none",r.style.width=d+"px",m.style.width=h+"px",1>a&&(a=v.scrollLeft()/(this.scrollWidth-v.width()),m.style.left=a*(d-h)+"px",i.style.display="block"),b._prybar&&(g=b._prybar,this.removeChild(g),t.verticalScrolling&&(g.style.width=this.scrollWidth+e(b.verticalTrackWrapper).find(".enscroll-track").outerWidth()+"px",this.appendChild(g)))),b.corner&&(b.corner.style.display=b.verticalTrackWrapper&&b.horizontalTrackWrapper&&e(b.verticalTrackWrapper).is(":visible")&&e(b.horizontalTrackWrapper).is(":visible")?"":"none")):(t.verticalScrolling&&(b.verticalTrackWrapper.style.display="none"),t.horizontalScrolling&&(b.horizontalTrackWrapper.style.display="none"),b.corner&&(b.corner.style.display="none"))))})},startPolling:function(){return this.each(function(){var t,n=e(this).data("enscroll"),o=this,i=e(o),a=-1,r=-1,d=-1,l=-1,s=function(){if(n.settings.pollChanges){var e=o.scrollWidth,c=o.scrollHeight,p=i.width(),u=i.height(),m=i.offset();(n.settings.verticalScrolling&&(u!==r||c!==l)||n.settings.horizontalScrolling&&(p!==a||e!==d))&&(d=e,l=c,E.resize.call(i)),(t.left!==m.left||t.top!==m.top||p!==a||u!==r)&&(t=m,a=p,r=u,E.reposition.call(i)),setTimeout(s,350)}};n&&(n.settings.pollChanges=!0,l=o.scrollHeight,d=o.scrollWidth,t=i.offset(),s())})},stopPolling:function(){return this.each(function(){var t=e(this).data("enscroll");t&&(t.settings.pollChanges=!1)})},destroy:function(){return this.each(function(){var n,o,i=e(this),a=i.data("enscroll");a&&(E.stopPolling.call(i),o=a._mouseScrollHandler,a.settings.verticalScrolling&&(n=a.verticalTrackWrapper,e(n).remove(),n=null),a.settings.horizontalScrolling&&(n=a.horizontalTrackWrapper,e(n).remove(),n=null),a._fadeTimer&&clearTimeout(a._fadeTimer),a.corner&&e(a.corner).remove(),a._prybar&&a._prybar.parentNode&&a._prybar.parentNode===this&&e(a._prybar).remove(),this.setAttribute("style",a._style||""),a._hadTabIndex||i.removeAttr("tabindex"),i.off("scroll.enscroll.pane").off("keydown.enscroll.pane").off("mouseenter.enscroll.pane").off("mousedown.enscroll.pane").data("enscroll",null),this.removeEventListener?(this.removeEventListener("wheel",o,!1),this.removeEventListener("mousewheel",o,!1),this.removeEventListener("touchstart",I,!1)):this.detachEvent&&this.detachEvent("onmousewheel",o),e(t).off("resize.enscroll.window"))})}};e.fn.enscroll=function(o){var a;return E[o]?E[o].call(this):(a=e.extend({},i,o),this.each(function(){if(a.verticalScrolling||a.horizontalScrolling){var o,i,r,s,c,p,u,m,A,_,P,D,T,O,M,L,B,F=e(this),$=this,N=F.attr("style"),R=!0,z={position:"absolute","z-index":a.zIndex,margin:0,padding:0},H=function(e){w.call($,e)},V=function(t,n){"string"==typeof n?e(t).html(n):t.appendChild(n)};if(a.verticalScrolling){i=n.createElement("div"),s=n.createElement("div"),p=n.createElement("a"),e(s).css("position","relative").addClass("enscroll-track").addClass(a.verticalTrackClass).appendTo(i),a.drawScrollButtons&&(u=n.createElement("a"),m=n.createElement("a"),e(u).css({display:"block","text-decoration":"none"}).attr("href","").html("&nbsp;").addClass(a.scrollUpButtonClass).on("click",function(){return f($,-a.scrollIncrement),!1}).insertBefore(s),e(m).css({display:"block","text-decoration":"none"}).attr("href","").html("&nbsp;").on("click",function(){return f($,a.scrollIncrement),!1}).addClass(a.scrollDownButtonClass).appendTo(i)),a.clickTrackToScroll&&e(s).on("click",function(t){t.target===this&&C(F,t.pageY>e(p).offset().top?F.height():-F.height())}),e(p).css({position:"absolute","z-index":1}).attr("href","").addClass(a.verticalHandleClass).mousedown({pane:this},v).click(function(){return!1}).appendTo(s),V(p,a.verticalHandleHTML),e(i).css(z).insertAfter(this),a.showOnHover&&e(i).css("opacity",0).on("mouseover.enscroll.vertical",function(){h.call($,!1)}).on("mouseout.enscroll.vertical",function(){h.call($)}),D=e(s).outerWidth(),a.addPaddingToPane&&(B="right"===a.verticalScrollerSide?{"padding-right":d(this,"padding-right")+D+"px"}:{"padding-left":d(this,"padding-left")+D+"px"},F.css(e.extend({width:F.width()-D+"px"},B)));try{0!==(M=parseInt(F.css("outline-width"),10))&&!isNaN(M)||"none"!==F.css("outline-style")||F.css("outline","none")}catch(e){F.css("outline","none")}}a.horizontalScrolling&&(o=n.createElement("div"),r=n.createElement("div"),c=n.createElement("a"),e(r).css({position:"relative","z-index":1}).addClass("enscroll-track").addClass(a.horizontalTrackClass).appendTo(o),a.drawScrollButtons&&(A=n.createElement("a"),_=n.createElement("a"),e(A).css("display","block").attr("href","").on("click",function(){return g($,-a.scrollIncrement),!1}).addClass(a.scrollLeftButtonClass).insertBefore(r),e(_).css("display","block").attr("href","").on("click",function(){return g($,a.scrollIncrement),!1}).addClass(a.scrollRightButtonClass).appendTo(o)),a.clickTrackToScroll&&e(r).on("click",function(t){t.target===this&&y(F,t.pageX>e(c).offset().left?F.width():-F.width())}),e(c).css({position:"absolute","z-index":1}).attr("href","").addClass(a.horizontalHandleClass).click(function(){return!1}).mousedown({pane:this},b).appendTo(r),V(c,a.horizontalHandleHTML),e(o).css(z).insertAfter(this),a.showOnHover&&e(o).css("opacity",0).on("mouseover.enscroll.horizontal",function(){h.call($,!1)}).on("mouseout.enscroll.horizontal",function(){h.call($)}),P=e(r).outerHeight(),a.addPaddingToPane&&F.css({height:F.height()-P+"px","padding-bottom":parseInt(F.css("padding-bottom"),10)+P+"px"}),a.verticalScrolling&&(L=document.createElement("div"),e(L).css({width:"1px",height:"1px",visibility:"hidden",padding:0,margin:"-1px"}).appendTo(this))),a.verticalScrolling&&a.horizontalScrolling&&a.drawCorner&&(T=n.createElement("div"),e(T).addClass(a.cornerClass).css(z).insertAfter(this)),F.attr("tabindex")||(F.attr("tabindex",0),R=!1);try{(!(O=F.css("outline"))||O.length<1)&&F.css("outline","none")}catch(e){F.css("outline","none")}F.on({"scroll.enscroll.pane":function(e){S.call(this,e)},"keydown.enscroll.pane":k,"mousedown.enscroll.pane":x}).css("overflow","hidden").data("enscroll",{settings:a,horizontalTrackWrapper:o,verticalTrackWrapper:i,corner:T,_prybar:L,_mouseScrollHandler:H,_hadTabIndex:R,_style:N,_scrollingX:!1,_scrollingY:!1,_startX:0,_startY:0,_endX:0,_endY:0,_duration:parseInt(a.easingDuration/16.66666,10),_scrollHeightNoPadding:l(this.nodeName)}),e(t).on("resize.enscroll.window",function(){E.reposition.call(F)}),a.showOnHover&&F.on("mouseenter.enscroll.pane",function(){h.call(this)}),this.addEventListener?("onwheel"in this||"WheelEvent"in t&&navigator.userAgent.toLowerCase().indexOf("msie")>=0?this.addEventListener("wheel",H,!1):"onmousewheel"in this&&this.addEventListener("mousewheel",H,!1),this.addEventListener("touchstart",I,!1)):this.attachEvent&&this.attachEvent("onmousewheel",H),a.pollChanges&&E.startPolling.call(F),E.resize.call(F),E.reposition.call(F)}}))}}(jQuery,window,document),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.bootbox=t(e.jQuery)}(this,function e(t,n){var o={dialog:"<div class='bootbox modal vagaro-modal'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body web-body-font'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&#xf00d;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},i={locale:"en",backdrop:!0,animate:!0,className:null,closeButton:!0,show:!0,container:"body"},a={};function r(e){var t=m[i.locale];return t?t[e]:m.en[e]}function d(e,n,o){e.stopPropagation(),e.preventDefault(),t.isFunction(o)&&!1===o(e)||n.modal("hide")}function l(e,n){var o=0;t.each(e,function(e,t){n(e,t,o++)})}function s(e,n,o){return t.extend(!0,{},e,function(e,t){var n=e.length,o={};if(n<1||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof e[0]?(o[t[0]]=e[0],o[t[1]]=e[1]):o=e[0],o}(n,o))}function c(e,t,n,o){return u(s({className:"bootbox-"+e,buttons:p.apply(null,t)},o,n),t)}function p(){for(var e={},t=0,n=arguments.length;t<n;t++){var o=arguments[t],i=o.toLowerCase(),a=o.toUpperCase();e[i]={label:r(a)}}return e}function u(e,t){var o={};return l(t,function(e,t){o[t]=!0}),l(e.buttons,function(e){if(o[e]===n)throw new Error("button key "+e+" is not allowed (options are "+t.join("\n")+")")}),e}a.alert=function(){var e;if(arguments[1]="Alert",(e=c("alert",["ok"],["message","title","callback"],arguments)).callback&&!t.isFunction(e.callback))throw new Error("alert requires callback property to be a function when provided");return e.buttons.ok.callback=e.onEscape=function(){return!t.isFunction(e.callback)||e.callback()},a.dialog(e)},a.alertsmall=function(){var e;if(arguments[1]="Alert",(e=c("alert",["ok"],["message","title","callback"],arguments)).callback&&!t.isFunction(e.callback))throw new Error("alert requires callback property to be a function when provided");return e.buttons.ok.callback=e.onEscape=function(){return!t.isFunction(e.callback)||e.callback()},e.size="small",a.dialog(e)},a.confirm=function(){var e;if((e=c("confirm",["cancel","confirm"],["message","callback"],arguments)).buttons.cancel.callback=e.onEscape=function(){return e.callback(!1)},e.buttons.confirm.callback=function(){return e.callback(!0)},!t.isFunction(e.callback))throw new Error("confirm requires a callback");return a.dialog(e)},a.prompt=function(){var e,i,r,d,c,m,h;if(d=t(o.form),i={className:"bootbox-prompt",buttons:p("cancel","confirm"),value:"",inputType:"text"},m=(e=u(s(i,arguments,["title","callback"]),["cancel","confirm"])).show===n||e.show,e.message=d,e.buttons.cancel.callback=e.onEscape=function(){return e.callback(null)},e.buttons.confirm.callback=function(){var n;switch(e.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":n=c.val();break;case"checkbox":var o=c.find("input:checked");n=[],l(o,function(e,o){n.push(t(o).val())})}return e.callback(n)},e.show=!1,!e.title)throw new Error("prompt requires a title");if(!t.isFunction(e.callback))throw new Error("prompt requires a callback");if(!o.inputs[e.inputType])throw new Error("invalid prompt type");switch(c=t(o.inputs[e.inputType]),e.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":c.val(e.value);break;case"select":var f={};if(!(h=e.inputOptions||[]).length)throw new Error("prompt with select requires options");l(h,function(e,o){var i=c;if(o.value===n||o.text===n)throw new Error("given options in wrong format");o.group&&(f[o.group]||(f[o.group]=t("<optgroup/>").attr("label",o.group)),i=f[o.group]),i.append("<option value='"+o.value+"'>"+o.text+"</option>")}),l(f,function(e,t){c.append(t)}),c.val(e.value);break;case"checkbox":var g=t.isArray(e.value)?e.value:[e.value];if(!(h=e.inputOptions||[]).length)throw new Error("prompt with checkbox requires options");if(!h[0].value||!h[0].text)throw new Error("given options in wrong format");c=t("<div/>"),l(h,function(n,i){var a=t(o.inputs[e.inputType]);a.find("input").attr("value",i.value),a.find("label").append(i.text),l(g,function(e,t){t===i.value&&a.find("input").prop("checked",!0)}),c.append(a)})}return e.placeholder&&c.attr("placeholder",e.placeholder),e.pattern&&c.attr("pattern",e.pattern),d.append(c),d.on("submit",function(e){e.preventDefault(),e.stopPropagation(),r.find(".btn-primary").click()}),(r=a.dialog(e)).off("shown.bs.modal"),r.on("shown.bs.modal",function(){c.focus()}),!0===m&&r.modal("show"),r},a.dialog=function(e){e=function(e){var n,o;if("object"!=typeof e)throw new Error("Please supply an object of options");if(!e.message)throw new Error("Please specify a message");return(e=t.extend({},i,e)).buttons||(e.buttons={}),e.backdrop=!!e.backdrop&&"static",n=e.buttons,o=function(e){var t,n=0;for(t in e)n++;return n}(n),l(n,function(e,i,a){if(t.isFunction(i)&&(i=n[e]={callback:i}),"object"!==t.type(i))throw new Error("button with key "+e+" must be an object");i.label||(i.label=e),i.className||(i.className=o<=2&&a===o-1?"btn-primary new-vgcustm-wb green-primary-button":"btn-default secondary-button")}),e}(e);var n=t(o.dialog),a=n.find(".modal-dialog"),r=n.find(".modal-body"),s=e.buttons,c="",p={onEscape:e.onEscape};if(l(s,function(e,t){if("a"==t.type)"Heart"==e?(t.className=t.className+" round-heart-icon",c+="<a id='ancHeart'  href=\"javascript:void();\" data-bb-handler='"+e+"' class='"+t.className+"' title = '"+e+"'></a>"):c+='<a href="javascript:void();" data-bb-handler=\''+e+"' class='"+t.className+"' title = '"+e+"'></a>";else if("span"==t.type){var n=t.className.split("|");c+="  <span id='spnHeartValue' style='float: left; margin-top: 5px;' class='heartArr[0]'>"+n[1]+"</span>"}else"Cancel"==t.label?c+="<button data-bb-handler='"+e+"' type='button' class='btn "+t.className+" secondary-button'>"+t.label+"</button>":c+="<button data-bb-handler='"+e+"' type='button' class='btn "+t.className+"'>"+t.label+"</button>";p[e]=t.callback}),r.find(".bootbox-body").html(e.message),!0===e.animate&&n.addClass("fade"),e.className&&n.addClass(e.className),"large"===e.size&&a.addClass("modal-lg"),"small"===e.size&&a.addClass("modal-sm"),e.title&&r.before(o.header),e.closeButton){var u=t(o.closeButton);e.title?n.find(".modal-header").prepend(u):u.css("margin-top","-10px").prependTo(r)}e.title&&n.find(".modal-title").html(e.title),c.length&&(r.after(o.footer),n.find(".modal-footer").html(c)),n.on("hidden.bs.modal",function(e){e.target===this&&n.remove()}),n.on("show.bs.modal",function(){"undefined"!=typeof setPopupPosi&&"undefined"!=typeof getQueryStringData&&"Builder"==getQueryStringData("Type")&&(t(this).addClass("wbbootbox"),setPopupPosi(this))}),n.on("shown.bs.modal",function(){n.find(".btn-primary:first").focus();var e=Math.min(t(window).height(),screen.availHeight);if("undefined"==typeof $Interframe){n.find(".modal-dialog").css("margin-top");var o=(e-n.find(".modal-dialog").height())/2;n.find(".modal-dialog").animate({"margin-top":o},50)}}),n.on("escape.close.bb",function(e){p.onEscape&&d(e,n,p.onEscape)}),n.on("touchstart click",".modal-footer button",function(e){var o=t(this).data("bb-handler");d(e,n,p[o])}),n.on("touchstart click",".modal-footer a",function(e){var o=t(this).data("bb-handler");d(e,n,p[o])}),n.on("touchstart click",".bootbox-close-button",function(e){d(e,n,p.onEscape)}),n.on("keyup",function(e){27===e.which&&n.trigger("escape.close.bb")}),t(e.container).append(n),n.modal({backdrop:e.backdrop,keyboard:!1,show:!1}),e.show&&n.modal("show");var m=Math.min(t(window).height(),screen.availHeight);return"undefined"==typeof $Interframe&&n.find(".modal-dialog").css("margin-top",(m-n.find(".modal-dialog").height())/2-200),n},a.setDefaults=function(){var e={};2===arguments.length?e[arguments[0]]=arguments[1]:e=arguments[0],t.extend(i,e)},a.hideAll=function(){return t(".bootbox").modal("hide"),a};var m={br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return a.init=function(n){return e(n||t)},a}),
// @preserve jQuery.floatThead 1.3.2 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2015 Misha Koryak
// @license MIT
function(e){var t=(navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),n=t.match(/ipad/i)||t.match(/iphone/i)||t.match(/itouch/i)||t.match(/android/i)||!1,o=t.match(/webkit/i)||!1;e.floatThead=e.floatThead||{},e.floatThead.defaults={headerCellSelector:"tr:visible:first>*:visible",zIndex:1001,position:"auto",top:0,bottom:0,scrollContainer:function(t){return e([])},getSizingRow:function(e,t,n){return e.find("tbody tr:visible:first>*:visible")},floatTableClass:"floatThead-table",floatWrapperClass:"floatThead-wrapper",floatContainerClass:"floatThead-container",copyTableClass:!0,enableAria:!1,autoReflow:!1,debug:!1};var i=window._,a="undefined"!=typeof MutationObserver,r=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];e=1+e,t.innerHTML="\x3c!--[if gt IE "+e+"]><i><![endif]--\x3e",n[0];);return 4<e?e:document.documentMode}(),d=/Gecko\//.test(navigator.userAgent),l=/WebKit\//.test(navigator.userAgent),s=function(){if(l){var t=e('<div style="width:0px"><table style="max-width:100%"><tr><th><div style="min-width:100px;">X</div></th></tr></table></div>');e("body").append(t);var n=0==t.find("table").width();return t.remove(),n}return!1},c=!d&&!r,p=e(window);function u(e){window&&window.console&&window.console.error&&window.console.error("jQuery.floatThead: "+e)}function m(e){var t=e.getBoundingClientRect();return t.width||t.right-t.left}function h(){return n||o?7:0}function f(e,t,n){var o=n?"outerWidth":"width";if(s&&e.css("max-width")){var i=0;n&&(i+=parseInt(e.css("borderLeft"),10),i+=parseInt(e.css("borderRight"),10));for(var a=0;a<t.length;a++)i+=t.get(a).offsetWidth;return i}return e[o]()}e.fn.floatThead=function(t){if(t=t||{},!i&&!(i=window._||e.floatThead._))throw new Error("jquery.floatThead-slim.js requires underscore. You should use the non-lite version since you do not have underscore.");if(r<8)return this;var o=null;if(i.isFunction(s)&&(s=s()),i.isString(t)){var d=t,g=this;return this.filter("table").each(function(){var t=e(this),n=t.data("floatThead-lazy");n&&t.floatThead(n);var o=t.data("floatThead-attached");if(o&&i.isFunction(o[d])){var a=o[d]();void 0!==a&&(g=a)}}),g}var v=e.extend({},e.floatThead.defaults||{},t);if(e.each(t,function(t,n){!(t in e.floatThead.defaults)&&v.debug&&u("Used ["+t+"] key to init plugin, but that param is not an option for the plugin. Valid options are: "+i.keys(e.floatThead.defaults).join(", "))}),v.debug){var b=e.fn.jquery.split(".");1==parseInt(b[0],10)&&parseInt(b[1],10)<=7&&u("jQuery version "+e.fn.jquery+" detected! This plugin supports 1.8 or better, or 1.7.x with jQuery UI 1.8.24 -> http://jqueryui.com/resources/download/jquery-ui-1.8.24.zip")}return this.filter(":not(."+v.floatTableClass+")").each(function(){var t=i.uniqueId(),d=e(this);if(d.data("floatThead-attached"))return!0;if(!d.is("table"))throw new Error('jQuery.floatThead must be run on a table element. ex: $("table").floatThead();');a=v.autoReflow&&a;var s=d.children("thead:first"),g=d.children("tbody:first");if(0==s.length||0==g.length)return d.data("floatThead-lazy",v),void d.unbind("reflow").one("reflow",function(){d.floatThead(v)});d.data("floatThead-lazy")&&d.unbind("reflow"),d.data("floatThead-lazy",!1);var b,A,y=!0,C={vertical:0,horizontal:0},w=h(),S=0,k=v.scrollContainer(d)||e([]),x=k.length>0,I=null;void 0!==v.useAbsolutePositioning&&(v.position="auto",v.useAbsolutePositioning&&(v.position=v.useAbsolutePositioning?"absolute":"fixed"),u("option 'useAbsolutePositioning' has been removed in v1.3.0, use `position:'"+v.position+"'` instead. See docs for more info: http://mkoryak.github.io/floatThead/#options")),void 0!==v.scrollingTop&&(v.top=v.scrollingTop,u("option 'scrollingTop' has been renamed to 'top' in v1.3.0. See docs for more info: http://mkoryak.github.io/floatThead/#options")),void 0!==v.scrollingBottom&&(v.bottom=v.scrollingBottom,u("option 'scrollingBottom' has been renamed to 'bottom' in v1.3.0. See docs for more info: http://mkoryak.github.io/floatThead/#options")),"auto"==v.position?I=null:"fixed"==v.position?I=!1:"absolute"==v.position?I=!0:v.debug&&u('Invalid value given to "position" option, valid is "fixed", "absolute" and "auto". You passed: ',v.position),null==I&&(I=x);var E=d.find("caption"),_=1==E.length;if(_)var P="top"===(E.css("caption-side")||E.attr("align")||"top");var D=e('<fthfoot style="display:table-footer-group;border-spacing:0;height:0;border-collapse:collapse;visibility:hidden"/>'),T=!1,O=e([]),M=r<=9&&!x&&I,L=e("<table/>"),B=e("<colgroup/>"),F=d.children("colgroup:first"),$=!0;0==F.length&&(F=e("<colgroup/>"),$=!1);var N=e('<fthtr style="display:table-row;border-spacing:0;height:0;border-collapse:collapse"/>'),R=e('<div style="overflow: hidden;" aria-hidden="true"></div>'),z=!1,H=e("<thead/>"),V=e('<tr class="size-row"/>'),W=e([]),U=e([]),j=e([]),q=e([]);H.append(V),d.prepend(F),c&&(D.append(N),d.append(D)),L.append(B),R.append(L),v.copyTableClass&&L.attr("class",d.attr("class")),L.attr({cellpadding:d.attr("cellpadding"),cellspacing:d.attr("cellspacing"),border:d.attr("border")});var G=d.css("display");if(L.css({borderCollapse:d.css("borderCollapse"),border:d.css("border"),display:G}),"none"==G&&(z=!0),L.addClass(v.floatTableClass).css({margin:0,"border-bottom-width":0}),I){var K=function(e,t){var n=e.css("position"),o=e;if(!("relative"==n||"absolute"==n)||t){var i={paddingLeft:e.css("paddingLeft"),paddingRight:e.css("paddingRight")};R.css(i),o=e.data("floatThead-containerWrap")||e.wrap("<div class='"+v.floatWrapperClass+"' style='position: relative; clear:both;'></div>").parent(),e.data("floatThead-containerWrap",o),T=!0}return o};x?(O=K(k,!0)).prepend(R):(O=K(d),d.before(R))}else d.before(R);R.css({position:I?"absolute":"fixed",marginTop:0,top:I?0:"auto",zIndex:v.zIndex}),R.addClass(v.floatContainerClass),te();var Y={"table-layout":"fixed"},Z={"table-layout":d.css("tableLayout")||"auto"},X=d[0].style.width||"",J=d.css("minWidth")||"";function Q(e){return e+".fth-"+t+".floatTHead"}function ee(){var t=0;if(s.children("tr:visible").each(function(){t+=e(this).outerHeight(!0)}),"collapse"==d.css("border-collapse")){var n=parseInt(d.css("border-top-width"),10);n>parseInt(d.find("thead tr:first").find(">*:first").css("border-top-width"),10)&&(t-=n/2)}V.outerHeight(t),W.outerHeight(t)}function te(){b=(i.isFunction(v.top)?v.top(d):v.top)||0,A=(i.isFunction(v.bottom)?v.bottom(d):v.bottom)||0}function ne(){if(!y){if(y=!0,I){var e=f(d,q,!0);e>O.width()&&d.css("minWidth",e)}d.css(Y),L.css(Y),L.append(s),g.before(H),ee()}}function oe(){y&&(y=!1,I&&d.width(X),H.detach(),d.prepend(s),d.css(Z),L.css(Z),d.css("minWidth",J),d.css("minWidth",f(d,q)))}var ie=!1;function ae(e){ie!=e&&(ie=e,d.triggerHandler("floatThead",[e,R]))}function re(e){I!=e&&(I=e,R.css({position:I?"absolute":"fixed"}))}function de(){var t,n=function(){var t,n=s.find(v.headerCellSelector);if($?t=F.find("col").length:(t=0,n.each(function(){t+=parseInt(e(this).attr("colspan")||1,10)})),t!=S){S=t;for(var o,i=[],a=[],r=[],d=0;d<t;d++)v.enableAria&&(o=n.eq(d).text())?i.push('<th scope="col" class="floatThead-col">'+o+"</th>"):i.push('<th class="floatThead-col"/>'),a.push("<col/>"),r.push("<fthtd style='display:table-cell;height:0;width:auto;'/>");a=a.join(""),i=i.join(""),c&&(r=r.join(""),N.html(r),q=N.find("fthtd")),V.html(i),W=V.find("th"),$||F.html(a),U=F.find("col"),B.html(a),j=B.find("col")}return t}();return function(){U=F.find("col");var e=function(e,t,n,o){return c?n:o?v.getSizingRow(e,t,n):t}(d,U,q,r);if(e.length==n&&n>0){if(!$)for(t=0;t<n;t++)U.eq(t).css("width","");oe();var o=[];for(t=0;t<n;t++)o[t]=m(e.get(t));for(t=0;t<n;t++)j.eq(t).width(o[t]),U.eq(t).width(o[t]);ne()}else L.append(s),d.css(Z),L.css(Z),ee();d.triggerHandler("reflowed",[R])}}function le(e){var t=k.css("border-"+e+"-width"),n=0;return t&&~t.indexOf("px")&&(n=parseInt(t,10)),n}function se(){var e,t=k.scrollTop(),n=0,o=_?E.outerHeight(!0):0,i=P?o:-o,a=R.height(),r=d.offset(),s=0,c=0;if(x){var u=k.offset();n=r.top-u.top+t,_&&P&&(n+=o),s=le("left"),c=le("top"),n-=c}else e=r.top-b-a+A+C.horizontal;var m=p.scrollTop(),h=p.scrollLeft(),f=k.scrollLeft();return function(u){var g=d[0].offsetWidth<=0&&d[0].offsetHeight<=0;if(!g&&z)return z=!1,setTimeout(function(){d.triggerHandler("reflow")},1),null;if(g&&(z=!0,!I))return null;if("windowScroll"==u?(m=p.scrollTop(),h=p.scrollLeft()):"containerScroll"==u?(t=k.scrollTop(),f=k.scrollLeft()):"init"!=u&&(m=p.scrollTop(),h=p.scrollLeft(),t=k.scrollTop(),f=k.scrollLeft()),!l||!(m<0||h<0)){if(M)re("windowScrollDone"==u);else if("windowScrollDone"==u)return null;var v,A;r=d.offset(),_&&P&&(r.top+=o);var y=d.outerHeight();if(x&&I){if(n>=t){var C=n-t+c;v=C>0?C:0,ae(!1)}else v=T?c:t,ae(!0);A=s}else!x&&I?(m>e+y+i?v=y-a+i:r.top>=m+b?(v=0,oe(),ae(!1)):(v=b+m-r.top+n+(P?o:0),ne(),ae(!0)),A=0):x&&!I?(n>t||t-n>y?(v=r.top-m,oe(),ae(!1)):(v=r.top+t-m-n,ne(),ae(!0)),A=r.left+f-h):x||I||(m>e+y+i?v=y+b-m+e+i:r.top>m+b?(v=r.top-m,ne(),ae(!1)):(v=b,ae(!0)),A=r.left-h);return{top:v,left:A}}}}function ce(){var e=null,t=null,o=null;return function(i,a,r){null==i||e==i.top&&t==i.left||(R.css({top:i.top,left:i.left}),e=i.top,t=i.left),a&&function(){var e=f(d,q,!0),t=k.width()||e;if(n)o=t;else var o="hidden"!=k.css("overflow-y")?t-C.vertical:t;if(h()>0?R.width(o):R.width(o-7),x){var i=100*e/o;L.css("width",i+"%")}else L.outerWidth(e)}(),r&&ee();var l=k.scrollLeft();I&&o==l||(R.scrollLeft(l),o=l)}}function pe(){if(k.length)if(k.data().perfectScrollbar)C={horizontal:0,vertical:0};else{var e=k.width(),t=k.height(),n=d.height(),o=f(d,q),i=e<o?w:0,a=t<n?w:0;C.horizontal=e-a<o?w:0,C.vertical=t-i<n?w:0}}pe();var ue=function(){de()()};ue();var me=se(),he=ce();he(me("init"),!0);var fe=i.debounce(function(){he(me("windowScrollDone"),!1)},1),ge=function(){he(me("windowScroll"),!1),M&&fe()},ve=function(){he(me("containerScroll"),!1)},be=i.debounce(function(){d.is(":hidden")||(pe(),te(),ue(),me=se(),he(me("reflow"),!0))},1);if(x?I?k.on(Q("scroll"),ve):(k.on(Q("scroll"),ve),p.on(Q("scroll"),ge)):p.on(Q("scroll"),ge),p.on(Q("load"),be),function(e,t){if(8==r){var n=p.width(),o=i.debounce(function(){var e=p.width();n!=e&&(n=e,t())},1);p.on(e,o)}else p.on(e,i.debounce(t,1))}(Q("resize"),function(){d.is(":hidden")||(te(),pe(),ue(),me=se(),(he=ce())(me("resize"),!0,!0))}),d.on("reflow",be),function(e){if(e.dataTableSettings)for(var t=0;t<e.dataTableSettings.length;t++){var n=e.dataTableSettings[t].nTable;if(e[0]==n)return!0}return!1}(d)&&d.on("filter",be).on("sort",be).on("page",be),p.on(Q("shown.bs.tab"),be),p.on(Q("tabsactivate"),be),a){var Ae=null;i.isFunction(v.autoReflow)&&(Ae=v.autoReflow(d,k)),Ae||(Ae=k.length?k[0]:d[0]),(o=new MutationObserver(function(e){for(var t=function(e){return e&&e[0]&&("THEAD"==e[0].nodeName||"TD"==e[0].nodeName||"TH"==e[0].nodeName)},n=0;n<e.length;n++)if(!t(e[n].addedNodes)&&!t(e[n].removedNodes)){be();break}})).observe(Ae,{childList:!0,subtree:!0})}d.data("floatThead-attached",{destroy:function(){var e=".fth-"+t;oe(),d.css(Z),F.remove(),c&&D.remove(),H.parent().length&&H.replaceWith(s),a&&(o.disconnect(),o=null),d.off("reflow reflowed"),k.off(e),T&&(k.length?k.unwrap():d.unwrap()),x?k.data("floatThead-containerWrap",!1):d.data("floatThead-containerWrap",!1),d.css("minWidth",J),R.remove(),d.data("floatThead-attached",!1),p.off(e)},reflow:function(){be()},setHeaderHeight:function(){ee()},getFloatContainer:function(){return R},getRowGroups:function(){return y?R.find(">table>thead").add(d.children("tbody,tfoot")):d.children("thead,tbody,tfoot")}})}),this}}(jQuery),function(e){e.floatThead=e.floatThead||{},e.floatThead._=window._||function(){var t={},n=Object.prototype.hasOwnProperty;t.has=function(e,t){return n.call(e,t)},t.keys=function(e){if(e!==Object(e))throw new TypeError("Invalid object");var n=[];for(var o in e)t.has(e,o)&&n.push(o);return n};var o=0;return t.uniqueId=function(e){var t=++o+"";return e?e+t:t},e.each(["Arguments","Function","String","Number","Date","RegExp"],function(){var e=this;t["is"+e]=function(t){return Object.prototype.toString.call(t)=="[object "+e+"]"}}),t.debounce=function(e,t,n){var o,i,a,r,d;return function(){a=this,i=arguments,r=new Date;var l=function(){var s=new Date-r;s<t?o=setTimeout(l,t-s):(o=null,n||(d=e.apply(a,i)))},s=n&&!o;return o||(o=setTimeout(l,t)),s&&(d=e.apply(a,i)),d}},t}()}(jQuery),Vsecure={model:{},init:function(e,t,n,o,i,a){this.model.cap=e,this.model.dvcap=t,this.model.ifrm=n,this.model.ltype=0,this.ifrmLoadedCallback=i,void 0===this.model.IsSf&&(this.model.IsSf=o),"0"==this.model.IsSf&&this.loadIfrm()},getC:function(){return void 0===this.model.cap||0==this.isCapShown()?"":$("#"+this.model.cap).val()},showHideCap:function(e){e?($("#"+this.model.dvcap).slideDown(),this.model.IsSf="0"):($("#"+this.model.cap).val(""),this.model.IsSf="1",$("#"+this.model.dvcap).slideUp())},loadIfrm:function(){if(document.getElementById(this.model.ifrm)){var e=$("#"+this.model.ifrm),t="",n=!!navigator.userAgent.match(/Trident.*/);("Microsoft Internet Explorer"==navigator.appName||n)&&(t="ie");var o=!1;if(void 0===e.attr("src")||""==e.attr("src")){"function"==typeof Captcha_IsWidget&&Captcha_IsWidget();var i="//"+location.host+"/Users/CaptchaContainer.aspx?IsW=0";e.attr("src",i),o=!0}"ie"==t?0==o&&(document.getElementById(this.model.ifrm).src=document.getElementById(this.model.ifrm).src):document.getElementById(this.model.ifrm).src=document.getElementById(this.model.ifrm).src,this.showHideLoader(!0)}},isCapShown:function(){return $("#"+this.model.dvcap).is(":visible")},isValid:function(e){if(0==this.isCapShown())return!0;var t=$("#"+this.model.cap);return void 0!==e&&""!=e||(e="errorInput"),t.val(t.val().replace("%","")),t.removeClass(e),!this.isCapShown()||""!=t.val()||(t.addClass(e),!1)},ifrmLoaded:function(){"function"==typeof this.ifrmLoadedCallback&&this.ifrmLoadedCallback(),this.showHideLoader(!1)},showHideLoader:function(e){var t=$("#apgLoading");0==t.length&&"undefined"!=typeof SignUp_Loading&&(t=$(SignUp_Loading)),t.length&&(e?t.show():t.hide())}},TwoStepAuth={model:{},init:function(e,t,n,o,i,a,r,d,l,s,c,p){this.model.pg=e,this.model.email=t,this.model.cell=n,this.model.codRecMode=o,this.model.isInit=!1,this.model.IsPolicyAck=l,this.model.userType=s,this.model.userId=void 0===c?0:c,this.model.isFromBackFromAuth=void 0!==p&&p,this.model.resendStatus=void 0===i?"sp2SResend":i,this.model.resendlnk=void 0===a?"lnk2SResend":a,this.model.txt2SCode=void 0===r?"txt2SCode":r,this.model.countryID=void 0===d?"":d,"privacypolicy"==this.model.pg?this.Set2UserPrivacyPolicyAckHtml(s):"adminLogin"!=this.model.pg&&this.Set2StepHtml()},Set2StepHtml:function(){var e;if(this.model.isSt2Shown=!0,e='<div class="signup-verify"><div class="verify-text"><div class="icon"><svg width="48" height="48" id="Layer_1" data-name="Layer 1" viewBox="0 0 60 60"><path class="cls-1" d = "M31.73,56.24c-1.57.09-3.26.14-5.16.14-6.29,0-12.54-.59-18.6-1.74-.96-.18-1.66-1.02-1.66-2v-2.48c0-8.56,7.1-15.52,15.82-15.52h8.86c2.23,0,4.45.46,6.4,1.33.93.41,2.02,0,2.44-.9.42-.91.01-1.99-.92-2.4-.84-.37-1.73-.66-2.63-.91,4.77-3.1,7.92-8.41,7.92-14.43C44.21,7.77,36.3,0,26.56,0S8.92,7.77,8.92,17.31c0,6.02,3.15,11.33,7.92,14.43-8.19,2.27-14.22,9.66-14.22,18.41v2.48c0,2.72,1.96,5.07,4.66,5.56,6.28,1.2,12.77,1.8,19.29,1.8,1.98,0,3.74-.05,5.39-.14,1.02-.06,1.79-.92,1.73-1.92-.06-1-.94-1.74-1.95-1.7h0ZM12.61,17.31c0-7.55,6.26-13.69,13.95-13.69s13.95,6.14,13.95,13.69-6.26,13.69-13.95,13.69-13.95-6.14-13.95-13.69h0Z" /><path class="cls-1" d="M53.46,43.84v-2.1c0-3.45-2.86-6.25-6.37-6.25-2.32,0-4.46,1.24-5.58,3.23-.49.88-.17,1.98.72,2.46.9.48,2.02.17,2.51-.71.47-.84,1.37-1.36,2.35-1.36,1.48,0,2.68,1.18,2.68,2.63v2.02h-8.2c-2.63,0-4.77,2.1-4.77,4.68v6.88c0,2.58,2.14,4.68,4.77,4.68h11.05c2.63,0,4.77-2.1,4.77-4.68v-6.88c0-2.3-1.7-4.2-3.92-4.6h0ZM53.69,55.32c0,.58-.48,1.06-1.08,1.06h-11.05c-.6,0-1.08-.48-1.08-1.06v-6.88c0-.58.48-1.06,1.08-1.06h11.05c.6,0,1.08.48,1.08,1.06v6.88Z" /></svg></div><h2>2-Step Authentication</h2><p id="verificationDesc">Enter the 6-digit code we sent to <strong> '+("undefined"!=this.model.cell&&null!=this.model.cell&&""!=this.model.cell?this.formatEmail(this.model.email)+"</strong> or <strong>"+this.formatCell(this.model.cell):this.formatEmail(this.model.email))+'</strong>.</p><div class="input-part" id="ulAuthCode" data-type="validcontainer"><label>Verification Code:</label><input id="'+this.model.txt2SCode+'" type="tel" pattern="d*" inputmode="numeric" name="'+this.model.txt2SCode+'" maxlength="6" autocomplete="off" class="input-box" onkeyup="_twoFactor.AllowNumberOnly(this);" placeholder="Enter 6-digit code"><div id="spnErrorCode" class="errortext">required</div><p><a href="javascript:void(0);" class="ghost-button" id="'+this.model.resendlnk+'" onclick="TwoStepAuth.resendCode();">Send a New Code</a><a href="javascript:void(0);" class="ghost-button" id="'+this.model.resendStatus+'" style="display:none"></a></p></div><div class="signup-button-center"><button id="authCodeStep" type="button" class="form-next-button w-button">Verify </button></div></div></div>',"signupNew"==this.model.pg||"Login"==this.model.pg){var t=$("#divLoginNew");this.model.title=t.find(".modal-title"),t.find(".modal-footer").removeClass("btn-left-align"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",$("#"+this.model.divLoginStep2).html(e),this.model.btnLogin=t.find("#btLogin"),this.model.btnLogin2=t.find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep2).find("#authCodeStep")}else"LoginPage"==this.model.pg?(this.model.title=$("#wrapper").find(".page-title"),recaptch.isCapShown()&&recaptch.showHideCap("False"),this.model.divLoginStep1="divPLoginStep1",this.model.divLoginStep2="divPLoginStep2",$("#logincontrol").addClass("twosteploginpage"),$(".stepLogin2 > #sp2divinnerone").hide(),$(".facebook-login-oauth .stepLogin1").hide(),$(".stepLogin2 > #sp2divinnertwo").show().html(e),this.model.btnLogin=$(".stepLogin2 > #sp2divinnertwo").find("[id*=btnLogin]"),this.model.btnLogin2=$(".stepLogin2 > #sp2divinnertwo").find("#btnPLogin2"),this.model.btnLogin3=$(".stepLogin2 > #sp2divinnertwo").find("#authCodeStep"),$("[id *=pnlogin]").attr("onkeypress","")):"CMSMaster"==this.model.pg?(t=$("[id*=pnlLogin]"),this.model.title=t.find(".Popupspanheight"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",$("#"+this.model.divLoginStep2).html(e),$("#divLoginNew .btn-left-align").removeClass("btn-left-align"),this.model.btnLogin=t.find("[id*=btnLogin]"),this.model.btnLogin2=t.find("#btnLogin2"),this.model.btnLogin3=$("#"+this.model.divLoginStep2).find("#authCodeStep"),t.find(".popupBtnDiv").addClass("login-btn-right"),t.find("[id*=pnlAddEdit]").attr("onkeypress","")):"ScreenLock"==this.model.pg&&(t=$("#divLoginPopUp"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",$("#"+this.model.divLoginStep2).html(e),this.model.btnLogin=t.find("[id*=btnLogin]"),this.model.btnLogin2=$("#divLoginNew").find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep2).find("#authCodeStep"));$("#"+this.model.txt2SCode).change(function(){$(this).removeClass("errorInput")}),$("#"+this.model.divLoginStep1).hide(),$("#divLoginNew").addClass("twostep-popup"),$("#"+this.model.divLoginStep2).show(),this.model.ulAuthCode="ulAuthCode",this.model.btnLogin3.off(),this.model.btnLogin3.on("click",this.Validate2StCod_FrntSite),this.model.btnLogin.hide(),this.model.btnLogin2.hide(),$("#"+this.model.divLoginStep2).off(),$("#"+this.model.divLoginStep2).keypress(function(e){return WebForm_FireDefaultButton(e,TwoStepAuth.model.btnLogin2.attr("id"))}),$("#"+this.model.txt2SCode).focus()},formatEmail:function(e){var t=e.split("@");return 2==t.length&&(e=this.formatCell(t[0],!0)+"@"+t[1]),e},formatCell:function(e,t=!1){var n="",o=3;e.length<=3&&(o=1);for(var i=0;i<e.length-o;i++)n+="*";if(0==t){switch(this.model.countryID){case"4":phoneNumHidden="(**) **** *";break;case"3":phoneNumHidden="***-***-*";break;case"2":phoneNumHidden="*** **** *";case"1":phoneNumHidden="(***) ***-*";break;default:phoneNumHidden=n}e=phoneNumHidden+e.substring(e.length-o,e.length)}else e=n+e.substring(e.length-o,e.length);return e},switchToStep1:function(){if(void 0!==this.model.isSt2Shown&&this.model.isSt2Shown)if(this.model.isSt2Shown=!1,$("#"+this.model.divLoginStep1).show(),$("#"+this.model.divLoginStep2).html(""),$("#"+this.model.divLoginStep2).hide(),$("#"+this.model.divLoginStep3).hide(),$("#divLoginNew").removeClass("twostep-popup"),this.model.btnLogin.show(),this.model.btnLogin2.hide(),"signupNew"==this.model.pg)$("#divLoginNew").find(".modal-footer").addClass("btn-left-align");else if("CMSMaster"==this.model.pg){var e=$("[id*=pnlLogin]");e.find(".popupBtnDiv").removeClass("login-btn-right"),$("#divLoginNew .modal-footer").addClass("btn-left-align");var t=$("[id *=pnlAddEdit]");t.off("keypress"),t.keypress(function(t){return WebForm_FireDefaultButton(t,e.find("[id*=btnLogin]").attr("id"))})}else this.model.pg},resendCode:function(){Vsecure.showHideLoader(!0),$("#"+this.model.txt2SCode).val("");var e=$("#"+this.model.resendStatus);return e.css("color",""),e.text("Sending Code ..."),$("#"+this.model.txt2SCode).removeClass("error"),$("#spnErrorCode").hide(),$("#"+this.model.resendlnk).hide(),e.show(),CallWebServicehed("MySampleService.asmx/ResendTwoStepAuthCode","",this.resendCode_Success,this.resendCode_Fail),!1},resendCode_Success:function(e){var t=$("#"+TwoStepAuth.model.resendStatus),n=$("#"+TwoStepAuth.model.resendlnk);switch(e.d){case"0":t.text("The code has been sent."),setTimeout(function(){Vsecure.showHideLoader(!1),t.hide(),n.show()},5e3);break;case"-1":t.css("color","red"),t.text("Some error has occured while resending code."),setTimeout(function(){Vsecure.showHideLoader(!1),t.hide(),n.show()},5e3);break;case"-2":t.text("You are not logged in."),setTimeout(function(){Vsecure.showHideLoader(!1),document.location=document.location},3e3)}},resendCode_Fail:function(e){var t=$("#"+TwoStepAuth.model.resendStatus),n=$("#"+TwoStepAuth.model.resendlnk);t.css("color","red"),t.text("Some error has occured while resending code."),setTimeout(function(){t.hide(),n.show(),Vsecure.showHideLoader(!0)},5e3)},is2StepShown:function(){return void 0!==this.model.isSt2Shown&&this.model.isSt2Shown},setVLogintkn:function(e){try{if(void 0===e||null==e||""==e)return;localStorage.setItem("s_utkn",e)}catch(e){console.error("storeLoginDetailsIndexDb: Error while storing menu details in IndexedDB",e)}},isNewVersionCustomerAppLogin:function(e="",t=""){var n=navigator.userAgent;if(n&&n.toLowerCase().includes("com.vagaro.customerios")&&n.toLowerCase().includes("(vagaroapp")&&!n.toLowerCase().includes("brandedapp")){if((o=n.split("(VagaroApp"))&&o.length>=2&&(i=o[1].split(")"))&&i.length>=1)return i[0].replace(/^\.+|\.+$/g,"").split(".").length<3&&(i[0]=i[0].replace(/^\.+|\.+$/g,"")+".0"),(parseInt(i[0].replace(/\./g,"").trim())||0)>(parseInt(t?t.replace(/[.~]/g,""):"357")||0)}else if(n&&n.toLowerCase().includes("com.vagaro.customerandroid")&&n.toLowerCase().includes("(vagaroapp")&&!n.toLowerCase().includes("brandedapp")){var o,i;if((o=n.split("(VagaroApp"))&&o.length>=2&&(i=o[1].split(")"))&&i.length>=1)return i[0].replace(/^\.+|\.+$/g,"").split(".").length<3&&(i[0]=i[0].replace(/^\.+|\.+$/g,"")+".0"),(parseInt(i[0].replace(/\./g,"").trim())||0)>(parseInt(e?e.replace(/[.~]/g,""):"468")||0)}return!1},Validate2StCod_FrntSite:function(){var e=$("#"+TwoStepAuth.model.txt2SCode),t=$("#spnErrorCode");if(""==e.val()||e.val().length<6||e.val().length>6)return e.html("Please enter verification code.").addClass("error"),t.show(),!1;e.removeClass("error"),t.hide(),Vsecure.showHideLoader(!0);var n="Unknown",o="";try{-1!=navigator.appVersion.indexOf("Win")?n="Windows":-1!=navigator.appVersion.indexOf("Mac")?n="Mac/iOS":-1!=navigator.appVersion.indexOf("X11")?n="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(n="Linux");var i=new Date;o=i.getFullYear()+"-"+("0"+(i.getMonth()+1)).slice(-2)+"-"+("0"+i.getDate()).slice(-2)+" "+("0"+i.getHours()).slice(-2)+":"+("0"+i.getMinutes()).slice(-2)+":"+("0"+i.getSeconds()).slice(-2)}catch(e){n="Unknown",o=""}return"undefined"!=typeof TwoStepAuth&&void 0!==TwoStepAuth.model&&void 0!==TwoStepAuth.model.IsPolicyAck||(TwoStepAuth.model.IsPolicyAck=!1),CallWebServicehed("MySampleService.asmx/Is2StepCodeValid",'"code" : '+_securelogin.getJsonVal(e.val())+',"operatingSystem" : '+_securelogin.getJsonVal(n)+',"clientDate" : '+_securelogin.getJsonVal(o)+',"IsPolicyAck" : '+TwoStepAuth.model.IsPolicyAck,function(n){switch(n.d.split("|")[0]){case"1":case"-1":e.addClass("error"),t.html("Invalid code, try again.").show(),e.val(""),e.focus();break;case"0":if(e.removeClass("error"),t.hide(),n.d.split("|").length>=2)try{"undefined"!=typeof setLogintkn&&setLogintkn(n.d.split("|")[1]),(navigator.userAgent.indexOf("com.vagaro.customerios")>-1||navigator.userAgent.indexOf("com.vagaro.customerandroid")>-1)&&navigator.userAgent.toLowerCase().indexOf("brandedapp")<0&&"undefined"!=typeof isNewVersionCustomerAppLogin&&isNewVersionCustomerAppLogin("529","428")&&CallbackforMobileApp(0,0,"",n.d.split("|")[1],0,"135")}catch(e){}_securelogin.AfterSuccessfullLogin();break;case"2":e.addClass("error"),t.html("The code has been expired. Please click resend link.").show(),e.val(""),e.focus();break;case"6":e.removeClass("error"),t.hide(),TwoStepAuth.Set2UserPrivacyPolicyAckHtml(TwoStepAuth.model.userType)}Vsecure.showHideLoader(!1),"CMSMaster"==TwoStepAuth.model.pg&&"function"==typeof hideVideobox&&hideVideobox()},function(e){_securelogin.showAlert("Something went wrong while validating the code",function(){}),Vsecure.showHideLoader(!1)}),!1},Set2UserPrivacyPolicyAckHtml:function(e){var t;if(this.model.isSt2Shown=!0,t=`\n                <div class="signup-verify">\n                    <div class="verify-text">\n                        <div class="icon">\n                            <svg width="48" height="48" id="Layer_1" data-name="Layer 1" viewBox="0 0 60 60">\n                                <path class="cls-1" d="M31.73,56.24c-1.57.09-3.26.14-5.16.14-6.29,0-12.54-.59-18.6-1.74-.96-.18-1.66-1.02-1.66-2v-2.48c0-8.56,7.1-15.52,15.82-15.52h8.86c2.23,0,4.45.46,6.4,1.33.93.41,2.02,0,2.44-.9.42-.91.01-1.99-.92-2.4-.84-.37-1.73-.66-2.63-.91,4.77-3.1,7.92-8.41,7.92-14.43C44.21,7.77,36.3,0,26.56,0S8.92,7.77,8.92,17.31c0,6.02,3.15,11.33,7.92,14.43-8.19,2.27-14.22,9.66-14.22,18.41v2.48c0,2.72,1.96,5.07,4.66,5.56,6.28,1.2,12.77,1.8,19.29,1.8,1.98,0,3.74-.05,5.39-.14,1.02-.06,1.79-.92,1.73-1.92-.06-1-.94-1.74-1.95-1.7h0ZM12.61,17.31c0-7.55,6.26-13.69,13.95-13.69s13.95,6.14,13.95,13.69-6.26,13.69-13.95,13.69-13.95-6.14-13.95-13.69h0Z"></path>\n                                <path class="cls-1" d="M53.46,43.84v-2.1c0-3.45-2.86-6.25-6.37-6.25-2.32,0-4.46,1.24-5.58,3.23-.49.88-.17,1.98.72,2.46.9.48,2.02.17,2.51-.71.47-.84,1.37-1.36,2.35-1.36,1.48,0,2.68,1.18,2.68,2.63v2.02h-8.2c-2.63,0-4.77,2.1-4.77,4.68v6.88c0,2.58,2.14,4.68,4.77,4.68h11.05c2.63,0,4.77-2.1,4.77-4.68v-6.88c0-2.3-1.7-4.2-3.92-4.6h0ZM53.69,55.32c0,.58-.48,1.06-1.08,1.06h-11.05c-.6,0-1.08-.48-1.08-1.06v-6.88c0-.58.48-1.06,1.08-1.06h11.05c.6,0,1.08.48,1.08,1.06v6.88Z"></path>\n                            </svg>\n                        </div>\n                        <h2>Updated Terms of Service</h2>\n                        <p id="verificationDesc">${1==e?"We have revised our User Agreement and Privacy Policy.  Please agree to and acknowledge them to continue using Vagaro.":"We have revised our User Agreement and Participation Agreement.  Please agree to and acknowledge them to continue using Vagaro."}</p>\n                        <div class="checkbox-pra-policy smaller web-caption-text privacyPolicyBlock">\n                            <div class="checkbox-custom-black small login-remember vagaro-checkbox" tabindex="3">\n                                <input type="checkbox" id="chkPrivacy" value="">\n                                <label for="chkPrivacy" tabindex="3" aria-label="" role="checkbox" aria-checked="false">\n                                    ${1==e?'I agree to Vagaro’s updated <a href="javascript: void(0);" style="text-decoration: underline !important;" onclick="TwoStepAuth.openWinTC(); return false; " class="web-caption-text-blue clsSingupUserAggrement" role="link">user agreement</a> and <a href="javascript:void(0);" id="aPrivacyPolicy" onclick="TwoStepAuth.openWinPP(); return false;" style="text-decoration: underline !important;" class="web-caption-text-blue clsSingupUserPolicy" role="link">privacy&nbsp;policy</a>.':'I agree to Vagaro’s updated <a href="javascript: void(0);"  onclick="TwoStepAuth.openWinTC(); return false; " class="web-caption-text-blue clsSingupUserAggrement" style="text-decoration: underline !important;" role="link">user agreement</a> and <a href="javascript:void(0);" id="aPrivacyPolicy" onclick="TwoStepAuth.openWinPA(); return false;" style="text-decoration: underline !important;" class="web-caption-text-blue clsSingupUserPolicy" role="link">participation&nbsp;agreement</a>.'}\n                                </label>\n                                <span id="privacyErr" class="errortext text-error" style="display:none;">Required</span>\n                            </div>\n                        </div>\n                        <div class="signup-button-center">\n                            <button id="ackprivacypolicy" type="button" class="form-next-button w-button green-primary-button">I Agree</button>\n                        </div>\n                    </div>\n                </div>\n            `,"signupNew"==this.model.pg||"Login"==this.model.pg||"privacypolicy"==this.model.pg){var n=$("#divLoginNew");this.model.title=n.find(".modal-title"),n.find(".modal-footer").removeClass("btn-left-align"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#"+this.model.divLoginStep3).html(t),this.model.btnLogin=n.find("#btLogin"),this.model.btnLogin2=n.find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep3).find("#ackprivacypolicy")}else"LoginPage"==this.model.pg?(this.model.title=$("#wrapper").find(".page-title"),recaptch.isCapShown()&&recaptch.showHideCap("False"),this.model.divLoginStep1="divPLoginStep1",this.model.divLoginStep2="divPLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#logincontrol").addClass("twosteploginpage"),$(".stepLogin2 > #sp2divinnerone").hide(),$(".facebook-login-oauth .stepLogin1").hide(),$(".stepLogin2 > #sp2divinnertwo").show().html(t),this.model.btnLogin=$(".stepLogin2 > #sp2divinnertwo").find("[id*=btnLogin]"),this.model.btnLogin2=$(".stepLogin2 > #sp2divinnertwo").find("#btnPLogin2"),this.model.btnLogin3=$(".stepLogin2 > #sp2divinnertwo").find("#ackprivacypolicy"),$("[id *=pnlogin]").attr("onkeypress","")):"CMSMaster"==this.model.pg?(n=$("[id*=pnlLogin]"),this.model.title=n.find(".Popupspanheight"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#"+this.model.divLoginStep3).html(t),$("#divLoginNew .btn-left-align").removeClass("btn-left-align"),this.model.btnLogin=n.find("[id*=btnLogin]"),this.model.btnLogin2=n.find("#btnLogin2"),this.model.btnLogin3=$("#"+this.model.divLoginStep3).find("#ackprivacypolicy"),n.find(".popupBtnDiv").addClass("login-btn-right"),n.find("[id*=pnlAddEdit]").attr("onkeypress","")):"ScreenLock-privacypolicy"==this.model.pg&&(n=$("#divLoginPopUp"),this.model.divLoginStep1="divLoginStep1",this.model.divLoginStep2="divLoginStep2",this.model.divLoginStep3="divLoginStep3",$("#"+this.model.divLoginStep3).html(t),this.model.btnLogin=n.find("[id*=btnLogin]"),this.model.btnLogin2=$("#divLoginNew").find("#btSNew2Login"),this.model.btnLogin3=$("#"+this.model.divLoginStep3).find("#ackprivacypolicy"));$("#dvAuth").length&&$("#dvAuth").hide(),$("#"+this.model.txt2SCode).change(function(){$(this).removeClass("errorInput")}),$("#"+this.model.divLoginStep1).hide(),$("#"+this.model.cf).hide(),$("#divLoginNew").addClass("twostep-popup"),$("#"+this.model.divLoginStep3).show(),$("#"+this.model.divLoginStep2).hide();var o=$("#divtwofactorauthentication");o.length&&o.is(":visible")&&o.hide(),this.model.btnLogin3.off(),this.model.btnLogin3.on("click",this.validatePrivacyPolicyCheckbox),this.model.btnLogin.hide(),this.model.btnLogin2.hide(),$("#"+this.model.divLoginStep3).off(),$("#"+this.model.divLoginStep3).keypress(function(e){return WebForm_FireDefaultButton(e,TwoStepAuth.model.btnLogin2.attr("id"))}),Vsecure.showHideLoader(!1)},openWinPP:function(){TwoStepAuth.CallPolicyPopup("https://www.vagaro.com/pro/privacy","Privacy Policy")},openWinTC:function(){TwoStepAuth.CallPolicyPopup("https://www.vagaro.com/pro/user-agreement","User Agreement")},openWinPA:function(){TwoStepAuth.CallPolicyPopup("https://www.vagaro.com/pro/vagaro-customer-participation-agreement","Participation Agreement")},CallPolicyPopup:function(e,t){if(vagaro.popup({title:t,message:'<style>div#iFrameOther{height:calc(100vh - 230px);overflow:auto;text-align:left;margin-bottom: 10px;padding-right:0px;}.useraggreement-popup .modal-dialog{max-width:800px;width:95%}.useraggreement-popup p{font-size:14px;line-height:20px;margin-bottom:20px;color:#1f2937cc}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.useraggreement-popup h3{color:#696969;font-weight:400;margin-bottom:15px}.useraggreement-popup ul li{font-size:16px;line-height:30px;margin-bottom:4px;margin-top:8px}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:#1f293780}.prose :where(h3):not(:where([class~=not-prose] *)){margin-top:1.6em;margin-bottom:.6em}.useraggreement-popup h1{font-size:60px;padding-bottom:24px;display:none}.useraggreement-popup a{color:#2479c7;text-decoration:none}.popupBottompart {min-height: 62px;clear: both; border-radius: 0 0 5px 5px;}.popupBtnBottom{float:right;min-width:200px;margin-right:0px;margin-top:12px}.grayButtonPlain{background:#fff;border-radius:2px;color:#333;border:1px solid rgba(0,0,0,.15);height:40px;font-weight:400;font-size:16px!important;min-width:95px;padding:8px 10px;-webkit-transition:border .2s;transition:border .2s}@media screen and (max-width: 767px){div#iFrameOther {height: 100%;}.popupBottompart {display: none;}}</style ><div id="dvAgreementPolicy" class="Loader"> <div id="divAgreementloader" class="loadImg"><span class="loaderimage"></span></div><div id="iFrameOther"></div></div>',className:"useraggreement-popup useraggreement-vg-sl-popup useraggreement-vg-popup modal-bootstrapcommon in"}),$(".useraggreement-popup").modal().find(".modal-header").find(".close").attr("data-dismiss","#dvAgreementPolicy"),$(".modal-body").append("<div class='popupBottompart block'><div class='popupBtnBottom'><input type='submit' name='btnClose' value='Close' onclick='TwoStepAuth.ClosePopup();' id='btnClose' class='grayButtonPlain secondary-button' style='float: right!important;'></div></div>"),$("#btnClose").click(function(){$(".useraggreement-popup").modal("hide")}),"undefined"!=typeof IsWebsiteBuilderCommunication&&1==IsWebsiteBuilderCommunication){var n=$("<iframe>",{src:e,frameborder:0,scrolling:"auto"});$("#iFrameOther").append(n),$(".useraggreement-popup").addClass("in"),$("#divAgreementloader").hide()}else n=$("<iframe>",{src:e,frameborder:0,scrolling:"auto"}),$("#iFrameOther").append(n),$("#divAgreementloader").hide();return!1},ClosePopup:function(){$(".useraggreement-popup").modal().find(".modal-header").find(".close").click()},validatePrivacyPolicyCheckbox:function(){if($("#chkPrivacy").is(":checked")){try{-1!=navigator.appVersion.indexOf("Win")||-1!=navigator.appVersion.indexOf("Mac")||-1!=navigator.appVersion.indexOf("X11")||navigator.appVersion.indexOf("Linux");var e=new Date;e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2),("0"+e.getHours()).slice(-2),("0"+e.getMinutes()).slice(-2),("0"+e.getSeconds()).slice(-2)}catch(e){}return CallWebServicehed("MySampleService.asmx/SaveUserPolicy",'"userId" : '+TwoStepAuth.model.userId+',"userType" : '+TwoStepAuth.getSafeInt(TwoStepAuth.model.userType),function(e){Vsecure.showHideLoader(!1),TwoStepAuth.model.isFromBackFromAuth?SkipTwoFactoFromSignIn():_securelogin.AfterSuccessfullLogin()},function(e){Vsecure.showHideLoader(!1),_securelogin.AfterSuccessfullLogin()}),$("#privacyErr").hide(),$("#chkPrivacy").focus(),!0}return $("#privacyErr").show(),$("#privacyErr").attr("style","display: block !important"),!1},getSafeInt:function(e){if(null==e||""===String(e).trim())return 0;var t=String(e).trim();return/^[0-9]+$/.test(t)?t:0}},recaptch={model:{},init:function(e){void 0===this.model.IsSf&&(this.model.IsSf=e),"0"==this.model.IsSf&&loadGoogleCaptch()},loadGoogleCaptch:function(){"undefined"!=typeof IsShowCapcha&&null!=IsShowCapcha&&recaptch.showHideCap(IsShowCapcha),"undefined"!=typeof grecaptcha&&$("#dvCaptcha").length>0&&""==$("#dvCaptcha").html()&&void 0!==grecaptcha.render&&(dvcontainer=grecaptcha.render("dvCaptcha",{sitekey:ReCaptchSiteKey,"expired-callback":function(e){recaptch.reset(),c_responce=null},callback:function(e){$("[id*=txtCaptcha]").val(c_responce),$("[id*=rfvCaptcha]").hide(),c_responce=e}}))},loadGoogleCaptchForSignup:function(){"undefined"!=typeof IsShowCapcha&&null!=IsShowCapcha&&recaptch.showHideCap(IsShowCapcha),"undefined"!=typeof grecaptcha&&$("#dvCaptcha").length>0&&""==$("#dvCaptcha").html()&&void 0!==grecaptcha.render&&(dvcontainer=grecaptcha.render("dvCaptcha",{sitekey:ReCaptchSiteKey,"expired-callback":function(e){recaptch.reset(),c_responce=null},callback:function(e){$("[id*=txtCaptcha]").val(c_responce),$("[id*=rfvCaptcha]").hide(),c_responce=e,null!=c_responce&&"undefined"!=typeof vm&&null!=vm&&void 0!==vm.LoadCCFrame&&(vm.LoadCCFrame(),recaptch.showHideCap("False"),recaptch.reset())}}))},getResonce:function(){return null==c_responce?"":c_responce},showHideCap:function(e){"False"===e?($("#divloginSCap").slideUp(),recaptch.chkStringUndefinedOrNot(window.location.pathname)||"/oauth/fb"!=window.location.pathname.toString().toLowerCase()||$(".facebook-login-oauth").removeClass("facebook-oauth-catcha"),this.model.IsSf="1"):($("#divloginSCap").slideDown(),recaptch.chkStringUndefinedOrNot(window.location.pathname)||"/oauth/fb"!=window.location.pathname.toString().toLowerCase()||$(".facebook-login-oauth").addClass("facebook-oauth-catcha"),this.model.IsSf="0")},isCapAllowtoShow:function(){return"undefined"!=typeof IsShowCapcha&&IsShowCapcha},isCapShown:function(){return $("#divloginSCap").is(":visible")},reset:function(){"undefined"!=typeof grecaptcha&&grecaptcha&&grecaptcha.reset&&(grecaptcha.reset(dvcontainer),$("[id*=txtCaptcha]").val(""),c_responce=null)},chkStringUndefinedOrNot:function(e){return void 0===e||null==e||""==e||null==e}},"undefined"!=typeof IsShowCapcha&&null!=IsShowCapcha&&recaptch.showHideCap(IsShowCapcha),function(e){function t(t,n,o,i){var a={data:i||0===i||!1===i?i:n?n.data:{},_wrap:n?n._wrap:null,tmpl:null,parent:n||null,nodes:[],calls:l,nest:s,wrap:c,html:p,update:u};return t&&e.extend(a,t,{nodes:[],parent:n}),o&&(a.tmpl=o,a._ctnt=a._ctnt||a.tmpl(e,a),a.key=++y,(w.length?b:v)[y]=a),a}function n(t,i,a){var r,l=a?e.map(a,function(e){return"string"==typeof e?t.key?e.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+f+'="'+t.key+'" $2'):e:n(e,t,e._ctnt)}):t;return i?l:((l=l.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,n,i,a){d(r=e(i).get()),n&&(r=o(n).concat(r)),a&&(r=r.concat(o(a)))}),r||o(l))}function o(t){var n=document.createElement("div");return n.innerHTML=t,e.makeArray(n.childNodes)}function i(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+e.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,n,o,i,a,d,l){var s,c,p,u=e.tmpl.tag[o];if(!u)throw"Unknown template tag: "+o;return s=u._default||[],d&&!/\w$/.test(a)&&(a+=d,d=""),a?(a=r(a),l=l?","+r(l)+")":d?")":"",c=d?a.indexOf(".")>-1?a+r(d):"("+a+").call($item"+l:a,p=d?c:"(typeof("+a+")==='function'?("+a+").call($item):("+a+"))"):p=c=s.$1||"null",i=r(i),"');"+u[n?"close":"open"].split("$notnull_1").join(a?"typeof("+a+")!=='undefined' && ("+a+")!=null":"true").split("$1a").join(p).split("$1").join(c).split("$2").join(i||s.$2||"")+"__.push('"})+"');}return __;")}function a(t,o){t._wrap=n(t,!0,e.isArray(o)?o:[g.test(o)?o:e(o).html()]).join("")}function r(e){return e?e.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function d(n){function o(n){function o(e){r=l[e+=d]=l[e]||t(r,v[r.parent.key+d]||r.parent)}var i,a,r,s,c=n;if(s=n.getAttribute(f)){for(;c.parentNode&&1===(c=c.parentNode).nodeType&&!(i=c.getAttribute(f)););i!==s&&(c=c.parentNode?11===c.nodeType?0:c.getAttribute(f)||0:0,(r=v[s])||((r=t(r=b[s],v[c]||b[c])).key=++y,v[y]=r),C&&o(s)),n.removeAttribute(f)}else C&&(r=e.data(n,"tmplItem"))&&(o(r.key),v[r.key]=r,c=(c=e.data(n.parentNode,"tmplItem"))?c.key:0);if(r){for(a=r;a&&a.key!=c;)a.nodes.push(n),a=a.parent;delete r._ctnt,delete r._wrap,e.data(n,"tmplItem",r)}}for(var i,a,r,d="_"+C,l={},s=0,c=n.length;s<c;s++)if(1===(i=n[s]).nodeType){for(r=(a=i.getElementsByTagName("*")).length-1;r>=0;r--)o(a[r]);o(i)}}function l(e,t,n,o){if(!e)return w.pop();w.push({_:e,tmpl:t,item:this,data:n,options:o})}function s(t,n,o){return e.tmpl(e.template(t),n,o,this)}function c(t,n){var o=t.options||{};return o.wrapped=n,e.tmpl(e.template(t.tmpl),t.data,o,t.item)}function p(t,n){var o=this._wrap;return e.map(e(e.isArray(o)?o.join(""):o).filter(t||"*"),function(e){return n?e.innerText||e.textContent:e.outerHTML||function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e)})}function u(){var t=this.nodes;e.tmpl(null,null,null,this).insertBefore(t[0]),e(t).hide(),e(t).remove()}var m,h=e.fn.domManip,f="_tmplitem",g=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,v={},b={},A={key:0,data:{}},y=0,C=0,w=[];e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){e.fn[t]=function(o){var i,a,r,d,l=[],s=e(o),c=1===this.length&&this[0].parentNode;if(m=v||{},c&&11===c.nodeType&&1===c.childNodes.length&&1===s.length)s[n](this[0]),l=this;else{for(a=0,r=s.length;a<r;a++)C=a,i=(a>0?this.clone(!0):this).get(),e(s[a])[n](i),l=l.concat(i);C=0,l=this.pushStack(l,t,s.selector)}return d=m,m=null,e.tmpl.complete(d),l}}),e.fn.extend({tmpl:function(t,n,o){return e.tmpl(this[0],t,n,o)},tmplItem:function(){return e.tmplItem(this[0])},template:function(t){return e.template(t,this[0])},domManip:function(t,n,o){if(t[0]&&e.isArray(t[0])){for(var i,a=e.makeArray(arguments),r=t[0],d=r.length,l=0;l<d&&!(i=e.data(r[l++],"tmplItem")););i&&C&&(a[2]=function(t){e.tmpl.afterManip(this,t,o)}),h.apply(this,a)}else h.apply(this,arguments);return C=0,m||e.tmpl.complete(v),this}}),e.extend({tmpl:function(o,i,r,d){var l,s=!d;if(s)d=A,o=e.template[o]||e.template(null,o),b={};else if(!o)return o=d.tmpl,v[d.key]=d,d.nodes=[],d.wrapped&&a(d,d.wrapped),e(n(d,null,d.tmpl(e,d)));return o?("function"==typeof i&&(i=i.call(d||{})),r&&r.wrapped&&a(r,r.wrapped),l=e.isArray(i)?e.map(i,function(e){return e?t(r,d,o,e):null}):[t(r,d,o,i)],s?e(n(d,null,l)):l):[]},tmplItem:function(t){var n;for(t instanceof e&&(t=t[0]);t&&1===t.nodeType&&!(n=e.data(t,"tmplItem"))&&(t=t.parentNode););return n||A},template:function(t,n){return n?("string"==typeof n?n=i(n):n instanceof e&&(n=n[0]||{}),n.nodeType&&(n=e.data(n,"tmpl")||e.data(n,"tmpl",i(n.innerHTML))),"string"==typeof t?e.template[t]=n:n):t?"string"!=typeof t?e.template(null,t):e.template[t]||e.template(null,g.test(t)?t:e(t)):null},encode:function(e){return(""+e).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),e.extend(e.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){v={}},afterManip:function(t,n,o){var i=11===n.nodeType?e.makeArray(n.childNodes):1===n.nodeType?[n]:[];o.call(t,n),d(i),C++}})}(jQuery),function(e,t,n){"use strict";!function e(t,n,o){function i(r,d){if(!n[r]){if(!t[r]){var l="function"==typeof require&&require;if(!d&&l)return l(r,!0);if(a)return a(r,!0);var s=new Error("Cannot find module '"+r+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[r]={exports:{}};t[r][0].call(c.exports,function(e){var n=t[r][1][e];return i(n||e)},c,c.exports,e,t,n,o)}return n[r].exports}for(var a="function"==typeof require&&require,r=0;r<o.length;r++)i(o[r]);return i}({1:[function(o,i,a){var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var d,l,s,c,p=o("./modules/handle-dom"),u=o("./modules/utils"),m=o("./modules/handle-swal-dom"),h=o("./modules/handle-click"),f=r(o("./modules/handle-key")),g=r(o("./modules/default-params")),v=r(o("./modules/set-params"));a.default=s=c=function(){function o(e){var t=i;return t[e]===n?g.default[e]:t[e]}var i=arguments[0];if(p.addClass(t.body,"stop-scrolling"),m.resetInput(),i===n)return u.logStr("SweetAlert expects at least 1 attribute!"),!1;var a=u.extend({},g.default);switch(typeof i){case"string":a.title=i,a.text=arguments[1]||"",a.type=arguments[2]||"";break;case"object":if(i.title===n)return u.logStr('Missing "title" argument!'),!1;for(var r in a.title=i.title,g.default)a[r]=o(r);a.confirmButtonText=a.showCancelButton?"Confirm":g.default.confirmButtonText,a.confirmButtonText=o("confirmButtonText"),a.doneFunction=arguments[1]||null;break;default:return u.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof i),!1}"undefined"!=typeof SweetAlertBeforeOpenCallback&&SweetAlertBeforeOpenCallback(arguments,m.getModal()),v.default(a),m.fixVerticalPosition(),m.openModal(arguments[1]),"undefined"!=typeof SweetAlertOpenCallback&&SweetAlertOpenCallback(arguments,m.getModal());for(var s=m.getModal(),b=s.querySelectorAll("button"),A=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],y=function(e){return h.handleButton(e,a,s)},C=0;C<b.length;C++)for(var w=0;w<A.length;w++){var S=A[w];b[C][S]=y}m.getOverlay().onclick=y,d=e.onkeydown;e.onkeydown=function(e){return f.default(e,a,s)},e.onfocus=function(){setTimeout(function(){l!==n&&(l.focus(),l=n)},0)},c.enableButtons()},s.setDefaults=c.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");u.extend(g.default,e)},s.close=c.close=function(){$(".gencutom-title").html("Alert");var o=m.getModal();"undefined"!=typeof SweetAlertCloseCallback&&setTimeout(function(){SweetAlertCloseCallback(e.previousActiveElement,o)},1),p.fadeOut(m.getOverlay(),5),p.fadeOut(o,5),p.removeClass(o,"showSweetAlert"),p.addClass(o,"hideSweetAlert"),p.removeClass(o,"visible");var i=o.querySelector(".sa-icon.sa-success");p.removeClass(i,"animate"),p.removeClass(i.querySelector(".sa-tip"),"animateSuccessTip"),p.removeClass(i.querySelector(".sa-long"),"animateSuccessLong");var a=o.querySelector(".sa-icon.sa-error");p.removeClass(a,"animateErrorIcon"),p.removeClass(a.querySelector(".sa-x-mark"),"animateXMark");var r=o.querySelector(".sa-icon.sa-warning");return p.removeClass(r,"pulseWarning"),p.removeClass(r.querySelector(".sa-body"),"pulseWarningIns"),p.removeClass(r.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=o.getAttribute("data-custom-class");p.removeClass(o,e)},300),p.removeClass(t.body,"stop-scrolling"),e.onkeydown=d,e.previousActiveElement&&e.previousActiveElement.focus(),l=n,clearTimeout(o.timeout),!0},s.showInputError=c.showInputError=function(e){var t=m.getModal(),n=t.querySelector(".sa-input-error");p.addClass(n,"show");var o=t.querySelector(".sa-error-container");p.addClass(o,"show"),o.querySelector("p").innerHTML=e,setTimeout(function(){s.enableButtons()},1),t.querySelector("input").focus()},s.resetInputError=c.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=m.getModal(),n=t.querySelector(".sa-input-error");p.removeClass(n,"show");var o=t.querySelector(".sa-error-container");p.removeClass(o,"show")},s.disableButtons=c.disableButtons=function(){var e=m.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},s.enableButtons=c.enableButtons=function(){var e=m.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},void 0!==e?e.sweetAlert=e.swal=s:u.logStr("SweetAlert is a frontend module!"),i.exports=a.default},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.default={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#eb6663",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1},t.exports=n.default},{}],3:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var i=t("./utils"),a=(t("./handle-swal-dom"),t("./handle-dom")),r=function(e,t){var n=!0;a.hasClass(e,"show-input")&&((n=e.querySelector("input").value)||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},d=function(e,t){var n=String(t.doneFunction).replace(/\s/g,"");"function("===n.substring(0,9)&&")"!==n.substring(9,10)&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};o.default={handleButton:function(t,n,o){function l(e){h&&n.confirmButtonColor&&(m.style.backgroundColor=e)}var s,c,p,u=t||e.event,m=u.target||u.srcElement,h=-1!==m.className.indexOf("confirm"),f=-1!==m.className.indexOf("sweet-overlay"),g=a.hasClass(o,"visible"),v=n.doneFunction&&"true"===o.getAttribute("data-has-done-function");switch(h&&n.confirmButtonColor&&(s=n.confirmButtonColor,c=i.colorLuminance(s,-.04),p=i.colorLuminance(s,-.14)),u.type){case"mouseover":case"mouseup":l(c);break;case"mouseout":l(s);break;case"mousedown":l(p);break;case"focus":var b=o.querySelector("button.confirm"),A=o.querySelector("button.cancel");h?A.style.boxShadow="none":b.style.boxShadow="none";break;case"click":var y=o===m,C=a.isDescendant(o,m);if(!y&&!C&&g&&!n.allowOutsideClick)break;h&&v&&g?r(o,n):v&&g||f?d(o,n):a.isDescendant(o,m)&&"BUTTON"===m.tagName&&sweetAlert.close()}},handleConfirm:r,handleCancel:d},n.exports=o.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,o,i){Object.defineProperty(i,"__esModule",{value:!0});var a=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},r=function(e){e.style.opacity="",e.style.display="block"},d=function(e){e.style.opacity="",e.style.display="none"};i.hasClass=a,i.addClass=function(e,t){a(e,t)||(e.className+=" "+t)},i.removeClass=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(a(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},i.escapeHtml=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},i._show=r,i.show=function(e){if(e&&!e.length)return r(e);for(var t=0;t<e.length;++t)r(e[t])},i._hide=d,i.hide=function(e){if(e&&!e.length)return d(e);for(var t=0;t<e.length;++t)d(e[t])},i.isDescendant=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},i.getTopMargin=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;if("undefined"!=typeof setPopupPosi&&"undefined"!=typeof getQueryStringData||"undefined"!=typeof setPopupPosi&&"undefined"!=typeof WebsiteBuilderType){if("Builder"==getQueryStringData("Type")||"undefined"!=typeof WebsiteBuilderType&&"Builder"==WebsiteBuilderType){var o=n/2+50;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none",+parseInt(Number(scrollPositionW)+o)+"px"}return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"}return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},i.fadeIn=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(o,t)});o()}e.style.display="block"},i.fadeOut=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(o,t):e.style.display="none"});o()},i.fireClick=function(n){if("function"==typeof MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var i=t.createEvent("MouseEvents");i.initEvent("click",!1,!1),n.dispatchEvent(i)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},i.stopEventPropagation=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)}},{}],5:[function(t,o,i){Object.defineProperty(i,"__esModule",{value:!0});var a=t("./handle-dom"),r=t("./handle-swal-dom");i.default=function(t,o,i){var d=t||e.event,l=d.keyCode||d.which,s=i.querySelector("button.confirm"),c=i.querySelector("button.cancel"),p=i.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var u=d.target||d.srcElement,m=-1,h=0;h<p.length;h++)if(u===p[h]){m=h;break}9===l?(u=-1===m?s:m===p.length-1?p[0]:p[m+1],a.stopEventPropagation(d),u.focus(),o.confirmButtonColor&&r.setFocusStyle(u,o.confirmButtonColor)):13===l?("INPUT"===u.tagName&&(u=s,s.focus()),u=-1===m?s:n):27===l&&!0===o.allowEscapeKey?(u=c,a.fireClick(u,d)):u=n}},o.exports=i.default},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,o,i){var a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});var r=n("./utils"),d=n("./handle-dom"),l=a(n("./default-params")),s=a(n("./injected-html")),c=function(){var e=t.createElement("div");for(e.innerHTML=s.default;e.firstChild;)t.body.appendChild(e.firstChild)},p=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(".sweet-alert");return e||(c(),e=p()),e}),u=function(){var e=p();return e?e.querySelector("input"):void 0},m=function(){return t.querySelector(".sweet-overlay")},h=function(e){if(e&&13===e.keyCode)return!1;var t=p(),n=t.querySelector(".sa-input-error");d.removeClass(n,"show");var o=t.querySelector(".sa-error-container");d.removeClass(o,"show")};i.sweetAlertInitialize=c,i.getModal=p,i.getOverlay=m,i.getInput=u,i.setFocusStyle=function(e,t){var n=r.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},i.openModal=function(n){var o=p();d.fadeIn(m(),10),d.show(o),d.addClass(o,"showSweetAlert"),d.removeClass(o,"hideSweetAlert"),e.previousActiveElement=t.activeElement,o.querySelector("button.confirm").focus(),setTimeout(function(){d.addClass(o,"visible"),"undefined"!=typeof WebsiteBuilderType&&"Builder"==WebsiteBuilderType&&d.addClass(o,"wbshowSweetAlert")},500);var i=o.getAttribute("data-timer");if("null"!==i&&""!==i){var a=n;o.timeout=setTimeout(function(){(a?"true"===o.getAttribute("data-has-done-function"):null)?a(null):sweetAlert.close()},i)}},i.resetInput=function(){var e=p(),t=u();d.removeClass(e,"show-input"),t.value=l.default.inputValue,t.setAttribute("type",l.default.inputType),t.setAttribute("placeholder",l.default.inputPlaceholder),h()},i.resetInputError=h,i.fixVerticalPosition=function(){p().style.marginTop=d.getTopMargin(p())}},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.default='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert vagaro-modal"><div class="gencustom-head"><div class="gencutom-title modal-title">Alert</div><button class="gencustom-close"></button></div><div class="gencustom-content"><div class="sa-icon sa-error">\n      <span class="sa-x-mark">\n        <span class="sa-line sa-left"></span>\n        <span class="sa-line sa-right"></span>\n      </span>\n    </div><div class="sa-icon sa-warning">\n      <span class="sa-body"></span>\n      <span class="sa-dot"></span>\n    </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n      <span class="sa-line sa-tip"></span>\n      <span class="sa-line sa-long"></span>\n\n      <div class="sa-placeholder"></div>\n      <div class="sa-fix"></div>\n    </div><div class="sa-icon sa-custom"></div><h2 class="web-body-font-secondary">Title</h2>\n    <p>Text</p>\n    <fieldset>\n      <input type="text" tabIndex="3" />\n      <div class="sa-input-error"></div>\n    </fieldset><div class="sa-error-container">\n      <div class="icon">!</div>\n      <p>Not valid!</p>\n    </div></div><div class="sa-button-container">\n      <button class="cancel secondary-button" tabIndex="2">Cancel</button>\n      <div class="sa-confirm-button-container">\n        <button class="confirm btn btn-primary green-primary-button" tabIndex="1">OK</button><div class="la-ball-fall">\n          <div></div>\n          <div></div>\n          <div></div>\n        </div>\n      </div>\n    </div></div>',t.exports=n.default},{}],8:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});var i=e("./utils"),a=e("./handle-swal-dom"),r=e("./handle-dom"),d=["error","warning","info","success","input","prompt"];o.default=function(e){var t=a.getModal(),o=t.querySelector("h2"),l=t.querySelector("p"),s=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(o.innerHTML=e.html?e.title:r.escapeHtml(e.title).split("\n").join("<br>"),l.innerHTML=e.html?e.text:r.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&r.show(l),e.customClass)r.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var p=t.getAttribute("data-custom-class");r.removeClass(t,p),t.setAttribute("data-custom-class","")}if(r.hide(t.querySelectorAll(".sa-icon")),e.type&&!i.isIE8()){var u=function(){for(var o=!1,i=0;i<d.length;i++)if(e.type===d[i]){o=!0;break}if(!o)return logStr("Unknown alert type: "+e.type),{v:!1};var l=n;-1!==["success","error","warning","info"].indexOf(e.type)&&(l=t.querySelector(".sa-icon.sa-"+e.type),r.show(l));var s=a.getInput();switch(e.type){case"success":r.addClass(l,"animate"),r.addClass(l.querySelector(".sa-tip"),"animateSuccessTip"),r.addClass(l.querySelector(".sa-long"),"animateSuccessLong");break;case"error":r.addClass(l,"animateErrorIcon"),r.addClass(l.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":r.addClass(l,"pulseWarning"),r.addClass(l.querySelector(".sa-body"),"pulseWarningIns"),r.addClass(l.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":s.setAttribute("type",e.inputType),s.value=e.inputValue,s.setAttribute("placeholder",e.inputPlaceholder),r.addClass(t,"show-input"),setTimeout(function(){s.focus(),s.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof u)return u.v}if(e.imageUrl){var m=t.querySelector(".sa-icon.sa-custom");m.style.backgroundImage="url("+e.imageUrl+")",r.show(m);var h=80,f=80;if(e.imageSize){var g=e.imageSize.toString().split("x"),v=g[0],b=g[1];v&&b?(h=v,f=b):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}m.setAttribute("style",m.getAttribute("style")+"width:"+h+"px; height:"+f+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?s.style.display="inline-block":r.hide(s),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":r.hide(c),e.cancelButtonText&&(s.innerHTML=r.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=r.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,a.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var A=!!e.doneFunction;t.setAttribute("data-has-done-function",A),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)},t.exports=o.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});o.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},o.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},o.isIE8=function(){return e.attachEvent&&!e.addEventListener},o.logStr=function(t){e.console&&e.console.log("SweetAlert: "+t)},o.colorLuminance=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,o,i="#";for(o=0;3>o;o++)n=parseInt(e.substr(2*o,2),16),i+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16))).substr(n.length);return i}},{}]},{},[1]),"function"==typeof define1&&define1.amd?define1(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),$(document).ready(function(){$("#sweetalertClose").length&&$("#sweetalertClose").on("click",function(){$("#sweetConfirmbutton").trigger("click")})}),function(e){"use strict";e.fn.ZenSwipeCard=function(t,n){e.isFunction(t)&&(t=null);var o,i=e.extend({},e.fn.ZenSwipeCard.defaults,t),a=this;function r(t){if("https://portal.zenswipe.com"==t.origin||-1!=t.origin.indexOf("localhost")||-1!=t.origin.indexOf("localdev.com")||-1!=t.origin.indexOf("js.stripe.com")||-1!=t.origin.indexOf("10.10")||-1!=t.origin.indexOf("vagaro")||-1!==t.origin.indexOf("bookitall.com")||-1!==t.origin.indexOf("zenswipe.com")){var n=JSON.parse(t.data||t.originalEvent.data);switch(n.eventType){case"ECHO":i.loaded=!0;break;case"getSize":l(i.receivers.onGetSize,n);break;case"required":return l(i.receivers.onRequired,n),void l(i.receivers.onHideLoading,n);case"closeFrame":l(i.receivers.onClose,n),l(i.receivers.onHideLoading,n),vui.frame.destroy();break;case"getToken":!function(t){if(0==parseInt(i.afterCallBackHandle)&&null!=t.data&&1e3!=t.data.custom_code){e("#"+vui.contentContainer).hide(),null!=vui.loader&&vui.loader(!1);var n=t.data.Message;return null!=t.data.subResponseCode&&""!=t.data.subResponseCode&&(n+="<br />Error Code:"+t.data.paymentGateway+"-"+t.data.subResponseCode),void swal({type:"error",timer:6e3,showCancelButton:!1,html:!0,title:n,text:"",customClass:"sweet-alert-model"})}var o=function(e){return null!=e&&null!=e.data&&1e3==e.data.custom_code&&null!=e.data.data&&null!=e.data.data.ThreeDSRedirectURL&&""!=e.data.data.ThreeDSRedirectURL?e.data.data.ThreeDSRedirectURL:""}(t);if(""!=o&&1==function(){if(e("body").find("#frame3d_cardintent").length<=0){var t="<div class='zenswipe-payment-frame' id='frame3d_cardintent'><div class='zenswipe-payment-container'><div  class='zenswipe-payment-inner'><div class='zen-close-btn'><img src='https://vagaro.azureedge.net/static-content/Images/popup-close-img.png' onclick='_cardIntendent.CloseCardIntendentInfo(false);' style='cursor: pointer;'></div><div id='divframe3d_cardintent' class='zenswipe-iframe-wrapper'></div > </div ></div ></div > ";e("body").append(t)}return!0}()){var a={};0!=parseInt(i.afterCallBackHandle)&&1!=parseInt(i.afterCallBackHandle)&&""!=i.afterCallBackHandle&&null!=t.data&&1e3==t.data.custom_code&&"function"==typeof i.afterCallBackHandle&&""!=i.afterCallBackHandle?a.SuccessCallBack=i.afterCallBackHandle:a.SuccessCallBack=i.receivers.onGetToken,a.FailedCallback=s,a.PaymentIntentURL=o,a.CountryID=vui.ccCountryId,a.SuccessCallBackResponse=t,a.FailedCallBackResponse=vui.frmValue,_cardIntendent.LoadCardIntendentInfo(a)}else 0!=parseInt(i.afterCallBackHandle)&&1!=parseInt(i.afterCallBackHandle)&&""!=i.afterCallBackHandle&&null!=t.data&&1e3==t.data.custom_code&&"function"==typeof i.afterCallBackHandle&&""!=i.afterCallBackHandle?l(i.afterCallBackHandle,t):l(i.receivers.onGetToken,t);l(i.receivers.onHideLoading,t)}(n);case"hideLoading":l(i.receivers.onHideLoading,n);break;case"displayLoading":l(i.receivers.onDisplayLoading,n);break;case"applicationSuccess":l(i.receivers.onApplicationSuccess,n);break;case"error":l(i.receivers.onZSDown,n);break;case"sendMessage":l(i.receivers.onMessage,n);break;case"frameExpire":console.log(n);break;case"focusin":l(i.receivers.onFocusIn,n);break;case"focusout":l(i.receivers.onFocusOut,n);break;case"tabfocused":l(i.receivers.onTabfocused,n);break;case"setHeight":if(void 0!==n.id&&null!=n.id&&"forms"==n.id);else if(e(vui.frame).find("iframe").css("height",n.height+"px"),e(".settingmainwhitebg").css("min-height",parseInt(n.height+10)+"px"),void 0!==e("#hdnIsFromSignup").val()&&null!=e("#hdnIsFromSignup").val()&&e("#hdnIsFromSignup").val().length>0){var o=e("#hdnIsFromSignup").val();void 0!==o&&null!=o&&""!=o&&"1"==o&&e("iframe").length>0&&parseInt(n.height+10)<e("iframe").parent().height()&&e("iframe").css("height",e("iframe").parent().height())}break;case"iframe_Loaded":case"parent_screen":l(i.receivers.onMessage,n);break;case"RanderPager":l(i.receivers.onRanderPager,n);break;case"showHideSaveCancel":l(i.receivers.onShowHideSaveCancel,n);break;case"merchantsuccess":l(i.receivers.onMerchantSuccess,n);break;case"scrollToTop":l(i.receivers.onscrollToTop,n);break;case"DepositPopup":l(i.receivers.onDepositPopup,n);break;case"Tab1099detail":l(i.receivers.onTab1099detail,n);break;case"Showpdf":l(i.receivers.onShowpdf,n);break;case"datepickerShowHide":l(i.receivers.ondatepickerShowHide,n);break;case"ccvalid":l(i.receivers.onCcValid,n);break;case"setresponsiveheight":l(i.receivers.onResponsiveIframe,n);break;case"verifyaddresshideloading":l(i.receivers.onverifyaddresshideloading,n);break;case"transactiondetailforchargeback":l(i.receivers.onTransactionDetailForChargeback,n);break;case"customerforchargeback":l(i.receivers.onCustomerForChargeback,n);break;case"updatenotificationpanel":l(i.receivers.onUpdateNotificationPanel,n);break;case"updateacceptrefund":l(i.receivers.onUpdateAcceptRefund,n);break;case"showAcceptSubmitPopup":l(i.receivers.onShowAcceptSubmitPopup,n);break;case"setVMSPlanTitle":l(i.receivers.onSetVMSPlanTitle,n);break;case"finishLater":l(i.receivers.onFinishLater,n);break;case"backToHardwarePage":l(i.receivers.onBackToHardwarePage,n);break;case"MongoIdofVMSApplication":l(i.receivers.onMongoIdofVMSApplication,n);break;case"PlaidLinkTokenId":l(i.receivers.onPlaidLinkTokenId,n);break;case"VMSApplicationCompleteWebView":l(i.receivers.onVMSApplicationCompleteWebView,n);break;case"onBrowserBackEventSendtoVagaro":l(i.receivers.onBrowserBackEventSendtoVagaro,n);break;case"AddLogInAmplitude":l(i.receivers.AddLogInAmplitude,n);break;case"askVagaroForVMSStep":l(i.receivers.askVagaroForVMSStep,n);break;case"GetVagaroLink":l(i.receivers.GetVagaroLink,n);break;case"ShowHideBackArrow":l(i.receivers.ShowHideBackArrow,n);break;case"CardFrameExpire":l(i.receivers.CardFrameExpire,n);break;case"SaveBatchTimeResponse":l(i.receivers.onSaveBatchTimeResponse,n);break;case"SendbatchTime":l(i.receivers.onSendbatchTime,n);break;case"OpenChangeBatchPopup":l(i.receivers.OpenChangeBatchPopup,n);break;case"CyberSourceTrackingId":l(i.receivers.onCyberSourceTrackingId,n);break;case"GetConnecttoBusinessName":l(i.receivers.onBusinessLst,n);break;case"createMerchantSuccess":l(i.receivers.onCreateMerchantSuccess,n);break;case"ShowHideToolTip":l(i.receivers.onShowHideToolTip,n);break;case"GetVagaroVMSLogData":l(i.receivers.onGetVagaroVMSLogData,n);break;case"ZenwipetoVagaroInstantPayoutPostMessage":l(i.receivers.ZenwipetoVagaroInstantPayoutPostMessage,n);break;case"InstantPayoutMobilecallback":l(i.receivers.onInstantPayoutMobilecallback,n);break;case"DepositMerchantFilterCall":l(i.receivers.onDepositMerchantFilterCall,n);break;case"InstantPayoutMobilecallbackReturn":l(i.receivers.onInstantPayoutMobilecallbackReturn,n);break;case"InsPayAddLogInAmplitude":l(i.receivers.onInsPayAddLogInAmplitude,n)}}}return a.post=i.post,a.destroy=function(){window.removeEventListener("message",r,!1),null!=a&&(a.each(function(){e.data(this,""),e(this).attr("style","").removeData().hide().html("")}),a=null)},a.zenswipe={submit:function(){d('{"eventType": "submit"}')},submitwithaddress:function(e,t){if(1==parseInt(t)){if(null==e||""==e)return l(i.receivers.onRequired,"Zip code is required"),l(i.receivers.onHideLoading),!1}else e="";d('{"eventType": "submitwithaddress", "zip_code" : "'+e+'" , "country_id" : "'+t+'"}')},getSize:function(){d('{"eventType": "getSize"}')},addStyle:function(e){d('{"eventType": "addStyle", "style" : "'+e.replace(/"/g,"'")+'"}')},removeCardOption:function(e){d('{"eventType" : "removeCardOption", "option" : "'+e+'"}')},draftApplication:function(){d('{"eventType": "draftApplication"}')},submitApplication:function(){d('{"eventType": "submitApplication"}')},validate:function(){d('{"eventType": "validate"}')},addButtonText:function(e){d('{"eventType" : "addButtonText", "text" : "'+e+'"}')},checkWebView:function(e){d('{"eventType": "checkWebView","iswebview" : "'+e+'"}')},ignorePro:function(e){d('{"eventType": "ignorePro","ignorePro" : "'+e+'"}')},getHeight:function(){d('{"eventType": "getHeight"}')},setScreen:function(e,t,n,o,i){d(JSON.stringify({eventType:"setScreen",objScreen:""+e,topoffset:""+t,headeroffset:""+n,divgotit:""+o,divouterheight:""+i}))},hideSubmitButton:function(){d('{"eventType": "hideSubmitButton"}')},showSubmitButton:function(){d('{"eventType": "showSubmitButton"}')},hidePopup:function(){d('{"eventType": "hidePopup"}')},getReportdata:function(e,t,n,o){d('{"eventType": "getReportdata","isPreviousBtn" : "'+e+'","isRenderPaging" : "'+t+'","currentPageno" : "'+n+'","pageSize" : "'+o+'"}')},saveMerchantEditDetails:function(e,t){d('{"eventType": "saveMerchantEditDetails","IsCyberSourceEnable" : '+e+',"UserType":"'+t+'"}')},cancelBtnClick:function(){d('{"eventType": "cancelBtnClick"}')},exportReportData:function(){d('{"eventType": "exportReportData"}')},printReportData:function(){d('{"eventType": "printReportData"}')},OnexportDeposittransactions:function(e,t,n,o){d('{"eventType": "OnexportDeposittransactions","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+n+'","GateWayType" : "'+o+'"}')},OnprintDeposittransactions:function(e,t,n,o){d('{"eventType": "OnprintDeposittransactions","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+n+'","GateWayType" : "'+o+'"}')},ccvalidate:function(){d('{"eventType": "ccvalidate"}')},setCardAddressData:function(e){d('{"eventType": "setcardaddress", "address":'+e+"}")},ChargebackBackButtonCallback:function(){d('{"eventType": "ChargebackBackButtonCallback"}')},AcceptAsRefundCallback:function(){d('{"eventType": "AcceptAsRefundCallback"}')},SubmitrebuttalCallback:function(){d('{"eventType": "SubmitrebuttalCallback"}')},SubmitrebuttalSuccessCallback:function(){d('{"eventType": "SubmitrebuttalSuccessCallback"}')},DeleteFileCallback:function(e){d('{"eventType": "DeleteFileCallback", "srNo":'+e+"}")},addClassInIframeBody:function(){d('{"eventType": "addClassInIframeBody"}')},onMobileBackButton:function(){d('{"eventType": "onMobileBackButton"}')},plaidResponse:function(e){d('{"eventType": "plaidResponse", "jsonData":'+e+"}")},ScrollToTopFromVagaro:function(){d('{"eventType": "ScrollToTopFromVagaro"}')},HardwareProductSelected:function(e){d('{"eventType": "HardwareProductSelected", "IsHardwareSelected":'+e+"}"),console.log("HardwareProductSelected -Zenswipe.js :"+e)},onBrowserBackEvent:function(e){d('{"eventType": "onBrowserBackEvent", "Step":'+e+"}")},SetVagaroLink:function(e){d('{"eventType": "SetVagaroLink", "vagaroLink":"'+e+'"}')},BackFromBankingInfo:function(){d('{"eventType": "BackFromBankingInfo"}')},SaveChangeBatchTime:function(e,t,n){d('{"eventType": "SaveChangeBatchTime", "BatchTimes":"'+e+'","logedInUserName" : "'+t+'","logedInUserID" : "'+n+'"}')},GetConnectBusinessName:function(e){d('{"eventType": "GetConnectBusinessName", "BusinessName":"'+e+'"}')},setDarkModePreference:function(e){d('{"eventType": "setDarkModePreference", "DarkMode":'+e+"}")},onprintmerchanteachtransaction:function(){d('{"eventType": "onprintmerchanteachtransaction"}')},Onexportmerchanttransactions:function(){d('{"eventType": "Onexportmerchanttransactions"}')},OnPDFexportmerchanttransactions:function(e,t,n){d('{"eventType": "OnPDFexportmerchanttransactions","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+n+'"}')},OnPDFPopupexportmerchant:function(e,t,n,o){d('{"eventType": "PDFPopupexportmerchant","merchantID" : "'+e+'","batchID" : "'+t+'","ToDate" : "'+n+'","GateWayType" : "'+o+'"}')},exportPDFReportData:function(){d('{"eventType": "exportPDFReportData"}')},OnexportSummaryOREachTransactionData:function(){d('{"eventType": "OnexportSummaryOREachTransactionData"}')},SetVagaroVMSLogData:function(e){d('{"eventType": "SetVagaroVMSLogData", "jsonData":'+JSON.stringify(e)+"}")},VagarotoZenwipeInstantPayoutPostMessage:function(e){d('{"eventType": "VagarotoZenwipeInstantPayoutPostMessage", "jsonData":'+JSON.stringify(e)+"}")},NewMobileDevicecall:function(e){d('{"eventType": "NewMobileDevicecallCallback", "jsonData":'+JSON.stringify(e)+"}")}},window.addEventListener("message",r,!1),a.each(function(){e.data(this,"plugin")||function(){0==e("#btnzstemplate").length&&(e("<button />",{class:"flamingo-button",id:"btnzstemplate",style:"display:none"}).appendTo("body"),e("<button />",{class:"flamingo-button-hover",id:"btnzstemplatehover",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input",id:"inputzstemplate",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input error",id:"inputzstemplateerror",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input-focus",id:"inputzstemplatefocus",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input-radius",id:"inputzstemplateaddressradius",style:"display:none"}).appendTo("body"),e("<input />",{class:"input-txterror",id:"texterror",style:"display:none"}).appendTo("body"),e("<input />",{class:"web-caption-text",id:"webcaptiontext",style:"display:none"}).appendTo("body"),e("<input />",{class:"vagaro-input-left-icon",id:"ccIcon",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-content",id:"modalcontent",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-title",id:"modaltitle",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-title2",id:"modaltitle2",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-footer",id:"modalfooter",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-secbtncolor",id:"modalfootersecbtn",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-secbtncolor-hover",id:"modalfootersecbtnhover",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-secbtncolor-active",id:"modalfootersecbtnactive",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-primarybtncolor",id:"modalfooterprimarybtn",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-primarybtncolor-hover",id:"modalfooterprimarybtnhover",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-primarybtncolor-active",id:"modalfooterprimarybtnactive",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton",id:"modalclosebutton",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton-hover",id:"modalclosebuttonhover",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton-active",id:"modalclosebuttonactive",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-closebutton-after",id:"modalclosebuttonafter",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-inputnocard",id:"modalinputnocard",style:"display:none"}).appendTo("body"),e("<input />",{class:"zsmodal-addressinput",id:"modaladdressinputheight",style:"display:none"}).appendTo("body"),e("<input />",{class:"spantxterror",id:"spantxterror",style:"display:none"}).appendTo("body"),e("<input />",{class:"cciframe-countryselectoption",id:"cciframecountryselectoption",style:"display:none"}).appendTo("body"));!function(t){var n=e('<iframe class="b-iframe" '+i.iframeAttr+' id="iFrame_'+a.attr("id")+'" style="display:none;"></iframe>');if(1==t){var o=e("<div id='frame_apgProgress_"+a[0].id+"' style='display:none;'></div><div style='position: relative; ' id='divinnertop_up'><div id='ccfram_backgroundElement' style='position: fixed; left: 0px; top: 0px; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white; font-family: \"Lucida Grande\",\"Arial\"; font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div style='width: auto; height: auto; margin: 0 -7px;z-index:9999; position:relative' class='contentContainer'></div></div>");o.find(".contentContainer").append(n),o.appendTo(a)}else n.appendTo(a);a.data("iframe_id",n.attr("id")),n.height(i.height).width(i.width),n.attr("allow","camera *;"),n.attr("src",i.loadUrl),console.log(n.attr("id")),l(i.receivers.onOpening),n.load(function(n){var o="";o=vui._getStyle(),1==i.isfullwidth&&e(this).addClass("framefullwidth"),null!=vui.frame&&(vui.frame.zenswipe.addStyle(o),vui.frame.zenswipe.checkWebView(i.iswebview?"true":"false"),vui.frame.zenswipe.ignorePro(i.ignorePro?"true":"false")),window.setTimeout(function(t){if(i.loaded=!0,l(i.receivers.onOpened),a.find(".creditcard-width-temp").remove(),a.find("iframe").css("display","block"),vui.frame.zenswipe.getHeight(),1==t)!function(e,t,n){var o,i,a,r,d=document.getElementById(n);o=function(e,t){var n,o,i,a;n=function(){var e,t;void 0!==window.innerWidth?(e=window.innerWidth,t=window.innerHeight):void 0!==document.documentElement&&void 0!==document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):(e=document.getElementsByTagName("body")[0].clientWidth,t=document.getElementsByTagName("body")[0].clientHeight);return t+"|"+e}().split("|"),o=n[0],i=n[1],(a=(o-e)/2)<0&&(a=1);return a+"|"+(i-t)/2+"|"+o}(e,t).split("|"),i=o[0],a=o[1],o[2],d.style.left=a-20+"px",r=document.documentElement.scrollTop!=document.body.scrollTop?document.documentElement.scrollTop+document.body.scrollTop:document.body.scrollTop;r>0&&(i=parseInt(i)+r);i-=20,d.style.top=i+"px",d.style.position="absolute",d.width="auto",d.height="auto",d.style.zIndex=100001,d.style.display=""}(i.height,i.width,a.attr("id"));else{e("#"+vui.contentContainer).show();try{var n=e("#"+vui.contentContainer);if(n.length){var o=n.find("iframe");o.length>1&&o.each(function(){var t=e(this);"about:blank"===(t.attr("src")||"").toLowerCase()?(t.remove(),console.log("Removed about:blank iframe")):t.css("position","")})}else console.log("container not found")}catch(e){console.log(e)}}null!=vui.loader&&vui.loader(!1)}(t),1e3)})}(i.modal)}(),console.log("frame.each")});function d(t){try{null==document.getElementById(a.data("iframe_id"))&&null==document.getElementById(a.data("iframe_id"))||document.getElementById(a.data("iframe_id")).contentWindow.postMessage(t,function(){if(null==o){var t=/^(https*:\/\/[^\/]*).*$/g.exec(e("#"+a.data("iframe_id")).attr("src"));t&&(o=t[1])}return o}())}catch(e){console.log(e)}}function l(t,n){e.isFunction(t)&&t.call(this,n)}function s(t){"undefined"==typeof swal?"undefined"!=typeof SetErrorDisplayMessageReport&&e.isFunction(SetErrorDisplayMessageReport)&&(SetErrorDisplayMessageReport("0","Your authentication is failed. please try again!",""),vui._ajax(t.cardFrameType,t.contentContainer,t.modal,t.height,t.merchant_token_id,t.firstName,t.lastName,t.width,t.frameURL,t.afterCallBackHandleinner,t.isAjaxQue,t.device,t.ignorePro,t._isfullwidth,t._isnot_auth,t._track_data,t._business_country_id,t._isremove_address_style,t._isthreeds_required)):swal({title:"Your authentication is failed. please try again!",text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},function(n){try{1==window.location.href.includes("/merchants/settings/employee/profile")&&"undefined"!=typeof _employeeOwner&&void 0!==_employeeOwner.ResetCCSuccessCallback&&e.isFunction(_employeeOwner.ResetCCSuccessCallback)?_employeeOwner.ResetCCSuccessCallback(_employeeOwner.FrameType.ACHCC):1!=window.location.href.includes("/merchants/duepayment")&&1!=window.location.href.includes("/Users/DuePayment.aspx")||onRequiredCallback()}catch(e){}vui._ajax(t.cardFrameType,t.contentContainer,t.modal,t.height,t.merchant_token_id,t.firstName,t.lastName,t.width,t.frameURL,t.afterCallBackHandleinner,t.isAjaxQue,t.device,t.ignorePro,t._isfullwidth,t._isnot_auth,t._track_data,t._business_country_id,t._isremove_address_style,t._isthreeds_required)})}},e.fn.ZenSwipeCard.defaults={height:375,width:480,loaded:!1,appendTo:"body",iframeAttr:'scrolling="no" frameborder="0"',loadUrl:"",modal:!0,modalClose:!0,opacity:1,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:1000001,showLog:!0,afterCallBackHandle:0,iswebview:!1,ignorePro:!1,isfullwidth:!1,receivers:{onOpening:function(e){"function"==typeof onOpeningCallback&&onOpeningCallback(e)},onClose:function(e){"function"==typeof onCloseCallback&&onCloseCallback(e)},onOpened:function(e){"function"==typeof onOpenedCallback&&onOpenedCallback(e)},onError:function(e){"function"==typeof onErrorCallback&&onErrorCallback(e)},onGetToken:function(e){"function"==typeof onGetTokenCallback&&onGetTokenCallback(e)},onRequired:function(e){"function"==typeof onRequiredCallback&&onRequiredCallback(e)},onHideLoading:function(e){"function"==typeof onHideLoadingCallback&&onHideLoadingCallback(e)},onDisplayLoading:function(e){"function"==typeof onDisplayLoadingCallback&&onDisplayLoadingCallback(e)},onGetSize:function(e){"function"==typeof onGetSizeCallback&&onGetSizeCallback(e)},onApplicationSuccess:function(e){"function"==typeof onApplicationSuccessCallback&&onApplicationSuccessCallback(e)},onMessage:function(e){"function"==typeof onMessageCallback&&onMessageCallback(e)},onZSDown:function(e){"function"==typeof onZSDownCallback&&onZSDownCallback(e)},onFocusIn:function(e){"function"==typeof onFocusInCallback&&onFocusInCallback(e)},onFocusOut:function(e){"function"==typeof onFocusOutCallback&&onFocusOutCallback(e)},onTabfocused:function(e){"function"==typeof onTabfocusedCallback&&onTabfocusedCallback(e)},onRanderPager:function(e){"function"==typeof onRanderPagerCallback&&onRanderPagerCallback(e)},onShowHideSaveCancel:function(e){"function"==typeof onShowHideSaveCancelCallback&&onShowHideSaveCancelCallback(e)},onMerchantSuccess:function(e){"function"==typeof onMerchantSuccessCallback&&onMerchantSuccessCallback(e)},onscrollToTop:function(e){"function"==typeof onscrollToTopCallback&&onscrollToTopCallback(e)},onDepositPopup:function(e){"function"==typeof onDepositPopupCallback&&onDepositPopupCallback(e)},onTab1099detail:function(e){"function"==typeof onTab1099detailCallback&&onTab1099detailCallback(e)},onShowpdf:function(e){"function"==typeof onShowpdfCallback&&onShowpdfCallback(e)},ondatepickerShowHide:function(e){"function"==typeof onShowhideMerchantCallback&&onShowhideMerchantCallback(e)},onCcValid:function(e){"function"==typeof onCcValidCallback&&onCcValidCallback(e)},onResponsiveIframe:function(e){"function"==typeof onResponsiveIframeCallback&&onResponsiveIframeCallback(e)},onverifyaddresshideloading:function(e){"function"==typeof verifyaddresshideloadingCallback&&verifyaddresshideloadingCallback(e)},onTransactionDetailForChargeback:function(e){"function"==typeof onTransactionChargebackCallback&&onTransactionChargebackCallback(e)},onCustomerForChargeback:function(e){"function"==typeof onCustomerChargebackCallback&&onCustomerChargebackCallback(e)},onUpdateNotificationPanel:function(e){"function"==typeof onUpdateNotificationPanelCallback&&onUpdateNotificationPanelCallback(e)},onUpdateAcceptRefund:function(e){"function"==typeof onUpdateAcceptRefundCallback&&onUpdateAcceptRefundCallback(e)},onShowAcceptSubmitPopup:function(e){"function"==typeof onShowAcceptSubmitPopupCallback&&onShowAcceptSubmitPopupCallback(e)},onSetVMSPlanTitle:function(e){"function"==typeof onSetVMSPlanTitleCallback&&onSetVMSPlanTitleCallback(e)},onFinishLater:function(e){"function"==typeof onFinishLaterCallback&&onFinishLaterCallback(e)},onBackToHardwarePage:function(e){"function"==typeof onBackToHardwarePageCallback&&onBackToHardwarePageCallback(e)},onMongoIdofVMSApplication:function(e){"function"==typeof onMongoIdofVMSApplicationCallback&&onMongoIdofVMSApplicationCallback(e)},onPlaidLinkTokenId:function(e){"function"==typeof onPlaidLinkTokenIdCallback&&onPlaidLinkTokenIdCallback(e)},onVMSApplicationCompleteWebView:function(e){"function"==typeof onVMSApplicationCompleteWebViewCallback&&onVMSApplicationCompleteWebViewCallback(e)},onBrowserBackEventSendtoVagaro:function(e){"function"==typeof onBrowserBackEventSendtoVagaroCallback&&onBrowserBackEventSendtoVagaroCallback(e)},AddLogInAmplitude:function(e){"function"==typeof AddLogInAmplitudeCallback&&AddLogInAmplitudeCallback(e)},askVagaroForVMSStep:function(e){"function"==typeof askVagaroForVMSStepCallback&&askVagaroForVMSStepCallback(e)},GetVagaroLink:function(e){"function"==typeof onGetVagaroLinkCallback&&onGetVagaroLinkCallback(e)},ShowHideBackArrow:function(e){"function"==typeof onShowHideBackArrowCallback&&onShowHideBackArrowCallback(e)},CardFrameExpire:function(e){"function"==typeof OnCardFrameExpire&&OnCardFrameExpire(e)},onSaveBatchTimeResponse:function(e){"function"==typeof onSaveBatchTimeResponseCallback&&onSaveBatchTimeResponseCallback(e)},onSendbatchTime:function(e){"function"==typeof onSendbatchTimeCallback&&onSendbatchTimeCallback(e)},OpenChangeBatchPopup:function(e){"function"==typeof OpenChangeBatchPopupCallback&&OpenChangeBatchPopupCallback(e)},onCyberSourceTrackingId:function(e){"function"==typeof onCyberSourceTrackingIdCallback&&onCyberSourceTrackingIdCallback(e)},onBusinessLst:function(e){"function"==typeof onGetBusineeName&&onGetBusineeName(e)},onCreateMerchantSuccess:function(e){"function"==typeof onCreateMerchantSuccessCallback&&onCreateMerchantSuccessCallback(e)},onShowHideToolTip:function(e){"function"==typeof onShowHideToolTip&&onShowHideToolTip(e)},onGetVagaroVMSLogData:function(e){"function"==typeof GetVagaroVMSLogDataback&&GetVagaroVMSLogDataback(e)},ZenwipetoVagaroInstantPayoutPostMessage:function(e){"function"==typeof onZenwipetoVagaroInsPostMessageCallback&&onZenwipetoVagaroInsPostMessageCallback(e)},onInstantPayoutMobilecallback:function(e){"function"==typeof InstantPayoutMobilecallback&&InstantPayoutMobilecallback(e)},onDepositMerchantFilterCall:function(e){"function"==typeof OnDepositMerchantFilter&&OnDepositMerchantFilter(e)},onInstantPayoutMobilecallbackReturn:function(e){"function"==typeof InstantPayoutMobilecallbackReturn&&InstantPayoutMobilecallbackReturn(e)},onInsPayAddLogInAmplitude:function(e){"function"==typeof onInsPayAddLogInAmplitudeCallBack&&onInsPayAddLogInAmplitudeCallBack(e)}}}}(jQuery),window.vui={frameUrl:null,frame:null,contentContainer:null,modal:!1,height:375,width:480,loader:null,buttonBackColor:null!=typeof hdnButtonBackColor?$("#hdnButtonBackColor").val():"",buttonFontColor:null!=typeof ButtonFontColor?$("#hdnButtonFontColor").val():"",buttonHoverColor:null!=typeof ButtonHoverColor?$("#hdnButtonHoveColor").val():"",ccCountryId:1,stripeRadarSession:null,country:{USA:"1",UK:"2",Canada:"3",Australia:"4"},displayLoading:function(e){this.loader(!0)},hideLoading:function(e){this.loader(!1)},setHeight:function(e,t){$("#"+this._iframeid).height(e),$("#"+this._iframeid).width(t)},getSize:function(e,t){zenswipe.getSize()},getMerchantFrame:function(e,t,n,o,i){this.modal=!1,this.height=n,this.width=o,this.iswebview=i,this.contentContainer=e;var a={data:{url:t},custom_code:1e3};this._callCreditCardSuccess(a)},getTypeAndSwipeFrame:function(e,t,n,o,i,a){n=n||"",o=o||"",this._ajax(1,e,!0,t,i,n,o,"","",a,!0,"offline website",!1)},getSwipeFrame:function(e,t,n,o,i){this._ajax(4,e,!1,t,i,n,o,"","",void 0,!0,"offline website",!1)},getTypeFrame:function(e,t,n,o,i,a){this._ajax(2,e,!0,t,n,"","","","",o,!0,"offline website",!1,void 0,void 0,void 0,void 0,i,void 0,a)},getTypeWithoutButton:function(e,t,n,o,i,a,r,d,l,s,c=!0,p=!1){void 0!==n&&0==n&&("undefined"!=typeof totalDailyDealFeeOfAllCart_PMGCA&&totalDailyDealFeeOfAllCart_PMGCA>0||"undefined"!=typeof totalDailyDealFeeOfAllCart_ABS&&totalDailyDealFeeOfAllCart_ABS>0||"undefined"!=typeof isDepositOff&&!0===isDepositOff)&&_siteBuilderDetail.VeraAccountInfo&&_siteBuilderDetail.VeraAccountInfo.MerchantTokenID&&(n=_siteBuilderDetail.VeraAccountInfo.MerchantTokenID),t=t||160,this._ajax(7,e,!1,t,n,"","",o,i,a,!0,r,!1,d,void 0,s,l,void 0,void 0,c,void 0,void 0,void 0,p)},getTypeWithoutButtonAndAuthorization:function(e,t,n,o,i,a,r,d,l,s,c=!1){void 0!==n&&0==n&&("undefined"!=typeof totalDailyDealFeeOfAllCart_PMGCA&&totalDailyDealFeeOfAllCart_PMGCA>0||"undefined"!=typeof totalDailyDealFeeOfAllCart_ABS&&totalDailyDealFeeOfAllCart_ABS>0||"undefined"!=typeof isDepositOff&&!0===isDepositOff)&&_siteBuilderDetail.VeraAccountInfo&&_siteBuilderDetail.VeraAccountInfo.MerchantTokenID&&(n=_siteBuilderDetail.VeraAccountInfo.MerchantTokenID),t=t||160,this._ajax(11,e,!1,t,n,"","",o,i,a,!0,r,d,void 0,void 0,s,l,void 0,void 0,void 0,void 0,void 0,void 0,c)},getTypeFrameWithoutSaveButton:function(e,t,n,o,i,a,r=!0){var d=void 0!==i&&null!=i&&""!=i.toString().trim()?i:"offline website";this._ajax(0,e,!0,t,n,"","","","",o,!0,d,!1,void 0,void 0,void 0,void 0,a,void 0,r)},getTypeFrameWithAddress:function(e,t,n,o,i,a,r,d,l,s,c,p,u,m="",h=0,f="",g){this._ajax(10,e,!1,t,n,"","",o,i,a,!0,r,!1,d,l,s,c,void 0,p,u,m,h,f,g)},getTypeFrameWithAddress_NoAuth:function(e,t,n,o,i,a,r){this._ajax(12,e,!1,t,n,"","",o,i,a,!0,r,!1)},getTypeFrameForEditCard:function(e,t,n,o,i,a,r,d=!1){var l=void 0!==i&&null!=i&&""!=i.toString().trim()?i:"offline website";this._ajax(14,e,!0,t,n,"","","","",o,!0,l,!1,void 0,void 0,void 0,a,r,void 0,void 0,void 0,void 0,void 0,d)},getTypeFramewithCardOnFile:function(e,t,n,o,i,a,r,d,l,s=!0){t=t||160,this._ajax(9,e,!1,t,n,"","",o,i,a,!0,r,!1,d,void 0,void 0,l,void 0,void 0,s)},getTypeFrameForCCAddress:function(e,t,n,o,i,a,r,d,l,s=!0,c="",p=!1){t=t||160,this._ajax(16,e,!1,t,n,"","",o,i,a,!0,r,!1,d,void 0,void 0,l,void 0,void 0,s,c,0,"",p)},_ajax:function(e,t,n,o,i,a,r,d,l,s,c,p,u,m,h,f,g,v,b,A=!0,y="",C=0,w="",S=!1){null!=vui.frame&&vui.frame.destroy();var k={};if(k.cardFrameType=e,k.contentContainer=t,k.modal=n,k.height=o,k.merchant_token_id=i,k.firstName=a,k.lastName=r,k.width=d,k.frameURL=l,k.afterCallBackHandleinner=s,k.isAjaxQue=c,k.device=p,k.ignorePro=u,k._isfullwidth=m,k._isnot_auth=h,k._track_data=f,k._business_country_id=g,k._isremove_address_style=v,k._isthreeds_required=b,this.frmValue=k,null!=this.loader&&this.loader(!0),this.ignorePro=u,this.contentContainer=t,this.modal=n,this.height=null!=o&&""!=o?o:this.height,this.width=null!=d&&""!=d?d:this.width,this.afterCallBackHandle=null!=s||""!=s?s:this.afterCallBackHandle,this.isfullwidth=m,this.isnotauth=h,this.trackdata=f,0==this.modal){var x=GetHTMLDummyFrame(e),I=vui._getStyle();""!=I&&(x+="<style>"+I+"</style>"),$("#"+this.contentContainer).append(x),$("#"+this.contentContainer).show()}if(null==l||null==l||""==l){var E={},_={};E.card_frame_type=null==e?1:e,E.first_name=a,E.last_name=r,E.merchant_token_id=i,E.device=p,E.isnot_auth=h,E.track_data=f,E.business_country_id=g,E.isremove_address_style=v,E.isccaddressmandatory=A,E.card_token=y,E.business_id=C,E.TrackingId=w,E.IsDisableDarkMode=S;try{E.isthreeds_required=!0,E.threeds_returnurl=window.location.origin+"/CardIntendentSuccess.aspx",window.location.href.includes("/merchants/calendar")&&(E.threeds_returnurl+="?isFromCalendar=1")}catch(e){E.isthreeds_required=!1,E.threeds_returnurl=window.location.origin+"/CardIntendentSuccess.aspx"}_.card=E;var P=new vagaro.ajax;P.datamodel.Token="GetCreditCardIFrame",P.datamodel.callback=this._callCreditCardSuccess,P.datamodel.data=_,P.datamodel.Error=function(e){this.loader(!1)},c?P.PostQue():P.Post()}else this._callDirectUrl(l,n,o,d,s)},_callCreditCardSuccess:function(e){null!=e&&1e3==e.custom_code?(vui.modal,null==e.data.url||null==e.data.url||"undefined"==e.data.url?"function"==typeof onGetSwipeCallback&&onGetSwipeCallback(e):vui.frame=$("#"+vui.contentContainer).ZenSwipeCard({loadUrl:e.data.url,modal:vui.modal,height:null!=e.data.iframe_height&&e.data.iframe_height>0?e.data.iframe_height:vui.height,width:vui.width,afterCallBackHandle:vui.afterCallBackHandle,iswebview:vui.iswebview,isfullwidth:vui.isfullwidth})):(null!=vui.loader&&vui.loader(!1),onZSDownCallback(e))},_callDirectUrl:function(e,t,n,o,i){vui.frame=$("#"+vui.contentContainer).ZenSwipeCard({loadUrl:e,modal:t,height:n,width:o,afterCallBackHandle:i})},_getStyle:function(){var e="";if(null!=typeof $("#hdnBuilderFrameCSS")&&""!=$("#hdnBuilderFrameCSS").val()&&null!=$("#hdnBuilderFrameCSS").val())return $("#hdnBuilderFrameCSS").val();var t=$("#ccIcon").css("width"),n=$("#ccIcon").css("padding-left");if("undefined"!=typeof backGroundColor&&""!=backGroundColor&&("undefined"!=typeof isWidget&&""!=isWidget&&"true"==isWidget?e+=".popupwidth542 .modal-body { background-color:#FFFFFF}":e+=".popupwidth542 .modal-body { background-color:"+backGroundColor+"}"),""!=$("#hdnButtonBackColor").val()&&null!=$("#hdnButtonBackColor").val()&&""!=$("#hdnButtonFontColor").val()&&null!=$("#hdnButtonFontColor").val()&&(e+=".btn-primary  { background-color: "+$("#hdnButtonBackColor").val()+"!important;border-color:"+$("#hdnButtonBackColor").val()+"!important; color : "+$("#hdnButtonFontColor").val()+"!important;}",e+=".btn-primary:hover { background-color: "+$("#hdnButtonHoveColor").val()+"!important;border-color:"+$("#hdnButtonHoveColor").val()+"!important;}",e+=".btn-default  { background-color!important:  #666666 }"),e+=".framefullwidth { width:100%!important;}",e+=".popupwidth542.zs-fullwithcc { max-width:100%!important;}",null!=$("#hdnAddBusinessDummyToken").val()&&""!=$("#hdnAddBusinessDummyToken").val()&&(e+=".addbusiness-right-col { min-height:738px;}",e+=".cc-detail.cc-lifull-width li { margin-bottom:38px;}",e+=".list-inline { margin-left:-5px; margin-right: 0px;}",e+=".modal-content { background:transparent;}",e+=".RadCaptcha img { margin-bottom:14px; margin-top:10px;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px; background-color : #fff;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px;}",e+=".cc-detail.cc-lifull-width li:nth-of-type(4n),.cc-detail.cc-lifull-width li:nth-of-type(5n),.cc-detail.cc-lifull-width li:nth-of-type(6n){margin-bottom:20px}"),window.location.href.includes("/signup")||window.location.href.includes("/myaccount/paymentmethods")&&"undefined"!=typeof _shopdetail&&null!=_shopdetail&&"false"==_shopdetail.isCustomWebsite&&"false"==_shopdetail.isWidget&&"false"==_shopdetail.isFacebook||(window.location.href.includes("/shopping-bag")||window.location.href.includes("/book-now"))&&"undefined"!=typeof _siteBuilderDetail&&null!=_siteBuilderDetail&&void 0!==_siteBuilderDetail.UserLocationInfo&&null!=_siteBuilderDetail.UserLocationInfo&&void 0!==_siteBuilderDetail.UserLocationInfo.objUserCustomData&&null!=_siteBuilderDetail.UserLocationInfo.objUserCustomData&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsCheckInApp&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsCustomWebsite&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsFaceBook&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsPromotionUI&&0==_siteBuilderDetail.UserLocationInfo.objUserCustomData.IsWidget)try{var o=$("#btnzstemplate").css("background-color"),i=($("#btnzstemplate").css("color"),$("#btnzstemplate").css("border-radius"),$("#btnzstemplate").css("padding"),$("#btnzstemplate").css("border"),$("#inputzstemplate").css("background-color")),a=$("#inputzstemplateerror").css("background-color"),r=$("#inputzstemplate").css("color"),d=$("#inputzstemplate").css("border-radius"),l=$("#inputzstemplate").css("font-size"),s=$("#inputzstemplate").css("border"),c=$("#inputzstemplateerror").css("border-color"),p=$("#inputzstemplatefocus").css("border-color"),u=$("#inputzstemplate").css("line-height"),m=$("#inputzstemplate").css("text-align"),h=$("#inputzstemplate").css("padding"),f=$("#inputzstemplate").css("height"),g=$("#inputzstemplateaddressradius").css("border-top-left-radius"),v=$("#inputzstemplateaddressradius").css("border-bottom-left-radius"),b=$("#texterror").css("color"),A=$("#texterror").css("font-size"),y=$("#texterror").css("line-height"),C=$("#webcaptiontext").css("font-size"),w=$("#webcaptiontext").css("line-height"),S=$("#webcaptiontext").css("color"),k=$("#modalcontent").css("border-radius"),x=$("#modaltitle").css("color"),I=$("#modaltitle").css("font-size"),E=$("#modaltitle").css("line-height"),_=$("#modaltitle").css("font-weight"),P=$("#modaltitle2").css("color"),D=$("#modaltitle2").css("font-size"),T=$("#modalfooter").css("background-color"),O=$("#modalfootersecbtn").css("background-color"),M=$("#modalfootersecbtn").css("border-color"),L=$("#modalfootersecbtn").css("color"),B=$("#modalfootersecbtn").css("border-radius"),F=$("#modalfootersecbtn").css("height"),N=$("#modalfootersecbtn").css("font-size"),R=$("#modalfootersecbtnhover").css("border-color"),z=$("#modalfootersecbtnhover").css("background-color"),H=$("#modalfootersecbtnactive").css("background-color"),V=$("#modalfooterprimarybtn").css("background-color"),W=$("#modalfooterprimarybtn").css("border-color"),U=$("#modalfooterprimarybtn").css("color"),j=$("#modalfooterprimarybtn").css("border-radius"),q=$("#modalfooterprimarybtn").css("height"),G=$("#modalfooterprimarybtn").css("font-size"),K=$("#modalfooterprimarybtnhover").css("border-color"),Y=$("#modalfooterprimarybtnhover").css("background-color"),Z=$("#modalfooterprimarybtnactive").css("background-color"),X=$("#modalclosebutton").css("background-color"),J=$("#modalclosebutton").css("color"),Q=$("#modalclosebutton").css("font-size"),ee=$("#modalclosebutton").css("height"),te=$("#modalclosebutton").css("width"),ne=$("#modalclosebutton").css("border-radius"),oe=$("#modalclosebuttonhover").css("background-color"),ie=$("#modalclosebuttonactive").css("background-color"),ae=$("#modalclosebuttonafter").css("color"),re=$("#modalclosebuttonafter").css("font-size"),de=$("#modalclosebuttonafter").css("top"),le=$("#modalclosebuttonafter").css("right"),se=$("#modalclosebuttonafter").css("background-color"),ce=$("#modalclosebuttonafter").css("text-shadow"),pe=$("#modalinputnocard").css("top"),ue=$("#modaladdressinputheight").css("height"),me=$("#modaladdressinputheight").css("line-height"),he=$("#modaladdressinputheight").css("border-color"),fe=$("#spantxterror").css("margin-bottom"),ge=$("#cciframecountryselectoption").css("bottom");e+=".btn-primary  { background-color: "+o+"}",e+=".form-control { background-color: "+i+"!important ;color: "+r+"!important;border-radius: "+d+"!important; font-size: "+l+"!important;border: "+s+"!important;line-height: "+u+"!important;text-align: "+m+"!important;padding: "+h+"!important;height: "+f+"!important;}",e+=".form-control.error { background-color: "+a+"!important ;border-color: "+c+"!important;}",e+="span.error { color: "+b+"!important ;font-size: "+A+"!important;line-height: "+y+"!important;}",e+="span.spanerror { color: "+b+"!important ;font-size: "+A+"!important;line-height: "+y+"!important;margin-bottom: "+fe+"!important;}",e+=".secured-by p { color: "+S+"!important ;font-size: "+C+"!important;line-height: "+w+"!important;}",e+=" #card-image:before {width: "+t+"!important; padding-left:"+n+"!important;}",e+=" .modal-content {border-radius: "+k+"!important;}",e+=" .modal-header h1 {color: "+x+"!important; font-size:"+I+"!important; line-height:"+E+"!important; font-weight:"+_+"!important;}",e+=" .modal-body h4.modal-title {color: "+P+"!important; font-size:"+D+"!important;}",e+=" .modal .modal-footer {background-color: "+T+"!important;}",e+=" .modal .btn.btn-default {background-color: "+O+"!important; border-color: "+M+"!important; color: "+L+"!important; border-radius: "+B+"!important; height: "+F+"!important; font-size: "+N+"!important;}",e+=" .modal .btn.btn-default:hover {background-color: "+z+"!important; border-color: "+R+"!important;}",e+=" .modal .btn.btn-default:active {background-color: "+H+"!important;}",e+=" .modal .btn.btn-primary {background-color: "+V+"!important; border-color: "+W+"!important; color: "+U+"!important; border-radius: "+j+"!important; height: "+q+"!important;font-size: "+G+"!important;}",e+=" .modal .btn.btn-primary:hover {background-color: "+Y+"!important; border-color: "+K+"!important;}",e+=" .modal .btn.btn-primary:active {background-color: "+Z+"!important;}",e+=" .modal .modal-content .modal-header .close {background-color: "+X+"!important; color: "+J+"!important; font-size: "+Q+"!important; height: "+ee+"!important; width: "+te+"!important; border-radius: "+ne+"!important;}",e+=" .modal .modal-content .modal-header .close:hover {background-color: "+oe+"!important;}",e+=" .modal .modal-content .modal-header .close:active {background-color: "+ie+"!important;}",e+=" .modal .modal-content .modal-header .close::after {color: "+ae+"!important; font-size: "+re+"!important; top: "+de+"!important; right: "+le+"!important; background: "+se+"!important; text-shadow: "+ce+"!important;}",e+=" #card-image.no-card:before {top: "+pe+"!important;}",e+=" .cciframe-addresswithcountry .countrydropdown {height: "+ue+"!important; line-height: "+me+"!important; border-color: "+he+"!important;  }",e+=" .cciframe-addresswithcountry ul li{color: "+r+"!important;}",e+=" .cc-detail-address-input .select2-container.form-control{ color: "+r+"!important; font-size: "+l+"!important;border: "+s+"!important;line-height: "+u+"!important;text-align: "+m+"!important;padding: "+h+"!important; height: "+f+"!important; border-top-left-radius: "+g+"!important; border-bottom-left-radius: "+v+"!important;}",e+=".cc-detail-address-input .select2-container.select2-container-active { border-color:"+p+"!important;}",e+=".cc-detail-address-input .select2-container.form-control.input-validation-error { background-color: "+a+"!important ;border-color: "+c+"!important;}",e+=".cciframe-countryselectoption { bottom: "+ge+"!important;}",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer button.btn.btn-primary { background-color: "+V+"!important; border - color: "+W+"!important; color: "+U+"!important; border - radius: "+j+"!important; height: "+q+"!important; font - size: "+G+"!important; } ",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer button.btn.btn-primary:hover {background-color: "+Y+"!important; border-color: "+K+"!important;}",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer button.btn.btn-primary:active {background-color: "+Z+"!important;}",e+=".shoppingcart .verify-address-popup .modal-content .modal-footer .btn.btn-default:hover {background-color: "+z+"!important; border-color: "+R+"!important;}",e+=".form-control:focus { border-color:"+p+"!important;}",e+=".select2-focused { border-color:"+p+"!important;}"}catch(e){}return e},_getHTML:function(e){return 10==e||12==e?'<html><head><title></title> <style> ::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important} .creditcard-width-temp { padding: 0px; margin: 0px; list-style: none; width: auto; float: left; } .marginleft175 { margin-left: 170px; } .creditcard-width-temp li input[type="text"], .creditcard-width-temp li input[type="password"] { width: 100%; } .creditcard-width-temp * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .creditcard-width-temp li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; float: left; position: relative; } .creditcard-width-temp li input.inputbox-type1 { font-size: 15px; color: #545554 !important; height: 38px; line-height: 1.42857; padding: 6px 8px; border: 1px solid #959494; border-radius: 4px; } .creditcard-width-temp li.col-width50per { width: 50%; } .creditcard-width-temp li.col-width40per { width: 40%; } .creditcard-width-temp li.col-width20per { width: 20%; } .creditcard-width-temp li.input-cardtype input { padding-left: 50px !important;  } .marginbottom15.busProfile dd { margin-bottom: 15px !important; } .creditcard-width-temp li.input-cardtype [type="text"][disabled] { padding-left: 50px !important; /*background:transparent!important;*/ } #cardimage1:before { content: ""; position: absolute; background-position: 0 0; background-repeat: no-repeat; background-size: 32px auto; left: 13px; top: 9px; z-index: 5; width: 32px; height: 25px; } #cardimage1.no-card:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png); } #cardimage1.visa:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png); } #cardimage1.mastercard:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png); } #cardimage1.americanexpress:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png); } #cardimage1.discover:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png); } .creditcard-label-text { float: left; width: 175px; margin-top: 25px; } .creditcard-label-text ul { padding: 0px; margin: 0px; list-style: none; } .creditcard-label-text ul li label { font-size: 15px; margin-right: 0px; padding-top: 11px; } .creditcard-label-text li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; min-height: 38px; float: left; position: relative; }  </style></head><body class="modal-body"> <ul class="creditcard-width-temp list-inline cc-detail cc-lifull-width clearfix"> <li id="cardimage1" class="input-cardtype no-card"> <input type="text" id="temptxtCCNo" class="inputbox-type1 form-control"  placeholder="Card Number"  /> </li> <li class="col-width50per "> <input type="text" id="temptxtMonthYear" class="inputbox-type1 form-control" placeholder="MM/YY"/> </li> <li class="col-width50per "> <input type="password" id="temptxtSecurityCode" class="inputbox-type1 form-control" placeholder="CVV" /> </li> <li class="col-width40per "> <input type="text" id="temptxtFirstName" class="inputbox-type1 form-control" placeholder="First Name"/> </li> <li class="col-width20per "> <input type="text" id="temptxtMiddleName"  placeholder="MI" class="inputbox-type1 form-control" /> </li> <li class="col-width40per"> <input type="text" id="temptxtLastName" class="inputbox-type1 form-control" placeholder="Last Name" /> </li> </ul></body></html>':'<html><head><title></title> <style> ::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important} .creditcard-width-temp { padding: 0px; margin: 0px; list-style: none; width: auto; float: left; } .marginleft175 { margin-left: 170px; } .creditcard-width-temp li input[type="text"], .creditcard-width-temp li input[type="password"] { width: 100%; } .creditcard-width-temp * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .creditcard-width-temp li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; float: left; position: relative; } .creditcard-width-temp li input.inputbox-type1 { font-size: 15px; color: #545554 !important; height: 38px; line-height: 1.42857; padding: 6px 8px; border: 1px solid #959494; border-radius: 4px; } .creditcard-width-temp li.col-width50per { width: 50%; } .creditcard-width-temp li.col-width40per { width: 40%; } .creditcard-width-temp li.col-width20per { width: 20%; } .creditcard-width-temp li.input-cardtype input { padding-left: 50px !important;  } .marginbottom15.busProfile dd { margin-bottom: 15px !important; } .creditcard-width-temp li.input-cardtype [type="text"][disabled] { padding-left: 50px !important; /*background:transparent!important;*/ } #cardimage1:before { content: ""; position: absolute; background-position: 0 0; background-repeat: no-repeat; background-size: 32px auto; left: 13px; top: 9px; z-index: 5; width: 32px; height: 25px; } #cardimage1.no-card:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png); } #cardimage1.visa:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png); } #cardimage1.mastercard:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png); } #cardimage1.americanexpress:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png); } #cardimage1.discover:before { background-image: url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png); } .creditcard-label-text { float: left; width: 175px; margin-top: 25px; } .creditcard-label-text ul { padding: 0px; margin: 0px; list-style: none; } .creditcard-label-text ul li label { font-size: 15px; margin-right: 0px; padding-top: 11px; } .creditcard-label-text li { width: 100%; margin-bottom: 15px; padding-left: 5px; padding-right: 5px; min-height: 38px; float: left; position: relative; }  </style></head><body class="modal-body"> <ul class="creditcard-width-temp list-inline cc-detail cc-lifull-width clearfix"> <li id="cardimage1" class="input-cardtype no-card"> <input type="text" id="temptxtCCNo" class="inputbox-type1 form-control"  placeholder="Card Number"  /> </li> <li class="col-width40per "> <input type="text" id="temptxtMonthYear" class="inputbox-type1 form-control" placeholder="MM/YY"/> </li> <li class="col-width20per "> <input type="password" id="temptxtSecurityCode" class="inputbox-type1 form-control" placeholder="CVV" /> </li><li class="col-width40per "> <input type="text" id="temptxtZipCode" class="inputbox-type1 form-control" placeholder="Billing Zip/Postal code" /> </li> <li class="col-width40per "> <input type="text" id="temptxtFirstName" class="inputbox-type1 form-control" placeholder="First Name"/> </li> <li class="col-width20per "> <input type="text" id="temptxtMiddleName"  placeholder="MI" class="inputbox-type1 form-control" /> </li> <li class="col-width40per"> <input type="text" id="temptxtLastName" class="inputbox-type1 form-control" placeholder="Last Name" /> </li> </ul></body></html>'},getMerchantReport:function(e,t,n,o,i){this.modal=!1,this.height=n,this.width=o,this.iswebview=i,this.contentContainer=e;var a={data:{url:t},custom_code:1e3};this._callCreditCardSuccess(a)},generateStripeRadarSession:function(e,t,n,o){try{if(parseInt(e)>1){if("object"==typeof localStorage&&void 0!==localStorage.StripeStorageObject){var i=JSON.parse(localStorage.StripeStorageObject);if(null!=i&&void 0!==i){var a=new Date(i.CreateDate),r=((new Date).getTime()-a.getTime())/1e3;if(i.ipAddress==n&&r<=14400)return void(vui.stripeRadarSession=i.stripeRadarSessionId)}}void 0!==o&&setTimeout(function(){Stripe(o,{canCreateRadarSession:!0}).createRadarSession().then(function(e){if(e.error)vui.stripeRadarSession="striperadarerror:"+e.error,console.error(e.error);else if(vui.stripeRadarSession=e.radarSession.id,"object"==typeof localStorage){var t={};t.CreateDate=new Date,t.ipAddress=n,t.stripeRadarSessionId=e.radarSession.id,localStorage.removeItem("StripeStorageObject"),localStorage.StripeStorageObject=JSON.stringify(t)}})},3e3)}}catch(e){}}},$(window).on("resize",function(){null!=vui.frame&&vui.frame.zenswipe.getSize()}),GetHTMLDummyFrame=function(e){var t='<div class="cc-stencil-row"><span class="cc-stencil-box"></span></div><div class="cc-stencil-row"><span class="cc-stencil-box"></span></div>',n='::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important}.creditcard-width-temp{padding:0;margin:0;list-style:none;width:auto;float:left}.marginleft175{margin-left:170px}.creditcard-width-temp li input[type=password],.creditcard-width-temp li input[type=text]{width:100%}.creditcard-width-temp *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.creditcard-width-temp li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;float:left;position:relative}.creditcard-width-temp li input.inputbox-type1{font-size:15px;color:#545554!important;height:38px;line-height:1.42857;padding:6px 8px;border:1px solid #959494;border-radius:4px;width:100%}.creditcard-width-temp li.col-width50per{width:50%}.creditcard-width-temp li.col-width40per{width:40%}.creditcard-width-temp li.col-width20per{width:20%}.creditcard-width-temp li.input-cardtype input{padding-left:50px!important}.marginbottom15.busProfile dd{margin-bottom:15px!important}.creditcard-width-temp li.input-cardtype [type=text][disabled]{padding-left:50px!important}.creditcard-width-temp #cardimage1:before{content:"";position:absolute;background-position:0 0;background-repeat:no-repeat;background-size:32px auto;left:13px;top:9px;z-index:5;width:32px;height:25px}.creditcard-width-temp #cardimage1.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png)}.creditcard-width-temp #cardimage1.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #cardimage1.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}.creditcard-width-temp #cardimage1.americanexpress:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}.creditcard-width-temp #cardimage1.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.creditcard-width-temp .creditcard-label-text{float:left;width:175px;margin-top:25px}.creditcard-width-temp .creditcard-label-text ul{padding:0;margin:0;list-style:none}.creditcard-width-temp .creditcard-label-text ul li label{font-size:15px;margin-right:0;padding-top:11px}.creditcard-width-temp .creditcard-label-text li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;min-height:38px;float:left;position:relative}.creditcard-width-temp.marchent-signup-popup .modal-header{padding:0}.creditcard-width-temp.marchent-signup-popup .modal-header h4.modal-title{padding:0 0 8px 0;margin:0;color:#333;font-weight:500}.creditcard-width-temp .cc-detail.cc-lifull-width li.cc-detail-input{width:33.333333%;margin:0}.creditcard-width-temp ul.list-inline{margin:0 -5px}.creditcard-width-temp ul.list-inline li>label{clear:both;padding-top:16px;font-size:18px;line-height:24px;display:block;color:#000;padding-bottom:8px}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .cc-detail-address-input{padding-left:65px;box-sizing:border-box}.creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{padding-right:6px;padding-left:6px}.select2-container-multi .select2-choices{min-height:22px;width:100%}.select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap;width:100%}.creditcard-width-temp .secured-by{display:block;text-align:right;float:right;margin-top:16px}.creditcard-width-temp .secured-by p{margin:0;font-size:12px;line-height:16px;color:#333;font-weight:400}.creditcard-width-temp .secured-by p span{padding-right:5px;display:inline-block}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp ul.list-inline li>label{margin:0}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .addresswithcountry .countrydropdown{background-position:59px center!important;background-size:25px auto!important;background-repeat:no-repeat;border:1px solid #ccc!important;border-radius:2px 0 0 2px;float:left;position:absolute;left:0;top:0;width:74px;margin:0;cursor:pointer;line-height:40px}.creditcard-width-temp .addresswithcountry .countryselectoption{background-color:#fff;position:absolute;left:0;top:39px;list-style:none;margin:0;padding:0;border:1px solid #ccc;width:213px;border-radius:2px;z-index:-2;border-top-right-radius:0;border-top-left-radius:0}.creditcard-width-temp .form-control{background-color:#fff;background-repeat:no-repeat;border:1px solid #ccc;border-radius:2px;box-shadow:none;color:#333;display:block;font-size:15px;height:40px;line-height:1.42857;padding:6px 12px;width:100%;font-weight:400}body .select2-container-multi .select2-choices .select2-search-field input{font-size:15px;line-height:26px}.select2-container-multi .select2-choices .select2-search-field input{color:#545554}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp #card-image.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/Icon.png)}.creditcard-width-temp #card-image.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #card-image:before{content:"";position:absolute;background-position:left center;background-repeat:no-repeat;background-size:21px auto;left:13px;top:13px;z-index:5;width:21px;height:18px}.creditcard-width-temp .form-control.inputtransparent{padding-left:30px!important}.creditcard-width-temp ul.list-inline li input.form-control{border-color:#cdcdcd;padding-top:10px;padding-bottom:6px;line-height:22px}.marchent-signup-popup ul li{margin-bottom:8px;float:none}.marchent-signup-popup ul{display:flex;flex-wrap:wrap}.marchent-signup-popup ul li label{font-weight:500}#card-image.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}#card-image.amex:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}#card-image.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.addresswithcountry .countrydropdown .selectedcountry.us-f:before{content:""!important}.creditcard-width-temp .modal-body{padding:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.aus-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.canada-f,.creditcard-width-temp .addresswithcountry.countryselectoption li.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.uk-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.us-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry{background-repeat:no-repeat;background-position:8px center;background-size:30px 22px;height:100%;width:100%}.creditcard-width-temp .addresswithcountry .countryselectoption li{background-repeat:no-repeat;background-size:30px 22px;background-position:8px center;font-size:16px;line-height:36px;padding-left:50px;cursor:pointer;background-repeat:no-repeat}.creditcard-width-temp .addresswithcountry .countrydropdown:after{width:25px}.creditcard-width-temp .addresswithcountry .countryselectoption{bottom:39px;top:inherit}.marchent-signup-popup.creditcard-width-temp{padding-bottom:90px;z-index:0;position:relative}.mobPro-htmldesign .ffsharinCCgonline .w-tabs.fullwidth-element .w-form .payment-iframe .addresswithcountry{margin:0}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{height:auto;padding-top:10px;padding-bottom:10px;line-height:18px;border-radius:3px}.creditcard-width-temp #card-image:before{top:11px!important}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control.inputtransparent{padding-left:35px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit}.creditcard-width-temp .secured-by.creditcard-width-temp img{top:3px;position:relative}@media screen and (max-width:767px){#dvccframeforfreecard .addresswithcountry .cc-detail-address-input input.inputbox-type1.form-control.preventcopy {height: 48px;}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{padding-top:14px;padding-bottom:14px;font-size:16px}.creditcard-width-temp #card-image:before{top:15px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countrydropdown{height:48px}.mobPro-htmldesign .creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{height:48px}body.mobPro-htmldesign .creditcard-width-temp .select2-container-multi .select2-choices .select2-search-field input{font-size:16px;line-height:36px}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit;bottom:47px}.creditcard-width-temp .addresswithcountry .countrydropdown:after{top:5px}}#dibBusinessSteps .secured-by.creditcard-width-temp img{top:-2px!important}#ctl00_ctl00_VagaroContentPlaceHolder_nestedPlaceHolder_divPaymentInfo .creditcard-width-temp{width:100%}#Book247CCDetails.payment-iframe{margin:0}#Book247CCAddress.payment-iframe{margin:0}#dvccframeforfreecard .modal-header{margin-bottom:-15px;margin-left:5px}#dvccframeforfreecard .modal-body{margin-left:-15px}.late-payment-parent .mon-pay-info-right .marchent-signup-popup.creditcard-width-temp{padding:0 9px;box-sizing:border-box}.late-payment-parent .creditcard-width-temp .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:73px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 73px)}.late-payment-parent .creditcard-width-temp p{padding:0 5px}.late-payment-parent .creditcard-width-temp li input.inputbox-type1{border:1px solid #ccc;height:40px;font-size:15px}.late-payment-parent .creditcard-width-temp li#card-image:before{top:12px!important}.creditcard-width-temp li input.inputbox-type1{height:40px}.creditcard-width-temp ul.list-inline li input.form-control{padding-top:8px;padding-bottom:8px}#AddCardDetails.modal-dialog #card-image:before{top:12px}#divEmpCCDetails .marchent-signup-popup .creditcard-width-temp{margin-left:-25px}#divEmpCCDetails .modal-title{margin-left:-18px}',o=!1;try{o=void 0!==$("#hdnIsNewCCIframe").val()&&""!=$("#hdnIsNewCCIframe").val()&&JSON.parse($("#hdnIsNewCCIframe").val())}catch(e){o=!1}return 0==o?t+='<div class="cc-stencil-row cc-stencil-row-three cc-stencil-row-last"><span class="cc-stencil-box"></span><span class="cc-stencil-box"></span><span class="cc-stencil-box"></span></div>':(n='::-webkit-input-placeholder{color:#545554!important;opacity:.5!important}:-moz-placeholder{color:#545554!important;opacity:.5!important}::-moz-placeholder{color:#545554!important;opacity:.5!important}:-ms-input-placeholder{color:#545554!important;opacity:.5!important}.creditcard-width-temp{padding:0;margin:0;list-style:none;width:auto;float:left}.marginleft175{margin-left:170px}.creditcard-width-temp li input[type=password],.creditcard-width-temp li input[type=text]{width:100%}.creditcard-width-temp *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.creditcard-width-temp li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;float:left;position:relative}.creditcard-width-temp li input.inputbox-type1{font-size:15px;color:#545554!important;height:38px;line-height:1.42857;padding:6px 8px;border:1px solid #959494;border-radius:4px;width:100%}.creditcard-width-temp li.col-width50per{width:50%}.creditcard-width-temp li.col-width40per{width:40%}.creditcard-width-temp li.col-width20per{width:20%}.creditcard-width-temp li.input-cardtype input{padding-left:50px!important}.marginbottom15.busProfile dd{margin-bottom:15px!important}.creditcard-width-temp li.input-cardtype [type=text][disabled]{padding-left:50px!important}.creditcard-width-temp #cardimage1:before{content:"";position:absolute;background-position:0 0;background-repeat:no-repeat;background-size:32px auto;left:13px;top:9px;z-index:5;width:32px;height:25px}.creditcard-width-temp #cardimage1.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/no-card-img.png)}.creditcard-width-temp #cardimage1.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #cardimage1.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}.creditcard-width-temp #cardimage1.americanexpress:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}.creditcard-width-temp #cardimage1.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.creditcard-width-temp .creditcard-label-text{float:left;width:175px;margin-top:25px}.creditcard-width-temp .creditcard-label-text ul{padding:0;margin:0;list-style:none}.creditcard-width-temp .creditcard-label-text ul li label{font-size:15px;margin-right:0;padding-top:11px}.creditcard-width-temp .creditcard-label-text li{width:100%;margin-bottom:15px;padding-left:5px;padding-right:5px;min-height:38px;float:left;position:relative}.creditcard-width-temp.marchent-signup-popup .modal-header{padding:0}.creditcard-width-temp.marchent-signup-popup .modal-header h4.modal-title{padding:0 0 8px 0;margin:0;color:#333;font-weight:500}.creditcard-width-temp .cc-detail.cc-lifull-width li.cc-detail-input{width:50%;margin:0}.creditcard-width-temp ul.list-inline{margin:0 -5px}.creditcard-width-temp ul.list-inline li>label{clear:both;padding-top:16px;font-size:18px;line-height:24px;display:block;color:#000;padding-bottom:8px}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{padding-right:6px;padding-left:6px}.creditcard-width-temp .secured-by{display:block;text-align:right;float:right;margin-top:16px}.creditcard-width-temp .secured-by p{margin:0;font-size:12px;line-height:16px;color:#333;display:flex;width:100%;justify-content:end}.creditcard-width-temp .secured-by p span{padding-right:5px;display:inline-block}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp ul.list-inline li>label{margin:0}.creditcard-width-temp .addresswithcountry{position:relative;z-index:3}.creditcard-width-temp .addresswithcountry .countrydropdown{background-position:59px center!important;background-size:25px auto!important;background-repeat:no-repeat;border:1px solid #ccc!important;border-radius:2px 0 0 2px;float:left;position:absolute;left:0;top:0;width:74px;margin:0;cursor:pointer;line-height:40px}.creditcard-width-temp .addresswithcountry .countryselectoption{background-color:#fff;position:absolute;left:0;top:39px;list-style:none;margin:0;padding:0;border:1px solid #ccc;width:213px;border-radius:2px;z-index:-2;border-top-right-radius:0;border-top-left-radius:0}.creditcard-width-temp .form-control{background-color:#fff;background-repeat:no-repeat;border:1px solid #ccc;border-radius:2px;box-shadow:none;color:#333;display:block;font-size:15px;height:40px;line-height:1.42857;padding:6px 12px;width:100%;font-weight:400}.creditcard-width-temp .secured-by p span::before{content:"";width:17px;height:17px;background-repeat:no-repeat;background-position:left center;background-image:url(https://vagaro.azureedge.net/static-content/Images/look.svg);display:inline-block;background-size:16px;position:relative;top:3px;left:-4px}.creditcard-width-temp #card-image.no-card:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/Icon.png)}.creditcard-width-temp #card-image.visa:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/visa-card-img01.png)}.creditcard-width-temp #card-image:before{content:"";position:absolute;background-position:left center;background-repeat:no-repeat;background-size:21px auto;left:13px;top:13px;z-index:5;width:21px;height:18px}.creditcard-width-temp .form-control.inputtransparent{padding-left:30px!important}.creditcard-width-temp ul.list-inline li input.form-control{border-color:#cdcdcd;padding-top:10px;padding-bottom:6px;line-height:22px}.creditcard-width-temp.marchent-signup-popup ul li{margin-bottom:8px;float:none}.creditcard-width-temp.marchent-signup-popup ul{display:flex;flex-wrap:wrap}.creditcard-width-temp.marchent-signup-popup ul li label{font-weight:500}.creditcard-width-temp #card-image.mastercard:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/master-card-img01.png)}.creditcard-width-temp #card-image.amex:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/american-card-img01.png)}.creditcard-width-temp #card-image.discover:before{background-image:url(https://vagaro.azureedge.net/static-content/Images/discover-img01.png)}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.us-f:before{content:""!important}.creditcard-width-temp .modal-body{padding:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}#creditcardiframe_checkoutcart.payment-iframe{margin:0}#creditcardiframe_checkoutccaddress.payment-iframe{margin:0}#creditcardiframe_checkoutcart #creditcardiframe_checkoutccaddress .modal-body .addresswithcountry{margin:0}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.aus-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.aus-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/aus-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.canada-f,.creditcard-width-temp .addresswithcountry.countryselectoption li.canada-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/canada-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.uk-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.uk-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/uk-icon.png")}.creditcard-width-temp .addresswithcountry .countryselectoptionNewBilling li.us-f,.creditcard-width-temp .addresswithcountry .countryselectoptionli.us-f{background-image:url("https://vagaro.azureedge.net/static-content/Images/us-icon.png")}.creditcard-width-temp .addresswithcountry .countrydropdown .selectedcountry{background-repeat:no-repeat;background-position:8px center;background-size:30px 22px;height:100%;width:100%}.creditcard-width-temp .addresswithcountry .countryselectoption li{background-repeat:no-repeat;background-size:30px 22px;background-position:8px center;font-size:16px;line-height:36px;padding-left:50px;cursor:pointer;background-repeat:no-repeat}.creditcard-width-temp .addresswithcountry .countrydropdown:after{width:25px}.creditcard-width-temp .addresswithcountry .countryselectoption{bottom:39px;top:inherit}.marchent-signup-popup.creditcard-width-temp{padding-bottom:90px;z-index:0;position:relative}.mobPro-htmldesign .ffsharinCCgonline .w-tabs.fullwidth-element .w-form .payment-iframe .addresswithcountry{margin:0}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{height:auto;padding-top:10px;padding-bottom:10px;line-height:18px;border-radius:3px}.creditcard-width-temp #card-image:before{top:11px!important}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control.inputtransparent{padding-left:35px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit}.creditcard-width-temp .secured-by.creditcard-width-temp img{top:4px;position:relative}@media screen and (max-width:767px){#dvccframeforfreecard .addresswithcountry .cc-detail-address-input input.inputbox-type1.form-control.preventcopy {height: 48px;}.mobPro-htmldesign .creditcard-width-temp ul.list-inline li input.form-control{padding-top:14px;padding-bottom:14px;font-size:16px}.creditcard-width-temp #card-image:before{top:15px!important}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countrydropdown{height:48px}.mobPro-htmldesign .creditcard-width-temp .cc-detail.cc-lifull-width li .form-control{height:48px}body.mobPro-htmldesign{font-size:16px;line-height:36px}.mobPro-htmldesign .creditcard-width-temp .addresswithcountry .countryselectoption{top:inherit;bottom:47px}.creditcard-width-temp .creditcard-width-temp .addresswithcountry .countrydropdown:after{top:5px}}#dibBusinessSteps .secured-by.creditcard-width-temp img{top:0!important}#Book247CCDetails.payment-iframe{margin:0}#Book247CCAddress.payment-iframe{margin:0}#dvccframeforfreecard .modal-header{margin-bottom:-15px;margin-left:5px}#dvccframeforfreecard .modal-body{margin-left:-15px}#ctl00_VagaroContentPlaceHolder_ddOtherCC .addresswithcountry .cc-detail-address-input input.inputbox-type1,#ddCDPaymentOptions .addresswithcountry .cc-detail-address-input input.inputbox-type1,#divCreateBusinessImport .addresswithcountry .cc-detail-address-input input.inputbox-type1,#divEmpCCDetails .addresswithcountry .cc-detail-address-input input.inputbox-type1,#divRenterCCIframe .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvDepositPopupBody .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvRentFeesCCIframe .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvccframeforfreecard .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:73px;position:relative;border-top-left-radius:0!important;border-bottom-left-radius:0!important;width:calc(100% - 73px);height:40px}#Book247CCDetails #Book247CCAddress .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvAddCardBlock .addresswithcountry .cc-detail-address-input input.inputbox-type1,#dvCheckoutBookingPaymentMethod .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:66px;position:relative;border-top-left-radius:0!important;border-bottom-left-radius:0!important;width:calc(100% - 66px);height:40px}#step3-billing .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:8px;position:relative;border-top-left-radius:0!important;border-bottom-left-radius:0!important;width:calc(100% - 8px);height:40px}.late-payment-parent .mon-pay-info-right .marchent-signup-popup.creditcard-width-temp{padding:0 9px;box-sizing:border-box}.late-payment-parent .creditcard-width-temp .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:73px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 73px)}.late-payment-parent .creditcard-width-temp p{padding:0 5px}.late-payment-parent .creditcard-width-temp li input.inputbox-type1{border:1px solid #ccc;height:40px;font-size:15px}.late-payment-parent .creditcard-width-temp li#card-image:before{top:12px!important}#AddCardDetails .addresswithcountry .cc-detail-address-input input.inputbox-type1{margin-left:74px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 74px)}.creditcard-width-temp li input.inputbox-type1{height:40px}.creditcard-width-temp ul.list-inline li input.form-control{padding-top:8px;padding-bottom:8px;font-size:15px!important}.settingWrapperHalf .settingnew-design .marchent-signup-popup ul li.full .addresswithcountry .cc-detail-address-input input.inputbox-type1.form-control{margin-left:73px;border-top-left-radius:0;border-bottom-left-radius:0;width:calc(100% - 73px)}#divEmpCCDetails .marchent-signup-popup .creditcard-width-temp{margin-left:-25px}#divEmpCCDetails .modal-title{margin-left:-18px}',t+='<div class="cc-stencil-row cc-stencil-row-split"><span class="cc-stencil-box"></span><span class="cc-stencil-box"></span></div><div class="cc-stencil-row"><span class="cc-stencil-box cc-stencil-label"></span><span class="cc-stencil-box"></span></div><div class="cc-stencil-row cc-stencil-row-last"><span class="cc-stencil-box"></span></div>'),"<html> <head> <title></title> <style>"+n+'.creditcard-width-temp.cc-frame-stencil{display:block;width:100%;float:none;padding:0;margin:0;pointer-events:none}.creditcard-width-temp.cc-frame-stencil *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.creditcard-width-temp.cc-frame-stencil .cc-stencil-row{display:block;width:100%;margin:0 0 12px 0;font-size:0;line-height:0}.creditcard-width-temp.cc-frame-stencil .cc-stencil-row.cc-stencil-row-last{margin-bottom:0}.creditcard-width-temp.cc-frame-stencil .cc-stencil-box{display:inline-block;vertical-align:top;width:100%;height:40px;border-radius:4px;background-color:#e9e9e9}.creditcard-width-temp.cc-frame-stencil .cc-stencil-box.cc-stencil-label{display:block;width:120px;height:16px;margin:0 0 8px 0}.creditcard-width-temp.cc-frame-stencil .cc-stencil-row-split .cc-stencil-box{width:48%}.creditcard-width-temp.cc-frame-stencil .cc-stencil-row-three .cc-stencil-box{width:30.66%}.creditcard-width-temp.cc-frame-stencil .cc-stencil-row-split .cc-stencil-box + .cc-stencil-box,.creditcard-width-temp.cc-frame-stencil .cc-stencil-row-three .cc-stencil-box + .cc-stencil-box{margin-left:4%}html[data-theme="dark"] .creditcard-width-temp.cc-frame-stencil .cc-stencil-box{background-color:#3a3a3a}</style> </head> <body class="modal-body"> <div class="creditcard-width-temp cc-frame-stencil" aria-hidden="true">'+t+"</div></body></html>"},GetStyleForZSFrame=function(){var e="";return"undefined"!=typeof backGroundColor&&""!=backGroundColor&&(e+=".popupwidth542 .modal-body { background-color:"+backGroundColor+"}"),""!=$("#hdnButtonBackColor").val()&&null!=$("#hdnButtonBackColor").val()&&""!=$("#hdnButtonFontColor").val()&&null!=$("#hdnButtonFontColor").val()&&(e+=".btn-primary  { background-color: "+$("#hdnButtonBackColor").val()+"!important;border-color:"+$("#hdnButtonBackColor").val()+"!important; color : "+$("#hdnButtonFontColor").val()+"!important;}",e+=".btn-primary:hover { background-color: "+$("#hdnButtonHoveColor").val()+"!important;border-color:"+$("#hdnButtonHoveColor").val()+"!important;}",e+=".btn-default  { background-color!important:  #666666 };"),null!=$("#hdnAddBusinessDummyToken").val()&&""!=$("#hdnAddBusinessDummyToken").val()&&(e+=".addbusiness-right-col { min-height:738px;}",e+=".cc-detail.cc-lifull-width li { margin-bottom:38px;}",e+=".list-inline { margin-left:-5px; margin-right: 0px;}",e+=".modal-content { background:transparent;}",e+=".RadCaptcha img { margin-bottom:14px; margin-top:10px;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px; background-color : #fff;}",e+=".cc-detail.cc-lifull-width li .form-control { font-size:16px;}",e+=".cc-detail.cc-lifull-width li:nth-of-type(4n),.cc-detail.cc-lifull-width li:nth-of-type(5n),.cc-detail.cc-lifull-width li:nth-of-type(6n){margin-bottom:20px}"),e},onRequiredCallback=function(){null!=vui.loader&&vui.loader(!1)},$(window).bind("orientationchange",function(e){setTimeout(function(){setMerchantFrameHeight()},1e3)}),$(".settingMainWarp").on("touchend",function(e){vui.frame.zenswipe.getHeight(),setTimeout(function(){setMerchantFrameHeight()},1e3)}),$(".settingMainWarp").on("touchstart",function(e){vui.frame.zenswipe.getHeight(),setTimeout(function(){setMerchantFrameHeight()},1e3)}),function(e,t,n){_cardIntendent={Model:{IntendentInfo:null},Controls:{frame3d_cardintent:"#frame3d_cardintent",divframe3d_cardintent:"#divframe3d_cardintent",zenswipepaymentframe:".zenswipe-payment-frame"},LoadCardIntendentInfo:function(t){_cardIntendent.Model.IntendentInfo=t;var n='<iframe id="cardIntentInfo" src="'+t.PaymentIntentURL+'" frameborder="0" scrolling="yes"   ></iframe>';e(_cardIntendent.Controls.divframe3d_cardintent).html("");var o=e(_cardIntendent.Controls.frame3d_cardintent);e(_cardIntendent.Controls.divframe3d_cardintent,o).html(n),e(_cardIntendent.Controls.divframe3d_cardintent,o).animate({scrollTop:0},1e3),e(_cardIntendent.Controls.frame3d_cardintent).show(),void 0!==t.IsAffirm&&null!=t.IsAffirm&&1==t.IsAffirm&&(e(_cardIntendent.Controls.zenswipepaymentframe).addClass("AffirmiFrameModal"),e("body").addClass("BodyAffirmiFrameModal")),void 0!==t.IsAffirm&&null!=t.IsAffirm&&0==t.IsAffirm&&(e(_cardIntendent.Controls.zenswipepaymentframe).removeClass("AffirmiFrameModal"),e("body").removeClass("BodyAffirmiFrameModal")),e(_cardIntendent.Controls.zenswipepaymentframe).addClass("showpopup"),ShowLoader(!1)},LoadCardCaptureIntendentInfo:function(e){createCapture3DSecurePopup(),_cardIntendent.LoadCardIntendentInfo(e)},CloseCardIntendentInfo:function(t){if(null!=_cardIntendent.Model.IntendentInfo){var n=_cardIntendent.Model.IntendentInfo;e(_cardIntendent.Controls.frame3d_cardintent).hide(),e(_cardIntendent.Controls.zenswipepaymentframe).removeClass("showpopup"),e("body").removeClass("BodyAffirmiFrameModal"),e(_cardIntendent.Controls.divframe3d_cardintent).html(""),1==t?n.SuccessCallBack(n.SuccessCallBackResponse):n.FailedCallback(n.FailedCallBackResponse)}},CloseCardIntendentInfoFromPayment:function(t){void 0!==t&&null!=t&&(void 0!==t.PaymentIntentId&&null!=t.PaymentIntentId||void 0!==t.PSPReferenceNo&&null!=t.PSPReferenceNo)&&(null!=_cardIntendent.Model.IntendentInfo&&(intentInfo=_cardIntendent.Model.IntendentInfo),"undefined"!=typeof intentInfo&&null!=intentInfo&&1!=intentInfo.Type&&(e(_cardIntendent.Controls.frame3d_cardintent).hide(),e(_cardIntendent.Controls.zenswipepaymentframe).removeClass("showpopup"),e("body").removeClass("BodyAffirmiFrameModal"),e(_cardIntendent.Controls.divframe3d_cardintent).html("")),1==t.IsSuccess?("undefined"!=intentInfo.SuccessCallBackResponse&&null!=intentInfo.SuccessCallBackResponse||(intentInfo.SuccessCallBackResponse={PaymentIntentRespons:null}),intentInfo.SuccessCallBackResponse.PaymentIntentResponse=t,intentInfo.SuccessCallBack(intentInfo.SuccessCallBackResponse)):("undefined"!=intentInfo.FailedCallBackResponse&&null!=intentInfo.FailedCallBackResponse||(intentInfo.FailedCallBackResponse={PaymentIntentRespons:null}),intentInfo.FailedCallBackResponse.PaymentIntentResponse=t,intentInfo.FailedCallback(intentInfo.FailedCallBackResponse)))}}}(jQuery,window,document);var AppActionEnum={ServiceInProgress:20,Show:19,Accept:17,Confirm:1,ConfirmFromCalendar:18,Cancel:3,CancelRecurringApp:10,CancelClass:21,CancelRecurringClass:22,NoShow:15,Deny:4,DenyRecurringAPP:14,Delete:5,DeleteRecurringApp:6,DeletePersonaloff:12,DeleteClass:40,DeleteRecurringClass:41,ReadyToStart:62,ReadyToStartClass:63},AppStatusEnum={ServiceInProgress:"4",Show:"2",Accept:"1",confirm:"11",Cancel:"6",CancelClass:"21",NoShow:"15",Delete:"5",Deny:"14",DeletePersonaloff:"12",DeleteClass:"40",ReadyToStart:"30",ReadyToStartClass:"63"};function CallFordeny(){"undefined"==typeof HideAppointment?void 0!==window.parent.HideAppointment&&window.parent.HideAppointment():setTimeout("HideAppointment()",2e3),"undefined"!=window.parent._vagroNotification.HideControl&&window.parent._vagroNotification.HideControl(1)}function getAction(e,t,n){switch(e){case AppStatusEnum.ServiceInProgress:return AppActionEnum.ServiceInProgress;case AppStatusEnum.Accept:return AppActionEnum.Accept;case AppStatusEnum.confirm:return 3==n?AppActionEnum.Confirm:AppActionEnum.ConfirmFromCalendar;case AppStatusEnum.Cancel:return 0==t?AppActionEnum.Cancel:AppActionEnum.CancelRecurringApp;case AppStatusEnum.CancelClass:return 0==t?AppActionEnum.CancelClass:AppActionEnum.CancelRecurringClass;case AppStatusEnum.Show:return AppActionEnum.Show;case AppStatusEnum.NoShow:return AppActionEnum.NoShow;case AppStatusEnum.Deny:return 0==t?AppActionEnum.Deny:AppActionEnum.DenyRecurringAPP;case AppStatusEnum.Delete:return 0==t?AppActionEnum.Delete:AppActionEnum.DeleteRecurringApp;case AppStatusEnum.DeletePersonaloff:return AppActionEnum.DeletePersonaloff;case AppStatusEnum.DeleteClass:return 0==t?AppActionEnum.DeleteClass:AppActionEnum.DeleteRecurringClass;case AppStatusEnum.ReadyToStart:return AppActionEnum.ReadyToStart;case AppStatusEnum.ReadyToStartClass:return AppActionEnum.ReadyToStartClass}}function SetBookingValue(e){var t=document.getElementById("iFrame_divAppointmentPopup");(null==t&&(t=document.getElementById("iFrame_divRebookAppointment")),null==t&&(t=document.getElementById("iFrame_divBrowseAvailabilityPopup")),null!=t&&t.contentWindow)&&(0,t.contentWindow[e])(_vgVagaroDrive.model.DriveContainerName,_vgVagaroDrive.model.FormsFilesPath)}_app={},_app.getbaseStatusObject=function(e,t,n,o,i){var a={};i?a.striLoggedInUserID=e:a.iLoggedInUserID=e,a.device=t,a.denyComments="",a.isCancelledByCustomer=!1,a.isSendMailToCustomer=!1,a.isFromMyAccount=!1,a.isSeries=0,a.recurringAppRuleId=0,a.selectedDate=null,a.isWorkShop=!1;var r=new Array;return r.push({appointmentId:n,appType:o}),a.appData=r,a},_app.deleteApp=function(e,t,n,o,i,a,r){var d=_app.getbaseStatusObject(n,t,e,1);i&&(d.isSeries=i,d.recurringAppRuleId=a,d.selectedDate=r),_app.changeAppStatus({appChangeData:d,action:AppStatusEnum.Delete},o)},_app.serviceInProgress=function(e,t,n,o,i){var a=_app.getbaseStatusObject(n,t,e,i);_app.changeAppStatus({appChangeData:a,action:AppStatusEnum.ServiceInProgress},o)},_app.denyApp=function(e,t,n,o,i,a,r,d,l){var s=_app.getbaseStatusObject(n,t,e);s.denyComments=i,s.isSendMailToCustomer=a,s.isSeries=r,s.recurringAppRuleId=d,s.selectedDate=l,_app.changeAppStatus({appChangeData:s,action:AppStatusEnum.Deny},o)},_app.cancelApp=function(e,t,n,o,i,a,r,d,l,s,c,p,u,m,h){var f=_app.getbaseStatusObject(n,t,e,1,d);null!=m&&null!=m&&void 0!==m||(m=0),f.denyComments=i,f.isSendMailToCustomer=a,f.isFromMyAccount=null!=d&&null!=d&&d,f.isCancelledByCustomer=null!=r&&null!=r&&r,f.isFromMyAccount?f.strbusinessId=m:f.businessId=m,void 0!==h&&null!=h&&(f.checkoutRequest=h),l&&(f.isSeries=l,f.recurringAppRuleId=s,f.selectedDate=c);var g="";0==l&&(g=null!=p&&null!=p&&""!=p?p:g),_app.changeAppStatus({appChangeData:f,action:AppStatusEnum.Cancel,sGroup:g},o,u)},_app.showApp=function(e,t,n,o,i,a){var r=_app.getbaseStatusObject(n,t,e,i);r.isSendMailToCustomer=a,_app.changeAppStatus({appChangeData:r,action:AppStatusEnum.Show},o)},_app.readytoStartApp=function(e,t,n,o,i,a){var r=_app.getbaseStatusObject(n,t,e,i);r.isSendMailToCustomer=a,_app.changeAppStatus({appChangeData:r,action:AppStatusEnum.ReadyToStart},o)},_app.readytoStartClass=function(e,t,n,o,i,a){var r=_app.getbaseStatusObject(n,t,e,i);r.isSendMailToCustomer=a,_app.changeAppStatus({appChangeData:r,action:AppStatusEnum.ReadyToStartClass},o)},_app.checkInAppointment=function(e,t,n,o,i,a,r,d,l,s){var c=_app.getbaseStatusObject(n,t,e,a,l);c.isSendMailToCustomer=i,c.isFromMyAccount=l,c.isWorkShop=d;var p="";null!=r&&null!=r&&""!=r&&(p=r),c.isFromMyAccount?c.strbusinessId=s:void 0!==s&&parseInt(s)>0&&(c.businessId=s),_app.changeAppStatus({appChangeData:c,action:AppStatusEnum.Show,sGroup:p},o)},_app.noShowApp=function(e,t,n,o,i,a,r,d,l){var s=_app.getbaseStatusObject(n,t,e,1);s.denyComments=i,s.isSendMailToCustomer=a,r&&(s.isSeries=r,s.recurringAppRuleId=d,s.selectedDate=l),_app.changeAppStatus({appChangeData:s,action:AppStatusEnum.NoShow},o)},_app.cancelclass=function(e,t,n,o,i,a,r,d,l,s,c,p){var u=_app.getbaseStatusObject(n,t,e,1);u.denyComments=i,u.businessId=s,u.isSendMailToCustomer=a,r&&(u.isSeries=r,u.recurringAppRuleId=d,u.selectedDate=l,u.isWorkShop=c),u.isCancelledByCustomer=p,_app.changeAppStatus({appChangeData:u,action:AppStatusEnum.CancelClass},o)},_app.deleteclass=function(e,t,n,o,i,a,r,d,l){var s=_app.getbaseStatusObject(n,t,e,1);s.businessId=d,i&&(s.isSeries=i,s.recurringAppRuleId=a,s.selectedDate=r,s.isWorkShop=l),_app.changeAppStatus({appChangeData:s,action:AppStatusEnum.DeleteClass},o)},_app.acceptApp=function(e,t,n,o,i){var a=_app.getbaseStatusObject(n,t,e,1);a.businessId=i,a.isSendMailToCustomer=!0,_app.changeAppStatus({appChangeData:a,action:AppStatusEnum.Accept},o)},_app.ConfirmAppointment=function(e,t,n,o,i,a,r,d,l,s){var c=_app.getbaseStatusObject(n,t,e,a,s);c.isSendMailToCustomer=i,c.isWorkShop=d,void 0!==l&&null!=l&&0==isNaN(l)&&1*l>0&&(void 0===c.businessId||null==c.businessId||""==c.businessId.toString().trim()||1*c.businessId<=0)&&(c.businessId=1*l),void 0!==s&&null!=s&&""!=s&&(c.isFromMyAccount=s,c.strbusinessId=l);var p="";null!=r&&null!=r&&""!=r&&(p=r),_app.changeAppStatus({appChangeData:c,action:AppStatusEnum.confirm,sGroup:p},o)},_app.ConfirmApp=function(e,t,n,o,i){_app.ConfirmAppointment(e,t,n,o,i,1)},_app.deleteAppPersonalOff=function(e,t,n,o,i,a,r){var d=_app.getbaseStatusObject(o,n,null,1);d.editThis=e,d.appointmentId=t,d.recurringAppRuleId=a,d.selectedDate=r,_app.changeAppStatus({appChangeData:d,action:AppStatusEnum.DeletePersonaloff},i)},_app.changeAppStatus=function(e,t,n){var o,i;"undefined"!=typeof BusinessID&&parseInt(BusinessID)>0?e.appChangeData.businessId=BusinessID:3==t&&"undefined"!=typeof isFromNotificationPage&&null!=isFromNotificationPage&&1==isFromNotificationPage&&void 0!==window.parent.BusinessID&&parseInt(window.parent.BusinessID)>0&&(e.appChangeData.businessId=window.parent.BusinessID);var a=getAction(e.action,e.appChangeData.isSeries,t);null!=e&&null!=e&&null==e.sGroup&&(e.sGroup=""),a!=AppActionEnum.Cancel&&a!=AppActionEnum.Deny&&a!=AppActionEnum.DenyRecurringAPP&&a!=AppActionEnum.CancelRecurringApp&&a!=AppActionEnum.CancelClass||"undefined"!=typeof RefundPaidOfflineHtml&&RefundPaidOfflineHtml.length>0&&(e.appChangeData.refundHtml=RefundPaidOfflineHtml,RefundPaidOfflineHtml=""),1==t?null!=a&&(e.action=a,o=a==AppActionEnum.DeletePersonaloff?CallSuccess_DeleteAppPONew:_app.statusChangeCallback.bind(a),i=callAppFailed):2==t?null!=a&&(e.action=a,o=_custAppointment.callCustomerModuleSuccess,i=_custAppointment.callCustomerModuleFailed):3==t?null!=a&&(e.action=a,o="undefined"!=typeof isFromNotificationPage&&1==isFromNotificationPage?CallFordeny:a==AppActionEnum.Accept?_vagroNotification.AcceptAppointmmentSuccess:a==AppActionEnum.Confirm?CallMyAccountConfirmSuccess:a==AppActionEnum.Show?CallMyAccountCheckInSuccess:function(e){CallMyAccountSuccess(e,n)},i=function(e){}):4==t&&null!=a&&(a==AppActionEnum.Delete&&(o=_checkout.DeleteItemFromGrid),i=function(e){});var r=new vagaro.ajax;r.datamodel.Token="ChangeAppointmentStatus",r.datamodel.data=e,r.datamodel.callback=o,1==t&&a==AppActionEnum.ServiceInProgress&&(r.datamodel.async=!1),r.datamodel.Error=i,r.Post()},_app.ajaxPost=function(e,t,n){var o="MySampleService.asmx/PageMethodsProxyJson",i=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";try{if(void 0!==e&&null!=e&&null!=e)o=o+"?token="+JSON.parse(e).Token}catch(e){}o=i+"WebServices/"+o,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:o,data:e,dataType:"json",success:function(e){t(e.d)},error:n})},_app.getToolTip=function(e,t){var n=t.get_attributes(),o=n.getAttribute("eventType"),i=_vgCal.Common.IsClassOrWS(o),a=n.getAttribute("CustomerPhone"),r=(""!=e?e+" : ":"")+t.get_start().localeFormat("ddd")+" - "+t.get_start().localeFormat(businessTimeFormat)+" - "+t.get_end().localeFormat(businessTimeFormat);"9"!=n.getAttribute("AppStatus")&&(r+=", "+n.getAttribute("CustName"),"True"!=viewCustomer_app&&"True"!=modifyCustomer_app||""!=a&&null!=a&&(r+=": "+a)),i&&(r+=n.getAttribute("SPName")),t.set_toolTip(r)},_app.statusChangeCallback=function(e){HideTodayAppointmentHTML(),""!=e.message&&null!=e.message&&ShowPopupAlert(e.message);var t=!1;this!=AppActionEnum.Cancel&&this!=AppActionEnum.CancelClass&&this!=AppActionEnum.CancelRecurringClass&&this!=AppActionEnum.CancelRecurringApp&&this!=AppActionEnum.Deny&&this!=AppActionEnum.DenyRecurringAPP&&this!=AppActionEnum.DeleteRecurringApp&&this!=AppActionEnum.Delete&&this!=AppActionEnum.DeleteClass&&this!=AppActionEnum.DeleteRecurringClass||(t=!0),this==AppActionEnum.ServiceInProgress&&null!=e.appointmentStatusChange&&""!=e.appointmentStatusChange[0].ZoomURL&&window.open(e.appointmentStatusChange[0].ZoomURL,"_blank","","");var n=GetRadScheduler();if(1==e.operationStatus){for(var o=[],i=0;i<e.appointmentStatusChange.length;i++)n.get_appointments().forEach(function(n){var a=e.appointmentStatusChange[i];if(n.get_id()==a.appointmentId)if(0==t){1==a.IsPaid&&"False"==n._attributes.getAttribute("isPaid")&&$("#ParentAppId_"+n.get_id()).length>0&&$("#ParentAppId_"+n.get_id()).first().length>0&&($("#ParentAppId_"+n.get_id()).first().prepend("<div  class='calender-icon prepay-paid-appt fl calendar-prepay'><i class='fa-dollar-sign font-awes-icon font-awes-text-900' data-appid='"+a.appointmentId+"' ></i> </div>"),n._attributes.setAttribute("isPaid","True"));var r=n._attributes.getAttribute("isCustomerCheckin");if("undefined"!=typeof isCovidCheckInEnable&&null!=isCovidCheckInEnable&&"true"==isCovidCheckInEnable){var d=$("#ParentAppId_"+n.get_id());(2==a.status||30==a.status)&&n._attributes.getAttribute("AppStatus")!=a.status&&d.length>0&&d.first().length>0&&$(d).find("[data-checkedappid='"+a.appointmentId+"']").length<=0&&"True"==r?d.first().prepend("<div class='calender-icon' data-checkedappid='"+a.appointmentId+"'><span class='checked-in-icon'>&#xf4fc;<span/></div>"):2!=a.status&&30!=a.status&&$(d).find("[data-checkedappid='"+a.appointmentId+"']").length>0&&$(d).find("[data-checkedappid='"+a.appointmentId+"']").remove()}var l=GetCSSClassForAppointment(a.status,a.genderInformation,a.outCallType);n.set_cssClass(l),n._attributes.setAttribute("AppStatus",a.status),n._attributes.setAttribute("AppID",a.appointmentId),n._id=parseInt(a.appointmentId);var s=GetAppointmentStatusText(a.status);_app.getToolTip(s,n)}else o.push(n)});if(t)for(i=0;i<o.length;i++)o[i].remove();var a="",r={r_cancel:6,r_deny:8,r_delete:12,r_readytostart:30},d={r_appointment:1,r_class:2},l=d.r_appointment;this==AppActionEnum.Cancel||this==AppActionEnum.CancelClass||this==AppActionEnum.CancelRecurringClass||this==AppActionEnum.CancelRecurringApp?(this!=AppActionEnum.CancelClass&&this!=AppActionEnum.CancelRecurringClass||(l=d.r_class),a=r.r_cancel):this==AppActionEnum.Deny||this==AppActionEnum.DenyRecurringAPP?a=r.r_deny:this==AppActionEnum.ReadyToStart||this==AppActionEnum.ReadyToStartClass?(a=r.r_readytostart,this==AppActionEnum.ReadyToStartClass&&(l=d.r_class)):this!=AppActionEnum.DeleteRecurringApp&&this!=AppActionEnum.Delete&&this!=AppActionEnum.DeleteClass&&this!=AppActionEnum.DeleteRecurringClass||(this!=AppActionEnum.DeleteClass&&this!=AppActionEnum.DeleteRecurringClass||(l=d.r_class),a=r.r_delete),"function"!=typeof ShowSuccessMsgChangeStatus||a!=r.r_cancel&&a!=r.r_deny&&a!=r.r_delete&&a!=r.r_readytostart||ShowSuccessMsgChangeStatus(a,l)}ShowLoadingPanal(!1),$(".fa-dollar-sign").on("mouseenter",function(e){"function"==typeof ShowPaymentMethod&&(ShowPaymentMethod(e,$(this),$(this).data("appid")),e.stopPropagation(),e.preventDefault())})};var AppointmentActionEnum={AddSingleAppointmentOffline:33,UpdateAppointmentOffline:34,WaitingToReal:35,MoveAppointmentOffline:37,RescheduleOnline:38,EditSeriesOffline:39,AddMultipleAppointmentOffline:42,AddServiceFromCheckOut:43,AddAppointmentSeriesOffline:44,AddMultipleAppointmentSeriesOffline:45,EditSingleAppointmentToRecurring:46,RebookAppointment:47,AddSinglePersonalOff:48,AddSeriesPersonalOff:49,EditSinglePersonalOff:50,EditSeriesPersonalOff:51,EditSinglePersonalOffFromSeries:52,EditSinglePersonalOffToSeries:53,AddOnlineAppointment:54,AddSingleClass:55,AddSeriesClass:56,EditSingleClassToSeries:57,EditSingleClass:58,EditSeriesClass:59,EditServiceFromCheckOut:61},appServiveProvider=null,prevServiceProviderVal="",prevServiceVal="",appHistoryPopupBindId="";function SetVagaroDriveGlobalVariable(e,t){"undefined"!=typeof _vgVagaroDrive&&(_vgVagaroDrive.model.DriveContainerName=e,_vgVagaroDrive.model.FormsFilesPath=t,_vgVagaroDrive.model.IsVagaroDriveEnable=!0,_vgVagaroDrive.model.CalledFrom!=_vgVagaroDrive.CalledFrom.CalendarAppointment&&_vgVagaroDrive.model.CalledFrom!=_vgVagaroDrive.CalledFrom.SearchRebookWaitingToRealAppointment&&_vgVagaroDrive.LoadUploadUserControl(!1))}_vgAddEditApp={},_vgAddEditApp.Common={model:{isOffline:!0},PageMethodsProxyPostWihoutCoreJS:function(e,t,n){var o="MySampleService.asmx/PageMethodsProxyJson",i=location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+"/";try{void 0!==e&&null!=e&&null!=e&&(o=o+"?token="+JSON.parse(e).Token)}catch(e){}o=i+"WebServices/"+o,$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:o,data:e,dataType:"json",success:function(e){t(e.d)},error:n,beforeSend:function(e){e.setRequestHeader("K",getek()),e.setRequestHeader("I",getei()),e.setRequestHeader("Val",EncIV()),"undefined"!=typeof keepAlive&&e.setRequestHeader("keepAlive",keepAlive),1==$("#hdnToken1").length&&void 0!==$("#hdnToken1").val()&&e.setRequestHeader("token1",$("#hdnToken1").val()),1==$("#hdnToken2").length&&void 0!==$("#hdnToken2").val()&&e.setRequestHeader("token2",$("#hdnToken2").val()),1==$("#hdnToken0").length&&void 0!==$("#hdnToken0").val()&&e.setRequestHeader("token0",$("#hdnToken0").val())}})},PageMethodsProxyPost:function(e,t,n,o,i){var a=new vagaro.ajax;a.datamodel.Token=t,a.datamodel.data=e,a.datamodel.callback=o,a.datamodel.Error=i,1==n?a.PostQue():a.Post()},ShowLoader:function(e){return e?1==this.model.isOffline&&("function"==typeof ShowLoadingPanal?ShowLoadingPanal(!0):ShowLoadingPanel(!0)):"function"==typeof ShowLoadingPanal?ShowLoadingPanal(!1):ShowLoadingPanel(!1),this}},_vgAddEditApp.AddEditApp={Controls:{SingleAppointmentServiceProvider:"#ctl00_VagaroContentPlaceHolder_ucNewAppAjax_hdnServiceProviderID"},model:{},init:function(e){this.model=e},CommonVariableAssignment:function(e){var t=[];0==Array.isArray(this.model)?t.push(this.model):t=this.model;for(var n=[],o={AddOnDetailsAddDelete:[]},i=0;i<=t.length-1;i++){var a={};0==i&&void 0!==t[i].objCardDetails&&null!=t[i].objCardDetails?a.objCardDetails=t[i].objCardDetails:a.objCardDetails=null;var r=getQueryStringData("Type");if("OnBoarding"!=r&&"ImportOnBoarding"!=r||(a.IsOnBoarding=!0,a.OnBoardingBusinessId=getQueryStringData("Bid")),a.iLoggedInUserID=t[i].LoggedInUserID,a.AppointmentID=t[i].AppointmentID,a.device=t[i].Device,a.YelpTokenId=t[i].YelpTokenId,a.businessID=t[i].BusinessID,a.calendarID=t[i].CalendarID,a.serviceProviderID=t[i].ServiceProviderID,a.serviceID=t[i].ServiceID,a.serviceName=t[i].ServiceName,a.styleID=t[i].StyleID,a.promotionID=t[i].PromotionID,a.appType=t[i].AppType,a.duration=t[i].Duration,a.isFromTextMarketing=t[i].isFromTextMarketing,a.CustomerStartTime=t[i].CustomerStartTime,a.CustomerTimeZone=t[i].CustomerTimeZone,a.CleanupTime=t[i].CleanupTime,a.PreOutCallTime=t[i].PreOutCallTime,a.PostOutCallTime=t[i].PostOutCallTime,e!=AppointmentActionEnum.AddMultipleAppointmentOffline&&e!=AppointmentActionEnum.AddSingleAppointmentOffline&&e!=AppointmentActionEnum.AddOnlineAppointment&&e!=AppointmentActionEnum.RebookAppointment&&e!=AppointmentActionEnum.AddAppointmentSeriesOffline&&e!=AppointmentActionEnum.AddMultipleAppointmentSeriesOffline&&e!=AppointmentActionEnum.MoveAppointmentOffline||(void 0!==t[i].DepositsPercentage&&(a.DepositsPercentage=t[i].DepositsPercentage),o.AddOnDetailsAddDelete.push(_onlineCheckout.CreateOnlineServiceAddonsCollection(t[i].lstAddonService,t[i]))),void 0===t[i].IsPaid||0==t[i].IsPaid?(a.pointGiven=t[i].PointGiven,a.pointRedeem=t[i].PointRedeem):(1==t[i].IsPaid&&1==t[i].isPointApply?(a.pointGiven=0,a.pointRedeem=t[i].PointRedeem):1==t[i].IsPaid&&(a.pointGiven=t[i].PointGiven,a.pointRedeem=0),void 0!==t[i].payableAmount&&(a.payableAmount=t[i].payableAmount),void 0!==t[i].depositsPercentage&&(a.depositsPercentage=t[i].depositsPercentage),void 0!==t[i].paidType&&(a.paidType=t[i].paidType)),void 0!==t[i].DiscountID&&(a.discountID=t[i].DiscountID),a.genderInformation=t[i].GenderInformation,a.outcallType=t[i].OutcallType,null!=t[i].OutcallAddress&&""!=t[i].OutcallAddress&&t[i].OutcallAddress.includes("|~|")){var d=t[i].OutcallAddress.split("|~|")[0];a.outcallAddress=d}else a.outcallAddress=t[i].OutcallAddress;if(a.comment=t[i].Comment,void 0===t[i].IsServicePerformAtSameTime||""==t[i].IsServicePerformAtSameTime||null==t[i].IsServicePerformAtSameTime?a.isServicePerformAtSameTime=!1:a.isServicePerformAtSameTime=t[i].IsServicePerformAtSameTime,2==t[i].isServicePerformAtSameTime&&(a.isServicePerformAtSameTime=!0),e!=AppointmentActionEnum.AddMultipleAppointmentOffline&&e!=AppointmentActionEnum.AddMultipleAppointmentSeriesOffline||(a.isMultiAppointment=t[i].IsMultiAppointment,a.csvServiceID=t[i].csvServiceID,a.csvSPID=t[i].csvSPID,a.csvResourceID=t[i].csvResourceID,a.csvPrice=t[i].csvPrice,a.csvDuration=t[i].csvDuration,a.csvTime=t[i].csvTime,a.csvPointGiven=t[i].csvPointGiven,a.csvPointRedeem=t[i].csvPointRedeem,a.csvCalendarID=t[i].csvCalendarID,a.csvServiceName=t[i].csvServiceName,a.isSaveAppointment=t[i].isSaveAppointment,a.businessPackageID=t[i].BusinessPackageID,a.serviceProviderName=t[i].ServiceProivderName),e==AppointmentActionEnum.MoveAppointmentOffline||e==AppointmentActionEnum.RebookAppointment||e==AppointmentActionEnum.AddOnlineAppointment){if(a.serviceProivderName=t[i].ServiceProviderName,a.BusinessPackageID=t[i].BusinessPackageID,e==AppointmentActionEnum.AddOnlineAppointment&&(a.isNewCustomer=void 0!==t[i].isNewCustomer&&t[i].isNewCustomer,a.HasFmbFee=void 0!==t[i].HasFmbFee?t[i].HasFmbFee:0,a.IsFMBEnableForBusiness=void 0!==t[i].IsFMBEnableForBusiness&&t[i].IsFMBEnableForBusiness),""==a.promotionID?a.promotionID=0:a.promotionID=parseInt(a.promotionID),""==a.styleID&&(a.styleID=0),""==a.appType&&(a.appType=0),1==t[i].IsPaid)a.IsPaid=t[i].IsPaid;else if(!String.isNullOrUndefineOrBlank(t[i].lstAddonService)){var l=$.grep(t[i].lstAddonService,function(e){return 1==e.IsPaid});l.length>0&&t[i].Amount<=0&&(a.IsPaid=!0,void 0!==t[i].paidType&&t[i].paidType==_onlineCheckout.arrpaidType.UnPaid&&(a.paidType=l[0].paidType))}a.userID=parseInt(t[i].UserID),a.amount=t[i].Amount,a.totalOutCallDuration=t[i].OutCallTime,a.appRecurrenceRuleID=0,a.isRecurrence=!1,a.ruleEndDate=null,a.resourceID=null,a.isCheckResourceOverlap=!0,a.isCheckAppointmentOverlap=!0,a.apptBookingDevice=null,a.status=t[i].Status,a.startTime=t[i].StartTime,a.appSrNo=t[i].AppSrNo,a.originalDuration=parseInt(t[i].OriginalDuration),a.originalPrice=t[i].OriginalPrice,a.originalPointRedeem=t[i].OriginalPointRedeem,a.styleName=t[i].StyleName,a.phoneType=t[i].PhoneType,a.phoneNo=t[i].PhoneNo,a.CellCountryId=t[i].CellCountryId,a.DialingCode=t[i].DialingCode,e!=AppointmentActionEnum.RebookAppointment&&e!=AppointmentActionEnum.AddOnlineAppointment||(a.businessPackageID=t[i].BusinessPackageID,a.oldAppStartTime=t[i].OldAppStartTime,a.isFromCal=t[i].isFromCal,a.eventType=1,void 0!==t[i].CustomerStartTime&&null!=t[i].CustomerStartTime&&""!=t[i].CustomerStartTime&&(a.CustomerStartTime=t[i].CustomerStartTime),void 0!==t[i].CustomerTimeZone&&null!=t[i].CustomerTimeZone&&""!=t[i].CustomerTimeZone&&(a.CustomerTimeZone=t[i].CustomerTimeZone),String.isNullOrUndefineOrBlank(t[i].CustomerStartTime)&&String.isNullOrUndefineOrBlank(t[i].CustomerTimeZone)&&(String.isNullOrUndefineOrBlank($(_shopdetail.txtLiveStreamAddress).val())||String.isNullOrUndefineOrBlank($("#hdnServiceLiveStreamSelectedVal").data("actualvalue")))&&(String.isNullOrUndefineOrBlank(_shopdetail.BookingDetail.browserCustomerTime)||String.isNullOrUndefineOrBlank(_shopdetail.BookingDetail.browserCustomerTimezone)||(a.CustomerStartTime=moment(t[0].StartTime).format("DD MMM yyyy")+" "+_shopdetail.BookingDetail.browserCustomerTime,a.CustomerTimeZone=_shopdetail.BookingDetail.browserCustomerTimezone)),void 0!==t[i].isWaitingtoreal&&void 0!==t[i].waitlistID&&(a.isWaitingtoreal=t[i].isWaitingtoreal,a.waitlistID=t[i].waitlistID))}else a.sIV=t[i].sIV,a.sKey=t[i].sKey,a.sValue=t[i].sValue,a.serviceProivderName=t[i].ServiceProivderName,a.userID=t[i].CustomerID,a.ruleStartDate=t[i].AppDate,a.stHours=t[i].StHours,a.stMins=t[i].StMins,a.amount=t[i].Price,a.processStartTime=t[i].ProcessStartTime,a.processDuration=t[i].ProcessDuration,a.processEndTime=t[i].ProcessEndTime,a.isAdvanceDurationChange=t[i].IsAdvanceDurationChange,a.totalOutCallDuration=t[i].TotalOutCallDuration,a.appRecurrenceRuleID=t[i].RuleID,a.isRecurrence=t[i].IsRecurrence,a.ruleEndDate=t[i].RuleEndDate,e!=AppointmentActionEnum.EditSeriesOffline&&e!=AppointmentActionEnum.AddAppointmentSeriesOffline&&e!=AppointmentActionEnum.AddMultipleAppointmentSeriesOffline&&e!=AppointmentActionEnum.EditSingleAppointmentToRecurring&&e!=AppointmentActionEnum.AddSeriesPersonalOff&&e!=AppointmentActionEnum.EditSeriesPersonalOff&&e!=AppointmentActionEnum.EditSinglePersonalOffFromSeries&&e!=AppointmentActionEnum.EditSinglePersonalOffToSeries&&e!=AppointmentActionEnum.AddSeriesClass&&e!=AppointmentActionEnum.EditSeriesClass&&e!=AppointmentActionEnum.EditSingleClassToSeries||(a.ruleType=t[i].RuleType,a.cSVWeekDayIDs=t[i].CSVWeekDayIDs,a.cSVWeekDayNames=t[i].CSVWeekDayNames,a.weekFrequency=t[i].WeekFrequency,a.monthDate=t[i].MonthDate,a.yearDate=t[i].YearDate,a.yearMonth=t[i].YearMonth,a.recAppChangeType=t[i].RecAppChangeType,a.oldRuleStartDate=t[i].OldRuleStartDate,a.oldRuleEndDate=t[i].OldRuleEndDate,a.isCheckAppointmentOverlap=t[i].IsCheckAppointmentOverlap,a.AppDateOverlappingalert=t[i].AppDateOverlappingalert,e!=AppointmentActionEnum.EditSeriesClass&&e!=AppointmentActionEnum.EditSingleClassToSeries||(a.IsCheckAttendeeExists=t[i].IsCheckAttendeeExists)),a.isSendMailChecked=t[i].isSendMailChecked,a.resourceID=t[i].ResourceID,a.isCheckResourceOverlap=t[i].IsCheckResourceOverlap,a.apptBookingDevice=t[i].ApptBookingDevice;e==AppointmentActionEnum.UpdateAppointmentOffline||e==AppointmentActionEnum.EditSeriesOffline||e==AppointmentActionEnum.EditSingleAppointmentToRecurring||e==AppointmentActionEnum.EditSingleClass||e==AppointmentActionEnum.EditSeriesClass||e==AppointmentActionEnum.EditSingleClassToSeries?(a.editThis=t[i].EditThis,a.oldServiceID=t[i].OldServiceID,a.oldServiceName=t[i].OldServiceName,a.strOldAppStartTime=t[i].strOldAppStartTime,a.oldOutcallType=t[i].OldOutCallType,a.oldRuleType=t[i].oldRuleType,a.DepositsPercentageNew=t[i].DepositsPercentageNew):e==AppointmentActionEnum.MoveAppointmentOffline||e==AppointmentActionEnum.RebookAppointment||e==AppointmentActionEnum.AddOnlineAppointment?(a.editThis=-1,e==AppointmentActionEnum.MoveAppointmentOffline&&void 0!==t[i].DepositsPercentage&&(a.DepositsPercentageNew=t[i].DepositsPercentage)):e!=AppointmentActionEnum.AddSinglePersonalOff&&e!=AppointmentActionEnum.AddSeriesPersonalOff&&e!=AppointmentActionEnum.EditSinglePersonalOff&&e!=AppointmentActionEnum.EditSeriesPersonalOff&&e!=AppointmentActionEnum.EditSinglePersonalOffFromSeries&&e!=AppointmentActionEnum.EditSinglePersonalOffToSeries||(a.endHours=t[i].EndHours,a.endMins=t[i].EndMins,a.shopMinTimeHr=t[i].ShopMinTimeHr,a.shopMinTimeMin=t[i].ShopMinTimeMin,a.shopMaxTimeHr=t[i].ShopMaxTimeHr,a.shopMaxTimeMin=t[i].ShopMaxTimeMin,a.calMinTime=t[i].CalMinTime,a.calMaxTime=t[i].CalMaxTime,a.personalOffType=t[i].PersonalOffType,a.personalTypeOffText=t[i].PersonalTypeOffText,a.isAllowOnlineBooking=t[i].IsAllowOnlineBooking,a.isWholeDayOff=t[i].IsWholeDayOff,0==t[i].FlagConfirmation?a.isCheckAppointmentOverlap=!0:a.isCheckAppointmentOverlap=!1),e!=AppointmentActionEnum.AddSingleClass&&e!=AppointmentActionEnum.AddSeriesClass&&e!=AppointmentActionEnum.EditSingleClass&&e!=AppointmentActionEnum.EditSeriesClass&&e!=AppointmentActionEnum.EditSingleClassToSeries||(a.eventCapacity=t[i].eventCapacity,a.StreamingEventCapacity=t[i].StreamingEventCapacity,a.IsConvertToLiveStream=t[i].IsConvertToLiveStream,a.eventType=t[i].eventType,a.isWorkShop=t[i].isWorkShop,a.noOfSessions=t[i].noOfSessions,a.sellPrice=t[i].sellPrice),"undefined"!=typeof _onlineCheckout&&void 0!==_onlineCheckout.updateAppIdforms&&null!=_onlineCheckout.updateAppIdforms&&_onlineCheckout.updateAppIdforms.length>0&&(a.lstUpdateAppIdInForm=_onlineCheckout.updateAppIdforms),"undefined"!=typeof _onlineCheckout&&void 0!==_onlineCheckout.formResponseIds&&null!=_onlineCheckout.formResponseIds&&_onlineCheckout.formResponseIds.length>0&&(a.lstFormResponseIds=_onlineCheckout.formResponseIds),n.push(a)}return n[0].AddOnDetails=o,n},AddSingleAppointment:function(){var e;e=this.CommonVariableAssignment(AppointmentActionEnum.AddSingleAppointmentOffline);var t={};t.appAddData=e,t.action=AppointmentActionEnum.AddSingleAppointmentOffline,t.calledfrom="",t.membershipData="",_vgAddEditApp.Common.PageMethodsProxyPost(t,"AddSingleAppointment",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},AddSingleAppointmentInvoice:function(){var e;e=this.CommonVariableAssignment(AppointmentActionEnum.AddSingleAppointmentOffline);var t={};t.appAddData=e,t.action=AppointmentActionEnum.AddSingleAppointmentOffline,t.calledfrom="",t.membershipData="",_vgAddEditApp.Common.PageMethodsProxyPost(t,"AddSingleAppointment",!1,InHouseDeposit.SuccessSaveAppointmentInvoice,InHouseDeposit.CallFailSaveAppointmentInvoice)},AddEditAppointmentSuccess:function(e){null==e.errMsg||""==e.errMsg?_vgAddEditApp.AddEditApp.RedirectToCheckout(e):(_vgAddEditApp.Common.ShowLoader(!1),enableAppBookButton(),2==e.errorType?swal({title:e.errMsg,text:"",type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Yes",cancelButtonText:"No",closeOnConfirm:!0,closeOnCancel:!0,customClass:"sweet-alert-model booksweet-alert"},function(t){t&&(_vgAddEditApp.Common.ShowLoader(!0),e.action==AppointmentActionEnum.EditSeriesOffline?(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.EditAppointmentSeriesOffline()):e.action==AppointmentActionEnum.AddAppointmentSeriesOffline?_vgAddEditApp.AddEditApp.model.IsMultiAppointment?(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.AddMultipleAppointmentSeriesOffline()):(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.AddAppointmentSeriesOffline()):e.action==AppointmentActionEnum.AddMultipleAppointmentSeriesOffline?(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.AddMultipleAppointmentSeriesOffline()):e.action==AppointmentActionEnum.EditSingleAppointmentToRecurring&&(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.EditSingleAppointmentToRecurring()))}):ShowPopupAlert(e.errMsg))},AddEditAppointmentFailure:function(e){_vgAddEditApp.Common.ShowLoader(!1),ShowPopupAlert(e.errMsg)},RedirectToCheckout:function(e){try{if(null!=e&&null!=e.lstAppResult&&e.lstAppResult.length>0&&1==$(txtDeposit).is(":visible")&&$(txtDeposit).val()>0&&0==$(txtDeposit).is(":disabled")){_vgAddEditApp.Common.ShowLoader(!0);var t=e.lstAppResult[0],n=new Date(txtAppointmentDate.value).format("yyyy/MM/dd hh:mm:ss tt");location.href=_vgCal.Common.model.CustomerCheckOutPage+"?AppointmentID="+t.AppointmentId+"&EventType="+t.EventType+"&StartTime="+n+"&FormStatus="+void 0+"&IsDeposit=1"}else setTimeout("ClosePopupWithClearData()",1e3)}catch(e){setTimeout("ClosePopupWithClearData()",1e3)}},EditAppointmentOffline:function(){var e={};e.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.UpdateAppointmentOffline),e.action=AppointmentActionEnum.UpdateAppointmentOffline,e.calledfrom="",_vgAddEditApp.Common.PageMethodsProxyPost(e,"EditAppointmentOffline",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},EditAppointmentSeriesOffline:function(){var e={};e.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.EditSeriesOffline),e.action=AppointmentActionEnum.EditSeriesOffline,e.calledfrom="",_vgAddEditApp.Common.PageMethodsProxyPost(e,"EditAppointmentOffline",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},MoveAppointmentOffline:function(e){var t={};t.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.MoveAppointmentOffline),t.action=AppointmentActionEnum.MoveAppointmentOffline,t.calledfrom=e;var n={Token:"EditAppointmentOffline"};n.Data=JSON.stringify(t),_vgAddEditApp.Common.PageMethodsProxyPostWihoutCoreJS(JSON.stringify(n),_vgAddEditApp.AddEditApp.MoveAppointmentOfflineSuccess,CallFailed_savedata)},RescheduleAppointmentOffline:function(e,t,n){var o;o=GetServiceProviderType();var i={};i.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.MoveAppointmentOffline),i.appeditData[0].userCCDetailXML=t,i.appeditData[0].IsServiceP=o[0],i.action=AppointmentActionEnum.RescheduleOnline,i.calledfrom=e,i.checkoutRequest=n,_vgAddEditApp.Common.PageMethodsProxyPost(i,"EditAppointmentOfflinePrepay",!1,_vgAddEditApp.AddEditApp.MoveAppointmentOfflineSuccess,_shopdetail.CallFailed_SaveOnlineBooking)},threeDSSuccessCheckout:function(e){if(void 0!==e&&null!=e){if(_onlineCheckout.AuthorisePaymnetCount=_onlineCheckout.AuthorisePaymnetCount+1,_onlineCheckout.AuthoriseListData.length>_onlineCheckout.AuthorisePaymnetCount)return _onlineCheckout.AuthoriseListData[_onlineCheckout.AuthorisePaymnetCount-1].PaymentIntentId=e.PaymentIntentResponse.PaymentIntentId,_vgAddEditApp.AddEditApp.AuthorisePayment(),!1;_onlineCheckout.AuthoriseListData[_onlineCheckout.AuthorisePaymnetCount-1].PaymentIntentId=e.PaymentIntentResponse.PaymentIntentId,DisableFinalSubmitButtonOnlinebooking(!0),_shopdetail.ProceedforBooking("bookwithcc")}},threeDSFailCheckout:function(e){$("#tabBooking2").hasClass("w--current")&&_shopdetail.LoadBalnkCCFrame(),_onlineCheckout.AuthorisePaymnetCount=0,_onlineCheckout.AuthoriseListData=[],FailedCapture3DSecurePopup()},AffirmSuccessCheckout:function(e){void 0!==e&&null!=e&&(_onlineCheckout.AuthoriseListData[0].PSPReferenceNo=e.PaymentIntentResponse.PSPReferenceNo,DisableFinalSubmitButtonOnlinebooking(!0),_shopdetail.ProceedforBooking("bookwithvpl"))},AffirmFailCheckout:function(e){String.isNullOrUndefineOrBlank(e)||String.isNullOrUndefineOrBlank(e.PaymentIntentResponse)||String.isNullOrUndefineOrBlank(e.PaymentIntentResponse.PSPReferenceNo)||"FAIL"!=e.PaymentIntentResponse.PSPReferenceNo?(_shopdetail.ResetVPLPaymentMethod(!1,!0),DisableFinalSubmitButtonOnlinebooking(!0),_onlineCheckout.AuthorisePaymnetCount=0,_onlineCheckout.AuthoriseListData=[],FailedCapture3DSecurePopup()):(DisableFinalSubmitButtonOnlinebooking(!0),_onlineCheckout.AuthorisePaymnetCount=0,_onlineCheckout.AuthoriseListData=[])},MoveAppointmentOfflineSuccess:function(e){try{void 0!==window._aiBooking&&window._aiBooking&&window._aiBooking.active&&e&&"0"===String(e.errorType)&&"function"==typeof window._aiBooking.sendBookingCompleted&&window._aiBooking.sendBookingCompleted(e,null)}catch(e){}if("undefined"!=typeof CallSuccess_savedata&&$.isFunction(CallSuccess_savedata))if("0"==e.errorType&&1==$("#liMultiDeposit").is(":visible")&&$("#txtMultiAppDeposit").val()>0){var t=e.lstAppResult[0];t.AppointmentID=t.AppointmentId;var n=new Date(gdate.split(",")[0]).format("yyyy/MM/dd hh:mm:ss tt");window.parent.RedirectToCheckoutForDeposit(t,n,void 0)}else CallSuccess_savedata(e.errorType);else void 0!==_shopdetail.CallSuccess_SaveOnlineBooking&&$.isFunction(_shopdetail.CallSuccess_SaveOnlineBooking)&&(_onlineCheckout.AuthorisePaymnetCount=0,_vgAddEditApp.AddEditApp.CreateAuthoriseList(e),_onlineCheckout.AuthoriseListData.length>0?1==_onlineCheckout.AuthoriseListData[0].IsVPLTransaction?_vgAddEditApp.AddEditApp.AuthoriseAffirmPayment():_vgAddEditApp.AddEditApp.AuthorisePayment():(_shopdetail.CallSuccess_SaveOnlineBooking(e.errorType,e),"SHOPDETAIL"==isCalledfrom.toUpperCase()&&"undefined"!=e&&null!=e&&"undefined"!=e.gatewayResponse&&null!=e.gatewayResponse&&"undefined"!=e.gatewayResponse.subResponseCode&&null!=e.gatewayResponse.subResponseCode&&"58-43-1"==e.gatewayResponse.subResponseCode&&CallWebServicehed("MySampleService.asmx/DoLogout","",CallSuccessLogout,CallFailed)))},waitingToReal:function(e){_vgAddEditApp.Common.ShowLoader(!0),e.iLoggedInUserID=iLoggedinUserID,e.businessID=BusinessID,e.device="Website";var t=[];t.push(e);var n={appAddData:t,action:AppointmentActionEnum.WaitingToReal,calledfrom:"",membershipData:""};_vgAddEditApp.Common.PageMethodsProxyPost(n,"AddSingleAppointment",!1,function(t){if(ShowHideResourceListPopUp(!1),_vgAddEditApp.Common.ShowLoader(!1),["-1","-3"].indexOf(t.overlapType.toString())>-1){var n=t&&t.freeResources&&t.freeResources.length>0?t.freeResources:null;if(n)return getCalResourceCombo().options.length=0,AddItemsCalToDDL("0","Select Resource"),$.each(n,function(e,t){AddItemsCalToDDL(t.resourceID,t.resourceName,t.isAvailable)}),getCalResourceCombo().value=0,void ShowHideResourceListPopUp(!0,e.waitingAppId);ShowPopupAlert(t.errMsg)}_vgCal.Common.RefreshCalendar()},function(e){ShowHideResourceListPopUp(!1),_vgAddEditApp.Common.ShowLoader(!1),ShowPopupAlert("Something went wrong."),_vgCal.Common.RefreshCalendar()})},AddMultipleAppointmentOffline:function(){var e={};e=this.CommonVariableAssignment(AppointmentActionEnum.AddMultipleAppointmentOffline);var t={};t.appAddData=e,e[0].csvServiceID.split(",").length>1||e[0].isMultiAppointment?t.action=AppointmentActionEnum.AddMultipleAppointmentOffline:t.action=AppointmentActionEnum.AddSingleAppointmentOffline,t.calledfrom="",t.membershipData="",_vgAddEditApp.Common.PageMethodsProxyPost(t,"AddSingleAppointment",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},AddServiceFromCheckOut:function(e){var t={};t.ruleStartDate=e.newAppointmentDateTime,t.businessID=parseInt(e.businessID),t.iLoggedInUserID=parseInt(e.loggedInUserID),t.userID=parseInt(e.userID),t.userName=e.userName;try{void 0!==$("#hidIsServicePerformSameTime").val()&&""!=$("#hidIsServicePerformSameTime").val()&&(t.isServicePerformAtSameTime="2"==$("#hidIsServicePerformSameTime").val())}catch(e){}null!=e.outcallAddress&&null!=e.outcallAddress&&""!=e.outcallAddress&&(t.outcallAddress=e.outcallAddress),null==e.gridAppointmentDate||""==e.gridAppointmentDate?t.startTime=e.businessTime:t.startTime=e.gridAppointmentDate,1==e.businessAppTypesetting&&-1!=parseInt(e.appType)&&(t.appType=parseInt(e.appType)),t.CustomPackageServiceId="",t.GiftCertificateId="";var n=!1,o="";if(_checkout.PackageData.length>0&&$.grep(_checkout.PackageData,function(e){return 1==e.IsCustomPackage&&(""==e.ServiceName&&2!=e.RenewalStatus||3==e.RenewalStatus)&&(o+=e.GiftCertificateID+",",!0)}).length>0&&(n=!0),null!=e.serviceBundleInfo&&""!=e.serviceBundleInfo){var i=e.serviceBundleInfo.split("|");if(t.isMultiAppointment=!0,t.csvServiceID=i[0],t.csvSPID=i[1],t.csvDuration=i[2],t.csvPrice=i[3],t.csvResourceID=i[4],t.businessPackageID=0,null!=e.businessPacakgeID&&""!=e.businessPacakgeID&&(t.businessPackageID=parseInt(e.businessPacakgeID)),1==n){var a=[];$.grep(i[0].split(","),function(e){0==$.grep(_checkout.CustomPackageServiceId,function(t){return t==e}).length&&a.push(e)}),a.length>0&&(t.CustomPackageServiceId=a.join(","),t.GiftCertificateId=o.slice(0,-1))}}else t.serviceID=parseInt(e.serviceID),t.serviceProviderID=parseInt(e.serviceProviderID),1==n&&0==$.grep(_checkout.CustomPackageServiceId,function(e){return e==t.serviceID}).length&&(t.CustomPackageServiceId=t.serviceID,t.GiftCertificateId=o.slice(0,-1));t.depositsPercentage=e.depositPercentage,t.DepositsAmount=e.DepositsAmount,t.AddOnDetails=_vgAddon.CreateAddonsCollection(t);var r=[];r.push(t);var d={};d.appAddData=r,d.action=AppointmentActionEnum.AddServiceFromCheckOut,d.calledfrom="",_checkout.MembershiplistResult=new Array,_checkout.UserMembershipDataResult=new Array,_checkout.Membershiplist.length>0&&(_checkout.MembershiplistResult=$.grep(_checkout.Membershiplist,function(t){return t.userID==e.userID})),_checkout.UserMembershipData.length>0&&(_checkout.UserMembershipDataResult=$.grep(_checkout.UserMembershipData,function(t){return t.UserID==e.userID||_checkout.IsUserHaveSharedMS(t.SharedUserIDs,t.InActive,e.userID)})),d.membershipData=_checkout.MembershiplistResult.length>0?_checkout.createString(_checkout.MembershiplistResult,"membershipId"):_checkout.UserMembershipDataResult.length>0?_checkout.createString(_checkout.UserMembershipDataResult,"MembershipID"):"",_vgAddEditApp.Common.PageMethodsProxyPost(d,"AddSingleAppointment",!1,function(e){null!=e&&(_checkout.AddItem_Success(e.lstCheckOutResult,e.CustomerMembershipDetails,e.CustomPackageDetails),_checkout.AddUpdateFeeItemInGrid(e.lstCheckOutResult,!0),_checkout.CheckoutGridRowOrdering(),_vgAddon.ClosebtnAddOnService())},function(e){_checkout.CallFailed()})},AddAppointmentSeriesOffline:function(){var e;e=this.CommonVariableAssignment(AppointmentActionEnum.AddAppointmentSeriesOffline);var t={};t.appAddData=e,t.action=AppointmentActionEnum.AddAppointmentSeriesOffline,t.calledfrom="",t.membershipData="",_vgAddEditApp.Common.PageMethodsProxyPost(t,"AddSingleAppointment",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},AddMultipleAppointmentSeriesOffline:function(){var e={};e=this.CommonVariableAssignment(AppointmentActionEnum.AddMultipleAppointmentSeriesOffline);var t={};t.appAddData=e,e[0].csvServiceID.split(",").length>1?t.action=AppointmentActionEnum.AddMultipleAppointmentSeriesOffline:t.action=AppointmentActionEnum.AddAppointmentSeriesOffline,t.calledfrom="",t.membershipData="",_vgAddEditApp.Common.PageMethodsProxyPost(t,"AddSingleAppointment",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},EditSingleAppointmentToRecurring:function(){var e={};e.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.EditSingleAppointmentToRecurring),e.action=AppointmentActionEnum.EditSingleAppointmentToRecurring,e.calledfrom="",_vgAddEditApp.Common.PageMethodsProxyPost(e,"EditAppointmentOffline",!1,_vgAddEditApp.AddEditApp.AddEditAppointmentSuccess,_vgAddEditApp.AddEditApp.AddEditAppointmentFailure)},RebookAppointment:function(e,t){var n={};n.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.RebookAppointment),n.appAddData[0].userCCDetailXML=t,n.action=AppointmentActionEnum.RebookAppointment,n.calledfrom=e,n.membershipData="",_vgAddEditApp.Common.PageMethodsProxyPost(n,"AddSingleAppointment",!1,_vgAddEditApp.AddEditApp.MoveAppointmentOfflineSuccess,CallFailed_savedata)},AddSinglePersonalOff:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.AddSinglePersonalOff)[0],e.action=AppointmentActionEnum.AddSinglePersonalOff,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddEditPersonalOff",!1,_vgAddEditApp.AddEditApp.AddEditPersonalOffSuccess,_vgAddEditApp.AddEditApp.AddEditPersonalOffFailure)},AddSeriesPersonalOff:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.AddSeriesPersonalOff)[0],e.action=AppointmentActionEnum.AddSeriesPersonalOff,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddEditPersonalOff",!1,_vgAddEditApp.AddEditApp.AddEditPersonalOffSuccess,_vgAddEditApp.AddEditApp.AddEditPersonalOffFailure)},EditSinglePersonalOff:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.EditSinglePersonalOff)[0],e.action=AppointmentActionEnum.EditSinglePersonalOff,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddEditPersonalOff",!1,_vgAddEditApp.AddEditApp.AddEditPersonalOffSuccess,_vgAddEditApp.AddEditApp.AddEditPersonalOffFailure)},EditSeriesPersonalOff:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.EditSeriesPersonalOff)[0],e.action=AppointmentActionEnum.EditSeriesPersonalOff,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddEditPersonalOff",!1,_vgAddEditApp.AddEditApp.AddEditPersonalOffSuccess,_vgAddEditApp.AddEditApp.AddEditPersonalOffFailure)},EditSinglePersonalOffFromSeries:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.EditSinglePersonalOffFromSeries)[0],e.action=AppointmentActionEnum.EditSinglePersonalOffFromSeries,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddEditPersonalOff",!1,_vgAddEditApp.AddEditApp.AddEditPersonalOffSuccess,_vgAddEditApp.AddEditApp.AddEditPersonalOffFailure)},EditSinglePersonalOffToSeries:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.EditSinglePersonalOffToSeries)[0],e.action=AppointmentActionEnum.EditSinglePersonalOffToSeries,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddEditPersonalOff",!1,_vgAddEditApp.AddEditApp.AddEditPersonalOffSuccess,_vgAddEditApp.AddEditApp.AddEditPersonalOffFailure)},AddEditPersonalOffSuccess:function(e){if(null==e.errMsg||""==e.errMsg)return $("#divPersionalOffPopup").hide(),void setTimeout("RefreshCalendar()",1e3);2==e.errorType?(_vgAddEditApp.Common.ShowLoader(!1),swal({title:e.errMsg.toString(),text:"",type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Yes",cancelButtonText:"No",closeOnConfirm:!0,closeOnCancel:!0,customClass:"sweet-alert-model"},function(t){if(!t)return enablePOBookButton(),_vgAddEditApp.Common.ShowLoader(!1),!1;_vgAddEditApp.Common.ShowLoader(!1),e.action==AppointmentActionEnum.AddSinglePersonalOff?(_vgAddEditApp.AddEditApp.model.FlagConfirmation=1,_vgAddEditApp.AddEditApp.AddSinglePersonalOff()):e.action==AppointmentActionEnum.AddSeriesPersonalOff?(_vgAddEditApp.AddEditApp.model.FlagConfirmation=1,_vgAddEditApp.AddEditApp.AddSeriesPersonalOff()):e.action==AppointmentActionEnum.EditSinglePersonalOff?(_vgAddEditApp.AddEditApp.model.FlagConfirmation=1,_vgAddEditApp.AddEditApp.EditSinglePersonalOff()):e.action==AppointmentActionEnum.EditSeriesPersonalOff?(_vgAddEditApp.AddEditApp.model.FlagConfirmation=1,_vgAddEditApp.AddEditApp.EditSeriesPersonalOff()):e.action==AppointmentActionEnum.EditSinglePersonalOffFromSeries?(_vgAddEditApp.AddEditApp.model.FlagConfirmation=1,_vgAddEditApp.AddEditApp.EditSinglePersonalOffFromSeries()):e.action==AppointmentActionEnum.EditSinglePersonalOffToSeries&&(_vgAddEditApp.AddEditApp.model.FlagConfirmation=1,_vgAddEditApp.AddEditApp.EditSinglePersonalOffToSeries())})):(_vgAddEditApp.Common.ShowLoader(!1),enablePOBookButton(),ShowPopupAlert(e.errMsg))},AddEditPersonalOffFailure:function(e){_vgAddEditApp.Common.ShowLoader(!1);try{ShowPopupAlert(e.errMsg)}catch(e){ShowPopupAlert("Something went wrong, Try Again.")}},AddOnlineAppointment:function(e,t,n){var o;o=GetServiceProviderType();var i={};i.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.AddOnlineAppointment);for(var a=0;a<i.appAddData.length;a++)i.appAddData[a].IsServiceP=o[a],"undefined"!=typeof isFromTextMarketing&&0==String.isNullOrUndefineOrBlank(isFromTextMarketing)&&(i.appAddData[a].RevenueIsFromTextMarketing=isFromTextMarketing),"undefined"!=typeof PromotionAppointmentID&&0==String.isNullOrUndefineOrBlank(PromotionAppointmentID)&&(i.appAddData[a].RevenuePromotionID=parseInt(PromotionAppointmentID));void 0!==n&&null!=i.appAddData&&i.appAddData.length>0&&$.grep(i.appAddData,function(e){e.isCallFromOnline=!0}),void 0!==n&&null!=n&&void 0!==n.ccDetails&&null!=typeof n.ccDetails&&void 0!==_onlineCheckout.AuthoriseListData&&null!=_onlineCheckout.AuthoriseListData&&_onlineCheckout.AuthoriseListData.length>0&&(n.ccDetails.AuthorisePayment=_onlineCheckout.AuthoriseListData,void 0!==_onlineCheckout.AuthoriseListData[0].IsVPLTransaction&&null!=_onlineCheckout.AuthoriseListData[0].IsVPLTransaction&&1==_onlineCheckout.AuthoriseListData[0].IsVPLTransaction&&(n.IsVPLDistributionRequired=!1)),i.appAddData[0].userCCDetailXML=t,i.action=AppointmentActionEnum.AddOnlineAppointment,i.calledfrom=e,void 0!==n&&null!=n&&("undefined"!=typeof InvoiceNum&&null!=InvoiceNum||(InvoiceNum=_common.GenerateRandomNo(10,n.businessID)),n.InvoiceNum=InvoiceNum),i.checkoutRequest=void 0===n?"":n,i.membershipData="";try{if(0==(void 0!==n&&null!=n&&void 0!==n.vplAmt&&null!=n.vplAmt&&n.vplAmt>0)){var r=0;null!=_shopdetail.BookingDetail.Prepay&&null!=_shopdetail.BookingDetail.Prepay.ccAmt&&null!=_shopdetail.BookingDetail.Prepay.ccAmt&&null!=_shopdetail.BookingDetail.TipAmount&&null!=_shopdetail.BookingDetail.TipAmount&&(r=_shopdetail.BookingDetail.Prepay.ccAmt+_shopdetail.BookingDetail.TipAmount);var d=r>0&&_shopdetail.BookingDetail.DepositsLimit>0&&_shopdetail.BookingDetail.DepositsPer>0,l="true"===$("#hdnIsCCCapturedAllowed").val().toLowerCase()&&!String.isNullOrUndefineOrBlank(gbltotPrice)&&""!=$("#hdnAllowCCCapturedAbove").val()&&gbltotPrice>=parseFloat($("#hdnAllowCCCapturedAbove").val()),s=!String.isNullOrUndefineOrBlank(ZenSwipeCardDetails)&&!String.isNullOrUndefineOrBlank(ZenSwipeCardDetails.card_token),c=!String.isNullOrUndefineOrBlank(_CCDetailCardOnFile)&&!String.isNullOrUndefineOrBlank(_CCDetailCardOnFile.CardTokenId);if((l||d)&&!s&&!c){var p={},u={AppointmentData:i,BusinessDetail:_siteBuilderDetail.AllDetailCommon.BusinessDetail,UserDetail:_siteBuilderDetail.AllDetailCommon.User};p.BusinessID=null!=$("#hdnBusinessID").val()&&$("#hdnBusinessID").val()?$("#hdnBusinessID").val():"0",p.UserID=String.isNullOrUndefineOrBlank(i.appAddData[0].iLoggedInUserID)?0:i.appAddData[0].iLoggedInUserID,p.Step=141,p.PageURL=window.location.href,p.Device=String.isNullOrUndefineOrBlank(i.appAddData[0].device)?"":i.appAddData[0].device,p.AppointmentDetail=JSON.stringify(u),p.UserAgent=null!=navigator.userAgent.toLowerCase()?navigator.userAgent.toLowerCase():"";var m=[];m.push(p);var h=new vagaro.ajax;return h.datamodel.Token="CCCaptureLogError",h.datamodel.data=m,h.datamodel.callback=function(e){},h.datamodel.Error=function(e){},h.Post(),void swal({title:"Your business requires a deposit or credit card on file to complete this booking. Please add a card to proceed.",text:"",confirmButtonColor:"#DD6B55",confirmButtonText:"Ok",closeOnConfirm:!0,closeOnCancel:!0,customClass:"sweet-alert-model"},function(e){swal.close(),location.reload()})}}}catch(e){}onlineAppointmentBookingReq=i,_vgAddEditApp.Common.PageMethodsProxyPost(i,"AddSingleAppointmentForPrePay",!1,_vgAddEditApp.AddEditApp.MoveAppointmentOfflineSuccess,_vgAddEditApp.AddEditApp.AddOnlineAppointmentFailed)},AddOnlineAppointmentFailed:function(e){"undefined"!=typeof CallFailed_savedata&&$.isFunction(CallFailed_savedata)?CallFailed_savedata(e):void 0!==_shopdetail.CallFailed_SaveOnlineBooking&&$.isFunction(_shopdetail.CallFailed_SaveOnlineBooking)&&_shopdetail.CallFailed_SaveOnlineBooking(e)},AddSingleClass:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.AddSingleClass),e.action=AppointmentActionEnum.AddSingleClass,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddClass",!1,_vgAddEditApp.AddEditApp.AddEditClassSuccess,_vgAddEditApp.AddEditApp.AddEditClassFailure)},AddSeriesClass:function(){var e={};e.appAddData=this.CommonVariableAssignment(AppointmentActionEnum.AddSeriesClass),e.action=AppointmentActionEnum.AddSeriesClass,_vgAddEditApp.Common.PageMethodsProxyPost(e,"AddClass",!1,_vgAddEditApp.AddEditApp.AddEditClassSuccess,_vgAddEditApp.AddEditApp.AddEditClassFailure)},EditSingleClass:function(){var e={};e.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.EditSingleClass),e.action=AppointmentActionEnum.EditSingleClass,_vgAddEditApp.Common.PageMethodsProxyPost(e,"EditClass",!1,_vgAddEditApp.AddEditApp.AddEditClassSuccess,_vgAddEditApp.AddEditApp.AddEditClassFailure)},EditSeriesClass:function(){var e={};e.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.EditSeriesClass),e.action=AppointmentActionEnum.EditSeriesClass,_vgAddEditApp.Common.PageMethodsProxyPost(e,"EditClass",!1,_vgAddEditApp.AddEditApp.AddEditClassSuccess,_vgAddEditApp.AddEditApp.AddEditClassFailure)},EditSingleClassToSeries:function(){var e={};e.appeditData=this.CommonVariableAssignment(AppointmentActionEnum.EditSingleClassToSeries),e.action=AppointmentActionEnum.EditSingleClassToSeries,_vgAddEditApp.Common.PageMethodsProxyPost(e,"EditClass",!1,_vgAddEditApp.AddEditApp.AddEditClassSuccess,_vgAddEditApp.AddEditApp.AddEditClassFailure)},AddEditClassSuccess:function(e){if(null==e.errorType||12!=e.errorType&&-13!=e.errorType?_vgCal.SPopup.ShowPopup(!1):_vgCal.SPopup.ShowPopup(!0),_vgCal.Common.ShowLoader(!1),null==e.errMsg||""==e.errMsg)_vgCal.Common.RefreshCalendar();else if(2==e.errorType||12==e.errorType){var t=e.errMsg,n="";if(-1!=t.indexOf("#")){var o=t.split("#");t=o[0],n=o[1]}""!=t?(t.length>700&&$("body").addClass("PopupWrap-Maxheight"),_objMessagePopup.Show("Overlapping Appointments",t,"Cancel","Overlap","",function(){_objMessagePopup.Hide(),$("body").removeClass("PopupWrap-Maxheight")},function(){$("body").removeClass("PopupWrap-Maxheight"),_objMessagePopup.Hide(),""!=n?_objMessagePopup.Show("Students Already Enrolled",n,"Back","Continue","",function(){_objMessagePopup.Hide()},function(){_vgAddEditApp.AddEditApp.EditClassCommon(e),_objMessagePopup.Hide()}):_vgAddEditApp.AddEditApp.EditClassCommon(e)})):""!=n&&_objMessagePopup.Show("Students Already Enrolled",n,"Back","Continue","",function(){_objMessagePopup.Hide()},function(){_vgAddEditApp.AddEditApp.EditClassCommon(e),_objMessagePopup.Hide()})}else-13==e.errorType?($("#"+_vgCal.SPopup.objRecur.divErrorMessage).show(),$("#"+_vgCal.SPopup.objRecur.divErrorMessage)[0].innerHTML=e.errMsg):_vgCal.Common.ShowMsg(e.errMsg)},AddEditClassFailure:function(e){_vgCal.SPopup.ShowPopup(!1).Reset();try{_vgCal.Common.ShowLoader(!1).ShowMsg(e.errMsg)}catch(e){_vgCal.Common.ShowLoader(!1).ShowMsg("Something went wrong, Try Again.")}},EditClassCommon:function(e){_vgCal.Common.ShowLoader(!0),e.action==AppointmentActionEnum.AddSeriesClass?(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.model.IsCheckAttendeeExists=!1,_vgAddEditApp.AddEditApp.AddSeriesClass()):e.action==AppointmentActionEnum.EditSeriesClass?(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.model.IsCheckAttendeeExists=!1,_vgAddEditApp.AddEditApp.EditSeriesClass()):e.action==AppointmentActionEnum.EditSingleClassToSeries&&(_vgAddEditApp.AddEditApp.model.IsCheckAppointmentOverlap=!1,_vgAddEditApp.AddEditApp.model.IsCheckAttendeeExists=!1,_vgAddEditApp.AddEditApp.EditSingleClassToSeries())},EditServiceFromCheckOut:function(e){var t={};t.AppointmentID=e.appointmentID,t.serviceID=e.serviceID,t.serviceName=e.itemTitle,t.serviceProviderID=e.serviceProviderID,t.businessID=e.businessID,t.iLoggedInUserID=e.loggedInUserID,t.userID=e.userID,null!=e.outcallAddress&&null!=e.outcallAddress&&""!=e.outcallAddress&&(t.outcallAddress=e.outcallAddress),null!=e.appType&&null!=e.appType&&(t.appType=e.appType),t.CustomPackageServiceId="",t.GiftcertificateId="",t.isServiceChange=null!=e.isServiceChange&&e.isServiceChange;var n=!1,o="";_checkout.PackageData.length>0&&$.grep(_checkout.PackageData,function(e){return 1==e.IsCustomPackage&&""==e.ServiceName&&2!=e.RenewalStatus&&(o+=e.GiftCertificateID+",",!0)}).length>0&&(n=!0),1==n&&0==$.grep(_checkout.CustomPackageServiceId,function(e){return e==t.serviceID}).length&&(t.CustomPackageServiceId=t.serviceID,t.GiftcertificateId=o.slice(0,-1)),t.ruleStartDate=e.newAppointmentDateTime,t.AddOnDetails=_vgAddon.CreateAddonsCollection(t);var i={};i.editServiceData=t,i.action=AppointmentActionEnum.EditServiceFromCheckOut,i.membershipData=e.membershipData,_vgAddEditApp.Common.PageMethodsProxyPost(i,"EditServiceFromCheckOut",!1,function(e){_checkout.SaveChangeService_Success(e)},function(e){_checkout.CallFailed()})},getAppointmentHistory:function(e,t){if(appHistoryPopupBindId="",appHistoryPopupBindId=t,$("#"+appHistoryPopupBindId).empty(),_vgCal.Common.HasCustomerRight()){if(""!=e||null!=e||null!=e||"0"!=e){ShowLoadingPanel(!0);var n='"iAppointmentID" : '+e;n+=', "iApp_confirm_unique_id" : ""',n+=', "eventType" : 0',CallWS("GeneralWebService.asmx/GetAppointmentHistoryDetails",n,_vgAddEditApp.AddEditApp.onLoadSuccess_AppointmentHistory,_vgAddEditApp.AddEditApp.CallFailed_AppointmentHistory)}}else SetErrorDisplayMessage("0","Sorry, You don't have permission to view Appointment History!!","");return!1},onLoadSuccess_AppointmentHistory:function(e){$("#"+appHistoryPopupBindId).empty();var t=e.d;return null==t||0==t.length?(SetErrorDisplayMessage("2","no records found.",""),void ShowLoadingPanel(!1)):t.Rows.length>0?void _vgAddEditApp.AddEditApp.bindAppointmentHistoryTimeline(t.Rows):(ShowLoadingPanel(!1),void SetErrorDisplayMessage("2","Appointment history can only be seen for the last 90 days.",""))},bindAppointmentHistoryTimeline:function(e){$(".scrolltableParent:visible").scroll(customerresopnsivescroll),$("#"+appHistoryPopupBindId).empty();var t="";if(t="<div class='createbyBlock'>",e.length>0){var n=e[e.length-1].CreatedDateString;t+="<div class='crtbylabel'><label>Created by: </label><span id='crDateTimeline_"+appHistoryPopupBindId+"' runat='server' class='crTime'>"+e[e.length-1].CreatedBy+" on "+n+"</span></div>"}else t+="<div class='crtbylabel'><label>Create by:</label><span id='crDateTimeline_"+appHistoryPopupBindId+"' runat='server' class='crTime'>---</span></div>";t+="</div><div class='gridtablescroll ' id='divexpandArrow'><div class='vg-table-arrow'><a href='javascript:void(0);' id='aExpandAllGridColumn' class='no-underline' onclick='ExpandAllGridColumn(this)'><span class='glyphicon glyphicon-chevron-right'></span></a></div></div><div class='pos-relative'><div id='divClassTimeLineN' class='table-scroll-container scrolldiv-content  default-scrollbar-desk scroll-container table-responsive cl-timeline-table-scroll-container'><div class='scrollperTable' style='width:100%;position: relative;' ></div><table class='tabelGrid responsiveClassTimeLine' cellspacing='0' cellpadding='0' style='width: 100%;'><thead><tr><th>Appointment Date</th><th>Duration</th><th>Service / Class</th><th>Comment</th><th>Service Provider</th><th>Modified By</th><th>Modified Date</th><th class='status-one-line'>Status</th><th>Action</th></tr></thead>",t+="<tbody id='tblGridData_"+appHistoryPopupBindId+"'>";for(var o=!0,i=0;i<e.length;i++){var a=e[i].StartTimeString,r="";if(parseInt(e[i].ModifiedDateString.length)>10&&e[i].ModifiedDateString.toString(),r=e[i].ModifiedDateString,t+="<tr><td>"+a+"</td><td>"+e[i].Duration+"</td><td>"+(null!=e[i].ServiceTitle&&e[i].ServiceTitle.length>0?e[i].ServiceTitle:"---")+"</td><td>"+e[i].Comment+"</td><td>"+(null!=e[i].ServiceProvider&&e[i].ServiceProvider.length>0?e[i].ServiceProvider:"---")+"</td><td>"+(null!=e[i].ModifiedBy&&e[i].ModifiedBy.length>0?e[i].ModifiedBy:"---")+"</td><td>"+r+"</td><td class='status-one-line'>"+e[i].Status+"</td><td><ul>",null!=e[i].Device){if(null!=e[i].EmailStatus&&null!=e[i].EmailStatus&&""!=e[i].EmailStatus){var d=e[i].EmailStatus;"deferred"!=d.toLowerCase()&&"bounce"!=d.toLowerCase()&&"dropped"!=d.toLowerCase()||(d="<span style=color:red;'>Failed</span>"),t+="<li>"+e[i].Device.replace("E-Mail Sent (System)"," Sent ("+d+")"+setEmailStatustoolTip(e[i].EmailStatus))+"</li>"}else t+="<li>"+e[i].Device.replace("E-Mail Sent (System)"," Sent")+"</li>";e[i].depositsPaid>0&&(t+="<div id='divDeposit' style='color:red'> $ "+e[i].depositsPaid.toFixed(2)+" Deposit Paid</div>")}if(null!=e[i].EmailPath&&""!=e[i].EmailPath){var l=/\\/g,s=e[i].EmailPath.replace(l,"\\\\"),c="";""!=s&&-1==s.indexOf(".html")&&(c=s,s=""),t+='<li><a href="javascript:void(0)" onclick="ShowEmailPreviewPopupFromAppoitnment(\''+s+"','"+c+"');\">Email</a></li>"}if(null!=e[i].MessageBody&&""!=e[i].MessageBody&&(t+='<li><a href="javascript:void(0)" onclick="ShowEmailPreviewPopupFromAppoitnment(\''+e[i].MessageBody.replace(/(\r\n|\n|\r)/gm," ")+"',0);\">Notification</a></li>"),null!=e[i].SMSPath&&""!=e[i].SMSPath){l=/\\/g;var p=e[i].SMSPath.replace(l,"\\\\"),u="";""!=p&&-1==p.indexOf(".html")&&(u=p,p=""),t+='<li><a href="javascript:void(0)" onclick="ShowEmailPreviewPopupFromAppoitnment(\''+p+"','"+u+"')\">SMS</a></li>"}void 0!==e[i].isShowClassCancellationPolicy&&null!=e[i].isShowClassCancellationPolicy&&""!=e[i].isShowClassCancellationPolicy&&1==e[i].isShowClassCancellationPolicy&&(t+='<li> <a href="javascript:void(0)" onclick="newCancelPolicy()"> Cancellation Policy</a> </li>',1==o&&($(".contentTitle").text("At Time of Booking - "+a),$(".cancelcontent").text(e[i].AppointmentCancellationText),$(".cancelcontent").append("<br/>"+e[i].ClassCancellationPolicy),o=!1)),t+="</ul>"}t+="</tbody></table></div></div>",$("#"+appHistoryPopupBindId).append(t),ManageClasses.CLApplyCustomScroll("#divClassTimeLineN",!0),ManageClasses.CLAppointmentTimeLineHeaderTable(),showScrollArrow(),ShowLoadingPanel(!1)},CallFailed_AppointmentHistory:function(e){$("#"+appHistoryPopupBindId).empty(),ShowLoadingPanel(!1),"function"!=typeof e.error&&alert(e.error)},setNewSearchCustomer:function(e,t){var n=e;n.length<=0||null==n||""==n?($("#txtSearchCustomer").val(""),NewApp_hdnCustomerID.value="",cusInfoDiv.style.display="none",btnEditCustomer.style.display="none",setDepositeText(_vgCal.Common.DepositOpType.Clear),$("#divDisplayCustomerInfo").find("div.oldspacebox").removeClass("oldspacebox").addClass("oldserachbox"),"undefined"!=typeof _vgVagaroDrive&&(_vgVagaroDrive.model.CustomerDetails.AvatarPath="",_vgVagaroDrive.model.CustomerDetails.AvatarIntials="",_vgVagaroDrive.model.CustomerDetails.Name=""),$("#divSearchCustomer").hide(),t&&(cache_pageIndex=0,cache_OldSelectctedUserId=0,LoadMoreCustomers())):$("#divSearchCustomer").show()},setIconShowHide:function(e){var t=e;t.length<=0||null==t||""==t?$("#divSearchCustomer").hide():$("#divSearchCustomer").show()},isNumberKey:function(e){var t=e.which?e.which:event.keyCode;return!(t>31&&(t<48||t>57))},isMinNumber:function(e){var t=parseInt(e.value);e.value=t>0?t>12?"12":t.toString():"1"},upNumber:function(e){$(".inc-dic-mid .value-plus").closest(".inc-dic-mid").addClass("active");var t=document.getElementById(e).value;if(""==t||null==t||NaN==t)document.getElementById(e).value="1";else if((t=parseInt(t))>12)document.getElementById(e).value="1";else{var n=t+1;n<13&&(document.getElementById(e).value=n.toString())}},downNumber:function(e){$(".inc-dic-mid .value-min").closest(".inc-dic-mid").addClass("active");var t=document.getElementById(e).value;if(""==t||null==t||"NaN"==t)document.getElementById(e).value="1";else if((t=parseInt(t))>0){var n=t-1;n>0&&(document.getElementById(e).value=n.toString())}else document.getElementById(e).value="1"},isMinDateNumber:function(e){var t=parseInt(e.value);e.value=t>0?t>31?"31":t.toString():"1"},upDateNumber:function(e){$(".inc-dic-mid .value-plus").closest(".inc-dic-mid").addClass("active");var t=document.getElementById(e).value;if(""==t||null==t||NaN==t)document.getElementById(e).value="1";else if((t=parseInt(t))>31)document.getElementById(e).value="1";else{var n=t+1;n<32&&(document.getElementById(e).value=n.toString())}},downDateNumber:function(e){$(".inc-dic-mid .value-min").closest(".inc-dic-mid").addClass("active");var t=document.getElementById(e).value;if(""==t||null==t||"NaN"==t)document.getElementById(e).value="1";else if((t=parseInt(t))>0){var n=t-1;n>0&&(document.getElementById(e).value=n.toString())}else document.getElementById(e).value="1"},upMonthDateNumber:function(e){$(".inc-dic-mid .value-plus").closest(".inc-dic-mid").addClass("active");var t=document.getElementById(e).value;if(""==t||null==t||NaN==t)document.getElementById(e).value="1";else if((t=parseInt(t))>31)document.getElementById(e).value="1";else{var n=t+1;n<32&&(document.getElementById(e).value=n.toString())}},downMonthDateNumber:function(e){$(".inc-dic-mid .value-min").closest(".inc-dic-mid").addClass("active");var t=document.getElementById(e).value;if(""==t||null==t||"NaN"==t)document.getElementById(e).value="1";else if((t=parseInt(t))>0){var n=t-1;n>0&&(document.getElementById(e).value=n.toString())}else document.getElementById(e).value="1"},prevServiceDropVal:function(e){"none"==$('[id*="divAppointmentSPName"]').css("display")||(prevServiceVal="",prevServiceVal=e.value)},CheckService:function(){"undefined"!=typeof InHouseDeposit&&null!=typeof InHouseDeposit&&(InHouseDeposit.model.DepoDis=[]),CheckServiceORServiceBundle(),_vgAddon.Model.CurrencySymbol=CurrencySymbol,_vgSearchAddon.Controls.currencySymbol=CurrencySymbol,_vgSearchAddon.Model.SelectedAddonService.length>0&&(_vgSearchAddon.Model.SelectedAddonService[0].lstAddonService=[]),_vgAddon.Model.EditAppAddonsDetail=[],_vgAddon.Model.SelectedAddOnForSearch=[],$(_vgAddon.Controls.DeviceId+" "+_vgAddon.Controls.AddOnsServiceSelect).css("color",""),$(_vgAddon.Controls.AddOnsServiceSelect)[0].innerText="Add-On",$(_vgAddon.Controls.DeviceId+" #ddAddOnsSingalServiceSelect").addClass("addon-plus"),CheckResourceAvailable(),_vgAddon.Model.IsAppointmentFrmCheckout||_vgAddon.Model.IsAppointmentFrmSearch||_vgAddon.Model.IsRebookAppFrmCalendar?(_vgAddon.Controls.DeviceId=_vgAddon.Controls.divSingleAppointment,_vgAddEditApp.AddEditApp.Controls.SingleAppointmentServiceProvider="#ucNewAppAjax_hdnServiceProviderID",_vgAddon.SetDefaultAddonsData(_vgAddon.Controls.DeviceId,$(_vgAddEditApp.AddEditApp.Controls.SingleAppointmentServiceProvider).val()),_vgAddon.Controls.txtAppPrice="ucNewAppAjax_txtPrice",_vgAddon.Controls.txtAppDuration="ucNewAppAjax_txtDuration"):(_vgAddon.Controls.DeviceId=_vgAddon.Controls.divSingleAppointment,_vgAddon.Model.IsFrmClassAddon=!1,$(_vgAddEditApp.AddEditApp.Controls.SingleAppointmentServiceProvider).val(hdnServiceProviderID.value),_vgAddon.SetDefaultAddonsData(_vgAddon.Controls.DeviceId,$(_vgAddEditApp.AddEditApp.Controls.SingleAppointmentServiceProvider).val())),_vgAddon.Model.IfFrmLinkClick=!1;var e=_vgAddon.GetDataOfSelectAllInput(_vgAddon.Controls.DeviceId);_vgSearchAddon.Model.SelecedAddonsDetails=e;var t=_vgAddon.FilterAddonServiceForddl_New(fullServiceMenuPopup.GetSelectedOptions().value,$(_vgAddEditApp.AddEditApp.Controls.SingleAppointmentServiceProvider).val(),_vgAddon.Model.GlobalAddonServiceData);t.length<=0&&(_vgAddon.Model.NoAddonBusiness=!0),_vgAddon.BindAddonServiceFromData(t,function(){null!=Search&&null!=Search.model.SearchAppointmentData&&Search.model.SearchAppointmentData.length>0&&(1==_vgAddon.Model.IsAppointmentFrmSearch&&(_vgSearchAddon.Model.localData.AddonsList=t,_vgAddon.Model.SearchSingleServiceChange=!0),Search.model.SearchAppointmentData[0].serviceid.split(",")[0]==cboServices.value?Search.BindAddonsonSerarchAppointment(Search.model.SearchAppointmentData[0].addonsIds.toString().split(",")[0],Search.model.SearchAppointmentData[0].serviceid.split(",")[0],_vgAddon.Controls.DeviceId):(_vgAddon.Model.IfFrmLinkClick=!1,_vgAddon.OpenAddonModelDialog(cboServices.value,$(_vgAddEditApp.AddEditApp.Controls.SingleAppointmentServiceProvider).val(),0)))})},GetDepositPercentage:function(e,t,n){if(1==e){if("undefined"!=typeof InHouseDeposit&&null!=typeof InHouseDeposit&&n==InHouseDeposit.AppClassType.AppointmentFromOther){if(""!=t&&_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(t,!1,2)>0){if(1!=For_Edit||2!=InHouseDeposit.arrpaidType.Deposits&&1!=InHouseDeposit.arrpaidType.Deposits){var o=t,i=t,a=100*_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(o,!1,2);""!=i&&_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(i,!1,2)>0&&_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(o,!1,0)==_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(i,!1,0)&&(o=_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(i,!1,3),a=100*_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(o,!1,3));var r=Math.round(a+"e2"),d=Number(r+"e-2");return(l=_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(d,!1,3)/_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(totprice_offlinedeposit,!1,3),!0,3))>100&&(l=100),l}return _vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(t,!0,2)}return 0}if(""!=txtDeposit.value&&_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(txtDeposit.value,!1,2)>0){i=o=txtDeposit.value,a=100*_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(o,!1,2),""!=i&&_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(i,!1,2)>0&&_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(o,!1,0)==_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(i,!1,0)&&(o=_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(i,!1,3),a=100*_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(o,!1,3)),r=Math.round(a+"e2"),d=Number(r+"e-2");var l="";return(l=_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(d,!1,3)/_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(NewApp_txtPrice.value,!1,3),!0,3))>100&&(l=100),l}return 0}if(t>0){l=_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(NewApp_txtPrice.value,!1,2)*_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(t,!1,2)/100,!0,3),r=Math.round(l+"e2");var s=Number(r+"e-2");return _vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(s,!0,2)}return 0},ConvertDecimalWithFixed:function(e,t,n){return isNaN(parseFloat(e))&&(e=0),t?parseFloat(e).toFixed(n):parseFloat(parseFloat(e).toFixed(n))},AssignDepositPercentageInSearch:function(e,t,n){if(t>0){var o=_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(100*_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(n,!1,2)/_vgAddEditApp.AddEditApp.ConvertDecimalWithFixed(t,!1,2),!0,2);if(o>100&&(o=100),e.length>0)for(var i=0;i<e.length;i++)void 0!==e[i].IsPaidApptForMove&&1==e[i].IsPaidApptForMove||(e[i].DepositsPercentage=o)}},CreateAuthoriseList:function(e){_onlineCheckout.AuthoriseListData=[],void 0!==e&&null!=e&&void 0!==e.PaymentAuthDetail&&null!=e.PaymentAuthDetail&&e.PaymentAuthDetail.length>0&&$.grep(e.PaymentAuthDetail,function(e){var t={};void 0!==e.NextActionUrl&&null!=e.NextActionUrl&&""!=e.NextActionUrl&&(t.NextActionUrl=e.NextActionUrl,t.MerchantTokenID=e.MerchantTokenID,t.Type=_onlineCheckout.ItemType.Other,t.Isauthorise=!1,t.IsVPLTransaction=e.IsVPLTransaction,_onlineCheckout.AuthoriseListData.push(t))})},AuthorisePayment:function(){var e={};e.CountryID=countryIdBusDetail,e.PaymentIntentURL=_onlineCheckout.AuthoriseListData[_onlineCheckout.AuthorisePaymnetCount].NextActionUrl,e.SuccessCallBack=SuccessCallBack=_vgAddEditApp.AddEditApp.threeDSSuccessCheckout,e.FailedCallback=_vgAddEditApp.AddEditApp.threeDSFailCheckout,e.IsAffirm=!1,_cardIntendent.LoadCardCaptureIntendentInfo(e)},AuthoriseAffirmPayment:function(){var e={};e.CountryID=countryIdBusDetail,e.PaymentIntentURL=_onlineCheckout.AuthoriseListData[0].NextActionUrl,e.SuccessCallBack=SuccessCallBack=_vgAddEditApp.AddEditApp.AffirmSuccessCheckout,e.FailedCallback=_vgAddEditApp.AddEditApp.AffirmFailCheckout,e.IsAffirm=!0,_cardIntendent.LoadCardCaptureIntendentInfo(e)},EditAddonServiceFromCheckOut:function(e,t){var n={};n.AppointmentID=e.appointmentID,n.serviceID=e.serviceID,n.serviceName=e.itemTitle,n.serviceProviderID=e.serviceProviderID,n.businessID=e.businessID,n.iLoggedInUserID=e.loggedInUserID,n.userID=e.userID,null!=e.outcallAddress&&null!=e.outcallAddress&&""!=e.outcallAddress&&(n.outcallAddress=e.outcallAddress),null!=e.appType&&null!=e.appType&&(n.appType=e.appType),n.CustomPackageServiceId="",n.GiftcertificateId="";var o=!1,i="";_checkout.PackageData.length>0&&$.grep(_checkout.PackageData,function(e){return 1==e.IsCustomPackage&&""==e.ServiceName&&2!=e.RenewalStatus&&(i+=e.GiftCertificateID+",",!0)}).length>0&&(o=!0),1==o&&0==$.grep(_checkout.CustomPackageServiceId,function(e){return e==n.serviceID}).length&&(n.CustomPackageServiceId=n.serviceID,n.GiftcertificateId=i.slice(0,-1)),n.ruleStartDate=e.newAppointmentDateTime,n.AddOnDetails=_vgAddon.CreateEditAddonCollection(n,t);var a={};a.editServiceData=n,a.action=AppointmentActionEnum.EditServiceFromCheckOut,a.membershipData=e.membershipData,_vgAddEditApp.Common.PageMethodsProxyPost(a,"EditServiceFromCheckOut",!1,function(e){_checkout.SaveChangeService_Success(e)},function(e){_checkout.CallFailed()})}};var isWidPopup=0,VagaroStaticURL="https://vagaro.azureedge.net/static-content/";function GetPopupCode(e,t,n,o,i){var a="#F37528",r="<div align='left' class='title' style='color:"+a+";border-bottom:1px solid #000;'><span> "+i+"</span></div>",d='HideDynamicPopup("'+o+'");';return"Sign Up"==i&&(a="#000"),"Change Service"!=i&&"Confirm Delete"!=i&&"Print Daily Plan"!=i&&"Print Daily Plan"!=i&&"Calendar Setting"!=i&&"Rebook Service"!=i||(a=""),"Customer History"==i&&(r="",d='HideDynamicPopupandSaveNote("'+o+'");'),"Resource Management"==i&&(d="HideDynamicPopupResourceFrame();"),"<div id='frame_apgProgress_"+o+"' style='display:;'><div class='loader'>&nbsp;</div><div class='loader-img'><img id='frame_imgLoading' src='"+VagaroStaticURL+"Images/loadersmall.gif' style='border-width:0px;width:80px;height:20px;' /></div></div><div style='position: relative; ' id='divinnertop_up'><div id='modalpopupNewAppointment_backgroundElement' style='position: fixed; left: 0px; top: 0px; z-index: -1; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white; font-family: \"Lucida Grande\",\"Arial\"; font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div class='pop-top-mNew'>"+r+"<div style='width: auto; height: auto; margin: 0 -7px;'>\x3c!-- Content --\x3e<iframe name='frame1'  frameborder='0' border='0' src='"+n+"' style='width: "+t+"px; height: "+e+"px;' id='iFrame_"+o+"' onload='javascript:document.getElementById(\"frame_apgProgress_"+o+"\").style.display=\"none\";'></iframe></div><div class='pop-top-mInner'><img alt='Close' onclick='"+d+"' style='cursor: pointer;' src='"+VagaroStaticURL+"Images/btn-close-title1.gif' height='18' width='18'></div></div>"}function ShowDynamicPopup(e,t,n,o,i){var a,r,d,l,s=document.getElementById(o);if(r=(a=getTopLeftPosition(t,n).split("|"))[0],d=a[1],a[2],s.style.left=d-20+"px",(l=document.documentElement.scrollTop!=document.body.scrollTop?document.documentElement.scrollTop+document.body.scrollTop:document.body.scrollTop)>0&&(r=parseInt(r)+l),2==isWidPopup&&(r=100),r-=20,s.style.top=r+"px",trimAll(s.innerHTML).length<6){var c;c=GetPopupCode(t,n,e,o,i),s.innerHTML=c,s.style.position="absolute",s.width="auto",s.height="auto",s.style.zIndex=1000001}s.style.display="",Call_ClearControls(o)}function trimAll(e){return e.replace(/^\s+|\s+$/g,"")}function Call_ClearControls(e){try{var t="iFrame_"+e,n=document.getElementById(t);n.contentWindow?n.contentWindow.ClearControls():n.contentDocument&&n.contentDocument.ClearControls()}catch(e){}}function HideDynamicPopup(e){try{document.getElementById(e).style.display="none"}catch(e){}}function HideCCIFrame(e){document.getElementById(e).style.display="none",$("#iFrame_"+e).attr("src",""),$("#"+e).html("")}function HideDynamicPopupandSaveNote(e,t){var n=document.getElementById("iFrame_"+e),o=n.contentWindow,i=!1;"undefined"!=typeof ChangeAppStatus&&"function"==typeof ChangeAppStatus.IsNewCall&&1==ChangeAppStatus.IsNewCall()&&(i=!0);var a=!1;if("undefined"!=typeof _vgCal&&(a=i&&"undefined"!=typeof ManageClasses&&void 0!==ManageClasses.model.IsPopupOpen?ManageClasses.model.IsPopupOpen:_vgCal.SPopup.model.IsPopupOpen),null!=o.oldAppComment){n.contentDocument?n.contentDocument:n.contentWindow.document;var r=o.txtAppNotes.val();if(o.oldAppComment!=r){var d=!1;if(null!=o.hist_isRecApp&&(d=o.hist_isRecApp),_vgCal.Common.model.IsNewAPI?ChangeAppStatus.ShowLoadingPanel(!0):ShowLoadingPanal(!0),notcommetfromnotepop=r,void 0===t||"History"==t){var l="";"undefined"!=typeof ReactBId&&null!=ReactBId&&""!=ReactBId&&(l=ReactBId);var s={},c={BusinessID:0,CustomerID:0,strGeneral:"",strAlergy:"",strFormula:"",CreateBy:0,sComment:r,AppID:Rec_EditedAppID,RecRuleID:Rec_RuleID,isRecApp:d,isWaitingAppointment:o.hist_isWaitingApp,encBusinessId:l};s.obCustomerNotes=c,CallWSJSON("VagaroWebOffline.asmx/SaveCustomerNotes",JSON.stringify(s),NewApp_CallSuccess_SaveCustomerNotes_hist,CallFailed_Note)}}else{document.getElementById(e).style.display="none",o.txtAppNotes.val(""),null!=o.oldAppComment&&(o.oldAppComment=""),o._refreshCal&&(o._refreshCal=!1,!0===i&&"undefined"!=typeof Scheduler&&"function"==typeof Scheduler.RefreshCalendar?Scheduler.RefreshCalendar():"undefined"!=typeof RefreshCalendar&&RefreshCalendar())}}else{document.getElementById(e).style.display="none",o._refreshCal&&(o._refreshCal=!1,!0===i&&"undefined"!=typeof Scheduler&&"function"==typeof Scheduler.RefreshCalendar?Scheduler.RefreshCalendar():"undefined"!=typeof RefreshCalendar&&RefreshCalendar())}if(a&&"DivZoomIntegrationPopUp"!=e)!0===i&&"undefined"!=typeof ManageClasses&&"function"==typeof ManageClasses.RetrieveAttendeeData?ManageClasses.RetrieveAttendeeData():_vgCal.SPopup.RetrieveAttendeeData();else if("DivZoomIntegrationPopUp"!=e&&"undefined"!=$("[Id$=ddCustomer]")&&"undefined"!=typeof glbCustomerID&&null!=glbCustomerID&&null!=glbCustomerID){var p={};p.CustomerID=glbCustomerID,p.BusinessID=BusinessID,p.eventType="1","undefined"!=typeof _vgCal&&void 0!==_vgCal.Common&&1==_vgCal.Common.model.BusinessCountryId?IsRequireDepositSetting=!0:IsRequireDepositSetting,p.IsRequireDepositSetting=IsRequireDepositSetting,"undefined"!=typeof _vgCal&&void 0!==_vgCal.Common&&_vgCal.Common.hdnAppointmentId>0?p.AppID=_vgCal.Common.hdnAppointmentId:p.AppID=1,(s={}).objcustomerdetails=p,null!=typeof t&&"History"!=t||CallWSJSON("VagaroWebOffline.asmx/GetCustomerDetailForCalendarDisplayNew",JSON.stringify(s),CallSuccess_SelectCustomer,CallFailedJSON)}}function HideDynamicPopupandSaveNoteSearch(e){window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1&&(document.getElementById(e).style.display="none")}function CallFailed_Note(){alert("Appointment comment not saved.Please refresh the page and try again"),document.getElementById("DivCustomerHistoryPopUp").style.display="none",oldAppComment_note.txtAppNotes.val(""),null!=oldAppComment_note.oldAppComment&&(oldAppComment_note.oldAppComment=""),ShowLoadingPanal(!1)}function NewApp_CallSuccess_SaveCustomerNotes_hist(e){null!=txtComment&&(txtComment.value=notcommetfromnotepop),void 0!==_vgCal.SPopup&&_vgCal.SPopup.UpdateCommentsValue(notcommetfromnotepop);var t="DivCustomerHistoryPopUp";document.getElementById(t).style.display="none",_vgCal.Common.model.IsNewAPI?ChangeAppStatus.ShowLoadingPanel(!1):ShowLoadingPanal(!1);var n=document.getElementById("iFrame_"+t).contentWindow;n.txtAppNotes.val(""),null!=n.oldAppComment&&(n.oldAppComment=""),n._refreshCal=!1,"undefined"!=typeof ChangeAppStatus&&1==ChangeAppStatus.IsNewCall()?Scheduler.RefreshScheduler():RefreshCalendar()}function getViewPortHeightWidth(){var e,t;return void 0!==window.innerWidth?(e=window.innerWidth,t=window.innerHeight):void 0!==document.documentElement&&void 0!==document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):(e=document.getElementsByTagName("body")[0].clientWidth,t=document.getElementsByTagName("body")[0].clientHeight),t+"|"+e}function getTopLeftPosition(e,t){var n,o,i;return(i=((o=(n=getViewPortHeightWidth().split("|"))[0])-e)/2)<0&&(i=1),i+"|"+(n[1]-t)/2+"|"+o}function ShowDynamicPopupForShopOwner(e,t,n,o,i,a,r,d,l){var s;(e.indexOf("/ShopOwner/PrintDailyPlanPopup.aspx")>-1||e.indexOf("/DynamicPopupPages/Videos.aspx")>-1||e.indexOf("/ShopOwner/VagaroDrivePopup.aspx")>-1||e.indexOf("/merchants/settings/premiumfeature/vagaropaylater")>-1)&&(window.location.href.indexOf("/merchants/calendar")>-1||window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1||window.location.href.toLocaleLowerCase().indexOf("searchclassfromcalendar.aspx")>-1)&&window.location.href.indexOf("/merchants/settings/lookandfeel/calendarconfiguration")<0&&(e.indexOf("?")>-1?e+="&cal=1":e+="?cal=1");var c=document.getElementById(o);if((s=getTopLeftPosition(t,n).split("|"))[0],s[1],s[2],e.toLowerCase().indexOf("/shopowner/zoomintegrationpopup.aspx")>-1&&(c.innerHTML="",window.location.href.toLocaleLowerCase().indexOf("searchappointmentfromcalendar.aspx")>-1&&void 0!==window.parent&&null!=window.parent&&(window.parent.location.href.toLocaleLowerCase().indexOf("shopowner/checkout.aspx")>-1||/merchants\/checkout\/?(\?.*)?$/i.test(window.parent.location.href.toLowerCase()))&&(e.indexOf("?")>-1?e+="&isCheckout=1":e+="?isCheckout=1")),trimAll(c.innerHTML).length<6){var p=GetPopupCodeForShopOwner(t,n,e,o,i,d,r);if(c.innerHTML=p,c.width="auto",c.height="auto",c.style.zIndex=1000001,null!=a&&null!=a){var u="iFrame_"+o;(m=document.getElementById(u)).contentWindow?m.contentWindow.onload=function(){document.getElementById("frame_apgProgress_"+o).style.display="none",(0,m.contentWindow[a])(r,l)}:m.contentDocument&&(m.contentDocument.onload=function(){document.getElementById("frame_apgProgress_"+o).style.display="none",(0,m.contentDocument[a])(r,l)})}}else if(null!=a&&null!=a){var m;u="iFrame_"+o;if((m=document.getElementById(u)).contentWindow)(0,m.contentWindow[a])(r,l);else if(m.contentDocument){(0,m.contentDocument[a])(r,l)}}void 0!==e&&""!=e&&void 0!==$("#chatFrame")&&$("#chatFrame").length>0&&e.indexOf("/ShopOwner/PrintDailyPlanPopup.aspx")>-1&&"block"==$("#chatFrame").css("display")&&!$("#chatFrame").hasClass("ifream-smallscreen")&&!$("#chatFrame").hasClass("ifream-minimize")&&$("#chatFrame").css("display","none"),SetTopLeft(c),void 0!==c&&"divMergeCustomer"!=c.id&&(c.style.display="flex"),Call_ClearControls(o)}function GetPopupCodeForShopOwner(e,t,n,o,i,a,r){var d="no",l="hidden";if("DivCustomerHistoryPopUp"==o)d="yes",l="auto";var s="";null!=r&&"AddEditCustomer"!=i&&-1!=r.toLowerCase().indexOf("businesscreated.aspx")&&(s="allowfullscreen");var c="";return null!=a&&(c="class="+a),"<div id='frame_apgProgress_"+o+"' style='display:;'><div class='loader'>&nbsp;</div><div class='loader-img'><img id='frame_imgLoading' src='"+VagaroStaticURL+"Images/loadersmall.gif' style='border-width:0px;width:80px;height:20px;' /></div></div><div style='position: relative; ' id='divinnertop_up'><div id='modalpopupNewAppointment_backgroundElement' style='position: fixed; left: 0px; top: 0px; z-index: -1; width: 100%; height: 100%;' class='ModalPopupBG'></div><div style='color: white;  font-size: 11px; position: absolute; text-align: center;width: 100%; z-index: 2001; top: 6px; position:relative;'></div><div class='Modalhistoryfullwidth'  style='width: auto; height: auto; border-radius:4px;  overflow:hidden;'>\x3c!-- Content --\x3e<iframe "+c+"   "+s+"  name='frame1' frameborder='0' scrolling="+d+" border='0' src='"+n+"' style='overflow:"+l+";width: "+t+"px; height: "+e+"px;' id='iFrame_"+o+"' onload='javascript:document.getElementById(\"frame_apgProgress_"+o+'").style.display="none";\'></iframe></div>'}function SetTopLeft(e){$(e).css("position","absolute");$(document).scrollTop();$(e).css("top",Math.max(0,($(window).height()-$(e).outerHeight())/2+$(window).scrollTop())+"px"),$(e).css("left",Math.max(0,($(window).width()-$(e).outerWidth())/2+$(window).scrollLeft())+"px")}function loadbusinessusercontrol(){if(""==$("#ucdivBusinessselecteion").html()||null==$("#ucdivBusinessselecteion").html()){$("#ucdivBusinessselecteion").html("");var e={UserControlPath:"~/ShopOwner/UserControls/ucBusinessList.ascx"};"True"==$("#ucdivBusinessselecteion").data("loadjs")?e.PageNamePath="~/calendar.aspx":e.PageNamePath="~/transactionReport.aspx",e.isRemoveFormTag=!0,AddUserControlAsync("CalendarWebService.asmx/LoadUserControl",JSON.stringify(e),$("#ucdivBusinessselecteion")),setTimeout(function(){LoadBusinessList()},500)}else LoadBusinessList()}"complete"===document.readyState&&$(window).resize(function(){SetTopLeft("#DivCustomerHistoryPopUp")});