@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,877 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, createPropsRestProxy as W, computed as V, openBlock as l, createBlock as f, unref as i, mergeProps as Z, withCtx as p, createTextVNode as x, toDisplayString as h, useModel as T, ref as R, onMounted as G, watch as ee, createSlots as te, createVNode as v, normalizeClass as S, createElementVNode as k, createCommentVNode as $, renderSlot as ne, mergeModels as z, createElementBlock as _, Fragment as M, renderList as U, toRef as O } from "vue";
|
|
2
|
-
import { _ as E } from "./Section.vue.es-D5svcVS_.mjs";
|
|
3
|
-
import { _ as A, u as C } from "./customElements-q_i9y0Ph.mjs";
|
|
4
|
-
import { u as L } from "./useTimePeriod.es-CW8ycmpT.mjs";
|
|
5
|
-
import { f as D } from "./formatting.es-RclXHhKo.mjs";
|
|
6
|
-
import { _ as ie } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
7
|
-
import { a as ae, _ as j } from "./Button.vue.es-BbSN0uOk.mjs";
|
|
8
|
-
import { _ as F } from "./IconButton.vue.es-ChvsCZQG.mjs";
|
|
9
|
-
import { _ as le } from "./Input.vue.es-DJQqJrsb.mjs";
|
|
10
|
-
import { _ as oe } from "./Chip.vue.es-T22Q7AF9.mjs";
|
|
11
|
-
import { g as se, F as re, a as de, _ as Y } from "./Checkout.entry.ce-BMzK8nQg.mjs";
|
|
12
|
-
import { _ as ue } from "./index-BPU8tIml.mjs";
|
|
13
|
-
import { u as K, a as X, _ as ce } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs";
|
|
14
|
-
import { g as H } from "./pricing-DLOeiAIB.mjs";
|
|
15
|
-
import { g as me } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
16
|
-
import { c as pe } from "./subscription-CrVOr5MF.mjs";
|
|
17
|
-
const ge = /* @__PURE__ */ P({
|
|
18
|
-
__name: "DeltaChip",
|
|
19
|
-
props: {
|
|
20
|
-
oldValue: {},
|
|
21
|
-
newValue: {},
|
|
22
|
-
intent: { default: "neutral" },
|
|
23
|
-
content: {},
|
|
24
|
-
removable: { type: Boolean },
|
|
25
|
-
size: {},
|
|
26
|
-
variant: {},
|
|
27
|
-
textClass: {},
|
|
28
|
-
tag: {},
|
|
29
|
-
hasChipBefore: { type: Boolean },
|
|
30
|
-
hasChipAfter: { type: Boolean }
|
|
31
|
-
},
|
|
32
|
-
setup(e) {
|
|
33
|
-
const n = W(e, ["oldValue", "newValue", "intent"]), t = V(() => {
|
|
34
|
-
const a = e.newValue - e.oldValue;
|
|
35
|
-
return `${a >= 0 ? "+" : ""}${a}`;
|
|
36
|
-
});
|
|
37
|
-
return (a, r) => (l(), f(i(oe), Z(n, {
|
|
38
|
-
intent: e.intent,
|
|
39
|
-
class: "pointer-events-none select-none"
|
|
40
|
-
}), {
|
|
41
|
-
default: p(() => [
|
|
42
|
-
x(h(t.value), 1)
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
}, 16, ["intent"]));
|
|
46
|
-
}
|
|
47
|
-
}), fe = { class: "flex items-center gap-1.5" }, J = /* @__PURE__ */ P({
|
|
48
|
-
__name: "StepInput",
|
|
49
|
-
props: /* @__PURE__ */ z({
|
|
50
|
-
step: { default: 1 },
|
|
51
|
-
min: { default: 0 },
|
|
52
|
-
max: {},
|
|
53
|
-
initialValue: { default: 1 },
|
|
54
|
-
unitName: {},
|
|
55
|
-
showDelta: { type: Boolean, default: !1 },
|
|
56
|
-
size: { default: "md" },
|
|
57
|
-
name: {},
|
|
58
|
-
required: { type: Boolean },
|
|
59
|
-
label: {},
|
|
60
|
-
error: {},
|
|
61
|
-
disabled: { type: Boolean, default: !1 }
|
|
62
|
-
}, {
|
|
63
|
-
modelValue: { required: !0 },
|
|
64
|
-
modelModifiers: {}
|
|
65
|
-
}),
|
|
66
|
-
emits: ["update:modelValue"],
|
|
67
|
-
setup(e) {
|
|
68
|
-
const n = e, t = T(e, "modelValue"), a = R(null), r = V(() => {
|
|
69
|
-
if (n.unitName)
|
|
70
|
-
return n.unitName[t.value === 1 ? "singular" : "plural"];
|
|
71
|
-
}), o = () => {
|
|
72
|
-
n.max && t.value + n.step > n.max || (t.value += n.step);
|
|
73
|
-
}, m = () => {
|
|
74
|
-
t.value - n.step < n.min || (t.value -= n.step);
|
|
75
|
-
};
|
|
76
|
-
function s(g) {
|
|
77
|
-
var y;
|
|
78
|
-
const w = (y = a.value) == null ? void 0 : y.el;
|
|
79
|
-
if (!w) return;
|
|
80
|
-
const N = parseInt(`${g}`);
|
|
81
|
-
t.value = N, w.innerText = `${N}`, w.focus();
|
|
82
|
-
const I = document.createRange();
|
|
83
|
-
I.selectNodeContents(w), I.collapse(!1);
|
|
84
|
-
const B = window.getSelection();
|
|
85
|
-
B == null || B.removeAllRanges(), B == null || B.addRange(I);
|
|
86
|
-
}
|
|
87
|
-
const b = (g) => {
|
|
88
|
-
const y = g.target;
|
|
89
|
-
y instanceof HTMLElement && s(y.innerText);
|
|
90
|
-
}, d = V(() => n.disabled ? !1 : n.max ? t.value + n.step < n.max : !0), c = V(() => n.disabled ? !1 : t.value - n.step >= n.min);
|
|
91
|
-
function u() {
|
|
92
|
-
var g;
|
|
93
|
-
const y = (g = a.value) == null ? void 0 : g.el;
|
|
94
|
-
if (!y) return;
|
|
95
|
-
y.focus();
|
|
96
|
-
const w = document.createRange();
|
|
97
|
-
w.selectNodeContents(y);
|
|
98
|
-
const N = window.getSelection();
|
|
99
|
-
N == null || N.removeAllRanges(), N == null || N.addRange(w);
|
|
100
|
-
}
|
|
101
|
-
return G(() => {
|
|
102
|
-
var g;
|
|
103
|
-
const y = (g = a.value) == null ? void 0 : g.el;
|
|
104
|
-
y && (y.innerText = `${t.value}`);
|
|
105
|
-
}), ee(
|
|
106
|
-
() => t.value,
|
|
107
|
-
(g) => {
|
|
108
|
-
s(g);
|
|
109
|
-
}
|
|
110
|
-
), (g, y) => (l(), f(le, {
|
|
111
|
-
modelValue: t.value,
|
|
112
|
-
"onUpdate:modelValue": y[0] || (y[0] = (w) => t.value = w),
|
|
113
|
-
type: "number",
|
|
114
|
-
class: "text-transparent [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
115
|
-
"prefix-class": {
|
|
116
|
-
"!px-0 w-5": e.size === "sm",
|
|
117
|
-
"!px-0 w-6": e.size === "md",
|
|
118
|
-
"!px-0 w-7": e.size === "lg"
|
|
119
|
-
},
|
|
120
|
-
"suffix-class": {
|
|
121
|
-
"!px-0 w-5": e.size === "sm",
|
|
122
|
-
"!px-0 w-6": e.size === "md",
|
|
123
|
-
"!px-0 w-7": e.size === "lg"
|
|
124
|
-
},
|
|
125
|
-
size: e.size,
|
|
126
|
-
label: e.label,
|
|
127
|
-
disabled: e.disabled,
|
|
128
|
-
name: e.name,
|
|
129
|
-
required: e.required
|
|
130
|
-
}, te({
|
|
131
|
-
prefix: p(() => [
|
|
132
|
-
k("div", {
|
|
133
|
-
class: "absolute inset-0 flex items-center justify-center",
|
|
134
|
-
onMousedown: u
|
|
135
|
-
}, [
|
|
136
|
-
k("div", fe, [
|
|
137
|
-
v(A, {
|
|
138
|
-
ref_key: "contentEditableRef",
|
|
139
|
-
ref: a,
|
|
140
|
-
tag: "span",
|
|
141
|
-
variant: e.size === "sm" ? "body" : "body-lg",
|
|
142
|
-
contenteditable: !e.disabled,
|
|
143
|
-
class: S(["outline-none", { "pointer-events-none select-none": e.disabled }]),
|
|
144
|
-
weight: "semibold",
|
|
145
|
-
onInput: b
|
|
146
|
-
}, null, 8, ["variant", "contenteditable", "class"]),
|
|
147
|
-
r.value ? (l(), f(A, {
|
|
148
|
-
key: 0,
|
|
149
|
-
tag: "span",
|
|
150
|
-
color: "subtle",
|
|
151
|
-
class: "pointer-events-none select-none"
|
|
152
|
-
}, {
|
|
153
|
-
default: p(() => [
|
|
154
|
-
x(h(" ") + h(r.value), 1)
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
})) : $("", !0),
|
|
158
|
-
e.showDelta ? (l(), f(ge, {
|
|
159
|
-
key: 1,
|
|
160
|
-
"old-value": n.initialValue,
|
|
161
|
-
"new-value": t.value,
|
|
162
|
-
class: "pointer-events-none ml-0.5 select-none"
|
|
163
|
-
}, null, 8, ["old-value", "new-value"])) : $("", !0)
|
|
164
|
-
])
|
|
165
|
-
], 32),
|
|
166
|
-
v(F, {
|
|
167
|
-
disabled: !c.value,
|
|
168
|
-
type: "button",
|
|
169
|
-
intent: "subtle",
|
|
170
|
-
size: "sm",
|
|
171
|
-
class: S(["!h-full select-none rounded-br-none rounded-tr-none", { "!w-7": e.size === "lg", "!w-5": e.size === "sm", "!w-6": e.size === "md" }]),
|
|
172
|
-
icon: "remove",
|
|
173
|
-
onMousedown: m
|
|
174
|
-
}, null, 8, ["disabled", "class"])
|
|
175
|
-
]),
|
|
176
|
-
suffix: p(() => [
|
|
177
|
-
v(F, {
|
|
178
|
-
disabled: !d.value,
|
|
179
|
-
type: "button",
|
|
180
|
-
intent: "subtle",
|
|
181
|
-
size: "sm",
|
|
182
|
-
class: S(["!h-full select-none rounded-bl-none rounded-tl-none", { "!w-7": e.size === "lg", "!w-5": e.size === "sm", "!w-6": e.size === "md" }]),
|
|
183
|
-
icon: "add",
|
|
184
|
-
onMousedown: o
|
|
185
|
-
}, null, 8, ["disabled", "class"])
|
|
186
|
-
]),
|
|
187
|
-
_: 2
|
|
188
|
-
}, [
|
|
189
|
-
g.$slots.helper ? {
|
|
190
|
-
name: "helper",
|
|
191
|
-
fn: p(() => [
|
|
192
|
-
ne(g.$slots, "helper")
|
|
193
|
-
]),
|
|
194
|
-
key: "0"
|
|
195
|
-
} : void 0
|
|
196
|
-
]), 1032, ["modelValue", "prefix-class", "suffix-class", "size", "label", "disabled", "name", "required"]));
|
|
197
|
-
}
|
|
198
|
-
}), be = { class: "grid grid-cols-2 gap-2" }, ve = /* @__PURE__ */ P({
|
|
199
|
-
__name: "TieredTableRow",
|
|
200
|
-
props: {
|
|
201
|
-
band: { type: Object },
|
|
202
|
-
previousBand: { type: Object },
|
|
203
|
-
isFirst: { type: Boolean },
|
|
204
|
-
period: { type: Object }
|
|
205
|
-
},
|
|
206
|
-
setup(e) {
|
|
207
|
-
const n = e, { $t: t } = C(), { formatTimePeriod: a } = L(), r = V(() => {
|
|
208
|
-
var m;
|
|
209
|
-
if (n.isFirst)
|
|
210
|
-
return "0";
|
|
211
|
-
if ((m = n.previousBand) != null && m.tier_top_bound && "number" in n.previousBand.tier_top_bound)
|
|
212
|
-
return n.previousBand.tier_top_bound.number;
|
|
213
|
-
}), o = V(() => {
|
|
214
|
-
if (!(!n.band.tier_top_bound || !("number" in n.band.tier_top_bound)))
|
|
215
|
-
return n.band.tier_top_bound.number;
|
|
216
|
-
});
|
|
217
|
-
return (m, s) => (l(), _("div", be, [
|
|
218
|
-
v(i(A), {
|
|
219
|
-
variant: "body-xs",
|
|
220
|
-
color: "subtle",
|
|
221
|
-
tag: "div"
|
|
222
|
-
}, {
|
|
223
|
-
default: p(() => [
|
|
224
|
-
o.value ? (l(), _(M, { key: 0 }, [
|
|
225
|
-
x(h(i(t)(
|
|
226
|
-
{
|
|
227
|
-
defaultMessage: "{lower_bound} - {upper_bound} seats",
|
|
228
|
-
id: "seats.tiered_range_label",
|
|
229
|
-
description: "The label showing the seat count range for a tiered pricing tier"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
lower_bound: r.value ?? "0",
|
|
233
|
-
upper_bound: o.value
|
|
234
|
-
}
|
|
235
|
-
)), 1)
|
|
236
|
-
], 64)) : (l(), _(M, { key: 1 }, [
|
|
237
|
-
x(h(i(t)(
|
|
238
|
-
{
|
|
239
|
-
defaultMessage: "> {lower_bound} seats",
|
|
240
|
-
id: "seats.tiered_unbounded_range_label",
|
|
241
|
-
description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
lower_bound: r.value ?? "0"
|
|
245
|
-
}
|
|
246
|
-
)), 1)
|
|
247
|
-
], 64))
|
|
248
|
-
]),
|
|
249
|
-
_: 1
|
|
250
|
-
}),
|
|
251
|
-
v(i(A), {
|
|
252
|
-
variant: "body-xs",
|
|
253
|
-
color: "subtle",
|
|
254
|
-
tag: "div",
|
|
255
|
-
class: "text-right"
|
|
256
|
-
}, {
|
|
257
|
-
default: p(() => [
|
|
258
|
-
x(h(e.band.amount && i(t)(
|
|
259
|
-
{
|
|
260
|
-
defaultMessage: "{amount} per seat/{period}",
|
|
261
|
-
id: "seats.tiered_price_per_seat_period",
|
|
262
|
-
description: "The price per seat and billing period label for a tiered pricing tier"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
amount: i(D)(e.band.amount),
|
|
266
|
-
period: e.period ? i(a)(e.period, {
|
|
267
|
-
short: !0,
|
|
268
|
-
hideValueForExactPeriods: !0
|
|
269
|
-
}) : ""
|
|
270
|
-
}
|
|
271
|
-
)), 1)
|
|
272
|
-
]),
|
|
273
|
-
_: 1
|
|
274
|
-
})
|
|
275
|
-
]));
|
|
276
|
-
}
|
|
277
|
-
}), ye = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, _e = /* @__PURE__ */ P({
|
|
278
|
-
__name: "TieredTable",
|
|
279
|
-
props: {
|
|
280
|
-
bands: { type: Array },
|
|
281
|
-
period: { type: Object }
|
|
282
|
-
},
|
|
283
|
-
setup(e) {
|
|
284
|
-
return (n, t) => (l(), _("div", ye, [
|
|
285
|
-
(l(!0), _(M, null, U(e.bands, (a, r) => (l(), f(ve, {
|
|
286
|
-
key: r,
|
|
287
|
-
band: a,
|
|
288
|
-
"is-first": r === 0,
|
|
289
|
-
"previous-band": r > 0 ? e.bands[r - 1] : void 0,
|
|
290
|
-
period: e.period
|
|
291
|
-
}, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
|
|
292
|
-
]));
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
function Q({
|
|
296
|
-
pricings: e,
|
|
297
|
-
pricingItemConfigId: n
|
|
298
|
-
}) {
|
|
299
|
-
return V(() => {
|
|
300
|
-
var r, o, m, s, b, d, c, u;
|
|
301
|
-
const { config: t, productItem: a } = se({
|
|
302
|
-
pricings: e,
|
|
303
|
-
pricingItemConfigId: n
|
|
304
|
-
});
|
|
305
|
-
return {
|
|
306
|
-
billing: {
|
|
307
|
-
period: (o = (r = t == null ? void 0 : t.billing_period_configs) == null ? void 0 : r[0]) == null ? void 0 : o.billing_period,
|
|
308
|
-
billedInAdvance: t == null ? void 0 : t.billing_in_advance
|
|
309
|
-
},
|
|
310
|
-
product: {
|
|
311
|
-
name: a == null ? void 0 : a.name,
|
|
312
|
-
description: a == null ? void 0 : a.description
|
|
313
|
-
},
|
|
314
|
-
pricing: {
|
|
315
|
-
...((m = t == null ? void 0 : t.details) == null ? void 0 : m.pricing_type) === "FLAT" && {
|
|
316
|
-
amount: (d = (b = (s = t.details) == null ? void 0 : s.bands) == null ? void 0 : b[0]) == null ? void 0 : d.amount
|
|
317
|
-
},
|
|
318
|
-
...((c = t == null ? void 0 : t.details) == null ? void 0 : c.pricing_type) === "TIERED" && {
|
|
319
|
-
tiered: { bands: (u = t.details) == null ? void 0 : u.bands }
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
const Ve = { class: "flex flex-row-reverse gap-4 md:flex-row" }, he = { class: "w-24 shrink-0 justify-start md:w-32" }, xe = ["tabindex"], we = { key: 0 }, ke = { key: 0 }, $e = /* @__PURE__ */ P({
|
|
326
|
-
__name: "SeatsEditorItem",
|
|
327
|
-
props: /* @__PURE__ */ z({
|
|
328
|
-
modelValue: { type: Object },
|
|
329
|
-
defaultValue: { type: Object },
|
|
330
|
-
pricings: { type: Array }
|
|
331
|
-
}, {
|
|
332
|
-
modelValue: { required: !0 },
|
|
333
|
-
modelModifiers: {}
|
|
334
|
-
}),
|
|
335
|
-
emits: ["update:modelValue"],
|
|
336
|
-
setup(e) {
|
|
337
|
-
const n = e, t = T(e, "modelValue"), { $t: a } = C(), { formatTimePeriod: r } = L(), o = R(!1), m = V({
|
|
338
|
-
get: () => +(t.value.number || re),
|
|
339
|
-
set(d) {
|
|
340
|
-
t.value = {
|
|
341
|
-
...t.value,
|
|
342
|
-
number: d !== void 0 ? d.toString() : void 0
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
}), s = Q({
|
|
346
|
-
pricings: n.pricings,
|
|
347
|
-
pricingItemConfigId: t.value.pricing_item_config_id
|
|
348
|
-
}), b = V(() => {
|
|
349
|
-
var d, c;
|
|
350
|
-
return !!((c = (d = s.value.pricing) == null ? void 0 : d.tiered) != null && c.bands);
|
|
351
|
-
});
|
|
352
|
-
return (d, c) => {
|
|
353
|
-
var u, g, y;
|
|
354
|
-
return l(), _("div", null, [
|
|
355
|
-
k("div", Ve, [
|
|
356
|
-
k("div", he, [
|
|
357
|
-
v(i(J), {
|
|
358
|
-
modelValue: m.value,
|
|
359
|
-
"onUpdate:modelValue": c[0] || (c[0] = (w) => m.value = w),
|
|
360
|
-
size: "sm",
|
|
361
|
-
min: (u = e.defaultValue) != null && u.number ? +e.defaultValue.number : void 0
|
|
362
|
-
}, null, 8, ["modelValue", "min"])
|
|
363
|
-
]),
|
|
364
|
-
k("div", {
|
|
365
|
-
class: S(["flex grow flex-col", { "hover:cursor-pointer": b.value }]),
|
|
366
|
-
tabindex: b.value ? 0 : void 0,
|
|
367
|
-
onClick: c[1] || (c[1] = (w) => b.value ? o.value = !o.value : void 0)
|
|
368
|
-
}, [
|
|
369
|
-
v(i(A), {
|
|
370
|
-
tag: "span",
|
|
371
|
-
variant: "body-sm",
|
|
372
|
-
weight: "semibold"
|
|
373
|
-
}, {
|
|
374
|
-
default: p(() => [
|
|
375
|
-
x(h(i(s).product.name || i(a)({
|
|
376
|
-
defaultMessage: "Seats",
|
|
377
|
-
id: "seats.label",
|
|
378
|
-
description: "The label for the seats input field"
|
|
379
|
-
})), 1)
|
|
380
|
-
]),
|
|
381
|
-
_: 1
|
|
382
|
-
}),
|
|
383
|
-
i(s).pricing.amount ? (l(), f(i(A), {
|
|
384
|
-
key: 0,
|
|
385
|
-
tag: "span",
|
|
386
|
-
variant: "body-xs",
|
|
387
|
-
color: "subtle"
|
|
388
|
-
}, {
|
|
389
|
-
default: p(() => [
|
|
390
|
-
x(h(i(a)(
|
|
391
|
-
{
|
|
392
|
-
defaultMessage: "{amount} per seat/{period}",
|
|
393
|
-
id: "seats.price_per_seat_period",
|
|
394
|
-
description: "The price per seat and billing period label for seat-based pricing"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
amount: i(D)(i(s).pricing.amount),
|
|
398
|
-
period: i(s).billing.period ? i(r)(i(s).billing.period, {
|
|
399
|
-
short: !0,
|
|
400
|
-
hideValueForExactPeriods: !0
|
|
401
|
-
}) : ""
|
|
402
|
-
}
|
|
403
|
-
)), 1)
|
|
404
|
-
]),
|
|
405
|
-
_: 1
|
|
406
|
-
})) : i(s).pricing.tiered ? (l(), f(i(A), {
|
|
407
|
-
key: 1,
|
|
408
|
-
tag: "span",
|
|
409
|
-
variant: "body-xs",
|
|
410
|
-
color: "subtle"
|
|
411
|
-
}, {
|
|
412
|
-
default: p(() => [
|
|
413
|
-
x(h(i(a)({
|
|
414
|
-
defaultMessage: "Tiered pricing",
|
|
415
|
-
id: "seats.tiered_pricing_label",
|
|
416
|
-
description: "The label indicating tiered pricing structure for seats"
|
|
417
|
-
})) + " ", 1),
|
|
418
|
-
v(i(ae), {
|
|
419
|
-
icon: "keyboard_arrow_down",
|
|
420
|
-
size: "xs",
|
|
421
|
-
class: S(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !o.value, "rotate-180": o.value }])
|
|
422
|
-
}, null, 8, ["class"])
|
|
423
|
-
]),
|
|
424
|
-
_: 1
|
|
425
|
-
})) : $("", !0)
|
|
426
|
-
], 10, xe)
|
|
427
|
-
]),
|
|
428
|
-
(y = (g = i(s).pricing) == null ? void 0 : g.tiered) != null && y.bands ? (l(), _("div", we, [
|
|
429
|
-
v(i(ie), { "is-open": o.value }, {
|
|
430
|
-
default: p(() => [
|
|
431
|
-
o.value ? (l(), _("div", ke, [
|
|
432
|
-
v(_e, {
|
|
433
|
-
bands: i(s).pricing.tiered.bands,
|
|
434
|
-
period: i(s).billing.period
|
|
435
|
-
}, null, 8, ["bands", "period"])
|
|
436
|
-
])) : $("", !0)
|
|
437
|
-
]),
|
|
438
|
-
_: 1
|
|
439
|
-
}, 8, ["is-open"])
|
|
440
|
-
])) : $("", !0)
|
|
441
|
-
]);
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
}), Pe = {
|
|
445
|
-
key: 0,
|
|
446
|
-
class: "grid grid-cols-1 gap-1"
|
|
447
|
-
}, Te = /* @__PURE__ */ P({
|
|
448
|
-
__name: "SeatsEditor",
|
|
449
|
-
props: /* @__PURE__ */ z({
|
|
450
|
-
modelValue: { type: Array },
|
|
451
|
-
initialSeatsValues: { type: Array },
|
|
452
|
-
pricings: { type: Array }
|
|
453
|
-
}, {
|
|
454
|
-
modelValue: { required: !0 },
|
|
455
|
-
modelModifiers: {}
|
|
456
|
-
}),
|
|
457
|
-
emits: ["update:modelValue"],
|
|
458
|
-
setup(e) {
|
|
459
|
-
const n = T(e, "modelValue"), t = (a) => V({
|
|
460
|
-
get: () => n.value[a],
|
|
461
|
-
set: (r) => {
|
|
462
|
-
const o = n.value.slice();
|
|
463
|
-
o[a] = r, n.value = o;
|
|
464
|
-
}
|
|
465
|
-
});
|
|
466
|
-
return (a, r) => e.modelValue.length > 0 ? (l(), _("div", Pe, [
|
|
467
|
-
(l(!0), _(M, null, U(e.modelValue, (o, m) => (l(), f(i(E), { key: m }, {
|
|
468
|
-
default: p(() => {
|
|
469
|
-
var s;
|
|
470
|
-
return [
|
|
471
|
-
o.pricing_item_config_id ? (l(), f($e, {
|
|
472
|
-
key: o.pricing_item_config_id,
|
|
473
|
-
modelValue: t(m).value,
|
|
474
|
-
"onUpdate:modelValue": (b) => t(m).value = b,
|
|
475
|
-
"default-value": (s = e.initialSeatsValues) == null ? void 0 : s[m],
|
|
476
|
-
pricings: e.pricings
|
|
477
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : $("", !0)
|
|
478
|
-
];
|
|
479
|
-
}),
|
|
480
|
-
_: 2
|
|
481
|
-
}, 1024))), 128))
|
|
482
|
-
])) : $("", !0);
|
|
483
|
-
}
|
|
484
|
-
}), Ae = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Me = { class: "w-24 shrink-0 justify-start md:w-32" }, Se = { class: "flex grow flex-col" }, ze = /* @__PURE__ */ P({
|
|
485
|
-
__name: "UnitsEditorItem",
|
|
486
|
-
props: /* @__PURE__ */ z({
|
|
487
|
-
modelValue: { type: Object },
|
|
488
|
-
defaultValue: { type: Object },
|
|
489
|
-
pricings: { type: Array }
|
|
490
|
-
}, {
|
|
491
|
-
modelValue: { required: !0 },
|
|
492
|
-
modelModifiers: {}
|
|
493
|
-
}),
|
|
494
|
-
emits: ["update:modelValue"],
|
|
495
|
-
setup(e) {
|
|
496
|
-
const n = e, t = T(e, "modelValue"), { $t: a } = C(), r = V({
|
|
497
|
-
get: () => +(t.value.number || de),
|
|
498
|
-
set(m) {
|
|
499
|
-
t.value = {
|
|
500
|
-
...t.value,
|
|
501
|
-
number: m !== void 0 ? m.toString() : void 0
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
}), o = Q({
|
|
505
|
-
pricings: n.pricings,
|
|
506
|
-
pricingItemConfigId: t.value.pricing_item_config_id
|
|
507
|
-
});
|
|
508
|
-
return (m, s) => {
|
|
509
|
-
var b;
|
|
510
|
-
return l(), _("div", Ae, [
|
|
511
|
-
k("div", Me, [
|
|
512
|
-
v(i(J), {
|
|
513
|
-
modelValue: r.value,
|
|
514
|
-
"onUpdate:modelValue": s[0] || (s[0] = (d) => r.value = d),
|
|
515
|
-
size: "sm",
|
|
516
|
-
min: (b = e.defaultValue) != null && b.number ? +e.defaultValue.number : void 0
|
|
517
|
-
}, null, 8, ["modelValue", "min"])
|
|
518
|
-
]),
|
|
519
|
-
k("div", Se, [
|
|
520
|
-
v(i(A), {
|
|
521
|
-
tag: "span",
|
|
522
|
-
variant: "body-sm",
|
|
523
|
-
weight: "semibold"
|
|
524
|
-
}, {
|
|
525
|
-
default: p(() => [
|
|
526
|
-
x(h(i(o).product.name || i(a)({
|
|
527
|
-
defaultMessage: "Units",
|
|
528
|
-
id: "units.label",
|
|
529
|
-
description: "The label for the one-off flat item units input field"
|
|
530
|
-
})), 1)
|
|
531
|
-
]),
|
|
532
|
-
_: 1
|
|
533
|
-
}),
|
|
534
|
-
i(o).pricing.amount ? (l(), f(i(A), {
|
|
535
|
-
key: 0,
|
|
536
|
-
tag: "span",
|
|
537
|
-
variant: "body-xs",
|
|
538
|
-
color: "subtle"
|
|
539
|
-
}, {
|
|
540
|
-
default: p(() => [
|
|
541
|
-
x(h(i(a)(
|
|
542
|
-
{
|
|
543
|
-
defaultMessage: "{amount} per unit",
|
|
544
|
-
id: "units.price_per_unit",
|
|
545
|
-
description: "The price per unit label for one-off flat pricing"
|
|
546
|
-
},
|
|
547
|
-
{ amount: i(D)(i(o).pricing.amount) }
|
|
548
|
-
)), 1)
|
|
549
|
-
]),
|
|
550
|
-
_: 1
|
|
551
|
-
})) : $("", !0)
|
|
552
|
-
])
|
|
553
|
-
]);
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
}), Ne = {
|
|
557
|
-
key: 0,
|
|
558
|
-
class: "grid grid-cols-1 gap-1"
|
|
559
|
-
}, Ee = /* @__PURE__ */ P({
|
|
560
|
-
__name: "UnitsEditor",
|
|
561
|
-
props: /* @__PURE__ */ z({
|
|
562
|
-
modelValue: { type: Array },
|
|
563
|
-
initialUnitsValues: { type: Array },
|
|
564
|
-
pricings: { type: Array }
|
|
565
|
-
}, {
|
|
566
|
-
modelValue: { required: !0 },
|
|
567
|
-
modelModifiers: {}
|
|
568
|
-
}),
|
|
569
|
-
emits: ["update:modelValue"],
|
|
570
|
-
setup(e) {
|
|
571
|
-
const n = T(e, "modelValue"), t = (a) => V({
|
|
572
|
-
get: () => n.value[a],
|
|
573
|
-
set: (r) => {
|
|
574
|
-
const o = n.value.slice();
|
|
575
|
-
o[a] = r, n.value = o;
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
return (a, r) => e.modelValue.length > 0 ? (l(), _("div", Ne, [
|
|
579
|
-
(l(!0), _(M, null, U(e.modelValue, (o, m) => (l(), f(i(E), { key: m }, {
|
|
580
|
-
default: p(() => {
|
|
581
|
-
var s;
|
|
582
|
-
return [
|
|
583
|
-
o.pricing_item_config_id ? (l(), f(ze, {
|
|
584
|
-
key: o.pricing_item_config_id,
|
|
585
|
-
modelValue: t(m).value,
|
|
586
|
-
"onUpdate:modelValue": (b) => t(m).value = b,
|
|
587
|
-
"default-value": (s = e.initialUnitsValues) == null ? void 0 : s[m],
|
|
588
|
-
pricings: e.pricings
|
|
589
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : $("", !0)
|
|
590
|
-
];
|
|
591
|
-
}),
|
|
592
|
-
_: 2
|
|
593
|
-
}, 1024))), 128))
|
|
594
|
-
])) : $("", !0);
|
|
595
|
-
}
|
|
596
|
-
}), Ue = { class: "p-1" }, Ce = { class: "grid grid-cols-1 gap-1 pt-1" }, Be = /* @__PURE__ */ P({
|
|
597
|
-
__name: "AddonSingleEditor",
|
|
598
|
-
props: /* @__PURE__ */ z({
|
|
599
|
-
constraint: { type: String },
|
|
600
|
-
modelValue: { type: Array },
|
|
601
|
-
pricings: { type: Array },
|
|
602
|
-
billingPeriod: { type: Object },
|
|
603
|
-
currency: { type: String },
|
|
604
|
-
groupName: { type: String }
|
|
605
|
-
}, {
|
|
606
|
-
modelValue: { required: !0 },
|
|
607
|
-
modelModifiers: {}
|
|
608
|
-
}),
|
|
609
|
-
emits: ["update:modelValue"],
|
|
610
|
-
setup(e) {
|
|
611
|
-
const n = e, t = T(e, "modelValue"), { $t: a } = C(), { describePricing: r } = K({
|
|
612
|
-
currency: O(n, "currency"),
|
|
613
|
-
billingPeriod: O(n, "billingPeriod")
|
|
614
|
-
}), o = n.pricings.map((d) => d.id), m = V(() => n.constraint === "AT_MOST_ONE" ? a({
|
|
615
|
-
defaultMessage: "Select up to one product",
|
|
616
|
-
id: "addon_single_editor.description.at_most_one",
|
|
617
|
-
description: "The description of the addon single editor for at most one product"
|
|
618
|
-
}) : n.constraint === "EXACTLY_ONE" ? a({
|
|
619
|
-
defaultMessage: "Select one product",
|
|
620
|
-
id: "addon_single_editor.description.exactly_one",
|
|
621
|
-
description: "The description of the addon single editor for exactly one product"
|
|
622
|
-
}) : n.constraint === "AT_LEAST_ONE" ? a({
|
|
623
|
-
defaultMessage: "Select at least one product",
|
|
624
|
-
id: "addon_single_editor.description.at_least_one",
|
|
625
|
-
description: "The description of the addon single editor for at least one product"
|
|
626
|
-
}) : ""), s = (d) => n.modelValue.includes(d), b = (d) => {
|
|
627
|
-
if (s(d))
|
|
628
|
-
t.value = t.value.filter((c) => c !== d);
|
|
629
|
-
else {
|
|
630
|
-
const c = t.value.filter((u) => !o.includes(u));
|
|
631
|
-
t.value = [...c, d];
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
return (d, c) => (l(), f(i(E), { "no-spacing": "" }, {
|
|
635
|
-
default: p(() => [
|
|
636
|
-
k("div", Ue, [
|
|
637
|
-
v(X, null, {
|
|
638
|
-
title: p(() => [
|
|
639
|
-
x(h(e.groupName), 1)
|
|
640
|
-
]),
|
|
641
|
-
description: p(() => [
|
|
642
|
-
x(h(m.value), 1)
|
|
643
|
-
]),
|
|
644
|
-
_: 1
|
|
645
|
-
}),
|
|
646
|
-
k("div", Ce, [
|
|
647
|
-
(l(!0), _(M, null, U(e.pricings, (u) => (l(), f(i(E), {
|
|
648
|
-
key: u.id,
|
|
649
|
-
"content-background": "none",
|
|
650
|
-
class: S({ "!bg-white": s(u.id) })
|
|
651
|
-
}, {
|
|
652
|
-
default: p(() => [
|
|
653
|
-
v(Y, {
|
|
654
|
-
name: i(H)(u) ?? "",
|
|
655
|
-
description: i(r)(u)
|
|
656
|
-
}, {
|
|
657
|
-
default: p(() => [
|
|
658
|
-
v(i(ue), {
|
|
659
|
-
"model-value": s(u.id),
|
|
660
|
-
"onUpdate:modelValue": (g) => b(u.id)
|
|
661
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
662
|
-
]),
|
|
663
|
-
_: 2
|
|
664
|
-
}, 1032, ["name", "description"])
|
|
665
|
-
]),
|
|
666
|
-
_: 2
|
|
667
|
-
}, 1032, ["class"]))), 128))
|
|
668
|
-
])
|
|
669
|
-
])
|
|
670
|
-
]),
|
|
671
|
-
_: 1
|
|
672
|
-
}));
|
|
673
|
-
}
|
|
674
|
-
}), Oe = { class: "grid grid-cols-1 gap-1" }, q = /* @__PURE__ */ P({
|
|
675
|
-
__name: "AddonMultipleEditor",
|
|
676
|
-
props: /* @__PURE__ */ z({
|
|
677
|
-
modelValue: { type: Array },
|
|
678
|
-
pricings: { type: Array },
|
|
679
|
-
billingPeriod: { type: Object },
|
|
680
|
-
currency: { type: String },
|
|
681
|
-
groupName: { type: String }
|
|
682
|
-
}, {
|
|
683
|
-
modelValue: { required: !0 },
|
|
684
|
-
modelModifiers: {}
|
|
685
|
-
}),
|
|
686
|
-
emits: ["update:modelValue"],
|
|
687
|
-
setup(e) {
|
|
688
|
-
const n = e, t = T(e, "modelValue"), { $t: a } = C(), { describePricing: r } = K({
|
|
689
|
-
currency: O(n, "currency"),
|
|
690
|
-
billingPeriod: O(n, "billingPeriod")
|
|
691
|
-
}), o = (s) => t.value.includes(s), m = (s) => {
|
|
692
|
-
o(s) ? t.value = t.value.filter((b) => b !== s) : t.value = [...t.value, s];
|
|
693
|
-
};
|
|
694
|
-
return (s, b) => (l(), f(i(E), {
|
|
695
|
-
"no-spacing": "",
|
|
696
|
-
"no-border": !e.groupName,
|
|
697
|
-
"content-background": e.groupName ? "gray" : "none"
|
|
698
|
-
}, {
|
|
699
|
-
default: p(() => [
|
|
700
|
-
k("div", {
|
|
701
|
-
class: S(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
|
|
702
|
-
}, [
|
|
703
|
-
e.groupName ? (l(), f(X, { key: 0 }, {
|
|
704
|
-
title: p(() => [
|
|
705
|
-
x(h(e.groupName), 1)
|
|
706
|
-
]),
|
|
707
|
-
description: p(() => [
|
|
708
|
-
x(h(i(a)({
|
|
709
|
-
defaultMessage: "Select any number of products",
|
|
710
|
-
id: "addon_multiple_editor.description",
|
|
711
|
-
description: "The description of the addon multiple editor"
|
|
712
|
-
})), 1)
|
|
713
|
-
]),
|
|
714
|
-
_: 1
|
|
715
|
-
})) : $("", !0),
|
|
716
|
-
k("div", Oe, [
|
|
717
|
-
(l(!0), _(M, null, U(e.pricings, (d) => (l(), f(i(E), {
|
|
718
|
-
key: d.id,
|
|
719
|
-
"content-background": e.groupName || o(d.id) ? "none" : "gray",
|
|
720
|
-
class: S({ "!bg-white": o(d.id) })
|
|
721
|
-
}, {
|
|
722
|
-
default: p(() => [
|
|
723
|
-
v(Y, {
|
|
724
|
-
name: i(H)(d) ?? "",
|
|
725
|
-
description: i(r)(d)
|
|
726
|
-
}, {
|
|
727
|
-
default: p(() => [
|
|
728
|
-
o(d.id) ? (l(), f(i(j), {
|
|
729
|
-
key: 0,
|
|
730
|
-
intent: "secondary",
|
|
731
|
-
square: "",
|
|
732
|
-
size: "sm",
|
|
733
|
-
"icon-prefix": "remove_shopping_cart",
|
|
734
|
-
onClick: (c) => m(d.id)
|
|
735
|
-
}, null, 8, ["onClick"])) : (l(), f(i(j), {
|
|
736
|
-
key: 1,
|
|
737
|
-
intent: "primary",
|
|
738
|
-
"icon-prefix": "add",
|
|
739
|
-
size: "sm",
|
|
740
|
-
onClick: (c) => m(d.id)
|
|
741
|
-
}, {
|
|
742
|
-
default: p(() => [
|
|
743
|
-
x(h(i(a)({
|
|
744
|
-
defaultMessage: "Add to subscription ",
|
|
745
|
-
id: "addon_multiple_editor.add_to_subscription_button",
|
|
746
|
-
description: "The button to add a pricing to the subscription"
|
|
747
|
-
})), 1)
|
|
748
|
-
]),
|
|
749
|
-
_: 1
|
|
750
|
-
}, 8, ["onClick"]))
|
|
751
|
-
]),
|
|
752
|
-
_: 2
|
|
753
|
-
}, 1032, ["name", "description"])
|
|
754
|
-
]),
|
|
755
|
-
_: 2
|
|
756
|
-
}, 1032, ["content-background", "class"]))), 128))
|
|
757
|
-
])
|
|
758
|
-
], 2)
|
|
759
|
-
]),
|
|
760
|
-
_: 1
|
|
761
|
-
}, 8, ["no-border", "content-background"]));
|
|
762
|
-
}
|
|
763
|
-
});
|
|
764
|
-
function Ie(e) {
|
|
765
|
-
var t;
|
|
766
|
-
return (((t = e.pricing_categories) == null ? void 0 : t.flatMap((a) => a.pricings ?? [])) ?? []).filter((a) => a !== null);
|
|
767
|
-
}
|
|
768
|
-
const De = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, nt = /* @__PURE__ */ P({
|
|
769
|
-
__name: "PlanCustomizationEditor",
|
|
770
|
-
props: /* @__PURE__ */ z({
|
|
771
|
-
subscription: { type: Object },
|
|
772
|
-
enabledPricingIds: { type: Array },
|
|
773
|
-
initialSeatsValues: { type: Array },
|
|
774
|
-
initialUnitsValues: { type: Array },
|
|
775
|
-
billingPeriod: { type: Object },
|
|
776
|
-
currency: { type: String }
|
|
777
|
-
}, {
|
|
778
|
-
seatsValues: { required: !0 },
|
|
779
|
-
seatsValuesModifiers: {},
|
|
780
|
-
unitsValues: { required: !0 },
|
|
781
|
-
unitsValuesModifiers: {},
|
|
782
|
-
enabledPricingIds: {
|
|
783
|
-
required: !0
|
|
784
|
-
},
|
|
785
|
-
enabledPricingIdsModifiers: {}
|
|
786
|
-
}),
|
|
787
|
-
emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
|
|
788
|
-
setup(e) {
|
|
789
|
-
const n = e, t = T(e, "seatsValues"), a = T(e, "unitsValues"), r = T(e, "enabledPricingIds"), { $t: o } = C(), m = V(() => {
|
|
790
|
-
var c;
|
|
791
|
-
const d = (c = me({
|
|
792
|
-
pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos,
|
|
793
|
-
type: "DEFAULT"
|
|
794
|
-
})) == null ? void 0 : c.pricing_plan_version;
|
|
795
|
-
return d ? Ie(d) : [];
|
|
796
|
-
}), s = V(
|
|
797
|
-
() => m.value.filter((d) => d.product_type === "ADDON")
|
|
798
|
-
), b = V(
|
|
799
|
-
() => pe(n.subscription)
|
|
800
|
-
);
|
|
801
|
-
return (d, c) => (l(), f(i(E), {
|
|
802
|
-
class: "sv-plan-customization",
|
|
803
|
-
title: i(o)({
|
|
804
|
-
defaultMessage: "Customize plan",
|
|
805
|
-
id: "checkout.customize_plan_block.title",
|
|
806
|
-
description: "The title of the customize plan block in the checkout form"
|
|
807
|
-
}),
|
|
808
|
-
"no-spacing": "",
|
|
809
|
-
"no-border": "",
|
|
810
|
-
"content-background": "none"
|
|
811
|
-
}, {
|
|
812
|
-
default: p(() => [
|
|
813
|
-
k("div", De, [
|
|
814
|
-
v(Te, {
|
|
815
|
-
modelValue: t.value,
|
|
816
|
-
"onUpdate:modelValue": c[0] || (c[0] = (u) => t.value = u),
|
|
817
|
-
class: "sv-plan-customization__seats",
|
|
818
|
-
"initial-seats-values": e.initialSeatsValues,
|
|
819
|
-
pricings: m.value
|
|
820
|
-
}, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
|
|
821
|
-
v(Ee, {
|
|
822
|
-
modelValue: a.value,
|
|
823
|
-
"onUpdate:modelValue": c[1] || (c[1] = (u) => a.value = u),
|
|
824
|
-
class: "sv-plan-customization__units",
|
|
825
|
-
"initial-units-values": e.initialUnitsValues,
|
|
826
|
-
pricings: m.value
|
|
827
|
-
}, null, 8, ["modelValue", "initial-units-values", "pricings"]),
|
|
828
|
-
(l(!0), _(M, null, U(b.value, (u) => (l(), _(M, {
|
|
829
|
-
key: u.id
|
|
830
|
-
}, [
|
|
831
|
-
u.product_type === "DEFAULT" && u.selection_constraint === "EXACTLY_ONE" ? (l(), f(ce, {
|
|
832
|
-
key: 0,
|
|
833
|
-
modelValue: r.value,
|
|
834
|
-
"onUpdate:modelValue": c[2] || (c[2] = (g) => r.value = g),
|
|
835
|
-
class: "sv-plan-customization__group",
|
|
836
|
-
"group-name": u.name,
|
|
837
|
-
pricings: u.pricings,
|
|
838
|
-
"billing-period": e.billingPeriod,
|
|
839
|
-
currency: e.currency
|
|
840
|
-
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : u.product_type === "ADDON" && u.selection_constraint === "AT_MOST_ONE" ? (l(), f(Be, {
|
|
841
|
-
key: 1,
|
|
842
|
-
modelValue: r.value,
|
|
843
|
-
"onUpdate:modelValue": c[3] || (c[3] = (g) => r.value = g),
|
|
844
|
-
class: "sv-plan-customization__group",
|
|
845
|
-
"group-name": u.name,
|
|
846
|
-
pricings: u.pricings,
|
|
847
|
-
constraint: u.selection_constraint,
|
|
848
|
-
"billing-period": e.billingPeriod,
|
|
849
|
-
currency: e.currency
|
|
850
|
-
}, null, 8, ["modelValue", "group-name", "pricings", "constraint", "billing-period", "currency"])) : u.product_type === "ADDON" && u.selection_constraint === "ANY" ? (l(), f(q, {
|
|
851
|
-
key: 2,
|
|
852
|
-
modelValue: r.value,
|
|
853
|
-
"onUpdate:modelValue": c[4] || (c[4] = (g) => r.value = g),
|
|
854
|
-
class: "sv-plan-customization__group",
|
|
855
|
-
pricings: u.pricings,
|
|
856
|
-
"group-name": u.name,
|
|
857
|
-
"billing-period": e.billingPeriod,
|
|
858
|
-
currency: e.currency
|
|
859
|
-
}, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : $("", !0)
|
|
860
|
-
], 64))), 128)),
|
|
861
|
-
v(q, {
|
|
862
|
-
modelValue: r.value,
|
|
863
|
-
"onUpdate:modelValue": c[5] || (c[5] = (u) => r.value = u),
|
|
864
|
-
class: "sv-plan-customization__group",
|
|
865
|
-
pricings: s.value,
|
|
866
|
-
"billing-period": e.billingPeriod,
|
|
867
|
-
currency: e.currency
|
|
868
|
-
}, null, 8, ["modelValue", "pricings", "billing-period", "currency"])
|
|
869
|
-
])
|
|
870
|
-
]),
|
|
871
|
-
_: 1
|
|
872
|
-
}, 8, ["title"]));
|
|
873
|
-
}
|
|
874
|
-
});
|
|
875
|
-
export {
|
|
876
|
-
nt as default
|
|
877
|
-
};
|