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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/README.md +26 -1
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  4. package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
  6. package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  7. package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
  8. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  9. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  10. package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
  11. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  12. package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  13. package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  14. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
  15. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  16. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
  17. package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  18. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  19. package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  20. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  21. package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  22. package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  23. package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
  24. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
  25. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
  26. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  27. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  28. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  29. package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  30. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  31. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  32. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
  33. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  34. package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  35. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
  36. package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  37. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
  38. package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
  39. package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
  40. package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  41. package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  42. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
  43. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
  44. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
  45. package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
  46. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  47. package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
  48. package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  49. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
  50. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  51. package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  52. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  53. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  54. package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
  55. package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
  56. package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  57. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  58. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
  59. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
  60. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  61. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  62. package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  63. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  64. package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
  65. package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
  66. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
  67. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
  68. package/dist/components/Invoice/Invoice.mjs +2660 -193
  69. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
  70. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
  71. package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
  72. package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
  73. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
  74. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
  75. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
  76. package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
  77. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  78. package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
  79. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  80. package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
  81. package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
  82. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  83. package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
  84. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  85. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  86. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  87. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  88. package/dist/index.es-CpmQmvOg.mjs +633 -0
  89. package/dist/index.mjs +2 -2
  90. package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
  91. package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
  92. package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
  93. package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
  94. package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
  95. package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
  96. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  97. package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
  98. package/dist/payments-BnxbzQUC.mjs +68 -0
  99. package/dist/pricing-BOhvWWMj.mjs +29 -0
  100. package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
  101. package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
  102. package/dist/screens/Checkout/Checkout.mjs +2 -2
  103. package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
  104. package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  107. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
  108. package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
  109. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  110. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  111. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
  112. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  113. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  114. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  115. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  116. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  117. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  118. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
  119. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
  120. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  121. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
  122. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  123. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  124. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  125. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  126. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
  127. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  128. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
  129. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  130. package/dist/types/public/core/types.d.ts +5 -0
  131. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
  132. package/dist/types/translations/supported.d.ts +1 -1
  133. package/dist/types/types/portalAuthentication.d.ts +2 -0
  134. package/dist/types/types/portalToken.d.ts +9 -0
  135. package/dist/types/types/shippingAddress.d.ts +9 -0
  136. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  137. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  138. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  139. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  140. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  141. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  142. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  143. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  144. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  145. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  146. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  147. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  148. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  149. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  150. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  151. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  152. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  153. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  154. package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
  155. package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  156. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  157. package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
  158. package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
  159. package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
  160. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  161. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  162. package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
  163. package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
  164. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  165. package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
  166. package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
  167. package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
  168. package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  169. package/package.json +7 -7
  170. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
  171. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
  172. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  173. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
  174. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  175. package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
  176. package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
  177. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
  178. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
  179. package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
  180. package/dist/customElements-Di3zwlEU.mjs +0 -6447
  181. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  182. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  183. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  184. package/dist/payments-Ci8bF4C6.mjs +0 -45
  185. package/dist/subscriptions-CwogJODR.mjs +0 -54
  186. package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
  187. package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
  188. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
  189. package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
@@ -1,31 +1,32 @@
1
- import { computed as d, watch as O, defineComponent as C, openBlock as v, createBlock as f, unref as e, withCtx as g, createVNode as h, createCommentVNode as b } from "vue";
2
- import { A as L } from "../../ApiStatus-CSFKl_ra.mjs";
3
- import { C as I } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
4
- import { u as M, _ as B } from "../../useInvoicesList-Y6p0Pqpy.mjs";
5
- import { u as N } from "../../usePortal-CxzKGhbK.mjs";
6
- import { u as T, _ as $ } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs";
7
- import { u as E } from "../../useCustomer-C3kTh7wn.mjs";
8
- import { u as P } from "../../usePaymentMethods-gvr-rmwE.mjs";
9
- import { _ as U } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs";
10
- import { u as j } from "../../useLoadInitialData-4k_Cyqef.mjs";
11
- import { _ as x } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs";
12
- import { D } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
13
- import { u as W, _ as F } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs";
14
- import { d as k, e as R, g as V, f as H } from "../../customElements-Di3zwlEU.mjs";
15
- import { a as z } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
16
- function X(a) {
17
- const l = k(), m = d(() => z(a.value));
18
- O([m, a], ([o, t]) => {
19
- o || t.length === 0 || l.warn("ACTIVE_SCHEDULE_NOT_FOUND", "No schedule is currently being billed", {
1
+ import { computed as f, watch as E, ref as M, defineComponent as O, defineAsyncComponent as P, openBlock as d, createBlock as v, unref as e, withCtx as g, createVNode as y, createCommentVNode as b } from "vue";
2
+ import { A as T } from "../../ApiStatus-CSFKl_ra.mjs";
3
+ import { C as N } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
4
+ import { u as D, _ as U } from "../../useInvoicesList-CpB-41MQ.mjs";
5
+ import { u as $ } from "../../usePortal-CwR_FxTb.mjs";
6
+ import { u as j, _ as k } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs";
7
+ import { u as x } from "../../useCustomer-cObBvDOu.mjs";
8
+ import { u as F } from "../../usePaymentMethods-ByaKF7mf.mjs";
9
+ import { _ as W } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs";
10
+ import { u as H } from "../../useLoadInitialData-qzdnBoui.mjs";
11
+ import { _ as R } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs";
12
+ import { D as V } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
13
+ import { u as z, a as G } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs";
14
+ import { e as I, g as X, h as Z, j as q } from "../../customElements-BTj4ii4f.mjs";
15
+ import { a as J } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
16
+ import { c as K } from "../../subscriptions-BWXZGK0E.mjs";
17
+ function Q(s) {
18
+ const u = I(), c = f(() => J(s.value));
19
+ E([c, s], ([i, t]) => {
20
+ i || t.length === 0 || u.warn("ACTIVE_SCHEDULE_NOT_FOUND", "No schedule is currently being billed", {
20
21
  schedules: t.flatMap(
21
- ({ pricing_plan_schedule_infos: s }) => (s ?? []).map(
22
- ({ id: r, type: n, start_at: i, end_at: _, ...y }) => {
23
- var p;
22
+ ({ pricing_plan_schedule_infos: r }) => (r ?? []).map(
23
+ ({ id: o, type: n, start_at: a, end_at: m, ..._ }) => {
24
+ var h;
24
25
  return {
25
- id: r,
26
- type: ((p = y.pricing_plan_schedule) == null ? void 0 : p.type) ?? n,
27
- start_at: i,
28
- end_at: _
26
+ id: o,
27
+ type: ((h = _.pricing_plan_schedule) == null ? void 0 : h.type) ?? n,
28
+ start_at: a,
29
+ end_at: m
29
30
  };
30
31
  }
31
32
  )
@@ -33,90 +34,134 @@ function X(a) {
33
34
  });
34
35
  });
35
36
  }
36
- const q = 2, G = /* @__PURE__ */ C({
37
+ const Y = 50, A = ({ default_shipping_address_id: s }) => !!s;
38
+ function ee({ customerId: s }) {
39
+ const u = K(), c = I(), i = M(!1);
40
+ return { hasShippedSubscription: i, check: async (r = []) => {
41
+ if (r.some(A)) {
42
+ i.value = !0;
43
+ return;
44
+ }
45
+ if (s)
46
+ try {
47
+ for (let o = 1; ; o += 1) {
48
+ const { data: n, links: a } = await u.getSubscriptionsOfEveryStatus({
49
+ customerId: s,
50
+ page: o,
51
+ pageSize: Y
52
+ });
53
+ if (n.some(A)) {
54
+ i.value = !0;
55
+ return;
56
+ }
57
+ if (!(a != null && a.next) || !n.length) return;
58
+ }
59
+ } catch (o) {
60
+ c.error(
61
+ "SHIPPED_SUBSCRIPTIONS_LOAD_FAILED",
62
+ "Failed to find out whether the customer has shipped subscriptions",
63
+ {},
64
+ o
65
+ );
66
+ }
67
+ } };
68
+ }
69
+ const te = 2, oe = /* @__PURE__ */ O({
37
70
  __name: "CustomerOverview",
38
71
  props: {
39
72
  configuration: { type: Object }
40
73
  },
41
- setup(a) {
42
- var w;
43
- const l = a, o = (w = N().value) == null ? void 0 : w.customer_id, t = E({ customerId: o }), s = M({ customerId: o, batchSize: 5 }), r = T({ customerId: o }), n = P({ customerId: o }), i = W({ customerId: o }), _ = d(
74
+ setup(s) {
75
+ var C;
76
+ const u = P(
77
+ () => import("../../CustomerShippingAddresses-Bj8Y17O8.mjs").then((l) => l.C)
78
+ ), c = s, t = (C = $().value) == null ? void 0 : C.customer_id, r = x({ customerId: t }), o = D({ customerId: t, batchSize: 5 }), n = j({ customerId: t }), a = F({ customerId: t }), m = z({ customerId: t }), _ = f(
44
79
  () => {
45
- var c;
46
- return ((c = i.walletBalances.value) == null ? void 0 : c.wallet_balances) ?? [];
80
+ var l;
81
+ return ((l = m.walletBalances.value) == null ? void 0 : l.wallet_balances) ?? [];
47
82
  }
48
- ), y = d(() => r.items.value.slice(0, q)), p = d(
83
+ ), h = f(() => n.items.value.slice(0, te)), L = f(
49
84
  () => {
50
- var c;
51
- return n.items.value.slice(0, ((c = l.configuration) == null ? void 0 : c.maxItems) ?? D);
85
+ var l;
86
+ return a.items.value.slice(0, ((l = c.configuration) == null ? void 0 : l.maxItems) ?? V);
52
87
  }
53
- ), { isLoading: u } = j(
54
- t.get.execute(),
55
- s.fetchInitial(),
56
- r.fetchAll(),
57
- n.fetchAll(),
58
- i.fetch()
59
- ), A = () => {
60
- n.fetchAll();
88
+ ), w = ee({ customerId: t }), { isLoading: p } = H(
89
+ r.get.execute(),
90
+ o.fetchInitial(),
91
+ // The active subscriptions answer it for most customers whose order ships. Reading the others
92
+ // can take several requests, so it does not hold up the rest of the screen.
93
+ n.fetchAll().finally(() => void w.check(n.items.value)),
94
+ a.fetchAll(),
95
+ m.fetch()
96
+ ), B = () => {
97
+ a.fetchAll();
61
98
  }, S = () => {
62
- i.fetch();
99
+ m.fetch();
63
100
  };
64
- return X(r.items), (c, K) => (v(), f(e(I), { class: "sv-customer-overview sv-root sv-screen" }, {
101
+ return Q(n.items), (l, re) => (d(), v(e(N), { class: "sv-customer-overview sv-root sv-screen" }, {
65
102
  header: g(() => [
66
- e(t).customer.value ? (v(), f($, {
103
+ e(r).customer.value ? (d(), v(k, {
67
104
  key: 0,
68
105
  class: "sv-customer-overview__subscriptions",
69
- customer: e(t).customer.value,
70
- subscriptions: y.value,
71
- "payment-methods": e(n).items.value,
72
- "is-loading": e(u),
73
- "has-error": !!e(r).error.value
106
+ customer: e(r).customer.value,
107
+ subscriptions: h.value,
108
+ "payment-methods": e(a).items.value,
109
+ "is-loading": e(p),
110
+ "has-error": !!e(n).error.value
74
111
  }, null, 8, ["customer", "subscriptions", "payment-methods", "is-loading", "has-error"])) : b("", !0)
75
112
  ]),
76
113
  content: g(() => [
77
- h(B, {
114
+ y(U, {
78
115
  class: "sv-customer-overview__invoices",
79
- invoices: e(s).items.value,
80
- "has-more-items": e(s).hasNextBatch.value,
81
- "is-loading": e(u) || e(s).isPending.value,
82
- error: e(s).error.value,
83
- onLoadMore: e(s).fetchMore
116
+ invoices: e(o).items.value,
117
+ "has-more-items": e(o).hasNextBatch.value,
118
+ "is-loading": e(p) || e(o).isPending.value,
119
+ error: e(o).error.value,
120
+ onLoadMore: e(o).fetchMore
84
121
  }, null, 8, ["invoices", "has-more-items", "is-loading", "error", "onLoadMore"])
85
122
  ]),
86
123
  aside: g(() => [
87
- h(F, {
124
+ y(G, {
88
125
  class: "sv-customer-overview__wallet-balances",
89
- "has-error": e(i).apiStatus.value === e(L).Failed,
90
- "is-loading": e(u),
126
+ "has-error": e(m).apiStatus.value === e(T).Failed,
127
+ "is-loading": e(p),
91
128
  "wallet-balances": _.value,
92
129
  "show-top-up-button": "",
93
- customer: e(t).customer.value,
94
- "payment-methods": e(n).items.value,
95
- subscriptions: e(r).items.value,
130
+ customer: e(r).customer.value,
131
+ "payment-methods": e(a).items.value,
132
+ subscriptions: e(n).items.value,
96
133
  onTopUpCharged: S,
97
134
  onAutoTopUpSaved: S,
98
135
  onAutoTopUpCancelled: S,
99
- onPaymentMethodStored: A
136
+ onPaymentMethodStored: B
100
137
  }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
101
- h(x, {
138
+ y(R, {
102
139
  class: "sv-customer-overview__payment-methods",
103
- configuration: a.configuration,
104
- "is-loading": e(u),
105
- "payment-methods": p.value
140
+ configuration: s.configuration,
141
+ "is-loading": e(p),
142
+ "payment-methods": L.value
106
143
  }, null, 8, ["configuration", "is-loading", "payment-methods"]),
107
- e(t).customer.value ? (v(), f(U, {
144
+ e(r).customer.value ? (d(), v(W, {
108
145
  key: 0,
109
146
  class: "sv-customer-overview__billing-information",
110
- "is-loading": e(u),
111
- customer: e(t).customer.value
112
- }, null, 8, ["is-loading", "customer"])) : b("", !0)
147
+ "is-loading": e(p),
148
+ customer: e(r).customer.value
149
+ }, null, 8, ["is-loading", "customer"])) : b("", !0),
150
+ e(w).hasShippedSubscription.value ? (d(), v(e(u), {
151
+ key: 1,
152
+ class: "sv-customer-overview__shipping-addresses",
153
+ "is-loading": e(p),
154
+ "customer-id": e(t),
155
+ customer: e(r).customer.value
156
+ }, null, 8, ["is-loading", "customer-id", "customer"])) : b("", !0)
113
157
  ]),
114
158
  _: 1
115
159
  }));
116
160
  }
117
- }), J = /* @__PURE__ */ C({
161
+ }), se = /* @__PURE__ */ O({
118
162
  __name: "CustomerOverview.entry",
119
163
  props: {
164
+ portalToken: { type: Object },
120
165
  environment: { type: String },
121
166
  locale: { type: String },
122
167
  dateLocale: { type: String },
@@ -133,24 +178,24 @@ const q = 2, G = /* @__PURE__ */ C({
133
178
  branding: { type: Object },
134
179
  configuration: { type: Object }
135
180
  },
136
- setup(a) {
137
- const l = V("customer-overview");
138
- return (m, o) => (v(), f(e(R), {
139
- entry: m.$props,
140
- "component-name": e(l),
181
+ setup(s) {
182
+ const u = Z("customer-overview");
183
+ return (c, i) => (d(), v(e(X), {
184
+ entry: c.$props,
185
+ "component-name": e(u),
141
186
  "allowed-portal-types": ["CUSTOMER"],
142
- onError: o[0] || (o[0] = (t) => m.$emit("error", t))
187
+ onError: i[0] || (i[0] = (t) => c.$emit("error", t))
143
188
  }, {
144
189
  default: g(() => [
145
- h(G, { configuration: a.configuration }, null, 8, ["configuration"])
190
+ y(oe, { configuration: s.configuration }, null, 8, ["configuration"])
146
191
  ]),
147
192
  _: 1
148
193
  }, 8, ["entry", "component-name"]));
149
194
  }
150
- }), { define: pe } = H(
151
- J,
195
+ }), { define: be } = q(
196
+ se,
152
197
  "customer-overview"
153
198
  );
154
199
  export {
155
- pe as defineSolvimonCustomerOverview
200
+ be as defineSolvimonCustomerOverview
156
201
  };