@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31

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 (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,15 +1,16 @@
1
- import { defineComponent as q, ref as T, onMounted as X, onBeforeUnmount as Q, watch as me, openBlock as M, createElementBlock as pe, unref as de, computed as x, createBlock as Z, createCommentVNode as le } from "vue";
2
- import { a as K } from "./useService-BwzIBIRp.mjs";
3
- import { a as ye, e as Ee } from "./customElements-DK4GKNJG.mjs";
4
- import { t as fe } from "./amount-CondixVt.mjs";
5
- import { _ as Ie } from "./PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs";
6
- import { _ as _e } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs";
7
- import { c as ge } from "./payments-CKpU1K3t.mjs";
8
- import { c as Te } from "./paymentMethods-8w-ccfY_.mjs";
9
- import { f as Re, e as he, c as be } from "./usePaymentFormHold-Cwdr-vyc.mjs";
10
- import { i as Se, a as ve, b as $ } from "./paymentOutcome-B6sW1eCV.mjs";
11
- import { c as Ae, a as Oe } from "./paymentFailure-QZdZHBhf.mjs";
12
- const J = "https://js.stripe.com/dahlia/stripe.js", Ne = `<!DOCTYPE html>
1
+ import { defineComponent as q, ref as T, onMounted as X, onBeforeUnmount as Q, watch as de, openBlock as M, createElementBlock as le, unref as ye, computed as x, createBlock as Z, createCommentVNode as fe } from "vue";
2
+ import { a as K } from "./useService-DayNZhPh.mjs";
3
+ import { a as Ee, e as Ie } from "./customElements-d7Bhfqi_.mjs";
4
+ import { t as _e } from "./amount-CondixVt.mjs";
5
+ import { _ as ge } from "./PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs";
6
+ import { _ as Te } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs";
7
+ import { c as Re } from "./payments-Dy81gmkC.mjs";
8
+ import { c as he } from "./paymentMethods-CG1fcG2v.mjs";
9
+ import { c as be } from "./adyen-D4em6EgU.mjs";
10
+ import { a as Se, c as ve } from "./paymentRedirect-DaS8Kccc.mjs";
11
+ import { i as Ae, a as Oe, b as $ } from "./paymentOutcome-D59QkGfm.mjs";
12
+ import { c as Ne, a as we } from "./paymentFailure-QZdZHBhf.mjs";
13
+ const J = "https://js.stripe.com/dahlia/stripe.js", Pe = `<!DOCTYPE html>
13
14
  <html>
14
15
  <head>
15
16
  <meta charset="UTF-8">
@@ -153,23 +154,23 @@ body { overflow: hidden; }
153
154
  }
154
155
  }
155
156
  };
156
- function we(a, s) {
157
+ function Ce(o, s) {
157
158
  return {
158
159
  billingDetails: {
159
160
  address: { country: "never" },
160
- ...a ? { email: "never" } : {},
161
+ ...o ? { email: "never" } : {},
161
162
  ...s ? { name: "never" } : {}
162
163
  }
163
164
  };
164
165
  }
165
- function Pe({
166
- amount: a,
166
+ function De({
167
+ amount: o,
167
168
  email: s,
168
- name: f,
169
+ name: E,
169
170
  variant: t,
170
171
  storePaymentMethod: c = !1
171
172
  }) {
172
- const R = a.currency.toLowerCase(), d = we(s, f);
173
+ const R = o.currency.toLowerCase(), d = Ce(s, E);
173
174
  return t === "TOKENIZE" ? {
174
175
  mode: "setup",
175
176
  currency: R,
@@ -180,15 +181,15 @@ function Pe({
180
181
  } : {
181
182
  mode: "payment",
182
183
  currency: R,
183
- amount: fe(a).value,
184
+ amount: _e(o).value,
184
185
  ...c ? { setup_future_usage: "off_session" } : {},
185
186
  wallets: G,
186
187
  fields: d,
187
188
  appearance: V
188
189
  };
189
190
  }
190
- function Ce(a, s) {
191
- if (!(a.mode !== s.mode || !K(a.fields, s.fields) || !K(a.wallets, s.wallets)))
191
+ function Me(o, s) {
192
+ if (!(o.mode !== s.mode || !K(o.fields, s.fields) || !K(o.wallets, s.wallets)))
192
193
  return {
193
194
  currency: s.currency,
194
195
  ...s.mode === "payment" ? { amount: s.amount } : {},
@@ -196,10 +197,10 @@ function Ce(a, s) {
196
197
  ...s.appearance ? { appearance: s.appearance } : {}
197
198
  };
198
199
  }
199
- function z(a) {
200
- return a === "null" ? "*" : a;
200
+ function z(o) {
201
+ return o === "null" ? "*" : o;
201
202
  }
202
- const De = {
203
+ const Fe = {
203
204
  api_connection_error: !0,
204
205
  api_error: !0,
205
206
  authentication_error: !0,
@@ -209,19 +210,19 @@ const De = {
209
210
  rate_limit_error: !0,
210
211
  validation_error: !0
211
212
  };
212
- function H(a) {
213
- return typeof a == "string" && Object.hasOwn(De, a);
213
+ function H(o) {
214
+ return typeof o == "string" && Object.hasOwn(Fe, o);
214
215
  }
215
- function C(a) {
216
- if (typeof a != "object" || a === null) return {};
217
- const s = Reflect.get(a, "code"), f = Reflect.get(a, "type"), t = Reflect.get(a, "message");
216
+ function C(o) {
217
+ if (typeof o != "object" || o === null) return {};
218
+ const s = Reflect.get(o, "code"), E = Reflect.get(o, "type"), t = Reflect.get(o, "message");
218
219
  return {
219
220
  code: typeof s == "string" ? s : void 0,
220
- type: H(f) ? f : void 0,
221
+ type: H(E) ? E : void 0,
221
222
  message: typeof t == "string" ? t : void 0
222
223
  };
223
224
  }
224
- const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
225
+ const Le = ["src", "height", "title"], Ue = /* @__PURE__ */ q({
225
226
  __name: "PaymentIntegrationFormStripeFrame",
226
227
  props: {
227
228
  publicKey: { type: String },
@@ -232,14 +233,14 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
232
233
  collapsed: { type: Boolean }
233
234
  },
234
235
  emits: ["ready", "change", "loaderror", "submit-success", "submit-error"],
235
- setup(a, { expose: s, emit: f }) {
236
- const t = a, c = f, { $t: R } = ye();
236
+ setup(o, { expose: s, emit: E }) {
237
+ const t = o, c = E, { $t: R } = Ee();
237
238
  s({ triggerSubmit: F });
238
239
  const d = T(), h = T(0), b = T();
239
240
  let v = !1, w = 0, S;
240
241
  function I() {
241
- var n, o;
242
- v = !1, w += 1, S = t.options, (o = (n = d.value) == null ? void 0 : n.contentWindow) == null || o.postMessage(
242
+ var n, a;
243
+ v = !1, w += 1, S = t.options, (a = (n = d.value) == null ? void 0 : n.contentWindow) == null || a.postMessage(
243
244
  {
244
245
  type: "stripe:init",
245
246
  initId: w,
@@ -253,16 +254,16 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
253
254
  z(window.origin)
254
255
  );
255
256
  }
256
- function u(n, o) {
257
+ function u(n, a) {
257
258
  var _, p;
258
259
  S = n, (p = (_ = d.value) == null ? void 0 : _.contentWindow) == null || p.postMessage(
259
- { type: "stripe:update", options: o },
260
+ { type: "stripe:update", options: a },
260
261
  z(window.origin)
261
262
  );
262
263
  }
263
264
  function F() {
264
- var o;
265
- const n = (o = d.value) == null ? void 0 : o.contentWindow;
265
+ var a;
266
+ const n = (a = d.value) == null ? void 0 : a.contentWindow;
266
267
  return !v || !n ? !1 : (n.postMessage(
267
268
  {
268
269
  type: "stripe:submit",
@@ -278,22 +279,22 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
278
279
  }
279
280
  function A(n) {
280
281
  if (!d.value || n.source !== d.value.contentWindow || !P(n.data)) return;
281
- const o = n.data, _ = o.type;
282
+ const a = n.data, _ = a.type;
282
283
  if (!(typeof _ != "string" || !_.startsWith("stripe:")))
283
284
  switch (_) {
284
285
  case "stripe:ready":
285
- o.initId === w && (v = !0), c("ready");
286
+ a.initId === w && (v = !0), c("ready");
286
287
  break;
287
288
  case "stripe:change":
288
289
  c(
289
290
  "change",
290
- typeof o.paymentMethodType == "string" ? o.paymentMethodType : "card",
291
- o.empty === !0,
292
- o.collapsed === !0
291
+ typeof a.paymentMethodType == "string" ? a.paymentMethodType : "card",
292
+ a.empty === !0,
293
+ a.collapsed === !0
293
294
  );
294
295
  break;
295
296
  case "stripe:loaderror": {
296
- const p = P(o.error) ? o.error : {};
297
+ const p = P(a.error) ? a.error : {};
297
298
  c("loaderror", {
298
299
  message: typeof p.message == "string" ? p.message : void 0,
299
300
  type: H(p.type) ? p.type : void 0
@@ -304,13 +305,13 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
304
305
  I();
305
306
  break;
306
307
  case "stripe:resize":
307
- typeof o.height == "number" && (h.value = o.height);
308
+ typeof a.height == "number" && (h.value = a.height);
308
309
  break;
309
310
  case "stripe:submit:success":
310
- typeof o.confirmationTokenId == "string" ? c("submit-success", o.confirmationTokenId) : c("submit-error", { message: "Stripe returned no confirmation token" });
311
+ typeof a.confirmationTokenId == "string" ? c("submit-success", a.confirmationTokenId) : c("submit-error", { message: "Stripe returned no confirmation token" });
311
312
  break;
312
313
  case "stripe:submit:error": {
313
- const p = P(o.error) ? o.error : {};
314
+ const p = P(a.error) ? a.error : {};
314
315
  c("submit-error", {
315
316
  message: typeof p.message == "string" ? p.message : void 0,
316
317
  type: H(p.type) ? p.type : void 0,
@@ -321,34 +322,34 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
321
322
  }
322
323
  }
323
324
  return X(() => {
324
- const n = new Blob([Ne], { type: "text/html" });
325
+ const n = new Blob([Pe], { type: "text/html" });
325
326
  b.value = URL.createObjectURL(n), window.addEventListener("message", A);
326
327
  }), Q(() => {
327
328
  window.removeEventListener("message", A), b.value && URL.revokeObjectURL(b.value);
328
- }), me(
329
+ }), de(
329
330
  () => t.options,
330
331
  (n) => {
331
332
  if (!S || K(n, S)) return;
332
- const o = Ce(S, n);
333
- o ? u(n, o) : I();
333
+ const a = Me(S, n);
334
+ a ? u(n, a) : I();
334
335
  },
335
336
  { deep: !0 }
336
- ), (n, o) => (M(), pe("iframe", {
337
+ ), (n, a) => (M(), le("iframe", {
337
338
  ref_key: "iframeRef",
338
339
  ref: d,
339
340
  src: b.value,
340
341
  height: h.value || void 0,
341
342
  frameborder: "0",
342
343
  style: { width: "100%", display: "block", border: "none" },
343
- title: de(R)({
344
+ title: ye(R)({
344
345
  defaultMessage: "Payment form",
345
346
  id: "payment_integration_form_stripe.frame_title",
346
347
  description: "Accessible name of the frame that holds the Stripe payment fields"
347
348
  }),
348
349
  onLoad: I
349
- }, null, 40, Me));
350
+ }, null, 40, Le));
350
351
  }
351
- }), N = "STRIPE", We = /* @__PURE__ */ q({
352
+ }), N = "STRIPE", Ve = /* @__PURE__ */ q({
352
353
  __name: "PaymentIntegrationFormStripe",
353
354
  props: {
354
355
  email: { type: String },
@@ -369,29 +370,29 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
369
370
  collapsed: { type: Boolean }
370
371
  },
371
372
  emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
372
- setup(a, { expose: s, emit: f }) {
373
- const t = a, c = f;
374
- s({ submit: o });
375
- const R = T(!1), d = T(), h = Re(
373
+ setup(o, { expose: s, emit: E }) {
374
+ const t = o, c = E;
375
+ s({ submit: _ });
376
+ const R = T(!1), d = T(), h = Se(
376
377
  t.paymentMethodOptionResponseEntry.payment_acceptor.id
377
378
  ), b = T(!!h), v = T(), w = x(
378
379
  () => t.storePaymentMethod ?? t.forceStorePaymentMethod ?? !1
379
380
  ), S = x(
380
- () => Pe({
381
+ () => De({
381
382
  amount: t.amount,
382
383
  email: t.email,
383
384
  name: t.name,
384
385
  variant: t.variant,
385
386
  storePaymentMethod: w.value
386
387
  })
387
- ), I = T(null), u = Ee(), { authorizePayment: F } = ge(), { tokenizePaymentMethod: P } = Te(), A = x(
388
+ ), I = T(null), u = Ie(), { authorizePayment: F } = Re(), { tokenizePaymentMethod: P } = he(), A = x(
388
389
  () => {
389
390
  var e, r;
390
391
  return (r = (e = t.paymentMethodOptionResponseEntry.integration.payment_gateway) == null ? void 0 : e.stripe) == null ? void 0 : r.public_key;
391
392
  }
392
393
  );
393
394
  function n(e) {
394
- return Ae({
395
+ return Ne({
395
396
  gateway: N,
396
397
  paymentAcceptorId: t.paymentMethodOptionResponseEntry.payment_acceptor.id,
397
398
  variant: t.variant,
@@ -400,22 +401,23 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
400
401
  ...e
401
402
  });
402
403
  }
403
- function o() {
404
- _().catch((e) => {
405
- u.error(
404
+ let a = !1;
405
+ function _() {
406
+ a || (a = !0, p().catch((e) => {
407
+ a = !1, u.error(
406
408
  "STRIPE_SUBMIT_FAILED",
407
409
  "Unexpected error during Stripe submission",
408
410
  n({ reason: "STRIPE_SUBMIT_FAILED", cause: e }),
409
411
  e
410
412
  ), c("invalid");
411
- });
413
+ }));
412
414
  }
413
- async function _() {
415
+ async function p() {
414
416
  var r;
415
- (!await t.validateOnSubmit() || !((r = v.value) != null && r.triggerSubmit())) && c("invalid");
417
+ (!await t.validateOnSubmit() || !((r = v.value) != null && r.triggerSubmit())) && (a = !1, c("invalid"));
416
418
  }
417
- function p(e) {
418
- if (e.type === "validation_error") {
419
+ function ee(e) {
420
+ if (a = !1, e.type === "validation_error") {
419
421
  c("invalid");
420
422
  return;
421
423
  }
@@ -430,7 +432,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
430
432
  error: e
431
433
  });
432
434
  }
433
- function ee(e) {
435
+ function te(e) {
434
436
  return new Promise((r, m) => {
435
437
  if (window.Stripe) {
436
438
  r(window.Stripe(e));
@@ -452,12 +454,19 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
452
454
  const e = A.value;
453
455
  if (!e)
454
456
  throw new Error("Missing Stripe public key");
455
- const r = await ee(e);
457
+ const r = await te(e);
456
458
  return I.value = r, r;
457
459
  }
458
- async function te(e) {
460
+ async function re(e) {
461
+ try {
462
+ await ne(e);
463
+ } finally {
464
+ a = !1;
465
+ }
466
+ }
467
+ async function ne(e) {
459
468
  c("submitting");
460
- const r = t.paymentMethodOptionResponseEntry.payment_acceptor.id, m = he({
469
+ const r = t.paymentMethodOptionResponseEntry.payment_acceptor.id, m = be({
461
470
  paymentAcceptorId: r,
462
471
  redirectUrl: window.location.href
463
472
  });
@@ -480,7 +489,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
480
489
  n({ reason: "PAYMENT_AUTHORIZATION_FAILED", cause: i }),
481
490
  i
482
491
  ), l({
483
- code: Se(i) ? "PAYMENT_OUTCOME_UNCONFIRMED" : "AUTHORIZATION_FAILED",
492
+ code: Ae(i) ? "PAYMENT_OUTCOME_UNCONFIRMED" : "AUTHORIZATION_FAILED",
484
493
  message: "Payment authorization failed",
485
494
  error: i
486
495
  });
@@ -537,37 +546,37 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
537
546
  let B;
538
547
  try {
539
548
  B = await Y();
540
- } catch (E) {
549
+ } catch (f) {
541
550
  u.error(
542
551
  "STRIPE_ACTION_FAILED",
543
552
  "Failed to load Stripe.js",
544
- n({ reason: "STRIPE_SDK_LOAD_FAILED", cause: E }),
545
- E
546
- ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed", error: E });
553
+ n({ reason: "STRIPE_SDK_LOAD_FAILED", cause: f }),
554
+ f
555
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed", error: f });
547
556
  return;
548
557
  }
549
- const { error: D, paymentIntent: ce, setupIntent: ue } = await B.handleNextAction({ clientSecret: g }).catch((E) => {
550
- throw C(E);
558
+ const { error: D, paymentIntent: me, setupIntent: pe } = await B.handleNextAction({ clientSecret: g }).catch((f) => {
559
+ throw C(f);
551
560
  });
552
561
  if (D) {
553
- const E = C(D);
562
+ const f = C(D);
554
563
  u.error(
555
564
  "STRIPE_ACTION_FAILED",
556
565
  "Stripe handleNextAction failed",
557
566
  n({
558
567
  reason: "STRIPE_NEXT_ACTION_FAILED",
559
- cause: E,
568
+ cause: f,
560
569
  extra: { stripeErrorCode: D.code, stripeErrorType: D.type }
561
570
  }),
562
- E
571
+ f
563
572
  ), l({
564
573
  code: "AUTHORIZATION_FAILED",
565
574
  message: "Payment action failed",
566
- error: E
575
+ error: f
567
576
  });
568
577
  return;
569
578
  }
570
- const k = (i = ce ?? ue) == null ? void 0 : i.status, W = $(k);
579
+ const k = (i = me ?? pe) == null ? void 0 : i.status, W = $(k);
571
580
  W === "SUCCEEDED" ? L() : W === "UNCONFIRMED" ? U("STRIPE_NEXT_ACTION_UNCONFIRMED", { intentStatus: k }) : (u.error(
572
581
  "STRIPE_ACTION_FAILED",
573
582
  "Stripe handleNextAction left the payment incomplete",
@@ -578,7 +587,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
578
587
  ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed" }));
579
588
  return;
580
589
  }
581
- const r = ve(e);
590
+ const r = Oe(e);
582
591
  if (r === "SUCCEEDED") {
583
592
  L();
584
593
  return;
@@ -599,7 +608,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
599
608
  })
600
609
  ), l({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: e });
601
610
  }
602
- async function re({
611
+ async function ae({
603
612
  intent: e,
604
613
  clientSecret: r
605
614
  }) {
@@ -615,12 +624,12 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
615
624
  if (y.error) throw C(y.error);
616
625
  return y.setupIntent.status;
617
626
  }
618
- async function ne() {
627
+ async function oe() {
619
628
  if (!h) return;
620
629
  const { redirectStatus: e } = h;
621
630
  let r;
622
631
  try {
623
- r = await re(h);
632
+ r = await ae(h);
624
633
  } catch (y) {
625
634
  u.error(
626
635
  "STRIPE_REDIRECT_RETURN_FAILED",
@@ -638,7 +647,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
638
647
  });
639
648
  return;
640
649
  }
641
- be();
650
+ ve();
642
651
  const m = $(r);
643
652
  if (m === "SUCCEEDED") {
644
653
  L();
@@ -665,11 +674,11 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
665
674
  error: i
666
675
  });
667
676
  }
668
- function ae() {
677
+ function ie() {
669
678
  d.value = void 0;
670
679
  }
671
680
  let O;
672
- function oe(e, r, m) {
681
+ function se(e, r, m) {
673
682
  const i = r && m === ((O == null ? void 0 : O.isCollapsed) ?? t.collapsed === !0) && (O === void 0 || e === O.type);
674
683
  O = { type: e, isCollapsed: m }, c("select", {
675
684
  paymentMethodType: e,
@@ -677,15 +686,15 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
677
686
  ...i && { isAutomatic: !0 }
678
687
  });
679
688
  }
680
- function ie() {
681
- c("select", {
689
+ function ce() {
690
+ a = !1, c("select", {
682
691
  paymentMethodType: "card",
683
692
  paymentGatewayVariant: N,
684
693
  isAutomatic: !0
685
694
  }), c("ready");
686
695
  }
687
- function se(e) {
688
- u.error(
696
+ function ue(e) {
697
+ a = !1, u.error(
689
698
  "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
690
699
  "Failed to load the Stripe payment form",
691
700
  n({
@@ -701,7 +710,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
701
710
  });
702
711
  }
703
712
  function l(e) {
704
- const r = Oe(e);
713
+ const r = we(e);
705
714
  d.value = r, c("payment-failed", r);
706
715
  }
707
716
  function L() {
@@ -715,7 +724,7 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
715
724
  ), l({ code: "PAYMENT_OUTCOME_UNCONFIRMED", message: "Payment could not be confirmed" });
716
725
  }
717
726
  return X(() => {
718
- ne().catch((e) => {
727
+ oe().catch((e) => {
719
728
  u.error(
720
729
  "STRIPE_REDIRECT_RETURN_FAILED",
721
730
  "handleRedirectReturn threw unexpectedly",
@@ -727,32 +736,32 @@ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
727
736
  });
728
737
  }), Q(() => {
729
738
  I.value = null;
730
- }), (e, r) => R.value ? (M(), Z(Ie, {
739
+ }), (e, r) => R.value ? (M(), Z(ge, {
731
740
  key: 0,
732
- variant: a.variant,
733
- redirecting: a.redirectsOnSuccess
734
- }, null, 8, ["variant", "redirecting"])) : d.value ? (M(), Z(_e, {
741
+ variant: o.variant,
742
+ redirecting: o.redirectsOnSuccess
743
+ }, null, 8, ["variant", "redirecting"])) : d.value ? (M(), Z(Te, {
735
744
  key: 1,
736
745
  error: d.value,
737
- onRetry: ae
738
- }, null, 8, ["error"])) : A.value && !b.value ? (M(), Z(Fe, {
746
+ onRetry: ie
747
+ }, null, 8, ["error"])) : A.value && !b.value ? (M(), Z(Ue, {
739
748
  key: 2,
740
749
  ref_key: "frameRef",
741
750
  ref: v,
742
751
  "public-key": A.value,
743
752
  options: S.value,
744
- "country-code": a.countryCode,
745
- email: a.email,
746
- name: a.name,
747
- collapsed: a.collapsed,
748
- onReady: ie,
749
- onChange: oe,
750
- onLoaderror: se,
751
- onSubmitSuccess: te,
752
- onSubmitError: p
753
- }, null, 8, ["public-key", "options", "country-code", "email", "name", "collapsed"])) : le("", !0);
753
+ "country-code": o.countryCode,
754
+ email: o.email,
755
+ name: o.name,
756
+ collapsed: o.collapsed,
757
+ onReady: ce,
758
+ onChange: se,
759
+ onLoaderror: ue,
760
+ onSubmitSuccess: re,
761
+ onSubmitError: ee
762
+ }, null, 8, ["public-key", "options", "country-code", "email", "name", "collapsed"])) : fe("", !0);
754
763
  }
755
764
  });
756
765
  export {
757
- We as default
766
+ Ve as default
758
767
  };