@solvimon/solvimon-web 0.1.0-alpha.15 → 0.1.0-alpha.17
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.
- package/README.md +5 -5
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-ugPPvTKf.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs} +2 -2
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-xuCWAVgf.js → BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BpN9nSMC.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D_PE2UbX.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs} +3 -3
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +1 -0
- package/dist/{useWalletBalanceItems-MlHgedWR.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs} +24 -56
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs +147 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BKMttUyk.mjs → PaymentHistoryBlock-BitwS9Re.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BGbTy4Se.js → PaymentHistoryBlock-ZtmPXXwI.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js} +1 -1
- package/dist/{PaymentIntegrationForm-BGxjGJGz.mjs → PaymentIntegrationForm-BK2aLPCo.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-liOVNKEG.js → PaymentIntegrationForm-BZTzCUiu.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-aP-gCq7V.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs} +7 -7
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-h-JUw1DV.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs} +25 -14
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +1 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +156 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-j5VNsyu7.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DxndhDxR.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +1 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs} +115 -68
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +37 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Cv6lz35J.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs} +22 -119
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +1 -0
- package/dist/component-CUJ_G2Nw.mjs +962 -0
- package/dist/component-CiKxWtdx.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +3 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +7 -7
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -58
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +8 -6
- package/dist/core/action-request.types.d.ts +3 -3
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/{customer-B5b2tLhw.js → customer-AfRcAZ5P.js} +1 -1
- package/dist/{customer-CANPEYH9.mjs → customer-DAgdegIW.mjs} +1 -1
- package/dist/{en-US-DAgOSlgv.mjs → en-US-DSzSbgL5.mjs} +68 -36
- package/dist/en-US-QzQnGXP1.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +7 -4
- package/dist/invoices-BHgajZHq.js +1 -0
- package/dist/{invoices-DBv0qkgm.mjs → invoices-BXDgW8ch.mjs} +32 -16
- package/dist/nl-NL-C4rr-1tr.js +1 -0
- package/dist/{nl-NL-DCsmrA8A.mjs → nl-NL-Li7RW89R.mjs} +72 -40
- package/dist/{paymentMethods-u5y9B5ng.js → paymentMethods-BMcc-eTl.js} +1 -1
- package/dist/{paymentMethods-D-5FNN8W.mjs → paymentMethods-xzFD2L30.mjs} +2 -2
- package/dist/{payments-BTTtcfyI.js → payments-DMvmB5vg.js} +1 -1
- package/dist/{payments-BK8yzqJ5.mjs → payments-DV6csRej.mjs} +1 -1
- package/dist/pricing-B1uImUm4.mjs +19 -0
- package/dist/pricing-BEjY_5wb.js +1 -0
- package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
- package/dist/pricingPlanSchedule-C_cqUyTk.mjs +144 -0
- package/dist/registry-CeMxLjwU.js +1 -0
- package/dist/{registry-CMo7X2FD.mjs → registry-CyENvS6l.mjs} +7 -4
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +414 -675
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +65 -19
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +10 -9
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +8 -8
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +3 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +542 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +3 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +725 -0
- package/dist/solvimon-web.css +1 -1
- package/dist/subscription-B4dBAY9C.mjs +89 -0
- package/dist/subscription-b0OPx8Du.js +1 -0
- package/dist/{subscriptions-DHjXDyH1.mjs → subscriptions-CrNDM9qa.mjs} +6 -2
- package/dist/{subscriptions-AMC4DirD.js → subscriptions-DC-mxa17.js} +1 -1
- package/dist/{url-1Lbg5Yni.mjs → url-BjZ1Pg0l.mjs} +1 -1
- package/dist/url-D8GJi5rF.js +1 -0
- package/dist/{useActionDispatchProvider-CizNgRwv.js → useActionDispatchProvider-bqR_FeM4.js} +1 -1
- package/dist/{useActionDispatchProvider-DmhD9mYX.mjs → useActionDispatchProvider-zB_GKeUR.mjs} +1 -1
- package/dist/{useCustomer-DCPq7eHM.mjs → useCustomer-VfeQ6rG2.mjs} +2 -2
- package/dist/{useCustomer-DYc54GVD.js → useCustomer-bO4D6e4Z.js} +1 -1
- package/dist/{useIncrementalLoading-CuSndpP2.js → useIncrementalLoading-BgWuwoMo.js} +1 -1
- package/dist/{useIncrementalLoading-DmOT2MXH.mjs → useIncrementalLoading-C59FXHzp.mjs} +1 -1
- package/dist/{useInvoiceData-BajCyf-x.js → useInvoiceData-CxxkBTGY.js} +1 -1
- package/dist/{useInvoiceData-BgtUKbHY.mjs → useInvoiceData-Dhg-hx8C.mjs} +2 -2
- package/dist/useInvoicesList-BXZ9uV9i.js +1 -0
- package/dist/{useInvoicesList-DRD5yix0.mjs → useInvoicesList-DBz7T7sM.mjs} +4 -4
- package/dist/{useLoadInitialData-IlbmC6p0.mjs → useLoadInitialData-BhpIg7OF.mjs} +1 -1
- package/dist/{useLoadInitialData-BObRB7Vo.js → useLoadInitialData-BqiAFNFi.js} +1 -1
- package/dist/{usePaymentMethodOptions-CzqsebhN.js → usePaymentMethodOptions-DszFvgKX.js} +1 -1
- package/dist/{usePaymentMethodOptions-DRkWBjv6.mjs → usePaymentMethodOptions-PcMjtMSF.mjs} +2 -2
- package/dist/{usePaymentMethods-DFkRNreh.mjs → usePaymentMethods-B5AbGWsn.mjs} +2 -2
- package/dist/{usePaymentMethods-ZPxKg5Y3.js → usePaymentMethods-Bb1Xbads.js} +1 -1
- package/dist/{usePayments-E_Jsqo98.mjs → usePayments-DgoZoBZh.mjs} +3 -3
- package/dist/{usePayments-DwiGafZj.js → usePayments-is5c66Z6.js} +1 -1
- package/dist/{usePortal-CxTS2TQh.js → usePortal-C4qWsJeq.js} +1 -1
- package/dist/{usePortal-DcOz9FEL.mjs → usePortal-DWLtNqBB.mjs} +1 -1
- package/dist/{useService-DF57xuDd.mjs → useService-BZqFkz7p.mjs} +1 -1
- package/dist/{useService-CHrkefKd.js → useService-DKm3QtT4.js} +1 -1
- package/dist/useSubscription-CEZJw6wZ.mjs +23 -0
- package/dist/useSubscription-DuUNc1_l.js +1 -0
- package/dist/useTopUpModal-DNyWrHDv.mjs +1012 -0
- package/dist/useTopUpModal-DeF-cfCK.js +1 -0
- package/dist/{vendor-ui-B8IlviSs.mjs → vendor-ui-BoGKOJ36.mjs} +8642 -7077
- package/dist/vendor-ui-BuRqLx74.js +1 -0
- package/package.json +14 -7
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BxdcIX-Z.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DfdaWRO0.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D6hHXndB.js +0 -1
- package/dist/component-B53Df2Rt.js +0 -1
- package/dist/component-BSnccqm1.mjs +0 -933
- package/dist/en-US-C0gIE4Q1.js +0 -1
- package/dist/invoices-BCmE_nnb.js +0 -1
- package/dist/nl-NL-Br7muSHK.js +0 -1
- package/dist/registry-Cx7p19-6.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1102
- package/dist/url-B6-3PkW2.js +0 -1
- package/dist/useInvoicesList-wnvjyB_H.js +0 -1
- package/dist/useWalletBalanceItems-BQEXDCBg.js +0 -1
- package/dist/vendor-ui-C3Tq-qY_.js +0 -1
package/dist/en-US-C0gIE4Q1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"addon_multiple_editor.add_to_subscription_button":"Add to subscription","addon_multiple_editor.description":"Select any number of products","addon_multiple_editor.unsupported_pricing_error":"Unsupported pricing","addon_single_editor.description.at_least_one":"Select at least one product","addon_single_editor.description.at_most_one":"Select up to one product","addon_single_editor.description.exactly_one":"Select one product","billing_information_form.submit_button.label":"Save changes","checkout.address.city.placeholder":"City...","checkout.address.line1.placeholder":"Address line 1...","checkout.address.line2.placeholder":"Address line 2...","checkout.address.portal_code.placeholder":"Postal code...","checkout.address.state.placeholder":"State...","checkout.address.title":"Billing address","checkout.agreement.subscription":"{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Free","checkout.billing_details.add_billing_details_button.label":"More billing details","checkout.billing_details.remove_billing_details_button.label":"Remove billing details","checkout.billing_information_block.title":"Billing details","checkout.company_purchase_toggle.sub_title":"I am purchasing on behalf of a company","checkout.company_purchase_toggle.title":"Company purchase","checkout.contact_information_block.title":"Customer information","checkout.country.label":"Billing country","checkout.customize_plan_block.title":"Customize plan","checkout.email_address.label":"Email address","checkout.email_address.placeholder":"Email address...","checkout.express_payment_methods.divider_text":"Or","checkout.express_payment_methods.title":"Subscribe instantly with","checkout.first_name.label":"First name","checkout.first_name.placeholder":"First name...","checkout.invoice_preview.no_country_selected_message":"Please select a country first","checkout.invoice_preview.usage_based_message":"+ Usage","checkout.last_name.label":"Last name","checkout.last_name.placeholder":"Last name...","checkout.legal_name.label":"Legal entity name","checkout.legal_name.placeholder":"Legal entity name...","checkout.not_available.contact_support_message":"this page to try again, or contact customer support.","checkout.not_available.description":"The checkout is currently not available.","checkout.not_available.reload_button":"Reload","checkout.not_available.title":"Checkout not available","checkout.optional_suffix.label":"(optional)","checkout.order_summary_block.billing_period.label":"Billed {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/quarter","checkout.order_summary_block.billing_period.quarterly":"Billed quarterly","checkout.order_summary_block.billing_period.save_badge.prefix":"Save {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/year","checkout.order_summary_block.billing_period.sub_label":"{amount}{period}","checkout.order_summary_block.title":"Order summary","checkout.page_title":"Pay and subscribe","checkout.pay_and_subscribe_button_trial.label":"Start trial","checkout.pay_and_subscribe_button.label":"Pay and subscribe","checkout.payment_method_block.no_country_selected_message":"Payment methods will be shown after you select the billing country.","checkout.payment_method_block.no_country_selected_title":"Select your billing country","checkout.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","checkout.payment_method_block.no_payment_methods_available_title":"No payment methods available","checkout.payment_method_block.title":"Payment method","checkout.payment_methods.no_country_selected_message":"Select a country to see the available payment methods","checkout.promotion_code.add_label":"Add promotion code","checkout.promotion_code.applied_label":"Promotion applied","checkout.promotion_code.applied_status":"Promotion code applied","checkout.promotion_code.apply_aria_label":"Apply promotion code","checkout.promotion_code.apply_button":"Apply","checkout.promotion_code.apply_failed":"Promotion code could not be applied. Please try again.","checkout.promotion_code.input_aria_label":"Promotion code","checkout.promotion_code.placeholder":"Promotion code","checkout.promotion_code.remove_aria_label":"Remove promotion code","checkout.promotion_code.remove_failed":"Promotion code could not be removed. Please try again.","checkout.promotion_code.removed_status":"Promotion code removed","checkout.subscription_description":"You will be billed <strong>{price}</strong> per {period_name}, starting today.","checkout.trial_period_description":"You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.","checkout.trial.label":"Trial","checkout.vat_number.check_button.label":"Check","checkout.vat_number.label":"VAT number","checkout.vat_number.placeholder":"VAT number...","components.payment_method_form.section_title":"Available payment methods","customer_overview.billing_information_block.load_failed.subtitle":"Please refresh or contact support.","customer_overview.billing_information_block.load_failed.title":"We can’t load your billing information","customer_overview.billing_information_block.title":"Billing information","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Edit","customer_overview.payment_methods_block.add_payment_method_button_label":"Add payment method","customer_overview.payment_methods_block.add_payment_method_helper_text":"Add a payment method for recurring invoice payments.","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"View all","customer_overview.payment_methods.title":"{count,plural,one{Payment method} other{Payment methods}}","customer_overview.subscriptions_block.fallback_subscription_name":"Subscription","customer_overview.subscriptions_block.no_active_subscription_content":"There’s no active subscription to display.","customer_overview.subscriptions_block.no_active_subscription_title":"No subscriptions","customer_overview.subscriptions_block.title":"{count,plural,one{My subscription} other{My subscriptions}}","customer_overview.subscriptions_block.view_all_button_label":"View all","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}","customer.invoice_table.pay_invoice_button.label":"Pay","customer.subscriptions_block.cancel_button_label":"Cancel subscription","customer.subscriptions_block.next_billing_date":"Next billing date","customer.subscriptions_block.renew_button_label":"Renew subscription","customer.subscriptions_block.show_details_button_label":"Subscription details","customer.subscriptions_block.upgrade_button_label":"Upgrade subscription","empty_state.retry.button":"Refresh",empty_value_placeholder:"-","invoice_credits.balance.table_header":"Balance","invoice_credits.credit_breakdown.table_header":"Credit breakdown","invoice_credits.remaining.table_header":"Remaining","invoice_credits.used.table_header":"Used","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Will be determined by billing information","invoice_table.button.load_more":"Load more","invoice_table.chip.paid":"Paid","invoice_table.header.amount":"Amount","invoice_table.header.date":"Date","invoice_table.header.invoice_number":"Invoice","invoice_table.header.status":"Status","invoices_list.title":"Schedules","on_demand_pricing_list.category_fallback_title":"Items","on_demand_pricing_row.add_to_cart_button_label":"Add to cart","on_demand_pricing_row.one_off_label":"one-off","on_demand_pricing_row.remove_button_label":"Remove","pay_button.label.amount_and_payment_method":"Pay {amount} with {type}","pay_button.label.amount_only":"Pay {amount}","pay_button.label.default":"Pay","pay_invoice.error.description":"Please try again or contact support.","pay_invoice.error.title":"Something went wrong","pay_invoice.paid.title":"Thank you for your payment!","pay_invoice.payment_methods.title":"Payment methods","payment_completed_card.redirect_message":"You are being redirected...","payment_completed_card.title.authorize":"Payment successful","payment_completed_card.title.tokenize":"Your payment method is added","payment_integration_form.select_payment_method_error":"Select a payment method","payment_method.context_menu.delete.label":"Delete","payment_method.context_menu.set_as_default.label":"Set as default","payment_methods_list.delete_modal.body":"Are you sure you want to delete this payment method?","payment_methods_list.delete_modal.cancel":"Cancel","payment_methods_list.delete_modal.confirm":"Delete","payment_methods_list.delete_modal.title":"Delete payment method","payments.retry_button.label":"Try again","pricing_group_multiple_editor.at_least_one_description":"Select at least one product",pricing_item_pricing:e,"pricing_item_pricing.unsupported_pricing_error":"Unsupported pricing","screens.payment_method_management.description":"Add a new payment method or set a default payment method for your payments.","screens.payment_method_management.title":"Payment methods","sdk.invoice_details.customer_billing_information.title":"Your billing information","sdk.invoice_details.invoice_details_block.due_date":"Due date","sdk.invoice_details.invoice_details_block.invoice_date":"Invoice date","sdk.invoice_details.invoice_details_block.title":"Invoice details","sdk.invoice_details.invoice.download_pdf":"Download the PDF for a full breakdown","sdk.invoice_details.invoice.title":"Invoice","sdk.invoice_details.payment_history.payment_attempt":"Payment attempt","sdk.invoice_details.payment_history.title":"Payment history","seats.label":"Seats","seats.price_per_seat_period":"{amount} per seat/{period}","seats.tiered_price_per_seat_period":"{amount} per seat/{period}","seats.tiered_pricing_label":"Tiered pricing","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Secure and encrypted payments","secure_payments_kpi.specific_vendor":"Secure and encrypted payments by","subscription_payment_completed_card.thank_you_for_subscribing":"Thank you for subscribing.","subscription_payment_completed_card.title":"Payment successful","tax_check.invalid_vat_number":"VAT number is invalid.","tax_check.valid_vat_number":"VAT number is valid.","upgrade_subscription.empty_state":"No one-off items are available for this subscription.","upgrade_subscription.load_error":"Unable to load items. Please try again later.","upgrade_subscription.order_summary.empty_state":"Select your items","upgrade_subscription.order_summary.item_count":"{count} items","upgrade_subscription.order_summary.one_off_label":"one-off","upgrade_subscription.order_summary.selected_item_count":"{count} items","upgrade_subscription.order_summary.selected_items_title":"Selected items","upgrade_subscription.order_summary.title":"Order summary","upgrade_subscription.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","upgrade_subscription.payment_method_block.no_payment_methods_available_title":"No payment methods available","upgrade_subscription.payment_method_block.title":"Payment method","upgrade_subscription.payment_picker.all_title":"All payment methods","upgrade_subscription.payment_picker.saved_title":"Saved payment methods","upgrade_subscription.preview_error":"Unable to calculate the total. Please try again.","upgrade_subscription.pricing_row.add_button_label":"Add to cart","upgrade_subscription.pricing_row.one_off_label":"one-off","upgrade_subscription.pricing_row.remove_button_label":"Remove","upgrade_subscription.purchase_button.label":"Purchase","upgrade_subscription.purchase_error":"Something went wrong. Please try again.","upgrade_subscription.success.redirect":"You will be redirected shortly…","upgrade_subscription.success.subtitle":"Your purchase has been completed.","upgrade_subscription.success.title":"Payment successful","upgrade_subscription.title":"Upgrade subscription","wallet_balance.credit_type_fallback_label":"Credits","wallet_balance.details.header":"Wallet balance","wallet_balance.load_failed":"Could not load wallet balances","wallet_balance.service_period_heading":"Service period - {startAt} - {endAt}","wallet_balance.wallet_ballance_title":"Balance"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i=require("./vendor-ui-C3Tq-qY_.js"),e=require("./component-B53Df2Rt.js");exports.createInvoicesService=function(){const n=e.createRequestService(),t=e.useConfig();return{getInvoice:function(i){return n({url:`${t.apiUrls.transaction}/portal/invoices/${i}`})},getInvoices:function({customerId:e,pagination:r,query:a}){const o=i.withPagination({customer_id:e,...a??{}},r),c=new URL(`${t.apiUrls.transaction}/portal/invoices`);return Object.entries(o).forEach(([i,e])=>{null!=e&&(Array.isArray(e)?e.forEach(e=>{c.searchParams.append(`${i}[]`,`${e}`)}):c.searchParams.append(i,`${e}`))}),n({url:c.toString(),isCollection:!0})},getInvoicePdf:async function(e){return n({url:`${t.apiUrls.transaction}/portal/invoices/${e}/pdf`,options:{headers:{"Content-Type":"application/pdf"}}}).then(n=>{const t=new Blob([n],{type:"application/pdf"});i.downloadFile(t,`invoice-${e}.pdf`)})},getInvoicePreview:function({customer:i,pricingPlanSubscriptionId:e,startAt:r,customizations:a,pricing_plan_schedule_customizations:o}){return n({url:`${t.apiUrls.transaction}/portal/invoices/preview`,options:{method:"POST"},data:{template_pricing_plan_subscription_id:e,...r&&{start_at:r},...a&&{pricing_plan_schedule_customizations:a},...o&&{pricing_plan_schedule_customizations:o},customer_details:{...i,reference:"preview"}}})},previewChargeOnDemandPricingItems:function({pricingPlanScheduleId:i,pricingItemIds:e,startAt:r}){return n({url:`${t.apiUrls.transaction}/portal/invoices/charge-on-demand-pricing-items`,options:{method:"POST"},data:{pricing_plan_schedule_id:i,pricing_items:e.map(i=>({pricing_item_id:i})),...r?{start_at:r}:{},preview:!0}})}}};
|
package/dist/nl-NL-Br7muSHK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"addon_multiple_editor.add_to_subscription_button":"Toevoegen aan abonnement","addon_multiple_editor.description":"Selecteer een of meer producten","addon_multiple_editor.unsupported_pricing_error":"Niet-ondersteunde prijsstelling","addon_single_editor.description.at_least_one":"Selecteer minimaal één product","addon_single_editor.description.at_most_one":"Selecteer maximaal één product","addon_single_editor.description.exactly_one":"Selecteer één product","billing_information_form.submit_button.label":"Wijzigingen opslaan","checkout.address.city.placeholder":"Stad...","checkout.address.line1.placeholder":"Adresregel 1...","checkout.address.line2.placeholder":"Adresregel 2...","checkout.address.portal_code.placeholder":"Postcode...","checkout.address.state.placeholder":"Provincie...","checkout.address.title":"Factuuradres","checkout.agreement.subscription":"{subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} voor {trial_period}, daarna {subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Gratis","checkout.billing_details.add_billing_details_button.label":"Meer factuurgegevens","checkout.billing_details.remove_billing_details_button.label":"Factuurgegevens verwijderen","checkout.billing_information_block.title":"Factuurgegevens","checkout.company_purchase_toggle.sub_title":"Ik koop namens een bedrijf","checkout.company_purchase_toggle.title":"Zakelijke aankoop","checkout.contact_information_block.title":"Klantgegevens","checkout.country.label":"Factuurland","checkout.customize_plan_block.title":"Plan aanpassen","checkout.email_address.label":"E-mailadres","checkout.email_address.placeholder":"E-mailadres...","checkout.express_payment_methods.divider_text":"Of","checkout.express_payment_methods.title":"Direct abonneren met","checkout.first_name.label":"Voornaam","checkout.first_name.placeholder":"Voornaam...","checkout.invoice_preview.no_country_selected_message":"Selecteer eerst een land","checkout.invoice_preview.usage_based_message":"+ Gebruik","checkout.last_name.label":"Achternaam","checkout.last_name.placeholder":"Achternaam...","checkout.legal_name.label":"Naam rechtspersoon","checkout.legal_name.placeholder":"Naam rechtspersoon...","checkout.not_available.contact_support_message":"deze pagina om het opnieuw te proberen, of neem contact op met de klantenservice.","checkout.not_available.description":"De betaalpagina is momenteel niet beschikbaar.","checkout.not_available.reload_button":"Herladen","checkout.not_available.title":"Betaalpagina niet beschikbaar","checkout.optional_suffix.label":"(optioneel)","checkout.order_summary_block.billing_period.label":"Gefactureerd per {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/kwartaal","checkout.order_summary_block.billing_period.quarterly":"Gefactureerd per kwartaal","checkout.order_summary_block.billing_period.save_badge.prefix":"Bespaar {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/jaar","checkout.order_summary_block.billing_period.sub_label":"{amount} per {period}","checkout.order_summary_block.title":"Besteloverzicht","checkout.page_title":"Betalen en abonneren","checkout.pay_and_subscribe_button_trial.label":"Proefperiode starten","checkout.pay_and_subscribe_button.label":"Betalen en abonneren","checkout.payment_method_block.no_country_selected_message":"Betaalmethoden worden getoond zodra je het factuurland hebt geselecteerd.","checkout.payment_method_block.no_country_selected_title":"Selecteer je factuurland","checkout.payment_method_block.no_payment_methods_available_message":"Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.","checkout.payment_method_block.no_payment_methods_available_title":"Geen betaalmethoden beschikbaar","checkout.payment_method_block.title":"Betaalmethode","checkout.payment_methods.no_country_selected_message":"Selecteer een land om de beschikbare betaalmethoden te zien","checkout.promotion_code.add_label":"Promotiecode toevoegen","checkout.promotion_code.applied_label":"Promotie toegepast","checkout.promotion_code.applied_status":"Promotiecode toegepast","checkout.promotion_code.apply_aria_label":"Promotiecode toepassen","checkout.promotion_code.apply_button":"Toepassen","checkout.promotion_code.apply_failed":"Promotiecode kon niet worden toegepast. Probeer het opnieuw.","checkout.promotion_code.input_aria_label":"Promotiecode","checkout.promotion_code.placeholder":"Promotiecode","checkout.promotion_code.remove_aria_label":"Promotiecode verwijderen","checkout.promotion_code.remove_failed":"Promotiecode kon niet worden verwijderd. Probeer het opnieuw.","checkout.promotion_code.removed_status":"Promotiecode verwijderd","checkout.subscription_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, vanaf vandaag.","checkout.trial_period_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.","checkout.trial.label":"Proefperiode","checkout.vat_number.check_button.label":"Controleren","checkout.vat_number.label":"BTW-nummer","checkout.vat_number.placeholder":"BTW-nummer...","components.payment_method_form.section_title":"Beschikbare betaalmethoden","customer_invoices.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_invoices.load_failed.title":"We kunnen je facturen niet laden","customer_overview.billing_information_block.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_overview.billing_information_block.load_failed.title":"We kunnen je factuurgegevens niet laden","customer_overview.billing_information_block.title":"Factuurgegevens","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Bewerken","customer_overview.invoices_block.no_active_subscription_content":"Je hebt nog geen factuur ontvangen. Deze verschijnt hier zodra deze is gegenereerd.","customer_overview.invoices_block.no_invoices_title":"Geen facturen om weer te geven","customer_overview.invoices_block.title":"Facturen","customer_overview.invoices_block.view_all_invoices_link_label":"Alles weergeven","customer_overview.payment_methods_block.add_payment_method_button_label":"Betaalmethode toevoegen","customer_overview.payment_methods_block.add_payment_method_helper_text":"Voeg een betaalmethode toe voor terugkerende factuurbetalingen.","customer_overview.payment_methods_block.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_overview.payment_methods_block.load_failed.title":"We kunnen je betaalmethoden niet laden","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"Alles weergeven","customer_overview.payment_methods.title":"{count,plural,one{Betaalmethode} other{Betaalmethoden}}","customer_overview.subscriptions_block.fallback_subscription_name":"Abonnement","customer_overview.subscriptions_block.load_failed.subtitle":"Vernieuw de pagina of neem contact op met de ondersteuning.","customer_overview.subscriptions_block.load_failed.title":"We kunnen je abonnementen niet laden","customer_overview.subscriptions_block.no_active_subscription_content":"Er is geen actief abonnement om weer te geven.","customer_overview.subscriptions_block.no_active_subscription_title":"Geen abonnementen","customer_overview.subscriptions_block.title":"{count,plural,one{Mijn abonnement} other{Mijn abonnementen}}","customer_overview.subscriptions_block.view_all_button_label":"Alles weergeven","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}","customer.invoice_table.pay_invoice_button.label":"Betalen","customer.subscriptions_block.cancel_button_label":"Abonnement opzeggen","customer.subscriptions_block.next_billing_date":"Volgende factuurdatum","customer.subscriptions_block.renew_button_label":"Abonnement verlengen","customer.subscriptions_block.show_details_button_label":"Abonnementsdetails","customer.subscriptions_block.upgrade_button_label":"Abonnement upgraden","empty_state.retry.button":"Vernieuwen",empty_value_placeholder:"-","invoice_credits.balance.table_header":"Saldo","invoice_credits.credit_breakdown.table_header":"Kredietoverzicht","invoice_credits.remaining.table_header":"Resterend","invoice_credits.used.table_header":"Gebruikt","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Wordt bepaald aan de hand van de factuurgegevens","invoice_table.button.load_more":"Meer laden","invoice_table.chip.paid":"Betaald","invoice_table.header.amount":"Bedrag","invoice_table.header.date":"Datum","invoice_table.header.invoice_number":"Factuur","invoice_table.header.status":"Status","invoices_list.title":"Schema's","on_demand_pricing_list.category_fallback_title":"Items","on_demand_pricing_row.add_to_cart_button_label":"Aan winkelwagen toevoegen","on_demand_pricing_row.one_off_label":"eenmalig","on_demand_pricing_row.remove_button_label":"Verwijderen","pay_button.label.amount_and_payment_method":"Betaal {amount} met {type}","pay_button.label.amount_only":"Betaal {amount}","pay_button.label.default":"Betalen","pay_invoice.error.description":"Probeer het opnieuw of neem contact op met de klantenservice.","pay_invoice.error.title":"Er is iets misgegaan","pay_invoice.paid.title":"Bedankt voor je betaling!","pay_invoice.payment_methods.title":"Betaalmethoden","payment_completed_card.redirect_message":"Je wordt doorgestuurd...","payment_completed_card.title.authorize":"Betaling geslaagd","payment_completed_card.title.tokenize":"Je betaalmethode is toegevoegd","payment_integration_form.select_payment_method_error":"Selecteer een betaalmethode","payment_method.context_menu.delete.label":"Verwijderen","payment_method.context_menu.set_as_default.label":"Instellen als standaard","payment_methods_list.delete_modal.body":"Weet u zeker dat u deze betaalmethode wilt verwijderen?","payment_methods_list.delete_modal.cancel":"Annuleren","payment_methods_list.delete_modal.confirm":"Verwijderen","payment_methods_list.delete_modal.title":"Betaalmethode verwijderen","payments.retry_button.label":"Opnieuw proberen","pricing_group_multiple_editor.at_least_one_description":"Selecteer minimaal één product",pricing_item_pricing:e,"pricing_item_pricing.flat_top_up":"Flat top-up prijs","pricing_item_pricing.none":"Niet gefactureerd","pricing_item_pricing.pass_through":"Doorberekeningsprijs","pricing_item_pricing.per_seat":"Per gebruiker","pricing_item_pricing.stair_step":"Staffelprijzen","pricing_item_pricing.tiered":"Tariefschalen","pricing_item_pricing.tiered_top_up":"Tariefschalen met top-up","pricing_item_pricing.top_tiered":"Top-tier prijs","pricing_item_pricing.unsupported_pricing_error":"Niet-ondersteunde prijsstelling","screens.payment_method_management.description":"Voeg een nieuwe betaalmethode toe of stel een standaard betaalmethode in voor uw betalingen.","screens.payment_method_management.title":"Betaalmethoden","sdk.invoice_details.customer_billing_information.title":"Jouw factuur gegevens","sdk.invoice_details.invoice_details_block.due_date":"Vervaldatum","sdk.invoice_details.invoice_details_block.invoice_date":"Factuurdatum","sdk.invoice_details.invoice_details_block.title":"Factuurgegevens","sdk.invoice_details.invoice.download_pdf":"Download de PDF voor een volledig overzicht","sdk.invoice_details.invoice.title":"Factuur","sdk.invoice_details.payment_history.payment_attempt":"Betaalpoging","sdk.invoice_details.payment_history.title":"Betaalgeschiedenis","seats.label":"Seats","seats.price_per_seat_period":"{amount} per seat/{period}","seats.tiered_price_per_seat_period":"{amount} per seat/{period}","seats.tiered_pricing_label":"Staffelprijzen","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Veilige en versleutelde betalingen","secure_payments_kpi.specific_vendor":"Veilige en versleutelde betalingen door","subscription_payment_completed_card.thank_you_for_subscribing":"Bedankt voor je abonnement.","subscription_payment_completed_card.title":"Betaling geslaagd","tax_check.invalid_vat_number":"BTW-nummer is ongeldig.","tax_check.valid_vat_number":"BTW-nummer is geldig.","upgrade_subscription.empty_state":"Er zijn geen eenmalige items beschikbaar voor dit abonnement.","upgrade_subscription.kpi.encrypted_payments.label":"Veilige en versleutelde betalingen","upgrade_subscription.load_error":"Items konden niet worden geladen. Probeer het later opnieuw.","upgrade_subscription.order_summary.empty_state":"Selecteer items om de prijzen te zien.","upgrade_subscription.order_summary.item_count":"{count} items","upgrade_subscription.order_summary.one_off_label":"eenmalig","upgrade_subscription.order_summary.selected_item_count":"{count} items","upgrade_subscription.order_summary.selected_items_title":"Geselecteerde items","upgrade_subscription.order_summary.subtotal_label":"Totaal exclusief belasting","upgrade_subscription.order_summary.taxes_label":"Belasting","upgrade_subscription.order_summary.title":"Besteloverzicht","upgrade_subscription.order_summary.total_label":"Vandaag te betalen","upgrade_subscription.payment_method_block.no_payment_methods_available_message":"Er zijn geen betaalmethoden beschikbaar. Neem contact op met de ondersteuning voor meer informatie.","upgrade_subscription.payment_method_block.no_payment_methods_available_title":"Geen betaalmethoden beschikbaar","upgrade_subscription.payment_method_block.title":"Betaalmethode","upgrade_subscription.payment_picker.all_title":"Alle betaalmethoden","upgrade_subscription.payment_picker.saved_title":"Opgeslagen betaalmethoden","upgrade_subscription.preview_error":"Het totaal kon niet worden berekend. Probeer het opnieuw.","upgrade_subscription.pricing_row.add_button_label":"Aan winkelwagen toevoegen","upgrade_subscription.pricing_row.one_off_label":"eenmalig","upgrade_subscription.pricing_row.remove_button_label":"Verwijderen","upgrade_subscription.purchase_button.label":"Kopen","upgrade_subscription.purchase_error":"Er is iets misgegaan. Probeer het opnieuw.","upgrade_subscription.success.redirect":"Je wordt zo doorgestuurd","upgrade_subscription.success.subtitle":"Je aankoop is voltooid.","upgrade_subscription.success.title":"Betaling geslaagd","upgrade_subscription.title":"Abonnement upgraden","wallet_balance.credit_type_fallback_label":"Tegoed","wallet_balance.details.header":"Walletsaldo","wallet_balance.load_failed":"Walletsaldi konden niet worden geladen","wallet_balance.service_period_heading":"Serviceperiode - {startAt} - {endAt}","wallet_balance.wallet_ballance_title":"Saldo"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./components/PaymentMethodForm/PaymentMethodForm.cjs.js"),n=require("./screens/CustomerOverview/CustomerOverview.cjs.js"),o=require("./screens/Checkout/Checkout.cjs.js"),i=require("./screens/UpgradeSubscription/UpgradeSubscription.cjs.js"),t=require("./screens/PayInvoice/PayInvoice.cjs.js"),s=require("./screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js"),r=require("./components/Invoice/Invoice.cjs.js"),c=require("./components/InvoiceHeader/InvoiceHeader.cjs.js"),m=require("./components/InvoiceDetails/InvoiceDetails.cjs.js"),a=require("./components/InvoicesList/InvoicesList.cjs.js"),u=require("./components/PaymentHistory/PaymentHistory.cjs.js"),l=require("./components/SubscriptionsList/SubscriptionsList.cjs.js"),d=require("./components/SubscriptionSchedules/SubscriptionSchedules.cjs.js"),p=require("./components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js"),v=require("./components/WalletBalances/WalletBalances.cjs.js"),f=require("./components/BillingInformation/BillingInformation.cjs.js"),j=require("./components/BillingInformationForm/BillingInformationForm.cjs.js"),S=require("./component-B53Df2Rt.js"),h={"customer-overview":n.defineSolvimonCustomerOverview,checkout:o.defineSolvimonCheckout,"upgrade-subscription":i.defineSolvimonUpgradeSubscription,"pay-invoice":t.defineSolvimonPayInvoice,"payment-methods-management":s.defineSolvimonPaymentMethodsManagement},y={invoice:r.defineSolvimonInvoice,"invoice-header":c.defineSolvimonInvoiceHeader,"invoice-details":m.defineSolvimonInvoiceDetails,"invoices-list":a.defineSolvimonInvoicesList,"payment-history":u.defineSolvimonPaymentHistory,"subscriptions-list":l.defineSolvimonSubscriptionsList,"subscription-schedules":d.defineSolvimonSubscriptionSchedules,"customer-payment-methods":p.defineSolvimonCustomerPaymentMethods,"wallet-balances":v.defineSolvimonWalletBalances,"billing-information":f.defineSolvimonBillingInformation,"billing-information-form":j.defineSolvimonBillingInformationForm,"payment-method-form":e.defineSolvimonPaymentMethodForm};function g(e,n){const o="screen"===n?(i=e,Object.hasOwn(h,i)&&h[e]):function(e){return Object.hasOwn(y,e)}(e)&&y[e];var i;if(!o)throw new Error(`Solvimon: unknown ${n} id "${e}". Registered ${n}s: ${Object.keys("screen"===n?h:y).join(", ")}.`);o()}function b(e,n,o,i){const t=function(e){if("string"==typeof e){const n=document.querySelector(e);if(!n)throw new Error(`Solvimon: container not found for selector "${e}"`);return n}return e}(e);g(n,o);const s=(r=n,S.getComponentName(r));var r;const c=document.createElement(s);return function(e,n){const o={};for(const[i,t]of Object.entries(n))void 0!==t&&(o[i]=t);Object.assign(e,o)}(c,i),t.appendChild(c),{unmount(){c.remove()}}}function I(e){const{container:n,...o}=e;return{container:n,props:Object.fromEntries(Object.entries(o))}}function q(e,n){return{...e,...n}}const P=["customer-overview","checkout","upgrade-subscription","pay-invoice","payment-methods-management"],w=["invoice","invoice-header","invoice-details","invoices-list","payment-history","subscriptions-list","subscription-schedules","customer-payment-methods","wallet-balances","billing-information","billing-information-form","payment-method-form"];exports.createSolvimonCore=function(e={}){return{config:e,createComponent(n,o){const{container:i,props:t}=I(o);return b(i,n,"component",q(e,t)).unmount},createScreen(n,o){const{container:i,props:t}=I(o);return b(i,n,"screen",q(e,t)).unmount}}},exports.getRegisteredComponentIds=function(){return[...w]},exports.getRegisteredScreenIds=function(){return[...P]};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../vendor-ui-C3Tq-qY_.js"),i=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js"),a=require("../../ContentWithAsideLayout-DHpnJfGA.js"),n=require("../../component-B53Df2Rt.js"),r=require("../../useActionDispatchProvider-CizNgRwv.js"),o=require("../../usePortal-CxTS2TQh.js"),s=require("../../subscriptions-AMC4DirD.js"),l=require("../../customer-B5b2tLhw.js"),c=require("../../paymentMethods-u5y9B5ng.js"),d=require("../../invoices-BCmE_nnb.js"),u=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BxdcIX-Z.js"),p=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),m=require("../../url-B6-3PkW2.js"),g=require("../../useViewport-CKRY1CKR.js"),v={class:"sv-order-summary__body grid grid-cols-1 gap-1"},_={class:"flex items-center justify-center gap-2 px-3 py-5"},f={class:"flex flex-row gap-3 px-3 py-2"},y={class:"grow"},h={class:"sv-order-summary__items grid grid-cols-1 gap-1"},b={class:"flex flex-row gap-2 px-3 py-2"},w={class:"flex flex-row gap-3 px-3 py-2"},k={class:"grow"},x={class:"flex flex-row gap-2 px-3 py-2"},N=e.defineComponent({__name:"UpgradeOrderSummary",props:{selectedPricings:{type:Array},invoice:{type:Object},loading:{type:Boolean}},setup(i){const a=i,{$t:n}=t.useIntl(),r=e.computed(()=>0===a.selectedPricings.length),o=e=>{var t,i,a,n,r;const o=null==(r=null==(n=null==(a=null==(i=null==(t=e.items)?void 0:t[0])?void 0:i.configs)?void 0:a[0])?void 0:n.bands)?void 0:r[0];return(null==o?void 0:o.fixed_amount)??(null==o?void 0:o.amount)},s=e.computed(()=>{var e,t,i,r,o,s,c,d;const u=null==(r=null==(i=null==(t=null==(e=a.invoice)?void 0:e.periods)?void 0:t[0])?void 0:i.groups)?void 0:r[0],p=null==(o=null==u?void 0:u.products)?void 0:o[0],m=l.value.length;return{title:(null==p?void 0:p.name)??(null==(s=null==u?void 0:u.product_category)?void 0:s.name)??(null==(c=l.value[0])?void 0:c.description),subtitle:m>1?n({defaultMessage:"{count} items",id:"upgrade_subscription.order_summary.item_count",description:"Subtitle shown below the product name when multiple one-off items are selected"},{count:String(m)}):null==(d=l.value[0])?void 0:d.description}}),l=e.computed(()=>{var e;return((null==(e=a.invoice)?void 0:e.periods)??[]).flatMap((e,t)=>e.groups.flatMap((e,i)=>(e.lines??[]).map((a,n)=>{var r,o,s,l,c;return{key:`${t}-${i}-${n}`,description:a.description??(null==(o=null==(r=a.product_items)?void 0:r[0])?void 0:o.name)??(null==(l=null==(s=e.products)?void 0:s[0])?void 0:l.name)??(null==(c=e.product_category)?void 0:c.name)??"—",amount:a.amount_excluding_tax}})))}),c=e.computed(()=>a.selectedPricings.map(e=>{var t,i;return{key:e.id,description:e.name??(null==(i=null==(t=e.products)?void 0:t[0])?void 0:i.name)??"—",amount:o(e)}})),d=e.computed(()=>n({defaultMessage:"Order summary",id:"upgrade_subscription.order_summary.title",description:"Title for the order summary section on the upgrade subscription page"}));return(a,o)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{class:"sv-order-summary sv-upgrade-subscription__order-summary","no-border":"","no-spacing":"","content-background":"none",title:d.value},{default:e.withCtx(()=>[e.createElementVNode("div",v,[r.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"no-spacing":"",class:"sv-order-summary__empty-state"},{default:e.withCtx(()=>[e.createElementVNode("div",_,[e.createVNode(e.unref(t._sfc_main$14),{icon:"shopping_cart",class:"text-gray-500"}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",weight:"semibold",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Select your items",id:"upgrade_subscription.order_summary.empty_state",description:"Placeholder shown when no items are selected in the order summary"})),1)]),_:1})])]),_:1})):i.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.value.title?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"no-spacing":"",class:"sv-order-summary__subscription"},{default:e.withCtx(()=>[e.createElementVNode("div",f,[e.createElementVNode("div",y,[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.title),1)]),_:1}),s.value.subtitle?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,variant:"body-xs",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.subtitle),1)]),_:1})):e.createCommentVNode("",!0)])])]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,i=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:i.key,"no-spacing":"",class:"sv-order-summary__item"},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(t._sfc_main$3),{tag:"span",variant:"body-xs",class:"grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.description),1)]),_:2},1024),i.amount?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,tag:"span",variant:"body-xs","no-spacing":""},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$11),{value:i.amount},null,8,["value"])]),_:2},1024)):e.createCommentVNode("",!0)])]),_:2},1024))),128))]),e.createVNode(e.unref(t._sfc_main),{class:"sv-order-summary__totals"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$18),{class:"sv-order-summary__invoice-preview",variant:"without-products",invoice:i.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[i.loading?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"no-spacing":"",class:"sv-order-summary__subscription"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("div",k,[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString(c.value.length>1?e.unref(n)({defaultMessage:"Selected items",id:"upgrade_subscription.order_summary.selected_items_title",description:"Temporary order summary title shown while the invoice preview is loading"}):null==(t=c.value[0])?void 0:t.description),1)]}),_:1}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-xs",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.length>1?e.unref(n)({defaultMessage:"{count} items",id:"upgrade_subscription.order_summary.selected_item_count",description:"Temporary order summary subtitle shown while the invoice preview is loading"},{count:String(c.value.length)}):e.unref(n)({defaultMessage:"one-off",id:"upgrade_subscription.order_summary.one_off_label",description:"One-off payment label next to a line item in order summary"})),1)]),_:1})])])]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,i=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:i.key,"no-spacing":"",class:"sv-order-summary__item"},{default:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(e.unref(t._sfc_main$3),{tag:"span",variant:"body-xs",class:"grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.description),1)]),_:2},1024),i.amount?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,tag:"span",variant:"body-xs","no-spacing":""},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$11),{value:i.amount},null,8,["value"])]),_:2},1024)):e.createCommentVNode("",!0)])]),_:2},1024))),128)),i.loading?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:1,class:"sv-order-summary__totals"},{default:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("div",{class:"grid grid-cols-1 gap-2"},[e.createElementVNode("div",{class:"flex items-center justify-between gap-4"},[e.createElementVNode("div",{class:"h-4 w-40 animate-pulse rounded bg-gray-100"}),e.createElementVNode("div",{class:"h-4 w-20 animate-pulse rounded bg-gray-100"})]),e.createElementVNode("div",{class:"flex items-center justify-between gap-4"},[e.createElementVNode("div",{class:"h-4 w-16 animate-pulse rounded bg-gray-100"}),e.createElementVNode("div",{class:"h-4 w-20 animate-pulse rounded bg-gray-100"})]),e.createElementVNode("div",{class:"border-t border-gray-200 pt-2"},[e.createElementVNode("div",{class:"flex items-center justify-between gap-4"},[e.createElementVNode("div",{class:"h-5 w-36 animate-pulse rounded bg-gray-100"}),e.createElementVNode("div",{class:"h-5 w-24 animate-pulse rounded bg-gray-100"})])])],-1)])]),_:1})):e.createCommentVNode("",!0)],64))])]),_:1},8,["title"]))}}),V=e.defineComponent({__name:"OnDemandPricingRow",props:{pricing:{type:Object},selected:{type:Boolean},loading:{type:Boolean}},emits:["toggle"],setup(a,{emit:n}){const r=a,o=n,{$t:s}=t.useIntl(),l=e.computed(()=>{var e,t,i,a,n,o;return r.pricing.name??(null==(a=null==(i=null==(t=null==(e=r.pricing.items)?void 0:e[0])?void 0:t.product_items)?void 0:i[0])?void 0:a.name)??(null==(o=null==(n=r.pricing.products)?void 0:n[0])?void 0:o.name)??"—"}),c=e.computed(()=>{var e,t,i,a,n;const o=null==(n=null==(a=null==(i=null==(t=null==(e=r.pricing.items)?void 0:e[0])?void 0:t.configs)?void 0:i[0])?void 0:a.bands)?void 0:n[0];return(null==o?void 0:o.fixed_amount)??(null==o?void 0:o.amount)}),d=e.computed(()=>c.value?`${t.formatAmount(c.value)} ${s({defaultMessage:"one-off",id:"on_demand_pricing_row.one_off_label",description:"One-off label shown next to the price in an on-demand pricing row"})}`:"");return(n,r)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"content-background":a.selected?"none":"gray","content-classes":a.selected?"!border-primary-600 ring-1 ring-primary-600":void 0},{default:e.withCtx(()=>[e.createVNode(i._sfc_main,{name:l.value,description:d.value},{default:e.withCtx(()=>[a.selected?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:0,color:"gray",variant:"outline",size:"sm","icon-prefix":"remove_shopping_cart",loading:a.loading,onClick:r[0]||(r[0]=e=>o("toggle",a.pricing.id))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Remove",id:"on_demand_pricing_row.remove_button_label",description:"Label for the remove button in an on-demand pricing row"})),1)]),_:1},8,["loading"])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,color:"primary",size:"sm","icon-prefix":"add",loading:a.loading,onClick:r[1]||(r[1]=e=>o("toggle",a.pricing.id))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Add to cart",id:"on_demand_pricing_row.add_to_cart_button_label",description:"Label for the add to cart button in an on-demand pricing row"})),1)]),_:1},8,["loading"]))]),_:1},8,["name","description"])]),_:1},8,["content-background","content-classes"]))}}),B={class:"sv-pricing-list__items grid grid-cols-1 gap-1"},C=e.defineComponent({__name:"OnDemandPricingList",props:{categories:{type:Array},selectedPricingIds:{type:Array},loadingPricingId:{type:String}},emits:["toggle"],setup(i,{emit:a}){const n=i,r=a,{$t:o}=t.useIntl(),s=e.computed(()=>[...n.categories].sort((e,t)=>(e.display_order??0)-(t.display_order??0))),l=e=>{var t;return(null==(t=e.product_category)?void 0:t.name)??e.name??o({defaultMessage:"Items",id:"on_demand_pricing_list.category_fallback_title",description:"Fallback title for the selectable pricing items when no product category name is available"})};return(a,n)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id??a.display_order,class:"sv-pricing-list__category flex flex-col gap-2"},[e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-3",tag:"h2",class:"sv-pricing-list__category-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l(a)),1)]),_:2},1024),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricings,t=>(e.openBlock(),e.createBlock(V,{key:t.id,class:"sv-pricing-list__row",pricing:t,selected:i.selectedPricingIds.includes(t.id),loading:i.loadingPricingId===t.id,onToggle:n[0]||(n[0]=e=>r("toggle",e))},null,8,["pricing","selected","loading"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricing_groups,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.id},[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",weight:"semibold",class:"sv-pricing-list__group-title mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1024),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricings,t=>(e.openBlock(),e.createBlock(V,{key:t.id,class:"sv-pricing-list__row",pricing:t,selected:i.selectedPricingIds.includes(t.id),loading:i.loadingPricingId===t.id,onToggle:n[1]||(n[1]=e=>r("toggle",e))},null,8,["pricing","selected","loading"]))),128))],64))),128))])]))),128))}});const E={key:0,class:"sv-upgrade-subscription sv-root sv-screen sv-upgrade-subscription--purchased flex h-full items-center justify-center p-8"},S={class:"flex flex-col items-center text-center"},T={class:"sv-upgrade-subscription__header"},P={key:1,class:"sv-upgrade-subscription__pricing-list"},I={key:2,class:"sv-upgrade-subscription__loading p-4"},$={class:"sv-upgrade-subscription__payment-methods"},D={key:0,class:"sv-upgrade-subscription__payment-methods-body"},M={key:1,class:"sv-upgrade-subscription__payment-form"},j={class:"sv-upgrade-subscription__order-summary"},O={class:"flex flex-col gap-2"},A=e.defineComponent({__name:"UpgradeSubscription",props:{configuration:{type:Object}},setup(v){const _=v,{$t:f}=t.useIntl(),{getSubscription:y}=s.createSubscriptionsService(),{getCustomer:h}=l.createCustomerService(),{getOnDemandPricingItems:b}=function(){const e=n.createRequestService(),t=n.useConfig();return{chargeOnDemandPricingItems:function({scheduleId:i,pricingPlanVersionId:a,pricingItemIds:n,startAt:r,finalizeImmediately:o=!0,paymentMethodId:s}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${i}/charge-on-demand-pricing-items`,options:{method:"POST"},data:{...a?{pricing_plan_version_id:a}:{},pricing_item_ids:n,...r?{start_at:r}:{},finalize_immediately:o,...s?{payment_method_id:s}:{}}})},getOnDemandPricingItems:function({scheduleId:i}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${i}/on-demand-pricing-items`})}}}(),{getPaymentMethodOptions:w}=c.createPaymentMethodsService(),{previewChargeOnDemandPricingItems:k}=d.createInvoicesService(),x=o.usePortal(),V=n.useLogger(),{dispatchAction:B}=r.useActionDispatchProvider(),{isMobileViewport:A}=g.useViewport(),F=e.computed(()=>x.value.customer_id),L={currency:"EUR",quantity:"0"},q=e.ref([]),U=e.ref(!1),R=e.ref([]),z=e.ref([]),W=e.ref(!1),G=e.ref(!1),H=e.ref(!1),Y=e.ref(void 0),K=e.ref(void 0),Z=e.ref(),J=e.ref(void 0),Q=e.ref(void 0),X=e.ref(void 0),ee=(e,t=[])=>t.find(t=>t.id===e.id),te=(e,t)=>(e.items??[]).map(i=>{var a,n,r,o,s,l,c;const d=null==(a=null==t?void 0:t.items)?void 0:a.find(e=>e.id===i.id),u=i.product_items??(null==d?void 0:d.product_items);return{...e,id:i.id,name:(null==(r=null==(n=i.product_items)?void 0:n[0])?void 0:r.name)??(null==(s=null==(o=null==d?void 0:d.product_items)?void 0:o[0])?void 0:s.name)??e.name??(null==t?void 0:t.name)??(null==(c=null==(l=null==t?void 0:t.products)?void 0:l[0])?void 0:c.name),products:e.products??(null==t?void 0:t.products),items:[{...i,product_items:u}]}}),ie=async()=>{var e,i,a;W.value=!0,K.value=void 0;try{const n=await(async()=>{const e=[...(await y({id:_.configuration.subscriptionId,expanded:!0})).pricing_plan_schedule_infos??[]].sort((e,t)=>Date.parse(t.start_at)-Date.parse(e.start_at)),t=Date.now(),i=e.find(e=>{var i;const a=(null==(i=e.pricing_plan_schedule)?void 0:i.type)??e.type,n=Date.parse(e.start_at),r=e.end_at?Date.parse(e.end_at):void 0,o=Number.isFinite(n)&&n<=t,s=void 0===r||!Number.isFinite(r)||r>t;return"DEFAULT"===a&&o&&s});if(!(null==i?void 0:i.id))throw new Error("No pricing plan schedule found for subscription");return i})();J.value=n.id;const[r,o,s]=await Promise.all([b({scheduleId:J.value}),w({customerId:F.value}),h(F.value)]);R.value=(i=r.pricing_categories??[],a=(null==(e=n.pricing_plan_version)?void 0:e.pricing_categories)??[],i.map(e=>{var t;const i=((e,t)=>t.find(t=>t.product_category_id===e.product_category_id))(e,a);return{...e,name:e.name??(null==(t=null==i?void 0:i.product_category)?void 0:t.name),product_category:e.product_category??(null==i?void 0:i.product_category),pricings:(e.pricings??[]).flatMap(e=>te(e,ee(e,null==i?void 0:i.pricings))),pricing_groups:(e.pricing_groups??[]).map(e=>{var t;const a=null==(t=null==i?void 0:i.pricing_groups)?void 0:t.find(t=>t.id===e.id);return{...e,name:e.name??(null==a?void 0:a.name),pricings:(e.pricings??[]).flatMap(e=>te(e,ee(e,null==a?void 0:a.pricings)))}})}})),z.value=o,X.value=t.getCustomerCountry(s)}catch(n){V.error("INITIAL_DATA_LOAD_FAILED","Failed to load on-demand pricing items",{},n),K.value=f({defaultMessage:"Unable to load items. Please try again later.",id:"upgrade_subscription.load_error",description:"Error message shown when the one-off items cannot be loaded on the upgrade subscription page"})}finally{W.value=!1}};e.onMounted(()=>{ie()});const ae=e.computed(()=>R.value.flatMap(e=>[...e.pricings??[],...(e.pricing_groups??[]).flatMap(e=>e.pricings??[])])),ne=e.computed(()=>ae.value.filter(e=>q.value.includes(e.id))),re=e.computed(()=>ne.value.flatMap(e=>e.items??[]).map(e=>e.id).filter(e=>!!e)),oe=e.computed(()=>{var e,t;return null==(t=null==(e=Q.value)?void 0:e.tax_summary)?void 0:t.total_amount}),se=e.computed(()=>oe.value??L);let le,ce=0;e.watch([re,J],([e,t])=>{clearTimeout(le);const i=++ce;if(me.value=void 0,!t||0===e.length)return Q.value=void 0,G.value=!1,void(Y.value=void 0);G.value=!0,le=setTimeout(()=>{k({pricingPlanScheduleId:t,pricingItemIds:e}).then(e=>{i===ce&&(Q.value=e)}).catch(e=>{i===ce&&(V.error("INVOICE_PREVIEW_FAILED","Failed to load charge-on-demand invoice preview",{},e),me.value=f({defaultMessage:"Unable to calculate the total. Please try again.",id:"upgrade_subscription.preview_error",description:"Error message shown when the upgrade subscription invoice preview cannot be loaded"}),Q.value=void 0)}).finally(()=>{i===ce&&(G.value=!1,Y.value=void 0)})},400)});const de=e.computed(()=>{if(!J.value)throw new Error("Cannot create charge-on-demand authorization context without a schedule.");return{type:"CHARGE_ON_DEMAND",charge_on_demand:{pricing_plan_schedule_id:J.value,pricing_items:re.value.map(e=>({pricing_item_id:e}))}}}),ue=e=>{Y.value=e,q.value.includes(e)?q.value=q.value.filter(t=>t!==e):q.value=[...q.value,e]},pe=e.computed(()=>re.value.length>0&&!!J.value&&!!oe.value&&!G.value&&z.value.length>0),me=e.ref(void 0),ge=async()=>{var e;pe.value&&!H.value&&(me.value=void 0,H.value=!0,null==(e=Z.value)||e.submit())},ve=async()=>pe.value;let _e;const fe=()=>{H.value=!1,U.value=!0,_e=setTimeout(()=>{B({action:"navigate-to-customer-overview"})},3e3)},ye=e=>{H.value=!1,me.value=e.message||f({defaultMessage:"Something went wrong. Please try again.",id:"upgrade_subscription.purchase_error",description:"Error message shown when the purchase call fails on the upgrade subscription page"})};return e.onUnmounted(()=>{clearTimeout(le),clearTimeout(_e)}),(n,r)=>U.value?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(m._sfc_main,{class:"sv-upgrade-subscription__success",status:"success",title:e.unref(f)({defaultMessage:"Payment successful",id:"upgrade_subscription.success.title",description:"Title shown after a successful upgrade purchase"})},{default:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",shade:"lighter",tag:"div",class:"sv-upgrade-subscription__success-message mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Your purchase has been completed.",id:"upgrade_subscription.success.subtitle",description:"Subtitle shown after a successful upgrade purchase"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{variant:"body-sm",shade:"lighter",tag:"div",class:"sv-upgrade-subscription__success-redirect mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"You will be redirected shortly…",id:"upgrade_subscription.success.redirect",description:"Shown below the success message while the redirect timer is running"})),1)]),_:1})])]),_:1},8,["title"])])):(e.openBlock(),e.createBlock(e.unref(a.ContentWithAsideLayout),{key:1,class:"sv-upgrade-subscription sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-2",tag:"h1",class:"sv-upgrade-subscription__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Upgrade subscription",id:"upgrade_subscription.title",description:"Title for the upgrade subscription page"})),1)]),_:1})])]),content:e.withCtx(()=>[e.unref(A)?(e.openBlock(),e.createBlock(N,{key:0,class:"sv-upgrade-subscription__mobile-order-summary","selected-pricings":ne.value,invoice:Q.value,loading:G.value},null,8,["selected-pricings","invoice","loading"])):e.createCommentVNode("",!0),!W.value&&!K.value&&R.value.length>0?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(C,{categories:R.value,"selected-pricing-ids":q.value,"loading-pricing-id":Y.value,onToggle:ue},null,8,["categories","selected-pricing-ids","loading-pricing-id"])])):W.value?(e.openBlock(),e.createElementBlock("div",I,[...r[0]||(r[0]=[e.createElementVNode("div",{class:"sv-skeleton h-[72px] animate-pulse rounded-md bg-gray-100"},null,-1),e.createElementVNode("div",{class:"sv-skeleton mt-2 h-[72px] animate-pulse rounded-md bg-gray-100"},null,-1),e.createElementVNode("div",{class:"sv-skeleton mt-2 h-[72px] animate-pulse rounded-md bg-gray-100"},null,-1)])])):K.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$17),{key:3,class:"sv-upgrade-subscription__load-error sv-error m-4",title:K.value},null,8,["title"])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:4,variant:"body-sm",shade:"lighter",class:"sv-upgrade-subscription__empty-state p-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"No one-off items are available for this subscription.",id:"upgrade_subscription.empty_state",description:"Shown when there are no one-off items available for the subscription"})),1)]),_:1})),e.createElementVNode("div",$,[e.createVNode(p._sfc_main,{variant:"section",class:"min-h-[130px]"},{default:e.withCtx(()=>[!W.value||W.value&&z.value.length>0?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-3",tag:"h2",class:"sv-upgrade-subscription__payment-methods-title mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Payment method",id:"upgrade_subscription.payment_method_block.title",description:"The title of the payment method block in the upgrade subscription flow"})),1)]),_:1}),0===z.value.length?(e.openBlock(),e.createBlock(i._sfc_main$2,{key:0,class:"sv-upgrade-subscription__payment-methods-empty",icon:"credit_card_off"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"No payment methods available",id:"upgrade_subscription.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(f)({defaultMessage:"There are no available payment methods. Please contact support for more information.",id:"upgrade_subscription.payment_method_block.no_payment_methods_available_message",description:"The message shown when there are no available payment methods"})),1)]),_:1})):X.value&&J.value?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",{class:e.normalizeClass(["sv-upgrade-subscription__payment-method-picker",{"pointer-events-none opacity-60":H.value}])},[e.createVNode(u._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:Z,"customer-id":F.value,"country-code":X.value,context:de.value,amount:se.value,variant:"AUTHORIZE","payment-method-options":z.value,"validate-on-submit":ve,"force-store-payment-method":"",onPaymentSuccess:fe,onPaymentFailed:ye},null,8,["customer-id","country-code","context","amount","payment-method-options"])],2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])]),aside:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(p._sfc_main,{variant:"section",class:"min-h-[220px]"},{default:e.withCtx(()=>[e.createVNode(N,{"selected-pricings":ne.value,invoice:Q.value,loading:G.value},null,8,["selected-pricings","invoice","loading"])]),_:1})]),me.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$17),{key:0,class:"sv-upgrade-subscription__error sv-error",title:me.value},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",O,[e.createVNode(p._sfc_main,{class:"sv-upgrade-subscription__submit-skeleton min-h-[44px]"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$1),{size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-upgrade-subscription__purchase w-full",type:"button",disabled:!pe.value||H.value,loading:H.value,onClick:ge},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Purchase",id:"upgrade_subscription.purchase_button.label",description:"Label for the purchase button on the upgrade subscription page"})),1)]),_:1},8,["disabled","loading"])]),_:1}),e.createVNode(i._sfc_main$1,{"payment-method-options":z.value},null,8,["payment-method-options"])])]),_:1}))}}),F=e.defineComponent({__name:"UpgradeSubscription.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=>(i,a)=>{var r,o,s,l;return e.openBlock(),e.createBlock(n._sfc_main,{"custom-element-name":e.unref(q),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(o=null==(r=t.branding)?void 0:r.colors)?void 0:o.primary,"secondary-color":null==(l=null==(s=t.branding)?void 0:s.colors)?void 0:l.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:a[0]||(a[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(A,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),L=n.defineCustomElement(F),q=n.getComponentName("upgrade-subscription");exports.COMPONENT_NAME=q,exports.SolvimonUpgradeSubscription=L,exports.defineSolvimonUpgradeSubscription=()=>{customElements.get(q)||customElements.define(q,L)};
|