@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.22

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 (216) hide show
  1. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js} +1 -1
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs} +6 -6
  3. package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-D42J_izE.js} +1 -1
  4. package/dist/{Avatar.vue.es-ChcLSNaN.mjs → Avatar.vue.es-DNJ-jexx.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs} +4 -4
  7. package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-Dz-2L8dJ.mjs} +1 -1
  8. package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-M_jXZda4.js} +1 -1
  9. package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-B5-0AM67.mjs} +1298 -1225
  10. package/dist/Checkout.entry.ce-C52gkrNZ.js +1 -0
  11. package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DMK9C78d.mjs} +2 -2
  12. package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-G8doKsZb.js} +1 -1
  13. package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-B3Rz6Ojk.js} +1 -1
  14. package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-CzkkNoJG.mjs} +4 -4
  15. package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-BmtU9Pk0.js} +1 -1
  16. package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-Db6bN2RZ.mjs} +2 -2
  17. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js} +1 -1
  18. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs} +5 -5
  19. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +1 -0
  20. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs} +485 -501
  21. package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-D-QxT2OD.js} +1 -1
  22. package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-IK2fns6f.mjs} +1 -1
  23. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs} +4 -4
  25. package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-BGckEwHf.mjs} +2 -2
  26. package/dist/{ErrorNotification.vue.es-0ZC_DozN.js → ErrorNotification.vue.es-Cd2UKPAz.js} +1 -1
  27. package/dist/{IconButton.vue.es-DGLIdHkR.js → IconButton.vue.es-BTAkuFsm.js} +1 -1
  28. package/dist/{IconButton.vue.es-DAR7e8NA.mjs → IconButton.vue.es-C4dQEQAc.mjs} +2 -2
  29. package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-BmX68uJx.mjs} +3 -3
  30. package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-CmR2xoeu.js} +1 -1
  31. package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-BGPELaZU.mjs} +2 -2
  32. package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-CTOrmrcB.js} +1 -1
  33. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs} +2 -2
  34. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js} +1 -1
  35. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js +1 -0
  36. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs} +3 -3
  37. package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-BWLiwlNs.mjs} +692 -705
  38. package/dist/InvoiceSummary.vue.es-hpG8Tq1D.js +1 -0
  39. package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-BD4vUaOQ.js} +1 -1
  40. package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-B_G8NQS2.mjs} +5 -5
  41. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs} +3 -3
  42. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js} +1 -1
  43. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js} +1 -1
  44. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs} +3 -3
  45. package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-ComJzB3H.mjs} +1 -1
  46. package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DSHW_eW1.js} +1 -1
  47. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js} +1 -1
  48. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs} +4 -4
  49. package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CH5B6BY5.mjs} +1 -1
  50. package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-CwfCLnKt.js} +1 -1
  51. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs} +3 -3
  52. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js} +1 -1
  53. package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-DfN7cPYZ.mjs} +5 -5
  54. package/dist/{PaymentIntegrationFormAdyen-DronjwO3.js → PaymentIntegrationFormAdyen-Q48aDXR7.js} +1 -1
  55. package/dist/{PaymentIntegrationFormStripe-ybM6wirp.js → PaymentIntegrationFormStripe-BSEqarl7.js} +1 -1
  56. package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-CBsXDuhy.mjs} +4 -4
  57. package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-D18g-QB4.js} +1 -1
  58. package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-DkQdPXfk.mjs} +3 -3
  59. package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-CpIZKfPH.mjs} +1 -1
  60. package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-DK8ntFA0.js} +1 -1
  61. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs} +5 -5
  62. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js} +1 -1
  63. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs} +6 -6
  64. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js} +1 -1
  65. package/dist/PlanCustomizationEditor-0zCXN-cv.mjs +877 -0
  66. package/dist/PlanCustomizationEditor-XpofGULc.js +1 -0
  67. package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-8_5nfZDI.mjs} +4 -4
  68. package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-QnpfHxaY.js} +1 -1
  69. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js} +1 -1
  70. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs} +5 -5
  71. package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-C92xlCFQ.mjs} +3 -3
  72. package/dist/{RadioGroupExtended.vue.es-B1YtLNKG.js → RadioGroupExtended.vue.es-Cb1iD73r.js} +1 -1
  73. package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Btff-cLY.js} +1 -1
  74. package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-DQ5H7mqW.mjs} +1 -1
  75. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js} +1 -1
  76. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs} +6 -6
  77. package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-Dc0rUnnf.mjs} +1 -1
  78. package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-pzNsego6.js} +1 -1
  79. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs} +1655 -1620
  80. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +1 -0
  81. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs} +3 -3
  82. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js} +1 -1
  83. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js} +1 -1
  84. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs} +7 -7
  85. package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-BaqCDjl8.js} +1 -1
  86. package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-CIedcXGT.mjs} +1 -1
  87. package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-BzNI94k0.js} +1 -1
  88. package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-DkBuMNr_.mjs} +2 -2
  89. package/dist/{cn.es-DjnGlmqV.mjs → cn.es-BGqYNPM3.mjs} +2 -2
  90. package/dist/{cn.es-CNvIP217.js → cn.es-CvmLj7KH.js} +1 -1
  91. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  92. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  93. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  94. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
  95. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  96. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  97. package/dist/components/Invoice/Invoice.cjs +1 -1
  98. package/dist/components/Invoice/Invoice.mjs +9 -9
  99. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  100. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
  101. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  102. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  103. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  104. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  105. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  106. package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
  107. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  108. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  109. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  110. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  111. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  112. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  113. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  114. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  115. package/dist/{customElements-Com2NiGU.mjs → customElements-CSE7dwUr.mjs} +312 -282
  116. package/dist/{customElements-Bt8PbjIn.js → customElements-Vox1PB6G.js} +42 -18
  117. package/dist/{customer-CKgMJEgv.mjs → customer-5krPxZ8i.mjs} +1 -1
  118. package/dist/{customer-Q4JGfVfq.js → customer-Dsq-Moea.js} +1 -1
  119. package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
  120. package/dist/{de-DE-Ds_yJLS3.js → de-DE-C3DzP1nj.js} +1 -1
  121. package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
  122. package/dist/{de-DE-CVCmzlNH.mjs → de-DE-DsFtpLsx.mjs} +2 -0
  123. package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
  124. package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
  125. package/dist/{en-US-DVR9O7b_.mjs → en-US-DvkvbV0p.mjs} +2 -0
  126. package/dist/{en-US-C51ILrVv.js → en-US-X_pSFsNm.js} +1 -1
  127. package/dist/index.cjs +1 -1
  128. package/dist/index.mjs +1 -1
  129. package/dist/{invoices-CV9iAUHf.mjs → invoices-DRgfpkJ6.mjs} +8 -5
  130. package/dist/invoices-xOV2YaEV.js +1 -0
  131. package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
  132. package/dist/it-IT-DT3rfjOY.js +1 -0
  133. package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-TE7oqvXa.mjs} +2 -0
  134. package/dist/{it-IT-Dxw59eR_.js → it-IT-YBtHAao1.js} +1 -1
  135. package/dist/{nl-NL-Btbfd9p2.js → nl-NL-C8wnyKju.js} +1 -1
  136. package/dist/nl-NL-DfkhOJKc.js +1 -0
  137. package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Di3-JArV.mjs} +2 -0
  138. package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
  139. package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CRDIw9lz.js} +1 -1
  140. package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-PmkHYomw.mjs} +1 -1
  141. package/dist/{payments-C_cMXQzE.mjs → payments-Dvqh6CGW.mjs} +1 -1
  142. package/dist/{payments-DGckugN0.js → payments-jAgXhdp_.js} +1 -1
  143. package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
  144. package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
  145. package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
  146. package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
  147. package/dist/screens/Checkout/Checkout.cjs +1 -1
  148. package/dist/screens/Checkout/Checkout.mjs +2 -2
  149. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  150. package/dist/screens/CustomerOverview/CustomerOverview.mjs +11 -11
  151. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  152. package/dist/screens/PayInvoice/PayInvoice.mjs +13 -13
  153. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  154. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  155. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  156. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +20 -20
  157. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  158. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
  159. package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
  160. package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
  161. package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-XDyI2Cqm.mjs} +1 -1
  162. package/dist/{subscriptions-X0Ciw8z3.js → subscriptions-fJcj88X9.js} +1 -1
  163. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
  167. package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
  168. package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
  169. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
  170. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
  171. package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-B8-oycQk.mjs} +1 -1
  172. package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CNAuaHdm.js} +1 -1
  173. package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-CP8eWUZV.mjs} +1 -1
  174. package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-DSx-wN-6.js} +1 -1
  175. package/dist/useCustomerFormLabels-DW6jnDYH.mjs +968 -0
  176. package/dist/useCustomerFormLabels-TVTgy0MT.js +1 -0
  177. package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-BvE_EOX-.mjs} +1 -1
  178. package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-CC-DrIcL.js} +1 -1
  179. package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CRRPdXc6.js} +1 -1
  180. package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-D8ds05CX.mjs} +2 -2
  181. package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-DIfQcvER.js} +1 -1
  182. package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-SJU5YWBQ.mjs} +7 -7
  183. package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-DsabgMLZ.js} +1 -1
  184. package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-MUljS38K.mjs} +1 -1
  185. package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-Bt7P9InI.js} +1 -1
  186. package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-D0NUanyF.mjs} +4 -4
  187. package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-B7JYkGsw.mjs} +1 -1
  188. package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-cT1o-BA1.js} +1 -1
  189. package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-CpzqXQUT.mjs} +1 -1
  190. package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-DNVw2eVg.js} +1 -1
  191. package/dist/{usePayments-SQF_V7oL.js → usePayments-D9Eo-uBk.js} +1 -1
  192. package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Gx9kBvNB.mjs} +6 -6
  193. package/dist/{usePortal-DDG9b6FI.mjs → usePortal-3VCZwSUE.mjs} +1 -1
  194. package/dist/{usePortal-BdM7hDge.js → usePortal-DsebXdhx.js} +1 -1
  195. package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-DnL1wVh1.mjs} +1 -1
  196. package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-K_gP9TeX.js} +1 -1
  197. package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CmltiTE-.js} +1 -1
  198. package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-DMtKzcoB.mjs} +1 -1
  199. package/dist/wallets.es-CNIMW5ay.js +1 -0
  200. package/dist/wallets.es-eH2C2ygn.mjs +102 -0
  201. package/package.json +1 -1
  202. package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
  203. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
  204. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
  205. package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
  206. package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
  207. package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
  208. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
  209. package/dist/invoices-CvpL4rv5.js +0 -1
  210. package/dist/it-IT-CFEfSpPH.js +0 -1
  211. package/dist/nl-NL-jtVgF3jx.js +0 -1
  212. package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
  213. package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
  214. package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
  215. package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
  216. package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
@@ -0,0 +1,877 @@
1
+ import { defineComponent as P, createPropsRestProxy as W, computed as V, openBlock as l, createBlock as f, unref as i, mergeProps as Z, withCtx as p, createTextVNode as x, toDisplayString as h, useModel as T, ref as R, onMounted as G, watch as ee, createSlots as te, createVNode as v, normalizeClass as S, createElementVNode as k, createCommentVNode as $, renderSlot as ne, mergeModels as z, createElementBlock as _, Fragment as M, renderList as U, toRef as O } from "vue";
2
+ import { _ as E } from "./Section.vue.es-DQ5H7mqW.mjs";
3
+ import { _ as A, u as C } from "./customElements-CSE7dwUr.mjs";
4
+ import { u as L } from "./useTimePeriod.es-DMtKzcoB.mjs";
5
+ import { f as D } from "./formatting.es-RclXHhKo.mjs";
6
+ import { _ as ie } from "./Expand.vue.es-BleuAfDz.mjs";
7
+ import { a as ae, _ as j } from "./Button.vue.es-Dz-2L8dJ.mjs";
8
+ import { a as F } from "./IconButton.vue.es-C4dQEQAc.mjs";
9
+ import { _ as le } from "./Input.vue.es-BGPELaZU.mjs";
10
+ import { _ as oe } from "./Chip.vue.es-DMK9C78d.mjs";
11
+ import { g as se, F as re, a as de, _ as Y } from "./Checkout.entry.ce-B5-0AM67.mjs";
12
+ import { _ as ue } from "./index-BPU8tIml.mjs";
13
+ import { u as K, a as X, _ as ce } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs";
14
+ import { g as H } from "./pricing-DLOeiAIB.mjs";
15
+ import { g as me } from "./pricingPlanSchedule-BPrS2WRd.mjs";
16
+ import { c as pe } from "./subscription-CrVOr5MF.mjs";
17
+ const ge = /* @__PURE__ */ P({
18
+ __name: "DeltaChip",
19
+ props: {
20
+ oldValue: {},
21
+ newValue: {},
22
+ intent: { default: "neutral" },
23
+ content: {},
24
+ removable: { type: Boolean },
25
+ size: {},
26
+ variant: {},
27
+ textClass: {},
28
+ tag: {},
29
+ hasChipBefore: { type: Boolean },
30
+ hasChipAfter: { type: Boolean }
31
+ },
32
+ setup(e) {
33
+ const n = W(e, ["oldValue", "newValue", "intent"]), t = V(() => {
34
+ const a = e.newValue - e.oldValue;
35
+ return `${a >= 0 ? "+" : ""}${a}`;
36
+ });
37
+ return (a, r) => (l(), f(i(oe), Z(n, {
38
+ intent: e.intent,
39
+ class: "pointer-events-none select-none"
40
+ }), {
41
+ default: p(() => [
42
+ x(h(t.value), 1)
43
+ ]),
44
+ _: 1
45
+ }, 16, ["intent"]));
46
+ }
47
+ }), fe = { class: "flex items-center gap-1.5" }, J = /* @__PURE__ */ P({
48
+ __name: "StepInput",
49
+ props: /* @__PURE__ */ z({
50
+ step: { default: 1 },
51
+ min: { default: 0 },
52
+ max: {},
53
+ initialValue: { default: 1 },
54
+ unitName: {},
55
+ showDelta: { type: Boolean, default: !1 },
56
+ size: { default: "md" },
57
+ name: {},
58
+ required: { type: Boolean },
59
+ label: {},
60
+ error: {},
61
+ disabled: { type: Boolean, default: !1 }
62
+ }, {
63
+ modelValue: { required: !0 },
64
+ modelModifiers: {}
65
+ }),
66
+ emits: ["update:modelValue"],
67
+ setup(e) {
68
+ const n = e, t = T(e, "modelValue"), a = R(null), r = V(() => {
69
+ if (n.unitName)
70
+ return n.unitName[t.value === 1 ? "singular" : "plural"];
71
+ }), o = () => {
72
+ n.max && t.value + n.step > n.max || (t.value += n.step);
73
+ }, m = () => {
74
+ t.value - n.step < n.min || (t.value -= n.step);
75
+ };
76
+ function s(g) {
77
+ var y;
78
+ const w = (y = a.value) == null ? void 0 : y.el;
79
+ if (!w) return;
80
+ const N = parseInt(`${g}`);
81
+ t.value = N, w.innerText = `${N}`, w.focus();
82
+ const I = document.createRange();
83
+ I.selectNodeContents(w), I.collapse(!1);
84
+ const B = window.getSelection();
85
+ B == null || B.removeAllRanges(), B == null || B.addRange(I);
86
+ }
87
+ const b = (g) => {
88
+ const y = g.target;
89
+ y instanceof HTMLElement && s(y.innerText);
90
+ }, d = V(() => n.disabled ? !1 : n.max ? t.value + n.step < n.max : !0), c = V(() => n.disabled ? !1 : t.value - n.step >= n.min);
91
+ function u() {
92
+ var g;
93
+ const y = (g = a.value) == null ? void 0 : g.el;
94
+ if (!y) return;
95
+ y.focus();
96
+ const w = document.createRange();
97
+ w.selectNodeContents(y);
98
+ const N = window.getSelection();
99
+ N == null || N.removeAllRanges(), N == null || N.addRange(w);
100
+ }
101
+ return G(() => {
102
+ var g;
103
+ const y = (g = a.value) == null ? void 0 : g.el;
104
+ y && (y.innerText = `${t.value}`);
105
+ }), ee(
106
+ () => t.value,
107
+ (g) => {
108
+ s(g);
109
+ }
110
+ ), (g, y) => (l(), f(le, {
111
+ modelValue: t.value,
112
+ "onUpdate:modelValue": y[0] || (y[0] = (w) => t.value = w),
113
+ type: "number",
114
+ class: "text-transparent [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
115
+ "prefix-class": {
116
+ "!px-0 w-5": e.size === "sm",
117
+ "!px-0 w-6": e.size === "md",
118
+ "!px-0 w-7": e.size === "lg"
119
+ },
120
+ "suffix-class": {
121
+ "!px-0 w-5": e.size === "sm",
122
+ "!px-0 w-6": e.size === "md",
123
+ "!px-0 w-7": e.size === "lg"
124
+ },
125
+ size: e.size,
126
+ label: e.label,
127
+ disabled: e.disabled,
128
+ name: e.name,
129
+ required: e.required
130
+ }, te({
131
+ prefix: p(() => [
132
+ k("div", {
133
+ class: "absolute inset-0 flex items-center justify-center",
134
+ onMousedown: u
135
+ }, [
136
+ k("div", fe, [
137
+ v(A, {
138
+ ref_key: "contentEditableRef",
139
+ ref: a,
140
+ tag: "span",
141
+ variant: e.size === "sm" ? "body" : "body-lg",
142
+ contenteditable: !e.disabled,
143
+ class: S(["outline-none", { "pointer-events-none select-none": e.disabled }]),
144
+ weight: "semibold",
145
+ onInput: b
146
+ }, null, 8, ["variant", "contenteditable", "class"]),
147
+ r.value ? (l(), f(A, {
148
+ key: 0,
149
+ tag: "span",
150
+ color: "subtle",
151
+ class: "pointer-events-none select-none"
152
+ }, {
153
+ default: p(() => [
154
+ x(h(" ") + h(r.value), 1)
155
+ ]),
156
+ _: 1
157
+ })) : $("", !0),
158
+ e.showDelta ? (l(), f(ge, {
159
+ key: 1,
160
+ "old-value": n.initialValue,
161
+ "new-value": t.value,
162
+ class: "pointer-events-none ml-0.5 select-none"
163
+ }, null, 8, ["old-value", "new-value"])) : $("", !0)
164
+ ])
165
+ ], 32),
166
+ v(F, {
167
+ disabled: !c.value,
168
+ type: "button",
169
+ intent: "subtle",
170
+ size: "sm",
171
+ class: S(["!h-full select-none rounded-br-none rounded-tr-none", { "!w-7": e.size === "lg", "!w-5": e.size === "sm", "!w-6": e.size === "md" }]),
172
+ icon: "remove",
173
+ onMousedown: m
174
+ }, null, 8, ["disabled", "class"])
175
+ ]),
176
+ suffix: p(() => [
177
+ v(F, {
178
+ disabled: !d.value,
179
+ type: "button",
180
+ intent: "subtle",
181
+ size: "sm",
182
+ class: S(["!h-full select-none rounded-bl-none rounded-tl-none", { "!w-7": e.size === "lg", "!w-5": e.size === "sm", "!w-6": e.size === "md" }]),
183
+ icon: "add",
184
+ onMousedown: o
185
+ }, null, 8, ["disabled", "class"])
186
+ ]),
187
+ _: 2
188
+ }, [
189
+ g.$slots.helper ? {
190
+ name: "helper",
191
+ fn: p(() => [
192
+ ne(g.$slots, "helper")
193
+ ]),
194
+ key: "0"
195
+ } : void 0
196
+ ]), 1032, ["modelValue", "prefix-class", "suffix-class", "size", "label", "disabled", "name", "required"]));
197
+ }
198
+ }), be = { class: "grid grid-cols-2 gap-2" }, ve = /* @__PURE__ */ P({
199
+ __name: "TieredTableRow",
200
+ props: {
201
+ band: { type: Object },
202
+ previousBand: { type: Object },
203
+ isFirst: { type: Boolean },
204
+ period: { type: Object }
205
+ },
206
+ setup(e) {
207
+ const n = e, { $t: t } = C(), { formatTimePeriod: a } = L(), r = V(() => {
208
+ var m;
209
+ if (n.isFirst)
210
+ return "0";
211
+ if ((m = n.previousBand) != null && m.tier_top_bound && "number" in n.previousBand.tier_top_bound)
212
+ return n.previousBand.tier_top_bound.number;
213
+ }), o = V(() => {
214
+ if (!(!n.band.tier_top_bound || !("number" in n.band.tier_top_bound)))
215
+ return n.band.tier_top_bound.number;
216
+ });
217
+ return (m, s) => (l(), _("div", be, [
218
+ v(i(A), {
219
+ variant: "body-xs",
220
+ color: "subtle",
221
+ tag: "div"
222
+ }, {
223
+ default: p(() => [
224
+ o.value ? (l(), _(M, { key: 0 }, [
225
+ x(h(i(t)(
226
+ {
227
+ defaultMessage: "{lower_bound} - {upper_bound} seats",
228
+ id: "seats.tiered_range_label",
229
+ description: "The label showing the seat count range for a tiered pricing tier"
230
+ },
231
+ {
232
+ lower_bound: r.value ?? "0",
233
+ upper_bound: o.value
234
+ }
235
+ )), 1)
236
+ ], 64)) : (l(), _(M, { key: 1 }, [
237
+ x(h(i(t)(
238
+ {
239
+ defaultMessage: "> {lower_bound} seats",
240
+ id: "seats.tiered_unbounded_range_label",
241
+ description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
242
+ },
243
+ {
244
+ lower_bound: r.value ?? "0"
245
+ }
246
+ )), 1)
247
+ ], 64))
248
+ ]),
249
+ _: 1
250
+ }),
251
+ v(i(A), {
252
+ variant: "body-xs",
253
+ color: "subtle",
254
+ tag: "div",
255
+ class: "text-right"
256
+ }, {
257
+ default: p(() => [
258
+ x(h(e.band.amount && i(t)(
259
+ {
260
+ defaultMessage: "{amount} per seat/{period}",
261
+ id: "seats.tiered_price_per_seat_period",
262
+ description: "The price per seat and billing period label for a tiered pricing tier"
263
+ },
264
+ {
265
+ amount: i(D)(e.band.amount),
266
+ period: e.period ? i(a)(e.period, {
267
+ short: !0,
268
+ hideValueForExactPeriods: !0
269
+ }) : ""
270
+ }
271
+ )), 1)
272
+ ]),
273
+ _: 1
274
+ })
275
+ ]));
276
+ }
277
+ }), ye = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, _e = /* @__PURE__ */ P({
278
+ __name: "TieredTable",
279
+ props: {
280
+ bands: { type: Array },
281
+ period: { type: Object }
282
+ },
283
+ setup(e) {
284
+ return (n, t) => (l(), _("div", ye, [
285
+ (l(!0), _(M, null, U(e.bands, (a, r) => (l(), f(ve, {
286
+ key: r,
287
+ band: a,
288
+ "is-first": r === 0,
289
+ "previous-band": r > 0 ? e.bands[r - 1] : void 0,
290
+ period: e.period
291
+ }, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
292
+ ]));
293
+ }
294
+ });
295
+ function Q({
296
+ pricings: e,
297
+ pricingItemConfigId: n
298
+ }) {
299
+ return V(() => {
300
+ var r, o, m, s, b, d, c, u;
301
+ const { config: t, productItem: a } = se({
302
+ pricings: e,
303
+ pricingItemConfigId: n
304
+ });
305
+ return {
306
+ billing: {
307
+ period: (o = (r = t == null ? void 0 : t.billing_period_configs) == null ? void 0 : r[0]) == null ? void 0 : o.billing_period,
308
+ billedInAdvance: t == null ? void 0 : t.billing_in_advance
309
+ },
310
+ product: {
311
+ name: a == null ? void 0 : a.name,
312
+ description: a == null ? void 0 : a.description
313
+ },
314
+ pricing: {
315
+ ...((m = t == null ? void 0 : t.details) == null ? void 0 : m.pricing_type) === "FLAT" && {
316
+ amount: (d = (b = (s = t.details) == null ? void 0 : s.bands) == null ? void 0 : b[0]) == null ? void 0 : d.amount
317
+ },
318
+ ...((c = t == null ? void 0 : t.details) == null ? void 0 : c.pricing_type) === "TIERED" && {
319
+ tiered: { bands: (u = t.details) == null ? void 0 : u.bands }
320
+ }
321
+ }
322
+ };
323
+ });
324
+ }
325
+ const Ve = { class: "flex flex-row-reverse gap-4 md:flex-row" }, he = { class: "w-24 shrink-0 justify-start md:w-32" }, xe = ["tabindex"], we = { key: 0 }, ke = { key: 0 }, $e = /* @__PURE__ */ P({
326
+ __name: "SeatsEditorItem",
327
+ props: /* @__PURE__ */ z({
328
+ modelValue: { type: Object },
329
+ defaultValue: { type: Object },
330
+ pricings: { type: Array }
331
+ }, {
332
+ modelValue: { required: !0 },
333
+ modelModifiers: {}
334
+ }),
335
+ emits: ["update:modelValue"],
336
+ setup(e) {
337
+ const n = e, t = T(e, "modelValue"), { $t: a } = C(), { formatTimePeriod: r } = L(), o = R(!1), m = V({
338
+ get: () => +(t.value.number || re),
339
+ set(d) {
340
+ t.value = {
341
+ ...t.value,
342
+ number: d !== void 0 ? d.toString() : void 0
343
+ };
344
+ }
345
+ }), s = Q({
346
+ pricings: n.pricings,
347
+ pricingItemConfigId: t.value.pricing_item_config_id
348
+ }), b = V(() => {
349
+ var d, c;
350
+ return !!((c = (d = s.value.pricing) == null ? void 0 : d.tiered) != null && c.bands);
351
+ });
352
+ return (d, c) => {
353
+ var u, g, y;
354
+ return l(), _("div", null, [
355
+ k("div", Ve, [
356
+ k("div", he, [
357
+ v(i(J), {
358
+ modelValue: m.value,
359
+ "onUpdate:modelValue": c[0] || (c[0] = (w) => m.value = w),
360
+ size: "sm",
361
+ min: (u = e.defaultValue) != null && u.number ? +e.defaultValue.number : void 0
362
+ }, null, 8, ["modelValue", "min"])
363
+ ]),
364
+ k("div", {
365
+ class: S(["flex grow flex-col", { "hover:cursor-pointer": b.value }]),
366
+ tabindex: b.value ? 0 : void 0,
367
+ onClick: c[1] || (c[1] = (w) => b.value ? o.value = !o.value : void 0)
368
+ }, [
369
+ v(i(A), {
370
+ tag: "span",
371
+ variant: "body-sm",
372
+ weight: "semibold"
373
+ }, {
374
+ default: p(() => [
375
+ x(h(i(s).product.name || i(a)({
376
+ defaultMessage: "Seats",
377
+ id: "seats.label",
378
+ description: "The label for the seats input field"
379
+ })), 1)
380
+ ]),
381
+ _: 1
382
+ }),
383
+ i(s).pricing.amount ? (l(), f(i(A), {
384
+ key: 0,
385
+ tag: "span",
386
+ variant: "body-xs",
387
+ color: "subtle"
388
+ }, {
389
+ default: p(() => [
390
+ x(h(i(a)(
391
+ {
392
+ defaultMessage: "{amount} per seat/{period}",
393
+ id: "seats.price_per_seat_period",
394
+ description: "The price per seat and billing period label for seat-based pricing"
395
+ },
396
+ {
397
+ amount: i(D)(i(s).pricing.amount),
398
+ period: i(s).billing.period ? i(r)(i(s).billing.period, {
399
+ short: !0,
400
+ hideValueForExactPeriods: !0
401
+ }) : ""
402
+ }
403
+ )), 1)
404
+ ]),
405
+ _: 1
406
+ })) : i(s).pricing.tiered ? (l(), f(i(A), {
407
+ key: 1,
408
+ tag: "span",
409
+ variant: "body-xs",
410
+ color: "subtle"
411
+ }, {
412
+ default: p(() => [
413
+ x(h(i(a)({
414
+ defaultMessage: "Tiered pricing",
415
+ id: "seats.tiered_pricing_label",
416
+ description: "The label indicating tiered pricing structure for seats"
417
+ })) + " ", 1),
418
+ v(i(ae), {
419
+ icon: "keyboard_arrow_down",
420
+ size: "xs",
421
+ class: S(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !o.value, "rotate-180": o.value }])
422
+ }, null, 8, ["class"])
423
+ ]),
424
+ _: 1
425
+ })) : $("", !0)
426
+ ], 10, xe)
427
+ ]),
428
+ (y = (g = i(s).pricing) == null ? void 0 : g.tiered) != null && y.bands ? (l(), _("div", we, [
429
+ v(i(ie), { "is-open": o.value }, {
430
+ default: p(() => [
431
+ o.value ? (l(), _("div", ke, [
432
+ v(_e, {
433
+ bands: i(s).pricing.tiered.bands,
434
+ period: i(s).billing.period
435
+ }, null, 8, ["bands", "period"])
436
+ ])) : $("", !0)
437
+ ]),
438
+ _: 1
439
+ }, 8, ["is-open"])
440
+ ])) : $("", !0)
441
+ ]);
442
+ };
443
+ }
444
+ }), Pe = {
445
+ key: 0,
446
+ class: "grid grid-cols-1 gap-1"
447
+ }, Te = /* @__PURE__ */ P({
448
+ __name: "SeatsEditor",
449
+ props: /* @__PURE__ */ z({
450
+ modelValue: { type: Array },
451
+ initialSeatsValues: { type: Array },
452
+ pricings: { type: Array }
453
+ }, {
454
+ modelValue: { required: !0 },
455
+ modelModifiers: {}
456
+ }),
457
+ emits: ["update:modelValue"],
458
+ setup(e) {
459
+ const n = T(e, "modelValue"), t = (a) => V({
460
+ get: () => n.value[a],
461
+ set: (r) => {
462
+ const o = n.value.slice();
463
+ o[a] = r, n.value = o;
464
+ }
465
+ });
466
+ return (a, r) => e.modelValue.length > 0 ? (l(), _("div", Pe, [
467
+ (l(!0), _(M, null, U(e.modelValue, (o, m) => (l(), f(i(E), { key: m }, {
468
+ default: p(() => {
469
+ var s;
470
+ return [
471
+ o.pricing_item_config_id ? (l(), f($e, {
472
+ key: o.pricing_item_config_id,
473
+ modelValue: t(m).value,
474
+ "onUpdate:modelValue": (b) => t(m).value = b,
475
+ "default-value": (s = e.initialSeatsValues) == null ? void 0 : s[m],
476
+ pricings: e.pricings
477
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : $("", !0)
478
+ ];
479
+ }),
480
+ _: 2
481
+ }, 1024))), 128))
482
+ ])) : $("", !0);
483
+ }
484
+ }), Ae = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Me = { class: "w-24 shrink-0 justify-start md:w-32" }, Se = { class: "flex grow flex-col" }, ze = /* @__PURE__ */ P({
485
+ __name: "UnitsEditorItem",
486
+ props: /* @__PURE__ */ z({
487
+ modelValue: { type: Object },
488
+ defaultValue: { type: Object },
489
+ pricings: { type: Array }
490
+ }, {
491
+ modelValue: { required: !0 },
492
+ modelModifiers: {}
493
+ }),
494
+ emits: ["update:modelValue"],
495
+ setup(e) {
496
+ const n = e, t = T(e, "modelValue"), { $t: a } = C(), r = V({
497
+ get: () => +(t.value.number || de),
498
+ set(m) {
499
+ t.value = {
500
+ ...t.value,
501
+ number: m !== void 0 ? m.toString() : void 0
502
+ };
503
+ }
504
+ }), o = Q({
505
+ pricings: n.pricings,
506
+ pricingItemConfigId: t.value.pricing_item_config_id
507
+ });
508
+ return (m, s) => {
509
+ var b;
510
+ return l(), _("div", Ae, [
511
+ k("div", Me, [
512
+ v(i(J), {
513
+ modelValue: r.value,
514
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => r.value = d),
515
+ size: "sm",
516
+ min: (b = e.defaultValue) != null && b.number ? +e.defaultValue.number : void 0
517
+ }, null, 8, ["modelValue", "min"])
518
+ ]),
519
+ k("div", Se, [
520
+ v(i(A), {
521
+ tag: "span",
522
+ variant: "body-sm",
523
+ weight: "semibold"
524
+ }, {
525
+ default: p(() => [
526
+ x(h(i(o).product.name || i(a)({
527
+ defaultMessage: "Units",
528
+ id: "units.label",
529
+ description: "The label for the one-off flat item units input field"
530
+ })), 1)
531
+ ]),
532
+ _: 1
533
+ }),
534
+ i(o).pricing.amount ? (l(), f(i(A), {
535
+ key: 0,
536
+ tag: "span",
537
+ variant: "body-xs",
538
+ color: "subtle"
539
+ }, {
540
+ default: p(() => [
541
+ x(h(i(a)(
542
+ {
543
+ defaultMessage: "{amount} per unit",
544
+ id: "units.price_per_unit",
545
+ description: "The price per unit label for one-off flat pricing"
546
+ },
547
+ { amount: i(D)(i(o).pricing.amount) }
548
+ )), 1)
549
+ ]),
550
+ _: 1
551
+ })) : $("", !0)
552
+ ])
553
+ ]);
554
+ };
555
+ }
556
+ }), Ne = {
557
+ key: 0,
558
+ class: "grid grid-cols-1 gap-1"
559
+ }, Ee = /* @__PURE__ */ P({
560
+ __name: "UnitsEditor",
561
+ props: /* @__PURE__ */ z({
562
+ modelValue: { type: Array },
563
+ initialUnitsValues: { type: Array },
564
+ pricings: { type: Array }
565
+ }, {
566
+ modelValue: { required: !0 },
567
+ modelModifiers: {}
568
+ }),
569
+ emits: ["update:modelValue"],
570
+ setup(e) {
571
+ const n = T(e, "modelValue"), t = (a) => V({
572
+ get: () => n.value[a],
573
+ set: (r) => {
574
+ const o = n.value.slice();
575
+ o[a] = r, n.value = o;
576
+ }
577
+ });
578
+ return (a, r) => e.modelValue.length > 0 ? (l(), _("div", Ne, [
579
+ (l(!0), _(M, null, U(e.modelValue, (o, m) => (l(), f(i(E), { key: m }, {
580
+ default: p(() => {
581
+ var s;
582
+ return [
583
+ o.pricing_item_config_id ? (l(), f(ze, {
584
+ key: o.pricing_item_config_id,
585
+ modelValue: t(m).value,
586
+ "onUpdate:modelValue": (b) => t(m).value = b,
587
+ "default-value": (s = e.initialUnitsValues) == null ? void 0 : s[m],
588
+ pricings: e.pricings
589
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : $("", !0)
590
+ ];
591
+ }),
592
+ _: 2
593
+ }, 1024))), 128))
594
+ ])) : $("", !0);
595
+ }
596
+ }), Ue = { class: "p-1" }, Ce = { class: "grid grid-cols-1 gap-1 pt-1" }, Be = /* @__PURE__ */ P({
597
+ __name: "AddonSingleEditor",
598
+ props: /* @__PURE__ */ z({
599
+ constraint: { type: String },
600
+ modelValue: { type: Array },
601
+ pricings: { type: Array },
602
+ billingPeriod: { type: Object },
603
+ currency: { type: String },
604
+ groupName: { type: String }
605
+ }, {
606
+ modelValue: { required: !0 },
607
+ modelModifiers: {}
608
+ }),
609
+ emits: ["update:modelValue"],
610
+ setup(e) {
611
+ const n = e, t = T(e, "modelValue"), { $t: a } = C(), { describePricing: r } = K({
612
+ currency: O(n, "currency"),
613
+ billingPeriod: O(n, "billingPeriod")
614
+ }), o = n.pricings.map((d) => d.id), m = V(() => n.constraint === "AT_MOST_ONE" ? a({
615
+ defaultMessage: "Select up to one product",
616
+ id: "addon_single_editor.description.at_most_one",
617
+ description: "The description of the addon single editor for at most one product"
618
+ }) : n.constraint === "EXACTLY_ONE" ? a({
619
+ defaultMessage: "Select one product",
620
+ id: "addon_single_editor.description.exactly_one",
621
+ description: "The description of the addon single editor for exactly one product"
622
+ }) : n.constraint === "AT_LEAST_ONE" ? a({
623
+ defaultMessage: "Select at least one product",
624
+ id: "addon_single_editor.description.at_least_one",
625
+ description: "The description of the addon single editor for at least one product"
626
+ }) : ""), s = (d) => n.modelValue.includes(d), b = (d) => {
627
+ if (s(d))
628
+ t.value = t.value.filter((c) => c !== d);
629
+ else {
630
+ const c = t.value.filter((u) => !o.includes(u));
631
+ t.value = [...c, d];
632
+ }
633
+ };
634
+ return (d, c) => (l(), f(i(E), { "no-spacing": "" }, {
635
+ default: p(() => [
636
+ k("div", Ue, [
637
+ v(X, null, {
638
+ title: p(() => [
639
+ x(h(e.groupName), 1)
640
+ ]),
641
+ description: p(() => [
642
+ x(h(m.value), 1)
643
+ ]),
644
+ _: 1
645
+ }),
646
+ k("div", Ce, [
647
+ (l(!0), _(M, null, U(e.pricings, (u) => (l(), f(i(E), {
648
+ key: u.id,
649
+ "content-background": "none",
650
+ class: S({ "!bg-white": s(u.id) })
651
+ }, {
652
+ default: p(() => [
653
+ v(Y, {
654
+ name: i(H)(u) ?? "",
655
+ description: i(r)(u)
656
+ }, {
657
+ default: p(() => [
658
+ v(i(ue), {
659
+ "model-value": s(u.id),
660
+ "onUpdate:modelValue": (g) => b(u.id)
661
+ }, null, 8, ["model-value", "onUpdate:modelValue"])
662
+ ]),
663
+ _: 2
664
+ }, 1032, ["name", "description"])
665
+ ]),
666
+ _: 2
667
+ }, 1032, ["class"]))), 128))
668
+ ])
669
+ ])
670
+ ]),
671
+ _: 1
672
+ }));
673
+ }
674
+ }), Oe = { class: "grid grid-cols-1 gap-1" }, q = /* @__PURE__ */ P({
675
+ __name: "AddonMultipleEditor",
676
+ props: /* @__PURE__ */ z({
677
+ modelValue: { type: Array },
678
+ pricings: { type: Array },
679
+ billingPeriod: { type: Object },
680
+ currency: { type: String },
681
+ groupName: { type: String }
682
+ }, {
683
+ modelValue: { required: !0 },
684
+ modelModifiers: {}
685
+ }),
686
+ emits: ["update:modelValue"],
687
+ setup(e) {
688
+ const n = e, t = T(e, "modelValue"), { $t: a } = C(), { describePricing: r } = K({
689
+ currency: O(n, "currency"),
690
+ billingPeriod: O(n, "billingPeriod")
691
+ }), o = (s) => t.value.includes(s), m = (s) => {
692
+ o(s) ? t.value = t.value.filter((b) => b !== s) : t.value = [...t.value, s];
693
+ };
694
+ return (s, b) => (l(), f(i(E), {
695
+ "no-spacing": "",
696
+ "no-border": !e.groupName,
697
+ "content-background": e.groupName ? "gray" : "none"
698
+ }, {
699
+ default: p(() => [
700
+ k("div", {
701
+ class: S(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
702
+ }, [
703
+ e.groupName ? (l(), f(X, { key: 0 }, {
704
+ title: p(() => [
705
+ x(h(e.groupName), 1)
706
+ ]),
707
+ description: p(() => [
708
+ x(h(i(a)({
709
+ defaultMessage: "Select any number of products",
710
+ id: "addon_multiple_editor.description",
711
+ description: "The description of the addon multiple editor"
712
+ })), 1)
713
+ ]),
714
+ _: 1
715
+ })) : $("", !0),
716
+ k("div", Oe, [
717
+ (l(!0), _(M, null, U(e.pricings, (d) => (l(), f(i(E), {
718
+ key: d.id,
719
+ "content-background": e.groupName || o(d.id) ? "none" : "gray",
720
+ class: S({ "!bg-white": o(d.id) })
721
+ }, {
722
+ default: p(() => [
723
+ v(Y, {
724
+ name: i(H)(d) ?? "",
725
+ description: i(r)(d)
726
+ }, {
727
+ default: p(() => [
728
+ o(d.id) ? (l(), f(i(j), {
729
+ key: 0,
730
+ intent: "secondary",
731
+ square: "",
732
+ size: "sm",
733
+ "icon-prefix": "remove_shopping_cart",
734
+ onClick: (c) => m(d.id)
735
+ }, null, 8, ["onClick"])) : (l(), f(i(j), {
736
+ key: 1,
737
+ intent: "primary",
738
+ "icon-prefix": "add",
739
+ size: "sm",
740
+ onClick: (c) => m(d.id)
741
+ }, {
742
+ default: p(() => [
743
+ x(h(i(a)({
744
+ defaultMessage: "Add to subscription ",
745
+ id: "addon_multiple_editor.add_to_subscription_button",
746
+ description: "The button to add a pricing to the subscription"
747
+ })), 1)
748
+ ]),
749
+ _: 1
750
+ }, 8, ["onClick"]))
751
+ ]),
752
+ _: 2
753
+ }, 1032, ["name", "description"])
754
+ ]),
755
+ _: 2
756
+ }, 1032, ["content-background", "class"]))), 128))
757
+ ])
758
+ ], 2)
759
+ ]),
760
+ _: 1
761
+ }, 8, ["no-border", "content-background"]));
762
+ }
763
+ });
764
+ function Ie(e) {
765
+ var t;
766
+ return (((t = e.pricing_categories) == null ? void 0 : t.flatMap((a) => a.pricings ?? [])) ?? []).filter((a) => a !== null);
767
+ }
768
+ const De = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, nt = /* @__PURE__ */ P({
769
+ __name: "PlanCustomizationEditor",
770
+ props: /* @__PURE__ */ z({
771
+ subscription: { type: Object },
772
+ enabledPricingIds: { type: Array },
773
+ initialSeatsValues: { type: Array },
774
+ initialUnitsValues: { type: Array },
775
+ billingPeriod: { type: Object },
776
+ currency: { type: String }
777
+ }, {
778
+ seatsValues: { required: !0 },
779
+ seatsValuesModifiers: {},
780
+ unitsValues: { required: !0 },
781
+ unitsValuesModifiers: {},
782
+ enabledPricingIds: {
783
+ required: !0
784
+ },
785
+ enabledPricingIdsModifiers: {}
786
+ }),
787
+ emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
788
+ setup(e) {
789
+ const n = e, t = T(e, "seatsValues"), a = T(e, "unitsValues"), r = T(e, "enabledPricingIds"), { $t: o } = C(), m = V(() => {
790
+ var c;
791
+ const d = (c = me({
792
+ pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos,
793
+ type: "DEFAULT"
794
+ })) == null ? void 0 : c.pricing_plan_version;
795
+ return d ? Ie(d) : [];
796
+ }), s = V(
797
+ () => m.value.filter((d) => d.product_type === "ADDON")
798
+ ), b = V(
799
+ () => pe(n.subscription)
800
+ );
801
+ return (d, c) => (l(), f(i(E), {
802
+ class: "sv-plan-customization",
803
+ title: i(o)({
804
+ defaultMessage: "Customize plan",
805
+ id: "checkout.customize_plan_block.title",
806
+ description: "The title of the customize plan block in the checkout form"
807
+ }),
808
+ "no-spacing": "",
809
+ "no-border": "",
810
+ "content-background": "none"
811
+ }, {
812
+ default: p(() => [
813
+ k("div", De, [
814
+ v(Te, {
815
+ modelValue: t.value,
816
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => t.value = u),
817
+ class: "sv-plan-customization__seats",
818
+ "initial-seats-values": e.initialSeatsValues,
819
+ pricings: m.value
820
+ }, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
821
+ v(Ee, {
822
+ modelValue: a.value,
823
+ "onUpdate:modelValue": c[1] || (c[1] = (u) => a.value = u),
824
+ class: "sv-plan-customization__units",
825
+ "initial-units-values": e.initialUnitsValues,
826
+ pricings: m.value
827
+ }, null, 8, ["modelValue", "initial-units-values", "pricings"]),
828
+ (l(!0), _(M, null, U(b.value, (u) => (l(), _(M, {
829
+ key: u.id
830
+ }, [
831
+ u.product_type === "DEFAULT" && u.selection_constraint === "EXACTLY_ONE" ? (l(), f(ce, {
832
+ key: 0,
833
+ modelValue: r.value,
834
+ "onUpdate:modelValue": c[2] || (c[2] = (g) => r.value = g),
835
+ class: "sv-plan-customization__group",
836
+ "group-name": u.name,
837
+ pricings: u.pricings,
838
+ "billing-period": e.billingPeriod,
839
+ currency: e.currency
840
+ }, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : u.product_type === "ADDON" && u.selection_constraint === "AT_MOST_ONE" ? (l(), f(Be, {
841
+ key: 1,
842
+ modelValue: r.value,
843
+ "onUpdate:modelValue": c[3] || (c[3] = (g) => r.value = g),
844
+ class: "sv-plan-customization__group",
845
+ "group-name": u.name,
846
+ pricings: u.pricings,
847
+ constraint: u.selection_constraint,
848
+ "billing-period": e.billingPeriod,
849
+ currency: e.currency
850
+ }, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : u.product_type === "ADDON" && u.selection_constraint === "ANY" ? (l(), f(q, {
851
+ key: 2,
852
+ modelValue: r.value,
853
+ "onUpdate:modelValue": c[4] || (c[4] = (g) => r.value = g),
854
+ class: "sv-plan-customization__group",
855
+ pricings: u.pricings,
856
+ "group-name": u.name,
857
+ "billing-period": e.billingPeriod,
858
+ currency: e.currency
859
+ }, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : $("", !0)
860
+ ], 64))), 128)),
861
+ v(q, {
862
+ modelValue: r.value,
863
+ "onUpdate:modelValue": c[5] || (c[5] = (u) => r.value = u),
864
+ class: "sv-plan-customization__group",
865
+ pricings: s.value,
866
+ "billing-period": e.billingPeriod,
867
+ currency: e.currency
868
+ }, null, 8, ["modelValue", "pricings", "billing-period", "currency"])
869
+ ])
870
+ ]),
871
+ _: 1
872
+ }, 8, ["title"]));
873
+ }
874
+ });
875
+ export {
876
+ nt as default
877
+ };