Build 614181stable
Module 648335
2,738 characters · in 19252a91c31b6fce.js, d405005d41c069ae.jsDependencies
Source Raw
function(e,t,n){n.d(t,{Dd:()=>s,R8:()=>c,Wn:()=>h,eI:()=>d,eX:()=>C,mr:()=>u});var r=n(166532),l=n(818348),i=n(375708);let o=new Set([...new Set([l.he.CARD,l.he.PAYMENT_REQUEST,l.he.PAYPAL]),...new Set([l.he.IDEAL,l.he.BANCONTACT,l.he.GOPAY_WALLET,l.he.KAKAOPAY,l.he.VENMO,l.he.CASH_APP,l.he.GCASH,l.he.PAYSAFE_CARD,l.he.GRABPAY_MY,l.he.MOMO_WALLET,l.he.PRZELEWY24,l.he.EPS,l.he.PIX])]),a={[l.he.PAYPAL]:{paymentSourceType:l.he.PAYPAL,subtitleTranslationKey:i.t.Djzd7L,isRegionalPaymentMethod:!1,toStep:r.pn.PAYPAL_INFORMATION},[l.he.VENMO]:{paymentSourceType:l.he.VENMO,subtitleTranslationKey:i.t["4KoTLM"],isRegionalPaymentMethod:!0,toStep:r.pn.VENMO_INFORMATION},[l.he.CASH_APP]:{paymentSourceType:l.he.CASH_APP,subtitleTranslationKey:i.t["9ALP8w"],isRegionalPaymentMethod:!0,toStep:r.pn.CASH_APP_INFORMATION},[l.he.GOPAY_WALLET]:{paymentSourceType:l.he.GOPAY_WALLET,subtitleTranslationKey:i.t["43J8JK"],isRegionalPaymentMethod:!0,isStaffOnly:!0},[l.he.KAKAOPAY]:{paymentSourceType:l.he.KAKAOPAY,subtitleTranslationKey:i.t.CSVexi,isRegionalPaymentMethod:!0},[l.he.GCASH]:{paymentSourceType:l.he.GCASH,subtitleTranslationKey:i.t.PjehcF,isRegionalPaymentMethod:!0},[l.he.PAYSAFE_CARD]:{paymentSourceType:l.he.PAYSAFE_CARD,subtitleTranslationKey:i.t.boznHN,isRegionalPaymentMethod:!0},[l.he.GRABPAY_MY]:{paymentSourceType:l.he.GRABPAY_MY,subtitleTranslationKey:i.t.T5davE,isRegionalPaymentMethod:!0},[l.he.MOMO_WALLET]:{paymentSourceType:l.he.MOMO_WALLET,subtitleTranslationKey:i.t.J0A1Vk,isRegionalPaymentMethod:!0},[l.he.PRZELEWY24]:{paymentSourceType:l.he.PRZELEWY24,subtitleTranslationKey:i.t.u25uL0,isRegionalPaymentMethod:!0,toStep:r.pn.PRZELEWY24_INFORMATION},[l.he.EPS]:{paymentSourceType:l.he.EPS,subtitleTranslationKey:i.t["5BSDU6"],isRegionalPaymentMethod:!0,toStep:r.pn.EPS_INFORMATION}};function s(e){return e.map(e=>({id:e.custom_payment_method_id,options:{type:"static",subtitle:e.payment_source_type in a?i.intl.string(a[e.payment_source_type].subtitleTranslationKey):void 0}}))}let u={[l.he.CARD]:"card",[l.he.IDEAL]:"ideal",[l.he.BANCONTACT]:"bancontact",[l.he.PAYPAL]:"paypal",[l.he.VENMO]:"venmo",[l.he.CASH_APP]:"cashapp",[l.he.GOPAY_WALLET]:"gopay",[l.he.KAKAOPAY]:"kakaopay",[l.he.GCASH]:"gcash",[l.he.PAYSAFE_CARD]:"paysafecard",[l.he.GRABPAY_MY]:"grabpay",[l.he.MOMO_WALLET]:"momo",[l.he.PRZELEWY24]:"p24",[l.he.EPS]:"eps",[l.he.PIX]:"pix"};function c(e){return e in a}function d(e){return c(e)?a[e].toStep??null:null}function h(e,t){if("card"===e||"link_card_brand"===e)return l.he.CARD;if("ideal"===e)return l.he.IDEAL;if("bancontact"===e)return l.he.BANCONTACT;if("pix"===e)return l.he.PIX;if("google_pay"===e||"apple_pay"===e)return l.he.PAYMENT_REQUEST;return e in t?t[e]:null}function C(e){return o.has(e)}}