@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.29

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 (500) hide show
  1. package/README.md +151 -17
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  4. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  5. package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
  7. package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  8. package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
  9. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  10. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  11. package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
  12. package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
  13. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  14. package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  15. package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  16. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
  17. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  18. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
  19. package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  20. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  21. package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  22. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  23. package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  24. package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  25. package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
  26. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
  27. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
  28. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  29. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  30. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  31. package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  32. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  33. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  34. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
  35. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  36. package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  37. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
  38. package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  39. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
  40. package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
  41. package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
  42. package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  43. package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  44. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
  45. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
  46. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
  47. package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
  48. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  49. package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
  50. package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  51. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
  52. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  53. package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  54. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  55. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  56. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
  57. package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
  58. package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
  59. package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  60. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  61. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
  62. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
  63. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  64. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  65. package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  66. package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
  67. package/dist/amount-CondixVt.mjs +36 -0
  68. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  69. package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
  70. package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
  71. package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
  72. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
  73. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
  74. package/dist/components/Invoice/Invoice.mjs +2691 -227
  75. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
  76. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
  77. package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
  78. package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
  79. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
  80. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
  81. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
  82. package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
  83. package/dist/core/index.mjs +61 -95
  84. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  85. package/dist/customer-BIjC0CWJ.mjs +31 -0
  86. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  87. package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
  88. package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
  89. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  90. package/dist/formControl-BZQLHnOO.mjs +749 -0
  91. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  92. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  93. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  94. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  95. package/dist/index.es-CpmQmvOg.mjs +633 -0
  96. package/dist/index.mjs +2 -2
  97. package/dist/invoiceState-BJVHaKs7.mjs +14 -0
  98. package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
  99. package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
  100. package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
  101. package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
  102. package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
  103. package/dist/paymentMethods-B_82JGk_.mjs +77 -0
  104. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  105. package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
  106. package/dist/payments-BnxbzQUC.mjs +68 -0
  107. package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
  108. package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
  109. package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
  110. package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
  111. package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
  112. package/dist/screens/Checkout/Checkout.mjs +2 -2
  113. package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
  114. package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
  115. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
  116. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  117. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
  118. package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
  119. package/dist/sorting.es-CVyKw23D.mjs +77 -0
  120. package/dist/subscription-BhxoqwcT.mjs +83 -0
  121. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  122. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  123. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
  124. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  125. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
  126. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  127. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  128. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  129. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  130. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  131. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  132. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  133. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  134. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  135. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  136. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  137. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
  138. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
  139. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  140. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  141. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
  142. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  144. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  145. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  146. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  147. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  151. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  152. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  154. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  157. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  158. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  159. package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
  160. package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
  161. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  162. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  163. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  164. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  165. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  167. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
  170. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  172. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  173. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  174. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  175. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  176. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  177. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  178. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  179. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  181. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  182. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  183. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  184. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  185. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  186. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  187. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  188. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  189. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  190. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  191. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  192. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  193. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  194. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  195. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  196. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  197. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  198. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  199. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  200. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  201. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  202. package/dist/types/public/core/action-request.types.d.ts +5 -0
  203. package/dist/types/public/core/registry.ce.d.ts +3 -3
  204. package/dist/types/public/core/registry.d.ts +0 -3
  205. package/dist/types/public/core/types.d.ts +5 -0
  206. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  207. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  208. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  209. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  210. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  211. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
  212. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  213. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  214. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  215. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  216. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  217. package/dist/types/services/requests.types.d.ts +16 -6
  218. package/dist/types/translations/supported.d.ts +1 -1
  219. package/dist/types/types/errors.d.ts +3 -2
  220. package/dist/types/types/portalAuthentication.d.ts +2 -0
  221. package/dist/types/types/portalToken.d.ts +9 -0
  222. package/dist/types/types/shippingAddress.d.ts +9 -0
  223. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  225. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  226. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  227. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  228. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  229. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  230. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  231. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  232. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  233. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  234. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  235. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  236. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  237. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  238. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  239. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  240. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  241. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  242. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  243. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  244. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  245. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  246. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  247. package/dist/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
  248. package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  249. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  250. package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
  251. package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
  252. package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
  253. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  254. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  255. package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
  256. package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
  257. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  258. package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
  259. package/dist/usePortal-CwR_FxTb.mjs +7 -0
  260. package/dist/useService-BZcbUZHI.mjs +56 -0
  261. package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  262. package/dist/useViewport-psZejz_H.mjs +19 -0
  263. package/package.json +33 -60
  264. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
  265. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
  266. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  267. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  268. package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
  269. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
  270. package/dist/Button.vue.es-BzkuglKw.js +0 -1
  271. package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
  272. package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
  273. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
  274. package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
  275. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  276. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  277. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  278. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  279. package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
  280. package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
  281. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  282. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
  283. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
  284. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
  285. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  286. package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
  287. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
  288. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
  289. package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
  290. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  291. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  292. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  293. package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
  294. package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
  295. package/dist/Input.vue.es-B60eK8Ds.js +0 -1
  296. package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
  297. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
  298. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
  299. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
  300. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
  301. package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
  302. package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
  303. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
  304. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
  305. package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
  306. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
  307. package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
  308. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
  309. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
  310. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
  311. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
  312. package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
  313. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
  314. package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
  315. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
  316. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
  317. package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
  318. package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
  319. package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
  320. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
  321. package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
  322. package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
  323. package/dist/Section.vue.es-Bbt0RITt.js +0 -1
  324. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
  325. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
  326. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
  327. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
  328. package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
  329. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
  330. package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
  331. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
  332. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
  333. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
  334. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
  335. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
  336. package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
  337. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
  338. package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
  339. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  340. package/dist/ach.svg.es-BYP873jU.js +0 -1
  341. package/dist/adyen-BJfC7N6f.js +0 -1
  342. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  343. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  344. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  345. package/dist/api.es-duCDtZD9.js +0 -1
  346. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  347. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  348. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  349. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  350. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  351. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  352. package/dist/cn.es-C9Yqq4tg.js +0 -1
  353. package/dist/comparators.es-OGt19O9U.js +0 -1
  354. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  355. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  356. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  357. package/dist/components/Invoice/Invoice.cjs +0 -1
  358. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  359. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  360. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  361. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  362. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  363. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  364. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  365. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  366. package/dist/configuration-akTS7Wiw.js +0 -1
  367. package/dist/core/index.cjs +0 -1
  368. package/dist/countryData.es-C4jHBzfo.js +0 -1
  369. package/dist/customElements-B58FcXIN.mjs +0 -6633
  370. package/dist/customElements-DUMRMFQ5.js +0 -1215
  371. package/dist/customer-B3LPAhaD.mjs +0 -31
  372. package/dist/customer-CisTPaXj.js +0 -1
  373. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  374. package/dist/customer.es-BButyYo0.js +0 -1
  375. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  376. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  377. package/dist/de-DE-B4TUdnUf.js +0 -1
  378. package/dist/de-DE-DL74pMLb.js +0 -1
  379. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  380. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  381. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  382. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  383. package/dist/en-US-B2XFj-_p.js +0 -1
  384. package/dist/en-US-DQ5vlv9Z.mjs +0 -339
  385. package/dist/en-US-J85TQRI8.js +0 -1
  386. package/dist/en-US-SDhjlY_v.mjs +0 -301
  387. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  388. package/dist/error-BHVZJGwD.mjs +0 -13
  389. package/dist/error-CmduqgVq.js +0 -1
  390. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  391. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  392. package/dist/formControl-ODrpUvcA.js +0 -1
  393. package/dist/formControl-dX7l8o3c.mjs +0 -845
  394. package/dist/formatting.es-C72Nsrmh.js +0 -1
  395. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  396. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  397. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  398. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  399. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  400. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  401. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  402. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  403. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  404. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  405. package/dist/index-BPZPnOQQ.js +0 -7
  406. package/dist/index.cjs +0 -1
  407. package/dist/index.es-BclokHQX.js +0 -1
  408. package/dist/invoices-CKQBLar2.js +0 -1
  409. package/dist/it-IT-CSYvGmpT.js +0 -1
  410. package/dist/it-IT-CqNK62qe.js +0 -1
  411. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  412. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  413. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  414. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  415. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  416. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  417. package/dist/nl-NL-CpE4IgwO.js +0 -1
  418. package/dist/nl-NL-Dx-TNXQ1.js +0 -1
  419. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  420. package/dist/object.es-CdriXMPs.js +0 -1
  421. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  422. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  423. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  424. package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
  425. package/dist/paymentMethods-Cw-i95mM.js +0 -1
  426. package/dist/payments-2qeQdpiW.mjs +0 -45
  427. package/dist/payments-CS7_YcOW.js +0 -1
  428. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  429. package/dist/pricing-BOqG21f9.js +0 -1
  430. package/dist/pricing.es-C07bgEZx.js +0 -1
  431. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  432. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  433. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  434. package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
  435. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
  436. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  437. package/dist/screens/Checkout/Checkout.cjs +0 -1
  438. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  439. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  440. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  441. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  442. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  443. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  444. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  445. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  446. package/dist/slots.es-T9ZJRGtG.js +0 -1
  447. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  448. package/dist/sorting.es-DQsjKr8A.js +0 -1
  449. package/dist/star.svg.es-D2JncY7b.js +0 -1
  450. package/dist/subscription-D1yHKUNc.mjs +0 -69
  451. package/dist/subscription-ZA62t4E9.js +0 -1
  452. package/dist/subscriptions-DcfcBYAq.mjs +0 -55
  453. package/dist/subscriptions-DwVsf4Ev.js +0 -1
  454. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  455. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  456. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  457. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  458. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  459. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  460. package/dist/types/services/portals.types.d.ts +0 -70
  461. package/dist/types/types/subscription.d.ts +0 -4
  462. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  463. package/dist/url-TNRgVI8A.mjs +0 -21
  464. package/dist/url-vloPOiXd.js +0 -1
  465. package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
  466. package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
  467. package/dist/useCustomer-BwZKd9i5.js +0 -1
  468. package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
  469. package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
  470. package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
  471. package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
  472. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  473. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  474. package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
  475. package/dist/useInvoiceData-CNV_FMV8.js +0 -1
  476. package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
  477. package/dist/useInvoicesList-S0IbQcrD.js +0 -1
  478. package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
  479. package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
  480. package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
  481. package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
  482. package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
  483. package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
  484. package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
  485. package/dist/usePayments-DDSjo0rH.js +0 -1
  486. package/dist/usePortal-C27omjhz.js +0 -1
  487. package/dist/usePortal-C5AsegpS.mjs +0 -11
  488. package/dist/useService-Bh47bllz.mjs +0 -50
  489. package/dist/useService-H7BjLg8P.js +0 -1
  490. package/dist/useSubscription-BZJL0VOA.mjs +0 -210
  491. package/dist/useSubscription-D787IXY-.js +0 -1
  492. package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
  493. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  494. package/dist/useViewport-hPRVDWCm.js +0 -1
  495. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  496. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  497. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  498. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  499. package/dist/wallets.es-CNIMW5ay.js +0 -1
  500. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -0,0 +1,757 @@
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-BZcbUZHI.mjs";
3
+ import { a as ye, e as Ee } from "./customElements-BTj4ii4f.mjs";
4
+ import { t as fe } from "./amount-CondixVt.mjs";
5
+ import { _ as Ie } from "./PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs";
6
+ import { _ as _e } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs";
7
+ import { c as ge } from "./payments-BnxbzQUC.mjs";
8
+ import { c as Te } from "./paymentMethods-B_82JGk_.mjs";
9
+ import { f as Re, e as he, c as be } from "./usePaymentFormHold-ByUZi3A-.mjs";
10
+ import { c as Se, i as ve, b as Ae, a as Oe, d as $ } from "./paymentOutcome-BXEU5-84.mjs";
11
+ const J = "https://js.stripe.com/dahlia/stripe.js", Ne = `<!DOCTYPE html>
12
+ <html>
13
+ <head>
14
+ <meta charset="UTF-8">
15
+ <meta name="viewport" content="width=device-width, initial-scale=1">
16
+ <style>
17
+ * { box-sizing: border-box; margin: 0; padding: 0; }
18
+ body { overflow: hidden; }
19
+ </style>
20
+ </head>
21
+ <body>
22
+ <div id="stripe-root"></div>
23
+ <script src="${J}"><\/script>
24
+ <script>
25
+ (function () {
26
+ let stripe, elements, paymentElement, resizeObserver, countryCode, email, name, parentOrigin;
27
+
28
+ // An opaque origin serialises as 'null', which postMessage refuses as a target. The parent
29
+ // checks that what it receives comes from this frame.
30
+ function parentTarget() {
31
+ return parentOrigin === 'null' ? '*' : parentOrigin;
32
+ }
33
+
34
+ // Every submit is answered, or the page waiting on it never stops waiting.
35
+ function postSubmitError(error) {
36
+ parent.postMessage({
37
+ type: 'stripe:submit:error',
38
+ error: {
39
+ message: error && error.message ? String(error.message) : 'Stripe submission failed',
40
+ type: error && error.type,
41
+ code: error && error.code
42
+ }
43
+ }, parentTarget());
44
+ }
45
+
46
+ window.addEventListener('message', function (event) {
47
+ if (!event.data || typeof event.data !== 'object') return;
48
+ if (event.source !== window.parent) return;
49
+
50
+ if (event.data.type === 'stripe:init') {
51
+ parentOrigin = event.origin;
52
+ const initId = event.data.initId;
53
+ countryCode = event.data.countryCode;
54
+ email = event.data.email;
55
+ name = event.data.name;
56
+ // A second Payment Element would mount beside the first, and the submit would go to it empty.
57
+ if (paymentElement) paymentElement.destroy();
58
+ stripe = Stripe(event.data.publicKey);
59
+ elements = stripe.elements(event.data.options);
60
+ paymentElement = elements.create('payment', { layout: { type: 'accordion', defaultCollapsed: event.data.collapsed === true }, wallets: event.data.options.wallets, fields: event.data.options.fields });
61
+
62
+ paymentElement.on('ready', function () {
63
+ parent.postMessage({ type: 'stripe:ready', initId: initId }, parentTarget());
64
+ });
65
+
66
+ paymentElement.on('change', function (e) {
67
+ parent.postMessage({ type: 'stripe:change', paymentMethodType: e.value.type, empty: e.empty === true, collapsed: e.collapsed === true }, parentTarget());
68
+ });
69
+
70
+ paymentElement.on('loaderror', function (e) {
71
+ parent.postMessage({
72
+ type: 'stripe:loaderror',
73
+ error: { message: e.error.message, type: e.error.type }
74
+ }, parentTarget());
75
+ });
76
+
77
+ paymentElement.mount('#stripe-root');
78
+
79
+ if (!resizeObserver) {
80
+ resizeObserver = new ResizeObserver(function () {
81
+ parent.postMessage({
82
+ type: 'stripe:resize',
83
+ height: document.documentElement.scrollHeight
84
+ }, parentTarget());
85
+ });
86
+ resizeObserver.observe(document.documentElement);
87
+ }
88
+ }
89
+
90
+ if (event.data.type === 'stripe:update') {
91
+ if (!parentOrigin || event.origin !== parentOrigin || !elements) return;
92
+ const updateElements = elements;
93
+ const updateOptions = event.data.options;
94
+ // A failed update leaves the element showing the old amount; the parent sets it up anew.
95
+ Promise.resolve().then(function () {
96
+ return updateElements.update(updateOptions);
97
+ }).catch(function () {
98
+ if (updateElements !== elements) return;
99
+ parent.postMessage({ type: 'stripe:update:error' }, parentTarget());
100
+ });
101
+ }
102
+
103
+ if (event.data.type === 'stripe:submit') {
104
+ if (!parentOrigin || event.origin !== parentOrigin) return;
105
+ const submitCountryCode = 'countryCode' in event.data ? event.data.countryCode : countryCode;
106
+ const submitEmail = 'email' in event.data ? event.data.email : email;
107
+ const submitName = 'name' in event.data ? event.data.name : name;
108
+ // A setup anew while this submit is in flight replaces both; the token comes from the
109
+ // elements that were submitted.
110
+ const submitStripe = stripe;
111
+ const submitElements = elements;
112
+ if (!submitElements) {
113
+ postSubmitError();
114
+ return;
115
+ }
116
+ submitElements.submit().then(function (submitResult) {
117
+ if (submitResult.error) {
118
+ postSubmitError(submitResult.error);
119
+ return;
120
+ }
121
+ const billingDetails = {};
122
+ if (submitCountryCode) billingDetails.address = { country: submitCountryCode };
123
+ if (submitEmail) billingDetails.email = submitEmail;
124
+ if (submitName) billingDetails.name = submitName;
125
+ const tokenParams = Object.keys(billingDetails).length
126
+ ? { payment_method_data: { billing_details: billingDetails } }
127
+ : {};
128
+ return submitStripe.createConfirmationToken({ elements: submitElements, params: tokenParams }).then(function (tokenResult) {
129
+ if (tokenResult.error) {
130
+ postSubmitError(tokenResult.error);
131
+ return;
132
+ }
133
+ parent.postMessage({
134
+ type: 'stripe:submit:success',
135
+ confirmationTokenId: tokenResult.confirmationToken.id
136
+ }, parentTarget());
137
+ });
138
+ }).catch(postSubmitError);
139
+ }
140
+ });
141
+ })();
142
+ <\/script>
143
+ </body>
144
+ </html>`, G = { link: "never" }, V = {
145
+ variables: { borderRadius: "4px", colorBackground: "rgba(243, 244, 246, 0.5)" },
146
+ rules: {
147
+ ".TermsText": { fontSize: "14px" },
148
+ ".Input": {
149
+ backgroundColor: "rgba(243, 244, 246, 0.5)",
150
+ fontSize: "14px",
151
+ borderColor: "rgb(229, 231, 235)"
152
+ }
153
+ }
154
+ };
155
+ function we(a, s) {
156
+ return {
157
+ billingDetails: {
158
+ address: { country: "never" },
159
+ ...a ? { email: "never" } : {},
160
+ ...s ? { name: "never" } : {}
161
+ }
162
+ };
163
+ }
164
+ function Pe({
165
+ amount: a,
166
+ email: s,
167
+ name: f,
168
+ variant: t,
169
+ storePaymentMethod: c = !1
170
+ }) {
171
+ const R = a.currency.toLowerCase(), d = we(s, f);
172
+ return t === "TOKENIZE" ? {
173
+ mode: "setup",
174
+ currency: R,
175
+ setup_future_usage: "off_session",
176
+ wallets: G,
177
+ fields: d,
178
+ appearance: V
179
+ } : {
180
+ mode: "payment",
181
+ currency: R,
182
+ amount: fe(a).value,
183
+ ...c ? { setup_future_usage: "off_session" } : {},
184
+ wallets: G,
185
+ fields: d,
186
+ appearance: V
187
+ };
188
+ }
189
+ function Ce(a, s) {
190
+ if (!(a.mode !== s.mode || !K(a.fields, s.fields) || !K(a.wallets, s.wallets)))
191
+ return {
192
+ currency: s.currency,
193
+ ...s.mode === "payment" ? { amount: s.amount } : {},
194
+ setup_future_usage: s.setup_future_usage ?? null,
195
+ ...s.appearance ? { appearance: s.appearance } : {}
196
+ };
197
+ }
198
+ function z(a) {
199
+ return a === "null" ? "*" : a;
200
+ }
201
+ const De = {
202
+ api_connection_error: !0,
203
+ api_error: !0,
204
+ authentication_error: !0,
205
+ card_error: !0,
206
+ idempotency_error: !0,
207
+ invalid_request_error: !0,
208
+ rate_limit_error: !0,
209
+ validation_error: !0
210
+ };
211
+ function H(a) {
212
+ return typeof a == "string" && Object.hasOwn(De, a);
213
+ }
214
+ function C(a) {
215
+ if (typeof a != "object" || a === null) return {};
216
+ const s = Reflect.get(a, "code"), f = Reflect.get(a, "type"), t = Reflect.get(a, "message");
217
+ return {
218
+ code: typeof s == "string" ? s : void 0,
219
+ type: H(f) ? f : void 0,
220
+ message: typeof t == "string" ? t : void 0
221
+ };
222
+ }
223
+ const Me = ["src", "height", "title"], Fe = /* @__PURE__ */ q({
224
+ __name: "PaymentIntegrationFormStripeFrame",
225
+ props: {
226
+ publicKey: { type: String },
227
+ options: { type: Object },
228
+ countryCode: { type: String },
229
+ email: { type: String },
230
+ name: { type: String },
231
+ collapsed: { type: Boolean }
232
+ },
233
+ emits: ["ready", "change", "loaderror", "submit-success", "submit-error"],
234
+ setup(a, { expose: s, emit: f }) {
235
+ const t = a, c = f, { $t: R } = ye();
236
+ s({ triggerSubmit: F });
237
+ const d = T(), h = T(0), b = T();
238
+ let v = !1, w = 0, S;
239
+ function I() {
240
+ var n, o;
241
+ v = !1, w += 1, S = t.options, (o = (n = d.value) == null ? void 0 : n.contentWindow) == null || o.postMessage(
242
+ {
243
+ type: "stripe:init",
244
+ initId: w,
245
+ publicKey: t.publicKey,
246
+ options: t.options,
247
+ countryCode: t.countryCode,
248
+ email: t.email,
249
+ name: t.name,
250
+ collapsed: t.collapsed === !0
251
+ },
252
+ z(window.origin)
253
+ );
254
+ }
255
+ function u(n, o) {
256
+ var _, p;
257
+ S = n, (p = (_ = d.value) == null ? void 0 : _.contentWindow) == null || p.postMessage(
258
+ { type: "stripe:update", options: o },
259
+ z(window.origin)
260
+ );
261
+ }
262
+ function F() {
263
+ var o;
264
+ const n = (o = d.value) == null ? void 0 : o.contentWindow;
265
+ return !v || !n ? !1 : (n.postMessage(
266
+ {
267
+ type: "stripe:submit",
268
+ countryCode: t.countryCode,
269
+ email: t.email,
270
+ name: t.name
271
+ },
272
+ z(window.origin)
273
+ ), !0);
274
+ }
275
+ function P(n) {
276
+ return typeof n == "object" && n !== null;
277
+ }
278
+ function A(n) {
279
+ if (!d.value || n.source !== d.value.contentWindow || !P(n.data)) return;
280
+ const o = n.data, _ = o.type;
281
+ if (!(typeof _ != "string" || !_.startsWith("stripe:")))
282
+ switch (_) {
283
+ case "stripe:ready":
284
+ o.initId === w && (v = !0), c("ready");
285
+ break;
286
+ case "stripe:change":
287
+ c(
288
+ "change",
289
+ typeof o.paymentMethodType == "string" ? o.paymentMethodType : "card",
290
+ o.empty === !0,
291
+ o.collapsed === !0
292
+ );
293
+ break;
294
+ case "stripe:loaderror": {
295
+ const p = P(o.error) ? o.error : {};
296
+ c("loaderror", {
297
+ message: typeof p.message == "string" ? p.message : void 0,
298
+ type: H(p.type) ? p.type : void 0
299
+ });
300
+ break;
301
+ }
302
+ case "stripe:update:error":
303
+ I();
304
+ break;
305
+ case "stripe:resize":
306
+ typeof o.height == "number" && (h.value = o.height);
307
+ break;
308
+ case "stripe:submit:success":
309
+ typeof o.confirmationTokenId == "string" ? c("submit-success", o.confirmationTokenId) : c("submit-error", { message: "Stripe returned no confirmation token" });
310
+ break;
311
+ case "stripe:submit:error": {
312
+ const p = P(o.error) ? o.error : {};
313
+ c("submit-error", {
314
+ message: typeof p.message == "string" ? p.message : void 0,
315
+ type: H(p.type) ? p.type : void 0,
316
+ code: typeof p.code == "string" ? p.code : void 0
317
+ });
318
+ break;
319
+ }
320
+ }
321
+ }
322
+ return X(() => {
323
+ const n = new Blob([Ne], { type: "text/html" });
324
+ b.value = URL.createObjectURL(n), window.addEventListener("message", A);
325
+ }), Q(() => {
326
+ window.removeEventListener("message", A), b.value && URL.revokeObjectURL(b.value);
327
+ }), me(
328
+ () => t.options,
329
+ (n) => {
330
+ if (!S || K(n, S)) return;
331
+ const o = Ce(S, n);
332
+ o ? u(n, o) : I();
333
+ },
334
+ { deep: !0 }
335
+ ), (n, o) => (M(), pe("iframe", {
336
+ ref_key: "iframeRef",
337
+ ref: d,
338
+ src: b.value,
339
+ height: h.value || void 0,
340
+ frameborder: "0",
341
+ style: { width: "100%", display: "block", border: "none" },
342
+ title: de(R)({
343
+ defaultMessage: "Payment form",
344
+ id: "payment_integration_form_stripe.frame_title",
345
+ description: "Accessible name of the frame that holds the Stripe payment fields"
346
+ }),
347
+ onLoad: I
348
+ }, null, 40, Me));
349
+ }
350
+ }), N = "STRIPE", Be = /* @__PURE__ */ q({
351
+ __name: "PaymentIntegrationFormStripe",
352
+ props: {
353
+ email: { type: String },
354
+ name: { type: String },
355
+ countryCode: { type: String },
356
+ customerId: { type: String },
357
+ invoiceId: { type: String },
358
+ paymentMethodOptionResponseEntry: { type: Object },
359
+ variant: { type: String },
360
+ selected: { type: Boolean },
361
+ amount: { type: Object },
362
+ validateOnSubmit: { type: Function, default: () => Promise.resolve(!0) },
363
+ context: { type: Object },
364
+ forceStorePaymentMethod: { type: Boolean },
365
+ storePaymentMethod: { type: Boolean },
366
+ redirectsOnSuccess: { type: Boolean },
367
+ billingEntityName: { type: String },
368
+ collapsed: { type: Boolean }
369
+ },
370
+ emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
371
+ setup(a, { expose: s, emit: f }) {
372
+ const t = a, c = f;
373
+ s({ submit: o });
374
+ const R = T(!1), d = T(), h = Re(
375
+ t.paymentMethodOptionResponseEntry.payment_acceptor.id
376
+ ), b = T(!!h), v = T(), w = x(
377
+ () => t.storePaymentMethod ?? t.forceStorePaymentMethod ?? !1
378
+ ), S = x(
379
+ () => Pe({
380
+ amount: t.amount,
381
+ email: t.email,
382
+ name: t.name,
383
+ variant: t.variant,
384
+ storePaymentMethod: w.value
385
+ })
386
+ ), I = T(null), u = Ee(), { authorizePayment: F } = ge(), { tokenizePaymentMethod: P } = Te(), A = x(
387
+ () => {
388
+ var e, r;
389
+ return (r = (e = t.paymentMethodOptionResponseEntry.integration.payment_gateway) == null ? void 0 : e.stripe) == null ? void 0 : r.public_key;
390
+ }
391
+ );
392
+ function n(e) {
393
+ return Se({
394
+ gateway: N,
395
+ paymentAcceptorId: t.paymentMethodOptionResponseEntry.payment_acceptor.id,
396
+ variant: t.variant,
397
+ invoiceId: t.invoiceId,
398
+ customerId: t.customerId,
399
+ ...e
400
+ });
401
+ }
402
+ function o() {
403
+ _().catch((e) => {
404
+ u.error(
405
+ "STRIPE_SUBMIT_FAILED",
406
+ "Unexpected error during Stripe submission",
407
+ n({ reason: "STRIPE_SUBMIT_FAILED", cause: e }),
408
+ e
409
+ ), c("invalid");
410
+ });
411
+ }
412
+ async function _() {
413
+ var r;
414
+ (!await t.validateOnSubmit() || !((r = v.value) != null && r.triggerSubmit())) && c("invalid");
415
+ }
416
+ function p(e) {
417
+ if (e.type === "validation_error") {
418
+ c("invalid");
419
+ return;
420
+ }
421
+ u.error(
422
+ "STRIPE_CONFIRMATION_TOKEN_FAILED",
423
+ "Stripe submission failed",
424
+ n({ reason: "STRIPE_CONFIRMATION_TOKEN_FAILED", cause: e }),
425
+ e
426
+ ), l({
427
+ code: t.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
428
+ message: e.message ?? "Stripe submission failed",
429
+ error: e
430
+ });
431
+ }
432
+ function ee(e) {
433
+ return new Promise((r, m) => {
434
+ if (window.Stripe) {
435
+ r(window.Stripe(e));
436
+ return;
437
+ }
438
+ const i = document.createElement("script");
439
+ i.src = J, i.onload = () => {
440
+ if (!window.Stripe) {
441
+ m(new Error("Stripe not available after script load"));
442
+ return;
443
+ }
444
+ r(window.Stripe(e));
445
+ }, i.onerror = () => m(new Error("Failed to load Stripe.js")), document.head.appendChild(i);
446
+ });
447
+ }
448
+ async function Y() {
449
+ if (I.value)
450
+ return I.value;
451
+ const e = A.value;
452
+ if (!e)
453
+ throw new Error("Missing Stripe public key");
454
+ const r = await ee(e);
455
+ return I.value = r, r;
456
+ }
457
+ async function te(e) {
458
+ c("submitting");
459
+ const r = t.paymentMethodOptionResponseEntry.payment_acceptor.id, m = he({
460
+ paymentAcceptorId: r,
461
+ redirectUrl: window.location.href
462
+ });
463
+ if (t.variant === "AUTHORIZE") {
464
+ try {
465
+ const i = await F({
466
+ payment_acceptor_id: r,
467
+ ...t.customerId ? { customer_id: t.customerId } : {},
468
+ payment_gateway_variant: N,
469
+ stripe: { confirmation_token_id: e },
470
+ amount: t.amount,
471
+ ...t.context && t.context.type !== "CHARGE_ON_DEMAND" ? { context: t.context } : {},
472
+ return_url: m
473
+ });
474
+ await j(i);
475
+ } catch (i) {
476
+ u.error(
477
+ "PAYMENT_AUTHORIZATION_FAILED",
478
+ `Failed payment authorization for payment acceptor with id ${r}`,
479
+ n({ reason: "PAYMENT_AUTHORIZATION_FAILED", cause: i }),
480
+ i
481
+ ), l({
482
+ code: ve(i) ? "PAYMENT_OUTCOME_UNCONFIRMED" : "AUTHORIZATION_FAILED",
483
+ message: "Payment authorization failed",
484
+ error: i
485
+ });
486
+ }
487
+ return;
488
+ }
489
+ if (t.variant === "TOKENIZE") {
490
+ if (!t.customerId) {
491
+ u.error(
492
+ "TOKENIZATION_FAILED",
493
+ `Missing customer id for payment acceptor with id ${r}`,
494
+ n({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
495
+ ), l({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
496
+ return;
497
+ }
498
+ try {
499
+ const i = await P({
500
+ customer_id: t.customerId,
501
+ payment_acceptor_id: r,
502
+ payment_gateway_variant: N,
503
+ stripe: { confirmation_token_id: e },
504
+ return_url: m
505
+ });
506
+ await j(i);
507
+ } catch (i) {
508
+ u.error(
509
+ "TOKENIZATION_FAILED",
510
+ `Tokenization failed for payment acceptor with id ${r}`,
511
+ n({ reason: "TOKENIZATION_FAILED", cause: i }),
512
+ i
513
+ ), l({ code: "TOKENIZE_FAILED", message: "Tokenization failed", error: i });
514
+ }
515
+ }
516
+ }
517
+ async function j(e) {
518
+ var m, i, y;
519
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === N) {
520
+ const g = e.action.client_secret || ((m = e.action.data) == null ? void 0 : m.client_secret);
521
+ if (!g) {
522
+ u.error(
523
+ "STRIPE_ACTION_FAILED",
524
+ "Missing client_secret in Stripe ACTION_REQUIRED response",
525
+ n({
526
+ reason: "STRIPE_ACTION_MISSING_CLIENT_SECRET",
527
+ extra: { paymentStatus: e.status }
528
+ })
529
+ ), l({
530
+ code: "AUTHORIZATION_FAILED",
531
+ message: "Payment action failed",
532
+ error: e
533
+ });
534
+ return;
535
+ }
536
+ let B;
537
+ try {
538
+ B = await Y();
539
+ } catch (E) {
540
+ u.error(
541
+ "STRIPE_ACTION_FAILED",
542
+ "Failed to load Stripe.js",
543
+ n({ reason: "STRIPE_SDK_LOAD_FAILED", cause: E }),
544
+ E
545
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed", error: E });
546
+ return;
547
+ }
548
+ const { error: D, paymentIntent: ce, setupIntent: ue } = await B.handleNextAction({ clientSecret: g }).catch((E) => {
549
+ throw C(E);
550
+ });
551
+ if (D) {
552
+ const E = C(D);
553
+ u.error(
554
+ "STRIPE_ACTION_FAILED",
555
+ "Stripe handleNextAction failed",
556
+ n({
557
+ reason: "STRIPE_NEXT_ACTION_FAILED",
558
+ cause: E,
559
+ extra: { stripeErrorCode: D.code, stripeErrorType: D.type }
560
+ }),
561
+ E
562
+ ), l({
563
+ code: "AUTHORIZATION_FAILED",
564
+ message: "Payment action failed",
565
+ error: E
566
+ });
567
+ return;
568
+ }
569
+ const k = (i = ce ?? ue) == null ? void 0 : i.status, W = $(k);
570
+ W === "SUCCEEDED" ? L() : W === "UNCONFIRMED" ? U("STRIPE_NEXT_ACTION_UNCONFIRMED", { intentStatus: k }) : (u.error(
571
+ "STRIPE_ACTION_FAILED",
572
+ "Stripe handleNextAction left the payment incomplete",
573
+ n({
574
+ reason: "STRIPE_NEXT_ACTION_INCOMPLETE",
575
+ extra: { intentStatus: k }
576
+ })
577
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed" }));
578
+ return;
579
+ }
580
+ const r = Ae(e);
581
+ if (r === "SUCCEEDED") {
582
+ L();
583
+ return;
584
+ }
585
+ if (r === "UNCONFIRMED") {
586
+ U("PAYMENT_PENDING", {
587
+ paymentStatus: e.status,
588
+ paymentResult: (y = e.payment) == null ? void 0 : y.result
589
+ });
590
+ return;
591
+ }
592
+ u.error(
593
+ "STRIPE_ACTION_FAILED",
594
+ "Unexpected payment result status",
595
+ n({
596
+ reason: "STRIPE_UNEXPECTED_PAYMENT_STATUS",
597
+ extra: { paymentStatus: e.status }
598
+ })
599
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: e });
600
+ }
601
+ async function re({
602
+ intent: e,
603
+ clientSecret: r
604
+ }) {
605
+ const m = await Y(), i = (g) => {
606
+ throw C(g);
607
+ };
608
+ if (e === "PAYMENT") {
609
+ const g = await m.retrievePaymentIntent(r).catch(i);
610
+ if (g.error) throw C(g.error);
611
+ return g.paymentIntent.status;
612
+ }
613
+ const y = await m.retrieveSetupIntent(r).catch(i);
614
+ if (y.error) throw C(y.error);
615
+ return y.setupIntent.status;
616
+ }
617
+ async function ne() {
618
+ if (!h) return;
619
+ const { redirectStatus: e } = h;
620
+ let r;
621
+ try {
622
+ r = await re(h);
623
+ } catch (y) {
624
+ u.error(
625
+ "STRIPE_REDIRECT_RETURN_FAILED",
626
+ "Could not retrieve the payment the Stripe redirect returned from",
627
+ n({
628
+ reason: "STRIPE_REDIRECT_RETRIEVE_FAILED",
629
+ cause: y,
630
+ extra: { redirectStatus: e }
631
+ }),
632
+ y
633
+ ), l({
634
+ code: "PAYMENT_OUTCOME_UNCONFIRMED",
635
+ message: "Payment could not be confirmed",
636
+ error: y
637
+ });
638
+ return;
639
+ }
640
+ be();
641
+ const m = $(r);
642
+ if (m === "SUCCEEDED") {
643
+ L();
644
+ return;
645
+ }
646
+ if (m === "UNCONFIRMED") {
647
+ U("STRIPE_REDIRECT_UNCONFIRMED", { redirectStatus: e, intentStatus: r });
648
+ return;
649
+ }
650
+ const i = new globalThis.Error(
651
+ `Stripe redirect returned a payment with status: ${r}`
652
+ );
653
+ u.error(
654
+ "STRIPE_REDIRECT_RETURN_FAILED",
655
+ "Stripe redirect returned non-succeeded status",
656
+ n({
657
+ reason: "STRIPE_REDIRECT_RETURN_FAILED",
658
+ extra: { redirectStatus: e, intentStatus: r }
659
+ }),
660
+ i
661
+ ), l({
662
+ code: "AUTHORIZATION_FAILED",
663
+ message: "Payment failed",
664
+ error: i
665
+ });
666
+ }
667
+ function ae() {
668
+ d.value = void 0;
669
+ }
670
+ let O;
671
+ function oe(e, r, m) {
672
+ const i = r && m === ((O == null ? void 0 : O.isCollapsed) ?? t.collapsed === !0) && (O === void 0 || e === O.type);
673
+ O = { type: e, isCollapsed: m }, c("select", {
674
+ paymentMethodType: e,
675
+ paymentGatewayVariant: N,
676
+ ...i && { isAutomatic: !0 }
677
+ });
678
+ }
679
+ function ie() {
680
+ c("select", {
681
+ paymentMethodType: "card",
682
+ paymentGatewayVariant: N,
683
+ isAutomatic: !0
684
+ }), c("ready");
685
+ }
686
+ function se(e) {
687
+ u.error(
688
+ "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
689
+ "Failed to load the Stripe payment form",
690
+ n({
691
+ reason: "STRIPE_FORM_LOAD_FAILED",
692
+ cause: e,
693
+ extra: { stripeErrorType: e.type }
694
+ }),
695
+ e
696
+ ), l({
697
+ code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
698
+ message: e.message ?? "Failed to load payment form",
699
+ error: e
700
+ });
701
+ }
702
+ function l(e) {
703
+ const r = Oe(e);
704
+ d.value = r, c("payment-failed", r);
705
+ }
706
+ function L() {
707
+ R.value = !0, c("payment-success");
708
+ }
709
+ function U(e, r) {
710
+ u.warn(
711
+ "PAYMENT_OUTCOME_UNCONFIRMED",
712
+ "The payment outcome could not be confirmed yet",
713
+ n({ reason: e, extra: r })
714
+ ), l({ code: "PAYMENT_OUTCOME_UNCONFIRMED", message: "Payment could not be confirmed" });
715
+ }
716
+ return X(() => {
717
+ ne().catch((e) => {
718
+ u.error(
719
+ "STRIPE_REDIRECT_RETURN_FAILED",
720
+ "handleRedirectReturn threw unexpectedly",
721
+ n({ reason: "STRIPE_REDIRECT_RETURN_THREW", cause: e }),
722
+ e
723
+ );
724
+ }).finally(() => {
725
+ b.value = !1;
726
+ });
727
+ }), Q(() => {
728
+ I.value = null;
729
+ }), (e, r) => R.value ? (M(), Z(Ie, {
730
+ key: 0,
731
+ variant: a.variant,
732
+ redirecting: a.redirectsOnSuccess
733
+ }, null, 8, ["variant", "redirecting"])) : d.value ? (M(), Z(_e, {
734
+ key: 1,
735
+ error: d.value,
736
+ onRetry: ae
737
+ }, null, 8, ["error"])) : A.value && !b.value ? (M(), Z(Fe, {
738
+ key: 2,
739
+ ref_key: "frameRef",
740
+ ref: v,
741
+ "public-key": A.value,
742
+ options: S.value,
743
+ "country-code": a.countryCode,
744
+ email: a.email,
745
+ name: a.name,
746
+ collapsed: a.collapsed,
747
+ onReady: ie,
748
+ onChange: oe,
749
+ onLoaderror: se,
750
+ onSubmitSuccess: te,
751
+ onSubmitError: p
752
+ }, null, 8, ["public-key", "options", "country-code", "email", "name", "collapsed"])) : le("", !0);
753
+ }
754
+ });
755
+ export {
756
+ Be as default
757
+ };