@solvimon/solvimon-web 0.1.0-alpha.26 → 0.1.0-alpha.28

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.
Files changed (438) hide show
  1. package/README.md +138 -27
  2. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  3. package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +17 -19
  5. package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
  6. package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +233 -253
  7. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
  8. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
  9. package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
  10. package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
  11. package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
  12. package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
  13. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +31 -36
  14. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
  15. package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
  16. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
  17. package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
  18. package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
  19. package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
  20. package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
  21. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
  22. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
  23. package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
  24. package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
  25. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +73 -75
  26. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
  27. package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
  28. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
  29. package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
  30. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
  31. package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -297
  32. package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
  33. package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
  34. package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
  35. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +65 -75
  36. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
  37. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
  38. package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
  39. package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
  40. package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
  41. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
  42. package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
  43. package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
  44. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
  45. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
  46. package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
  47. package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
  48. package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
  49. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
  50. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
  51. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +124 -90
  52. package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
  53. package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
  54. package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
  55. package/dist/amount-CondixVt.mjs +36 -0
  56. package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-2bVdkiFV.mjs} +87 -83
  57. package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
  58. package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
  59. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
  60. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
  61. package/dist/components/Invoice/Invoice.mjs +206 -209
  62. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -63
  63. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
  64. package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
  65. package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -65
  66. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
  67. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
  68. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
  69. package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
  70. package/dist/core/index.mjs +61 -95
  71. package/dist/customElements-Di3zwlEU.mjs +6447 -0
  72. package/dist/customer-CqddTiOr.mjs +31 -0
  73. package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
  74. package/dist/{de-DE-CLfzTbbX.mjs → de-DE-BW8dMvhW.mjs} +87 -19
  75. package/dist/formControl-CsITfsBk.mjs +749 -0
  76. package/dist/index.mjs +2 -2
  77. package/dist/invoiceState-BJVHaKs7.mjs +14 -0
  78. package/dist/{invoices-DJTwftJv.mjs → invoices-Cf1qDAv4.mjs} +40 -35
  79. package/dist/{it-IT-Cym1UvvK.mjs → it-IT-Byg06KWc.mjs} +87 -19
  80. package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
  81. package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
  82. package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-x3zQqzZ7.mjs} +93 -25
  83. package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
  84. package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
  85. package/dist/payments-Ci8bF4C6.mjs +45 -0
  86. package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
  87. package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
  88. package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
  89. package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
  90. package/dist/screens/Checkout/Checkout.mjs +2 -2
  91. package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
  92. package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
  93. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
  94. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  95. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
  96. package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
  97. package/dist/sorting.es-qtEN8J8T.mjs +77 -0
  98. package/dist/subscription-BhxoqwcT.mjs +83 -0
  99. package/dist/subscriptions-CwogJODR.mjs +54 -0
  100. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
  101. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  102. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  103. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
  104. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  105. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  106. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  107. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  108. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  109. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  110. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  111. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  112. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
  113. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
  114. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  115. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
  116. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  117. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  118. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  119. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  120. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  121. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  122. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  123. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  124. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  125. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  126. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  127. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  128. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  129. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  130. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  131. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  132. package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
  133. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  134. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  135. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  136. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  137. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  138. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  139. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  140. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
  141. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  142. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  143. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  144. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  145. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  146. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  147. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  148. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  149. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  150. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  151. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  152. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  153. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  154. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  155. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  156. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  157. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  158. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  159. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  160. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  161. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  162. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  163. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  164. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  165. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  166. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  167. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  168. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  169. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  170. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  171. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  172. package/dist/types/public/core/action-request.types.d.ts +5 -0
  173. package/dist/types/public/core/registry.ce.d.ts +3 -3
  174. package/dist/types/public/core/registry.d.ts +0 -3
  175. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  176. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  177. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  178. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  179. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  180. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
  181. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  182. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  183. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  184. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  185. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  186. package/dist/types/services/requests.types.d.ts +16 -6
  187. package/dist/types/types/errors.d.ts +3 -2
  188. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  189. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  190. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  191. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  192. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  193. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  194. package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
  195. package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
  196. package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
  197. package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
  198. package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
  199. package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
  200. package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
  201. package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
  202. package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +17 -18
  203. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
  204. package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
  205. package/dist/{usePayments-CV85OV8V.mjs → usePayments-CykCZPG2.mjs} +7 -7
  206. package/dist/usePortal-CxzKGhbK.mjs +7 -0
  207. package/dist/useService-B0OQJmif.mjs +56 -0
  208. package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
  209. package/dist/useViewport-psZejz_H.mjs +19 -0
  210. package/package.json +35 -59
  211. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs +0 -223
  212. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js +0 -1
  213. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  214. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  215. package/dist/Avatar.vue.es-Bm6MCMAL.js +0 -1
  216. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
  217. package/dist/Button.vue.es-qGvnOKnK.js +0 -1
  218. package/dist/ChargeOnDemandModal-DIQaGnRs.js +0 -1
  219. package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
  220. package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
  221. package/dist/Chip.vue.es-D60gTbfe.js +0 -1
  222. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  223. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  224. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  225. package/dist/ContextMenu.vue.es-C7KI8Gz6.js +0 -1
  226. package/dist/CustomerBillingInformation.vue.es-bFUx81Ig.js +0 -1
  227. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  228. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js +0 -1
  229. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs +0 -2701
  230. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
  231. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  232. package/dist/DividerText.vue.es-BF3gnr4e.js +0 -1
  233. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs +0 -335
  234. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js +0 -1
  235. package/dist/ErrorNotification.vue.es-BX9dHEc-.js +0 -1
  236. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  237. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  238. package/dist/IconButton.vue.es-Bwdfu-jm.js +0 -1
  239. package/dist/IconTitle.vue.es-Cei98MBw.js +0 -1
  240. package/dist/Input.vue.es-B47l_feL.js +0 -1
  241. package/dist/Input.vue.es-D9IjIWc-.mjs +0 -235
  242. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js +0 -1
  243. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs +0 -41
  244. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js +0 -1
  245. package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +0 -1
  246. package/dist/Modal.vue.es-8LN4gBh0.js +0 -1
  247. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js +0 -1
  248. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js +0 -1
  249. package/dist/PaymentHistoryBlock-Ds93gNvh.js +0 -1
  250. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js +0 -1
  251. package/dist/PaymentIntegrationForm-B_Db4DG1.js +0 -1
  252. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
  253. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +0 -154
  254. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
  255. package/dist/PaymentIntegrationFormStripe-BIiMCWlV.mjs +0 -587
  256. package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +0 -102
  257. package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +0 -1
  258. package/dist/PaymentMethodForm-1d0YIGOu.js +0 -1
  259. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +0 -1
  260. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js +0 -1
  261. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
  262. package/dist/PlanCustomizationEditor-CpZeilm5.mjs +0 -694
  263. package/dist/PricingGroupRangeInput.vue.es-DZSJ5Mz0.js +0 -185
  264. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +0 -1
  265. package/dist/RadioGroupExtended.vue.es-Dt6LH9Yh.js +0 -1
  266. package/dist/Section.vue.es-zVXBHAL6.js +0 -1
  267. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js +0 -1
  268. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
  269. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
  270. package/dist/StepInput.vue.es-mAnuCuDQ.js +0 -1
  271. package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +0 -1
  272. package/dist/SubscriptionSchedules-Cm5Dt-1H.js +0 -1
  273. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +0 -1
  274. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs +0 -91
  275. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js +0 -1
  276. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js +0 -1
  277. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +0 -1
  278. package/dist/TrialChip.vue.es-C_wgHGuN.js +0 -1
  279. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  280. package/dist/ach.svg.es-BYP873jU.js +0 -1
  281. package/dist/adyen-BJfC7N6f.js +0 -1
  282. package/dist/adyen-CvsH5fok.mjs +0 -117
  283. package/dist/adyen-Druit6gz.js +0 -1
  284. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  285. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  286. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  287. package/dist/api.es-duCDtZD9.js +0 -1
  288. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  289. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  290. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  291. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  292. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  293. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  294. package/dist/cn.es-D9YMDvG2.js +0 -1
  295. package/dist/comparators.es-OGt19O9U.js +0 -1
  296. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  297. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  298. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  299. package/dist/components/Invoice/Invoice.cjs +0 -1
  300. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  301. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  302. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  303. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  304. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  305. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  306. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  307. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  308. package/dist/configuration-akTS7Wiw.js +0 -1
  309. package/dist/core/index.cjs +0 -1
  310. package/dist/countryData.es-C4jHBzfo.js +0 -1
  311. package/dist/customElements-C963-LtW.js +0 -1215
  312. package/dist/customElements-D5DAoHRI.mjs +0 -6633
  313. package/dist/customer-DKa1B2vp.mjs +0 -31
  314. package/dist/customer-TE1FnGT0.js +0 -1
  315. package/dist/customer.es-BButyYo0.js +0 -1
  316. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  317. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  318. package/dist/de-DE-B4TUdnUf.js +0 -1
  319. package/dist/de-DE-DaBBl-Ak.js +0 -1
  320. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  321. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  322. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  323. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  324. package/dist/en-US-BNevqm0M.js +0 -1
  325. package/dist/en-US-D6SGRAch.mjs +0 -325
  326. package/dist/en-US-J85TQRI8.js +0 -1
  327. package/dist/en-US-SDhjlY_v.mjs +0 -301
  328. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  329. package/dist/error-BHVZJGwD.mjs +0 -13
  330. package/dist/error-CmduqgVq.js +0 -1
  331. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  332. package/dist/formControl-ODrpUvcA.js +0 -1
  333. package/dist/formControl-dX7l8o3c.mjs +0 -845
  334. package/dist/formatting.es-C72Nsrmh.js +0 -1
  335. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  336. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  337. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  338. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  339. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  340. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  341. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  342. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  343. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  344. package/dist/index-BPZPnOQQ.js +0 -7
  345. package/dist/index.cjs +0 -1
  346. package/dist/index.es-BclokHQX.js +0 -1
  347. package/dist/invoices-ClqTWYF9.js +0 -1
  348. package/dist/it-IT-BkPbTueL.js +0 -1
  349. package/dist/it-IT-CSYvGmpT.js +0 -1
  350. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  351. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  352. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  353. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  354. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  355. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  356. package/dist/nl-NL-CpE4IgwO.js +0 -1
  357. package/dist/nl-NL-jIfAVGv0.js +0 -1
  358. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  359. package/dist/object.es-CdriXMPs.js +0 -1
  360. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  361. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  362. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  363. package/dist/paymentMethods-AL2U_byg.js +0 -1
  364. package/dist/paymentMethods-CWzJhcWK.mjs +0 -77
  365. package/dist/payments-BmiHMlQt.js +0 -1
  366. package/dist/payments-aXyfylwk.mjs +0 -45
  367. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  368. package/dist/pricing-BVAld27Y.js +0 -1
  369. package/dist/pricing-DLOeiAIB.mjs +0 -16
  370. package/dist/pricing.es-C07bgEZx.js +0 -1
  371. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  372. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  373. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  374. package/dist/pricingPlanSchedules-BD4GIP_F.mjs +0 -32
  375. package/dist/pricingPlanSchedules-BfsMSvN0.js +0 -1
  376. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  377. package/dist/screens/Checkout/Checkout.cjs +0 -1
  378. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  379. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  380. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  381. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  382. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  383. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  384. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  385. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  386. package/dist/slots.es-T9ZJRGtG.js +0 -1
  387. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  388. package/dist/sorting.es-DQsjKr8A.js +0 -1
  389. package/dist/star.svg.es-D2JncY7b.js +0 -1
  390. package/dist/subscription-D1yHKUNc.mjs +0 -69
  391. package/dist/subscription-ZA62t4E9.js +0 -1
  392. package/dist/subscriptions-Cm83ckfl.js +0 -1
  393. package/dist/subscriptions-cnR5fnf7.mjs +0 -55
  394. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  395. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  396. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  397. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  398. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  399. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  400. package/dist/types/services/portals.types.d.ts +0 -70
  401. package/dist/types/types/subscription.d.ts +0 -4
  402. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  403. package/dist/url-TNRgVI8A.mjs +0 -21
  404. package/dist/url-vloPOiXd.js +0 -1
  405. package/dist/useActionDispatchProvider-CHkVQMaE.js +0 -1
  406. package/dist/useActionDispatchProvider-DDYqIh3r.mjs +0 -11
  407. package/dist/useCustomer-DGYtowRy.js +0 -1
  408. package/dist/useCustomerFormLabels-CcnkJLcB.mjs +0 -968
  409. package/dist/useCustomerFormLabels-DAZziqYt.js +0 -1
  410. package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
  411. package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
  412. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  413. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  414. package/dist/useInvoiceData-BEK-7msA.mjs +0 -38
  415. package/dist/useInvoiceData-CQRn8l9C.js +0 -1
  416. package/dist/useInvoicesList-BQkKyyXa.js +0 -1
  417. package/dist/useInvoicesList-C4I118KM.mjs +0 -500
  418. package/dist/useLoadInitialData-CrKnBZs_.js +0 -1
  419. package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
  420. package/dist/usePaymentMethodOptions-Ciifjo6c.mjs +0 -39
  421. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +0 -1
  422. package/dist/usePaymentMethods-BKwrl82-.js +0 -1
  423. package/dist/usePayments-Bauj16B-.js +0 -1
  424. package/dist/usePortal-DSLImEfr.js +0 -1
  425. package/dist/usePortal-H8Tv2TnZ.mjs +0 -11
  426. package/dist/useService-Bh47bllz.mjs +0 -50
  427. package/dist/useService-H7BjLg8P.js +0 -1
  428. package/dist/useSubscription-BiYNJT2e.js +0 -1
  429. package/dist/useSubscription-DqnxWNKg.mjs +0 -210
  430. package/dist/useTimePeriod.es-D2aiyfd-.js +0 -1
  431. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  432. package/dist/useViewport-hPRVDWCm.js +0 -1
  433. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  434. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  435. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  436. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  437. package/dist/wallets.es-CNIMW5ay.js +0 -1
  438. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -1,24 +1,23 @@
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
- import { a as Ne } from "./useService-Bh47bllz.mjs";
3
- import { a as q, _ as $, b as be } from "./customElements-D5DAoHRI.mjs";
4
- import { _ as Pe, a as ve } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs";
5
- import { c as Re } from "./payments-aXyfylwk.mjs";
6
- import { g as J } from "./url-TNRgVI8A.mjs";
7
- import { c as Oe } from "./paymentMethods-CWzJhcWK.mjs";
8
- import { g as Me, t as ke, a as De, b as Se, R as Ce, P as Le, c as S, d as Q } from "./adyen-CvsH5fok.mjs";
9
- import { l as we } from "./adyenSdk-B01MB9Ia.mjs";
10
- import { u as xe } from "./useExperimentalFeature-ierhOt9Q.mjs";
11
- import { c as Be, a as Fe } from "./paymentFailure-Bh60UhxA.mjs";
12
- const Ue = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
13
- function Ye(c) {
14
- return (c == null ? void 0 : c.querySelector(Ue)) ?? null;
1
+ import { defineComponent as de, computed as b, openBlock as N, createElementBlock as K, createVNode as H, unref as te, withCtx as ne, createTextVNode as ae, toDisplayString as C, ref as M, onMounted as Me, onBeforeUnmount as De, watch as ke, Fragment as Se, createBlock as Z, createCommentVNode as z, Teleport as Ce, createElementVNode as we, nextTick as oe } from "vue";
2
+ import { i as Le } from "./useService-B0OQJmif.mjs";
3
+ import { a as ce, _ as re, d as xe } from "./customElements-Di3zwlEU.mjs";
4
+ import { _ as Fe, a as Be } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs";
5
+ import { c as Ue } from "./payments-Ci8bF4C6.mjs";
6
+ import { c as Ye } from "./paymentMethods-BUuOmDq9.mjs";
7
+ import { a as je, g as Ze, r as ze, c as Ge, b as Ke, d as He, t as G, e as ie } from "./usePaymentFormHold-FfNc578l.mjs";
8
+ import { t as Ve } from "./amount-CondixVt.mjs";
9
+ import { l as $e } from "./adyenSdk-B01MB9Ia.mjs";
10
+ import { c as We, a as Je, g as qe, i as Qe, b as Xe } from "./paymentOutcome-D17VD4MV.mjs";
11
+ const et = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
12
+ function tt(c) {
13
+ return (c == null ? void 0 : c.querySelector(et)) ?? null;
15
14
  }
16
- function je(c, m) {
17
- return !!c && !!m && !c.contains(m);
15
+ function nt(c, y) {
16
+ return !!c && !!y && !c.contains(y);
18
17
  }
19
- const Ze = (c) => {
20
- let m = {};
21
- return c === "TOKENIZE" && (m = {
18
+ const at = (c) => {
19
+ let y = {};
20
+ return c === "TOKENIZE" && (y = {
22
21
  "en-US": {
23
22
  payButton: "Add payment method",
24
23
  confirmPurchase: "Add payment method"
@@ -143,79 +142,76 @@ const Ze = (c) => {
143
142
  payButton: "Pridėti mokėjimo metodą",
144
143
  confirmPurchase: "Pridėti mokėjimo metodą"
145
144
  }
146
- }), m;
147
- }, ze = {
148
- class: "sv-sepa-mandate mt-3",
149
- "data-testid": "sepa-mandate-notice"
150
- }, Ge = /* @__PURE__ */ W({
145
+ }), y;
146
+ }, ot = { class: "sv-sepa-mandate mt-3" }, rt = /* @__PURE__ */ de({
151
147
  __name: "SepaMandateNotice",
152
148
  props: {
153
149
  billingEntityName: { type: String }
154
150
  },
155
151
  setup(c) {
156
- const m = c, { $t: E } = q(), r = A(
152
+ const y = c, { $t: E } = ce(), r = b(
157
153
  () => E({
158
154
  defaultMessage: "SEPA Direct Debit mandate — recurring payments",
159
155
  description: "Title of the SEPA direct debit mandate shown inside the SEPA payment form",
160
156
  id: "payments.sepa_mandate.title"
161
157
  })
162
- ), b = A(
163
- () => m.billingEntityName ? E(
158
+ ), k = b(
159
+ () => y.billingEntityName ? E(
164
160
  {
165
161
  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.",
166
162
  description: "SEPA direct debit mandate authorisation, naming the billing entity",
167
163
  id: "payments.sepa_mandate.authorisation"
168
164
  },
169
- { billingEntityName: m.billingEntityName }
165
+ { billingEntityName: y.billingEntityName }
170
166
  ) : E({
171
167
  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.",
172
168
  description: "SEPA direct debit mandate authorisation, where the billing entity is not known",
173
169
  id: "payments.sepa_mandate.authorisation_unnamed"
174
170
  })
175
- ), a = A(
176
- () => m.billingEntityName ? E(
171
+ ), a = b(
172
+ () => y.billingEntityName ? E(
177
173
  {
178
174
  defaultMessage: "This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",
179
175
  description: "Explains that the SEPA mandate covers later invoices, naming the billing entity",
180
176
  id: "payments.sepa_mandate.recurrence"
181
177
  },
182
- { billingEntityName: m.billingEntityName }
178
+ { billingEntityName: y.billingEntityName }
183
179
  ) : E({
184
180
  defaultMessage: "This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",
185
181
  description: "Explains that the SEPA mandate covers later invoices, where the billing entity is not known",
186
182
  id: "payments.sepa_mandate.recurrence_unnamed"
187
183
  })
188
- ), p = A(
184
+ ), p = b(
189
185
  () => E({
190
186
  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.",
191
187
  description: "SEPA direct debit mandate refund rights, held against the payer's own bank",
192
188
  id: "payments.sepa_mandate.refund_rights"
193
189
  })
194
190
  );
195
- return (y, R) => (g(), C("div", ze, [
196
- L(G($), {
191
+ return (l, w) => (N(), K("div", ot, [
192
+ H(te(re), {
197
193
  tag: "p",
198
194
  variant: "body-xs",
199
195
  class: "font-semibold"
200
196
  }, {
201
- default: K(() => [
202
- H(v(r.value), 1)
197
+ default: ne(() => [
198
+ ae(C(r.value), 1)
203
199
  ]),
204
200
  _: 1
205
201
  }),
206
- L(G($), {
202
+ H(te(re), {
207
203
  tag: "p",
208
204
  variant: "body-xs",
209
205
  color: "subtle"
210
206
  }, {
211
- default: K(() => [
212
- H(v(b.value) + " " + v(a.value) + " " + v(p.value), 1)
207
+ default: ne(() => [
208
+ ae(C(k.value) + " " + C(a.value) + " " + C(p.value), 1)
213
209
  ]),
214
210
  _: 1
215
211
  })
216
212
  ]));
217
213
  }
218
- }), N = "ADYEN", at = /* @__PURE__ */ W({
214
+ }), D = "ADYEN", se = "data-sv-adyen-styles", _t = /* @__PURE__ */ de({
219
215
  __name: "PaymentIntegrationFormAdyen",
220
216
  props: {
221
217
  context: { type: Object },
@@ -232,24 +228,26 @@ const Ze = (c) => {
232
228
  redirectsOnSuccess: { type: Boolean },
233
229
  billingEntityName: { type: String }
234
230
  },
235
- emits: ["select", "payment-failed", "payment-success", "invalid", "ready"],
236
- setup(c, { expose: m, emit: E }) {
237
- let r = null, b = null;
231
+ emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
232
+ setup(c, { expose: y, emit: E }) {
233
+ let r = null, k = null;
238
234
  const a = c, p = E;
239
- m({ submit: ne });
240
- const y = T(), R = T(null), f = T(null);
241
- let l;
242
- const w = T(!1), P = T(), i = be(), { locale: X } = q(), { authorizePayment: ee, getPaymentDetails: te } = Re(), { tokenizePaymentMethod: ae } = Oe(), O = xe(), x = A(
235
+ y({ submit: le });
236
+ const l = M(), w = M(null), I = M(null);
237
+ let f;
238
+ const L = M(!1), g = M();
239
+ let S = !1, A = !1, v = 0, P, x = !1;
240
+ const s = xe(), { locale: ue } = ce(), { authorizePayment: me, getPaymentDetails: pe } = Ue(), { tokenizePaymentMethod: ye } = Ye(), F = je(), V = b(
243
241
  () => {
244
242
  var e;
245
- return Me(a.paymentMethodOptionResponseEntry, {
246
- excludeExpressPaymentMethods: !!((e = O == null ? void 0 : O.value) != null && e["express-checkout"])
243
+ return Ze(a.paymentMethodOptionResponseEntry, {
244
+ excludeExpressPaymentMethods: !!((e = F == null ? void 0 : F.value) != null && e["express-checkout"])
247
245
  });
248
246
  }
249
- ), B = A(() => x.value.length > 0);
247
+ ), $ = b(() => V.value.length > 0);
250
248
  function u(e) {
251
- return Be({
252
- gateway: N,
249
+ return We({
250
+ gateway: D,
253
251
  paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
254
252
  variant: a.variant,
255
253
  invoiceId: a.invoiceId,
@@ -257,56 +255,77 @@ const Ze = (c) => {
257
255
  ...e
258
256
  });
259
257
  }
260
- function h(e) {
261
- const t = Fe(e);
262
- P.value = t, p("payment-failed", t);
258
+ function _(e) {
259
+ A = !1;
260
+ const t = Je(e);
261
+ g.value = t, p("payment-failed", t);
263
262
  }
264
- function ne() {
265
- if (!(r != null && r.isValid)) {
266
- if (r && !r.activePaymentMethod) {
267
- p("invalid", "NO_PAYMENT_METHOD");
263
+ function W() {
264
+ A = !1, B(), L.value = !0, p("payment-success");
265
+ }
266
+ function O(e, t = {}, n) {
267
+ B(), s.warn(
268
+ "PAYMENT_OUTCOME_UNCONFIRMED",
269
+ "The payment outcome could not be confirmed yet",
270
+ u({ reason: e, extra: t, cause: n }),
271
+ n
272
+ ), _({
273
+ code: "PAYMENT_OUTCOME_UNCONFIRMED",
274
+ message: "Payment could not be confirmed",
275
+ error: n
276
+ });
277
+ }
278
+ function B() {
279
+ S = !0, Y();
280
+ }
281
+ function le() {
282
+ if (!A) {
283
+ if (!(r != null && r.isValid)) {
284
+ if (r && !r.activePaymentMethod) {
285
+ p("invalid", "NO_PAYMENT_METHOD");
286
+ return;
287
+ }
288
+ r == null || r.showValidation(), p("invalid");
268
289
  return;
269
290
  }
270
- r == null || r.showValidation(), p("invalid");
271
- return;
272
- }
273
- try {
274
- r.submit();
275
- } catch (e) {
276
- i.error(
277
- "ADYEN_SUBMIT_FAILED",
278
- "Failed to submit Adyen drop-in",
279
- u({ reason: "ADYEN_SUBMIT_FAILED", cause: e }),
280
- e
281
- ), h({
282
- code: a.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
283
- message: "Failed to submit Adyen drop-in",
284
- error: e
285
- });
291
+ try {
292
+ r.submit();
293
+ } catch (e) {
294
+ s.error(
295
+ "ADYEN_SUBMIT_FAILED",
296
+ "Failed to submit Adyen drop-in",
297
+ u({ reason: "ADYEN_SUBMIT_FAILED", cause: e }),
298
+ e
299
+ ), _({
300
+ code: a.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
301
+ message: "Failed to submit Adyen drop-in",
302
+ error: e
303
+ });
304
+ }
286
305
  }
287
306
  }
288
- async function oe() {
289
- const e = ke(a.amount), t = x.value;
307
+ async function he() {
308
+ const e = Ve(a.amount), t = V.value;
290
309
  return {
291
310
  checkoutConfig: {
292
311
  amount: e,
293
- clientKey: Se(
312
+ clientKey: He(
294
313
  a.paymentMethodOptionResponseEntry
295
314
  ),
296
- environment: De(
315
+ environment: Ke(
297
316
  a.paymentMethodOptionResponseEntry,
298
- i
317
+ s
299
318
  ),
300
- locale: X,
301
- translations: Ze(a.variant),
319
+ locale: ue,
320
+ translations: at(a.variant),
302
321
  countryCode: a.countryCode,
303
322
  analytics: { enabled: !1 },
304
323
  paymentMethodsResponse: { paymentMethods: t },
305
- onSubmit: ce,
306
- onAdditionalDetails: me,
307
- onPaymentCompleted: le,
308
- onPaymentFailed: ye,
309
- onError: he,
324
+ onSubmit: ge,
325
+ onAdditionalDetails: Te,
326
+ onPaymentCompleted: ve,
327
+ onPaymentFailed: be,
328
+ onError: Pe,
310
329
  showPayButton: !1
311
330
  },
312
331
  dropInConfig: {
@@ -323,75 +342,86 @@ const Ze = (c) => {
323
342
  }
324
343
  },
325
344
  openFirstPaymentMethod: a.selected,
326
- onSelect: ({ props: { type: o } }) => {
327
- o && p("select", { paymentMethodType: o, paymentGatewayVariant: "ADYEN" });
345
+ onSelect: ({ props: { type: n } }) => {
346
+ n && p("select", { paymentMethodType: n, paymentGatewayVariant: "ADYEN" });
328
347
  },
329
348
  onReady: () => p("ready")
330
349
  }
331
350
  };
332
351
  }
333
- function re() {
352
+ function _e() {
334
353
  return Promise.all([
335
- we(),
354
+ $e(),
336
355
  import("./adyen-Bugab0JE.mjs").then((e) => e.default)
337
356
  ]);
338
357
  }
339
- async function F() {
340
- if (await Y(), P.value = void 0, !B.value) {
341
- const { payment_acceptor: e, integration: t } = a.paymentMethodOptionResponseEntry;
342
- i.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
343
- fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", e.id],
344
- paymentAcceptorId: e.id,
345
- integrationId: t.id,
346
- ...a.invoiceId ? { invoiceId: a.invoiceId } : {}
347
- });
348
- return;
349
- }
350
- if (await V(), !!y.value)
351
- try {
352
- const [e, t] = await re(), { checkoutConfig: o, dropInConfig: n } = await oe();
353
- b = await e.AdyenCheckout(o), r = new e.Dropin(b, {
354
- ...n,
355
- paymentMethodComponents: e.dropInPaymentMethodComponents
356
- }).mount(y.value), se(t), ie();
357
- } catch (e) {
358
- i.error(
359
- "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
360
- "Failed to mount Adyen web drop-in",
361
- u({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: e }),
362
- e
363
- ), h({
364
- code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
365
- message: "Failed to mount Adyen web drop-in",
366
- error: e
358
+ async function U() {
359
+ const e = ++v, t = () => e !== v;
360
+ if (!(S || x)) {
361
+ if (await Y(), g.value = void 0, !$.value) {
362
+ const { payment_acceptor: n, integration: o } = a.paymentMethodOptionResponseEntry;
363
+ s.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
364
+ fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", n.id],
365
+ paymentAcceptorId: n.id,
366
+ integrationId: o.id,
367
+ ...a.invoiceId ? { invoiceId: a.invoiceId } : {}
367
368
  });
369
+ return;
368
370
  }
371
+ if (await oe(), !(t() || !l.value))
372
+ try {
373
+ const [n, o] = await _e();
374
+ if (t()) return;
375
+ const { checkoutConfig: m, dropInConfig: i } = await he(), d = await n.AdyenCheckout(m);
376
+ if (t() || S || !l.value) return;
377
+ k = d, r = new n.Dropin(k, {
378
+ ...i,
379
+ paymentMethodComponents: n.dropInPaymentMethodComponents
380
+ }).mount(l.value), Ae(o), fe();
381
+ } catch (n) {
382
+ if (t()) return;
383
+ s.error(
384
+ "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
385
+ "Failed to mount Adyen web drop-in",
386
+ u({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: n }),
387
+ n
388
+ ), _({
389
+ code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
390
+ message: "Failed to mount Adyen web drop-in",
391
+ error: n
392
+ });
393
+ }
394
+ }
369
395
  }
370
- function U() {
371
- const e = Ye(y.value);
372
- if (je(e, R.value)) {
373
- f.value = null, V(() => f.value = e);
396
+ function J() {
397
+ const e = tt(l.value);
398
+ if (nt(e, w.value)) {
399
+ I.value = null, oe(() => I.value = e);
374
400
  return;
375
401
  }
376
- f.value = e;
402
+ I.value = e;
377
403
  }
378
- function ie() {
379
- l == null || l.disconnect(), y.value && (l = new MutationObserver(() => U()), l.observe(y.value, { childList: !0, subtree: !0 }), U());
404
+ function fe() {
405
+ f == null || f.disconnect(), l.value && (f = new MutationObserver(() => J()), f.observe(l.value, { childList: !0, subtree: !0 }), J());
380
406
  }
381
- function de() {
382
- l == null || l.disconnect(), l = void 0, f.value = null;
407
+ function Ee() {
408
+ f == null || f.disconnect(), f = void 0, I.value = null;
383
409
  }
384
410
  async function Y() {
385
- de(), r && (r.unmount(), r = null), y.value && (y.value.innerHTML = "");
411
+ Ee(), r && (r.unmount(), r = null), l.value && (l.value.innerHTML = "");
386
412
  }
387
- function se(e) {
388
- var o;
389
- const t = (o = y.value) == null ? void 0 : o.getRootNode();
390
- if (t instanceof ShadowRoot) {
391
- const n = document.createElement("style");
392
- n.textContent = e, t.appendChild(n);
393
- const d = document.createElement("style");
394
- d.textContent = `
413
+ function j(e, t, n) {
414
+ if (e.querySelector(`style[${se}="${t}"]`)) return;
415
+ const o = document.createElement("style");
416
+ o.setAttribute(se, t), o.textContent = n, e.appendChild(o);
417
+ }
418
+ function Ae(e) {
419
+ var n;
420
+ const t = (n = l.value) == null ? void 0 : n.getRootNode();
421
+ t instanceof ShadowRoot && (j(t, "sdk", e), j(
422
+ t,
423
+ "overrides",
424
+ `
395
425
  :host {
396
426
  --adyen-sdk-color-background-secondary: transparent;
397
427
  --adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
@@ -484,195 +514,219 @@ const Ze = (c) => {
484
514
  .adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
485
515
  border-color: rgb(229, 231, 235);
486
516
  }
487
- `, a.variant === "AUTHORIZE" && (d.textContent += `
517
+ `
518
+ ), a.variant === "AUTHORIZE" && j(
519
+ t,
520
+ "authorize",
521
+ `
488
522
  .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
489
523
  display: none;
490
524
  }
491
- `), t.appendChild(d);
492
- }
525
+ `
526
+ ));
493
527
  }
494
- function j(e, {
528
+ function q(e, {
495
529
  paymentMethodType: t,
496
- actions: o,
497
- logFailure: n
530
+ actions: n,
531
+ logFailure: o
498
532
  }) {
499
- if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === N) {
500
- const d = ue(e, t);
533
+ var i;
534
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === D) {
535
+ const d = Ie(e, t);
501
536
  if (!d) {
502
- n(e);
537
+ o(e);
503
538
  return;
504
539
  }
505
- r.handleAction(d), o.resolve({
540
+ p("action-required"), n.resolve({
506
541
  resultCode: e.action.adyen.result_code,
507
542
  action: d
508
543
  });
509
544
  return;
510
545
  }
511
- if (e.payment.result === "AUTHORIZED") {
512
- w.value = !0, o.resolve({ resultCode: "Authorised" });
546
+ const m = Xe(e);
547
+ if (m === "SUCCEEDED") {
548
+ L.value = !0, n.resolve({ resultCode: "Authorised" });
513
549
  return;
514
550
  }
515
- n(e), o.resolve({ resultCode: "Error" });
551
+ if (m === "UNCONFIRMED") {
552
+ O("PAYMENT_PENDING", {
553
+ paymentStatus: e.status,
554
+ paymentResult: (i = e.payment) == null ? void 0 : i.result,
555
+ paymentMethodType: t
556
+ });
557
+ return;
558
+ }
559
+ o(e), n.resolve({ resultCode: "Error" });
516
560
  }
517
- function ce(...e) {
518
- const [t, o, n] = e;
519
- a.validateOnSubmit().then((d) => {
520
- if (!d) {
521
- r == null || r.setStatus("ready"), p("invalid");
561
+ function ge(...e) {
562
+ const [t, n, o] = e;
563
+ A || (A = !0, a.validateOnSubmit().then((m) => {
564
+ if (!m) {
565
+ A = !1, r == null || r.setStatus("ready"), p("invalid");
522
566
  return;
523
567
  }
524
- const s = a.paymentMethodOptionResponseEntry.payment_acceptor.id, z = {
525
- risk_data: S(t.data.riskData),
526
- payment_method: S(t.data.paymentMethod),
527
- browser_info: S(t.data.browserInfo)
568
+ p("submitting");
569
+ const i = a.paymentMethodOptionResponseEntry.payment_acceptor.id, d = {
570
+ risk_data: G(t.data.riskData),
571
+ payment_method: G(t.data.paymentMethod),
572
+ browser_info: G(t.data.browserInfo)
528
573
  };
529
574
  if (a.variant === "AUTHORIZE") {
530
- const M = Q({
575
+ const T = ie({
531
576
  paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
532
577
  redirectUrl: window.location.href
533
578
  });
534
- ee({
535
- payment_acceptor_id: s,
579
+ me({
580
+ payment_acceptor_id: i,
536
581
  ...a.customerId ? { customer_id: a.customerId } : {},
537
- payment_gateway_variant: N,
582
+ payment_gateway_variant: D,
538
583
  adyen: {
539
- ...z,
584
+ ...d,
540
585
  store_payment_method: a.storePaymentMethod ?? (a.forceStorePaymentMethod || t.data.storePaymentMethod)
541
586
  },
542
587
  amount: a.amount,
543
588
  ...a.context ? { context: a.context } : {},
544
- return_url: M
589
+ return_url: T
545
590
  }).then(
546
- (_) => j(_, {
591
+ (h) => q(h, {
547
592
  paymentMethodType: t.data.paymentMethod.type,
548
- actions: n,
549
- logFailure: (I) => i.error(
593
+ actions: o,
594
+ logFailure: (R) => s.error(
550
595
  "PAYMENT_AUTHORIZATION_FAILED",
551
- `Failed payment authorization for payment acceptor with id ${s}`,
596
+ `Failed payment authorization for payment acceptor with id ${i}`,
552
597
  u({
553
598
  reason: "PAYMENT_AUTHORIZATION_REJECTED",
554
599
  paymentMethodType: t.data.paymentMethod.type,
555
- cause: I
600
+ cause: R
556
601
  }),
557
- I
602
+ R
558
603
  )
559
604
  })
560
- ).catch((_) => {
561
- i.error(
605
+ ).catch((h) => {
606
+ if (s.error(
562
607
  "PAYMENT_AUTHORIZATION_FAILED",
563
- `Failed payment authorization for payment acceptor with id ${s}`,
608
+ `Failed payment authorization for payment acceptor with id ${i}`,
564
609
  u({
565
610
  reason: "PAYMENT_AUTHORIZATION_FAILED",
566
611
  paymentMethodType: t.data.paymentMethod.type,
567
- cause: _
612
+ cause: h
568
613
  }),
569
- _
570
- ), n.resolve({ resultCode: "Error" });
614
+ h
615
+ ), Qe(h)) {
616
+ O(
617
+ "PAYMENT_AUTHORIZATION_UNANSWERED",
618
+ { paymentMethodType: t.data.paymentMethod.type },
619
+ h
620
+ );
621
+ return;
622
+ }
623
+ o.resolve({ resultCode: "Error" });
571
624
  });
572
625
  return;
573
626
  }
574
627
  if (a.variant === "TOKENIZE") {
575
- const M = Q({
628
+ const T = ie({
576
629
  paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
577
630
  redirectUrl: window.location.href
578
631
  });
579
632
  if (!a.customerId) {
580
- i.error(
633
+ s.error(
581
634
  "TOKENIZATION_FAILED",
582
- `Missing customer id for payment acceptor with id ${s}`,
635
+ `Missing customer id for payment acceptor with id ${i}`,
583
636
  u({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
584
- ), h({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
637
+ ), _({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
585
638
  return;
586
639
  }
587
- ae({
640
+ ye({
588
641
  customer_id: a.customerId,
589
- payment_acceptor_id: s,
590
- payment_gateway_variant: N,
591
- adyen: z,
592
- return_url: M
642
+ payment_acceptor_id: i,
643
+ payment_gateway_variant: D,
644
+ adyen: d,
645
+ return_url: T
593
646
  }).then(
594
- (_) => j(_, {
647
+ (h) => q(h, {
595
648
  paymentMethodType: t.data.paymentMethod.type,
596
- actions: n,
597
- logFailure: (I) => i.error(
649
+ actions: o,
650
+ logFailure: (R) => s.error(
598
651
  "TOKENIZATION_FAILED",
599
- `Tokenization failed for payment acceptor with id ${s}`,
652
+ `Tokenization failed for payment acceptor with id ${i}`,
600
653
  u({
601
654
  reason: "TOKENIZATION_REJECTED",
602
655
  paymentMethodType: t.data.paymentMethod.type,
603
- cause: I
656
+ cause: R
604
657
  }),
605
- I
658
+ R
606
659
  )
607
660
  })
608
- ).catch((_) => {
609
- i.error(
661
+ ).catch((h) => {
662
+ s.error(
610
663
  "TOKENIZATION_FAILED",
611
- `Tokenization failed for payment acceptor with id ${s}`,
664
+ `Tokenization failed for payment acceptor with id ${i}`,
612
665
  u({
613
666
  reason: "TOKENIZATION_FAILED",
614
667
  paymentMethodType: t.data.paymentMethod.type,
615
- cause: _
668
+ cause: h
616
669
  }),
617
- _
618
- ), n.resolve({ resultCode: "Error" });
670
+ h
671
+ ), o.resolve({ resultCode: "Error" });
619
672
  });
620
673
  }
621
- }).catch((d) => {
622
- i.error(
674
+ }).catch((m) => {
675
+ s.error(
623
676
  "INTEGRATION_ERROR",
624
677
  "Unhandled error in payment submission flow",
625
- u({ reason: "ADYEN_SUBMISSION_FLOW_FAILED", cause: d }),
626
- d
627
- );
628
- });
678
+ u({ reason: "ADYEN_SUBMISSION_FLOW_FAILED", cause: m }),
679
+ m
680
+ ), A = !1, r == null || r.setStatus("ready"), p("invalid");
681
+ }));
629
682
  }
630
- function ue(e, t) {
683
+ function Ie(e, t) {
631
684
  if (e.status !== "ACTION_REQUIRED")
632
685
  return;
633
- const o = e.action;
634
- if (o.payment_gateway_variant != "ADYEN")
686
+ const n = e.action;
687
+ if (n.payment_gateway_variant != "ADYEN")
635
688
  return;
636
- const n = o.adyen;
689
+ const o = n.adyen;
637
690
  return {
638
- paymentMethodType: (n == null ? void 0 : n.payment_method_type) ?? t,
639
- method: o.method,
640
- url: o.url,
641
- data: o.data,
642
- type: n == null ? void 0 : n.action_type,
643
- paymentData: n == null ? void 0 : n.payment_data,
644
- sdkData: n == null ? void 0 : n.sdk_data
691
+ paymentMethodType: (o == null ? void 0 : o.payment_method_type) ?? t,
692
+ method: n.method,
693
+ url: n.url,
694
+ data: n.data,
695
+ type: o == null ? void 0 : o.action_type,
696
+ paymentData: o == null ? void 0 : o.payment_data,
697
+ sdkData: o == null ? void 0 : o.sdk_data
645
698
  };
646
699
  }
647
- function me(...e) {
648
- const [t] = e, o = t.data.details, n = t.data.paymentData;
700
+ function Te(...e) {
701
+ const [t, , n] = e, o = t.data.details, m = t.data.paymentData;
649
702
  if (a.paymentMethodOptionResponseEntry.payment_acceptor.id) {
650
- Z({
703
+ Q({
651
704
  // For the moment: Adyen gives a null value back which is not accepted by Solvimon API, so filter that out
652
- detailsResult: o ? pe(o) : void 0,
653
- paymentDataResult: n,
654
- paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id
705
+ detailsResult: o ? Ne(o) : void 0,
706
+ paymentDataResult: m,
707
+ paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
708
+ actions: n
655
709
  });
656
710
  return;
657
711
  }
658
- i.error(
712
+ s.error(
659
713
  "PAYMENT_ACCEPTOR_MISSING",
660
714
  "Additional details arrived without a payment acceptor id",
661
715
  u({ reason: "PAYMENT_ACCEPTOR_MISSING" })
662
- ), h({
716
+ ), _({
663
717
  code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
664
718
  message: "Payment failed",
665
719
  error: e
666
720
  });
667
721
  }
668
- function pe(e) {
722
+ function Ne(e) {
669
723
  return Object.fromEntries(
670
724
  Object.entries(e).filter(([, t]) => t != null)
671
725
  );
672
726
  }
673
- function ye(...e) {
727
+ function be(...e) {
674
728
  const [t] = e;
675
- i.error(
729
+ s.error(
676
730
  "ADYEN_PAYMENT_FAILED",
677
731
  "Adyen reported the payment as failed",
678
732
  u({
@@ -680,15 +734,19 @@ const Ze = (c) => {
680
734
  extra: { resultCode: t == null ? void 0 : t.resultCode }
681
735
  }),
682
736
  t
683
- ), h({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
737
+ ), _({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
684
738
  }
685
- function le(...e) {
739
+ function ve(...e) {
686
740
  const [, t] = e;
687
- t == null || t.unmount(), p("payment-success");
741
+ t == null || t.unmount(), W();
688
742
  }
689
- function he(...e) {
690
- const [t, o] = e;
691
- t.name !== "CANCEL" && (i.error(
743
+ function Pe(...e) {
744
+ const [t, n] = e;
745
+ if (t.name === "CANCEL") {
746
+ A = !1, p("invalid");
747
+ return;
748
+ }
749
+ s.error(
692
750
  "INTEGRATION_ERROR",
693
751
  "The Adyen drop-in reported an error",
694
752
  u({
@@ -697,122 +755,162 @@ const Ze = (c) => {
697
755
  extra: { adyenErrorName: t.name }
698
756
  }),
699
757
  t
700
- ), h({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), o == null || o.unmount());
758
+ ), _({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), n == null || n.unmount();
701
759
  }
702
- function Z({
760
+ function Q({
703
761
  detailsResult: e,
704
762
  threeDSResult: t,
705
- redirectResult: o,
706
- paymentDataResult: n,
707
- paymentAcceptorId: d
763
+ redirectResult: n,
764
+ paymentDataResult: o,
765
+ paymentAcceptorId: m,
766
+ actions: i
708
767
  }) {
709
- te({
710
- paymentAcceptorId: d,
711
- paymentGatewayVariant: N,
768
+ return pe({
769
+ paymentAcceptorId: m,
770
+ paymentGatewayVariant: D,
712
771
  adyen: {
713
772
  ...e ? { details: e } : {},
714
- ...o ? { redirect_result: o } : {},
773
+ ...n ? { redirect_result: n } : {},
715
774
  ...t ? { threeds_result: t } : {},
716
- ...n ? { payment_data: n } : {}
775
+ ...o ? { payment_data: o } : {}
717
776
  }
718
- }).then((s) => {
719
- if (s.payment_status === "FAILURE") {
720
- i.error(
721
- "PAYMENT_DETAILS_REJECTED",
722
- "Payment details returned a failed payment",
723
- u({
724
- reason: "PAYMENT_DETAILS_REJECTED",
725
- paymentAcceptorId: d,
726
- extra: { paymentStatus: s.payment_status }
727
- })
728
- ), h({
729
- code: "AUTHORIZATION_FAILED",
730
- message: "Failed getting payment details",
731
- error: s
777
+ }).then((d) => {
778
+ i || (P = void 0);
779
+ const T = qe(d);
780
+ if (T === "SUCCEEDED") {
781
+ i ? i.resolve({ resultCode: "Authorised" }) : W();
782
+ return;
783
+ }
784
+ if (T === "UNCONFIRMED") {
785
+ O("PAYMENT_DETAILS_UNCONFIRMED", {
786
+ paymentStatus: d.payment_status
732
787
  });
733
788
  return;
734
789
  }
735
- if (s.payment_status === "SUCCESS") {
736
- p("payment-success");
790
+ if (s.error(
791
+ "PAYMENT_DETAILS_REJECTED",
792
+ "Payment details returned a failed payment",
793
+ u({
794
+ reason: "PAYMENT_DETAILS_REJECTED",
795
+ paymentAcceptorId: m,
796
+ extra: { paymentStatus: d.payment_status }
797
+ })
798
+ ), i) {
799
+ i.resolve({ resultCode: "Refused" });
737
800
  return;
738
801
  }
739
- }).catch((s) => {
740
- i.error(
802
+ _({
803
+ code: "AUTHORIZATION_FAILED",
804
+ message: "Failed getting payment details",
805
+ error: d
806
+ });
807
+ }).catch((d) => {
808
+ if (s.error(
741
809
  "PAYMENT_DETAILS_CALL_FAILED",
742
810
  "Failed fetching payment details",
743
811
  u({
744
812
  reason: "PAYMENT_DETAILS_CALL_FAILED",
745
- paymentAcceptorId: d,
746
- cause: s
813
+ paymentAcceptorId: m,
814
+ cause: d
747
815
  }),
748
- s
749
- ), h({
816
+ d
817
+ ), i) {
818
+ O("PAYMENT_DETAILS_CALL_FAILED", {}, d);
819
+ return;
820
+ }
821
+ B(), _({
750
822
  code: "PAYMENT_DETAILS_CALL_FAILED",
751
823
  message: "Failed fetching payment details",
752
- error: s
824
+ error: d
753
825
  });
754
826
  });
755
827
  }
756
- function _e() {
757
- const e = J(Ce), t = J(Le);
828
+ async function Oe() {
829
+ const e = ze(
830
+ a.paymentMethodOptionResponseEntry.payment_acceptor.id
831
+ );
758
832
  if (e) {
759
- if (!t) {
760
- i.error(
833
+ if (Ge(), e.kind === "MISSING_PAYMENT_ACCEPTOR") {
834
+ s.error(
761
835
  "INVALID_REDIRECT_RESULT",
762
836
  "Redirect result is set but payment acceptor id is missing",
763
837
  u({ reason: "INVALID_REDIRECT_RESULT" })
764
- ), h({
838
+ ), _({
765
839
  code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
766
840
  message: "Redirect result is set but payment acceptor id is missing"
767
841
  });
768
842
  return;
769
843
  }
770
- Z({
771
- paymentAcceptorId: t,
772
- detailsResult: {
773
- redirectResult: decodeURI(e)
774
- }
775
- });
844
+ if (e.kind === "INVALID") {
845
+ O("INVALID_REDIRECT_RESULT");
846
+ return;
847
+ }
848
+ P = e.redirectResult, await X();
849
+ }
850
+ }
851
+ async function X() {
852
+ if (P) {
853
+ x = !0;
854
+ try {
855
+ await Q({
856
+ paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
857
+ detailsResult: { redirectResult: P }
858
+ });
859
+ } finally {
860
+ x = !1;
861
+ }
862
+ }
863
+ }
864
+ async function ee() {
865
+ const e = g.value, t = v + 1;
866
+ await U(), e && t === v && (g.value = e);
867
+ }
868
+ async function Re() {
869
+ if (g.value = void 0, !P) {
870
+ await U();
871
+ return;
776
872
  }
873
+ S = !1, await X(), await ee();
777
874
  }
778
- return Ee(() => {
779
- F(), _e();
780
- }), fe(() => {
781
- Y();
782
- }), ge(
875
+ return Me(async () => {
876
+ await Oe(), await ee();
877
+ }), De(() => {
878
+ v++, Y();
879
+ }), ke(
783
880
  () => a.paymentMethodOptionResponseEntry,
784
881
  (e, t) => {
785
- Ne(e, t) || F();
882
+ Le(e, t) || U();
786
883
  },
787
884
  { deep: !0 }
788
- ), (e, t) => (g(), C(Ae, null, [
789
- w.value ? (g(), k(Pe, {
885
+ ), (e, t) => (N(), K(Se, null, [
886
+ L.value ? (N(), Z(Fe, {
790
887
  key: 0,
791
888
  variant: c.variant,
792
889
  redirecting: c.redirectsOnSuccess
793
- }, null, 8, ["variant", "redirecting"])) : P.value ? (g(), k(ve, {
890
+ }, null, 8, ["variant", "redirecting"])) : g.value ? (N(), Z(Be, {
794
891
  key: 1,
795
- error: P.value
796
- }, null, 8, ["error"])) : D("", !0),
797
- B.value ? (g(), C("div", {
892
+ error: g.value,
893
+ onRetry: Re
894
+ }, null, 8, ["error"])) : z("", !0),
895
+ $.value ? (N(), K("div", {
798
896
  key: 2,
799
897
  ref_key: "dropInContainerRef",
800
- ref: y
801
- }, null, 512)) : D("", !0),
802
- f.value ? (g(), k(Ie, {
898
+ ref: l
899
+ }, null, 512)) : z("", !0),
900
+ I.value ? (N(), Z(Ce, {
803
901
  key: 3,
804
- to: f.value
902
+ to: I.value
805
903
  }, [
806
- Te("div", {
904
+ we("div", {
807
905
  ref_key: "sepaNoticeRef",
808
- ref: R
906
+ ref: w
809
907
  }, [
810
- L(Ge, { "billing-entity-name": c.billingEntityName }, null, 8, ["billing-entity-name"])
908
+ H(rt, { "billing-entity-name": c.billingEntityName }, null, 8, ["billing-entity-name"])
811
909
  ], 512)
812
- ], 8, ["to"])) : D("", !0)
910
+ ], 8, ["to"])) : z("", !0)
813
911
  ], 64));
814
912
  }
815
913
  });
816
914
  export {
817
- at as default
915
+ _t as default
818
916
  };