PageSourceSearch

https://regalflowers.com.ng/_next/static/chunks/pages/checkout-d0479c56263df641.js

js regalflowers.com.ng collected 2026-09-29 15:35:57 UTC 111,142 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{7250:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout",function(){return s(2982)}])},2774:function(e,n,s){"use strict";var r=s(5893),a=s(7294),i=s(6847),t=s.n(i);n.Z=function(e){var n=(0,a.useState)(""),s=n[0],i=n[1],c=e.name,o=e.label,l=e.onChange,d=e.defaultChecked,u=e.bordered,m=e.checked,p=e.title,h=e.subtitle,v=e.responsive,x=e.blue,f=e.inline,j=e.type,N=e.disabled;(0,a.useEffect)((function(){var e="radio".concat(c).concat(o||p).replace(/\W/g,"");i(e)}),[c,o,p]);return(0,r.jsxs)("span",{children:[(0,r.jsx)("input",{name:c,type:"radio",onChange:function(e){var n=e.target.checked;l&&l(n)},className:[t().radio,x?t()["radio-blue"]:" "].join(" "),defaultChecked:d,checked:m,id:s||void 0,disabled:N}),(0,r.jsxs)("label",{className:[t().wrapper,u&&t().bordered,v&&t().responsive,f&&t().inline,t()[null!==j&&void 0!==j?j:"default"],N&&t().disabled].join(" "),htmlFor:s,children:[(0,r.jsx)("span",{className:t()["radio-icon"]}),(p||h)&&(0,r.jsxs)("div",{className:t().right,children:[p&&(0,r.jsx)("strong",{className:t().title,children:p}),h&&(0,r.jsx)("span",{className:t().subtitle,children:h})]}),o&&(0,r.jsx)("span",{className:t().label,children:o})]})]})}},2982:function(e,n,s){"use strict";s.r(n),s.d(n,{__N_SSG:function(){return pe},default:function(){return he}});var r=s(7568),a=s(4924),i=s(6042),t=s(9396),c=s(253),o=s(9637),l=s(92),d=s(5893),u=s(7484),m=s.n(u),p=s(1664),h=s.n(p),v=s(591),x=s(1163),f=s(7294),j=s(3419),N=s(4355),g=s(3325),y=s(2600),b=s(2774),_=s(9791),k=s(6026),C=s(2159),w=s(3660),Z=s(5632),P=s(9168),S=s(306),M=s.n(S),D=s(1010),A=s(584),E=s(6276),T=function(){var e=(0,r.Z)((function(){var e;return(0,l.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,A.$.get("/v1/firebase/purposes")];case 1:return[2,{error:!1,data:n.sent().data}];case 2:return e=n.sent(),[2,{error:!0,message:(0,E.e)(e),data:null}];case 3:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=(0,r.Z)((function(e,n){var s,r;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,A.$.post("/v1/payments/paystack/verify?ref=".concat(e,"&business=").concat(k.kR),{couponCode:n})];case 1:return[2,{error:!(s=a.sent()).data,message:s.message,data:s.data,status:s.status}];case 2:return r=a.sent(),console.error("Unable to verify paystack payment: ",r),[2,{error:!0,message:(0,E.e)(r),data:null}];case 3:return[2]}}))}));return function(n,s){return e.apply(this,arguments)}}(),O=function(){var e=(0,r.Z)((function(e,n,s){var r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,A.$.post("/v1/payments/flutterwave/verify?transactionId=".concat(e,"&business=").concat(k.kR,"&orderId=").concat(s),{couponCode:n})];case 1:return[2,{error:!(r=i.sent()).data,message:r.message,data:r.data,status:r.status}];case 2:return a=i.sent(),console.error("Unable to verify flutterwave payment: ",a),[2,{error:!0,message:(0,E.e)(a),data:null}];case 3:return[2]}}
1))}));return function(n,s,r){return e.apply(this,arguments)}}(),U=function(){var e=(0,r.Z)((function(e,n,s){var r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,A.$.post("/v1/payments/monnify/verify?ref=".concat(e,"&business=").concat(k.kR,"&orderId=").concat(n),{couponCode:s})];case 1:return[2,{error:!(r=i.sent()).data,message:r.message,data:r.data,status:r.status}];case 2:return a=i.sent(),console.error("Unable to verify monnify payment: ",a),[2,{error:!0,message:(0,E.e)(a),data:null}];case 3:return[2]}}))}));return function(n,s,r){return e.apply(this,arguments)}}(),L=function(){var e=(0,r.Z)((function(e,n,s){var r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,A.$.post("/v1/payments/paypal/verify?ref=".concat(e,"&business=").concat(k.kR,"&orderId=").concat(n),{couponCode:s})];case 1:return[2,{error:!(r=i.sent()).data,message:r.message,data:r.data,status:r.status}];case 2:return a=i.sent(),console.error("Unable to verify paypal payment: ",a),[2,{error:!0,message:(0,E.e)(a),data:null}];case 3:return[2]}}
1))}));return function(n,s,r){return e.apply(this,arguments)}}(),R=function(){var e=(0,r.Z)((function(e){var n,s,r,a,i,t,c,o;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:n=e.orderId,s=e.amount,r=e.accountName,a=e.currency,i=e.referenceNumber,t=e.couponCode,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,A.$.post("/v1/payments/manual-transfer/".concat(n),{amount:s,accountName:r,referenceNumber:i,currency:a,business:k.kR,couponCode:t})];case 2:return[2,{error:!(c=l.sent()).data,message:c.message,data:c.data,status:c.status}];case 3:return o=l.sent(),console.error("Unable to send Transfer Details ",o),[2,{error:!0,message:(0,E.e)(o),data:null}];case 4:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),B=function(){var e,n=(0,f.useState)(!1),s=n[0],r=n[1],a=(0,f.useState)(""),i=a[0],t=a[1];return(0,f.useEffect)((function(){if(!window.MonnifySDK){var e=function(){r(!0)},n=document.createElement("script");return n.setAttribute("src","https://sdk.monnify.com/plugin/monnify.js"),document.body.appendChild(n),n.addEventListener("load",e),n.addEventListener("error",(function(e){t(e.message)})),function(){n.removeEventListener("load",e)}}r(!0)}),[]),{isMonnifyReady:s,initializeMonnify:(null===(e=window.MonnifySDK)||void 0===e?void 0:e.initialize)||function(){return console.warn("Monnify is not yet initialized")},initErrorMessage:i||void 0}},q=s(6308),Y=s(4919),z=s(5021),W=s(5472),K=s(629),F=s(4915),H=s(8030),V=s(9551),$=s(7904),G=s(4810),Q=s(987),X=s(4261),J=s(7237),ee=s(2655),ne=s(9010),se=s(5487),re=s(415),ae={senderName:"",senderEmail:"",senderPhoneNumber:"",senderPassword:"",freeAccount:!0,coupon:"",deliveryMethod:"pick-up",state:"lagos",pickUpLocation:"",recipientName:"",deliveryDate:null,recipientPhoneNumber:"",recipientPhoneNumberAlt:"",shouldSaveAddress:!1,residenceType:"",recipientHomeAddress:"",additionalInfo:"",message:"",purpose:"",cardName:"",cardExpiry:"",cardNumber:"",cardCVV:"",recipientCountryCode:"+234",senderCountryCode:"",recipientCountryCodeAlt:"+234",zone:"",currency:"NGN",deliveryInstruction:"",deliveryZone:"WEB",pickupState:"",despatchFrom:"Unselected"},ie=[{tabTitle:"Delivery",TabKey:1},{tabTitle:"Payment",TabKey:2},{tabTitle:"Done",TabKey:3}],te=["nairaTransfer","natwestTransfer","bitcoinTransfer","USDTransfer"],ce=[],oe=function(e){var n,s=e.visible,a=e.cancel,i=e.order,t=e.onComplete,c=e.total,o=(0,f.useContext)(C.Z),u=o.currency,m=o.notify,p=o.orderId,h=o.coupon,v=o.setCoupon,x=o.currentStage,j=(0,f.useRef)(u),N=(0,f.useRef)(c);j.current=u,N.current=c;var g=function(){var e=(0,r.Z)((function(e,n){var s,r,c,o,d,v,x,f;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return[4,null===(s=n.order)||void 0===s?void 0:s.capture()];case 1:return null===(r=l.sent())||void 0===r||r.status,"COMPLETED"!==(null===r||void 0===r?void 0:r.status)?[3,3]:[4,L(e.orderID,p,h)];case 2:c=l.sent(),o=c.error,d=c.message,v=c.status,o?m("error","Unable to verify paypal payment: ".concat(d)):214===v&&d?(m("info","Order is successful, but not that: ".concat(d)),i&&(0,Z.Qc)({order:i,currencyCode:u.name,coupon:null===(x=i.coupon)||void 0===x?void 0:x.name,paymentMethod:"payPal"}),t(),null===a||void 0===a||a()):(m("success","Successfully paid for order"),i&&(0,Z.Qc)({order:i,currencyCode:u.name,coupon:null===(f=i.coupon)||void 0===f?void 0:f.name,paymentMethod:"payPal"}),t(),$.Z.remove($.m.COUPON),null===a||void 0===a||a()),l.label=3;case 3:return[2]}}
1))}));return function(n,s){return e.apply(this,arguments)}}(),y=(0,f.useMemo)((function(){var e;return null===(e=k.X_.find((function(e){return"payPal"===e.paymentName})))||void 0===e?void 0:e.supportedCurrencies.includes(u.name)}),[u]),b=function(){var e=(0,r.Z)((function(){return(0,l.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,w.QZ)({orderId:null===i||void 0===i?void 0:i.id,currency:u.name,paymentMethod:"payPal"})];case 1:return e.sent(),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){if(null===i||void 0===i?void 0:i.coupon){var e=$.Z.get($.m.COUPON);e&&2===x&&v(e)}}),[v,x]),(0,d.jsxs)(Y.Z,{visible:s,cancel:function(){b(),null===a||void 0===a||a()},className:"scrollable",children:[(0,d.jsx)("h1",{className:"title thin margin-bottom spaced",children:"Complete Paypal Payment"}),y&&(0,d.jsx)(z.Vv,{options:{"client-id":"ARi9Bngakvoc2ztdvosWS4Oq3m3qxvyEQvu8spE7EDuDeU8CbGbWAMn8UQXdpLW4aBf5pNBO22ERyPa2",currency:null===(n=j.current)||void 0===n?void 0:n.name},children:(0,d.jsx)(le,{handleApprove:g,handleSessionCreate:function(e,n){var s;return n.order.create({purchase_units:[{amount:{value:String(Math.ceil((N.current||0)/((null===(s=j.current)||void 0===s?void 0:s.conversionRate)||1)).toFixed(2))},reference_id:"".concat(null===i||void 0===i?void 0:i.fullOrderId,"-").concat(null===i||void 0===i?void 0:i.id)}]})}})})]})},le=function(e){var n=e.handleApprove,s=e.handleSessionCreate,r=(0,c.Z)((0,z.Up)(),2),a=r[0],o=a.options,l=a.isPending,u=r[1],m=(0,f.useContext)(C.Z).currency;return(0,f.useEffect)((function(){u({type:"resetOptions",value:(0,t.Z)((0,i.Z)({},o),{currency:m.name})})}),[m]),l?(0,d.jsx)("div",{className:M().loader,children:(0,d.jsx)("img",{src:"/images/spinner.svg",alt:"loader",className:M().icon})}):(0,d.jsx)(z.ch,{style:{layout:"vertical",shape:"pill",label:"pay"},className:"vertical-margin spaced",createOrder:s,onApprove:n})},de=function(e){var n=e.visible,s=e.cancel,a=void 0===s?function(){}:s,i=e.transferName,t=e.setShowPaymentDetails,c=(0,f.useState)(""),o=c[0],u=c[1],m=(0,f.useContext)(C.Z),p=m.currency,h=m.order,v=m.setCoupon,N=m.currentStage,g=(0,D.Z)(),y=(0,x.useRouter)().query.orderId,b=function(){var e=(0,r.Z)((function(){return(0,l.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,w.QZ)({orderId:y,currency:p.name,paymentMethod:i})];case 1:return e.sent(),[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){n&&b()}),[n]),(0,f.useEffect)((function(){if(null===h||void 0===h?void 0:h.coupon){var e=$.Z.get($.m.COUPON);e&&2===N&&v(e)}}),[v,N]);var _=function(){var e=(0,r.Z)((function(e){return(0,l.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,navigator.clipboard.writeText(e)];case 1:return n.sent(),u(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),Z=function(){var e,n=(null===h||void 0===h?void 0:h.amount)||0;(null===h||void 0===h?void 0:h.amount)&&(n=h.amount-((null===(e=h.coupon)||void 0===e?void 0:e.discountedAmount)||0));return n},P=function(e){return(0,d.jsx)("button",{onClick:function(){return _(e)},className:"flex spaced margin-bottom-medium ".concat(o===e?"copied":""),children:(0,d.jsx)("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"generic-icon copy-icon ".concat(o===e?"active":""),children:(0,d.jsx)("path",{d:"M27 25.4118V6.88235C27 6.46113 26.8327 6.05715 26.5348 5.7593C26.237 5.46145 25.833 5.29412 25.4118 5.29412C24.9905 5.29412 24.5866 5.46145 24.2887 5.7593C23.9909 6.05715 23.8235 6.46113 23.8235 6.88235V23.8235H6.88235C6.46113 23.8235 6.05715 23.9909 5.7593 24.2887C5.46145 24.5866 5.29412 24.9905 5.29412 25.4118C5.29412 25.833 5.46145 26.237 5.7593 26.5348C6.05715 26.8327 6.46113 27 6.88235 27H25.4118C25.833 27 26.237 26.8327 26.5348 26.5348C26.8327 26.237 27 25.833 27 25.4118ZM21.7059 20.1176V1.58823C21.7059 1.16701 21.5386 0.763035 21.2407 0.465183C20.9428 0.167332 20.5389 -1.90735e-06 20.1176 -1.90735e-06H1.58824C1.16701 -1.90735e-06 0.763035 0.167332 0.465183 0.465183C0.167332 0.763035 0 1.16701 0 1.58823V20.1176C0 20.5389 0.167332 20.9428 0.465183 21.2407C0.763035 21.5386 1.16701 21.7059 1.58824 21.7059H20.1176C20.5389 21.7059 20.9428 21.5386 21.2407 21.2407C21.5386 20.9428 21.7059 20.5389 21.7059 20.1176ZM18.5294 18.5294H3.17647V3.17647H18.5294V18.5294Z",fill:"currentColor"})})})};return(0,d.jsxs)(Y.Z,{visible:n,cancel:a,className:["scrollable",M()["details-wrapper"]].join(" "),allowClickOutside:!1,children:[(0,d.jsx)("h1",{className:"title margin-bottom spaced",children:"Transfer Details"}),(0,d.jsxs)("p",{className:"margin-bottom spaced normal-text",children:[!["bitcoinTransfer","USDTransfer"].includes(i||"")&&(0,d.jsxs)("span",{children:["Please include your"," ",(0,d.jsxs)("strong",{className:"checkout_order-number__6tLEv",children:["Order No:"," ",(0,d.jsxs)("strong",{className:"primary-color",children:[null===h||void 0===h?void 0:h.orderID,"W"]})," "]})," ","as the payment reference/remark where possible. ",(0,d.jsx)("br",{})," "]}),"mobile"===g&&(0,d.jsx)("br",{})," ",(0,d.jsxs)("span",{className:"flex spaced center-align info ",children:[(0,d.jsx)("img",{src:"/icons/info.svg",alt:"info-icon",className:" generic-icon medium"}),(0,d.jsxs)("b",{children:[" ","After payment, don't forget to click 'I have made the transfer' in order to notify us."]})]})]}),(0,d.jsxs)("div",{className:"vertical-margin spaced normal-text",children:["nairaTransfer"===i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"",children:"Amount:"}),(0,d.jsx)("span",{children:(0,d.jsx)("b",{children:(0,W.j$)(Z(),p)})})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Bank Name:"}),(0,d.jsx)("span",{children:k.Bm.bankName})]}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"Account Name:"}),(0,d.jsx)("span",{children:k.Bm.accountName})]}),(0,d.jsxs)("div",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Account Number:"}),(0,d.jsxs)("div",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:k.Bm.accountNumber}),P(k.Bm.accountNumber)]})]})]}),"bitcoinTransfer"===i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"",children:"Amount:"}),(0,d.jsx)("span",{children:(0,d.jsx)("b",{children:(0,W.j$)(Z()||0,p)})})]}),(0,d.jsxs)("div",{className:[M().details,M().bitcoinTransfer].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"Bitcoins Wallet ID:"}),(0,d.jsxs)("div",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:"12W9vKCcCbKFmYr9bYfbd9SqVvhyK5j4E1"}),P("12W9vKCcCbKFmYr9bYfbd9SqVvhyK5j4E1")]})]})]}),"USDTransfer"===i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("strong",{className:"primary-color",children:"Make payment using any of the two 
1USDT Payments (Binance) methods below:"}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"",children:"Amount:"}),(0,d.jsx)("span",{children:(0,d.jsx)("b",{children:(0,W.j$)(Z()||0,p)})})]}),(0,d.jsxs)("div",{className:[M().details,M().bitcoinTransfer].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"USDT TRC20 Only:"}),(0,d.jsxs)("div",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:k.qH}),P(k.qH)]})]}),(0,d.jsxs)("div",{className:[M().details,M().bitcoinTransfer].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"USDT BEP20 Only:"}),(0,d.jsxs)("div",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:k.rT}),P(k.rT)]})]})]}),"natwestTransfer"===i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"",children:"Amount:"}),(0,d.jsx)("span",{children:(0,d.jsx)("b",{children:(0,W.j$)(Z()||0,p)})})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Bank:"}),(0,d.jsx)("span",{children:"Natwest Bank"})]}),(0,d.jsxs)("div",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"Account Number:"}),(0,d.jsxs)("div",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:"24323462"}),P("24323462")]})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Account Name:"}),(0,d.jsx)("span",{children:"Olaotan Oladitan"})]}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"SORT CODE:"}),(0,d.jsx)("span",{children:"601907"})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"IBAN:"}),(0,d.jsx)("span",{children:"GB75NWBK60190724323470"})]}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"BIC:"}),(0,d.jsx)("span",{children:"NWBKGB2L"})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Bank Address:"}),(0,d.jsx)("span",{className:"normal-text",children:"Natwest Sheffield University, 243, Glossop Road, Sheffield, South Yorkshire. Post Code: S10 2GZ"})]})]}),"leadBankTransfer"===i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"question",children:"Note: USD Bank transfers to this account take 1 to 2 days. Do not use this payment method if your order requires same/next\xa0day\xa0delivery"}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"",children:"Amount:"}),(0,d.jsx)("span",{children:(0,d.jsx)("b",{children:(0,W.j$)(Z()||0,p)})})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Bank Name:"}),(0,d.jsx)("span",{children:"Lead Bank"})]}),(0,d.jsxs)("div",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"Account Number:"}),(0,d.jsxs)("div",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:"211191921684"}),P("211191921684")]})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Account Name:"}),(0,d.jsx)("span",{children:"Olaotan Oladitan"})]}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"Wire Routing:"}),(0,d.jsxs)("span",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:"101019644"}),P("101019644")]})]}),(0,d.jsxs)("p",{className:[M().details,"vertical-margin spaced"].join(" "),children:[(0,d.jsx)("strong",{className:"primary-color",children:"ACH Routing:"}),(0,d.jsxs)("span",{className:"flex spaced center-align",children:[(0,d.jsx)("span",{children:"101019644"}),P("101019644")]})]}),(0,d.jsxs)("p",{className:M().details,children:[(0,d.jsx)("strong",{className:"primary-color",children:"Bank Address:"}),(0,d.jsx)("span",{className:"normal-text",children:"1801 Main St., Kansas City, MO 64108"})]})]})]}),(0,d.jsx)(j.Z,{onClick:function(){a(),t()},className:"half-width center",children:"I have made the transfer"}),(0,d.jsxs)("p",{className:"margin-top spaced text-center",children:["For any issues/enquiries, please email"," ",(0,d.jsx)("a",{href:"mailto:".concat(k.ur),className:"underline blue",children:k.ur})," ","or ",(0,d.jsx)("br",{}),"call/text/whatsapp +234 9112000300, +234 7010006665, +234 7010006664"]})]})},ue={amount:0,accountName:"",referenceNumber:""},me=function(e){var n=e.visible,s=e.cancel,c=void 0===s?function(){}:s,o=e.onCompleted,u=e.transferName,m=(0,f.useState)(ue),p=m[0],h=m[1],v=(0,f.useState)(!1),N=v[0],g=v[1],b=(0,f.useContext)(C.Z),_=b.currency,k=b.notify,w=b.coupon,P=b.setCoupon,S=b.currentStage,D=b.order,A=(0,x.useRouter)().query.orderId,E=["bitcoinTransfer","USDTransfer"],T=function(e,n){h((0,t.Z)((0,i.Z)({},p),(0,a.Z)({},e,n)))},I=function(){var e=(0,r.Z)((function(e){var n,s,r,a,d,m;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return e.preventDefault(),0===p.amount?[2,k("error","Amount Sent is required")]:(g(!0),[4,R((0,t.Z)((0,i.Z)({},p),{currency:_.name,orderId:A,amount:(0,W.Dx)(p.amount),couponCode:w}))]);case 1:return n=l.sent(),s=n.error,r=n.message,a=n.status,g(!1),s?k("error","Unable to send Transfer Details: ".concat(r)):214===a&&r?(k("info","Order is successful, but note that: ".concat(r)),D&&(0,Z.Qc)({order:D,currencyCode:_.name,coupon:null===(d=D.coupon)||void 0===d?void 0:d.name,paymentMethod:u||"manualTransfer"}),o(),c()):(k("success","Transfer Details sent successfully"),$.Z.remove($.m.COUPON),D&&(0,Z.Qc)({order:D,currencyCode:_.name,coupon:null===(m=D.coupon)||void 0===m?void 0:m.name,paymentMethod:u||"manualTransfer"}),o(),c()),[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){if(null===D||void 0===D?void 0:D.coupon){var e=$.Z.get($.m.COUPON);e&&2===S&&P(e)}}),[P,S]),(0,d.jsxs)(Y.Z,{visible:n,cancel:c,className:["scrollable",M()["details-wrapper"]].join(" "),allowClickOutside:!1,children:[(0,d.jsx)("h1",{className:"title margin-bottom spaced",children:"Details used to make payment"}),(0,d.jsxs)("form",{onSubmit:I,children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Amount Sent"}),(0,d.jsx)(y.Z,{placeholder:"Amount Sent",value:p.amount,onChange:function(e){return T("amount",e)}
1,dimmed:!0,required:!0,responsive:!0,number:!0})]}),!E.includes(u||"")&&(0,d.jsxs)("div",{className:"input-group vertical-margin spaced",children:[(0,d.jsx)("span",{className:"question",children:"Account Name"}),(0,d.jsx)(y.Z,{placeholder:"Account Name",value:p.accountName,onChange:function(e){return T("accountName",e)},dimmed:!0,required:!0,responsive:!0})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsxs)("span",{className:"question",children:[" ",E.includes(u||"")?"Reference Number (if available)":"30digit Reference (if available)"," "]}),(0,d.jsx)(y.Z,{placeholder:"30digit Reference",value:p.referenceNumber,onChange:function(e){return T("referenceNumber",e)},dimmed:!0,responsive:!0})]}),(0,d.jsx)(j.Z,{buttonType:"submit",className:"half-width center",loading:N,children:"Submit"})]})]})},pe=!0,he=function(){var e,n,s,u,p,S,A,E,L,R,z=(0,f.useState)(ae),le=z[0],ue=z[1],pe=(0,f.useState)(!1),he=pe[0],ve=pe[1],xe=(0,f.useState)(!1),fe=xe[0],je=xe[1],Ne=(0,f.useState)(!1),ge=Ne[0],ye=Ne[1],be=(0,f.useState)(!1),_e=be[0],ke=be[1],Ce=(0,f.useState)(!1),we=Ce[0],Ze=Ce[1],Pe=(0,f.useState)(!1),Se=Pe[0],Me=Pe[1],De=(0,f.useState)(!1),Ae=De[0],Ee=De[1],Te=(0,f.useState)(!1),Ie=Te[0],Oe=Te[1],Ue=(0,f.useState)(null),Le=Ue[0],Re=Ue[1],Be=(0,f.useState)(!1),qe=Be[0],Ye=Be[1],ze=(0,f.useState)(),We=ze[0],Ke=ze[1],Fe=(0,f.useState)("sender-info"),He=Fe[0],Ve=Fe[1],$e=(0,f.useState)([]),Ge=$e[0],Qe=$e[1],Xe=(0,f.useState)([]),Je=Xe[0],en=Xe[1],nn=(0,f.useState)(null),sn=nn[0],rn=nn[1],an=(0,f.useState)([]),tn=an[0],cn=an[1],on=(0,f.useState)(!1),ln=on[0],dn=on[1],un=(0,f.useState)(!1),mn=un[0],pn=un[1],hn=(0,f.useState)(""),vn=hn[0],xn=hn[1],fn=(0,f.useState)(!1),jn=fn[0],Nn=fn[1],gn=(0,f.useState)(!1),yn=gn[0],bn=gn[1],_n=(0,f.useState)(!1),kn=_n[0],Cn=_n[1],wn=(0,f.useState)(!1),Zn=wn[0],Pn=wn[1],Sn=(0,f.useContext)(C.Z),Mn=Sn.user,Dn=Sn.setUser,An=Sn.currentStage,En=Sn.setCurrentStage,Tn=Sn.currency,In=Sn.setCurrency,On=Sn.allCurrencies,Un=Sn.notify,Ln=Sn.deliveryDate,Rn=Sn.setDeliveryDate,Bn=Sn.setShouldShowCart,qn=Sn.redirect,Yn=Sn.setShouldShowAuthDropdown,zn=Sn.order,Wn=Sn.setOrder,Kn=Sn.confirm,Fn=Sn.setCartItems,Hn=Sn.setOrderId,Vn=Sn.orderLoading,$n=Sn.setCoupon,Gn=Sn.coupon,Qn=Sn.cmsSettings,Xn=(0,re.Z)(),Jn=Xn.countdown,es=Xn.startCountdown,ns=(0,D.Z)(),ss=/but not seen yet/i.test((null===zn||void 0===zn?void 0:zn.paymentStatus)||""),rs={__html:le.message},as=function(){var e=(0,r.Z)((function(e){var n,s,r,a,c;return(0,l.__generator)(this,(function(o){switch(o.label){case 0:return Mn?(n=(null===Mn||void 0===Mn?void 0:Mn.recipients).filter((function(n){return n.id!==e})),[4,(0,ee.aO)(e)]):[3,2];case 1:if(s=o.sent(),r=s.data,a=s.error,c=s.message,a)return Un("error",c),[2];r&&(rn(null),Un("success","Successfully deleted recipient"),Dn((0,t.Z)((0,i.Z)({},r),{recipients:n}))),o.label=2;case 2:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),is=function(e){Kn({title:"Delete Recipient",body:"Are you sure you want to delete this recipient?",onOk:function(){return as(e)},okText:"Delete",cancelText:"Cancel"})},ts=(0,f.useMemo)((function(){return(null===zn||void 0===zn?void 0:zn.orderProducts.reduce((function(e,n){return e+n.price*n.quantity}),0))||0}),[null===zn||void 0===zn?void 0:zn.orderProducts]),cs=function(){var e=(0,G.W6)();(null===zn||void 0===zn?void 0:zn.id)&&e.length&&(0,Q.g)({orderId:zn.id,auditTrail:e}),(0,G.Gv)(),je(!0),Fn([]),En(3),Hn(""),Rn(null),$.Z.remove($.m.ORDER_ID),$.Z.remove($.m.CART_ITEMS),$.Z.remove($.m.DELIVERY_DATE)},os=(new Date).getTime().toString(),ls="".concat(null===zn||void 0===zn?void 0:zn.fullOrderId,"-").concat(null===zn||void 0===zn?void 0:zn.id,"-").concat(os),ds=function(){var e=(0,r.Z)((function(){var e,n,s,r;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return ye(!0),[4,(0,w.Wm)(ws)];case 1:return e=a.sent(),n=e.data,s=e.error,r=e.message,n&&(Wn(n),ye(!1),Un("success","Coupon removed"),$.Z.remove($.m.COUPON)),s&&(ye(!1),Un("error",r)),[2]}}))}));return function(){return e.apply(this,arguments)}}(),us=(0,f.useMemo)((function(){var e;return(null===Qn||void 0===Qn||null===(e=Qn.alertSettings)||void 0===e?void 0:e.paymentAlerts.filter((function(e){var n;return!(null===(n=e.currencies)||void 0===n?void 0:n.length)||e.currencies.includes(Tn.name)})).map((function(e){return(0,t.Z)((0,i.Z)({},e),{content:(0,W.EY)(e.content,Tn)})})))||[]}),[Qn,Tn]),ms=(0,f.useMemo)((function(){var e=(null===Ln||void 0===Ln?void 0:Ln.format(ne.tx))||"",n=(null===Qn||void 0===Qn?void 0:Qn.deliverySettings.overrideConfigs.find((function(n){return(n.overridenDates||[]).includes(e)})))||(null===Qn||void 0===Qn?void 0:Qn.deliverySettings.baseConfig);console.log("Current Delivery Config:",n);var s=le.state&&le.zone?null===n||void 0===n?void 0:n.stateDeliveryZones.find((function(e){return e.state===le.state&&e.title===le.zone})):null,r=ts?null===s||void 0===s?void 0:s.priceBreakPoints.filter((function(e){return ts>=e.triggerPrice})).sort((function(e,n){return e.amount-n.amount}))[0]:null,a=new Map;((null===n||void 0===n?void 0:n.stateDeliveryZones)||[]).forEach((function(e){e.state&&!a.has(e.state)&&a.set(e.state,{value:e.state,label:e.stateTitle})}));var c=Array.from(a.values());return{currentDeliveryConfig:(0,t.Z)((0,i.Z)({},n),{infoTextConfigs:n.infoTextConfigs.map((function(e){return(0,t.Z)((0,i.Z)({},e),{infoText:(0,W.EY)(e.infoText,Tn)})})),minAmountInfoText:(0,W.EY)(n.minAmountInfoText,Tn)}),currentStateDeliveryZone:s?(0,t.Z)((0,i.Z)({},s),{priceBreakPoints:null===s||void 0===s?void 0:s.priceBreakPoints.map((function(e){return(0,t.Z)((0,i.Z)({},e),{infoText:(0,W.EY)(e.infoText,Tn)})}))}):null,currentPriceBreakPoint:r,deliveryStates:c}}),[Ln,Qn,le.state,le.zone,ts,Tn]),ps=ms.currentDeliveryConfig,hs=ms.currentStateDeliveryZone,vs=ms.currentPriceBreakPoint,xs=ms.deliveryStates,fs=(null===ps||void 0===ps?void 0:ps.stateDeliveryZones.filter((function(e){return le.state===e.state})).map((function(e){return{label:(0,d.jsxs)("div",{children:[(0,d.jsx)("strong",{children:e.title}),(0,d.jsx)("div",{dangerouslySetInnerHTML:{__html:e.subtitle}})]}),value:e.title}})))||[],js=(0,f.useMemo)((function(){var e;return(null===zn||void 0===zn||null===(e=zn.coupon)||void 0===e?void 0:e.discountedAmount)?ts+((null===vs||void 0===vs?void 0:vs.amount)||0)-zn.coupon.discountedAmount:ts+((null===vs||void 0===vs?void 0:vs.amount)||0)}),[null===zn||void 0===zn?void 0:zn.orderProducts,vs,null===zn||void 0===zn||null===(e=zn.coupon)||void 0===e?void 0:e.discountedAmount]),Ns=(0,f.useMemo)((function(){var e;return(null===zn||void 0===zn||null===(e=zn.orderProducts)||void 0===e?void 0:e.map((function(e){return{productId:e.id,name:e.name,price:e.price,quantity:e.quantity,image:e.image,size:e.size,design:null,SKU:e.SKU||"",description:e.description}})))||[]}),[null===zn||void 0===zn?void 0:zn.orderProducts]),gs={reference:ls,email:le.senderEmail||k.lq,amount:100*Math.ceil((js||0)/Tn.conversionRate),currency:"GBP"===Tn.name?void 0:Tn.name,publicKey:"pk_live_1077b3af566a8ecdaaef2f5cb48b3486b0e6a521",channels:["card","bank","ussd","qr","mobile_money"]},ys=(0,v.NL)(gs),bs={public_key:"FLWPUBK-4d952395043b35a8208f7042fc5c2d13-X",tx_ref:ls,amount:Math.ceil((js||0)/Tn.conversionRate),currency:Tn.name,payment_options:"card, mobilemoney, ussd, banktransfer, account",customer:{email:le.senderEmail||k.lq,phone_number:le.senderPhoneNumber,name:le.senderName},customizations:{title:"Regal Flowers",description:"Payment for items in cart",logo:"/icons/regal-flowers-gifts-logo-small.png"}},_s=(0,J.iA)(bs),ks=(0,x.useRouter)(),Cs=ks.query,ws=Cs.orderId,Zs=Cs.status_code,Ps=ks.isReady;(0,f.useEffect)((function(){Zs&&"00"===Zs&&cs()}),[Zs]);var Ss=(0,f.useCallback)((function(){var e=(0,o.Z)(le.senderName.trim().split(/\s+/).filter(
1Boolean));return{firstName:e[0],lastName:e.slice(1).join(" ")||void 0}}),[le.senderName]),Ms=(0,f.useCallback)((function(){var e=Ss(),n=e.firstName,s=e.lastName;return{email:le.senderEmail||void 0,phone:le.senderPhoneNumber?le.senderCountryCode?"".concat(le.senderCountryCode).concat(le.senderPhoneNumber):le.senderPhoneNumber||void 0:void 0,firstName:n,lastName:s,region:"delivery"===le.deliveryMethod&&le.state||void 0}}),[le,Ss]),Ds=(0,f.useCallback)((function(){var e=Ss(),n=e.firstName,s=e.lastName,r=[n,s].filter(Boolean).join(" ")||void 0,a=le.senderPhoneNumber?le.senderCountryCode?"".concat(le.senderCountryCode).concat(le.senderPhoneNumber):le.senderPhoneNumber:void 0;return{customer_id:null===Mn||void 0===Mn?void 0:Mn.id,email:le.senderEmail||void 0,phone:a,full_name:r,first_name:n,last_name:s,is_logged_in:Boolean(null===Mn||void 0===Mn?void 0:Mn.id)}}),[le.senderCountryCode,le.senderEmail,le.senderPhoneNumber,Ss,null===Mn||void 0===Mn?void 0:Mn.id]),As=(0,f.useCallback)((function(){return"pick-up"===le.deliveryMethod?"pickup:".concat(le.pickUpLocation||le.pickupState||"unknown"):"delivery:".concat(le.state||"unknown",":").concat(le.zone||"unknown")}),[le.deliveryMethod,le.pickUpLocation,le.pickupState,le.state,le.zone]),Es=(0,f.useCallback)((function(){(0,Z.EI)((0,t.Z)((0,i.Z)({cartItems:Ns,currencyCode:Tn.name,totalValue:js,shippingTier:As()},zn?{order:zn}:{}),{customer:Ds(),userData:Ms()}))}),[Tn.name,As,Ds,Ms,zn,js,Ns]),Ts=(0,f.useCallback)((function(e){(0,Z.xh)((0,t.Z)((0,i.Z)({cartItems:Ns,currencyCode:Tn.name,totalValue:js,paymentType:e},zn?{order:zn}:{}),{customer:Ds(),userData:Ms()}))}),[Tn.name,Ds,Ms,zn,js,Ns]),Is=(0,f.useCallback)((function(e){var n;zn&&(0,Z.Qc)({order:zn,currencyCode:Tn.name,coupon:null===(n=zn.coupon)||void 0===n?void 0:n.name,paymentMethod:e})}),[Tn.name,zn]),Os=function(e,n){if("state"===e){var s,r=null===ps||void 0===ps?void 0:ps.stateDeliveryZones.find((function(e){return e.state===n}));return ue((0,t.Z)((0,i.Z)({},le),(s={},(0,a.Z)(s,e,n),(0,a.Z)(s,"zone",(null===r||void 0===r?void 0:r.title)||""),(0,a.Z)(s,"pickUpLocation",""),(0,a.Z)(s,"deliveryZone",null===r||void 0===r?void 0:r.deliveryZone),s))),void Ke(r)}if("zone"!==e){var c,o,l;if("deliveryMethod"===e)return"pick-up"===n?void ue((0,t.Z)((0,i.Z)({},le),(c={},(0,a.Z)(c,e,n),(0,a.Z)(c,"state",""),(0,a.Z)(c,"zone",""),c))):void ue((0,t.Z)((0,i.Z)({},le),(o={},(0,a.Z)(o,e,n),(0,a.Z)(o,"pickUpLocation",""),(0,a.Z)(o,"shouldSaveAddress",!0),o)));if("pickUpLocation"!==e)if("senderPhoneNumber"!==e&&"recipientPhoneNumber"!==e&&"recipientPhoneNumberAlt"!==e){var d,u,m;if("pickupState"===e)return"abuja"===n?void ue((0,t.Z)((0,i.Z)({},le),(d={},(0,a.Z)(d,e,n),(0,a.Z)(d,"pickUpLocation","Abuja"),(0,a.Z)(d,"deliveryZone","APA"),d))):"port-harcourt"===n?void ue((0,t.Z)((0,i.Z)({},le),(u={},(0,a.Z)(u,e,n),(0,a.Z)(u,"pickUpLocation","Port Harcourt"),(0,a.Z)(u,"deliveryZone","PPH"),u))):void ue((0,t.Z)((0,i.Z)({},le),(m={},(0,a.Z)(m,e,n),(0,a.Z)(m,"pickUpLocation",""),m)));ue((0,t.Z)((0,i.Z)({},le),(0,a.Z)({},e,n)))}else{var p=(0,V.un)(n);ue((0,t.Z)((0,i.Z)({},le),(0,a.Z)({},e,p)))}else ue((0,t.Z)((0,i.Z)({},le),(l={},(0,a.Z)(l,e,n),(0,a.Z)(l,"deliveryZone",k._V[n]),l)))}else{var h;ue((0,t.Z)((0,i.Z)({},le),(h={},(0,a.Z)(h,e,n),(0,a.Z)(h,"deliveryZone",null===We||void 0===We?void 0:We.deliveryZone),(0,a.Z)(h,"despatchFrom",null===We||void 0===We?void 0:We.despatchFrom),h)))}},Us=function(){var e=(0,r.Z)((function(){var e,n,s,r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return ke(!0),[4,(0,w.hD)({orderId:ws,couponCode:Gn})];case 1:return e=i.sent(),n=e.data,s=e.message,r=e.error,n&&(Wn(n),$.Z.save($.m.COUPON,null===(a=n.coupon)||void 0===a?void 0:a.name),Un("success","Coupon applied")),r&&Un("error",s),ke(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),Ls=B(),Rs=Ls.initializeMonnify,Bs=Ls.isMonnifyReady,qs=(0,q.Z)(),Ys=qs.initializePaga,zs=qs.isPagaReady;(0,f.useEffect)((function(){sn&&ue((0,t.Z)((0,i.Z)({},le),{recipientName:sn.name,recipientPhoneNumber:(0,W.p4)(sn.phone,sn.phoneCountryCode),recipientPhoneNumberAlt:(0,W.p4)(sn.phoneAlt,sn.altPhoneCountryCode),recipientHomeAddress:sn.address,residenceType:sn.residenceType,recipientCountryCode:sn.phoneCountryCode,recipientCountryCodeAlt:sn.altPhoneCountryCode}))}),[sn]),(0,f.useEffect)((function(){if(null===zn||void 0===zn?void 0:zn.coupon){var e=$.Z.get($.m.COUPON);e&&2===An&&$n(e)}}),[$n,An]);var Ws=(0,f.useCallback)((0,r.Z)((function(){var e,n,s,r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return(null===zn||void 0===zn?void 0:zn.coupon)?[4,(0,w.hD)({orderId:ws,couponCode:zn.coupon.name})]:[3,3];case 1:return e=i.sent(),n=e.error,s=e.message,(r=e.data)&&(Wn(r),$.Z.save($.m.COUPON,null===(a=r.coupon)||void 0===a?void 0:a.name),Un("success","Coupon applied")),n?[4,ds()]:[3,3];case 2:i.sent(),Un("error",s),i.label=3;case 3:return[2]}}
1))})),[null===zn||void 0===zn?void 0:zn.coupon,ws,ts]),Ks=function(){var e=(0,r.Z)((function(){var e,n,s,r;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return[4,T()];case 1:return e=a.sent(),n=e.error,s=e.message,r=e.data,n?Un("error","Unable to fetch purposes: ".concat(s)):Qe((null===r||void 0===r?void 0:r.map((function(e){return{label:e,value:e}})))||[]),[2]}}))}));return function(){return e.apply(this,arguments)}}(),Fs=function(){var e=(0,r.Z)((function(){var e,n,s,r;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,H.k)()];case 1:return e=a.sent(),n=e.error,s=e.message,r=e.data,n?Un("error","Unable to fetch purposes: ".concat(s)):en((null===r||void 0===r?void 0:r.map((function(e){return{label:e,value:e}})))||[]),[2]}}))}));return function(){return e.apply(this,arguments)}}(),Hs=le.pickUpLocation,Vs=le.state,$s=le.zone,Gs=le.recipientName,Qs=le.recipientPhoneNumber,Xs=le.recipientHomeAddress,Js=le.residenceType,er=Boolean(vs&&Vs&&$s),nr=Boolean(Hs),sr=Boolean(Gs&&Qs&&Js&&Xs);(0,f.useEffect)((function(){Ks(),Fs()}),[]),(0,f.useEffect)((function(){if(zn){var e=/go\s*ahead/i.test((null===zn||void 0===zn?void 0:zn.paymentStatus)||"")||/^paid/i.test((null===zn||void 0===zn?void 0:zn.paymentStatus)||""),n=(null===zn||void 0===zn?void 0:zn.client.name)&&zn.client.phone&&zn.client.email&&zn.deliveryDate;je(e),e&&cs(),!e&&n?(ue((0,t.Z)((0,i.Z)({},le,(0,W.yE)(zn,Mn)),{freeAccount:!1,state:zn.deliveryDetails.state,zone:zn.deliveryDetails.zone})),Rn(m()(null===zn||void 0===zn?void 0:zn.deliveryDate)),Ee(!0),Ve("customization-message")):n?(ue((0,i.Z)({},le,(0,W.yE)(zn,Mn))),Rn(m()(zn.deliveryDate)),Ee(!0),Ve("delivery-type")):ue((0,t.Z)((0,i.Z)({},le,(0,W.yE)(zn,Mn)),{freeAccount:Boolean(!Mn)}))}}),[zn,null===Mn||void 0===Mn?void 0:Mn.email]),(0,f.useEffect)((function(){window.scrollTo(0,0)}),[An]),(0,f.useEffect)((function(){Ps&&Ws()}),[ts,Ps]),(0,f.useEffect)((function(){ln&&cn(dr)}),[le,ln]),(0,f.useEffect)((function(){Ln&&ue((function(e){return(0,t.Z)((0,i.Z)({},e),{deliveryDate:Ln})}))}),[Ln]);var rr=function(){return("pick-up"!==le.deliveryMethod||le.pickUpLocation)&&!!("delivery"!==le.deliveryMethod||le.state&&le.zone)||(Un("error","Please complete the delivery location"),!1)},ar=function(){return!!("delivery"!==le.deliveryMethod||le.recipientPhoneNumber&&le.recipientName&&le.residenceType&&le.recipientHomeAddress)||(Un("error","Please complete the receiver's information"),!1)},ir=function(){var e=(0,r.Z)((function(e){var n,s,a,c,o,u,p,h;return(0,l.__generator)(this,(function(v){switch(v.label){case 0:return e.preventDefault(),n=rr(),s=ar(),Ln?m()(Ln).isBefore(m()(),"day")?(Un("error","Please select a new delivery date. Your selected date is in the past"),[2]):"delivery"!==le.deliveryMethod||vs?(dn(!0),cn(dr),n&&s?(ye(!0),[4,(0,w.Of)(ws,(0,t.Z)((0,i.Z)({},le),{deliveryDate:Ln,currency:Tn.name}))]):[2]):(a=hs?hs.emptyBreakPointsMessage||"No delivery is allowed for this zone at this time":"Please select a delivery zone",Un("error",(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})),[2]):(Un("error","Please select a delivery date"),[2]);case 1:return c=v.sent(),o=c.error,u=c.message,p=c.data,ye(!1),o?"User already exists"===u?(Kn({title:"Create Account",body:"We couldn't create an account for you, as the user already exists",onOk:function(){Yn(!0)}
1,cancelText:"Continue as Guest",okText:"Login",onCancel:(0,r.Z)((function(){var e,n,s;return(0,l.__generator)(this,(function(r){switch(r.label){case 0:return[4,(0,w.Of)(ws,(0,t.Z)((0,i.Z)({},le),{deliveryDate:Ln,freeAccount:!1,currency:Tn.name}))];case 1:return e=r.sent(),n=e.error,s=e.message,n?(Un("error","Unable to save order: ".concat(s)),[2]):(En(2),Ve("payment"),[2])}}))}))}),[2]):(Un("error","Unable to save order: ".concat(u)),[3,4]):[3,2];case 2:return Es(),En(2),Ve("payment"),(null===p||void 0===p?void 0:p.user)&&Dn(p.user),"delivery"!==le.deliveryMethod?[3,4]:[4,(0,ee.PR)()];case 3:(h=v.sent().data)&&Dn(h),v.label=4;case 4:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),tr=function(){var e=(0,r.Z)((function(){var e,n,s,r,a,i,t;return(0,l.__generator)(this,(function(c){switch(c.label){case 0:return m()(Ln).isBefore(m()(),"day")?(Un("error","Please select a new delivery date. Your selected date is in the past"),[2]):(dn(!0),cn(dr),(n=(0,F.KI)(le))?(Un("error",n),[2]):(s=null===(e=se.n.find((function(e){return e.value===le.senderCountryCode})))||void 0===e?void 0:e.label,Ze(!0),[4,(0,w.De)(ws,{userData:{email:le.senderEmail,name:le.senderName,phone:le.senderCountryCode+le.senderPhoneNumber,phoneCountryCode:le.senderCountryCode,country:s},deliveryDate:(null===Ln||void 0===Ln?void 0:Ln.format("YYYY-MM-DD"))||"",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})]));case 1:return r=c.sent(),a=r.error,i=r.message,a?Un("error","Unable to save sender Info: ".concat(i)):(t=Ms(),(0,Z.Rb)(t),Un("success","Saved successfully"),Ve("delivery-type"),Ee(!0),dn(!1),cn([])),Ze(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}(),cr=function(e){Rn(e),ue((0,t.Z)((0,i.Z)({},le),{zone:"",state:"",deliveryDate:e}))},or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/delivered/i.test(e)},lr=(0,f.useMemo)((function(){return(null===Mn||void 0===Mn?void 0:Mn.recipients.map((function(e){return e.name&&{label:"".concat(e.name," | ").concat(e.phone," | ").concat(e.phoneAlt," | ").concat(e.address),value:e.id}})).filter(Boolean))||[]}),[null===Mn||void 0===Mn?void 0:Mn.recipients]),dr=(0,f.useMemo)((function(){return Object.entries(le).filter((function(e){var n=(0,c.Z)(e,2)[1];return null===n||void 0===n||""===n})).map((function(e){return(0,c.Z)(e,1)[0]}))}),[le]),ur=(0,f.useMemo)((function(){var e,n=(null===zn||void 0===zn?void 0:zn.amount)||0;(null===zn||void 0===zn?void 0:zn.amount)&&(n=zn.amount-((null===(e=zn.coupon)||void 0===e?void 0:e.discountedAmount)||0));return n}),[null===zn||void 0===zn?void 0:zn.amount,null===zn||void 0===zn||null===(n=zn.coupon)||void 0===n?void 0:n.discountedAmount]),mr=(0,f.useMemo)((function(){var e=["flutterWave"],n=Math.ceil(ur/Tn.conversionRate);return k.X_.map((function(s){return js>=5e5&&e.includes(s.paymentName)||"USD"===Tn.name&&n<350&&"leadBankTransfer"===s.paymentName?(0,t.Z)((0,i.Z)({},s),{supportedCurrencies:[]}):s})).filter((function(e){return e.supportedCurrencies.includes(Tn.name)})).sort((function(e,n){return function(e,n,s){var r=e.supportedCurrencies.includes(s),a=n.supportedCurrencies.includes(s);if(r&&a){if("USD"===s){if("paystack"===e.paymentName&&"flutterWave"===n.paymentName)return-1;if("flutterWave"===e.paymentName&&"paystack"===n.paymentName)return 1}if("NGN"===s){if("flutterWave"===e.paymentName&&"paystack"===n.paymentName)return-1;if("paystack"===e.paymentName&&"flutterWave"===n.paymentName)return 1}return 0}return r?-1:a?1:0}(e,n,Tn.name)}))}),[Tn,js,ur]),pr=mr.some((function(e){return ce.includes(e.paymentName)})),hr=mn?mr:mr.filter((function(e){return!ce.includes(e.paymentName)}));(0,f.useEffect)((function(){Ps&&(Hn(ws),En(1))}),[ws,Ps]),(0,f.useEffect)((function(){"mobile"===ns&&3===An&&fe&&le.freeAccount&&!(null===Mn||void 0===Mn?void 0:Mn.isVerified)&&Pn(!0)}),[An,ns,le.freeAccount,fe,null===Mn||void 0===Mn?void 0:Mn.isVerified]);var vr=function(){var e=(0,r.Z)((function(){var e,n,s;return(0,l.__generator)(this,(function(r){switch(r.label){case 0:return bn(!0),[4,(0,X.t1)(le.senderEmail)];case 1:return e=r.sent(),n=e.error,s=e.message,bn(!1),n?(Un("error","Unable to send code: ".concat(s)),[2]):(es(k.Fl),Nn(!0),Un("success","A verification code has been sent to your email"),[2])}}))}));return function(){return e.apply(this,arguments)}}(),xr=function(){var e=(0,r.Z)((function(){var e,n,s,r;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return Cn(!0),[4,(0,X.Wx)(le.senderEmail,vn)];case 1:return e=a.sent(),n=e.error,s=e.message,r=e.data,Cn(!1),n?(Un("error","Unable to verify code: ".concat(s)),[2]):(Dn(r),Pn(!1),Un("success","Your account has been verified"),[2])}}))}));return function(){return e.apply(this,arguments)}}();if(he||Vn)return(0,d.jsxs)("div",{className:M().loader,children:[(0,d.jsx)("img",{src:"/images/spinner.svg",alt:"loader",className:M().icon}),(0,d.jsx)("span",{className:M()["load-intro"],children:1===An?"Preparing your order. . .":"Loading. . ."})]});var fr={paystack:function(){Ts("paystack");var e=function(){var e=(0,r.Z)((function(e){var n,s,r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return ve(!0),[4,I(null===e||void 0===e?void 0:e.reference,Gn)];case 1:return n=i.sent(),s=n.error,r=n.message,a=n.status,ve(!1),s?Un("error","Unable to make payment: ".concat(r)):214===a&&r?(Un("info","Order is successful, but note that: ".concat(r)),Is("paystack"),cs()):(Un("success","Order paid successfully"),$.Z.remove($.m.COUPON),Is("paystack"),cs()),[2]}}))}));return function(n){return e.apply(this,arguments)}}();ys(e,(0,r.Z)((function(){return(0,l.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,w.QZ)({orderId:ws,currency:Tn.name,paymentMethod:"paystack"})];case 1:return e.sent(),[2]}}))})))},flutterWave:function(){Ts("flutterWave"),_s({callback:function(){var e=(0,r.Z)((function(e){var n,s,r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return(0,J.Zv)(),ve(!0),[4,O(e.transaction_id,Gn,ws)];case 1:return n=i.sent(),s=n.error,r=n.message,a=n.status,s?Un("error","Unable to make payment: ".concat(r)):214===a&&r?(Un("info","Order is successful, but not that: ".concat(r)),Is("flutterWave"),cs()):(Un("success","Order paid successfully"),$.Z.remove($.m.COUPON),Is("flutterWave"),cs()),ve(!1),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),onClose:function(){}})},monnify:function(){Ts("monnify");var e=(new Date).getTime().toString(),n="".concat(null===zn||void 0===zn?void 0:zn.fullOrderId,"-").concat(null===zn||void 0===zn?void 0:zn.id,"-").concat(e);Bs&&Rs({amount:(null===zn||void 0===zn?void 0:zn.amount)||0,customerEmail:le.senderEmail||k.lq,customerFullName:le.senderName||"N/A",apiKey:"MK_PROD_L0E8LQY6B2",contractCode:"252548871448",currency:"NGN",reference:n,paymentDescription:"Regal Flowers Order ".concat(null===zn||void 0===zn?void 0:zn.fullOrderId,"-").concat(null===zn||void 0===zn?void 0:zn.id),onComplete:function(){var e=(0,r.Z)((function(e){var n,s,r,a;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return"SUCCESS"!==e.status||"PAID"!==e.paymentStatus?[3,2]:(ve(!0),[4,U(e.transactionReference,ws,Gn)]);case 1:n=i.sent(),s=n.error,r=n.message,a=n.status,ve(!1),s?Un("error","Unable to make payment: ".concat(r)):214===a&&r?(Un("info","Order is successful, but note that: ".concat(r)),Is("monnify"),cs()):(Un("success","Order paid successfully"),$.Z.remove($.m.COUPON),Is("monnify"),cs()),i.label=2;case 2:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),onClose:function(){}})},paga:function(){if(Ts("paga"),zs){var e=(new Date).getTime().toString(),n="".concat(null===zn||void 0===zn?void 0:zn.fullOrderId,"-").concat(null===zn||void 0===zn?void 0:zn.id,"-").concat(e);Ys({amount:(null===zn||void 0===zn?void 0:zn.amount)||0,paymentReference:n,publicKey:"15e25030-0b7f-431a-8e28-0e5968c813df",currency:"NGN",email:le.senderEmail||k.lq,chargeUrl:"https://regalflowers-staging.web.app/checkout"})}},payPal:function(){Ts("payPal"),Me(!0)},manualTransfer:function(){Ts("manualTransfer"),Oe(!0)},googlePay:function(){},bitcoinTransfer:function(){Ts("bitcoinTransfer"),Re("bitcoinTransfer"),Oe(!0)},nairaTransfer:function(){Ts("nairaTransfer"),Re("nairaTransfer"),Oe(!0)},natwestTransfer:function(){Ts("natwestTransfer"),Re("natwestTransfer"),Oe(!0)},leadBankTransfer:function(){Ts("leadBankTransfer"),Re("leadBankTransfer"),Oe(!0)},USDTransfer:function(){Ts("USDTransfer"),Re("USDTransfer"),Oe(!0)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("form",{onSubmit:ir,children:["desktop"===ns?(0,d.jsxs)("section",{className:M()["checkout-page"],children:[An<=2&&(0,d.jsxs)("div",{className:M()["checkout-wrapper"],children:[(0,d.jsxs)("div",{className:"".concat(M().left),children:[1===An&&(0,d.jsxs)(d.Fragment,{children:[qn&&(0,d.jsx)(h(),{href:qn,children:(0,d.jsx)("a",{className:"margin-bottom",children:"< Back to Shop"})}),(0,d.jsxs)("div",{className:"".concat(M().border," margin-top"),children:[(0,d.jsx)("p",{className:M()["payment-info"],children:"Sender's Information"}),(0,d.jsx)("br",{}),(0,d.jsx)("span",{className:M()["payment-info-span"],children:"Please input correctly in case we need to reach you"}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"flex spaced-xl",children:[(0,d.jsxs)("div",{className:"input-group half-width",children:[(0,d.jsx)("span",{className:"question",children:"Your Name"}),(0,d.jsx)(y.Z,{name:"name",placeholder:"Name",value:le.senderName,onChange:function(e){return Os("senderName",e)},dimmed:!0,required:!0,responsive:!0,className:tn.includes("senderName")?M().invalid:""})]}),(0,d.jsxs)("div",{className:"input-group half-width",children:[(0,d.jsx)("span",{className:"question",children:"Email"}),(0,d.jsx)(y.Z,{name:"email",placeholder:"Email",value:le.senderEmail,onChange:function(e){return Os("senderEmail",e)},dimmed:!0,responsive:!0,required:le.freeAccount,onBlurValidation:F.Le,className:tn.includes("senderEmail")?M().invalid:""})]})]}),(0,d.jsxs)("div",{className:"flex spaced-xl",children:[(0,d.jsx)(K.Z,{question:"Your Phone Number",phoneNumber:le.senderPhoneNumber,countryCode:le.senderCountryCode,onChangePhoneNumber:function(e){return Os("senderPhoneNumber",e)},onChangeCountryCode:function(e){return Os("senderCountryCode",e)},className:"input-group half-width",countryCodePlaceholder:"Code",inputWrapperClassName:tn.includes("senderPhoneNumber")||tn.includes("senderCountryCode")?M().invalid:""}),(0,d.jsxs)("div",{className:"input-group half-width",children:[(0,d.jsx)("span",{className:"question",children:"Pickup/Delivery Date"}),(0,d.jsx)(g.Z,{value:Ln,onChange:function(e){return cr(e)},format:"D MMMM YYYY",responsive:!0,disablePastDays:!0,className:tn.includes("deliveryDate")?M().invalid:""})]})]}),!Mn&&(0,d.jsxs)("div",{className:"input-group spaced-xl compact ".concat(M().password),children:[(0,d.jsx)("span",{className:"question",children:"Create Password"}),(0,d.jsx)(y.Z,{name:"password",type:"password",placeholder:"Password",value:le.senderPassword,onChange:function(e){return Os("senderPassword",e)},dimmed:!0,autoComplete:"new-password",required:le.freeAccount,showPasswordIcon:!0,disabled:!le.freeAccount,className:tn.includes("senderPassword")&&le.freeAccount?M().invalid:""})]}),!Mn&&(0,d.jsxs)("div",{className:"flex between center-align",children:[(0,d.jsx)(N.Z,{checked:le.freeAccount,onChange:function(e){return Os("freeAccount",e)},text:"Create a Free Account"}),(0,d.jsxs)("div",{className:"flex center",children:[(0,d.jsx)("span",{className:"margin-right",children:"Already a user?"}),(0,d.jsx)(j.Z,{type:"plain",onClick:function(){return Yn(!0)},children:"Login"})]})]})]})]}),!Ae&&(0,d.jsx)(j.Z,{loading:we,onClick:tr,children:"Continue"}),Ae&&(0,d.jsxs)("div",{className:[M().border,M()["delivey-method"]].join(" "),children:[(0,d.jsx)("p",{className:M()["payment-info"],children:"Delivery Method"}),((null===zn||void 0===zn?void 0:zn.amount)||0)<ps.minAmount&&(0,d.jsxs)("div",{className:M()["min-amount-info"],children:[(0,d.jsx)(P.o9,{className:"generic-icon"}),(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:ps.minAmountInfoText}})]}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"flex between center-align",children:[(0,d.jsxs)("div",{className:[M().method,"pick-up"===le.deliveryMethod&&M().active].join(" "),onClick:function(){Os("deliveryMethod","pick-up"),cn([]),dn(!1)},children:[(0,d.jsx)("p",{className:"".concat(M()["method-title"]),children:"Pick Up"}),(0,d.jsx)("p",{children:"Pick up from our stores"})]}),(0,d.jsxs)("div",{className:[M().method,"delivery"===le.deliveryMethod&&M().active,((null===zn||void 0===zn?void 0:zn.amount)||0)<ps.minAmount&&"disabled"].join(" "),onClick:function(){Os("deliveryMethod","delivery"),cn([]),dn(!1)},children:[(0,d.jsx)("p",{className:"".concat(M()["method-title"]),children:"Delivery"}),(0,d.jsx)("p",{children:"Get it delivered to the recipient's location"})]})]}),(0,d.jsx)("div",{className:"margin-top primary-color flex column spaced",children:"delivery"===le.deliveryMethod&&ps.infoTextConfigs.map((function(e){return(0,d.jsx)("em",{children:e.infoText},e.id)}))}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"flex spaced-xl",children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Delivery State"}),(0,d.jsx)(_.Z,{onSelect:function(e){Os("state",e)},value:le.state,options:xs,placeholder:"Select a state",responsive:!0,dimmed:!0,className:tn.includes("state")?M().invalid:""})]}),le.state&&fs.length>1&&(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Delivery Zones"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("zone",e)},value:le.zone,options:fs,placeholder:"Select a zone",responsive:!0,dimmed:!0,dropdownOnTop:!0,optionColor:"gray-white",className:tn.includes("zone")?M().invalid:""})]})]}),"delivery"===le.deliveryMethod&&le.state&&le.zone&&(null===hs||void 0===hs?void 0:hs.stateZoneInfo)&&(0,d.jsxs)("div",{className:M()["state-zone-info"],children:[(0,d.jsx)(P.o9,{}),(0,d.jsx)("span",{children:hs.stateZoneInfo})]}),"delivery"===le.deliveryMethod&&le.state&&le.zone&&(0,d.jsxs)("div",{className:M()["pickup-locations"],children:[((null===hs||void 0===hs||null===(s=hs.priceBreakPoints)||void 0===s?void 0:s.length)||0)>0&&vs&&(0,d.jsxs)("p",{className:"primary-color align-icon normal-text bold margin-bottom",children:[(0,d.jsx)(P.o9,{}),(0,d.jsx)("span",{className:"margin-left",children:"Delivery Locations"})]}),hs&&!vs&&(0,d.jsxs)("div",{className:"flex center-align primary-color normal-text margin-bottom spaced",children:[(0,d.jsx)(P.o9,{className:"generic-icon xl"}),(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:hs.emptyBreakPointsMessage||""}})]}),vs&&(null===hs||void 0===hs||null===(u=hs.priceBreakPoints)||void 0===u?void 0:u.map((function(e){return(0,d.jsx)("div",{className:"vertical-margin spaced",children:(0,d.jsx)(b.Z,{label:"".concat((0,W.j$)(e.amount,Tn)," - ").concat(e.infoText),disabled:e.id!==(null===vs||void 0===vs?void 0:vs.id),checked:e.id===(null===vs||void 0===vs?void 0:vs.id)})},e.id)})))]}),"pick-up"===le.deliveryMethod&&(0,d.jsxs)("div",{className:M()["pickup-locations"],children:[(0,d.jsxs)("p",{className:"primary-color align-icon normal-text bold margin-bottom",children:[(0,d.jsx)(P.o9,{}),(0,d.jsx)("span",{className:"margin-left",children:"Pick Up Locations"})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Pick Up State"}),(0,d.jsx)(_.Z,{onSelect:function(e){Os("pickupState",e)},value:le.pickupState,options:k.$c,placeholder:"Select a state",responsive:!0,dimmed:!0,className:tn.includes("pickupState")?M().invalid:""})]}),(0,d.jsxs)("div",{className:"margin-top spaced",children:["lagos"===le.pickupState&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{children:(0,d.jsx)(b.Z,{label:"Ikoyi - 81b, Lafiaji Way, Dolphin Estate, Ikoyi, Lagos",onChange:function(){return Os("pickUpLocation","Ikoyi")},checked:"Ikoyi"===le.pickUpLocation})}),(0,d.jsx)("div",{className:"vertical-margin",children:(0,d.jsx)(b.Z,{label:"Lekki - 2C, Seed Education Center Road, off Kusenla Road, Ikate, Lekki",onChange:function(){return Os("pickUpLocation","
1Lekki")},checked:"Lekki"===le.pickUpLocation})})]}),"Abuja"===le.pickUpLocation&&"abuja"===le.pickupState&&(0,d.jsx)("div",{className:"vertical-margin",children:(0,d.jsx)(b.Z,{label:"Abuja Pickup - 5, Nairobi Street, off Aminu Kano Crescent, Wuse 2, Abuja",onChange:function(){},checked:"Abuja"===le.pickUpLocation})}),"port-harcourt"===le.pickupState&&(0,d.jsx)("div",{className:"vertical-margin",children:(0,d.jsx)(b.Z,{label:"Port Harcourt Pick Up - 12, Ohiamini Street (street beside Royal House of Grace), New GRA, Port Harcourt",onChange:function(){},checked:"Port Harcourt"===le.pickUpLocation})}),"other-locations"===le.pickupState&&(0,d.jsxs)("div",{className:"flex center-align primary-color normal-text margin-bottom spaced",children:[(0,d.jsx)(P.o9,{className:"generic-icon xl"}),(0,d.jsxs)("span",{children:["At the moment, You can only pick up at our Lagos, Abuja and Port Harcourt stores. Kindly contact us on Phone/WhatsApp:",(0,d.jsx)("br",{}),(0,d.jsx)("a",{href:"tel:+2349077777994",className:"clickable neutral underline",children:"+234 9077 777994"})]})]})]})]})]})]}),"delivery"===le.deliveryMethod&&er&&(0,d.jsxs)("div",{className:M().border,children:[(0,d.jsx)("p",{className:M()["payment-info"],children:"Receiver's Information"}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsxs)("span",{className:"question flex spaced",children:[(0,d.jsx)("span",{children:"Select A Past Recipient "}),Mn?(0,d.jsx)("em",{className:"normal",children:"(if available)"}):(0,d.jsxs)("span",{className:"normal flex spaced",children:["(",(0,d.jsx)("button",{onClick:function(){return Yn(!0)},className:"primary-color bold",type:"button",children:"Login"}),(0,d.jsx)("span",{children:"to use"}),")"]})]}),(0,d.jsx)(_.Z,{onSelect:function(e){rn((null===Mn||void 0===Mn?void 0:Mn.recipients.find((function(n){return n.id===e})))||null)},value:(null===sn||void 0===sn?void 0:sn.id)||"",options:lr,placeholder:"Select Past Recipient",responsive:!0,dimmed:!0,hasEditDeleteIcons:!0,onDelete:function(e){return is(e)}})]}),(0,d.jsxs)("div",{className:"flex center-align spaced vertical-margin",children:[(0,d.jsx)("span",{className:M()["line-through"]}),(0,d.jsx)("span",{children:"OR"}),(0,d.jsx)("span",{className:M()["line-through"]})]}),(0,d.jsxs)("div",{className:"flex spaced-xl margin-bottom",children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Full Name"}),(0,d.jsx)(y.Z,{name:"name",placeholder:"Enter recipient name",value:le.recipientName,onChange:function(e){return Os("recipientName",e)},dimmed:!0,className:tn.includes("recipientName")?M().invalid:""})]}),(0,d.jsx)(K.Z,{phoneNumber:le.recipientPhoneNumber,countryCode:le.recipientCountryCode,onChangePhoneNumber:function(e){return Os("recipientPhoneNumber",e)},onChangeCountryCode:function(e){return Os("recipientCountryCode",e)},className:"input-group",question:"Receiver Phone number",countryCodePlaceholder:"Code",inputWrapperClassName:tn.includes("recipientPhoneNumber")||tn.includes("recipientCountryCode")?M().invalid:""})]}),(0,d.jsxs)("div",{className:"flex spaced-xl margin-bottom",children:[(0,d.jsx)(K.Z,{phoneNumber:le.recipientPhoneNumberAlt,countryCode:le.recipientCountryCodeAlt,onChangePhoneNumber:function(e){return Os("recipientPhoneNumberAlt",e)},onChangeCountryCode:function(e){return Os("recipientCountryCodeAlt",e)},className:"input-group",question:"Enter alternative phone (if available)",countryCodePlaceholder:"Code"}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Residence Type"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("residenceType",e)},value:le.residenceType,options:Je,placeholder:"Select a residence type",responsive:!0,dimmed:!0})]})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Detailed Address"}),(0,d.jsx)(y.K,{value:le.recipientHomeAddress,placeholder:"To help us deliver better, please be detailed as possible",onChange:function(e){return Os("recipientHomeAddress",e)},dimmed:!0,rows:3})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Any Delivery Instructions"}),(0,d.jsx)(y.K,{value:le.deliveryInstruction,placeholder:"e.g. Ask for security guard called Segun",onChange:function(e){return Os("deliveryInstruction",e)},dimmed:!0,rows:3})]})]})]}),("delivery"===le.deliveryMethod?sr:nr)&&(0,d.jsxs)("div",{className:M().border,children:[(0,d.jsx)("p",{className:M()["payment-info"],children:"Optional Message"}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Message to include"}),(0,d.jsx)(y.K,{value:le.message,placeholder:"Eg: I love you",onChange:function(e){return Os("message",e)},dimmed:!0,rows:3})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Additional Information for Us"}),(0,d.jsx)(y.K,{value:le.additionalInfo,onChange:function(e){return Os("additionalInfo",e)},dimmed:!0,rows:3})]}),(0,d.jsxs)("div",{className:"input-group half-width",children:[(0,d.jsx)("span",{className:"question",children:"Purpose"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("purpose",e)},value:le.purpose,options:Ge,placeholder:"Select Purpose",responsive:!0,dropdownOnTop:!0,dimmed:!0})]})]})]}),Ae&&(0,d.jsx)(j.Z,{className:"half-width",loading:ge,buttonType:"submit",children:"Proceed to Payment"})]}
1),2===An&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{onClick:function(){return En(1)},className:"margin-bottom",children:"<< Back To Checkout"}),(0,d.jsxs)("div",{className:M().border,children:[(0,d.jsx)("p",{className:M()["payment-info"],children:"Payment Method"}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"flex center-align spaced-lg vertical-margin spaced",children:[(0,d.jsxs)("p",{className:"normal-text bold ",children:["Select your"," ","".concat(On.length>1?"preferred currency":"preferred payment method")]}),On.length>1&&(0,d.jsx)("div",{className:"flex spaced-lg",children:On.map((function(e,n){return(0,d.jsx)("button",{onClick:function(){return In(e)},className:[M().currency,Tn.name===e.name&&M().active].join(" "),type:"button",children:e.sign},n)}))})]}),us.map((function(e){return(0,d.jsxs)("p",{className:"".concat(M().info," flex center-align spaced margin-bottom"),children:[(0,d.jsx)(P.sz,{fill:"#1C6DD0"})," ",(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:e.content}})]},e.id)})),(0,d.jsxs)("div",{className:M()["payment-methods"],children:[hr.map((function(e,n){var s;return(0,d.jsx)("div",{children:(0,d.jsxs)("div",{className:[M().method,!e.supportedCurrencies.includes(Tn.name)&&M().inactive,te.includes(e.paymentName)&&!e.supportedCurrencies.includes(Tn.name)&&M().remove].join(" "),onClick:e.supportedCurrencies.includes(Tn.name)?function(){return fr[e.paymentName]()}:void 0,title:e.supportedCurrencies.includes(Tn.name)?"":"This payment method does not support ".concat(Tn.name),children:[(0,d.jsxs)("div",{className:"flex spaced-lg center-align",children:[e.icon,(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"normal-text bold",children:e.title}),(0,d.jsx)("p",{children:e.info})]})]}),(0,d.jsx)("div",{className:"flex spaced center-align",children:null===(s=e.other)||void 0===s?void 0:s.map((function(e,n){return(0,d.jsx)("div",{children:e.icon},n)}))})]})},n)})),pr&&(0,d.jsx)(j.Z,{className:M()["btn-view"],url:"",onClick:function(){return pn((function(e){return!e}))},children:mn?"Less Payment Options":"More Payment Options"})]}),(0,d.jsxs)("div",{className:M().security,children:[" ",(0,d.jsx)("div",{className:M()["lock-icon"],children:(0,d.jsx)("img",{src:"icons/lock.svg",className:"generic-icon small ",alt:"lock"})})," ","We protect your payment information using encryption to provide bank-level security."]})]})]})]})]}),An<=2&&(0,d.jsxs)("div",{className:M().right,children:[(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("p",{className:"sub-heading bold",children:"Cart Summary"}),(0,d.jsx)("p",{className:"sub-heading bold primary-color underline clickable",onClick:function(){return Bn(!0)},children:"View Cart"})]}),(0,d.jsxs)("div",{className:"".concat(M().border," padded"),children:[(0,d.jsxs)("div",{className:"flex between ",children:[(0,d.jsx)("span",{className:"normal-text",children:"Subtotal"}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)(ts||0,Tn)})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("span",{className:"normal-text",children:"Delivery"}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)((null===vs||void 0===vs?void 0:vs.amount)||0,Tn)})]}),(0,d.jsxs)("div",{className:"flex center-align",children:[(0,d.jsx)("div",{className:"input-group",children:(0,d.jsx)(y.Z,{placeholder:"Enter Coupon Code",value:Gn,onChange:function(e){return $n(e)},dimmed:!0,responsive:!0})}),(0,d.jsx)(j.Z,{className:M()["apply-btn"],onClick:function(){return Us()},loading:_e,disabled:""===Gn,children:_e?"Applying...":"Apply"})]}),(null===zn||void 0===zn?void 0:zn.coupon)&&(0,d.jsxs)("div",{className:"flex between margin-bottom",children:[(0,d.jsxs)("span",{className:"normal-text flex",children:["Discount"," ",(0,d.jsx)("span",{onClick:ds,className:"primary-color semibold margin-left clickable",children:ge?(0,d.jsx)("img",{src:"/icons/loading-icon-white.svg",alt:"loading",className:[M()["coupon-loader"],ge&&M().active].join(" ")}):"X"})]}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)(zn.coupon.discountedAmount,Tn)})]}),(0,d.jsx)("hr",{className:"".concat(M().hr," hr")}),(0,d.jsxs)("div",{className:"flex between margin-bottom",children:[(0,d.jsx)("span",{className:"normal-text",children:"Total"}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)(js,Tn)})]}),1===An&&Ae&&(0,d.jsx)(j.Z,{responsive:!0,buttonType:"submit",loading:ge,children:"Proceed to Payment"})]}),1===An&&(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"margin-bottom spaced normal-text",children:"Accepted Payments"}),(0,d.jsxs)("div",{className:"".concat(M()["accepted-payments"]," flex between"),children:[(0,d.jsx)("img",{src:"/icons/visa.svg",alt:"visa",className:"generic-icon large"}),(0,d.jsx)("img",{src:"/icons/master-card.svg",alt:"master card",className:"generic-icon large"}),(0,d.jsx)("img",{src:"/icons/paypal-blue.svg",alt:"paypal",className:"generic-icon large"}),(0,d.jsx)("img",{src:"/icons/paystack.png",alt:"pay stack",className:"generic-icon large"})]})]})]})]}),3===An&&fe&&(0,d.jsxs)("div",{className:["flex between",M()["completed-checkout-wrapper"]].join(" "),children:[(0,d.jsx)("div",{className:M()["complete-checkout"],children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("img",{src:"icons/checkout-complete.svg",alt:"completed",className:"text-center ".concat(M()["complete-image"])}),ss?(0,d.jsx)("p",{className:M()["order-received"],children:"Order Received Pending Payment Confirmation"}):(0,d.jsx)("p",{className:M()["order-received"],children:"Order Received Successfully"}),(0,d.jsxs)("p",{className:M()["order-number"],children:["Order No:"," ",(0,d.jsx)("span",{className:M().bold,children:(null===zn||void 0===zn?void 0:zn.fullOrderId)||""})]}),(0,d.jsxs)("div",{className:"flex column center-align spaced normal-text ".concat(M()["order-info"]),children:[(0,d.jsx)("p",{children:"Your order was received, please note your order number in every correspondence with us."}),(0,d.jsxs)("div",{className:"flex spaced",children:[(0,d.jsx)("img",{src:"icons/info.svg",alt:"information",className:["generic-icon",M().icon].join(" ")}),(0,d.jsx)("p",{children:"If your order is a pickup, please mention your order number on arrival."})]}),"pick-up"===le.deliveryMethod&&k.YS[(0,V.UK)(le.pickUpLocation)],(0,d.jsxs)("div",{className:M()["track-order"],children:["Want to track y
1our order?",(0,d.jsx)(j.Z,{url:"/order-tracker/result?orderNumber=".concat(null===zn||void 0===zn?void 0:zn.fullOrderId),type:"accent",className:M()["track-order-btn"],children:"Track Order"})]})]}),(0,d.jsx)(j.Z,{className:M()["shopping-btn"],onClick:function(){return ks.push("/product-category/flowers-for-love-birthday-anniversary-etc")},children:"Continue Shopping"}),!Mn&&(0,d.jsxs)("div",{className:M()["success-account-wrapper"],children:[(0,d.jsx)("p",{className:M()["success-account-title"],children:"Create a Free Account"}),(0,d.jsx)("p",{className:"normal-text vertical-margin spaced",children:"Manage orders, address book and save time when checking out by creating a free account today!"}),(0,d.jsx)(j.Z,{onClick:function(){return Yn(!0)},children:"Create a Free Account"})]}),Mn&&!(null===Mn||void 0===Mn?void 0:Mn.isVerified)&&le.freeAccount&&(0,d.jsx)("div",{className:M()["success-account-wrapper"],children:jn?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:M()["success-account-title"],children:"Verify Your Email"}),(0,d.jsxs)("p",{className:"normal-text vertical-margin spaced",children:["We've sent a one-time code to"," ",le.senderEmail,". Enter it below to activate your account."]}),(0,d.jsx)("div",{className:M()["otp-input-row"],children:(0,d.jsx)(y.Z,{value:vn,onChange:xn,placeholder:"Enter OTP",responsive:!0})}),(0,d.jsxs)("div",{className:"flex spaced center-align vertical-margin",children:[(0,d.jsx)(j.Z,{loading:kn,onClick:xr,children:"Verify"}),(0,d.jsx)(j.Z,{type:"plain",onClick:vr,disabled:Jn>0,children:Jn>0?"Resend code in ".concat(Jn,"s"):"Resend code"})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:M()["success-account-title"],children:"Activate Your Account"}),(0,d.jsx)("p",{className:"normal-text vertical-margin spaced",children:"Your free account is ready. Activate it by verifying your email address."}),(0,d.jsx)(j.Z,{loading:yn,onClick:vr,children:"Activate Account"})]})}),or(null===zn||void 0===zn?void 0:zn.deliveryStatus)&&(0,d.jsx)(h(),{href:"/#",children:(0,d.jsx)("a",{className:M().track,children:"Track Order"})})]})}),(0,d.jsxs)("div",{className:M()["order-summary"],children:[(0,d.jsx)("p",{className:"sub-heading bold",children:"Order Summary"}),ss?(0,d.jsxs)("p",{className:"normal-text",children:["For any issues/enquiries, please email",(0,d.jsx)("a",{href:"mailto:".concat(k.ur),className:"underline blue",children:k.ur})," ","or call/text/whatsapp +234 9112000300, +234 7010006665, +234 7010006664"]}):(0,d.jsx)("p",{className:"normal-text",children:"Payment successful. A copy has been sent to your mail for reference."}),(0,d.jsxs)("div",{className:"vertical-margin spaced center-align",children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Sender's Information"}),(0,d.jsx)("hr",{className:"hr vertical-margin"}),(0,d.jsx)("div",{className:[M()["order-detail"]].join(" "),children:(0,d.jsx)("div",{className:"flex column spaced",children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Name"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.senderName})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Phone Number"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.senderPhoneNumber})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Email"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.senderEmail})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Delivery Date"}),(0,d.jsx)("span",{className:M()["detail-value"],children:null===Ln||void 0===Ln?void 0:Ln.format("DD MMMM, YYYY")})]})]})})})]}),"pick-up"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"vertical-margin spaced center-align",children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Pick Up Location"}),(0,d.jsx)("hr",{className:"hr vertical-margin"}),(0,d.jsx)("div",{className:[M()["order-detail"]].join(" "),children:k.YS[(0,V.UK)(le.pickUpLocation.toLocaleLowerCase())]})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"vertical-margin spaced center-align",children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Receiver's Information"}),(0,d.jsx)("hr",{className:"hr vertical-margin"}),(0,d.jsx)("div",{className:[M()["order-detail"],"flex column spaced"].join(" "),children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Name"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.recipientName})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Phone Number"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.recipientPhoneNumber})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Address"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.recipientHomeAddress})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Residence Type"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.residenceType})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Delivery Instructions"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.deliveryInstruction})]})]})})]}),(0,d.jsxs)("div",{className:"vertical-margin spaced center-align",children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Optional Message"}),(0,d.jsx)("hr",{className:"hr vertical-margin"}),(0,d.jsx)("div",{className:[M()["order-detail"]].join(" "),children:(0,d.jsx)("div",{className:"flex column spaced",children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[le.message&&(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Message"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.message})]}),le.additionalInfo&&(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Additional Info"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.additionalInfo})]}),le.purpose&&(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Purpose"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.purpose})]})]})})})]}),(0,d.jsxs)("div",{className:"vertical-margin spaced center-align",children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Order Details"}),(0,d.jsx)("hr",{className:"hr vertical-margin"}),(0,d.jsx)("div",{className:[M()["order-details"]].join(" "),children:null===zn||void 0===zn||null===(p=zn.orderProducts)||void 0===p?void 0:p.map((function(e,n){return(0,d.jsx)("div",{className:"flex column spaced",children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Name"}),(0,d.jsx)("span",{className:M()["detail-value"],children:e.name})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Qty"}),(0,d.jsx)("span",{className:M()["detail-value"],children:e.quantity})]})]})},n)}))})]}),(0,d.jsx)("p",{className:[M().detail,"margin-bottom"].join(" "),children:"Payment Details"}),(0,d.jsx)("hr",{className:"hr margin-bottom spaced"}),(0,d.jsxs)("div",{className:[M()["order-detail"]].join(" "),children:[(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("strong",{children:"Subtotal"}),(0,d.jsx)("span",{children:(0,W.j$)(ts||0,Tn)})]}),(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("strong",{children:"Coupon"}),(0,d.jsx)("span",{children:(0,W.j$)((null===zn||void 0===zn||null===(S=zn.coupon)||void 0===S?void 0:S.hasBeenUsed)&&(null===zn||void 0===zn?void 0:zn.coupon.discountedAmount)||0,Tn)})]}),(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("div",{children:(0,d.jsx)("strong",{children:"Delivery"})}),(0,d.jsx)("span",{children:(0,W.j$)((null===vs||void 0===vs?void 0:vs.amount)||0,Tn)})]}),(null===zn||void 0===zn?void 0:zn.paymentMethod)&&(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("div",{children:(0,d.jsx)("strong",{children:"Payment Method"})}),(0,d.jsx)("span",{children:k.ld[null===zn||void 0===zn?void 0:zn.paymentMethod]})]}),(0,d.jsx)("hr",{className:"hr margin-bottom spaced"}),(0,d.jsxs)("div",{className:"flex between sub-heading margin-bottom spaced",children:[(0,d.jsx)("span",{children:"Total"}),(0,d.jsx)("span",{className:"bold primary-color",children:(0,W.j$)(js,Tn)})]})]})]})]})]}):(0,d.jsxs)("section",{className:M()["checkout-mobile"],children:[(0,d.jsx)("div",{className:M().tabs,children:ie.map((function(e,n){return(0,d.jsx)("div",{className:[M().tab,An===e.TabKey&&M().active].join(" "),children:e.tabTitle},n)}))}),(0,d.jsxs)("div",{className:M().content,children:[1===An&&(0,d.jsxs)("div",{children:[(0,d.jsx)(h(),{href:qn,children:(0,d.jsx)("a",{className:"margin-bottom spaced",children:"< Back to Shop"})}),"sender-info"===He&&(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"flex align-center between",children:(0,d.jsx)("p",{className:M().title,children:"Sender's Information"})}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Name"}),(0,d.jsx)(y.Z,{name:"name",placeholder:"Name",value:le.senderName,onChange:function(e){return Os("senderName",e)},dimmed:!0,responsive:!0,required:!0})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Email"}),(0,d.jsx)(y.Z,{name:"email",placeholder:"Email",value:le.senderEmail,onChange:function(e){return Os("senderEmail",e)},dimmed:!0,responsive:!0,required:le.freeAccount,onBlurValidation:function(){return(0,F.Le)(le.senderEmail)}})]}),(0,d.jsx)(K.Z,{phoneNumber:le.senderPhoneNumber,countryCode:le.senderCountryCode,onChangePhoneNumber:function(e){return Os("senderPhoneNumber",e)},onChangeCountryCode:function(e){return Os("senderCountryCode",e)},className:"input-group",countryCodePlaceholder:"Code"}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Pickup/Delivery Date"}),(0,d.jsx)(g.Z,{value:Ln,onChange:function(e){return cr(e)},format:"D MMMM YYYY",responsive:!0,disablePastDays:!0,dropdownTop:!0})]}),!Mn&&(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Create Password"}),(0,d.jsx)(y.Z,{name:"password",type:"password",placeholder:"Password",value:le.senderPassword,onChange:function(e){return Os("senderPassword",e)},dimmed:!0,responsive:!0,autoComplete:"new-password",required:le.freeAccount,showPasswordIcon:!0,disabled:!le.freeAccount})]}),!Mn&&(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)(N.Z,{checked:le.freeAccount,onChange:function(e){return Os("freeAccount",e)},text:"Create a Free Account"}),(0,d.jsxs)("p",{className:"flex spaced",children:[(0,d.jsx)("span",{children:"or"}),(0,d.jsx)(j.Z,{type:"plain",onClick:function(){return Yn(!0)},className:"primary-color",children:"Login"})]})]}),(0,d.jsx)(j.Z,{loading:we,onClick:tr,className:"vertical-margin xl",children:"Continue"}),(0,d.jsxs)("p",{className:M().next,children:["Next: ",(0,d.jsx)("strong",{children:"Delivery Type"})]})]}),"delivery-type"===He&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("p",{className:M().title,children:"Sender's Information"}),(0,d.jsx)("strong",{onClick:function(){return Ve("sender-info")},className:"primary-color underline",children:"Edit"})]}),(0,d.jsxs)("div",{className:[M()["sender-info"],"normal-text"].join(" "),children:[le.senderName&&(0,d.jsx)("p",{children:le.
1senderName}),le.senderEmail&&(0,d.jsx)("p",{children:le.senderEmail}),le.senderPhoneNumber&&(0,d.jsx)("p",{children:le.senderPhoneNumber}),Ln&&(0,d.jsx)("p",{children:Ln.format("dddd, MMMM DD YYYY")})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:M().title,children:"Delivery Method"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"margin-top primary-color flex column spaced",children:"delivery"===le.deliveryMethod&&ps.infoTextConfigs.map((function(e){return(0,d.jsx)("em",{children:e.infoText},e.id)}))}),(0,d.jsx)("div",{className:"vertical-margin spaced",children:(0,d.jsx)(b.Z,{label:"Pick Up",onChange:function(){return Os("deliveryMethod","pick-up")},checked:"pick-up"===le.deliveryMethod})}),"pick-up"===le.deliveryMethod&&(0,d.jsxs)("div",{className:M()["pickup-locations"],children:[(0,d.jsx)("p",{className:"align-icon normal-text bold margin-bottom",children:"Pick Up Locations"}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Pick Up State"}),(0,d.jsx)(_.Z,{onSelect:function(e){Os("pickupState",e)},value:le.pickupState,options:k.$c,placeholder:"Select a state",responsive:!0,dimmed:!0})]}),(0,d.jsxs)("div",{className:"margin-top spaced",children:["lagos"===le.pickupState&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{children:(0,d.jsx)(b.Z,{label:"Ikoyi - 81b, Lafiaji Way, Dolphin Estate, Ikoyi, Lagos",onChange:function(){return Os("pickUpLocation","Ikoyi")},checked:"Ikoyi"===le.pickUpLocation})}),(0,d.jsx)("div",{className:"vertical-margin",children:(0,d.jsx)(b.Z,{label:"Lekki - 2C, Seed Education Center Road, off Kusenla Road, Ikate, Lekki",onChange:function(){return Os("pickUpLocation","Lekki")},checked:"Lekki"===le.pickUpLocation})})]}),"abuja"===le.pickupState&&(0,d.jsx)("div",{className:"vertical-margin",children:(0,d.jsx)(b.Z,{label:"Abuja Pickup - 5, Nairobi Street, off Aminu Kano Crescent, Wuse 2, Abuja",onChange:function(){},checked:"Abuja"===le.pickUpLocation})}),"port-harcourt"===le.pickupState&&(0,d.jsx)("div",{className:"vertical-margin",children:(0,d.jsx)(b.Z,{label:"Port Harcourt Pick Up - 12, Ohiamini Street (street beside Royal House of Grace), New GRA, Port Harcourt",onChange:function(){},checked:"Port Harcourt"===le.pickUpLocation})}),"other-locations"===le.pickupState&&(0,d.jsxs)("div",{className:"flex center-align primary-color normal-text margin-bottom spaced",children:[(0,d.jsx)(P.o9,{className:"generic-icon xl"}),(0,d.jsxs)("span",{children:["At the moment, You can only pick up at our Lagos, Abuja and Port Harcourt stores. Kindly contact us on Phone/WhatsApp:",(0,d.jsx)("br",{}),(0,d.jsx)("a",{href:"tel:+2349077777994",className:"clickable neutral underline",children:"+234 9077 777994"})]})]})]})]}),(0,d.jsx)("div",{className:"vertical-margin spaced",children:(0,d.jsx)(b.Z,{label:"Delivery",onChange:function(){return Os("deliveryMethod","delivery")},checked:"delivery"===le.deliveryMethod,disabled:((null===zn||void 0===zn?void 0:zn.amount)||0)<ps.minAmount})}),"delivery"===le.deliveryMethod&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Delivery State"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("state",e)},value:le.state,options:xs,placeholder:"Select a state",responsive:!0,dimmed:!0})]}),le.state&&fs.length>1&&(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Delivery Zones"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("zone",e)},value:le.zone,options:fs,placeholder:"Select a zone",responsive:!0,dimmed:!0,dropdownOnTop:!0,optionColor:"gray-white"})]})]}),"delivery"===le.deliveryMethod&&le.state&&le.zone&&(null===hs||void 0===hs?void 0:hs.stateZoneInfo)&&(0,d.jsxs)("div",{className:M()["state-zone-info"],children:[(0,d.jsx)(P.o9,{}),(0,d.jsx)("span",{children:hs.stateZoneInfo})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:M()["pickup-locations"],children:[((null===hs||void 0===hs||null===(A=hs.priceBreakPoints)||void 0===A?void 0:A.length)||0)>0&&vs&&(0,d.jsxs)("p",{className:"primary-color align-icon normal-text bold margin-bottom",children:[(0,d.jsx)(P.o9,{}),(0,d.jsx)("span",{className:"margin-left",children:"Delivery Locations"})]}),hs&&!vs&&(0,d.jsxs)("div",{className:"flex center-align primary-color normal-text margin-bottom spaced",children:[(0,d.jsx)(P.o9,{className:"generic-icon xl"}),(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:hs.emptyBreakPointsMessage||""}})]}),vs&&(null===hs||void 0===hs||null===(E=hs.priceBreakPoints)||void 0===E?void 0:E.map((function(e){return(0,d.jsx)("div",{className:"vertical-margin spaced",children:(0,d.jsx)(b.Z,{label:"".concat((0,W.j$)(e.amount,Tn)," - ").concat(e.infoText),disabled:e.id!==(null===vs||void 0===vs?void 0:vs.id),checked:e.id===(null===vs||void 0===vs?void 0:vs.id)})},e.id)})))]})]})]}),(0,d.jsx)(j.Z,{onClick:function(){rr()&&Ve("delivery"===le.deliveryMethod?"receiver":"customization-message")},className:"vertical-margin xl",responsive:!0,children:"Continue"}),(0,d.jsxs)("p",{className:M().next,children:["Next:"," ",(0,d.jsx)("strong",{children:"delivery"===le.deliveryMethod?"Receiver's Information":"Customization Message"})]})]}),"receiver"===He&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("p",{className:M().title,children:"Sender's Information"}),(0,d.jsx)("strong",{onClick:function(){return Ve("sender-info")},className:"primary-color underline",children:"Edit"})]}),(0,d.jsxs)("div",{className:[M()["sender-info"],"normal-text"].join(" "),children:[le.senderName&&(0,d.jsx)("p",{children:le.
1senderName}),le.senderEmail&&(0,d.jsx)("p",{children:le.senderEmail}),le.senderPhoneNumber&&(0,d.jsx)("p",{children:le.senderPhoneNumber}),Ln&&(0,d.jsx)("p",{children:Ln.format("dddd, MMMM DD YYYY")})]}),le.deliveryMethod&&(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("p",{className:M().title,children:"Delivery Type"}),(0,d.jsx)("strong",{onClick:function(){return Ve("delivery-type")},className:"primary-color underline",children:"Edit"})]}),"delivery"===le.deliveryMethod&&le.state&&(0,d.jsxs)("div",{className:"".concat(M()["sender-info"]," normal-text flex between"),children:[(0,d.jsx)("p",{children:"Delivery"}),le.state&&(0,d.jsx)("p",{className:"capitalize",children:le.state})]}),"pick-up"===le.deliveryMethod&&le.pickUpLocation&&(0,d.jsxs)("div",{className:"".concat(M()["sender-info"]," normal-text flex between"),children:[(0,d.jsx)("p",{children:"Pick Up"}),(0,d.jsx)("p",{children:le.pickUpLocation})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:M().title,children:"Receiver's Information"}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsxs)("span",{className:"question flex spaced",children:[(0,d.jsx)("span",{children:"Select A Past Recipient "}),Mn?(0,d.jsx)("em",{className:"normal",children:"(if available)"}):(0,d.jsxs)("span",{className:"normal flex spaced",children:["(",(0,d.jsx)("button",{onClick:function(){return Yn(!0)},className:"primary-color bold",type:"button",children:"Login"}),(0,d.jsx)("span",{children:"to use"}),")"]})]}),(0,d.jsx)(_.Z,{onSelect:function(e){rn((null===Mn||void 0===Mn?void 0:Mn.recipients.find((function(n){return n.id===e})))||null)},value:sn?sn.id:"",options:lr,placeholder:"Select Past Recipient",responsive:!0,dimmed:!0,optionColor:"gray-white",onDelete:function(e){return is(e)}})]}),(0,d.jsxs)("div",{className:"flex center-align spaced vertical-margin",children:[(0,d.jsx)("span",{className:M()["line-through"]}),(0,d.jsx)("span",{children:"OR"}),(0,d.jsx)("span",{className:M()["line-through"]})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Full Name"}),(0,d.jsx)(y.Z,{name:"name",placeholder:"Enter recipient name",value:le.recipientName,onChange:function(e){return Os("recipientName",e)},dimmed:!0,responsive:!0})]}),(0,d.jsx)(K.Z,{phoneNumber:le.recipientPhoneNumber,countryCode:le.recipientCountryCode,onChangePhoneNumber:function(e){return Os("recipientPhoneNumber",e)},onChangeCountryCode:function(e){return Os("recipientCountryCode",e)},className:"input-group",question:"Receiver Phone number",countryCodePlaceholder:"Code"}),(0,d.jsx)(K.Z,{phoneNumber:le.recipientPhoneNumberAlt,countryCode:le.recipientCountryCodeAlt,onChangePhoneNumber:function(e){return Os("recipientPhoneNumberAlt",e)},onChangeCountryCode:function(e){return Os("recipientCountryCodeAlt",e)},className:"input-group",question:"Enter alternative phone (if available)",countryCodePlaceholder:"Code"}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Residence Type"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("residenceType",e)},value:le.residenceType,options:Je,placeholder:"Select a residence type",responsive:!0,dimmed:!0})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Detailed Address"}),(0,d.jsx)(y.K,{value:le.recipientHomeAddress,placeholder:"To help us deliver better, please be detailed as possible",onChange:function(e){return Os("recipientHomeAddress",e)},dimmed:!0,rows:3})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Any Delivery Instructions"}),(0,d.jsx)(y.K,{value:le.deliveryInstruction,placeholder:"e.g. Ask for security guard called Segun",onChange:function(e){return Os("deliveryInstruction",e)},dimmed:!0,rows:3})]})]}),(0,d.jsx)(j.Z,{onClick:function(){ar()&&Ve("customization-message")},className:"vertical-margin xl",responsive:!0,children:"Continue"}),(0,d.jsxs)("p",{className:M().next,children:["Next: ",(0,d.jsx)("strong",{children:"Customize Message"})]})]})]}
1),"customization-message"===He&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("p",{className:M().title,children:"Sender's Information"}),(0,d.jsx)("strong",{onClick:function(){return Ve("sender-info")},className:"primary-color underline",children:"Edit"})]}),(0,d.jsxs)("div",{className:[M()["sender-info"],"normal-text"].join(" "),children:[le.senderName&&(0,d.jsx)("p",{children:le.senderName}),le.senderEmail&&(0,d.jsx)("p",{children:le.senderEmail}),le.senderPhoneNumber&&(0,d.jsx)("p",{children:le.senderPhoneNumber}),Ln&&(0,d.jsx)("p",{children:Ln.format("dddd, MMMM DD YYYY")})]}),le.deliveryMethod&&(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("p",{className:M().title,children:"Delivery Type"}),(0,d.jsx)("strong",{onClick:function(){return Ve("delivery-type")},className:"primary-color underline",children:"Edit"})]}),"delivery"===le.deliveryMethod&&le.state&&(0,d.jsxs)("div",{className:"".concat(M()["sender-info"]," normal-text flex between"),children:[(0,d.jsx)("p",{children:"Delivery"}),le.state&&(0,d.jsx)("p",{className:"capitalize",children:le.state})]}),"pick-up"===le.deliveryMethod&&le.pickUpLocation&&(0,d.jsxs)("div",{className:"".concat(M()["sender-info"]," normal-text flex between"),children:[(0,d.jsx)("p",{children:"Pick Up"}),(0,d.jsx)("p",{children:le.pickUpLocation})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("p",{className:M().title,children:"Receiver's Information"}),(0,d.jsx)("strong",{onClick:function(){return Ve("receiver")},className:"primary-color underline",children:"Edit"})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"".concat(M()["sender-info"]," normal-text"),children:[(0,d.jsx)("p",{children:le.recipientName}),(0,d.jsx)("p",{className:M().grayed,children:"Pickup/Delivery Date"}),(0,d.jsx)("p",{children:null===Ln||void 0===Ln?void 0:Ln.format("YYYY-MM-DD")}),(0,d.jsx)("p",{children:le.recipientPhoneNumber}),(0,d.jsx)("p",{className:M().grayed,children:"Alternative Number"}),(0,d.jsx)("p",{children:le.recipientPhoneNumberAlt}),(0,d.jsx)("p",{children:le.recipientHomeAddress}),(0,d.jsx)("p",{className:M().grayed,children:"Delivery Instructions"}),(0,d.jsx)("p",{children:le.deliveryInstruction})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:M().title,children:"Optional Message"}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Message to include"}),(0,d.jsx)(y.K,{value:le.message,placeholder:"Eg: I love you",onChange:function(e){return Os("message",e)},dimmed:!0,rows:3})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Additional Information for Us"}),(0,d.jsx)(y.K,{value:le.additionalInfo,onChange:function(e){return Os("additionalInfo",e)},dimmed:!0,rows:3})]}),(0,d.jsxs)("div",{className:"input-group",children:[(0,d.jsx)("span",{className:"question",children:"Purpose"}),(0,d.jsx)(_.Z,{onSelect:function(e){return Os("purpose",e)},value:le.purpose,options:Ge,placeholder:"Select Purpose",responsive:!0,dimmed:!0})]}),(0,d.jsx)(j.Z,{buttonType:"submit",className:"vertical-margin xl",loading:ge,responsive:!0,children:"Continue"}),(0,d.jsxs)("p",{className:M().next,children:["Next: ",(0,d.jsx)("strong",{children:"Payment"})]})]})]}),(0,d.jsxs)("div",{className:M().footer,children:[(0,d.jsx)("p",{className:"margin-bottom",children:"Accepted Payment"}),(0,d.jsxs)("div",{className:"".concat(M()["accepted-payments"]," flex between"),children:[(0,d.jsx)("img",{src:"/icons/visa.svg",alt:"visa",className:"generic-icon large"}),(0,d.jsx)("img",{src:"/icons/master-card.svg",alt:"master card",className:"generic-icon large"}),(0,d.jsx)("img",{src:"/icons/paypal-blue.svg",alt:"paypal",className:"generic-icon large"}),(0,d.jsx)("img",{src:"/icons/paystack.png",alt:"pay stack",className:"generic-icon large"})]})]})]}),2===An&&(0,d.jsxs)("div",{className:M()["payment-tab"],children:[(0,d.jsx)("button",{onClick:function(){return En(1)},className:"margin-bottom",children:"<< Back To Checkout"}),(0,d.jsxs)("div",{className:"".concat(M().border," padded"),children:[(0,d.jsxs)("div",{className:"flex between ",children:[(0,d.jsx)("span",{className:"normal-text",children:"Sub Total"}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)(ts,Tn)})]}),(0,d.jsxs)("div",{className:"flex center-align",children:[(0,d.jsx)("div",{className:"input-group",children:(0,d.jsx)(y.Z,{placeholder:"Enter Coupon Code",value:Gn,onChange:function(e){return $n(e)},dimmed:!0,responsive:!0})}),(0,d.jsx)(j.Z,{className:M()["apply-btn"],onClick:function(){return Us()},loading:_e,disabled:""===Gn,children:_e?"Applying...":"Apply"})]}),(null===zn||void 0===zn?void 0:zn.coupon)&&(0,d.jsxs)("div",{className:"flex between margin-bottom",children:[(0,d.jsxs)("span",{className:"normal-text flex",children:["Discount"," ",(0,d.jsx)("span",{onClick:ds,className:"primary-color semibold margin-left clickable",children:ge?(0,d.jsx)("img",{src:"/icons/loading-icon-white.svg",alt:"loading",className:[M().loader,ge&&M().active].join(" ")}):"X"})]}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)(zn.coupon.discountedAmount,Tn)})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"flex between",children:[(0,d.jsx)("span",{className:"normal-text",children:"Delivery"}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)((null===vs||void 0===vs?void 0:vs.amount)||0,Tn)})]}),(0,d.jsx)("br",{}),(0,d.jsx)("hr",{className:"hr"}),(0,d.jsxs)("div",{className:"flex between vertical-margin",children:[(0,d.jsx)("span",{className:"normal-text",children:"Total"}),(0,d.jsx)("span",{className:"normal-text bold",children:(0,W.j$)(js||0,Tn)})]})]}),(0,d.jsxs)("div",{className:M().padding,children:[(0,d.jsxs)("div",{className:"flex spaced-lg column margin-bottom",children:[(0,d.jsxs)("p",{className:"normal-text bold vertical-margin spaced",children:["Select your"," ","".concat(On.length>1?"preferred currency":"preferred payment method")]}),(0,d.jsx)("div",{className:"flex spaced-lg",children:On.map((function(e,n){return(0,d.jsx)("button",{onClick:function(){return In(e)},className:[M().currency,Tn.name===e.name&&M().active].join(" "),type:"button",children:e.sign},n)}))})]}),us.map((function(e){return(0,d.jsxs)("p",{className:"".concat(M().info," flex center-align spaced margin-bottom"),children:[(0,d.jsx)(P.sz,{fill:"#1C6DD0"})," ",(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:e.content}})]},e.id)})),(0,d.jsxs)("div",{className:M()["payment-methods"],children:[hr.map((function(e,n){var s;return(0,d.jsx)("div",{children:(0,d.jsx)("div",{className:[M().method,!e.supportedCurrencies.includes(Tn.name)&&M().inactive,te.includes(e.paymentName)&&!e.supportedCurrencies.includes(Tn.name)&&M().remove].join(" "),onClick:e.supportedCurrencies.includes(Tn.name)?function(){return fr[e.paymentName]()}:void 0,title:e.supportedCurrencies.includes(Tn.name)?"":"This payment method does not support ".concat(Tn.name),children:(0,d.jsxs)("div",{className:"flex spaced-lg center-align",children:[e.icon,(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"normal-text bold margin-bottom",children:e.title}),(0,d.jsx)("p",{children:e.info}),(0,d.jsx)("div",{className:"flex spaced center-align",children:null===(s=e.other)||void 0===s?void 0:s.map((function(e,n){return(0,d.jsx)("div",{children:e.icon},n)}))})]})]})})},n)})),pr&&(0,d.jsx)(j.Z,{className:M()["btn-view"],onClick:function(){return pn((function(e){return!e}))},children:mn?"See Less Payment Options":"More Payment Options"})]}),(0,d.jsxs)("div",{className:M().security,children:[" ",(0,d.jsx)("div",{className:M()["lock-icon"],children:(0,d.jsx)("img",{src:"icons/lock.svg",className:"generic-icon small ",alt:"lock"})})," ","We protect your payment information using encryption to provide bank-level security."]})]})]}),3===An&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsxs)("div",{className:M()["order-received"],children:[ss?(0,d.jsx)("p",{children:"Order Received Pending Payment Confirmation"}):(0,d.jsx)("p",{children:"Order Received Successfully"}),(0,d.jsxs)("p",{className:M()["order-number"],children:["Order No:"," ",(0,d.jsx)("span",{className:[M().bold,"primary-color"].join(" "),children:null===zn||void 0===zn?void 0:zn.fullOrderId})," "]})]}),or(null===zn||void 0===zn?void 0:zn.deliveryStatus)&&(0,d.jsx)("div",{className:"".concat(M()["order-info"]),children:(0,d.jsx)("p",{children:"Your order was received, please check your mail for order confirmation."})}),(0,d.jsxs)("div",{className:"flex column center-align spaced normal-text ".concat(M()["order-info"]),children:[ss&&(0,d.jsxs)("p",{children:["For any issues/enquiries, please email",(0,d.jsx)("a",{href:"mailto:".concat(k.ur),className:"underline blue",children:k.ur})," ","or call/text/whatsapp +234 9112000300, +234 7010006665, +234 7010006664"]}),(0,d.jsx)("p",{children:"Your order was received, please note your order number in every correspondence with us."}),(0,d.jsxs)("div",{className:"flex spaced",children:[(0,d.jsx)("img",{src:"icons/info.svg",alt:"information",className:["generic-icon",M().icon].join(" ")}),(0,d.jsx)("p",{children:"If your order is a pickup, please mention your order number on arrival."})]}),k.YS[(0,V.UK)(le.pickUpLocation)]]}),(0,d.jsxs)("div",{className:M()["track-order"],children:["Want to track y
1our order?",(0,d.jsx)(j.Z,{url:"/order-tracker/result?orderNumber=".concat(null===zn||void 0===zn?void 0:zn.fullOrderId),type:"accent",className:M()["track-order-btn"],children:"Track Order"})]})]}),(0,d.jsxs)("div",{className:M()["order-summary-mobile"],children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Sender's Information"}),(0,d.jsx)("div",{className:[M()["order-details"]].join(" "),children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Name"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.senderName})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Phone Number"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.senderPhoneNumber})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Email"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.senderEmail})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Delivery Date"}),(0,d.jsx)("span",{className:M()["detail-value"],children:null===Ln||void 0===Ln?void 0:Ln.format("DD MMMM, YYYY")})]})]})}),"pick-up"===le.deliveryMethod&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Pick Up Location"}),(0,d.jsx)("div",{className:[M()["order-details"]].join(" "),children:(0,d.jsx)("div",{className:M()["order-detail"],children:k.YS[(0,V.UK)(null===(L=le.pickUpLocation)||void 0===L?void 0:L.toLowerCase())]})})]}),"delivery"===le.deliveryMethod&&(0,d.jsxs)("div",{className:"vertical-margin",children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Receiver's Information"}),(0,d.jsx)("div",{className:[M()["order-details"]].join(" "),children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Name"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.recipientName})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Phone Number"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.recipientPhoneNumber})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Address"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.recipientHomeAddress})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Residence Type"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.residenceType})]}),le.deliveryInstruction&&(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Delivery Instructions"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.deliveryInstruction})]})]})})]}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Optional Message"}),(0,d.jsx)("div",{className:[M()["order-details"]].join(" "),children:(0,d.jsxs)("div",{className:M()["order-detail"],children:[le.message&&(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Message"}),(0,d.jsx)("span",{className:M()["detail-value"],dangerouslySetInnerHTML:rs})]}),le.additionalInfo&&(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Additional Info"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.additionalInfo})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Purpose"}),(0,d.jsx)("span",{className:M()["detail-value"],children:le.purpose})]})]})})]}),(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Order Details"}),(0,d.jsx)("div",{className:[M()["order-details"]].join(" "),children:null===zn||void 0===zn||null===(R=zn.orderProducts)||void 0===R?void 0:R.map((function(e,n){return(0,d.jsxs)("div",{className:M()["order-detail"],children:[(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Name"}),(0,d.jsx)("span",{className:M()["detail-value"],children:e.name})]}),(0,d.jsxs)("span",{className:"flex between",children:[(0,d.jsx)("strong",{children:"Qty"}),(0,d.jsx)("span",{className:M()["detail-value"],children:e.quantity})]})]},n)}))}),(0,d.jsx)("div",{className:"flex between vertical-margin spaced center-align",children:(0,d.jsx)("p",{className:[M().detail].join(" "),children:"Payment Details"})}),(0,d.jsxs)("div",{className:[M()["order-details"]].join(" "),children:[(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("strong",{className:M().grayed,children:"Subtotal"}),(0,d.jsx)("span",{className:M()["detail-value"],children:(0,W.j$)(ts,Tn)})]}),(0,d.jsxs)("div",{className:"flex between margin-bottom spaced",children:[(0,d.jsx)("div",{children:(0,d.jsx)("strong",{className:M().grayed,children:"Delivery"})}),(0,d.jsx)("span",{className:M()["detail-value"],children:(0,W.j$)((null===vs||void 0===vs?void 0:vs.amount)||0,Tn)})]}),(null===zn||void 0===zn?void 0:zn.paymentMethod)&&(0,d.jsxs)("div",{className:"flex between small-text margin-bottom spaced",children:[(0,d.jsx)("div",{children:(0,d.jsx)("strong",{className:M().grayed,children:"Payment Method"})}),(0,d.jsx)("span",{className:"bold",children:k.ld[null===zn||void 0===zn?void 0:zn.paymentMethod]})]}),(0,d.jsx)("hr",{className:"hr margin-bottom spaced"}),(0,d.jsxs)("div",{className:"flex between sub-heading margin-bottom spaced small-text",children:[(0,d.jsx)("span",{children:"Total"}),(0,d.jsx)("span",{className:"bold primary-color",children:(0,W.j$)(js||0,Tn)})]})]})]}),!Mn&&(0,d.jsxs)("div",{className:M()["success-account-wrapper"],children:[(0,d.jsx)("p",{className:M()["success-account-title"],children:"Create a Free Account"}),(0,d.jsx)("p",{className:"normal-text vertical-margin spaced",children:"Manage orders, address book and save time when checking out by creating a free account today!"}),(0,d.jsx)(j.Z,{onClick:function(){return Yn(!0)},children:"Create a Free Account"})]}),(0,d.jsxs)("div",{className:M()["done-footer"],children:[(0,d.jsx)(j.Z,{responsive:!0,className:M()["shopping-btn"],onClick:function(){return ks.push("/product-category/bouquets")},children:"Continue Shopping"}),or(null===zn||void 0===zn?void 0:zn.deliveryStatus)&&(0,d.jsx)(h(),{href:"#",children:(0,d.jsx)("a",{className:M().track,children:"Track Order"})})]})]})]})]}),"mobile"===ns&&Mn&&!(null===Mn||void 0===Mn?void 0:Mn.isVerified)&&le.freeAccount&&(0,d.jsx)(Y.Z,{visible:Zn,cancel:function(){return Pn(!1)},width:"32rem",children:(0,d.jsx)("div",{className:M()["account-activation-modal"],children:jn?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:M().title,children:"Verify Your Email"}),(0,d.jsxs)("p",{className:"normal-text vertical-margin spaced",children:["We've sent a code to"," ",(0,d.jsx)("span",{className:"primary-color",children:le.
1senderEmail}),". Enter it below to activate your account."]}),(0,d.jsx)("div",{className:M()["otp-input-row"],children:(0,d.jsx)(y.Z,{value:vn,onChange:xn,placeholder:"Enter OTP",responsive:!0})}),(0,d.jsx)(j.Z,{loading:kn,onClick:xr,responsive:!0,className:"vertical-margin spaced",children:"Verify"}),(0,d.jsx)(j.Z,{type:"plain",onClick:vr,disabled:Jn>0,centered:!0,children:Jn>0?"Resend code in ".concat(Jn,"s"):"Resend code"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:M().title,children:"Activate Your Account"}),(0,d.jsx)("p",{className:"normal-text vertical-margin spaced",children:"Your account is ready. Activate it by verifying your email address."}),(0,d.jsx)(j.Z,{loading:yn,onClick:vr,responsive:!0,children:"Activate Account"})]})})}),(0,d.jsx)(oe,{visible:Se,cancel:function(){return Me(!1)},order:zn,total:js,onComplete:cs}),(0,d.jsx)(de,{visible:Ie,cancel:function(){return Oe(!1)},transferName:Le,setShowPaymentDetails:function(){return Ye(!0)}})]}),(0,d.jsx)(me,{visible:qe,cancel:function(){return Ye(!1)},onCompleted:cs,transferName:Le})]})}},6308:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _swc_helpers_src_object_spread_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6042),_swc_helpers_src_object_spread_props_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9396),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7294),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6026),_context_SettingsContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2159),getPagaCheckout=function(){var pagaCheckout=eval("typeof PagaCheckout !== 'undefined' ? PagaCheckout : undefined");return pagaCheckout},cache=new Map,src="".concat("https://checkout.paga.com","/checkout/inline-js"),usePaga=function(){var e=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),n=e[0],s=e[1],r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),a=r[0],i=r[1],t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SettingsContext__WEBPACK_IMPORTED_MODULE_2__.Z).order;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){if(t){if(!getPagaCheckout()&&!cache.get(src)){var e=function(){s(Boolean(getPagaCheckout()))},n=function(e){return i(e.message)},r=document.createElement("script");return r.src=src,r.setAttribute("data-charge_url","".concat(window.location.origin,"/checkout")),r.setAttribute("data-callback_url","https://regal-operations-staging.appspot.com/v1/payments/webhooks/paga?business=regalFlowers"),document.body.appendChild(r),r.addEventListener("load",e),r.addEventListener("error",n),cache.set(src,!0),function(){r.removeEventListener("load",e),r.removeEventListener("error",n)}}s(!0)}}),[null===t||void 0===t?void 0:t.id]);return{isPagaReady:n,initializePaga:function(e){var n=getPagaCheckout();if(n){var s=(0,_swc_helpers_src_object_spread_props_mjs__WEBPACK_IMPORTED_MODULE_3__.Z)((0,_swc_helpers_src_object_spread_mjs__WEBPACK_IMPORTED_MODULE_4__.Z)({},e),{display_image:"".concat(_constants__WEBPACK_IMPORTED_MODULE_1__.B5,"/icons/favicon.png")});n.setOptions(s),n.openCheckout()}else console.warn("Paga Checkout is not yet initialized")},initErrorMessage:a}};__webpack_exports__.Z=usePaga},6847:function(e){e.exports={radio:"Radio_radio__tMrOb",wrapper:"Radio_wrapper__Ld54T","radio-icon":"Radio_radio-icon__fMiCf",disabled:"Radio_disabled__4MKoY",inline:"Radio_inline__Ey2S1",responsive:"Radio_responsive__xY89C",bordered:"Radio_bordered__PETUI",right:"Radio_right___5rwF",subtitle:"Radio_subtitle__O3zDo",label:"Radio_label__ePj5e"}},306:function(e){e.exports={"checkout-page":"checkout_checkout-page__LbGYJ",fadein:"checkout_fadein__aD_hX",invalid:"checkout_invalid___BxBI","checkout-wrapper":"checkout_checkout-wrapper__Rx1s3",password:"checkout_password__1drZ_","payment-info":"checkout_payment-info__zZxoz","payment-info-span":"checkout_payment-info-span__FG5fG",left:"checkout_left__bYVbk",right:"checkout_right__SukI0","apply-btn":"checkout_apply-btn__0iwl0",hr:"checkout_hr__2rDpR","delivey-method":"checkout_delivey-method__ZHhSv","method-title":"checkout_method-title__RAMS9",method:"checkout_method__4DzJu",active:"checkout_active__Ef8So",border:"checkout_border__A_gX4",padding:"checkout_padding__YMNav","pickup-locations":"checkout_pickup-locations__t_Y8X","line-through":"checkout_line-through__rVeFb",currency:"checkout_currency__suMuc",info:"checkout_info__maSPy","payment-methods":"checkout_payment-methods__e8wc_",inactive:"checkout_inactive__ssHWQ",remove:"checkout_remove__t8d21","method-input":"checkout_method-input__svXf8",security:"checkout_security__wiPtc","lock-icon":"checkout_lock-icon__47McA","completed-checkout-wrapper":"checkout_completed-checkout-wrapper__V_3WR","complete-checkout":"checkout_complete-checkout__UJWzF","complete-image":"checkout_complete-image__r5rCR","order-received":"checkout_order-received__zTAaO","order-number":"checkout_order-number__d_d_G",bold:"checkout_bold__bLBLL","order-info":"checkout_order-info__grsQe",icon:"checkout_icon__MjryU","account-wrapper":"checkout_account-wrapper__5qvG8",track:"checkout_track__T0x8L","order-summary":"checkout_order-summary__601DA",detail:"checkout_detail__RoJqW","order-detail":"checkout_order-detail__d1c48","circle-outline":"checkout_circle-outline__F13rG",vertical:"checkout_vertical__Kb60_",horizontal:"checkout_horizontal__yrUBE","order-image":"checkout_order-image__HpYHd","addon-image":"checkout_addon-image__tih4N","light-gray":"checkout_light-gray__mR2tT",loader:"checkout_loader__ji7Qw","load-intro":"checkout_load-intro__YJS7Q","checkout-mobile":"checkout_checkout-mobile__5dmzh",content:"checkout_content__fDMnX",tabs:"checkout_tabs__vDpYH",tab:"checkout_tab__NFTgo",title:"checkout_title__llZz9",next:"checkout_next__Ve39Q",grayed:"checkout_grayed__Sb557","sender-info":"checkout_sender-info__aHE5J","order-summary-mobile":"checkout_order-summary-mobile__ug2bt","order-details":"checkout_order-details__rE27k","success-account-title":"checkout_success-account-title__aZSDg","success-account-description":"checkout_success-account-description__ezZHJ","success-account-btn":"checkout_success-account-btn__raUc5","otp-input-row":"checkout_otp-input-row__RP6WX","done-footer":"checkout_done-footer__T_fbc","shopping-btn":"checkout_shopping-btn__FHJxS","detail-value":"checkout_detail-value__tvE56","details-wrapper":"checkout_details-wrapper__ovwRn",details:"checkout_details__BZmwG",bitcoinTransfer:"checkout_bitcoinTransfer__2td9I","coupon-loader":"checkout_coupon-loader__bUXeY","min-amount-info":"checkout_min-amount-info__DkZ3q","state-zone-info":"checkout_state-zone-info__NCCEu","track-order":"checkout_track-order__OMfh0","track-order-btn":"checkout_track-order-btn__HfpLG","btn-view":"checkout_btn-view__zSVuY","account-activation-modal":"checkout_account-activation-modal__CED6K","success-account-wrapper":"checkout_success-account-wrapper__F3knM"}}},function(e){e.O(0,[696,791,662,774,888,179],(function(){return n=7250,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.