@solvimon/solvimon-web 0.1.0-alpha.18 → 0.1.0-alpha.19

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 (610) hide show
  1. package/README.md +70 -31
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs} +6 -3
  4. package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
  5. package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
  6. package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
  7. package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
  9. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
  10. package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
  11. package/dist/Button.vue.es-aLcIdATK.js +1 -0
  12. package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
  13. package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
  14. package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
  15. package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
  16. package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
  17. package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
  18. package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
  19. package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
  20. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
  21. package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
  22. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
  23. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
  24. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
  25. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs} +823 -216
  26. package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
  27. package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
  28. package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
  29. package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
  30. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
  31. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
  32. package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
  33. package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
  34. package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
  35. package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
  36. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
  37. package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
  38. package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
  39. package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
  40. package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
  41. package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
  42. package/dist/Input.vue.es-C8VhMKuI.js +1 -0
  43. package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
  44. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
  45. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
  46. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
  47. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
  48. package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
  49. package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
  50. package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
  51. package/dist/Modal.vue.es-CX5geho3.js +1 -0
  52. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
  53. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs} +4 -2
  54. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs} +3 -1
  55. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
  56. package/dist/{PaymentHistoryBlock-Bxr8lUGs.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
  57. package/dist/{PaymentHistoryBlock-COjIVYX4.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
  58. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
  59. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
  60. package/dist/{PaymentIntegrationForm-BSauhuKv.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
  61. package/dist/{PaymentIntegrationForm-PIT8gHYN.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
  62. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
  63. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs} +4 -3
  64. package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
  65. package/dist/{PaymentIntegrationFormAdyen-Cjj9aK0E.mjs → PaymentIntegrationFormAdyen-CuRwe9_9.mjs} +78 -116
  66. package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
  67. package/dist/{PaymentIntegrationFormStripe-arpua_ZT.mjs → PaymentIntegrationFormStripe-JZw2m1kJ.mjs} +7 -7
  68. package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
  69. package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
  70. package/dist/{PaymentMethodForm-B7T5rrNz.mjs → PaymentMethodForm-C5WqTDow.mjs} +1 -1
  71. package/dist/{PaymentMethodForm-CLz3ZS-b.js → PaymentMethodForm-CBjHdZT7.js} +1 -1
  72. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
  73. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
  74. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +7 -3
  75. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
  76. package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
  77. package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
  78. package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
  79. package/dist/Section.vue.es-tLYXp-tF.js +1 -0
  80. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
  81. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
  82. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
  83. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
  84. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +2 -1
  85. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
  86. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
  87. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +7 -4
  88. package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
  89. package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
  90. package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
  91. package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
  92. package/dist/api.es-C5pe8LUl.mjs +62 -0
  93. package/dist/api.es-Czekkp_X.js +1 -0
  94. package/dist/cn.es-BLHlMR4Y.js +1 -0
  95. package/dist/cn.es-DB5pDpxS.mjs +3298 -0
  96. package/dist/comparators.es-9VsCB-JI.mjs +175 -0
  97. package/dist/comparators.es-wrKHduVq.js +1 -0
  98. package/dist/component-BG6DmXcy.mjs +9 -0
  99. package/dist/component-hDuDTBt5.js +1 -0
  100. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
  101. package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
  102. package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
  103. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
  104. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
  105. package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
  106. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
  107. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
  108. package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
  109. package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
  110. package/dist/components/Invoice/Invoice.cjs +1 -0
  111. package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
  112. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
  113. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
  114. package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
  115. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
  116. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
  117. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
  118. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
  119. package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
  120. package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
  121. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
  122. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
  123. package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
  124. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
  125. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
  126. package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
  127. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
  128. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
  129. package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
  130. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
  131. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
  132. package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
  133. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
  134. package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
  135. package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +13 -25
  136. package/dist/configuration-BjYwV4_B.js +1 -0
  137. package/dist/configuration-CD8cOXAJ.mjs +15 -0
  138. package/dist/core/action-request.types.d.ts +1 -55
  139. package/dist/core/configuration.d.ts +1 -3
  140. package/dist/core/index.cjs +1 -0
  141. package/dist/core/index.d.ts +1 -11
  142. package/dist/core/index.mjs +197 -0
  143. package/dist/core/registry.ce.d.ts +1 -2
  144. package/dist/core/registry.d.ts +1 -6
  145. package/dist/core/types.d.ts +1 -121
  146. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  147. package/dist/countryData.es-D3MFzU92.js +1 -0
  148. package/dist/customElements-BTJzBHMy.js +1 -0
  149. package/dist/customElements-DdFA__me.mjs +6729 -0
  150. package/dist/{customer-DovIxTG1.mjs → customer-B0AMetq6.mjs} +1 -1
  151. package/dist/customer-D7HUfF3j.js +1 -0
  152. package/dist/customer.es-C_vSWcVA.mjs +30 -0
  153. package/dist/customer.es-D42Md24r.js +1 -0
  154. package/dist/en-US-BSrbFk5W.js +1 -0
  155. package/dist/en-US-D0P7NNNZ.mjs +228 -0
  156. package/dist/{en-US-CXDO3qhq.mjs → en-US-Daw3v6GD.mjs} +8 -31
  157. package/dist/en-US-scSQQXK8.js +1 -0
  158. package/dist/error-Cg-i7gGl.js +1 -0
  159. package/dist/error-DY_I2hPx.mjs +13 -0
  160. package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
  161. package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
  162. package/dist/formatting.es-9hM8aHSg.js +1 -0
  163. package/dist/formatting.es-D-oVnc8H.mjs +68 -0
  164. package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
  165. package/dist/getComposedString.es-DvSNX-_z.js +1 -0
  166. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  167. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  168. package/dist/index-BJ3dHkSK.js +1 -0
  169. package/dist/index-C5bKRt7l.mjs +1069 -0
  170. package/dist/index.cjs +1 -0
  171. package/dist/index.d.ts +1 -17
  172. package/dist/index.es-0cystq8F.mjs +542 -0
  173. package/dist/index.es-2JWHHSgP.js +1 -0
  174. package/dist/index.mjs +42 -0
  175. package/dist/{invoices-Dk-z04lg.mjs → invoices-BSd-nKeE.mjs} +17 -16
  176. package/dist/invoices-BiqM6xN6.js +1 -0
  177. package/dist/{nl-NL-BgL_PuBn.mjs → nl-NL-B4zEBFTw.mjs} +8 -54
  178. package/dist/nl-NL-B5tuyIOM.mjs +88 -0
  179. package/dist/nl-NL-Bs3d8q6T.js +1 -0
  180. package/dist/nl-NL-DIAZWDF9.js +1 -0
  181. package/dist/object.es-DFXiU9p3.js +1 -0
  182. package/dist/object.es-jvvnR8Kr.mjs +12 -0
  183. package/dist/{paymentMethods-BnF1XYS1.mjs → paymentMethods-BsrkEbKT.mjs} +4 -16
  184. package/dist/paymentMethods-Cu2RzLgm.js +1 -0
  185. package/dist/{payments-TnRjtlOw.mjs → payments-B6Nfd6Al.mjs} +1 -1
  186. package/dist/payments-Bbm1HMQj.js +1 -0
  187. package/dist/pricing-3W7XLwL6.js +1 -0
  188. package/dist/pricing-CJxS2hr2.mjs +17 -0
  189. package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
  190. package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
  191. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
  192. package/dist/screens/Checkout/Checkout.cjs +1 -0
  193. package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1250 -610
  194. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
  195. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
  196. package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +33 -36
  197. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
  198. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
  199. package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +21 -28
  200. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
  201. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
  202. package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +17 -29
  203. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
  204. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
  205. package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs} +33 -37
  206. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
  207. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
  208. package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +32 -41
  209. package/dist/slots.es-BpwYO3A3.mjs +18 -0
  210. package/dist/slots.es-Dq1PTUOv.js +1 -0
  211. package/dist/sorting.es-CjTrRfSW.mjs +105 -0
  212. package/dist/sorting.es-RyvcgbSL.js +1 -0
  213. package/dist/subscriptions-B4BOzLxR.js +1 -0
  214. package/dist/{subscriptions-vEE4Y7qm.mjs → subscriptions-C2C4WTuI.mjs} +7 -7
  215. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  216. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  217. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
  218. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  219. package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
  220. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
  221. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
  222. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
  223. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
  224. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
  225. package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
  226. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
  227. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
  228. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
  229. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
  230. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
  231. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
  232. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
  233. package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
  234. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
  235. package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
  236. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
  237. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
  238. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
  239. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
  240. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
  241. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
  242. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
  243. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
  244. package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
  245. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
  246. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
  247. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
  248. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
  249. package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
  250. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
  251. package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
  252. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
  253. package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
  254. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
  255. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
  256. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
  257. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
  258. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
  259. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
  260. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
  261. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
  262. package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
  263. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
  264. package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
  265. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
  266. package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
  267. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
  268. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
  269. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
  270. package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
  271. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
  272. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
  273. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
  274. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
  275. package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
  276. package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
  277. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
  278. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
  279. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
  280. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
  281. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
  282. package/dist/types/components/providers/index.d.ts +9 -0
  283. package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
  284. package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
  285. package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
  286. package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
  287. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
  288. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
  289. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
  290. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
  291. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
  292. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
  293. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
  294. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
  295. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
  296. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
  297. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
  298. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
  299. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
  300. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
  301. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
  302. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
  303. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
  304. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  305. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
  306. package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
  307. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
  308. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
  309. package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
  310. package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
  311. package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
  312. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
  313. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
  314. package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
  315. package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
  316. package/dist/types/config/config.beta.d.ts +2 -0
  317. package/dist/types/config/config.dev.d.ts +2 -0
  318. package/dist/types/config/config.live.d.ts +2 -0
  319. package/dist/types/config/internalEnvironments.d.ts +11 -0
  320. package/dist/types/config/internalEnvironments.published.d.ts +7 -0
  321. package/dist/types/config/lib.d.ts +6 -0
  322. package/dist/types/config/types.d.ts +13 -0
  323. package/dist/types/index.d.ts +23 -0
  324. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
  325. package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
  326. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
  327. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
  328. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
  329. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
  330. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
  331. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
  332. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
  333. package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
  334. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
  335. package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
  336. package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
  337. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
  338. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
  339. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
  340. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
  341. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
  342. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
  343. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
  344. package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
  345. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
  346. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
  347. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
  348. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
  349. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
  350. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
  351. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
  352. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
  353. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
  354. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
  355. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
  356. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
  357. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  358. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
  359. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
  360. package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
  361. package/dist/types/public/core/action-request.types.d.ts +55 -0
  362. package/dist/types/public/core/configuration.d.ts +3 -0
  363. package/dist/types/public/core/index.d.ts +14 -0
  364. package/dist/types/public/core/registry.ce.d.ts +8 -0
  365. package/dist/types/public/core/registry.d.ts +6 -0
  366. package/dist/types/public/core/types.d.ts +120 -0
  367. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
  368. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
  369. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
  370. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
  371. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
  372. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
  373. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
  374. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
  375. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
  376. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
  377. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
  378. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
  379. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
  380. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
  381. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
  382. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
  383. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
  384. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
  385. package/dist/types/public/screens/types.d.ts +4 -0
  386. package/dist/types/public/types/index.d.ts +23 -0
  387. package/dist/types/services/invoices.types.d.ts +26 -0
  388. package/dist/types/services/paymentMethods.types.d.ts +31 -0
  389. package/dist/types/services/portals.types.d.ts +68 -0
  390. package/dist/types/services/requests.types.d.ts +24 -0
  391. package/dist/types/translations/supported.d.ts +1 -0
  392. package/dist/types/types/EntryBaseProps.d.ts +10 -0
  393. package/dist/types/types/errors.d.ts +7 -0
  394. package/dist/types/types/subscription.d.ts +4 -0
  395. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
  396. package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
  397. package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
  398. package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
  399. package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
  400. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
  401. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
  402. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
  403. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
  404. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
  405. package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
  406. package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
  407. package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
  408. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
  409. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
  410. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
  411. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
  412. package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
  413. package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
  414. package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
  415. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
  416. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
  417. package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
  418. package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
  419. package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
  420. package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
  421. package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
  422. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
  423. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
  424. package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
  425. package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
  426. package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
  427. package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
  428. package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
  429. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
  430. package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
  431. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
  432. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
  433. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
  434. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
  435. package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
  436. package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
  437. package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
  438. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
  439. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
  440. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
  441. package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
  442. package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
  443. package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
  444. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
  445. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
  446. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
  447. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
  448. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
  449. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
  450. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
  451. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
  452. package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
  453. package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
  454. package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
  455. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
  456. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
  457. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
  458. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
  459. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
  460. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
  461. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
  462. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
  463. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
  464. package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
  465. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
  466. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
  467. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
  468. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
  469. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
  470. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
  471. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
  472. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
  473. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
  474. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
  475. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
  476. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
  477. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
  478. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
  479. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
  480. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
  481. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
  482. package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
  483. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
  484. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
  485. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
  486. package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
  487. package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
  488. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
  489. package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
  490. package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
  491. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
  492. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
  493. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
  494. package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
  495. package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
  496. package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
  497. package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
  498. package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
  499. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
  500. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
  501. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
  502. package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
  503. package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
  504. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
  505. package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
  506. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
  507. package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
  508. package/dist/{useActionDispatchProvider-BlEf-RZ5.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
  509. package/dist/{useCustomer-Cw8LXT6S.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
  510. package/dist/{useCustomer-C1XTqmrQ.js → useCustomer-DYCpgA-3.js} +1 -1
  511. package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
  512. package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
  513. package/dist/{useIncrementalLoading-8WtKZ-mP.mjs → useIncrementalLoading-BK9pRYAU.mjs} +5 -4
  514. package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
  515. package/dist/{useInvoiceData-BrxMo4Zt.js → useInvoiceData-BczeMpuk.js} +1 -1
  516. package/dist/{useInvoiceData-Cy_ysMsq.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
  517. package/dist/{useInvoicesList-DMsZn1tE.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
  518. package/dist/useInvoicesList-rMg-8LbH.js +1 -0
  519. package/dist/{useLoadInitialData-BP1v7qhd.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
  520. package/dist/useLoadInitialData-CiJldX50.js +1 -0
  521. package/dist/{usePaymentMethodOptions-CWfGvW0U.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -9
  522. package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
  523. package/dist/{usePaymentMethods-Cyk4cjoE.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
  524. package/dist/{usePaymentMethods-CAFMvSOr.js → usePaymentMethods-CFL3hFW_.js} +1 -1
  525. package/dist/usePayments-BKTNn_RN.js +1 -0
  526. package/dist/usePayments-BlliAt1E.mjs +262 -0
  527. package/dist/{usePortal-0NDlbFr9.mjs → usePortal-eyA4OqjU.mjs} +1 -1
  528. package/dist/usePortal-fhri8neB.js +1 -0
  529. package/dist/useService-D73FNBjT.js +1 -0
  530. package/dist/{useService-CqfJi5ST.mjs → useService-W3Kxems4.mjs} +24 -5
  531. package/dist/useSubscription--IGLmLS6.mjs +250 -0
  532. package/dist/useSubscription-V3KSuhOY.js +1 -0
  533. package/package.json +55 -45
  534. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +0 -1
  535. package/dist/ApiStatus-CyNDp_op.mjs +0 -9
  536. package/dist/ApiStatus-oqvUEWJx.js +0 -1
  537. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js +0 -1
  538. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +0 -1
  539. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +0 -1
  540. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +0 -53
  541. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +0 -1
  542. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +0 -1
  543. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js +0 -1
  544. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs +0 -27
  545. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +0 -1
  546. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +0 -1
  547. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +0 -1
  548. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +0 -1
  549. package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +0 -1
  550. package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +0 -1
  551. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +0 -1
  552. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +0 -1
  553. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs +0 -217
  554. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +0 -1
  555. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +0 -37
  556. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +0 -1
  557. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +0 -1
  558. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +0 -1
  559. package/dist/component--Y7Igv5i.mjs +0 -1022
  560. package/dist/component-DIy1hvJM.js +0 -1
  561. package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
  562. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
  563. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
  564. package/dist/components/Invoice/Invoice.cjs.js +0 -1
  565. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
  566. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
  567. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
  568. package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
  569. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
  570. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
  571. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
  572. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
  573. package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
  574. package/dist/core/index.cjs.js +0 -1
  575. package/dist/core/index.es.js +0 -6
  576. package/dist/customer-brfznoHY.js +0 -1
  577. package/dist/en-US-BvOHPudj.js +0 -1
  578. package/dist/index-BMWWP8xj.js +0 -1
  579. package/dist/index-Do7kzLpg.mjs +0 -265
  580. package/dist/index.cjs.js +0 -1
  581. package/dist/index.es.js +0 -51
  582. package/dist/invoices-Cf3dSYSj.js +0 -1
  583. package/dist/nl-NL-COGUFg60.js +0 -1
  584. package/dist/paymentMethods-DVDC_WfL.js +0 -1
  585. package/dist/payments-DVZFO5yb.js +0 -1
  586. package/dist/pricing-CuYndX6t.js +0 -1
  587. package/dist/pricing-GwLCiSzs.mjs +0 -19
  588. package/dist/registry-Ck0Gb6rj.mjs +0 -153
  589. package/dist/registry-Cra6yoB4.js +0 -1
  590. package/dist/screens/Checkout/Checkout.cjs.js +0 -1
  591. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
  592. package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
  593. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
  594. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
  595. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
  596. package/dist/solvimon-web.css +0 -1
  597. package/dist/subscriptions-BFCKVHnP.js +0 -1
  598. package/dist/useActionDispatchProvider-aJOy3kr1.js +0 -1
  599. package/dist/useIncrementalLoading-CkY2klIW.js +0 -1
  600. package/dist/useInvoicesList-DmisMQzy.js +0 -1
  601. package/dist/useLoadInitialData-_BjCD0Jc.js +0 -1
  602. package/dist/usePaymentMethodOptions-xeSTmaVo.js +0 -1
  603. package/dist/usePayments-BieVBaz-.js +0 -1
  604. package/dist/usePayments-D88XSZfS.mjs +0 -42
  605. package/dist/usePortal-B954nyEB.js +0 -1
  606. package/dist/useService-BiljI7XA.js +0 -1
  607. package/dist/useSubscription-9rJpFNUF.mjs +0 -29
  608. package/dist/useSubscription-k3limdu_.js +0 -1
  609. package/dist/vendor-ui-Dfh3_g4q.js +0 -1
  610. package/dist/vendor-ui-ItGf7wJV.mjs +0 -29938
@@ -1,27 +1,728 @@
1
- import { ref, computed, onMounted, watch, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, useModel, createElementBlock, withModifiers, Fragment, createCommentVNode, createSlots, normalizeClass, mergeModels, renderSlot, renderList, toRef, nextTick, mergeProps, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
2
- import { aa as taxId, q as isEqual, ab as convertDateRangeToTimePeriod, R as useValidation, S as objectDiff, u as useIntl, a3 as _sfc_main$m, a as _sfc_main$n, ac as isEUCountry, ad as isValidCountryCode, ae as getCountryNameByCode, b as _sfc_main$o, W as _sfc_main$p, X as _sfc_main$q, k as _sfc_main$r, a7 as _sfc_main$s, Y as _sfc_main$t, af as _sfc_main$u, ag as _sfc_main$v, ah as _sfc_main$w, ai as TooltipContent, aj as _sfc_main$x, a2 as formatBillingPeriod, E as formatAmount, ak as useTimePeriod, l as _sfc_main$z, H as _sfc_main$B, al as _sfc_main$C, a1 as _sfc_main$D, K as _sfc_main$F, am as _sfc_main$G, c as _sfc_main$H, G as usePricingItem, an as uniqueId, D as _sfc_main$K } from "../../vendor-ui-ItGf7wJV.mjs";
3
- import { a as useLogger, _ as _sfc_main$N, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
4
- import { c as createSubscriptionsService } from "../../subscriptions-vEE4Y7qm.mjs";
5
- import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
6
- import { c as createInvoicesService } from "../../invoices-Dk-z04lg.mjs";
1
+ import { defineComponent, createPropsRestProxy, computed, openBlock, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, useModel, ref, onMounted, watch, createSlots, createVNode, normalizeClass, createElementVNode, createCommentVNode, renderSlot, mergeModels, inject, createElementBlock, withModifiers, Fragment, renderList, toRef, nextTick, withDirectives, withKeys, vShow, defineAsyncComponent } from "vue";
2
+ import { c as countryData } from "../../countryData.es--zJAd6LA.mjs";
3
+ import { _ as _sfc_main$r, I as I18N_INJECTION_KEY, b as useLogger, u as useIntl, d as _sfc_main$Q, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
4
+ import { u as useTimePeriod } from "../../PricingGroupRangeInput.vue.es-A6eW-u2k.mjs";
5
+ import { b as formatBillingPeriod, f as formatAmount } from "../../formatting.es-D-oVnc8H.mjs";
6
+ import { a as _sfc_main$v, _ as _sfc_main$K } from "../../Button.vue.es-BrWHdiEA.mjs";
7
+ import { _ as _sfc_main$N } from "../../ErrorNotification.vue.es-C22Kt8Qn.mjs";
8
+ import { c as createSubscriptionsService } from "../../subscriptions-C2C4WTuI.mjs";
9
+ import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
10
+ import { c as convertDateRangeToTimePeriod, _ as _sfc_main$y } from "../../TrialChip.vue.es-Fp7Lqo-b.mjs";
11
+ import { a as isEqual } from "../../useService-W3Kxems4.mjs";
12
+ import { c as createInvoicesService } from "../../invoices-BSd-nKeE.mjs";
7
13
  import { g as getFirstPricingPlanScheduleOfType, b as getScheduleCustomizations, e as getPricingItemConfigMetaById } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
8
- import { r as required, e as email, a as requiredIf } from "../../index-Do7kzLpg.mjs";
14
+ import { u as useValidation, r as required, e as email, a as requiredIf, _ as _sfc_main$E } from "../../index-C5bKRt7l.mjs";
15
+ import { o as objectDiff, u as useCustomerFormLabels, _ as _sfc_main$u, a as _sfc_main$x } from "../../useCustomerFormLabels-mX5QpApD.mjs";
9
16
  import { u as useWatchDebounced } from "../../useWatchDebounced-Zmxd6InB.mjs";
10
- import { c as createPaymentMethodsService } from "../../paymentMethods-BnF1XYS1.mjs";
11
- import { u as useService } from "../../useService-CqfJi5ST.mjs";
17
+ import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
12
18
  import { c as getPricingGroupsFromExtendedPricingPlanSubscription, a as getSubscriptionName, d as getFallbackTrialAndSubscriptionStartAndEndDates } from "../../subscription-C41lG-rH.mjs";
13
- import { a as getAllPricingsFromScheduleInfos, g as getNameFromPricing } from "../../pricing-GwLCiSzs.mjs";
19
+ import { a as getAllPricingsFromScheduleInfos, b as getPricingsFromScheduleInfo, g as getNameFromPricing } from "../../pricing-CJxS2hr2.mjs";
14
20
  import { g as getQueryParam, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, e as getAdyenExpressCheckoutConfiguration, c as transformObjectToAdyenObject, d as createReturnUrl, s as safeUrlRedirect } from "../../adyen-Ba-mF3Jy.mjs";
15
- import { u as usePortal } from "../../usePortal-0NDlbFr9.mjs";
16
- import { c as createCustomerService } from "../../customer-DovIxTG1.mjs";
17
- import { _ as _sfc_main$y } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs";
18
- import { _ as _sfc_main$A } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs";
21
+ import { u as usePortal } from "../../usePortal-eyA4OqjU.mjs";
22
+ import { g as getCountryNameByCode } from "../../getCountryNameByCode.es-ymC9R46j.mjs";
23
+ import { _ as _sfc_main$w } from "../../Expand.vue.es-C4_XmqbR.mjs";
24
+ import { _ as _sfc_main$p } from "../../Input.vue.es-Dp_RH03h.mjs";
25
+ import { _ as _sfc_main$t } from "../../Section.vue.es-MEFUWCxU.mjs";
26
+ import { a as _sfc_main$q, _ as _sfc_main$s } from "../../IconButton.vue.es-DcC4f5EQ.mjs";
27
+ import { c as createCustomerService } from "../../customer-B0AMetq6.mjs";
28
+ import { c as _sfc_main$A, d as _sfc_main$G, b as _sfc_main$H, _ as _sfc_main$P } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
29
+ import { _ as _sfc_main$z, T as TooltipContent, a as _sfc_main$B } from "../../TooltipParagraph.vue.es-B5aHQv9O.mjs";
30
+ import { _ as _sfc_main$C } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs";
31
+ import { _ as _sfc_main$o } from "../../Chip.vue.es-DPGTweAr.mjs";
32
+ import { b as _sfc_main$F, u as usePricingDescription, c as _sfc_main$L, _ as _sfc_main$M, a as _sfc_main$O } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs";
33
+ import { _ as _sfc_main$D } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs";
19
34
  import { u as useViewport } from "../../useViewport-Bu0cyeSi.mjs";
20
- import { _ as _sfc_main$M } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs";
21
- import { _ as _sfc_main$E } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
22
- import { c as createPaymentsService } from "../../payments-TnRjtlOw.mjs";
23
- import { b as _sfc_main$I, _ as _sfc_main$J, a as _sfc_main$L } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs";
35
+ import { _ as _sfc_main$I } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
36
+ import { _ as _sfc_main$J } from "../../DividerText.vue.es-DMg-DNgi.mjs";
37
+ import { c as createPaymentsService } from "../../payments-B6Nfd6Al.mjs";
24
38
  import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
39
+ import { u as uniqueId } from "../../cn.es-DB5pDpxS.mjs";
40
+ import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
41
+ const EU_COUNTRIES = {
42
+ AT: "Austria",
43
+ BE: "Belgium",
44
+ BG: "Bulgaria",
45
+ CY: "Cyprus",
46
+ CZ: "Czech Republic",
47
+ DE: "Germany",
48
+ DK: "Denmark",
49
+ EE: "Estonia",
50
+ ES: "Spain",
51
+ FI: "Finland",
52
+ FR: "France",
53
+ GR: "Greece",
54
+ HR: "Croatia",
55
+ HU: "Hungary",
56
+ IE: "Ireland",
57
+ IT: "Italy",
58
+ LT: "Lithuania",
59
+ LU: "Luxembourg",
60
+ LV: "Latvia",
61
+ MT: "Malta",
62
+ NL: "Netherlands",
63
+ PL: "Poland",
64
+ PT: "Portugal",
65
+ RO: "Romania",
66
+ SE: "Sweden",
67
+ SI: "Slovenia",
68
+ SK: "Slovakia"
69
+ };
70
+ function isEUCountry(countryCode) {
71
+ return Object.keys(EU_COUNTRIES).includes(countryCode);
72
+ }
73
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
74
+ __name: "DeltaChip",
75
+ props: {
76
+ oldValue: {},
77
+ newValue: {},
78
+ color: { default: "dark" },
79
+ content: {},
80
+ dark: { type: Boolean },
81
+ removable: { type: Boolean },
82
+ size: {},
83
+ variant: {},
84
+ textClass: {},
85
+ tag: {},
86
+ hasChipBefore: { type: Boolean },
87
+ hasChipAfter: { type: Boolean }
88
+ },
89
+ setup(__props) {
90
+ const chipProps = createPropsRestProxy(__props, ["oldValue", "newValue", "color"]);
91
+ const delta = computed(() => {
92
+ const calculatedDelta = __props.newValue - __props.oldValue;
93
+ return `${calculatedDelta >= 0 ? "+" : ""}${calculatedDelta}`;
94
+ });
95
+ return (_ctx, _cache) => {
96
+ return openBlock(), createBlock(unref(_sfc_main$o), mergeProps(chipProps, {
97
+ color: __props.color,
98
+ class: "pointer-events-none select-none"
99
+ }), {
100
+ default: withCtx(() => [
101
+ createTextVNode(toDisplayString(delta.value), 1)
102
+ ]),
103
+ _: 1
104
+ }, 16, ["color"]);
105
+ };
106
+ }
107
+ });
108
+ function ownKeys(object, enumerableOnly) {
109
+ var keys = Object.keys(object);
110
+ if (Object.getOwnPropertySymbols) {
111
+ var symbols = Object.getOwnPropertySymbols(object);
112
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
113
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
114
+ })), keys.push.apply(keys, symbols);
115
+ }
116
+ return keys;
117
+ }
118
+ function _objectSpread2(target) {
119
+ for (var i = 1; i < arguments.length; i++) {
120
+ var source = null != arguments[i] ? arguments[i] : {};
121
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
122
+ _defineProperty(target, key, source[key]);
123
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
124
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
125
+ });
126
+ }
127
+ return target;
128
+ }
129
+ function _defineProperty(obj, key, value) {
130
+ if (key in obj) {
131
+ Object.defineProperty(obj, key, {
132
+ value,
133
+ enumerable: true,
134
+ configurable: true,
135
+ writable: true
136
+ });
137
+ } else {
138
+ obj[key] = value;
139
+ }
140
+ return obj;
141
+ }
142
+ function isFunction(val) {
143
+ return typeof val === "function";
144
+ }
145
+ function isObject(o) {
146
+ return o !== null && typeof o === "object" && !Array.isArray(o);
147
+ }
148
+ function normalizeValidatorObject(validator) {
149
+ return isFunction(validator.$validator) ? _objectSpread2({}, validator) : {
150
+ $validator: validator
151
+ };
152
+ }
153
+ function unwrapValidatorResponse(result) {
154
+ if (typeof result === "object") return result.$valid;
155
+ return result;
156
+ }
157
+ function unwrapNormalizedValidator(validator) {
158
+ return validator.$validator || validator;
159
+ }
160
+ function withParams($params, $validator) {
161
+ if (!isObject($params)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof $params}`);
162
+ if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
163
+ const validatorObj = normalizeValidatorObject($validator);
164
+ validatorObj.$params = _objectSpread2(_objectSpread2({}, validatorObj.$params || {}), $params);
165
+ return validatorObj;
166
+ }
167
+ function withMessage($message, $validator) {
168
+ if (!isFunction($message) && typeof unref($message) !== "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof $message}`);
169
+ if (!isObject($validator) && !isFunction($validator)) throw new Error(`[@vuelidate/validators]: Validator must be a function or object with $validator parameter`);
170
+ const validatorObj = normalizeValidatorObject($validator);
171
+ validatorObj.$message = $message;
172
+ return validatorObj;
173
+ }
174
+ function withAsync($validator) {
175
+ let $watchTargets = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
176
+ const validatorObj = normalizeValidatorObject($validator);
177
+ return _objectSpread2(_objectSpread2({}, validatorObj), {}, {
178
+ $async: true,
179
+ $watchTargets
180
+ });
181
+ }
182
+ function forEach(validators) {
183
+ return {
184
+ $validator(collection) {
185
+ for (var _len = arguments.length, others = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
186
+ others[_key - 1] = arguments[_key];
187
+ }
188
+ return unref(collection).reduce((previous, collectionItem, index) => {
189
+ const collectionEntryResult = Object.entries(collectionItem).reduce((all, _ref) => {
190
+ let [property, $model] = _ref;
191
+ const innerValidators = validators[property] || {};
192
+ const propertyResult = Object.entries(innerValidators).reduce((all2, _ref2) => {
193
+ let [validatorName, currentValidator] = _ref2;
194
+ const validatorFunction = unwrapNormalizedValidator(currentValidator);
195
+ const $response = validatorFunction.call(this, $model, collectionItem, index, ...others);
196
+ const $valid = unwrapValidatorResponse($response);
197
+ all2.$data[validatorName] = $response;
198
+ all2.$data.$invalid = !$valid || !!all2.$data.$invalid;
199
+ all2.$data.$error = all2.$data.$invalid;
200
+ if (!$valid) {
201
+ let $message = currentValidator.$message || "";
202
+ const $params = currentValidator.$params || {};
203
+ if (typeof $message === "function") {
204
+ $message = $message({
205
+ $pending: false,
206
+ $invalid: !$valid,
207
+ $params,
208
+ $model,
209
+ $response
210
+ });
211
+ }
212
+ all2.$errors.push({
213
+ $property: property,
214
+ $message,
215
+ $params,
216
+ $response,
217
+ $model,
218
+ $pending: false,
219
+ $validator: validatorName
220
+ });
221
+ }
222
+ return {
223
+ $valid: all2.$valid && $valid,
224
+ $data: all2.$data,
225
+ $errors: all2.$errors
226
+ };
227
+ }, {
228
+ $valid: true,
229
+ $data: {},
230
+ $errors: []
231
+ });
232
+ all.$data[property] = propertyResult.$data;
233
+ all.$errors[property] = propertyResult.$errors;
234
+ return {
235
+ $valid: all.$valid && propertyResult.$valid,
236
+ $data: all.$data,
237
+ $errors: all.$errors
238
+ };
239
+ }, {
240
+ $valid: true,
241
+ $data: {},
242
+ $errors: {}
243
+ });
244
+ return {
245
+ $valid: previous.$valid && collectionEntryResult.$valid,
246
+ $data: previous.$data.concat(collectionEntryResult.$data),
247
+ $errors: previous.$errors.concat(collectionEntryResult.$errors)
248
+ };
249
+ }, {
250
+ $valid: true,
251
+ $data: [],
252
+ $errors: []
253
+ });
254
+ },
255
+ $message: (_ref3) => {
256
+ let {
257
+ $response
258
+ } = _ref3;
259
+ return $response ? $response.$errors.map((context) => {
260
+ return Object.values(context).map((errors) => errors.map((error) => error.$message)).reduce((a, b) => a.concat(b), []);
261
+ }) : [];
262
+ }
263
+ };
264
+ }
265
+ const req = (value) => {
266
+ value = unref(value);
267
+ if (Array.isArray(value)) return !!value.length;
268
+ if (value === void 0 || value === null) {
269
+ return false;
270
+ }
271
+ if (value === false) {
272
+ return true;
273
+ }
274
+ if (value instanceof Date) {
275
+ return !isNaN(value.getTime());
276
+ }
277
+ if (typeof value === "object") {
278
+ for (let _ in value) return true;
279
+ return false;
280
+ }
281
+ return !!String(value).length;
282
+ };
283
+ const len = (value) => {
284
+ value = unref(value);
285
+ if (Array.isArray(value)) return value.length;
286
+ if (typeof value === "object") {
287
+ return Object.keys(value).length;
288
+ }
289
+ return String(value).length;
290
+ };
291
+ function regex() {
292
+ for (var _len = arguments.length, expr = new Array(_len), _key = 0; _key < _len; _key++) {
293
+ expr[_key] = arguments[_key];
294
+ }
295
+ return (value) => {
296
+ value = unref(value);
297
+ return !req(value) || expr.every((reg) => {
298
+ reg.lastIndex = 0;
299
+ return reg.test(value);
300
+ });
301
+ };
302
+ }
303
+ var common = /* @__PURE__ */ Object.freeze({
304
+ __proto__: null,
305
+ forEach,
306
+ len,
307
+ normalizeValidatorObject,
308
+ regex,
309
+ req,
310
+ unwrap: unref,
311
+ unwrapNormalizedValidator,
312
+ unwrapValidatorResponse,
313
+ withAsync,
314
+ withMessage,
315
+ withParams
316
+ });
317
+ regex(/^[a-zA-Z]*$/);
318
+ regex(/^[a-zA-Z0-9]*$/);
319
+ regex(/^\d*(\.\d+)?$/);
320
+ const emailRegex = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
321
+ regex(emailRegex);
322
+ const urlRegex = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
323
+ regex(urlRegex);
324
+ regex(/(^[0-9]*$)|(^-[0-9]+$)/);
325
+ regex(/^[-]?\d*(\.\d+)?$/);
326
+ const _hoisted_1$k = { class: "flex items-center gap-1.5 text-gray-800" };
327
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
328
+ __name: "StepInput",
329
+ props: /* @__PURE__ */ mergeModels({
330
+ step: { default: 1 },
331
+ min: { default: 0 },
332
+ max: {},
333
+ initialValue: { default: 1 },
334
+ unitName: {},
335
+ showDelta: { type: Boolean, default: false },
336
+ size: { default: "md" },
337
+ name: {},
338
+ required: { type: Boolean },
339
+ label: {},
340
+ error: {},
341
+ disabled: { type: Boolean, default: false }
342
+ }, {
343
+ "modelValue": { required: true },
344
+ "modelModifiers": {}
345
+ }),
346
+ emits: ["update:modelValue"],
347
+ setup(__props) {
348
+ const props = __props;
349
+ const model = useModel(__props, "modelValue");
350
+ const contentEditableRef = ref(null);
351
+ const computedUnitName = computed(() => {
352
+ if (!props.unitName) return void 0;
353
+ return props.unitName[model.value === 1 ? "singular" : "plural"];
354
+ });
355
+ const handleAdd = () => {
356
+ if (props.max && model.value + props.step > props.max) {
357
+ return;
358
+ }
359
+ model.value += props.step;
360
+ };
361
+ const handleSubstract = () => {
362
+ if (model.value - props.step < props.min) {
363
+ return;
364
+ }
365
+ model.value -= props.step;
366
+ };
367
+ function setContentAndMoveCaretToEnd(content) {
368
+ var _a;
369
+ const el = (_a = contentEditableRef.value) == null ? void 0 : _a.el;
370
+ if (!el) return;
371
+ const value = parseInt(`${content}`);
372
+ model.value = value;
373
+ el.innerText = `${value}`;
374
+ el.focus();
375
+ const range = document.createRange();
376
+ range.selectNodeContents(el);
377
+ range.collapse(false);
378
+ const selection = window.getSelection();
379
+ selection == null ? void 0 : selection.removeAllRanges();
380
+ selection == null ? void 0 : selection.addRange(range);
381
+ }
382
+ const handleInputUpdate = (event) => {
383
+ const target = event.target;
384
+ if (target instanceof HTMLElement) {
385
+ setContentAndMoveCaretToEnd(target.innerText);
386
+ }
387
+ };
388
+ const isIncreaseButtonEnabled = computed(() => {
389
+ if (props.disabled) {
390
+ return false;
391
+ }
392
+ if (props.max) {
393
+ return model.value + props.step < props.max;
394
+ }
395
+ return true;
396
+ });
397
+ const isDecreaseButtonEnabled = computed(() => {
398
+ return props.disabled ? false : model.value - props.step >= props.min;
399
+ });
400
+ function handleFocusContentEditable() {
401
+ var _a;
402
+ const el = (_a = contentEditableRef.value) == null ? void 0 : _a.el;
403
+ if (!el) return;
404
+ el.focus();
405
+ const range = document.createRange();
406
+ range.selectNodeContents(el);
407
+ const selection = window.getSelection();
408
+ selection == null ? void 0 : selection.removeAllRanges();
409
+ selection == null ? void 0 : selection.addRange(range);
410
+ }
411
+ onMounted(() => {
412
+ var _a;
413
+ const el = (_a = contentEditableRef.value) == null ? void 0 : _a.el;
414
+ if (!el) return;
415
+ el.innerText = `${model.value}`;
416
+ });
417
+ watch(
418
+ () => model.value,
419
+ (value) => {
420
+ setContentAndMoveCaretToEnd(value);
421
+ }
422
+ );
423
+ return (_ctx, _cache) => {
424
+ return openBlock(), createBlock(_sfc_main$p, {
425
+ modelValue: model.value,
426
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
427
+ type: "number",
428
+ class: "text-transparent [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
429
+ "prefix-class": {
430
+ "!px-0 w-5": __props.size === "sm",
431
+ "!px-0 w-6": __props.size === "md",
432
+ "!px-0 w-7": __props.size === "lg"
433
+ },
434
+ "suffix-class": {
435
+ "!px-0 w-5": __props.size === "sm",
436
+ "!px-0 w-6": __props.size === "md",
437
+ "!px-0 w-7": __props.size === "lg"
438
+ },
439
+ size: __props.size,
440
+ label: __props.label,
441
+ disabled: __props.disabled,
442
+ name: __props.name,
443
+ required: __props.required
444
+ }, createSlots({
445
+ prefix: withCtx(() => [
446
+ createElementVNode("div", {
447
+ class: "absolute inset-0 flex items-center justify-center",
448
+ onMousedown: handleFocusContentEditable
449
+ }, [
450
+ createElementVNode("div", _hoisted_1$k, [
451
+ createVNode(_sfc_main$r, {
452
+ ref_key: "contentEditableRef",
453
+ ref: contentEditableRef,
454
+ tag: "span",
455
+ variant: __props.size === "sm" ? "body" : "body-lg",
456
+ contenteditable: !__props.disabled,
457
+ class: normalizeClass(["outline-none", { "pointer-events-none select-none": __props.disabled }]),
458
+ weight: "semibold",
459
+ onInput: handleInputUpdate
460
+ }, null, 8, ["variant", "contenteditable", "class"]),
461
+ computedUnitName.value ? (openBlock(), createBlock(_sfc_main$r, {
462
+ key: 0,
463
+ tag: "span",
464
+ shade: "lighter",
465
+ class: "pointer-events-none select-none"
466
+ }, {
467
+ default: withCtx(() => [
468
+ createTextVNode(toDisplayString(" ") + toDisplayString(computedUnitName.value), 1)
469
+ ]),
470
+ _: 1
471
+ })) : createCommentVNode("", true),
472
+ __props.showDelta ? (openBlock(), createBlock(_sfc_main$n, {
473
+ key: 1,
474
+ "old-value": props.initialValue,
475
+ "new-value": model.value,
476
+ class: "pointer-events-none ml-0.5 select-none"
477
+ }, null, 8, ["old-value", "new-value"])) : createCommentVNode("", true)
478
+ ])
479
+ ], 32),
480
+ createVNode(_sfc_main$q, {
481
+ disabled: !isDecreaseButtonEnabled.value,
482
+ type: "button",
483
+ color: "gray",
484
+ variant: "ghost",
485
+ size: "sm",
486
+ class: normalizeClass(["!h-full select-none rounded-br-none rounded-tr-none", { "!w-7": __props.size === "lg", "!w-5": __props.size === "sm", "!w-6": __props.size === "md" }]),
487
+ icon: "remove",
488
+ onMousedown: handleSubstract
489
+ }, null, 8, ["disabled", "class"])
490
+ ]),
491
+ suffix: withCtx(() => [
492
+ createVNode(_sfc_main$q, {
493
+ disabled: !isIncreaseButtonEnabled.value,
494
+ type: "button",
495
+ color: "gray",
496
+ variant: "ghost",
497
+ size: "sm",
498
+ class: normalizeClass(["!h-full select-none rounded-bl-none rounded-tl-none", { "!w-7": __props.size === "lg", "!w-5": __props.size === "sm", "!w-6": __props.size === "md" }]),
499
+ icon: "add",
500
+ onMousedown: handleAdd
501
+ }, null, 8, ["disabled", "class"])
502
+ ]),
503
+ _: 2
504
+ }, [
505
+ _ctx.$slots.helper ? {
506
+ name: "helper",
507
+ fn: withCtx(() => [
508
+ renderSlot(_ctx.$slots, "helper")
509
+ ]),
510
+ key: "0"
511
+ } : void 0
512
+ ]), 1032, ["modelValue", "prefix-class", "suffix-class", "size", "label", "disabled", "name", "required"]);
513
+ };
514
+ }
515
+ });
516
+ function isValidCountryCode(code) {
517
+ return !!countryData.find((item) => item.key === code);
518
+ }
519
+ const taxIdMap = {
520
+ AT: {
521
+ regex: /^ATU\d{8}$/,
522
+ prefix: "AT",
523
+ example: "ATU12345678"
524
+ },
525
+ BE: {
526
+ regex: /^BE0?\d{9}$/,
527
+ prefix: "BE",
528
+ example: "BE0123456789"
529
+ },
530
+ BG: {
531
+ regex: /^BG\d{9,10}$/,
532
+ prefix: "BG",
533
+ example: "BG123456789"
534
+ },
535
+ HR: {
536
+ regex: /^HR\d{11}$/,
537
+ prefix: "HR",
538
+ example: "HR12345678901"
539
+ },
540
+ CY: {
541
+ regex: /^CY\d{8}[A-Z]$/,
542
+ prefix: "CY",
543
+ example: "CY12345678X"
544
+ },
545
+ CZ: {
546
+ regex: /^CZ\d{8,10}$/,
547
+ prefix: "CZ",
548
+ example: "CZ12345678"
549
+ },
550
+ DE: {
551
+ regex: /^DE\d{9}$/,
552
+ prefix: "DE",
553
+ example: "DE123456789"
554
+ },
555
+ DK: {
556
+ regex: /^DK\d{8}$/,
557
+ prefix: "DK",
558
+ example: "DK12345678"
559
+ },
560
+ EE: {
561
+ regex: /^EE\d{9}$/,
562
+ prefix: "EE",
563
+ example: "EE123456789"
564
+ },
565
+ GR: {
566
+ regex: /^(EL|GR)\d{9}$/,
567
+ prefix: "GR",
568
+ example: "GR123456789"
569
+ },
570
+ ES: {
571
+ regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
572
+ prefix: "ES",
573
+ example: "ESX1234567X"
574
+ },
575
+ FI: {
576
+ regex: /^FI\d{8}$/,
577
+ prefix: "FI",
578
+ example: "FI12345678"
579
+ },
580
+ FR: {
581
+ regex: /^FR[0-9A-Z]{2}\d{9}$/,
582
+ prefix: "FR",
583
+ example: "FRXX123456789"
584
+ },
585
+ HU: {
586
+ regex: /^HU\d{8}$/,
587
+ prefix: "HU",
588
+ example: "HU12345678"
589
+ },
590
+ IE: {
591
+ regex: /^IE[0-9A-Z]{8,9}$/,
592
+ prefix: "IE",
593
+ example: "IE1234567A"
594
+ },
595
+ IS: {
596
+ regex: /^IS\d{5}$/,
597
+ prefix: "IS",
598
+ example: "IS12345"
599
+ },
600
+ IT: {
601
+ regex: /^IT\d{11}$/,
602
+ prefix: "IT",
603
+ example: "IT12345678901"
604
+ },
605
+ LT: {
606
+ regex: /^LT(\d{9}|\d{12})$/,
607
+ prefix: "LT",
608
+ example: "LT123456789 or LT123456789012"
609
+ },
610
+ LU: {
611
+ regex: /^LU\d{8}$/,
612
+ prefix: "LU",
613
+ example: "LU12345678"
614
+ },
615
+ LV: {
616
+ regex: /^LV\d{11}$/,
617
+ prefix: "LV",
618
+ example: "LV12345678901"
619
+ },
620
+ ME: {
621
+ regex: /^ME\d{9}$/,
622
+ prefix: "ME",
623
+ example: "ME123456789"
624
+ },
625
+ MT: {
626
+ regex: /^MT\d{8}$/,
627
+ prefix: "MT",
628
+ example: "MT12345678"
629
+ },
630
+ NL: {
631
+ regex: /^NL\d{9}B\d{2}$/,
632
+ prefix: "NL",
633
+ example: "NL123456789B01"
634
+ },
635
+ PL: {
636
+ regex: /^PL\d{10}$/,
637
+ prefix: "PL",
638
+ example: "PL1234567890"
639
+ },
640
+ PT: {
641
+ regex: /^PT\d{9}$/,
642
+ prefix: "PT",
643
+ example: "PT123456789"
644
+ },
645
+ RO: {
646
+ regex: /^RO\d{2,10}$/,
647
+ prefix: "RO",
648
+ example: "RO1234567890"
649
+ },
650
+ RU: {
651
+ regex: /^RU(\d{9}|\d{10}|\d{12})$/,
652
+ prefix: "RU",
653
+ example: "RU123456789 or RU1234567890 or RU123456789012"
654
+ },
655
+ SE: {
656
+ regex: /^SE\d{10}01$/,
657
+ prefix: "SE",
658
+ example: "SE123456789001"
659
+ },
660
+ SI: {
661
+ regex: /^SI\d{8}$/,
662
+ prefix: "SI",
663
+ example: "SI12345678"
664
+ },
665
+ SK: {
666
+ regex: /^SK\d{10}$/,
667
+ prefix: "SK",
668
+ example: "SK1234567890"
669
+ },
670
+ CH: {
671
+ regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
672
+ prefix: "CHE",
673
+ example: "CHE123456789MWST"
674
+ },
675
+ NO: {
676
+ regex: /^NO\d{9}MVA$/,
677
+ prefix: "NO",
678
+ example: "NO123456789MVA"
679
+ },
680
+ GB: {
681
+ regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
682
+ prefix: "GB",
683
+ example: "GB123456789"
684
+ },
685
+ XI: {
686
+ regex: /^XI(\d{9}|\d{12})$/,
687
+ prefix: "XI",
688
+ example: "XI123456789"
689
+ }
690
+ };
691
+ const taxIdValidator = (value) => {
692
+ if (!value || typeof value !== "string" || value.trim() === "") {
693
+ return true;
694
+ }
695
+ return Object.values(taxIdMap).some((entry) => entry.regex.test(value));
696
+ };
697
+ const getTaxIdMessage = ({ $model }) => {
698
+ if (!$model || typeof $model !== "string" || $model.trim() === "") {
699
+ return "";
700
+ }
701
+ const intl = inject(I18N_INJECTION_KEY, null);
702
+ if (!intl) {
703
+ return "Invalid tax ID";
704
+ }
705
+ const { formatMessage } = intl;
706
+ const matchingEntry = Object.values(taxIdMap).find(
707
+ (entry) => $model.toUpperCase().startsWith(entry.prefix.toUpperCase())
708
+ );
709
+ if (matchingEntry) {
710
+ return formatMessage(
711
+ {
712
+ defaultMessage: "Invalid tax ID format. Example: {example}",
713
+ id: "form_validation.tax_id.invalid_format",
714
+ description: "Error message when tax ID format is invalid but prefix matches"
715
+ },
716
+ { example: matchingEntry.example }
717
+ );
718
+ }
719
+ return formatMessage({
720
+ defaultMessage: "Invalid tax ID",
721
+ id: "taxId.invalid",
722
+ description: "Error message when tax ID is invalid"
723
+ });
724
+ };
725
+ const taxId = common.withMessage(getTaxIdMessage, taxIdValidator);
25
726
  const EMPTY_LEGAL_ENTITY_NAME = "preview";
26
727
  const EMPTY_COUNTRY = "NL";
27
728
  const getCustomerAddress = (customer) => {
@@ -626,40 +1327,6 @@ const getInitialState = (initialState = {}) => {
626
1327
  function isCheckoutFormStateKey(key) {
627
1328
  return key in getInitialState();
628
1329
  }
629
- const usePaymentMethodOptions = () => {
630
- const cachedPayload = ref();
631
- const { getPaymentMethodOptions } = createPaymentMethodsService();
632
- const initialValue = [];
633
- const {
634
- data: paymentMethodOptions,
635
- execute,
636
- isPending
637
- } = useService({
638
- initialValue,
639
- service: getPaymentMethodOptions
640
- });
641
- const loadPaymentMethodOptions = async ({
642
- subscriptionId,
643
- country,
644
- amount
645
- }) => {
646
- const payload = {
647
- subscriptionId,
648
- country,
649
- amount
650
- };
651
- if (isEqual(payload, cachedPayload.value)) {
652
- return;
653
- }
654
- cachedPayload.value = payload;
655
- await execute(payload);
656
- };
657
- return {
658
- loadPaymentMethodOptions,
659
- paymentMethodOptions,
660
- isPending
661
- };
662
- };
663
1330
  function withPreselectedEnabledPricings(subscription, enabledPricingIds = void 0) {
664
1331
  const result = enabledPricingIds ?? [];
665
1332
  const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
@@ -685,6 +1352,41 @@ function isSubscriptionWithAddonProducts(subscription) {
685
1352
  const pricingGroups = getPricingGroupsFromExtendedPricingPlanSubscription(subscription);
686
1353
  return pricings.some((pricing) => pricing.product_type === "ADDON") || pricingGroups.some((pricingGroup) => pricingGroup.object_type === "ADDON");
687
1354
  }
1355
+ const FALLBACK_SEATS_NUMBER = "1";
1356
+ const getConfigsOfBillingPeriods = (billingPeriodConfigs) => (billingPeriodConfigs ?? []).flatMap(
1357
+ (billingPeriodConfig) => billingPeriodConfig.configs ?? []
1358
+ );
1359
+ const getPricingItemConfigs = (item) => [
1360
+ ...item.configs ?? [],
1361
+ ...getConfigsOfBillingPeriods(item.billing_period_configs),
1362
+ ...(item.pricing_currency_configs ?? []).flatMap((currencyConfig) => [
1363
+ ...currencyConfig.configs ?? [],
1364
+ ...getConfigsOfBillingPeriods(currencyConfig.billing_period_configs)
1365
+ ])
1366
+ ];
1367
+ function getDefaultSeatsNumbersById(scheduleInfo) {
1368
+ const configs = getPricingsFromScheduleInfo(scheduleInfo).flatMap((pricing) => pricing.items ?? []).flatMap(getPricingItemConfigs);
1369
+ return new Map(
1370
+ configs.flatMap(
1371
+ (config) => {
1372
+ var _a;
1373
+ return ((_a = config.default_seats_value) == null ? void 0 : _a.number) ? [[config.id, config.default_seats_value.number]] : [];
1374
+ }
1375
+ )
1376
+ );
1377
+ }
1378
+ function getInitialSeatsValues(scheduleInfo) {
1379
+ var _a;
1380
+ const seatsValues = (_a = scheduleInfo == null ? void 0 : scheduleInfo.pricing_plan_schedule) == null ? void 0 : _a.seats_values;
1381
+ if (!scheduleInfo || !(seatsValues == null ? void 0 : seatsValues.length)) {
1382
+ return void 0;
1383
+ }
1384
+ const defaultNumbers = scheduleInfo.pricing_plan_version ? getDefaultSeatsNumbersById(scheduleInfo) : /* @__PURE__ */ new Map();
1385
+ return seatsValues.map(({ pricing_item_config_id, number }) => ({
1386
+ pricing_item_config_id,
1387
+ number: number || defaultNumbers.get(pricing_item_config_id) || FALLBACK_SEATS_NUMBER
1388
+ }));
1389
+ }
688
1390
  const REDIRECT_FORM_STATE_KEY = "solvimon_checkout_redirect_state";
689
1391
  function useCheckoutView({
690
1392
  initialCountry,
@@ -702,9 +1404,34 @@ function useCheckoutView({
702
1404
  });
703
1405
  const {
704
1406
  paymentMethodOptions,
705
- loadPaymentMethodOptions,
706
- isPending: isPaymentMethodsPending
1407
+ get: loadPaymentMethodOptions,
1408
+ isPending: isPaymentMethodsPending,
1409
+ error: paymentMethodOptionsError
707
1410
  } = usePaymentMethodOptions();
1411
+ const loadPaymentMethodOptionsFor = async (country, amountValue) => {
1412
+ try {
1413
+ await loadPaymentMethodOptions({
1414
+ subscriptionId: subscription.value.id,
1415
+ country,
1416
+ amount: amountValue
1417
+ });
1418
+ } catch {
1419
+ logger.error(
1420
+ "PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
1421
+ "Failed to load the payment methods the checkout can offer",
1422
+ {},
1423
+ paymentMethodOptionsError.value
1424
+ );
1425
+ }
1426
+ };
1427
+ const hasPaymentMethodOptionsError = computed(() => paymentMethodOptionsError.value !== null);
1428
+ const loadPaymentMethodOptionsIfReady = () => {
1429
+ const { country } = checkoutForm.form.value;
1430
+ if (!subscription.value || !country || !amount.value) {
1431
+ return;
1432
+ }
1433
+ void loadPaymentMethodOptionsFor(country, amount.value);
1434
+ };
708
1435
  const loadInvoicePreview = () => {
709
1436
  const formState = checkoutForm.form.value;
710
1437
  return invoicePreview.loadInvoicePreview({
@@ -745,7 +1472,7 @@ function useCheckoutView({
745
1472
  }
746
1473
  });
747
1474
  const loadSubscription = async () => {
748
- var _a, _b, _c, _d, _e, _f;
1475
+ var _a, _b, _c, _d;
749
1476
  const response = await getSubscription({
750
1477
  id: subscriptionId,
751
1478
  expanded: true
@@ -759,17 +1486,11 @@ function useCheckoutView({
759
1486
  ...response,
760
1487
  billing_period: defaultBillingPeriod ?? response.billing_period
761
1488
  };
1489
+ const seatsValues = getInitialSeatsValues(subscriptionSchedule);
762
1490
  checkoutForm.updateInitialState({
763
1491
  ...checkoutForm.form.value,
764
1492
  enabledPricingIds: withPreselectedEnabledPricings(response, enabledPricingIds),
765
- ...((_e = subscriptionSchedule == null ? void 0 : subscriptionSchedule.pricing_plan_schedule) == null ? void 0 : _e.seats_values) ? {
766
- seatsValues: (_f = subscriptionSchedule == null ? void 0 : subscriptionSchedule.pricing_plan_schedule) == null ? void 0 : _f.seats_values.map(
767
- ({ pricing_item_config_id, number }) => ({
768
- pricing_item_config_id,
769
- number
770
- })
771
- )
772
- } : {}
1493
+ ...seatsValues ? { seatsValues } : {}
773
1494
  });
774
1495
  };
775
1496
  const authorizationContext = computed(() => {
@@ -884,13 +1605,7 @@ function useCheckoutView({
884
1605
  if (!subscription.value || !country || !amountValue) {
885
1606
  return;
886
1607
  }
887
- loadPaymentMethodOptions({
888
- subscriptionId: subscription.value.id,
889
- country,
890
- amount: amountValue
891
- }).catch((err) => {
892
- console.log(err);
893
- });
1608
+ void loadPaymentMethodOptionsFor(country, amountValue);
894
1609
  }
895
1610
  );
896
1611
  function saveFormStateForRedirect() {
@@ -939,11 +1654,7 @@ function useCheckoutView({
939
1654
  shouldLoadPaymentMethodOptions,
940
1655
  (shouldLoad) => {
941
1656
  if (shouldLoad) {
942
- void loadPaymentMethodOptions({
943
- subscriptionId: subscription.value.id,
944
- country: checkoutForm.form.value.country,
945
- amount: amount.value
946
- });
1657
+ loadPaymentMethodOptionsIfReady();
947
1658
  }
948
1659
  },
949
1660
  { once: true }
@@ -957,6 +1668,8 @@ function useCheckoutView({
957
1668
  updateInvoicePreviewOnBillingInformationChange,
958
1669
  lastPreviewScheduleId: invoicePreview.lastPreviewScheduleId,
959
1670
  paymentMethodOptions,
1671
+ hasPaymentMethodOptionsError,
1672
+ retryPaymentMethodOptions: loadPaymentMethodOptionsIfReady,
960
1673
  isPaymentMethodsPending,
961
1674
  isInvoicePreviewPending: invoicePreview.isPending,
962
1675
  subscription,
@@ -1084,13 +1797,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1084
1797
  });
1085
1798
  });
1086
1799
  return (_ctx, _cache) => {
1087
- return openBlock(), createBlock(unref(_sfc_main$m), {
1800
+ return openBlock(), createBlock(unref(_sfc_main$s), {
1088
1801
  type: isTaxIdValid.value ? "success" : "danger",
1089
1802
  icon: false
1090
1803
  }, {
1091
1804
  default: withCtx(() => [
1092
1805
  createElementVNode("div", _hoisted_1$j, [
1093
- createVNode(unref(_sfc_main$n), { variant: "body-xs" }, {
1806
+ createVNode(unref(_sfc_main$r), { variant: "body-xs" }, {
1094
1807
  default: withCtx(() => [
1095
1808
  createTextVNode(toDisplayString(taxIdValidationMessage.value), 1)
1096
1809
  ]),
@@ -1162,9 +1875,8 @@ const _hoisted_2$a = { class: "grid grid-cols-1 gap-2" };
1162
1875
  const _hoisted_3$7 = { key: 0 };
1163
1876
  const _hoisted_4$6 = { class: "mt-2 flex flex-col gap-3" };
1164
1877
  const _hoisted_5$4 = { class: "grid grid-cols-3 gap-2" };
1165
- const _hoisted_6$2 = { class: "flex grow flex-col" };
1166
- const _hoisted_7$1 = { key: 0 };
1167
- const _hoisted_8$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
1878
+ const _hoisted_6$2 = { key: 0 };
1879
+ const _hoisted_7$1 = { class: "mt-4 grid grid-cols-1 gap-3" };
1168
1880
  const FORM_ID = "checkout-form";
1169
1881
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
1170
1882
  __name: "CheckoutForm",
@@ -1201,6 +1913,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1201
1913
  const showVatIdInput = computed(() => model.value.country !== "US");
1202
1914
  const { isTaxIDCheckEnabled, isTaxIDCheckPending, taxIdValidationData, runTaxIDCheck } = useTaxIDValidationCheck(model);
1203
1915
  const { $t } = useIntl();
1916
+ const labels = useCustomerFormLabels();
1204
1917
  const getOptionalSuffix = (field) => {
1205
1918
  if (props.getIsFieldRequired(field)) {
1206
1919
  return "";
@@ -1220,17 +1933,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1220
1933
  onSubmit: _cache[12] || (_cache[12] = withModifiers(($event) => _ctx.$emit("submit", model.value), ["prevent"]))
1221
1934
  }, [
1222
1935
  createElementVNode("div", _hoisted_1$i, [
1223
- createVNode(unref(_sfc_main$o), {
1224
- title: unref($t)({
1225
- defaultMessage: "Customer information",
1226
- id: "checkout.contact_information_block.title",
1227
- description: "The title of the contact information block in the checkout form"
1228
- })
1936
+ createVNode(unref(_sfc_main$t), {
1937
+ title: unref(labels).contactInformationTitle
1229
1938
  }, {
1230
1939
  default: withCtx(() => [
1231
1940
  createElementVNode("div", _hoisted_2$a, [
1232
1941
  __props.readOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1233
- createVNode(unref(_sfc_main$n), {
1942
+ createVNode(unref(_sfc_main$r), {
1234
1943
  variant: "body",
1235
1944
  tag: "span",
1236
1945
  weight: "semibold",
@@ -1241,7 +1950,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1241
1950
  ]),
1242
1951
  _: 1
1243
1952
  }),
1244
- createVNode(unref(_sfc_main$n), {
1953
+ createVNode(unref(_sfc_main$r), {
1245
1954
  variant: "body-sm",
1246
1955
  tag: "span",
1247
1956
  shade: "lighter",
@@ -1260,32 +1969,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1260
1969
  type: "email",
1261
1970
  name: "email",
1262
1971
  disabled: !!__props.readOnlyEmail,
1263
- label: unref($t)({
1264
- defaultMessage: "Email address",
1265
- id: "checkout.email_address.label",
1266
- description: "The email address of the customer in the checkout form"
1267
- }),
1268
- placeholder: unref($t)({
1269
- defaultMessage: "Email address...",
1270
- id: "checkout.email_address.placeholder",
1271
- description: "The email address of the customer in the checkout form"
1272
- }) + getOptionalSuffix("email"),
1972
+ label: unref(labels).emailLabel,
1973
+ placeholder: unref(labels).emailPlaceholder + getOptionalSuffix("email"),
1273
1974
  error: __props.validation.value.email.$errors
1274
1975
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
1275
- createVNode(unref(_sfc_main$q), {
1976
+ createVNode(unref(_sfc_main$u), {
1276
1977
  "single-model-value": country.value,
1277
1978
  "onUpdate:singleModelValue": _cache[3] || (_cache[3] = ($event) => country.value = $event),
1278
1979
  required: "",
1279
1980
  name: "country",
1280
- label: unref($t)({
1281
- defaultMessage: "Billing country",
1282
- id: "checkout.country.label",
1283
- description: "The country of the customer in the checkout form"
1284
- }) + getOptionalSuffix("country"),
1981
+ label: unref(labels).countryLabel + getOptionalSuffix("country"),
1285
1982
  error: __props.validation.value.country.$errors
1286
1983
  }, {
1287
1984
  "label-suffix": withCtx(() => [
1288
- !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$r), {
1985
+ !showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
1289
1986
  key: 0,
1290
1987
  size: "xs",
1291
1988
  variant: "ghost",
@@ -1302,7 +1999,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1302
1999
  ]),
1303
2000
  _: 1
1304
2001
  })) : createCommentVNode("", true),
1305
- showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$r), {
2002
+ showBillingDetails.value && !__props.isBillingInformationMandatory ? (openBlock(), createBlock(unref(_sfc_main$v), {
1306
2003
  key: 1,
1307
2004
  size: "sm",
1308
2005
  variant: "ghost",
@@ -1324,7 +2021,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1324
2021
  }, 8, ["single-model-value", "label", "error"])
1325
2022
  ], 64))
1326
2023
  ]),
1327
- createVNode(unref(_sfc_main$s), {
2024
+ createVNode(unref(_sfc_main$w), {
1328
2025
  "is-open": showBillingDetails.value || !!__props.isBillingInformationMandatory
1329
2026
  }, {
1330
2027
  default: withCtx(() => [
@@ -1362,32 +2059,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1362
2059
  modelValue: model.value.postalCode,
1363
2060
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value.postalCode = $event),
1364
2061
  name: "postal_code",
1365
- placeholder: unref($t)({
1366
- defaultMessage: "Postal code...",
1367
- id: "checkout.address.portal_code.placeholder",
1368
- description: "Postal code of the customer address in the checkout form"
1369
- }) + getOptionalSuffix("postalCode"),
2062
+ placeholder: unref(labels).postalCodePlaceholder + getOptionalSuffix("postalCode"),
1370
2063
  error: __props.validation.value.addressLine1.$errors
1371
2064
  }, null, 8, ["modelValue", "placeholder", "error"]),
1372
2065
  createVNode(unref(_sfc_main$p), {
1373
2066
  modelValue: model.value.city,
1374
2067
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value.city = $event),
1375
2068
  name: "city",
1376
- placeholder: unref($t)({
1377
- defaultMessage: "City...",
1378
- id: "checkout.address.city.placeholder",
1379
- description: "City of the customer address in the checkout form"
1380
- }) + getOptionalSuffix("city")
2069
+ placeholder: unref(labels).cityPlaceholder + getOptionalSuffix("city")
1381
2070
  }, null, 8, ["modelValue", "placeholder"]),
1382
2071
  createVNode(unref(_sfc_main$p), {
1383
2072
  modelValue: model.value.state,
1384
2073
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value.state = $event),
1385
2074
  name: "state",
1386
- placeholder: unref($t)({
1387
- defaultMessage: "State...",
1388
- id: "checkout.address.state.placeholder",
1389
- description: "State of the customer address in the checkout form"
1390
- }) + getOptionalSuffix("state"),
2075
+ placeholder: unref(labels).statePlaceholder + getOptionalSuffix("state"),
1391
2076
  error: __props.validation.value.state.$errors
1392
2077
  }, null, 8, ["modelValue", "placeholder", "error"])
1393
2078
  ])
@@ -1399,64 +2084,25 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1399
2084
  ]),
1400
2085
  _: 1
1401
2086
  }, 8, ["title"]),
1402
- !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$o), { key: 0 }, {
2087
+ !__props.readOnly ? (openBlock(), createBlock(unref(_sfc_main$t), { key: 0 }, {
1403
2088
  default: withCtx(() => [
1404
- createVNode(unref(_sfc_main$t), {
2089
+ createVNode(_sfc_main$x, {
1405
2090
  modelValue: companyPurchaseModel.value,
1406
2091
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => companyPurchaseModel.value = $event),
1407
2092
  "no-spacing": "",
1408
- "label-position": "before",
1409
2093
  class: "!flex"
1410
- }, {
1411
- "inline-label": withCtx(() => [
1412
- createElementVNode("div", _hoisted_6$2, [
1413
- createVNode(unref(_sfc_main$n), { tag: "span" }, {
1414
- default: withCtx(() => [
1415
- createTextVNode(toDisplayString(unref($t)({
1416
- defaultMessage: "Company purchase",
1417
- id: "checkout.company_purchase_toggle.title",
1418
- description: "The title of the company purchase toggle in the checkout"
1419
- })), 1)
1420
- ]),
1421
- _: 1
1422
- }),
1423
- createVNode(unref(_sfc_main$n), {
1424
- tag: "span",
1425
- variant: "body-xs",
1426
- shade: "lighter"
1427
- }, {
1428
- default: withCtx(() => [
1429
- createTextVNode(toDisplayString(unref($t)({
1430
- defaultMessage: "I am purchasing on behalf of a company",
1431
- id: "checkout.company_purchase_toggle.sub_title",
1432
- description: "The subtitle of the company purchase toggle in the checkout"
1433
- })), 1)
1434
- ]),
1435
- _: 1
1436
- })
1437
- ])
1438
- ]),
1439
- _: 1
1440
- }, 8, ["modelValue"]),
1441
- createVNode(unref(_sfc_main$s), { "is-open": isCompanyPurchase.value }, {
2094
+ }, null, 8, ["modelValue"]),
2095
+ createVNode(unref(_sfc_main$w), { "is-open": isCompanyPurchase.value }, {
1442
2096
  default: withCtx(() => [
1443
- isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
1444
- createElementVNode("div", _hoisted_8$1, [
2097
+ isCompanyPurchase.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
2098
+ createElementVNode("div", _hoisted_7$1, [
1445
2099
  createVNode(unref(_sfc_main$p), {
1446
2100
  modelValue: model.value.companyLegalName,
1447
2101
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => model.value.companyLegalName = $event),
1448
2102
  required: "",
1449
2103
  name: "legal_name",
1450
- label: unref($t)({
1451
- defaultMessage: "Legal entity name",
1452
- id: "checkout.legal_name.label",
1453
- description: "The legal name of the organization customer in the checkout form"
1454
- }),
1455
- placeholder: unref($t)({
1456
- defaultMessage: "Legal entity name...",
1457
- id: "checkout.legal_name.placeholder",
1458
- description: "The legal name of the organization customer in the checkout form"
1459
- })
2104
+ label: unref(labels).legalNameLabel,
2105
+ placeholder: unref(labels).legalNamePlaceholder
1460
2106
  }, null, 8, ["modelValue", "label", "placeholder"]),
1461
2107
  showVatIdInput.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
1462
2108
  key: 0,
@@ -1464,23 +2110,15 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1464
2110
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => model.value.companyVatNumber = $event),
1465
2111
  name: "vat_number",
1466
2112
  "input-class": "focus:outline-none focus:ring-0",
1467
- label: unref($t)({
1468
- defaultMessage: "VAT number",
1469
- id: "checkout.vat_number.label",
1470
- description: "The label for the vat number in the checkout form"
1471
- }),
1472
- placeholder: unref($t)({
1473
- defaultMessage: "VAT number...",
1474
- id: "checkout.vat_number.placeholder",
1475
- description: "The label for the vat number in the checkout form"
1476
- }),
2113
+ label: unref(labels).vatNumberLabel,
2114
+ placeholder: unref(labels).vatNumberPlaceholder,
1477
2115
  error: __props.validation.value.companyVatNumber.$errors,
1478
2116
  "suffix-class": "px-2 border-l-0"
1479
2117
  }, createSlots({ _: 2 }, [
1480
2118
  unref(isEUCountry)(model.value.country ?? "") ? {
1481
2119
  name: "suffix",
1482
2120
  fn: withCtx(() => [
1483
- createVNode(unref(_sfc_main$r), {
2121
+ createVNode(unref(_sfc_main$v), {
1484
2122
  type: "button",
1485
2123
  size: "sm",
1486
2124
  color: "green",
@@ -1541,7 +2179,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1541
2179
  return (_ctx, _cache) => {
1542
2180
  return openBlock(), createElementBlock("div", null, [
1543
2181
  createElementVNode("div", null, [
1544
- createVNode(unref(_sfc_main$n), {
2182
+ createVNode(unref(_sfc_main$r), {
1545
2183
  variant: "heading-1",
1546
2184
  class: "inline-block"
1547
2185
  }, {
@@ -1551,7 +2189,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1551
2189
  id: "checkout.page_title",
1552
2190
  description: "The title of the checkout page"
1553
2191
  })) + toDisplayString(" "), 1),
1554
- __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$u), {
2192
+ __props.trialPeriod ? (openBlock(), createBlock(unref(_sfc_main$y), {
1555
2193
  key: 0,
1556
2194
  "trial-period": __props.trialPeriod,
1557
2195
  size: "lg",
@@ -1561,18 +2199,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1561
2199
  _: 1
1562
2200
  })
1563
2201
  ]),
1564
- createVNode(unref(_sfc_main$n), {
2202
+ createVNode(unref(_sfc_main$r), {
1565
2203
  variant: "body-sm",
1566
2204
  shade: "lighter",
1567
2205
  "no-spacing": ""
1568
2206
  }, {
1569
2207
  default: withCtx(() => [
1570
2208
  !__props.countryCode ? (openBlock(), createElementBlock("span", _hoisted_1$h, [
1571
- createVNode(unref(_sfc_main$v), { "is-dark-mode": "" }, {
2209
+ createVNode(unref(_sfc_main$z), { "is-dark-mode": "" }, {
1572
2210
  tooltip: withCtx(() => [
1573
2211
  createVNode(unref(TooltipContent), null, {
1574
2212
  default: withCtx(() => [
1575
- createVNode(unref(_sfc_main$x), null, {
2213
+ createVNode(unref(_sfc_main$B), null, {
1576
2214
  default: withCtx(() => [
1577
2215
  createTextVNode(toDisplayString(unref($t)({
1578
2216
  defaultMessage: "Will be determined by billing information",
@@ -1587,7 +2225,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1587
2225
  })
1588
2226
  ]),
1589
2227
  default: withCtx(() => [
1590
- createVNode(unref(_sfc_main$w), {
2228
+ createVNode(unref(_sfc_main$A), {
1591
2229
  "width-class": "w-10",
1592
2230
  "height-class": "h-4",
1593
2231
  shade: "darker",
@@ -1600,8 +2238,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1600
2238
  innerHTML: __props.trialStartDate ? unref($t)(
1601
2239
  {
1602
2240
  defaultMessage: "per {period_name} starting, {startDate, date, long}",
1603
- id: "checkout.trial_period_description",
1604
- description: "The description of the trial period"
2241
+ id: "checkout.trial_period_description_without_price",
2242
+ description: "The description of the trial period, while the price is still being determined"
1605
2243
  },
1606
2244
  {
1607
2245
  // @ts-expect-error formatjs does not support this type yet
@@ -1614,8 +2252,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1614
2252
  ) : unref($t)(
1615
2253
  {
1616
2254
  defaultMessage: "per {period_name}, starting today",
1617
- id: "checkout.subscription_description",
1618
- description: "The description of the subscription"
2255
+ id: "checkout.subscription_description_without_price",
2256
+ description: "The description of the subscription, while the price is still being determined"
1619
2257
  },
1620
2258
  {
1621
2259
  period_name: unref(formatBillingPeriod)(__props.billingPeriod, {
@@ -1695,7 +2333,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1695
2333
  return (_ctx, _cache) => {
1696
2334
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
1697
2335
  createElementVNode("div", _hoisted_2$8, [
1698
- createVNode(unref(_sfc_main$n), { variant: "heading-1" }, {
2336
+ createVNode(unref(_sfc_main$r), { variant: "heading-1" }, {
1699
2337
  default: withCtx(() => [
1700
2338
  createTextVNode(toDisplayString(unref($t)({
1701
2339
  defaultMessage: "Checkout not available",
@@ -1705,7 +2343,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1705
2343
  ]),
1706
2344
  _: 1
1707
2345
  }),
1708
- createVNode(unref(_sfc_main$n), {
2346
+ createVNode(unref(_sfc_main$r), {
1709
2347
  variant: "body-sm",
1710
2348
  shade: "lighter"
1711
2349
  }, {
@@ -1743,7 +2381,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1743
2381
  setup(__props) {
1744
2382
  const { $t } = useIntl();
1745
2383
  return (_ctx, _cache) => {
1746
- return openBlock(), createBlock(_sfc_main$y, {
2384
+ return openBlock(), createBlock(_sfc_main$C, {
1747
2385
  status: "success",
1748
2386
  title: unref($t)({
1749
2387
  defaultMessage: "Payment successful",
@@ -1752,7 +2390,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1752
2390
  })
1753
2391
  }, {
1754
2392
  default: withCtx(() => [
1755
- createVNode(unref(_sfc_main$n), {
2393
+ createVNode(unref(_sfc_main$r), {
1756
2394
  variant: "body-xs",
1757
2395
  shade: "lighter",
1758
2396
  tag: "span"
@@ -1787,7 +2425,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1787
2425
  return openBlock(), createElementBlock("div", _hoisted_1$f, [
1788
2426
  createElementVNode("div", _hoisted_2$7, [
1789
2427
  createElementVNode("div", _hoisted_3$5, [
1790
- createVNode(unref(_sfc_main$n), {
2428
+ createVNode(unref(_sfc_main$r), {
1791
2429
  tag: "span",
1792
2430
  variant: "body-sm",
1793
2431
  weight: "semibold"
@@ -1799,7 +2437,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1799
2437
  }),
1800
2438
  renderSlot(_ctx.$slots, "badge")
1801
2439
  ]),
1802
- createVNode(unref(_sfc_main$n), {
2440
+ createVNode(unref(_sfc_main$r), {
1803
2441
  tag: "span",
1804
2442
  variant: "body-xs",
1805
2443
  shade: "lighter"
@@ -2045,7 +2683,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2045
2683
  label,
2046
2684
  subLabel: getSelectedPeriodAmountLabel(period),
2047
2685
  labelSuffixComponent: saveText ? {
2048
- component: _sfc_main$z,
2686
+ component: _sfc_main$o,
2049
2687
  props: {
2050
2688
  color: "primary",
2051
2689
  content: saveText,
@@ -2104,7 +2742,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2104
2742
  selectedBillingPeriodKey.value = checked ? biggestPeriod : smallestPeriod;
2105
2743
  };
2106
2744
  return (_ctx, _cache) => {
2107
- return openBlock(), createBlock(unref(_sfc_main$o), {
2745
+ return openBlock(), createBlock(unref(_sfc_main$t), {
2108
2746
  class: "sv-order-summary",
2109
2747
  "no-border": "",
2110
2748
  "no-spacing": "",
@@ -2117,12 +2755,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2117
2755
  }, {
2118
2756
  default: withCtx(() => [
2119
2757
  createElementVNode("div", _hoisted_1$e, [
2120
- createVNode(unref(_sfc_main$o), {
2758
+ createVNode(unref(_sfc_main$t), {
2121
2759
  "no-spacing": "",
2122
2760
  class: "sv-order-summary__subscription"
2123
2761
  }, {
2124
2762
  default: withCtx(() => [
2125
- __props.subscription ? (openBlock(), createBlock(_sfc_main$A, {
2763
+ __props.subscription ? (openBlock(), createBlock(_sfc_main$D, {
2126
2764
  key: 0,
2127
2765
  avatar: __props.avatar,
2128
2766
  invoice: __props.invoice,
@@ -2134,7 +2772,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2134
2772
  ]),
2135
2773
  _: 1
2136
2774
  }),
2137
- billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$o), {
2775
+ billingPeriodOptions.value.length === 2 ? (openBlock(), createBlock(unref(_sfc_main$t), {
2138
2776
  key: 0,
2139
2777
  "no-spacing": "",
2140
2778
  "content-classes": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod ? "border-primary-500" : void 0
@@ -2150,7 +2788,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2150
2788
  description: ((_a = selectedBillingPeriodOption.value) == null ? void 0 : _a.subLabel) ?? ""
2151
2789
  }, createSlots({
2152
2790
  default: withCtx(() => [
2153
- createVNode(unref(_sfc_main$t), {
2791
+ createVNode(unref(_sfc_main$E), {
2154
2792
  "model-value": selectedBillingPeriodKey.value === periodBounds.value.biggestPeriod,
2155
2793
  "onUpdate:modelValue": handleBinaryBillingToggle
2156
2794
  }, null, 8, ["model-value"])
@@ -2160,7 +2798,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2160
2798
  toggleSaveText.value ? {
2161
2799
  name: "badge",
2162
2800
  fn: withCtx(() => [
2163
- createVNode(unref(_sfc_main$z), {
2801
+ createVNode(unref(_sfc_main$o), {
2164
2802
  color: "primary",
2165
2803
  content: toggleSaveText.value,
2166
2804
  size: saveBadgeSize.value,
@@ -2175,7 +2813,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2175
2813
  ];
2176
2814
  }),
2177
2815
  _: 1
2178
- }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$B), {
2816
+ }, 8, ["content-classes"])) : billingPeriodOptions.value.length > 2 ? (openBlock(), createBlock(unref(_sfc_main$F), {
2179
2817
  key: 1,
2180
2818
  "single-model-value": selectedBillingPeriodKey.value,
2181
2819
  "onUpdate:singleModelValue": _cache[0] || (_cache[0] = ($event) => selectedBillingPeriodKey.value = $event),
@@ -2186,14 +2824,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2186
2824
  "show-sub-label-in-input": "",
2187
2825
  "show-suffix-in-closed-input": ""
2188
2826
  }, null, 8, ["single-model-value", "options"])) : createCommentVNode("", true),
2189
- __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$o), {
2827
+ __props.isUsageBased ? (openBlock(), createBlock(unref(_sfc_main$t), {
2190
2828
  key: 2,
2191
2829
  "no-spacing": "",
2192
2830
  class: "sv-order-summary__usage"
2193
2831
  }, {
2194
2832
  default: withCtx(() => [
2195
2833
  createElementVNode("div", _hoisted_4$4, [
2196
- createVNode(unref(_sfc_main$n), {
2834
+ createVNode(unref(_sfc_main$r), {
2197
2835
  "no-spacing": "",
2198
2836
  variant: "body-sm",
2199
2837
  shade: "lighter"
@@ -2212,14 +2850,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2212
2850
  _: 1
2213
2851
  })) : createCommentVNode("", true),
2214
2852
  __props.invoice && __props.variant !== "products-inline" ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
2215
- createVNode(unref(_sfc_main$C), {
2853
+ createVNode(unref(_sfc_main$G), {
2216
2854
  invoice: __props.invoice,
2217
- "wrapper-component": unref(_sfc_main$o)
2855
+ "wrapper-component": unref(_sfc_main$t)
2218
2856
  }, null, 8, ["invoice", "wrapper-component"])
2219
2857
  ])) : createCommentVNode("", true),
2220
- createVNode(unref(_sfc_main$o), { class: "sv-order-summary__totals" }, {
2858
+ createVNode(unref(_sfc_main$t), { class: "sv-order-summary__totals" }, {
2221
2859
  default: withCtx(() => [
2222
- __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$D), {
2860
+ __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$H), {
2223
2861
  key: 0,
2224
2862
  class: "sv-order-summary__invoice-preview",
2225
2863
  variant: __props.variant === "products-inline" ? "default" : "without-products",
@@ -2229,7 +2867,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2229
2867
  collapsible: __props.collapsible,
2230
2868
  "is-preview-without-taxes": !__props.countryCode,
2231
2869
  "is-customer-facing": ""
2232
- }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$n), {
2870
+ }, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
2233
2871
  key: 1,
2234
2872
  variant: "body-sm",
2235
2873
  shade: "lighter",
@@ -2254,6 +2892,47 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2254
2892
  };
2255
2893
  }
2256
2894
  });
2895
+ async function createExpressCheckout(props, logger) {
2896
+ const { AdyenCheckout: createCheckout } = await import("../../index-DyvRdSR7.mjs");
2897
+ return createCheckout(
2898
+ getAdyenExpressCheckoutConfiguration({
2899
+ locale: props.locale,
2900
+ amount: props.amount,
2901
+ countryCode: props.countryCode,
2902
+ paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
2903
+ logger
2904
+ })
2905
+ );
2906
+ }
2907
+ function useExpressPaymentMethod({
2908
+ props,
2909
+ create,
2910
+ onMissingButton,
2911
+ onMountFailed,
2912
+ afterMount
2913
+ }) {
2914
+ const buttonRef = ref();
2915
+ const logger = useLogger();
2916
+ const mount = async () => {
2917
+ const checkout = await createExpressCheckout(props, logger);
2918
+ const component = await create(checkout);
2919
+ if (!buttonRef.value) {
2920
+ onMissingButton();
2921
+ return;
2922
+ }
2923
+ try {
2924
+ await component.isAvailable();
2925
+ component.mount(buttonRef.value);
2926
+ afterMount == null ? void 0 : afterMount();
2927
+ } catch (error) {
2928
+ onMountFailed(error);
2929
+ }
2930
+ };
2931
+ onMounted(() => {
2932
+ void mount();
2933
+ });
2934
+ return { buttonRef };
2935
+ }
2257
2936
  const _hoisted_1$d = {
2258
2937
  key: 0,
2259
2938
  id: "svg-logo",
@@ -2303,7 +2982,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2303
2982
  emit("click");
2304
2983
  }
2305
2984
  return (_ctx, _cache) => {
2306
- return openBlock(), createBlock(unref(_sfc_main$r), {
2985
+ return openBlock(), createBlock(unref(_sfc_main$v), {
2307
2986
  size: "lg",
2308
2987
  "aria-label": ariaLabel.value,
2309
2988
  class: normalizeClass([buttonClasses.value, "!block h-11 w-full bg-center bg-no-repeat"]),
@@ -2367,16 +3046,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2367
3046
  const { authorizePayment } = createPaymentsService();
2368
3047
  const paymentAcceptorId = props.paymentMethodOptionsResponse.payment_acceptor.id;
2369
3048
  const initApplePay = async () => {
2370
- const { AdyenCheckout, ApplePay } = await import("../../index-DyvRdSR7.mjs");
2371
- const checkout = await AdyenCheckout(
2372
- getAdyenExpressCheckoutConfiguration({
2373
- amount: props.amount,
2374
- locale: props.locale,
2375
- countryCode: props.countryCode,
2376
- paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
2377
- logger
2378
- })
2379
- );
3049
+ const { ApplePay } = await import("../../index-DyvRdSR7.mjs");
3050
+ const checkout = await createExpressCheckout(props, logger);
2380
3051
  const applePay = new ApplePay(checkout, {
2381
3052
  isExpress: true,
2382
3053
  recurringPaymentRequest: {
@@ -2612,49 +3283,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2612
3283
  setup(__props, { emit: __emit }) {
2613
3284
  const props = __props;
2614
3285
  const emit = __emit;
2615
- const paypalButtonRef = ref();
2616
3286
  const logger = useLogger();
2617
- const initPaypal = async () => {
2618
- const { AdyenCheckout, PayPal } = await import("../../index-DyvRdSR7.mjs");
2619
- const checkout = await AdyenCheckout(
2620
- getAdyenExpressCheckoutConfiguration({
2621
- locale: props.locale,
2622
- amount: props.amount,
2623
- countryCode: props.countryCode,
2624
- paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
2625
- logger
2626
- })
2627
- );
2628
- const paypal = new PayPal(checkout, {
2629
- isExpress: true,
2630
- blockPayPalPayLaterButton: true,
2631
- blockPayPalCreditButton: true,
2632
- blockPayPalVenmoButton: true,
2633
- style: {
2634
- height: 55
2635
- },
2636
- onInit: () => {
2637
- emit("ready");
2638
- }
2639
- });
2640
- if (!paypalButtonRef.value) {
2641
- logger.error(
2642
- "EXPRESS_CHECKOUT_PAYPAL_ERROR",
2643
- "The PayPal button reference is not found and cannot be mounted"
2644
- );
2645
- return;
2646
- }
2647
- try {
2648
- await paypal.isAvailable();
2649
- paypal.mount(paypalButtonRef.value);
2650
- } catch (error) {
2651
- logger.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
2652
- error
3287
+ const { buttonRef: paypalButtonRef } = useExpressPaymentMethod({
3288
+ props,
3289
+ onMissingButton: () => logger.error(
3290
+ "EXPRESS_CHECKOUT_PAYPAL_ERROR",
3291
+ "The PayPal button reference is not found and cannot be mounted"
3292
+ ),
3293
+ onMountFailed: (error) => logger.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
3294
+ error
3295
+ }),
3296
+ create: async (checkout) => {
3297
+ const { PayPal } = await import("../../index-DyvRdSR7.mjs");
3298
+ return new PayPal(checkout, {
3299
+ isExpress: true,
3300
+ blockPayPalPayLaterButton: true,
3301
+ blockPayPalCreditButton: true,
3302
+ blockPayPalVenmoButton: true,
3303
+ style: {
3304
+ height: 55
3305
+ },
3306
+ onInit: () => {
3307
+ emit("ready");
3308
+ }
2653
3309
  });
2654
3310
  }
2655
- };
2656
- onMounted(() => {
2657
- void initPaypal();
2658
3311
  });
2659
3312
  return (_ctx, _cache) => {
2660
3313
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
@@ -2687,39 +3340,24 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2687
3340
  setup(__props, { emit: __emit }) {
2688
3341
  const props = __props;
2689
3342
  const emit = __emit;
2690
- const googlePayButtonRef = ref();
2691
3343
  const logger = useLogger();
2692
- const initGooglePay = async () => {
2693
- const { AdyenCheckout, GooglePay } = await import("../../index-DyvRdSR7.mjs");
2694
- const checkout = await AdyenCheckout(
2695
- getAdyenExpressCheckoutConfiguration({
2696
- locale: props.locale,
2697
- amount: props.amount,
2698
- countryCode: props.countryCode,
2699
- paymentMethodOptionResponse: props.paymentMethodOptionsResponse,
2700
- logger
2701
- })
2702
- );
2703
- const googlePay = new GooglePay(checkout, { isExpress: true });
2704
- if (!googlePayButtonRef.value) {
2705
- logger.error(
2706
- "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
2707
- "The Google Pay button reference is not found and cannot be mounted"
2708
- );
2709
- return;
2710
- }
2711
- try {
2712
- await googlePay.isAvailable();
2713
- googlePay.mount(googlePayButtonRef.value);
2714
- emit("ready");
2715
- } catch (error) {
2716
- logger.error(
2717
- "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
2718
- "Failed mounting Google Pay express button",
2719
- { error }
2720
- );
2721
- }
2722
- };
3344
+ const { buttonRef: googlePayButtonRef } = useExpressPaymentMethod({
3345
+ props,
3346
+ onMissingButton: () => logger.error(
3347
+ "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
3348
+ "The Google Pay button reference is not found and cannot be mounted"
3349
+ ),
3350
+ onMountFailed: (error) => logger.error(
3351
+ "EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
3352
+ "Failed mounting Google Pay express button",
3353
+ { error }
3354
+ ),
3355
+ create: async (checkout) => {
3356
+ const { GooglePay } = await import("../../index-DyvRdSR7.mjs");
3357
+ return new GooglePay(checkout, { isExpress: true });
3358
+ },
3359
+ afterMount: () => emit("ready")
3360
+ });
2723
3361
  const handleClick = () => {
2724
3362
  var _a;
2725
3363
  const googlePayButton = (_a = googlePayButtonRef.value) == null ? void 0 : _a.querySelector("#gpay-button-online-api-id");
@@ -2732,9 +3370,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2732
3370
  googlePayButton.dispatchEvent(clickEvent);
2733
3371
  }
2734
3372
  };
2735
- onMounted(() => {
2736
- void initGooglePay();
2737
- });
2738
3373
  return (_ctx, _cache) => {
2739
3374
  return openBlock(), createElementBlock(Fragment, null, [
2740
3375
  __props.isVisible ? (openBlock(), createBlock(_sfc_main$e, {
@@ -2842,10 +3477,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2842
3477
  return (_ctx, _cache) => {
2843
3478
  return hasPaymentMethodOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
2844
3479
  createElementVNode("div", _hoisted_2$4, [
2845
- !isReady.value ? (openBlock(), createBlock(_sfc_main$E, {
3480
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$I, {
2846
3481
  key: 0,
2847
3482
  variant: "title"
2848
- })) : (openBlock(), createBlock(unref(_sfc_main$n), {
3483
+ })) : (openBlock(), createBlock(unref(_sfc_main$r), {
2849
3484
  key: 1,
2850
3485
  variant: "heading-3",
2851
3486
  tag: "h2"
@@ -2862,8 +3497,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2862
3497
  ]),
2863
3498
  createElementVNode("div", _hoisted_3$3, [
2864
3499
  !isReady.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2865
- createVNode(_sfc_main$E, { class: "col-span-3 h-11" }),
2866
- createVNode(_sfc_main$E, { class: "col-span-3 h-11" })
3500
+ createVNode(_sfc_main$I, { class: "col-span-3 h-11" }),
3501
+ createVNode(_sfc_main$I, { class: "col-span-3 h-11" })
2867
3502
  ], 64)) : createCommentVNode("", true),
2868
3503
  createElementVNode("div", {
2869
3504
  class: normalizeClass(["col-span-3 md:col-span-2", {
@@ -2924,10 +3559,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2924
3559
  ], 2)
2925
3560
  ]),
2926
3561
  createElementVNode("div", _hoisted_4$3, [
2927
- !isReady.value ? (openBlock(), createBlock(_sfc_main$E, {
3562
+ !isReady.value ? (openBlock(), createBlock(_sfc_main$I, {
2928
3563
  key: 0,
2929
3564
  variant: "divider-text"
2930
- })) : (openBlock(), createBlock(unref(_sfc_main$F), {
3565
+ })) : (openBlock(), createBlock(unref(_sfc_main$J), {
2931
3566
  key: 1,
2932
3567
  text: unref($t)({
2933
3568
  defaultMessage: "Or",
@@ -2972,7 +3607,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2972
3607
  });
2973
3608
  return (_ctx, _cache) => {
2974
3609
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
2975
- createVNode(unref(_sfc_main$n), {
3610
+ createVNode(unref(_sfc_main$r), {
2976
3611
  variant: "body-xs",
2977
3612
  shade: "lighter",
2978
3613
  tag: "div"
@@ -3005,7 +3640,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
3005
3640
  ]),
3006
3641
  _: 1
3007
3642
  }),
3008
- createVNode(unref(_sfc_main$n), {
3643
+ createVNode(unref(_sfc_main$r), {
3009
3644
  variant: "body-xs",
3010
3645
  shade: "lighter",
3011
3646
  tag: "div",
@@ -3125,7 +3760,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3125
3760
  const { formatTimePeriod } = useTimePeriod();
3126
3761
  const isExpanded = ref(false);
3127
3762
  const seatsNumber = computed({
3128
- get: () => model.value.number ? +model.value.number : 1,
3763
+ get: () => +(model.value.number || FALLBACK_SEATS_NUMBER),
3129
3764
  set(number) {
3130
3765
  model.value = {
3131
3766
  ...model.value,
@@ -3146,7 +3781,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3146
3781
  return openBlock(), createElementBlock("div", null, [
3147
3782
  createElementVNode("div", _hoisted_1$6, [
3148
3783
  createElementVNode("div", _hoisted_2$3, [
3149
- createVNode(unref(_sfc_main$G), {
3784
+ createVNode(unref(_sfc_main$m), {
3150
3785
  modelValue: seatsNumber.value,
3151
3786
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => seatsNumber.value = $event),
3152
3787
  size: "sm",
@@ -3158,7 +3793,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3158
3793
  tabindex: isCollapsible.value ? 0 : void 0,
3159
3794
  onClick: _cache[1] || (_cache[1] = ($event) => isCollapsible.value ? isExpanded.value = !isExpanded.value : void 0)
3160
3795
  }, [
3161
- createVNode(unref(_sfc_main$n), {
3796
+ createVNode(unref(_sfc_main$r), {
3162
3797
  tag: "span",
3163
3798
  variant: "body-sm",
3164
3799
  weight: "semibold"
@@ -3172,7 +3807,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3172
3807
  ]),
3173
3808
  _: 1
3174
3809
  }),
3175
- unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$n), {
3810
+ unref(seats).pricing.amount ? (openBlock(), createBlock(unref(_sfc_main$r), {
3176
3811
  key: 0,
3177
3812
  tag: "span",
3178
3813
  variant: "body-xs",
@@ -3195,7 +3830,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3195
3830
  )), 1)
3196
3831
  ]),
3197
3832
  _: 1
3198
- })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$n), {
3833
+ })) : unref(seats).pricing.tiered ? (openBlock(), createBlock(unref(_sfc_main$r), {
3199
3834
  key: 1,
3200
3835
  tag: "span",
3201
3836
  variant: "body-xs",
@@ -3207,7 +3842,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3207
3842
  id: "seats.tiered_pricing_label",
3208
3843
  description: "The label indicating tiered pricing structure for seats"
3209
3844
  })) + " ", 1),
3210
- createVNode(unref(_sfc_main$H), {
3845
+ createVNode(unref(_sfc_main$K), {
3211
3846
  icon: "keyboard_arrow_down",
3212
3847
  size: "xs",
3213
3848
  class: normalizeClass(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !isExpanded.value, "rotate-180": isExpanded.value }])
@@ -3218,7 +3853,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
3218
3853
  ], 10, _hoisted_3$2)
3219
3854
  ]),
3220
3855
  ((_c = (_b = unref(seats).pricing) == null ? void 0 : _b.tiered) == null ? void 0 : _c.bands) ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
3221
- createVNode(unref(_sfc_main$s), { "is-open": isExpanded.value }, {
3856
+ createVNode(unref(_sfc_main$w), { "is-open": isExpanded.value }, {
3222
3857
  default: withCtx(() => [
3223
3858
  isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
3224
3859
  createVNode(_sfc_main$8, {
@@ -3262,7 +3897,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3262
3897
  return (_ctx, _cache) => {
3263
3898
  return __props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
3264
3899
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (item, index) => {
3265
- return openBlock(), createBlock(unref(_sfc_main$o), { key: index }, {
3900
+ return openBlock(), createBlock(unref(_sfc_main$t), { key: index }, {
3266
3901
  default: withCtx(() => {
3267
3902
  var _a;
3268
3903
  return [
@@ -3302,7 +3937,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3302
3937
  const props = __props;
3303
3938
  const model = useModel(__props, "modelValue");
3304
3939
  const { $t } = useIntl();
3305
- const { renderPricingForPricingItem } = usePricingItem({
3940
+ const { describePricing } = usePricingDescription({
3306
3941
  currency: toRef(props, "currency"),
3307
3942
  billingPeriod: toRef(props, "billingPeriod")
3308
3943
  });
@@ -3343,10 +3978,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3343
3978
  }
3344
3979
  };
3345
3980
  return (_ctx, _cache) => {
3346
- return openBlock(), createBlock(unref(_sfc_main$o), { "no-spacing": "" }, {
3981
+ return openBlock(), createBlock(unref(_sfc_main$t), { "no-spacing": "" }, {
3347
3982
  default: withCtx(() => [
3348
3983
  createElementVNode("div", _hoisted_1$4, [
3349
- createVNode(_sfc_main$I, null, {
3984
+ createVNode(_sfc_main$L, null, {
3350
3985
  title: withCtx(() => [
3351
3986
  createTextVNode(toDisplayString(__props.groupName), 1)
3352
3987
  ]),
@@ -3357,34 +3992,25 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3357
3992
  }),
3358
3993
  createElementVNode("div", _hoisted_2$2, [
3359
3994
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3360
- return openBlock(), createBlock(unref(_sfc_main$o), {
3995
+ return openBlock(), createBlock(unref(_sfc_main$t), {
3361
3996
  key: pricing.id,
3362
3997
  "content-background": "none",
3363
3998
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
3364
3999
  }, {
3365
- default: withCtx(() => {
3366
- var _a, _b;
3367
- return [
3368
- createVNode(_sfc_main$g, {
3369
- name: unref(getNameFromPricing)(pricing) ?? "",
3370
- description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3371
- pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
3372
- }) : unref($t)({
3373
- defaultMessage: "Unsupported pricing",
3374
- id: "pricing_item_pricing.unsupported_pricing_error",
3375
- description: "Text displayed when the pricing item pricing is unsupported"
3376
- })
3377
- }, {
3378
- default: withCtx(() => [
3379
- createVNode(unref(_sfc_main$t), {
3380
- "model-value": isSelected(pricing.id),
3381
- "onUpdate:modelValue": ($event) => handleToggle(pricing.id)
3382
- }, null, 8, ["model-value", "onUpdate:modelValue"])
3383
- ]),
3384
- _: 2
3385
- }, 1032, ["name", "description"])
3386
- ];
3387
- }),
4000
+ default: withCtx(() => [
4001
+ createVNode(_sfc_main$g, {
4002
+ name: unref(getNameFromPricing)(pricing) ?? "",
4003
+ description: unref(describePricing)(pricing)
4004
+ }, {
4005
+ default: withCtx(() => [
4006
+ createVNode(unref(_sfc_main$E), {
4007
+ "model-value": isSelected(pricing.id),
4008
+ "onUpdate:modelValue": ($event) => handleToggle(pricing.id)
4009
+ }, null, 8, ["model-value", "onUpdate:modelValue"])
4010
+ ]),
4011
+ _: 2
4012
+ }, 1032, ["name", "description"])
4013
+ ]),
3388
4014
  _: 2
3389
4015
  }, 1032, ["class"]);
3390
4016
  }), 128))
@@ -3414,7 +4040,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3414
4040
  const props = __props;
3415
4041
  const model = useModel(__props, "modelValue");
3416
4042
  const { $t } = useIntl();
3417
- const { renderPricingForPricingItem } = usePricingItem({
4043
+ const { describePricing } = usePricingDescription({
3418
4044
  currency: toRef(props, "currency"),
3419
4045
  billingPeriod: toRef(props, "billingPeriod")
3420
4046
  });
@@ -3429,7 +4055,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3429
4055
  }
3430
4056
  };
3431
4057
  return (_ctx, _cache) => {
3432
- return openBlock(), createBlock(unref(_sfc_main$o), {
4058
+ return openBlock(), createBlock(unref(_sfc_main$t), {
3433
4059
  "no-spacing": "",
3434
4060
  "no-border": !__props.groupName,
3435
4061
  "content-background": __props.groupName ? "gray" : "none"
@@ -3438,7 +4064,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3438
4064
  createElementVNode("div", {
3439
4065
  class: normalizeClass(["grid grid-cols-1 gap-1", { "p-1": __props.groupName }])
3440
4066
  }, [
3441
- __props.groupName ? (openBlock(), createBlock(_sfc_main$I, { key: 0 }, {
4067
+ __props.groupName ? (openBlock(), createBlock(_sfc_main$L, { key: 0 }, {
3442
4068
  title: withCtx(() => [
3443
4069
  createTextVNode(toDisplayString(__props.groupName), 1)
3444
4070
  ]),
@@ -3453,54 +4079,45 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3453
4079
  })) : createCommentVNode("", true),
3454
4080
  createElementVNode("div", _hoisted_1$3, [
3455
4081
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pricings, (pricing) => {
3456
- return openBlock(), createBlock(unref(_sfc_main$o), {
4082
+ return openBlock(), createBlock(unref(_sfc_main$t), {
3457
4083
  key: pricing.id,
3458
4084
  "content-background": __props.groupName || isSelected(pricing.id) ? "none" : "gray",
3459
4085
  class: normalizeClass({ "!bg-white": isSelected(pricing.id) })
3460
4086
  }, {
3461
- default: withCtx(() => {
3462
- var _a, _b;
3463
- return [
3464
- createVNode(_sfc_main$g, {
3465
- name: unref(getNameFromPricing)(pricing) ?? "",
3466
- description: ((_a = pricing.items) == null ? void 0 : _a[0]) ? unref(renderPricingForPricingItem)({
3467
- pricingItem: (_b = pricing.items) == null ? void 0 : _b[0]
3468
- }) : unref($t)({
3469
- defaultMessage: "Unsupported pricing",
3470
- id: "addon_multiple_editor.unsupported_pricing_error",
3471
- description: "Text displayed when the pricing item pricing is unsupported"
3472
- })
3473
- }, {
3474
- default: withCtx(() => [
3475
- isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$r), {
3476
- key: 0,
3477
- color: "gray",
3478
- variant: "outline",
3479
- square: "",
3480
- size: "sm",
3481
- "icon-prefix": "remove_shopping_cart",
3482
- onClick: ($event) => handleToggle(pricing.id)
3483
- }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$r), {
3484
- key: 1,
3485
- color: "primary",
3486
- "icon-prefix": "add",
3487
- size: "sm",
3488
- onClick: ($event) => handleToggle(pricing.id)
3489
- }, {
3490
- default: withCtx(() => [
3491
- createTextVNode(toDisplayString(unref($t)({
3492
- defaultMessage: "Add to subscription ",
3493
- id: "addon_multiple_editor.add_to_subscription_button",
3494
- description: "The button to add a pricing to the subscription"
3495
- })), 1)
3496
- ]),
3497
- _: 1
3498
- }, 8, ["onClick"]))
3499
- ]),
3500
- _: 2
3501
- }, 1032, ["name", "description"])
3502
- ];
3503
- }),
4087
+ default: withCtx(() => [
4088
+ createVNode(_sfc_main$g, {
4089
+ name: unref(getNameFromPricing)(pricing) ?? "",
4090
+ description: unref(describePricing)(pricing)
4091
+ }, {
4092
+ default: withCtx(() => [
4093
+ isSelected(pricing.id) ? (openBlock(), createBlock(unref(_sfc_main$v), {
4094
+ key: 0,
4095
+ color: "gray",
4096
+ variant: "outline",
4097
+ square: "",
4098
+ size: "sm",
4099
+ "icon-prefix": "remove_shopping_cart",
4100
+ onClick: ($event) => handleToggle(pricing.id)
4101
+ }, null, 8, ["onClick"])) : (openBlock(), createBlock(unref(_sfc_main$v), {
4102
+ key: 1,
4103
+ color: "primary",
4104
+ "icon-prefix": "add",
4105
+ size: "sm",
4106
+ onClick: ($event) => handleToggle(pricing.id)
4107
+ }, {
4108
+ default: withCtx(() => [
4109
+ createTextVNode(toDisplayString(unref($t)({
4110
+ defaultMessage: "Add to subscription ",
4111
+ id: "addon_multiple_editor.add_to_subscription_button",
4112
+ description: "The button to add a pricing to the subscription"
4113
+ })), 1)
4114
+ ]),
4115
+ _: 1
4116
+ }, 8, ["onClick"]))
4117
+ ]),
4118
+ _: 2
4119
+ }, 1032, ["name", "description"])
4120
+ ]),
3504
4121
  _: 2
3505
4122
  }, 1032, ["content-background", "class"]);
3506
4123
  }), 128))
@@ -3558,7 +4175,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3558
4175
  () => getPricingGroupsFromExtendedPricingPlanSubscription(props.subscription)
3559
4176
  );
3560
4177
  return (_ctx, _cache) => {
3561
- return openBlock(), createBlock(unref(_sfc_main$o), {
4178
+ return openBlock(), createBlock(unref(_sfc_main$t), {
3562
4179
  class: "sv-plan-customization",
3563
4180
  title: unref($t)({
3564
4181
  defaultMessage: "Customize plan",
@@ -3582,7 +4199,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3582
4199
  return openBlock(), createElementBlock(Fragment, {
3583
4200
  key: pricingGroup.id
3584
4201
  }, [
3585
- pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$J, {
4202
+ pricingGroup.product_type === "DEFAULT" && pricingGroup.selection_constraint === "EXACTLY_ONE" ? (openBlock(), createBlock(_sfc_main$M, {
3586
4203
  key: 0,
3587
4204
  modelValue: enabledPricingIdsModel.value,
3588
4205
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
@@ -3761,7 +4378,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3761
4378
  );
3762
4379
  return (_ctx, _cache) => {
3763
4380
  return openBlock(), createElementBlock(Fragment, null, [
3764
- !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({ key: 0 }, _ctx.$attrs, {
4381
+ !isApplied.value ? (openBlock(), createBlock(unref(_sfc_main$t), mergeProps({ key: 0 }, _ctx.$attrs, {
3765
4382
  "no-spacing": "",
3766
4383
  class: "relative w-full"
3767
4384
  }), {
@@ -3778,8 +4395,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3778
4395
  }, [
3779
4396
  createElementVNode("div", _hoisted_2$1, [
3780
4397
  createElementVNode("div", _hoisted_3$1, [
3781
- createVNode(unref(_sfc_main$H), { icon: "local_activity" }),
3782
- createVNode(unref(_sfc_main$n), {
4398
+ createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
4399
+ createVNode(unref(_sfc_main$r), {
3783
4400
  id: labelId,
3784
4401
  variant: "body-sm"
3785
4402
  }, {
@@ -3793,7 +4410,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3793
4410
  _: 1
3794
4411
  })
3795
4412
  ]),
3796
- createVNode(unref(_sfc_main$H), {
4413
+ createVNode(unref(_sfc_main$K), {
3797
4414
  icon: isExpanded.value ? "remove" : "add"
3798
4415
  }, null, 8, ["icon"])
3799
4416
  ])
@@ -3823,7 +4440,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3823
4440
  class: "w-full",
3824
4441
  onKeydown: withKeys(withModifiers(applyCode, ["prevent"]), ["enter"])
3825
4442
  }, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
3826
- createVNode(unref(_sfc_main$r), {
4443
+ createVNode(unref(_sfc_main$v), {
3827
4444
  type: "button",
3828
4445
  disabled: !canApply.value,
3829
4446
  "aria-label": applyAriaLabel.value,
@@ -3844,7 +4461,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3844
4461
  ])
3845
4462
  ]),
3846
4463
  _: 1
3847
- }, 16)) : (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({ key: 1 }, _ctx.$attrs, {
4464
+ }, 16)) : (openBlock(), createBlock(unref(_sfc_main$t), mergeProps({ key: 1 }, _ctx.$attrs, {
3848
4465
  "no-border": "",
3849
4466
  "no-spacing": "",
3850
4467
  "content-background": "none",
@@ -3859,8 +4476,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3859
4476
  }, [
3860
4477
  createElementVNode("div", _hoisted_6$1, [
3861
4478
  createElementVNode("div", _hoisted_7, [
3862
- createVNode(unref(_sfc_main$H), { icon: "local_activity" }),
3863
- createVNode(unref(_sfc_main$n), {
4479
+ createVNode(unref(_sfc_main$K), { icon: "local_activity" }),
4480
+ createVNode(unref(_sfc_main$r), {
3864
4481
  variant: "body-sm",
3865
4482
  class: "font-semibold"
3866
4483
  }, {
@@ -3870,7 +4487,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3870
4487
  _: 1
3871
4488
  })
3872
4489
  ]),
3873
- createVNode(unref(_sfc_main$H), { icon: "close" })
4490
+ createVNode(unref(_sfc_main$K), { icon: "close" })
3874
4491
  ])
3875
4492
  ], 8, _hoisted_5$1)
3876
4493
  ]),
@@ -3882,16 +4499,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3882
4499
  }
3883
4500
  });
3884
4501
  const _hoisted_1 = { class: "sv-checkout__header" };
3885
- const _hoisted_2 = {
3886
- key: 5,
3887
- class: "sv-checkout__payment-methods"
3888
- };
4502
+ const _hoisted_2 = { class: "sv-checkout__payment-methods" };
3889
4503
  const _hoisted_3 = {
3890
4504
  key: 0,
3891
4505
  class: "sv-checkout__payment-methods-body"
3892
4506
  };
3893
4507
  const _hoisted_4 = {
3894
- key: 2,
4508
+ key: 3,
3895
4509
  class: "sv-checkout__payment-form"
3896
4510
  };
3897
4511
  const _hoisted_5 = { class: "sv-checkout__order-summary" };
@@ -3905,7 +4519,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3905
4519
  setup(__props, { emit: __emit }) {
3906
4520
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3907
4521
  const PaymentIntegrationForm = defineAsyncComponent(
3908
- () => import("../../PaymentIntegrationForm-PIT8gHYN.mjs")
4522
+ () => import("../../PaymentIntegrationForm-CbqfAdkc.mjs")
3909
4523
  );
3910
4524
  const props = __props;
3911
4525
  const emit = __emit;
@@ -3933,6 +4547,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3933
4547
  const successRedirectUrl = (_e = (_d = portal.value) == null ? void 0 : _d.init_pricing_plan_subscription) == null ? void 0 : _e.success_url;
3934
4548
  const {
3935
4549
  paymentMethodOptions,
4550
+ hasPaymentMethodOptionsError,
4551
+ retryPaymentMethodOptions,
3936
4552
  subscription,
3937
4553
  isPaymentMethodsPending,
3938
4554
  isInvoicePreviewPending,
@@ -4248,7 +4864,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4248
4864
  }, {
4249
4865
  header: withCtx(() => [
4250
4866
  createElementVNode("div", _hoisted_1, [
4251
- createVNode(_sfc_main$E, { class: "min-h-[52px] w-96" }, {
4867
+ createVNode(_sfc_main$I, { class: "min-h-[52px] w-96" }, {
4252
4868
  default: withCtx(() => {
4253
4869
  var _a2, _b2, _c2;
4254
4870
  return [
@@ -4272,149 +4888,188 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4272
4888
  content: withCtx(() => {
4273
4889
  var _a2, _b2, _c2;
4274
4890
  return [
4275
- unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$f, {
4276
- key: 0,
4277
- class: "sv-checkout__mobile-order-summary",
4278
- subscription: unref(subscription),
4279
- invoice: unref(invoicePreview),
4280
- "invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
4281
- "trial-invoice": unref(trialInvoicePreview),
4282
- "enabled-pricing-ids": enabledPricingIdsModel.value,
4283
- "trial-period": unref(trialPeriod),
4284
- avatar: (_a2 = configuration.value) == null ? void 0 : _a2.avatar,
4285
- "is-paid": unref(isPaid),
4286
- "is-usage-based": isUsageBased.value,
4287
- "is-preview-and-payment-methods-pending": unref(isPaymentMethodsPending) || unref(isInvoicePreviewPending),
4288
- "country-code": unref(checkoutForm).form.value.country,
4289
- collapsible: "collapsed",
4290
- variant: "products-inline",
4291
- onBillingPeriodChange: handleBillingPeriodChange
4292
- }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : createCommentVNode("", true),
4293
- showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$3, {
4294
- key: 1,
4295
- "seats-values": seatsValuesModel.value,
4296
- "onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
4297
- "enabled-pricing-ids": enabledPricingIdsModel.value,
4298
- "onUpdate:enabledPricingIds": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
4299
- class: "sv-checkout__plan-customization",
4300
- subscription: unref(subscription),
4301
- "initial-seats-values": (_b2 = unref(checkoutForm).initialState) == null ? void 0 : _b2.value.seatsValues,
4302
- "billing-period": unref(subscription).billing_period,
4303
- currency: activePricingCurrency.value
4304
- }, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
4305
- !unref(isPaid) && unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$a, {
4306
- key: 2,
4307
- class: "sv-checkout__express-payment-methods",
4308
- amount: unref(amount),
4309
- "country-code": unref(checkoutForm).form.value.country,
4310
- locale: unref(locale),
4311
- "payment-methods-options-response": unref(paymentMethodOptions) ?? [],
4312
- "billing-information": expressPaymentMethodBillingInformation.value,
4313
- "on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
4314
- onUpdateBillingInformation: handleUpdateBillingInformation
4315
- }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
4316
4891
  unref(isPaid) ? (openBlock(), createBlock(_sfc_main$h, {
4317
- key: 3,
4892
+ key: 0,
4318
4893
  class: "sv-checkout__completed-payment",
4319
4894
  onContinueToMerchant: handleRedirect
4320
- })) : createCommentVNode("", true),
4321
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$k, {
4322
- key: 4,
4323
- modelValue: unref(checkoutForm).form.value,
4324
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
4325
- class: "sv-checkout__customer-form",
4326
- validation: unref(checkoutForm).validation,
4327
- "read-only-email": (_c2 = props.configuration) == null ? void 0 : _c2.email,
4328
- "show-customer-info-on-top": showCustomerInfoOnTop.value || unref(isPaid),
4329
- "is-billing-information-mandatory": isBillingInformationMandatory.value,
4330
- "get-is-field-required": unref(checkoutForm).getIsFieldRequired,
4331
- "read-only": unref(isPaid)
4332
- }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"])) : createCommentVNode("", true),
4333
- !unref(isPaid) ? (openBlock(), createElementBlock("div", _hoisted_2, [
4334
- createVNode(_sfc_main$E, {
4335
- variant: "section",
4336
- class: "min-h-[130px]"
4337
- }, {
4338
- default: withCtx(() => [
4339
- !unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
4340
- createVNode(unref(_sfc_main$n), {
4341
- variant: "heading-3",
4342
- tag: "h2",
4343
- class: "sv-checkout__payment-methods-title mb-2"
4344
- }, {
4345
- default: withCtx(() => [
4346
- createTextVNode(toDisplayString(unref($t)({
4347
- defaultMessage: "Payment method",
4348
- id: "checkout.payment_method_block.title",
4349
- description: "The title of the payment method block in the checkout form"
4350
- })), 1)
4351
- ]),
4352
- _: 1
4353
- }),
4354
- !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$M, {
4355
- key: 0,
4356
- class: "sv-checkout__payment-methods-empty",
4357
- icon: "captive_portal"
4358
- }, {
4359
- title: withCtx(() => [
4360
- createTextVNode(toDisplayString(unref($t)({
4361
- defaultMessage: "Select your billing country",
4362
- id: "checkout.payment_method_block.no_country_selected_title",
4363
- description: "The title shown when no country is selected"
4364
- })), 1)
4365
- ]),
4366
- message: withCtx(() => [
4367
- createTextVNode(toDisplayString(unref($t)({
4368
- defaultMessage: "Payment methods will be shown after you select the billing country.",
4369
- id: "checkout.payment_method_block.no_country_selected_message",
4370
- description: "The message shown when no country is selected"
4371
- })), 1)
4372
- ]),
4373
- _: 1
4374
- })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$M, {
4375
- key: 1,
4376
- class: "sv-checkout__payment-methods-empty",
4377
- icon: "credit_card_off"
4378
- }, {
4379
- title: withCtx(() => [
4380
- createTextVNode(toDisplayString(unref($t)({
4381
- defaultMessage: "No payment methods available",
4382
- id: "checkout.payment_method_block.no_payment_methods_available_title",
4383
- description: "The title shown when there are no available payment methods"
4384
- })), 1)
4385
- ]),
4386
- _: 1
4387
- })) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createElementBlock("div", _hoisted_4, [
4388
- createElementVNode("div", {
4389
- class: normalizeClass({ "pointer-events-none opacity-60": isPaymentPending.value })
4390
- }, [
4391
- createVNode(unref(PaymentIntegrationForm), {
4392
- ref_key: "paymentIntegrationFormRef",
4393
- ref: paymentIntegrationFormRef,
4394
- "country-code": unref(checkoutForm).form.value.country,
4395
- context: unref(authorizationContext),
4396
- amount: unref(amount),
4397
- email: unref(checkoutForm).form.value.email,
4398
- variant: "AUTHORIZE",
4399
- "payment-method-options": unref(paymentMethodOptions) ?? [],
4400
- "validate-on-submit": handleValidateOnSubmit,
4401
- "force-store-payment-method": "",
4402
- onPaymentSuccess: handlePaymentSuccess,
4403
- onPaymentFailed: handlePaymentFailed,
4404
- onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
4405
- }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options"])
4406
- ], 2)
4895
+ })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
4896
+ unref(subscription) && unref(isMobileViewport) ? (openBlock(), createBlock(_sfc_main$f, {
4897
+ key: 0,
4898
+ class: "sv-checkout__mobile-order-summary",
4899
+ subscription: unref(subscription),
4900
+ invoice: unref(invoicePreview),
4901
+ "invoice-preview-by-billing-period": unref(invoicePreviewByBillingPeriod),
4902
+ "trial-invoice": unref(trialInvoicePreview),
4903
+ "enabled-pricing-ids": enabledPricingIdsModel.value,
4904
+ "trial-period": unref(trialPeriod),
4905
+ avatar: (_a2 = configuration.value) == null ? void 0 : _a2.avatar,
4906
+ "is-paid": unref(isPaid),
4907
+ "is-usage-based": isUsageBased.value,
4908
+ "is-preview-and-payment-methods-pending": unref(isPaymentMethodsPending) || unref(isInvoicePreviewPending),
4909
+ "country-code": unref(checkoutForm).form.value.country,
4910
+ collapsible: "collapsed",
4911
+ variant: "products-inline",
4912
+ onBillingPeriodChange: handleBillingPeriodChange
4913
+ }, null, 8, ["subscription", "invoice", "invoice-preview-by-billing-period", "trial-invoice", "enabled-pricing-ids", "trial-period", "avatar", "is-paid", "is-usage-based", "is-preview-and-payment-methods-pending", "country-code"])) : createCommentVNode("", true),
4914
+ showPlanCustomizationEditor.value && unref(subscription) ? (openBlock(), createBlock(_sfc_main$3, {
4915
+ key: 1,
4916
+ "seats-values": seatsValuesModel.value,
4917
+ "onUpdate:seatsValues": _cache[0] || (_cache[0] = ($event) => seatsValuesModel.value = $event),
4918
+ "enabled-pricing-ids": enabledPricingIdsModel.value,
4919
+ "onUpdate:enabledPricingIds": _cache[1] || (_cache[1] = ($event) => enabledPricingIdsModel.value = $event),
4920
+ class: "sv-checkout__plan-customization",
4921
+ subscription: unref(subscription),
4922
+ "initial-seats-values": (_b2 = unref(checkoutForm).initialState) == null ? void 0 : _b2.value.seatsValues,
4923
+ "billing-period": unref(subscription).billing_period,
4924
+ currency: activePricingCurrency.value
4925
+ }, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : createCommentVNode("", true),
4926
+ unref(checkoutForm).form.value.country && unref(amount) && expressPaymentMethodBillingInformation.value ? (openBlock(), createBlock(_sfc_main$a, {
4927
+ key: 2,
4928
+ class: "sv-checkout__express-payment-methods",
4929
+ amount: unref(amount),
4930
+ "country-code": unref(checkoutForm).form.value.country,
4931
+ locale: unref(locale),
4932
+ "payment-methods-options-response": unref(paymentMethodOptions) ?? [],
4933
+ "billing-information": expressPaymentMethodBillingInformation.value,
4934
+ "on-billing-information-change": unref(updateInvoicePreviewOnBillingInformationChange),
4935
+ onUpdateBillingInformation: handleUpdateBillingInformation
4936
+ }, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : createCommentVNode("", true),
4937
+ createVNode(_sfc_main$k, {
4938
+ modelValue: unref(checkoutForm).form.value,
4939
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(checkoutForm).form.value = $event),
4940
+ class: "sv-checkout__customer-form",
4941
+ validation: unref(checkoutForm).validation,
4942
+ "read-only-email": (_c2 = props.configuration) == null ? void 0 : _c2.email,
4943
+ "show-customer-info-on-top": showCustomerInfoOnTop.value || unref(isPaid),
4944
+ "is-billing-information-mandatory": isBillingInformationMandatory.value,
4945
+ "get-is-field-required": unref(checkoutForm).getIsFieldRequired,
4946
+ "read-only": unref(isPaid)
4947
+ }, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"]),
4948
+ createElementVNode("div", _hoisted_2, [
4949
+ createVNode(_sfc_main$I, {
4950
+ variant: "section",
4951
+ class: "min-h-[130px]"
4952
+ }, {
4953
+ default: withCtx(() => [
4954
+ !unref(isPaymentMethodsPending) || unref(isPaymentMethodsPending) && unref(paymentMethodOptions).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
4955
+ createVNode(unref(_sfc_main$r), {
4956
+ variant: "heading-3",
4957
+ tag: "h2",
4958
+ class: "sv-checkout__payment-methods-title mb-2"
4959
+ }, {
4960
+ default: withCtx(() => [
4961
+ createTextVNode(toDisplayString(unref($t)({
4962
+ defaultMessage: "Payment method",
4963
+ id: "checkout.payment_method_block.title",
4964
+ description: "The title of the payment method block in the checkout form"
4965
+ })), 1)
4966
+ ]),
4967
+ _: 1
4968
+ }),
4969
+ !unref(checkoutForm).form.value.country ? (openBlock(), createBlock(_sfc_main$P, {
4970
+ key: 0,
4971
+ class: "sv-checkout__payment-methods-empty",
4972
+ icon: "captive_portal"
4973
+ }, {
4974
+ title: withCtx(() => [
4975
+ createTextVNode(toDisplayString(unref($t)({
4976
+ defaultMessage: "Select your billing country",
4977
+ id: "checkout.payment_method_block.no_country_selected_title",
4978
+ description: "The title shown when no country is selected"
4979
+ })), 1)
4980
+ ]),
4981
+ message: withCtx(() => [
4982
+ createTextVNode(toDisplayString(unref($t)({
4983
+ defaultMessage: "Payment methods will be shown after you select the billing country.",
4984
+ id: "checkout.payment_method_block.no_country_selected_message",
4985
+ description: "The message shown when no country is selected"
4986
+ })), 1)
4987
+ ]),
4988
+ _: 1
4989
+ })) : unref(hasPaymentMethodOptionsError) ? (openBlock(), createBlock(_sfc_main$P, {
4990
+ key: 1,
4991
+ class: "sv-checkout__payment-methods-error",
4992
+ icon: "error"
4993
+ }, {
4994
+ title: withCtx(() => [
4995
+ createTextVNode(toDisplayString(unref($t)({
4996
+ defaultMessage: "Could not load payment methods",
4997
+ id: "checkout.payment_method_block.load_failed_title",
4998
+ description: "The title shown when the payment methods failed to load"
4999
+ })), 1)
5000
+ ]),
5001
+ message: withCtx(() => [
5002
+ createTextVNode(toDisplayString(unref($t)({
5003
+ defaultMessage: "Check your connection and try again.",
5004
+ id: "checkout.payment_method_block.load_failed_message",
5005
+ description: "The message shown when the payment methods failed to load"
5006
+ })), 1)
5007
+ ]),
5008
+ action: withCtx(() => [
5009
+ createVNode(unref(_sfc_main$v), {
5010
+ type: "button",
5011
+ color: "gray",
5012
+ variant: "outline",
5013
+ size: "sm",
5014
+ class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
5015
+ onClick: unref(retryPaymentMethodOptions)
5016
+ }, {
5017
+ default: withCtx(() => [
5018
+ createTextVNode(toDisplayString(unref($t)({
5019
+ defaultMessage: "Try again",
5020
+ id: "checkout.payment_method_block.load_failed_retry_button.label",
5021
+ description: "The label of the button that loads the payment methods again"
5022
+ })), 1)
5023
+ ]),
5024
+ _: 1
5025
+ }, 8, ["onClick"])
5026
+ ]),
5027
+ _: 1
5028
+ })) : unref(paymentMethodOptions).length === 0 ? (openBlock(), createBlock(_sfc_main$P, {
5029
+ key: 2,
5030
+ class: "sv-checkout__payment-methods-empty",
5031
+ icon: "credit_card_off"
5032
+ }, {
5033
+ title: withCtx(() => [
5034
+ createTextVNode(toDisplayString(unref($t)({
5035
+ defaultMessage: "No payment methods available",
5036
+ id: "checkout.payment_method_block.no_payment_methods_available_title",
5037
+ description: "The title shown when there are no available payment methods"
5038
+ })), 1)
5039
+ ]),
5040
+ _: 1
5041
+ })) : unref(amount) && unref(checkoutForm).form.value.country ? (openBlock(), createElementBlock("div", _hoisted_4, [
5042
+ createElementVNode("div", {
5043
+ class: normalizeClass({ "pointer-events-none opacity-60": isPaymentPending.value })
5044
+ }, [
5045
+ createVNode(unref(PaymentIntegrationForm), {
5046
+ ref_key: "paymentIntegrationFormRef",
5047
+ ref: paymentIntegrationFormRef,
5048
+ "country-code": unref(checkoutForm).form.value.country,
5049
+ context: unref(authorizationContext),
5050
+ amount: unref(amount),
5051
+ email: unref(checkoutForm).form.value.email,
5052
+ variant: "AUTHORIZE",
5053
+ "payment-method-options": unref(paymentMethodOptions) ?? [],
5054
+ "validate-on-submit": handleValidateOnSubmit,
5055
+ "force-store-payment-method": "",
5056
+ onPaymentSuccess: handlePaymentSuccess,
5057
+ onPaymentFailed: handlePaymentFailed,
5058
+ onReady: _cache[3] || (_cache[3] = ($event) => emit("ready"))
5059
+ }, null, 8, ["country-code", "context", "amount", "email", "payment-method-options"])
5060
+ ], 2)
5061
+ ])) : createCommentVNode("", true)
4407
5062
  ])) : createCommentVNode("", true)
4408
- ])) : createCommentVNode("", true)
4409
- ]),
4410
- _: 1
4411
- })
4412
- ])) : createCommentVNode("", true)
5063
+ ]),
5064
+ _: 1
5065
+ })
5066
+ ])
5067
+ ], 64))
4413
5068
  ];
4414
5069
  }),
4415
5070
  aside: withCtx(() => [
4416
5071
  createElementVNode("div", _hoisted_5, [
4417
- createVNode(_sfc_main$E, {
5072
+ createVNode(_sfc_main$I, {
4418
5073
  variant: "section",
4419
5074
  class: "min-h-[220px]"
4420
5075
  }, {
@@ -4441,52 +5096,50 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4441
5096
  _: 1
4442
5097
  })
4443
5098
  ]),
4444
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$2, {
4445
- key: 0,
4446
- class: "sv-checkout__promotion-code",
4447
- "promotion-code": promotionCode.value,
4448
- "onUpdate:appliedCode": _cache[4] || (_cache[4] = ($event) => promotionCode.value = $event),
4449
- onRemove: unref(removePromotionCode),
4450
- onApply: unref(applyPromotionCode)
4451
- }, null, 8, ["promotion-code", "onRemove", "onApply"])) : createCommentVNode("", true),
4452
- unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$K), {
4453
- key: 1,
4454
- class: "sv-checkout__promotion-error mt-2",
4455
- title: unref(promotionCodeErrorMessage)
4456
- }, null, 8, ["title"])) : createCommentVNode("", true),
4457
- createElementVNode("div", _hoisted_6, [
4458
- !unref(isPaid) ? (openBlock(), createBlock(_sfc_main$E, {
5099
+ !unref(isPaid) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5100
+ createVNode(_sfc_main$2, {
5101
+ class: "sv-checkout__promotion-code",
5102
+ "promotion-code": promotionCode.value,
5103
+ "onUpdate:appliedCode": _cache[4] || (_cache[4] = ($event) => promotionCode.value = $event),
5104
+ onRemove: unref(removePromotionCode),
5105
+ onApply: unref(applyPromotionCode)
5106
+ }, null, 8, ["promotion-code", "onRemove", "onApply"]),
5107
+ unref(promotionCodeErrorMessage) ? (openBlock(), createBlock(unref(_sfc_main$N), {
4459
5108
  key: 0,
4460
- class: "sv-checkout__submit-skeleton min-h-[44px]"
4461
- }, {
4462
- default: withCtx(() => [
4463
- unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$r), {
4464
- key: 0,
4465
- type: "button",
4466
- size: "lg",
4467
- class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
4468
- disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0 || isPaymentPending.value,
4469
- loading: isPaymentPending.value,
4470
- onClick: handleSubmit
4471
- }, {
4472
- default: withCtx(() => [
4473
- createTextVNode(toDisplayString(hasTrialPeriod.value ? unref($t)({
4474
- defaultMessage: "Start trial",
4475
- id: "checkout.pay_and_subscribe_button_trial.label",
4476
- description: "The label of the start trial button in the checkout form"
4477
- }) : unref($t)({
4478
- defaultMessage: "Pay and subscribe",
4479
- id: "checkout.pay_and_subscribe_button.label",
4480
- description: "The label of the pay and subscribe button in the checkout form"
4481
- })), 1)
4482
- ]),
4483
- _: 1
4484
- }, 8, ["disabled", "loading"])) : createCommentVNode("", true)
4485
- ]),
4486
- _: 1
4487
- })) : createCommentVNode("", true),
4488
- createVNode(_sfc_main$L, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
4489
- ])
5109
+ class: "sv-checkout__promotion-error mt-2",
5110
+ title: unref(promotionCodeErrorMessage)
5111
+ }, null, 8, ["title"])) : createCommentVNode("", true),
5112
+ createElementVNode("div", _hoisted_6, [
5113
+ createVNode(_sfc_main$I, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
5114
+ default: withCtx(() => [
5115
+ unref(invoicePreview) ? (openBlock(), createBlock(unref(_sfc_main$v), {
5116
+ key: 0,
5117
+ type: "button",
5118
+ size: "lg",
5119
+ class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
5120
+ disabled: unref(isPromotionCodePending) || unref(paymentMethodOptions).length === 0 || isPaymentPending.value,
5121
+ loading: isPaymentPending.value,
5122
+ onClick: handleSubmit
5123
+ }, {
5124
+ default: withCtx(() => [
5125
+ createTextVNode(toDisplayString(hasTrialPeriod.value ? unref($t)({
5126
+ defaultMessage: "Start trial",
5127
+ id: "checkout.pay_and_subscribe_button_trial.label",
5128
+ description: "The label of the start trial button in the checkout form"
5129
+ }) : unref($t)({
5130
+ defaultMessage: "Pay and subscribe",
5131
+ id: "checkout.pay_and_subscribe_button.label",
5132
+ description: "The label of the pay and subscribe button in the checkout form"
5133
+ })), 1)
5134
+ ]),
5135
+ _: 1
5136
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true)
5137
+ ]),
5138
+ _: 1
5139
+ }),
5140
+ createVNode(_sfc_main$O, { "payment-method-options": unref(paymentMethodOptions) }, null, 8, ["payment-method-options"])
5141
+ ])
5142
+ ], 64)) : createCommentVNode("", true)
4490
5143
  ]),
4491
5144
  _: 1
4492
5145
  }, 8, ["class"]));
@@ -4515,6 +5168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4515
5168
  emits: ["error", "ready"],
4516
5169
  setup(__props, { emit: __emit }) {
4517
5170
  var _a, _b, _c;
5171
+ const componentName = getComponentName("checkout");
4518
5172
  const props = __props;
4519
5173
  const emit = __emit;
4520
5174
  const logger = useLogger();
@@ -4542,30 +5196,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4542
5196
  const validEmail = getValidEmail((_b = props.configuration) == null ? void 0 : _b.email);
4543
5197
  const couponCode = ((_c = props.configuration) == null ? void 0 : _c.couponCode) ?? getQueryParam("coupon_code") ?? void 0;
4544
5198
  return (_ctx, _cache) => {
4545
- var _a2, _b2, _c2, _d;
4546
- return openBlock(), createBlock(_sfc_main$N, {
4547
- "custom-element-name": unref(COMPONENT_NAME),
4548
- environment: __props.environment,
4549
- locale: __props.locale,
4550
- "portal-object": __props.portalObject,
5199
+ return openBlock(), createBlock(unref(_sfc_main$Q), {
5200
+ entry: _ctx.$props,
5201
+ "component-name": unref(componentName),
4551
5202
  "allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
4552
- "primary-color": (_b2 = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b2.primary,
4553
- "secondary-color": (_d = (_c2 = __props.branding) == null ? void 0 : _c2.colors) == null ? void 0 : _d.secondary,
4554
- "experimental-features": __props.experimentalFeatures,
4555
- "log-level": __props.logLevel,
4556
- "on-log": __props.onLog,
4557
- "css-overrides": __props.cssOverrides,
4558
5203
  onError: _cache[1] || (_cache[1] = (error) => _ctx.$emit("error", error))
4559
5204
  }, {
4560
5205
  default: withCtx(() => {
4561
- var _a3, _b3, _c3;
5206
+ var _a2, _b2, _c2;
4562
5207
  return [
4563
5208
  createVNode(_sfc_main$1, {
4564
5209
  configuration: {
4565
- avatar: (_b3 = (_a3 = __props.branding) == null ? void 0 : _a3.emblem) == null ? void 0 : _b3.public_url,
5210
+ avatar: (_b2 = (_a2 = __props.branding) == null ? void 0 : _a2.emblem) == null ? void 0 : _b2.public_url,
4566
5211
  email: unref(validEmail),
4567
5212
  countryCode: unref(validCountryCode),
4568
- enabledPricingIds: (_c3 = __props.configuration) == null ? void 0 : _c3.enabledPricingIds,
5213
+ enabledPricingIds: (_c2 = __props.configuration) == null ? void 0 : _c2.enabledPricingIds,
4569
5214
  couponCode: unref(couponCode)
4570
5215
  },
4571
5216
  onReady: _cache[0] || (_cache[0] = ($event) => emit("ready"))
@@ -4581,19 +5226,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4581
5226
  ];
4582
5227
  }),
4583
5228
  _: 3
4584
- }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
5229
+ }, 8, ["entry", "component-name"]);
4585
5230
  };
4586
5231
  }
4587
5232
  });
4588
- const SolvimonCheckout = defineCustomElement(_sfc_main);
4589
- const COMPONENT_NAME = getComponentName("checkout");
4590
- const defineSolvimonCheckout = () => {
4591
- if (!customElements.get(COMPONENT_NAME)) {
4592
- customElements.define(COMPONENT_NAME, SolvimonCheckout);
4593
- }
4594
- };
5233
+ const { define: defineSolvimonCheckout } = createSolvimonElement(
5234
+ _sfc_main,
5235
+ "checkout"
5236
+ );
4595
5237
  export {
4596
- COMPONENT_NAME,
4597
- SolvimonCheckout,
4598
5238
  defineSolvimonCheckout
4599
5239
  };