@solvimon/solvimon-web 0.1.0-alpha.25 → 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 +16 -11
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
- package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-BJxSCU76.js} +1 -1
- package/dist/{Avatar.vue.es-C9Jkfuvp.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-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +15 -16
- package/dist/{Button.vue.es-CeUTAc2n.js → Button.vue.es-BzkuglKw.js} +1 -1
- package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
- package/dist/ChargeOnDemandModal-CB4mrvkU.mjs +975 -0
- package/dist/ChargeOnDemandModal-b17YswWA.js +1 -0
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
- package/dist/{Chip.vue.es-BN83K3Tk.js → Chip.vue.es-B2jjzIOc.js} +1 -1
- package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
- package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +895 -891
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
- package/dist/{DividerText.vue.es-DsYRZzuE.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
- package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
- package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-DgQN18Am.js} +1 -1
- package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
- package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
- package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
- package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B60eK8Ds.js} +1 -1
- package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +1 -0
- package/dist/{InvoiceSummary.vue.es-6qpbyymg.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +576 -565
- package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
- package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-DvLB3uCG.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
- package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
- package/dist/{PaymentIntegrationForm-DL55i0HD.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-CCKCXXZX.mjs +154 -0
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
- package/dist/{PaymentIntegrationFormAdyen-Cqsy82To.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +202 -192
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +247 -220
- package/dist/{PaymentMethod.vue.es-m1NasGqw.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +168 -148
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +1 -0
- package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
- package/dist/{PaymentMethodForm-BYzt1PVP.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +60 -58
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +722 -0
- package/dist/{PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs +141 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-CkhBp9kI.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
- package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-Bbt0RITt.js} +1 -1
- package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.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-H-3R4jJq.js +1 -0
- package/dist/StepInput.vue.es-o-3Lg4Ai.mjs +199 -0
- package/dist/SubscriptionDetails.entry.ce-CGl6Z5ql.mjs +1057 -0
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +1 -0
- package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
- package/dist/{SubscriptionSchedules-CMVoB2bw.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +2284 -2341
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +9 -10
- package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +3 -3
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +1 -0
- package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
- package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
- package/dist/{cn.es-71nFUose.js → cn.es-C9Yqq4tg.js} +1 -1
- package/dist/{cn.es-ZXNzpauQ.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 +246 -230
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +201 -212
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +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-q_i9y0Ph.mjs → customElements-B58FcXIN.mjs} +231 -196
- package/dist/{customElements-hH6pju3X.js → customElements-DUMRMFQ5.js} +36 -32
- package/dist/{customer-BDoOIAFr.mjs → customer-B3LPAhaD.mjs} +4 -4
- package/dist/{customer-C9q6ti8s.js → customer-CisTPaXj.js} +1 -1
- package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
- package/dist/{de-DE-B_ik9VNt.mjs → de-DE-DKp5LCu0.mjs} +53 -7
- package/dist/de-DE-DL74pMLb.js +1 -0
- package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
- package/dist/en-US-B2XFj-_p.js +1 -0
- package/dist/{en-US-DkCltadt.mjs → en-US-DQ5vlv9Z.mjs} +53 -7
- package/dist/en-US-J85TQRI8.js +1 -0
- package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
- package/dist/formControl-ODrpUvcA.js +1 -0
- package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{invoices-DIzkXntV.mjs → invoices-3520M5AN.mjs} +1 -1
- package/dist/{invoices-CHp75zZI.js → invoices-CKQBLar2.js} +1 -1
- package/dist/{it-IT-CHj2McbF.mjs → it-IT-BgFVsO5S.mjs} +53 -7
- package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
- package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
- package/dist/it-IT-CqNK62qe.js +1 -0
- package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
- package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
- package/dist/nl-NL-Dx-TNXQ1.js +1 -0
- package/dist/{nl-NL-Cdvd_XMN.mjs → nl-NL-UiRWbO9S.mjs} +53 -7
- package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWlvwK5V.mjs} +16 -14
- package/dist/paymentMethods-Cw-i95mM.js +1 -0
- package/dist/{payments-C0-Hq2a4.mjs → payments-2qeQdpiW.mjs} +6 -6
- package/dist/{payments-DBvregE8.js → payments-CS7_YcOW.js} +1 -1
- package/dist/pricing-BIMpDI_p.mjs +29 -0
- package/dist/pricing-BOqG21f9.js +1 -0
- package/dist/pricing.es-C07bgEZx.js +1 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingPlanSchedules-B_sTAIgU.js +1 -0
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +32 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
- package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
- package/dist/{subscriptions--9MaTXMb.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
- package/dist/{subscriptions-BArXBCFr.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/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
- package/dist/types/services/paymentMethods.types.d.ts +4 -2
- package/dist/types/services/requests.types.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
- package/dist/{useActionDispatchProvider-BdciAX8T.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CKzeqXzY.js → useActionDispatchProvider-DFhppdve.js} +1 -1
- package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
- package/dist/{useCustomer-DSYr0F58.js → useCustomer-BwZKd9i5.js} +1 -1
- package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +6 -6
- package/dist/useCustomerFormLabels-DV9QiMYh.js +1 -0
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
- package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
- package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BocKdeg7.mjs} +3 -3
- package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CNV_FMV8.js} +1 -1
- package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
- package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-S0IbQcrD.js} +1 -1
- package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
- package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
- package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +5 -6
- package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +15 -13
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +1 -0
- package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
- package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-DDaTZQZp.js} +1 -1
- package/dist/{usePayments-s-Z1di8d.mjs → usePayments-Cr6NlGaW.mjs} +46 -41
- package/dist/usePayments-DDSjo0rH.js +1 -0
- package/dist/{usePortal-Hm7wvtgQ.js → usePortal-C27omjhz.js} +1 -1
- package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-C5AsegpS.mjs} +1 -1
- package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
- package/dist/{useSubscription-DMAEJves.js → useSubscription-D787IXY-.js} +1 -1
- package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
- package/dist/{useTimePeriod.es-anHB63am.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
- package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
- package/package.json +20 -14
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js +0 -1
- package/dist/Checkout.entry.ce-BMzK8nQg.mjs +0 -3900
- package/dist/Checkout.entry.ce-DgA0ckyl.js +0 -2
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js +0 -1
- package/dist/InvoiceSummary.vue.es-v1TkOUhA.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs +0 -141
- package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +0 -98
- package/dist/PaymentIntegrationFormStripe-DTLgGutU.js +0 -102
- package/dist/PaymentMethod.vue.es-ZWda5GqF.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js +0 -1
- package/dist/PlanCustomizationEditor-CunwwXTw.js +0 -1
- package/dist/PlanCustomizationEditor-NLVkEYFF.mjs +0 -877
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs +0 -131
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +0 -51
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js +0 -1
- package/dist/TooltipParagraph.vue.es-DS_69pl1.js +0 -1
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/de-DE-npBTLtKL.js +0 -1
- package/dist/en-US-9xdcz3T5.js +0 -1
- package/dist/en-US-kGduGoka.js +0 -1
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
- package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
- package/dist/index-DwueOtPi.js +0 -1
- package/dist/it-IT-BayNIAy7.js +0 -1
- package/dist/nl-NL-0rV4nFLw.js +0 -1
- package/dist/paymentMethods-CZGP6_4W.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
- package/dist/useCustomerFormLabels-CRumh405.js +0 -1
- package/dist/useExperimentalFeature-D29-TO3R.js +0 -1
- package/dist/useExperimentalFeature-JK_kAUQQ.mjs +0 -6
- package/dist/usePaymentMethodAvailability-DwtT5Czz.js +0 -1
- package/dist/usePaymentMethodOptions-CXdFKFqZ.js +0 -1
- package/dist/usePayments-DL4agK2i.js +0 -1
- package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
- package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { g as
|
|
3
|
-
import { _ as g } from "./Button.vue.es-
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { s as
|
|
10
|
-
const C = "NL",
|
|
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
|
+
import { g as D, a as j } from "./customer.es-B5ppZf0j.mjs";
|
|
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
|
+
import { s as Q } from "./url-TNRgVI8A.mjs";
|
|
10
|
+
const C = "NL", re = /* @__PURE__ */ F({
|
|
11
11
|
__name: "PaymentMethodForm",
|
|
12
12
|
props: {
|
|
13
13
|
customer: { type: Object },
|
|
@@ -19,18 +19,18 @@ const C = "NL", ie = /* @__PURE__ */ B({
|
|
|
19
19
|
hideSubmitButton: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
emits: ["success", "failure"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(l, { expose: O, emit: I }) {
|
|
23
23
|
const L = {
|
|
24
24
|
currency: "EUR",
|
|
25
25
|
quantity: "0"
|
|
26
|
-
}, t =
|
|
26
|
+
}, t = l, v = I, { $t: p } = q(), { availability: S } = G({
|
|
27
27
|
paymentMethodOptions: () => t.paymentMethodOptions,
|
|
28
28
|
isLoading: () => t.isLoading,
|
|
29
29
|
context: () => {
|
|
30
30
|
var e;
|
|
31
31
|
return { invoiceId: (e = t.configuration) == null ? void 0 : e.invoiceId };
|
|
32
32
|
}
|
|
33
|
-
}), y = d(), M = d(), a = d(!1),
|
|
33
|
+
}), y = d(), M = d(), a = d(!1), c = d(!1);
|
|
34
34
|
function h() {
|
|
35
35
|
var e;
|
|
36
36
|
a.value = !0, (e = y.value) == null || e.submit();
|
|
@@ -42,110 +42,112 @@ const C = "NL", ie = /* @__PURE__ */ B({
|
|
|
42
42
|
id: "components.payment_method_form.submit_button.label"
|
|
43
43
|
})
|
|
44
44
|
);
|
|
45
|
-
O({ submit: h, isPaymentPending: a, isCompleted:
|
|
45
|
+
O({ submit: h, isPaymentPending: a, isCompleted: c });
|
|
46
46
|
function A() {
|
|
47
|
-
a.value = !1,
|
|
47
|
+
a.value = !1, c.value = !0, v("success");
|
|
48
48
|
}
|
|
49
49
|
function E(e) {
|
|
50
50
|
a.value = !1, v("failure", e);
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
function N() {
|
|
53
|
+
a.value = !1;
|
|
54
|
+
}
|
|
55
|
+
const k = (e) => (e == null ? void 0 : e.variant) === "AUTHORIZE" ? e : {
|
|
53
56
|
...e,
|
|
54
57
|
variant: "TOKENIZE"
|
|
55
|
-
},
|
|
56
|
-
() =>
|
|
57
|
-
), k = s(
|
|
58
|
-
() => l.value && !t.hideSubmitButton && !!o.value.successRedirectUrl
|
|
58
|
+
}, n = s(
|
|
59
|
+
() => k(t.configuration)
|
|
59
60
|
), R = s(
|
|
60
|
-
() =>
|
|
61
|
+
() => c.value && !t.hideSubmitButton && !!n.value.successRedirectUrl
|
|
62
|
+
), T = s(
|
|
63
|
+
() => n.value.successRedirectLabel ?? p({
|
|
61
64
|
defaultMessage: "Continue",
|
|
62
65
|
description: "Label of the button that leaves the form once the payment method is stored",
|
|
63
66
|
id: "components.payment_method_form.continue_button.label"
|
|
64
67
|
})
|
|
65
68
|
);
|
|
66
|
-
function
|
|
67
|
-
const { successRedirectUrl: e } =
|
|
68
|
-
e &&
|
|
69
|
+
function U() {
|
|
70
|
+
const { successRedirectUrl: e } = n.value;
|
|
71
|
+
e && Q(e);
|
|
69
72
|
}
|
|
70
|
-
const
|
|
73
|
+
const x = s(() => {
|
|
71
74
|
let e = C;
|
|
72
75
|
if (t.countryCode)
|
|
73
76
|
return e = t.countryCode, e;
|
|
74
77
|
if (t.customer) {
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
return e =
|
|
78
|
+
const o = D(t.customer);
|
|
79
|
+
if (o)
|
|
80
|
+
return e = o, e;
|
|
78
81
|
}
|
|
79
82
|
return C;
|
|
80
|
-
}),
|
|
81
|
-
const e =
|
|
82
|
-
amount:
|
|
83
|
+
}), B = s(() => {
|
|
84
|
+
const e = n.value.variant, o = j(t.customer), u = {
|
|
85
|
+
amount: n.value.amount ?? L,
|
|
83
86
|
paymentMethodOptions: t.paymentMethodOptions,
|
|
84
|
-
countryCode:
|
|
87
|
+
countryCode: x.value,
|
|
85
88
|
...t.customer.email ? { email: t.customer.email } : {},
|
|
86
|
-
...
|
|
87
|
-
validateOnSubmit:
|
|
88
|
-
forceStorePaymentMethod:
|
|
89
|
-
selectedOption:
|
|
90
|
-
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
|
|
91
94
|
};
|
|
92
95
|
return e === "AUTHORIZE" ? {
|
|
93
96
|
...u,
|
|
94
97
|
variant: e,
|
|
95
|
-
context:
|
|
98
|
+
context: n.value.context
|
|
96
99
|
} : {
|
|
97
100
|
...u,
|
|
98
101
|
variant: "TOKENIZE",
|
|
99
102
|
customerId: t.customer.id
|
|
100
103
|
};
|
|
101
104
|
});
|
|
102
|
-
return (e,
|
|
105
|
+
return (e, o) => l.isLoading ? (i(), r(z, {
|
|
103
106
|
key: 0,
|
|
104
107
|
variant: "section",
|
|
105
|
-
class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"
|
|
106
|
-
|
|
107
|
-
})) : r(S) === "UNAVAILABLE" ? (i(), m(G, {
|
|
108
|
+
class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]"
|
|
109
|
+
})) : m(S) === "UNAVAILABLE" ? (i(), r(J, {
|
|
108
110
|
key: 1,
|
|
109
111
|
class: "sv-payment-method-form sv-root sv-component",
|
|
110
|
-
variant:
|
|
111
|
-
}, null, 8, ["variant"])) : (i(), m(
|
|
112
|
+
variant: n.value.variant ?? "TOKENIZE"
|
|
113
|
+
}, null, 8, ["variant"])) : (i(), r(m(H), {
|
|
112
114
|
key: 2,
|
|
113
115
|
class: "sv-payment-method-form sv-root sv-component",
|
|
114
116
|
"no-border": "",
|
|
115
117
|
"no-spacing": "",
|
|
116
118
|
"content-background": "none",
|
|
117
|
-
title:
|
|
119
|
+
title: l.title ?? m(p)({
|
|
118
120
|
defaultMessage: "Available payment methods",
|
|
119
121
|
description: "Title of the available payment methods form",
|
|
120
122
|
id: "components.payment_method_form.section_title"
|
|
121
123
|
})
|
|
122
124
|
}, {
|
|
123
125
|
default: f(() => [
|
|
124
|
-
|
|
125
|
-
class:
|
|
126
|
+
$("div", {
|
|
127
|
+
class: V({ "pointer-events-none opacity-60": a.value })
|
|
126
128
|
}, [
|
|
127
|
-
|
|
129
|
+
Z(Y, w({
|
|
128
130
|
ref_key: "paymentIntegrationFormRef",
|
|
129
131
|
ref: y,
|
|
130
132
|
class: "sv-payment-method-form__integration"
|
|
131
|
-
},
|
|
132
|
-
onSelect:
|
|
133
|
+
}, B.value, {
|
|
134
|
+
onSelect: o[0] || (o[0] = (u) => M.value = u),
|
|
133
135
|
onPaymentSuccess: A,
|
|
134
|
-
onPaymentFailed: E
|
|
136
|
+
onPaymentFailed: E,
|
|
137
|
+
onInvalid: N
|
|
135
138
|
}), null, 16)
|
|
136
139
|
], 2),
|
|
137
|
-
|
|
140
|
+
R.value ? (i(), r(m(g), {
|
|
138
141
|
key: 0,
|
|
139
142
|
intent: "primary",
|
|
140
143
|
class: "mt-4 w-full",
|
|
141
|
-
|
|
142
|
-
onClick: T
|
|
144
|
+
onClick: U
|
|
143
145
|
}, {
|
|
144
146
|
default: f(() => [
|
|
145
|
-
_(b(
|
|
147
|
+
_(b(T.value), 1)
|
|
146
148
|
]),
|
|
147
149
|
_: 1
|
|
148
|
-
})) : !
|
|
150
|
+
})) : !l.hideSubmitButton && !c.value ? (i(), r(m(g), {
|
|
149
151
|
key: 1,
|
|
150
152
|
intent: "primary",
|
|
151
153
|
class: "mt-4 w-full",
|
|
@@ -156,12 +158,12 @@ const C = "NL", ie = /* @__PURE__ */ B({
|
|
|
156
158
|
_(b(P.value), 1)
|
|
157
159
|
]),
|
|
158
160
|
_: 1
|
|
159
|
-
}, 8, ["loading"])) :
|
|
161
|
+
}, 8, ["loading"])) : K("", !0)
|
|
160
162
|
]),
|
|
161
163
|
_: 1
|
|
162
164
|
}, 8, ["title"]));
|
|
163
165
|
}
|
|
164
166
|
});
|
|
165
167
|
export {
|
|
166
|
-
|
|
168
|
+
re as _
|
|
167
169
|
};
|
|
@@ -0,0 +1 @@
|
|
|
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 {
|
|
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;
|