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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  5. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  6. package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
  7. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
  9. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  10. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
  11. package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
  12. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  13. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
  14. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  15. package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
  16. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  17. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  18. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
  19. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
  21. package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
  22. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
  23. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  25. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  26. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  27. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  28. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  29. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  30. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  31. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
  32. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
  33. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  34. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  35. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
  36. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
  37. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
  38. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  39. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  40. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  41. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  42. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  43. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  44. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
  45. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
  46. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
  47. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
  48. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  49. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
  50. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  51. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
  52. package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
  53. package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
  54. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  55. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  56. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  57. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
  58. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
  59. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  60. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  61. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
  62. package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
  63. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  64. package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
  65. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
  66. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
  67. package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
  68. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  69. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  70. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
  71. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
  72. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  73. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
  74. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
  75. package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
  76. package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
  77. package/dist/adyen-CHgq2l6n.mjs +99 -0
  78. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  79. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  80. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  81. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  82. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  83. package/dist/components/Invoice/Invoice.mjs +1087 -1019
  84. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  85. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  86. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  87. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  88. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  89. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  90. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  91. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  92. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  93. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  94. package/dist/core/events.types.d.ts +1 -0
  95. package/dist/core/index.mjs +51 -34
  96. package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
  97. package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
  98. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
  99. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
  100. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  101. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  102. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
  103. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
  104. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  105. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  106. package/dist/index.es-Bv55VtdE.mjs +633 -0
  107. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  108. package/dist/index.mjs +37 -33
  109. package/dist/invoices-I7PghcPV.mjs +143 -0
  110. package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
  111. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
  112. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
  113. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
  114. package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
  115. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
  116. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  117. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  118. package/dist/payments-BKoKpoLN.mjs +71 -0
  119. package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
  120. package/dist/pricing-Y-7ELzN-.mjs +42 -0
  121. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  122. package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
  123. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  124. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  125. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  126. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
  127. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  128. package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
  129. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  130. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  131. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  132. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  133. package/dist/subscriptions-B7dNqi1C.mjs +99 -0
  134. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  135. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  136. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  137. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  138. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  139. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  140. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  141. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  142. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  143. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  144. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  145. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  146. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  147. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  151. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  152. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  154. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  157. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  158. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  159. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  160. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  161. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  162. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  167. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  170. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  171. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  172. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  173. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  174. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  175. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  176. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  177. package/dist/types/index.d.ts +5 -1
  178. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  179. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  181. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  182. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  183. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  184. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  185. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  186. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  187. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  188. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  189. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  190. package/dist/types/public/core/action-request.types.d.ts +18 -24
  191. package/dist/types/public/core/events.types.d.ts +99 -0
  192. package/dist/types/public/core/index.d.ts +3 -1
  193. package/dist/types/public/core/types.d.ts +11 -2
  194. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  195. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  196. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  197. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  198. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  199. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  200. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  203. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  204. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  205. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  206. package/dist/types/types/branding.d.ts +15 -0
  207. package/dist/types/types/checkoutSession.d.ts +199 -0
  208. package/dist/types/types/errors.d.ts +2 -0
  209. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  210. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  211. package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
  212. package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
  213. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  214. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  215. package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
  216. package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
  217. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
  218. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  219. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  220. package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  221. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  222. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  223. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  224. package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
  225. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  226. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
  227. package/dist/usePortal-DuLR5Mid.mjs +14 -0
  228. package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
  229. package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
  230. package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
  231. package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
  232. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  233. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  234. package/package.json +41 -11
  235. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  236. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  237. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  238. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  239. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  240. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  241. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
  242. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  243. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  244. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  245. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  246. package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
  247. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  248. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  249. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
  250. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  251. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  252. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  253. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  254. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  255. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
  256. package/dist/invoices-DdREPDXV.mjs +0 -123
  257. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  258. package/dist/payments-CKpU1K3t.mjs +0 -68
  259. package/dist/pricing-CEaZGgKe.mjs +0 -29
  260. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  261. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  262. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  263. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  264. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  265. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  266. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  267. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  268. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,136 +0,0 @@
1
- import { defineComponent as v, computed as _, openBlock as s, createBlock as m, unref as t, createSlots as w, withCtx as a, createVNode as c, createTextVNode as p, toDisplayString as h, createCommentVNode as g } from "vue";
2
- import { _ as u } from "./Button.vue.es-j7iYlqtJ.mjs";
3
- import { _ as y } from "./Section.vue.es-Oqn1wGPZ.mjs";
4
- import { a as b, d as k } from "./customElements-DK4GKNJG.mjs";
5
- import { _ as A } from "./PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs";
6
- import { _ as M } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
7
- import { u as B } from "./useActionDispatchProvider-ChAHdwR8.mjs";
8
- import { r as $ } from "./configuration-BytDBAWs.mjs";
9
- const x = /* @__PURE__ */ v({
10
- __name: "CustomerPaymentMethodsBlock",
11
- props: {
12
- paymentMethods: { type: Array },
13
- showViewAllButton: { type: Boolean },
14
- showAddButton: { type: Boolean }
15
- },
16
- emits: ["view-all-payment-methods", "add-payment-method"],
17
- setup(e) {
18
- const l = e, { $t: o } = b(), r = _(() => l.paymentMethods.length > 0);
19
- return (d, i) => (s(), m(t(y), {
20
- class: "sv-payment-methods",
21
- "no-spacing": "",
22
- "no-border": "",
23
- "content-background": "none",
24
- title: t(o)(
25
- {
26
- defaultMessage: "{count, plural, one {Payment method} other {Payment methods}}",
27
- description: "Title for the payment methods block on the customer overview page",
28
- id: "customer_overview.payment_methods.title"
29
- },
30
- { count: String(e.paymentMethods.length) }
31
- )
32
- }, w({
33
- default: a(() => [
34
- r.value ? (s(), m(A, {
35
- key: 0,
36
- "payment-methods": e.paymentMethods
37
- }, null, 8, ["payment-methods"])) : (s(), m(t(y), {
38
- key: 1,
39
- class: "sv-empty-state sv-payment-methods__empty"
40
- }, {
41
- default: a(() => [
42
- c(t(k), {
43
- variant: "body-sm",
44
- color: "subtle",
45
- "no-spacing": "",
46
- class: "sv-payment-methods__empty-message"
47
- }, {
48
- default: a(() => [
49
- p(h(t(o)({
50
- defaultMessage: "Add a payment method for recurring invoice payments.",
51
- description: "Helper text for adding a payment method when no payment methods are configured",
52
- id: "customer_overview.payment_methods_block.add_payment_method_helper_text"
53
- })), 1)
54
- ]),
55
- _: 1
56
- }),
57
- e.showAddButton ? (s(), m(t(u), {
58
- key: 0,
59
- class: "sv-action sv-action--secondary sv-action--full-width sv-payment-methods__add mt-4 w-full",
60
- intent: "secondary",
61
- "icon-prefix": "add",
62
- type: "button",
63
- onClick: i[1] || (i[1] = (n) => d.$emit("add-payment-method"))
64
- }, {
65
- default: a(() => [
66
- p(h(t(o)({
67
- defaultMessage: "Add payment method",
68
- description: "Text for the add payment method button that is shown when no payment methods have been configured",
69
- id: "customer_overview.payment_methods_block.add_payment_method_button_label"
70
- })), 1)
71
- ]),
72
- _: 1
73
- })) : g("", !0)
74
- ]),
75
- _: 1
76
- }))
77
- ]),
78
- _: 2
79
- }, [
80
- e.showViewAllButton ? {
81
- name: "right",
82
- fn: a(() => [
83
- c(t(u), {
84
- size: "xs",
85
- intent: "subtle",
86
- "icon-suffix": "arrow_right_alt",
87
- class: "sv-action sv-action--ghost sv-payment-methods__view-all",
88
- type: "button",
89
- onClick: i[0] || (i[0] = (n) => d.$emit("view-all-payment-methods"))
90
- }, {
91
- default: a(() => [
92
- p(h(t(o)({
93
- defaultMessage: "View all",
94
- id: "customer_overview.payment_methods_block.view_all_payment_methods_link_label",
95
- description: "The link text that links to the overview page of the customer invoices"
96
- })), 1)
97
- ]),
98
- _: 1
99
- })
100
- ]),
101
- key: "0"
102
- } : void 0
103
- ]), 1032, ["title"]));
104
- }
105
- }), O = /* @__PURE__ */ v({
106
- __name: "CustomerPaymentMethods",
107
- props: {
108
- isLoading: { type: Boolean },
109
- paymentMethods: { type: Array },
110
- configuration: { type: Object }
111
- },
112
- setup(e) {
113
- const l = {
114
- showViewAllButton: !0,
115
- showAddButton: !0
116
- }, o = e, r = _(
117
- () => $(l, o.configuration)
118
- ), { dispatchAction: d } = B();
119
- return (i, n) => e.isLoading ? (s(), m(M, {
120
- key: 0,
121
- variant: "section",
122
- class: "sv-payment-methods sv-root sv-component sv-loading h-72"
123
- })) : (s(), m(x, {
124
- key: 1,
125
- class: "sv-payment-methods sv-root sv-component",
126
- "payment-methods": e.paymentMethods,
127
- "show-view-all-button": r.value.showViewAllButton,
128
- "show-add-button": r.value.showAddButton,
129
- onViewAllPaymentMethods: n[0] || (n[0] = (f) => t(d)({ action: "view-all-payment-methods" })),
130
- onAddPaymentMethod: n[1] || (n[1] = (f) => t(d)({ action: "add-payment-method" }))
131
- }, null, 8, ["payment-methods", "show-view-all-button", "show-add-button"]));
132
- }
133
- });
134
- export {
135
- O as _
136
- };
@@ -1,397 +0,0 @@
1
- import { defineComponent as $, computed as I, openBlock as c, createElementBlock as M, createElementVNode as E, createBlock as m, unref as t, withCtx as f, createTextVNode as k, toDisplayString as S, createCommentVNode as y, Fragment as B, renderList as N, createVNode as O, ref as b, toValue as j, defineAsyncComponent as z, watch as U } from "vue";
2
- import { _ as F } from "./Button.vue.es-j7iYlqtJ.mjs";
3
- import { _ as H } from "./ErrorNotification.vue.es-F068p7PY.mjs";
4
- import { _ as P } from "./Section.vue.es-Oqn1wGPZ.mjs";
5
- import { a as T, d as D, c as q, u as R, b as w, e as G } from "./customElements-DK4GKNJG.mjs";
6
- import { _ as W } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
7
- import { b as J } from "./customer.es-DQKl6wFt.mjs";
8
- import { g as Z } from "./getCountryNameByCode.es-BDHua7VM.mjs";
9
- import { _ as K } from "./Chip.vue.es-Dxx_0dte.mjs";
10
- import { a as Q } from "./ContextMenu.vue.es-BJO4U47Q.mjs";
11
- import { _ as x } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
12
- import { w as X } from "./api.es-qgvzNMU-.mjs";
13
- const Y = ({
14
- line1: e,
15
- line2: s,
16
- city: r,
17
- postal_code: n,
18
- state: o,
19
- country: i
20
- }) => ({
21
- line1: e ?? void 0,
22
- line2: s ?? void 0,
23
- city: r ?? void 0,
24
- postal_code: n ?? void 0,
25
- state: o ?? void 0,
26
- country: i
27
- }), ee = { class: "sv-shipping-address flex items-start gap-2" }, se = { class: "sv-shipping-address__content grid grow grid-cols-1 gap-0.5" }, te = /* @__PURE__ */ $({
28
- __name: "ShippingAddressCard",
29
- props: {
30
- address: { type: Object },
31
- menuItems: { type: Array },
32
- showDefault: { type: Boolean },
33
- compact: { type: Boolean }
34
- },
35
- setup(e) {
36
- const s = e, { $t: r } = T(), n = I(() => {
37
- var a, h;
38
- const { individual: i, organization: d } = s.address.recipient ?? {};
39
- return d ? [d.company_name, d.attention_name].filter(Boolean).join(", ") : [(a = i == null ? void 0 : i.name) == null ? void 0 : a.first_name, (h = i == null ? void 0 : i.name) == null ? void 0 : h.last_name].filter(Boolean).join(" ");
40
- }), o = I(() => [
41
- ...J(Y(s.address.address)),
42
- ...s.address.address.country ? [Z(s.address.address.country)] : []
43
- ]);
44
- return (i, d) => {
45
- var a, h;
46
- return c(), M("div", ee, [
47
- E("div", se, [
48
- n.value && !e.compact ? (c(), m(t(D), {
49
- key: 0,
50
- tag: "span",
51
- variant: "body-sm",
52
- weight: "semibold",
53
- class: "sv-shipping-address__recipient"
54
- }, {
55
- default: f(() => [
56
- k(S(n.value), 1)
57
- ]),
58
- _: 1
59
- })) : y("", !0),
60
- (c(!0), M(B, null, N(o.value, (_, A) => (c(), m(t(D), {
61
- key: A,
62
- tag: "span",
63
- variant: "body-sm",
64
- color: e.compact ? void 0 : "secondary",
65
- class: "sv-shipping-address__line"
66
- }, {
67
- default: f(() => [
68
- k(S(_), 1)
69
- ]),
70
- _: 2
71
- }, 1032, ["color"]))), 128)),
72
- (a = e.address.recipient) != null && a.phone_number && !e.compact ? (c(), m(t(D), {
73
- key: 1,
74
- tag: "span",
75
- variant: "body-sm",
76
- color: "secondary",
77
- class: "sv-shipping-address__phone"
78
- }, {
79
- default: f(() => {
80
- var _;
81
- return [
82
- k(S((_ = e.address.recipient) == null ? void 0 : _.phone_number), 1)
83
- ];
84
- }),
85
- _: 1
86
- })) : y("", !0)
87
- ]),
88
- e.showDefault && e.address.is_default ? (c(), m(t(K), {
89
- key: 0,
90
- class: "sv-shipping-address__default",
91
- intent: "info",
92
- size: "sm",
93
- content: t(r)({
94
- defaultMessage: "Default",
95
- id: "shipping_address.default_chip.label",
96
- description: "Marks the shipping address the customer uses by default"
97
- })
98
- }, null, 8, ["content"])) : y("", !0),
99
- (h = e.menuItems) != null && h.length ? (c(), m(t(Q), {
100
- key: 1,
101
- class: "sv-shipping-address__menu",
102
- items: e.menuItems
103
- }, null, 8, ["items"])) : y("", !0)
104
- ]);
105
- };
106
- }
107
- }), ne = /* @__PURE__ */ $({
108
- __name: "ShippingAddressList",
109
- props: {
110
- addresses: { type: Array },
111
- getMenuItems: { type: Function },
112
- compact: { type: Boolean }
113
- },
114
- setup(e) {
115
- return (s, r) => (c(), m(t(P), {
116
- "no-spacing": "",
117
- "content-classes": "divide-y divide-gray-100",
118
- class: "sv-shipping-address-list"
119
- }, {
120
- default: f(() => [
121
- (c(!0), M(B, null, N(e.addresses, (n) => {
122
- var o;
123
- return c(), M("div", {
124
- key: n.id,
125
- class: "sv-shipping-address-list__item px-3 py-2"
126
- }, [
127
- O(te, {
128
- address: n,
129
- "menu-items": (o = e.getMenuItems) == null ? void 0 : o.call(e, n),
130
- compact: e.compact,
131
- "show-default": ""
132
- }, null, 8, ["address", "menu-items", "compact"])
133
- ]);
134
- }), 128))
135
- ]),
136
- _: 1
137
- }));
138
- }
139
- }), ie = 50;
140
- function ae() {
141
- const e = q(), s = R(), r = ["portal", "shipping-addresses"];
142
- function n({
143
- customerId: a
144
- }) {
145
- return e({
146
- url: w(s.apiUrls.config, ...r),
147
- query: X(
148
- { customer_id: a, statuses: ["ACTIVE"] },
149
- { page: 1, pageSize: ie }
150
- ),
151
- isCollection: !0
152
- });
153
- }
154
- function o(a) {
155
- return e({
156
- url: w(s.apiUrls.config, ...r),
157
- data: a,
158
- options: { method: "POST" }
159
- });
160
- }
161
- function i({
162
- shippingAddressId: a,
163
- payload: h
164
- }) {
165
- return e({
166
- url: w(s.apiUrls.config, ...r, a),
167
- data: h,
168
- options: { method: "PATCH" }
169
- });
170
- }
171
- function d({
172
- shippingAddressId: a
173
- }) {
174
- return e({
175
- url: w(s.apiUrls.config, ...r, a, "deprecate"),
176
- options: { method: "POST" }
177
- });
178
- }
179
- return {
180
- getShippingAddresses: n,
181
- createShippingAddress: o,
182
- updateShippingAddress: i,
183
- deleteShippingAddress: d
184
- };
185
- }
186
- const C = ({ reference: e, ...s }) => JSON.stringify(s), oe = (e, s) => +!!s.is_default - +!!e.is_default || (Date.parse(s.created_at ?? "") || 0) - (Date.parse(e.created_at ?? "") || 0);
187
- function re({
188
- customerId: e
189
- }) {
190
- const s = ae(), r = G(), n = b([]), o = b(!1), i = b(), d = async () => {
191
- const u = j(e);
192
- if (u) {
193
- o.value = !0, i.value = void 0;
194
- try {
195
- const l = await s.getShippingAddresses({ customerId: u });
196
- n.value = l.data.filter(({ status: p }) => p === "ACTIVE").sort(oe);
197
- } catch (l) {
198
- r.error(
199
- "SHIPPING_ADDRESSES_LOAD_FAILED",
200
- "Failed to load the shipping addresses",
201
- {},
202
- l
203
- ), i.value = l;
204
- } finally {
205
- o.value = !1;
206
- }
207
- }
208
- }, a = (u) => s.createShippingAddress({ ...u, status: "ACTIVE" });
209
- return {
210
- items: n,
211
- isPending: o,
212
- error: i,
213
- fetchAll: d,
214
- create: async (u) => {
215
- try {
216
- return await a(u);
217
- } finally {
218
- await d();
219
- }
220
- },
221
- replace: async (u, l, p) => {
222
- l = { description: u.description, ...l };
223
- try {
224
- return p.replacement ? p.storedDetails !== C(l) && (p.replacement = await s.updateShippingAddress({
225
- shippingAddressId: p.replacement.id,
226
- payload: {
227
- ...l,
228
- reference: p.replacement.reference ?? l.reference
229
- }
230
- }), p.storedDetails = C(l)) : (p.replacement = await a(l), p.storedDetails = C(l)), await s.deleteShippingAddress({ shippingAddressId: u.id }), p.replacement;
231
- } finally {
232
- await d();
233
- }
234
- },
235
- remove: async (u) => {
236
- await s.deleteShippingAddress({ shippingAddressId: u.id }), await d();
237
- }
238
- };
239
- }
240
- function de({
241
- onEdit: e,
242
- onDelete: s
243
- }) {
244
- const { $t: r } = T();
245
- return { getMenuItems: (o) => [
246
- {
247
- label: r({
248
- defaultMessage: "Edit",
249
- id: "shipping_address.context_menu.edit.label",
250
- description: "Menu option that opens the form to change a shipping address"
251
- }),
252
- onClick: () => e(o)
253
- },
254
- {
255
- label: r({
256
- defaultMessage: "Delete",
257
- id: "shipping_address.context_menu.delete.label",
258
- description: "Menu option that deletes a shipping address"
259
- }),
260
- onClick: () => s(o)
261
- }
262
- ] };
263
- }
264
- const ce = { class: "grid grid-cols-1 gap-2" }, le = 3, pe = /* @__PURE__ */ $({
265
- __name: "CustomerShippingAddresses",
266
- props: {
267
- customerId: { type: String },
268
- customer: { type: Object },
269
- isLoading: { type: Boolean }
270
- },
271
- setup(e) {
272
- const s = z(
273
- () => import("./ShippingAddressesModal-c7nqf4Ny.mjs")
274
- ), r = e, { $t: n } = T(), o = I(() => {
275
- var g;
276
- return r.customerId ?? ((g = r.customer) == null ? void 0 : g.id);
277
- }), i = re({ customerId: o }), { items: d, isPending: a, error: h } = i, _ = I(() => d.value.slice(0, le));
278
- U(
279
- o,
280
- (g) => {
281
- g && i.fetchAll();
282
- },
283
- { immediate: !0 }
284
- );
285
- const A = b(!1), u = b(!1), l = b({ step: "LIST" }), p = (g) => {
286
- l.value = g, A.value = !0, u.value = !0;
287
- }, { getMenuItems: V } = de({
288
- onEdit: (g) => p({ step: "EDIT", address: g }),
289
- onDelete: (g) => p({ step: "DELETE", address: g })
290
- });
291
- return (g, v) => e.isLoading ? (c(), m(x, {
292
- key: 0,
293
- variant: "section",
294
- class: "sv-shipping-addresses sv-root sv-component sv-loading min-h-[100px]"
295
- })) : e.customer ? (c(), m(t(P), {
296
- key: 1,
297
- class: "sv-shipping-addresses sv-root sv-component",
298
- "no-spacing": "",
299
- "no-border": "",
300
- "content-background": "none",
301
- title: t(n)(
302
- {
303
- defaultMessage: "{count, plural, one {Shipping address} other {Shipping addresses}}",
304
- id: "customer_overview.shipping_addresses_block.title",
305
- description: "Title of the block that lists the customer shipping addresses"
306
- },
307
- { count: String(t(d).length) }
308
- )
309
- }, {
310
- right: f(() => [
311
- O(t(F), {
312
- size: "xs",
313
- intent: "subtle",
314
- class: "sv-action sv-action--ghost sv-shipping-addresses__manage",
315
- onClick: v[0] || (v[0] = (L) => p({ step: "LIST" }))
316
- }, {
317
- default: f(() => [
318
- k(S(t(n)({
319
- defaultMessage: "Manage",
320
- id: "customer_overview.shipping_addresses_block.manage_button_label",
321
- description: "Label of the button that opens the modal to manage the customer shipping addresses"
322
- })), 1)
323
- ]),
324
- _: 1
325
- })
326
- ]),
327
- default: f(() => [
328
- E("div", ce, [
329
- t(h) ? (c(), m(t(H), {
330
- key: 0,
331
- class: "sv-shipping-addresses__error sv-error",
332
- title: t(n)({
333
- defaultMessage: "We could not load your shipping addresses.",
334
- id: "customer_overview.shipping_addresses_block.load_error",
335
- description: "Shown in the shipping addresses block when the addresses cannot be loaded"
336
- })
337
- }, null, 8, ["title"])) : t(a) && !t(d).length ? (c(), m(x, {
338
- key: 1,
339
- variant: "section",
340
- class: "min-h-[100px]"
341
- })) : t(d).length ? (c(), m(ne, {
342
- key: 2,
343
- class: "sv-shipping-addresses__list",
344
- addresses: _.value,
345
- "get-menu-items": t(V),
346
- compact: ""
347
- }, null, 8, ["addresses", "get-menu-items"])) : (c(), m(W, {
348
- key: 3,
349
- class: "sv-shipping-addresses__empty",
350
- icon: "home"
351
- }, {
352
- title: f(() => [
353
- k(S(t(n)({
354
- defaultMessage: "No shipping addresses yet",
355
- id: "customer_overview.shipping_addresses_block.empty",
356
- description: "Shown in the shipping addresses block when the customer has no shipping addresses"
357
- })), 1)
358
- ]),
359
- message: f(() => [
360
- E("button", {
361
- type: "button",
362
- class: "sv-action sv-action--link sv-shipping-addresses__add underline",
363
- onClick: v[1] || (v[1] = (L) => p({ step: "ADD" }))
364
- }, S(t(n)({
365
- defaultMessage: "Add shipping address",
366
- id: "customer_overview.shipping_addresses_block.add_button_label",
367
- description: "Label of the link that opens the form for a first shipping address"
368
- })), 1)
369
- ]),
370
- _: 1
371
- }))
372
- ]),
373
- A.value && e.customer ? (c(), m(t(s), {
374
- key: 0,
375
- "show-modal": u.value,
376
- start: l.value,
377
- customer: e.customer,
378
- addresses: t(d),
379
- "is-loading": t(a),
380
- actions: t(i),
381
- onClose: v[2] || (v[2] = (L) => u.value = !1)
382
- }, null, 8, ["show-modal", "start", "customer", "addresses", "is-loading", "actions"])) : y("", !0)
383
- ]),
384
- _: 1
385
- }, 8, ["title"])) : y("", !0);
386
- }
387
- }), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
388
- __proto__: null,
389
- default: pe
390
- }, Symbol.toStringTag, { value: "Module" }));
391
- export {
392
- we as C,
393
- te as _,
394
- ne as a,
395
- Y as t,
396
- de as u
397
- };