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

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 (215) hide show
  1. package/README.md +12 -10
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
  4. package/dist/{Avatar.vue.es-Bm6MCMAL.js → Avatar.vue.es-BJxSCU76.js} +1 -1
  5. package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
  6. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +14 -15
  8. package/dist/{Button.vue.es-qGvnOKnK.js → Button.vue.es-BzkuglKw.js} +1 -1
  9. package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
  10. package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CB4mrvkU.mjs} +145 -153
  11. package/dist/{ChargeOnDemandModal-DIQaGnRs.js → ChargeOnDemandModal-b17YswWA.js} +1 -1
  12. package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
  13. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
  14. package/dist/{Chip.vue.es-D60gTbfe.js → Chip.vue.es-B2jjzIOc.js} +1 -1
  15. package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
  16. package/dist/{ContextMenu.vue.es-C7KI8Gz6.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +4 -4
  18. package/dist/{CustomerBillingInformation.vue.es-bFUx81Ig.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
  19. package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +110 -123
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
  24. package/dist/{DividerText.vue.es-BF3gnr4e.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
  25. package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
  28. package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
  29. package/dist/{ErrorNotification.vue.es-BX9dHEc-.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
  30. package/dist/{IconButton.vue.es-Bwdfu-jm.js → IconButton.vue.es-DgQN18Am.js} +1 -1
  31. package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-Cei98MBw.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
  34. package/dist/{Input.vue.es-B47l_feL.js → Input.vue.es-B60eK8Ds.js} +1 -1
  35. package/dist/{Input.vue.es-D9IjIWc-.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
  40. package/dist/{InvoiceSummary.vue.es-DBnR9Hs7.js → InvoiceSummary.vue.es-CAmA8g0t.js} +1 -1
  41. package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +7 -7
  42. package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
  43. package/dist/{Modal.vue.es-8LN4gBh0.js → Modal.vue.es-DvLB3uCG.js} +1 -1
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-Ds93gNvh.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
  49. package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-B_Db4DG1.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
  55. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs} +4 -4
  56. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
  57. package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +16 -20
  58. package/dist/{PaymentIntegrationFormStripe-DUCJTIAq.js → PaymentIntegrationFormStripe-CoLmAzas.js} +3 -3
  59. package/dist/{PaymentIntegrationFormStripe-BIiMCWlV.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +5 -5
  60. package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +3 -3
  61. package/dist/{PaymentMethod.vue.es-CJcSZ9lN.js → PaymentMethod.vue.es-D0D9jW8s.js} +1 -1
  62. package/dist/{PaymentMethodForm-1d0YIGOu.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
  63. package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
  64. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +33 -35
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js} +1 -1
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
  69. package/dist/{PlanCustomizationEditor-CpZeilm5.mjs → PlanCustomizationEditor-DlVSCKGN.mjs} +234 -206
  70. package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-DZSJ5Mz0.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
  72. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs} +6 -6
  73. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js} +1 -1
  74. package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-Dt6LH9Yh.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
  76. package/dist/{Section.vue.es-zVXBHAL6.js → Section.vue.es-Bbt0RITt.js} +1 -1
  77. package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
  80. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
  81. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
  82. package/dist/{StepInput.vue.es-mAnuCuDQ.js → StepInput.vue.es-H-3R4jJq.js} +1 -1
  83. package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-o-3Lg4Ai.mjs} +4 -4
  84. package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-CGl6Z5ql.mjs} +22 -22
  85. package/dist/{SubscriptionDetails.entry.ce-D4CsSoR9.js → SubscriptionDetails.entry.ce-CQUO_uXH.js} +1 -1
  86. package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
  87. package/dist/{SubscriptionSchedules-Cm5Dt-1H.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +11 -11
  89. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js} +1 -1
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +2 -2
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +8 -9
  94. package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +1 -1
  95. package/dist/{TooltipParagraph.vue.es-Cph6zT31.js → TooltipParagraph.vue.es-DvC5Wjaz.js} +1 -1
  96. package/dist/{TrialChip.vue.es-C_wgHGuN.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
  97. package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
  98. package/dist/{cn.es-D9YMDvG2.js → cn.es-C9Yqq4tg.js} +1 -1
  99. package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
  100. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  101. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  102. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  103. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
  104. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  105. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  106. package/dist/components/Invoice/Invoice.cjs +1 -1
  107. package/dist/components/Invoice/Invoice.mjs +9 -9
  108. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  109. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +15 -16
  110. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  111. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  112. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  113. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  114. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  115. package/dist/components/PaymentHistory/PaymentHistory.mjs +14 -15
  116. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  117. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  118. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  119. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  120. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  121. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  122. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  123. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  124. package/dist/{customElements-D5DAoHRI.mjs → customElements-B58FcXIN.mjs} +5 -5
  125. package/dist/{customElements-C963-LtW.js → customElements-DUMRMFQ5.js} +2 -2
  126. package/dist/{customer-DKa1B2vp.mjs → customer-B3LPAhaD.mjs} +1 -1
  127. package/dist/{customer-TE1FnGT0.js → customer-CisTPaXj.js} +1 -1
  128. package/dist/{de-DE-CLfzTbbX.mjs → de-DE-DKp5LCu0.mjs} +15 -1
  129. package/dist/de-DE-DL74pMLb.js +1 -0
  130. package/dist/en-US-B2XFj-_p.js +1 -0
  131. package/dist/{en-US-D6SGRAch.mjs → en-US-DQ5vlv9Z.mjs} +15 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.mjs +2 -2
  134. package/dist/{invoices-DJTwftJv.mjs → invoices-3520M5AN.mjs} +1 -1
  135. package/dist/{invoices-ClqTWYF9.js → invoices-CKQBLar2.js} +1 -1
  136. package/dist/{it-IT-Cym1UvvK.mjs → it-IT-BgFVsO5S.mjs} +15 -1
  137. package/dist/it-IT-CqNK62qe.js +1 -0
  138. package/dist/nl-NL-Dx-TNXQ1.js +1 -0
  139. package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-UiRWbO9S.mjs} +15 -1
  140. package/dist/{paymentMethods-CWzJhcWK.mjs → paymentMethods-CWlvwK5V.mjs} +1 -1
  141. package/dist/{paymentMethods-AL2U_byg.js → paymentMethods-Cw-i95mM.js} +1 -1
  142. package/dist/{payments-aXyfylwk.mjs → payments-2qeQdpiW.mjs} +1 -1
  143. package/dist/{payments-BmiHMlQt.js → payments-CS7_YcOW.js} +1 -1
  144. package/dist/pricing-BIMpDI_p.mjs +29 -0
  145. package/dist/pricing-BOqG21f9.js +1 -0
  146. package/dist/{pricingPlanSchedules-BfsMSvN0.js → pricingPlanSchedules-B_sTAIgU.js} +1 -1
  147. package/dist/{pricingPlanSchedules-BD4GIP_F.mjs → pricingPlanSchedules-ChQCbMfe.mjs} +1 -1
  148. package/dist/screens/Checkout/Checkout.cjs +1 -1
  149. package/dist/screens/Checkout/Checkout.mjs +2 -2
  150. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  151. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  152. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  153. package/dist/screens/PayInvoice/PayInvoice.mjs +12 -12
  154. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  155. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  156. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  157. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  158. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  159. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
  160. package/dist/{subscriptions-cnR5fnf7.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
  161. package/dist/{subscriptions-Cm83ckfl.js → subscriptions-DwVsf4Ev.js} +1 -1
  162. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  163. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  164. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  165. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  166. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +1 -1
  167. package/dist/{useActionDispatchProvider-DDYqIh3r.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
  168. package/dist/{useActionDispatchProvider-CHkVQMaE.js → useActionDispatchProvider-DFhppdve.js} +1 -1
  169. package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
  170. package/dist/{useCustomer-DGYtowRy.js → useCustomer-BwZKd9i5.js} +1 -1
  171. package/dist/{useCustomerFormLabels-CcnkJLcB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +5 -5
  172. package/dist/{useCustomerFormLabels-DAZziqYt.js → useCustomerFormLabels-DV9QiMYh.js} +1 -1
  173. package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
  174. package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
  175. package/dist/{useInvoiceData-BEK-7msA.mjs → useInvoiceData-BocKdeg7.mjs} +2 -2
  176. package/dist/{useInvoiceData-CQRn8l9C.js → useInvoiceData-CNV_FMV8.js} +1 -1
  177. package/dist/{useInvoicesList-C4I118KM.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
  178. package/dist/{useInvoicesList-BQkKyyXa.js → useInvoicesList-S0IbQcrD.js} +1 -1
  179. package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
  180. package/dist/{useLoadInitialData-CrKnBZs_.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
  181. package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
  182. package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +13 -14
  183. package/dist/{usePaymentMethodOptions-Ciifjo6c.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +1 -1
  184. package/dist/{usePaymentMethodOptions-Cqe92ZBn.js → usePaymentMethodOptions-CuzOoi2k.js} +1 -1
  185. package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
  186. package/dist/{usePaymentMethods-BKwrl82-.js → usePaymentMethods-DDaTZQZp.js} +1 -1
  187. package/dist/{usePayments-CV85OV8V.mjs → usePayments-Cr6NlGaW.mjs} +6 -6
  188. package/dist/{usePayments-Bauj16B-.js → usePayments-DDSjo0rH.js} +1 -1
  189. package/dist/{usePortal-DSLImEfr.js → usePortal-C27omjhz.js} +1 -1
  190. package/dist/{usePortal-H8Tv2TnZ.mjs → usePortal-C5AsegpS.mjs} +1 -1
  191. package/dist/{useSubscription-DqnxWNKg.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
  192. package/dist/{useSubscription-BiYNJT2e.js → useSubscription-D787IXY-.js} +1 -1
  193. package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
  194. package/dist/{useTimePeriod.es-D2aiyfd-.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
  195. package/package.json +10 -7
  196. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
  197. package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
  198. package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
  199. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
  200. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
  201. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
  202. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
  203. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
  204. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
  205. package/dist/adyen-CvsH5fok.mjs +0 -117
  206. package/dist/adyen-Druit6gz.js +0 -1
  207. package/dist/de-DE-DaBBl-Ak.js +0 -1
  208. package/dist/en-US-BNevqm0M.js +0 -1
  209. package/dist/it-IT-BkPbTueL.js +0 -1
  210. package/dist/nl-NL-jIfAVGv0.js +0 -1
  211. package/dist/pricing-BVAld27Y.js +0 -1
  212. package/dist/pricing-DLOeiAIB.mjs +0 -16
  213. package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
  214. package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
  215. package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
@@ -0,0 +1,135 @@
1
+ import { inject as c } from "vue";
2
+ import { E as l } from "./customElements-B58FcXIN.mjs";
3
+ function m(e) {
4
+ const n = new Intl.NumberFormat(void 0, {
5
+ style: "currency",
6
+ currency: e.currency
7
+ }), { maximumFractionDigits: t = 10 } = n.resolvedOptions();
8
+ return {
9
+ value: Math.round(+e.quantity * Math.pow(10, t)),
10
+ currency: e.currency
11
+ };
12
+ }
13
+ const f = (e) => {
14
+ var n;
15
+ return ((n = e.split(".")[1]) == null ? void 0 : n.length) ?? 0;
16
+ };
17
+ function N(e, n) {
18
+ const t = e.map(({ quantity: i }) => i).filter((i) => Number.isFinite(Number(i))), r = t.reduce((i, u) => Math.max(i, f(u)), 2), a = 10 ** r;
19
+ return { quantity: (t.reduce(
20
+ (i, u) => i + Math.round(Number(u) * a),
21
+ 0
22
+ ) / a).toFixed(r), currency: n };
23
+ }
24
+ const d = ["applepay"];
25
+ function E(e) {
26
+ return e.filter(
27
+ (n) => !d.some((t) => {
28
+ var r;
29
+ return t === ((r = n.type) == null ? void 0 : r.toLowerCase());
30
+ })
31
+ );
32
+ }
33
+ const _ = "payment_acceptor_id", g = "redirectResult";
34
+ function y(e) {
35
+ var n, t;
36
+ return (t = (n = e.integration.payment_gateway) == null ? void 0 : n.adyen) == null ? void 0 : t.public_key;
37
+ }
38
+ function s(e) {
39
+ var n;
40
+ return ((n = e.options) == null ? void 0 : n.filter(
41
+ (t) => t.payment_gateway_variant === "ADYEN"
42
+ ).flatMap(
43
+ (t) => p(t.adyen)
44
+ )) ?? [];
45
+ }
46
+ function T(e, { excludeExpressPaymentMethods: n = !1 } = {}) {
47
+ const t = s(e);
48
+ return n ? E(t) : t;
49
+ }
50
+ function p(e) {
51
+ return {
52
+ type: e.type,
53
+ name: e.name,
54
+ ...e.issuers ? { issuers: e.issuers } : {},
55
+ ...e.brands ? { brands: e.brands } : {},
56
+ ...e.funding_source ? { fundingSource: e.funding_source } : {},
57
+ ...e.configuration ? { configuration: e.configuration } : {}
58
+ };
59
+ }
60
+ function P({
61
+ paymentAcceptorId: e,
62
+ redirectUrl: n = window.location.href
63
+ }) {
64
+ const t = new URL(n);
65
+ return t.searchParams.set(_, e), t.toString();
66
+ }
67
+ function A(e, n) {
68
+ var r, a;
69
+ const t = (a = (r = e == null ? void 0 : e.integration.payment_gateway) == null ? void 0 : r.adyen) == null ? void 0 : a.environment;
70
+ if (!t)
71
+ return n.warn(
72
+ "ADYEN_INVALID_CONFIGURATION",
73
+ "No environment set for adyen advanced flow, defaulted to live"
74
+ ), "live";
75
+ switch (t) {
76
+ case "TEST":
77
+ return "test";
78
+ case "LIVE_IN":
79
+ return "live-in";
80
+ case "LIVE_AU":
81
+ return "live-au";
82
+ case "LIVE_US":
83
+ return "live-us";
84
+ case "LIVE_APSE":
85
+ return "live-apse";
86
+ case "LIVE":
87
+ return "live";
88
+ default:
89
+ return n.warn(
90
+ "ADYEN_INVALID_CONFIGURATION",
91
+ `Unsupported environment "${t}" for adyen advanced flow, defaulted to "live"`
92
+ ), "live";
93
+ }
94
+ }
95
+ function w({
96
+ amount: e,
97
+ countryCode: n,
98
+ locale: t,
99
+ paymentMethodOptionResponse: r,
100
+ logger: a,
101
+ onSubmit: o
102
+ }) {
103
+ return {
104
+ ...e ? { amount: m(e) } : {},
105
+ ...o ? { onSubmit: o } : {},
106
+ analytics: { enabled: !1 },
107
+ clientKey: y(r),
108
+ countryCode: n,
109
+ environment: A(
110
+ r,
111
+ a
112
+ ),
113
+ locale: t,
114
+ paymentMethodsResponse: {
115
+ paymentMethods: s(r)
116
+ }
117
+ };
118
+ }
119
+ function R(e) {
120
+ return e ? Object.fromEntries(Object.entries(e).map(([n, t]) => [n, String(t)])) : void 0;
121
+ }
122
+ const M = () => c(l);
123
+ export {
124
+ _ as P,
125
+ g as R,
126
+ A as a,
127
+ y as b,
128
+ R as c,
129
+ P as d,
130
+ w as e,
131
+ T as g,
132
+ N as s,
133
+ m as t,
134
+ M as u
135
+ };
@@ -0,0 +1 @@
1
+ const d=require("vue"),f=require("./customElements-DUMRMFQ5.js");function s(e){const n=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currency}),{maximumFractionDigits:t=10}=n.resolvedOptions();return{value:Math.round(+e.quantity*Math.pow(10,t)),currency:e.currency}}const y=e=>{var n;return((n=e.split(".")[1])==null?void 0:n.length)??0};function _(e,n){const t=e.map(({quantity:i})=>i).filter(i=>Number.isFinite(Number(i))),r=t.reduce((i,u)=>Math.max(i,y(u)),2),o=10**r;return{quantity:(t.reduce((i,u)=>i+Math.round(Number(u)*o),0)/o).toFixed(r),currency:n}}const A=["applepay"];function I(e){return e.filter(n=>!A.some(t=>{var r;return t===((r=n.type)==null?void 0:r.toLowerCase())}))}const c="payment_acceptor_id",p="redirectResult";function m(e){var n,t;return(t=(n=e.integration.payment_gateway)==null?void 0:n.adyen)==null?void 0:t.public_key}function l(e){var n;return((n=e.options)==null?void 0:n.filter(t=>t.payment_gateway_variant==="ADYEN").flatMap(t=>v(t.adyen)))??[]}function N(e,{excludeExpressPaymentMethods:n=!1}={}){const t=l(e);return n?I(t):t}function v(e){return{type:e.type,name:e.name,...e.issuers?{issuers:e.issuers}:{},...e.brands?{brands:e.brands}:{},...e.funding_source?{fundingSource:e.funding_source}:{},...e.configuration?{configuration:e.configuration}:{}}}function R({paymentAcceptorId:e,redirectUrl:n=window.location.href}){const t=new URL(n);return t.searchParams.set(c,e),t.toString()}function E(e,n){var r,o;const t=(o=(r=e==null?void 0:e.integration.payment_gateway)==null?void 0:r.adyen)==null?void 0:o.environment;if(!t)return n.warn("ADYEN_INVALID_CONFIGURATION","No environment set for adyen advanced flow, defaulted to live"),"live";switch(t){case"TEST":return"test";case"LIVE_IN":return"live-in";case"LIVE_AU":return"live-au";case"LIVE_US":return"live-us";case"LIVE_APSE":return"live-apse";case"LIVE":return"live";default:return n.warn("ADYEN_INVALID_CONFIGURATION",`Unsupported environment "${t}" for adyen advanced flow, defaulted to "live"`),"live"}}function T({amount:e,countryCode:n,locale:t,paymentMethodOptionResponse:r,logger:o,onSubmit:a}){return{...e?{amount:s(e)}:{},...a?{onSubmit:a}:{},analytics:{enabled:!1},clientKey:m(r),countryCode:n,environment:E(r,o),locale:t,paymentMethodsResponse:{paymentMethods:l(r)}}}function g(e){return e?Object.fromEntries(Object.entries(e).map(([n,t])=>[n,String(t)])):void 0}const P=()=>d.inject(f.EXPERIMENTAL_FEATURE_INJECTION_KEY);exports.PAYMENT_ACCEPTOR_ID_QUERY_STRING=c;exports.REDIRECT_RESULT_QUERY_STRING=p;exports.createReturnUrl=R;exports.getAdyenClientKeyFromPaymentMethodOptionsResponse=m;exports.getAdyenDropInPaymentMethods=N;exports.getAdyenEnvironmentFromPaymentMethodOptionsResponse=E;exports.getAdyenExpressCheckoutConfiguration=T;exports.sumAmounts=_;exports.toMinorUnitAmount=s;exports.transformObjectToAdyenObject=g;exports.useExperimentalFeature=P;
@@ -1,5 +1,5 @@
1
- import { c as m } from "./invoices-DJTwftJv.mjs";
2
- import { c as u } from "./payments-aXyfylwk.mjs";
1
+ import { c as m } from "./invoices-3520M5AN.mjs";
2
+ import { c as u } from "./payments-2qeQdpiW.mjs";
3
3
  import { ref as o, onMounted as f } from "vue";
4
4
  import { u as v } from "./useWatchDebounced-BHlBPcXB.mjs";
5
5
  const y = ({
@@ -1 +1 @@
1
- const r=require("./invoices-ClqTWYF9.js"),v=require("./payments-BmiHMlQt.js"),s=require("vue"),y=require("./useWatchDebounced-B8iX7ykx.js"),d=({getData:n,onError:e,watchValue:t,debounce:c=200})=>{const a=s.ref(),i=s.ref(!0),u=async()=>{try{a.value=await n(t)}catch(o){e==null||e(o)}finally{i.value=!1}};return t&&y.useWatchDebounced(t,()=>void u(),{debounce:c}),s.onMounted(async()=>{u()}),{data:a,isPending:i}};function D(n){const{getInvoice:e}=r.createInvoicesService(),{getPayments:t}=v.createPaymentsService();return d({getData:async()=>{const[c,a]=await Promise.all([e(n),t(n)]);return{invoice:c,paymentAttempts:a}}})}exports.useInvoiceData=D;
1
+ const r=require("./invoices-CKQBLar2.js"),v=require("./payments-CS7_YcOW.js"),s=require("vue"),y=require("./useWatchDebounced-B8iX7ykx.js"),d=({getData:n,onError:e,watchValue:t,debounce:c=200})=>{const a=s.ref(),i=s.ref(!0),u=async()=>{try{a.value=await n(t)}catch(o){e==null||e(o)}finally{i.value=!1}};return t&&y.useWatchDebounced(t,()=>void u(),{debounce:c}),s.onMounted(async()=>{u()}),{data:a,isPending:i}};function D(n){const{getInvoice:e}=r.createInvoicesService(),{getPayments:t}=v.createPaymentsService();return d({getData:async()=>{const[c,a]=await Promise.all([e(n),t(n)]);return{invoice:c,paymentAttempts:a}}})}exports.useInvoiceData=D;
@@ -1,15 +1,15 @@
1
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";
2
+ import { _ as U } from "./Section.vue.es-DVEpre9O.mjs";
3
+ import { a as R, _ as L } from "./customElements-B58FcXIN.mjs";
4
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";
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
8
  import { _ as Y } from "./floating-ui.vue.es-CYt0fSY7.mjs";
9
- import { u as Z } from "./useActionDispatchProvider-DDYqIh3r.mjs";
9
+ import { u as Z } from "./useActionDispatchProvider-B3AvkLL2.mjs";
10
10
  import { r as ee } from "./configuration-BytDBAWs.mjs";
11
11
  import { u as te } from "./useIncrementalLoading-Cgxw2GD7.mjs";
12
- import { c as oe } from "./invoices-DJTwftJv.mjs";
12
+ import { c as oe } from "./invoices-3520M5AN.mjs";
13
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
14
  __name: "Table",
15
15
  props: {
@@ -1 +1 @@
1
- const e=require("vue"),w=require("./Section.vue.es-zVXBHAL6.js"),m=require("./customElements-C963-LtW.js"),x=require("./Amount.vue.es-DExaYBqm.js"),v=require("./Button.vue.es-qGvnOKnK.js"),B=require("./Chip.vue.es-D60gTbfe.js"),_=require("./TooltipParagraph.vue.es-Cph6zT31.js"),C=require("./floating-ui.vue.es-Bly3DGWm.js"),N=require("./useActionDispatchProvider-CHkVQMaE.js"),V=require("./configuration-akTS7Wiw.js"),$=require("./useIncrementalLoading-CaWOE8Xl.js"),S=require("./invoices-ClqTWYF9.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
+ 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,5 +1,5 @@
1
1
  import { ref as r, onMounted as i } from "vue";
2
- import { b as n } from "./customElements-D5DAoHRI.mjs";
2
+ import { b as n } from "./customElements-B58FcXIN.mjs";
3
3
  function u(...o) {
4
4
  const a = r(!0), e = n();
5
5
  return i(async () => {
@@ -1 +1 @@
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
+ 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;
@@ -0,0 +1 @@
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,8 +1,8 @@
1
1
  import { defineComponent as y, computed as r, openBlock as v, createBlock as b, withCtx as _, createElementVNode as A, createVNode as N, unref as g, createTextVNode as w, toDisplayString as E, renderSlot as I, toValue as u, watch as x } from "vue";
2
- import { a as M, _ as L, b as B } from "./customElements-D5DAoHRI.mjs";
3
- import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs";
4
- import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs";
5
- import { u as V } from "./useExperimentalFeature-ierhOt9Q.mjs";
2
+ import { a as M, _ as L, b as B } from "./customElements-B58FcXIN.mjs";
3
+ import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs";
4
+ import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs";
5
+ import { u as V } from "./useExperimentalFeature-BciA3Ok9.mjs";
6
6
  const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
7
7
  __name: "PaymentMethodsUnavailableCard",
8
8
  props: {
@@ -46,8 +46,7 @@ const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
46
46
  return (o, c) => (v(), b(T, {
47
47
  status: "error",
48
48
  title: m.value,
49
- class: "sv-payment-methods-unavailable-card",
50
- "data-testid": "payment-methods-unavailable"
49
+ class: "sv-payment-methods-unavailable-card"
51
50
  }, {
52
51
  default: _(() => [
53
52
  A("div", S, [
@@ -76,23 +75,23 @@ function R({
76
75
  const m = B(), s = V(), o = r(
77
76
  () => u(d) ?? []
78
77
  ), c = r(() => {
79
- var a;
78
+ var n;
80
79
  return u(e) ? "LOADING" : O(o.value, {
81
- excludeExpressPaymentMethods: !!((a = s == null ? void 0 : s.value) != null && a["express-checkout"])
80
+ excludeExpressPaymentMethods: !!((n = s == null ? void 0 : s.value) != null && n["express-checkout"])
82
81
  }) ? "READY" : "UNAVAILABLE";
83
82
  }), h = r(() => {
84
- const a = [
85
- ...new Set(o.value.map(({ payment_acceptor: n }) => n == null ? void 0 : n.id))
86
- ].filter((n) => !!n);
83
+ const n = [
84
+ ...new Set(o.value.map(({ payment_acceptor: a }) => a == null ? void 0 : a.id))
85
+ ].filter((a) => !!a);
87
86
  return [
88
87
  "NO_PAYMENT_METHODS_AVAILABLE",
89
- ...a.length ? a.sort() : ["no_payment_acceptor"]
88
+ ...n.length ? n.sort() : ["no_payment_acceptor"]
90
89
  ];
91
90
  });
92
91
  return x(
93
92
  () => [c.value, h.value.join("|")],
94
- ([a, n], l) => {
95
- if (a !== "UNAVAILABLE" || (l == null ? void 0 : l[0]) === "UNAVAILABLE" && l[1] === n)
93
+ ([n, a], l) => {
94
+ if (n !== "UNAVAILABLE" || (l == null ? void 0 : l[0]) === "UNAVAILABLE" && l[1] === a)
96
95
  return;
97
96
  const { invoiceId: p, subscriptionId: f } = u(t) ?? {};
98
97
  m.error(
@@ -1,6 +1,6 @@
1
1
  import { u as d, a as s } from "./useService-Bh47bllz.mjs";
2
2
  import { ref as h } from "vue";
3
- import { c as P } from "./paymentMethods-CWzJhcWK.mjs";
3
+ import { c as P } from "./paymentMethods-CWlvwK5V.mjs";
4
4
  function b(n) {
5
5
  return n.customerId !== void 0;
6
6
  }
@@ -1 +1 @@
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
+ 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,5 +1,5 @@
1
1
  import { u as s } from "./useIncrementalLoading-Cgxw2GD7.mjs";
2
- import { c as a } from "./paymentMethods-CWzJhcWK.mjs";
2
+ import { c as a } from "./paymentMethods-CWlvwK5V.mjs";
3
3
  function m({
4
4
  customerId: e,
5
5
  pageSize: t = 15
@@ -1 +1 @@
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
+ 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,14 +1,14 @@
1
1
  import { defineComponent as b, createPropsRestProxy as C, ref as _, computed as o, openBlock as c, createElementBlock as A, createVNode as g, unref as l, mergeProps as O, createSlots as S, withCtx as s, renderSlot as h, createBlock as p, createTextVNode as v, toDisplayString as D, createCommentVNode as I, createElementVNode as L } from "vue";
2
- import { a as N, _ as R } from "./customElements-D5DAoHRI.mjs";
3
- import { _ as B } from "./IconTitle.vue.es-CK9k69tV.mjs";
4
- import { _ as P } from "./Chip.vue.es-CKCOY5T6.mjs";
2
+ import { a as N, _ as R } from "./customElements-B58FcXIN.mjs";
3
+ import { _ as B } from "./IconTitle.vue.es-B_8bS0tn.mjs";
4
+ import { _ as P } from "./Chip.vue.es-DksjbJO8.mjs";
5
5
  import { a as x } from "./formatting.es-RclXHhKo.mjs";
6
6
  import { a as V, b as z } from "./index.es-CXkP_k3u.mjs";
7
- import { _ as $ } from "./Button.vue.es-C32_baQN.mjs";
7
+ import { _ as $ } from "./Button.vue.es-Cmjfm4jw.mjs";
8
8
  import { _ as k } from "./FormMessage.vue.es-jG3fQZms.mjs";
9
- import { c as U } from "./invoices-DJTwftJv.mjs";
9
+ import { c as U } from "./invoices-3520M5AN.mjs";
10
10
  import { u as T } from "./useService-Bh47bllz.mjs";
11
- import { c as M } from "./payments-aXyfylwk.mjs";
11
+ import { c as M } from "./payments-2qeQdpiW.mjs";
12
12
  const G = {
13
13
  neutral: { indicatorClass: "border-gray-500 bg-gray-500", chipIntent: "neutral" },
14
14
  info: { indicatorClass: "border-blue-600 bg-blue-600", chipIntent: "info" },
@@ -1 +1 @@
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
+ 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 +1 @@
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
+ 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,5 +1,5 @@
1
1
  import { inject as o } from "vue";
2
- import { P as t } from "./customElements-D5DAoHRI.mjs";
2
+ import { P as t } from "./customElements-B58FcXIN.mjs";
3
3
  function n() {
4
4
  const r = o(t);
5
5
  if (!r)
@@ -1,5 +1,5 @@
1
1
  import { u as P } from "./useService-Bh47bllz.mjs";
2
- import { c as w } from "./subscriptions-cnR5fnf7.mjs";
2
+ import { c as w } from "./subscriptions-DcfcBYAq.mjs";
3
3
  const e = (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, m = (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);
4
4
  function l(n) {
5
5
  const i = {};
@@ -1 +1 @@
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;
1
+ const m=require("./useService-H7BjLg8P.js"),w=require("./subscriptions-DwVsf4Ev.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;
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { a as d } from "./customElements-D5DAoHRI.mjs";
2
+ import { a as d } from "./customElements-B58FcXIN.mjs";
3
3
  function p() {
4
4
  const { $t: e } = d(), l = o(() => ({
5
5
  DAY: {
@@ -1 +1 @@
1
- const o=require("vue"),d=require("./customElements-C963-LtW.js");function s(){const{$t:e}=d.useIntl(),l=o.computed(()=>({DAY:{literal:{singular:e({defaultMessage:"day",id:"time_period.day.singular",description:"The singular form of the day time period"}),plural:e({defaultMessage:"days",id:"time_period.day.plural",description:"The plural form of the day time period"})},full:e({defaultMessage:"daily",id:"time_period.day.full",description:"The full form of the day time period"})},WEEK:{literal:{singular:e({defaultMessage:"week",id:"time_period.week.singular",description:"The singular form of the week time period"}),plural:e({defaultMessage:"weeks",id:"time_period.week.plural",description:"The plural form of the week time period"})},full:e({defaultMessage:"weekly",id:"time_period.week.full",description:"The full form of the week time period"})},MONTH:{literal:{singular:e({defaultMessage:"month",id:"time_period.month.singular",description:"The singular form of the month time period"}),plural:e({defaultMessage:"months",id:"time_period.month.plural",description:"The plural form of the month time period"})},full:e({defaultMessage:"monthly",id:"time_period.month.full",description:"The full form of the month time period"})},YEAR:{literal:{singular:e({defaultMessage:"year",id:"time_period.year.singular",description:"The singular form of the year time period"}),plural:e({defaultMessage:"years",id:"time_period.year.plural",description:"The plural form of the year time period"})},full:e({defaultMessage:"yearly",id:"time_period.year.full",description:"The full form of the year time period"})}}));return{map:l,formatTimePeriod:(r,i={short:!1,hideValueForExactPeriods:!1,singular:!1})=>{const a=r.value??1,t=l.value[r.type].literal[i.singular||+a==1?"singular":"plural"].toLowerCase();return`${i.prefix&&!i.short?`${i.prefix} `:""}${i.hideValueForExactPeriods&&a===1?t:`${a} ${t}`}`},formatTimePeriodLiteral:(r,i={singular:!1})=>l.value[r].literal[i.singular?"singular":"plural"]}}exports.useTimePeriod=s;
1
+ const o=require("vue"),d=require("./customElements-DUMRMFQ5.js");function s(){const{$t:e}=d.useIntl(),l=o.computed(()=>({DAY:{literal:{singular:e({defaultMessage:"day",id:"time_period.day.singular",description:"The singular form of the day time period"}),plural:e({defaultMessage:"days",id:"time_period.day.plural",description:"The plural form of the day time period"})},full:e({defaultMessage:"daily",id:"time_period.day.full",description:"The full form of the day time period"})},WEEK:{literal:{singular:e({defaultMessage:"week",id:"time_period.week.singular",description:"The singular form of the week time period"}),plural:e({defaultMessage:"weeks",id:"time_period.week.plural",description:"The plural form of the week time period"})},full:e({defaultMessage:"weekly",id:"time_period.week.full",description:"The full form of the week time period"})},MONTH:{literal:{singular:e({defaultMessage:"month",id:"time_period.month.singular",description:"The singular form of the month time period"}),plural:e({defaultMessage:"months",id:"time_period.month.plural",description:"The plural form of the month time period"})},full:e({defaultMessage:"monthly",id:"time_period.month.full",description:"The full form of the month time period"})},YEAR:{literal:{singular:e({defaultMessage:"year",id:"time_period.year.singular",description:"The singular form of the year time period"}),plural:e({defaultMessage:"years",id:"time_period.year.plural",description:"The plural form of the year time period"})},full:e({defaultMessage:"yearly",id:"time_period.year.full",description:"The full form of the year time period"})}}));return{map:l,formatTimePeriod:(r,i={short:!1,hideValueForExactPeriods:!1,singular:!1})=>{const a=r.value??1,t=l.value[r.type].literal[i.singular||+a==1?"singular":"plural"].toLowerCase();return`${i.prefix&&!i.short?`${i.prefix} `:""}${i.hideValueForExactPeriods&&a===1?t:`${a} ${t}`}`},formatTimePeriodLiteral:(r,i={singular:!1})=>l.value[r].literal[i.singular?"singular":"plural"]}}exports.useTimePeriod=s;
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@solvimon/solvimon-web",
3
- "version": "0.1.0-alpha.26",
3
+ "version": "0.1.0-alpha.27",
4
4
  "description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
5
5
  "private": false,
6
+ "engines": {
7
+ "node": ">=20.19.0"
8
+ },
6
9
  "publishConfig": {
7
10
  "access": "public",
8
11
  "registry": "https://registry.npmjs.org/"
@@ -11,7 +14,7 @@
11
14
  "analyze": "vite-bundle-visualizer",
12
15
  "prebuild": "npm run build:css && npm run type-check",
13
16
  "build": "vite build",
14
- "build:internal": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 npm run build",
17
+ "build:internal": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 npm run build -- --mode development",
15
18
  "build:css": "tailwindcss -i ./src/assets/index.css -o ./.sdk/tailwind.css",
16
19
  "dev": "npm run watch",
17
20
  "playground:dev": "npm --prefix playground run dev",
@@ -28,7 +31,7 @@
28
31
  "type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
29
32
  "prewatch": "npm run build:css",
30
33
  "watch": "run-p watch:js watch:css",
31
- "watch:js": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 vite build --watch",
34
+ "watch:js": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 vite build --watch --mode development",
32
35
  "watch:css": "npm run build:css -- --watch",
33
36
  "translations:extract": "formatjs extract 'src/**/*.{ts,vue}*' --ignore='**/*.d.ts' --out-file 'src/translations/source.json' --flatten --additional-function-names '$t'",
34
37
  "translations:compile": "formatjs compile 'src/translations/source.json' --out-file 'src/translations/locales/en-US.json'",
@@ -49,7 +52,7 @@
49
52
  "version:prerelease": "npm version prerelease --no-git-tag-version",
50
53
  "changelog:check": "node scripts/check-changelog.mjs",
51
54
  "publish:guard": "node scripts/publish-guard.mjs",
52
- "prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build && npm run bundle:check-contents",
55
+ "prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build && npm run bundle:check-contents && npm run types:check-published && npm run types:check-consumer",
53
56
  "prepare": "husky"
54
57
  },
55
58
  "lint-staged": {
@@ -172,9 +175,7 @@
172
175
  "vue": ">=3.5.0"
173
176
  },
174
177
  "dependencies": {
175
- "@adyen/adyen-web": "^6.14.0",
176
- "@stripe/stripe-js": "^9.8.0",
177
- "jwt-decode": "^4.0.0"
178
+ "@adyen/adyen-web": "^6.14.0"
178
179
  },
179
180
  "devDependencies": {
180
181
  "@commitlint/cli": "^20.5.3",
@@ -183,6 +184,7 @@
183
184
  "@playwright/test": "^1.57.0",
184
185
  "@solvimon/solvimon-types": "^1.2.0",
185
186
  "@solvimon/solvimon-ui": "^1.12.0",
187
+ "@stripe/stripe-js": "^9.8.0",
186
188
  "@tsconfig/node22": "^22.0.0",
187
189
  "@types/jsdom": "^21.1.7",
188
190
  "@types/node": "^22.10.2",
@@ -207,6 +209,7 @@
207
209
  "glob": "^11.0.1",
208
210
  "husky": "^9.1.7",
209
211
  "jsdom": "^26.0.0",
212
+ "jwt-decode": "^4.0.0",
210
213
  "lint-staged": "^16.4.0",
211
214
  "npm-run-all2": "^7.0.2",
212
215
  "postcss": "^8.5.23",
@@ -1 +0,0 @@
1
- const t=require("vue"),a=require("./Button.vue.es-qGvnOKnK.js"),l=require("./CustomerBillingInformation.vue.es-bFUx81Ig.js"),u=require("./customElements-C963-LtW.js"),m=require("./Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js"),f=require("./useActionDispatchProvider-CHkVQMaE.js"),_=require("./configuration-akTS7Wiw.js"),v=t.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{type:Object}},emits:["edit-billing-information"],setup(e){const n={showEditButton:!0},o=e,s=t.computed(()=>_.resolveConfiguration(n,o.configuration)),{$t:r}=u.useIntl(),{dispatchAction:c}=f.useActionDispatchProvider();return(d,i)=>e.isLoading?(t.openBlock(),t.createBlock(m._sfc_main,{key:0,variant:"section",class:"sv-billing-information sv-root sv-component sv-loading min-h-[100px]","data-testid":"billing-information-skeleton"})):(t.openBlock(),t.createBlock(t.unref(l._sfc_main),{key:1,class:"sv-billing-information sv-root sv-component",customer:e.customer,"fallback-to-reference":!1},t.createSlots({_:2},[s.value.showEditButton?{name:"settings",fn:t.withCtx(()=>[t.createVNode(t.unref(a._sfc_main),{size:"sm",intent:"subtle","icon-prefix":"edit",class:"sv-action sv-action--ghost sv-billing-information__edit",onClick:i[0]||(i[0]=g=>t.unref(c)({action:"edit-billing-information"}))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=v;