@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,12 +1,13 @@
1
- import { defineComponent as C, ref as _, onMounted as M, onBeforeUnmount as U, watch as B, openBlock as I, createElementBlock as $, computed as w, createBlock as T, unref as V, createCommentVNode as Y } from "vue";
2
- import { a as Z } from "./useService-Bh47bllz.mjs";
3
- import { t as G, d as H, P as Q } from "./adyen-CvsH5fok.mjs";
4
- import { _ as q, a as J } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs";
5
- import { c as X } from "./payments-C_cMXQzE.mjs";
6
- import { c as ee } from "./paymentMethods-BuwoJ1y9.mjs";
7
- import { g as S } from "./url-DwiuKYpu.mjs";
8
- import { b as te } from "./customElements-Com2NiGU.mjs";
9
- const D = "https://js.stripe.com/dahlia/stripe.js", re = `<!DOCTYPE html>
1
+ import { defineComponent as D, ref as g, onMounted as L, onBeforeUnmount as M, watch as B, openBlock as v, createElementBlock as Y, computed as h, createBlock as N, unref as G, createCommentVNode as $ } from "vue";
2
+ import { a as W } from "./useService-Bh47bllz.mjs";
3
+ import { t as V, d as Q, P as X } from "./adyen-CvsH5fok.mjs";
4
+ import { _ as q, a as J } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs";
5
+ import { c as ee } from "./payments-VS_N2xpJ.mjs";
6
+ import { c as te } from "./paymentMethods-BNQbW_f1.mjs";
7
+ import { g as b } from "./url-DwiuKYpu.mjs";
8
+ import { b as re } from "./customElements-Df6dGrN-.mjs";
9
+ import { c as ne, a as ae } from "./paymentFailure-Bh60UhxA.mjs";
10
+ const F = "https://js.stripe.com/dahlia/stripe.js", oe = `<!DOCTYPE html>
10
11
  <html>
11
12
  <head>
12
13
  <meta charset="UTF-8">
@@ -18,7 +19,7 @@ body { overflow: hidden; }
18
19
  </head>
19
20
  <body>
20
21
  <div id="stripe-root"></div>
21
- <script src="${D}"><\/script>
22
+ <script src="${F}"><\/script>
22
23
  <script>
23
24
  (function () {
24
25
  let stripe, elements, countryCode, email, name, parentOrigin;
@@ -107,7 +108,7 @@ body { overflow: hidden; }
107
108
  })();
108
109
  <\/script>
109
110
  </body>
110
- </html>`, ne = ["src", "height"], ae = /* @__PURE__ */ C({
111
+ </html>`, ie = ["src", "height"], se = /* @__PURE__ */ D({
111
112
  __name: "PaymentIntegrationFormStripeFrame",
112
113
  props: {
113
114
  publicKey: { type: String },
@@ -117,13 +118,13 @@ body { overflow: hidden; }
117
118
  name: { type: String }
118
119
  },
119
120
  emits: ["ready", "change", "loaderror", "submit-success", "submit-error"],
120
- setup(m, { expose: f, emit: E }) {
121
- const t = m, s = E;
122
- f({ triggerSubmit: O });
123
- const p = _(), d = _(0), g = _();
124
- function h() {
125
- var a, n;
126
- (n = (a = p.value) == null ? void 0 : a.contentWindow) == null || n.postMessage(
121
+ setup(p, { expose: I, emit: A }) {
122
+ const t = p, c = A;
123
+ I({ triggerSubmit: O });
124
+ const u = g(), d = g(0), E = g();
125
+ function S() {
126
+ var i, a;
127
+ (a = (i = u.value) == null ? void 0 : i.contentWindow) == null || a.postMessage(
127
128
  {
128
129
  type: "stripe:init",
129
130
  publicKey: t.publicKey,
@@ -136,77 +137,77 @@ body { overflow: hidden; }
136
137
  );
137
138
  }
138
139
  function O() {
139
- var a, n;
140
- (n = (a = p.value) == null ? void 0 : a.contentWindow) == null || n.postMessage(
140
+ var i, a;
141
+ (a = (i = u.value) == null ? void 0 : i.contentWindow) == null || a.postMessage(
141
142
  { type: "stripe:submit", email: t.email, name: t.name },
142
143
  "*"
143
144
  );
144
145
  }
145
- function l(a) {
146
- return typeof a == "object" && a !== null;
146
+ function y(i) {
147
+ return typeof i == "object" && i !== null;
147
148
  }
148
- function c(a) {
149
- if (!p.value || a.source !== p.value.contentWindow || !l(a.data)) return;
150
- const n = a.data, R = n.type;
151
- if (!(typeof R != "string" || !R.startsWith("stripe:")))
152
- switch (R) {
149
+ function m(i) {
150
+ if (!u.value || i.source !== u.value.contentWindow || !y(i.data)) return;
151
+ const a = i.data, _ = a.type;
152
+ if (!(typeof _ != "string" || !_.startsWith("stripe:")))
153
+ switch (_) {
153
154
  case "stripe:ready":
154
- s("ready");
155
+ c("ready");
155
156
  break;
156
157
  case "stripe:change":
157
- s(
158
+ c(
158
159
  "change",
159
- typeof n.paymentMethodType == "string" ? n.paymentMethodType : "card"
160
+ typeof a.paymentMethodType == "string" ? a.paymentMethodType : "card"
160
161
  );
161
162
  break;
162
163
  case "stripe:loaderror": {
163
- const u = l(n.error) ? n.error : {};
164
- s("loaderror", {
165
- message: typeof u.message == "string" ? u.message : void 0,
166
- type: typeof u.type == "string" ? u.type : void 0
164
+ const n = y(a.error) ? a.error : {};
165
+ c("loaderror", {
166
+ message: typeof n.message == "string" ? n.message : void 0,
167
+ type: typeof n.type == "string" ? n.type : void 0
167
168
  });
168
169
  break;
169
170
  }
170
171
  case "stripe:resize":
171
- typeof n.height == "number" && (d.value = n.height);
172
+ typeof a.height == "number" && (d.value = a.height);
172
173
  break;
173
174
  case "stripe:submit:success":
174
- typeof n.confirmationTokenId == "string" && s("submit-success", n.confirmationTokenId);
175
+ typeof a.confirmationTokenId == "string" && c("submit-success", a.confirmationTokenId);
175
176
  break;
176
177
  case "stripe:submit:error": {
177
- const u = l(n.error) ? n.error : {};
178
- s("submit-error", {
179
- message: typeof u.message == "string" ? u.message : void 0,
180
- type: typeof u.type == "string" ? u.type : void 0,
181
- code: typeof u.code == "string" ? u.code : void 0
178
+ const n = y(a.error) ? a.error : {};
179
+ c("submit-error", {
180
+ message: typeof n.message == "string" ? n.message : void 0,
181
+ type: typeof n.type == "string" ? n.type : void 0,
182
+ code: typeof n.code == "string" ? n.code : void 0
182
183
  });
183
184
  break;
184
185
  }
185
186
  }
186
187
  }
187
- return M(() => {
188
- const a = new Blob([re], { type: "text/html" });
189
- g.value = URL.createObjectURL(a), window.addEventListener("message", c);
190
- }), U(() => {
191
- window.removeEventListener("message", c), g.value && URL.revokeObjectURL(g.value);
188
+ return L(() => {
189
+ const i = new Blob([oe], { type: "text/html" });
190
+ E.value = URL.createObjectURL(i), window.addEventListener("message", m);
191
+ }), M(() => {
192
+ window.removeEventListener("message", m), E.value && URL.revokeObjectURL(E.value);
192
193
  }), B(
193
194
  () => t.options,
194
- (a, n) => {
195
- Z(a, n) || h();
195
+ (i, a) => {
196
+ W(i, a) || S();
196
197
  },
197
198
  { deep: !0 }
198
- ), (a, n) => (I(), $("iframe", {
199
+ ), (i, a) => (v(), Y("iframe", {
199
200
  ref_key: "iframeRef",
200
- ref: p,
201
- src: g.value,
201
+ ref: u,
202
+ src: E.value,
202
203
  height: d.value || void 0,
203
204
  frameborder: "0",
204
205
  style: { width: "100%", display: "block", border: "none" },
205
206
  title: "Payment form",
206
- onLoad: h
207
- }, null, 40, ne));
207
+ onLoad: S
208
+ }, null, 40, ie));
208
209
  }
209
- }), A = { link: "never" }, k = {
210
+ }), w = { link: "never" }, C = {
210
211
  variables: { borderRadius: "4px", colorBackground: "rgba(243, 244, 246, 0.5)" },
211
212
  rules: {
212
213
  ".TermsText": { fontSize: "14px" },
@@ -217,41 +218,41 @@ body { overflow: hidden; }
217
218
  }
218
219
  }
219
220
  };
220
- function oe(m, f) {
221
+ function ce(p, I) {
221
222
  return {
222
223
  billingDetails: {
223
224
  address: { country: "never" },
224
- ...m ? { email: "never" } : {},
225
- ...f ? { name: "never" } : {}
225
+ ...p ? { email: "never" } : {},
226
+ ...I ? { name: "never" } : {}
226
227
  }
227
228
  };
228
229
  }
229
- function ie({
230
- amount: m,
231
- email: f,
232
- name: E,
230
+ function me({
231
+ amount: p,
232
+ email: I,
233
+ name: A,
233
234
  variant: t,
234
- storePaymentMethod: s = !1
235
+ storePaymentMethod: c = !1
235
236
  }) {
236
- const p = m.currency.toLowerCase(), d = oe(f, E);
237
+ const u = p.currency.toLowerCase(), d = ce(I, A);
237
238
  return t === "TOKENIZE" ? {
238
239
  mode: "setup",
239
- currency: p,
240
+ currency: u,
240
241
  setup_future_usage: "off_session",
241
- wallets: A,
242
+ wallets: w,
242
243
  fields: d,
243
- appearance: k
244
+ appearance: C
244
245
  } : {
245
246
  mode: "payment",
246
- currency: p,
247
- amount: G(m).value,
248
- ...s ? { setup_future_usage: "off_session" } : {},
249
- wallets: A,
247
+ currency: u,
248
+ amount: V(p).value,
249
+ ...c ? { setup_future_usage: "off_session" } : {},
250
+ wallets: w,
250
251
  fields: d,
251
- appearance: k
252
+ appearance: C
252
253
  };
253
254
  }
254
- const v = "STRIPE", fe = /* @__PURE__ */ C({
255
+ const R = "STRIPE", ge = /* @__PURE__ */ D({
255
256
  __name: "PaymentIntegrationFormStripe",
256
257
  props: {
257
258
  email: { type: String },
@@ -270,219 +271,289 @@ const v = "STRIPE", fe = /* @__PURE__ */ C({
270
271
  redirectsOnSuccess: { type: Boolean }
271
272
  },
272
273
  emits: ["select", "payment-failed", "payment-success", "ready"],
273
- setup(m, { expose: f, emit: E }) {
274
- const t = m, s = E;
275
- f({ submit: u });
276
- const p = _(!1), d = _(), g = _(), h = w(
274
+ setup(p, { expose: I, emit: A }) {
275
+ const t = p, c = A;
276
+ I({ submit: k });
277
+ const u = g(!1), d = g(), E = g(), S = h(
277
278
  () => t.storePaymentMethod ?? t.forceStorePaymentMethod ?? !1
278
- ), O = w(
279
- () => ie({
279
+ ), O = h(
280
+ () => me({
280
281
  amount: t.amount,
281
282
  email: t.email,
282
283
  name: t.name,
283
284
  variant: t.variant,
284
- storePaymentMethod: h.value
285
+ storePaymentMethod: S.value
285
286
  })
286
- ), l = _(null), c = te(), { authorizePayment: a } = X(), { tokenizePaymentMethod: n } = ee(), R = w(
287
+ ), y = g(null), m = re(), { authorizePayment: i } = ee(), { tokenizePaymentMethod: a } = te(), _ = h(
287
288
  () => {
288
289
  var e, r;
289
290
  return (r = (e = t.paymentMethodOptionResponseEntry.integration.payment_gateway) == null ? void 0 : e.stripe) == null ? void 0 : r.public_key;
290
291
  }
291
292
  );
292
- function u() {
293
- L().catch((e) => {
294
- c.error(
293
+ function n(e) {
294
+ return ne({
295
+ gateway: R,
296
+ paymentAcceptorId: t.paymentMethodOptionResponseEntry.payment_acceptor.id,
297
+ variant: t.variant,
298
+ invoiceId: t.invoiceId,
299
+ customerId: t.customerId,
300
+ ...e
301
+ });
302
+ }
303
+ function k() {
304
+ U().catch((e) => {
305
+ m.error(
295
306
  "STRIPE_SUBMIT_FAILED",
296
307
  "Unexpected error during Stripe submission",
297
- {},
308
+ n({ reason: "STRIPE_SUBMIT_FAILED", cause: e }),
298
309
  e
299
310
  );
300
311
  });
301
312
  }
302
- async function L() {
313
+ async function U() {
303
314
  var r;
304
- await t.validateOnSubmit() && ((r = g.value) == null || r.triggerSubmit());
315
+ await t.validateOnSubmit() && ((r = E.value) == null || r.triggerSubmit());
305
316
  }
306
- function F(e) {
307
- return new Promise((r, i) => {
317
+ function x(e) {
318
+ return new Promise((r, s) => {
308
319
  if (window.Stripe) {
309
320
  r(window.Stripe(e));
310
321
  return;
311
322
  }
312
323
  const o = document.createElement("script");
313
- o.src = D, o.onload = () => {
324
+ o.src = F, o.onload = () => {
314
325
  if (!window.Stripe) {
315
- i(new Error("Stripe not available after script load"));
326
+ s(new Error("Stripe not available after script load"));
316
327
  return;
317
328
  }
318
329
  r(window.Stripe(e));
319
- }, o.onerror = () => i(new Error("Failed to load Stripe.js")), document.head.appendChild(o);
330
+ }, o.onerror = () => s(new Error("Failed to load Stripe.js")), document.head.appendChild(o);
320
331
  });
321
332
  }
322
- async function x() {
323
- if (l.value)
324
- return l.value;
325
- const e = R.value;
333
+ async function Z() {
334
+ if (y.value)
335
+ return y.value;
336
+ const e = _.value;
326
337
  if (!e)
327
338
  throw new Error("Missing Stripe public key");
328
- const r = await F(e);
329
- return l.value = r, r;
339
+ const r = await x(e);
340
+ return y.value = r, r;
330
341
  }
331
342
  async function K(e) {
332
- const r = t.paymentMethodOptionResponseEntry.payment_acceptor.id, i = H({
343
+ const r = t.paymentMethodOptionResponseEntry.payment_acceptor.id, s = Q({
333
344
  paymentAcceptorId: r,
334
345
  redirectUrl: window.location.href
335
346
  });
336
347
  if (t.variant === "AUTHORIZE") {
337
348
  try {
338
- const o = await a({
349
+ const o = await i({
339
350
  payment_acceptor_id: r,
340
351
  ...t.customerId ? { customer_id: t.customerId } : {},
341
- payment_gateway_variant: v,
352
+ payment_gateway_variant: R,
342
353
  stripe: { confirmation_token_id: e },
343
354
  amount: t.amount,
344
355
  ...t.context && t.context.type !== "CHARGE_ON_DEMAND" ? { context: t.context } : {},
345
- return_url: i
356
+ return_url: s
346
357
  });
347
- await N(o);
358
+ await P(o);
348
359
  } catch (o) {
349
- c.error(
360
+ m.error(
350
361
  "PAYMENT_AUTHORIZATION_FAILED",
351
362
  `Failed payment authorization for payment acceptor with id ${r}`,
352
- { error: o }
353
- ), y({ code: "UNKNOWN_ERROR", message: "Payment authorization failed", error: o });
363
+ n({ reason: "PAYMENT_AUTHORIZATION_FAILED", cause: o }),
364
+ o
365
+ ), l({
366
+ code: "AUTHORIZATION_FAILED",
367
+ message: "Payment authorization failed",
368
+ error: o
369
+ });
354
370
  }
355
371
  return;
356
372
  }
357
373
  if (t.variant === "TOKENIZE") {
358
374
  if (!t.customerId) {
359
- c.error(
375
+ m.error(
360
376
  "TOKENIZATION_FAILED",
361
- `Missing customer id for payment acceptor with id ${r}`
362
- );
377
+ `Missing customer id for payment acceptor with id ${r}`,
378
+ n({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
379
+ ), l({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
363
380
  return;
364
381
  }
365
382
  try {
366
- const o = await n({
383
+ const o = await a({
367
384
  customer_id: t.customerId,
368
385
  payment_acceptor_id: r,
369
- payment_gateway_variant: v,
386
+ payment_gateway_variant: R,
370
387
  stripe: { confirmation_token_id: e },
371
- return_url: i
388
+ return_url: s
372
389
  });
373
- await N(o);
390
+ await P(o);
374
391
  } catch (o) {
375
- c.error(
392
+ m.error(
376
393
  "TOKENIZATION_FAILED",
377
394
  `Tokenization failed for payment acceptor with id ${r}`,
378
- { error: o }
379
- ), y({ code: "UNKNOWN_ERROR", message: "Tokenization failed", error: o });
395
+ n({ reason: "TOKENIZATION_FAILED", cause: o }),
396
+ o
397
+ ), l({ code: "TOKENIZE_FAILED", message: "Tokenization failed", error: o });
380
398
  }
381
399
  }
382
400
  }
383
- async function N(e) {
401
+ async function P(e) {
384
402
  var r;
385
- if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === v) {
386
- const i = e.action.client_secret || ((r = e.action.data) == null ? void 0 : r.client_secret);
387
- if (!i) {
388
- c.error(
403
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === R) {
404
+ const s = e.action.client_secret || ((r = e.action.data) == null ? void 0 : r.client_secret);
405
+ if (!s) {
406
+ m.error(
389
407
  "STRIPE_ACTION_FAILED",
390
- "Missing client_secret in Stripe ACTION_REQUIRED response"
391
- ), y({ code: "UNKNOWN_ERROR", message: "Payment action failed", error: e });
408
+ "Missing client_secret in Stripe ACTION_REQUIRED response",
409
+ n({
410
+ reason: "STRIPE_ACTION_MISSING_CLIENT_SECRET",
411
+ extra: { paymentStatus: e.status }
412
+ })
413
+ ), l({
414
+ code: "AUTHORIZATION_FAILED",
415
+ message: "Payment action failed",
416
+ error: e
417
+ });
392
418
  return;
393
419
  }
394
420
  let o;
395
421
  try {
396
- o = await x();
397
- } catch (P) {
398
- c.error("STRIPE_ACTION_FAILED", "Failed to load Stripe.js", { error: P }), y({ code: "UNKNOWN_ERROR", message: "Payment action failed", error: P });
422
+ o = await Z();
423
+ } catch (T) {
424
+ m.error(
425
+ "STRIPE_ACTION_FAILED",
426
+ "Failed to load Stripe.js",
427
+ n({ reason: "STRIPE_SDK_LOAD_FAILED", cause: T }),
428
+ T
429
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed", error: T });
399
430
  return;
400
431
  }
401
- const { error: b } = await o.handleNextAction({ clientSecret: i });
402
- if (b) {
403
- c.error("STRIPE_ACTION_FAILED", "Stripe handleNextAction failed", { error: b }), y({ code: "UNKNOWN_ERROR", message: "Payment action failed", error: b });
432
+ const { error: f } = await o.handleNextAction({ clientSecret: s });
433
+ if (f) {
434
+ m.error(
435
+ "STRIPE_ACTION_FAILED",
436
+ "Stripe handleNextAction failed",
437
+ n({
438
+ reason: "STRIPE_NEXT_ACTION_FAILED",
439
+ cause: f,
440
+ extra: { stripeErrorCode: f.code, stripeErrorType: f.type }
441
+ }),
442
+ f
443
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed", error: f });
404
444
  return;
405
445
  }
406
- p.value = !0, s("payment-success");
446
+ u.value = !0, c("payment-success");
407
447
  return;
408
448
  }
409
449
  if (e.status === "SUCCESS") {
410
- p.value = !0, s("payment-success");
450
+ u.value = !0, c("payment-success");
411
451
  return;
412
452
  }
413
- c.error("STRIPE_ACTION_FAILED", "Unexpected payment result status", { error: e }), y({ code: "UNKNOWN_ERROR", message: "Payment failed", error: e });
453
+ m.error(
454
+ "STRIPE_ACTION_FAILED",
455
+ "Unexpected payment result status",
456
+ n({
457
+ reason: "STRIPE_UNEXPECTED_PAYMENT_STATUS",
458
+ extra: { paymentStatus: e.status }
459
+ })
460
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: e });
414
461
  }
415
- async function W() {
462
+ async function H() {
416
463
  const e = t.paymentMethodOptionResponseEntry.payment_acceptor.id;
417
- if (S(Q) !== e) return;
418
- const i = S("redirect_status"), o = S("payment_intent_client_secret"), b = S("setup_intent_client_secret");
419
- if (!(!i || !o && !b)) {
420
- if (i === "succeeded") {
421
- p.value = !0, s("payment-success");
422
- return;
423
- }
424
- c.error("STRIPE_REDIRECT_RETURN_FAILED", "Stripe redirect returned non-succeeded status", {
425
- redirectStatus: i
426
- }), y({
427
- code: "UNKNOWN_ERROR",
428
- message: "Payment failed",
429
- error: new globalThis.Error(`Stripe redirect returned status: ${i}`)
430
- });
464
+ if (b(X) !== e) return;
465
+ const s = b("redirect_status"), o = b("payment_intent_client_secret"), f = b("setup_intent_client_secret");
466
+ if (!s || !o && !f) return;
467
+ if (s === "succeeded") {
468
+ u.value = !0, c("payment-success");
469
+ return;
431
470
  }
471
+ const T = new globalThis.Error(
472
+ `Stripe redirect returned status: ${s}`
473
+ );
474
+ m.error(
475
+ "STRIPE_REDIRECT_RETURN_FAILED",
476
+ "Stripe redirect returned non-succeeded status",
477
+ n({
478
+ reason: "STRIPE_REDIRECT_RETURN_FAILED",
479
+ extra: { redirectStatus: s }
480
+ }),
481
+ T
482
+ ), l({
483
+ code: "AUTHORIZATION_FAILED",
484
+ message: "Payment failed",
485
+ error: T
486
+ });
432
487
  }
433
488
  function j() {
434
- s("select", {
489
+ c("select", {
435
490
  paymentMethodType: "card",
436
- paymentGatewayVariant: v
437
- }), s("ready");
491
+ paymentGatewayVariant: R
492
+ }), c("ready");
438
493
  }
439
494
  function z(e) {
440
- y({
441
- code: "UNKNOWN_ERROR",
495
+ m.error(
496
+ "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
497
+ "Failed to load the Stripe payment form",
498
+ n({
499
+ reason: "STRIPE_FORM_LOAD_FAILED",
500
+ cause: e,
501
+ extra: { stripeErrorType: e.type }
502
+ }),
503
+ e
504
+ ), l({
505
+ code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
442
506
  message: e.message ?? "Failed to load payment form",
443
507
  error: e
444
508
  });
445
509
  }
446
- function y(e) {
447
- d.value = e, s("payment-failed", e);
510
+ function l(e) {
511
+ const r = ae(e);
512
+ d.value = r, c("payment-failed", r);
448
513
  }
449
- return M(() => {
450
- W().catch((e) => {
451
- c.error("STRIPE_REDIRECT_RETURN_FAILED", "handleRedirectReturn threw unexpectedly", {
452
- error: e
453
- });
514
+ return L(() => {
515
+ H().catch((e) => {
516
+ m.error(
517
+ "STRIPE_REDIRECT_RETURN_FAILED",
518
+ "handleRedirectReturn threw unexpectedly",
519
+ n({ reason: "STRIPE_REDIRECT_RETURN_THREW", cause: e }),
520
+ e
521
+ );
454
522
  });
455
- }), U(() => {
456
- l.value = null;
457
- }), (e, r) => p.value ? (I(), T(q, {
523
+ }), M(() => {
524
+ y.value = null;
525
+ }), (e, r) => u.value ? (v(), N(q, {
458
526
  key: 0,
459
- variant: m.variant,
460
- redirecting: m.redirectsOnSuccess
461
- }, null, 8, ["variant", "redirecting"])) : d.value ? (I(), T(J, {
527
+ variant: p.variant,
528
+ redirecting: p.redirectsOnSuccess
529
+ }, null, 8, ["variant", "redirecting"])) : d.value ? (v(), N(J, {
462
530
  key: 1,
463
531
  error: d.value
464
- }, null, 8, ["error"])) : R.value ? (I(), T(ae, {
532
+ }, null, 8, ["error"])) : _.value ? (v(), N(se, {
465
533
  key: 2,
466
534
  ref_key: "frameRef",
467
- ref: g,
468
- "public-key": R.value,
535
+ ref: E,
536
+ "public-key": _.value,
469
537
  options: O.value,
470
- "country-code": m.countryCode,
471
- email: m.email,
472
- name: m.name,
538
+ "country-code": p.countryCode,
539
+ email: p.email,
540
+ name: p.name,
473
541
  onReady: j,
474
- onChange: r[0] || (r[0] = (i) => s("select", {
475
- paymentMethodType: i,
476
- paymentGatewayVariant: v
542
+ onChange: r[0] || (r[0] = (s) => c("select", {
543
+ paymentMethodType: s,
544
+ paymentGatewayVariant: R
477
545
  })),
478
546
  onLoaderror: z,
479
547
  onSubmitSuccess: K,
480
- onSubmitError: r[1] || (r[1] = (i) => V(c).error("STRIPE_CONFIRMATION_TOKEN_FAILED", "Stripe submission failed", {
481
- error: i
482
- }))
483
- }, null, 8, ["public-key", "options", "country-code", "email", "name"])) : Y("", !0);
548
+ onSubmitError: r[1] || (r[1] = (s) => G(m).error(
549
+ "STRIPE_CONFIRMATION_TOKEN_FAILED",
550
+ "Stripe submission failed",
551
+ n({ reason: "STRIPE_CONFIRMATION_TOKEN_FAILED", cause: s }),
552
+ s
553
+ ))
554
+ }, null, 8, ["public-key", "options", "country-code", "email", "name"])) : $("", !0);
484
555
  }
485
556
  });
486
557
  export {
487
- fe as default
558
+ ge as default
488
559
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p, computed as A, openBlock as i, createElementBlock as x, createElementVNode as g, normalizeClass as k, createCommentVNode as m, renderSlot as B, createVNode as l, createBlock as d, withCtx as r, createTextVNode as f, toDisplayString as y, unref as c, shallowRef as S, watch as $, toValue as L, Fragment as R, mergeProps as C } from "vue";
2
2
  import { _ } from "./FormMessage.vue.es-jG3fQZms.mjs";
3
- import { a as O } from "./ContextMenu.vue.es-C6TKlSXs.mjs";
4
- import { u as N, _ as M } from "./customElements-Com2NiGU.mjs";
5
- import { _ as T } from "./Chip.vue.es-CXG8o1Qf.mjs";
3
+ import { a as O } from "./ContextMenu.vue.es-DL1M7pcr.mjs";
4
+ import { u as N, _ as M } from "./customElements-Df6dGrN-.mjs";
5
+ import { _ as T } from "./Chip.vue.es-DGbc4L_D.mjs";
6
6
  const I = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e", V = { class: "shrink-0" }, Y = { class: "flex items-center justify-center overflow-clip rounded" }, z = ["src", "alt", "width", "height"], G = { class: "grow" }, H = { key: 0 }, U = {
7
7
  key: 0,
8
8
  class: "pt-3"