@solvimon/solvimon-web 0.1.0-alpha.17 → 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 (616) hide show
  1. package/README.md +91 -50
  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-Y3CzulQq.mjs +241 -0
  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-BrPsTuoW.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-CuWrBcoK.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-Bej5_H7r.mjs +3261 -0
  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-wxP5IaGt.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-D7IX9qqy.mjs +155 -0
  54. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs +54 -0
  55. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
  56. package/dist/{PaymentHistoryBlock-BitwS9Re.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
  57. package/dist/{PaymentHistoryBlock-ZtmPXXwI.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-C3ZUDUdw.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
  60. package/dist/{PaymentIntegrationForm-BZTzCUiu.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
  61. package/dist/{PaymentIntegrationForm-BK2aLPCo.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-DJHwpswk.mjs +149 -0
  64. package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
  65. package/dist/PaymentIntegrationFormAdyen-CuRwe9_9.mjs +691 -0
  66. package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
  67. package/dist/PaymentIntegrationFormStripe-JZw2m1kJ.mjs +545 -0
  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-C5WqTDow.mjs +4 -0
  71. package/dist/PaymentMethodForm-CBjHdZT7.js +1 -0
  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-CIQ0vsko.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
  74. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +80 -30
  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/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +17 -63
  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-BDqX6OaE.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +8 -5
  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/adyen-BMDZQBUG.js +1 -0
  93. package/dist/{url-BjZ1Pg0l.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
  94. package/dist/api.es-C5pe8LUl.mjs +62 -0
  95. package/dist/api.es-Czekkp_X.js +1 -0
  96. package/dist/cn.es-BLHlMR4Y.js +1 -0
  97. package/dist/cn.es-DB5pDpxS.mjs +3298 -0
  98. package/dist/comparators.es-9VsCB-JI.mjs +175 -0
  99. package/dist/comparators.es-wrKHduVq.js +1 -0
  100. package/dist/component-BG6DmXcy.mjs +9 -0
  101. package/dist/component-hDuDTBt5.js +1 -0
  102. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
  103. package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
  104. package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
  105. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
  106. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
  107. package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
  108. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
  109. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
  110. package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
  111. package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
  112. package/dist/components/Invoice/Invoice.cjs +1 -0
  113. package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
  114. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
  115. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
  116. package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
  117. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
  118. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
  119. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
  120. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
  121. package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
  122. package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
  123. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
  124. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
  125. package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
  126. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
  127. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
  128. package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
  129. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
  130. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
  131. package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
  132. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
  133. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
  134. package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
  135. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
  136. package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
  137. package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +31 -29
  138. package/dist/configuration-BjYwV4_B.js +1 -0
  139. package/dist/configuration-CD8cOXAJ.mjs +15 -0
  140. package/dist/core/action-request.types.d.ts +1 -67
  141. package/dist/core/configuration.d.ts +1 -3
  142. package/dist/core/index.cjs +1 -0
  143. package/dist/core/index.d.ts +1 -11
  144. package/dist/core/index.mjs +197 -0
  145. package/dist/core/registry.ce.d.ts +1 -2
  146. package/dist/core/registry.d.ts +1 -6
  147. package/dist/core/types.d.ts +1 -121
  148. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  149. package/dist/countryData.es-D3MFzU92.js +1 -0
  150. package/dist/customElements-BTJzBHMy.js +1 -0
  151. package/dist/customElements-DdFA__me.mjs +6729 -0
  152. package/dist/{customer-DAgdegIW.mjs → customer-B0AMetq6.mjs} +1 -1
  153. package/dist/customer-D7HUfF3j.js +1 -0
  154. package/dist/customer.es-C_vSWcVA.mjs +30 -0
  155. package/dist/customer.es-D42Md24r.js +1 -0
  156. package/dist/en-US-BSrbFk5W.js +1 -0
  157. package/dist/en-US-D0P7NNNZ.mjs +228 -0
  158. package/dist/{en-US-DSzSbgL5.mjs → en-US-Daw3v6GD.mjs} +60 -30
  159. package/dist/en-US-scSQQXK8.js +1 -0
  160. package/dist/error-Cg-i7gGl.js +1 -0
  161. package/dist/error-DY_I2hPx.mjs +13 -0
  162. package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
  163. package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
  164. package/dist/formatting.es-9hM8aHSg.js +1 -0
  165. package/dist/formatting.es-D-oVnc8H.mjs +68 -0
  166. package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
  167. package/dist/getComposedString.es-DvSNX-_z.js +1 -0
  168. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  169. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  170. package/dist/index-BJ3dHkSK.js +1 -0
  171. package/dist/index-C5bKRt7l.mjs +1069 -0
  172. package/dist/index.cjs +1 -0
  173. package/dist/index.d.ts +1 -17
  174. package/dist/index.es-0cystq8F.mjs +542 -0
  175. package/dist/index.es-2JWHHSgP.js +1 -0
  176. package/dist/index.mjs +42 -0
  177. package/dist/{invoices-BXDgW8ch.mjs → invoices-BSd-nKeE.mjs} +17 -16
  178. package/dist/invoices-BiqM6xN6.js +1 -0
  179. package/dist/{nl-NL-Li7RW89R.mjs → nl-NL-B4zEBFTw.mjs} +60 -52
  180. package/dist/nl-NL-B5tuyIOM.mjs +88 -0
  181. package/dist/nl-NL-Bs3d8q6T.js +1 -0
  182. package/dist/nl-NL-DIAZWDF9.js +1 -0
  183. package/dist/object.es-DFXiU9p3.js +1 -0
  184. package/dist/object.es-jvvnR8Kr.mjs +12 -0
  185. package/dist/{paymentMethods-xzFD2L30.mjs → paymentMethods-BsrkEbKT.mjs} +23 -19
  186. package/dist/paymentMethods-Cu2RzLgm.js +1 -0
  187. package/dist/{payments-DV6csRej.mjs → payments-B6Nfd6Al.mjs} +1 -1
  188. package/dist/payments-Bbm1HMQj.js +1 -0
  189. package/dist/pricing-3W7XLwL6.js +1 -0
  190. package/dist/pricing-CJxS2hr2.mjs +17 -0
  191. package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
  192. package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
  193. package/dist/{pricingPlanSchedule-C_cqUyTk.mjs → pricingPlanSchedule-CXG3CQ61.mjs} +3 -1
  194. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
  195. package/dist/screens/Checkout/Checkout.cjs +1 -0
  196. package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1271 -630
  197. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
  198. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
  199. package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +54 -81
  200. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
  201. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
  202. package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +41 -32
  203. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
  204. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
  205. package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +35 -37
  206. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
  207. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
  208. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +885 -0
  209. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
  210. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
  211. package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +45 -63
  212. package/dist/slots.es-BpwYO3A3.mjs +18 -0
  213. package/dist/slots.es-Dq1PTUOv.js +1 -0
  214. package/dist/sorting.es-CjTrRfSW.mjs +105 -0
  215. package/dist/sorting.es-RyvcgbSL.js +1 -0
  216. package/dist/{subscription-B4dBAY9C.mjs → subscription-C41lG-rH.mjs} +1 -1
  217. package/dist/subscriptions-B4BOzLxR.js +1 -0
  218. package/dist/subscriptions-C2C4WTuI.mjs +58 -0
  219. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  220. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  221. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
  222. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  223. package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
  224. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
  225. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
  226. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
  227. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
  228. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
  229. package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
  230. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
  231. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
  232. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
  233. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
  234. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
  235. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
  236. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
  237. package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
  238. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
  239. package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
  240. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
  241. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
  242. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
  243. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
  244. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
  245. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
  246. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
  247. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
  248. package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
  249. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
  250. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
  251. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
  252. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
  253. package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
  254. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
  255. package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
  256. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
  257. package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
  258. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
  259. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
  260. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
  261. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
  262. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
  263. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
  264. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
  265. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
  266. package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
  267. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
  268. package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
  269. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
  270. package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
  271. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
  272. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
  273. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
  274. package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
  275. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
  276. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
  277. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
  278. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
  279. package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
  280. package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
  281. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
  282. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
  283. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
  284. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
  285. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
  286. package/dist/types/components/providers/index.d.ts +9 -0
  287. package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
  288. package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
  289. package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
  290. package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
  291. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
  292. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
  293. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
  294. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
  295. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
  296. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
  297. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
  298. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
  299. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
  300. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
  301. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
  302. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
  303. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
  304. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
  305. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
  306. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
  307. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
  308. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  309. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
  310. package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
  311. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
  312. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
  313. package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
  314. package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
  315. package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
  316. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
  317. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
  318. package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
  319. package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
  320. package/dist/types/config/config.beta.d.ts +2 -0
  321. package/dist/types/config/config.dev.d.ts +2 -0
  322. package/dist/types/config/config.live.d.ts +2 -0
  323. package/dist/types/config/internalEnvironments.d.ts +11 -0
  324. package/dist/types/config/internalEnvironments.published.d.ts +7 -0
  325. package/dist/types/config/lib.d.ts +6 -0
  326. package/dist/types/config/types.d.ts +13 -0
  327. package/dist/types/index.d.ts +23 -0
  328. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
  329. package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
  330. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
  331. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
  332. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
  333. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
  334. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
  335. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
  336. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
  337. package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
  338. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
  339. package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
  340. package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
  341. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
  342. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
  343. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
  344. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
  345. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
  346. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
  347. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
  348. package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
  349. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
  350. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
  351. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
  352. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
  353. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
  354. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
  355. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
  356. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
  357. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
  358. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
  359. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
  360. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
  361. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  362. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
  363. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
  364. package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
  365. package/dist/types/public/core/action-request.types.d.ts +55 -0
  366. package/dist/types/public/core/configuration.d.ts +3 -0
  367. package/dist/types/public/core/index.d.ts +14 -0
  368. package/dist/types/public/core/registry.ce.d.ts +8 -0
  369. package/dist/types/public/core/registry.d.ts +6 -0
  370. package/dist/types/public/core/types.d.ts +120 -0
  371. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
  372. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
  373. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
  374. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
  375. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
  376. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
  377. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
  378. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
  379. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
  380. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
  381. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
  382. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
  383. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
  384. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
  385. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
  386. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
  387. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
  388. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
  389. package/dist/types/public/screens/types.d.ts +4 -0
  390. package/dist/types/public/types/index.d.ts +23 -0
  391. package/dist/types/services/invoices.types.d.ts +26 -0
  392. package/dist/types/services/paymentMethods.types.d.ts +31 -0
  393. package/dist/types/services/portals.types.d.ts +68 -0
  394. package/dist/types/services/requests.types.d.ts +24 -0
  395. package/dist/types/translations/supported.d.ts +1 -0
  396. package/dist/types/types/EntryBaseProps.d.ts +10 -0
  397. package/dist/types/types/errors.d.ts +7 -0
  398. package/dist/types/types/subscription.d.ts +4 -0
  399. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
  400. package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
  401. package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
  402. package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
  403. package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
  404. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
  405. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
  406. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
  407. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
  408. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
  409. package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
  410. package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
  411. package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
  412. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
  413. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
  414. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
  415. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
  416. package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
  417. package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
  418. package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
  419. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
  420. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
  421. package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
  422. package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
  423. package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
  424. package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
  425. package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
  426. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
  427. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
  428. package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
  429. package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
  430. package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
  431. package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
  432. package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
  433. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
  434. package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
  435. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
  436. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
  437. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
  438. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
  439. package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
  440. package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
  441. package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
  442. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
  443. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
  444. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
  445. package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
  446. package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
  447. package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
  448. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
  449. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
  450. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
  451. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
  452. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
  453. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
  454. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
  455. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
  456. package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
  457. package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
  458. package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
  459. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
  460. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
  461. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
  462. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
  463. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
  464. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
  465. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
  466. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
  467. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
  468. package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
  469. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
  470. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
  471. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
  472. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
  473. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
  474. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
  475. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
  476. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
  477. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
  478. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
  479. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
  480. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
  481. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
  482. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
  483. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
  484. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
  485. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
  486. package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
  487. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
  488. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
  489. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
  490. package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
  491. package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
  492. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
  493. package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
  494. package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
  495. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
  496. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
  497. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
  498. package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
  499. package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
  500. package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
  501. package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
  502. package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
  503. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
  504. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
  505. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
  506. package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
  507. package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
  508. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
  509. package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
  510. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
  511. package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
  512. package/dist/{useActionDispatchProvider-zB_GKeUR.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
  513. package/dist/{useCustomer-VfeQ6rG2.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
  514. package/dist/{useCustomer-bO4D6e4Z.js → useCustomer-DYCpgA-3.js} +1 -1
  515. package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
  516. package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
  517. package/dist/{useIncrementalLoading-C59FXHzp.mjs → useIncrementalLoading-BK9pRYAU.mjs} +6 -5
  518. package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
  519. package/dist/{useInvoiceData-CxxkBTGY.js → useInvoiceData-BczeMpuk.js} +1 -1
  520. package/dist/{useInvoiceData-Dhg-hx8C.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
  521. package/dist/{useInvoicesList-DBz7T7sM.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
  522. package/dist/useInvoicesList-rMg-8LbH.js +1 -0
  523. package/dist/{useLoadInitialData-BhpIg7OF.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
  524. package/dist/useLoadInitialData-CiJldX50.js +1 -0
  525. package/dist/{usePaymentMethodOptions-PcMjtMSF.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -3
  526. package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
  527. package/dist/{usePaymentMethods-B5AbGWsn.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
  528. package/dist/{usePaymentMethods-Bb1Xbads.js → usePaymentMethods-CFL3hFW_.js} +1 -1
  529. package/dist/usePayments-BKTNn_RN.js +1 -0
  530. package/dist/usePayments-BlliAt1E.mjs +262 -0
  531. package/dist/{usePortal-DWLtNqBB.mjs → usePortal-eyA4OqjU.mjs} +1 -1
  532. package/dist/usePortal-fhri8neB.js +1 -0
  533. package/dist/useService-D73FNBjT.js +1 -0
  534. package/dist/{useService-BZqFkz7p.mjs → useService-W3Kxems4.mjs} +24 -5
  535. package/dist/useSubscription--IGLmLS6.mjs +250 -0
  536. package/dist/useSubscription-V3KSuhOY.js +1 -0
  537. package/package.json +66 -49
  538. package/dist/ApiStatus-CyNDp_op.mjs +0 -9
  539. package/dist/ApiStatus-oqvUEWJx.js +0 -1
  540. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js +0 -1
  541. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js +0 -1
  542. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +0 -1
  543. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs +0 -77
  544. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +0 -1
  545. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js +0 -1
  546. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js +0 -1
  547. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs +0 -27
  548. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js +0 -1
  549. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs +0 -1537
  550. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +0 -1
  551. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +0 -1
  552. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +0 -156
  553. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +0 -1
  554. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js +0 -1
  555. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +0 -1
  556. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs +0 -217
  557. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +0 -1
  558. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +0 -37
  559. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +0 -1
  560. package/dist/component-CUJ_G2Nw.mjs +0 -962
  561. package/dist/component-CiKxWtdx.js +0 -1
  562. package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
  563. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
  564. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
  565. package/dist/components/Invoice/Invoice.cjs.js +0 -1
  566. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
  567. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
  568. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
  569. package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
  570. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
  571. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
  572. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
  573. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
  574. package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
  575. package/dist/core/index.cjs.js +0 -1
  576. package/dist/core/index.es.js +0 -6
  577. package/dist/customer-AfRcAZ5P.js +0 -1
  578. package/dist/en-US-QzQnGXP1.js +0 -1
  579. package/dist/index-CzL1ZcGi.mjs +0 -85
  580. package/dist/index-DRdBmZ2-.js +0 -1
  581. package/dist/index.cjs.js +0 -1
  582. package/dist/index.es.js +0 -51
  583. package/dist/invoices-BHgajZHq.js +0 -1
  584. package/dist/nl-NL-C4rr-1tr.js +0 -1
  585. package/dist/paymentMethods-BMcc-eTl.js +0 -1
  586. package/dist/payments-DMvmB5vg.js +0 -1
  587. package/dist/pricing-B1uImUm4.mjs +0 -19
  588. package/dist/pricing-BEjY_5wb.js +0 -1
  589. package/dist/registry-CeMxLjwU.js +0 -1
  590. package/dist/registry-CyENvS6l.mjs +0 -153
  591. package/dist/screens/Checkout/Checkout.cjs.js +0 -1
  592. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
  593. package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
  594. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
  595. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
  596. package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +0 -542
  597. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
  598. package/dist/solvimon-web.css +0 -1
  599. package/dist/subscriptions-CrNDM9qa.mjs +0 -79
  600. package/dist/subscriptions-DC-mxa17.js +0 -1
  601. package/dist/url-D8GJi5rF.js +0 -1
  602. package/dist/useActionDispatchProvider-bqR_FeM4.js +0 -1
  603. package/dist/useIncrementalLoading-BgWuwoMo.js +0 -1
  604. package/dist/useInvoicesList-BXZ9uV9i.js +0 -1
  605. package/dist/useLoadInitialData-BqiAFNFi.js +0 -1
  606. package/dist/usePaymentMethodOptions-DszFvgKX.js +0 -1
  607. package/dist/usePayments-DgoZoBZh.mjs +0 -36
  608. package/dist/usePayments-is5c66Z6.js +0 -1
  609. package/dist/usePortal-C4qWsJeq.js +0 -1
  610. package/dist/useService-DKm3QtT4.js +0 -1
  611. package/dist/useSubscription-CEZJw6wZ.mjs +0 -23
  612. package/dist/useSubscription-DuUNc1_l.js +0 -1
  613. package/dist/useTopUpModal-DNyWrHDv.mjs +0 -1012
  614. package/dist/useTopUpModal-DeF-cfCK.js +0 -1
  615. package/dist/vendor-ui-BoGKOJ36.mjs +0 -29826
  616. package/dist/vendor-ui-BuRqLx74.js +0 -1
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../vendor-ui-BuRqLx74.js"),i=require("../../component-CiKxWtdx.js"),o=require("../../subscriptions-DC-mxa17.js"),n=require("../../ApiStatus-oqvUEWJx.js"),a=require("../../invoices-BHgajZHq.js"),r=require("../../pricingPlanSchedule-B9HFiXy-.js"),l=require("../../index-DRdBmZ2-.js"),c=require("../../useWatchDebounced-C_YxgoQ6.js"),u=require("../../paymentMethods-BMcc-eTl.js"),s=require("../../useService-DKm3QtT4.js"),d=require("../../subscription-b0OPx8Du.js"),p=require("../../pricing-BEjY_5wb.js"),m=require("../../url-D8GJi5rF.js"),g=require("../../usePortal-C4qWsJeq.js"),v=require("../../customer-AfRcAZ5P.js"),y=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js"),f=require("../../useViewport-CKRY1CKR.js"),_=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),h=require("../../payments-DMvmB5vg.js"),b=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js"),M=require("../../ContentWithAsideLayout-DHpnJfGA.js"),N=e=>{var t,i;return"organization"in e?null==(t=e.organization)?void 0:t.registered_address:"individual"in e?null==(i=e.individual)?void 0:i.residential_address:void 0},I=e=>{var i,o;const n=(e=>{const t=N(e);return{...(null==t?void 0:t.line1)&&{line1:t.line1},...(null==t?void 0:t.line2)&&{line2:t.line2},...(null==t?void 0:t.city)&&{city:t.city},...(null==t?void 0:t.state)&&{state:t.state},country:(null==t?void 0:t.country)||"NL",...(null==t?void 0:t.postal_code)&&{postal_code:t.postal_code}}})(e),a=e.type??"INDIVIDUAL";if("ORGANIZATION"===a){const r="organization"in e?e.organization:void 0,l=null==(o=null==(i=null==r?void 0:r.tax_ids)?void 0:i[0])?void 0:o.id;return{type:a,organization:{legal_name:(null==r?void 0:r.legal_name)||"preview",registered_address:n,...l&&{tax_id:t.taxId.$validator(l,{},{})?l:void 0}}}}return{type:a,individual:{residential_address:n}}},C={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"BTN",BV:"NOK",BW:"BWP",BY:"BYN",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHF",CI:"XOF",CK:"NZD",CL:"CLP",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUP",CV:"CVE",CW:"ANG",CX:"AUD",CY:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"GBP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"EUR",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"EUR",LU:"EUR",LV:"EUR",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRU",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"ILS",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLE",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",SS:"SSP",ST:"STN",SV:"USD",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",US:"USD",UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VES",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"WST",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMW",ZW:"ZWL"},k=({country:e,pricingCurrencySettings:t,fallbackCurrency:i})=>{const o=(e=>{if(e)return C[e]})(e),n=(null==t?void 0:t.pricing_currencies)??[];return o&&n.includes(o)?o:(null==t?void 0:t.default_pricing_currency)??i??o},A=["email","country"],D="GENERIC_TAX_ID",P={US:["addressLine1","postalCode"],CA:["state"]},E=e=>{const t={...e.addressLine1&&{line1:e.addressLine1},...e.addressLine2&&{line2:e.addressLine2},...e.city&&{city:e.city},...e.state&&{state:e.state},...e.postalCode&&{postal_code:e.postalCode},country:e.country??""};return"ORGANIZATION"===e.type?{type:"ORGANIZATION",organization:{legal_name:e.companyLegalName??"",registered_address:t,...e.companyVatNumber&&{tax_ids:[{id:e.companyVatNumber,type:D}]}}}:{type:"INDIVIDUAL",individual:{residential_address:t}}};function w({initialState:i,onRequiredFieldChange:o}){const n=e.ref(V(i)),a=e.ref(V(i)),r=e.computed(()=>{return(e=n.value.country)&&P[e]?[...P[e],...A]:A;var e}),u=e=>r.value.includes(e),s=t.useValidation({email:{required:l.required,email:l.email},country:{required:l.required},state:{required:l.requiredIf(()=>u("state"))},addressLine1:{required:l.requiredIf(()=>u("addressLine1"))},postalCode:{required:l.requiredIf(()=>u("postalCode"))},companyLegalName:l.requiredIf("ORGANIZATION"===n.value.type),companyVatNumber:{taxId:t.taxId}},n),d=e=>{e||fetch("https://api.country.is/").then(e=>e.json()).then(({country:e})=>{n.value.country=e})};return e.onMounted(async()=>{await d(null==i?void 0:i.country)}),c.useWatchDebounced(()=>JSON.parse(JSON.stringify(n.value)),(e,i)=>{const n=t.objectDiff({from:i,to:e}),a=Object.keys(n).find(x);a&&(["type","companyVatNumber"].includes(a)?o(e):"seatsValues"!==a&&"enabledPricingIds"!==a?"email"!==a&&u(a)&&o(e):o(e))},{debounce:200}),{form:n,validation:s,getIsFieldRequired:u,updateInitialState:e=>{const t=V({...n.value,...e});n.value=t,a.value=structuredClone(t)},initialState:a}}const V=(e={})=>({email:void 0,country:void 0,type:"INDIVIDUAL",companyLegalName:void 0,firstName:void 0,infix:void 0,lastName:void 0,addressLine1:void 0,addressLine2:void 0,postalCode:void 0,city:void 0,state:void 0,companyVatNumber:void 0,seatsValues:void 0,enabledPricingIds:void 0,...e});function x(e){return e in V()}function S(e,t=void 0){const i=t??[],o=d.getPricingGroupsFromExtendedPricingPlanSubscription(e);for(const n of o)if(["EXACTLY_ONE","AT_LEAST_ONE"].includes(n.selection_constraint)){const e=n.pricings.map(e=>e.id);if(null==t?void 0:t.some(t=>e.includes(t)))continue;i.push(n.pricings[0].id)}return i}const T="solvimon_checkout_redirect_state";function B({initialCountry:l,initialEmail:c,subscriptionId:d,enabledPricingIds:p}){const g=i.useLogger(),v=e.ref(!1),y=e.ref(),{getSubscription:f}=o.createSubscriptionsService(),_=(()=>{const{getInvoicePreview:o}=a.createInvoicesService(),l=i.useLogger(),c=e.ref(),u=e.ref(),s=e.ref(),d=e.ref({}),p=e.ref(n.ApiStatus.Initial),m=e.ref({}),g=e.ref(),v=e=>`${e.type}:${e.value}`;return{loadInvoicePreview:async({subscription:e,subscriptionStartAt:i,customer:a={},seatsValues:y,enabledPricingIds:f,promotionCode:_})=>{var h,b,M,C,A,D;const P=I(a);p.value=n.ApiStatus.Loading;const E=r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:e.pricing_plan_schedule_infos,type:"DEFAULT"}),w=null==(h=null==E?void 0:E.pricing_plan_version)?void 0:h.pricing_currency_settings,V=((null==(b=null==w?void 0:w.pricing_currencies)?void 0:b.length)??0)>1,x=(null==(C=null==(M=null==E?void 0:E.pricing_plan_version)?void 0:M.billing_period_settings)?void 0:C.billing_periods)??[],S=x.length>1,T=x.length>0?x.map(({period:e})=>e):e.billing_period?[e.billing_period]:[],B=k({country:null==(A=N(a))?void 0:A.country,pricingCurrencySettings:w,fallbackCurrency:e.billing_currency});if(!T.length)return l.warn("INVOICE_PREVIEW_SKIPPED","No billing period to preview an invoice for",{subscriptionId:e.id}),void(p.value=n.ApiStatus.Done);const L=e.billing_period?v(e.billing_period):v(T[0]),z=T.map(async n=>{var a;const l=v(n),c=r.getScheduleCustomizations({enabledPricings:null==f?void 0:f.map(e=>({pricing_id:e})),seatsValues:y,pricingPlanScheduleInfos:e.pricing_plan_schedule_infos,pricingCurrency:V?B:void 0,billingPeriod:S?n:void 0})??[];if(_){const t=null==(a=e.pricing_plan_schedule_infos.find(({pricing_plan_schedule:e})=>"DEFAULT"===e.type))?void 0:a.id;if(t){const e=c.find(({pricing_plan_schedule_id:e})=>e===t);e?e.promotion_codes=[_]:c.push({pricing_plan_schedule_id:t,promotion_codes:[_]})}}const u={pricingPlanSubscriptionId:e.id,startAt:i,customizations:c,customer:P},s=m.value[l];return s&&t.isEqual(u,s)?{periodKey:l,response:void 0}:(m.value={...m.value,[l]:u},{periodKey:l,response:await o(u)})});try{const i={...d.value},o=await Promise.all(z),n=e.pricing_plan_schedule_infos.find(({pricing_plan_schedule:e})=>"TRIAL"===e.type),a=null==(D=e.pricing_plan_schedule_infos.find(({pricing_plan_schedule:e})=>"DEFAULT"===e.type))?void 0:D.id;o.forEach(({periodKey:e,response:o})=>{var r;if(!o)return;g.value=null==(r=o.invoice_infos.at(-1))?void 0:r.pricing_plan_schedule_id,n&&(u.value=o.first_invoice,n.start_at&&n.end_at&&(c.value=t.convertDateRangeToTimePeriod(new Date(n.start_at),new Date(n.end_at))));const l=o.invoice_infos.find(({pricing_plan_schedule_id:e})=>e===a),s=null==l?void 0:l.invoices[0];s&&(i[e]=s)}),d.value=i,s.value=i[L]}catch(j){throw p.value=n.ApiStatus.Failed,l.error("INVOICE_PREVIEW_FAILED","Failed to load invoice preview",{},j),j}finally{p.value=n.ApiStatus.Done}},invoicePreview:s,invoicePreviewByBillingPeriod:d,trialInvoicePreview:u,trialPeriod:c,lastPreviewScheduleId:g,isPending:e.computed(()=>p.value===n.ApiStatus.Loading)}})(),h=e.computed(()=>y.value&&P.form.value.country&&x.value),{paymentMethodOptions:b,loadPaymentMethodOptions:M,isPending:C}=(()=>{const i=e.ref(),{getPaymentMethodOptions:o}=u.createPaymentMethodsService(),{data:n,execute:a,isPending:r}=s.useService({initialValue:[],service:o});return{loadPaymentMethodOptions:async({subscriptionId:e,country:o,amount:n})=>{const r={subscriptionId:e,country:o,amount:n};t.isEqual(r,i.value)||(i.value=r,await a(r))},paymentMethodOptions:n,isPending:r}})(),A=()=>{const e=P.form.value;return _.loadInvoicePreview({subscription:y.value,customer:E(e),seatsValues:e.seatsValues,enabledPricingIds:e.enabledPricingIds??p,promotionCode:e.promotionCode})},P=w({initialState:{country:l,email:c},onRequiredFieldChange:()=>{y.value&&A().catch(()=>{})}}),V=e.computed(()=>{var e,i,o,n,a,l,c,u,s;const p=P.form.value.firstName||P.form.value.infix||P.form.value.lastName?{...P.form.value.firstName?{first_name:P.form.value.firstName}:{},...P.form.value.infix?{infix:P.form.value.infix}:{},...P.form.value.lastName?{last_name:P.form.value.lastName}:{}}:{},m={...P.form.value.addressLine1&&{line1:P.form.value.addressLine1},...P.form.value.addressLine2&&{line2:P.form.value.addressLine2},...P.form.value.city&&{city:P.form.value.city},...P.form.value.postalCode&&{postal_code:P.form.value.postalCode},...P.form.value.state&&{state:P.form.value.state},country:P.form.value.country??""},g=r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:(null==(e=y.value)?void 0:e.pricing_plan_schedule_infos)??[],type:"DEFAULT"}),v=null==(i=null==g?void 0:g.pricing_plan_version)?void 0:i.pricing_currency_settings,f=((null==(o=null==v?void 0:v.pricing_currencies)?void 0:o.length)??0)>1,_=((null==(a=null==(n=null==g?void 0:g.pricing_plan_version)?void 0:n.billing_period_settings)?void 0:a.billing_periods)??[]).length>1,h=r.getScheduleCustomizations({enabledPricings:null==(l=P.form.value.enabledPricingIds)?void 0:l.map(e=>({pricing_id:e})),seatsValues:P.form.value.seatsValues,pricingPlanScheduleInfos:(null==(c=y.value)?void 0:c.pricing_plan_schedule_infos)??[],pricingCurrency:f?null==(u=y.value)?void 0:u.billing_currency:void 0,billingPeriod:_?null==(s=y.value)?void 0:s.billing_period:void 0}),b=P.form.value.promotionCode,M=b&&y.value?(()=>{var e,t,i;const o=h?[...h]:[],n=(null==(e=o[0])?void 0:e.pricing_plan_schedule_id)??(null==(i=r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:(null==(t=y.value)?void 0:t.pricing_plan_schedule_infos)??[],type:"DEFAULT"}))?void 0:i.id);if(!n)return h;const a=o.find(({pricing_plan_schedule_id:e})=>e===n);if(a)a.promotion_codes=[b];else{const e=null==h?void 0:h[0];o.push({pricing_plan_schedule_id:n,...(null==e?void 0:e.enabled_pricings)&&{enabled_pricings:e.enabled_pricings},...(null==e?void 0:e.seats_values)&&{seats_values:e.seats_values},promotion_codes:[b]})}return o})():h;return{type:"INIT_PRICING_PLAN_SUBSCRIPTION",init_pricing_plan_subscription:{template_pricing_plan_subscription_id:d,...M&&{pricing_plan_schedule_customizations:M},customer_details:{email:P.form.value.email??"",type:P.form.value.type,..."INDIVIDUAL"===P.form.value.type?{individual:{residential_address:m,...p?{name:p}:{}}}:{organization:{registered_address:m,legal_name:P.form.value.companyLegalName??"",...P.form.value.companyVatNumber&&t.taxId.$validator(P.form.value.companyVatNumber,{},{})?{tax_ids:[{id:P.form.value.companyVatNumber,type:D}]}:{}}}}}}}),x=e.computed(()=>{var e,t;return(null==(e=_.trialInvoicePreview.value)?void 0:e.invoice_amount_including_tax)??(null==(t=_.invoicePreview.value)?void 0:t.invoice_amount_including_tax)});return e.watch([()=>P.form.value.country,x],([e,t])=>{y.value&&e&&t&&M({subscriptionId:y.value.id,country:e,amount:t}).catch(e=>{})}),e.onMounted(async()=>{const e=m.getQueryParam("redirect_status"),t=!!m.getQueryParam(m.PAYMENT_ACCEPTOR_ID_QUERY_STRING),i=!!m.getQueryParam("payment_intent_client_secret")||!!m.getQueryParam("setup_intent_client_secret");"succeeded"===e&&t&&i&&(v.value=!0);const o=sessionStorage.getItem(T);let n=null;if(o)try{n=JSON.parse(o)}catch{}n&&P.updateInitialState(n);try{await(async()=>{var e,t,i,o,n,a;const l=await f({id:d,expanded:!0}),c=r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:l.pricing_plan_schedule_infos,type:"DEFAULT"}),u=null==(o=null==(i=null==(t=null==(e=null==c?void 0:c.pricing_plan_version)?void 0:e.billing_period_settings)?void 0:t.billing_periods)?void 0:i[0])?void 0:o.period;y.value={...l,billing_period:u??l.billing_period},P.updateInitialState({...P.form.value,enabledPricingIds:S(l,p),...(null==(n=null==c?void 0:c.pricing_plan_schedule)?void 0:n.seats_values)?{seatsValues:null==(a=null==c?void 0:c.pricing_plan_schedule)?void 0:a.seats_values.map(({pricing_item_config_id:e,number:t})=>({pricing_item_config_id:e,number:t}))}:{}})})()}catch(a){throw g.error("SUBSCRIPTION_LOAD_FAILED","Failed to load the subscription the checkout prices",{},a),a}try{await A()}catch{}n&&(P.updateInitialState(n),sessionStorage.removeItem(T))}),e.watch(h,e=>{e&&M({subscriptionId:y.value.id,country:P.form.value.country,amount:x.value})},{once:!0}),{invoicePreview:_.invoicePreview,invoicePreviewByBillingPeriod:_.invoicePreviewByBillingPeriod,trialInvoicePreview:_.trialInvoicePreview,trialPeriod:_.trialPeriod,loadInvoicePreview:A,updateInvoicePreviewOnBillingInformationChange:async e=>{const t=e.promotionCode??P.form.value.promotionCode,i=e.enabledPricingIds??P.form.value.enabledPricingIds,o={...P.form.value,...e};return await _.loadInvoicePreview({subscription:y.value,customer:E(o),seatsValues:o.seatsValues,enabledPricingIds:i,promotionCode:t}),{trialInvoicePreview:_.trialInvoicePreview.value,invoicePreview:_.invoicePreview.value}},lastPreviewScheduleId:_.lastPreviewScheduleId,paymentMethodOptions:b,isPaymentMethodsPending:C,isInvoicePreviewPending:_.isPending,subscription:y,checkoutForm:P,authorizationContext:V,isPaid:v,amount:x,saveFormStateForRedirect:function(){sessionStorage.setItem(T,JSON.stringify(P.form.value))}}}const L={class:"flex items-center gap-2"},z=e.defineComponent({__name:"TaxIDCheckNotice",props:{taxIdValidationResult:{type:Object}},setup(i){const o=i,{formatMessage:n}=t.useIntl(),a=e.computed(()=>"VALID"===o.taxIdValidationResult.valid),r=e.computed(()=>a.value?n({defaultMessage:"VAT number is valid.",id:"tax_check.valid_vat_number",description:"The message shown when the VAT number is valid"}):n({defaultMessage:"VAT number is invalid.",id:"tax_check.invalid_vat_number",description:"The message shown when the VAT number is invalid"}));return(i,o)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$33),{type:a.value?"success":"danger",icon:!1},{default:e.withCtx(()=>[e.createElementVNode("div",L,[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})])]),_:1},8,["type"]))}});const j={class:"grid grid-cols-1 gap-1"},O={class:"grid grid-cols-1 gap-2"},R={key:0},U={class:"mt-2 flex flex-col gap-3"},F={class:"grid grid-cols-3 gap-2"},$={class:"flex grow flex-col"},G={key:0},Y={class:"mt-4 grid grid-cols-1 gap-3"},q=e.defineComponent({__name:"CheckoutForm",props:e.mergeModels({validation:{type:null},initialState:{type:Object},readOnlyEmail:{type:String},showCustomerInfoOnTop:{type:Boolean},isBillingInformationMandatory:{type:Boolean},getIsFieldRequired:{type:Function},readOnly:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["submit"],["update:modelValue"]),setup(i){const o=i,n=e.ref(!1),a=e.useModel(i,"modelValue"),r=e.computed({get:()=>"ORGANIZATION"===a.value.type,set:e=>{a.value.type=e?"ORGANIZATION":"INDIVIDUAL"}}),l=e.computed(()=>"ORGANIZATION"===a.value.type),c=e.computed({get:()=>a.value.country,set:e=>{a.value.country=e&&t.isValidCountryCode(e)?e:void 0}}),u=e.computed(()=>"US"!==a.value.country),{isTaxIDCheckEnabled:s,isTaxIDCheckPending:d,taxIdValidationData:p,runTaxIDCheck:m}=function(i){const{checkTaxID:o}=v.createCustomerService(),n=e.ref(void 0),a=e.computed(()=>{var e;return(null==(e=i.value.companyVatNumber)?void 0:e.trim())??""}),r=e.computed(()=>i.value.companyLegalName??""),l=e.computed(()=>i.value.country),c=e.ref(!1),u=e.computed(()=>t.isEUCountry(l.value??"")),s=e.computed(()=>!!(a.value&&r.value&&l.value)),d=e.computed(()=>u.value&&a.value);return{runTaxIDCheck:async function(){var e;if(s.value&&u.value&&l.value){c.value=!0;try{const t=await o({type:"ORGANIZATION",organization:{legal_name:r.value,tax_ids:[{id:a.value,type:"GENERIC_TAX_ID"}],registered_address:{country:l.value}}});(null==(e=null==t?void 0:t.data)?void 0:e.length)?n.value=t.data[0]:n.value=void 0}finally{c.value=!1}}},taxIdValidationData:n,isTaxIDCheckPending:c,isTaxIDCheckEnabled:s,showViesCheckNotice:d,isSelectedCountryEU:u}}(a),{$t:g}=t.useIntl(),y=e=>o.getIsFieldRequired(e)?"":" "+g({defaultMessage:"(optional)",id:"checkout.optional_suffix.label",description:"The suffix for optional fields in the checkout form"}),f=e.computed(()=>a.value.country?t.getCountryNameByCode(a.value.country):void 0);return(o,v)=>(e.openBlock(),e.createElementBlock("form",{id:"checkout-form",onSubmit:v[12]||(v[12]=e.withModifiers(e=>o.$emit("submit",a.value),["prevent"]))},[e.createElementVNode("div",j,[e.createVNode(e.unref(t._sfc_main),{title:e.unref(g)({defaultMessage:"Customer information",id:"checkout.contact_information_block.title",description:"The title of the contact information block in the checkout form"})},{default:e.withCtx(()=>[e.createElementVNode("div",O,[i.readOnly?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(t._sfc_main$3),{variant:"body",tag:"span",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value.email),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",tag:"span",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.email,"onUpdate:modelValue":v[0]||(v[0]=e=>a.value.email=e),required:"",type:"email",name:"email",disabled:!!i.readOnlyEmail,label:e.unref(g)({defaultMessage:"Email address",id:"checkout.email_address.label",description:"The email address of the customer in the checkout form"}),placeholder:e.unref(g)({defaultMessage:"Email address...",id:"checkout.email_address.placeholder",description:"The email address of the customer in the checkout form"})+y("email"),error:i.validation.value.email.$errors},null,8,["modelValue","disabled","label","placeholder","error"]),e.createVNode(e.unref(t._sfc_main$25),{"single-model-value":c.value,"onUpdate:singleModelValue":v[3]||(v[3]=e=>c.value=e),required:"",name:"country",label:e.unref(g)({defaultMessage:"Billing country",id:"checkout.country.label",description:"The country of the customer in the checkout form"})+y("country"),error:i.validation.value.country.$errors},{"label-suffix":e.withCtx(()=>[n.value||i.isBillingInformationMandatory?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,size:"xs",variant:"ghost","icon-prefix":"add",class:"py-0.5",onClick:v[1]||(v[1]=e=>n.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)({defaultMessage:"More billing details",description:"Label of the button in the checkout that lets you fill out all billing details",id:"checkout.billing_details.add_billing_details_button.label"})),1)]),_:1})),n.value&&!i.isBillingInformationMandatory?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,size:"sm",variant:"ghost","icon-prefix":"close",class:"py-0.5",onClick:v[2]||(v[2]=e=>n.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)({defaultMessage:"Remove billing details",id:"checkout.billing_details.remove_billing_details_button.label",description:"Label of the button in the checkout that lets you remove the billing details"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["single-model-value","label","error"])],64))]),e.createVNode(e.unref(t._sfc_main$27),{"is-open":n.value||!!i.isBillingInformationMandatory},{default:e.withCtx(()=>[n.value||i.isBillingInformationMandatory?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",U,[e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.addressLine1,"onUpdate:modelValue":v[4]||(v[4]=e=>a.value.addressLine1=e),name:"address_line_1",label:e.unref(g)({defaultMessage:"Billing address",id:"checkout.address.title",description:"Address line 1 of the customer address in the checkout form"}),placeholder:e.unref(g)({defaultMessage:"Address line 1...",id:"checkout.address.line1.placeholder",description:"Address line 1 of the customer address in the checkout form"})+y("addressLine1"),required:"",error:i.validation.value.addressLine1.$errors},null,8,["modelValue","label","placeholder","error"]),e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.addressLine2,"onUpdate:modelValue":v[5]||(v[5]=e=>a.value.addressLine2=e),name:"address_line_2",placeholder:e.unref(g)({defaultMessage:"Address line 2...",id:"checkout.address.line2.placeholder",description:"Address line 2 of the customer address in the checkout form"})+y("addressLine2")},null,8,["modelValue","placeholder"]),e.createElementVNode("div",F,[e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.postalCode,"onUpdate:modelValue":v[6]||(v[6]=e=>a.value.postalCode=e),name:"postal_code",placeholder:e.unref(g)({defaultMessage:"Postal code...",id:"checkout.address.portal_code.placeholder",description:"Postal code of the customer address in the checkout form"})+y("postalCode"),error:i.validation.value.addressLine1.$errors},null,8,["modelValue","placeholder","error"]),e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.city,"onUpdate:modelValue":v[7]||(v[7]=e=>a.value.city=e),name:"city",placeholder:e.unref(g)({defaultMessage:"City...",id:"checkout.address.city.placeholder",description:"City of the customer address in the checkout form"})+y("city")},null,8,["modelValue","placeholder"]),e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.state,"onUpdate:modelValue":v[8]||(v[8]=e=>a.value.state=e),name:"state",placeholder:e.unref(g)({defaultMessage:"State...",id:"checkout.address.state.placeholder",description:"State of the customer address in the checkout form"})+y("state"),error:i.validation.value.state.$errors},null,8,["modelValue","placeholder","error"])])])])):e.createCommentVNode("",!0)]),_:1},8,["is-open"])]),_:1},8,["title"]),i.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$26),{modelValue:r.value,"onUpdate:modelValue":v[9]||(v[9]=e=>r.value=e),"no-spacing":"","label-position":"before",class:"!flex"},{"inline-label":e.withCtx(()=>[e.createElementVNode("div",$,[e.createVNode(e.unref(t._sfc_main$3),{tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)({defaultMessage:"Company purchase",id:"checkout.company_purchase_toggle.title",description:"The title of the company purchase toggle in the checkout"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)({defaultMessage:"I am purchasing on behalf of a company",id:"checkout.company_purchase_toggle.sub_title",description:"The subtitle of the company purchase toggle in the checkout"})),1)]),_:1})])]),_:1},8,["modelValue"]),e.createVNode(e.unref(t._sfc_main$27),{"is-open":l.value},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",Y,[e.createVNode(e.unref(t._sfc_main$24),{modelValue:a.value.companyLegalName,"onUpdate:modelValue":v[10]||(v[10]=e=>a.value.companyLegalName=e),required:"",name:"legal_name",label:e.unref(g)({defaultMessage:"Legal entity name",id:"checkout.legal_name.label",description:"The legal name of the organization customer in the checkout form"}),placeholder:e.unref(g)({defaultMessage:"Legal entity name...",id:"checkout.legal_name.placeholder",description:"The legal name of the organization customer in the checkout form"})},null,8,["modelValue","label","placeholder"]),u.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$24),{key:0,modelValue:a.value.companyVatNumber,"onUpdate:modelValue":v[11]||(v[11]=e=>a.value.companyVatNumber=e),name:"vat_number","input-class":"focus:outline-none focus:ring-0",label:e.unref(g)({defaultMessage:"VAT number",id:"checkout.vat_number.label",description:"The label for the vat number in the checkout form"}),placeholder:e.unref(g)({defaultMessage:"VAT number...",id:"checkout.vat_number.placeholder",description:"The label for the vat number in the checkout form"}),error:i.validation.value.companyVatNumber.$errors,"suffix-class":"px-2 border-l-0"},e.createSlots({_:2},[e.unref(t.isEUCountry)(a.value.country??"")?{name:"suffix",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$1),{type:"button",size:"sm",color:"green",disabled:!e.unref(s)||e.unref(d)||i.validation.value.companyVatNumber.$invalid,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)({defaultMessage:"Check",id:"checkout.vat_number.check_button.label",description:"The label for the check button in the checkout form"})),1)]),_:1},8,["disabled","onClick"])]),key:"0"}:void 0]),1032,["modelValue","label","placeholder","error"])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({"opacity-75":e.unref(d)})},[e.createVNode(z,{"tax-id-validation-result":e.unref(p)},null,8,["tax-id-validation-result"])],2)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1},8,["is-open"])]),_:1}))])],32))}}),Q={key:0,class:"flex items-center"},K=["innerHTML"],Z=["innerHTML"],H=e.defineComponent({__name:"CheckoutTitle",props:{trialPeriod:{type:Object},subscriptionName:{type:String},amount:{type:Object},billingPeriod:{type:Object},countryCode:{type:null},trialStartDate:{type:Date},subscriptionStartDate:{type:Date}},setup(i){const{$t:o}=t.useIntl();return(n,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-1",class:"inline-block"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.trialStartDate?i.subscriptionName:e.unref(o)({defaultMessage:"Pay and subscribe",id:"checkout.page_title",description:"The title of the checkout page"}))+e.toDisplayString(" "),1),i.trialPeriod?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$34),{key:0,"trial-period":i.trialPeriod,size:"lg",class:"-translate-y-0.5"},null,8,["trial-period"])):e.createCommentVNode("",!0)]),_:1})]),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[i.countryCode?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:i.trialStartDate?e.unref(o)({defaultMessage:"You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.",id:"checkout.trial_period_description",description:"The description of the trial period"},{price:e.unref(t.formatAmount)(i.amount),startDate:i.subscriptionStartDate,period_name:e.unref(t.formatBillingPeriod)(i.billingPeriod,{short:!0,hideValueForExactPeriods:!0}),strong:e=>`<strong>${e}</strong>`}):e.unref(o)({defaultMessage:"You will be billed <strong>{price}</strong> per {period_name}, starting today.",id:"checkout.subscription_description",description:"The description of the subscription"},{price:e.unref(t.formatAmount)(i.amount),period_name:e.unref(t.formatBillingPeriod)(i.billingPeriod,{short:!0,hideValueForExactPeriods:!0}),strong:e=>`<strong>${e}</strong>`})},null,8,Z)):(e.openBlock(),e.createElementBlock("span",Q,[e.createVNode(e.unref(t._sfc_main$35),{"is-dark-mode":""},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(t.TooltipContent),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$37),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Will be determined by billing information",description:"Tooltip content for the invoice preview when taxes are not determined by billing information",id:"invoice_preview.taxes_not_determined_by_billing_information_tooltip"})),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$36),{"width-class":"w-10","height-class":"h-4",shade:"darker",class:"inline-block mr-1.5"})]),_:1}),e.createElementVNode("span",{innerHTML:i.trialStartDate?e.unref(o)({defaultMessage:"per {period_name} starting, {startDate, date, long}",id:"checkout.trial_period_description",description:"The description of the trial period"},{startDate:i.subscriptionStartDate,period_name:e.unref(t.formatBillingPeriod)(i.billingPeriod,{short:!0,hideValueForExactPeriods:!0})}):e.unref(o)({defaultMessage:"per {period_name}, starting today",id:"checkout.subscription_description",description:"The description of the subscription"},{period_name:e.unref(t.formatBillingPeriod)(i.billingPeriod,{short:!0,hideValueForExactPeriods:!0})})},null,8,K)]))]),_:1})]))}}),X={class:"flex w-full min-h-96 justify-center items-center"},W={class:"max-w-sm"},J=e.defineComponent({__name:"CheckoutNotAvailable",setup(i){const{$t:o}=t.useIntl(),n=()=>{window.location.reload()};return(i,a)=>(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",W,[e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Checkout not available",id:"checkout.not_available.title",description:"The title of the checkout not available page"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"The checkout is currently not available.",id:"checkout.not_available.description",description:"The description of the checkout not available page"}))+" ",1),e.createElementVNode("a",{href:"#",class:"text-primary-900 hover:underline",onClick:e.withModifiers(n,["prevent"])},e.toDisplayString(e.unref(o)({defaultMessage:"Reload",id:"checkout.not_available.reload_button",description:"The label of the reload button"})),1),e.createTextVNode(" "+e.toDisplayString(e.unref(o)({defaultMessage:"this page to try again, or contact customer support.",id:"checkout.not_available.contact_support_message",description:"The message shown when the user wants to contact customer support"})),1)]),_:1})])]))}}),ee=e.defineComponent({__name:"SubscriptionPaymentCompletedCard",emits:["continue-to-merchant"],setup(i){const{$t:o}=t.useIntl();return(i,n)=>(e.openBlock(),e.createBlock(m._sfc_main,{status:"success",title:e.unref(o)({defaultMessage:"Payment successful",id:"subscription_payment_completed_card.title",description:"The title for when a payment has been successful"})},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-xs",shade:"lighter",tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Thank you for subscribing.",id:"subscription_payment_completed_card.thank_you_for_subscribing",description:"The text shown after a successful message before a redirect"})),1)]),_:1})]),_:1},8,["title"]))}}),te={class:"flex items-start"},ie={class:"flex flex-col grow"},oe={class:"flex items-center gap-1"},ne={class:"flex items-center ml-4 self-center"},ae=e.defineComponent({__name:"PricingGroupContent",props:{name:{type:String},description:{type:String}},setup:i=>(o,n)=>(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",ie,[e.createElementVNode("div",oe,[e.createVNode(e.unref(t._sfc_main$3),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:1}),e.renderSlot(o.$slots,"badge")]),e.createVNode(e.unref(t._sfc_main$3),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.description),1)]),_:1})]),e.createElementVNode("div",ne,[e.renderSlot(o.$slots,"default")])]))}),re={class:"sv-order-summary__body grid grid-cols-1 gap-1"},le={class:"px-3 py-2"},ce={class:"sv-order-summary__billing-period flex flex-col gap-3"},ue={class:"px-3 py-2"},se={key:3,class:"sv-order-summary__items"},de=e.defineComponent({__name:"OrderSummary",props:{subscription:{type:Object},invoice:{type:Object},invoicePreviewByBillingPeriod:{type:Object},trialInvoice:{type:Object},enabledPricingIds:{type:Array},trialPeriod:{type:Object},avatar:{type:String},isPaid:{type:Boolean},isUsageBased:{type:Boolean},isPreviewAndPaymentMethodsPending:{type:Boolean},collapsible:{type:String},noTitle:{type:Boolean},countryCode:{type:null},variant:{type:String}},emits:["billing-period-change"],setup(i,{emit:o}){const n=i,a=o,{$t:l}=t.useIntl(),{map:c,formatTimePeriod:u}=t.useTimePeriod(),{isMobileViewport:s}=f.useViewport(),d=e.computed(()=>s.value?"sm":"xs"),p=e=>`${e.type}:${e.value}`,m=["DAY","WEEK","MONTH","YEAR"],g=e=>m.includes(e),v=e=>{if(!e)return;const[t,i]=e.split(":"),o=Number(i);return o&&g(t)?{type:t,value:o}:void 0},_=e.computed({get:()=>{const e=n.subscription.billing_period;return e?`${e.type}:${e.value}`:void 0},set:e=>{if(!e)return;const[t,i]=e.split(":"),o=Number(i);o&&g(t)&&a("billing-period-change",{type:t,value:o})}}),h=e=>{var i,o,a,r;const c=null==(r=null==(a=null==(o=null==(i=n.invoicePreviewByBillingPeriod)?void 0:i[p(e)])?void 0:o.periods)?void 0:a[0])?void 0:r.amount_including_tax;if(!c)return;const s="MONTH"===e.type&&3===e.value?l({defaultMessage:"/quarter",id:"checkout.order_summary_block.billing_period.per_quarter",description:"Period label for quarterly billing"}):l({defaultMessage:"/{period}",id:"checkout.order_summary_block.billing_period.per_label",description:"Period label for billing cycles"},{period:u(e,{prefix:!1,hideValueForExactPeriods:!0})});return l({defaultMessage:"{amount}{period}",id:"checkout.order_summary_block.billing_period.sub_label",description:"Billing period option sublabel showing price per period"},{amount:t.formatAmount(c),period:s})},b=e=>{var t,i,o,a;return null==(a=null==(o=null==(i=null==(t=n.invoicePreviewByBillingPeriod)?void 0:t[p(e)])?void 0:i.periods)?void 0:o[0])?void 0:a.amount_including_tax},M=e=>Number(e.quantity),N=(e,t)=>{if(!t)return;const i={DAY:365,WEEK:52,MONTH:12,YEAR:1}[e.type]/Math.max(e.value??1,1),o=M(t)*i;return Number.isFinite(o)?{quantity:o.toFixed(2),currency:t.currency}:void 0},I=(e,t)=>{if(!e||!t)return;const i=M(e)-M(t);return!Number.isFinite(i)||i<=0?void 0:{quantity:i.toFixed(2),currency:e.currency}},C=e=>{if(!e)return;return`${l({defaultMessage:"Save {amount}",id:"checkout.order_summary_block.billing_period.save_badge.prefix",description:"First line for the savings badge label"},{amount:t.formatAmount(e)})}${l({defaultMessage:"/year",id:"checkout.order_summary_block.billing_period.save_badge.suffix",description:"Second line for the savings badge label"})}`},k=e.computed(()=>{var e,t,i;const o=r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:n.subscription.pricing_plan_schedule_infos??[],type:"DEFAULT"}),a=(null==(t=null==(e=null==o?void 0:o.pricing_plan_version)?void 0:e.billing_period_settings)?void 0:t.billing_periods)??[],l=new Map,c=e=>{e&&l.set(p(e),e)},u=e=>{var t;null==(t=null==e?void 0:e.items)||t.forEach(e=>{var t,i;null==(t=e.billing_period_configs)||t.forEach(e=>c(e.billing_period)),null==(i=e.pricing_currency_configs)||i.forEach(e=>{var t;null==(t=e.billing_period_configs)||t.forEach(e=>c(e.billing_period))})})};if(((null==(i=null==o?void 0:o.pricing_plan_version)?void 0:i.pricing_categories)??[]).forEach(e=>{var t,i;null==(t=e.pricings)||t.forEach(e=>u(e)),null==(i=e.pricing_groups)||i.forEach(e=>{var t;return null==(t=e.pricings)?void 0:t.forEach(e=>u(e))})}),!l.size)return[];const s=a.map(e=>l.get(p(e.period))).filter(e=>!!e),d=new Set(s.map(p)),m=[...l.values()].filter(e=>!d.has(p(e)));return[...s,...m]}),A=e.computed(()=>{const e=k.value[k.value.length-1],i=e?N(e,b(e)):void 0;return k.value.map(o=>{const n="MONTH"===o.type&&3===o.value?l({defaultMessage:"Billed quarterly",id:"checkout.order_summary_block.billing_period.quarterly",description:"Billing period option label for quarterly billing"}):l({defaultMessage:"Billed {period}",id:"checkout.order_summary_block.billing_period.label",description:"Billing period option label for the selected period"},{period:c.value[o.type].full}),a=b(o),r=N(o,a),u=e&&o.type===e.type&&o.value===e.value?void 0:I(r,i),s=C(u);return{label:n,subLabel:h(o),labelSuffixComponent:s?{component:t._sfc_main$5,props:{color:"primary",content:s,size:d.value,class:"whitespace-nowrap text-left leading-tight"}}:void 0,hidden:_.value===`${o.type}:${o.value}`,value:`${o.type}:${o.value}`}})}),D=e.computed(()=>{const e=A.value,t=e[0],i=e[e.length-1];return{smallestPeriod:null==t?void 0:t.value,biggestPeriod:null==i?void 0:i.value}}),P=e.computed(()=>A.value.find(e=>e.value===D.value.biggestPeriod)),E=e.computed(()=>A.value.find(e=>e.value===_.value)),w=e.computed(()=>{var e,t,i,o,a,r,l,c;const u=A.value,s=u[u.length-1],d=_.value;if(!s||!d)return"";if(d===s.value)return"";const p=v(s.value);if(!p)return"";const m=null==(o=null==(i=null==(t=null==(e=n.invoicePreviewByBillingPeriod)?void 0:e[s.value])?void 0:t.periods)?void 0:i[0])?void 0:o.amount_including_tax,g=v(d),y=null==(c=null==(l=null==(r=null==(a=n.invoicePreviewByBillingPeriod)?void 0:a[d])?void 0:r.periods)?void 0:l[0])?void 0:c.amount_including_tax;if(!g||!y)return"";const f=N(g,y),h=N(p,m);return C(I(f,h))??""}),V=e=>{const{smallestPeriod:t,biggestPeriod:i}=D.value;_.value=e?i:t};return(o,n)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{class:"sv-order-summary","no-border":"","no-spacing":"","content-background":"none",title:i.noTitle?void 0:e.unref(l)({defaultMessage:"Order summary",id:"checkout.order_summary_block.title",description:"The title of the order summary block that lists the subscription cost in the checkout"})},{default:e.withCtx(()=>[e.createElementVNode("div",re,[e.createVNode(e.unref(t._sfc_main),{"no-spacing":"",class:"sv-order-summary__subscription"},{default:e.withCtx(()=>[i.subscription?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,avatar:i.avatar,invoice:i.invoice,subscription:i.subscription,"enabled-pricing-ids":i.enabledPricingIds,loading:i.isPreviewAndPaymentMethodsPending,"trial-period":i.trialPeriod},null,8,["avatar","invoice","subscription","enabled-pricing-ids","loading","trial-period"])):e.createCommentVNode("",!0)]),_:1}),2===A.value.length?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"no-spacing":"","content-classes":_.value===D.value.biggestPeriod?"border-primary-500":void 0},{default:e.withCtx(()=>{var i;return[e.createElementVNode("div",le,[e.createElementVNode("div",ce,[P.value?(e.openBlock(),e.createBlock(ae,{key:0,name:P.value.label,description:(null==(i=E.value)?void 0:i.subLabel)??""},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$26),{"model-value":_.value===D.value.biggestPeriod,"onUpdate:modelValue":V},null,8,["model-value"])]),_:2},[w.value?{name:"badge",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$5),{color:"primary",content:w.value,size:d.value,class:"whitespace-nowrap text-left leading-tight"},null,8,["content","size"])]),key:"0"}:void 0]),1032,["name","description"])):e.createCommentVNode("",!0)])])]}),_:1},8,["content-classes"])):A.value.length>2?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$18),{key:1,"single-model-value":_.value,"onUpdate:singleModelValue":n[0]||(n[0]=e=>_.value=e),class:"sv-order-summary__billing-period",options:A.value,size:"xl","has-large-dropdown":"","show-sub-label-in-input":"","show-suffix-in-closed-input":""},null,8,["single-model-value","options"])):e.createCommentVNode("",!0),i.isUsageBased?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:2,"no-spacing":"",class:"sv-order-summary__usage"},{default:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createVNode(e.unref(t._sfc_main$3),{"no-spacing":"",variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"+ Usage",id:"checkout.invoice_preview.usage_based_message",description:"The message shown for the usage based invoice preview"})),1)]),_:1})])]),_:1})):e.createCommentVNode("",!0),i.invoice&&"products-inline"!==i.variant?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.unref(t._sfc_main$38),{invoice:i.invoice,"wrapper-component":e.unref(t._sfc_main)},null,8,["invoice","wrapper-component"])])):e.createCommentVNode("",!0),e.createVNode(e.unref(t._sfc_main),{class:"sv-order-summary__totals"},{default:e.withCtx(()=>[i.invoice?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$29),{key:0,class:"sv-order-summary__invoice-preview",variant:"products-inline"===i.variant?"default":"without-products",invoice:i.invoice,"trial-invoice":i.trialInvoice,"is-paid":i.isPaid,collapsible:i.collapsible,"is-preview-without-taxes":!i.countryCode,"is-customer-facing":""},null,8,["variant","invoice","trial-invoice","is-paid","collapsible","is-preview-without-taxes"])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:1,variant:"body-sm",shade:"lighter",class:"sv-order-summary__empty"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Please select a country first",description:"The message shown for the invoice preview when no country is set",id:"checkout.invoice_preview.no_country_selected_message"})),1)]),_:1}))]),_:1})])]),_:1},8,["title"]))}}),pe={key:0,id:"svg-logo",viewBox:"0 0 35 15",class:"h-[44px]"},me={key:1,src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",role:"presentation",class:"h-[22px]"},ge=e.defineComponent({__name:"ExpressPaymentMethodButton",props:{type:{type:String}},emits:["click"],setup(i,{emit:o}){const n=i,a=o,r=e.computed(()=>{switch(n.type){case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";default:return}}),l=e.computed(()=>{switch(n.type){case"applepay":return"!bg-black !py-0";case"googlepay":return"!bg-black bg-[url(https://www.gstatic.com/instantbuy/svg/dark_gpay.svg)] bg-[length:auto_42.5%]";case"paypal":return"!bg-[#ffc439]";default:return}});function c(){a("click")}return(i,o)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{size:"lg","aria-label":r.value,class:e.normalizeClass([l.value,"!block w-full h-11 bg-center bg-no-repeat"]),onClick:c},{default:e.withCtx(()=>["applepay"===n.type?(e.openBlock(),e.createElementBlock("svg",pe,[...o[0]||(o[0]=[e.createElementVNode("svg",{id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",class:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("title",null,"Apple Logo"),e.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{fill:"#FFF"},[e.createElementVNode("path",{d:"M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"}),e.createElementVNode("path",{d:"M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"}),e.createElementVNode("path",{d:"M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"}),e.createElementVNode("path",{d:"M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"}),e.createElementVNode("path",{d:"M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"})])])],-1)])])):"paypal"===n.type?(e.openBlock(),e.createElementBlock("img",me)):e.createCommentVNode("",!0)]),_:1},8,["aria-label","class"]))}}),ve={class:"absolute h-[1px] w-[1px] overflow-hidden opacity-0"},ye=e.defineComponent({__name:"ExpressPaymentMethodApplePay",props:{onBillingInformationChange:{type:Function},amount:{type:Object},countryCode:{type:String},locale:{type:String},isVisible:{type:Boolean},paymentMethodOptionsResponse:{type:Object},billingInformation:{type:Object}},emits:["ready","update-billing-information"],setup(o,{emit:n}){const a=o,r=n,l=e.ref(),c=i.useLogger(),{authorizePayment:u}=h.createPaymentsService(),s=a.paymentMethodOptionsResponse.payment_acceptor.id,d=e=>{if(!e.value)return;let t=e.value??1,i=e.type.toLowerCase();return"WEEK"===e.type&&(i="day",t=7*e.value),"day"===i||"month"===i||"year"===i||"hour"===i||"minute"===i?{recurringPaymentIntervalUnit:i,recurringPaymentIntervalCount:t}:void 0},p=e=>({postal_code:e.postalCode,city:e.locality,country:e.countryCode}),g=e=>({postal_code:e.postalCode,city:e.city,country:e.country}),v=e=>e&&y(e)?e:void 0,y=e=>t.isValidCountryCode(e),f=()=>{var e;const t=null==(e=l.value)?void 0:e.querySelector("apple-pay-button");if(t){const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(e)}};return e.onMounted(()=>{(async()=>{const{AdyenCheckout:e,ApplePay:t}=await Promise.resolve().then(()=>require("../../index-DIFK3mcJ.js")),i=new t(await e(m.getAdyenExpressCheckoutConfiguration({amount:a.amount,locale:a.locale,countryCode:a.countryCode,paymentMethodOptionResponse:a.paymentMethodOptionsResponse,logger:c})),{isExpress:!0,recurringPaymentRequest:{paymentDescription:a.billingInformation.description,billingAgreement:a.billingInformation.agreement,managementURL:"https://www.google.com",...a.billingInformation.trial&&{trialBilling:{label:a.billingInformation.trial.label,amount:a.billingInformation.trial.amount.quantity.toString(),type:"final",paymentTiming:"recurring",recurringPaymentStartDate:a.billingInformation.trial.startDate,recurringPaymentEndDate:a.billingInformation.trial.endDate}},...a.billingInformation.regular&&{regularBilling:{label:a.billingInformation.regular.label,amount:a.billingInformation.regular.amount.quantity.toString(),type:"final",paymentTiming:"recurring",recurringPaymentStartDate:a.billingInformation.regular.startDate,...d(a.billingInformation.regular.interval??{type:"MONTH",value:1})}}},requiredBillingContactFields:["postalAddress"],requiredShippingContactFields:["email"],onPaymentMethodSelected:async(e,t,i)=>{var o,n,l,c,u,s,d;const{invoicePreview:p,trialInvoicePreview:m}=await a.onBillingInformationChange({...(null==(o=i.paymentMethod.billingContact)?void 0:o.postalCode)&&{postal_code:i.paymentMethod.billingContact.postalCode},...(null==(n=i.paymentMethod.billingContact)?void 0:n.locality)&&{city:i.paymentMethod.billingContact.locality},...v(null==(l=i.paymentMethod.billingContact)?void 0:l.countryCode)&&{country:v(null==(c=i.paymentMethod.billingContact)?void 0:c.countryCode)}}),g=m?m.invoice_amount_including_tax.quantity.toString():p.invoice_amount_including_tax.quantity.toString();r("update-billing-information",{postal_code:null==(u=i.paymentMethod.billingContact)?void 0:u.postalCode,city:null==(s=i.paymentMethod.billingContact)?void 0:s.locality,country:null==(d=i.paymentMethod.billingContact)?void 0:d.countryCode}),e({newTotal:{label:a.billingInformation.regular.label,amount:g,type:"final"}})},onError:e=>{c.error("APPLE_PAY_ERROR","Apple Pay error",{error:e})},onAuthorized:async(e,t)=>{try{c.info("APPLE_PAY_AUTHORIZED","Apple Pay authorized",{data:e});const i=e.authorizedEvent;c.info("APPLE_PAY_EVENT_DATA","Apple Pay event data structure",{eventData:i,hasPaymentMethod:!!i.payment.token.paymentMethod,hasBrowserInfo:!!i.payment.token.paymentData,billingAddress:e.billingAddress});const o=i.payment.billingContact,n=e.billingAddress;o?r("update-billing-information",p(o)):n&&r("update-billing-information",g(n));const l={payment_method:m.transformObjectToAdyenObject(i.payment.token.paymentMethod),browser_info:m.transformObjectToAdyenObject(i.payment.token.paymentData)};c.info("APPLE_PAY_ADYEN_PAYLOAD","Adyen payload prepared",{adyen:l});const d=m.createReturnUrl({paymentAcceptorId:s,redirectUrl:window.location.href});c.info("APPLE_PAY_CALLING_API","Calling authorizePayment API",{paymentAcceptorId:s,amount:a.amount});const v=await u({payment_acceptor_id:s,payment_gateway_variant:"ADYEN",adyen:{...l,store_payment_method:!0},amount:a.amount,return_url:d});if(c.info("APPLE_PAY_API_RESPONSE","Payment API response received",{status:v.status,paymentResult:v}),"FAILURE"===v.status)return c.error("APPLE_PAY_AUTHORIZATION_FAILED","Payment authorization failed",{error:v}),void t.reject();if("ACTION_REQUIRED"===v.status)return c.warn("APPLE_PAY_ACTION_REQUIRED","Payment requires additional action",{action:v.action}),void t.reject();c.info("APPLE_PAY_SUCCESS","Apple Pay payment successful, resolving"),t.resolve()}catch(i){c.error("APPLE_PAY_AUTHORIZATION_FAILED","Apple Pay authorization failed",{error:i}),t.reject()}}});if(l.value)try{await i.isAvailable(),i.mount(l.value),r("ready")}catch(o){c.error("APPLE_PAY_ERROR","Apple Pay not available on this device",{},o)}else c.error("APPLE_PAY_ERROR","Apple Pay button ref not found")})()}),(t,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.isVisible?(e.openBlock(),e.createBlock(ge,{key:0,type:"applepay",onClick:f})):e.createCommentVNode("",!0),e.createElementVNode("div",ve,[e.createElementVNode("div",{ref_key:"applePayButtonRef",ref:l},null,512)])],64))}}),fe={class:"relative overflow-hidden"},_e=e.defineComponent({__name:"ExpressPaymentMethodPaypal",props:{amount:{type:Object},countryCode:{type:String},locale:{type:String},isVisible:{type:Boolean},paymentMethodOptionsResponse:{type:Object},billingInformation:{type:Object}},emits:["ready","update-billing-information"],setup(t,{emit:o}){const n=t,a=o,r=e.ref(),l=i.useLogger();return e.onMounted(()=>{(async()=>{const{AdyenCheckout:e,PayPal:t}=await Promise.resolve().then(()=>require("../../index-DIFK3mcJ.js")),i=new t(await e(m.getAdyenExpressCheckoutConfiguration({locale:n.locale,amount:n.amount,countryCode:n.countryCode,paymentMethodOptionResponse:n.paymentMethodOptionsResponse,logger:l})),{isExpress:!0,blockPayPalPayLaterButton:!0,blockPayPalCreditButton:!0,blockPayPalVenmoButton:!0,style:{height:55},onInit:()=>{a("ready")}});if(r.value)try{await i.isAvailable(),i.mount(r.value)}catch(o){l.error("EXPRESS_CHECKOUT_PAYPAL_ERROR","Failed mounting PayPal express button",{error:o})}else l.error("EXPRESS_CHECKOUT_PAYPAL_ERROR","The PayPal button reference is not found and cannot be mounted")})()}),(i,o)=>(e.openBlock(),e.createElementBlock("div",fe,[t.isVisible?(e.openBlock(),e.createBlock(ge,{key:0,type:"paypal",class:"w-full"})):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"paypalButtonRef",ref:r,class:"absolute inset-0 opacity-[0.0001]"},null,512)]))}}),he={class:"absolute h-[1px] w-[1px] overflow-hidden opacity-0"},be=e.defineComponent({__name:"ExpressPaymentMethodGooglePay",props:{amount:{type:Object},countryCode:{type:String},locale:{type:String},isVisible:{type:Boolean},paymentMethodOptionsResponse:{type:Object},billingInformation:{type:Object}},emits:["ready","update-billing-information"],setup(t,{emit:o}){const n=t,a=o,r=e.ref(),l=i.useLogger(),c=()=>{var e;const t=null==(e=r.value)?void 0:e.querySelector("#gpay-button-online-api-id");if(t){const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(e)}};return e.onMounted(()=>{(async()=>{const{AdyenCheckout:e,GooglePay:t}=await Promise.resolve().then(()=>require("../../index-DIFK3mcJ.js")),i=new t(await e(m.getAdyenExpressCheckoutConfiguration({locale:n.locale,amount:n.amount,countryCode:n.countryCode,paymentMethodOptionResponse:n.paymentMethodOptionsResponse,logger:l})),{isExpress:!0});if(r.value)try{await i.isAvailable(),i.mount(r.value),a("ready")}catch(o){l.error("EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR","Failed mounting Google Pay express button",{error:o})}else l.error("EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR","The Google Pay button reference is not found and cannot be mounted")})()}),(i,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.isVisible?(e.openBlock(),e.createBlock(ge,{key:0,type:"googlepay",onClick:c})):e.createCommentVNode("",!0),e.createElementVNode("div",he,[e.createElementVNode("div",{ref_key:"googlePayButtonRef",ref:r},null,512)])],64))}}),Me={key:0,class:"mt-4n"},Ne={class:"mb-2"},Ie={class:"grid grid-cols-6 gap-1 md:gap-2"},Ce={class:"mt-4 h-4"},ke=e.defineComponent({__name:"ExpressPaymentMethods",props:{amount:{type:Object},countryCode:{type:String},locale:{type:String},paymentMethodsOptionsResponse:{type:null},billingInformation:{type:Object},onBillingInformationChange:{type:Function}},emits:["update-billing-information"],setup(i){const o=["applepay"],n=i,{$t:a}=t.useIntl(),r=e.ref(!1),l=e.ref(!1),c=e.ref(!1),u=e.computed(()=>{var e;if(o.includes("applepay"))return null==(e=n.paymentMethodsOptionsResponse)?void 0:e.find(e=>{var t;return null==(t=e.options)?void 0:t.some(e=>"apple pay"===e.name.toLowerCase()&&"ADYEN"===e.payment_gateway_variant)})}),s=e.computed(()=>{var e;if(o.includes("paypal"))return null==(e=n.paymentMethodsOptionsResponse)?void 0:e.find(e=>{var t;return null==(t=e.options)?void 0:t.some(e=>"paypal"===e.name.toLowerCase()&&"ADYEN"===e.payment_gateway_variant)})}),d=e.computed(()=>{var e;if(o.includes("googlepay"))return null==(e=n.paymentMethodsOptionsResponse)?void 0:e.find(e=>{var t;return null==(t=e.options)?void 0:t.some(e=>"google pay"===e.name.toLowerCase()&&"ADYEN"===e.payment_gateway_variant)})}),p=e.computed(()=>!!(u.value||d.value||s.value)),m=e.computed(()=>{var e;if(0===(null==(e=n.paymentMethodsOptionsResponse)?void 0:e.length))return!1;const t=!u.value||r.value,i=!d.value||l.value,o=!s.value||c.value;return t&&i&&o}),g=e.computed(()=>m.value?(u.value?1:0)+(d.value?1:0)+(s.value?1:0):2);return(o,n)=>p.value?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",Ne,[m.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:1,variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Subscribe instantly with",id:"checkout.express_payment_methods.title",description:"The title of the express payment methods block in the checkout form"})),1)]),_:1})):(e.openBlock(),e.createBlock(_._sfc_main,{key:0,variant:"title"}))]),e.createElementVNode("div",Ie,[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(_._sfc_main,{class:"col-span-3 h-11"}),e.createVNode(_._sfc_main,{class:"col-span-3 h-11"})],64)),e.createElementVNode("div",{class:e.normalizeClass(["col-span-3 md:col-span-2",{hidden:!u.value,"!col-span-6":1===g.value,"md:!col-span-3":2===g.value,"!col-span-6 md:!col-span-2":3===g.value}])},[u.value?(e.openBlock(),e.createBlock(ye,{key:0,amount:i.amount,"billing-information":i.billingInformation,"country-code":i.countryCode,locale:i.locale,"is-visible":m.value,"payment-method-options-response":u.value,"on-billing-information-change":i.onBillingInformationChange,onReady:n[0]||(n[0]=e=>r.value=!0),onUpdateBillingInformation:n[1]||(n[1]=e=>o.$emit("update-billing-information",e))},null,8,["amount","billing-information","country-code","locale","is-visible","payment-method-options-response","on-billing-information-change"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(["col-span-3 md:col-span-2",{hidden:!d.value,"col-span-6 md:col-span-6":1===g.value,"md:!col-span-3":2===g.value}])},[d.value?(e.openBlock(),e.createBlock(be,{key:0,amount:i.amount,"billing-information":i.billingInformation,"country-code":i.countryCode,locale:i.locale,"is-visible":m.value,"payment-method-options-response":d.value,onReady:n[2]||(n[2]=e=>l.value=!0)},null,8,["amount","billing-information","country-code","locale","is-visible","payment-method-options-response"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(["col-span-3 md:col-span-2",{hidden:!s.value,"col-span-6 md:col-span-6":1===g.value,"md:!col-span-3":2===g.value}])},[s.value?(e.openBlock(),e.createBlock(_e,{key:0,amount:i.amount,"billing-information":i.billingInformation,"country-code":i.countryCode,locale:i.locale,"is-visible":m.value,"payment-method-options-response":s.value,onReady:n[3]||(n[3]=e=>c.value=!0)},null,8,["amount","billing-information","country-code","locale","is-visible","payment-method-options-response"])):e.createCommentVNode("",!0)],2)]),e.createElementVNode("div",Ce,[m.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$20),{key:1,text:e.unref(a)({defaultMessage:"Or",id:"checkout.express_payment_methods.divider_text",description:"The text of the divider text in the express payment methods block in the checkout form"}),"text-position":"center"},null,8,["text"])):(e.openBlock(),e.createBlock(_._sfc_main,{key:0,variant:"divider-text"}))])])):e.createCommentVNode("",!0)}}),Ae={class:"grid grid-cols-2 gap-2"},De=e.defineComponent({__name:"TieredTableRow",props:{band:{type:Object},previousBand:{type:Object},isFirst:{type:Boolean},period:{type:Object}},setup(i){const o=i,{$t:n}=t.useIntl(),{formatTimePeriod:a}=t.useTimePeriod(),r=e.computed(()=>{var e;return o.isFirst?"0":(null==(e=o.previousBand)?void 0:e.tier_top_bound)&&"number"in o.previousBand.tier_top_bound?o.previousBand.tier_top_bound.number:void 0}),l=e.computed(()=>{if(o.band.tier_top_bound&&"number"in o.band.tier_top_bound)return o.band.tier_top_bound.number});return(o,c)=>(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-xs",shade:"lighter",tag:"div"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"{lower_bound} - {upper_bound} seats",id:"seats.tiered_range_label",description:"The label showing the seat count range for a tiered pricing tier"},{lower_bound:r.value??"0",upper_bound:l.value})),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"> {lower_bound} seats",id:"seats.tiered_unbounded_range_label",description:"The label showing the unbounded seat count range (greater than) for a tiered pricing tier"},{lower_bound:r.value??"0"})),1)],64))]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-xs",shade:"lighter",tag:"div",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.band.amount&&e.unref(n)({defaultMessage:"{amount} per seat/{period}",id:"seats.tiered_price_per_seat_period",description:"The price per seat and billing period label for a tiered pricing tier"},{amount:e.unref(t.formatAmount)(i.band.amount),period:i.period?e.unref(a)(i.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})]))}}),Pe={class:"grid grid-cols-1 gap-0.5 pt-1.5"},Ee=e.defineComponent({__name:"TieredTable",props:{bands:{type:Array},period:{type:Object}},setup:t=>(i,o)=>(e.openBlock(),e.createElementBlock("div",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.bands,(i,o)=>(e.openBlock(),e.createBlock(De,{key:o,band:i,"is-first":0===o,"previous-band":o>0?t.bands[o-1]:void 0,period:t.period},null,8,["band","is-first","previous-band","period"]))),128))]))});const we={class:"flex flex-row-reverse md:flex-row gap-4"},Ve={class:"w-24 md:w-32 shrink-0 justify-start"},xe=["tabindex"],Se={key:0},Te={key:0},Be=e.defineComponent({__name:"SeatsEditorItem",props:e.mergeModels({modelValue:{type:Object},defaultValue:{type:Object},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const o=i,n=e.useModel(i,"modelValue"),{$t:a}=t.useIntl(),{formatTimePeriod:r}=t.useTimePeriod(),l=e.ref(!1),c=e.computed({get:()=>n.value.number?+n.value.number:1,set(e){n.value={...n.value,number:void 0!==e?e.toString():void 0}}}),u=function({pricings:t,pricingItemConfigId:i}){return e.computed(()=>{var e,o,n,a,r,l,c,u;const{config:s,productItem:d}=function({pricings:e,pricingItemConfigId:t}){var i,o;const n=e.flatMap(e=>e.items??[]).find(e=>{var i;return null==(i=e.configs)?void 0:i.some(e=>e.id===t)});return{config:null==(i=null==n?void 0:n.configs)?void 0:i.find(e=>e.id===t),productItem:null==(o=null==n?void 0:n.product_items)?void 0:o[0]}}({pricings:t,pricingItemConfigId:i});return{billing:{period:null==(o=null==(e=null==s?void 0:s.billing_period_configs)?void 0:e[0])?void 0:o.billing_period,billedInAdvance:null==s?void 0:s.billing_in_advance},product:{name:null==d?void 0:d.name,description:null==d?void 0:d.description},pricing:{..."FLAT"===(null==(n=null==s?void 0:s.details)?void 0:n.pricing_type)&&{amount:null==(l=null==(r=null==(a=s.details)?void 0:a.bands)?void 0:r[0])?void 0:l.amount},..."TIERED"===(null==(c=null==s?void 0:s.details)?void 0:c.pricing_type)&&{tiered:{bands:null==(u=s.details)?void 0:u.bands}}}}})}({pricings:o.pricings,pricingItemConfigId:n.value.pricing_item_config_id}),s=e.computed(()=>{var e,t;return!!(null==(t=null==(e=u.value.pricing)?void 0:e.tiered)?void 0:t.bands)});return(o,n)=>{var d,p,m;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",we,[e.createElementVNode("div",Ve,[e.createVNode(e.unref(t._sfc_main$39),{modelValue:c.value,"onUpdate:modelValue":n[0]||(n[0]=e=>c.value=e),size:"sm",min:(null==(d=i.defaultValue)?void 0:d.number)?+i.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col grow",{"hover:cursor-pointer":s.value}]),tabindex:s.value?0:void 0,onClick:n[1]||(n[1]=e=>s.value?l.value=!l.value:void 0)},[e.createVNode(e.unref(t._sfc_main$3),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).product.name||e.unref(a)({defaultMessage:"Seats",id:"seats.label",description:"The label for the seats input field"})),1)]),_:1}),e.unref(u).pricing.amount?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"{amount} per seat/{period}",id:"seats.price_per_seat_period",description:"The price per seat and billing period label for seat-based pricing"},{amount:e.unref(t.formatAmount)(e.unref(u).pricing.amount),period:e.unref(u).billing.period?e.unref(r)(e.unref(u).billing.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})):e.unref(u).pricing.tiered?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:1,tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Tiered pricing",id:"seats.tiered_pricing_label",description:"The label indicating tiered pricing structure for seats"}))+" ",1),e.createVNode(e.unref(t._sfc_main$9),{icon:"keyboard_arrow_down",size:"xs",class:e.normalizeClass(["absolute transition ease-in-out text-gray-400",{"rotate-0":!l.value,"rotate-180":l.value}])},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)],10,xe)]),(null==(m=null==(p=e.unref(u).pricing)?void 0:p.tiered)?void 0:m.bands)?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(e.unref(t._sfc_main$27),{"is-open":l.value},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(Ee,{bands:e.unref(u).pricing.tiered.bands,period:e.unref(u).billing.period},null,8,["bands","period"])])):e.createCommentVNode("",!0)]),_:1},8,["is-open"])])):e.createCommentVNode("",!0)])}}}),Le={key:0,class:"grid grid-cols-1 gap-1"},ze=e.defineComponent({__name:"SeatsEditor",props:e.mergeModels({modelValue:{type:Array},initialSeatsValues:{type:Array},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const o=e.useModel(i,"modelValue"),n=t=>e.computed({get:()=>o.value[t],set:e=>{const i=o.value.slice();i[t]=e,o.value=i}});return(o,a)=>i.modelValue.length>0?(e.openBlock(),e.createElementBlock("div",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.modelValue,(o,a)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:a},{default:e.withCtx(()=>{var t;return[o.pricing_item_config_id?(e.openBlock(),e.createBlock(Be,{key:o.pricing_item_config_id,modelValue:n(a).value,"onUpdate:modelValue":e=>n(a).value=e,"default-value":null==(t=i.initialSeatsValues)?void 0:t[a],pricings:i.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])):e.createCommentVNode("",!0)}}),je={class:"p-1"},Oe={class:"grid grid-cols-1 gap-1 pt-1"},Re=e.defineComponent({__name:"AddonSingleEditor",props:e.mergeModels({constraint:{type:String},modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const o=i,n=e.useModel(i,"modelValue"),{$t:a}=t.useIntl(),{renderPricingForPricingItem:r}=t.usePricingItem({currency:e.toRef(o,"currency"),billingPeriod:e.toRef(o,"billingPeriod")}),l=o.pricings.map(e=>e.id),c=e.computed(()=>"AT_MOST_ONE"===o.constraint?a({defaultMessage:"Select up to one product",id:"addon_single_editor.description.at_most_one",description:"The description of the addon single editor for at most one product"}):"EXACTLY_ONE"===o.constraint?a({defaultMessage:"Select one product",id:"addon_single_editor.description.exactly_one",description:"The description of the addon single editor for exactly one product"}):"AT_LEAST_ONE"===o.constraint?a({defaultMessage:"Select at least one product",id:"addon_single_editor.description.at_least_one",description:"The description of the addon single editor for at least one product"}):""),u=e=>o.modelValue.includes(e);return(o,s)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",je,[e.createVNode(b._sfc_main$2,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1}),e.createElementVNode("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.pricings,i=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:i.id,"content-background":"none",class:e.normalizeClass({"!bg-white":u(i.id)})},{default:e.withCtx(()=>{var o,c;return[e.createVNode(ae,{name:e.unref(p.getNameFromPricing)(i)??"",description:(null==(o=i.items)?void 0:o[0])?e.unref(r)({pricingItem:null==(c=i.items)?void 0:c[0]}):e.unref(a)({defaultMessage:"Unsupported pricing",id:"pricing_item_pricing.unsupported_pricing_error",description:"Text displayed when the pricing item pricing is unsupported"})},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$26),{"model-value":u(i.id),"onUpdate:modelValue":e=>(e=>{if(u(e))n.value=n.value.filter(t=>t!==e);else{const t=n.value.filter(e=>!l.includes(e));n.value=[...t,e]}})(i.id)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["name","description"])]}),_:2},1032,["class"]))),128))])])]),_:1}))}}),Ue={class:"grid grid-cols-1 gap-1"},Fe=e.defineComponent({__name:"AddonMultipleEditor",props:e.mergeModels({modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const o=i,n=e.useModel(i,"modelValue"),{$t:a}=t.useIntl(),{renderPricingForPricingItem:r}=t.usePricingItem({currency:e.toRef(o,"currency"),billingPeriod:e.toRef(o,"billingPeriod")}),l=e=>n.value.includes(e),c=e=>{l(e)?n.value=n.value.filter(t=>t!==e):n.value=[...n.value,e]};return(o,n)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"no-spacing":"","no-border":!i.groupName,"content-background":i.groupName?"gray":"none"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["grid grid-cols-1 gap-1",{"p-1":i.groupName}])},[i.groupName?(e.openBlock(),e.createBlock(b._sfc_main$2,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Select any number of products",id:"addon_multiple_editor.description",description:"The description of the addon multiple editor"})),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.pricings,o=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:o.id,"content-background":i.groupName||l(o.id)?"none":"gray",class:e.normalizeClass({"!bg-white":l(o.id)})},{default:e.withCtx(()=>{var i,n;return[e.createVNode(ae,{name:e.unref(p.getNameFromPricing)(o)??"",description:(null==(i=o.items)?void 0:i[0])?e.unref(r)({pricingItem:null==(n=o.items)?void 0:n[0]}):e.unref(a)({defaultMessage:"Unsupported pricing",id:"addon_multiple_editor.unsupported_pricing_error",description:"Text displayed when the pricing item pricing is unsupported"})},{default:e.withCtx(()=>[l(o.id)?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,color:"gray",variant:"outline",square:"",size:"sm","icon-prefix":"remove_shopping_cart",onClick:e=>c(o.id)},null,8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,color:"primary","icon-prefix":"add",size:"sm",onClick:e=>c(o.id)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Add to subscription ",id:"addon_multiple_editor.add_to_subscription_button",description:"The button to add a pricing to the subscription"})),1)]),_:1},8,["onClick"]))]),_:2},1032,["name","description"])]}),_:2},1032,["content-background","class"]))),128))])],2)]),_:1},8,["no-border","content-background"]))}});const $e={class:"sv-plan-customization__body grid grid-cols-1 gap-1"},Ge=e.defineComponent({__name:"PlanCustomizationEditor",props:e.mergeModels({subscription:{type:Object},enabledPricingIds:{type:Array},initialSeatsValues:{type:Array},billingPeriod:{type:Object},currency:{type:String}},{seatsValues:{required:!0},seatsValuesModifiers:{},enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{}}),emits:["update:seatsValues","update:enabledPricingIds"],setup(i){const o=i,n=e.useModel(i,"seatsValues"),a=e.useModel(i,"enabledPricingIds"),{$t:l}=t.useIntl(),c=e.computed(()=>{var e;const t=null==(e=r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:o.subscription.pricing_plan_schedule_infos,type:"DEFAULT"}))?void 0:e.pricing_plan_version;return t?function(e){var t;return((null==(t=e.pricing_categories)?void 0:t.flatMap(e=>e.pricings??[]))??[]).filter(e=>null!==e)}(t):[]}),u=e.computed(()=>c.value.filter(e=>"ADDON"===e.product_type)),s=e.computed(()=>d.getPricingGroupsFromExtendedPricingPlanSubscription(o.subscription));return(o,r)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{class:"sv-plan-customization",title:e.unref(l)({defaultMessage:"Customize plan",id:"checkout.customize_plan_block.title",description:"The title of the customize plan block in the checkout form"}),"no-spacing":"","no-border":"","content-background":"none"},{default:e.withCtx(()=>[e.createElementVNode("div",$e,[e.createVNode(ze,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),class:"sv-plan-customization__seats","initial-seats-values":i.initialSeatsValues,pricings:c.value},null,8,["modelValue","initial-seats-values","pricings"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.id},["DEFAULT"===t.product_type&&"EXACTLY_ONE"===t.selection_constraint?(e.openBlock(),e.createBlock(b._sfc_main,{key:0,modelValue:a.value,"onUpdate:modelValue":r[1]||(r[1]=e=>a.value=e),class:"sv-plan-customization__group","group-name":t.name,pricings:t.pricings,"billing-period":i.billingPeriod,currency:i.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"])):"ADDON"===t.product_type&&"AT_MOST_ONE"===t.selection_constraint?(e.openBlock(),e.createBlock(Re,{key:1,modelValue:a.value,"onUpdate:modelValue":r[2]||(r[2]=e=>a.value=e),class:"sv-plan-customization__group","group-name":t.name,pricings:t.pricings,constraint:t.selection_constraint,"billing-period":i.billingPeriod,currency:i.currency},null,8,["modelValue","group-name","pricings","constraint","billing-period","currency"])):"ADDON"===t.product_type&&"ANY"===t.selection_constraint?(e.openBlock(),e.createBlock(Fe,{key:2,modelValue:a.value,"onUpdate:modelValue":r[3]||(r[3]=e=>a.value=e),class:"sv-plan-customization__group",pricings:t.pricings,"group-name":t.name,"billing-period":i.billingPeriod,currency:i.currency},null,8,["modelValue","pricings","group-name","billing-period","currency"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(Fe,{modelValue:a.value,"onUpdate:modelValue":r[4]||(r[4]=e=>a.value=e),class:"sv-plan-customization__group",pricings:u.value,"billing-period":i.billingPeriod,currency:i.currency},null,8,["modelValue","pricings","billing-period","currency"])])]),_:1},8,["title"]))}}),Ye=["aria-expanded","aria-label"],qe={class:"flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2"},Qe={class:"flex flex-row items-center gap-2"},Ke=["onKeydown"],Ze=["aria-label"],He={class:"flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2"},Xe={class:"flex flex-row items-center gap-2"},We={class:"sr-only","aria-live":"polite"},Je=e.defineComponent({inheritAttrs:!1,__name:"PromotionCodeSection",props:{promotionCode:{default:null,type:[String,null]}},emits:["update:appliedCode","apply","remove"],setup(i,{emit:o}){const{$t:n}=t.useIntl(),a=i,r=o,l=e.ref(!1),c=e.ref(""),u=e.ref(""),s=e.ref(null),d=e.ref(null),p=t.uniqueId("promotion-code-"),m=`${p}-label`,g=`${p}-panel`,v=e.computed(()=>null!==a.promotionCode&&""!==a.promotionCode),y=e.computed(()=>c.value.trim().length>0),f=e.computed(()=>a.promotionCode??n({defaultMessage:"Promotion applied",id:"checkout.promotion_code.applied_label",description:"Fallback label for an applied promotion code in checkout"})),_=e.computed(()=>n({defaultMessage:l.value?"Collapse promotion code input":"Expand promotion code input",id:l.value?"checkout.promotion_code.collapse_aria_label":"checkout.promotion_code.expand_aria_label",description:"Aria label for the promotion code toggle button in checkout"})),h=e.computed(()=>n({defaultMessage:"Apply promotion code",id:"checkout.promotion_code.apply_aria_label",description:"Aria label for the promotion code apply button in checkout"})),b=e.computed(()=>n({defaultMessage:"Remove promotion code",id:"checkout.promotion_code.remove_aria_label",description:"Aria label for the promotion code remove button in checkout"})),M=()=>{c.value=""},N=()=>{l.value&&(l.value=!1)},I=()=>{v.value||(l.value=!l.value)},C=()=>{if(!y.value)return;const e=c.value.trim();r("update:appliedCode",e),r("apply",e),u.value=n({defaultMessage:"Promotion code applied",id:"checkout.promotion_code.applied_status",description:"Aria live message when a promotion code is applied in checkout"}),l.value=!1},k=()=>{r("update:appliedCode",null),r("remove"),u.value=n({defaultMessage:"Promotion code removed",id:"checkout.promotion_code.removed_status",description:"Aria live message when a promotion code is removed in checkout"}),M(),e.nextTick(()=>{var e;null==(e=s.value)||e.focus()})};return e.watch(l,t=>{if(!t)return M(),void e.nextTick(()=>{var e;null==(e=s.value)||e.focus()});e.nextTick(()=>{(()=>{var e;const t=null==(e=d.value)?void 0:e.querySelector("input");t instanceof HTMLInputElement&&t.focus()})()})}),e.watch(()=>a.promotionCode,e=>{e||M()}),(i,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),e.mergeProps({key:1},i.$attrs,{"no-border":"","no-spacing":"","content-background":"none",class:"relative w-full"}),{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"w-full rounded border border-primary-900 bg-white","aria-label":b.value,onClick:k},[e.createElementVNode("div",He,[e.createElementVNode("div",Xe,[e.createVNode(e.unref(t._sfc_main$9),{icon:"local_activity"}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",class:"font-semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1})]),e.createVNode(e.unref(t._sfc_main$9),{icon:"close"})])],8,Ze)]),_:1},16)):(e.openBlock(),e.createBlock(e.unref(t._sfc_main),e.mergeProps({key:0},i.$attrs,{"no-spacing":"",class:"relative w-full"}),{default:e.withCtx(()=>[e.createElementVNode("button",{ref_key:"toggleRef",ref:s,type:"button",class:"w-full","aria-expanded":l.value,"aria-controls":g,"aria-label":_.value,onClick:I},[e.createElementVNode("div",qe,[e.createElementVNode("div",Qe,[e.createVNode(e.unref(t._sfc_main$9),{icon:"local_activity"}),e.createVNode(e.unref(t._sfc_main$3),{id:m,variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Add promotion code",id:"checkout.promotion_code.add_label",description:"Label for adding a promotion code in checkout"})),1)]),_:1})]),e.createVNode(e.unref(t._sfc_main$9),{icon:l.value?"remove":"add"},null,8,["icon"])])],8,Ye),e.withDirectives(e.createElementVNode("div",{id:g,ref_key:"panelRef",ref:d,role:"region","aria-labelledby":m,class:"flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",onKeydown:e.withKeys(e.withModifiers(N,["prevent"]),["esc"])},[e.createVNode(e.unref(t._sfc_main$24),{modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=e=>c.value=e),placeholder:e.unref(n)({defaultMessage:"Promotion code",id:"checkout.promotion_code.placeholder",description:"Placeholder for promotion code input in checkout"}),"aria-label":e.unref(n)({defaultMessage:"Promotion code",id:"checkout.promotion_code.input_aria_label",description:"Aria label for promotion code input in checkout"}),class:"w-full",onKeydown:e.withKeys(e.withModifiers(C,["prevent"]),["enter"])},null,8,["modelValue","placeholder","aria-label","onKeydown"]),e.createVNode(e.unref(t._sfc_main$1),{type:"button",disabled:!y.value,"aria-label":h.value,"aria-disabled":!y.value,onClick:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Apply",id:"checkout.promotion_code.apply_button",description:"Button label for applying a promotion code in checkout"})),1)]),_:1},8,["disabled","aria-label","aria-disabled"])],40,Ke),[[e.vShow,l.value]])]),_:1},16)),e.createElementVNode("span",We,e.toDisplayString(u.value),1)],64))}}),et={class:"sv-checkout__header"},tt={key:5,class:"sv-checkout__payment-methods"},it={key:0,class:"sv-checkout__payment-methods-body"},ot={key:2,class:"sv-checkout__payment-form"},nt={class:"sv-checkout__order-summary"},at={class:"flex flex-col gap-2"},rt=e.defineComponent({__name:"Checkout",props:{configuration:{type:Object}},emits:["error","ready"],setup(o,{emit:n}){var a,l,c,u,s,v,h,N,I;const C=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("../../PaymentIntegrationForm-BZTzCUiu.js"))),A=o,D=n,P=e.computed(()=>A.configuration),E=e.ref(),w=e.ref(),V=i.useLogger(),{$t:x,locale:S}=t.useIntl(),{formatTimePeriod:T}=t.useTimePeriod(),L=g.usePortal(),{isMobileViewport:z}=f.useViewport();if(V.info("COMPONENT_INITIALIZED","Checkout component initialized"),"INIT_PRICING_PLAN_SUBSCRIPTION"!==(null==(a=L.value)?void 0:a.type))throw V.error("INVALID_TOKEN","Invalid token"),Error("Invalid token");"REVOKED"===L.value.status&&(E.value={code:"RESOURCE_REVOKED",message:`Portal url with resource id "${L.value.id}" is revoked`},V.error("RESOURCE_REVOKED",`Portal url with resource id "${L.value.id}" is revoked`));const j=null==(c=null==(l=L.value)?void 0:l.init_pricing_plan_subscription)?void 0:c.pricing_plan_subscription_id,O=null==(s=null==(u=L.value)?void 0:u.init_pricing_plan_subscription)?void 0:s.success_url,{paymentMethodOptions:R,subscription:U,isPaymentMethodsPending:F,isInvoicePreviewPending:$,checkoutForm:G,invoicePreview:Y,invoicePreviewByBillingPeriod:Q,trialInvoicePreview:K,trialPeriod:Z,authorizationContext:X,isPaid:W,amount:te,loadInvoicePreview:ie,updateInvoicePreviewOnBillingInformationChange:oe,saveFormStateForRedirect:ne}=B({initialCountry:null==(v=A.configuration)?void 0:v.countryCode,initialEmail:null==(h=A.configuration)?void 0:h.email,subscriptionId:j,enabledPricingIds:null==(N=A.configuration)?void 0:N.enabledPricingIds}),ae=e.ref(!1),re=async()=>{var e;await G.validation.value.$validate(),G.validation.value.$invalid||(ae.value=!0,ne(),null==(e=w.value)||e.submit())},le=()=>{ae.value=!1},ce=async()=>(await G.validation.value.$validate(),!G.validation.value.$invalid),ue=e.computed(()=>!!K.value),se=e.computed(()=>!!Y.value&&(e=>{var t;return(null==(t=e.periods)?void 0:t.some(e=>e.groups.some(e=>{var t;return null==(t=e.lines)?void 0:t.some(e=>e.product_items.some(e=>"USAGE_BASED"===e.model_type))})))??!1})(Y.value)),pe=e.computed(()=>G.form.value.country&&["US","CA"].includes(G.form.value.country)||!1),me=e.computed({get:()=>G.form.value.enabledPricingIds??[],set:e=>{G.form.value.enabledPricingIds=e}}),ge=e.computed(()=>U.value?r.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:U.value.pricing_plan_schedule_infos,type:"DEFAULT"}):void 0),ve=e.computed(()=>{var e,t;if(!U.value)return;const i=null==(t=null==(e=ge.value)?void 0:e.pricing_plan_version)?void 0:t.pricing_currency_settings;return k({country:G.form.value.country,pricingCurrencySettings:i,fallbackCurrency:U.value.billing_currency})}),ye=e.computed(()=>{if(!ge.value||!U.value)return new Set;const e=r.getPricingItemConfigMetaById({pricingPlanScheduleInfo:ge.value}),t=ve.value,i=U.value.billing_period,o=new Set;return e.forEach((e,n)=>{t&&e.currency!==t||i&&e.billingPeriod&&(e.billingPeriod.type!==i.type||e.billingPeriod.value!==i.value)||o.add(n)}),o}),fe=e.computed({get:()=>{const e=G.form.value.seatsValues??[],t=ye.value;return t.size?e.filter(({pricing_item_config_id:e})=>t.has(e)):e},set:e=>{const t=G.form.value.seatsValues??[],i=ye.value;if(!i.size)return void(G.form.value.seatsValues=e);const o=t.filter(({pricing_item_config_id:e})=>!i.has(e));G.form.value.seatsValues=o.concat(e)}}),_e=e.computed(()=>{var e,i,o,n,a;return K.value?x({defaultMessage:"{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",id:"checkout.agreement.trial",description:"The agreement for the trial period"},{discounted_amount:"0.00"===K.value.tax_summary.total_amount.quantity?x({defaultMessage:"Free",id:"checkout.agreement.trial.free",description:"The free amount for the trial period"}):t.formatAmount(K.value.tax_summary.total_amount),trial_period:T(Z.value,{short:!0}),subscription_amount:t.formatAmount((null==(e=Y.value)?void 0:e.tax_summary.total_amount)??{quantity:"0.00",currency:"EUR"}),billing_period:T((null==(i=Y.value)?void 0:i.billing_period)??{type:"MONTH",value:1},{short:!0,singular:!0,hideValueForExactPeriods:!0}),start_date:new Date(De.value)}):x({defaultMessage:"{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.",id:"checkout.agreement.subscription",description:"The agreement for the subscription"},{subscription_amount:(null==(o=Y.value)?void 0:o.tax_summary.total_amount)?t.formatAmount(null==(n=Y.value)?void 0:n.tax_summary.total_amount):"",billing_period:T((null==(a=Y.value)?void 0:a.billing_period)??{type:"MONTH",value:1},{short:!0,singular:!0,hideValueForExactPeriods:!0}),start_date:new Date(De.value)})}),he=e.computed(()=>{var e;if(!Y.value)return;const t=d.getSubscriptionName({subscription:U.value,fallback:x({defaultMessage:"Subscription",description:"The fallback name for when no subscription name can be determined",id:"customer_overview.subscriptions_block.fallback_subscription_name"})});return{description:t,managementURL:"https://www.solvimon.com/account/billing",agreement:_e.value,...K.value&&Z.value&&{trial:{label:x({defaultMessage:"Trial",id:"checkout.trial.label",description:"The label of the trial"}),amount:K.value.tax_summary.total_amount,startDate:Ie.value?new Date(Ie.value):void 0,endDate:Ae.value?new Date(Ae.value):void 0}},regular:{label:t,amount:Y.value.tax_summary.total_amount,startDate:De.value?new Date(De.value):void 0,interval:(null==(e=U.value)?void 0:e.billing_period)??{type:"MONTH",value:1}}}}),be=e=>t.isValidCountryCode(e),Me=e=>{const{country:t,...i}=e;G.updateInitialState({...i,...t&&be(t)?{country:t}:{}})},Ne=e.computed(()=>{var e,t;return!((null==(e=A.configuration)?void 0:e.email)&&(null==(t=A.configuration)?void 0:t.countryCode))}),Ie=e.computed(()=>{var e,t,i;const o=null==(t=null==(e=K.value)?void 0:e.periods)?void 0:t[0],n=null==(i=Ce.value)?void 0:i.trialStartDate;return(null==o?void 0:o.start_at)?new Date(o.start_at):n}),Ce=e.computed(()=>d.getFallbackTrialAndSubscriptionStartAndEndDates(U.value)),Ae=e.computed(()=>{var e,t,i;const o=null==(t=null==(e=K.value)?void 0:e.periods)?void 0:t[0],n=null==(i=Ce.value)?void 0:i.trialEndDate;return(null==o?void 0:o.end_at)?new Date(o.end_at):n}),De=e.computed(()=>{var e,t,i;const o=null==(t=null==(e=Y.value)?void 0:e.periods)?void 0:t[0],n=null==(i=Ce.value)?void 0:i.subscriptionStartDate;return(null==o?void 0:o.start_at)?new Date(o.start_at):n}),Pe=e.computed(()=>!!(G.form.value.seatsValues&&G.form.value.seatsValues.length>0)||(!(!U.value||!function(e){return d.getPricingGroupsFromExtendedPricingPlanSubscription(e).some(e=>"EXACTLY_ONE"===e.selection_constraint||"AT_LEAST_ONE"===e.selection_constraint)}(U.value))||!(!U.value||!function(e){const t=p.getAllPricingsFromScheduleInfos(e.pricing_plan_schedule_infos),i=d.getPricingGroupsFromExtendedPricingPlanSubscription(e);return t.some(e=>"ADDON"===e.product_type)||i.some(e=>"ADDON"===e.object_type)}(U.value)))),Ee=e.ref(null),{applyPromotionCode:we,removePromotionCode:Ve,isPromotionCodePending:xe,promotionCodeErrorMessage:Se}=function({checkoutForm:t,updateInvoicePreviewOnBillingInformationChange:o,formatErrorMessage:n,onInvalidPromotionCode:a,onApplyError:r}){const l=i.useLogger(),c=e.ref(!1),u=e.ref(null),s=(e,t)=>{u.value=n?n({action:e,error:t}):"apply"===e?"Promotion code could not be applied. Please try again.":"Promotion code could not be removed. Please try again."},d=async({suppressError:e=!1,preserveErrorMessage:i=!1}={})=>{i||(u.value=null),delete t.form.value.promotionCode,c.value=!0;try{await o({})}catch(n){l.capture(n,{code:"PROMOTION_CODE_REMOVE_FAILED",message:"Failed to remove promotion code"}),e||s("remove",n)}finally{c.value=!1}};return{applyPromotionCode:async e=>{const i=null==e?void 0:e.trim();if(i){u.value=null,t.form.value.promotionCode=i,c.value=!0;try{await o({promotionCode:i})}catch(n){l.capture(n,{code:"PROMOTION_CODE_APPLY_FAILED",message:"Failed to apply promotion code"}),s("apply",n),null==r||r(),(e=>function(e){return"object"==typeof e&&null!==e&&"field"in e}(e)&&"promotion_codes"===e.field)(n)&&(null==a||a()),await d({suppressError:!0,preserveErrorMessage:!0})}finally{c.value=!1}}},removePromotionCode:d,isPromotionCodePending:c,promotionCodeErrorMessage:u}}({checkoutForm:G,updateInvoicePreviewOnBillingInformationChange:oe,formatErrorMessage:({action:e})=>x("apply"===e?{defaultMessage:"Promotion code could not be applied. Please try again.",id:"checkout.promotion_code.apply_failed",description:"Error message when applying a promotion code in checkout failed"}:{defaultMessage:"Promotion code could not be removed. Please try again.",id:"checkout.promotion_code.remove_failed",description:"Error message when removing a promotion code in checkout failed"}),onInvalidPromotionCode:()=>{Ee.value=null},onApplyError:()=>{Ee.value=null}});!function({subscription:t,promotionCode:i,appliedPromotionCode:o,applyPromotionCode:n}){e.watch(t,e=>{e&&i&&(o.value=i,n(i))},{once:!0})}({subscription:U,promotionCode:null==(I=A.configuration)?void 0:I.couponCode,appliedPromotionCode:Ee,applyPromotionCode:we});const Te=()=>{O&&m.safeUrlRedirect(O)},Be=()=>{var e;W.value=!0,Se.value=null,(null==(e=A.configuration)?void 0:e.onPaymentSuccess)?A.configuration.onPaymentSuccess():O&&Te()},Le=e=>{U.value&&(U.value={...U.value,billing_period:e},ie())};return e.onMounted(()=>{D("ready")}),(i,o)=>E.value?(e.openBlock(),e.createBlock(J,{key:0,class:"sv-checkout sv-root sv-screen sv-checkout--error"})):(e.openBlock(),e.createBlock(e.unref(M.ContentWithAsideLayout),{key:1,class:e.normalizeClass(["sv-checkout sv-root sv-screen",{"sv-checkout--paid":e.unref(W)}])},{header:e.withCtx(()=>[e.createElementVNode("div",et,[e.createVNode(_._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>{var t,i,o;return[e.unref(Y)&&e.unref(U)&&De.value?(e.openBlock(),e.createBlock(H,{key:0,class:"sv-checkout__title","trial-start-date":Ie.value,"trial-period":e.unref(Z),"subscription-start-date":De.value,"subscription-name":(null==(t=e.unref(U))?void 0:t.name)??"",amount:null==(i=e.unref(Y))?void 0:i.invoice_amount_including_tax,"billing-period":null==(o=e.unref(U))?void 0:o.billing_period,"country-code":e.unref(G).form.value.country},null,8,["trial-start-date","trial-period","subscription-start-date","subscription-name","amount","billing-period","country-code"])):e.createCommentVNode("",!0)]}),_:1})])]),content:e.withCtx(()=>{var i,n,a;return[e.unref(U)&&e.unref(z)?(e.openBlock(),e.createBlock(de,{key:0,class:"sv-checkout__mobile-order-summary",subscription:e.unref(U),invoice:e.unref(Y),"invoice-preview-by-billing-period":e.unref(Q),"trial-invoice":e.unref(K),"enabled-pricing-ids":me.value,"trial-period":e.unref(Z),avatar:null==(i=P.value)?void 0:i.avatar,"is-paid":e.unref(W),"is-usage-based":se.value,"is-preview-and-payment-methods-pending":e.unref(F)||e.unref($),"country-code":e.unref(G).form.value.country,collapsible:"collapsed",variant:"products-inline",onBillingPeriodChange:Le},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"])):e.createCommentVNode("",!0),Pe.value&&e.unref(U)?(e.openBlock(),e.createBlock(Ge,{key:1,"seats-values":fe.value,"onUpdate:seatsValues":o[0]||(o[0]=e=>fe.value=e),"enabled-pricing-ids":me.value,"onUpdate:enabledPricingIds":o[1]||(o[1]=e=>me.value=e),class:"sv-checkout__plan-customization",subscription:e.unref(U),"initial-seats-values":null==(n=e.unref(G).initialState)?void 0:n.value.seatsValues,"billing-period":e.unref(U).billing_period,currency:ve.value},null,8,["seats-values","enabled-pricing-ids","subscription","initial-seats-values","billing-period","currency"])):e.createCommentVNode("",!0),!e.unref(W)&&e.unref(G).form.value.country&&e.unref(te)&&he.value?(e.openBlock(),e.createBlock(ke,{key:2,class:"sv-checkout__express-payment-methods",amount:e.unref(te),"country-code":e.unref(G).form.value.country,locale:e.unref(S),"payment-methods-options-response":e.unref(R)??[],"billing-information":he.value,"on-billing-information-change":e.unref(oe),onUpdateBillingInformation:Me},null,8,["amount","country-code","locale","payment-methods-options-response","billing-information","on-billing-information-change"])):e.createCommentVNode("",!0),e.unref(W)?(e.openBlock(),e.createBlock(ee,{key:3,class:"sv-checkout__completed-payment",onContinueToMerchant:Te})):e.createCommentVNode("",!0),e.unref(W)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(q,{key:4,modelValue:e.unref(G).form.value,"onUpdate:modelValue":o[2]||(o[2]=t=>e.unref(G).form.value=t),class:"sv-checkout__customer-form",validation:e.unref(G).validation,"read-only-email":null==(a=A.configuration)?void 0:a.email,"show-customer-info-on-top":Ne.value||e.unref(W),"is-billing-information-mandatory":pe.value,"get-is-field-required":e.unref(G).getIsFieldRequired,"read-only":e.unref(W)},null,8,["modelValue","validation","read-only-email","show-customer-info-on-top","is-billing-information-mandatory","get-is-field-required","read-only"])),e.unref(W)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(_._sfc_main,{variant:"section",class:"min-h-[130px]"},{default:e.withCtx(()=>[!e.unref(F)||e.unref(F)&&e.unref(R).length>0?(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-3",tag:"h2",class:"sv-checkout__payment-methods-title mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)({defaultMessage:"Payment method",id:"checkout.payment_method_block.title",description:"The title of the payment method block in the checkout form"})),1)]),_:1}),e.unref(G).form.value.country?0===e.unref(R).length?(e.openBlock(),e.createBlock(y._sfc_main$1,{key:1,class:"sv-checkout__payment-methods-empty",icon:"credit_card_off"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)({defaultMessage:"No payment methods available",id:"checkout.payment_method_block.no_payment_methods_available_title",description:"The title shown when there are no available payment methods"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)({defaultMessage:"There are no available payment methods. Please contact support for more information.",id:"checkout.payment_method_block.no_payment_methods_available_message",description:"The message shown when there are no available payment methods"})),1)]),_:1})):e.unref(te)&&e.unref(G).form.value.country?(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":ae.value})},[e.createVNode(e.unref(C),{ref_key:"paymentIntegrationFormRef",ref:w,"country-code":e.unref(G).form.value.country,context:e.unref(X),amount:e.unref(te),email:e.unref(G).form.value.email,variant:"AUTHORIZE","payment-method-options":e.unref(R)??[],"validate-on-submit":ce,"force-store-payment-method":"",onPaymentSuccess:Be,onPaymentFailed:le,onReady:o[3]||(o[3]=e=>D("ready"))},null,8,["country-code","context","amount","email","payment-method-options"])],2)])):e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(y._sfc_main$1,{key:0,class:"sv-checkout__payment-methods-empty",icon:"captive_portal"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)({defaultMessage:"Select your billing country",id:"checkout.payment_method_block.no_country_selected_title",description:"The title shown when no country is selected"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)({defaultMessage:"Payment methods will be shown after you select the billing country.",id:"checkout.payment_method_block.no_country_selected_message",description:"The message shown when no country is selected"})),1)]),_:1}))])):e.createCommentVNode("",!0)]),_:1})]))]}),aside:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(_._sfc_main,{variant:"section",class:"min-h-[220px]"},{default:e.withCtx(()=>{var t;return[e.unref(U)&&e.unref(Y)?(e.openBlock(),e.createBlock(de,{key:0,subscription:e.unref(U),invoice:e.unref(Y),"invoice-preview-by-billing-period":e.unref(Q),"trial-invoice":e.unref(K),"enabled-pricing-ids":me.value,"trial-period":e.unref(Z),"country-code":e.unref(G).form.value.country,avatar:null==(t=P.value)?void 0:t.avatar,"is-paid":e.unref(W),"is-usage-based":se.value,"is-preview-and-payment-methods-pending":e.unref(F)||e.unref($),onBillingPeriodChange:Le},null,8,["subscription","invoice","invoice-preview-by-billing-period","trial-invoice","enabled-pricing-ids","trial-period","country-code","avatar","is-paid","is-usage-based","is-preview-and-payment-methods-pending"])):e.createCommentVNode("",!0)]}),_:1})]),e.unref(W)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Je,{key:0,class:"sv-checkout__promotion-code","promotion-code":Ee.value,"onUpdate:appliedCode":o[4]||(o[4]=e=>Ee.value=e),onRemove:e.unref(Ve),onApply:e.unref(we)},null,8,["promotion-code","onRemove","onApply"])),e.unref(Se)?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$10),{key:1,class:"sv-checkout__promotion-error mt-2",title:e.unref(Se)},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",at,[e.unref(W)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_._sfc_main,{key:0,class:"sv-checkout__submit-skeleton min-h-[44px]"},{default:e.withCtx(()=>[e.unref(Y)?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,type:"button",size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",disabled:e.unref(xe)||0===e.unref(R).length||ae.value,loading:ae.value,onClick:re},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ue.value?e.unref(x)({defaultMessage:"Start trial",id:"checkout.pay_and_subscribe_button_trial.label",description:"The label of the start trial button in the checkout form"}):e.unref(x)({defaultMessage:"Pay and subscribe",id:"checkout.pay_and_subscribe_button.label",description:"The label of the pay and subscribe button in the checkout form"})),1)]),_:1},8,["disabled","loading"])):e.createCommentVNode("",!0)]),_:1})),e.createVNode(b._sfc_main$1,{"payment-method-options":e.unref(R)},null,8,["payment-method-options"])])]),_:1},8,["class"]))}}),lt=e.defineComponent({__name:"Checkout.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},emits:["error","ready"],setup(o,{emit:n}){var a,r,l;const c=o,u=n,s=i.useLogger(),d=(e=>{if(e)return t.isValidCountryCode(e)?e:void s.error("INVALID_COUNTRY_CODE",`invalid country code provided: "${e}"`)})(null==(a=c.configuration)?void 0:a.countryCode),p=(e=>{if(e)return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?e:void s.error("INVALID_EMAIL",`invalid email provided: "${e}"`)})(null==(r=c.configuration)?void 0:r.email),g=(null==(l=c.configuration)?void 0:l.couponCode)??m.getQueryParam("coupon_code")??void 0;return(t,n)=>{var a,r,l,c;return e.openBlock(),e.createBlock(i._sfc_main,{"custom-element-name":e.unref(ut),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["INIT_PRICING_PLAN_SUBSCRIPTION"],"primary-color":null==(r=null==(a=o.branding)?void 0:a.colors)?void 0:r.primary,"secondary-color":null==(c=null==(l=o.branding)?void 0:l.colors)?void 0:c.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,"css-overrides":o.cssOverrides,onError:n[1]||(n[1]=e=>t.$emit("error",e))},{default:e.withCtx(()=>{var i,a,r;return[e.createVNode(rt,{configuration:{avatar:null==(a=null==(i=o.branding)?void 0:i.emblem)?void 0:a.public_url,email:e.unref(p),countryCode:e.unref(d),enabledPricingIds:null==(r=o.configuration)?void 0:r.enabledPricingIds,couponCode:e.unref(g)},onReady:n[0]||(n[0]=e=>u("ready"))},e.createSlots({_:2},[t.$slots["terms-and-conditions"]?{name:"terms-and-conditions",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"terms-and-conditions")]),key:"0"}:void 0]),1032,["configuration"])]}),_:3},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),ct=i.defineCustomElement(lt),ut=i.getComponentName("checkout");exports.COMPONENT_NAME=ut,exports.SolvimonCheckout=ct,exports.defineSolvimonCheckout=()=>{customElements.get(ut)||customElements.define(ut,ct)};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),o=require("../../ContentWithAsideLayout-DHpnJfGA.js"),r=require("../../useInvoicesList-BXZ9uV9i.js"),s=require("../../usePortal-C4qWsJeq.js"),n=require("../../component-CiKxWtdx.js"),a=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js"),i=require("../../useCustomer-bO4D6e4Z.js"),u=require("../../usePaymentMethods-Bb1Xbads.js"),l=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js"),c=require("../../useLoadInitialData-BqiAFNFi.js"),m=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js"),d=require("../../paymentMethods-BMcc-eTl.js"),p=require("../../useService-DKm3QtT4.js"),v=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js"),_=require("../../useTopUpModal-DeF-cfCK.js"),f=require("../../pricingPlanSchedule-B9HFiXy-.js");const y=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(y){var g;const h=s.usePortal(),b=n.useLogger(),w=null==(g=h.value)?void 0:g.customer_id,C=i.useCustomer({customerId:w}),S=r.useInvoicesList({customerId:w,batchSize:5}),j=a.useSubscriptionsList({customerId:w,batchSize:2}),M=u.usePaymentMethods({customerId:w}),L=function({customerId:e,amount:t}){const{getPaymentMethodOptions:o}=d.createPaymentMethodsService(),{data:r,execute:s,error:n,apiStatus:a,isPending:i}=p.useService({initialValue:[],service:async()=>(await o({customerId:e,amount:t})).flatMap(e=>e.options??[])});return{error:n,apiStatus:a,items:r,fetch:s,isPending:i}}({customerId:w}),O=v.useCustomerWalletBalances({customerId:w}),q=e.computed(()=>{var e;return(null==(e=O.walletBalances.value)?void 0:e.wallet_balances)??[]}),{isLoading:I}=c.useLoadInitialData(C.get.execute(),S.fetchInitial(),j.fetchInitial(),M.fetchAll(),L.fetch(),O.fetch()),x=()=>{M.fetchAll()},N=()=>{O.fetch()},B=e.computed(()=>f.getActiveDefaultScheduleId(j.items.value));e.watch([B,()=>j.items.value],([e,t])=>{e||0===t.length||b.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:t.flatMap(({pricing_plan_schedule_infos:e})=>(e??[]).map(({id:e,type:t,start_at:o,end_at:r,...s})=>{var n;return{id:e,type:(null==(n=s.pricing_plan_schedule)?void 0:n.type)??t,start_at:o,end_at:r}}))})});const P=e.ref(),A=_.useTopUpModal(P);return(s,n)=>(e.openBlock(),e.createBlock(e.unref(o.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(C).customer.value?(e.openBlock(),e.createBlock(a._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(C).customer.value,subscriptions:e.unref(j).items.value,"payment-methods":e.unref(M).items.value,"is-loading":e.unref(I),onLoadMore:e.unref(j).fetchMore},null,8,["customer","subscriptions","payment-methods","is-loading","onLoadMore"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(r._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(S).items.value,"has-more-items":e.unref(S).hasNextBatch.value,"is-loading":e.unref(I),onLoadMore:e.unref(S).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(v._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(O).apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":e.unref(I),"wallet-balances":q.value,"show-top-up-button":"",onTopUp:n[0]||(n[0]=e=>P.value=e)},null,8,["has-error","is-loading","wallet-balances"]),e.createVNode(m._sfc_main,{class:"sv-customer-overview__payment-methods","is-loading":e.unref(I),"payment-methods":e.unref(M).items.value},null,8,["is-loading","payment-methods"]),e.unref(C).customer.value?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(I),customer:e.unref(C).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0),e.createVNode(_._sfc_main,{"show-modal":e.unref(A).showModal.value,"payment-methods":e.unref(M).items.value,customer:e.unref(C).customer.value,"selected-balance-item":P.value,onClose:n[1]||(n[1]=e=>P.value=void 0),onConfirm:N,onPaymentSuccess:x},null,8,["show-modal","payment-methods","customer","selected-balance-item"])]),_:1}))}}),g=e.defineComponent({__name:"CustomerOverview.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup:t=>(o,r)=>{var s,a,i,u;return e.openBlock(),e.createBlock(n._sfc_main,{"custom-element-name":e.unref(b),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(a=null==(s=t.branding)?void 0:s.colors)?void 0:a.primary,"secondary-color":null==(u=null==(i=t.branding)?void 0:i.colors)?void 0:u.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(y)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),h=n.defineCustomElement(g),b=n.getComponentName("customer-overview");exports.COMPONENT_NAME=b,exports.SolvimonCustomerOverview=h,exports.defineSolvimonCustomerOverview=()=>{customElements.get(b)||customElements.define(b,h)};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-CiKxWtdx.js"),n=require("../../vendor-ui-BuRqLx74.js"),o=require("../../ContentWithAsideLayout-DHpnJfGA.js"),a=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js"),r=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),i=require("../../url-D8GJi5rF.js"),c=require("../../useLoadInitialData-BqiAFNFi.js"),l=require("../../usePayments-is5c66Z6.js"),s=require("../../usePaymentMethodOptions-DszFvgKX.js"),u=require("../../usePaymentMethods-Bb1Xbads.js"),p=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},variant:{type:String},color:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const o=t,{$t:a}=n.useIntl(),r=e.computed(()=>({color:o.color??"primary",disabled:o.disabled,iconPrefix:o.iconPrefix,iconSuffix:o.iconSuffix,loading:o.loading,pill:o.pill,size:o.size??"lg",square:o.square,tag:o.tag,type:o.type,variant:o.variant})),i=e.computed(()=>{var t,n,a;switch(null==(t=o.paymentMethod)?void 0:t.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(null==(n=o.paymentMethod)?void 0:n.paymentMethodType)?e.capitalize(null==(a=o.paymentMethod)?void 0:a.paymentMethodType):""}}),c=e.computed(()=>o.amount&&o.paymentMethod?a({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:n.formatAmount(o.amount),type:i.value}):o.amount?a({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:n.formatAmount(o.amount),type:i.value}):a({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(t,o)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),e.mergeProps(r.value,{class:"w-full",onClick:o[0]||(o[0]=e=>t.$emit("click",e))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1},16))}}),d={key:0},m=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:c}=n.useIntl(),l=t,s=e.ref(),u=e.ref(),m=e.ref(!1);function y(){if(!u.value)throw new Error("payment integration form not found");m.value=!0,u.value.submit()}const v=()=>{l.configuration.onPaymentSuccess&&l.configuration.onPaymentSuccess()},f=()=>{m.value=!1};return(l,g)=>(e.openBlock(),e.createBlock(e.unref(o.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(r._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$2),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice.id)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var o,l;return[t.isLoading?(e.openBlock(),e.createBlock(r._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(null==(o=t.invoice)?void 0:o.paid)?(e.openBlock(),e.createBlock(i._sfc_main,{key:1,status:"success",title:e.unref(c)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main$3),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main$9),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(n.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(i._sfc_main,{key:2,status:"error",title:e.unref(c)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main$3),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[(null==(l=t.paymentMethodOptions)?void 0:l.length)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,title:e.unref(c)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":m.value})},[e.createVNode(a._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:u,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"force-store-payment-method":"","invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions,variant:"AUTHORIZE",onPaymentSuccess:v,onPaymentFailed:f,onSelect:g[0]||(g[0]=e=>s.value=e)},null,8,["amount","country-code","context","customer-id","invoice-id","payment-method-options"])],2)]),_:1},8,["title"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(r._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$17),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice?(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(p,{disabled:!s.value||m.value,loading:m.value,amount:t.amount,"payment-method":s.value,onClick:y},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),y=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const o=t,{invoice:a,get:r,downloadInvoicePdf:i}=l.useInvoice({invoiceId:o.configuration.invoiceId}),{payments:p,get:d}=l.usePayments(),{fetchInitial:m}=u.usePaymentMethods({customerId:o.portalObject.customer_id}),{paymentMethodOptions:y,get:v}=s.usePaymentMethodOptions(),{isLoading:f}=c.useLoadInitialData((async()=>{const e=await r();await v({customerId:e.customer.id,amount:e.open_invoice_amount})})(),m(),d(o.configuration.invoiceId)),g=e.computed(()=>{var e;return(null==(e=a.value)?void 0:e.customer)?n.getCustomerCountry(a.value.customer):void 0});return(t,n)=>{var o;return e.renderSlot(t.$slots,"default",{invoice:e.unref(a),isLoading:e.unref(f),amount:null==(o=e.unref(a))?void 0:o.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(y),paymentAttempts:e.unref(p),downloadService:e.unref(i)})}}}),v=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup:n=>(o,a)=>{var r,i,c,l;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(g),environment:n.environment,locale:n.locale,"portal-object":n.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(i=null==(r=n.branding)?void 0:r.colors)?void 0:i.primary,"secondary-color":null==(l=null==(c=n.branding)?void 0:c.colors)?void 0:l.secondary,"experimental-features":n.experimentalFeatures,"log-level":n.logLevel,"on-log":n.onLog,onError:a[0]||(a[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(y,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:t,isLoading:o,amount:a,countryCode:r,paymentMethodOptions:i,paymentAttempts:c,downloadService:l})=>[e.createVNode(m,{"is-loading":o,invoice:t,amount:a,"country-code":r,"payment-method-options":i,configuration:n.configuration,"payment-attempts":c??[],"download-service":l},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),f=t.defineCustomElement(v),g=t.getComponentName("pay-invoice");exports.COMPONENT_NAME=g,exports.SolvimonPayInvoice=f,exports.defineSolvimonPayInvoice=()=>{customElements.get(g)||customElements.define(g,f)};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-CiKxWtdx.js"),o=require("../../vendor-ui-BuRqLx74.js"),n=require("../../ContentWithAsideLayout-DHpnJfGA.js"),r=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js"),a=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js"),s=require("../../useCustomer-bO4D6e4Z.js"),i=require("../../usePaymentMethods-Bb1Xbads.js"),l=require("../../usePaymentMethodOptions-DszFvgKX.js"),m=require("../../useLoadInitialData-BqiAFNFi.js"),p={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},d={key:0},c=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup:t=>(n,r)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",null,[e.createVNode(e.unref(o._sfc_main$3),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),t.description?(e.openBlock(),e.createBlock(e.unref(o._sfc_main$3),{key:0,variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)]),n.$slots.right?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(n.$slots,"right")])):e.createCommentVNode("",!0)]))}),u=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default"],setup(t,{emit:s}){const i=s,{$t:l}=o.useIntl(),m=e.ref(!1);return(s,p)=>(e.openBlock(),e.createBlock(e.unref(n.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(c,{title:e.unref(l)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(l)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(o._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(r._sfc_main,{"payment-methods":t.paymentMethods,onSetDefault:p[0]||(p[0]=e=>i("set-default"))},null,8,["payment-methods"])]),_:1}),m.value?(e.openBlock(),e.createBlock(a._sfc_main,{key:0,customer:t.customer,"payment-method-options":t.paymentMethodOptions},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(e.unref(o._sfc_main$1),{key:1,color:"gray",variant:"outline",onClick:p[1]||(p[1]=e=>m.value=!1)},{default:e.withCtx(()=>[...p[3]||(p[3]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(o._sfc_main$1),{key:2,color:"gray",variant:"outline",onClick:p[2]||(p[2]=e=>m.value=!0)},{default:e.withCtx(()=>[...p[4]||(p[4]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),y=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const o=t,n=o.portalObject.customer_id,{customer:r,get:a}=s.useCustomer({customerId:n}),{items:p,fetchInitial:d}=i.usePaymentMethods({customerId:o.portalObject.customer_id}),{paymentMethodOptions:c,get:u}=l.usePaymentMethodOptions(),{isLoading:y}=m.useLoadInitialData(a.execute(),d(),u({customerId:o.portalObject.customer_id}));return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(r),paymentMethods:e.unref(p),paymentMethodOptions:e.unref(c),isLoading:e.unref(y),refreshPaymentMethods:e.unref(d)})}}),g=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup:o=>(n,r)=>{var a,s,i,l;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(f),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(a=o.branding)?void 0:a.colors)?void 0:s.primary,"secondary-color":null==(l=null==(i=o.branding)?void 0:i.colors)?void 0:l.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,onError:r[0]||(r[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(y,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({customer:t,paymentMethods:o,paymentMethodOptions:n,isLoading:r,refreshPaymentMethods:a})=>[t?(e.openBlock(),e.createBlock(u,{key:0,"is-loading":r,"payment-methods":o,"payment-method-options":n,customer:t,onSetDefault:a},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),h=t.defineCustomElement(g),f=t.getComponentName("payment-methods-management");exports.COMPONENT_NAME=f,exports.SolvimonPaymentMethodsManagement=h,exports.defineSolvimonPaymentMethodsManagement=()=>{customElements.get(f)||customElements.define(f,h)};
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-CiKxWtdx.js"),i=require("../../vendor-ui-BuRqLx74.js"),n=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../useActionDispatchProvider-bqR_FeM4.js"),r=require("../../subscription-b0OPx8Du.js"),a=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js"),o=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js"),l=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js"),c=require("../../useTopUpModal-DeF-cfCK.js"),u=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),d=require("../../pricing-BEjY_5wb.js"),p=require("../../ApiStatus-oqvUEWJx.js"),m=require("../../useSubscription-DuUNc1_l.js"),g=require("../../useCustomer-bO4D6e4Z.js"),b=require("../../usePaymentMethods-Bb1Xbads.js"),_=require("../../useLoadInitialData-BqiAFNFi.js");function y(e){var t,i,n,s,r,a,o;const l=null==(n=null==(i=null==(t=e.items)?void 0:t[0])?void 0:i.configs)?void 0:n[0],c=null==(r=null==(s=null==l?void 0:l.details)?void 0:s.bands)?void 0:r[0];return{amount:(null==c?void 0:c.amount)??(null==c?void 0:c.fixed_amount),billingPeriod:(null==(a=null==l?void 0:l.details)?void 0:a.pricing_period)??(null==(o=null==l?void 0:l.details)?void 0:o.billing_period)}}const v={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},f={class:"sv-enabled-pricings-list__item-content grow"},h=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const n=t,{$t:s}=i.useIntl(),r=e.computed(()=>{const{amount:e,billingPeriod:t}=n.entry;if(e)return t?s({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:i.formatAmount(e),period:i.formatBillingPeriod(t,{short:!0,hideValueForExactPeriods:!0})}):i.formatAmount(e)});return(n,a)=>(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createElementVNode("div",f,[e.createVNode(e.unref(i._sfc_main$3),{tag:"span",variant:"body-sm",weight:"semibold",shade:"lighter",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(i._sfc_main$3),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),r.value?(e.openBlock(),e.createBlock(e.unref(i._sfc_main$3),{key:0,tag:"span",variant:"body-sm",shade:"lighter",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(i._sfc_main$1),{variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:a[0]||(a[0]=e=>n.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),w={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},S=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const n=t,{$t:s}=i.useIntl(),r=e.computed(()=>function(e){var t,i,n;const s=new Set(((null==(t=e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e));return 0===s.size?[]:((null==(n=null==(i=e.pricing_plan_version)?void 0:i.pricing_categories)?void 0:n.flatMap(e=>e.pricing_groups??[]))??[]).flatMap(e=>(e.pricings??[]).filter(e=>s.has(e.id)).map(t=>({pricingId:t.id,pricingGroupId:e.id,groupName:e.name,name:d.getNameFromPricing(t)||e.name,...y(t)})))}(n.pricingPlanSchedule));return(t,n)=>r.value.length>0?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(s)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,i=>(e.openBlock(),e.createBlock(h,{key:i.pricingId,entry:i,onUpgrade:n[0]||(n[0]=e=>t.$emit("upgrade",e))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}}),C={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},k=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","payment-method-stored"],setup(t){const d=t,{$t:p}=i.useIntl(),{isCancellable:m,isRenewable:g,cancel:b,renew:_,manage:y}=function({subscription:t}){const{dispatchAction:i}=s.useActionDispatchProvider();return{isCancellable:e.computed(()=>{if(!t.value)return!1;const e=t.value.inactive_periods;return!e||0===e.length}),isRenewable:e.computed(()=>{var e;const i=null==(e=t.value)?void 0:e.inactive_periods;return Array.isArray(i)&&i.length>0}),cancel:()=>{t.value&&i({action:"cancel-subscription",data:{subscriptionId:t.value.id}})},renew:()=>{t.value&&i({action:"renew-subscription",data:{subscriptionId:t.value.id}})},manage:()=>{t.value&&i({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}({subscription:e.toRef(d,"subscription")}),v=e.computed(()=>r.getMostRecentScheduleInfo(d.subscription)),f=e.ref(),h=c.useTopUpModal(f),w=e.computed(()=>r.getSubscriptionName({subscription:d.subscription,fallback:p({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(n.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",C,[e.createVNode(e.unref(i._sfc_main$3),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.value),1)]),_:1}),e.unref(g)?(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{key:0,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(i._sfc_main$1),{key:1,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[t.error?(e.openBlock(),e.createBlock(e.unref(i._sfc_main$10),{key:0,class:"sv-subscription-details__error sv-error",title:e.unref(p)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):t.isLoading?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,variant:"section",class:"min-h-[220px]"})):t.subscription?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(e.unref(i._sfc_main),{"no-spacing":"",class:"sv-subscription-details__summary"},{default:e.withCtx(()=>[e.createVNode(a._sfc_main,{subscription:t.subscription},null,8,["subscription"])]),_:1}),e.createVNode(o._sfc_main,{class:"sv-subscription-details__schedules","schedules-data":t.schedulesData??[],configuration:{subscriptionId:t.subscription.id},"is-loading":t.isLoading},null,8,["schedules-data","configuration","is-loading"])],64)):(e.openBlock(),e.createBlock(a._sfc_main$1,{key:3,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(l._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":Boolean(t.hasWalletBalancesError),"is-loading":t.isLoading,"wallet-balances":t.walletBalances,"show-top-up-button":"",onTopUp:r[0]||(r[0]=e=>f.value=e)},null,8,["has-error","is-loading","wallet-balances"]),v.value?(e.openBlock(),e.createBlock(S,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":v.value,onUpgrade:e.unref(y)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),e.createVNode(c._sfc_main,{"show-modal":e.unref(h).showModal.value,"payment-methods":t.paymentMethods,customer:t.customer,"selected-balance-item":f.value,onClose:r[1]||(r[1]=e=>f.value=void 0),onConfirm:r[2]||(r[2]=e=>s.$emit("top-up-charged")),onPaymentSuccess:r[3]||(r[3]=e=>s.$emit("payment-method-stored"))},null,8,["show-modal","payment-methods","customer","selected-balance-item"])]),_:1}))}}),B=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const i=t,n=i.portalObject.customer_id,{subscription:s,withPlanData:r,get:a,error:o}=m.useSubscription({subscriptionId:i.configuration.subscriptionId}),{customer:c,get:u}=g.useCustomer({customerId:n}),{items:d,fetchAll:y}=b.usePaymentMethods({customerId:n}),{walletBalances:v,apiStatus:f,fetch:h}=l.useCustomerWalletBalances({customerId:n}),{isLoading:w}=_.useLoadInitialData(a(),u.execute(),y(),h()),S=e.computed(()=>s.value?r(s.value):[]),C=e.computed(()=>{var e;return(null==(e=v.value)?void 0:e.wallet_balances)??[]}),k=e.computed(()=>f.value===p.ApiStatus.Failed);return(t,i)=>e.renderSlot(t.$slots,"default",{subscription:e.unref(s),schedulesData:S.value,customer:e.unref(c),paymentMethods:e.unref(d),walletBalances:C.value,hasWalletBalancesError:k.value,isLoading:e.unref(w),error:e.unref(o),refreshWalletBalances:e.unref(h),refreshPaymentMethods:e.unref(y)})}}),x=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup:i=>(n,s)=>{var r,a,o,l;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(j),environment:i.environment,locale:i.locale,"portal-object":i.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(a=null==(r=i.branding)?void 0:r.colors)?void 0:a.primary,"secondary-color":null==(l=null==(o=i.branding)?void 0:o.colors)?void 0:l.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,"css-overrides":i.cssOverrides,onError:s[0]||(s[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(B,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({subscription:t,schedulesData:i,customer:n,paymentMethods:s,walletBalances:r,hasWalletBalancesError:a,isLoading:o,error:l,refreshWalletBalances:c,refreshPaymentMethods:u})=>[e.createVNode(k,{subscription:t,"schedules-data":i,customer:n,"payment-methods":s,"wallet-balances":r,"has-wallet-balances-error":a,"is-loading":o,error:l,onTopUpCharged:c,onPaymentMethodStored:u},null,8,["subscription","schedules-data","customer","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onPaymentMethodStored"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),N=t.defineCustomElement(x),j=t.getComponentName("subscription-details");exports.COMPONENT_NAME=j,exports.SolvimonSubscriptionDetails=N,exports.defineSolvimonSubscriptionDetails=()=>{customElements.get(j)||customElements.define(j,N)};