@solvimon/solvimon-web 0.1.0-alpha.26 → 0.1.0-alpha.27
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 +12 -10
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
- package/dist/{Avatar.vue.es-Bm6MCMAL.js → Avatar.vue.es-BJxSCU76.js} +1 -1
- package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +14 -15
- package/dist/{Button.vue.es-qGvnOKnK.js → Button.vue.es-BzkuglKw.js} +1 -1
- package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CB4mrvkU.mjs} +145 -153
- package/dist/{ChargeOnDemandModal-DIQaGnRs.js → ChargeOnDemandModal-b17YswWA.js} +1 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
- package/dist/{Chip.vue.es-D60gTbfe.js → Chip.vue.es-B2jjzIOc.js} +1 -1
- package/dist/{Chip.vue.es-CKCOY5T6.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-C7KI8Gz6.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
- package/dist/{ContextMenu.vue.es-Da-lAmTl.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-bFUx81Ig.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +110 -123
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
- package/dist/{DividerText.vue.es-BF3gnr4e.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
- package/dist/{DividerText.vue.es-DKl3FnDJ.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-rRKgmkzV.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-BX9dHEc-.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
- package/dist/{IconButton.vue.es-Bwdfu-jm.js → IconButton.vue.es-DgQN18Am.js} +1 -1
- package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
- package/dist/{IconTitle.vue.es-CK9k69tV.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
- package/dist/{IconTitle.vue.es-Cei98MBw.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
- package/dist/{Input.vue.es-B47l_feL.js → Input.vue.es-B60eK8Ds.js} +1 -1
- package/dist/{Input.vue.es-D9IjIWc-.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
- package/dist/{InvoiceSummary.vue.es-DBnR9Hs7.js → InvoiceSummary.vue.es-CAmA8g0t.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-DQ4KvTaw.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +7 -7
- package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
- package/dist/{Modal.vue.es-8LN4gBh0.js → Modal.vue.es-DvLB3uCG.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-Ds93gNvh.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
- package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-B_Db4DG1.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
- package/dist/{PaymentIntegrationForm-UWoyZgsR.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs} +4 -4
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
- package/dist/{PaymentIntegrationFormAdyen-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +16 -20
- package/dist/{PaymentIntegrationFormStripe-DUCJTIAq.js → PaymentIntegrationFormStripe-CoLmAzas.js} +3 -3
- package/dist/{PaymentIntegrationFormStripe-BIiMCWlV.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +5 -5
- package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +3 -3
- package/dist/{PaymentMethod.vue.es-CJcSZ9lN.js → PaymentMethod.vue.es-D0D9jW8s.js} +1 -1
- package/dist/{PaymentMethodForm-1d0YIGOu.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
- package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +33 -35
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
- package/dist/{PlanCustomizationEditor-CpZeilm5.mjs → PlanCustomizationEditor-DlVSCKGN.mjs} +234 -206
- package/dist/{PricingGroupRangeInput.vue.es-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-DZSJ5Mz0.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs} +6 -6
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-Dt6LH9Yh.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
- package/dist/{Section.vue.es-zVXBHAL6.js → Section.vue.es-Bbt0RITt.js} +1 -1
- package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
- package/dist/{StepInput.vue.es-mAnuCuDQ.js → StepInput.vue.es-H-3R4jJq.js} +1 -1
- package/dist/{StepInput.vue.es-C3Zm6Wc9.mjs → StepInput.vue.es-o-3Lg4Ai.mjs} +4 -4
- package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-CGl6Z5ql.mjs} +22 -22
- package/dist/{SubscriptionDetails.entry.ce-D4CsSoR9.js → SubscriptionDetails.entry.ce-CQUO_uXH.js} +1 -1
- package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
- package/dist/{SubscriptionSchedules-Cm5Dt-1H.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +11 -11
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +8 -9
- package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-Cph6zT31.js → TooltipParagraph.vue.es-DvC5Wjaz.js} +1 -1
- package/dist/{TrialChip.vue.es-C_wgHGuN.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
- package/dist/{TrialChip.vue.es-C_yRujip.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
- package/dist/{cn.es-D9YMDvG2.js → cn.es-C9Yqq4tg.js} +1 -1
- package/dist/{cn.es-CGa6b2Lt.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +9 -9
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +15 -16
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +14 -15
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-D5DAoHRI.mjs → customElements-B58FcXIN.mjs} +5 -5
- package/dist/{customElements-C963-LtW.js → customElements-DUMRMFQ5.js} +2 -2
- package/dist/{customer-DKa1B2vp.mjs → customer-B3LPAhaD.mjs} +1 -1
- package/dist/{customer-TE1FnGT0.js → customer-CisTPaXj.js} +1 -1
- package/dist/{de-DE-CLfzTbbX.mjs → de-DE-DKp5LCu0.mjs} +15 -1
- package/dist/de-DE-DL74pMLb.js +1 -0
- package/dist/en-US-B2XFj-_p.js +1 -0
- package/dist/{en-US-D6SGRAch.mjs → en-US-DQ5vlv9Z.mjs} +15 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{invoices-DJTwftJv.mjs → invoices-3520M5AN.mjs} +1 -1
- package/dist/{invoices-ClqTWYF9.js → invoices-CKQBLar2.js} +1 -1
- package/dist/{it-IT-Cym1UvvK.mjs → it-IT-BgFVsO5S.mjs} +15 -1
- package/dist/it-IT-CqNK62qe.js +1 -0
- package/dist/nl-NL-Dx-TNXQ1.js +1 -0
- package/dist/{nl-NL-D0c4x5C0.mjs → nl-NL-UiRWbO9S.mjs} +15 -1
- package/dist/{paymentMethods-CWzJhcWK.mjs → paymentMethods-CWlvwK5V.mjs} +1 -1
- package/dist/{paymentMethods-AL2U_byg.js → paymentMethods-Cw-i95mM.js} +1 -1
- package/dist/{payments-aXyfylwk.mjs → payments-2qeQdpiW.mjs} +1 -1
- package/dist/{payments-BmiHMlQt.js → payments-CS7_YcOW.js} +1 -1
- package/dist/pricing-BIMpDI_p.mjs +29 -0
- package/dist/pricing-BOqG21f9.js +1 -0
- package/dist/{pricingPlanSchedules-BfsMSvN0.js → pricingPlanSchedules-B_sTAIgU.js} +1 -1
- package/dist/{pricingPlanSchedules-BD4GIP_F.mjs → pricingPlanSchedules-ChQCbMfe.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +12 -12
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
- package/dist/{subscriptions-cnR5fnf7.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
- package/dist/{subscriptions-Cm83ckfl.js → subscriptions-DwVsf4Ev.js} +1 -1
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +1 -1
- package/dist/{useActionDispatchProvider-DDYqIh3r.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CHkVQMaE.js → useActionDispatchProvider-DFhppdve.js} +1 -1
- package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
- package/dist/{useCustomer-DGYtowRy.js → useCustomer-BwZKd9i5.js} +1 -1
- package/dist/{useCustomerFormLabels-CcnkJLcB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +5 -5
- package/dist/{useCustomerFormLabels-DAZziqYt.js → useCustomerFormLabels-DV9QiMYh.js} +1 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
- package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
- package/dist/{useInvoiceData-BEK-7msA.mjs → useInvoiceData-BocKdeg7.mjs} +2 -2
- package/dist/{useInvoiceData-CQRn8l9C.js → useInvoiceData-CNV_FMV8.js} +1 -1
- package/dist/{useInvoicesList-C4I118KM.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
- package/dist/{useInvoicesList-BQkKyyXa.js → useInvoicesList-S0IbQcrD.js} +1 -1
- package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
- package/dist/{useLoadInitialData-CrKnBZs_.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
- package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +13 -14
- package/dist/{usePaymentMethodOptions-Ciifjo6c.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +1 -1
- package/dist/{usePaymentMethodOptions-Cqe92ZBn.js → usePaymentMethodOptions-CuzOoi2k.js} +1 -1
- package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
- package/dist/{usePaymentMethods-BKwrl82-.js → usePaymentMethods-DDaTZQZp.js} +1 -1
- package/dist/{usePayments-CV85OV8V.mjs → usePayments-Cr6NlGaW.mjs} +6 -6
- package/dist/{usePayments-Bauj16B-.js → usePayments-DDSjo0rH.js} +1 -1
- package/dist/{usePortal-DSLImEfr.js → usePortal-C27omjhz.js} +1 -1
- package/dist/{usePortal-H8Tv2TnZ.mjs → usePortal-C5AsegpS.mjs} +1 -1
- package/dist/{useSubscription-DqnxWNKg.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
- package/dist/{useSubscription-BiYNJT2e.js → useSubscription-D787IXY-.js} +1 -1
- package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
- package/dist/{useTimePeriod.es-D2aiyfd-.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
- package/package.json +10 -7
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
- package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
- package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
- package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/de-DE-DaBBl-Ak.js +0 -1
- package/dist/en-US-BNevqm0M.js +0 -1
- package/dist/it-IT-BkPbTueL.js +0 -1
- package/dist/nl-NL-jIfAVGv0.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
- package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
- package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as F, ref as d, computed as s, openBlock as i, createBlock as
|
|
1
|
+
import { defineComponent as F, ref as d, computed as s, openBlock as i, createBlock as r, unref as m, withCtx as f, createElementVNode as $, normalizeClass as V, createVNode as Z, mergeProps as w, createTextVNode as _, toDisplayString as b, createCommentVNode as K } from "vue";
|
|
2
2
|
import { g as D, a as j } from "./customer.es-B5ppZf0j.mjs";
|
|
3
|
-
import { _ as g } from "./Button.vue.es-
|
|
4
|
-
import { _ as H } from "./Section.vue.es-
|
|
5
|
-
import { a as q } from "./customElements-
|
|
6
|
-
import { _ as z } from "./Skeleton.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as Y } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as G, _ as J } from "./usePaymentMethodAvailability-
|
|
3
|
+
import { _ as g } from "./Button.vue.es-Cmjfm4jw.mjs";
|
|
4
|
+
import { _ as H } from "./Section.vue.es-DVEpre9O.mjs";
|
|
5
|
+
import { a as q } from "./customElements-B58FcXIN.mjs";
|
|
6
|
+
import { _ as z } from "./Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs";
|
|
7
|
+
import { _ as Y } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs";
|
|
8
|
+
import { u as G, _ as J } from "./usePaymentMethodAvailability-DAcsKGeh.mjs";
|
|
9
9
|
import { s as Q } from "./url-TNRgVI8A.mjs";
|
|
10
|
-
const C = "NL",
|
|
10
|
+
const C = "NL", re = /* @__PURE__ */ F({
|
|
11
11
|
__name: "PaymentMethodForm",
|
|
12
12
|
props: {
|
|
13
13
|
customer: { type: Object },
|
|
@@ -55,19 +55,19 @@ const C = "NL", me = /* @__PURE__ */ F({
|
|
|
55
55
|
const k = (e) => (e == null ? void 0 : e.variant) === "AUTHORIZE" ? e : {
|
|
56
56
|
...e,
|
|
57
57
|
variant: "TOKENIZE"
|
|
58
|
-
},
|
|
58
|
+
}, n = s(
|
|
59
59
|
() => k(t.configuration)
|
|
60
60
|
), R = s(
|
|
61
|
-
() => c.value && !t.hideSubmitButton && !!
|
|
61
|
+
() => c.value && !t.hideSubmitButton && !!n.value.successRedirectUrl
|
|
62
62
|
), T = s(
|
|
63
|
-
() =>
|
|
63
|
+
() => n.value.successRedirectLabel ?? p({
|
|
64
64
|
defaultMessage: "Continue",
|
|
65
65
|
description: "Label of the button that leaves the form once the payment method is stored",
|
|
66
66
|
id: "components.payment_method_form.continue_button.label"
|
|
67
67
|
})
|
|
68
68
|
);
|
|
69
69
|
function U() {
|
|
70
|
-
const { successRedirectUrl: e } =
|
|
70
|
+
const { successRedirectUrl: e } = n.value;
|
|
71
71
|
e && Q(e);
|
|
72
72
|
}
|
|
73
73
|
const x = s(() => {
|
|
@@ -75,49 +75,48 @@ const C = "NL", me = /* @__PURE__ */ F({
|
|
|
75
75
|
if (t.countryCode)
|
|
76
76
|
return e = t.countryCode, e;
|
|
77
77
|
if (t.customer) {
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
return e =
|
|
78
|
+
const o = D(t.customer);
|
|
79
|
+
if (o)
|
|
80
|
+
return e = o, e;
|
|
81
81
|
}
|
|
82
82
|
return C;
|
|
83
83
|
}), B = s(() => {
|
|
84
|
-
const e =
|
|
85
|
-
amount:
|
|
84
|
+
const e = n.value.variant, o = j(t.customer), u = {
|
|
85
|
+
amount: n.value.amount ?? L,
|
|
86
86
|
paymentMethodOptions: t.paymentMethodOptions,
|
|
87
87
|
countryCode: x.value,
|
|
88
88
|
...t.customer.email ? { email: t.customer.email } : {},
|
|
89
|
-
...
|
|
90
|
-
validateOnSubmit:
|
|
91
|
-
forceStorePaymentMethod:
|
|
92
|
-
selectedOption:
|
|
93
|
-
invoiceId:
|
|
89
|
+
...o ? { name: o } : {},
|
|
90
|
+
validateOnSubmit: n.value.validateOnSubmit,
|
|
91
|
+
forceStorePaymentMethod: n.value.forceStorePaymentMethod,
|
|
92
|
+
selectedOption: n.value.selectedOption,
|
|
93
|
+
invoiceId: n.value.invoiceId
|
|
94
94
|
};
|
|
95
95
|
return e === "AUTHORIZE" ? {
|
|
96
96
|
...u,
|
|
97
97
|
variant: e,
|
|
98
|
-
context:
|
|
98
|
+
context: n.value.context
|
|
99
99
|
} : {
|
|
100
100
|
...u,
|
|
101
101
|
variant: "TOKENIZE",
|
|
102
102
|
customerId: t.customer.id
|
|
103
103
|
};
|
|
104
104
|
});
|
|
105
|
-
return (e,
|
|
105
|
+
return (e, o) => l.isLoading ? (i(), r(z, {
|
|
106
106
|
key: 0,
|
|
107
107
|
variant: "section",
|
|
108
|
-
class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"
|
|
109
|
-
|
|
110
|
-
})) : r(S) === "UNAVAILABLE" ? (i(), m(J, {
|
|
108
|
+
class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"
|
|
109
|
+
})) : m(S) === "UNAVAILABLE" ? (i(), r(J, {
|
|
111
110
|
key: 1,
|
|
112
111
|
class: "sv-payment-method-form sv-root sv-component",
|
|
113
|
-
variant:
|
|
114
|
-
}, null, 8, ["variant"])) : (i(), m(
|
|
112
|
+
variant: n.value.variant ?? "TOKENIZE"
|
|
113
|
+
}, null, 8, ["variant"])) : (i(), r(m(H), {
|
|
115
114
|
key: 2,
|
|
116
115
|
class: "sv-payment-method-form sv-root sv-component",
|
|
117
116
|
"no-border": "",
|
|
118
117
|
"no-spacing": "",
|
|
119
118
|
"content-background": "none",
|
|
120
|
-
title: l.title ??
|
|
119
|
+
title: l.title ?? m(p)({
|
|
121
120
|
defaultMessage: "Available payment methods",
|
|
122
121
|
description: "Title of the available payment methods form",
|
|
123
122
|
id: "components.payment_method_form.section_title"
|
|
@@ -132,24 +131,23 @@ const C = "NL", me = /* @__PURE__ */ F({
|
|
|
132
131
|
ref: y,
|
|
133
132
|
class: "sv-payment-method-form__integration"
|
|
134
133
|
}, B.value, {
|
|
135
|
-
onSelect:
|
|
134
|
+
onSelect: o[0] || (o[0] = (u) => M.value = u),
|
|
136
135
|
onPaymentSuccess: A,
|
|
137
136
|
onPaymentFailed: E,
|
|
138
137
|
onInvalid: N
|
|
139
138
|
}), null, 16)
|
|
140
139
|
], 2),
|
|
141
|
-
R.value ? (i(), m(
|
|
140
|
+
R.value ? (i(), r(m(g), {
|
|
142
141
|
key: 0,
|
|
143
142
|
intent: "primary",
|
|
144
143
|
class: "mt-4 w-full",
|
|
145
|
-
"data-testid": "payment-method-form-continue",
|
|
146
144
|
onClick: U
|
|
147
145
|
}, {
|
|
148
146
|
default: f(() => [
|
|
149
147
|
_(b(T.value), 1)
|
|
150
148
|
]),
|
|
151
149
|
_: 1
|
|
152
|
-
})) : !l.hideSubmitButton && !c.value ? (i(), m(
|
|
150
|
+
})) : !l.hideSubmitButton && !c.value ? (i(), r(m(g), {
|
|
153
151
|
key: 1,
|
|
154
152
|
intent: "primary",
|
|
155
153
|
class: "mt-4 w-full",
|
|
@@ -167,5 +165,5 @@ const C = "NL", me = /* @__PURE__ */ F({
|
|
|
167
165
|
}
|
|
168
166
|
});
|
|
169
167
|
export {
|
|
170
|
-
|
|
168
|
+
re as _
|
|
171
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),p=require("./customer.es-BButyYo0.js"),v=require("./Button.vue.es-
|
|
1
|
+
const e=require("vue"),p=require("./customer.es-BButyYo0.js"),v=require("./Button.vue.es-BzkuglKw.js"),N=require("./Section.vue.es-Bbt0RITt.js"),x=require("./customElements-DUMRMFQ5.js"),T=require("./Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js"),q=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js"),y=require("./usePaymentMethodAvailability-BO_guwAw.js"),R=require("./url-vloPOiXd.js"),f="NL",U=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String},title:{type:String},hideSubmitButton:{type:Boolean}},emits:["success","failure"],setup(i,{expose:_,emit:h}){const b={currency:"EUR",quantity:"0"},n=i,l=h,{$t:u}=x.useIntl(),{availability:g}=y.usePaymentMethodAvailability({paymentMethodOptions:()=>n.paymentMethodOptions,isLoading:()=>n.isLoading,context:()=>{var t;return{invoiceId:(t=n.configuration)==null?void 0:t.invoiceId}}}),m=e.ref(),C=e.ref(),s=e.ref(!1),r=e.ref(!1);function d(){var t;s.value=!0,(t=m.value)==null||t.submit()}const k=e.computed(()=>u({defaultMessage:"Save payment method",description:"Label of the button that stores the entered payment method",id:"components.payment_method_form.submit_button.label"}));_({submit:d,isPaymentPending:s,isCompleted:r});function O(){s.value=!1,r.value=!0,l("success")}function B(t){s.value=!1,l("failure",t)}function I(){s.value=!1}const S=t=>(t==null?void 0:t.variant)==="AUTHORIZE"?t:{...t,variant:"TOKENIZE"},o=e.computed(()=>S(n.configuration)),P=e.computed(()=>r.value&&!n.hideSubmitButton&&!!o.value.successRedirectUrl),L=e.computed(()=>o.value.successRedirectLabel??u({defaultMessage:"Continue",description:"Label of the button that leaves the form once the payment method is stored",id:"components.payment_method_form.continue_button.label"}));function M(){const{successRedirectUrl:t}=o.value;t&&R.safeUrlRedirect(t)}const A=e.computed(()=>{let t=f;if(n.countryCode)return t=n.countryCode,t;if(n.customer){const a=p.getCustomerCountry(n.customer);if(a)return t=a,t}return f}),E=e.computed(()=>{const t=o.value.variant,a=p.getCustomerName(n.customer),c={amount:o.value.amount??b,paymentMethodOptions:n.paymentMethodOptions,countryCode:A.value,...n.customer.email?{email:n.customer.email}:{},...a?{name:a}:{},validateOnSubmit:o.value.validateOnSubmit,forceStorePaymentMethod:o.value.forceStorePaymentMethod,selectedOption:o.value.selectedOption,invoiceId:o.value.invoiceId};return t==="AUTHORIZE"?{...c,variant:t,context:o.value.context}:{...c,variant:"TOKENIZE",customerId:n.customer.id}});return(t,a)=>i.isLoading?(e.openBlock(),e.createBlock(T._sfc_main,{key:0,variant:"section",class:"sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"})):e.unref(g)==="UNAVAILABLE"?(e.openBlock(),e.createBlock(y._sfc_main,{key:1,class:"sv-payment-method-form sv-root sv-component",variant:o.value.variant??"TOKENIZE"},null,8,["variant"])):(e.openBlock(),e.createBlock(e.unref(N._sfc_main),{key:2,class:"sv-payment-method-form sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:i.title??e.unref(u)({defaultMessage:"Available payment methods",description:"Title of the available payment methods form",id:"components.payment_method_form.section_title"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":s.value})},[e.createVNode(q._sfc_main,e.mergeProps({ref_key:"paymentIntegrationFormRef",ref:m,class:"sv-payment-method-form__integration"},E.value,{onSelect:a[0]||(a[0]=c=>C.value=c),onPaymentSuccess:O,onPaymentFailed:B,onInvalid:I}),null,16)],2),P.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"primary",class:"mt-4 w-full",onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.value),1)]),_:1})):!i.hideSubmitButton&&!r.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"primary",class:"mt-4 w-full",loading:s.value,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.value),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=U;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),u=require("./PaymentMethod.vue.es-
|
|
1
|
+
const e=require("vue"),u=require("./PaymentMethod.vue.es-D0D9jW8s.js"),g=require("./ErrorNotification.vue.es-tS9vySUZ.js"),f=require("./Section.vue.es-Bbt0RITt.js"),c=require("./customElements-DUMRMFQ5.js"),x=require("./Modal.vue.es-DvLB3uCG.js"),_=require("./useService-H7BjLg8P.js"),C=require("./paymentMethods-Cw-i95mM.js");function M({onSetDefault:s,onDeleteRequest:l}){const{$t:o}=c.useIntl();return{getContextMenuItems:t=>{const i=[];return t.is_default||i.push({label:o({defaultMessage:"Set as default",id:"payment_method.context_menu.set_as_default.label",description:"Context menu option for setting the default payment method"}),onClick:()=>s(t)}),i.push({label:o({defaultMessage:"Delete",id:"payment_method.context_menu.delete.label",description:"Context menu option for deleting the payment method"}),onClick:()=>l(t)}),i}}}function k(){const{archivePaymentMethod:s,setDefaultPaymentMethod:l}=C.createPaymentMethodsService(),o=_.useService({service:t=>s({paymentMethodId:t})}),n=_.useService({service:t=>l({paymentMethodId:t})});return{archive:o.execute,archiveError:o.error,isArchiving:o.isPending,setDefault:n.execute,setDefaultError:n.error,isSettingDefault:n.isPending}}const b={key:0,class:"sv-payment-methods__list grid grid-cols-1 gap-4"},D={class:"sv-payment-methods__delete-modal-body flex flex-col gap-3"},w={class:"px-3 py-2"},q=e.defineComponent({__name:"PaymentMethodsList",props:{paymentMethods:{type:Array}},emits:["delete","set-default"],setup(s,{emit:l}){const o=l,{$t:n}=c.useIntl(),t=e.ref(null),{archive:i,archiveError:m,isArchiving:r,setDefault:h}=k(),{getContextMenuItems:p}=M({onDeleteRequest:a=>{t.value=a},onSetDefault:async a=>{await h(a.id),o("set-default",a)}});function y(){t.value=null,m.value=null}async function v(){const a=t.value;if(!(!a||r.value)){try{await i(a.id)}catch{return}o("delete",a),t.value=null}}return(a,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.paymentMethods.length>0?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentMethods,d=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:d.id,class:"sv-payment-methods__item"},{default:e.withCtx(()=>[e.createVNode(e.unref(u._sfc_main),{class:"sv-payment-methods__item-content","payment-method":d,options:e.unref(p)(d)},null,8,["payment-method","options"])]),_:2},1024))),128))])):e.createCommentVNode("",!0),e.createVNode(e.unref(x.Modal),{size:"md","show-modal":!!t.value,"is-loading":e.unref(r),"no-click-away":e.unref(r),"no-backdrop-close":e.unref(r),title:e.unref(n)({id:"payment_methods_list.delete_modal.title",defaultMessage:"Delete payment method",description:"Title of the delete payment method confirmation modal"}),"confirm-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.confirm",defaultMessage:"Delete",description:"Confirm button in the delete payment method modal"}),"cancel-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.cancel",defaultMessage:"Cancel",description:"Cancel button in the delete payment method modal"}),onConfirm:v,onClose:y},e.createSlots({_:2},[t.value?{name:"body",fn:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(e.unref(c._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-methods__delete-modal-explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"payment_methods_list.delete_modal.body",defaultMessage:"Are you sure you want to delete this payment method?",description:"Confirmation message in the delete payment method modal"})),1)]),_:1}),e.createVNode(e.unref(f._sfc_main),{"no-spacing":"",class:"sv-payment-methods__delete-modal-payment-method"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(u._sfc_main),{"payment-method":t.value},null,8,["payment-method"])])]),_:1}),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,class:"sv-payment-methods__delete-modal-error sv-error",title:e.unref(n)({id:"payment_methods_list.delete_modal.error",defaultMessage:"We could not delete this payment method. Please try again.",description:"Error shown when deleting a payment method fails"})},null,8,["title"])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["show-modal","is-loading","no-click-away","no-backdrop-close","title","confirm-button-text","cancel-button-text"])],64))}});exports._sfc_main=q;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as S, openBlock as d, createElementBlock as h, Fragment as _, renderList as E, createBlock as f, unref as e, withCtx as c, createVNode as m, createCommentVNode as y, createSlots as $, createElementVNode as v, createTextVNode as A, toDisplayString as I } from "vue";
|
|
2
|
-
import { _ as g } from "./PaymentMethod.vue.es-
|
|
3
|
-
import { _ as N } from "./ErrorNotification.vue.es-
|
|
4
|
-
import { _ as x } from "./Section.vue.es-
|
|
5
|
-
import { a as C, _ as V } from "./customElements-
|
|
6
|
-
import { M as q } from "./Modal.vue.es-
|
|
2
|
+
import { _ as g } from "./PaymentMethod.vue.es-4YRmQZHX.mjs";
|
|
3
|
+
import { _ as N } from "./ErrorNotification.vue.es-h-D37rfG.mjs";
|
|
4
|
+
import { _ as x } from "./Section.vue.es-DVEpre9O.mjs";
|
|
5
|
+
import { a as C, _ as V } from "./customElements-B58FcXIN.mjs";
|
|
6
|
+
import { M as q } from "./Modal.vue.es-BeI5C9-9.mjs";
|
|
7
7
|
import { u as M } from "./useService-Bh47bllz.mjs";
|
|
8
|
-
import { c as B } from "./paymentMethods-
|
|
8
|
+
import { c as B } from "./paymentMethods-CWlvwK5V.mjs";
|
|
9
9
|
function R({
|
|
10
10
|
onSetDefault: s,
|
|
11
11
|
onDeleteRequest: l
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./Section.vue.es-Bbt0RITt.js"),p=require("./customElements-DUMRMFQ5.js"),B=require("./useTimePeriod.es-rzxqUCTu.js"),V=require("./formatting.es-C72Nsrmh.js"),T=require("./Expand.vue.es-BtM0EZEr.js"),v=require("./Button.vue.es-BzkuglKw.js"),N=require("./StepInput.vue.es-H-3R4jJq.js"),b=require("./Checkout.entry.ce-HlUrJ1kh.js"),_=require("./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js"),E=require("./formControl-ODrpUvcA.js"),x=require("./pricing-BOqG21f9.js"),M=require("./pricingPlanSchedule-BM8vsKkV.js"),S=require("./subscription-ZA62t4E9.js"),w={class:"grid grid-cols-2 gap-2"},P=e.defineComponent({__name:"TieredTableRow",props:{band:{type:Object},previousBand:{type:Object},isFirst:{type:Boolean},period:{type:Object}},setup(t){const a=t,{$t:n}=p.useIntl(),{formatTimePeriod:i}=B.useTimePeriod(),l=e.computed(()=>{var u;if(a.isFirst)return"0";if((u=a.previousBand)!=null&&u.tier_top_bound&&"number"in a.previousBand.tier_top_bound)return a.previousBand.tier_top_bound.number}),d=e.computed(()=>{if(!(!a.band.tier_top_bound||!("number"in a.band.tier_top_bound)))return a.band.tier_top_bound.number});return(u,o)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.unref(p._sfc_main),{variant:"body-xs",color:"subtle",tag:"div"},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"{lower_bound} - {upper_bound} seats",id:"seats.tiered_range_label",description:"The label showing the seat count range for a tiered pricing tier"},{lower_bound:l.value??"0",upper_bound:d.value})),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"> {lower_bound} seats",id:"seats.tiered_unbounded_range_label",description:"The label showing the unbounded seat count range (greater than) for a tiered pricing tier"},{lower_bound:l.value??"0"})),1)],64))]),_:1}),e.createVNode(e.unref(p._sfc_main),{variant:"body-xs",color:"subtle",tag:"div",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.band.amount&&e.unref(n)({defaultMessage:"{amount} per seat/{period}",id:"seats.tiered_price_per_seat_period",description:"The price per seat and billing period label for a tiered pricing tier"},{amount:e.unref(V.formatAmount)(t.band.amount),period:t.period?e.unref(i)(t.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})]))}}),A={class:"grid grid-cols-1 gap-0.5 pt-1.5"},D=e.defineComponent({__name:"TieredTable",props:{bands:{type:Array},period:{type:Object}},setup(t){return(a,n)=>(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.bands,(i,l)=>(e.openBlock(),e.createBlock(P,{key:l,band:i,"is-first":l===0,"previous-band":l>0?t.bands[l-1]:void 0,period:t.period},null,8,["band","is-first","previous-band","period"]))),128))]))}});function C({pricings:t,pricingItemConfigId:a}){return e.computed(()=>{var l,d,u,o,m,r,c,s;const{config:n,productItem:i}=b.getPricingItemByPricingConfigId({pricings:t,pricingItemConfigId:a});return{billing:{period:(d=(l=n==null?void 0:n.billing_period_configs)==null?void 0:l[0])==null?void 0:d.billing_period,billedInAdvance:n==null?void 0:n.billing_in_advance},product:{name:i==null?void 0:i.name,description:i==null?void 0:i.description},pricing:{...((u=n==null?void 0:n.details)==null?void 0:u.pricing_type)==="FLAT"&&{amount:(r=(m=(o=n.details)==null?void 0:o.bands)==null?void 0:m[0])==null?void 0:r.amount},...((c=n==null?void 0:n.details)==null?void 0:c.pricing_type)==="TIERED"&&{tiered:{bands:(s=n.details)==null?void 0:s.bands}}}}})}const U={class:"flex flex-row-reverse gap-4 md:flex-row"},O={class:"w-24 shrink-0 justify-start md:w-32"},q=["tabindex"],z={key:0},F={key:0},$=e.defineComponent({__name:"SeatsEditorItem",props:e.mergeModels({modelValue:{type:Object},defaultValue:{type:Object},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),{formatTimePeriod:l}=B.useTimePeriod(),d=e.ref(!1),u=e.computed({get:()=>+(n.value.number||b.FALLBACK_SEATS_NUMBER),set(r){n.value={...n.value,number:r!==void 0?r.toString():void 0}}}),o=C({pricings:a.pricings,pricingItemConfigId:n.value.pricing_item_config_id}),m=e.computed(()=>{var r,c;return!!((c=(r=o.value.pricing)==null?void 0:r.tiered)!=null&&c.bands)});return(r,c)=>{var s,g,y;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",U,[e.createElementVNode("div",O,[e.createVNode(e.unref(N._sfc_main),{modelValue:u.value,"onUpdate:modelValue":c[0]||(c[0]=k=>u.value=k),size:"sm",min:(s=t.defaultValue)!=null&&s.number?+t.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",{class:e.normalizeClass(["flex grow flex-col",{"hover:cursor-pointer":m.value}]),tabindex:m.value?0:void 0,onClick:c[1]||(c[1]=k=>m.value?d.value=!d.value:void 0)},[e.createVNode(e.unref(p._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o).product.name||e.unref(i)({defaultMessage:"Seats",id:"seats.label",description:"The label for the seats input field"})),1)]),_:1}),e.unref(o).pricing.amount?(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"{amount} per seat/{period}",id:"seats.price_per_seat_period",description:"The price per seat and billing period label for seat-based pricing"},{amount:e.unref(V.formatAmount)(e.unref(o).pricing.amount),period:e.unref(o).billing.period?e.unref(l)(e.unref(o).billing.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})):e.unref(o).pricing.tiered?(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:1,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Tiered pricing",id:"seats.tiered_pricing_label",description:"The label indicating tiered pricing structure for seats"}))+" ",1),e.createVNode(e.unref(v._sfc_main$1),{icon:"keyboard_arrow_down",size:"xs",class:e.normalizeClass(["absolute text-gray-400 transition ease-in-out",{"rotate-0":!d.value,"rotate-180":d.value}])},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)],10,q)]),(y=(g=e.unref(o).pricing)==null?void 0:g.tiered)!=null&&y.bands?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(T._sfc_main),{"is-open":d.value},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(D,{bands:e.unref(o).pricing.tiered.bands,period:e.unref(o).billing.period},null,8,["bands","period"])])):e.createCommentVNode("",!0)]),_:1},8,["is-open"])])):e.createCommentVNode("",!0)])}}}),I={key:0,class:"grid grid-cols-1 gap-1"},L=e.defineComponent({__name:"SeatsEditor",props:e.mergeModels({modelValue:{type:Array},initialSeatsValues:{type:Array},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=e.useModel(t,"modelValue"),n=i=>e.computed({get:()=>a.value[i],set:l=>{const d=a.value.slice();d[i]=l,a.value=d}});return(i,l)=>t.modelValue.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(d,u)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:u},{default:e.withCtx(()=>{var o;return[d.pricing_item_config_id?(e.openBlock(),e.createBlock($,{key:d.pricing_item_config_id,modelValue:n(u).value,"onUpdate:modelValue":m=>n(u).value=m,"default-value":(o=t.initialSeatsValues)==null?void 0:o[u],pricings:t.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])):e.createCommentVNode("",!0)}}),j={class:"flex flex-row-reverse gap-4 md:flex-row"},R={class:"w-24 shrink-0 justify-start md:w-32"},Y={class:"flex grow flex-col"},K=e.defineComponent({__name:"UnitsEditorItem",props:e.mergeModels({modelValue:{type:Object},defaultValue:{type:Object},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),l=e.computed({get:()=>+(n.value.number||b.FALLBACK_UNITS_NUMBER),set(u){n.value={...n.value,number:u!==void 0?u.toString():void 0}}}),d=C({pricings:a.pricings,pricingItemConfigId:n.value.pricing_item_config_id});return(u,o)=>{var m;return e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",R,[e.createVNode(e.unref(N._sfc_main),{modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=r=>l.value=r),size:"sm",min:(m=t.defaultValue)!=null&&m.number?+t.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",Y,[e.createVNode(e.unref(p._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d).product.name||e.unref(i)({defaultMessage:"Units",id:"units.label",description:"The label for the one-off flat item units input field"})),1)]),_:1}),e.unref(d).pricing.amount?(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"{amount} per unit, one-time",id:"units.price_per_unit_one_time",description:"The price per unit label for a one-off flat item, which is charged once rather than every period"},{amount:e.unref(V.formatAmount)(e.unref(d).pricing.amount)})),1)]),_:1})):e.createCommentVNode("",!0)])])}}}),X={class:"grid grid-cols-1 gap-1 p-1"},H={class:"grid grid-cols-1 gap-1"},J=e.defineComponent({__name:"UnitsEditor",props:e.mergeModels({modelValue:{type:Array},initialUnitsValues:{type:Array},pricings:{type:Array}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{$t:a}=p.useIntl(),n=e.useModel(t,"modelValue"),i=l=>e.computed({get:()=>n.value[l],set:d=>{const u=n.value.slice();u[l]=d,n.value=u}});return(l,d)=>t.modelValue.length>0?(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:0,"no-spacing":"","content-background":"gray"},{default:e.withCtx(()=>[e.createElementVNode("div",X,[e.createVNode(_._sfc_main$1,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"One-time items",id:"units_editor.title",description:"The heading above the one-off items in the plan customization form"})),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Charged once",id:"units_editor.description",description:"The description of the one-off items in the plan customization form"})),1)]),_:1}),e.createElementVNode("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(u,o)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:o,"content-background":"none"},{default:e.withCtx(()=>{var m;return[u.pricing_item_config_id?(e.openBlock(),e.createBlock(K,{key:u.pricing_item_config_id,modelValue:i(o).value,"onUpdate:modelValue":r=>i(o).value=r,"default-value":(m=t.initialUnitsValues)==null?void 0:m[o],pricings:t.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])])]),_:1})):e.createCommentVNode("",!0)}}),Q={class:"p-1"},W={class:"grid grid-cols-1 gap-1 pt-1"},Z=e.defineComponent({__name:"AddonSingleEditor",props:e.mergeModels({constraint:{type:String},modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),{describePricing:l}=_.usePricingDescription({currency:e.toRef(a,"currency"),billingPeriod:e.toRef(a,"billingPeriod")}),d=a.pricings.map(r=>r.id),u=e.computed(()=>a.constraint==="AT_MOST_ONE"?i({defaultMessage:"Select up to one product",id:"addon_single_editor.description.at_most_one",description:"The description of the addon single editor for at most one product"}):a.constraint==="EXACTLY_ONE"?i({defaultMessage:"Select one product",id:"addon_single_editor.description.exactly_one",description:"The description of the addon single editor for exactly one product"}):a.constraint==="AT_LEAST_ONE"?i({defaultMessage:"Select at least one product",id:"addon_single_editor.description.at_least_one",description:"The description of the addon single editor for at least one product"}):""),o=r=>a.modelValue.includes(r),m=r=>{if(o(r))n.value=n.value.filter(c=>c!==r);else{const c=n.value.filter(s=>!d.includes(s));n.value=[...c,r]}};return(r,c)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{"no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",Q,[e.createVNode(_._sfc_main$1,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1}),e.createElementVNode("div",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricings,s=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:s.id,"content-background":"none",class:e.normalizeClass({"!bg-white":o(s.id)})},{default:e.withCtx(()=>[e.createVNode(b._sfc_main,{name:e.unref(x.getNameFromPricing)(s)??"",description:e.unref(l)(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(E._sfc_main),{"model-value":o(s.id),"onUpdate:modelValue":g=>m(s.id)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["name","description"])]),_:2},1032,["class"]))),128))])])]),_:1}))}}),G={class:"grid grid-cols-1 gap-1"},h=e.defineComponent({__name:"AddonMultipleEditor",props:e.mergeModels({modelValue:{type:Array},pricings:{type:Array},billingPeriod:{type:Object},currency:{type:String},groupName:{type:String}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=t,n=e.useModel(t,"modelValue"),{$t:i}=p.useIntl(),{describePricing:l}=_.usePricingDescription({currency:e.toRef(a,"currency"),billingPeriod:e.toRef(a,"billingPeriod")}),d=o=>n.value.includes(o),u=o=>{d(o)?n.value=n.value.filter(m=>m!==o):n.value=[...n.value,o]};return(o,m)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{"no-spacing":"","no-border":!t.groupName,"content-background":t.groupName?"gray":"none"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["grid grid-cols-1 gap-1",{"p-1":t.groupName}])},[t.groupName?(e.openBlock(),e.createBlock(_._sfc_main$1,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Select any number of products",id:"addon_multiple_editor.description",description:"The description of the addon multiple editor"})),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricings,r=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:r.id,"content-background":t.groupName||d(r.id)?"none":"gray",class:e.normalizeClass({"!bg-white":d(r.id)})},{default:e.withCtx(()=>[e.createVNode(b._sfc_main,{name:e.unref(x.getNameFromPricing)(r)??"",description:e.unref(l)(r)},{default:e.withCtx(()=>[d(r.id)?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"secondary",square:"",size:"sm","icon-prefix":"remove_shopping_cart",onClick:c=>u(r.id)},null,8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"primary","icon-prefix":"add",size:"sm",onClick:c=>u(r.id)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Add to subscription ",id:"addon_multiple_editor.add_to_subscription_button",description:"The button to add a pricing to the subscription"})),1)]),_:1},8,["onClick"]))]),_:2},1032,["name","description"])]),_:2},1032,["content-background","class"]))),128))])],2)]),_:1},8,["no-border","content-background"]))}});function ee(t){var n;return(((n=t.pricing_categories)==null?void 0:n.flatMap(i=>i.pricings??[]))??[]).filter(i=>i!==null)}const te={class:"sv-plan-customization__body grid grid-cols-1 gap-1"},ne=e.defineComponent({__name:"PlanCustomizationEditor",props:e.mergeModels({subscription:{type:Object},enabledPricingIds:{type:Array},initialSeatsValues:{type:Array},initialUnitsValues:{type:Array},billingPeriod:{type:Object},currency:{type:String}},{seatsValues:{required:!0},seatsValuesModifiers:{},unitsValues:{required:!0},unitsValuesModifiers:{},enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{}}),emits:["update:seatsValues","update:unitsValues","update:enabledPricingIds"],setup(t){const a=t,n=e.useModel(t,"seatsValues"),i=e.useModel(t,"unitsValues"),l=e.useModel(t,"enabledPricingIds"),{$t:d}=p.useIntl(),u=e.computed(()=>{var c;const r=(c=M.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:a.subscription.pricing_plan_schedule_infos,type:"DEFAULT"}))==null?void 0:c.pricing_plan_version;return r?ee(r):[]}),o=e.computed(()=>u.value.filter(r=>r.product_type==="ADDON")),m=e.computed(()=>S.getPricingGroupsFromExtendedPricingPlanSubscription(a.subscription));return(r,c)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{class:"sv-plan-customization",title:e.unref(d)({defaultMessage:"Customize plan",id:"checkout.customize_plan_block.title",description:"The title of the customize plan block in the checkout form"}),"no-spacing":"","no-border":"","content-background":"none"},{default:e.withCtx(()=>[e.createElementVNode("div",te,[e.createVNode(L,{modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),class:"sv-plan-customization__seats","initial-seats-values":t.initialSeatsValues,pricings:u.value},null,8,["modelValue","initial-seats-values","pricings"]),e.createVNode(J,{modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=s=>i.value=s),class:"sv-plan-customization__units","initial-units-values":t.initialUnitsValues,pricings:u.value},null,8,["modelValue","initial-units-values","pricings"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.id},[s.product_type==="DEFAULT"&&s.selection_constraint==="EXACTLY_ONE"?(e.openBlock(),e.createBlock(_._sfc_main,{key:0,modelValue:l.value,"onUpdate:modelValue":c[2]||(c[2]=g=>l.value=g),class:"sv-plan-customization__group","group-name":s.name,pricings:s.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"])):s.product_type==="ADDON"&&s.selection_constraint==="AT_MOST_ONE"?(e.openBlock(),e.createBlock(Z,{key:1,modelValue:l.value,"onUpdate:modelValue":c[3]||(c[3]=g=>l.value=g),class:"sv-plan-customization__group","group-name":s.name,pricings:s.pricings,constraint:s.selection_constraint,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","constraint","billing-period","currency"])):s.product_type==="ADDON"&&s.selection_constraint==="ANY"?(e.openBlock(),e.createBlock(h,{key:2,modelValue:l.value,"onUpdate:modelValue":c[4]||(c[4]=g=>l.value=g),class:"sv-plan-customization__group",pricings:s.pricings,"group-name":s.name,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","pricings","group-name","billing-period","currency"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(h,{modelValue:l.value,"onUpdate:modelValue":c[5]||(c[5]=s=>l.value=s),class:"sv-plan-customization__group",pricings:o.value,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","pricings","billing-period","currency"])])]),_:1},8,["title"]))}});exports.default=ne;
|