@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
@@ -0,0 +1,441 @@
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-BTj4ii4f.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-4Q2hzaFS.mjs";
6
+ import { _ as F } from "./InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs";
7
+ import { _ as C } from "./Section.vue.es-CvX9tg2f.mjs";
8
+ import { g as Q } from "./getComposedString.es-C__uhJpd.mjs";
9
+ import { i as X } from "./useService-BZcbUZHI.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
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as i, computed as d, openBlock as a, createBlock as s, withCtx as r, unref as o, createTextVNode as m, toDisplayString as l, createCommentVNode as u } from "vue";
2
+ import { a as p, d as f } from "./customElements-BTj4ii4f.mjs";
3
+ import { _ } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs";
4
+ const w = /* @__PURE__ */ i({
5
+ __name: "PaymentCompletedCard",
6
+ props: {
7
+ variant: { type: String },
8
+ redirecting: { type: Boolean }
9
+ },
10
+ setup(t) {
11
+ const n = t, { $t: e } = p(), c = d(
12
+ () => n.variant === "AUTHORIZE" ? e({
13
+ defaultMessage: "Payment successful",
14
+ description: "The title for when a payment has been successful",
15
+ id: "payment_completed_card.title.authorize"
16
+ }) : e({
17
+ defaultMessage: "Your payment method is added",
18
+ description: "The title for when a payment method was successfully added",
19
+ id: "payment_completed_card.title.tokenize"
20
+ })
21
+ );
22
+ return (y, h) => (a(), s(_, {
23
+ status: "success",
24
+ title: c.value
25
+ }, {
26
+ default: r(() => [
27
+ t.redirecting ? (a(), s(o(f), {
28
+ key: 0,
29
+ variant: "body-xs",
30
+ color: "subtle"
31
+ }, {
32
+ default: r(() => [
33
+ m(l(o(e)({
34
+ defaultMessage: "You are being redirected...",
35
+ description: "The text shown after a successful message before a redirect",
36
+ id: "payment_completed_card.redirect_message"
37
+ })), 1)
38
+ ]),
39
+ _: 1
40
+ })) : u("", !0)
41
+ ]),
42
+ _: 1
43
+ }, 8, ["title"]));
44
+ }
45
+ });
46
+ export {
47
+ w as _
48
+ };