@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.23
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 +3 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B70SyWOB.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jXClPW91.js} +1 -1
- package/dist/Alert.vue.es-RyK53a2P.js +1 -0
- package/dist/Alert.vue.es-lIiAWf2S.mjs +146 -0
- package/dist/{Avatar.vue.es-ChcLSNaN.mjs → Avatar.vue.es-2E3laNRb.mjs} +1 -1
- package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-DdJreyr_.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-ConpyC8n.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D5EoBLhj.mjs} +4 -4
- package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-BJEy-e9C.mjs} +1 -1
- package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-CJNxYacb.js} +1 -1
- package/dist/Checkout.entry.ce-BfLlnQyb.js +1 -0
- package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-CQkrWscC.mjs} +1397 -1302
- package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DGbc4L_D.mjs} +2 -2
- package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-DLQ4QEPo.js} +1 -1
- package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-Bd2kmeVq.js} +1 -1
- package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-DL1M7pcr.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-CE94ASC3.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-hiFzB43w.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BE21tqgW.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bhih7rPR.mjs} +5 -5
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs} +486 -502
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js +1 -0
- package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-CFZUQ62L.mjs} +1 -1
- package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-CvCgHHXN.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-jTJGN4jb.js} +1 -1
- package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-B3mvv79S.mjs} +2 -2
- package/dist/ErrorNotification.vue.es-DI2B7WiR.js +1 -0
- package/dist/IconButton.vue.es-Dp8h4YOx.js +1 -0
- package/dist/IconButton.vue.es-GLcGhoHC.mjs +56 -0
- package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-CzuPQtOX.mjs} +3 -3
- package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-DN9r6nfK.js} +1 -1
- package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-5Cq8a7oH.mjs} +2 -2
- package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-DM81HeVv.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js} +1 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js +1 -0
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs} +3 -3
- package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-DbtqsTuP.mjs} +692 -705
- package/dist/InvoiceSummary.vue.es-Qy99kLZs.js +1 -0
- package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-DgLl6XBV.js} +1 -1
- package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-Z2DWAN2u.mjs} +5 -5
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs +294 -0
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-CjP_514k.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DS1j-8m-.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-80b19Lkq.js} +1 -1
- package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CpOZUf-W.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs} +3 -3
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DKXhthkA.js} +1 -1
- package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-BQcgDcik.mjs} +281 -204
- package/dist/PaymentIntegrationFormAdyen-DElXsJ96.js +98 -0
- package/dist/PaymentIntegrationFormStripe-CMwLqOe6.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-Dx1H3fZ2.mjs} +249 -178
- package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-EhRCfeax.mjs} +3 -3
- package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-pLCCzVxN.js} +1 -1
- package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-Bw2e1tXo.js} +1 -1
- package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-D3OY8zK5.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CdT1YyeU.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-D7b0HhDc.mjs} +6 -6
- package/dist/PlanCustomizationEditor-BQqkgmzL.mjs +877 -0
- package/dist/PlanCustomizationEditor-RC8kj2rC.js +1 -0
- package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-ClkE98ML.js} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-DNsiUZyT.mjs} +4 -4
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-BJfQLRcS.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CURXAgMT.mjs} +5 -5
- package/dist/RadioGroupExtended.vue.es-Dk9xdj76.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-vUqn2ZUP.mjs} +3 -3
- package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-C2_topx4.mjs} +1 -1
- package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Cybk1Nb8.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DIgVzXLg.js} +1 -1
- package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-BlCU_xc5.mjs} +1 -1
- package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-CNTg_oRy.js} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js +1 -0
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs} +1655 -1620
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BijBAdqp.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs} +7 -7
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-Fu9Od3Vr.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-OX6bAWP9.js} +1 -1
- package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-CbjdkR4i.js} +1 -1
- package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-c7tZOIW3.mjs} +2 -2
- package/dist/{cn.es-DjnGlmqV.mjs → cn.es-C8Ogac5T.mjs} +2 -2
- package/dist/{cn.es-CNvIP217.js → cn.es-lC4_Xd0R.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +7 -7
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +5 -5
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +10 -10
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +8 -8
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +4 -4
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +9 -9
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +6 -6
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +4 -4
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +26 -23
- package/dist/{customElements-Bt8PbjIn.js → customElements-BYIdPSzQ.js} +43 -19
- package/dist/{customElements-Com2NiGU.mjs → customElements-Df6dGrN-.mjs} +603 -572
- package/dist/{customer-CKgMJEgv.mjs → customer-DmsKYpVi.mjs} +1 -1
- package/dist/{customer-Q4JGfVfq.js → customer-DoLHZuMG.js} +1 -1
- package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
- package/dist/{de-DE-CVCmzlNH.mjs → de-DE-Bgm9bnmp.mjs} +21 -0
- package/dist/{de-DE-Ds_yJLS3.js → de-DE-CAL9Mji2.js} +1 -1
- package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
- package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
- package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
- package/dist/{en-US-DVR9O7b_.mjs → en-US-E86eRIxh.mjs} +21 -0
- package/dist/{en-US-C51ILrVv.js → en-US-_xe5H4TQ.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-CV9iAUHf.mjs → invoices-CrO6p4Ms.mjs} +8 -5
- package/dist/invoices-mw87cNTS.js +1 -0
- package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
- package/dist/it-IT-DT3rfjOY.js +1 -0
- package/dist/{it-IT-Dxw59eR_.js → it-IT-QFQ1Ajbb.js} +1 -1
- package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-co1BfV5s.mjs} +23 -2
- package/dist/{nl-NL-Btbfd9p2.js → nl-NL-CJXJC1bx.js} +1 -1
- package/dist/nl-NL-DfkhOJKc.js +1 -0
- package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Drv2E66B.mjs} +21 -0
- package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
- package/dist/paymentFailure-Bh60UhxA.mjs +47 -0
- package/dist/paymentFailure-Cki8c5BX.js +1 -0
- package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-BNQbW_f1.mjs} +1 -1
- package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CQdhZwq4.js} +1 -1
- package/dist/{payments-DGckugN0.js → payments-KTjVHqOa.js} +1 -1
- package/dist/{payments-C_cMXQzE.mjs → payments-VS_N2xpJ.mjs} +1 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
- package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
- package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
- 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 +21 -21
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +14 -14
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +21 -21
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
- package/dist/sessionReference-3h-6FdrC.mjs +43 -0
- package/dist/sessionReference-m_6Rp4X1.js +1 -0
- package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
- package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
- package/dist/subscriptions-Dugd-oZ1.js +1 -0
- package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-U4xg2CO1.mjs} +2 -2
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +2 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +10 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
- package/dist/types/types/errors.d.ts +5 -0
- package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CTyDGRX8.js} +1 -1
- package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-DyQbRCxR.mjs} +1 -1
- package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-BXI5Vmit.js} +1 -1
- package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-dcmU1539.mjs} +1 -1
- package/dist/useCustomerFormLabels-BC1WfqWo.mjs +968 -0
- package/dist/useCustomerFormLabels-Ct6vD_b8.js +1 -0
- package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-4Y-ppDr7.mjs} +1 -1
- package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-9-p9_nP6.js} +1 -1
- package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-B2Z9aD2w.mjs} +2 -2
- package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CGvtl7Ai.js} +1 -1
- package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-Ba0GO8p-.js} +1 -1
- package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-DJPznhig.mjs} +7 -7
- package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-BO9ZsSsF.js} +1 -1
- package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-CWyI3_RR.mjs} +1 -1
- package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-DqIvkjLF.mjs} +4 -4
- package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-bkmDrPXY.js} +1 -1
- package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-BPBVGNDg.js} +1 -1
- package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-MSEp39xQ.mjs} +1 -1
- package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-BAOtOJZD.js} +1 -1
- package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-U7gnZ0F5.mjs} +1 -1
- package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Dq2V6bTV.mjs} +6 -6
- package/dist/{usePayments-SQF_V7oL.js → usePayments-G-HpKpK8.js} +1 -1
- package/dist/{usePortal-BdM7hDge.js → usePortal-BplmMkBG.js} +1 -1
- package/dist/{usePortal-DDG9b6FI.mjs → usePortal-CMHV-ShD.mjs} +1 -1
- package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-CvB8ROBt.js} +1 -1
- package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-V53WsZwQ.mjs} +1 -1
- package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CtCTu9cz.js} +1 -1
- package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-D31Zl1MJ.mjs} +1 -1
- package/dist/wallets.es-CNIMW5ay.js +1 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/package.json +2 -1
- package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
- package/dist/ErrorNotification.vue.es-0ZC_DozN.js +0 -1
- package/dist/IconButton.vue.es-DAR7e8NA.mjs +0 -198
- package/dist/IconButton.vue.es-DGLIdHkR.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +0 -144
- package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +0 -98
- package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +0 -102
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
- package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
- package/dist/component-5wqcK7yz.mjs +0 -8
- package/dist/component-B7ZDyqBp.js +0 -1
- package/dist/invoices-CvpL4rv5.js +0 -1
- package/dist/it-IT-CFEfSpPH.js +0 -1
- package/dist/nl-NL-jtVgF3jx.js +0 -1
- package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
- package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
- package/dist/subscriptions-X0Ciw8z3.js +0 -1
- package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),X=require("./useService-H7BjLg8P.js"),C=require("./customElements-BYIdPSzQ.js"),S=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js"),ee=require("./payments-KTjVHqOa.js"),L=require("./url-BNKStNY9.js"),te=require("./paymentMethods-CQdhZwq4.js"),u=require("./adyen-Druit6gz.js"),ne=require("./adyenSdk-BP2XXzeJ.js"),ae=require("./useExperimentalFeature-9-p9_nP6.js"),B=require("./paymentFailure-Cki8c5BX.js"),oe=h=>{let f={};return h==="TOKENIZE"&&(f={"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ą"}}),f},A="ADYEN",re=r.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}},emits:["select","payment-failed","payment-success","ready"],setup(h,{expose:f,emit:x}){let p=null,P=null;const n=h,_=x;f({submit:j});const l=r.ref(),N=r.ref(!1),I=r.ref(),i=C.useLogger(),{locale:F}=C.useIntl(),{authorizePayment:w,getPaymentDetails:U}=ee.createPaymentsService(),{tokenizePaymentMethod:Y}=te.createPaymentMethodsService(),T=ae.useExperimentalFeature(),O=r.computed(()=>{var e;return u.getAdyenDropInPaymentMethods(n.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!((e=T==null?void 0:T.value)!=null&&e["express-checkout"])})}),R=r.computed(()=>O.value.length>0);function s(e){return B.createPaymentFailureContext({gateway:A,paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:n.variant,invoiceId:n.invoiceId,customerId:n.customerId,...e})}function y(e){const t=B.createPaymentFailureError(e);I.value=t,_("payment-failed",t)}function j(){try{p==null||p.submit()}catch(e){i.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",s({reason:"ADYEN_SUBMIT_FAILED",cause:e}),e)}}async function Z(){const e=u.toMinorUnitAmount(n.amount),t=O.value;return{checkoutConfig:{amount:e,clientKey:u.getAdyenClientKeyFromPaymentMethodOptionsResponse(n.paymentMethodOptionResponseEntry),environment:u.getAdyenEnvironmentFromPaymentMethodOptionsResponse(n.paymentMethodOptionResponseEntry,i),locale:F,translations:oe(n.variant),countryCode:n.countryCode,analytics:{enabled:!1},paymentMethodsResponse:{paymentMethods:t},onSubmit:K,onAdditionalDetails:q,onPaymentCompleted:Q,onPaymentFailed:$,onError:J,showPayButton:!1},dropInConfig:{disableFinalAnimation:!0,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0,enableStoreDetails:!n.forceStorePaymentMethod&&n.storePaymentMethod===void 0&&n.variant==="AUTHORIZE"},paypal:{intent:e.value>0?"authorize":"tokenize",showPayButton:!0}},openFirstPaymentMethod:n.selected,onSelect:({props:{type:o}})=>{o&&_("select",{paymentMethodType:o,paymentGatewayVariant:"ADYEN"})},onReady:()=>_("ready")}}}function z(){return Promise.all([ne.loadAdyenSdk(),Promise.resolve().then(()=>require("./adyen-BJfC7N6f.js")).then(e=>e.default)])}async function v(){if(await M(),I.value=void 0,!R.value){const{payment_acceptor:e,integration:t}=n.paymentMethodOptionResponseEntry;i.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE","No Adyen payment methods to offer",{fingerprint:["PAYMENT_INTEGRATION_NOT_RENDERABLE",e.id],paymentAcceptorId:e.id,integrationId:t.id,...n.invoiceId?{invoiceId:n.invoiceId}:{}});return}if(await r.nextTick(),!!l.value)try{const[e,t]=await z(),{checkoutConfig:o,dropInConfig:a}=await Z();P=await e.AdyenCheckout(o),p=new e.Dropin(P,{...a,paymentMethodComponents:e.dropInPaymentMethodComponents}).mount(l.value),G(t)}catch(e){i.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",s({reason:"ADYEN_DROP_IN_MOUNT_FAILED",cause:e}),e),y({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:"Failed to mount Adyen web drop-in",error:e})}}async function M(){p&&(p.unmount(),p=null),l.value&&(l.value.innerHTML="")}function G(e){var o;const t=(o=l.value)==null?void 0:o.getRootNode();if(t instanceof ShadowRoot){const a=document.createElement("style");a.textContent=e,t.appendChild(a);const d=document.createElement("style");d.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
|
+
`,n.variant==="AUTHORIZE"&&(d.textContent+=`
|
|
95
|
+
.adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
`),t.appendChild(d)}}function b(e,{paymentMethodType:t,actions:o,logFailure:a}){if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===A){const d=H(e,t);if(!d){a(e);return}p.handleAction(d),o.resolve({resultCode:e.action.adyen.result_code,action:d});return}if(e.payment.result==="AUTHORIZED"){N.value=!0,o.resolve({resultCode:"Authorised"});return}a(e),o.resolve({resultCode:"Error"})}function K(...e){const[t,o,a]=e;n.validateOnSubmit().then(d=>{if(!d)return;const c=n.paymentMethodOptionResponseEntry.payment_acceptor.id,D={risk_data:u.transformObjectToAdyenObject(t.data.riskData),payment_method:u.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:u.transformObjectToAdyenObject(t.data.browserInfo)};if(n.variant==="AUTHORIZE"){const g=u.createReturnUrl({paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});w({payment_acceptor_id:c,...n.customerId?{customer_id:n.customerId}:{},payment_gateway_variant:A,adyen:{...D,store_payment_method:n.storePaymentMethod??(n.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:n.amount,...n.context?{context:n.context}:{},return_url:g}).then(m=>b(m,{paymentMethodType:t.data.paymentMethod.type,actions:a,logFailure:E=>i.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,s({reason:"PAYMENT_AUTHORIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:E}),E)})).catch(m=>{i.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,s({reason:"PAYMENT_AUTHORIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:m}),m),a.resolve({resultCode:"Error"})});return}if(n.variant==="TOKENIZE"){const g=u.createReturnUrl({paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!n.customerId){i.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${c}`,s({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),y({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}Y({customer_id:n.customerId,payment_acceptor_id:c,payment_gateway_variant:A,adyen:D,return_url:g}).then(m=>b(m,{paymentMethodType:t.data.paymentMethod.type,actions:a,logFailure:E=>i.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,s({reason:"TOKENIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:E}),E)})).catch(m=>{i.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,s({reason:"TOKENIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:m}),m),a.resolve({resultCode:"Error"})})}}).catch(d=>{i.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",s({reason:"ADYEN_SUBMISSION_FLOW_FAILED",cause:d}),d)})}function H(e,t){if(e.status!=="ACTION_REQUIRED")return;const o=e.action;if(o.payment_gateway_variant!="ADYEN")return;const a=o.adyen;return{paymentMethodType:(a==null?void 0:a.payment_method_type)??t,method:o.method,url:o.url,data:o.data,type:a==null?void 0:a.action_type,paymentData:a==null?void 0:a.payment_data,sdkData:a==null?void 0:a.sdk_data}}function q(...e){const[t]=e,o=t.data.details,a=t.data.paymentData;if(n.paymentMethodOptionResponseEntry.payment_acceptor.id){k({detailsResult:o?V(o):void 0,paymentDataResult:a,paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id});return}i.error("PAYMENT_ACCEPTOR_MISSING","Additional details arrived without a payment acceptor id",s({reason:"PAYMENT_ACCEPTOR_MISSING"})),y({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Payment failed",error:e})}function V(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}function $(...e){const[t]=e;i.error("ADYEN_PAYMENT_FAILED","Adyen reported the payment as failed",s({reason:"ADYEN_PAYMENT_FAILED",extra:{resultCode:t==null?void 0:t.resultCode}}),t),y({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:t})}function Q(...e){const[,t]=e;t==null||t.unmount(),_("payment-success")}function J(...e){const[t,o]=e;t.name!=="CANCEL"&&(i.error("INTEGRATION_ERROR","The Adyen drop-in reported an error",s({reason:"ADYEN_INTEGRATION_ERROR",cause:t,extra:{adyenErrorName:t.name}}),t),y({code:"UNKNOWN_ERROR",message:"Something went wrong",error:t}),o==null||o.unmount())}function k({detailsResult:e,threeDSResult:t,redirectResult:o,paymentDataResult:a,paymentAcceptorId:d}){U({paymentAcceptorId:d,paymentGatewayVariant:A,adyen:{...e?{details:e}:{},...o?{redirect_result:o}:{},...t?{threeds_result:t}:{},...a?{payment_data:a}:{}}}).then(c=>{if(c.payment_status==="FAILURE"){i.error("PAYMENT_DETAILS_REJECTED","Payment details returned a failed payment",s({reason:"PAYMENT_DETAILS_REJECTED",paymentAcceptorId:d,extra:{paymentStatus:c.payment_status}})),y({code:"AUTHORIZATION_FAILED",message:"Failed getting payment details",error:c});return}if(c.payment_status==="SUCCESS"){_("payment-success");return}}).catch(c=>{i.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",s({reason:"PAYMENT_DETAILS_CALL_FAILED",paymentAcceptorId:d,cause:c}),c),y({code:"PAYMENT_DETAILS_CALL_FAILED",message:"Failed fetching payment details",error:c})})}function W(){const e=L.getQueryParam(u.REDIRECT_RESULT_QUERY_STRING),t=L.getQueryParam(u.PAYMENT_ACCEPTOR_ID_QUERY_STRING);if(e){if(!t){i.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",s({reason:"INVALID_REDIRECT_RESULT"})),y({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Redirect result is set but payment acceptor id is missing"});return}k({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}})}}return r.onMounted(()=>{v(),W()}),r.onBeforeUnmount(()=>{M()}),r.watch(()=>n.paymentMethodOptionResponseEntry,(e,t)=>{X.isEqual(e,t)||v()},{deep:!0}),(e,t)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[N.value?(r.openBlock(),r.createBlock(S._sfc_main,{key:0,variant:h.variant,redirecting:h.redirectsOnSuccess},null,8,["variant","redirecting"])):I.value?(r.openBlock(),r.createBlock(S._sfc_main$1,{key:1,error:I.value},null,8,["error"])):r.createCommentVNode("",!0),R.value?(r.openBlock(),r.createElementBlock("div",{key:2,ref_key:"dropInContainerRef",ref:l},null,512)):r.createCommentVNode("",!0)],64))}});exports.default=re;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),K=require("./useService-H7BjLg8P.js"),O=require("./adyen-Druit6gz.js"),P=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js"),j=require("./payments-KTjVHqOa.js"),H=require("./paymentMethods-CQdhZwq4.js"),v=require("./url-BNKStNY9.js"),z=require("./customElements-BYIdPSzQ.js"),N=require("./paymentFailure-Cki8c5BX.js"),D="https://js.stripe.com/dahlia/stripe.js",q=`<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<style>
|
|
7
|
+
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
8
|
+
body { overflow: hidden; }
|
|
9
|
+
</style>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="stripe-root"></div>
|
|
13
|
+
<script src="${D}"><\/script>
|
|
14
|
+
<script>
|
|
15
|
+
(function () {
|
|
16
|
+
let stripe, elements, countryCode, email, name, parentOrigin;
|
|
17
|
+
|
|
18
|
+
window.addEventListener('message', function (event) {
|
|
19
|
+
if (!event.data || typeof event.data !== 'object') return;
|
|
20
|
+
if (event.source !== window.parent) return;
|
|
21
|
+
|
|
22
|
+
if (event.data.type === 'stripe:init') {
|
|
23
|
+
parentOrigin = event.origin;
|
|
24
|
+
countryCode = event.data.countryCode;
|
|
25
|
+
email = event.data.email;
|
|
26
|
+
name = event.data.name;
|
|
27
|
+
stripe = Stripe(event.data.publicKey);
|
|
28
|
+
elements = stripe.elements(event.data.options);
|
|
29
|
+
const paymentElement = elements.create('payment', { layout: { type: 'accordion', defaultCollapsed: false }, wallets: event.data.options.wallets, fields: event.data.options.fields });
|
|
30
|
+
|
|
31
|
+
paymentElement.on('ready', function () {
|
|
32
|
+
parent.postMessage({ type: 'stripe:ready' }, parentOrigin);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
paymentElement.on('change', function (e) {
|
|
36
|
+
parent.postMessage({ type: 'stripe:change', paymentMethodType: e.value.type }, parentOrigin);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
paymentElement.on('loaderror', function (e) {
|
|
40
|
+
parent.postMessage({
|
|
41
|
+
type: 'stripe:loaderror',
|
|
42
|
+
error: { message: e.error.message, type: e.error.type }
|
|
43
|
+
}, parentOrigin);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
paymentElement.mount('#stripe-root');
|
|
47
|
+
|
|
48
|
+
new ResizeObserver(function () {
|
|
49
|
+
parent.postMessage({
|
|
50
|
+
type: 'stripe:resize',
|
|
51
|
+
height: document.documentElement.scrollHeight
|
|
52
|
+
}, parentOrigin);
|
|
53
|
+
}).observe(document.documentElement);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (event.data.type === 'stripe:submit') {
|
|
57
|
+
if (!elements || !parentOrigin || event.origin !== parentOrigin) return;
|
|
58
|
+
const submitEmail = 'email' in event.data ? event.data.email : email;
|
|
59
|
+
const submitName = 'name' in event.data ? event.data.name : name;
|
|
60
|
+
elements.submit().then(function (submitResult) {
|
|
61
|
+
if (submitResult.error) {
|
|
62
|
+
parent.postMessage({
|
|
63
|
+
type: 'stripe:submit:error',
|
|
64
|
+
error: {
|
|
65
|
+
message: submitResult.error.message,
|
|
66
|
+
type: submitResult.error.type,
|
|
67
|
+
code: submitResult.error.code
|
|
68
|
+
}
|
|
69
|
+
}, parentOrigin);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const billingDetails = {};
|
|
73
|
+
if (countryCode) billingDetails.address = { country: countryCode };
|
|
74
|
+
if (submitEmail) billingDetails.email = submitEmail;
|
|
75
|
+
if (submitName) billingDetails.name = submitName;
|
|
76
|
+
const tokenParams = Object.keys(billingDetails).length
|
|
77
|
+
? { payment_method_data: { billing_details: billingDetails } }
|
|
78
|
+
: {};
|
|
79
|
+
stripe.createConfirmationToken({ elements: elements, params: tokenParams }).then(function (tokenResult) {
|
|
80
|
+
if (tokenResult.error) {
|
|
81
|
+
parent.postMessage({
|
|
82
|
+
type: 'stripe:submit:error',
|
|
83
|
+
error: {
|
|
84
|
+
message: tokenResult.error.message,
|
|
85
|
+
type: tokenResult.error.type,
|
|
86
|
+
code: tokenResult.error.code
|
|
87
|
+
}
|
|
88
|
+
}, parentOrigin);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
parent.postMessage({
|
|
92
|
+
type: 'stripe:submit:success',
|
|
93
|
+
confirmationTokenId: tokenResult.confirmationToken.id
|
|
94
|
+
}, parentOrigin);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
})();
|
|
100
|
+
<\/script>
|
|
101
|
+
</body>
|
|
102
|
+
</html>`,Y=["src","height"],G=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(m,{expose:I,emit:A}){const t=m,u=A;I({triggerSubmit:b});const d=n.ref(),l=n.ref(0),_=n.ref();function S(){var s,o;(o=(s=d.value)==null?void 0:s.contentWindow)==null||o.postMessage({type:"stripe:init",publicKey:t.publicKey,options:t.options,countryCode:t.countryCode,email:t.email,name:t.name},"*")}function b(){var s,o;(o=(s=d.value)==null?void 0:s.contentWindow)==null||o.postMessage({type:"stripe:submit",email:t.email,name:t.name},"*")}function f(s){return typeof s=="object"&&s!==null}function p(s){if(!d.value||s.source!==d.value.contentWindow||!f(s.data))return;const o=s.data,g=o.type;if(!(typeof g!="string"||!g.startsWith("stripe:")))switch(g){case"stripe:ready":u("ready");break;case"stripe:change":u("change",typeof o.paymentMethodType=="string"?o.paymentMethodType:"card");break;case"stripe:loaderror":{const a=f(o.error)?o.error:{};u("loaderror",{message:typeof a.message=="string"?a.message:void 0,type:typeof a.type=="string"?a.type:void 0});break}case"stripe:resize":typeof o.height=="number"&&(l.value=o.height);break;case"stripe:submit:success":typeof o.confirmationTokenId=="string"&&u("submit-success",o.confirmationTokenId);break;case"stripe:submit:error":{const a=f(o.error)?o.error:{};u("submit-error",{message:typeof a.message=="string"?a.message:void 0,type:typeof a.type=="string"?a.type:void 0,code:typeof a.code=="string"?a.code:void 0});break}}}return n.onMounted(()=>{const s=new Blob([q],{type:"text/html"});_.value=URL.createObjectURL(s),window.addEventListener("message",p)}),n.onBeforeUnmount(()=>{window.removeEventListener("message",p),_.value&&URL.revokeObjectURL(_.value)}),n.watch(()=>t.options,(s,o)=>{K.isEqual(s,o)||S()},{deep:!0}),(s,o)=>(n.openBlock(),n.createElementBlock("iframe",{ref_key:"iframeRef",ref:d,src:_.value,height:l.value||void 0,frameborder:"0",style:{width:"100%",display:"block",border:"none"},title:"Payment form",onLoad:S},null,40,Y))}}),w={link:"never"},C={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 Q(m,I){return{billingDetails:{address:{country:"never"},...m?{email:"never"}:{},...I?{name:"never"}:{}}}}function W({amount:m,email:I,name:A,variant:t,storePaymentMethod:u=!1}){const d=m.currency.toLowerCase(),l=Q(I,A);return t==="TOKENIZE"?{mode:"setup",currency:d,setup_future_usage:"off_session",wallets:w,fields:l,appearance:C}:{mode:"payment",currency:d,amount:O.toMinorUnitAmount(m).value,...u?{setup_future_usage:"off_session"}:{},wallets:w,fields:l,appearance:C}}const R="STRIPE",$=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}},emits:["select","payment-failed","payment-success","ready"],setup(m,{expose:I,emit:A}){const t=m,u=A;I({submit:M});const d=n.ref(!1),l=n.ref(),_=n.ref(),S=n.computed(()=>t.storePaymentMethod??t.forceStorePaymentMethod??!1),b=n.computed(()=>W({amount:t.amount,email:t.email,name:t.name,variant:t.variant,storePaymentMethod:S.value})),f=n.ref(null),p=z.useLogger(),{authorizePayment:s}=j.createPaymentsService(),{tokenizePaymentMethod:o}=H.createPaymentMethodsService(),g=n.computed(()=>{var e,r;return(r=(e=t.paymentMethodOptionResponseEntry.integration.payment_gateway)==null?void 0:e.stripe)==null?void 0:r.public_key});function a(e){return N.createPaymentFailureContext({gateway:R,paymentAcceptorId:t.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:t.variant,invoiceId:t.invoiceId,customerId:t.customerId,...e})}function M(){L().catch(e=>{p.error("STRIPE_SUBMIT_FAILED","Unexpected error during Stripe submission",a({reason:"STRIPE_SUBMIT_FAILED",cause:e}),e)})}async function L(){var r;await t.validateOnSubmit()&&((r=_.value)==null||r.triggerSubmit())}function F(e){return new Promise((r,c)=>{if(window.Stripe){r(window.Stripe(e));return}const i=document.createElement("script");i.src=D,i.onload=()=>{if(!window.Stripe){c(new Error("Stripe not available after script load"));return}r(window.Stripe(e))},i.onerror=()=>c(new Error("Failed to load Stripe.js")),document.head.appendChild(i)})}async function k(){if(f.value)return f.value;const e=g.value;if(!e)throw new Error("Missing Stripe public key");const r=await F(e);return f.value=r,r}async function U(e){const r=t.paymentMethodOptionResponseEntry.payment_acceptor.id,c=O.createReturnUrl({paymentAcceptorId:r,redirectUrl:window.location.href});if(t.variant==="AUTHORIZE"){try{const i=await s({payment_acceptor_id:r,...t.customerId?{customer_id:t.customerId}:{},payment_gateway_variant:R,stripe:{confirmation_token_id:e},amount:t.amount,...t.context&&t.context.type!=="CHARGE_ON_DEMAND"?{context:t.context}:{},return_url:c});await h(i)}catch(i){p.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${r}`,a({reason:"PAYMENT_AUTHORIZATION_FAILED",cause:i}),i),y({code:"AUTHORIZATION_FAILED",message:"Payment authorization failed",error:i})}return}if(t.variant==="TOKENIZE"){if(!t.customerId){p.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${r}`,a({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),y({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}try{const i=await o({customer_id:t.customerId,payment_acceptor_id:r,payment_gateway_variant:R,stripe:{confirmation_token_id:e},return_url:c});await h(i)}catch(i){p.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${r}`,a({reason:"TOKENIZATION_FAILED",cause:i}),i),y({code:"TOKENIZE_FAILED",message:"Tokenization failed",error:i})}}}async function h(e){var r;if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===R){const c=e.action.client_secret||((r=e.action.data)==null?void 0:r.client_secret);if(!c){p.error("STRIPE_ACTION_FAILED","Missing client_secret in Stripe ACTION_REQUIRED response",a({reason:"STRIPE_ACTION_MISSING_CLIENT_SECRET",extra:{paymentStatus:e.status}})),y({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:e});return}let i;try{i=await k()}catch(T){p.error("STRIPE_ACTION_FAILED","Failed to load Stripe.js",a({reason:"STRIPE_SDK_LOAD_FAILED",cause:T}),T),y({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:T});return}const{error:E}=await i.handleNextAction({clientSecret:c});if(E){p.error("STRIPE_ACTION_FAILED","Stripe handleNextAction failed",a({reason:"STRIPE_NEXT_ACTION_FAILED",cause:E,extra:{stripeErrorCode:E.code,stripeErrorType:E.type}}),E),y({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:E});return}d.value=!0,u("payment-success");return}if(e.status==="SUCCESS"){d.value=!0,u("payment-success");return}p.error("STRIPE_ACTION_FAILED","Unexpected payment result status",a({reason:"STRIPE_UNEXPECTED_PAYMENT_STATUS",extra:{paymentStatus:e.status}})),y({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:e})}async function x(){const e=t.paymentMethodOptionResponseEntry.payment_acceptor.id;if(v.getQueryParam(O.PAYMENT_ACCEPTOR_ID_QUERY_STRING)!==e)return;const c=v.getQueryParam("redirect_status"),i=v.getQueryParam("payment_intent_client_secret"),E=v.getQueryParam("setup_intent_client_secret");if(!c||!i&&!E)return;if(c==="succeeded"){d.value=!0,u("payment-success");return}const T=new globalThis.Error(`Stripe redirect returned status: ${c}`);p.error("STRIPE_REDIRECT_RETURN_FAILED","Stripe redirect returned non-succeeded status",a({reason:"STRIPE_REDIRECT_RETURN_FAILED",extra:{redirectStatus:c}}),T),y({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:T})}function Z(){u("select",{paymentMethodType:"card",paymentGatewayVariant:R}),u("ready")}function B(e){p.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to load the Stripe payment form",a({reason:"STRIPE_FORM_LOAD_FAILED",cause:e,extra:{stripeErrorType:e.type}}),e),y({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:e.message??"Failed to load payment form",error:e})}function y(e){const r=N.createPaymentFailureError(e);l.value=r,u("payment-failed",r)}return n.onMounted(()=>{x().catch(e=>{p.error("STRIPE_REDIRECT_RETURN_FAILED","handleRedirectReturn threw unexpectedly",a({reason:"STRIPE_REDIRECT_RETURN_THREW",cause:e}),e)})}),n.onBeforeUnmount(()=>{f.value=null}),(e,r)=>d.value?(n.openBlock(),n.createBlock(P._sfc_main,{key:0,variant:m.variant,redirecting:m.redirectsOnSuccess},null,8,["variant","redirecting"])):l.value?(n.openBlock(),n.createBlock(P._sfc_main$1,{key:1,error:l.value},null,8,["error"])):g.value?(n.openBlock(),n.createBlock(G,{key:2,ref_key:"frameRef",ref:_,"public-key":g.value,options:b.value,"country-code":m.countryCode,email:m.email,name:m.name,onReady:Z,onChange:r[0]||(r[0]=c=>u("select",{paymentMethodType:c,paymentGatewayVariant:R})),onLoaderror:B,onSubmitSuccess:U,onSubmitError:r[1]||(r[1]=c=>n.unref(p).error("STRIPE_CONFIRMATION_TOKEN_FAILED","Stripe submission failed",a({reason:"STRIPE_CONFIRMATION_TOKEN_FAILED",cause:c}),c))},null,8,["public-key","options","country-code","email","name"])):n.createCommentVNode("",!0)}});exports.default=$;
|