@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,417 +1,10 @@
1
- import { shallowRef as q, ref as U, computed as S, toRaw as B, defineComponent as x, reactive as z, watch as G, openBlock as _, createElementBlock as $, withModifiers as Z, createVNode as c, unref as t, withCtx as T, createTextVNode as j, toDisplayString as P, createElementVNode as F, Fragment as Y, createCommentVNode as k, createBlock as E, renderSlot as H, normalizeProps as X, guardReactiveProps as J } from "vue";
2
- import { _ as K } from "../../Button.vue.es-j7iYlqtJ.mjs";
3
- import { b as Q, i as W, D as ee, u as ae, c as te, _ as O } from "../../useCustomerFormLabels-D4oDnfxA.mjs";
4
- import { _ as oe } from "../../ErrorNotification.vue.es-F068p7PY.mjs";
5
- import { _ as N } from "../../Input.vue.es-BLyHcmu4.mjs";
6
- import { a as le, d as R, g as re, h as ie, j as ne } from "../../customElements-DK4GKNJG.mjs";
7
- import { a as se, i as w } from "../../typeGuards.es-B4XMtlkM.mjs";
8
- import { o as de, t as D } from "../../taxId.es-e6NEvprh.mjs";
9
- import { u as me, b as M, e as ue, r as A, f as g, a as L, d as C } from "../../formControl-BZQLHnOO.mjs";
10
- import { b as ce } from "../../api.es-qgvzNMU-.mjs";
11
- import { u as pe } from "../../useCustomer-CTMhg1nd.mjs";
12
- import { u as ye } from "../../useLoadInitialData-UvfYXgbi.mjs";
13
- const ge = {
14
- email: "email",
15
- country: "country",
16
- legal_name: "companyLegalName",
17
- tax_ids: "companyVatNumber",
18
- tax_id: "companyVatNumber",
19
- vat_number: "companyVatNumber",
20
- first_name: "firstName",
21
- last_name: "lastName",
22
- line1: "addressLine1",
23
- address_line_1: "addressLine1",
24
- line2: "addressLine2",
25
- address_line_2: "addressLine2",
26
- postal_code: "postalCode",
27
- city: "city",
28
- state: "state"
29
- }, fe = (a) => a.split(".").map((e) => e.replace(/\[\d+\]$/, "")).reverse().map((e) => ge[e]).find((e) => e !== void 0), be = (a, e) => {
30
- const o = { fields: {} };
31
- return Object.entries(a ?? {}).forEach(([l, i]) => {
32
- const r = l === "_generic" ? void 0 : fe(l);
33
- r && e.includes(r) ? o.fields[r] = i : o.generic ?? (o.generic = i);
34
- }), o;
35
- }, he = ({
36
- initialState: a,
37
- validationRules: e,
38
- nullifyEmptyValues: o = !1,
39
- mode: l = "shallow"
40
- }) => {
41
- const i = q(structuredClone(a)), r = U(structuredClone(a)), p = me(e ?? {}, r), y = S(
42
- () => de({ from: i.value, to: r.value, mode: l, nullifyEmptyValues: o })
43
- ), b = S(() => Object.entries(y.value).length > 0);
44
- return {
45
- form: r,
46
- validation: p,
47
- changes: y,
48
- hasChanges: b,
49
- updateInitialState: (v) => {
50
- r.value = structuredClone(B(v)), i.value = structuredClone(B(v));
51
- },
52
- initialState: i
53
- };
54
- }, ve = (a) => W(a), _e = {
55
- type: "INDIVIDUAL",
56
- email: "",
57
- country: "",
58
- addressLine1: "",
59
- postalCode: "",
60
- city: "",
61
- state: ""
62
- };
63
- function Ne({
64
- initialState: a = {},
65
- onSubmit: e
66
- }) {
67
- const o = (u) => Q(
68
- ve(y.value.country) ? y.value.country : void 0
69
- ).includes(u), l = () => y.value.type === "ORGANIZATION", i = U([]), r = (u) => {
70
- var d;
71
- return ((u == null ? void 0 : u.trim()) ?? "") !== (((d = f.value.companyVatNumber) == null ? void 0 : d.trim()) ?? "");
72
- }, p = (u, d, n) => !r(u) || D.$validator(u, d, n), {
73
- form: y,
74
- validation: b,
75
- changes: s,
76
- hasChanges: v,
77
- updateInitialState: V,
78
- initialState: f
79
- } = he({
80
- initialState: {
81
- ..._e,
82
- ...a
83
- },
84
- validationRules: {
85
- email: { required: M, email: ue },
86
- country: { required: M },
87
- addressLine1: { required: A(() => o("addressLine1")) },
88
- postalCode: { required: A(() => o("postalCode")) },
89
- state: { required: A(() => o("state")) },
90
- companyLegalName: { required: A(l) },
91
- companyVatNumber: { taxId: { ...D, $validator: p } }
92
- },
93
- nullifyEmptyValues: !0,
94
- mode: "deep"
95
- });
96
- return {
97
- form: y,
98
- validation: b,
99
- changes: s,
100
- hasChanges: v,
101
- updateInitialState: (u) => {
102
- i.value = se(u) ? u.organization.tax_ids ?? [] : [], V(Le(u));
103
- },
104
- submit: (u, d = y.value) => e({
105
- customerId: u,
106
- payload: Ce(
107
- d,
108
- r(d.companyVatNumber) ? Ie(i.value, d.companyVatNumber) : void 0
109
- )
110
- })
111
- };
112
- }
113
- const Le = (a) => {
114
- var l, i, r, p;
115
- const e = w(a) ? a.individual.residential_address : a.organization.registered_address, o = {
116
- email: a.email ?? "",
117
- country: (e == null ? void 0 : e.country) ?? "",
118
- addressLine1: (e == null ? void 0 : e.line1) ?? "",
119
- addressLine2: (e == null ? void 0 : e.line2) ?? "",
120
- postalCode: (e == null ? void 0 : e.postal_code) ?? "",
121
- city: (e == null ? void 0 : e.city) ?? "",
122
- state: (e == null ? void 0 : e.state) ?? ""
123
- };
124
- return w(a) ? {
125
- type: "INDIVIDUAL",
126
- ...o,
127
- firstName: ((l = a.individual.name) == null ? void 0 : l.first_name) ?? "",
128
- lastName: ((i = a.individual.name) == null ? void 0 : i.last_name) ?? ""
129
- } : {
130
- type: "ORGANIZATION",
131
- ...o,
132
- companyLegalName: a.organization.legal_name ?? "",
133
- companyVatNumber: ((p = (r = a.organization.tax_ids) == null ? void 0 : r[0]) == null ? void 0 : p.id) ?? ""
134
- };
135
- }, Ve = ({ id: a, type: e, display_name: o }) => ({
136
- id: a,
137
- type: e,
138
- ...o && { display_name: o }
139
- }), Ie = (a, e) => {
140
- const o = e == null ? void 0 : e.trim(), [l, ...i] = a.map(Ve);
141
- return o ? [{ ...l, id: o, type: (l == null ? void 0 : l.type) ?? ee }, ...i] : i;
142
- }, Ce = (a, e) => {
143
- const o = {
144
- line1: a.addressLine1,
145
- line2: a.addressLine2 ?? "",
146
- postal_code: a.postalCode,
147
- city: a.city,
148
- country: a.country,
149
- state: a.state ?? ""
150
- };
151
- return a.type === "ORGANIZATION" ? {
152
- type: "ORGANIZATION",
153
- email: a.email,
154
- organization: {
155
- legal_name: a.companyLegalName ?? "",
156
- ...e && { tax_ids: e },
157
- registered_address: o
158
- }
159
- } : {
160
- type: "INDIVIDUAL",
161
- email: a.email,
162
- individual: {
163
- name: {
164
- first_name: a.firstName ?? "",
165
- last_name: a.lastName ?? ""
166
- },
167
- residential_address: o
168
- }
169
- };
170
- }, Se = { class: "grid grid-cols-1 gap-4" }, Te = { class: "mt-6 flex items-center justify-between gap-4" }, Fe = { class: "flex flex-col gap-2" }, Oe = {
171
- key: 0,
172
- class: "grid grid-cols-2 gap-2"
173
- }, Ae = { class: "grid grid-cols-3 gap-2" }, ke = /* @__PURE__ */ x({
174
- __name: "BillingInformationForm",
175
- props: {
176
- customer: { type: Object },
177
- isLoading: { type: Boolean },
178
- apiError: { type: null },
179
- updateCustomer: { type: Function }
180
- },
181
- setup(a) {
182
- const e = a, { $t: o } = le(), l = ae(), { validation: i, form: r, updateInitialState: p, submit: y, hasChanges: b } = Ne({
183
- onSubmit: ({ customerId: d, payload: n }) => e.updateCustomer({ customerId: d, payload: n })
184
- }), s = z({
185
- email: g(r, "email", C),
186
- companyVatNumber: g(r, "companyVatNumber", L),
187
- companyLegalName: g(r, "companyLegalName", L),
188
- firstName: g(r, "firstName", L),
189
- lastName: g(r, "lastName", L),
190
- addressLine1: g(r, "addressLine1", C),
191
- addressLine2: g(r, "addressLine2", L),
192
- postalCode: g(r, "postalCode", C),
193
- city: g(r, "city", C),
194
- state: g(r, "state", L)
195
- }), v = S({
196
- get: () => r.value.country,
197
- set: (d) => {
198
- r.value.country = C(d);
199
- }
200
- }), V = S(() => r.value.type === "ORGANIZATION"), f = S(
201
- () => be(e.apiError, [
202
- "email",
203
- "country",
204
- "addressLine1",
205
- "addressLine2",
206
- "postalCode",
207
- "city",
208
- "state",
209
- ...V.value ? ["companyLegalName", "companyVatNumber"] : ["firstName", "lastName"]
210
- ])
211
- ), h = (d) => i.value[d].$errors.length ? i.value[d].$errors : f.value.fields[d], I = U(!1), u = async () => {
212
- var d;
213
- if (!(I.value || !((d = e.customer) != null && d.id))) {
214
- I.value = !0;
215
- try {
216
- if (!await i.value.$validate()) return;
217
- p(await y(e.customer.id)), i.value.$reset();
218
- } catch {
219
- } finally {
220
- I.value = !1;
221
- }
222
- }
223
- };
224
- return G(
225
- () => e.customer,
226
- (d) => {
227
- d && !b.value && p(d);
228
- },
229
- { immediate: !0 }
230
- ), (d, n) => (_(), $("form", {
231
- onSubmit: Z(u, ["prevent"])
232
- }, [
233
- c(t(R), {
234
- variant: "heading-3",
235
- tag: "h2"
236
- }, {
237
- default: T(() => [
238
- j(P(t(l).contactInformationTitle), 1)
239
- ]),
240
- _: 1
241
- }),
242
- F("div", Se, [
243
- c(t(N), {
244
- modelValue: s.email,
245
- "onUpdate:modelValue": n[0] || (n[0] = (m) => s.email = m),
246
- required: "",
247
- type: "email",
248
- name: "email",
249
- autocomplete: "email",
250
- label: t(l).emailLabel,
251
- placeholder: t(l).emailPlaceholder,
252
- error: h("email")
253
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
254
- c(t(te), {
255
- "single-model-value": v.value,
256
- "onUpdate:singleModelValue": n[1] || (n[1] = (m) => v.value = m),
257
- i18n: { placeholderDefault: t(l).countryPlaceholder },
258
- label: t(l).countryLabel,
259
- error: h("country")
260
- }, null, 8, ["single-model-value", "i18n", "label", "error"]),
261
- V.value ? (_(), $(Y, { key: 0 }, [
262
- c(t(N), {
263
- modelValue: s.companyVatNumber,
264
- "onUpdate:modelValue": n[2] || (n[2] = (m) => s.companyVatNumber = m),
265
- name: "vat_number",
266
- autocomplete: "off",
267
- label: t(l).vatNumberLabel,
268
- placeholder: t(l).vatNumberPlaceholder,
269
- error: h("companyVatNumber")
270
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
271
- c(t(N), {
272
- modelValue: s.companyLegalName,
273
- "onUpdate:modelValue": n[3] || (n[3] = (m) => s.companyLegalName = m),
274
- required: "",
275
- name: "legal_name",
276
- autocomplete: "billing organization",
277
- label: t(l).legalNameLabel,
278
- placeholder: t(l).legalNamePlaceholder,
279
- error: h("companyLegalName")
280
- }, null, 8, ["modelValue", "label", "placeholder", "error"])
281
- ], 64)) : k("", !0)
282
- ]),
283
- F("div", Te, [
284
- c(t(R), {
285
- variant: "heading-3",
286
- tag: "h2"
287
- }, {
288
- default: T(() => [
289
- j(P(t(o)({
290
- defaultMessage: "Billing details",
291
- id: "checkout.billing_information_block.title",
292
- description: "The title of the billing information block in the checkout form"
293
- })), 1)
294
- ]),
295
- _: 1
296
- })
297
- ]),
298
- F("div", Fe, [
299
- V.value ? k("", !0) : (_(), $("div", Oe, [
300
- c(t(N), {
301
- modelValue: s.firstName,
302
- "onUpdate:modelValue": n[4] || (n[4] = (m) => s.firstName = m),
303
- name: "first_name",
304
- autocomplete: "billing given-name",
305
- label: t(o)({
306
- defaultMessage: "First name",
307
- id: "checkout.first_name.label",
308
- description: "The first name of the customer in the checkout form"
309
- }),
310
- placeholder: t(o)({
311
- defaultMessage: "First name",
312
- id: "checkout.first_name.placeholder",
313
- description: "The first name of the customer in the checkout form"
314
- }),
315
- error: f.value.fields.firstName
316
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
317
- c(t(N), {
318
- modelValue: s.lastName,
319
- "onUpdate:modelValue": n[5] || (n[5] = (m) => s.lastName = m),
320
- name: "last_name",
321
- autocomplete: "billing family-name",
322
- label: t(o)({
323
- defaultMessage: "Last name",
324
- id: "checkout.last_name.label",
325
- description: "The last name of the customer in the checkout form"
326
- }),
327
- placeholder: t(o)({
328
- defaultMessage: "Last name",
329
- id: "checkout.last_name.placeholder",
330
- description: "The last name of the customer in the checkout form"
331
- }),
332
- error: f.value.fields.lastName
333
- }, null, 8, ["modelValue", "label", "placeholder", "error"])
334
- ])),
335
- c(t(N), {
336
- modelValue: s.addressLine1,
337
- "onUpdate:modelValue": n[6] || (n[6] = (m) => s.addressLine1 = m),
338
- name: "address_line_1",
339
- autocomplete: "billing address-line1",
340
- label: t(l).addressTitle,
341
- placeholder: t(o)({
342
- defaultMessage: "Address line 1",
343
- id: "checkout.address.line1.placeholder",
344
- description: "Address line 1 of the customer address in the checkout form"
345
- }),
346
- error: h("addressLine1")
347
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
348
- c(O, {
349
- modelValue: s.addressLine2,
350
- "onUpdate:modelValue": n[7] || (n[7] = (m) => s.addressLine2 = m),
351
- name: "address_line_2",
352
- autocomplete: "billing address-line2",
353
- label: t(l).addressLine2Label,
354
- placeholder: t(o)({
355
- defaultMessage: "Address line 2",
356
- id: "checkout.address.line2.placeholder",
357
- description: "Address line 2 of the customer address in the checkout form"
358
- }),
359
- error: f.value.fields.addressLine2
360
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
361
- F("div", Ae, [
362
- c(O, {
363
- modelValue: s.postalCode,
364
- "onUpdate:modelValue": n[8] || (n[8] = (m) => s.postalCode = m),
365
- name: "postal_code",
366
- autocomplete: "billing postal-code",
367
- label: t(l).postalCodeLabel,
368
- placeholder: t(l).postalCodePlaceholder,
369
- error: h("postalCode")
370
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
371
- c(O, {
372
- modelValue: s.city,
373
- "onUpdate:modelValue": n[9] || (n[9] = (m) => s.city = m),
374
- name: "city",
375
- autocomplete: "billing address-level2",
376
- label: t(l).cityLabel,
377
- placeholder: t(l).cityPlaceholder,
378
- error: f.value.fields.city
379
- }, null, 8, ["modelValue", "label", "placeholder", "error"]),
380
- c(O, {
381
- modelValue: s.state,
382
- "onUpdate:modelValue": n[10] || (n[10] = (m) => s.state = m),
383
- name: "state",
384
- autocomplete: "billing address-level1",
385
- label: t(l).stateLabel,
386
- placeholder: t(l).statePlaceholder,
387
- error: h("state")
388
- }, null, 8, ["modelValue", "label", "placeholder", "error"])
389
- ])
390
- ]),
391
- f.value.generic ? (_(), E(t(oe), {
392
- key: 0,
393
- class: "mt-4",
394
- title: f.value.generic
395
- }, null, 8, ["title"])) : k("", !0),
396
- c(t(K), {
397
- type: "submit",
398
- intent: "primary",
399
- disabled: !t(b),
400
- loading: a.isLoading || I.value,
401
- class: "mt-4"
402
- }, {
403
- default: T(() => [
404
- j(P(t(o)({
405
- defaultMessage: "Save changes",
406
- id: "billing_information_form.submit_button.label",
407
- description: "The label for the submit button of the billing information form"
408
- })), 1)
409
- ]),
410
- _: 1
411
- }, 8, ["disabled", "loading"])
412
- ], 32));
413
- }
414
- }), Ee = /* @__PURE__ */ x({
1
+ import { defineComponent as m, openBlock as p, createBlock as s, renderSlot as g, unref as e, withCtx as u, createVNode as y, normalizeProps as f, guardReactiveProps as _, createCommentVNode as v } from "vue";
2
+ import { _ as b } from "../../BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs";
3
+ import { b as S } from "../../api.es-QaC926Xu.mjs";
4
+ import { u as O } from "../../useCustomer-RUtEzDOY.mjs";
5
+ import { u as j } from "../../useLoadInitialData-CwySdYZM.mjs";
6
+ import { j as L, k as C, l as F } from "../../customElements-d7Bhfqi_.mjs";
7
+ const B = /* @__PURE__ */ m({
415
8
  __name: "BillingInformationForm",
416
9
  props: {
417
10
  customer: { type: Object },
@@ -419,81 +12,71 @@ const Le = (a) => {
419
12
  updateCustomer: { type: Function },
420
13
  isLoading: { type: Boolean }
421
14
  },
422
- setup(a) {
423
- return (e, o) => (_(), E(ke, {
15
+ setup(t) {
16
+ return (a, o) => (p(), s(b, {
424
17
  class: "sv-billing-form sv-root sv-component",
425
- customer: a.customer,
426
- "update-customer": a.updateCustomer,
427
- "is-loading": a.isLoading,
428
- "api-error": a.apiError
18
+ customer: t.customer,
19
+ "update-customer": t.updateCustomer,
20
+ "is-loading": t.isLoading,
21
+ "api-error": t.apiError
429
22
  }, null, 8, ["customer", "update-customer", "is-loading", "api-error"]));
430
23
  }
431
- }), xe = /* @__PURE__ */ x({
24
+ }), $ = /* @__PURE__ */ m({
432
25
  __name: "BillingInformationForm.entry.view",
433
26
  props: {
434
- portalToken: { type: Object },
435
27
  environment: { type: String },
436
28
  locale: { type: String },
437
29
  dateLocale: { type: String },
438
30
  messages: { type: Object },
439
- primaryColor: { type: String },
440
- secondaryColor: { type: String },
441
- isShadowRoot: { type: Boolean },
31
+ portalToken: { type: Object },
442
32
  experimentalFeatures: { type: Array },
443
33
  logLevel: { type: String },
444
34
  onLog: { type: Function },
445
- allowedPortalTypes: { type: Array },
446
- portalObject: { type: Object },
447
35
  cssOverrides: { type: [String, Array] },
448
- branding: { type: Object }
36
+ branding: { type: Object },
37
+ portalObject: { type: null }
449
38
  },
450
- setup(a) {
451
- const o = a.portalObject.customer_id, { customer: l, get: i, update: r } = pe({ customerId: o });
452
- return ye(i.execute()), (p, y) => H(p.$slots, "default", {
453
- customer: t(l),
454
- isLoading: t(i).isPending.value || t(r).isPending.value,
455
- updateCustomer: t(r),
456
- apiError: t(r).error.value ? t(ce)(t(r).error.value) : void 0
39
+ setup(t) {
40
+ const o = t.portalObject.customer_id, { customer: l, get: n, update: r } = O({ customerId: o });
41
+ return j(n.execute()), (i, c) => g(i.$slots, "default", {
42
+ customer: e(l),
43
+ isLoading: e(n).isPending.value || e(r).isPending.value,
44
+ updateCustomer: e(r),
45
+ apiError: e(r).error.value ? e(S)(e(r).error.value) : void 0
457
46
  });
458
47
  }
459
- }), $e = /* @__PURE__ */ x({
48
+ }), k = /* @__PURE__ */ m({
460
49
  __name: "BillingInformationForm.entry",
461
50
  props: {
462
- portalToken: { type: Object },
463
51
  environment: { type: String },
464
52
  locale: { type: String },
465
53
  dateLocale: { type: String },
466
54
  messages: { type: Object },
467
- primaryColor: { type: String },
468
- secondaryColor: { type: String },
469
- isShadowRoot: { type: Boolean },
55
+ portalToken: { type: Object },
470
56
  experimentalFeatures: { type: Array },
471
57
  logLevel: { type: String },
472
58
  onLog: { type: Function },
473
- allowedPortalTypes: { type: Array },
474
- portalObject: { type: Object },
475
59
  cssOverrides: { type: [String, Array] },
476
- branding: { type: Object }
60
+ branding: { type: Object },
61
+ portalObject: { type: null }
477
62
  },
478
- emits: ["error"],
479
- setup(a) {
480
- const e = ie("billing-information-form");
481
- return (o, l) => (_(), E(t(re), {
63
+ setup(t) {
64
+ const a = C("billing-information-form");
65
+ return (o, l) => (p(), s(e(L), {
482
66
  entry: o.$props,
483
- "component-name": t(e),
484
- "allowed-portal-types": ["CUSTOMER"],
485
- onError: l[0] || (l[0] = (i) => o.$emit("error", i))
67
+ "component-name": e(a),
68
+ "allowed-portal-types": ["CUSTOMER"]
486
69
  }, {
487
- default: T(() => [
488
- c(xe, X(J(o.$props)), {
489
- default: T(({ customer: i, updateCustomer: r, isLoading: p, apiError: y }) => [
490
- i ? (_(), E(Ee, {
70
+ default: u(() => [
71
+ y($, f(_(o.$props)), {
72
+ default: u(({ customer: n, updateCustomer: r, isLoading: i, apiError: c }) => [
73
+ n ? (p(), s(B, {
491
74
  key: 0,
492
- customer: i,
493
- "is-loading": p,
494
- "update-customer": ({ payload: b }) => r.execute(b),
495
- "api-error": y
496
- }, null, 8, ["customer", "is-loading", "update-customer", "api-error"])) : k("", !0)
75
+ customer: n,
76
+ "is-loading": i,
77
+ "update-customer": ({ payload: d }) => r.execute(d),
78
+ "api-error": c
79
+ }, null, 8, ["customer", "is-loading", "update-customer", "api-error"])) : v("", !0)
497
80
  ]),
498
81
  _: 1
499
82
  }, 16)
@@ -501,10 +84,10 @@ const Le = (a) => {
501
84
  _: 1
502
85
  }, 8, ["entry", "component-name"]));
503
86
  }
504
- }), { define: Ye } = ne(
505
- $e,
87
+ }), { define: P } = F(
88
+ k,
506
89
  "billing-information-form"
507
90
  );
508
91
  export {
509
- Ye as defineSolvimonBillingInformationForm
92
+ P as defineSolvimonBillingInformationForm
510
93
  };
@@ -1,75 +1,66 @@
1
- import { defineComponent as m, renderSlot as c, unref as a, openBlock as l, createBlock as d, withCtx as s, createVNode as i, normalizeProps as g, guardReactiveProps as u } from "vue";
2
- import { _ as f } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs";
3
- import { D as S } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
4
- import { u as O } from "../../useLoadInitialData-UvfYXgbi.mjs";
5
- import { u as _ } from "../../usePaymentMethods-De7hlLHo.mjs";
6
- import { g as b, h, j } from "../../customElements-DK4GKNJG.mjs";
1
+ import { defineComponent as m, renderSlot as y, unref as n, openBlock as l, createBlock as u, withCtx as p, createVNode as i, normalizeProps as d, guardReactiveProps as g } from "vue";
2
+ import { _ as f } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs";
3
+ import { D as _ } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
4
+ import { u as O } from "../../useLoadInitialData-CwySdYZM.mjs";
5
+ import { u as S } from "../../usePaymentMethods-DBGyQA_I.mjs";
6
+ import { j as b, k as h, l as j } from "../../customElements-d7Bhfqi_.mjs";
7
7
  const v = /* @__PURE__ */ m({
8
8
  __name: "CustomerPaymentMethods.entry.view",
9
9
  props: {
10
10
  portalObject: { type: Object },
11
- portalToken: { type: Object },
12
11
  environment: { type: String },
13
12
  locale: { type: String },
14
13
  dateLocale: { type: String },
15
14
  messages: { type: Object },
16
- primaryColor: { type: String },
17
- secondaryColor: { type: String },
18
- isShadowRoot: { type: Boolean },
15
+ portalToken: { type: Object },
19
16
  experimentalFeatures: { type: Array },
20
17
  logLevel: { type: String },
21
18
  onLog: { type: Function },
22
- allowedPortalTypes: { type: Array },
23
19
  cssOverrides: { type: [String, Array] },
24
20
  branding: { type: Object },
25
21
  configuration: { type: Object }
26
22
  },
27
- setup(p) {
28
- var n;
29
- const r = p, e = r.portalObject.customer_id, t = _({
30
- customerId: e,
31
- pageSize: ((n = r.configuration) == null ? void 0 : n.maxItems) || S
32
- }), { isLoading: o } = O(t.fetchInitial());
33
- return (y, L) => c(y.$slots, "default", {
34
- paymentMethods: a(t).items.value,
35
- isLoading: a(o)
23
+ setup(r) {
24
+ var o;
25
+ const e = r, t = e.portalObject.customer_id, a = S({
26
+ customerId: t,
27
+ pageSize: ((o = e.configuration) == null ? void 0 : o.maxItems) || _
28
+ }), { isLoading: s } = O(a.fetchInitial());
29
+ return (c, M) => y(c.$slots, "default", {
30
+ paymentMethods: n(a).items.value,
31
+ isLoading: n(s)
36
32
  });
37
33
  }
38
- }), C = /* @__PURE__ */ m({
34
+ }), L = /* @__PURE__ */ m({
39
35
  __name: "CustomerPaymentMethods.entry",
40
36
  props: {
41
37
  portalObject: { type: Object },
42
- portalToken: { type: Object },
43
38
  environment: { type: String },
44
39
  locale: { type: String },
45
40
  dateLocale: { type: String },
46
41
  messages: { type: Object },
47
- primaryColor: { type: String },
48
- secondaryColor: { type: String },
49
- isShadowRoot: { type: Boolean },
42
+ portalToken: { type: Object },
50
43
  experimentalFeatures: { type: Array },
51
44
  logLevel: { type: String },
52
45
  onLog: { type: Function },
53
- allowedPortalTypes: { type: Array },
54
46
  cssOverrides: { type: [String, Array] },
55
47
  branding: { type: Object },
56
48
  configuration: { type: Object }
57
49
  },
58
- setup(p) {
59
- const r = h("customer-payment-methods");
60
- return (e, t) => (l(), d(a(b), {
61
- entry: e.$props,
62
- "component-name": a(r),
63
- "allowed-portal-types": ["CUSTOMER"],
64
- onError: t[0] || (t[0] = (o) => e.$emit("error", o))
50
+ setup(r) {
51
+ const e = h("customer-payment-methods");
52
+ return (t, a) => (l(), u(n(b), {
53
+ entry: t.$props,
54
+ "component-name": n(e),
55
+ "allowed-portal-types": ["CUSTOMER"]
65
56
  }, {
66
- default: s(() => [
67
- i(v, g(u(e.$props)), {
68
- default: s(({ paymentMethods: o, isLoading: n }) => [
57
+ default: p(() => [
58
+ i(v, d(g(t.$props)), {
59
+ default: p(({ paymentMethods: s, isLoading: o }) => [
69
60
  i(f, {
70
- configuration: p.configuration,
71
- "payment-methods": o,
72
- "is-loading": n
61
+ configuration: r.configuration,
62
+ "payment-methods": s,
63
+ "is-loading": o
73
64
  }, null, 8, ["configuration", "payment-methods", "is-loading"])
74
65
  ]),
75
66
  _: 1
@@ -78,10 +69,10 @@ const v = /* @__PURE__ */ m({
78
69
  _: 1
79
70
  }, 8, ["entry", "component-name"]));
80
71
  }
81
- }), { define: E } = j(
82
- C,
72
+ }), { define: I } = j(
73
+ L,
83
74
  "customer-payment-methods"
84
75
  );
85
76
  export {
86
- E as defineSolvimonCustomerPaymentMethods
77
+ I as defineSolvimonCustomerPaymentMethods
87
78
  };