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