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

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 (268) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  5. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  6. package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
  7. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
  9. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  10. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
  11. package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
  12. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  13. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
  14. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  15. package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
  16. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  17. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  18. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
  19. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
  21. package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
  22. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
  23. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  25. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  26. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  27. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  28. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  29. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  30. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  31. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
  32. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
  33. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  34. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  35. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
  36. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
  37. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
  38. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  39. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  40. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  41. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  42. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  43. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  44. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
  45. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
  46. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
  47. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
  48. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  49. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
  50. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  51. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
  52. package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
  53. package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
  54. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  55. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  56. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  57. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
  58. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
  59. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  60. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  61. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
  62. package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
  63. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  64. package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
  65. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
  66. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
  67. package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
  68. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  69. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  70. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
  71. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
  72. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  73. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
  74. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
  75. package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
  76. package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
  77. package/dist/adyen-CHgq2l6n.mjs +99 -0
  78. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  79. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  80. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  81. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  82. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  83. package/dist/components/Invoice/Invoice.mjs +1087 -1019
  84. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  85. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  86. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  87. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  88. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  89. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  90. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  91. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  92. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  93. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  94. package/dist/core/events.types.d.ts +1 -0
  95. package/dist/core/index.mjs +51 -34
  96. package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
  97. package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
  98. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
  99. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
  100. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  101. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  102. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
  103. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
  104. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  105. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  106. package/dist/index.es-Bv55VtdE.mjs +633 -0
  107. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  108. package/dist/index.mjs +37 -33
  109. package/dist/invoices-I7PghcPV.mjs +143 -0
  110. package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
  111. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
  112. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
  113. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
  114. package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
  115. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
  116. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  117. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  118. package/dist/payments-BKoKpoLN.mjs +71 -0
  119. package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
  120. package/dist/pricing-Y-7ELzN-.mjs +42 -0
  121. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  122. package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
  123. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  124. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  125. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  126. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
  127. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  128. package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
  129. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  130. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  131. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  132. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  133. package/dist/subscriptions-B7dNqi1C.mjs +99 -0
  134. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  135. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  136. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  137. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  138. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  139. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  140. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  141. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  142. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  143. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  144. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  145. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  146. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  147. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  151. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  152. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  154. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  157. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  158. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  159. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  160. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  161. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  162. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  167. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  170. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  171. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  172. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  173. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  174. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  175. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  176. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  177. package/dist/types/index.d.ts +5 -1
  178. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  179. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  181. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  182. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  183. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  184. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  185. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  186. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  187. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  188. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  189. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  190. package/dist/types/public/core/action-request.types.d.ts +18 -24
  191. package/dist/types/public/core/events.types.d.ts +99 -0
  192. package/dist/types/public/core/index.d.ts +3 -1
  193. package/dist/types/public/core/types.d.ts +11 -2
  194. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  195. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  196. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  197. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  198. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  199. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  200. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  203. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  204. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  205. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  206. package/dist/types/types/branding.d.ts +15 -0
  207. package/dist/types/types/checkoutSession.d.ts +199 -0
  208. package/dist/types/types/errors.d.ts +2 -0
  209. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  210. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  211. package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
  212. package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
  213. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  214. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  215. package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
  216. package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
  217. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
  218. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  219. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  220. package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  221. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  222. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  223. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  224. package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
  225. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  226. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
  227. package/dist/usePortal-DuLR5Mid.mjs +14 -0
  228. package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
  229. package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
  230. package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
  231. package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
  232. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  233. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  234. package/package.json +41 -11
  235. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  236. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  237. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  238. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  239. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  240. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  241. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
  242. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  243. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  244. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  245. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  246. package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
  247. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  248. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  249. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
  250. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  251. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  252. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  253. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  254. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  255. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
  256. package/dist/invoices-DdREPDXV.mjs +0 -123
  257. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  258. package/dist/payments-CKpU1K3t.mjs +0 -68
  259. package/dist/pricing-CEaZGgKe.mjs +0 -29
  260. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  261. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  262. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  263. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  264. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  265. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  266. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  267. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  268. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,49 +1,50 @@
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-j7iYlqtJ.mjs";
4
- import { _ as de, a as ce } from "../../OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs";
5
- import { _ as le } from "../../DividerText.vue.es-BusbyeAI.mjs";
6
- import { _ as me } from "../../ErrorNotification.vue.es-F068p7PY.mjs";
7
- import { _ as ue, u as ye, a as pe } from "../../usePayments-hWS7fnOx.mjs";
8
- import { _ as N } from "../../Section.vue.es-Oqn1wGPZ.mjs";
9
- import { a as U, e as ve, d as I, g as fe, h as he, j as ge } from "../../customElements-DK4GKNJG.mjs";
10
- import { g as _e, _ as be } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs";
11
- import { a as Pe, u as we } from "../../paymentMethods-Goa25rTs.mjs";
12
- import { C as Me } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
13
- import { _ as Ae } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.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-BHQrWy6r.mjs";
16
- import { u as Se, _ as Ie } from "../../usePaymentMethodAvailability-35l4pWdH.mjs";
17
- import { u as Oe } from "../../usePaymentFormHold-Cwdr-vyc.mjs";
18
- import { c as Te } from "../../payments-CKpU1K3t.mjs";
19
- import { a as ke, i as Ce } from "../../paymentOutcome-B6sW1eCV.mjs";
20
- import { _ as Z } from "../../Amount.vue.es-DPqHB8Xd.mjs";
21
- import { _ as xe } from "../../Divider.vue.es-DnP_HqLz.mjs";
22
- import { _ as Ee } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs";
23
- import { s as $e } from "../../amount-CondixVt.mjs";
24
- import { g as Ne } from "../../invoiceState-BJVHaKs7.mjs";
25
- import { _ as De } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs";
26
- import { _ as Fe } from "../../PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs";
27
- import { a as Le } from "../../paymentFailure-QZdZHBhf.mjs";
28
- import { g as Re } from "../../customer.es-DQKl6wFt.mjs";
29
- import { u as Be } from "../../useLoadInitialData-UvfYXgbi.mjs";
30
- import { u as Ue, D as je } from "../../usePaymentMethods-De7hlLHo.mjs";
31
- function Ve(e, a, n = /* @__PURE__ */ new Date()) {
32
- return e.flatMap((y) => {
1
+ import { defineComponent as D, computed as _, capitalize as oe, openBlock as l, createBlock as p, unref as t, mergeProps as K, withCtx as i, createTextVNode as k, toDisplayString as T, ref as M, createElementVNode as O, createVNode as r, createCommentVNode as I, createElementBlock as N, Fragment as B, watch as ie, normalizeClass as re, renderSlot as se } from "vue";
2
+ import { a as de, f as j } from "../../formatting.es-DlJEzreG.mjs";
3
+ import { _ as G, a as ce } from "../../Button.vue.es-CW7XfMBF.mjs";
4
+ import { _ as le, a as me } from "../../OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs";
5
+ import { _ as ue } from "../../DividerText.vue.es-Dq0JzI8C.mjs";
6
+ import { _ as ye } from "../../ErrorNotification.vue.es-Cw7fqCg1.mjs";
7
+ import { _ as pe, u as ve, a as fe } from "../../usePayments-B5Z9Kfbv.mjs";
8
+ import { _ as F } from "../../Section.vue.es-DYmEtgBj.mjs";
9
+ import { a as V, e as he, d as S, j as ge, k as _e, l as be } from "../../customElements-B8c354Nu.mjs";
10
+ import { g as Pe, _ as we } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs";
11
+ import { i as Me, u as Ie } from "../../usePaymentMethodOptions-CuHoQx3K.mjs";
12
+ import { C as Ae } from "../../ContentWithAsideLayout-C2kFcft1.mjs";
13
+ import { u as Se } from "../../useHostEvent-MtRG6W2B.mjs";
14
+ import { _ as Oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs";
15
+ import { _ as U } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
16
+ import { _ as W } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs";
17
+ import { u as ke, _ as Te } from "../../usePaymentMethodAvailability-DR_neLeZ.mjs";
18
+ import { u as xe } from "../../usePaymentFormHold-CYZ4BdOw.mjs";
19
+ import { c as Ee } from "../../payments-BKoKpoLN.mjs";
20
+ import { a as Ce, i as $e } from "../../paymentOutcome-Cv7hTFVu.mjs";
21
+ import { _ as Z } from "../../Amount.vue.es-CofcgmXt.mjs";
22
+ import { _ as Ne } from "../../Divider.vue.es-DnP_HqLz.mjs";
23
+ import { _ as De } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs";
24
+ import { s as Fe } from "../../amount-CondixVt.mjs";
25
+ import { g as Le } from "../../invoiceState-BJVHaKs7.mjs";
26
+ import { _ as Re } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs";
27
+ import { _ as Ue } from "../../PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs";
28
+ import { a as Be } from "../../paymentFailure-QZdZHBhf.mjs";
29
+ import { g as je } from "../../customer.es-DQKl6wFt.mjs";
30
+ import { u as Ve } from "../../useLoadInitialData-Bomj_1mo.mjs";
31
+ import { u as ze, D as He } from "../../usePaymentMethods-BDdetXts.mjs";
32
+ function Ye(e, a, n = /* @__PURE__ */ new Date()) {
33
+ return e.flatMap((u) => {
33
34
  const c = a.find(
34
- ({ integration: s }) => !!y.integration_id && (s == null ? void 0 : s.id) === y.integration_id
35
+ ({ integration: m }) => !!u.integration_id && (m == null ? void 0 : m.id) === u.integration_id
35
36
  );
36
- return c && Pe(y, n) ? [{ paymentMethod: y, paymentAcceptorId: c.payment_acceptor.id }] : [];
37
+ return c && Me(u, n) ? [{ paymentMethod: u, paymentAcceptorId: c.payment_acceptor.id }] : [];
37
38
  });
38
39
  }
39
- function ze(e) {
40
+ function qe(e) {
40
41
  var a;
41
42
  return (a = e.find(({ is_default: n }) => n) ?? e[0]) == null ? void 0 : a.id;
42
43
  }
43
- function He(e) {
44
- 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
+ function We(e) {
45
+ return e.type === "CARD" && e.card.last_four_digits ? [e.card.brand ? de(e.card.brand) : void 0, `•••• ${e.card.last_four_digits}`].filter(Boolean).join(" ") : Pe(e);
45
46
  }
46
- const Ye = /* @__PURE__ */ $({
47
+ const Ze = /* @__PURE__ */ D({
47
48
  __name: "PayButton",
48
49
  props: {
49
50
  amount: { type: Object },
@@ -63,7 +64,7 @@ const Ye = /* @__PURE__ */ $({
63
64
  },
64
65
  emits: ["click"],
65
66
  setup(e) {
66
- const a = e, { $t: n } = U(), y = g(() => ({
67
+ const a = e, { $t: n } = V(), u = _(() => ({
67
68
  intent: a.intent ?? "primary",
68
69
  disabled: a.disabled,
69
70
  iconPrefix: a.iconPrefix,
@@ -74,9 +75,9 @@ const Ye = /* @__PURE__ */ $({
74
75
  square: a.square,
75
76
  tag: a.tag,
76
77
  type: a.type
77
- })), c = g(() => {
78
- var l, o, m;
79
- switch ((l = a.paymentMethod) == null ? void 0 : l.paymentMethodType) {
78
+ })), c = _(() => {
79
+ var y, o, s;
80
+ switch ((y = a.paymentMethod) == null ? void 0 : y.paymentMethodType) {
80
81
  case "scheme":
81
82
  return n({
82
83
  defaultMessage: "Credit Card",
@@ -149,16 +150,16 @@ const Ye = /* @__PURE__ */ $({
149
150
  case "openbanking_UK":
150
151
  return "Open Banking";
151
152
  default:
152
- return (o = a.paymentMethod) != null && o.paymentMethodType ? ae((m = a.paymentMethod) == null ? void 0 : m.paymentMethodType) : "";
153
+ return (o = a.paymentMethod) != null && o.paymentMethodType ? oe((s = a.paymentMethod) == null ? void 0 : s.paymentMethodType) : "";
153
154
  }
154
- }), s = g(() => a.amount && (a.paymentMethod || a.paymentMethodLabel) ? n(
155
+ }), m = _(() => a.amount && (a.paymentMethod || a.paymentMethodLabel) ? n(
155
156
  {
156
157
  defaultMessage: "Pay {amount} with {type}",
157
158
  id: "pay_button.label.amount_and_payment_method",
158
159
  description: "The label for the pay button when both the amount and the payment method are known"
159
160
  },
160
161
  {
161
- amount: B(a.amount),
162
+ amount: j(a.amount),
162
163
  type: a.paymentMethodLabel ?? c.value
163
164
  }
164
165
  ) : a.amount ? n(
@@ -168,7 +169,7 @@ const Ye = /* @__PURE__ */ $({
168
169
  description: "The label for the pay button when only the amount is known"
169
170
  },
170
171
  {
171
- amount: B(a.amount),
172
+ amount: j(a.amount),
172
173
  type: c.value
173
174
  }
174
175
  ) : n({
@@ -176,71 +177,72 @@ const Ye = /* @__PURE__ */ $({
176
177
  id: "pay_button.label.default",
177
178
  description: "The default label for the pay button when no amount and payment method are known"
178
179
  }));
179
- return (l, o) => (u(), p(t(G), K(y.value, {
180
+ return (y, o) => (l(), p(t(G), K(u.value, {
180
181
  class: "w-full",
181
- onClick: o[0] || (o[0] = (m) => l.$emit("click", m))
182
+ onClick: o[0] || (o[0] = (s) => y.$emit("click", s))
182
183
  }), {
183
184
  default: i(() => [
184
- T(k(s.value), 1)
185
+ k(T(m.value), 1)
185
186
  ]),
186
187
  _: 1
187
188
  }, 16));
188
189
  }
189
190
  });
190
- function qe() {
191
- const { chargeStoredPaymentMethod: e } = Te(), a = ve(), n = w(!1);
192
- return { isPending: n, charge: async (c) => {
191
+ function Ke() {
192
+ const { chargeStoredPaymentMethod: e } = Ee(), a = he(), n = M(!1);
193
+ return { isPending: n, charge: async (c, m) => {
193
194
  if (n.value) return "UNCONFIRMED";
194
195
  n.value = !0;
195
- const s = {
196
+ const y = {
197
+ ...m,
196
198
  paymentAcceptorId: c.paymentAcceptorId,
197
199
  invoiceId: c.invoiceId
198
200
  };
199
201
  try {
200
- const l = await e(c), o = ke(l);
201
- return o === "FAILED" && a.error(
202
+ const o = await e(c), s = Ce(o);
203
+ return s === "FAILED" && a.error(
202
204
  "PAYMENT_AUTHORIZATION_FAILED",
203
205
  "Failed to charge the invoice to a stored payment method",
204
206
  {
205
- ...s,
207
+ ...y,
206
208
  reason: "PAYMENT_AUTHORIZATION_REJECTED",
207
- status: l.status
209
+ status: o.status
208
210
  }
209
- ), o;
210
- } catch (l) {
211
+ ), s;
212
+ } catch (o) {
211
213
  return a.error(
212
214
  "PAYMENT_AUTHORIZATION_FAILED",
213
215
  "Failed to charge the invoice to a stored payment method",
214
- { ...s, reason: "PAYMENT_AUTHORIZATION_FAILED" },
215
- l
216
- ), Ce(l) ? "UNCONFIRMED" : "FAILED";
216
+ { ...y, reason: "PAYMENT_AUTHORIZATION_FAILED" },
217
+ o
218
+ ), $e(o) ? "UNCONFIRMED" : "FAILED";
217
219
  } finally {
218
220
  n.value = !1;
219
221
  }
220
222
  } };
221
223
  }
222
- 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__ */ $({
224
+ const Ge = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Je = { class: "flex flex-row gap-3 px-3 py-2" }, Qe = { class: "min-w-0 grow" }, Xe = { class: "sv-invoice-order-summary__paid flex flex-row gap-2 py-1.5" }, et = { class: "sv-invoice-order-summary__due flex flex-row gap-2 py-1.5" }, tt = /* @__PURE__ */ D({
223
225
  __name: "InvoiceOrderSummary",
224
226
  props: {
225
227
  invoice: { type: Object },
226
228
  isPaid: { type: Boolean }
227
229
  },
228
230
  setup(e) {
229
- const a = e, { $t: n, formatDate: y } = U(), c = g(() => ({
231
+ const a = e, { $t: n, formatDate: u } = V(), c = _(() => ({
230
232
  "invoice_preview.total_due_today_heading": n({
231
233
  defaultMessage: "Total",
232
234
  id: "pay_invoice.order_summary.total_heading",
233
235
  description: 'Heading of the invoice total in the order summary of the pay invoice screen, replacing the shared preview’s "Total due today"'
234
236
  })
235
- })), s = g(() => a.invoice.open_invoice_amount), l = (m) => m.startsWith("-") ? m.slice(1) : `-${m}`, o = g(() => {
236
- const m = a.invoice.tax_summary.total_amount, f = s.value;
237
- if (!(a.isPaid || a.invoice.paid || !f) && Number(f.quantity) !== Number(m.quantity))
238
- return $e(
239
- [m, { ...f, quantity: l(f.quantity) }],
237
+ })), m = _(() => a.invoice.open_invoice_amount), y = (s) => s.startsWith("-") ? s.slice(1) : `-${s}`, o = _(() => {
238
+ const s = a.invoice.tax_summary.total_amount, h = m.value;
239
+ if (!(a.isPaid || a.invoice.paid || !h) && Number(h.quantity) !== Number(s.quantity))
240
+ return Fe(
241
+ [s, { ...h, quantity: y(h.quantity) }],
240
242
  a.invoice.billing_currency
241
243
  );
242
244
  });
243
- return (m, f) => (u(), p(t(N), {
245
+ return (s, h) => (l(), p(t(F), {
244
246
  class: "sv-order-summary sv-invoice-order-summary",
245
247
  "no-border": "",
246
248
  "no-spacing": "",
@@ -252,22 +254,22 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
252
254
  })
253
255
  }, {
254
256
  default: i(() => [
255
- O("div", We, [
256
- r(t(N), {
257
+ O("div", Ge, [
258
+ r(t(F), {
257
259
  "no-spacing": "",
258
260
  class: "sv-invoice-order-summary__invoice"
259
261
  }, {
260
262
  default: i(() => [
261
- O("div", Ze, [
262
- O("div", Ke, [
263
- r(t(I), {
263
+ O("div", Je, [
264
+ O("div", Qe, [
265
+ r(t(S), {
264
266
  variant: "body",
265
267
  weight: "semibold",
266
268
  "no-spacing": "",
267
269
  class: "truncate"
268
270
  }, {
269
271
  default: i(() => [
270
- T(k(t(n)(
272
+ k(T(t(n)(
271
273
  {
272
274
  defaultMessage: "Invoice {number}",
273
275
  id: "pay_invoice.order_summary.invoice_number",
@@ -278,7 +280,7 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
278
280
  ]),
279
281
  _: 1
280
282
  }),
281
- e.invoice.due_date ? (u(), p(t(I), {
283
+ e.invoice.due_date ? (l(), p(t(S), {
282
284
  key: 0,
283
285
  variant: "body-xs",
284
286
  color: "subtle",
@@ -286,45 +288,45 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
286
288
  class: "sv-invoice-order-summary__due-date"
287
289
  }, {
288
290
  default: i(() => [
289
- T(k(t(n)(
291
+ k(T(t(n)(
290
292
  {
291
293
  defaultMessage: "Due on {date}",
292
294
  id: "pay_invoice.order_summary.due_date",
293
295
  description: "When the invoice being paid is due, under its number in the order summary"
294
296
  },
295
297
  {
296
- date: t(y)({
298
+ date: t(u)({
297
299
  date: e.invoice.due_date,
298
300
  format: "date",
299
- timezone: t(Ne)(e.invoice),
301
+ timezone: t(Le)(e.invoice),
300
302
  offsetType: "offsetted"
301
303
  })
302
304
  }
303
305
  )), 1)
304
306
  ]),
305
307
  _: 1
306
- })) : M("", !0)
308
+ })) : I("", !0)
307
309
  ])
308
310
  ])
309
311
  ]),
310
312
  _: 1
311
313
  }),
312
- r(Ee, { messages: c.value }, {
314
+ r(De, { messages: c.value }, {
313
315
  default: i(() => [
314
- r(de, {
316
+ r(le, {
315
317
  invoice: e.invoice,
316
318
  "is-paid": e.isPaid
317
319
  }, {
318
320
  default: i(() => [
319
- o.value && s.value ? (u(), E(R, { key: 0 }, [
320
- O("div", Ge, [
321
- r(t(I), {
321
+ o.value && m.value ? (l(), N(B, { key: 0 }, [
322
+ O("div", Xe, [
323
+ r(t(S), {
322
324
  tag: "span",
323
325
  variant: "body-xs",
324
326
  class: "grow"
325
327
  }, {
326
328
  default: i(() => [
327
- T(k(t(n)({
329
+ k(T(t(n)({
328
330
  defaultMessage: "Already paid",
329
331
  id: "pay_invoice.order_summary.already_paid",
330
332
  description: "What has been paid on the invoice so far, in its order summary"
@@ -332,7 +334,7 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
332
334
  ]),
333
335
  _: 1
334
336
  }),
335
- r(t(I), {
337
+ r(t(S), {
336
338
  tag: "span",
337
339
  variant: "body-xs"
338
340
  }, {
@@ -342,16 +344,16 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
342
344
  _: 1
343
345
  })
344
346
  ]),
345
- r(t(xe), { spacing: "xxs" }),
346
- O("div", Je, [
347
- r(t(I), {
347
+ r(t(Ne), { spacing: "xxs" }),
348
+ O("div", et, [
349
+ r(t(S), {
348
350
  tag: "span",
349
351
  variant: "body-sm",
350
352
  weight: "semibold",
351
353
  class: "grow"
352
354
  }, {
353
355
  default: i(() => [
354
- T(k(t(n)({
356
+ k(T(t(n)({
355
357
  defaultMessage: "Amount due",
356
358
  id: "pay_invoice.order_summary.amount_due",
357
359
  description: "What is still to be paid on the invoice, in its order summary"
@@ -359,18 +361,18 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
359
361
  ]),
360
362
  _: 1
361
363
  }),
362
- r(t(I), {
364
+ r(t(S), {
363
365
  tag: "span",
364
366
  variant: "body-sm",
365
367
  weight: "semibold"
366
368
  }, {
367
369
  default: i(() => [
368
- r(t(Z), { value: s.value }, null, 8, ["value"])
370
+ r(t(Z), { value: m.value }, null, 8, ["value"])
369
371
  ]),
370
372
  _: 1
371
373
  })
372
374
  ])
373
- ], 64)) : M("", !0)
375
+ ], 64)) : I("", !0)
374
376
  ]),
375
377
  _: 1
376
378
  }, 8, ["invoice", "is-paid"])
@@ -382,13 +384,13 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
382
384
  _: 1
383
385
  }, 8, ["title"]));
384
386
  }
385
- }), Xe = {
387
+ }), at = {
386
388
  key: 1,
387
389
  class: "grid grid-cols-1 gap-6"
388
- }, et = ["aria-label"], tt = ["inert"], at = { class: "mt-4" }, nt = {
390
+ }, nt = ["aria-label"], ot = ["inert"], it = { class: "mt-4" }, rt = {
389
391
  key: 0,
390
392
  class: "flex flex-col gap-2"
391
- }, ot = /* @__PURE__ */ $({
393
+ }, st = /* @__PURE__ */ D({
392
394
  __name: "PayInvoice",
393
395
  props: {
394
396
  invoice: { type: Object },
@@ -404,103 +406,118 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
404
406
  error: { type: null }
405
407
  },
406
408
  setup(e) {
407
- const { $t: a } = U(), n = e, { availability: y } = Se({
409
+ const { $t: a } = V(), n = e, { availability: u } = ke({
408
410
  paymentMethodOptions: () => n.paymentMethodOptions,
409
411
  isLoading: () => n.isLoading,
410
412
  context: () => {
411
413
  var d;
412
414
  return { invoiceId: (d = n.invoice) == null ? void 0 : d.id };
413
415
  }
414
- }), c = w(), s = w(!0), l = w(), o = w(!1), { isFormHeld: m, handleActionRequired: f } = Oe(o), S = w(!1), C = w(!1), _ = g(
415
- () => Ve(n.paymentMethods, n.paymentMethodOptions ?? [])
416
- ), b = w();
417
- ne(
418
- _,
416
+ }), c = M(), m = M(!0), y = M(), o = M(!1), { isFormHeld: s, handleActionRequired: h } = xe(o), A = M(!1), x = M(!1), b = _(
417
+ () => Ye(n.paymentMethods, n.paymentMethodOptions ?? [])
418
+ ), P = M();
419
+ ie(
420
+ b,
419
421
  (d) => {
420
- b.value || (b.value = ze(
422
+ P.value || (P.value = qe(
421
423
  d.map(({ paymentMethod: v }) => v)
422
424
  ));
423
425
  },
424
426
  { immediate: !0 }
425
427
  );
426
- const P = g(
427
- () => _.value.find(
428
- ({ paymentMethod: d }) => d.id === b.value
428
+ const w = _(
429
+ () => b.value.find(
430
+ ({ paymentMethod: d }) => d.id === P.value
429
431
  )
430
- ), D = (d) => {
431
- c.value = d, d.isAutomatic || (b.value = void 0);
432
- }, h = g(
432
+ ), L = (d) => {
433
+ c.value = d, d.isAutomatic || (P.value = void 0);
434
+ }, g = _(
433
435
  () => a({
434
436
  id: "pay_invoice.stored_payment_methods.title",
435
437
  defaultMessage: "Your payment methods",
436
438
  description: "Section title above the payment methods the customer stored before, on the pay invoice screen"
437
439
  })
438
- ), { charge: j } = qe(), x = w(!1), F = w(), J = async () => {
439
- const d = P.value;
440
+ ), { charge: z } = Ke(), E = M(!1), R = M(), J = async () => {
441
+ var C, $;
442
+ const d = w.value;
440
443
  if (!d || !n.invoice || !n.amount) return;
441
- o.value = !0, x.value = !1;
442
- const v = await j({
443
- paymentAcceptorId: d.paymentAcceptorId,
444
- customerId: n.invoice.customer.id,
445
- paymentMethodId: d.paymentMethod.id,
446
- invoiceId: n.invoice.id,
447
- amount: n.amount
448
- });
444
+ o.value = !0, E.value = !1;
445
+ const v = await z(
446
+ {
447
+ paymentAcceptorId: d.paymentAcceptorId,
448
+ customerId: n.invoice.customer.id,
449
+ paymentMethodId: d.paymentMethod.id,
450
+ invoiceId: n.invoice.id,
451
+ amount: n.amount
452
+ },
453
+ // The API refuses an acceptor the invoice does not have, so a refusal shows the mismatch.
454
+ {
455
+ invoicePaymentAcceptorIds: n.invoice.payment_acceptor_ids,
456
+ offeredPaymentAcceptorIds: [
457
+ ...new Set(
458
+ (C = n.paymentMethodOptions) == null ? void 0 : C.map(({ payment_acceptor: f }) => f == null ? void 0 : f.id)
459
+ )
460
+ ]
461
+ }
462
+ );
449
463
  if (v === "SUCCEEDED") {
450
- V();
464
+ H();
451
465
  return;
452
466
  }
453
- if (o.value = !1, v === "UNCONFIRMED") {
454
- C.value = !0, F.value = Le({
467
+ if (v === "UNCONFIRMED") {
468
+ o.value = !1, x.value = !0, R.value = Be({
455
469
  code: "PAYMENT_OUTCOME_UNCONFIRMED",
456
470
  message: "The charge to the stored payment method could not be confirmed"
457
471
  });
458
472
  return;
459
473
  }
460
- x.value = !0;
474
+ await (($ = n.refresh) == null ? void 0 : $.call(n)), o.value = !1, E.value = !0;
461
475
  };
462
476
  function Q() {
463
- if (P.value) {
477
+ if (w.value) {
464
478
  J();
465
479
  return;
466
480
  }
467
- if (!l.value)
481
+ if (!y.value)
468
482
  throw new Error("payment integration form not found");
469
- o.value = !0, l.value.submit();
483
+ o.value = !0, y.value.submit();
470
484
  }
471
- const X = g(
472
- () => !!(P.value || c.value) && !o.value && !C.value
473
- ), V = () => {
485
+ const X = _(
486
+ () => !!(w.value || c.value) && !o.value && !x.value
487
+ ), { dispatch: ee, componentName: te } = Se(), H = () => {
474
488
  var d;
475
- S.value = !0, o.value = !1, (d = n.refresh) == null || d.call(n), n.configuration.onPaymentSuccess && n.configuration.onPaymentSuccess();
476
- }, ee = () => {
489
+ A.value = !0, o.value = !1, (d = n.refresh) == null || d.call(n), ee("solvimon-payment-succeeded", {
490
+ componentName: te,
491
+ invoiceId: n.configuration.invoiceId
492
+ });
493
+ }, ae = () => {
477
494
  o.value = !1;
478
- }, te = (d) => {
479
- o.value = !1, (d == null ? void 0 : d.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (C.value = !0);
495
+ }, ne = (d) => {
496
+ o.value = !1, (d == null ? void 0 : d.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (x.value = !0);
480
497
  };
481
- return (d, v) => (u(), p(t(Me), null, {
498
+ return (d, v) => (l(), p(t(Ae), null, {
482
499
  header: i(() => [
483
- r(L, { class: "min-h-[52px] w-96" }, {
500
+ r(U, { class: "min-h-[52px] w-96" }, {
484
501
  default: i(() => [
485
- e.invoice && e.downloadService ? (u(), p(t(ue), {
502
+ e.invoice && e.downloadService ? (l(), p(t(pe), {
486
503
  key: 0,
487
504
  invoice: e.invoice,
488
505
  "payment-attempts": e.paymentAttempts,
489
506
  "download-service": () => e.downloadService(e.invoice)
490
- }, null, 8, ["invoice", "payment-attempts", "download-service"])) : M("", !0)
507
+ }, null, 8, ["invoice", "payment-attempts", "download-service"])) : I("", !0)
491
508
  ]),
492
509
  _: 1
493
510
  })
494
511
  ]),
495
512
  content: i(() => {
496
- var z, H;
513
+ var C, $;
497
514
  return [
498
- e.isLoading ? (u(), p(L, {
515
+ e.isLoading ? (l(), p(U, {
499
516
  key: 0,
500
517
  variant: "section",
501
518
  class: "min-h-[300px]"
502
- })) : M("", !0),
503
- (z = e.invoice) != null && z.paid || e.invoice && S.value ? (u(), p(W, {
519
+ })) : I("", !0),
520
+ (C = e.invoice) != null && C.paid || e.invoice && A.value ? (l(), p(W, {
504
521
  key: 1,
505
522
  status: "success",
506
523
  title: t(a)({
@@ -511,19 +528,19 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
511
528
  class: "mt-8"
512
529
  }, {
513
530
  default: i(() => [
514
- r(t(I), {
531
+ r(t(S), {
515
532
  variant: "body-sm",
516
533
  class: "mt-1"
517
534
  }, {
518
535
  default: i(() => [
519
- r(t(se), { icon: "check" }),
520
- T(k(t(B)(e.invoice.tax_summary.total_amount)), 1)
536
+ r(t(ce), { icon: "check" }),
537
+ k(T(t(j)(e.invoice.tax_summary.total_amount)), 1)
521
538
  ]),
522
539
  _: 1
523
540
  })
524
541
  ]),
525
542
  _: 1
526
- }, 8, ["title"])) : e.error ? (u(), p(W, {
543
+ }, 8, ["title"])) : e.error && !e.invoice ? (l(), p(W, {
527
544
  key: 2,
528
545
  status: "error",
529
546
  title: t(a)({
@@ -533,12 +550,12 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
533
550
  })
534
551
  }, {
535
552
  default: i(() => [
536
- r(t(I), {
553
+ r(t(S), {
537
554
  variant: "body-sm",
538
555
  class: "mt-1"
539
556
  }, {
540
557
  default: i(() => [
541
- T(k(t(a)({
558
+ k(T(t(a)({
542
559
  id: "pay_invoice.error.description",
543
560
  defaultMessage: "Please try again or contact support.",
544
561
  description: "Body text shown when the invoice payment fails to load"
@@ -548,16 +565,16 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
548
565
  })
549
566
  ]),
550
567
  _: 1
551
- }, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (u(), E(R, { key: 3 }, [
552
- t(y) === "READY" && F.value ? (u(), p(Fe, {
568
+ }, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (l(), N(B, { key: 3 }, [
569
+ t(u) === "READY" && R.value ? (l(), p(Ue, {
553
570
  key: 0,
554
571
  class: "sv-pay-invoice__stored-payment-unconfirmed",
555
- error: F.value
556
- }, null, 8, ["error"])) : t(y) === "READY" ? (u(), E("div", Xe, [
557
- _.value.length ? (u(), E(R, { key: 0 }, [
558
- r(t(N), {
572
+ error: R.value
573
+ }, null, 8, ["error"])) : t(u) === "READY" ? (l(), N("div", at, [
574
+ b.value.length ? (l(), N(B, { key: 0 }, [
575
+ r(t(F), {
559
576
  class: "sv-pay-invoice__stored-payment-methods",
560
- title: h.value,
577
+ title: g.value,
561
578
  "content-background": "none",
562
579
  "no-border": "",
563
580
  "no-spacing": ""
@@ -565,22 +582,22 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
565
582
  default: i(() => [
566
583
  O("div", {
567
584
  role: "group",
568
- "aria-label": h.value
585
+ "aria-label": g.value
569
586
  }, [
570
- r(be, {
571
- modelValue: b.value,
572
- "onUpdate:modelValue": v[0] || (v[0] = (A) => b.value = A),
573
- "payment-methods": _.value.map(
574
- ({ paymentMethod: A }) => A
587
+ r(we, {
588
+ modelValue: P.value,
589
+ "onUpdate:modelValue": v[0] || (v[0] = (f) => P.value = f),
590
+ "payment-methods": b.value.map(
591
+ ({ paymentMethod: f }) => f
575
592
  ),
576
593
  "show-add-option": !1,
577
- disabled: o.value || t(m)
594
+ disabled: o.value || t(s)
578
595
  }, null, 8, ["modelValue", "payment-methods", "disabled"])
579
- ], 8, et)
596
+ ], 8, nt)
580
597
  ]),
581
598
  _: 1
582
599
  }, 8, ["title"]),
583
- x.value ? (u(), p(t(me), {
600
+ E.value ? (l(), p(t(ye), {
584
601
  key: 0,
585
602
  class: "sv-pay-invoice__stored-payment-error sv-error",
586
603
  title: t(a)({
@@ -588,8 +605,8 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
588
605
  defaultMessage: "The payment did not go through. Try again or use another payment method.",
589
606
  description: "Shown when charging the invoice to a stored payment method fails"
590
607
  })
591
- }, null, 8, ["title"])) : M("", !0),
592
- r(t(le), {
608
+ }, null, 8, ["title"])) : I("", !0),
609
+ r(t(ue), {
593
610
  text: t(a)({
594
611
  id: "pay_invoice.stored_payment_methods.divider_text",
595
612
  defaultMessage: "or",
@@ -597,9 +614,9 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
597
614
  }),
598
615
  "text-position": "center"
599
616
  }, null, 8, ["text"])
600
- ], 64)) : M("", !0),
601
- r(t(N), {
602
- title: _.value.length ? t(a)({
617
+ ], 64)) : I("", !0),
618
+ r(t(F), {
619
+ title: b.value.length ? t(a)({
603
620
  id: "pay_invoice.new_payment_method.title",
604
621
  defaultMessage: "Pay with a new payment method",
605
622
  description: "Section title for the payment form below the stored payment methods, on the pay invoice screen"
@@ -613,15 +630,15 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
613
630
  "no-spacing": ""
614
631
  }, {
615
632
  default: i(() => {
616
- var A, Y;
633
+ var f, Y;
617
634
  return [
618
635
  O("div", {
619
- class: oe({ "pointer-events-none opacity-60": t(m) }),
620
- inert: t(m) || void 0
636
+ class: re({ "pointer-events-none opacity-60": t(s) }),
637
+ inert: t(s) || void 0
621
638
  }, [
622
- r(Ae, {
639
+ r(Oe, {
623
640
  ref_key: "paymentIntegrationFormRef",
624
- ref: l,
641
+ ref: y,
625
642
  amount: e.amount,
626
643
  "country-code": e.countryCode,
627
644
  context: {
@@ -634,24 +651,24 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
634
651
  ]
635
652
  },
636
653
  "customer-id": e.invoice.customer.id,
637
- "store-payment-method": s.value,
654
+ "store-payment-method": m.value,
638
655
  "invoice-id": e.invoice.id,
639
656
  "payment-method-options": e.paymentMethodOptions ?? [],
640
- "open-first-payment-method": !_.value.length,
657
+ "open-first-payment-method": !b.value.length,
641
658
  variant: "AUTHORIZE",
642
- "billing-entity-name": (Y = (A = e.invoice) == null ? void 0 : A.billing_entity) == null ? void 0 : Y.legal_name,
643
- onPaymentSuccess: V,
644
- onPaymentFailed: te,
645
- onInvalid: ee,
659
+ "billing-entity-name": (Y = (f = e.invoice) == null ? void 0 : f.billing_entity) == null ? void 0 : Y.legal_name,
660
+ onPaymentSuccess: H,
661
+ onPaymentFailed: ne,
662
+ onInvalid: ae,
646
663
  onSubmitting: v[1] || (v[1] = (q) => o.value = !0),
647
- onActionRequired: t(f),
648
- onSelect: D
664
+ onActionRequired: t(h),
665
+ onSelect: L
649
666
  }, null, 8, ["amount", "country-code", "context", "customer-id", "store-payment-method", "invoice-id", "payment-method-options", "open-first-payment-method", "billing-entity-name", "onActionRequired"]),
650
- O("div", at, [
651
- r(t(ce), {
667
+ O("div", it, [
668
+ r(t(me), {
652
669
  id: "pay-invoice-store-payment-method",
653
- modelValue: s.value,
654
- "onUpdate:modelValue": v[2] || (v[2] = (q) => s.value = q),
670
+ modelValue: m.value,
671
+ "onUpdate:modelValue": v[2] || (v[2] = (q) => m.value = q),
655
672
  label: t(a)({
656
673
  id: "pay_invoice.store_payment_method.label",
657
674
  defaultMessage: "Save this payment method for future payments",
@@ -659,194 +676,185 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
659
676
  })
660
677
  }, null, 8, ["modelValue", "label"])
661
678
  ])
662
- ], 10, tt)
679
+ ], 10, ot)
663
680
  ];
664
681
  }),
665
682
  _: 1
666
683
  }, 8, ["title"])
667
- ])) : (u(), p(Ie, {
684
+ ])) : (l(), p(Te, {
668
685
  key: 2,
669
686
  variant: "AUTHORIZE",
670
- "seller-name": (H = e.invoice.billing_entity) == null ? void 0 : H.legal_name
687
+ "seller-name": ($ = e.invoice.billing_entity) == null ? void 0 : $.legal_name
671
688
  }, {
672
689
  default: i(() => [
673
- e.downloadService ? (u(), p(t(G), {
690
+ e.downloadService ? (l(), p(t(G), {
674
691
  key: 0,
675
692
  type: "button",
676
693
  intent: "secondary",
677
694
  onClick: v[3] || (v[3] = () => {
678
- var A;
679
- return (A = e.downloadService) == null ? void 0 : A.call(e, e.invoice);
695
+ var f;
696
+ return (f = e.downloadService) == null ? void 0 : f.call(e, e.invoice);
680
697
  })
681
698
  }, {
682
699
  default: i(() => [
683
- T(k(t(a)({
700
+ k(T(t(a)({
684
701
  defaultMessage: "Download invoice",
685
702
  description: "Button that downloads the invoice when it cannot be paid online",
686
703
  id: "pay_invoice.unavailable.download_invoice"
687
704
  })), 1)
688
705
  ]),
689
706
  _: 1
690
- })) : M("", !0)
707
+ })) : I("", !0)
691
708
  ]),
692
709
  _: 1
693
710
  }, 8, ["seller-name"]))
694
- ], 64)) : M("", !0)
711
+ ], 64)) : I("", !0)
695
712
  ];
696
713
  }),
697
714
  aside: i(() => [
698
- r(L, {
715
+ r(U, {
699
716
  variant: "section",
700
717
  class: "min-h-[200px]"
701
718
  }, {
702
719
  default: i(() => [
703
- e.invoice ? (u(), p(Qe, {
720
+ e.invoice ? (l(), p(tt, {
704
721
  key: 0,
705
722
  invoice: e.invoice,
706
- "is-paid": e.invoice.paid || S.value
707
- }, null, 8, ["invoice", "is-paid"])) : M("", !0)
723
+ "is-paid": e.invoice.paid || A.value
724
+ }, null, 8, ["invoice", "is-paid"])) : I("", !0)
708
725
  ]),
709
726
  _: 1
710
727
  }),
711
- e.invoice && !e.invoice.paid && !S.value && t(y) === "READY" ? (u(), E("div", nt, [
712
- r(Ye, {
728
+ e.invoice && !e.invoice.paid && !A.value && t(u) === "READY" ? (l(), N("div", rt, [
729
+ r(Ze, {
713
730
  disabled: !X.value,
714
731
  loading: o.value,
715
732
  amount: e.amount,
716
- "payment-method": P.value ? void 0 : c.value,
717
- "payment-method-label": P.value && t(He)(P.value.paymentMethod),
733
+ "payment-method": w.value ? void 0 : c.value,
734
+ "payment-method-label": w.value && t(We)(w.value.paymentMethod),
718
735
  onClick: Q
719
736
  }, null, 8, ["disabled", "loading", "amount", "payment-method", "payment-method-label"]),
720
- r(De, {
737
+ r(Re, {
721
738
  class: "sv-pay-invoice__kpi",
722
739
  "payment-method-options": e.paymentMethodOptions ?? []
723
740
  }, null, 8, ["payment-method-options"])
724
- ])) : M("", !0)
741
+ ])) : I("", !0)
725
742
  ]),
726
743
  _: 1
727
744
  }));
728
745
  }
729
- }), it = /* @__PURE__ */ $({
746
+ }), dt = /* @__PURE__ */ D({
730
747
  __name: "PayInvoice.entry.view",
731
748
  props: {
732
- portalToken: { type: Object },
733
749
  environment: { type: String },
734
750
  locale: { type: String },
735
751
  dateLocale: { type: String },
736
752
  messages: { type: Object },
737
- primaryColor: { type: String },
738
- secondaryColor: { type: String },
739
- isShadowRoot: { type: Boolean },
753
+ portalToken: { type: Object },
740
754
  experimentalFeatures: { type: Array },
741
755
  logLevel: { type: String },
742
756
  onLog: { type: Function },
743
- allowedPortalTypes: { type: Array },
744
- portalObject: { type: Object },
745
757
  cssOverrides: { type: [String, Array] },
746
758
  branding: { type: Object },
759
+ portalObject: { type: null },
747
760
  configuration: { type: Object }
748
761
  },
749
762
  setup(e) {
750
763
  const a = e, {
751
764
  invoice: n,
752
- get: y,
765
+ get: u,
753
766
  downloadInvoicePdf: c,
754
- error: s
755
- } = ye({ invoiceId: a.configuration.invoiceId }), { payments: l, get: o } = pe(), { paymentMethodOptions: m, get: f } = we(), { items: S, fetchAll: C } = Ue({
767
+ error: m
768
+ } = ve({ invoiceId: a.configuration.invoiceId }), { payments: y, get: o } = fe(), { paymentMethodOptions: s, get: h } = Ie(), { items: A, fetchAll: x } = ze({
756
769
  customerId: a.portalObject.customer_id,
757
- order: je
758
- }), _ = async () => {
759
- const h = await y();
760
- await f({
761
- customerId: h.customer.id,
762
- invoiceId: h.id,
763
- amount: h.open_invoice_amount
770
+ order: He
771
+ }), b = async () => {
772
+ const g = await u();
773
+ await h({
774
+ customerId: g.customer.id,
775
+ invoiceId: g.id,
776
+ amount: g.open_invoice_amount
764
777
  });
765
- }, { isLoading: b } = Be(
766
- _(),
778
+ }, { isLoading: P } = Ve(
779
+ b(),
767
780
  o(a.configuration.invoiceId),
768
- C()
769
- ), P = () => Promise.allSettled([y(), o(a.configuration.invoiceId)]), D = g(
781
+ x()
782
+ ), w = () => Promise.allSettled([u(), o(a.configuration.invoiceId)]), L = _(
770
783
  () => {
771
- var h;
772
- return (h = n.value) != null && h.customer ? Re(n.value.customer) : void 0;
784
+ var g;
785
+ return (g = n.value) != null && g.customer ? je(n.value.customer) : void 0;
773
786
  }
774
787
  );
775
- return (h, j) => {
776
- var x;
777
- return ie(h.$slots, "default", {
788
+ return (g, z) => {
789
+ var E;
790
+ return se(g.$slots, "default", {
778
791
  invoice: t(n),
779
- isLoading: t(b),
780
- amount: (x = t(n)) == null ? void 0 : x.open_invoice_amount,
781
- countryCode: D.value,
782
- paymentMethodOptions: t(m),
783
- paymentMethods: t(S),
784
- paymentAttempts: t(l),
792
+ isLoading: t(P),
793
+ amount: (E = t(n)) == null ? void 0 : E.open_invoice_amount,
794
+ countryCode: L.value,
795
+ paymentMethodOptions: t(s),
796
+ paymentMethods: t(A),
797
+ paymentAttempts: t(y),
785
798
  downloadService: t(c),
786
- refresh: P,
787
- error: t(s)
799
+ refresh: w,
800
+ error: t(m)
788
801
  });
789
802
  };
790
803
  }
791
- }), rt = /* @__PURE__ */ $({
804
+ }), ct = /* @__PURE__ */ D({
792
805
  __name: "PayInvoice.entry",
793
806
  props: {
794
- portalToken: { type: Object },
795
807
  environment: { type: String },
796
808
  locale: { type: String },
797
809
  dateLocale: { type: String },
798
810
  messages: { type: Object },
799
- primaryColor: { type: String },
800
- secondaryColor: { type: String },
801
- isShadowRoot: { type: Boolean },
811
+ portalToken: { type: Object },
802
812
  experimentalFeatures: { type: Array },
803
813
  logLevel: { type: String },
804
814
  onLog: { type: Function },
805
- allowedPortalTypes: { type: Array },
806
- portalObject: { type: Object },
807
815
  cssOverrides: { type: [String, Array] },
808
816
  branding: { type: Object },
817
+ portalObject: { type: null },
809
818
  configuration: { type: Object }
810
819
  },
811
820
  setup(e) {
812
- const a = he("pay-invoice");
813
- return (n, y) => {
821
+ const a = _e("pay-invoice");
822
+ return (n, u) => {
814
823
  var c;
815
- return u(), p(t(fe), {
824
+ return l(), p(t(ge), {
816
825
  entry: n.$props,
817
826
  "component-name": t(a),
818
827
  "allowed-portal-types": ["CUSTOMER"],
819
- "required-configuration": { invoiceId: (c = e.configuration) == null ? void 0 : c.invoiceId },
820
- onError: y[0] || (y[0] = (s) => n.$emit("error", s))
828
+ "required-configuration": { invoiceId: (c = e.configuration) == null ? void 0 : c.invoiceId }
821
829
  }, {
822
830
  default: i(() => [
823
- (u(), p(it, K({
831
+ (l(), p(dt, K({
824
832
  key: e.configuration.invoiceId
825
833
  }, n.$props), {
826
834
  default: i(({
827
- invoice: s,
828
- isLoading: l,
835
+ invoice: m,
836
+ isLoading: y,
829
837
  amount: o,
830
- countryCode: m,
831
- paymentMethodOptions: f,
832
- paymentMethods: S,
833
- paymentAttempts: C,
834
- downloadService: _,
835
- refresh: b,
836
- error: P
838
+ countryCode: s,
839
+ paymentMethodOptions: h,
840
+ paymentMethods: A,
841
+ paymentAttempts: x,
842
+ downloadService: b,
843
+ refresh: P,
844
+ error: w
837
845
  }) => [
838
- r(ot, {
839
- "is-loading": l,
840
- invoice: s,
846
+ r(st, {
847
+ "is-loading": y,
848
+ invoice: m,
841
849
  amount: o,
842
- "country-code": m,
843
- "payment-method-options": f,
844
- "payment-methods": S,
850
+ "country-code": s,
851
+ "payment-method-options": h,
852
+ "payment-methods": A,
845
853
  configuration: e.configuration,
846
- "payment-attempts": C ?? [],
847
- "download-service": _,
848
- refresh: b,
849
- error: P
854
+ "payment-attempts": x ?? [],
855
+ "download-service": b,
856
+ refresh: P,
857
+ error: w
850
858
  }, null, 8, ["is-loading", "invoice", "amount", "country-code", "payment-method-options", "payment-methods", "configuration", "payment-attempts", "download-service", "refresh", "error"])
851
859
  ]),
852
860
  _: 1
@@ -856,10 +864,10 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
856
864
  }, 8, ["entry", "component-name", "required-configuration"]);
857
865
  };
858
866
  }
859
- }), { define: Lt } = ge(
860
- rt,
867
+ }), { define: jt } = be(
868
+ ct,
861
869
  "pay-invoice"
862
870
  );
863
871
  export {
864
- Lt as defineSolvimonPayInvoice
872
+ jt as defineSolvimonPayInvoice
865
873
  };