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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  5. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  6. package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
  7. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
  9. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  10. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
  11. package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
  12. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  13. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
  14. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  15. package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
  16. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  17. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  18. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
  19. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
  21. package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
  22. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
  23. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  25. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  26. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  27. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  28. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  29. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  30. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  31. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
  32. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
  33. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  34. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  35. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
  36. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
  37. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
  38. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  39. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  40. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  41. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  42. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  43. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  44. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
  45. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
  46. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
  47. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
  48. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  49. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
  50. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  51. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
  52. package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
  53. package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
  54. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  55. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  56. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  57. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
  58. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
  59. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  60. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  61. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
  62. package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
  63. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  64. package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
  65. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
  66. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
  67. package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
  68. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  69. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  70. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
  71. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
  72. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  73. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
  74. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
  75. package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
  76. package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
  77. package/dist/adyen-CHgq2l6n.mjs +99 -0
  78. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  79. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  80. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  81. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  82. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  83. package/dist/components/Invoice/Invoice.mjs +1087 -1019
  84. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  85. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  86. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  87. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  88. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  89. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  90. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  91. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  92. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  93. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  94. package/dist/core/events.types.d.ts +1 -0
  95. package/dist/core/index.mjs +51 -34
  96. package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
  97. package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
  98. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
  99. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
  100. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  101. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  102. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
  103. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
  104. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  105. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  106. package/dist/index.es-Bv55VtdE.mjs +633 -0
  107. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  108. package/dist/index.mjs +37 -33
  109. package/dist/invoices-I7PghcPV.mjs +143 -0
  110. package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
  111. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
  112. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
  113. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
  114. package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
  115. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
  116. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  117. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  118. package/dist/payments-BKoKpoLN.mjs +71 -0
  119. package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
  120. package/dist/pricing-Y-7ELzN-.mjs +42 -0
  121. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  122. package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
  123. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  124. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  125. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  126. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
  127. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  128. package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
  129. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  130. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  131. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  132. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  133. package/dist/subscriptions-B7dNqi1C.mjs +99 -0
  134. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  135. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  136. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  137. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  138. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  139. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  140. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  141. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  142. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  143. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  144. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  145. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  146. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  147. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  151. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  152. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  154. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  157. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  158. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  159. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  160. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  161. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  162. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  167. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  170. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  171. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  172. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  173. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  174. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  175. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  176. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  177. package/dist/types/index.d.ts +5 -1
  178. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  179. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  181. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  182. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  183. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  184. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  185. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  186. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  187. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  188. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  189. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  190. package/dist/types/public/core/action-request.types.d.ts +18 -24
  191. package/dist/types/public/core/events.types.d.ts +99 -0
  192. package/dist/types/public/core/index.d.ts +3 -1
  193. package/dist/types/public/core/types.d.ts +11 -2
  194. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  195. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  196. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  197. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  198. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  199. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  200. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  203. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  204. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  205. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  206. package/dist/types/types/branding.d.ts +15 -0
  207. package/dist/types/types/checkoutSession.d.ts +199 -0
  208. package/dist/types/types/errors.d.ts +2 -0
  209. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  210. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  211. package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
  212. package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
  213. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  214. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  215. package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
  216. package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
  217. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
  218. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  219. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  220. package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  221. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  222. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  223. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  224. package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
  225. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  226. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
  227. package/dist/usePortal-DuLR5Mid.mjs +14 -0
  228. package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
  229. package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
  230. package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
  231. package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
  232. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  233. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  234. package/package.json +41 -11
  235. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  236. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  237. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  238. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  239. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  240. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  241. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
  242. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  243. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  244. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  245. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  246. package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
  247. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  248. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  249. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
  250. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  251. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  252. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  253. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  254. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  255. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
  256. package/dist/invoices-DdREPDXV.mjs +0 -123
  257. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  258. package/dist/payments-CKpU1K3t.mjs +0 -68
  259. package/dist/pricing-CEaZGgKe.mjs +0 -29
  260. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  261. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  262. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  263. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  264. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  265. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  266. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  267. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  268. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,791 +0,0 @@
1
- import { defineComponent as E, computed as y, openBlock as l, createElementBlock as k, createVNode as V, unref as t, withCtx as v, Fragment as N, createTextVNode as P, toDisplayString as M, renderList as F, createBlock as _, useModel as w, ref as ne, createElementVNode as T, normalizeClass as j, createCommentVNode as S, mergeModels as q, toRef as D, watch as se, isRef as K } from "vue";
2
- import { _ as O } from "./Section.vue.es-Oqn1wGPZ.mjs";
3
- import { a as C, d as I } from "./customElements-DK4GKNJG.mjs";
4
- import { u as Z } from "./useTimePeriod.es-BUorDLVK.mjs";
5
- import { f as R } from "./formatting.es-RclXHhKo.mjs";
6
- import { _ as le } from "./Expand.vue.es-BleuAfDz.mjs";
7
- import { a as oe, _ as X } from "./Button.vue.es-j7iYlqtJ.mjs";
8
- import { _ as Q } from "./StepInput.vue.es-ieh4EuJ7.mjs";
9
- import { a as re, F as G, b as ue, c as H, s as J, d as de, e as ce } from "./addonQuantity-CCVaA3e-.mjs";
10
- import { a as Y, u as ee, _ as me } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs";
11
- import { _ as pe } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs";
12
- import { _ as te } from "./Checkout.entry.ce-CopWuLJC.mjs";
13
- import { g as ie, a as ge } from "./pricing-CEaZGgKe.mjs";
14
- import { a as L } from "./useService-BwzIBIRp.mjs";
15
- import { i as fe, h as ve } from "./subscription-BwzkagDI.mjs";
16
- const be = { class: "grid grid-cols-2 gap-2" }, _e = /* @__PURE__ */ E({
17
- __name: "TieredTableRow",
18
- props: {
19
- band: { type: Object },
20
- previousBand: { type: Object },
21
- isFirst: { type: Boolean },
22
- period: { type: Object }
23
- },
24
- setup(e) {
25
- const o = e, { $t: i } = C(), { formatTimePeriod: r } = Z(), u = y(() => {
26
- var d;
27
- if (o.isFirst)
28
- return "0";
29
- if ((d = o.previousBand) != null && d.tier_top_bound && "number" in o.previousBand.tier_top_bound)
30
- return o.previousBand.tier_top_bound.number;
31
- }), c = y(() => {
32
- if (!(!o.band.tier_top_bound || !("number" in o.band.tier_top_bound)))
33
- return o.band.tier_top_bound.number;
34
- });
35
- return (d, n) => (l(), k("div", be, [
36
- V(t(I), {
37
- variant: "body-xs",
38
- color: "subtle",
39
- tag: "div"
40
- }, {
41
- default: v(() => [
42
- c.value ? (l(), k(N, { key: 0 }, [
43
- P(M(t(i)(
44
- {
45
- defaultMessage: "{lower_bound} - {upper_bound} seats",
46
- id: "seats.tiered_range_label",
47
- description: "The label showing the seat count range for a tiered pricing tier"
48
- },
49
- {
50
- lower_bound: u.value ?? "0",
51
- upper_bound: c.value
52
- }
53
- )), 1)
54
- ], 64)) : (l(), k(N, { key: 1 }, [
55
- P(M(t(i)(
56
- {
57
- defaultMessage: "> {lower_bound} seats",
58
- id: "seats.tiered_unbounded_range_label",
59
- description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
60
- },
61
- {
62
- lower_bound: u.value ?? "0"
63
- }
64
- )), 1)
65
- ], 64))
66
- ]),
67
- _: 1
68
- }),
69
- V(t(I), {
70
- variant: "body-xs",
71
- color: "subtle",
72
- tag: "div",
73
- class: "text-right"
74
- }, {
75
- default: v(() => [
76
- P(M(e.band.amount && t(i)(
77
- {
78
- defaultMessage: "{amount} per seat/{period}",
79
- id: "seats.tiered_price_per_seat_period",
80
- description: "The price per seat and billing period label for a tiered pricing tier"
81
- },
82
- {
83
- amount: t(R)(e.band.amount),
84
- period: e.period ? t(r)(e.period, {
85
- short: !0,
86
- hideValueForExactPeriods: !0
87
- }) : ""
88
- }
89
- )), 1)
90
- ]),
91
- _: 1
92
- })
93
- ]));
94
- }
95
- }), ye = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, Ve = /* @__PURE__ */ E({
96
- __name: "TieredTable",
97
- props: {
98
- bands: { type: Array },
99
- period: { type: Object }
100
- },
101
- setup(e) {
102
- return (o, i) => (l(), k("div", ye, [
103
- (l(!0), k(N, null, F(e.bands, (r, u) => (l(), _(_e, {
104
- key: u,
105
- band: r,
106
- "is-first": u === 0,
107
- "previous-band": u > 0 ? e.bands[u - 1] : void 0,
108
- period: e.period
109
- }, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
110
- ]));
111
- }
112
- });
113
- function ae({
114
- pricings: e,
115
- pricingItemConfigId: o
116
- }) {
117
- return y(() => {
118
- var u, c, d, n, s, m, g, $;
119
- const { config: i, productItem: r } = re({
120
- pricings: e,
121
- pricingItemConfigId: o
122
- });
123
- return {
124
- billing: {
125
- period: (c = (u = i == null ? void 0 : i.billing_period_configs) == null ? void 0 : u[0]) == null ? void 0 : c.billing_period,
126
- billedInAdvance: i == null ? void 0 : i.billing_in_advance
127
- },
128
- product: {
129
- name: r == null ? void 0 : r.name,
130
- description: r == null ? void 0 : r.description
131
- },
132
- pricing: {
133
- ...((d = i == null ? void 0 : i.details) == null ? void 0 : d.pricing_type) === "FLAT" && {
134
- amount: (m = (s = (n = i.details) == null ? void 0 : n.bands) == null ? void 0 : s[0]) == null ? void 0 : m.amount
135
- },
136
- ...((g = i == null ? void 0 : i.details) == null ? void 0 : g.pricing_type) === "TIERED" && {
137
- tiered: { bands: ($ = i.details) == null ? void 0 : $.bands }
138
- }
139
- }
140
- };
141
- });
142
- }
143
- const he = { class: "flex flex-row-reverse gap-4 md:flex-row" }, ke = { class: "w-24 shrink-0 justify-start md:w-32" }, Pe = ["tabindex"], Me = { key: 0 }, $e = { key: 0 }, Ae = /* @__PURE__ */ E({
144
- __name: "SeatsEditorItem",
145
- props: /* @__PURE__ */ q({
146
- modelValue: { type: Object },
147
- defaultValue: { type: Object },
148
- pricings: { type: Array }
149
- }, {
150
- modelValue: { required: !0 },
151
- modelModifiers: {}
152
- }),
153
- emits: ["update:modelValue"],
154
- setup(e) {
155
- const o = e, i = w(e, "modelValue"), { $t: r } = C(), { formatTimePeriod: u } = Z(), c = ne(!1), d = y({
156
- get: () => +(i.value.number || G),
157
- set(m) {
158
- i.value = {
159
- ...i.value,
160
- number: m !== void 0 ? m.toString() : void 0
161
- };
162
- }
163
- }), n = ae({
164
- pricings: o.pricings,
165
- pricingItemConfigId: i.value.pricing_item_config_id
166
- }), s = y(() => {
167
- var m, g;
168
- return !!((g = (m = n.value.pricing) == null ? void 0 : m.tiered) != null && g.bands);
169
- });
170
- return (m, g) => {
171
- var $, U, z;
172
- return l(), k("div", null, [
173
- T("div", he, [
174
- T("div", ke, [
175
- V(t(Q), {
176
- modelValue: d.value,
177
- "onUpdate:modelValue": g[0] || (g[0] = (x) => d.value = x),
178
- size: "sm",
179
- min: ($ = e.defaultValue) != null && $.number ? +e.defaultValue.number : void 0
180
- }, null, 8, ["modelValue", "min"])
181
- ]),
182
- T("div", {
183
- class: j(["flex grow flex-col", { "hover:cursor-pointer": s.value }]),
184
- tabindex: s.value ? 0 : void 0,
185
- onClick: g[1] || (g[1] = (x) => s.value ? c.value = !c.value : void 0)
186
- }, [
187
- V(t(I), {
188
- tag: "span",
189
- variant: "body-sm",
190
- weight: "semibold"
191
- }, {
192
- default: v(() => [
193
- P(M(t(n).product.name || t(r)({
194
- defaultMessage: "Seats",
195
- id: "seats.label",
196
- description: "The label for the seats input field"
197
- })), 1)
198
- ]),
199
- _: 1
200
- }),
201
- t(n).pricing.amount ? (l(), _(t(I), {
202
- key: 0,
203
- tag: "span",
204
- variant: "body-xs",
205
- color: "subtle"
206
- }, {
207
- default: v(() => [
208
- P(M(t(r)(
209
- {
210
- defaultMessage: "{amount} per seat/{period}",
211
- id: "seats.price_per_seat_period",
212
- description: "The price per seat and billing period label for seat-based pricing"
213
- },
214
- {
215
- amount: t(R)(t(n).pricing.amount),
216
- period: t(n).billing.period ? t(u)(t(n).billing.period, {
217
- short: !0,
218
- hideValueForExactPeriods: !0
219
- }) : ""
220
- }
221
- )), 1)
222
- ]),
223
- _: 1
224
- })) : t(n).pricing.tiered ? (l(), _(t(I), {
225
- key: 1,
226
- tag: "span",
227
- variant: "body-xs",
228
- color: "subtle"
229
- }, {
230
- default: v(() => [
231
- P(M(t(r)({
232
- defaultMessage: "Tiered pricing",
233
- id: "seats.tiered_pricing_label",
234
- description: "The label indicating tiered pricing structure for seats"
235
- })) + " ", 1),
236
- V(t(oe), {
237
- icon: "keyboard_arrow_down",
238
- size: "xs",
239
- class: j(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !c.value, "rotate-180": c.value }])
240
- }, null, 8, ["class"])
241
- ]),
242
- _: 1
243
- })) : S("", !0)
244
- ], 10, Pe)
245
- ]),
246
- (z = (U = t(n).pricing) == null ? void 0 : U.tiered) != null && z.bands ? (l(), k("div", Me, [
247
- V(t(le), { "is-open": c.value }, {
248
- default: v(() => [
249
- c.value ? (l(), k("div", $e, [
250
- V(Ve, {
251
- bands: t(n).pricing.tiered.bands,
252
- period: t(n).billing.period
253
- }, null, 8, ["bands", "period"])
254
- ])) : S("", !0)
255
- ]),
256
- _: 1
257
- }, 8, ["is-open"])
258
- ])) : S("", !0)
259
- ]);
260
- };
261
- }
262
- }), Te = {
263
- key: 0,
264
- class: "grid grid-cols-1 gap-1"
265
- }, Ue = /* @__PURE__ */ E({
266
- __name: "SeatsEditor",
267
- props: /* @__PURE__ */ q({
268
- modelValue: { type: Array },
269
- initialSeatsValues: { type: Array },
270
- pricings: { type: Array }
271
- }, {
272
- modelValue: { required: !0 },
273
- modelModifiers: {}
274
- }),
275
- emits: ["update:modelValue"],
276
- setup(e) {
277
- const o = e, i = w(e, "modelValue"), r = (c) => y({
278
- get: () => i.value[c],
279
- set: (d) => {
280
- const n = i.value.slice();
281
- n[c] = d, i.value = n;
282
- }
283
- }), u = (c) => {
284
- var d;
285
- return (d = o.initialSeatsValues) == null ? void 0 : d.find(
286
- (n) => n.pricing_item_config_id === c.pricing_item_config_id
287
- );
288
- };
289
- return (c, d) => e.modelValue.length > 0 ? (l(), k("div", Te, [
290
- (l(!0), k(N, null, F(e.modelValue, (n, s) => (l(), _(t(O), { key: s }, {
291
- default: v(() => [
292
- n.pricing_item_config_id ? (l(), _(Ae, {
293
- key: n.pricing_item_config_id,
294
- modelValue: r(s).value,
295
- "onUpdate:modelValue": (m) => r(s).value = m,
296
- "default-value": u(n),
297
- pricings: e.pricings
298
- }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : S("", !0)
299
- ]),
300
- _: 2
301
- }, 1024))), 128))
302
- ])) : S("", !0);
303
- }
304
- }), we = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Se = { class: "w-24 shrink-0 justify-start md:w-32" }, xe = { class: "flex grow flex-col" }, Ne = /* @__PURE__ */ E({
305
- __name: "UnitsEditorItem",
306
- props: /* @__PURE__ */ q({
307
- modelValue: { type: Object },
308
- defaultValue: { type: Object },
309
- pricings: { type: Array }
310
- }, {
311
- modelValue: { required: !0 },
312
- modelModifiers: {}
313
- }),
314
- emits: ["update:modelValue"],
315
- setup(e) {
316
- const o = e, i = w(e, "modelValue"), { $t: r } = C(), u = y({
317
- get: () => +(i.value.number || G),
318
- set(d) {
319
- i.value = {
320
- ...i.value,
321
- number: d !== void 0 ? d.toString() : void 0
322
- };
323
- }
324
- }), c = ae({
325
- pricings: o.pricings,
326
- pricingItemConfigId: i.value.pricing_item_config_id
327
- });
328
- return (d, n) => {
329
- var s;
330
- return l(), k("div", we, [
331
- T("div", Se, [
332
- V(t(Q), {
333
- modelValue: u.value,
334
- "onUpdate:modelValue": n[0] || (n[0] = (m) => u.value = m),
335
- size: "sm",
336
- min: (s = e.defaultValue) != null && s.number ? +e.defaultValue.number : void 0
337
- }, null, 8, ["modelValue", "min"])
338
- ]),
339
- T("div", xe, [
340
- V(t(I), {
341
- tag: "span",
342
- variant: "body-sm",
343
- weight: "semibold"
344
- }, {
345
- default: v(() => [
346
- P(M(t(c).product.name || t(r)({
347
- defaultMessage: "Units",
348
- id: "units.label",
349
- description: "The label for the one-off flat item units input field"
350
- })), 1)
351
- ]),
352
- _: 1
353
- }),
354
- t(c).pricing.amount ? (l(), _(t(I), {
355
- key: 0,
356
- tag: "span",
357
- variant: "body-xs",
358
- color: "subtle"
359
- }, {
360
- default: v(() => [
361
- P(M(t(r)(
362
- {
363
- defaultMessage: "{amount} per unit, one-time",
364
- id: "units.price_per_unit_one_time",
365
- description: "The price per unit label for a one-off flat item, which is charged once rather than every period"
366
- },
367
- { amount: t(R)(t(c).pricing.amount) }
368
- )), 1)
369
- ]),
370
- _: 1
371
- })) : S("", !0)
372
- ])
373
- ]);
374
- };
375
- }
376
- }), Ee = { class: "grid grid-cols-1 gap-1 p-1" }, ze = { class: "grid grid-cols-1 gap-1" }, Oe = /* @__PURE__ */ E({
377
- __name: "UnitsEditor",
378
- props: /* @__PURE__ */ q({
379
- modelValue: { type: Array },
380
- initialUnitsValues: { type: Array },
381
- pricings: { type: Array }
382
- }, {
383
- modelValue: { required: !0 },
384
- modelModifiers: {}
385
- }),
386
- emits: ["update:modelValue"],
387
- setup(e) {
388
- const o = e, { $t: i } = C(), r = w(e, "modelValue"), u = (d) => y({
389
- get: () => r.value[d],
390
- set: (n) => {
391
- const s = r.value.slice();
392
- s[d] = n, r.value = s;
393
- }
394
- }), c = (d) => {
395
- var n;
396
- return (n = o.initialUnitsValues) == null ? void 0 : n.find(
397
- (s) => s.pricing_item_config_id === d.pricing_item_config_id
398
- );
399
- };
400
- return (d, n) => e.modelValue.length > 0 ? (l(), _(t(O), {
401
- key: 0,
402
- "no-spacing": "",
403
- "content-background": "gray"
404
- }, {
405
- default: v(() => [
406
- T("div", Ee, [
407
- V(Y, null, {
408
- title: v(() => [
409
- P(M(t(i)({
410
- defaultMessage: "One-time items",
411
- id: "units_editor.title",
412
- description: "The heading above the one-off items in the plan customization form"
413
- })), 1)
414
- ]),
415
- description: v(() => [
416
- P(M(t(i)({
417
- defaultMessage: "Charged once",
418
- id: "units_editor.description",
419
- description: "The description of the one-off items in the plan customization form"
420
- })), 1)
421
- ]),
422
- _: 1
423
- }),
424
- T("div", ze, [
425
- (l(!0), k(N, null, F(e.modelValue, (s, m) => (l(), _(t(O), {
426
- key: m,
427
- "content-background": "none"
428
- }, {
429
- default: v(() => [
430
- s.pricing_item_config_id ? (l(), _(Ne, {
431
- key: s.pricing_item_config_id,
432
- modelValue: u(m).value,
433
- "onUpdate:modelValue": (g) => u(m).value = g,
434
- "default-value": c(s),
435
- pricings: e.pricings
436
- }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : S("", !0)
437
- ]),
438
- _: 2
439
- }, 1024))), 128))
440
- ])
441
- ])
442
- ]),
443
- _: 1
444
- })) : S("", !0);
445
- }
446
- }), Ie = { class: "p-1" }, qe = { class: "grid grid-cols-1 gap-1 pt-1" }, Ce = /* @__PURE__ */ E({
447
- __name: "AddonSingleEditor",
448
- props: /* @__PURE__ */ q({
449
- modelValue: { type: Array },
450
- pricings: { type: Array },
451
- billingPeriod: { type: Object },
452
- currency: { type: String },
453
- groupName: { type: String }
454
- }, {
455
- modelValue: { required: !0 },
456
- modelModifiers: {}
457
- }),
458
- emits: ["update:modelValue"],
459
- setup(e) {
460
- const o = e, i = w(e, "modelValue"), { $t: r } = C(), { describePricing: u } = ee({
461
- currency: D(o, "currency"),
462
- billingPeriod: D(o, "billingPeriod")
463
- }), c = o.pricings.map((s) => s.id), d = (s) => o.modelValue.includes(s), n = (s) => {
464
- if (d(s))
465
- i.value = i.value.filter((m) => m !== s);
466
- else {
467
- const m = i.value.filter((g) => !c.includes(g));
468
- i.value = [...m, s];
469
- }
470
- };
471
- return (s, m) => (l(), _(t(O), { "no-spacing": "" }, {
472
- default: v(() => [
473
- T("div", Ie, [
474
- V(Y, null, {
475
- title: v(() => [
476
- P(M(e.groupName), 1)
477
- ]),
478
- description: v(() => [
479
- P(M(t(r)({
480
- defaultMessage: "Select up to one product",
481
- id: "addon_single_editor.description.at_most_one",
482
- description: "The description of the addon single editor for at most one product"
483
- })), 1)
484
- ]),
485
- _: 1
486
- }),
487
- T("div", qe, [
488
- (l(!0), k(N, null, F(e.pricings, (g) => (l(), _(t(O), {
489
- key: g.id,
490
- "content-background": "none",
491
- class: j({ "!bg-white": d(g.id) })
492
- }, {
493
- default: v(() => [
494
- V(te, {
495
- name: t(ie)(g) ?? "",
496
- description: t(u)(g)
497
- }, {
498
- default: v(() => [
499
- V(t(pe), {
500
- "model-value": d(g.id),
501
- size: "sm",
502
- "onUpdate:modelValue": ($) => n(g.id)
503
- }, null, 8, ["model-value", "onUpdate:modelValue"])
504
- ]),
505
- _: 2
506
- }, 1032, ["name", "description"])
507
- ]),
508
- _: 2
509
- }, 1032, ["class"]))), 128))
510
- ])
511
- ])
512
- ]),
513
- _: 1
514
- }));
515
- }
516
- }), Fe = { class: "grid grid-cols-1 gap-1" }, je = {
517
- key: 0,
518
- class: "w-24 shrink-0 md:w-32"
519
- }, W = /* @__PURE__ */ E({
520
- __name: "AddonMultipleEditor",
521
- props: /* @__PURE__ */ q({
522
- modelValue: { type: Array },
523
- pricings: { type: Array },
524
- billingPeriod: { type: Object },
525
- currency: { type: String },
526
- groupName: { type: String },
527
- quantityPricingIds: { type: Array }
528
- }, {
529
- modelValue: { required: !0 },
530
- modelModifiers: {},
531
- seatsValues: { default: () => [] },
532
- seatsValuesModifiers: {},
533
- unitsValues: { default: () => [] },
534
- unitsValuesModifiers: {}
535
- }),
536
- emits: ["update:modelValue", "update:seatsValues", "update:unitsValues"],
537
- setup(e) {
538
- const o = e, i = w(e, "modelValue"), r = w(e, "seatsValues"), u = w(e, "unitsValues"), { $t: c } = C(), { describePricing: d } = ee({
539
- currency: D(o, "currency"),
540
- billingPeriod: D(o, "billingPeriod")
541
- }), n = (a) => i.value.includes(a), s = () => ({
542
- enabledPricingIds: i.value,
543
- seatsValues: r.value,
544
- unitsValues: u.value
545
- }), m = y(() => ({ currency: o.currency, billingPeriod: o.billingPeriod })), g = y(
546
- () => o.pricings.filter((a) => {
547
- var A;
548
- return (A = o.quantityPricingIds) == null ? void 0 : A.includes(a.id);
549
- })
550
- ), $ = y(
551
- () => new Map(
552
- g.value.map((a) => [
553
- a.id,
554
- ue(a, m.value)
555
- ])
556
- )
557
- ), U = (a) => $.value.get(a.id) ?? 1, z = (a) => H(a, s()) ?? U(a), x = (a) => {
558
- L(i.value, a.enabledPricingIds) || (i.value = a.enabledPricingIds), L(r.value, a.seatsValues) || (r.value = a.seatsValues), L(u.value, a.unitsValues) || (u.value = a.unitsValues);
559
- }, h = (a, A) => x(J(a, A, s(), m.value)), f = (a, A) => {
560
- A >= U(a) && h(a, A);
561
- };
562
- se(
563
- () => g.value.filter(
564
- (a) => H(a, s()) === void 0
565
- ),
566
- (a) => {
567
- a.length && x(
568
- a.reduce(
569
- (A, b) => J(b, U(b), A, m.value),
570
- s()
571
- )
572
- );
573
- },
574
- { immediate: !0 }
575
- );
576
- const p = (a) => {
577
- n(a) ? i.value = i.value.filter((A) => A !== a) : i.value = [...i.value, a];
578
- };
579
- return (a, A) => (l(), _(t(O), {
580
- "no-spacing": "",
581
- "no-border": !e.groupName,
582
- "content-background": e.groupName ? "gray" : "none"
583
- }, {
584
- default: v(() => [
585
- T("div", {
586
- class: j(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
587
- }, [
588
- e.groupName ? (l(), _(Y, { key: 0 }, {
589
- title: v(() => [
590
- P(M(e.groupName), 1)
591
- ]),
592
- description: v(() => [
593
- P(M(t(c)({
594
- defaultMessage: "Select any number of products",
595
- id: "addon_multiple_editor.description",
596
- description: "The description of the addon multiple editor"
597
- })), 1)
598
- ]),
599
- _: 1
600
- })) : S("", !0),
601
- T("div", Fe, [
602
- (l(!0), k(N, null, F(e.pricings, (b) => (l(), _(t(O), {
603
- key: b.id,
604
- "content-background": e.groupName || n(b.id) ? "none" : "gray",
605
- class: j({ "!bg-white": n(b.id) })
606
- }, {
607
- default: v(() => [
608
- V(te, {
609
- name: t(ie)(b) ?? "",
610
- description: t(d)(b)
611
- }, {
612
- default: v(() => [
613
- $.value.has(b.id) && n(b.id) ? (l(), k("div", je, [
614
- V(t(Q), {
615
- "model-value": z(b),
616
- size: "sm",
617
- min: U(b),
618
- removable: "",
619
- "onUpdate:modelValue": (B) => f(b, B),
620
- onRemove: (B) => h(b, 0)
621
- }, null, 8, ["model-value", "min", "onUpdate:modelValue", "onRemove"])
622
- ])) : n(b.id) ? (l(), _(t(X), {
623
- key: 1,
624
- intent: "secondary",
625
- square: "",
626
- size: "sm",
627
- "icon-prefix": "remove_shopping_cart",
628
- onClick: (B) => p(b.id)
629
- }, null, 8, ["onClick"])) : (l(), _(t(X), {
630
- key: 2,
631
- intent: "primary",
632
- "icon-prefix": "add",
633
- size: "sm",
634
- onClick: (B) => $.value.has(b.id) ? h(b, U(b)) : p(b.id)
635
- }, {
636
- default: v(() => [
637
- P(M(t(c)({
638
- defaultMessage: "Add to subscription",
639
- id: "addon_multiple_editor.add_to_subscription_button",
640
- description: "The button to add a pricing to the subscription"
641
- })), 1)
642
- ]),
643
- _: 1
644
- }, 8, ["onClick"]))
645
- ]),
646
- _: 2
647
- }, 1032, ["name", "description"])
648
- ]),
649
- _: 2
650
- }, 1032, ["content-background", "class"]))), 128))
651
- ])
652
- ], 2)
653
- ]),
654
- _: 1
655
- }, 8, ["no-border", "content-background"]));
656
- }
657
- }), Be = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, at = /* @__PURE__ */ E({
658
- __name: "PlanCustomizationEditor",
659
- props: /* @__PURE__ */ q({
660
- subscription: { type: Object },
661
- enabledPricingIds: { type: Array },
662
- initialSeatsValues: { type: Array },
663
- initialUnitsValues: { type: Array },
664
- billingPeriod: { type: Object },
665
- currency: { type: String }
666
- }, {
667
- seatsValues: { required: !0 },
668
- seatsValuesModifiers: {},
669
- unitsValues: { required: !0 },
670
- unitsValuesModifiers: {},
671
- enabledPricingIds: {
672
- required: !0
673
- },
674
- enabledPricingIdsModifiers: {}
675
- }),
676
- emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
677
- setup(e) {
678
- const o = e, i = w(e, "seatsValues"), r = w(e, "unitsValues"), u = w(e, "enabledPricingIds"), { $t: c } = C(), d = y(() => {
679
- const h = fe({
680
- pricingPlanScheduleInfos: o.subscription.pricing_plan_schedule_infos,
681
- type: "DEFAULT"
682
- });
683
- return h != null && h.pricing_plan_version ? ge(h) : [];
684
- }), n = y(
685
- () => d.value.filter((h) => h.product_type === "ADDON")
686
- ), s = y(
687
- () => ve(o.subscription)
688
- ), m = y(
689
- () => de(o.subscription, [
690
- ...o.initialSeatsValues ?? [],
691
- ...o.initialUnitsValues ?? []
692
- ])
693
- ), g = y(() => m.value.map(({ id: h }) => h)), $ = y(() => ce(m.value)), U = (h) => y({
694
- get: () => h.value.filter(
695
- ({ pricing_item_config_id: f }) => !$.value.has(f)
696
- ),
697
- set: (f) => {
698
- h.value = [
699
- ...f,
700
- ...h.value.filter(
701
- ({ pricing_item_config_id: p }) => $.value.has(p)
702
- )
703
- ];
704
- }
705
- }), z = U(i), x = U(r);
706
- return (h, f) => (l(), _(t(O), {
707
- class: "sv-plan-customization",
708
- title: t(c)({
709
- defaultMessage: "Customize plan",
710
- id: "checkout.customize_plan_block.title",
711
- description: "The title of the customize plan block in the checkout form"
712
- }),
713
- "no-spacing": "",
714
- "no-border": "",
715
- "content-background": "none"
716
- }, {
717
- default: v(() => [
718
- T("div", Be, [
719
- V(Ue, {
720
- modelValue: t(z),
721
- "onUpdate:modelValue": f[0] || (f[0] = (p) => K(z) ? z.value = p : null),
722
- class: "sv-plan-customization__seats",
723
- "initial-seats-values": e.initialSeatsValues,
724
- pricings: d.value
725
- }, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
726
- V(Oe, {
727
- modelValue: t(x),
728
- "onUpdate:modelValue": f[1] || (f[1] = (p) => K(x) ? x.value = p : null),
729
- class: "sv-plan-customization__units",
730
- "initial-units-values": e.initialUnitsValues,
731
- pricings: d.value
732
- }, null, 8, ["modelValue", "initial-units-values", "pricings"]),
733
- (l(!0), k(N, null, F(s.value, (p) => (l(), k(N, {
734
- key: p.id
735
- }, [
736
- p.product_type === "DEFAULT" && p.selection_constraint === "EXACTLY_ONE" ? (l(), _(me, {
737
- key: 0,
738
- modelValue: u.value,
739
- "onUpdate:modelValue": f[2] || (f[2] = (a) => u.value = a),
740
- class: "sv-plan-customization__group",
741
- "group-name": p.name,
742
- pricings: p.pricings,
743
- "billing-period": e.billingPeriod,
744
- currency: e.currency
745
- }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : p.product_type === "ADDON" && p.selection_constraint === "AT_MOST_ONE" ? (l(), _(Ce, {
746
- key: 1,
747
- modelValue: u.value,
748
- "onUpdate:modelValue": f[3] || (f[3] = (a) => u.value = a),
749
- class: "sv-plan-customization__group",
750
- "group-name": p.name,
751
- pricings: p.pricings,
752
- "billing-period": e.billingPeriod,
753
- currency: e.currency
754
- }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : p.product_type === "ADDON" && p.selection_constraint === "ANY" ? (l(), _(W, {
755
- key: 2,
756
- modelValue: u.value,
757
- "onUpdate:modelValue": f[4] || (f[4] = (a) => u.value = a),
758
- "seats-values": i.value,
759
- "onUpdate:seatsValues": f[5] || (f[5] = (a) => i.value = a),
760
- "units-values": r.value,
761
- "onUpdate:unitsValues": f[6] || (f[6] = (a) => r.value = a),
762
- "quantity-pricing-ids": g.value,
763
- class: "sv-plan-customization__group",
764
- pricings: p.pricings,
765
- "group-name": p.name,
766
- "billing-period": e.billingPeriod,
767
- currency: e.currency
768
- }, null, 8, ["modelValue", "seats-values", "units-values", "quantity-pricing-ids", "pricings", "group-name", "billing-period", "currency"])) : S("", !0)
769
- ], 64))), 128)),
770
- V(W, {
771
- modelValue: u.value,
772
- "onUpdate:modelValue": f[7] || (f[7] = (p) => u.value = p),
773
- "seats-values": i.value,
774
- "onUpdate:seatsValues": f[8] || (f[8] = (p) => i.value = p),
775
- "units-values": r.value,
776
- "onUpdate:unitsValues": f[9] || (f[9] = (p) => r.value = p),
777
- "quantity-pricing-ids": g.value,
778
- class: "sv-plan-customization__group",
779
- pricings: n.value,
780
- "billing-period": e.billingPeriod,
781
- currency: e.currency
782
- }, null, 8, ["modelValue", "seats-values", "units-values", "quantity-pricing-ids", "pricings", "billing-period", "currency"])
783
- ])
784
- ]),
785
- _: 1
786
- }, 8, ["title"]));
787
- }
788
- });
789
- export {
790
- at as default
791
- };