1"use strict";(self.rspackChunkvagaro_websitebuilder_consumer=self.rspackChunkvagaro_websitebuilder_consumer||[]).push([[6738],{3754(e,t,a){a.d(t,{A:()=>n});var o=a(74848),i=a(40961);let n=e=>e.isgrid?(0,o.jsx)("div",{className:"ingridLoading",children:(0,o.jsx)("div",{className:"loaderNew",children:(0,o.jsx)("div",{className:"loader-imgNew"})})}):(0,i.createPortal)((0,o.jsx)("div",{className:"loaderNew block-edit",children:(0,o.jsx)("div",{className:"loader-imgNew"})}),document.body)},71737(e,t,a){a.r(t),a.d(t,{default:()=>g});var o=a(74848),i=a(96540),n=a(3754),r=a(86172),s=a(27590);class l{static 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:e=>{"function"==typeof window.onOpeningCallback&&window.onOpeningCallback(e)},onClose:e=>{"function"==typeof window.onCloseCallback&&window.onCloseCallback(e)},onOpened:e=>{"function"==typeof window.onOpenedCallback&&window.onOpenedCallback(e)},onError:e=>{"function"==typeof window.onErrorCallback&&window.onErrorCallback(e)},onGetToken:e=>{"function"==typeof window.onGetTokenCallback&&window.onGetTokenCallback(e)},onRequired:e=>{"function"==typeof window.onRequiredCallback&&window.onRequiredCallback(e)},onHideLoading:e=>{"function"==typeof window.onHideLoadingCallback&&window.onHideLoadingCallback(e)},onDisplayLoading:e=>{"function"==typeof window.onDisplayLoadingCallback&&window.onDisplayLoadingCallback(e)},onGetSize:e=>{"function"==typeof window.onGetSizeCallback&&window.onGetSizeCallback(e)},onApplicationSuccess:e=>{"function"==typeof window.onApplicationSuccessCallback&&window.onApplicationSuccessCallback(e)},onMessage:e=>{"function"==typeof window.onMessageCallback&&window.onMessageCallback(e)},onZSDown:e=>{"function"==typeof window.onZSDownCallback&&window.onZSDownCallback(e)},onFocusIn:e=>{"function"==typeof window.onFocusInCallback&&window.onFocusInCallback(e)},onFocusOut:e=>{"function"==typeof window.onFocusOutCallback&&window.onFocusOutCallback(e)},onTabfocused:e=>{"function"==typeof window.onTabfocusedCallback&&window.onTabfocusedCallback(e)},onRanderPager:e=>{"function"==typeof window.onRanderPagerCallback&&window.onRanderPagerCallback(e)},onShowHideSaveCancel:e=>{"function"==typeof window.onShowHideSaveCancelCallback&&window.onShowHideSaveCancelCallback(e)},onMerchantSuccess:e=>{"function"==typeof window.onMerchantSuccessCallback&&window.onMerchantSuccessCallback(e)},onscrollToTop:e=>{"function"==typeof window.onscrollToTopCallback&&window.onscrollToTopCallback(e)},onDepositPopup:e=>{"function"==typeof window.onDepositPopupCallback&&window.onDepositPopupCallback(e)},onTab1099detail:e=>{"function"==typeof window.onTab1099detailCallback&&window.onTab1099detailCallback(e)},onShowpdf:e=>{"function"==typeof window.onShowpdfCallback&&window.onShowpdfCallback(e)},ondatepickerShowHide:e=>{"function"==typeof window.onShowhideMerchantCallback&&window.onShowhideMerchantCallback(e)},onCcValid:e=>{"function"==typeof window.onCcValidCallback&&window.onCcValidCallback(e)},onResponsiveIframe:e=>{"function"==typeof window.onResponsiveIframeCallback&&window.onResponsiveIframeCallback(e)},onverifyaddresshideloading:e=>{"function"==typeof window.verifyaddresshideloadingCallback&&window.verifyaddresshideloadingCallback(e)},onTransactionDetailForChargeback:e=>{"function"==typeof window.onTransactionChargebackCallback&&window.onTransactionChargebackCallback(e)},onCustomerForChargeback:e=>{"function"==typeof window.onCustomerChargebackCallback&&window.onCustomerChargebackCallback(e)},onUpdateNotificationPanel:e=>{"function"==typeof window.onUpdateNotificationPanelCallback&&window.onUpdateNotificationPanelCallback(e)},onUpdateAcceptRefund:e=>{"function"==typeof window.onUpdateAcceptRefundCallback&&window.onUpdateAcceptRefundCallback(e)},onShowAcceptSubmitPopup:e=>{"function"==typeof window.onShowAcceptSubmitPopupCallback&&window.onShowAcceptSubmitPopupCallback(e)},onSetVMSPlanTitle:e=>{"function"==typeof window.onSetVMSPlanTitleCallback&&window.onSetVMSPlanTitleCallback(e)},onFinishLater:e=>{"function"==typeof window.onFinishLaterCallback&&window.onFinishLaterCallback(e)},onBackToHardwarePage:e=>{"function"==typeof window.onBackToHardwarePageCallback&&window.onBackToHardwarePageCallback(e)},onMongoIdofVMSApplication:e=>{"function"==typeof window.onMongoIdofVMSApplicationCallback&&window.onMongoIdofVMSApplicationCallback(e)},onPlaidLinkTokenId:e=>{"function"==typeof window.onPlaidLinkTokenIdCallback&&window.onPlaidLinkTokenIdCallback(e)},onVMSApplicationCompleteWebView:e=>{"function"==typeof window.onVMSApplicationCompleteWebViewCallback&&window.onVMSApplicationCompleteWebViewCallback(e)},onBrowserBackEventSendtoVagaro:e=>{"function"==typeof window.onBrowserBackEventSendtoVagaroCallback&&window.onBrowserBackEventSendtoVagaroCallback(e)},AddLogInAmplitude:e=>{"function"==typeof window.AddLogInAmplitudeCallback&&window.AddLogInAmplitudeCallback(e)},askVagaroForVMSStep:e=>{"function"==typeof window.askVagaroForVMSStepCallback&&window.askVagaroForVMSStepCallback(e)},GetVagaroLink:e=>{"function"==typeof window.onGetVagaroLinkCallback&&window.onGetVagaroLinkCallback(e)},ShowHideBackArrow:e=>{"function"==typeof window.onShowHideBackArrowCallback&&window.onShowHideBackArrowCallback(e)},CardFrameExpire:e=>{"function"==typeof window.OnCardFrameExpire&&window.OnCardFrameExpire(e)},onSaveBatchTimeResponse:e=>{"function"==typeof window.onSaveBatchTimeResponseCallback&&window.onSaveBatchTimeResponseCallback(e)},onSendbatchTime:e=>{"function"==typeof window.onSendbatchTimeCallback&&window.onSendbatchTimeCallback(e)},OpenChangeBatchPopup:e=>{"function"==typeof window.OpenChangeBatchPopupCallback&&window.OpenChangeBatchPopupCallback(e)},onCyberSourceTrackingId:e=>{"function"==typeof window.onCyberSourceTrackingIdCallback&&window.onCyberSourceTrackingIdCallback(e)},onBusinessLst:e=>{"function"==typeof window.onGetBusineeName&&window.onGetBusineeName(e)},onCreateMerchantSuccess:e=>{"function"==typeof window.onCreateMerchantSuccessCallback&&window.onCreateMerchantSuccessCallback(e)},onShowHideToolTip:e=>{"function"==typeof window.onShowHideToolTip&&window.onShowHideToolTip(e)},onGetVagaroVMSLogData:e=>{"function"==typeof window.GetVagaroVMSLogDataback&&window.GetVagaroVMSLogDataback(e)},ZenwipetoVagaroInstantPayoutPostMessage:e=>{"function"==typeof window.onZenwipetoVagaroInsPostMessageCallback&&window.onZenwipetoVagaroInsPostMessageCallback(e)},onInstantPayoutMobilecallback:e=>{"function"==typeof window.InstantPayoutMobilecallback&&window.InstantPayoutMobilecallback(e)},onDepositMerchantFilterCall:e=>{"function"==typeof window.OnDepositMerchantFilter&&window.OnDepositMerchantFilter(e)},onInstantPayoutMobilecallbackReturn:e=>{"function"==typeof window.InstantPayoutMobilecallbackReturn&&window.InstantPayoutMobilecallbackReturn(e)},onInsPayAddLogInAmplitude:e=>{"function"==typeof window.onInsPayAddLogInAmplitudeCallBack&&window.onInsPayAddLogInAmplitudeCallBack(e)}}};frameElement;options;iframeId;listener;_target=null;constructor(e,t){this.frameElement=e;let a={...l.defaults.receivers,...t?.receivers};this.options={...l.defaults,...t,receivers:a},this.iframeId=`iFrame_${this.frameElement.id}`,this.listener=this.messageListener.bind(this),this.init()}init(){this.createTemplateElements(),this.createPopup(this.options.modal),window.addEventListener("message",this.listener,!1)}createTemplateElements(){if(document.getElementById("btnzstemplate"))return;let e=(e,t,a)=>{let o=document.createElement(e);o.id=t,o.className=a,o.style.display="none",document.body.appendChild(o)};e("button","btnzstemplate","flamingo-button"),e("button","btnzstemplatehover","flamingo-button-hover"),e("input","inputzstemplate","vagaro-input"),e("input","inputzstemplateerror","vagaro-input error"),e("input","inputzstemplatefocus","vagaro-input-focus"),e("input","inputzstemplateaddressradius","vagaro-input-radius"),e("input","texterror","input-txterror"),e("input","webcaptiontext","web-caption-text"),e("input","ccIcon","vagaro-input-left-icon"),e("input","modalcontent","zsmodal-content"),e("input","modaltitle","zsmodal-title"),e("input","modaltitle2","zsmodal-title2"),e("input","modalfooter","zsmodal-footer"),e("input","modalfootersecbtn","zsmodal-secbtncolor"),e("input","modalfootersecbtnhover","zsmodal-secbtncolor-hover"),e("input","modalfootersecbtnactive","zsmodal-secbtncolor-active"),e("input","modalfooterprimarybtn","zsmodal-primarybtncolor"),e("input","modalfooterprimarybtnhover","zsmodal-primarybtncolor-hover"),e("input","modalfooterprimarybtnactive","zsmodal-primarybtncolor-active"),e("input","modalclosebutton","zsmodal-closebutton"),e("input","modalclosebuttonhover","zsmodal-closebutton-hover"),e("input","modalclosebuttonactive","zsmodal-closebutton-active"),e("input","modalclosebuttonafter","zsmodal-closebutton-after"),e("input","modalinputnocard","zsmodal-inputnocard"),e("input","modaladdressinputheight","zsmodal-addressinput"),e("input","spantxterror","spantxterror"),e("input","cciframecountryselectoption","cciframe-countryselectoption")}createPopup(e){let t=document.createElement("iframe");
1if(t.className="b-iframe",t.id=this.iframeId,t.style.display="none",this.options.iframeAttr.split(" ").forEach(e=>{let[a,o]=e.split("=");a&&t.setAttribute(a,o?o.replace(/"/g,""):"")}),e){let e=document.createElement("div");e.innerHTML=` 2 <div id="frame_apgProgress_${this.frameElement.id}" style="display:none;"></div> 3 <div style="position: relative;" id="divinnertop_up"> 4 <div id="ccfram_backgroundElement" style="position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; opacity: 0.5; background-color : rgba(var(--modal_box_shadow), .5) !important;" class="ModalPopupBG"></div> 5 <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> 6 <div style="width: auto; height: auto; margin: 0 -7px; z-index:9999; position:relative" class="contentContainer"> 7 </div> 8 </div> 9 `;let a=e.querySelector(".contentContainer");a&&a.appendChild(t),this.frameElement.appendChild(e)}else this.frameElement.appendChild(t);this.frameElement.dataset.iframeId=this.iframeId,t.style.height=`${this.options.height}px`,t.style.width=`${this.options.width}px`,t.setAttribute("allow","camera *;"),t.setAttribute("src",this.options.loadUrl),t.id,this.triggerCall(this.options.receivers.onOpening),t.addEventListener("load",()=>{let a=d._getStyle();this.options.isfullwidth&&t.classList.add("framefullwidth"),d.frame&&(d.frame.addStyle(a),d.frame.checkWebView(this.options.iswebview?"true":"false"),d.frame.ignorePro(this.options.ignorePro?"true":"false")),window.setTimeout(()=>
9this.showFrame(e),1e3)})}showFrame(e){this.options.loaded=!0,this.triggerCall(this.options.receivers.onOpened);let t=this.frameElement.querySelector(".creditcard-width-temp");t&&t.remove();let a=this.frameElement.querySelector("iframe");if(a&&(a.style.display="block"),d.frame?.getHeight(),e)this.showPopup(this.options.height,this.options.width,this.frameElement.id);else{let e=document.getElementById(d.contentContainer);e&&(e.style.display="block")}d.loader&&d.loader(!1)}showPopup(e,t,a){let o=document.getElementById("divinnertop_up");if(!o||!o.parentElement)return;let{top:i,left:n}=this.getTopLeftPosition(e,t);o.parentElement.style.left=`${n-20}px`;let r=window.pageYOffset||document.documentElement.scrollTop,s=r>0?i+r:i;s-=20,o.parentElement.style.top=`${s}px`,o.parentElement.style.position="absolute",o.parentElement.style.width="auto",o.parentElement.style.height="auto",o.parentElement.style.zIndex="100001",o.parentElement.style.display=""}getTopLeftPosition(e,t){let{height:a,width:o}=this.getViewPortHeightWidth(),i=(a-e)/2;return i<0&&(i=1),{top:i,left:(o-t)/2}}getViewPortHeightWidth(){let e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return{height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,width:e}}_postMessage(e){try{let t=this.frameElement.dataset.iframeId;if(t){let a=document.getElementById(t);a&&a.contentWindow&&a.contentWindow.postMessage(e,this.getSource())}}catch(e){}}getSource(){if(null===this._target){let e=this.frameElement.dataset.iframeId;if(e){let t=document.getElementById(e);if(t){let e=t.getAttribute("src");if(e){let t=/^(https?:\/\/[^/]*)/.exec(e);t&&(this._target=t[1])}}}}return this._target||"*"}triggerCall(e,t){"function"==typeof e&&e.call(this,t)}messageListener(e){if("https://portal.zenswipe.com"===e.origin||e.origin.includes("localhost")||e.origin.includes("localdev.com")||e.origin.includes("js.stripe.com")||e.origin.includes("10.10")||e.origin.includes("vagaro")||e.origin.includes("bookitall.com")||e.origin.includes("zenswipe.com")){let t;if("string"==typeof e.data)try{t=JSON.parse(e.data)}catch(e){return}else t=e.data;if(t&&"string"==typeof t.eventType)switch(t.eventType){case"ECHO":this.options.loaded=!0;break;case"getSize":this.triggerCall(this.options.receivers.onGetSize,t);break;case"required":this.triggerCall(this.options.receivers.onRequired,t),this.triggerCall(this.options.receivers.onHideLoading,t);return;case"closeFrame":this.triggerCall(this.options.receivers.onClose,t),this.triggerCall(this.options.receivers.onHideLoading,t),d.frame?.destroy();break;case"getToken":this.returnCallBackZS(t);break;case"hideLoading":this.triggerCall(this.options.receivers.onHideLoading,t);break;case"displayLoading":this.triggerCall(this.options.receivers.onDisplayLoading,t);break;case"applicationSuccess":this.triggerCall(this.options.receivers.onApplicationSuccess,t);break;case"error":this.triggerCall(this.options.receivers.onZSDown,t);break;case"sendMessage":case"iframe_Loaded":case"parent_screen":this.triggerCall(this.options.receivers.onMessage,t);break;case"frameExpire":break;case"focusin":this.triggerCall(this.options.receivers.onFocusIn,t);break;case"focusout":this.triggerCall(this.options.receivers.onFocusOut,t);break;case"tabfocused":this.triggerCall(this.options.receivers.onTabfocused,t);break;case"setHeight":if(void 0!==t.id&&null!=t.id&&"forms"===t.id);else{let e=this.frameElement.querySelector("iframe");e&&(e.style.height=`${t.height}px`);let a=document.querySelector(".settingmainwhitebg");a&&(a.style.minHeight=`${parseInt(t.height,10)+10}px`);let o=document.getElementById("hdnIsFromSignup");if(o?.value==="1"){let e=this.frameElement.querySelector("iframe");e?.parentElement&&parseInt(t.height,10)+10<e.parentElement.clientHeight&&(e.style.height=`${e.parentElement.clientHeight}px`)}}break;case"RanderPager":this.triggerCall(this.options.receivers.onRanderPager,t);break;case"showHideSaveCancel":this.triggerCall(this.options.receivers.onShowHideSaveCancel,t);break;case"merchantsuccess":this.triggerCall(this.options.receivers.onMerchantSuccess,t);break;case"scrollToTop":this.triggerCall(this.options.receivers.onscrollToTop,t);break;case"DepositPopup":this.triggerCall(this.options.receivers.onDepositPopup,t);break;case"Tab1099detail":this.triggerCall(this.options.receivers.onTab1099detail,t);break;case"Showpdf":this.triggerCall(this.options.receivers.onShowpdf,t);break;case"datepickerShowHide":this.triggerCall(this.options.receivers.ondatepickerShowHide,t);break;case"ccvalid":this.triggerCall(this.options.receivers.onCcValid,t);break;case"setresponsiveheight":this.triggerCall(this.options.receivers.onResponsiveIframe,t);break;case"verifyaddresshideloading":this.triggerCall(this.options.receivers.onverifyaddresshideloading,t);break;case"transactiondetailforchargeback":this.triggerCall(this.options.receivers.onTransactionDetailForChargeback,t);break;case"customerforchargeback":this.triggerCall(this.options.receivers.onCustomerForChargeback,t);break;case"updatenotificationpanel":this.triggerCall(this.options.receivers.onUpdateNotificationPanel,t);break;case"updateacceptrefund":this.triggerCall(this.options.receivers.onUpdateAcceptRefund,t);break;case"showAcceptSubmitPopup":this.triggerCall(this.options.receivers.onShowAcceptSubmitPopup,t);break;case"setVMSPlanTitle":this.triggerCall(this.options.receivers.onSetVMSPlanTitle,t);break;case"finishLater":this.triggerCall(this.options.receivers.onFinishLater,t);break;case"backToHardwarePage":this.triggerCall(this.options.receivers.onBackToHardwarePage,t);break;case"MongoIdofVMSApplication":this.triggerCall(this.options.receivers.onMongoIdofVMSApplication,t);break;case"PlaidLinkTokenId":this.triggerCall(this.options.receivers.onPlaidLinkTokenId,t);break;case"VMSApplicationCompleteWebView":this.triggerCall(this.options.receivers.onVMSApplicationCompleteWebView,t);break;case"onBrowserBackEventSendtoVagaro":this.triggerCall(this.options.receivers.onBrowserBackEventSendtoVagaro,t);break;case"AddLogInAmplitude":this.triggerCall(this.options.receivers.AddLogInAmplitude,t);break;case"askVagaroForVMSStep":this.triggerCall(this.options.receivers.askVagaroForVMSStep,t);break;case"GetVagaroLink":this.triggerCall(this.options.receivers.GetVagaroLink,t);break;case"ShowHideBackArrow":this.triggerCall(this.options.receivers.ShowHideBackArrow,t);break;case"CardFrameExpire":this.triggerCall(this.options.receivers.CardFrameExpire,t);break;case"SaveBatchTimeResponse":this.triggerCall(this.options.receivers.onSaveBatchTimeResponse,t);break;case"SendbatchTime":this.triggerCall(this.options.receivers.onSendbatchTime,t);break;case"OpenChangeBatchPopup":this.triggerCall(this.options.receivers.OpenChangeBatchPopup,t);break;case"CyberSourceTrackingId":this.triggerCall(this.options.receivers.onCyberSourceTrackingId,t);break;case"GetConnecttoBusinessName":this.triggerCall(this.options.receivers.onBusinessLst,t);break;case"createMerchantSuccess":this.triggerCall(this.options.receivers.onCreateMerchantSuccess,t);break;case"ShowHideToolTip":this.triggerCall(this.options.receivers.onShowHideToolTip,t);break;case"GetVagaroVMSLogData":this.triggerCall(this.options.receivers.onGetVagaroVMSLogData,t);break;case"ZenwipetoVagaroInstantPayoutPostMessage":this.triggerCall(this.options.receivers.ZenwipetoVagaroInstantPayoutPostMessage,t);break;case"InstantPayoutMobilecallback":this.triggerCall(this.options.receivers.onInstantPayoutMobilecallback,t);break;case"DepositMerchantFilterCall":this.triggerCall(this.options.receivers.onDepositMerchantFilterCall,t);break;case"InstantPayoutMobilecallbackReturn":this.triggerCall(this.options.receivers.onInstantPayoutMobilecallbackReturn,t);break;case"InsPayAddLogInAmplitude":this.triggerCall(this.options.receivers.onInsPayAddLogInAmplitude,t)}}}failed3DSecurePopup(e){"u"<typeof swal?"u">typeof SetErrorDisplayMessageReport&&(SetErrorDisplayMessageReport("0","Your authentication is failed. please try again!",""),d._ajax(e.cardFrameType,e.contentContainer,e.modal,e.height,e.merchant_token_id,e.firstName,e.lastName,e.width,e.frameURL,e.afterCallBackHandleinner,e.isAjaxQue,e.device,e.ignorePro,e._isfullwidth,e._isnot_auth,e._track_data,e._business_country_id,e._isremove_address_style,e._isthreeds_required)):swal({title:"Your authentication is failed. please try again!",text:"",type:"error",showCancelButton:!1,closeOnConfirm:!0,confirmButtonText:"OK",html:!0},t=>{try{let e=window._employeeOwner;
9window.location.href.includes("/merchants/settings/employee/profile")&&"function"==typeof e?.ResetCCSuccessCallback?e.ResetCCSuccessCallback(e.FrameType.ACHCC):(window.location.href.includes("/merchants/duepayment")||window.location.href.includes("/Users/DuePayment.aspx"))&&d.loader&&d.loader(!1)}catch(e){}d._ajax(e.cardFrameType,e.contentContainer,e.modal,e.height,e.merchant_token_id,e.firstName,e.lastName,e.width,e.frameURL,e.afterCallBackHandleinner,e.isAjaxQue,e.device,e.ignorePro,e._isfullwidth,e._isnot_auth,e._track_data,e._business_country_id,e._isremove_address_style,e._isthreeds_required)})}create3DSecurePopup(){if(!document.getElementById("frame3d_cardintent")){let e=document.createElement("div");e.className="zenswipe-payment-frame",e.id="frame3d_cardintent",e.innerHTML=` 10 <div class="zenswipe-payment-container"> 11 <div class="zenswipe-payment-inner"> 12 <div class="zen-close-btn"> 13 <img src="https://vagaro.azureedge.net/static-content/Images/popup-close-img.png" onclick="_cardIntendent.CloseCardIntendentInfo(false);" style="cursor: pointer;"> 14 </div> 15 <div id="divframe3d_cardintent" class="zenswipe-iframe-wrapper"></div> 16 </div> 17 </div>`,document.body.appendChild(e)}return!0}check3DRedirectURLExists(e){return e?.data?.custom_code===1e3&&e.data.data?.ThreeDSRedirectURL?e.data.data.ThreeDSRedirectURL:""}returnCallBackZS(e){let t=this.options;if("number"==typeof t.afterCallBackHandle&&0===t.afterCallBackHandle&&null!=e.data&&1e3!==e.data.custom_code){let t=document.getElementById(d.contentContainer);t&&(t.style.display="none"),d.loader&&d.loader(!1);let a=e.data.Message;null!=e.data.subResponseCode&&""!==e.data.subResponseCode&&(a+="<br />Error Code:"+e.data.paymentGateway+"-"+e.data.subResponseCode),"function"==typeof swal&&swal({type:"error",timer:6e3,showCancelButton:!1,html:!0,title:a,text:"",customClass:"sweet-alert-model"});return}let a=this.check3DRedirectURLExists(e);if(""!==a&&this.create3DSecurePopup()){let o={};"function"==typeof t.afterCallBackHandle&&null!==t.afterCallBackHandle&&e.data?.custom_code===1e3?o.SuccessCallBack=t.afterCallBackHandle:o.SuccessCallBack=t.receivers.onGetToken,o.FailedCallback=this.failed3DSecurePopup.bind(this),o.PaymentIntentURL=a,o.CountryID=d.ccCountryId,o.SuccessCallBackResponse=e,o.FailedCallBackResponse=d.frmValue,"u">typeof _cardIntendent&&_cardIntendent.LoadCardIntendentInfo(o)}else"function"==typeof t.afterCallBackHandle&&null!==t.afterCallBackHandle&&e.data?.custom_code===1e3?this.triggerCall(t.afterCallBackHandle,e):this.triggerCall(t.receivers.onGetToken,e);this.triggerCall(t.receivers.onHideLoading,e)}destroy(){window.removeEventListener("message",this.listener,!1),this.frameElement.innerHTML="",this.frameElement.removeAttribute("style"),this.frameElement.removeAttribute("data-iframe-id"),d.frame=null}submit(){this._postMessage('{"eventType": "submit"}')}submitwithaddress(e,t){if(1===t){if(!e)return this.triggerCall(this.options.receivers.onRequired,"Zip code is required"),this.triggerCall(this.options.receivers.onHideLoading),!1}else e="";this._postMessage(`{"eventType": "submitwithaddress", "zip_code" : "${e}" , "country_id" : "${t}"}`)}getSize(){this._postMessage('{"eventType": "getSize"}')}addStyle(e){this._postMessage(`{"eventType": "addStyle", "style" : "${e.replace(/"/g,"'")}"}`)}removeCardOption(e){this._postMessage(`{"eventType" : "removeCardOption", "option" : "${e}"}`)}draftApplication(){this._postMessage('{"eventType": "draftApplication"}')}submitApplication(){this._postMessage('{"eventType": "submitApplication"}')}validate(){this._postMessage('{"eventType": "validate"}')}addButtonText(e){this._postMessage(`{"eventType" : "addButtonText", "text" : "${e}"}`)}checkWebView(e){this._postMessage(`{"eventType": "checkWebView","iswebview" : "${e}"}`)}ignorePro(e){this._postMessage(`{"eventType": "ignorePro","ignorePro" : "${e}"}`)}getHeight(){this._postMessage('{"eventType": "getHeight"}')}setScreen(e,t,a,o,i){this._postMessage(JSON.stringify({eventType:"setScreen",objScreen:`${e}`,topoffset:`${t}`,headeroffset:`${a}`,divgotit:`${o}`,divouterheight:`${i}`}))}hideSubmitButton(){this._postMessage('{"eventType": "hideSubmitButton"}')}showSubmitButton(){this._postMessage('{"eventType": "showSubmitButton"}')}hidePopup(){this._postMessage('{"eventType": "hidePopup"}')}getReportdata(e,t,a,o){this._postMessage(`{"eventType": "getReportdata","isPreviousBtn" : "${e}","isRenderPaging" : "${t}","currentPageno" : "${a}","pageSize" : "${o}"}`)}saveMerchantEditDetails(e,t){this._postMessage(`{"eventType": "saveMerchantEditDetails","IsCyberSourceEnable" : ${e},"UserType":"${t}"}`)}cancelBtnClick(){this._postMessage('{"eventType": "cancelBtnClick"}')}exportReportData(){this._postMessage('{"eventType": "exportReportData"}')}printReportData(){this._postMessage('{"eventType": "printReportData"}')}OnexportDeposittransactions(e,t,a,o){this._postMessage(`{"eventType": "OnexportDeposittransactions","merchantID" : "${e}","batchID" : "${t}","ToDate" : "${a}","GateWayType" : "${o}"}`)}OnprintDeposittransactions(e,t,a,o){this._postMessage(`{"eventType": "OnprintDeposittransactions","merchantID" : "${e}","batchID" : "${t}","ToDate" : "${a}","GateWayType" : "${o}"}`)}ccvalidate(){this._postMessage('{"eventType": "ccvalidate"}')}setCardAddressData(e){this._postMessage(`{"eventType": "setcardaddress", "address":${e}}`)}ChargebackBackButtonCallback(){this._postMessage('{"eventType": "ChargebackBackButtonCallback"}')}AcceptAsRefundCallback(){this._postMessage('{"eventType": "AcceptAsRefundCallback"}')}SubmitrebuttalCallback(){this._postMessage('{"eventType": "SubmitrebuttalCallback"}')}SubmitrebuttalSuccessCallback(){this._postMessage('{"eventType": "SubmitrebuttalSuccessCallback"}')}DeleteFileCallback(e){this._postMessage(`{"eventType": "DeleteFileCallback", "srNo":${e}}`)}addClassInIframeBody(){this._postMessage('{"eventType": "addClassInIframeBody"}')}onMobileBackButton(){this._postMessage('{"eventType": "onMobileBackButton"}')}plaidResponse(e){this._postMessage(`{"eventType": "plaidResponse", "jsonData":${e}}`)}ScrollToTopFromVagaro(){this._postMessage('{"eventType": "ScrollToTopFromVagaro"}')}HardwareProductSelected(e){this._postMessage(`{"eventType": "HardwareProductSelected", "IsHardwareSelected":${e}}`)}onBrowserBackEvent(e){this._postMessage(`{"eventType": "onBrowserBackEvent", "Step":${e}}`)}SetVagaroLink(e){this._postMessage(`{"eventType": "SetVagaroLink", "vagaroLink":"${e}"}`)}BackFromBankingInfo(){this._postMessage('{"eventType": "BackFromBankingInfo"}')}SaveChangeBatchTime(e,t,a){this._postMessage(`{"eventType": "SaveChangeBatchTime", "BatchTimes":"${e}","logedInUserName" : "${t}","logedInUserID" : "${a}"}`)}GetConnectBusinessName(e){this._postMessage(`{"eventType": "GetConnectBusinessName", "BusinessName":"${e}"}`)}setDarkModePreference(e){this._postMessage(`{"eventType": "setDarkModePreference", "DarkMode":${e}}`)}onprintmerchanteachtransaction(){this._postMessage('{"eventType": "onprintmerchanteachtransaction"}')}Onexportmerchanttransactions(){this._postMessage('{"eventType": "Onexportmerchanttransactions"}')}OnPDFexportmerchanttransactions(e,t,a){this._postMessage(`{"eventType": "OnPDFexportmerchanttransactions","merchantID" : "${e}","batchID" : "${t}","ToDate" : "${a}"}`)}OnPDFPopupexportmerchant(e,t,a,o){this._postMessage(`{"eventType": "PDFPopupexportmerchant","merchantID" : "${e}","batchID" : "${t}","ToDate" : "${a}","GateWayType" : "${o}"}`)}exportPDFReportData(){this._postMessage('{"eventType": "exportPDFReportData"}')}OnexportSummaryOREachTransactionData(){this._postMessage('{"eventType": "OnexportSummaryOREachTransactionData"}')}SetVagaroVMSLogData(e){this._postMessage(`{"eventType": "SetVagaroVMSLogData", "jsonData":${JSON.stringify(e)}}`)}VagarotoZenwipeInstantPayoutPostMessage(e){this._postMessage(`{"eventType": "VagarotoZenwipeInstantPayoutPostMessage", "jsonData":${JSON.stringify(e)}}`)}NewMobileDevicecall(e){this._postMessage(`{"eventType": "NewMobileDevicecallCallback", "jsonData":${JSON.stringify(e)}}`)}}let d={frameUrl:null,frame:null,contentContainer:null,modal:!1,height:375,width:480,loader:null,ccCountryId:1,stripeRadarSession:null,iswebview:!1,isfullwidth:!1,isnotauth:!1,trackdata:void 0,ignorePro:!1,afterCallBackHandle:0,frmValue:{},extraHeaders:void 0,displayLoading:function(e){this.loader&&this.loader(!0)},hideLoading:function(e){this.loader&&this.loader(!1)},setHeight:function(e,t){if(this.frame){let a=this.frame.frameElement.dataset.iframeId;if(a){let o=document.getElementById(a);o&&(o.style.height=`${e}px`,o.style.width=`${t}px`)}}},getSize:function(){this.frame?.getSize()},getMerchantFrame:function(e,t,a,o,i){this.modal=!1,this.height=a,this.width=o,this.iswebview=i,this.contentContainer=e,this._callCreditCardSuccess({data:{url:t},custom_code:1e3})}
17,getIFrame:function(e,t){let{contentContainer:a,height:o,merchant_token_id:i,firstName:n="",lastName:r="",width:s=0,frameURL:l="",afterCallBackHandleinner:d,device:c="Website",isfullwidth:p,isnot_auth:u,track_data:h,business_country_id:g,isremove_address_style:m,isthreeds_required:w,isccaddressmandatory:f=!1,card_token:b="",business_id:C="",TrackingId:k="",ignorePro:y=!1,isDisableDarkMode:v=!1,module:_="",baseUrl:S="",consumerId:T="",s_utkn:I="",extraHeaders:M,threedsReturnUrl:B=""}=t;this.extraHeaders=M,this._ajax(e,a,this.modal,o,i,n,r,s,l,d,!1,c,y,p,u,h,g,m,w,f,b,C,k,v,_,S,T,I,B)},_ajax:async function(e,t,a,o,i,n,l,d,p,u,h,g,m,w,f,b,C,k,y,v=!0,_="",S="",T="",I=!1,M="",B="",P="",D="",E=""){let A,R,L;if(this.frame&&this.frame.destroy(),this.frmValue={cardFrameType:e,contentContainer:t,modal:a,height:o,merchant_token_id:i,firstName:n,lastName:l,width:d,frameURL:p,afterCallBackHandleinner:u,isAjaxQue:h,device:g,ignorePro:m,_isfullwidth:w,_isnot_auth:f,_track_data:b,_business_country_id:C,_isremove_address_style:k,_isthreeds_required:y},this.loader&&this.loader(!0),this.contentContainer=t,this.modal=a,this.height=o??this.height,this.width=d??this.width,this.afterCallBackHandle=u??this.afterCallBackHandle,this.isfullwidth=w||!1,this.isnotauth=f||!1,this.trackdata=b,this.ignorePro=m,!this.modal){let t=document.getElementById(this.contentContainer);if(t){let a=c(e,C),o=this._getStyle();t.innerHTML=a+(o?`<style>${o}</style>`:""),t.style.display="block"}}if(p)return void this._callDirectUrl(p,a,o,d,u);let H={...(A=(0,s.Jj)(),R="string"==typeof D&&D.trim().length>0?D.trim():(0,s.qg)(),L={},A.grouptoken&&(L.grouptoken=A.grouptoken),A.MerchantId&&(L.MerchantId=A.MerchantId),A.UserId&&(L.UserId=A.UserId),R&&(L.s_utkn=R),L["Content-Type"]="application/json",L),consumerid:P,...this.extraHeaders},x=await r.A.post(B,{cardFrameType:e,merchantTokenId:i,device:g,businessCountryId:C||1,ccAddressMandatory:v,cardToken:_,businessId:S||"QX9p3jq6~mMP6js9ReeSqw==",disableDarkMode:I,threedsRequired:y,isnot_auth:f,threedsReturnUrl:E},{headers:H});this._callCreditCardSuccess(x)},_callCreditCardSuccess:function(e){if(e?.data.responseCode===1e3){let t=document.getElementById(this.contentContainer);e.data?.data?.url?t&&(this.frame=new l(t,{loadUrl:e.data?.data?.url,modal:this.modal,height:e.data?.data?.iframe_height>0?e.data?.data?.iframe_height:this.height,width:this.width,afterCallBackHandle:this.afterCallBackHandle,iswebview:this.iswebview,isfullwidth:this.isfullwidth})):"function"==typeof window.onGetSwipeCallback&&window.onGetSwipeCallback(e)}else this.loader&&this.loader(!1),"function"==typeof window.onZSDownCallback&&window.onZSDownCallback(e)},_callDirectUrl:function(e,t,a,o,i){let n=document.getElementById(this.contentContainer);n&&(this.frame=new l(n,{loadUrl:e,modal:t,height:a,width:o,afterCallBackHandle:i}))},_getStyle:function(){let e=document.getElementById("hdnBuilderFrameCSS");if(e&&e.value)return e.value;let t="",a=(e,t)=>e?getComputedStyle(e).getPropertyValue(t):"",o={},i=(e,t,a="input")=>{if(!document.getElementById(e)){let i=document.createElement(a);i.id=e,i.className=t,i.style.display="none",document.body.appendChild(i),o[e]=i}return document.getElementById(e)};try{let e=document.getElementById("hdnButtonBackColor"),o=document.getElementById("hdnButtonFontColor"),n=document.getElementById("hdnButtonHoveColor"),r=window.backGroundColor;a(i("ccIcon","vagaro-input-left-icon"),"width"),a(i("ccIcon","vagaro-input-left-icon"),"padding-left"),r&&(t+=`.popupwidth542 .modal-body { background-color:${window.isWidget?"#FFFFFF":r}}`),e?.value&&o?.value&&(t+=`.btn-primary { background-color: ${e.value}!important; border-color:${e.value}!important; color : ${o.value}!important;}.btn-primary:hover { background-color: ${n.value}!important; border-color:${n.value}!important;}.btn-default { background-color!important: #666666 }`),t+=".framefullwidth { width:100%!important;}.popupwidth542.zs-fullwithcc { max-width:100%!important;}";let s=i("btnzstemplate","flamingo-button","button"),l=i("inputzstemplate","vagaro-input"),d=i("inputzstemplateerror","vagaro-input error");i("inputzstemplatefocus","vagaro-input-focus");let c=i("texterror","input-txterror"),p=a(s,"background-color"),u=a(l,"background-color"),h=a(l,"color"),g=a(l,"border-radius"),m=a(l,"font-size"),w=a(l,"border"),f=a(l,"line-height"),b=a(l,"text-align"),C=a(l,"padding"),k=a(l,"height"),y=a(d,"background-color"),v=a(d,"border-color"),_=a(c,"color");t+=`.btn-primary { background-color: ${p}}.form-control { background-color: ${u}; color: ${h}!important; border-radius: ${g}!important; font-size: ${m}!important; border: ${w}!important; line-height: ${f}!important; text-align: ${b}!important; padding: ${C}!important; height: ${k}!important;}.form-control.error { background-color: ${y}!important; border-color: ${v}!important;}span.error { color: ${_}!important;}`}catch(e){}
17finally{Object.values(o).forEach(e=>e.remove())}let n=document.documentElement.getAttribute("data-theme");return d?.frame?.setDarkModePreference("dark"===n),t},_getHTML:function(e){return c(e,1)},getMerchantReport:function(e,t,a,o,i){this.modal=!1,this.height=a,this.width=o,this.iswebview=i,this.contentContainer=e,this._callCreditCardSuccess({data:{url:t},custom_code:1e3})},generateStripeRadarSession:function(e,t,a,o){}};function c(e,t){return` 18 <div class="creditcard-width-temp w-full mx-auto bg-bkg_neutral_default rounded-lg shadow-sm"> 19 <div class="p-4 animate-pulse"> 20 <!-- Credit Card Title --> 21 <div class="mb-4"> 22 <div class="h-5 bg-bkg_neutral_tiertiary rounded w-28"></div> 23 </div> 24 25 <!-- Credit Card Section --> 26 <div class="mb-4"> 27 <!-- Name on Card --> 28 <div class="mb-2"> 29 <div class="w-full h-11 bg-bkg_neutral_tiertiary rounded-lg"></div> 30 </div> 31 32 <!-- Card Number --> 33 <div class="mb-2 relative"> 34 <div class="w-full h-11 bg-bkg_neutral_tiertiary rounded-lg"></div> 35 <div class="absolute left-3 top-1/2 -translate-y-1/2 w-7 h-4 bg-bkg_neutral_secondary rounded"></div> 36 </div> 37 38 <!-- Expiry and Security Code --> 39 <div class="grid grid-cols-2 gap-2"> 40 <div class="h-11 bg-bkg_neutral_tiertiary rounded-lg"></div> 41 <div class="h-11 bg-bkg_neutral_tiertiary rounded-lg"></div> 42 </div> 43 </div> 44 45 ${2!=t?`<!-- Billing Address Section --> 46 <div class="mb-4"> 47 <div class="h-5 bg-bkg_neutral_tiertiary rounded w-32 mb-3"></div> 48 <!-- Address Line 1 with flag --> 49 <div class="mb-2 relative"> 50 <div class="w-full h-11 bg-bkg_neutral_tiertiary rounded-lg"></div> 51 <div class="absolute left-3 top-1/2 -translate-y-1/2 w-7 h-4 bg-bkg_neutral_secondary rounded"></div> 52 </div> 53 <!-- Address Line 2 --> 54 <div class="mb-3"> 55 <div class="w-full h-11 bg-bkg_neutral_tiertiary rounded-lg"></div> 56 </div> 57 </div>`:""} 58 59 <!-- Secured by Vagaro --> 60 <div class="flex items-center justify-end gap-2"> 61 <div class="w-3 h-3 bg-bkg_neutral_tiertiary rounded"></div> 62 <div class="h-3 bg-bkg_neutral_tiertiary rounded w-28"></div> 63 </div> 64 </div> 65 </div> 66 `}function p(){d.frame?.getHeight()}window.addEventListener("resize",()=>{d.frame&&d.frame.getSize()}),window.addEventListener("orientationchange",()=>{setTimeout(p,1e3)}),document.querySelectorAll(".settingMainWarp").forEach(e=>{e.addEventListener("touchend",()=>{setTimeout(p,1e3)}),e.addEventListener("touchstart",()=>{setTimeout(p,1e3)})});var u,h=((u={})[u.Card_Only=0]="Card_Only",u[u.Card_Swipe_Save=1]="Card_Swipe_Save",u[u.Card_Only_Charge=2]="Card_Only_Charge",u[u.Swipe_Save=3]="Swipe_Save",u[u.Swipe_Charge=4]="Swipe_Charge",u[u.Update_Card=5]="Update_Card",u[u.Update_Swipe=6]="Update_Swipe",u[u.Card_Without_Button=7]="Card_Without_Button",u[u.Merchant_Create=8]="Merchant_Create",u[u.Card_Save_Without_Button=9]="Card_Save_Without_Button",u[u.Card_Without_Button_Address=10]="Card_Without_Button_Address",u[u.Card_Without_ButtonAndValidation=11]="Card_Without_ButtonAndValidation",u[u.Card_Without_Button_Address_Auth=12]="Card_Without_Button_Address_Auth",u[u.Merchant_Report=13]="Merchant_Report",u[u.CustomerProfile=14]="CustomerProfile",u[u.ACH=15]="ACH",u[u.CardWithCCAddress=16]="CardWithCCAddress",u[u.PlaidAuth=17]="PlaidAuth",u);let g=e=>{let{CreditCardIframeURlRef:t,loader:a}=function({FrameType:e="Card_Only",Data:t={},OnSubmit:a=()=>{},IsSubmitTrigger:o=!1,onHeightChange:n,OnCloseCallback:r=()=>{}}){let s=(0,i.useRef)(null),[l,c]=(0,i.useState)(!1),p={divId:t.contentContainer||"",callfor:t.callfor||0,oldTokenID:t.oldTokenID||"",Mode:t.Mode||0};return(0,i.useEffect)(()=>(d.loader=e=>{},d.loader=e=>{t.showInPopup&&c?.(e)},window.onGetTokenCallback=e=>{c?.(!1),a?.(e)},window.onRequiredCallback=e=>{c?.(!1);let t={error:!0,errorMessage:e?.message||"Required fields are not filled",errorCode:"REQUIRED_FIELDS_MISSING",type:"validation",response:e};a?.(t)},window.onHideLoadingCallback=()=>{c?.(!1)},window.onDisplayLoadingCallback=()=>{c?.(!0)},window.onErrorCallback=e=>{c?.(!1);let t={error:!0,errorMessage:e?.message||"An error occurred",errorCode:"FRAME_ERROR",type:"error",response:e};a?.(t)},window.onCloseCallback=e=>{r?.()},window.onResponsiveIframeCallback=e=>{e&&"number"==typeof e.VerifyAddressHeight&&n?.(e.VerifyAddressHeight)},!function(o){try{let i,n,r=(o.callfor,i=t.merchantTokenId,void 0!==i&&null!=i?i:""),s=t?.device||"Website",l=t?.countryID?.toString()??"1";n={ccCountryId:l,OldTokenID:"",Mode:o.Mode},void 0!==o.oldTokenID&&null!=o.oldTokenID&&o.oldTokenID.toString().trim().length>0&&(n.OldTokenID=o.oldTokenID,n.Mode=3);let c=e?h[e]:0;if(!d||"function"!=typeof d.getIFrame)throw Error("VUI.getIFrame is not available");t.showInPopup&&(d.modal=!0),d.getIFrame(c,{contentContainer:t.contentContainer||"",height:t.height||0,merchant_token_id:r,firstName:t?.firstName,lastName:t?.lastName,width:t?.width,frameURL:"",afterCallBackHandleinner:a,device:s,isfullwidth:t?.
66isFullWidth,isnot_auth:!1,track_data:null,business_country_id:l,isremove_address_style:!0,isthreeds_required:!0,isccaddressmandatory:t.ccAddressMandatory||!1,card_token:t.cardToken||"",business_id:t.businessId?.toString()||"",TrackingId:t.TrackingId||"",ignorePro:t.ignorePro||!1,isDisableDarkMode:t.isDisableDarkMode||!1,module:t.module||"MyAccount",baseUrl:t.baseUrl||"",consumerId:t.consumerId||"",s_utkn:t.s_utkn??"",extraHeaders:t.extraHeaders,threedsReturnUrl:t.threedsReturnUrl||""})}catch(e){"function"==typeof a&&a({error:e instanceof Error?e.message:e})}}(p),()=>{d.loader=null,delete window.onGetTokenCallback,delete window.onRequiredCallback,delete window.onHideLoadingCallback,delete window.onDisplayLoadingCallback,delete window.onErrorCallback,delete window.onResponsiveIframeCallback}),[]),(0,i.useEffect)(()=>{if(o&&d?.frame&&"function"==typeof d.frame.submit)try{c(!0),d.frame.submit()}catch(e){c(!1)}},[o]),{CreditCardIframeURlRef:s,loader:l}}(e),r=e.Data||{};return(0,o.jsxs)(o.Fragment,{children:[a&&(0,o.jsx)(n.A,{}),(0,o.jsx)("div",{ref:t,id:r.contentContainer})]})}},27590(e,t,a){function o(e){let t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`));return t?decodeURIComponent(t.split("=").slice(1).join("=")):null}function i(){try{if("u">typeof window&&r()){let e=new URLSearchParams(window.location.search),t=e.get("merchantId"),a=e.get("userId"),o=e.get("grouptoken"),i=e.get("theme")??"";if(t&&a&&o)return{MerchantId:t,UserId:a,grouptoken:o,Theme:i}}try{let e=o("rpt_data");if(!e)return{};return JSON.parse(e)}catch(e){return{}}}catch(e){return{}}}function n(){for(let e of["s_utkn"]){let t=o(e);if(t)return t}}a.d(t,{Jj:()=>i,Ri:()=>o,qg:()=>n});let r=()=>!("u"<typeof window)&&(!0===window.isFromOnlineForms||window.location.pathname.includes("/profile/forms"))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.