@solvimon/solvimon-web 0.1.0-alpha.2 → 0.1.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +244 -49
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs +223 -0
- package/dist/Amount.vue.es-DExaYBqm.js +1 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/Avatar.vue.es-CJw5z7Uu.js +1 -0
- package/dist/Avatar.vue.es-ChcLSNaN.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs +60 -0
- package/dist/Button.vue.es-BWl37nzm.js +1 -0
- package/dist/Button.vue.es-VQCd3V3C.mjs +368 -0
- package/dist/Checkout.entry.ce-BTVuGyNq.js +1 -0
- package/dist/Checkout.entry.ce-DRHqEFd7.mjs +3674 -0
- package/dist/Chip.vue.es-CXG8o1Qf.mjs +114 -0
- package/dist/Chip.vue.es-DUgjuRWm.js +1 -0
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +93 -0
- package/dist/Comparators.vue.es-DmkxV0gb.js +1 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/ContentWithAsideLayout-C6yMIVJF.js +1 -0
- package/dist/ContextMenu.vue.es-BllxeDTt.js +1 -0
- package/dist/ContextMenu.vue.es-C6TKlSXs.mjs +573 -0
- package/dist/CustomerBillingInformation.vue.es-CKQH_ds0.mjs +153 -0
- package/dist/CustomerBillingInformation.vue.es-CMCZ-lIM.js +1 -0
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs +140 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs +2700 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/Divider.vue.es-UwnWvUTl.js +1 -0
- package/dist/DividerText.vue.es-BBdydUy_.js +1 -0
- package/dist/DividerText.vue.es-Bomiy4if.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs +335 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js +1 -0
- package/dist/ErrorNotification.vue.es-0ZC_DozN.js +1 -0
- package/dist/ErrorNotification.vue.es-C6ngWAVU.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/Expand.vue.es-BtM0EZEr.js +1 -0
- package/dist/FormMessage.vue.es-dqATjC2N.js +1 -0
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +29 -0
- package/dist/IconButton.vue.es-DAR7e8NA.mjs +198 -0
- package/dist/IconButton.vue.es-DGLIdHkR.js +1 -0
- package/dist/IconTitle.vue.es-Bbusc4wK.mjs +103 -0
- package/dist/IconTitle.vue.es-D-q6w2E-.js +1 -0
- package/dist/Input.vue.es-AY1c0Rui.mjs +235 -0
- package/dist/Input.vue.es-BN95nPBw.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs +92 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs +41 -0
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +1 -0
- package/dist/InvoiceSummary.vue.es-Bs5c2Ovx.mjs +2598 -0
- package/dist/Modal.vue.es-Chi6_MH_.js +1 -0
- package/dist/Modal.vue.es-DSkC4eMv.mjs +387 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +144 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs +51 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js +1 -0
- package/dist/PaymentHistoryBlock-DGJ_PiVq.js +1 -0
- package/dist/PaymentHistoryBlock-budeR7ep.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs +93 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js +1 -0
- package/dist/PaymentIntegrationForm-Crrhar96.mjs +4 -0
- package/dist/PaymentIntegrationForm-DqqGcEP1.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs +138 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-DM-xMcm0.mjs +621 -0
- package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +98 -0
- package/dist/PaymentIntegrationFormStripe-yBm4KnpV.mjs +488 -0
- package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +102 -0
- package/dist/PaymentMethod.vue.es-BdMcKq8_.mjs +623 -0
- package/dist/PaymentMethod.vue.es-Ctw9Es1g.js +1 -0
- package/dist/PaymentMethodForm-BQ5TVHlS.js +1 -0
- package/dist/PaymentMethodForm-C1bIGX10.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs +167 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs +169 -0
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +769 -0
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-Bnb-ARie.mjs +627 -0
- package/dist/PricingGroupRangeInput.vue.es-D82XvoC_.js +185 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js +1 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs +131 -0
- package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +1 -0
- package/dist/RadioGroupExtended.vue.es-WDbo_yj1.mjs +163 -0
- package/dist/Section.vue.es-By1JltGi.mjs +72 -0
- package/dist/Section.vue.es-DuK52y67.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs +687 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +51 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +1 -0
- package/dist/SubscriptionSchedules-DDCjVEbG.mjs +4 -0
- package/dist/SubscriptionSchedules-DEjIERyF.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs +5256 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs +91 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs +284 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js +1 -0
- package/dist/TooltipParagraph.vue.es-DYu2ReL7.mjs +129 -0
- package/dist/TooltipParagraph.vue.es-sTgWAgcd.js +1 -0
- package/dist/TrialChip.vue.es-Cl-9_pdr.js +1 -0
- package/dist/TrialChip.vue.es-DX53r0ku.mjs +35 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/accel.svg.es-DFJXdioD.js +1 -0
- package/dist/ach.svg.es-BYP873jU.js +1 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/adyen-BJfC7N6f.js +1 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyen-CvsH5fok.mjs +117 -0
- package/dist/adyen-Druit6gz.js +1 -0
- package/dist/adyenSdk-B01MB9Ia.mjs +58 -0
- package/dist/adyenSdk-BP2XXzeJ.js +1 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amazon-pay.svg.es-CQWgtowB.js +1 -0
- package/dist/amex.svg.es-DKhW4Txt.js +1 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/api.es-QaC926Xu.mjs +43 -0
- package/dist/api.es-duCDtZD9.js +1 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/apple-pay.svg.es-Dyojd0F-.js +1 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bacs.svg.es-GJpZs1sD.js +1 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/bancontact.svg.es-BQh7nAup.js +1 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/carnet.svg.es-DY04-F2L.js +1 -0
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +1 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cashapp.svg.es-MwXGYom6.js +1 -0
- package/dist/cn.es-CNvIP217.js +1 -0
- package/dist/cn.es-DjnGlmqV.mjs +3028 -0
- package/dist/comparators.es-D8WGL-c4.mjs +153 -0
- package/dist/comparators.es-OGt19O9U.js +1 -0
- package/dist/component-5wqcK7yz.mjs +8 -0
- package/dist/component-B7ZDyqBp.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
- package/dist/components/BillingInformation/BillingInformation.mjs +81 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +447 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +86 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.cjs +1 -0
- package/dist/components/Invoice/Invoice.mjs +477 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +107 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +68 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
- package/dist/components/InvoicesList/InvoicesList.mjs +86 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
- package/dist/components/PaymentHistory/PaymentHistory.mjs +111 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +96 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +84 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +92 -0
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
- package/dist/components/WalletBalances/WalletBalances.mjs +113 -0
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/configuration-akTS7Wiw.js +1 -0
- package/dist/core/action-request.types.d.ts +1 -58
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.cjs +1 -0
- package/dist/core/index.d.ts +1 -10
- package/dist/core/index.mjs +182 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -111
- package/dist/countryData.es-BegoD-cZ.mjs +252 -0
- package/dist/countryData.es-C4jHBzfo.js +1 -0
- package/dist/customElements-Bt8PbjIn.js +1187 -0
- package/dist/customElements-Com2NiGU.mjs +6531 -0
- package/dist/customer-CKgMJEgv.mjs +31 -0
- package/dist/customer-Q4JGfVfq.js +1 -0
- package/dist/customer.es-B5ppZf0j.mjs +20 -0
- package/dist/customer.es-BButyYo0.js +1 -0
- package/dist/dana.svg.es-BDtZLpwd.js +1 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/dankort.svg.es-CksaipXF.js +1 -0
- package/dist/de-DE-CVCmzlNH.mjs +266 -0
- package/dist/de-DE-DBO5f-Eu.mjs +281 -0
- package/dist/de-DE-DqLD4IX2.js +1 -0
- package/dist/de-DE-Ds_yJLS3.js +1 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/diners.svg.es-D6Mu1pqP.js +1 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/discover.svg.es-DgqWCMUM.js +1 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/eftpos.svg.es-Dk2DOT8W.js +1 -0
- package/dist/elo.svg.es-C-BzjuRP.js +1 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/en-US-3UmnS23B.mjs +281 -0
- package/dist/en-US-C51ILrVv.js +1 -0
- package/dist/en-US-CvFmmI_O.js +1 -0
- package/dist/en-US-DVR9O7b_.mjs +266 -0
- package/dist/eps.svg.es-B_85bP-W.js +1 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/error-BHVZJGwD.mjs +13 -0
- package/dist/error-CmduqgVq.js +1 -0
- package/dist/floating-ui.vue.es-Bly3DGWm.js +1 -0
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +1108 -0
- package/dist/formatting.es-C72Nsrmh.js +1 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/gcash.svg.es-BKAdhWzv.js +1 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getComposedString.es-haS4bAj7.js +1 -0
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +8 -0
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +1 -0
- package/dist/girocard.svg.es-HSOEvDif.js +1 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/go-pay.svg.es-DQjtunZ_.js +1 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/google-pay.svg.es-hzc_EgiJ.js +1 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/hipercard.svg.es-CbCsRY2q.js +1 -0
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +4 -0
- package/dist/icon-sprite.svg.es-Dauis9LS.js +1 -0
- package/dist/ideal.svg.es-Booz1IML.js +1 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-BPU8tIml.mjs +828 -0
- package/dist/index-BPZPnOQQ.js +7 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index-DwueOtPi.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -15
- package/dist/index.es-BclokHQX.js +1 -0
- package/dist/index.es-CXkP_k3u.mjs +345 -0
- package/dist/index.mjs +42 -0
- package/dist/invoices-CV9iAUHf.mjs +115 -0
- package/dist/invoices-CvpL4rv5.js +1 -0
- package/dist/it-IT-CDMnnFKZ.mjs +266 -0
- package/dist/it-IT-CFEfSpPH.js +1 -0
- package/dist/it-IT-CxBRisRm.mjs +281 -0
- package/dist/it-IT-Dxw59eR_.js +1 -0
- package/dist/jcb.svg.es-B3WPB8c2.js +1 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +1 -0
- package/dist/klarna.svg.es-Cs6XaHD7.js +1 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-BvK4oPg4.js +1 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/mastercard.svg.es-lp4AXyyV.js +1 -0
- package/dist/momo.svg.es-C5aLYf_R.js +1 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/nl-NL-BWGkVweu.mjs +296 -0
- package/dist/nl-NL-Btbfd9p2.js +1 -0
- package/dist/nl-NL-jtVgF3jx.js +1 -0
- package/dist/nl-NL-o3UvtSNg.mjs +266 -0
- package/dist/nyce.svg.es-ArAivAZW.js +1 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/object.es-CdriXMPs.js +1 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/open-banking.svg.es-Q3rRkCvP.js +1 -0
- package/dist/paymentMethods-BuwoJ1y9.mjs +75 -0
- package/dist/paymentMethods-ChWAwDSF.js +1 -0
- package/dist/payments-C_cMXQzE.mjs +45 -0
- package/dist/payments-DGckugN0.js +1 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/paypal.svg.es-Cjp5sNI3.js +1 -0
- package/dist/pricing-BVAld27Y.js +1 -0
- package/dist/pricing-DLOeiAIB.mjs +16 -0
- package/dist/pricingItemConfigs.es-DMf1e6y7.mjs +76 -0
- package/dist/pricingItemConfigs.es-DlybwIh1.js +1 -0
- package/dist/pricingPlanSchedule-COfmWv_o.js +1 -0
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +129 -0
- package/dist/pulse.svg.es-Dit33E8S.js +1 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.cjs +1 -0
- package/dist/screens/Checkout/Checkout.mjs +5 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +149 -0
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
- package/dist/screens/PayInvoice/PayInvoice.mjs +533 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +210 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +771 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +618 -0
- package/dist/sepa.svg.es-0t4DKeA1.js +1 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/slots.es-T9ZJRGtG.js +1 -0
- package/dist/sorting.es-DCihKqD2.mjs +77 -0
- package/dist/sorting.es-DQsjKr8A.js +1 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/star.svg.es-D2JncY7b.js +1 -0
- package/dist/subscription-9GORG-Gt.js +1 -0
- package/dist/subscription-CvfAEJeP.mjs +69 -0
- package/dist/subscriptions-B5VqRayX.mjs +55 -0
- package/dist/subscriptions-X0Ciw8z3.js +1 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/trustly.svg.es-GJByiFAs.js +1 -0
- package/dist/twint.svg.es-BJ2f48og.js +1 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/typeGuards.es-DS3vZaJn.js +1 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
- package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +81 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +62 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +32 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +70 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
- package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +45 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +55 -0
- package/dist/types/public/core/configuration.d.ts +3 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +6 -0
- package/dist/types/public/core/types.d.ts +120 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +31 -0
- package/dist/types/services/portals.types.d.ts +68 -0
- package/dist/types/services/requests.types.d.ts +24 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +7 -0
- package/dist/types/types/subscription.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +1 -0
- package/dist/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/url-BNKStNY9.js +1 -0
- package/dist/url-DwiuKYpu.mjs +20 -0
- package/dist/useActionDispatchProvider-B54GYEY7.js +1 -0
- package/dist/useActionDispatchProvider-e2lQXTid.mjs +11 -0
- package/dist/useCustomer-BJwJ9BkJ.js +1 -0
- package/dist/useCustomer-CC9zxV6c.mjs +20 -0
- package/dist/useCustomerFormLabels-72Pxw8X5.js +1 -0
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +930 -0
- package/dist/useExperimentalFeature-8Mzpj5wc.js +1 -0
- package/dist/useExperimentalFeature-B0IFn3Uw.mjs +6 -0
- package/dist/useIncrementalLoading-CaWOE8Xl.js +1 -0
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +48 -0
- package/dist/useInvoiceData-6mHUZC9a.mjs +38 -0
- package/dist/useInvoiceData-Bblwdl0f.js +1 -0
- package/dist/useInvoicesList-B5H5JfvY.mjs +500 -0
- package/dist/useInvoicesList-_U1-tn9_.js +1 -0
- package/dist/useLoadInitialData-CezlvhBV.js +1 -0
- package/dist/useLoadInitialData-ux_wpNiR.mjs +15 -0
- package/dist/usePaymentMethodAvailability-CkR4TwoV.mjs +118 -0
- package/dist/usePaymentMethodAvailability-DRwrBdto.js +1 -0
- package/dist/usePaymentMethodOptions-B6GIM9q4.js +1 -0
- package/dist/usePaymentMethodOptions-BfnLBZOo.mjs +37 -0
- package/dist/usePaymentMethods-C3QfLSrP.mjs +15 -0
- package/dist/usePaymentMethods-GFmQRp0X.js +1 -0
- package/dist/usePayments-BkwGyZT0.mjs +318 -0
- package/dist/usePayments-SQF_V7oL.js +1 -0
- package/dist/usePortal-BdM7hDge.js +1 -0
- package/dist/usePortal-DDG9b6FI.mjs +11 -0
- package/dist/useService-Bh47bllz.mjs +50 -0
- package/dist/useService-H7BjLg8P.js +1 -0
- package/dist/useSubscription-BJJYHYgr.mjs +210 -0
- package/dist/useSubscription-Q4C2DPhw.js +1 -0
- package/dist/useTimePeriod.es-9tZvAhyb.mjs +93 -0
- package/dist/useTimePeriod.es-pepm2TpV.js +1 -0
- package/dist/useViewport-BgdA2PPt.mjs +29 -0
- package/dist/useViewport-hPRVDWCm.js +1 -0
- package/dist/useWatchDebounced-CAU1WI1P.js +1 -0
- package/dist/useWatchDebounced-DT5IicPp.mjs +14 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/visa.svg.es-NY3BHhda.js +1 -0
- package/dist/vpay.svg.es-VViQi42w.js +1 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/zip.svg.es-C9S_F31W.js +1 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +112 -61
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs +0 -56
- package/dist/ContentWithAsideLayout-CRsFr9TH.mjs +0 -42
- package/dist/ContentWithAsideLayout-DczcgSrt.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs +0 -85
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs +0 -90
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +0 -75
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs +0 -63
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs +0 -373
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DEo_ndpK.mjs +0 -58668
- package/dist/component-XHQYFLA_.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +0 -98
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +0 -584
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +0 -134
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.es.js +0 -582
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +0 -129
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +0 -104
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +0 -133
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +0 -238
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +0 -152
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +0 -134
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +0 -120
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -45
- package/dist/invoices-BW1notiX.js +0 -1
- package/dist/invoices-M5oYVch6.mjs +0 -84
- package/dist/paymentMethods-BX80t2zk.js +0 -1
- package/dist/paymentMethods-CqKUfc3w.mjs +0 -65
- package/dist/payments-BHv4hCeJ.js +0 -1
- package/dist/payments-CosaPZwo.mjs +0 -47
- package/dist/registry-BwKEYOf7.js +0 -1
- package/dist/registry-Cag1Jj7P.mjs +0 -143
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/Checkout/Checkout.es.js +0 -5142
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +0 -136
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1012
- package/dist/solvimon-web.css +0 -1
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-Bs4DIE8f.mjs +0 -74
- package/dist/subscriptions-CnxvsBXd.js +0 -1
- package/dist/useActionDispatchProvider-CgRcOqv3.mjs +0 -12
- package/dist/useActionDispatchProvider-Cru69mAl.js +0 -1
- package/dist/useCustomer-B0NK96dA.js +0 -1
- package/dist/useCustomer-DlcjY3fP.mjs +0 -45
- package/dist/useCustomerPaymentMethodOptions-BzEquyUV.mjs +0 -169
- package/dist/useCustomerPaymentMethodOptions-C-8BLzqb.js +0 -1
- package/dist/useIncrementalLoading-C7ToTmZK.mjs +0 -71
- package/dist/useIncrementalLoading-D60Vttil.js +0 -1
- package/dist/useInvoiceData-CcueV3We.mjs +0 -51
- package/dist/useInvoiceData-DstXfI7t.js +0 -1
- package/dist/useInvoicesList-CXng3aUm.mjs +0 -294
- package/dist/useInvoicesList-DmzjgMlW.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useLoadInitialData-Dm48tlSO.mjs +0 -13
- package/dist/usePaymentMethods-DCGVRXA4.js +0 -1
- package/dist/usePaymentMethods-Db-1R6rI.mjs +0 -16
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-BZyiAhcV.js +0 -1
- package/dist/useWalletBalanceItems-CHkLaccm.mjs +0 -105
|
@@ -0,0 +1,3674 @@
|
|
|
1
|
+
import { unref as t, inject as Zt, ref as V, computed as b, onMounted as Te, toRaw as Xt, watch as Le, defineComponent as se, openBlock as g, createBlock as k, withCtx as I, createElementVNode as w, createVNode as D, createTextVNode as K, toDisplayString as F, useModel as Wt, createElementBlock as Z, withModifiers as $e, Fragment as fe, createCommentVNode as B, createSlots as qe, normalizeClass as he, mergeModels as yt, renderSlot as Xe, nextTick as Qe, mergeProps as vt, withDirectives as qt, withKeys as ft, vShow as Jt, defineAsyncComponent as _t } from "vue";
|
|
2
|
+
import { I as ei, b as _e, u as ge, _ as le, d as ti, e as ii } from "./customElements-Com2NiGU.mjs";
|
|
3
|
+
import { u as xt } from "./useTimePeriod.es-9tZvAhyb.mjs";
|
|
4
|
+
import { b as Oe, f as be } from "./formatting.es-RclXHhKo.mjs";
|
|
5
|
+
import { _ as Ie, a as ze } from "./Button.vue.es-VQCd3V3C.mjs";
|
|
6
|
+
import { _ as oi } from "./ErrorNotification.vue.es-C6ngWAVU.mjs";
|
|
7
|
+
import { c as ni } from "./countryData.es-BegoD-cZ.mjs";
|
|
8
|
+
import { c as ai } from "./subscriptions-B5VqRayX.mjs";
|
|
9
|
+
import { A as Pe } from "./error-BHVZJGwD.mjs";
|
|
10
|
+
import { c as ri, _ as li } from "./TrialChip.vue.es-DX53r0ku.mjs";
|
|
11
|
+
import { a as si } from "./useService-Bh47bllz.mjs";
|
|
12
|
+
import { c as ci } from "./invoices-CV9iAUHf.mjs";
|
|
13
|
+
import { g as De, b as Lt, e as ui } from "./pricingPlanSchedule-J1nb9pCu.mjs";
|
|
14
|
+
import { u as di, r as Mt, e as pi, a as je, _ as mi } from "./index-BPU8tIml.mjs";
|
|
15
|
+
import { o as gi, u as yi, _ as vi, a as fi } from "./useCustomerFormLabels-V2YuYMLU.mjs";
|
|
16
|
+
import { u as _i } from "./useWatchDebounced-DT5IicPp.mjs";
|
|
17
|
+
import { u as Mi } from "./usePaymentMethodOptions-BfnLBZOo.mjs";
|
|
18
|
+
import { c as Je, a as hi, d as bi } from "./subscription-CvfAEJeP.mjs";
|
|
19
|
+
import { a as Ii, b as Ai } from "./pricing-DLOeiAIB.mjs";
|
|
20
|
+
import { g as xe, s as Pi } from "./url-DwiuKYpu.mjs";
|
|
21
|
+
import { P as Di, e as Ni, c as ht, d as Ei } from "./adyen-CvsH5fok.mjs";
|
|
22
|
+
import { u as Ci } from "./usePortal-DDG9b6FI.mjs";
|
|
23
|
+
import { g as xi } from "./getCountryNameByCode.es-BDHua7VM.mjs";
|
|
24
|
+
import { _ as bt } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
25
|
+
import { _ as me } from "./Input.vue.es-AY1c0Rui.mjs";
|
|
26
|
+
import { _ as pe } from "./Section.vue.es-By1JltGi.mjs";
|
|
27
|
+
import { _ as Li } from "./IconButton.vue.es-DAR7e8NA.mjs";
|
|
28
|
+
import { c as wi } from "./customer-CKgMJEgv.mjs";
|
|
29
|
+
import { b as Ti, c as Si, a as ki, _ as He } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs";
|
|
30
|
+
import { _ as Oi, T as zi, a as ji } from "./TooltipParagraph.vue.es-DYu2ReL7.mjs";
|
|
31
|
+
import { _ as Ri } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs";
|
|
32
|
+
import { _ as It } from "./Chip.vue.es-CXG8o1Qf.mjs";
|
|
33
|
+
import { _ as $i, a as Bi } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs";
|
|
34
|
+
import { _ as Ui } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs";
|
|
35
|
+
import { u as wt } from "./useViewport-BgdA2PPt.mjs";
|
|
36
|
+
import { _ as ve } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
37
|
+
import { _ as Fi } from "./DividerText.vue.es-Bomiy4if.mjs";
|
|
38
|
+
import { l as Ue } from "./adyenSdk-B01MB9Ia.mjs";
|
|
39
|
+
import { c as Vi } from "./payments-C_cMXQzE.mjs";
|
|
40
|
+
import { C as Gi } from "./ContentWithAsideLayout-Bnbsq8_5.mjs";
|
|
41
|
+
import { u as Yi } from "./cn.es-DjnGlmqV.mjs";
|
|
42
|
+
import { g as Ki } from "./component-5wqcK7yz.mjs";
|
|
43
|
+
const Qi = {
|
|
44
|
+
AT: "Austria",
|
|
45
|
+
BE: "Belgium",
|
|
46
|
+
BG: "Bulgaria",
|
|
47
|
+
CY: "Cyprus",
|
|
48
|
+
CZ: "Czech Republic",
|
|
49
|
+
DE: "Germany",
|
|
50
|
+
DK: "Denmark",
|
|
51
|
+
EE: "Estonia",
|
|
52
|
+
ES: "Spain",
|
|
53
|
+
FI: "Finland",
|
|
54
|
+
FR: "France",
|
|
55
|
+
GR: "Greece",
|
|
56
|
+
HR: "Croatia",
|
|
57
|
+
HU: "Hungary",
|
|
58
|
+
IE: "Ireland",
|
|
59
|
+
IT: "Italy",
|
|
60
|
+
LT: "Lithuania",
|
|
61
|
+
LU: "Luxembourg",
|
|
62
|
+
LV: "Latvia",
|
|
63
|
+
MT: "Malta",
|
|
64
|
+
NL: "Netherlands",
|
|
65
|
+
PL: "Poland",
|
|
66
|
+
PT: "Portugal",
|
|
67
|
+
RO: "Romania",
|
|
68
|
+
SE: "Sweden",
|
|
69
|
+
SI: "Slovenia",
|
|
70
|
+
SK: "Slovakia"
|
|
71
|
+
};
|
|
72
|
+
function Tt(e) {
|
|
73
|
+
return Object.keys(Qi).includes(e);
|
|
74
|
+
}
|
|
75
|
+
function At(e, i) {
|
|
76
|
+
var o = Object.keys(e);
|
|
77
|
+
if (Object.getOwnPropertySymbols) {
|
|
78
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
79
|
+
i && (n = n.filter(function(a) {
|
|
80
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
81
|
+
})), o.push.apply(o, n);
|
|
82
|
+
}
|
|
83
|
+
return o;
|
|
84
|
+
}
|
|
85
|
+
function we(e) {
|
|
86
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
87
|
+
var o = arguments[i] != null ? arguments[i] : {};
|
|
88
|
+
i % 2 ? At(Object(o), !0).forEach(function(n) {
|
|
89
|
+
Hi(e, n, o[n]);
|
|
90
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : At(Object(o)).forEach(function(n) {
|
|
91
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return e;
|
|
95
|
+
}
|
|
96
|
+
function Hi(e, i, o) {
|
|
97
|
+
return i in e ? Object.defineProperty(e, i, {
|
|
98
|
+
value: o,
|
|
99
|
+
enumerable: !0,
|
|
100
|
+
configurable: !0,
|
|
101
|
+
writable: !0
|
|
102
|
+
}) : e[i] = o, e;
|
|
103
|
+
}
|
|
104
|
+
function Be(e) {
|
|
105
|
+
return typeof e == "function";
|
|
106
|
+
}
|
|
107
|
+
function We(e) {
|
|
108
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
109
|
+
}
|
|
110
|
+
function Fe(e) {
|
|
111
|
+
return Be(e.$validator) ? we({}, e) : {
|
|
112
|
+
$validator: e
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function St(e) {
|
|
116
|
+
return typeof e == "object" ? e.$valid : e;
|
|
117
|
+
}
|
|
118
|
+
function kt(e) {
|
|
119
|
+
return e.$validator || e;
|
|
120
|
+
}
|
|
121
|
+
function Zi(e, i) {
|
|
122
|
+
if (!We(e)) throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);
|
|
123
|
+
if (!We(i) && !Be(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
|
124
|
+
const o = Fe(i);
|
|
125
|
+
return o.$params = we(we({}, o.$params || {}), e), o;
|
|
126
|
+
}
|
|
127
|
+
function Xi(e, i) {
|
|
128
|
+
if (!Be(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 (!We(i) && !Be(i)) throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");
|
|
130
|
+
const o = Fe(i);
|
|
131
|
+
return o.$message = e, o;
|
|
132
|
+
}
|
|
133
|
+
function Wi(e) {
|
|
134
|
+
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
135
|
+
const o = Fe(e);
|
|
136
|
+
return we(we({}, o), {}, {
|
|
137
|
+
$async: !0,
|
|
138
|
+
$watchTargets: i
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function qi(e) {
|
|
142
|
+
return {
|
|
143
|
+
$validator(i) {
|
|
144
|
+
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
|
|
145
|
+
n[a - 1] = arguments[a];
|
|
146
|
+
return t(i).reduce((l, s, M) => {
|
|
147
|
+
const p = Object.entries(s).reduce((E, y) => {
|
|
148
|
+
let [_, A] = y;
|
|
149
|
+
const c = e[_] || {}, C = Object.entries(c).reduce((m, x) => {
|
|
150
|
+
let [P, N] = x;
|
|
151
|
+
const R = kt(N).call(this, A, s, M, ...n), u = St(R);
|
|
152
|
+
if (m.$data[P] = R, m.$data.$invalid = !u || !!m.$data.$invalid, m.$data.$error = m.$data.$invalid, !u) {
|
|
153
|
+
let T = N.$message || "";
|
|
154
|
+
const Q = N.$params || {};
|
|
155
|
+
typeof T == "function" && (T = T({
|
|
156
|
+
$pending: !1,
|
|
157
|
+
$invalid: !u,
|
|
158
|
+
$params: Q,
|
|
159
|
+
$model: A,
|
|
160
|
+
$response: R
|
|
161
|
+
})), m.$errors.push({
|
|
162
|
+
$property: _,
|
|
163
|
+
$message: T,
|
|
164
|
+
$params: Q,
|
|
165
|
+
$response: R,
|
|
166
|
+
$model: A,
|
|
167
|
+
$pending: !1,
|
|
168
|
+
$validator: P
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return {
|
|
172
|
+
$valid: m.$valid && u,
|
|
173
|
+
$data: m.$data,
|
|
174
|
+
$errors: m.$errors
|
|
175
|
+
};
|
|
176
|
+
}, {
|
|
177
|
+
$valid: !0,
|
|
178
|
+
$data: {},
|
|
179
|
+
$errors: []
|
|
180
|
+
});
|
|
181
|
+
return E.$data[_] = C.$data, E.$errors[_] = C.$errors, {
|
|
182
|
+
$valid: E.$valid && C.$valid,
|
|
183
|
+
$data: E.$data,
|
|
184
|
+
$errors: E.$errors
|
|
185
|
+
};
|
|
186
|
+
}, {
|
|
187
|
+
$valid: !0,
|
|
188
|
+
$data: {},
|
|
189
|
+
$errors: {}
|
|
190
|
+
});
|
|
191
|
+
return {
|
|
192
|
+
$valid: l.$valid && p.$valid,
|
|
193
|
+
$data: l.$data.concat(p.$data),
|
|
194
|
+
$errors: l.$errors.concat(p.$errors)
|
|
195
|
+
};
|
|
196
|
+
}, {
|
|
197
|
+
$valid: !0,
|
|
198
|
+
$data: [],
|
|
199
|
+
$errors: []
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
$message: (i) => {
|
|
203
|
+
let {
|
|
204
|
+
$response: o
|
|
205
|
+
} = i;
|
|
206
|
+
return o ? o.$errors.map((n) => Object.values(n).map((a) => a.map((l) => l.$message)).reduce((a, l) => a.concat(l), [])) : [];
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
const Ot = (e) => {
|
|
211
|
+
if (e = t(e), Array.isArray(e)) return !!e.length;
|
|
212
|
+
if (e == null)
|
|
213
|
+
return !1;
|
|
214
|
+
if (e === !1)
|
|
215
|
+
return !0;
|
|
216
|
+
if (e instanceof Date)
|
|
217
|
+
return !isNaN(e.getTime());
|
|
218
|
+
if (typeof e == "object") {
|
|
219
|
+
for (let i in e) return !0;
|
|
220
|
+
return !1;
|
|
221
|
+
}
|
|
222
|
+
return !!String(e).length;
|
|
223
|
+
}, Ji = (e) => (e = t(e), Array.isArray(e) ? e.length : typeof e == "object" ? Object.keys(e).length : String(e).length);
|
|
224
|
+
function Me() {
|
|
225
|
+
for (var e = arguments.length, i = new Array(e), o = 0; o < e; o++)
|
|
226
|
+
i[o] = arguments[o];
|
|
227
|
+
return (n) => (n = t(n), !Ot(n) || i.every((a) => (a.lastIndex = 0, a.test(n))));
|
|
228
|
+
}
|
|
229
|
+
var eo = /* @__PURE__ */ Object.freeze({
|
|
230
|
+
__proto__: null,
|
|
231
|
+
forEach: qi,
|
|
232
|
+
len: Ji,
|
|
233
|
+
normalizeValidatorObject: Fe,
|
|
234
|
+
regex: Me,
|
|
235
|
+
req: Ot,
|
|
236
|
+
unwrap: t,
|
|
237
|
+
unwrapNormalizedValidator: kt,
|
|
238
|
+
unwrapValidatorResponse: St,
|
|
239
|
+
withAsync: Wi,
|
|
240
|
+
withMessage: Xi,
|
|
241
|
+
withParams: Zi
|
|
242
|
+
});
|
|
243
|
+
Me(/^[a-zA-Z]*$/);
|
|
244
|
+
Me(/^[a-zA-Z0-9]*$/);
|
|
245
|
+
Me(/^\d*(\.\d+)?$/);
|
|
246
|
+
const to = /^(?:[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
|
+
Me(to);
|
|
248
|
+
const io = /^(?:(?:(?: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
|
+
Me(io);
|
|
250
|
+
Me(/(^[0-9]*$)|(^-[0-9]+$)/);
|
|
251
|
+
Me(/^[-]?\d*(\.\d+)?$/);
|
|
252
|
+
function Ve(e) {
|
|
253
|
+
return !!ni.find((i) => i.key === e);
|
|
254
|
+
}
|
|
255
|
+
const zt = {
|
|
256
|
+
AT: {
|
|
257
|
+
regex: /^ATU\d{8}$/,
|
|
258
|
+
prefix: "AT",
|
|
259
|
+
example: "ATU12345678"
|
|
260
|
+
},
|
|
261
|
+
BE: {
|
|
262
|
+
regex: /^BE0?\d{9}$/,
|
|
263
|
+
prefix: "BE",
|
|
264
|
+
example: "BE0123456789"
|
|
265
|
+
},
|
|
266
|
+
BG: {
|
|
267
|
+
regex: /^BG\d{9,10}$/,
|
|
268
|
+
prefix: "BG",
|
|
269
|
+
example: "BG123456789"
|
|
270
|
+
},
|
|
271
|
+
HR: {
|
|
272
|
+
regex: /^HR\d{11}$/,
|
|
273
|
+
prefix: "HR",
|
|
274
|
+
example: "HR12345678901"
|
|
275
|
+
},
|
|
276
|
+
CY: {
|
|
277
|
+
regex: /^CY\d{8}[A-Z]$/,
|
|
278
|
+
prefix: "CY",
|
|
279
|
+
example: "CY12345678X"
|
|
280
|
+
},
|
|
281
|
+
CZ: {
|
|
282
|
+
regex: /^CZ\d{8,10}$/,
|
|
283
|
+
prefix: "CZ",
|
|
284
|
+
example: "CZ12345678"
|
|
285
|
+
},
|
|
286
|
+
DE: {
|
|
287
|
+
regex: /^DE\d{9}$/,
|
|
288
|
+
prefix: "DE",
|
|
289
|
+
example: "DE123456789"
|
|
290
|
+
},
|
|
291
|
+
DK: {
|
|
292
|
+
regex: /^DK\d{8}$/,
|
|
293
|
+
prefix: "DK",
|
|
294
|
+
example: "DK12345678"
|
|
295
|
+
},
|
|
296
|
+
EE: {
|
|
297
|
+
regex: /^EE\d{9}$/,
|
|
298
|
+
prefix: "EE",
|
|
299
|
+
example: "EE123456789"
|
|
300
|
+
},
|
|
301
|
+
GR: {
|
|
302
|
+
regex: /^(EL|GR)\d{9}$/,
|
|
303
|
+
prefix: "GR",
|
|
304
|
+
example: "GR123456789"
|
|
305
|
+
},
|
|
306
|
+
ES: {
|
|
307
|
+
regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
|
|
308
|
+
prefix: "ES",
|
|
309
|
+
example: "ESX1234567X"
|
|
310
|
+
},
|
|
311
|
+
FI: {
|
|
312
|
+
regex: /^FI\d{8}$/,
|
|
313
|
+
prefix: "FI",
|
|
314
|
+
example: "FI12345678"
|
|
315
|
+
},
|
|
316
|
+
FR: {
|
|
317
|
+
regex: /^FR[0-9A-Z]{2}\d{9}$/,
|
|
318
|
+
prefix: "FR",
|
|
319
|
+
example: "FRXX123456789"
|
|
320
|
+
},
|
|
321
|
+
HU: {
|
|
322
|
+
regex: /^HU\d{8}$/,
|
|
323
|
+
prefix: "HU",
|
|
324
|
+
example: "HU12345678"
|
|
325
|
+
},
|
|
326
|
+
IE: {
|
|
327
|
+
regex: /^IE[0-9A-Z]{8,9}$/,
|
|
328
|
+
prefix: "IE",
|
|
329
|
+
example: "IE1234567A"
|
|
330
|
+
},
|
|
331
|
+
IS: {
|
|
332
|
+
regex: /^IS\d{5}$/,
|
|
333
|
+
prefix: "IS",
|
|
334
|
+
example: "IS12345"
|
|
335
|
+
},
|
|
336
|
+
IT: {
|
|
337
|
+
regex: /^IT\d{11}$/,
|
|
338
|
+
prefix: "IT",
|
|
339
|
+
example: "IT12345678901"
|
|
340
|
+
},
|
|
341
|
+
LT: {
|
|
342
|
+
regex: /^LT(\d{9}|\d{12})$/,
|
|
343
|
+
prefix: "LT",
|
|
344
|
+
example: "LT123456789 or LT123456789012"
|
|
345
|
+
},
|
|
346
|
+
LU: {
|
|
347
|
+
regex: /^LU\d{8}$/,
|
|
348
|
+
prefix: "LU",
|
|
349
|
+
example: "LU12345678"
|
|
350
|
+
},
|
|
351
|
+
LV: {
|
|
352
|
+
regex: /^LV\d{11}$/,
|
|
353
|
+
prefix: "LV",
|
|
354
|
+
example: "LV12345678901"
|
|
355
|
+
},
|
|
356
|
+
ME: {
|
|
357
|
+
regex: /^ME\d{9}$/,
|
|
358
|
+
prefix: "ME",
|
|
359
|
+
example: "ME123456789"
|
|
360
|
+
},
|
|
361
|
+
MT: {
|
|
362
|
+
regex: /^MT\d{8}$/,
|
|
363
|
+
prefix: "MT",
|
|
364
|
+
example: "MT12345678"
|
|
365
|
+
},
|
|
366
|
+
NL: {
|
|
367
|
+
regex: /^NL\d{9}B\d{2}$/,
|
|
368
|
+
prefix: "NL",
|
|
369
|
+
example: "NL123456789B01"
|
|
370
|
+
},
|
|
371
|
+
PL: {
|
|
372
|
+
regex: /^PL\d{10}$/,
|
|
373
|
+
prefix: "PL",
|
|
374
|
+
example: "PL1234567890"
|
|
375
|
+
},
|
|
376
|
+
PT: {
|
|
377
|
+
regex: /^PT\d{9}$/,
|
|
378
|
+
prefix: "PT",
|
|
379
|
+
example: "PT123456789"
|
|
380
|
+
},
|
|
381
|
+
RO: {
|
|
382
|
+
regex: /^RO\d{2,10}$/,
|
|
383
|
+
prefix: "RO",
|
|
384
|
+
example: "RO1234567890"
|
|
385
|
+
},
|
|
386
|
+
RU: {
|
|
387
|
+
regex: /^RU(\d{9}|\d{10}|\d{12})$/,
|
|
388
|
+
prefix: "RU",
|
|
389
|
+
example: "RU123456789 or RU1234567890 or RU123456789012"
|
|
390
|
+
},
|
|
391
|
+
SE: {
|
|
392
|
+
regex: /^SE\d{10}01$/,
|
|
393
|
+
prefix: "SE",
|
|
394
|
+
example: "SE123456789001"
|
|
395
|
+
},
|
|
396
|
+
SI: {
|
|
397
|
+
regex: /^SI\d{8}$/,
|
|
398
|
+
prefix: "SI",
|
|
399
|
+
example: "SI12345678"
|
|
400
|
+
},
|
|
401
|
+
SK: {
|
|
402
|
+
regex: /^SK\d{10}$/,
|
|
403
|
+
prefix: "SK",
|
|
404
|
+
example: "SK1234567890"
|
|
405
|
+
},
|
|
406
|
+
CH: {
|
|
407
|
+
regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
|
|
408
|
+
prefix: "CHE",
|
|
409
|
+
example: "CHE123456789MWST"
|
|
410
|
+
},
|
|
411
|
+
NO: {
|
|
412
|
+
regex: /^NO\d{9}MVA$/,
|
|
413
|
+
prefix: "NO",
|
|
414
|
+
example: "NO123456789MVA"
|
|
415
|
+
},
|
|
416
|
+
GB: {
|
|
417
|
+
regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
|
|
418
|
+
prefix: "GB",
|
|
419
|
+
example: "GB123456789"
|
|
420
|
+
},
|
|
421
|
+
XI: {
|
|
422
|
+
regex: /^XI(\d{9}|\d{12})$/,
|
|
423
|
+
prefix: "XI",
|
|
424
|
+
example: "XI123456789"
|
|
425
|
+
}
|
|
426
|
+
}, oo = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(zt).some((i) => i.regex.test(e)), no = ({ $model: e }) => {
|
|
427
|
+
if (!e || typeof e != "string" || e.trim() === "")
|
|
428
|
+
return "";
|
|
429
|
+
const i = Zt(ei, null);
|
|
430
|
+
if (!i)
|
|
431
|
+
return "Invalid tax ID";
|
|
432
|
+
const { formatMessage: o } = i, n = Object.values(zt).find(
|
|
433
|
+
(a) => e.toUpperCase().startsWith(a.prefix.toUpperCase())
|
|
434
|
+
);
|
|
435
|
+
return n ? o(
|
|
436
|
+
{
|
|
437
|
+
defaultMessage: "Invalid tax ID format. Example: {example}",
|
|
438
|
+
id: "form_validation.tax_id.invalid_format",
|
|
439
|
+
description: "Error message when tax ID format is invalid but prefix matches"
|
|
440
|
+
},
|
|
441
|
+
{ example: n.example }
|
|
442
|
+
) : o({
|
|
443
|
+
defaultMessage: "Invalid tax ID",
|
|
444
|
+
id: "taxId.invalid",
|
|
445
|
+
description: "Error message when tax ID is invalid"
|
|
446
|
+
});
|
|
447
|
+
}, et = eo.withMessage(no, oo), ao = "preview", ro = "NL", jt = (e) => {
|
|
448
|
+
var i, o;
|
|
449
|
+
if ("organization" in e)
|
|
450
|
+
return (i = e.organization) == null ? void 0 : i.registered_address;
|
|
451
|
+
if ("individual" in e)
|
|
452
|
+
return (o = e.individual) == null ? void 0 : o.residential_address;
|
|
453
|
+
}, lo = (e) => {
|
|
454
|
+
const i = jt(e);
|
|
455
|
+
return {
|
|
456
|
+
...(i == null ? void 0 : i.line1) && { line1: i.line1 },
|
|
457
|
+
...(i == null ? void 0 : i.line2) && { line2: i.line2 },
|
|
458
|
+
...(i == null ? void 0 : i.city) && { city: i.city },
|
|
459
|
+
...(i == null ? void 0 : i.state) && { state: i.state },
|
|
460
|
+
country: (i == null ? void 0 : i.country) || ro,
|
|
461
|
+
...(i == null ? void 0 : i.postal_code) && { postal_code: i.postal_code }
|
|
462
|
+
};
|
|
463
|
+
}, so = (e) => {
|
|
464
|
+
var n, a;
|
|
465
|
+
const i = lo(e), o = e.type ?? "INDIVIDUAL";
|
|
466
|
+
if (o === "ORGANIZATION") {
|
|
467
|
+
const l = "organization" in e ? e.organization : void 0, s = (a = (n = l == null ? void 0 : l.tax_ids) == null ? void 0 : n[0]) == null ? void 0 : a.id;
|
|
468
|
+
return {
|
|
469
|
+
type: o,
|
|
470
|
+
organization: {
|
|
471
|
+
legal_name: (l == null ? void 0 : l.legal_name) || ao,
|
|
472
|
+
registered_address: i,
|
|
473
|
+
...s && {
|
|
474
|
+
tax_id: et.$validator(s, {}, {}) ? s : void 0
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
return {
|
|
480
|
+
type: o,
|
|
481
|
+
individual: {
|
|
482
|
+
residential_address: i
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
}, co = {
|
|
486
|
+
AD: "EUR",
|
|
487
|
+
AE: "AED",
|
|
488
|
+
AF: "AFN",
|
|
489
|
+
AG: "XCD",
|
|
490
|
+
AI: "XCD",
|
|
491
|
+
AL: "ALL",
|
|
492
|
+
AM: "AMD",
|
|
493
|
+
AO: "AOA",
|
|
494
|
+
AR: "ARS",
|
|
495
|
+
AS: "USD",
|
|
496
|
+
AT: "EUR",
|
|
497
|
+
AU: "AUD",
|
|
498
|
+
AW: "AWG",
|
|
499
|
+
AX: "EUR",
|
|
500
|
+
AZ: "AZN",
|
|
501
|
+
BA: "BAM",
|
|
502
|
+
BB: "BBD",
|
|
503
|
+
BD: "BDT",
|
|
504
|
+
BE: "EUR",
|
|
505
|
+
BF: "XOF",
|
|
506
|
+
BG: "BGN",
|
|
507
|
+
BH: "BHD",
|
|
508
|
+
BI: "BIF",
|
|
509
|
+
BJ: "XOF",
|
|
510
|
+
BL: "EUR",
|
|
511
|
+
BM: "BMD",
|
|
512
|
+
BN: "BND",
|
|
513
|
+
BO: "BOB",
|
|
514
|
+
BQ: "USD",
|
|
515
|
+
BR: "BRL",
|
|
516
|
+
BS: "BSD",
|
|
517
|
+
BT: "BTN",
|
|
518
|
+
BV: "NOK",
|
|
519
|
+
BW: "BWP",
|
|
520
|
+
BY: "BYN",
|
|
521
|
+
BZ: "BZD",
|
|
522
|
+
CA: "CAD",
|
|
523
|
+
CC: "AUD",
|
|
524
|
+
CD: "CDF",
|
|
525
|
+
CF: "XAF",
|
|
526
|
+
CG: "XAF",
|
|
527
|
+
CH: "CHF",
|
|
528
|
+
CI: "XOF",
|
|
529
|
+
CK: "NZD",
|
|
530
|
+
CL: "CLP",
|
|
531
|
+
CM: "XAF",
|
|
532
|
+
CN: "CNY",
|
|
533
|
+
CO: "COP",
|
|
534
|
+
CR: "CRC",
|
|
535
|
+
CU: "CUP",
|
|
536
|
+
CV: "CVE",
|
|
537
|
+
CW: "ANG",
|
|
538
|
+
CX: "AUD",
|
|
539
|
+
CY: "EUR",
|
|
540
|
+
CZ: "CZK",
|
|
541
|
+
DE: "EUR",
|
|
542
|
+
DJ: "DJF",
|
|
543
|
+
DK: "DKK",
|
|
544
|
+
DM: "XCD",
|
|
545
|
+
DO: "DOP",
|
|
546
|
+
DZ: "DZD",
|
|
547
|
+
EC: "USD",
|
|
548
|
+
EE: "EUR",
|
|
549
|
+
EG: "EGP",
|
|
550
|
+
EH: "MAD",
|
|
551
|
+
ER: "ERN",
|
|
552
|
+
ES: "EUR",
|
|
553
|
+
ET: "ETB",
|
|
554
|
+
FI: "EUR",
|
|
555
|
+
FJ: "FJD",
|
|
556
|
+
FK: "FKP",
|
|
557
|
+
FM: "USD",
|
|
558
|
+
FO: "DKK",
|
|
559
|
+
FR: "EUR",
|
|
560
|
+
GA: "XAF",
|
|
561
|
+
GB: "GBP",
|
|
562
|
+
GD: "XCD",
|
|
563
|
+
GE: "GEL",
|
|
564
|
+
GF: "EUR",
|
|
565
|
+
GG: "GBP",
|
|
566
|
+
GH: "GHS",
|
|
567
|
+
GI: "GIP",
|
|
568
|
+
GL: "DKK",
|
|
569
|
+
GM: "GMD",
|
|
570
|
+
GN: "GNF",
|
|
571
|
+
GP: "EUR",
|
|
572
|
+
GQ: "XAF",
|
|
573
|
+
GR: "EUR",
|
|
574
|
+
GS: "GBP",
|
|
575
|
+
GT: "GTQ",
|
|
576
|
+
GU: "USD",
|
|
577
|
+
GW: "XOF",
|
|
578
|
+
GY: "GYD",
|
|
579
|
+
HK: "HKD",
|
|
580
|
+
HM: "AUD",
|
|
581
|
+
HN: "HNL",
|
|
582
|
+
HR: "EUR",
|
|
583
|
+
HT: "HTG",
|
|
584
|
+
HU: "HUF",
|
|
585
|
+
ID: "IDR",
|
|
586
|
+
IE: "EUR",
|
|
587
|
+
IL: "ILS",
|
|
588
|
+
IM: "GBP",
|
|
589
|
+
IN: "INR",
|
|
590
|
+
IO: "USD",
|
|
591
|
+
IQ: "IQD",
|
|
592
|
+
IR: "IRR",
|
|
593
|
+
IS: "ISK",
|
|
594
|
+
IT: "EUR",
|
|
595
|
+
JE: "GBP",
|
|
596
|
+
JM: "JMD",
|
|
597
|
+
JO: "JOD",
|
|
598
|
+
JP: "JPY",
|
|
599
|
+
KE: "KES",
|
|
600
|
+
KG: "KGS",
|
|
601
|
+
KH: "KHR",
|
|
602
|
+
KI: "AUD",
|
|
603
|
+
KM: "KMF",
|
|
604
|
+
KN: "XCD",
|
|
605
|
+
KP: "KPW",
|
|
606
|
+
KR: "KRW",
|
|
607
|
+
KW: "KWD",
|
|
608
|
+
KY: "KYD",
|
|
609
|
+
KZ: "KZT",
|
|
610
|
+
LA: "LAK",
|
|
611
|
+
LB: "LBP",
|
|
612
|
+
LC: "XCD",
|
|
613
|
+
LI: "CHF",
|
|
614
|
+
LK: "LKR",
|
|
615
|
+
LR: "LRD",
|
|
616
|
+
LS: "LSL",
|
|
617
|
+
LT: "EUR",
|
|
618
|
+
LU: "EUR",
|
|
619
|
+
LV: "EUR",
|
|
620
|
+
LY: "LYD",
|
|
621
|
+
MA: "MAD",
|
|
622
|
+
MC: "EUR",
|
|
623
|
+
MD: "MDL",
|
|
624
|
+
ME: "EUR",
|
|
625
|
+
MF: "EUR",
|
|
626
|
+
MG: "MGA",
|
|
627
|
+
MH: "USD",
|
|
628
|
+
MK: "MKD",
|
|
629
|
+
ML: "XOF",
|
|
630
|
+
MM: "MMK",
|
|
631
|
+
MN: "MNT",
|
|
632
|
+
MO: "MOP",
|
|
633
|
+
MP: "USD",
|
|
634
|
+
MQ: "EUR",
|
|
635
|
+
MR: "MRU",
|
|
636
|
+
MS: "XCD",
|
|
637
|
+
MT: "EUR",
|
|
638
|
+
MU: "MUR",
|
|
639
|
+
MV: "MVR",
|
|
640
|
+
MW: "MWK",
|
|
641
|
+
MX: "MXN",
|
|
642
|
+
MY: "MYR",
|
|
643
|
+
MZ: "MZN",
|
|
644
|
+
NA: "NAD",
|
|
645
|
+
NC: "XPF",
|
|
646
|
+
NE: "XOF",
|
|
647
|
+
NF: "AUD",
|
|
648
|
+
NG: "NGN",
|
|
649
|
+
NI: "NIO",
|
|
650
|
+
NL: "EUR",
|
|
651
|
+
NO: "NOK",
|
|
652
|
+
NP: "NPR",
|
|
653
|
+
NR: "AUD",
|
|
654
|
+
NU: "NZD",
|
|
655
|
+
NZ: "NZD",
|
|
656
|
+
OM: "OMR",
|
|
657
|
+
PA: "PAB",
|
|
658
|
+
PE: "PEN",
|
|
659
|
+
PF: "XPF",
|
|
660
|
+
PG: "PGK",
|
|
661
|
+
PH: "PHP",
|
|
662
|
+
PK: "PKR",
|
|
663
|
+
PL: "PLN",
|
|
664
|
+
PM: "EUR",
|
|
665
|
+
PN: "NZD",
|
|
666
|
+
PR: "USD",
|
|
667
|
+
PS: "ILS",
|
|
668
|
+
PT: "EUR",
|
|
669
|
+
PW: "USD",
|
|
670
|
+
PY: "PYG",
|
|
671
|
+
QA: "QAR",
|
|
672
|
+
RE: "EUR",
|
|
673
|
+
RO: "RON",
|
|
674
|
+
RS: "RSD",
|
|
675
|
+
RU: "RUB",
|
|
676
|
+
RW: "RWF",
|
|
677
|
+
SA: "SAR",
|
|
678
|
+
SB: "SBD",
|
|
679
|
+
SC: "SCR",
|
|
680
|
+
SD: "SDG",
|
|
681
|
+
SE: "SEK",
|
|
682
|
+
SG: "SGD",
|
|
683
|
+
SH: "SHP",
|
|
684
|
+
SI: "EUR",
|
|
685
|
+
SJ: "NOK",
|
|
686
|
+
SK: "EUR",
|
|
687
|
+
SL: "SLE",
|
|
688
|
+
SM: "EUR",
|
|
689
|
+
SN: "XOF",
|
|
690
|
+
SO: "SOS",
|
|
691
|
+
SR: "SRD",
|
|
692
|
+
SS: "SSP",
|
|
693
|
+
ST: "STN",
|
|
694
|
+
SV: "USD",
|
|
695
|
+
SX: "ANG",
|
|
696
|
+
SY: "SYP",
|
|
697
|
+
SZ: "SZL",
|
|
698
|
+
TC: "USD",
|
|
699
|
+
TD: "XAF",
|
|
700
|
+
TF: "EUR",
|
|
701
|
+
TG: "XOF",
|
|
702
|
+
TH: "THB",
|
|
703
|
+
TJ: "TJS",
|
|
704
|
+
TK: "NZD",
|
|
705
|
+
TL: "USD",
|
|
706
|
+
TM: "TMT",
|
|
707
|
+
TN: "TND",
|
|
708
|
+
TO: "TOP",
|
|
709
|
+
TR: "TRY",
|
|
710
|
+
TT: "TTD",
|
|
711
|
+
TV: "AUD",
|
|
712
|
+
TW: "TWD",
|
|
713
|
+
TZ: "TZS",
|
|
714
|
+
UA: "UAH",
|
|
715
|
+
UG: "UGX",
|
|
716
|
+
US: "USD",
|
|
717
|
+
UY: "UYU",
|
|
718
|
+
UZ: "UZS",
|
|
719
|
+
VA: "EUR",
|
|
720
|
+
VC: "XCD",
|
|
721
|
+
VE: "VES",
|
|
722
|
+
VG: "USD",
|
|
723
|
+
VI: "USD",
|
|
724
|
+
VN: "VND",
|
|
725
|
+
VU: "VUV",
|
|
726
|
+
WF: "XPF",
|
|
727
|
+
WS: "WST",
|
|
728
|
+
YE: "YER",
|
|
729
|
+
YT: "EUR",
|
|
730
|
+
ZA: "ZAR",
|
|
731
|
+
ZM: "ZMW",
|
|
732
|
+
ZW: "ZWL"
|
|
733
|
+
}, uo = (e) => {
|
|
734
|
+
if (e)
|
|
735
|
+
return co[e];
|
|
736
|
+
}, Rt = ({
|
|
737
|
+
country: e,
|
|
738
|
+
pricingCurrencySettings: i,
|
|
739
|
+
fallbackCurrency: o
|
|
740
|
+
}) => {
|
|
741
|
+
const n = uo(e), a = (i == null ? void 0 : i.pricing_currencies) ?? [];
|
|
742
|
+
return n && a.includes(n) ? n : (i == null ? void 0 : i.default_pricing_currency) ?? o ?? n;
|
|
743
|
+
}, po = () => {
|
|
744
|
+
const { getInvoicePreview: e } = ci(), i = _e(), o = V(), n = V(), a = V(), l = V({}), s = V(Pe.Initial), M = V({}), p = V(), E = (_) => `${_.type}:${_.value}`;
|
|
745
|
+
return {
|
|
746
|
+
loadInvoicePreview: async ({
|
|
747
|
+
subscription: _,
|
|
748
|
+
subscriptionStartAt: A,
|
|
749
|
+
customer: c = {},
|
|
750
|
+
seatsValues: C,
|
|
751
|
+
enabledPricingIds: m,
|
|
752
|
+
promotionCode: x
|
|
753
|
+
}) => {
|
|
754
|
+
var r, d, h, S, O, H;
|
|
755
|
+
const P = so(c);
|
|
756
|
+
s.value = Pe.Loading;
|
|
757
|
+
const N = De({
|
|
758
|
+
pricingPlanScheduleInfos: _.pricing_plan_schedule_infos,
|
|
759
|
+
type: "DEFAULT"
|
|
760
|
+
}), G = (r = N == null ? void 0 : N.pricing_plan_version) == null ? void 0 : r.pricing_currency_settings, R = (((d = G == null ? void 0 : G.pricing_currencies) == null ? void 0 : d.length) ?? 0) > 1, u = ((S = (h = N == null ? void 0 : N.pricing_plan_version) == null ? void 0 : h.billing_period_settings) == null ? void 0 : S.billing_periods) ?? [], T = u.length > 1, Q = u.length > 0 ? u.map(({ period: $ }) => $) : _.billing_period ? [_.billing_period] : [], te = Rt({
|
|
761
|
+
country: (O = jt(c)) == null ? void 0 : O.country,
|
|
762
|
+
pricingCurrencySettings: G,
|
|
763
|
+
fallbackCurrency: _.billing_currency
|
|
764
|
+
});
|
|
765
|
+
if (!Q.length) {
|
|
766
|
+
i.warn("INVOICE_PREVIEW_SKIPPED", "No billing period to preview an invoice for", {
|
|
767
|
+
subscriptionId: _.id
|
|
768
|
+
}), s.value = Pe.Done;
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
const v = _.billing_period ? E(_.billing_period) : E(Q[0]), f = Q.map(async ($) => {
|
|
772
|
+
var U;
|
|
773
|
+
const ie = E($), J = Lt({
|
|
774
|
+
enabledPricings: m == null ? void 0 : m.map((X) => ({
|
|
775
|
+
pricing_id: X
|
|
776
|
+
})),
|
|
777
|
+
seatsValues: C,
|
|
778
|
+
pricingPlanScheduleInfos: _.pricing_plan_schedule_infos,
|
|
779
|
+
pricingCurrency: R ? te : void 0,
|
|
780
|
+
billingPeriod: T ? $ : void 0
|
|
781
|
+
}) ?? [];
|
|
782
|
+
if (x) {
|
|
783
|
+
const X = (U = _.pricing_plan_schedule_infos.find(
|
|
784
|
+
({ pricing_plan_schedule: W }) => W.type === "DEFAULT"
|
|
785
|
+
)) == null ? void 0 : U.id;
|
|
786
|
+
if (X) {
|
|
787
|
+
const W = J.find(
|
|
788
|
+
({ pricing_plan_schedule_id: ne }) => ne === X
|
|
789
|
+
);
|
|
790
|
+
W ? W.promotion_codes = [x] : J.push({
|
|
791
|
+
pricing_plan_schedule_id: X,
|
|
792
|
+
promotion_codes: [x]
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
const ee = {
|
|
797
|
+
pricingPlanSubscriptionId: _.id,
|
|
798
|
+
startAt: A,
|
|
799
|
+
customizations: J,
|
|
800
|
+
customer: P
|
|
801
|
+
}, oe = M.value[ie];
|
|
802
|
+
if (oe && si(ee, oe))
|
|
803
|
+
return { periodKey: ie, response: void 0 };
|
|
804
|
+
M.value = {
|
|
805
|
+
...M.value,
|
|
806
|
+
[ie]: ee
|
|
807
|
+
};
|
|
808
|
+
const ae = await e(ee);
|
|
809
|
+
return { periodKey: ie, response: ae };
|
|
810
|
+
});
|
|
811
|
+
try {
|
|
812
|
+
const $ = {
|
|
813
|
+
...l.value
|
|
814
|
+
}, ie = await Promise.all(f), J = _.pricing_plan_schedule_infos.find(
|
|
815
|
+
({ pricing_plan_schedule: oe }) => oe.type === "TRIAL"
|
|
816
|
+
), ee = (H = _.pricing_plan_schedule_infos.find(
|
|
817
|
+
({ pricing_plan_schedule: oe }) => oe.type === "DEFAULT"
|
|
818
|
+
)) == null ? void 0 : H.id;
|
|
819
|
+
ie.forEach(({ periodKey: oe, response: ae }) => {
|
|
820
|
+
var W;
|
|
821
|
+
if (!ae) return;
|
|
822
|
+
p.value = (W = ae.invoice_infos.at(-1)) == null ? void 0 : W.pricing_plan_schedule_id, J && (n.value = ae.first_invoice, J.start_at && J.end_at && (o.value = ri(
|
|
823
|
+
new Date(J.start_at),
|
|
824
|
+
new Date(J.end_at)
|
|
825
|
+
)));
|
|
826
|
+
const U = ae.invoice_infos.find(
|
|
827
|
+
({ pricing_plan_schedule_id: ne }) => ne === ee
|
|
828
|
+
), X = U == null ? void 0 : U.invoices[0];
|
|
829
|
+
X && ($[oe] = X);
|
|
830
|
+
}), l.value = $, a.value = $[v];
|
|
831
|
+
} catch ($) {
|
|
832
|
+
throw s.value = Pe.Failed, i.error("INVOICE_PREVIEW_FAILED", "Failed to load invoice preview", {}, $), $;
|
|
833
|
+
} finally {
|
|
834
|
+
s.value = Pe.Done;
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
invoicePreview: a,
|
|
838
|
+
invoicePreviewByBillingPeriod: l,
|
|
839
|
+
trialInvoicePreview: n,
|
|
840
|
+
trialPeriod: o,
|
|
841
|
+
lastPreviewScheduleId: p,
|
|
842
|
+
isPending: b(() => s.value === Pe.Loading)
|
|
843
|
+
};
|
|
844
|
+
}, Pt = ["email", "country"], $t = "GENERIC_TAX_ID", Dt = {
|
|
845
|
+
US: ["addressLine1", "postalCode"],
|
|
846
|
+
CA: ["state"]
|
|
847
|
+
}, mo = (e) => !e || !Dt[e] ? Pt : [...Dt[e], ...Pt], Nt = (e) => {
|
|
848
|
+
const i = {
|
|
849
|
+
...e.addressLine1 && { line1: e.addressLine1 },
|
|
850
|
+
...e.addressLine2 && { line2: e.addressLine2 },
|
|
851
|
+
...e.city && { city: e.city },
|
|
852
|
+
...e.state && { state: e.state },
|
|
853
|
+
...e.postalCode && { postal_code: e.postalCode },
|
|
854
|
+
country: e.country ?? ""
|
|
855
|
+
};
|
|
856
|
+
return e.type === "ORGANIZATION" ? {
|
|
857
|
+
type: "ORGANIZATION",
|
|
858
|
+
organization: {
|
|
859
|
+
legal_name: e.companyLegalName ?? "",
|
|
860
|
+
registered_address: i,
|
|
861
|
+
...e.companyVatNumber && {
|
|
862
|
+
tax_ids: [{ id: e.companyVatNumber, type: $t }]
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
} : {
|
|
866
|
+
type: "INDIVIDUAL",
|
|
867
|
+
individual: {
|
|
868
|
+
residential_address: i
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
function go() {
|
|
873
|
+
return {
|
|
874
|
+
/**
|
|
875
|
+
* Get geolocation information from the user
|
|
876
|
+
*/
|
|
877
|
+
getGeoLocation() {
|
|
878
|
+
return fetch("https://api.country.is/").then((e) => e.json());
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
function yo({
|
|
883
|
+
initialState: e,
|
|
884
|
+
onRequiredFieldChange: i
|
|
885
|
+
}) {
|
|
886
|
+
const o = V(Re(e)), n = V(Re(e)), a = (y) => {
|
|
887
|
+
const _ = Re({ ...Xt(o.value), ...y });
|
|
888
|
+
o.value = _, n.value = structuredClone(_);
|
|
889
|
+
}, l = b(
|
|
890
|
+
() => mo(o.value.country)
|
|
891
|
+
), s = (y) => l.value.includes(y), M = di(
|
|
892
|
+
{
|
|
893
|
+
email: { required: Mt, email: pi },
|
|
894
|
+
country: { required: Mt },
|
|
895
|
+
state: { required: je(() => s("state")) },
|
|
896
|
+
addressLine1: { required: je(() => s("addressLine1")) },
|
|
897
|
+
postalCode: { required: je(() => s("postalCode")) },
|
|
898
|
+
companyLegalName: je(o.value.type === "ORGANIZATION"),
|
|
899
|
+
companyVatNumber: { taxId: et }
|
|
900
|
+
},
|
|
901
|
+
o
|
|
902
|
+
), p = (y) => {
|
|
903
|
+
y || go().getGeoLocation().then(({ country: _ }) => {
|
|
904
|
+
o.value.country = _;
|
|
905
|
+
});
|
|
906
|
+
}, E = (y, _) => {
|
|
907
|
+
const A = gi({ from: _, to: y }), c = Object.keys(A).find(vo);
|
|
908
|
+
if (c) {
|
|
909
|
+
if (["type", "companyVatNumber"].includes(c)) {
|
|
910
|
+
i(y);
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
913
|
+
if (c === "seatsValues") {
|
|
914
|
+
i(y);
|
|
915
|
+
return;
|
|
916
|
+
}
|
|
917
|
+
if (c === "enabledPricingIds") {
|
|
918
|
+
i(y);
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
if (c !== "email" && s(c)) {
|
|
922
|
+
i(y);
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
return Te(async () => {
|
|
928
|
+
await p(e == null ? void 0 : e.country);
|
|
929
|
+
}), _i(
|
|
930
|
+
() => JSON.parse(JSON.stringify(o.value)),
|
|
931
|
+
E,
|
|
932
|
+
{ debounce: 200 }
|
|
933
|
+
), {
|
|
934
|
+
form: o,
|
|
935
|
+
validation: M,
|
|
936
|
+
getIsFieldRequired: s,
|
|
937
|
+
updateInitialState: a,
|
|
938
|
+
initialState: n
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
const Re = (e = {}) => ({
|
|
942
|
+
email: void 0,
|
|
943
|
+
country: void 0,
|
|
944
|
+
type: "INDIVIDUAL",
|
|
945
|
+
companyLegalName: void 0,
|
|
946
|
+
firstName: void 0,
|
|
947
|
+
infix: void 0,
|
|
948
|
+
lastName: void 0,
|
|
949
|
+
addressLine1: void 0,
|
|
950
|
+
addressLine2: void 0,
|
|
951
|
+
postalCode: void 0,
|
|
952
|
+
city: void 0,
|
|
953
|
+
state: void 0,
|
|
954
|
+
companyVatNumber: void 0,
|
|
955
|
+
seatsValues: void 0,
|
|
956
|
+
enabledPricingIds: void 0,
|
|
957
|
+
...e
|
|
958
|
+
});
|
|
959
|
+
function vo(e) {
|
|
960
|
+
return e in Re();
|
|
961
|
+
}
|
|
962
|
+
function fo(e, i = void 0) {
|
|
963
|
+
const o = i ?? [], n = Je(e);
|
|
964
|
+
for (const a of n)
|
|
965
|
+
if (["EXACTLY_ONE", "AT_LEAST_ONE"].includes(a.selection_constraint)) {
|
|
966
|
+
const l = a.pricings.map((s) => s.id);
|
|
967
|
+
if (i != null && i.some((s) => l.includes(s)))
|
|
968
|
+
continue;
|
|
969
|
+
o.push(a.pricings[0].id);
|
|
970
|
+
}
|
|
971
|
+
return o;
|
|
972
|
+
}
|
|
973
|
+
function _o(e) {
|
|
974
|
+
return Je(e).some(
|
|
975
|
+
(o) => o.selection_constraint === "EXACTLY_ONE" || o.selection_constraint === "AT_LEAST_ONE"
|
|
976
|
+
);
|
|
977
|
+
}
|
|
978
|
+
function Mo(e) {
|
|
979
|
+
const i = Ii(e.pricing_plan_schedule_infos), o = Je(e);
|
|
980
|
+
return i.some((n) => n.product_type === "ADDON") || o.some((n) => n.object_type === "ADDON");
|
|
981
|
+
}
|
|
982
|
+
const ho = "1", Et = (e) => (e ?? []).flatMap(
|
|
983
|
+
(i) => i.configs ?? []
|
|
984
|
+
), bo = (e) => [
|
|
985
|
+
...e.configs ?? [],
|
|
986
|
+
...Et(e.billing_period_configs),
|
|
987
|
+
...(e.pricing_currency_configs ?? []).flatMap((i) => [
|
|
988
|
+
...i.configs ?? [],
|
|
989
|
+
...Et(i.billing_period_configs)
|
|
990
|
+
])
|
|
991
|
+
];
|
|
992
|
+
function Io(e) {
|
|
993
|
+
const i = Ai(e).flatMap((o) => o.items ?? []).flatMap(bo);
|
|
994
|
+
return new Map(
|
|
995
|
+
i.flatMap(
|
|
996
|
+
(o) => {
|
|
997
|
+
var n;
|
|
998
|
+
return (n = o.default_seats_value) != null && n.number ? [[o.id, o.default_seats_value.number]] : [];
|
|
999
|
+
}
|
|
1000
|
+
)
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
function Ao(e) {
|
|
1004
|
+
var n;
|
|
1005
|
+
const i = (n = e == null ? void 0 : e.pricing_plan_schedule) == null ? void 0 : n.seats_values;
|
|
1006
|
+
if (!e || !(i != null && i.length))
|
|
1007
|
+
return;
|
|
1008
|
+
const o = e.pricing_plan_version ? Io(e) : /* @__PURE__ */ new Map();
|
|
1009
|
+
return i.map(({ pricing_item_config_id: a, number: l }) => ({
|
|
1010
|
+
pricing_item_config_id: a,
|
|
1011
|
+
number: l || o.get(a) || ho
|
|
1012
|
+
}));
|
|
1013
|
+
}
|
|
1014
|
+
const Ze = "solvimon_checkout_redirect_state";
|
|
1015
|
+
function Po({
|
|
1016
|
+
initialCountry: e,
|
|
1017
|
+
initialEmail: i,
|
|
1018
|
+
subscriptionId: o,
|
|
1019
|
+
enabledPricingIds: n
|
|
1020
|
+
}) {
|
|
1021
|
+
const a = _e(), l = (() => {
|
|
1022
|
+
if (e) {
|
|
1023
|
+
if (Ve(e)) return e;
|
|
1024
|
+
a.error("INVALID_COUNTRY_CODE", `invalid country code provided: "${e}"`);
|
|
1025
|
+
}
|
|
1026
|
+
})(), s = (() => {
|
|
1027
|
+
if (i) {
|
|
1028
|
+
if (/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)) return i;
|
|
1029
|
+
a.error("INVALID_EMAIL", `invalid email provided: "${i}"`);
|
|
1030
|
+
}
|
|
1031
|
+
})(), M = V(!1), p = V(), { getSubscription: E } = ai(), y = po(), _ = b(() => p.value && u.form.value.country && te.value), {
|
|
1032
|
+
paymentMethodOptions: A,
|
|
1033
|
+
get: c,
|
|
1034
|
+
isPending: C,
|
|
1035
|
+
error: m
|
|
1036
|
+
} = Mi(), x = async (f, r) => {
|
|
1037
|
+
try {
|
|
1038
|
+
await c({
|
|
1039
|
+
subscriptionId: p.value.id,
|
|
1040
|
+
country: f,
|
|
1041
|
+
amount: r
|
|
1042
|
+
});
|
|
1043
|
+
} catch {
|
|
1044
|
+
a.error(
|
|
1045
|
+
"PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
|
|
1046
|
+
"Failed to load the payment methods the checkout can offer",
|
|
1047
|
+
{},
|
|
1048
|
+
m.value
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
}, P = b(() => m.value !== null), N = () => {
|
|
1052
|
+
const { country: f } = u.form.value;
|
|
1053
|
+
!p.value || !f || !te.value || x(f, te.value);
|
|
1054
|
+
}, G = () => {
|
|
1055
|
+
const f = u.form.value;
|
|
1056
|
+
return y.loadInvoicePreview({
|
|
1057
|
+
subscription: p.value,
|
|
1058
|
+
customer: Nt(f),
|
|
1059
|
+
seatsValues: f.seatsValues,
|
|
1060
|
+
enabledPricingIds: f.enabledPricingIds ?? n,
|
|
1061
|
+
promotionCode: f.promotionCode
|
|
1062
|
+
});
|
|
1063
|
+
}, R = async (f) => {
|
|
1064
|
+
const r = f.promotionCode ?? u.form.value.promotionCode, d = f.enabledPricingIds ?? u.form.value.enabledPricingIds, h = { ...u.form.value, ...f };
|
|
1065
|
+
return await y.loadInvoicePreview({
|
|
1066
|
+
subscription: p.value,
|
|
1067
|
+
customer: Nt(h),
|
|
1068
|
+
seatsValues: h.seatsValues,
|
|
1069
|
+
enabledPricingIds: d,
|
|
1070
|
+
promotionCode: r
|
|
1071
|
+
}), {
|
|
1072
|
+
trialInvoicePreview: y.trialInvoicePreview.value,
|
|
1073
|
+
invoicePreview: y.invoicePreview.value
|
|
1074
|
+
};
|
|
1075
|
+
}, u = yo({
|
|
1076
|
+
initialState: {
|
|
1077
|
+
country: l,
|
|
1078
|
+
email: s
|
|
1079
|
+
},
|
|
1080
|
+
onRequiredFieldChange: () => {
|
|
1081
|
+
p.value && G().catch(() => {
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
}), T = async () => {
|
|
1085
|
+
var S, O, H, $;
|
|
1086
|
+
const f = await E({
|
|
1087
|
+
id: o,
|
|
1088
|
+
expanded: !0
|
|
1089
|
+
}), r = De({
|
|
1090
|
+
pricingPlanScheduleInfos: f.pricing_plan_schedule_infos,
|
|
1091
|
+
type: "DEFAULT"
|
|
1092
|
+
}), d = ($ = (H = (O = (S = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : S.billing_period_settings) == null ? void 0 : O.billing_periods) == null ? void 0 : H[0]) == null ? void 0 : $.period;
|
|
1093
|
+
p.value = {
|
|
1094
|
+
...f,
|
|
1095
|
+
billing_period: d ?? f.billing_period
|
|
1096
|
+
};
|
|
1097
|
+
const h = Ao(r);
|
|
1098
|
+
u.updateInitialState({
|
|
1099
|
+
...u.form.value,
|
|
1100
|
+
enabledPricingIds: fo(f, n),
|
|
1101
|
+
...h ? { seatsValues: h } : {}
|
|
1102
|
+
});
|
|
1103
|
+
}, Q = b(() => {
|
|
1104
|
+
var ee, oe, ae, U, X, W, ne, re, ce;
|
|
1105
|
+
const f = u.form.value.firstName || u.form.value.infix || u.form.value.lastName ? {
|
|
1106
|
+
...u.form.value.firstName ? { first_name: u.form.value.firstName } : {},
|
|
1107
|
+
...u.form.value.infix ? { infix: u.form.value.infix } : {},
|
|
1108
|
+
...u.form.value.lastName ? { last_name: u.form.value.lastName } : {}
|
|
1109
|
+
} : {}, r = {
|
|
1110
|
+
...u.form.value.addressLine1 && {
|
|
1111
|
+
line1: u.form.value.addressLine1
|
|
1112
|
+
},
|
|
1113
|
+
...u.form.value.addressLine2 && {
|
|
1114
|
+
line2: u.form.value.addressLine2
|
|
1115
|
+
},
|
|
1116
|
+
...u.form.value.city && { city: u.form.value.city },
|
|
1117
|
+
...u.form.value.postalCode && {
|
|
1118
|
+
postal_code: u.form.value.postalCode
|
|
1119
|
+
},
|
|
1120
|
+
...u.form.value.state && { state: u.form.value.state },
|
|
1121
|
+
country: u.form.value.country ?? ""
|
|
1122
|
+
}, d = De({
|
|
1123
|
+
pricingPlanScheduleInfos: ((ee = p.value) == null ? void 0 : ee.pricing_plan_schedule_infos) ?? [],
|
|
1124
|
+
type: "DEFAULT"
|
|
1125
|
+
}), h = (oe = d == null ? void 0 : d.pricing_plan_version) == null ? void 0 : oe.pricing_currency_settings, S = (((ae = h == null ? void 0 : h.pricing_currencies) == null ? void 0 : ae.length) ?? 0) > 1, H = (((X = (U = d == null ? void 0 : d.pricing_plan_version) == null ? void 0 : U.billing_period_settings) == null ? void 0 : X.billing_periods) ?? []).length > 1, $ = Lt({
|
|
1126
|
+
enabledPricings: (W = u.form.value.enabledPricingIds) == null ? void 0 : W.map((ue) => ({
|
|
1127
|
+
pricing_id: ue
|
|
1128
|
+
})),
|
|
1129
|
+
seatsValues: u.form.value.seatsValues,
|
|
1130
|
+
pricingPlanScheduleInfos: ((ne = p.value) == null ? void 0 : ne.pricing_plan_schedule_infos) ?? [],
|
|
1131
|
+
pricingCurrency: S ? (re = p.value) == null ? void 0 : re.billing_currency : void 0,
|
|
1132
|
+
billingPeriod: H ? (ce = p.value) == null ? void 0 : ce.billing_period : void 0
|
|
1133
|
+
}), ie = u.form.value.promotionCode, J = ie && p.value ? (() => {
|
|
1134
|
+
var Se, Ee, ke;
|
|
1135
|
+
const ue = $ ? [...$] : [], ye = ((Se = ue[0]) == null ? void 0 : Se.pricing_plan_schedule_id) ?? ((ke = De({
|
|
1136
|
+
pricingPlanScheduleInfos: ((Ee = p.value) == null ? void 0 : Ee.pricing_plan_schedule_infos) ?? [],
|
|
1137
|
+
type: "DEFAULT"
|
|
1138
|
+
})) == null ? void 0 : ke.id);
|
|
1139
|
+
if (!ye)
|
|
1140
|
+
return $;
|
|
1141
|
+
const Ne = ue.find(
|
|
1142
|
+
({ pricing_plan_schedule_id: de }) => de === ye
|
|
1143
|
+
);
|
|
1144
|
+
if (Ne)
|
|
1145
|
+
Ne.promotion_codes = [ie];
|
|
1146
|
+
else {
|
|
1147
|
+
const de = $ == null ? void 0 : $[0];
|
|
1148
|
+
ue.push({
|
|
1149
|
+
pricing_plan_schedule_id: ye,
|
|
1150
|
+
...(de == null ? void 0 : de.enabled_pricings) && {
|
|
1151
|
+
enabled_pricings: de.enabled_pricings
|
|
1152
|
+
},
|
|
1153
|
+
...(de == null ? void 0 : de.seats_values) && {
|
|
1154
|
+
seats_values: de.seats_values
|
|
1155
|
+
},
|
|
1156
|
+
promotion_codes: [ie]
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
return ue;
|
|
1160
|
+
})() : $;
|
|
1161
|
+
return {
|
|
1162
|
+
type: "INIT_PRICING_PLAN_SUBSCRIPTION",
|
|
1163
|
+
init_pricing_plan_subscription: {
|
|
1164
|
+
template_pricing_plan_subscription_id: o,
|
|
1165
|
+
...J && {
|
|
1166
|
+
pricing_plan_schedule_customizations: J
|
|
1167
|
+
},
|
|
1168
|
+
customer_details: {
|
|
1169
|
+
email: u.form.value.email ?? "",
|
|
1170
|
+
type: u.form.value.type,
|
|
1171
|
+
...u.form.value.type === "INDIVIDUAL" ? {
|
|
1172
|
+
individual: {
|
|
1173
|
+
residential_address: r,
|
|
1174
|
+
...f ? { name: f } : {}
|
|
1175
|
+
}
|
|
1176
|
+
} : {
|
|
1177
|
+
organization: {
|
|
1178
|
+
registered_address: r,
|
|
1179
|
+
legal_name: u.form.value.companyLegalName ?? "",
|
|
1180
|
+
...u.form.value.companyVatNumber && et.$validator(u.form.value.companyVatNumber, {}, {}) ? {
|
|
1181
|
+
tax_ids: [
|
|
1182
|
+
{
|
|
1183
|
+
id: u.form.value.companyVatNumber,
|
|
1184
|
+
type: $t
|
|
1185
|
+
}
|
|
1186
|
+
]
|
|
1187
|
+
} : {}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
}), te = b(() => {
|
|
1194
|
+
var f, r;
|
|
1195
|
+
return ((f = y.trialInvoicePreview.value) == null ? void 0 : f.invoice_amount_including_tax) ?? ((r = y.invoicePreview.value) == null ? void 0 : r.invoice_amount_including_tax);
|
|
1196
|
+
});
|
|
1197
|
+
Le(
|
|
1198
|
+
[() => u.form.value.country, te],
|
|
1199
|
+
([f, r]) => {
|
|
1200
|
+
!p.value || !f || !r || x(f, r);
|
|
1201
|
+
}
|
|
1202
|
+
);
|
|
1203
|
+
function v() {
|
|
1204
|
+
sessionStorage.setItem(Ze, JSON.stringify(u.form.value));
|
|
1205
|
+
}
|
|
1206
|
+
return Te(async () => {
|
|
1207
|
+
const f = xe("redirect_status"), r = !!xe(Di), d = !!xe("payment_intent_client_secret") || !!xe("setup_intent_client_secret");
|
|
1208
|
+
f === "succeeded" && r && d && (M.value = !0);
|
|
1209
|
+
const S = sessionStorage.getItem(Ze);
|
|
1210
|
+
let O = null;
|
|
1211
|
+
if (S)
|
|
1212
|
+
try {
|
|
1213
|
+
O = JSON.parse(S);
|
|
1214
|
+
} catch {
|
|
1215
|
+
}
|
|
1216
|
+
O && u.updateInitialState(O);
|
|
1217
|
+
try {
|
|
1218
|
+
await T();
|
|
1219
|
+
} catch (H) {
|
|
1220
|
+
throw a.error(
|
|
1221
|
+
"SUBSCRIPTION_LOAD_FAILED",
|
|
1222
|
+
"Failed to load the subscription the checkout prices",
|
|
1223
|
+
{},
|
|
1224
|
+
H
|
|
1225
|
+
), H;
|
|
1226
|
+
}
|
|
1227
|
+
try {
|
|
1228
|
+
await G();
|
|
1229
|
+
} catch {
|
|
1230
|
+
}
|
|
1231
|
+
O && (u.updateInitialState(O), sessionStorage.removeItem(Ze));
|
|
1232
|
+
}), Le(
|
|
1233
|
+
_,
|
|
1234
|
+
(f) => {
|
|
1235
|
+
f && N();
|
|
1236
|
+
},
|
|
1237
|
+
{ once: !0 }
|
|
1238
|
+
), {
|
|
1239
|
+
/** What the host configured, once anything unusable has been dropped and reported. */
|
|
1240
|
+
validatedEmail: s,
|
|
1241
|
+
validatedCountry: l,
|
|
1242
|
+
invoicePreview: y.invoicePreview,
|
|
1243
|
+
invoicePreviewByBillingPeriod: y.invoicePreviewByBillingPeriod,
|
|
1244
|
+
trialInvoicePreview: y.trialInvoicePreview,
|
|
1245
|
+
trialPeriod: y.trialPeriod,
|
|
1246
|
+
loadInvoicePreview: G,
|
|
1247
|
+
updateInvoicePreviewOnBillingInformationChange: R,
|
|
1248
|
+
lastPreviewScheduleId: y.lastPreviewScheduleId,
|
|
1249
|
+
paymentMethodOptions: A,
|
|
1250
|
+
hasPaymentMethodOptionsError: P,
|
|
1251
|
+
retryPaymentMethodOptions: N,
|
|
1252
|
+
isPaymentMethodsPending: C,
|
|
1253
|
+
isInvoicePreviewPending: y.isPending,
|
|
1254
|
+
subscription: p,
|
|
1255
|
+
checkoutForm: u,
|
|
1256
|
+
authorizationContext: Q,
|
|
1257
|
+
isPaid: M,
|
|
1258
|
+
amount: te,
|
|
1259
|
+
saveFormStateForRedirect: v
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
function Do({
|
|
1263
|
+
checkoutForm: e,
|
|
1264
|
+
updateInvoicePreviewOnBillingInformationChange: i,
|
|
1265
|
+
formatErrorMessage: o,
|
|
1266
|
+
onInvalidPromotionCode: n,
|
|
1267
|
+
onApplyError: a
|
|
1268
|
+
}) {
|
|
1269
|
+
const l = _e(), s = V(!1), M = V(null), p = (A, c) => {
|
|
1270
|
+
M.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.";
|
|
1271
|
+
}, E = (A) => No(A) && A.field === "promotion_codes", y = async (A) => {
|
|
1272
|
+
const c = A == null ? void 0 : A.trim();
|
|
1273
|
+
if (c) {
|
|
1274
|
+
M.value = null, e.form.value.promotionCode = c, s.value = !0;
|
|
1275
|
+
try {
|
|
1276
|
+
await i({
|
|
1277
|
+
promotionCode: c
|
|
1278
|
+
});
|
|
1279
|
+
} catch (C) {
|
|
1280
|
+
l.capture(C, {
|
|
1281
|
+
code: "PROMOTION_CODE_APPLY_FAILED",
|
|
1282
|
+
message: "Failed to apply promotion code"
|
|
1283
|
+
}), p("apply", C), a == null || a(), E(C) && (n == null || n()), await _({ suppressError: !0, preserveErrorMessage: !0 });
|
|
1284
|
+
} finally {
|
|
1285
|
+
s.value = !1;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}, _ = async ({
|
|
1289
|
+
suppressError: A = !1,
|
|
1290
|
+
preserveErrorMessage: c = !1
|
|
1291
|
+
} = {}) => {
|
|
1292
|
+
c || (M.value = null), delete e.form.value.promotionCode, s.value = !0;
|
|
1293
|
+
try {
|
|
1294
|
+
await i({});
|
|
1295
|
+
} catch (C) {
|
|
1296
|
+
l.capture(C, {
|
|
1297
|
+
code: "PROMOTION_CODE_REMOVE_FAILED",
|
|
1298
|
+
message: "Failed to remove promotion code"
|
|
1299
|
+
}), A || p("remove", C);
|
|
1300
|
+
} finally {
|
|
1301
|
+
s.value = !1;
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
return {
|
|
1305
|
+
applyPromotionCode: y,
|
|
1306
|
+
removePromotionCode: _,
|
|
1307
|
+
isPromotionCodePending: s,
|
|
1308
|
+
promotionCodeErrorMessage: M
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
function No(e) {
|
|
1312
|
+
return typeof e == "object" && e !== null && "field" in e;
|
|
1313
|
+
}
|
|
1314
|
+
function Eo({
|
|
1315
|
+
subscription: e,
|
|
1316
|
+
promotionCode: i,
|
|
1317
|
+
appliedPromotionCode: o,
|
|
1318
|
+
applyPromotionCode: n
|
|
1319
|
+
}) {
|
|
1320
|
+
Le(
|
|
1321
|
+
e,
|
|
1322
|
+
(a) => {
|
|
1323
|
+
a && i && (o.value = i, n(i));
|
|
1324
|
+
},
|
|
1325
|
+
{ once: !0 }
|
|
1326
|
+
);
|
|
1327
|
+
}
|
|
1328
|
+
const Co = { class: "flex items-center gap-2" }, xo = /* @__PURE__ */ se({
|
|
1329
|
+
__name: "TaxIDCheckNotice",
|
|
1330
|
+
props: {
|
|
1331
|
+
taxIdValidationResult: { type: Object }
|
|
1332
|
+
},
|
|
1333
|
+
setup(e) {
|
|
1334
|
+
const i = e, { formatMessage: o } = ge(), n = b(() => i.taxIdValidationResult.valid === "VALID"), a = b(() => n.value ? o({
|
|
1335
|
+
defaultMessage: "VAT number is valid.",
|
|
1336
|
+
id: "tax_check.valid_vat_number",
|
|
1337
|
+
description: "The message shown when the VAT number is valid"
|
|
1338
|
+
}) : o({
|
|
1339
|
+
defaultMessage: "VAT number is invalid.",
|
|
1340
|
+
id: "tax_check.invalid_vat_number",
|
|
1341
|
+
description: "The message shown when the VAT number is invalid"
|
|
1342
|
+
}));
|
|
1343
|
+
return (l, s) => (g(), k(t(Li), {
|
|
1344
|
+
type: n.value ? "success" : "danger",
|
|
1345
|
+
icon: !1
|
|
1346
|
+
}, {
|
|
1347
|
+
default: I(() => [
|
|
1348
|
+
w("div", Co, [
|
|
1349
|
+
D(t(le), { variant: "body-xs" }, {
|
|
1350
|
+
default: I(() => [
|
|
1351
|
+
K(F(a.value), 1)
|
|
1352
|
+
]),
|
|
1353
|
+
_: 1
|
|
1354
|
+
})
|
|
1355
|
+
])
|
|
1356
|
+
]),
|
|
1357
|
+
_: 1
|
|
1358
|
+
}, 8, ["type"]));
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
function Lo(e) {
|
|
1362
|
+
const { checkTaxID: i } = wi(), o = V(void 0), n = b(() => {
|
|
1363
|
+
var _;
|
|
1364
|
+
return ((_ = e.value.companyVatNumber) == null ? void 0 : _.trim()) ?? "";
|
|
1365
|
+
}), a = b(() => e.value.companyLegalName ?? ""), l = b(() => e.value.country), s = V(!1), M = b(() => Tt(l.value ?? "")), p = b(
|
|
1366
|
+
() => !!(n.value && a.value && l.value)
|
|
1367
|
+
), E = b(() => M.value && n.value);
|
|
1368
|
+
async function y() {
|
|
1369
|
+
var _;
|
|
1370
|
+
if (!(!p.value || !M.value || !l.value)) {
|
|
1371
|
+
s.value = !0;
|
|
1372
|
+
try {
|
|
1373
|
+
const A = await i({
|
|
1374
|
+
type: "ORGANIZATION",
|
|
1375
|
+
organization: {
|
|
1376
|
+
legal_name: a.value,
|
|
1377
|
+
tax_ids: [{ id: n.value, type: "GENERIC_TAX_ID" }],
|
|
1378
|
+
registered_address: {
|
|
1379
|
+
country: l.value
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
(_ = A == null ? void 0 : A.data) != null && _.length ? o.value = A.data[0] : o.value = void 0;
|
|
1384
|
+
} finally {
|
|
1385
|
+
s.value = !1;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
return {
|
|
1390
|
+
runTaxIDCheck: y,
|
|
1391
|
+
taxIdValidationData: o,
|
|
1392
|
+
isTaxIDCheckPending: s,
|
|
1393
|
+
isTaxIDCheckEnabled: p,
|
|
1394
|
+
showViesCheckNotice: E,
|
|
1395
|
+
isSelectedCountryEU: M
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
const wo = { class: "grid grid-cols-1 gap-1" }, To = { class: "grid grid-cols-1 gap-2" }, So = { key: 0 }, ko = { class: "mt-2 flex flex-col gap-3" }, Oo = { class: "grid grid-cols-3 gap-2" }, zo = { key: 0 }, jo = { class: "mt-4 grid grid-cols-1 gap-3" }, Ro = "checkout-form", $o = /* @__PURE__ */ se({
|
|
1399
|
+
__name: "CheckoutForm",
|
|
1400
|
+
props: /* @__PURE__ */ yt({
|
|
1401
|
+
validation: { type: null },
|
|
1402
|
+
initialState: { type: Object },
|
|
1403
|
+
readOnlyEmail: { type: String },
|
|
1404
|
+
showCustomerInfoOnTop: { type: Boolean },
|
|
1405
|
+
isBillingInformationMandatory: { type: Boolean },
|
|
1406
|
+
getIsFieldRequired: { type: Function },
|
|
1407
|
+
readOnly: { type: Boolean }
|
|
1408
|
+
}, {
|
|
1409
|
+
modelValue: { required: !0 },
|
|
1410
|
+
modelModifiers: {}
|
|
1411
|
+
}),
|
|
1412
|
+
emits: /* @__PURE__ */ yt(["submit"], ["update:modelValue"]),
|
|
1413
|
+
setup(e) {
|
|
1414
|
+
const i = e, o = V(!1), n = Wt(e, "modelValue"), a = b({
|
|
1415
|
+
get: () => n.value.type === "ORGANIZATION",
|
|
1416
|
+
set: (x) => {
|
|
1417
|
+
n.value.type = x ? "ORGANIZATION" : "INDIVIDUAL";
|
|
1418
|
+
}
|
|
1419
|
+
}), l = b(() => n.value.type === "ORGANIZATION"), s = b({
|
|
1420
|
+
get: () => n.value.country,
|
|
1421
|
+
set: (x) => {
|
|
1422
|
+
n.value.country = x && Ve(x) ? x : void 0;
|
|
1423
|
+
}
|
|
1424
|
+
}), M = b(() => n.value.country !== "US"), { isTaxIDCheckEnabled: p, isTaxIDCheckPending: E, taxIdValidationData: y, runTaxIDCheck: _ } = Lo(n), { $t: A } = ge(), c = yi(), C = (x) => i.getIsFieldRequired(x) ? "" : " " + A({
|
|
1425
|
+
defaultMessage: "(optional)",
|
|
1426
|
+
id: "checkout.optional_suffix.label",
|
|
1427
|
+
description: "The suffix for optional fields in the checkout form"
|
|
1428
|
+
}), m = b(
|
|
1429
|
+
() => n.value.country ? xi(n.value.country) : void 0
|
|
1430
|
+
);
|
|
1431
|
+
return (x, P) => (g(), Z("form", {
|
|
1432
|
+
id: Ro,
|
|
1433
|
+
onSubmit: P[12] || (P[12] = $e((N) => x.$emit("submit", n.value), ["prevent"]))
|
|
1434
|
+
}, [
|
|
1435
|
+
w("div", wo, [
|
|
1436
|
+
D(t(pe), {
|
|
1437
|
+
title: t(c).contactInformationTitle
|
|
1438
|
+
}, {
|
|
1439
|
+
default: I(() => [
|
|
1440
|
+
w("div", To, [
|
|
1441
|
+
e.readOnly ? (g(), Z(fe, { key: 0 }, [
|
|
1442
|
+
D(t(le), {
|
|
1443
|
+
variant: "body",
|
|
1444
|
+
tag: "span",
|
|
1445
|
+
weight: "semibold",
|
|
1446
|
+
"no-spacing": ""
|
|
1447
|
+
}, {
|
|
1448
|
+
default: I(() => [
|
|
1449
|
+
K(F(n.value.email), 1)
|
|
1450
|
+
]),
|
|
1451
|
+
_: 1
|
|
1452
|
+
}),
|
|
1453
|
+
D(t(le), {
|
|
1454
|
+
variant: "body-sm",
|
|
1455
|
+
tag: "span",
|
|
1456
|
+
color: "subtle",
|
|
1457
|
+
"no-spacing": ""
|
|
1458
|
+
}, {
|
|
1459
|
+
default: I(() => [
|
|
1460
|
+
K(F(m.value), 1)
|
|
1461
|
+
]),
|
|
1462
|
+
_: 1
|
|
1463
|
+
})
|
|
1464
|
+
], 64)) : (g(), Z(fe, { key: 1 }, [
|
|
1465
|
+
D(t(me), {
|
|
1466
|
+
modelValue: n.value.email,
|
|
1467
|
+
"onUpdate:modelValue": P[0] || (P[0] = (N) => n.value.email = N),
|
|
1468
|
+
required: "",
|
|
1469
|
+
type: "email",
|
|
1470
|
+
name: "email",
|
|
1471
|
+
disabled: !!e.readOnlyEmail,
|
|
1472
|
+
label: t(c).emailLabel,
|
|
1473
|
+
placeholder: t(c).emailPlaceholder + C("email"),
|
|
1474
|
+
error: e.validation.value.email.$errors
|
|
1475
|
+
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "error"]),
|
|
1476
|
+
D(t(vi), {
|
|
1477
|
+
"single-model-value": s.value,
|
|
1478
|
+
"onUpdate:singleModelValue": P[3] || (P[3] = (N) => s.value = N),
|
|
1479
|
+
required: "",
|
|
1480
|
+
name: "country",
|
|
1481
|
+
label: t(c).countryLabel + C("country"),
|
|
1482
|
+
error: e.validation.value.country.$errors
|
|
1483
|
+
}, {
|
|
1484
|
+
"label-suffix": I(() => [
|
|
1485
|
+
!o.value && !e.isBillingInformationMandatory ? (g(), k(t(Ie), {
|
|
1486
|
+
key: 0,
|
|
1487
|
+
size: "xs",
|
|
1488
|
+
intent: "subtle",
|
|
1489
|
+
"icon-prefix": "add",
|
|
1490
|
+
class: "py-0.5",
|
|
1491
|
+
onClick: P[1] || (P[1] = (N) => o.value = !0)
|
|
1492
|
+
}, {
|
|
1493
|
+
default: I(() => [
|
|
1494
|
+
K(F(t(A)({
|
|
1495
|
+
defaultMessage: "More billing details",
|
|
1496
|
+
description: "Label of the button in the checkout that lets you fill out all billing details",
|
|
1497
|
+
id: "checkout.billing_details.add_billing_details_button.label"
|
|
1498
|
+
})), 1)
|
|
1499
|
+
]),
|
|
1500
|
+
_: 1
|
|
1501
|
+
})) : B("", !0),
|
|
1502
|
+
o.value && !e.isBillingInformationMandatory ? (g(), k(t(Ie), {
|
|
1503
|
+
key: 1,
|
|
1504
|
+
size: "sm",
|
|
1505
|
+
intent: "subtle",
|
|
1506
|
+
"icon-prefix": "close",
|
|
1507
|
+
class: "py-0.5",
|
|
1508
|
+
onClick: P[2] || (P[2] = (N) => o.value = !1)
|
|
1509
|
+
}, {
|
|
1510
|
+
default: I(() => [
|
|
1511
|
+
K(F(t(A)({
|
|
1512
|
+
defaultMessage: "Remove billing details",
|
|
1513
|
+
id: "checkout.billing_details.remove_billing_details_button.label",
|
|
1514
|
+
description: "Label of the button in the checkout that lets you remove the billing details"
|
|
1515
|
+
})), 1)
|
|
1516
|
+
]),
|
|
1517
|
+
_: 1
|
|
1518
|
+
})) : B("", !0)
|
|
1519
|
+
]),
|
|
1520
|
+
_: 1
|
|
1521
|
+
}, 8, ["single-model-value", "label", "error"])
|
|
1522
|
+
], 64))
|
|
1523
|
+
]),
|
|
1524
|
+
D(t(bt), {
|
|
1525
|
+
"is-open": o.value || !!e.isBillingInformationMandatory
|
|
1526
|
+
}, {
|
|
1527
|
+
default: I(() => [
|
|
1528
|
+
o.value || e.isBillingInformationMandatory ? (g(), Z("div", So, [
|
|
1529
|
+
w("div", ko, [
|
|
1530
|
+
D(t(me), {
|
|
1531
|
+
modelValue: n.value.addressLine1,
|
|
1532
|
+
"onUpdate:modelValue": P[4] || (P[4] = (N) => n.value.addressLine1 = N),
|
|
1533
|
+
name: "address_line_1",
|
|
1534
|
+
label: t(A)({
|
|
1535
|
+
defaultMessage: "Billing address",
|
|
1536
|
+
id: "checkout.address.title",
|
|
1537
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
1538
|
+
}),
|
|
1539
|
+
placeholder: t(A)({
|
|
1540
|
+
defaultMessage: "Address line 1...",
|
|
1541
|
+
id: "checkout.address.line1.placeholder",
|
|
1542
|
+
description: "Address line 1 of the customer address in the checkout form"
|
|
1543
|
+
}) + C("addressLine1"),
|
|
1544
|
+
required: "",
|
|
1545
|
+
error: e.validation.value.addressLine1.$errors
|
|
1546
|
+
}, null, 8, ["modelValue", "label", "placeholder", "error"]),
|
|
1547
|
+
D(t(me), {
|
|
1548
|
+
modelValue: n.value.addressLine2,
|
|
1549
|
+
"onUpdate:modelValue": P[5] || (P[5] = (N) => n.value.addressLine2 = N),
|
|
1550
|
+
name: "address_line_2",
|
|
1551
|
+
placeholder: t(A)({
|
|
1552
|
+
defaultMessage: "Address line 2...",
|
|
1553
|
+
id: "checkout.address.line2.placeholder",
|
|
1554
|
+
description: "Address line 2 of the customer address in the checkout form"
|
|
1555
|
+
}) + C("addressLine2")
|
|
1556
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1557
|
+
w("div", Oo, [
|
|
1558
|
+
D(t(me), {
|
|
1559
|
+
modelValue: n.value.postalCode,
|
|
1560
|
+
"onUpdate:modelValue": P[6] || (P[6] = (N) => n.value.postalCode = N),
|
|
1561
|
+
name: "postal_code",
|
|
1562
|
+
placeholder: t(c).postalCodePlaceholder + C("postalCode"),
|
|
1563
|
+
error: e.validation.value.addressLine1.$errors
|
|
1564
|
+
}, null, 8, ["modelValue", "placeholder", "error"]),
|
|
1565
|
+
D(t(me), {
|
|
1566
|
+
modelValue: n.value.city,
|
|
1567
|
+
"onUpdate:modelValue": P[7] || (P[7] = (N) => n.value.city = N),
|
|
1568
|
+
name: "city",
|
|
1569
|
+
placeholder: t(c).cityPlaceholder + C("city")
|
|
1570
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1571
|
+
D(t(me), {
|
|
1572
|
+
modelValue: n.value.state,
|
|
1573
|
+
"onUpdate:modelValue": P[8] || (P[8] = (N) => n.value.state = N),
|
|
1574
|
+
name: "state",
|
|
1575
|
+
placeholder: t(c).statePlaceholder + C("state"),
|
|
1576
|
+
error: e.validation.value.state.$errors
|
|
1577
|
+
}, null, 8, ["modelValue", "placeholder", "error"])
|
|
1578
|
+
])
|
|
1579
|
+
])
|
|
1580
|
+
])) : B("", !0)
|
|
1581
|
+
]),
|
|
1582
|
+
_: 1
|
|
1583
|
+
}, 8, ["is-open"])
|
|
1584
|
+
]),
|
|
1585
|
+
_: 1
|
|
1586
|
+
}, 8, ["title"]),
|
|
1587
|
+
e.readOnly ? B("", !0) : (g(), k(t(pe), { key: 0 }, {
|
|
1588
|
+
default: I(() => [
|
|
1589
|
+
D(fi, {
|
|
1590
|
+
modelValue: a.value,
|
|
1591
|
+
"onUpdate:modelValue": P[9] || (P[9] = (N) => a.value = N),
|
|
1592
|
+
"no-spacing": "",
|
|
1593
|
+
class: "!flex"
|
|
1594
|
+
}, null, 8, ["modelValue"]),
|
|
1595
|
+
D(t(bt), { "is-open": l.value }, {
|
|
1596
|
+
default: I(() => [
|
|
1597
|
+
l.value ? (g(), Z("div", zo, [
|
|
1598
|
+
w("div", jo, [
|
|
1599
|
+
D(t(me), {
|
|
1600
|
+
modelValue: n.value.companyLegalName,
|
|
1601
|
+
"onUpdate:modelValue": P[10] || (P[10] = (N) => n.value.companyLegalName = N),
|
|
1602
|
+
required: "",
|
|
1603
|
+
name: "legal_name",
|
|
1604
|
+
label: t(c).legalNameLabel,
|
|
1605
|
+
placeholder: t(c).legalNamePlaceholder
|
|
1606
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1607
|
+
M.value ? (g(), k(t(me), {
|
|
1608
|
+
key: 0,
|
|
1609
|
+
modelValue: n.value.companyVatNumber,
|
|
1610
|
+
"onUpdate:modelValue": P[11] || (P[11] = (N) => n.value.companyVatNumber = N),
|
|
1611
|
+
name: "vat_number",
|
|
1612
|
+
"input-class": "focus:outline-none focus:ring-0",
|
|
1613
|
+
label: t(c).vatNumberLabel,
|
|
1614
|
+
placeholder: t(c).vatNumberPlaceholder,
|
|
1615
|
+
error: e.validation.value.companyVatNumber.$errors,
|
|
1616
|
+
"suffix-class": "px-2 border-l-0"
|
|
1617
|
+
}, qe({ _: 2 }, [
|
|
1618
|
+
t(Tt)(n.value.country ?? "") ? {
|
|
1619
|
+
name: "suffix",
|
|
1620
|
+
fn: I(() => [
|
|
1621
|
+
D(t(Ie), {
|
|
1622
|
+
type: "button",
|
|
1623
|
+
size: "sm",
|
|
1624
|
+
intent: "secondary",
|
|
1625
|
+
disabled: !t(p) || t(E) || e.validation.value.companyVatNumber.$invalid,
|
|
1626
|
+
onClick: t(_)
|
|
1627
|
+
}, {
|
|
1628
|
+
default: I(() => [
|
|
1629
|
+
K(F(t(A)({
|
|
1630
|
+
defaultMessage: "Check",
|
|
1631
|
+
id: "checkout.vat_number.check_button.label",
|
|
1632
|
+
description: "The label for the check button in the checkout form"
|
|
1633
|
+
})), 1)
|
|
1634
|
+
]),
|
|
1635
|
+
_: 1
|
|
1636
|
+
}, 8, ["disabled", "onClick"])
|
|
1637
|
+
]),
|
|
1638
|
+
key: "0"
|
|
1639
|
+
} : void 0
|
|
1640
|
+
]), 1032, ["modelValue", "label", "placeholder", "error"])) : B("", !0),
|
|
1641
|
+
t(y) ? (g(), Z("div", {
|
|
1642
|
+
key: 1,
|
|
1643
|
+
class: he({ "opacity-75": t(E) })
|
|
1644
|
+
}, [
|
|
1645
|
+
D(xo, { "tax-id-validation-result": t(y) }, null, 8, ["tax-id-validation-result"])
|
|
1646
|
+
], 2)) : B("", !0)
|
|
1647
|
+
])
|
|
1648
|
+
])) : B("", !0)
|
|
1649
|
+
]),
|
|
1650
|
+
_: 1
|
|
1651
|
+
}, 8, ["is-open"])
|
|
1652
|
+
]),
|
|
1653
|
+
_: 1
|
|
1654
|
+
}))
|
|
1655
|
+
])
|
|
1656
|
+
], 32));
|
|
1657
|
+
}
|
|
1658
|
+
}), Bo = {
|
|
1659
|
+
key: 0,
|
|
1660
|
+
class: "flex items-center"
|
|
1661
|
+
}, Uo = ["innerHTML"], Fo = ["innerHTML"], Vo = /* @__PURE__ */ se({
|
|
1662
|
+
__name: "CheckoutTitle",
|
|
1663
|
+
props: {
|
|
1664
|
+
trialPeriod: { type: Object },
|
|
1665
|
+
subscriptionName: { type: String },
|
|
1666
|
+
amount: { type: Object },
|
|
1667
|
+
billingPeriod: { type: Object },
|
|
1668
|
+
countryCode: { type: null },
|
|
1669
|
+
trialStartDate: { type: Date },
|
|
1670
|
+
subscriptionStartDate: { type: Date }
|
|
1671
|
+
},
|
|
1672
|
+
setup(e) {
|
|
1673
|
+
const { $t: i } = ge();
|
|
1674
|
+
return (o, n) => (g(), Z("div", null, [
|
|
1675
|
+
w("div", null, [
|
|
1676
|
+
D(t(le), {
|
|
1677
|
+
variant: "heading-1",
|
|
1678
|
+
class: "inline-block"
|
|
1679
|
+
}, {
|
|
1680
|
+
default: I(() => [
|
|
1681
|
+
K(F(e.trialStartDate ? e.subscriptionName : t(i)({
|
|
1682
|
+
defaultMessage: "Pay and subscribe",
|
|
1683
|
+
id: "checkout.page_title",
|
|
1684
|
+
description: "The title of the checkout page"
|
|
1685
|
+
})) + F(" "), 1),
|
|
1686
|
+
e.trialPeriod ? (g(), k(t(li), {
|
|
1687
|
+
key: 0,
|
|
1688
|
+
"trial-period": e.trialPeriod,
|
|
1689
|
+
size: "lg",
|
|
1690
|
+
class: "-translate-y-0.5"
|
|
1691
|
+
}, null, 8, ["trial-period"])) : B("", !0)
|
|
1692
|
+
]),
|
|
1693
|
+
_: 1
|
|
1694
|
+
})
|
|
1695
|
+
]),
|
|
1696
|
+
D(t(le), {
|
|
1697
|
+
variant: "body-sm",
|
|
1698
|
+
color: "subtle",
|
|
1699
|
+
"no-spacing": ""
|
|
1700
|
+
}, {
|
|
1701
|
+
default: I(() => [
|
|
1702
|
+
e.countryCode ? (g(), Z("span", {
|
|
1703
|
+
key: 1,
|
|
1704
|
+
innerHTML: e.trialStartDate ? t(i)(
|
|
1705
|
+
{
|
|
1706
|
+
defaultMessage: "You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.",
|
|
1707
|
+
id: "checkout.trial_period_description",
|
|
1708
|
+
description: "The description of the trial period"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
price: t(be)(e.amount),
|
|
1712
|
+
// @ts-expect-error formatjs does not support this type yet
|
|
1713
|
+
startDate: e.subscriptionStartDate,
|
|
1714
|
+
period_name: t(Oe)(e.billingPeriod, {
|
|
1715
|
+
short: !0,
|
|
1716
|
+
hideValueForExactPeriods: !0
|
|
1717
|
+
}),
|
|
1718
|
+
// @ts-ignore
|
|
1719
|
+
strong: (a) => `<strong>${a}</strong>`
|
|
1720
|
+
}
|
|
1721
|
+
) : t(i)(
|
|
1722
|
+
{
|
|
1723
|
+
defaultMessage: "You will be billed <strong>{price}</strong> per {period_name}, starting today.",
|
|
1724
|
+
id: "checkout.subscription_description",
|
|
1725
|
+
description: "The description of the subscription"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
price: t(be)(e.amount),
|
|
1729
|
+
period_name: t(Oe)(e.billingPeriod, {
|
|
1730
|
+
short: !0,
|
|
1731
|
+
hideValueForExactPeriods: !0
|
|
1732
|
+
}),
|
|
1733
|
+
// @ts-ignore
|
|
1734
|
+
strong: (a) => `<strong>${a}</strong>`
|
|
1735
|
+
}
|
|
1736
|
+
)
|
|
1737
|
+
}, null, 8, Fo)) : (g(), Z("span", Bo, [
|
|
1738
|
+
D(t(Oi), { "is-dark-mode": "" }, {
|
|
1739
|
+
tooltip: I(() => [
|
|
1740
|
+
D(t(zi), null, {
|
|
1741
|
+
default: I(() => [
|
|
1742
|
+
D(t(ji), null, {
|
|
1743
|
+
default: I(() => [
|
|
1744
|
+
K(F(t(i)({
|
|
1745
|
+
defaultMessage: "Will be determined by billing information",
|
|
1746
|
+
description: "Tooltip content for the invoice preview when taxes are not determined by billing information",
|
|
1747
|
+
id: "invoice_preview.taxes_not_determined_by_billing_information_tooltip"
|
|
1748
|
+
})), 1)
|
|
1749
|
+
]),
|
|
1750
|
+
_: 1
|
|
1751
|
+
})
|
|
1752
|
+
]),
|
|
1753
|
+
_: 1
|
|
1754
|
+
})
|
|
1755
|
+
]),
|
|
1756
|
+
default: I(() => [
|
|
1757
|
+
D(t(Ti), {
|
|
1758
|
+
"width-class": "w-10",
|
|
1759
|
+
"height-class": "h-4",
|
|
1760
|
+
shade: "darker",
|
|
1761
|
+
class: "mr-1.5 inline-block"
|
|
1762
|
+
})
|
|
1763
|
+
]),
|
|
1764
|
+
_: 1
|
|
1765
|
+
}),
|
|
1766
|
+
w("span", {
|
|
1767
|
+
innerHTML: e.trialStartDate ? t(i)(
|
|
1768
|
+
{
|
|
1769
|
+
defaultMessage: "per {period_name} starting, {startDate, date, long}",
|
|
1770
|
+
id: "checkout.trial_period_description_without_price",
|
|
1771
|
+
description: "The description of the trial period, while the price is still being determined"
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
// @ts-expect-error formatjs does not support this type yet
|
|
1775
|
+
startDate: e.subscriptionStartDate,
|
|
1776
|
+
period_name: t(Oe)(e.billingPeriod, {
|
|
1777
|
+
short: !0,
|
|
1778
|
+
hideValueForExactPeriods: !0
|
|
1779
|
+
})
|
|
1780
|
+
}
|
|
1781
|
+
) : t(i)(
|
|
1782
|
+
{
|
|
1783
|
+
defaultMessage: "per {period_name}, starting today",
|
|
1784
|
+
id: "checkout.subscription_description_without_price",
|
|
1785
|
+
description: "The description of the subscription, while the price is still being determined"
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
period_name: t(Oe)(e.billingPeriod, {
|
|
1789
|
+
short: !0,
|
|
1790
|
+
hideValueForExactPeriods: !0
|
|
1791
|
+
})
|
|
1792
|
+
}
|
|
1793
|
+
)
|
|
1794
|
+
}, null, 8, Uo)
|
|
1795
|
+
]))
|
|
1796
|
+
]),
|
|
1797
|
+
_: 1
|
|
1798
|
+
})
|
|
1799
|
+
]));
|
|
1800
|
+
}
|
|
1801
|
+
}), Go = (e) => {
|
|
1802
|
+
var i;
|
|
1803
|
+
return ((i = e.periods) == null ? void 0 : i.some(
|
|
1804
|
+
(o) => o.groups.some(
|
|
1805
|
+
(n) => {
|
|
1806
|
+
var a;
|
|
1807
|
+
return (a = n.lines) == null ? void 0 : a.some(
|
|
1808
|
+
(l) => l.product_items.some(
|
|
1809
|
+
(s) => s.model_type === "USAGE_BASED"
|
|
1810
|
+
)
|
|
1811
|
+
);
|
|
1812
|
+
}
|
|
1813
|
+
)
|
|
1814
|
+
)) ?? !1;
|
|
1815
|
+
}, Yo = { class: "flex min-h-96 w-full items-center justify-center" }, Ko = { class: "max-w-sm" }, Qo = /* @__PURE__ */ se({
|
|
1816
|
+
__name: "CheckoutNotAvailable",
|
|
1817
|
+
setup(e) {
|
|
1818
|
+
const { $t: i } = ge(), o = () => {
|
|
1819
|
+
window.location.reload();
|
|
1820
|
+
};
|
|
1821
|
+
return (n, a) => (g(), Z("div", Yo, [
|
|
1822
|
+
w("div", Ko, [
|
|
1823
|
+
D(t(le), { variant: "heading-1" }, {
|
|
1824
|
+
default: I(() => [
|
|
1825
|
+
K(F(t(i)({
|
|
1826
|
+
defaultMessage: "Checkout not available",
|
|
1827
|
+
id: "checkout.not_available.title",
|
|
1828
|
+
description: "The title of the checkout not available page"
|
|
1829
|
+
})), 1)
|
|
1830
|
+
]),
|
|
1831
|
+
_: 1
|
|
1832
|
+
}),
|
|
1833
|
+
D(t(le), {
|
|
1834
|
+
variant: "body-sm",
|
|
1835
|
+
color: "subtle"
|
|
1836
|
+
}, {
|
|
1837
|
+
default: I(() => [
|
|
1838
|
+
K(F(t(i)({
|
|
1839
|
+
defaultMessage: "The checkout is currently not available.",
|
|
1840
|
+
id: "checkout.not_available.description",
|
|
1841
|
+
description: "The description of the checkout not available page"
|
|
1842
|
+
})) + " ", 1),
|
|
1843
|
+
w("a", {
|
|
1844
|
+
href: "#",
|
|
1845
|
+
class: "text-primary-900 hover:underline",
|
|
1846
|
+
onClick: $e(o, ["prevent"])
|
|
1847
|
+
}, F(t(i)({
|
|
1848
|
+
defaultMessage: "Reload",
|
|
1849
|
+
id: "checkout.not_available.reload_button",
|
|
1850
|
+
description: "The label of the reload button"
|
|
1851
|
+
})), 1),
|
|
1852
|
+
K(" " + F(t(i)({
|
|
1853
|
+
defaultMessage: "this page to try again, or contact customer support.",
|
|
1854
|
+
id: "checkout.not_available.contact_support_message",
|
|
1855
|
+
description: "The message shown when the user wants to contact customer support"
|
|
1856
|
+
})), 1)
|
|
1857
|
+
]),
|
|
1858
|
+
_: 1
|
|
1859
|
+
})
|
|
1860
|
+
])
|
|
1861
|
+
]));
|
|
1862
|
+
}
|
|
1863
|
+
}), Ho = /* @__PURE__ */ se({
|
|
1864
|
+
__name: "SubscriptionPaymentCompletedCard",
|
|
1865
|
+
emits: ["continue-to-merchant"],
|
|
1866
|
+
setup(e) {
|
|
1867
|
+
const { $t: i } = ge();
|
|
1868
|
+
return (o, n) => (g(), k(Ri, {
|
|
1869
|
+
status: "success",
|
|
1870
|
+
title: t(i)({
|
|
1871
|
+
defaultMessage: "Payment successful",
|
|
1872
|
+
id: "subscription_payment_completed_card.title",
|
|
1873
|
+
description: "The title for when a payment has been successful"
|
|
1874
|
+
})
|
|
1875
|
+
}, {
|
|
1876
|
+
default: I(() => [
|
|
1877
|
+
D(t(le), {
|
|
1878
|
+
variant: "body-xs",
|
|
1879
|
+
color: "subtle",
|
|
1880
|
+
tag: "span"
|
|
1881
|
+
}, {
|
|
1882
|
+
default: I(() => [
|
|
1883
|
+
K(F(t(i)({
|
|
1884
|
+
defaultMessage: "Thank you for subscribing.",
|
|
1885
|
+
id: "subscription_payment_completed_card.thank_you_for_subscribing",
|
|
1886
|
+
description: "The text shown after a successful message before a redirect"
|
|
1887
|
+
})), 1)
|
|
1888
|
+
]),
|
|
1889
|
+
_: 1
|
|
1890
|
+
})
|
|
1891
|
+
]),
|
|
1892
|
+
_: 1
|
|
1893
|
+
}, 8, ["title"]));
|
|
1894
|
+
}
|
|
1895
|
+
}), Zo = { class: "flex items-start" }, Xo = { class: "flex grow flex-col" }, Wo = { class: "flex items-center gap-1" }, qo = { class: "ml-4 flex items-center self-center" }, Jo = /* @__PURE__ */ se({
|
|
1896
|
+
__name: "PricingGroupContent",
|
|
1897
|
+
props: {
|
|
1898
|
+
name: { type: String },
|
|
1899
|
+
description: { type: String }
|
|
1900
|
+
},
|
|
1901
|
+
setup(e) {
|
|
1902
|
+
return (i, o) => (g(), Z("div", Zo, [
|
|
1903
|
+
w("div", Xo, [
|
|
1904
|
+
w("div", Wo, [
|
|
1905
|
+
D(t(le), {
|
|
1906
|
+
tag: "span",
|
|
1907
|
+
variant: "body-sm",
|
|
1908
|
+
weight: "semibold"
|
|
1909
|
+
}, {
|
|
1910
|
+
default: I(() => [
|
|
1911
|
+
K(F(e.name), 1)
|
|
1912
|
+
]),
|
|
1913
|
+
_: 1
|
|
1914
|
+
}),
|
|
1915
|
+
Xe(i.$slots, "badge")
|
|
1916
|
+
]),
|
|
1917
|
+
D(t(le), {
|
|
1918
|
+
tag: "span",
|
|
1919
|
+
variant: "body-xs",
|
|
1920
|
+
color: "subtle"
|
|
1921
|
+
}, {
|
|
1922
|
+
default: I(() => [
|
|
1923
|
+
K(F(e.description), 1)
|
|
1924
|
+
]),
|
|
1925
|
+
_: 1
|
|
1926
|
+
})
|
|
1927
|
+
]),
|
|
1928
|
+
w("div", qo, [
|
|
1929
|
+
Xe(i.$slots, "default")
|
|
1930
|
+
])
|
|
1931
|
+
]));
|
|
1932
|
+
}
|
|
1933
|
+
}), en = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, tn = { class: "px-3 py-2" }, on = { class: "sv-order-summary__billing-period flex flex-col gap-3" }, nn = { class: "px-3 py-2" }, an = {
|
|
1934
|
+
key: 3,
|
|
1935
|
+
class: "sv-order-summary__items"
|
|
1936
|
+
}, Ct = /* @__PURE__ */ se({
|
|
1937
|
+
__name: "OrderSummary",
|
|
1938
|
+
props: {
|
|
1939
|
+
subscription: { type: Object },
|
|
1940
|
+
invoice: { type: Object },
|
|
1941
|
+
invoicePreviewByBillingPeriod: { type: Object },
|
|
1942
|
+
trialInvoice: { type: Object },
|
|
1943
|
+
enabledPricingIds: { type: Array },
|
|
1944
|
+
trialPeriod: { type: Object },
|
|
1945
|
+
avatar: { type: String },
|
|
1946
|
+
isPaid: { type: Boolean },
|
|
1947
|
+
isUsageBased: { type: Boolean },
|
|
1948
|
+
isPreviewAndPaymentMethodsPending: { type: Boolean },
|
|
1949
|
+
collapsible: { type: String },
|
|
1950
|
+
noTitle: { type: Boolean },
|
|
1951
|
+
countryCode: { type: null },
|
|
1952
|
+
variant: { type: String }
|
|
1953
|
+
},
|
|
1954
|
+
emits: ["billing-period-change"],
|
|
1955
|
+
setup(e, { emit: i }) {
|
|
1956
|
+
const o = e, n = i, { $t: a } = ge(), { map: l, formatTimePeriod: s } = xt(), { isMobileViewport: M } = wt(), p = b(() => M.value ? "sm" : "xs"), E = (r) => `${r.type}:${r.value}`, y = ["DAY", "WEEK", "MONTH", "YEAR"], _ = (r) => y.includes(r), A = (r) => {
|
|
1957
|
+
if (!r)
|
|
1958
|
+
return;
|
|
1959
|
+
const [d, h] = r.split(":"), S = Number(h);
|
|
1960
|
+
if (!(!S || !_(d)))
|
|
1961
|
+
return { type: d, value: S };
|
|
1962
|
+
}, c = b({
|
|
1963
|
+
get: () => {
|
|
1964
|
+
const r = o.subscription.billing_period;
|
|
1965
|
+
return r ? `${r.type}:${r.value}` : void 0;
|
|
1966
|
+
},
|
|
1967
|
+
set: (r) => {
|
|
1968
|
+
if (!r) return;
|
|
1969
|
+
const [d, h] = r.split(":"), S = Number(h);
|
|
1970
|
+
S && _(d) && n("billing-period-change", { type: d, value: S });
|
|
1971
|
+
}
|
|
1972
|
+
}), C = (r) => {
|
|
1973
|
+
var S, O, H, $;
|
|
1974
|
+
const d = ($ = (H = (O = (S = o.invoicePreviewByBillingPeriod) == null ? void 0 : S[E(r)]) == null ? void 0 : O.periods) == null ? void 0 : H[0]) == null ? void 0 : $.amount_including_tax;
|
|
1975
|
+
if (!d)
|
|
1976
|
+
return;
|
|
1977
|
+
const h = r.type === "MONTH" && r.value === 3 ? a({
|
|
1978
|
+
defaultMessage: "/quarter",
|
|
1979
|
+
id: "checkout.order_summary_block.billing_period.per_quarter",
|
|
1980
|
+
description: "Period label for quarterly billing"
|
|
1981
|
+
}) : a(
|
|
1982
|
+
{
|
|
1983
|
+
defaultMessage: "/{period}",
|
|
1984
|
+
id: "checkout.order_summary_block.billing_period.per_label",
|
|
1985
|
+
description: "Period label for billing cycles"
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
period: s(r, {
|
|
1989
|
+
prefix: !1,
|
|
1990
|
+
hideValueForExactPeriods: !0
|
|
1991
|
+
})
|
|
1992
|
+
}
|
|
1993
|
+
);
|
|
1994
|
+
return a(
|
|
1995
|
+
{
|
|
1996
|
+
defaultMessage: "{amount}{period}",
|
|
1997
|
+
id: "checkout.order_summary_block.billing_period.sub_label",
|
|
1998
|
+
description: "Billing period option sublabel showing price per period"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
amount: be(d),
|
|
2002
|
+
period: h
|
|
2003
|
+
}
|
|
2004
|
+
);
|
|
2005
|
+
}, m = (r) => {
|
|
2006
|
+
var d, h, S, O;
|
|
2007
|
+
return (O = (S = (h = (d = o.invoicePreviewByBillingPeriod) == null ? void 0 : d[E(r)]) == null ? void 0 : h.periods) == null ? void 0 : S[0]) == null ? void 0 : O.amount_including_tax;
|
|
2008
|
+
}, x = (r) => Number(r.quantity), P = (r, d) => {
|
|
2009
|
+
if (!d)
|
|
2010
|
+
return;
|
|
2011
|
+
const S = {
|
|
2012
|
+
DAY: 365,
|
|
2013
|
+
WEEK: 52,
|
|
2014
|
+
MONTH: 12,
|
|
2015
|
+
YEAR: 1
|
|
2016
|
+
}[r.type] / Math.max(r.value ?? 1, 1), O = x(d) * S;
|
|
2017
|
+
if (Number.isFinite(O))
|
|
2018
|
+
return {
|
|
2019
|
+
quantity: O.toFixed(2),
|
|
2020
|
+
currency: d.currency
|
|
2021
|
+
};
|
|
2022
|
+
}, N = (r, d) => {
|
|
2023
|
+
if (!r || !d)
|
|
2024
|
+
return;
|
|
2025
|
+
const h = x(r) - x(d);
|
|
2026
|
+
if (!(!Number.isFinite(h) || h <= 0))
|
|
2027
|
+
return {
|
|
2028
|
+
quantity: h.toFixed(2),
|
|
2029
|
+
currency: r.currency
|
|
2030
|
+
};
|
|
2031
|
+
}, G = (r) => {
|
|
2032
|
+
if (!r)
|
|
2033
|
+
return;
|
|
2034
|
+
const d = a(
|
|
2035
|
+
{
|
|
2036
|
+
defaultMessage: "Save {amount}",
|
|
2037
|
+
id: "checkout.order_summary_block.billing_period.save_badge.prefix",
|
|
2038
|
+
description: "First line for the savings badge label"
|
|
2039
|
+
},
|
|
2040
|
+
{ amount: be(r) }
|
|
2041
|
+
), h = a({
|
|
2042
|
+
defaultMessage: "/year",
|
|
2043
|
+
id: "checkout.order_summary_block.billing_period.save_badge.suffix",
|
|
2044
|
+
description: "Second line for the savings badge label"
|
|
2045
|
+
});
|
|
2046
|
+
return `${d}${h}`;
|
|
2047
|
+
}, R = b(() => {
|
|
2048
|
+
var ee, oe, ae;
|
|
2049
|
+
const r = De({
|
|
2050
|
+
pricingPlanScheduleInfos: o.subscription.pricing_plan_schedule_infos ?? [],
|
|
2051
|
+
type: "DEFAULT"
|
|
2052
|
+
}), d = ((oe = (ee = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : ee.billing_period_settings) == null ? void 0 : oe.billing_periods) ?? [], h = /* @__PURE__ */ new Map(), S = (U) => {
|
|
2053
|
+
U && h.set(E(U), U);
|
|
2054
|
+
}, O = (U) => {
|
|
2055
|
+
var X;
|
|
2056
|
+
(X = U == null ? void 0 : U.items) == null || X.forEach((W) => {
|
|
2057
|
+
var ne, re;
|
|
2058
|
+
(ne = W.billing_period_configs) == null || ne.forEach(
|
|
2059
|
+
(ce) => S(ce.billing_period)
|
|
2060
|
+
), (re = W.pricing_currency_configs) == null || re.forEach((ce) => {
|
|
2061
|
+
var ue;
|
|
2062
|
+
(ue = ce.billing_period_configs) == null || ue.forEach(
|
|
2063
|
+
(ye) => S(ye.billing_period)
|
|
2064
|
+
);
|
|
2065
|
+
});
|
|
2066
|
+
});
|
|
2067
|
+
};
|
|
2068
|
+
if ((((ae = r == null ? void 0 : r.pricing_plan_version) == null ? void 0 : ae.pricing_categories) ?? []).forEach((U) => {
|
|
2069
|
+
var X, W;
|
|
2070
|
+
(X = U.pricings) == null || X.forEach((ne) => O(ne)), (W = U.pricing_groups) == null || W.forEach(
|
|
2071
|
+
(ne) => {
|
|
2072
|
+
var re;
|
|
2073
|
+
return (re = ne.pricings) == null ? void 0 : re.forEach((ce) => O(ce));
|
|
2074
|
+
}
|
|
2075
|
+
);
|
|
2076
|
+
}), !h.size)
|
|
2077
|
+
return [];
|
|
2078
|
+
const $ = d.map((U) => h.get(E(U.period))).filter((U) => !!U), ie = new Set($.map(E)), J = [...h.values()].filter(
|
|
2079
|
+
(U) => !ie.has(E(U))
|
|
2080
|
+
);
|
|
2081
|
+
return [...$, ...J];
|
|
2082
|
+
}), u = b(() => {
|
|
2083
|
+
const r = R.value[R.value.length - 1], d = r ? P(r, m(r)) : void 0;
|
|
2084
|
+
return R.value.map((S) => {
|
|
2085
|
+
const O = S.type === "MONTH" && S.value === 3 ? a({
|
|
2086
|
+
defaultMessage: "Billed quarterly",
|
|
2087
|
+
id: "checkout.order_summary_block.billing_period.quarterly",
|
|
2088
|
+
description: "Billing period option label for quarterly billing"
|
|
2089
|
+
}) : a(
|
|
2090
|
+
{
|
|
2091
|
+
defaultMessage: "Billed {period}",
|
|
2092
|
+
id: "checkout.order_summary_block.billing_period.label",
|
|
2093
|
+
description: "Billing period option label for the selected period"
|
|
2094
|
+
},
|
|
2095
|
+
{ period: l.value[S.type].full }
|
|
2096
|
+
), H = m(S), $ = P(S, H), ie = r && S.type === r.type && S.value === r.value ? void 0 : N($, d), J = G(ie);
|
|
2097
|
+
return {
|
|
2098
|
+
label: O,
|
|
2099
|
+
subLabel: C(S),
|
|
2100
|
+
labelSuffixComponent: J ? {
|
|
2101
|
+
component: It,
|
|
2102
|
+
props: {
|
|
2103
|
+
color: "primary",
|
|
2104
|
+
content: J,
|
|
2105
|
+
size: p.value,
|
|
2106
|
+
class: "whitespace-nowrap text-left leading-tight"
|
|
2107
|
+
}
|
|
2108
|
+
} : void 0,
|
|
2109
|
+
hidden: c.value === `${S.type}:${S.value}`,
|
|
2110
|
+
value: `${S.type}:${S.value}`
|
|
2111
|
+
};
|
|
2112
|
+
});
|
|
2113
|
+
}), T = b(() => {
|
|
2114
|
+
const r = u.value, d = r[0], h = r[r.length - 1];
|
|
2115
|
+
return {
|
|
2116
|
+
smallestPeriod: d == null ? void 0 : d.value,
|
|
2117
|
+
biggestPeriod: h == null ? void 0 : h.value
|
|
2118
|
+
};
|
|
2119
|
+
}), Q = b(
|
|
2120
|
+
() => u.value.find((r) => r.value === T.value.biggestPeriod)
|
|
2121
|
+
), te = b(
|
|
2122
|
+
() => u.value.find((r) => r.value === c.value)
|
|
2123
|
+
), v = b(() => {
|
|
2124
|
+
var ee, oe, ae, U, X, W, ne, re;
|
|
2125
|
+
const r = u.value, d = r[r.length - 1], h = c.value;
|
|
2126
|
+
if (!d || !h || h === d.value)
|
|
2127
|
+
return "";
|
|
2128
|
+
const S = A(d.value);
|
|
2129
|
+
if (!S)
|
|
2130
|
+
return "";
|
|
2131
|
+
const O = (U = (ae = (oe = (ee = o.invoicePreviewByBillingPeriod) == null ? void 0 : ee[d.value]) == null ? void 0 : oe.periods) == null ? void 0 : ae[0]) == null ? void 0 : U.amount_including_tax, H = A(h), $ = (re = (ne = (W = (X = o.invoicePreviewByBillingPeriod) == null ? void 0 : X[h]) == null ? void 0 : W.periods) == null ? void 0 : ne[0]) == null ? void 0 : re.amount_including_tax;
|
|
2132
|
+
if (!H || !$)
|
|
2133
|
+
return "";
|
|
2134
|
+
const ie = P(H, $), J = P(S, O);
|
|
2135
|
+
return G(N(ie, J)) ?? "";
|
|
2136
|
+
}), f = (r) => {
|
|
2137
|
+
const { smallestPeriod: d, biggestPeriod: h } = T.value;
|
|
2138
|
+
c.value = r ? h : d;
|
|
2139
|
+
};
|
|
2140
|
+
return (r, d) => (g(), k(t(pe), {
|
|
2141
|
+
class: "sv-order-summary",
|
|
2142
|
+
"no-border": "",
|
|
2143
|
+
"no-spacing": "",
|
|
2144
|
+
"content-background": "none",
|
|
2145
|
+
title: e.noTitle ? void 0 : t(a)({
|
|
2146
|
+
defaultMessage: "Order summary",
|
|
2147
|
+
id: "checkout.order_summary_block.title",
|
|
2148
|
+
description: "The title of the order summary block that lists the subscription cost in the checkout"
|
|
2149
|
+
})
|
|
2150
|
+
}, {
|
|
2151
|
+
default: I(() => [
|
|
2152
|
+
w("div", en, [
|
|
2153
|
+
D(t(pe), {
|
|
2154
|
+
"no-spacing": "",
|
|
2155
|
+
class: "sv-order-summary__subscription"
|
|
2156
|
+
}, {
|
|
2157
|
+
default: I(() => [
|
|
2158
|
+
e.subscription ? (g(), k(Ui, {
|
|
2159
|
+
key: 0,
|
|
2160
|
+
avatar: e.avatar,
|
|
2161
|
+
invoice: e.invoice,
|
|
2162
|
+
subscription: e.subscription,
|
|
2163
|
+
"enabled-pricing-ids": e.enabledPricingIds,
|
|
2164
|
+
loading: e.isPreviewAndPaymentMethodsPending,
|
|
2165
|
+
"trial-period": e.trialPeriod
|
|
2166
|
+
}, null, 8, ["avatar", "invoice", "subscription", "enabled-pricing-ids", "loading", "trial-period"])) : B("", !0)
|
|
2167
|
+
]),
|
|
2168
|
+
_: 1
|
|
2169
|
+
}),
|
|
2170
|
+
u.value.length === 2 ? (g(), k(t(pe), {
|
|
2171
|
+
key: 0,
|
|
2172
|
+
"no-spacing": "",
|
|
2173
|
+
"content-classes": c.value === T.value.biggestPeriod ? "border-primary-500" : void 0
|
|
2174
|
+
}, {
|
|
2175
|
+
default: I(() => {
|
|
2176
|
+
var h;
|
|
2177
|
+
return [
|
|
2178
|
+
w("div", tn, [
|
|
2179
|
+
w("div", on, [
|
|
2180
|
+
Q.value ? (g(), k(Jo, {
|
|
2181
|
+
key: 0,
|
|
2182
|
+
name: Q.value.label,
|
|
2183
|
+
description: ((h = te.value) == null ? void 0 : h.subLabel) ?? ""
|
|
2184
|
+
}, qe({
|
|
2185
|
+
default: I(() => [
|
|
2186
|
+
D(t(mi), {
|
|
2187
|
+
"model-value": c.value === T.value.biggestPeriod,
|
|
2188
|
+
"onUpdate:modelValue": f
|
|
2189
|
+
}, null, 8, ["model-value"])
|
|
2190
|
+
]),
|
|
2191
|
+
_: 2
|
|
2192
|
+
}, [
|
|
2193
|
+
v.value ? {
|
|
2194
|
+
name: "badge",
|
|
2195
|
+
fn: I(() => [
|
|
2196
|
+
D(t(It), {
|
|
2197
|
+
intent: "brand",
|
|
2198
|
+
content: v.value,
|
|
2199
|
+
size: p.value,
|
|
2200
|
+
class: "whitespace-nowrap text-left leading-tight"
|
|
2201
|
+
}, null, 8, ["content", "size"])
|
|
2202
|
+
]),
|
|
2203
|
+
key: "0"
|
|
2204
|
+
} : void 0
|
|
2205
|
+
]), 1032, ["name", "description"])) : B("", !0)
|
|
2206
|
+
])
|
|
2207
|
+
])
|
|
2208
|
+
];
|
|
2209
|
+
}),
|
|
2210
|
+
_: 1
|
|
2211
|
+
}, 8, ["content-classes"])) : u.value.length > 2 ? (g(), k(t($i), {
|
|
2212
|
+
key: 1,
|
|
2213
|
+
"single-model-value": c.value,
|
|
2214
|
+
"onUpdate:singleModelValue": d[0] || (d[0] = (h) => c.value = h),
|
|
2215
|
+
class: "sv-order-summary__billing-period",
|
|
2216
|
+
options: u.value,
|
|
2217
|
+
size: "xl",
|
|
2218
|
+
"has-large-dropdown": "",
|
|
2219
|
+
"show-sub-label-in-input": "",
|
|
2220
|
+
"show-suffix-in-closed-input": ""
|
|
2221
|
+
}, null, 8, ["single-model-value", "options"])) : B("", !0),
|
|
2222
|
+
e.isUsageBased ? (g(), k(t(pe), {
|
|
2223
|
+
key: 2,
|
|
2224
|
+
"no-spacing": "",
|
|
2225
|
+
class: "sv-order-summary__usage"
|
|
2226
|
+
}, {
|
|
2227
|
+
default: I(() => [
|
|
2228
|
+
w("div", nn, [
|
|
2229
|
+
D(t(le), {
|
|
2230
|
+
"no-spacing": "",
|
|
2231
|
+
variant: "body-sm",
|
|
2232
|
+
color: "subtle"
|
|
2233
|
+
}, {
|
|
2234
|
+
default: I(() => [
|
|
2235
|
+
K(F(t(a)({
|
|
2236
|
+
defaultMessage: "+ Usage",
|
|
2237
|
+
id: "checkout.invoice_preview.usage_based_message",
|
|
2238
|
+
description: "The message shown for the usage based invoice preview"
|
|
2239
|
+
})), 1)
|
|
2240
|
+
]),
|
|
2241
|
+
_: 1
|
|
2242
|
+
})
|
|
2243
|
+
])
|
|
2244
|
+
]),
|
|
2245
|
+
_: 1
|
|
2246
|
+
})) : B("", !0),
|
|
2247
|
+
e.invoice && e.variant !== "products-inline" ? (g(), Z("div", an, [
|
|
2248
|
+
D(t(Si), {
|
|
2249
|
+
invoice: e.invoice,
|
|
2250
|
+
"wrapper-component": t(pe)
|
|
2251
|
+
}, null, 8, ["invoice", "wrapper-component"])
|
|
2252
|
+
])) : B("", !0),
|
|
2253
|
+
D(t(pe), { class: "sv-order-summary__totals" }, {
|
|
2254
|
+
default: I(() => [
|
|
2255
|
+
e.invoice ? (g(), k(t(ki), {
|
|
2256
|
+
key: 0,
|
|
2257
|
+
class: "sv-order-summary__invoice-preview",
|
|
2258
|
+
variant: e.variant === "products-inline" ? "default" : "without-products",
|
|
2259
|
+
invoice: e.invoice,
|
|
2260
|
+
"trial-invoice": e.trialInvoice,
|
|
2261
|
+
"is-paid": e.isPaid,
|
|
2262
|
+
collapsible: e.collapsible,
|
|
2263
|
+
"is-preview-without-taxes": !e.countryCode,
|
|
2264
|
+
"is-customer-facing": ""
|
|
2265
|
+
}, null, 8, ["variant", "invoice", "trial-invoice", "is-paid", "collapsible", "is-preview-without-taxes"])) : (g(), k(t(le), {
|
|
2266
|
+
key: 1,
|
|
2267
|
+
variant: "body-sm",
|
|
2268
|
+
color: "subtle",
|
|
2269
|
+
class: "sv-order-summary__empty"
|
|
2270
|
+
}, {
|
|
2271
|
+
default: I(() => [
|
|
2272
|
+
K(F(t(a)({
|
|
2273
|
+
defaultMessage: "Please select a country first",
|
|
2274
|
+
description: "The message shown for the invoice preview when no country is set",
|
|
2275
|
+
id: "checkout.invoice_preview.no_country_selected_message"
|
|
2276
|
+
})), 1)
|
|
2277
|
+
]),
|
|
2278
|
+
_: 1
|
|
2279
|
+
}))
|
|
2280
|
+
]),
|
|
2281
|
+
_: 1
|
|
2282
|
+
})
|
|
2283
|
+
])
|
|
2284
|
+
]),
|
|
2285
|
+
_: 1
|
|
2286
|
+
}, 8, ["title"]));
|
|
2287
|
+
}
|
|
2288
|
+
});
|
|
2289
|
+
async function Bt(e, i) {
|
|
2290
|
+
const { AdyenCheckout: o } = await Ue();
|
|
2291
|
+
return o(
|
|
2292
|
+
Ni({
|
|
2293
|
+
locale: e.locale,
|
|
2294
|
+
amount: e.amount,
|
|
2295
|
+
countryCode: e.countryCode,
|
|
2296
|
+
paymentMethodOptionResponse: e.paymentMethodOptionsResponse,
|
|
2297
|
+
logger: i
|
|
2298
|
+
})
|
|
2299
|
+
);
|
|
2300
|
+
}
|
|
2301
|
+
function Ut({
|
|
2302
|
+
props: e,
|
|
2303
|
+
create: i,
|
|
2304
|
+
onMissingButton: o,
|
|
2305
|
+
onMountFailed: n,
|
|
2306
|
+
afterMount: a
|
|
2307
|
+
}) {
|
|
2308
|
+
const l = V(), s = _e(), M = async () => {
|
|
2309
|
+
const p = await Bt(e, s), E = await i(p);
|
|
2310
|
+
if (!l.value) {
|
|
2311
|
+
o();
|
|
2312
|
+
return;
|
|
2313
|
+
}
|
|
2314
|
+
try {
|
|
2315
|
+
await E.isAvailable(), E.mount(l.value), a == null || a();
|
|
2316
|
+
} catch (y) {
|
|
2317
|
+
n(y);
|
|
2318
|
+
}
|
|
2319
|
+
};
|
|
2320
|
+
return Te(() => {
|
|
2321
|
+
M();
|
|
2322
|
+
}), { buttonRef: l };
|
|
2323
|
+
}
|
|
2324
|
+
const rn = {
|
|
2325
|
+
key: 0,
|
|
2326
|
+
id: "svg-logo",
|
|
2327
|
+
viewBox: "0 0 35 15",
|
|
2328
|
+
class: "h-[44px]"
|
|
2329
|
+
}, ln = {
|
|
2330
|
+
key: 1,
|
|
2331
|
+
src: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAxcHgiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAxMDEgMzIiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHhtbG5zPSJodHRwOiYjeDJGOyYjeDJGO3d3dy53My5vcmcmI3gyRjsyMDAwJiN4MkY7c3ZnIj48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDEyLjIzNyAyLjggTCA0LjQzNyAyLjggQyAzLjkzNyAyLjggMy40MzcgMy4yIDMuMzM3IDMuNyBMIDAuMjM3IDIzLjcgQyAwLjEzNyAyNC4xIDAuNDM3IDI0LjQgMC44MzcgMjQuNCBMIDQuNTM3IDI0LjQgQyA1LjAzNyAyNC40IDUuNTM3IDI0IDUuNjM3IDIzLjUgTCA2LjQzNyAxOC4xIEMgNi41MzcgMTcuNiA2LjkzNyAxNy4yIDcuNTM3IDE3LjIgTCAxMC4wMzcgMTcuMiBDIDE1LjEzNyAxNy4yIDE4LjEzNyAxNC43IDE4LjkzNyA5LjggQyAxOS4yMzcgNy43IDE4LjkzNyA2IDE3LjkzNyA0LjggQyAxNi44MzcgMy41IDE0LjgzNyAyLjggMTIuMjM3IDIuOCBaIE0gMTMuMTM3IDEwLjEgQyAxMi43MzcgMTIuOSAxMC41MzcgMTIuOSA4LjUzNyAxMi45IEwgNy4zMzcgMTIuOSBMIDguMTM3IDcuNyBDIDguMTM3IDcuNCA4LjQzNyA3LjIgOC43MzcgNy4yIEwgOS4yMzcgNy4yIEMgMTAuNjM3IDcuMiAxMS45MzcgNy4yIDEyLjYzNyA4IEMgMTMuMTM3IDguNCAxMy4zMzcgOS4xIDEzLjEzNyAxMC4xIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDAzMDg3IiBkPSJNIDM1LjQzNyAxMCBMIDMxLjczNyAxMCBDIDMxLjQzNyAxMCAzMS4xMzcgMTAuMiAzMS4xMzcgMTAuNSBMIDMwLjkzNyAxMS41IEwgMzAuNjM3IDExLjEgQyAyOS44MzcgOS45IDI4LjAzNyA5LjUgMjYuMjM3IDkuNSBDIDIyLjEzNyA5LjUgMTguNjM3IDEyLjYgMTcuOTM3IDE3IEMgMTcuNTM3IDE5LjIgMTguMDM3IDIxLjMgMTkuMzM3IDIyLjcgQyAyMC40MzcgMjQgMjIuMTM3IDI0LjYgMjQuMDM3IDI0LjYgQyAyNy4zMzcgMjQuNiAyOS4yMzcgMjIuNSAyOS4yMzcgMjIuNSBMIDI5LjAzNyAyMy41IEMgMjguOTM3IDIzLjkgMjkuMjM3IDI0LjMgMjkuNjM3IDI0LjMgTCAzMy4wMzcgMjQuMyBDIDMzLjUzNyAyNC4zIDM0LjAzNyAyMy45IDM0LjEzNyAyMy40IEwgMzYuMTM3IDEwLjYgQyAzNi4yMzcgMTAuNCAzNS44MzcgMTAgMzUuNDM3IDEwIFogTSAzMC4zMzcgMTcuMiBDIDI5LjkzNyAxOS4zIDI4LjMzNyAyMC44IDI2LjEzNyAyMC44IEMgMjUuMDM3IDIwLjggMjQuMjM3IDIwLjUgMjMuNjM3IDE5LjggQyAyMy4wMzcgMTkuMSAyMi44MzcgMTguMiAyMy4wMzcgMTcuMiBDIDIzLjMzNyAxNS4xIDI1LjEzNyAxMy42IDI3LjIzNyAxMy42IEMgMjguMzM3IDEzLjYgMjkuMTM3IDE0IDI5LjczNyAxNC42IEMgMzAuMjM3IDE1LjMgMzAuNDM3IDE2LjIgMzAuMzM3IDE3LjIgWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiMwMDMwODciIGQ9Ik0gNTUuMzM3IDEwIEwgNTEuNjM3IDEwIEMgNTEuMjM3IDEwIDUwLjkzNyAxMC4yIDUwLjczNyAxMC41IEwgNDUuNTM3IDE4LjEgTCA0My4zMzcgMTAuOCBDIDQzLjIzNyAxMC4zIDQyLjczNyAxMCA0Mi4zMzcgMTAgTCAzOC42MzcgMTAgQyAzOC4yMzcgMTAgMzcuODM3IDEwLjQgMzguMDM3IDEwLjkgTCA0Mi4xMzcgMjMgTCAzOC4yMzcgMjguNCBDIDM3LjkzNyAyOC44IDM4LjIzNyAyOS40IDM4LjczNyAyOS40IEwgNDIuNDM3IDI5LjQgQyA0Mi44MzcgMjkuNCA0My4xMzcgMjkuMiA0My4zMzcgMjguOSBMIDU1LjgzNyAxMC45IEMgNTYuMTM3IDEwLjYgNTUuODM3IDEwIDU1LjMzNyAxMCBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA2Ny43MzcgMi44IEwgNTkuOTM3IDIuOCBDIDU5LjQzNyAyLjggNTguOTM3IDMuMiA1OC44MzcgMy43IEwgNTUuNzM3IDIzLjYgQyA1NS42MzcgMjQgNTUuOTM3IDI0LjMgNTYuMzM3IDI0LjMgTCA2MC4zMzcgMjQuMyBDIDYwLjczNyAyNC4zIDYxLjAzNyAyNCA2MS4wMzcgMjMuNyBMIDYxLjkzNyAxOCBDIDYyLjAzNyAxNy41IDYyLjQzNyAxNy4xIDYzLjAzNyAxNy4xIEwgNjUuNTM3IDE3LjEgQyA3MC42MzcgMTcuMSA3My42MzcgMTQuNiA3NC40MzcgOS43IEMgNzQuNzM3IDcuNiA3NC40MzcgNS45IDczLjQzNyA0LjcgQyA3Mi4yMzcgMy41IDcwLjMzNyAyLjggNjcuNzM3IDIuOCBaIE0gNjguNjM3IDEwLjEgQyA2OC4yMzcgMTIuOSA2Ni4wMzcgMTIuOSA2NC4wMzcgMTIuOSBMIDYyLjgzNyAxMi45IEwgNjMuNjM3IDcuNyBDIDYzLjYzNyA3LjQgNjMuOTM3IDcuMiA2NC4yMzcgNy4yIEwgNjQuNzM3IDcuMiBDIDY2LjEzNyA3LjIgNjcuNDM3IDcuMiA2OC4xMzcgOCBDIDY4LjYzNyA4LjQgNjguNzM3IDkuMSA2OC42MzcgMTAuMSBaIj48L3BhdGg+PHBhdGggZmlsbD0iIzAwOWNkZSIgZD0iTSA5MC45MzcgMTAgTCA4Ny4yMzcgMTAgQyA4Ni45MzcgMTAgODYuNjM3IDEwLjIgODYuNjM3IDEwLjUgTCA4Ni40MzcgMTEuNSBMIDg2LjEzNyAxMS4xIEMgODUuMzM3IDkuOSA4My41MzcgOS41IDgxLjczNyA5LjUgQyA3Ny42MzcgOS41IDc0LjEzNyAxMi42IDczLjQzNyAxNyBDIDczLjAzNyAxOS4yIDczLjUzNyAyMS4zIDc0LjgzNyAyMi43IEMgNzUuOTM3IDI0IDc3LjYzNyAyNC42IDc5LjUzNyAyNC42IEMgODIuODM3IDI0LjYgODQuNzM3IDIyLjUgODQuNzM3IDIyLjUgTCA4NC41MzcgMjMuNSBDIDg0LjQzNyAyMy45IDg0LjczNyAyNC4zIDg1LjEzNyAyNC4zIEwgODguNTM3IDI0LjMgQyA4OS4wMzcgMjQuMyA4OS41MzcgMjMuOSA4OS42MzcgMjMuNCBMIDkxLjYzNyAxMC42IEMgOTEuNjM3IDEwLjQgOTEuMzM3IDEwIDkwLjkzNyAxMCBaIE0gODUuNzM3IDE3LjIgQyA4NS4zMzcgMTkuMyA4My43MzcgMjAuOCA4MS41MzcgMjAuOCBDIDgwLjQzNyAyMC44IDc5LjYzNyAyMC41IDc5LjAzNyAxOS44IEMgNzguNDM3IDE5LjEgNzguMjM3IDE4LjIgNzguNDM3IDE3LjIgQyA3OC43MzcgMTUuMSA4MC41MzcgMTMuNiA4Mi42MzcgMTMuNiBDIDgzLjczNyAxMy42IDg0LjUzNyAxNCA4NS4xMzcgMTQuNiBDIDg1LjczNyAxNS4zIDg1LjkzNyAxNi4yIDg1LjczNyAxNy4yIFoiPjwvcGF0aD48cGF0aCBmaWxsPSIjMDA5Y2RlIiBkPSJNIDk1LjMzNyAzLjMgTCA5Mi4xMzcgMjMuNiBDIDkyLjAzNyAyNCA5Mi4zMzcgMjQuMyA5Mi43MzcgMjQuMyBMIDk1LjkzNyAyNC4zIEMgOTYuNDM3IDI0LjMgOTYuOTM3IDIzLjkgOTcuMDM3IDIzLjQgTCAxMDAuMjM3IDMuNSBDIDEwMC4zMzcgMy4xIDEwMC4wMzcgMi44IDk5LjYzNyAyLjggTCA5Ni4wMzcgMi44IEMgOTUuNjM3IDIuOCA5NS40MzcgMyA5NS4zMzcgMy4zIFoiPjwvcGF0aD48L3N2Zz4",
|
|
2332
|
+
role: "presentation",
|
|
2333
|
+
class: "h-[22px]"
|
|
2334
|
+
}, tt = /* @__PURE__ */ se({
|
|
2335
|
+
__name: "ExpressPaymentMethodButton",
|
|
2336
|
+
props: {
|
|
2337
|
+
type: { type: String }
|
|
2338
|
+
},
|
|
2339
|
+
emits: ["click"],
|
|
2340
|
+
setup(e, { emit: i }) {
|
|
2341
|
+
const o = e, n = i, a = b(() => {
|
|
2342
|
+
switch (o.type) {
|
|
2343
|
+
case "applepay":
|
|
2344
|
+
return "Apple Pay";
|
|
2345
|
+
case "googlepay":
|
|
2346
|
+
return "Google Pay";
|
|
2347
|
+
case "paypal":
|
|
2348
|
+
return "PayPal";
|
|
2349
|
+
default:
|
|
2350
|
+
return;
|
|
2351
|
+
}
|
|
2352
|
+
}), l = b(() => {
|
|
2353
|
+
switch (o.type) {
|
|
2354
|
+
case "applepay":
|
|
2355
|
+
return "!bg-black !py-0";
|
|
2356
|
+
case "googlepay":
|
|
2357
|
+
return "!bg-black bg-[url(https://www.gstatic.com/instantbuy/svg/dark_gpay.svg)] bg-[length:auto_42.5%]";
|
|
2358
|
+
case "paypal":
|
|
2359
|
+
return "!bg-[#ffc439]";
|
|
2360
|
+
default:
|
|
2361
|
+
return;
|
|
2362
|
+
}
|
|
2363
|
+
});
|
|
2364
|
+
function s() {
|
|
2365
|
+
n("click");
|
|
2366
|
+
}
|
|
2367
|
+
return (M, p) => (g(), k(t(Ie), {
|
|
2368
|
+
size: "lg",
|
|
2369
|
+
"aria-label": a.value,
|
|
2370
|
+
class: he([l.value, "!block h-11 w-full bg-center bg-no-repeat"]),
|
|
2371
|
+
onClick: s
|
|
2372
|
+
}, {
|
|
2373
|
+
default: I(() => [
|
|
2374
|
+
o.type === "applepay" ? (g(), Z("svg", rn, [...p[0] || (p[0] = [
|
|
2375
|
+
w("svg", {
|
|
2376
|
+
id: "svg-logo",
|
|
2377
|
+
x: "0",
|
|
2378
|
+
y: "3.85",
|
|
2379
|
+
height: "7.3",
|
|
2380
|
+
width: "35",
|
|
2381
|
+
class: "logo",
|
|
2382
|
+
viewBox: "0 0 105 43",
|
|
2383
|
+
version: "1.1",
|
|
2384
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2385
|
+
}, [
|
|
2386
|
+
w("title", null, "Apple Logo"),
|
|
2387
|
+
w("g", {
|
|
2388
|
+
stroke: "none",
|
|
2389
|
+
"stroke-width": "1",
|
|
2390
|
+
fill: "none",
|
|
2391
|
+
"fill-rule": "evenodd"
|
|
2392
|
+
}, [
|
|
2393
|
+
w("g", { fill: "#FFF" }, [
|
|
2394
|
+
w("path", { d: "M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674" }),
|
|
2395
|
+
w("path", { d: "M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926" }),
|
|
2396
|
+
w("path", { d: "M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381" }),
|
|
2397
|
+
w("path", { d: "M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z" }),
|
|
2398
|
+
w("path", { d: "M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345" })
|
|
2399
|
+
])
|
|
2400
|
+
])
|
|
2401
|
+
], -1)
|
|
2402
|
+
])])) : o.type === "paypal" ? (g(), Z("img", ln)) : B("", !0)
|
|
2403
|
+
]),
|
|
2404
|
+
_: 1
|
|
2405
|
+
}, 8, ["aria-label", "class"]));
|
|
2406
|
+
}
|
|
2407
|
+
}), sn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, cn = "ADYEN", un = /* @__PURE__ */ se({
|
|
2408
|
+
__name: "ExpressPaymentMethodApplePay",
|
|
2409
|
+
props: {
|
|
2410
|
+
onBillingInformationChange: { type: Function },
|
|
2411
|
+
amount: { type: Object },
|
|
2412
|
+
countryCode: { type: String },
|
|
2413
|
+
locale: { type: String },
|
|
2414
|
+
isVisible: { type: Boolean },
|
|
2415
|
+
paymentMethodOptionsResponse: { type: Object },
|
|
2416
|
+
billingInformation: { type: Object }
|
|
2417
|
+
},
|
|
2418
|
+
emits: ["ready", "update-billing-information"],
|
|
2419
|
+
setup(e, { emit: i }) {
|
|
2420
|
+
const o = e, n = i, a = V(), l = _e(), { authorizePayment: s } = Vi(), M = o.paymentMethodOptionsResponse.payment_acceptor.id, p = async () => {
|
|
2421
|
+
const { ApplePay: m } = await Ue(), x = await Bt(o, l), P = new m(x, {
|
|
2422
|
+
isExpress: !0,
|
|
2423
|
+
recurringPaymentRequest: {
|
|
2424
|
+
paymentDescription: o.billingInformation.description,
|
|
2425
|
+
billingAgreement: o.billingInformation.agreement,
|
|
2426
|
+
managementURL: "https://www.google.com",
|
|
2427
|
+
// Trial
|
|
2428
|
+
...o.billingInformation.trial && {
|
|
2429
|
+
trialBilling: {
|
|
2430
|
+
label: o.billingInformation.trial.label,
|
|
2431
|
+
amount: o.billingInformation.trial.amount.quantity.toString(),
|
|
2432
|
+
type: "final",
|
|
2433
|
+
paymentTiming: "recurring",
|
|
2434
|
+
recurringPaymentStartDate: o.billingInformation.trial.startDate,
|
|
2435
|
+
recurringPaymentEndDate: o.billingInformation.trial.endDate
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
// Regular
|
|
2439
|
+
...o.billingInformation.regular && {
|
|
2440
|
+
regularBilling: {
|
|
2441
|
+
label: o.billingInformation.regular.label,
|
|
2442
|
+
amount: o.billingInformation.regular.amount.quantity.toString(),
|
|
2443
|
+
type: "final",
|
|
2444
|
+
paymentTiming: "recurring",
|
|
2445
|
+
recurringPaymentStartDate: o.billingInformation.regular.startDate,
|
|
2446
|
+
...E(
|
|
2447
|
+
o.billingInformation.regular.interval ?? { type: "MONTH", value: 1 }
|
|
2448
|
+
)
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
requiredBillingContactFields: ["postalAddress"],
|
|
2453
|
+
requiredShippingContactFields: ["email"],
|
|
2454
|
+
onPaymentMethodSelected: async (N, G, R) => {
|
|
2455
|
+
var te, v, f, r, d, h, S;
|
|
2456
|
+
const { invoicePreview: u, trialInvoicePreview: T } = await o.onBillingInformationChange({
|
|
2457
|
+
...((te = R.paymentMethod.billingContact) == null ? void 0 : te.postalCode) && {
|
|
2458
|
+
postal_code: R.paymentMethod.billingContact.postalCode
|
|
2459
|
+
},
|
|
2460
|
+
...((v = R.paymentMethod.billingContact) == null ? void 0 : v.locality) && {
|
|
2461
|
+
city: R.paymentMethod.billingContact.locality
|
|
2462
|
+
},
|
|
2463
|
+
...A((f = R.paymentMethod.billingContact) == null ? void 0 : f.countryCode) && {
|
|
2464
|
+
country: A((r = R.paymentMethod.billingContact) == null ? void 0 : r.countryCode)
|
|
2465
|
+
}
|
|
2466
|
+
}), Q = T ? T.invoice_amount_including_tax.quantity.toString() : u.invoice_amount_including_tax.quantity.toString();
|
|
2467
|
+
n("update-billing-information", {
|
|
2468
|
+
postal_code: (d = R.paymentMethod.billingContact) == null ? void 0 : d.postalCode,
|
|
2469
|
+
city: (h = R.paymentMethod.billingContact) == null ? void 0 : h.locality,
|
|
2470
|
+
country: (S = R.paymentMethod.billingContact) == null ? void 0 : S.countryCode
|
|
2471
|
+
}), N({
|
|
2472
|
+
newTotal: {
|
|
2473
|
+
label: o.billingInformation.regular.label,
|
|
2474
|
+
amount: Q,
|
|
2475
|
+
type: "final"
|
|
2476
|
+
}
|
|
2477
|
+
});
|
|
2478
|
+
},
|
|
2479
|
+
onError: (N) => {
|
|
2480
|
+
l.error("APPLE_PAY_ERROR", "Apple Pay error", { error: N });
|
|
2481
|
+
},
|
|
2482
|
+
onAuthorized: async (N, G) => {
|
|
2483
|
+
try {
|
|
2484
|
+
l.info("APPLE_PAY_AUTHORIZED", "Apple Pay authorized", { data: N });
|
|
2485
|
+
const R = N.authorizedEvent;
|
|
2486
|
+
l.info("APPLE_PAY_EVENT_DATA", "Apple Pay event data structure", {
|
|
2487
|
+
eventData: R,
|
|
2488
|
+
hasPaymentMethod: !!R.payment.token.paymentMethod,
|
|
2489
|
+
hasBrowserInfo: !!R.payment.token.paymentData,
|
|
2490
|
+
billingAddress: N.billingAddress
|
|
2491
|
+
});
|
|
2492
|
+
const u = R.payment.billingContact, T = N.billingAddress;
|
|
2493
|
+
u ? n(
|
|
2494
|
+
"update-billing-information",
|
|
2495
|
+
y(u)
|
|
2496
|
+
) : T && n(
|
|
2497
|
+
"update-billing-information",
|
|
2498
|
+
_(T)
|
|
2499
|
+
);
|
|
2500
|
+
const Q = {
|
|
2501
|
+
payment_method: ht(
|
|
2502
|
+
R.payment.token.paymentMethod
|
|
2503
|
+
),
|
|
2504
|
+
browser_info: ht(
|
|
2505
|
+
R.payment.token.paymentData
|
|
2506
|
+
)
|
|
2507
|
+
};
|
|
2508
|
+
l.info("APPLE_PAY_ADYEN_PAYLOAD", "Adyen payload prepared", { adyen: Q });
|
|
2509
|
+
const te = Ei({
|
|
2510
|
+
paymentAcceptorId: M,
|
|
2511
|
+
redirectUrl: window.location.href
|
|
2512
|
+
});
|
|
2513
|
+
l.info("APPLE_PAY_CALLING_API", "Calling authorizePayment API", {
|
|
2514
|
+
paymentAcceptorId: M,
|
|
2515
|
+
amount: o.amount
|
|
2516
|
+
});
|
|
2517
|
+
const v = await s({
|
|
2518
|
+
payment_acceptor_id: M,
|
|
2519
|
+
payment_gateway_variant: cn,
|
|
2520
|
+
adyen: {
|
|
2521
|
+
...Q,
|
|
2522
|
+
store_payment_method: !0
|
|
2523
|
+
// Required for recurring payments
|
|
2524
|
+
},
|
|
2525
|
+
amount: o.amount,
|
|
2526
|
+
return_url: te
|
|
2527
|
+
});
|
|
2528
|
+
if (l.info("APPLE_PAY_API_RESPONSE", "Payment API response received", {
|
|
2529
|
+
status: v.status,
|
|
2530
|
+
paymentResult: v
|
|
2531
|
+
}), v.status === "FAILURE") {
|
|
2532
|
+
l.error("APPLE_PAY_AUTHORIZATION_FAILED", "Payment authorization failed", {
|
|
2533
|
+
error: v
|
|
2534
|
+
}), G.reject();
|
|
2535
|
+
return;
|
|
2536
|
+
}
|
|
2537
|
+
if (v.status === "ACTION_REQUIRED") {
|
|
2538
|
+
l.warn("APPLE_PAY_ACTION_REQUIRED", "Payment requires additional action", {
|
|
2539
|
+
action: v.action
|
|
2540
|
+
}), G.reject();
|
|
2541
|
+
return;
|
|
2542
|
+
}
|
|
2543
|
+
l.info("APPLE_PAY_SUCCESS", "Apple Pay payment successful, resolving"), G.resolve();
|
|
2544
|
+
} catch (R) {
|
|
2545
|
+
l.error("APPLE_PAY_AUTHORIZATION_FAILED", "Apple Pay authorization failed", {
|
|
2546
|
+
error: R
|
|
2547
|
+
}), G.reject();
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
});
|
|
2551
|
+
if (!a.value) {
|
|
2552
|
+
l.error("APPLE_PAY_ERROR", "Apple Pay button ref not found");
|
|
2553
|
+
return;
|
|
2554
|
+
}
|
|
2555
|
+
try {
|
|
2556
|
+
await P.isAvailable(), P.mount(a.value), n("ready");
|
|
2557
|
+
} catch (N) {
|
|
2558
|
+
l.error("APPLE_PAY_ERROR", "Apple Pay not available on this device", {}, N);
|
|
2559
|
+
}
|
|
2560
|
+
}, E = (m) => {
|
|
2561
|
+
if (!m.value)
|
|
2562
|
+
return;
|
|
2563
|
+
let x = m.value ?? 1, P = m.type.toLowerCase();
|
|
2564
|
+
if (m.type === "WEEK" && (P = "day", x = m.value * 7), P === "day" || P === "month" || P === "year" || P === "hour" || P === "minute")
|
|
2565
|
+
return {
|
|
2566
|
+
recurringPaymentIntervalUnit: P,
|
|
2567
|
+
recurringPaymentIntervalCount: x
|
|
2568
|
+
};
|
|
2569
|
+
}, y = (m) => ({
|
|
2570
|
+
postal_code: m.postalCode,
|
|
2571
|
+
city: m.locality,
|
|
2572
|
+
country: m.countryCode
|
|
2573
|
+
}), _ = (m) => ({
|
|
2574
|
+
postal_code: m.postalCode,
|
|
2575
|
+
city: m.city,
|
|
2576
|
+
country: m.country
|
|
2577
|
+
}), A = (m) => m && c(m) ? m : void 0, c = (m) => Ve(m), C = () => {
|
|
2578
|
+
var x;
|
|
2579
|
+
const m = (x = a.value) == null ? void 0 : x.querySelector("apple-pay-button");
|
|
2580
|
+
if (m) {
|
|
2581
|
+
const P = new MouseEvent("click", {
|
|
2582
|
+
bubbles: !0,
|
|
2583
|
+
cancelable: !0,
|
|
2584
|
+
view: window
|
|
2585
|
+
});
|
|
2586
|
+
m.dispatchEvent(P);
|
|
2587
|
+
}
|
|
2588
|
+
};
|
|
2589
|
+
return Te(() => {
|
|
2590
|
+
p();
|
|
2591
|
+
}), (m, x) => (g(), Z(fe, null, [
|
|
2592
|
+
e.isVisible ? (g(), k(tt, {
|
|
2593
|
+
key: 0,
|
|
2594
|
+
type: "applepay",
|
|
2595
|
+
onClick: C
|
|
2596
|
+
})) : B("", !0),
|
|
2597
|
+
w("div", sn, [
|
|
2598
|
+
w("div", {
|
|
2599
|
+
ref_key: "applePayButtonRef",
|
|
2600
|
+
ref: a
|
|
2601
|
+
}, null, 512)
|
|
2602
|
+
])
|
|
2603
|
+
], 64));
|
|
2604
|
+
}
|
|
2605
|
+
}), dn = { class: "relative overflow-hidden" }, pn = /* @__PURE__ */ se({
|
|
2606
|
+
__name: "ExpressPaymentMethodPaypal",
|
|
2607
|
+
props: {
|
|
2608
|
+
amount: { type: Object },
|
|
2609
|
+
countryCode: { type: String },
|
|
2610
|
+
locale: { type: String },
|
|
2611
|
+
isVisible: { type: Boolean },
|
|
2612
|
+
paymentMethodOptionsResponse: { type: Object },
|
|
2613
|
+
billingInformation: { type: Object }
|
|
2614
|
+
},
|
|
2615
|
+
emits: ["ready", "update-billing-information"],
|
|
2616
|
+
setup(e, { emit: i }) {
|
|
2617
|
+
const o = e, n = i, a = _e(), { buttonRef: l } = Ut({
|
|
2618
|
+
props: o,
|
|
2619
|
+
onMissingButton: () => a.error(
|
|
2620
|
+
"EXPRESS_CHECKOUT_PAYPAL_ERROR",
|
|
2621
|
+
"The PayPal button reference is not found and cannot be mounted"
|
|
2622
|
+
),
|
|
2623
|
+
onMountFailed: (s) => a.error("EXPRESS_CHECKOUT_PAYPAL_ERROR", "Failed mounting PayPal express button", {
|
|
2624
|
+
error: s
|
|
2625
|
+
}),
|
|
2626
|
+
create: async (s) => {
|
|
2627
|
+
const { PayPal: M } = await Ue();
|
|
2628
|
+
return new M(s, {
|
|
2629
|
+
isExpress: !0,
|
|
2630
|
+
blockPayPalPayLaterButton: !0,
|
|
2631
|
+
blockPayPalCreditButton: !0,
|
|
2632
|
+
blockPayPalVenmoButton: !0,
|
|
2633
|
+
style: {
|
|
2634
|
+
height: 55
|
|
2635
|
+
},
|
|
2636
|
+
onInit: () => {
|
|
2637
|
+
n("ready");
|
|
2638
|
+
}
|
|
2639
|
+
});
|
|
2640
|
+
}
|
|
2641
|
+
});
|
|
2642
|
+
return (s, M) => (g(), Z("div", dn, [
|
|
2643
|
+
e.isVisible ? (g(), k(tt, {
|
|
2644
|
+
key: 0,
|
|
2645
|
+
type: "paypal",
|
|
2646
|
+
class: "w-full"
|
|
2647
|
+
})) : B("", !0),
|
|
2648
|
+
w("div", {
|
|
2649
|
+
ref_key: "paypalButtonRef",
|
|
2650
|
+
ref: l,
|
|
2651
|
+
class: "absolute inset-0 opacity-[0.0001]"
|
|
2652
|
+
}, null, 512)
|
|
2653
|
+
]));
|
|
2654
|
+
}
|
|
2655
|
+
}), mn = { class: "absolute h-[1px] w-[1px] overflow-hidden opacity-0" }, gn = /* @__PURE__ */ se({
|
|
2656
|
+
__name: "ExpressPaymentMethodGooglePay",
|
|
2657
|
+
props: {
|
|
2658
|
+
amount: { type: Object },
|
|
2659
|
+
countryCode: { type: String },
|
|
2660
|
+
locale: { type: String },
|
|
2661
|
+
isVisible: { type: Boolean },
|
|
2662
|
+
paymentMethodOptionsResponse: { type: Object },
|
|
2663
|
+
billingInformation: { type: Object }
|
|
2664
|
+
},
|
|
2665
|
+
emits: ["ready", "update-billing-information"],
|
|
2666
|
+
setup(e, { emit: i }) {
|
|
2667
|
+
const o = e, n = i, a = _e(), { buttonRef: l } = Ut({
|
|
2668
|
+
props: o,
|
|
2669
|
+
onMissingButton: () => a.error(
|
|
2670
|
+
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2671
|
+
"The Google Pay button reference is not found and cannot be mounted"
|
|
2672
|
+
),
|
|
2673
|
+
onMountFailed: (M) => a.error(
|
|
2674
|
+
"EXPRESS_CHECKOUT_GOOGLE_PAY_ERROR",
|
|
2675
|
+
"Failed mounting Google Pay express button",
|
|
2676
|
+
{ error: M }
|
|
2677
|
+
),
|
|
2678
|
+
create: async (M) => {
|
|
2679
|
+
const { GooglePay: p } = await Ue();
|
|
2680
|
+
return new p(M, { isExpress: !0 });
|
|
2681
|
+
},
|
|
2682
|
+
afterMount: () => n("ready")
|
|
2683
|
+
}), s = () => {
|
|
2684
|
+
var p;
|
|
2685
|
+
const M = (p = l.value) == null ? void 0 : p.querySelector("#gpay-button-online-api-id");
|
|
2686
|
+
if (M) {
|
|
2687
|
+
const E = new MouseEvent("click", {
|
|
2688
|
+
bubbles: !0,
|
|
2689
|
+
cancelable: !0,
|
|
2690
|
+
view: window
|
|
2691
|
+
});
|
|
2692
|
+
M.dispatchEvent(E);
|
|
2693
|
+
}
|
|
2694
|
+
};
|
|
2695
|
+
return (M, p) => (g(), Z(fe, null, [
|
|
2696
|
+
e.isVisible ? (g(), k(tt, {
|
|
2697
|
+
key: 0,
|
|
2698
|
+
type: "googlepay",
|
|
2699
|
+
onClick: s
|
|
2700
|
+
})) : B("", !0),
|
|
2701
|
+
w("div", mn, [
|
|
2702
|
+
w("div", {
|
|
2703
|
+
ref_key: "googlePayButtonRef",
|
|
2704
|
+
ref: l
|
|
2705
|
+
}, null, 512)
|
|
2706
|
+
])
|
|
2707
|
+
], 64));
|
|
2708
|
+
}
|
|
2709
|
+
}), yn = {
|
|
2710
|
+
key: 0,
|
|
2711
|
+
class: "mt-4n"
|
|
2712
|
+
}, vn = { class: "mb-2" }, fn = { class: "grid grid-cols-6 gap-1 md:gap-2" }, _n = { class: "mt-4 h-4" }, Mn = 2, hn = /* @__PURE__ */ se({
|
|
2713
|
+
__name: "ExpressPaymentMethods",
|
|
2714
|
+
props: {
|
|
2715
|
+
amount: { type: Object },
|
|
2716
|
+
countryCode: { type: String },
|
|
2717
|
+
locale: { type: String },
|
|
2718
|
+
paymentMethodsOptionsResponse: { type: null },
|
|
2719
|
+
billingInformation: { type: Object },
|
|
2720
|
+
onBillingInformationChange: { type: Function }
|
|
2721
|
+
},
|
|
2722
|
+
emits: ["update-billing-information"],
|
|
2723
|
+
setup(e) {
|
|
2724
|
+
const i = ["applepay"], o = e, { $t: n } = ge(), a = V(!1), l = V(!1), s = V(!1), M = b(() => {
|
|
2725
|
+
var c;
|
|
2726
|
+
if (i.includes("applepay"))
|
|
2727
|
+
return (c = o.paymentMethodsOptionsResponse) == null ? void 0 : c.find(
|
|
2728
|
+
(C) => {
|
|
2729
|
+
var m;
|
|
2730
|
+
return (m = C.options) == null ? void 0 : m.some(
|
|
2731
|
+
(x) => x.name.toLowerCase() === "apple pay" && x.payment_gateway_variant === "ADYEN"
|
|
2732
|
+
);
|
|
2733
|
+
}
|
|
2734
|
+
);
|
|
2735
|
+
}), p = b(() => {
|
|
2736
|
+
var c;
|
|
2737
|
+
if (i.includes("paypal"))
|
|
2738
|
+
return (c = o.paymentMethodsOptionsResponse) == null ? void 0 : c.find(
|
|
2739
|
+
(C) => {
|
|
2740
|
+
var m;
|
|
2741
|
+
return (m = C.options) == null ? void 0 : m.some(
|
|
2742
|
+
(x) => x.name.toLowerCase() === "paypal" && x.payment_gateway_variant === "ADYEN"
|
|
2743
|
+
);
|
|
2744
|
+
}
|
|
2745
|
+
);
|
|
2746
|
+
}), E = b(() => {
|
|
2747
|
+
var c;
|
|
2748
|
+
if (i.includes("googlepay"))
|
|
2749
|
+
return (c = o.paymentMethodsOptionsResponse) == null ? void 0 : c.find(
|
|
2750
|
+
(C) => {
|
|
2751
|
+
var m;
|
|
2752
|
+
return (m = C.options) == null ? void 0 : m.some(
|
|
2753
|
+
(x) => x.name.toLowerCase() === "google pay" && x.payment_gateway_variant === "ADYEN"
|
|
2754
|
+
);
|
|
2755
|
+
}
|
|
2756
|
+
);
|
|
2757
|
+
}), y = b(() => !!(M.value || E.value || p.value)), _ = b(() => {
|
|
2758
|
+
var x;
|
|
2759
|
+
if (((x = o.paymentMethodsOptionsResponse) == null ? void 0 : x.length) === 0)
|
|
2760
|
+
return !1;
|
|
2761
|
+
const c = !M.value || a.value, C = !E.value || l.value, m = !p.value || s.value;
|
|
2762
|
+
return c && C && m;
|
|
2763
|
+
}), A = b(() => _.value ? (M.value ? 1 : 0) + (E.value ? 1 : 0) + (p.value ? 1 : 0) : Mn);
|
|
2764
|
+
return (c, C) => y.value ? (g(), Z("div", yn, [
|
|
2765
|
+
w("div", vn, [
|
|
2766
|
+
_.value ? (g(), k(t(le), {
|
|
2767
|
+
key: 1,
|
|
2768
|
+
variant: "heading-3",
|
|
2769
|
+
tag: "h2"
|
|
2770
|
+
}, {
|
|
2771
|
+
default: I(() => [
|
|
2772
|
+
K(F(t(n)({
|
|
2773
|
+
defaultMessage: "Subscribe instantly with",
|
|
2774
|
+
id: "checkout.express_payment_methods.title",
|
|
2775
|
+
description: "The title of the express payment methods block in the checkout form"
|
|
2776
|
+
})), 1)
|
|
2777
|
+
]),
|
|
2778
|
+
_: 1
|
|
2779
|
+
})) : (g(), k(ve, {
|
|
2780
|
+
key: 0,
|
|
2781
|
+
variant: "title"
|
|
2782
|
+
}))
|
|
2783
|
+
]),
|
|
2784
|
+
w("div", fn, [
|
|
2785
|
+
_.value ? B("", !0) : (g(), Z(fe, { key: 0 }, [
|
|
2786
|
+
D(ve, { class: "col-span-3 h-11" }),
|
|
2787
|
+
D(ve, { class: "col-span-3 h-11" })
|
|
2788
|
+
], 64)),
|
|
2789
|
+
w("div", {
|
|
2790
|
+
class: he(["col-span-3 md:col-span-2", {
|
|
2791
|
+
hidden: !M.value,
|
|
2792
|
+
"!col-span-6": A.value === 1,
|
|
2793
|
+
"md:!col-span-3": A.value === 2,
|
|
2794
|
+
"!col-span-6 md:!col-span-2": A.value === 3
|
|
2795
|
+
}])
|
|
2796
|
+
}, [
|
|
2797
|
+
M.value ? (g(), k(un, {
|
|
2798
|
+
key: 0,
|
|
2799
|
+
amount: e.amount,
|
|
2800
|
+
"billing-information": e.billingInformation,
|
|
2801
|
+
"country-code": e.countryCode,
|
|
2802
|
+
locale: e.locale,
|
|
2803
|
+
"is-visible": _.value,
|
|
2804
|
+
"payment-method-options-response": M.value,
|
|
2805
|
+
"on-billing-information-change": e.onBillingInformationChange,
|
|
2806
|
+
onReady: C[0] || (C[0] = (m) => a.value = !0),
|
|
2807
|
+
onUpdateBillingInformation: C[1] || (C[1] = (m) => c.$emit("update-billing-information", m))
|
|
2808
|
+
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response", "on-billing-information-change"])) : B("", !0)
|
|
2809
|
+
], 2),
|
|
2810
|
+
w("div", {
|
|
2811
|
+
class: he(["col-span-3 md:col-span-2", {
|
|
2812
|
+
hidden: !E.value,
|
|
2813
|
+
"col-span-6 md:col-span-6": A.value === 1,
|
|
2814
|
+
"md:!col-span-3": A.value === 2
|
|
2815
|
+
}])
|
|
2816
|
+
}, [
|
|
2817
|
+
E.value ? (g(), k(gn, {
|
|
2818
|
+
key: 0,
|
|
2819
|
+
amount: e.amount,
|
|
2820
|
+
"billing-information": e.billingInformation,
|
|
2821
|
+
"country-code": e.countryCode,
|
|
2822
|
+
locale: e.locale,
|
|
2823
|
+
"is-visible": _.value,
|
|
2824
|
+
"payment-method-options-response": E.value,
|
|
2825
|
+
onReady: C[2] || (C[2] = (m) => l.value = !0)
|
|
2826
|
+
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : B("", !0)
|
|
2827
|
+
], 2),
|
|
2828
|
+
w("div", {
|
|
2829
|
+
class: he(["col-span-3 md:col-span-2", {
|
|
2830
|
+
hidden: !p.value,
|
|
2831
|
+
"col-span-6 md:col-span-6": A.value === 1,
|
|
2832
|
+
"md:!col-span-3": A.value === 2
|
|
2833
|
+
}])
|
|
2834
|
+
}, [
|
|
2835
|
+
p.value ? (g(), k(pn, {
|
|
2836
|
+
key: 0,
|
|
2837
|
+
amount: e.amount,
|
|
2838
|
+
"billing-information": e.billingInformation,
|
|
2839
|
+
"country-code": e.countryCode,
|
|
2840
|
+
locale: e.locale,
|
|
2841
|
+
"is-visible": _.value,
|
|
2842
|
+
"payment-method-options-response": p.value,
|
|
2843
|
+
onReady: C[3] || (C[3] = (m) => s.value = !0)
|
|
2844
|
+
}, null, 8, ["amount", "billing-information", "country-code", "locale", "is-visible", "payment-method-options-response"])) : B("", !0)
|
|
2845
|
+
], 2)
|
|
2846
|
+
]),
|
|
2847
|
+
w("div", _n, [
|
|
2848
|
+
_.value ? (g(), k(t(Fi), {
|
|
2849
|
+
key: 1,
|
|
2850
|
+
text: t(n)({
|
|
2851
|
+
defaultMessage: "Or",
|
|
2852
|
+
id: "checkout.express_payment_methods.divider_text",
|
|
2853
|
+
description: "The text of the divider text in the express payment methods block in the checkout form"
|
|
2854
|
+
}),
|
|
2855
|
+
"text-position": "center"
|
|
2856
|
+
}, null, 8, ["text"])) : (g(), k(ve, {
|
|
2857
|
+
key: 0,
|
|
2858
|
+
variant: "divider-text"
|
|
2859
|
+
}))
|
|
2860
|
+
])
|
|
2861
|
+
])) : B("", !0);
|
|
2862
|
+
}
|
|
2863
|
+
}), bn = ["aria-expanded", "aria-label"], In = { class: "flex w-full cursor-pointer flex-row items-center justify-between gap-3 px-3 py-2" }, An = { class: "flex flex-row items-center gap-2" }, Pn = ["onKeydown"], Dn = ["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 = {
|
|
2864
|
+
class: "sr-only",
|
|
2865
|
+
"aria-live": "polite"
|
|
2866
|
+
}, xn = /* @__PURE__ */ se({
|
|
2867
|
+
inheritAttrs: !1,
|
|
2868
|
+
__name: "PromotionCodeSection",
|
|
2869
|
+
props: {
|
|
2870
|
+
promotionCode: { default: null, type: [String, null] }
|
|
2871
|
+
},
|
|
2872
|
+
emits: ["update:appliedCode", "apply", "remove"],
|
|
2873
|
+
setup(e, { emit: i }) {
|
|
2874
|
+
const { $t: o } = ge(), n = e, a = i, l = V(!1), s = V(""), M = V(""), p = V(null), E = V(null), y = Yi("promotion-code-"), _ = `${y}-label`, A = `${y}-panel`, c = b(() => n.promotionCode !== null && n.promotionCode !== ""), C = b(() => s.value.trim().length > 0), m = b(
|
|
2875
|
+
() => n.promotionCode ?? o({
|
|
2876
|
+
defaultMessage: "Promotion applied",
|
|
2877
|
+
id: "checkout.promotion_code.applied_label",
|
|
2878
|
+
description: "Fallback label for an applied promotion code in checkout"
|
|
2879
|
+
})
|
|
2880
|
+
), x = b(
|
|
2881
|
+
() => l.value ? o({
|
|
2882
|
+
defaultMessage: "Collapse promotion code input",
|
|
2883
|
+
id: "checkout.promotion_code.collapse_aria_label",
|
|
2884
|
+
description: "Aria label for the promotion code toggle button in checkout, while the input is open"
|
|
2885
|
+
}) : o({
|
|
2886
|
+
defaultMessage: "Expand promotion code input",
|
|
2887
|
+
id: "checkout.promotion_code.expand_aria_label",
|
|
2888
|
+
description: "Aria label for the promotion code toggle button in checkout, while the input is closed"
|
|
2889
|
+
})
|
|
2890
|
+
), P = b(
|
|
2891
|
+
() => o({
|
|
2892
|
+
defaultMessage: "Apply promotion code",
|
|
2893
|
+
id: "checkout.promotion_code.apply_aria_label",
|
|
2894
|
+
description: "Aria label for the promotion code apply button in checkout"
|
|
2895
|
+
})
|
|
2896
|
+
), N = b(
|
|
2897
|
+
() => o({
|
|
2898
|
+
defaultMessage: "Remove promotion code",
|
|
2899
|
+
id: "checkout.promotion_code.remove_aria_label",
|
|
2900
|
+
description: "Aria label for the promotion code remove button in checkout"
|
|
2901
|
+
})
|
|
2902
|
+
), G = () => {
|
|
2903
|
+
s.value = "";
|
|
2904
|
+
}, R = () => {
|
|
2905
|
+
var f;
|
|
2906
|
+
const v = (f = E.value) == null ? void 0 : f.querySelector("input");
|
|
2907
|
+
v instanceof HTMLInputElement && v.focus();
|
|
2908
|
+
}, u = () => {
|
|
2909
|
+
l.value && (l.value = !1);
|
|
2910
|
+
}, T = () => {
|
|
2911
|
+
c.value || (l.value = !l.value);
|
|
2912
|
+
}, Q = () => {
|
|
2913
|
+
if (!C.value)
|
|
2914
|
+
return;
|
|
2915
|
+
const v = s.value.trim();
|
|
2916
|
+
a("update:appliedCode", v), a("apply", v), M.value = o({
|
|
2917
|
+
defaultMessage: "Promotion code applied",
|
|
2918
|
+
id: "checkout.promotion_code.applied_status",
|
|
2919
|
+
description: "Aria live message when a promotion code is applied in checkout"
|
|
2920
|
+
}), l.value = !1;
|
|
2921
|
+
}, te = () => {
|
|
2922
|
+
a("update:appliedCode", null), a("remove"), M.value = o({
|
|
2923
|
+
defaultMessage: "Promotion code removed",
|
|
2924
|
+
id: "checkout.promotion_code.removed_status",
|
|
2925
|
+
description: "Aria live message when a promotion code is removed in checkout"
|
|
2926
|
+
}), G(), Qe(() => {
|
|
2927
|
+
var v;
|
|
2928
|
+
(v = p.value) == null || v.focus();
|
|
2929
|
+
});
|
|
2930
|
+
};
|
|
2931
|
+
return Le(l, (v) => {
|
|
2932
|
+
if (!v) {
|
|
2933
|
+
G(), Qe(() => {
|
|
2934
|
+
var f;
|
|
2935
|
+
(f = p.value) == null || f.focus();
|
|
2936
|
+
});
|
|
2937
|
+
return;
|
|
2938
|
+
}
|
|
2939
|
+
Qe(() => {
|
|
2940
|
+
R();
|
|
2941
|
+
});
|
|
2942
|
+
}), Le(
|
|
2943
|
+
() => n.promotionCode,
|
|
2944
|
+
(v) => {
|
|
2945
|
+
v || G();
|
|
2946
|
+
}
|
|
2947
|
+
), (v, f) => (g(), Z(fe, null, [
|
|
2948
|
+
c.value ? (g(), k(t(pe), vt({ key: 1 }, v.$attrs, {
|
|
2949
|
+
"no-border": "",
|
|
2950
|
+
"no-spacing": "",
|
|
2951
|
+
"content-background": "none",
|
|
2952
|
+
class: "relative w-full"
|
|
2953
|
+
}), {
|
|
2954
|
+
default: I(() => [
|
|
2955
|
+
w("button", {
|
|
2956
|
+
type: "button",
|
|
2957
|
+
class: "w-full rounded border border-primary-900 bg-white",
|
|
2958
|
+
"aria-label": N.value,
|
|
2959
|
+
onClick: te
|
|
2960
|
+
}, [
|
|
2961
|
+
w("div", Nn, [
|
|
2962
|
+
w("div", En, [
|
|
2963
|
+
D(t(ze), { icon: "local_activity" }),
|
|
2964
|
+
D(t(le), {
|
|
2965
|
+
variant: "body-sm",
|
|
2966
|
+
class: "font-semibold"
|
|
2967
|
+
}, {
|
|
2968
|
+
default: I(() => [
|
|
2969
|
+
K(F(m.value), 1)
|
|
2970
|
+
]),
|
|
2971
|
+
_: 1
|
|
2972
|
+
})
|
|
2973
|
+
]),
|
|
2974
|
+
D(t(ze), { icon: "close" })
|
|
2975
|
+
])
|
|
2976
|
+
], 8, Dn)
|
|
2977
|
+
]),
|
|
2978
|
+
_: 1
|
|
2979
|
+
}, 16)) : (g(), k(t(pe), vt({ key: 0 }, v.$attrs, {
|
|
2980
|
+
"no-spacing": "",
|
|
2981
|
+
class: "relative w-full"
|
|
2982
|
+
}), {
|
|
2983
|
+
default: I(() => [
|
|
2984
|
+
w("button", {
|
|
2985
|
+
ref_key: "toggleRef",
|
|
2986
|
+
ref: p,
|
|
2987
|
+
type: "button",
|
|
2988
|
+
class: "w-full",
|
|
2989
|
+
"aria-expanded": l.value,
|
|
2990
|
+
"aria-controls": A,
|
|
2991
|
+
"aria-label": x.value,
|
|
2992
|
+
onClick: T
|
|
2993
|
+
}, [
|
|
2994
|
+
w("div", In, [
|
|
2995
|
+
w("div", An, [
|
|
2996
|
+
D(t(ze), { icon: "local_activity" }),
|
|
2997
|
+
D(t(le), {
|
|
2998
|
+
id: _,
|
|
2999
|
+
variant: "body-sm"
|
|
3000
|
+
}, {
|
|
3001
|
+
default: I(() => [
|
|
3002
|
+
K(F(t(o)({
|
|
3003
|
+
defaultMessage: "Add promotion code",
|
|
3004
|
+
id: "checkout.promotion_code.add_label",
|
|
3005
|
+
description: "Label for adding a promotion code in checkout"
|
|
3006
|
+
})), 1)
|
|
3007
|
+
]),
|
|
3008
|
+
_: 1
|
|
3009
|
+
})
|
|
3010
|
+
]),
|
|
3011
|
+
D(t(ze), {
|
|
3012
|
+
icon: l.value ? "remove" : "add"
|
|
3013
|
+
}, null, 8, ["icon"])
|
|
3014
|
+
])
|
|
3015
|
+
], 8, bn),
|
|
3016
|
+
qt(w("div", {
|
|
3017
|
+
id: A,
|
|
3018
|
+
ref_key: "panelRef",
|
|
3019
|
+
ref: E,
|
|
3020
|
+
role: "region",
|
|
3021
|
+
"aria-labelledby": _,
|
|
3022
|
+
class: "flex w-full flex-row items-center gap-2 overflow-hidden border-t px-3 py-2",
|
|
3023
|
+
onKeydown: ft($e(u, ["prevent"]), ["esc"])
|
|
3024
|
+
}, [
|
|
3025
|
+
D(t(me), {
|
|
3026
|
+
modelValue: s.value,
|
|
3027
|
+
"onUpdate:modelValue": f[0] || (f[0] = (r) => s.value = r),
|
|
3028
|
+
placeholder: t(o)({
|
|
3029
|
+
defaultMessage: "Promotion code",
|
|
3030
|
+
id: "checkout.promotion_code.placeholder",
|
|
3031
|
+
description: "Placeholder for promotion code input in checkout"
|
|
3032
|
+
}),
|
|
3033
|
+
"aria-label": t(o)({
|
|
3034
|
+
defaultMessage: "Promotion code",
|
|
3035
|
+
id: "checkout.promotion_code.input_aria_label",
|
|
3036
|
+
description: "Aria label for promotion code input in checkout"
|
|
3037
|
+
}),
|
|
3038
|
+
class: "w-full",
|
|
3039
|
+
onKeydown: ft($e(Q, ["prevent"]), ["enter"])
|
|
3040
|
+
}, null, 8, ["modelValue", "placeholder", "aria-label", "onKeydown"]),
|
|
3041
|
+
D(t(Ie), {
|
|
3042
|
+
type: "button",
|
|
3043
|
+
disabled: !C.value,
|
|
3044
|
+
"aria-label": P.value,
|
|
3045
|
+
"aria-disabled": !C.value,
|
|
3046
|
+
onClick: Q
|
|
3047
|
+
}, {
|
|
3048
|
+
default: I(() => [
|
|
3049
|
+
K(F(t(o)({
|
|
3050
|
+
defaultMessage: "Apply",
|
|
3051
|
+
id: "checkout.promotion_code.apply_button",
|
|
3052
|
+
description: "Button label for applying a promotion code in checkout"
|
|
3053
|
+
})), 1)
|
|
3054
|
+
]),
|
|
3055
|
+
_: 1
|
|
3056
|
+
}, 8, ["disabled", "aria-label", "aria-disabled"])
|
|
3057
|
+
], 40, Pn), [
|
|
3058
|
+
[Jt, l.value]
|
|
3059
|
+
])
|
|
3060
|
+
]),
|
|
3061
|
+
_: 1
|
|
3062
|
+
}, 16)),
|
|
3063
|
+
w("span", Cn, F(M.value), 1)
|
|
3064
|
+
], 64));
|
|
3065
|
+
}
|
|
3066
|
+
}), Ln = { class: "sv-checkout__header" }, wn = { class: "sv-checkout__payment-methods" }, Tn = {
|
|
3067
|
+
key: 0,
|
|
3068
|
+
class: "sv-checkout__payment-methods-body"
|
|
3069
|
+
}, Sn = {
|
|
3070
|
+
key: 3,
|
|
3071
|
+
class: "sv-checkout__payment-form"
|
|
3072
|
+
}, kn = { class: "sv-checkout__order-summary" }, On = { class: "flex flex-col gap-2" }, zn = /* @__PURE__ */ se({
|
|
3073
|
+
__name: "Checkout",
|
|
3074
|
+
props: {
|
|
3075
|
+
configuration: { type: Object }
|
|
3076
|
+
},
|
|
3077
|
+
emits: ["error", "ready"],
|
|
3078
|
+
setup(e, { emit: i }) {
|
|
3079
|
+
var rt, lt, st, ct, ut, dt, pt, mt, gt;
|
|
3080
|
+
const o = _t(
|
|
3081
|
+
() => import("./PaymentIntegrationForm-Crrhar96.mjs")
|
|
3082
|
+
), n = _t(
|
|
3083
|
+
() => import("./PlanCustomizationEditor-CCOTD6Qu.mjs")
|
|
3084
|
+
), a = e, l = i, s = b(() => a.configuration), M = V(), p = V(), E = _e(), { $t: y, locale: _ } = ge(), { formatTimePeriod: A } = xt(), c = Ci(), { isMobileViewport: C } = wt();
|
|
3085
|
+
if (E.info("COMPONENT_INITIALIZED", "Checkout component initialized"), ((rt = c.value) == null ? void 0 : rt.type) !== "INIT_PRICING_PLAN_SUBSCRIPTION")
|
|
3086
|
+
throw E.error("INVALID_TOKEN", "Invalid token"), Error("Invalid token");
|
|
3087
|
+
c.value.status === "REVOKED" && (M.value = {
|
|
3088
|
+
code: "RESOURCE_REVOKED",
|
|
3089
|
+
message: `Portal url with resource id "${c.value.id}" is revoked`
|
|
3090
|
+
}, E.error("RESOURCE_REVOKED", `Portal url with resource id "${c.value.id}" is revoked`));
|
|
3091
|
+
const m = (st = (lt = c.value) == null ? void 0 : lt.init_pricing_plan_subscription) == null ? void 0 : st.pricing_plan_subscription_id, x = (ut = (ct = c.value) == null ? void 0 : ct.init_pricing_plan_subscription) == null ? void 0 : ut.success_url, {
|
|
3092
|
+
validatedEmail: P,
|
|
3093
|
+
validatedCountry: N,
|
|
3094
|
+
paymentMethodOptions: G,
|
|
3095
|
+
hasPaymentMethodOptionsError: R,
|
|
3096
|
+
retryPaymentMethodOptions: u,
|
|
3097
|
+
subscription: T,
|
|
3098
|
+
isPaymentMethodsPending: Q,
|
|
3099
|
+
isInvoicePreviewPending: te,
|
|
3100
|
+
checkoutForm: v,
|
|
3101
|
+
invoicePreview: f,
|
|
3102
|
+
invoicePreviewByBillingPeriod: r,
|
|
3103
|
+
trialInvoicePreview: d,
|
|
3104
|
+
trialPeriod: h,
|
|
3105
|
+
authorizationContext: S,
|
|
3106
|
+
isPaid: O,
|
|
3107
|
+
amount: H,
|
|
3108
|
+
loadInvoicePreview: $,
|
|
3109
|
+
updateInvoicePreviewOnBillingInformationChange: ie,
|
|
3110
|
+
saveFormStateForRedirect: J
|
|
3111
|
+
} = Po({
|
|
3112
|
+
initialCountry: (dt = a.configuration) == null ? void 0 : dt.countryCode,
|
|
3113
|
+
initialEmail: (pt = a.configuration) == null ? void 0 : pt.email,
|
|
3114
|
+
subscriptionId: m,
|
|
3115
|
+
enabledPricingIds: (mt = a.configuration) == null ? void 0 : mt.enabledPricingIds
|
|
3116
|
+
}), ee = V(!1), oe = async () => {
|
|
3117
|
+
var L;
|
|
3118
|
+
await v.validation.value.$validate(), !v.validation.value.$invalid && (ee.value = !0, J(), (L = p.value) == null || L.submit());
|
|
3119
|
+
}, ae = () => {
|
|
3120
|
+
ee.value = !1;
|
|
3121
|
+
}, U = async () => (await v.validation.value.$validate(), !v.validation.value.$invalid), X = b(() => !!d.value), W = b(
|
|
3122
|
+
() => f.value ? Go(f.value) : !1
|
|
3123
|
+
), ne = b(
|
|
3124
|
+
() => v.form.value.country && ["US", "CA"].includes(v.form.value.country) || !1
|
|
3125
|
+
), re = b({
|
|
3126
|
+
get: () => v.form.value.enabledPricingIds ?? [],
|
|
3127
|
+
set: (L) => {
|
|
3128
|
+
v.form.value.enabledPricingIds = L;
|
|
3129
|
+
}
|
|
3130
|
+
}), ce = b(
|
|
3131
|
+
() => T.value ? De({
|
|
3132
|
+
pricingPlanScheduleInfos: T.value.pricing_plan_schedule_infos,
|
|
3133
|
+
type: "DEFAULT"
|
|
3134
|
+
}) : void 0
|
|
3135
|
+
), ue = b(() => {
|
|
3136
|
+
var z, j;
|
|
3137
|
+
if (!T.value)
|
|
3138
|
+
return;
|
|
3139
|
+
const L = (j = (z = ce.value) == null ? void 0 : z.pricing_plan_version) == null ? void 0 : j.pricing_currency_settings;
|
|
3140
|
+
return Rt({
|
|
3141
|
+
country: v.form.value.country,
|
|
3142
|
+
pricingCurrencySettings: L,
|
|
3143
|
+
fallbackCurrency: T.value.billing_currency
|
|
3144
|
+
});
|
|
3145
|
+
}), ye = b(() => {
|
|
3146
|
+
if (!ce.value || !T.value)
|
|
3147
|
+
return /* @__PURE__ */ new Set();
|
|
3148
|
+
const L = ui({
|
|
3149
|
+
pricingPlanScheduleInfo: ce.value
|
|
3150
|
+
}), z = ue.value, j = T.value.billing_period, q = /* @__PURE__ */ new Set();
|
|
3151
|
+
return L.forEach((Y, Ht) => {
|
|
3152
|
+
z && Y.currency !== z || j && Y.billingPeriod && (Y.billingPeriod.type !== j.type || Y.billingPeriod.value !== j.value) || q.add(Ht);
|
|
3153
|
+
}), q;
|
|
3154
|
+
}), Ne = b({
|
|
3155
|
+
get: () => {
|
|
3156
|
+
const L = v.form.value.seatsValues ?? [], z = ye.value;
|
|
3157
|
+
return z.size ? L.filter(({ pricing_item_config_id: j }) => z.has(j)) : L;
|
|
3158
|
+
},
|
|
3159
|
+
set: (L) => {
|
|
3160
|
+
const z = v.form.value.seatsValues ?? [], j = ye.value;
|
|
3161
|
+
if (!j.size) {
|
|
3162
|
+
v.form.value.seatsValues = L;
|
|
3163
|
+
return;
|
|
3164
|
+
}
|
|
3165
|
+
const q = z.filter(
|
|
3166
|
+
({ pricing_item_config_id: Y }) => !j.has(Y)
|
|
3167
|
+
);
|
|
3168
|
+
v.form.value.seatsValues = q.concat(L);
|
|
3169
|
+
}
|
|
3170
|
+
}), Se = b(() => {
|
|
3171
|
+
var L, z, j, q, Y;
|
|
3172
|
+
return d.value ? y(
|
|
3173
|
+
{
|
|
3174
|
+
defaultMessage: "{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.",
|
|
3175
|
+
id: "checkout.agreement.trial",
|
|
3176
|
+
description: "The agreement for the trial period"
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
discounted_amount: d.value.tax_summary.total_amount.quantity === "0.00" ? y({
|
|
3180
|
+
defaultMessage: "Free",
|
|
3181
|
+
id: "checkout.agreement.trial.free",
|
|
3182
|
+
description: "The free amount for the trial period"
|
|
3183
|
+
}) : be(d.value.tax_summary.total_amount),
|
|
3184
|
+
trial_period: A(h.value, { short: !0 }),
|
|
3185
|
+
subscription_amount: be(
|
|
3186
|
+
((L = f.value) == null ? void 0 : L.tax_summary.total_amount) ?? {
|
|
3187
|
+
quantity: "0.00",
|
|
3188
|
+
currency: "EUR"
|
|
3189
|
+
}
|
|
3190
|
+
),
|
|
3191
|
+
billing_period: A(
|
|
3192
|
+
((z = f.value) == null ? void 0 : z.billing_period) ?? { type: "MONTH", value: 1 },
|
|
3193
|
+
{ short: !0, singular: !0, hideValueForExactPeriods: !0 }
|
|
3194
|
+
),
|
|
3195
|
+
// @ts-expect-error formatjs does not support this type yet
|
|
3196
|
+
start_date: new Date(Ae.value)
|
|
3197
|
+
}
|
|
3198
|
+
) : y(
|
|
3199
|
+
{
|
|
3200
|
+
defaultMessage: "{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.",
|
|
3201
|
+
id: "checkout.agreement.subscription",
|
|
3202
|
+
description: "The agreement for the subscription"
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
subscription_amount: (j = f.value) != null && j.tax_summary.total_amount ? be((q = f.value) == null ? void 0 : q.tax_summary.total_amount) : "",
|
|
3206
|
+
billing_period: A(
|
|
3207
|
+
((Y = f.value) == null ? void 0 : Y.billing_period) ?? { type: "MONTH", value: 1 },
|
|
3208
|
+
{ short: !0, singular: !0, hideValueForExactPeriods: !0 }
|
|
3209
|
+
),
|
|
3210
|
+
// @ts-expect-error formatjs does not support this type yet
|
|
3211
|
+
start_date: new Date(Ae.value)
|
|
3212
|
+
}
|
|
3213
|
+
);
|
|
3214
|
+
}), Ee = b(() => {
|
|
3215
|
+
var z;
|
|
3216
|
+
if (!f.value)
|
|
3217
|
+
return;
|
|
3218
|
+
const L = hi({
|
|
3219
|
+
subscription: T.value,
|
|
3220
|
+
fallback: y({
|
|
3221
|
+
defaultMessage: "Subscription",
|
|
3222
|
+
description: "The fallback name for when no subscription name can be determined",
|
|
3223
|
+
id: "customer_overview.subscriptions_block.fallback_subscription_name"
|
|
3224
|
+
})
|
|
3225
|
+
});
|
|
3226
|
+
return {
|
|
3227
|
+
description: L,
|
|
3228
|
+
managementURL: "https://www.solvimon.com/account/billing",
|
|
3229
|
+
agreement: Se.value,
|
|
3230
|
+
...d.value && h.value && {
|
|
3231
|
+
trial: {
|
|
3232
|
+
label: y({
|
|
3233
|
+
defaultMessage: "Trial",
|
|
3234
|
+
id: "checkout.trial.label",
|
|
3235
|
+
description: "The label of the trial"
|
|
3236
|
+
}),
|
|
3237
|
+
amount: d.value.tax_summary.total_amount,
|
|
3238
|
+
startDate: Ge.value ? new Date(Ge.value) : void 0,
|
|
3239
|
+
endDate: it.value ? new Date(it.value) : void 0
|
|
3240
|
+
}
|
|
3241
|
+
},
|
|
3242
|
+
regular: {
|
|
3243
|
+
label: L,
|
|
3244
|
+
amount: f.value.tax_summary.total_amount,
|
|
3245
|
+
startDate: Ae.value ? new Date(Ae.value) : void 0,
|
|
3246
|
+
interval: ((z = T.value) == null ? void 0 : z.billing_period) ?? { type: "MONTH", value: 1 }
|
|
3247
|
+
}
|
|
3248
|
+
};
|
|
3249
|
+
}), ke = (L) => Ve(L), de = (L) => {
|
|
3250
|
+
const { country: z, ...j } = L;
|
|
3251
|
+
v.updateInitialState({
|
|
3252
|
+
...j,
|
|
3253
|
+
...z && ke(z) ? { country: z } : {}
|
|
3254
|
+
});
|
|
3255
|
+
}, Ft = b(() => !(P && N)), Ge = b(() => {
|
|
3256
|
+
var j, q, Y;
|
|
3257
|
+
const L = (q = (j = d.value) == null ? void 0 : j.periods) == null ? void 0 : q[0], z = (Y = Ye.value) == null ? void 0 : Y.trialStartDate;
|
|
3258
|
+
return L != null && L.start_at ? new Date(L.start_at) : z;
|
|
3259
|
+
}), Ye = b(() => bi(T.value)), it = b(() => {
|
|
3260
|
+
var j, q, Y;
|
|
3261
|
+
const L = (q = (j = d.value) == null ? void 0 : j.periods) == null ? void 0 : q[0], z = (Y = Ye.value) == null ? void 0 : Y.trialEndDate;
|
|
3262
|
+
return L != null && L.end_at ? new Date(L.end_at) : z;
|
|
3263
|
+
}), Ae = b(() => {
|
|
3264
|
+
var j, q, Y;
|
|
3265
|
+
const L = (q = (j = f.value) == null ? void 0 : j.periods) == null ? void 0 : q[0], z = (Y = Ye.value) == null ? void 0 : Y.subscriptionStartDate;
|
|
3266
|
+
return L != null && L.start_at ? new Date(L.start_at) : z;
|
|
3267
|
+
}), Vt = b(() => !!(v.form.value.seatsValues && v.form.value.seatsValues.length > 0 || T.value && _o(T.value) || T.value && Mo(T.value))), Ce = V(null), {
|
|
3268
|
+
applyPromotionCode: ot,
|
|
3269
|
+
removePromotionCode: Gt,
|
|
3270
|
+
isPromotionCodePending: Yt,
|
|
3271
|
+
promotionCodeErrorMessage: Ke
|
|
3272
|
+
} = Do({
|
|
3273
|
+
checkoutForm: v,
|
|
3274
|
+
updateInvoicePreviewOnBillingInformationChange: ie,
|
|
3275
|
+
formatErrorMessage: ({ action: L }) => y(L === "apply" ? {
|
|
3276
|
+
defaultMessage: "Promotion code could not be applied. Please try again.",
|
|
3277
|
+
id: "checkout.promotion_code.apply_failed",
|
|
3278
|
+
description: "Error message when applying a promotion code in checkout failed"
|
|
3279
|
+
} : {
|
|
3280
|
+
defaultMessage: "Promotion code could not be removed. Please try again.",
|
|
3281
|
+
id: "checkout.promotion_code.remove_failed",
|
|
3282
|
+
description: "Error message when removing a promotion code in checkout failed"
|
|
3283
|
+
}),
|
|
3284
|
+
onInvalidPromotionCode: () => {
|
|
3285
|
+
Ce.value = null;
|
|
3286
|
+
},
|
|
3287
|
+
onApplyError: () => {
|
|
3288
|
+
Ce.value = null;
|
|
3289
|
+
}
|
|
3290
|
+
});
|
|
3291
|
+
Eo({
|
|
3292
|
+
subscription: T,
|
|
3293
|
+
promotionCode: (gt = a.configuration) == null ? void 0 : gt.couponCode,
|
|
3294
|
+
appliedPromotionCode: Ce,
|
|
3295
|
+
applyPromotionCode: ot
|
|
3296
|
+
});
|
|
3297
|
+
const nt = () => {
|
|
3298
|
+
x && Pi(x);
|
|
3299
|
+
}, Kt = b(
|
|
3300
|
+
() => {
|
|
3301
|
+
var L;
|
|
3302
|
+
return !((L = a.configuration) != null && L.onPaymentSuccess) && !!x;
|
|
3303
|
+
}
|
|
3304
|
+
), Qt = () => {
|
|
3305
|
+
var L;
|
|
3306
|
+
if (O.value = !0, Ke.value = null, (L = a.configuration) != null && L.onPaymentSuccess) {
|
|
3307
|
+
a.configuration.onPaymentSuccess();
|
|
3308
|
+
return;
|
|
3309
|
+
}
|
|
3310
|
+
if (x) {
|
|
3311
|
+
nt();
|
|
3312
|
+
return;
|
|
3313
|
+
}
|
|
3314
|
+
}, at = (L) => {
|
|
3315
|
+
T.value && (T.value = {
|
|
3316
|
+
...T.value,
|
|
3317
|
+
billing_period: L
|
|
3318
|
+
}, $());
|
|
3319
|
+
};
|
|
3320
|
+
return Te(() => {
|
|
3321
|
+
l("ready");
|
|
3322
|
+
}), (L, z) => M.value ? (g(), k(Qo, {
|
|
3323
|
+
key: 0,
|
|
3324
|
+
class: "sv-checkout sv-root sv-screen sv-checkout--error"
|
|
3325
|
+
})) : (g(), k(t(Gi), {
|
|
3326
|
+
key: 1,
|
|
3327
|
+
class: he(["sv-checkout sv-root sv-screen", { "sv-checkout--paid": t(O) }])
|
|
3328
|
+
}, {
|
|
3329
|
+
header: I(() => [
|
|
3330
|
+
w("div", Ln, [
|
|
3331
|
+
D(ve, { class: "min-h-[52px] w-96" }, {
|
|
3332
|
+
default: I(() => {
|
|
3333
|
+
var j, q, Y;
|
|
3334
|
+
return [
|
|
3335
|
+
t(f) && t(T) && Ae.value ? (g(), k(Vo, {
|
|
3336
|
+
key: 0,
|
|
3337
|
+
class: "sv-checkout__title",
|
|
3338
|
+
"trial-start-date": Ge.value,
|
|
3339
|
+
"trial-period": t(h),
|
|
3340
|
+
"subscription-start-date": Ae.value,
|
|
3341
|
+
"subscription-name": ((j = t(T)) == null ? void 0 : j.name) ?? "",
|
|
3342
|
+
amount: (q = t(f)) == null ? void 0 : q.invoice_amount_including_tax,
|
|
3343
|
+
"billing-period": (Y = t(T)) == null ? void 0 : Y.billing_period,
|
|
3344
|
+
"country-code": t(v).form.value.country
|
|
3345
|
+
}, null, 8, ["trial-start-date", "trial-period", "subscription-start-date", "subscription-name", "amount", "billing-period", "country-code"])) : B("", !0)
|
|
3346
|
+
];
|
|
3347
|
+
}),
|
|
3348
|
+
_: 1
|
|
3349
|
+
})
|
|
3350
|
+
])
|
|
3351
|
+
]),
|
|
3352
|
+
content: I(() => {
|
|
3353
|
+
var j, q;
|
|
3354
|
+
return [
|
|
3355
|
+
t(O) ? (g(), k(Ho, {
|
|
3356
|
+
key: 0,
|
|
3357
|
+
class: "sv-checkout__completed-payment",
|
|
3358
|
+
onContinueToMerchant: nt
|
|
3359
|
+
})) : (g(), Z(fe, { key: 1 }, [
|
|
3360
|
+
t(T) && t(C) ? (g(), k(Ct, {
|
|
3361
|
+
key: 0,
|
|
3362
|
+
class: "sv-checkout__mobile-order-summary",
|
|
3363
|
+
subscription: t(T),
|
|
3364
|
+
invoice: t(f),
|
|
3365
|
+
"invoice-preview-by-billing-period": t(r),
|
|
3366
|
+
"trial-invoice": t(d),
|
|
3367
|
+
"enabled-pricing-ids": re.value,
|
|
3368
|
+
"trial-period": t(h),
|
|
3369
|
+
avatar: (j = s.value) == null ? void 0 : j.avatar,
|
|
3370
|
+
"is-paid": t(O),
|
|
3371
|
+
"is-usage-based": W.value,
|
|
3372
|
+
"is-preview-and-payment-methods-pending": t(Q) || t(te),
|
|
3373
|
+
"country-code": t(v).form.value.country,
|
|
3374
|
+
collapsible: "collapsed",
|
|
3375
|
+
variant: "products-inline",
|
|
3376
|
+
onBillingPeriodChange: at
|
|
3377
|
+
}, 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
|
+
Vt.value && t(T) ? (g(), k(t(n), {
|
|
3379
|
+
key: 1,
|
|
3380
|
+
"seats-values": Ne.value,
|
|
3381
|
+
"onUpdate:seatsValues": z[0] || (z[0] = (Y) => Ne.value = Y),
|
|
3382
|
+
"enabled-pricing-ids": re.value,
|
|
3383
|
+
"onUpdate:enabledPricingIds": z[1] || (z[1] = (Y) => re.value = Y),
|
|
3384
|
+
class: "sv-checkout__plan-customization",
|
|
3385
|
+
subscription: t(T),
|
|
3386
|
+
"initial-seats-values": (q = t(v).initialState) == null ? void 0 : q.value.seatsValues,
|
|
3387
|
+
"billing-period": t(T).billing_period,
|
|
3388
|
+
currency: ue.value
|
|
3389
|
+
}, null, 8, ["seats-values", "enabled-pricing-ids", "subscription", "initial-seats-values", "billing-period", "currency"])) : B("", !0),
|
|
3390
|
+
t(v).form.value.country && t(H) && Ee.value ? (g(), k(hn, {
|
|
3391
|
+
key: 2,
|
|
3392
|
+
class: "sv-checkout__express-payment-methods",
|
|
3393
|
+
amount: t(H),
|
|
3394
|
+
"country-code": t(v).form.value.country,
|
|
3395
|
+
locale: t(_),
|
|
3396
|
+
"payment-methods-options-response": t(G) ?? [],
|
|
3397
|
+
"billing-information": Ee.value,
|
|
3398
|
+
"on-billing-information-change": t(ie),
|
|
3399
|
+
onUpdateBillingInformation: de
|
|
3400
|
+
}, null, 8, ["amount", "country-code", "locale", "payment-methods-options-response", "billing-information", "on-billing-information-change"])) : B("", !0),
|
|
3401
|
+
D($o, {
|
|
3402
|
+
modelValue: t(v).form.value,
|
|
3403
|
+
"onUpdate:modelValue": z[2] || (z[2] = (Y) => t(v).form.value = Y),
|
|
3404
|
+
class: "sv-checkout__customer-form",
|
|
3405
|
+
validation: t(v).validation,
|
|
3406
|
+
"read-only-email": t(P),
|
|
3407
|
+
"show-customer-info-on-top": Ft.value || t(O),
|
|
3408
|
+
"is-billing-information-mandatory": ne.value,
|
|
3409
|
+
"get-is-field-required": t(v).getIsFieldRequired,
|
|
3410
|
+
"read-only": t(O)
|
|
3411
|
+
}, 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", wn, [
|
|
3413
|
+
D(ve, {
|
|
3414
|
+
variant: "section",
|
|
3415
|
+
class: "min-h-[130px]"
|
|
3416
|
+
}, {
|
|
3417
|
+
default: I(() => [
|
|
3418
|
+
!t(Q) || t(Q) && t(G).length > 0 ? (g(), Z("div", Tn, [
|
|
3419
|
+
D(t(le), {
|
|
3420
|
+
variant: "heading-3",
|
|
3421
|
+
tag: "h2",
|
|
3422
|
+
class: "sv-checkout__payment-methods-title mb-2"
|
|
3423
|
+
}, {
|
|
3424
|
+
default: I(() => [
|
|
3425
|
+
K(F(t(y)({
|
|
3426
|
+
defaultMessage: "Payment method",
|
|
3427
|
+
id: "checkout.payment_method_block.title",
|
|
3428
|
+
description: "The title of the payment method block in the checkout form"
|
|
3429
|
+
})), 1)
|
|
3430
|
+
]),
|
|
3431
|
+
_: 1
|
|
3432
|
+
}),
|
|
3433
|
+
t(v).form.value.country ? t(R) ? (g(), k(He, {
|
|
3434
|
+
key: 1,
|
|
3435
|
+
class: "sv-checkout__payment-methods-error",
|
|
3436
|
+
icon: "error"
|
|
3437
|
+
}, {
|
|
3438
|
+
title: I(() => [
|
|
3439
|
+
K(F(t(y)({
|
|
3440
|
+
defaultMessage: "Could not load payment methods",
|
|
3441
|
+
id: "checkout.payment_method_block.load_failed_title",
|
|
3442
|
+
description: "The title shown when the payment methods failed to load"
|
|
3443
|
+
})), 1)
|
|
3444
|
+
]),
|
|
3445
|
+
message: I(() => [
|
|
3446
|
+
K(F(t(y)({
|
|
3447
|
+
defaultMessage: "Check your connection and try again.",
|
|
3448
|
+
id: "checkout.payment_method_block.load_failed_message",
|
|
3449
|
+
description: "The message shown when the payment methods failed to load"
|
|
3450
|
+
})), 1)
|
|
3451
|
+
]),
|
|
3452
|
+
action: I(() => [
|
|
3453
|
+
D(t(Ie), {
|
|
3454
|
+
type: "button",
|
|
3455
|
+
intent: "secondary",
|
|
3456
|
+
size: "sm",
|
|
3457
|
+
class: "sv-action sv-action--secondary sv-checkout__payment-methods-retry",
|
|
3458
|
+
onClick: t(u)
|
|
3459
|
+
}, {
|
|
3460
|
+
default: I(() => [
|
|
3461
|
+
K(F(t(y)({
|
|
3462
|
+
defaultMessage: "Try again",
|
|
3463
|
+
id: "checkout.payment_method_block.load_failed_retry_button.label",
|
|
3464
|
+
description: "The label of the button that loads the payment methods again"
|
|
3465
|
+
})), 1)
|
|
3466
|
+
]),
|
|
3467
|
+
_: 1
|
|
3468
|
+
}, 8, ["onClick"])
|
|
3469
|
+
]),
|
|
3470
|
+
_: 1
|
|
3471
|
+
})) : t(G).length === 0 ? (g(), k(He, {
|
|
3472
|
+
key: 2,
|
|
3473
|
+
class: "sv-checkout__payment-methods-empty",
|
|
3474
|
+
icon: "credit_card_off"
|
|
3475
|
+
}, {
|
|
3476
|
+
title: I(() => [
|
|
3477
|
+
K(F(t(y)({
|
|
3478
|
+
defaultMessage: "No payment methods available",
|
|
3479
|
+
id: "checkout.payment_method_block.no_payment_methods_available_title",
|
|
3480
|
+
description: "The title shown when there are no available payment methods"
|
|
3481
|
+
})), 1)
|
|
3482
|
+
]),
|
|
3483
|
+
_: 1
|
|
3484
|
+
})) : t(H) && t(v).form.value.country ? (g(), Z("div", Sn, [
|
|
3485
|
+
w("div", {
|
|
3486
|
+
class: he({ "pointer-events-none opacity-60": ee.value })
|
|
3487
|
+
}, [
|
|
3488
|
+
D(t(o), {
|
|
3489
|
+
ref_key: "paymentIntegrationFormRef",
|
|
3490
|
+
ref: p,
|
|
3491
|
+
"country-code": t(v).form.value.country,
|
|
3492
|
+
context: t(S),
|
|
3493
|
+
amount: t(H),
|
|
3494
|
+
email: t(v).form.value.email,
|
|
3495
|
+
variant: "AUTHORIZE",
|
|
3496
|
+
"payment-method-options": t(G) ?? [],
|
|
3497
|
+
"validate-on-submit": U,
|
|
3498
|
+
"redirects-on-success": Kt.value,
|
|
3499
|
+
"force-store-payment-method": "",
|
|
3500
|
+
onPaymentSuccess: Qt,
|
|
3501
|
+
onPaymentFailed: ae,
|
|
3502
|
+
onReady: z[3] || (z[3] = (Y) => l("ready"))
|
|
3503
|
+
}, null, 8, ["country-code", "context", "amount", "email", "payment-method-options", "redirects-on-success"])
|
|
3504
|
+
], 2)
|
|
3505
|
+
])) : B("", !0) : (g(), k(He, {
|
|
3506
|
+
key: 0,
|
|
3507
|
+
class: "sv-checkout__payment-methods-empty",
|
|
3508
|
+
icon: "captive_portal"
|
|
3509
|
+
}, {
|
|
3510
|
+
title: I(() => [
|
|
3511
|
+
K(F(t(y)({
|
|
3512
|
+
defaultMessage: "Select your billing country",
|
|
3513
|
+
id: "checkout.payment_method_block.no_country_selected_title",
|
|
3514
|
+
description: "The title shown when no country is selected"
|
|
3515
|
+
})), 1)
|
|
3516
|
+
]),
|
|
3517
|
+
message: I(() => [
|
|
3518
|
+
K(F(t(y)({
|
|
3519
|
+
defaultMessage: "Payment methods will be shown after you select the billing country.",
|
|
3520
|
+
id: "checkout.payment_method_block.no_country_selected_message",
|
|
3521
|
+
description: "The message shown when no country is selected"
|
|
3522
|
+
})), 1)
|
|
3523
|
+
]),
|
|
3524
|
+
_: 1
|
|
3525
|
+
}))
|
|
3526
|
+
])) : B("", !0)
|
|
3527
|
+
]),
|
|
3528
|
+
_: 1
|
|
3529
|
+
})
|
|
3530
|
+
])
|
|
3531
|
+
], 64))
|
|
3532
|
+
];
|
|
3533
|
+
}),
|
|
3534
|
+
aside: I(() => [
|
|
3535
|
+
w("div", kn, [
|
|
3536
|
+
D(ve, {
|
|
3537
|
+
variant: "section",
|
|
3538
|
+
class: "min-h-[220px]"
|
|
3539
|
+
}, {
|
|
3540
|
+
default: I(() => {
|
|
3541
|
+
var j;
|
|
3542
|
+
return [
|
|
3543
|
+
t(T) && t(f) ? (g(), k(Ct, {
|
|
3544
|
+
key: 0,
|
|
3545
|
+
subscription: t(T),
|
|
3546
|
+
invoice: t(f),
|
|
3547
|
+
"invoice-preview-by-billing-period": t(r),
|
|
3548
|
+
"trial-invoice": t(d),
|
|
3549
|
+
"enabled-pricing-ids": re.value,
|
|
3550
|
+
"trial-period": t(h),
|
|
3551
|
+
"country-code": t(v).form.value.country,
|
|
3552
|
+
avatar: (j = s.value) == null ? void 0 : j.avatar,
|
|
3553
|
+
"is-paid": t(O),
|
|
3554
|
+
"is-usage-based": W.value,
|
|
3555
|
+
"is-preview-and-payment-methods-pending": t(Q) || t(te),
|
|
3556
|
+
onBillingPeriodChange: at
|
|
3557
|
+
}, 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
|
+
];
|
|
3559
|
+
}),
|
|
3560
|
+
_: 1
|
|
3561
|
+
})
|
|
3562
|
+
]),
|
|
3563
|
+
t(O) ? B("", !0) : (g(), Z(fe, { key: 0 }, [
|
|
3564
|
+
D(xn, {
|
|
3565
|
+
class: "sv-checkout__promotion-code",
|
|
3566
|
+
"promotion-code": Ce.value,
|
|
3567
|
+
"onUpdate:appliedCode": z[4] || (z[4] = (j) => Ce.value = j),
|
|
3568
|
+
onRemove: t(Gt),
|
|
3569
|
+
onApply: t(ot)
|
|
3570
|
+
}, null, 8, ["promotion-code", "onRemove", "onApply"]),
|
|
3571
|
+
t(Ke) ? (g(), k(t(oi), {
|
|
3572
|
+
key: 0,
|
|
3573
|
+
class: "sv-checkout__promotion-error mt-2",
|
|
3574
|
+
title: t(Ke)
|
|
3575
|
+
}, null, 8, ["title"])) : B("", !0),
|
|
3576
|
+
w("div", On, [
|
|
3577
|
+
D(ve, { class: "sv-checkout__submit-skeleton min-h-[44px]" }, {
|
|
3578
|
+
default: I(() => [
|
|
3579
|
+
t(f) ? (g(), k(t(Ie), {
|
|
3580
|
+
key: 0,
|
|
3581
|
+
type: "button",
|
|
3582
|
+
size: "lg",
|
|
3583
|
+
class: "sv-action sv-action--primary sv-action--full-width sv-checkout__submit w-full",
|
|
3584
|
+
disabled: t(Yt) || t(G).length === 0 || ee.value,
|
|
3585
|
+
loading: ee.value,
|
|
3586
|
+
onClick: oe
|
|
3587
|
+
}, {
|
|
3588
|
+
default: I(() => [
|
|
3589
|
+
K(F(X.value ? t(y)({
|
|
3590
|
+
defaultMessage: "Start trial",
|
|
3591
|
+
id: "checkout.pay_and_subscribe_button_trial.label",
|
|
3592
|
+
description: "The label of the start trial button in the checkout form"
|
|
3593
|
+
}) : t(y)({
|
|
3594
|
+
defaultMessage: "Pay and subscribe",
|
|
3595
|
+
id: "checkout.pay_and_subscribe_button.label",
|
|
3596
|
+
description: "The label of the pay and subscribe button in the checkout form"
|
|
3597
|
+
})), 1)
|
|
3598
|
+
]),
|
|
3599
|
+
_: 1
|
|
3600
|
+
}, 8, ["disabled", "loading"])) : B("", !0)
|
|
3601
|
+
]),
|
|
3602
|
+
_: 1
|
|
3603
|
+
}),
|
|
3604
|
+
D(Bi, { "payment-method-options": t(G) }, null, 8, ["payment-method-options"])
|
|
3605
|
+
])
|
|
3606
|
+
], 64))
|
|
3607
|
+
]),
|
|
3608
|
+
_: 1
|
|
3609
|
+
}, 8, ["class"]));
|
|
3610
|
+
}
|
|
3611
|
+
}), jn = /* @__PURE__ */ se({
|
|
3612
|
+
__name: "Checkout.entry",
|
|
3613
|
+
props: {
|
|
3614
|
+
environment: { type: String },
|
|
3615
|
+
locale: { type: String },
|
|
3616
|
+
dateLocale: { type: String },
|
|
3617
|
+
messages: { type: Object },
|
|
3618
|
+
primaryColor: { type: String },
|
|
3619
|
+
secondaryColor: { type: String },
|
|
3620
|
+
isShadowRoot: { type: Boolean },
|
|
3621
|
+
experimentalFeatures: { type: Array },
|
|
3622
|
+
logLevel: { type: String },
|
|
3623
|
+
onLog: { type: Function },
|
|
3624
|
+
allowedPortalTypes: { type: Array },
|
|
3625
|
+
portalObject: { type: Object },
|
|
3626
|
+
cssOverrides: { type: [String, Array] },
|
|
3627
|
+
branding: { type: Object },
|
|
3628
|
+
configuration: { type: Object }
|
|
3629
|
+
},
|
|
3630
|
+
emits: ["error", "ready"],
|
|
3631
|
+
setup(e, { emit: i }) {
|
|
3632
|
+
var s;
|
|
3633
|
+
const o = Ki("checkout"), n = e, a = i, l = ((s = n.configuration) == null ? void 0 : s.couponCode) ?? xe("coupon_code") ?? void 0;
|
|
3634
|
+
return (M, p) => (g(), k(t(ti), {
|
|
3635
|
+
entry: M.$props,
|
|
3636
|
+
"component-name": t(o),
|
|
3637
|
+
"allowed-portal-types": ["INIT_PRICING_PLAN_SUBSCRIPTION"],
|
|
3638
|
+
onError: p[1] || (p[1] = (E) => M.$emit("error", E))
|
|
3639
|
+
}, {
|
|
3640
|
+
default: I(() => {
|
|
3641
|
+
var E, y, _, A, c;
|
|
3642
|
+
return [
|
|
3643
|
+
D(zn, {
|
|
3644
|
+
configuration: {
|
|
3645
|
+
avatar: (y = (E = e.branding) == null ? void 0 : E.emblem) == null ? void 0 : y.public_url,
|
|
3646
|
+
email: (_ = e.configuration) == null ? void 0 : _.email,
|
|
3647
|
+
countryCode: (A = e.configuration) == null ? void 0 : A.countryCode,
|
|
3648
|
+
enabledPricingIds: (c = e.configuration) == null ? void 0 : c.enabledPricingIds,
|
|
3649
|
+
couponCode: t(l)
|
|
3650
|
+
},
|
|
3651
|
+
onReady: p[0] || (p[0] = (C) => a("ready"))
|
|
3652
|
+
}, qe({ _: 2 }, [
|
|
3653
|
+
M.$slots["terms-and-conditions"] ? {
|
|
3654
|
+
name: "terms-and-conditions",
|
|
3655
|
+
fn: I(() => [
|
|
3656
|
+
Xe(M.$slots, "terms-and-conditions")
|
|
3657
|
+
]),
|
|
3658
|
+
key: "0"
|
|
3659
|
+
} : void 0
|
|
3660
|
+
]), 1032, ["configuration"])
|
|
3661
|
+
];
|
|
3662
|
+
}),
|
|
3663
|
+
_: 3
|
|
3664
|
+
}, 8, ["entry", "component-name"]));
|
|
3665
|
+
}
|
|
3666
|
+
}), { define: Na } = ii(
|
|
3667
|
+
jn,
|
|
3668
|
+
"checkout"
|
|
3669
|
+
);
|
|
3670
|
+
export {
|
|
3671
|
+
ho as F,
|
|
3672
|
+
Jo as _,
|
|
3673
|
+
Na as d
|
|
3674
|
+
};
|