@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,441 +0,0 @@
1
- import { defineComponent as A, useModel as V, computed as O, openBlock as c, createElementBlock as h, withDirectives as z, createElementVNode as I, mergeProps as q, withModifiers as W, vModelCheckbox as Y, createBlock as T, withCtx as y, createTextVNode as R, toDisplayString as E, createCommentVNode as N, mergeModels as j, Fragment as x, renderList as U, unref as i, normalizeClass as K, createVNode as g, renderSlot as L } from "vue";
2
- import { d as _, a as H } from "./customElements-DK4GKNJG.mjs";
3
- import { _ as k } from "./Amount.vue.es-DPqHB8Xd.mjs";
4
- import { _ as Z } from "./Divider.vue.es-DnP_HqLz.mjs";
5
- import { _ as J } from "./InvoicePreview.vue.es-Cpf66_xV.mjs";
6
- import { _ as F } from "./InvoicePricingClauseChip.vue.es-CDrAE901.mjs";
7
- import { _ as C } from "./Section.vue.es-Oqn1wGPZ.mjs";
8
- import { g as Q } from "./getComposedString.es-C__uhJpd.mjs";
9
- import { i as X } from "./useService-BwzIBIRp.mjs";
10
- import { s as D } from "./amount-CondixVt.mjs";
11
- const ee = { class: "flex items-center gap-1 border-0 py-0" }, te = ["id", "name", "disabled", "value"], ae = {
12
- inheritAttrs: !1
13
- }, Te = /* @__PURE__ */ A({
14
- ...ae,
15
- __name: "Checkbox",
16
- props: /* @__PURE__ */ j({
17
- label: {},
18
- id: {},
19
- name: {},
20
- value: {},
21
- disabled: { type: Boolean },
22
- size: { default: "md" }
23
- }, {
24
- modelValue: { type: Boolean, required: !0 },
25
- modelModifiers: {}
26
- }),
27
- emits: ["update:modelValue"],
28
- setup(e) {
29
- const t = e, a = V(e, "modelValue"), n = {
30
- sm: "size-2",
31
- md: "size-4"
32
- }, o = O(() => n[t.size]);
33
- return (s, l) => (c(), h("label", ee, [
34
- z(I("input", q({ id: e.id }, s.$attrs, {
35
- "onUpdate:modelValue": l[0] || (l[0] = (f) => a.value = f),
36
- name: e.name,
37
- disabled: e.disabled,
38
- value: e.value,
39
- type: "checkbox",
40
- class: ["rounded accent-primary-600 checked:bg-primary-600 checked:hover:bg-primary-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600", {
41
- "border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500": e.disabled,
42
- "bg-gray-100": e.disabled && !a.value,
43
- "bg-gray-300 text-primary-600": !e.disabled && a.value,
44
- "cursor-pointer": !e.disabled,
45
- [o.value]: !0
46
- }],
47
- onClickCapture: l[1] || (l[1] = W(() => {
48
- }, ["stop"]))
49
- }), null, 16, te), [
50
- [Y, a.value]
51
- ]),
52
- e.label ? (c(), T(_, {
53
- key: 0,
54
- tag: "span",
55
- variant: e.size === "sm" ? "body-xs" : "body-sm",
56
- color: "inherit",
57
- class: "leading-tight"
58
- }, {
59
- default: y(() => [
60
- R(E(e.label), 1)
61
- ]),
62
- _: 1
63
- }, 8, ["variant"])) : N("", !0)
64
- ]));
65
- }
66
- }), Re = (e) => {
67
- var t;
68
- return ((t = e.periods) == null ? void 0 : t.some(
69
- (a) => {
70
- var n;
71
- return (n = a.groups) == null ? void 0 : n.some(
72
- (o) => {
73
- var s;
74
- return (s = o.lines) == null ? void 0 : s.some(
75
- (l) => l.product_items.some(
76
- (f) => f.model_type === "USAGE_BASED"
77
- )
78
- );
79
- }
80
- );
81
- }
82
- )) ?? !1;
83
- }, G = {
84
- PRICING: "RECURRING",
85
- REVENUE: "RECURRING",
86
- COMMITMENT: "RECURRING",
87
- ONE_OFF: "ONE_OFF",
88
- DISCOUNT: "UNATTRIBUTED",
89
- MARKUP: "UNATTRIBUTED",
90
- DEDUCTION: "UNATTRIBUTED"
91
- }, M = (e) => {
92
- var a;
93
- if (e.type === "ONE_OFF")
94
- return "ONE_OFF";
95
- const t = ((a = e.product_items) == null ? void 0 : a.map(({ model_type: n }) => n)) ?? [];
96
- if (t.length)
97
- return t.every((n) => n === "ONE_OFF") ? "ONE_OFF" : "RECURRING";
98
- }, S = (e) => {
99
- var t;
100
- return e.type === "DISCOUNT" || !!((t = e.lines) != null && t.length) && e.lines.every(({ type: a }) => a === "DISCOUNT");
101
- }, ne = (e, t) => {
102
- var l, f;
103
- const a = new Set(
104
- (l = e.lines) == null ? void 0 : l.map(({ pricing_item_config_id: v }) => v).filter(Boolean)
105
- ), n = new Set((f = e.products) == null ? void 0 : f.map(({ id: v }) => v)), o = t.filter(
106
- (v) => {
107
- var d;
108
- return (d = v.lines) == null ? void 0 : d.some(({ pricing_item_config_id: r }) => a.has(r));
109
- }
110
- ), s = o.length ? o : t.filter((v) => {
111
- var d;
112
- return (d = v.products) == null ? void 0 : d.some(({ id: r }) => n.has(r));
113
- });
114
- return s.length === 1 ? s[0] : void 0;
115
- };
116
- function $(e) {
117
- return (e.periods ?? []).flatMap(({ groups: t = [] }) => {
118
- const a = t.filter((s) => !S(s)), n = new Map(
119
- a.map((s) => [s, [s]])
120
- ), o = [];
121
- return t.filter(S).forEach((s) => {
122
- const l = ne(s, a);
123
- l ? n.get(l).push(s) : o.push([s]);
124
- }), [...n.values(), ...o];
125
- });
126
- }
127
- function ie(e) {
128
- const t = {
129
- RECURRING: [],
130
- ONE_OFF: [],
131
- UNATTRIBUTED: []
132
- };
133
- return $(e).forEach((a) => {
134
- var l;
135
- const [n] = a, o = G[n.type] ?? "UNATTRIBUTED", s = new Set(
136
- o === "RECURRING" && ((l = n.lines) != null && l.length) ? n.lines.map((f) => M(f) ?? "RECURRING") : [o]
137
- );
138
- t[s.size === 1 ? [...s][0] : "UNATTRIBUTED"].push(...a);
139
- }), {
140
- recurring: t.RECURRING,
141
- oneOff: t.ONE_OFF,
142
- other: t.UNATTRIBUTED
143
- };
144
- }
145
- function se(e) {
146
- var v;
147
- const t = e.billing_currency, a = {
148
- RECURRING: { excludingTax: [], includingTax: [] },
149
- ONE_OFF: { excludingTax: [], includingTax: [] },
150
- UNATTRIBUTED: { excludingTax: [], includingTax: [] }
151
- }, n = (d, r) => {
152
- const m = a[d];
153
- r.amount_excluding_tax && m.excludingTax.push(r.amount_excluding_tax), r.amount_including_tax && m.includingTax.push(r.amount_including_tax);
154
- };
155
- (v = e.periods) == null || v.forEach((d) => {
156
- var r;
157
- (r = d.groups) == null || r.forEach((m) => {
158
- var p;
159
- const u = G[m.type] ?? "UNATTRIBUTED";
160
- if (!((p = m.lines) != null && p.length)) {
161
- n(u, m);
162
- return;
163
- }
164
- m.lines.forEach(
165
- (b) => n(
166
- u === "RECURRING" ? M(b) ?? u : u,
167
- b
168
- )
169
- );
170
- });
171
- });
172
- const o = (d) => ({
173
- excludingTax: D(a[d].excludingTax, t),
174
- includingTax: D(a[d].includingTax, t)
175
- }), s = (d) => Number(d.excludingTax.quantity) === 0 && Number(d.includingTax.quantity) === 0, l = o("ONE_OFF"), f = o("UNATTRIBUTED");
176
- return {
177
- recurring: o("RECURRING"),
178
- oneOff: l,
179
- unattributed: f,
180
- hasOneOff: !s(l),
181
- hasUnattributed: !s(f)
182
- };
183
- }
184
- const B = (e) => Number(e.quantity), Ee = (e) => {
185
- var n;
186
- const t = (n = e == null ? void 0 : e.periods) == null ? void 0 : n[0];
187
- if (!e || !t)
188
- return;
189
- const a = se({ ...e, periods: [t] });
190
- return a.hasOneOff ? a.hasUnattributed ? void 0 : a.recurring.includingTax : t.amount_including_tax;
191
- }, Ne = (e, t) => {
192
- if (!t)
193
- return;
194
- const n = {
195
- DAY: 365,
196
- WEEK: 52,
197
- MONTH: 12,
198
- YEAR: 1
199
- }[e.type] / Math.max(e.value ?? 1, 1), o = B(t) * n;
200
- if (Number.isFinite(o))
201
- return { quantity: o.toFixed(2), currency: t.currency };
202
- }, Ue = (e, t) => {
203
- if (!e || !t)
204
- return;
205
- const a = B(e) - B(t);
206
- if (!(!Number.isFinite(a) || a <= 0))
207
- return { quantity: a.toFixed(2), currency: e.currency };
208
- }, w = (e) => {
209
- var t, a;
210
- return (t = e.pricing) != null && t.name && !X(e.pricing.name) ? e.pricing.name : Q(((a = e.products) == null ? void 0 : a.map(({ name: n }) => n)) ?? []) ?? "";
211
- }, re = (e, t) => D(
212
- e.map(({ amount_excluding_tax: a }) => a),
213
- t
214
- ), oe = {
215
- key: 0,
216
- class: "sv-order-summary__items grid grid-cols-1 gap-1"
217
- }, le = { class: "flex grow flex-row items-center gap-2" }, ce = { class: "flex flex-row gap-2 py-1.5" }, ue = { class: "grid grid-cols-1 gap-1" }, de = { class: "flex grow flex-row items-center gap-2" }, Oe = /* @__PURE__ */ A({
218
- __name: "OrderSummaryInvoice",
219
- props: {
220
- invoice: { type: Object },
221
- trialInvoice: { type: Object },
222
- isPaid: { type: Boolean },
223
- collapsible: { type: String },
224
- isPreviewWithoutTaxes: { type: Boolean },
225
- variant: { type: String }
226
- },
227
- setup(e) {
228
- const t = e, { $t: a } = H(), n = O(() => ie(t.invoice)), o = O(() => $(t.invoice)), s = O(
229
- () => new Set(o.value.flatMap(([, ...r]) => r))
230
- ), l = (r) => {
231
- var m, u, p;
232
- return (p = (u = (m = r.lines) == null ? void 0 : m.find(({ type: b }) => b === "DISCOUNT")) == null ? void 0 : u.details) == null ? void 0 : p.band;
233
- }, f = (r) => {
234
- const m = l(r);
235
- return s.value.has(r) && !!(m != null && m.percentage || m != null && m.amount);
236
- }, v = O(
237
- () => n.value.recurring.length > 0 && n.value.oneOff.length > 0
238
- ), d = (r) => r.length > 1 ? re(r, t.invoice.billing_currency) : void 0;
239
- return (r, m) => (c(), h(x, null, [
240
- e.variant !== "products-inline" ? (c(), h("div", oe, [
241
- v.value ? (c(!0), h(x, { key: 0 }, U([
242
- {
243
- key: "recurring",
244
- groups: n.value.recurring,
245
- heading: i(a)({
246
- defaultMessage: "Subscription",
247
- id: "checkout.order_summary_block.recurring_heading",
248
- description: "The heading above the charges that are made every billing period"
249
- })
250
- },
251
- {
252
- key: "one-off",
253
- groups: n.value.oneOff,
254
- heading: i(a)({
255
- defaultMessage: "One-time charges",
256
- id: "checkout.order_summary_block.one_off_heading",
257
- description: "The heading above the charges that are made once and not again"
258
- })
259
- }
260
- ], (u) => (c(), h("div", {
261
- key: u.key,
262
- class: K(`sv-order-summary__items-${u.key}`)
263
- }, [
264
- g(i(_), { variant: "caps-heading" }, {
265
- default: y(() => [
266
- R(E(u.heading), 1)
267
- ]),
268
- _: 2
269
- }, 1024),
270
- g(i(C), null, {
271
- default: y(() => [
272
- (c(!0), h(x, null, U(u.groups, (p, b) => (c(), h("div", {
273
- key: b,
274
- class: "flex flex-row items-center gap-2 py-1.5"
275
- }, [
276
- I("div", le, [
277
- f(p) ? (c(), T(i(F), {
278
- key: 1,
279
- class: "sv-order-summary__discount",
280
- "clause-type": "DISCOUNT",
281
- "price-details-band": l(p)
282
- }, null, 8, ["price-details-band"])) : (c(), T(i(_), {
283
- key: 0,
284
- tag: "span",
285
- variant: "body-xs"
286
- }, {
287
- default: y(() => [
288
- R(E(i(w)(p)), 1)
289
- ]),
290
- _: 2
291
- }, 1024))
292
- ]),
293
- g(i(_), {
294
- tag: "span",
295
- variant: "body-xs"
296
- }, {
297
- default: y(() => [
298
- g(i(k), {
299
- value: p.amount_excluding_tax
300
- }, null, 8, ["value"])
301
- ]),
302
- _: 2
303
- }, 1024)
304
- ]))), 128)),
305
- d(u.groups) ? (c(), h(x, { key: 0 }, [
306
- g(i(Z), { spacing: "xxs" }),
307
- I("div", ce, [
308
- g(i(_), {
309
- tag: "span",
310
- variant: "body-xs",
311
- weight: "semibold",
312
- class: "grow"
313
- }, {
314
- default: y(() => [
315
- R(E(i(a)({
316
- defaultMessage: "Subtotal",
317
- id: "checkout.order_summary_block.subtotal",
318
- description: "The label of a section total in the order summary"
319
- })), 1)
320
- ]),
321
- _: 1
322
- }),
323
- g(i(_), {
324
- tag: "span",
325
- variant: "body-xs",
326
- weight: "semibold"
327
- }, {
328
- default: y(() => [
329
- g(i(k), {
330
- value: d(u.groups)
331
- }, null, 8, ["value"])
332
- ]),
333
- _: 2
334
- }, 1024)
335
- ])
336
- ], 64)) : N("", !0)
337
- ]),
338
- _: 2
339
- }, 1024)
340
- ], 2))), 128)) : N("", !0),
341
- v.value && n.value.other.length ? (c(), T(i(C), { key: 1 }, {
342
- default: y(() => [
343
- (c(!0), h(x, null, U(n.value.other, (u, p) => (c(), h("div", {
344
- key: p,
345
- class: "flex flex-row gap-2 py-1.5"
346
- }, [
347
- g(i(_), {
348
- tag: "span",
349
- variant: "body-xs",
350
- class: "grow"
351
- }, {
352
- default: y(() => [
353
- R(E(i(w)(u)), 1)
354
- ]),
355
- _: 2
356
- }, 1024),
357
- g(i(_), {
358
- tag: "span",
359
- variant: "body-xs"
360
- }, {
361
- default: y(() => [
362
- g(i(k), {
363
- value: u.amount_excluding_tax
364
- }, null, 8, ["value"])
365
- ]),
366
- _: 2
367
- }, 1024)
368
- ]))), 128))
369
- ]),
370
- _: 1
371
- })) : N("", !0),
372
- v.value ? N("", !0) : (c(!0), h(x, { key: 2 }, U(o.value, (u, p) => (c(), T(i(C), { key: p }, {
373
- default: y(() => [
374
- I("div", ue, [
375
- (c(!0), h(x, null, U(u, (b, P) => (c(), h("div", {
376
- key: P,
377
- class: "flex flex-row items-center gap-2"
378
- }, [
379
- I("div", de, [
380
- f(b) ? (c(), T(i(F), {
381
- key: 1,
382
- class: "sv-order-summary__discount",
383
- "clause-type": "DISCOUNT",
384
- "price-details-band": l(b)
385
- }, null, 8, ["price-details-band"])) : (c(), T(i(_), {
386
- key: 0,
387
- tag: "span",
388
- variant: "body-xs"
389
- }, {
390
- default: y(() => [
391
- R(E(i(w)(b)), 1)
392
- ]),
393
- _: 2
394
- }, 1024))
395
- ]),
396
- g(i(_), {
397
- tag: "span",
398
- variant: "body-xs"
399
- }, {
400
- default: y(() => [
401
- g(i(k), {
402
- value: b.amount_excluding_tax
403
- }, null, 8, ["value"])
404
- ]),
405
- _: 2
406
- }, 1024)
407
- ]))), 128))
408
- ])
409
- ]),
410
- _: 2
411
- }, 1024))), 128))
412
- ])) : N("", !0),
413
- g(i(C), { class: "sv-order-summary__totals" }, {
414
- default: y(() => [
415
- g(i(J), {
416
- class: "sv-order-summary__invoice-preview",
417
- variant: e.variant === "products-inline" ? "default" : "without-products",
418
- invoice: e.invoice,
419
- "trial-invoice": e.trialInvoice,
420
- "is-paid": e.isPaid,
421
- collapsible: e.collapsible,
422
- "is-preview-without-taxes": e.isPreviewWithoutTaxes,
423
- "is-customer-facing": ""
424
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"]),
425
- L(r.$slots, "default")
426
- ]),
427
- _: 3
428
- })
429
- ], 64));
430
- }
431
- });
432
- export {
433
- Oe as _,
434
- Te as a,
435
- Ee as b,
436
- Ne as c,
437
- Ue as d,
438
- ie as g,
439
- Re as i,
440
- se as s
441
- };
@@ -1,181 +0,0 @@
1
- import { defineComponent as G, defineAsyncComponent as C, ref as S, computed as L, watch as z, openBlock as d, createElementBlock as P, Fragment as b, renderList as J, unref as l, createBlock as I, createCommentVNode as V, withCtx as K, createTextVNode as Q, toDisplayString as U } from "vue";
2
- import { _ as W } from "./FormMessage.vue.es-CwMQpIAW.mjs";
3
- import { a as X } from "./customElements-DK4GKNJG.mjs";
4
- import { g as Z } from "./usePaymentFormHold-Cwdr-vyc.mjs";
5
- const T = (t) => {
6
- var o;
7
- return ((o = t.integration.payment_gateway) == null ? void 0 : o.variant) === "ADYEN";
8
- }, q = (t) => {
9
- var o;
10
- return ((o = t.integration.payment_gateway) == null ? void 0 : o.variant) === "STRIPE";
11
- }, D = ({
12
- selectedIntegration: t,
13
- paymentMethodOption: o
14
- }) => {
15
- var s, u;
16
- return t === ((u = (s = o.integration) == null ? void 0 : s.payment_gateway) == null ? void 0 : u.variant);
17
- }, M = (t, { excludeExpressPaymentMethods: o = !1 } = {}) => {
18
- var s;
19
- return T(t) ? Z(t, { excludeExpressPaymentMethods: o }).length > 0 : q(t) ? !!((s = t.integration.payment_gateway.stripe) != null && s.public_key) : !1;
20
- }, te = (t, o = {}) => t.some(
21
- (s) => M(s, o)
22
- ), ne = /* @__PURE__ */ G({
23
- __name: "PaymentIntegrationForm",
24
- props: {
25
- customerId: { type: String },
26
- variant: { type: String },
27
- context: { type: Object },
28
- paymentMethodOptions: { type: Array },
29
- countryCode: { type: String },
30
- invoiceId: { type: String },
31
- amount: { type: Object },
32
- selectedOption: { type: String },
33
- openFirstPaymentMethod: { type: Boolean, default: !0 },
34
- email: { type: String },
35
- name: { type: String },
36
- validateOnSubmit: { type: Function },
37
- forceStorePaymentMethod: { type: Boolean },
38
- storePaymentMethod: { type: Boolean, default: void 0 },
39
- redirectsOnSuccess: { type: Boolean },
40
- billingEntityName: { type: String }
41
- },
42
- emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
43
- setup(t, { expose: o, emit: s }) {
44
- const u = C(
45
- () => import("./PaymentIntegrationFormStripe-BANBL6za.mjs").then(
46
- (e) => e.default
47
- )
48
- ), j = C(
49
- () => import("./PaymentIntegrationFormAdyen-Fm-diCCO.mjs").then(
50
- (e) => e.default
51
- )
52
- ), c = t, m = s;
53
- o({ submit: Y });
54
- const { $t: H } = X(), h = S(), y = L(
55
- () => {
56
- var e, i;
57
- return h.value ?? ((i = (e = c.paymentMethodOptions[0]) == null ? void 0 : e.integration.payment_gateway) == null ? void 0 : i.variant);
58
- }
59
- ), w = S(/* @__PURE__ */ new Map()), g = S(!1), F = (e) => {
60
- g.value = !1, h.value = e.paymentGatewayVariant, m("select", e);
61
- }, $ = (e) => (i) => {
62
- var n;
63
- return w.value.set((n = e.integration.payment_gateway) == null ? void 0 : n.variant, i);
64
- };
65
- let r;
66
- const v = /* @__PURE__ */ new Map(), E = (e) => r !== void 0 && r !== e;
67
- function k(e, { claims: i }) {
68
- let n = v.get(e);
69
- return n || (n = async () => {
70
- var B;
71
- return E(e) || !await (((B = c.validateOnSubmit) == null ? void 0 : B.call(c)) ?? Promise.resolve(!0)) || E(e) ? !1 : (i && (r = e), !0);
72
- }, v.set(e, n)), n;
73
- }
74
- z(
75
- () => c.paymentMethodOptions.map(({ integration: e }) => e.id),
76
- (e) => {
77
- r !== void 0 && !e.includes(r) && (r = void 0), [...v.keys()].filter((i) => !e.includes(i)).forEach((i) => v.delete(i));
78
- }
79
- );
80
- function f(e) {
81
- r === e && (r = void 0);
82
- }
83
- const x = (e) => {
84
- r = e, m("submitting");
85
- }, A = (e, i) => {
86
- f(e), m("payment-failed", i);
87
- }, N = (e) => {
88
- f(e), m("payment-success");
89
- }, R = (e, i) => {
90
- r !== void 0 && r !== e || (f(e), i === "NO_PAYMENT_METHOD" && (g.value = !0), m("invalid", i));
91
- };
92
- function Y() {
93
- var i;
94
- if (!y.value) {
95
- g.value = !0, (i = c.validateOnSubmit) == null || i.call(c), m("invalid");
96
- return;
97
- }
98
- const e = w.value.get(y.value);
99
- if (!e) {
100
- m("invalid");
101
- return;
102
- }
103
- e.submit();
104
- }
105
- return (e, i) => (d(), P(b, null, [
106
- (d(!0), P(b, null, J(t.paymentMethodOptions, (n) => (d(), P(b, {
107
- key: n.integration.id
108
- }, [
109
- l(T)(n) ? (d(), I(l(j), {
110
- key: 0,
111
- ref_for: !0,
112
- ref: $(n),
113
- context: t.context,
114
- "payment-method-option-response-entry": n,
115
- "country-code": t.countryCode,
116
- "customer-id": t.customerId,
117
- variant: t.variant,
118
- amount: t.amount,
119
- "invoice-id": t.invoiceId,
120
- selected: t.openFirstPaymentMethod && l(D)({ selectedIntegration: y.value, paymentMethodOption: n }),
121
- "validate-on-submit": k(n.integration.id, { claims: !1 }),
122
- "force-store-payment-method": t.forceStorePaymentMethod,
123
- "store-payment-method": t.storePaymentMethod,
124
- "redirects-on-success": t.redirectsOnSuccess,
125
- "billing-entity-name": t.billingEntityName,
126
- onSelect: F,
127
- onPaymentFailed: (a) => A(n.integration.id, a),
128
- onPaymentSuccess: (a) => N(n.integration.id),
129
- onInvalid: (a) => R(n.integration.id, a),
130
- onSubmitting: (a) => x(n.integration.id),
131
- onActionRequired: i[0] || (i[0] = (a) => e.$emit("action-required")),
132
- onReady: i[1] || (i[1] = (a) => e.$emit("ready"))
133
- }, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "validate-on-submit", "force-store-payment-method", "store-payment-method", "redirects-on-success", "billing-entity-name", "onPaymentFailed", "onPaymentSuccess", "onInvalid", "onSubmitting"])) : l(q)(n) ? (d(), I(l(u), {
134
- key: 1,
135
- ref_for: !0,
136
- ref: $(n),
137
- context: t.context,
138
- "payment-method-option-response-entry": n,
139
- "country-code": t.countryCode,
140
- "customer-id": t.customerId,
141
- variant: t.variant,
142
- amount: t.amount,
143
- "invoice-id": t.invoiceId,
144
- selected: l(D)({ selectedIntegration: y.value, paymentMethodOption: n }),
145
- email: t.email,
146
- name: t.name,
147
- "validate-on-submit": k(n.integration.id, { claims: !0 }),
148
- "force-store-payment-method": t.forceStorePaymentMethod,
149
- "store-payment-method": t.storePaymentMethod,
150
- "redirects-on-success": t.redirectsOnSuccess,
151
- "billing-entity-name": t.billingEntityName,
152
- collapsed: !t.openFirstPaymentMethod,
153
- onSelect: F,
154
- onPaymentFailed: (a) => A(n.integration.id, a),
155
- onPaymentSuccess: (a) => N(n.integration.id),
156
- onInvalid: (a) => R(n.integration.id),
157
- onSubmitting: (a) => x(n.integration.id),
158
- onReady: i[2] || (i[2] = (a) => e.$emit("ready"))
159
- }, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "email", "name", "validate-on-submit", "force-store-payment-method", "store-payment-method", "redirects-on-success", "billing-entity-name", "collapsed", "onPaymentFailed", "onPaymentSuccess", "onInvalid", "onSubmitting"])) : V("", !0)
160
- ], 64))), 128)),
161
- g.value ? (d(), I(l(W), {
162
- key: 0,
163
- variant: "error",
164
- class: "mt-2"
165
- }, {
166
- default: K(() => [
167
- Q(U(l(H)({
168
- defaultMessage: "Select a payment method",
169
- id: "payment_integration_form.select_payment_method_error",
170
- description: "Error shown when no payment method is selected"
171
- })), 1)
172
- ]),
173
- _: 1
174
- })) : V("", !0)
175
- ], 64));
176
- }
177
- });
178
- export {
179
- ne as _,
180
- te as h
181
- };