2026-07-25 08:10:48 +00:00
// Module ID: 4462
2026-07-27 11:26:19 +00:00
// Function ID: 39347
2026-07-20 16:05:17 +00:00
// Name: _callSuper
2026-07-25 08:10:48 +00:00
// Dependencies: [5, 15, 17, 18, 6, 7, 653, 482, 4453, 4458, 507, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4462 (_callSuper)
2026-07-23 10:11:24 +00:00
import _defineProperties from "_defineProperties" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import closure_7 from "ME" ;
import sum from "sum" ;
import ME from "ME" ;
import { PaymentSourceTypes } from "sum" ;
let closure_10 ;
let closure_9 ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _callSuper ( arg0 , arg1 , arg2 ) {
let items = arg2 ;
const obj = callback2 ( arg1 ) ;
if ( _isNativeReflectConstruct ( ) ) {
if ( ! items ) {
items = [ ] ;
}
let constructResult = Reflect . construct ( obj , items , callback2 ( arg0 ) . constructor ) ;
} else {
constructResult = obj . apply ( arg0 , items ) ;
}
2026-07-23 10:11:24 +00:00
return _possibleConstructorReturn ( arg0 , constructResult ) ;
2026-07-20 16:05:17 +00:00
}
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
function getIsStripeRedirectedPaymentSource ( arg0 ) {
let hasItem = set . has ( arg0 ) ;
if ( hasItem ) {
hasItem = arg0 in obj ;
}
return hasItem ;
}
function getIsStripeDirectConfirmationPaymentSource ( arg0 ) {
return arg0 in obj5 ;
}
2026-07-23 10:11:24 +00:00
( { Endpoints : closure_9 , REDIRECTED_PAYMENT_SOURCES : closure_10 } = ME ) ;
obj = { [ PaymentSourceTypes . GIROPAY ] : obj , [ PaymentSourceTypes . SOFORT ] : obj , [ PaymentSourceTypes . PRZELEWY24 ] : obj1 , [ PaymentSourceTypes . BANCONTACT ] : obj2 , [ PaymentSourceTypes . EPS ] : obj3 , [ PaymentSourceTypes . IDEAL ] : obj4 } ;
2026-07-20 16:05:17 +00:00
obj = {
confirmationType : "stripe_redirect_confirmation" ,
constructStripeConfirmPaymentHandler ( name ) {
let obj = { name : name.paymentSource.billingAddress.name } ;
obj = { stripeConfirmPayment : name.stripe.confirmGiropayPayment , paymentMethod : { billing_details : obj } } ;
return obj ;
}
} ;
obj = {
confirmationType : "stripe_redirect_confirmation" ,
constructStripeConfirmPaymentHandler ( paymentSource ) {
paymentSource = paymentSource . paymentSource ;
let obj = { country : paymentSource.billingAddress.country } ;
obj = { name : paymentSource.billingAddress.name , email : paymentSource.email } ;
obj = { stripeConfirmPayment : paymentSource.stripe.confirmSofortPayment , paymentMethod : { sofort : obj , billing_details : obj } } ;
return obj ;
}
} ;
const obj5 = { [ PaymentSourceTypes . SEPA_DEBIT ] : obj6 , [ PaymentSourceTypes . PIX ] : obj7 } ;
2026-07-23 10:11:24 +00:00
const tmp3 = ( ( ) = > {
2026-07-20 16:05:17 +00:00
class PaymentConfirmationHandler {
constructor ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_7 ( this , PaymentConfirmationHandler ) ;
2026-07-20 16:05:17 +00:00
this . paymentSource = arg0 ;
this . payment = arg1 ;
this . paymentSourceType = arg0 . type ;
this . paymentId = arg1 . payment_id ;
return ;
}
}
const items = [
{
key : "performRedirect" ,
value ( arg0 ) {
window . open ( arg0 ) ;
}
}
] ;
return callback4 ( PaymentConfirmationHandler , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
obj1 = {
2026-07-20 16:05:17 +00:00
confirmationType : "stripe_redirect_confirmation" ,
constructStripeConfirmPaymentHandler ( paymentSource ) {
paymentSource = paymentSource . paymentSource ;
if ( null == paymentSource . bank ) {
const _HermesInternal = HermesInternal ;
2026-07-25 08:10:48 +00:00
throw require ( 4453 ) /* _validatePaymentSourceBillingAddress */ . dispatchConfirmationError ( "PaymentSource (" + paymentSource . id + ") missing bank info for p24." ) ;
2026-07-20 16:05:17 +00:00
} else {
let obj = { } ;
obj = { bank : paymentSource.bank } ;
obj . p24 = obj ;
obj = { name : paymentSource.billingAddress.name , email : paymentSource.email } ;
obj . billing_details = obj ;
const obj1 = { stripeConfirmPayment : tmp.confirmP24Payment , paymentMethod : obj } ;
return obj1 ;
}
}
} ;
2026-07-23 10:11:24 +00:00
obj2 = {
2026-07-20 16:05:17 +00:00
confirmationType : "stripe_redirect_confirmation" ,
constructStripeConfirmPaymentHandler ( paymentSource ) {
paymentSource = paymentSource . paymentSource ;
let obj = { name : paymentSource.billingAddress.name , email : paymentSource.email } ;
obj = { stripeConfirmPayment : paymentSource.stripe.confirmBancontactPayment , paymentMethod : { billing_details : obj } } ;
return obj ;
}
} ;
2026-07-23 10:11:24 +00:00
obj3 = {
2026-07-20 16:05:17 +00:00
confirmationType : "stripe_redirect_confirmation" ,
constructStripeConfirmPaymentHandler ( paymentSource ) {
paymentSource = paymentSource . paymentSource ;
if ( null == paymentSource . bank ) {
const _HermesInternal = HermesInternal ;
2026-07-25 08:10:48 +00:00
throw require ( 4453 ) /* _validatePaymentSourceBillingAddress */ . dispatchConfirmationError ( "PaymentSource (" + paymentSource . id + ") missing bank info for EPS." ) ;
2026-07-20 16:05:17 +00:00
} else {
let obj = { } ;
obj = { bank : paymentSource.bank } ;
obj . eps = obj ;
obj = { name : paymentSource.billingAddress.name } ;
obj . billing_details = obj ;
const obj1 = { stripeConfirmPayment : tmp.confirmEpsPayment , paymentMethod : obj } ;
return obj1 ;
}
}
} ;
2026-07-23 10:11:24 +00:00
obj4 = {
2026-07-20 16:05:17 +00:00
confirmationType : "stripe_redirect_confirmation" ,
constructStripeConfirmPaymentHandler ( paymentSource ) {
paymentSource = paymentSource . paymentSource ;
2026-07-23 10:11:24 +00:00
obj = { ideal : { } , billing_details : obj } ;
2026-07-20 16:05:17 +00:00
obj = { name : paymentSource.billingAddress.name } ;
if ( null != paymentSource . bank ) {
obj = { bank : paymentSource.bank } ;
obj . ideal = obj ;
}
return { stripeConfirmPayment : paymentSource.stripe.confirmIdealPayment , paymentMethod : obj } ;
}
} ;
2026-07-23 10:11:24 +00:00
obj6 = {
2026-07-20 16:05:17 +00:00
confirmationType : "stripe_direct_confirmation" ,
constructStripeConfirmPaymentHandler ( paymentMethodId ) {
paymentMethodId = paymentMethodId . paymentMethodId ;
if ( null == paymentMethodId ) {
2026-07-25 08:10:48 +00:00
throw require ( 4453 ) /* _validatePaymentSourceBillingAddress */ . dispatchConfirmationError ( "On a sepa payment payment method id cannot be null" ) ;
2026-07-20 16:05:17 +00:00
} else {
const obj = { stripeConfirmPayment : tmp.confirmSepaDebitPayment , paymentMethod : paymentMethodId } ;
return obj ;
}
}
} ;
2026-07-23 10:11:24 +00:00
obj7 = {
2026-07-20 16:05:17 +00:00
confirmationType : "stripe_direct_confirmation" ,
constructStripeConfirmPaymentHandler ( stripe ) {
return { stripeConfirmPayment : stripe.stripe.confirmPixPayment , paymentMethod : stripe.paymentMethodId , pendingCustomerAction : true } ;
}
} ;
2026-07-23 10:11:24 +00:00
let tmp4 = ( ( arg0 ) = > {
2026-07-20 16:05:17 +00:00
class StripePaymentConfirmationHandler {
constructor ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_7 ( this , StripePaymentConfirmationHandler ) ;
2026-07-20 16:05:17 +00:00
if ( null == arg0 ) {
2026-07-27 11:26:19 +00:00
tmp7 = f39382 ;
tmp8 = f39376 ;
2026-07-20 16:05:17 +00:00
num2 = 8 ;
2026-07-27 11:26:19 +00:00
obj2 = f39382 ( f39376 [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
str2 = "Payment source cannot be null on a redirect." ;
throw obj2 . dispatchConfirmationError ( "Payment source cannot be null on a redirect." ) ;
} else {
2026-07-23 10:11:24 +00:00
tmp9 = outer1_13 ;
2026-07-20 16:05:17 +00:00
tmp10 = StripePaymentConfirmationHandler ;
items = [ , ] ;
items [ 0 ] = arg0 ;
tmp11 = arg1 ;
items [ 1 ] = arg1 ;
2026-07-23 10:11:24 +00:00
tmp12 = outer1_13 ( this , StripePaymentConfirmationHandler , items ) ;
2026-07-20 16:05:17 +00:00
tmp12 . stripe = null ;
2026-07-23 10:11:24 +00:00
tmp13 = outer1_15 ;
if ( outer1_15 ( tmp12 . paymentSourceType ) ) {
tmp6 = outer1_11 ;
tmp12 . handlerRegistry = outer1_11 [ tmp12 . paymentSourceType ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp2 = outer1_16 ;
if ( outer1_16 ( tmp12 . paymentSourceType ) ) {
tmp5 = outer1_12 ;
tmp12 . handlerRegistry = outer1_12 [ tmp12 . paymentSourceType ] ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-27 11:26:19 +00:00
tmp3 = f39382 ;
tmp4 = f39376 ;
2026-07-20 16:05:17 +00:00
num = 8 ;
2026-07-27 11:26:19 +00:00
obj = f39382 ( f39376 [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
str = "Invalid Payment Source Type - redirect or direct confirmation handlers not found." ;
throw obj . dispatchConfirmationError ( "Invalid Payment Source Type - redirect or direct confirmation handlers not found." ) ;
}
}
return tmp12 ;
}
}
}
2026-07-23 10:11:24 +00:00
StripePaymentConfirmationHandler ( StripePaymentConfirmationHandler , arg0 ) ;
2026-07-20 16:05:17 +00:00
let obj = { key : "getStripe" } ;
2026-07-23 10:11:24 +00:00
let _getPrototypeOf = callback ( async function ( ) {
2026-07-20 16:05:17 +00:00
const self = this ;
if ( null == self . stripe ) {
2026-07-25 08:10:48 +00:00
self . stripe = yield callback2 ( 4458 ) . getStripe ( ) ;
const obj = callback2 ( 4458 ) ;
2026-07-20 16:05:17 +00:00
}
if ( null == self . stripe ) {
2026-07-25 08:10:48 +00:00
throw callback ( 4453 ) . dispatchConfirmationError ( "Stripe cannot be null on a redirect." ) ;
2026-07-20 16:05:17 +00:00
} else {
return self . stripe ;
}
} ) ;
obj . value = function getStripe() {
2026-07-23 10:11:24 +00:00
return callback5 ( . . . arguments ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = { key : "getPaymentIntentInfo" } ;
2026-07-23 10:11:24 +00:00
let _possibleConstructorReturn = callback ( async function ( ) {
const HTTP = callback ( table [ 10 ] ) . HTTP ;
let obj = { url : outer2_9.BILLING_STRIPE_PAYMENT_INTENTS ( this . paymentId ) , oldFormErrors : true , rejectWithError : true } ;
2026-07-20 16:05:17 +00:00
const body = yield HTTP . get ( obj ) . body ;
obj = { clientSecret : body.stripe_payment_intent_client_secret , paymentMethodId : body.stripe_payment_intent_payment_method_id } ;
return obj ;
} ) ;
obj . value = function getPaymentIntentInfo() {
2026-07-23 10:11:24 +00:00
return callback4 ( . . . arguments ) ;
2026-07-20 16:05:17 +00:00
} ;
items [ 1 ] = obj ;
obj = { key : "getStripeRedirect" } ;
2026-07-23 10:11:24 +00:00
callback = callback ( async ( arg0 ) = > {
const iter = ( function * ( arg0 ) {
2026-07-20 16:05:17 +00:00
let clientSecret ;
let error ;
let paymentIntent ;
let paymentMethodId ;
let state ;
const self = this ;
( { state , clientSecret , paymentMethodId } = arg0 ) ;
yield undefined ;
const handlerRegistry = self . handlerRegistry ;
let obj = { stripe : yield self . getStripe ( ) , paymentSource : self.paymentSource , paymentMethodId } ;
const result = handlerRegistry . constructStripeConfirmPaymentHandler ( obj ) ;
obj = { payment_method : result.paymentMethod } ;
let str = "" ;
2026-07-23 10:11:24 +00:00
const aPIBaseURL = callback ( 507 ) . getAPIBaseURL ( ) ;
2026-07-20 16:05:17 +00:00
if ( null != state ) {
str = state ;
}
2026-07-23 10:11:24 +00:00
obj . return_url = aPIBaseURL + outer2_9 . BILLING_POPUP_BRIDGE_CALLBACK_REDIRECT_PREFIX ( self . paymentSourceType , str , "success" ) ;
const obj4 = callback ( 507 ) ;
2026-07-20 16:05:17 +00:00
( { paymentIntent , error } = yield result . stripeConfirmPayment ( clientSecret , obj , { handleActions : false } ) ) ;
if ( null != error ) {
2026-07-25 08:10:48 +00:00
throw callback ( 4453 ) . dispatchConfirmationError ( error ) ;
2026-07-20 16:05:17 +00:00
} else if ( null == paymentIntent ) {
2026-07-25 08:10:48 +00:00
throw callback ( 4453 ) . dispatchConfirmationError ( "paymentIntent not available with successful api call" ) ;
2026-07-20 16:05:17 +00:00
} else {
const next_action = paymentIntent . next_action ;
let url ;
if ( null != next_action ) {
const redirect_to_url = next_action . redirect_to_url ;
if ( null != redirect_to_url ) {
url = redirect_to_url . url ;
}
}
if ( null == url ) {
2026-07-25 08:10:48 +00:00
throw callback ( 4453 ) . dispatchConfirmationError ( "confirm payment did not return a redirect url" ) ;
2026-07-20 16:05:17 +00:00
} else {
return paymentIntent . next_action . redirect_to_url . url ;
}
}
const tmp4 = yield result . stripeConfirmPayment ( clientSecret , obj , { handleActions : false } ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
iter . next ( ) ;
return iter ;
2026-07-20 16:05:17 +00:00
} ) ;
obj . value = function getStripeRedirect ( arg0 ) {
2026-07-23 10:11:24 +00:00
return callback3 ( . . . arguments ) ;
2026-07-20 16:05:17 +00:00
} ;
items [ 2 ] = obj ;
2026-07-23 10:11:24 +00:00
let obj1 = { key : "confirmRedirectedPaymentSource" } ;
2026-07-20 16:05:17 +00:00
let closure_2 = callback ( async ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
const iter = ( function * ( arg0 ) {
2026-07-20 16:05:17 +00:00
let clientSecret ;
let paymentMethodId ;
const self = this ;
( { clientSecret , paymentMethodId } = arg0 ) ;
yield undefined ;
2026-07-23 10:11:24 +00:00
let obj = callback ( table [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { clientSecret , state : yield obj . popupBridgeState ( self . paymentSourceType ) , paymentMethodId } ;
self . performRedirect ( yield self . getStripeRedirect ( obj ) ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
iter . next ( ) ;
return iter ;
2026-07-20 16:05:17 +00:00
} ) ;
obj1 . value = function confirmRedirectedPaymentSource ( arg0 ) {
2026-07-23 10:11:24 +00:00
return dependencyMap ( . . . arguments ) ;
2026-07-20 16:05:17 +00:00
} ;
items [ 3 ] = obj1 ;
const obj2 = { key : "confirmDirectPaymentSource" } ;
let closure_1 = callback ( async ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
const iter = ( function * ( arg0 ) {
2026-07-20 16:05:17 +00:00
let clientSecret ;
let error ;
let paymentIntent ;
let paymentMethodId ;
const self = this ;
( { clientSecret , paymentMethodId } = arg0 ) ;
yield undefined ;
const handlerRegistry = self . handlerRegistry ;
let obj = { stripe : yield self . getStripe ( ) , paymentSource : self.paymentSource , paymentMethodId } ;
const result = handlerRegistry . constructStripeConfirmPaymentHandler ( obj ) ;
obj = { payment_method : result.paymentMethod } ;
( { paymentIntent , error } = yield result . stripeConfirmPayment ( clientSecret , obj ) ) ;
if ( null != error ) {
2026-07-25 08:10:48 +00:00
throw callback ( 4453 ) . dispatchConfirmationError ( error ) ;
2026-07-20 16:05:17 +00:00
} else if ( null == paymentIntent ) {
2026-07-25 08:10:48 +00:00
throw callback ( 4453 ) . dispatchConfirmationError ( "paymentIntent not available with successful stripe call" ) ;
2026-07-20 16:05:17 +00:00
} else {
obj = { pendingCustomerAction : result.pendingCustomerAction , customerActionCancelled : "requires_action" === paymentIntent . status } ;
return obj ;
}
const tmp2 = yield result . stripeConfirmPayment ( clientSecret , obj ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
iter . next ( ) ;
return iter ;
2026-07-20 16:05:17 +00:00
} ) ;
obj2 . value = function confirmDirectPaymentSource ( arg0 ) {
return callback2 ( . . . arguments ) ;
} ;
items [ 4 ] = obj2 ;
const obj3 = { key : "confirmPayment" } ;
let closure_0 = callback ( async function ( ) {
let clientSecret ;
let paymentMethodId ;
const self = this ;
( { clientSecret , paymentMethodId } = yield self . getPaymentIntentInfo ( ) ) ;
if ( "stripe_redirect_confirmation" === self . handlerRegistry . confirmationType ) {
let obj = { clientSecret , paymentMethodId } ;
yield self . confirmRedirectedPaymentSource ( obj ) ;
obj = { redirectConfirmation : true } ;
return obj ;
} else {
obj = { clientSecret , paymentMethodId } ;
const obj1 = { redirectConfirmation : false } ;
( { pendingCustomerAction : obj2.pendingCustomerAction , customerActionCancelled : obj2.customerActionCancelled } = yield self . confirmDirectPaymentSource ( obj ) ) ;
return obj1 ;
}
const tmp = yield self . getPaymentIntentInfo ( ) ;
} ) ;
obj3 . value = function confirmPayment() {
return callback ( . . . arguments ) ;
} ;
items [ 5 ] = obj3 ;
return callback4 ( StripePaymentConfirmationHandler , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( tmp3 ) ;
const tmp5 = ( ( arg0 ) = > {
2026-07-20 16:05:17 +00:00
class AdyenPaymentConfirmationHandler {
constructor ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_7 ( this , AdyenPaymentConfirmationHandler ) ;
2026-07-20 16:05:17 +00:00
if ( null == arg0 ) {
tmp5 = AdyenPaymentConfirmationHandler ;
2026-07-23 10:11:24 +00:00
tmp6 = outer1_2 ;
2026-07-20 16:05:17 +00:00
num = 8 ;
2026-07-23 10:11:24 +00:00
obj = AdyenPaymentConfirmationHandler ( outer1_2 [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
str = "Payment source cannot be null on a redirect." ;
throw obj . dispatchConfirmationError ( "Payment source cannot be null on a redirect." ) ;
} else {
2026-07-23 10:11:24 +00:00
tmp2 = outer1_13 ;
2026-07-20 16:05:17 +00:00
tmp3 = AdyenPaymentConfirmationHandler ;
items = [ , ] ;
items [ 0 ] = arg0 ;
tmp4 = arg1 ;
items [ 1 ] = arg1 ;
2026-07-23 10:11:24 +00:00
return outer1_13 ( this , AdyenPaymentConfirmationHandler , items ) ;
2026-07-20 16:05:17 +00:00
}
}
}
callback3 ( AdyenPaymentConfirmationHandler , arg0 ) ;
let obj = {
key : "handleAdyenConfirmation" ,
value() {
const self = this ;
const adyen_redirect_url = this . payment . adyen_redirect_url ;
if ( null == adyen_redirect_url ) {
2026-07-23 10:11:24 +00:00
throw AdyenPaymentConfirmationHandler ( outer1_2 [ 8 ] ) . dispatchConfirmationError ( "redirect url cannot be null on a redirect for adyen." ) ;
2026-07-20 16:05:17 +00:00
} else {
const obj = { } ;
2026-07-23 10:11:24 +00:00
if ( outer1_10 . has ( self . paymentSource . type ) ) {
2026-07-20 16:05:17 +00:00
self . performRedirect ( adyen_redirect_url ) ;
obj . redirectConfirmation = true ;
obj . redirectURL = adyen_redirect_url ;
let tmp2 = obj ;
} else {
obj . redirectConfirmation = false ;
obj . redirectURL = adyen_redirect_url ;
tmp2 = obj ;
}
return tmp2 ;
}
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "confirmPayment" ,
value() {
return Promise . resolve ( this . handleAdyenConfirmation ( ) ) ;
}
} ;
items [ 1 ] = obj ;
return callback4 ( AdyenPaymentConfirmationHandler , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( tmp3 ) ;
let result = require ( "_getPrototypeOf" ) . fileFinishedImporting ( "modules/billing/actions/HandleConfirmPaymentRegistry.tsx" ) ;
2026-07-20 16:05:17 +00:00
export const STRIPE_REDIRECTED_PAYMENT_METHOD_REGISTRY = obj ;
export { getIsStripeRedirectedPaymentSource } ;
export const STRIPE_DIRECT_CONFIRM_PAYMENT_METHOD_REGISTRY = obj5 ;
export { getIsStripeDirectConfirmationPaymentSource } ;
export const StripePaymentConfirmationHandler = tmp4 ;
export const AdyenPaymentConfirmationHandler = tmp5 ;