@solvimon/solvimon-web 0.1.0-alpha.26 → 0.1.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -10
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
- package/dist/{Avatar.vue.es-Bm6MCMAL.js → Avatar.vue.es-BJxSCU76.js} +1 -1
- package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +14 -15
- package/dist/{Button.vue.es-qGvnOKnK.js → Button.vue.es-BzkuglKw.js} +1 -1
- package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CB4mrvkU.mjs} +145 -153
- package/dist/{ChargeOnDemandModal-DIQaGnRs.js → ChargeOnDemandModal-b17YswWA.js} +1 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
- package/dist/{Chip.vue.es-D60gTbfe.js → Chip.vue.es-B2jjzIOc.js} +1 -1
- package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-C7KI8Gz6.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
- package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-bFUx81Ig.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +110 -123
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
- package/dist/{DividerText.vue.es-BF3gnr4e.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
- package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-BX9dHEc-.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
- package/dist/{IconButton.vue.es-Bwdfu-jm.js → IconButton.vue.es-DgQN18Am.js} +1 -1
- package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
- package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
- package/dist/{IconTitle.vue.es-Cei98MBw.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
- package/dist/{Input.vue.es-B47l_feL.js → Input.vue.es-B60eK8Ds.js} +1 -1
- package/dist/{Input.vue.es-D9IjIWc-.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
- package/dist/{InvoiceSummary.vue.es-DBnR9Hs7.js → InvoiceSummary.vue.es-CAmA8g0t.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +7 -7
- package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
- package/dist/{Modal.vue.es-8LN4gBh0.js → Modal.vue.es-DvLB3uCG.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-Ds93gNvh.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
- package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-B_Db4DG1.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
- package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs} +4 -4
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
- package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +16 -20
- package/dist/{PaymentIntegrationFormStripe-DUCJTIAq.js → PaymentIntegrationFormStripe-CoLmAzas.js} +3 -3
- package/dist/{PaymentIntegrationFormStripe-BIiMCWlV.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +5 -5
- package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +3 -3
- package/dist/{PaymentMethod.vue.es-CJcSZ9lN.js → PaymentMethod.vue.es-D0D9jW8s.js} +1 -1
- package/dist/{PaymentMethodForm-1d0YIGOu.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
- package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +33 -35
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
- package/dist/{PlanCustomizationEditor-CpZeilm5.mjs → PlanCustomizationEditor-DlVSCKGN.mjs} +234 -206
- package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-DZSJ5Mz0.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs} +6 -6
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-Dt6LH9Yh.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
- package/dist/{Section.vue.es-zVXBHAL6.js → Section.vue.es-Bbt0RITt.js} +1 -1
- package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
- package/dist/{StepInput.vue.es-mAnuCuDQ.js → StepInput.vue.es-H-3R4jJq.js} +1 -1
- package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-o-3Lg4Ai.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-CGl6Z5ql.mjs} +22 -22
- package/dist/{SubscriptionDetails.entry.ce-D4CsSoR9.js → SubscriptionDetails.entry.ce-CQUO_uXH.js} +1 -1
- package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
- package/dist/{SubscriptionSchedules-Cm5Dt-1H.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +11 -11
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +8 -9
- package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-Cph6zT31.js → TooltipParagraph.vue.es-DvC5Wjaz.js} +1 -1
- package/dist/{TrialChip.vue.es-C_wgHGuN.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
- package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
- package/dist/{cn.es-D9YMDvG2.js → cn.es-C9Yqq4tg.js} +1 -1
- package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +9 -9
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +15 -16
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +14 -15
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-D5DAoHRI.mjs → customElements-B58FcXIN.mjs} +5 -5
- package/dist/{customElements-C963-LtW.js → customElements-DUMRMFQ5.js} +2 -2
- package/dist/{customer-DKa1B2vp.mjs → customer-B3LPAhaD.mjs} +1 -1
- package/dist/{customer-TE1FnGT0.js → customer-CisTPaXj.js} +1 -1
- package/dist/{de-DE-CLfzTbbX.mjs → de-DE-DKp5LCu0.mjs} +15 -1
- package/dist/de-DE-DL74pMLb.js +1 -0
- package/dist/en-US-B2XFj-_p.js +1 -0
- package/dist/{en-US-D6SGRAch.mjs → en-US-DQ5vlv9Z.mjs} +15 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{invoices-DJTwftJv.mjs → invoices-3520M5AN.mjs} +1 -1
- package/dist/{invoices-ClqTWYF9.js → invoices-CKQBLar2.js} +1 -1
- package/dist/{it-IT-Cym1UvvK.mjs → it-IT-BgFVsO5S.mjs} +15 -1
- package/dist/it-IT-CqNK62qe.js +1 -0
- package/dist/nl-NL-Dx-TNXQ1.js +1 -0
- package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-UiRWbO9S.mjs} +15 -1
- package/dist/{paymentMethods-CWzJhcWK.mjs → paymentMethods-CWlvwK5V.mjs} +1 -1
- package/dist/{paymentMethods-AL2U_byg.js → paymentMethods-Cw-i95mM.js} +1 -1
- package/dist/{payments-aXyfylwk.mjs → payments-2qeQdpiW.mjs} +1 -1
- package/dist/{payments-BmiHMlQt.js → payments-CS7_YcOW.js} +1 -1
- package/dist/pricing-BIMpDI_p.mjs +29 -0
- package/dist/pricing-BOqG21f9.js +1 -0
- package/dist/{pricingPlanSchedules-BfsMSvN0.js → pricingPlanSchedules-B_sTAIgU.js} +1 -1
- package/dist/{pricingPlanSchedules-BD4GIP_F.mjs → pricingPlanSchedules-ChQCbMfe.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +12 -12
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
- package/dist/{subscriptions-cnR5fnf7.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
- package/dist/{subscriptions-Cm83ckfl.js → subscriptions-DwVsf4Ev.js} +1 -1
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +1 -1
- package/dist/{useActionDispatchProvider-DDYqIh3r.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CHkVQMaE.js → useActionDispatchProvider-DFhppdve.js} +1 -1
- package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
- package/dist/{useCustomer-DGYtowRy.js → useCustomer-BwZKd9i5.js} +1 -1
- package/dist/{useCustomerFormLabels-CcnkJLcB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +5 -5
- package/dist/{useCustomerFormLabels-DAZziqYt.js → useCustomerFormLabels-DV9QiMYh.js} +1 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
- package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
- package/dist/{useInvoiceData-BEK-7msA.mjs → useInvoiceData-BocKdeg7.mjs} +2 -2
- package/dist/{useInvoiceData-CQRn8l9C.js → useInvoiceData-CNV_FMV8.js} +1 -1
- package/dist/{useInvoicesList-C4I118KM.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
- package/dist/{useInvoicesList-BQkKyyXa.js → useInvoicesList-S0IbQcrD.js} +1 -1
- package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
- package/dist/{useLoadInitialData-CrKnBZs_.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
- package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +13 -14
- package/dist/{usePaymentMethodOptions-Ciifjo6c.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +1 -1
- package/dist/{usePaymentMethodOptions-Cqe92ZBn.js → usePaymentMethodOptions-CuzOoi2k.js} +1 -1
- package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
- package/dist/{usePaymentMethods-BKwrl82-.js → usePaymentMethods-DDaTZQZp.js} +1 -1
- package/dist/{usePayments-CV85OV8V.mjs → usePayments-Cr6NlGaW.mjs} +6 -6
- package/dist/{usePayments-Bauj16B-.js → usePayments-DDSjo0rH.js} +1 -1
- package/dist/{usePortal-DSLImEfr.js → usePortal-C27omjhz.js} +1 -1
- package/dist/{usePortal-H8Tv2TnZ.mjs → usePortal-C5AsegpS.mjs} +1 -1
- package/dist/{useSubscription-DqnxWNKg.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
- package/dist/{useSubscription-BiYNJT2e.js → useSubscription-D787IXY-.js} +1 -1
- package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
- package/dist/{useTimePeriod.es-D2aiyfd-.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
- package/package.json +10 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
- package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
- package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
- package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/de-DE-DaBBl-Ak.js +0 -1
- package/dist/en-US-BNevqm0M.js +0 -1
- package/dist/it-IT-BkPbTueL.js +0 -1
- package/dist/nl-NL-jIfAVGv0.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
- package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
- package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as w, defineComponent as b, computed as h, openBlock as l, createBlock as p, withCtx as n, unref as r, createVNode as u, createTextVNode as i, toDisplayString as d, createCommentVNode as _, onBeforeUnmount as C, createElementVNode as g, createElementBlock as k } from "vue";
|
|
2
2
|
import { f as R } from "./formatting.es-RclXHhKo.mjs";
|
|
3
|
-
import { a as A, _ as I } from "./Button.vue.es-
|
|
4
|
-
import { a as T, _ as f } from "./customElements-
|
|
5
|
-
import { _ as M } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as x } from "./IconButton.vue.es-
|
|
3
|
+
import { a as A, _ as I } from "./Button.vue.es-Cmjfm4jw.mjs";
|
|
4
|
+
import { a as T, _ as f } from "./customElements-B58FcXIN.mjs";
|
|
5
|
+
import { _ as M } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs";
|
|
6
|
+
import { _ as x } from "./IconButton.vue.es-DvfErUOq.mjs";
|
|
7
7
|
const N = () => {
|
|
8
8
|
const e = w(null);
|
|
9
9
|
return [async (t) => {
|
|
@@ -263,8 +263,7 @@ const z = { class: "flex flex-col items-center gap-6" }, L = {
|
|
|
263
263
|
u(r(f), {
|
|
264
264
|
variant: "body-xs",
|
|
265
265
|
tag: "span",
|
|
266
|
-
class: "select-all font-mono"
|
|
267
|
-
"data-testid": "payment-error-reference"
|
|
266
|
+
class: "select-all font-mono"
|
|
268
267
|
}, {
|
|
269
268
|
default: n(() => [
|
|
270
269
|
i(d(e.error.reference), 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),n=require("./Button.vue.es-
|
|
1
|
+
const e=require("vue"),n=require("./Button.vue.es-BzkuglKw.js"),a=require("./Section.vue.es-Bbt0RITt.js"),c=require("./customElements-DUMRMFQ5.js"),r={class:"flex flex-col items-center py-10"},i=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup(t){return(s,l)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main),null,{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(n._sfc_main$1),{icon:t.status==="success"?"check_circle":"error",class:e.normalizeClass({"text-green-400":t.status==="success","text-red-600":t.status==="error"}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(c._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),s.$slots.default?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))}});exports._sfc_main=i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as r, createBlock as c, unref as t, withCtx as s, createElementVNode as i, createVNode as n, normalizeClass as m, createTextVNode as d, toDisplayString as u, renderSlot as f, createCommentVNode as _ } from "vue";
|
|
2
|
-
import { a as p } from "./Button.vue.es-
|
|
3
|
-
import { _ as g } from "./Section.vue.es-
|
|
4
|
-
import { _ as o } from "./customElements-
|
|
2
|
+
import { a as p } from "./Button.vue.es-Cmjfm4jw.mjs";
|
|
3
|
+
import { _ as g } from "./Section.vue.es-DVEpre9O.mjs";
|
|
4
|
+
import { _ as o } from "./customElements-B58FcXIN.mjs";
|
|
5
5
|
const y = { class: "flex flex-col items-center py-10" }, v = /* @__PURE__ */ l({
|
|
6
6
|
__name: "PaymentFeedbackCard",
|
|
7
7
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),o=require("./PaymentMethod.vue.es-
|
|
1
|
+
const e=require("vue"),o=require("./PaymentMethod.vue.es-D0D9jW8s.js"),c=require("./formatting.es-C72Nsrmh.js"),m=require("./Chip.vue.es-B2jjzIOc.js"),_=require("./Section.vue.es-Bbt0RITt.js"),n=require("./customElements-DUMRMFQ5.js"),d={class:"sv-payment-history"},l={class:"sv-payment-history__items flex flex-col-reverse gap-1"},y={class:"sv-payment-history__item-header mb-2 flex items-center justify-between"},u=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(s){const{$t:a,formatDate:i}=n.useIntl(),r={AUTHORIZED:"success",CANCELLED:"danger",ERROR:"danger",PENDING:"warning",PENDING_REFUND:"warning",REFUNDED:"warning",CHARGED_BACK:"warning",REFUSED:"danger"};return(f,p)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.unref(n._sfc_main),{tag:"h2",variant:"heading-3",class:"sv-payment-history__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentAttempts,t=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:t.id,class:"sv-payment-history__item mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(e.unref(n._sfc_main),{variant:"caps-heading",class:"sv-payment-history__item-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(m._sfc_main),{class:"sv-payment-history__item-status",intent:r[t.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c.formatEnum)(t.result)),1)]),_:2},1032,["intent"])]),t.payment_method_details?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,class:"sv-payment-history__payment-method","payment-method":t.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:t.created_at,format:"dateTime",offsetType:"offsetted",timezone:s.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=u;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as s, createElementBlock as _, createVNode as o, unref as e, withCtx as a, createTextVNode as i, toDisplayString as n, createElementVNode as c, Fragment as h, renderList as u, createBlock as d, createCommentVNode as g } from "vue";
|
|
2
|
-
import { _ as v } from "./PaymentMethod.vue.es-
|
|
2
|
+
import { _ as v } from "./PaymentMethod.vue.es-4YRmQZHX.mjs";
|
|
3
3
|
import { a as E } from "./formatting.es-RclXHhKo.mjs";
|
|
4
|
-
import { _ as D } from "./Chip.vue.es-
|
|
5
|
-
import { _ as N } from "./Section.vue.es-
|
|
6
|
-
import { a as k, _ as l } from "./customElements-
|
|
4
|
+
import { _ as D } from "./Chip.vue.es-DksjbJO8.mjs";
|
|
5
|
+
import { _ as N } from "./Section.vue.es-DVEpre9O.mjs";
|
|
6
|
+
import { a as k, _ as l } from "./customElements-B58FcXIN.mjs";
|
|
7
7
|
const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__items flex flex-col-reverse gap-1" }, C = { class: "sv-payment-history__item-header mb-2 flex items-center justify-between" }, U = /* @__PURE__ */ f({
|
|
8
8
|
__name: "PaymentHistoryBlock",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js");exports.default=e._sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=require("vue"),E=require("./FormMessage.vue.es-dqATjC2N.js"),$=require("./customElements-DUMRMFQ5.js"),F=require("./useExperimentalFeature-CGIkgFR4.js"),I=e=>{var i;return((i=e.integration.payment_gateway)==null?void 0:i.variant)==="ADYEN"},b=e=>{var i;return((i=e.integration.payment_gateway)==null?void 0:i.variant)==="STRIPE"},S=({selectedIntegration:e,paymentMethodOption:i})=>{var r,s;return e===((s=(r=i.integration)==null?void 0:r.payment_gateway)==null?void 0:s.variant)},w=(e,{excludeExpressPaymentMethods:i=!1}={})=>{var r;return I(e)?F.getAdyenDropInPaymentMethods(e,{excludeExpressPaymentMethods:i}).length>0:b(e)?!!((r=e.integration.payment_gateway.stripe)!=null&&r.public_key):!1},C=(e,i={})=>e.some(r=>w(r,i)),N=t.defineComponent({__name:"PaymentIntegrationForm",props:{customerId:{type:String},variant:{type:String},context:{type:Object},paymentMethodOptions:{type:Array},countryCode:{type:String},invoiceId:{type:String},amount:{type:Object},selectedOption:{type:String},email:{type:String},name:{type:String},validateOnSubmit:{type:Function},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","invalid","ready"],setup(e,{expose:i,emit:r}){const s=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormStripe-CoLmAzas.js")).then(n=>n.default)),P=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormAdyen-B-v-4nlj.js")).then(n=>n.default)),l=e,c=r;i({submit:h});const{$t:k}=$.useIntl(),y=t.ref(),u=t.computed(()=>{var n,a;return y.value??((a=(n=l.paymentMethodOptions[0])==null?void 0:n.integration.payment_gateway)==null?void 0:a.variant)}),v=t.ref(new Map),d=t.ref(!1),g=({paymentGatewayVariant:n,paymentMethodType:a})=>{d.value=!1,y.value=n,c("select",{paymentGatewayVariant:n,paymentMethodType:a})},f=n=>a=>{var o;return v.value.set((o=n.integration.payment_gateway)==null?void 0:o.variant,a)},B=n=>{n==="NO_PAYMENT_METHOD"&&(d.value=!0),c("invalid",n)};function h(){var a;if(!u.value){d.value=!0,(a=l.validateOnSubmit)==null||a.call(l),c("invalid");return}const n=v.value.get(u.value);if(!n){c("invalid");return}n.submit()}return(n,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.paymentMethodOptions,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.integration.id},[t.unref(I)(o)?(t.openBlock(),t.createBlock(t.unref(P),{key:0,ref_for:!0,ref:f(o),context:e.context,"payment-method-option-response-entry":o,"country-code":e.countryCode,"customer-id":e.customerId,variant:e.variant,amount:e.amount,"invoice-id":e.invoiceId,selected:t.unref(S)({selectedIntegration:u.value,paymentMethodOption:o}),"validate-on-submit":e.validateOnSubmit,"force-store-payment-method":e.forceStorePaymentMethod,"store-payment-method":e.storePaymentMethod,"redirects-on-success":e.redirectsOnSuccess,"billing-entity-name":e.billingEntityName,onSelect:g,onPaymentFailed:a[0]||(a[0]=m=>n.$emit("payment-failed",m)),onPaymentSuccess:a[1]||(a[1]=m=>n.$emit("payment-success")),onInvalid:B,onReady:a[2]||(a[2]=m=>n.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","validate-on-submit","force-store-payment-method","store-payment-method","redirects-on-success","billing-entity-name"])):t.unref(b)(o)?(t.openBlock(),t.createBlock(t.unref(s),{key:1,ref_for:!0,ref:f(o),context:e.context,"payment-method-option-response-entry":o,"country-code":e.countryCode,"customer-id":e.customerId,variant:e.variant,amount:e.amount,"invoice-id":e.invoiceId,selected:t.unref(S)({selectedIntegration:u.value,paymentMethodOption:o}),email:e.email,name:e.name,"validate-on-submit":e.validateOnSubmit,"force-store-payment-method":e.forceStorePaymentMethod,"store-payment-method":e.storePaymentMethod,"redirects-on-success":e.redirectsOnSuccess,"billing-entity-name":e.billingEntityName,onSelect:g,onPaymentFailed:a[3]||(a[3]=m=>n.$emit("payment-failed",m)),onPaymentSuccess:a[4]||(a[4]=m=>n.$emit("payment-success")),onInvalid:a[5]||(a[5]=m=>n.$emit("invalid")),onReady:a[6]||(a[6]=m=>n.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","email","name","validate-on-submit","force-store-payment-method","store-payment-method","redirects-on-success","billing-entity-name"])):t.createCommentVNode("",!0)],64))),128)),d.value?(t.openBlock(),t.createBlock(t.unref(E._sfc_main),{key:0,variant:"error",class:"mt-2"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(k)({defaultMessage:"Select a payment method",id:"payment_integration_form.select_payment_method_error",description:"Error shown when no payment method is selected"})),1)]),_:1})):t.createCommentVNode("",!0)],64))}});exports._sfc_main=N;exports.hasRenderablePaymentIntegration=C;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, defineAsyncComponent as h, ref as v, computed as B, openBlock as s, createElementBlock as g, Fragment as f, renderList as x, unref as m, createBlock as S, createCommentVNode as w, withCtx as D, createTextVNode as O, toDisplayString as T } from "vue";
|
|
2
2
|
import { _ as M } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
3
|
-
import { a as j } from "./customElements-
|
|
4
|
-
import { g as Y } from "./
|
|
3
|
+
import { a as j } from "./customElements-B58FcXIN.mjs";
|
|
4
|
+
import { g as Y } from "./useExperimentalFeature-BciA3Ok9.mjs";
|
|
5
5
|
const k = (e) => {
|
|
6
6
|
var i;
|
|
7
7
|
return ((i = e.integration.payment_gateway) == null ? void 0 : i.variant) === "ADYEN";
|
|
@@ -41,11 +41,11 @@ const k = (e) => {
|
|
|
41
41
|
emits: ["select", "payment-failed", "payment-success", "invalid", "ready"],
|
|
42
42
|
setup(e, { expose: i, emit: o }) {
|
|
43
43
|
const d = h(
|
|
44
|
-
() => import("./PaymentIntegrationFormStripe-
|
|
44
|
+
() => import("./PaymentIntegrationFormStripe-Ds0BXt89.mjs").then(
|
|
45
45
|
(t) => t.default
|
|
46
46
|
)
|
|
47
47
|
), A = h(
|
|
48
|
-
() => import("./PaymentIntegrationFormAdyen-
|
|
48
|
+
() => import("./PaymentIntegrationFormAdyen-Yr8p5Fly.mjs").then(
|
|
49
49
|
(t) => t.default
|
|
50
50
|
)
|
|
51
51
|
), l = e, c = o;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),re=require("./useService-H7BjLg8P.js"),N=require("./customElements-DUMRMFQ5.js"),F=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js"),ie=require("./payments-CS7_YcOW.js"),U=require("./url-vloPOiXd.js"),de=require("./paymentMethods-Cw-i95mM.js"),y=require("./useExperimentalFeature-CGIkgFR4.js"),se=require("./adyenSdk-BP2XXzeJ.js"),Y=require("./paymentFailure-Cki8c5BX.js"),ce=".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";function ue(u){return(u==null?void 0:u.querySelector(ce))??null}function me(u,p){return!!u&&!!p&&!u.contains(p)}const pe=u=>{let p={};return u==="TOKENIZE"&&(p={"en-US":{payButton:"Add payment method",confirmPurchase:"Add payment method"},"fr-FR":{payButton:"Ajouter un moyen de paiement",confirmPurchase:"Ajouter un moyen de paiement"},"de-DE":{payButton:"Zahlungsmethode hinzufügen",confirmPurchase:"Zahlungsmethode hinzufügen"},"it-IT":{payButton:"Aggiungi metodo di pagamento",confirmPurchase:"Aggiungi metodo di pagamento"},"es-ES":{payButton:"Añadir método de pago",confirmPurchase:"Añadir método de pago"},"nl-NL":{payButton:"Betaalmethode toevoegen",confirmPurchase:"Betaalmethode toevoegen"},"pt-BR":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pt-PT":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pl-PL":{payButton:"Dodaj metodę płatności",confirmPurchase:"Dodaj metodę płatności"},"ru-RU":{payButton:"Добавить способ оплаты",confirmPurchase:"Добавить способ оплаты"},"sv-SE":{payButton:"Lägg till betalningsmetod",confirmPurchase:"Lägg till betalningsmetod"},"da-DK":{payButton:"Tilføj betalingsmetode",confirmPurchase:"Tilføj betalingsmetode"},"fi-FI":{payButton:"Lisää maksutapa",confirmPurchase:"Lisää maksutapa"},"no-NO":{payButton:"Legg til betalingsmetode",confirmPurchase:"Legg til betalingsmetode"},"cs-CZ":{payButton:"Přidat platební metodu",confirmPurchase:"Přidat platební metodu"},"hu-HU":{payButton:"Fizetési mód hozzáadása",confirmPurchase:"Fizetési mód hozzáadása"},"ro-RO":{payButton:"Adăugați metodă de plată",confirmPurchase:"Adăugați metodă de plată"},"ja-JP":{payButton:"支払い方法を追加",confirmPurchase:"支払い方法を追加"},"ko-KR":{payButton:"결제 수단 추가",confirmPurchase:"결제 수단 추가"},"zh-CN":{payButton:"添加支付方式",confirmPurchase:"添加支付方式"},"zh-TW":{payButton:"新增付款方式",confirmPurchase:"新增付款方式"},ar:{payButton:"إضافة وسيلة دفع",confirmPurchase:"إضافة وسيلة دفع"},"hr-HR":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"el-GR":{payButton:"Προσθήκη μεθόδου πληρωμής",confirmPurchase:"Προσθήκη μεθόδου πληρωμής"},"sk-SK":{payButton:"Pridať spôsob platby",confirmPurchase:"Pridať spôsob platby"},"sl-SI":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"bg-BG":{payButton:"Добавяне на начин на плащане",confirmPurchase:"Добавяне на начин на плащане"},"ca-ES":{payButton:"Afegir mètode de pagament",confirmPurchase:"Afegir mètode de pagament"},"et-EE":{payButton:"Lisa makseviis",confirmPurchase:"Lisa makseviis"},"lv-LV":{payButton:"Pievienot maksājuma veidu",confirmPurchase:"Pievienot maksājuma veidu"},"lt-LT":{payButton:"Pridėti mokėjimo metodą",confirmPurchase:"Pridėti mokėjimo metodą"}}),p},ye={class:"sv-sepa-mandate mt-3"},le=n.defineComponent({__name:"SepaMandateNotice",props:{billingEntityName:{type:String}},setup(u){const p=u,{$t:g}=N.useIntl(),i=n.computed(()=>g({defaultMessage:"SEPA Direct Debit mandate — recurring payments",description:"Title of the SEPA direct debit mandate shown inside the SEPA payment form",id:"payments.sepa_mandate.title"})),b=n.computed(()=>p.billingEntityName?g({defaultMessage:"By confirming this mandate, you authorise {billingEntityName} to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",description:"SEPA direct debit mandate authorisation, naming the billing entity",id:"payments.sepa_mandate.authorisation"},{billingEntityName:p.billingEntityName}):g({defaultMessage:"By confirming this mandate, you authorise us to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",description:"SEPA direct debit mandate authorisation, where the billing entity is not known",id:"payments.sepa_mandate.authorisation_unnamed"})),a=n.computed(()=>p.billingEntityName?g({defaultMessage:"This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",description:"Explains that the SEPA mandate covers later invoices, naming the billing entity",id:"payments.sepa_mandate.recurrence"},{billingEntityName:p.billingEntityName}):g({defaultMessage:"This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",description:"Explains that the SEPA mandate covers later invoices, where the billing entity is not known",id:"payments.sepa_mandate.recurrence_unnamed"})),l=n.computed(()=>g({defaultMessage:"As part of your rights, you're entitled to a refund from your bank under the terms and conditions of your agreement with your bank. You must claim a refund within 8 weeks from the date your account was debited. You can request a statement from your bank explaining your rights.",description:"SEPA direct debit mandate refund rights, held against the payer's own bank",id:"payments.sepa_mandate.refund_rights"}));return(h,v)=>(n.openBlock(),n.createElementBlock("div",ye,[n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",class:"font-semibold"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.value),1)]),_:1}),n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",color:"subtle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b.value)+" "+n.toDisplayString(a.value)+" "+n.toDisplayString(l.value),1)]),_:1})]))}}),T="ADYEN",he=n.defineComponent({__name:"PaymentIntegrationFormAdyen",props:{context:{type:Object},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","invalid","ready"],setup(u,{expose:p,emit:g}){let i=null,b=null;const a=u,l=g;p({submit:V});const h=n.ref(),v=n.ref(null),A=n.ref(null);let _;const R=n.ref(!1),P=n.ref(),d=N.useLogger(),{locale:j}=N.useIntl(),{authorizePayment:Z,getPaymentDetails:z}=ie.createPaymentsService(),{tokenizePaymentMethod:G}=de.createPaymentMethodsService(),O=y.useExperimentalFeature(),M=n.computed(()=>{var e;return y.getAdyenDropInPaymentMethods(a.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!((e=O==null?void 0:O.value)!=null&&e["express-checkout"])})}),S=n.computed(()=>M.value.length>0);function m(e){return Y.createPaymentFailureContext({gateway:T,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:a.variant,invoiceId:a.invoiceId,customerId:a.customerId,...e})}function E(e){const t=Y.createPaymentFailureError(e);P.value=t,l("payment-failed",t)}function V(){if(!(i!=null&&i.isValid)){if(i&&!i.activePaymentMethod){l("invalid","NO_PAYMENT_METHOD");return}i==null||i.showValidation(),l("invalid");return}try{i.submit()}catch(e){d.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",m({reason:"ADYEN_SUBMIT_FAILED",cause:e}),e),E({code:a.variant==="TOKENIZE"?"TOKENIZE_FAILED":"AUTHORIZATION_FAILED",message:"Failed to submit Adyen drop-in",error:e})}}async function K(){const e=y.toMinorUnitAmount(a.amount),t=M.value;return{checkoutConfig:{amount:e,clientKey:y.getAdyenClientKeyFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry),environment:y.getAdyenEnvironmentFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry,d),locale:j,translations:pe(a.variant),countryCode:a.countryCode,analytics:{enabled:!1},paymentMethodsResponse:{paymentMethods:t},onSubmit:J,onAdditionalDetails:X,onPaymentCompleted:ne,onPaymentFailed:te,onError:ae,showPayButton:!1},dropInConfig:{disableFinalAnimation:!0,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0,enableStoreDetails:!a.forceStorePaymentMethod&&a.storePaymentMethod===void 0&&a.variant==="AUTHORIZE"},paypal:{intent:e.value>0?"authorize":"tokenize",showPayButton:!0}},openFirstPaymentMethod:a.selected,onSelect:({props:{type:r}})=>{r&&l("select",{paymentMethodType:r,paymentGatewayVariant:"ADYEN"})},onReady:()=>l("ready")}}}function H(){return Promise.all([se.loadAdyenSdk(),Promise.resolve().then(()=>require("./adyen-BJfC7N6f.js")).then(e=>e.default)])}async function D(){if(await L(),P.value=void 0,!S.value){const{payment_acceptor:e,integration:t}=a.paymentMethodOptionResponseEntry;d.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE","No Adyen payment methods to offer",{fingerprint:["PAYMENT_INTEGRATION_NOT_RENDERABLE",e.id],paymentAcceptorId:e.id,integrationId:t.id,...a.invoiceId?{invoiceId:a.invoiceId}:{}});return}if(await n.nextTick(),!!h.value)try{const[e,t]=await H(),{checkoutConfig:r,dropInConfig:o}=await K();b=await e.AdyenCheckout(r),i=new e.Dropin(b,{...o,paymentMethodComponents:e.dropInPaymentMethodComponents}).mount(h.value),Q(t),q()}catch(e){d.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",m({reason:"ADYEN_DROP_IN_MOUNT_FAILED",cause:e}),e),E({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:"Failed to mount Adyen web drop-in",error:e})}}function C(){const e=ue(h.value);if(me(e,v.value)){A.value=null,n.nextTick(()=>A.value=e);return}A.value=e}function q(){_==null||_.disconnect(),h.value&&(_=new MutationObserver(()=>C()),_.observe(h.value,{childList:!0,subtree:!0}),C())}function $(){_==null||_.disconnect(),_=void 0,A.value=null}async function L(){$(),i&&(i.unmount(),i=null),h.value&&(h.value.innerHTML="")}function Q(e){var r;const t=(r=h.value)==null?void 0:r.getRootNode();if(t instanceof ShadowRoot){const o=document.createElement("style");o.textContent=e,t.appendChild(o);const s=document.createElement("style");s.textContent=`
|
|
2
|
+
:host {
|
|
3
|
+
--adyen-sdk-color-background-secondary: transparent;
|
|
4
|
+
--adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
|
|
5
|
+
--adyen-sdk-color-outline-secondary: #e5e7eb;
|
|
6
|
+
--adyen-sdk-color-outline-primary: transparent;
|
|
7
|
+
--adyen-sdk-color-background-always-dark: var(--color-primary-500);
|
|
8
|
+
--adyen-sdk-color-background-inverse-primary-hover: var(--color-primary-600);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.adyen-checkout__payment-method__image__wrapper {
|
|
12
|
+
width: 32px;
|
|
13
|
+
height: 32px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.adyen-checkout__payment-method__image {
|
|
17
|
+
height: 32px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.adyen-checkout__input-wrapper,
|
|
21
|
+
.adyen-checkout__input {
|
|
22
|
+
border-color: rgb(229, 231, 235);
|
|
23
|
+
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.adyen-checkout__button,
|
|
27
|
+
.adyen-checkout__payment-method {
|
|
28
|
+
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.adyen-checkout__payment-method {
|
|
32
|
+
border-color: rgb(229, 231, 235);
|
|
33
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
34
|
+
transition: box-shadow 0.2s ease-in-out;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.adyen-checkout__payment-method--selected {
|
|
38
|
+
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.adyen-checkout__payment-method:after {
|
|
42
|
+
transform: scale(0%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.adyen-checkout__paypal__button {
|
|
46
|
+
display: block !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.adyen-checkout__payment-methods-list {
|
|
50
|
+
gap: 4px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.adyen-checkout__dropdown__list {
|
|
54
|
+
background-color: white;
|
|
55
|
+
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.adyen-checkout__payment-method.adyen-checkout__payment-method--selected:after {
|
|
59
|
+
content: '✓';
|
|
60
|
+
width: 20px;
|
|
61
|
+
height: 20px;
|
|
62
|
+
border-radius: 10px;
|
|
63
|
+
background-color: var(--color-primary-600);
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 14px;
|
|
66
|
+
right: 14px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
color: white;
|
|
70
|
+
transform: scale(100%);
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.adyen-checkout__payment-method__header {
|
|
75
|
+
padding: 8px 16px !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.adyen-checkout__payment-method__brands {
|
|
79
|
+
align-items: center;
|
|
80
|
+
}
|
|
81
|
+
.adyen-checkout__payment-method__brand-number {
|
|
82
|
+
line-height: 1;
|
|
83
|
+
}
|
|
84
|
+
.adyen-checkout__button__text {
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
}
|
|
87
|
+
.adyen-checkout__store-details {
|
|
88
|
+
background: transparent;
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
.adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
|
|
92
|
+
border-color: rgb(229, 231, 235);
|
|
93
|
+
}
|
|
94
|
+
`,a.variant==="AUTHORIZE"&&(s.textContent+=`
|
|
95
|
+
.adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
`),t.appendChild(s)}}function w(e,{paymentMethodType:t,actions:r,logFailure:o}){if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const s=W(e,t);if(!s){o(e);return}i.handleAction(s),r.resolve({resultCode:e.action.adyen.result_code,action:s});return}if(e.payment.result==="AUTHORIZED"){R.value=!0,r.resolve({resultCode:"Authorised"});return}o(e),r.resolve({resultCode:"Error"})}function J(...e){const[t,r,o]=e;a.validateOnSubmit().then(s=>{if(!s){i==null||i.setStatus("ready"),l("invalid");return}const c=a.paymentMethodOptionResponseEntry.payment_acceptor.id,B={risk_data:y.transformObjectToAdyenObject(t.data.riskData),payment_method:y.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:y.transformObjectToAdyenObject(t.data.browserInfo)};if(a.variant==="AUTHORIZE"){const k=y.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});Z({payment_acceptor_id:c,...a.customerId?{customer_id:a.customerId}:{},payment_gateway_variant:T,adyen:{...B,store_payment_method:a.storePaymentMethod??(a.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:a.amount,...a.context?{context:a.context}:{},return_url:k}).then(f=>w(f,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>d.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,m({reason:"PAYMENT_AUTHORIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(f=>{d.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,m({reason:"PAYMENT_AUTHORIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:f}),f),o.resolve({resultCode:"Error"})});return}if(a.variant==="TOKENIZE"){const k=y.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!a.customerId){d.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${c}`,m({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),E({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}G({customer_id:a.customerId,payment_acceptor_id:c,payment_gateway_variant:T,adyen:B,return_url:k}).then(f=>w(f,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>d.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,m({reason:"TOKENIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(f=>{d.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,m({reason:"TOKENIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:f}),f),o.resolve({resultCode:"Error"})})}}).catch(s=>{d.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",m({reason:"ADYEN_SUBMISSION_FLOW_FAILED",cause:s}),s)})}function W(e,t){if(e.status!=="ACTION_REQUIRED")return;const r=e.action;if(r.payment_gateway_variant!="ADYEN")return;const o=r.adyen;return{paymentMethodType:(o==null?void 0:o.payment_method_type)??t,method:r.method,url:r.url,data:r.data,type:o==null?void 0:o.action_type,paymentData:o==null?void 0:o.payment_data,sdkData:o==null?void 0:o.sdk_data}}function X(...e){const[t]=e,r=t.data.details,o=t.data.paymentData;if(a.paymentMethodOptionResponseEntry.payment_acceptor.id){x({detailsResult:r?ee(r):void 0,paymentDataResult:o,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id});return}d.error("PAYMENT_ACCEPTOR_MISSING","Additional details arrived without a payment acceptor id",m({reason:"PAYMENT_ACCEPTOR_MISSING"})),E({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Payment failed",error:e})}function ee(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}function te(...e){const[t]=e;d.error("ADYEN_PAYMENT_FAILED","Adyen reported the payment as failed",m({reason:"ADYEN_PAYMENT_FAILED",extra:{resultCode:t==null?void 0:t.resultCode}}),t),E({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:t})}function ne(...e){const[,t]=e;t==null||t.unmount(),l("payment-success")}function ae(...e){const[t,r]=e;t.name!=="CANCEL"&&(d.error("INTEGRATION_ERROR","The Adyen drop-in reported an error",m({reason:"ADYEN_INTEGRATION_ERROR",cause:t,extra:{adyenErrorName:t.name}}),t),E({code:"UNKNOWN_ERROR",message:"Something went wrong",error:t}),r==null||r.unmount())}function x({detailsResult:e,threeDSResult:t,redirectResult:r,paymentDataResult:o,paymentAcceptorId:s}){z({paymentAcceptorId:s,paymentGatewayVariant:T,adyen:{...e?{details:e}:{},...r?{redirect_result:r}:{},...t?{threeds_result:t}:{},...o?{payment_data:o}:{}}}).then(c=>{if(c.payment_status==="FAILURE"){d.error("PAYMENT_DETAILS_REJECTED","Payment details returned a failed payment",m({reason:"PAYMENT_DETAILS_REJECTED",paymentAcceptorId:s,extra:{paymentStatus:c.payment_status}})),E({code:"AUTHORIZATION_FAILED",message:"Failed getting payment details",error:c});return}if(c.payment_status==="SUCCESS"){l("payment-success");return}}).catch(c=>{d.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",m({reason:"PAYMENT_DETAILS_CALL_FAILED",paymentAcceptorId:s,cause:c}),c),E({code:"PAYMENT_DETAILS_CALL_FAILED",message:"Failed fetching payment details",error:c})})}function oe(){const e=U.getQueryParam(y.REDIRECT_RESULT_QUERY_STRING),t=U.getQueryParam(y.PAYMENT_ACCEPTOR_ID_QUERY_STRING);if(e){if(!t){d.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",m({reason:"INVALID_REDIRECT_RESULT"})),E({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Redirect result is set but payment acceptor id is missing"});return}x({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}})}}return n.onMounted(()=>{D(),oe()}),n.onBeforeUnmount(()=>{L()}),n.watch(()=>a.paymentMethodOptionResponseEntry,(e,t)=>{re.isEqual(e,t)||D()},{deep:!0}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[R.value?(n.openBlock(),n.createBlock(F._sfc_main,{key:0,variant:u.variant,redirecting:u.redirectsOnSuccess},null,8,["variant","redirecting"])):P.value?(n.openBlock(),n.createBlock(F._sfc_main$1,{key:1,error:P.value},null,8,["error"])):n.createCommentVNode("",!0),S.value?(n.openBlock(),n.createElementBlock("div",{key:2,ref_key:"dropInContainerRef",ref:h},null,512)):n.createCommentVNode("",!0),A.value?(n.openBlock(),n.createBlock(n.Teleport,{key:3,to:A.value},[n.createElementVNode("div",{ref_key:"sepaNoticeRef",ref:v},[n.createVNode(le,{"billing-entity-name":u.billingEntityName},null,8,["billing-entity-name"])],512)],8,["to"])):n.createCommentVNode("",!0)],64))}});exports.default=he;
|
package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs}
RENAMED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent as W, computed as A, openBlock as g, createElementBlock as C, createVNode as L, unref as G, withCtx as K, createTextVNode as H, toDisplayString as v, ref as T, onMounted as Ee, onBeforeUnmount as fe, watch as ge, Fragment as Ae, createBlock as k, createCommentVNode as D, Teleport as Ie, createElementVNode as Te, nextTick as V } from "vue";
|
|
2
2
|
import { a as Ne } from "./useService-Bh47bllz.mjs";
|
|
3
|
-
import { a as q, _ as $, b as be } from "./customElements-
|
|
4
|
-
import { _ as Pe, a as ve } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { c as Re } from "./payments-
|
|
3
|
+
import { a as q, _ as $, b as be } from "./customElements-B58FcXIN.mjs";
|
|
4
|
+
import { _ as Pe, a as ve } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs";
|
|
5
|
+
import { c as Re } from "./payments-2qeQdpiW.mjs";
|
|
6
6
|
import { g as J } from "./url-TNRgVI8A.mjs";
|
|
7
|
-
import { c as Oe } from "./paymentMethods-
|
|
8
|
-
import {
|
|
9
|
-
import { l as
|
|
10
|
-
import { u as xe } from "./useExperimentalFeature-ierhOt9Q.mjs";
|
|
7
|
+
import { c as Oe } from "./paymentMethods-CWlvwK5V.mjs";
|
|
8
|
+
import { u as Me, g as ke, t as De, a as Se, b as Ce, R as Le, P as we, c as S, d as Q } from "./useExperimentalFeature-BciA3Ok9.mjs";
|
|
9
|
+
import { l as xe } from "./adyenSdk-B01MB9Ia.mjs";
|
|
11
10
|
import { c as Be, a as Fe } from "./paymentFailure-Bh60UhxA.mjs";
|
|
12
11
|
const Ue = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
|
|
13
12
|
function Ye(c) {
|
|
@@ -144,10 +143,7 @@ const Ze = (c) => {
|
|
|
144
143
|
confirmPurchase: "Pridėti mokėjimo metodą"
|
|
145
144
|
}
|
|
146
145
|
}), m;
|
|
147
|
-
}, ze = {
|
|
148
|
-
class: "sv-sepa-mandate mt-3",
|
|
149
|
-
"data-testid": "sepa-mandate-notice"
|
|
150
|
-
}, Ge = /* @__PURE__ */ W({
|
|
146
|
+
}, ze = { class: "sv-sepa-mandate mt-3" }, Ge = /* @__PURE__ */ W({
|
|
151
147
|
__name: "SepaMandateNotice",
|
|
152
148
|
props: {
|
|
153
149
|
billingEntityName: { type: String }
|
|
@@ -215,7 +211,7 @@ const Ze = (c) => {
|
|
|
215
211
|
})
|
|
216
212
|
]));
|
|
217
213
|
}
|
|
218
|
-
}), N = "ADYEN",
|
|
214
|
+
}), N = "ADYEN", tt = /* @__PURE__ */ W({
|
|
219
215
|
__name: "PaymentIntegrationFormAdyen",
|
|
220
216
|
props: {
|
|
221
217
|
context: { type: Object },
|
|
@@ -239,10 +235,10 @@ const Ze = (c) => {
|
|
|
239
235
|
m({ submit: ne });
|
|
240
236
|
const y = T(), R = T(null), f = T(null);
|
|
241
237
|
let l;
|
|
242
|
-
const w = T(!1), P = T(), i = be(), { locale: X } = q(), { authorizePayment: ee, getPaymentDetails: te } = Re(), { tokenizePaymentMethod: ae } = Oe(), O =
|
|
238
|
+
const w = T(!1), P = T(), i = be(), { locale: X } = q(), { authorizePayment: ee, getPaymentDetails: te } = Re(), { tokenizePaymentMethod: ae } = Oe(), O = Me(), x = A(
|
|
243
239
|
() => {
|
|
244
240
|
var e;
|
|
245
|
-
return
|
|
241
|
+
return ke(a.paymentMethodOptionResponseEntry, {
|
|
246
242
|
excludeExpressPaymentMethods: !!((e = O == null ? void 0 : O.value) != null && e["express-checkout"])
|
|
247
243
|
});
|
|
248
244
|
}
|
|
@@ -286,14 +282,14 @@ const Ze = (c) => {
|
|
|
286
282
|
}
|
|
287
283
|
}
|
|
288
284
|
async function oe() {
|
|
289
|
-
const e =
|
|
285
|
+
const e = De(a.amount), t = x.value;
|
|
290
286
|
return {
|
|
291
287
|
checkoutConfig: {
|
|
292
288
|
amount: e,
|
|
293
|
-
clientKey:
|
|
289
|
+
clientKey: Ce(
|
|
294
290
|
a.paymentMethodOptionResponseEntry
|
|
295
291
|
),
|
|
296
|
-
environment:
|
|
292
|
+
environment: Se(
|
|
297
293
|
a.paymentMethodOptionResponseEntry,
|
|
298
294
|
i
|
|
299
295
|
),
|
|
@@ -332,7 +328,7 @@ const Ze = (c) => {
|
|
|
332
328
|
}
|
|
333
329
|
function re() {
|
|
334
330
|
return Promise.all([
|
|
335
|
-
|
|
331
|
+
xe(),
|
|
336
332
|
import("./adyen-Bugab0JE.mjs").then((e) => e.default)
|
|
337
333
|
]);
|
|
338
334
|
}
|
|
@@ -754,7 +750,7 @@ const Ze = (c) => {
|
|
|
754
750
|
});
|
|
755
751
|
}
|
|
756
752
|
function _e() {
|
|
757
|
-
const e = J(
|
|
753
|
+
const e = J(Le), t = J(we);
|
|
758
754
|
if (e) {
|
|
759
755
|
if (!t) {
|
|
760
756
|
i.error(
|
|
@@ -814,5 +810,5 @@ const Ze = (c) => {
|
|
|
814
810
|
}
|
|
815
811
|
});
|
|
816
812
|
export {
|
|
817
|
-
|
|
813
|
+
tt as default
|
|
818
814
|
};
|
package/dist/{PaymentIntegrationFormStripe-DUCJTIAq.js → PaymentIntegrationFormStripe-CoLmAzas.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),j=require("./useService-H7BjLg8P.js"),N=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),j=require("./useService-H7BjLg8P.js"),N=require("./useExperimentalFeature-CGIkgFR4.js"),w=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js"),H=require("./payments-CS7_YcOW.js"),z=require("./paymentMethods-Cw-i95mM.js"),O=require("./url-vloPOiXd.js"),q=require("./customElements-DUMRMFQ5.js"),C=require("./paymentFailure-Cki8c5BX.js"),F="https://js.stripe.com/dahlia/stripe.js",Y=`<!DOCTYPE html>
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
@@ -10,7 +10,7 @@ body { overflow: hidden; }
|
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="stripe-root"></div>
|
|
13
|
-
<script src="${
|
|
13
|
+
<script src="${F}"><\/script>
|
|
14
14
|
<script>
|
|
15
15
|
(function () {
|
|
16
16
|
let stripe, elements, countryCode, email, name, parentOrigin;
|
|
@@ -99,4 +99,4 @@ body { overflow: hidden; }
|
|
|
99
99
|
})();
|
|
100
100
|
<\/script>
|
|
101
101
|
</body>
|
|
102
|
-
</html>`,G=["src","height"],Q=n.defineComponent({__name:"PaymentIntegrationFormStripeFrame",props:{publicKey:{type:String},options:{type:Object},countryCode:{type:String},email:{type:String},name:{type:String}},emits:["ready","change","loaderror","submit-success","submit-error"],setup(p,{expose:f,emit:R}){const t=p,s=R;f({triggerSubmit:h});const m=n.ref(),y=n.ref(0),E=n.ref();function A(){var o,r;(r=(o=m.value)==null?void 0:o.contentWindow)==null||r.postMessage({type:"stripe:init",publicKey:t.publicKey,options:t.options,countryCode:t.countryCode,email:t.email,name:t.name},"*")}function h(){var o,r;(r=(o=m.value)==null?void 0:o.contentWindow)==null||r.postMessage({type:"stripe:submit",email:t.email,name:t.name},"*")}const I={api_connection_error:!0,api_error:!0,authentication_error:!0,card_error:!0,idempotency_error:!0,invalid_request_error:!0,rate_limit_error:!0,validation_error:!0};function c(o){return typeof o=="string"&&Object.hasOwn(I,o)}function S(o){return typeof o=="object"&&o!==null}function b(o){if(!m.value||o.source!==m.value.contentWindow||!S(o.data))return;const r=o.data,v=r.type;if(!(typeof v!="string"||!v.startsWith("stripe:")))switch(v){case"stripe:ready":s("ready");break;case"stripe:change":s("change",typeof r.paymentMethodType=="string"?r.paymentMethodType:"card");break;case"stripe:loaderror":{const d=S(r.error)?r.error:{};s("loaderror",{message:typeof d.message=="string"?d.message:void 0,type:c(d.type)?d.type:void 0});break}case"stripe:resize":typeof r.height=="number"&&(y.value=r.height);break;case"stripe:submit:success":typeof r.confirmationTokenId=="string"&&s("submit-success",r.confirmationTokenId);break;case"stripe:submit:error":{const d=S(r.error)?r.error:{};s("submit-error",{message:typeof d.message=="string"?d.message:void 0,type:c(d.type)?d.type:void 0,code:typeof d.code=="string"?d.code:void 0});break}}}return n.onMounted(()=>{const o=new Blob([Y],{type:"text/html"});E.value=URL.createObjectURL(o),window.addEventListener("message",b)}),n.onBeforeUnmount(()=>{window.removeEventListener("message",b),E.value&&URL.revokeObjectURL(E.value)}),n.watch(()=>t.options,(o,r)=>{j.isEqual(o,r)||A()},{deep:!0}),(o,r)=>(n.openBlock(),n.createElementBlock("iframe",{ref_key:"iframeRef",ref:m,src:E.value,height:y.value||void 0,frameborder:"0",style:{width:"100%",display:"block",border:"none"},title:"Payment form",onLoad:A},null,40,G))}}),D={link:"never"},M={variables:{borderRadius:"4px",colorBackground:"rgba(243, 244, 246, 0.5)"},rules:{".TermsText":{fontSize:"14px"},".Input":{backgroundColor:"rgba(243, 244, 246, 0.5)",fontSize:"14px",borderColor:"rgb(229, 231, 235)"}}};function W(p,f){return{billingDetails:{address:{country:"never"},...p?{email:"never"}:{},...f?{name:"never"}:{}}}}function $({amount:p,email:f,name:R,variant:t,storePaymentMethod:s=!1}){const m=p.currency.toLowerCase(),y=W(f,R);return t==="TOKENIZE"?{mode:"setup",currency:m,setup_future_usage:"off_session",wallets:D,fields:y,appearance:M}:{mode:"payment",currency:m,amount:N.toMinorUnitAmount(p).value,...s?{setup_future_usage:"off_session"}:{},wallets:D,fields:y,appearance:M}}const T="STRIPE",V=n.defineComponent({__name:"PaymentIntegrationFormStripe",props:{email:{type:String},name:{type:String},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},context:{type:Object},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","invalid","ready"],setup(p,{expose:f,emit:R}){const t=p,s=R;f({submit:v});const m=n.ref(!1),y=n.ref(),E=n.ref(),A=n.computed(()=>t.storePaymentMethod??t.forceStorePaymentMethod??!1),h=n.computed(()=>$({amount:t.amount,email:t.email,name:t.name,variant:t.variant,storePaymentMethod:A.value})),I=n.ref(null),c=q.useLogger(),{authorizePayment:S}=H.createPaymentsService(),{tokenizePaymentMethod:b}=z.createPaymentMethodsService(),o=n.computed(()=>{var e,a;return(a=(e=t.paymentMethodOptionResponseEntry.integration.payment_gateway)==null?void 0:e.stripe)==null?void 0:a.public_key});function r(e){return C.createPaymentFailureContext({gateway:T,paymentAcceptorId:t.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:t.variant,invoiceId:t.invoiceId,customerId:t.customerId,...e})}function v(){d().catch(e=>{c.error("STRIPE_SUBMIT_FAILED","Unexpected error during Stripe submission",r({reason:"STRIPE_SUBMIT_FAILED",cause:e}),e)})}async function d(){if(!await t.validateOnSubmit()||!E.value){s("invalid");return}E.value.triggerSubmit()}function F(e){if(e.type==="validation_error"){s("invalid");return}c.error("STRIPE_CONFIRMATION_TOKEN_FAILED","Stripe submission failed",r({reason:"STRIPE_CONFIRMATION_TOKEN_FAILED",cause:e}),e),l({code:t.variant==="TOKENIZE"?"TOKENIZE_FAILED":"AUTHORIZATION_FAILED",message:e.message??"Stripe submission failed",error:e})}function k(e){return new Promise((a,u)=>{if(window.Stripe){a(window.Stripe(e));return}const i=document.createElement("script");i.src=L,i.onload=()=>{if(!window.Stripe){u(new Error("Stripe not available after script load"));return}a(window.Stripe(e))},i.onerror=()=>u(new Error("Failed to load Stripe.js")),document.head.appendChild(i)})}async function U(){if(I.value)return I.value;const e=o.value;if(!e)throw new Error("Missing Stripe public key");const a=await k(e);return I.value=a,a}async function x(e){const a=t.paymentMethodOptionResponseEntry.payment_acceptor.id,u=N.createReturnUrl({paymentAcceptorId:a,redirectUrl:window.location.href});if(t.variant==="AUTHORIZE"){try{const i=await S({payment_acceptor_id:a,...t.customerId?{customer_id:t.customerId}:{},payment_gateway_variant:T,stripe:{confirmation_token_id:e},amount:t.amount,...t.context&&t.context.type!=="CHARGE_ON_DEMAND"?{context:t.context}:{},return_url:u});await P(i)}catch(i){c.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${a}`,r({reason:"PAYMENT_AUTHORIZATION_FAILED",cause:i}),i),l({code:"AUTHORIZATION_FAILED",message:"Payment authorization failed",error:i})}return}if(t.variant==="TOKENIZE"){if(!t.customerId){c.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${a}`,r({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),l({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}try{const i=await b({customer_id:t.customerId,payment_acceptor_id:a,payment_gateway_variant:T,stripe:{confirmation_token_id:e},return_url:u});await P(i)}catch(i){c.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${a}`,r({reason:"TOKENIZATION_FAILED",cause:i}),i),l({code:"TOKENIZE_FAILED",message:"Tokenization failed",error:i})}}}async function P(e){var a;if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const u=e.action.client_secret||((a=e.action.data)==null?void 0:a.client_secret);if(!u){c.error("STRIPE_ACTION_FAILED","Missing client_secret in Stripe ACTION_REQUIRED response",r({reason:"STRIPE_ACTION_MISSING_CLIENT_SECRET",extra:{paymentStatus:e.status}})),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:e});return}let i;try{i=await U()}catch(g){c.error("STRIPE_ACTION_FAILED","Failed to load Stripe.js",r({reason:"STRIPE_SDK_LOAD_FAILED",cause:g}),g),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:g});return}const{error:_}=await i.handleNextAction({clientSecret:u});if(_){c.error("STRIPE_ACTION_FAILED","Stripe handleNextAction failed",r({reason:"STRIPE_NEXT_ACTION_FAILED",cause:_,extra:{stripeErrorCode:_.code,stripeErrorType:_.type}}),_),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:_});return}m.value=!0,s("payment-success");return}if(e.status==="SUCCESS"){m.value=!0,s("payment-success");return}c.error("STRIPE_ACTION_FAILED","Unexpected payment result status",r({reason:"STRIPE_UNEXPECTED_PAYMENT_STATUS",extra:{paymentStatus:e.status}})),l({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:e})}async function Z(){const e=t.paymentMethodOptionResponseEntry.payment_acceptor.id;if(O.getQueryParam(N.PAYMENT_ACCEPTOR_ID_QUERY_STRING)!==e)return;const u=O.getQueryParam("redirect_status"),i=O.getQueryParam("payment_intent_client_secret"),_=O.getQueryParam("setup_intent_client_secret");if(!u||!i&&!_)return;if(u==="succeeded"){m.value=!0,s("payment-success");return}const g=new globalThis.Error(`Stripe redirect returned status: ${u}`);c.error("STRIPE_REDIRECT_RETURN_FAILED","Stripe redirect returned non-succeeded status",r({reason:"STRIPE_REDIRECT_RETURN_FAILED",extra:{redirectStatus:u}}),g),l({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:g})}function B(){s("select",{paymentMethodType:"card",paymentGatewayVariant:T}),s("ready")}function K(e){c.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to load the Stripe payment form",r({reason:"STRIPE_FORM_LOAD_FAILED",cause:e,extra:{stripeErrorType:e.type}}),e),l({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:e.message??"Failed to load payment form",error:e})}function l(e){const a=C.createPaymentFailureError(e);y.value=a,s("payment-failed",a)}return n.onMounted(()=>{Z().catch(e=>{c.error("STRIPE_REDIRECT_RETURN_FAILED","handleRedirectReturn threw unexpectedly",r({reason:"STRIPE_REDIRECT_RETURN_THREW",cause:e}),e)})}),n.onBeforeUnmount(()=>{I.value=null}),(e,a)=>m.value?(n.openBlock(),n.createBlock(w._sfc_main,{key:0,variant:p.variant,redirecting:p.redirectsOnSuccess},null,8,["variant","redirecting"])):y.value?(n.openBlock(),n.createBlock(w._sfc_main$1,{key:1,error:y.value},null,8,["error"])):o.value?(n.openBlock(),n.createBlock(Q,{key:2,ref_key:"frameRef",ref:E,"public-key":o.value,options:h.value,"country-code":p.countryCode,email:p.email,name:p.name,onReady:B,onChange:a[0]||(a[0]=u=>s("select",{paymentMethodType:u,paymentGatewayVariant:T})),onLoaderror:K,onSubmitSuccess:x,onSubmitError:F},null,8,["public-key","options","country-code","email","name"])):n.createCommentVNode("",!0)}});exports.default=V;
|
|
102
|
+
</html>`,G=["src","height"],Q=n.defineComponent({__name:"PaymentIntegrationFormStripeFrame",props:{publicKey:{type:String},options:{type:Object},countryCode:{type:String},email:{type:String},name:{type:String}},emits:["ready","change","loaderror","submit-success","submit-error"],setup(p,{expose:f,emit:R}){const t=p,s=R;f({triggerSubmit:h});const m=n.ref(),y=n.ref(0),E=n.ref();function A(){var o,r;(r=(o=m.value)==null?void 0:o.contentWindow)==null||r.postMessage({type:"stripe:init",publicKey:t.publicKey,options:t.options,countryCode:t.countryCode,email:t.email,name:t.name},"*")}function h(){var o,r;(r=(o=m.value)==null?void 0:o.contentWindow)==null||r.postMessage({type:"stripe:submit",email:t.email,name:t.name},"*")}const I={api_connection_error:!0,api_error:!0,authentication_error:!0,card_error:!0,idempotency_error:!0,invalid_request_error:!0,rate_limit_error:!0,validation_error:!0};function c(o){return typeof o=="string"&&Object.hasOwn(I,o)}function S(o){return typeof o=="object"&&o!==null}function b(o){if(!m.value||o.source!==m.value.contentWindow||!S(o.data))return;const r=o.data,v=r.type;if(!(typeof v!="string"||!v.startsWith("stripe:")))switch(v){case"stripe:ready":s("ready");break;case"stripe:change":s("change",typeof r.paymentMethodType=="string"?r.paymentMethodType:"card");break;case"stripe:loaderror":{const d=S(r.error)?r.error:{};s("loaderror",{message:typeof d.message=="string"?d.message:void 0,type:c(d.type)?d.type:void 0});break}case"stripe:resize":typeof r.height=="number"&&(y.value=r.height);break;case"stripe:submit:success":typeof r.confirmationTokenId=="string"&&s("submit-success",r.confirmationTokenId);break;case"stripe:submit:error":{const d=S(r.error)?r.error:{};s("submit-error",{message:typeof d.message=="string"?d.message:void 0,type:c(d.type)?d.type:void 0,code:typeof d.code=="string"?d.code:void 0});break}}}return n.onMounted(()=>{const o=new Blob([Y],{type:"text/html"});E.value=URL.createObjectURL(o),window.addEventListener("message",b)}),n.onBeforeUnmount(()=>{window.removeEventListener("message",b),E.value&&URL.revokeObjectURL(E.value)}),n.watch(()=>t.options,(o,r)=>{j.isEqual(o,r)||A()},{deep:!0}),(o,r)=>(n.openBlock(),n.createElementBlock("iframe",{ref_key:"iframeRef",ref:m,src:E.value,height:y.value||void 0,frameborder:"0",style:{width:"100%",display:"block",border:"none"},title:"Payment form",onLoad:A},null,40,G))}}),D={link:"never"},M={variables:{borderRadius:"4px",colorBackground:"rgba(243, 244, 246, 0.5)"},rules:{".TermsText":{fontSize:"14px"},".Input":{backgroundColor:"rgba(243, 244, 246, 0.5)",fontSize:"14px",borderColor:"rgb(229, 231, 235)"}}};function W(p,f){return{billingDetails:{address:{country:"never"},...p?{email:"never"}:{},...f?{name:"never"}:{}}}}function $({amount:p,email:f,name:R,variant:t,storePaymentMethod:s=!1}){const m=p.currency.toLowerCase(),y=W(f,R);return t==="TOKENIZE"?{mode:"setup",currency:m,setup_future_usage:"off_session",wallets:D,fields:y,appearance:M}:{mode:"payment",currency:m,amount:N.toMinorUnitAmount(p).value,...s?{setup_future_usage:"off_session"}:{},wallets:D,fields:y,appearance:M}}const T="STRIPE",V=n.defineComponent({__name:"PaymentIntegrationFormStripe",props:{email:{type:String},name:{type:String},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},context:{type:Object},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","invalid","ready"],setup(p,{expose:f,emit:R}){const t=p,s=R;f({submit:v});const m=n.ref(!1),y=n.ref(),E=n.ref(),A=n.computed(()=>t.storePaymentMethod??t.forceStorePaymentMethod??!1),h=n.computed(()=>$({amount:t.amount,email:t.email,name:t.name,variant:t.variant,storePaymentMethod:A.value})),I=n.ref(null),c=q.useLogger(),{authorizePayment:S}=H.createPaymentsService(),{tokenizePaymentMethod:b}=z.createPaymentMethodsService(),o=n.computed(()=>{var e,a;return(a=(e=t.paymentMethodOptionResponseEntry.integration.payment_gateway)==null?void 0:e.stripe)==null?void 0:a.public_key});function r(e){return C.createPaymentFailureContext({gateway:T,paymentAcceptorId:t.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:t.variant,invoiceId:t.invoiceId,customerId:t.customerId,...e})}function v(){d().catch(e=>{c.error("STRIPE_SUBMIT_FAILED","Unexpected error during Stripe submission",r({reason:"STRIPE_SUBMIT_FAILED",cause:e}),e)})}async function d(){if(!await t.validateOnSubmit()||!E.value){s("invalid");return}E.value.triggerSubmit()}function L(e){if(e.type==="validation_error"){s("invalid");return}c.error("STRIPE_CONFIRMATION_TOKEN_FAILED","Stripe submission failed",r({reason:"STRIPE_CONFIRMATION_TOKEN_FAILED",cause:e}),e),l({code:t.variant==="TOKENIZE"?"TOKENIZE_FAILED":"AUTHORIZATION_FAILED",message:e.message??"Stripe submission failed",error:e})}function k(e){return new Promise((a,u)=>{if(window.Stripe){a(window.Stripe(e));return}const i=document.createElement("script");i.src=F,i.onload=()=>{if(!window.Stripe){u(new Error("Stripe not available after script load"));return}a(window.Stripe(e))},i.onerror=()=>u(new Error("Failed to load Stripe.js")),document.head.appendChild(i)})}async function U(){if(I.value)return I.value;const e=o.value;if(!e)throw new Error("Missing Stripe public key");const a=await k(e);return I.value=a,a}async function x(e){const a=t.paymentMethodOptionResponseEntry.payment_acceptor.id,u=N.createReturnUrl({paymentAcceptorId:a,redirectUrl:window.location.href});if(t.variant==="AUTHORIZE"){try{const i=await S({payment_acceptor_id:a,...t.customerId?{customer_id:t.customerId}:{},payment_gateway_variant:T,stripe:{confirmation_token_id:e},amount:t.amount,...t.context&&t.context.type!=="CHARGE_ON_DEMAND"?{context:t.context}:{},return_url:u});await P(i)}catch(i){c.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${a}`,r({reason:"PAYMENT_AUTHORIZATION_FAILED",cause:i}),i),l({code:"AUTHORIZATION_FAILED",message:"Payment authorization failed",error:i})}return}if(t.variant==="TOKENIZE"){if(!t.customerId){c.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${a}`,r({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),l({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}try{const i=await b({customer_id:t.customerId,payment_acceptor_id:a,payment_gateway_variant:T,stripe:{confirmation_token_id:e},return_url:u});await P(i)}catch(i){c.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${a}`,r({reason:"TOKENIZATION_FAILED",cause:i}),i),l({code:"TOKENIZE_FAILED",message:"Tokenization failed",error:i})}}}async function P(e){var a;if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const u=e.action.client_secret||((a=e.action.data)==null?void 0:a.client_secret);if(!u){c.error("STRIPE_ACTION_FAILED","Missing client_secret in Stripe ACTION_REQUIRED response",r({reason:"STRIPE_ACTION_MISSING_CLIENT_SECRET",extra:{paymentStatus:e.status}})),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:e});return}let i;try{i=await U()}catch(g){c.error("STRIPE_ACTION_FAILED","Failed to load Stripe.js",r({reason:"STRIPE_SDK_LOAD_FAILED",cause:g}),g),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:g});return}const{error:_}=await i.handleNextAction({clientSecret:u});if(_){c.error("STRIPE_ACTION_FAILED","Stripe handleNextAction failed",r({reason:"STRIPE_NEXT_ACTION_FAILED",cause:_,extra:{stripeErrorCode:_.code,stripeErrorType:_.type}}),_),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:_});return}m.value=!0,s("payment-success");return}if(e.status==="SUCCESS"){m.value=!0,s("payment-success");return}c.error("STRIPE_ACTION_FAILED","Unexpected payment result status",r({reason:"STRIPE_UNEXPECTED_PAYMENT_STATUS",extra:{paymentStatus:e.status}})),l({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:e})}async function Z(){const e=t.paymentMethodOptionResponseEntry.payment_acceptor.id;if(O.getQueryParam(N.PAYMENT_ACCEPTOR_ID_QUERY_STRING)!==e)return;const u=O.getQueryParam("redirect_status"),i=O.getQueryParam("payment_intent_client_secret"),_=O.getQueryParam("setup_intent_client_secret");if(!u||!i&&!_)return;if(u==="succeeded"){m.value=!0,s("payment-success");return}const g=new globalThis.Error(`Stripe redirect returned status: ${u}`);c.error("STRIPE_REDIRECT_RETURN_FAILED","Stripe redirect returned non-succeeded status",r({reason:"STRIPE_REDIRECT_RETURN_FAILED",extra:{redirectStatus:u}}),g),l({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:g})}function B(){s("select",{paymentMethodType:"card",paymentGatewayVariant:T}),s("ready")}function K(e){c.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to load the Stripe payment form",r({reason:"STRIPE_FORM_LOAD_FAILED",cause:e,extra:{stripeErrorType:e.type}}),e),l({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:e.message??"Failed to load payment form",error:e})}function l(e){const a=C.createPaymentFailureError(e);y.value=a,s("payment-failed",a)}return n.onMounted(()=>{Z().catch(e=>{c.error("STRIPE_REDIRECT_RETURN_FAILED","handleRedirectReturn threw unexpectedly",r({reason:"STRIPE_REDIRECT_RETURN_THREW",cause:e}),e)})}),n.onBeforeUnmount(()=>{I.value=null}),(e,a)=>m.value?(n.openBlock(),n.createBlock(w._sfc_main,{key:0,variant:p.variant,redirecting:p.redirectsOnSuccess},null,8,["variant","redirecting"])):y.value?(n.openBlock(),n.createBlock(w._sfc_main$1,{key:1,error:y.value},null,8,["error"])):o.value?(n.openBlock(),n.createBlock(Q,{key:2,ref_key:"frameRef",ref:E,"public-key":o.value,options:h.value,"country-code":p.countryCode,email:p.email,name:p.name,onReady:B,onChange:a[0]||(a[0]=u=>s("select",{paymentMethodType:u,paymentGatewayVariant:T})),onLoaderror:K,onSubmitSuccess:x,onSubmitError:L},null,8,["public-key","options","country-code","email","name"])):n.createCommentVNode("",!0)}});exports.default=V;
|
package/dist/{PaymentIntegrationFormStripe-BIiMCWlV.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as F, ref as I, onMounted as M, onBeforeUnmount as k, watch as Y, openBlock as h, createElementBlock as G, computed as P, createBlock as w, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { a as W } from "./useService-Bh47bllz.mjs";
|
|
3
|
-
import { t as V, d as Q, P as q } from "./
|
|
4
|
-
import { _ as X, a as J } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { c as ee } from "./payments-
|
|
6
|
-
import { c as te } from "./paymentMethods-
|
|
3
|
+
import { t as V, d as Q, P as q } from "./useExperimentalFeature-BciA3Ok9.mjs";
|
|
4
|
+
import { _ as X, a as J } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs";
|
|
5
|
+
import { c as ee } from "./payments-2qeQdpiW.mjs";
|
|
6
|
+
import { c as te } from "./paymentMethods-CWlvwK5V.mjs";
|
|
7
7
|
import { g as O } from "./url-TNRgVI8A.mjs";
|
|
8
|
-
import { b as re } from "./customElements-
|
|
8
|
+
import { b as re } from "./customElements-B58FcXIN.mjs";
|
|
9
9
|
import { c as ne, a as ae } from "./paymentFailure-Bh60UhxA.mjs";
|
|
10
10
|
const U = "https://js.stripe.com/dahlia/stripe.js", ie = `<!DOCTYPE html>
|
|
11
11
|
<html>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as p, computed as M, openBlock as o, createElementBlock as I, createElementVNode as g, normalizeClass as N, createCommentVNode as h, renderSlot as B, createVNode as s, createBlock as u, withCtx as m, createTextVNode as f, toDisplayString as y, unref as v, shallowRef as _, watch as S, toValue as $, Fragment as L, mergeProps as C } from "vue";
|
|
2
2
|
import { _ as R } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
3
|
-
import { a as O } from "./ContextMenu.vue.es-
|
|
4
|
-
import { a as D, _ as A } from "./customElements-
|
|
5
|
-
import { _ as T } from "./Chip.vue.es-
|
|
3
|
+
import { a as O } from "./ContextMenu.vue.es-zRvoEJlV.mjs";
|
|
4
|
+
import { a as D, _ as A } from "./customElements-B58FcXIN.mjs";
|
|
5
|
+
import { _ as T } from "./Chip.vue.es-DksjbJO8.mjs";
|
|
6
6
|
const E = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e", V = { class: "shrink-0" }, Y = { class: "flex items-center justify-center overflow-clip rounded" }, z = ["src", "alt", "width", "height"], G = { class: "grow" }, H = { key: 0 }, U = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "pt-3"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("vue"),p=require("./FormMessage.vue.es-dqATjC2N.js"),P=require("./ContextMenu.vue.es-C7KI8Gz6.js"),c=require("./customElements-C963-LtW.js"),g=require("./Chip.vue.es-D60gTbfe.js"),m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e",C={class:"shrink-0"},k={class:"flex items-center justify-center overflow-clip rounded"},N=["src","alt","width","height"],M={class:"grow"},A={key:0},B={key:0,class:"pt-3"},h=t.defineComponent({__name:"PaymentMethodBase",props:{imageSrc:{},imageAlt:{},variant:{default:"default"},disabled:{type:Boolean},options:{},error:{}},setup(e){const a=e,o=t.computed(()=>a.imageSrc||m);return(s,n)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["flex gap-3",{"opacity-50":e.disabled}])},[t.createElementVNode("div",C,[t.createElementVNode("div",k,[o.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.value,alt:e.imageAlt,width:e.variant==="condensed"?20:36,height:e.variant==="condensed"?20:36,class:t.normalizeClass({"h-9 w-9":e.variant==="default","h-5 w-5":e.variant==="condensed"})},null,10,N)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",M,[t.renderSlot(s.$slots,"default")]),e.options&&e.options.length>0?(t.openBlock(),t.createElementBlock("div",A,[t.createVNode(P._sfc_main$1,{width:"wide",square:"",items:e.options},null,8,["items"])])):t.createCommentVNode("",!0)],2),e.error?(t.openBlock(),t.createElementBlock("div",B,[t.createVNode(p._sfc_main,{message:e.error,variant:"error"},null,8,["message"])])):t.createCommentVNode("",!0)]))}}),v=t.defineComponent({__name:"PaymentMethodDefaultChip",props:{isDefault:{type:Boolean}},setup(e){const a=c.useIntl();return(o,s)=>e.isDefault?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Default",description:"The textual label for the default payment method chip",id:"payment_methods.default_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),f=t.defineComponent({__name:"PaymentMethodInactiveChip",props:{isInactive:{type:Boolean}},setup(e){const a=c.useIntl();return(o,s)=>e.isInactive?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Inactive",description:"The textual label for the inactive payment method chip",id:"payment_methods.inactive_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),b={KLARNA:{name:"Klarna",logo:()=>Promise.resolve().then(()=>require("./klarna.svg.es-Cs6XaHD7.js")).then(e=>e.default)},ZIP:{name:"Zip",logo:()=>Promise.resolve().then(()=>require("./zip.svg.es-C9S_F31W.js")).then(e=>e.default)}},y=e=>{const a=t.shallowRef();return t.watch(()=>t.toValue(e),(o,s,n)=>{if(a.value=void 0,!o)return;let d=!1;n(()=>{d=!0}),o().then(i=>{d||(a.value=i)}).catch(()=>{})},{immediate:!0}),a},x={class:"flex h-full grow flex-col justify-center"},V=t.defineComponent({__name:"PaymentMethodBuyNowPayLater",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.buy_now_pay_later)!=null&&n.variant?b[a.paymentMethod.buy_now_pay_later.variant]:void 0}),s=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,d)=>{var i,l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(s)??t.unref(m),"image-alt":(l=(i=o.value)==null?void 0:i.name)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",x,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),E={ACCEL:()=>Promise.resolve().then(()=>require("./accel.svg.es-DFJXdioD.js")).then(e=>e.default),AMERICAN_EXPRESS:()=>Promise.resolve().then(()=>require("./amex.svg.es-DKhW4Txt.js")).then(e=>e.default),BANCONTACT:()=>Promise.resolve().then(()=>require("./bancontact.svg.es-BQh7nAup.js")).then(e=>e.default),CARNET:()=>Promise.resolve().then(()=>require("./carnet.svg.es-DY04-F2L.js")).then(e=>e.default),CARTES_BANCAIRES:()=>Promise.resolve().then(()=>require("./cartes-bancaires.svg.es-BleHMlkN.js")).then(e=>e.default),DANKORT:()=>Promise.resolve().then(()=>require("./dankort.svg.es-CksaipXF.js")).then(e=>e.default),DINERS:()=>Promise.resolve().then(()=>require("./diners.svg.es-D6Mu1pqP.js")).then(e=>e.default),DISCOVER:()=>Promise.resolve().then(()=>require("./discover.svg.es-DgqWCMUM.js")).then(e=>e.default),EFTPOS:()=>Promise.resolve().then(()=>require("./eftpos.svg.es-Dk2DOT8W.js")).then(e=>e.default),ELO:()=>Promise.resolve().then(()=>require("./elo.svg.es-C-BzjuRP.js")).then(e=>e.default),GIROCARD:()=>Promise.resolve().then(()=>require("./girocard.svg.es-HSOEvDif.js")).then(e=>e.default),HIPERCARD:()=>Promise.resolve().then(()=>require("./hipercard.svg.es-CbCsRY2q.js")).then(e=>e.default),JCB:()=>Promise.resolve().then(()=>require("./jcb.svg.es-B3WPB8c2.js")).then(e=>e.default),MAESTRO:()=>Promise.resolve().then(()=>require("./maestro.svg.es-BvK4oPg4.js")).then(e=>e.default),MASTERCARD:()=>Promise.resolve().then(()=>require("./mastercard.svg.es-lp4AXyyV.js")).then(e=>e.default),NYCE:()=>Promise.resolve().then(()=>require("./nyce.svg.es-ArAivAZW.js")).then(e=>e.default),PULSE:()=>Promise.resolve().then(()=>require("./pulse.svg.es-Dit33E8S.js")).then(e=>e.default),STAR:()=>Promise.resolve().then(()=>require("./star.svg.es-D2JncY7b.js")).then(e=>e.default),UNION_PAY:()=>Promise.resolve().then(()=>require("./unionpay.svg.es-DjFZ5EMQ.js")).then(e=>e.default),VISA:()=>Promise.resolve().then(()=>require("./visa.svg.es-NY3BHhda.js")).then(e=>e.default),V_PAY:()=>Promise.resolve().then(()=>require("./vpay.svg.es-VViQi42w.js")).then(e=>e.default)},w={class:"flex h-full grow flex-col justify-center"},I=t.defineComponent({__name:"PaymentMethodCard",props:{paymentMethod:{},isDefault:{type:Boolean},i18n:{},options:{},variant:{default:"default"}},setup(e){const a=e,{$t:o}=c.useIntl(),s=t.computed(()=>{var d,i;if(!a.paymentMethod.card.expiry_date)return;const{expiry_month:l,expiry_year:r}=a.paymentMethod.card.expiry_date;return((i=(d=a.i18n)==null?void 0:d.expiryDate)==null?void 0:i.call(d,l,r))??o({defaultMessage:"Expiry date: {month}/{year}",description:"Expiry date of a saved card",id:"payment_methods.card.expiry_date"},{month:l,year:r})}),n=y(()=>a.paymentMethod.card.brand?E[a.paymentMethod.card.brand]:void 0);return(d,i)=>{var l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(n)??t.unref(m),"image-alt":(l=e.paymentMethod.card.brand)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",w,[t.createVNode(c._sfc_main,{tag:"span",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0,weight:"semibold","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(" **** **** **** "+t.toDisplayString(e.paymentMethod.card.last_four_digits??"****"),1)]),_:1},8,["variant","color"]),e.variant==="default"&&s.value?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.value),1)]),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),_={AMAZON_PAY:{name:"Amazon Pay",logo:()=>Promise.resolve().then(()=>require("./amazon-pay.svg.es-CQWgtowB.js")).then(e=>e.default)},APPLE_PAY:{name:"Apple Pay",logo:()=>Promise.resolve().then(()=>require("./apple-pay.svg.es-Dyojd0F-.js")).then(e=>e.default)},CASH_APP:{name:"Cash App",logo:()=>Promise.resolve().then(()=>require("./cashapp.svg.es-MwXGYom6.js")).then(e=>e.default)},DANA:{name:"DANA",logo:()=>Promise.resolve().then(()=>require("./dana.svg.es-BDtZLpwd.js")).then(e=>e.default)},GCASH:{name:"GCash",logo:()=>Promise.resolve().then(()=>require("./gcash.svg.es-BKAdhWzv.js")).then(e=>e.default)},GOOGLE_PAY:{name:"Google Pay",logo:()=>Promise.resolve().then(()=>require("./google-pay.svg.es-hzc_EgiJ.js")).then(e=>e.default)},GO_PAY:{name:"GoPay",logo:()=>Promise.resolve().then(()=>require("./go-pay.svg.es-DQjtunZ_.js")).then(e=>e.default)},KAKAOPAY:{name:"KakaoPay",logo:()=>Promise.resolve().then(()=>require("./kakao-pay.svg.es-Cs-lCW74.js")).then(e=>e.default)},MOMO:{name:"Momo",logo:()=>Promise.resolve().then(()=>require("./momo.svg.es-C5aLYf_R.js")).then(e=>e.default)},PAYPAL:{name:"PayPal",logo:()=>Promise.resolve().then(()=>require("./paypal.svg.es-Cjp5sNI3.js")).then(e=>e.default)},TWINT:{name:"Twint",logo:()=>Promise.resolve().then(()=>require("./twint.svg.es-BJ2f48og.js")).then(e=>e.default)}},q={class:"flex h-full grow flex-col justify-center"},D=t.defineComponent({__name:"PaymentMethodDigitalWallet",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.digital_wallet)!=null&&n.variant?_[a.paymentMethod.digital_wallet.variant]:void 0}),s=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,d)=>{var i,l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(s)??t.unref(m),"image-alt":(l=(i=o.value)==null?void 0:i.name)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",q,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),T={ACH:{name:"ACH",logo:()=>Promise.resolve().then(()=>require("./ach.svg.es-BYP873jU.js")).then(e=>e.default)},DIRECT_DEBIT_GB:{name:"Direct Debit GB",logo:()=>Promise.resolve().then(()=>require("./bacs.svg.es-GJpZs1sD.js")).then(e=>e.default)},SEPA_DIRECT_DEBIT:{name:"SEPA Direct Debit",logo:()=>Promise.resolve().then(()=>require("./sepa.svg.es-0t4DKeA1.js")).then(e=>e.default)}},S={class:"flex h-full grow flex-col justify-center"},$=t.defineComponent({__name:"PaymentMethodDirectDebit",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.direct_debit)!=null&&n.variant?T[a.paymentMethod.direct_debit.variant]:void 0}),s=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,d)=>{var i,l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(s)??t.unref(m),"image-alt":(l=(i=o.value)==null?void 0:i.name)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",S,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),L={EPS:{name:"Electronic Payment Services",logo:()=>Promise.resolve().then(()=>require("./eps.svg.es-B_85bP-W.js")).then(e=>e.default)},IDEAL:{name:"iDEAL",logo:()=>Promise.resolve().then(()=>require("./ideal.svg.es-Booz1IML.js")).then(e=>e.default)},PAY_BY_BANK:{name:"Open Banking / Pay by bank",logo:()=>Promise.resolve().then(()=>require("./open-banking.svg.es-Q3rRkCvP.js")).then(e=>e.default)},TRUSTLY:{name:"Trustly",logo:()=>Promise.resolve().then(()=>require("./trustly.svg.es-GJByiFAs.js")).then(e=>e.default)}},R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23e1e2ff'%20d='M0%200h32v32H0z'/%3e%3cmask%20id='a'%20width='24'%20height='24'%20x='4'%20y='4'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M4%204h24v24H4z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%231f216a'%20d='M6.5%2022.5v-13h19v3.14H24l-4.6%204.61h-9.15v1.5h7.64l-3.75%203.75zm3.75-7.75h5.5v-1.5h-5.5zm6.9%209.71V23.2l6.38-6.38%201.27%201.27-6.38%206.38zm8.23-6.98-1.26-1.27.84-.84a.4.4%200%200%201%20.25-.12q.14%200%20.26.12l.76.76a.4.4%200%200%201%20.11.25.4.4%200%200%201-.11.26z'/%3e%3c/g%3e%3c/svg%3e",O={class:"flex h-full grow flex-col justify-center"},z=t.defineComponent({__name:"PaymentMethodOnlineBanking",props:{paymentMethod:{},i18n:{},isDefault:{type:Boolean},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var i;return(i=a.paymentMethod.online_banking)!=null&&i.variant?L[a.paymentMethod.online_banking.variant]:void 0}),s=y(()=>{var i;return(i=o.value)==null?void 0:i.logo}),{$t:n}=c.useIntl(),d=t.computed(()=>{var i,l,r;return{imageAlt:((i=a.i18n)==null?void 0:i.imageAlt)??n({defaultMessage:"Bank transfer",description:"Alt text of the online banking payment method image",id:"payment_methods.online_banking.image_alt"}),pending:((l=a.i18n)==null?void 0:l.pendingLabel)??n({defaultMessage:"Pending",description:"Label of an online banking payment method that is not set up yet",id:"payment_methods.online_banking.pending"}),onlineBanking:((r=a.i18n)==null?void 0:r.onlineBankingLabel)??n({defaultMessage:"Online banking",description:"Label of an online banking payment method without an IBAN",id:"payment_methods.online_banking.label"})}});return(i,l)=>{var r;return t.openBlock(),t.createBlock(h,{"image-alt":((r=o.value)==null?void 0:r.name)??d.value.imageAlt,"image-src":t.unref(s)??t.unref(R),variant:e.variant,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",O,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var u;return[t.createTextVNode(t.toDisplayString((u=o.value)==null?void 0:u.name)+" ",1),e.paymentMethod.status==="SETUP"?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,size:"sm",intent:"info",class:"ml-1 font-normal"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value.pending),1)]),_:1})):t.createCommentVNode("",!0)]}),_:1},8,["variant","color"]),e.variant==="default"?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>{var u;return[t.createTextVNode(t.toDisplayString(((u=e.paymentMethod.online_banking)==null?void 0:u.iban)??d.value.onlineBanking),1)]}),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-alt","image-src","variant","disabled"])}}}),Y=t.defineComponent({__name:"PaymentMethod",props:{paymentMethod:{},variant:{},i18n:{},options:{},disabled:{type:Boolean}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.paymentMethod.type==="CARD"?(t.openBlock(),t.createBlock(I,t.mergeProps({key:0},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="ONLINE_BANKING"?(t.openBlock(),t.createBlock(z,t.mergeProps({key:1},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="BUY_NOW_PAY_LATER"?(t.openBlock(),t.createBlock(V,t.mergeProps({key:2},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIRECT_DEBIT"?(t.openBlock(),t.createBlock($,t.mergeProps({key:3},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIGITAL_WALLET"?(t.openBlock(),t.createBlock(D,t.mergeProps({key:4},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0)],64))}});exports._sfc_main=Y;
|
|
1
|
+
const t=require("vue"),p=require("./FormMessage.vue.es-dqATjC2N.js"),P=require("./ContextMenu.vue.es-DUU43tCy.js"),c=require("./customElements-DUMRMFQ5.js"),g=require("./Chip.vue.es-B2jjzIOc.js"),m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e",C={class:"shrink-0"},k={class:"flex items-center justify-center overflow-clip rounded"},N=["src","alt","width","height"],M={class:"grow"},A={key:0},B={key:0,class:"pt-3"},h=t.defineComponent({__name:"PaymentMethodBase",props:{imageSrc:{},imageAlt:{},variant:{default:"default"},disabled:{type:Boolean},options:{},error:{}},setup(e){const a=e,o=t.computed(()=>a.imageSrc||m);return(s,n)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["flex gap-3",{"opacity-50":e.disabled}])},[t.createElementVNode("div",C,[t.createElementVNode("div",k,[o.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.value,alt:e.imageAlt,width:e.variant==="condensed"?20:36,height:e.variant==="condensed"?20:36,class:t.normalizeClass({"h-9 w-9":e.variant==="default","h-5 w-5":e.variant==="condensed"})},null,10,N)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",M,[t.renderSlot(s.$slots,"default")]),e.options&&e.options.length>0?(t.openBlock(),t.createElementBlock("div",A,[t.createVNode(P._sfc_main$1,{width:"wide",square:"",items:e.options},null,8,["items"])])):t.createCommentVNode("",!0)],2),e.error?(t.openBlock(),t.createElementBlock("div",B,[t.createVNode(p._sfc_main,{message:e.error,variant:"error"},null,8,["message"])])):t.createCommentVNode("",!0)]))}}),v=t.defineComponent({__name:"PaymentMethodDefaultChip",props:{isDefault:{type:Boolean}},setup(e){const a=c.useIntl();return(o,s)=>e.isDefault?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Default",description:"The textual label for the default payment method chip",id:"payment_methods.default_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),f=t.defineComponent({__name:"PaymentMethodInactiveChip",props:{isInactive:{type:Boolean}},setup(e){const a=c.useIntl();return(o,s)=>e.isInactive?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Inactive",description:"The textual label for the inactive payment method chip",id:"payment_methods.inactive_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),b={KLARNA:{name:"Klarna",logo:()=>Promise.resolve().then(()=>require("./klarna.svg.es-Cs6XaHD7.js")).then(e=>e.default)},ZIP:{name:"Zip",logo:()=>Promise.resolve().then(()=>require("./zip.svg.es-C9S_F31W.js")).then(e=>e.default)}},y=e=>{const a=t.shallowRef();return t.watch(()=>t.toValue(e),(o,s,n)=>{if(a.value=void 0,!o)return;let d=!1;n(()=>{d=!0}),o().then(i=>{d||(a.value=i)}).catch(()=>{})},{immediate:!0}),a},x={class:"flex h-full grow flex-col justify-center"},V=t.defineComponent({__name:"PaymentMethodBuyNowPayLater",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.buy_now_pay_later)!=null&&n.variant?b[a.paymentMethod.buy_now_pay_later.variant]:void 0}),s=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,d)=>{var i,l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(s)??t.unref(m),"image-alt":(l=(i=o.value)==null?void 0:i.name)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",x,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),E={ACCEL:()=>Promise.resolve().then(()=>require("./accel.svg.es-DFJXdioD.js")).then(e=>e.default),AMERICAN_EXPRESS:()=>Promise.resolve().then(()=>require("./amex.svg.es-DKhW4Txt.js")).then(e=>e.default),BANCONTACT:()=>Promise.resolve().then(()=>require("./bancontact.svg.es-BQh7nAup.js")).then(e=>e.default),CARNET:()=>Promise.resolve().then(()=>require("./carnet.svg.es-DY04-F2L.js")).then(e=>e.default),CARTES_BANCAIRES:()=>Promise.resolve().then(()=>require("./cartes-bancaires.svg.es-BleHMlkN.js")).then(e=>e.default),DANKORT:()=>Promise.resolve().then(()=>require("./dankort.svg.es-CksaipXF.js")).then(e=>e.default),DINERS:()=>Promise.resolve().then(()=>require("./diners.svg.es-D6Mu1pqP.js")).then(e=>e.default),DISCOVER:()=>Promise.resolve().then(()=>require("./discover.svg.es-DgqWCMUM.js")).then(e=>e.default),EFTPOS:()=>Promise.resolve().then(()=>require("./eftpos.svg.es-Dk2DOT8W.js")).then(e=>e.default),ELO:()=>Promise.resolve().then(()=>require("./elo.svg.es-C-BzjuRP.js")).then(e=>e.default),GIROCARD:()=>Promise.resolve().then(()=>require("./girocard.svg.es-HSOEvDif.js")).then(e=>e.default),HIPERCARD:()=>Promise.resolve().then(()=>require("./hipercard.svg.es-CbCsRY2q.js")).then(e=>e.default),JCB:()=>Promise.resolve().then(()=>require("./jcb.svg.es-B3WPB8c2.js")).then(e=>e.default),MAESTRO:()=>Promise.resolve().then(()=>require("./maestro.svg.es-BvK4oPg4.js")).then(e=>e.default),MASTERCARD:()=>Promise.resolve().then(()=>require("./mastercard.svg.es-lp4AXyyV.js")).then(e=>e.default),NYCE:()=>Promise.resolve().then(()=>require("./nyce.svg.es-ArAivAZW.js")).then(e=>e.default),PULSE:()=>Promise.resolve().then(()=>require("./pulse.svg.es-Dit33E8S.js")).then(e=>e.default),STAR:()=>Promise.resolve().then(()=>require("./star.svg.es-D2JncY7b.js")).then(e=>e.default),UNION_PAY:()=>Promise.resolve().then(()=>require("./unionpay.svg.es-DjFZ5EMQ.js")).then(e=>e.default),VISA:()=>Promise.resolve().then(()=>require("./visa.svg.es-NY3BHhda.js")).then(e=>e.default),V_PAY:()=>Promise.resolve().then(()=>require("./vpay.svg.es-VViQi42w.js")).then(e=>e.default)},w={class:"flex h-full grow flex-col justify-center"},I=t.defineComponent({__name:"PaymentMethodCard",props:{paymentMethod:{},isDefault:{type:Boolean},i18n:{},options:{},variant:{default:"default"}},setup(e){const a=e,{$t:o}=c.useIntl(),s=t.computed(()=>{var d,i;if(!a.paymentMethod.card.expiry_date)return;const{expiry_month:l,expiry_year:r}=a.paymentMethod.card.expiry_date;return((i=(d=a.i18n)==null?void 0:d.expiryDate)==null?void 0:i.call(d,l,r))??o({defaultMessage:"Expiry date: {month}/{year}",description:"Expiry date of a saved card",id:"payment_methods.card.expiry_date"},{month:l,year:r})}),n=y(()=>a.paymentMethod.card.brand?E[a.paymentMethod.card.brand]:void 0);return(d,i)=>{var l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(n)??t.unref(m),"image-alt":(l=e.paymentMethod.card.brand)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",w,[t.createVNode(c._sfc_main,{tag:"span",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0,weight:"semibold","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(" **** **** **** "+t.toDisplayString(e.paymentMethod.card.last_four_digits??"****"),1)]),_:1},8,["variant","color"]),e.variant==="default"&&s.value?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.value),1)]),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),_={AMAZON_PAY:{name:"Amazon Pay",logo:()=>Promise.resolve().then(()=>require("./amazon-pay.svg.es-CQWgtowB.js")).then(e=>e.default)},APPLE_PAY:{name:"Apple Pay",logo:()=>Promise.resolve().then(()=>require("./apple-pay.svg.es-Dyojd0F-.js")).then(e=>e.default)},CASH_APP:{name:"Cash App",logo:()=>Promise.resolve().then(()=>require("./cashapp.svg.es-MwXGYom6.js")).then(e=>e.default)},DANA:{name:"DANA",logo:()=>Promise.resolve().then(()=>require("./dana.svg.es-BDtZLpwd.js")).then(e=>e.default)},GCASH:{name:"GCash",logo:()=>Promise.resolve().then(()=>require("./gcash.svg.es-BKAdhWzv.js")).then(e=>e.default)},GOOGLE_PAY:{name:"Google Pay",logo:()=>Promise.resolve().then(()=>require("./google-pay.svg.es-hzc_EgiJ.js")).then(e=>e.default)},GO_PAY:{name:"GoPay",logo:()=>Promise.resolve().then(()=>require("./go-pay.svg.es-DQjtunZ_.js")).then(e=>e.default)},KAKAOPAY:{name:"KakaoPay",logo:()=>Promise.resolve().then(()=>require("./kakao-pay.svg.es-Cs-lCW74.js")).then(e=>e.default)},MOMO:{name:"Momo",logo:()=>Promise.resolve().then(()=>require("./momo.svg.es-C5aLYf_R.js")).then(e=>e.default)},PAYPAL:{name:"PayPal",logo:()=>Promise.resolve().then(()=>require("./paypal.svg.es-Cjp5sNI3.js")).then(e=>e.default)},TWINT:{name:"Twint",logo:()=>Promise.resolve().then(()=>require("./twint.svg.es-BJ2f48og.js")).then(e=>e.default)}},q={class:"flex h-full grow flex-col justify-center"},D=t.defineComponent({__name:"PaymentMethodDigitalWallet",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.digital_wallet)!=null&&n.variant?_[a.paymentMethod.digital_wallet.variant]:void 0}),s=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,d)=>{var i,l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(s)??t.unref(m),"image-alt":(l=(i=o.value)==null?void 0:i.name)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",q,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),T={ACH:{name:"ACH",logo:()=>Promise.resolve().then(()=>require("./ach.svg.es-BYP873jU.js")).then(e=>e.default)},DIRECT_DEBIT_GB:{name:"Direct Debit GB",logo:()=>Promise.resolve().then(()=>require("./bacs.svg.es-GJpZs1sD.js")).then(e=>e.default)},SEPA_DIRECT_DEBIT:{name:"SEPA Direct Debit",logo:()=>Promise.resolve().then(()=>require("./sepa.svg.es-0t4DKeA1.js")).then(e=>e.default)}},S={class:"flex h-full grow flex-col justify-center"},$=t.defineComponent({__name:"PaymentMethodDirectDebit",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.direct_debit)!=null&&n.variant?T[a.paymentMethod.direct_debit.variant]:void 0}),s=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,d)=>{var i,l;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(s)??t.unref(m),"image-alt":(l=(i=o.value)==null?void 0:i.name)==null?void 0:l.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",S,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),L={EPS:{name:"Electronic Payment Services",logo:()=>Promise.resolve().then(()=>require("./eps.svg.es-B_85bP-W.js")).then(e=>e.default)},IDEAL:{name:"iDEAL",logo:()=>Promise.resolve().then(()=>require("./ideal.svg.es-Booz1IML.js")).then(e=>e.default)},PAY_BY_BANK:{name:"Open Banking / Pay by bank",logo:()=>Promise.resolve().then(()=>require("./open-banking.svg.es-Q3rRkCvP.js")).then(e=>e.default)},TRUSTLY:{name:"Trustly",logo:()=>Promise.resolve().then(()=>require("./trustly.svg.es-GJByiFAs.js")).then(e=>e.default)}},R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23e1e2ff'%20d='M0%200h32v32H0z'/%3e%3cmask%20id='a'%20width='24'%20height='24'%20x='4'%20y='4'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M4%204h24v24H4z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%231f216a'%20d='M6.5%2022.5v-13h19v3.14H24l-4.6%204.61h-9.15v1.5h7.64l-3.75%203.75zm3.75-7.75h5.5v-1.5h-5.5zm6.9%209.71V23.2l6.38-6.38%201.27%201.27-6.38%206.38zm8.23-6.98-1.26-1.27.84-.84a.4.4%200%200%201%20.25-.12q.14%200%20.26.12l.76.76a.4.4%200%200%201%20.11.25.4.4%200%200%201-.11.26z'/%3e%3c/g%3e%3c/svg%3e",O={class:"flex h-full grow flex-col justify-center"},z=t.defineComponent({__name:"PaymentMethodOnlineBanking",props:{paymentMethod:{},i18n:{},isDefault:{type:Boolean},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var i;return(i=a.paymentMethod.online_banking)!=null&&i.variant?L[a.paymentMethod.online_banking.variant]:void 0}),s=y(()=>{var i;return(i=o.value)==null?void 0:i.logo}),{$t:n}=c.useIntl(),d=t.computed(()=>{var i,l,r;return{imageAlt:((i=a.i18n)==null?void 0:i.imageAlt)??n({defaultMessage:"Bank transfer",description:"Alt text of the online banking payment method image",id:"payment_methods.online_banking.image_alt"}),pending:((l=a.i18n)==null?void 0:l.pendingLabel)??n({defaultMessage:"Pending",description:"Label of an online banking payment method that is not set up yet",id:"payment_methods.online_banking.pending"}),onlineBanking:((r=a.i18n)==null?void 0:r.onlineBankingLabel)??n({defaultMessage:"Online banking",description:"Label of an online banking payment method without an IBAN",id:"payment_methods.online_banking.label"})}});return(i,l)=>{var r;return t.openBlock(),t.createBlock(h,{"image-alt":((r=o.value)==null?void 0:r.name)??d.value.imageAlt,"image-src":t.unref(s)??t.unref(R),variant:e.variant,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",O,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var u;return[t.createTextVNode(t.toDisplayString((u=o.value)==null?void 0:u.name)+" ",1),e.paymentMethod.status==="SETUP"?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,size:"sm",intent:"info",class:"ml-1 font-normal"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value.pending),1)]),_:1})):t.createCommentVNode("",!0)]}),_:1},8,["variant","color"]),e.variant==="default"?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>{var u;return[t.createTextVNode(t.toDisplayString(((u=e.paymentMethod.online_banking)==null?void 0:u.iban)??d.value.onlineBanking),1)]}),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-alt","image-src","variant","disabled"])}}}),Y=t.defineComponent({__name:"PaymentMethod",props:{paymentMethod:{},variant:{},i18n:{},options:{},disabled:{type:Boolean}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.paymentMethod.type==="CARD"?(t.openBlock(),t.createBlock(I,t.mergeProps({key:0},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="ONLINE_BANKING"?(t.openBlock(),t.createBlock(z,t.mergeProps({key:1},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="BUY_NOW_PAY_LATER"?(t.openBlock(),t.createBlock(V,t.mergeProps({key:2},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIRECT_DEBIT"?(t.openBlock(),t.createBlock($,t.mergeProps({key:3},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIGITAL_WALLET"?(t.openBlock(),t.createBlock(D,t.mergeProps({key:4},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0)],64))}});exports._sfc_main=Y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentMethodForm.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js");exports.default=e._sfc_main;
|