@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.25
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/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs} +6 -6
- package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-C9Jkfuvp.mjs} +1 -1
- package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-CvxRdCes.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs} +4 -4
- package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-BbSN0uOk.mjs} +1 -1
- package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-CeUTAc2n.js} +1 -1
- package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BMzK8nQg.mjs} +24 -24
- package/dist/{Checkout.entry.ce-D8O4qJ24.js → Checkout.entry.ce-DgA0ckyl.js} +2 -2
- package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-BN83K3Tk.js} +1 -1
- package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-T22Q7AF9.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-0PRmCAzL.mjs} +4 -4
- package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-DXKR7WFg.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-C2j40TYP.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-yrLGc7oL.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs} +5 -5
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs} +14 -14
- package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-CV1XK_Vz.mjs} +1 -1
- package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-DsYRZzuE.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js} +1 -1
- package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-CiUJva6S.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-QfRoDhkn.js} +1 -1
- package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-ChvsCZQG.mjs} +2 -2
- package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-CytBZUkZ.js} +1 -1
- package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-DPruIJ6l.mjs} +3 -3
- package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-DtnpBObk.js} +1 -1
- package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-BkzQDkrz.js} +1 -1
- package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-DJQqJrsb.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-6qpbyymg.mjs} +7 -7
- package/dist/{InvoiceSummary.vue.es-BOnvORpf.js → InvoiceSummary.vue.es-v1TkOUhA.js} +1 -1
- package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-BuRlbyZw.mjs} +5 -5
- package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-JpE0eh_Q.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs} +4 -4
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs} +3 -3
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js} +1 -1
- package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DnmParhQ.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-uWuWjr8I.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-DL55i0HD.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-DTXm56QQ.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs} +3 -3
- package/dist/{PaymentIntegrationFormAdyen-BQXXwpUK.js → PaymentIntegrationFormAdyen-C9KoiqMh.js} +3 -3
- package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-Cqsy82To.mjs} +74 -68
- package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-DIU1rnwH.mjs} +4 -4
- package/dist/{PaymentIntegrationFormStripe-Bs4F7oK_.js → PaymentIntegrationFormStripe-DTLgGutU.js} +1 -1
- package/dist/{PaymentMethod.vue.es-CXV_ThBY.js → PaymentMethod.vue.es-ZWda5GqF.js} +1 -1
- package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-m1NasGqw.mjs} +3 -3
- package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-BEVdWCrH.js} +1 -1
- package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-BYzt1PVP.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js} +1 -1
- package/dist/{PlanCustomizationEditor-0kEXoOcM.js → PlanCustomizationEditor-CunwwXTw.js} +1 -1
- package/dist/{PlanCustomizationEditor-Dv69xPbX.mjs → PlanCustomizationEditor-NLVkEYFF.mjs} +9 -9
- package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-Ba3v0J_R.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-CHrcqSRq.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-CkhBp9kI.mjs} +2 -2
- package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-CSrVPlUK.js} +1 -1
- package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D5svcVS_.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js} +1 -1
- package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-CMVoB2bw.js} +1 -1
- package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-yDcsD1hd.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs} +11 -11
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs} +6 -6
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-CxdL8-B7.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-7IQdU3Tf.js → TooltipParagraph.vue.es-DS_69pl1.js} +1 -1
- package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-BCc8q5j0.js} +1 -1
- package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-BK7m7e7q.mjs} +2 -2
- package/dist/{cn.es-BLE3T5Rx.js → cn.es-71nFUose.js} +1 -1
- package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-ZXNzpauQ.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +9 -9
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
- 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 +3 -3
- 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-CSzbVZIH.js → customElements-hH6pju3X.js} +2 -2
- package/dist/{customElements-DT1YyL4O.mjs → customElements-q_i9y0Ph.mjs} +5 -5
- package/dist/{customer-Cq4fF__H.mjs → customer-BDoOIAFr.mjs} +1 -1
- package/dist/{customer-CJonIvSm.js → customer-C9q6ti8s.js} +1 -1
- package/dist/{de-DE-CyvjSD9b.mjs → de-DE-B_ik9VNt.mjs} +1 -0
- package/dist/{de-DE-DXsDvO5y.js → de-DE-npBTLtKL.js} +1 -1
- package/dist/{en-US-xQrWj8qI.mjs → en-US-DkCltadt.mjs} +1 -0
- package/dist/{en-US-DHdI11k9.js → en-US-kGduGoka.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-EamWI_jz.js → invoices-CHp75zZI.js} +1 -1
- package/dist/{invoices-CVZOfEOY.mjs → invoices-DIzkXntV.mjs} +1 -1
- package/dist/{it-IT-CcRIzP1A.js → it-IT-BayNIAy7.js} +1 -1
- package/dist/{it-IT-C09oObBM.mjs → it-IT-CHj2McbF.mjs} +1 -0
- package/dist/{nl-NL-5PrgQl8q.js → nl-NL-0rV4nFLw.js} +1 -1
- package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-Cdvd_XMN.mjs} +1 -0
- package/dist/{paymentMethods-Bwym8l9a.js → paymentMethods-CZGP6_4W.js} +1 -1
- package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-DEKp_4QM.mjs} +1 -1
- package/dist/{payments-BYZLQTJ-.mjs → payments-C0-Hq2a4.mjs} +1 -1
- package/dist/{payments-Dnjg9Se4.js → payments-DBvregE8.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 +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +11 -11
- 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 +18 -18
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +18 -18
- package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions--9MaTXMb.mjs} +1 -1
- package/dist/{subscriptions-BKER9RUc.js → subscriptions-BArXBCFr.js} +1 -1
- package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-BdciAX8T.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CKzeqXzY.js} +1 -1
- package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-D8ixhuuj.mjs} +1 -1
- package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DSYr0F58.js} +1 -1
- package/dist/{useCustomerFormLabels-C773h3J0.js → useCustomerFormLabels-CRumh405.js} +1 -1
- package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-htMZ0xqB.mjs} +5 -5
- package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-D29-TO3R.js} +1 -1
- package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-JK_kAUQQ.mjs} +1 -1
- package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-Bpbog3zW.mjs} +2 -2
- package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-DhrItfv7.js} +1 -1
- package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-BGwcJn4I.mjs} +7 -7
- package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-duu_b5GW.js} +1 -1
- package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-BDmmpcfb.mjs} +1 -1
- package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-U2WvBmXT.js} +1 -1
- package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-DwtT5Czz.js} +1 -1
- package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-adqRujTA.mjs} +4 -4
- package/dist/{usePaymentMethodOptions-DuXKS36F.js → usePaymentMethodOptions-CXdFKFqZ.js} +1 -1
- package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-DlZtTQNQ.mjs} +1 -1
- package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-BnmSo_rr.mjs} +1 -1
- package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-DZ1a0mnr.js} +1 -1
- package/dist/{usePayments-CIJocDhR.js → usePayments-DL4agK2i.js} +1 -1
- package/dist/{usePayments-D_dyuf6S.mjs → usePayments-s-Z1di8d.mjs} +6 -6
- package/dist/{usePortal-Br5lYuPT.mjs → usePortal-C4rR5Rhu.mjs} +1 -1
- package/dist/{usePortal-BU4ibdWq.js → usePortal-Hm7wvtgQ.js} +1 -1
- package/dist/{useSubscription-DRBUt9H5.js → useSubscription-DMAEJves.js} +1 -1
- package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DSsXVO0h.mjs} +1 -1
- package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-CW8ycmpT.mjs} +1 -1
- package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-anHB63am.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("vue"),p=require("./FormMessage.vue.es-dqATjC2N.js"),P=require("./ContextMenu.vue.es-kzZ3JJHG.js"),c=require("./customElements-CSzbVZIH.js"),g=require("./Chip.vue.es-CAoisngJ.js"),m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e",C={class:"shrink-0"},N={class:"flex items-center justify-center overflow-clip rounded"},M=["src","alt","width","height"],k={class:"grow"},x={key:0},A={key:0,class:"pt-3"},h=t.defineComponent({__name:"PaymentMethodBase",props:{imageSrc:{},imageAlt:{},variant:{default:"default"},disabled:{type:Boolean},options:{},error:{}},setup(e){const a=e,o=t.computed(()=>a.imageSrc||m);return(l,n)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["flex gap-3",{"opacity-50":e.disabled}])},[t.createElementVNode("div",C,[t.createElementVNode("div",N,[o.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.value,alt:e.imageAlt,width:e.variant==="condensed"?20:36,height:e.variant==="condensed"?20:36,class:t.normalizeClass({"h-9 w-9":e.variant==="default","h-5 w-5":e.variant==="condensed"})},null,10,M)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",k,[t.renderSlot(l.$slots,"default")]),e.options&&e.options.length>0?(t.openBlock(),t.createElementBlock("div",x,[t.createVNode(P._sfc_main$1,{width:"wide",square:"",items:e.options},null,8,["items"])])):t.createCommentVNode("",!0)],2),e.error?(t.openBlock(),t.createElementBlock("div",A,[t.createVNode(p._sfc_main,{message:e.error,variant:"error"},null,8,["message"])])):t.createCommentVNode("",!0)]))}}),v=t.defineComponent({__name:"PaymentMethodDefaultChip",props:{isDefault:{type:Boolean}},setup(e){const a=c.useIntl();return(o,l)=>e.isDefault?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Default",description:"The textual label for the default payment method chip",id:"payment_methods.default_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),f=t.defineComponent({__name:"PaymentMethodInactiveChip",props:{isInactive:{type:Boolean}},setup(e){const a=c.useIntl();return(o,l)=>e.isInactive?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Inactive",description:"The textual label for the inactive payment method chip",id:"payment_methods.inactive_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),B={KLARNA:{name:"Klarna",logo:()=>Promise.resolve().then(()=>require("./klarna.svg.es-Cs6XaHD7.js")).then(e=>e.default)},ZIP:{name:"Zip",logo:()=>Promise.resolve().then(()=>require("./zip.svg.es-C9S_F31W.js")).then(e=>e.default)}},y=e=>{const a=t.shallowRef();return t.watch(()=>t.toValue(e),(o,l,n)=>{if(a.value=void 0,!o)return;let s=!1;n(()=>{s=!0}),o().then(i=>{s||(a.value=i)}).catch(()=>{})},{immediate:!0}),a},V={class:"flex h-full grow flex-col justify-center"},b=t.defineComponent({__name:"PaymentMethodBuyNowPayLater",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.buy_now_pay_later)!=null&&n.variant?B[a.paymentMethod.buy_now_pay_later.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(d=(i=o.value)==null?void 0:i.name)==null?void 0:d.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",V,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),E={ACCEL:()=>Promise.resolve().then(()=>require("./accel.svg.es-DFJXdioD.js")).then(e=>e.default),AMERICAN_EXPRESS:()=>Promise.resolve().then(()=>require("./amex.svg.es-DKhW4Txt.js")).then(e=>e.default),BANCONTACT:()=>Promise.resolve().then(()=>require("./bancontact.svg.es-BQh7nAup.js")).then(e=>e.default),CARNET:()=>Promise.resolve().then(()=>require("./carnet.svg.es-DY04-F2L.js")).then(e=>e.default),CARTES_BANCAIRES:()=>Promise.resolve().then(()=>require("./cartes-bancaires.svg.es-BleHMlkN.js")).then(e=>e.default),DANKORT:()=>Promise.resolve().then(()=>require("./dankort.svg.es-CksaipXF.js")).then(e=>e.default),DINERS:()=>Promise.resolve().then(()=>require("./diners.svg.es-D6Mu1pqP.js")).then(e=>e.default),DISCOVER:()=>Promise.resolve().then(()=>require("./discover.svg.es-DgqWCMUM.js")).then(e=>e.default),EFTPOS:()=>Promise.resolve().then(()=>require("./eftpos.svg.es-Dk2DOT8W.js")).then(e=>e.default),ELO:()=>Promise.resolve().then(()=>require("./elo.svg.es-C-BzjuRP.js")).then(e=>e.default),GIROCARD:()=>Promise.resolve().then(()=>require("./girocard.svg.es-HSOEvDif.js")).then(e=>e.default),HIPERCARD:()=>Promise.resolve().then(()=>require("./hipercard.svg.es-CbCsRY2q.js")).then(e=>e.default),JCB:()=>Promise.resolve().then(()=>require("./jcb.svg.es-B3WPB8c2.js")).then(e=>e.default),MAESTRO:()=>Promise.resolve().then(()=>require("./maestro.svg.es-BvK4oPg4.js")).then(e=>e.default),MASTERCARD:()=>Promise.resolve().then(()=>require("./mastercard.svg.es-lp4AXyyV.js")).then(e=>e.default),NYCE:()=>Promise.resolve().then(()=>require("./nyce.svg.es-ArAivAZW.js")).then(e=>e.default),PULSE:()=>Promise.resolve().then(()=>require("./pulse.svg.es-Dit33E8S.js")).then(e=>e.default),STAR:()=>Promise.resolve().then(()=>require("./star.svg.es-D2JncY7b.js")).then(e=>e.default),UNION_PAY:()=>Promise.resolve().then(()=>require("./unionpay.svg.es-DjFZ5EMQ.js")).then(e=>e.default),VISA:()=>Promise.resolve().then(()=>require("./visa.svg.es-NY3BHhda.js")).then(e=>e.default),V_PAY:()=>Promise.resolve().then(()=>require("./vpay.svg.es-VViQi42w.js")).then(e=>e.default)},w={class:"flex h-full grow flex-col justify-center"},D=t.defineComponent({__name:"PaymentMethodCard",props:{paymentMethod:{},isDefault:{type:Boolean},i18n:{},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n,s,i;if((n=a.i18n)!=null&&n.expiryDate&&a.paymentMethod.card.expiry_date)return a.i18n.expiryDate(a.paymentMethod.card.expiry_date.expiry_month,a.paymentMethod.card.expiry_date.expiry_year);if(a.paymentMethod.card.expiry_date)return`Expiry date: ${(s=a.paymentMethod.card.expiry_date)==null?void 0:s.expiry_month}/${(i=a.paymentMethod.card.expiry_date)==null?void 0:i.expiry_year}`}),l=y(()=>a.paymentMethod.card.brand?E[a.paymentMethod.card.brand]:void 0);return(n,s)=>{var i;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(i=e.paymentMethod.card.brand)==null?void 0:i.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",w,[t.createVNode(c._sfc_main,{tag:"span",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0,weight:"semibold","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(" **** **** **** "+t.toDisplayString(e.paymentMethod.card.last_four_digits??"****"),1)]),_:1},8,["variant","color"]),e.variant==="default"&&o.value?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.value),1)]),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),q={AMAZON_PAY:{name:"Amazon Pay",logo:()=>Promise.resolve().then(()=>require("./amazon-pay.svg.es-CQWgtowB.js")).then(e=>e.default)},APPLE_PAY:{name:"Apple Pay",logo:()=>Promise.resolve().then(()=>require("./apple-pay.svg.es-Dyojd0F-.js")).then(e=>e.default)},CASH_APP:{name:"Cash App",logo:()=>Promise.resolve().then(()=>require("./cashapp.svg.es-MwXGYom6.js")).then(e=>e.default)},DANA:{name:"DANA",logo:()=>Promise.resolve().then(()=>require("./dana.svg.es-BDtZLpwd.js")).then(e=>e.default)},GCASH:{name:"GCash",logo:()=>Promise.resolve().then(()=>require("./gcash.svg.es-BKAdhWzv.js")).then(e=>e.default)},GOOGLE_PAY:{name:"Google Pay",logo:()=>Promise.resolve().then(()=>require("./google-pay.svg.es-hzc_EgiJ.js")).then(e=>e.default)},GO_PAY:{name:"GoPay",logo:()=>Promise.resolve().then(()=>require("./go-pay.svg.es-DQjtunZ_.js")).then(e=>e.default)},KAKAOPAY:{name:"KakaoPay",logo:()=>Promise.resolve().then(()=>require("./kakao-pay.svg.es-Cs-lCW74.js")).then(e=>e.default)},MOMO:{name:"Momo",logo:()=>Promise.resolve().then(()=>require("./momo.svg.es-C5aLYf_R.js")).then(e=>e.default)},PAYPAL:{name:"PayPal",logo:()=>Promise.resolve().then(()=>require("./paypal.svg.es-Cjp5sNI3.js")).then(e=>e.default)},TWINT:{name:"Twint",logo:()=>Promise.resolve().then(()=>require("./twint.svg.es-BJ2f48og.js")).then(e=>e.default)}},I={class:"flex h-full grow flex-col justify-center"},T=t.defineComponent({__name:"PaymentMethodDigitalWallet",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.digital_wallet)!=null&&n.variant?q[a.paymentMethod.digital_wallet.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(d=(i=o.value)==null?void 0:i.name)==null?void 0:d.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",I,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),_={ACH:{name:"ACH",logo:()=>Promise.resolve().then(()=>require("./ach.svg.es-BYP873jU.js")).then(e=>e.default)},DIRECT_DEBIT_GB:{name:"Direct Debit GB",logo:()=>Promise.resolve().then(()=>require("./bacs.svg.es-GJpZs1sD.js")).then(e=>e.default)},SEPA_DIRECT_DEBIT:{name:"SEPA Direct Debit",logo:()=>Promise.resolve().then(()=>require("./sepa.svg.es-0t4DKeA1.js")).then(e=>e.default)}},S={class:"flex h-full grow flex-col justify-center"},$=t.defineComponent({__name:"PaymentMethodDirectDebit",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.direct_debit)!=null&&n.variant?_[a.paymentMethod.direct_debit.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(d=(i=o.value)==null?void 0:i.name)==null?void 0:d.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",S,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),L={EPS:{name:"Electronic Payment Services",logo:()=>Promise.resolve().then(()=>require("./eps.svg.es-B_85bP-W.js")).then(e=>e.default)},IDEAL:{name:"iDEAL",logo:()=>Promise.resolve().then(()=>require("./ideal.svg.es-Booz1IML.js")).then(e=>e.default)},PAY_BY_BANK:{name:"Open Banking / Pay by bank",logo:()=>Promise.resolve().then(()=>require("./open-banking.svg.es-Q3rRkCvP.js")).then(e=>e.default)},TRUSTLY:{name:"Trustly",logo:()=>Promise.resolve().then(()=>require("./trustly.svg.es-GJByiFAs.js")).then(e=>e.default)}},R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23e1e2ff'%20d='M0%200h32v32H0z'/%3e%3cmask%20id='a'%20width='24'%20height='24'%20x='4'%20y='4'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M4%204h24v24H4z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%231f216a'%20d='M6.5%2022.5v-13h19v3.14H24l-4.6%204.61h-9.15v1.5h7.64l-3.75%203.75zm3.75-7.75h5.5v-1.5h-5.5zm6.9%209.71V23.2l6.38-6.38%201.27%201.27-6.38%206.38zm8.23-6.98-1.26-1.27.84-.84a.4.4%200%200%201%20.25-.12q.14%200%20.26.12l.76.76a.4.4%200%200%201%20.11.25.4.4%200%200%201-.11.26z'/%3e%3c/g%3e%3c/svg%3e",O={class:"flex h-full grow flex-col justify-center"},z=t.defineComponent({__name:"PaymentMethodOnlineBanking",props:{paymentMethod:{},i18n:{},isDefault:{type:Boolean},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.online_banking)!=null&&n.variant?L[a.paymentMethod.online_banking.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-alt":((i=o.value)==null?void 0:i.name)??((d=e.i18n)==null?void 0:d.imageAlt)??"Bank transfer","image-src":t.unref(l)??t.unref(R),variant:e.variant,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",O,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name)+" ",1),e.paymentMethod.status==="SETUP"?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,size:"sm",intent:"info",class:"ml-1 font-normal"},{default:t.withCtx(()=>{var u;return[t.createTextVNode(t.toDisplayString(((u=e.i18n)==null?void 0:u.pendingLabel)??"Pending"),1)]}),_:1})):t.createCommentVNode("",!0)]}),_:1},8,["variant","color"]),e.variant==="default"?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>{var r,u;return[t.createTextVNode(t.toDisplayString(((r=e.paymentMethod.online_banking)==null?void 0:r.iban)??((u=e.i18n)==null?void 0:u.onlineBankingLabel)??"Online banking"),1)]}),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-alt","image-src","variant","disabled"])}}}),Y=t.defineComponent({__name:"PaymentMethod",props:{paymentMethod:{},variant:{},i18n:{},options:{},disabled:{type:Boolean}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.paymentMethod.type==="CARD"?(t.openBlock(),t.createBlock(D,t.mergeProps({key:0},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="ONLINE_BANKING"?(t.openBlock(),t.createBlock(z,t.mergeProps({key:1},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="BUY_NOW_PAY_LATER"?(t.openBlock(),t.createBlock(b,t.mergeProps({key:2},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIRECT_DEBIT"?(t.openBlock(),t.createBlock($,t.mergeProps({key:3},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIGITAL_WALLET"?(t.openBlock(),t.createBlock(T,t.mergeProps({key:4},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0)],64))}});exports._sfc_main=Y;
|
|
1
|
+
const t=require("vue"),p=require("./FormMessage.vue.es-dqATjC2N.js"),P=require("./ContextMenu.vue.es-DXKR7WFg.js"),c=require("./customElements-hH6pju3X.js"),g=require("./Chip.vue.es-BN83K3Tk.js"),m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e",C={class:"shrink-0"},N={class:"flex items-center justify-center overflow-clip rounded"},M=["src","alt","width","height"],k={class:"grow"},x={key:0},A={key:0,class:"pt-3"},h=t.defineComponent({__name:"PaymentMethodBase",props:{imageSrc:{},imageAlt:{},variant:{default:"default"},disabled:{type:Boolean},options:{},error:{}},setup(e){const a=e,o=t.computed(()=>a.imageSrc||m);return(l,n)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["flex gap-3",{"opacity-50":e.disabled}])},[t.createElementVNode("div",C,[t.createElementVNode("div",N,[o.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.value,alt:e.imageAlt,width:e.variant==="condensed"?20:36,height:e.variant==="condensed"?20:36,class:t.normalizeClass({"h-9 w-9":e.variant==="default","h-5 w-5":e.variant==="condensed"})},null,10,M)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",k,[t.renderSlot(l.$slots,"default")]),e.options&&e.options.length>0?(t.openBlock(),t.createElementBlock("div",x,[t.createVNode(P._sfc_main$1,{width:"wide",square:"",items:e.options},null,8,["items"])])):t.createCommentVNode("",!0)],2),e.error?(t.openBlock(),t.createElementBlock("div",A,[t.createVNode(p._sfc_main,{message:e.error,variant:"error"},null,8,["message"])])):t.createCommentVNode("",!0)]))}}),v=t.defineComponent({__name:"PaymentMethodDefaultChip",props:{isDefault:{type:Boolean}},setup(e){const a=c.useIntl();return(o,l)=>e.isDefault?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Default",description:"The textual label for the default payment method chip",id:"payment_methods.default_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),f=t.defineComponent({__name:"PaymentMethodInactiveChip",props:{isInactive:{type:Boolean}},setup(e){const a=c.useIntl();return(o,l)=>e.isInactive?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,class:"mt-1 self-start"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a).$t({defaultMessage:"Inactive",description:"The textual label for the inactive payment method chip",id:"payment_methods.inactive_chip.label"})),1)]),_:1})):t.createCommentVNode("",!0)}}),B={KLARNA:{name:"Klarna",logo:()=>Promise.resolve().then(()=>require("./klarna.svg.es-Cs6XaHD7.js")).then(e=>e.default)},ZIP:{name:"Zip",logo:()=>Promise.resolve().then(()=>require("./zip.svg.es-C9S_F31W.js")).then(e=>e.default)}},y=e=>{const a=t.shallowRef();return t.watch(()=>t.toValue(e),(o,l,n)=>{if(a.value=void 0,!o)return;let s=!1;n(()=>{s=!0}),o().then(i=>{s||(a.value=i)}).catch(()=>{})},{immediate:!0}),a},V={class:"flex h-full grow flex-col justify-center"},b=t.defineComponent({__name:"PaymentMethodBuyNowPayLater",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.buy_now_pay_later)!=null&&n.variant?B[a.paymentMethod.buy_now_pay_later.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(d=(i=o.value)==null?void 0:i.name)==null?void 0:d.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",V,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),E={ACCEL:()=>Promise.resolve().then(()=>require("./accel.svg.es-DFJXdioD.js")).then(e=>e.default),AMERICAN_EXPRESS:()=>Promise.resolve().then(()=>require("./amex.svg.es-DKhW4Txt.js")).then(e=>e.default),BANCONTACT:()=>Promise.resolve().then(()=>require("./bancontact.svg.es-BQh7nAup.js")).then(e=>e.default),CARNET:()=>Promise.resolve().then(()=>require("./carnet.svg.es-DY04-F2L.js")).then(e=>e.default),CARTES_BANCAIRES:()=>Promise.resolve().then(()=>require("./cartes-bancaires.svg.es-BleHMlkN.js")).then(e=>e.default),DANKORT:()=>Promise.resolve().then(()=>require("./dankort.svg.es-CksaipXF.js")).then(e=>e.default),DINERS:()=>Promise.resolve().then(()=>require("./diners.svg.es-D6Mu1pqP.js")).then(e=>e.default),DISCOVER:()=>Promise.resolve().then(()=>require("./discover.svg.es-DgqWCMUM.js")).then(e=>e.default),EFTPOS:()=>Promise.resolve().then(()=>require("./eftpos.svg.es-Dk2DOT8W.js")).then(e=>e.default),ELO:()=>Promise.resolve().then(()=>require("./elo.svg.es-C-BzjuRP.js")).then(e=>e.default),GIROCARD:()=>Promise.resolve().then(()=>require("./girocard.svg.es-HSOEvDif.js")).then(e=>e.default),HIPERCARD:()=>Promise.resolve().then(()=>require("./hipercard.svg.es-CbCsRY2q.js")).then(e=>e.default),JCB:()=>Promise.resolve().then(()=>require("./jcb.svg.es-B3WPB8c2.js")).then(e=>e.default),MAESTRO:()=>Promise.resolve().then(()=>require("./maestro.svg.es-BvK4oPg4.js")).then(e=>e.default),MASTERCARD:()=>Promise.resolve().then(()=>require("./mastercard.svg.es-lp4AXyyV.js")).then(e=>e.default),NYCE:()=>Promise.resolve().then(()=>require("./nyce.svg.es-ArAivAZW.js")).then(e=>e.default),PULSE:()=>Promise.resolve().then(()=>require("./pulse.svg.es-Dit33E8S.js")).then(e=>e.default),STAR:()=>Promise.resolve().then(()=>require("./star.svg.es-D2JncY7b.js")).then(e=>e.default),UNION_PAY:()=>Promise.resolve().then(()=>require("./unionpay.svg.es-DjFZ5EMQ.js")).then(e=>e.default),VISA:()=>Promise.resolve().then(()=>require("./visa.svg.es-NY3BHhda.js")).then(e=>e.default),V_PAY:()=>Promise.resolve().then(()=>require("./vpay.svg.es-VViQi42w.js")).then(e=>e.default)},w={class:"flex h-full grow flex-col justify-center"},D=t.defineComponent({__name:"PaymentMethodCard",props:{paymentMethod:{},isDefault:{type:Boolean},i18n:{},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n,s,i;if((n=a.i18n)!=null&&n.expiryDate&&a.paymentMethod.card.expiry_date)return a.i18n.expiryDate(a.paymentMethod.card.expiry_date.expiry_month,a.paymentMethod.card.expiry_date.expiry_year);if(a.paymentMethod.card.expiry_date)return`Expiry date: ${(s=a.paymentMethod.card.expiry_date)==null?void 0:s.expiry_month}/${(i=a.paymentMethod.card.expiry_date)==null?void 0:i.expiry_year}`}),l=y(()=>a.paymentMethod.card.brand?E[a.paymentMethod.card.brand]:void 0);return(n,s)=>{var i;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(i=e.paymentMethod.card.brand)==null?void 0:i.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",w,[t.createVNode(c._sfc_main,{tag:"span",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0,weight:"semibold","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(" **** **** **** "+t.toDisplayString(e.paymentMethod.card.last_four_digits??"****"),1)]),_:1},8,["variant","color"]),e.variant==="default"&&o.value?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.value),1)]),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),q={AMAZON_PAY:{name:"Amazon Pay",logo:()=>Promise.resolve().then(()=>require("./amazon-pay.svg.es-CQWgtowB.js")).then(e=>e.default)},APPLE_PAY:{name:"Apple Pay",logo:()=>Promise.resolve().then(()=>require("./apple-pay.svg.es-Dyojd0F-.js")).then(e=>e.default)},CASH_APP:{name:"Cash App",logo:()=>Promise.resolve().then(()=>require("./cashapp.svg.es-MwXGYom6.js")).then(e=>e.default)},DANA:{name:"DANA",logo:()=>Promise.resolve().then(()=>require("./dana.svg.es-BDtZLpwd.js")).then(e=>e.default)},GCASH:{name:"GCash",logo:()=>Promise.resolve().then(()=>require("./gcash.svg.es-BKAdhWzv.js")).then(e=>e.default)},GOOGLE_PAY:{name:"Google Pay",logo:()=>Promise.resolve().then(()=>require("./google-pay.svg.es-hzc_EgiJ.js")).then(e=>e.default)},GO_PAY:{name:"GoPay",logo:()=>Promise.resolve().then(()=>require("./go-pay.svg.es-DQjtunZ_.js")).then(e=>e.default)},KAKAOPAY:{name:"KakaoPay",logo:()=>Promise.resolve().then(()=>require("./kakao-pay.svg.es-Cs-lCW74.js")).then(e=>e.default)},MOMO:{name:"Momo",logo:()=>Promise.resolve().then(()=>require("./momo.svg.es-C5aLYf_R.js")).then(e=>e.default)},PAYPAL:{name:"PayPal",logo:()=>Promise.resolve().then(()=>require("./paypal.svg.es-Cjp5sNI3.js")).then(e=>e.default)},TWINT:{name:"Twint",logo:()=>Promise.resolve().then(()=>require("./twint.svg.es-BJ2f48og.js")).then(e=>e.default)}},I={class:"flex h-full grow flex-col justify-center"},T=t.defineComponent({__name:"PaymentMethodDigitalWallet",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.digital_wallet)!=null&&n.variant?q[a.paymentMethod.digital_wallet.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(d=(i=o.value)==null?void 0:i.name)==null?void 0:d.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",I,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),_={ACH:{name:"ACH",logo:()=>Promise.resolve().then(()=>require("./ach.svg.es-BYP873jU.js")).then(e=>e.default)},DIRECT_DEBIT_GB:{name:"Direct Debit GB",logo:()=>Promise.resolve().then(()=>require("./bacs.svg.es-GJpZs1sD.js")).then(e=>e.default)},SEPA_DIRECT_DEBIT:{name:"SEPA Direct Debit",logo:()=>Promise.resolve().then(()=>require("./sepa.svg.es-0t4DKeA1.js")).then(e=>e.default)}},S={class:"flex h-full grow flex-col justify-center"},$=t.defineComponent({__name:"PaymentMethodDirectDebit",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.direct_debit)!=null&&n.variant?_[a.paymentMethod.direct_debit.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-src":t.unref(l)??t.unref(m),"image-alt":(d=(i=o.value)==null?void 0:i.name)==null?void 0:d.toLowerCase(),variant:e.variant,options:e.options,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",S,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name),1)]}),_:1},8,["variant","color"]),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),L={EPS:{name:"Electronic Payment Services",logo:()=>Promise.resolve().then(()=>require("./eps.svg.es-B_85bP-W.js")).then(e=>e.default)},IDEAL:{name:"iDEAL",logo:()=>Promise.resolve().then(()=>require("./ideal.svg.es-Booz1IML.js")).then(e=>e.default)},PAY_BY_BANK:{name:"Open Banking / Pay by bank",logo:()=>Promise.resolve().then(()=>require("./open-banking.svg.es-Q3rRkCvP.js")).then(e=>e.default)},TRUSTLY:{name:"Trustly",logo:()=>Promise.resolve().then(()=>require("./trustly.svg.es-GJByiFAs.js")).then(e=>e.default)}},R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23e1e2ff'%20d='M0%200h32v32H0z'/%3e%3cmask%20id='a'%20width='24'%20height='24'%20x='4'%20y='4'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M4%204h24v24H4z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%231f216a'%20d='M6.5%2022.5v-13h19v3.14H24l-4.6%204.61h-9.15v1.5h7.64l-3.75%203.75zm3.75-7.75h5.5v-1.5h-5.5zm6.9%209.71V23.2l6.38-6.38%201.27%201.27-6.38%206.38zm8.23-6.98-1.26-1.27.84-.84a.4.4%200%200%201%20.25-.12q.14%200%20.26.12l.76.76a.4.4%200%200%201%20.11.25.4.4%200%200%201-.11.26z'/%3e%3c/g%3e%3c/svg%3e",O={class:"flex h-full grow flex-col justify-center"},z=t.defineComponent({__name:"PaymentMethodOnlineBanking",props:{paymentMethod:{},i18n:{},isDefault:{type:Boolean},variant:{default:"default"}},setup(e){const a=e,o=t.computed(()=>{var n;return(n=a.paymentMethod.online_banking)!=null&&n.variant?L[a.paymentMethod.online_banking.variant]:void 0}),l=y(()=>{var n;return(n=o.value)==null?void 0:n.logo});return(n,s)=>{var i,d;return t.openBlock(),t.createBlock(h,{"image-alt":((i=o.value)==null?void 0:i.name)??((d=e.i18n)==null?void 0:d.imageAlt)??"Bank transfer","image-src":t.unref(l)??t.unref(R),variant:e.variant,disabled:e.paymentMethod.status==="INACTIVE"},{default:t.withCtx(()=>[t.createElementVNode("div",O,[t.createVNode(c._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:e.variant==="condensed"?"body-xs":"body-sm",color:e.variant==="condensed"?"secondary":void 0},{default:t.withCtx(()=>{var r;return[t.createTextVNode(t.toDisplayString((r=o.value)==null?void 0:r.name)+" ",1),e.paymentMethod.status==="SETUP"?(t.openBlock(),t.createBlock(g._sfc_main,{key:0,size:"sm",intent:"info",class:"ml-1 font-normal"},{default:t.withCtx(()=>{var u;return[t.createTextVNode(t.toDisplayString(((u=e.i18n)==null?void 0:u.pendingLabel)??"Pending"),1)]}),_:1})):t.createCommentVNode("",!0)]}),_:1},8,["variant","color"]),e.variant==="default"?(t.openBlock(),t.createBlock(c._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:t.withCtx(()=>{var r,u;return[t.createTextVNode(t.toDisplayString(((r=e.paymentMethod.online_banking)==null?void 0:r.iban)??((u=e.i18n)==null?void 0:u.onlineBankingLabel)??"Online banking"),1)]}),_:1})):t.createCommentVNode("",!0),t.createVNode(v,{"is-default":e.isDefault},null,8,["is-default"]),t.createVNode(f,{"is-inactive":e.paymentMethod.status==="INACTIVE"},null,8,["is-inactive"])])]),_:1},8,["image-alt","image-src","variant","disabled"])}}}),Y=t.defineComponent({__name:"PaymentMethod",props:{paymentMethod:{},variant:{},i18n:{},options:{},disabled:{type:Boolean}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.paymentMethod.type==="CARD"?(t.openBlock(),t.createBlock(D,t.mergeProps({key:0},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="ONLINE_BANKING"?(t.openBlock(),t.createBlock(z,t.mergeProps({key:1},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="BUY_NOW_PAY_LATER"?(t.openBlock(),t.createBlock(b,t.mergeProps({key:2},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIRECT_DEBIT"?(t.openBlock(),t.createBlock($,t.mergeProps({key:3},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0),e.paymentMethod.type==="DIGITAL_WALLET"?(t.openBlock(),t.createBlock(T,t.mergeProps({key:4},a.$attrs,{"payment-method":e.paymentMethod,variant:e.variant,"is-default":e.paymentMethod.is_default,options:e.options}),null,16,["payment-method","variant","is-default","options"])):t.createCommentVNode("",!0)],64))}});exports._sfc_main=Y;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as p, computed as A, openBlock as i, createElementBlock as x, createElementVNode as g, normalizeClass as k, createCommentVNode as m, renderSlot as B, createVNode as l, createBlock as d, withCtx as r, createTextVNode as f, toDisplayString as y, unref as c, shallowRef as S, watch as $, toValue as L, Fragment as R, mergeProps as C } from "vue";
|
|
2
2
|
import { _ } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
3
|
-
import { a as O } from "./ContextMenu.vue.es-
|
|
4
|
-
import { u as N, _ as M } from "./customElements-
|
|
5
|
-
import { _ as T } from "./Chip.vue.es-
|
|
3
|
+
import { a as O } from "./ContextMenu.vue.es-0PRmCAzL.mjs";
|
|
4
|
+
import { u as N, _ as M } from "./customElements-q_i9y0Ph.mjs";
|
|
5
|
+
import { _ as T } from "./Chip.vue.es-T22Q7AF9.mjs";
|
|
6
6
|
const I = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e", V = { class: "shrink-0" }, Y = { class: "flex items-center justify-center overflow-clip rounded" }, z = ["src", "alt", "width", "height"], G = { class: "grow" }, H = { key: 0 }, U = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "pt-3"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentMethodForm.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js");exports.default=e._sfc_main;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),p=require("./customer.es-BButyYo0.js"),v=require("./Button.vue.es-
|
|
1
|
+
const e=require("vue"),p=require("./customer.es-BButyYo0.js"),v=require("./Button.vue.es-CeUTAc2n.js"),E=require("./Section.vue.es-CSrVPlUK.js"),N=require("./customElements-hH6pju3X.js"),x=require("./Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),T=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js"),y=require("./usePaymentMethodAvailability-DwtT5Czz.js"),q=require("./url-vloPOiXd.js"),f="NL",R=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String},title:{type:String},hideSubmitButton:{type:Boolean}},emits:["success","failure"],setup(i,{expose:_,emit:h}){const b={currency:"EUR",quantity:"0"},n=i,m=h,{$t:u}=N.useIntl(),{availability:g}=y.usePaymentMethodAvailability({paymentMethodOptions:()=>n.paymentMethodOptions,isLoading:()=>n.isLoading,context:()=>{var t;return{invoiceId:(t=n.configuration)==null?void 0:t.invoiceId}}}),l=e.ref(),C=e.ref(),s=e.ref(!1),r=e.ref(!1);function d(){var t;s.value=!0,(t=l.value)==null||t.submit()}const k=e.computed(()=>u({defaultMessage:"Save payment method",description:"Label of the button that stores the entered payment method",id:"components.payment_method_form.submit_button.label"}));_({submit:d,isPaymentPending:s,isCompleted:r});function O(){s.value=!1,r.value=!0,m("success")}function B(t){s.value=!1,m("failure",t)}const S=t=>(t==null?void 0:t.variant)==="AUTHORIZE"?t:{...t,variant:"TOKENIZE"},o=e.computed(()=>S(n.configuration)),I=e.computed(()=>r.value&&!n.hideSubmitButton&&!!o.value.successRedirectUrl),P=e.computed(()=>o.value.successRedirectLabel??u({defaultMessage:"Continue",description:"Label of the button that leaves the form once the payment method is stored",id:"components.payment_method_form.continue_button.label"}));function L(){const{successRedirectUrl:t}=o.value;t&&q.safeUrlRedirect(t)}const M=e.computed(()=>{let t=f;if(n.countryCode)return t=n.countryCode,t;if(n.customer){const a=p.getCustomerCountry(n.customer);if(a)return t=a,t}return f}),A=e.computed(()=>{const t=o.value.variant,a=p.getCustomerName(n.customer),c={amount:o.value.amount??b,paymentMethodOptions:n.paymentMethodOptions,countryCode:M.value,...n.customer.email?{email:n.customer.email}:{},...a?{name:a}:{},validateOnSubmit:o.value.validateOnSubmit,forceStorePaymentMethod:o.value.forceStorePaymentMethod,selectedOption:o.value.selectedOption,invoiceId:o.value.invoiceId};return t==="AUTHORIZE"?{...c,variant:t,context:o.value.context}:{...c,variant:"TOKENIZE",customerId:n.customer.id}});return(t,a)=>i.isLoading?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,variant:"section",class:"sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]","data-testid":"payment-method-form-skeleton"})):e.unref(g)==="UNAVAILABLE"?(e.openBlock(),e.createBlock(y._sfc_main,{key:1,class:"sv-payment-method-form sv-root sv-component",variant:o.value.variant??"TOKENIZE"},null,8,["variant"])):(e.openBlock(),e.createBlock(e.unref(E._sfc_main),{key:2,class:"sv-payment-method-form sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:i.title??e.unref(u)({defaultMessage:"Available payment methods",description:"Title of the available payment methods form",id:"components.payment_method_form.section_title"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":s.value})},[e.createVNode(T._sfc_main,e.mergeProps({ref_key:"paymentIntegrationFormRef",ref:l,class:"sv-payment-method-form__integration"},A.value,{onSelect:a[0]||(a[0]=c=>C.value=c),onPaymentSuccess:O,onPaymentFailed:B}),null,16)],2),I.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:0,intent:"primary",class:"mt-4 w-full","data-testid":"payment-method-form-continue",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value),1)]),_:1})):!i.hideSubmitButton&&!r.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:1,intent:"primary",class:"mt-4 w-full",loading:s.value,onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.value),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=R;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as B, ref as d, computed as s, openBlock as i, createBlock as m, unref as r, withCtx as f, createElementVNode as F, normalizeClass as $, createVNode as V, mergeProps as Z, createTextVNode as _, toDisplayString as b, createCommentVNode as w } from "vue";
|
|
2
2
|
import { g as K, a as D } from "./customer.es-B5ppZf0j.mjs";
|
|
3
|
-
import { _ as g } from "./Button.vue.es-
|
|
4
|
-
import { _ as j } from "./Section.vue.es-
|
|
5
|
-
import { u as H } from "./customElements-
|
|
3
|
+
import { _ as g } from "./Button.vue.es-BbSN0uOk.mjs";
|
|
4
|
+
import { _ as j } from "./Section.vue.es-D5svcVS_.mjs";
|
|
5
|
+
import { u as H } from "./customElements-q_i9y0Ph.mjs";
|
|
6
6
|
import { _ as q } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
7
|
-
import { _ as z } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as Y, _ as G } from "./usePaymentMethodAvailability-
|
|
7
|
+
import { _ as z } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs";
|
|
8
|
+
import { u as Y, _ as G } from "./usePaymentMethodAvailability-adqRujTA.mjs";
|
|
9
9
|
import { s as J } from "./url-TNRgVI8A.mjs";
|
|
10
10
|
const C = "NL", ie = /* @__PURE__ */ B({
|
|
11
11
|
__name: "PaymentMethodForm",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as S, openBlock as d, createElementBlock as h, Fragment as _, renderList as E, createBlock as f, unref as e, withCtx as c, createVNode as m, createCommentVNode as y, createSlots as $, createElementVNode as v, createTextVNode as A, toDisplayString as I } from "vue";
|
|
2
|
-
import { _ as g } from "./PaymentMethod.vue.es-
|
|
3
|
-
import { _ as N } from "./ErrorNotification.vue.es-
|
|
4
|
-
import { _ as x } from "./Section.vue.es-
|
|
5
|
-
import { u as C, _ as V } from "./customElements-
|
|
6
|
-
import { M as q } from "./Modal.vue.es-
|
|
2
|
+
import { _ as g } from "./PaymentMethod.vue.es-m1NasGqw.mjs";
|
|
3
|
+
import { _ as N } from "./ErrorNotification.vue.es-CiUJva6S.mjs";
|
|
4
|
+
import { _ as x } from "./Section.vue.es-D5svcVS_.mjs";
|
|
5
|
+
import { u as C, _ as V } from "./customElements-q_i9y0Ph.mjs";
|
|
6
|
+
import { M as q } from "./Modal.vue.es-BuRlbyZw.mjs";
|
|
7
7
|
import { u as M } from "./useService-Bh47bllz.mjs";
|
|
8
|
-
import { c as B } from "./paymentMethods-
|
|
8
|
+
import { c as B } from "./paymentMethods-DEKp_4QM.mjs";
|
|
9
9
|
function R({
|
|
10
10
|
onSetDefault: s,
|
|
11
11
|
onDeleteRequest: l
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),u=require("./PaymentMethod.vue.es-
|
|
1
|
+
const e=require("vue"),u=require("./PaymentMethod.vue.es-ZWda5GqF.js"),g=require("./ErrorNotification.vue.es-QfRoDhkn.js"),f=require("./Section.vue.es-CSrVPlUK.js"),c=require("./customElements-hH6pju3X.js"),x=require("./Modal.vue.es-JpE0eh_Q.js"),_=require("./useService-H7BjLg8P.js"),C=require("./paymentMethods-CZGP6_4W.js");function M({onSetDefault:s,onDeleteRequest:l}){const{$t:o}=c.useIntl();return{getContextMenuItems:t=>{const i=[];return t.is_default||i.push({label:o({defaultMessage:"Set as default",id:"payment_method.context_menu.set_as_default.label",description:"Context menu option for setting the default payment method"}),onClick:()=>s(t)}),i.push({label:o({defaultMessage:"Delete",id:"payment_method.context_menu.delete.label",description:"Context menu option for deleting the payment method"}),onClick:()=>l(t)}),i}}}function k(){const{archivePaymentMethod:s,setDefaultPaymentMethod:l}=C.createPaymentMethodsService(),o=_.useService({service:t=>s({paymentMethodId:t})}),n=_.useService({service:t=>l({paymentMethodId:t})});return{archive:o.execute,archiveError:o.error,isArchiving:o.isPending,setDefault:n.execute,setDefaultError:n.error,isSettingDefault:n.isPending}}const b={key:0,class:"sv-payment-methods__list grid grid-cols-1 gap-4"},D={class:"sv-payment-methods__delete-modal-body flex flex-col gap-3"},w={class:"px-3 py-2"},q=e.defineComponent({__name:"PaymentMethodsList",props:{paymentMethods:{type:Array}},emits:["delete","set-default"],setup(s,{emit:l}){const o=l,{$t:n}=c.useIntl(),t=e.ref(null),{archive:i,archiveError:m,isArchiving:r,setDefault:h}=k(),{getContextMenuItems:p}=M({onDeleteRequest:a=>{t.value=a},onSetDefault:async a=>{await h(a.id),o("set-default",a)}});function y(){t.value=null,m.value=null}async function v(){const a=t.value;if(!(!a||r.value)){try{await i(a.id)}catch{return}o("delete",a),t.value=null}}return(a,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.paymentMethods.length>0?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentMethods,d=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:d.id,class:"sv-payment-methods__item"},{default:e.withCtx(()=>[e.createVNode(e.unref(u._sfc_main),{class:"sv-payment-methods__item-content","payment-method":d,options:e.unref(p)(d)},null,8,["payment-method","options"])]),_:2},1024))),128))])):e.createCommentVNode("",!0),e.createVNode(e.unref(x.Modal),{size:"md","show-modal":!!t.value,"is-loading":e.unref(r),"no-click-away":e.unref(r),"no-backdrop-close":e.unref(r),title:e.unref(n)({id:"payment_methods_list.delete_modal.title",defaultMessage:"Delete payment method",description:"Title of the delete payment method confirmation modal"}),"confirm-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.confirm",defaultMessage:"Delete",description:"Confirm button in the delete payment method modal"}),"cancel-button-text":e.unref(n)({id:"payment_methods_list.delete_modal.cancel",defaultMessage:"Cancel",description:"Cancel button in the delete payment method modal"}),onConfirm:v,onClose:y},e.createSlots({_:2},[t.value?{name:"body",fn:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(e.unref(c._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-methods__delete-modal-explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"payment_methods_list.delete_modal.body",defaultMessage:"Are you sure you want to delete this payment method?",description:"Confirmation message in the delete payment method modal"})),1)]),_:1}),e.createVNode(e.unref(f._sfc_main),{"no-spacing":"",class:"sv-payment-methods__delete-modal-payment-method"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(u._sfc_main),{"payment-method":t.value},null,8,["payment-method"])])]),_:1}),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,class:"sv-payment-methods__delete-modal-error sv-error",title:e.unref(n)({id:"payment_methods_list.delete_modal.error",defaultMessage:"We could not delete this payment method. Please try again.",description:"Error shown when deleting a payment method fails"})},null,8,["title"])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["show-modal","is-loading","no-click-away","no-backdrop-close","title","confirm-button-text","cancel-button-text"])],64))}});exports._sfc_main=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./Section.vue.es-CBZx5x53.js"),g=require("./customElements-CSzbVZIH.js"),w=require("./useTimePeriod.es-DDos3-EH.js"),x=require("./formatting.es-C72Nsrmh.js"),S=require("./Expand.vue.es-BtM0EZEr.js"),B=require("./Button.vue.es-TCF-bvDF.js"),N=require("./IconButton.vue.es-CB1lIPao.js"),P=require("./Input.vue.es-CREdT4nB.js"),A=require("./Chip.vue.es-CAoisngJ.js"),y=require("./Checkout.entry.ce-D8O4qJ24.js"),z=require("./index-DwueOtPi.js"),V=require("./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js"),E=require("./pricing-BVAld27Y.js"),D=require("./pricingPlanSchedule-BM8vsKkV.js"),q=require("./subscription-ZA62t4E9.js"),$=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($,{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,{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,{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(()=>q.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
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./Section.vue.es-CSrVPlUK.js"),g=require("./customElements-hH6pju3X.js"),w=require("./useTimePeriod.es-anHB63am.js"),x=require("./formatting.es-C72Nsrmh.js"),S=require("./Expand.vue.es-BtM0EZEr.js"),B=require("./Button.vue.es-CeUTAc2n.js"),N=require("./IconButton.vue.es-CytBZUkZ.js"),P=require("./Input.vue.es-BkzQDkrz.js"),A=require("./Chip.vue.es-BN83K3Tk.js"),y=require("./Checkout.entry.ce-DgA0ckyl.js"),z=require("./index-DwueOtPi.js"),V=require("./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js"),E=require("./pricing-BVAld27Y.js"),D=require("./pricingPlanSchedule-BM8vsKkV.js"),q=require("./subscription-ZA62t4E9.js"),$=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($,{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,{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,{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(()=>q.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,16 +1,16 @@
|
|
|
1
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-
|
|
3
|
-
import { _ as A, u as C } from "./customElements-
|
|
4
|
-
import { u as L } from "./useTimePeriod.es-
|
|
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
5
|
import { f as D } from "./formatting.es-RclXHhKo.mjs";
|
|
6
6
|
import { _ as ie } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
7
|
-
import { a as ae, _ as j } from "./Button.vue.es-
|
|
8
|
-
import { _ as F } from "./IconButton.vue.es-
|
|
9
|
-
import { _ as le } from "./Input.vue.es-
|
|
10
|
-
import { _ as oe } from "./Chip.vue.es-
|
|
11
|
-
import { g as se, F as re, a as de, _ as Y } from "./Checkout.entry.ce-
|
|
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
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-
|
|
13
|
+
import { u as K, a as X, _ as ce } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs";
|
|
14
14
|
import { g as H } from "./pricing-DLOeiAIB.mjs";
|
|
15
15
|
import { g as me } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
16
16
|
import { c as pe } from "./subscription-CrVOr5MF.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as te } from "./useTimePeriod.es-
|
|
2
|
-
import { u as ae, _ as oe } from "./customElements-
|
|
1
|
+
import { u as te } from "./useTimePeriod.es-CW8ycmpT.mjs";
|
|
2
|
+
import { u as ae, _ as oe } from "./customElements-q_i9y0Ph.mjs";
|
|
3
3
|
import { a as le, i as Q } from "./useService-Bh47bllz.mjs";
|
|
4
4
|
import { f as $ } from "./formatting.es-RclXHhKo.mjs";
|
|
5
5
|
import { computed as c, defineComponent as P, ref as se, onMounted as ue, watch as ee, openBlock as b, createElementBlock as R, renderSlot as z, useModel as S, useTemplateRef as de, toRefs as pe, nextTick as ge, Fragment as ce, createElementVNode as T, mergeProps as V, unref as g, createBlock as _, createSlots as me, withCtx as x, createTextVNode as ne, toDisplayString as ie, createCommentVNode as w, normalizeClass as M, withDirectives as fe, vModelText as ve, createVNode as re, mergeModels as E } from "vue";
|
|
6
|
-
import { u as be, g as he, _ as ye } from "./cn.es-
|
|
6
|
+
import { u as be, g as he, _ as ye } from "./cn.es-ZXNzpauQ.mjs";
|
|
7
7
|
import { _ as _e } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
8
|
-
import { _ as Y } from "./IconButton.vue.es-
|
|
8
|
+
import { _ as Y } from "./IconButton.vue.es-ChvsCZQG.mjs";
|
|
9
9
|
function xe({
|
|
10
10
|
pricingItem: e,
|
|
11
11
|
currency: i,
|
package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-Ba3v0J_R.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const W=require("./useTimePeriod.es-
|
|
1
|
+
const W=require("./useTimePeriod.es-anHB63am.js"),U=require("./customElements-hH6pju3X.js"),x=require("./useService-H7BjLg8P.js"),y=require("./formatting.es-C72Nsrmh.js"),e=require("vue"),k=require("./cn.es-71nFUose.js"),H=require("./FormMessage.vue.es-dqATjC2N.js"),O=require("./IconButton.vue.es-CytBZUkZ.js");function j({pricingItem:n,currency:i,billingPeriod:r}){var o,l,a,t,s,g;if((o=n.pricing_currency_configs)!=null&&o.length){const d=G(n.pricing_currency_configs,i);if((l=d==null?void 0:d.billing_period_configs)!=null&&l.length&&r){const c=D(d.billing_period_configs,r);if(c)return c}if(d){const c=d.fallback_currency;if(c){const f=L(n.pricing_currency_configs,c);if(f)return f}if((a=d.configs)!=null&&a.length)return d.configs[0]}}if((t=n.billing_period_configs)!=null&&t.length){const d=D(n.billing_period_configs,r);if(d)return d}if((s=n.configs)!=null&&s.length)return(g=n.configs)==null?void 0:g[0]}const G=(n,i)=>n.find(r=>r.currency===i),L=(n,i)=>{var r,o;return(o=(r=n.find(l=>l.currency===i))==null?void 0:r.configs)==null?void 0:o[0]},D=(n,i)=>{var r,o;return(o=(r=n.find(l=>x.isEqual(l.billing_period,i)))==null?void 0:r.configs)==null?void 0:o[0]};function K({currency:n,billingPeriod:i}={}){const{$t:r}=U.useIntl(),{formatTimePeriod:o}=W.useTimePeriod();return{renderPricingForPricingItem:({pricingItem:a})=>{var t,s,g,d,c,f,h,p,m,v,b,w,C,z,T,B,V,P,M,S,E,q,N,R,$,I,F,A;const _=(t=a.product_items)==null?void 0:t[0],u=j({pricingItem:a,currency:n==null?void 0:n.value,billingPeriod:i==null?void 0:i.value});return u?(_==null?void 0:_.model_type)==="PER_SEAT"?r({defaultMessage:"Per seat",id:"pricing_item_pricing.per_seat",description:"The pricing item pricing for a per seat pricing item"}):(_==null?void 0:_.model_type)==="ONE_OFF"&&((d=(g=(s=u.details)==null?void 0:s.bands)==null?void 0:g[0])!=null&&d.fixed_amount)?y.formatAmount((h=(f=(c=u.details)==null?void 0:c.bands)==null?void 0:f[0])==null?void 0:h.fixed_amount):((p=u.details)==null?void 0:p.pricing_type)==="FLAT"&&((b=(v=(m=u.details)==null?void 0:m.bands)==null?void 0:v[0])!=null&&b.amount)?r({defaultMessage:"{pricing} per {billing_period}",id:"pricing_item_pricing",description:"The pricing item pricing"},{pricing:y.formatAmount((w=u.details)==null?void 0:w.bands[0].amount),billing_period:o(((C=u==null?void 0:u.details)==null?void 0:C.pricing_period)??{type:"MONTH",value:1},{short:!0,hideValueForExactPeriods:!0})}):((z=u.details)==null?void 0:z.pricing_type)==="FIXED"&&((V=(B=(T=u.details)==null?void 0:T.bands)==null?void 0:B[0])!=null&&V.fixed_amount)?r({defaultMessage:"{pricing} per {billing_period}",id:"pricing_item_pricing",description:"The pricing item pricing"},{pricing:y.formatAmount((S=(M=(P=u.details)==null?void 0:P.bands)==null?void 0:M[0])==null?void 0:S.fixed_amount),billing_period:o(((E=u==null?void 0:u.details)==null?void 0:E.pricing_period)??{type:"MONTH",value:1},{short:!0,hideValueForExactPeriods:!0})}):((q=u.details)==null?void 0:q.pricing_type)==="TIERED"?r({defaultMessage:"Tiered pricing",id:"pricing_item_pricing.tiered",description:"The pricing item pricing for a tiered pricing item"}):((N=u.details)==null?void 0:N.pricing_type)==="TOP_TIERED"?r({defaultMessage:"Top tiered pricing",id:"pricing_item_pricing.top_tiered",description:"The pricing item pricing for a top tiered pricing item"}):((R=u.details)==null?void 0:R.pricing_type)==="STAIR_STEP"?r({defaultMessage:"Stair step pricing",id:"pricing_item_pricing.stair_step",description:"The pricing item pricing for a stair step pricing item"}):(($=u.details)==null?void 0:$.pricing_type)==="PASS_THROUGH"?r({defaultMessage:"Pass through pricing",id:"pricing_item_pricing.pass_through",description:"The pricing item pricing for a pass through pricing item"}):((I=u.details)==null?void 0:I.pricing_type)==="NONE"?r({defaultMessage:"Not billed",id:"pricing_item_pricing.none",description:"The pricing item pricing for a not billed pricing item"}):((F=u.details)==null?void 0:F.pricing_type)==="FLAT_TOP_UP"?r({defaultMessage:"Flat top up pricing",id:"pricing_item_pricing.flat_top_up",description:"The pricing item pricing for a flat top up pricing item"}):((A=u.details)==null?void 0:A.pricing_type)==="TIERED_TOP_UP"?r({defaultMessage:"Tiered top up pricing",id:"pricing_item_pricing.tiered_top_up",description:"The pricing item pricing for a tiered top up pricing item"}):r({defaultMessage:"Unsupported pricing",id:"pricing_item_pricing.unsupported_pricing_error",description:"Text displayed when the pricing item pricing is unsupported"}):r({defaultMessage:"Unsupported pricing",id:"pricing_item_pricing.unsupported_pricing_error",description:"Text displayed when the pricing item pricing is unsupported"})}}}const X="w-full appearance-none cursor-pointer",J={xs:"range-sm",sm:"range-sm",md:"range-md",lg:"range-lg",xl:"range-xl"};function Q(n){return{rangeClasses:e.computed(()=>`${X} ${J[n.size.value]}`)}}const Y=`/* Base - transparent background so track styles show through */
|
|
2
2
|
input[type='range'] {
|
|
3
3
|
-webkit-appearance: none;
|
|
4
4
|
-moz-appearance: none;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, openBlock as u, createElementBlock as w, createElementVNode as m, createVNode as f, unref as l, withCtx as g, renderSlot as y, useModel as I, toRef as P, computed as _, createBlock as p, createTextVNode as M, toDisplayString as N, mergeModels as h } from "vue";
|
|
2
|
-
import { u as x, _ as k } from "./PricingGroupRangeInput.vue.es-
|
|
3
|
-
import { _ as T } from "./RadioGroupExtended.vue.es-
|
|
4
|
-
import { _ as A } from "./Section.vue.es-
|
|
5
|
-
import { _ as E } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as b, u as U } from "./customElements-
|
|
2
|
+
import { u as x, _ as k } from "./PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs";
|
|
3
|
+
import { _ as T } from "./RadioGroupExtended.vue.es-CkhBp9kI.mjs";
|
|
4
|
+
import { _ as A } from "./Section.vue.es-D5svcVS_.mjs";
|
|
5
|
+
import { _ as E } from "./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs";
|
|
6
|
+
import { _ as b, u as U } from "./customElements-q_i9y0Ph.mjs";
|
|
7
7
|
import { g as G } from "./pricing-DLOeiAIB.mjs";
|
|
8
8
|
import { u as R } from "./useViewport-BgdA2PPt.mjs";
|
|
9
9
|
const B = { class: "flex gap-4 border-l-2 border-primary-600 px-2" }, C = { class: "grow" }, D = /* @__PURE__ */ $({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),g=require("./PricingGroupRangeInput.vue.es-
|
|
1
|
+
const e=require("vue"),g=require("./PricingGroupRangeInput.vue.es-Ba3v0J_R.js"),P=require("./RadioGroupExtended.vue.es-CHrcqSRq.js"),y=require("./Section.vue.es-CSrVPlUK.js"),b=require("./SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js"),d=require("./customElements-hH6pju3X.js"),N=require("./pricing-BVAld27Y.js"),S=require("./useViewport-hPRVDWCm.js"),k={class:"flex gap-4 border-l-2 border-primary-600 px-2"},w={class:"grow"},_=e.defineComponent({__name:"PricingGroupTitle",setup(l){return(i,c)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",w,[e.createVNode(e.unref(d._sfc_main),{tag:"span",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"title")]),_:3})]),e.createElementVNode("div",null,[e.createVNode(e.unref(d._sfc_main),{tag:"span",variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"description")]),_:3})])]))}});function f({currency:l,billingPeriod:i}){const{$t:c}=d.useIntl(),{renderPricingForPricingItem:u}=g.usePricingItem({currency:l,billingPeriod:i});return{describePricing:a=>{var s;const o=(s=a.items)==null?void 0:s[0];return o?u({pricingItem:o}):c({defaultMessage:"Unsupported pricing",id:"pricing_item_pricing.unsupported_pricing_error",description:"Text displayed when the pricing item pricing is unsupported"})},renderPricingForPricingItem:u}}const h={class:"p-1"},x={class:"pt-1"},m=3,I=6,O=e.defineComponent({__name:"PricingGroupSingleEditor",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(l){const i=l,c=e.useModel(l,"modelValue"),{describePricing:u}=f({currency:e.toRef(i,"currency"),billingPeriod:e.toRef(i,"billingPeriod")}),{isMobileViewport:p}=S.useViewport(),a=e.computed(()=>i.pricings.map(n=>n.id)),o=e.computed({get:()=>c.value.find(n=>a.value.includes(n))??void 0,set:n=>{const t=c.value.filter(r=>!a.value.includes(r));c.value=n?[...t,n]:t}}),s=e.computed(()=>i.pricings.map(n=>({label:N.getNameFromPricing(n)??"",value:n.id,description:u(n)}))),v=()=>s.value.slice(0,m),V=()=>s.value.map(({value:n,label:t,description:r})=>({label:t,subLabel:r,value:n}));return(n,t)=>(e.openBlock(),e.createBlock(e.unref(y._sfc_main),{"no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",h,[e.createVNode(_,null,{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.groupName),1)]),_:1}),e.createElementVNode("div",x,[s.value.length<=m?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:0,modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=r=>o.value=r),options:v(),direction:e.unref(p)?"column":"row","show-radio":!1},null,8,["modelValue","options","direction"])):s.value.length<=I?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:1,"single-model-value":o.value,"onUpdate:singleModelValue":t[1]||(t[1]=r=>o.value=r),options:V(),size:"xl","show-sub-label-in-input":""},null,8,["single-model-value","options"])):(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:2,modelValue:o.value,"onUpdate:modelValue":t[2]||(t[2]=r=>o.value=r),options:s.value,name:`pricing-group-range-input-${l.groupName}`},null,8,["modelValue","options","name"]))])])]),_:1}))}});exports._sfc_main=O;exports._sfc_main$1=_;exports.usePricingDescription=f;
|
package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-CHrcqSRq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),v=require("./index.es-BclokHQX.js"),d=require("./cn.es-
|
|
1
|
+
const e=require("vue"),v=require("./index.es-BclokHQX.js"),d=require("./cn.es-71nFUose.js"),u=require("./customElements-hH6pju3X.js"),g=require("./Alert.vue.es-RyK53a2P.js"),k=require("./FormMessage.vue.es-dqATjC2N.js"),x=["disabled"],w=["aria-label"],V=["id","disabled","value","aria-checked","aria-describedby"],h=["tabindex","data-testid","for","aria-label","onKeydown"],B={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(a,{emit:c}){const n=a,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),i=d.uniqueId(n.name?`radio_${n.name}_`:"radio_"),y=(r,o)=>{n.disabled||(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),t.value=o)};return(r,o)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(a.rootClass),disabled:a.disabled},[a.label?(e.openBlock(),e.createBlock(e.unref(d._sfc_main),{key:0,tag:"legend",required:a.required},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),_:1},8,["required"])):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"group","aria-label":a.label,class:e.normalizeClass([f.value,"gap-1 rounded"]),style:e.normalizeStyle(b.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,l=>(e.openBlock(),e.createElementBlock("div",{key:l.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(i)}${l.value}`,"onUpdate:modelValue":o[0]||(o[0]=s=>e.isRef(t)?t.value=s:null),disabled:a.disabled,value:l.value,type:"radio","aria-checked":e.unref(t)===l.value,"aria-describedby":l.warning?`${e.unref(i)}${l.value}-warning`:void 0,tabindex:"-1",class:"sr-only"}),null,16,V),[[e.vModelRadio,e.unref(t)]]),e.createElementVNode("label",{tabindex:a.disabled?void 0:0,"data-testid":`radio-group-item-${l.value}`,for:`${e.unref(i)}${l.value}`,"aria-label":l.label+(l.description?`: ${l.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":!a.disabled,"cursor-not-allowed":a.disabled,"border-transparent bg-white ring-1 ring-primary-600":e.unref(t)===l.value&&!a.disabled,"opacity-60":a.disabled}]),onKeydown:s=>y(s,l.value)},[a.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)===l.value,"border border-gray-300":e.unref(t)!==l.value}])},null,2)):r.$slots.prefix?e.renderSlot(r.$slots,"prefix",{option:l,optionValue:l.value},void 0,void 0,1):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex min-w-0 grow flex-col",{"opacity-50":a.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:l,optionValue:l.value},()=>[e.createTextVNode(e.toDisplayString(l.label),1)])]),_:2},1024),e.renderSlot(r.$slots,"description",{option:l,optionValue:l.value},()=>[l.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(l.description),1)]),_:2},1024)):e.createCommentVNode("",!0)])],2),e.renderSlot(r.$slots,"suffix",{option:l,optionValue:l.value})],42,h),l.warning?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:0,id:`${e.unref(i)}${l.value}-warning`,class:"mt-1",type:e.unref(t)===l.value?"danger":"neutral",role:"alert"},{default:e.withCtx(()=>[e.createElementVNode("span",B,e.toDisplayString(l.warning),1)]),_:2},1032,["id","type"])):e.createCommentVNode("",!0)]))),128))],14,w),a.error||r.$slots.helper?(e.openBlock(),e.createElementBlock("div",$,[a.error?(e.openBlock(),e.createBlock(e.unref(k._sfc_main),{key:0,message:a.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;
|
package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-CkhBp9kI.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, computed as w, openBlock as d, createElementBlock as o, normalizeClass as n, createBlock as f, unref as l, withCtx as y, createTextVNode as $, toDisplayString as v, createCommentVNode as t, createElementVNode as u, normalizeStyle as B, Fragment as S, renderList as q, withDirectives as R, mergeProps as D, isRef as E, vModelRadio as N, renderSlot as c, createVNode as K } from "vue";
|
|
2
2
|
import { u as P } from "./index.es-CXkP_k3u.mjs";
|
|
3
|
-
import { u as z, _ as M } from "./cn.es-
|
|
4
|
-
import { _ as x } from "./customElements-
|
|
3
|
+
import { u as z, _ as M } from "./cn.es-ZXNzpauQ.mjs";
|
|
4
|
+
import { _ as x } from "./customElements-q_i9y0Ph.mjs";
|
|
5
5
|
import { _ as T } from "./Alert.vue.es-lIiAWf2S.mjs";
|
|
6
6
|
import { _ as j } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
7
7
|
const F = ["disabled"], G = ["aria-label"], I = ["id", "disabled", "value", "aria-checked", "aria-describedby"], L = ["tabindex", "data-testid", "for", "aria-label", "onKeydown"], U = { class: "text-xs" }, A = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),r=require("./customElements-
|
|
1
|
+
const e=require("vue"),r=require("./customElements-hH6pju3X.js"),a={class:"flex items-center gap-4"},l={key:1},s=e.defineComponent({__name:"SectionTitle",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[n.$slots.default?(e.openBlock(),e.createBlock(e.unref(r._sfc_main),{key:0,tag:"h2",variant:"heading-3",class:"grow"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3})):e.createCommentVNode("",!0),n.$slots.right?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(n.$slots,"right")])):e.createCommentVNode("",!0)]))}}),c=e.defineComponent({__name:"Section",props:{contentClasses:{},contentBackground:{default:"gray"},title:{},noSpacing:{type:Boolean},hasError:{type:Boolean},noBorder:{type:Boolean,default:!1}},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.title?"section":"div"),null,{default:e.withCtx(()=>[e.createVNode(s,null,e.createSlots({_:2},[t.title?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),key:"0"}:void 0,n.$slots.right?{name:"right",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"right")]),key:"1"}:void 0]),1024),e.createElementVNode("div",{class:e.normalizeClass({"rounded border":!t.noBorder,"p-3 py-2":!t.noSpacing,"bg-gray-50/50":t.contentBackground==="gray","mt-1 md:mt-2":!!t.title,[t.contentClasses??""]:!!t.contentClasses,"border-red-600":t.hasError,"border-gray-100":!t.hasError})},[e.renderSlot(n.$slots,"default")],2)]),_:3}))}});exports._sfc_main=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as n, createElementBlock as r, createBlock as i, unref as c, withCtx as o, renderSlot as a, createCommentVNode as l, resolveDynamicComponent as m, createVNode as u, createSlots as f, createTextVNode as g, toDisplayString as h, createElementVNode as y, normalizeClass as B } from "vue";
|
|
2
|
-
import { _ as k } from "./customElements-
|
|
2
|
+
import { _ as k } from "./customElements-q_i9y0Ph.mjs";
|
|
3
3
|
const $ = { class: "flex items-center gap-4" }, v = { key: 1 }, C = /* @__PURE__ */ s({
|
|
4
4
|
__name: "SectionTitle",
|
|
5
5
|
setup(e) {
|
|
@@ -2,13 +2,13 @@ import { openBlock as t, createElementBlock as v, createElementVNode as c, rende
|
|
|
2
2
|
import { u as _, c as Ee, d as Le } from "./index.es-CXkP_k3u.mjs";
|
|
3
3
|
import { _ as Re, u as Be, a as De, o as Pe, f as ze } from "./floating-ui.vue.es-CYt0fSY7.mjs";
|
|
4
4
|
import { e as Ae, _ as U, s as Te, u as He } from "./sorting.es-DCihKqD2.mjs";
|
|
5
|
-
import { _ as j, S as qe, u as Ke } from "./customElements-
|
|
6
|
-
import { u as Ne } from "./cn.es-
|
|
7
|
-
import { a as fe, _ as ee } from "./Button.vue.es-
|
|
8
|
-
import { _ as Ue } from "./IconButton.vue.es-
|
|
9
|
-
import { _ as Fe } from "./Chip.vue.es-
|
|
5
|
+
import { _ as j, S as qe, u as Ke } from "./customElements-q_i9y0Ph.mjs";
|
|
6
|
+
import { u as Ne } from "./cn.es-ZXNzpauQ.mjs";
|
|
7
|
+
import { a as fe, _ as ee } from "./Button.vue.es-BbSN0uOk.mjs";
|
|
8
|
+
import { _ as Ue } from "./IconButton.vue.es-ChvsCZQG.mjs";
|
|
9
|
+
import { _ as Fe } from "./Chip.vue.es-T22Q7AF9.mjs";
|
|
10
10
|
import { a as je, i as Ze } from "./useService-Bh47bllz.mjs";
|
|
11
|
-
import { _ as Ge } from "./Input.vue.es-
|
|
11
|
+
import { _ as Ge } from "./Input.vue.es-DJQqJrsb.mjs";
|
|
12
12
|
const Ye = (e) => `checkbox-item-${e}`, We = "select-search-done-button", Je = {}, Qe = { class: "flex items-center pt-1" }, Xe = { class: "px-1.5 text-xs font-semibold text-subtle" };
|
|
13
13
|
function _e(e, w) {
|
|
14
14
|
return t(), v("div", Qe, [
|