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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/README.md +12 -10
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
  4. package/dist/{Avatar.vue.es-Bm6MCMAL.js → Avatar.vue.es-BJxSCU76.js} +1 -1
  5. package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
  6. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +14 -15
  8. package/dist/{Button.vue.es-qGvnOKnK.js → Button.vue.es-BzkuglKw.js} +1 -1
  9. package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
  10. package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CB4mrvkU.mjs} +145 -153
  11. package/dist/{ChargeOnDemandModal-DIQaGnRs.js → ChargeOnDemandModal-b17YswWA.js} +1 -1
  12. package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
  13. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
  14. package/dist/{Chip.vue.es-D60gTbfe.js → Chip.vue.es-B2jjzIOc.js} +1 -1
  15. package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
  16. package/dist/{ContextMenu.vue.es-C7KI8Gz6.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +4 -4
  18. package/dist/{CustomerBillingInformation.vue.es-bFUx81Ig.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
  19. package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +110 -123
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
  24. package/dist/{DividerText.vue.es-BF3gnr4e.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
  25. package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
  28. package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
  29. package/dist/{ErrorNotification.vue.es-BX9dHEc-.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
  30. package/dist/{IconButton.vue.es-Bwdfu-jm.js → IconButton.vue.es-DgQN18Am.js} +1 -1
  31. package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-Cei98MBw.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
  34. package/dist/{Input.vue.es-B47l_feL.js → Input.vue.es-B60eK8Ds.js} +1 -1
  35. package/dist/{Input.vue.es-D9IjIWc-.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
  40. package/dist/{InvoiceSummary.vue.es-DBnR9Hs7.js → InvoiceSummary.vue.es-CAmA8g0t.js} +1 -1
  41. package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +7 -7
  42. package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
  43. package/dist/{Modal.vue.es-8LN4gBh0.js → Modal.vue.es-DvLB3uCG.js} +1 -1
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-Ds93gNvh.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
  49. package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-B_Db4DG1.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
  55. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs} +4 -4
  56. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
  57. package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +16 -20
  58. package/dist/{PaymentIntegrationFormStripe-DUCJTIAq.js → PaymentIntegrationFormStripe-CoLmAzas.js} +3 -3
  59. package/dist/{PaymentIntegrationFormStripe-BIiMCWlV.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +5 -5
  60. package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +3 -3
  61. package/dist/{PaymentMethod.vue.es-CJcSZ9lN.js → PaymentMethod.vue.es-D0D9jW8s.js} +1 -1
  62. package/dist/{PaymentMethodForm-1d0YIGOu.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
  63. package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
  64. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +33 -35
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js} +1 -1
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
  69. package/dist/{PlanCustomizationEditor-CpZeilm5.mjs → PlanCustomizationEditor-DlVSCKGN.mjs} +234 -206
  70. package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-DZSJ5Mz0.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
  72. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs} +6 -6
  73. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js} +1 -1
  74. package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-Dt6LH9Yh.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
  76. package/dist/{Section.vue.es-zVXBHAL6.js → Section.vue.es-Bbt0RITt.js} +1 -1
  77. package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
  80. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
  81. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
  82. package/dist/{StepInput.vue.es-mAnuCuDQ.js → StepInput.vue.es-H-3R4jJq.js} +1 -1
  83. package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-o-3Lg4Ai.mjs} +4 -4
  84. package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-CGl6Z5ql.mjs} +22 -22
  85. package/dist/{SubscriptionDetails.entry.ce-D4CsSoR9.js → SubscriptionDetails.entry.ce-CQUO_uXH.js} +1 -1
  86. package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
  87. package/dist/{SubscriptionSchedules-Cm5Dt-1H.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +11 -11
  89. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js} +1 -1
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +2 -2
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +8 -9
  94. package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +1 -1
  95. package/dist/{TooltipParagraph.vue.es-Cph6zT31.js → TooltipParagraph.vue.es-DvC5Wjaz.js} +1 -1
  96. package/dist/{TrialChip.vue.es-C_wgHGuN.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
  97. package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
  98. package/dist/{cn.es-D9YMDvG2.js → cn.es-C9Yqq4tg.js} +1 -1
  99. package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
  100. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  101. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  102. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  103. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
  104. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  105. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  106. package/dist/components/Invoice/Invoice.cjs +1 -1
  107. package/dist/components/Invoice/Invoice.mjs +9 -9
  108. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  109. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +15 -16
  110. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  111. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  112. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  113. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  114. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  115. package/dist/components/PaymentHistory/PaymentHistory.mjs +14 -15
  116. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  117. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  118. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  119. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  120. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  121. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  122. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  123. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  124. package/dist/{customElements-D5DAoHRI.mjs → customElements-B58FcXIN.mjs} +5 -5
  125. package/dist/{customElements-C963-LtW.js → customElements-DUMRMFQ5.js} +2 -2
  126. package/dist/{customer-DKa1B2vp.mjs → customer-B3LPAhaD.mjs} +1 -1
  127. package/dist/{customer-TE1FnGT0.js → customer-CisTPaXj.js} +1 -1
  128. package/dist/{de-DE-CLfzTbbX.mjs → de-DE-DKp5LCu0.mjs} +15 -1
  129. package/dist/de-DE-DL74pMLb.js +1 -0
  130. package/dist/en-US-B2XFj-_p.js +1 -0
  131. package/dist/{en-US-D6SGRAch.mjs → en-US-DQ5vlv9Z.mjs} +15 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.mjs +2 -2
  134. package/dist/{invoices-DJTwftJv.mjs → invoices-3520M5AN.mjs} +1 -1
  135. package/dist/{invoices-ClqTWYF9.js → invoices-CKQBLar2.js} +1 -1
  136. package/dist/{it-IT-Cym1UvvK.mjs → it-IT-BgFVsO5S.mjs} +15 -1
  137. package/dist/it-IT-CqNK62qe.js +1 -0
  138. package/dist/nl-NL-Dx-TNXQ1.js +1 -0
  139. package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-UiRWbO9S.mjs} +15 -1
  140. package/dist/{paymentMethods-CWzJhcWK.mjs → paymentMethods-CWlvwK5V.mjs} +1 -1
  141. package/dist/{paymentMethods-AL2U_byg.js → paymentMethods-Cw-i95mM.js} +1 -1
  142. package/dist/{payments-aXyfylwk.mjs → payments-2qeQdpiW.mjs} +1 -1
  143. package/dist/{payments-BmiHMlQt.js → payments-CS7_YcOW.js} +1 -1
  144. package/dist/pricing-BIMpDI_p.mjs +29 -0
  145. package/dist/pricing-BOqG21f9.js +1 -0
  146. package/dist/{pricingPlanSchedules-BfsMSvN0.js → pricingPlanSchedules-B_sTAIgU.js} +1 -1
  147. package/dist/{pricingPlanSchedules-BD4GIP_F.mjs → pricingPlanSchedules-ChQCbMfe.mjs} +1 -1
  148. package/dist/screens/Checkout/Checkout.cjs +1 -1
  149. package/dist/screens/Checkout/Checkout.mjs +2 -2
  150. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  151. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  152. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  153. package/dist/screens/PayInvoice/PayInvoice.mjs +12 -12
  154. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  155. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  156. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  157. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  158. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  159. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
  160. package/dist/{subscriptions-cnR5fnf7.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
  161. package/dist/{subscriptions-Cm83ckfl.js → subscriptions-DwVsf4Ev.js} +1 -1
  162. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  163. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  164. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  165. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  166. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +1 -1
  167. package/dist/{useActionDispatchProvider-DDYqIh3r.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
  168. package/dist/{useActionDispatchProvider-CHkVQMaE.js → useActionDispatchProvider-DFhppdve.js} +1 -1
  169. package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
  170. package/dist/{useCustomer-DGYtowRy.js → useCustomer-BwZKd9i5.js} +1 -1
  171. package/dist/{useCustomerFormLabels-CcnkJLcB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +5 -5
  172. package/dist/{useCustomerFormLabels-DAZziqYt.js → useCustomerFormLabels-DV9QiMYh.js} +1 -1
  173. package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
  174. package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
  175. package/dist/{useInvoiceData-BEK-7msA.mjs → useInvoiceData-BocKdeg7.mjs} +2 -2
  176. package/dist/{useInvoiceData-CQRn8l9C.js → useInvoiceData-CNV_FMV8.js} +1 -1
  177. package/dist/{useInvoicesList-C4I118KM.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
  178. package/dist/{useInvoicesList-BQkKyyXa.js → useInvoicesList-S0IbQcrD.js} +1 -1
  179. package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
  180. package/dist/{useLoadInitialData-CrKnBZs_.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
  181. package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
  182. package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +13 -14
  183. package/dist/{usePaymentMethodOptions-Ciifjo6c.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +1 -1
  184. package/dist/{usePaymentMethodOptions-Cqe92ZBn.js → usePaymentMethodOptions-CuzOoi2k.js} +1 -1
  185. package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
  186. package/dist/{usePaymentMethods-BKwrl82-.js → usePaymentMethods-DDaTZQZp.js} +1 -1
  187. package/dist/{usePayments-CV85OV8V.mjs → usePayments-Cr6NlGaW.mjs} +6 -6
  188. package/dist/{usePayments-Bauj16B-.js → usePayments-DDSjo0rH.js} +1 -1
  189. package/dist/{usePortal-DSLImEfr.js → usePortal-C27omjhz.js} +1 -1
  190. package/dist/{usePortal-H8Tv2TnZ.mjs → usePortal-C5AsegpS.mjs} +1 -1
  191. package/dist/{useSubscription-DqnxWNKg.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
  192. package/dist/{useSubscription-BiYNJT2e.js → useSubscription-D787IXY-.js} +1 -1
  193. package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
  194. package/dist/{useTimePeriod.es-D2aiyfd-.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
  195. package/package.json +10 -7
  196. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
  197. package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
  198. package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
  199. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
  200. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
  201. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
  202. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
  203. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
  204. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
  205. package/dist/adyen-CvsH5fok.mjs +0 -117
  206. package/dist/adyen-Druit6gz.js +0 -1
  207. package/dist/de-DE-DaBBl-Ak.js +0 -1
  208. package/dist/en-US-BNevqm0M.js +0 -1
  209. package/dist/it-IT-BkPbTueL.js +0 -1
  210. package/dist/nl-NL-jIfAVGv0.js +0 -1
  211. package/dist/pricing-BVAld27Y.js +0 -1
  212. package/dist/pricing-DLOeiAIB.mjs +0 -16
  213. package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
  214. package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
  215. package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
@@ -1,13 +1,13 @@
1
- import { defineComponent as F, ref as d, computed as s, openBlock as i, createBlock as m, unref as r, withCtx as f, createElementVNode as $, normalizeClass as V, createVNode as Z, mergeProps as w, createTextVNode as _, toDisplayString as b, createCommentVNode as K } from "vue";
1
+ import { defineComponent as F, ref as d, computed as s, openBlock as i, createBlock as r, unref as m, withCtx as f, createElementVNode as $, normalizeClass as V, createVNode as Z, mergeProps as w, createTextVNode as _, toDisplayString as b, createCommentVNode as K } from "vue";
2
2
  import { g as D, a as j } from "./customer.es-B5ppZf0j.mjs";
3
- import { _ as g } from "./Button.vue.es-C32_baQN.mjs";
4
- import { _ as H } from "./Section.vue.es-D7eiXUbk.mjs";
5
- import { a as q } from "./customElements-D5DAoHRI.mjs";
6
- import { _ as z } from "./Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs";
7
- import { _ as Y } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs";
8
- import { u as G, _ as J } from "./usePaymentMethodAvailability-ZH-m3B-A.mjs";
3
+ import { _ as g } from "./Button.vue.es-Cmjfm4jw.mjs";
4
+ import { _ as H } from "./Section.vue.es-DVEpre9O.mjs";
5
+ import { a as q } from "./customElements-B58FcXIN.mjs";
6
+ import { _ as z } from "./Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs";
7
+ import { _ as Y } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs";
8
+ import { u as G, _ as J } from "./usePaymentMethodAvailability-DAcsKGeh.mjs";
9
9
  import { s as Q } from "./url-TNRgVI8A.mjs";
10
- const C = "NL", me = /* @__PURE__ */ F({
10
+ const C = "NL", re = /* @__PURE__ */ F({
11
11
  __name: "PaymentMethodForm",
12
12
  props: {
13
13
  customer: { type: Object },
@@ -55,19 +55,19 @@ const C = "NL", me = /* @__PURE__ */ F({
55
55
  const k = (e) => (e == null ? void 0 : e.variant) === "AUTHORIZE" ? e : {
56
56
  ...e,
57
57
  variant: "TOKENIZE"
58
- }, o = s(
58
+ }, n = s(
59
59
  () => k(t.configuration)
60
60
  ), R = s(
61
- () => c.value && !t.hideSubmitButton && !!o.value.successRedirectUrl
61
+ () => c.value && !t.hideSubmitButton && !!n.value.successRedirectUrl
62
62
  ), T = s(
63
- () => o.value.successRedirectLabel ?? p({
63
+ () => n.value.successRedirectLabel ?? p({
64
64
  defaultMessage: "Continue",
65
65
  description: "Label of the button that leaves the form once the payment method is stored",
66
66
  id: "components.payment_method_form.continue_button.label"
67
67
  })
68
68
  );
69
69
  function U() {
70
- const { successRedirectUrl: e } = o.value;
70
+ const { successRedirectUrl: e } = n.value;
71
71
  e && Q(e);
72
72
  }
73
73
  const x = s(() => {
@@ -75,49 +75,48 @@ const C = "NL", me = /* @__PURE__ */ F({
75
75
  if (t.countryCode)
76
76
  return e = t.countryCode, e;
77
77
  if (t.customer) {
78
- const n = D(t.customer);
79
- if (n)
80
- return e = n, e;
78
+ const o = D(t.customer);
79
+ if (o)
80
+ return e = o, e;
81
81
  }
82
82
  return C;
83
83
  }), B = s(() => {
84
- const e = o.value.variant, n = j(t.customer), u = {
85
- amount: o.value.amount ?? L,
84
+ const e = n.value.variant, o = j(t.customer), u = {
85
+ amount: n.value.amount ?? L,
86
86
  paymentMethodOptions: t.paymentMethodOptions,
87
87
  countryCode: x.value,
88
88
  ...t.customer.email ? { email: t.customer.email } : {},
89
- ...n ? { name: n } : {},
90
- validateOnSubmit: o.value.validateOnSubmit,
91
- forceStorePaymentMethod: o.value.forceStorePaymentMethod,
92
- selectedOption: o.value.selectedOption,
93
- invoiceId: o.value.invoiceId
89
+ ...o ? { name: o } : {},
90
+ validateOnSubmit: n.value.validateOnSubmit,
91
+ forceStorePaymentMethod: n.value.forceStorePaymentMethod,
92
+ selectedOption: n.value.selectedOption,
93
+ invoiceId: n.value.invoiceId
94
94
  };
95
95
  return e === "AUTHORIZE" ? {
96
96
  ...u,
97
97
  variant: e,
98
- context: o.value.context
98
+ context: n.value.context
99
99
  } : {
100
100
  ...u,
101
101
  variant: "TOKENIZE",
102
102
  customerId: t.customer.id
103
103
  };
104
104
  });
105
- return (e, n) => l.isLoading ? (i(), m(z, {
105
+ return (e, o) => l.isLoading ? (i(), r(z, {
106
106
  key: 0,
107
107
  variant: "section",
108
- class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]",
109
- "data-testid": "payment-method-form-skeleton"
110
- })) : r(S) === "UNAVAILABLE" ? (i(), m(J, {
108
+ class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"
109
+ })) : m(S) === "UNAVAILABLE" ? (i(), r(J, {
111
110
  key: 1,
112
111
  class: "sv-payment-method-form sv-root sv-component",
113
- variant: o.value.variant ?? "TOKENIZE"
114
- }, null, 8, ["variant"])) : (i(), m(r(H), {
112
+ variant: n.value.variant ?? "TOKENIZE"
113
+ }, null, 8, ["variant"])) : (i(), r(m(H), {
115
114
  key: 2,
116
115
  class: "sv-payment-method-form sv-root sv-component",
117
116
  "no-border": "",
118
117
  "no-spacing": "",
119
118
  "content-background": "none",
120
- title: l.title ?? r(p)({
119
+ title: l.title ?? m(p)({
121
120
  defaultMessage: "Available payment methods",
122
121
  description: "Title of the available payment methods form",
123
122
  id: "components.payment_method_form.section_title"
@@ -132,24 +131,23 @@ const C = "NL", me = /* @__PURE__ */ F({
132
131
  ref: y,
133
132
  class: "sv-payment-method-form__integration"
134
133
  }, B.value, {
135
- onSelect: n[0] || (n[0] = (u) => M.value = u),
134
+ onSelect: o[0] || (o[0] = (u) => M.value = u),
136
135
  onPaymentSuccess: A,
137
136
  onPaymentFailed: E,
138
137
  onInvalid: N
139
138
  }), null, 16)
140
139
  ], 2),
141
- R.value ? (i(), m(r(g), {
140
+ R.value ? (i(), r(m(g), {
142
141
  key: 0,
143
142
  intent: "primary",
144
143
  class: "mt-4 w-full",
145
- "data-testid": "payment-method-form-continue",
146
144
  onClick: U
147
145
  }, {
148
146
  default: f(() => [
149
147
  _(b(T.value), 1)
150
148
  ]),
151
149
  _: 1
152
- })) : !l.hideSubmitButton && !c.value ? (i(), m(r(g), {
150
+ })) : !l.hideSubmitButton && !c.value ? (i(), r(m(g), {
153
151
  key: 1,
154
152
  intent: "primary",
155
153
  class: "mt-4 w-full",
@@ -167,5 +165,5 @@ const C = "NL", me = /* @__PURE__ */ F({
167
165
  }
168
166
  });
169
167
  export {
170
- me as _
168
+ re as _
171
169
  };
@@ -1 +1 @@
1
- const e=require("vue"),p=require("./customer.es-BButyYo0.js"),v=require("./Button.vue.es-qGvnOKnK.js"),N=require("./Section.vue.es-zVXBHAL6.js"),x=require("./customElements-C963-LtW.js"),T=require("./Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js"),q=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js"),y=require("./usePaymentMethodAvailability-Ci6LeYKt.js"),R=require("./url-vloPOiXd.js"),f="NL",U=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String},title:{type:String},hideSubmitButton:{type:Boolean}},emits:["success","failure"],setup(i,{expose:_,emit:h}){const b={currency:"EUR",quantity:"0"},n=i,l=h,{$t:u}=x.useIntl(),{availability:g}=y.usePaymentMethodAvailability({paymentMethodOptions:()=>n.paymentMethodOptions,isLoading:()=>n.isLoading,context:()=>{var t;return{invoiceId:(t=n.configuration)==null?void 0:t.invoiceId}}}),m=e.ref(),C=e.ref(),s=e.ref(!1),r=e.ref(!1);function d(){var t;s.value=!0,(t=m.value)==null||t.submit()}const k=e.computed(()=>u({defaultMessage:"Save payment method",description:"Label of the button that stores the entered payment method",id:"components.payment_method_form.submit_button.label"}));_({submit:d,isPaymentPending:s,isCompleted:r});function O(){s.value=!1,r.value=!0,l("success")}function B(t){s.value=!1,l("failure",t)}function I(){s.value=!1}const S=t=>(t==null?void 0:t.variant)==="AUTHORIZE"?t:{...t,variant:"TOKENIZE"},o=e.computed(()=>S(n.configuration)),P=e.computed(()=>r.value&&!n.hideSubmitButton&&!!o.value.successRedirectUrl),L=e.computed(()=>o.value.successRedirectLabel??u({defaultMessage:"Continue",description:"Label of the button that leaves the form once the payment method is stored",id:"components.payment_method_form.continue_button.label"}));function M(){const{successRedirectUrl:t}=o.value;t&&R.safeUrlRedirect(t)}const A=e.computed(()=>{let t=f;if(n.countryCode)return t=n.countryCode,t;if(n.customer){const a=p.getCustomerCountry(n.customer);if(a)return t=a,t}return f}),E=e.computed(()=>{const t=o.value.variant,a=p.getCustomerName(n.customer),c={amount:o.value.amount??b,paymentMethodOptions:n.paymentMethodOptions,countryCode:A.value,...n.customer.email?{email:n.customer.email}:{},...a?{name:a}:{},validateOnSubmit:o.value.validateOnSubmit,forceStorePaymentMethod:o.value.forceStorePaymentMethod,selectedOption:o.value.selectedOption,invoiceId:o.value.invoiceId};return t==="AUTHORIZE"?{...c,variant:t,context:o.value.context}:{...c,variant:"TOKENIZE",customerId:n.customer.id}});return(t,a)=>i.isLoading?(e.openBlock(),e.createBlock(T._sfc_main,{key:0,variant:"section",class:"sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]","data-testid":"payment-method-form-skeleton"})):e.unref(g)==="UNAVAILABLE"?(e.openBlock(),e.createBlock(y._sfc_main,{key:1,class:"sv-payment-method-form sv-root sv-component",variant:o.value.variant??"TOKENIZE"},null,8,["variant"])):(e.openBlock(),e.createBlock(e.unref(N._sfc_main),{key:2,class:"sv-payment-method-form sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:i.title??e.unref(u)({defaultMessage:"Available payment methods",description:"Title of the available payment methods form",id:"components.payment_method_form.section_title"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":s.value})},[e.createVNode(q._sfc_main,e.mergeProps({ref_key:"paymentIntegrationFormRef",ref:m,class:"sv-payment-method-form__integration"},E.value,{onSelect:a[0]||(a[0]=c=>C.value=c),onPaymentSuccess:O,onPaymentFailed:B,onInvalid:I}),null,16)],2),P.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"primary",class:"mt-4 w-full","data-testid":"payment-method-form-continue",onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.value),1)]),_:1})):!i.hideSubmitButton&&!r.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"primary",class:"mt-4 w-full",loading:s.value,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.value),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=U;
1
+ const e=require("vue"),p=require("./customer.es-BButyYo0.js"),v=require("./Button.vue.es-BzkuglKw.js"),N=require("./Section.vue.es-Bbt0RITt.js"),x=require("./customElements-DUMRMFQ5.js"),T=require("./Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js"),q=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js"),y=require("./usePaymentMethodAvailability-BO_guwAw.js"),R=require("./url-vloPOiXd.js"),f="NL",U=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String},title:{type:String},hideSubmitButton:{type:Boolean}},emits:["success","failure"],setup(i,{expose:_,emit:h}){const b={currency:"EUR",quantity:"0"},n=i,l=h,{$t:u}=x.useIntl(),{availability:g}=y.usePaymentMethodAvailability({paymentMethodOptions:()=>n.paymentMethodOptions,isLoading:()=>n.isLoading,context:()=>{var t;return{invoiceId:(t=n.configuration)==null?void 0:t.invoiceId}}}),m=e.ref(),C=e.ref(),s=e.ref(!1),r=e.ref(!1);function d(){var t;s.value=!0,(t=m.value)==null||t.submit()}const k=e.computed(()=>u({defaultMessage:"Save payment method",description:"Label of the button that stores the entered payment method",id:"components.payment_method_form.submit_button.label"}));_({submit:d,isPaymentPending:s,isCompleted:r});function O(){s.value=!1,r.value=!0,l("success")}function B(t){s.value=!1,l("failure",t)}function I(){s.value=!1}const S=t=>(t==null?void 0:t.variant)==="AUTHORIZE"?t:{...t,variant:"TOKENIZE"},o=e.computed(()=>S(n.configuration)),P=e.computed(()=>r.value&&!n.hideSubmitButton&&!!o.value.successRedirectUrl),L=e.computed(()=>o.value.successRedirectLabel??u({defaultMessage:"Continue",description:"Label of the button that leaves the form once the payment method is stored",id:"components.payment_method_form.continue_button.label"}));function M(){const{successRedirectUrl:t}=o.value;t&&R.safeUrlRedirect(t)}const A=e.computed(()=>{let t=f;if(n.countryCode)return t=n.countryCode,t;if(n.customer){const a=p.getCustomerCountry(n.customer);if(a)return t=a,t}return f}),E=e.computed(()=>{const t=o.value.variant,a=p.getCustomerName(n.customer),c={amount:o.value.amount??b,paymentMethodOptions:n.paymentMethodOptions,countryCode:A.value,...n.customer.email?{email:n.customer.email}:{},...a?{name:a}:{},validateOnSubmit:o.value.validateOnSubmit,forceStorePaymentMethod:o.value.forceStorePaymentMethod,selectedOption:o.value.selectedOption,invoiceId:o.value.invoiceId};return t==="AUTHORIZE"?{...c,variant:t,context:o.value.context}:{...c,variant:"TOKENIZE",customerId:n.customer.id}});return(t,a)=>i.isLoading?(e.openBlock(),e.createBlock(T._sfc_main,{key:0,variant:"section",class:"sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"})):e.unref(g)==="UNAVAILABLE"?(e.openBlock(),e.createBlock(y._sfc_main,{key:1,class:"sv-payment-method-form sv-root sv-component",variant:o.value.variant??"TOKENIZE"},null,8,["variant"])):(e.openBlock(),e.createBlock(e.unref(N._sfc_main),{key:2,class:"sv-payment-method-form sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:i.title??e.unref(u)({defaultMessage:"Available payment methods",description:"Title of the available payment methods form",id:"components.payment_method_form.section_title"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":s.value})},[e.createVNode(q._sfc_main,e.mergeProps({ref_key:"paymentIntegrationFormRef",ref:m,class:"sv-payment-method-form__integration"},E.value,{onSelect:a[0]||(a[0]=c=>C.value=c),onPaymentSuccess:O,onPaymentFailed:B,onInvalid:I}),null,16)],2),P.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"primary",class:"mt-4 w-full",onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.value),1)]),_:1})):!i.hideSubmitButton&&!r.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"primary",class:"mt-4 w-full",loading:s.value,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.value),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=U;
@@ -1 +1 @@
1
- const e=require("vue"),u=require("./PaymentMethod.vue.es-CJcSZ9lN.js"),g=require("./ErrorNotification.vue.es-BX9dHEc-.js"),f=require("./Section.vue.es-zVXBHAL6.js"),c=require("./customElements-C963-LtW.js"),x=require("./Modal.vue.es-8LN4gBh0.js"),_=require("./useService-H7BjLg8P.js"),C=require("./paymentMethods-AL2U_byg.js");function M({onSetDefault:s,onDeleteRequest:l}){const{$t:o}=c.useIntl();return{getContextMenuItems:t=>{const i=[];return t.is_default||i.push({label:o({defaultMessage:"Set as default",id:"payment_method.context_menu.set_as_default.label",description:"Context menu option for setting the default payment method"}),onClick:()=>s(t)}),i.push({label:o({defaultMessage:"Delete",id:"payment_method.context_menu.delete.label",description:"Context menu option for deleting the payment method"}),onClick:()=>l(t)}),i}}}function k(){const{archivePaymentMethod:s,setDefaultPaymentMethod:l}=C.createPaymentMethodsService(),o=_.useService({service:t=>s({paymentMethodId:t})}),n=_.useService({service:t=>l({paymentMethodId:t})});return{archive:o.execute,archiveError:o.error,isArchiving:o.isPending,setDefault:n.execute,setDefaultError:n.error,isSettingDefault:n.isPending}}const b={key:0,class:"sv-payment-methods__list grid grid-cols-1 gap-4"},D={class:"sv-payment-methods__delete-modal-body flex flex-col gap-3"},w={class:"px-3 py-2"},q=e.defineComponent({__name:"PaymentMethodsList",props:{paymentMethods:{type:Array}},emits:["delete","set-default"],setup(s,{emit:l}){const o=l,{$t:n}=c.useIntl(),t=e.ref(null),{archive:i,archiveError:m,isArchiving:r,setDefault:h}=k(),{getContextMenuItems:p}=M({onDeleteRequest:a=>{t.value=a},onSetDefault:async a=>{await h(a.id),o("set-default",a)}});function y(){t.value=null,m.value=null}async function v(){const a=t.value;if(!(!a||r.value)){try{await i(a.id)}catch{return}o("delete",a),t.value=null}}return(a,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.paymentMethods.length>0?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentMethods,d=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:d.id,class:"sv-payment-methods__item"},{default:e.withCtx(()=>[e.createVNode(e.unref(u._sfc_main),{class:"sv-payment-methods__item-content","payment-method":d,options:e.unref(p)(d)},null,8,["payment-method","options"])]),_:2},1024))),128))])):e.createCommentVNode("",!0),e.createVNode(e.unref(x.Modal),{size:"md","show-modal":!!t.value,"is-loading":e.unref(r),"no-click-away":e.unref(r),"no-backdrop-close":e.unref(r),title:e.unref(n)({id:"payment_methods_list.delete_modal.title",defaultMessage:"Delete payment method",description:"Title of the delete payment method confirmation modal"}),"confirm-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.confirm",defaultMessage:"Delete",description:"Confirm button in the delete payment method modal"}),"cancel-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.cancel",defaultMessage:"Cancel",description:"Cancel button in the delete payment method modal"}),onConfirm:v,onClose:y},e.createSlots({_:2},[t.value?{name:"body",fn:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(e.unref(c._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-methods__delete-modal-explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"payment_methods_list.delete_modal.body",defaultMessage:"Are you sure you want to delete this payment method?",description:"Confirmation message in the delete payment method modal"})),1)]),_:1}),e.createVNode(e.unref(f._sfc_main),{"no-spacing":"",class:"sv-payment-methods__delete-modal-payment-method"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(u._sfc_main),{"payment-method":t.value},null,8,["payment-method"])])]),_:1}),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,class:"sv-payment-methods__delete-modal-error sv-error",title:e.unref(n)({id:"payment_methods_list.delete_modal.error",defaultMessage:"We could not delete this payment method. Please try again.",description:"Error shown when deleting a payment method fails"})},null,8,["title"])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["show-modal","is-loading","no-click-away","no-backdrop-close","title","confirm-button-text","cancel-button-text"])],64))}});exports._sfc_main=q;
1
+ const e=require("vue"),u=require("./PaymentMethod.vue.es-D0D9jW8s.js"),g=require("./ErrorNotification.vue.es-tS9vySUZ.js"),f=require("./Section.vue.es-Bbt0RITt.js"),c=require("./customElements-DUMRMFQ5.js"),x=require("./Modal.vue.es-DvLB3uCG.js"),_=require("./useService-H7BjLg8P.js"),C=require("./paymentMethods-Cw-i95mM.js");function M({onSetDefault:s,onDeleteRequest:l}){const{$t:o}=c.useIntl();return{getContextMenuItems:t=>{const i=[];return t.is_default||i.push({label:o({defaultMessage:"Set as default",id:"payment_method.context_menu.set_as_default.label",description:"Context menu option for setting the default payment method"}),onClick:()=>s(t)}),i.push({label:o({defaultMessage:"Delete",id:"payment_method.context_menu.delete.label",description:"Context menu option for deleting the payment method"}),onClick:()=>l(t)}),i}}}function k(){const{archivePaymentMethod:s,setDefaultPaymentMethod:l}=C.createPaymentMethodsService(),o=_.useService({service:t=>s({paymentMethodId:t})}),n=_.useService({service:t=>l({paymentMethodId:t})});return{archive:o.execute,archiveError:o.error,isArchiving:o.isPending,setDefault:n.execute,setDefaultError:n.error,isSettingDefault:n.isPending}}const b={key:0,class:"sv-payment-methods__list grid grid-cols-1 gap-4"},D={class:"sv-payment-methods__delete-modal-body flex flex-col gap-3"},w={class:"px-3 py-2"},q=e.defineComponent({__name:"PaymentMethodsList",props:{paymentMethods:{type:Array}},emits:["delete","set-default"],setup(s,{emit:l}){const o=l,{$t:n}=c.useIntl(),t=e.ref(null),{archive:i,archiveError:m,isArchiving:r,setDefault:h}=k(),{getContextMenuItems:p}=M({onDeleteRequest:a=>{t.value=a},onSetDefault:async a=>{await h(a.id),o("set-default",a)}});function y(){t.value=null,m.value=null}async function v(){const a=t.value;if(!(!a||r.value)){try{await i(a.id)}catch{return}o("delete",a),t.value=null}}return(a,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.paymentMethods.length>0?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentMethods,d=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:d.id,class:"sv-payment-methods__item"},{default:e.withCtx(()=>[e.createVNode(e.unref(u._sfc_main),{class:"sv-payment-methods__item-content","payment-method":d,options:e.unref(p)(d)},null,8,["payment-method","options"])]),_:2},1024))),128))])):e.createCommentVNode("",!0),e.createVNode(e.unref(x.Modal),{size:"md","show-modal":!!t.value,"is-loading":e.unref(r),"no-click-away":e.unref(r),"no-backdrop-close":e.unref(r),title:e.unref(n)({id:"payment_methods_list.delete_modal.title",defaultMessage:"Delete payment method",description:"Title of the delete payment method confirmation modal"}),"confirm-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.confirm",defaultMessage:"Delete",description:"Confirm button in the delete payment method modal"}),"cancel-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.cancel",defaultMessage:"Cancel",description:"Cancel button in the delete payment method modal"}),onConfirm:v,onClose:y},e.createSlots({_:2},[t.value?{name:"body",fn:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(e.unref(c._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-methods__delete-modal-explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"payment_methods_list.delete_modal.body",defaultMessage:"Are you sure you want to delete this payment method?",description:"Confirmation message in the delete payment method modal"})),1)]),_:1}),e.createVNode(e.unref(f._sfc_main),{"no-spacing":"",class:"sv-payment-methods__delete-modal-payment-method"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(u._sfc_main),{"payment-method":t.value},null,8,["payment-method"])])]),_:1}),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,class:"sv-payment-methods__delete-modal-error sv-error",title:e.unref(n)({id:"payment_methods_list.delete_modal.error",defaultMessage:"We could not delete this payment method. Please try again.",description:"Error shown when deleting a payment method fails"})},null,8,["title"])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["show-modal","is-loading","no-click-away","no-backdrop-close","title","confirm-button-text","cancel-button-text"])],64))}});exports._sfc_main=q;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as P, ref as S, openBlock as d, createElementBlock as h, Fragment as _, renderList as E, createBlock as f, unref as e, withCtx as c, createVNode as m, createCommentVNode as y, createSlots as $, createElementVNode as v, createTextVNode as A, toDisplayString as I } from "vue";
2
- import { _ as g } from "./PaymentMethod.vue.es-CKu5nApX.mjs";
3
- import { _ as N } from "./ErrorNotification.vue.es-rRKgmkzV.mjs";
4
- import { _ as x } from "./Section.vue.es-D7eiXUbk.mjs";
5
- import { a as C, _ as V } from "./customElements-D5DAoHRI.mjs";
6
- import { M as q } from "./Modal.vue.es-B9xMiyn3.mjs";
2
+ import { _ as g } from "./PaymentMethod.vue.es-4YRmQZHX.mjs";
3
+ import { _ as N } from "./ErrorNotification.vue.es-h-D37rfG.mjs";
4
+ import { _ as x } from "./Section.vue.es-DVEpre9O.mjs";
5
+ import { a as C, _ as V } from "./customElements-B58FcXIN.mjs";
6
+ import { M as q } from "./Modal.vue.es-BeI5C9-9.mjs";
7
7
  import { u as M } from "./useService-Bh47bllz.mjs";
8
- import { c as B } from "./paymentMethods-CWzJhcWK.mjs";
8
+ import { c as B } from "./paymentMethods-CWlvwK5V.mjs";
9
9
  function R({
10
10
  onSetDefault: s,
11
11
  onDeleteRequest: l
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./Section.vue.es-Bbt0RITt.js"),p=require("./customElements-DUMRMFQ5.js"),B=require("./useTimePeriod.es-rzxqUCTu.js"),V=require("./formatting.es-C72Nsrmh.js"),T=require("./Expand.vue.es-BtM0EZEr.js"),v=require("./Button.vue.es-BzkuglKw.js"),N=require("./StepInput.vue.es-H-3R4jJq.js"),b=require("./Checkout.entry.ce-HlUrJ1kh.js"),_=require("./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js"),E=require("./formControl-ODrpUvcA.js"),x=require("./pricing-BOqG21f9.js"),M=require("./pricingPlanSchedule-BM8vsKkV.js"),S=require("./subscription-ZA62t4E9.js"),w={class:"grid grid-cols-2 gap-2"},P=e.defineComponent({__name:"TieredTableRow",props:{band:{type:Object},previousBand:{type:Object},isFirst:{type:Boolean},period:{type:Object}},setup(t){const a=t,{$t:n}=p.useIntl(),{formatTimePeriod:i}=B.useTimePeriod(),l=e.computed(()=>{var u;if(a.isFirst)return"0";if((u=a.previousBand)!=null&&u.tier_top_bound&&"number"in a.previousBand.tier_top_bound)return a.previousBand.tier_top_bound.number}),d=e.computed(()=>{if(!(!a.band.tier_top_bound||!("number"in a.band.tier_top_bound)))return a.band.tier_top_bound.number});return(u,o)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.unref(p._sfc_main),{variant:"body-xs",color:"subtle",tag:"div"},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"{lower_bound} - {upper_bound} seats",id:"seats.tiered_range_label",description:"The label showing the seat count range for a tiered pricing tier"},{lower_bound:l.value??"0",upper_bound:d.value})),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"> {lower_bound} seats",id:"seats.tiered_unbounded_range_label",description:"The label showing the unbounded seat count range (greater than) for a tiered pricing tier"},{lower_bound:l.value??"0"})),1)],64))]),_:1}),e.createVNode(e.unref(p._sfc_main),{variant:"body-xs",color:"subtle",tag:"div",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.band.amount&&e.unref(n)({defaultMessage:"{amount} per seat/{period}",id:"seats.tiered_price_per_seat_period",description:"The price per seat and billing period label for a tiered pricing tier"},{amount:e.unref(V.formatAmount)(t.band.amount),period:t.period?e.unref(i)(t.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})]))}}),A={class:"grid grid-cols-1 gap-0.5 pt-1.5"},D=e.defineComponent({__name:"TieredTable",props:{bands:{type:Array},period:{type:Object}},setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.bands,(i,l)=>(e.openBlock(),e.createBlock(P,{key:l,band:i,"is-first":l===0,"previous-band":l>0?t.bands[l-1]:void 0,period:t.period},null,8,["band","is-first","previous-band","period"]))),128))]))}});function C({pricings:t,pricingItemConfigId:a}){return e.computed(()=>{var l,d,u,o,m,r,c,s;const{config:n,productItem:i}=b.getPricingItemByPricingConfigId({pricings:t,pricingItemConfigId:a});return{billing:{period:(d=(l=n==null?void 0:n.billing_period_configs)==null?void 0:l[0])==null?void 0:d.billing_period,billedInAdvance:n==null?void 0:n.billing_in_advance},product:{name:i==null?void 0:i.name,description:i==null?void 0:i.description},pricing:{...((u=n==null?void 0:n.details)==null?void 0:u.pricing_type)==="FLAT"&&{amount:(r=(m=(o=n.details)==null?void 0:o.bands)==null?void 0:m[0])==null?void 0:r.amount},...((c=n==null?void 0:n.details)==null?void 0:c.pricing_type)==="TIERED"&&{tiered:{bands:(s=n.details)==null?void 0:s.bands}}}}})}const U={class:"flex flex-row-reverse gap-4 md:flex-row"},O={class:"w-24 shrink-0 justify-start md:w-32"},q=["tabindex"],z={key:0},F={key:0},$=e.defineComponent({__name:"SeatsEditorItem",props:e.mergeModels({modelValue:{type:Object},defaultValue:{type:Object},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),{formatTimePeriod:l}=B.useTimePeriod(),d=e.ref(!1),u=e.computed({get:()=>+(n.value.number||b.FALLBACK_SEATS_NUMBER),set(r){n.value={...n.value,number:r!==void 0?r.toString():void 0}}}),o=C({pricings:a.pricings,pricingItemConfigId:n.value.pricing_item_config_id}),m=e.computed(()=>{var r,c;return!!((c=(r=o.value.pricing)==null?void 0:r.tiered)!=null&&c.bands)});return(r,c)=>{var s,g,y;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",U,[e.createElementVNode("div",O,[e.createVNode(e.unref(N._sfc_main),{modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=k=>u.value=k),size:"sm",min:(s=t.defaultValue)!=null&&s.number?+t.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",{class:e.normalizeClass(["flex grow flex-col",{"hover:cursor-pointer":m.value}]),tabindex:m.value?0:void 0,onClick:c[1]||(c[1]=k=>m.value?d.value=!d.value:void 0)},[e.createVNode(e.unref(p._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o).product.name||e.unref(i)({defaultMessage:"Seats",id:"seats.label",description:"The label for the seats input field"})),1)]),_:1}),e.unref(o).pricing.amount?(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"{amount} per seat/{period}",id:"seats.price_per_seat_period",description:"The price per seat and billing period label for seat-based pricing"},{amount:e.unref(V.formatAmount)(e.unref(o).pricing.amount),period:e.unref(o).billing.period?e.unref(l)(e.unref(o).billing.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})):e.unref(o).pricing.tiered?(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:1,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Tiered pricing",id:"seats.tiered_pricing_label",description:"The label indicating tiered pricing structure for seats"}))+" ",1),e.createVNode(e.unref(v._sfc_main$1),{icon:"keyboard_arrow_down",size:"xs",class:e.normalizeClass(["absolute text-gray-400 transition ease-in-out",{"rotate-0":!d.value,"rotate-180":d.value}])},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)],10,q)]),(y=(g=e.unref(o).pricing)==null?void 0:g.tiered)!=null&&y.bands?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(T._sfc_main),{"is-open":d.value},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(D,{bands:e.unref(o).pricing.tiered.bands,period:e.unref(o).billing.period},null,8,["bands","period"])])):e.createCommentVNode("",!0)]),_:1},8,["is-open"])])):e.createCommentVNode("",!0)])}}}),I={key:0,class:"grid grid-cols-1 gap-1"},L=e.defineComponent({__name:"SeatsEditor",props:e.mergeModels({modelValue:{type:Array},initialSeatsValues:{type:Array},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=e.useModel(t,"modelValue"),n=i=>e.computed({get:()=>a.value[i],set:l=>{const d=a.value.slice();d[i]=l,a.value=d}});return(i,l)=>t.modelValue.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(d,u)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:u},{default:e.withCtx(()=>{var o;return[d.pricing_item_config_id?(e.openBlock(),e.createBlock($,{key:d.pricing_item_config_id,modelValue:n(u).value,"onUpdate:modelValue":m=>n(u).value=m,"default-value":(o=t.initialSeatsValues)==null?void 0:o[u],pricings:t.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])):e.createCommentVNode("",!0)}}),j={class:"flex flex-row-reverse gap-4 md:flex-row"},R={class:"w-24 shrink-0 justify-start md:w-32"},Y={class:"flex grow flex-col"},K=e.defineComponent({__name:"UnitsEditorItem",props:e.mergeModels({modelValue:{type:Object},defaultValue:{type:Object},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),l=e.computed({get:()=>+(n.value.number||b.FALLBACK_UNITS_NUMBER),set(u){n.value={...n.value,number:u!==void 0?u.toString():void 0}}}),d=C({pricings:a.pricings,pricingItemConfigId:n.value.pricing_item_config_id});return(u,o)=>{var m;return e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",R,[e.createVNode(e.unref(N._sfc_main),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=r=>l.value=r),size:"sm",min:(m=t.defaultValue)!=null&&m.number?+t.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",Y,[e.createVNode(e.unref(p._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d).product.name||e.unref(i)({defaultMessage:"Units",id:"units.label",description:"The label for the one-off flat item units input field"})),1)]),_:1}),e.unref(d).pricing.amount?(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"{amount} per unit, one-time",id:"units.price_per_unit_one_time",description:"The price per unit label for a one-off flat item, which is charged once rather than every period"},{amount:e.unref(V.formatAmount)(e.unref(d).pricing.amount)})),1)]),_:1})):e.createCommentVNode("",!0)])])}}}),X={class:"grid grid-cols-1 gap-1 p-1"},H={class:"grid grid-cols-1 gap-1"},J=e.defineComponent({__name:"UnitsEditor",props:e.mergeModels({modelValue:{type:Array},initialUnitsValues:{type:Array},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{$t:a}=p.useIntl(),n=e.useModel(t,"modelValue"),i=l=>e.computed({get:()=>n.value[l],set:d=>{const u=n.value.slice();u[l]=d,n.value=u}});return(l,d)=>t.modelValue.length>0?(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:0,"no-spacing":"","content-background":"gray"},{default:e.withCtx(()=>[e.createElementVNode("div",X,[e.createVNode(_._sfc_main$1,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"One-time items",id:"units_editor.title",description:"The heading above the one-off items in the plan customization form"})),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Charged once",id:"units_editor.description",description:"The description of the one-off items in the plan customization form"})),1)]),_:1}),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(u,o)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:o,"content-background":"none"},{default:e.withCtx(()=>{var m;return[u.pricing_item_config_id?(e.openBlock(),e.createBlock(K,{key:u.pricing_item_config_id,modelValue:i(o).value,"onUpdate:modelValue":r=>i(o).value=r,"default-value":(m=t.initialUnitsValues)==null?void 0:m[o],pricings:t.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])])]),_:1})):e.createCommentVNode("",!0)}}),Q={class:"p-1"},W={class:"grid grid-cols-1 gap-1 pt-1"},Z=e.defineComponent({__name:"AddonSingleEditor",props:e.mergeModels({constraint:{type:String},modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),{describePricing:l}=_.usePricingDescription({currency:e.toRef(a,"currency"),billingPeriod:e.toRef(a,"billingPeriod")}),d=a.pricings.map(r=>r.id),u=e.computed(()=>a.constraint==="AT_MOST_ONE"?i({defaultMessage:"Select up to one product",id:"addon_single_editor.description.at_most_one",description:"The description of the addon single editor for at most one product"}):a.constraint==="EXACTLY_ONE"?i({defaultMessage:"Select one product",id:"addon_single_editor.description.exactly_one",description:"The description of the addon single editor for exactly one product"}):a.constraint==="AT_LEAST_ONE"?i({defaultMessage:"Select at least one product",id:"addon_single_editor.description.at_least_one",description:"The description of the addon single editor for at least one product"}):""),o=r=>a.modelValue.includes(r),m=r=>{if(o(r))n.value=n.value.filter(c=>c!==r);else{const c=n.value.filter(s=>!d.includes(s));n.value=[...c,r]}};return(r,c)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{"no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",Q,[e.createVNode(_._sfc_main$1,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1}),e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricings,s=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:s.id,"content-background":"none",class:e.normalizeClass({"!bg-white":o(s.id)})},{default:e.withCtx(()=>[e.createVNode(b._sfc_main,{name:e.unref(x.getNameFromPricing)(s)??"",description:e.unref(l)(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(E._sfc_main),{"model-value":o(s.id),"onUpdate:modelValue":g=>m(s.id)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["name","description"])]),_:2},1032,["class"]))),128))])])]),_:1}))}}),G={class:"grid grid-cols-1 gap-1"},h=e.defineComponent({__name:"AddonMultipleEditor",props:e.mergeModels({modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),{describePricing:l}=_.usePricingDescription({currency:e.toRef(a,"currency"),billingPeriod:e.toRef(a,"billingPeriod")}),d=o=>n.value.includes(o),u=o=>{d(o)?n.value=n.value.filter(m=>m!==o):n.value=[...n.value,o]};return(o,m)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{"no-spacing":"","no-border":!t.groupName,"content-background":t.groupName?"gray":"none"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["grid grid-cols-1 gap-1",{"p-1":t.groupName}])},[t.groupName?(e.openBlock(),e.createBlock(_._sfc_main$1,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Select any number of products",id:"addon_multiple_editor.description",description:"The description of the addon multiple editor"})),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricings,r=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:r.id,"content-background":t.groupName||d(r.id)?"none":"gray",class:e.normalizeClass({"!bg-white":d(r.id)})},{default:e.withCtx(()=>[e.createVNode(b._sfc_main,{name:e.unref(x.getNameFromPricing)(r)??"",description:e.unref(l)(r)},{default:e.withCtx(()=>[d(r.id)?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"secondary",square:"",size:"sm","icon-prefix":"remove_shopping_cart",onClick:c=>u(r.id)},null,8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"primary","icon-prefix":"add",size:"sm",onClick:c=>u(r.id)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Add to subscription ",id:"addon_multiple_editor.add_to_subscription_button",description:"The button to add a pricing to the subscription"})),1)]),_:1},8,["onClick"]))]),_:2},1032,["name","description"])]),_:2},1032,["content-background","class"]))),128))])],2)]),_:1},8,["no-border","content-background"]))}});function ee(t){var n;return(((n=t.pricing_categories)==null?void 0:n.flatMap(i=>i.pricings??[]))??[]).filter(i=>i!==null)}const te={class:"sv-plan-customization__body grid grid-cols-1 gap-1"},ne=e.defineComponent({__name:"PlanCustomizationEditor",props:e.mergeModels({subscription:{type:Object},enabledPricingIds:{type:Array},initialSeatsValues:{type:Array},initialUnitsValues:{type:Array},billingPeriod:{type:Object},currency:{type:String}},{seatsValues:{required:!0},seatsValuesModifiers:{},unitsValues:{required:!0},unitsValuesModifiers:{},enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{}}),emits:["update:seatsValues","update:unitsValues","update:enabledPricingIds"],setup(t){const a=t,n=e.useModel(t,"seatsValues"),i=e.useModel(t,"unitsValues"),l=e.useModel(t,"enabledPricingIds"),{$t:d}=p.useIntl(),u=e.computed(()=>{var c;const r=(c=M.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:a.subscription.pricing_plan_schedule_infos,type:"DEFAULT"}))==null?void 0:c.pricing_plan_version;return r?ee(r):[]}),o=e.computed(()=>u.value.filter(r=>r.product_type==="ADDON")),m=e.computed(()=>S.getPricingGroupsFromExtendedPricingPlanSubscription(a.subscription));return(r,c)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{class:"sv-plan-customization",title:e.unref(d)({defaultMessage:"Customize plan",id:"checkout.customize_plan_block.title",description:"The title of the customize plan block in the checkout form"}),"no-spacing":"","no-border":"","content-background":"none"},{default:e.withCtx(()=>[e.createElementVNode("div",te,[e.createVNode(L,{modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),class:"sv-plan-customization__seats","initial-seats-values":t.initialSeatsValues,pricings:u.value},null,8,["modelValue","initial-seats-values","pricings"]),e.createVNode(J,{modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=s=>i.value=s),class:"sv-plan-customization__units","initial-units-values":t.initialUnitsValues,pricings:u.value},null,8,["modelValue","initial-units-values","pricings"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.id},[s.product_type==="DEFAULT"&&s.selection_constraint==="EXACTLY_ONE"?(e.openBlock(),e.createBlock(_._sfc_main,{key:0,modelValue:l.value,"onUpdate:modelValue":c[2]||(c[2]=g=>l.value=g),class:"sv-plan-customization__group","group-name":s.name,pricings:s.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"])):s.product_type==="ADDON"&&s.selection_constraint==="AT_MOST_ONE"?(e.openBlock(),e.createBlock(Z,{key:1,modelValue:l.value,"onUpdate:modelValue":c[3]||(c[3]=g=>l.value=g),class:"sv-plan-customization__group","group-name":s.name,pricings:s.pricings,constraint:s.selection_constraint,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","constraint","billing-period","currency"])):s.product_type==="ADDON"&&s.selection_constraint==="ANY"?(e.openBlock(),e.createBlock(h,{key:2,modelValue:l.value,"onUpdate:modelValue":c[4]||(c[4]=g=>l.value=g),class:"sv-plan-customization__group",pricings:s.pricings,"group-name":s.name,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","pricings","group-name","billing-period","currency"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(h,{modelValue:l.value,"onUpdate:modelValue":c[5]||(c[5]=s=>l.value=s),class:"sv-plan-customization__group",pricings:o.value,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","pricings","billing-period","currency"])])]),_:1},8,["title"]))}});exports.default=ne;