@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +14 -11
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
- package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
- package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
- package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
- package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-qGvnOKnK.js} +1 -1
- package/dist/ChargeOnDemandModal-CIiI74ls.mjs +983 -0
- package/dist/ChargeOnDemandModal-DIQaGnRs.js +1 -0
- package/dist/Checkout.entry.ce-8EcavNgT.js +2 -0
- package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
- package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
- package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-D60gTbfe.js} +1 -1
- package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
- package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs} +908 -891
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +1 -0
- package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
- package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
- package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
- package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
- package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
- package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
- package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
- package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
- package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-B47l_feL.js} +1 -1
- package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js} +1 -1
- package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +1 -0
- package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
- package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-8LN4gBh0.js} +1 -1
- package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
- package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-UWoyZgsR.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +154 -0
- package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +217 -197
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
- package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-BIiMCWlV.mjs} +247 -220
- package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +102 -0
- package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +1 -0
- package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
- package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
- package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-B05sHWcW.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs} +6 -6
- package/dist/PlanCustomizationEditor-CEMP_Dhz.js +1 -0
- package/dist/PlanCustomizationEditor-CpZeilm5.mjs +694 -0
- package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-DZSJ5Mz0.js} +1 -1
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs +141 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
- package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
- package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-zVXBHAL6.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs} +6 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs → Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs} +5 -5
- package/dist/StepInput.vue.es-C3Zm6Wc9.mjs +199 -0
- package/dist/StepInput.vue.es-mAnuCuDQ.js +1 -0
- package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +1 -0
- package/dist/SubscriptionDetails.entry.ce-WEimiOex.mjs +1057 -0
- package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
- package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs} +2284 -2341
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
- package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
- package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
- package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
- package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
- package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
- package/dist/{cn.es-BLE3T5Rx.js → cn.es-D9YMDvG2.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +246 -230
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +201 -212
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-CSzbVZIH.js → customElements-C963-LtW.js} +36 -32
- package/dist/{customElements-DT1YyL4O.mjs → customElements-D5DAoHRI.mjs} +231 -196
- package/dist/{customer-Cq4fF__H.mjs → customer-DKa1B2vp.mjs} +4 -4
- package/dist/{customer-CJonIvSm.js → customer-TE1FnGT0.js} +1 -1
- package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
- package/dist/{de-DE-CyvjSD9b.mjs → de-DE-CLfzTbbX.mjs} +39 -6
- package/dist/de-DE-DaBBl-Ak.js +1 -0
- package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
- package/dist/en-US-BNevqm0M.js +1 -0
- package/dist/{en-US-xQrWj8qI.mjs → en-US-D6SGRAch.mjs} +39 -6
- package/dist/en-US-J85TQRI8.js +1 -0
- package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
- package/dist/formControl-ODrpUvcA.js +1 -0
- package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{invoices-EamWI_jz.js → invoices-ClqTWYF9.js} +1 -1
- package/dist/{invoices-CVZOfEOY.mjs → invoices-DJTwftJv.mjs} +1 -1
- package/dist/it-IT-BkPbTueL.js +1 -0
- package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
- package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
- package/dist/{it-IT-C09oObBM.mjs → it-IT-Cym1UvvK.mjs} +39 -6
- package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
- package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
- package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-D0c4x5C0.mjs} +39 -6
- package/dist/nl-NL-jIfAVGv0.js +1 -0
- package/dist/paymentMethods-AL2U_byg.js +1 -0
- package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
- package/dist/{payments-Dnjg9Se4.js → payments-BmiHMlQt.js} +1 -1
- package/dist/{payments-BYZLQTJ-.mjs → payments-aXyfylwk.mjs} +6 -6
- package/dist/pricing.es-C07bgEZx.js +1 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingPlanSchedules-BD4GIP_F.mjs +32 -0
- package/dist/pricingPlanSchedules-BfsMSvN0.js +1 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
- package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
- package/dist/{subscriptions-BKER9RUc.js → subscriptions-Cm83ckfl.js} +1 -1
- package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions-cnR5fnf7.mjs} +1 -1
- package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
- package/dist/types/services/paymentMethods.types.d.ts +4 -2
- package/dist/types/services/requests.types.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
- package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
- package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
- package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DGYtowRy.js} +1 -1
- package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-XZKWsolE.mjs} +1 -1
- package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
- package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
- package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-COOU6IZd.js} +1 -1
- package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
- package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
- package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-CQRn8l9C.js} +1 -1
- package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-BQkKyyXa.js} +1 -1
- package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
- package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
- package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-CrKnBZs_.js} +1 -1
- package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
- package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
- package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
- package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
- package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
- package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-BKwrl82-.js} +1 -1
- package/dist/usePayments-Bauj16B-.js +1 -0
- package/dist/{usePayments-D_dyuf6S.mjs → usePayments-CV85OV8V.mjs} +46 -41
- package/dist/{usePortal-BU4ibdWq.js → usePortal-DSLImEfr.js} +1 -1
- package/dist/{usePortal-Br5lYuPT.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
- package/dist/{useSubscription-DRBUt9H5.js → useSubscription-BiYNJT2e.js} +1 -1
- package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
- package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
- package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-D2aiyfd-.js} +1 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
- package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
- package/package.json +11 -8
- package/dist/Checkout.entry.ce-D8O4qJ24.js +0 -2
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +0 -1
- package/dist/InvoiceSummary.vue.es-BOnvORpf.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs +0 -141
- package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +0 -98
- package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +0 -102
- package/dist/PaymentMethod.vue.es-CXV_ThBY.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js +0 -1
- package/dist/PlanCustomizationEditor-0kEXoOcM.js +0 -1
- package/dist/PlanCustomizationEditor-Dv69xPbX.mjs +0 -877
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs +0 -131
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +0 -1
- package/dist/TooltipParagraph.vue.es-7IQdU3Tf.js +0 -1
- package/dist/de-DE-DXsDvO5y.js +0 -1
- package/dist/en-US-9xdcz3T5.js +0 -1
- package/dist/en-US-DHdI11k9.js +0 -1
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
- package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
- package/dist/index-DwueOtPi.js +0 -1
- package/dist/it-IT-CcRIzP1A.js +0 -1
- package/dist/nl-NL-5PrgQl8q.js +0 -1
- package/dist/paymentMethods-Bwym8l9a.js +0 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
- package/dist/useCustomerFormLabels-C773h3J0.js +0 -1
- package/dist/usePaymentMethodOptions-DuXKS36F.js +0 -1
- package/dist/usePayments-CIJocDhR.js +0 -1
- package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
- package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { unref as t, inject as
|
|
2
|
-
import { I as
|
|
3
|
-
import { u as
|
|
4
|
-
import { b as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { c as
|
|
8
|
-
import { c as
|
|
9
|
-
import { A as
|
|
10
|
-
import { c as
|
|
11
|
-
import { a as
|
|
12
|
-
import { c as
|
|
13
|
-
import { g as
|
|
14
|
-
import { u as
|
|
15
|
-
import { o as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import { a as
|
|
20
|
-
import { g as
|
|
21
|
-
import { P as
|
|
22
|
-
import { u as
|
|
23
|
-
import { g as
|
|
24
|
-
import { _ as
|
|
25
|
-
import { _ as
|
|
26
|
-
import { _ as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { c as
|
|
29
|
-
import { b as
|
|
30
|
-
import { _ as
|
|
31
|
-
import { _ as
|
|
32
|
-
import { _ as
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { u as
|
|
36
|
-
import { _ as
|
|
37
|
-
import { _ as
|
|
38
|
-
import { l as
|
|
39
|
-
import { c as
|
|
40
|
-
import { c as
|
|
41
|
-
import { C as
|
|
42
|
-
import { u as
|
|
43
|
-
import { a as
|
|
44
|
-
const
|
|
1
|
+
import { unref as t, inject as ci, ref as Y, computed as _, onMounted as je, toRaw as ui, watch as Oe, defineComponent as se, openBlock as p, createBlock as O, withCtx as b, createElementVNode as w, createVNode as M, createTextVNode as K, toDisplayString as V, useModel as di, reactive as pi, createElementBlock as $, withModifiers as Fe, Fragment as me, createCommentVNode as U, createSlots as Ye, normalizeClass as Ie, mergeModels as At, renderSlot as tt, resolveComponent as mi, renderList as Rt, nextTick as qe, mergeProps as Pt, withDirectives as gi, withKeys as Dt, vShow as yi, defineAsyncComponent as Nt } from "vue";
|
|
2
|
+
import { I as vi, b as Ae, a as he, _ as le, d as fi, e as _i } from "./customElements-D5DAoHRI.mjs";
|
|
3
|
+
import { u as $t } from "./useTimePeriod.es-B22-fno3.mjs";
|
|
4
|
+
import { b as $e, f as De } from "./formatting.es-RclXHhKo.mjs";
|
|
5
|
+
import { _ as Ne, a as Be } from "./Button.vue.es-C32_baQN.mjs";
|
|
6
|
+
import { _ as hi } from "./ErrorNotification.vue.es-rRKgmkzV.mjs";
|
|
7
|
+
import { c as Mi } from "./countryData.es-BegoD-cZ.mjs";
|
|
8
|
+
import { c as bi } from "./subscriptions-cnR5fnf7.mjs";
|
|
9
|
+
import { A as Ce } from "./error-BHVZJGwD.mjs";
|
|
10
|
+
import { c as Ii, _ as Ai } from "./TrialChip.vue.es-C_yRujip.mjs";
|
|
11
|
+
import { a as Pi } from "./useService-Bh47bllz.mjs";
|
|
12
|
+
import { c as Di } from "./invoices-DJTwftJv.mjs";
|
|
13
|
+
import { g as xe, b as Bt, e as Ni } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
14
|
+
import { u as Ei, r as Et, e as Ci, d as Ue, f as Me, b as ge, _ as xi, a as Li } from "./formControl-dX7l8o3c.mjs";
|
|
15
|
+
import { o as Ti, u as wi, _ as Si, a as ki } from "./useCustomerFormLabels-CcnkJLcB.mjs";
|
|
16
|
+
import { u as Oi } from "./useWatchDebounced-BHlBPcXB.mjs";
|
|
17
|
+
import { u as zi } from "./usePaymentMethodOptions-Ciifjo6c.mjs";
|
|
18
|
+
import { b as nt, a as ji, d as Ri } from "./subscription-D1yHKUNc.mjs";
|
|
19
|
+
import { a as $i, b as Ut } from "./pricing-DLOeiAIB.mjs";
|
|
20
|
+
import { g as Se, a as Bi, s as Ui } from "./url-TNRgVI8A.mjs";
|
|
21
|
+
import { P as Vi, e as Fi, c as Ct, d as Gi } from "./adyen-CvsH5fok.mjs";
|
|
22
|
+
import { u as Yi } from "./usePortal-H8Tv2TnZ.mjs";
|
|
23
|
+
import { g as Ki } from "./getCountryNameByCode.es-BDHua7VM.mjs";
|
|
24
|
+
import { _ as xt } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
25
|
+
import { _ as _e } from "./Input.vue.es-D9IjIWc-.mjs";
|
|
26
|
+
import { _ as ye } from "./Section.vue.es-D7eiXUbk.mjs";
|
|
27
|
+
import { _ as Hi } from "./Alert.vue.es-lIiAWf2S.mjs";
|
|
28
|
+
import { c as Qi } from "./customer-DKa1B2vp.mjs";
|
|
29
|
+
import { b as Zi, c as Xi, a as Wi, _ as Je } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs";
|
|
30
|
+
import { _ as qi, T as Ji, a as en } from "./TooltipParagraph.vue.es-BXbOJmjr.mjs";
|
|
31
|
+
import { _ as tn } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs";
|
|
32
|
+
import { _ as Lt } from "./Chip.vue.es-CKCOY5T6.mjs";
|
|
33
|
+
import { _ as nn, a as on } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs";
|
|
34
|
+
import { _ as an } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs";
|
|
35
|
+
import { u as Vt } from "./useViewport-BgdA2PPt.mjs";
|
|
36
|
+
import { _ as be } from "./Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs";
|
|
37
|
+
import { _ as rn } from "./DividerText.vue.es-DKl3FnDJ.mjs";
|
|
38
|
+
import { l as Ke } from "./adyenSdk-B01MB9Ia.mjs";
|
|
39
|
+
import { c as ln } from "./payments-aXyfylwk.mjs";
|
|
40
|
+
import { c as sn } from "./paymentFailure-Bh60UhxA.mjs";
|
|
41
|
+
import { C as cn } from "./ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
42
|
+
import { u as un } from "./cn.es-CGa6b2Lt.mjs";
|
|
43
|
+
import { a as dn } from "./sessionReference-3h-6FdrC.mjs";
|
|
44
|
+
const pn = {
|
|
45
45
|
AT: "Austria",
|
|
46
46
|
BE: "Belgium",
|
|
47
47
|
BG: "Bulgaria",
|
|
@@ -70,31 +70,31 @@ const sn = {
|
|
|
70
70
|
SI: "Slovenia",
|
|
71
71
|
SK: "Slovakia"
|
|
72
72
|
};
|
|
73
|
-
function
|
|
74
|
-
return Object.keys(
|
|
73
|
+
function Ft(e) {
|
|
74
|
+
return Object.keys(pn).includes(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Tt(e, i) {
|
|
77
77
|
var n = Object.keys(e);
|
|
78
78
|
if (Object.getOwnPropertySymbols) {
|
|
79
|
-
var
|
|
80
|
-
i && (
|
|
81
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
82
|
-
})), n.push.apply(n,
|
|
79
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
80
|
+
i && (a = a.filter(function(o) {
|
|
81
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
82
|
+
})), n.push.apply(n, a);
|
|
83
83
|
}
|
|
84
84
|
return n;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ze(e) {
|
|
87
87
|
for (var i = 1; i < arguments.length; i++) {
|
|
88
88
|
var n = arguments[i] != null ? arguments[i] : {};
|
|
89
|
-
i % 2 ?
|
|
90
|
-
|
|
91
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
92
|
-
Object.defineProperty(e,
|
|
89
|
+
i % 2 ? Tt(Object(n), !0).forEach(function(a) {
|
|
90
|
+
mn(e, a, n[a]);
|
|
91
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tt(Object(n)).forEach(function(a) {
|
|
92
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function mn(e, i, n) {
|
|
98
98
|
return i in e ? Object.defineProperty(e, i, {
|
|
99
99
|
value: n,
|
|
100
100
|
enumerable: !0,
|
|
@@ -102,85 +102,85 @@ function cn(e, i, n) {
|
|
|
102
102
|
writable: !0
|
|
103
103
|
}) : e[i] = n, e;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ge(e) {
|
|
106
106
|
return typeof e == "function";
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function it(e) {
|
|
109
109
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function He(e) {
|
|
112
|
+
return Ge(e.$validator) ? ze({}, e) : {
|
|
113
113
|
$validator: e
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Gt(e) {
|
|
117
117
|
return typeof e == "object" ? e.$valid : e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Yt(e) {
|
|
120
120
|
return e.$validator || e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
if (!
|
|
124
|
-
if (!
|
|
125
|
-
const n =
|
|
126
|
-
return n.$params =
|
|
122
|
+
function gn(e, i) {
|
|
123
|
+
if (!it(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
|
124
|
+
if (!it(i) && !Ge(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
|
125
|
+
const n = He(i);
|
|
126
|
+
return n.$params = ze(ze({}, n.$params || {}), e), n;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
if (!
|
|
130
|
-
if (!
|
|
131
|
-
const n =
|
|
128
|
+
function yn(e, i) {
|
|
129
|
+
if (!Ge(e) && typeof t(e) != "string") throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);
|
|
130
|
+
if (!it(i) && !Ge(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
|
131
|
+
const n = He(i);
|
|
132
132
|
return n.$message = e, n;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function vn(e) {
|
|
135
135
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
136
|
-
const n =
|
|
137
|
-
return
|
|
136
|
+
const n = He(e);
|
|
137
|
+
return ze(ze({}, n), {}, {
|
|
138
138
|
$async: !0,
|
|
139
139
|
$watchTargets: i
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function fn(e) {
|
|
143
143
|
return {
|
|
144
144
|
$validator(i) {
|
|
145
|
-
for (var n = arguments.length,
|
|
146
|
-
o
|
|
147
|
-
return t(i).reduce((
|
|
148
|
-
const
|
|
149
|
-
let [h,
|
|
150
|
-
const
|
|
151
|
-
let [
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
154
|
-
let B =
|
|
155
|
-
const
|
|
145
|
+
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
146
|
+
a[o - 1] = arguments[o];
|
|
147
|
+
return t(i).reduce((r, u, s) => {
|
|
148
|
+
const d = Object.entries(u).reduce((I, g) => {
|
|
149
|
+
let [h, C] = g;
|
|
150
|
+
const f = e[h] || {}, L = Object.entries(f).reduce((x, v) => {
|
|
151
|
+
let [H, z] = v;
|
|
152
|
+
const E = Yt(z).call(this, C, u, s, ...a), m = Gt(E);
|
|
153
|
+
if (x.$data[H] = E, x.$data.$invalid = !m || !!x.$data.$invalid, x.$data.$error = x.$data.$invalid, !m) {
|
|
154
|
+
let B = z.$message || "";
|
|
155
|
+
const S = z.$params || {};
|
|
156
156
|
typeof B == "function" && (B = B({
|
|
157
157
|
$pending: !1,
|
|
158
|
-
$invalid: !
|
|
159
|
-
$params:
|
|
160
|
-
$model:
|
|
161
|
-
$response:
|
|
162
|
-
})),
|
|
158
|
+
$invalid: !m,
|
|
159
|
+
$params: S,
|
|
160
|
+
$model: C,
|
|
161
|
+
$response: E
|
|
162
|
+
})), x.$errors.push({
|
|
163
163
|
$property: h,
|
|
164
164
|
$message: B,
|
|
165
|
-
$params:
|
|
166
|
-
$response:
|
|
167
|
-
$model:
|
|
165
|
+
$params: S,
|
|
166
|
+
$response: E,
|
|
167
|
+
$model: C,
|
|
168
168
|
$pending: !1,
|
|
169
|
-
$validator:
|
|
169
|
+
$validator: H
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
return {
|
|
173
|
-
$valid:
|
|
174
|
-
$data:
|
|
175
|
-
$errors:
|
|
173
|
+
$valid: x.$valid && m,
|
|
174
|
+
$data: x.$data,
|
|
175
|
+
$errors: x.$errors
|
|
176
176
|
};
|
|
177
177
|
}, {
|
|
178
178
|
$valid: !0,
|
|
179
179
|
$data: {},
|
|
180
180
|
$errors: []
|
|
181
181
|
});
|
|
182
|
-
return I.$data[h] =
|
|
183
|
-
$valid: I.$valid &&
|
|
182
|
+
return I.$data[h] = L.$data, I.$errors[h] = L.$errors, {
|
|
183
|
+
$valid: I.$valid && L.$valid,
|
|
184
184
|
$data: I.$data,
|
|
185
185
|
$errors: I.$errors
|
|
186
186
|
};
|
|
@@ -190,9 +190,9 @@ function mn(e) {
|
|
|
190
190
|
$errors: {}
|
|
191
191
|
});
|
|
192
192
|
return {
|
|
193
|
-
$valid:
|
|
194
|
-
$data:
|
|
195
|
-
$errors:
|
|
193
|
+
$valid: r.$valid && d.$valid,
|
|
194
|
+
$data: r.$data.concat(d.$data),
|
|
195
|
+
$errors: r.$errors.concat(d.$errors)
|
|
196
196
|
};
|
|
197
197
|
}, {
|
|
198
198
|
$valid: !0,
|
|
@@ -204,11 +204,11 @@ function mn(e) {
|
|
|
204
204
|
let {
|
|
205
205
|
$response: n
|
|
206
206
|
} = i;
|
|
207
|
-
return n ? n.$errors.map((
|
|
207
|
+
return n ? n.$errors.map((a) => Object.values(a).map((o) => o.map((r) => r.$message)).reduce((o, r) => o.concat(r), [])) : [];
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const Kt = (e) => {
|
|
212
212
|
if (e = t(e), Array.isArray(e)) return !!e.length;
|
|
213
213
|
if (e == null)
|
|
214
214
|
return !1;
|
|
@@ -221,39 +221,39 @@ const Gt = (e) => {
|
|
|
221
221
|
return !1;
|
|
222
222
|
}
|
|
223
223
|
return !!String(e).length;
|
|
224
|
-
},
|
|
225
|
-
function
|
|
224
|
+
}, _n = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
|
225
|
+
function Pe() {
|
|
226
226
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
227
227
|
i[n] = arguments[n];
|
|
228
|
-
return (
|
|
228
|
+
return (a) => (a = t(a), !Kt(a) || i.every((o) => (o.lastIndex = 0, o.test(a))));
|
|
229
229
|
}
|
|
230
|
-
var
|
|
230
|
+
var hn = /* @__PURE__ */ Object.freeze({
|
|
231
231
|
__proto__: null,
|
|
232
|
-
forEach:
|
|
233
|
-
len:
|
|
234
|
-
normalizeValidatorObject:
|
|
235
|
-
regex:
|
|
236
|
-
req:
|
|
232
|
+
forEach: fn,
|
|
233
|
+
len: _n,
|
|
234
|
+
normalizeValidatorObject: He,
|
|
235
|
+
regex: Pe,
|
|
236
|
+
req: Kt,
|
|
237
237
|
unwrap: t,
|
|
238
|
-
unwrapNormalizedValidator:
|
|
239
|
-
unwrapValidatorResponse:
|
|
240
|
-
withAsync:
|
|
241
|
-
withMessage:
|
|
242
|
-
withParams:
|
|
238
|
+
unwrapNormalizedValidator: Yt,
|
|
239
|
+
unwrapValidatorResponse: Gt,
|
|
240
|
+
withAsync: vn,
|
|
241
|
+
withMessage: yn,
|
|
242
|
+
withParams: gn
|
|
243
243
|
});
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
function
|
|
254
|
-
return !!
|
|
244
|
+
Pe(/^[a-zA-Z]*$/);
|
|
245
|
+
Pe(/^[a-zA-Z0-9]*$/);
|
|
246
|
+
Pe(/^\d*(\.\d+)?$/);
|
|
247
|
+
const Mn = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
|
|
248
|
+
Pe(Mn);
|
|
249
|
+
const bn = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;
|
|
250
|
+
Pe(bn);
|
|
251
|
+
Pe(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
252
|
+
Pe(/^[-]?\d*(\.\d+)?$/);
|
|
253
|
+
function Qe(e) {
|
|
254
|
+
return !!Mi.find((i) => i.key === e);
|
|
255
255
|
}
|
|
256
|
-
const
|
|
256
|
+
const Ht = {
|
|
257
257
|
AT: {
|
|
258
258
|
regex: /^ATU\d{8}$/,
|
|
259
259
|
prefix: "AT",
|
|
@@ -424,55 +424,55 @@ const Yt = {
|
|
|
424
424
|
prefix: "XI",
|
|
425
425
|
example: "XI123456789"
|
|
426
426
|
}
|
|
427
|
-
},
|
|
427
|
+
}, In = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(Ht).some((i) => i.regex.test(e)), An = ({ $model: e }) => {
|
|
428
428
|
if (!e || typeof e != "string" || e.trim() === "")
|
|
429
429
|
return "";
|
|
430
|
-
const i =
|
|
430
|
+
const i = ci(vi, null);
|
|
431
431
|
if (!i)
|
|
432
432
|
return "Invalid tax ID";
|
|
433
|
-
const { formatMessage: n } = i,
|
|
434
|
-
(
|
|
433
|
+
const { formatMessage: n } = i, a = Object.values(Ht).find(
|
|
434
|
+
(o) => e.toUpperCase().startsWith(o.prefix.toUpperCase())
|
|
435
435
|
);
|
|
436
|
-
return
|
|
436
|
+
return a ? n(
|
|
437
437
|
{
|
|
438
438
|
defaultMessage: "Invalid tax ID format. Example: {example}",
|
|
439
439
|
id: "form_validation.tax_id.invalid_format",
|
|
440
440
|
description: "Error message when tax ID format is invalid but prefix matches"
|
|
441
441
|
},
|
|
442
|
-
{ example:
|
|
442
|
+
{ example: a.example }
|
|
443
443
|
) : n({
|
|
444
444
|
defaultMessage: "Invalid tax ID",
|
|
445
445
|
id: "taxId.invalid",
|
|
446
446
|
description: "Error message when tax ID is invalid"
|
|
447
447
|
});
|
|
448
|
-
},
|
|
448
|
+
}, ot = hn.withMessage(An, In), Pn = "preview", Dn = "NL", Qt = (e) => {
|
|
449
449
|
var i, n;
|
|
450
450
|
if ("organization" in e)
|
|
451
451
|
return (i = e.organization) == null ? void 0 : i.registered_address;
|
|
452
452
|
if ("individual" in e)
|
|
453
453
|
return (n = e.individual) == null ? void 0 : n.residential_address;
|
|
454
|
-
},
|
|
455
|
-
const i =
|
|
454
|
+
}, Nn = (e) => {
|
|
455
|
+
const i = Qt(e);
|
|
456
456
|
return {
|
|
457
457
|
...(i == null ? void 0 : i.line1) && { line1: i.line1 },
|
|
458
458
|
...(i == null ? void 0 : i.line2) && { line2: i.line2 },
|
|
459
459
|
...(i == null ? void 0 : i.city) && { city: i.city },
|
|
460
460
|
...(i == null ? void 0 : i.state) && { state: i.state },
|
|
461
|
-
country: (i == null ? void 0 : i.country) ||
|
|
461
|
+
country: (i == null ? void 0 : i.country) || Dn,
|
|
462
462
|
...(i == null ? void 0 : i.postal_code) && { postal_code: i.postal_code }
|
|
463
463
|
};
|
|
464
|
-
},
|
|
465
|
-
var
|
|
466
|
-
const i =
|
|
464
|
+
}, En = (e) => {
|
|
465
|
+
var a, o;
|
|
466
|
+
const i = Nn(e), n = e.type ?? "INDIVIDUAL";
|
|
467
467
|
if (n === "ORGANIZATION") {
|
|
468
|
-
const
|
|
468
|
+
const r = "organization" in e ? e.organization : void 0, u = (o = (a = r == null ? void 0 : r.tax_ids) == null ? void 0 : a[0]) == null ? void 0 : o.id;
|
|
469
469
|
return {
|
|
470
470
|
type: n,
|
|
471
471
|
organization: {
|
|
472
|
-
legal_name: (
|
|
472
|
+
legal_name: (r == null ? void 0 : r.legal_name) || Pn,
|
|
473
473
|
registered_address: i,
|
|
474
|
-
...
|
|
475
|
-
tax_id:
|
|
474
|
+
...u && {
|
|
475
|
+
tax_id: ot.$validator(u, {}, {}) ? u : void 0
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
};
|
|
@@ -483,7 +483,7 @@ const Yt = {
|
|
|
483
483
|
residential_address: i
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
},
|
|
486
|
+
}, Cn = {
|
|
487
487
|
AD: "EUR",
|
|
488
488
|
AE: "AED",
|
|
489
489
|
AF: "AFN",
|
|
@@ -731,123 +731,128 @@ const Yt = {
|
|
|
731
731
|
ZA: "ZAR",
|
|
732
732
|
ZM: "ZMW",
|
|
733
733
|
ZW: "ZWL"
|
|
734
|
-
},
|
|
734
|
+
}, xn = (e) => {
|
|
735
735
|
if (e)
|
|
736
|
-
return
|
|
737
|
-
},
|
|
736
|
+
return Cn[e];
|
|
737
|
+
}, Zt = ({
|
|
738
738
|
country: e,
|
|
739
739
|
pricingCurrencySettings: i,
|
|
740
740
|
fallbackCurrency: n
|
|
741
741
|
}) => {
|
|
742
|
-
const
|
|
743
|
-
return
|
|
744
|
-
},
|
|
745
|
-
const { getInvoicePreview: e } =
|
|
742
|
+
const a = xn(e), o = (i == null ? void 0 : i.pricing_currencies) ?? [];
|
|
743
|
+
return a && o.includes(a) ? a : (i == null ? void 0 : i.default_pricing_currency) ?? n ?? a;
|
|
744
|
+
}, Ln = () => {
|
|
745
|
+
const { getInvoicePreview: e } = Di(), i = Ae(), n = Y(), a = Y(), o = Y(), r = Y({}), u = Y(Ce.Initial), s = Y({}), d = Y(), I = (h) => `${h.type}:${h.value}`;
|
|
746
746
|
return {
|
|
747
747
|
loadInvoicePreview: async ({
|
|
748
748
|
subscription: h,
|
|
749
|
-
subscriptionStartAt:
|
|
750
|
-
customer:
|
|
751
|
-
seatsValues:
|
|
752
|
-
unitsValues:
|
|
749
|
+
subscriptionStartAt: C,
|
|
750
|
+
customer: f = {},
|
|
751
|
+
seatsValues: L,
|
|
752
|
+
unitsValues: x,
|
|
753
753
|
enabledPricingIds: v,
|
|
754
|
-
promotionCode:
|
|
754
|
+
promotionCode: H
|
|
755
755
|
}) => {
|
|
756
|
-
var
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
const
|
|
756
|
+
var c, y, D, T, R, Q;
|
|
757
|
+
const z = En(f);
|
|
758
|
+
u.value = Ce.Loading;
|
|
759
|
+
const A = xe({
|
|
760
760
|
pricingPlanScheduleInfos: h.pricing_plan_schedule_infos,
|
|
761
761
|
type: "DEFAULT"
|
|
762
|
-
}),
|
|
763
|
-
country: (
|
|
764
|
-
pricingCurrencySettings:
|
|
762
|
+
}), E = (c = A == null ? void 0 : A.pricing_plan_version) == null ? void 0 : c.pricing_currency_settings, m = (((y = E == null ? void 0 : E.pricing_currencies) == null ? void 0 : y.length) ?? 0) > 1, B = ((T = (D = A == null ? void 0 : A.pricing_plan_version) == null ? void 0 : D.billing_period_settings) == null ? void 0 : T.billing_periods) ?? [], S = B.length > 1, X = B.length > 0 ? B.map(({ period: F }) => F) : h.billing_period ? [h.billing_period] : [], de = Zt({
|
|
763
|
+
country: (R = Qt(f)) == null ? void 0 : R.country,
|
|
764
|
+
pricingCurrencySettings: E,
|
|
765
765
|
fallbackCurrency: h.billing_currency
|
|
766
766
|
});
|
|
767
|
-
if (!
|
|
767
|
+
if (!X.length) {
|
|
768
768
|
i.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
|
|
769
769
|
subscriptionId: h.id
|
|
770
|
-
}),
|
|
770
|
+
}), u.value = Ce.Done;
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
const
|
|
774
|
-
var
|
|
775
|
-
const
|
|
776
|
-
enabledPricings: v == null ? void 0 : v.map((
|
|
777
|
-
pricing_id:
|
|
773
|
+
const l = h.billing_period ? I(h.billing_period) : I(X[0]), P = X.map(async (F) => {
|
|
774
|
+
var G;
|
|
775
|
+
const ne = I(F), ee = Bt({
|
|
776
|
+
enabledPricings: v == null ? void 0 : v.map((q) => ({
|
|
777
|
+
pricing_id: q
|
|
778
778
|
})),
|
|
779
|
-
seatsValues:
|
|
780
|
-
unitsValues:
|
|
779
|
+
seatsValues: L,
|
|
780
|
+
unitsValues: x,
|
|
781
781
|
pricingPlanScheduleInfos: h.pricing_plan_schedule_infos,
|
|
782
|
-
pricingCurrency:
|
|
783
|
-
billingPeriod:
|
|
782
|
+
pricingCurrency: m ? de : void 0,
|
|
783
|
+
billingPeriod: S ? F : void 0
|
|
784
784
|
}) ?? [];
|
|
785
|
-
if (
|
|
786
|
-
const
|
|
785
|
+
if (H) {
|
|
786
|
+
const q = (G = h.pricing_plan_schedule_infos.find(
|
|
787
787
|
({ pricing_plan_schedule: J }) => J.type === "DEFAULT"
|
|
788
|
-
)) == null ? void 0 :
|
|
789
|
-
if (
|
|
790
|
-
const J =
|
|
791
|
-
({ pricing_plan_schedule_id:
|
|
788
|
+
)) == null ? void 0 : G.id;
|
|
789
|
+
if (q) {
|
|
790
|
+
const J = ee.find(
|
|
791
|
+
({ pricing_plan_schedule_id: ae }) => ae === q
|
|
792
792
|
);
|
|
793
|
-
J ? J.promotion_codes = [
|
|
794
|
-
pricing_plan_schedule_id:
|
|
795
|
-
promotion_codes: [
|
|
793
|
+
J ? J.promotion_codes = [H] : ee.push({
|
|
794
|
+
pricing_plan_schedule_id: q,
|
|
795
|
+
promotion_codes: [H]
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const te = {
|
|
800
800
|
pricingPlanSubscriptionId: h.id,
|
|
801
|
-
startAt:
|
|
802
|
-
customizations:
|
|
803
|
-
customer:
|
|
804
|
-
},
|
|
805
|
-
if (
|
|
806
|
-
return { periodKey:
|
|
807
|
-
|
|
808
|
-
...
|
|
809
|
-
[
|
|
801
|
+
startAt: C,
|
|
802
|
+
customizations: ee,
|
|
803
|
+
customer: z
|
|
804
|
+
}, ie = s.value[ne];
|
|
805
|
+
if (ie && Pi(te, ie))
|
|
806
|
+
return { periodKey: ne, response: void 0 };
|
|
807
|
+
s.value = {
|
|
808
|
+
...s.value,
|
|
809
|
+
[ne]: te
|
|
810
810
|
};
|
|
811
|
-
const
|
|
812
|
-
return { periodKey:
|
|
811
|
+
const oe = await e(te);
|
|
812
|
+
return { periodKey: ne, response: oe };
|
|
813
813
|
});
|
|
814
814
|
try {
|
|
815
|
-
const
|
|
816
|
-
...
|
|
817
|
-
},
|
|
818
|
-
({ pricing_plan_schedule:
|
|
819
|
-
),
|
|
820
|
-
({ pricing_plan_schedule:
|
|
821
|
-
)) == null ? void 0 :
|
|
822
|
-
|
|
815
|
+
const F = {
|
|
816
|
+
...r.value
|
|
817
|
+
}, ne = await Promise.all(P), ee = h.pricing_plan_schedule_infos.find(
|
|
818
|
+
({ pricing_plan_schedule: ie }) => ie.type === "TRIAL"
|
|
819
|
+
), te = (Q = h.pricing_plan_schedule_infos.find(
|
|
820
|
+
({ pricing_plan_schedule: ie }) => ie.type === "DEFAULT"
|
|
821
|
+
)) == null ? void 0 : Q.id;
|
|
822
|
+
ne.forEach(({ periodKey: ie, response: oe }) => {
|
|
823
823
|
var J;
|
|
824
|
-
if (!
|
|
825
|
-
|
|
826
|
-
new Date(
|
|
827
|
-
new Date(
|
|
824
|
+
if (!oe) return;
|
|
825
|
+
d.value = (J = oe.invoice_infos.at(-1)) == null ? void 0 : J.pricing_plan_schedule_id, ee && (a.value = oe.first_invoice, ee.start_at && ee.end_at && (n.value = Ii(
|
|
826
|
+
new Date(ee.start_at),
|
|
827
|
+
new Date(ee.end_at)
|
|
828
828
|
)));
|
|
829
|
-
const
|
|
830
|
-
({ pricing_plan_schedule_id:
|
|
831
|
-
),
|
|
832
|
-
|
|
833
|
-
}),
|
|
834
|
-
} catch (
|
|
835
|
-
throw
|
|
829
|
+
const G = oe.invoice_infos.find(
|
|
830
|
+
({ pricing_plan_schedule_id: ae }) => ae === te
|
|
831
|
+
), q = G == null ? void 0 : G.invoices[0];
|
|
832
|
+
q && (F[ie] = q);
|
|
833
|
+
}), r.value = F, o.value = F[l];
|
|
834
|
+
} catch (F) {
|
|
835
|
+
throw u.value = Ce.Failed, i.error(
|
|
836
|
+
"INVOICE_PREVIEW_FAILED",
|
|
837
|
+
"Failed to load the invoice preview",
|
|
838
|
+
{ preview: "CHECKOUT" },
|
|
839
|
+
F
|
|
840
|
+
), F;
|
|
836
841
|
} finally {
|
|
837
|
-
|
|
842
|
+
u.value = Ce.Done;
|
|
838
843
|
}
|
|
839
844
|
},
|
|
840
|
-
invoicePreview:
|
|
841
|
-
invoicePreviewByBillingPeriod:
|
|
842
|
-
trialInvoicePreview:
|
|
845
|
+
invoicePreview: o,
|
|
846
|
+
invoicePreviewByBillingPeriod: r,
|
|
847
|
+
trialInvoicePreview: a,
|
|
843
848
|
trialPeriod: n,
|
|
844
|
-
lastPreviewScheduleId:
|
|
845
|
-
isPending:
|
|
849
|
+
lastPreviewScheduleId: d,
|
|
850
|
+
isPending: _(() => u.value === Ce.Loading)
|
|
846
851
|
};
|
|
847
|
-
},
|
|
852
|
+
}, wt = ["email", "country"], Xt = "GENERIC_TAX_ID", St = {
|
|
848
853
|
US: ["addressLine1", "postalCode"],
|
|
849
854
|
CA: ["state"]
|
|
850
|
-
},
|
|
855
|
+
}, Tn = (e) => !e || !St[e] ? wt : [...St[e], ...wt], kt = (e) => {
|
|
851
856
|
const i = {
|
|
852
857
|
...e.addressLine1 && { line1: e.addressLine1 },
|
|
853
858
|
...e.addressLine2 && { line2: e.addressLine2 },
|
|
@@ -862,7 +867,7 @@ const Yt = {
|
|
|
862
867
|
legal_name: e.companyLegalName ?? "",
|
|
863
868
|
registered_address: i,
|
|
864
869
|
...e.companyVatNumber && {
|
|
865
|
-
tax_ids: [{ id: e.companyVatNumber, type:
|
|
870
|
+
tax_ids: [{ id: e.companyVatNumber, type: Xt }]
|
|
866
871
|
}
|
|
867
872
|
}
|
|
868
873
|
} : {
|
|
@@ -872,7 +877,7 @@ const Yt = {
|
|
|
872
877
|
}
|
|
873
878
|
};
|
|
874
879
|
};
|
|
875
|
-
function
|
|
880
|
+
function wn() {
|
|
876
881
|
return {
|
|
877
882
|
/**
|
|
878
883
|
* Get geolocation information from the user
|
|
@@ -882,70 +887,70 @@ function Cn() {
|
|
|
882
887
|
}
|
|
883
888
|
};
|
|
884
889
|
}
|
|
885
|
-
function
|
|
890
|
+
function Sn({
|
|
886
891
|
initialState: e,
|
|
887
892
|
onRequiredFieldChange: i
|
|
888
893
|
}) {
|
|
889
|
-
const n = Y(
|
|
890
|
-
const h =
|
|
891
|
-
n.value = h,
|
|
892
|
-
},
|
|
893
|
-
() =>
|
|
894
|
-
),
|
|
894
|
+
const n = Y(Ve(e)), a = Y(Ve(e)), o = (g) => {
|
|
895
|
+
const h = Ve({ ...ui(n.value), ...g });
|
|
896
|
+
n.value = h, a.value = structuredClone(h);
|
|
897
|
+
}, r = _(
|
|
898
|
+
() => Tn(n.value.country)
|
|
899
|
+
), u = (g) => r.value.includes(g), s = Ei(
|
|
895
900
|
{
|
|
896
|
-
email: { required:
|
|
897
|
-
country: { required:
|
|
898
|
-
state: { required:
|
|
899
|
-
addressLine1: { required:
|
|
900
|
-
postalCode: { required:
|
|
901
|
-
companyLegalName:
|
|
902
|
-
companyVatNumber: { taxId:
|
|
901
|
+
email: { required: Et, email: Ci },
|
|
902
|
+
country: { required: Et },
|
|
903
|
+
state: { required: Ue(() => u("state")) },
|
|
904
|
+
addressLine1: { required: Ue(() => u("addressLine1")) },
|
|
905
|
+
postalCode: { required: Ue(() => u("postalCode")) },
|
|
906
|
+
companyLegalName: Ue(n.value.type === "ORGANIZATION"),
|
|
907
|
+
companyVatNumber: { taxId: ot }
|
|
903
908
|
},
|
|
904
909
|
n
|
|
905
|
-
),
|
|
906
|
-
|
|
910
|
+
), d = (g) => {
|
|
911
|
+
g || wn().getGeoLocation().then(({ country: h }) => {
|
|
907
912
|
n.value.country = h;
|
|
908
913
|
});
|
|
909
|
-
}, I = (
|
|
910
|
-
const
|
|
911
|
-
if (
|
|
912
|
-
if (["type", "companyVatNumber"].includes(
|
|
913
|
-
i(
|
|
914
|
+
}, I = (g, h) => {
|
|
915
|
+
const C = Ti({ from: h, to: g }), f = Object.keys(C).find(kn);
|
|
916
|
+
if (f) {
|
|
917
|
+
if (["type", "companyVatNumber"].includes(f)) {
|
|
918
|
+
i(g);
|
|
914
919
|
return;
|
|
915
920
|
}
|
|
916
|
-
if (
|
|
917
|
-
i(
|
|
921
|
+
if (f === "seatsValues") {
|
|
922
|
+
i(g);
|
|
918
923
|
return;
|
|
919
924
|
}
|
|
920
|
-
if (
|
|
921
|
-
i(
|
|
925
|
+
if (f === "unitsValues") {
|
|
926
|
+
i(g);
|
|
922
927
|
return;
|
|
923
928
|
}
|
|
924
|
-
if (
|
|
925
|
-
i(
|
|
929
|
+
if (f === "enabledPricingIds") {
|
|
930
|
+
i(g);
|
|
926
931
|
return;
|
|
927
932
|
}
|
|
928
|
-
if (
|
|
929
|
-
i(
|
|
933
|
+
if (f !== "email" && u(f)) {
|
|
934
|
+
i(g);
|
|
930
935
|
return;
|
|
931
936
|
}
|
|
932
937
|
}
|
|
933
938
|
};
|
|
934
|
-
return
|
|
935
|
-
await
|
|
936
|
-
}),
|
|
939
|
+
return je(async () => {
|
|
940
|
+
await d(e == null ? void 0 : e.country);
|
|
941
|
+
}), Oi(
|
|
937
942
|
() => JSON.parse(JSON.stringify(n.value)),
|
|
938
943
|
I,
|
|
939
944
|
{ debounce: 200 }
|
|
940
945
|
), {
|
|
941
946
|
form: n,
|
|
942
|
-
validation:
|
|
943
|
-
getIsFieldRequired:
|
|
944
|
-
updateInitialState:
|
|
945
|
-
initialState:
|
|
947
|
+
validation: s,
|
|
948
|
+
getIsFieldRequired: u,
|
|
949
|
+
updateInitialState: o,
|
|
950
|
+
initialState: a
|
|
946
951
|
};
|
|
947
952
|
}
|
|
948
|
-
const
|
|
953
|
+
const Ve = (e = {}) => ({
|
|
949
954
|
email: void 0,
|
|
950
955
|
country: void 0,
|
|
951
956
|
type: "INDIVIDUAL",
|
|
@@ -964,277 +969,277 @@ const Be = (e = {}) => ({
|
|
|
964
969
|
enabledPricingIds: void 0,
|
|
965
970
|
...e
|
|
966
971
|
});
|
|
967
|
-
function
|
|
968
|
-
return e in
|
|
972
|
+
function kn(e) {
|
|
973
|
+
return e in Ve();
|
|
969
974
|
}
|
|
970
|
-
function
|
|
971
|
-
const n = i ?? [],
|
|
972
|
-
for (const
|
|
973
|
-
if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(
|
|
974
|
-
const
|
|
975
|
-
if (i != null && i.some((
|
|
975
|
+
function On(e, i = void 0) {
|
|
976
|
+
const n = i ?? [], a = nt(e);
|
|
977
|
+
for (const o of a)
|
|
978
|
+
if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(o.selection_constraint)) {
|
|
979
|
+
const r = o.pricings.map((u) => u.id);
|
|
980
|
+
if (i != null && i.some((u) => r.includes(u)))
|
|
976
981
|
continue;
|
|
977
|
-
n.push(
|
|
982
|
+
n.push(o.pricings[0].id);
|
|
978
983
|
}
|
|
979
984
|
return n;
|
|
980
985
|
}
|
|
981
|
-
function
|
|
982
|
-
return
|
|
986
|
+
function zn(e) {
|
|
987
|
+
return nt(e).some(
|
|
983
988
|
(n) => n.selection_constraint === "EXACTLY_ONE" || n.selection_constraint === "AT_LEAST_ONE"
|
|
984
989
|
);
|
|
985
990
|
}
|
|
986
|
-
function
|
|
987
|
-
const i =
|
|
988
|
-
return i.some((
|
|
991
|
+
function jn(e) {
|
|
992
|
+
const i = $i(e.pricing_plan_schedule_infos), n = nt(e);
|
|
993
|
+
return i.some((a) => a.product_type === "ADDON") || n.some((a) => a.object_type === "ADDON");
|
|
989
994
|
}
|
|
990
|
-
const
|
|
995
|
+
const Ot = (e) => (e ?? []).flatMap(
|
|
991
996
|
(i) => i.configs ?? []
|
|
992
|
-
),
|
|
997
|
+
), Wt = (e) => [
|
|
993
998
|
...e.configs ?? [],
|
|
994
|
-
...
|
|
999
|
+
...Ot(e.billing_period_configs),
|
|
995
1000
|
...(e.pricing_currency_configs ?? []).flatMap((i) => [
|
|
996
1001
|
...i.configs ?? [],
|
|
997
|
-
...
|
|
1002
|
+
...Ot(i.billing_period_configs)
|
|
998
1003
|
])
|
|
999
1004
|
];
|
|
1000
|
-
function
|
|
1005
|
+
function ur({
|
|
1001
1006
|
pricings: e,
|
|
1002
1007
|
pricingItemConfigId: i
|
|
1003
1008
|
}) {
|
|
1004
|
-
var
|
|
1005
|
-
const n = e.flatMap((
|
|
1006
|
-
var
|
|
1007
|
-
return (
|
|
1008
|
-
}),
|
|
1009
|
+
var r, u;
|
|
1010
|
+
const n = e.flatMap((s) => s.items ?? []).find((s) => {
|
|
1011
|
+
var d;
|
|
1012
|
+
return (d = s.configs) == null ? void 0 : d.some((I) => I.id === i);
|
|
1013
|
+
}), a = (r = n == null ? void 0 : n.configs) == null ? void 0 : r.find((s) => s.id === i), o = (u = n == null ? void 0 : n.product_items) == null ? void 0 : u[0];
|
|
1009
1014
|
return {
|
|
1010
|
-
config:
|
|
1011
|
-
productItem:
|
|
1015
|
+
config: a,
|
|
1016
|
+
productItem: o
|
|
1012
1017
|
};
|
|
1013
1018
|
}
|
|
1014
|
-
const
|
|
1015
|
-
function
|
|
1016
|
-
const i =
|
|
1019
|
+
const Rn = "1";
|
|
1020
|
+
function $n(e) {
|
|
1021
|
+
const i = Ut(e).flatMap((n) => n.items ?? []).flatMap(Wt);
|
|
1017
1022
|
return new Map(
|
|
1018
1023
|
i.flatMap(
|
|
1019
1024
|
(n) => {
|
|
1020
|
-
var
|
|
1021
|
-
return (
|
|
1025
|
+
var a;
|
|
1026
|
+
return (a = n.default_seats_value) != null && a.number ? [[n.id, n.default_seats_value.number]] : [];
|
|
1022
1027
|
}
|
|
1023
1028
|
)
|
|
1024
1029
|
);
|
|
1025
1030
|
}
|
|
1026
|
-
function
|
|
1027
|
-
var
|
|
1028
|
-
const i = (
|
|
1031
|
+
function Bn(e) {
|
|
1032
|
+
var a;
|
|
1033
|
+
const i = (a = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : a.seats_values;
|
|
1029
1034
|
if (!e || !(i != null && i.length))
|
|
1030
1035
|
return;
|
|
1031
|
-
const n = e.pricing_plan_version ?
|
|
1032
|
-
return i.map(({ pricing_item_config_id:
|
|
1033
|
-
pricing_item_config_id:
|
|
1034
|
-
number:
|
|
1036
|
+
const n = e.pricing_plan_version ? $n(e) : /* @__PURE__ */ new Map();
|
|
1037
|
+
return i.map(({ pricing_item_config_id: o, number: r }) => ({
|
|
1038
|
+
pricing_item_config_id: o,
|
|
1039
|
+
number: r || n.get(o) || Rn
|
|
1035
1040
|
}));
|
|
1036
1041
|
}
|
|
1037
|
-
const
|
|
1038
|
-
function
|
|
1039
|
-
const i =
|
|
1042
|
+
const Un = "1";
|
|
1043
|
+
function Vn(e) {
|
|
1044
|
+
const i = Ut(e).flatMap((n) => n.items ?? []).flatMap(Wt);
|
|
1040
1045
|
return new Map(
|
|
1041
1046
|
i.flatMap(
|
|
1042
1047
|
(n) => {
|
|
1043
|
-
var
|
|
1044
|
-
return (
|
|
1048
|
+
var a;
|
|
1049
|
+
return (a = n.default_units) != null && a.number ? [[n.id, n.default_units.number]] : [];
|
|
1045
1050
|
}
|
|
1046
1051
|
)
|
|
1047
1052
|
);
|
|
1048
1053
|
}
|
|
1049
|
-
function
|
|
1050
|
-
var
|
|
1051
|
-
const i = (
|
|
1054
|
+
function Fn(e) {
|
|
1055
|
+
var a;
|
|
1056
|
+
const i = (a = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : a.units;
|
|
1052
1057
|
if (!e || !(i != null && i.length))
|
|
1053
1058
|
return;
|
|
1054
|
-
const n = e.pricing_plan_version ?
|
|
1055
|
-
return i.map(({ pricing_item_config_id:
|
|
1056
|
-
pricing_item_config_id:
|
|
1057
|
-
number:
|
|
1059
|
+
const n = e.pricing_plan_version ? Vn(e) : /* @__PURE__ */ new Map();
|
|
1060
|
+
return i.map(({ pricing_item_config_id: o, number: r }) => ({
|
|
1061
|
+
pricing_item_config_id: o,
|
|
1062
|
+
number: r || n.get(o) || Un
|
|
1058
1063
|
}));
|
|
1059
1064
|
}
|
|
1060
|
-
const
|
|
1061
|
-
function
|
|
1065
|
+
const et = "solvimon_checkout_redirect_state";
|
|
1066
|
+
function Gn({
|
|
1062
1067
|
initialCountry: e,
|
|
1063
1068
|
initialEmail: i,
|
|
1064
1069
|
subscriptionId: n,
|
|
1065
|
-
enabledPricingIds:
|
|
1070
|
+
enabledPricingIds: a
|
|
1066
1071
|
}) {
|
|
1067
|
-
const
|
|
1072
|
+
const o = Ae(), r = (() => {
|
|
1068
1073
|
if (e) {
|
|
1069
|
-
if (
|
|
1070
|
-
|
|
1074
|
+
if (Qe(e)) return e;
|
|
1075
|
+
o.error("INVALID_COUNTRY_CODE", `invalid country code provided: "${e}"`);
|
|
1071
1076
|
}
|
|
1072
|
-
})(),
|
|
1077
|
+
})(), u = (() => {
|
|
1073
1078
|
if (i) {
|
|
1074
1079
|
if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)) return i;
|
|
1075
|
-
|
|
1080
|
+
o.error("INVALID_EMAIL", `invalid email provided: "${i}"`);
|
|
1076
1081
|
}
|
|
1077
|
-
})(),
|
|
1078
|
-
paymentMethodOptions:
|
|
1079
|
-
get:
|
|
1080
|
-
isPending:
|
|
1081
|
-
error:
|
|
1082
|
-
} =
|
|
1082
|
+
})(), s = Y(!1), d = Y(), { getSubscription: I } = bi(), g = Ln(), h = _(() => d.value && m.form.value.country && X.value), {
|
|
1083
|
+
paymentMethodOptions: C,
|
|
1084
|
+
get: f,
|
|
1085
|
+
isPending: L,
|
|
1086
|
+
error: x
|
|
1087
|
+
} = zi(), v = async (l, P) => {
|
|
1083
1088
|
try {
|
|
1084
|
-
await
|
|
1085
|
-
subscriptionId:
|
|
1086
|
-
country:
|
|
1087
|
-
amount:
|
|
1089
|
+
await f({
|
|
1090
|
+
subscriptionId: d.value.id,
|
|
1091
|
+
country: l,
|
|
1092
|
+
amount: P
|
|
1088
1093
|
});
|
|
1089
1094
|
} catch {
|
|
1090
|
-
|
|
1095
|
+
o.error(
|
|
1091
1096
|
"PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
|
|
1092
|
-
"Failed to load the payment methods
|
|
1093
|
-
{},
|
|
1094
|
-
|
|
1097
|
+
"Failed to load the payment methods that can be offered",
|
|
1098
|
+
{ flow: "CHECKOUT" },
|
|
1099
|
+
x.value
|
|
1095
1100
|
);
|
|
1096
1101
|
}
|
|
1097
|
-
},
|
|
1098
|
-
const { country:
|
|
1099
|
-
!
|
|
1100
|
-
},
|
|
1101
|
-
const
|
|
1102
|
-
return
|
|
1103
|
-
subscription:
|
|
1104
|
-
customer:
|
|
1105
|
-
seatsValues:
|
|
1106
|
-
unitsValues:
|
|
1107
|
-
enabledPricingIds:
|
|
1108
|
-
promotionCode:
|
|
1102
|
+
}, H = _(() => x.value !== null), z = () => {
|
|
1103
|
+
const { country: l } = m.form.value;
|
|
1104
|
+
!d.value || !l || !X.value || v(l, X.value);
|
|
1105
|
+
}, A = () => {
|
|
1106
|
+
const l = m.form.value;
|
|
1107
|
+
return g.loadInvoicePreview({
|
|
1108
|
+
subscription: d.value,
|
|
1109
|
+
customer: kt(l),
|
|
1110
|
+
seatsValues: l.seatsValues,
|
|
1111
|
+
unitsValues: l.unitsValues,
|
|
1112
|
+
enabledPricingIds: l.enabledPricingIds ?? a,
|
|
1113
|
+
promotionCode: l.promotionCode
|
|
1109
1114
|
});
|
|
1110
|
-
},
|
|
1111
|
-
const
|
|
1112
|
-
return await
|
|
1113
|
-
subscription:
|
|
1114
|
-
customer:
|
|
1115
|
-
seatsValues:
|
|
1116
|
-
unitsValues:
|
|
1117
|
-
enabledPricingIds:
|
|
1118
|
-
promotionCode:
|
|
1115
|
+
}, E = async (l) => {
|
|
1116
|
+
const P = l.promotionCode ?? m.form.value.promotionCode, c = l.enabledPricingIds ?? m.form.value.enabledPricingIds, y = { ...m.form.value, ...l };
|
|
1117
|
+
return await g.loadInvoicePreview({
|
|
1118
|
+
subscription: d.value,
|
|
1119
|
+
customer: kt(y),
|
|
1120
|
+
seatsValues: y.seatsValues,
|
|
1121
|
+
unitsValues: y.unitsValues,
|
|
1122
|
+
enabledPricingIds: c,
|
|
1123
|
+
promotionCode: P
|
|
1119
1124
|
}), {
|
|
1120
|
-
trialInvoicePreview:
|
|
1121
|
-
invoicePreview:
|
|
1125
|
+
trialInvoicePreview: g.trialInvoicePreview.value,
|
|
1126
|
+
invoicePreview: g.invoicePreview.value
|
|
1122
1127
|
};
|
|
1123
|
-
},
|
|
1128
|
+
}, m = Sn({
|
|
1124
1129
|
initialState: {
|
|
1125
|
-
country:
|
|
1126
|
-
email:
|
|
1130
|
+
country: r,
|
|
1131
|
+
email: u
|
|
1127
1132
|
},
|
|
1128
1133
|
onRequiredFieldChange: () => {
|
|
1129
|
-
|
|
1134
|
+
d.value && A().catch(() => {
|
|
1130
1135
|
});
|
|
1131
1136
|
}
|
|
1132
1137
|
}), B = async () => {
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1138
|
+
var T, R, Q, F;
|
|
1139
|
+
const l = await I({
|
|
1135
1140
|
id: n,
|
|
1136
1141
|
expanded: !0
|
|
1137
|
-
}),
|
|
1138
|
-
pricingPlanScheduleInfos:
|
|
1142
|
+
}), P = xe({
|
|
1143
|
+
pricingPlanScheduleInfos: l.pricing_plan_schedule_infos,
|
|
1139
1144
|
type: "DEFAULT"
|
|
1140
|
-
}),
|
|
1141
|
-
|
|
1142
|
-
...
|
|
1143
|
-
billing_period:
|
|
1145
|
+
}), c = (F = (Q = (R = (T = P == null ? void 0 : P.pricing_plan_version) == null ? void 0 : T.billing_period_settings) == null ? void 0 : R.billing_periods) == null ? void 0 : Q[0]) == null ? void 0 : F.period;
|
|
1146
|
+
d.value = {
|
|
1147
|
+
...l,
|
|
1148
|
+
billing_period: c ?? l.billing_period
|
|
1144
1149
|
};
|
|
1145
|
-
const
|
|
1146
|
-
|
|
1147
|
-
...
|
|
1148
|
-
enabledPricingIds:
|
|
1149
|
-
...
|
|
1150
|
-
...
|
|
1150
|
+
const y = Bn(P), D = Fn(P);
|
|
1151
|
+
m.updateInitialState({
|
|
1152
|
+
...m.form.value,
|
|
1153
|
+
enabledPricingIds: On(l, a),
|
|
1154
|
+
...y ? { seatsValues: y } : {},
|
|
1155
|
+
...D ? { unitsValues: D } : {}
|
|
1151
1156
|
});
|
|
1152
|
-
},
|
|
1153
|
-
var te, ie,
|
|
1154
|
-
const
|
|
1155
|
-
...
|
|
1156
|
-
...
|
|
1157
|
-
...
|
|
1158
|
-
} : {},
|
|
1159
|
-
...
|
|
1160
|
-
line1:
|
|
1157
|
+
}, S = _(() => {
|
|
1158
|
+
var ee, te, ie, oe, G, q, J, ae, ce;
|
|
1159
|
+
const l = m.form.value.firstName || m.form.value.infix || m.form.value.lastName ? {
|
|
1160
|
+
...m.form.value.firstName ? { first_name: m.form.value.firstName } : {},
|
|
1161
|
+
...m.form.value.infix ? { infix: m.form.value.infix } : {},
|
|
1162
|
+
...m.form.value.lastName ? { last_name: m.form.value.lastName } : {}
|
|
1163
|
+
} : {}, P = {
|
|
1164
|
+
...m.form.value.addressLine1 && {
|
|
1165
|
+
line1: m.form.value.addressLine1
|
|
1161
1166
|
},
|
|
1162
|
-
...
|
|
1163
|
-
line2:
|
|
1167
|
+
...m.form.value.addressLine2 && {
|
|
1168
|
+
line2: m.form.value.addressLine2
|
|
1164
1169
|
},
|
|
1165
|
-
...
|
|
1166
|
-
...
|
|
1167
|
-
postal_code:
|
|
1170
|
+
...m.form.value.city && { city: m.form.value.city },
|
|
1171
|
+
...m.form.value.postalCode && {
|
|
1172
|
+
postal_code: m.form.value.postalCode
|
|
1168
1173
|
},
|
|
1169
|
-
...
|
|
1170
|
-
country:
|
|
1171
|
-
},
|
|
1172
|
-
pricingPlanScheduleInfos: ((
|
|
1174
|
+
...m.form.value.state && { state: m.form.value.state },
|
|
1175
|
+
country: m.form.value.country ?? ""
|
|
1176
|
+
}, c = xe({
|
|
1177
|
+
pricingPlanScheduleInfos: ((ee = d.value) == null ? void 0 : ee.pricing_plan_schedule_infos) ?? [],
|
|
1173
1178
|
type: "DEFAULT"
|
|
1174
|
-
}),
|
|
1175
|
-
enabledPricings: (
|
|
1176
|
-
pricing_id:
|
|
1179
|
+
}), y = (te = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : te.pricing_currency_settings, D = (((ie = y == null ? void 0 : y.pricing_currencies) == null ? void 0 : ie.length) ?? 0) > 1, R = (((G = (oe = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : oe.billing_period_settings) == null ? void 0 : G.billing_periods) ?? []).length > 1, Q = Bt({
|
|
1180
|
+
enabledPricings: (q = m.form.value.enabledPricingIds) == null ? void 0 : q.map((ue) => ({
|
|
1181
|
+
pricing_id: ue
|
|
1177
1182
|
})),
|
|
1178
|
-
seatsValues:
|
|
1179
|
-
unitsValues:
|
|
1180
|
-
pricingPlanScheduleInfos: ((J =
|
|
1181
|
-
pricingCurrency:
|
|
1182
|
-
billingPeriod:
|
|
1183
|
-
}),
|
|
1184
|
-
var
|
|
1185
|
-
const
|
|
1186
|
-
pricingPlanScheduleInfos: ((
|
|
1183
|
+
seatsValues: m.form.value.seatsValues,
|
|
1184
|
+
unitsValues: m.form.value.unitsValues,
|
|
1185
|
+
pricingPlanScheduleInfos: ((J = d.value) == null ? void 0 : J.pricing_plan_schedule_infos) ?? [],
|
|
1186
|
+
pricingCurrency: D ? (ae = d.value) == null ? void 0 : ae.billing_currency : void 0,
|
|
1187
|
+
billingPeriod: R ? (ce = d.value) == null ? void 0 : ce.billing_period : void 0
|
|
1188
|
+
}), F = m.form.value.promotionCode, ne = F && d.value ? (() => {
|
|
1189
|
+
var Le, Te, Re;
|
|
1190
|
+
const ue = Q ? [...Q] : [], ve = ((Le = ue[0]) == null ? void 0 : Le.pricing_plan_schedule_id) ?? ((Re = xe({
|
|
1191
|
+
pricingPlanScheduleInfos: ((Te = d.value) == null ? void 0 : Te.pricing_plan_schedule_infos) ?? [],
|
|
1187
1192
|
type: "DEFAULT"
|
|
1188
|
-
})) == null ? void 0 :
|
|
1189
|
-
if (!
|
|
1190
|
-
return
|
|
1191
|
-
const
|
|
1192
|
-
({ pricing_plan_schedule_id:
|
|
1193
|
+
})) == null ? void 0 : Re.id);
|
|
1194
|
+
if (!ve)
|
|
1195
|
+
return Q;
|
|
1196
|
+
const fe = ue.find(
|
|
1197
|
+
({ pricing_plan_schedule_id: re }) => re === ve
|
|
1193
1198
|
);
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1199
|
+
if (fe)
|
|
1200
|
+
fe.promotion_codes = [F];
|
|
1196
1201
|
else {
|
|
1197
|
-
const
|
|
1198
|
-
|
|
1199
|
-
pricing_plan_schedule_id:
|
|
1200
|
-
...(
|
|
1201
|
-
enabled_pricings:
|
|
1202
|
+
const re = Q == null ? void 0 : Q[0];
|
|
1203
|
+
ue.push({
|
|
1204
|
+
pricing_plan_schedule_id: ve,
|
|
1205
|
+
...(re == null ? void 0 : re.enabled_pricings) && {
|
|
1206
|
+
enabled_pricings: re.enabled_pricings
|
|
1202
1207
|
},
|
|
1203
|
-
...(
|
|
1204
|
-
seats_values:
|
|
1208
|
+
...(re == null ? void 0 : re.seats_values) && {
|
|
1209
|
+
seats_values: re.seats_values
|
|
1205
1210
|
},
|
|
1206
|
-
...(
|
|
1207
|
-
units:
|
|
1211
|
+
...(re == null ? void 0 : re.units) && {
|
|
1212
|
+
units: re.units
|
|
1208
1213
|
},
|
|
1209
|
-
promotion_codes: [
|
|
1214
|
+
promotion_codes: [F]
|
|
1210
1215
|
});
|
|
1211
1216
|
}
|
|
1212
|
-
return
|
|
1213
|
-
})() :
|
|
1217
|
+
return ue;
|
|
1218
|
+
})() : Q;
|
|
1214
1219
|
return {
|
|
1215
1220
|
type: "INIT_PRICING_PLAN_SUBSCRIPTION",
|
|
1216
1221
|
init_pricing_plan_subscription: {
|
|
1217
1222
|
template_pricing_plan_subscription_id: n,
|
|
1218
|
-
...
|
|
1219
|
-
pricing_plan_schedule_customizations:
|
|
1223
|
+
...ne && {
|
|
1224
|
+
pricing_plan_schedule_customizations: ne
|
|
1220
1225
|
},
|
|
1221
1226
|
customer_details: {
|
|
1222
|
-
email:
|
|
1223
|
-
type:
|
|
1224
|
-
...
|
|
1227
|
+
email: m.form.value.email ?? "",
|
|
1228
|
+
type: m.form.value.type,
|
|
1229
|
+
...m.form.value.type === "INDIVIDUAL" ? {
|
|
1225
1230
|
individual: {
|
|
1226
|
-
residential_address:
|
|
1227
|
-
...
|
|
1231
|
+
residential_address: P,
|
|
1232
|
+
...l ? { name: l } : {}
|
|
1228
1233
|
}
|
|
1229
1234
|
} : {
|
|
1230
1235
|
organization: {
|
|
1231
|
-
registered_address:
|
|
1232
|
-
legal_name:
|
|
1233
|
-
...
|
|
1236
|
+
registered_address: P,
|
|
1237
|
+
legal_name: m.form.value.companyLegalName ?? "",
|
|
1238
|
+
...m.form.value.companyVatNumber && ot.$validator(m.form.value.companyVatNumber, {}, {}) ? {
|
|
1234
1239
|
tax_ids: [
|
|
1235
1240
|
{
|
|
1236
|
-
id:
|
|
1237
|
-
type:
|
|
1241
|
+
id: m.form.value.companyVatNumber,
|
|
1242
|
+
type: Xt
|
|
1238
1243
|
}
|
|
1239
1244
|
]
|
|
1240
1245
|
} : {}
|
|
@@ -1243,148 +1248,148 @@ function Bn({
|
|
|
1243
1248
|
}
|
|
1244
1249
|
}
|
|
1245
1250
|
};
|
|
1246
|
-
}),
|
|
1247
|
-
var
|
|
1248
|
-
return ((
|
|
1251
|
+
}), X = _(() => {
|
|
1252
|
+
var l, P;
|
|
1253
|
+
return ((l = g.trialInvoicePreview.value) == null ? void 0 : l.invoice_amount_including_tax) ?? ((P = g.invoicePreview.value) == null ? void 0 : P.invoice_amount_including_tax);
|
|
1249
1254
|
});
|
|
1250
|
-
|
|
1251
|
-
[() =>
|
|
1252
|
-
([
|
|
1253
|
-
!
|
|
1255
|
+
Oe(
|
|
1256
|
+
[() => m.form.value.country, X],
|
|
1257
|
+
([l, P]) => {
|
|
1258
|
+
!d.value || !l || !P || v(l, P);
|
|
1254
1259
|
}
|
|
1255
1260
|
);
|
|
1256
|
-
function
|
|
1257
|
-
sessionStorage.setItem(
|
|
1261
|
+
function de() {
|
|
1262
|
+
sessionStorage.setItem(et, JSON.stringify(m.form.value));
|
|
1258
1263
|
}
|
|
1259
|
-
return
|
|
1260
|
-
const
|
|
1261
|
-
|
|
1262
|
-
const
|
|
1263
|
-
let
|
|
1264
|
-
if (
|
|
1264
|
+
return je(async () => {
|
|
1265
|
+
const l = Se("redirect_status"), P = !!Se(Vi), c = !!Se("payment_intent_client_secret") || !!Se("setup_intent_client_secret");
|
|
1266
|
+
l === "succeeded" && P && c && (s.value = !0);
|
|
1267
|
+
const D = sessionStorage.getItem(et);
|
|
1268
|
+
let T = null;
|
|
1269
|
+
if (D)
|
|
1265
1270
|
try {
|
|
1266
|
-
|
|
1271
|
+
T = JSON.parse(D);
|
|
1267
1272
|
} catch {
|
|
1268
1273
|
}
|
|
1269
|
-
|
|
1274
|
+
T && m.updateInitialState(T);
|
|
1270
1275
|
try {
|
|
1271
1276
|
await B();
|
|
1272
|
-
} catch (
|
|
1273
|
-
throw
|
|
1277
|
+
} catch (R) {
|
|
1278
|
+
throw o.error(
|
|
1274
1279
|
"SUBSCRIPTION_LOAD_FAILED",
|
|
1275
1280
|
"Failed to load the subscription the checkout prices",
|
|
1276
1281
|
{},
|
|
1277
|
-
|
|
1278
|
-
),
|
|
1282
|
+
R
|
|
1283
|
+
), R;
|
|
1279
1284
|
}
|
|
1280
1285
|
try {
|
|
1281
|
-
await
|
|
1286
|
+
await A();
|
|
1282
1287
|
} catch {
|
|
1283
1288
|
}
|
|
1284
|
-
|
|
1285
|
-
}),
|
|
1289
|
+
T && (m.updateInitialState(T), sessionStorage.removeItem(et));
|
|
1290
|
+
}), Oe(
|
|
1286
1291
|
h,
|
|
1287
|
-
(
|
|
1288
|
-
|
|
1292
|
+
(l) => {
|
|
1293
|
+
l && z();
|
|
1289
1294
|
},
|
|
1290
1295
|
{ once: !0 }
|
|
1291
1296
|
), {
|
|
1292
1297
|
/** What the host configured, once anything unusable has been dropped and reported. */
|
|
1293
|
-
validatedEmail:
|
|
1294
|
-
validatedCountry:
|
|
1295
|
-
invoicePreview:
|
|
1296
|
-
invoicePreviewByBillingPeriod:
|
|
1297
|
-
trialInvoicePreview:
|
|
1298
|
-
trialPeriod:
|
|
1299
|
-
loadInvoicePreview:
|
|
1300
|
-
updateInvoicePreviewOnBillingInformationChange:
|
|
1301
|
-
lastPreviewScheduleId:
|
|
1302
|
-
paymentMethodOptions:
|
|
1303
|
-
hasPaymentMethodOptionsError:
|
|
1304
|
-
retryPaymentMethodOptions:
|
|
1305
|
-
isPaymentMethodsPending:
|
|
1306
|
-
isInvoicePreviewPending:
|
|
1307
|
-
subscription:
|
|
1308
|
-
checkoutForm:
|
|
1309
|
-
authorizationContext:
|
|
1310
|
-
isPaid:
|
|
1311
|
-
amount:
|
|
1312
|
-
saveFormStateForRedirect:
|
|
1298
|
+
validatedEmail: u,
|
|
1299
|
+
validatedCountry: r,
|
|
1300
|
+
invoicePreview: g.invoicePreview,
|
|
1301
|
+
invoicePreviewByBillingPeriod: g.invoicePreviewByBillingPeriod,
|
|
1302
|
+
trialInvoicePreview: g.trialInvoicePreview,
|
|
1303
|
+
trialPeriod: g.trialPeriod,
|
|
1304
|
+
loadInvoicePreview: A,
|
|
1305
|
+
updateInvoicePreviewOnBillingInformationChange: E,
|
|
1306
|
+
lastPreviewScheduleId: g.lastPreviewScheduleId,
|
|
1307
|
+
paymentMethodOptions: C,
|
|
1308
|
+
hasPaymentMethodOptionsError: H,
|
|
1309
|
+
retryPaymentMethodOptions: z,
|
|
1310
|
+
isPaymentMethodsPending: L,
|
|
1311
|
+
isInvoicePreviewPending: g.isPending,
|
|
1312
|
+
subscription: d,
|
|
1313
|
+
checkoutForm: m,
|
|
1314
|
+
authorizationContext: S,
|
|
1315
|
+
isPaid: s,
|
|
1316
|
+
amount: X,
|
|
1317
|
+
saveFormStateForRedirect: de
|
|
1313
1318
|
};
|
|
1314
1319
|
}
|
|
1315
|
-
function
|
|
1320
|
+
function Yn({
|
|
1316
1321
|
checkoutForm: e,
|
|
1317
1322
|
updateInvoicePreviewOnBillingInformationChange: i,
|
|
1318
1323
|
formatErrorMessage: n,
|
|
1319
|
-
onInvalidPromotionCode:
|
|
1320
|
-
onApplyError:
|
|
1324
|
+
onInvalidPromotionCode: a,
|
|
1325
|
+
onApplyError: o
|
|
1321
1326
|
}) {
|
|
1322
|
-
const
|
|
1323
|
-
|
|
1324
|
-
}, I = (
|
|
1325
|
-
const
|
|
1326
|
-
if (
|
|
1327
|
-
|
|
1327
|
+
const r = Ae(), u = Y(!1), s = Y(null), d = (C, f) => {
|
|
1328
|
+
s.value = n ? n({ action: C, error: f }) : C === "apply" ? "Promotion code could not be applied. Please try again." : "Promotion code could not be removed. Please try again.";
|
|
1329
|
+
}, I = (C) => Kn(C) && C.field === "promotion_codes", g = async (C) => {
|
|
1330
|
+
const f = C == null ? void 0 : C.trim();
|
|
1331
|
+
if (f) {
|
|
1332
|
+
s.value = null, e.form.value.promotionCode = f, u.value = !0;
|
|
1328
1333
|
try {
|
|
1329
1334
|
await i({
|
|
1330
|
-
promotionCode:
|
|
1335
|
+
promotionCode: f
|
|
1331
1336
|
});
|
|
1332
|
-
} catch (
|
|
1333
|
-
|
|
1337
|
+
} catch (L) {
|
|
1338
|
+
r.capture(L, {
|
|
1334
1339
|
code: "PROMOTION_CODE_APPLY_FAILED",
|
|
1335
1340
|
message: "Failed to apply promotion code"
|
|
1336
|
-
}),
|
|
1341
|
+
}), d("apply", L), o == null || o(), I(L) && (a == null || a()), await h({ suppressError: !0, preserveErrorMessage: !0 });
|
|
1337
1342
|
} finally {
|
|
1338
|
-
|
|
1343
|
+
u.value = !1;
|
|
1339
1344
|
}
|
|
1340
1345
|
}
|
|
1341
1346
|
}, h = async ({
|
|
1342
|
-
suppressError:
|
|
1343
|
-
preserveErrorMessage:
|
|
1347
|
+
suppressError: C = !1,
|
|
1348
|
+
preserveErrorMessage: f = !1
|
|
1344
1349
|
} = {}) => {
|
|
1345
|
-
|
|
1350
|
+
f || (s.value = null), delete e.form.value.promotionCode, u.value = !0;
|
|
1346
1351
|
try {
|
|
1347
1352
|
await i({});
|
|
1348
|
-
} catch (
|
|
1349
|
-
|
|
1353
|
+
} catch (L) {
|
|
1354
|
+
r.capture(L, {
|
|
1350
1355
|
code: "PROMOTION_CODE_REMOVE_FAILED",
|
|
1351
1356
|
message: "Failed to remove promotion code"
|
|
1352
|
-
}),
|
|
1357
|
+
}), C || d("remove", L);
|
|
1353
1358
|
} finally {
|
|
1354
|
-
|
|
1359
|
+
u.value = !1;
|
|
1355
1360
|
}
|
|
1356
1361
|
};
|
|
1357
1362
|
return {
|
|
1358
|
-
applyPromotionCode:
|
|
1363
|
+
applyPromotionCode: g,
|
|
1359
1364
|
removePromotionCode: h,
|
|
1360
|
-
isPromotionCodePending:
|
|
1361
|
-
promotionCodeErrorMessage:
|
|
1365
|
+
isPromotionCodePending: u,
|
|
1366
|
+
promotionCodeErrorMessage: s
|
|
1362
1367
|
};
|
|
1363
1368
|
}
|
|
1364
|
-
function
|
|
1369
|
+
function Kn(e) {
|
|
1365
1370
|
return typeof e == "object" && e !== null && "field" in e;
|
|
1366
1371
|
}
|
|
1367
|
-
function
|
|
1372
|
+
function Hn({
|
|
1368
1373
|
subscription: e,
|
|
1369
1374
|
promotionCode: i,
|
|
1370
1375
|
appliedPromotionCode: n,
|
|
1371
|
-
applyPromotionCode:
|
|
1376
|
+
applyPromotionCode: a
|
|
1372
1377
|
}) {
|
|
1373
|
-
|
|
1378
|
+
Oe(
|
|
1374
1379
|
e,
|
|
1375
|
-
(
|
|
1376
|
-
|
|
1380
|
+
(o) => {
|
|
1381
|
+
o && i && (n.value = i, a(i));
|
|
1377
1382
|
},
|
|
1378
1383
|
{ once: !0 }
|
|
1379
1384
|
);
|
|
1380
1385
|
}
|
|
1381
|
-
const
|
|
1386
|
+
const Qn = { class: "flex items-center gap-2" }, Zn = /* @__PURE__ */ se({
|
|
1382
1387
|
__name: "TaxIDCheckNotice",
|
|
1383
1388
|
props: {
|
|
1384
1389
|
taxIdValidationResult: { type: Object }
|
|
1385
1390
|
},
|
|
1386
1391
|
setup(e) {
|
|
1387
|
-
const i = e, { formatMessage: n } =
|
|
1392
|
+
const i = e, { formatMessage: n } = he(), a = _(() => i.taxIdValidationResult.valid === "VALID"), o = _(() => a.value ? n({
|
|
1388
1393
|
defaultMessage: "VAT number is valid.",
|
|
1389
1394
|
id: "tax_check.valid_vat_number",
|
|
1390
1395
|
description: "The message shown when the VAT number is valid"
|
|
@@ -1393,15 +1398,15 @@ const Gn = { class: "flex items-center gap-2" }, Yn = /* @__PURE__ */ ce({
|
|
|
1393
1398
|
id: "tax_check.invalid_vat_number",
|
|
1394
1399
|
description: "The message shown when the VAT number is invalid"
|
|
1395
1400
|
}));
|
|
1396
|
-
return (
|
|
1397
|
-
type:
|
|
1401
|
+
return (r, u) => (p(), O(t(Hi), {
|
|
1402
|
+
type: a.value ? "success" : "danger",
|
|
1398
1403
|
icon: !1
|
|
1399
1404
|
}, {
|
|
1400
1405
|
default: b(() => [
|
|
1401
|
-
|
|
1402
|
-
|
|
1406
|
+
w("div", Qn, [
|
|
1407
|
+
M(t(le), { variant: "body-xs" }, {
|
|
1403
1408
|
default: b(() => [
|
|
1404
|
-
|
|
1409
|
+
K(V(o.value), 1)
|
|
1405
1410
|
]),
|
|
1406
1411
|
_: 1
|
|
1407
1412
|
})
|
|
@@ -1411,46 +1416,46 @@ const Gn = { class: "flex items-center gap-2" }, Yn = /* @__PURE__ */ ce({
|
|
|
1411
1416
|
}, 8, ["type"]));
|
|
1412
1417
|
}
|
|
1413
1418
|
});
|
|
1414
|
-
function
|
|
1415
|
-
const { checkTaxID: i } =
|
|
1419
|
+
function Xn(e) {
|
|
1420
|
+
const { checkTaxID: i } = Qi(), n = Y(void 0), a = _(() => {
|
|
1416
1421
|
var h;
|
|
1417
1422
|
return ((h = e.value.companyVatNumber) == null ? void 0 : h.trim()) ?? "";
|
|
1418
|
-
}),
|
|
1419
|
-
() => !!(
|
|
1420
|
-
), I =
|
|
1421
|
-
async function
|
|
1423
|
+
}), o = _(() => e.value.companyLegalName ?? ""), r = _(() => e.value.country), u = Y(!1), s = _(() => Ft(r.value ?? "")), d = _(
|
|
1424
|
+
() => !!(a.value && o.value && r.value)
|
|
1425
|
+
), I = _(() => s.value && a.value);
|
|
1426
|
+
async function g() {
|
|
1422
1427
|
var h;
|
|
1423
|
-
if (!(!
|
|
1424
|
-
|
|
1428
|
+
if (!(!d.value || !s.value || !r.value)) {
|
|
1429
|
+
u.value = !0;
|
|
1425
1430
|
try {
|
|
1426
|
-
const
|
|
1431
|
+
const C = await i({
|
|
1427
1432
|
type: "ORGANIZATION",
|
|
1428
1433
|
organization: {
|
|
1429
|
-
legal_name:
|
|
1430
|
-
tax_ids: [{ id:
|
|
1434
|
+
legal_name: o.value,
|
|
1435
|
+
tax_ids: [{ id: a.value, type: "GENERIC_TAX_ID" }],
|
|
1431
1436
|
registered_address: {
|
|
1432
|
-
country:
|
|
1437
|
+
country: r.value
|
|
1433
1438
|
}
|
|
1434
1439
|
}
|
|
1435
1440
|
});
|
|
1436
|
-
(h =
|
|
1441
|
+
(h = C == null ? void 0 : C.data) != null && h.length ? n.value = C.data[0] : n.value = void 0;
|
|
1437
1442
|
} finally {
|
|
1438
|
-
|
|
1443
|
+
u.value = !1;
|
|
1439
1444
|
}
|
|
1440
1445
|
}
|
|
1441
1446
|
}
|
|
1442
1447
|
return {
|
|
1443
|
-
runTaxIDCheck:
|
|
1448
|
+
runTaxIDCheck: g,
|
|
1444
1449
|
taxIdValidationData: n,
|
|
1445
|
-
isTaxIDCheckPending:
|
|
1446
|
-
isTaxIDCheckEnabled:
|
|
1450
|
+
isTaxIDCheckPending: u,
|
|
1451
|
+
isTaxIDCheckEnabled: d,
|
|
1447
1452
|
showViesCheckNotice: I,
|
|
1448
|
-
isSelectedCountryEU:
|
|
1453
|
+
isSelectedCountryEU: s
|
|
1449
1454
|
};
|
|
1450
1455
|
}
|
|
1451
|
-
const
|
|
1456
|
+
const Wn = { class: "grid grid-cols-1 gap-1" }, qn = { class: "grid grid-cols-1 gap-2" }, Jn = { key: 0 }, eo = { class: "mt-2 flex flex-col gap-3" }, to = { class: "grid grid-cols-3 gap-2" }, io = { key: 0 }, no = { class: "mt-4 grid grid-cols-1 gap-3" }, oo = "checkout-form", ao = /* @__PURE__ */ se({
|
|
1452
1457
|
__name: "CheckoutForm",
|
|
1453
|
-
props: /* @__PURE__ */
|
|
1458
|
+
props: /* @__PURE__ */ At({
|
|
1454
1459
|
validation: { type: null },
|
|
1455
1460
|
initialState: { type: Object },
|
|
1456
1461
|
readOnlyEmail: { type: String },
|
|
@@ -1462,224 +1467,234 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1462
1467
|
modelValue: { required: !0 },
|
|
1463
1468
|
modelModifiers: {}
|
|
1464
1469
|
}),
|
|
1465
|
-
emits: /* @__PURE__ */
|
|
1470
|
+
emits: /* @__PURE__ */ At(["submit"], ["update:modelValue"]),
|
|
1466
1471
|
setup(e) {
|
|
1467
|
-
const i =
|
|
1472
|
+
const i = (z) => Qe(z), n = e, a = Y(!1), o = di(e, "modelValue"), r = _({
|
|
1468
1473
|
get: () => o.value.type === "ORGANIZATION",
|
|
1469
|
-
set: (
|
|
1470
|
-
o.value.type =
|
|
1474
|
+
set: (z) => {
|
|
1475
|
+
o.value.type = z ? "ORGANIZATION" : "INDIVIDUAL";
|
|
1471
1476
|
}
|
|
1472
|
-
}),
|
|
1477
|
+
}), u = _(() => o.value.type === "ORGANIZATION"), s = pi({
|
|
1478
|
+
email: Me(o, "email", ge),
|
|
1479
|
+
addressLine1: Me(o, "addressLine1", ge),
|
|
1480
|
+
addressLine2: Me(o, "addressLine2", ge),
|
|
1481
|
+
postalCode: Me(o, "postalCode", ge),
|
|
1482
|
+
city: Me(o, "city", ge),
|
|
1483
|
+
state: Me(o, "state", ge),
|
|
1484
|
+
companyLegalName: Me(o, "companyLegalName", ge),
|
|
1485
|
+
companyVatNumber: Me(o, "companyVatNumber", ge)
|
|
1486
|
+
}), d = _({
|
|
1473
1487
|
get: () => o.value.country,
|
|
1474
|
-
set: (
|
|
1475
|
-
|
|
1488
|
+
set: (z) => {
|
|
1489
|
+
const A = ge(z);
|
|
1490
|
+
o.value.country = A !== void 0 && i(A) ? A : void 0;
|
|
1476
1491
|
}
|
|
1477
|
-
}),
|
|
1492
|
+
}), I = _(() => o.value.country !== "US"), { isTaxIDCheckEnabled: g, isTaxIDCheckPending: h, taxIdValidationData: C, runTaxIDCheck: f } = Xn(o), { $t: L } = he(), x = wi(), v = (z) => n.getIsFieldRequired(z) ? "" : " " + L({
|
|
1478
1493
|
defaultMessage: "(optional)",
|
|
1479
1494
|
id: "checkout.optional_suffix.label",
|
|
1480
1495
|
description: "The suffix for optional fields in the checkout form"
|
|
1481
|
-
}),
|
|
1482
|
-
() => o.value.country ?
|
|
1496
|
+
}), H = _(
|
|
1497
|
+
() => o.value.country ? Ki(o.value.country) : void 0
|
|
1483
1498
|
);
|
|
1484
|
-
return (
|
|
1485
|
-
id:
|
|
1486
|
-
onSubmit:
|
|
1499
|
+
return (z, A) => (p(), $("form", {
|
|
1500
|
+
id: oo,
|
|
1501
|
+
onSubmit: A[12] || (A[12] = Fe((E) => z.$emit("submit", o.value), ["prevent"]))
|
|
1487
1502
|
}, [
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
title: t(
|
|
1503
|
+
w("div", Wn, [
|
|
1504
|
+
M(t(ye), {
|
|
1505
|
+
title: t(x).contactInformationTitle
|
|
1491
1506
|
}, {
|
|
1492
1507
|
default: b(() => [
|
|
1493
|
-
|
|
1494
|
-
e.readOnly ? (
|
|
1495
|
-
|
|
1508
|
+
w("div", qn, [
|
|
1509
|
+
e.readOnly ? (p(), $(me, { key: 0 }, [
|
|
1510
|
+
M(t(le), {
|
|
1496
1511
|
variant: "body",
|
|
1497
1512
|
tag: "span",
|
|
1498
1513
|
weight: "semibold",
|
|
1499
1514
|
"no-spacing": ""
|
|
1500
1515
|
}, {
|
|
1501
1516
|
default: b(() => [
|
|
1502
|
-
|
|
1517
|
+
K(V(o.value.email), 1)
|
|
1503
1518
|
]),
|
|
1504
1519
|
_: 1
|
|
1505
1520
|
}),
|
|
1506
|
-
|
|
1521
|
+
M(t(le), {
|
|
1507
1522
|
variant: "body-sm",
|
|
1508
1523
|
tag: "span",
|
|
1509
1524
|
color: "subtle",
|
|
1510
1525
|
"no-spacing": ""
|
|
1511
1526
|
}, {
|
|
1512
1527
|
default: b(() => [
|
|
1513
|
-
|
|
1528
|
+
K(V(H.value), 1)
|
|
1514
1529
|
]),
|
|
1515
1530
|
_: 1
|
|
1516
1531
|
})
|
|
1517
|
-
], 64)) : (
|
|
1518
|
-
|
|
1519
|
-
modelValue:
|
|
1520
|
-
"onUpdate:modelValue":
|
|
1532
|
+
], 64)) : (p(), $(me, { key: 1 }, [
|
|
1533
|
+
M(t(_e), {
|
|
1534
|
+
modelValue: s.email,
|
|
1535
|
+
"onUpdate:modelValue": A[0] || (A[0] = (E) => s.email = E),
|
|
1521
1536
|
required: "",
|
|
1522
1537
|
type: "email",
|
|
1523
1538
|
name: "email",
|
|
1524
1539
|
disabled: !!e.readOnlyEmail,
|
|
1525
|
-
label: t(
|
|
1526
|
-
placeholder: t(
|
|
1540
|
+
label: t(x).emailLabel,
|
|
1541
|
+
placeholder: t(x).emailPlaceholder + v("email"),
|
|
1527
1542
|
error: e.validation.value.email.$errors
|
|
1528
1543
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
|
|
1529
|
-
|
|
1530
|
-
"single-model-value":
|
|
1531
|
-
"onUpdate:singleModelValue":
|
|
1544
|
+
M(t(Si), {
|
|
1545
|
+
"single-model-value": d.value,
|
|
1546
|
+
"onUpdate:singleModelValue": A[3] || (A[3] = (E) => d.value = E),
|
|
1532
1547
|
required: "",
|
|
1533
1548
|
name: "country",
|
|
1534
|
-
label: t(
|
|
1549
|
+
label: t(x).countryLabel + v("country"),
|
|
1535
1550
|
error: e.validation.value.country.$errors
|
|
1536
1551
|
}, {
|
|
1537
1552
|
"label-suffix": b(() => [
|
|
1538
|
-
!
|
|
1553
|
+
!a.value && !e.isBillingInformationMandatory ? (p(), O(t(Ne), {
|
|
1539
1554
|
key: 0,
|
|
1540
1555
|
size: "xs",
|
|
1541
1556
|
intent: "subtle",
|
|
1542
1557
|
"icon-prefix": "add",
|
|
1543
1558
|
class: "py-0.5",
|
|
1544
|
-
onClick:
|
|
1559
|
+
onClick: A[1] || (A[1] = (E) => a.value = !0)
|
|
1545
1560
|
}, {
|
|
1546
1561
|
default: b(() => [
|
|
1547
|
-
|
|
1562
|
+
K(V(t(L)({
|
|
1548
1563
|
defaultMessage: "More billing details",
|
|
1549
1564
|
description: "Label of the button in the checkout that lets you fill out all billing details",
|
|
1550
1565
|
id: "checkout.billing_details.add_billing_details_button.label"
|
|
1551
1566
|
})), 1)
|
|
1552
1567
|
]),
|
|
1553
1568
|
_: 1
|
|
1554
|
-
})) :
|
|
1555
|
-
|
|
1569
|
+
})) : U("", !0),
|
|
1570
|
+
a.value && !e.isBillingInformationMandatory ? (p(), O(t(Ne), {
|
|
1556
1571
|
key: 1,
|
|
1557
1572
|
size: "sm",
|
|
1558
1573
|
intent: "subtle",
|
|
1559
1574
|
"icon-prefix": "close",
|
|
1560
1575
|
class: "py-0.5",
|
|
1561
|
-
onClick:
|
|
1576
|
+
onClick: A[2] || (A[2] = (E) => a.value = !1)
|
|
1562
1577
|
}, {
|
|
1563
1578
|
default: b(() => [
|
|
1564
|
-
|
|
1579
|
+
K(V(t(L)({
|
|
1565
1580
|
defaultMessage: "Remove billing details",
|
|
1566
1581
|
id: "checkout.billing_details.remove_billing_details_button.label",
|
|
1567
1582
|
description: "Label of the button in the checkout that lets you remove the billing details"
|
|
1568
1583
|
})), 1)
|
|
1569
1584
|
]),
|
|
1570
1585
|
_: 1
|
|
1571
|
-
})) :
|
|
1586
|
+
})) : U("", !0)
|
|
1572
1587
|
]),
|
|
1573
1588
|
_: 1
|
|
1574
1589
|
}, 8, ["single-model-value", "label", "error"])
|
|
1575
1590
|
], 64))
|
|
1576
1591
|
]),
|
|
1577
|
-
|
|
1578
|
-
"is-open":
|
|
1592
|
+
M(t(xt), {
|
|
1593
|
+
"is-open": a.value || !!e.isBillingInformationMandatory
|
|
1579
1594
|
}, {
|
|
1580
1595
|
default: b(() => [
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
modelValue:
|
|
1585
|
-
"onUpdate:modelValue":
|
|
1596
|
+
a.value || e.isBillingInformationMandatory ? (p(), $("div", Jn, [
|
|
1597
|
+
w("div", eo, [
|
|
1598
|
+
M(t(_e), {
|
|
1599
|
+
modelValue: s.addressLine1,
|
|
1600
|
+
"onUpdate:modelValue": A[4] || (A[4] = (E) => s.addressLine1 = E),
|
|
1586
1601
|
name: "address_line_1",
|
|
1587
|
-
label: t(
|
|
1602
|
+
label: t(L)({
|
|
1588
1603
|
defaultMessage: "Billing address",
|
|
1589
1604
|
id: "checkout.address.title",
|
|
1590
1605
|
description: "Address line 1 of the customer address in the checkout form"
|
|
1591
1606
|
}),
|
|
1592
|
-
placeholder: t(
|
|
1607
|
+
placeholder: t(L)({
|
|
1593
1608
|
defaultMessage: "Address line 1...",
|
|
1594
1609
|
id: "checkout.address.line1.placeholder",
|
|
1595
1610
|
description: "Address line 1 of the customer address in the checkout form"
|
|
1596
|
-
}) +
|
|
1611
|
+
}) + v("addressLine1"),
|
|
1597
1612
|
required: "",
|
|
1598
1613
|
error: e.validation.value.addressLine1.$errors
|
|
1599
1614
|
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
1600
|
-
|
|
1601
|
-
modelValue:
|
|
1602
|
-
"onUpdate:modelValue":
|
|
1615
|
+
M(t(_e), {
|
|
1616
|
+
modelValue: s.addressLine2,
|
|
1617
|
+
"onUpdate:modelValue": A[5] || (A[5] = (E) => s.addressLine2 = E),
|
|
1603
1618
|
name: "address_line_2",
|
|
1604
|
-
placeholder: t(
|
|
1619
|
+
placeholder: t(L)({
|
|
1605
1620
|
defaultMessage: "Address line 2...",
|
|
1606
1621
|
id: "checkout.address.line2.placeholder",
|
|
1607
1622
|
description: "Address line 2 of the customer address in the checkout form"
|
|
1608
|
-
}) +
|
|
1623
|
+
}) + v("addressLine2")
|
|
1609
1624
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
modelValue:
|
|
1613
|
-
"onUpdate:modelValue":
|
|
1625
|
+
w("div", to, [
|
|
1626
|
+
M(t(_e), {
|
|
1627
|
+
modelValue: s.postalCode,
|
|
1628
|
+
"onUpdate:modelValue": A[6] || (A[6] = (E) => s.postalCode = E),
|
|
1614
1629
|
name: "postal_code",
|
|
1615
|
-
placeholder: t(
|
|
1630
|
+
placeholder: t(x).postalCodePlaceholder + v("postalCode"),
|
|
1616
1631
|
error: e.validation.value.addressLine1.$errors
|
|
1617
1632
|
}, null, 8, ["modelValue", "placeholder", "error"]),
|
|
1618
|
-
|
|
1619
|
-
modelValue:
|
|
1620
|
-
"onUpdate:modelValue":
|
|
1633
|
+
M(t(_e), {
|
|
1634
|
+
modelValue: s.city,
|
|
1635
|
+
"onUpdate:modelValue": A[7] || (A[7] = (E) => s.city = E),
|
|
1621
1636
|
name: "city",
|
|
1622
|
-
placeholder: t(
|
|
1637
|
+
placeholder: t(x).cityPlaceholder + v("city")
|
|
1623
1638
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1624
|
-
|
|
1625
|
-
modelValue:
|
|
1626
|
-
"onUpdate:modelValue":
|
|
1639
|
+
M(t(_e), {
|
|
1640
|
+
modelValue: s.state,
|
|
1641
|
+
"onUpdate:modelValue": A[8] || (A[8] = (E) => s.state = E),
|
|
1627
1642
|
name: "state",
|
|
1628
|
-
placeholder: t(
|
|
1643
|
+
placeholder: t(x).statePlaceholder + v("state"),
|
|
1629
1644
|
error: e.validation.value.state.$errors
|
|
1630
1645
|
}, null, 8, ["modelValue", "placeholder", "error"])
|
|
1631
1646
|
])
|
|
1632
1647
|
])
|
|
1633
|
-
])) :
|
|
1648
|
+
])) : U("", !0)
|
|
1634
1649
|
]),
|
|
1635
1650
|
_: 1
|
|
1636
1651
|
}, 8, ["is-open"])
|
|
1637
1652
|
]),
|
|
1638
1653
|
_: 1
|
|
1639
1654
|
}, 8, ["title"]),
|
|
1640
|
-
e.readOnly ?
|
|
1655
|
+
e.readOnly ? U("", !0) : (p(), O(t(ye), { key: 0 }, {
|
|
1641
1656
|
default: b(() => [
|
|
1642
|
-
|
|
1643
|
-
modelValue:
|
|
1644
|
-
"onUpdate:modelValue":
|
|
1657
|
+
M(ki, {
|
|
1658
|
+
modelValue: r.value,
|
|
1659
|
+
"onUpdate:modelValue": A[9] || (A[9] = (E) => r.value = E),
|
|
1645
1660
|
"no-spacing": "",
|
|
1646
1661
|
class: "!flex"
|
|
1647
1662
|
}, null, 8, ["modelValue"]),
|
|
1648
|
-
|
|
1663
|
+
M(t(xt), { "is-open": u.value }, {
|
|
1649
1664
|
default: b(() => [
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
modelValue:
|
|
1654
|
-
"onUpdate:modelValue":
|
|
1665
|
+
u.value ? (p(), $("div", io, [
|
|
1666
|
+
w("div", no, [
|
|
1667
|
+
M(t(_e), {
|
|
1668
|
+
modelValue: s.companyLegalName,
|
|
1669
|
+
"onUpdate:modelValue": A[10] || (A[10] = (E) => s.companyLegalName = E),
|
|
1655
1670
|
required: "",
|
|
1656
1671
|
name: "legal_name",
|
|
1657
|
-
label: t(
|
|
1658
|
-
placeholder: t(
|
|
1672
|
+
label: t(x).legalNameLabel,
|
|
1673
|
+
placeholder: t(x).legalNamePlaceholder
|
|
1659
1674
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1660
|
-
|
|
1675
|
+
I.value ? (p(), O(t(_e), {
|
|
1661
1676
|
key: 0,
|
|
1662
|
-
modelValue:
|
|
1663
|
-
"onUpdate:modelValue":
|
|
1677
|
+
modelValue: s.companyVatNumber,
|
|
1678
|
+
"onUpdate:modelValue": A[11] || (A[11] = (E) => s.companyVatNumber = E),
|
|
1664
1679
|
name: "vat_number",
|
|
1665
1680
|
"input-class": "focus:outline-none focus:ring-0",
|
|
1666
|
-
label: t(
|
|
1667
|
-
placeholder: t(
|
|
1681
|
+
label: t(x).vatNumberLabel,
|
|
1682
|
+
placeholder: t(x).vatNumberPlaceholder,
|
|
1668
1683
|
error: e.validation.value.companyVatNumber.$errors,
|
|
1669
1684
|
"suffix-class": "px-2 border-l-0"
|
|
1670
|
-
},
|
|
1671
|
-
t(
|
|
1685
|
+
}, Ye({ _: 2 }, [
|
|
1686
|
+
t(Ft)(o.value.country ?? "") ? {
|
|
1672
1687
|
name: "suffix",
|
|
1673
1688
|
fn: b(() => [
|
|
1674
|
-
|
|
1689
|
+
M(t(Ne), {
|
|
1675
1690
|
type: "button",
|
|
1676
1691
|
size: "sm",
|
|
1677
1692
|
intent: "secondary",
|
|
1678
|
-
disabled: !t(
|
|
1679
|
-
onClick: t(
|
|
1693
|
+
disabled: !t(g) || t(h) || e.validation.value.companyVatNumber.$invalid,
|
|
1694
|
+
onClick: t(f)
|
|
1680
1695
|
}, {
|
|
1681
1696
|
default: b(() => [
|
|
1682
|
-
|
|
1697
|
+
K(V(t(L)({
|
|
1683
1698
|
defaultMessage: "Check",
|
|
1684
1699
|
id: "checkout.vat_number.check_button.label",
|
|
1685
1700
|
description: "The label for the check button in the checkout form"
|
|
@@ -1690,15 +1705,15 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1690
1705
|
]),
|
|
1691
1706
|
key: "0"
|
|
1692
1707
|
} : void 0
|
|
1693
|
-
]), 1032, ["modelValue", "label", "placeholder", "error"])) :
|
|
1694
|
-
t(
|
|
1708
|
+
]), 1032, ["modelValue", "label", "placeholder", "error"])) : U("", !0),
|
|
1709
|
+
t(C) ? (p(), $("div", {
|
|
1695
1710
|
key: 1,
|
|
1696
|
-
class:
|
|
1711
|
+
class: Ie({ "opacity-75": t(h) })
|
|
1697
1712
|
}, [
|
|
1698
|
-
|
|
1699
|
-
], 2)) :
|
|
1713
|
+
M(Zn, { "tax-id-validation-result": t(C) }, null, 8, ["tax-id-validation-result"])
|
|
1714
|
+
], 2)) : U("", !0)
|
|
1700
1715
|
])
|
|
1701
|
-
])) :
|
|
1716
|
+
])) : U("", !0)
|
|
1702
1717
|
]),
|
|
1703
1718
|
_: 1
|
|
1704
1719
|
}, 8, ["is-open"])
|
|
@@ -1708,10 +1723,10 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1708
1723
|
])
|
|
1709
1724
|
], 32));
|
|
1710
1725
|
}
|
|
1711
|
-
}),
|
|
1726
|
+
}), ro = {
|
|
1712
1727
|
key: 0,
|
|
1713
1728
|
class: "flex items-center"
|
|
1714
|
-
},
|
|
1729
|
+
}, lo = ["innerHTML"], so = ["innerHTML"], co = /* @__PURE__ */ se({
|
|
1715
1730
|
__name: "CheckoutTitle",
|
|
1716
1731
|
props: {
|
|
1717
1732
|
trialPeriod: { type: Object },
|
|
@@ -1723,36 +1738,36 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1723
1738
|
subscriptionStartDate: { type: Date }
|
|
1724
1739
|
},
|
|
1725
1740
|
setup(e) {
|
|
1726
|
-
const { $t: i } =
|
|
1727
|
-
return (n,
|
|
1728
|
-
|
|
1729
|
-
|
|
1741
|
+
const { $t: i } = he();
|
|
1742
|
+
return (n, a) => (p(), $("div", null, [
|
|
1743
|
+
w("div", null, [
|
|
1744
|
+
M(t(le), {
|
|
1730
1745
|
variant: "heading-1",
|
|
1731
1746
|
class: "inline-block"
|
|
1732
1747
|
}, {
|
|
1733
1748
|
default: b(() => [
|
|
1734
|
-
|
|
1749
|
+
K(V(e.trialStartDate ? e.subscriptionName : t(i)({
|
|
1735
1750
|
defaultMessage: "Pay and subscribe",
|
|
1736
1751
|
id: "checkout.page_title",
|
|
1737
1752
|
description: "The title of the checkout page"
|
|
1738
|
-
})) +
|
|
1739
|
-
e.trialPeriod ? (
|
|
1753
|
+
})) + V(" "), 1),
|
|
1754
|
+
e.trialPeriod ? (p(), O(t(Ai), {
|
|
1740
1755
|
key: 0,
|
|
1741
1756
|
"trial-period": e.trialPeriod,
|
|
1742
1757
|
size: "lg",
|
|
1743
1758
|
class: "-translate-y-0.5"
|
|
1744
|
-
}, null, 8, ["trial-period"])) :
|
|
1759
|
+
}, null, 8, ["trial-period"])) : U("", !0)
|
|
1745
1760
|
]),
|
|
1746
1761
|
_: 1
|
|
1747
1762
|
})
|
|
1748
1763
|
]),
|
|
1749
|
-
|
|
1764
|
+
M(t(le), {
|
|
1750
1765
|
variant: "body-sm",
|
|
1751
1766
|
color: "subtle",
|
|
1752
1767
|
"no-spacing": ""
|
|
1753
1768
|
}, {
|
|
1754
1769
|
default: b(() => [
|
|
1755
|
-
e.countryCode ? (
|
|
1770
|
+
e.countryCode ? (p(), $("span", {
|
|
1756
1771
|
key: 1,
|
|
1757
1772
|
innerHTML: e.trialStartDate ? t(i)(
|
|
1758
1773
|
{
|
|
@@ -1761,15 +1776,15 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1761
1776
|
description: "The description of the trial period"
|
|
1762
1777
|
},
|
|
1763
1778
|
{
|
|
1764
|
-
price: t(
|
|
1779
|
+
price: t(De)(e.amount),
|
|
1765
1780
|
// @ts-expect-error formatjs does not support this type yet
|
|
1766
1781
|
startDate: e.subscriptionStartDate,
|
|
1767
|
-
period_name: t(
|
|
1782
|
+
period_name: t($e)(e.billingPeriod, {
|
|
1768
1783
|
short: !0,
|
|
1769
1784
|
hideValueForExactPeriods: !0
|
|
1770
1785
|
}),
|
|
1771
1786
|
// @ts-ignore
|
|
1772
|
-
strong: (
|
|
1787
|
+
strong: (o) => `<strong>${o}</strong>`
|
|
1773
1788
|
}
|
|
1774
1789
|
) : t(i)(
|
|
1775
1790
|
{
|
|
@@ -1778,23 +1793,23 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1778
1793
|
description: "The description of the subscription"
|
|
1779
1794
|
},
|
|
1780
1795
|
{
|
|
1781
|
-
price: t(
|
|
1782
|
-
period_name: t(
|
|
1796
|
+
price: t(De)(e.amount),
|
|
1797
|
+
period_name: t($e)(e.billingPeriod, {
|
|
1783
1798
|
short: !0,
|
|
1784
1799
|
hideValueForExactPeriods: !0
|
|
1785
1800
|
}),
|
|
1786
1801
|
// @ts-ignore
|
|
1787
|
-
strong: (
|
|
1802
|
+
strong: (o) => `<strong>${o}</strong>`
|
|
1788
1803
|
}
|
|
1789
1804
|
)
|
|
1790
|
-
}, null, 8,
|
|
1791
|
-
|
|
1805
|
+
}, null, 8, so)) : (p(), $("span", ro, [
|
|
1806
|
+
M(t(qi), { "is-dark-mode": "" }, {
|
|
1792
1807
|
tooltip: b(() => [
|
|
1793
|
-
|
|
1808
|
+
M(t(Ji), null, {
|
|
1794
1809
|
default: b(() => [
|
|
1795
|
-
|
|
1810
|
+
M(t(en), null, {
|
|
1796
1811
|
default: b(() => [
|
|
1797
|
-
|
|
1812
|
+
K(V(t(i)({
|
|
1798
1813
|
defaultMessage: "Will be determined by billing information",
|
|
1799
1814
|
description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
|
|
1800
1815
|
id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
|
|
@@ -1807,7 +1822,7 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1807
1822
|
})
|
|
1808
1823
|
]),
|
|
1809
1824
|
default: b(() => [
|
|
1810
|
-
|
|
1825
|
+
M(t(Zi), {
|
|
1811
1826
|
"width-class": "w-10",
|
|
1812
1827
|
"height-class": "h-4",
|
|
1813
1828
|
shade: "darker",
|
|
@@ -1816,7 +1831,7 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1816
1831
|
]),
|
|
1817
1832
|
_: 1
|
|
1818
1833
|
}),
|
|
1819
|
-
|
|
1834
|
+
w("span", {
|
|
1820
1835
|
innerHTML: e.trialStartDate ? t(i)(
|
|
1821
1836
|
{
|
|
1822
1837
|
defaultMessage: "per {period_name} starting, {startDate, date, long}",
|
|
@@ -1826,7 +1841,7 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1826
1841
|
{
|
|
1827
1842
|
// @ts-expect-error formatjs does not support this type yet
|
|
1828
1843
|
startDate: e.subscriptionStartDate,
|
|
1829
|
-
period_name: t(
|
|
1844
|
+
period_name: t($e)(e.billingPeriod, {
|
|
1830
1845
|
short: !0,
|
|
1831
1846
|
hideValueForExactPeriods: !0
|
|
1832
1847
|
})
|
|
@@ -1838,44 +1853,44 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1838
1853
|
description: "The description of the subscription, while the price is still being determined"
|
|
1839
1854
|
},
|
|
1840
1855
|
{
|
|
1841
|
-
period_name: t(
|
|
1856
|
+
period_name: t($e)(e.billingPeriod, {
|
|
1842
1857
|
short: !0,
|
|
1843
1858
|
hideValueForExactPeriods: !0
|
|
1844
1859
|
})
|
|
1845
1860
|
}
|
|
1846
1861
|
)
|
|
1847
|
-
}, null, 8,
|
|
1862
|
+
}, null, 8, lo)
|
|
1848
1863
|
]))
|
|
1849
1864
|
]),
|
|
1850
1865
|
_: 1
|
|
1851
1866
|
})
|
|
1852
1867
|
]));
|
|
1853
1868
|
}
|
|
1854
|
-
}),
|
|
1869
|
+
}), uo = (e) => {
|
|
1855
1870
|
var i;
|
|
1856
1871
|
return ((i = e.periods) == null ? void 0 : i.some(
|
|
1857
1872
|
(n) => n.groups.some(
|
|
1858
|
-
(
|
|
1859
|
-
var
|
|
1860
|
-
return (
|
|
1861
|
-
(
|
|
1862
|
-
(
|
|
1873
|
+
(a) => {
|
|
1874
|
+
var o;
|
|
1875
|
+
return (o = a.lines) == null ? void 0 : o.some(
|
|
1876
|
+
(r) => r.product_items.some(
|
|
1877
|
+
(u) => u.model_type === "USAGE_BASED"
|
|
1863
1878
|
)
|
|
1864
1879
|
);
|
|
1865
1880
|
}
|
|
1866
1881
|
)
|
|
1867
1882
|
)) ?? !1;
|
|
1868
|
-
},
|
|
1883
|
+
}, po = { class: "flex min-h-96 w-full items-center justify-center" }, mo = { class: "max-w-sm" }, go = /* @__PURE__ */ se({
|
|
1869
1884
|
__name: "CheckoutNotAvailable",
|
|
1870
1885
|
setup(e) {
|
|
1871
|
-
const { $t: i } =
|
|
1886
|
+
const { $t: i } = he(), n = () => {
|
|
1872
1887
|
window.location.reload();
|
|
1873
1888
|
};
|
|
1874
|
-
return (
|
|
1875
|
-
|
|
1876
|
-
|
|
1889
|
+
return (a, o) => (p(), $("div", po, [
|
|
1890
|
+
w("div", mo, [
|
|
1891
|
+
M(t(le), { variant: "heading-1" }, {
|
|
1877
1892
|
default: b(() => [
|
|
1878
|
-
|
|
1893
|
+
K(V(t(i)({
|
|
1879
1894
|
defaultMessage: "Checkout not available",
|
|
1880
1895
|
id: "checkout.not_available.title",
|
|
1881
1896
|
description: "The title of the checkout not available page"
|
|
@@ -1883,26 +1898,26 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1883
1898
|
]),
|
|
1884
1899
|
_: 1
|
|
1885
1900
|
}),
|
|
1886
|
-
|
|
1901
|
+
M(t(le), {
|
|
1887
1902
|
variant: "body-sm",
|
|
1888
1903
|
color: "subtle"
|
|
1889
1904
|
}, {
|
|
1890
1905
|
default: b(() => [
|
|
1891
|
-
|
|
1906
|
+
K(V(t(i)({
|
|
1892
1907
|
defaultMessage: "The checkout is currently not available.",
|
|
1893
1908
|
id: "checkout.not_available.description",
|
|
1894
1909
|
description: "The description of the checkout not available page"
|
|
1895
1910
|
})) + " ", 1),
|
|
1896
|
-
|
|
1911
|
+
w("a", {
|
|
1897
1912
|
href: "#",
|
|
1898
1913
|
class: "text-primary-900 hover:underline",
|
|
1899
|
-
onClick:
|
|
1900
|
-
},
|
|
1914
|
+
onClick: Fe(n, ["prevent"])
|
|
1915
|
+
}, V(t(i)({
|
|
1901
1916
|
defaultMessage: "Reload",
|
|
1902
1917
|
id: "checkout.not_available.reload_button",
|
|
1903
1918
|
description: "The label of the reload button"
|
|
1904
1919
|
})), 1),
|
|
1905
|
-
|
|
1920
|
+
K(" " + V(t(i)({
|
|
1906
1921
|
defaultMessage: "this page to try again, or contact customer support.",
|
|
1907
1922
|
id: "checkout.not_available.contact_support_message",
|
|
1908
1923
|
description: "The message shown when the user wants to contact customer support"
|
|
@@ -1913,12 +1928,12 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1913
1928
|
])
|
|
1914
1929
|
]));
|
|
1915
1930
|
}
|
|
1916
|
-
}),
|
|
1931
|
+
}), yo = /* @__PURE__ */ se({
|
|
1917
1932
|
__name: "SubscriptionPaymentCompletedCard",
|
|
1918
1933
|
emits: ["continue-to-merchant"],
|
|
1919
1934
|
setup(e) {
|
|
1920
|
-
const { $t: i } =
|
|
1921
|
-
return (n,
|
|
1935
|
+
const { $t: i } = he();
|
|
1936
|
+
return (n, a) => (p(), O(tn, {
|
|
1922
1937
|
status: "success",
|
|
1923
1938
|
title: t(i)({
|
|
1924
1939
|
defaultMessage: "Payment successful",
|
|
@@ -1927,13 +1942,13 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1927
1942
|
})
|
|
1928
1943
|
}, {
|
|
1929
1944
|
default: b(() => [
|
|
1930
|
-
|
|
1945
|
+
M(t(le), {
|
|
1931
1946
|
variant: "body-xs",
|
|
1932
1947
|
color: "subtle",
|
|
1933
1948
|
tag: "span"
|
|
1934
1949
|
}, {
|
|
1935
1950
|
default: b(() => [
|
|
1936
|
-
|
|
1951
|
+
K(V(t(i)({
|
|
1937
1952
|
defaultMessage: "Thank you for subscribing.",
|
|
1938
1953
|
id: "subscription_payment_completed_card.thank_you_for_subscribing",
|
|
1939
1954
|
description: "The text shown after a successful message before a redirect"
|
|
@@ -1945,48 +1960,48 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
1945
1960
|
_: 1
|
|
1946
1961
|
}, 8, ["title"]));
|
|
1947
1962
|
}
|
|
1948
|
-
}),
|
|
1963
|
+
}), vo = { class: "flex items-start" }, fo = { class: "flex grow flex-col" }, _o = { class: "flex items-center gap-1" }, ho = { class: "ml-4 flex items-center self-center" }, Mo = /* @__PURE__ */ se({
|
|
1949
1964
|
__name: "PricingGroupContent",
|
|
1950
1965
|
props: {
|
|
1951
1966
|
name: { type: String },
|
|
1952
1967
|
description: { type: String }
|
|
1953
1968
|
},
|
|
1954
1969
|
setup(e) {
|
|
1955
|
-
return (i, n) => (
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1970
|
+
return (i, n) => (p(), $("div", vo, [
|
|
1971
|
+
w("div", fo, [
|
|
1972
|
+
w("div", _o, [
|
|
1973
|
+
M(t(le), {
|
|
1959
1974
|
tag: "span",
|
|
1960
1975
|
variant: "body-sm",
|
|
1961
1976
|
weight: "semibold"
|
|
1962
1977
|
}, {
|
|
1963
1978
|
default: b(() => [
|
|
1964
|
-
|
|
1979
|
+
K(V(e.name), 1)
|
|
1965
1980
|
]),
|
|
1966
1981
|
_: 1
|
|
1967
1982
|
}),
|
|
1968
|
-
|
|
1983
|
+
tt(i.$slots, "badge")
|
|
1969
1984
|
]),
|
|
1970
|
-
|
|
1985
|
+
M(t(le), {
|
|
1971
1986
|
tag: "span",
|
|
1972
1987
|
variant: "body-xs",
|
|
1973
1988
|
color: "subtle"
|
|
1974
1989
|
}, {
|
|
1975
1990
|
default: b(() => [
|
|
1976
|
-
|
|
1991
|
+
K(V(e.description), 1)
|
|
1977
1992
|
]),
|
|
1978
1993
|
_: 1
|
|
1979
1994
|
})
|
|
1980
1995
|
]),
|
|
1981
|
-
|
|
1982
|
-
|
|
1996
|
+
w("div", ho, [
|
|
1997
|
+
tt(i.$slots, "default")
|
|
1983
1998
|
])
|
|
1984
1999
|
]));
|
|
1985
2000
|
}
|
|
1986
|
-
}),
|
|
2001
|
+
}), bo = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Io = { class: "px-3 py-2" }, Ao = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, Po = { class: "px-3 py-2" }, Do = {
|
|
1987
2002
|
key: 3,
|
|
1988
2003
|
class: "sv-order-summary__items"
|
|
1989
|
-
},
|
|
2004
|
+
}, zt = /* @__PURE__ */ se({
|
|
1990
2005
|
__name: "OrderSummary",
|
|
1991
2006
|
props: {
|
|
1992
2007
|
subscription: { type: Object },
|
|
@@ -2006,209 +2021,214 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
2006
2021
|
},
|
|
2007
2022
|
emits: ["billing-period-change"],
|
|
2008
2023
|
setup(e, { emit: i }) {
|
|
2009
|
-
const n = e,
|
|
2010
|
-
if (!
|
|
2024
|
+
const n = e, a = i, { $t: o } = he(), { map: r, formatTimePeriod: u } = $t(), { isMobileViewport: s } = Vt(), d = _(() => s.value ? "sm" : "xs"), I = (c) => `${c.type}:${c.value}`, g = ["DAY", "WEEK", "MONTH", "YEAR"], h = (c) => g.includes(c), C = (c) => {
|
|
2025
|
+
if (!c)
|
|
2011
2026
|
return;
|
|
2012
|
-
const [
|
|
2013
|
-
if (!(!
|
|
2014
|
-
return { type:
|
|
2015
|
-
},
|
|
2027
|
+
const [y, D] = c.split(":"), T = Number(D);
|
|
2028
|
+
if (!(!T || !h(y)))
|
|
2029
|
+
return { type: y, value: T };
|
|
2030
|
+
}, f = _({
|
|
2016
2031
|
get: () => {
|
|
2017
|
-
const
|
|
2018
|
-
return
|
|
2032
|
+
const c = n.subscription.billing_period;
|
|
2033
|
+
return c ? `${c.type}:${c.value}` : void 0;
|
|
2019
2034
|
},
|
|
2020
|
-
set: (
|
|
2021
|
-
if (!
|
|
2022
|
-
const [
|
|
2023
|
-
|
|
2035
|
+
set: (c) => {
|
|
2036
|
+
if (!c) return;
|
|
2037
|
+
const [y, D] = c.split(":"), T = Number(D);
|
|
2038
|
+
T && h(y) && a("billing-period-change", { type: y, value: T });
|
|
2024
2039
|
}
|
|
2025
|
-
}),
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2040
|
+
}), L = _({
|
|
2041
|
+
get: () => f.value,
|
|
2042
|
+
set: (c) => {
|
|
2043
|
+
f.value = ge(c);
|
|
2044
|
+
}
|
|
2045
|
+
}), x = (c) => {
|
|
2046
|
+
var T, R, Q, F;
|
|
2047
|
+
const y = (F = (Q = (R = (T = n.invoicePreviewByBillingPeriod) == null ? void 0 : T[I(c)]) == null ? void 0 : R.periods) == null ? void 0 : Q[0]) == null ? void 0 : F.amount_including_tax;
|
|
2048
|
+
if (!y)
|
|
2029
2049
|
return;
|
|
2030
|
-
const
|
|
2050
|
+
const D = c.type === "MONTH" && c.value === 3 ? o({
|
|
2031
2051
|
defaultMessage: "/quarter",
|
|
2032
2052
|
id: "checkout.order_summary_block.billing_period.per_quarter",
|
|
2033
2053
|
description: "Period label for quarterly billing"
|
|
2034
|
-
}) :
|
|
2054
|
+
}) : o(
|
|
2035
2055
|
{
|
|
2036
2056
|
defaultMessage: "/{period}",
|
|
2037
2057
|
id: "checkout.order_summary_block.billing_period.per_label",
|
|
2038
2058
|
description: "Period label for billing cycles"
|
|
2039
2059
|
},
|
|
2040
2060
|
{
|
|
2041
|
-
period: c
|
|
2061
|
+
period: u(c, {
|
|
2042
2062
|
prefix: !1,
|
|
2043
2063
|
hideValueForExactPeriods: !0
|
|
2044
2064
|
})
|
|
2045
2065
|
}
|
|
2046
2066
|
);
|
|
2047
|
-
return
|
|
2067
|
+
return o(
|
|
2048
2068
|
{
|
|
2049
2069
|
defaultMessage: "{amount}{period}",
|
|
2050
2070
|
id: "checkout.order_summary_block.billing_period.sub_label",
|
|
2051
2071
|
description: "Billing period option sublabel showing price per period"
|
|
2052
2072
|
},
|
|
2053
2073
|
{
|
|
2054
|
-
amount:
|
|
2055
|
-
period:
|
|
2074
|
+
amount: De(y),
|
|
2075
|
+
period: D
|
|
2056
2076
|
}
|
|
2057
2077
|
);
|
|
2058
|
-
},
|
|
2059
|
-
var
|
|
2060
|
-
return (R = (
|
|
2061
|
-
},
|
|
2062
|
-
if (!
|
|
2078
|
+
}, v = (c) => {
|
|
2079
|
+
var y, D, T, R;
|
|
2080
|
+
return (R = (T = (D = (y = n.invoicePreviewByBillingPeriod) == null ? void 0 : y[I(c)]) == null ? void 0 : D.periods) == null ? void 0 : T[0]) == null ? void 0 : R.amount_including_tax;
|
|
2081
|
+
}, H = (c) => Number(c.quantity), z = (c, y) => {
|
|
2082
|
+
if (!y)
|
|
2063
2083
|
return;
|
|
2064
|
-
const
|
|
2084
|
+
const T = {
|
|
2065
2085
|
DAY: 365,
|
|
2066
2086
|
WEEK: 52,
|
|
2067
2087
|
MONTH: 12,
|
|
2068
2088
|
YEAR: 1
|
|
2069
|
-
}[
|
|
2089
|
+
}[c.type] / Math.max(c.value ?? 1, 1), R = H(y) * T;
|
|
2070
2090
|
if (Number.isFinite(R))
|
|
2071
2091
|
return {
|
|
2072
2092
|
quantity: R.toFixed(2),
|
|
2073
|
-
currency:
|
|
2093
|
+
currency: y.currency
|
|
2074
2094
|
};
|
|
2075
|
-
},
|
|
2076
|
-
if (!
|
|
2095
|
+
}, A = (c, y) => {
|
|
2096
|
+
if (!c || !y)
|
|
2077
2097
|
return;
|
|
2078
|
-
const
|
|
2079
|
-
if (!(!Number.isFinite(
|
|
2098
|
+
const D = H(c) - H(y);
|
|
2099
|
+
if (!(!Number.isFinite(D) || D <= 0))
|
|
2080
2100
|
return {
|
|
2081
|
-
quantity:
|
|
2082
|
-
currency:
|
|
2101
|
+
quantity: D.toFixed(2),
|
|
2102
|
+
currency: c.currency
|
|
2083
2103
|
};
|
|
2084
|
-
},
|
|
2085
|
-
if (!
|
|
2104
|
+
}, E = (c) => {
|
|
2105
|
+
if (!c)
|
|
2086
2106
|
return;
|
|
2087
|
-
const
|
|
2107
|
+
const y = o(
|
|
2088
2108
|
{
|
|
2089
2109
|
defaultMessage: "Save {amount}",
|
|
2090
2110
|
id: "checkout.order_summary_block.billing_period.save_badge.prefix",
|
|
2091
2111
|
description: "First line for the savings badge label"
|
|
2092
2112
|
},
|
|
2093
|
-
{ amount:
|
|
2094
|
-
),
|
|
2113
|
+
{ amount: De(c) }
|
|
2114
|
+
), D = o({
|
|
2095
2115
|
defaultMessage: "/year",
|
|
2096
2116
|
id: "checkout.order_summary_block.billing_period.save_badge.suffix",
|
|
2097
2117
|
description: "Second line for the savings badge label"
|
|
2098
2118
|
});
|
|
2099
|
-
return `${
|
|
2100
|
-
},
|
|
2101
|
-
var te, ie,
|
|
2102
|
-
const
|
|
2119
|
+
return `${y}${D}`;
|
|
2120
|
+
}, m = _(() => {
|
|
2121
|
+
var te, ie, oe;
|
|
2122
|
+
const c = xe({
|
|
2103
2123
|
pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos ?? [],
|
|
2104
2124
|
type: "DEFAULT"
|
|
2105
|
-
}),
|
|
2106
|
-
|
|
2107
|
-
}, R = (
|
|
2108
|
-
var
|
|
2109
|
-
(
|
|
2110
|
-
var
|
|
2111
|
-
(
|
|
2112
|
-
(ue) =>
|
|
2113
|
-
), (
|
|
2114
|
-
var
|
|
2115
|
-
(
|
|
2116
|
-
(fe) =>
|
|
2125
|
+
}), y = ((ie = (te = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : te.billing_period_settings) == null ? void 0 : ie.billing_periods) ?? [], D = /* @__PURE__ */ new Map(), T = (G) => {
|
|
2126
|
+
G && D.set(I(G), G);
|
|
2127
|
+
}, R = (G) => {
|
|
2128
|
+
var q;
|
|
2129
|
+
(q = G == null ? void 0 : G.items) == null || q.forEach((J) => {
|
|
2130
|
+
var ae, ce;
|
|
2131
|
+
(ae = J.billing_period_configs) == null || ae.forEach(
|
|
2132
|
+
(ue) => T(ue.billing_period)
|
|
2133
|
+
), (ce = J.pricing_currency_configs) == null || ce.forEach((ue) => {
|
|
2134
|
+
var ve;
|
|
2135
|
+
(ve = ue.billing_period_configs) == null || ve.forEach(
|
|
2136
|
+
(fe) => T(fe.billing_period)
|
|
2117
2137
|
);
|
|
2118
2138
|
});
|
|
2119
2139
|
});
|
|
2120
2140
|
};
|
|
2121
|
-
if ((((
|
|
2122
|
-
var
|
|
2123
|
-
(
|
|
2124
|
-
(
|
|
2125
|
-
var
|
|
2126
|
-
return (
|
|
2141
|
+
if ((((oe = c == null ? void 0 : c.pricing_plan_version) == null ? void 0 : oe.pricing_categories) ?? []).forEach((G) => {
|
|
2142
|
+
var q, J;
|
|
2143
|
+
(q = G.pricings) == null || q.forEach((ae) => R(ae)), (J = G.pricing_groups) == null || J.forEach(
|
|
2144
|
+
(ae) => {
|
|
2145
|
+
var ce;
|
|
2146
|
+
return (ce = ae.pricings) == null ? void 0 : ce.forEach((ue) => R(ue));
|
|
2127
2147
|
}
|
|
2128
2148
|
);
|
|
2129
|
-
}), !
|
|
2149
|
+
}), !D.size)
|
|
2130
2150
|
return [];
|
|
2131
|
-
const
|
|
2132
|
-
(
|
|
2151
|
+
const F = y.map((G) => D.get(I(G.period))).filter((G) => !!G), ne = new Set(F.map(I)), ee = [...D.values()].filter(
|
|
2152
|
+
(G) => !ne.has(I(G))
|
|
2133
2153
|
);
|
|
2134
|
-
return [...
|
|
2135
|
-
}),
|
|
2136
|
-
const
|
|
2137
|
-
return
|
|
2138
|
-
const R =
|
|
2154
|
+
return [...F, ...ee];
|
|
2155
|
+
}), B = _(() => {
|
|
2156
|
+
const c = m.value[m.value.length - 1], y = c ? z(c, v(c)) : void 0;
|
|
2157
|
+
return m.value.map((T) => {
|
|
2158
|
+
const R = T.type === "MONTH" && T.value === 3 ? o({
|
|
2139
2159
|
defaultMessage: "Billed quarterly",
|
|
2140
2160
|
id: "checkout.order_summary_block.billing_period.quarterly",
|
|
2141
2161
|
description: "Billing period option label for quarterly billing"
|
|
2142
|
-
}) :
|
|
2162
|
+
}) : o(
|
|
2143
2163
|
{
|
|
2144
2164
|
defaultMessage: "Billed {period}",
|
|
2145
2165
|
id: "checkout.order_summary_block.billing_period.label",
|
|
2146
2166
|
description: "Billing period option label for the selected period"
|
|
2147
2167
|
},
|
|
2148
|
-
{ period:
|
|
2149
|
-
),
|
|
2168
|
+
{ period: r.value[T.type].full }
|
|
2169
|
+
), Q = v(T), F = z(T, Q), ne = c && T.type === c.type && T.value === c.value ? void 0 : A(F, y), ee = E(ne);
|
|
2150
2170
|
return {
|
|
2151
2171
|
label: R,
|
|
2152
|
-
subLabel: x(
|
|
2153
|
-
labelSuffixComponent:
|
|
2154
|
-
component:
|
|
2172
|
+
subLabel: x(T),
|
|
2173
|
+
labelSuffixComponent: ee ? {
|
|
2174
|
+
component: Lt,
|
|
2155
2175
|
props: {
|
|
2156
2176
|
color: "primary",
|
|
2157
|
-
content:
|
|
2158
|
-
size:
|
|
2177
|
+
content: ee,
|
|
2178
|
+
size: d.value,
|
|
2159
2179
|
class: "whitespace-nowrap text-left leading-tight"
|
|
2160
2180
|
}
|
|
2161
2181
|
} : void 0,
|
|
2162
|
-
hidden:
|
|
2163
|
-
value: `${
|
|
2182
|
+
hidden: f.value === `${T.type}:${T.value}`,
|
|
2183
|
+
value: `${T.type}:${T.value}`
|
|
2164
2184
|
};
|
|
2165
2185
|
});
|
|
2166
|
-
}),
|
|
2167
|
-
const
|
|
2186
|
+
}), S = _(() => {
|
|
2187
|
+
const c = B.value, y = c[0], D = c[c.length - 1];
|
|
2168
2188
|
return {
|
|
2169
|
-
smallestPeriod:
|
|
2170
|
-
biggestPeriod:
|
|
2189
|
+
smallestPeriod: y == null ? void 0 : y.value,
|
|
2190
|
+
biggestPeriod: D == null ? void 0 : D.value
|
|
2171
2191
|
};
|
|
2172
|
-
}),
|
|
2173
|
-
() =>
|
|
2174
|
-
),
|
|
2175
|
-
() =>
|
|
2176
|
-
),
|
|
2177
|
-
var te, ie,
|
|
2178
|
-
const
|
|
2179
|
-
if (!
|
|
2192
|
+
}), X = _(
|
|
2193
|
+
() => B.value.find((c) => c.value === S.value.biggestPeriod)
|
|
2194
|
+
), de = _(
|
|
2195
|
+
() => B.value.find((c) => c.value === f.value)
|
|
2196
|
+
), l = _(() => {
|
|
2197
|
+
var te, ie, oe, G, q, J, ae, ce;
|
|
2198
|
+
const c = B.value, y = c[c.length - 1], D = f.value;
|
|
2199
|
+
if (!y || !D || D === y.value)
|
|
2180
2200
|
return "";
|
|
2181
|
-
const
|
|
2182
|
-
if (!
|
|
2201
|
+
const T = C(y.value);
|
|
2202
|
+
if (!T)
|
|
2183
2203
|
return "";
|
|
2184
|
-
const R = (
|
|
2185
|
-
if (!
|
|
2204
|
+
const R = (G = (oe = (ie = (te = n.invoicePreviewByBillingPeriod) == null ? void 0 : te[y.value]) == null ? void 0 : ie.periods) == null ? void 0 : oe[0]) == null ? void 0 : G.amount_including_tax, Q = C(D), F = (ce = (ae = (J = (q = n.invoicePreviewByBillingPeriod) == null ? void 0 : q[D]) == null ? void 0 : J.periods) == null ? void 0 : ae[0]) == null ? void 0 : ce.amount_including_tax;
|
|
2205
|
+
if (!Q || !F)
|
|
2186
2206
|
return "";
|
|
2187
|
-
const
|
|
2188
|
-
return
|
|
2189
|
-
}),
|
|
2190
|
-
const { smallestPeriod:
|
|
2191
|
-
|
|
2207
|
+
const ne = z(Q, F), ee = z(T, R);
|
|
2208
|
+
return E(A(ne, ee)) ?? "";
|
|
2209
|
+
}), P = (c) => {
|
|
2210
|
+
const { smallestPeriod: y, biggestPeriod: D } = S.value;
|
|
2211
|
+
f.value = c ? D : y;
|
|
2192
2212
|
};
|
|
2193
|
-
return (
|
|
2213
|
+
return (c, y) => (p(), O(t(ye), {
|
|
2194
2214
|
class: "sv-order-summary",
|
|
2195
2215
|
"no-border": "",
|
|
2196
2216
|
"no-spacing": "",
|
|
2197
2217
|
"content-background": "none",
|
|
2198
|
-
title: e.noTitle ? void 0 : t(
|
|
2218
|
+
title: e.noTitle ? void 0 : t(o)({
|
|
2199
2219
|
defaultMessage: "Order summary",
|
|
2200
2220
|
id: "checkout.order_summary_block.title",
|
|
2201
2221
|
description: "The title of the order summary block that lists the subscription cost in the checkout"
|
|
2202
2222
|
})
|
|
2203
2223
|
}, {
|
|
2204
2224
|
default: b(() => [
|
|
2205
|
-
|
|
2206
|
-
|
|
2225
|
+
w("div", bo, [
|
|
2226
|
+
M(t(ye), {
|
|
2207
2227
|
"no-spacing": "",
|
|
2208
2228
|
class: "sv-order-summary__subscription"
|
|
2209
2229
|
}, {
|
|
2210
2230
|
default: b(() => [
|
|
2211
|
-
e.subscription ? (
|
|
2231
|
+
e.subscription ? (p(), O(an, {
|
|
2212
2232
|
key: 0,
|
|
2213
2233
|
avatar: e.avatar,
|
|
2214
2234
|
invoice: e.invoice,
|
|
@@ -2216,76 +2236,76 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
2216
2236
|
"enabled-pricing-ids": e.enabledPricingIds,
|
|
2217
2237
|
loading: e.isPreviewAndPaymentMethodsPending,
|
|
2218
2238
|
"trial-period": e.trialPeriod
|
|
2219
|
-
}, null, 8, ["avatar", "invoice", "subscription", "enabled-pricing-ids", "loading", "trial-period"])) :
|
|
2239
|
+
}, null, 8, ["avatar", "invoice", "subscription", "enabled-pricing-ids", "loading", "trial-period"])) : U("", !0)
|
|
2220
2240
|
]),
|
|
2221
2241
|
_: 1
|
|
2222
2242
|
}),
|
|
2223
|
-
|
|
2243
|
+
B.value.length === 2 ? (p(), O(t(ye), {
|
|
2224
2244
|
key: 0,
|
|
2225
2245
|
"no-spacing": "",
|
|
2226
|
-
"content-classes":
|
|
2246
|
+
"content-classes": f.value === S.value.biggestPeriod ? "border-primary-500" : void 0
|
|
2227
2247
|
}, {
|
|
2228
2248
|
default: b(() => {
|
|
2229
|
-
var
|
|
2249
|
+
var D;
|
|
2230
2250
|
return [
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2251
|
+
w("div", Io, [
|
|
2252
|
+
w("div", Ao, [
|
|
2253
|
+
X.value ? (p(), O(Mo, {
|
|
2234
2254
|
key: 0,
|
|
2235
|
-
name:
|
|
2236
|
-
description: ((
|
|
2237
|
-
},
|
|
2255
|
+
name: X.value.label,
|
|
2256
|
+
description: ((D = de.value) == null ? void 0 : D.subLabel) ?? ""
|
|
2257
|
+
}, Ye({
|
|
2238
2258
|
default: b(() => [
|
|
2239
|
-
|
|
2240
|
-
"model-value":
|
|
2241
|
-
"onUpdate:modelValue":
|
|
2259
|
+
M(t(xi), {
|
|
2260
|
+
"model-value": f.value === S.value.biggestPeriod,
|
|
2261
|
+
"onUpdate:modelValue": P
|
|
2242
2262
|
}, null, 8, ["model-value"])
|
|
2243
2263
|
]),
|
|
2244
2264
|
_: 2
|
|
2245
2265
|
}, [
|
|
2246
|
-
|
|
2266
|
+
l.value ? {
|
|
2247
2267
|
name: "badge",
|
|
2248
2268
|
fn: b(() => [
|
|
2249
|
-
|
|
2269
|
+
M(t(Lt), {
|
|
2250
2270
|
intent: "brand",
|
|
2251
|
-
content:
|
|
2252
|
-
size:
|
|
2271
|
+
content: l.value,
|
|
2272
|
+
size: d.value,
|
|
2253
2273
|
class: "whitespace-nowrap text-left leading-tight"
|
|
2254
2274
|
}, null, 8, ["content", "size"])
|
|
2255
2275
|
]),
|
|
2256
2276
|
key: "0"
|
|
2257
2277
|
} : void 0
|
|
2258
|
-
]), 1032, ["name", "description"])) :
|
|
2278
|
+
]), 1032, ["name", "description"])) : U("", !0)
|
|
2259
2279
|
])
|
|
2260
2280
|
])
|
|
2261
2281
|
];
|
|
2262
2282
|
}),
|
|
2263
2283
|
_: 1
|
|
2264
|
-
}, 8, ["content-classes"])) :
|
|
2284
|
+
}, 8, ["content-classes"])) : B.value.length > 2 ? (p(), O(t(nn), {
|
|
2265
2285
|
key: 1,
|
|
2266
|
-
"single-model-value":
|
|
2267
|
-
"onUpdate:singleModelValue":
|
|
2286
|
+
"single-model-value": L.value,
|
|
2287
|
+
"onUpdate:singleModelValue": y[0] || (y[0] = (D) => L.value = D),
|
|
2268
2288
|
class: "sv-order-summary__billing-period",
|
|
2269
|
-
options:
|
|
2289
|
+
options: B.value,
|
|
2270
2290
|
size: "xl",
|
|
2271
2291
|
"has-large-dropdown": "",
|
|
2272
2292
|
"show-sub-label-in-input": "",
|
|
2273
2293
|
"show-suffix-in-closed-input": ""
|
|
2274
|
-
}, null, 8, ["single-model-value", "options"])) :
|
|
2275
|
-
e.isUsageBased ? (
|
|
2294
|
+
}, null, 8, ["single-model-value", "options"])) : U("", !0),
|
|
2295
|
+
e.isUsageBased ? (p(), O(t(ye), {
|
|
2276
2296
|
key: 2,
|
|
2277
2297
|
"no-spacing": "",
|
|
2278
2298
|
class: "sv-order-summary__usage"
|
|
2279
2299
|
}, {
|
|
2280
2300
|
default: b(() => [
|
|
2281
|
-
|
|
2282
|
-
|
|
2301
|
+
w("div", Po, [
|
|
2302
|
+
M(t(le), {
|
|
2283
2303
|
"no-spacing": "",
|
|
2284
2304
|
variant: "body-sm",
|
|
2285
2305
|
color: "subtle"
|
|
2286
2306
|
}, {
|
|
2287
2307
|
default: b(() => [
|
|
2288
|
-
|
|
2308
|
+
K(V(t(o)({
|
|
2289
2309
|
defaultMessage: "+ Usage",
|
|
2290
2310
|
id: "checkout.invoice_preview.usage_based_message",
|
|
2291
2311
|
description: "The message shown for the usage based invoice preview"
|
|
@@ -2296,16 +2316,16 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
2296
2316
|
])
|
|
2297
2317
|
]),
|
|
2298
2318
|
_: 1
|
|
2299
|
-
})) :
|
|
2300
|
-
e.invoice && e.variant !== "products-inline" ? (
|
|
2301
|
-
|
|
2319
|
+
})) : U("", !0),
|
|
2320
|
+
e.invoice && e.variant !== "products-inline" ? (p(), $("div", Do, [
|
|
2321
|
+
M(t(Xi), {
|
|
2302
2322
|
invoice: e.invoice,
|
|
2303
|
-
"wrapper-component": t(
|
|
2323
|
+
"wrapper-component": t(ye)
|
|
2304
2324
|
}, null, 8, ["invoice", "wrapper-component"])
|
|
2305
|
-
])) :
|
|
2306
|
-
|
|
2325
|
+
])) : U("", !0),
|
|
2326
|
+
M(t(ye), { class: "sv-order-summary__totals" }, {
|
|
2307
2327
|
default: b(() => [
|
|
2308
|
-
e.invoice ? (
|
|
2328
|
+
e.invoice ? (p(), O(t(Wi), {
|
|
2309
2329
|
key: 0,
|
|
2310
2330
|
class: "sv-order-summary__invoice-preview",
|
|
2311
2331
|
variant: e.variant === "products-inline" ? "default" : "without-products",
|
|
@@ -2315,14 +2335,14 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
2315
2335
|
collapsible: e.collapsible,
|
|
2316
2336
|
"is-preview-without-taxes": !e.countryCode,
|
|
2317
2337
|
"is-customer-facing": ""
|
|
2318
|
-
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (
|
|
2338
|
+
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (p(), O(t(le), {
|
|
2319
2339
|
key: 1,
|
|
2320
2340
|
variant: "body-sm",
|
|
2321
2341
|
color: "subtle",
|
|
2322
2342
|
class: "sv-order-summary__empty"
|
|
2323
2343
|
}, {
|
|
2324
2344
|
default: b(() => [
|
|
2325
|
-
|
|
2345
|
+
K(V(t(o)({
|
|
2326
2346
|
defaultMessage: "Please select a country first",
|
|
2327
2347
|
description: "The message shown for the invoice preview when no country is set",
|
|
2328
2348
|
id: "checkout.invoice_preview.no_country_selected_message"
|
|
@@ -2338,119 +2358,119 @@ const Hn = { class: "grid grid-cols-1 gap-1" }, Qn = { class: "grid grid-cols-1
|
|
|
2338
2358
|
_: 1
|
|
2339
2359
|
}, 8, ["title"]));
|
|
2340
2360
|
}
|
|
2341
|
-
}),
|
|
2361
|
+
}), No = { key: 1 }, Eo = { key: 2 }, Co = { key: 3 }, xo = { key: 4 }, Lo = ["href"], To = /* @__PURE__ */ se({
|
|
2342
2362
|
__name: "MarkdownInline",
|
|
2343
2363
|
props: {
|
|
2344
2364
|
nodes: { type: Array }
|
|
2345
2365
|
},
|
|
2346
2366
|
setup(e) {
|
|
2347
2367
|
return (i, n) => {
|
|
2348
|
-
const
|
|
2349
|
-
return
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
], 64)) :
|
|
2353
|
-
|
|
2354
|
-
nodes:
|
|
2368
|
+
const a = mi("MarkdownInline", !0);
|
|
2369
|
+
return p(!0), $(me, null, Rt(e.nodes, (o, r) => (p(), $(me, { key: r }, [
|
|
2370
|
+
o.type === "text" ? (p(), $(me, { key: 0 }, [
|
|
2371
|
+
K(V(o.value), 1)
|
|
2372
|
+
], 64)) : o.type === "break" ? (p(), $("br", No)) : o.type === "bold" ? (p(), $("strong", Eo, [
|
|
2373
|
+
M(a, {
|
|
2374
|
+
nodes: o.children
|
|
2355
2375
|
}, null, 8, ["nodes"])
|
|
2356
|
-
])) :
|
|
2357
|
-
|
|
2358
|
-
nodes:
|
|
2376
|
+
])) : o.type === "italic" ? (p(), $("em", Co, [
|
|
2377
|
+
M(a, {
|
|
2378
|
+
nodes: o.children
|
|
2359
2379
|
}, null, 8, ["nodes"])
|
|
2360
|
-
])) :
|
|
2361
|
-
|
|
2362
|
-
nodes:
|
|
2380
|
+
])) : o.type === "underline" ? (p(), $("u", xo, [
|
|
2381
|
+
M(a, {
|
|
2382
|
+
nodes: o.children
|
|
2363
2383
|
}, null, 8, ["nodes"])
|
|
2364
|
-
])) :
|
|
2384
|
+
])) : o.type === "link" ? (p(), $("a", {
|
|
2365
2385
|
key: 5,
|
|
2366
|
-
href:
|
|
2386
|
+
href: o.href,
|
|
2367
2387
|
target: "_blank",
|
|
2368
2388
|
rel: "noopener noreferrer",
|
|
2369
2389
|
class: "underline"
|
|
2370
2390
|
}, [
|
|
2371
|
-
|
|
2372
|
-
nodes:
|
|
2391
|
+
M(a, {
|
|
2392
|
+
nodes: o.children
|
|
2373
2393
|
}, null, 8, ["nodes"])
|
|
2374
|
-
], 8,
|
|
2394
|
+
], 8, Lo)) : U("", !0)
|
|
2375
2395
|
], 64))), 128);
|
|
2376
2396
|
};
|
|
2377
2397
|
}
|
|
2378
|
-
}),
|
|
2379
|
-
function
|
|
2398
|
+
}), wo = /^<u>([\s\S]*?)<\/u>/i, So = /^\*\*([\s\S]+?)\*\*/, ko = /^\*([\s\S]+?)\*/, Oo = /^_([\s\S]+?)_/, zo = /^\[([^\]]*)\]\(\s*([^)\s]*)\s*\)/, jo = /^<([a-z][a-z0-9+.-]*:[^>\s]+)>/i, Ro = /\n[ \t]*\n/;
|
|
2399
|
+
function ke(e) {
|
|
2380
2400
|
const i = [];
|
|
2381
2401
|
let n = "";
|
|
2382
|
-
const
|
|
2402
|
+
const a = () => {
|
|
2383
2403
|
n && (i.push({ type: "text", value: n }), n = "");
|
|
2384
2404
|
};
|
|
2385
|
-
let
|
|
2386
|
-
for (;
|
|
2387
|
-
const
|
|
2388
|
-
if (
|
|
2389
|
-
|
|
2405
|
+
let o = 0;
|
|
2406
|
+
for (; o < e.length; ) {
|
|
2407
|
+
const r = e.slice(o), u = So.exec(r);
|
|
2408
|
+
if (u) {
|
|
2409
|
+
a(), i.push({ type: "bold", children: ke(u[1]) }), o += u[0].length;
|
|
2390
2410
|
continue;
|
|
2391
2411
|
}
|
|
2392
|
-
const
|
|
2393
|
-
if (
|
|
2394
|
-
|
|
2412
|
+
const s = ko.exec(r) ?? Oo.exec(r);
|
|
2413
|
+
if (s) {
|
|
2414
|
+
a(), i.push({ type: "italic", children: ke(s[1]) }), o += s[0].length;
|
|
2395
2415
|
continue;
|
|
2396
2416
|
}
|
|
2397
|
-
const
|
|
2398
|
-
if (
|
|
2399
|
-
|
|
2417
|
+
const d = wo.exec(r);
|
|
2418
|
+
if (d) {
|
|
2419
|
+
a(), i.push({ type: "underline", children: ke(d[1]) }), o += d[0].length;
|
|
2400
2420
|
continue;
|
|
2401
2421
|
}
|
|
2402
|
-
const I =
|
|
2422
|
+
const I = zo.exec(r);
|
|
2403
2423
|
if (I) {
|
|
2404
|
-
|
|
2424
|
+
a(), i.push(jt(I[2], ke(I[1]))), o += I[0].length;
|
|
2405
2425
|
continue;
|
|
2406
2426
|
}
|
|
2407
|
-
const
|
|
2408
|
-
if (
|
|
2409
|
-
|
|
2427
|
+
const g = jo.exec(r);
|
|
2428
|
+
if (g) {
|
|
2429
|
+
a(), i.push(jt(g[1], [{ type: "text", value: g[1] }])), o += g[0].length;
|
|
2410
2430
|
continue;
|
|
2411
2431
|
}
|
|
2412
|
-
if (e[
|
|
2432
|
+
if (e[o] === `
|
|
2413
2433
|
`) {
|
|
2414
|
-
|
|
2434
|
+
a(), i.push({ type: "break" }), o += 1;
|
|
2415
2435
|
continue;
|
|
2416
2436
|
}
|
|
2417
|
-
n += e[
|
|
2437
|
+
n += e[o], o += 1;
|
|
2418
2438
|
}
|
|
2419
|
-
return
|
|
2439
|
+
return a(), i;
|
|
2420
2440
|
}
|
|
2421
|
-
function
|
|
2422
|
-
const n =
|
|
2423
|
-
return n ? { type: "link", href: n, children: i } : { type: "text", value:
|
|
2441
|
+
function jt(e, i) {
|
|
2442
|
+
const n = Bi(e);
|
|
2443
|
+
return n ? { type: "link", href: n, children: i } : { type: "text", value: qt(i) };
|
|
2424
2444
|
}
|
|
2425
|
-
function
|
|
2426
|
-
return e.map((i) => i.type === "text" ? i.value : i.type === "break" ? " " :
|
|
2445
|
+
function qt(e) {
|
|
2446
|
+
return e.map((i) => i.type === "text" ? i.value : i.type === "break" ? " " : qt(i.children)).join("");
|
|
2427
2447
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return e != null && e.trim() ? e.split(
|
|
2448
|
+
function $o(e) {
|
|
2449
|
+
return e != null && e.trim() ? e.split(Ro).map((i) => i.trim()).filter(Boolean).map((i) => ({ type: "paragraph", children: ke(i) })) : [];
|
|
2430
2450
|
}
|
|
2431
|
-
const
|
|
2451
|
+
const Bo = { key: 0 }, Uo = /* @__PURE__ */ se({
|
|
2432
2452
|
__name: "MarkdownText",
|
|
2433
2453
|
props: {
|
|
2434
2454
|
source: { type: [String, null] }
|
|
2435
2455
|
},
|
|
2436
2456
|
setup(e) {
|
|
2437
|
-
const i = e, n =
|
|
2438
|
-
return (
|
|
2439
|
-
(
|
|
2440
|
-
key:
|
|
2441
|
-
class:
|
|
2457
|
+
const i = e, n = _(() => $o(i.source));
|
|
2458
|
+
return (a, o) => n.value.length ? (p(), $("div", Bo, [
|
|
2459
|
+
(p(!0), $(me, null, Rt(n.value, (r, u) => (p(), $("p", {
|
|
2460
|
+
key: u,
|
|
2461
|
+
class: Ie({ "mt-2": u > 0 })
|
|
2442
2462
|
}, [
|
|
2443
|
-
|
|
2444
|
-
nodes:
|
|
2463
|
+
M(To, {
|
|
2464
|
+
nodes: r.children
|
|
2445
2465
|
}, null, 8, ["nodes"])
|
|
2446
2466
|
], 2))), 128))
|
|
2447
|
-
])) :
|
|
2467
|
+
])) : U("", !0);
|
|
2448
2468
|
}
|
|
2449
2469
|
});
|
|
2450
|
-
async function
|
|
2451
|
-
const { AdyenCheckout: n } = await
|
|
2470
|
+
async function Jt(e, i) {
|
|
2471
|
+
const { AdyenCheckout: n } = await Ke();
|
|
2452
2472
|
return n(
|
|
2453
|
-
|
|
2473
|
+
Fi({
|
|
2454
2474
|
locale: e.locale,
|
|
2455
2475
|
amount: e.amount,
|
|
2456
2476
|
countryCode: e.countryCode,
|
|
@@ -2459,47 +2479,47 @@ async function Wt(e, i) {
|
|
|
2459
2479
|
})
|
|
2460
2480
|
);
|
|
2461
2481
|
}
|
|
2462
|
-
function
|
|
2482
|
+
function ei({
|
|
2463
2483
|
props: e,
|
|
2464
2484
|
create: i,
|
|
2465
2485
|
onMissingButton: n,
|
|
2466
|
-
onMountFailed:
|
|
2467
|
-
afterMount:
|
|
2486
|
+
onMountFailed: a,
|
|
2487
|
+
afterMount: o
|
|
2468
2488
|
}) {
|
|
2469
|
-
const
|
|
2470
|
-
const
|
|
2471
|
-
if (!
|
|
2489
|
+
const r = Y(), u = Ae(), s = async () => {
|
|
2490
|
+
const d = await Jt(e, u), I = await i(d);
|
|
2491
|
+
if (!r.value) {
|
|
2472
2492
|
n();
|
|
2473
2493
|
return;
|
|
2474
2494
|
}
|
|
2475
2495
|
try {
|
|
2476
|
-
await I.isAvailable(), I.mount(
|
|
2477
|
-
} catch (
|
|
2478
|
-
|
|
2496
|
+
await I.isAvailable(), I.mount(r.value), o == null || o();
|
|
2497
|
+
} catch (g) {
|
|
2498
|
+
a(g);
|
|
2479
2499
|
}
|
|
2480
2500
|
};
|
|
2481
|
-
return
|
|
2482
|
-
|
|
2483
|
-
}), { buttonRef:
|
|
2501
|
+
return je(() => {
|
|
2502
|
+
s();
|
|
2503
|
+
}), { buttonRef: r };
|
|
2484
2504
|
}
|
|
2485
|
-
const
|
|
2505
|
+
const Vo = {
|
|
2486
2506
|
key: 0,
|
|
2487
2507
|
id: "svg-logo",
|
|
2488
2508
|
viewBox: "0 0 35 15",
|
|
2489
2509
|
class: "h-[44px]"
|
|
2490
|
-
},
|
|
2510
|
+
}, Fo = {
|
|
2491
2511
|
key: 1,
|
|
2492
2512
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
|
|
2493
2513
|
role: "presentation",
|
|
2494
2514
|
class: "h-[22px]"
|
|
2495
|
-
},
|
|
2515
|
+
}, at = /* @__PURE__ */ se({
|
|
2496
2516
|
__name: "ExpressPaymentMethodButton",
|
|
2497
2517
|
props: {
|
|
2498
2518
|
type: { type: String }
|
|
2499
2519
|
},
|
|
2500
2520
|
emits: ["click"],
|
|
2501
2521
|
setup(e, { emit: i }) {
|
|
2502
|
-
const n = e,
|
|
2522
|
+
const n = e, a = i, o = _(() => {
|
|
2503
2523
|
switch (n.type) {
|
|
2504
2524
|
case "applepay":
|
|
2505
2525
|
return "Apple Pay";
|
|
@@ -2510,7 +2530,7 @@ const Ro = {
|
|
|
2510
2530
|
default:
|
|
2511
2531
|
return;
|
|
2512
2532
|
}
|
|
2513
|
-
}),
|
|
2533
|
+
}), r = _(() => {
|
|
2514
2534
|
switch (n.type) {
|
|
2515
2535
|
case "applepay":
|
|
2516
2536
|
return "!bg-black !py-0";
|
|
@@ -2522,18 +2542,18 @@ const Ro = {
|
|
|
2522
2542
|
return;
|
|
2523
2543
|
}
|
|
2524
2544
|
});
|
|
2525
|
-
function
|
|
2526
|
-
|
|
2545
|
+
function u() {
|
|
2546
|
+
a("click");
|
|
2527
2547
|
}
|
|
2528
|
-
return (
|
|
2548
|
+
return (s, d) => (p(), O(t(Ne), {
|
|
2529
2549
|
size: "lg",
|
|
2530
|
-
"aria-label":
|
|
2531
|
-
class:
|
|
2532
|
-
onClick:
|
|
2550
|
+
"aria-label": o.value,
|
|
2551
|
+
class: Ie([r.value, "!block h-11 w-full bg-center bg-no-repeat"]),
|
|
2552
|
+
onClick: u
|
|
2533
2553
|
}, {
|
|
2534
2554
|
default: b(() => [
|
|
2535
|
-
n.type === "applepay" ? (
|
|
2536
|
-
|
|
2555
|
+
n.type === "applepay" ? (p(), $("svg", Vo, [...d[0] || (d[0] = [
|
|
2556
|
+
w("svg", {
|
|
2537
2557
|
id: "svg-logo",
|
|
2538
2558
|
x: "0",
|
|
2539
2559
|
y: "3.85",
|
|
@@ -2544,28 +2564,28 @@ const Ro = {
|
|
|
2544
2564
|
version: "1.1",
|
|
2545
2565
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2546
2566
|
}, [
|
|
2547
|
-
|
|
2548
|
-
|
|
2567
|
+
w("title", null, "Apple Logo"),
|
|
2568
|
+
w("g", {
|
|
2549
2569
|
stroke: "none",
|
|
2550
2570
|
"stroke-width": "1",
|
|
2551
2571
|
fill: "none",
|
|
2552
2572
|
"fill-rule": "evenodd"
|
|
2553
2573
|
}, [
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2574
|
+
w("g", { fill: "#FFF" }, [
|
|
2575
|
+
w("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" }),
|
|
2576
|
+
w("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" }),
|
|
2577
|
+
w("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" }),
|
|
2578
|
+
w("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" }),
|
|
2579
|
+
w("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" })
|
|
2560
2580
|
])
|
|
2561
2581
|
])
|
|
2562
2582
|
], -1)
|
|
2563
|
-
])])) : n.type === "paypal" ? (
|
|
2583
|
+
])])) : n.type === "paypal" ? (p(), $("img", Fo)) : U("", !0)
|
|
2564
2584
|
]),
|
|
2565
2585
|
_: 1
|
|
2566
2586
|
}, 8, ["aria-label", "class"]));
|
|
2567
2587
|
}
|
|
2568
|
-
}),
|
|
2588
|
+
}), Go = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Yo = "ADYEN", Ko = /* @__PURE__ */ se({
|
|
2569
2589
|
__name: "ExpressPaymentMethodApplePay",
|
|
2570
2590
|
props: {
|
|
2571
2591
|
onBillingInformationChange: { type: Function },
|
|
@@ -2578,17 +2598,17 @@ const Ro = {
|
|
|
2578
2598
|
},
|
|
2579
2599
|
emits: ["ready", "update-billing-information"],
|
|
2580
2600
|
setup(e, { emit: i }) {
|
|
2581
|
-
const n = e,
|
|
2582
|
-
function
|
|
2583
|
-
return
|
|
2601
|
+
const n = e, a = i, o = Y(), r = Ae(), { authorizePayment: u } = ln(), s = n.paymentMethodOptionsResponse.payment_acceptor.id;
|
|
2602
|
+
function d(v) {
|
|
2603
|
+
return sn({
|
|
2584
2604
|
gateway: "ADYEN",
|
|
2585
|
-
paymentAcceptorId:
|
|
2605
|
+
paymentAcceptorId: s,
|
|
2586
2606
|
paymentMethodType: "applepay",
|
|
2587
2607
|
...v
|
|
2588
2608
|
});
|
|
2589
2609
|
}
|
|
2590
2610
|
const I = async () => {
|
|
2591
|
-
const { ApplePay: v } = await
|
|
2611
|
+
const { ApplePay: v } = await Ke(), H = await Jt(n, r), z = new v(H, {
|
|
2592
2612
|
isExpress: !0,
|
|
2593
2613
|
recurringPaymentRequest: {
|
|
2594
2614
|
paymentDescription: n.billingInformation.description,
|
|
@@ -2613,7 +2633,7 @@ const Ro = {
|
|
|
2613
2633
|
type: "final",
|
|
2614
2634
|
paymentTiming: "recurring",
|
|
2615
2635
|
recurringPaymentStartDate: n.billingInformation.regular.startDate,
|
|
2616
|
-
...
|
|
2636
|
+
...g(
|
|
2617
2637
|
n.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
|
|
2618
2638
|
)
|
|
2619
2639
|
}
|
|
@@ -2621,169 +2641,169 @@ const Ro = {
|
|
|
2621
2641
|
},
|
|
2622
2642
|
requiredBillingContactFields: ["postalAddress"],
|
|
2623
2643
|
requiredShippingContactFields: ["email"],
|
|
2624
|
-
onPaymentMethodSelected: async (
|
|
2625
|
-
var
|
|
2626
|
-
const { invoicePreview: B, trialInvoicePreview:
|
|
2627
|
-
...((
|
|
2628
|
-
postal_code:
|
|
2644
|
+
onPaymentMethodSelected: async (A, E, m) => {
|
|
2645
|
+
var de, l, P, c, y, D, T;
|
|
2646
|
+
const { invoicePreview: B, trialInvoicePreview: S } = await n.onBillingInformationChange({
|
|
2647
|
+
...((de = m.paymentMethod.billingContact) == null ? void 0 : de.postalCode) && {
|
|
2648
|
+
postal_code: m.paymentMethod.billingContact.postalCode
|
|
2629
2649
|
},
|
|
2630
|
-
...((
|
|
2631
|
-
city:
|
|
2650
|
+
...((l = m.paymentMethod.billingContact) == null ? void 0 : l.locality) && {
|
|
2651
|
+
city: m.paymentMethod.billingContact.locality
|
|
2632
2652
|
},
|
|
2633
|
-
...
|
|
2634
|
-
country:
|
|
2653
|
+
...f((P = m.paymentMethod.billingContact) == null ? void 0 : P.countryCode) && {
|
|
2654
|
+
country: f((c = m.paymentMethod.billingContact) == null ? void 0 : c.countryCode)
|
|
2635
2655
|
}
|
|
2636
|
-
}),
|
|
2637
|
-
|
|
2638
|
-
postal_code: (
|
|
2639
|
-
city: (
|
|
2640
|
-
country: (
|
|
2641
|
-
}),
|
|
2656
|
+
}), X = S ? S.invoice_amount_including_tax.quantity.toString() : B.invoice_amount_including_tax.quantity.toString();
|
|
2657
|
+
a("update-billing-information", {
|
|
2658
|
+
postal_code: (y = m.paymentMethod.billingContact) == null ? void 0 : y.postalCode,
|
|
2659
|
+
city: (D = m.paymentMethod.billingContact) == null ? void 0 : D.locality,
|
|
2660
|
+
country: (T = m.paymentMethod.billingContact) == null ? void 0 : T.countryCode
|
|
2661
|
+
}), A({
|
|
2642
2662
|
newTotal: {
|
|
2643
2663
|
label: n.billingInformation.regular.label,
|
|
2644
|
-
amount:
|
|
2664
|
+
amount: X,
|
|
2645
2665
|
type: "final"
|
|
2646
2666
|
}
|
|
2647
2667
|
});
|
|
2648
2668
|
},
|
|
2649
|
-
onError: (
|
|
2650
|
-
|
|
2669
|
+
onError: (A) => {
|
|
2670
|
+
r.error(
|
|
2651
2671
|
"APPLE_PAY_ERROR",
|
|
2652
2672
|
"Apple Pay error",
|
|
2653
|
-
|
|
2654
|
-
|
|
2673
|
+
d({ reason: "APPLE_PAY_ERROR", cause: A }),
|
|
2674
|
+
A
|
|
2655
2675
|
);
|
|
2656
2676
|
},
|
|
2657
|
-
onAuthorized: async (
|
|
2658
|
-
var
|
|
2677
|
+
onAuthorized: async (A, E) => {
|
|
2678
|
+
var m;
|
|
2659
2679
|
try {
|
|
2660
|
-
const B =
|
|
2661
|
-
|
|
2662
|
-
paymentAcceptorId:
|
|
2680
|
+
const B = A.authorizedEvent;
|
|
2681
|
+
r.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", {
|
|
2682
|
+
paymentAcceptorId: s,
|
|
2663
2683
|
hasPaymentMethod: !!B.payment.token.paymentMethod,
|
|
2664
2684
|
hasPaymentData: !!B.payment.token.paymentData,
|
|
2665
2685
|
hasBillingContact: !!B.payment.billingContact
|
|
2666
2686
|
});
|
|
2667
|
-
const
|
|
2668
|
-
|
|
2687
|
+
const S = B.payment.billingContact, X = A.billingAddress;
|
|
2688
|
+
S ? a(
|
|
2669
2689
|
"update-billing-information",
|
|
2670
|
-
h(
|
|
2671
|
-
) :
|
|
2690
|
+
h(S)
|
|
2691
|
+
) : X && a(
|
|
2672
2692
|
"update-billing-information",
|
|
2673
|
-
|
|
2693
|
+
C(X)
|
|
2674
2694
|
);
|
|
2675
|
-
const
|
|
2676
|
-
payment_method:
|
|
2695
|
+
const de = {
|
|
2696
|
+
payment_method: Ct(
|
|
2677
2697
|
B.payment.token.paymentMethod
|
|
2678
2698
|
),
|
|
2679
|
-
browser_info:
|
|
2699
|
+
browser_info: Ct(
|
|
2680
2700
|
B.payment.token.paymentData
|
|
2681
2701
|
)
|
|
2682
|
-
},
|
|
2683
|
-
paymentAcceptorId:
|
|
2702
|
+
}, l = Gi({
|
|
2703
|
+
paymentAcceptorId: s,
|
|
2684
2704
|
redirectUrl: window.location.href
|
|
2685
|
-
}),
|
|
2686
|
-
payment_acceptor_id:
|
|
2687
|
-
payment_gateway_variant:
|
|
2705
|
+
}), P = await u({
|
|
2706
|
+
payment_acceptor_id: s,
|
|
2707
|
+
payment_gateway_variant: Yo,
|
|
2688
2708
|
adyen: {
|
|
2689
|
-
...
|
|
2709
|
+
...de,
|
|
2690
2710
|
store_payment_method: !0
|
|
2691
2711
|
// Required for recurring payments
|
|
2692
2712
|
},
|
|
2693
2713
|
amount: n.amount,
|
|
2694
|
-
return_url:
|
|
2714
|
+
return_url: l
|
|
2695
2715
|
});
|
|
2696
|
-
if (
|
|
2697
|
-
paymentAcceptorId:
|
|
2698
|
-
status:
|
|
2699
|
-
}),
|
|
2700
|
-
|
|
2716
|
+
if (r.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
|
|
2717
|
+
paymentAcceptorId: s,
|
|
2718
|
+
status: P.status
|
|
2719
|
+
}), P.status === "FAILURE") {
|
|
2720
|
+
r.error(
|
|
2701
2721
|
"APPLE_PAY_AUTHORIZATION_FAILED",
|
|
2702
2722
|
"Payment authorization failed",
|
|
2703
|
-
|
|
2723
|
+
d({
|
|
2704
2724
|
reason: "APPLE_PAY_AUTHORIZATION_REJECTED",
|
|
2705
|
-
extra: { paymentStatus:
|
|
2725
|
+
extra: { paymentStatus: P.status }
|
|
2706
2726
|
})
|
|
2707
|
-
),
|
|
2727
|
+
), E.reject();
|
|
2708
2728
|
return;
|
|
2709
2729
|
}
|
|
2710
|
-
if (
|
|
2711
|
-
|
|
2730
|
+
if (P.status === "ACTION_REQUIRED") {
|
|
2731
|
+
r.warn(
|
|
2712
2732
|
"APPLE_PAY_ACTION_REQUIRED",
|
|
2713
2733
|
"Payment requires additional action",
|
|
2714
|
-
|
|
2734
|
+
d({
|
|
2715
2735
|
reason: "APPLE_PAY_ACTION_REQUIRED",
|
|
2716
|
-
extra: { actionType: (
|
|
2736
|
+
extra: { actionType: (m = P.action) == null ? void 0 : m.method }
|
|
2717
2737
|
})
|
|
2718
|
-
),
|
|
2738
|
+
), E.reject();
|
|
2719
2739
|
return;
|
|
2720
2740
|
}
|
|
2721
|
-
|
|
2741
|
+
r.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), E.resolve();
|
|
2722
2742
|
} catch (B) {
|
|
2723
|
-
|
|
2743
|
+
r.error(
|
|
2724
2744
|
"APPLE_PAY_AUTHORIZATION_FAILED",
|
|
2725
2745
|
"Apple Pay authorization failed",
|
|
2726
|
-
|
|
2746
|
+
d({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: B }),
|
|
2727
2747
|
B
|
|
2728
|
-
),
|
|
2748
|
+
), E.reject();
|
|
2729
2749
|
}
|
|
2730
2750
|
}
|
|
2731
2751
|
});
|
|
2732
|
-
if (!
|
|
2733
|
-
|
|
2752
|
+
if (!o.value) {
|
|
2753
|
+
r.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
|
|
2734
2754
|
return;
|
|
2735
2755
|
}
|
|
2736
2756
|
try {
|
|
2737
|
-
await
|
|
2738
|
-
} catch (
|
|
2739
|
-
|
|
2757
|
+
await z.isAvailable(), z.mount(o.value), a("ready");
|
|
2758
|
+
} catch (A) {
|
|
2759
|
+
r.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, A);
|
|
2740
2760
|
}
|
|
2741
|
-
},
|
|
2761
|
+
}, g = (v) => {
|
|
2742
2762
|
if (!v.value)
|
|
2743
2763
|
return;
|
|
2744
|
-
let
|
|
2745
|
-
if (v.type === "WEEK" && (
|
|
2764
|
+
let H = v.value ?? 1, z = v.type.toLowerCase();
|
|
2765
|
+
if (v.type === "WEEK" && (z = "day", H = v.value * 7), z === "day" || z === "month" || z === "year" || z === "hour" || z === "minute")
|
|
2746
2766
|
return {
|
|
2747
|
-
recurringPaymentIntervalUnit:
|
|
2748
|
-
recurringPaymentIntervalCount:
|
|
2767
|
+
recurringPaymentIntervalUnit: z,
|
|
2768
|
+
recurringPaymentIntervalCount: H
|
|
2749
2769
|
};
|
|
2750
2770
|
}, h = (v) => ({
|
|
2751
2771
|
postal_code: v.postalCode,
|
|
2752
2772
|
city: v.locality,
|
|
2753
2773
|
country: v.countryCode
|
|
2754
|
-
}),
|
|
2774
|
+
}), C = (v) => ({
|
|
2755
2775
|
postal_code: v.postalCode,
|
|
2756
2776
|
city: v.city,
|
|
2757
2777
|
country: v.country
|
|
2758
|
-
}),
|
|
2759
|
-
var
|
|
2760
|
-
const v = (
|
|
2778
|
+
}), f = (v) => v && L(v) ? v : void 0, L = (v) => Qe(v), x = () => {
|
|
2779
|
+
var H;
|
|
2780
|
+
const v = (H = o.value) == null ? void 0 : H.querySelector("apple-pay-button");
|
|
2761
2781
|
if (v) {
|
|
2762
|
-
const
|
|
2782
|
+
const z = new MouseEvent("click", {
|
|
2763
2783
|
bubbles: !0,
|
|
2764
2784
|
cancelable: !0,
|
|
2765
2785
|
view: window
|
|
2766
2786
|
});
|
|
2767
|
-
v.dispatchEvent(
|
|
2787
|
+
v.dispatchEvent(z);
|
|
2768
2788
|
}
|
|
2769
2789
|
};
|
|
2770
|
-
return
|
|
2790
|
+
return je(() => {
|
|
2771
2791
|
I();
|
|
2772
|
-
}), (v,
|
|
2773
|
-
e.isVisible ? (
|
|
2792
|
+
}), (v, H) => (p(), $(me, null, [
|
|
2793
|
+
e.isVisible ? (p(), O(at, {
|
|
2774
2794
|
key: 0,
|
|
2775
2795
|
type: "applepay",
|
|
2776
|
-
onClick:
|
|
2777
|
-
})) :
|
|
2778
|
-
|
|
2779
|
-
|
|
2796
|
+
onClick: x
|
|
2797
|
+
})) : U("", !0),
|
|
2798
|
+
w("div", Go, [
|
|
2799
|
+
w("div", {
|
|
2780
2800
|
ref_key: "applePayButtonRef",
|
|
2781
|
-
ref:
|
|
2801
|
+
ref: o
|
|
2782
2802
|
}, null, 512)
|
|
2783
2803
|
])
|
|
2784
2804
|
], 64));
|
|
2785
2805
|
}
|
|
2786
|
-
}),
|
|
2806
|
+
}), Ho = { class: "relative overflow-hidden" }, Qo = /* @__PURE__ */ se({
|
|
2787
2807
|
__name: "ExpressPaymentMethodPaypal",
|
|
2788
2808
|
props: {
|
|
2789
2809
|
amount: { type: Object },
|
|
@@ -2795,18 +2815,18 @@ const Ro = {
|
|
|
2795
2815
|
},
|
|
2796
2816
|
emits: ["ready", "update-billing-information"],
|
|
2797
2817
|
setup(e, { emit: i }) {
|
|
2798
|
-
const n = e,
|
|
2818
|
+
const n = e, a = i, o = Ae(), { buttonRef: r } = ei({
|
|
2799
2819
|
props: n,
|
|
2800
|
-
onMissingButton: () =>
|
|
2820
|
+
onMissingButton: () => o.error(
|
|
2801
2821
|
"EXPRESS_CHECKOUT_PAYPAL_ERROR",
|
|
2802
2822
|
"The PayPal button reference is not found and cannot be mounted"
|
|
2803
2823
|
),
|
|
2804
|
-
onMountFailed: (
|
|
2805
|
-
error:
|
|
2824
|
+
onMountFailed: (u) => o.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
|
|
2825
|
+
error: u
|
|
2806
2826
|
}),
|
|
2807
|
-
create: async (
|
|
2808
|
-
const { PayPal:
|
|
2809
|
-
return new
|
|
2827
|
+
create: async (u) => {
|
|
2828
|
+
const { PayPal: s } = await Ke();
|
|
2829
|
+
return new s(u, {
|
|
2810
2830
|
isExpress: !0,
|
|
2811
2831
|
blockPayPalPayLaterButton: !0,
|
|
2812
2832
|
blockPayPalCreditButton: !0,
|
|
@@ -2815,25 +2835,25 @@ const Ro = {
|
|
|
2815
2835
|
height: 55
|
|
2816
2836
|
},
|
|
2817
2837
|
onInit: () => {
|
|
2818
|
-
|
|
2838
|
+
a("ready");
|
|
2819
2839
|
}
|
|
2820
2840
|
});
|
|
2821
2841
|
}
|
|
2822
2842
|
});
|
|
2823
|
-
return (
|
|
2824
|
-
e.isVisible ? (
|
|
2843
|
+
return (u, s) => (p(), $("div", Ho, [
|
|
2844
|
+
e.isVisible ? (p(), O(at, {
|
|
2825
2845
|
key: 0,
|
|
2826
2846
|
type: "paypal",
|
|
2827
2847
|
class: "w-full"
|
|
2828
|
-
})) :
|
|
2829
|
-
|
|
2848
|
+
})) : U("", !0),
|
|
2849
|
+
w("div", {
|
|
2830
2850
|
ref_key: "paypalButtonRef",
|
|
2831
|
-
ref:
|
|
2851
|
+
ref: r,
|
|
2832
2852
|
class: "absolute inset-0 opacity-[0.0001]"
|
|
2833
2853
|
}, null, 512)
|
|
2834
2854
|
]));
|
|
2835
2855
|
}
|
|
2836
|
-
}),
|
|
2856
|
+
}), Zo = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Xo = /* @__PURE__ */ se({
|
|
2837
2857
|
__name: "ExpressPaymentMethodGooglePay",
|
|
2838
2858
|
props: {
|
|
2839
2859
|
amount: { type: Object },
|
|
@@ -2845,53 +2865,53 @@ const Ro = {
|
|
|
2845
2865
|
},
|
|
2846
2866
|
emits: ["ready", "update-billing-information"],
|
|
2847
2867
|
setup(e, { emit: i }) {
|
|
2848
|
-
const n = e,
|
|
2868
|
+
const n = e, a = i, o = Ae(), { buttonRef: r } = ei({
|
|
2849
2869
|
props: n,
|
|
2850
|
-
onMissingButton: () =>
|
|
2870
|
+
onMissingButton: () => o.error(
|
|
2851
2871
|
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2852
2872
|
"The Google Pay button reference is not found and cannot be mounted"
|
|
2853
2873
|
),
|
|
2854
|
-
onMountFailed: (
|
|
2874
|
+
onMountFailed: (s) => o.error(
|
|
2855
2875
|
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2856
2876
|
"Failed mounting Google Pay express button",
|
|
2857
2877
|
{},
|
|
2858
|
-
|
|
2878
|
+
s
|
|
2859
2879
|
),
|
|
2860
|
-
create: async (
|
|
2861
|
-
const { GooglePay:
|
|
2862
|
-
return new
|
|
2880
|
+
create: async (s) => {
|
|
2881
|
+
const { GooglePay: d } = await Ke();
|
|
2882
|
+
return new d(s, { isExpress: !0 });
|
|
2863
2883
|
},
|
|
2864
|
-
afterMount: () =>
|
|
2865
|
-
}),
|
|
2866
|
-
var
|
|
2867
|
-
const
|
|
2868
|
-
if (
|
|
2884
|
+
afterMount: () => a("ready")
|
|
2885
|
+
}), u = () => {
|
|
2886
|
+
var d;
|
|
2887
|
+
const s = (d = r.value) == null ? void 0 : d.querySelector("#gpay-button-online-api-id");
|
|
2888
|
+
if (s) {
|
|
2869
2889
|
const I = new MouseEvent("click", {
|
|
2870
2890
|
bubbles: !0,
|
|
2871
2891
|
cancelable: !0,
|
|
2872
2892
|
view: window
|
|
2873
2893
|
});
|
|
2874
|
-
|
|
2894
|
+
s.dispatchEvent(I);
|
|
2875
2895
|
}
|
|
2876
2896
|
};
|
|
2877
|
-
return (
|
|
2878
|
-
e.isVisible ? (
|
|
2897
|
+
return (s, d) => (p(), $(me, null, [
|
|
2898
|
+
e.isVisible ? (p(), O(at, {
|
|
2879
2899
|
key: 0,
|
|
2880
2900
|
type: "googlepay",
|
|
2881
|
-
onClick:
|
|
2882
|
-
})) :
|
|
2883
|
-
|
|
2884
|
-
|
|
2901
|
+
onClick: u
|
|
2902
|
+
})) : U("", !0),
|
|
2903
|
+
w("div", Zo, [
|
|
2904
|
+
w("div", {
|
|
2885
2905
|
ref_key: "googlePayButtonRef",
|
|
2886
|
-
ref:
|
|
2906
|
+
ref: r
|
|
2887
2907
|
}, null, 512)
|
|
2888
2908
|
])
|
|
2889
2909
|
], 64));
|
|
2890
2910
|
}
|
|
2891
|
-
}),
|
|
2911
|
+
}), Wo = {
|
|
2892
2912
|
key: 0,
|
|
2893
2913
|
class: "mt-4n"
|
|
2894
|
-
},
|
|
2914
|
+
}, qo = { class: "mb-2" }, Jo = { class: "grid grid-cols-6 gap-1 md:gap-2" }, ea = { class: "mt-4 h-4" }, ta = 2, ia = /* @__PURE__ */ se({
|
|
2895
2915
|
__name: "ExpressPaymentMethods",
|
|
2896
2916
|
props: {
|
|
2897
2917
|
amount: { type: Object },
|
|
@@ -2903,100 +2923,100 @@ const Ro = {
|
|
|
2903
2923
|
},
|
|
2904
2924
|
emits: ["update-billing-information"],
|
|
2905
2925
|
setup(e) {
|
|
2906
|
-
const i = ["applepay"], n = e, { $t:
|
|
2907
|
-
var
|
|
2926
|
+
const i = ["applepay"], n = e, { $t: a } = he(), o = Y(!1), r = Y(!1), u = Y(!1), s = _(() => {
|
|
2927
|
+
var f;
|
|
2908
2928
|
if (i.includes("applepay"))
|
|
2909
|
-
return (
|
|
2910
|
-
(
|
|
2911
|
-
var
|
|
2912
|
-
return (
|
|
2929
|
+
return (f = n.paymentMethodsOptionsResponse) == null ? void 0 : f.find(
|
|
2930
|
+
(L) => {
|
|
2931
|
+
var x;
|
|
2932
|
+
return (x = L.options) == null ? void 0 : x.some(
|
|
2913
2933
|
(v) => v.name.toLowerCase() === "apple pay" && v.payment_gateway_variant === "ADYEN"
|
|
2914
2934
|
);
|
|
2915
2935
|
}
|
|
2916
2936
|
);
|
|
2917
|
-
}),
|
|
2918
|
-
var
|
|
2937
|
+
}), d = _(() => {
|
|
2938
|
+
var f;
|
|
2919
2939
|
if (i.includes("paypal"))
|
|
2920
|
-
return (
|
|
2921
|
-
(
|
|
2922
|
-
var
|
|
2923
|
-
return (
|
|
2940
|
+
return (f = n.paymentMethodsOptionsResponse) == null ? void 0 : f.find(
|
|
2941
|
+
(L) => {
|
|
2942
|
+
var x;
|
|
2943
|
+
return (x = L.options) == null ? void 0 : x.some(
|
|
2924
2944
|
(v) => v.name.toLowerCase() === "paypal" && v.payment_gateway_variant === "ADYEN"
|
|
2925
2945
|
);
|
|
2926
2946
|
}
|
|
2927
2947
|
);
|
|
2928
|
-
}), I =
|
|
2929
|
-
var
|
|
2948
|
+
}), I = _(() => {
|
|
2949
|
+
var f;
|
|
2930
2950
|
if (i.includes("googlepay"))
|
|
2931
|
-
return (
|
|
2932
|
-
(
|
|
2933
|
-
var
|
|
2934
|
-
return (
|
|
2951
|
+
return (f = n.paymentMethodsOptionsResponse) == null ? void 0 : f.find(
|
|
2952
|
+
(L) => {
|
|
2953
|
+
var x;
|
|
2954
|
+
return (x = L.options) == null ? void 0 : x.some(
|
|
2935
2955
|
(v) => v.name.toLowerCase() === "google pay" && v.payment_gateway_variant === "ADYEN"
|
|
2936
2956
|
);
|
|
2937
2957
|
}
|
|
2938
2958
|
);
|
|
2939
|
-
}),
|
|
2959
|
+
}), g = _(() => !!(s.value || I.value || d.value)), h = _(() => {
|
|
2940
2960
|
var v;
|
|
2941
2961
|
if (((v = n.paymentMethodsOptionsResponse) == null ? void 0 : v.length) === 0)
|
|
2942
2962
|
return !1;
|
|
2943
|
-
const
|
|
2944
|
-
return
|
|
2945
|
-
}),
|
|
2946
|
-
return (
|
|
2947
|
-
|
|
2948
|
-
h.value ? (
|
|
2963
|
+
const f = !s.value || o.value, L = !I.value || r.value, x = !d.value || u.value;
|
|
2964
|
+
return f && L && x;
|
|
2965
|
+
}), C = _(() => h.value ? (s.value ? 1 : 0) + (I.value ? 1 : 0) + (d.value ? 1 : 0) : ta);
|
|
2966
|
+
return (f, L) => g.value ? (p(), $("div", Wo, [
|
|
2967
|
+
w("div", qo, [
|
|
2968
|
+
h.value ? (p(), O(t(le), {
|
|
2949
2969
|
key: 1,
|
|
2950
2970
|
variant: "heading-3",
|
|
2951
2971
|
tag: "h2"
|
|
2952
2972
|
}, {
|
|
2953
2973
|
default: b(() => [
|
|
2954
|
-
|
|
2974
|
+
K(V(t(a)({
|
|
2955
2975
|
defaultMessage: "Subscribe instantly with",
|
|
2956
2976
|
id: "checkout.express_payment_methods.title",
|
|
2957
2977
|
description: "The title of the express payment methods block in the checkout form"
|
|
2958
2978
|
})), 1)
|
|
2959
2979
|
]),
|
|
2960
2980
|
_: 1
|
|
2961
|
-
})) : (
|
|
2981
|
+
})) : (p(), O(be, {
|
|
2962
2982
|
key: 0,
|
|
2963
2983
|
variant: "title"
|
|
2964
2984
|
}))
|
|
2965
2985
|
]),
|
|
2966
|
-
|
|
2967
|
-
h.value ?
|
|
2968
|
-
|
|
2969
|
-
|
|
2986
|
+
w("div", Jo, [
|
|
2987
|
+
h.value ? U("", !0) : (p(), $(me, { key: 0 }, [
|
|
2988
|
+
M(be, { class: "col-span-3 h-11" }),
|
|
2989
|
+
M(be, { class: "col-span-3 h-11" })
|
|
2970
2990
|
], 64)),
|
|
2971
|
-
|
|
2972
|
-
class:
|
|
2973
|
-
hidden: !
|
|
2974
|
-
"!col-span-6":
|
|
2975
|
-
"md:!col-span-3":
|
|
2976
|
-
"!col-span-6 md:!col-span-2":
|
|
2991
|
+
w("div", {
|
|
2992
|
+
class: Ie(["col-span-3 md:col-span-2", {
|
|
2993
|
+
hidden: !s.value,
|
|
2994
|
+
"!col-span-6": C.value === 1,
|
|
2995
|
+
"md:!col-span-3": C.value === 2,
|
|
2996
|
+
"!col-span-6 md:!col-span-2": C.value === 3
|
|
2977
2997
|
}])
|
|
2978
2998
|
}, [
|
|
2979
|
-
|
|
2999
|
+
s.value ? (p(), O(Ko, {
|
|
2980
3000
|
key: 0,
|
|
2981
3001
|
amount: e.amount,
|
|
2982
3002
|
"billing-information": e.billingInformation,
|
|
2983
3003
|
"country-code": e.countryCode,
|
|
2984
3004
|
locale: e.locale,
|
|
2985
3005
|
"is-visible": h.value,
|
|
2986
|
-
"payment-method-options-response":
|
|
3006
|
+
"payment-method-options-response": s.value,
|
|
2987
3007
|
"on-billing-information-change": e.onBillingInformationChange,
|
|
2988
|
-
onReady:
|
|
2989
|
-
onUpdateBillingInformation:
|
|
2990
|
-
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) :
|
|
3008
|
+
onReady: L[0] || (L[0] = (x) => o.value = !0),
|
|
3009
|
+
onUpdateBillingInformation: L[1] || (L[1] = (x) => f.$emit("update-billing-information", x))
|
|
3010
|
+
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) : U("", !0)
|
|
2991
3011
|
], 2),
|
|
2992
|
-
|
|
2993
|
-
class:
|
|
3012
|
+
w("div", {
|
|
3013
|
+
class: Ie(["col-span-3 md:col-span-2", {
|
|
2994
3014
|
hidden: !I.value,
|
|
2995
|
-
"col-span-6 md:col-span-6":
|
|
2996
|
-
"md:!col-span-3":
|
|
3015
|
+
"col-span-6 md:col-span-6": C.value === 1,
|
|
3016
|
+
"md:!col-span-3": C.value === 2
|
|
2997
3017
|
}])
|
|
2998
3018
|
}, [
|
|
2999
|
-
I.value ? (
|
|
3019
|
+
I.value ? (p(), O(Xo, {
|
|
3000
3020
|
key: 0,
|
|
3001
3021
|
amount: e.amount,
|
|
3002
3022
|
"billing-information": e.billingInformation,
|
|
@@ -3004,48 +3024,48 @@ const Ro = {
|
|
|
3004
3024
|
locale: e.locale,
|
|
3005
3025
|
"is-visible": h.value,
|
|
3006
3026
|
"payment-method-options-response": I.value,
|
|
3007
|
-
onReady:
|
|
3008
|
-
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) :
|
|
3027
|
+
onReady: L[2] || (L[2] = (x) => r.value = !0)
|
|
3028
|
+
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : U("", !0)
|
|
3009
3029
|
], 2),
|
|
3010
|
-
|
|
3011
|
-
class:
|
|
3012
|
-
hidden: !
|
|
3013
|
-
"col-span-6 md:col-span-6":
|
|
3014
|
-
"md:!col-span-3":
|
|
3030
|
+
w("div", {
|
|
3031
|
+
class: Ie(["col-span-3 md:col-span-2", {
|
|
3032
|
+
hidden: !d.value,
|
|
3033
|
+
"col-span-6 md:col-span-6": C.value === 1,
|
|
3034
|
+
"md:!col-span-3": C.value === 2
|
|
3015
3035
|
}])
|
|
3016
3036
|
}, [
|
|
3017
|
-
|
|
3037
|
+
d.value ? (p(), O(Qo, {
|
|
3018
3038
|
key: 0,
|
|
3019
3039
|
amount: e.amount,
|
|
3020
3040
|
"billing-information": e.billingInformation,
|
|
3021
3041
|
"country-code": e.countryCode,
|
|
3022
3042
|
locale: e.locale,
|
|
3023
3043
|
"is-visible": h.value,
|
|
3024
|
-
"payment-method-options-response":
|
|
3025
|
-
onReady:
|
|
3026
|
-
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) :
|
|
3044
|
+
"payment-method-options-response": d.value,
|
|
3045
|
+
onReady: L[3] || (L[3] = (x) => u.value = !0)
|
|
3046
|
+
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : U("", !0)
|
|
3027
3047
|
], 2)
|
|
3028
3048
|
]),
|
|
3029
|
-
|
|
3030
|
-
h.value ? (
|
|
3049
|
+
w("div", ea, [
|
|
3050
|
+
h.value ? (p(), O(t(rn), {
|
|
3031
3051
|
key: 1,
|
|
3032
|
-
text: t(
|
|
3052
|
+
text: t(a)({
|
|
3033
3053
|
defaultMessage: "Or",
|
|
3034
3054
|
id: "checkout.express_payment_methods.divider_text",
|
|
3035
3055
|
description: "The text of the divider text in the express payment methods block in the checkout form"
|
|
3036
3056
|
}),
|
|
3037
3057
|
"text-position": "center"
|
|
3038
|
-
}, null, 8, ["text"])) : (
|
|
3058
|
+
}, null, 8, ["text"])) : (p(), O(be, {
|
|
3039
3059
|
key: 0,
|
|
3040
3060
|
variant: "divider-text"
|
|
3041
3061
|
}))
|
|
3042
3062
|
])
|
|
3043
|
-
])) :
|
|
3063
|
+
])) : U("", !0);
|
|
3044
3064
|
}
|
|
3045
|
-
}),
|
|
3065
|
+
}), na = ["aria-expanded", "aria-label"], oa = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, aa = { class: "flex flex-row items-center gap-2" }, ra = ["onKeydown"], la = ["aria-label"], sa = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, ca = { class: "flex flex-row items-center gap-2" }, ua = {
|
|
3046
3066
|
class: "sr-only",
|
|
3047
3067
|
"aria-live": "polite"
|
|
3048
|
-
},
|
|
3068
|
+
}, da = /* @__PURE__ */ se({
|
|
3049
3069
|
inheritAttrs: !1,
|
|
3050
3070
|
__name: "PromotionCodeSection",
|
|
3051
3071
|
props: {
|
|
@@ -3053,14 +3073,17 @@ const Ro = {
|
|
|
3053
3073
|
},
|
|
3054
3074
|
emits: ["update:appliedCode", "apply", "remove"],
|
|
3055
3075
|
setup(e, { emit: i }) {
|
|
3056
|
-
const { $t: n } =
|
|
3057
|
-
() =>
|
|
3076
|
+
const { $t: n } = he(), a = e, o = i, r = Y(!1), u = Y(""), s = Y(""), d = Y(null), I = Y(null), g = un("promotion-code-"), h = `${g}-label`, C = `${g}-panel`, f = _({
|
|
3077
|
+
get: () => u.value,
|
|
3078
|
+
set: (l) => u.value = Li(l)
|
|
3079
|
+
}), L = _(() => a.promotionCode !== null && a.promotionCode !== ""), x = _(() => u.value.trim().length > 0), v = _(
|
|
3080
|
+
() => a.promotionCode ?? n({
|
|
3058
3081
|
defaultMessage: "Promotion applied",
|
|
3059
3082
|
id: "checkout.promotion_code.applied_label",
|
|
3060
3083
|
description: "Fallback label for an applied promotion code in checkout"
|
|
3061
3084
|
})
|
|
3062
|
-
),
|
|
3063
|
-
() =>
|
|
3085
|
+
), H = _(
|
|
3086
|
+
() => r.value ? n({
|
|
3064
3087
|
defaultMessage: "Collapse promotion code input",
|
|
3065
3088
|
id: "checkout.promotion_code.collapse_aria_label",
|
|
3066
3089
|
description: "Aria label for the promotion code toggle button in checkout, while the input is open"
|
|
@@ -3069,119 +3092,119 @@ const Ro = {
|
|
|
3069
3092
|
id: "checkout.promotion_code.expand_aria_label",
|
|
3070
3093
|
description: "Aria label for the promotion code toggle button in checkout, while the input is closed"
|
|
3071
3094
|
})
|
|
3072
|
-
),
|
|
3095
|
+
), z = _(
|
|
3073
3096
|
() => n({
|
|
3074
3097
|
defaultMessage: "Apply promotion code",
|
|
3075
3098
|
id: "checkout.promotion_code.apply_aria_label",
|
|
3076
3099
|
description: "Aria label for the promotion code apply button in checkout"
|
|
3077
3100
|
})
|
|
3078
|
-
),
|
|
3101
|
+
), A = _(
|
|
3079
3102
|
() => n({
|
|
3080
3103
|
defaultMessage: "Remove promotion code",
|
|
3081
3104
|
id: "checkout.promotion_code.remove_aria_label",
|
|
3082
3105
|
description: "Aria label for the promotion code remove button in checkout"
|
|
3083
3106
|
})
|
|
3084
|
-
),
|
|
3085
|
-
|
|
3086
|
-
},
|
|
3087
|
-
var
|
|
3088
|
-
const
|
|
3089
|
-
|
|
3090
|
-
}, p = () => {
|
|
3091
|
-
l.value && (l.value = !1);
|
|
3107
|
+
), E = () => {
|
|
3108
|
+
u.value = "";
|
|
3109
|
+
}, m = () => {
|
|
3110
|
+
var P;
|
|
3111
|
+
const l = (P = I.value) == null ? void 0 : P.querySelector("input");
|
|
3112
|
+
l instanceof HTMLInputElement && l.focus();
|
|
3092
3113
|
}, B = () => {
|
|
3093
|
-
|
|
3094
|
-
},
|
|
3114
|
+
r.value && (r.value = !1);
|
|
3115
|
+
}, S = () => {
|
|
3116
|
+
L.value || (r.value = !r.value);
|
|
3117
|
+
}, X = () => {
|
|
3095
3118
|
if (!x.value)
|
|
3096
3119
|
return;
|
|
3097
|
-
const
|
|
3098
|
-
|
|
3120
|
+
const l = u.value.trim();
|
|
3121
|
+
o("update:appliedCode", l), o("apply", l), s.value = n({
|
|
3099
3122
|
defaultMessage: "Promotion code applied",
|
|
3100
3123
|
id: "checkout.promotion_code.applied_status",
|
|
3101
3124
|
description: "Aria live message when a promotion code is applied in checkout"
|
|
3102
|
-
}),
|
|
3103
|
-
},
|
|
3104
|
-
|
|
3125
|
+
}), r.value = !1;
|
|
3126
|
+
}, de = () => {
|
|
3127
|
+
o("update:appliedCode", null), o("remove"), s.value = n({
|
|
3105
3128
|
defaultMessage: "Promotion code removed",
|
|
3106
3129
|
id: "checkout.promotion_code.removed_status",
|
|
3107
3130
|
description: "Aria live message when a promotion code is removed in checkout"
|
|
3108
|
-
}),
|
|
3109
|
-
var
|
|
3110
|
-
(
|
|
3131
|
+
}), E(), qe(() => {
|
|
3132
|
+
var l;
|
|
3133
|
+
(l = d.value) == null || l.focus();
|
|
3111
3134
|
});
|
|
3112
3135
|
};
|
|
3113
|
-
return
|
|
3114
|
-
if (!
|
|
3115
|
-
|
|
3116
|
-
var
|
|
3117
|
-
(
|
|
3136
|
+
return Oe(r, (l) => {
|
|
3137
|
+
if (!l) {
|
|
3138
|
+
E(), qe(() => {
|
|
3139
|
+
var P;
|
|
3140
|
+
(P = d.value) == null || P.focus();
|
|
3118
3141
|
});
|
|
3119
3142
|
return;
|
|
3120
3143
|
}
|
|
3121
|
-
|
|
3122
|
-
|
|
3144
|
+
qe(() => {
|
|
3145
|
+
m();
|
|
3123
3146
|
});
|
|
3124
|
-
}),
|
|
3125
|
-
() =>
|
|
3126
|
-
(
|
|
3127
|
-
|
|
3147
|
+
}), Oe(
|
|
3148
|
+
() => a.promotionCode,
|
|
3149
|
+
(l) => {
|
|
3150
|
+
l || E();
|
|
3128
3151
|
}
|
|
3129
|
-
), (
|
|
3130
|
-
|
|
3152
|
+
), (l, P) => (p(), $(me, null, [
|
|
3153
|
+
L.value ? (p(), O(t(ye), Pt({ key: 1 }, l.$attrs, {
|
|
3131
3154
|
"no-border": "",
|
|
3132
3155
|
"no-spacing": "",
|
|
3133
3156
|
"content-background": "none",
|
|
3134
3157
|
class: "relative w-full"
|
|
3135
3158
|
}), {
|
|
3136
3159
|
default: b(() => [
|
|
3137
|
-
|
|
3160
|
+
w("button", {
|
|
3138
3161
|
type: "button",
|
|
3139
3162
|
class: "w-full rounded border border-primary-900 bg-white",
|
|
3140
|
-
"aria-label":
|
|
3141
|
-
onClick:
|
|
3163
|
+
"aria-label": A.value,
|
|
3164
|
+
onClick: de
|
|
3142
3165
|
}, [
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3166
|
+
w("div", sa, [
|
|
3167
|
+
w("div", ca, [
|
|
3168
|
+
M(t(Be), { icon: "local_activity" }),
|
|
3169
|
+
M(t(le), {
|
|
3147
3170
|
variant: "body-sm",
|
|
3148
3171
|
class: "font-semibold"
|
|
3149
3172
|
}, {
|
|
3150
3173
|
default: b(() => [
|
|
3151
|
-
|
|
3174
|
+
K(V(v.value), 1)
|
|
3152
3175
|
]),
|
|
3153
3176
|
_: 1
|
|
3154
3177
|
})
|
|
3155
3178
|
]),
|
|
3156
|
-
|
|
3179
|
+
M(t(Be), { icon: "close" })
|
|
3157
3180
|
])
|
|
3158
|
-
], 8,
|
|
3181
|
+
], 8, la)
|
|
3159
3182
|
]),
|
|
3160
3183
|
_: 1
|
|
3161
|
-
}, 16)) : (
|
|
3184
|
+
}, 16)) : (p(), O(t(ye), Pt({ key: 0 }, l.$attrs, {
|
|
3162
3185
|
"no-spacing": "",
|
|
3163
3186
|
class: "relative w-full"
|
|
3164
3187
|
}), {
|
|
3165
3188
|
default: b(() => [
|
|
3166
|
-
|
|
3189
|
+
w("button", {
|
|
3167
3190
|
ref_key: "toggleRef",
|
|
3168
|
-
ref:
|
|
3191
|
+
ref: d,
|
|
3169
3192
|
type: "button",
|
|
3170
3193
|
class: "w-full",
|
|
3171
|
-
"aria-expanded":
|
|
3172
|
-
"aria-controls":
|
|
3173
|
-
"aria-label":
|
|
3174
|
-
onClick:
|
|
3194
|
+
"aria-expanded": r.value,
|
|
3195
|
+
"aria-controls": C,
|
|
3196
|
+
"aria-label": H.value,
|
|
3197
|
+
onClick: S
|
|
3175
3198
|
}, [
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3199
|
+
w("div", oa, [
|
|
3200
|
+
w("div", aa, [
|
|
3201
|
+
M(t(Be), { icon: "local_activity" }),
|
|
3202
|
+
M(t(le), {
|
|
3180
3203
|
id: h,
|
|
3181
3204
|
variant: "body-sm"
|
|
3182
3205
|
}, {
|
|
3183
3206
|
default: b(() => [
|
|
3184
|
-
|
|
3207
|
+
K(V(t(n)({
|
|
3185
3208
|
defaultMessage: "Add promotion code",
|
|
3186
3209
|
id: "checkout.promotion_code.add_label",
|
|
3187
3210
|
description: "Label for adding a promotion code in checkout"
|
|
@@ -3190,23 +3213,23 @@ const Ro = {
|
|
|
3190
3213
|
_: 1
|
|
3191
3214
|
})
|
|
3192
3215
|
]),
|
|
3193
|
-
|
|
3194
|
-
icon:
|
|
3216
|
+
M(t(Be), {
|
|
3217
|
+
icon: r.value ? "remove" : "add"
|
|
3195
3218
|
}, null, 8, ["icon"])
|
|
3196
3219
|
])
|
|
3197
|
-
], 8,
|
|
3198
|
-
|
|
3199
|
-
id:
|
|
3220
|
+
], 8, na),
|
|
3221
|
+
gi(w("div", {
|
|
3222
|
+
id: C,
|
|
3200
3223
|
ref_key: "panelRef",
|
|
3201
3224
|
ref: I,
|
|
3202
3225
|
role: "region",
|
|
3203
3226
|
"aria-labelledby": h,
|
|
3204
3227
|
class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
|
|
3205
|
-
onKeydown:
|
|
3228
|
+
onKeydown: Dt(Fe(B, ["prevent"]), ["esc"])
|
|
3206
3229
|
}, [
|
|
3207
|
-
|
|
3208
|
-
modelValue:
|
|
3209
|
-
"onUpdate:modelValue":
|
|
3230
|
+
M(t(_e), {
|
|
3231
|
+
modelValue: f.value,
|
|
3232
|
+
"onUpdate:modelValue": P[0] || (P[0] = (c) => f.value = c),
|
|
3210
3233
|
placeholder: t(n)({
|
|
3211
3234
|
defaultMessage: "Promotion code",
|
|
3212
3235
|
id: "checkout.promotion_code.placeholder",
|
|
@@ -3218,17 +3241,17 @@ const Ro = {
|
|
|
3218
3241
|
description: "Aria label for promotion code input in checkout"
|
|
3219
3242
|
}),
|
|
3220
3243
|
class: "w-full",
|
|
3221
|
-
onKeydown:
|
|
3244
|
+
onKeydown: Dt(Fe(X, ["prevent"]), ["enter"])
|
|
3222
3245
|
}, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
|
|
3223
|
-
|
|
3246
|
+
M(t(Ne), {
|
|
3224
3247
|
type: "button",
|
|
3225
3248
|
disabled: !x.value,
|
|
3226
|
-
"aria-label":
|
|
3249
|
+
"aria-label": z.value,
|
|
3227
3250
|
"aria-disabled": !x.value,
|
|
3228
|
-
onClick:
|
|
3251
|
+
onClick: X
|
|
3229
3252
|
}, {
|
|
3230
3253
|
default: b(() => [
|
|
3231
|
-
|
|
3254
|
+
K(V(t(n)({
|
|
3232
3255
|
defaultMessage: "Apply",
|
|
3233
3256
|
id: "checkout.promotion_code.apply_button",
|
|
3234
3257
|
description: "Button label for applying a promotion code in checkout"
|
|
@@ -3236,241 +3259,241 @@ const Ro = {
|
|
|
3236
3259
|
]),
|
|
3237
3260
|
_: 1
|
|
3238
3261
|
}, 8, ["disabled", "aria-label", "aria-disabled"])
|
|
3239
|
-
], 40,
|
|
3240
|
-
[
|
|
3262
|
+
], 40, ra), [
|
|
3263
|
+
[yi, r.value]
|
|
3241
3264
|
])
|
|
3242
3265
|
]),
|
|
3243
3266
|
_: 1
|
|
3244
3267
|
}, 16)),
|
|
3245
|
-
|
|
3268
|
+
w("span", ua, V(s.value), 1)
|
|
3246
3269
|
], 64));
|
|
3247
3270
|
}
|
|
3248
|
-
}),
|
|
3271
|
+
}), pa = { class: "sv-checkout__header" }, ma = { class: "sv-checkout__payment-methods" }, ga = {
|
|
3249
3272
|
key: 0,
|
|
3250
3273
|
class: "sv-checkout__payment-methods-body"
|
|
3251
|
-
},
|
|
3274
|
+
}, ya = {
|
|
3252
3275
|
key: 3,
|
|
3253
3276
|
class: "sv-checkout__payment-form"
|
|
3254
|
-
},
|
|
3277
|
+
}, va = { class: "sv-checkout__order-summary" }, fa = { class: "flex flex-col gap-2" }, _a = /* @__PURE__ */ se({
|
|
3255
3278
|
__name: "Checkout",
|
|
3256
3279
|
props: {
|
|
3257
3280
|
configuration: { type: Object }
|
|
3258
3281
|
},
|
|
3259
3282
|
emits: ["error", "ready"],
|
|
3260
3283
|
setup(e, { emit: i }) {
|
|
3261
|
-
var
|
|
3262
|
-
const n =
|
|
3263
|
-
() => import("./PaymentIntegrationForm-
|
|
3264
|
-
),
|
|
3265
|
-
() => import("./PlanCustomizationEditor-
|
|
3266
|
-
),
|
|
3267
|
-
if (I.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((
|
|
3284
|
+
var ut, dt, pt, mt, gt, yt, vt, ft, _t, ht, Mt, bt;
|
|
3285
|
+
const n = Nt(
|
|
3286
|
+
() => import("./PaymentIntegrationForm-UWoyZgsR.mjs")
|
|
3287
|
+
), a = Nt(
|
|
3288
|
+
() => import("./PlanCustomizationEditor-CpZeilm5.mjs")
|
|
3289
|
+
), o = e, r = i, u = _(() => o.configuration), s = Y(), d = Y(), I = Ae(), { $t: g, locale: h } = he(), { formatTimePeriod: C } = $t(), f = Yi(), { isMobileViewport: L } = Vt();
|
|
3290
|
+
if (I.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((ut = f.value) == null ? void 0 : ut.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
|
|
3268
3291
|
throw I.error("INVALID_TOKEN", "Invalid token"), Error("Invalid token");
|
|
3269
|
-
|
|
3292
|
+
f.value.status === "REVOKED" && (s.value = {
|
|
3270
3293
|
code: "RESOURCE_REVOKED",
|
|
3271
|
-
message: `Portal url with resource id "${
|
|
3272
|
-
}, I.error("RESOURCE_REVOKED", `Portal url with resource id "${
|
|
3273
|
-
const
|
|
3274
|
-
validatedEmail:
|
|
3275
|
-
validatedCountry:
|
|
3276
|
-
paymentMethodOptions:
|
|
3277
|
-
hasPaymentMethodOptionsError:
|
|
3294
|
+
message: `Portal url with resource id "${f.value.id}" is revoked`
|
|
3295
|
+
}, I.error("RESOURCE_REVOKED", `Portal url with resource id "${f.value.id}" is revoked`));
|
|
3296
|
+
const x = (pt = (dt = f.value) == null ? void 0 : dt.init_pricing_plan_subscription) == null ? void 0 : pt.pricing_plan_subscription_id, v = (gt = (mt = f.value) == null ? void 0 : mt.init_pricing_plan_subscription) == null ? void 0 : gt.success_url, H = ((ft = (vt = (yt = f.value) == null ? void 0 : yt.init_pricing_plan_subscription) == null ? void 0 : vt.note) == null ? void 0 : ft.trim()) || void 0, {
|
|
3297
|
+
validatedEmail: z,
|
|
3298
|
+
validatedCountry: A,
|
|
3299
|
+
paymentMethodOptions: E,
|
|
3300
|
+
hasPaymentMethodOptionsError: m,
|
|
3278
3301
|
retryPaymentMethodOptions: B,
|
|
3279
|
-
subscription:
|
|
3280
|
-
isPaymentMethodsPending:
|
|
3281
|
-
isInvoicePreviewPending:
|
|
3282
|
-
checkoutForm:
|
|
3283
|
-
invoicePreview:
|
|
3284
|
-
invoicePreviewByBillingPeriod:
|
|
3285
|
-
trialInvoicePreview:
|
|
3286
|
-
trialPeriod:
|
|
3287
|
-
authorizationContext:
|
|
3288
|
-
isPaid:
|
|
3289
|
-
amount:
|
|
3290
|
-
loadInvoicePreview:
|
|
3291
|
-
updateInvoicePreviewOnBillingInformationChange:
|
|
3292
|
-
saveFormStateForRedirect:
|
|
3293
|
-
} =
|
|
3294
|
-
initialCountry: (
|
|
3295
|
-
initialEmail: (
|
|
3296
|
-
subscriptionId:
|
|
3297
|
-
enabledPricingIds: (
|
|
3298
|
-
}),
|
|
3299
|
-
var
|
|
3300
|
-
await
|
|
3301
|
-
},
|
|
3302
|
-
|
|
3303
|
-
},
|
|
3304
|
-
() =>
|
|
3305
|
-
),
|
|
3306
|
-
() =>
|
|
3307
|
-
),
|
|
3308
|
-
get: () =>
|
|
3309
|
-
set: (
|
|
3310
|
-
|
|
3302
|
+
subscription: S,
|
|
3303
|
+
isPaymentMethodsPending: X,
|
|
3304
|
+
isInvoicePreviewPending: de,
|
|
3305
|
+
checkoutForm: l,
|
|
3306
|
+
invoicePreview: P,
|
|
3307
|
+
invoicePreviewByBillingPeriod: c,
|
|
3308
|
+
trialInvoicePreview: y,
|
|
3309
|
+
trialPeriod: D,
|
|
3310
|
+
authorizationContext: T,
|
|
3311
|
+
isPaid: R,
|
|
3312
|
+
amount: Q,
|
|
3313
|
+
loadInvoicePreview: F,
|
|
3314
|
+
updateInvoicePreviewOnBillingInformationChange: ne,
|
|
3315
|
+
saveFormStateForRedirect: ee
|
|
3316
|
+
} = Gn({
|
|
3317
|
+
initialCountry: (_t = o.configuration) == null ? void 0 : _t.countryCode,
|
|
3318
|
+
initialEmail: (ht = o.configuration) == null ? void 0 : ht.email,
|
|
3319
|
+
subscriptionId: x,
|
|
3320
|
+
enabledPricingIds: (Mt = o.configuration) == null ? void 0 : Mt.enabledPricingIds
|
|
3321
|
+
}), te = Y(!1), ie = async () => {
|
|
3322
|
+
var N;
|
|
3323
|
+
await l.validation.value.$validate(), !l.validation.value.$invalid && (te.value = !0, ee(), (N = d.value) == null || N.submit());
|
|
3324
|
+
}, oe = () => {
|
|
3325
|
+
te.value = !1;
|
|
3326
|
+
}, G = async () => (await l.validation.value.$validate(), !l.validation.value.$invalid), q = _(() => !!y.value), J = _(
|
|
3327
|
+
() => P.value ? uo(P.value) : !1
|
|
3328
|
+
), ae = _(
|
|
3329
|
+
() => l.form.value.country && ["US", "CA"].includes(l.form.value.country) || !1
|
|
3330
|
+
), ce = _({
|
|
3331
|
+
get: () => l.form.value.enabledPricingIds ?? [],
|
|
3332
|
+
set: (N) => {
|
|
3333
|
+
l.form.value.enabledPricingIds = N;
|
|
3311
3334
|
}
|
|
3312
|
-
}),
|
|
3313
|
-
() =>
|
|
3314
|
-
pricingPlanScheduleInfos:
|
|
3335
|
+
}), ue = _(
|
|
3336
|
+
() => S.value ? xe({
|
|
3337
|
+
pricingPlanScheduleInfos: S.value.pricing_plan_schedule_infos,
|
|
3315
3338
|
type: "DEFAULT"
|
|
3316
3339
|
}) : void 0
|
|
3317
|
-
),
|
|
3318
|
-
var
|
|
3319
|
-
if (!
|
|
3340
|
+
), ve = _(() => {
|
|
3341
|
+
var k, j;
|
|
3342
|
+
if (!S.value)
|
|
3320
3343
|
return;
|
|
3321
|
-
const
|
|
3322
|
-
return
|
|
3323
|
-
country:
|
|
3324
|
-
pricingCurrencySettings:
|
|
3325
|
-
fallbackCurrency:
|
|
3344
|
+
const N = (j = (k = ue.value) == null ? void 0 : k.pricing_plan_version) == null ? void 0 : j.pricing_currency_settings;
|
|
3345
|
+
return Zt({
|
|
3346
|
+
country: l.form.value.country,
|
|
3347
|
+
pricingCurrencySettings: N,
|
|
3348
|
+
fallbackCurrency: S.value.billing_currency
|
|
3326
3349
|
});
|
|
3327
|
-
}),
|
|
3328
|
-
if (!
|
|
3350
|
+
}), fe = _(() => {
|
|
3351
|
+
if (!ue.value || !S.value)
|
|
3329
3352
|
return /* @__PURE__ */ new Set();
|
|
3330
|
-
const
|
|
3331
|
-
pricingPlanScheduleInfo:
|
|
3332
|
-
}),
|
|
3333
|
-
return
|
|
3334
|
-
|
|
3353
|
+
const N = Ni({
|
|
3354
|
+
pricingPlanScheduleInfo: ue.value
|
|
3355
|
+
}), k = ve.value, j = S.value.billing_period, W = /* @__PURE__ */ new Set();
|
|
3356
|
+
return N.forEach((Z, pe) => {
|
|
3357
|
+
k && Z.currency !== k || j && Z.billingPeriod && (Z.billingPeriod.type !== j.type || Z.billingPeriod.value !== j.value) || W.add(pe);
|
|
3335
3358
|
}), W;
|
|
3336
|
-
}),
|
|
3359
|
+
}), Le = _({
|
|
3337
3360
|
get: () => {
|
|
3338
|
-
const
|
|
3339
|
-
return
|
|
3361
|
+
const N = l.form.value.seatsValues ?? [], k = fe.value;
|
|
3362
|
+
return k.size ? N.filter(({ pricing_item_config_id: j }) => k.has(j)) : N;
|
|
3340
3363
|
},
|
|
3341
|
-
set: (
|
|
3342
|
-
const
|
|
3343
|
-
if (!
|
|
3344
|
-
|
|
3364
|
+
set: (N) => {
|
|
3365
|
+
const k = l.form.value.seatsValues ?? [], j = fe.value;
|
|
3366
|
+
if (!j.size) {
|
|
3367
|
+
l.form.value.seatsValues = N;
|
|
3345
3368
|
return;
|
|
3346
3369
|
}
|
|
3347
|
-
const W =
|
|
3348
|
-
({ pricing_item_config_id:
|
|
3370
|
+
const W = k.filter(
|
|
3371
|
+
({ pricing_item_config_id: Z }) => !j.has(Z)
|
|
3349
3372
|
);
|
|
3350
|
-
|
|
3373
|
+
l.form.value.seatsValues = W.concat(N);
|
|
3351
3374
|
}
|
|
3352
|
-
}),
|
|
3375
|
+
}), Te = _({
|
|
3353
3376
|
get: () => {
|
|
3354
|
-
const
|
|
3355
|
-
return
|
|
3377
|
+
const N = l.form.value.unitsValues ?? [], k = fe.value;
|
|
3378
|
+
return k.size ? N.filter(({ pricing_item_config_id: j }) => k.has(j)) : N;
|
|
3356
3379
|
},
|
|
3357
|
-
set: (
|
|
3358
|
-
const
|
|
3359
|
-
if (!
|
|
3360
|
-
|
|
3380
|
+
set: (N) => {
|
|
3381
|
+
const k = l.form.value.unitsValues ?? [], j = fe.value;
|
|
3382
|
+
if (!j.size) {
|
|
3383
|
+
l.form.value.unitsValues = N;
|
|
3361
3384
|
return;
|
|
3362
3385
|
}
|
|
3363
|
-
const W =
|
|
3364
|
-
({ pricing_item_config_id:
|
|
3386
|
+
const W = k.filter(
|
|
3387
|
+
({ pricing_item_config_id: Z }) => !j.has(Z)
|
|
3365
3388
|
);
|
|
3366
|
-
|
|
3389
|
+
l.form.value.unitsValues = W.concat(N);
|
|
3367
3390
|
}
|
|
3368
|
-
}),
|
|
3369
|
-
var
|
|
3370
|
-
return
|
|
3391
|
+
}), Re = _(() => {
|
|
3392
|
+
var N, k, j, W, Z;
|
|
3393
|
+
return y.value ? g(
|
|
3371
3394
|
{
|
|
3372
3395
|
defaultMessage: "{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",
|
|
3373
3396
|
id: "checkout.agreement.trial",
|
|
3374
3397
|
description: "The agreement for the trial period"
|
|
3375
3398
|
},
|
|
3376
3399
|
{
|
|
3377
|
-
discounted_amount:
|
|
3400
|
+
discounted_amount: y.value.tax_summary.total_amount.quantity === "0.00" ? g({
|
|
3378
3401
|
defaultMessage: "Free",
|
|
3379
3402
|
id: "checkout.agreement.trial.free",
|
|
3380
3403
|
description: "The free amount for the trial period"
|
|
3381
|
-
}) :
|
|
3382
|
-
trial_period:
|
|
3383
|
-
subscription_amount:
|
|
3384
|
-
((
|
|
3404
|
+
}) : De(y.value.tax_summary.total_amount),
|
|
3405
|
+
trial_period: C(D.value, { short: !0 }),
|
|
3406
|
+
subscription_amount: De(
|
|
3407
|
+
((N = P.value) == null ? void 0 : N.tax_summary.total_amount) ?? {
|
|
3385
3408
|
quantity: "0.00",
|
|
3386
3409
|
currency: "EUR"
|
|
3387
3410
|
}
|
|
3388
3411
|
),
|
|
3389
|
-
billing_period:
|
|
3390
|
-
((
|
|
3412
|
+
billing_period: C(
|
|
3413
|
+
((k = P.value) == null ? void 0 : k.billing_period) ?? { type: "MONTH", value: 1 },
|
|
3391
3414
|
{ short: !0, singular: !0, hideValueForExactPeriods: !0 }
|
|
3392
3415
|
),
|
|
3393
3416
|
// @ts-expect-error formatjs does not support this type yet
|
|
3394
|
-
start_date: new Date(
|
|
3417
|
+
start_date: new Date(Ee.value)
|
|
3395
3418
|
}
|
|
3396
|
-
) :
|
|
3419
|
+
) : g(
|
|
3397
3420
|
{
|
|
3398
3421
|
defaultMessage: "{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.",
|
|
3399
3422
|
id: "checkout.agreement.subscription",
|
|
3400
3423
|
description: "The agreement for the subscription"
|
|
3401
3424
|
},
|
|
3402
3425
|
{
|
|
3403
|
-
subscription_amount: (
|
|
3404
|
-
billing_period:
|
|
3405
|
-
((
|
|
3426
|
+
subscription_amount: (j = P.value) != null && j.tax_summary.total_amount ? De((W = P.value) == null ? void 0 : W.tax_summary.total_amount) : "",
|
|
3427
|
+
billing_period: C(
|
|
3428
|
+
((Z = P.value) == null ? void 0 : Z.billing_period) ?? { type: "MONTH", value: 1 },
|
|
3406
3429
|
{ short: !0, singular: !0, hideValueForExactPeriods: !0 }
|
|
3407
3430
|
),
|
|
3408
3431
|
// @ts-expect-error formatjs does not support this type yet
|
|
3409
|
-
start_date: new Date(
|
|
3432
|
+
start_date: new Date(Ee.value)
|
|
3410
3433
|
}
|
|
3411
3434
|
);
|
|
3412
|
-
}),
|
|
3413
|
-
var
|
|
3414
|
-
if (!
|
|
3435
|
+
}), re = _(() => {
|
|
3436
|
+
var k;
|
|
3437
|
+
if (!P.value)
|
|
3415
3438
|
return;
|
|
3416
|
-
const
|
|
3417
|
-
subscription:
|
|
3418
|
-
fallback:
|
|
3439
|
+
const N = ji({
|
|
3440
|
+
subscription: S.value,
|
|
3441
|
+
fallback: g({
|
|
3419
3442
|
defaultMessage: "Subscription",
|
|
3420
3443
|
description: "The fallback name for when no subscription name can be determined",
|
|
3421
3444
|
id: "customer_overview.subscriptions_block.fallback_subscription_name"
|
|
3422
3445
|
})
|
|
3423
3446
|
});
|
|
3424
3447
|
return {
|
|
3425
|
-
description:
|
|
3448
|
+
description: N,
|
|
3426
3449
|
managementURL: "https://www.solvimon.com/account/billing",
|
|
3427
|
-
agreement:
|
|
3428
|
-
...
|
|
3450
|
+
agreement: Re.value,
|
|
3451
|
+
...y.value && D.value && {
|
|
3429
3452
|
trial: {
|
|
3430
|
-
label:
|
|
3453
|
+
label: g({
|
|
3431
3454
|
defaultMessage: "Trial",
|
|
3432
3455
|
id: "checkout.trial.label",
|
|
3433
3456
|
description: "The label of the trial"
|
|
3434
3457
|
}),
|
|
3435
|
-
amount:
|
|
3436
|
-
startDate:
|
|
3437
|
-
endDate:
|
|
3458
|
+
amount: y.value.tax_summary.total_amount,
|
|
3459
|
+
startDate: Ze.value ? new Date(Ze.value) : void 0,
|
|
3460
|
+
endDate: rt.value ? new Date(rt.value) : void 0
|
|
3438
3461
|
}
|
|
3439
3462
|
},
|
|
3440
3463
|
regular: {
|
|
3441
|
-
label:
|
|
3442
|
-
amount:
|
|
3443
|
-
startDate:
|
|
3444
|
-
interval: ((
|
|
3464
|
+
label: N,
|
|
3465
|
+
amount: P.value.tax_summary.total_amount,
|
|
3466
|
+
startDate: Ee.value ? new Date(Ee.value) : void 0,
|
|
3467
|
+
interval: ((k = S.value) == null ? void 0 : k.billing_period) ?? { type: "MONTH", value: 1 }
|
|
3445
3468
|
}
|
|
3446
3469
|
};
|
|
3447
|
-
}),
|
|
3448
|
-
const { country:
|
|
3449
|
-
|
|
3450
|
-
...
|
|
3451
|
-
...
|
|
3470
|
+
}), ti = (N) => Qe(N), ii = (N) => {
|
|
3471
|
+
const { country: k, ...j } = N;
|
|
3472
|
+
l.updateInitialState({
|
|
3473
|
+
...j,
|
|
3474
|
+
...k && ti(k) ? { country: k } : {}
|
|
3452
3475
|
});
|
|
3453
|
-
},
|
|
3454
|
-
var
|
|
3455
|
-
const
|
|
3456
|
-
return
|
|
3457
|
-
}),
|
|
3458
|
-
var
|
|
3459
|
-
const
|
|
3460
|
-
return
|
|
3461
|
-
}),
|
|
3462
|
-
var
|
|
3463
|
-
const
|
|
3464
|
-
return
|
|
3465
|
-
}),
|
|
3466
|
-
applyPromotionCode:
|
|
3467
|
-
removePromotionCode:
|
|
3468
|
-
isPromotionCodePending:
|
|
3469
|
-
promotionCodeErrorMessage:
|
|
3470
|
-
} =
|
|
3471
|
-
checkoutForm:
|
|
3472
|
-
updateInvoicePreviewOnBillingInformationChange:
|
|
3473
|
-
formatErrorMessage: ({ action:
|
|
3476
|
+
}, ni = _(() => !(z && A)), Ze = _(() => {
|
|
3477
|
+
var j, W, Z;
|
|
3478
|
+
const N = (W = (j = y.value) == null ? void 0 : j.periods) == null ? void 0 : W[0], k = (Z = Xe.value) == null ? void 0 : Z.trialStartDate;
|
|
3479
|
+
return N != null && N.start_at ? new Date(N.start_at) : k;
|
|
3480
|
+
}), Xe = _(() => Ri(S.value)), rt = _(() => {
|
|
3481
|
+
var j, W, Z;
|
|
3482
|
+
const N = (W = (j = y.value) == null ? void 0 : j.periods) == null ? void 0 : W[0], k = (Z = Xe.value) == null ? void 0 : Z.trialEndDate;
|
|
3483
|
+
return N != null && N.end_at ? new Date(N.end_at) : k;
|
|
3484
|
+
}), Ee = _(() => {
|
|
3485
|
+
var j, W, Z;
|
|
3486
|
+
const N = (W = (j = P.value) == null ? void 0 : j.periods) == null ? void 0 : W[0], k = (Z = Xe.value) == null ? void 0 : Z.subscriptionStartDate;
|
|
3487
|
+
return N != null && N.start_at ? new Date(N.start_at) : k;
|
|
3488
|
+
}), oi = _(() => !!(l.form.value.seatsValues && l.form.value.seatsValues.length > 0 || l.form.value.unitsValues && l.form.value.unitsValues.length > 0 || S.value && zn(S.value) || S.value && jn(S.value))), we = Y(null), {
|
|
3489
|
+
applyPromotionCode: lt,
|
|
3490
|
+
removePromotionCode: ai,
|
|
3491
|
+
isPromotionCodePending: ri,
|
|
3492
|
+
promotionCodeErrorMessage: We
|
|
3493
|
+
} = Yn({
|
|
3494
|
+
checkoutForm: l,
|
|
3495
|
+
updateInvoicePreviewOnBillingInformationChange: ne,
|
|
3496
|
+
formatErrorMessage: ({ action: N }) => g(N === "apply" ? {
|
|
3474
3497
|
defaultMessage: "Promotion code could not be applied. Please try again.",
|
|
3475
3498
|
id: "checkout.promotion_code.apply_failed",
|
|
3476
3499
|
description: "Error message when applying a promotion code in checkout failed"
|
|
@@ -3480,67 +3503,67 @@ const Ro = {
|
|
|
3480
3503
|
description: "Error message when removing a promotion code in checkout failed"
|
|
3481
3504
|
}),
|
|
3482
3505
|
onInvalidPromotionCode: () => {
|
|
3483
|
-
|
|
3506
|
+
we.value = null;
|
|
3484
3507
|
},
|
|
3485
3508
|
onApplyError: () => {
|
|
3486
|
-
|
|
3509
|
+
we.value = null;
|
|
3487
3510
|
}
|
|
3488
3511
|
});
|
|
3489
|
-
|
|
3490
|
-
subscription:
|
|
3491
|
-
promotionCode: (
|
|
3492
|
-
appliedPromotionCode:
|
|
3493
|
-
applyPromotionCode:
|
|
3512
|
+
Hn({
|
|
3513
|
+
subscription: S,
|
|
3514
|
+
promotionCode: (bt = o.configuration) == null ? void 0 : bt.couponCode,
|
|
3515
|
+
appliedPromotionCode: we,
|
|
3516
|
+
applyPromotionCode: lt
|
|
3494
3517
|
});
|
|
3495
|
-
const
|
|
3496
|
-
v &&
|
|
3497
|
-
},
|
|
3518
|
+
const st = () => {
|
|
3519
|
+
v && Ui(v);
|
|
3520
|
+
}, li = _(
|
|
3498
3521
|
() => {
|
|
3499
|
-
var
|
|
3500
|
-
return !((
|
|
3522
|
+
var N;
|
|
3523
|
+
return !((N = o.configuration) != null && N.onPaymentSuccess) && !!v;
|
|
3501
3524
|
}
|
|
3502
|
-
),
|
|
3503
|
-
var
|
|
3504
|
-
if (
|
|
3505
|
-
|
|
3525
|
+
), si = () => {
|
|
3526
|
+
var N;
|
|
3527
|
+
if (R.value = !0, We.value = null, (N = o.configuration) != null && N.onPaymentSuccess) {
|
|
3528
|
+
o.configuration.onPaymentSuccess();
|
|
3506
3529
|
return;
|
|
3507
3530
|
}
|
|
3508
3531
|
if (v) {
|
|
3509
|
-
|
|
3532
|
+
st();
|
|
3510
3533
|
return;
|
|
3511
3534
|
}
|
|
3512
|
-
},
|
|
3513
|
-
|
|
3514
|
-
...
|
|
3515
|
-
billing_period:
|
|
3516
|
-
},
|
|
3535
|
+
}, ct = (N) => {
|
|
3536
|
+
S.value && (S.value = {
|
|
3537
|
+
...S.value,
|
|
3538
|
+
billing_period: N
|
|
3539
|
+
}, F());
|
|
3517
3540
|
};
|
|
3518
|
-
return
|
|
3519
|
-
|
|
3520
|
-
}), (
|
|
3541
|
+
return je(() => {
|
|
3542
|
+
r("ready");
|
|
3543
|
+
}), (N, k) => s.value ? (p(), O(go, {
|
|
3521
3544
|
key: 0,
|
|
3522
3545
|
class: "sv-checkout sv-root sv-screen sv-checkout--error"
|
|
3523
|
-
})) : (
|
|
3546
|
+
})) : (p(), O(t(cn), {
|
|
3524
3547
|
key: 1,
|
|
3525
|
-
class:
|
|
3526
|
-
},
|
|
3548
|
+
class: Ie(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(R) }])
|
|
3549
|
+
}, Ye({
|
|
3527
3550
|
header: b(() => [
|
|
3528
|
-
|
|
3529
|
-
|
|
3551
|
+
w("div", pa, [
|
|
3552
|
+
M(be, { class: "min-h-[52px] w-96" }, {
|
|
3530
3553
|
default: b(() => {
|
|
3531
|
-
var
|
|
3554
|
+
var j, W, Z;
|
|
3532
3555
|
return [
|
|
3533
|
-
t(
|
|
3556
|
+
t(P) && t(S) && Ee.value ? (p(), O(co, {
|
|
3534
3557
|
key: 0,
|
|
3535
3558
|
class: "sv-checkout__title",
|
|
3536
|
-
"trial-start-date":
|
|
3537
|
-
"trial-period": t(
|
|
3538
|
-
"subscription-start-date":
|
|
3539
|
-
"subscription-name": ((
|
|
3540
|
-
amount: (W = t(
|
|
3541
|
-
"billing-period": (
|
|
3542
|
-
"country-code": t(
|
|
3543
|
-
}, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) :
|
|
3559
|
+
"trial-start-date": Ze.value,
|
|
3560
|
+
"trial-period": t(D),
|
|
3561
|
+
"subscription-start-date": Ee.value,
|
|
3562
|
+
"subscription-name": ((j = t(S)) == null ? void 0 : j.name) ?? "",
|
|
3563
|
+
amount: (W = t(P)) == null ? void 0 : W.invoice_amount_including_tax,
|
|
3564
|
+
"billing-period": (Z = t(S)) == null ? void 0 : Z.billing_period,
|
|
3565
|
+
"country-code": t(l).form.value.country
|
|
3566
|
+
}, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : U("", !0)
|
|
3544
3567
|
];
|
|
3545
3568
|
}),
|
|
3546
3569
|
_: 1
|
|
@@ -3548,84 +3571,84 @@ const Ro = {
|
|
|
3548
3571
|
])
|
|
3549
3572
|
]),
|
|
3550
3573
|
content: b(() => {
|
|
3551
|
-
var
|
|
3574
|
+
var j, W, Z;
|
|
3552
3575
|
return [
|
|
3553
|
-
t(
|
|
3576
|
+
t(R) ? (p(), O(yo, {
|
|
3554
3577
|
key: 0,
|
|
3555
3578
|
class: "sv-checkout__completed-payment",
|
|
3556
|
-
onContinueToMerchant:
|
|
3557
|
-
})) : (
|
|
3558
|
-
t(
|
|
3579
|
+
onContinueToMerchant: st
|
|
3580
|
+
})) : (p(), $(me, { key: 1 }, [
|
|
3581
|
+
t(S) && t(L) ? (p(), O(zt, {
|
|
3559
3582
|
key: 0,
|
|
3560
3583
|
class: "sv-checkout__mobile-order-summary",
|
|
3561
|
-
subscription: t(
|
|
3562
|
-
invoice: t(
|
|
3563
|
-
"invoice-preview-by-billing-period": t(
|
|
3564
|
-
"trial-invoice": t(
|
|
3565
|
-
"enabled-pricing-ids":
|
|
3566
|
-
"trial-period": t(
|
|
3567
|
-
avatar: (
|
|
3568
|
-
"is-paid": t(
|
|
3584
|
+
subscription: t(S),
|
|
3585
|
+
invoice: t(P),
|
|
3586
|
+
"invoice-preview-by-billing-period": t(c),
|
|
3587
|
+
"trial-invoice": t(y),
|
|
3588
|
+
"enabled-pricing-ids": ce.value,
|
|
3589
|
+
"trial-period": t(D),
|
|
3590
|
+
avatar: (j = u.value) == null ? void 0 : j.avatar,
|
|
3591
|
+
"is-paid": t(R),
|
|
3569
3592
|
"is-usage-based": J.value,
|
|
3570
|
-
"is-preview-and-payment-methods-pending": t(
|
|
3571
|
-
"country-code": t(
|
|
3593
|
+
"is-preview-and-payment-methods-pending": t(X) || t(de),
|
|
3594
|
+
"country-code": t(l).form.value.country,
|
|
3572
3595
|
collapsible: "collapsed",
|
|
3573
3596
|
variant: "products-inline",
|
|
3574
|
-
onBillingPeriodChange:
|
|
3575
|
-
}, 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"])) :
|
|
3576
|
-
|
|
3597
|
+
onBillingPeriodChange: ct
|
|
3598
|
+
}, 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"])) : U("", !0),
|
|
3599
|
+
oi.value && t(S) ? (p(), O(t(a), {
|
|
3577
3600
|
key: 1,
|
|
3578
|
-
"seats-values":
|
|
3579
|
-
"onUpdate:seatsValues":
|
|
3580
|
-
"units-values":
|
|
3581
|
-
"onUpdate:unitsValues":
|
|
3582
|
-
"enabled-pricing-ids":
|
|
3583
|
-
"onUpdate:enabledPricingIds":
|
|
3601
|
+
"seats-values": Le.value,
|
|
3602
|
+
"onUpdate:seatsValues": k[0] || (k[0] = (pe) => Le.value = pe),
|
|
3603
|
+
"units-values": Te.value,
|
|
3604
|
+
"onUpdate:unitsValues": k[1] || (k[1] = (pe) => Te.value = pe),
|
|
3605
|
+
"enabled-pricing-ids": ce.value,
|
|
3606
|
+
"onUpdate:enabledPricingIds": k[2] || (k[2] = (pe) => ce.value = pe),
|
|
3584
3607
|
class: "sv-checkout__plan-customization",
|
|
3585
|
-
subscription: t(
|
|
3586
|
-
"initial-seats-values": (W = t(
|
|
3587
|
-
"initial-units-values": (
|
|
3588
|
-
"billing-period": t(
|
|
3589
|
-
currency:
|
|
3590
|
-
}, null, 8, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) :
|
|
3591
|
-
t(
|
|
3608
|
+
subscription: t(S),
|
|
3609
|
+
"initial-seats-values": (W = t(l).initialState) == null ? void 0 : W.value.seatsValues,
|
|
3610
|
+
"initial-units-values": (Z = t(l).initialState) == null ? void 0 : Z.value.unitsValues,
|
|
3611
|
+
"billing-period": t(S).billing_period,
|
|
3612
|
+
currency: ve.value
|
|
3613
|
+
}, null, 8, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : U("", !0),
|
|
3614
|
+
t(l).form.value.country && t(Q) && re.value ? (p(), O(ia, {
|
|
3592
3615
|
key: 2,
|
|
3593
3616
|
class: "sv-checkout__express-payment-methods",
|
|
3594
|
-
amount: t(
|
|
3595
|
-
"country-code": t(
|
|
3617
|
+
amount: t(Q),
|
|
3618
|
+
"country-code": t(l).form.value.country,
|
|
3596
3619
|
locale: t(h),
|
|
3597
|
-
"payment-methods-options-response": t(
|
|
3598
|
-
"billing-information":
|
|
3599
|
-
"on-billing-information-change": t(
|
|
3600
|
-
onUpdateBillingInformation:
|
|
3601
|
-
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) :
|
|
3602
|
-
|
|
3603
|
-
modelValue: t(
|
|
3604
|
-
"onUpdate:modelValue":
|
|
3620
|
+
"payment-methods-options-response": t(E) ?? [],
|
|
3621
|
+
"billing-information": re.value,
|
|
3622
|
+
"on-billing-information-change": t(ne),
|
|
3623
|
+
onUpdateBillingInformation: ii
|
|
3624
|
+
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : U("", !0),
|
|
3625
|
+
M(ao, {
|
|
3626
|
+
modelValue: t(l).form.value,
|
|
3627
|
+
"onUpdate:modelValue": k[3] || (k[3] = (pe) => t(l).form.value = pe),
|
|
3605
3628
|
class: "sv-checkout__customer-form",
|
|
3606
|
-
validation: t(
|
|
3607
|
-
"read-only-email": t(
|
|
3608
|
-
"show-customer-info-on-top":
|
|
3609
|
-
"is-billing-information-mandatory":
|
|
3610
|
-
"get-is-field-required": t(
|
|
3611
|
-
"read-only": t(
|
|
3629
|
+
validation: t(l).validation,
|
|
3630
|
+
"read-only-email": t(z),
|
|
3631
|
+
"show-customer-info-on-top": ni.value || t(R),
|
|
3632
|
+
"is-billing-information-mandatory": ae.value,
|
|
3633
|
+
"get-is-field-required": t(l).getIsFieldRequired,
|
|
3634
|
+
"read-only": t(R)
|
|
3612
3635
|
}, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"]),
|
|
3613
|
-
|
|
3614
|
-
|
|
3636
|
+
w("div", ma, [
|
|
3637
|
+
M(be, {
|
|
3615
3638
|
variant: "section",
|
|
3616
3639
|
class: "min-h-[130px]"
|
|
3617
3640
|
}, {
|
|
3618
3641
|
default: b(() => {
|
|
3619
|
-
var pe,
|
|
3642
|
+
var pe, It;
|
|
3620
3643
|
return [
|
|
3621
|
-
!t(
|
|
3622
|
-
|
|
3644
|
+
!t(X) || t(X) && t(E).length > 0 ? (p(), $("div", ga, [
|
|
3645
|
+
M(t(le), {
|
|
3623
3646
|
variant: "heading-3",
|
|
3624
3647
|
tag: "h2",
|
|
3625
3648
|
class: "sv-checkout__payment-methods-title mb-2"
|
|
3626
3649
|
}, {
|
|
3627
3650
|
default: b(() => [
|
|
3628
|
-
|
|
3651
|
+
K(V(t(g)({
|
|
3629
3652
|
defaultMessage: "Payment method",
|
|
3630
3653
|
id: "checkout.payment_method_block.title",
|
|
3631
3654
|
description: "The title of the payment method block in the checkout form"
|
|
@@ -3633,27 +3656,27 @@ const Ro = {
|
|
|
3633
3656
|
]),
|
|
3634
3657
|
_: 1
|
|
3635
3658
|
}),
|
|
3636
|
-
t(
|
|
3659
|
+
t(l).form.value.country ? t(m) ? (p(), O(Je, {
|
|
3637
3660
|
key: 1,
|
|
3638
3661
|
class: "sv-checkout__payment-methods-error",
|
|
3639
3662
|
icon: "error"
|
|
3640
3663
|
}, {
|
|
3641
3664
|
title: b(() => [
|
|
3642
|
-
|
|
3665
|
+
K(V(t(g)({
|
|
3643
3666
|
defaultMessage: "Could not load payment methods",
|
|
3644
3667
|
id: "checkout.payment_method_block.load_failed_title",
|
|
3645
3668
|
description: "The title shown when the payment methods failed to load"
|
|
3646
3669
|
})), 1)
|
|
3647
3670
|
]),
|
|
3648
3671
|
message: b(() => [
|
|
3649
|
-
|
|
3672
|
+
K(V(t(g)({
|
|
3650
3673
|
defaultMessage: "Check your connection and try again.",
|
|
3651
3674
|
id: "checkout.payment_method_block.load_failed_message",
|
|
3652
3675
|
description: "The message shown when the payment methods failed to load"
|
|
3653
3676
|
})), 1)
|
|
3654
3677
|
]),
|
|
3655
3678
|
action: b(() => [
|
|
3656
|
-
|
|
3679
|
+
M(t(Ne), {
|
|
3657
3680
|
type: "button",
|
|
3658
3681
|
intent: "secondary",
|
|
3659
3682
|
size: "sm",
|
|
@@ -3661,7 +3684,7 @@ const Ro = {
|
|
|
3661
3684
|
onClick: t(B)
|
|
3662
3685
|
}, {
|
|
3663
3686
|
default: b(() => [
|
|
3664
|
-
|
|
3687
|
+
K(V(t(g)({
|
|
3665
3688
|
defaultMessage: "Try again",
|
|
3666
3689
|
id: "checkout.payment_method_block.load_failed_retry_button.label",
|
|
3667
3690
|
description: "The label of the button that loads the payment methods again"
|
|
@@ -3671,55 +3694,56 @@ const Ro = {
|
|
|
3671
3694
|
}, 8, ["onClick"])
|
|
3672
3695
|
]),
|
|
3673
3696
|
_: 1
|
|
3674
|
-
})) : t(
|
|
3697
|
+
})) : t(E).length === 0 ? (p(), O(Je, {
|
|
3675
3698
|
key: 2,
|
|
3676
3699
|
class: "sv-checkout__payment-methods-empty",
|
|
3677
3700
|
icon: "credit_card_off"
|
|
3678
3701
|
}, {
|
|
3679
3702
|
title: b(() => [
|
|
3680
|
-
|
|
3703
|
+
K(V(t(g)({
|
|
3681
3704
|
defaultMessage: "No payment methods available",
|
|
3682
3705
|
id: "checkout.payment_method_block.no_payment_methods_available_title",
|
|
3683
3706
|
description: "The title shown when there are no available payment methods"
|
|
3684
3707
|
})), 1)
|
|
3685
3708
|
]),
|
|
3686
3709
|
_: 1
|
|
3687
|
-
})) : t(
|
|
3688
|
-
|
|
3689
|
-
class:
|
|
3710
|
+
})) : t(Q) && t(l).form.value.country ? (p(), $("div", ya, [
|
|
3711
|
+
w("div", {
|
|
3712
|
+
class: Ie({ "pointer-events-none opacity-60": te.value })
|
|
3690
3713
|
}, [
|
|
3691
|
-
|
|
3714
|
+
M(t(n), {
|
|
3692
3715
|
ref_key: "paymentIntegrationFormRef",
|
|
3693
|
-
ref:
|
|
3694
|
-
"country-code": t(
|
|
3695
|
-
context: t(
|
|
3696
|
-
amount: t(
|
|
3697
|
-
email: t(
|
|
3716
|
+
ref: d,
|
|
3717
|
+
"country-code": t(l).form.value.country,
|
|
3718
|
+
context: t(T),
|
|
3719
|
+
amount: t(Q),
|
|
3720
|
+
email: t(l).form.value.email,
|
|
3698
3721
|
variant: "AUTHORIZE",
|
|
3699
|
-
"payment-method-options": t(
|
|
3700
|
-
"validate-on-submit":
|
|
3701
|
-
"redirects-on-success":
|
|
3722
|
+
"payment-method-options": t(E) ?? [],
|
|
3723
|
+
"validate-on-submit": G,
|
|
3724
|
+
"redirects-on-success": li.value,
|
|
3702
3725
|
"force-store-payment-method": "",
|
|
3703
|
-
"billing-entity-name": (
|
|
3704
|
-
onPaymentSuccess:
|
|
3705
|
-
onPaymentFailed:
|
|
3706
|
-
|
|
3726
|
+
"billing-entity-name": (It = (pe = t(S)) == null ? void 0 : pe.billing_entity) == null ? void 0 : It.legal_name,
|
|
3727
|
+
onPaymentSuccess: si,
|
|
3728
|
+
onPaymentFailed: oe,
|
|
3729
|
+
onInvalid: oe,
|
|
3730
|
+
onReady: k[4] || (k[4] = (Ma) => r("ready"))
|
|
3707
3731
|
}, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success", "billing-entity-name"])
|
|
3708
3732
|
], 2)
|
|
3709
|
-
])) :
|
|
3733
|
+
])) : U("", !0) : (p(), O(Je, {
|
|
3710
3734
|
key: 0,
|
|
3711
3735
|
class: "sv-checkout__payment-methods-empty",
|
|
3712
3736
|
icon: "captive_portal"
|
|
3713
3737
|
}, {
|
|
3714
3738
|
title: b(() => [
|
|
3715
|
-
|
|
3739
|
+
K(V(t(g)({
|
|
3716
3740
|
defaultMessage: "Select your billing country",
|
|
3717
3741
|
id: "checkout.payment_method_block.no_country_selected_title",
|
|
3718
3742
|
description: "The title shown when no country is selected"
|
|
3719
3743
|
})), 1)
|
|
3720
3744
|
]),
|
|
3721
3745
|
message: b(() => [
|
|
3722
|
-
|
|
3746
|
+
K(V(t(g)({
|
|
3723
3747
|
defaultMessage: "Payment methods will be shown after you select the billing country.",
|
|
3724
3748
|
id: "checkout.payment_method_block.no_country_selected_message",
|
|
3725
3749
|
description: "The message shown when no country is selected"
|
|
@@ -3727,7 +3751,7 @@ const Ro = {
|
|
|
3727
3751
|
]),
|
|
3728
3752
|
_: 1
|
|
3729
3753
|
}))
|
|
3730
|
-
])) :
|
|
3754
|
+
])) : U("", !0)
|
|
3731
3755
|
];
|
|
3732
3756
|
}),
|
|
3733
3757
|
_: 1
|
|
@@ -3737,85 +3761,85 @@ const Ro = {
|
|
|
3737
3761
|
];
|
|
3738
3762
|
}),
|
|
3739
3763
|
aside: b(() => [
|
|
3740
|
-
|
|
3741
|
-
|
|
3764
|
+
w("div", va, [
|
|
3765
|
+
M(be, {
|
|
3742
3766
|
variant: "section",
|
|
3743
3767
|
class: "min-h-[220px]"
|
|
3744
3768
|
}, {
|
|
3745
3769
|
default: b(() => {
|
|
3746
|
-
var
|
|
3770
|
+
var j;
|
|
3747
3771
|
return [
|
|
3748
|
-
t(
|
|
3772
|
+
t(S) && t(P) ? (p(), O(zt, {
|
|
3749
3773
|
key: 0,
|
|
3750
|
-
subscription: t(
|
|
3751
|
-
invoice: t(
|
|
3752
|
-
"invoice-preview-by-billing-period": t(
|
|
3753
|
-
"trial-invoice": t(
|
|
3754
|
-
"enabled-pricing-ids":
|
|
3755
|
-
"trial-period": t(
|
|
3756
|
-
"country-code": t(
|
|
3757
|
-
avatar: (
|
|
3758
|
-
"is-paid": t(
|
|
3774
|
+
subscription: t(S),
|
|
3775
|
+
invoice: t(P),
|
|
3776
|
+
"invoice-preview-by-billing-period": t(c),
|
|
3777
|
+
"trial-invoice": t(y),
|
|
3778
|
+
"enabled-pricing-ids": ce.value,
|
|
3779
|
+
"trial-period": t(D),
|
|
3780
|
+
"country-code": t(l).form.value.country,
|
|
3781
|
+
avatar: (j = u.value) == null ? void 0 : j.avatar,
|
|
3782
|
+
"is-paid": t(R),
|
|
3759
3783
|
"is-usage-based": J.value,
|
|
3760
|
-
"is-preview-and-payment-methods-pending": t(
|
|
3761
|
-
onBillingPeriodChange:
|
|
3762
|
-
}, 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"])) :
|
|
3784
|
+
"is-preview-and-payment-methods-pending": t(X) || t(de),
|
|
3785
|
+
onBillingPeriodChange: ct
|
|
3786
|
+
}, 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"])) : U("", !0)
|
|
3763
3787
|
];
|
|
3764
3788
|
}),
|
|
3765
3789
|
_: 1
|
|
3766
3790
|
})
|
|
3767
3791
|
]),
|
|
3768
|
-
t(
|
|
3769
|
-
|
|
3792
|
+
t(R) ? U("", !0) : (p(), $(me, { key: 0 }, [
|
|
3793
|
+
M(da, {
|
|
3770
3794
|
class: "sv-checkout__promotion-code",
|
|
3771
|
-
"promotion-code":
|
|
3772
|
-
"onUpdate:appliedCode":
|
|
3773
|
-
onRemove: t(
|
|
3774
|
-
onApply: t(
|
|
3795
|
+
"promotion-code": we.value,
|
|
3796
|
+
"onUpdate:appliedCode": k[5] || (k[5] = (j) => we.value = j),
|
|
3797
|
+
onRemove: t(ai),
|
|
3798
|
+
onApply: t(lt)
|
|
3775
3799
|
}, null, 8, ["promotion-code", "onRemove", "onApply"]),
|
|
3776
|
-
t(
|
|
3800
|
+
t(We) ? (p(), O(t(hi), {
|
|
3777
3801
|
key: 0,
|
|
3778
3802
|
class: "sv-checkout__promotion-error mt-2",
|
|
3779
|
-
title: t(
|
|
3780
|
-
}, null, 8, ["title"])) :
|
|
3781
|
-
|
|
3782
|
-
|
|
3803
|
+
title: t(We)
|
|
3804
|
+
}, null, 8, ["title"])) : U("", !0),
|
|
3805
|
+
w("div", fa, [
|
|
3806
|
+
M(be, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
|
|
3783
3807
|
default: b(() => [
|
|
3784
|
-
t(
|
|
3808
|
+
t(P) ? (p(), O(t(Ne), {
|
|
3785
3809
|
key: 0,
|
|
3786
3810
|
type: "button",
|
|
3787
3811
|
size: "lg",
|
|
3788
3812
|
class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
|
|
3789
|
-
disabled: t(
|
|
3790
|
-
loading:
|
|
3791
|
-
onClick:
|
|
3813
|
+
disabled: t(ri) || t(E).length === 0 || te.value,
|
|
3814
|
+
loading: te.value,
|
|
3815
|
+
onClick: ie
|
|
3792
3816
|
}, {
|
|
3793
3817
|
default: b(() => [
|
|
3794
|
-
|
|
3818
|
+
K(V(q.value ? t(g)({
|
|
3795
3819
|
defaultMessage: "Start trial",
|
|
3796
3820
|
id: "checkout.pay_and_subscribe_button_trial.label",
|
|
3797
3821
|
description: "The label of the start trial button in the checkout form"
|
|
3798
|
-
}) : t(
|
|
3822
|
+
}) : t(g)({
|
|
3799
3823
|
defaultMessage: "Pay and subscribe",
|
|
3800
3824
|
id: "checkout.pay_and_subscribe_button.label",
|
|
3801
3825
|
description: "The label of the pay and subscribe button in the checkout form"
|
|
3802
3826
|
})), 1)
|
|
3803
3827
|
]),
|
|
3804
3828
|
_: 1
|
|
3805
|
-
}, 8, ["disabled", "loading"])) :
|
|
3829
|
+
}, 8, ["disabled", "loading"])) : U("", !0)
|
|
3806
3830
|
]),
|
|
3807
3831
|
_: 1
|
|
3808
3832
|
}),
|
|
3809
|
-
|
|
3833
|
+
M(on, { "payment-method-options": t(E) }, null, 8, ["payment-method-options"])
|
|
3810
3834
|
])
|
|
3811
3835
|
], 64))
|
|
3812
3836
|
]),
|
|
3813
3837
|
_: 2
|
|
3814
3838
|
}, [
|
|
3815
|
-
t(
|
|
3839
|
+
t(H) && !t(R) ? {
|
|
3816
3840
|
name: "footer",
|
|
3817
3841
|
fn: b(() => [
|
|
3818
|
-
|
|
3842
|
+
M(t(le), {
|
|
3819
3843
|
tag: "div",
|
|
3820
3844
|
variant: "body-xs",
|
|
3821
3845
|
color: "subtle",
|
|
@@ -3823,7 +3847,7 @@ const Ro = {
|
|
|
3823
3847
|
"data-testid": "checkout-terms"
|
|
3824
3848
|
}, {
|
|
3825
3849
|
default: b(() => [
|
|
3826
|
-
|
|
3850
|
+
M(Uo, { source: t(H) }, null, 8, ["source"])
|
|
3827
3851
|
]),
|
|
3828
3852
|
_: 1
|
|
3829
3853
|
})
|
|
@@ -3832,7 +3856,7 @@ const Ro = {
|
|
|
3832
3856
|
} : void 0
|
|
3833
3857
|
]), 1032, ["class"]));
|
|
3834
3858
|
}
|
|
3835
|
-
}),
|
|
3859
|
+
}), ha = /* @__PURE__ */ se({
|
|
3836
3860
|
__name: "Checkout.entry",
|
|
3837
3861
|
props: {
|
|
3838
3862
|
environment: { type: String },
|
|
@@ -3853,31 +3877,31 @@ const Ro = {
|
|
|
3853
3877
|
},
|
|
3854
3878
|
emits: ["error", "ready"],
|
|
3855
3879
|
setup(e, { emit: i }) {
|
|
3856
|
-
var
|
|
3857
|
-
const n =
|
|
3858
|
-
return (
|
|
3859
|
-
entry:
|
|
3880
|
+
var u;
|
|
3881
|
+
const n = dn("checkout"), a = e, o = i, r = ((u = a.configuration) == null ? void 0 : u.couponCode) ?? Se("coupon_code") ?? void 0;
|
|
3882
|
+
return (s, d) => (p(), O(t(fi), {
|
|
3883
|
+
entry: s.$props,
|
|
3860
3884
|
"component-name": t(n),
|
|
3861
3885
|
"allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
|
|
3862
|
-
onError:
|
|
3886
|
+
onError: d[1] || (d[1] = (I) => s.$emit("error", I))
|
|
3863
3887
|
}, {
|
|
3864
3888
|
default: b(() => {
|
|
3865
|
-
var I,
|
|
3889
|
+
var I, g, h, C, f;
|
|
3866
3890
|
return [
|
|
3867
|
-
|
|
3891
|
+
M(_a, {
|
|
3868
3892
|
configuration: {
|
|
3869
|
-
avatar: (
|
|
3893
|
+
avatar: (g = (I = e.branding) == null ? void 0 : I.emblem) == null ? void 0 : g.public_url,
|
|
3870
3894
|
email: (h = e.configuration) == null ? void 0 : h.email,
|
|
3871
|
-
countryCode: (
|
|
3872
|
-
enabledPricingIds: (
|
|
3873
|
-
couponCode: t(
|
|
3895
|
+
countryCode: (C = e.configuration) == null ? void 0 : C.countryCode,
|
|
3896
|
+
enabledPricingIds: (f = e.configuration) == null ? void 0 : f.enabledPricingIds,
|
|
3897
|
+
couponCode: t(r)
|
|
3874
3898
|
},
|
|
3875
|
-
onReady:
|
|
3876
|
-
},
|
|
3877
|
-
|
|
3899
|
+
onReady: d[0] || (d[0] = (L) => o("ready"))
|
|
3900
|
+
}, Ye({ _: 2 }, [
|
|
3901
|
+
s.$slots["terms-and-conditions"] ? {
|
|
3878
3902
|
name: "terms-and-conditions",
|
|
3879
3903
|
fn: b(() => [
|
|
3880
|
-
|
|
3904
|
+
tt(s.$slots, "terms-and-conditions")
|
|
3881
3905
|
]),
|
|
3882
3906
|
key: "0"
|
|
3883
3907
|
} : void 0
|
|
@@ -3887,14 +3911,14 @@ const Ro = {
|
|
|
3887
3911
|
_: 3
|
|
3888
3912
|
}, 8, ["entry", "component-name"]));
|
|
3889
3913
|
}
|
|
3890
|
-
}), { define:
|
|
3891
|
-
|
|
3914
|
+
}), { define: dr } = _i(
|
|
3915
|
+
ha,
|
|
3892
3916
|
"checkout"
|
|
3893
3917
|
);
|
|
3894
3918
|
export {
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3919
|
+
Rn as F,
|
|
3920
|
+
Mo as _,
|
|
3921
|
+
Un as a,
|
|
3922
|
+
dr as d,
|
|
3923
|
+
ur as g
|
|
3900
3924
|
};
|