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