1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7bbca4c9-8daf-46d4-9526-0e1bd543336a",e._sentryDebugIdIdentifier="sentry-dbid-7bbca4c9-8daf-46d4-9526-0e1bd543336a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3170],{27259:function(e,n){"use strict";n.Z={src:"/_next/static/media/icon-successful.e5ed35ae.svg",height:64,width:64,blurWidth:0,blurHeight:0}},75427:function(e,n){"use strict";n.Z={src:"/_next/static/media/icon-unsuccessful.26229bb1.svg",height:64,width:64,blurWidth:0,blurHeight:0}},27167:function(e,n){"use strict";n.Z={src:"/_next/static/media/logo-heroplus-ABetterWayToPay.ed2fb3b6.png",height:661,width:2624,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAHlBMVEUfHx8jIyMhISH///////9paWknJydra2va2to8PDzECe7iAAAACnRSTlNmNUNkTC4NQBVhmo/9jwAAAAlwSFlzAABuugAAbroB1t6xFwAAABpJREFUeJxjYGBiYOBkZmFmYGNkYmRkZecAAAGGADWZXrHyAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},27624:function(e,n,a){"use strict";a.d(n,{Z:function(){return m}});var t=a(85893),r=a(7982),s=a(90512),l=a(25675),i=a.n(l),o=a(11163),c=a(67294),d=a(44012),u={src:"/_next/static/media/icon-language.88e7c7a4.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEV/f395eXmAgICBgYGAgIB9fX1+fn6FhYWCgoKhXlvbAAAACXRSTlOhAbkdJdeNLC1hFYj6AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAK0lEQVR4nEWLOQ4AIAyAoIf6/xe7GLuRAKhVKibdpBgBEXJgLdgDX0389gsTtwCLwfIpNwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8};function m(e){var n,a;let{regionLocalesMapping:l}=e,m=(0,o.useRouter)(),{locale:p}=m,[h,y]=(0,c.useState)(!1),f=null==p?void 0:p.split("-")[0],_=null!==(a=null==p?void 0:p.split("-")[1])&&void 0!==a?a:"HK";return(0,c.useEffect)(()=>{y(!1)},[p]),(0,t.jsx)(r.d,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:()=>{y(!1)},children:(0,t.jsx)("div",{className:"payemnt-link-locale-setting-section flex-1",children:(0,t.jsxs)("div",{className:"locale-switch-wrapper",onClick:()=>{y(!0)},children:[(0,t.jsx)("div",{className:"payment-link-locale-switch-wrapper",children:(0,t.jsxs)("button",{className:"btn-locale-swicth",children:[(0,t.jsx)(i(),{className:"icon-global",src:u,alt:"Click here to switch language"}),(0,t.jsx)("span",{className:"current-locale-text",children:(0,t.jsx)(d.Z,{id:"locale.".concat(f),defaultMessage:"locale.".concat(f),description:"locale.".concat(f)})})]})}),(0,t.jsx)("div",{className:"locale-menu-list-wrapper",style:{display:h?"flex":"none"},children:(0,t.jsx)("ul",{className:"locale-menu-list",children:null===(n=l[_])||void 0===n?void 0:n.map((e,n)=>{let a=null==e?void 0:e.split("-")[0];return(0,t.jsx)("li",{className:(0,s.Z)("locale-menu-list-item",{active:e===p}),onClick:()=>{y(!1),m.replace(null==m?void 0:m.asPath,null==m?void 0:m.asPath,{locale:e})},children:(0,t.jsx)(d.Z,{id:"locale.".concat(a),defaultMessage:"locale.".concat(a),description:"locale.".concat(a)})},"locale-menu-item-".concat(n))})})})]})})})}},46451:function(e,n,a){"use strict";var t=a(85893),r=a(5616),s=a(15861),l=a(69417),i=a(25675),o=a.n(i);a(67294);var c=a(44012),d=a(75427);n.Z=e=>{var n;let{onBackClick:a}=e;return(0,t.jsxs)(r.Z,{sx:{alignSelf:"stretch",flex:1,py:"64px",px:"24px",background:"white",borderRadius:1,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","@media (max-width: 594px)":{px:"16px"}},children:[(0,t.jsx)(r.Z,{sx:{width:64,height:64,position:"relative"},children:(0,t.jsx)(o(),{src:null===(n=d.Z)||void 0===n?void 0:n.src,alt:"failure icon",width:64,height:64})}),(0,t.jsxs)(r.Z,{sx:{alignSelf:"stretch",marginTop:"16px",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},children:[(0,t.jsx)(s.Z,{sx:{alignSelf:"stretch",textAlign:"center",color:"#212121",fontSize:18,fontWeight:700,lineHeight:"24px",wordWrap:"break-word"},children:(0,t.jsx)(c.Z,{id:"payment-result.transaction_delivery_failed",defaultMessage:"Transaction Record Delivery Failed"})}),(0,t.jsx)(s.Z,{sx:{alignSelf:"stretch",textAlign:"center",color:"#7E7E7E",fontSize:14,fontWeight:400,lineHeight:"20px",wordWrap:"break-word",marginTop:"8px"},children:(0,t.jsx)(c.Z,{id:"payment-result.transaction_delivery_failed_prompt",defaultMessage:"We were unable to send the transaction record. Please try again."})})]}),(0,t.jsxs)(r.Z,{sx:{alignSelf:"stretch",display:"flex",justifyContent:"space-between",gap:"16px",marginTop:"24px"},children:[(0,t.jsx)(l.Z,{fullWidth:!0,variant:"outlined",sx:{height:48,borderColor:"#D6D6D6",color:"#7E7E7E",textTransform:"none",fontWeight:500,fontSize:16,borderRadius:"6px",":hover":{background:"var(--Button-Surface-button-surface-transparent-hover, rgba(0, 0, 0, 0.02))",border:"1px solid var(--Boarder-boarder-primary, #D6D6D6)"}},onClick:a,children:(0,t.jsx)(c.Z,{id:"payment-result.back",defaultMessage:"Back"})}),(0,t.jsx)(l.Z,{fullWidth:!0,variant:"contained",sx:{height:48,backgroundColor:"var(--btn-brand, #FF9E0C)",textTransform:"none",fontWeight:500,fontSize:16,borderRadius:"6px",":hover":{background:"var(--btn-brand-hover, #FFAA2B)"}},children:(0,t.jsx)(c.Z,{id:"payment-result.try_again",defaultMessage:"Try Again"})})]})]})}},37864:function(e,n,a){"use strict";a.d(n,{Z:function(){return q}});var t=a(85893),r=a(18979),s=a(8260),l=a(99686),i=a(11163),o=a(67294),c=a(35005),d=a(36968),u=a(86896),m=a(44012),p=a(86602),h=a(43205),y=a(27484),f=a.n(y);function _(e){var n,a,r,s,l,i,o,c;let{order:d}=e,h=(0,u.Z)();if(null==d)return null;let y=d.interval,_=d.prorate,v=(null==d?void 0:d.iterations)===0,g="week"===y?h.formatMessage({id:"payment_link.order_summary.subscription.day_of_week.".concat(d.interval_config.day_of_week)}):null,b="month"===y?h.formatMessage({id:"payment_link.order_summary.subscription.day_of_month.".concat(d.interval_config.day_of_month)}):"year"===y?h.formatMessage({id:"payment_link.order_summary.subscription.day_of_month.".concat(f()(d.start_date).date())}):null,x="year"===y?h.formatMessage({id:"payment_link.order_summary.subscription.month.".concat(f()(d.start_date,"DD/MM/YYYY").month()+1)}):null,A=(null==d?void 0:d.interval)==="week"&&(null==d?void 0:null===(n=d.interval_config)||void 0===n?void 0:n.day_of_week)==null,w=(null==d?void 0:d.interval)==="month"&&(null==d?void 0:null===(a=d.interval_config)||void 0===a?void 0:a.day_of_month)==null,q=A||w||!(null==d?void 0:d.first_cycling_date);return q?(0,t.jsx)(m.Z,{id:(null==d?void 0:d.interval)==="week"?"payment_link.success.weekly_recurring_payments":"payment_link.success.monthly_recurring_payments",values:{currency:null==d?void 0:d.currency,amount:(0,p.Bg)(null==d?void 0:d.first_payment_amount),next_cycle_date:f()(null!==(s=null===(r=d.next_upcoming_purchase)||void 0===r?void 0:r.created_at)&&void 0!==s?s:d.first_cycling_date).format("DD/MM/YY"),interval_count:d.interval_count,cycles_remaining:d.iterations-1}}):_?(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_successful.page.subtitle.recurring.prorated.".concat(y).concat(v?".unlimited":""),values:{currency:d.currency,total_amount:(0,p.xG)(d.total_amount),first_payment_amount:(0,p.xG)(d.first_payment_amount),next_cycle_date:f()(null!==(i=null===(l=d.next_upcoming_purchase)||void 0===l?void 0:l.created_at)&&void 0!==i?i:d.first_cycling_date).format("DD/MM/YY"),interval_count:d.interval_count,day_of_week:g,day_of_month:b,month:x,cycles_remaining:d.iterations-1}}):(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_successful.page.subtitle.recurring.".concat(y).concat(v?".unlimited":""),values:{currency:d.currency,total_amount:(0,p.xG)(d.total_amount),next_cycle_date:f()(null!==(c=null===(o=d.next_upcoming_purchase)||void 0===o?void 0:o.created_at)&&void 0!==c?c:d.first_cycling_date).format("DD/MM/YY"),interval_count:d.interval_count,day_of_week:g,day_of_month:b,month:x,cycles_remaining:d.iterations-1}})}var v=a(79405),g=a.n(v),b=a(27259),x=a(45323),A=a.n(x);function w(e){let{label:n,value:a}=e;return(0,t.jsxs)("aside",{className:A().orderDataRow,children:[(0,t.jsx)("div",{className:A().label,children:n}),(0,t.jsx)("div",{className:A().value,children:a})]})}function q(e){var n,a,y,f,v,x,A,q,j,I,K,k,N,M;let{}=e,S=(0,i.useRouter)(),{locale:Z,query:T}=S,C=(0,u.Z)(),H=(0,h.Aj)(),[E,G]=(0,o.useState)(!1),{purchase:D,order:B}=H,[Y,R]=(0,o.useState)(null);(0,l.Z)(()=>{1==+D.iteration&&R(D)},[D]);let P=B&&(null==B?void 0:B.return_url)?5:0,[L,U]=(0,o.useState)(P);(0,o.useEffect)(()=>{let e="hp_paid_".concat(null==B?void 0:B.id);(null==B?void 0:B.id)&&(sessionStorage.setItem(e,"true"),window.history.replaceState({paid:!0,orderId:B.id},"",window.location.href))},[null==B?void 0:B.id]),(0,o.useEffect)(()=>{B&&(null==B?void 0:B.return_url)&&(L>0&&setTimeout(()=>U(L-1),1e3),1==L&&S.replace(null==B?void 0:B.return_url))},[L,P]),(0,o.useEffect)(()=>{U(P)},[P]);let F=Y||D,z=(null==B?void 0:null===(n=B.first_started_purchase)||void 0===n?void 0:n.payment_method)||(null==F?void 0:F.payment_method),W=(null==B?void 0:B.first_started_purchase)||F,O=null==z?void 0:z.payment_method_type,V=null==W?void 0:W.installment_plan,J=(null==V?void 0:V.provider)==="2c2p",X=(null==B?void 0:B.iterations)!=null&&1!==B.iterations,$=(null==B?void 0:null===(a=B.store)||void 0===a?void 0:a.merchant_currency)||(null==B?void 0:B.currency);return"THB"===$||null==Z||Z.includes("TH"),console.log("[OrderLog] - PaymentSuccessView",{order:B,purchase:D,displayPurchaseData:F,firstPurchase:Y,selectedPurchase:W}),(0,t.jsx)("div",{className:"common-payment-link-card","aria-label":"Payment success view",children:(0,t.jsx)("div",{className:"payment-success-view-container",children:(0,t.jsxs)("div",{className:"payment-success-card-padding-wrapper",children:[(0,t.jsxs)("div",{className:"payment-success-card-content-container",id:"payment-transaction-record",children:[(0,t.jsxs)("div",{className:"payment-success-summary-section",children:[(0,t.jsx)("img",{className:"icon-payment-successful",src:null===(y=b.Z)||void 0===y?void 0:y.src,alt:"Payment successful"}),(0,t.jsxs)("div",{className:"payment-successful-info-flex",children:[(0,t.jsx)("span",{className:"main-text",children:(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_successful.page.title",defaultMessage:"Payment Successful",description:"Payment Successful"})}),(0,t.jsx)("span",{className:"sub-text",children:X?(0,t.jsx)(_,{order:B}):(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_successful.page.subtitle.oneoff",values:{currency:(null==B?void 0:B.currency)||(null==F?void 0:F.currency),amount:(0,p.xG)((null==B?void 0:B.first_payment_amount)||(null==B?void 0:B.total_amount)||(null==F?void 0:F.total_amount)||"0")}})})]})]}),(0,t.jsx)("div",{className:"order-details-section",children:(0,t.jsxs)("div",{className:"order-breakdown-section",children:[((null==B?void 0:null===(f=B.store)||void 0===f?void 0:f.merchant_display_name)||(null==F?void 0:null===(v=F.store)||void 0===v?void 0:v.merchant_display_name))&&(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.merchant"}),value:(null==B?void 0:null===(x=B.store)||void 0===x?void 0:x.merchant_display_name)||(null==F?void 0:null===(A=F.store)||void 0===A?void 0:A.merchant_display_name)}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.store"}),value:(null==B?void 0:null===(q=B.store)||void 0===q?void 0:q.name)||(null==B?void 0:null===(j=B.store)||void 0===j?void 0:j.name_main)||(null==F?void 0:null===(I=F.store)||void 0===I?void 0:I.name)||(null==F?void 0:null===(K=F.store)||void 0===K?void 0:K.name_main)||"-"}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.item_name"}),value:(null==B?void 0:B.description)||(null==F?void 0:F.order_description)||"-"}),((null==B?void 0:B.voucher_applied_value)>0||(null==F?void 0:F.voucher_applied_value)>0)&&(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.voucher_applied"}),value:"-".concat((0,p.xG)((null==B?void 0:B.voucher_applied_value)||(null==F?void 0:F.voucher_applied_value),(null==B?void 0:B.currency)||(null==F?void 0:F.currency)))}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.payment_type"}),value:X?(null==B?void 0:B.prorate)?(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_type.recurring_prorated"}):(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_type.recurring"}):(0,t.jsx)(m.Z,{id:"payment_link.payment_result.payment_type.oneoff"})}),(0,t.jsx)(w,{label:(0,t.jsx)("span",{style:{fontWeight:"bold"},children:C.formatMessage({id:"order.process.amount"})}),value:(0,p.xG)((null==B?void 0:B.first_payment_amount)||(null==B?void 0:B.total_amount)||(null==F?void 0:F.total_amount)||"0",(null==B?void 0:B.currency)||(null==F?void 0:F.currency))}),(0,t.jsx)("span",{className:"horizontal-divider"}),(0,t.jsx)(w,{label:C.formatMessage({id:"common.date_time"}),value:(null==Y?void 0:Y.created_at)||(null==B?void 0:B.created_at)||(null==D?void 0:D.created_at)?(0,s.Z)(new Date((null==Y?void 0:Y.created_at)||(null==B?void 0:B.created_at)||(null==F?void 0:F.created_at)),"dd/MM/yy HH:mm"):"-"}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.transaction_id"}),value:null!=Y?(null==Y?void 0:null===(k=Y.id)||void 0===k?void 0:k.includes("-"))?Y.id.split("-")[0]:"-":(0,t.jsx)(r.Z,{variant:"text",width:80,height:20})}),(null==B?void 0:B.id)&&(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.order_id"}),value:(null==B?void 0:null===(N=B.id)||void 0===N?void 0:N.split("-")[0])||"-"}),"bank_instalment"===O?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.payment_method"}),value:C.formatMessage({id:"payment_link.order_summary.bank_installment"})}),(null==z?void 0:z.last4)&&(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.card_number"}),value:(0,p.Ls)(null!==(M=null==z?void 0:z.brand)&&void 0!==M?M:"")+" ****"+(null==z?void 0:z.last4)}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.issuing_bank"}),value:(null==V?void 0:V.bank_name)||"-"}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.installment_period"}),value:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.installment_period_months"},{number:null==V?void 0:V.installment_periods})}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.effective_apr"}),value:isNaN(null==V?void 0:V.effective_apr)?"-":"".concat((100*Number(null==V?void 0:V.effective_apr)).toFixed(2),"%")}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.monthly_payment"}),value:(null==V?void 0:V.monthly_payment_amount)?(0,p.xG)(V.monthly_payment_amount,null==W?void 0:W.currency):"-"}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.order_summary.2c2p_installment.total_amount"}),value:(null==V?void 0:V.total_estimated_amount)?(0,p.xG)(V.total_estimated_amount,null==W?void 0:W.currency):"-"})]}):"alipay_hk"===O?(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.payment_method"}),value:"AlipayHK"}):(O||(null==z?void 0:z.brand))&&(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.payment_method"}),value:(()=>{let e="terminal"===O,n=["google_pay","apple_pay"].includes(null!=O?O:""),a=(0,p.Ls)(((null==z?void 0:z.brand)||"").split("_")[0]),t=n?(0,p.Ls)((null!=O?O:"").split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")):(0,p.Ls)((null!=O?O:"").split("_").join(" ")),r=(null==W?void 0:W.total_tenors)>1;if(r)return"".concat(C.formatMessage({id:"order.process.order_summary.instalments",defaultMessage:"Hero Plus Instalment",description:"Hero Plus Instalment"}),"****").concat(null==z?void 0:z.last4);if(J)return C.formatMessage({id:"payment_link.order_summary.bank_installment"});if(e)return a||t||"-";if(n)return a?"".concat(t," - ").concat(a):t||"-";if(a&&(null==z?void 0:z.last4))return"".concat(a,"****").concat(null==z?void 0:z.last4);if(a)return a;
1if(t)return t;return"-"})()}),(null==W?void 0:W.alipay_hk_trade_no)&&(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.alipay_hk_trade_no"}),value:W.alipay_hk_trade_no}),(0,t.jsx)(w,{label:C.formatMessage({id:"payment_link.payment_result.remarks"}),value:(null==B?void 0:B.remark)||(null==F?void 0:F.remark)||"-"})]})})]}),(0,t.jsxs)("div",{className:"action-buttons-container",style:{flexDirection:["ms-MY","ms-SG"].includes(null!=Z?Z:"en-HK")?"column":"row"},children:[(0,t.jsx)(c.Z,{variant:"primary",className:"btn-download-transaction-record",disabled:E,onClick:async()=>{if(E)return;G(!0);let e=(null==Y?void 0:Y.id)||(null==D?void 0:D.id);if(!e){G(!1);return}let n=T.encrypted_order_shared_token,a="".concat("https://app.heroplusgroup.com","/purchases/").concat(e,"/download_transaction_record"),t=n?"".concat(a,"?encrypted_order_shared_token=").concat(encodeURIComponent(n)):a;for(let e=0;e<5;e++){try{let e=await fetch(t,{redirect:"manual"});if("opaqueredirect"===e.type||302===e.status){window.location.href=t,G(!1);return}if(200===e.status){let n=await e.blob(),a=URL.createObjectURL(n);window.open(a,"_blank"),G(!1);return}if(202!==e.status)break}catch(e){break}await new Promise(e=>setTimeout(e,2e3))}G(!1)},children:E?(0,t.jsx)(d.Z,{animation:"border",size:"sm",role:"status",children:(0,t.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,t.jsx)(m.Z,{id:"payment_link.payment_result.btn.download_transaction_record",defaultMessage:"payment_link.payment_result.btn.download_transaction_record"})}),(0,t.jsx)(c.Z,{variant:"outlined",className:"btn-download-transaction-record "+g().emailBtn,onClick:()=>H.setStage(h.Ud.SEND_TO_EMAIL),children:(0,t.jsx)(m.Z,{id:"payment-result.email_transaction_record"})})]})]})})})}},51869:function(e,n,a){"use strict";a.d(n,{Z:function(){return p}});var t=a(85893),r=a(43205),s=a(8260),l=a(67294),i=a(35005),o=a(36968),c=a(86896),d=a(44012),u=a(10027),m=a(75427);function p(e){var n,a,p,h,y,f,_,v,g,b,x,A,w,q;let{handleTryAgain:j}=e,I=(0,c.Z)(),K=(0,r.Aj)(),{order:k,purchase:N,setStage:M,setPaymentResult:S,paymentResult:Z,paymentSummary:T}=K,[C,H]=(0,l.useState)(!1),[E,G]=(0,l.useState)(0),D=(null==k?void 0:k.data_source)==="easystore",B=D&&!!(null==k?void 0:k.return_url);(0,l.useEffect)(()=>{G(B?60:0)},[null==k?void 0:k.id,B]),(0,l.useEffect)(()=>{if(!B||E<=0)return;let e=window.setTimeout(()=>{if(1===E&&(null==k?void 0:k.return_url)){window.location.assign(k.return_url);return}G(E-1)},1e3);return()=>window.clearTimeout(e)},[E,null==k?void 0:k.return_url,B]);let Y=(null==Z?void 0:Z.reason)||(null==Z?void 0:Z.errorMessage);return(0,t.jsx)("div",{className:"common-payment-link-card",children:(0,t.jsx)("div",{className:"payment-success-view-container",children:(0,t.jsxs)("div",{className:"payment-success-card-padding-wrapper",children:[(0,t.jsxs)("div",{className:"payment-success-card-content-container",id:"payment-unsuccessful-view",children:[(0,t.jsxs)("div",{className:"payment-success-summary-section",children:[(0,t.jsx)("img",{className:"icon-payment-successful",src:null===(n=m.Z)||void 0===n?void 0:n.src,alt:"Payment Unsuccessful"}),(0,t.jsxs)("div",{className:"payment-successful-info-flex",children:[(0,t.jsx)("span",{className:"main-text",children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.payment_unsuccessful.page.title",defaultMessage:"Payment Unsuccessful",description:"Payment Unsuccessful"})}),(0,t.jsx)("span",{className:"sub-text",children:(0,t.jsx)(d.Z,{id:D?Y?"transaction.failed.with_reason":"transaction.failed.no_reason":Y?"transaction.declined.with_reason":"transaction.declined.no_reason",defaultMessage:D?Y?"Payment was not completed: {reason}. Please try again or return to the store.":"Payment was not completed. Please try again or return to the store.":Y?"The transaction was declined: {reason}. Please try again with a different payment method.":"The transaction was declined. Please try again with a different payment method.",description:"Payment unsuccessful message with or without a reason",values:{reason:(null==Y?void 0:null===(a=Y.includes)||void 0===a?void 0:a.call(Y,"no IPP records"))?I.formatMessage({id:"payment_link.2c2p.bank_installment.error.uneligible"}):Y}})}),B&&E>0&&(0,t.jsx)("span",{className:"sub-text",style:{marginTop:"8px"},children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.easystore.auto_return",defaultMessage:"Returning to the store in {seconds}s if no action is taken.",values:{seconds:E}})})]})]}),(0,t.jsx)("div",{className:"order-details-section",children:(0,t.jsxs)("div",{className:"order-breakdown-section",children:[(null==N?void 0:null===(p=N.store)||void 0===p?void 0:p.merchant_display_name)&&(0,t.jsxs)("div",{className:"order-data-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.merchant",defaultMessage:"Merchant",description:"Merchant"})}),(0,t.jsx)("span",{className:"item-value",children:null==N?void 0:null===(h=N.store)||void 0===h?void 0:h.merchant_display_name})]}),(0,t.jsxs)("div",{className:"order-data-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.store",defaultMessage:"Store",description:"Store"})}),(0,t.jsx)("span",{className:"item-value",children:(null==N?void 0:null===(y=N.store)||void 0===y?void 0:y.name)||(null==N?void 0:null===(f=N.store)||void 0===f?void 0:f.name_main)||"/"})]}),((null===(_=K.order)||void 0===_?void 0:_.order_description)||(null==N?void 0:N.order_description))&&(0,t.jsxs)("div",{className:"order-data-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.item_name"})}),(0,t.jsx)("span",{className:"item-value",children:(null===(v=K.order)||void 0===v?void 0:v.order_description)||(null==N?void 0:N.order_description)})]}),((null===(g=K.order)||void 0===g?void 0:g.first_payment_amount)||(null==N?void 0:N.order_amount))&&(0,t.jsxs)("div",{className:"order-data-row result-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"order.process.amount",defaultMessage:"Amount",description:"Amount"})}),(0,t.jsx)("span",{className:"item-value",children:"".concat(null==N?void 0:N.currency," ").concat((0,u.Bg)((null===(b=K.order)||void 0===b?void 0:b.first_payment_amount)||(null==N?void 0:N.order_amount)))})]}),(0,t.jsx)("span",{className:"horizontal-divider"}),(null===(x=K.order)||void 0===x?void 0:x.id)&&(0,t.jsxs)("div",{className:"order-data-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.order_id",defaultMessage:"Order ID",description:"Order ID"})}),(0,t.jsx)("span",{className:"item-value",children:null===(A=K.order)||void 0===A?void 0:A.id.split("-")[0]})]}),(null==N?void 0:N.id)&&(0,t.jsxs)("div",{className:"order-data-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"payment_link.payment_result.transaction_id",defaultMessage:"Transaction ID",description:"Transaction ID"})}),(0,t.jsx)("span",{className:"item-value",children:null==N?void 0:N.id.split("-")[0]})]}),((null==N?void 0:N.created_at)||(null===(w=K.order)||void 0===w?void 0:w.created_at)||(null==T?void 0:T.created_at))&&(0,t.jsxs)("div",{className:"order-data-row",children:[(0,t.jsx)("span",{className:"item-name",children:(0,t.jsx)(d.Z,{id:"common.date_time",defaultMessage:"Date & Time",description:"Date & Time"})}),(0,t.jsx)("span",{className:"item-value",children:(0,s.Z)(new Date((null==N?void 0:N.created_at)||(null===(q=K.order)||void 0===q?void 0:q.created_at)||(null==T?void 0:T.created_at)),"dd/MM/yy HH:mm")}
1)]})]})})]}),(0,t.jsxs)("div",{className:"action-buttons-container",style:{flexDirection:["ms-MY","ms-SG"].includes(I.locale)?"column":"row",gap:"12px",marginTop:"32px"},children:[(0,t.jsx)(i.Z,{variant:"primary",className:"btn-download-transaction-record",disabled:C,onClick:function(){var e;if(null!=j){j();return}H(!0),M((null==Z?void 0:null===(e=Z.tryAgain)||void 0===e?void 0:e.fromStage)||r.Ud.CREATE_SINGLE_PAYMENT),S(null),setTimeout(()=>H(!1),1e3)},children:C?(0,t.jsx)(o.Z,{animation:"border",role:"status",children:(0,t.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,t.jsx)(d.Z,{id:"payment_link.payment_result.btn.try_again",defaultMessage:"Try Again",description:"Button text for retrying payment"})}),D&&(null==k?void 0:k.cancel_url)&&(0,t.jsx)(i.Z,{variant:"outline-secondary",className:"btn-download-transaction-record",onClick:function(){D&&(null==k?void 0:k.cancel_url)&&window.location.assign(k.cancel_url)},children:(0,t.jsx)(d.Z,{id:"payment_link.modal.action_btn.cancel",defaultMessage:"Cancel"})})]})]})})})}},3506:function(e,n,a){"use strict";a.d(n,{Z:function(){return I}});var t=a(85893),r=a(15861),s=a(62474),l=a(55827),i=a(69417),o=a(43205),c=a(82175);async function d(e,n,a){let t="".concat("https://app.heroplusgroup.com","/purchases/").concat(e,"/email_record.json");a&&(t+="?encrypted_order_shared_token=".concat(encodeURIComponent(a)));let r=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n})});if(!r.ok){let e=await r.json();throw Error("Failed to send email: ".concat(e.message||r.statusText))}let s=await r.json();if("success"!==s.status)throw Error("Unexpected response status: ".concat(s.status));return s}var u=a(11163),m=a(67294),p=a(86896),h=a(44012),y=a(74231),f=a(5616),_=a(25675),v=a.n(_),g=a(27259),b=a(35005),x=a(22556),A=a.n(x);function w(e){var n;let{email:a}=e,{setStage:s}=(0,o.Aj)();return(0,t.jsxs)(f.Z,{sx:{alignSelf:"stretch",flex:1,py:"64px",px:"24px",background:"white",borderRadius:1,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","@media (max-width: 594px)":{px:"16px"}},children:[(0,t.jsx)(v(),{src:null===(n=g.Z)||void 0===n?void 0:n.src,alt:"successful icon",width:64,height:64}),(0,t.jsxs)(f.Z,{sx:{alignSelf:"stretch",marginTop:"16px",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[(0,t.jsx)(r.Z,{sx:{alignSelf:"stretch",textAlign:"center",color:"#212121",fontSize:18,fontWeight:700,lineHeight:"24px",wordWrap:"break-word"},children:(0,t.jsx)(h.Z,{id:"payment-result.transaction_sent",defaultMessage:"Transaction Record Sent!"})}),(0,t.jsx)(r.Z,{sx:{alignSelf:"stretch",textAlign:"center",color:"#7E7E7E",fontSize:14,marginTop:"8px",fontWeight:400,lineHeight:"20px",wordWrap:"break-word"},children:(0,t.jsx)(h.Z,{id:"payment-result.transaction_sent_to_email",defaultMessage:"Transaction record has been sent to {email}.",values:{email:a}})}),(0,t.jsx)(b.Z,{variant:"primary",className:A().btnOk,onClick:()=>s(o.Ud.PAYMENT_SUCCESS),children:(0,t.jsx)(h.Z,{id:"order.process.ok",defaultMessage:"OK",description:"Button OK"})})]})]})}var q=a(84354),j=a.n(q);function I(e){let{onBackClick:n}=e,[a,f]=(0,m.useState)(!1),[_,v]=(0,m.useState)(null),g=(0,p.Z)(),b=(0,u.useRouter)(),x=(0,o.Aj)(),{purchase:A}=x,q=null==A?void 0:A.id,I=b.query.encrypted_order_shared_token,K=y.Ry().shape({email:y.Z_().matches(/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,g.formatMessage({id:"payment-result.enter_valid_email"})).required(g.formatMessage({id:"payment-result.enter_email_prompt"}))});return(0,t.jsx)(t.Fragment,{children:a?(0,t.jsx)(w,{email:_}):(0,t.jsx)(c.J9,{initialValues:{email:""},validationSchema:K,onSubmit:async e=>{try{let n=await d(q,e.email,I);"success"===n.status&&(v(e.email),f(!0))}catch(e){console.error("API call failed",e),x.setStage(o.Ud.EMAIL_FAILED)}},children:e=>{let{handleChange:a,handleBlur:o,values:d,errors:u,touched:m}=e;
1return(0,t.jsxs)(c.l0,{className:j().sendToEmailView,children:[(0,t.jsx)(r.Z,{className:j().placeholder,children:(0,t.jsx)(h.Z,{id:"payment-result.enter_email"})}),(0,t.jsxs)("div",{className:j().textFieldWrapper,children:[(0,t.jsx)(s.Z,{fullWidth:!0,name:"email",value:d.email,onChange:a,onBlur:o,placeholder:g.formatMessage({id:"payment-result.email_address",defaultMessage:"Email Address"}),error:!!(m.email&&u.email),InputProps:{sx:{"& .MuiInputBase-input":{height:"48px",padding:"0 14px"}}},sx:{"& .MuiOutlinedInput-root":{height:"48px",borderRadius:"6px","& fieldset":{borderColor:"#d6d6d6"},"&:hover fieldset":{borderColor:"#7e7e7e",borderWidth:"1px !important"},"&.Mui-focused fieldset":{borderColor:"var(--border-brand)",borderWidth:"1.5px"}},["& .".concat(l.Z.input)]:{fontSize:16,"&::placeholder":{color:"#7e7e7e",fontWeight:"400",fontSize:"16px"}}}}),m.email&&u.email&&(0,t.jsx)(r.Z,{color:"error",className:j().textFieldError,children:u.email})]}),(0,t.jsxs)("section",{className:j().buttonsSection,children:[(0,t.jsx)(i.Z,{fullWidth:!0,variant:"outlined",sx:{height:48,borderColor:"#D6D6D6",color:"#7E7E7E",textTransform:"none",fontWeight:500,fontSize:16,borderRadius:"6px",":hover":{background:"var(--Button-Surface-button-surface-transparent-hover, rgba(0, 0, 0, 0.02))",border:"1px solid var(--Boarder-boarder-primary, #D6D6D6)"}},onClick:n,children:(0,t.jsx)(h.Z,{id:"payment-result.back",defaultMessage:"Back"})}),(0,t.jsx)(i.Z,{fullWidth:!0,variant:"contained",type:"submit",sx:{height:48,backgroundColor:"var(--btn-brand, #FF9E0C)",textTransform:"none",fontWeight:500,fontSize:16,borderRadius:"6px",":hover":{background:"var(--btn-brand-hover, #FFAA2B)"}},children:(0,t.jsx)(h.Z,{id:"payment-result.send",defaultMessage:"Send"})})]})]})}})})}},87026:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var t=a(85893),r=a(25675),s=a.n(r),l=a(11163),i=a(44012);function o(e){let{brand:n,merchantBranding:a}=e,r=(0,l.useRouter)(),o=null==a?void 0:a.powered_by,c=(null==o?void 0:o.show)===!0,d=c?null==a?void 0:a.powered_by_logo_service_url:null,u="heroplus"!==n.id,m=!u&&c&&!!(null==o?void 0:o.text);return(0,t.jsxs)("div",{className:"powered-by-heroplus-wrapper flex-1",children:[(0,t.jsx)("p",{className:"powered-by-text",children:m?null==o?void 0:o.text:(0,t.jsx)(i.Z,{id:"payment_link.footer.powered_by.prefix",defaultMessage:"Powered by",description:"Powered by"})}),u||!c?(0,t.jsx)(s(),{className:"logo-".concat(n.id),src:n.poweredByLogo,alt:n.legalName,priority:!0}):d?(0,t.jsx)(s(),{className:"logo-heroplus",src:d,alt:(null==a?void 0:a.business_name)||"",width:100,height:24,priority:!0}):null,!m&&["zh-HK","zh-MY","zh-SG"].includes(r.locale||"zh-HK")&&(0,t.jsx)("p",{className:"powered-by-text",children:(0,t.jsx)(i.Z,{id:"payment_link.footer.powered_by.suffix",defaultMessage:"",description:"Trailing particle after the powered-by mark (zh: ç± [mark] æä¾); empty in English"})})]})}},31822:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var t=a(85893),r=a(65185),s=a.n(r),l=a(98456),i=a(84808);function o(){return(0,t.jsxs)("div",{className:s().loaderGlobal,children:[(0,t.jsx)(l.Z,{className:s().loader,classes:{svg:s().loader}}),(0,t.jsx)(i.Z,{open:!0})]})}},3573:function(e,n,a){"use strict";a.d(n,{H:function(){return o}});var t=a(85893),r=a(9008),s=a.n(r),l=a(4298),i=a.n(l);a(67294);let o=e=>{var n;let{title:a,description:r,canonical:l,css:o,image:c,currentLocale:d,otherAvailLocale:u=["en_HK","zh_HK","en_TH","th_TH"],themeColor:m,shouldDownloadTc2p:p,siteName:h="Hero Plus",favicon:y="/favicon.ico"}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:a}),(0,t.jsx)("meta",{name:"description",content:r}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width,maximum-scale=1,initial-scale=1,interactive-widget=resizes-content"}),(0,t.jsx)("meta",{property:"og:type",content:"website"}),(0,t.jsx)("meta",{name:"og:title",property:"og:title",content:a}),(0,t.jsx)("meta",{name:"og:description",property:"og:description",content:r}),(0,t.jsx)("meta",{property:"og:site_name",content:h}),(0,t.jsx)("meta",{property:"og:url",content:"".concat(l)}),d&&(0,t.jsx)("meta",{property:"og:locale",content:null==d?void 0:d.replace("-","_")}),d&&(null==u?void 0:u.length)>0&&(null==u?void 0:null===(n=u.filter(e=>e!==(null==d?void 0:d.replace("-","_"))))||void 0===n?void 0:n.map((e,n)=>(0,t.jsx)("meta",{property:"og:locale:alternate",content:e},"seo-og-locale-alternate-".concat(n)))),(0,t.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,t.jsx)("meta",{name:"twitter:title",content:a}),(0,t.jsx)("meta",{name:"twitter:description",content:r}),(0,t.jsx)("link",{rel:"icon",href:y}),o&&(0,t.jsx)("link",{rel:"stylesheet",href:"".concat(o)}),c&&(0,t.jsx)("meta",{property:"og:image",content:"".concat(c)}),c&&(0,t.jsx)("meta",{name:"twitter:image",content:"".concat(c)}),l&&(0,t.jsx)("link",{rel:"canonical",href:"".concat(l)}),d&&l&&(null==u?void 0:u.length)>0&&(null==u?void 0:u.map((e,n)=>(0,t.jsx)("link",{rel:"alternate",hrefLang:null==e?void 0:e.replace("_","-"),href:null==l?void 0:l.replace(d,null==e?void 0:e.replace("_","-"))},"link-alternate-href-".concat(n)))),d&&(0,t.jsx)("link",{rel:"alternate",href:null==l?void 0:l.replace(d,"en-HK"),hrefLang:"x-default"}),m&&(0,t.jsx)("meta",{name:"theme-color",content:m})]}),p&&(0,t.jsx)(i(),{src:"https://t.2c2p.com/SecurePayment/api/pgw-securepay-sdk-2.0.0.min.js",strategy:"afterInteractive"})]})}},70604:function(e,n,a){"use strict";a.d(n,{RB:function(){return d},g$:function(){return r},Dy:function(){return o},Dr:function(){return c},cv:function(){return u},Bc:function(){return m}});var t,r,s=a(85893),l=a(66263),i=a(97235);(t=r||(r={})).STRIPE="stripe",t.ADYEN="adyen",t.TC2P="2c2p",t.ALIPAY_HK="alipay_hk",t.NOMUPAY="nomupay",t.FIUU="fiuu";let o={HK:{countryCode:{label:l.$Z.HK,value:l.$Z.HK},currency:"hkd",minCharges:0,fallbackPaymentGateway:"stripe",supportedPaymentGateways:["adyen","stripe","nomupay"],phoneNumberMaxLength:8,phoneNumberMinLength:8,phoneNumberFormat:/^[4-9][0-9]{7}$/g,locales:["en-HK","zh-HK"],countryFlag:(0,s.jsx)(i.HK,{className:"icon-country-code"}),disabled:!1},TH:{countryCode:{label:l.$Z.TH,value:l.$Z.TH}
1,currency:"thb",minCharges:0,fallbackPaymentGateway:"2c2p",supportedPaymentGateways:["2c2p","nomupay"],phoneNumberMaxLength:9,phoneNumberMinLength:9,phoneNumberFormat:/^([689]{1})+([0-9]{8})+$/g,locales:["en-TH","th-TH"],countryFlag:(0,s.jsx)(i.TH,{className:"icon-country-code"}),disabled:!1},SG:{countryCode:{label:l.$Z.SG,value:l.$Z.SG},currency:"sgd",minCharges:0,fallbackPaymentGateway:"stripe",supportedPaymentGateways:["adyen","stripe","nomupay"],phoneNumberMaxLength:8,phoneNumberMinLength:8,phoneNumberFormat:/^[689][0-9]{7}$/g,locales:["en-SG","ms-SG","zh-SG"],countryFlag:(0,s.jsx)(i.SG,{className:"icon-country-code"}),disabled:!1},MY:{countryCode:{label:l.$Z.MY,value:l.$Z.MY},currency:"myr",minCharges:0,fallbackPaymentGateway:"stripe",supportedPaymentGateways:["adyen","stripe","nomupay"],phoneNumberMaxLength:10,phoneNumberMinLength:8,phoneNumberFormat:/^(1)[02-46-9][0-9]{7}$|^(1)1[0-9]{8}$/g,locales:["en-MY","ms-MY","zh-MY"],countryFlag:(0,s.jsx)(i.MY,{className:"icon-country-code"}),disabled:!1}},c={HK:["en-HK","zh-HK"],TH:["en-TH","th-TH"],SG:["en-SG","ms-SG","zh-SG"],MY:["en-MY","ms-MY","zh-MY"]},d={HK:{customer:[{questionI18nKey:"faq.tab.shopper.q1",answerI18nKey:"faq.tab.shopper.a1"},{questionI18nKey:"faq.tab.shopper.q2",answerI18nKey:"faq.tab.shopper.a2"},{questionI18nKey:"faq.tab.shopper.q3",answerI18nKey:"faq.tab.shopper.a3"},{questionI18nKey:"faq.tab.shopper.q4",answerI18nKey:"faq.tab.shopper.a4"},{questionI18nKey:"faq.tab.shopper.q5",answerI18nKey:"faq.tab.shopper.a5"},{questionI18nKey:"faq.tab.shopper.q6",answerI18nKey:"faq.tab.shopper.a6"},{questionI18nKey:"faq.tab.shopper.q7",answerI18nKey:"faq.tab.shopper.a7"}],merchant:[{questionI18nKey:"faq.tab.merchant.q1",answerI18nKey:"faq.tab.merchant.a1"},{questionI18nKey:"faq.tab.merchant.q2",answerI18nKey:"faq.tab.merchant.a2"},{questionI18nKey:"faq.tab.merchant.q3",answerI18nKey:"faq.tab.merchant.a3"},{questionI18nKey:"faq.tab.merchant.q4",answerI18nKey:"faq.tab.merchant.a4"},{questionI18nKey:"faq.tab.merchant.q5",answerI18nKey:"faq.tab.merchant.a5"},{questionI18nKey:"faq.tab.merchant.q6",answerI18nKey:"faq.tab.merchant.a6"},{questionI18nKey:"faq.tab.merchant.q7",answerI18nKey:"faq.tab.merchant.a7"},{questionI18nKey:"faq.tab.merchant.q8",answerI18nKey:"faq.tab.merchant.a8"},{questionI18nKey:"faq.tab.merchant.q9",answerI18nKey:"faq.tab.merchant.a9"}]},TH:{customer:[{questionI18nKey:"faq.tab.shopper.q1",answerI18nKey:"faq.tab.shopper.a1"},{questionI18nKey:"faq.tab.shopper.q2",answerI18nKey:"faq.tab.shopper.a2"},{questionI18nKey:"faq.tab.shopper.q3",answerI18nKey:"faq.tab.shopper.a3"},{questionI18nKey:"faq.tab.shopper.q4",answerI18nKey:"faq.tab.shopper.a4"},{questionI18nKey:"faq.tab.shopper.q5",answerI18nKey:"faq.tab.shopper.a5"},{questionI18nKey:"faq.tab.shopper.q6",answerI18nKey:"faq.tab.shopper.a6"},{questionI18nKey:"faq.tab.shopper.q7",answerI18nKey:"faq.tab.shopper.a7"}],merchant:[{questionI18nKey:"faq.tab.merchant.q1",answerI18nKey:"faq.tab.merchant.a1"},{questionI18nKey:"faq.tab.merchant.q2",answerI18nKey:"faq.tab.merchant.a2"},{questionI18nKey:"faq.tab.merchant.q3",answerI18nKey:"faq.tab.merchant.a3"},{questionI18nKey:"faq.tab.merchant.q4",answerI18nKey:"faq.tab.merchant.a4"},{questionI18nKey:"faq.tab.merchant.q5",answerI18nKey:"faq.tab.merchant.a5"},{questionI18nKey:"faq.tab.merchant.q6",answerI18nKey:"faq.tab.merchant.a6"},{questionI18nKey:"faq.tab.merchant.q7",answerI18nKey:"faq.tab.merchant.a7"},{questionI18nKey:"faq.tab.merchant.q8",answerI18nKey:"faq.tab.merchant.a8"},{questionI18nKey:"faq.tab.merchant.q9",answerI18nKey:"faq.tab.merchant.a9"}]},SG:{customer:[{questionI18nKey:"faq.tab.shopper.q1",answerI18nKey:"faq.tab.shopper.a1"},{questionI18nKey:"faq.tab.shopper.q2",answerI18nKey:"faq.tab.shopper.a2"},{questionI18nKey:"faq.tab.shopper.q6",answerI18nKey:"faq.tab.shopper.a6"},{questionI18nKey:"faq.tab.shopper.q7",answerI18nKey:"faq.tab.shopper.a7"}],merchant:[{questionI18nKey:"faq.tab.merchant.q1",answerI18nKey:"faq.tab.merchant.a1"},{questionI18nKey:"faq.tab.merchant.q2",answerI18nKey:"faq.tab.merchant.a2"},{questionI18nKey:"faq.tab.merchant.q3",answerI18nKey:"faq.tab.merchant.a3"},{questionI18nKey:"faq.tab.merchant.q4",answerI18nKey:"faq.tab.merchant.a4"},{questionI18nKey:"faq.tab.merchant.q5",answerI18nKey:"faq.tab.merchant.a5"},{questionI18nKey:"faq.tab.merchant.q6",answerI18nKey:"faq.tab.merchant.a6"},{questionI18nKey:"faq.tab.merchant.q7",answerI18nKey:"faq.tab.merchant.a7"},{questionI18nKey:"faq.tab.merchant.q8",answerI18nKey:"faq.tab.merchant.a8"},{questionI18nKey:"faq.tab.merchant.q9",answerI18nKey:"faq.tab.merchant.a9"}]},MY:{customer:[{questionI18nKey:"faq.tab.shopper.q1",answerI18nKey:"faq.tab.shopper.a1"},{questionI18nKey:"faq.tab.shopper.q2",answerI18nKey:"faq.tab.shopper.a2"},{questionI18nKey:"faq.tab.shopper.q6",answerI18nKey:"faq.tab.shopper.a6"},{questionI18nKey:"faq.tab.shopper.q7",answerI18nKey:"faq.tab.shopper.a7"}],merchant:[{questionI18nKey:"faq.tab.merchant.q1",answerI18nKey:"faq.tab.merchant.a1"},{questionI18nKey:"faq.tab.merchant.q2",answerI18nKey:"faq.tab.merchant.a2"},{questionI18nKey:"faq.tab.merchant.q3",answerI18nKey:"faq.tab.merchant.a3"},{questionI18nKey:"faq.tab.merchant.q4",answerI18nKey:"faq.tab.merchant.a4"},{questionI18nKey:"faq.tab.merchant.q5",answerI18nKey:"faq.tab.merchant.a5"},{questionI18nKey:"faq.tab.merchant.q6",answerI18nKey:"faq.tab.merchant.a6"},{questionI18nKey:"faq.tab.merchant.q7",answerI18nKey:"faq.tab.merchant.a7"},{questionI18nKey:"faq.tab.merchant.q8",answerI18nKey:"faq.tab.merchant.a8"},{questionI18nKey:"faq.tab.merchant.q9",answerI18nKey:"faq.tab.merchant.a9"}]}},u={THB:"TH",MYR:"MY",SGD:"SG",HKD:"HK"},m={"en-HK":"HK","zh-HK":"HK","en-TH":"TH","th-TH":"TH","en-SG":"SG","ms-SG":"SG","zh-SG":"SG","en-MY":"MY","ms-MY":"MY","zh-MY":"MY"}},9970:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var t=a(98029),r=a(29212),s=a(87688),l=a(11163),i=a.n(l);function o(e){var n;return(0,t.D)({...e,mutationFn:e=>(0,r.rQ)("/purchases/process_single_payment.json",{method:"POST",body:{nomupay_checkout_id:e.checkoutId,purchase:{order_id:e.orderId,store_id:e.storeId,order_amount:e.amount,total_amount:e.amount,currency:e.currency,transaction_type:"single_payment",total_tenors:1,...e.remarks&&{remark:e.remarks}},user:{country_code:"+".concat((0,s.G)(e.countryCode)),phone_number:e.phoneNumber,locale:null!==(n=i().locale)&&void 0!==n?n:"en-HK",display_name:e.cardHolderName}}})})}},56489:function(e,n,a){"use strict";a.d(n,{I:function(){return t}});let t="redirect"},13721:function(e,n,a){"use strict";a.d(n,{Xk:function(){return s},c7:function(){return r},VH:function(){return o},fq:function(){return i}});var t=a(27167);let r={heroplus:{id:"heroplus",displayName:"Hero Plus",legalName:"Hero Plus",poweredByLogo:{src:"/_next/static/media/logo-heroplus-orangeblack.1b683597.png",height:36,width:237,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAMAAADU3h9xAAAADFBMVEUjIx//nwz+nwzZhxA256oIAAAABHRSTlNXUGdeL5r+ogAAAAlwSFlzAAAhOAAAITgBRZYxYAAAABFJREFUeJxjYGRkYmJmYGAAAAA6AAq0z34MAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:1},qrLogo:t.Z,favicon:"/favicon.ico"}
1,ocgt:{id:"ocgt",displayName:"OCGT",legalName:"Oriental City Group (Thailand) Co., Ltd.",poweredByLogo:{src:"/_next/static/media/logo-ocgt-red.5b46fbc5.png",height:144,width:530,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAGFBMVEU7OzuKIyXdBAs9Pz9pbW2KlJRxQENgT1DW5RKnAAAACHRSTlMCKxZschhTkXSodOoAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAaSURBVHicY2BgYGVhZmBgYGBiYmRnY2JkBAABJAAjZltGowAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2},qrLogo:{src:"/_next/static/media/logo-ocgt-plate.d030730a.png",height:210,width:690,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAG1BMVEX8/f327e399PX////CwsL97/DWycm0q6vq29vgRaLPAAAAA3RSTlP6/f0gOyOJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGklEQVR4nGNgYGZmYWFmYGBgYmVlZ2PkYAQAAZ8ANZAHiWIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:2},favicon:"/favicon-ocgt.ico"}},s=r.heroplus,l={TH:"ocgt"};function i(e){var n,a;let t=null===(n=e.region)||void 0===n?void 0:n.trim().toUpperCase();return t&&Object.prototype.hasOwnProperty.call(l,t)?r[l[t]]:(null===(a=e.settlementCurrency)||void 0===a?void 0:a.trim().toLowerCase())==="thb"?r[l.TH]:s}function o(e){return Object.prototype.hasOwnProperty.call(r,e)}},75252:function(e,n,a){"use strict";a.d(n,{B6:function(){return l},H3:function(){return o},g2:function(){return c},yc:function(){return i}});var t=a(13721);let r="payment-branding",s="payment-brand-id";function l(e){try{sessionStorage.setItem(r,JSON.stringify(e))}catch(e){}}function i(){try{var e;return JSON.parse(null!==(e=sessionStorage.getItem(r))&&void 0!==e?e:"null")}catch(e){return null}}function o(e){try{sessionStorage.setItem(s,e)}catch(e){}}function c(){try{let e=sessionStorage.getItem(s);return e&&(0,t.VH)(e)?e:null}catch(e){return null}}},99686:function(e,n,a){"use strict";var t=a(67294);let r=t.useLayoutEffect;n.Z=r},86602:function(e,n,a){"use strict";a.d(n,{Bg:function(){return r},IM:function(){return function e(n){return"number"!=typeof n?e(Number(null==n?void 0:n.replace(/,/g,""))):n}},Ls:function(){return s},ew:function(){return i},ic:function(){return t},wl:function(){return function e(n){return"number"!=typeof n?e(Number(null==n?void 0:n.replace(/,/g,""))):(Math.round(100*n)/100).toFixed(2)}},xG:function(){return l}});let t=function(e){var n,a;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e;return"string"==typeof e&&(r=isNaN(Number(e))?0:Number(e)),null===(a=r)||void 0===a?void 0:null===(n=a.toLocaleString)||void 0===n?void 0:n.call(a,"en-US",{useGrouping:!0,minimumFractionDigits:t})},r=e=>t((Math.round(100*e)/100).toFixed(2),2),s=e=>e.toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function l(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";if(null==e)return"0";let t=Number(e);if(isNaN(t))return"0";let r=(Math.round(100*Math.abs(t))/100).toFixed(2),[s,l]=r.split("."),i="";for(let e=0;e<s.length;e++)e>0&&(s.length-e)%3==0&&(i+=","),i+=s[e];let o=(n?"".concat(n).concat(a):"")+"".concat(i,".").concat(l);return t<0?"-".concat(o):o}function i(e){try{return Number(e.replace(/\D/g,""))/100}catch(e){return 0}}},10027:function(e,n,a){"use strict";a.d(n,{Bg:function(){return l},s5:function(){return r}});var t=a(8260);let r=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return isNaN(Date.parse(e))?n:(0,t.Z)(new Date(Date.parse(e)),"dd/MM/yyyy")},s=function(e){var n,a;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e;return"string"==typeof e&&(r=isNaN(Number(e))?0:Number(e)),null===(a=r)||void 0===a?void 0:null===(n=a.toLocaleString)||void 0===n?void 0:n.call(a,"en-US",{useGrouping:!0,minimumFractionDigits:t})},l=e=>s((Math.round(100*e)/100).toFixed(2),2)},22556:function(e){e.exports={btnOk:"EmailSent_btnOk__GO6SD"}},45323:function(e){e.exports={orderDataRow:"OrderDataRow_orderDataRow__gj_sY",label:"OrderDataRow_label__pPh8v",value:"OrderDataRow_value__jnYLV"}},79405:function(e){e.exports={emailBtn:"PaymentSuccessView_emailBtn__cDyG6"}}
1,84354:function(e){e.exports={sendToEmailView:"SendToEmailView_sendToEmailView__g8_ns",placeholder:"SendToEmailView_placeholder__yL9IY",textFieldWrapper:"SendToEmailView_textFieldWrapper__Bixbq",textFieldError:"SendToEmailView_textFieldError__2RL3K",buttonsSection:"SendToEmailView_buttonsSection__Hst7S"}},65185:function(e){e.exports={loaderGlobal:"LoaderGlobal_loaderGlobal__ZNnUy",loader:"LoaderGlobal_loader__nl28i"}}}]);
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.