1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-DvkGsCPu.js","static/vendor-react-nj2ukvvY.js","static/vendor-apollo-AvuNUkOJ.js","static/vendor-moment-CqZOA61p.js","static/vendor-lodash-CuICpPff.js","static/index-DC4TtV_m.css","static/SquarePayment-CiW8OJwK.js","static/SquarePayment-DzC_Kl8O.css","static/SpreedlyPaymentForm-n28cvIS1.js","static/index-ClClPySf.js","static/SpreedlyPaymentForm-5CxEbtvR.css"])))=>i.map(i=>d[i]); 2import{X as K,T as X,G as A,D as J,a3 as Z,I as x,E as Q,oT as z,aY as b,aG as T,c as j,kx as F,dw as ee,f2 as te,no as ae,oU as re,ep as B}from"./index-DvkGsCPu.js";import{P as _,C as L,a as V,b as se,c as ne,d as oe,p as ie,E as O,e as W}from"./index-ClClPySf.js";import{R as r}from"./vendor-react-nj2ukvvY.js";import{I as de}from"./InputWrapper-Bv_CMQnU.js";const le=b(()=>T(()=>import("./index-DvkGsCPu.js").then(w=>w.O9),__vite__mapDeps([0,1,2,3,4,5])));let M=!1,v=!1;const N=class N extends r.Component{constructor(h){super(h),this.cardHolderValidateHandler=()=>{const{t:e}=this.props;return this.setState({cardHolderFeedBack:!0}),this.props.paymentInfoAdded&&typeof this.props.paymentInfoAdded=="function"&&this.props.paymentInfoAdded(),this.cardHolder.value.trim()===""?(v=!1,this.setState({cardHolder:!1,errorMsgcardHolder:e("The card holder name is required")})):this.cardHolder.value.trim().length>0&&new RegExp(/\d+/).test(this.cardHolder.value)?(v=!1,this.setState({cardHolder:!1,errorMsgcardHolder:e("The card holder name must not contain numeric value")})):this.cardHolder.value.trim().length>=2&&this.cardHolder.value.trim().length<=70?this.cardHolder.value.charAt(0)===" "||this.cardHolder.value.charAt(this.cardHolder.value.length-1)===" "?(v=!1,this.setState({cardHolder:!1,errorMsgcardHolder:e("The card holder name can not start or end with white space")})):(v=!0,this.setState({cardHolder:!0})):(v=!1,this.setState({cardHolder:!1,errorMsgcardHolder:e("The card holder name must be between 2 and less than 70 characters long")})),v},this.submitElement=async()=>{const{elements:e}=this.props,{error:t}=await e.submit();return!t},this.validateCard=()=>{const{isValidDetail:e,checkoutType:t}=this.state,{isCheckout:a,elements:i}=this.props;return a?(this.setState({cardFeedBack:!0,cardHolderFeedBack:!0,card:M}),M):(i==null?void 0:i.getElement(_))&&t==="RA"?e:(this.setState({cardFeedBack:!0,cardHolderFeedBack:!0,card:M}),M)},this.validateCardHolder=()=>{const{paymentMethodType:e}=this.state,{isCheckout:t}=this.props;return t?v:e==="card"?this.cardHolderValidateHandler():!0},this.reset=()=>{var a,i;const{isCheckout:e,elements:t}=this.props;if(!e&&t){const n=t.getElement(_);n&&n.clear()}this._element&&((i=(a=this._element).clear)==null||i.call(a)),this.setState({cardHolder:!1,card:!1,cardHolderFeedBack:!1,cardFeedBack:!1,errorMsgcardHolder:null,cardHolderName:""}),this.cardHolder&&this.cardHolder.value&&(this.cardHolder.value="")},this.cardElementHandler=e=>{this.props.paymentInfoAdded&&typeof this.props.paymentInfoAdded=="function"&&this.props.paymentInfoAdded(),e!=null&&e.error&&!e.complete&&this.setState({stripeErrorMessage:e.error.message}),M=!!(e!=null&&e.complete),this.setState({card:!!(e!=null&&e.complete)})},this.showPopup=()=>this.setState({showPopup:!0}),this.hidePopup=()=>this.setState({showPopup:!1}),this.confirmSetup=e=>new Promise((t,a)=>{const{t:i,stripe:n}=this.props;n.confirmSetup({clientSecret:e.paymentIntentClientSecret,redirect:"if_required"}).then(s=>{s&&s.error?a(s.error.message||i("We are unable to authenticate your payment method.choose a different payment method and try again.")):t(s)}).catch(s=>{a(s)})}),this.confirmPayment=e=>new Promise((t,a)=>{const{t:i,stripe:n}=this.props;n.confirmPayment({clientSecret:e.paymentIntentClientSecret,confirmParams:{return_url:typeof window<"u"?window.location.href:"",payment_method_data:{type:this.state.paymentMethodType}},redirect:"if_required"}).then(s=>{s&&s.error?a(s.error.message||i("We are unable to authenticate your payment. Please choose a different payment method and try again.")):t(s)}).catch(s=>{a(s)})}),this.confirmCardSetup=e=>new Promise((t,a)=>{var c;const{t:i,stripe:n}=this.props;let s=(e==null?void 0:e.paymentIntentClientSecret)||((c=e.data)==null?void 0:c.paymentIntentClientSecret);
2if(typeof s=="object"&&(s=s==null?void 0:s.clientSecret),!s||typeof s!="string"){const p="Invalid client secret received";a(new Error(p));return}n.confirmSetup({clientSecret:s,redirect:"if_required",confirmParams:{return_url:"https://your-site.com/success"}}).then(p=>{p&&p.error?(this.setState({showPopup:!0,card:!1,errorMsgCard:p.error.message,popupHeader:"Failed"}),a(p.error.message||i("We are unable to authenticate your payment method.choose a different payment method and try again."))):t(p)}).catch(p=>{this.setState({showPopup:!0,card:!1,errorMsgCard:i("Please enter a valid card number"),popupHeader:"Failed"}),a(p)})}),this.cardHolderValue=()=>{this.setState({cardHolderName:this.cardHolder.value})},this.paymentElementHandler=e=>{const{value:t,complete:a}=e||{};this.setState({isValidDetail:a,paymentMethodType:t==null?void 0:t.type}),a&&this.props.paymentInfoAdded&&typeof this.props.paymentInfoAdded=="function"&&this.props.paymentInfoAdded()},this.state={cardHolder:!1,card:!1,cardHolderFeedBack:!1,cardFeedBack:!1,errorMsgcardHolder:null,paymentMethodType:"card",isValidDetail:!1,isLoadinPaymentElement:!0,checkoutType:null},this.cardElementHandler=this.cardElementHandler.bind(this)}componentDidMount(){var t;this.props.onRef(this);const e=new URLSearchParams((t=window==null?void 0:window.location)==null?void 0:t.search).get("type");this.setState({checkoutType:e})}componentWillUnmount(){this.props.onRef(void 0)}doGetPaymentMethod(){return new Promise(async(h,e)=>{var P,f,d,m;const{t,elements:a,isCheckout:i,stripe:n}=this.props,{paymentMethodType:s,checkoutType:c}=this.state;if(this.setState({cardHolderFeedBack:!0}),!n||!a){e(new Error(t("Stripe is not initialized")));return}if(i){const o=a.getElement(L);this.props.stripe.createPaymentMethod({type:"card",card:o,billing_details:{name:((P=this.cardHolder)==null?void 0:P.value)||""}}).then(u=>{var y;const{paymentMethod:l}=u||{};if(l&&v)h(l);else{const C=(y=u==null?void 0:u.error)==null?void 0:y.message;e(new Error(C||t("Please enter a valid card number")))}}).catch(u=>{this.setState({showPopup:!0,card:!1,errorMsgCard:t("Please enter a valid card number"),popupHeader:"Failed"}),e(u)});return}const p=a.getElement(_),E=a.getElement(V);if(p&&c==="RA")try{const{error:o}=await a.submit();if(o){e({error:(o==null?void 0:o.message)||t("Please enter a valid detail")});return}const u=await n.createPaymentMethod({elements:a,params:{billing_details:{name:(f=this.cardHolder)==null?void 0:f.value}}}),{paymentMethod:l}=u;if(l)h(l,s);else{const y=(d=u==null?void 0:u.error)==null?void 0:d.message;e({error:y||t("Please enter a valid card number")})}}catch(o){e(o)}else E?this.props.stripe.createPaymentMethod({type:"card",card:E,billing_details:{name:((m=this.cardHolder)==null?void 0:m.value)||""}}).then(o=>{var l;const{paymentMethod:u}=o||{};if(u&&v)h(u);else{const y=(l=o==null?void 0:o.error)==null?void 0:l.message;e(new Error(y||t("Please enter a valid card number")))}}).catch(o=>{this.setState({showPopup:!0,card:!1,errorMsgCard:t("Please enter a valid card number"),popupHeader:"Failed"}),e(o)}):e(new Error(t("No valid payment element found")))})}render(){const{isCheckout:h,t:e}=this.props,{cardHolderFeedBack:t,cardHolder:a,errorMsgcardHolder:i,cardFeedBack:n,card:s,isLoadinPaymentElement:c,paymentMethodType:p,checkoutType:E}=this.state,P=z(),f={preferredNetwork:["cartes_bancaires","mastercard","visa"],style:{base:{fontSize:"16px",color:"#8f94a7",letterSpacing:"0.025em",background:"#f4f4f8",borderRadius:"8px",...P?{fontFamily:P}:{}},invalid:{color:"#c23d4b"}}},d={preferredNetwork:["cartes_bancaires","mastercard","visa"]};return r.createElement("div",{className:A(this.props.hideCardForm?"hide":"",h&&"cm-input")},r.createElement("div",{className:"_stripe-form-content _new-stripe-form-content"},c&&!h&&r.createElement("div",{className:"text-align-center"},r.createElement(J,{type:"SpinnerMedium"})),r.createElement("div",{className:c&&!h?"hide":""},r.createElement("div",{className:"col-md-12 p-0"},r.createElement("div",{className:A("form-group")},r.createElement("div",{className:"stripe-form-element"},h||p==="card"?r.createElement(r.Fragment,null,r.createElement(Z,{type:"text",id:"CardHolderName","data-stripe":"name",placeHolder:e("Name on the card"),"data-fv-field":"cardholdername",inputRef:m=>{this.cardHolder=m},onKeyUp:this.cardHolderValidateHandler,onChange:m=>this.cardHolderValue(m.target.value),autoComplete:"off",valid:t&&a,value:this.state.cardHolderName,isFeedBackShow:t&&!a,feedBackText:i||e("The card holder name is required and can't be empty"),"aria-required":!0}
2),r.createElement(de,{item:{name:e("Card Holder Name")}})):null)))),r.createElement("div",null,r.createElement("div",{className:"col-md-12 p-l-r-0"},r.createElement("div",{className:A("form-group",h&&"cm-input",n&&"has-feedback",n&&s&&"has-success",n&&!s&&"has-error")},h?r.createElement(r.Fragment,null,r.createElement("div",{className:"col-xs-12 p-0 m-b-10"},r.createElement(L,{className:"controller-group m-b-10",id:"Card Number",options:f,placeholder:e("Card Number"),onChange:this.cardElementHandler,autoComplete:"off"})),r.createElement("div",{className:"col-xs-6 p-l-0"},r.createElement(se,{className:"controller-group",id:"Expiry Date",options:f,placeholder:"Expiry Date",onChange:this.cardElementHandler,autoComplete:"off"})),r.createElement("div",{className:"col-xs-6 p-0"},r.createElement(ne,{className:"controller-group",id:"CVC",options:f,placeholder:"CVC",onChange:this.cardElementHandler,autoComplete:"off"}))):E==="RA"?r.createElement("div",{className:"m-t-15"},r.createElement(_,{id:"payment",options:d,onChange:this.paymentElementHandler,onReady:()=>this.setState({isLoadinPaymentElement:!1}),autoComplete:"off"})):r.createElement(V,{onChange:this.cardElementHandler,options:d,onReady:m=>{var o,u,l,y;this._element=m,this.setState({isLoadinPaymentElement:!1}),this._element.update({style:{base:{color:(u=x[(o=this.context)==null?void 0:o.theme])==null?void 0:u.neutral1000,"::placeholder":{color:(y=x[(l=this.context)==null?void 0:l.theme])==null?void 0:y.neutral700},...P?{fontFamily:P}:{}}}})}}),h&&(this.state.stripeErrorMessage?r.createElement("small",{className:"help-block"},this.state.stripeErrorMessage):r.createElement("small",{className:"help-block","data-fv-result":"NOT_VALIDATED"},e("Please enter a valid card number")))))),r.createElement(le,{id:"bookingPopup",showModal:this.state.showPopup,headerText:r.createElement("p",null,e(`toasterMsg:${this.state.popupHeader}`)),onCloseFunc:this.hidePopup},r.createElement("div",{className:"ticket-type-container"},this.state&&this.state.errorMsgCard,r.createElement("div",{className:"modal-footer"},r.createElement(Q,{variant:"danger",id:"closeHideBtn",onClick:this.hidePopup},e("common:Close")))))))}};N.contextType=X;let G=N;const $=K(["checkout","common","toasterMsg"])(G),ce=b(()=>T(()=>import("./SquarePayment-CiW8OJwK.js"),__vite__mapDeps([6,1,0,2,3,4,5,7]))),pe=b(()=>T(()=>import("./SpreedlyPaymentForm-n28cvIS1.js"),__vite__mapDeps([8,1,0,2,3,4,5,9,10]))),me=b(()=>T(()=>import("./index-DvkGsCPu.js").then(w=>
2w.O9),__vite__mapDeps([0,1,2,3,4,5])));class he extends r.Component{constructor(h){super(h),this.squareDataSubmitted=!1,this.squareData=null,this.spreedlyFormResponseData=null,this.onSquareSuccess=(e,t)=>{this.squareData={id:e,card:{last4:t.last_4}},this.setState({isUpdated:!0},()=>{this.squareDataSubmitted=!0})},this.onSquareError=()=>{const{onSquareError:e}=this.props;typeof e=="function"&&e()},this.isValidCard=()=>{var n,s,c;const{isFromMyEvents:e,paymentGateway:t,eventData:a}=this.props,i=e?t:a==null?void 0:a.paymentGateway;if(i==="STRIPE"||this.props.isStripe){const p=(n=this._CardForm)==null?void 0:n.validateCard(),E=(s=this._CardForm)==null?void 0:s.validateCardHolder();return p&&E}return F(i)?(c=this._CardForm)==null?void 0:c.validateCardDetails():!0},this.reset=()=>{var n,s,c;const{isFromMyEvents:e,paymentGateway:t,eventData:a}=this.props,i=e?t:a==null?void 0:a.paymentGateway;i==="STRIPE"||this.props.isStripe?(n=this._CardForm)==null||n.reset():F(i)&&((c=(s=this._CardForm)==null?void 0:s.resetSpreedly)==null||c.call(s))},this.getCardOrPaymentIntentId=(e,t)=>new Promise((a,i)=>{const{eventData:n,isStripe:s,t:c,cardHolderEmail:p,buyerFullName:E,orderId:P}=this.props;if(n&&n.paymentGateway==="STRIPE"||s){const f=n&&n.eventURL||n.eventUrl;this._CardForm.doGetPaymentMethod().then(d=>{const m={paymentMethodId:d.id,newCard:!0};this.props.paymentIntentAuthentication(f,e,m,t).then(o=>{if(o&&o.data)if(o.data.requiresAction){const u={paymentMethodId:d==null?void 0:d.id,newCard:!0,requiresAction:o.data.requiresAction,paymentIntentClientSecret:o.data.paymentIntentClientSecret,paymentIntentId:o.data.paymentIntentId,amount:this.props.paymentAmount,withoutLogin:!0,buyerEmail:p,buyerName:E,orderId:P};this.props.addPayementMethodToSetupIntent(f,u,!0).then(l=>{if(l!=null&&l.data){const{paymentIntentId:y}=l.data,C=y.startsWith("seti");(C?this._CardForm.confirmSetup.bind(this._CardForm):this._CardForm.confirmPayment.bind(this._CardForm))(l.data,m==null?void 0:m.paymentMethodId).then(S=>{var I;const R=C?S.setupIntent.id:((I=S.paymentIntent)==null?void 0:I.id)||S.id;a({id:R,card:d==null?void 0:d.card,paymentMethodId:m==null?void 0:m.paymentMethodId})}).catch(S=>{this.setState({showPopup:!0,errorMsgCard:(S==null?void 0:S.errorMessage)||(S==null?void 0:S.message)||c("Error while confirming payment."),popupHeader:"Failed"}),i(S)})}else{const y=(l==null?void 0:l.errorMessage)||c("Error while adding payment method to setup intent.");this.setState({showPopup:!0,errorMsgCard:y,popupHeader:"Failed"});const C=new Error(y);C.response=l,i(C)}}).catch(l=>{const y=(l==null?void 0:l.errorMessage)||(l==null?void 0:l.message)||c("Error while adding payment method to setup intent.");this.setState({showPopup:!0,errorMsgCard:y,popupHeader:"Failed"}),i(l)})}else a({id:o.data.paymentIntentId,card:d.card});else this.setState({showPopup:!0,errorMsgCard:o&&o.errorMessage||c("Please enter a valid card number"),popupHeader:"Failed"}),(o==null?void 0:o.errorCode)==="expired_card"&&e===ee.DONATION_WITH_AMOUNT&&a({error:o}),a({error:o&&o.errorMessage||c("Error while payment intent authentication.")})})}).catch(d=>{this.setState({showPopup:!0,errorMsgCard:d&&d.error||c("Please enter a valid card number"),popupHeader:"Failed"}),a(d)})}else if(this.props.eventData&&this.props.eventData.paymentGateway==="SQUARE"){te(".sq-button-wrapper button").click();for(let f=1;f<150;f++)setTimeout(()=>{this.state.isUpdated&&a(this.squareData)},1500)}else F(this.props.eventData.paymentGateway)&&(document.getElementById("spreedly-payment-form-submit").click(),setTimeout(()=>{var d,m,o,u,l;(d=this.spreedlyFormResponseData)!=null&&d.token?(this.spreedlyFormResponseData.id=this.spreedlyFormResponseData.token,this.spreedlyFormResponseData.card={country:((o=(m=this.spreedlyFormResponseData)==null?void 0:m.bin_metadata)==null?void 0:o.issuing_country_iso_a2_code)||"US"},this.spreedlyFormResponseData.paymentGateway=this.props.paymentGateway,a(this.spreedlyFormResponseData)):(this.setState({showPopup:!0,errorMsgCard:((u=this.spreedlyFormResponseData)==null?void 0:u.error)||
2c("Please enter a valid card number"),popupHeader:"Failed"}),a({error:((l=this.spreedlyFormResponseData)==null?void 0:l.error)||c("Please enter a valid card number"),paymentGateway:this.props.paymentGateway}))},1500))}),this.paymentIntentAuthorization=(e,t,a)=>new Promise((i,n)=>{var c,p,E,P;const{t:s}=this.props;if(this.props.eventData&&this.props.eventData.paymentGateway==="STRIPE"||this.props.isStripe){const f=this.props.eventData&&this.props.eventData.eventURL;t.newCard=!1,this.props.paymentIntentAuthentication(f,e,t,a).then(d=>{d&&d.data?d.data.requiresAction?this._CardForm.confirmCardSetup(d.data,t.paymentMethodId).then(m=>{i({id:m.setupIntent.id,paymentGateway:"STRIPE"})}).catch(m=>{n(m)}):i({id:d.data.paymentIntentId,paymentGateway:"STRIPE"}):(i({error:d&&d.errorMessage||s("Error while payment intent authentication."),paymentGateway:"STRIPE"}),this.setState({showPopup:!0,errorMsgCard:d&&d.errorMessage||s("Please enter a Valid Card Number"),popupHeader:"Failed"}))})}else this.props.eventData&&this.props.eventData.paymentGateway==="SQUARE"?i({paymentGateway:"SQUARE"}):F((p=(c=this.props)==null?void 0:c.eventData)==null?void 0:p.paymentGateway)&&i({paymentGateway:(P=(E=this.props)==null?void 0:E.eventData)==null?void 0:P.paymentGateway,id:t==null?void 0:t.paymentMethodId})}),this.createPaymentMethodForAddCard=(e=!0)=>new Promise(t=>{const{isFromMyEvents:a,paymentGateway:i,eventData:n,isStripe:s}=this.props,c=a?i:n==null?void 0:n.paymentGateway;c==="STRIPE"||s?this._CardForm.doGetPaymentMethod().then(p=>{t(p)}).catch(p=>{t({error:p})}):c==="SQUARE"?(document.querySelector("#rswp-card-button").click(),this.Timeout&&(clearTimeout(this.Timeout),this.Timeout=null),this.Timeout=setTimeout(()=>{this.state.isUpdated&&t(this.squareData)},3e3)):F(c)&&(document.getElementById("spreedly-payment-form-submit").click(),setTimeout(()=>{var E,P,f,d,m;(E=this.spreedlyFormResponseData)!=null&&E.token?(this.spreedlyFormResponseData.id=this.spreedlyFormResponseData.token,this.spreedlyFormResponseData.card={country:((f=(P=this.spreedlyFormResponseData)==null?void 0:P.bin_metadata)==null?void 0:f.issuing_country_iso_a2_code)||"US"},this.spreedlyFormResponseData.paymentGateway=this.props.paymentGateway,t(this.spreedlyFormResponseData)):(e||this.setState({showPopup:!0,errorMsgCard:((d=this.spreedlyFormResponseData)==null?void 0:d.error)||"Please enter a valid card number",popupHeader:"Failed"}),t({error:((m=this.spreedlyFormResponseData)==null?void 0:m.error)||"Please enter a valid card number",paymentGateway:this.props.paymentGateway}))},1500))}),this.showPopup=()=>{this.setState({showPopup:!0})},this.hidePopup=()=>{this.setState({showPopup:!1})},this.state={isUpdated:!1,isStripeLoaded:!1,setupIntentData:null,setupIntentDataLoading:!1}}UNSAFE_componentWillMount(){const{stripeKey:h}=this.props,e=ae(h);e.then(()=>{this.setState({isStripeLoaded:!0,stripePromise:e})}).catch(t=>{console.log("Stripe status error",t)})}componentDidMount(){this.props.onReff&&this.props.onReff(this);const{isCheckout:h,eventData:e}=this.props;if(!h){const t=(e==null?void 0:e.eventURL)||(e==null?void 0:e.eventUrl);this.setState({setupIntentDataLoading:!0}),this.props.paymentIntentAuthentication(t,null,{newCard:!0},null,!0).then(a=>{a&&!a.errorMessage&&this.setState({setupIntentData:a.data})}).finally(()=>{this.setState({setupIntentDataLoading:!1})})}}componentWillUnmount(){this.props.onReff&&this.props.onReff(void 0),this.Timeout&&(clearTimeout(this.Timeout),this.Timeout=null)}render(){var q,U;const{isStripeLoaded:h,setupIntentData:e,stripePromise:t,setupIntentDataLoading:a}=this.state,{isCheckout:i,eventData:n,paymentInfoAdded:s,isStripe:c,stripeKey:p,hideCardForm:E,t:P,activeViews:f,handleSquareResponse:d,paymentGateway:m,isFromMyEvents:o,squareMerchantLocation:u,cardHolderEmail:l}=this.props||{},y=o?m:n==null?void 0:n.paymentGateway,C=re(),D=z(),S={...C?{fonts:C}:{},...D?{appearance:{variables:{fontFamily:D}}}:{}},R=Object.keys(S).length>0,I={locale:(q=B)==null?void 0:q.language,stripe:t};e&&(I.options={clientSecret:e==null?void 0:e.paymentIntentClientSecret,paymentMethodCreation:"manual",...S});const Y=(g,H)=>r.createElement($,{onRef:k=>{this._CardForm=k},paymentInfoAdded:s,hideCardForm:E,isCheckout:i,stripe:g,elements:H});return r.createElement("div",{className:"payment-methode"},y==="STRIPE"||c?r.createElement("div",null,p&&h&&!a&&r.createElement("div",{className:"Checkout"},this.state.setupIntentData?r.createElement(O,{...I},r.createElement(W,null,({stripe:g,elements:H})=>Y(g,H))):r.createElement(O,{locale:(U=B)==null?void 0:U.language,stripe:this.state.stripePromise,options:R?S:void 0},r.createElement(W,null,({stripe:g,elements:H})=>r.createElement($,{onRef:k=>{this._CardForm=k},paymentInfoAdded:s,hideCardForm:E,isCheckout:i,stripe:g,elements:H}))))):y==="SQUARE"?r.createElement("div",null,this.props.stripeKey&&!this.props.hideCardForm&&r.createElement("div",{className:"_square-form-content col-md-12 col-sm-12 col-xs-12"},r.createElement(ce,{squareAppId:p,onNonceGenerated:this.onSquareSuccess,onSquareError:this.onSquareError,paymentInfoAdded:this.props.paymentInfoAdded,handleSquareResponse:d,activeViews:f,squareLocationId:u||(n==null?void 0:n.squareLocationId)}))):F(y)&&y&&r.createElement(pe,{onRef:g=>{this._CardForm=g},spreedlyPaymentFormResponse:g=>{this.spreedlyFormResponseData=g},cardHolderEmail:l,gatewayEnvKey:p,paymentGateway:y,hideCardForm:E,paymentInfoAdded:s}),r.createElement(me,{id:"bookingPopup",showModal:this.state.showPopup,headerText:r.createElement("p",null,P(`toasterMsg:${this.state.popupHeader}`)),modelBody:"",onCloseFunc:this.hidePopup},r.createElement("div",{className:"ticket-type-container"},this.state&&this.state.errorMsgCard,r.createElement("div",{className:"modal-footer"},r.createElement(Q,{variant:"danger",id:"hidePopup",onClick:this.hidePopup},P("common:Close"))))))}}const ue={paymentIntentAuthentication:(w,h,e,t)=>ie(w,h,e,t),addPayementMethodToSetupIntent:oe},ye=w=>{var h,e;return{eventData:((h=w==null?void 0:w.event)==null?void 0:h.data)||((e=w==null?void 0:w.host)==null?void 0:e.eventDetails)}},we=j(ye,ue)(K(["checkout","common","toasterMsg"])(he));export{we as S};
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.