@solvimon/solvimon-web 0.1.0-alpha.22 → 0.1.0-alpha.23
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 +3 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B70SyWOB.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jXClPW91.js} +1 -1
- package/dist/Alert.vue.es-RyK53a2P.js +1 -0
- package/dist/Alert.vue.es-lIiAWf2S.mjs +146 -0
- package/dist/{Avatar.vue.es-DNJ-jexx.mjs → Avatar.vue.es-2E3laNRb.mjs} +1 -1
- package/dist/{Avatar.vue.es-D42J_izE.js → Avatar.vue.es-DdJreyr_.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js → BillingInformation.vue_vue_type_script_setup_true_lang-ConpyC8n.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D5EoBLhj.mjs} +4 -4
- package/dist/{Button.vue.es-Dz-2L8dJ.mjs → Button.vue.es-BJEy-e9C.mjs} +1 -1
- package/dist/{Button.vue.es-M_jXZda4.js → Button.vue.es-CJNxYacb.js} +1 -1
- package/dist/Checkout.entry.ce-BfLlnQyb.js +1 -0
- package/dist/{Checkout.entry.ce-B5-0AM67.mjs → Checkout.entry.ce-CQkrWscC.mjs} +1095 -1073
- package/dist/{Chip.vue.es-DMK9C78d.mjs → Chip.vue.es-DGbc4L_D.mjs} +2 -2
- package/dist/{Chip.vue.es-G8doKsZb.js → Chip.vue.es-DLQ4QEPo.js} +1 -1
- package/dist/{ContextMenu.vue.es-B3Rz6Ojk.js → ContextMenu.vue.es-Bd2kmeVq.js} +1 -1
- package/dist/{ContextMenu.vue.es-CzkkNoJG.mjs → ContextMenu.vue.es-DL1M7pcr.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-Db6bN2RZ.mjs → CustomerBillingInformation.vue.es-CE94ASC3.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-BmtU9Pk0.js → CustomerBillingInformation.vue.es-hiFzB43w.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BE21tqgW.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bhih7rPR.mjs} +5 -5
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs} +15 -15
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js +1 -0
- package/dist/{DividerText.vue.es-IK2fns6f.mjs → DividerText.vue.es-CFZUQ62L.mjs} +1 -1
- package/dist/{DividerText.vue.es-D-QxT2OD.js → DividerText.vue.es-CvCgHHXN.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-jTJGN4jb.js} +1 -1
- package/dist/{ErrorNotification.vue.es-BGckEwHf.mjs → ErrorNotification.vue.es-B3mvv79S.mjs} +2 -2
- package/dist/ErrorNotification.vue.es-DI2B7WiR.js +1 -0
- package/dist/IconButton.vue.es-Dp8h4YOx.js +1 -0
- package/dist/IconButton.vue.es-GLcGhoHC.mjs +56 -0
- package/dist/{IconTitle.vue.es-BmX68uJx.mjs → IconTitle.vue.es-CzuPQtOX.mjs} +3 -3
- package/dist/{IconTitle.vue.es-CmR2xoeu.js → IconTitle.vue.es-DN9r6nfK.js} +1 -1
- package/dist/{Input.vue.es-BGPELaZU.mjs → Input.vue.es-5Cq8a7oH.mjs} +2 -2
- package/dist/{Input.vue.es-CTOrmrcB.js → Input.vue.es-DM81HeVv.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs} +2 -2
- package/dist/{InvoiceSummary.vue.es-BWLiwlNs.mjs → InvoiceSummary.vue.es-DbtqsTuP.mjs} +7 -7
- package/dist/{InvoiceSummary.vue.es-hpG8Tq1D.js → InvoiceSummary.vue.es-Qy99kLZs.js} +1 -1
- package/dist/{Modal.vue.es-BD4vUaOQ.js → Modal.vue.es-DgLl6XBV.js} +1 -1
- package/dist/{Modal.vue.es-B_G8NQS2.mjs → Modal.vue.es-Z2DWAN2u.mjs} +5 -5
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs +294 -0
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-ComJzB3H.mjs → PaymentHistoryBlock-CjP_514k.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-DSHW_eW1.js → PaymentHistoryBlock-DS1j-8m-.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-CwfCLnKt.js → PaymentIntegrationForm-80b19Lkq.js} +1 -1
- package/dist/{PaymentIntegrationForm-CH5B6BY5.mjs → PaymentIntegrationForm-CpOZUf-W.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs} +3 -3
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DKXhthkA.js} +1 -1
- package/dist/{PaymentIntegrationFormAdyen-DfN7cPYZ.mjs → PaymentIntegrationFormAdyen-BQcgDcik.mjs} +281 -204
- package/dist/PaymentIntegrationFormAdyen-DElXsJ96.js +98 -0
- package/dist/PaymentIntegrationFormStripe-CMwLqOe6.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-CBsXDuhy.mjs → PaymentIntegrationFormStripe-Dx1H3fZ2.mjs} +249 -178
- package/dist/{PaymentMethod.vue.es-DkQdPXfk.mjs → PaymentMethod.vue.es-EhRCfeax.mjs} +3 -3
- package/dist/{PaymentMethod.vue.es-D18g-QB4.js → PaymentMethod.vue.es-pLCCzVxN.js} +1 -1
- package/dist/{PaymentMethodForm-DK8ntFA0.js → PaymentMethodForm-Bw2e1tXo.js} +1 -1
- package/dist/{PaymentMethodForm-CpIZKfPH.mjs → PaymentMethodForm-D3OY8zK5.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CdT1YyeU.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-D7b0HhDc.mjs} +6 -6
- package/dist/{PlanCustomizationEditor-0zCXN-cv.mjs → PlanCustomizationEditor-BQqkgmzL.mjs} +9 -9
- package/dist/PlanCustomizationEditor-RC8kj2rC.js +1 -0
- package/dist/{PricingGroupRangeInput.vue.es-QnpfHxaY.js → PricingGroupRangeInput.vue.es-ClkE98ML.js} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-8_5nfZDI.mjs → PricingGroupRangeInput.vue.es-DNsiUZyT.mjs} +4 -4
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-BJfQLRcS.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CURXAgMT.mjs} +5 -5
- package/dist/RadioGroupExtended.vue.es-Dk9xdj76.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-C92xlCFQ.mjs → RadioGroupExtended.vue.es-vUqn2ZUP.mjs} +3 -3
- package/dist/{Section.vue.es-DQ5H7mqW.mjs → Section.vue.es-C2_topx4.mjs} +1 -1
- package/dist/{Section.vue.es-Btff-cLY.js → Section.vue.es-Cybk1Nb8.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DIgVzXLg.js} +1 -1
- package/dist/{SubscriptionSchedules-Dc0rUnnf.mjs → SubscriptionSchedules-BlCU_xc5.mjs} +1 -1
- package/dist/{SubscriptionSchedules-pzNsego6.js → SubscriptionSchedules-CNTg_oRy.js} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js +1 -0
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs} +12 -12
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BijBAdqp.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs} +6 -6
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-CIedcXGT.mjs → TooltipParagraph.vue.es-Fu9Od3Vr.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-BaqCDjl8.js → TooltipParagraph.vue.es-OX6bAWP9.js} +1 -1
- package/dist/{TrialChip.vue.es-BzNI94k0.js → TrialChip.vue.es-CbjdkR4i.js} +1 -1
- package/dist/{TrialChip.vue.es-DkBuMNr_.mjs → TrialChip.vue.es-c7tZOIW3.mjs} +2 -2
- package/dist/{cn.es-BGqYNPM3.mjs → cn.es-C8Ogac5T.mjs} +2 -2
- package/dist/{cn.es-CvmLj7KH.js → cn.es-lC4_Xd0R.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +7 -7
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +5 -5
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +10 -10
- 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 +8 -8
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +4 -4
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +9 -9
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +6 -6
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +4 -4
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +26 -23
- package/dist/{customElements-Vox1PB6G.js → customElements-BYIdPSzQ.js} +10 -10
- package/dist/{customElements-CSE7dwUr.mjs → customElements-Df6dGrN-.mjs} +354 -353
- package/dist/{customer-5krPxZ8i.mjs → customer-DmsKYpVi.mjs} +1 -1
- package/dist/{customer-Dsq-Moea.js → customer-DoLHZuMG.js} +1 -1
- package/dist/{de-DE-DsFtpLsx.mjs → de-DE-Bgm9bnmp.mjs} +19 -0
- package/dist/{de-DE-C3DzP1nj.js → de-DE-CAL9Mji2.js} +1 -1
- package/dist/{en-US-DvkvbV0p.mjs → en-US-E86eRIxh.mjs} +19 -0
- package/dist/{en-US-X_pSFsNm.js → en-US-_xe5H4TQ.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-DRgfpkJ6.mjs → invoices-CrO6p4Ms.mjs} +1 -1
- package/dist/{invoices-xOV2YaEV.js → invoices-mw87cNTS.js} +1 -1
- package/dist/{it-IT-YBtHAao1.js → it-IT-QFQ1Ajbb.js} +1 -1
- package/dist/{it-IT-TE7oqvXa.mjs → it-IT-co1BfV5s.mjs} +21 -2
- package/dist/{nl-NL-C8wnyKju.js → nl-NL-CJXJC1bx.js} +1 -1
- package/dist/{nl-NL-Di3-JArV.mjs → nl-NL-Drv2E66B.mjs} +19 -0
- package/dist/paymentFailure-Bh60UhxA.mjs +47 -0
- package/dist/paymentFailure-Cki8c5BX.js +1 -0
- package/dist/{paymentMethods-PmkHYomw.mjs → paymentMethods-BNQbW_f1.mjs} +1 -1
- package/dist/{paymentMethods-CRDIw9lz.js → paymentMethods-CQdhZwq4.js} +1 -1
- package/dist/{payments-jAgXhdp_.js → payments-KTjVHqOa.js} +1 -1
- package/dist/{payments-Dvqh6CGW.mjs → payments-VS_N2xpJ.mjs} +1 -1
- 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 +20 -20
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +12 -12
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +20 -20
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
- package/dist/sessionReference-3h-6FdrC.mjs +43 -0
- package/dist/sessionReference-m_6Rp4X1.js +1 -0
- package/dist/subscriptions-Dugd-oZ1.js +1 -0
- package/dist/{subscriptions-XDyI2Cqm.mjs → subscriptions-U4xg2CO1.mjs} +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +2 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +10 -1
- package/dist/types/types/errors.d.ts +5 -0
- package/dist/{useActionDispatchProvider-CNAuaHdm.js → useActionDispatchProvider-CTyDGRX8.js} +1 -1
- package/dist/{useActionDispatchProvider-B8-oycQk.mjs → useActionDispatchProvider-DyQbRCxR.mjs} +1 -1
- package/dist/{useCustomer-DSx-wN-6.js → useCustomer-BXI5Vmit.js} +1 -1
- package/dist/{useCustomer-CP8eWUZV.mjs → useCustomer-dcmU1539.mjs} +1 -1
- package/dist/{useCustomerFormLabels-DW6jnDYH.mjs → useCustomerFormLabels-BC1WfqWo.mjs} +5 -5
- package/dist/{useCustomerFormLabels-TVTgy0MT.js → useCustomerFormLabels-Ct6vD_b8.js} +1 -1
- package/dist/{useExperimentalFeature-BvE_EOX-.mjs → useExperimentalFeature-4Y-ppDr7.mjs} +1 -1
- package/dist/{useExperimentalFeature-CC-DrIcL.js → useExperimentalFeature-9-p9_nP6.js} +1 -1
- package/dist/{useInvoiceData-D8ds05CX.mjs → useInvoiceData-B2Z9aD2w.mjs} +2 -2
- package/dist/{useInvoiceData-CRRPdXc6.js → useInvoiceData-CGvtl7Ai.js} +1 -1
- package/dist/{useInvoicesList-DIfQcvER.js → useInvoicesList-Ba0GO8p-.js} +1 -1
- package/dist/{useInvoicesList-SJU5YWBQ.mjs → useInvoicesList-DJPznhig.mjs} +7 -7
- package/dist/{useLoadInitialData-DsabgMLZ.js → useLoadInitialData-BO9ZsSsF.js} +1 -1
- package/dist/{useLoadInitialData-MUljS38K.mjs → useLoadInitialData-CWyI3_RR.mjs} +1 -1
- package/dist/{usePaymentMethodAvailability-D0NUanyF.mjs → usePaymentMethodAvailability-DqIvkjLF.mjs} +4 -4
- package/dist/{usePaymentMethodAvailability-Bt7P9InI.js → usePaymentMethodAvailability-bkmDrPXY.js} +1 -1
- package/dist/{usePaymentMethodOptions-cT1o-BA1.js → usePaymentMethodOptions-BPBVGNDg.js} +1 -1
- package/dist/{usePaymentMethodOptions-B7JYkGsw.mjs → usePaymentMethodOptions-MSEp39xQ.mjs} +1 -1
- package/dist/{usePaymentMethods-DNVw2eVg.js → usePaymentMethods-BAOtOJZD.js} +1 -1
- package/dist/{usePaymentMethods-CpzqXQUT.mjs → usePaymentMethods-U7gnZ0F5.mjs} +1 -1
- package/dist/{usePayments-Gx9kBvNB.mjs → usePayments-Dq2V6bTV.mjs} +6 -6
- package/dist/{usePayments-D9Eo-uBk.js → usePayments-G-HpKpK8.js} +1 -1
- package/dist/{usePortal-DsebXdhx.js → usePortal-BplmMkBG.js} +1 -1
- package/dist/{usePortal-3VCZwSUE.mjs → usePortal-CMHV-ShD.mjs} +1 -1
- package/dist/{useSubscription-K_gP9TeX.js → useSubscription-CvB8ROBt.js} +1 -1
- package/dist/{useSubscription-DnL1wVh1.mjs → useSubscription-V53WsZwQ.mjs} +1 -1
- package/dist/{useTimePeriod.es-CmltiTE-.js → useTimePeriod.es-CtCTu9cz.js} +1 -1
- package/dist/{useTimePeriod.es-DMtKzcoB.mjs → useTimePeriod.es-D31Zl1MJ.mjs} +1 -1
- package/package.json +2 -1
- package/dist/Checkout.entry.ce-C52gkrNZ.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +0 -1
- package/dist/ErrorNotification.vue.es-Cd2UKPAz.js +0 -1
- package/dist/IconButton.vue.es-BTAkuFsm.js +0 -1
- package/dist/IconButton.vue.es-C4dQEQAc.mjs +0 -198
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs +0 -144
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-Q48aDXR7.js +0 -98
- package/dist/PaymentIntegrationFormStripe-BSEqarl7.js +0 -102
- package/dist/PlanCustomizationEditor-XpofGULc.js +0 -1
- package/dist/RadioGroupExtended.vue.es-Cb1iD73r.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +0 -1
- package/dist/component-5wqcK7yz.mjs +0 -8
- package/dist/component-B7ZDyqBp.js +0 -1
- package/dist/subscriptions-fJcj88X9.js +0 -1
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { unref as t, inject as qt, ref as
|
|
2
|
-
import { I as oi, b as Me, u as ve, _ as se, d as ni, e as ai } from "./customElements-
|
|
3
|
-
import { u as Lt } from "./useTimePeriod.es-
|
|
1
|
+
import { unref as t, inject as qt, ref as V, computed as b, onMounted as Oe, toRaw as Jt, watch as we, defineComponent as ce, openBlock as _, createBlock as O, withCtx as I, createElementVNode as T, createVNode as E, createTextVNode as F, toDisplayString as U, useModel as ei, createElementBlock as W, withModifiers as $e, Fragment as _e, createCommentVNode as B, createSlots as Je, normalizeClass as be, mergeModels as vt, renderSlot as We, nextTick as He, mergeProps as ft, withDirectives as ti, withKeys as _t, vShow as ii, defineAsyncComponent as Mt } from "vue";
|
|
2
|
+
import { I as oi, b as Me, u as ve, _ as se, d as ni, e as ai } from "./customElements-Df6dGrN-.mjs";
|
|
3
|
+
import { u as Lt } from "./useTimePeriod.es-D31Zl1MJ.mjs";
|
|
4
4
|
import { b as ze, f as Ie } from "./formatting.es-RclXHhKo.mjs";
|
|
5
|
-
import { _ as Ae, a as je } from "./Button.vue.es-
|
|
6
|
-
import { _ as ri } from "./ErrorNotification.vue.es-
|
|
5
|
+
import { _ as Ae, a as je } from "./Button.vue.es-BJEy-e9C.mjs";
|
|
6
|
+
import { _ as ri } from "./ErrorNotification.vue.es-B3mvv79S.mjs";
|
|
7
7
|
import { c as li } from "./countryData.es-BegoD-cZ.mjs";
|
|
8
|
-
import { c as si } from "./subscriptions-
|
|
8
|
+
import { c as si } from "./subscriptions-U4xg2CO1.mjs";
|
|
9
9
|
import { A as De } from "./error-BHVZJGwD.mjs";
|
|
10
|
-
import { c as ci, _ as ui } from "./TrialChip.vue.es-
|
|
10
|
+
import { c as ci, _ as ui } from "./TrialChip.vue.es-c7tZOIW3.mjs";
|
|
11
11
|
import { a as di } from "./useService-Bh47bllz.mjs";
|
|
12
|
-
import { c as pi } from "./invoices-
|
|
13
|
-
import { g as Ne, b as
|
|
12
|
+
import { c as pi } from "./invoices-CrO6p4Ms.mjs";
|
|
13
|
+
import { g as Ne, b as Tt, e as mi } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
14
14
|
import { u as gi, r as ht, e as yi, a as Re, _ as vi } from "./index-BPU8tIml.mjs";
|
|
15
|
-
import { o as fi, u as _i, _ as Mi, a as hi } from "./useCustomerFormLabels-
|
|
15
|
+
import { o as fi, u as _i, _ as Mi, a as hi } from "./useCustomerFormLabels-BC1WfqWo.mjs";
|
|
16
16
|
import { u as bi } from "./useWatchDebounced-DT5IicPp.mjs";
|
|
17
|
-
import { u as Ii } from "./usePaymentMethodOptions-
|
|
17
|
+
import { u as Ii } from "./usePaymentMethodOptions-MSEp39xQ.mjs";
|
|
18
18
|
import { c as et, a as Ai, d as Pi } from "./subscription-CrVOr5MF.mjs";
|
|
19
|
-
import { a as Di, b as
|
|
20
|
-
import { g as
|
|
19
|
+
import { a as Di, b as wt } from "./pricing-DLOeiAIB.mjs";
|
|
20
|
+
import { g as Te, s as Ni } from "./url-DwiuKYpu.mjs";
|
|
21
21
|
import { P as Ei, e as Ci, c as bt, d as xi } from "./adyen-CvsH5fok.mjs";
|
|
22
|
-
import { u as Li } from "./usePortal-
|
|
23
|
-
import { g as
|
|
22
|
+
import { u as Li } from "./usePortal-CMHV-ShD.mjs";
|
|
23
|
+
import { g as Ti } from "./getCountryNameByCode.es-BDHua7VM.mjs";
|
|
24
24
|
import { _ as It } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
25
|
-
import { _ as ye } from "./Input.vue.es-
|
|
26
|
-
import { _ as ge } from "./Section.vue.es-
|
|
27
|
-
import { _ as
|
|
28
|
-
import { c as Si } from "./customer-
|
|
29
|
-
import { b as
|
|
30
|
-
import { _ as ji, T as Ri, a as Bi } from "./TooltipParagraph.vue.es-
|
|
31
|
-
import { _ as $i } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
32
|
-
import { _ as At } from "./Chip.vue.es-
|
|
33
|
-
import { _ as Ui, a as Vi } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-
|
|
34
|
-
import { _ as Fi } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-
|
|
25
|
+
import { _ as ye } from "./Input.vue.es-5Cq8a7oH.mjs";
|
|
26
|
+
import { _ as ge } from "./Section.vue.es-C2_topx4.mjs";
|
|
27
|
+
import { _ as wi } from "./Alert.vue.es-lIiAWf2S.mjs";
|
|
28
|
+
import { c as Si } from "./customer-DmsKYpVi.mjs";
|
|
29
|
+
import { b as Oi, c as ki, a as zi, _ as Ze } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs";
|
|
30
|
+
import { _ as ji, T as Ri, a as Bi } from "./TooltipParagraph.vue.es-Fu9Od3Vr.mjs";
|
|
31
|
+
import { _ as $i } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs";
|
|
32
|
+
import { _ as At } from "./Chip.vue.es-DGbc4L_D.mjs";
|
|
33
|
+
import { _ as Ui, a as Vi } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs";
|
|
34
|
+
import { _ as Fi } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs";
|
|
35
35
|
import { u as St } from "./useViewport-BgdA2PPt.mjs";
|
|
36
36
|
import { _ as fe } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
37
|
-
import { _ as Gi } from "./DividerText.vue.es-
|
|
37
|
+
import { _ as Gi } from "./DividerText.vue.es-CFZUQ62L.mjs";
|
|
38
38
|
import { l as Ve } from "./adyenSdk-B01MB9Ia.mjs";
|
|
39
|
-
import { c as Yi } from "./payments-
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
|
|
39
|
+
import { c as Yi } from "./payments-VS_N2xpJ.mjs";
|
|
40
|
+
import { c as Ki } from "./paymentFailure-Bh60UhxA.mjs";
|
|
41
|
+
import { C as Qi } from "./ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
42
|
+
import { u as Hi } from "./cn.es-C8Ogac5T.mjs";
|
|
43
|
+
import { a as Zi } from "./sessionReference-3h-6FdrC.mjs";
|
|
44
|
+
const Xi = {
|
|
44
45
|
AT: "Austria",
|
|
45
46
|
BE: "Belgium",
|
|
46
47
|
BG: "Bulgaria",
|
|
@@ -69,8 +70,8 @@ const Zi = {
|
|
|
69
70
|
SI: "Slovenia",
|
|
70
71
|
SK: "Slovakia"
|
|
71
72
|
};
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(
|
|
73
|
+
function Ot(e) {
|
|
74
|
+
return Object.keys(Xi).includes(e);
|
|
74
75
|
}
|
|
75
76
|
function Pt(e, i) {
|
|
76
77
|
var o = Object.keys(e);
|
|
@@ -86,14 +87,14 @@ function Se(e) {
|
|
|
86
87
|
for (var i = 1; i < arguments.length; i++) {
|
|
87
88
|
var o = arguments[i] != null ? arguments[i] : {};
|
|
88
89
|
i % 2 ? Pt(Object(o), !0).forEach(function(n) {
|
|
89
|
-
|
|
90
|
+
Wi(e, n, o[n]);
|
|
90
91
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Pt(Object(o)).forEach(function(n) {
|
|
91
92
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
return e;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function Wi(e, i, o) {
|
|
97
98
|
return i in e ? Object.defineProperty(e, i, {
|
|
98
99
|
value: o,
|
|
99
100
|
enumerable: !0,
|
|
@@ -112,25 +113,25 @@ function Fe(e) {
|
|
|
112
113
|
$validator: e
|
|
113
114
|
};
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function kt(e) {
|
|
116
117
|
return typeof e == "object" ? e.$valid : e;
|
|
117
118
|
}
|
|
118
119
|
function zt(e) {
|
|
119
120
|
return e.$validator || e;
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function qi(e, i) {
|
|
122
123
|
if (!qe(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
|
123
124
|
if (!qe(i) && !Ue(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
|
124
125
|
const o = Fe(i);
|
|
125
126
|
return o.$params = Se(Se({}, o.$params || {}), e), o;
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function Ji(e, i) {
|
|
128
129
|
if (!Ue(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}`);
|
|
129
130
|
if (!qe(i) && !Ue(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
|
130
131
|
const o = Fe(i);
|
|
131
132
|
return o.$message = e, o;
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function eo(e) {
|
|
134
135
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
135
136
|
const o = Fe(e);
|
|
136
137
|
return Se(Se({}, o), {}, {
|
|
@@ -138,48 +139,48 @@ function Ji(e) {
|
|
|
138
139
|
$watchTargets: i
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
|
-
function
|
|
142
|
+
function to(e) {
|
|
142
143
|
return {
|
|
143
144
|
$validator(i) {
|
|
144
145
|
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
|
|
145
146
|
n[a - 1] = arguments[a];
|
|
146
|
-
return t(i).reduce((
|
|
147
|
-
const
|
|
148
|
-
let [M, A] =
|
|
149
|
-
const
|
|
150
|
-
let [
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
153
|
-
let
|
|
154
|
-
const
|
|
155
|
-
typeof
|
|
147
|
+
return t(i).reduce((l, c, m) => {
|
|
148
|
+
const u = Object.entries(c).reduce((N, v) => {
|
|
149
|
+
let [M, A] = v;
|
|
150
|
+
const d = e[M] || {}, L = Object.entries(d).reduce((k, p) => {
|
|
151
|
+
let [C, x] = p;
|
|
152
|
+
const Q = zt(x).call(this, A, c, m, ...n), s = kt(Q);
|
|
153
|
+
if (k.$data[C] = Q, k.$data.$invalid = !s || !!k.$data.$invalid, k.$data.$error = k.$data.$invalid, !s) {
|
|
154
|
+
let P = x.$message || "";
|
|
155
|
+
const q = x.$params || {};
|
|
156
|
+
typeof P == "function" && (P = P({
|
|
156
157
|
$pending: !1,
|
|
157
|
-
$invalid: !
|
|
158
|
-
$params:
|
|
158
|
+
$invalid: !s,
|
|
159
|
+
$params: q,
|
|
159
160
|
$model: A,
|
|
160
|
-
$response:
|
|
161
|
-
})),
|
|
161
|
+
$response: Q
|
|
162
|
+
})), k.$errors.push({
|
|
162
163
|
$property: M,
|
|
163
|
-
$message:
|
|
164
|
-
$params:
|
|
165
|
-
$response:
|
|
164
|
+
$message: P,
|
|
165
|
+
$params: q,
|
|
166
|
+
$response: Q,
|
|
166
167
|
$model: A,
|
|
167
168
|
$pending: !1,
|
|
168
|
-
$validator:
|
|
169
|
+
$validator: C
|
|
169
170
|
});
|
|
170
171
|
}
|
|
171
172
|
return {
|
|
172
|
-
$valid:
|
|
173
|
-
$data:
|
|
174
|
-
$errors:
|
|
173
|
+
$valid: k.$valid && s,
|
|
174
|
+
$data: k.$data,
|
|
175
|
+
$errors: k.$errors
|
|
175
176
|
};
|
|
176
177
|
}, {
|
|
177
178
|
$valid: !0,
|
|
178
179
|
$data: {},
|
|
179
180
|
$errors: []
|
|
180
181
|
});
|
|
181
|
-
return N.$data[M] =
|
|
182
|
-
$valid: N.$valid &&
|
|
182
|
+
return N.$data[M] = L.$data, N.$errors[M] = L.$errors, {
|
|
183
|
+
$valid: N.$valid && L.$valid,
|
|
183
184
|
$data: N.$data,
|
|
184
185
|
$errors: N.$errors
|
|
185
186
|
};
|
|
@@ -189,9 +190,9 @@ function eo(e) {
|
|
|
189
190
|
$errors: {}
|
|
190
191
|
});
|
|
191
192
|
return {
|
|
192
|
-
$valid:
|
|
193
|
-
$data:
|
|
194
|
-
$errors:
|
|
193
|
+
$valid: l.$valid && u.$valid,
|
|
194
|
+
$data: l.$data.concat(u.$data),
|
|
195
|
+
$errors: l.$errors.concat(u.$errors)
|
|
195
196
|
};
|
|
196
197
|
}, {
|
|
197
198
|
$valid: !0,
|
|
@@ -203,7 +204,7 @@ function eo(e) {
|
|
|
203
204
|
let {
|
|
204
205
|
$response: o
|
|
205
206
|
} = i;
|
|
206
|
-
return o ? o.$errors.map((n) => Object.values(n).map((a) => a.map((
|
|
207
|
+
return o ? o.$errors.map((n) => Object.values(n).map((a) => a.map((l) => l.$message)).reduce((a, l) => a.concat(l), [])) : [];
|
|
207
208
|
}
|
|
208
209
|
};
|
|
209
210
|
}
|
|
@@ -220,33 +221,33 @@ const jt = (e) => {
|
|
|
220
221
|
return !1;
|
|
221
222
|
}
|
|
222
223
|
return !!String(e).length;
|
|
223
|
-
},
|
|
224
|
+
}, io = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
|
224
225
|
function he() {
|
|
225
226
|
for (var e = arguments.length, i = new Array(e), o = 0; o < e; o++)
|
|
226
227
|
i[o] = arguments[o];
|
|
227
228
|
return (n) => (n = t(n), !jt(n) || i.every((a) => (a.lastIndex = 0, a.test(n))));
|
|
228
229
|
}
|
|
229
|
-
var
|
|
230
|
+
var oo = /* @__PURE__ */ Object.freeze({
|
|
230
231
|
__proto__: null,
|
|
231
|
-
forEach:
|
|
232
|
-
len:
|
|
232
|
+
forEach: to,
|
|
233
|
+
len: io,
|
|
233
234
|
normalizeValidatorObject: Fe,
|
|
234
235
|
regex: he,
|
|
235
236
|
req: jt,
|
|
236
237
|
unwrap: t,
|
|
237
238
|
unwrapNormalizedValidator: zt,
|
|
238
|
-
unwrapValidatorResponse:
|
|
239
|
-
withAsync:
|
|
240
|
-
withMessage:
|
|
241
|
-
withParams:
|
|
239
|
+
unwrapValidatorResponse: kt,
|
|
240
|
+
withAsync: eo,
|
|
241
|
+
withMessage: Ji,
|
|
242
|
+
withParams: qi
|
|
242
243
|
});
|
|
243
244
|
he(/^[a-zA-Z]*$/);
|
|
244
245
|
he(/^[a-zA-Z0-9]*$/);
|
|
245
246
|
he(/^\d*(\.\d+)?$/);
|
|
246
|
-
const
|
|
247
|
-
he(oo);
|
|
248
|
-
const no = /^(?:(?:(?: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;
|
|
247
|
+
const no = /^(?:[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;
|
|
249
248
|
he(no);
|
|
249
|
+
const ao = /^(?:(?:(?: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
|
+
he(ao);
|
|
250
251
|
he(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
251
252
|
he(/^[-]?\d*(\.\d+)?$/);
|
|
252
253
|
function Ge(e) {
|
|
@@ -423,7 +424,7 @@ const Rt = {
|
|
|
423
424
|
prefix: "XI",
|
|
424
425
|
example: "XI123456789"
|
|
425
426
|
}
|
|
426
|
-
},
|
|
427
|
+
}, ro = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(Rt).some((i) => i.regex.test(e)), lo = ({ $model: e }) => {
|
|
427
428
|
if (!e || typeof e != "string" || e.trim() === "")
|
|
428
429
|
return "";
|
|
429
430
|
const i = qt(oi, null);
|
|
@@ -444,34 +445,34 @@ const Rt = {
|
|
|
444
445
|
id: "taxId.invalid",
|
|
445
446
|
description: "Error message when tax ID is invalid"
|
|
446
447
|
});
|
|
447
|
-
}, tt =
|
|
448
|
+
}, tt = oo.withMessage(lo, ro), so = "preview", co = "NL", Bt = (e) => {
|
|
448
449
|
var i, o;
|
|
449
450
|
if ("organization" in e)
|
|
450
451
|
return (i = e.organization) == null ? void 0 : i.registered_address;
|
|
451
452
|
if ("individual" in e)
|
|
452
453
|
return (o = e.individual) == null ? void 0 : o.residential_address;
|
|
453
|
-
},
|
|
454
|
+
}, uo = (e) => {
|
|
454
455
|
const i = Bt(e);
|
|
455
456
|
return {
|
|
456
457
|
...(i == null ? void 0 : i.line1) && { line1: i.line1 },
|
|
457
458
|
...(i == null ? void 0 : i.line2) && { line2: i.line2 },
|
|
458
459
|
...(i == null ? void 0 : i.city) && { city: i.city },
|
|
459
460
|
...(i == null ? void 0 : i.state) && { state: i.state },
|
|
460
|
-
country: (i == null ? void 0 : i.country) ||
|
|
461
|
+
country: (i == null ? void 0 : i.country) || co,
|
|
461
462
|
...(i == null ? void 0 : i.postal_code) && { postal_code: i.postal_code }
|
|
462
463
|
};
|
|
463
|
-
},
|
|
464
|
+
}, po = (e) => {
|
|
464
465
|
var n, a;
|
|
465
|
-
const i =
|
|
466
|
+
const i = uo(e), o = e.type ?? "INDIVIDUAL";
|
|
466
467
|
if (o === "ORGANIZATION") {
|
|
467
|
-
const
|
|
468
|
+
const l = "organization" in e ? e.organization : void 0, c = (a = (n = l == null ? void 0 : l.tax_ids) == null ? void 0 : n[0]) == null ? void 0 : a.id;
|
|
468
469
|
return {
|
|
469
470
|
type: o,
|
|
470
471
|
organization: {
|
|
471
|
-
legal_name: (
|
|
472
|
+
legal_name: (l == null ? void 0 : l.legal_name) || so,
|
|
472
473
|
registered_address: i,
|
|
473
|
-
...
|
|
474
|
-
tax_id: tt.$validator(
|
|
474
|
+
...c && {
|
|
475
|
+
tax_id: tt.$validator(c, {}, {}) ? c : void 0
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
};
|
|
@@ -482,7 +483,7 @@ const Rt = {
|
|
|
482
483
|
residential_address: i
|
|
483
484
|
}
|
|
484
485
|
};
|
|
485
|
-
},
|
|
486
|
+
}, mo = {
|
|
486
487
|
AD: "EUR",
|
|
487
488
|
AE: "AED",
|
|
488
489
|
AF: "AFN",
|
|
@@ -730,68 +731,68 @@ const Rt = {
|
|
|
730
731
|
ZA: "ZAR",
|
|
731
732
|
ZM: "ZMW",
|
|
732
733
|
ZW: "ZWL"
|
|
733
|
-
},
|
|
734
|
+
}, go = (e) => {
|
|
734
735
|
if (e)
|
|
735
|
-
return
|
|
736
|
+
return mo[e];
|
|
736
737
|
}, $t = ({
|
|
737
738
|
country: e,
|
|
738
739
|
pricingCurrencySettings: i,
|
|
739
740
|
fallbackCurrency: o
|
|
740
741
|
}) => {
|
|
741
|
-
const n =
|
|
742
|
+
const n = go(e), a = (i == null ? void 0 : i.pricing_currencies) ?? [];
|
|
742
743
|
return n && a.includes(n) ? n : (i == null ? void 0 : i.default_pricing_currency) ?? o ?? n;
|
|
743
|
-
},
|
|
744
|
-
const { getInvoicePreview: e } = pi(), i = Me(), o =
|
|
744
|
+
}, yo = () => {
|
|
745
|
+
const { getInvoicePreview: e } = pi(), i = Me(), o = V(), n = V(), a = V(), l = V({}), c = V(De.Initial), m = V({}), u = V(), N = (M) => `${M.type}:${M.value}`;
|
|
745
746
|
return {
|
|
746
747
|
loadInvoicePreview: async ({
|
|
747
748
|
subscription: M,
|
|
748
749
|
subscriptionStartAt: A,
|
|
749
|
-
customer:
|
|
750
|
-
seatsValues:
|
|
751
|
-
unitsValues:
|
|
752
|
-
enabledPricingIds:
|
|
753
|
-
promotionCode:
|
|
750
|
+
customer: d = {},
|
|
751
|
+
seatsValues: L,
|
|
752
|
+
unitsValues: k,
|
|
753
|
+
enabledPricingIds: p,
|
|
754
|
+
promotionCode: C
|
|
754
755
|
}) => {
|
|
755
|
-
var
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
const
|
|
756
|
+
var g, h, w, j, H, Y;
|
|
757
|
+
const x = po(d);
|
|
758
|
+
c.value = De.Loading;
|
|
759
|
+
const R = Ne({
|
|
759
760
|
pricingPlanScheduleInfos: M.pricing_plan_schedule_infos,
|
|
760
761
|
type: "DEFAULT"
|
|
761
|
-
}),
|
|
762
|
-
country: (H = Bt(
|
|
763
|
-
pricingCurrencySettings:
|
|
762
|
+
}), Q = (g = R == null ? void 0 : R.pricing_plan_version) == null ? void 0 : g.pricing_currency_settings, s = (((h = Q == null ? void 0 : Q.pricing_currencies) == null ? void 0 : h.length) ?? 0) > 1, P = ((j = (w = R == null ? void 0 : R.pricing_plan_version) == null ? void 0 : w.billing_period_settings) == null ? void 0 : j.billing_periods) ?? [], q = P.length > 1, te = P.length > 0 ? P.map(({ period: G }) => G) : M.billing_period ? [M.billing_period] : [], f = $t({
|
|
763
|
+
country: (H = Bt(d)) == null ? void 0 : H.country,
|
|
764
|
+
pricingCurrencySettings: Q,
|
|
764
765
|
fallbackCurrency: M.billing_currency
|
|
765
766
|
});
|
|
766
767
|
if (!te.length) {
|
|
767
768
|
i.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
|
|
768
769
|
subscriptionId: M.id
|
|
769
|
-
}),
|
|
770
|
+
}), c.value = De.Done;
|
|
770
771
|
return;
|
|
771
772
|
}
|
|
772
|
-
const
|
|
773
|
+
const y = M.billing_period ? N(M.billing_period) : N(te[0]), r = te.map(async (G) => {
|
|
773
774
|
var ie;
|
|
774
|
-
const ae = N(
|
|
775
|
-
enabledPricings:
|
|
776
|
-
pricing_id:
|
|
775
|
+
const ae = N(G), Z = Tt({
|
|
776
|
+
enabledPricings: p == null ? void 0 : p.map((J) => ({
|
|
777
|
+
pricing_id: J
|
|
777
778
|
})),
|
|
778
|
-
seatsValues:
|
|
779
|
-
unitsValues:
|
|
779
|
+
seatsValues: L,
|
|
780
|
+
unitsValues: k,
|
|
780
781
|
pricingPlanScheduleInfos: M.pricing_plan_schedule_infos,
|
|
781
|
-
pricingCurrency:
|
|
782
|
-
billingPeriod:
|
|
782
|
+
pricingCurrency: s ? f : void 0,
|
|
783
|
+
billingPeriod: q ? G : void 0
|
|
783
784
|
}) ?? [];
|
|
784
|
-
if (
|
|
785
|
-
const
|
|
785
|
+
if (C) {
|
|
786
|
+
const J = (ie = M.pricing_plan_schedule_infos.find(
|
|
786
787
|
({ pricing_plan_schedule: ee }) => ee.type === "DEFAULT"
|
|
787
788
|
)) == null ? void 0 : ie.id;
|
|
788
|
-
if (
|
|
789
|
+
if (J) {
|
|
789
790
|
const ee = Z.find(
|
|
790
|
-
({ pricing_plan_schedule_id: oe }) => oe ===
|
|
791
|
+
({ pricing_plan_schedule_id: oe }) => oe === J
|
|
791
792
|
);
|
|
792
|
-
ee ? ee.promotion_codes = [
|
|
793
|
-
pricing_plan_schedule_id:
|
|
794
|
-
promotion_codes: [
|
|
793
|
+
ee ? ee.promotion_codes = [C] : Z.push({
|
|
794
|
+
pricing_plan_schedule_id: J,
|
|
795
|
+
promotion_codes: [C]
|
|
795
796
|
});
|
|
796
797
|
}
|
|
797
798
|
}
|
|
@@ -799,54 +800,54 @@ const Rt = {
|
|
|
799
800
|
pricingPlanSubscriptionId: M.id,
|
|
800
801
|
startAt: A,
|
|
801
802
|
customizations: Z,
|
|
802
|
-
customer:
|
|
803
|
-
}, ne =
|
|
803
|
+
customer: x
|
|
804
|
+
}, ne = m.value[ae];
|
|
804
805
|
if (ne && di(re, ne))
|
|
805
806
|
return { periodKey: ae, response: void 0 };
|
|
806
|
-
|
|
807
|
-
...
|
|
807
|
+
m.value = {
|
|
808
|
+
...m.value,
|
|
808
809
|
[ae]: re
|
|
809
810
|
};
|
|
810
|
-
const
|
|
811
|
-
return { periodKey: ae, response:
|
|
811
|
+
const $ = await e(re);
|
|
812
|
+
return { periodKey: ae, response: $ };
|
|
812
813
|
});
|
|
813
814
|
try {
|
|
814
|
-
const
|
|
815
|
-
...
|
|
816
|
-
}, ae = await Promise.all(
|
|
815
|
+
const G = {
|
|
816
|
+
...l.value
|
|
817
|
+
}, ae = await Promise.all(r), Z = M.pricing_plan_schedule_infos.find(
|
|
817
818
|
({ pricing_plan_schedule: ne }) => ne.type === "TRIAL"
|
|
818
|
-
), re = (
|
|
819
|
+
), re = (Y = M.pricing_plan_schedule_infos.find(
|
|
819
820
|
({ pricing_plan_schedule: ne }) => ne.type === "DEFAULT"
|
|
820
|
-
)) == null ? void 0 :
|
|
821
|
-
ae.forEach(({ periodKey: ne, response:
|
|
821
|
+
)) == null ? void 0 : Y.id;
|
|
822
|
+
ae.forEach(({ periodKey: ne, response: $ }) => {
|
|
822
823
|
var ee;
|
|
823
|
-
if (
|
|
824
|
-
|
|
824
|
+
if (!$) return;
|
|
825
|
+
u.value = (ee = $.invoice_infos.at(-1)) == null ? void 0 : ee.pricing_plan_schedule_id, Z && (n.value = $.first_invoice, Z.start_at && Z.end_at && (o.value = ci(
|
|
825
826
|
new Date(Z.start_at),
|
|
826
827
|
new Date(Z.end_at)
|
|
827
828
|
)));
|
|
828
|
-
const ie =
|
|
829
|
+
const ie = $.invoice_infos.find(
|
|
829
830
|
({ pricing_plan_schedule_id: oe }) => oe === re
|
|
830
|
-
),
|
|
831
|
-
|
|
832
|
-
}),
|
|
833
|
-
} catch (
|
|
834
|
-
throw
|
|
831
|
+
), J = ie == null ? void 0 : ie.invoices[0];
|
|
832
|
+
J && (G[ne] = J);
|
|
833
|
+
}), l.value = G, a.value = G[y];
|
|
834
|
+
} catch (G) {
|
|
835
|
+
throw c.value = De.Failed, i.error("INVOICE_PREVIEW_FAILED", "Failed to load invoice preview", {}, G), G;
|
|
835
836
|
} finally {
|
|
836
|
-
|
|
837
|
+
c.value = De.Done;
|
|
837
838
|
}
|
|
838
839
|
},
|
|
839
840
|
invoicePreview: a,
|
|
840
|
-
invoicePreviewByBillingPeriod:
|
|
841
|
+
invoicePreviewByBillingPeriod: l,
|
|
841
842
|
trialInvoicePreview: n,
|
|
842
843
|
trialPeriod: o,
|
|
843
|
-
lastPreviewScheduleId:
|
|
844
|
-
isPending: b(() =>
|
|
844
|
+
lastPreviewScheduleId: u,
|
|
845
|
+
isPending: b(() => c.value === De.Loading)
|
|
845
846
|
};
|
|
846
847
|
}, Dt = ["email", "country"], Ut = "GENERIC_TAX_ID", Nt = {
|
|
847
848
|
US: ["addressLine1", "postalCode"],
|
|
848
849
|
CA: ["state"]
|
|
849
|
-
},
|
|
850
|
+
}, vo = (e) => !e || !Nt[e] ? Dt : [...Nt[e], ...Dt], Et = (e) => {
|
|
850
851
|
const i = {
|
|
851
852
|
...e.addressLine1 && { line1: e.addressLine1 },
|
|
852
853
|
...e.addressLine2 && { line2: e.addressLine2 },
|
|
@@ -871,7 +872,7 @@ const Rt = {
|
|
|
871
872
|
}
|
|
872
873
|
};
|
|
873
874
|
};
|
|
874
|
-
function
|
|
875
|
+
function fo() {
|
|
875
876
|
return {
|
|
876
877
|
/**
|
|
877
878
|
* Get geolocation information from the user
|
|
@@ -881,65 +882,65 @@ function vo() {
|
|
|
881
882
|
}
|
|
882
883
|
};
|
|
883
884
|
}
|
|
884
|
-
function
|
|
885
|
+
function _o({
|
|
885
886
|
initialState: e,
|
|
886
887
|
onRequiredFieldChange: i
|
|
887
888
|
}) {
|
|
888
|
-
const o =
|
|
889
|
-
const M = Be({ ...Jt(o.value), ...
|
|
889
|
+
const o = V(Be(e)), n = V(Be(e)), a = (v) => {
|
|
890
|
+
const M = Be({ ...Jt(o.value), ...v });
|
|
890
891
|
o.value = M, n.value = structuredClone(M);
|
|
891
|
-
},
|
|
892
|
-
() =>
|
|
893
|
-
),
|
|
892
|
+
}, l = b(
|
|
893
|
+
() => vo(o.value.country)
|
|
894
|
+
), c = (v) => l.value.includes(v), m = gi(
|
|
894
895
|
{
|
|
895
896
|
email: { required: ht, email: yi },
|
|
896
897
|
country: { required: ht },
|
|
897
|
-
state: { required: Re(() =>
|
|
898
|
-
addressLine1: { required: Re(() =>
|
|
899
|
-
postalCode: { required: Re(() =>
|
|
898
|
+
state: { required: Re(() => c("state")) },
|
|
899
|
+
addressLine1: { required: Re(() => c("addressLine1")) },
|
|
900
|
+
postalCode: { required: Re(() => c("postalCode")) },
|
|
900
901
|
companyLegalName: Re(o.value.type === "ORGANIZATION"),
|
|
901
902
|
companyVatNumber: { taxId: tt }
|
|
902
903
|
},
|
|
903
904
|
o
|
|
904
|
-
),
|
|
905
|
-
|
|
905
|
+
), u = (v) => {
|
|
906
|
+
v || fo().getGeoLocation().then(({ country: M }) => {
|
|
906
907
|
o.value.country = M;
|
|
907
908
|
});
|
|
908
|
-
}, N = (
|
|
909
|
-
const A = fi({ from: M, to:
|
|
910
|
-
if (
|
|
911
|
-
if (["type", "companyVatNumber"].includes(
|
|
912
|
-
i(
|
|
909
|
+
}, N = (v, M) => {
|
|
910
|
+
const A = fi({ from: M, to: v }), d = Object.keys(A).find(Mo);
|
|
911
|
+
if (d) {
|
|
912
|
+
if (["type", "companyVatNumber"].includes(d)) {
|
|
913
|
+
i(v);
|
|
913
914
|
return;
|
|
914
915
|
}
|
|
915
|
-
if (
|
|
916
|
-
i(
|
|
916
|
+
if (d === "seatsValues") {
|
|
917
|
+
i(v);
|
|
917
918
|
return;
|
|
918
919
|
}
|
|
919
|
-
if (
|
|
920
|
-
i(
|
|
920
|
+
if (d === "unitsValues") {
|
|
921
|
+
i(v);
|
|
921
922
|
return;
|
|
922
923
|
}
|
|
923
|
-
if (
|
|
924
|
-
i(
|
|
924
|
+
if (d === "enabledPricingIds") {
|
|
925
|
+
i(v);
|
|
925
926
|
return;
|
|
926
927
|
}
|
|
927
|
-
if (
|
|
928
|
-
i(
|
|
928
|
+
if (d !== "email" && c(d)) {
|
|
929
|
+
i(v);
|
|
929
930
|
return;
|
|
930
931
|
}
|
|
931
932
|
}
|
|
932
933
|
};
|
|
933
|
-
return
|
|
934
|
-
await
|
|
934
|
+
return Oe(async () => {
|
|
935
|
+
await u(e == null ? void 0 : e.country);
|
|
935
936
|
}), bi(
|
|
936
937
|
() => JSON.parse(JSON.stringify(o.value)),
|
|
937
938
|
N,
|
|
938
939
|
{ debounce: 200 }
|
|
939
940
|
), {
|
|
940
941
|
form: o,
|
|
941
|
-
validation:
|
|
942
|
-
getIsFieldRequired:
|
|
942
|
+
validation: m,
|
|
943
|
+
getIsFieldRequired: c,
|
|
943
944
|
updateInitialState: a,
|
|
944
945
|
initialState: n
|
|
945
946
|
};
|
|
@@ -963,26 +964,26 @@ const Be = (e = {}) => ({
|
|
|
963
964
|
enabledPricingIds: void 0,
|
|
964
965
|
...e
|
|
965
966
|
});
|
|
966
|
-
function
|
|
967
|
+
function Mo(e) {
|
|
967
968
|
return e in Be();
|
|
968
969
|
}
|
|
969
|
-
function
|
|
970
|
+
function ho(e, i = void 0) {
|
|
970
971
|
const o = i ?? [], n = et(e);
|
|
971
972
|
for (const a of n)
|
|
972
973
|
if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(a.selection_constraint)) {
|
|
973
|
-
const
|
|
974
|
-
if (i != null && i.some((
|
|
974
|
+
const l = a.pricings.map((c) => c.id);
|
|
975
|
+
if (i != null && i.some((c) => l.includes(c)))
|
|
975
976
|
continue;
|
|
976
977
|
o.push(a.pricings[0].id);
|
|
977
978
|
}
|
|
978
979
|
return o;
|
|
979
980
|
}
|
|
980
|
-
function
|
|
981
|
+
function bo(e) {
|
|
981
982
|
return et(e).some(
|
|
982
983
|
(o) => o.selection_constraint === "EXACTLY_ONE" || o.selection_constraint === "AT_LEAST_ONE"
|
|
983
984
|
);
|
|
984
985
|
}
|
|
985
|
-
function
|
|
986
|
+
function Io(e) {
|
|
986
987
|
const i = Di(e.pricing_plan_schedule_infos), o = et(e);
|
|
987
988
|
return i.some((n) => n.product_type === "ADDON") || o.some((n) => n.object_type === "ADDON");
|
|
988
989
|
}
|
|
@@ -996,23 +997,23 @@ const Ct = (e) => (e ?? []).flatMap(
|
|
|
996
997
|
...Ct(i.billing_period_configs)
|
|
997
998
|
])
|
|
998
999
|
];
|
|
999
|
-
function
|
|
1000
|
+
function wa({
|
|
1000
1001
|
pricings: e,
|
|
1001
1002
|
pricingItemConfigId: i
|
|
1002
1003
|
}) {
|
|
1003
|
-
var
|
|
1004
|
-
const o = e.flatMap((
|
|
1005
|
-
var
|
|
1006
|
-
return (
|
|
1007
|
-
}), n = (
|
|
1004
|
+
var l, c;
|
|
1005
|
+
const o = e.flatMap((m) => m.items ?? []).find((m) => {
|
|
1006
|
+
var u;
|
|
1007
|
+
return (u = m.configs) == null ? void 0 : u.some((N) => N.id === i);
|
|
1008
|
+
}), n = (l = o == null ? void 0 : o.configs) == null ? void 0 : l.find((m) => m.id === i), a = (c = o == null ? void 0 : o.product_items) == null ? void 0 : c[0];
|
|
1008
1009
|
return {
|
|
1009
1010
|
config: n,
|
|
1010
1011
|
productItem: a
|
|
1011
1012
|
};
|
|
1012
1013
|
}
|
|
1013
|
-
const
|
|
1014
|
-
function
|
|
1015
|
-
const i =
|
|
1014
|
+
const Ao = "1";
|
|
1015
|
+
function Po(e) {
|
|
1016
|
+
const i = wt(e).flatMap((o) => o.items ?? []).flatMap(Vt);
|
|
1016
1017
|
return new Map(
|
|
1017
1018
|
i.flatMap(
|
|
1018
1019
|
(o) => {
|
|
@@ -1022,20 +1023,20 @@ function Ao(e) {
|
|
|
1022
1023
|
)
|
|
1023
1024
|
);
|
|
1024
1025
|
}
|
|
1025
|
-
function
|
|
1026
|
+
function Do(e) {
|
|
1026
1027
|
var n;
|
|
1027
1028
|
const i = (n = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.seats_values;
|
|
1028
1029
|
if (!e || !(i != null && i.length))
|
|
1029
1030
|
return;
|
|
1030
|
-
const o = e.pricing_plan_version ?
|
|
1031
|
-
return i.map(({ pricing_item_config_id: a, number:
|
|
1031
|
+
const o = e.pricing_plan_version ? Po(e) : /* @__PURE__ */ new Map();
|
|
1032
|
+
return i.map(({ pricing_item_config_id: a, number: l }) => ({
|
|
1032
1033
|
pricing_item_config_id: a,
|
|
1033
|
-
number:
|
|
1034
|
+
number: l || o.get(a) || Ao
|
|
1034
1035
|
}));
|
|
1035
1036
|
}
|
|
1036
|
-
const
|
|
1037
|
-
function
|
|
1038
|
-
const i =
|
|
1037
|
+
const No = "1";
|
|
1038
|
+
function Eo(e) {
|
|
1039
|
+
const i = wt(e).flatMap((o) => o.items ?? []).flatMap(Vt);
|
|
1039
1040
|
return new Map(
|
|
1040
1041
|
i.flatMap(
|
|
1041
1042
|
(o) => {
|
|
@@ -1045,155 +1046,155 @@ function No(e) {
|
|
|
1045
1046
|
)
|
|
1046
1047
|
);
|
|
1047
1048
|
}
|
|
1048
|
-
function
|
|
1049
|
+
function Co(e) {
|
|
1049
1050
|
var n;
|
|
1050
1051
|
const i = (n = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.units;
|
|
1051
1052
|
if (!e || !(i != null && i.length))
|
|
1052
1053
|
return;
|
|
1053
|
-
const o = e.pricing_plan_version ?
|
|
1054
|
-
return i.map(({ pricing_item_config_id: a, number:
|
|
1054
|
+
const o = e.pricing_plan_version ? Eo(e) : /* @__PURE__ */ new Map();
|
|
1055
|
+
return i.map(({ pricing_item_config_id: a, number: l }) => ({
|
|
1055
1056
|
pricing_item_config_id: a,
|
|
1056
|
-
number:
|
|
1057
|
+
number: l || o.get(a) || No
|
|
1057
1058
|
}));
|
|
1058
1059
|
}
|
|
1059
1060
|
const Xe = "solvimon_checkout_redirect_state";
|
|
1060
|
-
function
|
|
1061
|
+
function xo({
|
|
1061
1062
|
initialCountry: e,
|
|
1062
1063
|
initialEmail: i,
|
|
1063
1064
|
subscriptionId: o,
|
|
1064
1065
|
enabledPricingIds: n
|
|
1065
1066
|
}) {
|
|
1066
|
-
const a = Me(),
|
|
1067
|
+
const a = Me(), l = (() => {
|
|
1067
1068
|
if (e) {
|
|
1068
1069
|
if (Ge(e)) return e;
|
|
1069
1070
|
a.error("INVALID_COUNTRY_CODE", `invalid country code provided: "${e}"`);
|
|
1070
1071
|
}
|
|
1071
|
-
})(),
|
|
1072
|
+
})(), c = (() => {
|
|
1072
1073
|
if (i) {
|
|
1073
1074
|
if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)) return i;
|
|
1074
1075
|
a.error("INVALID_EMAIL", `invalid email provided: "${i}"`);
|
|
1075
1076
|
}
|
|
1076
|
-
})(),
|
|
1077
|
+
})(), m = V(!1), u = V(), { getSubscription: N } = si(), v = yo(), M = b(() => u.value && s.form.value.country && te.value), {
|
|
1077
1078
|
paymentMethodOptions: A,
|
|
1078
|
-
get:
|
|
1079
|
-
isPending:
|
|
1080
|
-
error:
|
|
1081
|
-
} = Ii(),
|
|
1079
|
+
get: d,
|
|
1080
|
+
isPending: L,
|
|
1081
|
+
error: k
|
|
1082
|
+
} = Ii(), p = async (y, r) => {
|
|
1082
1083
|
try {
|
|
1083
|
-
await
|
|
1084
|
-
subscriptionId:
|
|
1085
|
-
country:
|
|
1086
|
-
amount:
|
|
1084
|
+
await d({
|
|
1085
|
+
subscriptionId: u.value.id,
|
|
1086
|
+
country: y,
|
|
1087
|
+
amount: r
|
|
1087
1088
|
});
|
|
1088
1089
|
} catch {
|
|
1089
1090
|
a.error(
|
|
1090
1091
|
"PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
|
|
1091
1092
|
"Failed to load the payment methods the checkout can offer",
|
|
1092
1093
|
{},
|
|
1093
|
-
|
|
1094
|
+
k.value
|
|
1094
1095
|
);
|
|
1095
1096
|
}
|
|
1096
|
-
},
|
|
1097
|
-
const { country:
|
|
1098
|
-
!
|
|
1099
|
-
},
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1102
|
-
subscription:
|
|
1103
|
-
customer: Et(
|
|
1104
|
-
seatsValues:
|
|
1105
|
-
unitsValues:
|
|
1106
|
-
enabledPricingIds:
|
|
1107
|
-
promotionCode:
|
|
1097
|
+
}, C = b(() => k.value !== null), x = () => {
|
|
1098
|
+
const { country: y } = s.form.value;
|
|
1099
|
+
!u.value || !y || !te.value || p(y, te.value);
|
|
1100
|
+
}, R = () => {
|
|
1101
|
+
const y = s.form.value;
|
|
1102
|
+
return v.loadInvoicePreview({
|
|
1103
|
+
subscription: u.value,
|
|
1104
|
+
customer: Et(y),
|
|
1105
|
+
seatsValues: y.seatsValues,
|
|
1106
|
+
unitsValues: y.unitsValues,
|
|
1107
|
+
enabledPricingIds: y.enabledPricingIds ?? n,
|
|
1108
|
+
promotionCode: y.promotionCode
|
|
1108
1109
|
});
|
|
1109
|
-
},
|
|
1110
|
-
const
|
|
1111
|
-
return await
|
|
1112
|
-
subscription:
|
|
1110
|
+
}, Q = async (y) => {
|
|
1111
|
+
const r = y.promotionCode ?? s.form.value.promotionCode, g = y.enabledPricingIds ?? s.form.value.enabledPricingIds, h = { ...s.form.value, ...y };
|
|
1112
|
+
return await v.loadInvoicePreview({
|
|
1113
|
+
subscription: u.value,
|
|
1113
1114
|
customer: Et(h),
|
|
1114
1115
|
seatsValues: h.seatsValues,
|
|
1115
1116
|
unitsValues: h.unitsValues,
|
|
1116
|
-
enabledPricingIds:
|
|
1117
|
-
promotionCode:
|
|
1117
|
+
enabledPricingIds: g,
|
|
1118
|
+
promotionCode: r
|
|
1118
1119
|
}), {
|
|
1119
|
-
trialInvoicePreview:
|
|
1120
|
-
invoicePreview:
|
|
1120
|
+
trialInvoicePreview: v.trialInvoicePreview.value,
|
|
1121
|
+
invoicePreview: v.invoicePreview.value
|
|
1121
1122
|
};
|
|
1122
|
-
},
|
|
1123
|
+
}, s = _o({
|
|
1123
1124
|
initialState: {
|
|
1124
|
-
country:
|
|
1125
|
-
email:
|
|
1125
|
+
country: l,
|
|
1126
|
+
email: c
|
|
1126
1127
|
},
|
|
1127
1128
|
onRequiredFieldChange: () => {
|
|
1128
|
-
|
|
1129
|
+
u.value && R().catch(() => {
|
|
1129
1130
|
});
|
|
1130
1131
|
}
|
|
1131
|
-
}),
|
|
1132
|
-
var
|
|
1133
|
-
const
|
|
1132
|
+
}), P = async () => {
|
|
1133
|
+
var j, H, Y, G;
|
|
1134
|
+
const y = await N({
|
|
1134
1135
|
id: o,
|
|
1135
1136
|
expanded: !0
|
|
1136
|
-
}),
|
|
1137
|
-
pricingPlanScheduleInfos:
|
|
1137
|
+
}), r = Ne({
|
|
1138
|
+
pricingPlanScheduleInfos: y.pricing_plan_schedule_infos,
|
|
1138
1139
|
type: "DEFAULT"
|
|
1139
|
-
}),
|
|
1140
|
-
|
|
1141
|
-
...
|
|
1142
|
-
billing_period:
|
|
1140
|
+
}), g = (G = (Y = (H = (j = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : j.billing_period_settings) == null ? void 0 : H.billing_periods) == null ? void 0 : Y[0]) == null ? void 0 : G.period;
|
|
1141
|
+
u.value = {
|
|
1142
|
+
...y,
|
|
1143
|
+
billing_period: g ?? y.billing_period
|
|
1143
1144
|
};
|
|
1144
|
-
const h =
|
|
1145
|
-
|
|
1146
|
-
...
|
|
1147
|
-
enabledPricingIds:
|
|
1145
|
+
const h = Do(r), w = Co(r);
|
|
1146
|
+
s.updateInitialState({
|
|
1147
|
+
...s.form.value,
|
|
1148
|
+
enabledPricingIds: ho(y, n),
|
|
1148
1149
|
...h ? { seatsValues: h } : {},
|
|
1149
|
-
...
|
|
1150
|
+
...w ? { unitsValues: w } : {}
|
|
1150
1151
|
});
|
|
1151
|
-
},
|
|
1152
|
-
var Z, re, ne,
|
|
1153
|
-
const
|
|
1154
|
-
...
|
|
1155
|
-
...
|
|
1156
|
-
...
|
|
1157
|
-
} : {},
|
|
1158
|
-
...
|
|
1159
|
-
line1:
|
|
1152
|
+
}, q = b(() => {
|
|
1153
|
+
var Z, re, ne, $, ie, J, ee, oe, ue;
|
|
1154
|
+
const y = s.form.value.firstName || s.form.value.infix || s.form.value.lastName ? {
|
|
1155
|
+
...s.form.value.firstName ? { first_name: s.form.value.firstName } : {},
|
|
1156
|
+
...s.form.value.infix ? { infix: s.form.value.infix } : {},
|
|
1157
|
+
...s.form.value.lastName ? { last_name: s.form.value.lastName } : {}
|
|
1158
|
+
} : {}, r = {
|
|
1159
|
+
...s.form.value.addressLine1 && {
|
|
1160
|
+
line1: s.form.value.addressLine1
|
|
1160
1161
|
},
|
|
1161
|
-
...
|
|
1162
|
-
line2:
|
|
1162
|
+
...s.form.value.addressLine2 && {
|
|
1163
|
+
line2: s.form.value.addressLine2
|
|
1163
1164
|
},
|
|
1164
|
-
...
|
|
1165
|
-
...
|
|
1166
|
-
postal_code:
|
|
1165
|
+
...s.form.value.city && { city: s.form.value.city },
|
|
1166
|
+
...s.form.value.postalCode && {
|
|
1167
|
+
postal_code: s.form.value.postalCode
|
|
1167
1168
|
},
|
|
1168
|
-
...
|
|
1169
|
-
country:
|
|
1170
|
-
},
|
|
1171
|
-
pricingPlanScheduleInfos: ((Z =
|
|
1169
|
+
...s.form.value.state && { state: s.form.value.state },
|
|
1170
|
+
country: s.form.value.country ?? ""
|
|
1171
|
+
}, g = Ne({
|
|
1172
|
+
pricingPlanScheduleInfos: ((Z = u.value) == null ? void 0 : Z.pricing_plan_schedule_infos) ?? [],
|
|
1172
1173
|
type: "DEFAULT"
|
|
1173
|
-
}), h = (re =
|
|
1174
|
-
enabledPricings: (
|
|
1174
|
+
}), h = (re = g == null ? void 0 : g.pricing_plan_version) == null ? void 0 : re.pricing_currency_settings, w = (((ne = h == null ? void 0 : h.pricing_currencies) == null ? void 0 : ne.length) ?? 0) > 1, H = (((ie = ($ = g == null ? void 0 : g.pricing_plan_version) == null ? void 0 : $.billing_period_settings) == null ? void 0 : ie.billing_periods) ?? []).length > 1, Y = Tt({
|
|
1175
|
+
enabledPricings: (J = s.form.value.enabledPricingIds) == null ? void 0 : J.map((de) => ({
|
|
1175
1176
|
pricing_id: de
|
|
1176
1177
|
})),
|
|
1177
|
-
seatsValues:
|
|
1178
|
-
unitsValues:
|
|
1179
|
-
pricingPlanScheduleInfos: ((ee =
|
|
1180
|
-
pricingCurrency:
|
|
1181
|
-
billingPeriod: H ? (ue =
|
|
1182
|
-
}),
|
|
1183
|
-
var Ce,
|
|
1184
|
-
const de =
|
|
1185
|
-
pricingPlanScheduleInfos: ((
|
|
1178
|
+
seatsValues: s.form.value.seatsValues,
|
|
1179
|
+
unitsValues: s.form.value.unitsValues,
|
|
1180
|
+
pricingPlanScheduleInfos: ((ee = u.value) == null ? void 0 : ee.pricing_plan_schedule_infos) ?? [],
|
|
1181
|
+
pricingCurrency: w ? (oe = u.value) == null ? void 0 : oe.billing_currency : void 0,
|
|
1182
|
+
billingPeriod: H ? (ue = u.value) == null ? void 0 : ue.billing_period : void 0
|
|
1183
|
+
}), G = s.form.value.promotionCode, ae = G && u.value ? (() => {
|
|
1184
|
+
var Ce, ke, xe;
|
|
1185
|
+
const de = Y ? [...Y] : [], pe = ((Ce = de[0]) == null ? void 0 : Ce.pricing_plan_schedule_id) ?? ((xe = Ne({
|
|
1186
|
+
pricingPlanScheduleInfos: ((ke = u.value) == null ? void 0 : ke.pricing_plan_schedule_infos) ?? [],
|
|
1186
1187
|
type: "DEFAULT"
|
|
1187
1188
|
})) == null ? void 0 : xe.id);
|
|
1188
1189
|
if (!pe)
|
|
1189
|
-
return
|
|
1190
|
+
return Y;
|
|
1190
1191
|
const Ee = de.find(
|
|
1191
1192
|
({ pricing_plan_schedule_id: le }) => le === pe
|
|
1192
1193
|
);
|
|
1193
1194
|
if (Ee)
|
|
1194
|
-
Ee.promotion_codes = [
|
|
1195
|
+
Ee.promotion_codes = [G];
|
|
1195
1196
|
else {
|
|
1196
|
-
const le =
|
|
1197
|
+
const le = Y == null ? void 0 : Y[0];
|
|
1197
1198
|
de.push({
|
|
1198
1199
|
pricing_plan_schedule_id: pe,
|
|
1199
1200
|
...(le == null ? void 0 : le.enabled_pricings) && {
|
|
@@ -1205,11 +1206,11 @@ function Co({
|
|
|
1205
1206
|
...(le == null ? void 0 : le.units) && {
|
|
1206
1207
|
units: le.units
|
|
1207
1208
|
},
|
|
1208
|
-
promotion_codes: [
|
|
1209
|
+
promotion_codes: [G]
|
|
1209
1210
|
});
|
|
1210
1211
|
}
|
|
1211
1212
|
return de;
|
|
1212
|
-
})() :
|
|
1213
|
+
})() : Y;
|
|
1213
1214
|
return {
|
|
1214
1215
|
type: "INIT_PRICING_PLAN_SUBSCRIPTION",
|
|
1215
1216
|
init_pricing_plan_subscription: {
|
|
@@ -1218,21 +1219,21 @@ function Co({
|
|
|
1218
1219
|
pricing_plan_schedule_customizations: ae
|
|
1219
1220
|
},
|
|
1220
1221
|
customer_details: {
|
|
1221
|
-
email:
|
|
1222
|
-
type:
|
|
1223
|
-
...
|
|
1222
|
+
email: s.form.value.email ?? "",
|
|
1223
|
+
type: s.form.value.type,
|
|
1224
|
+
...s.form.value.type === "INDIVIDUAL" ? {
|
|
1224
1225
|
individual: {
|
|
1225
|
-
residential_address:
|
|
1226
|
-
...
|
|
1226
|
+
residential_address: r,
|
|
1227
|
+
...y ? { name: y } : {}
|
|
1227
1228
|
}
|
|
1228
1229
|
} : {
|
|
1229
1230
|
organization: {
|
|
1230
|
-
registered_address:
|
|
1231
|
-
legal_name:
|
|
1232
|
-
...
|
|
1231
|
+
registered_address: r,
|
|
1232
|
+
legal_name: s.form.value.companyLegalName ?? "",
|
|
1233
|
+
...s.form.value.companyVatNumber && tt.$validator(s.form.value.companyVatNumber, {}, {}) ? {
|
|
1233
1234
|
tax_ids: [
|
|
1234
1235
|
{
|
|
1235
|
-
id:
|
|
1236
|
+
id: s.form.value.companyVatNumber,
|
|
1236
1237
|
type: Ut
|
|
1237
1238
|
}
|
|
1238
1239
|
]
|
|
@@ -1243,31 +1244,31 @@ function Co({
|
|
|
1243
1244
|
}
|
|
1244
1245
|
};
|
|
1245
1246
|
}), te = b(() => {
|
|
1246
|
-
var
|
|
1247
|
-
return ((
|
|
1247
|
+
var y, r;
|
|
1248
|
+
return ((y = v.trialInvoicePreview.value) == null ? void 0 : y.invoice_amount_including_tax) ?? ((r = v.invoicePreview.value) == null ? void 0 : r.invoice_amount_including_tax);
|
|
1248
1249
|
});
|
|
1249
|
-
|
|
1250
|
-
[() =>
|
|
1251
|
-
([
|
|
1252
|
-
!
|
|
1250
|
+
we(
|
|
1251
|
+
[() => s.form.value.country, te],
|
|
1252
|
+
([y, r]) => {
|
|
1253
|
+
!u.value || !y || !r || p(y, r);
|
|
1253
1254
|
}
|
|
1254
1255
|
);
|
|
1255
|
-
function
|
|
1256
|
-
sessionStorage.setItem(Xe, JSON.stringify(
|
|
1256
|
+
function f() {
|
|
1257
|
+
sessionStorage.setItem(Xe, JSON.stringify(s.form.value));
|
|
1257
1258
|
}
|
|
1258
|
-
return
|
|
1259
|
-
const
|
|
1260
|
-
|
|
1261
|
-
const
|
|
1262
|
-
let
|
|
1263
|
-
if (
|
|
1259
|
+
return Oe(async () => {
|
|
1260
|
+
const y = Te("redirect_status"), r = !!Te(Ei), g = !!Te("payment_intent_client_secret") || !!Te("setup_intent_client_secret");
|
|
1261
|
+
y === "succeeded" && r && g && (m.value = !0);
|
|
1262
|
+
const w = sessionStorage.getItem(Xe);
|
|
1263
|
+
let j = null;
|
|
1264
|
+
if (w)
|
|
1264
1265
|
try {
|
|
1265
|
-
|
|
1266
|
+
j = JSON.parse(w);
|
|
1266
1267
|
} catch {
|
|
1267
1268
|
}
|
|
1268
|
-
|
|
1269
|
+
j && s.updateInitialState(j);
|
|
1269
1270
|
try {
|
|
1270
|
-
await
|
|
1271
|
+
await P();
|
|
1271
1272
|
} catch (H) {
|
|
1272
1273
|
throw a.error(
|
|
1273
1274
|
"SUBSCRIPTION_LOAD_FAILED",
|
|
@@ -1277,90 +1278,90 @@ function Co({
|
|
|
1277
1278
|
), H;
|
|
1278
1279
|
}
|
|
1279
1280
|
try {
|
|
1280
|
-
await
|
|
1281
|
+
await R();
|
|
1281
1282
|
} catch {
|
|
1282
1283
|
}
|
|
1283
|
-
|
|
1284
|
-
}),
|
|
1284
|
+
j && (s.updateInitialState(j), sessionStorage.removeItem(Xe));
|
|
1285
|
+
}), we(
|
|
1285
1286
|
M,
|
|
1286
|
-
(
|
|
1287
|
-
|
|
1287
|
+
(y) => {
|
|
1288
|
+
y && x();
|
|
1288
1289
|
},
|
|
1289
1290
|
{ once: !0 }
|
|
1290
1291
|
), {
|
|
1291
1292
|
/** What the host configured, once anything unusable has been dropped and reported. */
|
|
1292
|
-
validatedEmail:
|
|
1293
|
-
validatedCountry:
|
|
1294
|
-
invoicePreview:
|
|
1295
|
-
invoicePreviewByBillingPeriod:
|
|
1296
|
-
trialInvoicePreview:
|
|
1297
|
-
trialPeriod:
|
|
1298
|
-
loadInvoicePreview:
|
|
1299
|
-
updateInvoicePreviewOnBillingInformationChange:
|
|
1300
|
-
lastPreviewScheduleId:
|
|
1293
|
+
validatedEmail: c,
|
|
1294
|
+
validatedCountry: l,
|
|
1295
|
+
invoicePreview: v.invoicePreview,
|
|
1296
|
+
invoicePreviewByBillingPeriod: v.invoicePreviewByBillingPeriod,
|
|
1297
|
+
trialInvoicePreview: v.trialInvoicePreview,
|
|
1298
|
+
trialPeriod: v.trialPeriod,
|
|
1299
|
+
loadInvoicePreview: R,
|
|
1300
|
+
updateInvoicePreviewOnBillingInformationChange: Q,
|
|
1301
|
+
lastPreviewScheduleId: v.lastPreviewScheduleId,
|
|
1301
1302
|
paymentMethodOptions: A,
|
|
1302
|
-
hasPaymentMethodOptionsError:
|
|
1303
|
-
retryPaymentMethodOptions:
|
|
1304
|
-
isPaymentMethodsPending:
|
|
1305
|
-
isInvoicePreviewPending:
|
|
1306
|
-
subscription:
|
|
1307
|
-
checkoutForm:
|
|
1308
|
-
authorizationContext:
|
|
1309
|
-
isPaid:
|
|
1303
|
+
hasPaymentMethodOptionsError: C,
|
|
1304
|
+
retryPaymentMethodOptions: x,
|
|
1305
|
+
isPaymentMethodsPending: L,
|
|
1306
|
+
isInvoicePreviewPending: v.isPending,
|
|
1307
|
+
subscription: u,
|
|
1308
|
+
checkoutForm: s,
|
|
1309
|
+
authorizationContext: q,
|
|
1310
|
+
isPaid: m,
|
|
1310
1311
|
amount: te,
|
|
1311
|
-
saveFormStateForRedirect:
|
|
1312
|
+
saveFormStateForRedirect: f
|
|
1312
1313
|
};
|
|
1313
1314
|
}
|
|
1314
|
-
function
|
|
1315
|
+
function Lo({
|
|
1315
1316
|
checkoutForm: e,
|
|
1316
1317
|
updateInvoicePreviewOnBillingInformationChange: i,
|
|
1317
1318
|
formatErrorMessage: o,
|
|
1318
1319
|
onInvalidPromotionCode: n,
|
|
1319
1320
|
onApplyError: a
|
|
1320
1321
|
}) {
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
}, N = (A) =>
|
|
1324
|
-
const
|
|
1325
|
-
if (
|
|
1326
|
-
|
|
1322
|
+
const l = Me(), c = V(!1), m = V(null), u = (A, d) => {
|
|
1323
|
+
m.value = o ? o({ action: A, error: d }) : A === "apply" ? "Promotion code could not be applied. Please try again." : "Promotion code could not be removed. Please try again.";
|
|
1324
|
+
}, N = (A) => To(A) && A.field === "promotion_codes", v = async (A) => {
|
|
1325
|
+
const d = A == null ? void 0 : A.trim();
|
|
1326
|
+
if (d) {
|
|
1327
|
+
m.value = null, e.form.value.promotionCode = d, c.value = !0;
|
|
1327
1328
|
try {
|
|
1328
1329
|
await i({
|
|
1329
|
-
promotionCode:
|
|
1330
|
+
promotionCode: d
|
|
1330
1331
|
});
|
|
1331
|
-
} catch (
|
|
1332
|
-
|
|
1332
|
+
} catch (L) {
|
|
1333
|
+
l.capture(L, {
|
|
1333
1334
|
code: "PROMOTION_CODE_APPLY_FAILED",
|
|
1334
1335
|
message: "Failed to apply promotion code"
|
|
1335
|
-
}),
|
|
1336
|
+
}), u("apply", L), a == null || a(), N(L) && (n == null || n()), await M({ suppressError: !0, preserveErrorMessage: !0 });
|
|
1336
1337
|
} finally {
|
|
1337
|
-
|
|
1338
|
+
c.value = !1;
|
|
1338
1339
|
}
|
|
1339
1340
|
}
|
|
1340
1341
|
}, M = async ({
|
|
1341
1342
|
suppressError: A = !1,
|
|
1342
|
-
preserveErrorMessage:
|
|
1343
|
+
preserveErrorMessage: d = !1
|
|
1343
1344
|
} = {}) => {
|
|
1344
|
-
|
|
1345
|
+
d || (m.value = null), delete e.form.value.promotionCode, c.value = !0;
|
|
1345
1346
|
try {
|
|
1346
1347
|
await i({});
|
|
1347
|
-
} catch (
|
|
1348
|
-
|
|
1348
|
+
} catch (L) {
|
|
1349
|
+
l.capture(L, {
|
|
1349
1350
|
code: "PROMOTION_CODE_REMOVE_FAILED",
|
|
1350
1351
|
message: "Failed to remove promotion code"
|
|
1351
|
-
}), A ||
|
|
1352
|
+
}), A || u("remove", L);
|
|
1352
1353
|
} finally {
|
|
1353
|
-
|
|
1354
|
+
c.value = !1;
|
|
1354
1355
|
}
|
|
1355
1356
|
};
|
|
1356
1357
|
return {
|
|
1357
|
-
applyPromotionCode:
|
|
1358
|
+
applyPromotionCode: v,
|
|
1358
1359
|
removePromotionCode: M,
|
|
1359
|
-
isPromotionCodePending:
|
|
1360
|
-
promotionCodeErrorMessage:
|
|
1360
|
+
isPromotionCodePending: c,
|
|
1361
|
+
promotionCodeErrorMessage: m
|
|
1361
1362
|
};
|
|
1362
1363
|
}
|
|
1363
|
-
function
|
|
1364
|
+
function To(e) {
|
|
1364
1365
|
return typeof e == "object" && e !== null && "field" in e;
|
|
1365
1366
|
}
|
|
1366
1367
|
function wo({
|
|
@@ -1369,7 +1370,7 @@ function wo({
|
|
|
1369
1370
|
appliedPromotionCode: o,
|
|
1370
1371
|
applyPromotionCode: n
|
|
1371
1372
|
}) {
|
|
1372
|
-
|
|
1373
|
+
we(
|
|
1373
1374
|
e,
|
|
1374
1375
|
(a) => {
|
|
1375
1376
|
a && i && (o.value = i, n(i));
|
|
@@ -1377,7 +1378,7 @@ function wo({
|
|
|
1377
1378
|
{ once: !0 }
|
|
1378
1379
|
);
|
|
1379
1380
|
}
|
|
1380
|
-
const
|
|
1381
|
+
const So = { class: "flex items-center gap-2" }, Oo = /* @__PURE__ */ ce({
|
|
1381
1382
|
__name: "TaxIDCheckNotice",
|
|
1382
1383
|
props: {
|
|
1383
1384
|
taxIdValidationResult: { type: Object }
|
|
@@ -1392,15 +1393,15 @@ const To = { class: "flex items-center gap-2" }, So = /* @__PURE__ */ ce({
|
|
|
1392
1393
|
id: "tax_check.invalid_vat_number",
|
|
1393
1394
|
description: "The message shown when the VAT number is invalid"
|
|
1394
1395
|
}));
|
|
1395
|
-
return (
|
|
1396
|
+
return (l, c) => (_(), O(t(wi), {
|
|
1396
1397
|
type: n.value ? "success" : "danger",
|
|
1397
1398
|
icon: !1
|
|
1398
1399
|
}, {
|
|
1399
1400
|
default: I(() => [
|
|
1400
|
-
|
|
1401
|
+
T("div", So, [
|
|
1401
1402
|
E(t(se), { variant: "body-xs" }, {
|
|
1402
1403
|
default: I(() => [
|
|
1403
|
-
|
|
1404
|
+
F(U(a.value), 1)
|
|
1404
1405
|
]),
|
|
1405
1406
|
_: 1
|
|
1406
1407
|
})
|
|
@@ -1411,16 +1412,16 @@ const To = { class: "flex items-center gap-2" }, So = /* @__PURE__ */ ce({
|
|
|
1411
1412
|
}
|
|
1412
1413
|
});
|
|
1413
1414
|
function ko(e) {
|
|
1414
|
-
const { checkTaxID: i } = Si(), o =
|
|
1415
|
+
const { checkTaxID: i } = Si(), o = V(void 0), n = b(() => {
|
|
1415
1416
|
var M;
|
|
1416
1417
|
return ((M = e.value.companyVatNumber) == null ? void 0 : M.trim()) ?? "";
|
|
1417
|
-
}), a = b(() => e.value.companyLegalName ?? ""),
|
|
1418
|
-
() => !!(n.value && a.value &&
|
|
1419
|
-
), N = b(() =>
|
|
1420
|
-
async function
|
|
1418
|
+
}), a = b(() => e.value.companyLegalName ?? ""), l = b(() => e.value.country), c = V(!1), m = b(() => Ot(l.value ?? "")), u = b(
|
|
1419
|
+
() => !!(n.value && a.value && l.value)
|
|
1420
|
+
), N = b(() => m.value && n.value);
|
|
1421
|
+
async function v() {
|
|
1421
1422
|
var M;
|
|
1422
|
-
if (!(!
|
|
1423
|
-
|
|
1423
|
+
if (!(!u.value || !m.value || !l.value)) {
|
|
1424
|
+
c.value = !0;
|
|
1424
1425
|
try {
|
|
1425
1426
|
const A = await i({
|
|
1426
1427
|
type: "ORGANIZATION",
|
|
@@ -1428,26 +1429,26 @@ function ko(e) {
|
|
|
1428
1429
|
legal_name: a.value,
|
|
1429
1430
|
tax_ids: [{ id: n.value, type: "GENERIC_TAX_ID" }],
|
|
1430
1431
|
registered_address: {
|
|
1431
|
-
country:
|
|
1432
|
+
country: l.value
|
|
1432
1433
|
}
|
|
1433
1434
|
}
|
|
1434
1435
|
});
|
|
1435
1436
|
(M = A == null ? void 0 : A.data) != null && M.length ? o.value = A.data[0] : o.value = void 0;
|
|
1436
1437
|
} finally {
|
|
1437
|
-
|
|
1438
|
+
c.value = !1;
|
|
1438
1439
|
}
|
|
1439
1440
|
}
|
|
1440
1441
|
}
|
|
1441
1442
|
return {
|
|
1442
|
-
runTaxIDCheck:
|
|
1443
|
+
runTaxIDCheck: v,
|
|
1443
1444
|
taxIdValidationData: o,
|
|
1444
|
-
isTaxIDCheckPending:
|
|
1445
|
-
isTaxIDCheckEnabled:
|
|
1445
|
+
isTaxIDCheckPending: c,
|
|
1446
|
+
isTaxIDCheckEnabled: u,
|
|
1446
1447
|
showViesCheckNotice: N,
|
|
1447
|
-
isSelectedCountryEU:
|
|
1448
|
+
isSelectedCountryEU: m
|
|
1448
1449
|
};
|
|
1449
1450
|
}
|
|
1450
|
-
const
|
|
1451
|
+
const zo = { class: "grid grid-cols-1 gap-1" }, jo = { class: "grid grid-cols-1 gap-2" }, Ro = { key: 0 }, Bo = { class: "mt-2 flex flex-col gap-3" }, $o = { class: "grid grid-cols-3 gap-2" }, Uo = { key: 0 }, Vo = { class: "mt-4 grid grid-cols-1 gap-3" }, Fo = "checkout-form", Go = /* @__PURE__ */ ce({
|
|
1451
1452
|
__name: "CheckoutForm",
|
|
1452
1453
|
props: /* @__PURE__ */ vt({
|
|
1453
1454
|
validation: { type: null },
|
|
@@ -1463,34 +1464,34 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1463
1464
|
}),
|
|
1464
1465
|
emits: /* @__PURE__ */ vt(["submit"], ["update:modelValue"]),
|
|
1465
1466
|
setup(e) {
|
|
1466
|
-
const i = e, o =
|
|
1467
|
+
const i = e, o = V(!1), n = ei(e, "modelValue"), a = b({
|
|
1467
1468
|
get: () => n.value.type === "ORGANIZATION",
|
|
1468
|
-
set: (
|
|
1469
|
-
n.value.type =
|
|
1469
|
+
set: (p) => {
|
|
1470
|
+
n.value.type = p ? "ORGANIZATION" : "INDIVIDUAL";
|
|
1470
1471
|
}
|
|
1471
|
-
}),
|
|
1472
|
+
}), l = b(() => n.value.type === "ORGANIZATION"), c = b({
|
|
1472
1473
|
get: () => n.value.country,
|
|
1473
|
-
set: (
|
|
1474
|
-
n.value.country =
|
|
1474
|
+
set: (p) => {
|
|
1475
|
+
n.value.country = p && Ge(p) ? p : void 0;
|
|
1475
1476
|
}
|
|
1476
|
-
}),
|
|
1477
|
+
}), m = b(() => n.value.country !== "US"), { isTaxIDCheckEnabled: u, isTaxIDCheckPending: N, taxIdValidationData: v, runTaxIDCheck: M } = ko(n), { $t: A } = ve(), d = _i(), L = (p) => i.getIsFieldRequired(p) ? "" : " " + A({
|
|
1477
1478
|
defaultMessage: "(optional)",
|
|
1478
1479
|
id: "checkout.optional_suffix.label",
|
|
1479
1480
|
description: "The suffix for optional fields in the checkout form"
|
|
1480
|
-
}),
|
|
1481
|
-
() => n.value.country ?
|
|
1481
|
+
}), k = b(
|
|
1482
|
+
() => n.value.country ? Ti(n.value.country) : void 0
|
|
1482
1483
|
);
|
|
1483
|
-
return (
|
|
1484
|
-
id:
|
|
1485
|
-
onSubmit:
|
|
1484
|
+
return (p, C) => (_(), W("form", {
|
|
1485
|
+
id: Fo,
|
|
1486
|
+
onSubmit: C[12] || (C[12] = $e((x) => p.$emit("submit", n.value), ["prevent"]))
|
|
1486
1487
|
}, [
|
|
1487
|
-
|
|
1488
|
+
T("div", zo, [
|
|
1488
1489
|
E(t(ge), {
|
|
1489
|
-
title: t(
|
|
1490
|
+
title: t(d).contactInformationTitle
|
|
1490
1491
|
}, {
|
|
1491
1492
|
default: I(() => [
|
|
1492
|
-
|
|
1493
|
-
e.readOnly ? (
|
|
1493
|
+
T("div", jo, [
|
|
1494
|
+
e.readOnly ? (_(), W(_e, { key: 0 }, [
|
|
1494
1495
|
E(t(se), {
|
|
1495
1496
|
variant: "body",
|
|
1496
1497
|
tag: "span",
|
|
@@ -1498,7 +1499,7 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1498
1499
|
"no-spacing": ""
|
|
1499
1500
|
}, {
|
|
1500
1501
|
default: I(() => [
|
|
1501
|
-
|
|
1502
|
+
F(U(n.value.email), 1)
|
|
1502
1503
|
]),
|
|
1503
1504
|
_: 1
|
|
1504
1505
|
}),
|
|
@@ -1509,41 +1510,41 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1509
1510
|
"no-spacing": ""
|
|
1510
1511
|
}, {
|
|
1511
1512
|
default: I(() => [
|
|
1512
|
-
|
|
1513
|
+
F(U(k.value), 1)
|
|
1513
1514
|
]),
|
|
1514
1515
|
_: 1
|
|
1515
1516
|
})
|
|
1516
|
-
], 64)) : (
|
|
1517
|
+
], 64)) : (_(), W(_e, { key: 1 }, [
|
|
1517
1518
|
E(t(ye), {
|
|
1518
1519
|
modelValue: n.value.email,
|
|
1519
|
-
"onUpdate:modelValue":
|
|
1520
|
+
"onUpdate:modelValue": C[0] || (C[0] = (x) => n.value.email = x),
|
|
1520
1521
|
required: "",
|
|
1521
1522
|
type: "email",
|
|
1522
1523
|
name: "email",
|
|
1523
1524
|
disabled: !!e.readOnlyEmail,
|
|
1524
|
-
label: t(
|
|
1525
|
-
placeholder: t(
|
|
1525
|
+
label: t(d).emailLabel,
|
|
1526
|
+
placeholder: t(d).emailPlaceholder + L("email"),
|
|
1526
1527
|
error: e.validation.value.email.$errors
|
|
1527
1528
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
|
|
1528
1529
|
E(t(Mi), {
|
|
1529
|
-
"single-model-value":
|
|
1530
|
-
"onUpdate:singleModelValue":
|
|
1530
|
+
"single-model-value": c.value,
|
|
1531
|
+
"onUpdate:singleModelValue": C[3] || (C[3] = (x) => c.value = x),
|
|
1531
1532
|
required: "",
|
|
1532
1533
|
name: "country",
|
|
1533
|
-
label: t(
|
|
1534
|
+
label: t(d).countryLabel + L("country"),
|
|
1534
1535
|
error: e.validation.value.country.$errors
|
|
1535
1536
|
}, {
|
|
1536
1537
|
"label-suffix": I(() => [
|
|
1537
|
-
!o.value && !e.isBillingInformationMandatory ? (
|
|
1538
|
+
!o.value && !e.isBillingInformationMandatory ? (_(), O(t(Ae), {
|
|
1538
1539
|
key: 0,
|
|
1539
1540
|
size: "xs",
|
|
1540
1541
|
intent: "subtle",
|
|
1541
1542
|
"icon-prefix": "add",
|
|
1542
1543
|
class: "py-0.5",
|
|
1543
|
-
onClick:
|
|
1544
|
+
onClick: C[1] || (C[1] = (x) => o.value = !0)
|
|
1544
1545
|
}, {
|
|
1545
1546
|
default: I(() => [
|
|
1546
|
-
|
|
1547
|
+
F(U(t(A)({
|
|
1547
1548
|
defaultMessage: "More billing details",
|
|
1548
1549
|
description: "Label of the button in the checkout that lets you fill out all billing details",
|
|
1549
1550
|
id: "checkout.billing_details.add_billing_details_button.label"
|
|
@@ -1551,16 +1552,16 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1551
1552
|
]),
|
|
1552
1553
|
_: 1
|
|
1553
1554
|
})) : B("", !0),
|
|
1554
|
-
o.value && !e.isBillingInformationMandatory ? (
|
|
1555
|
+
o.value && !e.isBillingInformationMandatory ? (_(), O(t(Ae), {
|
|
1555
1556
|
key: 1,
|
|
1556
1557
|
size: "sm",
|
|
1557
1558
|
intent: "subtle",
|
|
1558
1559
|
"icon-prefix": "close",
|
|
1559
1560
|
class: "py-0.5",
|
|
1560
|
-
onClick:
|
|
1561
|
+
onClick: C[2] || (C[2] = (x) => o.value = !1)
|
|
1561
1562
|
}, {
|
|
1562
1563
|
default: I(() => [
|
|
1563
|
-
|
|
1564
|
+
F(U(t(A)({
|
|
1564
1565
|
defaultMessage: "Remove billing details",
|
|
1565
1566
|
id: "checkout.billing_details.remove_billing_details_button.label",
|
|
1566
1567
|
description: "Label of the button in the checkout that lets you remove the billing details"
|
|
@@ -1577,11 +1578,11 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1577
1578
|
"is-open": o.value || !!e.isBillingInformationMandatory
|
|
1578
1579
|
}, {
|
|
1579
1580
|
default: I(() => [
|
|
1580
|
-
o.value || e.isBillingInformationMandatory ? (
|
|
1581
|
-
|
|
1581
|
+
o.value || e.isBillingInformationMandatory ? (_(), W("div", Ro, [
|
|
1582
|
+
T("div", Bo, [
|
|
1582
1583
|
E(t(ye), {
|
|
1583
1584
|
modelValue: n.value.addressLine1,
|
|
1584
|
-
"onUpdate:modelValue":
|
|
1585
|
+
"onUpdate:modelValue": C[4] || (C[4] = (x) => n.value.addressLine1 = x),
|
|
1585
1586
|
name: "address_line_1",
|
|
1586
1587
|
label: t(A)({
|
|
1587
1588
|
defaultMessage: "Billing address",
|
|
@@ -1592,39 +1593,39 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1592
1593
|
defaultMessage: "Address line 1...",
|
|
1593
1594
|
id: "checkout.address.line1.placeholder",
|
|
1594
1595
|
description: "Address line 1 of the customer address in the checkout form"
|
|
1595
|
-
}) +
|
|
1596
|
+
}) + L("addressLine1"),
|
|
1596
1597
|
required: "",
|
|
1597
1598
|
error: e.validation.value.addressLine1.$errors
|
|
1598
1599
|
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
1599
1600
|
E(t(ye), {
|
|
1600
1601
|
modelValue: n.value.addressLine2,
|
|
1601
|
-
"onUpdate:modelValue":
|
|
1602
|
+
"onUpdate:modelValue": C[5] || (C[5] = (x) => n.value.addressLine2 = x),
|
|
1602
1603
|
name: "address_line_2",
|
|
1603
1604
|
placeholder: t(A)({
|
|
1604
1605
|
defaultMessage: "Address line 2...",
|
|
1605
1606
|
id: "checkout.address.line2.placeholder",
|
|
1606
1607
|
description: "Address line 2 of the customer address in the checkout form"
|
|
1607
|
-
}) +
|
|
1608
|
+
}) + L("addressLine2")
|
|
1608
1609
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1609
|
-
|
|
1610
|
+
T("div", $o, [
|
|
1610
1611
|
E(t(ye), {
|
|
1611
1612
|
modelValue: n.value.postalCode,
|
|
1612
|
-
"onUpdate:modelValue":
|
|
1613
|
+
"onUpdate:modelValue": C[6] || (C[6] = (x) => n.value.postalCode = x),
|
|
1613
1614
|
name: "postal_code",
|
|
1614
|
-
placeholder: t(
|
|
1615
|
+
placeholder: t(d).postalCodePlaceholder + L("postalCode"),
|
|
1615
1616
|
error: e.validation.value.addressLine1.$errors
|
|
1616
1617
|
}, null, 8, ["modelValue", "placeholder", "error"]),
|
|
1617
1618
|
E(t(ye), {
|
|
1618
1619
|
modelValue: n.value.city,
|
|
1619
|
-
"onUpdate:modelValue":
|
|
1620
|
+
"onUpdate:modelValue": C[7] || (C[7] = (x) => n.value.city = x),
|
|
1620
1621
|
name: "city",
|
|
1621
|
-
placeholder: t(
|
|
1622
|
+
placeholder: t(d).cityPlaceholder + L("city")
|
|
1622
1623
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1623
1624
|
E(t(ye), {
|
|
1624
1625
|
modelValue: n.value.state,
|
|
1625
|
-
"onUpdate:modelValue":
|
|
1626
|
+
"onUpdate:modelValue": C[8] || (C[8] = (x) => n.value.state = x),
|
|
1626
1627
|
name: "state",
|
|
1627
|
-
placeholder: t(
|
|
1628
|
+
placeholder: t(d).statePlaceholder + L("state"),
|
|
1628
1629
|
error: e.validation.value.state.$errors
|
|
1629
1630
|
}, null, 8, ["modelValue", "placeholder", "error"])
|
|
1630
1631
|
])
|
|
@@ -1636,49 +1637,49 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1636
1637
|
]),
|
|
1637
1638
|
_: 1
|
|
1638
1639
|
}, 8, ["title"]),
|
|
1639
|
-
e.readOnly ? B("", !0) : (
|
|
1640
|
+
e.readOnly ? B("", !0) : (_(), O(t(ge), { key: 0 }, {
|
|
1640
1641
|
default: I(() => [
|
|
1641
1642
|
E(hi, {
|
|
1642
1643
|
modelValue: a.value,
|
|
1643
|
-
"onUpdate:modelValue":
|
|
1644
|
+
"onUpdate:modelValue": C[9] || (C[9] = (x) => a.value = x),
|
|
1644
1645
|
"no-spacing": "",
|
|
1645
1646
|
class: "!flex"
|
|
1646
1647
|
}, null, 8, ["modelValue"]),
|
|
1647
|
-
E(t(It), { "is-open":
|
|
1648
|
+
E(t(It), { "is-open": l.value }, {
|
|
1648
1649
|
default: I(() => [
|
|
1649
|
-
|
|
1650
|
-
|
|
1650
|
+
l.value ? (_(), W("div", Uo, [
|
|
1651
|
+
T("div", Vo, [
|
|
1651
1652
|
E(t(ye), {
|
|
1652
1653
|
modelValue: n.value.companyLegalName,
|
|
1653
|
-
"onUpdate:modelValue":
|
|
1654
|
+
"onUpdate:modelValue": C[10] || (C[10] = (x) => n.value.companyLegalName = x),
|
|
1654
1655
|
required: "",
|
|
1655
1656
|
name: "legal_name",
|
|
1656
|
-
label: t(
|
|
1657
|
-
placeholder: t(
|
|
1657
|
+
label: t(d).legalNameLabel,
|
|
1658
|
+
placeholder: t(d).legalNamePlaceholder
|
|
1658
1659
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1659
|
-
|
|
1660
|
+
m.value ? (_(), O(t(ye), {
|
|
1660
1661
|
key: 0,
|
|
1661
1662
|
modelValue: n.value.companyVatNumber,
|
|
1662
|
-
"onUpdate:modelValue":
|
|
1663
|
+
"onUpdate:modelValue": C[11] || (C[11] = (x) => n.value.companyVatNumber = x),
|
|
1663
1664
|
name: "vat_number",
|
|
1664
1665
|
"input-class": "focus:outline-none focus:ring-0",
|
|
1665
|
-
label: t(
|
|
1666
|
-
placeholder: t(
|
|
1666
|
+
label: t(d).vatNumberLabel,
|
|
1667
|
+
placeholder: t(d).vatNumberPlaceholder,
|
|
1667
1668
|
error: e.validation.value.companyVatNumber.$errors,
|
|
1668
1669
|
"suffix-class": "px-2 border-l-0"
|
|
1669
1670
|
}, Je({ _: 2 }, [
|
|
1670
|
-
t(
|
|
1671
|
+
t(Ot)(n.value.country ?? "") ? {
|
|
1671
1672
|
name: "suffix",
|
|
1672
1673
|
fn: I(() => [
|
|
1673
1674
|
E(t(Ae), {
|
|
1674
1675
|
type: "button",
|
|
1675
1676
|
size: "sm",
|
|
1676
1677
|
intent: "secondary",
|
|
1677
|
-
disabled: !t(
|
|
1678
|
+
disabled: !t(u) || t(N) || e.validation.value.companyVatNumber.$invalid,
|
|
1678
1679
|
onClick: t(M)
|
|
1679
1680
|
}, {
|
|
1680
1681
|
default: I(() => [
|
|
1681
|
-
|
|
1682
|
+
F(U(t(A)({
|
|
1682
1683
|
defaultMessage: "Check",
|
|
1683
1684
|
id: "checkout.vat_number.check_button.label",
|
|
1684
1685
|
description: "The label for the check button in the checkout form"
|
|
@@ -1690,11 +1691,11 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1690
1691
|
key: "0"
|
|
1691
1692
|
} : void 0
|
|
1692
1693
|
]), 1032, ["modelValue", "label", "placeholder", "error"])) : B("", !0),
|
|
1693
|
-
t(
|
|
1694
|
+
t(v) ? (_(), W("div", {
|
|
1694
1695
|
key: 1,
|
|
1695
1696
|
class: be({ "opacity-75": t(N) })
|
|
1696
1697
|
}, [
|
|
1697
|
-
E(
|
|
1698
|
+
E(Oo, { "tax-id-validation-result": t(v) }, null, 8, ["tax-id-validation-result"])
|
|
1698
1699
|
], 2)) : B("", !0)
|
|
1699
1700
|
])
|
|
1700
1701
|
])) : B("", !0)
|
|
@@ -1707,10 +1708,10 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1707
1708
|
])
|
|
1708
1709
|
], 32));
|
|
1709
1710
|
}
|
|
1710
|
-
}),
|
|
1711
|
+
}), Yo = {
|
|
1711
1712
|
key: 0,
|
|
1712
1713
|
class: "flex items-center"
|
|
1713
|
-
},
|
|
1714
|
+
}, Ko = ["innerHTML"], Qo = ["innerHTML"], Ho = /* @__PURE__ */ ce({
|
|
1714
1715
|
__name: "CheckoutTitle",
|
|
1715
1716
|
props: {
|
|
1716
1717
|
trialPeriod: { type: Object },
|
|
@@ -1723,19 +1724,19 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1723
1724
|
},
|
|
1724
1725
|
setup(e) {
|
|
1725
1726
|
const { $t: i } = ve();
|
|
1726
|
-
return (o, n) => (
|
|
1727
|
-
|
|
1727
|
+
return (o, n) => (_(), W("div", null, [
|
|
1728
|
+
T("div", null, [
|
|
1728
1729
|
E(t(se), {
|
|
1729
1730
|
variant: "heading-1",
|
|
1730
1731
|
class: "inline-block"
|
|
1731
1732
|
}, {
|
|
1732
1733
|
default: I(() => [
|
|
1733
|
-
|
|
1734
|
+
F(U(e.trialStartDate ? e.subscriptionName : t(i)({
|
|
1734
1735
|
defaultMessage: "Pay and subscribe",
|
|
1735
1736
|
id: "checkout.page_title",
|
|
1736
1737
|
description: "The title of the checkout page"
|
|
1737
|
-
})) +
|
|
1738
|
-
e.trialPeriod ? (
|
|
1738
|
+
})) + U(" "), 1),
|
|
1739
|
+
e.trialPeriod ? (_(), O(t(ui), {
|
|
1739
1740
|
key: 0,
|
|
1740
1741
|
"trial-period": e.trialPeriod,
|
|
1741
1742
|
size: "lg",
|
|
@@ -1751,7 +1752,7 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1751
1752
|
"no-spacing": ""
|
|
1752
1753
|
}, {
|
|
1753
1754
|
default: I(() => [
|
|
1754
|
-
e.countryCode ? (
|
|
1755
|
+
e.countryCode ? (_(), W("span", {
|
|
1755
1756
|
key: 1,
|
|
1756
1757
|
innerHTML: e.trialStartDate ? t(i)(
|
|
1757
1758
|
{
|
|
@@ -1786,14 +1787,14 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1786
1787
|
strong: (a) => `<strong>${a}</strong>`
|
|
1787
1788
|
}
|
|
1788
1789
|
)
|
|
1789
|
-
}, null, 8,
|
|
1790
|
+
}, null, 8, Qo)) : (_(), W("span", Yo, [
|
|
1790
1791
|
E(t(ji), { "is-dark-mode": "" }, {
|
|
1791
1792
|
tooltip: I(() => [
|
|
1792
1793
|
E(t(Ri), null, {
|
|
1793
1794
|
default: I(() => [
|
|
1794
1795
|
E(t(Bi), null, {
|
|
1795
1796
|
default: I(() => [
|
|
1796
|
-
|
|
1797
|
+
F(U(t(i)({
|
|
1797
1798
|
defaultMessage: "Will be determined by billing information",
|
|
1798
1799
|
description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
|
|
1799
1800
|
id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
|
|
@@ -1806,7 +1807,7 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1806
1807
|
})
|
|
1807
1808
|
]),
|
|
1808
1809
|
default: I(() => [
|
|
1809
|
-
E(t(
|
|
1810
|
+
E(t(Oi), {
|
|
1810
1811
|
"width-class": "w-10",
|
|
1811
1812
|
"height-class": "h-4",
|
|
1812
1813
|
shade: "darker",
|
|
@@ -1815,7 +1816,7 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1815
1816
|
]),
|
|
1816
1817
|
_: 1
|
|
1817
1818
|
}),
|
|
1818
|
-
|
|
1819
|
+
T("span", {
|
|
1819
1820
|
innerHTML: e.trialStartDate ? t(i)(
|
|
1820
1821
|
{
|
|
1821
1822
|
defaultMessage: "per {period_name} starting, {startDate, date, long}",
|
|
@@ -1843,38 +1844,38 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1843
1844
|
})
|
|
1844
1845
|
}
|
|
1845
1846
|
)
|
|
1846
|
-
}, null, 8,
|
|
1847
|
+
}, null, 8, Ko)
|
|
1847
1848
|
]))
|
|
1848
1849
|
]),
|
|
1849
1850
|
_: 1
|
|
1850
1851
|
})
|
|
1851
1852
|
]));
|
|
1852
1853
|
}
|
|
1853
|
-
}),
|
|
1854
|
+
}), Zo = (e) => {
|
|
1854
1855
|
var i;
|
|
1855
1856
|
return ((i = e.periods) == null ? void 0 : i.some(
|
|
1856
1857
|
(o) => o.groups.some(
|
|
1857
1858
|
(n) => {
|
|
1858
1859
|
var a;
|
|
1859
1860
|
return (a = n.lines) == null ? void 0 : a.some(
|
|
1860
|
-
(
|
|
1861
|
-
(
|
|
1861
|
+
(l) => l.product_items.some(
|
|
1862
|
+
(c) => c.model_type === "USAGE_BASED"
|
|
1862
1863
|
)
|
|
1863
1864
|
);
|
|
1864
1865
|
}
|
|
1865
1866
|
)
|
|
1866
1867
|
)) ?? !1;
|
|
1867
|
-
},
|
|
1868
|
+
}, Xo = { class: "flex min-h-96 w-full items-center justify-center" }, Wo = { class: "max-w-sm" }, qo = /* @__PURE__ */ ce({
|
|
1868
1869
|
__name: "CheckoutNotAvailable",
|
|
1869
1870
|
setup(e) {
|
|
1870
1871
|
const { $t: i } = ve(), o = () => {
|
|
1871
1872
|
window.location.reload();
|
|
1872
1873
|
};
|
|
1873
|
-
return (n, a) => (
|
|
1874
|
-
|
|
1874
|
+
return (n, a) => (_(), W("div", Xo, [
|
|
1875
|
+
T("div", Wo, [
|
|
1875
1876
|
E(t(se), { variant: "heading-1" }, {
|
|
1876
1877
|
default: I(() => [
|
|
1877
|
-
|
|
1878
|
+
F(U(t(i)({
|
|
1878
1879
|
defaultMessage: "Checkout not available",
|
|
1879
1880
|
id: "checkout.not_available.title",
|
|
1880
1881
|
description: "The title of the checkout not available page"
|
|
@@ -1887,21 +1888,21 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1887
1888
|
color: "subtle"
|
|
1888
1889
|
}, {
|
|
1889
1890
|
default: I(() => [
|
|
1890
|
-
|
|
1891
|
+
F(U(t(i)({
|
|
1891
1892
|
defaultMessage: "The checkout is currently not available.",
|
|
1892
1893
|
id: "checkout.not_available.description",
|
|
1893
1894
|
description: "The description of the checkout not available page"
|
|
1894
1895
|
})) + " ", 1),
|
|
1895
|
-
|
|
1896
|
+
T("a", {
|
|
1896
1897
|
href: "#",
|
|
1897
1898
|
class: "text-primary-900 hover:underline",
|
|
1898
1899
|
onClick: $e(o, ["prevent"])
|
|
1899
|
-
},
|
|
1900
|
+
}, U(t(i)({
|
|
1900
1901
|
defaultMessage: "Reload",
|
|
1901
1902
|
id: "checkout.not_available.reload_button",
|
|
1902
1903
|
description: "The label of the reload button"
|
|
1903
1904
|
})), 1),
|
|
1904
|
-
|
|
1905
|
+
F(" " + U(t(i)({
|
|
1905
1906
|
defaultMessage: "this page to try again, or contact customer support.",
|
|
1906
1907
|
id: "checkout.not_available.contact_support_message",
|
|
1907
1908
|
description: "The message shown when the user wants to contact customer support"
|
|
@@ -1912,12 +1913,12 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1912
1913
|
])
|
|
1913
1914
|
]));
|
|
1914
1915
|
}
|
|
1915
|
-
}),
|
|
1916
|
+
}), Jo = /* @__PURE__ */ ce({
|
|
1916
1917
|
__name: "SubscriptionPaymentCompletedCard",
|
|
1917
1918
|
emits: ["continue-to-merchant"],
|
|
1918
1919
|
setup(e) {
|
|
1919
1920
|
const { $t: i } = ve();
|
|
1920
|
-
return (o, n) => (
|
|
1921
|
+
return (o, n) => (_(), O($i, {
|
|
1921
1922
|
status: "success",
|
|
1922
1923
|
title: t(i)({
|
|
1923
1924
|
defaultMessage: "Payment successful",
|
|
@@ -1932,7 +1933,7 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1932
1933
|
tag: "span"
|
|
1933
1934
|
}, {
|
|
1934
1935
|
default: I(() => [
|
|
1935
|
-
|
|
1936
|
+
F(U(t(i)({
|
|
1936
1937
|
defaultMessage: "Thank you for subscribing.",
|
|
1937
1938
|
id: "subscription_payment_completed_card.thank_you_for_subscribing",
|
|
1938
1939
|
description: "The text shown after a successful message before a redirect"
|
|
@@ -1944,23 +1945,23 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1944
1945
|
_: 1
|
|
1945
1946
|
}, 8, ["title"]));
|
|
1946
1947
|
}
|
|
1947
|
-
}),
|
|
1948
|
+
}), en = { class: "flex items-start" }, tn = { class: "flex grow flex-col" }, on = { class: "flex items-center gap-1" }, nn = { class: "ml-4 flex items-center self-center" }, an = /* @__PURE__ */ ce({
|
|
1948
1949
|
__name: "PricingGroupContent",
|
|
1949
1950
|
props: {
|
|
1950
1951
|
name: { type: String },
|
|
1951
1952
|
description: { type: String }
|
|
1952
1953
|
},
|
|
1953
1954
|
setup(e) {
|
|
1954
|
-
return (i, o) => (
|
|
1955
|
-
|
|
1956
|
-
|
|
1955
|
+
return (i, o) => (_(), W("div", en, [
|
|
1956
|
+
T("div", tn, [
|
|
1957
|
+
T("div", on, [
|
|
1957
1958
|
E(t(se), {
|
|
1958
1959
|
tag: "span",
|
|
1959
1960
|
variant: "body-sm",
|
|
1960
1961
|
weight: "semibold"
|
|
1961
1962
|
}, {
|
|
1962
1963
|
default: I(() => [
|
|
1963
|
-
|
|
1964
|
+
F(U(e.name), 1)
|
|
1964
1965
|
]),
|
|
1965
1966
|
_: 1
|
|
1966
1967
|
}),
|
|
@@ -1972,17 +1973,17 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
1972
1973
|
color: "subtle"
|
|
1973
1974
|
}, {
|
|
1974
1975
|
default: I(() => [
|
|
1975
|
-
|
|
1976
|
+
F(U(e.description), 1)
|
|
1976
1977
|
]),
|
|
1977
1978
|
_: 1
|
|
1978
1979
|
})
|
|
1979
1980
|
]),
|
|
1980
|
-
|
|
1981
|
+
T("div", nn, [
|
|
1981
1982
|
We(i.$slots, "default")
|
|
1982
1983
|
])
|
|
1983
1984
|
]));
|
|
1984
1985
|
}
|
|
1985
|
-
}),
|
|
1986
|
+
}), rn = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, ln = { class: "px-3 py-2" }, sn = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, cn = { class: "px-3 py-2" }, un = {
|
|
1986
1987
|
key: 3,
|
|
1987
1988
|
class: "sv-order-summary__items"
|
|
1988
1989
|
}, xt = /* @__PURE__ */ ce({
|
|
@@ -2005,28 +2006,28 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2005
2006
|
},
|
|
2006
2007
|
emits: ["billing-period-change"],
|
|
2007
2008
|
setup(e, { emit: i }) {
|
|
2008
|
-
const o = e, n = i, { $t: a } = ve(), { map:
|
|
2009
|
-
if (!
|
|
2009
|
+
const o = e, n = i, { $t: a } = ve(), { map: l, formatTimePeriod: c } = Lt(), { isMobileViewport: m } = St(), u = b(() => m.value ? "sm" : "xs"), N = (r) => `${r.type}:${r.value}`, v = ["DAY", "WEEK", "MONTH", "YEAR"], M = (r) => v.includes(r), A = (r) => {
|
|
2010
|
+
if (!r)
|
|
2010
2011
|
return;
|
|
2011
|
-
const [
|
|
2012
|
-
if (!(!
|
|
2013
|
-
return { type:
|
|
2014
|
-
},
|
|
2012
|
+
const [g, h] = r.split(":"), w = Number(h);
|
|
2013
|
+
if (!(!w || !M(g)))
|
|
2014
|
+
return { type: g, value: w };
|
|
2015
|
+
}, d = b({
|
|
2015
2016
|
get: () => {
|
|
2016
|
-
const
|
|
2017
|
-
return
|
|
2017
|
+
const r = o.subscription.billing_period;
|
|
2018
|
+
return r ? `${r.type}:${r.value}` : void 0;
|
|
2018
2019
|
},
|
|
2019
|
-
set: (
|
|
2020
|
-
if (!
|
|
2021
|
-
const [
|
|
2022
|
-
|
|
2020
|
+
set: (r) => {
|
|
2021
|
+
if (!r) return;
|
|
2022
|
+
const [g, h] = r.split(":"), w = Number(h);
|
|
2023
|
+
w && M(g) && n("billing-period-change", { type: g, value: w });
|
|
2023
2024
|
}
|
|
2024
|
-
}),
|
|
2025
|
-
var
|
|
2026
|
-
const
|
|
2027
|
-
if (!
|
|
2025
|
+
}), L = (r) => {
|
|
2026
|
+
var w, j, H, Y;
|
|
2027
|
+
const g = (Y = (H = (j = (w = o.invoicePreviewByBillingPeriod) == null ? void 0 : w[N(r)]) == null ? void 0 : j.periods) == null ? void 0 : H[0]) == null ? void 0 : Y.amount_including_tax;
|
|
2028
|
+
if (!g)
|
|
2028
2029
|
return;
|
|
2029
|
-
const h =
|
|
2030
|
+
const h = r.type === "MONTH" && r.value === 3 ? a({
|
|
2030
2031
|
defaultMessage: "/quarter",
|
|
2031
2032
|
id: "checkout.order_summary_block.billing_period.per_quarter",
|
|
2032
2033
|
description: "Period label for quarterly billing"
|
|
@@ -2037,7 +2038,7 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2037
2038
|
description: "Period label for billing cycles"
|
|
2038
2039
|
},
|
|
2039
2040
|
{
|
|
2040
|
-
period:
|
|
2041
|
+
period: c(r, {
|
|
2041
2042
|
prefix: !1,
|
|
2042
2043
|
hideValueForExactPeriods: !0
|
|
2043
2044
|
})
|
|
@@ -2050,91 +2051,91 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2050
2051
|
description: "Billing period option sublabel showing price per period"
|
|
2051
2052
|
},
|
|
2052
2053
|
{
|
|
2053
|
-
amount: Ie(
|
|
2054
|
+
amount: Ie(g),
|
|
2054
2055
|
period: h
|
|
2055
2056
|
}
|
|
2056
2057
|
);
|
|
2057
|
-
},
|
|
2058
|
-
var
|
|
2059
|
-
return (
|
|
2060
|
-
},
|
|
2061
|
-
if (!
|
|
2058
|
+
}, k = (r) => {
|
|
2059
|
+
var g, h, w, j;
|
|
2060
|
+
return (j = (w = (h = (g = o.invoicePreviewByBillingPeriod) == null ? void 0 : g[N(r)]) == null ? void 0 : h.periods) == null ? void 0 : w[0]) == null ? void 0 : j.amount_including_tax;
|
|
2061
|
+
}, p = (r) => Number(r.quantity), C = (r, g) => {
|
|
2062
|
+
if (!g)
|
|
2062
2063
|
return;
|
|
2063
|
-
const
|
|
2064
|
+
const w = {
|
|
2064
2065
|
DAY: 365,
|
|
2065
2066
|
WEEK: 52,
|
|
2066
2067
|
MONTH: 12,
|
|
2067
2068
|
YEAR: 1
|
|
2068
|
-
}[
|
|
2069
|
-
if (Number.isFinite(
|
|
2069
|
+
}[r.type] / Math.max(r.value ?? 1, 1), j = p(g) * w;
|
|
2070
|
+
if (Number.isFinite(j))
|
|
2070
2071
|
return {
|
|
2071
|
-
quantity:
|
|
2072
|
-
currency:
|
|
2072
|
+
quantity: j.toFixed(2),
|
|
2073
|
+
currency: g.currency
|
|
2073
2074
|
};
|
|
2074
|
-
},
|
|
2075
|
-
if (!
|
|
2075
|
+
}, x = (r, g) => {
|
|
2076
|
+
if (!r || !g)
|
|
2076
2077
|
return;
|
|
2077
|
-
const h =
|
|
2078
|
+
const h = p(r) - p(g);
|
|
2078
2079
|
if (!(!Number.isFinite(h) || h <= 0))
|
|
2079
2080
|
return {
|
|
2080
2081
|
quantity: h.toFixed(2),
|
|
2081
|
-
currency:
|
|
2082
|
+
currency: r.currency
|
|
2082
2083
|
};
|
|
2083
|
-
},
|
|
2084
|
-
if (!
|
|
2084
|
+
}, R = (r) => {
|
|
2085
|
+
if (!r)
|
|
2085
2086
|
return;
|
|
2086
|
-
const
|
|
2087
|
+
const g = a(
|
|
2087
2088
|
{
|
|
2088
2089
|
defaultMessage: "Save {amount}",
|
|
2089
2090
|
id: "checkout.order_summary_block.billing_period.save_badge.prefix",
|
|
2090
2091
|
description: "First line for the savings badge label"
|
|
2091
2092
|
},
|
|
2092
|
-
{ amount: Ie(
|
|
2093
|
+
{ amount: Ie(r) }
|
|
2093
2094
|
), h = a({
|
|
2094
2095
|
defaultMessage: "/year",
|
|
2095
2096
|
id: "checkout.order_summary_block.billing_period.save_badge.suffix",
|
|
2096
2097
|
description: "Second line for the savings badge label"
|
|
2097
2098
|
});
|
|
2098
|
-
return `${
|
|
2099
|
-
},
|
|
2099
|
+
return `${g}${h}`;
|
|
2100
|
+
}, Q = b(() => {
|
|
2100
2101
|
var Z, re, ne;
|
|
2101
|
-
const
|
|
2102
|
+
const r = Ne({
|
|
2102
2103
|
pricingPlanScheduleInfos: o.subscription.pricing_plan_schedule_infos ?? [],
|
|
2103
2104
|
type: "DEFAULT"
|
|
2104
|
-
}),
|
|
2105
|
-
|
|
2106
|
-
},
|
|
2105
|
+
}), g = ((re = (Z = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : Z.billing_period_settings) == null ? void 0 : re.billing_periods) ?? [], h = /* @__PURE__ */ new Map(), w = ($) => {
|
|
2106
|
+
$ && h.set(N($), $);
|
|
2107
|
+
}, j = ($) => {
|
|
2107
2108
|
var ie;
|
|
2108
|
-
(ie =
|
|
2109
|
+
(ie = $ == null ? void 0 : $.items) == null || ie.forEach((J) => {
|
|
2109
2110
|
var ee, oe;
|
|
2110
|
-
(ee =
|
|
2111
|
-
(ue) =>
|
|
2112
|
-
), (oe =
|
|
2111
|
+
(ee = J.billing_period_configs) == null || ee.forEach(
|
|
2112
|
+
(ue) => w(ue.billing_period)
|
|
2113
|
+
), (oe = J.pricing_currency_configs) == null || oe.forEach((ue) => {
|
|
2113
2114
|
var de;
|
|
2114
2115
|
(de = ue.billing_period_configs) == null || de.forEach(
|
|
2115
|
-
(pe) =>
|
|
2116
|
+
(pe) => w(pe.billing_period)
|
|
2116
2117
|
);
|
|
2117
2118
|
});
|
|
2118
2119
|
});
|
|
2119
2120
|
};
|
|
2120
|
-
if ((((ne =
|
|
2121
|
-
var ie,
|
|
2122
|
-
(ie =
|
|
2121
|
+
if ((((ne = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : ne.pricing_categories) ?? []).forEach(($) => {
|
|
2122
|
+
var ie, J;
|
|
2123
|
+
(ie = $.pricings) == null || ie.forEach((ee) => j(ee)), (J = $.pricing_groups) == null || J.forEach(
|
|
2123
2124
|
(ee) => {
|
|
2124
2125
|
var oe;
|
|
2125
|
-
return (oe = ee.pricings) == null ? void 0 : oe.forEach((ue) =>
|
|
2126
|
+
return (oe = ee.pricings) == null ? void 0 : oe.forEach((ue) => j(ue));
|
|
2126
2127
|
}
|
|
2127
2128
|
);
|
|
2128
2129
|
}), !h.size)
|
|
2129
2130
|
return [];
|
|
2130
|
-
const
|
|
2131
|
-
(
|
|
2131
|
+
const Y = g.map(($) => h.get(N($.period))).filter(($) => !!$), G = new Set(Y.map(N)), ae = [...h.values()].filter(
|
|
2132
|
+
($) => !G.has(N($))
|
|
2132
2133
|
);
|
|
2133
|
-
return [...
|
|
2134
|
-
}),
|
|
2135
|
-
const
|
|
2136
|
-
return
|
|
2137
|
-
const
|
|
2134
|
+
return [...Y, ...ae];
|
|
2135
|
+
}), s = b(() => {
|
|
2136
|
+
const r = Q.value[Q.value.length - 1], g = r ? C(r, k(r)) : void 0;
|
|
2137
|
+
return Q.value.map((w) => {
|
|
2138
|
+
const j = w.type === "MONTH" && w.value === 3 ? a({
|
|
2138
2139
|
defaultMessage: "Billed quarterly",
|
|
2139
2140
|
id: "checkout.order_summary_block.billing_period.quarterly",
|
|
2140
2141
|
description: "Billing period option label for quarterly billing"
|
|
@@ -2144,52 +2145,52 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2144
2145
|
id: "checkout.order_summary_block.billing_period.label",
|
|
2145
2146
|
description: "Billing period option label for the selected period"
|
|
2146
2147
|
},
|
|
2147
|
-
{ period:
|
|
2148
|
-
), H =
|
|
2148
|
+
{ period: l.value[w.type].full }
|
|
2149
|
+
), H = k(w), Y = C(w, H), G = r && w.type === r.type && w.value === r.value ? void 0 : x(Y, g), ae = R(G);
|
|
2149
2150
|
return {
|
|
2150
|
-
label:
|
|
2151
|
-
subLabel:
|
|
2151
|
+
label: j,
|
|
2152
|
+
subLabel: L(w),
|
|
2152
2153
|
labelSuffixComponent: ae ? {
|
|
2153
2154
|
component: At,
|
|
2154
2155
|
props: {
|
|
2155
2156
|
color: "primary",
|
|
2156
2157
|
content: ae,
|
|
2157
|
-
size:
|
|
2158
|
+
size: u.value,
|
|
2158
2159
|
class: "whitespace-nowrap text-left leading-tight"
|
|
2159
2160
|
}
|
|
2160
2161
|
} : void 0,
|
|
2161
|
-
hidden:
|
|
2162
|
-
value: `${
|
|
2162
|
+
hidden: d.value === `${w.type}:${w.value}`,
|
|
2163
|
+
value: `${w.type}:${w.value}`
|
|
2163
2164
|
};
|
|
2164
2165
|
});
|
|
2165
|
-
}),
|
|
2166
|
-
const
|
|
2166
|
+
}), P = b(() => {
|
|
2167
|
+
const r = s.value, g = r[0], h = r[r.length - 1];
|
|
2167
2168
|
return {
|
|
2168
|
-
smallestPeriod:
|
|
2169
|
+
smallestPeriod: g == null ? void 0 : g.value,
|
|
2169
2170
|
biggestPeriod: h == null ? void 0 : h.value
|
|
2170
2171
|
};
|
|
2171
|
-
}),
|
|
2172
|
-
() =>
|
|
2172
|
+
}), q = b(
|
|
2173
|
+
() => s.value.find((r) => r.value === P.value.biggestPeriod)
|
|
2173
2174
|
), te = b(
|
|
2174
|
-
() =>
|
|
2175
|
-
),
|
|
2176
|
-
var Z, re, ne,
|
|
2177
|
-
const
|
|
2178
|
-
if (!
|
|
2175
|
+
() => s.value.find((r) => r.value === d.value)
|
|
2176
|
+
), f = b(() => {
|
|
2177
|
+
var Z, re, ne, $, ie, J, ee, oe;
|
|
2178
|
+
const r = s.value, g = r[r.length - 1], h = d.value;
|
|
2179
|
+
if (!g || !h || h === g.value)
|
|
2179
2180
|
return "";
|
|
2180
|
-
const
|
|
2181
|
-
if (!
|
|
2181
|
+
const w = A(g.value);
|
|
2182
|
+
if (!w)
|
|
2182
2183
|
return "";
|
|
2183
|
-
const
|
|
2184
|
-
if (!H || !
|
|
2184
|
+
const j = ($ = (ne = (re = (Z = o.invoicePreviewByBillingPeriod) == null ? void 0 : Z[g.value]) == null ? void 0 : re.periods) == null ? void 0 : ne[0]) == null ? void 0 : $.amount_including_tax, H = A(h), Y = (oe = (ee = (J = (ie = o.invoicePreviewByBillingPeriod) == null ? void 0 : ie[h]) == null ? void 0 : J.periods) == null ? void 0 : ee[0]) == null ? void 0 : oe.amount_including_tax;
|
|
2185
|
+
if (!H || !Y)
|
|
2185
2186
|
return "";
|
|
2186
|
-
const
|
|
2187
|
-
return
|
|
2188
|
-
}),
|
|
2189
|
-
const { smallestPeriod:
|
|
2190
|
-
|
|
2187
|
+
const G = C(H, Y), ae = C(w, j);
|
|
2188
|
+
return R(x(G, ae)) ?? "";
|
|
2189
|
+
}), y = (r) => {
|
|
2190
|
+
const { smallestPeriod: g, biggestPeriod: h } = P.value;
|
|
2191
|
+
d.value = r ? h : g;
|
|
2191
2192
|
};
|
|
2192
|
-
return (
|
|
2193
|
+
return (r, g) => (_(), O(t(ge), {
|
|
2193
2194
|
class: "sv-order-summary",
|
|
2194
2195
|
"no-border": "",
|
|
2195
2196
|
"no-spacing": "",
|
|
@@ -2201,13 +2202,13 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2201
2202
|
})
|
|
2202
2203
|
}, {
|
|
2203
2204
|
default: I(() => [
|
|
2204
|
-
|
|
2205
|
+
T("div", rn, [
|
|
2205
2206
|
E(t(ge), {
|
|
2206
2207
|
"no-spacing": "",
|
|
2207
2208
|
class: "sv-order-summary__subscription"
|
|
2208
2209
|
}, {
|
|
2209
2210
|
default: I(() => [
|
|
2210
|
-
e.subscription ? (
|
|
2211
|
+
e.subscription ? (_(), O(Fi, {
|
|
2211
2212
|
key: 0,
|
|
2212
2213
|
avatar: e.avatar,
|
|
2213
2214
|
invoice: e.invoice,
|
|
@@ -2219,36 +2220,36 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2219
2220
|
]),
|
|
2220
2221
|
_: 1
|
|
2221
2222
|
}),
|
|
2222
|
-
|
|
2223
|
+
s.value.length === 2 ? (_(), O(t(ge), {
|
|
2223
2224
|
key: 0,
|
|
2224
2225
|
"no-spacing": "",
|
|
2225
|
-
"content-classes":
|
|
2226
|
+
"content-classes": d.value === P.value.biggestPeriod ? "border-primary-500" : void 0
|
|
2226
2227
|
}, {
|
|
2227
2228
|
default: I(() => {
|
|
2228
2229
|
var h;
|
|
2229
2230
|
return [
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2231
|
+
T("div", ln, [
|
|
2232
|
+
T("div", sn, [
|
|
2233
|
+
q.value ? (_(), O(an, {
|
|
2233
2234
|
key: 0,
|
|
2234
|
-
name:
|
|
2235
|
+
name: q.value.label,
|
|
2235
2236
|
description: ((h = te.value) == null ? void 0 : h.subLabel) ?? ""
|
|
2236
2237
|
}, Je({
|
|
2237
2238
|
default: I(() => [
|
|
2238
2239
|
E(t(vi), {
|
|
2239
|
-
"model-value":
|
|
2240
|
-
"onUpdate:modelValue":
|
|
2240
|
+
"model-value": d.value === P.value.biggestPeriod,
|
|
2241
|
+
"onUpdate:modelValue": y
|
|
2241
2242
|
}, null, 8, ["model-value"])
|
|
2242
2243
|
]),
|
|
2243
2244
|
_: 2
|
|
2244
2245
|
}, [
|
|
2245
|
-
|
|
2246
|
+
f.value ? {
|
|
2246
2247
|
name: "badge",
|
|
2247
2248
|
fn: I(() => [
|
|
2248
2249
|
E(t(At), {
|
|
2249
2250
|
intent: "brand",
|
|
2250
|
-
content:
|
|
2251
|
-
size:
|
|
2251
|
+
content: f.value,
|
|
2252
|
+
size: u.value,
|
|
2252
2253
|
class: "whitespace-nowrap text-left leading-tight"
|
|
2253
2254
|
}, null, 8, ["content", "size"])
|
|
2254
2255
|
]),
|
|
@@ -2260,31 +2261,31 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2260
2261
|
];
|
|
2261
2262
|
}),
|
|
2262
2263
|
_: 1
|
|
2263
|
-
}, 8, ["content-classes"])) :
|
|
2264
|
+
}, 8, ["content-classes"])) : s.value.length > 2 ? (_(), O(t(Ui), {
|
|
2264
2265
|
key: 1,
|
|
2265
|
-
"single-model-value":
|
|
2266
|
-
"onUpdate:singleModelValue":
|
|
2266
|
+
"single-model-value": d.value,
|
|
2267
|
+
"onUpdate:singleModelValue": g[0] || (g[0] = (h) => d.value = h),
|
|
2267
2268
|
class: "sv-order-summary__billing-period",
|
|
2268
|
-
options:
|
|
2269
|
+
options: s.value,
|
|
2269
2270
|
size: "xl",
|
|
2270
2271
|
"has-large-dropdown": "",
|
|
2271
2272
|
"show-sub-label-in-input": "",
|
|
2272
2273
|
"show-suffix-in-closed-input": ""
|
|
2273
2274
|
}, null, 8, ["single-model-value", "options"])) : B("", !0),
|
|
2274
|
-
e.isUsageBased ? (
|
|
2275
|
+
e.isUsageBased ? (_(), O(t(ge), {
|
|
2275
2276
|
key: 2,
|
|
2276
2277
|
"no-spacing": "",
|
|
2277
2278
|
class: "sv-order-summary__usage"
|
|
2278
2279
|
}, {
|
|
2279
2280
|
default: I(() => [
|
|
2280
|
-
|
|
2281
|
+
T("div", cn, [
|
|
2281
2282
|
E(t(se), {
|
|
2282
2283
|
"no-spacing": "",
|
|
2283
2284
|
variant: "body-sm",
|
|
2284
2285
|
color: "subtle"
|
|
2285
2286
|
}, {
|
|
2286
2287
|
default: I(() => [
|
|
2287
|
-
|
|
2288
|
+
F(U(t(a)({
|
|
2288
2289
|
defaultMessage: "+ Usage",
|
|
2289
2290
|
id: "checkout.invoice_preview.usage_based_message",
|
|
2290
2291
|
description: "The message shown for the usage based invoice preview"
|
|
@@ -2296,15 +2297,15 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2296
2297
|
]),
|
|
2297
2298
|
_: 1
|
|
2298
2299
|
})) : B("", !0),
|
|
2299
|
-
e.invoice && e.variant !== "products-inline" ? (
|
|
2300
|
-
E(t(
|
|
2300
|
+
e.invoice && e.variant !== "products-inline" ? (_(), W("div", un, [
|
|
2301
|
+
E(t(ki), {
|
|
2301
2302
|
invoice: e.invoice,
|
|
2302
2303
|
"wrapper-component": t(ge)
|
|
2303
2304
|
}, null, 8, ["invoice", "wrapper-component"])
|
|
2304
2305
|
])) : B("", !0),
|
|
2305
2306
|
E(t(ge), { class: "sv-order-summary__totals" }, {
|
|
2306
2307
|
default: I(() => [
|
|
2307
|
-
e.invoice ? (
|
|
2308
|
+
e.invoice ? (_(), O(t(zi), {
|
|
2308
2309
|
key: 0,
|
|
2309
2310
|
class: "sv-order-summary__invoice-preview",
|
|
2310
2311
|
variant: e.variant === "products-inline" ? "default" : "without-products",
|
|
@@ -2314,14 +2315,14 @@ const Oo = { class: "grid grid-cols-1 gap-1" }, zo = { class: "grid grid-cols-1
|
|
|
2314
2315
|
collapsible: e.collapsible,
|
|
2315
2316
|
"is-preview-without-taxes": !e.countryCode,
|
|
2316
2317
|
"is-customer-facing": ""
|
|
2317
|
-
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (
|
|
2318
|
+
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (_(), O(t(se), {
|
|
2318
2319
|
key: 1,
|
|
2319
2320
|
variant: "body-sm",
|
|
2320
2321
|
color: "subtle",
|
|
2321
2322
|
class: "sv-order-summary__empty"
|
|
2322
2323
|
}, {
|
|
2323
2324
|
default: I(() => [
|
|
2324
|
-
|
|
2325
|
+
F(U(t(a)({
|
|
2325
2326
|
defaultMessage: "Please select a country first",
|
|
2326
2327
|
description: "The message shown for the invoice preview when no country is set",
|
|
2327
2328
|
id: "checkout.invoice_preview.no_country_selected_message"
|
|
@@ -2357,28 +2358,28 @@ function Gt({
|
|
|
2357
2358
|
onMountFailed: n,
|
|
2358
2359
|
afterMount: a
|
|
2359
2360
|
}) {
|
|
2360
|
-
const
|
|
2361
|
-
const
|
|
2362
|
-
if (!
|
|
2361
|
+
const l = V(), c = Me(), m = async () => {
|
|
2362
|
+
const u = await Ft(e, c), N = await i(u);
|
|
2363
|
+
if (!l.value) {
|
|
2363
2364
|
o();
|
|
2364
2365
|
return;
|
|
2365
2366
|
}
|
|
2366
2367
|
try {
|
|
2367
|
-
await N.isAvailable(), N.mount(
|
|
2368
|
-
} catch (
|
|
2369
|
-
n(
|
|
2368
|
+
await N.isAvailable(), N.mount(l.value), a == null || a();
|
|
2369
|
+
} catch (v) {
|
|
2370
|
+
n(v);
|
|
2370
2371
|
}
|
|
2371
2372
|
};
|
|
2372
|
-
return
|
|
2373
|
-
|
|
2374
|
-
}), { buttonRef:
|
|
2373
|
+
return Oe(() => {
|
|
2374
|
+
m();
|
|
2375
|
+
}), { buttonRef: l };
|
|
2375
2376
|
}
|
|
2376
|
-
const
|
|
2377
|
+
const dn = {
|
|
2377
2378
|
key: 0,
|
|
2378
2379
|
id: "svg-logo",
|
|
2379
2380
|
viewBox: "0 0 35 15",
|
|
2380
2381
|
class: "h-[44px]"
|
|
2381
|
-
},
|
|
2382
|
+
}, pn = {
|
|
2382
2383
|
key: 1,
|
|
2383
2384
|
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
|
|
2384
2385
|
role: "presentation",
|
|
@@ -2401,7 +2402,7 @@ const un = {
|
|
|
2401
2402
|
default:
|
|
2402
2403
|
return;
|
|
2403
2404
|
}
|
|
2404
|
-
}),
|
|
2405
|
+
}), l = b(() => {
|
|
2405
2406
|
switch (o.type) {
|
|
2406
2407
|
case "applepay":
|
|
2407
2408
|
return "!bg-black !py-0";
|
|
@@ -2413,18 +2414,18 @@ const un = {
|
|
|
2413
2414
|
return;
|
|
2414
2415
|
}
|
|
2415
2416
|
});
|
|
2416
|
-
function
|
|
2417
|
+
function c() {
|
|
2417
2418
|
n("click");
|
|
2418
2419
|
}
|
|
2419
|
-
return (
|
|
2420
|
+
return (m, u) => (_(), O(t(Ae), {
|
|
2420
2421
|
size: "lg",
|
|
2421
2422
|
"aria-label": a.value,
|
|
2422
|
-
class: be([
|
|
2423
|
-
onClick:
|
|
2423
|
+
class: be([l.value, "!block h-11 w-full bg-center bg-no-repeat"]),
|
|
2424
|
+
onClick: c
|
|
2424
2425
|
}, {
|
|
2425
2426
|
default: I(() => [
|
|
2426
|
-
o.type === "applepay" ? (
|
|
2427
|
-
|
|
2427
|
+
o.type === "applepay" ? (_(), W("svg", dn, [...u[0] || (u[0] = [
|
|
2428
|
+
T("svg", {
|
|
2428
2429
|
id: "svg-logo",
|
|
2429
2430
|
x: "0",
|
|
2430
2431
|
y: "3.85",
|
|
@@ -2435,28 +2436,28 @@ const un = {
|
|
|
2435
2436
|
version: "1.1",
|
|
2436
2437
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2437
2438
|
}, [
|
|
2438
|
-
|
|
2439
|
-
|
|
2439
|
+
T("title", null, "Apple Logo"),
|
|
2440
|
+
T("g", {
|
|
2440
2441
|
stroke: "none",
|
|
2441
2442
|
"stroke-width": "1",
|
|
2442
2443
|
fill: "none",
|
|
2443
2444
|
"fill-rule": "evenodd"
|
|
2444
2445
|
}, [
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2446
|
+
T("g", { fill: "#FFF" }, [
|
|
2447
|
+
T("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" }),
|
|
2448
|
+
T("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" }),
|
|
2449
|
+
T("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" }),
|
|
2450
|
+
T("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" }),
|
|
2451
|
+
T("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" })
|
|
2451
2452
|
])
|
|
2452
2453
|
])
|
|
2453
2454
|
], -1)
|
|
2454
|
-
])])) : o.type === "paypal" ? (
|
|
2455
|
+
])])) : o.type === "paypal" ? (_(), W("img", pn)) : B("", !0)
|
|
2455
2456
|
]),
|
|
2456
2457
|
_: 1
|
|
2457
2458
|
}, 8, ["aria-label", "class"]));
|
|
2458
2459
|
}
|
|
2459
|
-
}),
|
|
2460
|
+
}), mn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, gn = "ADYEN", yn = /* @__PURE__ */ ce({
|
|
2460
2461
|
__name: "ExpressPaymentMethodApplePay",
|
|
2461
2462
|
props: {
|
|
2462
2463
|
onBillingInformationChange: { type: Function },
|
|
@@ -2469,8 +2470,17 @@ const un = {
|
|
|
2469
2470
|
},
|
|
2470
2471
|
emits: ["ready", "update-billing-information"],
|
|
2471
2472
|
setup(e, { emit: i }) {
|
|
2472
|
-
const o = e, n = i, a =
|
|
2473
|
-
|
|
2473
|
+
const o = e, n = i, a = V(), l = Me(), { authorizePayment: c } = Yi(), m = o.paymentMethodOptionsResponse.payment_acceptor.id;
|
|
2474
|
+
function u(p) {
|
|
2475
|
+
return Ki({
|
|
2476
|
+
gateway: "ADYEN",
|
|
2477
|
+
paymentAcceptorId: m,
|
|
2478
|
+
paymentMethodType: "applepay",
|
|
2479
|
+
...p
|
|
2480
|
+
});
|
|
2481
|
+
}
|
|
2482
|
+
const N = async () => {
|
|
2483
|
+
const { ApplePay: p } = await Ve(), C = await Ft(o, l), x = new p(C, {
|
|
2474
2484
|
isExpress: !0,
|
|
2475
2485
|
recurringPaymentRequest: {
|
|
2476
2486
|
paymentDescription: o.billingInformation.description,
|
|
@@ -2495,7 +2505,7 @@ const un = {
|
|
|
2495
2505
|
type: "final",
|
|
2496
2506
|
paymentTiming: "recurring",
|
|
2497
2507
|
recurringPaymentStartDate: o.billingInformation.regular.startDate,
|
|
2498
|
-
...
|
|
2508
|
+
...v(
|
|
2499
2509
|
o.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
|
|
2500
2510
|
)
|
|
2501
2511
|
}
|
|
@@ -2503,158 +2513,169 @@ const un = {
|
|
|
2503
2513
|
},
|
|
2504
2514
|
requiredBillingContactFields: ["postalAddress"],
|
|
2505
2515
|
requiredShippingContactFields: ["email"],
|
|
2506
|
-
onPaymentMethodSelected: async (
|
|
2507
|
-
var
|
|
2508
|
-
const { invoicePreview:
|
|
2509
|
-
...((
|
|
2510
|
-
postal_code:
|
|
2516
|
+
onPaymentMethodSelected: async (R, Q, s) => {
|
|
2517
|
+
var f, y, r, g, h, w, j;
|
|
2518
|
+
const { invoicePreview: P, trialInvoicePreview: q } = await o.onBillingInformationChange({
|
|
2519
|
+
...((f = s.paymentMethod.billingContact) == null ? void 0 : f.postalCode) && {
|
|
2520
|
+
postal_code: s.paymentMethod.billingContact.postalCode
|
|
2511
2521
|
},
|
|
2512
|
-
...((
|
|
2513
|
-
city:
|
|
2522
|
+
...((y = s.paymentMethod.billingContact) == null ? void 0 : y.locality) && {
|
|
2523
|
+
city: s.paymentMethod.billingContact.locality
|
|
2514
2524
|
},
|
|
2515
|
-
...
|
|
2516
|
-
country:
|
|
2525
|
+
...d((r = s.paymentMethod.billingContact) == null ? void 0 : r.countryCode) && {
|
|
2526
|
+
country: d((g = s.paymentMethod.billingContact) == null ? void 0 : g.countryCode)
|
|
2517
2527
|
}
|
|
2518
|
-
}),
|
|
2528
|
+
}), te = q ? q.invoice_amount_including_tax.quantity.toString() : P.invoice_amount_including_tax.quantity.toString();
|
|
2519
2529
|
n("update-billing-information", {
|
|
2520
|
-
postal_code: (
|
|
2521
|
-
city: (
|
|
2522
|
-
country: (
|
|
2523
|
-
}),
|
|
2530
|
+
postal_code: (h = s.paymentMethod.billingContact) == null ? void 0 : h.postalCode,
|
|
2531
|
+
city: (w = s.paymentMethod.billingContact) == null ? void 0 : w.locality,
|
|
2532
|
+
country: (j = s.paymentMethod.billingContact) == null ? void 0 : j.countryCode
|
|
2533
|
+
}), R({
|
|
2524
2534
|
newTotal: {
|
|
2525
2535
|
label: o.billingInformation.regular.label,
|
|
2526
|
-
amount:
|
|
2536
|
+
amount: te,
|
|
2527
2537
|
type: "final"
|
|
2528
2538
|
}
|
|
2529
2539
|
});
|
|
2530
2540
|
},
|
|
2531
|
-
onError: (
|
|
2532
|
-
|
|
2541
|
+
onError: (R) => {
|
|
2542
|
+
l.error(
|
|
2543
|
+
"APPLE_PAY_ERROR",
|
|
2544
|
+
"Apple Pay error",
|
|
2545
|
+
u({ reason: "APPLE_PAY_ERROR", cause: R }),
|
|
2546
|
+
R
|
|
2547
|
+
);
|
|
2533
2548
|
},
|
|
2534
|
-
onAuthorized: async (
|
|
2549
|
+
onAuthorized: async (R, Q) => {
|
|
2550
|
+
var s;
|
|
2535
2551
|
try {
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
billingAddress: T.billingAddress
|
|
2552
|
+
const P = R.authorizedEvent;
|
|
2553
|
+
l.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", {
|
|
2554
|
+
paymentAcceptorId: m,
|
|
2555
|
+
hasPaymentMethod: !!P.payment.token.paymentMethod,
|
|
2556
|
+
hasPaymentData: !!P.payment.token.paymentData,
|
|
2557
|
+
hasBillingContact: !!P.payment.billingContact
|
|
2543
2558
|
});
|
|
2544
|
-
const
|
|
2545
|
-
|
|
2559
|
+
const q = P.payment.billingContact, te = R.billingAddress;
|
|
2560
|
+
q ? n(
|
|
2546
2561
|
"update-billing-information",
|
|
2547
|
-
|
|
2548
|
-
) :
|
|
2562
|
+
M(q)
|
|
2563
|
+
) : te && n(
|
|
2549
2564
|
"update-billing-information",
|
|
2550
|
-
|
|
2565
|
+
A(te)
|
|
2551
2566
|
);
|
|
2552
|
-
const
|
|
2567
|
+
const f = {
|
|
2553
2568
|
payment_method: bt(
|
|
2554
|
-
|
|
2569
|
+
P.payment.token.paymentMethod
|
|
2555
2570
|
),
|
|
2556
2571
|
browser_info: bt(
|
|
2557
|
-
|
|
2572
|
+
P.payment.token.paymentData
|
|
2558
2573
|
)
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
const te = xi({
|
|
2562
|
-
paymentAcceptorId: g,
|
|
2574
|
+
}, y = xi({
|
|
2575
|
+
paymentAcceptorId: m,
|
|
2563
2576
|
redirectUrl: window.location.href
|
|
2564
|
-
})
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
amount: o.amount
|
|
2568
|
-
});
|
|
2569
|
-
const u = await s({
|
|
2570
|
-
payment_acceptor_id: g,
|
|
2571
|
-
payment_gateway_variant: mn,
|
|
2577
|
+
}), r = await c({
|
|
2578
|
+
payment_acceptor_id: m,
|
|
2579
|
+
payment_gateway_variant: gn,
|
|
2572
2580
|
adyen: {
|
|
2573
|
-
...
|
|
2581
|
+
...f,
|
|
2574
2582
|
store_payment_method: !0
|
|
2575
2583
|
// Required for recurring payments
|
|
2576
2584
|
},
|
|
2577
2585
|
amount: o.amount,
|
|
2578
|
-
return_url:
|
|
2586
|
+
return_url: y
|
|
2579
2587
|
});
|
|
2580
|
-
if (
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
}),
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2588
|
+
if (l.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
|
|
2589
|
+
paymentAcceptorId: m,
|
|
2590
|
+
status: r.status
|
|
2591
|
+
}), r.status === "FAILURE") {
|
|
2592
|
+
l.error(
|
|
2593
|
+
"APPLE_PAY_AUTHORIZATION_FAILED",
|
|
2594
|
+
"Payment authorization failed",
|
|
2595
|
+
u({
|
|
2596
|
+
reason: "APPLE_PAY_AUTHORIZATION_REJECTED",
|
|
2597
|
+
extra: { paymentStatus: r.status }
|
|
2598
|
+
})
|
|
2599
|
+
), Q.reject();
|
|
2587
2600
|
return;
|
|
2588
2601
|
}
|
|
2589
|
-
if (
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2602
|
+
if (r.status === "ACTION_REQUIRED") {
|
|
2603
|
+
l.warn(
|
|
2604
|
+
"APPLE_PAY_ACTION_REQUIRED",
|
|
2605
|
+
"Payment requires additional action",
|
|
2606
|
+
u({
|
|
2607
|
+
reason: "APPLE_PAY_ACTION_REQUIRED",
|
|
2608
|
+
extra: { actionType: (s = r.action) == null ? void 0 : s.method }
|
|
2609
|
+
})
|
|
2610
|
+
), Q.reject();
|
|
2593
2611
|
return;
|
|
2594
2612
|
}
|
|
2595
|
-
|
|
2596
|
-
} catch (
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2613
|
+
l.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), Q.resolve();
|
|
2614
|
+
} catch (P) {
|
|
2615
|
+
l.error(
|
|
2616
|
+
"APPLE_PAY_AUTHORIZATION_FAILED",
|
|
2617
|
+
"Apple Pay authorization failed",
|
|
2618
|
+
u({ reason: "APPLE_PAY_AUTHORIZATION_FAILED", cause: P }),
|
|
2619
|
+
P
|
|
2620
|
+
), Q.reject();
|
|
2600
2621
|
}
|
|
2601
2622
|
}
|
|
2602
2623
|
});
|
|
2603
2624
|
if (!a.value) {
|
|
2604
|
-
|
|
2625
|
+
l.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
|
|
2605
2626
|
return;
|
|
2606
2627
|
}
|
|
2607
2628
|
try {
|
|
2608
|
-
await
|
|
2609
|
-
} catch (
|
|
2610
|
-
|
|
2629
|
+
await x.isAvailable(), x.mount(a.value), n("ready");
|
|
2630
|
+
} catch (R) {
|
|
2631
|
+
l.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, R);
|
|
2611
2632
|
}
|
|
2612
|
-
},
|
|
2613
|
-
if (!
|
|
2633
|
+
}, v = (p) => {
|
|
2634
|
+
if (!p.value)
|
|
2614
2635
|
return;
|
|
2615
|
-
let
|
|
2616
|
-
if (
|
|
2636
|
+
let C = p.value ?? 1, x = p.type.toLowerCase();
|
|
2637
|
+
if (p.type === "WEEK" && (x = "day", C = p.value * 7), x === "day" || x === "month" || x === "year" || x === "hour" || x === "minute")
|
|
2617
2638
|
return {
|
|
2618
|
-
recurringPaymentIntervalUnit:
|
|
2619
|
-
recurringPaymentIntervalCount:
|
|
2639
|
+
recurringPaymentIntervalUnit: x,
|
|
2640
|
+
recurringPaymentIntervalCount: C
|
|
2620
2641
|
};
|
|
2621
|
-
},
|
|
2622
|
-
postal_code:
|
|
2623
|
-
city:
|
|
2624
|
-
country:
|
|
2625
|
-
}),
|
|
2626
|
-
postal_code:
|
|
2627
|
-
city:
|
|
2628
|
-
country:
|
|
2629
|
-
}),
|
|
2630
|
-
var
|
|
2631
|
-
const
|
|
2632
|
-
if (
|
|
2633
|
-
const
|
|
2642
|
+
}, M = (p) => ({
|
|
2643
|
+
postal_code: p.postalCode,
|
|
2644
|
+
city: p.locality,
|
|
2645
|
+
country: p.countryCode
|
|
2646
|
+
}), A = (p) => ({
|
|
2647
|
+
postal_code: p.postalCode,
|
|
2648
|
+
city: p.city,
|
|
2649
|
+
country: p.country
|
|
2650
|
+
}), d = (p) => p && L(p) ? p : void 0, L = (p) => Ge(p), k = () => {
|
|
2651
|
+
var C;
|
|
2652
|
+
const p = (C = a.value) == null ? void 0 : C.querySelector("apple-pay-button");
|
|
2653
|
+
if (p) {
|
|
2654
|
+
const x = new MouseEvent("click", {
|
|
2634
2655
|
bubbles: !0,
|
|
2635
2656
|
cancelable: !0,
|
|
2636
2657
|
view: window
|
|
2637
2658
|
});
|
|
2638
|
-
|
|
2659
|
+
p.dispatchEvent(x);
|
|
2639
2660
|
}
|
|
2640
2661
|
};
|
|
2641
|
-
return
|
|
2642
|
-
|
|
2643
|
-
}), (
|
|
2644
|
-
e.isVisible ? (
|
|
2662
|
+
return Oe(() => {
|
|
2663
|
+
N();
|
|
2664
|
+
}), (p, C) => (_(), W(_e, null, [
|
|
2665
|
+
e.isVisible ? (_(), O(it, {
|
|
2645
2666
|
key: 0,
|
|
2646
2667
|
type: "applepay",
|
|
2647
|
-
onClick:
|
|
2668
|
+
onClick: k
|
|
2648
2669
|
})) : B("", !0),
|
|
2649
|
-
|
|
2650
|
-
|
|
2670
|
+
T("div", mn, [
|
|
2671
|
+
T("div", {
|
|
2651
2672
|
ref_key: "applePayButtonRef",
|
|
2652
2673
|
ref: a
|
|
2653
2674
|
}, null, 512)
|
|
2654
2675
|
])
|
|
2655
2676
|
], 64));
|
|
2656
2677
|
}
|
|
2657
|
-
}),
|
|
2678
|
+
}), vn = { class: "relative overflow-hidden" }, fn = /* @__PURE__ */ ce({
|
|
2658
2679
|
__name: "ExpressPaymentMethodPaypal",
|
|
2659
2680
|
props: {
|
|
2660
2681
|
amount: { type: Object },
|
|
@@ -2666,18 +2687,18 @@ const un = {
|
|
|
2666
2687
|
},
|
|
2667
2688
|
emits: ["ready", "update-billing-information"],
|
|
2668
2689
|
setup(e, { emit: i }) {
|
|
2669
|
-
const o = e, n = i, a = Me(), { buttonRef:
|
|
2690
|
+
const o = e, n = i, a = Me(), { buttonRef: l } = Gt({
|
|
2670
2691
|
props: o,
|
|
2671
2692
|
onMissingButton: () => a.error(
|
|
2672
2693
|
"EXPRESS_CHECKOUT_PAYPAL_ERROR",
|
|
2673
2694
|
"The PayPal button reference is not found and cannot be mounted"
|
|
2674
2695
|
),
|
|
2675
|
-
onMountFailed: (
|
|
2676
|
-
error:
|
|
2696
|
+
onMountFailed: (c) => a.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
|
|
2697
|
+
error: c
|
|
2677
2698
|
}),
|
|
2678
|
-
create: async (
|
|
2679
|
-
const { PayPal:
|
|
2680
|
-
return new
|
|
2699
|
+
create: async (c) => {
|
|
2700
|
+
const { PayPal: m } = await Ve();
|
|
2701
|
+
return new m(c, {
|
|
2681
2702
|
isExpress: !0,
|
|
2682
2703
|
blockPayPalPayLaterButton: !0,
|
|
2683
2704
|
blockPayPalCreditButton: !0,
|
|
@@ -2691,20 +2712,20 @@ const un = {
|
|
|
2691
2712
|
});
|
|
2692
2713
|
}
|
|
2693
2714
|
});
|
|
2694
|
-
return (
|
|
2695
|
-
e.isVisible ? (
|
|
2715
|
+
return (c, m) => (_(), W("div", vn, [
|
|
2716
|
+
e.isVisible ? (_(), O(it, {
|
|
2696
2717
|
key: 0,
|
|
2697
2718
|
type: "paypal",
|
|
2698
2719
|
class: "w-full"
|
|
2699
2720
|
})) : B("", !0),
|
|
2700
|
-
|
|
2721
|
+
T("div", {
|
|
2701
2722
|
ref_key: "paypalButtonRef",
|
|
2702
|
-
ref:
|
|
2723
|
+
ref: l,
|
|
2703
2724
|
class: "absolute inset-0 opacity-[0.0001]"
|
|
2704
2725
|
}, null, 512)
|
|
2705
2726
|
]));
|
|
2706
2727
|
}
|
|
2707
|
-
}),
|
|
2728
|
+
}), _n = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, Mn = /* @__PURE__ */ ce({
|
|
2708
2729
|
__name: "ExpressPaymentMethodGooglePay",
|
|
2709
2730
|
props: {
|
|
2710
2731
|
amount: { type: Object },
|
|
@@ -2716,52 +2737,53 @@ const un = {
|
|
|
2716
2737
|
},
|
|
2717
2738
|
emits: ["ready", "update-billing-information"],
|
|
2718
2739
|
setup(e, { emit: i }) {
|
|
2719
|
-
const o = e, n = i, a = Me(), { buttonRef:
|
|
2740
|
+
const o = e, n = i, a = Me(), { buttonRef: l } = Gt({
|
|
2720
2741
|
props: o,
|
|
2721
2742
|
onMissingButton: () => a.error(
|
|
2722
2743
|
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2723
2744
|
"The Google Pay button reference is not found and cannot be mounted"
|
|
2724
2745
|
),
|
|
2725
|
-
onMountFailed: (
|
|
2746
|
+
onMountFailed: (m) => a.error(
|
|
2726
2747
|
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2727
2748
|
"Failed mounting Google Pay express button",
|
|
2728
|
-
{
|
|
2749
|
+
{},
|
|
2750
|
+
m
|
|
2729
2751
|
),
|
|
2730
|
-
create: async (
|
|
2731
|
-
const { GooglePay:
|
|
2732
|
-
return new
|
|
2752
|
+
create: async (m) => {
|
|
2753
|
+
const { GooglePay: u } = await Ve();
|
|
2754
|
+
return new u(m, { isExpress: !0 });
|
|
2733
2755
|
},
|
|
2734
2756
|
afterMount: () => n("ready")
|
|
2735
|
-
}),
|
|
2736
|
-
var
|
|
2737
|
-
const
|
|
2738
|
-
if (
|
|
2757
|
+
}), c = () => {
|
|
2758
|
+
var u;
|
|
2759
|
+
const m = (u = l.value) == null ? void 0 : u.querySelector("#gpay-button-online-api-id");
|
|
2760
|
+
if (m) {
|
|
2739
2761
|
const N = new MouseEvent("click", {
|
|
2740
2762
|
bubbles: !0,
|
|
2741
2763
|
cancelable: !0,
|
|
2742
2764
|
view: window
|
|
2743
2765
|
});
|
|
2744
|
-
|
|
2766
|
+
m.dispatchEvent(N);
|
|
2745
2767
|
}
|
|
2746
2768
|
};
|
|
2747
|
-
return (
|
|
2748
|
-
e.isVisible ? (
|
|
2769
|
+
return (m, u) => (_(), W(_e, null, [
|
|
2770
|
+
e.isVisible ? (_(), O(it, {
|
|
2749
2771
|
key: 0,
|
|
2750
2772
|
type: "googlepay",
|
|
2751
|
-
onClick:
|
|
2773
|
+
onClick: c
|
|
2752
2774
|
})) : B("", !0),
|
|
2753
|
-
|
|
2754
|
-
|
|
2775
|
+
T("div", _n, [
|
|
2776
|
+
T("div", {
|
|
2755
2777
|
ref_key: "googlePayButtonRef",
|
|
2756
|
-
ref:
|
|
2778
|
+
ref: l
|
|
2757
2779
|
}, null, 512)
|
|
2758
2780
|
])
|
|
2759
2781
|
], 64));
|
|
2760
2782
|
}
|
|
2761
|
-
}),
|
|
2783
|
+
}), hn = {
|
|
2762
2784
|
key: 0,
|
|
2763
2785
|
class: "mt-4n"
|
|
2764
|
-
},
|
|
2786
|
+
}, bn = { class: "mb-2" }, In = { class: "grid grid-cols-6 gap-1 md:gap-2" }, An = { class: "mt-4 h-4" }, Pn = 2, Dn = /* @__PURE__ */ ce({
|
|
2765
2787
|
__name: "ExpressPaymentMethods",
|
|
2766
2788
|
props: {
|
|
2767
2789
|
amount: { type: Object },
|
|
@@ -2773,100 +2795,100 @@ const un = {
|
|
|
2773
2795
|
},
|
|
2774
2796
|
emits: ["update-billing-information"],
|
|
2775
2797
|
setup(e) {
|
|
2776
|
-
const i = ["applepay"], o = e, { $t: n } = ve(), a =
|
|
2777
|
-
var
|
|
2798
|
+
const i = ["applepay"], o = e, { $t: n } = ve(), a = V(!1), l = V(!1), c = V(!1), m = b(() => {
|
|
2799
|
+
var d;
|
|
2778
2800
|
if (i.includes("applepay"))
|
|
2779
|
-
return (
|
|
2780
|
-
(
|
|
2781
|
-
var
|
|
2782
|
-
return (
|
|
2783
|
-
(
|
|
2801
|
+
return (d = o.paymentMethodsOptionsResponse) == null ? void 0 : d.find(
|
|
2802
|
+
(L) => {
|
|
2803
|
+
var k;
|
|
2804
|
+
return (k = L.options) == null ? void 0 : k.some(
|
|
2805
|
+
(p) => p.name.toLowerCase() === "apple pay" && p.payment_gateway_variant === "ADYEN"
|
|
2784
2806
|
);
|
|
2785
2807
|
}
|
|
2786
2808
|
);
|
|
2787
|
-
}),
|
|
2788
|
-
var
|
|
2809
|
+
}), u = b(() => {
|
|
2810
|
+
var d;
|
|
2789
2811
|
if (i.includes("paypal"))
|
|
2790
|
-
return (
|
|
2791
|
-
(
|
|
2792
|
-
var
|
|
2793
|
-
return (
|
|
2794
|
-
(
|
|
2812
|
+
return (d = o.paymentMethodsOptionsResponse) == null ? void 0 : d.find(
|
|
2813
|
+
(L) => {
|
|
2814
|
+
var k;
|
|
2815
|
+
return (k = L.options) == null ? void 0 : k.some(
|
|
2816
|
+
(p) => p.name.toLowerCase() === "paypal" && p.payment_gateway_variant === "ADYEN"
|
|
2795
2817
|
);
|
|
2796
2818
|
}
|
|
2797
2819
|
);
|
|
2798
2820
|
}), N = b(() => {
|
|
2799
|
-
var
|
|
2821
|
+
var d;
|
|
2800
2822
|
if (i.includes("googlepay"))
|
|
2801
|
-
return (
|
|
2802
|
-
(
|
|
2803
|
-
var
|
|
2804
|
-
return (
|
|
2805
|
-
(
|
|
2823
|
+
return (d = o.paymentMethodsOptionsResponse) == null ? void 0 : d.find(
|
|
2824
|
+
(L) => {
|
|
2825
|
+
var k;
|
|
2826
|
+
return (k = L.options) == null ? void 0 : k.some(
|
|
2827
|
+
(p) => p.name.toLowerCase() === "google pay" && p.payment_gateway_variant === "ADYEN"
|
|
2806
2828
|
);
|
|
2807
2829
|
}
|
|
2808
2830
|
);
|
|
2809
|
-
}),
|
|
2810
|
-
var
|
|
2811
|
-
if (((
|
|
2831
|
+
}), v = b(() => !!(m.value || N.value || u.value)), M = b(() => {
|
|
2832
|
+
var p;
|
|
2833
|
+
if (((p = o.paymentMethodsOptionsResponse) == null ? void 0 : p.length) === 0)
|
|
2812
2834
|
return !1;
|
|
2813
|
-
const
|
|
2814
|
-
return
|
|
2815
|
-
}), A = b(() => M.value ? (
|
|
2816
|
-
return (
|
|
2817
|
-
|
|
2818
|
-
M.value ? (
|
|
2835
|
+
const d = !m.value || a.value, L = !N.value || l.value, k = !u.value || c.value;
|
|
2836
|
+
return d && L && k;
|
|
2837
|
+
}), A = b(() => M.value ? (m.value ? 1 : 0) + (N.value ? 1 : 0) + (u.value ? 1 : 0) : Pn);
|
|
2838
|
+
return (d, L) => v.value ? (_(), W("div", hn, [
|
|
2839
|
+
T("div", bn, [
|
|
2840
|
+
M.value ? (_(), O(t(se), {
|
|
2819
2841
|
key: 1,
|
|
2820
2842
|
variant: "heading-3",
|
|
2821
2843
|
tag: "h2"
|
|
2822
2844
|
}, {
|
|
2823
2845
|
default: I(() => [
|
|
2824
|
-
|
|
2846
|
+
F(U(t(n)({
|
|
2825
2847
|
defaultMessage: "Subscribe instantly with",
|
|
2826
2848
|
id: "checkout.express_payment_methods.title",
|
|
2827
2849
|
description: "The title of the express payment methods block in the checkout form"
|
|
2828
2850
|
})), 1)
|
|
2829
2851
|
]),
|
|
2830
2852
|
_: 1
|
|
2831
|
-
})) : (
|
|
2853
|
+
})) : (_(), O(fe, {
|
|
2832
2854
|
key: 0,
|
|
2833
2855
|
variant: "title"
|
|
2834
2856
|
}))
|
|
2835
2857
|
]),
|
|
2836
|
-
|
|
2837
|
-
M.value ? B("", !0) : (
|
|
2858
|
+
T("div", In, [
|
|
2859
|
+
M.value ? B("", !0) : (_(), W(_e, { key: 0 }, [
|
|
2838
2860
|
E(fe, { class: "col-span-3 h-11" }),
|
|
2839
2861
|
E(fe, { class: "col-span-3 h-11" })
|
|
2840
2862
|
], 64)),
|
|
2841
|
-
|
|
2863
|
+
T("div", {
|
|
2842
2864
|
class: be(["col-span-3 md:col-span-2", {
|
|
2843
|
-
hidden: !
|
|
2865
|
+
hidden: !m.value,
|
|
2844
2866
|
"!col-span-6": A.value === 1,
|
|
2845
2867
|
"md:!col-span-3": A.value === 2,
|
|
2846
2868
|
"!col-span-6 md:!col-span-2": A.value === 3
|
|
2847
2869
|
}])
|
|
2848
2870
|
}, [
|
|
2849
|
-
|
|
2871
|
+
m.value ? (_(), O(yn, {
|
|
2850
2872
|
key: 0,
|
|
2851
2873
|
amount: e.amount,
|
|
2852
2874
|
"billing-information": e.billingInformation,
|
|
2853
2875
|
"country-code": e.countryCode,
|
|
2854
2876
|
locale: e.locale,
|
|
2855
2877
|
"is-visible": M.value,
|
|
2856
|
-
"payment-method-options-response":
|
|
2878
|
+
"payment-method-options-response": m.value,
|
|
2857
2879
|
"on-billing-information-change": e.onBillingInformationChange,
|
|
2858
|
-
onReady:
|
|
2859
|
-
onUpdateBillingInformation:
|
|
2880
|
+
onReady: L[0] || (L[0] = (k) => a.value = !0),
|
|
2881
|
+
onUpdateBillingInformation: L[1] || (L[1] = (k) => d.$emit("update-billing-information", k))
|
|
2860
2882
|
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) : B("", !0)
|
|
2861
2883
|
], 2),
|
|
2862
|
-
|
|
2884
|
+
T("div", {
|
|
2863
2885
|
class: be(["col-span-3 md:col-span-2", {
|
|
2864
2886
|
hidden: !N.value,
|
|
2865
2887
|
"col-span-6 md:col-span-6": A.value === 1,
|
|
2866
2888
|
"md:!col-span-3": A.value === 2
|
|
2867
2889
|
}])
|
|
2868
2890
|
}, [
|
|
2869
|
-
N.value ? (
|
|
2891
|
+
N.value ? (_(), O(Mn, {
|
|
2870
2892
|
key: 0,
|
|
2871
2893
|
amount: e.amount,
|
|
2872
2894
|
"billing-information": e.billingInformation,
|
|
@@ -2874,30 +2896,30 @@ const un = {
|
|
|
2874
2896
|
locale: e.locale,
|
|
2875
2897
|
"is-visible": M.value,
|
|
2876
2898
|
"payment-method-options-response": N.value,
|
|
2877
|
-
onReady:
|
|
2899
|
+
onReady: L[2] || (L[2] = (k) => l.value = !0)
|
|
2878
2900
|
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : B("", !0)
|
|
2879
2901
|
], 2),
|
|
2880
|
-
|
|
2902
|
+
T("div", {
|
|
2881
2903
|
class: be(["col-span-3 md:col-span-2", {
|
|
2882
|
-
hidden: !
|
|
2904
|
+
hidden: !u.value,
|
|
2883
2905
|
"col-span-6 md:col-span-6": A.value === 1,
|
|
2884
2906
|
"md:!col-span-3": A.value === 2
|
|
2885
2907
|
}])
|
|
2886
2908
|
}, [
|
|
2887
|
-
|
|
2909
|
+
u.value ? (_(), O(fn, {
|
|
2888
2910
|
key: 0,
|
|
2889
2911
|
amount: e.amount,
|
|
2890
2912
|
"billing-information": e.billingInformation,
|
|
2891
2913
|
"country-code": e.countryCode,
|
|
2892
2914
|
locale: e.locale,
|
|
2893
2915
|
"is-visible": M.value,
|
|
2894
|
-
"payment-method-options-response":
|
|
2895
|
-
onReady:
|
|
2916
|
+
"payment-method-options-response": u.value,
|
|
2917
|
+
onReady: L[3] || (L[3] = (k) => c.value = !0)
|
|
2896
2918
|
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : B("", !0)
|
|
2897
2919
|
], 2)
|
|
2898
2920
|
]),
|
|
2899
|
-
|
|
2900
|
-
M.value ? (
|
|
2921
|
+
T("div", An, [
|
|
2922
|
+
M.value ? (_(), O(t(Gi), {
|
|
2901
2923
|
key: 1,
|
|
2902
2924
|
text: t(n)({
|
|
2903
2925
|
defaultMessage: "Or",
|
|
@@ -2905,17 +2927,17 @@ const un = {
|
|
|
2905
2927
|
description: "The text of the divider text in the express payment methods block in the checkout form"
|
|
2906
2928
|
}),
|
|
2907
2929
|
"text-position": "center"
|
|
2908
|
-
}, null, 8, ["text"])) : (
|
|
2930
|
+
}, null, 8, ["text"])) : (_(), O(fe, {
|
|
2909
2931
|
key: 0,
|
|
2910
2932
|
variant: "divider-text"
|
|
2911
2933
|
}))
|
|
2912
2934
|
])
|
|
2913
2935
|
])) : B("", !0);
|
|
2914
2936
|
}
|
|
2915
|
-
}),
|
|
2937
|
+
}), Nn = ["aria-expanded", "aria-label"], En = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, Cn = { class: "flex flex-row items-center gap-2" }, xn = ["onKeydown"], Ln = ["aria-label"], Tn = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, wn = { class: "flex flex-row items-center gap-2" }, Sn = {
|
|
2916
2938
|
class: "sr-only",
|
|
2917
2939
|
"aria-live": "polite"
|
|
2918
|
-
},
|
|
2940
|
+
}, On = /* @__PURE__ */ ce({
|
|
2919
2941
|
inheritAttrs: !1,
|
|
2920
2942
|
__name: "PromotionCodeSection",
|
|
2921
2943
|
props: {
|
|
@@ -2923,14 +2945,14 @@ const un = {
|
|
|
2923
2945
|
},
|
|
2924
2946
|
emits: ["update:appliedCode", "apply", "remove"],
|
|
2925
2947
|
setup(e, { emit: i }) {
|
|
2926
|
-
const { $t: o } = ve(), n = e, a = i,
|
|
2948
|
+
const { $t: o } = ve(), n = e, a = i, l = V(!1), c = V(""), m = V(""), u = V(null), N = V(null), v = Hi("promotion-code-"), M = `${v}-label`, A = `${v}-panel`, d = b(() => n.promotionCode !== null && n.promotionCode !== ""), L = b(() => c.value.trim().length > 0), k = b(
|
|
2927
2949
|
() => n.promotionCode ?? o({
|
|
2928
2950
|
defaultMessage: "Promotion applied",
|
|
2929
2951
|
id: "checkout.promotion_code.applied_label",
|
|
2930
2952
|
description: "Fallback label for an applied promotion code in checkout"
|
|
2931
2953
|
})
|
|
2932
|
-
),
|
|
2933
|
-
() =>
|
|
2954
|
+
), p = b(
|
|
2955
|
+
() => l.value ? o({
|
|
2934
2956
|
defaultMessage: "Collapse promotion code input",
|
|
2935
2957
|
id: "checkout.promotion_code.collapse_aria_label",
|
|
2936
2958
|
description: "Aria label for the promotion code toggle button in checkout, while the input is open"
|
|
@@ -2939,119 +2961,119 @@ const un = {
|
|
|
2939
2961
|
id: "checkout.promotion_code.expand_aria_label",
|
|
2940
2962
|
description: "Aria label for the promotion code toggle button in checkout, while the input is closed"
|
|
2941
2963
|
})
|
|
2942
|
-
),
|
|
2964
|
+
), C = b(
|
|
2943
2965
|
() => o({
|
|
2944
2966
|
defaultMessage: "Apply promotion code",
|
|
2945
2967
|
id: "checkout.promotion_code.apply_aria_label",
|
|
2946
2968
|
description: "Aria label for the promotion code apply button in checkout"
|
|
2947
2969
|
})
|
|
2948
|
-
),
|
|
2970
|
+
), x = b(
|
|
2949
2971
|
() => o({
|
|
2950
2972
|
defaultMessage: "Remove promotion code",
|
|
2951
2973
|
id: "checkout.promotion_code.remove_aria_label",
|
|
2952
2974
|
description: "Aria label for the promotion code remove button in checkout"
|
|
2953
2975
|
})
|
|
2954
|
-
),
|
|
2955
|
-
|
|
2956
|
-
},
|
|
2957
|
-
var
|
|
2958
|
-
const
|
|
2959
|
-
|
|
2960
|
-
},
|
|
2961
|
-
|
|
2962
|
-
},
|
|
2963
|
-
|
|
2964
|
-
},
|
|
2965
|
-
if (!
|
|
2976
|
+
), R = () => {
|
|
2977
|
+
c.value = "";
|
|
2978
|
+
}, Q = () => {
|
|
2979
|
+
var y;
|
|
2980
|
+
const f = (y = N.value) == null ? void 0 : y.querySelector("input");
|
|
2981
|
+
f instanceof HTMLInputElement && f.focus();
|
|
2982
|
+
}, s = () => {
|
|
2983
|
+
l.value && (l.value = !1);
|
|
2984
|
+
}, P = () => {
|
|
2985
|
+
d.value || (l.value = !l.value);
|
|
2986
|
+
}, q = () => {
|
|
2987
|
+
if (!L.value)
|
|
2966
2988
|
return;
|
|
2967
|
-
const
|
|
2968
|
-
a("update:appliedCode",
|
|
2989
|
+
const f = c.value.trim();
|
|
2990
|
+
a("update:appliedCode", f), a("apply", f), m.value = o({
|
|
2969
2991
|
defaultMessage: "Promotion code applied",
|
|
2970
2992
|
id: "checkout.promotion_code.applied_status",
|
|
2971
2993
|
description: "Aria live message when a promotion code is applied in checkout"
|
|
2972
|
-
}),
|
|
2994
|
+
}), l.value = !1;
|
|
2973
2995
|
}, te = () => {
|
|
2974
|
-
a("update:appliedCode", null), a("remove"),
|
|
2996
|
+
a("update:appliedCode", null), a("remove"), m.value = o({
|
|
2975
2997
|
defaultMessage: "Promotion code removed",
|
|
2976
2998
|
id: "checkout.promotion_code.removed_status",
|
|
2977
2999
|
description: "Aria live message when a promotion code is removed in checkout"
|
|
2978
|
-
}),
|
|
2979
|
-
var
|
|
2980
|
-
(
|
|
3000
|
+
}), R(), He(() => {
|
|
3001
|
+
var f;
|
|
3002
|
+
(f = u.value) == null || f.focus();
|
|
2981
3003
|
});
|
|
2982
3004
|
};
|
|
2983
|
-
return
|
|
2984
|
-
if (!
|
|
2985
|
-
|
|
2986
|
-
var
|
|
2987
|
-
(
|
|
3005
|
+
return we(l, (f) => {
|
|
3006
|
+
if (!f) {
|
|
3007
|
+
R(), He(() => {
|
|
3008
|
+
var y;
|
|
3009
|
+
(y = u.value) == null || y.focus();
|
|
2988
3010
|
});
|
|
2989
3011
|
return;
|
|
2990
3012
|
}
|
|
2991
3013
|
He(() => {
|
|
2992
|
-
|
|
3014
|
+
Q();
|
|
2993
3015
|
});
|
|
2994
|
-
}),
|
|
3016
|
+
}), we(
|
|
2995
3017
|
() => n.promotionCode,
|
|
2996
|
-
(
|
|
2997
|
-
|
|
3018
|
+
(f) => {
|
|
3019
|
+
f || R();
|
|
2998
3020
|
}
|
|
2999
|
-
), (
|
|
3000
|
-
|
|
3021
|
+
), (f, y) => (_(), W(_e, null, [
|
|
3022
|
+
d.value ? (_(), O(t(ge), ft({ key: 1 }, f.$attrs, {
|
|
3001
3023
|
"no-border": "",
|
|
3002
3024
|
"no-spacing": "",
|
|
3003
3025
|
"content-background": "none",
|
|
3004
3026
|
class: "relative w-full"
|
|
3005
3027
|
}), {
|
|
3006
3028
|
default: I(() => [
|
|
3007
|
-
|
|
3029
|
+
T("button", {
|
|
3008
3030
|
type: "button",
|
|
3009
3031
|
class: "w-full rounded border border-primary-900 bg-white",
|
|
3010
|
-
"aria-label":
|
|
3032
|
+
"aria-label": x.value,
|
|
3011
3033
|
onClick: te
|
|
3012
3034
|
}, [
|
|
3013
|
-
|
|
3014
|
-
|
|
3035
|
+
T("div", Tn, [
|
|
3036
|
+
T("div", wn, [
|
|
3015
3037
|
E(t(je), { icon: "local_activity" }),
|
|
3016
3038
|
E(t(se), {
|
|
3017
3039
|
variant: "body-sm",
|
|
3018
3040
|
class: "font-semibold"
|
|
3019
3041
|
}, {
|
|
3020
3042
|
default: I(() => [
|
|
3021
|
-
|
|
3043
|
+
F(U(k.value), 1)
|
|
3022
3044
|
]),
|
|
3023
3045
|
_: 1
|
|
3024
3046
|
})
|
|
3025
3047
|
]),
|
|
3026
3048
|
E(t(je), { icon: "close" })
|
|
3027
3049
|
])
|
|
3028
|
-
], 8,
|
|
3050
|
+
], 8, Ln)
|
|
3029
3051
|
]),
|
|
3030
3052
|
_: 1
|
|
3031
|
-
}, 16)) : (
|
|
3053
|
+
}, 16)) : (_(), O(t(ge), ft({ key: 0 }, f.$attrs, {
|
|
3032
3054
|
"no-spacing": "",
|
|
3033
3055
|
class: "relative w-full"
|
|
3034
3056
|
}), {
|
|
3035
3057
|
default: I(() => [
|
|
3036
|
-
|
|
3058
|
+
T("button", {
|
|
3037
3059
|
ref_key: "toggleRef",
|
|
3038
|
-
ref:
|
|
3060
|
+
ref: u,
|
|
3039
3061
|
type: "button",
|
|
3040
3062
|
class: "w-full",
|
|
3041
|
-
"aria-expanded":
|
|
3063
|
+
"aria-expanded": l.value,
|
|
3042
3064
|
"aria-controls": A,
|
|
3043
|
-
"aria-label":
|
|
3044
|
-
onClick:
|
|
3065
|
+
"aria-label": p.value,
|
|
3066
|
+
onClick: P
|
|
3045
3067
|
}, [
|
|
3046
|
-
|
|
3047
|
-
|
|
3068
|
+
T("div", En, [
|
|
3069
|
+
T("div", Cn, [
|
|
3048
3070
|
E(t(je), { icon: "local_activity" }),
|
|
3049
3071
|
E(t(se), {
|
|
3050
3072
|
id: M,
|
|
3051
3073
|
variant: "body-sm"
|
|
3052
3074
|
}, {
|
|
3053
3075
|
default: I(() => [
|
|
3054
|
-
|
|
3076
|
+
F(U(t(o)({
|
|
3055
3077
|
defaultMessage: "Add promotion code",
|
|
3056
3078
|
id: "checkout.promotion_code.add_label",
|
|
3057
3079
|
description: "Label for adding a promotion code in checkout"
|
|
@@ -3061,22 +3083,22 @@ const un = {
|
|
|
3061
3083
|
})
|
|
3062
3084
|
]),
|
|
3063
3085
|
E(t(je), {
|
|
3064
|
-
icon:
|
|
3086
|
+
icon: l.value ? "remove" : "add"
|
|
3065
3087
|
}, null, 8, ["icon"])
|
|
3066
3088
|
])
|
|
3067
|
-
], 8,
|
|
3068
|
-
ti(
|
|
3089
|
+
], 8, Nn),
|
|
3090
|
+
ti(T("div", {
|
|
3069
3091
|
id: A,
|
|
3070
3092
|
ref_key: "panelRef",
|
|
3071
3093
|
ref: N,
|
|
3072
3094
|
role: "region",
|
|
3073
3095
|
"aria-labelledby": M,
|
|
3074
3096
|
class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
|
|
3075
|
-
onKeydown: _t($e(
|
|
3097
|
+
onKeydown: _t($e(s, ["prevent"]), ["esc"])
|
|
3076
3098
|
}, [
|
|
3077
3099
|
E(t(ye), {
|
|
3078
|
-
modelValue:
|
|
3079
|
-
"onUpdate:modelValue":
|
|
3100
|
+
modelValue: c.value,
|
|
3101
|
+
"onUpdate:modelValue": y[0] || (y[0] = (r) => c.value = r),
|
|
3080
3102
|
placeholder: t(o)({
|
|
3081
3103
|
defaultMessage: "Promotion code",
|
|
3082
3104
|
id: "checkout.promotion_code.placeholder",
|
|
@@ -3088,17 +3110,17 @@ const un = {
|
|
|
3088
3110
|
description: "Aria label for promotion code input in checkout"
|
|
3089
3111
|
}),
|
|
3090
3112
|
class: "w-full",
|
|
3091
|
-
onKeydown: _t($e(
|
|
3113
|
+
onKeydown: _t($e(q, ["prevent"]), ["enter"])
|
|
3092
3114
|
}, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
|
|
3093
3115
|
E(t(Ae), {
|
|
3094
3116
|
type: "button",
|
|
3095
|
-
disabled: !
|
|
3096
|
-
"aria-label":
|
|
3097
|
-
"aria-disabled": !
|
|
3098
|
-
onClick:
|
|
3117
|
+
disabled: !L.value,
|
|
3118
|
+
"aria-label": C.value,
|
|
3119
|
+
"aria-disabled": !L.value,
|
|
3120
|
+
onClick: q
|
|
3099
3121
|
}, {
|
|
3100
3122
|
default: I(() => [
|
|
3101
|
-
|
|
3123
|
+
F(U(t(o)({
|
|
3102
3124
|
defaultMessage: "Apply",
|
|
3103
3125
|
id: "checkout.promotion_code.apply_button",
|
|
3104
3126
|
description: "Button label for applying a promotion code in checkout"
|
|
@@ -3106,22 +3128,22 @@ const un = {
|
|
|
3106
3128
|
]),
|
|
3107
3129
|
_: 1
|
|
3108
3130
|
}, 8, ["disabled", "aria-label", "aria-disabled"])
|
|
3109
|
-
], 40,
|
|
3110
|
-
[ii,
|
|
3131
|
+
], 40, xn), [
|
|
3132
|
+
[ii, l.value]
|
|
3111
3133
|
])
|
|
3112
3134
|
]),
|
|
3113
3135
|
_: 1
|
|
3114
3136
|
}, 16)),
|
|
3115
|
-
|
|
3137
|
+
T("span", Sn, U(m.value), 1)
|
|
3116
3138
|
], 64));
|
|
3117
3139
|
}
|
|
3118
|
-
}), kn = { class: "sv-checkout__header" },
|
|
3140
|
+
}), kn = { class: "sv-checkout__header" }, zn = { class: "sv-checkout__payment-methods" }, jn = {
|
|
3119
3141
|
key: 0,
|
|
3120
3142
|
class: "sv-checkout__payment-methods-body"
|
|
3121
|
-
},
|
|
3143
|
+
}, Rn = {
|
|
3122
3144
|
key: 3,
|
|
3123
3145
|
class: "sv-checkout__payment-form"
|
|
3124
|
-
},
|
|
3146
|
+
}, Bn = { class: "sv-checkout__order-summary" }, $n = { class: "flex flex-col gap-2" }, Un = /* @__PURE__ */ ce({
|
|
3125
3147
|
__name: "Checkout",
|
|
3126
3148
|
props: {
|
|
3127
3149
|
configuration: { type: Object }
|
|
@@ -3130,149 +3152,149 @@ const un = {
|
|
|
3130
3152
|
setup(e, { emit: i }) {
|
|
3131
3153
|
var lt, st, ct, ut, dt, pt, mt, gt, yt;
|
|
3132
3154
|
const o = Mt(
|
|
3133
|
-
() => import("./PaymentIntegrationForm-
|
|
3155
|
+
() => import("./PaymentIntegrationForm-CpOZUf-W.mjs")
|
|
3134
3156
|
), n = Mt(
|
|
3135
|
-
() => import("./PlanCustomizationEditor-
|
|
3136
|
-
), a = e,
|
|
3137
|
-
if (N.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((lt =
|
|
3157
|
+
() => import("./PlanCustomizationEditor-BQqkgmzL.mjs")
|
|
3158
|
+
), a = e, l = i, c = b(() => a.configuration), m = V(), u = V(), N = Me(), { $t: v, locale: M } = ve(), { formatTimePeriod: A } = Lt(), d = Li(), { isMobileViewport: L } = St();
|
|
3159
|
+
if (N.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((lt = d.value) == null ? void 0 : lt.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
|
|
3138
3160
|
throw N.error("INVALID_TOKEN", "Invalid token"), Error("Invalid token");
|
|
3139
|
-
|
|
3161
|
+
d.value.status === "REVOKED" && (m.value = {
|
|
3140
3162
|
code: "RESOURCE_REVOKED",
|
|
3141
|
-
message: `Portal url with resource id "${
|
|
3142
|
-
}, N.error("RESOURCE_REVOKED", `Portal url with resource id "${
|
|
3143
|
-
const
|
|
3144
|
-
validatedEmail:
|
|
3145
|
-
validatedCountry:
|
|
3146
|
-
paymentMethodOptions:
|
|
3147
|
-
hasPaymentMethodOptionsError:
|
|
3148
|
-
retryPaymentMethodOptions:
|
|
3149
|
-
subscription:
|
|
3150
|
-
isPaymentMethodsPending:
|
|
3163
|
+
message: `Portal url with resource id "${d.value.id}" is revoked`
|
|
3164
|
+
}, N.error("RESOURCE_REVOKED", `Portal url with resource id "${d.value.id}" is revoked`));
|
|
3165
|
+
const k = (ct = (st = d.value) == null ? void 0 : st.init_pricing_plan_subscription) == null ? void 0 : ct.pricing_plan_subscription_id, p = (dt = (ut = d.value) == null ? void 0 : ut.init_pricing_plan_subscription) == null ? void 0 : dt.success_url, {
|
|
3166
|
+
validatedEmail: C,
|
|
3167
|
+
validatedCountry: x,
|
|
3168
|
+
paymentMethodOptions: R,
|
|
3169
|
+
hasPaymentMethodOptionsError: Q,
|
|
3170
|
+
retryPaymentMethodOptions: s,
|
|
3171
|
+
subscription: P,
|
|
3172
|
+
isPaymentMethodsPending: q,
|
|
3151
3173
|
isInvoicePreviewPending: te,
|
|
3152
|
-
checkoutForm:
|
|
3153
|
-
invoicePreview:
|
|
3154
|
-
invoicePreviewByBillingPeriod:
|
|
3155
|
-
trialInvoicePreview:
|
|
3174
|
+
checkoutForm: f,
|
|
3175
|
+
invoicePreview: y,
|
|
3176
|
+
invoicePreviewByBillingPeriod: r,
|
|
3177
|
+
trialInvoicePreview: g,
|
|
3156
3178
|
trialPeriod: h,
|
|
3157
|
-
authorizationContext:
|
|
3158
|
-
isPaid:
|
|
3179
|
+
authorizationContext: w,
|
|
3180
|
+
isPaid: j,
|
|
3159
3181
|
amount: H,
|
|
3160
|
-
loadInvoicePreview:
|
|
3161
|
-
updateInvoicePreviewOnBillingInformationChange:
|
|
3182
|
+
loadInvoicePreview: Y,
|
|
3183
|
+
updateInvoicePreviewOnBillingInformationChange: G,
|
|
3162
3184
|
saveFormStateForRedirect: ae
|
|
3163
|
-
} =
|
|
3185
|
+
} = xo({
|
|
3164
3186
|
initialCountry: (pt = a.configuration) == null ? void 0 : pt.countryCode,
|
|
3165
3187
|
initialEmail: (mt = a.configuration) == null ? void 0 : mt.email,
|
|
3166
|
-
subscriptionId:
|
|
3188
|
+
subscriptionId: k,
|
|
3167
3189
|
enabledPricingIds: (gt = a.configuration) == null ? void 0 : gt.enabledPricingIds
|
|
3168
|
-
}), Z =
|
|
3190
|
+
}), Z = V(!1), re = async () => {
|
|
3169
3191
|
var D;
|
|
3170
|
-
await
|
|
3192
|
+
await f.validation.value.$validate(), !f.validation.value.$invalid && (Z.value = !0, ae(), (D = u.value) == null || D.submit());
|
|
3171
3193
|
}, ne = () => {
|
|
3172
3194
|
Z.value = !1;
|
|
3173
|
-
},
|
|
3174
|
-
() =>
|
|
3195
|
+
}, $ = async () => (await f.validation.value.$validate(), !f.validation.value.$invalid), ie = b(() => !!g.value), J = b(
|
|
3196
|
+
() => y.value ? Zo(y.value) : !1
|
|
3175
3197
|
), ee = b(
|
|
3176
|
-
() =>
|
|
3198
|
+
() => f.form.value.country && ["US", "CA"].includes(f.form.value.country) || !1
|
|
3177
3199
|
), oe = b({
|
|
3178
|
-
get: () =>
|
|
3200
|
+
get: () => f.form.value.enabledPricingIds ?? [],
|
|
3179
3201
|
set: (D) => {
|
|
3180
|
-
|
|
3202
|
+
f.form.value.enabledPricingIds = D;
|
|
3181
3203
|
}
|
|
3182
3204
|
}), ue = b(
|
|
3183
|
-
() =>
|
|
3184
|
-
pricingPlanScheduleInfos:
|
|
3205
|
+
() => P.value ? Ne({
|
|
3206
|
+
pricingPlanScheduleInfos: P.value.pricing_plan_schedule_infos,
|
|
3185
3207
|
type: "DEFAULT"
|
|
3186
3208
|
}) : void 0
|
|
3187
3209
|
), de = b(() => {
|
|
3188
|
-
var
|
|
3189
|
-
if (!
|
|
3210
|
+
var S, z;
|
|
3211
|
+
if (!P.value)
|
|
3190
3212
|
return;
|
|
3191
|
-
const D = (z = (
|
|
3213
|
+
const D = (z = (S = ue.value) == null ? void 0 : S.pricing_plan_version) == null ? void 0 : z.pricing_currency_settings;
|
|
3192
3214
|
return $t({
|
|
3193
|
-
country:
|
|
3215
|
+
country: f.form.value.country,
|
|
3194
3216
|
pricingCurrencySettings: D,
|
|
3195
|
-
fallbackCurrency:
|
|
3217
|
+
fallbackCurrency: P.value.billing_currency
|
|
3196
3218
|
});
|
|
3197
3219
|
}), pe = b(() => {
|
|
3198
|
-
if (!ue.value || !
|
|
3220
|
+
if (!ue.value || !P.value)
|
|
3199
3221
|
return /* @__PURE__ */ new Set();
|
|
3200
3222
|
const D = mi({
|
|
3201
3223
|
pricingPlanScheduleInfo: ue.value
|
|
3202
|
-
}),
|
|
3203
|
-
return D.forEach((
|
|
3204
|
-
|
|
3224
|
+
}), S = de.value, z = P.value.billing_period, X = /* @__PURE__ */ new Set();
|
|
3225
|
+
return D.forEach((K, me) => {
|
|
3226
|
+
S && K.currency !== S || z && K.billingPeriod && (K.billingPeriod.type !== z.type || K.billingPeriod.value !== z.value) || X.add(me);
|
|
3205
3227
|
}), X;
|
|
3206
3228
|
}), Ee = b({
|
|
3207
3229
|
get: () => {
|
|
3208
|
-
const D =
|
|
3209
|
-
return
|
|
3230
|
+
const D = f.form.value.seatsValues ?? [], S = pe.value;
|
|
3231
|
+
return S.size ? D.filter(({ pricing_item_config_id: z }) => S.has(z)) : D;
|
|
3210
3232
|
},
|
|
3211
3233
|
set: (D) => {
|
|
3212
|
-
const
|
|
3234
|
+
const S = f.form.value.seatsValues ?? [], z = pe.value;
|
|
3213
3235
|
if (!z.size) {
|
|
3214
|
-
|
|
3236
|
+
f.form.value.seatsValues = D;
|
|
3215
3237
|
return;
|
|
3216
3238
|
}
|
|
3217
|
-
const X =
|
|
3218
|
-
({ pricing_item_config_id:
|
|
3239
|
+
const X = S.filter(
|
|
3240
|
+
({ pricing_item_config_id: K }) => !z.has(K)
|
|
3219
3241
|
);
|
|
3220
|
-
|
|
3242
|
+
f.form.value.seatsValues = X.concat(D);
|
|
3221
3243
|
}
|
|
3222
3244
|
}), Ce = b({
|
|
3223
3245
|
get: () => {
|
|
3224
|
-
const D =
|
|
3225
|
-
return
|
|
3246
|
+
const D = f.form.value.unitsValues ?? [], S = pe.value;
|
|
3247
|
+
return S.size ? D.filter(({ pricing_item_config_id: z }) => S.has(z)) : D;
|
|
3226
3248
|
},
|
|
3227
3249
|
set: (D) => {
|
|
3228
|
-
const
|
|
3250
|
+
const S = f.form.value.unitsValues ?? [], z = pe.value;
|
|
3229
3251
|
if (!z.size) {
|
|
3230
|
-
|
|
3252
|
+
f.form.value.unitsValues = D;
|
|
3231
3253
|
return;
|
|
3232
3254
|
}
|
|
3233
|
-
const X =
|
|
3234
|
-
({ pricing_item_config_id:
|
|
3255
|
+
const X = S.filter(
|
|
3256
|
+
({ pricing_item_config_id: K }) => !z.has(K)
|
|
3235
3257
|
);
|
|
3236
|
-
|
|
3258
|
+
f.form.value.unitsValues = X.concat(D);
|
|
3237
3259
|
}
|
|
3238
|
-
}),
|
|
3239
|
-
var D,
|
|
3240
|
-
return
|
|
3260
|
+
}), ke = b(() => {
|
|
3261
|
+
var D, S, z, X, K;
|
|
3262
|
+
return g.value ? v(
|
|
3241
3263
|
{
|
|
3242
3264
|
defaultMessage: "{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",
|
|
3243
3265
|
id: "checkout.agreement.trial",
|
|
3244
3266
|
description: "The agreement for the trial period"
|
|
3245
3267
|
},
|
|
3246
3268
|
{
|
|
3247
|
-
discounted_amount:
|
|
3269
|
+
discounted_amount: g.value.tax_summary.total_amount.quantity === "0.00" ? v({
|
|
3248
3270
|
defaultMessage: "Free",
|
|
3249
3271
|
id: "checkout.agreement.trial.free",
|
|
3250
3272
|
description: "The free amount for the trial period"
|
|
3251
|
-
}) : Ie(
|
|
3273
|
+
}) : Ie(g.value.tax_summary.total_amount),
|
|
3252
3274
|
trial_period: A(h.value, { short: !0 }),
|
|
3253
3275
|
subscription_amount: Ie(
|
|
3254
|
-
((D =
|
|
3276
|
+
((D = y.value) == null ? void 0 : D.tax_summary.total_amount) ?? {
|
|
3255
3277
|
quantity: "0.00",
|
|
3256
3278
|
currency: "EUR"
|
|
3257
3279
|
}
|
|
3258
3280
|
),
|
|
3259
3281
|
billing_period: A(
|
|
3260
|
-
((
|
|
3282
|
+
((S = y.value) == null ? void 0 : S.billing_period) ?? { type: "MONTH", value: 1 },
|
|
3261
3283
|
{ short: !0, singular: !0, hideValueForExactPeriods: !0 }
|
|
3262
3284
|
),
|
|
3263
3285
|
// @ts-expect-error formatjs does not support this type yet
|
|
3264
3286
|
start_date: new Date(Pe.value)
|
|
3265
3287
|
}
|
|
3266
|
-
) :
|
|
3288
|
+
) : v(
|
|
3267
3289
|
{
|
|
3268
3290
|
defaultMessage: "{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.",
|
|
3269
3291
|
id: "checkout.agreement.subscription",
|
|
3270
3292
|
description: "The agreement for the subscription"
|
|
3271
3293
|
},
|
|
3272
3294
|
{
|
|
3273
|
-
subscription_amount: (z =
|
|
3295
|
+
subscription_amount: (z = y.value) != null && z.tax_summary.total_amount ? Ie((X = y.value) == null ? void 0 : X.tax_summary.total_amount) : "",
|
|
3274
3296
|
billing_period: A(
|
|
3275
|
-
((
|
|
3297
|
+
((K = y.value) == null ? void 0 : K.billing_period) ?? { type: "MONTH", value: 1 },
|
|
3276
3298
|
{ short: !0, singular: !0, hideValueForExactPeriods: !0 }
|
|
3277
3299
|
),
|
|
3278
3300
|
// @ts-expect-error formatjs does not support this type yet
|
|
@@ -3280,12 +3302,12 @@ const un = {
|
|
|
3280
3302
|
}
|
|
3281
3303
|
);
|
|
3282
3304
|
}), xe = b(() => {
|
|
3283
|
-
var
|
|
3284
|
-
if (!
|
|
3305
|
+
var S;
|
|
3306
|
+
if (!y.value)
|
|
3285
3307
|
return;
|
|
3286
3308
|
const D = Ai({
|
|
3287
|
-
subscription:
|
|
3288
|
-
fallback:
|
|
3309
|
+
subscription: P.value,
|
|
3310
|
+
fallback: v({
|
|
3289
3311
|
defaultMessage: "Subscription",
|
|
3290
3312
|
description: "The fallback name for when no subscription name can be determined",
|
|
3291
3313
|
id: "customer_overview.subscriptions_block.fallback_subscription_name"
|
|
@@ -3294,53 +3316,53 @@ const un = {
|
|
|
3294
3316
|
return {
|
|
3295
3317
|
description: D,
|
|
3296
3318
|
managementURL: "https://www.solvimon.com/account/billing",
|
|
3297
|
-
agreement:
|
|
3298
|
-
...
|
|
3319
|
+
agreement: ke.value,
|
|
3320
|
+
...g.value && h.value && {
|
|
3299
3321
|
trial: {
|
|
3300
|
-
label:
|
|
3322
|
+
label: v({
|
|
3301
3323
|
defaultMessage: "Trial",
|
|
3302
3324
|
id: "checkout.trial.label",
|
|
3303
3325
|
description: "The label of the trial"
|
|
3304
3326
|
}),
|
|
3305
|
-
amount:
|
|
3327
|
+
amount: g.value.tax_summary.total_amount,
|
|
3306
3328
|
startDate: Ye.value ? new Date(Ye.value) : void 0,
|
|
3307
3329
|
endDate: ot.value ? new Date(ot.value) : void 0
|
|
3308
3330
|
}
|
|
3309
3331
|
},
|
|
3310
3332
|
regular: {
|
|
3311
3333
|
label: D,
|
|
3312
|
-
amount:
|
|
3334
|
+
amount: y.value.tax_summary.total_amount,
|
|
3313
3335
|
startDate: Pe.value ? new Date(Pe.value) : void 0,
|
|
3314
|
-
interval: ((
|
|
3336
|
+
interval: ((S = P.value) == null ? void 0 : S.billing_period) ?? { type: "MONTH", value: 1 }
|
|
3315
3337
|
}
|
|
3316
3338
|
};
|
|
3317
3339
|
}), le = (D) => Ge(D), Yt = (D) => {
|
|
3318
|
-
const { country:
|
|
3319
|
-
|
|
3340
|
+
const { country: S, ...z } = D;
|
|
3341
|
+
f.updateInitialState({
|
|
3320
3342
|
...z,
|
|
3321
|
-
...
|
|
3343
|
+
...S && le(S) ? { country: S } : {}
|
|
3322
3344
|
});
|
|
3323
|
-
}, Kt = b(() => !(
|
|
3324
|
-
var z, X,
|
|
3325
|
-
const D = (X = (z =
|
|
3326
|
-
return D != null && D.start_at ? new Date(D.start_at) :
|
|
3327
|
-
}), Ke = b(() => Pi(
|
|
3328
|
-
var z, X,
|
|
3329
|
-
const D = (X = (z =
|
|
3330
|
-
return D != null && D.end_at ? new Date(D.end_at) :
|
|
3345
|
+
}, Kt = b(() => !(C && x)), Ye = b(() => {
|
|
3346
|
+
var z, X, K;
|
|
3347
|
+
const D = (X = (z = g.value) == null ? void 0 : z.periods) == null ? void 0 : X[0], S = (K = Ke.value) == null ? void 0 : K.trialStartDate;
|
|
3348
|
+
return D != null && D.start_at ? new Date(D.start_at) : S;
|
|
3349
|
+
}), Ke = b(() => Pi(P.value)), ot = b(() => {
|
|
3350
|
+
var z, X, K;
|
|
3351
|
+
const D = (X = (z = g.value) == null ? void 0 : z.periods) == null ? void 0 : X[0], S = (K = Ke.value) == null ? void 0 : K.trialEndDate;
|
|
3352
|
+
return D != null && D.end_at ? new Date(D.end_at) : S;
|
|
3331
3353
|
}), Pe = b(() => {
|
|
3332
|
-
var z, X,
|
|
3333
|
-
const D = (X = (z =
|
|
3334
|
-
return D != null && D.start_at ? new Date(D.start_at) :
|
|
3335
|
-
}), Qt = b(() => !!(
|
|
3354
|
+
var z, X, K;
|
|
3355
|
+
const D = (X = (z = y.value) == null ? void 0 : z.periods) == null ? void 0 : X[0], S = (K = Ke.value) == null ? void 0 : K.subscriptionStartDate;
|
|
3356
|
+
return D != null && D.start_at ? new Date(D.start_at) : S;
|
|
3357
|
+
}), Qt = b(() => !!(f.form.value.seatsValues && f.form.value.seatsValues.length > 0 || f.form.value.unitsValues && f.form.value.unitsValues.length > 0 || P.value && bo(P.value) || P.value && Io(P.value))), Le = V(null), {
|
|
3336
3358
|
applyPromotionCode: nt,
|
|
3337
3359
|
removePromotionCode: Ht,
|
|
3338
3360
|
isPromotionCodePending: Zt,
|
|
3339
3361
|
promotionCodeErrorMessage: Qe
|
|
3340
|
-
} =
|
|
3341
|
-
checkoutForm:
|
|
3342
|
-
updateInvoicePreviewOnBillingInformationChange:
|
|
3343
|
-
formatErrorMessage: ({ action: D }) =>
|
|
3362
|
+
} = Lo({
|
|
3363
|
+
checkoutForm: f,
|
|
3364
|
+
updateInvoicePreviewOnBillingInformationChange: G,
|
|
3365
|
+
formatErrorMessage: ({ action: D }) => v(D === "apply" ? {
|
|
3344
3366
|
defaultMessage: "Promotion code could not be applied. Please try again.",
|
|
3345
3367
|
id: "checkout.promotion_code.apply_failed",
|
|
3346
3368
|
description: "Error message when applying a promotion code in checkout failed"
|
|
@@ -3357,59 +3379,59 @@ const un = {
|
|
|
3357
3379
|
}
|
|
3358
3380
|
});
|
|
3359
3381
|
wo({
|
|
3360
|
-
subscription:
|
|
3382
|
+
subscription: P,
|
|
3361
3383
|
promotionCode: (yt = a.configuration) == null ? void 0 : yt.couponCode,
|
|
3362
3384
|
appliedPromotionCode: Le,
|
|
3363
3385
|
applyPromotionCode: nt
|
|
3364
3386
|
});
|
|
3365
3387
|
const at = () => {
|
|
3366
|
-
|
|
3388
|
+
p && Ni(p);
|
|
3367
3389
|
}, Xt = b(
|
|
3368
3390
|
() => {
|
|
3369
3391
|
var D;
|
|
3370
|
-
return !((D = a.configuration) != null && D.onPaymentSuccess) && !!
|
|
3392
|
+
return !((D = a.configuration) != null && D.onPaymentSuccess) && !!p;
|
|
3371
3393
|
}
|
|
3372
3394
|
), Wt = () => {
|
|
3373
3395
|
var D;
|
|
3374
|
-
if (
|
|
3396
|
+
if (j.value = !0, Qe.value = null, (D = a.configuration) != null && D.onPaymentSuccess) {
|
|
3375
3397
|
a.configuration.onPaymentSuccess();
|
|
3376
3398
|
return;
|
|
3377
3399
|
}
|
|
3378
|
-
if (
|
|
3400
|
+
if (p) {
|
|
3379
3401
|
at();
|
|
3380
3402
|
return;
|
|
3381
3403
|
}
|
|
3382
3404
|
}, rt = (D) => {
|
|
3383
|
-
|
|
3384
|
-
...
|
|
3405
|
+
P.value && (P.value = {
|
|
3406
|
+
...P.value,
|
|
3385
3407
|
billing_period: D
|
|
3386
|
-
},
|
|
3408
|
+
}, Y());
|
|
3387
3409
|
};
|
|
3388
|
-
return
|
|
3389
|
-
|
|
3390
|
-
}), (D,
|
|
3410
|
+
return Oe(() => {
|
|
3411
|
+
l("ready");
|
|
3412
|
+
}), (D, S) => m.value ? (_(), O(qo, {
|
|
3391
3413
|
key: 0,
|
|
3392
3414
|
class: "sv-checkout sv-root sv-screen sv-checkout--error"
|
|
3393
|
-
})) : (
|
|
3415
|
+
})) : (_(), O(t(Qi), {
|
|
3394
3416
|
key: 1,
|
|
3395
|
-
class: be(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(
|
|
3417
|
+
class: be(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(j) }])
|
|
3396
3418
|
}, {
|
|
3397
3419
|
header: I(() => [
|
|
3398
|
-
|
|
3420
|
+
T("div", kn, [
|
|
3399
3421
|
E(fe, { class: "min-h-[52px] w-96" }, {
|
|
3400
3422
|
default: I(() => {
|
|
3401
|
-
var z, X,
|
|
3423
|
+
var z, X, K;
|
|
3402
3424
|
return [
|
|
3403
|
-
t(
|
|
3425
|
+
t(y) && t(P) && Pe.value ? (_(), O(Ho, {
|
|
3404
3426
|
key: 0,
|
|
3405
3427
|
class: "sv-checkout__title",
|
|
3406
3428
|
"trial-start-date": Ye.value,
|
|
3407
3429
|
"trial-period": t(h),
|
|
3408
3430
|
"subscription-start-date": Pe.value,
|
|
3409
|
-
"subscription-name": ((z = t(
|
|
3410
|
-
amount: (X = t(
|
|
3411
|
-
"billing-period": (
|
|
3412
|
-
"country-code": t(
|
|
3431
|
+
"subscription-name": ((z = t(P)) == null ? void 0 : z.name) ?? "",
|
|
3432
|
+
amount: (X = t(y)) == null ? void 0 : X.invoice_amount_including_tax,
|
|
3433
|
+
"billing-period": (K = t(P)) == null ? void 0 : K.billing_period,
|
|
3434
|
+
"country-code": t(f).form.value.country
|
|
3413
3435
|
}, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : B("", !0)
|
|
3414
3436
|
];
|
|
3415
3437
|
}),
|
|
@@ -3418,82 +3440,82 @@ const un = {
|
|
|
3418
3440
|
])
|
|
3419
3441
|
]),
|
|
3420
3442
|
content: I(() => {
|
|
3421
|
-
var z, X,
|
|
3443
|
+
var z, X, K;
|
|
3422
3444
|
return [
|
|
3423
|
-
t(
|
|
3445
|
+
t(j) ? (_(), O(Jo, {
|
|
3424
3446
|
key: 0,
|
|
3425
3447
|
class: "sv-checkout__completed-payment",
|
|
3426
3448
|
onContinueToMerchant: at
|
|
3427
|
-
})) : (
|
|
3428
|
-
t(
|
|
3449
|
+
})) : (_(), W(_e, { key: 1 }, [
|
|
3450
|
+
t(P) && t(L) ? (_(), O(xt, {
|
|
3429
3451
|
key: 0,
|
|
3430
3452
|
class: "sv-checkout__mobile-order-summary",
|
|
3431
|
-
subscription: t(
|
|
3432
|
-
invoice: t(
|
|
3433
|
-
"invoice-preview-by-billing-period": t(
|
|
3434
|
-
"trial-invoice": t(
|
|
3453
|
+
subscription: t(P),
|
|
3454
|
+
invoice: t(y),
|
|
3455
|
+
"invoice-preview-by-billing-period": t(r),
|
|
3456
|
+
"trial-invoice": t(g),
|
|
3435
3457
|
"enabled-pricing-ids": oe.value,
|
|
3436
3458
|
"trial-period": t(h),
|
|
3437
|
-
avatar: (z =
|
|
3438
|
-
"is-paid": t(
|
|
3439
|
-
"is-usage-based":
|
|
3440
|
-
"is-preview-and-payment-methods-pending": t(
|
|
3441
|
-
"country-code": t(
|
|
3459
|
+
avatar: (z = c.value) == null ? void 0 : z.avatar,
|
|
3460
|
+
"is-paid": t(j),
|
|
3461
|
+
"is-usage-based": J.value,
|
|
3462
|
+
"is-preview-and-payment-methods-pending": t(q) || t(te),
|
|
3463
|
+
"country-code": t(f).form.value.country,
|
|
3442
3464
|
collapsible: "collapsed",
|
|
3443
3465
|
variant: "products-inline",
|
|
3444
3466
|
onBillingPeriodChange: rt
|
|
3445
3467
|
}, 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"])) : B("", !0),
|
|
3446
|
-
Qt.value && t(
|
|
3468
|
+
Qt.value && t(P) ? (_(), O(t(n), {
|
|
3447
3469
|
key: 1,
|
|
3448
3470
|
"seats-values": Ee.value,
|
|
3449
|
-
"onUpdate:seatsValues":
|
|
3471
|
+
"onUpdate:seatsValues": S[0] || (S[0] = (me) => Ee.value = me),
|
|
3450
3472
|
"units-values": Ce.value,
|
|
3451
|
-
"onUpdate:unitsValues":
|
|
3473
|
+
"onUpdate:unitsValues": S[1] || (S[1] = (me) => Ce.value = me),
|
|
3452
3474
|
"enabled-pricing-ids": oe.value,
|
|
3453
|
-
"onUpdate:enabledPricingIds":
|
|
3475
|
+
"onUpdate:enabledPricingIds": S[2] || (S[2] = (me) => oe.value = me),
|
|
3454
3476
|
class: "sv-checkout__plan-customization",
|
|
3455
|
-
subscription: t(
|
|
3456
|
-
"initial-seats-values": (X = t(
|
|
3457
|
-
"initial-units-values": (
|
|
3458
|
-
"billing-period": t(
|
|
3477
|
+
subscription: t(P),
|
|
3478
|
+
"initial-seats-values": (X = t(f).initialState) == null ? void 0 : X.value.seatsValues,
|
|
3479
|
+
"initial-units-values": (K = t(f).initialState) == null ? void 0 : K.value.unitsValues,
|
|
3480
|
+
"billing-period": t(P).billing_period,
|
|
3459
3481
|
currency: de.value
|
|
3460
3482
|
}, null, 8, ["seats-values", "units-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "initial-units-values", "billing-period", "currency"])) : B("", !0),
|
|
3461
|
-
t(
|
|
3483
|
+
t(f).form.value.country && t(H) && xe.value ? (_(), O(Dn, {
|
|
3462
3484
|
key: 2,
|
|
3463
3485
|
class: "sv-checkout__express-payment-methods",
|
|
3464
3486
|
amount: t(H),
|
|
3465
|
-
"country-code": t(
|
|
3487
|
+
"country-code": t(f).form.value.country,
|
|
3466
3488
|
locale: t(M),
|
|
3467
|
-
"payment-methods-options-response": t(
|
|
3489
|
+
"payment-methods-options-response": t(R) ?? [],
|
|
3468
3490
|
"billing-information": xe.value,
|
|
3469
|
-
"on-billing-information-change": t(
|
|
3491
|
+
"on-billing-information-change": t(G),
|
|
3470
3492
|
onUpdateBillingInformation: Yt
|
|
3471
3493
|
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : B("", !0),
|
|
3472
|
-
E(
|
|
3473
|
-
modelValue: t(
|
|
3474
|
-
"onUpdate:modelValue":
|
|
3494
|
+
E(Go, {
|
|
3495
|
+
modelValue: t(f).form.value,
|
|
3496
|
+
"onUpdate:modelValue": S[3] || (S[3] = (me) => t(f).form.value = me),
|
|
3475
3497
|
class: "sv-checkout__customer-form",
|
|
3476
|
-
validation: t(
|
|
3477
|
-
"read-only-email": t(
|
|
3478
|
-
"show-customer-info-on-top": Kt.value || t(
|
|
3498
|
+
validation: t(f).validation,
|
|
3499
|
+
"read-only-email": t(C),
|
|
3500
|
+
"show-customer-info-on-top": Kt.value || t(j),
|
|
3479
3501
|
"is-billing-information-mandatory": ee.value,
|
|
3480
|
-
"get-is-field-required": t(
|
|
3481
|
-
"read-only": t(
|
|
3502
|
+
"get-is-field-required": t(f).getIsFieldRequired,
|
|
3503
|
+
"read-only": t(j)
|
|
3482
3504
|
}, null, 8, ["modelValue", "validation", "read-only-email", "show-customer-info-on-top", "is-billing-information-mandatory", "get-is-field-required", "read-only"]),
|
|
3483
|
-
|
|
3505
|
+
T("div", zn, [
|
|
3484
3506
|
E(fe, {
|
|
3485
3507
|
variant: "section",
|
|
3486
3508
|
class: "min-h-[130px]"
|
|
3487
3509
|
}, {
|
|
3488
3510
|
default: I(() => [
|
|
3489
|
-
!t(
|
|
3511
|
+
!t(q) || t(q) && t(R).length > 0 ? (_(), W("div", jn, [
|
|
3490
3512
|
E(t(se), {
|
|
3491
3513
|
variant: "heading-3",
|
|
3492
3514
|
tag: "h2",
|
|
3493
3515
|
class: "sv-checkout__payment-methods-title mb-2"
|
|
3494
3516
|
}, {
|
|
3495
3517
|
default: I(() => [
|
|
3496
|
-
|
|
3518
|
+
F(U(t(v)({
|
|
3497
3519
|
defaultMessage: "Payment method",
|
|
3498
3520
|
id: "checkout.payment_method_block.title",
|
|
3499
3521
|
description: "The title of the payment method block in the checkout form"
|
|
@@ -3501,20 +3523,20 @@ const un = {
|
|
|
3501
3523
|
]),
|
|
3502
3524
|
_: 1
|
|
3503
3525
|
}),
|
|
3504
|
-
t(
|
|
3526
|
+
t(f).form.value.country ? t(Q) ? (_(), O(Ze, {
|
|
3505
3527
|
key: 1,
|
|
3506
3528
|
class: "sv-checkout__payment-methods-error",
|
|
3507
3529
|
icon: "error"
|
|
3508
3530
|
}, {
|
|
3509
3531
|
title: I(() => [
|
|
3510
|
-
|
|
3532
|
+
F(U(t(v)({
|
|
3511
3533
|
defaultMessage: "Could not load payment methods",
|
|
3512
3534
|
id: "checkout.payment_method_block.load_failed_title",
|
|
3513
3535
|
description: "The title shown when the payment methods failed to load"
|
|
3514
3536
|
})), 1)
|
|
3515
3537
|
]),
|
|
3516
3538
|
message: I(() => [
|
|
3517
|
-
|
|
3539
|
+
F(U(t(v)({
|
|
3518
3540
|
defaultMessage: "Check your connection and try again.",
|
|
3519
3541
|
id: "checkout.payment_method_block.load_failed_message",
|
|
3520
3542
|
description: "The message shown when the payment methods failed to load"
|
|
@@ -3526,10 +3548,10 @@ const un = {
|
|
|
3526
3548
|
intent: "secondary",
|
|
3527
3549
|
size: "sm",
|
|
3528
3550
|
class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
|
|
3529
|
-
onClick: t(
|
|
3551
|
+
onClick: t(s)
|
|
3530
3552
|
}, {
|
|
3531
3553
|
default: I(() => [
|
|
3532
|
-
|
|
3554
|
+
F(U(t(v)({
|
|
3533
3555
|
defaultMessage: "Try again",
|
|
3534
3556
|
id: "checkout.payment_method_block.load_failed_retry_button.label",
|
|
3535
3557
|
description: "The label of the button that loads the payment methods again"
|
|
@@ -3539,54 +3561,54 @@ const un = {
|
|
|
3539
3561
|
}, 8, ["onClick"])
|
|
3540
3562
|
]),
|
|
3541
3563
|
_: 1
|
|
3542
|
-
})) : t(
|
|
3564
|
+
})) : t(R).length === 0 ? (_(), O(Ze, {
|
|
3543
3565
|
key: 2,
|
|
3544
3566
|
class: "sv-checkout__payment-methods-empty",
|
|
3545
3567
|
icon: "credit_card_off"
|
|
3546
3568
|
}, {
|
|
3547
3569
|
title: I(() => [
|
|
3548
|
-
|
|
3570
|
+
F(U(t(v)({
|
|
3549
3571
|
defaultMessage: "No payment methods available",
|
|
3550
3572
|
id: "checkout.payment_method_block.no_payment_methods_available_title",
|
|
3551
3573
|
description: "The title shown when there are no available payment methods"
|
|
3552
3574
|
})), 1)
|
|
3553
3575
|
]),
|
|
3554
3576
|
_: 1
|
|
3555
|
-
})) : t(H) && t(
|
|
3556
|
-
|
|
3577
|
+
})) : t(H) && t(f).form.value.country ? (_(), W("div", Rn, [
|
|
3578
|
+
T("div", {
|
|
3557
3579
|
class: be({ "pointer-events-none opacity-60": Z.value })
|
|
3558
3580
|
}, [
|
|
3559
3581
|
E(t(o), {
|
|
3560
3582
|
ref_key: "paymentIntegrationFormRef",
|
|
3561
|
-
ref:
|
|
3562
|
-
"country-code": t(
|
|
3563
|
-
context: t(
|
|
3583
|
+
ref: u,
|
|
3584
|
+
"country-code": t(f).form.value.country,
|
|
3585
|
+
context: t(w),
|
|
3564
3586
|
amount: t(H),
|
|
3565
|
-
email: t(
|
|
3587
|
+
email: t(f).form.value.email,
|
|
3566
3588
|
variant: "AUTHORIZE",
|
|
3567
|
-
"payment-method-options": t(
|
|
3568
|
-
"validate-on-submit":
|
|
3589
|
+
"payment-method-options": t(R) ?? [],
|
|
3590
|
+
"validate-on-submit": $,
|
|
3569
3591
|
"redirects-on-success": Xt.value,
|
|
3570
3592
|
"force-store-payment-method": "",
|
|
3571
3593
|
onPaymentSuccess: Wt,
|
|
3572
3594
|
onPaymentFailed: ne,
|
|
3573
|
-
onReady:
|
|
3595
|
+
onReady: S[4] || (S[4] = (me) => l("ready"))
|
|
3574
3596
|
}, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success"])
|
|
3575
3597
|
], 2)
|
|
3576
|
-
])) : B("", !0) : (
|
|
3598
|
+
])) : B("", !0) : (_(), O(Ze, {
|
|
3577
3599
|
key: 0,
|
|
3578
3600
|
class: "sv-checkout__payment-methods-empty",
|
|
3579
3601
|
icon: "captive_portal"
|
|
3580
3602
|
}, {
|
|
3581
3603
|
title: I(() => [
|
|
3582
|
-
|
|
3604
|
+
F(U(t(v)({
|
|
3583
3605
|
defaultMessage: "Select your billing country",
|
|
3584
3606
|
id: "checkout.payment_method_block.no_country_selected_title",
|
|
3585
3607
|
description: "The title shown when no country is selected"
|
|
3586
3608
|
})), 1)
|
|
3587
3609
|
]),
|
|
3588
3610
|
message: I(() => [
|
|
3589
|
-
|
|
3611
|
+
F(U(t(v)({
|
|
3590
3612
|
defaultMessage: "Payment methods will be shown after you select the billing country.",
|
|
3591
3613
|
id: "checkout.payment_method_block.no_country_selected_message",
|
|
3592
3614
|
description: "The message shown when no country is selected"
|
|
@@ -3603,7 +3625,7 @@ const un = {
|
|
|
3603
3625
|
];
|
|
3604
3626
|
}),
|
|
3605
3627
|
aside: I(() => [
|
|
3606
|
-
|
|
3628
|
+
T("div", Bn, [
|
|
3607
3629
|
E(fe, {
|
|
3608
3630
|
variant: "section",
|
|
3609
3631
|
class: "min-h-[220px]"
|
|
@@ -3611,19 +3633,19 @@ const un = {
|
|
|
3611
3633
|
default: I(() => {
|
|
3612
3634
|
var z;
|
|
3613
3635
|
return [
|
|
3614
|
-
t(
|
|
3636
|
+
t(P) && t(y) ? (_(), O(xt, {
|
|
3615
3637
|
key: 0,
|
|
3616
|
-
subscription: t(
|
|
3617
|
-
invoice: t(
|
|
3618
|
-
"invoice-preview-by-billing-period": t(
|
|
3619
|
-
"trial-invoice": t(
|
|
3638
|
+
subscription: t(P),
|
|
3639
|
+
invoice: t(y),
|
|
3640
|
+
"invoice-preview-by-billing-period": t(r),
|
|
3641
|
+
"trial-invoice": t(g),
|
|
3620
3642
|
"enabled-pricing-ids": oe.value,
|
|
3621
3643
|
"trial-period": t(h),
|
|
3622
|
-
"country-code": t(
|
|
3623
|
-
avatar: (z =
|
|
3624
|
-
"is-paid": t(
|
|
3625
|
-
"is-usage-based":
|
|
3626
|
-
"is-preview-and-payment-methods-pending": t(
|
|
3644
|
+
"country-code": t(f).form.value.country,
|
|
3645
|
+
avatar: (z = c.value) == null ? void 0 : z.avatar,
|
|
3646
|
+
"is-paid": t(j),
|
|
3647
|
+
"is-usage-based": J.value,
|
|
3648
|
+
"is-preview-and-payment-methods-pending": t(q) || t(te),
|
|
3627
3649
|
onBillingPeriodChange: rt
|
|
3628
3650
|
}, 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"])) : B("", !0)
|
|
3629
3651
|
];
|
|
@@ -3631,37 +3653,37 @@ const un = {
|
|
|
3631
3653
|
_: 1
|
|
3632
3654
|
})
|
|
3633
3655
|
]),
|
|
3634
|
-
t(
|
|
3635
|
-
E(
|
|
3656
|
+
t(j) ? B("", !0) : (_(), W(_e, { key: 0 }, [
|
|
3657
|
+
E(On, {
|
|
3636
3658
|
class: "sv-checkout__promotion-code",
|
|
3637
3659
|
"promotion-code": Le.value,
|
|
3638
|
-
"onUpdate:appliedCode":
|
|
3660
|
+
"onUpdate:appliedCode": S[5] || (S[5] = (z) => Le.value = z),
|
|
3639
3661
|
onRemove: t(Ht),
|
|
3640
3662
|
onApply: t(nt)
|
|
3641
3663
|
}, null, 8, ["promotion-code", "onRemove", "onApply"]),
|
|
3642
|
-
t(Qe) ? (
|
|
3664
|
+
t(Qe) ? (_(), O(t(ri), {
|
|
3643
3665
|
key: 0,
|
|
3644
3666
|
class: "sv-checkout__promotion-error mt-2",
|
|
3645
3667
|
title: t(Qe)
|
|
3646
3668
|
}, null, 8, ["title"])) : B("", !0),
|
|
3647
|
-
|
|
3669
|
+
T("div", $n, [
|
|
3648
3670
|
E(fe, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
|
|
3649
3671
|
default: I(() => [
|
|
3650
|
-
t(
|
|
3672
|
+
t(y) ? (_(), O(t(Ae), {
|
|
3651
3673
|
key: 0,
|
|
3652
3674
|
type: "button",
|
|
3653
3675
|
size: "lg",
|
|
3654
3676
|
class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
|
|
3655
|
-
disabled: t(Zt) || t(
|
|
3677
|
+
disabled: t(Zt) || t(R).length === 0 || Z.value,
|
|
3656
3678
|
loading: Z.value,
|
|
3657
3679
|
onClick: re
|
|
3658
3680
|
}, {
|
|
3659
3681
|
default: I(() => [
|
|
3660
|
-
|
|
3682
|
+
F(U(ie.value ? t(v)({
|
|
3661
3683
|
defaultMessage: "Start trial",
|
|
3662
3684
|
id: "checkout.pay_and_subscribe_button_trial.label",
|
|
3663
3685
|
description: "The label of the start trial button in the checkout form"
|
|
3664
|
-
}) : t(
|
|
3686
|
+
}) : t(v)({
|
|
3665
3687
|
defaultMessage: "Pay and subscribe",
|
|
3666
3688
|
id: "checkout.pay_and_subscribe_button.label",
|
|
3667
3689
|
description: "The label of the pay and subscribe button in the checkout form"
|
|
@@ -3672,14 +3694,14 @@ const un = {
|
|
|
3672
3694
|
]),
|
|
3673
3695
|
_: 1
|
|
3674
3696
|
}),
|
|
3675
|
-
E(Vi, { "payment-method-options": t(
|
|
3697
|
+
E(Vi, { "payment-method-options": t(R) }, null, 8, ["payment-method-options"])
|
|
3676
3698
|
])
|
|
3677
3699
|
], 64))
|
|
3678
3700
|
]),
|
|
3679
3701
|
_: 1
|
|
3680
3702
|
}, 8, ["class"]));
|
|
3681
3703
|
}
|
|
3682
|
-
}),
|
|
3704
|
+
}), Vn = /* @__PURE__ */ ce({
|
|
3683
3705
|
__name: "Checkout.entry",
|
|
3684
3706
|
props: {
|
|
3685
3707
|
environment: { type: String },
|
|
@@ -3700,31 +3722,31 @@ const un = {
|
|
|
3700
3722
|
},
|
|
3701
3723
|
emits: ["error", "ready"],
|
|
3702
3724
|
setup(e, { emit: i }) {
|
|
3703
|
-
var
|
|
3704
|
-
const o =
|
|
3705
|
-
return (
|
|
3706
|
-
entry:
|
|
3725
|
+
var c;
|
|
3726
|
+
const o = Zi("checkout"), n = e, a = i, l = ((c = n.configuration) == null ? void 0 : c.couponCode) ?? Te("coupon_code") ?? void 0;
|
|
3727
|
+
return (m, u) => (_(), O(t(ni), {
|
|
3728
|
+
entry: m.$props,
|
|
3707
3729
|
"component-name": t(o),
|
|
3708
3730
|
"allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
|
|
3709
|
-
onError:
|
|
3731
|
+
onError: u[1] || (u[1] = (N) => m.$emit("error", N))
|
|
3710
3732
|
}, {
|
|
3711
3733
|
default: I(() => {
|
|
3712
|
-
var N,
|
|
3734
|
+
var N, v, M, A, d;
|
|
3713
3735
|
return [
|
|
3714
|
-
E(
|
|
3736
|
+
E(Un, {
|
|
3715
3737
|
configuration: {
|
|
3716
|
-
avatar: (
|
|
3738
|
+
avatar: (v = (N = e.branding) == null ? void 0 : N.emblem) == null ? void 0 : v.public_url,
|
|
3717
3739
|
email: (M = e.configuration) == null ? void 0 : M.email,
|
|
3718
3740
|
countryCode: (A = e.configuration) == null ? void 0 : A.countryCode,
|
|
3719
|
-
enabledPricingIds: (
|
|
3720
|
-
couponCode: t(
|
|
3741
|
+
enabledPricingIds: (d = e.configuration) == null ? void 0 : d.enabledPricingIds,
|
|
3742
|
+
couponCode: t(l)
|
|
3721
3743
|
},
|
|
3722
|
-
onReady:
|
|
3744
|
+
onReady: u[0] || (u[0] = (L) => a("ready"))
|
|
3723
3745
|
}, Je({ _: 2 }, [
|
|
3724
|
-
|
|
3746
|
+
m.$slots["terms-and-conditions"] ? {
|
|
3725
3747
|
name: "terms-and-conditions",
|
|
3726
3748
|
fn: I(() => [
|
|
3727
|
-
We(
|
|
3749
|
+
We(m.$slots, "terms-and-conditions")
|
|
3728
3750
|
]),
|
|
3729
3751
|
key: "0"
|
|
3730
3752
|
} : void 0
|
|
@@ -3734,14 +3756,14 @@ const un = {
|
|
|
3734
3756
|
_: 3
|
|
3735
3757
|
}, 8, ["entry", "component-name"]));
|
|
3736
3758
|
}
|
|
3737
|
-
}), { define:
|
|
3738
|
-
|
|
3759
|
+
}), { define: Sa } = ai(
|
|
3760
|
+
Vn,
|
|
3739
3761
|
"checkout"
|
|
3740
3762
|
);
|
|
3741
3763
|
export {
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3764
|
+
Ao as F,
|
|
3765
|
+
an as _,
|
|
3766
|
+
No as a,
|
|
3767
|
+
Sa as d,
|
|
3768
|
+
wa as g
|
|
3747
3769
|
};
|