@solvimon/solvimon-web 0.1.0-alpha.26 → 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 (438) hide show
  1. package/README.md +138 -27
  2. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  3. package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +17 -19
  5. package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
  6. package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +233 -253
  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-CKCOY5T6.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-Da-lAmTl.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
  12. package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
  13. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +31 -36
  14. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
  15. package/dist/{DividerText.vue.es-DKl3FnDJ.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-rRKgmkzV.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
  18. package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
  19. package/dist/{IconTitle.vue.es-CK9k69tV.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-DUfJl07Y.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-DQ4KvTaw.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
  24. package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
  25. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +73 -75
  26. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
  27. package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
  28. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
  29. package/dist/{PaymentIntegrationForm-UWoyZgsR.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-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -297
  32. package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
  33. package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
  34. package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
  35. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +65 -75
  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-DGpXRtp4.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-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
  41. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
  42. package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
  43. package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
  44. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.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-C3Zm6Wc9.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
  47. package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
  48. package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
  49. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.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-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +124 -90
  52. package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
  53. package/dist/{TrialChip.vue.es-C_yRujip.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-CGa6b2Lt.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 -63
  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 -65
  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-CLfzTbbX.mjs → de-DE-BW8dMvhW.mjs} +87 -19
  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-DJTwftJv.mjs → invoices-Cf1qDAv4.mjs} +40 -35
  79. package/dist/{it-IT-Cym1UvvK.mjs → it-IT-Byg06KWc.mjs} +87 -19
  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-D0c4x5C0.mjs → nl-NL-x3zQqzZ7.mjs} +93 -25
  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/CheckoutTitle.types.d.ts +10 -0
  102. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  103. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
  104. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  105. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  106. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  107. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  108. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  109. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  110. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  111. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  112. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
  113. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
  114. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  115. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
  116. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  117. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  118. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  119. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  120. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  121. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  122. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  123. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  124. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  125. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  126. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  127. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  128. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  129. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  130. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  131. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  132. package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
  133. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  134. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  135. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  136. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  137. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  138. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  139. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  140. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
  141. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  142. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  143. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  144. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  145. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  146. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  147. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  148. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  149. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  150. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  151. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  152. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  153. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  154. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  155. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  156. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  157. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  158. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  159. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  160. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  161. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  162. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  163. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  164. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  165. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  166. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  167. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  168. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  169. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  170. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  171. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  172. package/dist/types/public/core/action-request.types.d.ts +5 -0
  173. package/dist/types/public/core/registry.ce.d.ts +3 -3
  174. package/dist/types/public/core/registry.d.ts +0 -3
  175. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  176. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  177. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  178. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  179. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  180. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
  181. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  182. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  183. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  184. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  185. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  186. package/dist/types/services/requests.types.d.ts +16 -6
  187. package/dist/types/types/errors.d.ts +3 -2
  188. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  189. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  190. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  191. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  192. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  193. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  194. package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
  195. package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
  196. package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
  197. package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
  198. package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
  199. package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
  200. package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
  201. package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
  202. package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +17 -18
  203. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
  204. package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
  205. package/dist/{usePayments-CV85OV8V.mjs → usePayments-CykCZPG2.mjs} +7 -7
  206. package/dist/usePortal-CxzKGhbK.mjs +7 -0
  207. package/dist/useService-B0OQJmif.mjs +56 -0
  208. package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
  209. package/dist/useViewport-psZejz_H.mjs +19 -0
  210. package/package.json +35 -59
  211. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs +0 -223
  212. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js +0 -1
  213. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  214. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  215. package/dist/Avatar.vue.es-Bm6MCMAL.js +0 -1
  216. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
  217. package/dist/Button.vue.es-qGvnOKnK.js +0 -1
  218. package/dist/ChargeOnDemandModal-DIQaGnRs.js +0 -1
  219. package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
  220. package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
  221. package/dist/Chip.vue.es-D60gTbfe.js +0 -1
  222. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  223. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  224. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  225. package/dist/ContextMenu.vue.es-C7KI8Gz6.js +0 -1
  226. package/dist/CustomerBillingInformation.vue.es-bFUx81Ig.js +0 -1
  227. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  228. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js +0 -1
  229. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs +0 -2701
  230. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
  231. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  232. package/dist/DividerText.vue.es-BF3gnr4e.js +0 -1
  233. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs +0 -335
  234. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js +0 -1
  235. package/dist/ErrorNotification.vue.es-BX9dHEc-.js +0 -1
  236. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  237. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  238. package/dist/IconButton.vue.es-Bwdfu-jm.js +0 -1
  239. package/dist/IconTitle.vue.es-Cei98MBw.js +0 -1
  240. package/dist/Input.vue.es-B47l_feL.js +0 -1
  241. package/dist/Input.vue.es-D9IjIWc-.mjs +0 -235
  242. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js +0 -1
  243. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs +0 -41
  244. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js +0 -1
  245. package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +0 -1
  246. package/dist/Modal.vue.es-8LN4gBh0.js +0 -1
  247. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js +0 -1
  248. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js +0 -1
  249. package/dist/PaymentHistoryBlock-Ds93gNvh.js +0 -1
  250. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js +0 -1
  251. package/dist/PaymentIntegrationForm-B_Db4DG1.js +0 -1
  252. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
  253. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +0 -154
  254. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
  255. package/dist/PaymentIntegrationFormStripe-BIiMCWlV.mjs +0 -587
  256. package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +0 -102
  257. package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +0 -1
  258. package/dist/PaymentMethodForm-1d0YIGOu.js +0 -1
  259. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +0 -1
  260. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js +0 -1
  261. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
  262. package/dist/PlanCustomizationEditor-CpZeilm5.mjs +0 -694
  263. package/dist/PricingGroupRangeInput.vue.es-DZSJ5Mz0.js +0 -185
  264. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +0 -1
  265. package/dist/RadioGroupExtended.vue.es-Dt6LH9Yh.js +0 -1
  266. package/dist/Section.vue.es-zVXBHAL6.js +0 -1
  267. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js +0 -1
  268. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
  269. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
  270. package/dist/StepInput.vue.es-mAnuCuDQ.js +0 -1
  271. package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +0 -1
  272. package/dist/SubscriptionSchedules-Cm5Dt-1H.js +0 -1
  273. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +0 -1
  274. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs +0 -91
  275. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js +0 -1
  276. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js +0 -1
  277. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +0 -1
  278. package/dist/TrialChip.vue.es-C_wgHGuN.js +0 -1
  279. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  280. package/dist/ach.svg.es-BYP873jU.js +0 -1
  281. package/dist/adyen-BJfC7N6f.js +0 -1
  282. package/dist/adyen-CvsH5fok.mjs +0 -117
  283. package/dist/adyen-Druit6gz.js +0 -1
  284. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  285. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  286. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  287. package/dist/api.es-duCDtZD9.js +0 -1
  288. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  289. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  290. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  291. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  292. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  293. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  294. package/dist/cn.es-D9YMDvG2.js +0 -1
  295. package/dist/comparators.es-OGt19O9U.js +0 -1
  296. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  297. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  298. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  299. package/dist/components/Invoice/Invoice.cjs +0 -1
  300. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  301. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  302. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  303. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  304. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  305. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  306. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  307. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  308. package/dist/configuration-akTS7Wiw.js +0 -1
  309. package/dist/core/index.cjs +0 -1
  310. package/dist/countryData.es-C4jHBzfo.js +0 -1
  311. package/dist/customElements-C963-LtW.js +0 -1215
  312. package/dist/customElements-D5DAoHRI.mjs +0 -6633
  313. package/dist/customer-DKa1B2vp.mjs +0 -31
  314. package/dist/customer-TE1FnGT0.js +0 -1
  315. package/dist/customer.es-BButyYo0.js +0 -1
  316. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  317. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  318. package/dist/de-DE-B4TUdnUf.js +0 -1
  319. package/dist/de-DE-DaBBl-Ak.js +0 -1
  320. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  321. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  322. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  323. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  324. package/dist/en-US-BNevqm0M.js +0 -1
  325. package/dist/en-US-D6SGRAch.mjs +0 -325
  326. package/dist/en-US-J85TQRI8.js +0 -1
  327. package/dist/en-US-SDhjlY_v.mjs +0 -301
  328. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  329. package/dist/error-BHVZJGwD.mjs +0 -13
  330. package/dist/error-CmduqgVq.js +0 -1
  331. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  332. package/dist/formControl-ODrpUvcA.js +0 -1
  333. package/dist/formControl-dX7l8o3c.mjs +0 -845
  334. package/dist/formatting.es-C72Nsrmh.js +0 -1
  335. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  336. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  337. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  338. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  339. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  340. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  341. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  342. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  343. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  344. package/dist/index-BPZPnOQQ.js +0 -7
  345. package/dist/index.cjs +0 -1
  346. package/dist/index.es-BclokHQX.js +0 -1
  347. package/dist/invoices-ClqTWYF9.js +0 -1
  348. package/dist/it-IT-BkPbTueL.js +0 -1
  349. package/dist/it-IT-CSYvGmpT.js +0 -1
  350. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  351. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  352. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  353. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  354. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  355. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  356. package/dist/nl-NL-CpE4IgwO.js +0 -1
  357. package/dist/nl-NL-jIfAVGv0.js +0 -1
  358. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  359. package/dist/object.es-CdriXMPs.js +0 -1
  360. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  361. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  362. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  363. package/dist/paymentMethods-AL2U_byg.js +0 -1
  364. package/dist/paymentMethods-CWzJhcWK.mjs +0 -77
  365. package/dist/payments-BmiHMlQt.js +0 -1
  366. package/dist/payments-aXyfylwk.mjs +0 -45
  367. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  368. package/dist/pricing-BVAld27Y.js +0 -1
  369. package/dist/pricing-DLOeiAIB.mjs +0 -16
  370. package/dist/pricing.es-C07bgEZx.js +0 -1
  371. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  372. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  373. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  374. package/dist/pricingPlanSchedules-BD4GIP_F.mjs +0 -32
  375. package/dist/pricingPlanSchedules-BfsMSvN0.js +0 -1
  376. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  377. package/dist/screens/Checkout/Checkout.cjs +0 -1
  378. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  379. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  380. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  381. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  382. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  383. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  384. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  385. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  386. package/dist/slots.es-T9ZJRGtG.js +0 -1
  387. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  388. package/dist/sorting.es-DQsjKr8A.js +0 -1
  389. package/dist/star.svg.es-D2JncY7b.js +0 -1
  390. package/dist/subscription-D1yHKUNc.mjs +0 -69
  391. package/dist/subscription-ZA62t4E9.js +0 -1
  392. package/dist/subscriptions-Cm83ckfl.js +0 -1
  393. package/dist/subscriptions-cnR5fnf7.mjs +0 -55
  394. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  395. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  396. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  397. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  398. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  399. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  400. package/dist/types/services/portals.types.d.ts +0 -70
  401. package/dist/types/types/subscription.d.ts +0 -4
  402. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  403. package/dist/url-TNRgVI8A.mjs +0 -21
  404. package/dist/url-vloPOiXd.js +0 -1
  405. package/dist/useActionDispatchProvider-CHkVQMaE.js +0 -1
  406. package/dist/useActionDispatchProvider-DDYqIh3r.mjs +0 -11
  407. package/dist/useCustomer-DGYtowRy.js +0 -1
  408. package/dist/useCustomerFormLabels-CcnkJLcB.mjs +0 -968
  409. package/dist/useCustomerFormLabels-DAZziqYt.js +0 -1
  410. package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
  411. package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
  412. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  413. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  414. package/dist/useInvoiceData-BEK-7msA.mjs +0 -38
  415. package/dist/useInvoiceData-CQRn8l9C.js +0 -1
  416. package/dist/useInvoicesList-BQkKyyXa.js +0 -1
  417. package/dist/useInvoicesList-C4I118KM.mjs +0 -500
  418. package/dist/useLoadInitialData-CrKnBZs_.js +0 -1
  419. package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
  420. package/dist/usePaymentMethodOptions-Ciifjo6c.mjs +0 -39
  421. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +0 -1
  422. package/dist/usePaymentMethods-BKwrl82-.js +0 -1
  423. package/dist/usePayments-Bauj16B-.js +0 -1
  424. package/dist/usePortal-DSLImEfr.js +0 -1
  425. package/dist/usePortal-H8Tv2TnZ.mjs +0 -11
  426. package/dist/useService-Bh47bllz.mjs +0 -50
  427. package/dist/useService-H7BjLg8P.js +0 -1
  428. package/dist/useSubscription-BiYNJT2e.js +0 -1
  429. package/dist/useSubscription-DqnxWNKg.mjs +0 -210
  430. package/dist/useTimePeriod.es-D2aiyfd-.js +0 -1
  431. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  432. package/dist/useViewport-hPRVDWCm.js +0 -1
  433. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  434. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  435. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  436. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  437. package/dist/wallets.es-CNIMW5ay.js +0 -1
  438. 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-D7eiXUbk.mjs";
3
- import { a as R, _ as L } from "./customElements-D5DAoHRI.mjs";
4
- import { _ as q } from "./Amount.vue.es-DPqHB8Xd.mjs";
5
- import { a as I, _ as N } from "./Button.vue.es-C32_baQN.mjs";
6
- import { _ as G } from "./Chip.vue.es-CKCOY5T6.mjs";
7
- import { _ as J, T as Q, a as X } from "./TooltipParagraph.vue.es-BXbOJmjr.mjs";
8
- import { _ as Y } from "./floating-ui.vue.es-CYt0fSY7.mjs";
9
- import { u as Z } from "./useActionDispatchProvider-DDYqIh3r.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-DJTwftJv.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 a=require("vue"),i=require("./customElements-C963-LtW.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-C963-LtW.js"),y=require("./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js"),f=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js"),v=require("./useExperimentalFeature-COOU6IZd.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(),u=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,c)=>(e.openBlock(),e.createBlock(y._sfc_main,{status:"error",title:u.value,class:"sv-payment-methods-unavailable-card","data-testid":"payment-methods-unavailable"},{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 u=m.useLogger(),r=v.useExperimentalFeature(),s=e.computed(()=>e.toValue(d)??[]),c=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(()=>[c.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)??{};u.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:c}}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-CWzJhcWK.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-AL2U_byg.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-AL2U_byg.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-C963-LtW.js"),g=require("./IconTitle.vue.es-Cei98MBw.js"),v=require("./Chip.vue.es-D60gTbfe.js"),h=require("./formatting.es-C72Nsrmh.js"),m=require("./index.es-BclokHQX.js"),I=require("./Button.vue.es-qGvnOKnK.js"),w=require("./FormMessage.vue.es-dqATjC2N.js"),_=require("./invoices-ClqTWYF9.js"),D=require("./useService-H7BjLg8P.js"),y=require("./payments-BmiHMlQt.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-C963-LtW.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-D5DAoHRI.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
- };
@@ -1,50 +0,0 @@
1
- import { A as n, t as y } from "./error-BHVZJGwD.mjs";
2
- import { shallowRef as d, ref as c, computed as g } from "vue";
3
- function w(e) {
4
- return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !0;
5
- }
6
- function f(e, t) {
7
- if (e === t) return !0;
8
- if (e == null || t == null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
9
- const o = Object.keys(e), i = Object.keys(t);
10
- return o.length !== i.length ? !1 : o.every(
11
- (r) => f(e[r], t[r])
12
- );
13
- }
14
- const m = f;
15
- function A(e, t) {
16
- m(e.value, t) || (e.value = t);
17
- }
18
- function h(e) {
19
- return typeof e == "object" && e !== null && "data" in e;
20
- }
21
- function j(e) {
22
- if (!h(e))
23
- throw new Error("Expected collection response.");
24
- return e.data;
25
- }
26
- function E(e, t) {
27
- return t ? j(e) : e;
28
- }
29
- function x({
30
- initialValue: e,
31
- service: t,
32
- isCollection: o = !1
33
- }) {
34
- const i = d(e), r = c(n.Initial), s = c(null), l = g(() => r.value === n.Loading);
35
- return { data: i, execute: async (...p) => {
36
- try {
37
- r.value = n.Loading, s.value = null;
38
- const u = await t(...p), a = E(u, o);
39
- return A(i, a), r.value = n.Done, a;
40
- } catch (u) {
41
- return s.value = y(u), r.value = n.Failed, Promise.reject();
42
- }
43
- }, apiStatus: r, isPending: l, error: s };
44
- }
45
- export {
46
- m as a,
47
- f as d,
48
- w as i,
49
- x as u
50
- };
@@ -1 +0,0 @@
1
- const n=require("./error-CmduqgVq.js"),o=require("vue");function d(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:typeof e=="object"?Object.keys(e).length===0:!0}function a(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)!==Array.isArray(t))return!1;const i=Object.keys(e),u=Object.keys(t);return i.length!==u.length?!1:i.every(r=>a(e[r],t[r]))}const l=a;function A(e,t){l(e.value,t)||(e.value=t)}function g(e){return typeof e=="object"&&e!==null&&"data"in e}function S(e){if(!g(e))throw new Error("Expected collection response.");return e.data}function E(e,t){return t?S(e):e}function h({initialValue:e,service:t,isCollection:i=!1}){const u=o.shallowRef(e),r=o.ref(n.ApiStatus.Initial),s=o.ref(null),p=o.computed(()=>r.value===n.ApiStatus.Loading);return{data:u,execute:async(...y)=>{try{r.value=n.ApiStatus.Loading,s.value=null;const c=await t(...y),f=E(c,i);return A(u,f),r.value=n.ApiStatus.Done,f}catch(c){return s.value=n.toError(c),r.value=n.ApiStatus.Failed,Promise.reject()}},apiStatus:r,isPending:p,error:s}}exports.deepEqual=a;exports.isEmpty=d;exports.isEqual=l;exports.useService=h;
@@ -1 +0,0 @@
1
- const m=require("./useService-H7BjLg8P.js"),w=require("./subscriptions-Cm83ckfl.js"),P=n=>n.original_pricing_id??n.id,g=n=>n.original_pricing_item_id??n.id,h=n=>n.original_pricing_item_config_id??n.id,S=(n,i)=>(n==null?void 0:n.type)===(i==null?void 0:i.type)&&(n==null?void 0:n.value)===(i==null?void 0:i.value);function l(n){const i={};for(const c in n)n[c]!==void 0&&(i[c]=n[c]);return i}function o(n,i,c){if(!(i!=null&&i.length))return n;if(!(n!=null&&n.length))return i;const r=new Set;return[...n.reduce((p,u)=>{const _=i.find(d=>h(d)===h(u));return _?(r.add(_),[...p,U(u,_)]):c.dropUnmatched?p:[...p,u]},[]),...i.filter(p=>!r.has(p))]}function e(n,i,c){return i!=null&&i.length?n!=null&&n.length?[...n.map(r=>{const t=i.find(p=>S(p.billing_period,r.billing_period));return t?{...r,configs:o(r.configs,t.configs,c)??[]}:r}),...i.filter(r=>!n.some(t=>S(r.billing_period,t.billing_period)))]:i:n}function O(n,i,c){return i!=null&&i.length?n!=null&&n.length?[...n.map(r=>{const t=i.find(p=>p.currency===r.currency);return t?{...r,...l(t),configs:o(r.configs,t.configs,c),billing_period_configs:e(r.billing_period_configs,t.billing_period_configs,c)}:r}),...i.filter(r=>!n.some(t=>t.currency===r.currency))]:i:n}function U(n,i){const c={dropUnmatched:!1};return{...n,...l(i),id:i.id??n.id,original_pricing_item_config_id:h(n),conditions:n.conditions&&i.conditions?{...n.conditions,...l(i.conditions),meter_properties:n.conditions.meter_properties??i.conditions.meter_properties,configs:o(n.conditions.configs,i.conditions.configs,c)}:i.conditions??n.conditions,billing_period_configs:e(n.billing_period_configs,i.billing_period_configs,c)}}function L(n,i){const c={dropUnmatched:i.override==="ALL"};return{...n,...l(i),id:i.id??n.id,original_pricing_item_id:g(n),product_items:n.product_items,configs:o(n.configs,i.configs,c),billing_period_configs:e(n.billing_period_configs,i.billing_period_configs,c),pricing_currency_configs:O(n.pricing_currency_configs,i.pricing_currency_configs,c)}}function A(n,i,c){if(!(i!=null&&i.length))return n;if(!(n!=null&&n.length))return i;const r=new Set;return[...n.reduce((p,u)=>{const _=i.find(d=>g(d)===g(u));return _?(r.add(_),[...p,L(u,_)]):c.dropUnmatched?p:[...p,u]},[]),...i.filter(p=>!r.has(p))]}function D(n,i){return i!=null&&i.length?i.map(c=>{var t;const r=(t=n==null?void 0:n.find(p=>p.feature_id===c.feature_id))==null?void 0:t.feature;return r?{...c,feature:r}:c}):n}function q(n,i){const c={dropUnmatched:i.override==="ALL"};return{...n,...l(i),id:i.id??n.id,original_pricing_id:P(n),products:n.products,entitlements:D(n.entitlements,i.entitlements),items:A(n.items,i.items,c)}}function y(n,i){return n.map(c=>{const r=i.find(t=>t.original_pricing_id===P(c));return r?q(c,r):c})}function s({pricingPlanVersion:n,overridePricings:i}){var r;const c=i??[];return c.length?{...n,pricing_categories:(r=n.pricing_categories)==null?void 0:r.map(t=>{var p;return{...t,pricings:t.pricings&&y(t.pricings,c),pricing_groups:(p=t.pricing_groups)==null?void 0:p.map(u=>({...u,pricings:y(u.pricings,c)}))}})}:n}function x(n){return n.pricing_plan_schedule_infos.map(i=>{var c;return{schedule:i.pricing_plan_schedule,selectedPricingPlan:i.pricing_plan_version.pricing_plan,selectedPricingPlanVersion:s({pricingPlanVersion:i.pricing_plan_version,overridePricings:(c=i.pricing_plan_schedule)==null?void 0:c.override_pricings})}})}function B({subscriptionId:n}){const{getSubscription:i}=w.createSubscriptionsService(),{data:c,execute:r,apiStatus:t,error:p,isPending:u}=m.useService({service:()=>i({id:n,expanded:!0})});return{subscription:c,withPlanData:d=>x(d),apiStatus:t,error:p,get:r,isPending:u}}exports.useSubscription=B;