@solvimon/solvimon-web 0.1.0-alpha.22 → 0.1.0-alpha.24
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 +44 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js} +1 -1
- package/dist/Alert.vue.es-RyK53a2P.js +1 -0
- package/dist/Alert.vue.es-lIiAWf2S.mjs +146 -0
- package/dist/{Avatar.vue.es-DNJ-jexx.mjs → Avatar.vue.es-DzjFvLuK.mjs} +1 -1
- package/dist/{Avatar.vue.es-D42J_izE.js → Avatar.vue.es-nr8srGuK.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs} +4 -4
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js → BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js} +1 -1
- package/dist/{Button.vue.es-Dz-2L8dJ.mjs → Button.vue.es-PbJFK8z7.mjs} +1 -1
- package/dist/{Button.vue.es-M_jXZda4.js → Button.vue.es-TCF-bvDF.js} +1 -1
- package/dist/Checkout.entry.ce-D8O4qJ24.js +2 -0
- package/dist/Checkout.entry.ce-DHFx5Vnb.mjs +3900 -0
- package/dist/{Chip.vue.es-G8doKsZb.js → Chip.vue.es-CAoisngJ.js} +1 -1
- package/dist/{Chip.vue.es-DMK9C78d.mjs → Chip.vue.es-DpcOM3Ai.mjs} +2 -2
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +38 -0
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +1 -0
- package/dist/{ContextMenu.vue.es-B3Rz6Ojk.js → ContextMenu.vue.es-kzZ3JJHG.js} +1 -1
- package/dist/{ContextMenu.vue.es-CzkkNoJG.mjs → ContextMenu.vue.es-tAuFp-6i.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-Db6bN2RZ.mjs → CustomerBillingInformation.vue.es-BQSl9q6W.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-BmtU9Pk0.js → CustomerBillingInformation.vue.es-Nac6HgLo.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs} +5 -5
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs} +15 -15
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +1 -0
- package/dist/{DividerText.vue.es-IK2fns6f.mjs → DividerText.vue.es-CSE7a-T0.mjs} +1 -1
- package/dist/{DividerText.vue.es-D-QxT2OD.js → DividerText.vue.es-LJ2kZakb.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js} +1 -1
- package/dist/ErrorNotification.vue.es-BF6swP7o.js +1 -0
- package/dist/{ErrorNotification.vue.es-BGckEwHf.mjs → ErrorNotification.vue.es-CVUuIt8Z.mjs} +2 -2
- package/dist/IconButton.vue.es-CB1lIPao.js +1 -0
- package/dist/IconButton.vue.es-DGflbWFk.mjs +56 -0
- package/dist/{IconTitle.vue.es-BmX68uJx.mjs → IconTitle.vue.es-BsdjyGlQ.mjs} +3 -3
- package/dist/{IconTitle.vue.es-CmR2xoeu.js → IconTitle.vue.es-CMO8EyQl.js} +1 -1
- package/dist/{Input.vue.es-BGPELaZU.mjs → Input.vue.es-BFbiFXsU.mjs} +2 -2
- package/dist/{Input.vue.es-CTOrmrcB.js → Input.vue.es-CREdT4nB.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-hpG8Tq1D.js → InvoiceSummary.vue.es-BOnvORpf.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-BWLiwlNs.mjs → InvoiceSummary.vue.es-JtOIQ6SJ.mjs} +7 -7
- package/dist/{Modal.vue.es-BD4vUaOQ.js → Modal.vue.es-BbdtdxsO.js} +1 -1
- package/dist/{Modal.vue.es-B_G8NQS2.mjs → Modal.vue.es-jT61xK_A.mjs} +5 -5
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs +294 -0
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs} +3 -3
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js} +1 -1
- package/dist/{PaymentHistoryBlock-DSHW_eW1.js → PaymentHistoryBlock-Dw2wOiAI.js} +1 -1
- package/dist/{PaymentHistoryBlock-ComJzB3H.mjs → PaymentHistoryBlock-quvnCSFV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs} +4 -4
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js} +1 -1
- package/dist/{PaymentIntegrationForm-CH5B6BY5.mjs → PaymentIntegrationForm-CQjUZi22.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-CwfCLnKt.js → PaymentIntegrationForm-D1oJREmH.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs} +43 -40
- package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +98 -0
- package/dist/PaymentIntegrationFormAdyen-CyZk9ofV.mjs +798 -0
- package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-CBsXDuhy.mjs → PaymentIntegrationFormStripe-D-GaLHwc.mjs} +251 -179
- package/dist/{PaymentMethod.vue.es-DkQdPXfk.mjs → PaymentMethod.vue.es-C0j580g7.mjs} +3 -3
- package/dist/{PaymentMethod.vue.es-D18g-QB4.js → PaymentMethod.vue.es-CXV_ThBY.js} +1 -1
- package/dist/{PaymentMethodForm-CpIZKfPH.mjs → PaymentMethodForm-Bf2Ps6eV.mjs} +1 -1
- package/dist/{PaymentMethodForm-DK8ntFA0.js → PaymentMethodForm-CDV5LR8i.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs} +6 -6
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js} +1 -1
- package/dist/PlanCustomizationEditor-0kEXoOcM.js +1 -0
- package/dist/{PlanCustomizationEditor-0zCXN-cv.mjs → PlanCustomizationEditor-Dv69xPbX.mjs} +9 -9
- package/dist/{PricingGroupRangeInput.vue.es-QnpfHxaY.js → PricingGroupRangeInput.vue.es-BchXhunH.js} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-8_5nfZDI.mjs → PricingGroupRangeInput.vue.es-CP7-dmxS.mjs} +4 -4
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js} +1 -1
- package/dist/RadioGroupExtended.vue.es-Cf5R1P9a.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-C92xlCFQ.mjs → RadioGroupExtended.vue.es-_QMReyZ8.mjs} +3 -3
- package/dist/{Section.vue.es-Btff-cLY.js → Section.vue.es-CBZx5x53.js} +1 -1
- package/dist/{Section.vue.es-DQ5H7mqW.mjs → Section.vue.es-KRsHeFoT.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js} +1 -1
- package/dist/{SubscriptionSchedules-pzNsego6.js → SubscriptionSchedules-1ikoGncQ.js} +1 -1
- package/dist/{SubscriptionSchedules-Dc0rUnnf.mjs → SubscriptionSchedules-B6b6xf-E.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +1 -0
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs} +12 -12
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs} +6 -6
- package/dist/{TooltipParagraph.vue.es-BaqCDjl8.js → TooltipParagraph.vue.es-7IQdU3Tf.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-CIedcXGT.mjs → TooltipParagraph.vue.es-nGFfHF1A.mjs} +1 -1
- package/dist/{TrialChip.vue.es-BzNI94k0.js → TrialChip.vue.es-DhC5Bpmy.js} +1 -1
- package/dist/{TrialChip.vue.es-DkBuMNr_.mjs → TrialChip.vue.es-eKgO6an3.mjs} +2 -2
- package/dist/{cn.es-BGqYNPM3.mjs → cn.es-BD7Afj5Q.mjs} +2 -2
- package/dist/{cn.es-CvmLj7KH.js → cn.es-BLE3T5Rx.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +7 -7
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +5 -5
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +10 -10
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +8 -8
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +4 -4
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +9 -9
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +6 -6
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +4 -4
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +26 -23
- package/dist/customElements-CSzbVZIH.js +1211 -0
- package/dist/{customElements-CSE7dwUr.mjs → customElements-DT1YyL4O.mjs} +663 -626
- package/dist/{customer-Dsq-Moea.js → customer-CJonIvSm.js} +1 -1
- package/dist/{customer-5krPxZ8i.mjs → customer-Cq4fF__H.mjs} +1 -1
- package/dist/{de-DE-DsFtpLsx.mjs → de-DE-CyvjSD9b.mjs} +26 -2
- package/dist/{de-DE-C3DzP1nj.js → de-DE-DXsDvO5y.js} +1 -1
- package/dist/{en-US-X_pSFsNm.js → en-US-DHdI11k9.js} +1 -1
- package/dist/{en-US-DvkvbV0p.mjs → en-US-xQrWj8qI.mjs} +24 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-DRgfpkJ6.mjs → invoices-CVZOfEOY.mjs} +1 -1
- package/dist/{invoices-xOV2YaEV.js → invoices-EamWI_jz.js} +1 -1
- package/dist/{it-IT-TE7oqvXa.mjs → it-IT-C09oObBM.mjs} +26 -2
- package/dist/{it-IT-YBtHAao1.js → it-IT-CcRIzP1A.js} +1 -1
- package/dist/{nl-NL-C8wnyKju.js → nl-NL-5PrgQl8q.js} +1 -1
- package/dist/{nl-NL-Di3-JArV.mjs → nl-NL-BhNND_yi.mjs} +24 -0
- package/dist/paymentFailure-Bh60UhxA.mjs +47 -0
- package/dist/paymentFailure-Cki8c5BX.js +1 -0
- package/dist/{paymentMethods-CRDIw9lz.js → paymentMethods-Bwym8l9a.js} +1 -1
- package/dist/{paymentMethods-PmkHYomw.mjs → paymentMethods-By1SebnO.mjs} +1 -1
- package/dist/{payments-Dvqh6CGW.mjs → payments-BYZLQTJ-.mjs} +1 -1
- package/dist/{payments-jAgXhdp_.js → payments-Dnjg9Se4.js} +1 -1
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +21 -21
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +131 -127
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +11 -11
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +21 -21
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
- package/dist/sessionReference-3h-6FdrC.mjs +43 -0
- package/dist/sessionReference-m_6Rp4X1.js +1 -0
- package/dist/subscriptions-BKER9RUc.js +1 -0
- package/dist/{subscriptions-XDyI2Cqm.mjs → subscriptions-Gj3KgCZz.mjs} +2 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +8 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +2 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +13 -2
- package/dist/types/services/portals.types.d.ts +2 -0
- package/dist/types/services/requests.types.d.ts +2 -0
- package/dist/types/types/errors.d.ts +5 -0
- package/dist/{url-DwiuKYpu.mjs → url-TNRgVI8A.mjs} +3 -2
- package/dist/url-vloPOiXd.js +1 -0
- package/dist/{useActionDispatchProvider-CNAuaHdm.js → useActionDispatchProvider-DDHrhy3i.js} +1 -1
- package/dist/{useActionDispatchProvider-B8-oycQk.mjs → useActionDispatchProvider-MjTckd4f.mjs} +1 -1
- package/dist/{useCustomer-DSx-wN-6.js → useCustomer-BW0DBEJh.js} +1 -1
- package/dist/{useCustomer-CP8eWUZV.mjs → useCustomer-CxnF7r8Z.mjs} +1 -1
- package/dist/{useCustomerFormLabels-TVTgy0MT.js → useCustomerFormLabels-C773h3J0.js} +1 -1
- package/dist/{useCustomerFormLabels-DW6jnDYH.mjs → useCustomerFormLabels-zPc8QrwJ.mjs} +5 -5
- package/dist/{useExperimentalFeature-CC-DrIcL.js → useExperimentalFeature-9teNYGuP.js} +1 -1
- package/dist/{useExperimentalFeature-BvE_EOX-.mjs → useExperimentalFeature-NsSDg-e3.mjs} +1 -1
- package/dist/{useInvoiceData-CRRPdXc6.js → useInvoiceData-DvV2AsgC.js} +1 -1
- package/dist/{useInvoiceData-D8ds05CX.mjs → useInvoiceData-GQwk6fl4.mjs} +2 -2
- package/dist/{useInvoicesList-SJU5YWBQ.mjs → useInvoicesList-CGmFSQSg.mjs} +7 -7
- package/dist/{useInvoicesList-DIfQcvER.js → useInvoicesList-Xnth6s6U.js} +1 -1
- package/dist/{useLoadInitialData-MUljS38K.mjs → useLoadInitialData-BvvaWeAe.mjs} +1 -1
- package/dist/{useLoadInitialData-DsabgMLZ.js → useLoadInitialData-Cjkc70u-.js} +1 -1
- package/dist/{usePaymentMethodAvailability-D0NUanyF.mjs → usePaymentMethodAvailability-BWaaj3N3.mjs} +4 -4
- package/dist/{usePaymentMethodAvailability-Bt7P9InI.js → usePaymentMethodAvailability-DKyscbom.js} +1 -1
- package/dist/{usePaymentMethodOptions-cT1o-BA1.js → usePaymentMethodOptions-DuXKS36F.js} +1 -1
- package/dist/{usePaymentMethodOptions-B7JYkGsw.mjs → usePaymentMethodOptions-l-wVAmIW.mjs} +1 -1
- package/dist/{usePaymentMethods-DNVw2eVg.js → usePaymentMethods-BDFVB-kK.js} +1 -1
- package/dist/{usePaymentMethods-CpzqXQUT.mjs → usePaymentMethods-DvQVnsSV.mjs} +1 -1
- package/dist/{usePayments-D9Eo-uBk.js → usePayments-CIJocDhR.js} +1 -1
- package/dist/{usePayments-Gx9kBvNB.mjs → usePayments-D_dyuf6S.mjs} +6 -6
- package/dist/{usePortal-DsebXdhx.js → usePortal-BU4ibdWq.js} +1 -1
- package/dist/{usePortal-3VCZwSUE.mjs → usePortal-Br5lYuPT.mjs} +1 -1
- package/dist/{useSubscription-DnL1wVh1.mjs → useSubscription-CqRae2I9.mjs} +1 -1
- package/dist/{useSubscription-K_gP9TeX.js → useSubscription-DRBUt9H5.js} +1 -1
- package/dist/{useTimePeriod.es-DMtKzcoB.mjs → useTimePeriod.es-BxIGnCAP.mjs} +1 -1
- package/dist/{useTimePeriod.es-CmltiTE-.js → useTimePeriod.es-DDos3-EH.js} +1 -1
- package/package.json +2 -1
- package/dist/Checkout.entry.ce-B5-0AM67.mjs +0 -3747
- package/dist/Checkout.entry.ce-C52gkrNZ.js +0 -1
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +0 -32
- package/dist/ContentWithAsideLayout-C6yMIVJF.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +0 -1
- package/dist/ErrorNotification.vue.es-Cd2UKPAz.js +0 -1
- package/dist/IconButton.vue.es-BTAkuFsm.js +0 -1
- package/dist/IconButton.vue.es-C4dQEQAc.mjs +0 -198
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs +0 -144
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-DfN7cPYZ.mjs +0 -621
- package/dist/PaymentIntegrationFormAdyen-Q48aDXR7.js +0 -98
- package/dist/PaymentIntegrationFormStripe-BSEqarl7.js +0 -102
- package/dist/PlanCustomizationEditor-XpofGULc.js +0 -1
- package/dist/RadioGroupExtended.vue.es-Cb1iD73r.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +0 -1
- package/dist/component-5wqcK7yz.mjs +0 -8
- package/dist/component-B7ZDyqBp.js +0 -1
- package/dist/customElements-Vox1PB6G.js +0 -1211
- package/dist/subscriptions-fJcj88X9.js +0 -1
- package/dist/url-BNKStNY9.js +0 -1
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),Q=require("./useService-H7BjLg8P.js"),M=require("./customElements-Vox1PB6G.js"),B=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js"),W=require("./payments-jAgXhdp_.js"),w=require("./url-BNKStNY9.js"),J=require("./paymentMethods-CRDIw9lz.js"),s=require("./adyen-Druit6gz.js"),X=require("./adyenSdk-BP2XXzeJ.js"),ee=require("./useExperimentalFeature-CC-DrIcL.js"),te=l=>{let _={};return l==="TOKENIZE"&&(_={"en-US":{payButton:"Add payment method",confirmPurchase:"Add payment method"},"fr-FR":{payButton:"Ajouter un moyen de paiement",confirmPurchase:"Ajouter un moyen de paiement"},"de-DE":{payButton:"Zahlungsmethode hinzufügen",confirmPurchase:"Zahlungsmethode hinzufügen"},"it-IT":{payButton:"Aggiungi metodo di pagamento",confirmPurchase:"Aggiungi metodo di pagamento"},"es-ES":{payButton:"Añadir método de pago",confirmPurchase:"Añadir método de pago"},"nl-NL":{payButton:"Betaalmethode toevoegen",confirmPurchase:"Betaalmethode toevoegen"},"pt-BR":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pt-PT":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pl-PL":{payButton:"Dodaj metodę płatności",confirmPurchase:"Dodaj metodę płatności"},"ru-RU":{payButton:"Добавить способ оплаты",confirmPurchase:"Добавить способ оплаты"},"sv-SE":{payButton:"Lägg till betalningsmetod",confirmPurchase:"Lägg till betalningsmetod"},"da-DK":{payButton:"Tilføj betalingsmetode",confirmPurchase:"Tilføj betalingsmetode"},"fi-FI":{payButton:"Lisää maksutapa",confirmPurchase:"Lisää maksutapa"},"no-NO":{payButton:"Legg til betalingsmetode",confirmPurchase:"Legg til betalingsmetode"},"cs-CZ":{payButton:"Přidat platební metodu",confirmPurchase:"Přidat platební metodu"},"hu-HU":{payButton:"Fizetési mód hozzáadása",confirmPurchase:"Fizetési mód hozzáadása"},"ro-RO":{payButton:"Adăugați metodă de plată",confirmPurchase:"Adăugați metodă de plată"},"ja-JP":{payButton:"支払い方法を追加",confirmPurchase:"支払い方法を追加"},"ko-KR":{payButton:"결제 수단 추가",confirmPurchase:"결제 수단 추가"},"zh-CN":{payButton:"添加支付方式",confirmPurchase:"添加支付方式"},"zh-TW":{payButton:"新增付款方式",confirmPurchase:"新增付款方式"},ar:{payButton:"إضافة وسيلة دفع",confirmPurchase:"إضافة وسيلة دفع"},"hr-HR":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"el-GR":{payButton:"Προσθήκη μεθόδου πληρωμής",confirmPurchase:"Προσθήκη μεθόδου πληρωμής"},"sk-SK":{payButton:"Pridať spôsob platby",confirmPurchase:"Pridať spôsob platby"},"sl-SI":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"bg-BG":{payButton:"Добавяне на начин на плащане",confirmPurchase:"Добавяне на начин на плащане"},"ca-ES":{payButton:"Afegir mètode de pagament",confirmPurchase:"Afegir mètode de pagament"},"et-EE":{payButton:"Lisa makseviis",confirmPurchase:"Lisa makseviis"},"lv-LV":{payButton:"Pievienot maksājuma veidu",confirmPurchase:"Pievienot maksājuma veidu"},"lt-LT":{payButton:"Pridėti mokėjimo metodą",confirmPurchase:"Pridėti mokėjimo metodą"}}),_},f="ADYEN",ne=r.defineComponent({__name:"PaymentIntegrationFormAdyen",props:{context:{type:Object},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean}},emits:["select","payment-failed","payment-success","ready"],setup(l,{expose:_,emit:x}){let u=null,P=null;const n=l,m=x;_({submit:j});const y=r.ref(),I=r.ref(!1),h=r.ref(),d=M.useLogger(),{locale:C}=M.useIntl(),{authorizePayment:D,getPaymentDetails:S}=W.createPaymentsService(),{tokenizePaymentMethod:L}=J.createPaymentMethodsService(),g=ee.useExperimentalFeature(),v=r.computed(()=>{var e;return s.getAdyenDropInPaymentMethods(n.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!((e=g==null?void 0:g.value)!=null&&e["express-checkout"])})}),k=r.computed(()=>v.value.length>0);function j(){try{u==null||u.submit()}catch(e){d.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",{},e)}}async function U(){const e=s.toMinorUnitAmount(n.amount),t=v.value;return{checkoutConfig:{amount:e,clientKey:s.getAdyenClientKeyFromPaymentMethodOptionsResponse(n.paymentMethodOptionResponseEntry),environment:s.getAdyenEnvironmentFromPaymentMethodOptionsResponse(n.paymentMethodOptionResponseEntry,d),locale:C,translations:te(n.variant),countryCode:n.countryCode,analytics:{enabled:!1},paymentMethodsResponse:{paymentMethods:t},onSubmit:Y,onAdditionalDetails:K,onPaymentCompleted:q,onPaymentFailed:H,onError:V,showPayButton:!1},dropInConfig:{disableFinalAnimation:!0,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0,enableStoreDetails:!n.forceStorePaymentMethod&&n.storePaymentMethod===void 0&&n.variant==="AUTHORIZE"},paypal:{intent:e.value>0?"authorize":"tokenize",showPayButton:!0}},openFirstPaymentMethod:n.selected,onSelect:({props:{type:a}})=>{a&&m("select",{paymentMethodType:a,paymentGatewayVariant:"ADYEN"})},onReady:()=>m("ready")}}}function F(){return Promise.all([X.loadAdyenSdk(),Promise.resolve().then(()=>require("./adyen-BJfC7N6f.js")).then(e=>e.default)])}async function b(){if(await R(),!k.value){const{payment_acceptor:e,integration:t}=n.paymentMethodOptionResponseEntry;d.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE","No Adyen payment methods to offer",{fingerprint:["PAYMENT_INTEGRATION_NOT_RENDERABLE",e.id],paymentAcceptorId:e.id,integrationId:t.id,...n.invoiceId?{invoiceId:n.invoiceId}:{}});return}if(await r.nextTick(),!!y.value)try{const[e,t]=await F(),{checkoutConfig:a,dropInConfig:o}=await U();P=await e.AdyenCheckout(a),u=new e.Dropin(P,{...o,paymentMethodComponents:e.dropInPaymentMethodComponents}).mount(y.value),z(t)}catch(e){d.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",{error:e})}}async function R(){u&&(u.unmount(),u=null),y.value&&(y.value.innerHTML="")}function z(e){var a;const t=(a=y.value)==null?void 0:a.getRootNode();if(t instanceof ShadowRoot){const o=document.createElement("style");o.textContent=e,t.appendChild(o);const i=document.createElement("style");i.textContent=`
|
|
2
|
-
:host {
|
|
3
|
-
--adyen-sdk-color-background-secondary: transparent;
|
|
4
|
-
--adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
|
|
5
|
-
--adyen-sdk-color-outline-secondary: #e5e7eb;
|
|
6
|
-
--adyen-sdk-color-outline-primary: transparent;
|
|
7
|
-
--adyen-sdk-color-background-always-dark: var(--color-primary-500);
|
|
8
|
-
--adyen-sdk-color-background-inverse-primary-hover: var(--color-primary-600);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.adyen-checkout__payment-method__image__wrapper {
|
|
12
|
-
width: 32px;
|
|
13
|
-
height: 32px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.adyen-checkout__payment-method__image {
|
|
17
|
-
height: 32px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.adyen-checkout__input-wrapper,
|
|
21
|
-
.adyen-checkout__input {
|
|
22
|
-
border-color: rgb(229, 231, 235);
|
|
23
|
-
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.adyen-checkout__button,
|
|
27
|
-
.adyen-checkout__payment-method {
|
|
28
|
-
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.adyen-checkout__payment-method {
|
|
32
|
-
border-color: rgb(229, 231, 235);
|
|
33
|
-
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
34
|
-
transition: box-shadow 0.2s ease-in-out;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.adyen-checkout__payment-method--selected {
|
|
38
|
-
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.adyen-checkout__payment-method:after {
|
|
42
|
-
transform: scale(0%);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.adyen-checkout__paypal__button {
|
|
46
|
-
display: block !important;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.adyen-checkout__payment-methods-list {
|
|
50
|
-
gap: 4px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.adyen-checkout__dropdown__list {
|
|
54
|
-
background-color: white;
|
|
55
|
-
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.adyen-checkout__payment-method.adyen-checkout__payment-method--selected:after {
|
|
59
|
-
content: '✓';
|
|
60
|
-
width: 20px;
|
|
61
|
-
height: 20px;
|
|
62
|
-
border-radius: 10px;
|
|
63
|
-
background-color: var(--color-primary-600);
|
|
64
|
-
position: absolute;
|
|
65
|
-
top: 14px;
|
|
66
|
-
right: 14px;
|
|
67
|
-
text-align: center;
|
|
68
|
-
line-height: 20px;
|
|
69
|
-
color: white;
|
|
70
|
-
transform: scale(100%);
|
|
71
|
-
font-size: 12px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.adyen-checkout__payment-method__header {
|
|
75
|
-
padding: 8px 16px !important;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.adyen-checkout__payment-method__brands {
|
|
79
|
-
align-items: center;
|
|
80
|
-
}
|
|
81
|
-
.adyen-checkout__payment-method__brand-number {
|
|
82
|
-
line-height: 1;
|
|
83
|
-
}
|
|
84
|
-
.adyen-checkout__button__text {
|
|
85
|
-
font-size: 14px;
|
|
86
|
-
}
|
|
87
|
-
.adyen-checkout__store-details {
|
|
88
|
-
background: transparent;
|
|
89
|
-
padding: 0;
|
|
90
|
-
}
|
|
91
|
-
.adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
|
|
92
|
-
border-color: rgb(229, 231, 235);
|
|
93
|
-
}
|
|
94
|
-
`,n.variant==="AUTHORIZE"&&(i.textContent+=`
|
|
95
|
-
.adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
|
|
96
|
-
display: none;
|
|
97
|
-
}
|
|
98
|
-
`),t.appendChild(i)}}function O(e,{paymentMethodType:t,actions:a,logFailure:o}){if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===f){const i=Z(e,t);if(!i){o(e);return}u.handleAction(i),a.resolve({resultCode:e.action.adyen.result_code,action:i});return}if(e.payment.result==="AUTHORIZED"){I.value=!0,a.resolve({resultCode:"Authorised"});return}o(e),a.resolve({resultCode:"Error"})}function Y(...e){const[t,a,o]=e;n.validateOnSubmit().then(i=>{if(!i)return;const c=n.paymentMethodOptionResponseEntry.payment_acceptor.id,N={risk_data:s.transformObjectToAdyenObject(t.data.riskData),payment_method:s.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:s.transformObjectToAdyenObject(t.data.browserInfo)};if(n.variant==="AUTHORIZE"){const E=s.createReturnUrl({paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});D({payment_acceptor_id:c,...n.customerId?{customer_id:n.customerId}:{},payment_gateway_variant:f,adyen:{...N,store_payment_method:n.storePaymentMethod??(n.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:n.amount,...n.context?{context:n.context}:{},return_url:E}).then(p=>O(p,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:A=>d.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,{error:A})})).catch(p=>{d.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,{error:p}),o.resolve({resultCode:"Error"})});return}if(n.variant==="TOKENIZE"){const E=s.createReturnUrl({paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!n.customerId){d.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${c}`);return}L({customer_id:n.customerId,payment_acceptor_id:c,payment_gateway_variant:f,adyen:N,return_url:E}).then(p=>O(p,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:A=>d.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,{error:A})})).catch(p=>{d.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,{error:p}),o.resolve({resultCode:"Error"})})}}).catch(i=>{d.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",{},i)})}function Z(e,t){if(e.status!=="ACTION_REQUIRED")return;const a=e.action;if(a.payment_gateway_variant!="ADYEN")return;const o=a.adyen;return{paymentMethodType:(o==null?void 0:o.payment_method_type)??t,method:a.method,url:a.url,data:a.data,type:o==null?void 0:o.action_type,paymentData:o==null?void 0:o.payment_data,sdkData:o==null?void 0:o.sdk_data}}function K(...e){const[t]=e,a=t.data.details,o=t.data.paymentData;if(n.paymentMethodOptionResponseEntry.payment_acceptor.id){T({detailsResult:a?G(a):void 0,paymentDataResult:o,paymentAcceptorId:n.paymentMethodOptionResponseEntry.payment_acceptor.id});return}const i={code:"UNKNOWN_ERROR",message:"Payment failed",error:e};m("payment-failed",i),h.value=i}function G(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}function H(...e){const[t]=e,a={code:"UNKNOWN_ERROR",message:"Payment failed",error:t};m("payment-failed",a),h.value=a}function q(...e){const[,t]=e;t==null||t.unmount(),m("payment-success")}function V(...e){const[t,a]=e;if(t.name==="CANCEL")return;const o={code:"UNKNOWN_ERROR",message:"Something went wrong",error:t};d.error("INTEGRATION_ERROR","Something went wrong",{error:t}),h.value=o,a==null||a.unmount()}function T({detailsResult:e,threeDSResult:t,redirectResult:a,paymentDataResult:o,paymentAcceptorId:i}){S({paymentAcceptorId:i,paymentGatewayVariant:f,adyen:{...e?{details:e}:{},...a?{redirect_result:a}:{},...t?{threeds_result:t}:{},...o?{payment_data:o}:{}}}).then(c=>{if(c.payment_status==="FAILURE"){m("payment-failed",{code:"UNKNOWN_ERROR",message:"Failed getting payment details",error:c});return}if(c.payment_status==="SUCCESS"){m("payment-success");return}}).catch(c=>{d.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",{error:c})})}function $(){const e=w.getQueryParam(s.REDIRECT_RESULT_QUERY_STRING),t=w.getQueryParam(s.PAYMENT_ACCEPTOR_ID_QUERY_STRING);if(e){if(!t){d.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",{context:{redirectResult:e}});return}T({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}})}}return r.onMounted(()=>{b(),$()}),r.onBeforeUnmount(()=>{R()}),r.watch(()=>n.paymentMethodOptionResponseEntry,(e,t)=>{Q.isEqual(e,t)||b()},{deep:!0}),(e,t)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[I.value?(r.openBlock(),r.createBlock(B._sfc_main,{key:0,variant:l.variant,redirecting:l.redirectsOnSuccess},null,8,["variant","redirecting"])):h.value?(r.openBlock(),r.createBlock(B._sfc_main$1,{key:1,error:h.value},null,8,["error"])):r.createCommentVNode("",!0),k.value?(r.openBlock(),r.createElementBlock("div",{key:2,ref_key:"dropInContainerRef",ref:y},null,512)):r.createCommentVNode("",!0)],64))}});exports.default=ne;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),K=require("./useService-H7BjLg8P.js"),O=require("./adyen-Druit6gz.js"),N=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js"),B=require("./payments-jAgXhdp_.js"),W=require("./paymentMethods-CRDIw9lz.js"),S=require("./url-BNKStNY9.js"),j=require("./customElements-Vox1PB6G.js"),A="https://js.stripe.com/dahlia/stripe.js",z=`<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<style>
|
|
7
|
-
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
8
|
-
body { overflow: hidden; }
|
|
9
|
-
</style>
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div id="stripe-root"></div>
|
|
13
|
-
<script src="${A}"><\/script>
|
|
14
|
-
<script>
|
|
15
|
-
(function () {
|
|
16
|
-
let stripe, elements, countryCode, email, name, parentOrigin;
|
|
17
|
-
|
|
18
|
-
window.addEventListener('message', function (event) {
|
|
19
|
-
if (!event.data || typeof event.data !== 'object') return;
|
|
20
|
-
if (event.source !== window.parent) return;
|
|
21
|
-
|
|
22
|
-
if (event.data.type === 'stripe:init') {
|
|
23
|
-
parentOrigin = event.origin;
|
|
24
|
-
countryCode = event.data.countryCode;
|
|
25
|
-
email = event.data.email;
|
|
26
|
-
name = event.data.name;
|
|
27
|
-
stripe = Stripe(event.data.publicKey);
|
|
28
|
-
elements = stripe.elements(event.data.options);
|
|
29
|
-
const paymentElement = elements.create('payment', { layout: { type: 'accordion', defaultCollapsed: false }, wallets: event.data.options.wallets, fields: event.data.options.fields });
|
|
30
|
-
|
|
31
|
-
paymentElement.on('ready', function () {
|
|
32
|
-
parent.postMessage({ type: 'stripe:ready' }, parentOrigin);
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
paymentElement.on('change', function (e) {
|
|
36
|
-
parent.postMessage({ type: 'stripe:change', paymentMethodType: e.value.type }, parentOrigin);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
paymentElement.on('loaderror', function (e) {
|
|
40
|
-
parent.postMessage({
|
|
41
|
-
type: 'stripe:loaderror',
|
|
42
|
-
error: { message: e.error.message, type: e.error.type }
|
|
43
|
-
}, parentOrigin);
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
paymentElement.mount('#stripe-root');
|
|
47
|
-
|
|
48
|
-
new ResizeObserver(function () {
|
|
49
|
-
parent.postMessage({
|
|
50
|
-
type: 'stripe:resize',
|
|
51
|
-
height: document.documentElement.scrollHeight
|
|
52
|
-
}, parentOrigin);
|
|
53
|
-
}).observe(document.documentElement);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (event.data.type === 'stripe:submit') {
|
|
57
|
-
if (!elements || !parentOrigin || event.origin !== parentOrigin) return;
|
|
58
|
-
const submitEmail = 'email' in event.data ? event.data.email : email;
|
|
59
|
-
const submitName = 'name' in event.data ? event.data.name : name;
|
|
60
|
-
elements.submit().then(function (submitResult) {
|
|
61
|
-
if (submitResult.error) {
|
|
62
|
-
parent.postMessage({
|
|
63
|
-
type: 'stripe:submit:error',
|
|
64
|
-
error: {
|
|
65
|
-
message: submitResult.error.message,
|
|
66
|
-
type: submitResult.error.type,
|
|
67
|
-
code: submitResult.error.code
|
|
68
|
-
}
|
|
69
|
-
}, parentOrigin);
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const billingDetails = {};
|
|
73
|
-
if (countryCode) billingDetails.address = { country: countryCode };
|
|
74
|
-
if (submitEmail) billingDetails.email = submitEmail;
|
|
75
|
-
if (submitName) billingDetails.name = submitName;
|
|
76
|
-
const tokenParams = Object.keys(billingDetails).length
|
|
77
|
-
? { payment_method_data: { billing_details: billingDetails } }
|
|
78
|
-
: {};
|
|
79
|
-
stripe.createConfirmationToken({ elements: elements, params: tokenParams }).then(function (tokenResult) {
|
|
80
|
-
if (tokenResult.error) {
|
|
81
|
-
parent.postMessage({
|
|
82
|
-
type: 'stripe:submit:error',
|
|
83
|
-
error: {
|
|
84
|
-
message: tokenResult.error.message,
|
|
85
|
-
type: tokenResult.error.type,
|
|
86
|
-
code: tokenResult.error.code
|
|
87
|
-
}
|
|
88
|
-
}, parentOrigin);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
parent.postMessage({
|
|
92
|
-
type: 'stripe:submit:success',
|
|
93
|
-
confirmationTokenId: tokenResult.confirmationToken.id
|
|
94
|
-
}, parentOrigin);
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
})();
|
|
100
|
-
<\/script>
|
|
101
|
-
</body>
|
|
102
|
-
</html>`,q=["src","height"],Q=n.defineComponent({__name:"PaymentIntegrationFormStripeFrame",props:{publicKey:{type:String},options:{type:Object},countryCode:{type:String},email:{type:String},name:{type:String}},emits:["ready","change","loaderror","submit-success","submit-error"],setup(m,{expose:g,emit:E}){const t=m,c=E;g({triggerSubmit:I});const p=n.ref(),d=n.ref(0),_=n.ref();function h(){var o,a;(a=(o=p.value)==null?void 0:o.contentWindow)==null||a.postMessage({type:"stripe:init",publicKey:t.publicKey,options:t.options,countryCode:t.countryCode,email:t.email,name:t.name},"*")}function I(){var o,a;(a=(o=p.value)==null?void 0:o.contentWindow)==null||a.postMessage({type:"stripe:submit",email:t.email,name:t.name},"*")}function y(o){return typeof o=="object"&&o!==null}function u(o){if(!p.value||o.source!==p.value.contentWindow||!y(o.data))return;const a=o.data,R=a.type;if(!(typeof R!="string"||!R.startsWith("stripe:")))switch(R){case"stripe:ready":c("ready");break;case"stripe:change":c("change",typeof a.paymentMethodType=="string"?a.paymentMethodType:"card");break;case"stripe:loaderror":{const l=y(a.error)?a.error:{};c("loaderror",{message:typeof l.message=="string"?l.message:void 0,type:typeof l.type=="string"?l.type:void 0});break}case"stripe:resize":typeof a.height=="number"&&(d.value=a.height);break;case"stripe:submit:success":typeof a.confirmationTokenId=="string"&&c("submit-success",a.confirmationTokenId);break;case"stripe:submit:error":{const l=y(a.error)?a.error:{};c("submit-error",{message:typeof l.message=="string"?l.message:void 0,type:typeof l.type=="string"?l.type:void 0,code:typeof l.code=="string"?l.code:void 0});break}}}return n.onMounted(()=>{const o=new Blob([z],{type:"text/html"});_.value=URL.createObjectURL(o),window.addEventListener("message",u)}),n.onBeforeUnmount(()=>{window.removeEventListener("message",u),_.value&&URL.revokeObjectURL(_.value)}),n.watch(()=>t.options,(o,a)=>{K.isEqual(o,a)||h()},{deep:!0}),(o,a)=>(n.openBlock(),n.createElementBlock("iframe",{ref_key:"iframeRef",ref:p,src:_.value,height:d.value||void 0,frameborder:"0",style:{width:"100%",display:"block",border:"none"},title:"Payment form",onLoad:h},null,40,q))}}),P={link:"never"},k={variables:{borderRadius:"4px",colorBackground:"rgba(243, 244, 246, 0.5)"},rules:{".TermsText":{fontSize:"14px"},".Input":{backgroundColor:"rgba(243, 244, 246, 0.5)",fontSize:"14px",borderColor:"rgb(229, 231, 235)"}}};function $(m,g){return{billingDetails:{address:{country:"never"},...m?{email:"never"}:{},...g?{name:"never"}:{}}}}function V({amount:m,email:g,name:E,variant:t,storePaymentMethod:c=!1}){const p=m.currency.toLowerCase(),d=$(g,E);return t==="TOKENIZE"?{mode:"setup",currency:p,setup_future_usage:"off_session",wallets:P,fields:d,appearance:k}:{mode:"payment",currency:p,amount:O.toMinorUnitAmount(m).value,...c?{setup_future_usage:"off_session"}:{},wallets:P,fields:d,appearance:k}}const v="STRIPE",Y=n.defineComponent({__name:"PaymentIntegrationFormStripe",props:{email:{type:String},name:{type:String},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},context:{type:Object},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean},redirectsOnSuccess:{type:Boolean}},emits:["select","payment-failed","payment-success","ready"],setup(m,{expose:g,emit:E}){const t=m,c=E;g({submit:l});const p=n.ref(!1),d=n.ref(),_=n.ref(),h=n.computed(()=>t.storePaymentMethod??t.forceStorePaymentMethod??!1),I=n.computed(()=>V({amount:t.amount,email:t.email,name:t.name,variant:t.variant,storePaymentMethod:h.value})),y=n.ref(null),u=j.useLogger(),{authorizePayment:o}=B.createPaymentsService(),{tokenizePaymentMethod:a}=W.createPaymentMethodsService(),R=n.computed(()=>{var e,r;return(r=(e=t.paymentMethodOptionResponseEntry.integration.payment_gateway)==null?void 0:e.stripe)==null?void 0:r.public_key});function l(){C().catch(e=>{u.error("STRIPE_SUBMIT_FAILED","Unexpected error during Stripe submission",{},e)})}async function C(){var r;await t.validateOnSubmit()&&((r=_.value)==null||r.triggerSubmit())}function M(e){return new Promise((r,s)=>{if(window.Stripe){r(window.Stripe(e));return}const i=document.createElement("script");i.src=A,i.onload=()=>{if(!window.Stripe){s(new Error("Stripe not available after script load"));return}r(window.Stripe(e))},i.onerror=()=>s(new Error("Failed to load Stripe.js")),document.head.appendChild(i)})}async function U(){if(y.value)return y.value;const e=R.value;if(!e)throw new Error("Missing Stripe public key");const r=await M(e);return y.value=r,r}async function D(e){const r=t.paymentMethodOptionResponseEntry.payment_acceptor.id,s=O.createReturnUrl({paymentAcceptorId:r,redirectUrl:window.location.href});if(t.variant==="AUTHORIZE"){try{const i=await o({payment_acceptor_id:r,...t.customerId?{customer_id:t.customerId}:{},payment_gateway_variant:v,stripe:{confirmation_token_id:e},amount:t.amount,...t.context&&t.context.type!=="CHARGE_ON_DEMAND"?{context:t.context}:{},return_url:s});await T(i)}catch(i){u.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${r}`,{error:i}),f({code:"UNKNOWN_ERROR",message:"Payment authorization failed",error:i})}return}if(t.variant==="TOKENIZE"){if(!t.customerId){u.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${r}`);return}try{const i=await a({customer_id:t.customerId,payment_acceptor_id:r,payment_gateway_variant:v,stripe:{confirmation_token_id:e},return_url:s});await T(i)}catch(i){u.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${r}`,{error:i}),f({code:"UNKNOWN_ERROR",message:"Tokenization failed",error:i})}}}async function T(e){var r;if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===v){const s=e.action.client_secret||((r=e.action.data)==null?void 0:r.client_secret);if(!s){u.error("STRIPE_ACTION_FAILED","Missing client_secret in Stripe ACTION_REQUIRED response"),f({code:"UNKNOWN_ERROR",message:"Payment action failed",error:e});return}let i;try{i=await U()}catch(w){u.error("STRIPE_ACTION_FAILED","Failed to load Stripe.js",{error:w}),f({code:"UNKNOWN_ERROR",message:"Payment action failed",error:w});return}const{error:b}=await i.handleNextAction({clientSecret:s});if(b){u.error("STRIPE_ACTION_FAILED","Stripe handleNextAction failed",{error:b}),f({code:"UNKNOWN_ERROR",message:"Payment action failed",error:b});return}p.value=!0,c("payment-success");return}if(e.status==="SUCCESS"){p.value=!0,c("payment-success");return}u.error("STRIPE_ACTION_FAILED","Unexpected payment result status",{error:e}),f({code:"UNKNOWN_ERROR",message:"Payment failed",error:e})}async function L(){const e=t.paymentMethodOptionResponseEntry.payment_acceptor.id;if(S.getQueryParam(O.PAYMENT_ACCEPTOR_ID_QUERY_STRING)!==e)return;const s=S.getQueryParam("redirect_status"),i=S.getQueryParam("payment_intent_client_secret"),b=S.getQueryParam("setup_intent_client_secret");if(!(!s||!i&&!b)){if(s==="succeeded"){p.value=!0,c("payment-success");return}u.error("STRIPE_REDIRECT_RETURN_FAILED","Stripe redirect returned non-succeeded status",{redirectStatus:s}),f({code:"UNKNOWN_ERROR",message:"Payment failed",error:new globalThis.Error(`Stripe redirect returned status: ${s}`)})}}function F(){c("select",{paymentMethodType:"card",paymentGatewayVariant:v}),c("ready")}function x(e){f({code:"UNKNOWN_ERROR",message:e.message??"Failed to load payment form",error:e})}function f(e){d.value=e,c("payment-failed",e)}return n.onMounted(()=>{L().catch(e=>{u.error("STRIPE_REDIRECT_RETURN_FAILED","handleRedirectReturn threw unexpectedly",{error:e})})}),n.onBeforeUnmount(()=>{y.value=null}),(e,r)=>p.value?(n.openBlock(),n.createBlock(N._sfc_main,{key:0,variant:m.variant,redirecting:m.redirectsOnSuccess},null,8,["variant","redirecting"])):d.value?(n.openBlock(),n.createBlock(N._sfc_main$1,{key:1,error:d.value},null,8,["error"])):R.value?(n.openBlock(),n.createBlock(Q,{key:2,ref_key:"frameRef",ref:_,"public-key":R.value,options:I.value,"country-code":m.countryCode,email:m.email,name:m.name,onReady:F,onChange:r[0]||(r[0]=s=>c("select",{paymentMethodType:s,paymentGatewayVariant:v})),onLoaderror:x,onSubmitSuccess:D,onSubmitError:r[1]||(r[1]=s=>n.unref(u).error("STRIPE_CONFIRMATION_TOKEN_FAILED","Stripe submission failed",{error:s}))},null,8,["public-key","options","country-code","email","name"])):n.createCommentVNode("",!0)}});exports.default=Y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./Section.vue.es-Btff-cLY.js"),g=require("./customElements-Vox1PB6G.js"),w=require("./useTimePeriod.es-CmltiTE-.js"),x=require("./formatting.es-C72Nsrmh.js"),S=require("./Expand.vue.es-BtM0EZEr.js"),B=require("./Button.vue.es-M_jXZda4.js"),N=require("./IconButton.vue.es-BTAkuFsm.js"),P=require("./Input.vue.es-CTOrmrcB.js"),A=require("./Chip.vue.es-G8doKsZb.js"),y=require("./Checkout.entry.ce-C52gkrNZ.js"),z=require("./index-DwueOtPi.js"),V=require("./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js"),E=require("./pricing-BVAld27Y.js"),D=require("./pricingPlanSchedule-BM8vsKkV.js"),$=require("./subscription-ZA62t4E9.js"),q=e.defineComponent({__name:"DeltaChip",props:{oldValue:{},newValue:{},intent:{default:"neutral"},content:{},removable:{type:Boolean},size:{},variant:{},textClass:{},tag:{},hasChipBefore:{type:Boolean},hasChipAfter:{type:Boolean}},setup(t){const i=e.createPropsRestProxy(t,["oldValue","newValue","intent"]),n=e.computed(()=>{const o=t.newValue-t.oldValue;return`${o>=0?"+":""}${o}`});return(o,r)=>(e.openBlock(),e.createBlock(e.unref(A._sfc_main),e.mergeProps(i,{intent:t.intent,class:"pointer-events-none select-none"}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value),1)]),_:1},16,["intent"]))}}),U={class:"flex items-center gap-1.5"},T=e.defineComponent({__name:"StepInput",props:e.mergeModels({step:{default:1},min:{default:0},max:{},initialValue:{default:1},unitName:{},showDelta:{type:Boolean,default:!1},size:{default:"md"},name:{},required:{type:Boolean},label:{},error:{},disabled:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const i=t,n=e.useModel(t,"modelValue"),o=e.ref(null),r=e.computed(()=>{if(i.unitName)return i.unitName[n.value===1?"singular":"plural"]}),l=()=>{i.max&&n.value+i.step>i.max||(n.value+=i.step)},c=()=>{n.value-i.step<i.min||(n.value-=i.step)};function a(m){var f;const b=(f=o.value)==null?void 0:f.el;if(!b)return;const v=parseInt(`${m}`);n.value=v,b.innerText=`${v}`,b.focus();const h=document.createRange();h.selectNodeContents(b),h.collapse(!1);const k=window.getSelection();k==null||k.removeAllRanges(),k==null||k.addRange(h)}const p=m=>{const f=m.target;f instanceof HTMLElement&&a(f.innerText)},s=e.computed(()=>i.disabled?!1:i.max?n.value+i.step<i.max:!0),d=e.computed(()=>i.disabled?!1:n.value-i.step>=i.min);function u(){var m;const f=(m=o.value)==null?void 0:m.el;if(!f)return;f.focus();const b=document.createRange();b.selectNodeContents(f);const v=window.getSelection();v==null||v.removeAllRanges(),v==null||v.addRange(b)}return e.onMounted(()=>{var m;const f=(m=o.value)==null?void 0:m.el;f&&(f.innerText=`${n.value}`)}),e.watch(()=>n.value,m=>{a(m)}),(m,f)=>(e.openBlock(),e.createBlock(P._sfc_main,{modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=b=>n.value=b),type:"number",class:"text-transparent [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none","prefix-class":{"!px-0 w-5":t.size==="sm","!px-0 w-6":t.size==="md","!px-0 w-7":t.size==="lg"},"suffix-class":{"!px-0 w-5":t.size==="sm","!px-0 w-6":t.size==="md","!px-0 w-7":t.size==="lg"},size:t.size,label:t.label,disabled:t.disabled,name:t.name,required:t.required},e.createSlots({prefix:e.withCtx(()=>[e.createElementVNode("div",{class:"absolute inset-0 flex items-center justify-center",onMousedown:u},[e.createElementVNode("div",U,[e.createVNode(g._sfc_main,{ref_key:"contentEditableRef",ref:o,tag:"span",variant:t.size==="sm"?"body":"body-lg",contenteditable:!t.disabled,class:e.normalizeClass(["outline-none",{"pointer-events-none select-none":t.disabled}]),weight:"semibold",onInput:p},null,8,["variant","contenteditable","class"]),r.value?(e.openBlock(),e.createBlock(g._sfc_main,{key:0,tag:"span",color:"subtle",class:"pointer-events-none select-none"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(" ")+e.toDisplayString(r.value),1)]),_:1})):e.createCommentVNode("",!0),t.showDelta?(e.openBlock(),e.createBlock(q,{key:1,"old-value":i.initialValue,"new-value":n.value,class:"pointer-events-none ml-0.5 select-none"},null,8,["old-value","new-value"])):e.createCommentVNode("",!0)])],32),e.createVNode(N._sfc_main$1,{disabled:!d.value,type:"button",intent:"subtle",size:"sm",class:e.normalizeClass(["!h-full select-none rounded-br-none rounded-tr-none",{"!w-7":t.size==="lg","!w-5":t.size==="sm","!w-6":t.size==="md"}]),icon:"remove",onMousedown:c},null,8,["disabled","class"])]),suffix:e.withCtx(()=>[e.createVNode(N._sfc_main$1,{disabled:!s.value,type:"button",intent:"subtle",size:"sm",class:e.normalizeClass(["!h-full select-none rounded-bl-none rounded-tl-none",{"!w-7":t.size==="lg","!w-5":t.size==="sm","!w-6":t.size==="md"}]),icon:"add",onMousedown:l},null,8,["disabled","class"])]),_:2},[m.$slots.helper?{name:"helper",fn:e.withCtx(()=>[e.renderSlot(m.$slots,"helper")]),key:"0"}:void 0]),1032,["modelValue","prefix-class","suffix-class","size","label","disabled","name","required"]))}}),I={class:"grid grid-cols-2 gap-2"},F=e.defineComponent({__name:"TieredTableRow",props:{band:{type:Object},previousBand:{type:Object},isFirst:{type:Boolean},period:{type:Object}},setup(t){const i=t,{$t:n}=g.useIntl(),{formatTimePeriod:o}=w.useTimePeriod(),r=e.computed(()=>{var c;if(i.isFirst)return"0";if((c=i.previousBand)!=null&&c.tier_top_bound&&"number"in i.previousBand.tier_top_bound)return i.previousBand.tier_top_bound.number}),l=e.computed(()=>{if(!(!i.band.tier_top_bound||!("number"in i.band.tier_top_bound)))return i.band.tier_top_bound.number});return(c,a)=>(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(g._sfc_main),{variant:"body-xs",color:"subtle",tag:"div"},{default:e.withCtx(()=>[l.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:r.value??"0",upper_bound:l.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:r.value??"0"})),1)],64))]),_:1}),e.createVNode(e.unref(g._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(x.formatAmount)(t.band.amount),period:t.period?e.unref(o)(t.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})]))}}),O={class:"grid grid-cols-1 gap-0.5 pt-1.5"},L=e.defineComponent({__name:"TieredTable",props:{bands:{type:Array},period:{type:Object}},setup(t){return(i,n)=>(e.openBlock(),e.createElementBlock("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.bands,(o,r)=>(e.openBlock(),e.createBlock(F,{key:r,band:o,"is-first":r===0,"previous-band":r>0?t.bands[r-1]:void 0,period:t.period},null,8,["band","is-first","previous-band","period"]))),128))]))}});function M({pricings:t,pricingItemConfigId:i}){return e.computed(()=>{var r,l,c,a,p,s,d,u;const{config:n,productItem:o}=y.getPricingItemByPricingConfigId({pricings:t,pricingItemConfigId:i});return{billing:{period:(l=(r=n==null?void 0:n.billing_period_configs)==null?void 0:r[0])==null?void 0:l.billing_period,billedInAdvance:n==null?void 0:n.billing_in_advance},product:{name:o==null?void 0:o.name,description:o==null?void 0:o.description},pricing:{...((c=n==null?void 0:n.details)==null?void 0:c.pricing_type)==="FLAT"&&{amount:(s=(p=(a=n.details)==null?void 0:a.bands)==null?void 0:p[0])==null?void 0:s.amount},...((d=n==null?void 0:n.details)==null?void 0:d.pricing_type)==="TIERED"&&{tiered:{bands:(u=n.details)==null?void 0:u.bands}}}}})}const R={class:"flex flex-row-reverse gap-4 md:flex-row"},j={class:"w-24 shrink-0 justify-start md:w-32"},Y=["tabindex"],K={key:0},X={key:0},H=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 i=t,n=e.useModel(t,"modelValue"),{$t:o}=g.useIntl(),{formatTimePeriod:r}=w.useTimePeriod(),l=e.ref(!1),c=e.computed({get:()=>+(n.value.number||y.FALLBACK_SEATS_NUMBER),set(s){n.value={...n.value,number:s!==void 0?s.toString():void 0}}}),a=M({pricings:i.pricings,pricingItemConfigId:n.value.pricing_item_config_id}),p=e.computed(()=>{var s,d;return!!((d=(s=a.value.pricing)==null?void 0:s.tiered)!=null&&d.bands)});return(s,d)=>{var u,m,f;return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",R,[e.createElementVNode("div",j,[e.createVNode(e.unref(T),{modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=b=>c.value=b),size:"sm",min:(u=t.defaultValue)!=null&&u.number?+t.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",{class:e.normalizeClass(["flex grow flex-col",{"hover:cursor-pointer":p.value}]),tabindex:p.value?0:void 0,onClick:d[1]||(d[1]=b=>p.value?l.value=!l.value:void 0)},[e.createVNode(e.unref(g._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).product.name||e.unref(o)({defaultMessage:"Seats",id:"seats.label",description:"The label for the seats input field"})),1)]),_:1}),e.unref(a).pricing.amount?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({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(x.formatAmount)(e.unref(a).pricing.amount),period:e.unref(a).billing.period?e.unref(r)(e.unref(a).billing.period,{short:!0,hideValueForExactPeriods:!0}):""})),1)]),_:1})):e.unref(a).pricing.tiered?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:1,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Tiered pricing",id:"seats.tiered_pricing_label",description:"The label indicating tiered pricing structure for seats"}))+" ",1),e.createVNode(e.unref(B._sfc_main$1),{icon:"keyboard_arrow_down",size:"xs",class:e.normalizeClass(["absolute text-gray-400 transition ease-in-out",{"rotate-0":!l.value,"rotate-180":l.value}])},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)],10,Y)]),(f=(m=e.unref(a).pricing)==null?void 0:m.tiered)!=null&&f.bands?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(e.unref(S._sfc_main),{"is-open":l.value},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(L,{bands:e.unref(a).pricing.tiered.bands,period:e.unref(a).billing.period},null,8,["bands","period"])])):e.createCommentVNode("",!0)]),_:1},8,["is-open"])])):e.createCommentVNode("",!0)])}}}),J={key:0,class:"grid grid-cols-1 gap-1"},Q=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 i=e.useModel(t,"modelValue"),n=o=>e.computed({get:()=>i.value[o],set:r=>{const l=i.value.slice();l[o]=r,i.value=l}});return(o,r)=>t.modelValue.length>0?(e.openBlock(),e.createElementBlock("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(l,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:c},{default:e.withCtx(()=>{var a;return[l.pricing_item_config_id?(e.openBlock(),e.createBlock(H,{key:l.pricing_item_config_id,modelValue:n(c).value,"onUpdate:modelValue":p=>n(c).value=p,"default-value":(a=t.initialSeatsValues)==null?void 0:a[c],pricings:t.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])):e.createCommentVNode("",!0)}}),W={class:"flex flex-row-reverse gap-4 md:flex-row"},Z={class:"w-24 shrink-0 justify-start md:w-32"},G={class:"flex grow flex-col"},ee=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 i=t,n=e.useModel(t,"modelValue"),{$t:o}=g.useIntl(),r=e.computed({get:()=>+(n.value.number||y.FALLBACK_UNITS_NUMBER),set(c){n.value={...n.value,number:c!==void 0?c.toString():void 0}}}),l=M({pricings:i.pricings,pricingItemConfigId:n.value.pricing_item_config_id});return(c,a)=>{var p;return e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("div",Z,[e.createVNode(e.unref(T),{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),size:"sm",min:(p=t.defaultValue)!=null&&p.number?+t.defaultValue.number:void 0},null,8,["modelValue","min"])]),e.createElementVNode("div",G,[e.createVNode(e.unref(g._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l).product.name||e.unref(o)({defaultMessage:"Units",id:"units.label",description:"The label for the one-off flat item units input field"})),1)]),_:1}),e.unref(l).pricing.amount?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"{amount} per unit",id:"units.price_per_unit",description:"The price per unit label for one-off flat pricing"},{amount:e.unref(x.formatAmount)(e.unref(l).pricing.amount)})),1)]),_:1})):e.createCommentVNode("",!0)])])}}}),te={key:0,class:"grid grid-cols-1 gap-1"},ne=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 i=e.useModel(t,"modelValue"),n=o=>e.computed({get:()=>i.value[o],set:r=>{const l=i.value.slice();l[o]=r,i.value=l}});return(o,r)=>t.modelValue.length>0?(e.openBlock(),e.createElementBlock("div",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.modelValue,(l,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:c},{default:e.withCtx(()=>{var a;return[l.pricing_item_config_id?(e.openBlock(),e.createBlock(ee,{key:l.pricing_item_config_id,modelValue:n(c).value,"onUpdate:modelValue":p=>n(c).value=p,"default-value":(a=t.initialUnitsValues)==null?void 0:a[c],pricings:t.pricings},null,8,["modelValue","onUpdate:modelValue","default-value","pricings"])):e.createCommentVNode("",!0)]}),_:2},1024))),128))])):e.createCommentVNode("",!0)}}),ie={class:"p-1"},oe={class:"grid grid-cols-1 gap-1 pt-1"},le=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 i=t,n=e.useModel(t,"modelValue"),{$t:o}=g.useIntl(),{describePricing:r}=V.usePricingDescription({currency:e.toRef(i,"currency"),billingPeriod:e.toRef(i,"billingPeriod")}),l=i.pricings.map(s=>s.id),c=e.computed(()=>i.constraint==="AT_MOST_ONE"?o({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"}):i.constraint==="EXACTLY_ONE"?o({defaultMessage:"Select one product",id:"addon_single_editor.description.exactly_one",description:"The description of the addon single editor for exactly one product"}):i.constraint==="AT_LEAST_ONE"?o({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"}):""),a=s=>i.modelValue.includes(s),p=s=>{if(a(s))n.value=n.value.filter(d=>d!==s);else{const d=n.value.filter(u=>!l.includes(u));n.value=[...d,s]}};return(s,d)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{"no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",ie,[e.createVNode(V._sfc_main$1,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value),1)]),_:1}),e.createElementVNode("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricings,u=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:u.id,"content-background":"none",class:e.normalizeClass({"!bg-white":a(u.id)})},{default:e.withCtx(()=>[e.createVNode(y._sfc_main,{name:e.unref(E.getNameFromPricing)(u)??"",description:e.unref(r)(u)},{default:e.withCtx(()=>[e.createVNode(e.unref(z._sfc_main),{"model-value":a(u.id),"onUpdate:modelValue":m=>p(u.id)},null,8,["model-value","onUpdate:modelValue"])]),_:2},1032,["name","description"])]),_:2},1032,["class"]))),128))])])]),_:1}))}}),ae={class:"grid grid-cols-1 gap-1"},C=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 i=t,n=e.useModel(t,"modelValue"),{$t:o}=g.useIntl(),{describePricing:r}=V.usePricingDescription({currency:e.toRef(i,"currency"),billingPeriod:e.toRef(i,"billingPeriod")}),l=a=>n.value.includes(a),c=a=>{l(a)?n.value=n.value.filter(p=>p!==a):n.value=[...n.value,a]};return(a,p)=>(e.openBlock(),e.createBlock(e.unref(_._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(V._sfc_main$1,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.groupName),1)]),description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({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",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricings,s=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:s.id,"content-background":t.groupName||l(s.id)?"none":"gray",class:e.normalizeClass({"!bg-white":l(s.id)})},{default:e.withCtx(()=>[e.createVNode(y._sfc_main,{name:e.unref(E.getNameFromPricing)(s)??"",description:e.unref(r)(s)},{default:e.withCtx(()=>[l(s.id)?(e.openBlock(),e.createBlock(e.unref(B._sfc_main),{key:0,intent:"secondary",square:"",size:"sm","icon-prefix":"remove_shopping_cart",onClick:d=>c(s.id)},null,8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(B._sfc_main),{key:1,intent:"primary","icon-prefix":"add",size:"sm",onClick:d=>c(s.id)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({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 re(t){var n;return(((n=t.pricing_categories)==null?void 0:n.flatMap(o=>o.pricings??[]))??[]).filter(o=>o!==null)}const se={class:"sv-plan-customization__body grid grid-cols-1 gap-1"},ue=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 i=t,n=e.useModel(t,"seatsValues"),o=e.useModel(t,"unitsValues"),r=e.useModel(t,"enabledPricingIds"),{$t:l}=g.useIntl(),c=e.computed(()=>{var d;const s=(d=D.getFirstPricingPlanScheduleOfType({pricingPlanScheduleInfos:i.subscription.pricing_plan_schedule_infos,type:"DEFAULT"}))==null?void 0:d.pricing_plan_version;return s?re(s):[]}),a=e.computed(()=>c.value.filter(s=>s.product_type==="ADDON")),p=e.computed(()=>$.getPricingGroupsFromExtendedPricingPlanSubscription(i.subscription));return(s,d)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{class:"sv-plan-customization",title:e.unref(l)({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",se,[e.createVNode(Q,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=u=>n.value=u),class:"sv-plan-customization__seats","initial-seats-values":t.initialSeatsValues,pricings:c.value},null,8,["modelValue","initial-seats-values","pricings"]),e.createVNode(ne,{modelValue:o.value,"onUpdate:modelValue":d[1]||(d[1]=u=>o.value=u),class:"sv-plan-customization__units","initial-units-values":t.initialUnitsValues,pricings:c.value},null,8,["modelValue","initial-units-values","pricings"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u.id},[u.product_type==="DEFAULT"&&u.selection_constraint==="EXACTLY_ONE"?(e.openBlock(),e.createBlock(V._sfc_main,{key:0,modelValue:r.value,"onUpdate:modelValue":d[2]||(d[2]=m=>r.value=m),class:"sv-plan-customization__group","group-name":u.name,pricings:u.pricings,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"])):u.product_type==="ADDON"&&u.selection_constraint==="AT_MOST_ONE"?(e.openBlock(),e.createBlock(le,{key:1,modelValue:r.value,"onUpdate:modelValue":d[3]||(d[3]=m=>r.value=m),class:"sv-plan-customization__group","group-name":u.name,pricings:u.pricings,constraint:u.selection_constraint,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","group-name","pricings","constraint","billing-period","currency"])):u.product_type==="ADDON"&&u.selection_constraint==="ANY"?(e.openBlock(),e.createBlock(C,{key:2,modelValue:r.value,"onUpdate:modelValue":d[4]||(d[4]=m=>r.value=m),class:"sv-plan-customization__group",pricings:u.pricings,"group-name":u.name,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","pricings","group-name","billing-period","currency"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(C,{modelValue:r.value,"onUpdate:modelValue":d[5]||(d[5]=u=>r.value=u),class:"sv-plan-customization__group",pricings:a.value,"billing-period":t.billingPeriod,currency:t.currency},null,8,["modelValue","pricings","billing-period","currency"])])]),_:1},8,["title"]))}});exports.default=ue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),v=require("./index.es-BclokHQX.js"),d=require("./cn.es-CvmLj7KH.js"),u=require("./customElements-Vox1PB6G.js"),g=require("./IconButton.vue.es-BTAkuFsm.js"),k=require("./FormMessage.vue.es-dqATjC2N.js"),x=["disabled"],w=["aria-label"],V=["id","disabled","value","aria-checked","aria-describedby"],B=["tabindex","data-testid","for","aria-label","onKeydown"],h={class:"text-xs"},$={key:1,class:"mt-2 text-sm text-secondary"},C=e.defineComponent({__name:"RadioGroupExtended",props:{options:{},direction:{default:"row"},showRadio:{type:Boolean,default:!0},columns:{},disabled:{type:Boolean},label:{},modelValue:{type:[String,Boolean]},name:{},required:{type:Boolean},rootClass:{},error:{},variant:{}},emits:["update:modelValue"],setup(l,{emit:c}){const n=l,m=c,t=v.useVModel(n,"modelValue",m),f=e.computed(()=>n.columns?"grid":["flex",n.direction==="column"?"flex-col":"flex-row"]),b=e.computed(()=>n.columns?{gridTemplateColumns:`repeat(${n.columns}, minmax(0, 1fr))`}:void 0),o=d.uniqueId(n.name?`radio_${n.name}_`:"radio_"),y=(r,i)=>{n.disabled||(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),t.value=i)};return(r,i)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(l.rootClass),disabled:l.disabled},[l.label?(e.openBlock(),e.createBlock(e.unref(d._sfc_main),{key:0,tag:"legend",required:l.required},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:1},8,["required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"group","aria-label":l.label,class:e.normalizeClass([f.value,"gap-1 rounded"]),style:e.normalizeStyle(b.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,a=>(e.openBlock(),e.createElementBlock("div",{key:a.value.toString(),class:"flex min-w-0 flex-1 flex-col"},[e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_for:!0},r.$attrs,{id:`${e.unref(o)}${a.value}`,"onUpdate:modelValue":i[0]||(i[0]=s=>e.isRef(t)?t.value=s:null),disabled:l.disabled,value:a.value,type:"radio","aria-checked":e.unref(t)===a.value,"aria-describedby":a.warning?`${e.unref(o)}${a.value}-warning`:void 0,tabindex:"-1",class:"sr-only"}),null,16,V),[[e.vModelRadio,e.unref(t)]]),e.createElementVNode("label",{tabindex:l.disabled?void 0:0,"data-testid":`radio-group-item-${a.value}`,for:`${e.unref(o)}${a.value}`,"aria-label":a.label+(a.description?`: ${a.description}`:""),class:e.normalizeClass(["label hover:bg-primary-50/50 relative flex flex-1 gap-3 rounded border border-gray-100 bg-gray-50/50 px-4 py-3 outline-none focus:bg-primary-50 focus-visible:border-primary-600 focus-visible:bg-primary-50 focus-visible:ring-1 focus-visible:ring-primary-600",{"cursor-pointer":!l.disabled,"cursor-not-allowed":l.disabled,"border-transparent bg-white ring-1 ring-primary-600":e.unref(t)===a.value&&!l.disabled,"opacity-60":l.disabled}]),onKeydown:s=>y(s,a.value)},[l.showRadio?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["material-symbols-outlined mt-px inline-block h-4 w-4 min-w-4 rounded-full leading-4",{"border-4 border-primary-800":e.unref(t)===a.value,"border border-gray-300":e.unref(t)!==a.value}])},null,2)):r.$slots.prefix?e.renderSlot(r.$slots,"prefix",{option:a,optionValue:a.value},void 0,void 0,1):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex min-w-0 grow flex-col",{"opacity-50":l.disabled}])},[e.createVNode(e.unref(u._sfc_main),{tag:"span",weight:"semibold","no-spacing":"",variant:"body-sm",class:"align-center flex justify-between"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"label",{option:a,optionValue:a.value},()=>[e.createTextVNode(e.toDisplayString(a.label),1)])]),_:2},1024),e.renderSlot(r.$slots,"description",{option:a,optionValue:a.value},()=>[a.description?(e.openBlock(),e.createBlock(e.unref(u._sfc_main),{key:0,tag:"span",variant:"body-xs","no-spacing":"",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.description),1)]),_:2},1024)):e.createCommentVNode("",!0)])],2),e.renderSlot(r.$slots,"suffix",{option:a,optionValue:a.value})],42,B),a.warning?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,id:`${e.unref(o)}${a.value}-warning`,class:"mt-1",type:e.unref(t)===a.value?"danger":"neutral",role:"alert"},{default:e.withCtx(()=>[e.createElementVNode("span",h,e.toDisplayString(a.warning),1)]),_:2},1032,["id","type"])):e.createCommentVNode("",!0)]))),128))],14,w),l.error||r.$slots.helper?(e.openBlock(),e.createElementBlock("div",$,[l.error?(e.openBlock(),e.createBlock(e.unref(k._sfc_main),{key:0,message:l.error},null,8,["message"])):r.$slots.helper?e.renderSlot(r.$slots,"helper",{},void 0,void 0,1):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,x))}});exports._sfc_main=C;
|