PageSourceSearch

https://www.agoldenstate.com/_next/static/chunks/pages/checkout-dcbfd3f2d63b0e0d.js

js agoldenstate.com collected 2026-09-26 01:35:06 UTC 41,231 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2222],{386:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return t(4672)}])},4672:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return ei}});var i=t(47568),o=t(26042),r=t(69396),a=t(97582),l=t(85893),d=t(80419),s=t(39653),u=t(48641),c=t(47741),p=t(35610),v=t(42588),h=t(36158),g=t(23887),x=t(99052),m=t(3038),f=t(74373),y=t(49184),b=t(11163),w=t(67294),j=t(58971),C=t.n(j),I=t(47622),Z=t(34839),_=t(69345),S=t(89530),k=t(65349),P=t(93550),L=t(41664),O=t.n(L),q=t(3382),T=t(31955),A=t(61197),z=t(58634),D=t(48339),M=t(60250),N=t(5152),E=t.n(N),G=t(61587),U=t(35119),W=t(70024),K=t(9269);t(30517);var B=t(55239),R=t(21949),V=t(85993),Y=t(98087),F=t(47659),H=t(11637),J=t(39686),X=t(38121),$=t(59304),Q=E()(function(){return Promise.all([t.e(5675),t.e(9696)]).then(t.bind(t,9696))},{loadableGenerated:{webpack:function(){return[9696]}}}),ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],en=[1,2,3,4,5].map(function(e){var n=new Date;return n.setDate(n.getDate()+e),"".concat(n.getDate()," ").concat(ee[n.getMonth()])}),et=function(e){var n,t,j,L,N,E,ee,et,ei,eo,er,ea,el,ed,es,eu,ec,ep,ev,eh,eg,ex,em,ef,ey=e.pageFeatureControls,eb=(e.userAddresses,e.userDocuments,e.loyalityPoints),ew=e.isLoyalityHas_points,ej=function(e){return e%1!=0?Math.floor(e):e-1},eC=(0,d.pm)(),eI=(0,b.useRouter)(),eZ=ey.showGovtId,e_=ey.showPaymentOptions,eS=ey.showPatientId,ek=ey.uploadFields,eP=ey.placeOrderMessage,eL=ey.paymentGateway,eO=ey.currency,eq=ey.emptyBagMessage,eT=ey.paymentOptions,eA=ey.defaultPaymentType,ez=ey.paymentSupportText,eD=ey.showPromotions,eM=ey.isGovtIdMandatory,eN=ey.createOrderButtonText,eE=(0,w.useState)(!0),eG=eE[0],eU=eE[1],eW=(0,w.useState)(eA),eK=eW[0],eB=eW[1],eR=(0,s.qY)(),eV=eR.isOpen,eY=eR.onOpen,eF=eR.onClose,eH=(0,w.useState)(""),eJ=eH[0],eX=eH[1],e$=(0,s.qY)(),eQ=e$.isOpen,e0=e$.onOpen,e1=e$.onClose,e2=(0,s.qY)(),e3=e2.isOpen,e4=e2.onOpen,e5=e2.onClose,e9=(0,s.qY)(),e6=e9.isOpen,e8=e9.onOpen,e7=e9.onClose,ne=(0,w.useState)(!1),nn=ne[0],nt=ne[1],ni=(0,w.useState)({orderId:"",gateWayId:""}),no=ni[0],nr=ni[1],na=(0,w.useState)({}),nl=na[0],nd=na[1],ns=(0,w.useState)(!1),nu=ns[0],nc=ns[1],np=(0,w.useState)(""),nv=np[0],nh=np[1],ng=(0,w.useState)(""),nx=ng[0],nm=ng[1],nf=(0,w.useState)(!1),ny=nf[0],nb=nf[1],nw=(0,w.useRef)(!1),nj=(0,w.useState)({token:"",id:null}),nC=nj[0],nI=nj[1],nZ=(0,w.useState)(null),n_=nZ[0],nS=nZ[1],nk=(0,w.useState)({id:null,error:null}),nP=nk[0],nL=nk[1],nO=(0,w.useState)(""),nq=nO[0],nT=nO[1],nA=(0,w.useState)(""),nz=nA[0],nD=nA[1],nM=(0,w.useState)({open:!0,date:en[0],timeSlot:null===(n=ey.scheduleDeliverySlots)||void 0===n?void 0:n.split(",")[0]}),nN=nM[0],nE=nM[1],nG=!(0,A.y)()&&C().get("current_address"),nU=(0,w.useState)((null==nG?void 0:nG.addressId)||""),nW=nU[0],nK=nU[1],nB=(0,w.useState)(!1),nR=nB[0],nV=nB[1],nY=(0,w.useState)(""),nF=nY[0],nH=nY[1],nJ=(0,w.useContext)(S.Z),nX=(0,w.useContext)(W.Z),n$=(0,w.useState)(null==nX?void 0:null===(t=nX.headers)||void 0===t?void 0:t.subTotal)[0],nQ=(0,w.useState)(!1),n0=nQ[0],n1=nQ[1],n2=(0,w.useContext)(R.Z),n3=n2.maximumInternationalOrder,n4=n2.maximumInternationalOrderMessage,n5=n2.catalogPage,n9=n2.restrictedMessage,n6=(n2.showBrandImage,n2.allowGtm),n8=n2.hidePrice,n7=n2.guestCheckoutMandatory,te=(0,w.useContext)(J.Z),tn=(0,w.useContext)(W.Z).setCart,tt=(0,w.useContext)(D.Z).service,ti=(0,$.r)().trackPurchasePixel,to=null==te?void 0:null===(j=te.siteConfiguration)||void 0===j?void 0:null===(L=j.restrictedStates)||void 0===L?void 0:L.json,tr=C().get("hubCurrency");(0,w.useEffect)(function(){n7&&eI.replace("/checkout/guest")},[n7]);var ta=(0,w.useState)((null==nJ?void 0:null===(N=nJ.user_documents)||void 0===N?void 0:N.filter(function(e){return"age_proof"===e.type&&e.isValid}))||[]),tl=ta[0],td=ta[1],ts=(0,w.useState)((null==nJ?void 0:null===(E=nJ.user_documents)||void 0===E?void 0:E.filter(function(e){return"patientId"===e.type&&e.isValid}))||[]),tu=ts[0],tc=ts[1],tp=null==nJ?void 0:null===(ee=nJ.addresses)||void 0===ee?void 0:ee.find(function(e){return e.addressId===nW}),tv=C().get("hubAddress"),th=(0,w.useState)(!1),tg=th[0],tx=th[1],tm=(0,w.useState)({secruteKey:"",orderId:"",payment_intent_id:"",paymentGatewayId:""}),tf=tm[0],ty=tm[1],tb=(0,w.useState)(!1),tw=tb[0],tj=tb[1],tC=(0,w.useContext)(Y.Z).cms,tI=(null==tt?void 0:tt.type)||(null===(et=C().get("hub"))||void 0===et?void 0:et.type),tZ=(null==tt?void 0:null===(ei=tt.type)||void 0===ei?void 0:ei.toLowerCase())||(null===(eo=C().get("hub"))||void 0===eo?void 0:null===(er=eo.type)||void 0===er?void 0:er.toLowerCase()),t_=null===(ea=ey.scheduleDeliverySlots)||void 0===ea?void 0:ea.split(","),tS=C().get("orderMethods");null===(ed=null==tC?void 0:null===(el=tC.globals)||void 0===el?void 0:el.settings[0])||void 0===ed||ed.mode;var tk,tP,tL=function(e){nX.syncBag(),nK(e)},tO=null===(es=nX.meta)||void 0===es?void 0:null===(eu=es.promoCodesApplied)||void 0===eu?void 0:eu.bySystem,tq=null===(ec=nX.headers)||void 0===ec?void 0:null===(ep=ec.discountDetails)||void 0===ep?void 0:ep.map(function(e){return e.discountCode}),tT=(tk=(0,i.Z)(function(e){return(0,a.__generator)(this,function(n){return nT("transferring to the payment gateway momentarily"),window.open(e,"_self"),[2]})}),function(e){return tk.apply(this,arguments)}),tA=null==eT?void 0:eT.find(function(e){var n;return(null==e?void 0:null===(n=e.key)||void 0===n?void 0:n.toLowerCase())==="aeropay"});(0,w.useEffect)(function(){t0()},[]);var tz,tD,tM=(tP=(0,i.Z)(function(e){var n,t,i,o,r,l,d,s,u,c,p,v,h,g,x,m,f,y,b,w,j,I,Z;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return[4,U.Z.getHubPaymentGatewayId()];case 1:if(t=a.sent(),(null==(i=null===(n=null==eT?void 0:eT.find(function(e){return e.name===eK}))||void 0===n?void 0:n.key)?void 0:i.toLowerCase())!=="square")return[3,3];return(r={}).orderId=e.toString(),r.currency=tr||eO||"USD",l=null===(o=null==t?void 0:t.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())===(null==i?void 0:i.toLowerCase())}))||void 0===o?void 0:o.paymentGatewayId,nT("Directing to payment gateway ..."),[4,U.Z.getPaymentLink(l,r)];case 2:return(s=null==(d=a.sent())?void 0:d.result)&&s.payment_link.long_url?(C().set("cart",{bag:[]}),nX.syncBag(),tT(s.payment_link.long_url)):(nT("Oops issue in sending to payment gateway. Please try again."),nb(!1),eC({title:"There is an issue with the payment gateway. Please try again later. ",status:"error",position:"top-right",duration:3e3,isClosable:!0})),[3,11];case 3:if((null==i?void 0:i.toLowerCase())!=="peer.xyz")return[3,5];return(c={}).orderId=e.toString(),c.currency=tr||eO||"USD",p=null===(u=null==t?void 0:t.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())===(null==i?void 0:i.toLowerCase())}))||void 0===u?void 0:u.paymentGatewayId,nT("Directing to payment gateway ..."),[4,U.Z.getPaymentLink(p,c)];case 4:return(h="string"==typeof(null==(v=a.sent())?void 0:v.result)?v.result:null)?(C().set("cart",{bag:[]}),nX.syncBag(),tT(h)):(nT("Oops issue in sending to payment gateway. Please try again."),nb(!1),eC({title:"There is an issue with the payment gateway. Please try again later. ",status:"error",position:"top-right",duration:3e3,isClosable:!0})),[3,11];case 5:if((null==i?void 0:i.toLowerCase())!=="stripe")return[3,7];return(x={}).orderId=e.toString(),x.currency=tr||eO||"USD",m=null===(g=null==t?void 0:t.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())===(null==i?void 0:i.toLowerCase())}))||void 0===g?void 0:g.paymentGatewayId,nT("Directing to payment gateway ..."),[4,U.Z.getPaymentLink(m,x)];case 6:return(y=null==(f=a.sent())?void 0:f.result)&&(null==y?void 0:y.client_secret)?(ty({secruteKey:null==y?void 0:y.client_secret,orderId:e.toString(),payment_intent_id:null==y?void 0:y.id,paymentGatewayId:m}),e8(),nT("You will be directed back to our site post the payment confirmation"),C().set("cart",{bag:[]}),nX.syncBag()):(nT("Oops issue in sending to payment gateway. Please try again."),nb(!1),eC({title:"There is an issue with the payment gateway. Please try again later. ",status:"error",position:"top-right",duration:3e3,isClosable:!0})),[3,11];case 7:w=null===(b=null==t?void 0:t.find(function(e){return"aeropay"===e.name.toLowerCase()}))||void 0===b?void 0:b.paymentGatewayId,C().set("cart",{bag:[]}),nX.syncBag(),nT("Order is completing through Aeropay..."),(j={}).orderId=e.toString(),j.bankAccountId=nz.toString(),j.paymentGatewayId=w,a.label=8;case 8:return a.trys.push([8,10,,11]),[4,U.Z.payOrderAeroPay(j)];case 9:return(null==(I=a.sent())?void 0:I.orderId)&&eI.push("/orders/".concat(e)),[3,11];case 10:return nL({id:e,error:a.sent()}),[3,11];case 11:return[2]}})}),function(e){return tP.apply(this,arguments)}),tN=null==eb?void 0:eb.total,tE=null==eb?void 0:null===(ev=eb.brand_level)||void 0===ev?void 0:ev.point_spend_ratio,tG=function(){var e;if((null===(e=Object.keys(nl))||void 0===e?void 0:e.length)>=1){var n="PICKUP"!==tI?Object.keys(nl).find(function(e){return nl[e]&&"name"!==e}):Object.keys(nl).find(function(e){return nl[e]});if(n){if("address"===n||"name"===n||"identification"===n){var t=document.getElementById("address"===n||"name"===n?"address":"govId");if(t){var i=t.getBoundingClientRect().top+window.pageYOffset-300;window.scrollTo({top:i,behavior:"smooth"})}}eC({title:nl[n],status:"info",position:"top-right",duration:3e3,isClosable:!0})}}},tU=(tz=(0,i.Z)(function(){var e,n,t,i,l,d,s,u,c,p,v,h,g,x,m,f,y;return(0,a.__generator)(this,function(a){switch(a.label){case 0:if(eG)return tG(),[2];if(nw.current||ny)return[2];nw.current=!0,nT("Creating Order..."),nb(!0),(e={}).addressId=nW,nx&&""!==nx&&(e.method=nx),n0&&ew&&(null==eb?void 0:eb.total)&&tE&&(tN>=n$*tE?(n=ej(n$),e.points=n*tE):e.points=tN),!nN.open&&nN.date&&nN.timeSlot&&(e.deliverySchedule="".concat(nN.date," ").concat(nN.timeSlot)),(null==tq?void 0:tq.length)>0&&(e.discounts=tq),eL&&(e.isPrepaidOrder=!0),nW||delete e.addressId,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,U.Z.createOrder(e)];case 2:if(t=a.sent(),n6&&(u=(null==nX?void 0:null===(i=nX.bag)||void 0===i?void 0:i.map(function(e){var n;return{item_id:e.hubProductId||"",item_name:e.title||"",price:e.retailPrice||"",quantity:e.quantity||"",item_variant:(null===(n=e.attrs.find(function(e){return"Size"===e.name}))||void 0===n?void 0:n.value)||"",currency:"USD",coupon:"",item_category:e.category||"",value:e.totalPayable||""}}))||[],c=T.Z.get("promotion"),p=T.Z.get("campaign_id"),v=(0,r.Z)((0,o.Z)({event:"purchase"},c?{campaign_id:c}:p&&{campaign_id:p},p?{utm_campaign:p}:{}),{eventModel:{hub:null===(l=C().get("hub"))||void 0===l?void 0:null===(d=l.hub)||void 0===d?void 0:d.name,orderId:t.orderId||"",totalRevenue:(null==nX?void 0:null===(s=nX.headers)||void 0===s?void 0:s.netPayable)||"",userId:(null==nJ?void 0:nJ.userId)||"",currency:"USD",items:u||""}}),window.dataLayer.push(v)),t){if(ti({cntr_revenue:null==nX?void 0:null===(h=nX.headers)||void 0===h?void 0:h.subTotal,cntr_transactionId:t.orderId}),nT("Order Created..."),"Authorizenet"===eK||(null==eK?void 0:eK.toLowerCase())==="nmi"){if((null==eK?void 0:eK.toLowerCase())==="nmi")return m=null===(x=null==n_?void 0:n_.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())==="nmi"}))||void 0===x?void 0:x.paymentGatewayId,nr(function(e){return(0,r.Z)((0,o.Z)({},e),{orderId:t.orderId,gateWayId:m,gateWayName:"nmi"})}),e4(),[2];return f=null===(g=null==n_?void 0:n_.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())==="authorizenet"}))||void 0===g?void 0:g.paymentGatewayId,nr(function(e){return(0,r.Z)((0,o.Z)({},e),{orderId:t.orderId,gateWayId:f})}),e4(),[2]}
1if(nz||"cash"!==(null==eK?void 0:eK.toLowerCase()))return nT("Directing to payment gateway ..."),tM(t.orderId),[2];eC({title:"Your order was placed succesfully",status:"success",position:"top-right",duration:3e3,isClosable:!0}),C().set("cart",{bag:[]}),nX.syncBag(),tn({bag:[],syncBag:!0,modification:[]}),eI.push("/orders/".concat(t.orderId))}return[3,4];case 3:return y=a.sent(),nw.current=!1,nb(!1),null==y||y.startsWith("California daily limit"),eC({title:"Exceeded daily limit",status:"info",description:y,position:"top-right",duration:3e3,isClosable:!0}),[3,4];case 4:return[2]}})}),function(){return tz.apply(this,arguments)}),tW=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"patientId"===n?(t&&tj(!0),tc(e)):(t&&tx(!0),td(e))},tK=function(e){"patientId"===e?tj(!1):tx(!1)},tB=function(e){if("patientId"===e){var n;tj(!1),tc((null==nJ?void 0:null===(n=nJ.user_documents)||void 0===n?void 0:n.filter(function(e){return"patientId"===e.type&&e.isValid}))||[])}else tx(!1),td(null==nJ?void 0:nJ.user_documents)},tR=n3&&"SHIPMENT"===tI&&(null==tp?void 0:tp.country)!==tv.country&&(null==nX?void 0:null===(eh=nX.headers)||void 0===eh?void 0:eh.netPayable)>n3;(0,w.useEffect)(function(){var e=nl;if(tR||t9()){eU(!0);return}if(eZ&&"PICKUP"!==tI)(null==nJ?void 0:nJ.firstName)&&(null==nJ?void 0:nJ.lastName)&&nW&&(!eM||!tl||(null==tl?void 0:tl.length)!==0||"validForSession"===T.Z.get("age_proof"))?(nd({}),eU(!1)):((null==nJ?void 0:nJ.firstName)||(null==nJ?void 0:nJ.lastName)?delete e.name:e=(0,r.Z)((0,o.Z)({},e),{name:"Please confirm your details"}),nW?delete e.address:e=(0,r.Z)((0,o.Z)({},e),{address:"Please confirm your contact and delivery address"}),tl&&(null==tl?void 0:tl.length)===0?e=(0,r.Z)((0,o.Z)({},e),{identification:"Government Identification is mandatory"}):delete e.identification,"validForSession"===T.Z.get("age_proof")&&delete e.identification,nd(e));else{if("PICKUP"===tI||(null==nJ?void 0:nJ.firstName)&&(null==nJ?void 0:nJ.lastName)&&nW){if("PICKUP"===tI&&(!(null==nJ?void 0:nJ.firstName)||!(null==nJ?void 0:nJ.lastName)||eM&&tl&&(null==tl?void 0:tl.length)===0&&"validForSession"!==T.Z.get("age_proof"))){(null==nJ?void 0:nJ.firstName)&&(null==nJ?void 0:nJ.lastName)?delete e.name:e=(0,r.Z)((0,o.Z)({},e),{name:"Please confirm first name and last name"}),tl&&(null==tl?void 0:tl.length)===0?e=(0,r.Z)((0,o.Z)({},e),{identification:"Government Identification is mandatory"}):delete e.identification,eU(!0),nd(e);return}}else{nW?delete e.address:e=(0,r.Z)((0,o.Z)({},e),{address:"Please confirm your contact and delivery address"}),(null==nJ?void 0:nJ.firstName)&&(null==nJ?void 0:nJ.lastName)?delete e.name:e=(0,r.Z)((0,o.Z)({},e),{name:"Please confirm First Name or Last Name"}),nd(e),eU(!0);return}eU(!1)}},[nW,tl,nJ,nX]);var tV,tY,tF,tH,tJ,tX,t$=(tD=(0,i.Z)(function(e){var n;return(0,a.__generator)(this,function(t){switch(t.label){case 0:if(!e.length)return[3,2];return[4,U.Z.checkPromo(e)];case 1:if(n=t.sent())return tn(n),eC({title:"Promo Code Removed",status:"info",position:"top-right",duration:3e3,isClosable:!0}),[2];t.label=2;case 2:return nX.syncBag(),eC({title:"Promo Code Removed",status:"info",position:"top-right",duration:3e3,isClosable:!0}),[2]}})}),function(e){return tD.apply(this,arguments)}),tQ=(tV=(0,i.Z)(function(e){var n,t,i;return(0,a.__generator)(this,function(t){switch(t.label){case 0:if(!((null==eb?void 0:eb.total)&&ew&&tE))return[3,4];if(!(e>=n$*tE))return[3,2];return n=ej(n$)*tE,[4,U.Z.syncBag(null,!0,n)];case 1:return tn(t.sent()),[3,4];case 2:return[4,U.Z.syncBag(null,!0,e)];case 3:tn(t.sent()),t.label=4;case 4:return[2]}})}),function(e){return tV.apply(this,arguments)}),t0=(tY=(0,i.Z)(function(){var e,n,t,i;return(0,a.__generator)(this,function(o){switch(o.label){case 0:return nV(!0),[4,U.Z.getHubPaymentGatewayId()];case 1:if(t=null===(e=null==(n=o.sent())?void 0:n.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())==="aeropay"}))||void 0===e?void 0:e.paymentGatewayId,nS(n),!(t&&tA))return[3,3];return nt(!0),[4,U.Z.getUserPaymentInfo(t)];case 2:return(null==(i=o.sent())?void 0:i.bankAccounts)&&nh(null==i?void 0:i.bankAccounts),nV(!1),[3,4];case 3:nV(!1),o.label=4;case 4:return[2]}})}),function(){return tY.apply(this,arguments)}),t1=(tF=(0,i.Z)(function(e){return(0,a.__generator)(this,function(n){return eB(e),nD(""),[2]})}),function(e){return tF.apply(this,arguments)}
1),t2=(tH=(0,i.Z)(function(e){return(0,a.__generator)(this,function(n){return nm(e),[2]})}),function(e){return tH.apply(this,arguments)}),t3=(tJ=(0,i.Z)(function(){var e,n,t,i,r,l,d,s,u,c;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return nc(!0),window.scrollTo({top:0,left:0,behavior:"instant"}),nT("Connecting with Aeropay"),i=null===(e=null==n_?void 0:n_.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())==="aeropay"}))||void 0===e?void 0:e.paymentGatewayId,(r={}).currency=tr||eO||"USD",[4,U.Z.getPaymentLink(i,r)];case 1:return(null==(l=a.sent())?void 0:null===(n=l.result)||void 0===n?void 0:n.token)?(nT("Connecting with Aeropay"),nc(!1),nI({token:null==l?void 0:null===(d=l.result)||void 0===d?void 0:d.token,id:i}),eY()):(null==l?void 0:null===(t=l.result)||void 0===t?void 0:t.existingUser)?(nc(!1),eX((0,o.Z)({paymentGatewayId:i},null==l?void 0:null===(s=l.result)||void 0===s?void 0:s.existingUser)),c=null==l?void 0:null===(u=l.result)||void 0===u?void 0:u.displayMessage,e0(),nH(c)):(eC({title:null==l?void 0:l.error,status:"info",position:"top-right",duration:3e3,isClosable:!0}),eI.push("/profile/account")),[2]}})}),function(){return tJ.apply(this,arguments)}),t4=function(){t3()},t5=(tX=(0,i.Z)(function(e){var n,t,i;return(0,a.__generator)(this,function(o){switch(o.label){case 0:return eF(),nT("Hold On Adding Your Account"),nc(!0),[4,U.Z.linkAeroPay(e)];case 1:return o.sent(),t=null===(n=null==n_?void 0:n_.find(function(e){var n;return(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())==="aeropay"}))||void 0===n?void 0:n.paymentGatewayId,[4,U.Z.getUserPaymentInfo(t)];case 2:return(null==(i=o.sent())?void 0:i.bankAccounts)&&nh(null==i?void 0:i.bankAccounts),nc(!1),[2]}})}),function(e){return tX.apply(this,arguments)});(0,w.useEffect)(function(){var e;"shipment"!==tZ&&tS&&tZ&&(null===(e=tS[tZ])||void 0===e?void 0:e.length)&&nm(tS[tZ][0])},[tI]);var t9=function(){return null!=to&&!!to.includes(null==tp?void 0:tp.state)&&"SHIPMENT"===tI};return((0,w.useEffect)(function(){var e;sessionStorage.getItem("tracked_view_checkout")||((0,X.s$)(null==nX?void 0:null===(e=nX.bag)||void 0===e?void 0:e.map(function(e){return{id:e.productId,name:e.title,brand:e.brandName,category:e.category,price:e.retailPrice,currency:eO||"USD",quantity:e.quantity}})),sessionStorage.setItem("tracked_view_checkout","true"))},[nX]),null==nP?void 0:nP.error)?(0,l.jsx)(u.xu,{minH:"600px",width:"100%",height:"100%",display:"flex",children:(0,l.jsxs)(u.Kq,{alignItems:"center",minH:"600px",justifyContent:"center",height:"100%",width:"100%",spacing:3,children:[(0,l.jsxs)(u.Kq,{textAlign:"center",spacing:"0",children:[(0,l.jsx)(u.xv,{fontSize:"1.5rem",textAlign:"center",fontWeight:"600",children:null==nP?void 0:nP.error}),(0,l.jsx)(u.xv,{fontSize:"16px",children:" you can still pay letter!"})]}),(0,l.jsx)(c.zx,{onClick:function(){eI.push("/orders/".concat(null==nP?void 0:nP.id))},variant:"primary",children:"Continue"})]})}):(0,l.jsxs)(l.Fragment,{children:[ny||nu||eV?(0,l.jsxs)(u.xu,{width:"100%",height:"80vh",display:"flex",justifyContent:"center",alignItems:"center",children:[(0,l.jsxs)(u.Kq,{alignItems:"center",width:"fit-content",justifyContent:"center",children:[(0,l.jsx)(p.$,{width:7,height:7,size:"sm",thickness:"3px",color:"brand.400",speed:"0.65s",emptyColor:"gray.200"}),nq&&(0,l.jsx)(u.xv,{children:nq})]}),eV&&(null==nC?void 0:nC.token)&&(0,l.jsx)(V.Z,{onSucccess:function(e){return t5(e)},paymentGatewayId:null==nC?void 0:nC.id,isOpen:eV,onClose:eF,token:null==nC?void 0:nC.token})]}):(null==nX?void 0:null===(eg=nX.bag)||void 0===eg?void 0:eg.length)===0?(0,l.jsx)(u.xu,{maxW:{base:"3xl",lg:"7xl"},mx:"auto",px:{base:"4",md:"8",lg:"12"},py:{base:"6",md:"8",lg:"12"},children:(0,l.jsxs)(u.gC,{mt:"16px",spacing:8,width:"100%",children:[(0,l.jsx)(u.xv,{textAlign:"center",variant:"pageTitle",children:"Checkout"}),(0,l.jsxs)(u.xv,{fontSize:"sm",children:[" ",eq," "]}),(0,l.jsx)(O(),{href:n5||"/",passHref:!0,children:(0,l.jsx)(c.zx,{variant:"primary",children:"Continue Shopping"})})]})}
1):(0,l.jsxs)(u.xu,{maxW:{base:"3xl",lg:"7xl"},mx:"auto",py:{base:"4",md:"8",lg:"12"},children:[(0,l.jsxs)(u.Kq,{direction:{base:"column",lg:"row"},align:{lg:"flex-start"},spacing:{base:"8",md:"16"},children:[(0,l.jsxs)(u.Kq,{width:{sm:"100%",md:"70%"},spacing:{base:"50px"},flex:"2",children:[(0,l.jsx)(k.Z,{id:"address",border:!1,heading:"",children:(0,l.jsx)(P.Z,{saveAddressId:tL,addresses:nJ.addresses,errors:nl,isAddressRestricted:t9(),restrictedMessage:n9||"Delivery is not available in this state"})}),eZ&&(0,l.jsx)(k.Z,{id:"govId",border:!0,heading:"Govt Id",children:(0,l.jsx)(u.Kq,{paddingLeft:{sm:"0",md:"21px"},children:(0,l.jsx)(G.Z,{availableAgeProof:tl,setFileUrls:tW,uploadFields:ek,errors:nl.identification})})}),eS&&(0,l.jsx)(k.Z,{border:!0,heading:"Patient Id",children:(0,l.jsx)(u.Kq,{paddingLeft:{sm:"0",md:"21px"},children:(0,l.jsx)(Q,{availableMedicalProof:tu,setFileUrls:tW})})}),"shipment"!==tZ&&tS&&(null===(ex=tS[tZ])||void 0===ex?void 0:ex.length)?(0,l.jsx)(k.Z,{border:!0,heading:"Type",children:(0,l.jsx)(v.Ee,{defaultValue:tS[tZ][0],onChange:t2,value:nx,children:(0,l.jsx)(u.Kq,{padding:"19px 0",width:"100%",spacing:5,paddingLeft:{sm:"0",md:"21px"},direction:"column",children:null===(em=tS[tZ])||void 0===em?void 0:em.map(function(e){return(0,l.jsx)(v.Y8,{width:"100%",color:"brand",borderColor:"brand",colorScheme:"brand",value:e,children:(0,l.jsx)(u.Ug,{marginLeft:"8px",minW:"288px",justifyContent:"space-between",width:"100%",alignItems:"center",border:"1px solid",borderColor:"color",padding:"12px 8px",borderRadius:"6px",children:(0,l.jsx)(u.xv,{fontWeight:"500",fontSize:"14px",children:e})})},e)})})})}):"",eT.length&&(void 0===e_||e_)&&(0,l.jsx)(k.Z,{maxWidth:"148px",border:!0,heading:"Payment Options",children:(0,l.jsxs)(u.kC,{direction:{lg:"row",md:"row",sm:"row"},justify:"flex-start",wrap:"wrap",py:"15",gap:5,children:[(0,l.jsx)(v.Ee,{defaultValue:"Cash",onChange:t1,value:nz?"":eK,children:(0,l.jsx)(u.Kq,{width:"100%",spacing:5,direction:"column",children:eT.map(function(e){var n,t,i=null==n_?void 0:n_.find(function(n){var t;return(null==n?void 0:n.name.toLowerCase())===(null==e?void 0:null===(t=e.key)||void 0===t?void 0:t.toLowerCase())});if((null==e?void 0:null===(n=e.key)||void 0===n?void 0:n.toLowerCase())!=="aeropay"&&i||(null==e?void 0:null===(t=e.key)||void 0===t?void 0:t.toLowerCase())==="cash")return(0,l.jsx)(v.Y8,{width:"100%",color:"brand",borderColor:"brand",colorScheme:"brand",value:e.key,children:(0,l.jsx)(u.Ug,{marginLeft:"8px",minW:"288px",justifyContent:"space-between",width:"100%",alignItems:"center",border:"1px solid",borderColor:"color",padding:"12px 8px",borderRadius:"6px",children:(0,l.jsx)(u.xv,{variant:"pageText",children:e.name})})},null==e?void 0:e.key)})})}),nR&&!(null==nv?void 0:nv.length)&&(0,l.jsx)(h.Od,{marginLeft:"32px",width:"280px",borderRadius:"6px",height:"38px"}),(0,l.jsxs)(u.Kq,{spacing:5,alignItems:"flex-start",children:[(null==nv?void 0:nv.length)>0&&(0,l.jsx)(u.Kq,{spacing:5,children:(0,l.jsx)(u.Kq,{spacing:5,width:"100%",children:(0,l.jsx)(v.Ee,{value:nz||"",onChange:nD,children:(0,l.jsx)(u.Kq,{spacing:5,direction:"column",children:null==nv?void 0:nv.map(function(e){return(0,l.jsx)(v.Y8,{value:null==e?void 0:e.bankAccountId,color:"brand",borderColor:"brand",colorScheme:"brand",children:(0,l.jsxs)(u.Ug,{marginLeft:"8px",minW:"288px",justifyContent:"space-between",width:"100%",alignItems:"center",border:"1px solid",borderColor:"color",padding:"12px 8px",borderRadius:"6px",children:[(0,l.jsx)(u.xv,{variant:"pageText",children:null==e?void 0:e.bankName}),(0,l.jsx)(u.xv,{variant:"pageTextDim",children:null==e?void 0:e.name})]},null==e?void 0:e.bankAccountId)},null==e?void 0:e.bankAccountId)})})})})}),nn&&!(null==nv?void 0:nv.length)&&(0,l.jsx)(v.Y8,{color:"brand",borderColor:"brand",onClick:function(){return t3()},colorScheme:"brand",children:(0,l.jsxs)(u.Ug,{marginLeft:"8px",minW:"288px",onClick:function(){return t3()},width:"100%",alignItems:"center",border:"1px solid",borderColor:"color",padding:"12px 8px",borderRadius:"6px",children:[(0,l.jsx)(u.xv,{fontWeight:"500",fontSize:"14px",children:"Pay by bank with"}),(0,l.jsx)(z.Z,{width:"100px"})]})}),nn&&(null==nv?void 0:nv.length)&&(0,l.jsx)(u.Ug,{width:"100%",children:(0,l.jsxs)(c.zx,{onClick:function(){return t3()},marginLeft:"32px",minW:"298px",variant:"primary",children:["Add account using",(0,l.jsx)(z.Z,{width:"100px"})]})}),nn&&(0,l.jsxs)(u.gC,{spacing:2,alignItems:"flex-start",padding:"16px",bg:"secondary",borderRadius:"12px",width:"100%",children:[(0,l.jsx)(u.xv,{fontSize:"14px",fontWeight:"600",children:"Secure contactless payments. Simply link your bank and pay"}),(0,l.jsxs)(u.Ug,{spacing:"0",gap:"12px",children:[(0,l.jsx)(g.Ee,{width:"24px",src:"https://res.cloudinary.com/dcwq74lfg/image/upload/v1700122549/download_11.png"}),(0,l.jsx)(g.Ee,{width:"24px",src:"https://res.cloudinary.com/dcwq74lfg/image/upload/v1700122549/download_9.png"}),(0,l.jsx)(g.Ee,{width:"24px",src:"https://res.cloudinary.com/dcwq74lfg/image/upload/v1700122549/download_10.png"}),(0,l.jsx)(g.Ee,{width:"70px",src:"https://res.cloudinary.com/dcwq74lfg/image/upload/v1700123078/capital-one-logo.svg"}),(0,l.jsx)(u.xv,{fontSize:"12px",fontWeight:"600",children:"+ 1000s more"})]})]})]}),ez&&(0,l.jsxs)(u.xv,{fontSize:"14px",textTransform:"none",children:[" ",(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:ez}})]})]})}),ey.showScheduleDelivery&&(null==tI?void 0:tI.toLowerCase())==="delivery"?(0,l.jsx)(k.Z,{border:!0,heading:"Time",children:(0,l.jsx)(u.xu,{border:"1px solid #eee",padding:"16px 14px",width:"100%",maxW:"350px",children:nN.open?(0,l.jsxs)(u.Kq,{spacing:4,width:"100%",children:[(0,l.jsx)(u.xv,{fontSize:"16px",children:"Select a Delivery Time"}),(0,l.jsxs)(u.Ug,{gap:3,width:"100%",children:[(0,l.jsxs)(x.v2,{children:[(0,l.jsx)(x.j2,{_active:{bg:"transparent"},_hover:{bg:"transparent"},bg:"transparent",border:"1px solid",borderColor:"color",width:"50%",as:c.zx,rightIcon:(0,l.jsx)(q.v4,{}),children:nN.date?nN.date:en[0]}),(0,l.jsx)(x.qy,{bg:"bgColor",border:"1px solid",borderColor:"color",children:en.map(function(e){return(0,l.jsx)(x.sN,{_focus:{bg:"transparent"},_active:{bg:"transparent"},_hover:{bg:"transparent"},onClick:function(){return nE(function(n){return(0,r.Z)((0,o.Z)({},n),{date:e})})},children:e},e+2)})})]}),(0,l.jsxs)(x.v2,{children:[(0,l.jsx)(x.j2,{_active:{bg:"transparent"},_hover:{bg:"transparent"},bg:"transparent",border:"1px solid",borderColor:"color",width:"50%",as:c.zx,rightIcon:(0,l.jsx)(q.v4,{}),children:nN.timeSlot}),(0,l.jsx)(x.qy,{bg:"bgColor",border:"1px solid",borderColor:"color",children:t_.map(function(e){return(0,l.jsx)(x.sN,{_focus:{bg:"transparent"},_active:{bg:"transparent"},_hover:{bg:"transparent"},onClick:function(){return nE(function(n){return(0,r.Z)((0,o.Z)({},n),{timeSlot:e})})},children:e},e)})})]})]}),(0,l.jsx)(c.zx,{_hover:{bg:"white",color:"brand.400",border:"1px solid",borderColor:"brand.400"},width:"fit-content",borderRadius:"6px",bg:"brand.400",border:"1px solid",borderColor:"brand.400",color:"#fff",fontSize:"16px",fontWeight:"700",padding:"16px 21px",onClick:function(){nE(function(e){return(0,r.Z)((0,o.Z)({},e),{open:!1})})},children:"Save"})]}):(0,l.jsx)(u.Kq,{spacing:4,width:"100%",children:(0,l.jsxs)(u.Ug,{width:"100%",justifyContent:"space-between",children:[(0,l.jsxs)(u.Ug,{spacing:1,children:[(0,l.jsx)(g.Ee,{src:"https://res.cloudinary.com/dcwq74lfg/image/upload/v1667305921/cure/clock.svg",width:"27px"}),(0,l.jsxs)(u.Ug,{children:[(0,l.jsx)(u.xv,{fontSize:"14px",children:"".concat(nN.date," :")})," ",(0,l.jsx)(u.xv,{fontWeight:"700",fontSize:"14px",children:"".concat(nN.timeSlot)})]})]}),(0,l.jsx)(u.xv,{onClick:function(){nE(function(e){return(0,r.Z)((0,o.Z)({},e),{open:!0})})},textDecor:"underline",cursor:"pointer",fontSize:"13px",children:"Change"})]})})})}):"",!n8&&(0,l.jsx)(k.Z,{border:!0,heading:"Summary",children:(0,l.jsx)(u.kC,{direction:{lg:"row",md:"row",sm:"row"},justify:"flex-start",wrap:"wrap",border:"0.5px solid #eee",px:"15",py:"15",gap:"15p
1x",children:null==nX?void 0:null===(ef=nX.bag)||void 0===ef?void 0:ef.map(function(e){var n;return"Bundles"!==e.category?(0,l.jsx)(M.Z,{showCoutToggle:!1,brand:null==e?void 0:e.brandName,title:e.title,quantity:e.quantity,category:e.category,price:e.priceExclusive,hubProductId:e.hubProductId,availableInventory:e.availableInventory,id:e.productId,productId:e.productId,attrs:null==e?void 0:e.attrs,product_group:null==e?void 0:e.product_group,img:(0,F.Z)(null==e?void 0:e.assets)},e.slug):null==e?void 0:null===(n=e.customer_bundles)||void 0===n?void 0:n.map(function(n,t){return(0,l.jsx)(M.Z,{showCoutToggle:!1,brand:null==e?void 0:e.brandName,title:e.title,quantity:e.quantity,category:e.category,price:parseInt(e.priceExclusive)/(null==e?void 0:e.customer_bundles.length),hubProductId:e.hubProductId,availableInventory:e.availableInventory,id:e.productId,productId:e.productId,attrs:null==e?void 0:e.attrs,product_group:null==e?void 0:e.product_group,img:(0,F.Z)(null==e?void 0:e.assets),bundleDetails:null==n?void 0:n.customer_bundle_details},n.customer_bundle_id)})})})})]}),(0,l.jsxs)(u.kC,{width:"100%",borderRadius:"12px",padding:"0 24px",direction:"column",flex:"1",rowGap:"15px",children:[tR&&(0,l.jsx)(u.Kq,{children:(0,l.jsxs)(m.bZ,{status:"info",children:[(0,l.jsx)(m.zM,{}),n4||"Order limit Exceed for Internaltional Orders"]})}),!n8&&(0,l.jsx)(u.xv,{width:"100%",textAlign:"center",variant:"pageTitle",children:"Order Summary"}),!n8&&(0,l.jsx)(_.M,(0,o.Z)({},nX)),(0,l.jsx)(B.Z,{showPromotions:eD}),(null==tq?void 0:tq.length)>0&&(0,l.jsx)(k.Z,{dir:"col",border:!0,heading:"Applied Promotions",children:(0,l.jsx)(u.kC,{gap:"12px",flexWrap:"wrap",width:"100%",marginTop:3,children:tq.map(function(e){return(0,l.jsxs)(f.Vp,{size:"md",padding:"6px",variant:"outline",border:"1px solid",borderColor:"brand.400",colorScheme:"brand.400",children:[(0,l.jsx)(u.xu,{borderRadius:"50%",padding:"3px 5px",bg:"brand.400",display:"flex",alignItems:"center",justifyContent:"center",marginRight:2,children:(0,l.jsx)(q.nQ,{width:"12px",height:"12px",color:"white"})}),(0,l.jsx)(f.Sn,{fontWeight:"600",fontSize:"12px",children:e}),!tO.includes(e)&&(0,l.jsx)(f.SD,{onClick:function(){t$(tq.filter(function(n){return e!==n}))}})]},e+2)})})}),tE&&(null==eb?void 0:eb.total)&&ew?(0,l.jsx)(u.xu,{width:"100%",borderRadius:"6px",bg:"secondary",padding:"16px 12px",children:(0,l.jsx)(u.Kq,{children:(0,l.jsx)(y.XZ,{onChange:function(e){n1(e.target.checked),e.target.checked?tQ(tN):tQ(null)},_focusVisible:{boxShadow:"none"},size:"lg",colorScheme:"brand",children:(0,l.jsx)(u.xv,{variant:"pageText",children:n$*tE>tN?"Pay using your ".concat(tN," reward points"):"use your ".concat(ej(n$)*tE," points out of ").concat(null==eb?void 0:eb.total," ")})})})}):"",(0,l.jsx)(c.zx,{variant:"primary",mx:"auto",width:"100%",mt:5,opacity:eG?".5":"1",onClick:tU,minW:"175px",isLoading:ny,isDisabled:ny||eG,loadingText:"Placing order...",children:void 0===eN?"Place Order":eN}),eP&&(0,l.jsx)(u.xv,{variant:"pageTextDim",children:(0,l.jsx)("p",{dangerouslySetInnerHTML:{__html:eP}})}),(0,l.jsx)(c.zx,{fontSize:"14px",textDecor:"underline",bg:"transparent",lineHeight:"21px",_hover:{bg:"transparent"},onClick:function(){if(n5){eI.push(n5);return}eI.push("/")},children:"Continue shopping"})]})]}),!!(null==tl?void 0:tl.length)&&tg&&(0,l.jsx)(K.Z,{isVisible:!!(null==tl?void 0:tl.length)&&tg,handleClose:tK,type:"age_proof",document:tl?tl[0]:"",handleCancel:tB}),!!(null==tu?void 0:tu.length)&&tw&&(0,l.jsx)(K.Z,{isVisible:!!(null==tu?void 0:tu.length)&&tw,handleClose:tK,type:"patientId",document:tu.length&&tu[0],handleCancel:tB}),eQ&&(0,l.jsx)(H.Z,{handleSuccess:t4,data:eJ,message:nF,isVisible:eQ,onClose:e1})]})," ",e3&&(0,l.jsx)(I.Z,{orderId:null==no?void 0:no.orderId,gateWayName:null==no?void 0:no.gateWayName,paymentGatewayId:null==no?void 0:no.gateWayId,isOpen:e3,onClose:e5}),e6&&(null==tf?void 0:tf.secruteKey)?(0,l.jsx)(Z.Z,{isOpen:e6,onClose:e7,stripeData:tf}):(0,l.jsx)(l.Fragment,{})]})},ei=!0;n.default=et},58634:function(e,n,t){"use strict";var i=t(26042),o=t(69396),r=t(85893),a=t(52494);t(67294);
1var l=function(e){return(0,r.jsxs)(a.JO,(0,o.Z)((0,i.Z)({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 214.98 36"},e),{children:[(0,r.jsx)("defs",{children:(0,r.jsx)("style",{})}),(0,r.jsx)("g",{id:"a"}),(0,r.jsx)("g",{id:"b",children:(0,r.jsx)("g",{id:"c",children:(0,r.jsxs)("g",{children:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M70.53,28.38v-1.13l.73-.9,.11-.39c-.28,.34-.62,.62-.96,.9-1.69,1.24-3.84,1.86-6.43,1.86-1.52,0-2.99-.28-4.4-.9s-2.65-1.41-3.72-2.48-1.92-2.31-2.48-3.72-.85-2.88-.85-4.4,.28-3.05,.85-4.46,1.47-2.71,2.54-3.78c1.02-1.07,2.26-1.97,3.67-2.54s2.88-.9,4.34-.85c2.65,0,4.85,.68,6.55,1.97,.28,.23,.62,.51,.85,.73l-.11-.34-.73-.9v-1.3h6.09V28.33h-6.04v.06h0Zm-6.04-17.27c-.79,0-1.58,.11-2.31,.45-.73,.28-1.41,.79-1.92,1.35-1.13,1.18-1.69,2.71-1.69,4.29s.62,3.16,1.69,4.29c.56,.56,1.18,1.02,1.92,1.35,.73,.28,1.52,.45,2.31,.45s1.64-.11,2.37-.45c.73-.28,1.47-.73,2.03-1.35,.56-.56,1.02-1.24,1.3-1.97s.45-1.52,.45-2.31-.17-1.58-.45-2.31-.73-1.41-1.35-1.97c-.56-.56-1.24-1.02-1.97-1.35-.79-.28-1.58-.45-2.37-.45Z"}),(0,r.jsx)("path",{d:"M101.34,23.53c-2.37,3.55-5.92,5.36-10.72,5.36-3.55,0-6.43-1.13-8.63-3.33-2.14-2.31-3.27-5.3-3.27-8.41s1.18-6.15,3.33-8.41c2.26-2.26,5.08-3.39,8.58-3.39s6.26,1.07,8.35,3.22,3.1,4.91,3.1,8.24v.9c0,.34-.06,.62-.06,.85v.39h-17.27c.28,1.35,1.02,2.6,2.09,3.44,1.13,.85,2.48,1.3,3.89,1.24,1.18,.06,2.31-.23,3.39-.73,1.07-.51,1.92-1.3,2.6-2.26l4.63,2.88Zm-10.72-13.15c-2.93,0-4.8,1.35-5.64,4.12h10.95c-.28-1.24-.96-2.31-1.92-3.05-.96-.73-2.14-1.13-3.39-1.07Z"}),(0,r.jsx)("path",{d:"M110.42,28.38h-6.15V5.81h6.09v2.43l-.34,1.07s.34-.51,.39-.51c.73-1.07,1.69-1.92,2.82-2.48s2.43-.9,3.67-.85v6.15c-2.2,0-3.78,.56-4.91,1.69-1.07,1.13-1.64,2.71-1.64,4.74l.06,10.33h0Z"}),(0,r.jsx)("path",{d:"M129.27,5.36c1.58-.06,3.22,.23,4.68,.85,1.47,.56,2.82,1.47,4.01,2.6,1.13,1.07,1.97,2.43,2.6,3.84s.9,2.99,.9,4.51-.28,3.1-.9,4.51-1.47,2.76-2.6,3.84c-2.37,2.2-5.47,3.39-8.63,3.39s-6.32-1.18-8.69-3.39c-1.07-1.07-1.97-2.43-2.54-3.84-.62-1.41-.9-2.99-.9-4.51s.28-3.1,.9-4.51,1.47-2.76,2.6-3.84c1.13-1.13,2.48-2.03,3.95-2.6,1.47-.62,3.05-.9,4.63-.85Zm4.34,7.34c-1.13-1.13-2.71-1.81-4.34-1.81s-3.16,.62-4.34,1.81c-.56,.56-1.02,1.3-1.3,2.03-.28,.79-.45,1.58-.39,2.43-.06,.85,.11,1.64,.39,2.43,.28,.79,.73,1.47,1.3,2.09,.56,.56,1.18,1.02,1.92,1.35,.73,.28,1.52,.45,2.31,.45,.85,0,1.64-.11,2.37-.45s1.47-.79,2.03-1.35c1.13-1.18,1.81-2.82,1.81-4.46,0-1.69-.62-3.27-1.75-4.51h0Z"}),(0,r.jsx)("path",{d:"M155.56,28.72c-1.47,.06-2.93-.23-4.34-.79-1.35-.56-2.6-1.41-3.67-2.43l-.39-.56,.39,1.07v9.99h-3.78V6.09l3.89-.39v2.93l-.34,.96,.34-.51c1.97-2.2,4.63-3.33,7.96-3.33,1.47,0,2.99,.28,4.34,.85,1.35,.56,2.6,1.41,3.67,2.48,2.14,2.14,3.33,5.08,3.33,8.13s-1.18,5.98-3.33,8.13c-1.02,1.07-2.26,1.92-3.67,2.48-1.41,.68-2.88,.96-4.4,.9Zm-.17-19.3c-2.09,0-4.12,.85-5.59,2.31s-2.31,3.5-2.31,5.59,.85,4.12,2.31,5.59,3.5,2.31,5.59,2.31c1.02,0,2.03-.17,2.99-.56,.96-.39,1.81-.96,2.54-1.75,1.41-1.52,2.2-3.5,2.2-5.59s-.79-4.06-2.2-5.59c-.73-.73-1.58-1.35-2.54-1.75-.96-.39-1.97-.62-2.99-.56Z"}),(0,r.jsx)("path",{d:"M188.29,28.38v-2.99c-2.03,2.26-4.68,3.33-8.01,3.33-1.47,0-2.99-.28-4.34-.85-1.35-.56-2.6-1.41-3.67-2.48-2.14-2.14-3.33-5.08-3.33-8.13s1.18-5.98,3.33-8.13c1.02-1.07,2.26-1.92,3.67-2.48s2.88-.85,4.34-.85c1.47-.06,2.99,.23,4.34,.79,1.35,.56,2.65,1.41,3.67,2.48v-2.93h3.84V28.44l-3.84-.06Zm-7.84-18.96c-1.02,0-2.03,.17-2.99,.56-.96,.39-1.81,.96-2.54,1.75-1.41,1.52-2.2,3.5-2.2,5.59s.79,4.06,2.2,5.59c.73,.73,1.58,1.35,2.54,1.75,.96,.39,1.97,.56,2.99,.56,2.09,0,4.12-.85,5.59-2.31s2.31-3.5,2.31-5.59-.85-4.12-2.31-5.59c-1.47-1.47-3.44-2.31-5.59-2.31h0Z"}),(0,r.jsx)("path",{d:"M214.98,6.09l-7.9,21.67c-1.07,2.93-2.37,5.02-3.89,6.32-1.58,1.3-3.61,1.92-6.09,1.92h-1.02v-3.5h1.02c2.71,0,4.74-1.52,6.04-4.51l-8.92-21.89h4.29l6.55,16.87,5.92-16.87h4.01Z"})]}),(0,r.jsx)("path",{class:"d",d:"M10.44,20.03h0c1.35-.73,24.04-13.49,24.6-13.77,.17-.17,.45-.23,.68-.34,.23-.11,.51-.06,.68,.06,.17,.17,.23,.39,.17,.62-.11,.17-.23,.39-.45,.51-.28,.17-24.09,15.07-25.11,15.69-.68,.45-1.3,.9-1.35,1.81-.06,.45,.17,.79,.45,1.13,.28,.23,.73,.39,1.13,.39s.79-.06,1.18-.06c1.18,0,2.43,.45,3.39,1.18,1.13,.96,2.09,2.09,2.76,3.39,.45,.73,1.18,2.09,2.2,2.09h.06l.34,.06c.85,.06,1.58-.73,2.09-1.47,2.26-2.93,21.5-28.61,22.29-29.91,.28-.45,.23-1.3-.56-1.41-.56-.11-36.73,10.61-38.37,11.12l-1.86,.62-.51,.17-.51,.17c-.34,.11-.68,.17-.96,.34-.73,.23-1.47,.51-2.09,.79-.17,.11-.39,.23-.51,.39-.17,.17-.17,.45-.17,.68,0,.51,.28,.9,.79,1.13,.68,.28,1.41,.56,2.09,.79,1.97,.73,3.72,1.92,4.97,3.55,.23,.34,.45,.62,.9,.68,.34,.06,.68,0,1.02-.11l.68-.28Z"})]})})})]}))};n.Z=l},85993:function(e,n,t){"use strict";var i=t(85893),o=t(80419),r=t(48641);t(9008);var a=t(67294);t(35119);var l=function(e){e.isOpen;var n=e.onClose,t=e.token,l=e.paymentGatewayId,d=e.onSucccess,s=void 0===d?function(){}:d,u=(0,o.pm)(),c=function(e){s(e)};return(0,a.useEffect)(function(){window.scrollTo({top:0,left:0,behavior:"instant"})}),(0,a.useEffect)(function(){t&&(document.getElementById("openBank"),new window.AerosyncConnect({token:t,id:"widget",iframeTitle:"Connect",width:"100%",height:"100%",style:{bgColor:"#000",opacity:".5"},environment:"production",onEvent:function(e,n){console.log("onEvent",e,n)},onLoad:function(e){console.log("onLoad",e)},onClose:function(e){console.log("onLoad",e),n()},onSuccess:function(e){c({user_id:e.user_id,user_password:e.user_password,paymentGatewayId:l})},onBankAdded:function(e){},onError:function(e){n(),u({title:"There is an issue with the payment using AeropAY. Please try again later. ",status:"info",position:"top-right",duration:3e3,isClosable:!0})}}).launch())},[t]),console.log("modal is calling"),(0,i.jsxs)(r.xu,{width:"100vw",height:"200vh",position:"absolute",top:"-140px",zIndex:"99999999999999",bg:"#fff",children:[(0,i.jsx)("div",{id:"widget"}),(0,i.jsx)("p",{id:"wrapData"})]})};n.Z=l},11637:function(e,n,t){"use strict";var i=t(47568),o=t(97582),r=t(85893),a=t(51469),l=t(80419),d=t(48641),s=t(76289),u=t(47741),c=t(82580),p=t(67294),v=t(74231),h=t(98087),g=t(35119),x=t(48046),m=t(58634),f=function(e){var n,t,f=e.isVisible,y=e.onClose,b=e.message,w=e.data,j=e.handleSuccess,C=void 0===j?function(){}:j,I=(0,p.useContext)(h.Z).cms,Z=(null===(t=null==I?void 0:null===(n=I.globals)||void 0===n?void 0:n.settings[0])||void 0===t?void 0:t.mode)||"light";(0,a.Sx)({sm:"4rem",lg:"7rem"});var _,S,k=(0,l.pm)(),P=(_=(0,i.Z)(function(e){var n,t;return(0,o.__generator)(this,function(i){switch(i.label){case 0:return n={user_pg_id:null==w?void 0:w.userId,phone_number:null==w?void 0:w.phone,paymentGatewayId:null==w?void 0:w.paymentGatewayId,code:"".concat(e)},[4,g.Z.confirmUserAeropay(n)];case 1:return(t=i.sent()).success?(y(),C()):k({title:null==t?void 0:t.error,status:"info",position:"top-right",duration:3e3,isClosable:!0}),[2]}})}),function(e){return _.apply(this,arguments)}),L=v.Ry().shape({oneTimeCode:v.Z_().required("enter you one time code").matches(/^[0-9]+$/,"Must be only digits").min(6,"Must be exactly 6 digits").max(6,"Must be exactly 6 digits")});return(0,r.jsx)(d.xu,{height:"100vh",children:(0,r.jsxs)(s.u_,{isOpen:f,onClose:y,closeOnOverlayClick:!0,size:"lg",children:[(0,r.jsx)(s.ZA,{backdropFilter:"auto",backdropBlur:"7px"}),(0,r.jsxs)(s.hz,{mx:"4",children:[(0,r.jsx)(s.ol,{}),(0,r.jsx)(s.fe,{padding:"1rem 12px",borderRadius:"12px",bg:"secondary",color:"dark"===Z?"#fff":"#000",children:(0,r.jsxs)(d.Kq,{padding:{sm:"12px 16px",md:"21px 16px",lg:"36px 16px"},spacing:{base:"8",md:"8"},width:"100%",alignItems:"center",children:[(0,r.jsx)(m.Z,{width:"200px"}),(0,r.jsx)(d.xv,{fontSize:"14px",textAlign:"center",variant:"detail",children:(void 0===b?"":b)||"You've previously used AeroPay to pay another business using this phone number. Please verify your identity by entering the pin sent to your email."}),(0,r.jsx)(c.J9,{initialValues:{oneTimeCode:""},onSubmit:(S=(0,i.Z)(function(e){return(0,o.__generator)(this,function(n){switch(n.label){case 0:return[4,P(null==e?void 0:e.oneTimeCode)];case 1:return n.sent(),[2]}})}),function(e){return S.apply(this,arguments)}),validationSchema:L,children:function(e){var n=e.handleSubmit,t=e.isSubmitting;return(0,r.jsx)("form",{style:{width:"100%"},onSubmit:n,children:(0,r.jsxs)(d.gC,{width:"100%",spacing:5,children:[(0,r.jsx)(x.Z,{label:"",variant:"formInput",placeholder:"One time code",type:"number",pattern:"\\\\d*",autocomplete:"one-time-code",name:"oneTimeCode",isDisabled:t}),(0,r.jsx)(u.zx,{height:"42px",width:"100%",variant:"primary",type:"submit",isLoading:t,isDisabled:t,loadingText:"Verifying...",children:"Submit"})]})})}})]})})]})]})})};n.Z=f}},function(e){e.O(0,[8074,9052,8806,8491,4620,2344,250,2753,5239,3550,8348,9774,2888,179],function(){return e(e.s=386)}),_N_E=e.O()}]);

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.