@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/README.md +3 -0
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B70SyWOB.mjs} +6 -6
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jXClPW91.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-ChcLSNaN.mjs → Avatar.vue.es-2E3laNRb.mjs} +1 -1
  7. package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-DdJreyr_.js} +1 -1
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-ConpyC8n.js} +1 -1
  9. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D5EoBLhj.mjs} +4 -4
  10. package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-BJEy-e9C.mjs} +1 -1
  11. package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-CJNxYacb.js} +1 -1
  12. package/dist/Checkout.entry.ce-BfLlnQyb.js +1 -0
  13. package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-CQkrWscC.mjs} +1397 -1302
  14. package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DGbc4L_D.mjs} +2 -2
  15. package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-DLQ4QEPo.js} +1 -1
  16. package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-Bd2kmeVq.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-DL1M7pcr.mjs} +4 -4
  18. package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-CE94ASC3.mjs} +2 -2
  19. package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-hiFzB43w.js} +1 -1
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BE21tqgW.js} +1 -1
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bhih7rPR.mjs} +5 -5
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs} +486 -502
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js +1 -0
  24. package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-CFZUQ62L.mjs} +1 -1
  25. package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-CvCgHHXN.js} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs} +4 -4
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-jTJGN4jb.js} +1 -1
  28. package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-B3mvv79S.mjs} +2 -2
  29. package/dist/ErrorNotification.vue.es-DI2B7WiR.js +1 -0
  30. package/dist/IconButton.vue.es-Dp8h4YOx.js +1 -0
  31. package/dist/IconButton.vue.es-GLcGhoHC.mjs +56 -0
  32. package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-CzuPQtOX.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-DN9r6nfK.js} +1 -1
  34. package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-5Cq8a7oH.mjs} +2 -2
  35. package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-DM81HeVv.js} +1 -1
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs} +2 -2
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js} +1 -1
  38. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js +1 -0
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs} +3 -3
  40. package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-DbtqsTuP.mjs} +692 -705
  41. package/dist/InvoiceSummary.vue.es-Qy99kLZs.js +1 -0
  42. package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-DgLl6XBV.js} +1 -1
  43. package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-Z2DWAN2u.mjs} +5 -5
  44. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js +1 -0
  45. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs +294 -0
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-CjP_514k.mjs} +1 -1
  49. package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DS1j-8m-.js} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-80b19Lkq.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CpOZUf-W.mjs} +1 -1
  54. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs} +3 -3
  55. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DKXhthkA.js} +1 -1
  56. package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-BQcgDcik.mjs} +281 -204
  57. package/dist/PaymentIntegrationFormAdyen-DElXsJ96.js +98 -0
  58. package/dist/PaymentIntegrationFormStripe-CMwLqOe6.js +102 -0
  59. package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-Dx1H3fZ2.mjs} +249 -178
  60. package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-EhRCfeax.mjs} +3 -3
  61. package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-pLCCzVxN.js} +1 -1
  62. package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-Bw2e1tXo.js} +1 -1
  63. package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-D3OY8zK5.mjs} +1 -1
  64. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js} +1 -1
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs} +5 -5
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CdT1YyeU.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-D7b0HhDc.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-BQqkgmzL.mjs +877 -0
  69. package/dist/PlanCustomizationEditor-RC8kj2rC.js +1 -0
  70. package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-ClkE98ML.js} +2 -2
  71. package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-DNsiUZyT.mjs} +4 -4
  72. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-BJfQLRcS.js} +1 -1
  73. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CURXAgMT.mjs} +5 -5
  74. package/dist/RadioGroupExtended.vue.es-Dk9xdj76.js +1 -0
  75. package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-vUqn2ZUP.mjs} +3 -3
  76. package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-C2_topx4.mjs} +1 -1
  77. package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Cybk1Nb8.js} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs} +6 -6
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DIgVzXLg.js} +1 -1
  80. package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-BlCU_xc5.mjs} +1 -1
  81. package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-CNTg_oRy.js} +1 -1
  82. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js +1 -0
  83. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs} +1655 -1620
  84. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BijBAdqp.js} +1 -1
  85. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs} +3 -3
  86. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs} +7 -7
  87. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js} +1 -1
  88. package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-Fu9Od3Vr.mjs} +1 -1
  89. package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-OX6bAWP9.js} +1 -1
  90. package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-CbjdkR4i.js} +1 -1
  91. package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-c7tZOIW3.mjs} +2 -2
  92. package/dist/{cn.es-DjnGlmqV.mjs → cn.es-C8Ogac5T.mjs} +2 -2
  93. package/dist/{cn.es-CNvIP217.js → cn.es-lC4_Xd0R.js} +1 -1
  94. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  95. package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
  96. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  97. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +7 -7
  98. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  99. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +5 -5
  100. package/dist/components/Invoice/Invoice.cjs +1 -1
  101. package/dist/components/Invoice/Invoice.mjs +10 -10
  102. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  103. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  104. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  105. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +8 -8
  106. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  107. package/dist/components/InvoicesList/InvoicesList.mjs +4 -4
  108. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  109. package/dist/components/PaymentHistory/PaymentHistory.mjs +9 -9
  110. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  111. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +6 -6
  112. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  113. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
  114. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  115. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +6 -6
  116. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  117. package/dist/components/WalletBalances/WalletBalances.mjs +4 -4
  118. package/dist/core/index.cjs +1 -1
  119. package/dist/core/index.mjs +26 -23
  120. package/dist/{customElements-Bt8PbjIn.js → customElements-BYIdPSzQ.js} +43 -19
  121. package/dist/{customElements-Com2NiGU.mjs → customElements-Df6dGrN-.mjs} +603 -572
  122. package/dist/{customer-CKgMJEgv.mjs → customer-DmsKYpVi.mjs} +1 -1
  123. package/dist/{customer-Q4JGfVfq.js → customer-DoLHZuMG.js} +1 -1
  124. package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
  125. package/dist/{de-DE-CVCmzlNH.mjs → de-DE-Bgm9bnmp.mjs} +21 -0
  126. package/dist/{de-DE-Ds_yJLS3.js → de-DE-CAL9Mji2.js} +1 -1
  127. package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
  128. package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
  129. package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
  130. package/dist/{en-US-DVR9O7b_.mjs → en-US-E86eRIxh.mjs} +21 -0
  131. package/dist/{en-US-C51ILrVv.js → en-US-_xe5H4TQ.js} +1 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.mjs +1 -1
  134. package/dist/{invoices-CV9iAUHf.mjs → invoices-CrO6p4Ms.mjs} +8 -5
  135. package/dist/invoices-mw87cNTS.js +1 -0
  136. package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
  137. package/dist/it-IT-DT3rfjOY.js +1 -0
  138. package/dist/{it-IT-Dxw59eR_.js → it-IT-QFQ1Ajbb.js} +1 -1
  139. package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-co1BfV5s.mjs} +23 -2
  140. package/dist/{nl-NL-Btbfd9p2.js → nl-NL-CJXJC1bx.js} +1 -1
  141. package/dist/nl-NL-DfkhOJKc.js +1 -0
  142. package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Drv2E66B.mjs} +21 -0
  143. package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
  144. package/dist/paymentFailure-Bh60UhxA.mjs +47 -0
  145. package/dist/paymentFailure-Cki8c5BX.js +1 -0
  146. package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-BNQbW_f1.mjs} +1 -1
  147. package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CQdhZwq4.js} +1 -1
  148. package/dist/{payments-DGckugN0.js → payments-KTjVHqOa.js} +1 -1
  149. package/dist/{payments-C_cMXQzE.mjs → payments-VS_N2xpJ.mjs} +1 -1
  150. package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
  151. package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
  152. package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
  153. package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
  154. package/dist/screens/Checkout/Checkout.cjs +1 -1
  155. package/dist/screens/Checkout/Checkout.mjs +2 -2
  156. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  157. package/dist/screens/CustomerOverview/CustomerOverview.mjs +21 -21
  158. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  159. package/dist/screens/PayInvoice/PayInvoice.mjs +14 -14
  160. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  161. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
  162. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  163. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +21 -21
  164. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  165. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
  166. package/dist/sessionReference-3h-6FdrC.mjs +43 -0
  167. package/dist/sessionReference-m_6Rp4X1.js +1 -0
  168. package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
  169. package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
  170. package/dist/subscriptions-Dugd-oZ1.js +1 -0
  171. package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-U4xg2CO1.mjs} +2 -2
  172. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
  173. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +2 -0
  174. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +10 -1
  175. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
  176. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
  177. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
  178. package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
  179. package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
  180. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
  181. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
  182. package/dist/types/types/errors.d.ts +5 -0
  183. package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CTyDGRX8.js} +1 -1
  184. package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-DyQbRCxR.mjs} +1 -1
  185. package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-BXI5Vmit.js} +1 -1
  186. package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-dcmU1539.mjs} +1 -1
  187. package/dist/useCustomerFormLabels-BC1WfqWo.mjs +968 -0
  188. package/dist/useCustomerFormLabels-Ct6vD_b8.js +1 -0
  189. package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-4Y-ppDr7.mjs} +1 -1
  190. package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-9-p9_nP6.js} +1 -1
  191. package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-B2Z9aD2w.mjs} +2 -2
  192. package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CGvtl7Ai.js} +1 -1
  193. package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-Ba0GO8p-.js} +1 -1
  194. package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-DJPznhig.mjs} +7 -7
  195. package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-BO9ZsSsF.js} +1 -1
  196. package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-CWyI3_RR.mjs} +1 -1
  197. package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-DqIvkjLF.mjs} +4 -4
  198. package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-bkmDrPXY.js} +1 -1
  199. package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-BPBVGNDg.js} +1 -1
  200. package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-MSEp39xQ.mjs} +1 -1
  201. package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-BAOtOJZD.js} +1 -1
  202. package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-U7gnZ0F5.mjs} +1 -1
  203. package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Dq2V6bTV.mjs} +6 -6
  204. package/dist/{usePayments-SQF_V7oL.js → usePayments-G-HpKpK8.js} +1 -1
  205. package/dist/{usePortal-BdM7hDge.js → usePortal-BplmMkBG.js} +1 -1
  206. package/dist/{usePortal-DDG9b6FI.mjs → usePortal-CMHV-ShD.mjs} +1 -1
  207. package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-CvB8ROBt.js} +1 -1
  208. package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-V53WsZwQ.mjs} +1 -1
  209. package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CtCTu9cz.js} +1 -1
  210. package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-D31Zl1MJ.mjs} +1 -1
  211. package/dist/wallets.es-CNIMW5ay.js +1 -0
  212. package/dist/wallets.es-eH2C2ygn.mjs +102 -0
  213. package/package.json +2 -1
  214. package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
  215. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
  216. package/dist/ErrorNotification.vue.es-0ZC_DozN.js +0 -1
  217. package/dist/IconButton.vue.es-DAR7e8NA.mjs +0 -198
  218. package/dist/IconButton.vue.es-DGLIdHkR.js +0 -1
  219. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
  220. package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
  221. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +0 -1
  222. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +0 -144
  223. package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +0 -98
  224. package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +0 -102
  225. package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
  226. package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
  227. package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +0 -1
  228. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
  229. package/dist/component-5wqcK7yz.mjs +0 -8
  230. package/dist/component-B7ZDyqBp.js +0 -1
  231. package/dist/invoices-CvpL4rv5.js +0 -1
  232. package/dist/it-IT-CFEfSpPH.js +0 -1
  233. package/dist/nl-NL-jtVgF3jx.js +0 -1
  234. package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
  235. package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
  236. package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
  237. package/dist/subscriptions-X0Ciw8z3.js +0 -1
  238. package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
  239. package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
@@ -1,16 +1,17 @@
1
- import { defineComponent as ee, ref as A, computed as w, onMounted as te, onBeforeUnmount as ne, watch as oe, openBlock as h, createElementBlock as B, Fragment as ae, createBlock as x, createCommentVNode as D, nextTick as re } from "vue";
2
- import { a as ie } from "./useService-Bh47bllz.mjs";
3
- import { b as de, u as ce } from "./customElements-Com2NiGU.mjs";
4
- import { _ as se, a as me } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs";
5
- import { c as pe } from "./payments-C_cMXQzE.mjs";
6
- import { g as C } from "./url-DwiuKYpu.mjs";
7
- import { c as ue } from "./paymentMethods-BuwoJ1y9.mjs";
8
- import { g as ye, t as le, a as he, b as _e, R as fe, P as ge, c as P, d as S } from "./adyen-CvsH5fok.mjs";
9
- import { l as Ee } from "./adyenSdk-B01MB9Ia.mjs";
10
- import { u as Ae } from "./useExperimentalFeature-B0IFn3Uw.mjs";
11
- const Pe = (u) => {
12
- let l = {};
13
- return u === "TOKENIZE" && (l = {
1
+ import { defineComponent as ae, ref as g, computed as L, onMounted as ne, onBeforeUnmount as oe, watch as re, openBlock as A, createElementBlock as S, Fragment as ie, createBlock as x, createCommentVNode as B, nextTick as de } from "vue";
2
+ import { a as se } from "./useService-Bh47bllz.mjs";
3
+ import { b as ce, u as me } from "./customElements-Df6dGrN-.mjs";
4
+ import { _ as pe, a as ue } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs";
5
+ import { c as ye } from "./payments-VS_N2xpJ.mjs";
6
+ import { g as w } from "./url-DwiuKYpu.mjs";
7
+ import { c as le } from "./paymentMethods-BNQbW_f1.mjs";
8
+ import { g as he, t as _e, a as Ee, b as fe, R as Ae, P as Ie, c as P, d as F } from "./adyen-CvsH5fok.mjs";
9
+ import { l as Te } from "./adyenSdk-B01MB9Ia.mjs";
10
+ import { u as ge } from "./useExperimentalFeature-4Y-ppDr7.mjs";
11
+ import { c as Pe, a as Ne } from "./paymentFailure-Bh60UhxA.mjs";
12
+ const Re = (y) => {
13
+ let E = {};
14
+ return y === "TOKENIZE" && (E = {
14
15
  "en-US": {
15
16
  payButton: "Add payment method",
16
17
  confirmPurchase: "Add payment method"
@@ -135,8 +136,8 @@ const Pe = (u) => {
135
136
  payButton: "Pridėti mokėjimo metodą",
136
137
  confirmPurchase: "Pridėti mokėjimo metodą"
137
138
  }
138
- }), l;
139
- }, _ = "ADYEN", Be = /* @__PURE__ */ ee({
139
+ }), E;
140
+ }, _ = "ADYEN", we = /* @__PURE__ */ ae({
140
141
  __name: "PaymentIntegrationFormAdyen",
141
142
  props: {
142
143
  context: { type: Object },
@@ -153,47 +154,66 @@ const Pe = (u) => {
153
154
  redirectsOnSuccess: { type: Boolean }
154
155
  },
155
156
  emits: ["select", "payment-failed", "payment-success", "ready"],
156
- setup(u, { expose: l, emit: L }) {
157
- let c = null, I = null;
158
- const n = u, s = L;
159
- l({ submit: Y });
160
- const p = A(), b = A(!1), y = A(), i = de(), { locale: U } = ce(), { authorizePayment: F, getPaymentDetails: j } = pe(), { tokenizePaymentMethod: z } = ue(), f = Ae(), v = w(
157
+ setup(y, { expose: E, emit: U }) {
158
+ let m = null, N = null;
159
+ const a = y, l = U;
160
+ E({ submit: G });
161
+ const u = g(), R = g(!1), f = g(), r = ce(), { locale: Y } = me(), { authorizePayment: j, getPaymentDetails: Z } = ye(), { tokenizePaymentMethod: z } = le(), I = ge(), O = L(
161
162
  () => {
162
163
  var e;
163
- return ye(n.paymentMethodOptionResponseEntry, {
164
- excludeExpressPaymentMethods: !!((e = f == null ? void 0 : f.value) != null && e["express-checkout"])
164
+ return he(a.paymentMethodOptionResponseEntry, {
165
+ excludeExpressPaymentMethods: !!((e = I == null ? void 0 : I.value) != null && e["express-checkout"])
165
166
  });
166
167
  }
167
- ), k = w(() => v.value.length > 0);
168
- function Y() {
168
+ ), M = L(() => O.value.length > 0);
169
+ function s(e) {
170
+ return Pe({
171
+ gateway: _,
172
+ paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
173
+ variant: a.variant,
174
+ invoiceId: a.invoiceId,
175
+ customerId: a.customerId,
176
+ ...e
177
+ });
178
+ }
179
+ function p(e) {
180
+ const t = Ne(e);
181
+ f.value = t, l("payment-failed", t);
182
+ }
183
+ function G() {
169
184
  try {
170
- c == null || c.submit();
185
+ m == null || m.submit();
171
186
  } catch (e) {
172
- i.error("ADYEN_SUBMIT_FAILED", "Failed to submit Adyen drop-in", {}, e);
187
+ r.error(
188
+ "ADYEN_SUBMIT_FAILED",
189
+ "Failed to submit Adyen drop-in",
190
+ s({ reason: "ADYEN_SUBMIT_FAILED", cause: e }),
191
+ e
192
+ );
173
193
  }
174
194
  }
175
- async function Z() {
176
- const e = le(n.amount), t = v.value;
195
+ async function K() {
196
+ const e = _e(a.amount), t = O.value;
177
197
  return {
178
198
  checkoutConfig: {
179
199
  amount: e,
180
- clientKey: _e(
181
- n.paymentMethodOptionResponseEntry
200
+ clientKey: fe(
201
+ a.paymentMethodOptionResponseEntry
182
202
  ),
183
- environment: he(
184
- n.paymentMethodOptionResponseEntry,
185
- i
203
+ environment: Ee(
204
+ a.paymentMethodOptionResponseEntry,
205
+ r
186
206
  ),
187
- locale: U,
188
- translations: Pe(n.variant),
189
- countryCode: n.countryCode,
207
+ locale: Y,
208
+ translations: Re(a.variant),
209
+ countryCode: a.countryCode,
190
210
  analytics: { enabled: !1 },
191
211
  paymentMethodsResponse: { paymentMethods: t },
192
- onSubmit: H,
193
- onAdditionalDetails: $,
194
- onPaymentCompleted: J,
195
- onPaymentFailed: Q,
196
- onError: X,
212
+ onSubmit: $,
213
+ onAdditionalDetails: Q,
214
+ onPaymentCompleted: q,
215
+ onPaymentFailed: X,
216
+ onError: ee,
197
217
  showPayButton: !1
198
218
  },
199
219
  dropInConfig: {
@@ -202,64 +222,69 @@ const Pe = (u) => {
202
222
  card: {
203
223
  hasHolderName: !0,
204
224
  holderNameRequired: !0,
205
- enableStoreDetails: !n.forceStorePaymentMethod && n.storePaymentMethod === void 0 && n.variant === "AUTHORIZE"
225
+ enableStoreDetails: !a.forceStorePaymentMethod && a.storePaymentMethod === void 0 && a.variant === "AUTHORIZE"
206
226
  },
207
227
  paypal: {
208
228
  intent: e.value > 0 ? "authorize" : "tokenize",
209
229
  showPayButton: !0
210
230
  }
211
231
  },
212
- openFirstPaymentMethod: n.selected,
213
- onSelect: ({ props: { type: a } }) => {
214
- a && s("select", { paymentMethodType: a, paymentGatewayVariant: "ADYEN" });
232
+ openFirstPaymentMethod: a.selected,
233
+ onSelect: ({ props: { type: o } }) => {
234
+ o && l("select", { paymentMethodType: o, paymentGatewayVariant: "ADYEN" });
215
235
  },
216
- onReady: () => s("ready")
236
+ onReady: () => l("ready")
217
237
  }
218
238
  };
219
239
  }
220
- function K() {
240
+ function H() {
221
241
  return Promise.all([
222
- Ee(),
242
+ Te(),
223
243
  import("./adyen-Bugab0JE.mjs").then((e) => e.default)
224
244
  ]);
225
245
  }
226
- async function R() {
227
- if (await O(), !k.value) {
228
- const { payment_acceptor: e, integration: t } = n.paymentMethodOptionResponseEntry;
229
- i.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
246
+ async function v() {
247
+ if (await b(), f.value = void 0, !M.value) {
248
+ const { payment_acceptor: e, integration: t } = a.paymentMethodOptionResponseEntry;
249
+ r.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
230
250
  fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", e.id],
231
251
  paymentAcceptorId: e.id,
232
252
  integrationId: t.id,
233
- ...n.invoiceId ? { invoiceId: n.invoiceId } : {}
253
+ ...a.invoiceId ? { invoiceId: a.invoiceId } : {}
234
254
  });
235
255
  return;
236
256
  }
237
- if (await re(), !!p.value)
257
+ if (await de(), !!u.value)
238
258
  try {
239
- const [e, t] = await K(), { checkoutConfig: a, dropInConfig: o } = await Z();
240
- I = await e.AdyenCheckout(a), c = new e.Dropin(I, {
241
- ...o,
259
+ const [e, t] = await H(), { checkoutConfig: o, dropInConfig: n } = await K();
260
+ N = await e.AdyenCheckout(o), m = new e.Dropin(N, {
261
+ ...n,
242
262
  paymentMethodComponents: e.dropInPaymentMethodComponents
243
- }).mount(p.value), G(t);
263
+ }).mount(u.value), V(t);
244
264
  } catch (e) {
245
- i.error(
265
+ r.error(
246
266
  "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
247
267
  "Failed to mount Adyen web drop-in",
248
- { error: e }
249
- );
268
+ s({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: e }),
269
+ e
270
+ ), p({
271
+ code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
272
+ message: "Failed to mount Adyen web drop-in",
273
+ error: e
274
+ });
250
275
  }
251
276
  }
252
- async function O() {
253
- c && (c.unmount(), c = null), p.value && (p.value.innerHTML = "");
277
+ async function b() {
278
+ m && (m.unmount(), m = null), u.value && (u.value.innerHTML = "");
254
279
  }
255
- function G(e) {
256
- var a;
257
- const t = (a = p.value) == null ? void 0 : a.getRootNode();
280
+ function V(e) {
281
+ var o;
282
+ const t = (o = u.value) == null ? void 0 : o.getRootNode();
258
283
  if (t instanceof ShadowRoot) {
259
- const o = document.createElement("style");
260
- o.textContent = e, t.appendChild(o);
261
- const r = document.createElement("style");
262
- r.textContent = `
284
+ const n = document.createElement("style");
285
+ n.textContent = e, t.appendChild(n);
286
+ const i = document.createElement("style");
287
+ i.textContent = `
263
288
  :host {
264
289
  --adyen-sdk-color-background-secondary: transparent;
265
290
  --adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
@@ -352,236 +377,288 @@ const Pe = (u) => {
352
377
  .adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
353
378
  border-color: rgb(229, 231, 235);
354
379
  }
355
- `, n.variant === "AUTHORIZE" && (r.textContent += `
380
+ `, a.variant === "AUTHORIZE" && (i.textContent += `
356
381
  .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
357
382
  display: none;
358
383
  }
359
- `), t.appendChild(r);
384
+ `), t.appendChild(i);
360
385
  }
361
386
  }
362
- function T(e, {
387
+ function D(e, {
363
388
  paymentMethodType: t,
364
- actions: a,
365
- logFailure: o
389
+ actions: o,
390
+ logFailure: n
366
391
  }) {
367
392
  if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === _) {
368
- const r = V(e, t);
369
- if (!r) {
370
- o(e);
393
+ const i = J(e, t);
394
+ if (!i) {
395
+ n(e);
371
396
  return;
372
397
  }
373
- c.handleAction(r), a.resolve({
398
+ m.handleAction(i), o.resolve({
374
399
  resultCode: e.action.adyen.result_code,
375
- action: r
400
+ action: i
376
401
  });
377
402
  return;
378
403
  }
379
404
  if (e.payment.result === "AUTHORIZED") {
380
- b.value = !0, a.resolve({ resultCode: "Authorised" });
405
+ R.value = !0, o.resolve({ resultCode: "Authorised" });
381
406
  return;
382
407
  }
383
- o(e), a.resolve({ resultCode: "Error" });
408
+ n(e), o.resolve({ resultCode: "Error" });
384
409
  }
385
- function H(...e) {
386
- const [t, a, o] = e;
387
- n.validateOnSubmit().then((r) => {
388
- if (!r)
410
+ function $(...e) {
411
+ const [t, o, n] = e;
412
+ a.validateOnSubmit().then((i) => {
413
+ if (!i)
389
414
  return;
390
- const d = n.paymentMethodOptionResponseEntry.payment_acceptor.id, M = {
415
+ const d = a.paymentMethodOptionResponseEntry.payment_acceptor.id, C = {
391
416
  risk_data: P(t.data.riskData),
392
417
  payment_method: P(t.data.paymentMethod),
393
418
  browser_info: P(t.data.browserInfo)
394
419
  };
395
- if (n.variant === "AUTHORIZE") {
396
- const g = S({
397
- paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
420
+ if (a.variant === "AUTHORIZE") {
421
+ const T = F({
422
+ paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
398
423
  redirectUrl: window.location.href
399
424
  });
400
- F({
425
+ j({
401
426
  payment_acceptor_id: d,
402
- ...n.customerId ? { customer_id: n.customerId } : {},
427
+ ...a.customerId ? { customer_id: a.customerId } : {},
403
428
  payment_gateway_variant: _,
404
429
  adyen: {
405
- ...M,
406
- store_payment_method: n.storePaymentMethod ?? (n.forceStorePaymentMethod || t.data.storePaymentMethod)
430
+ ...C,
431
+ store_payment_method: a.storePaymentMethod ?? (a.forceStorePaymentMethod || t.data.storePaymentMethod)
407
432
  },
408
- amount: n.amount,
409
- ...n.context ? { context: n.context } : {},
410
- return_url: g
433
+ amount: a.amount,
434
+ ...a.context ? { context: a.context } : {},
435
+ return_url: T
411
436
  }).then(
412
- (m) => T(m, {
437
+ (c) => D(c, {
413
438
  paymentMethodType: t.data.paymentMethod.type,
414
- actions: o,
415
- logFailure: (E) => i.error(
439
+ actions: n,
440
+ logFailure: (h) => r.error(
416
441
  "PAYMENT_AUTHORIZATION_FAILED",
417
442
  `Failed payment authorization for payment acceptor with id ${d}`,
418
- { error: E }
443
+ s({
444
+ reason: "PAYMENT_AUTHORIZATION_REJECTED",
445
+ paymentMethodType: t.data.paymentMethod.type,
446
+ cause: h
447
+ }),
448
+ h
419
449
  )
420
450
  })
421
- ).catch((m) => {
422
- i.error(
451
+ ).catch((c) => {
452
+ r.error(
423
453
  "PAYMENT_AUTHORIZATION_FAILED",
424
454
  `Failed payment authorization for payment acceptor with id ${d}`,
425
- { error: m }
426
- ), o.resolve({ resultCode: "Error" });
455
+ s({
456
+ reason: "PAYMENT_AUTHORIZATION_FAILED",
457
+ paymentMethodType: t.data.paymentMethod.type,
458
+ cause: c
459
+ }),
460
+ c
461
+ ), n.resolve({ resultCode: "Error" });
427
462
  });
428
463
  return;
429
464
  }
430
- if (n.variant === "TOKENIZE") {
431
- const g = S({
432
- paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
465
+ if (a.variant === "TOKENIZE") {
466
+ const T = F({
467
+ paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id,
433
468
  redirectUrl: window.location.href
434
469
  });
435
- if (!n.customerId) {
436
- i.error(
470
+ if (!a.customerId) {
471
+ r.error(
437
472
  "TOKENIZATION_FAILED",
438
- `Missing customer id for payment acceptor with id ${d}`
439
- );
473
+ `Missing customer id for payment acceptor with id ${d}`,
474
+ s({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
475
+ ), p({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
440
476
  return;
441
477
  }
442
478
  z({
443
- customer_id: n.customerId,
479
+ customer_id: a.customerId,
444
480
  payment_acceptor_id: d,
445
481
  payment_gateway_variant: _,
446
- adyen: M,
447
- return_url: g
482
+ adyen: C,
483
+ return_url: T
448
484
  }).then(
449
- (m) => T(m, {
485
+ (c) => D(c, {
450
486
  paymentMethodType: t.data.paymentMethod.type,
451
- actions: o,
452
- logFailure: (E) => i.error(
487
+ actions: n,
488
+ logFailure: (h) => r.error(
453
489
  "TOKENIZATION_FAILED",
454
490
  `Tokenization failed for payment acceptor with id ${d}`,
455
- { error: E }
491
+ s({
492
+ reason: "TOKENIZATION_REJECTED",
493
+ paymentMethodType: t.data.paymentMethod.type,
494
+ cause: h
495
+ }),
496
+ h
456
497
  )
457
498
  })
458
- ).catch((m) => {
459
- i.error(
499
+ ).catch((c) => {
500
+ r.error(
460
501
  "TOKENIZATION_FAILED",
461
502
  `Tokenization failed for payment acceptor with id ${d}`,
462
- { error: m }
463
- ), o.resolve({ resultCode: "Error" });
503
+ s({
504
+ reason: "TOKENIZATION_FAILED",
505
+ paymentMethodType: t.data.paymentMethod.type,
506
+ cause: c
507
+ }),
508
+ c
509
+ ), n.resolve({ resultCode: "Error" });
464
510
  });
465
511
  }
466
- }).catch((r) => {
467
- i.error(
512
+ }).catch((i) => {
513
+ r.error(
468
514
  "INTEGRATION_ERROR",
469
515
  "Unhandled error in payment submission flow",
470
- {},
471
- r
516
+ s({ reason: "ADYEN_SUBMISSION_FLOW_FAILED", cause: i }),
517
+ i
472
518
  );
473
519
  });
474
520
  }
475
- function V(e, t) {
521
+ function J(e, t) {
476
522
  if (e.status !== "ACTION_REQUIRED")
477
523
  return;
478
- const a = e.action;
479
- if (a.payment_gateway_variant != "ADYEN")
524
+ const o = e.action;
525
+ if (o.payment_gateway_variant != "ADYEN")
480
526
  return;
481
- const o = a.adyen;
527
+ const n = o.adyen;
482
528
  return {
483
- paymentMethodType: (o == null ? void 0 : o.payment_method_type) ?? t,
484
- method: a.method,
485
- url: a.url,
486
- data: a.data,
487
- type: o == null ? void 0 : o.action_type,
488
- paymentData: o == null ? void 0 : o.payment_data,
489
- sdkData: o == null ? void 0 : o.sdk_data
529
+ paymentMethodType: (n == null ? void 0 : n.payment_method_type) ?? t,
530
+ method: o.method,
531
+ url: o.url,
532
+ data: o.data,
533
+ type: n == null ? void 0 : n.action_type,
534
+ paymentData: n == null ? void 0 : n.payment_data,
535
+ sdkData: n == null ? void 0 : n.sdk_data
490
536
  };
491
537
  }
492
- function $(...e) {
493
- const [t] = e, a = t.data.details, o = t.data.paymentData;
494
- if (n.paymentMethodOptionResponseEntry.payment_acceptor.id) {
495
- N({
538
+ function Q(...e) {
539
+ const [t] = e, o = t.data.details, n = t.data.paymentData;
540
+ if (a.paymentMethodOptionResponseEntry.payment_acceptor.id) {
541
+ k({
496
542
  // For the moment: Adyen gives a null value back which is not accepted by Solvimon API, so filter that out
497
- detailsResult: a ? W(a) : void 0,
498
- paymentDataResult: o,
499
- paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id
543
+ detailsResult: o ? W(o) : void 0,
544
+ paymentDataResult: n,
545
+ paymentAcceptorId: a.paymentMethodOptionResponseEntry.payment_acceptor.id
500
546
  });
501
547
  return;
502
548
  }
503
- const r = {
504
- code: "UNKNOWN_ERROR",
549
+ r.error(
550
+ "PAYMENT_ACCEPTOR_MISSING",
551
+ "Additional details arrived without a payment acceptor id",
552
+ s({ reason: "PAYMENT_ACCEPTOR_MISSING" })
553
+ ), p({
554
+ code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
505
555
  message: "Payment failed",
506
556
  error: e
507
- };
508
- s("payment-failed", r), y.value = r;
557
+ });
509
558
  }
510
559
  function W(e) {
511
560
  return Object.fromEntries(
512
561
  Object.entries(e).filter(([, t]) => t != null)
513
562
  );
514
563
  }
515
- function Q(...e) {
516
- const [t] = e, a = {
517
- code: "UNKNOWN_ERROR",
518
- message: "Payment failed",
519
- error: t
520
- };
521
- s("payment-failed", a), y.value = a;
564
+ function X(...e) {
565
+ const [t] = e;
566
+ r.error(
567
+ "ADYEN_PAYMENT_FAILED",
568
+ "Adyen reported the payment as failed",
569
+ s({
570
+ reason: "ADYEN_PAYMENT_FAILED",
571
+ extra: { resultCode: t == null ? void 0 : t.resultCode }
572
+ }),
573
+ t
574
+ ), p({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
522
575
  }
523
- function J(...e) {
576
+ function q(...e) {
524
577
  const [, t] = e;
525
- t == null || t.unmount(), s("payment-success");
578
+ t == null || t.unmount(), l("payment-success");
526
579
  }
527
- function X(...e) {
528
- const [t, a] = e;
529
- if (t.name === "CANCEL")
530
- return;
531
- const o = {
532
- code: "UNKNOWN_ERROR",
533
- message: "Something went wrong",
534
- error: t
535
- };
536
- i.error("INTEGRATION_ERROR", "Something went wrong", { error: t }), y.value = o, a == null || a.unmount();
580
+ function ee(...e) {
581
+ const [t, o] = e;
582
+ t.name !== "CANCEL" && (r.error(
583
+ "INTEGRATION_ERROR",
584
+ "The Adyen drop-in reported an error",
585
+ s({
586
+ reason: "ADYEN_INTEGRATION_ERROR",
587
+ cause: t,
588
+ extra: { adyenErrorName: t.name }
589
+ }),
590
+ t
591
+ ), p({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), o == null || o.unmount());
537
592
  }
538
- function N({
593
+ function k({
539
594
  detailsResult: e,
540
595
  threeDSResult: t,
541
- redirectResult: a,
542
- paymentDataResult: o,
543
- paymentAcceptorId: r
596
+ redirectResult: o,
597
+ paymentDataResult: n,
598
+ paymentAcceptorId: i
544
599
  }) {
545
- j({
546
- paymentAcceptorId: r,
600
+ Z({
601
+ paymentAcceptorId: i,
547
602
  paymentGatewayVariant: _,
548
603
  adyen: {
549
604
  ...e ? { details: e } : {},
550
- ...a ? { redirect_result: a } : {},
605
+ ...o ? { redirect_result: o } : {},
551
606
  ...t ? { threeds_result: t } : {},
552
- ...o ? { payment_data: o } : {}
607
+ ...n ? { payment_data: n } : {}
553
608
  }
554
609
  }).then((d) => {
555
610
  if (d.payment_status === "FAILURE") {
556
- s("payment-failed", {
557
- code: "UNKNOWN_ERROR",
611
+ r.error(
612
+ "PAYMENT_DETAILS_REJECTED",
613
+ "Payment details returned a failed payment",
614
+ s({
615
+ reason: "PAYMENT_DETAILS_REJECTED",
616
+ paymentAcceptorId: i,
617
+ extra: { paymentStatus: d.payment_status }
618
+ })
619
+ ), p({
620
+ code: "AUTHORIZATION_FAILED",
558
621
  message: "Failed getting payment details",
559
622
  error: d
560
623
  });
561
624
  return;
562
625
  }
563
626
  if (d.payment_status === "SUCCESS") {
564
- s("payment-success");
627
+ l("payment-success");
565
628
  return;
566
629
  }
567
630
  }).catch((d) => {
568
- i.error("PAYMENT_DETAILS_CALL_FAILED", "Failed fetching payment details", {
631
+ r.error(
632
+ "PAYMENT_DETAILS_CALL_FAILED",
633
+ "Failed fetching payment details",
634
+ s({
635
+ reason: "PAYMENT_DETAILS_CALL_FAILED",
636
+ paymentAcceptorId: i,
637
+ cause: d
638
+ }),
639
+ d
640
+ ), p({
641
+ code: "PAYMENT_DETAILS_CALL_FAILED",
642
+ message: "Failed fetching payment details",
569
643
  error: d
570
644
  });
571
645
  });
572
646
  }
573
- function q() {
574
- const e = C(fe), t = C(ge);
647
+ function te() {
648
+ const e = w(Ae), t = w(Ie);
575
649
  if (e) {
576
650
  if (!t) {
577
- i.error(
651
+ r.error(
578
652
  "INVALID_REDIRECT_RESULT",
579
653
  "Redirect result is set but payment acceptor id is missing",
580
- { context: { redirectResult: e } }
581
- );
654
+ s({ reason: "INVALID_REDIRECT_RESULT" })
655
+ ), p({
656
+ code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
657
+ message: "Redirect result is set but payment acceptor id is missing"
658
+ });
582
659
  return;
583
660
  }
584
- N({
661
+ k({
585
662
  paymentAcceptorId: t,
586
663
  detailsResult: {
587
664
  redirectResult: decodeURI(e)
@@ -589,33 +666,33 @@ const Pe = (u) => {
589
666
  });
590
667
  }
591
668
  }
592
- return te(() => {
593
- R(), q();
594
- }), ne(() => {
595
- O();
596
- }), oe(
597
- () => n.paymentMethodOptionResponseEntry,
669
+ return ne(() => {
670
+ v(), te();
671
+ }), oe(() => {
672
+ b();
673
+ }), re(
674
+ () => a.paymentMethodOptionResponseEntry,
598
675
  (e, t) => {
599
- ie(e, t) || R();
676
+ se(e, t) || v();
600
677
  },
601
678
  { deep: !0 }
602
- ), (e, t) => (h(), B(ae, null, [
603
- b.value ? (h(), x(se, {
679
+ ), (e, t) => (A(), S(ie, null, [
680
+ R.value ? (A(), x(pe, {
604
681
  key: 0,
605
- variant: u.variant,
606
- redirecting: u.redirectsOnSuccess
607
- }, null, 8, ["variant", "redirecting"])) : y.value ? (h(), x(me, {
682
+ variant: y.variant,
683
+ redirecting: y.redirectsOnSuccess
684
+ }, null, 8, ["variant", "redirecting"])) : f.value ? (A(), x(ue, {
608
685
  key: 1,
609
- error: y.value
610
- }, null, 8, ["error"])) : D("", !0),
611
- k.value ? (h(), B("div", {
686
+ error: f.value
687
+ }, null, 8, ["error"])) : B("", !0),
688
+ M.value ? (A(), S("div", {
612
689
  key: 2,
613
690
  ref_key: "dropInContainerRef",
614
- ref: p
615
- }, null, 512)) : D("", !0)
691
+ ref: u
692
+ }, null, 512)) : B("", !0)
616
693
  ], 64));
617
694
  }
618
695
  });
619
696
  export {
620
- Be as default
697
+ we as default
621
698
  };