@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
@@ -0,0 +1,864 @@
1
+ import { defineComponent as E, computed as k, openBlock as d, createElementBlock as P, createVNode as A, unref as i, withCtx as y, Fragment as N, createTextVNode as M, toDisplayString as $, renderList as B, createBlock as _, useModel as S, ref as R, createElementVNode as T, normalizeClass as j, createCommentVNode as w, mergeModels as z, mergeProps as le, toRef as D, watch as se, isRef as X, renderSlot as oe } from "vue";
2
+ import { _ as F } from "./Section.vue.es-DYmEtgBj.mjs";
3
+ import { a as q, d as O } from "./customElements-B8c354Nu.mjs";
4
+ import { u as G } from "./pricingPlanScheduleOverrides-CGm_-jJq.mjs";
5
+ import { f as Q } from "./formatting.es-DlJEzreG.mjs";
6
+ import { _ as ue } from "./Expand.vue.es-BleuAfDz.mjs";
7
+ import { a as de, _ as H } from "./Button.vue.es-CW7XfMBF.mjs";
8
+ import { _ as Y } from "./StepInput.vue.es-sqA-VSsn.mjs";
9
+ import { d as re, F as ee, e as ce, f as J, s as W, b as me, a as ge } from "./addonQuantity-D3bGVqjL.mjs";
10
+ import { _ as pe } from "./Input.vue.es-Cd55vQri.mjs";
11
+ import { a as K, u as ie, _ as be } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs";
12
+ import { _ as fe } from "./Toggle.vue.es-S2g8WGY_.mjs";
13
+ import { b as te } from "./useCheckoutForm-BhXcmnUi.mjs";
14
+ import { g as ae, a as ve } from "./pricing-Y-7ELzN-.mjs";
15
+ import { a as L } from "./useService-2aOFBTxU.mjs";
16
+ import { j as ye, e as Ve } from "./subscription-DQ5mRp_e.mjs";
17
+ const _e = { class: "grid grid-cols-2 gap-2" }, he = /* @__PURE__ */ E({
18
+ __name: "TieredTableRow",
19
+ props: {
20
+ band: { type: Object },
21
+ previousBand: { type: Object },
22
+ isFirst: { type: Boolean },
23
+ period: { type: Object }
24
+ },
25
+ setup(e) {
26
+ const n = e, { $t: t } = q(), { formatTimePeriod: r } = G(), c = k(() => {
27
+ var b;
28
+ if (n.isFirst)
29
+ return "0";
30
+ if ((b = n.previousBand) != null && b.tier_top_bound && "number" in n.previousBand.tier_top_bound)
31
+ return n.previousBand.tier_top_bound.number;
32
+ }), f = k(() => {
33
+ if (!(!n.band.tier_top_bound || !("number" in n.band.tier_top_bound)))
34
+ return n.band.tier_top_bound.number;
35
+ });
36
+ return (b, m) => (d(), P("div", _e, [
37
+ A(i(O), {
38
+ variant: "body-xs",
39
+ color: "subtle",
40
+ tag: "div"
41
+ }, {
42
+ default: y(() => [
43
+ f.value ? (d(), P(N, { key: 0 }, [
44
+ M($(i(t)(
45
+ {
46
+ defaultMessage: "{lower_bound} - {upper_bound} seats",
47
+ id: "seats.tiered_range_label",
48
+ description: "The label showing the seat count range for a tiered pricing tier"
49
+ },
50
+ {
51
+ lower_bound: c.value ?? "0",
52
+ upper_bound: f.value
53
+ }
54
+ )), 1)
55
+ ], 64)) : (d(), P(N, { key: 1 }, [
56
+ M($(i(t)(
57
+ {
58
+ defaultMessage: "> {lower_bound} seats",
59
+ id: "seats.tiered_unbounded_range_label",
60
+ description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
61
+ },
62
+ {
63
+ lower_bound: c.value ?? "0"
64
+ }
65
+ )), 1)
66
+ ], 64))
67
+ ]),
68
+ _: 1
69
+ }),
70
+ A(i(O), {
71
+ variant: "body-xs",
72
+ color: "subtle",
73
+ tag: "div",
74
+ class: "text-right"
75
+ }, {
76
+ default: y(() => [
77
+ M($(e.band.amount && i(t)(
78
+ {
79
+ defaultMessage: "{amount} per seat/{period}",
80
+ id: "seats.tiered_price_per_seat_period",
81
+ description: "The price per seat and billing period label for a tiered pricing tier"
82
+ },
83
+ {
84
+ amount: i(Q)(e.band.amount),
85
+ period: e.period ? i(r)(e.period, {
86
+ short: !0,
87
+ hideValueForExactPeriods: !0
88
+ }) : ""
89
+ }
90
+ )), 1)
91
+ ]),
92
+ _: 1
93
+ })
94
+ ]));
95
+ }
96
+ }), xe = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, ke = /* @__PURE__ */ E({
97
+ __name: "TieredTable",
98
+ props: {
99
+ bands: { type: Array },
100
+ period: { type: Object }
101
+ },
102
+ setup(e) {
103
+ return (n, t) => (d(), P("div", xe, [
104
+ (d(!0), P(N, null, B(e.bands, (r, c) => (d(), _(he, {
105
+ key: c,
106
+ band: r,
107
+ "is-first": c === 0,
108
+ "previous-band": c > 0 ? e.bands[c - 1] : void 0,
109
+ period: e.period
110
+ }, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
111
+ ]));
112
+ }
113
+ });
114
+ function ne({
115
+ pricings: e,
116
+ pricingItemConfigId: n
117
+ }) {
118
+ return k(() => {
119
+ var c, f, b, m, l, u, s, p;
120
+ const { config: t, productItem: r } = re({
121
+ pricings: e,
122
+ pricingItemConfigId: n
123
+ });
124
+ return {
125
+ billing: {
126
+ period: (f = (c = t == null ? void 0 : t.billing_period_configs) == null ? void 0 : c[0]) == null ? void 0 : f.billing_period,
127
+ billedInAdvance: t == null ? void 0 : t.billing_in_advance
128
+ },
129
+ product: {
130
+ name: r == null ? void 0 : r.name,
131
+ description: r == null ? void 0 : r.description
132
+ },
133
+ pricing: {
134
+ ...((b = t == null ? void 0 : t.details) == null ? void 0 : b.pricing_type) === "FLAT" && {
135
+ amount: (u = (l = (m = t.details) == null ? void 0 : m.bands) == null ? void 0 : l[0]) == null ? void 0 : u.amount
136
+ },
137
+ ...((s = t == null ? void 0 : t.details) == null ? void 0 : s.pricing_type) === "TIERED" && {
138
+ tiered: { bands: (p = t.details) == null ? void 0 : p.bands }
139
+ }
140
+ }
141
+ };
142
+ });
143
+ }
144
+ const Pe = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Ae = { class: "w-24 shrink-0 justify-start md:w-32" }, Me = ["tabindex"], $e = { key: 0 }, Ue = { key: 0 }, Te = /* @__PURE__ */ E({
145
+ __name: "SeatsEditorItem",
146
+ props: /* @__PURE__ */ z({
147
+ modelValue: { type: Object },
148
+ defaultValue: { type: Object },
149
+ pricings: { type: Array },
150
+ maxValue: { type: Object },
151
+ disabled: { type: Boolean }
152
+ }, {
153
+ modelValue: { required: !0 },
154
+ modelModifiers: {}
155
+ }),
156
+ emits: ["update:modelValue"],
157
+ setup(e) {
158
+ const n = e, t = S(e, "modelValue"), { $t: r } = q(), { formatTimePeriod: c } = G(), f = R(!1), b = R(0), m = k({
159
+ get: () => +(t.value.number || ee),
160
+ set(s) {
161
+ var U;
162
+ const p = (U = n.maxValue) != null && U.number ? +n.maxValue.number : void 0;
163
+ p !== void 0 && s > p && b.value++;
164
+ const h = p !== void 0 ? Math.min(s, p) : s;
165
+ t.value = {
166
+ ...t.value,
167
+ number: h !== void 0 ? h.toString() : void 0
168
+ };
169
+ }
170
+ }), l = ne({
171
+ pricings: n.pricings,
172
+ pricingItemConfigId: t.value.pricing_item_config_id
173
+ }), u = k(() => {
174
+ var s, p;
175
+ return !!((p = (s = l.value.pricing) == null ? void 0 : s.tiered) != null && p.bands);
176
+ });
177
+ return (s, p) => {
178
+ var h, U, C, V;
179
+ return d(), P("div", null, [
180
+ T("div", Pe, [
181
+ T("div", Ae, [
182
+ (d(), _(i(Y), {
183
+ key: b.value,
184
+ modelValue: m.value,
185
+ "onUpdate:modelValue": p[0] || (p[0] = (g) => m.value = g),
186
+ size: "sm",
187
+ min: (h = e.defaultValue) != null && h.number ? +e.defaultValue.number : void 0,
188
+ max: (U = e.maxValue) != null && U.number ? +e.maxValue.number : void 0,
189
+ disabled: e.disabled
190
+ }, null, 8, ["modelValue", "min", "max", "disabled"]))
191
+ ]),
192
+ T("div", {
193
+ class: j(["flex grow flex-col", { "hover:cursor-pointer": u.value }]),
194
+ tabindex: u.value ? 0 : void 0,
195
+ onClick: p[1] || (p[1] = (g) => u.value ? f.value = !f.value : void 0)
196
+ }, [
197
+ A(i(O), {
198
+ tag: "span",
199
+ variant: "body-sm",
200
+ weight: "semibold"
201
+ }, {
202
+ default: y(() => [
203
+ M($(i(l).product.name || i(r)({
204
+ defaultMessage: "Seats",
205
+ id: "seats.label",
206
+ description: "The label for the seats input field"
207
+ })), 1)
208
+ ]),
209
+ _: 1
210
+ }),
211
+ i(l).pricing.amount ? (d(), _(i(O), {
212
+ key: 0,
213
+ tag: "span",
214
+ variant: "body-xs",
215
+ color: "subtle"
216
+ }, {
217
+ default: y(() => [
218
+ M($(i(r)(
219
+ {
220
+ defaultMessage: "{amount} per seat/{period}",
221
+ id: "seats.price_per_seat_period",
222
+ description: "The price per seat and billing period label for seat-based pricing"
223
+ },
224
+ {
225
+ amount: i(Q)(i(l).pricing.amount),
226
+ period: i(l).billing.period ? i(c)(i(l).billing.period, {
227
+ short: !0,
228
+ hideValueForExactPeriods: !0
229
+ }) : ""
230
+ }
231
+ )), 1)
232
+ ]),
233
+ _: 1
234
+ })) : i(l).pricing.tiered ? (d(), _(i(O), {
235
+ key: 1,
236
+ tag: "span",
237
+ variant: "body-xs",
238
+ color: "subtle"
239
+ }, {
240
+ default: y(() => [
241
+ M($(i(r)({
242
+ defaultMessage: "Tiered pricing",
243
+ id: "seats.tiered_pricing_label",
244
+ description: "The label indicating tiered pricing structure for seats"
245
+ })) + " ", 1),
246
+ A(i(de), {
247
+ icon: "keyboard_arrow_down",
248
+ size: "xs",
249
+ class: j(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !f.value, "rotate-180": f.value }])
250
+ }, null, 8, ["class"])
251
+ ]),
252
+ _: 1
253
+ })) : w("", !0)
254
+ ], 10, Me)
255
+ ]),
256
+ (V = (C = i(l).pricing) == null ? void 0 : C.tiered) != null && V.bands ? (d(), P("div", $e, [
257
+ A(i(ue), { "is-open": f.value }, {
258
+ default: y(() => [
259
+ f.value ? (d(), P("div", Ue, [
260
+ A(ke, {
261
+ bands: i(l).pricing.tiered.bands,
262
+ period: i(l).billing.period
263
+ }, null, 8, ["bands", "period"])
264
+ ])) : w("", !0)
265
+ ]),
266
+ _: 1
267
+ }, 8, ["is-open"])
268
+ ])) : w("", !0)
269
+ ]);
270
+ };
271
+ }
272
+ }), Ce = {
273
+ key: 0,
274
+ class: "grid grid-cols-1 gap-1"
275
+ }, Se = /* @__PURE__ */ E({
276
+ __name: "SeatsEditor",
277
+ props: /* @__PURE__ */ z({
278
+ modelValue: { type: Array },
279
+ initialSeatsValues: { type: Array },
280
+ pricings: { type: Array },
281
+ maxValues: { type: Array },
282
+ editableConfigIds: { type: Array }
283
+ }, {
284
+ modelValue: { required: !0 },
285
+ modelModifiers: {}
286
+ }),
287
+ emits: ["update:modelValue"],
288
+ setup(e) {
289
+ const n = e, t = S(e, "modelValue"), r = (m) => k({
290
+ get: () => t.value[m],
291
+ set: (l) => {
292
+ const u = t.value.slice();
293
+ u[m] = l, t.value = u;
294
+ }
295
+ }), c = (m) => {
296
+ var l;
297
+ return (l = n.initialSeatsValues) == null ? void 0 : l.find(
298
+ (u) => u.pricing_item_config_id === m.pricing_item_config_id
299
+ );
300
+ }, f = (m) => {
301
+ var l;
302
+ return (l = n.maxValues) == null ? void 0 : l.find((u) => u.pricing_item_config_id === m.pricing_item_config_id);
303
+ }, b = (m) => !!n.editableConfigIds && !n.editableConfigIds.includes(m.pricing_item_config_id);
304
+ return (m, l) => e.modelValue.length > 0 ? (d(), P("div", Ce, [
305
+ (d(!0), P(N, null, B(e.modelValue, (u, s) => (d(), _(i(F), { key: s }, {
306
+ default: y(() => [
307
+ u.pricing_item_config_id ? (d(), _(Te, {
308
+ key: u.pricing_item_config_id,
309
+ modelValue: r(s).value,
310
+ "onUpdate:modelValue": (p) => r(s).value = p,
311
+ "default-value": c(u),
312
+ "max-value": f(u),
313
+ disabled: b(u),
314
+ pricings: e.pricings
315
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "max-value", "disabled", "pricings"])) : w("", !0)
316
+ ]),
317
+ _: 2
318
+ }, 1024))), 128))
319
+ ])) : w("", !0);
320
+ }
321
+ }), we = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Ie = { class: "w-24 shrink-0 justify-start md:w-32" }, Ne = { class: "flex grow flex-col" }, Ee = /* @__PURE__ */ E({
322
+ __name: "UnitsEditorItem",
323
+ props: /* @__PURE__ */ z({
324
+ modelValue: { type: Object },
325
+ defaultValue: { type: Object },
326
+ pricings: { type: Array },
327
+ maxValue: { type: Object },
328
+ disabled: { type: Boolean }
329
+ }, {
330
+ modelValue: { required: !0 },
331
+ modelModifiers: {}
332
+ }),
333
+ emits: ["update:modelValue"],
334
+ setup(e) {
335
+ var V, g;
336
+ const n = e, t = S(e, "modelValue"), { $t: r } = q(), c = (o) => {
337
+ var I;
338
+ const a = Number(o);
339
+ if (o === "" || o === null || !Number.isFinite(a)) return;
340
+ const x = (I = n.maxValue) != null && I.number ? +n.maxValue.number : void 0;
341
+ x !== void 0 && a > x && b.value++;
342
+ const v = x !== void 0 ? Math.min(a, x) : a;
343
+ t.value = { ...t.value, number: v.toString() };
344
+ }, f = k({
345
+ get: () => +(t.value.number || ee),
346
+ set: c
347
+ }), b = R(0), m = (V = n.defaultValue) != null && V.number ? +n.defaultValue.number : void 0;
348
+ let l = !1;
349
+ const u = (o) => {
350
+ l = m !== void 0 && o !== "" && Number(o) < m, l || c(o);
351
+ }, s = () => {
352
+ l && (l = !1, b.value++, c(m));
353
+ }, p = !!n.maxValue && [t.value.number, (g = n.defaultValue) == null ? void 0 : g.number, n.maxValue.number].some(
354
+ (o) => o !== void 0 && !Number.isInteger(Number(o))
355
+ ), h = ne({
356
+ pricings: n.pricings,
357
+ pricingItemConfigId: t.value.pricing_item_config_id
358
+ }), U = k(
359
+ () => h.value.product.name || r({
360
+ defaultMessage: "Units",
361
+ id: "units.label",
362
+ description: "The label for the one-off flat item units input field"
363
+ })
364
+ ), C = k(() => {
365
+ var o, a;
366
+ return {
367
+ step: "any",
368
+ inputmode: "decimal",
369
+ min: (o = n.defaultValue) == null ? void 0 : o.number,
370
+ max: (a = n.maxValue) == null ? void 0 : a.number
371
+ };
372
+ });
373
+ return (o, a) => {
374
+ var x, v;
375
+ return d(), P("div", we, [
376
+ T("div", Ie, [
377
+ i(p) ? (d(), _(i(pe), le({
378
+ key: `input-${b.value}`
379
+ }, C.value, {
380
+ "model-value": f.value,
381
+ type: "number",
382
+ size: "sm",
383
+ label: U.value,
384
+ "label-screen-reader-only": "",
385
+ disabled: e.disabled,
386
+ "onUpdate:modelValue": u,
387
+ onBlur: s
388
+ }), null, 16, ["model-value", "label", "disabled"])) : (d(), _(i(Y), {
389
+ key: b.value,
390
+ modelValue: f.value,
391
+ "onUpdate:modelValue": a[0] || (a[0] = (I) => f.value = I),
392
+ size: "sm",
393
+ min: (x = e.defaultValue) != null && x.number ? +e.defaultValue.number : void 0,
394
+ max: (v = e.maxValue) != null && v.number ? +e.maxValue.number : void 0,
395
+ disabled: e.disabled
396
+ }, null, 8, ["modelValue", "min", "max", "disabled"]))
397
+ ]),
398
+ T("div", Ne, [
399
+ A(i(O), {
400
+ tag: "span",
401
+ variant: "body-sm",
402
+ weight: "semibold"
403
+ }, {
404
+ default: y(() => [
405
+ M($(U.value), 1)
406
+ ]),
407
+ _: 1
408
+ }),
409
+ i(h).pricing.amount ? (d(), _(i(O), {
410
+ key: 0,
411
+ tag: "span",
412
+ variant: "body-xs",
413
+ color: "subtle"
414
+ }, {
415
+ default: y(() => [
416
+ M($(i(r)(
417
+ {
418
+ defaultMessage: "{amount} per unit, one-time",
419
+ id: "units.price_per_unit_one_time",
420
+ description: "The price per unit label for a one-off flat item, which is charged once rather than every period"
421
+ },
422
+ { amount: i(Q)(i(h).pricing.amount) }
423
+ )), 1)
424
+ ]),
425
+ _: 1
426
+ })) : w("", !0)
427
+ ])
428
+ ]);
429
+ };
430
+ }
431
+ }), Fe = { class: "grid grid-cols-1 gap-1 p-1" }, Oe = { class: "grid grid-cols-1 gap-1" }, ze = /* @__PURE__ */ E({
432
+ __name: "UnitsEditor",
433
+ props: /* @__PURE__ */ z({
434
+ modelValue: { type: Array },
435
+ initialUnitsValues: { type: Array },
436
+ pricings: { type: Array },
437
+ maxValues: { type: Array },
438
+ editableConfigIds: { type: Array }
439
+ }, {
440
+ modelValue: { required: !0 },
441
+ modelModifiers: {}
442
+ }),
443
+ emits: ["update:modelValue"],
444
+ setup(e) {
445
+ const n = e, { $t: t } = q(), r = S(e, "modelValue"), c = (l) => k({
446
+ get: () => r.value[l],
447
+ set: (u) => {
448
+ const s = r.value.slice();
449
+ s[l] = u, r.value = s;
450
+ }
451
+ }), f = (l) => {
452
+ var u;
453
+ return (u = n.initialUnitsValues) == null ? void 0 : u.find(
454
+ (s) => s.pricing_item_config_id === l.pricing_item_config_id
455
+ );
456
+ }, b = (l) => {
457
+ var u;
458
+ return (u = n.maxValues) == null ? void 0 : u.find((s) => s.pricing_item_config_id === l.pricing_item_config_id);
459
+ }, m = (l) => !!n.editableConfigIds && !n.editableConfigIds.includes(l.pricing_item_config_id);
460
+ return (l, u) => e.modelValue.length > 0 ? (d(), _(i(F), {
461
+ key: 0,
462
+ "no-spacing": "",
463
+ "content-background": "gray"
464
+ }, {
465
+ default: y(() => [
466
+ T("div", Fe, [
467
+ A(K, null, {
468
+ title: y(() => [
469
+ M($(i(t)({
470
+ defaultMessage: "One-time items",
471
+ id: "units_editor.title",
472
+ description: "The heading above the one-off items in the plan customization form"
473
+ })), 1)
474
+ ]),
475
+ description: y(() => [
476
+ M($(i(t)({
477
+ defaultMessage: "Charged once",
478
+ id: "units_editor.description",
479
+ description: "The description of the one-off items in the plan customization form"
480
+ })), 1)
481
+ ]),
482
+ _: 1
483
+ }),
484
+ T("div", Oe, [
485
+ (d(!0), P(N, null, B(e.modelValue, (s, p) => (d(), _(i(F), {
486
+ key: p,
487
+ "content-background": "none"
488
+ }, {
489
+ default: y(() => [
490
+ s.pricing_item_config_id ? (d(), _(Ee, {
491
+ key: s.pricing_item_config_id,
492
+ modelValue: c(p).value,
493
+ "onUpdate:modelValue": (h) => c(p).value = h,
494
+ "default-value": f(s),
495
+ "max-value": b(s),
496
+ disabled: m(s),
497
+ pricings: e.pricings
498
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "max-value", "disabled", "pricings"])) : w("", !0)
499
+ ]),
500
+ _: 2
501
+ }, 1024))), 128))
502
+ ])
503
+ ])
504
+ ]),
505
+ _: 1
506
+ })) : w("", !0);
507
+ }
508
+ }), qe = { class: "p-1" }, Be = { class: "grid grid-cols-1 gap-1 pt-1" }, je = /* @__PURE__ */ E({
509
+ __name: "AddonSingleEditor",
510
+ props: /* @__PURE__ */ z({
511
+ modelValue: { type: Array },
512
+ pricings: { type: Array },
513
+ billingPeriod: { type: Object },
514
+ currency: { type: String },
515
+ groupName: { type: String }
516
+ }, {
517
+ modelValue: { required: !0 },
518
+ modelModifiers: {}
519
+ }),
520
+ emits: ["update:modelValue"],
521
+ setup(e) {
522
+ const n = e, t = S(e, "modelValue"), { $t: r } = q(), { describePricing: c } = ie({
523
+ currency: D(n, "currency"),
524
+ billingPeriod: D(n, "billingPeriod")
525
+ }), f = n.pricings.map((l) => l.id), b = (l) => n.modelValue.includes(l), m = (l) => {
526
+ if (b(l))
527
+ t.value = t.value.filter((u) => u !== l);
528
+ else {
529
+ const u = t.value.filter((s) => !f.includes(s));
530
+ t.value = [...u, l];
531
+ }
532
+ };
533
+ return (l, u) => (d(), _(i(F), { "no-spacing": "" }, {
534
+ default: y(() => [
535
+ T("div", qe, [
536
+ A(K, null, {
537
+ title: y(() => [
538
+ M($(e.groupName), 1)
539
+ ]),
540
+ description: y(() => [
541
+ M($(i(r)({
542
+ defaultMessage: "Select up to one product",
543
+ id: "addon_single_editor.description.at_most_one",
544
+ description: "The description of the addon single editor for at most one product"
545
+ })), 1)
546
+ ]),
547
+ _: 1
548
+ }),
549
+ T("div", Be, [
550
+ (d(!0), P(N, null, B(e.pricings, (s) => (d(), _(i(F), {
551
+ key: s.id,
552
+ "content-background": "none",
553
+ class: j({ "!bg-white": b(s.id) })
554
+ }, {
555
+ default: y(() => [
556
+ A(te, {
557
+ name: i(ae)(s) ?? "",
558
+ description: i(c)(s)
559
+ }, {
560
+ default: y(() => [
561
+ A(i(fe), {
562
+ "model-value": b(s.id),
563
+ size: "sm",
564
+ "onUpdate:modelValue": (p) => m(s.id)
565
+ }, null, 8, ["model-value", "onUpdate:modelValue"])
566
+ ]),
567
+ _: 2
568
+ }, 1032, ["name", "description"])
569
+ ]),
570
+ _: 2
571
+ }, 1032, ["class"]))), 128))
572
+ ])
573
+ ])
574
+ ]),
575
+ _: 1
576
+ }));
577
+ }
578
+ }), De = { class: "grid grid-cols-1 gap-1" }, Le = {
579
+ key: 0,
580
+ class: "w-24 shrink-0 md:w-32"
581
+ }, Z = /* @__PURE__ */ E({
582
+ __name: "AddonMultipleEditor",
583
+ props: /* @__PURE__ */ z({
584
+ modelValue: { type: Array },
585
+ pricings: { type: Array },
586
+ billingPeriod: { type: Object },
587
+ currency: { type: String },
588
+ groupName: { type: String },
589
+ quantityPricingIds: { type: Array }
590
+ }, {
591
+ modelValue: { required: !0 },
592
+ modelModifiers: {},
593
+ seatsValues: { default: () => [] },
594
+ seatsValuesModifiers: {},
595
+ unitsValues: { default: () => [] },
596
+ unitsValuesModifiers: {}
597
+ }),
598
+ emits: ["update:modelValue", "update:seatsValues", "update:unitsValues"],
599
+ setup(e) {
600
+ const n = e, t = S(e, "modelValue"), r = S(e, "seatsValues"), c = S(e, "unitsValues"), { $t: f } = q(), { describePricing: b } = ie({
601
+ currency: D(n, "currency"),
602
+ billingPeriod: D(n, "billingPeriod")
603
+ }), m = (a) => t.value.includes(a), l = () => ({
604
+ enabledPricingIds: t.value,
605
+ seatsValues: r.value,
606
+ unitsValues: c.value
607
+ }), u = k(() => ({ currency: n.currency, billingPeriod: n.billingPeriod })), s = k(
608
+ () => n.pricings.filter((a) => {
609
+ var x;
610
+ return (x = n.quantityPricingIds) == null ? void 0 : x.includes(a.id);
611
+ })
612
+ ), p = k(
613
+ () => new Map(
614
+ s.value.map((a) => [
615
+ a.id,
616
+ ce(a, u.value)
617
+ ])
618
+ )
619
+ ), h = (a) => p.value.get(a.id) ?? 1, U = (a) => J(a, l()) ?? h(a), C = (a) => {
620
+ L(t.value, a.enabledPricingIds) || (t.value = a.enabledPricingIds), L(r.value, a.seatsValues) || (r.value = a.seatsValues), L(c.value, a.unitsValues) || (c.value = a.unitsValues);
621
+ }, V = (a, x) => C(W(a, x, l(), u.value)), g = (a, x) => {
622
+ x >= h(a) && V(a, x);
623
+ };
624
+ se(
625
+ () => s.value.filter(
626
+ (a) => J(a, l()) === void 0
627
+ ),
628
+ (a) => {
629
+ a.length && C(
630
+ a.reduce(
631
+ (x, v) => W(v, h(v), x, u.value),
632
+ l()
633
+ )
634
+ );
635
+ },
636
+ { immediate: !0 }
637
+ );
638
+ const o = (a) => {
639
+ m(a) ? t.value = t.value.filter((x) => x !== a) : t.value = [...t.value, a];
640
+ };
641
+ return (a, x) => (d(), _(i(F), {
642
+ "no-spacing": "",
643
+ "no-border": !e.groupName,
644
+ "content-background": e.groupName ? "gray" : "none"
645
+ }, {
646
+ default: y(() => [
647
+ T("div", {
648
+ class: j(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
649
+ }, [
650
+ e.groupName ? (d(), _(K, { key: 0 }, {
651
+ title: y(() => [
652
+ M($(e.groupName), 1)
653
+ ]),
654
+ description: y(() => [
655
+ M($(i(f)({
656
+ defaultMessage: "Select any number of products",
657
+ id: "addon_multiple_editor.description",
658
+ description: "The description of the addon multiple editor"
659
+ })), 1)
660
+ ]),
661
+ _: 1
662
+ })) : w("", !0),
663
+ T("div", De, [
664
+ (d(!0), P(N, null, B(e.pricings, (v) => (d(), _(i(F), {
665
+ key: v.id,
666
+ "content-background": e.groupName || m(v.id) ? "none" : "gray",
667
+ class: j({ "!bg-white": m(v.id) })
668
+ }, {
669
+ default: y(() => [
670
+ A(te, {
671
+ name: i(ae)(v) ?? "",
672
+ description: i(b)(v)
673
+ }, {
674
+ default: y(() => [
675
+ p.value.has(v.id) && m(v.id) ? (d(), P("div", Le, [
676
+ A(i(Y), {
677
+ "model-value": U(v),
678
+ size: "sm",
679
+ min: h(v),
680
+ removable: "",
681
+ "onUpdate:modelValue": (I) => g(v, I),
682
+ onRemove: (I) => V(v, 0)
683
+ }, null, 8, ["model-value", "min", "onUpdate:modelValue", "onRemove"])
684
+ ])) : m(v.id) ? (d(), _(i(H), {
685
+ key: 1,
686
+ intent: "secondary",
687
+ square: "",
688
+ size: "sm",
689
+ "icon-prefix": "remove_shopping_cart",
690
+ onClick: (I) => o(v.id)
691
+ }, null, 8, ["onClick"])) : (d(), _(i(H), {
692
+ key: 2,
693
+ intent: "primary",
694
+ "icon-prefix": "add",
695
+ size: "sm",
696
+ onClick: (I) => p.value.has(v.id) ? V(v, h(v)) : o(v.id)
697
+ }, {
698
+ default: y(() => [
699
+ M($(i(f)({
700
+ defaultMessage: "Add to subscription",
701
+ id: "addon_multiple_editor.add_to_subscription_button",
702
+ description: "The button to add a pricing to the subscription"
703
+ })), 1)
704
+ ]),
705
+ _: 1
706
+ }, 8, ["onClick"]))
707
+ ]),
708
+ _: 2
709
+ }, 1032, ["name", "description"])
710
+ ]),
711
+ _: 2
712
+ }, 1032, ["content-background", "class"]))), 128))
713
+ ])
714
+ ], 2)
715
+ ]),
716
+ _: 1
717
+ }, 8, ["no-border", "content-background"]));
718
+ }
719
+ }), Re = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, oi = /* @__PURE__ */ E({
720
+ __name: "PlanCustomizationEditor",
721
+ props: /* @__PURE__ */ z({
722
+ subscription: { type: Object },
723
+ enabledPricingIds: { type: Array },
724
+ initialSeatsValues: { type: Array },
725
+ initialUnitsValues: { type: Array },
726
+ billingPeriod: { type: Object },
727
+ currency: { type: String },
728
+ maxSeatsValues: { type: Array },
729
+ maxUnitsValues: { type: Array },
730
+ editableConfigIds: { type: Array },
731
+ hidePricingChoices: { type: Boolean },
732
+ title: { type: String }
733
+ }, {
734
+ seatsValues: { required: !0 },
735
+ seatsValuesModifiers: {},
736
+ unitsValues: { required: !0 },
737
+ unitsValuesModifiers: {},
738
+ enabledPricingIds: {
739
+ required: !0
740
+ },
741
+ enabledPricingIdsModifiers: {}
742
+ }),
743
+ emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
744
+ setup(e) {
745
+ const n = e, t = S(e, "seatsValues"), r = S(e, "unitsValues"), c = S(e, "enabledPricingIds"), { $t: f } = q(), b = k(() => {
746
+ const V = ye({
747
+ pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos,
748
+ type: "DEFAULT"
749
+ });
750
+ return V != null && V.pricing_plan_version ? ve(V) : [];
751
+ }), m = k(
752
+ () => b.value.filter((V) => V.product_type === "ADDON")
753
+ ), l = k(
754
+ () => Ve(n.subscription)
755
+ ), u = k(
756
+ () => me(n.subscription, [
757
+ ...n.initialSeatsValues ?? [],
758
+ ...n.initialUnitsValues ?? []
759
+ ])
760
+ ), s = k(() => u.value.map(({ id: V }) => V)), p = k(() => ge(u.value)), h = (V) => k({
761
+ get: () => V.value.filter(
762
+ ({ pricing_item_config_id: g }) => !p.value.has(g)
763
+ ),
764
+ set: (g) => {
765
+ V.value = [
766
+ ...g,
767
+ ...V.value.filter(
768
+ ({ pricing_item_config_id: o }) => p.value.has(o)
769
+ )
770
+ ];
771
+ }
772
+ }), U = h(t), C = h(r);
773
+ return (V, g) => (d(), _(i(F), {
774
+ class: "sv-plan-customization",
775
+ title: e.title ?? i(f)({
776
+ defaultMessage: "Customize plan",
777
+ id: "checkout.customize_plan_block.title",
778
+ description: "The title of the customize plan block in the checkout form"
779
+ }),
780
+ "no-spacing": "",
781
+ "no-border": "",
782
+ "content-background": "none"
783
+ }, {
784
+ default: y(() => [
785
+ T("div", Re, [
786
+ A(Se, {
787
+ modelValue: i(U),
788
+ "onUpdate:modelValue": g[0] || (g[0] = (o) => X(U) ? U.value = o : null),
789
+ class: "sv-plan-customization__seats",
790
+ "initial-seats-values": e.initialSeatsValues,
791
+ "max-values": e.maxSeatsValues,
792
+ "editable-config-ids": e.editableConfigIds,
793
+ pricings: b.value
794
+ }, null, 8, ["modelValue", "initial-seats-values", "max-values", "editable-config-ids", "pricings"]),
795
+ A(ze, {
796
+ modelValue: i(C),
797
+ "onUpdate:modelValue": g[1] || (g[1] = (o) => X(C) ? C.value = o : null),
798
+ class: "sv-plan-customization__units",
799
+ "initial-units-values": e.initialUnitsValues,
800
+ "max-values": e.maxUnitsValues,
801
+ "editable-config-ids": e.editableConfigIds,
802
+ pricings: b.value
803
+ }, null, 8, ["modelValue", "initial-units-values", "max-values", "editable-config-ids", "pricings"]),
804
+ (d(!0), P(N, null, B(e.hidePricingChoices ? [] : l.value, (o) => (d(), P(N, {
805
+ key: o.id
806
+ }, [
807
+ o.product_type === "DEFAULT" && o.selection_constraint === "EXACTLY_ONE" ? (d(), _(be, {
808
+ key: 0,
809
+ modelValue: c.value,
810
+ "onUpdate:modelValue": g[2] || (g[2] = (a) => c.value = a),
811
+ class: "sv-plan-customization__group",
812
+ "group-name": o.name,
813
+ pricings: o.pricings,
814
+ "billing-period": e.billingPeriod,
815
+ currency: e.currency
816
+ }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : o.product_type === "ADDON" && o.selection_constraint === "AT_MOST_ONE" ? (d(), _(je, {
817
+ key: 1,
818
+ modelValue: c.value,
819
+ "onUpdate:modelValue": g[3] || (g[3] = (a) => c.value = a),
820
+ class: "sv-plan-customization__group",
821
+ "group-name": o.name,
822
+ pricings: o.pricings,
823
+ "billing-period": e.billingPeriod,
824
+ currency: e.currency
825
+ }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : o.product_type === "ADDON" && o.selection_constraint === "ANY" ? (d(), _(Z, {
826
+ key: 2,
827
+ modelValue: c.value,
828
+ "onUpdate:modelValue": g[4] || (g[4] = (a) => c.value = a),
829
+ "seats-values": t.value,
830
+ "onUpdate:seatsValues": g[5] || (g[5] = (a) => t.value = a),
831
+ "units-values": r.value,
832
+ "onUpdate:unitsValues": g[6] || (g[6] = (a) => r.value = a),
833
+ "quantity-pricing-ids": s.value,
834
+ class: "sv-plan-customization__group",
835
+ pricings: o.pricings,
836
+ "group-name": o.name,
837
+ "billing-period": e.billingPeriod,
838
+ currency: e.currency
839
+ }, null, 8, ["modelValue", "seats-values", "units-values", "quantity-pricing-ids", "pricings", "group-name", "billing-period", "currency"])) : w("", !0)
840
+ ], 64))), 128)),
841
+ e.hidePricingChoices ? w("", !0) : (d(), _(Z, {
842
+ key: 0,
843
+ modelValue: c.value,
844
+ "onUpdate:modelValue": g[7] || (g[7] = (o) => c.value = o),
845
+ "seats-values": t.value,
846
+ "onUpdate:seatsValues": g[8] || (g[8] = (o) => t.value = o),
847
+ "units-values": r.value,
848
+ "onUpdate:unitsValues": g[9] || (g[9] = (o) => r.value = o),
849
+ "quantity-pricing-ids": s.value,
850
+ class: "sv-plan-customization__group",
851
+ pricings: m.value,
852
+ "billing-period": e.billingPeriod,
853
+ currency: e.currency
854
+ }, null, 8, ["modelValue", "seats-values", "units-values", "quantity-pricing-ids", "pricings", "billing-period", "currency"])),
855
+ oe(V.$slots, "default")
856
+ ])
857
+ ]),
858
+ _: 3
859
+ }, 8, ["title"]));
860
+ }
861
+ });
862
+ export {
863
+ oi as default
864
+ };