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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,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-BHbanjR0.mjs";
3
+ import { a as f } from "./customElements-d7Bhfqi_.mjs";
4
+ import { _ as u } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.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-CWIVt5q9.mjs";
3
+ import { a as l } from "./customElements-d7Bhfqi_.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";
1
+ import { u as ie } from "./pricingPlanScheduleOverrides-GON_34ep.mjs";
2
+ import { a as te, d as ae } from "./customElements-d7Bhfqi_.mjs";
3
+ import { g as oe } from "./pricingItem.es-AYq_hYeD.mjs";
4
4
  import { f as M } from "./formatting.es-RclXHhKo.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-3ACRco55.mjs";
7
+ import { _ as he } from "./FormMessage.vue.es-CQ64C8dt.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-DayNZhPh.mjs";
10
+ import { _ as Y } from "./IconButton.vue.es-BXzwMvVk.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-C6J8C7JS.mjs";
3
+ import { _ as E } from "./RadioGroupExtended.vue.es-hDmUAKIA.mjs";
4
+ import { _ as U } from "./Section.vue.es-CwKTCeZ1.mjs";
5
+ import { S as C } from "./index.es-BEZ2mumY.mjs";
6
+ import { d as S, a as G } from "./customElements-d7Bhfqi_.mjs";
7
+ import { f as R } from "./formatting.es-RclXHhKo.mjs";
8
+ import { g as B } from "./pricingItem.es-AYq_hYeD.mjs";
9
+ import { g as D } from "./addonQuantity-BvoYTajN.mjs";
10
+ import { g as F } from "./pricing-CBJT8C6L.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-3ACRco55.mjs";
4
+ import { d as w } from "./customElements-d7Bhfqi_.mjs";
5
+ import { _ as F } from "./Alert.vue.es-xhsk_7Gn.mjs";
6
+ import { _ as G } from "./FormMessage.vue.es-CQ64C8dt.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"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, openBlock as n, createElementBlock as r, createBlock as i, unref as c, withCtx as o, renderSlot as a, createCommentVNode as l, resolveDynamicComponent as m, createVNode as u, createSlots as f, createTextVNode as g, toDisplayString as h, createElementVNode as y, normalizeClass as B } from "vue";
2
- import { d as k } from "./customElements-DK4GKNJG.mjs";
2
+ import { d as k } from "./customElements-d7Bhfqi_.mjs";
3
3
  const $ = { class: "flex items-center gap-4" }, v = { key: 1 }, C = /* @__PURE__ */ s({
4
4
  __name: "SectionTitle",
5
5
  setup(e) {
@@ -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-BHbanjR0.mjs";
3
+ import { a as w, d as M } from "./customElements-d7Bhfqi_.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-BZQLHnOO.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-d7Bhfqi_.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-Dw7IEdxg.mjs";
7
+ import { r as ee } from "./randomUuid-BE_IQ-aq.mjs";
8
+ import { t as ae } from "./useShippingAddresses-TXVeGFPm.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-BHbanjR0.mjs";
3
+ import { _ as U } from "./ErrorNotification.vue.es-CWIVt5q9.mjs";
4
+ import { _ as X } from "./Section.vue.es-CwKTCeZ1.mjs";
5
+ import { a as Y, e as Z, d as ee } from "./customElements-d7Bhfqi_.mjs";
6
+ import { M as se } from "./Modal.vue.es-CDjfZDDx.mjs";
7
+ import { u as ae, _ as te, a as de } from "./CustomerShippingAddresses-C0c-4D2W.mjs";
8
+ import { _ as ie } from "./ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs";
9
+ import { _ as oe } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs";
10
+ import { _ as ne } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.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
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as T, createPropsRestProxy as P, computed as m, openBlock as f, createBlock as v, unref as K, mergeProps as U, withCtx as d, createTextVNode as E, toDisplayString as x, useModel as j, ref as F, onMounted as H, watch as L, createSlots as G, createVNode as p, normalizeClass as w, createElementVNode as V, withKeys as N, withModifiers as C, createCommentVNode as B, renderSlot as J, mergeModels as $ } from "vue";
2
- import { _ as k } from "./IconButton.vue.es-D8DtBW9i.mjs";
3
- import { _ as O } from "./Input.vue.es-BLyHcmu4.mjs";
4
- import { d as R } from "./customElements-DK4GKNJG.mjs";
5
- import { _ as Q } from "./Chip.vue.es-Dxx_0dte.mjs";
2
+ import { _ as k } from "./IconButton.vue.es-BXzwMvVk.mjs";
3
+ import { _ as O } from "./Input.vue.es-CxiwRZYs.mjs";
4
+ import { d as R } from "./customElements-d7Bhfqi_.mjs";
5
+ import { _ as Q } from "./Chip.vue.es-Dc6-PjEn.mjs";
6
6
  const W = /* @__PURE__ */ T({
7
7
  __name: "DeltaChip",
8
8
  props: {
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs";
2
+ export {
3
+ f as default
4
+ };