@solvimon/solvimon-web 0.1.0-alpha.25 → 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 (302) hide show
  1. package/README.md +16 -11
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
  4. package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-BJxSCU76.js} +1 -1
  5. package/dist/{Avatar.vue.es-C9Jkfuvp.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-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +15 -16
  8. package/dist/{Button.vue.es-CeUTAc2n.js → Button.vue.es-BzkuglKw.js} +1 -1
  9. package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
  10. package/dist/ChargeOnDemandModal-CB4mrvkU.mjs +975 -0
  11. package/dist/ChargeOnDemandModal-b17YswWA.js +1 -0
  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-BN83K3Tk.js → Chip.vue.es-B2jjzIOc.js} +1 -1
  15. package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
  16. package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +10 -10
  18. package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
  19. package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.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-C8diNL5x.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +895 -891
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
  24. package/dist/{DividerText.vue.es-DsYRZzuE.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
  25. package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
  28. package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
  29. package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
  30. package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-DgQN18Am.js} +1 -1
  31. package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
  34. package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B60eK8Ds.js} +1 -1
  35. package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
  40. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +1 -0
  41. package/dist/{InvoiceSummary.vue.es-6qpbyymg.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +576 -565
  42. package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
  43. package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-DvLB3uCG.js} +1 -1
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
  49. package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-DL55i0HD.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-CCKCXXZX.mjs +154 -0
  56. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
  57. package/dist/{PaymentIntegrationFormAdyen-Cqsy82To.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +202 -192
  58. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +102 -0
  59. package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +247 -220
  60. package/dist/{PaymentMethod.vue.es-m1NasGqw.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +168 -148
  61. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +1 -0
  62. package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
  63. package/dist/{PaymentMethodForm-BYzt1PVP.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
  64. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +60 -58
  65. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +1 -0
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.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-DlVSCKGN.mjs +722 -0
  70. package/dist/{PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
  72. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs +141 -0
  73. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +1 -0
  74. package/dist/{RadioGroupExtended.vue.es-CkhBp9kI.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
  76. package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-Bbt0RITt.js} +1 -1
  77. package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.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-H-3R4jJq.js +1 -0
  83. package/dist/StepInput.vue.es-o-3Lg4Ai.mjs +199 -0
  84. package/dist/SubscriptionDetails.entry.ce-CGl6Z5ql.mjs +1057 -0
  85. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +1 -0
  86. package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
  87. package/dist/{SubscriptionSchedules-CMVoB2bw.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +2284 -2341
  89. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +1 -0
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +3 -3
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +9 -10
  94. package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +3 -3
  95. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +1 -0
  96. package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
  97. package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
  98. package/dist/{cn.es-71nFUose.js → cn.es-C9Yqq4tg.js} +1 -1
  99. package/dist/{cn.es-ZXNzpauQ.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 +246 -230
  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 +201 -212
  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-q_i9y0Ph.mjs → customElements-B58FcXIN.mjs} +231 -196
  125. package/dist/{customElements-hH6pju3X.js → customElements-DUMRMFQ5.js} +36 -32
  126. package/dist/{customer-BDoOIAFr.mjs → customer-B3LPAhaD.mjs} +4 -4
  127. package/dist/{customer-C9q6ti8s.js → customer-CisTPaXj.js} +1 -1
  128. package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
  129. package/dist/{de-DE-B_ik9VNt.mjs → de-DE-DKp5LCu0.mjs} +53 -7
  130. package/dist/de-DE-DL74pMLb.js +1 -0
  131. package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
  132. package/dist/en-US-B2XFj-_p.js +1 -0
  133. package/dist/{en-US-DkCltadt.mjs → en-US-DQ5vlv9Z.mjs} +53 -7
  134. package/dist/en-US-J85TQRI8.js +1 -0
  135. package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
  136. package/dist/formControl-ODrpUvcA.js +1 -0
  137. package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
  138. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
  139. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.mjs +4 -4
  142. package/dist/{invoices-DIzkXntV.mjs → invoices-3520M5AN.mjs} +1 -1
  143. package/dist/{invoices-CHp75zZI.js → invoices-CKQBLar2.js} +1 -1
  144. package/dist/{it-IT-CHj2McbF.mjs → it-IT-BgFVsO5S.mjs} +53 -7
  145. package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
  146. package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
  147. package/dist/it-IT-CqNK62qe.js +1 -0
  148. package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
  149. package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
  150. package/dist/nl-NL-Dx-TNXQ1.js +1 -0
  151. package/dist/{nl-NL-Cdvd_XMN.mjs → nl-NL-UiRWbO9S.mjs} +53 -7
  152. package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWlvwK5V.mjs} +16 -14
  153. package/dist/paymentMethods-Cw-i95mM.js +1 -0
  154. package/dist/{payments-C0-Hq2a4.mjs → payments-2qeQdpiW.mjs} +6 -6
  155. package/dist/{payments-DBvregE8.js → payments-CS7_YcOW.js} +1 -1
  156. package/dist/pricing-BIMpDI_p.mjs +29 -0
  157. package/dist/pricing-BOqG21f9.js +1 -0
  158. package/dist/pricing.es-C07bgEZx.js +1 -0
  159. package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
  160. package/dist/pricingPlanSchedules-B_sTAIgU.js +1 -0
  161. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +32 -0
  162. package/dist/screens/Checkout/Checkout.cjs +1 -1
  163. package/dist/screens/Checkout/Checkout.mjs +2 -2
  164. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  165. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  166. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  167. package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
  168. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  169. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  170. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  171. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
  172. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  173. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
  174. package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
  175. package/dist/{subscriptions--9MaTXMb.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
  176. package/dist/{subscriptions-BArXBCFr.js → subscriptions-DwVsf4Ev.js} +1 -1
  177. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  178. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  179. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  180. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  181. package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
  182. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
  183. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
  184. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
  185. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
  186. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
  187. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
  188. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
  189. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
  190. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
  191. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
  192. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  193. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
  194. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
  195. package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
  196. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
  197. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
  198. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
  199. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
  200. package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
  203. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
  204. package/dist/types/services/paymentMethods.types.d.ts +4 -2
  205. package/dist/types/services/requests.types.d.ts +5 -0
  206. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
  207. package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
  208. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
  209. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
  210. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
  211. package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
  212. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
  213. package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
  214. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
  215. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  216. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
  217. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
  218. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
  219. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
  220. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
  221. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
  222. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
  223. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
  225. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
  226. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
  227. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
  228. package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
  229. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
  230. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
  231. package/dist/{useActionDispatchProvider-BdciAX8T.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
  232. package/dist/{useActionDispatchProvider-CKzeqXzY.js → useActionDispatchProvider-DFhppdve.js} +1 -1
  233. package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
  234. package/dist/{useCustomer-DSYr0F58.js → useCustomer-BwZKd9i5.js} +1 -1
  235. package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +6 -6
  236. package/dist/useCustomerFormLabels-DV9QiMYh.js +1 -0
  237. package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
  238. package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
  239. package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BocKdeg7.mjs} +3 -3
  240. package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CNV_FMV8.js} +1 -1
  241. package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
  242. package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-S0IbQcrD.js} +1 -1
  243. package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
  244. package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
  245. package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
  246. package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +5 -6
  247. package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +15 -13
  248. package/dist/usePaymentMethodOptions-CuzOoi2k.js +1 -0
  249. package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
  250. package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-DDaTZQZp.js} +1 -1
  251. package/dist/{usePayments-s-Z1di8d.mjs → usePayments-Cr6NlGaW.mjs} +46 -41
  252. package/dist/usePayments-DDSjo0rH.js +1 -0
  253. package/dist/{usePortal-Hm7wvtgQ.js → usePortal-C27omjhz.js} +1 -1
  254. package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-C5AsegpS.mjs} +1 -1
  255. package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
  256. package/dist/{useSubscription-DMAEJves.js → useSubscription-D787IXY-.js} +1 -1
  257. package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
  258. package/dist/{useTimePeriod.es-anHB63am.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
  259. package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
  260. package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
  261. package/package.json +20 -14
  262. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js +0 -1
  263. package/dist/Checkout.entry.ce-BMzK8nQg.mjs +0 -3900
  264. package/dist/Checkout.entry.ce-DgA0ckyl.js +0 -2
  265. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js +0 -1
  266. package/dist/InvoiceSummary.vue.es-v1TkOUhA.js +0 -1
  267. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +0 -1
  268. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs +0 -141
  269. package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +0 -98
  270. package/dist/PaymentIntegrationFormStripe-DTLgGutU.js +0 -102
  271. package/dist/PaymentMethod.vue.es-ZWda5GqF.js +0 -1
  272. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js +0 -1
  273. package/dist/PlanCustomizationEditor-CunwwXTw.js +0 -1
  274. package/dist/PlanCustomizationEditor-NLVkEYFF.mjs +0 -877
  275. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs +0 -131
  276. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js +0 -1
  277. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +0 -51
  278. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
  279. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js +0 -1
  280. package/dist/TooltipParagraph.vue.es-DS_69pl1.js +0 -1
  281. package/dist/adyen-CvsH5fok.mjs +0 -117
  282. package/dist/adyen-Druit6gz.js +0 -1
  283. package/dist/de-DE-npBTLtKL.js +0 -1
  284. package/dist/en-US-9xdcz3T5.js +0 -1
  285. package/dist/en-US-kGduGoka.js +0 -1
  286. package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
  287. package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
  288. package/dist/index-DwueOtPi.js +0 -1
  289. package/dist/it-IT-BayNIAy7.js +0 -1
  290. package/dist/nl-NL-0rV4nFLw.js +0 -1
  291. package/dist/paymentMethods-CZGP6_4W.js +0 -1
  292. package/dist/pricing-BVAld27Y.js +0 -1
  293. package/dist/pricing-DLOeiAIB.mjs +0 -16
  294. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
  295. package/dist/useCustomerFormLabels-CRumh405.js +0 -1
  296. package/dist/useExperimentalFeature-D29-TO3R.js +0 -1
  297. package/dist/useExperimentalFeature-JK_kAUQQ.mjs +0 -6
  298. package/dist/usePaymentMethodAvailability-DwtT5Czz.js +0 -1
  299. package/dist/usePaymentMethodOptions-CXdFKFqZ.js +0 -1
  300. package/dist/usePayments-DL4agK2i.js +0 -1
  301. package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
  302. package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
@@ -1,4 +1,4 @@
1
- const e = "-", t = {
1
+ const e = {
2
2
  "add_payment_method_modal.cancel_button.label": "Annuleren",
3
3
  "add_payment_method_modal.confirm_button.label": "Betaalmethode opslaan",
4
4
  "add_payment_method_modal.subtitle": "Voeg een nieuwe betaalmethode toe om mee te betalen.",
@@ -36,15 +36,48 @@ const e = "-", t = {
36
36
  "auto_topup_modal.subtitle": "Je saldo is {balance}.",
37
37
  "auto_topup_modal.title": "Automatisch bijvullen",
38
38
  "billing_information_form.submit_button.label": "Wijzigingen opslaan",
39
+ "charge_on_demand_modal.add_payment_method.subtitle": "Voeg een betaalmethode toe om deze bestelling te betalen.",
40
+ "charge_on_demand_modal.add_payment_method.title": "Betaalmethode toevoegen",
41
+ "charge_on_demand_modal.back_button.label": "Terug",
42
+ "charge_on_demand_modal.cancel_button.label": "Annuleren",
43
+ "charge_on_demand_modal.charge_error.payment_method": "Met deze betaalmethode kan deze bestelling niet worden betaald. Kies een andere.",
44
+ "charge_on_demand_modal.charge_error.pricing_items": "Sommige artikelen in je bestelling kunnen zo niet besteld worden. Controleer je bestelling en probeer het opnieuw.",
45
+ "charge_on_demand_modal.charge_error.subscription_inactive": "Op dit abonnement kan nu niet besteld worden.",
46
+ "charge_on_demand_modal.close_button.label": "Sluiten",
47
+ "charge_on_demand_modal.confirm_button.invalid_units": "Controleer de aantallen om door te gaan",
48
+ "charge_on_demand_modal.confirm_button.no_items": "Voeg een item toe om verder te gaan",
49
+ "charge_on_demand_modal.confirm_button.pay": "{total} betalen",
50
+ "charge_on_demand_modal.confirm_button.retry_preview": "Totaal opnieuw berekenen",
51
+ "charge_on_demand_modal.confirm_button.updating": "Totaal bijwerken…",
52
+ "charge_on_demand_modal.done_button.label": "Klaar",
53
+ "charge_on_demand_modal.failed.subtitle": "We konden je bestelling niet afronden. Bekijk je factuuroverzicht voordat je het opnieuw probeert.",
54
+ "charge_on_demand_modal.failed.title": "Er ging iets mis",
55
+ "charge_on_demand_modal.payment_failed.subtitle": "We konden de betaling voor deze bestelling niet uitvoeren. Als er een factuur is aangemaakt, vind je die in je factuuroverzicht.",
56
+ "charge_on_demand_modal.payment_failed.title": "Betaling niet voltooid",
57
+ "charge_on_demand_modal.payment_failed.unpaid_invoice.subtitle": "We konden de betaling voor deze bestelling niet uitvoeren. De factuur staat in je factuuroverzicht en wacht op betaling.",
58
+ "charge_on_demand_modal.payment_method_options_error": "We konden de manieren om een betaalmethode toe te voegen niet laden. Probeer het opnieuw.",
59
+ "charge_on_demand_modal.placed.title": "Bestelling geplaatst",
60
+ "charge_on_demand_modal.placed.unpaid.subtitle": "Je factuur is aangemaakt, maar nog niet betaald. Je vindt hem in je factuuroverzicht.",
61
+ "charge_on_demand_modal.preview_error": "We konden het totaal niet berekenen. Probeer het opnieuw.",
62
+ "charge_on_demand_modal.save_payment_method.label": "Betaalmethode opslaan",
63
+ "charge_on_demand_modal.success.subtitle": "Je bestelling is betaald. De factuur staat in je factuuroverzicht.",
64
+ "charge_on_demand_modal.title": "On-demand items bestellen",
65
+ "charge_on_demand_modal.unavailable.message": "Dit abonnement kan hier geen betalingen ontvangen. Neem contact met ons op om deze items te bestellen.",
66
+ "charge_on_demand_modal.unavailable.title": "Bestellen is niet beschikbaar",
67
+ "charge_on_demand_modal.units_error": "Voer een heel getal van 1 of meer in.",
68
+ "charge_on_demand_modal.view_invoice_button.label": "Naar factuur",
39
69
  "checkout.address.city.placeholder": "Stad...",
40
70
  "checkout.address.line1.placeholder": "Adresregel 1...",
41
71
  "checkout.address.line2.placeholder": "Adresregel 2...",
42
72
  "checkout.address.portal_code.placeholder": "Postcode...",
43
73
  "checkout.address.state.placeholder": "Provincie...",
44
74
  "checkout.address.title": "Factuuradres",
75
+ "checkout.agreement.one_off": "{due_today} vandaag. Eenmalige aankoop.",
45
76
  "checkout.agreement.subscription": "{subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, long}.",
77
+ "checkout.agreement.subscription_with_one_off": "{due_today} vandaag, daarna {subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, long}.",
46
78
  "checkout.agreement.trial": "{discounted_amount} voor {trial_period}, daarna {subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, ::MMMMd}.",
47
79
  "checkout.agreement.trial.free": "Gratis",
80
+ "checkout.agreement.usage_with_one_off": "{due_today} vandaag, daarna verbruik gefactureerd per {billing_period} tot annulering.",
48
81
  "checkout.billing_details.add_billing_details_button.label": "Meer factuurgegevens",
49
82
  "checkout.billing_details.remove_billing_details_button.label": "Factuurgegevens verwijderen",
50
83
  "checkout.billing_information_block.title": "Factuurgegevens",
@@ -69,6 +102,7 @@ const e = "-", t = {
69
102
  "checkout.not_available.description": "De betaalpagina is momenteel niet beschikbaar.",
70
103
  "checkout.not_available.reload_button": "Herladen",
71
104
  "checkout.not_available.title": "Betaalpagina niet beschikbaar",
105
+ "checkout.one_off_description": "Je wordt vandaag gefactureerd voor <strong>{due_today}</strong>.",
72
106
  "checkout.optional_suffix.label": "(optioneel)",
73
107
  "checkout.order_summary_block.billing_period.label": "Gefactureerd per {period}",
74
108
  "checkout.order_summary_block.billing_period.per_label": "/{period}",
@@ -77,10 +111,15 @@ const e = "-", t = {
77
111
  "checkout.order_summary_block.billing_period.save_badge.prefix": "Bespaar {amount}",
78
112
  "checkout.order_summary_block.billing_period.save_badge.suffix": "/jaar",
79
113
  "checkout.order_summary_block.billing_period.sub_label": "{amount} per {period}",
114
+ "checkout.order_summary_block.one_off_heading": "Eenmalige kosten",
115
+ "checkout.order_summary_block.recurring_heading": "Abonnement",
116
+ "checkout.order_summary_block.renews_at": "Daarna {amount} per {period}",
117
+ "checkout.order_summary_block.subtotal": "Subtotaal",
80
118
  "checkout.order_summary_block.title": "Besteloverzicht",
81
119
  "checkout.page_title": "Betalen en abonneren",
82
120
  "checkout.pay_and_subscribe_button.label": "Betalen en abonneren",
83
121
  "checkout.pay_and_subscribe_button_trial.label": "Proefperiode starten",
122
+ "checkout.payment_failed": "De betaling is niet gelukt. Probeer het opnieuw.",
84
123
  "checkout.payment_method_block.load_failed_message": "Controleer je verbinding en probeer het opnieuw.",
85
124
  "checkout.payment_method_block.load_failed_retry_button.label": "Opnieuw proberen",
86
125
  "checkout.payment_method_block.load_failed_title": "Betaalmethoden konden niet worden geladen",
@@ -102,10 +141,13 @@ const e = "-", t = {
102
141
  "checkout.promotion_code.remove_failed": "Promotiecode kon niet worden verwijderd. Probeer het opnieuw.",
103
142
  "checkout.promotion_code.removed_status": "Promotiecode verwijderd",
104
143
  "checkout.subscription_description": "Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, vanaf vandaag.",
144
+ "checkout.subscription_description_with_one_off": "Je wordt vandaag gefactureerd voor <strong>{due_today}</strong>, daarna <strong>{price}</strong> per {period_name}.",
105
145
  "checkout.subscription_description_without_price": "per {period_name}, vanaf vandaag",
106
146
  "checkout.trial.label": "Proefperiode",
107
147
  "checkout.trial_period_description": "Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.",
148
+ "checkout.trial_period_description_with_one_off": "Je wordt vandaag gefactureerd voor <strong>{due_today}</strong>, daarna <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.",
108
149
  "checkout.trial_period_description_without_price": "per {period_name}, startend op {startDate, date, long}",
150
+ "checkout.usage_with_one_off_description": "Je wordt vandaag gefactureerd voor <strong>{due_today}</strong>. Verbruik wordt per {period_name} gefactureerd.",
109
151
  "checkout.vat_number.check_button.label": "Controleren",
110
152
  "checkout.vat_number.label": "BTW-nummer",
111
153
  "checkout.vat_number.placeholder": "BTW-nummer...",
@@ -132,14 +174,13 @@ const e = "-", t = {
132
174
  "customer_overview.subscriptions_block.title": "{count,plural,one{Mijn abonnement} other{Mijn abonnementen}}",
133
175
  "customer_overview.subscriptions_block.view_all_button_label": "Alles weergeven",
134
176
  "customer_overview.wallet_balances_block.title": "{count,plural,one{Wallet} other{Wallets}}",
135
- empty_value_placeholder: "-",
136
177
  "enabled_pricings_list.item.price": "{amount} per {period}",
137
178
  "enabled_pricings_list.item.upgrade_button.label": "Upgraden",
138
179
  "enabled_pricings_list.title": "Upgrades",
139
180
  "invoice_credits.balance.table_header": "Saldo",
140
- "invoice_credits.credit_breakdown.table_header": "Kredietoverzicht",
141
181
  "invoice_credits.remaining.table_header": "Resterend",
142
182
  "invoice_credits.used.table_header": "Gebruikt",
183
+ "invoice_credits.wallet_breakdown.table_header": "Walletoverzicht",
143
184
  "invoice_preview.taxes_not_determined_by_billing_information_tooltip": "Wordt bepaald aan de hand van de factuurgegevens",
144
185
  "invoice_table.button.load_more": "Meer laden",
145
186
  "invoice_table.chip.paid": "Betaald",
@@ -148,6 +189,9 @@ const e = "-", t = {
148
189
  "invoice_table.header.invoice_number": "Factuur",
149
190
  "invoice_table.header.status": "Status",
150
191
  "invoices_list.title": "Facturen",
192
+ "on_demand_items_card.more_available": "+ {count} beschikbaar",
193
+ "on_demand_items_card.order_button.label": "Kopen",
194
+ "on_demand_items_card.title": "Beschikbare on-demand items",
151
195
  "pay_button.label.amount_and_payment_method": "Betaal {amount} met {type}",
152
196
  "pay_button.label.amount_only": "Betaal {amount}",
153
197
  "pay_button.label.default": "Betalen",
@@ -281,13 +325,15 @@ const e = "-", t = {
281
325
  "topup_modal.success.receipt.heading": "Bon",
282
326
  "topup_modal.title": "Saldo opwaarderen",
283
327
  "units.label": "Eenheden",
284
- "units.price_per_unit": "{amount} per eenheid",
328
+ "units.price_per_unit_one_time": "{amount} per eenheid, eenmalig",
329
+ "units_editor.description": "Eenmalig in rekening gebracht",
330
+ "units_editor.title": "Eenmalige items",
285
331
  "wallet_balance.credit_type_fallback_label": "Tegoed",
286
332
  "wallet_balance.details.header": "Walletsaldo",
287
333
  "wallet_balance.load_failed": "Walletsaldi konden niet worden geladen",
288
- "wallet_balance.service_period_heading": "Serviceperiode - {startAt} - {endAt}"
334
+ "wallet_balance.service_period_heading": "Serviceperiode - {startAt} - {endAt}",
335
+ "wallet_balance.wallet_label": "Walletsaldo"
289
336
  };
290
337
  export {
291
- t as default,
292
- e as empty_value_placeholder
338
+ e as default
293
339
  };
@@ -1,21 +1,21 @@
1
1
  import { a as f } from "./api.es-QaC926Xu.mjs";
2
- import { c as h, a as P } from "./customElements-q_i9y0Ph.mjs";
2
+ import { c as h, u as P } from "./customElements-B58FcXIN.mjs";
3
3
  function $() {
4
- const e = h(), o = P(), i = "/portal/payment-methods";
5
- function c({
4
+ const e = h(), o = P(), s = "/portal/payment-methods";
5
+ function u({
6
6
  paymentMethodId: t
7
7
  }) {
8
8
  return e({
9
- url: `${o.apiUrls.config}${i}/${t}`,
9
+ url: `${o.apiUrls.config}${s}/${t}`,
10
10
  options: { method: "PATCH" },
11
11
  data: { is_default: !0 }
12
12
  });
13
13
  }
14
- function u({
14
+ function c({
15
15
  paymentMethodId: t
16
16
  }) {
17
17
  return e({
18
- url: `${o.apiUrls.config}${i}/${t}`,
18
+ url: `${o.apiUrls.config}${s}/${t}`,
19
19
  options: { method: "PATCH" },
20
20
  data: { status: "ARCHIVED" }
21
21
  });
@@ -25,23 +25,24 @@ function $() {
25
25
  pagination: n,
26
26
  query: a
27
27
  }) {
28
- const r = f(
28
+ const i = f(
29
29
  { customer_id: t, ...a ?? {} },
30
30
  n
31
- ), s = await e({
32
- url: `${o.apiUrls.config}${i}`,
33
- query: r,
31
+ ), r = await e({
32
+ url: `${o.apiUrls.config}${s}`,
33
+ query: i,
34
34
  isCollection: !0
35
35
  });
36
36
  return {
37
- ...s,
38
- data: (s.data ?? []).filter(({ status: l }) => l !== "ARCHIVED")
37
+ ...r,
38
+ data: (r.data ?? []).filter(({ status: l }) => l !== "ARCHIVED")
39
39
  };
40
40
  }
41
41
  function m({
42
42
  customerId: t,
43
43
  country: n,
44
44
  subscriptionId: a,
45
+ invoiceId: i,
45
46
  amount: r
46
47
  }) {
47
48
  return e({
@@ -51,6 +52,7 @@ function $() {
51
52
  ...t && { customer_id: t },
52
53
  ...n && { country: n },
53
54
  ...a && { pricing_plan_subscription_id: a },
55
+ ...i && { invoice_id: i },
54
56
  amount: r
55
57
  }
56
58
  });
@@ -63,11 +65,11 @@ function $() {
63
65
  });
64
66
  }
65
67
  return {
66
- archivePaymentMethod: u,
68
+ archivePaymentMethod: c,
67
69
  getPaymentMethods: p,
68
70
  getPaymentMethodOptions: m,
69
71
  tokenizePaymentMethod: d,
70
- setDefaultPaymentMethod: c
72
+ setDefaultPaymentMethod: u
71
73
  };
72
74
  }
73
75
  export {
@@ -0,0 +1 @@
1
+ const h=require("./api.es-duCDtZD9.js"),c=require("./customElements-DUMRMFQ5.js");function P(){const e=c.createRequestService(),n=c.useConfig(),s="/portal/payment-methods";function u({paymentMethodId:t}){return e({url:`${n.apiUrls.config}${s}/${t}`,options:{method:"PATCH"},data:{is_default:!0}})}function d({paymentMethodId:t}){return e({url:`${n.apiUrls.config}${s}/${t}`,options:{method:"PATCH"},data:{status:"ARCHIVED"}})}async function m({customerId:t,pagination:o,query:i}){const r=h.withPagination({customer_id:t,...i??{}},o),a=await e({url:`${n.apiUrls.config}${s}`,query:r,isCollection:!0});return{...a,data:(a.data??[]).filter(({status:f})=>f!=="ARCHIVED")}}function p({customerId:t,country:o,subscriptionId:i,invoiceId:r,amount:a}){return e({url:`${n.apiUrls.config}/portal/payment-method-options`,options:{method:"POST"},data:{...t&&{customer_id:t},...o&&{country:o},...i&&{pricing_plan_subscription_id:i},...r&&{invoice_id:r},amount:a}})}function l(t){return e({url:`${n.apiUrls.config}/portal/payment-methods/tokenize`,options:{method:"POST"},data:t})}return{archivePaymentMethod:d,getPaymentMethods:m,getPaymentMethodOptions:p,tokenizePaymentMethod:l,setDefaultPaymentMethod:u}}exports.createPaymentMethodsService=P;
@@ -1,9 +1,9 @@
1
- import { c as u, a as p } from "./customElements-q_i9y0Ph.mjs";
2
- const n = "/portal/payments", m = () => {
3
- const e = u(), a = p();
1
+ import { c as u, u as p } from "./customElements-B58FcXIN.mjs";
2
+ const a = "/portal/payments", m = () => {
3
+ const e = u(), n = p();
4
4
  function r(t) {
5
5
  return e({
6
- url: `${a.apiUrls.transaction}${n}`,
6
+ url: `${n.apiUrls.transaction}${a}`,
7
7
  query: { invoice_id: t },
8
8
  isCollection: !0
9
9
  });
@@ -14,7 +14,7 @@ const n = "/portal/payments", m = () => {
14
14
  adyen: c
15
15
  }) {
16
16
  return e({
17
- url: `${a.apiUrls.transaction}${n}/verify-details`,
17
+ url: `${n.apiUrls.transaction}${a}/verify-details`,
18
18
  options: {
19
19
  method: "POST"
20
20
  },
@@ -27,7 +27,7 @@ const n = "/portal/payments", m = () => {
27
27
  }
28
28
  function o(t) {
29
29
  return e({
30
- url: `${a.apiUrls.transaction}${n}/authorize`,
30
+ url: `${n.apiUrls.transaction}${a}/authorize`,
31
31
  options: {
32
32
  method: "POST"
33
33
  },
@@ -1 +1 @@
1
- const a=require("./customElements-hH6pju3X.js"),r="/portal/payments",l=()=>{const e=a.createRequestService(),n=a.useConfig();function i(t){return e({url:`${n.apiUrls.transaction}${r}`,query:{invoice_id:t},isCollection:!0})}function o({paymentAcceptorId:t,paymentGatewayVariant:c,adyen:u}){return e({url:`${n.apiUrls.transaction}${r}/verify-details`,options:{method:"POST"},data:{payment_acceptor_id:t,payment_gateway_variant:c,adyen:u}})}function s(t){return e({url:`${n.apiUrls.transaction}${r}/authorize`,options:{method:"POST"},data:t})}return{getPayments:i,getPaymentDetails:o,authorizePayment:s}};exports.createPaymentsService=l;
1
+ const a=require("./customElements-DUMRMFQ5.js"),r="/portal/payments",l=()=>{const e=a.createRequestService(),n=a.useConfig();function i(t){return e({url:`${n.apiUrls.transaction}${r}`,query:{invoice_id:t},isCollection:!0})}function o({paymentAcceptorId:t,paymentGatewayVariant:c,adyen:u}){return e({url:`${n.apiUrls.transaction}${r}/verify-details`,options:{method:"POST"},data:{payment_acceptor_id:t,payment_gateway_variant:c,adyen:u}})}function s(t){return e({url:`${n.apiUrls.transaction}${r}/authorize`,options:{method:"POST"},data:t})}return{getPayments:i,getPaymentDetails:o,authorizePayment:s}};exports.createPaymentsService=l;
@@ -0,0 +1,29 @@
1
+ import { i as p } from "./useService-Bh47bllz.mjs";
2
+ function l(a) {
3
+ return (a.pricing_plan_version.pricing_categories ?? []).flatMap((o) => o.pricings ?? []);
4
+ }
5
+ function i(a) {
6
+ return a.flatMap(l);
7
+ }
8
+ function _(a) {
9
+ var e, o;
10
+ return p(a.name) ? (o = (e = a.products) == null ? void 0 : e[0]) == null ? void 0 : o.name : a.name;
11
+ }
12
+ function c(a, { enabledPricingIds: e } = {}) {
13
+ var r;
14
+ const u = (((r = a == null ? void 0 : a.pricing_plan_version) == null ? void 0 : r.pricing_categories) ?? []).flatMap((t) => [
15
+ ...(t.pricings ?? []).map((s) => ({ pricing: s, inGroup: !1 })),
16
+ ...(t.pricing_groups ?? []).flatMap(
17
+ (s) => (s.pricings ?? []).map((n) => ({ pricing: n, inGroup: !0 }))
18
+ )
19
+ ]), m = ({ pricing: t, inGroup: s }) => !(s || !!(t != null && t.pricing_group_id) || (t == null ? void 0 : t.product_type) === "ADDON") || !e || e.includes(t == null ? void 0 : t.id);
20
+ return new Set(
21
+ u.filter(m).flatMap(({ pricing: t }) => (t == null ? void 0 : t.items) ?? []).flatMap((t) => t.product_items ?? []).map(({ model_type: t }) => t)
22
+ );
23
+ }
24
+ export {
25
+ i as a,
26
+ l as b,
27
+ c,
28
+ _ as g
29
+ };
@@ -0,0 +1 @@
1
+ const i=require("./useService-H7BjLg8P.js");function u(t){return(t.pricing_plan_version.pricing_categories??[]).flatMap(r=>r.pricings??[])}function c(t){return t.flatMap(u)}function f(t){var o,r;return i.isEmpty(t.name)?(r=(o=t.products)==null?void 0:o[0])==null?void 0:r.name:t.name}function p(t,{enabledPricingIds:o}={}){var a;const l=(((a=t==null?void 0:t.pricing_plan_version)==null?void 0:a.pricing_categories)??[]).flatMap(e=>[...(e.pricings??[]).map(s=>({pricing:s,inGroup:!1})),...(e.pricing_groups??[]).flatMap(s=>(s.pricings??[]).map(n=>({pricing:n,inGroup:!0})))]),m=({pricing:e,inGroup:s})=>!(s||!!(e!=null&&e.pricing_group_id)||(e==null?void 0:e.product_type)==="ADDON")||!o||o.includes(e==null?void 0:e.id);return new Set(l.filter(m).flatMap(({pricing:e})=>(e==null?void 0:e.items)??[]).flatMap(e=>e.product_items??[]).map(({model_type:e})=>e))}exports.getAllPricingsFromScheduleInfos=c;exports.getModelTypesFromScheduleInfo=p;exports.getNameFromPricing=f;exports.getPricingsFromScheduleInfo=u;
@@ -0,0 +1 @@
1
+ var l=(i=>(i.ENUM="ENUM",i.SWITCH="SWITCH",i.NUMBER="NUMBER",i.AMOUNT="AMOUNT",i.STRING="STRING",i))(l||{});const g=i=>i.type==="REVENUE",a=i=>i.type==="DEDUCTION",u=i=>!!(i!=null&&i.every(g)),v=i=>!!i&&i.length>0&&(i==null?void 0:i.every(a)),s=i=>{var e,n;return(e=i.configs)!=null&&e.length?i.configs:((n=i.billing_period_configs)==null?void 0:n.flatMap(t=>t.configs??[]))??[]},r=i=>s(i).some(e=>{var n;return((n=e.details)==null?void 0:n.pricing_type)!=="NONE"}),o=i=>i.feature.type===l.SWITCH&&!i.switch,d=i=>{var e,n;return!!((e=i.items)!=null&&e.some(r))||!!((n=i.entitlements)!=null&&n.some(t=>!o(t)))},N=i=>{var e;return((e=i==null?void 0:i.pricing_categories)==null?void 0:e.flatMap(n=>{var t;return[...((t=n.pricing_groups)==null?void 0:t.flatMap(c=>c.pricings??[]))??[],...n.pricings??[]]}))??[]};exports.FeatureType=l;exports.getAllPricings=N;exports.getPricingItemConfigs=s;exports.hasPrintablePricingContent=d;exports.isBilledPricingItem=r;exports.isDeductionPricingItem=v;exports.isDisabledEntitlement=o;exports.isRevenuePricingItem=u;
@@ -0,0 +1,30 @@
1
+ var t = /* @__PURE__ */ ((n) => (n.ENUM = "ENUM", n.SWITCH = "SWITCH", n.NUMBER = "NUMBER", n.AMOUNT = "AMOUNT", n.STRING = "STRING", n))(t || {});
2
+ const r = (n) => n.type === "REVENUE", a = (n) => n.type === "DEDUCTION", u = (n) => !!(n != null && n.every(r)), g = (n) => !!n && n.length > 0 && (n == null ? void 0 : n.every(a)), o = (n) => {
3
+ var s, i;
4
+ return (s = n.configs) != null && s.length ? n.configs : ((i = n.billing_period_configs) == null ? void 0 : i.flatMap((l) => l.configs ?? [])) ?? [];
5
+ }, c = (n) => o(n).some((s) => {
6
+ var i;
7
+ return ((i = s.details) == null ? void 0 : i.pricing_type) !== "NONE";
8
+ }), v = (n) => n.feature.type === t.SWITCH && !n.switch, d = (n) => {
9
+ var s, i;
10
+ return !!((s = n.items) != null && s.some(c)) || !!((i = n.entitlements) != null && i.some((l) => !v(l)));
11
+ }, N = (n) => {
12
+ var s;
13
+ return ((s = n == null ? void 0 : n.pricing_categories) == null ? void 0 : s.flatMap((i) => {
14
+ var l;
15
+ return [
16
+ ...((l = i.pricing_groups) == null ? void 0 : l.flatMap((e) => e.pricings ?? [])) ?? [],
17
+ ...i.pricings ?? []
18
+ ];
19
+ })) ?? [];
20
+ };
21
+ export {
22
+ t as F,
23
+ o as a,
24
+ u as b,
25
+ v as c,
26
+ g as d,
27
+ N as g,
28
+ d as h,
29
+ c as i
30
+ };
@@ -0,0 +1 @@
1
+ const r=require("./customElements-DUMRMFQ5.js");function a(){const n=r.createRequestService(),i=r.useConfig();function c({scheduleId:e}){return n({url:`${i.apiUrls.config}/portal/pricing-plan-schedules/${e}/on-demand-pricing-items`})}function t({pricingPlanSubscriptionId:e,enabledPricings:s}){return n({url:`${i.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:e,enabled_pricings:s,start_at:new Date().toJSON()}})}return{getOnDemandPricingItems:c,createPricingPlanSchedule:t}}exports.createPricingPlanSchedulesService=a;
@@ -0,0 +1,32 @@
1
+ import { c as a, u as s } from "./customElements-B58FcXIN.mjs";
2
+ function u() {
3
+ const n = a(), i = s();
4
+ function r({
5
+ scheduleId: e
6
+ }) {
7
+ return n({
8
+ url: `${i.apiUrls.config}/portal/pricing-plan-schedules/${e}/on-demand-pricing-items`
9
+ });
10
+ }
11
+ function t({
12
+ pricingPlanSubscriptionId: e,
13
+ enabledPricings: c
14
+ }) {
15
+ return n({
16
+ url: `${i.apiUrls.config}/portal/pricing-plan-schedules`,
17
+ options: { method: "POST" },
18
+ data: {
19
+ pricing_plan_subscription_id: e,
20
+ enabled_pricings: c,
21
+ start_at: (/* @__PURE__ */ new Date()).toJSON()
22
+ }
23
+ });
24
+ }
25
+ return {
26
+ getOnDemandPricingItems: r,
27
+ createPricingPlanSchedule: t
28
+ };
29
+ }
30
+ export {
31
+ u as c
32
+ };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-DgA0ckyl.js");require("../../customElements-hH6pju3X.js");exports.defineSolvimonCheckout=e.defineSolvimonCheckout;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-HlUrJ1kh.js");require("../../customElements-DUMRMFQ5.js");exports.defineSolvimonCheckout=e.defineSolvimonCheckout;
@@ -1,5 +1,5 @@
1
- import { d as m } from "../../Checkout.entry.ce-BMzK8nQg.mjs";
2
- import "../../customElements-q_i9y0Ph.mjs";
1
+ import { d as m } from "../../Checkout.entry.ce-X2zGo6hG.mjs";
2
+ import "../../customElements-B58FcXIN.mjs";
3
3
  export {
4
4
  m as defineSolvimonCheckout
5
5
  };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-duu_b5GW.js"),k=require("../../usePortal-Hm7wvtgQ.js"),_=require("../../customElements-hH6pju3X.js"),h=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js"),E=require("../../useCustomer-DSYr0F58.js"),x=require("../../usePaymentMethods-DZ1a0mnr.js"),U=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js"),j=require("../../useLoadInitialData-U2WvBmXT.js"),V=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js"),W=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),S=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js"),D=require("../../pricingPlanSchedule-BM8vsKkV.js"),F=require("../../sessionReference-m_6Rp4X1.js"),R=2,$=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(i){var f;const p=i,u=k.usePortal(),c=_.useLogger(),o=(f=u.value)==null?void 0:f.customer_id,n=E.useCustomer({customerId:o}),l=g.useInvoicesList({customerId:o,batchSize:5}),s=h.useSubscriptionsList({customerId:o}),r=x.usePaymentMethods({customerId:o}),m=S.useCustomerWalletBalances({customerId:o}),w=e.computed(()=>{var t;return((t=m.walletBalances.value)==null?void 0:t.wallet_balances)??[]}),C=e.computed(()=>s.items.value.slice(0,R)),b=e.computed(()=>{var t;return r.items.value.slice(0,((t=p.configuration)==null?void 0:t.maxItems)??W.DEFAULT_MAX_ITEMS)}),{isLoading:a}=j.useLoadInitialData(n.get.execute(),l.fetchInitial(),s.fetchAll(),r.fetchAll(),m.fetch()),B=()=>{r.fetchAll()},d=()=>{m.fetch()},L=e.computed(()=>D.getActiveDefaultScheduleId(s.items.value));return e.watch([L,()=>s.items.value],([t,v])=>{t||v.length===0||c.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:v.flatMap(({pricing_plan_schedule_infos:O})=>(O??[]).map(({id:q,type:M,start_at:A,end_at:I,...N})=>{var y;return{id:q,type:((y=N.pricing_plan_schedule)==null?void 0:y.type)??M,start_at:A,end_at:I}}))})}),(t,v)=>(e.openBlock(),e.createBlock(e.unref(T.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(n).customer.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(n).customer.value,subscriptions:C.value,"payment-methods":e.unref(r).items.value,"is-loading":e.unref(a)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(l).items.value,"has-more-items":e.unref(l).hasNextBatch.value,"is-loading":e.unref(a),onLoadMore:e.unref(l).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(S._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(m).apiStatus.value===e.unref(P.ApiStatus).Failed,"is-loading":e.unref(a),"wallet-balances":w.value,"show-top-up-button":"",customer:e.unref(n).customer.value,"payment-methods":e.unref(r).items.value,subscriptions:e.unref(s).items.value,onTopUpCharged:d,onAutoTopUpSaved:d,onAutoTopUpCancelled:d,onPaymentMethodStored:B},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(V._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:i.configuration,"is-loading":e.unref(a),"payment-methods":b.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(n).customer.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(a),customer:e.unref(n).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),H=e.defineComponent({__name:"CustomerOverview.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const p=F.getComponentName("customer-overview");return(u,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{entry:u.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=o=>u.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode($,{configuration:i.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:z}=_.createSolvimonElement(H,"customer-overview");exports.defineSolvimonCustomerOverview=z;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-S0IbQcrD.js"),k=require("../../usePortal-C27omjhz.js"),_=require("../../customElements-DUMRMFQ5.js"),h=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js"),E=require("../../useCustomer-BwZKd9i5.js"),x=require("../../usePaymentMethods-DDaTZQZp.js"),U=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js"),j=require("../../useLoadInitialData-D_R6Jy1s.js"),V=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js"),W=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),S=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js"),D=require("../../pricingPlanSchedule-BM8vsKkV.js"),F=require("../../sessionReference-m_6Rp4X1.js"),R=2,$=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(i){var f;const p=i,u=k.usePortal(),c=_.useLogger(),o=(f=u.value)==null?void 0:f.customer_id,n=E.useCustomer({customerId:o}),l=g.useInvoicesList({customerId:o,batchSize:5}),s=h.useSubscriptionsList({customerId:o}),r=x.usePaymentMethods({customerId:o}),m=S.useCustomerWalletBalances({customerId:o}),w=e.computed(()=>{var t;return((t=m.walletBalances.value)==null?void 0:t.wallet_balances)??[]}),C=e.computed(()=>s.items.value.slice(0,R)),b=e.computed(()=>{var t;return r.items.value.slice(0,((t=p.configuration)==null?void 0:t.maxItems)??W.DEFAULT_MAX_ITEMS)}),{isLoading:a}=j.useLoadInitialData(n.get.execute(),l.fetchInitial(),s.fetchAll(),r.fetchAll(),m.fetch()),B=()=>{r.fetchAll()},d=()=>{m.fetch()},L=e.computed(()=>D.getActiveDefaultScheduleId(s.items.value));return e.watch([L,()=>s.items.value],([t,v])=>{t||v.length===0||c.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:v.flatMap(({pricing_plan_schedule_infos:O})=>(O??[]).map(({id:q,type:M,start_at:A,end_at:I,...N})=>{var y;return{id:q,type:((y=N.pricing_plan_schedule)==null?void 0:y.type)??M,start_at:A,end_at:I}}))})}),(t,v)=>(e.openBlock(),e.createBlock(e.unref(T.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(n).customer.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(n).customer.value,subscriptions:C.value,"payment-methods":e.unref(r).items.value,"is-loading":e.unref(a)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(l).items.value,"has-more-items":e.unref(l).hasNextBatch.value,"is-loading":e.unref(a),onLoadMore:e.unref(l).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(S._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(m).apiStatus.value===e.unref(P.ApiStatus).Failed,"is-loading":e.unref(a),"wallet-balances":w.value,"show-top-up-button":"",customer:e.unref(n).customer.value,"payment-methods":e.unref(r).items.value,subscriptions:e.unref(s).items.value,onTopUpCharged:d,onAutoTopUpSaved:d,onAutoTopUpCancelled:d,onPaymentMethodStored:B},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(V._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:i.configuration,"is-loading":e.unref(a),"payment-methods":b.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(n).customer.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(a),customer:e.unref(n).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),H=e.defineComponent({__name:"CustomerOverview.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const p=F.getComponentName("customer-overview");return(u,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{entry:u.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=o=>u.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode($,{configuration:i.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:z}=_.createSolvimonElement(H,"customer-overview");exports.defineSolvimonCustomerOverview=z;
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as C, computed as p, watch as P, openBlock as d, createBlock as v, unref as e, withCtx as f, createVNode as _, createCommentVNode as b } from "vue";
2
2
  import { A as j } from "../../error-BHVZJGwD.mjs";
3
3
  import { C as x } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
4
- import { u as D, _ as F } from "../../useInvoicesList-BGwcJn4I.mjs";
5
- import { u as W } from "../../usePortal-C4rR5Rhu.mjs";
6
- import { b as k, d as R, e as V } from "../../customElements-q_i9y0Ph.mjs";
7
- import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs";
8
- import { u as X } from "../../useCustomer-D8ixhuuj.mjs";
9
- import { u as q } from "../../usePaymentMethods-BnmSo_rr.mjs";
10
- import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs";
11
- import { u as J } from "../../useLoadInitialData-BDmmpcfb.mjs";
12
- import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs";
4
+ import { u as D, _ as F } from "../../useInvoicesList-C8nsXMJ6.mjs";
5
+ import { u as W } from "../../usePortal-C5AsegpS.mjs";
6
+ import { b as k, d as R, e as V } from "../../customElements-B58FcXIN.mjs";
7
+ import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs";
8
+ import { u as X } from "../../useCustomer-B-jyJIVy.mjs";
9
+ import { u as q } from "../../usePaymentMethods-CbwnGONc.mjs";
10
+ import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs";
11
+ import { u as J } from "../../useLoadInitialData-D9GkzY8t.mjs";
12
+ import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs";
13
13
  import { D as Q } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
14
- import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs";
14
+ import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs";
15
15
  import { a as ee } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
16
16
  import { a as te } from "../../sessionReference-3h-6FdrC.mjs";
17
17
  const oe = 2, se = /* @__PURE__ */ C({
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-CeUTAc2n.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-DL4agK2i.js"),M=require("../../InvoiceSummary.vue.es-v1TkOUhA.js"),_=require("../../Section.vue.es-CSrVPlUK.js"),f=require("../../customElements-hH6pju3X.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js"),x=require("../../usePaymentMethodAvailability-DwtT5Czz.js"),A=require("../../customer.es-BButyYo0.js"),I=require("../../useLoadInitialData-U2WvBmXT.js"),N=require("../../usePaymentMethodOptions-CXdFKFqZ.js"),T=require("../../usePaymentMethods-DZ1a0mnr.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=f.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=f.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},v=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var p,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(p=t.invoice)==null?void 0:p.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:v,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var p;return(p=t.downloadService)==null?void 0:p.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:v}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await v({customerId:u.customer.id,amount:u.open_invoice_amount})},{isLoading:d}=I.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?A.getCustomerCountry(o.value.customer):void 0});return(u,p)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:v,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":v,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=f.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-BzkuglKw.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-DDSjo0rH.js"),M=require("../../InvoiceSummary.vue.es-CAmA8g0t.js"),_=require("../../Section.vue.es-Bbt0RITt.js"),v=require("../../customElements-DUMRMFQ5.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js"),x=require("../../usePaymentMethodAvailability-BO_guwAw.js"),I=require("../../customer.es-BButyYo0.js"),A=require("../../useLoadInitialData-D_R6Jy1s.js"),N=require("../../usePaymentMethodOptions-CuzOoi2k.js"),T=require("../../usePaymentMethods-DDaTZQZp.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=v.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=v.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},p=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(v._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(v._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var f,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(f=t.invoice)==null?void 0:f.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:p,onInvalid:p,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var f;return(f=t.downloadService)==null?void 0:f.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:p}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await p({customerId:u.customer.id,invoiceId:u.id,amount:u.open_invoice_amount})},{isLoading:d}=A.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?I.getCustomerCountry(o.value.customer):void 0});return(u,f)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(v._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:p,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":p,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=v.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;