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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,58 +0,0 @@
1
- function b() {
2
- return import("./index-CTwLxoOS.mjs").then(
3
- ({
4
- AdyenCheckout: d,
5
- Dropin: e,
6
- Card: r,
7
- Bancontact: m,
8
- Ach: h,
9
- AmazonPay: i,
10
- ApplePay: n,
11
- BcmcMobile: p,
12
- BacsDirectDebit: s,
13
- CashAppPay: u,
14
- EPS: c,
15
- GooglePay: t,
16
- Klarna: f,
17
- PayByBank: k,
18
- PayPal: o,
19
- SepaDirectDebit: x,
20
- Trustly: C,
21
- Twint: I,
22
- PayByBankUS: M,
23
- Redirect: S
24
- }) => ({
25
- AdyenCheckout: d,
26
- Dropin: e,
27
- // Named individually as well for the express buttons, which mount one on its own
28
- // rather than through the drop-in.
29
- ApplePay: n,
30
- GooglePay: t,
31
- PayPal: o,
32
- /** The payment methods the drop-in is built with, in the order it offers them. */
33
- dropInPaymentMethodComponents: [
34
- r,
35
- m,
36
- h,
37
- i,
38
- n,
39
- p,
40
- s,
41
- u,
42
- c,
43
- t,
44
- f,
45
- k,
46
- o,
47
- x,
48
- C,
49
- I,
50
- M,
51
- S
52
- ]
53
- })
54
- );
55
- }
56
- export {
57
- b as l
58
- };
@@ -1,8 +0,0 @@
1
- import { c as n } from "./countryData.es-BegoD-cZ.mjs";
2
- function e(a) {
3
- var r;
4
- return ((r = n.find((t) => t.key === a)) == null ? void 0 : r.value) ?? a;
5
- }
6
- export {
7
- e as g
8
- };
@@ -1,123 +0,0 @@
1
- import { w as g } from "./api.es-qgvzNMU-.mjs";
2
- import { c as w, u as _, b as a, k as h } from "./customElements-DK4GKNJG.mjs";
3
- const U = (n, t) => {
4
- const r = window.URL.createObjectURL(n);
5
- P(r, t);
6
- }, P = (n, t) => {
7
- const r = document.createElement("a");
8
- r.href = n, r.download = t, r.click(), setTimeout(() => {
9
- window.URL.revokeObjectURL(n);
10
- }, 250);
11
- };
12
- function y() {
13
- const n = w(), t = _(), r = a(
14
- t.apiUrls.transaction,
15
- "portal",
16
- "invoices",
17
- "charge-on-demand-pricing-items"
18
- );
19
- async function l(e) {
20
- return n({
21
- url: a(t.apiUrls.transaction, "portal", "invoices", e)
22
- });
23
- }
24
- function p({
25
- customerId: e,
26
- pagination: o,
27
- query: i
28
- }) {
29
- const c = g(
30
- {
31
- customer_id: e,
32
- ...i ?? {}
33
- },
34
- o
35
- );
36
- return n({
37
- url: a(t.apiUrls.transaction, "portal", "invoices"),
38
- query: c,
39
- isCollection: !0
40
- });
41
- }
42
- async function u({
43
- id: e,
44
- invoice_number: o
45
- }) {
46
- return n({
47
- url: a(t.apiUrls.transaction, "portal", "invoices", e, "pdf"),
48
- options: { headers: { Accept: "application/pdf", "Content-Type": null } }
49
- }).then((i) => {
50
- const c = new Blob([i], {
51
- type: "application/pdf"
52
- });
53
- U(c, `invoice-${o || e}.pdf`);
54
- });
55
- }
56
- function d({
57
- customer: e,
58
- pricingPlanSubscriptionId: o,
59
- startAt: i,
60
- customizations: c,
61
- pricing_plan_schedule_customizations: s,
62
- forExistingSubscription: v = !1
63
- }) {
64
- return n({
65
- url: a(t.apiUrls.transaction, "portal", "invoices", "preview"),
66
- options: { method: "POST", isExpectedError: h },
67
- data: {
68
- // A subscription that is already running is priced as itself, and its customer is
69
- // known. One that does not exist yet is priced off the template it would be created
70
- // from, for the details it would be invoiced to.
71
- ...v ? { pricing_plan_subscription_id: o } : {
72
- template_pricing_plan_subscription_id: o,
73
- customer_details: {
74
- ...e,
75
- reference: "preview"
76
- }
77
- },
78
- ...i && { start_at: i },
79
- ...c && { pricing_plan_schedule_customizations: c },
80
- ...s && {
81
- pricing_plan_schedule_customizations: s
82
- }
83
- }
84
- });
85
- }
86
- function m({
87
- pricingPlanScheduleId: e,
88
- pricingItems: o,
89
- startAt: i
90
- }) {
91
- return n({
92
- url: r,
93
- options: { method: "POST" },
94
- data: {
95
- pricing_plan_schedule_id: e,
96
- pricing_items: o,
97
- preview: !0,
98
- ...i ? { start_at: i } : {}
99
- }
100
- });
101
- }
102
- function f(e) {
103
- return n({
104
- url: r,
105
- options: { method: "POST" },
106
- data: {
107
- finalize_immediately: !0,
108
- ...e
109
- }
110
- });
111
- }
112
- return {
113
- getInvoice: l,
114
- getInvoices: p,
115
- getInvoicePdf: u,
116
- getInvoicePreview: d,
117
- previewChargeOnDemandPricingItems: m,
118
- chargeOnDemandPricingItems: f
119
- };
120
- }
121
- export {
122
- y as c
123
- };
@@ -1,61 +0,0 @@
1
- import { u as x, a } from "./useService-BwzIBIRp.mjs";
2
- import { c as h } from "./paymentMethods-8w-ccfY_.mjs";
3
- function v(e) {
4
- return e.customerId !== void 0;
5
- }
6
- function b() {
7
- const { getPaymentMethodOptions: e } = h(), r = (t) => v(t) ? e({
8
- customerId: t.customerId,
9
- subscriptionId: t.subscriptionId,
10
- invoiceId: t.invoiceId,
11
- amount: t.amount,
12
- country: t.country
13
- }) : e({
14
- subscriptionId: t.subscriptionId,
15
- amount: t.amount,
16
- country: t.country
17
- });
18
- let s, n;
19
- const o = (t) => {
20
- if (n && a(t, n.payload))
21
- return n.options;
22
- const i = r(t), c = () => {
23
- (n == null ? void 0 : n.options) === i && (n = void 0);
24
- };
25
- return i.then(c, c), n = { payload: t, options: i }, i;
26
- }, m = [], { data: f, execute: p, settle: d, apiStatus: I, error: P, isPending: E } = x({
27
- initialValue: m,
28
- service: o
29
- });
30
- let u;
31
- return { paymentMethodOptions: f, get: async (t) => {
32
- if (u = t, s && a(t, s.payload))
33
- return d(s.options), s.options;
34
- const i = await p(t);
35
- return u === t && (s = { payload: t, options: i }), i;
36
- }, apiStatus: I, error: P, isPending: E };
37
- }
38
- const y = ["applepay"];
39
- function D(e) {
40
- return e.filter(
41
- (r) => !y.some((s) => {
42
- var n;
43
- return s === ((n = r.type) == null ? void 0 : n.toLowerCase());
44
- })
45
- );
46
- }
47
- function _(e, r = /* @__PURE__ */ new Date()) {
48
- var o;
49
- if (e.type !== "CARD" || !((o = e.card) != null && o.expiry_date)) return !1;
50
- const { expiry_month: s, expiry_year: n } = e.card.expiry_date;
51
- return r.getTime() >= Date.UTC(n, s, 1);
52
- }
53
- function M(e, r = /* @__PURE__ */ new Date()) {
54
- return e.status === "ACTIVE" && !_(e, r);
55
- }
56
- export {
57
- M as a,
58
- D as f,
59
- _ as i,
60
- b as u
61
- };
@@ -1,68 +0,0 @@
1
- import { c as l, u as y, b as a } from "./customElements-DK4GKNJG.mjs";
2
- const n = ["portal", "payments"], h = () => {
3
- const e = l(), r = y();
4
- function s(t) {
5
- return e({
6
- url: a(r.apiUrls.transaction, ...n),
7
- query: { invoice_id: t },
8
- isCollection: !0
9
- });
10
- }
11
- function c({
12
- paymentAcceptorId: t,
13
- paymentGatewayVariant: o,
14
- adyen: i
15
- }) {
16
- return e({
17
- url: a(r.apiUrls.transaction, ...n, "verify-details"),
18
- options: {
19
- method: "POST"
20
- },
21
- data: {
22
- payment_acceptor_id: t,
23
- payment_gateway_variant: o,
24
- adyen: i
25
- }
26
- });
27
- }
28
- function u(t) {
29
- return e({
30
- url: a(r.apiUrls.transaction, ...n, "authorize"),
31
- options: {
32
- method: "POST"
33
- },
34
- data: t
35
- });
36
- }
37
- function p({
38
- paymentAcceptorId: t,
39
- customerId: o,
40
- paymentMethodId: i,
41
- invoiceId: d,
42
- amount: m
43
- }) {
44
- return e({
45
- url: a(r.apiUrls.transaction, ...n, "authorize"),
46
- options: { method: "POST" },
47
- data: {
48
- payment_acceptor_id: t,
49
- customer_id: o,
50
- payment_method_id: i,
51
- amount: m,
52
- context: {
53
- type: "INVOICE",
54
- related_resource_ids: [{ type: "INVOICE", id: d }]
55
- }
56
- }
57
- });
58
- }
59
- return {
60
- getPayments: s,
61
- getPaymentDetails: c,
62
- authorizePayment: u,
63
- chargeStoredPaymentMethod: p
64
- };
65
- };
66
- export {
67
- h as c
68
- };
@@ -1,29 +0,0 @@
1
- import { i as p } from "./useService-BwzIBIRp.mjs";
2
- function l(a) {
3
- return (a.pricing_plan_version.pricing_categories ?? []).flatMap((o) => o.pricings ?? []);
4
- }
5
- function i(a) {
6
- return a.flatMap(l);
7
- }
8
- function _(a) {
9
- var e, o;
10
- return p(a.name) ? (o = (e = a.products) == null ? void 0 : e[0]) == null ? void 0 : o.name : a.name;
11
- }
12
- function c(a, { enabledPricingIds: e } = {}) {
13
- var r;
14
- const u = (((r = a == null ? void 0 : a.pricing_plan_version) == null ? void 0 : r.pricing_categories) ?? []).flatMap((t) => [
15
- ...(t.pricings ?? []).map((s) => ({ pricing: s, inGroup: !1 })),
16
- ...(t.pricing_groups ?? []).flatMap(
17
- (s) => (s.pricings ?? []).map((n) => ({ pricing: n, inGroup: !0 }))
18
- )
19
- ]), m = ({ pricing: t, inGroup: s }) => !(s || !!(t != null && t.pricing_group_id) || (t == null ? void 0 : t.product_type) === "ADDON") || !e || e.includes(t == null ? void 0 : t.id);
20
- return new Set(
21
- u.filter(m).flatMap(({ pricing: t }) => (t == null ? void 0 : t.items) ?? []).flatMap((t) => t.product_items ?? []).map(({ model_type: t }) => t)
22
- );
23
- }
24
- export {
25
- l as a,
26
- i as b,
27
- c,
28
- _ as g
29
- };
@@ -1,233 +0,0 @@
1
- import { u as y } from "./useService-BwzIBIRp.mjs";
2
- import { c as O } from "./subscriptions-B5bH8hsI.mjs";
3
- const W = (i, n) => {
4
- var c, r;
5
- return !!((c = i.enabled_pricings) != null && c.some(({ pricing_id: t }) => t === n.id) || (r = i.override_pricings) != null && r.some(
6
- (t) => "id" in t && t.id === n.id || t.original_pricing_id === n.id
7
- ));
8
- }, k = (i) => {
9
- var n, c;
10
- return [
11
- ...((n = i.enabled_pricings) == null ? void 0 : n.map(({ pricing_id: r }) => r)) ?? [],
12
- ...((c = i.override_pricings) == null ? void 0 : c.map(
13
- (r) => "id" in r ? r.id : r.original_pricing_id
14
- )) ?? []
15
- ];
16
- };
17
- function z({
18
- subscriptionId: i
19
- }) {
20
- const { getSubscription: n } = O(), {
21
- data: c,
22
- execute: r,
23
- apiStatus: t,
24
- error: p,
25
- isPending: _
26
- } = y({
27
- service: () => n({ id: i, expanded: !0 })
28
- });
29
- return { subscription: c, apiStatus: t, error: p, get: r, isPending: _ };
30
- }
31
- const S = (i) => i.original_pricing_id ?? i.id, g = (i) => i.original_pricing_item_id ?? i.id, e = (i) => i.original_pricing_item_config_id ?? i.id, h = (i, n) => (i == null ? void 0 : i.type) === (n == null ? void 0 : n.type) && (i == null ? void 0 : i.value) === (n == null ? void 0 : n.value);
32
- function u(i) {
33
- const n = {};
34
- for (const c in i)
35
- i[c] !== void 0 && (n[c] = i[c]);
36
- return n;
37
- }
38
- function l(i, n, c) {
39
- if (!(n != null && n.length))
40
- return i;
41
- if (!(i != null && i.length))
42
- return n;
43
- const r = /* @__PURE__ */ new Set();
44
- return [...i.reduce((p, _) => {
45
- const d = n.find(
46
- (o) => e(o) === e(_)
47
- );
48
- return d ? (r.add(d), [...p, P(_, d)]) : c.dropUnmatched ? p : [...p, _];
49
- }, []), ...n.filter((p) => !r.has(p))];
50
- }
51
- function m(i, n, c) {
52
- return n != null && n.length ? i != null && i.length ? [
53
- ...i.map((r) => {
54
- const t = n.find(
55
- (p) => h(p.billing_period, r.billing_period)
56
- );
57
- return t ? {
58
- ...r,
59
- configs: l(r.configs, t.configs, c) ?? []
60
- } : r;
61
- }),
62
- ...n.filter(
63
- (r) => !i.some(
64
- (t) => h(r.billing_period, t.billing_period)
65
- )
66
- )
67
- ] : n : i;
68
- }
69
- function w(i, n, c) {
70
- return n != null && n.length ? i != null && i.length ? [
71
- ...i.map((r) => {
72
- const t = n.find(
73
- (p) => p.currency === r.currency
74
- );
75
- return t ? {
76
- ...r,
77
- ...u(t),
78
- configs: l(r.configs, t.configs, c),
79
- billing_period_configs: m(
80
- r.billing_period_configs,
81
- t.billing_period_configs,
82
- c
83
- )
84
- } : r;
85
- }),
86
- ...n.filter(
87
- (r) => !i.some((t) => t.currency === r.currency)
88
- )
89
- ] : n : i;
90
- }
91
- function P(i, n) {
92
- const c = { dropUnmatched: !1 };
93
- return {
94
- ...i,
95
- ...u(n),
96
- // The customized config is the one the rest of the schedule points at — markups reference
97
- // it by id, and so do `included_volumes` and `seats_values`.
98
- id: n.id ?? i.id,
99
- original_pricing_item_config_id: e(i),
100
- conditions: i.conditions && n.conditions ? {
101
- ...i.conditions,
102
- ...u(n.conditions),
103
- // Only the expanded version names the meter properties a condition reads.
104
- meter_properties: i.conditions.meter_properties ?? n.conditions.meter_properties,
105
- configs: l(
106
- i.conditions.configs,
107
- n.conditions.configs,
108
- c
109
- )
110
- } : n.conditions ?? i.conditions,
111
- billing_period_configs: m(
112
- i.billing_period_configs,
113
- n.billing_period_configs,
114
- c
115
- )
116
- };
117
- }
118
- function U(i, n) {
119
- const c = { dropUnmatched: n.override === "ALL" };
120
- return {
121
- ...i,
122
- ...u(n),
123
- id: n.id ?? i.id,
124
- original_pricing_item_id: g(i),
125
- // Product items are expanded onto the plan version only; an override never repeats them.
126
- product_items: i.product_items,
127
- configs: l(i.configs, n.configs, c),
128
- billing_period_configs: m(
129
- i.billing_period_configs,
130
- n.billing_period_configs,
131
- c
132
- ),
133
- pricing_currency_configs: w(
134
- i.pricing_currency_configs,
135
- n.pricing_currency_configs,
136
- c
137
- )
138
- };
139
- }
140
- function a(i, n, c) {
141
- if (!(n != null && n.length))
142
- return i;
143
- if (!(i != null && i.length))
144
- return n;
145
- const r = /* @__PURE__ */ new Set();
146
- return [...i.reduce((p, _) => {
147
- const d = n.find(
148
- (o) => g(o) === g(_)
149
- );
150
- return d ? (r.add(d), [...p, U(_, d)]) : c.dropUnmatched ? p : [...p, _];
151
- }, []), ...n.filter((p) => !r.has(p))];
152
- }
153
- function A(i, n) {
154
- return n != null && n.length ? n.map((c) => {
155
- var t;
156
- const r = (t = i == null ? void 0 : i.find(
157
- (p) => p.feature_id === c.feature_id
158
- )) == null ? void 0 : t.feature;
159
- return r ? { ...c, feature: r } : c;
160
- }) : i;
161
- }
162
- function L(i, n) {
163
- const c = { dropUnmatched: n.override === "ALL" };
164
- return {
165
- ...i,
166
- ...u(n),
167
- // The customized pricing takes over the original's place, so it has to answer to the id the
168
- // schedule enables it under — `getEnabledPricingIds` returns the override's id, and add-ons
169
- // not matching one of those are filtered out of the rendered plan version.
170
- id: n.id ?? i.id,
171
- original_pricing_id: S(i),
172
- // Products are expanded onto the plan version only; an override never repeats them.
173
- products: i.products,
174
- entitlements: A(i.entitlements, n.entitlements),
175
- items: a(i.items, n.items, c)
176
- };
177
- }
178
- function s(i, n) {
179
- return i.map((c) => {
180
- const r = n.find(
181
- (t) => t.original_pricing_id === S(c)
182
- );
183
- return r ? L(c, r) : c;
184
- });
185
- }
186
- function f({
187
- pricingPlanVersion: i,
188
- overridePricings: n
189
- }) {
190
- var r;
191
- const c = n ?? [];
192
- return c.length ? {
193
- ...i,
194
- pricing_categories: (r = i.pricing_categories) == null ? void 0 : r.map(
195
- (t) => {
196
- var p;
197
- return {
198
- ...t,
199
- pricings: t.pricings && s(t.pricings, c),
200
- pricing_groups: (p = t.pricing_groups) == null ? void 0 : p.map((_) => ({
201
- ..._,
202
- pricings: s(_.pricings, c)
203
- }))
204
- };
205
- }
206
- )
207
- } : i;
208
- }
209
- const x = (i) => {
210
- var n;
211
- return f({
212
- pricingPlanVersion: i.pricing_plan_version,
213
- overridePricings: (n = i.pricing_plan_schedule) == null ? void 0 : n.override_pricings
214
- });
215
- };
216
- function D(i) {
217
- return i.pricing_plan_schedule_infos.map((n) => ({
218
- schedule: n.pricing_plan_schedule,
219
- selectedPricingPlan: n.pricing_plan_version.pricing_plan,
220
- selectedPricingPlanVersion: x(n)
221
- }));
222
- }
223
- function j(i) {
224
- return ((i == null ? void 0 : i.override_pricings) ?? []).length > 0;
225
- }
226
- export {
227
- k as a,
228
- D as g,
229
- j as h,
230
- W as i,
231
- z as u,
232
- x as w
233
- };
@@ -1,38 +0,0 @@
1
- import { c as s, u as o, b as r } from "./customElements-DK4GKNJG.mjs";
2
- function u() {
3
- const n = s(), i = o();
4
- async function c({
5
- scheduleId: e
6
- }) {
7
- return n({
8
- url: r(
9
- i.apiUrls.config,
10
- "portal",
11
- "pricing-plan-schedules",
12
- e,
13
- "on-demand-pricing-items"
14
- )
15
- });
16
- }
17
- function t({
18
- pricingPlanSubscriptionId: e,
19
- enabledPricings: a
20
- }) {
21
- return n({
22
- url: r(i.apiUrls.config, "portal", "pricing-plan-schedules"),
23
- options: { method: "POST" },
24
- data: {
25
- pricing_plan_subscription_id: e,
26
- enabled_pricings: a,
27
- start_at: (/* @__PURE__ */ new Date()).toJSON()
28
- }
29
- });
30
- }
31
- return {
32
- getOnDemandPricingItems: c,
33
- createPricingPlanSchedule: t
34
- };
35
- }
36
- export {
37
- u as c
38
- };
@@ -1,66 +0,0 @@
1
- import { w as o, a as c } from "./api.es-qgvzNMU-.mjs";
2
- import { u as N, c as S, b as s, E as u } from "./customElements-DK4GKNJG.mjs";
3
- const e = ["portal", "pricing-plan-subscriptions"], m = {
4
- CANCEL: "NEXT_BILLING_PERIOD",
5
- RENEW: "UNDO"
6
- };
7
- function C() {
8
- const n = N(), r = S();
9
- async function p({
10
- id: t,
11
- expanded: i = !1
12
- }) {
13
- return r({
14
- url: s(n.apiUrls.config, ...e, t),
15
- query: c({ expandParams: u, expand: i })
16
- });
17
- }
18
- function l({
19
- customerId: t,
20
- pagination: i
21
- }) {
22
- const a = i ?? {}, g = c({
23
- initialParams: {
24
- customer_id: t,
25
- statuses: ["ACTIVE"],
26
- type: "BILLING"
27
- },
28
- expandParams: u
29
- });
30
- return r({
31
- url: s(n.apiUrls.config, ...e),
32
- query: o(g, a),
33
- isCollection: !0
34
- });
35
- }
36
- function f({
37
- customerId: t,
38
- page: i,
39
- pageSize: a
40
- }) {
41
- return r({
42
- url: s(n.apiUrls.config, ...e),
43
- query: o({ customer_id: t }, { page: i, pageSize: a }),
44
- isCollection: !0
45
- });
46
- }
47
- async function E({
48
- id: t,
49
- variant: i
50
- }) {
51
- return r({
52
- url: s(n.apiUrls.config, ...e, t, "cancel"),
53
- data: { type: m[i] },
54
- options: { method: "POST" }
55
- });
56
- }
57
- return {
58
- getSubscription: p,
59
- getActiveSubscriptions: l,
60
- getSubscriptionsOfEveryStatus: f,
61
- setSubscriptionCancellation: E
62
- };
63
- }
64
- export {
65
- C as c
66
- };