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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as f, openBlock as a, createElementBlock as o, Fragment as c, renderList as x, createCommentVNode as g, normalizeClass as m, toDisplayString as y, ref as v, onMounted as _ } from "vue";
2
2
  import { e as b } from "./sanitization.es-C6dbuxUJ.mjs";
3
- import { i as k } from "./useService-BwzIBIRp.mjs";
3
+ import { i as k } from "./useService-DayNZhPh.mjs";
4
4
  const C = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = ["innerHTML"], I = /* @__PURE__ */ d({
5
5
  __name: "TextWithHighlights",
6
6
  props: {
@@ -195,18 +195,18 @@ function O(e) {
195
195
  return t;
196
196
  }
197
197
  export {
198
- G as a,
199
- F as b,
200
- B as c,
198
+ R as a,
199
+ T as b,
200
+ G as c,
201
201
  P as d,
202
- L as e,
202
+ C as e,
203
203
  U as f,
204
- T as g,
205
- C as h,
206
- h as i,
207
- I as j,
208
- M as k,
209
- R as l,
204
+ M as g,
205
+ F as h,
206
+ I as i,
207
+ h as j,
208
+ B as k,
209
+ L as l,
210
210
  N as m,
211
211
  O as n
212
212
  };
@@ -0,0 +1,99 @@
1
+ import { w as s, a as u } from "./api.es-QaC926Xu.mjs";
2
+ import { u as E, c as y, b as e, E as c } from "./customElements-d7Bhfqi_.mjs";
3
+ const a = ["portal", "pricing-plan-subscriptions"], N = {
4
+ CANCEL: "NEXT_BILLING_PERIOD",
5
+ RENEW: "UNDO"
6
+ };
7
+ function C() {
8
+ const i = E(), r = y();
9
+ async function p({
10
+ id: n,
11
+ expanded: t = !1
12
+ }) {
13
+ return r({
14
+ url: e(i.apiUrls.config, ...a, n),
15
+ query: s({ expandParams: c, expand: t })
16
+ });
17
+ }
18
+ function l({
19
+ customerId: n,
20
+ pagination: t
21
+ }) {
22
+ const o = t ?? {}, S = s({
23
+ initialParams: {
24
+ customer_id: n,
25
+ statuses: ["ACTIVE"],
26
+ type: "BILLING"
27
+ },
28
+ expandParams: c
29
+ });
30
+ return r({
31
+ url: e(i.apiUrls.config, ...a),
32
+ query: u(S, o),
33
+ isCollection: !0
34
+ });
35
+ }
36
+ function d({
37
+ customerId: n,
38
+ page: t,
39
+ pageSize: o
40
+ }) {
41
+ return r({
42
+ url: e(i.apiUrls.config, ...a),
43
+ query: u({ customer_id: n }, { page: t, pageSize: o }),
44
+ isCollection: !0
45
+ });
46
+ }
47
+ async function g({
48
+ id: n,
49
+ variant: t
50
+ }) {
51
+ return r({
52
+ url: e(i.apiUrls.config, ...a, n, "cancel"),
53
+ data: { type: N[t] },
54
+ options: { method: "POST" }
55
+ });
56
+ }
57
+ function f({
58
+ id: n
59
+ }) {
60
+ return r({
61
+ url: e(i.apiUrls.config, ...a, n, "pricing-plan-group"),
62
+ query: s({ expandParams: c }),
63
+ // A subscription on a plan that belongs to no group is the common case, not a failure.
64
+ options: { expectedStatusCodes: [404] }
65
+ });
66
+ }
67
+ function m({
68
+ id: n,
69
+ pricingPlanId: t
70
+ }) {
71
+ return r({
72
+ url: e(i.apiUrls.config, ...a, n, "change-plan"),
73
+ data: { pricing_plan_id: t },
74
+ options: { method: "POST" }
75
+ });
76
+ }
77
+ function P({
78
+ id: n,
79
+ paymentMethodId: t
80
+ }) {
81
+ return r({
82
+ url: e(i.apiUrls.config, ...a, n, "update-payment-method"),
83
+ data: { payment_method_id: t },
84
+ options: { method: "POST" }
85
+ });
86
+ }
87
+ return {
88
+ setSubscriptionPaymentMethod: P,
89
+ getSubscription: p,
90
+ getActiveSubscriptions: l,
91
+ getSubscriptionsOfEveryStatus: d,
92
+ setSubscriptionCancellation: g,
93
+ changeSubscriptionPlan: m,
94
+ getSubscriptionPricingPlanGroup: f
95
+ };
96
+ }
97
+ export {
98
+ C as c
99
+ };
@@ -0,0 +1,510 @@
1
+ import { i as G, d as M, u as H } from "./useService-DayNZhPh.mjs";
2
+ import { defineComponent as L, computed as m, openBlock as I, createBlock as E, unref as s, withCtx as h, createElementVNode as R, createVNode as v, createTextVNode as T, toDisplayString as _, watch as F, useModel as U, reactive as K, createElementBlock as $, createCommentVNode as V, createSlots as j, normalizeClass as Z, mergeModels as B, inject as X } from "vue";
3
+ import { _ as z } from "./Button.vue.es-BHbanjR0.mjs";
4
+ import { _ as k } from "./Input.vue.es-CxiwRZYs.mjs";
5
+ import { a as S, d as N, I as Y } from "./customElements-d7Bhfqi_.mjs";
6
+ import { f as W, e as q } from "./useAddressFormats-Dw7IEdxg.mjs";
7
+ import { _ as J } from "./Alert.vue.es-xhsk_7Gn.mjs";
8
+ import { c as Q } from "./customer-CNCSN_G5.mjs";
9
+ import { f as D, a as A, c as ee } from "./formControl-BZQLHnOO.mjs";
10
+ import { _ as ae } from "./Toggle.vue.es-S2g8WGY_.mjs";
11
+ const C = (e) => G(e) && typeof e != "boolean" ? null : e, y = (e) => typeof e == "object" && e !== null, te = ({
12
+ from: e,
13
+ to: t,
14
+ nullifyEmptyValues: a = !1
15
+ }) => {
16
+ const r = Object.fromEntries(
17
+ Object.entries(t).filter(([o, c]) => !M(c, e[o]))
18
+ );
19
+ return a ? Object.entries(r).reduce(
20
+ (o, [c, l]) => ({ ...o, [c]: C(l) }),
21
+ {}
22
+ ) : r;
23
+ }, re = ({
24
+ from: e,
25
+ to: t,
26
+ nullifyEmptyValues: a = !1
27
+ }) => {
28
+ const r = {}, o = (l, x, d) => {
29
+ const n = x[d];
30
+ return l === void 0 ? Array.isArray(n) ? r[d] = [] : y(n) && (r[d] = {}) : Array.isArray(n) ? l[d] = [] : y(n) && (l[d] = {}), [l === void 0 ? r : l, d];
31
+ }, c = (l, x, d) => {
32
+ for (const n of Object.keys(l)) {
33
+ const i = o(d, l, n);
34
+ n in x || (i[0][i[1]] = {
35
+ from: l[n]
36
+ });
37
+ }
38
+ for (const [n, i] of Object.entries(x)) {
39
+ const f = n in l, u = o(d, l, n);
40
+ if (f) {
41
+ const p = l[n];
42
+ M(p, i) ? delete u[0][u[1]] : y(i) && y(p) ? c(p, i, u[0][u[1]]) : u[0][u[1]] = a && typeof i != "boolean" ? C(i) : i;
43
+ } else
44
+ u[0][u[1]] = a ? C(i) : i;
45
+ }
46
+ };
47
+ return c(e, t), r;
48
+ }, Ee = ({
49
+ from: e,
50
+ to: t,
51
+ mode: a = "shallow",
52
+ nullifyEmptyValues: r = !1
53
+ }) => a === "deep" ? re({ from: e, to: t, nullifyEmptyValues: r }) : te({ from: e, to: t, nullifyEmptyValues: r }), oe = {
54
+ AT: "Austria",
55
+ BE: "Belgium",
56
+ BG: "Bulgaria",
57
+ CY: "Cyprus",
58
+ CZ: "Czech Republic",
59
+ DE: "Germany",
60
+ DK: "Denmark",
61
+ EE: "Estonia",
62
+ ES: "Spain",
63
+ FI: "Finland",
64
+ FR: "France",
65
+ GR: "Greece",
66
+ HR: "Croatia",
67
+ HU: "Hungary",
68
+ IE: "Ireland",
69
+ IT: "Italy",
70
+ LT: "Lithuania",
71
+ LU: "Luxembourg",
72
+ LV: "Latvia",
73
+ MT: "Malta",
74
+ NL: "Netherlands",
75
+ PL: "Poland",
76
+ PT: "Portugal",
77
+ RO: "Romania",
78
+ SE: "Sweden",
79
+ SI: "Slovenia",
80
+ SK: "Slovakia"
81
+ };
82
+ function w(e) {
83
+ return Object.keys(oe).includes(e);
84
+ }
85
+ const ne = { class: "flex items-center gap-2" }, se = /* @__PURE__ */ L({
86
+ __name: "TaxIDCheckNotice",
87
+ props: {
88
+ status: { type: String }
89
+ },
90
+ setup(e) {
91
+ const t = e, { formatMessage: a } = S(), r = m(() => {
92
+ switch (t.status) {
93
+ case "VALID":
94
+ return "success";
95
+ case "NOT_VALID":
96
+ return "danger";
97
+ default:
98
+ return "neutral";
99
+ }
100
+ }), o = m(() => {
101
+ switch (t.status) {
102
+ case "VALID":
103
+ return a({
104
+ defaultMessage: "VAT number is valid.",
105
+ id: "tax_check.valid_vat_number",
106
+ description: "The message shown when the VAT number is valid"
107
+ });
108
+ case "NOT_VALID":
109
+ return a({
110
+ defaultMessage: "VAT number is invalid.",
111
+ id: "tax_check.invalid_vat_number",
112
+ description: "The message shown when the VAT number is invalid"
113
+ });
114
+ default:
115
+ return a({
116
+ defaultMessage: "The VAT number could not be checked right now.",
117
+ id: "tax_check.unknown_vat_number",
118
+ description: "The message shown when the VAT number check could not give an answer, for instance because the EU VAT service is unavailable"
119
+ });
120
+ }
121
+ });
122
+ return (c, l) => (I(), E(s(J), {
123
+ type: r.value,
124
+ icon: !1
125
+ }, {
126
+ default: h(() => [
127
+ R("div", ne, [
128
+ v(s(N), { variant: "body-xs" }, {
129
+ default: h(() => [
130
+ T(_(o.value), 1)
131
+ ]),
132
+ _: 1
133
+ })
134
+ ])
135
+ ]),
136
+ _: 1
137
+ }, 8, ["type"]));
138
+ }
139
+ });
140
+ function le(e) {
141
+ const { checkTaxID: t } = Q(), {
142
+ data: a,
143
+ error: r,
144
+ execute: o,
145
+ settle: c,
146
+ isPending: l
147
+ } = H({ service: t, isCollection: !0 }), x = m(() => {
148
+ var g;
149
+ return (g = a.value) == null ? void 0 : g[0];
150
+ }), d = m(
151
+ () => {
152
+ var g;
153
+ return r.value ? "UNKNOWN" : (g = x.value) == null ? void 0 : g.valid;
154
+ }
155
+ ), n = m(() => {
156
+ var g;
157
+ return ((g = e.value.companyVatNumber) == null ? void 0 : g.trim()) ?? "";
158
+ }), i = m(() => e.value.companyLegalName ?? ""), f = m(() => e.value.country);
159
+ F([n, i, f], () => c([]));
160
+ const u = m(() => w(f.value ?? "")), p = m(
161
+ () => !!(n.value && i.value && f.value)
162
+ ), b = m(() => u.value && n.value);
163
+ async function P() {
164
+ if (!(!p.value || !u.value || !f.value))
165
+ try {
166
+ await o({
167
+ type: "ORGANIZATION",
168
+ organization: {
169
+ legal_name: i.value,
170
+ tax_ids: [{ id: n.value, type: "GENERIC_TAX_ID" }],
171
+ registered_address: {
172
+ country: f.value
173
+ }
174
+ }
175
+ });
176
+ } catch {
177
+ }
178
+ }
179
+ return {
180
+ runTaxIDCheck: P,
181
+ taxIdValidationData: x,
182
+ taxIdCheckStatus: d,
183
+ isTaxIDCheckPending: l,
184
+ isTaxIDCheckEnabled: p,
185
+ showViesCheckNotice: b,
186
+ isSelectedCountryEU: u
187
+ };
188
+ }
189
+ const ie = { class: "flex flex-col gap-2" }, Te = /* @__PURE__ */ L({
190
+ __name: "CompanyDetailsFields",
191
+ props: /* @__PURE__ */ B({
192
+ errors: { type: Object },
193
+ isVatNumberInvalid: { type: Boolean },
194
+ hidesLegalName: { type: Boolean },
195
+ hidesVatNumber: { type: Boolean }
196
+ }, {
197
+ modelValue: { required: !0 },
198
+ modelModifiers: {}
199
+ }),
200
+ emits: ["update:modelValue"],
201
+ setup(e) {
202
+ const t = e, a = U(e, "modelValue"), { $t: r } = S(), o = W(), c = K({
203
+ companyLegalName: D(a, "companyLegalName", A),
204
+ companyVatNumber: D(a, "companyVatNumber", A)
205
+ }), l = m(() => q(a.value)), { isTaxIDCheckEnabled: x, isTaxIDCheckPending: d, taxIdCheckStatus: n, runTaxIDCheck: i } = le(a), f = m(
206
+ () => !x.value || d.value || !!t.isVatNumberInvalid
207
+ );
208
+ return (u, p) => (I(), $("div", ie, [
209
+ e.hidesLegalName ? V("", !0) : (I(), E(s(k), {
210
+ key: 0,
211
+ modelValue: c.companyLegalName,
212
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => c.companyLegalName = b),
213
+ required: "",
214
+ name: "legal_name",
215
+ autocomplete: "billing organization",
216
+ label: s(o).legalNameLabel,
217
+ placeholder: s(o).legalNamePlaceholder,
218
+ error: e.errors.companyLegalName
219
+ }, null, 8, ["modelValue", "label", "placeholder", "error"])),
220
+ l.value && !e.hidesVatNumber ? (I(), E(s(k), {
221
+ key: 1,
222
+ modelValue: c.companyVatNumber,
223
+ "onUpdate:modelValue": p[1] || (p[1] = (b) => c.companyVatNumber = b),
224
+ name: "vat_number",
225
+ autocomplete: "off",
226
+ "input-class": "focus:outline-none focus:ring-0",
227
+ label: s(o).vatNumberLabel,
228
+ placeholder: s(o).vatNumberPlaceholder,
229
+ error: e.errors.companyVatNumber,
230
+ "suffix-class": "px-2 border-l-0"
231
+ }, j({ _: 2 }, [
232
+ s(w)(a.value.country ?? "") ? {
233
+ name: "suffix",
234
+ fn: h(() => [
235
+ v(s(z), {
236
+ type: "button",
237
+ size: "sm",
238
+ intent: "secondary",
239
+ disabled: f.value,
240
+ onClick: s(i)
241
+ }, {
242
+ default: h(() => [
243
+ T(_(s(r)({
244
+ defaultMessage: "Check",
245
+ id: "checkout.vat_number.check_button.label",
246
+ description: "The label for the check button in the checkout form"
247
+ })), 1)
248
+ ]),
249
+ _: 1
250
+ }, 8, ["disabled", "onClick"])
251
+ ]),
252
+ key: "0"
253
+ } : void 0
254
+ ]), 1032, ["modelValue", "label", "placeholder", "error"])) : V("", !0),
255
+ s(n) ? (I(), $("div", {
256
+ key: 2,
257
+ class: Z({ "opacity-75": s(d) })
258
+ }, [
259
+ v(se, { status: s(n) }, null, 8, ["status"])
260
+ ], 2)) : V("", !0)
261
+ ]));
262
+ }
263
+ }), ce = { class: "flex grow flex-col" }, _e = /* @__PURE__ */ L({
264
+ __name: "CompanyPurchaseToggle",
265
+ props: /* @__PURE__ */ B({
266
+ noSpacing: { type: Boolean }
267
+ }, {
268
+ modelValue: { type: Boolean, required: !0 },
269
+ modelModifiers: {}
270
+ }),
271
+ emits: ["update:modelValue"],
272
+ setup(e) {
273
+ const t = U(e, "modelValue"), { $t: a } = S();
274
+ return (r, o) => (I(), E(s(ae), {
275
+ modelValue: t.value,
276
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
277
+ "no-spacing": e.noSpacing,
278
+ size: "sm",
279
+ "label-position": "before"
280
+ }, {
281
+ "inline-label": h(() => [
282
+ R("div", ce, [
283
+ v(s(N), { tag: "span" }, {
284
+ default: h(() => [
285
+ T(_(s(a)({
286
+ defaultMessage: "Company purchase",
287
+ id: "checkout.company_purchase_toggle.title",
288
+ description: "The title of the company purchase toggle in the checkout"
289
+ })), 1)
290
+ ]),
291
+ _: 1
292
+ }),
293
+ v(s(N), {
294
+ tag: "span",
295
+ variant: "body-xs",
296
+ color: "subtle"
297
+ }, {
298
+ default: h(() => [
299
+ T(_(s(a)({
300
+ defaultMessage: "I am purchasing on behalf of a company",
301
+ id: "checkout.company_purchase_toggle.sub_title",
302
+ description: "The subtitle of the company purchase toggle in the checkout"
303
+ })), 1)
304
+ ]),
305
+ _: 1
306
+ })
307
+ ])
308
+ ]),
309
+ _: 1
310
+ }, 8, ["modelValue", "no-spacing"]));
311
+ }
312
+ }), O = {
313
+ AT: {
314
+ regex: /^ATU\d{8}$/,
315
+ prefix: "AT",
316
+ example: "ATU12345678"
317
+ },
318
+ BE: {
319
+ regex: /^BE0?\d{9}$/,
320
+ prefix: "BE",
321
+ example: "BE0123456789"
322
+ },
323
+ BG: {
324
+ regex: /^BG\d{9,10}$/,
325
+ prefix: "BG",
326
+ example: "BG123456789"
327
+ },
328
+ HR: {
329
+ regex: /^HR\d{11}$/,
330
+ prefix: "HR",
331
+ example: "HR12345678901"
332
+ },
333
+ CY: {
334
+ regex: /^CY\d{8}[A-Z]$/,
335
+ prefix: "CY",
336
+ example: "CY12345678X"
337
+ },
338
+ CZ: {
339
+ regex: /^CZ\d{8,10}$/,
340
+ prefix: "CZ",
341
+ example: "CZ12345678"
342
+ },
343
+ DE: {
344
+ regex: /^DE\d{9}$/,
345
+ prefix: "DE",
346
+ example: "DE123456789"
347
+ },
348
+ DK: {
349
+ regex: /^DK\d{8}$/,
350
+ prefix: "DK",
351
+ example: "DK12345678"
352
+ },
353
+ EE: {
354
+ regex: /^EE\d{9}$/,
355
+ prefix: "EE",
356
+ example: "EE123456789"
357
+ },
358
+ GR: {
359
+ regex: /^(EL|GR)\d{9}$/,
360
+ prefix: "GR",
361
+ example: "GR123456789"
362
+ },
363
+ ES: {
364
+ regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
365
+ prefix: "ES",
366
+ example: "ESX1234567X"
367
+ },
368
+ FI: {
369
+ regex: /^FI\d{8}$/,
370
+ prefix: "FI",
371
+ example: "FI12345678"
372
+ },
373
+ FR: {
374
+ regex: /^FR[0-9A-Z]{2}\d{9}$/,
375
+ prefix: "FR",
376
+ example: "FRXX123456789"
377
+ },
378
+ HU: {
379
+ regex: /^HU\d{8}$/,
380
+ prefix: "HU",
381
+ example: "HU12345678"
382
+ },
383
+ IE: {
384
+ regex: /^IE[0-9A-Z]{8,9}$/,
385
+ prefix: "IE",
386
+ example: "IE1234567A"
387
+ },
388
+ IS: {
389
+ regex: /^IS\d{5}$/,
390
+ prefix: "IS",
391
+ example: "IS12345"
392
+ },
393
+ IT: {
394
+ regex: /^IT\d{11}$/,
395
+ prefix: "IT",
396
+ example: "IT12345678901"
397
+ },
398
+ LT: {
399
+ regex: /^LT(\d{9}|\d{12})$/,
400
+ prefix: "LT",
401
+ example: "LT123456789 or LT123456789012"
402
+ },
403
+ LU: {
404
+ regex: /^LU\d{8}$/,
405
+ prefix: "LU",
406
+ example: "LU12345678"
407
+ },
408
+ LV: {
409
+ regex: /^LV\d{11}$/,
410
+ prefix: "LV",
411
+ example: "LV12345678901"
412
+ },
413
+ ME: {
414
+ regex: /^ME\d{9}$/,
415
+ prefix: "ME",
416
+ example: "ME123456789"
417
+ },
418
+ MT: {
419
+ regex: /^MT\d{8}$/,
420
+ prefix: "MT",
421
+ example: "MT12345678"
422
+ },
423
+ NL: {
424
+ regex: /^NL\d{9}B\d{2}$/,
425
+ prefix: "NL",
426
+ example: "NL123456789B01"
427
+ },
428
+ PL: {
429
+ regex: /^PL\d{10}$/,
430
+ prefix: "PL",
431
+ example: "PL1234567890"
432
+ },
433
+ PT: {
434
+ regex: /^PT\d{9}$/,
435
+ prefix: "PT",
436
+ example: "PT123456789"
437
+ },
438
+ RO: {
439
+ regex: /^RO\d{2,10}$/,
440
+ prefix: "RO",
441
+ example: "RO1234567890"
442
+ },
443
+ RU: {
444
+ regex: /^RU(\d{9}|\d{10}|\d{12})$/,
445
+ prefix: "RU",
446
+ example: "RU123456789 or RU1234567890 or RU123456789012"
447
+ },
448
+ SE: {
449
+ regex: /^SE\d{10}01$/,
450
+ prefix: "SE",
451
+ example: "SE123456789001"
452
+ },
453
+ SI: {
454
+ regex: /^SI\d{8}$/,
455
+ prefix: "SI",
456
+ example: "SI12345678"
457
+ },
458
+ SK: {
459
+ regex: /^SK\d{10}$/,
460
+ prefix: "SK",
461
+ example: "SK1234567890"
462
+ },
463
+ CH: {
464
+ regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
465
+ prefix: "CHE",
466
+ example: "CHE123456789MWST"
467
+ },
468
+ NO: {
469
+ regex: /^NO\d{9}MVA$/,
470
+ prefix: "NO",
471
+ example: "NO123456789MVA"
472
+ },
473
+ GB: {
474
+ regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
475
+ prefix: "GB",
476
+ example: "GB123456789"
477
+ },
478
+ XI: {
479
+ regex: /^XI(\d{9}|\d{12})$/,
480
+ prefix: "XI",
481
+ example: "XI123456789"
482
+ }
483
+ }, de = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(O).some((t) => t.regex.test(e)), ue = ({ $model: e }) => {
484
+ if (!e || typeof e != "string" || e.trim() === "")
485
+ return "";
486
+ const t = X(Y, null);
487
+ if (!t)
488
+ return "Invalid tax ID";
489
+ const { formatMessage: a } = t, r = Object.values(O).find(
490
+ (o) => e.toUpperCase().startsWith(o.prefix.toUpperCase())
491
+ );
492
+ return r ? a(
493
+ {
494
+ defaultMessage: "Invalid tax ID format. Example: {example}",
495
+ id: "form_validation.tax_id.invalid_format",
496
+ description: "Error message when tax ID format is invalid but prefix matches"
497
+ },
498
+ { example: r.example }
499
+ ) : a({
500
+ defaultMessage: "Invalid tax ID",
501
+ id: "taxId.invalid",
502
+ description: "Error message when tax ID is invalid"
503
+ });
504
+ }, Ve = ee.withMessage(ue, de);
505
+ export {
506
+ _e as _,
507
+ Te as a,
508
+ Ee as o,
509
+ Ve as t
510
+ };
@@ -0,0 +1,13 @@
1
+ const i = (g, u) => {
2
+ const e = new Date(g), t = new Date(u), a = t.getFullYear() - e.getFullYear(), r = new Date(e);
3
+ if (r.setFullYear(r.getFullYear() + a), a > 0 && r.getTime() === t.getTime())
4
+ return { type: "YEAR", value: a };
5
+ const o = (t.getFullYear() - e.getFullYear()) * 12 + (t.getMonth() - e.getMonth()), l = new Date(e);
6
+ if (l.setMonth(l.getMonth() + o), o > 0 && l.getTime() === t.getTime())
7
+ return { type: "MONTH", value: o };
8
+ const n = Math.round((t.getTime() - e.getTime()) / (1e3 * 60 * 60 * 24));
9
+ return n > 0 && n % 7 === 0 ? { type: "WEEK", value: n / 7 } : { type: "DAY", value: n };
10
+ };
11
+ export {
12
+ i as c
13
+ };
@@ -1,18 +1,4 @@
1
1
  import { Customer, FormFieldError } from '../../../vendor/@solvimon/solvimon-types/index';
2
- export type BillingInformationFormState = {
3
- type: 'INDIVIDUAL' | 'ORGANIZATION';
4
- email: string;
5
- country: string;
6
- companyLegalName?: string;
7
- companyVatNumber?: string;
8
- firstName?: string;
9
- lastName?: string;
10
- addressLine1: string;
11
- addressLine2?: string;
12
- postalCode: string;
13
- city: string;
14
- state?: string;
15
- };
16
2
  export interface BillingInformationFormProps {
17
3
  customer?: Customer;
18
4
  isLoading: boolean;
@@ -21,4 +7,15 @@ export interface BillingInformationFormProps {
21
7
  customerId: Customer['id'];
22
8
  payload: Partial<Customer>;
23
9
  }) => Promise<Customer>;
10
+ /**
11
+ * Hides the form's own save button, for a host that saves it from its own chrome, such as a
12
+ * modal footer. Pair it with the exposed `submit()`.
13
+ */
14
+ hideSubmitButton?: boolean;
15
+ /** Leaves out the heading above the contact details, for a host whose own title says it. */
16
+ hideContactHeading?: boolean;
17
+ }
18
+ export interface BillingInformationFormEmits {
19
+ /** The changes were stored, or there were none to store. */
20
+ (e: 'saved'): void;
24
21
  }