@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
@@ -1,70 +1,53 @@
1
- import { defineComponent as C, computed as P, openBlock as c, createElementBlock as B, withDirectives as _, createElementVNode as A, mergeProps as j, withModifiers as F, unref as n, isRef as D, vModelCheckbox as N, normalizeClass as V, toDisplayString as k, capitalize as U, createBlock as y, withCtx as r, createTextVNode as O, ref as x, createVNode as p, createCommentVNode as w, Fragment as W, renderSlot as q, normalizeProps as H, guardReactiveProps as K } from "vue";
2
- import { f as z } from "../../formatting.es-RclXHhKo.mjs";
3
- import { _ as E, a as Y } from "../../Button.vue.es-Cmjfm4jw.mjs";
4
- import { u as Z } from "../../index.es-CXkP_k3u.mjs";
5
- import { _ as G, u as J, a as Q } from "../../usePayments-Cr6NlGaW.mjs";
6
- import { _ as X } from "../../InvoiceSummary.vue.es-CRiFJ5x-.mjs";
7
- import { _ as ee } from "../../Section.vue.es-DVEpre9O.mjs";
8
- import { a as R, _ as T, d as te, e as ne } from "../../customElements-B58FcXIN.mjs";
9
- import { C as ae } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
10
- import { _ as oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs";
11
- import { _ as $ } from "../../Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs";
12
- import { _ as L } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs";
13
- import { u as ie, _ as re } from "../../usePaymentMethodAvailability-DAcsKGeh.mjs";
14
- import { g as se } from "../../customer.es-B5ppZf0j.mjs";
15
- import { u as le } from "../../useLoadInitialData-D9GkzY8t.mjs";
16
- import { u as ce } from "../../usePaymentMethodOptions-1vRAo6Ib.mjs";
17
- import { u as de } from "../../usePaymentMethods-CbwnGONc.mjs";
18
- import { a as me } from "../../sessionReference-3h-6FdrC.mjs";
19
- const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name", "disabled", "value"], pe = ["for"], ve = /* @__PURE__ */ C({
20
- __name: "Checkbox",
21
- props: {
22
- modelValue: { type: Boolean },
23
- label: {},
24
- id: {},
25
- name: {},
26
- value: {},
27
- disabled: { type: Boolean },
28
- size: { default: "md" }
29
- },
30
- setup(e) {
31
- const t = e, a = Z(t, "modelValue"), d = {
32
- sm: "size-2",
33
- md: "size-4"
34
- }, s = P(() => d[t.size]), m = {
35
- sm: "text-xs",
36
- md: "text-sm"
37
- }, l = P(() => m[t.size]);
38
- return (o, i) => (c(), B("label", ue, [
39
- _(A("input", j({ id: e.id }, o.$attrs, {
40
- "onUpdate:modelValue": i[0] || (i[0] = (f) => D(a) ? a.value = f : null),
41
- name: e.name,
42
- disabled: e.disabled,
43
- value: e.value,
44
- type: "checkbox",
45
- class: ["rounded checked:bg-primary-600 checked:hover:bg-primary-700", {
46
- "border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500": e.disabled,
47
- "bg-gray-100": e.disabled && !n(a),
48
- "bg-gray-300 text-primary-600": !e.disabled && n(a),
49
- "cursor-pointer": !e.disabled,
50
- [s.value]: !0
51
- }],
52
- onClickCapture: i[1] || (i[1] = F(() => {
53
- }, ["stop"]))
54
- }), null, 16, ye), [
55
- [N, n(a)]
56
- ]),
57
- A("span", {
58
- for: e.id,
59
- class: V(["leading-tight", { [l.value]: !0 }])
60
- }, k(e.label), 11, pe)
61
- ]));
62
- }
63
- }), fe = /* @__PURE__ */ C({
1
+ import { defineComponent as $, computed as g, capitalize as ae, openBlock as u, createBlock as p, unref as t, mergeProps as K, withCtx as i, createTextVNode as T, toDisplayString as k, ref as w, createElementVNode as O, createVNode as r, createCommentVNode as M, createElementBlock as E, Fragment as R, watch as ne, normalizeClass as oe, renderSlot as ie } from "vue";
2
+ import { a as re, f as B } from "../../formatting.es-RclXHhKo.mjs";
3
+ import { _ as G, a as se } from "../../Button.vue.es-Zw--kuaU.mjs";
4
+ import { _ as de, a as ce } from "../../OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs";
5
+ import { _ as le } from "../../DividerText.vue.es-CNbgif-3.mjs";
6
+ import { _ as me } from "../../ErrorNotification.vue.es-DNd65mQq.mjs";
7
+ import { _ as ue, u as ye, a as pe } from "../../usePayments-BXABv-lF.mjs";
8
+ import { _ as N } from "../../Section.vue.es-CvX9tg2f.mjs";
9
+ import { a as U, e as ve, d as I, g as fe, h as he, j as ge } from "../../customElements-BTj4ii4f.mjs";
10
+ import { g as _e, _ as be } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs";
11
+ import { a as Pe, u as we } from "../../paymentMethods-Nfv9HdkS.mjs";
12
+ import { C as Me } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
13
+ import { _ as Ae } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs";
14
+ import { _ as L } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
15
+ import { _ as W } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs";
16
+ import { u as Se, _ as Ie } from "../../usePaymentMethodAvailability-DUdrs0Ji.mjs";
17
+ import { u as Oe } from "../../usePaymentFormHold-ByUZi3A-.mjs";
18
+ import { c as Te } from "../../payments-BnxbzQUC.mjs";
19
+ import { b as ke, i as Ce, a as xe } from "../../paymentOutcome-BXEU5-84.mjs";
20
+ import { _ as Z } from "../../Amount.vue.es-DPqHB8Xd.mjs";
21
+ import { _ as Ee } from "../../Divider.vue.es-DnP_HqLz.mjs";
22
+ import { _ as $e } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs";
23
+ import { s as Ne } from "../../amount-CondixVt.mjs";
24
+ import { g as De } from "../../invoiceState-BJVHaKs7.mjs";
25
+ import { _ as Fe } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs";
26
+ import { _ as Le } from "../../PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs";
27
+ import { g as Re } from "../../customer.es-DQKl6wFt.mjs";
28
+ import { u as Be } from "../../useLoadInitialData-qzdnBoui.mjs";
29
+ import { u as Ue, D as je } from "../../usePaymentMethods-ByaKF7mf.mjs";
30
+ function Ve(e, a, n = /* @__PURE__ */ new Date()) {
31
+ return e.flatMap((y) => {
32
+ const c = a.find(
33
+ ({ integration: s }) => !!y.integration_id && (s == null ? void 0 : s.id) === y.integration_id
34
+ );
35
+ return c && Pe(y, n) ? [{ paymentMethod: y, paymentAcceptorId: c.payment_acceptor.id }] : [];
36
+ });
37
+ }
38
+ function ze(e) {
39
+ var a;
40
+ return (a = e.find(({ is_default: n }) => n) ?? e[0]) == null ? void 0 : a.id;
41
+ }
42
+ function He(e) {
43
+ return e.type === "CARD" && e.card.last_four_digits ? [e.card.brand ? re(e.card.brand) : void 0, `•••• ${e.card.last_four_digits}`].filter(Boolean).join(" ") : _e(e);
44
+ }
45
+ const Ye = /* @__PURE__ */ $({
64
46
  __name: "PayButton",
65
47
  props: {
66
48
  amount: { type: Object },
67
49
  paymentMethod: { type: Object },
50
+ paymentMethodLabel: { type: String },
68
51
  type: { type: String },
69
52
  intent: { type: String },
70
53
  size: { type: String },
@@ -79,22 +62,26 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
79
62
  },
80
63
  emits: ["click"],
81
64
  setup(e) {
82
- const t = e, { $t: a } = R(), d = P(() => ({
83
- intent: t.intent ?? "primary",
84
- disabled: t.disabled,
85
- iconPrefix: t.iconPrefix,
86
- iconSuffix: t.iconSuffix,
87
- loading: t.loading,
88
- pill: t.pill,
89
- size: t.size ?? "lg",
90
- square: t.square,
91
- tag: t.tag,
92
- type: t.type
93
- })), s = P(() => {
94
- var l, o, i;
95
- switch ((l = t.paymentMethod) == null ? void 0 : l.paymentMethodType) {
65
+ const a = e, { $t: n } = U(), y = g(() => ({
66
+ intent: a.intent ?? "primary",
67
+ disabled: a.disabled,
68
+ iconPrefix: a.iconPrefix,
69
+ iconSuffix: a.iconSuffix,
70
+ loading: a.loading,
71
+ pill: a.pill,
72
+ size: a.size ?? "lg",
73
+ square: a.square,
74
+ tag: a.tag,
75
+ type: a.type
76
+ })), c = g(() => {
77
+ var l, o, m;
78
+ switch ((l = a.paymentMethod) == null ? void 0 : l.paymentMethodType) {
96
79
  case "scheme":
97
- return "Credit Card";
80
+ return n({
81
+ defaultMessage: "Credit Card",
82
+ id: "pay_button.payment_method.card",
83
+ description: 'Name of card payments in the pay button label, as in "Pay €10.00 with Credit Card"'
84
+ });
98
85
  case "applepay":
99
86
  return "Apple Pay";
100
87
  case "googlepay":
@@ -161,136 +148,396 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
161
148
  case "openbanking_UK":
162
149
  return "Open Banking";
163
150
  default:
164
- return (o = t.paymentMethod) != null && o.paymentMethodType ? U((i = t.paymentMethod) == null ? void 0 : i.paymentMethodType) : "";
151
+ return (o = a.paymentMethod) != null && o.paymentMethodType ? ae((m = a.paymentMethod) == null ? void 0 : m.paymentMethodType) : "";
165
152
  }
166
- }), m = P(() => t.amount && t.paymentMethod ? a(
153
+ }), s = g(() => a.amount && (a.paymentMethod || a.paymentMethodLabel) ? n(
167
154
  {
168
155
  defaultMessage: "Pay {amount} with {type}",
169
156
  id: "pay_button.label.amount_and_payment_method",
170
157
  description: "The label for the pay button when both the amount and the payment method are known"
171
158
  },
172
159
  {
173
- amount: z(t.amount),
174
- type: s.value
160
+ amount: B(a.amount),
161
+ type: a.paymentMethodLabel ?? c.value
175
162
  }
176
- ) : t.amount ? a(
163
+ ) : a.amount ? n(
177
164
  {
178
165
  defaultMessage: "Pay {amount}",
179
166
  id: "pay_button.label.amount_only",
180
167
  description: "The label for the pay button when only the amount is known"
181
168
  },
182
169
  {
183
- amount: z(t.amount),
184
- type: s.value
170
+ amount: B(a.amount),
171
+ type: c.value
185
172
  }
186
- ) : a({
173
+ ) : n({
187
174
  defaultMessage: "Pay",
188
175
  id: "pay_button.label.default",
189
176
  description: "The default label for the pay button when no amount and payment method are known"
190
177
  }));
191
- return (l, o) => (c(), y(n(E), j(d.value, {
178
+ return (l, o) => (u(), p(t(G), K(y.value, {
192
179
  class: "w-full",
193
- onClick: o[0] || (o[0] = (i) => l.$emit("click", i))
180
+ onClick: o[0] || (o[0] = (m) => l.$emit("click", m))
194
181
  }), {
195
- default: r(() => [
196
- O(k(m.value), 1)
182
+ default: i(() => [
183
+ T(k(s.value), 1)
197
184
  ]),
198
185
  _: 1
199
186
  }, 16));
200
187
  }
201
- }), ge = { class: "mt-4" }, he = { key: 0 }, be = /* @__PURE__ */ C({
188
+ });
189
+ function qe() {
190
+ const { chargeStoredPaymentMethod: e } = Te(), a = ve(), n = w(!1);
191
+ return { isPending: n, charge: async (c) => {
192
+ if (n.value) return "UNCONFIRMED";
193
+ n.value = !0;
194
+ const s = {
195
+ paymentAcceptorId: c.paymentAcceptorId,
196
+ invoiceId: c.invoiceId
197
+ };
198
+ try {
199
+ const l = await e(c), o = ke(l);
200
+ return o === "FAILED" && a.error(
201
+ "PAYMENT_AUTHORIZATION_FAILED",
202
+ "Failed to charge the invoice to a stored payment method",
203
+ {
204
+ ...s,
205
+ reason: "PAYMENT_AUTHORIZATION_REJECTED",
206
+ status: l.status
207
+ }
208
+ ), o;
209
+ } catch (l) {
210
+ return a.error(
211
+ "PAYMENT_AUTHORIZATION_FAILED",
212
+ "Failed to charge the invoice to a stored payment method",
213
+ { ...s, reason: "PAYMENT_AUTHORIZATION_FAILED" },
214
+ l
215
+ ), Ce(l) ? "UNCONFIRMED" : "FAILED";
216
+ } finally {
217
+ n.value = !1;
218
+ }
219
+ } };
220
+ }
221
+ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { class: "flex flex-row gap-3 px-3 py-2" }, Ke = { class: "min-w-0 grow" }, Ge = { class: "sv-invoice-order-summary__paid flex flex-row gap-2 py-1.5" }, Je = { class: "sv-invoice-order-summary__due flex flex-row gap-2 py-1.5" }, Qe = /* @__PURE__ */ $({
222
+ __name: "InvoiceOrderSummary",
223
+ props: {
224
+ invoice: { type: Object },
225
+ isPaid: { type: Boolean }
226
+ },
227
+ setup(e) {
228
+ const a = e, { $t: n, formatDate: y } = U(), c = g(() => ({
229
+ "invoice_preview.total_due_today_heading": n({
230
+ defaultMessage: "Total",
231
+ id: "pay_invoice.order_summary.total_heading",
232
+ description: 'Heading of the invoice total in the order summary of the pay invoice screen, replacing the shared preview’s "Total due today"'
233
+ })
234
+ })), s = g(() => a.invoice.open_invoice_amount), l = (m) => m.startsWith("-") ? m.slice(1) : `-${m}`, o = g(() => {
235
+ const m = a.invoice.tax_summary.total_amount, f = s.value;
236
+ if (!(a.isPaid || a.invoice.paid || !f) && Number(f.quantity) !== Number(m.quantity))
237
+ return Ne(
238
+ [m, { ...f, quantity: l(f.quantity) }],
239
+ a.invoice.billing_currency
240
+ );
241
+ });
242
+ return (m, f) => (u(), p(t(N), {
243
+ class: "sv-order-summary sv-invoice-order-summary",
244
+ "no-border": "",
245
+ "no-spacing": "",
246
+ "content-background": "none",
247
+ title: t(n)({
248
+ defaultMessage: "Invoice summary",
249
+ id: "pay_invoice.order_summary.title",
250
+ description: "Title of the block listing what the invoice being paid is for"
251
+ })
252
+ }, {
253
+ default: i(() => [
254
+ O("div", We, [
255
+ r(t(N), {
256
+ "no-spacing": "",
257
+ class: "sv-invoice-order-summary__invoice"
258
+ }, {
259
+ default: i(() => [
260
+ O("div", Ze, [
261
+ O("div", Ke, [
262
+ r(t(I), {
263
+ variant: "body",
264
+ weight: "semibold",
265
+ "no-spacing": "",
266
+ class: "truncate"
267
+ }, {
268
+ default: i(() => [
269
+ T(k(t(n)(
270
+ {
271
+ defaultMessage: "Invoice {number}",
272
+ id: "pay_invoice.order_summary.invoice_number",
273
+ description: "Names the invoice being paid at the top of its order summary"
274
+ },
275
+ { number: e.invoice.invoice_number }
276
+ )), 1)
277
+ ]),
278
+ _: 1
279
+ }),
280
+ e.invoice.due_date ? (u(), p(t(I), {
281
+ key: 0,
282
+ variant: "body-xs",
283
+ color: "subtle",
284
+ "no-spacing": "",
285
+ class: "sv-invoice-order-summary__due-date"
286
+ }, {
287
+ default: i(() => [
288
+ T(k(t(n)(
289
+ {
290
+ defaultMessage: "Due on {date}",
291
+ id: "pay_invoice.order_summary.due_date",
292
+ description: "When the invoice being paid is due, under its number in the order summary"
293
+ },
294
+ {
295
+ date: t(y)({
296
+ date: e.invoice.due_date,
297
+ format: "date",
298
+ timezone: t(De)(e.invoice),
299
+ offsetType: "offsetted"
300
+ })
301
+ }
302
+ )), 1)
303
+ ]),
304
+ _: 1
305
+ })) : M("", !0)
306
+ ])
307
+ ])
308
+ ]),
309
+ _: 1
310
+ }),
311
+ r($e, { messages: c.value }, {
312
+ default: i(() => [
313
+ r(de, {
314
+ invoice: e.invoice,
315
+ "is-paid": e.isPaid
316
+ }, {
317
+ default: i(() => [
318
+ o.value && s.value ? (u(), E(R, { key: 0 }, [
319
+ O("div", Ge, [
320
+ r(t(I), {
321
+ tag: "span",
322
+ variant: "body-xs",
323
+ class: "grow"
324
+ }, {
325
+ default: i(() => [
326
+ T(k(t(n)({
327
+ defaultMessage: "Already paid",
328
+ id: "pay_invoice.order_summary.already_paid",
329
+ description: "What has been paid on the invoice so far, in its order summary"
330
+ })), 1)
331
+ ]),
332
+ _: 1
333
+ }),
334
+ r(t(I), {
335
+ tag: "span",
336
+ variant: "body-xs"
337
+ }, {
338
+ default: i(() => [
339
+ r(t(Z), { value: o.value }, null, 8, ["value"])
340
+ ]),
341
+ _: 1
342
+ })
343
+ ]),
344
+ r(t(Ee), { spacing: "xxs" }),
345
+ O("div", Je, [
346
+ r(t(I), {
347
+ tag: "span",
348
+ variant: "body-sm",
349
+ weight: "semibold",
350
+ class: "grow"
351
+ }, {
352
+ default: i(() => [
353
+ T(k(t(n)({
354
+ defaultMessage: "Amount due",
355
+ id: "pay_invoice.order_summary.amount_due",
356
+ description: "What is still to be paid on the invoice, in its order summary"
357
+ })), 1)
358
+ ]),
359
+ _: 1
360
+ }),
361
+ r(t(I), {
362
+ tag: "span",
363
+ variant: "body-sm",
364
+ weight: "semibold"
365
+ }, {
366
+ default: i(() => [
367
+ r(t(Z), { value: s.value }, null, 8, ["value"])
368
+ ]),
369
+ _: 1
370
+ })
371
+ ])
372
+ ], 64)) : M("", !0)
373
+ ]),
374
+ _: 1
375
+ }, 8, ["invoice", "is-paid"])
376
+ ]),
377
+ _: 1
378
+ }, 8, ["messages"])
379
+ ])
380
+ ]),
381
+ _: 1
382
+ }, 8, ["title"]));
383
+ }
384
+ }), Xe = {
385
+ key: 1,
386
+ class: "grid grid-cols-1 gap-6"
387
+ }, et = ["aria-label"], tt = ["inert"], at = { class: "mt-4" }, nt = {
388
+ key: 0,
389
+ class: "flex flex-col gap-2"
390
+ }, ot = /* @__PURE__ */ $({
202
391
  __name: "PayInvoice",
203
392
  props: {
204
393
  invoice: { type: Object },
205
394
  paymentMethodOptions: { type: Array },
395
+ paymentMethods: { default: () => [], type: Array },
206
396
  paymentAttempts: { default: () => [], type: Array },
207
397
  countryCode: { type: String },
208
398
  amount: { type: Object },
209
399
  downloadService: { type: Function },
400
+ refresh: { type: Function },
210
401
  configuration: { type: Object },
211
402
  isLoading: { type: Boolean },
212
403
  error: { type: null }
213
404
  },
214
405
  setup(e) {
215
- const { $t: t } = R(), a = e, { availability: d } = ie({
216
- paymentMethodOptions: () => a.paymentMethodOptions,
217
- isLoading: () => a.isLoading,
406
+ const { $t: a } = U(), n = e, { availability: y } = Se({
407
+ paymentMethodOptions: () => n.paymentMethodOptions,
408
+ isLoading: () => n.isLoading,
218
409
  context: () => {
219
- var g;
220
- return { invoiceId: (g = a.invoice) == null ? void 0 : g.id };
410
+ var d;
411
+ return { invoiceId: (d = n.invoice) == null ? void 0 : d.id };
412
+ }
413
+ }), c = w(), s = w(!0), l = w(), o = w(!1), { isFormHeld: m, handleActionRequired: f } = Oe(o), S = w(!1), C = w(!1), _ = g(
414
+ () => Ve(n.paymentMethods, n.paymentMethodOptions ?? [])
415
+ ), b = w();
416
+ ne(
417
+ _,
418
+ (d) => {
419
+ b.value || (b.value = ze(
420
+ d.map(({ paymentMethod: v }) => v)
421
+ ));
422
+ },
423
+ { immediate: !0 }
424
+ );
425
+ const P = g(
426
+ () => _.value.find(
427
+ ({ paymentMethod: d }) => d.id === b.value
428
+ )
429
+ ), D = (d) => {
430
+ c.value = d, d.isAutomatic || (b.value = void 0);
431
+ }, h = g(
432
+ () => a({
433
+ id: "pay_invoice.stored_payment_methods.title",
434
+ defaultMessage: "Your payment methods",
435
+ description: "Section title above the payment methods the customer stored before, on the pay invoice screen"
436
+ })
437
+ ), { charge: j } = qe(), x = w(!1), F = w(), J = async () => {
438
+ const d = P.value;
439
+ if (!d || !n.invoice || !n.amount) return;
440
+ o.value = !0, x.value = !1;
441
+ const v = await j({
442
+ paymentAcceptorId: d.paymentAcceptorId,
443
+ customerId: n.invoice.customer.id,
444
+ paymentMethodId: d.paymentMethod.id,
445
+ invoiceId: n.invoice.id,
446
+ amount: n.amount
447
+ });
448
+ if (v === "SUCCEEDED") {
449
+ V();
450
+ return;
451
+ }
452
+ if (o.value = !1, v === "UNCONFIRMED") {
453
+ C.value = !0, F.value = xe({
454
+ code: "PAYMENT_OUTCOME_UNCONFIRMED",
455
+ message: "The charge to the stored payment method could not be confirmed"
456
+ });
457
+ return;
458
+ }
459
+ x.value = !0;
460
+ };
461
+ function Q() {
462
+ if (P.value) {
463
+ J();
464
+ return;
221
465
  }
222
- }), s = x(), m = x(!0), l = x(), o = x(!1);
223
- function i() {
224
466
  if (!l.value)
225
467
  throw new Error("payment integration form not found");
226
468
  o.value = !0, l.value.submit();
227
469
  }
228
- const f = () => {
229
- a.configuration.onPaymentSuccess && a.configuration.onPaymentSuccess();
230
- }, h = () => {
470
+ const X = g(
471
+ () => !!(P.value || c.value) && !o.value && !C.value
472
+ ), V = () => {
473
+ var d;
474
+ S.value = !0, o.value = !1, (d = n.refresh) == null || d.call(n), n.configuration.onPaymentSuccess && n.configuration.onPaymentSuccess();
475
+ }, ee = () => {
231
476
  o.value = !1;
477
+ }, te = (d) => {
478
+ o.value = !1, (d == null ? void 0 : d.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (C.value = !0);
232
479
  };
233
- return (g, v) => (c(), y(n(ae), null, {
234
- header: r(() => [
235
- p($, { class: "min-h-[52px] w-96" }, {
236
- default: r(() => [
237
- e.invoice && e.downloadService ? (c(), y(n(G), {
480
+ return (d, v) => (u(), p(t(Me), null, {
481
+ header: i(() => [
482
+ r(L, { class: "min-h-[52px] w-96" }, {
483
+ default: i(() => [
484
+ e.invoice && e.downloadService ? (u(), p(t(ue), {
238
485
  key: 0,
239
486
  invoice: e.invoice,
240
487
  "payment-attempts": e.paymentAttempts,
241
488
  "download-service": () => e.downloadService(e.invoice)
242
- }, null, 8, ["invoice", "payment-attempts", "download-service"])) : w("", !0)
489
+ }, null, 8, ["invoice", "payment-attempts", "download-service"])) : M("", !0)
243
490
  ]),
244
491
  _: 1
245
492
  })
246
493
  ]),
247
- content: r(() => {
248
- var M, u;
494
+ content: i(() => {
495
+ var z, H;
249
496
  return [
250
- e.isLoading ? (c(), y($, {
497
+ e.isLoading ? (u(), p(L, {
251
498
  key: 0,
252
499
  variant: "section",
253
500
  class: "min-h-[300px]"
254
- })) : w("", !0),
255
- (M = e.invoice) != null && M.paid ? (c(), y(L, {
501
+ })) : M("", !0),
502
+ (z = e.invoice) != null && z.paid || e.invoice && S.value ? (u(), p(W, {
256
503
  key: 1,
257
504
  status: "success",
258
- title: n(t)({
505
+ title: t(a)({
259
506
  id: "pay_invoice.paid.title",
260
507
  defaultMessage: "Thank you for your payment!",
261
508
  description: "Title shown when the invoice has already been paid"
262
509
  }),
263
510
  class: "mt-8"
264
511
  }, {
265
- default: r(() => [
266
- p(n(T), {
512
+ default: i(() => [
513
+ r(t(I), {
267
514
  variant: "body-sm",
268
515
  class: "mt-1"
269
516
  }, {
270
- default: r(() => [
271
- p(n(Y), { icon: "check" }),
272
- O(k(n(z)(e.invoice.tax_summary.total_amount)), 1)
517
+ default: i(() => [
518
+ r(t(se), { icon: "check" }),
519
+ T(k(t(B)(e.invoice.tax_summary.total_amount)), 1)
273
520
  ]),
274
521
  _: 1
275
522
  })
276
523
  ]),
277
524
  _: 1
278
- }, 8, ["title"])) : e.error ? (c(), y(L, {
525
+ }, 8, ["title"])) : e.error ? (u(), p(W, {
279
526
  key: 2,
280
527
  status: "error",
281
- title: n(t)({
528
+ title: t(a)({
282
529
  id: "pay_invoice.error.title",
283
530
  defaultMessage: "Something went wrong",
284
531
  description: "Title shown when the invoice payment fails to load"
285
532
  })
286
533
  }, {
287
- default: r(() => [
288
- p(n(T), {
534
+ default: i(() => [
535
+ r(t(I), {
289
536
  variant: "body-sm",
290
537
  class: "mt-1"
291
538
  }, {
292
- default: r(() => [
293
- O(k(n(t)({
539
+ default: i(() => [
540
+ T(k(t(a)({
294
541
  id: "pay_invoice.error.description",
295
542
  defaultMessage: "Please try again or contact support.",
296
543
  description: "Body text shown when the invoice payment fails to load"
@@ -300,124 +547,188 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
300
547
  })
301
548
  ]),
302
549
  _: 1
303
- }, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (c(), B(W, { key: 3 }, [
304
- n(d) === "READY" ? (c(), y(n(ee), {
550
+ }, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (u(), E(R, { key: 3 }, [
551
+ t(y) === "READY" && F.value ? (u(), p(Le, {
305
552
  key: 0,
306
- title: n(t)({
307
- id: "pay_invoice.payment_methods.title",
308
- defaultMessage: "Payment methods",
309
- description: "Section title for the payment method selector on the pay invoice screen"
310
- }),
311
- "content-background": "none",
312
- "no-border": "",
313
- "no-spacing": ""
314
- }, {
315
- default: r(() => {
316
- var b, S;
317
- return [
318
- A("div", {
319
- class: V({ "pointer-events-none opacity-60": o.value })
320
- }, [
321
- p(oe, {
322
- ref_key: "paymentIntegrationFormRef",
323
- ref: l,
324
- amount: e.amount,
325
- "country-code": e.countryCode,
326
- context: {
327
- type: "INVOICE",
328
- related_resource_ids: [
329
- {
330
- type: "INVOICE",
331
- id: e.invoice.id
332
- }
333
- ]
334
- },
335
- "customer-id": e.invoice.customer.id,
336
- "store-payment-method": m.value,
337
- "invoice-id": e.invoice.id,
338
- "payment-method-options": e.paymentMethodOptions ?? [],
339
- variant: "AUTHORIZE",
340
- "billing-entity-name": (S = (b = e.invoice) == null ? void 0 : b.billing_entity) == null ? void 0 : S.legal_name,
341
- onPaymentSuccess: f,
342
- onPaymentFailed: h,
343
- onInvalid: h,
344
- onSelect: v[0] || (v[0] = (I) => s.value = I)
345
- }, null, 8, ["amount", "country-code", "context", "customer-id", "store-payment-method", "invoice-id", "payment-method-options", "billing-entity-name"]),
346
- A("div", ge, [
347
- p(n(ve), {
348
- id: "pay-invoice-store-payment-method",
349
- modelValue: m.value,
350
- "onUpdate:modelValue": v[1] || (v[1] = (I) => m.value = I),
351
- label: n(t)({
352
- id: "pay_invoice.store_payment_method.label",
353
- defaultMessage: "Save this payment method for future payments",
354
- description: "Label of the checkbox that stores the payment method while paying an invoice"
355
- })
356
- }, null, 8, ["modelValue", "label"])
357
- ])
358
- ], 2)
359
- ];
360
- }),
361
- _: 1
362
- }, 8, ["title"])) : (c(), y(re, {
363
- key: 1,
553
+ class: "sv-pay-invoice__stored-payment-unconfirmed",
554
+ error: F.value
555
+ }, null, 8, ["error"])) : t(y) === "READY" ? (u(), E("div", Xe, [
556
+ _.value.length ? (u(), E(R, { key: 0 }, [
557
+ r(t(N), {
558
+ class: "sv-pay-invoice__stored-payment-methods",
559
+ title: h.value,
560
+ "content-background": "none",
561
+ "no-border": "",
562
+ "no-spacing": ""
563
+ }, {
564
+ default: i(() => [
565
+ O("div", {
566
+ role: "group",
567
+ "aria-label": h.value
568
+ }, [
569
+ r(be, {
570
+ modelValue: b.value,
571
+ "onUpdate:modelValue": v[0] || (v[0] = (A) => b.value = A),
572
+ "payment-methods": _.value.map(
573
+ ({ paymentMethod: A }) => A
574
+ ),
575
+ "show-add-option": !1,
576
+ disabled: o.value || t(m)
577
+ }, null, 8, ["modelValue", "payment-methods", "disabled"])
578
+ ], 8, et)
579
+ ]),
580
+ _: 1
581
+ }, 8, ["title"]),
582
+ x.value ? (u(), p(t(me), {
583
+ key: 0,
584
+ class: "sv-pay-invoice__stored-payment-error sv-error",
585
+ title: t(a)({
586
+ id: "pay_invoice.stored_payment_method.failed",
587
+ defaultMessage: "The payment did not go through. Try again or use another payment method.",
588
+ description: "Shown when charging the invoice to a stored payment method fails"
589
+ })
590
+ }, null, 8, ["title"])) : M("", !0),
591
+ r(t(le), {
592
+ text: t(a)({
593
+ id: "pay_invoice.stored_payment_methods.divider_text",
594
+ defaultMessage: "or",
595
+ description: "Between the stored payment methods and the form to pay with a new one"
596
+ }),
597
+ "text-position": "center"
598
+ }, null, 8, ["text"])
599
+ ], 64)) : M("", !0),
600
+ r(t(N), {
601
+ title: _.value.length ? t(a)({
602
+ id: "pay_invoice.new_payment_method.title",
603
+ defaultMessage: "Pay with a new payment method",
604
+ description: "Section title for the payment form below the stored payment methods, on the pay invoice screen"
605
+ }) : t(a)({
606
+ id: "pay_invoice.payment_methods.title",
607
+ defaultMessage: "Payment methods",
608
+ description: "Section title for the payment method selector on the pay invoice screen"
609
+ }),
610
+ "content-background": "none",
611
+ "no-border": "",
612
+ "no-spacing": ""
613
+ }, {
614
+ default: i(() => {
615
+ var A, Y;
616
+ return [
617
+ O("div", {
618
+ class: oe({ "pointer-events-none opacity-60": t(m) }),
619
+ inert: t(m) || void 0
620
+ }, [
621
+ r(Ae, {
622
+ ref_key: "paymentIntegrationFormRef",
623
+ ref: l,
624
+ amount: e.amount,
625
+ "country-code": e.countryCode,
626
+ context: {
627
+ type: "INVOICE",
628
+ related_resource_ids: [
629
+ {
630
+ type: "INVOICE",
631
+ id: e.invoice.id
632
+ }
633
+ ]
634
+ },
635
+ "customer-id": e.invoice.customer.id,
636
+ "store-payment-method": s.value,
637
+ "invoice-id": e.invoice.id,
638
+ "payment-method-options": e.paymentMethodOptions ?? [],
639
+ "open-first-payment-method": !_.value.length,
640
+ variant: "AUTHORIZE",
641
+ "billing-entity-name": (Y = (A = e.invoice) == null ? void 0 : A.billing_entity) == null ? void 0 : Y.legal_name,
642
+ onPaymentSuccess: V,
643
+ onPaymentFailed: te,
644
+ onInvalid: ee,
645
+ onSubmitting: v[1] || (v[1] = (q) => o.value = !0),
646
+ onActionRequired: t(f),
647
+ onSelect: D
648
+ }, null, 8, ["amount", "country-code", "context", "customer-id", "store-payment-method", "invoice-id", "payment-method-options", "open-first-payment-method", "billing-entity-name", "onActionRequired"]),
649
+ O("div", at, [
650
+ r(t(ce), {
651
+ id: "pay-invoice-store-payment-method",
652
+ modelValue: s.value,
653
+ "onUpdate:modelValue": v[2] || (v[2] = (q) => s.value = q),
654
+ label: t(a)({
655
+ id: "pay_invoice.store_payment_method.label",
656
+ defaultMessage: "Save this payment method for future payments",
657
+ description: "Label of the checkbox that stores the payment method while paying an invoice"
658
+ })
659
+ }, null, 8, ["modelValue", "label"])
660
+ ])
661
+ ], 10, tt)
662
+ ];
663
+ }),
664
+ _: 1
665
+ }, 8, ["title"])
666
+ ])) : (u(), p(Ie, {
667
+ key: 2,
364
668
  variant: "AUTHORIZE",
365
- "seller-name": (u = e.invoice.billing_entity) == null ? void 0 : u.legal_name
669
+ "seller-name": (H = e.invoice.billing_entity) == null ? void 0 : H.legal_name
366
670
  }, {
367
- default: r(() => [
368
- e.downloadService ? (c(), y(n(E), {
671
+ default: i(() => [
672
+ e.downloadService ? (u(), p(t(G), {
369
673
  key: 0,
370
674
  type: "button",
371
675
  intent: "secondary",
372
- onClick: v[2] || (v[2] = () => {
373
- var b;
374
- return (b = e.downloadService) == null ? void 0 : b.call(e, e.invoice);
676
+ onClick: v[3] || (v[3] = () => {
677
+ var A;
678
+ return (A = e.downloadService) == null ? void 0 : A.call(e, e.invoice);
375
679
  })
376
680
  }, {
377
- default: r(() => [
378
- O(k(n(t)({
681
+ default: i(() => [
682
+ T(k(t(a)({
379
683
  defaultMessage: "Download invoice",
380
684
  description: "Button that downloads the invoice when it cannot be paid online",
381
685
  id: "pay_invoice.unavailable.download_invoice"
382
686
  })), 1)
383
687
  ]),
384
688
  _: 1
385
- })) : w("", !0)
689
+ })) : M("", !0)
386
690
  ]),
387
691
  _: 1
388
692
  }, 8, ["seller-name"]))
389
- ], 64)) : w("", !0)
693
+ ], 64)) : M("", !0)
390
694
  ];
391
695
  }),
392
- aside: r(() => [
393
- p($, {
696
+ aside: i(() => [
697
+ r(L, {
394
698
  variant: "section",
395
699
  class: "min-h-[200px]"
396
700
  }, {
397
- default: r(() => [
398
- e.invoice ? (c(), y(n(X), {
701
+ default: i(() => [
702
+ e.invoice ? (u(), p(Qe, {
399
703
  key: 0,
400
- invoice: e.invoice
401
- }, null, 8, ["invoice"])) : w("", !0)
704
+ invoice: e.invoice,
705
+ "is-paid": e.invoice.paid || S.value
706
+ }, null, 8, ["invoice", "is-paid"])) : M("", !0)
402
707
  ]),
403
708
  _: 1
404
709
  }),
405
- e.invoice && !e.invoice.paid && n(d) === "READY" ? (c(), B("div", he, [
406
- p(fe, {
407
- disabled: !s.value || o.value,
710
+ e.invoice && !e.invoice.paid && !S.value && t(y) === "READY" ? (u(), E("div", nt, [
711
+ r(Ye, {
712
+ disabled: !X.value,
408
713
  loading: o.value,
409
714
  amount: e.amount,
410
- "payment-method": s.value,
411
- onClick: i
412
- }, null, 8, ["disabled", "loading", "amount", "payment-method"])
413
- ])) : w("", !0)
715
+ "payment-method": P.value ? void 0 : c.value,
716
+ "payment-method-label": P.value && t(He)(P.value.paymentMethod),
717
+ onClick: Q
718
+ }, null, 8, ["disabled", "loading", "amount", "payment-method", "payment-method-label"]),
719
+ r(Fe, {
720
+ class: "sv-pay-invoice__kpi",
721
+ "payment-method-options": e.paymentMethodOptions ?? []
722
+ }, null, 8, ["payment-method-options"])
723
+ ])) : M("", !0)
414
724
  ]),
415
725
  _: 1
416
726
  }));
417
727
  }
418
- }), we = /* @__PURE__ */ C({
728
+ }), it = /* @__PURE__ */ $({
419
729
  __name: "PayInvoice.entry.view",
420
730
  props: {
731
+ portalToken: { type: Object },
421
732
  environment: { type: String },
422
733
  locale: { type: String },
423
734
  dateLocale: { type: String },
@@ -435,47 +746,51 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
435
746
  configuration: { type: Object }
436
747
  },
437
748
  setup(e) {
438
- const t = e, {
439
- invoice: a,
440
- get: d,
441
- downloadInvoicePdf: s,
442
- error: m
443
- } = J({ invoiceId: t.configuration.invoiceId }), { payments: l, get: o } = Q(), { fetchInitial: i } = de({
444
- customerId: t.portalObject.customer_id
445
- }), { paymentMethodOptions: f, get: h } = ce(), g = async () => {
446
- const u = await d();
447
- await h({
448
- customerId: u.customer.id,
449
- invoiceId: u.id,
450
- amount: u.open_invoice_amount
749
+ const a = e, {
750
+ invoice: n,
751
+ get: y,
752
+ downloadInvoicePdf: c,
753
+ error: s
754
+ } = ye({ invoiceId: a.configuration.invoiceId }), { payments: l, get: o } = pe(), { paymentMethodOptions: m, get: f } = we(), { items: S, fetchAll: C } = Ue({
755
+ customerId: a.portalObject.customer_id,
756
+ order: je
757
+ }), _ = async () => {
758
+ const h = await y();
759
+ await f({
760
+ customerId: h.customer.id,
761
+ invoiceId: h.id,
762
+ amount: h.open_invoice_amount
451
763
  });
452
- }, { isLoading: v } = le(
453
- g(),
454
- i(),
455
- o(t.configuration.invoiceId)
456
- ), M = P(
764
+ }, { isLoading: b } = Be(
765
+ _(),
766
+ o(a.configuration.invoiceId),
767
+ C()
768
+ ), P = () => Promise.allSettled([y(), o(a.configuration.invoiceId)]), D = g(
457
769
  () => {
458
- var u;
459
- return (u = a.value) != null && u.customer ? se(a.value.customer) : void 0;
770
+ var h;
771
+ return (h = n.value) != null && h.customer ? Re(n.value.customer) : void 0;
460
772
  }
461
773
  );
462
- return (u, b) => {
463
- var S;
464
- return q(u.$slots, "default", {
465
- invoice: n(a),
466
- isLoading: n(v),
467
- amount: (S = n(a)) == null ? void 0 : S.open_invoice_amount,
468
- countryCode: M.value,
469
- paymentMethodOptions: n(f),
470
- paymentAttempts: n(l),
471
- downloadService: n(s),
472
- error: n(m)
774
+ return (h, j) => {
775
+ var x;
776
+ return ie(h.$slots, "default", {
777
+ invoice: t(n),
778
+ isLoading: t(b),
779
+ amount: (x = t(n)) == null ? void 0 : x.open_invoice_amount,
780
+ countryCode: D.value,
781
+ paymentMethodOptions: t(m),
782
+ paymentMethods: t(S),
783
+ paymentAttempts: t(l),
784
+ downloadService: t(c),
785
+ refresh: P,
786
+ error: t(s)
473
787
  });
474
788
  };
475
789
  }
476
- }), Pe = /* @__PURE__ */ C({
790
+ }), rt = /* @__PURE__ */ $({
477
791
  __name: "PayInvoice.entry",
478
792
  props: {
793
+ portalToken: { type: Object },
479
794
  environment: { type: String },
480
795
  locale: { type: String },
481
796
  dateLocale: { type: String },
@@ -493,47 +808,57 @@ const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name
493
808
  configuration: { type: Object }
494
809
  },
495
810
  setup(e) {
496
- const t = me("pay-invoice");
497
- return (a, d) => (c(), y(n(te), {
498
- entry: a.$props,
499
- "component-name": n(t),
500
- "allowed-portal-types": ["CUSTOMER"],
501
- onError: d[0] || (d[0] = (s) => a.$emit("error", s))
502
- }, {
503
- default: r(() => [
504
- p(we, H(K(a.$props)), {
505
- default: r(({
506
- invoice: s,
507
- isLoading: m,
508
- amount: l,
509
- countryCode: o,
510
- paymentMethodOptions: i,
511
- paymentAttempts: f,
512
- downloadService: h,
513
- error: g
514
- }) => [
515
- p(be, {
516
- "is-loading": m,
811
+ const a = he("pay-invoice");
812
+ return (n, y) => {
813
+ var c;
814
+ return u(), p(t(fe), {
815
+ entry: n.$props,
816
+ "component-name": t(a),
817
+ "allowed-portal-types": ["CUSTOMER"],
818
+ "required-configuration": { invoiceId: (c = e.configuration) == null ? void 0 : c.invoiceId },
819
+ onError: y[0] || (y[0] = (s) => n.$emit("error", s))
820
+ }, {
821
+ default: i(() => [
822
+ (u(), p(it, K({
823
+ key: e.configuration.invoiceId
824
+ }, n.$props), {
825
+ default: i(({
517
826
  invoice: s,
518
- amount: l,
519
- "country-code": o,
520
- "payment-method-options": i,
521
- configuration: e.configuration,
522
- "payment-attempts": f ?? [],
523
- "download-service": h,
524
- error: g
525
- }, null, 8, ["is-loading", "invoice", "amount", "country-code", "payment-method-options", "configuration", "payment-attempts", "download-service", "error"])
526
- ]),
527
- _: 1
528
- }, 16)
529
- ]),
530
- _: 1
531
- }, 8, ["entry", "component-name"]));
827
+ isLoading: l,
828
+ amount: o,
829
+ countryCode: m,
830
+ paymentMethodOptions: f,
831
+ paymentMethods: S,
832
+ paymentAttempts: C,
833
+ downloadService: _,
834
+ refresh: b,
835
+ error: P
836
+ }) => [
837
+ r(ot, {
838
+ "is-loading": l,
839
+ invoice: s,
840
+ amount: o,
841
+ "country-code": m,
842
+ "payment-method-options": f,
843
+ "payment-methods": S,
844
+ configuration: e.configuration,
845
+ "payment-attempts": C ?? [],
846
+ "download-service": _,
847
+ refresh: b,
848
+ error: P
849
+ }, null, 8, ["is-loading", "invoice", "amount", "country-code", "payment-method-options", "payment-methods", "configuration", "payment-attempts", "download-service", "refresh", "error"])
850
+ ]),
851
+ _: 1
852
+ }, 16))
853
+ ]),
854
+ _: 1
855
+ }, 8, ["entry", "component-name", "required-configuration"]);
856
+ };
532
857
  }
533
- }), { define: Fe } = ne(
534
- Pe,
858
+ }), { define: Ft } = ge(
859
+ rt,
535
860
  "pay-invoice"
536
861
  );
537
862
  export {
538
- Fe as defineSolvimonPayInvoice
863
+ Ft as defineSolvimonPayInvoice
539
864
  };