@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,3 +1,4 @@
1
+ import type { AgentContext } from './AgentContext';
1
2
  export type QuoteTemplateStatus = 'DRAFT' | 'ACTIVE' | 'ARCHIVED';
2
3
  export type QuoteVersionContentType = 'DEFAULT' | 'TIPTAP';
3
4
  export type QuoteVersionTiptapContent = {
@@ -34,6 +35,7 @@ export type QuoteTemplate = {
34
35
  name: string;
35
36
  reference: string;
36
37
  description?: string;
38
+ agent_context?: AgentContext | null;
37
39
  status: QuoteTemplateStatus;
38
40
  pricing_plan_subscription?: QuoteTemplatePricingPlanSubscription;
39
41
  pricing_plan_schedule?: QuoteTemplatePricingPlanSchedule;
@@ -1,2 +1,2 @@
1
- export declare const RESOURCE_STATUSES: readonly ["ACCEPTED", "ACTIVE", "APPROVED", "ARCHIVED", "CANCELLED", "CLOSED", "CREATED", "DECLINED", "DELETED", "DENIED", "DEPRECATED", "DONE", "DOWNLOADED", "DOWNLOADING", "DRAFT", "DUPLICATE", "EMPTY", "ERROR", "FINAL", "IGNORE", "IMPORTED", "IMPORTING", "INACTIVE", "NOT_MATCHED", "ON_HOLD", "PAUSED", "OPEN", "PAID", "PROCESSING", "REJECTED", "QUEUED", "SEND", "SUBMITTED", "SUCCESS", "TO_BE_DOWNLOADED", "TO_BE_REPROCESSED", "UPLOADED", "VOID", "VALID", "INVALID", "WAITING_APPROVAL", "PAYMENT_FAILED", "INVITED", "INVITE_REVOKED", "SCHEDULED", "GENERATING", "PENDING_REVIEW", "SIGNATURE_REQUESTED", "SIGNED", "NONE", "PENDING", "SUCCEEDED", "FAILED", "NOT_EXECUTED"];
1
+ export declare const RESOURCE_STATUSES: readonly ["ACCEPTED", "ACTIVE", "APPROVED", "ARCHIVED", "CANCELLED", "CLOSED", "CREATED", "DECLINED", "DELETED", "DENIED", "DEPRECATED", "DONE", "DOWNLOADED", "DOWNLOADING", "DRAFT", "DUPLICATE", "EMPTY", "ERROR", "FINAL", "IGNORE", "IMPORTED", "IMPORTING", "INACTIVE", "NOT_MATCHED", "ON_HOLD", "PAUSED", "OPEN", "PAID", "UNPAID", "PARTIALLY_PAID", "OVERPAID", "PROCESSING", "REJECTED", "QUEUED", "SEND", "SUBMITTED", "SUCCESS", "TO_BE_DOWNLOADED", "TO_BE_REPROCESSED", "UPLOADED", "VOID", "VALID", "INVALID", "WAITING_APPROVAL", "PAYMENT_FAILED", "INVITED", "INVITE_REVOKED", "SCHEDULED", "GENERATING", "PENDING_REVIEW", "SIGNATURE_REQUESTED", "SIGNED", "NONE", "PENDING", "SUCCEEDED", "FAILED", "NOT_EXECUTED", "TO_BE_PROCESSED", "VALIDATED", "DONE_WITH_ERRORS", "EXPIRED", "SKIPPED"];
2
2
  export type ResourceStatus = (typeof RESOURCE_STATUSES)[number];
@@ -0,0 +1,22 @@
1
+ import type { Customer } from './Customers';
2
+ import type { ProductItem } from './ProductItem';
3
+ export type SeatAssignmentStatus = 'SCHEDULED' | 'ACTIVE' | 'ENDED';
4
+ export interface SeatAssignment {
5
+ object_type: 'SEAT_ASSIGNMENT';
6
+ id: string;
7
+ status: SeatAssignmentStatus;
8
+ parent_customer_id: Customer['id'];
9
+ customer_id: Customer['id'];
10
+ product_item_id: ProductItem['id'];
11
+ start_at: string;
12
+ end_at?: string | null;
13
+ created_at?: string;
14
+ updated_at?: string;
15
+ }
16
+ export interface SeatAssignmentPayload {
17
+ parent_customer_id: Customer['id'];
18
+ customer_id: Customer['id'];
19
+ product_item_id: ProductItem['id'];
20
+ start_at: string;
21
+ end_at?: string | null;
22
+ }
@@ -26,11 +26,17 @@ export interface WalletBalanceValue {
26
26
  amount?: Amount | null;
27
27
  credits?: WalletCreditsBalance | null;
28
28
  }
29
+ export type WalletGrantSource = 'FIXED' | 'SEAT_POOL' | 'PER_SEAT';
30
+ export interface WalletBalanceCustomerDetail {
31
+ customer_id: Customer['id'];
32
+ reserved_balance?: WalletBalanceValue | null;
33
+ }
29
34
  export interface WalletBalanceStatus {
30
35
  balance?: WalletBalanceValue | null;
31
36
  reserved_balance?: WalletBalanceValue | null;
32
37
  open_balance?: WalletBalanceValue | null;
33
38
  balance_at?: string | null;
39
+ customer_details?: WalletBalanceCustomerDetail[] | null;
34
40
  }
35
41
  export interface CustomerWalletBalanceItem {
36
42
  wallet_id: Wallet['id'];
@@ -3,6 +3,8 @@ import type { Comparator } from './Comparator';
3
3
  import type { Amount } from './Amount';
4
4
  import type { Credits } from './PricingItemConfig';
5
5
  import type { ResourceStatus } from './ResourceStatus';
6
+ import type { WalletBalanceValue } from './Wallet';
7
+ import type { Customer } from './Customers';
6
8
  /**
7
9
  * Later we will be able to extend this list with available workflow types
8
10
  */
@@ -16,6 +18,8 @@ export declare const WORKFLOW_PRICING_PLAN_SUBSCRIPTION_VARIANTS: readonly ["FRE
16
18
  export type WorkflowPricingPlanSubscriptionVariant = (typeof WORKFLOW_PRICING_PLAN_SUBSCRIPTION_VARIANTS)[number] | (string & {});
17
19
  export declare const WORKFLOW_WALLET_VARIANTS: readonly ["WALLET_BALANCE"];
18
20
  export type WorkflowWalletVariant = (typeof WORKFLOW_WALLET_VARIANTS)[number] | (string & {});
21
+ export declare const WORKFLOW_USAGE_VARIANTS: readonly ["USAGE_LIMIT"];
22
+ export type WorkflowUsageVariant = (typeof WORKFLOW_USAGE_VARIANTS)[number] | (string & {});
19
23
  export interface WorkflowInvoiceConfiguration {
20
24
  variant: WorkflowInvoiceVariant;
21
25
  overdue?: {
@@ -52,6 +56,29 @@ export type WorkflowConditions = {
52
56
  type: 'COMPARISON';
53
57
  comparison: WorkflowConditionsComparison;
54
58
  };
59
+ export declare const WORKFLOW_CONDITIONS_RESULTS: readonly ["MATCHED", "NOT_MATCHED"];
60
+ export type WorkflowConditionsResult = (typeof WORKFLOW_CONDITIONS_RESULTS)[number];
61
+ export interface WorkflowConditionsResultComparison {
62
+ field: string;
63
+ field_value: string;
64
+ comparator: Comparator;
65
+ value: string;
66
+ }
67
+ export interface WorkflowConditionsResultGroup {
68
+ operator: WorkflowConditionsOperator;
69
+ operands: WorkflowConditionsResultTree[];
70
+ }
71
+ export type WorkflowConditionsResultTree = {
72
+ result: WorkflowConditionsResult;
73
+ } & ({
74
+ type: 'GROUP';
75
+ group: WorkflowConditionsResultGroup;
76
+ } | {
77
+ type: 'COMPARISON';
78
+ comparison: WorkflowConditionsResultComparison;
79
+ } | {
80
+ type: 'EMPTY';
81
+ });
55
82
  export interface WorkflowWalletBalanceThreshold {
56
83
  percentage?: string;
57
84
  amount?: Amount;
@@ -83,13 +110,113 @@ export interface Workflow {
83
110
  pricing_plan_subscription?: WorkflowPricingPlanSubscriptionConfiguration;
84
111
  wallet?: WorkflowWalletConfiguration;
85
112
  }
113
+ export declare const WORKFLOW_TRIGGER_TYPES: readonly ["MANUAL", "EVENT"];
114
+ export type WorkflowTriggerType = (typeof WORKFLOW_TRIGGER_TYPES)[number];
115
+ export interface WorkflowInvoiceTriggerOverdue {
116
+ period: BillingPeriod.BillingPeriod;
117
+ }
118
+ export interface WorkflowInvoiceTriggerEvent {
119
+ variant: WorkflowInvoiceVariant;
120
+ readonly overdue?: WorkflowInvoiceTriggerOverdue;
121
+ }
122
+ export interface WorkflowInvoiceTriggerManual {
123
+ readonly user_id?: string;
124
+ variant: WorkflowInvoiceVariant;
125
+ overdue?: WorkflowInvoiceTriggerOverdue;
126
+ }
127
+ export interface WorkflowInvoiceTrigger {
128
+ invoice_id: string;
129
+ readonly event?: WorkflowInvoiceTriggerEvent;
130
+ manual?: WorkflowInvoiceTriggerManual;
131
+ }
132
+ export interface WorkflowPaymentTriggerEvent {
133
+ variant: WorkflowPaymentVariant;
134
+ }
135
+ export interface WorkflowPaymentTriggerManual {
136
+ readonly user_id?: string;
137
+ variant: WorkflowPaymentVariant;
138
+ }
139
+ export interface WorkflowPaymentTrigger {
140
+ payment_id: string;
141
+ readonly event?: WorkflowPaymentTriggerEvent;
142
+ manual?: WorkflowPaymentTriggerManual;
143
+ }
144
+ export interface WorkflowPricingPlanSubscriptionTriggerEvent {
145
+ variant: WorkflowPricingPlanSubscriptionVariant;
146
+ }
147
+ export interface WorkflowPricingPlanSubscriptionTriggerManual {
148
+ readonly user_id?: string;
149
+ variant: WorkflowPricingPlanSubscriptionVariant;
150
+ }
151
+ export interface WorkflowPricingPlanSubscriptionTrigger {
152
+ pricing_plan_subscription_id: string;
153
+ pricing_plan_schedule_id: string;
154
+ trial_end_at: string;
155
+ readonly event?: WorkflowPricingPlanSubscriptionTriggerEvent;
156
+ manual?: WorkflowPricingPlanSubscriptionTriggerManual;
157
+ }
158
+ export interface WorkflowWalletTriggerEvent {
159
+ variant: WorkflowWalletVariant;
160
+ }
161
+ export interface WorkflowWalletTriggerBalance {
162
+ readonly open_balance?: WalletBalanceValue;
163
+ readonly threshold?: WalletBalanceValue;
164
+ }
165
+ export interface WorkflowWalletTrigger {
166
+ wallet_type_id: string;
167
+ wallet_id: string;
168
+ readonly customer_reference?: string;
169
+ readonly wallet_reference?: string;
170
+ readonly billing_entity_id?: string;
171
+ readonly event?: WorkflowWalletTriggerEvent;
172
+ readonly wallet_balance?: WorkflowWalletTriggerBalance;
173
+ }
174
+ export interface WorkflowUsageTriggerEvent {
175
+ variant: WorkflowUsageVariant;
176
+ readonly customer_id?: string;
177
+ readonly parent_customer_id?: string;
178
+ readonly threshold?: string;
179
+ readonly threshold_type?: string;
180
+ readonly limit?: string;
181
+ readonly consumed?: string;
182
+ readonly period_start?: string;
183
+ readonly period_end?: string;
184
+ }
185
+ export interface WorkflowUsageTrigger {
186
+ meter_value_calculation_id: string;
187
+ readonly event?: WorkflowUsageTriggerEvent;
188
+ }
189
+ export interface WorkflowTrigger {
190
+ readonly object_type: string;
191
+ readonly id: string;
192
+ customer_id?: string;
193
+ /** returns the customer when expanded */
194
+ customer?: Customer;
195
+ workflow_id: string;
196
+ /** returns the workflow when expanded */
197
+ type: WorkflowTriggerType;
198
+ /** returns the invoice when expanded */
199
+ invoice?: WorkflowInvoiceTrigger;
200
+ /** returns the payment when expanded */
201
+ payment?: WorkflowPaymentTrigger;
202
+ /** returns the pricing plan subscription when expanded */
203
+ pricing_plan_subscription?: WorkflowPricingPlanSubscriptionTrigger;
204
+ /** returns the wallet when expanded */
205
+ wallet?: WorkflowWalletTrigger;
206
+ /** returns the usage when expanded */
207
+ usage?: WorkflowUsageTrigger;
208
+ }
86
209
  export interface WorkflowActionExecution {
87
210
  readonly object_type: string;
88
211
  readonly id: string;
89
212
  readonly created_at: string;
90
213
  readonly updated_at: string;
214
+ readonly workflow_id: string;
215
+ readonly conditions_result_tree?: WorkflowConditionsResultTree;
91
216
  workflow_action_id: string;
92
217
  workflow_trigger_id: string;
218
+ /** returns workflow trigger when expanded */
219
+ workflow_trigger?: WorkflowTrigger;
93
220
  status: Extract<ResourceStatus, 'PENDING' | 'NOT_EXECUTED' | 'FAILED' | 'SUCCEEDED'>;
94
- reason: string;
221
+ reason?: string;
95
222
  }
@@ -1,5 +1,5 @@
1
1
  import { inject as t } from "vue";
2
- import { A as i } from "./customElements-q_i9y0Ph.mjs";
2
+ import { A as i } from "./customElements-B58FcXIN.mjs";
3
3
  function c() {
4
4
  const o = t(i);
5
5
  if (!o)
@@ -1 +1 @@
1
- const i=require("vue"),e=require("./customElements-hH6pju3X.js");function o(){const t=i.inject(e.ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);if(!t)throw new Error("dispatchAction is not provided");return{dispatchAction:t}}exports.useActionDispatchProvider=o;
1
+ const i=require("vue"),e=require("./customElements-DUMRMFQ5.js");function o(){const t=i.inject(e.ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);if(!t)throw new Error("dispatchAction is not provided");return{dispatchAction:t}}exports.useActionDispatchProvider=o;
@@ -1,5 +1,5 @@
1
1
  import { ref as i } from "vue";
2
- import { c as m } from "./customer-BDoOIAFr.mjs";
2
+ import { c as m } from "./customer-B3LPAhaD.mjs";
3
3
  import { u as s } from "./useService-Bh47bllz.mjs";
4
4
  function C({ customerId: r }) {
5
5
  const { getCustomer: u, updateCustomer: o } = m(), e = i(), { data: p, ...c } = s({
@@ -1 +1 @@
1
- const i=require("vue"),v=require("./customer-C9q6ti8s.js"),u=require("./useService-H7BjLg8P.js");function m({customerId:r}){const{getCustomer:c,updateCustomer:a}=v.createCustomerService(),t=i.ref(),{data:C,...o}=u.useService({service:async()=>{const e=await c(r);return t.value=e,e}}),{data:d,...n}=u.useService({service:async e=>{const s=await a(r,e);return t.value=s,s}});return{customer:t,get:o,update:n}}exports.useCustomer=m;
1
+ const i=require("vue"),v=require("./customer-CisTPaXj.js"),u=require("./useService-H7BjLg8P.js");function m({customerId:r}){const{getCustomer:c,updateCustomer:a}=v.createCustomerService(),t=i.ref(),{data:C,...o}=u.useService({service:async()=>{const e=await c(r);return t.value=e,e}}),{data:d,...n}=u.useService({service:async e=>{const s=await a(r,e);return t.value=s,s}});return{customer:t,get:o,update:n}}exports.useCustomer=m;
@@ -4,12 +4,12 @@ import { u as ie, d as vl, c as ml } from "./index.es-CXkP_k3u.mjs";
4
4
  import { c as hl } from "./countryData.es-BegoD-cZ.mjs";
5
5
  import { _ as bl, u as pl, a as yl, o as gl, f as xl, s as kl, b as wl } from "./floating-ui.vue.es-CYt0fSY7.mjs";
6
6
  import { e as Ce, _ as J, s as Cl, u as Sl } from "./sorting.es-DCihKqD2.mjs";
7
- import { S as Ml, _ as ue, u as Fe } from "./customElements-q_i9y0Ph.mjs";
8
- import { _ as ze } from "./IconButton.vue.es-ChvsCZQG.mjs";
9
- import { a as Ae, _ as ge } from "./Button.vue.es-BbSN0uOk.mjs";
10
- import { _ as $l } from "./Chip.vue.es-T22Q7AF9.mjs";
11
- import { _ as Il } from "./Input.vue.es-DJQqJrsb.mjs";
12
- import { _ as Vl } from "./index-BPU8tIml.mjs";
7
+ import { S as Ml, _ as ue, a as Fe } from "./customElements-B58FcXIN.mjs";
8
+ import { _ as ze } from "./IconButton.vue.es-DvfErUOq.mjs";
9
+ import { a as Ae, _ as ge } from "./Button.vue.es-Cmjfm4jw.mjs";
10
+ import { _ as $l } from "./Chip.vue.es-DksjbJO8.mjs";
11
+ import { _ as Il } from "./Input.vue.es-CU9u5yKH.mjs";
12
+ import { _ as Vl } from "./formControl-dX7l8o3c.mjs";
13
13
  const Se = (e) => xe(e) && typeof e != "boolean" ? null : e, se = (e) => typeof e == "object" && e !== null, Ol = ({
14
14
  from: e,
15
15
  to: b,
@@ -0,0 +1 @@
1
+ const R=require("./useService-H7BjLg8P.js"),e=require("vue"),L=require("./index.es-BclokHQX.js"),$e=require("./countryData.es-C4jHBzfo.js"),O=require("./floating-ui.vue.es-Bly3DGWm.js"),E=require("./sorting.es-DQsjKr8A.js"),D=require("./customElements-DUMRMFQ5.js"),fe=require("./IconButton.vue.es-DgQN18Am.js"),U=require("./Button.vue.es-BzkuglKw.js"),Oe=require("./Chip.vue.es-B2jjzIOc.js"),De=require("./Input.vue.es-B60eK8Ds.js"),ze=require("./formControl-ODrpUvcA.js"),oe=t=>R.isEmpty(t)&&typeof t!="boolean"?null:t,G=t=>typeof t=="object"&&t!==null,Te=({from:t,to:v,nullifyEmptyValues:b=!1})=>{const s=Object.fromEntries(Object.entries(v).filter(([a,p])=>!R.deepEqual(p,t[a])));return b?Object.entries(s).reduce((a,[p,r])=>({...a,[p]:oe(r)}),{}):s},Le=({from:t,to:v,nullifyEmptyValues:b=!1})=>{const s={},a=(r,d,n)=>{const m=d[n];return r===void 0?Array.isArray(m)?s[n]=[]:G(m)&&(s[n]={}):Array.isArray(m)?r[n]=[]:G(m)&&(r[n]={}),[r===void 0?s:r,n]},p=(r,d,n)=>{for(const m of Object.keys(r)){const f=a(n,r,m);m in d||(f[0][f[1]]={from:r[m]})}for(const[m,f]of Object.entries(d)){const h=m in r,y=a(n,r,m);if(h){const g=r[m];R.deepEqual(g,f)?delete y[0][y[1]]:G(f)&&G(g)?p(g,f,y[0][y[1]]):y[0][y[1]]=b&&typeof f!="boolean"?oe(f):f}else y[0][y[1]]=b?oe(f):f}};return p(t,v),s},Re=({from:t,to:v,mode:b="shallow",nullifyEmptyValues:s=!1})=>b==="deep"?Le({from:t,to:v,nullifyEmptyValues:s}):Te({from:t,to:v,nullifyEmptyValues:s});function qe(t,v,b=[]){return[...t].sort((s,a)=>{for(let p=0;p<v.length;p++){const r=v[p],d=typeof r=="function"?r:h=>h[r],n=b[p]==="desc"?-1:1,m=d(s),f=d(a);if(!(m==null&&f==null)){if(m==null)return n;if(f==null||m<f)return-n;if(m>f)return n}}return 0})}const Ae={},Fe={class:"flex items-center pt-1"},Ue={class:"px-1.5 text-xs font-semibold text-subtle"};function je(t,v){return e.openBlock(),e.createElementBlock("div",Fe,[v[0]||(v[0]=e.createElementVNode("div",{class:"w-2 border-t"},null,-1)),e.createElementVNode("span",Ue,[e.renderSlot(t.$slots,"default")]),v[1]||(v[1]=e.createElementVNode("div",{class:"grow border-t"},null,-1))])}const Ke=O._export_sfc(Ae,[["render",je]]),He=t=>`checkbox-item-${t}`,We="select-search-done-button",Ge=["aria-selected","aria-disabled","data-testid","onKeydown"],Qe=["id","value","checked","disabled"],Ye=["for"],Je={class:"flex min-w-0 items-center gap-1"},Xe={class:"flex min-w-0 flex-grow flex-col"},Ze={class:"flex min-w-0 flex-grow gap-2"},_e={class:"flex min-w-0 flex-grow flex-col"},et={class:"flex min-w-0 flex-grow items-center gap-2"},tt=e.defineComponent({__name:"SearchSelectInputOption",props:{multiple:{type:Boolean},search:{},condensed:{type:Boolean},label:{},checked:{type:Boolean},disabled:{type:Boolean},subLabel:{},labelPrefixComponent:{},labelSuffixComponent:{},labelInlineComponent:{},value:{},labelSrOnly:{type:Boolean}},emits:["value-changed"],setup(t,{emit:v}){const b=v,s=t,a=n=>{const m=n.target,f={value:m.value,checked:m.checked};b("value-changed",f)},p=()=>{s.multiple||s.disabled||b("value-changed",{value:s.value})},r=e.computed(()=>He(s.value)),d=e.computed(()=>E.escapeUserInput(s.search??""));return(n,m)=>(e.openBlock(),e.createElementBlock("li",{role:"option","aria-selected":t.checked,"aria-disabled":t.disabled,class:e.normalizeClass([{"hover:bg-gray-100":!t.disabled},"relative flex"]),"data-testid":r.value,tabindex:"0",onClick:p,onKeydown:e.withKeys(e.withModifiers(p,["prevent"]),["enter"])},[t.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("input",e.mergeProps(n.$attrs,{id:r.value,ref:"inputRef",value:t.value,checked:t.checked,disabled:t.disabled,type:"checkbox",class:["absolute left-3.5 top-1/2 h-4 w-4 -translate-y-2 rounded border-gray-300 bg-gray-100 focus:ring-2 focus:ring-primary-500",t.disabled?"text-disabled":"text-primary-600"],tabindex:"-1",onChange:a}),null,16,Qe),e.createElementVNode("label",{for:r.value,class:e.normalizeClass([t.disabled?"text-disabled":"rounded text-default","w-full px-4 py-3 pl-10 text-sm font-medium"])},[e.createElementVNode("div",Je,[t.labelPrefixComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.labelPrefixComponent.component),e.normalizeProps(e.mergeProps({key:0},t.labelPrefixComponent.props)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",Xe,[e.createElementVNode("div",Ze,[e.createVNode(E._sfc_main,{text:t.label,search:d.value,title:t.label,class:e.normalizeClass(["truncate font-semibold",{"sr-only":t.labelSrOnly}])},null,8,["text","search","title","class"]),t.labelInlineComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.labelInlineComponent.component),e.normalizeProps(e.mergeProps({key:0},t.labelInlineComponent.props)),null,16)):e.createCommentVNode("",!0),t.subLabel&&t.condensed?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,class:"truncate text-xs text-secondary",text:t.subLabel,title:t.subLabel,search:d.value},null,8,["text","title","search"])):e.createCommentVNode("",!0)]),t.subLabel&&!t.condensed?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,class:"truncate text-xs text-secondary",text:t.subLabel,title:t.subLabel,search:d.value},null,8,["text","title","search"])):e.createCommentVNode("",!0)]),t.labelSuffixComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.labelSuffixComponent.component),e.normalizeProps(e.mergeProps({key:1},t.labelSuffixComponent.props)),null,16)):e.createCommentVNode("",!0)])],10,Ye)],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex w-full min-w-0 items-center gap-3 px-4 text-sm font-medium",[t.condensed?"p-2":"py-3",t.disabled??"cursor-not-allowed",!t.disabled&&"cursor-pointer"]])},[t.labelPrefixComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.labelPrefixComponent.component),e.normalizeProps(e.mergeProps({key:0},t.labelPrefixComponent.props)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",_e,[e.createElementVNode("div",et,[e.createVNode(E._sfc_main,{text:t.label,search:e.unref(E.escapeUserInput)(t.search??""),title:t.label,class:e.normalizeClass(["truncate font-semibold",{"text-disabled":t.disabled}])},null,8,["text","search","title","class"]),t.labelInlineComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.labelInlineComponent.component),e.normalizeProps(e.mergeProps({key:0},t.labelInlineComponent.props)),null,16)):e.createCommentVNode("",!0),t.subLabel&&t.condensed?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,class:"truncate text-xs text-secondary",text:t.subLabel,title:t.subLabel,search:d.value},null,8,["text","title","search"])):e.createCommentVNode("",!0)]),t.subLabel&&!t.condensed?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,class:"truncate text-xs text-secondary",text:t.subLabel,title:t.subLabel,search:d.value},null,8,["text","title","search"])):e.createCommentVNode("",!0)]),t.labelSuffixComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.labelSuffixComponent.component),e.normalizeProps(e.mergeProps({key:1},t.labelSuffixComponent.props)),null,16)):e.createCommentVNode("",!0)],2))],42,Ge))}}),lt={class:"flex flex-col rounded-bl rounded-br"},ot={key:0,class:"px-5 py-5 text-sm text-secondary"},nt={key:0},at=["innerHTML"],st={key:0},rt={class:"mt-1 px-3 py-2 text-sm text-secondary"},it=e.defineComponent({__name:"SearchSelectInputOptions",props:{i18n:{},model:{},search:{},multiple:{type:Boolean},condensed:{type:Boolean},hasLargeDropdown:{type:Boolean},addOnly:{type:Boolean},options:{}},emits:["value-changed"],setup(t,{emit:v}){const b=v,s=t,a=h=>b("value-changed",h),p=e.computed(()=>{var h,y;const g=s.search?`<span class="font-bold">"${E.escapeUserInput(s.search)}"</span>`:"";return((y=(h=s.i18n)==null?void 0:h.noResults)==null?void 0:y.call(h,g))??`No matches found for ${g}.`}),r=e.computed(()=>s.search===""),d=e.computed(()=>s.options.filter(h=>!h.hidden)),n=e.computed(()=>d.value.length>0),m=e.computed(()=>n.value?!1:r.value?!0:!!p.value),f=e.computed(()=>E.sortedUniqBy(s.options,"group").reduce((h,y)=>y.value===""?h:{...h,[y.value]:y.group},{}));return(h,y)=>{var g,k;return e.openBlock(),e.createElementBlock("div",lt,[m.value?(e.openBlock(),e.createElementBlock("div",ot,[r.value?(e.openBlock(),e.createElementBlock("span",nt,e.toDisplayString(((g=s.i18n)==null?void 0:g.noOptionsAvailable)??"No available options."),1)):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:p.value},null,8,at))])):n.value?(e.openBlock(),e.createElementBlock("ul",{key:1,class:e.normalizeClass(["list-none overflow-y-auto",[t.hasLargeDropdown?"max-h-[19rem]":"max-h-48"]])},[t.addOnly?(e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("p",rt,e.toDisplayString(((k=t.i18n)==null?void 0:k.addOnly)??"You can only select currently unselected options."),1)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,({label:Q,subLabel:j,value:I,checked:K,disabled:Y,labelInlineComponent:B,labelSuffixComponent:J,labelSrOnly:X,labelPrefixComponent:Z,searchValues:u})=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:I},[f.value[I]?(e.openBlock(),e.createBlock(Ke,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value[I]),1)]),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(tt,{label:Q,"sub-label":j,value:I,checked:K,disabled:Y,search:u?"":t.search,multiple:t.multiple,condensed:t.condensed,"label-suffix-component":J,"label-prefix-component":Z,"label-inline-component":B,"label-sr-only":X,onValueChanged:a},null,8,["label","sub-label","value","checked","disabled","search","multiple","condensed","label-suffix-component","label-prefix-component","label-inline-component","label-sr-only"])],64))),128))],2)):e.createCommentVNode("",!0),h.$slots["list-footer-content"]?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"border-t border-gray-200":n.value})},[e.renderSlot(h.$slots,"list-footer-content")],2)):e.createCommentVNode("",!0)])}}}),ut={class:"flex flex-col gap-2"},ct=["aria-expanded"],dt={class:"flex items-center gap-2"},mt={key:2},ft={class:"flex items-center gap-2 self-stretch"},vt={class:"flex items-center self-stretch pr-1"},pt={key:0,class:"flex flex-wrap gap-2"},ht=["innerHTML"],bt=e.defineComponent({__name:"SearchSelectInput",props:e.mergeModels({addOnly:{type:Boolean,default:!1},disabled:{type:Boolean},i18n:{},label:{},labelScreenReaderOnly:{type:Boolean},singleModelValue:{},multiModelValue:{},options:{default:()=>[]},optionsOrder:{default:()=>["asc","asc"]},optionsOrderProperties:{default:()=>["group","label"]},required:{type:Boolean,default:!1},rootClass:{},wrapperClass:{},size:{default:"md"},withChips:{type:Boolean,default:!1},error:{},hasReset:{type:Boolean},name:{},hasLargeDropdown:{type:Boolean,default:!1},showSuffixInClosedInput:{type:Boolean},showSuffixLabelInInput:{type:Boolean},showSelectionInClosedInput:{type:Boolean},condensed:{type:Boolean},form:{},prefix:{}},{search:{default:""},searchModifiers:{}}),emits:e.mergeModels(["update:singleModelValue","update:multiModelValue","blur","change","focus","add-option"],["update:search"]),setup(t,{expose:v,emit:b}){var s;const a=t,p=e.inject(D.SEARCH_SELECT_TELEPORT_TARGET),r=(s=e.getCurrentInstance())==null?void 0:s.vnode.props,d=!(r!=null&&r["onUpdate:search"]),n=e.computed(()=>Array.isArray(a.multiModelValue)),m=e.ref(a.singleModelValue),f=b,h=L.useVModel(a,"singleModelValue",f),y=L.useVModel(a,"multiModelValue",f),g=e.ref(y.value??[]);e.watch(()=>a.multiModelValue,l=>{l&&(g.value=l)});const k=e.useModel(t,"search"),Q=e.useSlots(),j=e.computed(()=>!!Q.prefix),I=e.computed(()=>!!a.prefix),K=e.computed(()=>j.value||I.value),Y=e.computed(()=>K.value||!le.value),B=e.computed({get:()=>n.value?g.value??[]:typeof h.value=="string"?[h.value]:[],set(l){n.value?g.value=l:h.value=(l==null?void 0:l[0])??""}}),J=e.computed(()=>P.value.filter(l=>{var o;return(o=B.value)==null?void 0:o.includes(l.value)})),X=e.computed(()=>J.value[0]),Z=E.useIsMounted(),u=e.ref(!1),z=e.ref(),M=e.ref(),ve=e.ref(),ne=()=>z.value?Array.from(z.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')):[],ae=()=>{var l;let o=document.activeElement;for(;(l=o==null?void 0:o.shadowRoot)!=null&&l.activeElement;)o=o.shadowRoot.activeElement;return o},q=()=>{if(!M.value)return null;let l=M.value.querySelector("input");if(l)return l;const o=M.value.querySelectorAll("*");for(const i of o)if(i.shadowRoot&&(l=i.shadowRoot.querySelector("input"),l))return l;return null};let _=!1;const ee=()=>{var l;_=!0,(l=q())==null||l.focus(),_=!1},N=e.ref(""),A=e.ref(!1),pe=()=>{_||(u.value=!0)},he=l=>{l.target===q()&&(u.value=!0)},be=()=>{a.disabled||(A.value=!0,u.value=!0)},ye=l=>{var o;if(!u.value)return;const i=ne(),x=q();if(ae()===x)switch(l.key){case"ArrowDown":i.length>0&&(l.preventDefault(),(o=i[0])==null||o.focus());break;case"Tab":V();break;case"Escape":l.preventDefault(),V();break}},ke=l=>{var o,i,x;const C=ne(),c=ae(),S=C.indexOf(c),F=q();switch(l.key){case"ArrowDown":S<C.length-1&&(l.preventDefault(),(o=C[S+1])==null||o.focus());break;case"ArrowUp":l.preventDefault(),S<=0?F==null||F.focus():(i=C[S-1])==null||i.focus();break;case"Tab":if(l.preventDefault(),l.shiftKey&&S>0){(x=C[S-1])==null||x.focus();break}V(),ee();break;case"Escape":l.preventDefault(),V(),ee();break}},{floatingStyles:ge}=O.useFloating(M,z,{whileElementsMounted:O.autoUpdate,placement:"bottom",middleware:[O.offset(4),O.flip({mainAxis:!0}),O.shift({padding:8}),O.size({padding:8,apply({availableHeight:l,elements:o}){Object.assign(o.floating.style,{maxHeight:`${l}px`})}})]}),{width:xe}=L.useElementSize(M),se=l=>{var o;return a.disabled||!a.disabled&&a.addOnly&&!!((o=m.value)!=null&&o.includes(l))},P=e.computed(()=>{const l=a.options.map(i=>({...i,checked:B.value.includes(i.value),disabled:i.disabled??se(i.value)})),o=[...l,...k.value.length===0&&H.value?H.value.filter(i=>!l.some(x=>x.value===i.value)):[]];return a.optionsOrderProperties&&!R.isEmpty(a.optionsOrderProperties)?qe(o,a.optionsOrderProperties,a.optionsOrder):o}),re=l=>P.value.filter(o=>l.some(i=>o.value===i)),$=e.computed(()=>re(B.value)),w=e.computed(()=>$.value[0]),te=e.computed(()=>{var l;if(!(u.value||!a.showSuffixInClosedInput)&&!(n.value&&$.value.length!==1))return(l=w.value)==null?void 0:l.labelSuffixComponent}),T=e.computed(()=>{var l;if(!a.showSelectionInClosedInput||u.value||!n.value)return;const o=(l=w.value)==null?void 0:l.labelPrefixComponent;if(o)return{component:o,extraCount:$.value.length-1}}),Ce=e.computed(()=>a.size==="xs"?"px-1":a.size==="sm"?"px-2":"px-4"),H=e.ref([]);e.watch(()=>{var l;if(n.value)return null;const o=h.value??"";return{selectedValue:o,label:((l=a.options.find(i=>i.value===o))==null?void 0:l.label)??""}},l=>{if(l){if(!l.selectedValue){N.value="",u.value||(k.value="");return}l.label&&(N.value=l.label,!u.value&&k.value===""&&(k.value=l.label))}},{immediate:!0});const ie=({value:l,checked:o})=>{var i;let x;n.value?x=o?[...B.value,l]:B.value.filter(C=>C!==l):(x=[l],N.value=((i=P.value.find(C=>C.value===l))==null?void 0:i.label)??"",k.value=N.value,A.value=!1,u.value=!1,ee()),H.value=re(x),B.value=x,f("change")},ue=e.computed(()=>B.value.length>0&&!a.disabled&&!(B.value.length===1&&B.value[0]==="")),W=()=>{B.value=[],g.value=[],n.value||(N.value="",k.value="",A.value=!1)},Be=()=>{if(!n.value&&N.value&&k.value===N.value){W();return}k.value=""},we=e.computed(()=>{if(!d||!n.value&&!A.value)return P.value;const l=k.value.toLowerCase();return P.value.filter(o=>o.searchValues?o.searchValues.some(i=>i.toLowerCase().includes(l)):(o.label??"").toLowerCase().includes(l))}),V=()=>{n.value?(y.value=g.value,k.value=""):k.value===""&&a.hasReset?W():(k.value=N.value,A.value=!1),u.value=!1},Ve=()=>{var l;u.value?V():(u.value=!0,(l=q())==null||l.focus())};e.watch(g,()=>{!u.value&&!R.isEqual(y.value,g.value)&&n.value&&(y.value=g.value)});const Se=l=>{const o=l.composedPath();z.value&&o.includes(z.value)||M.value&&o.includes(M.value)||u.value&&V()};L.useEventListener("mousedown",Se);const Ee=e.computed(()=>{var l,o,i,x,C,c,S;return n.value&&u.value?((l=a.i18n)==null?void 0:l.placeholderSearch)??"Search":T.value?"":n.value&&$.value.length===1?(o=w.value)==null?void 0:o.label:n.value&&$.value.length>=2?`${(i=w.value)==null?void 0:i.label} +${$.value.length-1}`:!h.value&&!w.value?u.value?((x=a.i18n)==null?void 0:x.placeholderSearch)??"Search":((C=a.i18n)==null?void 0:C.placeholderDefault)??"Select an option":u.value?((c=a.i18n)==null?void 0:c.placeholderSearch)??"Search":!a.singleModelValue&&!w.value?"":(S=P.value.find(F=>{var me;return F.value===((me=X.value)==null?void 0:me.value)}))==null?void 0:S.label}),ce=e.computed(()=>k.value===""),Ne=e.computed(()=>!(ce.value||!n.value&&N.value!==""&&k.value===N.value&&!a.hasReset)),Me=e.computed(()=>ue.value&&!!a.hasReset&&ce.value&&(n.value||!u.value)),Ie=!!(r!=null&&r.onAddOption),Pe=()=>{f("add-option"),V()},le=e.computed(()=>{var l;return!u.value&&!n.value&&((l=w.value)==null?void 0:l.labelPrefixComponent)}),de=`search-select-options-${Math.random().toString(36).substring(2,9)}`;return v({flushMemoryCachedSelectedOptions:()=>H.value=[],close:V}),(l,o)=>{var i,x,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ut,[e.createElementVNode("div",{ref_key:"wrapperRef",ref:M,class:e.normalizeClass(["relative flex items-end",{[`${t.rootClass}`]:t.rootClass,"z-30":u.value}]),role:"combobox","aria-expanded":u.value,"aria-haspopup":!0,"aria-controls":de,onKeydown:ye},[e.createVNode(e.unref(De._sfc_main),{ref_key:"inputRef",ref:ve,modelValue:k.value,"onUpdate:modelValue":o[2]||(o[2]=c=>k.value=c),required:t.required,label:t.label,name:t.name,form:t.form,"label-screen-reader-only":t.labelScreenReaderOnly,placeholder:Ee.value,class:"grow","wrapper-class":[t.wrapperClass,{"border-transparent border border-b-gray-200 focus-within:border-b relative z-10 rounded-b-none":u.value}],"input-class":!u.value&&(!n.value&&e.unref(h)||n.value&&!e.unref(R.isEmpty)(t.multiModelValue))?"text-ellipsis placeholder:text-default":"","suffix-class":"border-l-0",disabled:t.disabled,size:t.size,error:t.error,"prefix-has-border":Y.value,"aria-autocomplete":"list",onFocus:pe,onClick:he,onInput:be,onBlur:o[3]||(o[3]=c=>l.$emit("blur"))},e.createSlots({"label-suffix":e.withCtx(()=>[e.renderSlot(l.$slots,"label-suffix")]),suffix:e.withCtx(()=>{var c;return[e.createElementVNode("div",ft,[!u.value&&!n.value&&((c=w.value)!=null&&c.labelInlineComponent)&&(!t.showSuffixInClosedInput||t.showSuffixLabelInInput)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.value.labelInlineComponent.component),e.normalizeProps(e.mergeProps({key:0},w.value.labelInlineComponent.props)),null,16)):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(te.value.component),e.normalizeProps(e.mergeProps({key:1},te.value.props)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[Me.value?(e.openBlock(),e.createBlock(fe._sfc_main,{key:0,icon:"close",size:"sm",intent:"subtle",type:"button",onMousedown:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),onClick:W})):e.createCommentVNode("",!0),Ne.value?(e.openBlock(),e.createBlock(fe._sfc_main,{key:1,icon:"close",size:"sm",intent:"subtle",type:"button",onClick:Be})):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"flex aspect-square items-center justify-center self-stretch text-gray-800",onMousedown:o[1]||(o[1]=e.withModifiers(()=>{},["prevent"])),onClick:Ve},[e.createVNode(U._sfc_main$1,{icon:u.value?"keyboard_arrow_up":"keyboard_arrow_down",size:t.size==="xs"?"xs":"sm"},null,8,["icon","size"])],32)])])]}),_:2},[l.$slots.tooltip?{name:"tooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip")]),key:"0"}:void 0,T.value?{name:"input",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none absolute inset-0 flex items-center gap-1",Ce.value])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value.component.component),e.normalizeProps(e.guardReactiveProps(T.value.component.props)),null,16)),T.value.extraCount>0?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:0,variant:t.size==="xs"||t.size==="sm"?"body-xs":"body-sm",tag:"span",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(T.value.extraCount),1)]),_:1},8,["variant"])):e.createCommentVNode("",!0)],2)]),key:"1"}:void 0,K.value||le.value||!d?{name:"prefix",fn:e.withCtx(()=>{var c;return[e.createElementVNode("div",dt,[j.value?e.renderSlot(l.$slots,"prefix",{},void 0,void 0,0):I.value?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:1,variant:t.size==="xs"?"body-xs":"body-sm",tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.prefix),1)]),_:1},8,["variant"])):le.value&&((c=w.value)!=null&&c.labelPrefixComponent)?(e.openBlock(),e.createElementBlock("div",mt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.value.labelPrefixComponent.component),e.normalizeProps(e.guardReactiveProps(w.value.labelPrefixComponent.props)),null,16))])):d?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(U._sfc_main$1,{key:3,icon:"search",size:"sm"}))])]}),key:"2"}:void 0,l.$slots.helper?{name:"helper",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"helper")]),key:"3"}:void 0]),1032,["modelValue","required","label","name","form","label-screen-reader-only","placeholder","wrapper-class","input-class","disabled","size","error","prefix-has-border"])],42,ct),t.withChips?(e.openBlock(),e.createElementBlock("div",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,({value:c,label:S})=>(e.openBlock(),e.createBlock(Oe._sfc_main,{key:c,removable:!se(c),onRemoved:F=>ie({value:c,checked:!1})},{default:e.withCtx(()=>[e.createElementVNode("span",{innerHTML:S},null,8,ht)]),_:2},1032,["removable","onRemoved"]))),128))])):e.createCommentVNode("",!0)]),e.unref(Z)&&e.unref(p)?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:e.unref(p)},[u.value&&!t.disabled?(e.openBlock(),e.createElementBlock("div",{key:0,id:de,ref_key:"optionsRef",ref:z,role:"listbox",style:e.normalizeStyle(e.unref(ge)),class:"z-70 overflow-y-auto rounded border border-gray-200 bg-white drop-shadow-md",onMouseenter:o[4]||(o[4]=c=>u.value=!0),onKeydown:ke},[e.createElementVNode("div",{class:"rounded pt-0",style:e.normalizeStyle({width:`${e.unref(xe)}px`})},[e.createVNode(it,{i18n:{addOnly:(i=t.i18n)==null?void 0:i.addOnly,noResults:(x=t.i18n)==null?void 0:x.noResults,noOptionsAvailable:(C=t.i18n)==null?void 0:C.noOptionsAvailable},options:we.value,multiple:n.value,search:k.value,model:B.value,"add-only":t.addOnly,"allows-multiple-values":!!n.value,condensed:t.condensed,"has-large-dropdown":t.hasLargeDropdown,onValueChanged:ie},{"list-footer-content":e.withCtx(()=>[Ie?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,intent:"subtle",class:"w-full rounded-t-none",type:"button","icon-prefix":"add",onClick:Pe},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString((c=t.i18n)==null?void 0:c.addOption),1)]}),_:1})):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex items-center justify-between",{"py-2":!l.$slots["list-footer-content"]}])},[ue.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,type:"button",intent:"subtle",size:"xs",class:"ml-2",onClick:W},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(((c=t.i18n)==null?void 0:c.multipleValuesClearButtonText)??"Clear"),1)]}),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(l.$slots,"list-footer-content",{close:V})]),e.createVNode(U._sfc_main,{type:"button",intent:"secondary",size:"xs",class:"mr-2","data-testid":e.unref(We),onClick:V},{default:e.withCtx(()=>{var c;return[e.createTextVNode(e.toDisplayString(((c=t.i18n)==null?void 0:c.multipleValuesDoneButtonText)??"Done"),1)]}),_:1},8,["data-testid"])],2)):e.renderSlot(l.$slots,"list-footer-content",{close:V},void 0,void 0,2)]),_:3},8,["i18n","options","multiple","search","model","add-only","allows-multiple-values","condensed","has-large-dropdown"])],4)],36)):e.createCommentVNode("",!0)],8,["to"])):e.createCommentVNode("",!0)],64)}}}),yt=e.defineComponent({__name:"CountrySelect",props:{label:{},singleModelValue:{},multiModelValue:{},error:{},required:{type:Boolean,default:!0},hasReset:{type:Boolean},disabled:{type:Boolean},name:{},form:{}},emits:["update:modelValue","update:singleModelValue"],setup(t,{emit:v}){const b=t,s=L.useVModel(b,"singleModelValue"),a=L.useVModel(b,"multiModelValue"),p=v;return(r,d)=>(e.openBlock(),e.createBlock(bt,{"multi-model-value":e.unref(a),"onUpdate:multiModelValue":d[0]||(d[0]=n=>e.isRef(a)?a.value=n:null),"single-model-value":e.unref(s),"onUpdate:singleModelValue":[d[1]||(d[1]=n=>e.isRef(s)?s.value=n:null),d[2]||(d[2]=n=>{p("update:modelValue",n)})],"root-class":r.$attrs.class,label:t.label,options:e.unref($e.countryData).map(({key:n,value:m})=>({label:m,value:n})),error:t.error,"has-reset":t.hasReset,disabled:t.disabled,required:t.required,"with-chips":!!t.multiModelValue,name:t.name,form:t.form},{"label-suffix":e.withCtx(()=>[e.renderSlot(r.$slots,"label-suffix")]),_:3},8,["multi-model-value","single-model-value","root-class","label","options","error","has-reset","disabled","required","with-chips","name","form"]))}}),kt={class:"flex grow flex-col"},gt=e.defineComponent({__name:"CompanyPurchaseToggle",props:e.mergeModels({noSpacing:{type:Boolean}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const v=e.useModel(t,"modelValue"),{$t:b}=D.useIntl();return(s,a)=>(e.openBlock(),e.createBlock(e.unref(ze._sfc_main),{modelValue:v.value,"onUpdate:modelValue":a[0]||(a[0]=p=>v.value=p),"no-spacing":t.noSpacing,"label-position":"before"},{"inline-label":e.withCtx(()=>[e.createElementVNode("div",kt,[e.createVNode(e.unref(D._sfc_main),{tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(b)({defaultMessage:"Company purchase",id:"checkout.company_purchase_toggle.title",description:"The title of the company purchase toggle in the checkout"})),1)]),_:1}),e.createVNode(e.unref(D._sfc_main),{tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(b)({defaultMessage:"I am purchasing on behalf of a company",id:"checkout.company_purchase_toggle.sub_title",description:"The subtitle of the company purchase toggle in the checkout"})),1)]),_:1})])]),_:1},8,["modelValue","no-spacing"]))}});function xt(){const{$t:t}=D.useIntl();return{contactInformationTitle:t({defaultMessage:"Customer information",id:"checkout.contact_information_block.title",description:"The title of the contact information block in the checkout form"}),emailLabel:t({defaultMessage:"Email address",id:"checkout.email_address.label",description:"The email address of the customer in the checkout form"}),emailPlaceholder:t({defaultMessage:"Email address...",id:"checkout.email_address.placeholder",description:"The email address of the customer in the checkout form"}),countryLabel:t({defaultMessage:"Billing country",id:"checkout.country.label",description:"The country of the customer in the checkout form"}),vatNumberLabel:t({defaultMessage:"VAT number",id:"checkout.vat_number.label",description:"The label for the vat number in the checkout form"}),vatNumberPlaceholder:t({defaultMessage:"VAT number...",id:"checkout.vat_number.placeholder",description:"The label for the vat number in the checkout form"}),legalNameLabel:t({defaultMessage:"Legal entity name",id:"checkout.legal_name.label",description:"The legal name of the organization customer in the checkout form"}),legalNamePlaceholder:t({defaultMessage:"Legal entity name...",id:"checkout.legal_name.placeholder",description:"The legal name of the organization customer in the checkout form"}),addressTitle:t({defaultMessage:"Billing address",id:"checkout.address.title",description:"Address line 1 of the customer address in the checkout form"}),postalCodePlaceholder:t({defaultMessage:"Postal code...",id:"checkout.address.portal_code.placeholder",description:"Postal code of the customer address in the checkout form"}),cityPlaceholder:t({defaultMessage:"City...",id:"checkout.address.city.placeholder",description:"City of the customer address in the checkout form"}),statePlaceholder:t({defaultMessage:"State...",id:"checkout.address.state.placeholder",description:"State of the customer address in the checkout form"})}}exports._sfc_main=yt;exports._sfc_main$1=gt;exports.objectDiff=Re;exports.useCustomerFormLabels=xt;
@@ -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,7 +1,7 @@
1
- import { c as m } from "./invoices-DIzkXntV.mjs";
2
- import { c as u } from "./payments-C0-Hq2a4.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
- import { u as v } from "./useWatchDebounced-DT5IicPp.mjs";
4
+ import { u as v } from "./useWatchDebounced-BHlBPcXB.mjs";
5
5
  const y = ({
6
6
  getData: a,
7
7
  onError: t,
@@ -1 +1 @@
1
- const r=require("./invoices-CHp75zZI.js"),v=require("./payments-DBvregE8.js"),s=require("vue"),y=require("./useWatchDebounced-CAU1WI1P.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-D5svcVS_.mjs";
3
- import { u as R, _ as L } from "./customElements-q_i9y0Ph.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-BbSN0uOk.mjs";
6
- import { _ as G } from "./Chip.vue.es-T22Q7AF9.mjs";
7
- import { _ as J, T as Q, a as X } from "./TooltipParagraph.vue.es-CxdL8-B7.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-BdciAX8T.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-DIzkXntV.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-CSrVPlUK.js"),m=require("./customElements-hH6pju3X.js"),x=require("./Amount.vue.es-DExaYBqm.js"),v=require("./Button.vue.es-CeUTAc2n.js"),B=require("./Chip.vue.es-BN83K3Tk.js"),_=require("./TooltipParagraph.vue.es-DS_69pl1.js"),C=require("./floating-ui.vue.es-Bly3DGWm.js"),N=require("./useActionDispatchProvider-CKzeqXzY.js"),V=require("./configuration-akTS7Wiw.js"),$=require("./useIncrementalLoading-CaWOE8Xl.js"),S=require("./invoices-CHp75zZI.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-q_i9y0Ph.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-hH6pju3X.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;