@solvimon/solvimon-web 0.1.0-alpha.28 → 0.1.0-alpha.29

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 (189) hide show
  1. package/README.md +26 -1
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  4. package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
  6. package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  7. package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
  8. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  9. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  10. package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
  11. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  12. package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  13. package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  14. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
  15. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  16. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
  17. package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  18. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  19. package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  20. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  21. package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  22. package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  23. package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
  24. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
  25. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
  26. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  27. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  28. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  29. package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  30. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  31. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  32. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
  33. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  34. package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  35. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
  36. package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  37. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
  38. package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
  39. package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
  40. package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  41. package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  42. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
  43. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
  44. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
  45. package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
  46. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  47. package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
  48. package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  49. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
  50. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  51. package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  52. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  53. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  54. package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
  55. package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
  56. package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  57. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  58. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
  59. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
  60. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  61. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  62. package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  63. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  64. package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
  65. package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
  66. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
  67. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
  68. package/dist/components/Invoice/Invoice.mjs +2660 -193
  69. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
  70. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
  71. package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
  72. package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
  73. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
  74. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
  75. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
  76. package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
  77. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  78. package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
  79. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  80. package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
  81. package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
  82. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  83. package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
  84. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  85. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  86. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  87. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  88. package/dist/index.es-CpmQmvOg.mjs +633 -0
  89. package/dist/index.mjs +2 -2
  90. package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
  91. package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
  92. package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
  93. package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
  94. package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
  95. package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
  96. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  97. package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
  98. package/dist/payments-BnxbzQUC.mjs +68 -0
  99. package/dist/pricing-BOhvWWMj.mjs +29 -0
  100. package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
  101. package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
  102. package/dist/screens/Checkout/Checkout.mjs +2 -2
  103. package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
  104. package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  107. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
  108. package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
  109. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  110. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  111. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
  112. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  113. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  114. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  115. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  116. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  117. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  118. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
  119. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
  120. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  121. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
  122. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  123. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  124. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  125. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  126. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
  127. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  128. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
  129. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  130. package/dist/types/public/core/types.d.ts +5 -0
  131. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
  132. package/dist/types/translations/supported.d.ts +1 -1
  133. package/dist/types/types/portalAuthentication.d.ts +2 -0
  134. package/dist/types/types/portalToken.d.ts +9 -0
  135. package/dist/types/types/shippingAddress.d.ts +9 -0
  136. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  137. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  138. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  139. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  140. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  141. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  142. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  143. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  144. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  145. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  146. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  147. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  148. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  149. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  150. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  151. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  152. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  153. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  154. package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
  155. package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  156. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  157. package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
  158. package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
  159. package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
  160. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  161. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  162. package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
  163. package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
  164. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  165. package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
  166. package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
  167. package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
  168. package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  169. package/package.json +7 -7
  170. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
  171. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
  172. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  173. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
  174. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  175. package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
  176. package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
  177. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
  178. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
  179. package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
  180. package/dist/customElements-Di3zwlEU.mjs +0 -6447
  181. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  182. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  183. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  184. package/dist/payments-Ci8bF4C6.mjs +0 -45
  185. package/dist/subscriptions-CwogJODR.mjs +0 -54
  186. package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
  187. package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
  188. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
  189. package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
package/README.md CHANGED
@@ -30,6 +30,23 @@ An element renders only for a published portal of the type it accepts: `checkout
30
30
  checkout shows its "Checkout not available" notice, and the other elements say that they are no longer
31
31
  available (`sv-portal-unavailable`).
32
32
 
33
+ A portal object whose `authentication` is `SIGNED_TOKEN` carries a handle in `token` rather than a
34
+ portal token. The API returns that handle only in the response that creates the portal URL; a later
35
+ read of the portal URL has no `token`, so keep the one from the create response and pass it on. The
36
+ element exchanges the handle for a token that lasts as long as the link, and exchanges it again when
37
+ the API rejects that token. A link that has expired, was revoked or whose checkout session has
38
+ closed logs `PORTAL_URL_EXPIRED`, `PORTAL_URL_REVOKED` or `CHECKOUT_SESSION_CLOSED` (with the
39
+ session's `status` in `context`) and shows the same notice as a revoked portal. When the API cannot
40
+ verify the link for a while, the element logs `PORTAL_TOKEN_UNAVAILABLE` and offers to try again
41
+ (`sv-portal-unverified`).
42
+
43
+ A host that already exchanged the handle itself can pass the response it got, as it is, as
44
+ `portalToken` next to `portalObject`, so the element signs in without a second exchange. The element
45
+ still needs the handle: when the API rejects the token, it exchanges the handle again. `portalToken`
46
+ is read only when the element signs in, and only for a `SIGNED_TOKEN` portal object. Set it as a
47
+ JavaScript property, like `portalObject`: it is an object so that the token never becomes an HTML
48
+ attribute, which a string property of a custom element does.
49
+
33
50
  ## Usage
34
51
 
35
52
  The SDK ships web components (Custom Elements), and there are two ways to put one on a page.
@@ -157,7 +174,7 @@ one, mount a new element:
157
174
  - the subscription management screen's `configuration.enabledPricingId`, which picks the pricing
158
175
  it opens on.
159
176
 
160
- The supported locales are `en-US`, `nl-NL`, `de-DE` and `it-IT`. Any other — `nl` or `en-GB`, say
177
+ The supported locales are `en-US`, `nl-NL`, `de-DE`, `it-IT` and `fr-FR`. Any other — `nl` or `en-GB`, say
161
178
  — renders in `en-US` and logs `UNSUPPORTED_LOCALE`.
162
179
 
163
180
  ### Navigation requests
@@ -391,13 +408,20 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
391
408
  | `PAYMENT_DETAILS_REJECTED` | Payment details returned a failed payment |
392
409
  | `PAYMENT_INTEGRATION_INITIALIZATION_FAILED` | Failed to mount Adyen web drop-in |
393
410
  | `PAYMENT_METHOD_OPTIONS_LOAD_FAILED` | Failed to load the payment methods that can be offered |
411
+ | `PORTAL_TOKEN_UNAVAILABLE` | Could not exchange the portal link handle for a token |
394
412
  | `PORTAL_TYPE_NOT_ALLOWED` | Reserved — not currently emitted |
413
+ | `PORTAL_URL_EXPIRED` | The portal link has expired |
414
+ | `PORTAL_URL_REVOKED` | The portal link is revoked |
395
415
  | `PROMOTION_CODE_APPLY_FAILED` | Failed to apply promotion code |
396
416
  | `PROMOTION_CODE_REMOVE_FAILED` | Failed to remove promotion code |
397
417
  | `REQUEST_FAILED` | Request failed |
398
418
  | `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
399
419
  | `RESOURCE_REVOKED` | The portal object is not published |
400
420
  | `SESSION_EXPIRED` | Stopped refreshing the access token after repeated 401 responses |
421
+ | `SHIPPED_SUBSCRIPTIONS_LOAD_FAILED` | Failed to find out whether the customer has shipped subscriptions |
422
+ | `SHIPPING_ADDRESSES_LOAD_FAILED` | Failed to load the shipping addresses |
423
+ | `SHIPPING_ADDRESS_DELETE_FAILED` | Failed to delete the shipping address |
424
+ | `SHIPPING_ADDRESS_SAVE_FAILED` | Failed to save the shipping address |
401
425
  | `STRIPE_ACTION_FAILED` | Missing client_secret in Stripe ACTION_REQUIRED response |
402
426
  | `STRIPE_CONFIRMATION_TOKEN_FAILED` | Stripe submission failed |
403
427
  | `STRIPE_REDIRECT_RETURN_FAILED` | Could not retrieve the payment the Stripe redirect returned from |
@@ -418,6 +442,7 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
418
442
  | `APPLE_PAY_ACTION_REQUIRED` | Reserved — not currently emitted |
419
443
  | `APPLE_PAY_FORM_INCOMPLETE` | Apple Pay authorization stopped: the checkout form is incomplete |
420
444
  | `CHECKOUT_FORM_STATE_NOT_SAVED` | Could not keep the checkout form for a redirect return |
445
+ | `CHECKOUT_SESSION_CLOSED` | The checkout session of the portal link is closed |
421
446
  | `INVOICE_PREVIEW_SKIPPED` | Skipped the on-demand charge invoice preview: no schedule to charge it on |
422
447
  | `MISSING_REQUIRED_PROPERTIES` | Not rendering until these properties are set:… |
423
448
  | `ON_DEMAND_CHARGE_REFUSED` | The on-demand order was refused or its payment did not go through |
@@ -1,41 +1,44 @@
1
- import { computed as u, defineComponent as C, toRefs as x, ref as k, openBlock as a, createElementBlock as r, normalizeClass as n, unref as o, createElementVNode as t, createCommentVNode as i, toDisplayString as h, renderSlot as w } from "vue";
2
- const B = "py-2 px-4 text-sm", L = {
1
+ import { computed as i, defineComponent as C, toRefs as x, ref as k, openBlock as n, createElementBlock as u, normalizeClass as t, unref as a, createElementVNode as l, createCommentVNode as r, createBlock as h, withCtx as B, createTextVNode as L, toDisplayString as z, renderSlot as w } from "vue";
2
+ import { d as M } from "./customElements-BTj4ii4f.mjs";
3
+ const $ = "py-2 px-4 text-sm", A = {
3
4
  danger: "text-feedback-danger",
4
5
  neutral: "text-secondary",
5
6
  info: "text-feedback-info",
6
7
  success: "text-feedback-success",
7
8
  warning: "text-feedback-warning"
8
- }, z = {
9
+ }, D = {
9
10
  danger: "bg-feedback-danger",
10
11
  neutral: "bg-feedback-neutral",
11
12
  info: "bg-feedback-info",
12
13
  success: "bg-feedback-success",
13
14
  warning: "bg-feedback-warning"
14
- }, j = {
15
+ }, N = {
15
16
  danger: "rounded-sm border border-red-200",
16
17
  neutral: "rounded-sm border border-gray-200",
17
18
  info: "rounded-sm border border-blue-200",
18
19
  success: "rounded-sm border border-green-200",
19
20
  warning: "rounded-sm border border-yellow-200"
20
- }, M = "ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8", A = {
21
+ }, T = "ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8", V = {
21
22
  danger: "hover:bg-red-200 focus:ring-red-400 bg-red-100 text-red-500",
22
23
  neutral: "hover:bg-gray-200 focus:ring-gray-400 bg-feedback-neutral text-gray-500",
23
24
  info: "hover:bg-blue-200 focus:ring-blue-400 bg-blue-100 text-blue-500",
24
25
  success: "bg-green-100 text-green-500 focus:ring-green-400 hover:bg-green-200",
25
26
  warning: "focus:ring-yellow-400 hover:bg-yellow-200 bg-yellow-100 text-yellow-500"
26
27
  };
27
- function D(e) {
28
- const f = u(
28
+ function j(e) {
29
+ const f = i(
29
30
  () => [
30
- B,
31
- z[e.type.value],
31
+ $,
32
+ D[e.type.value],
32
33
  c.value,
33
- j[e.type.value],
34
+ N[e.type.value],
34
35
  e.inline.value ? "flex items-center" : ""
35
- ].filter((l) => !!l).join(" ")
36
- ), c = u(() => L[e.type.value] ?? ""), g = u(
37
- () => [M, A[e.type.value] ?? ""].filter((l) => !!l).join(" ")
38
- ), d = u(() => e.inline.value ? !e.icon.value && !e.title.value ? "" : e.title.value ? "grow ml-1" : "grow ml-2" : "my-2"), b = u(() => !e.icon.value || !e.inline.value ? ["font-medium", e.inline.value ? "" : "text-lg ml-2"].filter((l) => !!l).join(" ") : ["font-medium ml-2", e.inline.value ? "" : "text-lg"].filter((l) => !!l).join(" "));
36
+ ].filter((o) => !!o).join(" ")
37
+ ), c = i(() => A[e.type.value] ?? ""), g = i(
38
+ () => [T, V[e.type.value] ?? ""].filter((o) => !!o).join(" ")
39
+ ), d = i(() => e.inline.value ? !e.icon.value && !e.title.value ? "" : e.title.value ? "grow ml-1" : "grow ml-2" : "my-2"), b = i(
40
+ () => !e.inline.value || e.icon.value ? "ml-2" : ""
41
+ );
39
42
  return {
40
43
  alertClasses: f,
41
44
  textClasses: c,
@@ -44,10 +47,10 @@ function D(e) {
44
47
  titleClasses: b
45
48
  };
46
49
  }
47
- const $ = {
50
+ const E = {
48
51
  key: 0,
49
52
  class: "ml-auto inline-flex items-center"
50
- }, N = /* @__PURE__ */ C({
53
+ }, R = /* @__PURE__ */ C({
51
54
  __name: "Alert",
52
55
  props: {
53
56
  type: { default: "info" },
@@ -57,90 +60,99 @@ const $ = {
57
60
  inline: { type: Boolean, default: !0 }
58
61
  },
59
62
  setup(e) {
60
- const f = e, { alertClasses: c, textClasses: g, closeClasses: d, contentClasses: b, titleClasses: l } = D(
63
+ const f = e, { alertClasses: c, textClasses: g, closeClasses: d, contentClasses: b, titleClasses: o } = j(
61
64
  x(f)
62
65
  ), m = k(!0), y = () => {
63
66
  m.value = !1;
64
67
  };
65
- return (v, s) => m.value ? (a(), r("div", {
68
+ return (v, s) => m.value ? (n(), u("div", {
66
69
  key: 0,
67
- class: n(o(c)),
70
+ class: t(a(c)),
68
71
  role: "alert"
69
72
  }, [
70
- t("div", {
71
- class: n(e.inline ? "flex" : "flex items-center")
73
+ l("div", {
74
+ class: t(e.inline ? "flex" : "flex items-center")
72
75
  }, [
73
- e.icon ? (a(), r("svg", {
76
+ e.icon ? (n(), u("svg", {
74
77
  key: 0,
75
- class: n(["flex-shrink-0", "w-5", "h-5", o(g)]),
78
+ class: t(["flex-shrink-0", "w-5", "h-5", a(g)]),
76
79
  fill: "currentColor",
77
80
  viewBox: "0 0 20 20",
78
81
  xmlns: "http://www.w3.org/2000/svg"
79
82
  }, [...s[0] || (s[0] = [
80
- t("path", {
83
+ l("path", {
81
84
  "fill-rule": "evenodd",
82
85
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",
83
86
  "clip-rule": "evenodd"
84
87
  }, null, -1)
85
- ])], 2)) : i("", !0),
86
- e.title ? (a(), r("span", {
88
+ ])], 2)) : r("", !0),
89
+ e.title ? (n(), h(M, {
87
90
  key: 1,
88
- class: n(o(l))
89
- }, h(e.title), 3)) : i("", !0),
90
- !e.inline && e.closable ? (a(), r("button", {
91
+ tag: "span",
92
+ variant: e.inline ? "body-sm" : "body-lg",
93
+ weight: "medium",
94
+ color: "inherit",
95
+ class: t(a(o))
96
+ }, {
97
+ default: B(() => [
98
+ L(z(e.title), 1)
99
+ ]),
100
+ _: 1
101
+ }, 8, ["variant", "class"])) : r("", !0),
102
+ !e.inline && e.closable ? (n(), u("button", {
91
103
  key: 2,
92
104
  type: "button",
93
- class: n(o(d)),
105
+ class: t(a(d)),
94
106
  "aria-label": "Close",
95
107
  onClick: y
96
108
  }, [...s[1] || (s[1] = [
97
- t("span", { class: "sr-only" }, "Dismiss", -1),
98
- t("svg", {
109
+ l("span", { class: "sr-only" }, "Dismiss", -1),
110
+ l("svg", {
99
111
  class: "h-5 w-5",
100
112
  fill: "currentColor",
101
113
  viewBox: "0 0 20 20",
102
114
  xmlns: "http://www.w3.org/2000/svg"
103
115
  }, [
104
- t("path", {
116
+ l("path", {
105
117
  "fill-rule": "evenodd",
106
118
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
107
119
  "clip-rule": "evenodd"
108
120
  })
109
121
  ], -1)
110
- ])], 2)) : i("", !0)
122
+ ])], 2)) : r("", !0)
111
123
  ], 2),
112
- t("div", {
113
- class: n(o(b))
124
+ l("div", {
125
+ class: t(a(b))
114
126
  }, [
115
127
  w(v.$slots, "default")
116
128
  ], 2),
117
- v.$slots.actions ? (a(), r("div", $, [
129
+ v.$slots.actions ? (n(), u("div", E, [
118
130
  w(v.$slots, "actions")
119
- ])) : i("", !0),
120
- e.inline && e.closable ? (a(), r("button", {
131
+ ])) : r("", !0),
132
+ e.inline && e.closable ? (n(), u("button", {
121
133
  key: 1,
122
134
  type: "button",
123
- class: n(o(d)),
135
+ class: t(a(d)),
124
136
  "aria-label": "Close",
125
137
  onClick: y
126
138
  }, [...s[2] || (s[2] = [
127
- t("span", { class: "sr-only" }, "Dismiss", -1),
128
- t("svg", {
139
+ l("span", { class: "sr-only" }, "Dismiss", -1),
140
+ l("svg", {
129
141
  class: "h-5 w-5",
130
142
  fill: "currentColor",
131
143
  viewBox: "0 0 20 20",
132
144
  xmlns: "http://www.w3.org/2000/svg"
133
145
  }, [
134
- t("path", {
146
+ l("path", {
135
147
  "fill-rule": "evenodd",
136
148
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
137
149
  "clip-rule": "evenodd"
138
150
  })
139
151
  ], -1)
140
- ])], 2)) : i("", !0)
141
- ], 2)) : i("", !0);
152
+ ])], 2)) : r("", !0)
153
+ ], 2)) : r("", !0);
142
154
  }
143
155
  });
144
156
  export {
145
- N as _
157
+ R as _
146
158
  };
@@ -0,0 +1,50 @@
1
+ import { f as c } from "./customElements-BTj4ii4f.mjs";
2
+ const r = [1e3, 2e3, 4e3], d = {
3
+ PORTAL_URL_EXPIRED: "expired",
4
+ PORTAL_URL_REVOKED: "revoked",
5
+ CHECKOUT_SESSION_CLOSED: "closed"
6
+ }, i = (e) => !c(e) || e.statusCode >= 500 || e.statusCode === 429, E = (e) => new Promise((t) => setTimeout(t, e));
7
+ function s(e, t) {
8
+ if (c(t) && t.statusCode === 410) {
9
+ e.clearToken();
10
+ const a = d[t.errorCode ?? ""] ?? "expired", { checkoutSessionStatus: o } = t;
11
+ e.setStatus({
12
+ state: "ended",
13
+ reason: a,
14
+ ...o ? { checkoutSessionStatus: o } : {}
15
+ }), e.forEachLogger((n) => {
16
+ a === "closed" ? n.warn(
17
+ "CHECKOUT_SESSION_CLOSED",
18
+ "The checkout session of the portal link is closed",
19
+ { status: o },
20
+ t
21
+ ) : a === "revoked" ? n.error("PORTAL_URL_REVOKED", "The portal link is revoked", {}, t) : n.error("PORTAL_URL_EXPIRED", "The portal link has expired", {}, t);
22
+ });
23
+ return;
24
+ }
25
+ if (i(t)) {
26
+ e.markUnverified(t);
27
+ return;
28
+ }
29
+ e.hasToken() || e.setStatus({ state: "invalid" }), e.forEachLogger(
30
+ (a) => a.error("INVALID_TOKEN", "Failed to fetch access token", {}, t)
31
+ );
32
+ }
33
+ async function f(e, t) {
34
+ for (let a = 0; ; a++)
35
+ try {
36
+ const o = await t.exchangeHandle(e);
37
+ return t.applyToken(o), o.access_token;
38
+ } catch (o) {
39
+ const n = r[a];
40
+ if (i(o) && n !== void 0) {
41
+ if (await E(n), t.isAbandoned()) return;
42
+ continue;
43
+ }
44
+ s(t, o);
45
+ return;
46
+ }
47
+ }
48
+ export {
49
+ f as runExchange
50
+ };
@@ -1,5 +1,5 @@
1
1
  import { ref as f, watch as g, defineComponent as h, computed as x, openBlock as i, createElementBlock as s, normalizeStyle as u, normalizeClass as d, toDisplayString as v, createBlock as b, unref as m, createCommentVNode as k, createElementVNode as y } from "vue";
2
- import { a as w } from "./Button.vue.es-rh6mITmN.mjs";
2
+ import { a as w } from "./Button.vue.es-Zw--kuaU.mjs";
3
3
  const z = (e) => {
4
4
  const t = f(), l = (n) => {
5
5
  let a = 0;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as f, computed as u, openBlock as n, createBlock as e, unref as t, createSlots as p, withCtx as s, createVNode as d, createTextVNode as _, toDisplayString as g } from "vue";
2
- import { _ as v } from "./Button.vue.es-rh6mITmN.mjs";
3
- import { _ as b } from "./CustomerBillingInformation.vue.es-DQfL5RMR.mjs";
4
- import { a as h } from "./customElements-Di3zwlEU.mjs";
2
+ import { _ as v } from "./Button.vue.es-Zw--kuaU.mjs";
3
+ import { _ as b } from "./CustomerBillingInformation.vue.es-B8NiQaJs.mjs";
4
+ import { a as h } from "./customElements-BTj4ii4f.mjs";
5
5
  import { _ as k } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
6
- import { u as y } from "./useActionDispatchProvider-DC_fUykI.mjs";
7
- import { r as x } from "./configuration-BytDBAWs.mjs";
6
+ import { u as x } from "./useActionDispatchProvider-3W2vEyIg.mjs";
7
+ import { r as y } from "./configuration-BytDBAWs.mjs";
8
8
  const T = /* @__PURE__ */ f({
9
9
  __name: "BillingInformation",
10
10
  props: {
@@ -16,8 +16,8 @@ const T = /* @__PURE__ */ f({
16
16
  const r = {
17
17
  showEditButton: !0
18
18
  }, a = o, c = u(
19
- () => x(r, a.configuration)
20
- ), { $t: m } = h(), { dispatchAction: l } = y();
19
+ () => y(r, a.configuration)
20
+ ), { $t: m } = h(), { dispatchAction: l } = x();
21
21
  return (B, i) => o.isLoading ? (n(), e(k, {
22
22
  key: 0,
23
23
  variant: "section",
@@ -32,7 +32,7 @@ const T = /* @__PURE__ */ f({
32
32
  name: "settings",
33
33
  fn: s(() => [
34
34
  d(t(v), {
35
- size: "sm",
35
+ size: "xs",
36
36
  intent: "subtle",
37
37
  "icon-prefix": "edit",
38
38
  class: "sv-action sv-action--ghost sv-billing-information__edit",
@@ -1,5 +1,5 @@
1
- import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as _, computed as n, ref as I, toRefs as S, unref as o, createBlock as R, resolveDynamicComponent as q, withCtx as $, createVNode as z, createCommentVNode as d, renderSlot as k, mergeDefaults as V } from "vue";
2
- import { _ as M } from "./customElements-Di3zwlEU.mjs";
1
+ import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as I, computed as n, ref as _, toRefs as S, unref as o, createBlock as R, resolveDynamicComponent as q, withCtx as $, createVNode as z, createCommentVNode as d, renderSlot as k, mergeDefaults as V } from "vue";
2
+ import { d as M } from "./customElements-BTj4ii4f.mjs";
3
3
  const N = {
4
4
  class: "h-full w-full",
5
5
  xmlns: "http://www.w3.org/2000/svg",
@@ -127,7 +127,7 @@ const N = {
127
127
  lg: { compactLeft: "pl-3", compactRight: "pr-3", spaciousLeft: "pl-6", spaciousRight: "pr-6" }
128
128
  };
129
129
  function J(e) {
130
- const t = _(), s = n(() => !!(t.prefix || e.iconPrefix.value)), l = n(() => !!(t.suffix || e.iconSuffix.value)), a = n(() => !!t.default), f = n(
130
+ const t = I(), s = n(() => !!(t.prefix || e.iconPrefix.value)), l = n(() => !!(t.suffix || e.iconSuffix.value)), a = n(() => !!t.default), f = n(
131
131
  () => !a.value && (s.value || l.value)
132
132
  ), h = n(
133
133
  () => {
@@ -186,7 +186,7 @@ function U(e) {
186
186
  return { size: t, color: s };
187
187
  }
188
188
  function W(e = 500) {
189
- const t = I(!1);
189
+ const t = _(!1);
190
190
  function s(l) {
191
191
  if (!t.value) {
192
192
  t.value = !0;
@@ -1,21 +1,22 @@
1
1
  import { defineComponent as ce, openBlock as i, createElementBlock as k, normalizeClass as G, createCommentVNode as M, useModel as Ee, computed as o, createBlock as h, createElementVNode as N, createVNode as b, withCtx as c, createTextVNode as v, toDisplayString as p, unref as n, Fragment as We, renderList as qe, renderSlot as je, mergeModels as Ae, ref as D, watch as J, reactive as Ke } from "vue";
2
- import { u as Xe, d as Pe } from "./formControl-CsITfsBk.mjs";
2
+ import { u as Xe, c as Pe } from "./formControl-BZQLHnOO.mjs";
3
3
  import { f as Je } from "./formatting.es-RclXHhKo.mjs";
4
- import { _ as P } from "./Button.vue.es-rh6mITmN.mjs";
5
- import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-DufQX3uI.mjs";
6
- import { a as De, _ as ta } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs";
7
- import { _ as na } from "./PaymentMethod.vue.es-Cauxx4Xr.mjs";
8
- import { a as Te, _ as $, d as Oe, j as ke } from "./customElements-Di3zwlEU.mjs";
9
- import { _ as oa } from "./ErrorNotification.vue.es-CKlt4hr2.mjs";
10
- import { _ as Ce } from "./FormMessage.vue.es-jG3fQZms.mjs";
11
- import { _ as da } from "./RadioGroupExtended.vue.es-UtKsdmiv.mjs";
12
- import { _ as ia } from "./StepInput.vue.es-Dpan1RQd.mjs";
13
- import { _ as ra } from "./IconButton.vue.es-oe4MVBK1.mjs";
14
- import { _ as sa } from "./floating-ui.vue.es-CYt0fSY7.mjs";
15
- import { _ as la } from "./Section.vue.es-iS8hVGWA.mjs";
16
- import { g as ca, a as ma, b as ua, c as ha, d as va, i as pa } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs";
17
- import { c as ga } from "./invoices-Cf1qDAv4.mjs";
18
- import { i as fa } from "./invoiceState-BJVHaKs7.mjs";
4
+ import { _ as P } from "./Button.vue.es-Zw--kuaU.mjs";
5
+ import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-D5SwM0YS.mjs";
6
+ import { _ as De } from "./InvoicePreview.vue.es-4Q2hzaFS.mjs";
7
+ import { _ as ta } from "./PaymentMethod.vue.es-b0p3a0L-.mjs";
8
+ import { a as Te, d as $, e as Oe, f as ke } from "./customElements-BTj4ii4f.mjs";
9
+ import { _ as na } from "./ErrorNotification.vue.es-DNd65mQq.mjs";
10
+ import { _ as Ce } from "./FormMessage.vue.es-Cjv358Ab.mjs";
11
+ import { _ as oa } from "./RadioGroupExtended.vue.es-3nDXqIGi.mjs";
12
+ import { _ as da } from "./StepInput.vue.es-DweyzpkL.mjs";
13
+ import { _ as ia } from "./IconButton.vue.es-C8lYFx5_.mjs";
14
+ import { _ as ra } from "./useLazyFloating.es-CycqRyeb.mjs";
15
+ import { _ as sa } from "./Section.vue.es-CvX9tg2f.mjs";
16
+ import { g as la, b as ca, c as ma, d as ua, e as ha, i as va } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs";
17
+ import { c as pa } from "./invoices-e1sKLgxg.mjs";
18
+ import { i as ga } from "./invoiceState-BJVHaKs7.mjs";
19
+ import { _ as fa } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs";
19
20
  const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toUpperCase()), _a = (e) => {
20
21
  var y, d, _, a, E, s;
21
22
  const g = [];
@@ -69,7 +70,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
69
70
  }, null, 2)) : M("", !0)
70
71
  ], 2));
71
72
  }
72
- }), le = /* @__PURE__ */ sa(ya, [["__scopeId", "data-v-11677ac2"]]), ba = { class: "flex flex-col gap-6" }, wa = {
73
+ }), le = /* @__PURE__ */ ra(ya, [["__scopeId", "data-v-11677ac2"]]), ba = { class: "flex flex-col gap-6" }, wa = {
73
74
  class: "flex flex-col gap-3",
74
75
  "aria-labelledby": "charge-on-demand-items-heading"
75
76
  }, Ia = { class: "flex flex-col gap-2" }, Ma = { class: "flex min-w-0 grow flex-col" }, Ea = {
@@ -145,7 +146,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
145
146
  return (t, f) => {
146
147
  var A, R, W;
147
148
  return i(), k("div", ba, [
148
- (A = e.errors) != null && A.form ? (i(), h(oa, {
149
+ (A = e.errors) != null && A.form ? (i(), h(na, {
149
150
  key: 0,
150
151
  description: e.errors.form
151
152
  }, null, 8, ["description"])) : M("", !0),
@@ -204,7 +205,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
204
205
  ]),
205
206
  m.priceType === "FLAT" && C ? (i(), k("div", Ea, [
206
207
  N("div", Aa, [
207
- b(ia, {
208
+ b(da, {
208
209
  "model-value": C.units ?? m.defaultUnits,
209
210
  "initial-value": m.defaultUnits,
210
211
  min: 1,
@@ -214,7 +215,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
214
215
  "onUpdate:modelValue": (F) => g(m, F)
215
216
  }, null, 8, ["model-value", "initial-value", "name", "disabled", "onUpdate:modelValue"])
216
217
  ]),
217
- b(ra, {
218
+ b(ia, {
218
219
  type: "button",
219
220
  icon: "close",
220
221
  intent: "subtle",
@@ -339,7 +340,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
339
340
  ]),
340
341
  _: 1
341
342
  }),
342
- e.paymentMethods.length > 0 ? (i(), h(da, {
343
+ e.paymentMethods.length > 0 ? (i(), h(oa, {
343
344
  key: 0,
344
345
  modelValue: _.value,
345
346
  "onUpdate:modelValue": f[0] || (f[0] = (m) => _.value = m),
@@ -351,7 +352,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
351
352
  direction: "column"
352
353
  }, {
353
354
  label: c(({ optionValue: m }) => [
354
- u.value.get(m) ? (i(), h(na, {
355
+ u.value.get(m) ? (i(), h(ta, {
355
356
  key: 0,
356
357
  "payment-method": u.value.get(m)
357
358
  }, null, 8, ["payment-method"])) : M("", !0)
@@ -413,7 +414,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toU
413
414
  function xa({
414
415
  pricingPlanScheduleId: e
415
416
  }) {
416
- const { chargeOnDemandPricingItems: y } = ga(), d = Oe(), _ = D(!1), a = D(), E = D(), s = D();
417
+ const { chargeOnDemandPricingItems: y } = pa(), d = Oe(), _ = D(!1), a = D(), E = D(), s = D();
417
418
  return { isCharging: _, chargedInvoice: a, chargeError: E, unpaidInvoiceId: s, charge: async ({
418
419
  pricingItems: O,
419
420
  paymentMethodId: x
@@ -428,7 +429,7 @@ function xa({
428
429
  });
429
430
  return a.value = u, { invoice: u };
430
431
  } catch (u) {
431
- const T = ca(u);
432
+ const T = la(u);
432
433
  E.value = T, s.value = T === "PAYMENT_FAILED" && ke(u) ? u.resourceId : void 0;
433
434
  const t = {
434
435
  scheduleId: e.value,
@@ -466,7 +467,7 @@ const Sa = {
466
467
  }, Na = {
467
468
  key: 2,
468
469
  class: "flex flex-col gap-2"
469
- }, et = /* @__PURE__ */ ce({
470
+ }, at = /* @__PURE__ */ ce({
470
471
  __name: "ChargeOnDemandModal",
471
472
  props: {
472
473
  showModal: { type: Boolean },
@@ -504,7 +505,7 @@ const Sa = {
504
505
  open: A,
505
506
  leave: R,
506
507
  submit: W
507
- } = ma({ step: s, name: "ADD_PAYMENT_METHOD", returnTo: "ORDER" }), m = D(!1), C = D(), S = (r) => {
508
+ } = ca({ step: s, name: "ADD_PAYMENT_METHOD", returnTo: "ORDER" }), m = D(!1), C = D(), S = (r) => {
508
509
  m.value = !0, E.error(
509
510
  "PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
510
511
  "Failed to load the payment methods that can be offered",
@@ -519,7 +520,7 @@ const Sa = {
519
520
  settledOptions: q,
520
521
  isPending: F,
521
522
  load: xe
522
- } = ua({
523
+ } = ma({
523
524
  isOpen: o(() => d.showModal && O.value),
524
525
  customer: o(() => d.customer),
525
526
  subscriptionId: o(() => d.subscription.id),
@@ -573,7 +574,7 @@ const Sa = {
573
574
  return l.length > 0 ? Object.fromEntries(l) : void 0;
574
575
  }), ve = o(
575
576
  () => g.value.length > 0 && !Q.value ? aa(g.value, d.items) : void 0
576
- ), { invoicePreview: pe, isPreviewPending: j, hasPreviewFailed: ge, loadPreview: $e } = ha({
577
+ ), { invoicePreview: pe, isPreviewPending: j, hasPreviewFailed: ge, loadPreview: $e } = ua({
577
578
  pricingPlanScheduleId: o(() => d.scheduleId),
578
579
  pricingItems: ve
579
580
  }), Z = o(() => {
@@ -631,7 +632,7 @@ const Sa = {
631
632
  () => Be.value ?? Ue.value ?? C.value
632
633
  ), Ve = o(
633
634
  () => fe.value || he.value ? { form: fe.value, items: he.value } : void 0
634
- ), K = o(() => s.value === "PLACED"), X = o(() => !!z.value && fa(z.value)), _e = o(() => s.value === "PAYMENT_FAILED" || s.value === "FAILED"), ye = o(
635
+ ), K = o(() => s.value === "PLACED"), X = o(() => !!z.value && ga(z.value)), _e = o(() => s.value === "PAYMENT_FAILED" || s.value === "FAILED"), ye = o(
635
636
  () => !L.value && O.value && !Ye.value && g.value.length > 0 && !Q.value && !!w.value && !!Z.value && !j.value
636
637
  ), ze = o(() => s.value === "PLACED" ? a({
637
638
  defaultMessage: "Order placed",
@@ -730,7 +731,7 @@ const Sa = {
730
731
  pricingItems: r,
731
732
  paymentMethodId: w.value
732
733
  });
733
- "invoice" in l ? (_("invoice-created", l.invoice), s.value = "PLACED") : pa(l.error) || (s.value = l.error);
734
+ "invoice" in l ? (_("invoice-created", l.invoice), s.value = "PLACED") : va(l.error) || (s.value = l.error);
734
735
  }, te = () => {
735
736
  if (t.value) {
736
737
  W();
@@ -775,7 +776,7 @@ const Sa = {
775
776
  (r) => {
776
777
  r && (s.value = "ORDER", g.value = [], u.value = void 0, Fe(), C.value = void 0);
777
778
  }
778
- ), (r, l) => (i(), h(va, {
779
+ ), (r, l) => (i(), h(ha, {
779
780
  ref_key: "addPaymentMethodRef",
780
781
  ref: T,
781
782
  class: "sv-charge-on-demand-modal",
@@ -812,7 +813,7 @@ const Sa = {
812
813
  disabled: n(L),
813
814
  "can-add-payment-method": "",
814
815
  onAddPaymentMethod: Le
815
- }, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(ta, {
816
+ }, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(fa, {
816
817
  key: 1,
817
818
  class: "sv-charge-on-demand-modal__unavailable",
818
819
  icon: "credit_card_off"
@@ -835,7 +836,7 @@ const Sa = {
835
836
  }))
836
837
  ]),
837
838
  PLACED: c(() => [
838
- n(z) ? (i(), h(n(la), {
839
+ n(z) ? (i(), h(n(sa), {
839
840
  key: 0,
840
841
  class: "sv-charge-on-demand-modal__receipt",
841
842
  "content-background": "none"
@@ -959,5 +960,5 @@ const Sa = {
959
960
  }
960
961
  });
961
962
  export {
962
- et as default
963
+ at as default
963
964
  };