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

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 (432) hide show
  1. package/README.md +126 -17
  2. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  3. package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
  5. package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
  6. package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
  7. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
  8. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
  9. package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
  10. package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
  11. package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
  12. package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
  13. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
  14. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
  15. package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
  16. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
  17. package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
  18. package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
  19. package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
  20. package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
  21. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
  22. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
  23. package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
  24. package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
  25. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
  26. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
  27. package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
  28. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
  29. package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
  30. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
  31. package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
  32. package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
  33. package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
  34. package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
  35. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
  36. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
  37. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
  38. package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
  39. package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
  40. package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
  41. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
  42. package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
  43. package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
  44. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
  45. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
  46. package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
  47. package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
  48. package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
  49. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
  50. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
  51. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
  52. package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
  53. package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
  54. package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
  55. package/dist/amount-CondixVt.mjs +36 -0
  56. package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
  57. package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
  58. package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
  59. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
  60. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
  61. package/dist/components/Invoice/Invoice.mjs +206 -209
  62. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
  63. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
  64. package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
  65. package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
  66. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
  67. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
  68. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
  69. package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
  70. package/dist/core/index.mjs +61 -95
  71. package/dist/customElements-Di3zwlEU.mjs +6447 -0
  72. package/dist/customer-CqddTiOr.mjs +31 -0
  73. package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
  74. package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
  75. package/dist/formControl-CsITfsBk.mjs +749 -0
  76. package/dist/index.mjs +2 -2
  77. package/dist/invoiceState-BJVHaKs7.mjs +14 -0
  78. package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
  79. package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
  80. package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
  81. package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
  82. package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
  83. package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
  84. package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
  85. package/dist/payments-Ci8bF4C6.mjs +45 -0
  86. package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
  87. package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
  88. package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
  89. package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
  90. package/dist/screens/Checkout/Checkout.mjs +2 -2
  91. package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
  92. package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
  93. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
  94. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  95. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
  96. package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
  97. package/dist/sorting.es-qtEN8J8T.mjs +77 -0
  98. package/dist/subscription-BhxoqwcT.mjs +83 -0
  99. package/dist/subscriptions-CwogJODR.mjs +54 -0
  100. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
  101. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  102. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
  103. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  104. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  105. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  106. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  107. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  108. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
  109. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
  110. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  111. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
  112. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  113. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  114. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  115. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  116. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  117. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  118. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  119. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  120. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  121. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  122. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  123. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  124. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  125. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  126. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  127. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  128. package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
  129. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  130. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  131. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  132. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  133. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  134. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  135. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  136. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
  137. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  138. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  139. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  140. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  141. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  142. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  143. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  144. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  145. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  146. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  147. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  148. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  149. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  150. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  151. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  152. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  153. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  154. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  155. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  156. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  157. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  158. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  159. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  160. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  161. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  162. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  163. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  164. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  165. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  166. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  167. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  168. package/dist/types/public/core/action-request.types.d.ts +5 -0
  169. package/dist/types/public/core/registry.ce.d.ts +3 -3
  170. package/dist/types/public/core/registry.d.ts +0 -3
  171. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  172. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  173. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  174. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  175. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  176. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
  177. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  178. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  179. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  180. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  181. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  182. package/dist/types/services/requests.types.d.ts +16 -6
  183. package/dist/types/types/errors.d.ts +3 -2
  184. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  185. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  186. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  187. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  188. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  189. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  190. package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
  191. package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
  192. package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
  193. package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
  194. package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
  195. package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
  196. package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
  197. package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
  198. package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
  199. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
  200. package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
  201. package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
  202. package/dist/usePortal-CxzKGhbK.mjs +7 -0
  203. package/dist/useService-B0OQJmif.mjs +56 -0
  204. package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
  205. package/dist/useViewport-psZejz_H.mjs +19 -0
  206. package/package.json +28 -55
  207. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
  208. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
  209. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  210. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  211. package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
  212. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
  213. package/dist/Button.vue.es-BzkuglKw.js +0 -1
  214. package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
  215. package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
  216. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
  217. package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
  218. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  219. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  220. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  221. package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
  222. package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
  223. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  224. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
  225. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
  226. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
  227. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  228. package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
  229. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
  230. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
  231. package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
  232. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  233. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  234. package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
  235. package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
  236. package/dist/Input.vue.es-B60eK8Ds.js +0 -1
  237. package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
  238. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
  239. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
  240. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
  241. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
  242. package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
  243. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
  244. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
  245. package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
  246. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
  247. package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
  248. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
  249. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
  250. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
  251. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
  252. package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
  253. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
  254. package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
  255. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
  256. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
  257. package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
  258. package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
  259. package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
  260. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
  261. package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
  262. package/dist/Section.vue.es-Bbt0RITt.js +0 -1
  263. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
  264. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
  265. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
  266. package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
  267. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
  268. package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
  269. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
  270. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
  271. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
  272. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
  273. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
  274. package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
  275. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  276. package/dist/ach.svg.es-BYP873jU.js +0 -1
  277. package/dist/adyen-BJfC7N6f.js +0 -1
  278. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  279. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  280. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  281. package/dist/api.es-duCDtZD9.js +0 -1
  282. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  283. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  284. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  285. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  286. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  287. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  288. package/dist/cn.es-C9Yqq4tg.js +0 -1
  289. package/dist/comparators.es-OGt19O9U.js +0 -1
  290. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  291. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  292. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  293. package/dist/components/Invoice/Invoice.cjs +0 -1
  294. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  295. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  296. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  297. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  298. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  299. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  300. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  301. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  302. package/dist/configuration-akTS7Wiw.js +0 -1
  303. package/dist/core/index.cjs +0 -1
  304. package/dist/countryData.es-C4jHBzfo.js +0 -1
  305. package/dist/customElements-B58FcXIN.mjs +0 -6633
  306. package/dist/customElements-DUMRMFQ5.js +0 -1215
  307. package/dist/customer-B3LPAhaD.mjs +0 -31
  308. package/dist/customer-CisTPaXj.js +0 -1
  309. package/dist/customer.es-BButyYo0.js +0 -1
  310. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  311. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  312. package/dist/de-DE-B4TUdnUf.js +0 -1
  313. package/dist/de-DE-DL74pMLb.js +0 -1
  314. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  315. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  316. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  317. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  318. package/dist/en-US-B2XFj-_p.js +0 -1
  319. package/dist/en-US-DQ5vlv9Z.mjs +0 -339
  320. package/dist/en-US-J85TQRI8.js +0 -1
  321. package/dist/en-US-SDhjlY_v.mjs +0 -301
  322. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  323. package/dist/error-BHVZJGwD.mjs +0 -13
  324. package/dist/error-CmduqgVq.js +0 -1
  325. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  326. package/dist/formControl-ODrpUvcA.js +0 -1
  327. package/dist/formControl-dX7l8o3c.mjs +0 -845
  328. package/dist/formatting.es-C72Nsrmh.js +0 -1
  329. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  330. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  331. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  332. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  333. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  334. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  335. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  336. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  337. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  338. package/dist/index-BPZPnOQQ.js +0 -7
  339. package/dist/index.cjs +0 -1
  340. package/dist/index.es-BclokHQX.js +0 -1
  341. package/dist/invoices-CKQBLar2.js +0 -1
  342. package/dist/it-IT-CSYvGmpT.js +0 -1
  343. package/dist/it-IT-CqNK62qe.js +0 -1
  344. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  345. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  346. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  347. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  348. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  349. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  350. package/dist/nl-NL-CpE4IgwO.js +0 -1
  351. package/dist/nl-NL-Dx-TNXQ1.js +0 -1
  352. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  353. package/dist/object.es-CdriXMPs.js +0 -1
  354. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  355. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  356. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  357. package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
  358. package/dist/paymentMethods-Cw-i95mM.js +0 -1
  359. package/dist/payments-2qeQdpiW.mjs +0 -45
  360. package/dist/payments-CS7_YcOW.js +0 -1
  361. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  362. package/dist/pricing-BIMpDI_p.mjs +0 -29
  363. package/dist/pricing-BOqG21f9.js +0 -1
  364. package/dist/pricing.es-C07bgEZx.js +0 -1
  365. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  366. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  367. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  368. package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
  369. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
  370. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  371. package/dist/screens/Checkout/Checkout.cjs +0 -1
  372. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  373. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  374. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  375. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  376. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  377. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  378. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  379. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  380. package/dist/slots.es-T9ZJRGtG.js +0 -1
  381. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  382. package/dist/sorting.es-DQsjKr8A.js +0 -1
  383. package/dist/star.svg.es-D2JncY7b.js +0 -1
  384. package/dist/subscription-D1yHKUNc.mjs +0 -69
  385. package/dist/subscription-ZA62t4E9.js +0 -1
  386. package/dist/subscriptions-DcfcBYAq.mjs +0 -55
  387. package/dist/subscriptions-DwVsf4Ev.js +0 -1
  388. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  389. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  390. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  391. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  392. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  393. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  394. package/dist/types/services/portals.types.d.ts +0 -70
  395. package/dist/types/types/subscription.d.ts +0 -4
  396. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  397. package/dist/url-TNRgVI8A.mjs +0 -21
  398. package/dist/url-vloPOiXd.js +0 -1
  399. package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
  400. package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
  401. package/dist/useCustomer-BwZKd9i5.js +0 -1
  402. package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
  403. package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
  404. package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
  405. package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
  406. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  407. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  408. package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
  409. package/dist/useInvoiceData-CNV_FMV8.js +0 -1
  410. package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
  411. package/dist/useInvoicesList-S0IbQcrD.js +0 -1
  412. package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
  413. package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
  414. package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
  415. package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
  416. package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
  417. package/dist/usePayments-DDSjo0rH.js +0 -1
  418. package/dist/usePortal-C27omjhz.js +0 -1
  419. package/dist/usePortal-C5AsegpS.mjs +0 -11
  420. package/dist/useService-Bh47bllz.mjs +0 -50
  421. package/dist/useService-H7BjLg8P.js +0 -1
  422. package/dist/useSubscription-BZJL0VOA.mjs +0 -210
  423. package/dist/useSubscription-D787IXY-.js +0 -1
  424. package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
  425. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  426. package/dist/useViewport-hPRVDWCm.js +0 -1
  427. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  428. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  429. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  430. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  431. package/dist/wallets.es-CNIMW5ay.js +0 -1
  432. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -1,500 +0,0 @@
1
- import { defineComponent as w, provide as x, computed as v, openBlock as a, createElementBlock as _, renderSlot as g, inject as k, normalizeClass as $, createBlock as h, resolveDynamicComponent as E, unref as t, createCommentVNode as z, normalizeStyle as j, withCtx as s, createVNode as c, createTextVNode as p, toDisplayString as b, useSlots as H, ref as M, Fragment as K, renderList as O, createSlots as W, createElementVNode as C, withModifiers as F } from "vue";
2
- import { _ as U } from "./Section.vue.es-DVEpre9O.mjs";
3
- import { a as R, _ as L } from "./customElements-B58FcXIN.mjs";
4
- import { _ as q } from "./Amount.vue.es-DPqHB8Xd.mjs";
5
- import { a as I, _ as N } from "./Button.vue.es-Cmjfm4jw.mjs";
6
- import { _ as G } from "./Chip.vue.es-DksjbJO8.mjs";
7
- import { _ as J, T as Q, a as X } from "./TooltipParagraph.vue.es-B9A17aG7.mjs";
8
- import { _ as Y } from "./floating-ui.vue.es-CYt0fSY7.mjs";
9
- import { u as Z } from "./useActionDispatchProvider-B3AvkLL2.mjs";
10
- import { r as ee } from "./configuration-BytDBAWs.mjs";
11
- import { u as te } from "./useIncrementalLoading-Cgxw2GD7.mjs";
12
- import { c as oe } from "./invoices-3520M5AN.mjs";
13
- const S = Symbol("tableInset"), D = Symbol("tableSorting"), A = Symbol("tableRowDetail"), P = Symbol("tableHeadEmphasize"), V = Symbol("tableRowLink"), ie = { class: "solvimon-table w-full text-left text-sm" }, se = /* @__PURE__ */ w({
14
- __name: "Table",
15
- props: {
16
- inset: { type: Boolean, default: !1 },
17
- sorting: {}
18
- },
19
- setup(e) {
20
- const i = e;
21
- return x(
22
- S,
23
- v(() => i.inset)
24
- ), x(
25
- D,
26
- v(() => i.sorting)
27
- ), (n, o) => (a(), _("table", ie, [
28
- g(n.$slots, "default")
29
- ]));
30
- }
31
- }), ae = ["colspan"], ne = {
32
- key: 0,
33
- class: "solvimon-table__row-link"
34
- }, B = /* @__PURE__ */ w({
35
- __name: "TableCell",
36
- props: {
37
- primary: { type: Boolean },
38
- align: { default: "start" },
39
- verticalAlign: { default: "middle" },
40
- truncate: { type: Boolean },
41
- colspan: {}
42
- },
43
- setup(e) {
44
- const i = e, n = k(S, void 0), o = k(A, void 0), l = k(V, void 0), m = (l == null ? void 0 : l.claim()) ?? !1, f = l == null ? void 0 : l.slot, r = v(() => m && (l == null ? void 0 : l.enabled.value)), u = v(() => [
45
- i.align === "end" ? "text-right" : "text-left",
46
- i.verticalAlign === "top" ? "align-top" : "align-middle",
47
- {
48
- "first:pl-0": !(n != null && n.value),
49
- "h-12": !(o != null && o.value),
50
- "max-w-0 truncate": i.truncate,
51
- "font-semibold": i.primary
52
- }
53
- ]);
54
- return (d, y) => (a(), _("td", {
55
- class: $([u.value, "solvimon-table__cell whitespace-nowrap px-4 py-2 text-sm leading-5 text-default"]),
56
- colspan: e.colspan
57
- }, [
58
- r.value ? (a(), _("span", ne, [
59
- (a(), h(E(t(f))))
60
- ])) : z("", !0),
61
- g(d.$slots, "default")
62
- ], 10, ae));
63
- }
64
- }), le = /* @__PURE__ */ w({
65
- __name: "TableHead",
66
- props: {
67
- emphasize: { type: Boolean, default: !1 }
68
- },
69
- setup(e) {
70
- const i = e;
71
- return x(
72
- P,
73
- v(() => i.emphasize)
74
- ), (n, o) => (a(), _("thead", null, [
75
- g(n.$slots, "default")
76
- ]));
77
- }
78
- }), ce = ["colspan", "aria-sort"], re = {
79
- key: 0,
80
- class: "sr-only"
81
- }, T = /* @__PURE__ */ w({
82
- __name: "TableHeadCell",
83
- props: {
84
- columnName: {},
85
- sortable: { type: Boolean },
86
- align: { default: "start" },
87
- minWidth: {},
88
- tooltip: {},
89
- colspan: {},
90
- hiddenLabel: { type: Boolean }
91
- },
92
- emits: ["sort"],
93
- setup(e, { emit: i }) {
94
- const n = i, o = e, l = k(D, void 0), m = k(S, void 0), f = v(() => {
95
- if (!(!o.sortable || !(l != null && l.value)) && l.value.columnName === o.columnName)
96
- return l.value.direction;
97
- }), r = v(() => {
98
- if (o.sortable)
99
- return f.value === "asc" ? "ascending" : f.value === "desc" ? "descending" : "none";
100
- }), u = v(() => [
101
- o.align === "end" ? "text-right" : "text-left",
102
- { "first:pl-0": !(m != null && m.value), "w-px": o.hiddenLabel }
103
- ]), d = () => {
104
- o.columnName && n("sort", o.columnName);
105
- };
106
- return (y, ke) => (a(), _("th", {
107
- style: j(e.minWidth ? { minWidth: `${e.minWidth}px` } : void 0),
108
- class: $([u.value, "relative h-10 select-none whitespace-nowrap px-4 py-2 align-middle text-xs font-medium text-secondary"]),
109
- colspan: e.colspan,
110
- "aria-sort": r.value,
111
- scope: "col"
112
- }, [
113
- e.hiddenLabel ? (a(), _("span", re, [
114
- g(y.$slots, "default")
115
- ])) : (a(), _("span", {
116
- key: 1,
117
- class: $([
118
- "inline-flex items-center gap-1 align-middle",
119
- { "w-full justify-end": e.align === "end" }
120
- ])
121
- }, [
122
- e.sortable ? (a(), _("button", {
123
- key: 0,
124
- type: "button",
125
- class: $(["inline-flex items-center gap-1 rounded-sm hover:text-default focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600", { "text-primary-700": f.value }]),
126
- onClick: d
127
- }, [
128
- g(y.$slots, "default"),
129
- f.value === "asc" ? (a(), h(I, {
130
- key: 0,
131
- icon: "north",
132
- size: "2xs",
133
- class: "shrink-0",
134
- "aria-hidden": "true"
135
- })) : f.value === "desc" ? (a(), h(I, {
136
- key: 1,
137
- icon: "south",
138
- size: "2xs",
139
- class: "shrink-0",
140
- "aria-hidden": "true"
141
- })) : (a(), h(I, {
142
- key: 2,
143
- icon: "unfold_more",
144
- size: "2xs",
145
- class: "shrink-0 text-subtle",
146
- "aria-hidden": "true"
147
- }))
148
- ], 2)) : g(y.$slots, "default", {}, void 0, void 0, 1),
149
- e.tooltip ? (a(), h(J, {
150
- key: 2,
151
- variant: "outline"
152
- }, {
153
- default: s(() => [
154
- c(I, {
155
- icon: "help",
156
- size: "xs",
157
- class: "rounded drop-shadow-sm hover:cursor-default hover:bg-gray-50"
158
- })
159
- ]),
160
- tooltip: s(() => [
161
- c(Q, null, {
162
- default: s(() => [
163
- c(X, null, {
164
- default: s(() => [
165
- p(b(e.tooltip), 1)
166
- ]),
167
- _: 1
168
- })
169
- ]),
170
- _: 1
171
- })
172
- ]),
173
- _: 1
174
- })) : z("", !0)
175
- ], 2))
176
- ], 14, ce));
177
- }
178
- }), de = ["data-emphasized"], ue = /* @__PURE__ */ w({
179
- __name: "TableHeadRow",
180
- setup(e) {
181
- const i = k(P, void 0), n = v(() => (i == null ? void 0 : i.value) ?? !1);
182
- return (o, l) => (a(), _("tr", {
183
- class: "border-b border-gray-200 bg-white",
184
- "data-emphasized": n.value || void 0
185
- }, [
186
- g(o.$slots, "default")
187
- ], 8, de));
188
- }
189
- }), ve = ["aria-selected", "data-detail"], me = /* @__PURE__ */ w({
190
- __name: "TableRow",
191
- props: {
192
- selected: { type: Boolean },
193
- detail: { type: Boolean }
194
- },
195
- setup(e) {
196
- const i = e, n = H(), o = M(), l = M(!1), m = v(() => !!n.link && !i.detail);
197
- x(
198
- A,
199
- v(() => !!i.detail)
200
- ), n.link && x(V, {
201
- enabled: m,
202
- slot: n.link,
203
- claim: () => l.value ? !1 : (l.value = !0, !0)
204
- });
205
- const f = (r) => {
206
- var u, d;
207
- if (!m.value || r.defaultPrevented) return;
208
- const y = r.target;
209
- y instanceof Element && y.closest(
210
- 'a, button, input, select, textarea, [role="button"], [contenteditable="true"]'
211
- ) || (d = (u = o.value) == null ? void 0 : u.querySelector(".solvimon-table__row-link :is(a, button)")) == null || d.click();
212
- };
213
- return (r, u) => (a(), _("tr", {
214
- ref_key: "row",
215
- ref: o,
216
- class: $(["group relative border-b border-gray-100 transition-colors", {
217
- "bg-primary-50": e.selected,
218
- "bg-gray-50": e.detail && !e.selected,
219
- "bg-white": !e.selected && !e.detail,
220
- "cursor-pointer": m.value
221
- }]),
222
- "aria-selected": e.selected ? "true" : void 0,
223
- "data-detail": e.detail ? "true" : void 0,
224
- onClick: f
225
- }, [
226
- g(r.$slots, "default")
227
- ], 10, ve));
228
- }
229
- }), fe = {};
230
- function _e(e, i) {
231
- return a(), _("tbody", null, [
232
- g(e.$slots, "default")
233
- ]);
234
- }
235
- const pe = /* @__PURE__ */ Y(fe, [["render", _e]]), be = { class: "sv-table sv-invoices-list__table grid-cols-1 gap-4" }, he = ["onClick"], ye = { class: "flex flex-col" }, ge = { class: "sv-invoices-list__load-more mt-2 flex items-center justify-center" }, we = /* @__PURE__ */ w({
236
- __name: "InvoiceTable",
237
- props: {
238
- invoices: { type: Array },
239
- isLoading: { type: Boolean },
240
- hasMoreItems: { type: Boolean },
241
- configuration: { type: Object }
242
- },
243
- emits: ["view-invoice", "pay-invoice", "load-more"],
244
- setup(e) {
245
- const i = e, { formatDate: n, $t: o } = R(), l = v(() => i.configuration.showPayButton), m = v(() => i.configuration.showViewButton), f = v(() => i.hasMoreItems);
246
- return (r, u) => (a(), _("div", be, [
247
- c(t(se), null, {
248
- default: s(() => [
249
- c(t(le), null, {
250
- default: s(() => [
251
- c(t(ue), { class: "sv-table__head" }, {
252
- default: s(() => [
253
- c(t(T), { class: "sv-table__cell sv-invoices-list__cell--invoice" }, {
254
- default: s(() => [
255
- p(b(t(o)({
256
- defaultMessage: "Invoice",
257
- description: "The title of the invoice number header column of the invoice table",
258
- id: "invoice_table.header.invoice_number"
259
- })), 1)
260
- ]),
261
- _: 1
262
- }),
263
- c(t(T), { class: "sv-table__cell sv-invoices-list__cell--date hidden md:table-cell" }, {
264
- default: s(() => [
265
- p(b(t(o)({
266
- defaultMessage: "Date",
267
- description: "The title of the invoice date header column of the invoice table",
268
- id: "invoice_table.header.date"
269
- })), 1)
270
- ]),
271
- _: 1
272
- }),
273
- c(t(T), { class: "sv-table__cell sv-invoices-list__cell--amount" }, {
274
- default: s(() => [
275
- p(b(t(o)({
276
- defaultMessage: "Amount",
277
- description: "The title of the invoice amount header column of the invoice table",
278
- id: "invoice_table.header.amount"
279
- })), 1)
280
- ]),
281
- _: 1
282
- }),
283
- c(t(T), { class: "sv-table__cell sv-invoices-list__cell--status text-right" }, {
284
- default: s(() => [
285
- p(b(t(o)({
286
- defaultMessage: "Status",
287
- description: "The title of the invoice status header column of the invoice table",
288
- id: "invoice_table.header.status"
289
- })), 1)
290
- ]),
291
- _: 1
292
- })
293
- ]),
294
- _: 1
295
- })
296
- ]),
297
- _: 1
298
- }),
299
- c(t(pe), null, {
300
- default: s(() => [
301
- (a(!0), _(K, null, O(e.invoices, (d) => (a(), h(t(me), {
302
- key: d.id,
303
- class: "sv-table__row sv-invoices-list__row"
304
- }, W({
305
- default: s(() => [
306
- c(t(B), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14" }, {
307
- default: s(() => [
308
- C("div", ye, [
309
- c(t(L), {
310
- tag: "span",
311
- variant: "body-sm",
312
- class: "md:hidden"
313
- }, {
314
- default: s(() => [
315
- p(b(t(n)({
316
- date: d.invoice_date,
317
- format: "date",
318
- offsetType: "offsetted",
319
- timezone: d.customer.timezone
320
- })), 1)
321
- ]),
322
- _: 2
323
- }, 1024),
324
- c(t(L), {
325
- tag: "span",
326
- variant: "body-xs",
327
- color: "subtle"
328
- }, {
329
- default: s(() => [
330
- p(b(d.invoice_number), 1)
331
- ]),
332
- _: 2
333
- }, 1024)
334
- ])
335
- ]),
336
- _: 2
337
- }, 1024),
338
- c(t(B), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--date hidden h-14 md:table-cell" }, {
339
- default: s(() => [
340
- p(b(t(n)({
341
- date: d.invoice_date,
342
- format: "date",
343
- offsetType: "offsetted",
344
- timezone: d.customer.timezone
345
- })), 1)
346
- ]),
347
- _: 2
348
- }, 1024),
349
- c(t(B), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--amount h-14" }, {
350
- default: s(() => [
351
- c(t(L), {
352
- tag: "span",
353
- weight: "semibold"
354
- }, {
355
- default: s(() => [
356
- c(t(q), {
357
- value: d.invoice_amount_including_tax
358
- }, null, 8, ["value"])
359
- ]),
360
- _: 2
361
- }, 1024)
362
- ]),
363
- _: 2
364
- }, 1024),
365
- c(t(B), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--status h-14 text-right" }, {
366
- default: s(() => [
367
- d.paid ? (a(), h(t(G), {
368
- key: 0,
369
- intent: "success"
370
- }, {
371
- default: s(() => [
372
- p(b(t(o)({
373
- defaultMessage: "Paid",
374
- description: "The label of the chip for paid invoices",
375
- id: "invoice_table.chip.paid"
376
- })), 1)
377
- ]),
378
- _: 1
379
- })) : l.value ? (a(), h(t(N), {
380
- key: 1,
381
- intent: "secondary",
382
- size: "xs",
383
- class: "sv-action sv-action--secondary sv-invoices-list__pay",
384
- type: "button",
385
- onClick: F((y) => r.$emit("pay-invoice", { invoiceId: d.id }), ["stop"])
386
- }, {
387
- default: s(() => [
388
- p(b(t(o)({
389
- defaultMessage: "Pay",
390
- description: "The label for the pay invoice button",
391
- id: "customer.invoice_table.pay_invoice_button.label"
392
- })), 1)
393
- ]),
394
- _: 1
395
- }, 8, ["onClick"])) : z("", !0)
396
- ]),
397
- _: 2
398
- }, 1024)
399
- ]),
400
- _: 2
401
- }, [
402
- m.value ? {
403
- name: "link",
404
- fn: s(() => [
405
- C("button", {
406
- type: "button",
407
- class: "sv-invoices-list__row-action absolute inset-0 h-full w-full",
408
- onClick: (y) => r.$emit("view-invoice", { invoiceId: d.id })
409
- }, null, 8, he)
410
- ]),
411
- key: "0"
412
- } : void 0
413
- ]), 1024))), 128))
414
- ]),
415
- _: 1
416
- })
417
- ]),
418
- _: 1
419
- }),
420
- C("div", ge, [
421
- f.value ? (a(), h(t(N), {
422
- key: 0,
423
- intent: "secondary",
424
- size: "sm",
425
- class: "sv-action sv-action--secondary sv-action--full-width w-full",
426
- loading: e.isLoading,
427
- onClick: u[0] || (u[0] = (d) => r.$emit("load-more"))
428
- }, {
429
- default: s(() => [
430
- p(b(t(o)({
431
- defaultMessage: "Load more",
432
- description: "The label for the load more button",
433
- id: "invoice_table.button.load_more"
434
- })), 1)
435
- ]),
436
- _: 1
437
- }, 8, ["loading"])) : z("", !0)
438
- ])
439
- ]));
440
- }
441
- }), De = /* @__PURE__ */ w({
442
- __name: "InvoicesList",
443
- props: {
444
- invoices: { type: Array },
445
- isLoading: { type: Boolean },
446
- hasMoreItems: { type: Boolean },
447
- configuration: { type: Object }
448
- },
449
- emits: ["load-more"],
450
- setup(e) {
451
- const i = {
452
- showPayButton: !0,
453
- showViewButton: !0,
454
- pagination: {
455
- enabled: !0
456
- }
457
- }, n = e, o = v(
458
- () => ee(i, n.configuration)
459
- ), { $t: l } = R(), { dispatchAction: m } = Z();
460
- return (f, r) => (a(), h(t(U), {
461
- class: "sv-invoices-list sv-root sv-component",
462
- "no-border": "",
463
- "no-spacing": "",
464
- "content-background": "none",
465
- title: t(l)({
466
- defaultMessage: "Invoices",
467
- description: "Invoices list title",
468
- id: "invoices_list.title"
469
- })
470
- }, {
471
- default: s(() => [
472
- c(we, {
473
- class: "sv-invoices-list__table",
474
- configuration: o.value,
475
- "has-more-items": o.value.pagination.enabled && e.hasMoreItems,
476
- invoices: e.invoices,
477
- "is-loading": e.isLoading,
478
- onLoadMore: r[0] || (r[0] = (u) => f.$emit("load-more")),
479
- onViewInvoice: r[1] || (r[1] = (u) => t(m)({ action: "view-invoice", data: { invoiceId: u.invoiceId } })),
480
- onPayInvoice: r[2] || (r[2] = (u) => t(m)({ action: "pay-invoice", data: { invoiceId: u.invoiceId } }))
481
- }, null, 8, ["configuration", "has-more-items", "invoices", "is-loading"])
482
- ]),
483
- _: 1
484
- }, 8, ["title"]));
485
- }
486
- });
487
- function Ae({
488
- customerId: e,
489
- batchSize: i = 15
490
- }) {
491
- const n = oe();
492
- return te({ service: async (l) => n.getInvoices({
493
- customerId: e,
494
- pagination: { page: l, pageSize: i }
495
- }) });
496
- }
497
- export {
498
- De as _,
499
- Ae as u
500
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),w=require("./Section.vue.es-Bbt0RITt.js"),m=require("./customElements-DUMRMFQ5.js"),x=require("./Amount.vue.es-DExaYBqm.js"),v=require("./Button.vue.es-BzkuglKw.js"),B=require("./Chip.vue.es-B2jjzIOc.js"),_=require("./TooltipParagraph.vue.es-DvC5Wjaz.js"),C=require("./floating-ui.vue.es-Bly3DGWm.js"),N=require("./useActionDispatchProvider-DFhppdve.js"),V=require("./configuration-akTS7Wiw.js"),$=require("./useIncrementalLoading-CaWOE8Xl.js"),S=require("./invoices-CKQBLar2.js"),h=Symbol("tableInset"),b=Symbol("tableSorting"),y=Symbol("tableRowDetail"),g=Symbol("tableHeadEmphasize"),k=Symbol("tableRowLink"),T={class:"solvimon-table w-full text-left text-sm"},I=e.defineComponent({__name:"Table",props:{inset:{type:Boolean,default:!1},sorting:{}},setup(t){const n=t;return e.provide(h,e.computed(()=>n.inset)),e.provide(b,e.computed(()=>n.sorting)),(i,o)=>(e.openBlock(),e.createElementBlock("table",T,[e.renderSlot(i.$slots,"default")]))}}),z=["colspan"],L={key:0,class:"solvimon-table__row-link"},f=e.defineComponent({__name:"TableCell",props:{primary:{type:Boolean},align:{default:"start"},verticalAlign:{default:"middle"},truncate:{type:Boolean},colspan:{}},setup(t){const n=t,i=e.inject(h,void 0),o=e.inject(y,void 0),l=e.inject(k,void 0),r=(l==null?void 0:l.claim())??!1,d=l==null?void 0:l.slot,a=e.computed(()=>r&&(l==null?void 0:l.enabled.value)),c=e.computed(()=>[n.align==="end"?"text-right":"text-left",n.verticalAlign==="top"?"align-top":"align-middle",{"first:pl-0":!(i!=null&&i.value),"h-12":!(o!=null&&o.value),"max-w-0 truncate":n.truncate,"font-semibold":n.primary}]);return(s,u)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass([c.value,"solvimon-table__cell whitespace-nowrap px-4 py-2 text-sm leading-5 text-default"]),colspan:t.colspan},[a.value?(e.openBlock(),e.createElementBlock("span",L,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d))))])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default")],10,z))}}),E=e.defineComponent({__name:"TableHead",props:{emphasize:{type:Boolean,default:!1}},setup(t){const n=t;return e.provide(g,e.computed(()=>n.emphasize)),(i,o)=>(e.openBlock(),e.createElementBlock("thead",null,[e.renderSlot(i.$slots,"default")]))}}),D=["colspan","aria-sort"],M={key:0,class:"sr-only"},p=e.defineComponent({__name:"TableHeadCell",props:{columnName:{},sortable:{type:Boolean},align:{default:"start"},minWidth:{},tooltip:{},colspan:{},hiddenLabel:{type:Boolean}},emits:["sort"],setup(t,{emit:n}){const i=n,o=t,l=e.inject(b,void 0),r=e.inject(h,void 0),d=e.computed(()=>{if(!(!o.sortable||!(l!=null&&l.value))&&l.value.columnName===o.columnName)return l.value.direction}),a=e.computed(()=>{if(o.sortable)return d.value==="asc"?"ascending":d.value==="desc"?"descending":"none"}),c=e.computed(()=>[o.align==="end"?"text-right":"text-left",{"first:pl-0":!(r!=null&&r.value),"w-px":o.hiddenLabel}]),s=()=>{o.columnName&&i("sort",o.columnName)};return(u,X)=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(t.minWidth?{minWidth:`${t.minWidth}px`}:void 0),class:e.normalizeClass([c.value,"relative h-10 select-none whitespace-nowrap px-4 py-2 align-middle text-xs font-medium text-secondary"]),colspan:t.colspan,"aria-sort":a.value,scope:"col"},[t.hiddenLabel?(e.openBlock(),e.createElementBlock("span",M,[e.renderSlot(u.$slots,"default")])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["inline-flex items-center gap-1 align-middle",{"w-full justify-end":t.align==="end"}])},[t.sortable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["inline-flex items-center gap-1 rounded-sm hover:text-default focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",{"text-primary-700":d.value}]),onClick:s},[e.renderSlot(u.$slots,"default"),d.value==="asc"?(e.openBlock(),e.createBlock(v._sfc_main$1,{key:0,icon:"north",size:"2xs",class:"shrink-0","aria-hidden":"true"})):d.value==="desc"?(e.openBlock(),e.createBlock(v._sfc_main$1,{key:1,icon:"south",size:"2xs",class:"shrink-0","aria-hidden":"true"})):(e.openBlock(),e.createBlock(v._sfc_main$1,{key:2,icon:"unfold_more",size:"2xs",class:"shrink-0 text-subtle","aria-hidden":"true"}))],2)):e.renderSlot(u.$slots,"default",{},void 0,void 0,1),t.tooltip?(e.openBlock(),e.createBlock(_._sfc_main,{key:2,variant:"outline"},{default:e.withCtx(()=>[e.createVNode(v._sfc_main$1,{icon:"help",size:"xs",class:"rounded drop-shadow-sm hover:cursor-default hover:bg-gray-50"})]),tooltip:e.withCtx(()=>[e.createVNode(_.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(_._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.tooltip),1)]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)],2))],14,D))}}),q=["data-emphasized"],A=e.defineComponent({__name:"TableHeadRow",setup(t){const n=e.inject(g,void 0),i=e.computed(()=>(n==null?void 0:n.value)??!1);return(o,l)=>(e.openBlock(),e.createElementBlock("tr",{class:"border-b border-gray-200 bg-white","data-emphasized":i.value||void 0},[e.renderSlot(o.$slots,"default")],8,q))}}),R=["aria-selected","data-detail"],j=e.defineComponent({__name:"TableRow",props:{selected:{type:Boolean},detail:{type:Boolean}},setup(t){const n=t,i=e.useSlots(),o=e.ref(),l=e.ref(!1),r=e.computed(()=>!!i.link&&!n.detail);e.provide(y,e.computed(()=>!!n.detail)),i.link&&e.provide(k,{enabled:r,slot:i.link,claim:()=>l.value?!1:(l.value=!0,!0)});const d=a=>{var c,s;if(!r.value||a.defaultPrevented)return;const u=a.target;u instanceof Element&&u.closest('a, button, input, select, textarea, [role="button"], [contenteditable="true"]')||(s=(c=o.value)==null?void 0:c.querySelector(".solvimon-table__row-link :is(a, button)"))==null||s.click()};return(a,c)=>(e.openBlock(),e.createElementBlock("tr",{ref_key:"row",ref:o,class:e.normalizeClass(["group relative border-b border-gray-100 transition-colors",{"bg-primary-50":t.selected,"bg-gray-50":t.detail&&!t.selected,"bg-white":!t.selected&&!t.detail,"cursor-pointer":r.value}]),"aria-selected":t.selected?"true":void 0,"data-detail":t.detail?"true":void 0,onClick:d},[e.renderSlot(a.$slots,"default")],10,R))}}),P={};function H(t,n){return e.openBlock(),e.createElementBlock("tbody",null,[e.renderSlot(t.$slots,"default")])}const K=C._export_sfc(P,[["render",H]]),O={class:"sv-table sv-invoices-list__table grid-cols-1 gap-4"},W=["onClick"],F={class:"flex flex-col"},U={class:"sv-invoices-list__load-more mt-2 flex items-center justify-center"},G=e.defineComponent({__name:"InvoiceTable",props:{invoices:{type:Array},isLoading:{type:Boolean},hasMoreItems:{type:Boolean},configuration:{type:Object}},emits:["view-invoice","pay-invoice","load-more"],setup(t){const n=t,{formatDate:i,$t:o}=m.useIntl(),l=e.computed(()=>n.configuration.showPayButton),r=e.computed(()=>n.configuration.showViewButton),d=e.computed(()=>n.hasMoreItems);return(a,c)=>(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(e.unref(I),null,{default:e.withCtx(()=>[e.createVNode(e.unref(E),null,{default:e.withCtx(()=>[e.createVNode(e.unref(A),{class:"sv-table__head"},{default:e.withCtx(()=>[e.createVNode(e.unref(p),{class:"sv-table__cell sv-invoices-list__cell--invoice"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Invoice",description:"The title of the invoice number header column of the invoice table",id:"invoice_table.header.invoice_number"})),1)]),_:1}),e.createVNode(e.unref(p),{class:"sv-table__cell sv-invoices-list__cell--date hidden md:table-cell"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Date",description:"The title of the invoice date header column of the invoice table",id:"invoice_table.header.date"})),1)]),_:1}),e.createVNode(e.unref(p),{class:"sv-table__cell sv-invoices-list__cell--amount"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Amount",description:"The title of the invoice amount header column of the invoice table",id:"invoice_table.header.amount"})),1)]),_:1}),e.createVNode(e.unref(p),{class:"sv-table__cell sv-invoices-list__cell--status text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Status",description:"The title of the invoice status header column of the invoice table",id:"invoice_table.header.status"})),1)]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(K),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.invoices,s=>(e.openBlock(),e.createBlock(e.unref(j),{key:s.id,class:"sv-table__row sv-invoices-list__row"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(f),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14"},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(e.unref(m._sfc_main),{tag:"span",variant:"body-sm",class:"md:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:s.invoice_date,format:"date",offsetType:"offsetted",timezone:s.customer.timezone})),1)]),_:2},1024),e.createVNode(e.unref(m._sfc_main),{tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.invoice_number),1)]),_:2},1024)])]),_:2},1024),e.createVNode(e.unref(f),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--date hidden h-14 md:table-cell"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:s.invoice_date,format:"date",offsetType:"offsetted",timezone:s.customer.timezone})),1)]),_:2},1024),e.createVNode(e.unref(f),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--amount h-14"},{default:e.withCtx(()=>[e.createVNode(e.unref(m._sfc_main),{tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createVNode(e.unref(x._sfc_main),{value:s.invoice_amount_including_tax},null,8,["value"])]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(f),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--status h-14 text-right"},{default:e.withCtx(()=>[s.paid?(e.openBlock(),e.createBlock(e.unref(B._sfc_main),{key:0,intent:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Paid",description:"The label of the chip for paid invoices",id:"invoice_table.chip.paid"})),1)]),_:1})):l.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"secondary",size:"xs",class:"sv-action sv-action--secondary sv-invoices-list__pay",type:"button",onClick:e.withModifiers(u=>a.$emit("pay-invoice",{invoiceId:s.id}),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Pay",description:"The label for the pay invoice button",id:"customer.invoice_table.pay_invoice_button.label"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:2},1024)]),_:2},[r.value?{name:"link",fn:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"sv-invoices-list__row-action absolute inset-0 h-full w-full",onClick:u=>a.$emit("view-invoice",{invoiceId:s.id})},null,8,W)]),key:"0"}:void 0]),1024))),128))]),_:1})]),_:1}),e.createElementVNode("div",U,[d.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"secondary",size:"sm",class:"sv-action sv-action--secondary sv-action--full-width w-full",loading:t.isLoading,onClick:c[0]||(c[0]=s=>a.$emit("load-more"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Load more",description:"The label for the load more button",id:"invoice_table.button.load_more"})),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)])]))}}),J=e.defineComponent({__name:"InvoicesList",props:{invoices:{type:Array},isLoading:{type:Boolean},hasMoreItems:{type:Boolean},configuration:{type:Object}},emits:["load-more"],setup(t){const n={showPayButton:!0,showViewButton:!0,pagination:{enabled:!0}},i=t,o=e.computed(()=>V.resolveConfiguration(n,i.configuration)),{$t:l}=m.useIntl(),{dispatchAction:r}=N.useActionDispatchProvider();return(d,a)=>(e.openBlock(),e.createBlock(e.unref(w._sfc_main),{class:"sv-invoices-list sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(l)({defaultMessage:"Invoices",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(G,{class:"sv-invoices-list__table",configuration:o.value,"has-more-items":o.value.pagination.enabled&&t.hasMoreItems,invoices:t.invoices,"is-loading":t.isLoading,onLoadMore:a[0]||(a[0]=c=>d.$emit("load-more")),onViewInvoice:a[1]||(a[1]=c=>e.unref(r)({action:"view-invoice",data:{invoiceId:c.invoiceId}})),onPayInvoice:a[2]||(a[2]=c=>e.unref(r)({action:"pay-invoice",data:{invoiceId:c.invoiceId}}))},null,8,["configuration","has-more-items","invoices","is-loading"])]),_:1},8,["title"]))}});function Q({customerId:t,batchSize:n=15}){const i=S.createInvoicesService(),o=async l=>i.getInvoices({customerId:t,pagination:{page:l,pageSize:n}});return $.useIncrementalLoading({service:o})}exports._sfc_main=J;exports.useInvoicesList=Q;
@@ -1 +0,0 @@
1
- const a=require("vue"),i=require("./customElements-DUMRMFQ5.js");function r(...t){const e=a.ref(!0),o=i.useLogger();return a.onMounted(async()=>{await Promise.all(t).then(()=>{e.value=!1}).catch(n=>{e.value=!1,o.error("INITIAL_DATA_LOAD_FAILED","Failed to load initial data",{},n)})}),{isLoading:e}}exports.useLoadInitialData=r;
@@ -1 +0,0 @@
1
- const e=require("vue"),m=require("./customElements-DUMRMFQ5.js"),y=require("./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js"),f=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js"),v=require("./useExperimentalFeature-CGIkgFR4.js"),b={class:"flex flex-col items-center gap-4"},A=e.defineComponent({__name:"PaymentMethodsUnavailableCard",props:{variant:{type:String},sellerName:{type:String}},setup(d){const t=d,{$t:n}=m.useIntl(),c=e.computed(()=>t.variant==="AUTHORIZE"?n({defaultMessage:"This invoice cannot be paid online",description:"Title shown when no payment method can be offered for paying an invoice",id:"payment_methods_unavailable_card.title.authorize"}):n({defaultMessage:"No payment methods can be added",description:"Title shown when no payment method can be offered for storing a payment method",id:"payment_methods_unavailable_card.title.tokenize"})),r=e.computed(()=>t.variant==="AUTHORIZE"?t.sellerName?n({defaultMessage:"Online payment is not set up for this invoice. {sellerName} can settle it with you directly.",description:"Body text shown when an invoice cannot be paid online, naming the seller",id:"payment_methods_unavailable_card.description.authorize_with_seller"},{sellerName:t.sellerName}):n({defaultMessage:"Online payment is not set up for this invoice. The party that issued it can settle it with you directly.",description:"Body text shown when an invoice cannot be paid online",id:"payment_methods_unavailable_card.description.authorize"}):t.sellerName?n({defaultMessage:"No online payment methods are set up. {sellerName} can arrange payment with you directly.",description:"Body text shown when no payment method can be stored, naming the seller",id:"payment_methods_unavailable_card.description.tokenize_with_seller"},{sellerName:t.sellerName}):n({defaultMessage:"No online payment methods are set up.",description:"Body text shown when no payment method can be stored",id:"payment_methods_unavailable_card.description.tokenize"}));return(s,u)=>(e.openBlock(),e.createBlock(y._sfc_main,{status:"error",title:c.value,class:"sv-payment-methods-unavailable-card"},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(m._sfc_main),{variant:"body-xs",color:"subtle",class:"mt-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1}),e.renderSlot(s.$slots,"default")])]),_:3},8,["title"]))}});function N({paymentMethodOptions:d,isLoading:t,context:n}){const c=m.useLogger(),r=v.useExperimentalFeature(),s=e.computed(()=>e.toValue(d)??[]),u=e.computed(()=>{var a;return e.toValue(t)?"LOADING":f.hasRenderablePaymentIntegration(s.value,{excludeExpressPaymentMethods:!!((a=r==null?void 0:r.value)!=null&&a["express-checkout"])})?"READY":"UNAVAILABLE"}),h=e.computed(()=>{const a=[...new Set(s.value.map(({payment_acceptor:i})=>i==null?void 0:i.id))].filter(i=>!!i);return["NO_PAYMENT_METHODS_AVAILABLE",...a.length?a.sort():["no_payment_acceptor"]]});return e.watch(()=>[u.value,h.value.join("|")],([a,i],l)=>{if(a!=="UNAVAILABLE"||(l==null?void 0:l[0])==="UNAVAILABLE"&&l[1]===i)return;const{invoiceId:p,subscriptionId:_}=e.toValue(n)??{};c.error("NO_PAYMENT_METHODS_AVAILABLE","No payment method can be offered to the customer",{fingerprint:h.value,paymentAcceptorIds:s.value.map(({payment_acceptor:o})=>o==null?void 0:o.id),integrationIds:s.value.map(({integration:o})=>o==null?void 0:o.id),...p?{invoiceId:p}:{},..._?{subscriptionId:_}:{}})},{immediate:!0}),{availability:u}}exports._sfc_main=A;exports.usePaymentMethodAvailability=N;
@@ -1,39 +0,0 @@
1
- import { u as d, a as s } from "./useService-Bh47bllz.mjs";
2
- import { ref as h } from "vue";
3
- import { c as P } from "./paymentMethods-CWlvwK5V.mjs";
4
- function b(n) {
5
- return n.customerId !== void 0;
6
- }
7
- function S() {
8
- const { getPaymentMethodOptions: n } = P(), u = (t) => b(t) ? n({
9
- customerId: t.customerId,
10
- subscriptionId: t.subscriptionId,
11
- invoiceId: t.invoiceId,
12
- amount: t.amount,
13
- country: t.country
14
- }) : n({
15
- subscriptionId: t.subscriptionId,
16
- amount: t.amount,
17
- country: t.country
18
- }), c = [], { data: r, execute: m, apiStatus: a, error: f, isPending: v } = d({
19
- initialValue: c,
20
- service: u
21
- }), o = h();
22
- let e;
23
- return { paymentMethodOptions: r, get: async (t) => {
24
- if (s(t, o.value))
25
- return r.value;
26
- if (e && s(t, e.payload))
27
- return e.options;
28
- const i = m(t).then((I) => (o.value = t, I));
29
- e = { payload: t, options: i };
30
- try {
31
- return await i;
32
- } finally {
33
- (e == null ? void 0 : e.payload) === t && (e = void 0);
34
- }
35
- }, apiStatus: a, error: f, isPending: v };
36
- }
37
- export {
38
- S as u
39
- };
@@ -1 +0,0 @@
1
- const s=require("./useService-H7BjLg8P.js"),h=require("vue"),f=require("./paymentMethods-Cw-i95mM.js");function M(n){return n.customerId!==void 0}function P(){const{getPaymentMethodOptions:n}=f.createPaymentMethodsService(),o=t=>M(t)?n({customerId:t.customerId,subscriptionId:t.subscriptionId,invoiceId:t.invoiceId,amount:t.amount,country:t.country}):n({subscriptionId:t.subscriptionId,amount:t.amount,country:t.country}),c=[],{data:i,execute:m,apiStatus:v,error:d,isPending:I}=s.useService({initialValue:c,service:o}),r=h.ref();let e;return{paymentMethodOptions:i,get:async t=>{if(s.isEqual(t,r.value))return i.value;if(e&&s.isEqual(t,e.payload))return e.options;const u=m(t).then(a=>(r.value=t,a));e={payload:t,options:u};try{return await u}finally{(e==null?void 0:e.payload)===t&&(e=void 0)}},apiStatus:v,error:d,isPending:I}}exports.usePaymentMethodOptions=P;
@@ -1 +0,0 @@
1
- const o=require("./useIncrementalLoading-CaWOE8Xl.js"),c=require("./paymentMethods-Cw-i95mM.js");function r({customerId:e,pageSize:n=15}){const{getPaymentMethods:t}=c.createPaymentMethodsService(),s=async a=>t({customerId:e,pagination:{page:a,pageSize:n}});return o.useIncrementalLoading({service:s})}exports.usePaymentMethods=r;
@@ -1 +0,0 @@
1
- const e=require("vue"),f=require("./customElements-DUMRMFQ5.js"),g=require("./IconTitle.vue.es-Dn2xcPHj.js"),v=require("./Chip.vue.es-B2jjzIOc.js"),h=require("./formatting.es-C72Nsrmh.js"),m=require("./index.es-BclokHQX.js"),I=require("./Button.vue.es-BzkuglKw.js"),w=require("./FormMessage.vue.es-dqATjC2N.js"),_=require("./invoices-CKQBLar2.js"),D=require("./useService-H7BjLg8P.js"),y=require("./payments-CS7_YcOW.js"),b={neutral:{indicatorClass:"border-gray-500 bg-gray-500",chipIntent:"neutral"},info:{indicatorClass:"border-blue-600 bg-blue-600",chipIntent:"info"},success:{indicatorClass:"border-green-600 bg-green-600",chipIntent:"success"},warning:{indicatorClass:"border-yellow-600 bg-yellow-600",chipIntent:"warning"},danger:{indicatorClass:"border-red-600 bg-red-600",chipIntent:"danger"}},N={ACCEPTED:"success",ACTIVE:"success",APPROVED:"success",ARCHIVED:"neutral",CANCELLED:"neutral",CLOSED:"success",CREATED:"neutral",DECLINED:"danger",DELETED:"danger",DENIED:"danger",DEPRECATED:"warning",DONE:"success",DONE_WITH_ERRORS:"warning",DOWNLOADED:"success",DOWNLOADING:"info",DRAFT:"warning",DUPLICATE:"warning",EMPTY:"neutral",ENABLED:"success",ERROR:"danger",EXPIRED:"neutral",FAILED:"danger",FINAL:"success",GENERATING:"info",IGNORE:"neutral",IMPORTED:"success",IMPORTING:"info",INACTIVE:"neutral",INVALID:"danger",INVITED:"info",INVITE_REVOKED:"neutral",NONE:"neutral",NOT_EXECUTED:"neutral",NOT_MATCHED:"warning",ON_HOLD:"warning",OPEN:"neutral",OVERPAID:"warning",PAID:"success",PARTIALLY_PAID:"warning",PAUSED:"warning",PAYMENT_FAILED:"danger",PENDING:"info",PENDING_REVIEW:"warning",PROCESSING:"info",QUEUED:"info",REJECTED:"danger",SCHEDULED:"info",SEND:"info",SIGNATURE_REQUESTED:"warning",SIGNED:"success",SKIPPED:"warning",SUBMITTED:"info",SUCCEEDED:"success",SUCCESS:"success",TO_BE_DOWNLOADED:"info",TO_BE_PROCESSED:"info",TO_BE_REPROCESSED:"info",UNPAID:"warning",UPLOADED:"success",VALID:"success",VALIDATED:"info",VOID:"neutral",WAITING_APPROVAL:"warning",DISABLED:"neutral"},C=t=>{const n=N[t]??"neutral";return b[n]},A={class:"inline-flex flex-col items-end gap-1"},S=e.defineComponent({__name:"DownloadButton",props:{downloadService:{type:Function},mobileIconOnly:{type:Boolean,default:!1},type:{},intent:{default:"secondary"},size:{default:"md"},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{},iconSuffix:{},tag:{},preventDoubleClick:{type:Boolean}},setup(t){const{$t:n}=f.useIntl(),a=e.createPropsRestProxy(t,["downloadService","size","intent","mobileIconOnly"]),i=e.ref(!1),o=e.ref(!1),l=m.useBreakpoints(m.breakpointsTailwind).smaller("md"),r=e.computed(()=>t.mobileIconOnly&&l.value),u=async()=>{o.value=!0,i.value=!1;try{await t.downloadService()}catch{i.value=!0}finally{o.value=!1}};return(d,p)=>(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(e.unref(I._sfc_main),e.mergeProps({...a,size:t.size,intent:t.intent},{loading:o.value,type:"button","icon-prefix":"download",onClick:u}),e.createSlots({_:2},[d.$slots.default&&!r.value?{name:"default",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),key:"0"}:void 0]),1040,["loading"]),i.value?(e.openBlock(),e.createBlock(e.unref(w._sfc_main),{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"download_button.download_failed_message",defaultMessage:"Download failed, please try again later",description:"Error message when a download fails"})),1)]),_:1})):e.createCommentVNode("",!0)]))}}),T=e.defineComponent({__name:"StatusChip",props:{status:{},size:{default:"md"},hasChipBefore:{type:Boolean,default:!1},hasChipAfter:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(v._sfc_main,{intent:e.unref(C)(t.status).chipIntent,size:t.size,"has-chip-after":t.hasChipAfter,"has-chip-before":t.hasChipBefore},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(h.formatEnum)(t.status)),1)]),e.renderSlot(n.$slots,"suffix")]),_:3},8,["intent","size","has-chip-after","has-chip-before"]))}}),P={class:"flex items-center justify-between md:py-2"},O={class:"ml-2 inline-flex gap-0.5 print:hidden"},B=e.defineComponent({__name:"InvoiceHeader",props:{invoice:{},paymentAttempts:{},downloadService:{},showDownloadButton:{type:Boolean},variant:{default:"internal"},showInvoiceNumberLabel:{type:Boolean}},setup(t){const n=t,{$t:a,formatDate:i}=f.useIntl(),o=e.computed(()=>n.paymentAttempts.findLast(c=>c.result==="AUTHORIZED")),s=e.computed(()=>a({defaultMessage:"Due on {date}",description:"Label for due date, where {date} gets replaced with the due date",id:"invoice.due_on_label"},{date:i({date:n.invoice.due_date,format:"date",offsetType:"offsetted",timezone:n.invoice.customer.timezone})})),l=e.computed(()=>i({date:n.invoice.invoice_date,format:"date",offsetType:"offsetted",timezone:n.invoice.customer.timezone})),r=e.computed(()=>a({defaultMessage:"Invoice",description:"Label prefixed before the invoice number in the header title",id:"invoiceHeader.invoiceNumberLabel"})),u=e.computed(()=>{if(n.variant==="external")return l.value;const c=n.invoice.invoice_number;return c?n.showInvoiceNumberLabel?`${r.value} ${c}`:c:r.value}),d=e.computed(()=>{if(!(!n.invoice.paid||!o.value))return a({defaultMessage:"Paid on {date}",description:"Label for payment date, where {date} gets replaced with the date",id:"invoice.paid_on_label"},{date:i({date:o.value.created_at,format:"date",offsetType:"offsetted",timezone:n.invoice.customer.timezone})})}),p=e.computed(()=>n.variant==="external"?[n.invoice.invoice_number,d.value||s.value].join(" - "):d.value||s.value),E=e.computed(()=>n.invoice.status!=="PAID");return(c,R)=>(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(g._sfc_main,{title:u.value},{suffix:e.withCtx(()=>[e.createElementVNode("span",O,[E.value?(e.openBlock(),e.createBlock(T,{key:0,status:t.invoice.status,"has-chip-after":!!t.invoice.paid},null,8,["status","has-chip-after"])):e.createCommentVNode("",!0),t.invoice.paid?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,intent:"success","has-chip-before":E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Paid",description:"The paid chip label text for a paid invoice",id:"invoice.paid_chip"})),1)]),_:1},8,["has-chip-before"])):e.createCommentVNode("",!0)])]),subTitle:e.withCtx(()=>[e.createVNode(f._sfc_main,{variant:"body-xs",class:"flex gap-1 print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1})]),_:1},8,["title"]),t.showDownloadButton?(e.openBlock(),e.createBlock(S,{key:0,size:"lg",intent:"secondary","download-service":t.downloadService,"mobile-icon-only":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Download PDF",description:"Title for button download pdf invoice",id:"invoice.download_pdf_button"})),1)]),_:1},8,["download-service"])):e.createCommentVNode("",!0)]))}});function L({invoiceId:t}){const{getInvoice:n,getInvoicePdf:a}=_.createInvoicesService(),i=()=>n(t),{data:o,execute:s,apiStatus:l,error:r,isPending:u}=D.useService({service:i});return{invoice:o,downloadInvoicePdf:a,apiStatus:l,error:r,get:s,isPending:u}}function x(){const{getPayments:t}=y.createPaymentsService(),{data:n,execute:a,error:i,apiStatus:o,isPending:s}=D.useService({service:t,isCollection:!0});return{payments:n,get:a,error:i,apiStatus:o,isPending:s}}exports._sfc_main=B;exports.useInvoice=L;exports.usePayments=x;
@@ -1 +0,0 @@
1
- const e=require("vue"),o=require("./customElements-DUMRMFQ5.js");function t(){const r=e.inject(o.PORTAL_INJECTION_KEY);if(!r)throw new Error("PortalProvider is not provided");return r}exports.usePortal=t;
@@ -1,11 +0,0 @@
1
- import { inject as o } from "vue";
2
- import { P as t } from "./customElements-B58FcXIN.mjs";
3
- function n() {
4
- const r = o(t);
5
- if (!r)
6
- throw new Error("PortalProvider is not provided");
7
- return r;
8
- }
9
- export {
10
- n as u
11
- };