@solvimon/solvimon-web 0.1.0-alpha.22 → 0.1.0-alpha.24

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 (218) hide show
  1. package/README.md +44 -0
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs} +6 -6
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js} +1 -1
  4. package/dist/Alert.vue.es-RyK53a2P.js +1 -0
  5. package/dist/Alert.vue.es-lIiAWf2S.mjs +146 -0
  6. package/dist/{Avatar.vue.es-DNJ-jexx.mjs → Avatar.vue.es-DzjFvLuK.mjs} +1 -1
  7. package/dist/{Avatar.vue.es-D42J_izE.js → Avatar.vue.es-nr8srGuK.js} +1 -1
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs} +4 -4
  9. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js → BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js} +1 -1
  10. package/dist/{Button.vue.es-Dz-2L8dJ.mjs → Button.vue.es-PbJFK8z7.mjs} +1 -1
  11. package/dist/{Button.vue.es-M_jXZda4.js → Button.vue.es-TCF-bvDF.js} +1 -1
  12. package/dist/Checkout.entry.ce-D8O4qJ24.js +2 -0
  13. package/dist/Checkout.entry.ce-DHFx5Vnb.mjs +3900 -0
  14. package/dist/{Chip.vue.es-G8doKsZb.js → Chip.vue.es-CAoisngJ.js} +1 -1
  15. package/dist/{Chip.vue.es-DMK9C78d.mjs → Chip.vue.es-DpcOM3Ai.mjs} +2 -2
  16. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +38 -0
  17. package/dist/ContentWithAsideLayout-RSdKXqAf.js +1 -0
  18. package/dist/{ContextMenu.vue.es-B3Rz6Ojk.js → ContextMenu.vue.es-kzZ3JJHG.js} +1 -1
  19. package/dist/{ContextMenu.vue.es-CzkkNoJG.mjs → ContextMenu.vue.es-tAuFp-6i.mjs} +4 -4
  20. package/dist/{CustomerBillingInformation.vue.es-Db6bN2RZ.mjs → CustomerBillingInformation.vue.es-BQSl9q6W.mjs} +2 -2
  21. package/dist/{CustomerBillingInformation.vue.es-BmtU9Pk0.js → CustomerBillingInformation.vue.es-Nac6HgLo.js} +1 -1
  22. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js} +1 -1
  23. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs} +5 -5
  24. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs} +15 -15
  25. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +1 -0
  26. package/dist/{DividerText.vue.es-IK2fns6f.mjs → DividerText.vue.es-CSE7a-T0.mjs} +1 -1
  27. package/dist/{DividerText.vue.es-D-QxT2OD.js → DividerText.vue.es-LJ2kZakb.js} +1 -1
  28. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs} +4 -4
  29. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js} +1 -1
  30. package/dist/ErrorNotification.vue.es-BF6swP7o.js +1 -0
  31. package/dist/{ErrorNotification.vue.es-BGckEwHf.mjs → ErrorNotification.vue.es-CVUuIt8Z.mjs} +2 -2
  32. package/dist/IconButton.vue.es-CB1lIPao.js +1 -0
  33. package/dist/IconButton.vue.es-DGflbWFk.mjs +56 -0
  34. package/dist/{IconTitle.vue.es-BmX68uJx.mjs → IconTitle.vue.es-BsdjyGlQ.mjs} +3 -3
  35. package/dist/{IconTitle.vue.es-CmR2xoeu.js → IconTitle.vue.es-CMO8EyQl.js} +1 -1
  36. package/dist/{Input.vue.es-BGPELaZU.mjs → Input.vue.es-BFbiFXsU.mjs} +2 -2
  37. package/dist/{Input.vue.es-CTOrmrcB.js → Input.vue.es-CREdT4nB.js} +1 -1
  38. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js} +1 -1
  39. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs} +2 -2
  40. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs} +2 -2
  41. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js} +1 -1
  42. package/dist/{InvoiceSummary.vue.es-hpG8Tq1D.js → InvoiceSummary.vue.es-BOnvORpf.js} +1 -1
  43. package/dist/{InvoiceSummary.vue.es-BWLiwlNs.mjs → InvoiceSummary.vue.es-JtOIQ6SJ.mjs} +7 -7
  44. package/dist/{Modal.vue.es-BD4vUaOQ.js → Modal.vue.es-BbdtdxsO.js} +1 -1
  45. package/dist/{Modal.vue.es-B_G8NQS2.mjs → Modal.vue.es-jT61xK_A.mjs} +5 -5
  46. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js +1 -0
  47. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs +294 -0
  48. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs} +3 -3
  49. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js} +1 -1
  50. package/dist/{PaymentHistoryBlock-DSHW_eW1.js → PaymentHistoryBlock-Dw2wOiAI.js} +1 -1
  51. package/dist/{PaymentHistoryBlock-ComJzB3H.mjs → PaymentHistoryBlock-quvnCSFV.mjs} +1 -1
  52. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs} +4 -4
  53. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js} +1 -1
  54. package/dist/{PaymentIntegrationForm-CH5B6BY5.mjs → PaymentIntegrationForm-CQjUZi22.mjs} +1 -1
  55. package/dist/{PaymentIntegrationForm-CwfCLnKt.js → PaymentIntegrationForm-D1oJREmH.js} +1 -1
  56. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +1 -0
  57. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs} +43 -40
  58. package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +98 -0
  59. package/dist/PaymentIntegrationFormAdyen-CyZk9ofV.mjs +798 -0
  60. package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +102 -0
  61. package/dist/{PaymentIntegrationFormStripe-CBsXDuhy.mjs → PaymentIntegrationFormStripe-D-GaLHwc.mjs} +251 -179
  62. package/dist/{PaymentMethod.vue.es-DkQdPXfk.mjs → PaymentMethod.vue.es-C0j580g7.mjs} +3 -3
  63. package/dist/{PaymentMethod.vue.es-D18g-QB4.js → PaymentMethod.vue.es-CXV_ThBY.js} +1 -1
  64. package/dist/{PaymentMethodForm-CpIZKfPH.mjs → PaymentMethodForm-Bf2Ps6eV.mjs} +1 -1
  65. package/dist/{PaymentMethodForm-DK8ntFA0.js → PaymentMethodForm-CDV5LR8i.js} +1 -1
  66. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs} +6 -6
  67. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js} +1 -1
  68. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs} +6 -6
  69. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js} +1 -1
  70. package/dist/PlanCustomizationEditor-0kEXoOcM.js +1 -0
  71. package/dist/{PlanCustomizationEditor-0zCXN-cv.mjs → PlanCustomizationEditor-Dv69xPbX.mjs} +9 -9
  72. package/dist/{PricingGroupRangeInput.vue.es-QnpfHxaY.js → PricingGroupRangeInput.vue.es-BchXhunH.js} +2 -2
  73. package/dist/{PricingGroupRangeInput.vue.es-8_5nfZDI.mjs → PricingGroupRangeInput.vue.es-CP7-dmxS.mjs} +4 -4
  74. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs} +5 -5
  75. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js} +1 -1
  76. package/dist/RadioGroupExtended.vue.es-Cf5R1P9a.js +1 -0
  77. package/dist/{RadioGroupExtended.vue.es-C92xlCFQ.mjs → RadioGroupExtended.vue.es-_QMReyZ8.mjs} +3 -3
  78. package/dist/{Section.vue.es-Btff-cLY.js → Section.vue.es-CBZx5x53.js} +1 -1
  79. package/dist/{Section.vue.es-DQ5H7mqW.mjs → Section.vue.es-KRsHeFoT.mjs} +1 -1
  80. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs} +6 -6
  81. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js} +1 -1
  82. package/dist/{SubscriptionSchedules-pzNsego6.js → SubscriptionSchedules-1ikoGncQ.js} +1 -1
  83. package/dist/{SubscriptionSchedules-Dc0rUnnf.mjs → SubscriptionSchedules-B6b6xf-E.mjs} +1 -1
  84. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +1 -0
  85. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs} +12 -12
  86. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js} +1 -1
  87. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs} +2 -2
  88. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js} +1 -1
  89. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs} +6 -6
  90. package/dist/{TooltipParagraph.vue.es-BaqCDjl8.js → TooltipParagraph.vue.es-7IQdU3Tf.js} +1 -1
  91. package/dist/{TooltipParagraph.vue.es-CIedcXGT.mjs → TooltipParagraph.vue.es-nGFfHF1A.mjs} +1 -1
  92. package/dist/{TrialChip.vue.es-BzNI94k0.js → TrialChip.vue.es-DhC5Bpmy.js} +1 -1
  93. package/dist/{TrialChip.vue.es-DkBuMNr_.mjs → TrialChip.vue.es-eKgO6an3.mjs} +2 -2
  94. package/dist/{cn.es-BGqYNPM3.mjs → cn.es-BD7Afj5Q.mjs} +2 -2
  95. package/dist/{cn.es-CvmLj7KH.js → cn.es-BLE3T5Rx.js} +1 -1
  96. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  97. package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
  98. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  99. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +7 -7
  100. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  101. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +5 -5
  102. package/dist/components/Invoice/Invoice.cjs +1 -1
  103. package/dist/components/Invoice/Invoice.mjs +10 -10
  104. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  105. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  106. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  107. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +8 -8
  108. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  109. package/dist/components/InvoicesList/InvoicesList.mjs +4 -4
  110. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  111. package/dist/components/PaymentHistory/PaymentHistory.mjs +9 -9
  112. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  113. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +6 -6
  114. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  115. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
  116. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  117. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +6 -6
  118. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  119. package/dist/components/WalletBalances/WalletBalances.mjs +4 -4
  120. package/dist/core/index.cjs +1 -1
  121. package/dist/core/index.mjs +26 -23
  122. package/dist/customElements-CSzbVZIH.js +1211 -0
  123. package/dist/{customElements-CSE7dwUr.mjs → customElements-DT1YyL4O.mjs} +663 -626
  124. package/dist/{customer-Dsq-Moea.js → customer-CJonIvSm.js} +1 -1
  125. package/dist/{customer-5krPxZ8i.mjs → customer-Cq4fF__H.mjs} +1 -1
  126. package/dist/{de-DE-DsFtpLsx.mjs → de-DE-CyvjSD9b.mjs} +26 -2
  127. package/dist/{de-DE-C3DzP1nj.js → de-DE-DXsDvO5y.js} +1 -1
  128. package/dist/{en-US-X_pSFsNm.js → en-US-DHdI11k9.js} +1 -1
  129. package/dist/{en-US-DvkvbV0p.mjs → en-US-xQrWj8qI.mjs} +24 -0
  130. package/dist/index.cjs +1 -1
  131. package/dist/index.mjs +1 -1
  132. package/dist/{invoices-DRgfpkJ6.mjs → invoices-CVZOfEOY.mjs} +1 -1
  133. package/dist/{invoices-xOV2YaEV.js → invoices-EamWI_jz.js} +1 -1
  134. package/dist/{it-IT-TE7oqvXa.mjs → it-IT-C09oObBM.mjs} +26 -2
  135. package/dist/{it-IT-YBtHAao1.js → it-IT-CcRIzP1A.js} +1 -1
  136. package/dist/{nl-NL-C8wnyKju.js → nl-NL-5PrgQl8q.js} +1 -1
  137. package/dist/{nl-NL-Di3-JArV.mjs → nl-NL-BhNND_yi.mjs} +24 -0
  138. package/dist/paymentFailure-Bh60UhxA.mjs +47 -0
  139. package/dist/paymentFailure-Cki8c5BX.js +1 -0
  140. package/dist/{paymentMethods-CRDIw9lz.js → paymentMethods-Bwym8l9a.js} +1 -1
  141. package/dist/{paymentMethods-PmkHYomw.mjs → paymentMethods-By1SebnO.mjs} +1 -1
  142. package/dist/{payments-Dvqh6CGW.mjs → payments-BYZLQTJ-.mjs} +1 -1
  143. package/dist/{payments-jAgXhdp_.js → payments-Dnjg9Se4.js} +1 -1
  144. package/dist/screens/Checkout/Checkout.cjs +1 -1
  145. package/dist/screens/Checkout/Checkout.mjs +2 -2
  146. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  147. package/dist/screens/CustomerOverview/CustomerOverview.mjs +21 -21
  148. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  149. package/dist/screens/PayInvoice/PayInvoice.mjs +131 -127
  150. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  151. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +11 -11
  152. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  153. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +21 -21
  154. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  155. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
  156. package/dist/sessionReference-3h-6FdrC.mjs +43 -0
  157. package/dist/sessionReference-m_6Rp4X1.js +1 -0
  158. package/dist/subscriptions-BKER9RUc.js +1 -0
  159. package/dist/{subscriptions-XDyI2Cqm.mjs → subscriptions-Gj3KgCZz.mjs} +2 -2
  160. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +8 -0
  161. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +2 -0
  162. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +13 -2
  163. package/dist/types/services/portals.types.d.ts +2 -0
  164. package/dist/types/services/requests.types.d.ts +2 -0
  165. package/dist/types/types/errors.d.ts +5 -0
  166. package/dist/{url-DwiuKYpu.mjs → url-TNRgVI8A.mjs} +3 -2
  167. package/dist/url-vloPOiXd.js +1 -0
  168. package/dist/{useActionDispatchProvider-CNAuaHdm.js → useActionDispatchProvider-DDHrhy3i.js} +1 -1
  169. package/dist/{useActionDispatchProvider-B8-oycQk.mjs → useActionDispatchProvider-MjTckd4f.mjs} +1 -1
  170. package/dist/{useCustomer-DSx-wN-6.js → useCustomer-BW0DBEJh.js} +1 -1
  171. package/dist/{useCustomer-CP8eWUZV.mjs → useCustomer-CxnF7r8Z.mjs} +1 -1
  172. package/dist/{useCustomerFormLabels-TVTgy0MT.js → useCustomerFormLabels-C773h3J0.js} +1 -1
  173. package/dist/{useCustomerFormLabels-DW6jnDYH.mjs → useCustomerFormLabels-zPc8QrwJ.mjs} +5 -5
  174. package/dist/{useExperimentalFeature-CC-DrIcL.js → useExperimentalFeature-9teNYGuP.js} +1 -1
  175. package/dist/{useExperimentalFeature-BvE_EOX-.mjs → useExperimentalFeature-NsSDg-e3.mjs} +1 -1
  176. package/dist/{useInvoiceData-CRRPdXc6.js → useInvoiceData-DvV2AsgC.js} +1 -1
  177. package/dist/{useInvoiceData-D8ds05CX.mjs → useInvoiceData-GQwk6fl4.mjs} +2 -2
  178. package/dist/{useInvoicesList-SJU5YWBQ.mjs → useInvoicesList-CGmFSQSg.mjs} +7 -7
  179. package/dist/{useInvoicesList-DIfQcvER.js → useInvoicesList-Xnth6s6U.js} +1 -1
  180. package/dist/{useLoadInitialData-MUljS38K.mjs → useLoadInitialData-BvvaWeAe.mjs} +1 -1
  181. package/dist/{useLoadInitialData-DsabgMLZ.js → useLoadInitialData-Cjkc70u-.js} +1 -1
  182. package/dist/{usePaymentMethodAvailability-D0NUanyF.mjs → usePaymentMethodAvailability-BWaaj3N3.mjs} +4 -4
  183. package/dist/{usePaymentMethodAvailability-Bt7P9InI.js → usePaymentMethodAvailability-DKyscbom.js} +1 -1
  184. package/dist/{usePaymentMethodOptions-cT1o-BA1.js → usePaymentMethodOptions-DuXKS36F.js} +1 -1
  185. package/dist/{usePaymentMethodOptions-B7JYkGsw.mjs → usePaymentMethodOptions-l-wVAmIW.mjs} +1 -1
  186. package/dist/{usePaymentMethods-DNVw2eVg.js → usePaymentMethods-BDFVB-kK.js} +1 -1
  187. package/dist/{usePaymentMethods-CpzqXQUT.mjs → usePaymentMethods-DvQVnsSV.mjs} +1 -1
  188. package/dist/{usePayments-D9Eo-uBk.js → usePayments-CIJocDhR.js} +1 -1
  189. package/dist/{usePayments-Gx9kBvNB.mjs → usePayments-D_dyuf6S.mjs} +6 -6
  190. package/dist/{usePortal-DsebXdhx.js → usePortal-BU4ibdWq.js} +1 -1
  191. package/dist/{usePortal-3VCZwSUE.mjs → usePortal-Br5lYuPT.mjs} +1 -1
  192. package/dist/{useSubscription-DnL1wVh1.mjs → useSubscription-CqRae2I9.mjs} +1 -1
  193. package/dist/{useSubscription-K_gP9TeX.js → useSubscription-DRBUt9H5.js} +1 -1
  194. package/dist/{useTimePeriod.es-DMtKzcoB.mjs → useTimePeriod.es-BxIGnCAP.mjs} +1 -1
  195. package/dist/{useTimePeriod.es-CmltiTE-.js → useTimePeriod.es-DDos3-EH.js} +1 -1
  196. package/package.json +2 -1
  197. package/dist/Checkout.entry.ce-B5-0AM67.mjs +0 -3747
  198. package/dist/Checkout.entry.ce-C52gkrNZ.js +0 -1
  199. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +0 -32
  200. package/dist/ContentWithAsideLayout-C6yMIVJF.js +0 -1
  201. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +0 -1
  202. package/dist/ErrorNotification.vue.es-Cd2UKPAz.js +0 -1
  203. package/dist/IconButton.vue.es-BTAkuFsm.js +0 -1
  204. package/dist/IconButton.vue.es-C4dQEQAc.mjs +0 -198
  205. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs +0 -144
  206. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js +0 -1
  207. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js +0 -1
  208. package/dist/PaymentIntegrationFormAdyen-DfN7cPYZ.mjs +0 -621
  209. package/dist/PaymentIntegrationFormAdyen-Q48aDXR7.js +0 -98
  210. package/dist/PaymentIntegrationFormStripe-BSEqarl7.js +0 -102
  211. package/dist/PlanCustomizationEditor-XpofGULc.js +0 -1
  212. package/dist/RadioGroupExtended.vue.es-Cb1iD73r.js +0 -1
  213. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +0 -1
  214. package/dist/component-5wqcK7yz.mjs +0 -8
  215. package/dist/component-B7ZDyqBp.js +0 -1
  216. package/dist/customElements-Vox1PB6G.js +0 -1211
  217. package/dist/subscriptions-fJcj88X9.js +0 -1
  218. package/dist/url-BNKStNY9.js +0 -1
@@ -0,0 +1,798 @@
1
+ import { defineComponent as W, computed as N, openBlock as A, createElementBlock as S, createVNode as C, unref as G, withCtx as K, createTextVNode as H, toDisplayString as O, ref as I, onMounted as Ee, onBeforeUnmount as fe, watch as Ae, Fragment as ge, createBlock as M, createCommentVNode as k, Teleport as Ie, createElementVNode as Te, nextTick as V } from "vue";
2
+ import { a as Ne } from "./useService-Bh47bllz.mjs";
3
+ import { u as q, _ as $, b as be } from "./customElements-DT1YyL4O.mjs";
4
+ import { _ as Pe, a as ve } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs";
5
+ import { c as Re } from "./payments-BYZLQTJ-.mjs";
6
+ import { g as J } from "./url-TNRgVI8A.mjs";
7
+ import { c as Oe } from "./paymentMethods-By1SebnO.mjs";
8
+ import { g as Me, t as ke, a as De, b as Se, R as Ce, P as Le, c as D, d as Q } from "./adyen-CvsH5fok.mjs";
9
+ import { l as we } from "./adyenSdk-B01MB9Ia.mjs";
10
+ import { u as xe } from "./useExperimentalFeature-NsSDg-e3.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(d) {
14
+ return (d == null ? void 0 : d.querySelector(Ue)) ?? null;
15
+ }
16
+ function je(d, u) {
17
+ return !!d && !!u && !d.contains(u);
18
+ }
19
+ const Ze = (d) => {
20
+ let u = {};
21
+ return d === "TOKENIZE" && (u = {
22
+ "en-US": {
23
+ payButton: "Add payment method",
24
+ confirmPurchase: "Add payment method"
25
+ },
26
+ "fr-FR": {
27
+ payButton: "Ajouter un moyen de paiement",
28
+ confirmPurchase: "Ajouter un moyen de paiement"
29
+ },
30
+ "de-DE": {
31
+ payButton: "Zahlungsmethode hinzufügen",
32
+ confirmPurchase: "Zahlungsmethode hinzufügen"
33
+ },
34
+ "it-IT": {
35
+ payButton: "Aggiungi metodo di pagamento",
36
+ confirmPurchase: "Aggiungi metodo di pagamento"
37
+ },
38
+ "es-ES": {
39
+ payButton: "Añadir método de pago",
40
+ confirmPurchase: "Añadir método de pago"
41
+ },
42
+ "nl-NL": {
43
+ payButton: "Betaalmethode toevoegen",
44
+ confirmPurchase: "Betaalmethode toevoegen"
45
+ },
46
+ "pt-BR": {
47
+ payButton: "Adicionar método de pagamento",
48
+ confirmPurchase: "Adicionar método de pagamento"
49
+ },
50
+ "pt-PT": {
51
+ payButton: "Adicionar método de pagamento",
52
+ confirmPurchase: "Adicionar método de pagamento"
53
+ },
54
+ "pl-PL": {
55
+ payButton: "Dodaj metodę płatności",
56
+ confirmPurchase: "Dodaj metodę płatności"
57
+ },
58
+ "ru-RU": {
59
+ payButton: "Добавить способ оплаты",
60
+ confirmPurchase: "Добавить способ оплаты"
61
+ },
62
+ "sv-SE": {
63
+ payButton: "Lägg till betalningsmetod",
64
+ confirmPurchase: "Lägg till betalningsmetod"
65
+ },
66
+ "da-DK": {
67
+ payButton: "Tilføj betalingsmetode",
68
+ confirmPurchase: "Tilføj betalingsmetode"
69
+ },
70
+ "fi-FI": {
71
+ payButton: "Lisää maksutapa",
72
+ confirmPurchase: "Lisää maksutapa"
73
+ },
74
+ "no-NO": {
75
+ payButton: "Legg til betalingsmetode",
76
+ confirmPurchase: "Legg til betalingsmetode"
77
+ },
78
+ "cs-CZ": {
79
+ payButton: "Přidat platební metodu",
80
+ confirmPurchase: "Přidat platební metodu"
81
+ },
82
+ "hu-HU": {
83
+ payButton: "Fizetési mód hozzáadása",
84
+ confirmPurchase: "Fizetési mód hozzáadása"
85
+ },
86
+ "ro-RO": {
87
+ payButton: "Adăugați metodă de plată",
88
+ confirmPurchase: "Adăugați metodă de plată"
89
+ },
90
+ "ja-JP": {
91
+ payButton: "支払い方法を追加",
92
+ confirmPurchase: "支払い方法を追加"
93
+ },
94
+ "ko-KR": {
95
+ payButton: "결제 수단 추가",
96
+ confirmPurchase: "결제 수단 추가"
97
+ },
98
+ "zh-CN": {
99
+ payButton: "添加支付方式",
100
+ confirmPurchase: "添加支付方式"
101
+ },
102
+ "zh-TW": {
103
+ payButton: "新增付款方式",
104
+ confirmPurchase: "新增付款方式"
105
+ },
106
+ ar: {
107
+ payButton: "إضافة وسيلة دفع",
108
+ confirmPurchase: "إضافة وسيلة دفع"
109
+ },
110
+ "hr-HR": {
111
+ payButton: "Dodajte način plačanja",
112
+ confirmPurchase: "Dodajte način plačanja"
113
+ },
114
+ "el-GR": {
115
+ payButton: "Προσθήκη μεθόδου πληρωμής",
116
+ confirmPurchase: "Προσθήκη μεθόδου πληρωμής"
117
+ },
118
+ "sk-SK": {
119
+ payButton: "Pridať spôsob platby",
120
+ confirmPurchase: "Pridať spôsob platby"
121
+ },
122
+ "sl-SI": {
123
+ payButton: "Dodajte način plačanja",
124
+ confirmPurchase: "Dodajte način plačanja"
125
+ },
126
+ "bg-BG": {
127
+ payButton: "Добавяне на начин на плащане",
128
+ confirmPurchase: "Добавяне на начин на плащане"
129
+ },
130
+ "ca-ES": {
131
+ payButton: "Afegir mètode de pagament",
132
+ confirmPurchase: "Afegir mètode de pagament"
133
+ },
134
+ "et-EE": {
135
+ payButton: "Lisa makseviis",
136
+ confirmPurchase: "Lisa makseviis"
137
+ },
138
+ "lv-LV": {
139
+ payButton: "Pievienot maksājuma veidu",
140
+ confirmPurchase: "Pievienot maksājuma veidu"
141
+ },
142
+ "lt-LT": {
143
+ payButton: "Pridėti mokėjimo metodą",
144
+ confirmPurchase: "Pridėti mokėjimo metodą"
145
+ }
146
+ }), u;
147
+ }, ze = {
148
+ class: "sv-sepa-mandate mt-3",
149
+ "data-testid": "sepa-mandate-notice"
150
+ }, Ge = /* @__PURE__ */ W({
151
+ __name: "SepaMandateNotice",
152
+ props: {
153
+ billingEntityName: { type: String }
154
+ },
155
+ setup(d) {
156
+ const u = d, { $t: _ } = q(), m = N(
157
+ () => _({
158
+ defaultMessage: "SEPA Direct Debit mandate — recurring payments",
159
+ description: "Title of the SEPA direct debit mandate shown inside the SEPA payment form",
160
+ id: "payments.sepa_mandate.title"
161
+ })
162
+ ), b = N(
163
+ () => u.billingEntityName ? _(
164
+ {
165
+ 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
+ description: "SEPA direct debit mandate authorisation, naming the billing entity",
167
+ id: "payments.sepa_mandate.authorisation"
168
+ },
169
+ { billingEntityName: u.billingEntityName }
170
+ ) : _({
171
+ 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
+ description: "SEPA direct debit mandate authorisation, where the billing entity is not known",
173
+ id: "payments.sepa_mandate.authorisation_unnamed"
174
+ })
175
+ ), n = N(
176
+ () => u.billingEntityName ? _(
177
+ {
178
+ defaultMessage: "This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",
179
+ description: "Explains that the SEPA mandate covers later invoices, naming the billing entity",
180
+ id: "payments.sepa_mandate.recurrence"
181
+ },
182
+ { billingEntityName: u.billingEntityName }
183
+ ) : _({
184
+ defaultMessage: "This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",
185
+ description: "Explains that the SEPA mandate covers later invoices, where the billing entity is not known",
186
+ id: "payments.sepa_mandate.recurrence_unnamed"
187
+ })
188
+ );
189
+ return (E, p) => (A(), S("div", ze, [
190
+ C(G($), {
191
+ tag: "p",
192
+ variant: "body-xs",
193
+ class: "font-semibold"
194
+ }, {
195
+ default: K(() => [
196
+ H(O(m.value), 1)
197
+ ]),
198
+ _: 1
199
+ }),
200
+ C(G($), {
201
+ tag: "p",
202
+ variant: "body-xs",
203
+ color: "subtle"
204
+ }, {
205
+ default: K(() => [
206
+ H(O(b.value) + " " + O(n.value), 1)
207
+ ]),
208
+ _: 1
209
+ })
210
+ ]));
211
+ }
212
+ }), T = "ADYEN", nt = /* @__PURE__ */ W({
213
+ __name: "PaymentIntegrationFormAdyen",
214
+ props: {
215
+ context: { type: Object },
216
+ countryCode: { type: String },
217
+ customerId: { type: String },
218
+ invoiceId: { type: String },
219
+ paymentMethodOptionResponseEntry: { type: Object },
220
+ variant: { type: String },
221
+ selected: { type: Boolean },
222
+ amount: { type: Object },
223
+ validateOnSubmit: { type: Function, default: () => Promise.resolve(!0) },
224
+ forceStorePaymentMethod: { type: Boolean },
225
+ storePaymentMethod: { type: Boolean, default: void 0 },
226
+ redirectsOnSuccess: { type: Boolean },
227
+ billingEntityName: { type: String }
228
+ },
229
+ emits: ["select", "payment-failed", "payment-success", "ready"],
230
+ setup(d, { expose: u, emit: _ }) {
231
+ let m = null, b = null;
232
+ const n = d, E = _;
233
+ u({ submit: ae });
234
+ const p = I(), L = I(null), f = I(null);
235
+ let y;
236
+ const w = I(!1), P = I(), r = be(), { locale: X } = q(), { authorizePayment: ee, getPaymentDetails: te } = Re(), { tokenizePaymentMethod: ne } = Oe(), v = xe(), x = N(
237
+ () => {
238
+ var e;
239
+ return Me(n.paymentMethodOptionResponseEntry, {
240
+ excludeExpressPaymentMethods: !!((e = v == null ? void 0 : v.value) != null && e["express-checkout"])
241
+ });
242
+ }
243
+ ), B = N(() => x.value.length > 0);
244
+ function c(e) {
245
+ return Be({
246
+ gateway: T,
247
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
248
+ variant: n.variant,
249
+ invoiceId: n.invoiceId,
250
+ customerId: n.customerId,
251
+ ...e
252
+ });
253
+ }
254
+ function h(e) {
255
+ const t = Fe(e);
256
+ P.value = t, E("payment-failed", t);
257
+ }
258
+ function ae() {
259
+ try {
260
+ m == null || m.submit();
261
+ } catch (e) {
262
+ r.error(
263
+ "ADYEN_SUBMIT_FAILED",
264
+ "Failed to submit Adyen drop-in",
265
+ c({ reason: "ADYEN_SUBMIT_FAILED", cause: e }),
266
+ e
267
+ );
268
+ }
269
+ }
270
+ async function oe() {
271
+ const e = ke(n.amount), t = x.value;
272
+ return {
273
+ checkoutConfig: {
274
+ amount: e,
275
+ clientKey: Se(
276
+ n.paymentMethodOptionResponseEntry
277
+ ),
278
+ environment: De(
279
+ n.paymentMethodOptionResponseEntry,
280
+ r
281
+ ),
282
+ locale: X,
283
+ translations: Ze(n.variant),
284
+ countryCode: n.countryCode,
285
+ analytics: { enabled: !1 },
286
+ paymentMethodsResponse: { paymentMethods: t },
287
+ onSubmit: ce,
288
+ onAdditionalDetails: me,
289
+ onPaymentCompleted: le,
290
+ onPaymentFailed: ye,
291
+ onError: he,
292
+ showPayButton: !1
293
+ },
294
+ dropInConfig: {
295
+ disableFinalAnimation: !0,
296
+ paymentMethodsConfiguration: {
297
+ card: {
298
+ hasHolderName: !0,
299
+ holderNameRequired: !0,
300
+ enableStoreDetails: !n.forceStorePaymentMethod && n.storePaymentMethod === void 0 && n.variant === "AUTHORIZE"
301
+ },
302
+ paypal: {
303
+ intent: e.value > 0 ? "authorize" : "tokenize",
304
+ showPayButton: !0
305
+ }
306
+ },
307
+ openFirstPaymentMethod: n.selected,
308
+ onSelect: ({ props: { type: o } }) => {
309
+ o && E("select", { paymentMethodType: o, paymentGatewayVariant: "ADYEN" });
310
+ },
311
+ onReady: () => E("ready")
312
+ }
313
+ };
314
+ }
315
+ function re() {
316
+ return Promise.all([
317
+ we(),
318
+ import("./adyen-Bugab0JE.mjs").then((e) => e.default)
319
+ ]);
320
+ }
321
+ async function F() {
322
+ if (await Y(), P.value = void 0, !B.value) {
323
+ const { payment_acceptor: e, integration: t } = n.paymentMethodOptionResponseEntry;
324
+ r.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
325
+ fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", e.id],
326
+ paymentAcceptorId: e.id,
327
+ integrationId: t.id,
328
+ ...n.invoiceId ? { invoiceId: n.invoiceId } : {}
329
+ });
330
+ return;
331
+ }
332
+ if (await V(), !!p.value)
333
+ try {
334
+ const [e, t] = await re(), { checkoutConfig: o, dropInConfig: a } = await oe();
335
+ b = await e.AdyenCheckout(o), m = new e.Dropin(b, {
336
+ ...a,
337
+ paymentMethodComponents: e.dropInPaymentMethodComponents
338
+ }).mount(p.value), de(t), ie();
339
+ } catch (e) {
340
+ r.error(
341
+ "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
342
+ "Failed to mount Adyen web drop-in",
343
+ c({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: e }),
344
+ e
345
+ ), h({
346
+ code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
347
+ message: "Failed to mount Adyen web drop-in",
348
+ error: e
349
+ });
350
+ }
351
+ }
352
+ function U() {
353
+ const e = Ye(p.value);
354
+ if (je(e, L.value)) {
355
+ f.value = null, V(() => f.value = e);
356
+ return;
357
+ }
358
+ f.value = e;
359
+ }
360
+ function ie() {
361
+ y == null || y.disconnect(), p.value && (y = new MutationObserver(() => U()), y.observe(p.value, { childList: !0, subtree: !0 }), U());
362
+ }
363
+ function se() {
364
+ y == null || y.disconnect(), y = void 0, f.value = null;
365
+ }
366
+ async function Y() {
367
+ se(), m && (m.unmount(), m = null), p.value && (p.value.innerHTML = "");
368
+ }
369
+ function de(e) {
370
+ var o;
371
+ const t = (o = p.value) == null ? void 0 : o.getRootNode();
372
+ if (t instanceof ShadowRoot) {
373
+ const a = document.createElement("style");
374
+ a.textContent = e, t.appendChild(a);
375
+ const i = document.createElement("style");
376
+ i.textContent = `
377
+ :host {
378
+ --adyen-sdk-color-background-secondary: transparent;
379
+ --adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
380
+ --adyen-sdk-color-outline-secondary: #e5e7eb;
381
+ --adyen-sdk-color-outline-primary: transparent;
382
+ --adyen-sdk-color-background-always-dark: var(--color-primary-500);
383
+ --adyen-sdk-color-background-inverse-primary-hover: var(--color-primary-600);
384
+ }
385
+
386
+ .adyen-checkout__payment-method__image__wrapper {
387
+ width: 32px;
388
+ height: 32px;
389
+ }
390
+
391
+ .adyen-checkout__payment-method__image {
392
+ height: 32px;
393
+ }
394
+
395
+ .adyen-checkout__input-wrapper,
396
+ .adyen-checkout__input {
397
+ border-color: rgb(229, 231, 235);
398
+ border-radius: var(--adyen-sdk-border-radius-s, 4px);
399
+ }
400
+
401
+ .adyen-checkout__button,
402
+ .adyen-checkout__payment-method {
403
+ border-radius: var(--adyen-sdk-border-radius-s, 4px);
404
+ }
405
+
406
+ .adyen-checkout__payment-method {
407
+ border-color: rgb(229, 231, 235);
408
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
409
+ transition: box-shadow 0.2s ease-in-out;
410
+ }
411
+
412
+ .adyen-checkout__payment-method--selected {
413
+ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
414
+ }
415
+
416
+ .adyen-checkout__payment-method:after {
417
+ transform: scale(0%);
418
+ }
419
+
420
+ .adyen-checkout__paypal__button {
421
+ display: block !important;
422
+ }
423
+
424
+ .adyen-checkout__payment-methods-list {
425
+ gap: 4px;
426
+ }
427
+
428
+ .adyen-checkout__dropdown__list {
429
+ background-color: white;
430
+ border-radius: var(--adyen-sdk-border-radius-s, 4px);
431
+ }
432
+
433
+ .adyen-checkout__payment-method.adyen-checkout__payment-method--selected:after {
434
+ content: '✓';
435
+ width: 20px;
436
+ height: 20px;
437
+ border-radius: 10px;
438
+ background-color: var(--color-primary-600);
439
+ position: absolute;
440
+ top: 14px;
441
+ right: 14px;
442
+ text-align: center;
443
+ line-height: 20px;
444
+ color: white;
445
+ transform: scale(100%);
446
+ font-size: 12px;
447
+ }
448
+
449
+ .adyen-checkout__payment-method__header {
450
+ padding: 8px 16px !important;
451
+ }
452
+
453
+ .adyen-checkout__payment-method__brands {
454
+ align-items: center;
455
+ }
456
+ .adyen-checkout__payment-method__brand-number {
457
+ line-height: 1;
458
+ }
459
+ .adyen-checkout__button__text {
460
+ font-size: 14px;
461
+ }
462
+ .adyen-checkout__store-details {
463
+ background: transparent;
464
+ padding: 0;
465
+ }
466
+ .adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
467
+ border-color: rgb(229, 231, 235);
468
+ }
469
+ `, n.variant === "AUTHORIZE" && (i.textContent += `
470
+ .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
471
+ display: none;
472
+ }
473
+ `), t.appendChild(i);
474
+ }
475
+ }
476
+ function j(e, {
477
+ paymentMethodType: t,
478
+ actions: o,
479
+ logFailure: a
480
+ }) {
481
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === T) {
482
+ const i = ue(e, t);
483
+ if (!i) {
484
+ a(e);
485
+ return;
486
+ }
487
+ m.handleAction(i), o.resolve({
488
+ resultCode: e.action.adyen.result_code,
489
+ action: i
490
+ });
491
+ return;
492
+ }
493
+ if (e.payment.result === "AUTHORIZED") {
494
+ w.value = !0, o.resolve({ resultCode: "Authorised" });
495
+ return;
496
+ }
497
+ a(e), o.resolve({ resultCode: "Error" });
498
+ }
499
+ function ce(...e) {
500
+ const [t, o, a] = e;
501
+ n.validateOnSubmit().then((i) => {
502
+ if (!i)
503
+ return;
504
+ const s = n.paymentMethodOptionResponseEntry.payment_acceptor.id, z = {
505
+ risk_data: D(t.data.riskData),
506
+ payment_method: D(t.data.paymentMethod),
507
+ browser_info: D(t.data.browserInfo)
508
+ };
509
+ if (n.variant === "AUTHORIZE") {
510
+ const R = Q({
511
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
512
+ redirectUrl: window.location.href
513
+ });
514
+ ee({
515
+ payment_acceptor_id: s,
516
+ ...n.customerId ? { customer_id: n.customerId } : {},
517
+ payment_gateway_variant: T,
518
+ adyen: {
519
+ ...z,
520
+ store_payment_method: n.storePaymentMethod ?? (n.forceStorePaymentMethod || t.data.storePaymentMethod)
521
+ },
522
+ amount: n.amount,
523
+ ...n.context ? { context: n.context } : {},
524
+ return_url: R
525
+ }).then(
526
+ (l) => j(l, {
527
+ paymentMethodType: t.data.paymentMethod.type,
528
+ actions: a,
529
+ logFailure: (g) => r.error(
530
+ "PAYMENT_AUTHORIZATION_FAILED",
531
+ `Failed payment authorization for payment acceptor with id ${s}`,
532
+ c({
533
+ reason: "PAYMENT_AUTHORIZATION_REJECTED",
534
+ paymentMethodType: t.data.paymentMethod.type,
535
+ cause: g
536
+ }),
537
+ g
538
+ )
539
+ })
540
+ ).catch((l) => {
541
+ r.error(
542
+ "PAYMENT_AUTHORIZATION_FAILED",
543
+ `Failed payment authorization for payment acceptor with id ${s}`,
544
+ c({
545
+ reason: "PAYMENT_AUTHORIZATION_FAILED",
546
+ paymentMethodType: t.data.paymentMethod.type,
547
+ cause: l
548
+ }),
549
+ l
550
+ ), a.resolve({ resultCode: "Error" });
551
+ });
552
+ return;
553
+ }
554
+ if (n.variant === "TOKENIZE") {
555
+ const R = Q({
556
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
557
+ redirectUrl: window.location.href
558
+ });
559
+ if (!n.customerId) {
560
+ r.error(
561
+ "TOKENIZATION_FAILED",
562
+ `Missing customer id for payment acceptor with id ${s}`,
563
+ c({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
564
+ ), h({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
565
+ return;
566
+ }
567
+ ne({
568
+ customer_id: n.customerId,
569
+ payment_acceptor_id: s,
570
+ payment_gateway_variant: T,
571
+ adyen: z,
572
+ return_url: R
573
+ }).then(
574
+ (l) => j(l, {
575
+ paymentMethodType: t.data.paymentMethod.type,
576
+ actions: a,
577
+ logFailure: (g) => r.error(
578
+ "TOKENIZATION_FAILED",
579
+ `Tokenization failed for payment acceptor with id ${s}`,
580
+ c({
581
+ reason: "TOKENIZATION_REJECTED",
582
+ paymentMethodType: t.data.paymentMethod.type,
583
+ cause: g
584
+ }),
585
+ g
586
+ )
587
+ })
588
+ ).catch((l) => {
589
+ r.error(
590
+ "TOKENIZATION_FAILED",
591
+ `Tokenization failed for payment acceptor with id ${s}`,
592
+ c({
593
+ reason: "TOKENIZATION_FAILED",
594
+ paymentMethodType: t.data.paymentMethod.type,
595
+ cause: l
596
+ }),
597
+ l
598
+ ), a.resolve({ resultCode: "Error" });
599
+ });
600
+ }
601
+ }).catch((i) => {
602
+ r.error(
603
+ "INTEGRATION_ERROR",
604
+ "Unhandled error in payment submission flow",
605
+ c({ reason: "ADYEN_SUBMISSION_FLOW_FAILED", cause: i }),
606
+ i
607
+ );
608
+ });
609
+ }
610
+ function ue(e, t) {
611
+ if (e.status !== "ACTION_REQUIRED")
612
+ return;
613
+ const o = e.action;
614
+ if (o.payment_gateway_variant != "ADYEN")
615
+ return;
616
+ const a = o.adyen;
617
+ return {
618
+ paymentMethodType: (a == null ? void 0 : a.payment_method_type) ?? t,
619
+ method: o.method,
620
+ url: o.url,
621
+ data: o.data,
622
+ type: a == null ? void 0 : a.action_type,
623
+ paymentData: a == null ? void 0 : a.payment_data,
624
+ sdkData: a == null ? void 0 : a.sdk_data
625
+ };
626
+ }
627
+ function me(...e) {
628
+ const [t] = e, o = t.data.details, a = t.data.paymentData;
629
+ if (n.paymentMethodOptionResponseEntry.payment_acceptor.id) {
630
+ Z({
631
+ // For the moment: Adyen gives a null value back which is not accepted by Solvimon API, so filter that out
632
+ detailsResult: o ? pe(o) : void 0,
633
+ paymentDataResult: a,
634
+ paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id
635
+ });
636
+ return;
637
+ }
638
+ r.error(
639
+ "PAYMENT_ACCEPTOR_MISSING",
640
+ "Additional details arrived without a payment acceptor id",
641
+ c({ reason: "PAYMENT_ACCEPTOR_MISSING" })
642
+ ), h({
643
+ code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
644
+ message: "Payment failed",
645
+ error: e
646
+ });
647
+ }
648
+ function pe(e) {
649
+ return Object.fromEntries(
650
+ Object.entries(e).filter(([, t]) => t != null)
651
+ );
652
+ }
653
+ function ye(...e) {
654
+ const [t] = e;
655
+ r.error(
656
+ "ADYEN_PAYMENT_FAILED",
657
+ "Adyen reported the payment as failed",
658
+ c({
659
+ reason: "ADYEN_PAYMENT_FAILED",
660
+ extra: { resultCode: t == null ? void 0 : t.resultCode }
661
+ }),
662
+ t
663
+ ), h({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
664
+ }
665
+ function le(...e) {
666
+ const [, t] = e;
667
+ t == null || t.unmount(), E("payment-success");
668
+ }
669
+ function he(...e) {
670
+ const [t, o] = e;
671
+ t.name !== "CANCEL" && (r.error(
672
+ "INTEGRATION_ERROR",
673
+ "The Adyen drop-in reported an error",
674
+ c({
675
+ reason: "ADYEN_INTEGRATION_ERROR",
676
+ cause: t,
677
+ extra: { adyenErrorName: t.name }
678
+ }),
679
+ t
680
+ ), h({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), o == null || o.unmount());
681
+ }
682
+ function Z({
683
+ detailsResult: e,
684
+ threeDSResult: t,
685
+ redirectResult: o,
686
+ paymentDataResult: a,
687
+ paymentAcceptorId: i
688
+ }) {
689
+ te({
690
+ paymentAcceptorId: i,
691
+ paymentGatewayVariant: T,
692
+ adyen: {
693
+ ...e ? { details: e } : {},
694
+ ...o ? { redirect_result: o } : {},
695
+ ...t ? { threeds_result: t } : {},
696
+ ...a ? { payment_data: a } : {}
697
+ }
698
+ }).then((s) => {
699
+ if (s.payment_status === "FAILURE") {
700
+ r.error(
701
+ "PAYMENT_DETAILS_REJECTED",
702
+ "Payment details returned a failed payment",
703
+ c({
704
+ reason: "PAYMENT_DETAILS_REJECTED",
705
+ paymentAcceptorId: i,
706
+ extra: { paymentStatus: s.payment_status }
707
+ })
708
+ ), h({
709
+ code: "AUTHORIZATION_FAILED",
710
+ message: "Failed getting payment details",
711
+ error: s
712
+ });
713
+ return;
714
+ }
715
+ if (s.payment_status === "SUCCESS") {
716
+ E("payment-success");
717
+ return;
718
+ }
719
+ }).catch((s) => {
720
+ r.error(
721
+ "PAYMENT_DETAILS_CALL_FAILED",
722
+ "Failed fetching payment details",
723
+ c({
724
+ reason: "PAYMENT_DETAILS_CALL_FAILED",
725
+ paymentAcceptorId: i,
726
+ cause: s
727
+ }),
728
+ s
729
+ ), h({
730
+ code: "PAYMENT_DETAILS_CALL_FAILED",
731
+ message: "Failed fetching payment details",
732
+ error: s
733
+ });
734
+ });
735
+ }
736
+ function _e() {
737
+ const e = J(Ce), t = J(Le);
738
+ if (e) {
739
+ if (!t) {
740
+ r.error(
741
+ "INVALID_REDIRECT_RESULT",
742
+ "Redirect result is set but payment acceptor id is missing",
743
+ c({ reason: "INVALID_REDIRECT_RESULT" })
744
+ ), h({
745
+ code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
746
+ message: "Redirect result is set but payment acceptor id is missing"
747
+ });
748
+ return;
749
+ }
750
+ Z({
751
+ paymentAcceptorId: t,
752
+ detailsResult: {
753
+ redirectResult: decodeURI(e)
754
+ }
755
+ });
756
+ }
757
+ }
758
+ return Ee(() => {
759
+ F(), _e();
760
+ }), fe(() => {
761
+ Y();
762
+ }), Ae(
763
+ () => n.paymentMethodOptionResponseEntry,
764
+ (e, t) => {
765
+ Ne(e, t) || F();
766
+ },
767
+ { deep: !0 }
768
+ ), (e, t) => (A(), S(ge, null, [
769
+ w.value ? (A(), M(Pe, {
770
+ key: 0,
771
+ variant: d.variant,
772
+ redirecting: d.redirectsOnSuccess
773
+ }, null, 8, ["variant", "redirecting"])) : P.value ? (A(), M(ve, {
774
+ key: 1,
775
+ error: P.value
776
+ }, null, 8, ["error"])) : k("", !0),
777
+ B.value ? (A(), S("div", {
778
+ key: 2,
779
+ ref_key: "dropInContainerRef",
780
+ ref: p
781
+ }, null, 512)) : k("", !0),
782
+ f.value ? (A(), M(Ie, {
783
+ key: 3,
784
+ to: f.value
785
+ }, [
786
+ Te("div", {
787
+ ref_key: "sepaNoticeRef",
788
+ ref: L
789
+ }, [
790
+ C(Ge, { "billing-entity-name": d.billingEntityName }, null, 8, ["billing-entity-name"])
791
+ ], 512)
792
+ ], 8, ["to"])) : k("", !0)
793
+ ], 64));
794
+ }
795
+ });
796
+ export {
797
+ nt as default
798
+ };