Module 648335

2,794 characters · in 3d3b05863accbf32.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{Dd:()=>c,PE:()=>f,R8:()=>m,Wn:()=>p,eI:()=>h,mr:()=>d});var l=n(166532),i=n(71532),s=n(818348),r=n(375708);let a=new Set([...new Set([s.he.CARD,s.he.PAYMENT_REQUEST,s.he.PAYPAL]),...new Set([s.he.IDEAL,s.he.BANCONTACT,s.he.GOPAY_WALLET,s.he.KAKAOPAY,s.he.VENMO,s.he.CASH_APP,s.he.GCASH,s.he.PAYSAFE_CARD,s.he.GRABPAY_MY,s.he.MOMO_WALLET,s.he.PRZELEWY24,s.he.EPS,s.he.PIX])]),o=new Set([]),u={[s.he.PAYPAL]:{paymentSourceType:s.he.PAYPAL,subtitleTranslationKey:r.t.Djzd7L,isRegionalPaymentMethod:!1,toStep:l.pn.PAYPAL_INFORMATION},[s.he.VENMO]:{paymentSourceType:s.he.VENMO,subtitleTranslationKey:r.t["4KoTLM"],isRegionalPaymentMethod:!0,toStep:l.pn.VENMO_INFORMATION},[s.he.CASH_APP]:{paymentSourceType:s.he.CASH_APP,subtitleTranslationKey:r.t["9ALP8w"],isRegionalPaymentMethod:!0,toStep:l.pn.CASH_APP_INFORMATION},[s.he.GOPAY_WALLET]:{paymentSourceType:s.he.GOPAY_WALLET,subtitleTranslationKey:r.t["43J8JK"],isRegionalPaymentMethod:!0,isStaffOnly:!0},[s.he.KAKAOPAY]:{paymentSourceType:s.he.KAKAOPAY,subtitleTranslationKey:r.t.CSVexi,isRegionalPaymentMethod:!0},[s.he.GCASH]:{paymentSourceType:s.he.GCASH,subtitleTranslationKey:r.t.PjehcF,isRegionalPaymentMethod:!0},[s.he.PAYSAFE_CARD]:{paymentSourceType:s.he.PAYSAFE_CARD,subtitleTranslationKey:r.t.boznHN,isRegionalPaymentMethod:!0},[s.he.GRABPAY_MY]:{paymentSourceType:s.he.GRABPAY_MY,subtitleTranslationKey:r.t.T5davE,isRegionalPaymentMethod:!0},[s.he.MOMO_WALLET]:{paymentSourceType:s.he.MOMO_WALLET,subtitleTranslationKey:r.t.J0A1Vk,isRegionalPaymentMethod:!0},[s.he.PRZELEWY24]:{paymentSourceType:s.he.PRZELEWY24,subtitleTranslationKey:r.t.u25uL0,isRegionalPaymentMethod:!0,toStep:l.pn.PRZELEWY24_INFORMATION},[s.he.EPS]:{paymentSourceType:s.he.EPS,subtitleTranslationKey:r.t["5BSDU6"],isRegionalPaymentMethod:!0,toStep:l.pn.EPS_INFORMATION}},c=e=>e.map(e=>({id:e.custom_payment_method_id,options:{type:"static",subtitle:e.payment_source_type in u?r.intl.string(u[e.payment_source_type].subtitleTranslationKey):void 0}})),d={[s.he.CARD]:"card",[s.he.IDEAL]:"ideal",[s.he.BANCONTACT]:"bancontact",[s.he.PAYPAL]:"paypal",[s.he.VENMO]:"venmo",[s.he.CASH_APP]:"cashapp",[s.he.GOPAY_WALLET]:"gopay",[s.he.KAKAOPAY]:"kakaopay",[s.he.GCASH]:"gcash",[s.he.PAYSAFE_CARD]:"paysafecard",[s.he.GRABPAY_MY]:"grabpay",[s.he.MOMO_WALLET]:"momo",[s.he.PRZELEWY24]:"p24",[s.he.EPS]:"eps",[s.he.PIX]:"pix"};function m(e){return e in u}function h(e){return m(e)?u[e].toStep??null:null}let p=(e,t)=>{if("card"===e||"link_card_brand"===e)return s.he.CARD;if("ideal"===e)return s.he.IDEAL;if("bancontact"===e)return s.he.BANCONTACT;if("pix"===e)return s.he.PIX;if("google_pay"===e||"apple_pay"===e)return s.he.PAYMENT_REQUEST;return e in t?t[e]:null};function f(e){return o.size>0&&o.has(e)?"test"===(0,i.ux)():a.has(e)}}