@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,7 +1,7 @@
1
1
  import { defineComponent as s, openBlock as l, createBlock as c, withCtx as e, createVNode as d, unref as t, createTextVNode as n, toDisplayString as r } from "vue";
2
- import { _ as p } from "./Button.vue.es-j7iYlqtJ.mjs";
3
- import { a as f } from "./customElements-DK4GKNJG.mjs";
4
- import { _ as u } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
2
+ import { _ as p } from "./Button.vue.es-CW7XfMBF.mjs";
3
+ import { a as f } from "./customElements-B8c354Nu.mjs";
4
+ import { _ as u } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs";
5
5
  const g = /* @__PURE__ */ s({
6
6
  __name: "PortalLinkUnverified",
7
7
  emits: ["retry"],
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, openBlock as a, createBlock as n, unref as e } from "vue";
2
- import { _ as i } from "./ErrorNotification.vue.es-F068p7PY.mjs";
3
- import { a as l } from "./customElements-DK4GKNJG.mjs";
2
+ import { _ as i } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
3
+ import { a as l } from "./customElements-B8c354Nu.mjs";
4
4
  const _ = /* @__PURE__ */ o({
5
5
  __name: "PortalNotAvailable",
6
6
  setup(s) {
@@ -1,13 +1,13 @@
1
- import { u as ie } from "./useTimePeriod.es-BUorDLVK.mjs";
2
- import { a as te, d as ae } from "./customElements-DK4GKNJG.mjs";
3
- import { g as oe } from "./pricingItem.es-bCPArbTa.mjs";
4
- import { f as M } from "./formatting.es-RclXHhKo.mjs";
1
+ import { u as ie } from "./pricingPlanScheduleOverrides-CGm_-jJq.mjs";
2
+ import { a as te, d as ae } from "./customElements-B8c354Nu.mjs";
3
+ import { g as oe } from "./pricingItem.es-BafitMMY.mjs";
4
+ import { f as M } from "./formatting.es-DlJEzreG.mjs";
5
5
  import { computed as p, defineComponent as $, ref as le, onMounted as se, watch as Z, openBlock as g, createElementBlock as R, renderSlot as z, useModel as S, useTemplateRef as de, toRefs as ue, nextTick as pe, Fragment as me, createElementVNode as C, mergeProps as V, unref as u, createBlock as x, createSlots as ge, withCtx as _, createTextVNode as ee, toDisplayString as ne, createCommentVNode as k, normalizeClass as P, withDirectives as ce, vModelText as fe, createVNode as re, mergeModels as I } from "vue";
6
- import { u as be, _ as ve } from "./Label.vue.es-es7ZUBSP.mjs";
7
- import { _ as he } from "./FormMessage.vue.es-CwMQpIAW.mjs";
6
+ import { u as be, _ as ve } from "./Label.vue.es-CB6G8Krh.mjs";
7
+ import { _ as he } from "./FormMessage.vue.es-MrzQoSae.mjs";
8
8
  import { g as ye } from "./cn.es-B8acFrov.mjs";
9
- import { i as Q } from "./useService-BwzIBIRp.mjs";
10
- import { _ as Y } from "./IconButton.vue.es-D8DtBW9i.mjs";
9
+ import { i as Q } from "./useService-2aOFBTxU.mjs";
10
+ import { _ as Y } from "./IconButton.vue.es-CpQbFw0x.mjs";
11
11
  function Oe({
12
12
  currency: e,
13
13
  billingPeriod: r
@@ -1,12 +1,13 @@
1
1
  import { defineComponent as O, openBlock as f, createElementBlock as $, createElementVNode as v, createVNode as P, unref as p, withCtx as b, renderSlot as V, useModel as x, toRef as M, computed as g, createBlock as _, createTextVNode as N, toDisplayString as I, mergeModels as T } from "vue";
2
- import { u as k, _ as A } from "./PricingGroupRangeInput.vue.es-Srq_3cga.mjs";
3
- import { _ as E } from "./RadioGroupExtended.vue.es-BbBMDf6l.mjs";
4
- import { _ as U } from "./Section.vue.es-Oqn1wGPZ.mjs";
5
- import { g as C, S as G } from "./addonQuantity-CCVaA3e-.mjs";
6
- import { d as S, a as R } from "./customElements-DK4GKNJG.mjs";
7
- import { f as B } from "./formatting.es-RclXHhKo.mjs";
8
- import { g as D } from "./pricingItem.es-bCPArbTa.mjs";
9
- import { g as F } from "./pricing-CEaZGgKe.mjs";
2
+ import { u as k, _ as A } from "./PricingGroupRangeInput.vue.es-oHD-IT12.mjs";
3
+ import { _ as E } from "./RadioGroupExtended.vue.es-DsShmkKZ.mjs";
4
+ import { _ as U } from "./Section.vue.es-DYmEtgBj.mjs";
5
+ import { S as C } from "./index.es-Bv55VtdE.mjs";
6
+ import { d as S, a as G } from "./customElements-B8c354Nu.mjs";
7
+ import { f as R } from "./formatting.es-DlJEzreG.mjs";
8
+ import { g as B } from "./pricingItem.es-BafitMMY.mjs";
9
+ import { g as D } from "./addonQuantity-D3bGVqjL.mjs";
10
+ import { g as F } from "./pricing-Y-7ELzN-.mjs";
10
11
  import { u as H } from "./useViewport-psZejz_H.mjs";
11
12
  const W = { class: "flex gap-4 border-l-2 border-primary-600 px-2" }, X = { class: "grow" }, j = /* @__PURE__ */ O({
12
13
  __name: "PricingGroupTitle",
@@ -43,20 +44,20 @@ function q({
43
44
  currency: u,
44
45
  billingPeriod: s
45
46
  }) {
46
- const { $t: a } = R(), { renderPricingForPricingItem: y } = k({ currency: u, billingPeriod: s }), m = (t) => {
47
+ const { $t: a } = G(), { renderPricingForPricingItem: y } = k({ currency: u, billingPeriod: s }), m = (t) => {
47
48
  var i, d, c;
48
- const n = D({
49
+ const n = B({
49
50
  pricingItem: t,
50
51
  currency: u.value,
51
52
  billingPeriod: s.value
52
53
  }), o = (c = (d = (i = n == null ? void 0 : n.details) == null ? void 0 : i.bands) == null ? void 0 : d[0]) == null ? void 0 : c.amount;
53
- return C(t, n) === "units" && o ? a(
54
+ return D(t, n) === "units" && o ? a(
54
55
  {
55
56
  defaultMessage: "{amount} per unit, one-time",
56
57
  id: "units.price_per_unit_one_time",
57
58
  description: "The price per unit label for a one-off flat item, which is charged once rather than every period"
58
59
  },
59
- { amount: B(o) }
60
+ { amount: R(o) }
60
61
  ) : y({ pricingItem: t });
61
62
  };
62
63
  return { describePricing: (t) => {
@@ -88,7 +89,7 @@ function q({
88
89
  });
89
90
  } };
90
91
  }
91
- const z = { class: "p-1" }, J = { class: "pt-1" }, w = 3, K = 6, se = /* @__PURE__ */ O({
92
+ const z = { class: "p-1" }, J = { class: "pt-1" }, w = 3, K = 6, ae = /* @__PURE__ */ O({
92
93
  __name: "PricingGroupSingleEditor",
93
94
  props: /* @__PURE__ */ T({
94
95
  modelValue: { type: Array },
@@ -149,7 +150,7 @@ const z = { class: "p-1" }, J = { class: "pt-1" }, w = 3, K = 6, se = /* @__PURE
149
150
  options: d(),
150
151
  direction: p(m) ? "column" : "row",
151
152
  "show-radio": !1
152
- }, null, 8, ["modelValue", "options", "direction"])) : i.value.length <= K ? (f(), _(p(G), {
153
+ }, null, 8, ["modelValue", "options", "direction"])) : i.value.length <= K ? (f(), _(p(C), {
153
154
  key: 1,
154
155
  "single-model-value": o.value,
155
156
  "onUpdate:singleModelValue": r[1] || (r[1] = (l) => o.value = l),
@@ -171,7 +172,7 @@ const z = { class: "p-1" }, J = { class: "pt-1" }, w = 3, K = 6, se = /* @__PURE
171
172
  }
172
173
  });
173
174
  export {
174
- se as _,
175
+ ae as _,
175
176
  j as a,
176
177
  q as u
177
178
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as S, computed as h, openBlock as s, createElementBlock as m, normalizeClass as f, createBlock as b, unref as r, createSlots as R, withCtx as t, createTextVNode as g, toDisplayString as y, renderSlot as o, createCommentVNode as n, createElementVNode as v, normalizeStyle as q, Fragment as p, renderList as D, withDirectives as E, mergeProps as N, isRef as K, vModelRadio as P, createVNode as x } from "vue";
2
- import { u as T } from "./index.es-BrVTOW5D.mjs";
3
- import { u as z, _ as M } from "./Label.vue.es-es7ZUBSP.mjs";
4
- import { d as w } from "./customElements-DK4GKNJG.mjs";
5
- import { _ as F } from "./Alert.vue.es-ZPG49yR_.mjs";
6
- import { _ as G } from "./FormMessage.vue.es-CwMQpIAW.mjs";
2
+ import { u as T } from "./index.es-C7J3WGGo.mjs";
3
+ import { u as z, _ as M } from "./Label.vue.es-CB6G8Krh.mjs";
4
+ import { d as w } from "./customElements-B8c354Nu.mjs";
5
+ import { _ as F } from "./Alert.vue.es-DHJpiSdR.mjs";
6
+ import { _ as G } from "./FormMessage.vue.es-MrzQoSae.mjs";
7
7
  const I = ["disabled"], L = ["aria-label"], U = ["tabindex", "data-testid", "for", "aria-label", "onKeydown"], j = ["id", "disabled", "value", "name", "aria-checked", "aria-describedby"], A = {
8
8
  key: 1,
9
9
  class: "mt-2 text-sm text-secondary"
@@ -0,0 +1,88 @@
1
+ import { defineComponent as f, openBlock as o, createElementBlock as c, createBlock as r, unref as g, withCtx as n, renderSlot as a, createCommentVNode as l, resolveDynamicComponent as v, createVNode as k, createSlots as B, createTextVNode as d, toDisplayString as u, normalizeClass as m, createElementVNode as $ } from "vue";
2
+ import { d as y } from "./customElements-B8c354Nu.mjs";
3
+ const C = { class: "flex items-center gap-4" }, S = { key: 1 }, b = /* @__PURE__ */ f({
4
+ __name: "SectionTitle",
5
+ setup(e) {
6
+ return (t, h) => (o(), c("div", C, [
7
+ t.$slots.default ? (o(), r(g(y), {
8
+ key: 0,
9
+ tag: "h2",
10
+ variant: "heading-3",
11
+ class: "grow"
12
+ }, {
13
+ default: n(() => [
14
+ a(t.$slots, "default")
15
+ ]),
16
+ _: 3
17
+ })) : l("", !0),
18
+ t.$slots.right ? (o(), c("div", S, [
19
+ a(t.$slots, "right")
20
+ ])) : l("", !0)
21
+ ]));
22
+ }
23
+ }), V = /* @__PURE__ */ f({
24
+ __name: "Section",
25
+ props: {
26
+ contentClasses: {},
27
+ contentBackground: { default: "gray" },
28
+ title: {},
29
+ description: {},
30
+ noSpacing: { type: Boolean },
31
+ hasError: { type: Boolean },
32
+ noBorder: { type: Boolean, default: !1 }
33
+ },
34
+ setup(e) {
35
+ return (t, h) => (o(), r(v(e.title ? "section" : "div"), null, {
36
+ default: n(() => {
37
+ var s, i;
38
+ return [
39
+ k(b, null, B({ _: 2 }, [
40
+ e.title ? {
41
+ name: "default",
42
+ fn: n(() => [
43
+ d(u(e.title), 1)
44
+ ]),
45
+ key: "0"
46
+ } : void 0,
47
+ t.$slots.right ? {
48
+ name: "right",
49
+ fn: n(() => [
50
+ a(t.$slots, "right")
51
+ ]),
52
+ key: "1"
53
+ } : void 0
54
+ ]), 1024),
55
+ (s = e.description) != null && s.content ? (o(), r(g(y), {
56
+ key: 0,
57
+ variant: "body-xs",
58
+ color: "secondary",
59
+ "no-spacing": "",
60
+ class: m(e.description.classes)
61
+ }, {
62
+ default: n(() => [
63
+ d(u(e.description.content), 1)
64
+ ]),
65
+ _: 1
66
+ }, 8, ["class"])) : l("", !0),
67
+ $("div", {
68
+ class: m({
69
+ "rounded border": !e.noBorder,
70
+ "p-3 py-2": !e.noSpacing,
71
+ "bg-gray-50/50": e.contentBackground === "gray",
72
+ "mt-1 md:mt-2": !!e.title || !!((i = e.description) != null && i.content),
73
+ [e.contentClasses ?? ""]: !!e.contentClasses,
74
+ "border-red-600": e.hasError,
75
+ "border-gray-100": !e.hasError
76
+ })
77
+ }, [
78
+ a(t.$slots, "default")
79
+ ], 2)
80
+ ];
81
+ }),
82
+ _: 3
83
+ }));
84
+ }
85
+ });
86
+ export {
87
+ V as _
88
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, computed as c, openBlock as r, createElementBlock as l, createElementVNode as i, createVNode as p, unref as v, withCtx as g, toDisplayString as d, createTextVNode as f, createCommentVNode as _ } from "vue";
2
- import { a as V } from "./Button.vue.es-j7iYlqtJ.mjs";
3
- import { a as w, d as M } from "./customElements-DK4GKNJG.mjs";
2
+ import { a as V } from "./Button.vue.es-CW7XfMBF.mjs";
3
+ import { a as w, d as M } from "./customElements-B8c354Nu.mjs";
4
4
  const x = '<svg xmlns="http://www.w3.org/2000/svg" width="40" height="15" fill="none" viewBox="0 0 40 15"><path fill="currentColor" d="M.049 2.917h5.845c.646 0 1.17.522 1.17 1.166v5.834H1.217c-.646 0-1.17-.522-1.17-1.167V5.833h2.924v2.334H4.14v-3.5H.049zm32.735 0v7h2.922v-5.25h1.17v5.25h2.922V4.083c0-.644-.523-1.166-1.169-1.166zm-16.367 9.916h5.845c.646 0 1.17-.522 1.17-1.166v-8.75h-2.924v5.25H19.34v-5.25h-2.922V8.75c0 .645.523 1.167 1.169 1.167h2.922v1.166h-4.091zm15.197-2.916H25.77c-.646 0-1.17-.522-1.17-1.167V2.917h5.846c.646 0 1.17.522 1.17 1.166V7h-2.923V4.667h-1.17v3.5h4.092zM15.248 0v9.917H9.402c-.646 0-1.17-.522-1.17-1.167V4.083c0-.644.524-1.166 1.17-1.166h1.754v5.25h1.169V0z"/></svg>', b = '<svg xmlns="http://www.w3.org/2000/svg" width="36" height="15" viewBox="0 0 36 15"><path d="M35.996 7.746c0-2.559-1.238-4.578-3.61-4.578-2.378 0-3.816 2.02-3.816 4.559 0 3.011 1.7 4.53 4.137 4.53 1.191 0 2.09-.269 2.77-.648v-2c-.68.34-1.457.547-2.45.547-.968 0-1.828-.34-1.937-1.52h4.887c0-.128.02-.648.02-.89m-4.937-.95c0-1.128.691-1.597 1.32-1.597.61 0 1.258.469 1.258 1.598ZM24.707 3.168c-.977 0-1.61.46-1.957.781l-.133-.62h-2.199v11.66l2.5-.532.012-2.828c.36.258.89.629 1.77.629 1.788 0 3.417-1.442 3.417-4.61-.008-2.898-1.66-4.48-3.41-4.48m-.598 6.89c-.59 0-.941-.21-1.18-.472l-.011-3.707c.262-.29.621-.492 1.191-.492.91 0 1.54 1.02 1.54 2.332 0 1.34-.622 2.34-1.54 2.34M16.98 2.578l2.508-.539V.008L16.98.539ZM16.98 3.34h2.508v8.746H16.98ZM14.29 4.078l-.161-.738h-2.16v8.746h2.5v-5.93c.59-.77 1.59-.629 1.898-.52V3.34c-.316-.121-1.488-.34-2.078.738M9.29 1.168l-2.438.52-.012 8.011c0 1.48 1.11 2.57 2.59 2.57.82 0 1.418-.152 1.75-.332v-2.03c-.32.132-1.899.59-1.899-.887V5.469h1.899v-2.13H9.28ZM2.531 5.879c0-.39.32-.54.848-.54a5.56 5.56 0 0 1 2.48.638V3.629a6.55 6.55 0 0 0-2.48-.461C1.352 3.168 0 4.227 0 6c0 2.758 3.8 2.316 3.8 3.508 0 .46-.402.61-.96.61-.828 0-1.89-.34-2.73-.802V11.7c.93.399 1.87.57 2.73.57 2.078 0 3.512-1.03 3.512-2.82-.012-2.98-3.82-2.453-3.82-3.57m0 0" style="stroke:none;fill-rule:evenodd;fill:currentColor;fill-opacity:1"/></svg>', H = { class: "flex justify-around" }, S = { class: "flex items-center gap-0.5" }, k = ["aria-label", "innerHTML"], N = /* @__PURE__ */ y({
5
5
  __name: "SecurePaymentsKPI",
6
6
  props: {
@@ -0,0 +1,144 @@
1
+ import { defineComponent as x, ref as R, computed as u, openBlock as L, createElementBlock as k, createBlock as z, unref as s, isRef as F, createCommentVNode as q, createVNode as M } from "vue";
2
+ import { f as B, a as G, u as H, r as T } from "./formControl-C18sw44K.mjs";
3
+ import { i as U, a as j } from "./typeGuards.es-B4XMtlkM.mjs";
4
+ import { g as w } from "./customer.es-DQKl6wFt.mjs";
5
+ import { a as D } from "./customElements-B8c354Nu.mjs";
6
+ import { i as A, g as E, u as Z, a as J, s as K, b as Q, t as W, _ as X, c as Y } from "./useAddressFormats-CtE4QaVU.mjs";
7
+ import { r as ee } from "./randomUuid-BE_IQ-aq.mjs";
8
+ import { t as ae } from "./useShippingAddresses-BvThNpez.mjs";
9
+ const se = ["disabled"], me = /* @__PURE__ */ x({
10
+ __name: "ShippingAddressForm",
11
+ props: {
12
+ customer: { type: Object },
13
+ address: { type: Object },
14
+ disabled: { type: Boolean }
15
+ },
16
+ setup(y, { expose: I }) {
17
+ const d = y, { $t: l } = D(), i = d.customer, c = ((e) => e && A(e) ? e : void 0)(
18
+ w(i)
19
+ ), P = () => {
20
+ var e, r, a, t, p;
21
+ return {
22
+ type: i.type,
23
+ email: i.email,
24
+ country: c,
25
+ shippingCountry: c,
26
+ // An organization is shipped to under its legal name; a person under their own.
27
+ ...j(i) && { companyLegalName: (e = i.organization) == null ? void 0 : e.legal_name },
28
+ ...U(i) && {
29
+ shippingFirstName: (a = (r = i.individual) == null ? void 0 : r.name) == null ? void 0 : a.first_name,
30
+ shippingLastName: (p = (t = i.individual) == null ? void 0 : t.name) == null ? void 0 : p.last_name
31
+ }
32
+ };
33
+ }, $ = ({
34
+ recipient: e = {},
35
+ ...r
36
+ }) => {
37
+ var p, _, v, N, b, C;
38
+ const a = ae(r.address), t = A(a.country) ? a.country : c;
39
+ return {
40
+ type: e.type ?? i.type,
41
+ email: e.email || i.email,
42
+ country: t,
43
+ shippingCountry: t,
44
+ companyLegalName: (p = e.organization) == null ? void 0 : p.company_name,
45
+ shippingAttentionName: ((_ = e.organization) == null ? void 0 : _.attention_name) ?? void 0,
46
+ shippingFirstName: (N = (v = e.individual) == null ? void 0 : v.name) == null ? void 0 : N.first_name,
47
+ shippingLastName: (C = (b = e.individual) == null ? void 0 : b.name) == null ? void 0 : C.last_name,
48
+ shippingAddressLine1: a.line1,
49
+ shippingAddressLine2: a.line2,
50
+ shippingPostalCode: a.postal_code,
51
+ shippingCity: a.city,
52
+ shippingState: a.state,
53
+ shippingPhoneNumber: e.phone_number || void 0
54
+ };
55
+ }, o = R(
56
+ E({
57
+ ...d.address ? $(d.address) : P(),
58
+ billingAddressSameAsShipping: !0
59
+ })
60
+ ), { formatOf: S } = Z({
61
+ isNeeded: () => !0,
62
+ countries: [() => o.value.shippingCountry]
63
+ }), m = u(() => S(o.value.shippingCountry)), g = u(() => o.value.type === "ORGANIZATION"), f = B(o, "companyLegalName", G), O = u(() => [
64
+ ...J("SHIPPING", o.value.shippingCountry, m.value),
65
+ "shippingCountry",
66
+ "shippingPhoneNumber",
67
+ ...g.value ? [] : ["shippingLastName"]
68
+ ]), h = (e) => O.value.includes(e), n = H(
69
+ u(() => ({
70
+ ...Q("SHIPPING", () => m.value, h),
71
+ ...K(h),
72
+ companyLegalName: { required: T(() => g.value) }
73
+ })),
74
+ o
75
+ ), V = (e) => h(e) ? "" : " " + l({
76
+ defaultMessage: "(optional)",
77
+ id: "checkout.optional_suffix.label",
78
+ description: "The suffix for optional fields in the checkout form"
79
+ });
80
+ return I({
81
+ /**
82
+ * Checks the form and hands back the address to store, or nothing while something is missing —
83
+ * the fields say what. Every address gets a fresh reference, since the API keeps it unique per
84
+ * customer, and an edit is stored as a new address next to the one it replaces.
85
+ */
86
+ submit: async () => {
87
+ if (await n.value.$validate())
88
+ return {
89
+ ...W(o.value, ee(), m.value),
90
+ customer_id: d.customer.id
91
+ };
92
+ }
93
+ }), (e, r) => (L(), k("fieldset", {
94
+ class: "sv-shipping-address-form__fields grid grid-cols-1 gap-2",
95
+ disabled: y.disabled
96
+ }, [
97
+ g.value ? (L(), z(X, {
98
+ key: 0,
99
+ modelValue: s(f),
100
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => F(f) ? f.value = a : null),
101
+ name: "shipping_company_name",
102
+ class: "sv-shipping-address-form__company-name",
103
+ autocomplete: "shipping organization",
104
+ label: s(l)({
105
+ defaultMessage: "Company name",
106
+ id: "shipping_address_form.company_name.label",
107
+ description: "Label of the name of the company a shipping address is for"
108
+ }),
109
+ placeholder: s(l)({
110
+ defaultMessage: "Company name",
111
+ id: "shipping_address_form.company_name.placeholder",
112
+ description: "Placeholder of the name of the company a shipping address is for"
113
+ }),
114
+ error: s(n).companyLegalName.$errors
115
+ }, null, 8, ["modelValue", "label", "placeholder", "error"])) : q("", !0),
116
+ M(Y, {
117
+ modelValue: o.value,
118
+ "onUpdate:modelValue": r[1] || (r[1] = (a) => o.value = a),
119
+ variant: "SHIPPING",
120
+ "with-country": "",
121
+ "country-before-address": "",
122
+ "country-label": s(l)({
123
+ defaultMessage: "Country",
124
+ id: "shipping_address_form.country.label",
125
+ description: "Label of the country of a shipping address"
126
+ }),
127
+ "get-optional-suffix": V,
128
+ format: m.value,
129
+ errors: {
130
+ addressLine1: s(n).shippingAddressLine1.$errors,
131
+ postalCode: s(n).shippingPostalCode.$errors,
132
+ city: s(n).shippingCity.$errors,
133
+ state: s(n).shippingState.$errors,
134
+ country: s(n).shippingCountry.$errors,
135
+ phoneNumber: s(n).shippingPhoneNumber.$errors,
136
+ lastName: s(n).shippingLastName.$errors
137
+ }
138
+ }, null, 8, ["modelValue", "country-label", "format", "errors"])
139
+ ], 8, se));
140
+ }
141
+ });
142
+ export {
143
+ me as _
144
+ };
@@ -0,0 +1,283 @@
1
+ import { defineComponent as K, ref as n, computed as b, watch as q, openBlock as p, createBlock as v, unref as i, createSlots as J, withCtx as o, createElementVNode as T, createCommentVNode as w, createVNode as u, createElementBlock as Q, createTextVNode as E, toDisplayString as y } from "vue";
2
+ import { _ as B } from "./Button.vue.es-CW7XfMBF.mjs";
3
+ import { _ as U } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
4
+ import { _ as X } from "./Section.vue.es-DYmEtgBj.mjs";
5
+ import { a as Y, e as Z, d as ee } from "./customElements-B8c354Nu.mjs";
6
+ import { M as se } from "./Modal.vue.es-CJFTVFSZ.mjs";
7
+ import { u as ae, _ as te, a as de } from "./CustomerShippingAddresses-Bdy4XWjE.mjs";
8
+ import { _ as ie } from "./ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs";
9
+ import { _ as oe } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs";
10
+ import { _ as ne } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs";
11
+ const le = { class: "sv-shipping-addresses-modal grid grid-cols-1 gap-4 pb-4" }, re = { class: "sv-shipping-addresses-modal__list grid grid-cols-1 gap-4" }, ce = { class: "grid grid-cols-1 gap-3" }, pe = {
12
+ key: 0,
13
+ class: "grid grid-cols-1 gap-3"
14
+ }, De = /* @__PURE__ */ K({
15
+ __name: "ShippingAddressesModal",
16
+ props: {
17
+ showModal: { type: Boolean },
18
+ customer: { type: Object },
19
+ addresses: { type: Array },
20
+ isLoading: { type: Boolean },
21
+ start: { type: Object },
22
+ actions: { type: Object }
23
+ },
24
+ emits: ["close"],
25
+ setup(l, { emit: N }) {
26
+ const O = ["LIST", "FORM", "DELETE"], m = l, L = N, { $t: s } = Y(), M = Z(), a = n("LIST"), _ = n("LIST"), r = n(), d = n(!1), g = n(), D = /* @__PURE__ */ new Map(), I = n({}), S = n(), k = n(0), h = b(() => a.value === "ADD" || a.value === "EDIT" ? "FORM" : a.value), P = () => s({
27
+ defaultMessage: "Something went wrong. Please try again.",
28
+ id: "shipping_addresses_modal.error",
29
+ description: "Error shown in the shipping addresses modal when a change cannot be made"
30
+ }), c = (e) => {
31
+ g.value = void 0, r.value = "address" in e ? e.address : void 0, (e.step === "ADD" || e.step === "EDIT") && (k.value += 1), e.step === "EDIT" && (D.has(e.address.id) || D.set(e.address.id, {}), I.value = D.get(e.address.id)), a.value = e.step;
32
+ };
33
+ q(
34
+ () => m.showModal,
35
+ (e) => {
36
+ if (!e) return;
37
+ const t = m.start ?? { step: "LIST" };
38
+ _.value = t.step, c(t);
39
+ },
40
+ { immediate: !0 }
41
+ );
42
+ const A = () => {
43
+ if (_.value === "LIST") {
44
+ c({ step: "LIST" });
45
+ return;
46
+ }
47
+ L("close");
48
+ }, C = async (e, t) => {
49
+ d.value = !0, g.value = void 0;
50
+ try {
51
+ return await e(), !0;
52
+ } catch (f) {
53
+ return t(f), g.value = P(), !1;
54
+ } finally {
55
+ d.value = !1;
56
+ }
57
+ }, V = async () => {
58
+ var R;
59
+ if (d.value) return;
60
+ d.value = !0;
61
+ let e;
62
+ try {
63
+ e = await ((R = S.value) == null ? void 0 : R.submit());
64
+ } finally {
65
+ d.value = !1;
66
+ }
67
+ if (!e) return;
68
+ const t = a.value === "EDIT" ? r.value : void 0;
69
+ await C(
70
+ () => t ? m.actions.replace(t, e, I.value) : m.actions.create(e),
71
+ (H) => M.error(
72
+ "SHIPPING_ADDRESS_SAVE_FAILED",
73
+ "Failed to save the shipping address",
74
+ {},
75
+ H
76
+ )
77
+ ) && A();
78
+ }, x = async () => {
79
+ const e = r.value;
80
+ if (!e || d.value) return;
81
+ await C(
82
+ () => m.actions.remove(e),
83
+ (f) => M.error(
84
+ "SHIPPING_ADDRESS_DELETE_FAILED",
85
+ "Failed to delete the shipping address",
86
+ {},
87
+ f
88
+ )
89
+ ) && A();
90
+ }, { getMenuItems: j } = ae({
91
+ onEdit: (e) => c({ step: "EDIT", address: e }),
92
+ onDelete: (e) => c({ step: "DELETE", address: e })
93
+ }), $ = () => {
94
+ if (!d.value) {
95
+ if (a.value === _.value) {
96
+ L("close");
97
+ return;
98
+ }
99
+ c({ step: "LIST" });
100
+ }
101
+ }, z = () => {
102
+ h.value === "FORM" && V(), h.value === "DELETE" && x();
103
+ }, W = b(() => {
104
+ switch (a.value) {
105
+ case "ADD":
106
+ return s({
107
+ defaultMessage: "Add shipping address",
108
+ id: "shipping_addresses_modal.add.title",
109
+ description: "Title of the shipping addresses modal while a new address is added"
110
+ });
111
+ case "EDIT":
112
+ return s({
113
+ defaultMessage: "Edit shipping address",
114
+ id: "shipping_addresses_modal.edit.title",
115
+ description: "Title of the shipping addresses modal while an address is changed"
116
+ });
117
+ case "DELETE":
118
+ return s({
119
+ defaultMessage: "Delete shipping address",
120
+ id: "shipping_addresses_modal.delete.title",
121
+ description: "Title of the shipping addresses modal while a delete is confirmed"
122
+ });
123
+ default:
124
+ return s({
125
+ defaultMessage: "Shipping addresses",
126
+ id: "shipping_addresses_modal.title",
127
+ description: "Title of the modal that lists the customer shipping addresses"
128
+ });
129
+ }
130
+ }), G = b(() => {
131
+ if (h.value === "FORM")
132
+ return s({
133
+ defaultMessage: "Save address",
134
+ id: "shipping_addresses_modal.save_button.label",
135
+ description: "Label of the button that stores a new or changed shipping address"
136
+ });
137
+ if (h.value === "DELETE")
138
+ return s({
139
+ defaultMessage: "Delete",
140
+ id: "shipping_addresses_modal.delete_button.label",
141
+ description: "Label of the button that confirms deleting a shipping address"
142
+ });
143
+ }), F = b(() => a.value !== _.value ? s({
144
+ defaultMessage: "Back",
145
+ id: "shipping_addresses_modal.back_button.label",
146
+ description: "Label of the button that goes back to the list of shipping addresses"
147
+ }) : a.value === "LIST" ? s({
148
+ defaultMessage: "Close",
149
+ id: "shipping_addresses_modal.close_button.label",
150
+ description: "Label of the button that closes the shipping addresses modal"
151
+ }) : s({
152
+ defaultMessage: "Cancel",
153
+ id: "shipping_addresses_modal.cancel_button.label",
154
+ description: "Label of the button that closes the shipping addresses modal without saving or deleting"
155
+ }));
156
+ return (e, t) => (p(), v(i(se), {
157
+ "no-click-away": "",
158
+ "full-screen-on-mobile": "",
159
+ size: "lg",
160
+ "show-modal": l.showModal,
161
+ title: W.value,
162
+ "confirm-button-text": G.value,
163
+ "cancel-button-text": F.value,
164
+ "is-loading": d.value,
165
+ onConfirm: z,
166
+ onClose: $
167
+ }, J({
168
+ body: o(() => [
169
+ T("div", le, [
170
+ g.value ? (p(), v(i(U), {
171
+ key: 0,
172
+ class: "sv-shipping-addresses-modal__error sv-error",
173
+ title: g.value
174
+ }, null, 8, ["title"])) : w("", !0),
175
+ u(ne, {
176
+ panes: O,
177
+ current: h.value
178
+ }, {
179
+ LIST: o(() => [
180
+ T("div", re, [
181
+ l.addresses.length ? (p(), v(de, {
182
+ key: 0,
183
+ addresses: l.addresses,
184
+ "get-menu-items": i(j)
185
+ }, null, 8, ["addresses", "get-menu-items"])) : l.isLoading ? w("", !0) : (p(), v(oe, {
186
+ key: 1,
187
+ class: "sv-shipping-addresses-modal__empty",
188
+ icon: "home"
189
+ }, {
190
+ title: o(() => [
191
+ E(y(i(s)({
192
+ defaultMessage: "No shipping addresses yet",
193
+ id: "shipping_addresses_modal.empty.title",
194
+ description: "Shown in the shipping addresses modal when the customer has none"
195
+ })), 1)
196
+ ]),
197
+ _: 1
198
+ })),
199
+ u(i(B), {
200
+ class: "sv-action sv-action--secondary sv-action--full-width sv-shipping-addresses-modal__add w-full",
201
+ intent: "secondary",
202
+ "icon-prefix": "add",
203
+ type: "button",
204
+ size: "lg",
205
+ disabled: d.value,
206
+ onClick: t[0] || (t[0] = (f) => c({ step: "ADD" }))
207
+ }, {
208
+ default: o(() => [
209
+ E(y(i(s)({
210
+ defaultMessage: "Add shipping address",
211
+ id: "shipping_addresses_modal.add_button.label",
212
+ description: "Label of the button that moves to the form for a new shipping address"
213
+ })), 1)
214
+ ]),
215
+ _: 1
216
+ }, 8, ["disabled"])
217
+ ])
218
+ ]),
219
+ FORM: o(() => [
220
+ T("div", ce, [
221
+ (p(), v(ie, {
222
+ ref_key: "formRef",
223
+ ref: S,
224
+ key: k.value,
225
+ customer: l.customer,
226
+ address: a.value === "EDIT" ? r.value : void 0,
227
+ disabled: d.value
228
+ }, null, 8, ["customer", "address", "disabled"]))
229
+ ])
230
+ ]),
231
+ DELETE: o(() => [
232
+ r.value ? (p(), Q("div", pe, [
233
+ u(i(ee), {
234
+ variant: "body-sm",
235
+ color: "secondary",
236
+ tag: "p"
237
+ }, {
238
+ default: o(() => [
239
+ E(y(i(s)({
240
+ defaultMessage: "This address will no longer be offered for shipping.",
241
+ id: "shipping_addresses_modal.delete.message",
242
+ description: "Explains what deleting a shipping address does, above the address"
243
+ })), 1)
244
+ ]),
245
+ _: 1
246
+ }),
247
+ u(i(X), { class: "sv-shipping-addresses-modal__pending-delete" }, {
248
+ default: o(() => [
249
+ u(te, { address: r.value }, null, 8, ["address"])
250
+ ]),
251
+ _: 1
252
+ })
253
+ ])) : w("", !0)
254
+ ]),
255
+ _: 1
256
+ }, 8, ["current"])
257
+ ])
258
+ ]),
259
+ _: 2
260
+ }, [
261
+ a.value === "LIST" ? {
262
+ name: "footer",
263
+ fn: o(() => [
264
+ u(i(B), {
265
+ size: "lg",
266
+ intent: "secondary",
267
+ class: "sv-action sv-action--secondary sv-shipping-addresses-modal__close w-full",
268
+ onClick: $
269
+ }, {
270
+ default: o(() => [
271
+ E(y(F.value), 1)
272
+ ]),
273
+ _: 1
274
+ })
275
+ ]),
276
+ key: "0"
277
+ } : void 0
278
+ ]), 1032, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading"]));
279
+ }
280
+ });
281
+ export {
282
+ De as default
283
+ };