Build 571251stable
Module 648335
2,815 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{Dd:()=>c,PE:()=>p,R8:()=>_,Wn:()=>f,eI:()=>h,mr:()=>d});var i=n(166532),r=n(71532),s=n(818348),a=n(375708);let o=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])]),l=new Set([]),u={[s.he.PAYPAL]:{paymentSourceType:s.he.PAYPAL,subtitleTranslationKey:a.t.Djzd7L,isRegionalPaymentMethod:!1,toStep:i.pn.PAYPAL_INFORMATION},[s.he.VENMO]:{paymentSourceType:s.he.VENMO,subtitleTranslationKey:a.t["4KoTLM"],isRegionalPaymentMethod:!0,toStep:i.pn.VENMO_INFORMATION},[s.he.CASH_APP]:{paymentSourceType:s.he.CASH_APP,subtitleTranslationKey:a.t["9ALP8w"],isRegionalPaymentMethod:!0,toStep:i.pn.CASH_APP_INFORMATION},[s.he.GOPAY_WALLET]:{paymentSourceType:s.he.GOPAY_WALLET,subtitleTranslationKey:a.t["43J8JK"],isRegionalPaymentMethod:!0,isStaffOnly:!0},[s.he.KAKAOPAY]:{paymentSourceType:s.he.KAKAOPAY,subtitleTranslationKey:a.t.CSVexi,isRegionalPaymentMethod:!0},[s.he.GCASH]:{paymentSourceType:s.he.GCASH,subtitleTranslationKey:a.t.PjehcF,isRegionalPaymentMethod:!0},[s.he.PAYSAFE_CARD]:{paymentSourceType:s.he.PAYSAFE_CARD,subtitleTranslationKey:a.t.boznHN,isRegionalPaymentMethod:!0},[s.he.GRABPAY_MY]:{paymentSourceType:s.he.GRABPAY_MY,subtitleTranslationKey:a.t.T5davE,isRegionalPaymentMethod:!0},[s.he.MOMO_WALLET]:{paymentSourceType:s.he.MOMO_WALLET,subtitleTranslationKey:a.t.J0A1Vk,isRegionalPaymentMethod:!0},[s.he.PRZELEWY24]:{paymentSourceType:s.he.PRZELEWY24,subtitleTranslationKey:a.t.u25uL0,isRegionalPaymentMethod:!0,toStep:i.pn.PRZELEWY24_INFORMATION},[s.he.EPS]:{paymentSourceType:s.he.EPS,subtitleTranslationKey:a.t["5BSDU6"],isRegionalPaymentMethod:!0,toStep:i.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={[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 _(e){return e in u}function h(e){return _(e)?u[e].toStep??null:null}function f(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 p(e){return l.size>0&&l.has(e)?"test"===(0,r.ux)():o.has(e)}}