@solvimon/solvimon-web 0.1.0-alpha.20 → 0.1.0-alpha.21
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-B9WTpz0k.js +1 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs +223 -0
- package/dist/Amount.vue.es-DExaYBqm.js +1 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/Avatar.vue.es-CJw5z7Uu.js +1 -0
- package/dist/Avatar.vue.es-ChcLSNaN.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs +60 -0
- package/dist/Button.vue.es-BWl37nzm.js +1 -0
- package/dist/Button.vue.es-VQCd3V3C.mjs +368 -0
- package/dist/Checkout.entry.ce-BTVuGyNq.js +1 -0
- package/dist/Checkout.entry.ce-DRHqEFd7.mjs +3674 -0
- package/dist/Chip.vue.es-CXG8o1Qf.mjs +114 -0
- package/dist/Chip.vue.es-DUgjuRWm.js +1 -0
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +93 -0
- package/dist/Comparators.vue.es-DmkxV0gb.js +1 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/ContentWithAsideLayout-C6yMIVJF.js +1 -0
- package/dist/ContextMenu.vue.es-BllxeDTt.js +1 -0
- package/dist/ContextMenu.vue.es-C6TKlSXs.mjs +573 -0
- package/dist/CustomerBillingInformation.vue.es-CKQH_ds0.mjs +153 -0
- package/dist/CustomerBillingInformation.vue.es-CMCZ-lIM.js +1 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs +140 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +1 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs +2700 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/Divider.vue.es-UwnWvUTl.js +1 -0
- package/dist/DividerText.vue.es-BBdydUy_.js +1 -0
- package/dist/DividerText.vue.es-Bomiy4if.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs +335 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js +1 -0
- package/dist/ErrorNotification.vue.es-0ZC_DozN.js +1 -0
- package/dist/ErrorNotification.vue.es-C6ngWAVU.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/Expand.vue.es-BtM0EZEr.js +1 -0
- package/dist/FormMessage.vue.es-dqATjC2N.js +1 -0
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +29 -0
- package/dist/IconButton.vue.es-DAR7e8NA.mjs +198 -0
- package/dist/IconButton.vue.es-DGLIdHkR.js +1 -0
- package/dist/IconTitle.vue.es-Bbusc4wK.mjs +103 -0
- package/dist/IconTitle.vue.es-D-q6w2E-.js +1 -0
- package/dist/Input.vue.es-AY1c0Rui.mjs +235 -0
- package/dist/Input.vue.es-BN95nPBw.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs +92 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +1 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs +41 -0
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +1 -0
- package/dist/InvoiceSummary.vue.es-Bs5c2Ovx.mjs +2598 -0
- package/dist/Modal.vue.es-Chi6_MH_.js +1 -0
- package/dist/Modal.vue.es-DSkC4eMv.mjs +387 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +144 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs +51 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js +1 -0
- package/dist/{PaymentHistoryBlock-Ci8aSJeb.js → PaymentHistoryBlock-DGJ_PiVq.js} +1 -1
- package/dist/PaymentHistoryBlock-budeR7ep.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs +93 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js +1 -0
- package/dist/PaymentIntegrationForm-Crrhar96.mjs +4 -0
- package/dist/{PaymentIntegrationForm-CsuueDE0.js → PaymentIntegrationForm-DqqGcEP1.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs +138 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js +1 -0
- package/dist/PaymentIntegrationFormAdyen-DM-xMcm0.mjs +621 -0
- package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +98 -0
- package/dist/PaymentIntegrationFormStripe-yBm4KnpV.mjs +488 -0
- package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +102 -0
- package/dist/PaymentMethod.vue.es-BdMcKq8_.mjs +623 -0
- package/dist/PaymentMethod.vue.es-Ctw9Es1g.js +1 -0
- package/dist/{PaymentMethodForm-hZuVHAti.js → PaymentMethodForm-BQ5TVHlS.js} +1 -1
- package/dist/PaymentMethodForm-C1bIGX10.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs +167 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js +1 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs +169 -0
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +769 -0
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +1 -0
- package/dist/PricingGroupRangeInput.vue.es-Bnb-ARie.mjs +627 -0
- package/dist/PricingGroupRangeInput.vue.es-D82XvoC_.js +185 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js +1 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs +131 -0
- package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +1 -0
- package/dist/RadioGroupExtended.vue.es-WDbo_yj1.mjs +163 -0
- package/dist/Section.vue.es-By1JltGi.mjs +72 -0
- package/dist/Section.vue.es-DuK52y67.js +1 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs +687 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js +1 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +51 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +1 -0
- package/dist/SubscriptionSchedules-DDCjVEbG.mjs +4 -0
- package/dist/SubscriptionSchedules-DEjIERyF.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs +5256 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js +1 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs +91 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs +284 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js +1 -0
- package/dist/TooltipParagraph.vue.es-DYu2ReL7.mjs +129 -0
- package/dist/TooltipParagraph.vue.es-sTgWAgcd.js +1 -0
- package/dist/TrialChip.vue.es-Cl-9_pdr.js +1 -0
- package/dist/TrialChip.vue.es-DX53r0ku.mjs +35 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/accel.svg.es-DFJXdioD.js +1 -0
- package/dist/ach.svg.es-BYP873jU.js +1 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/adyen-BJfC7N6f.js +1 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyen-CvsH5fok.mjs +117 -0
- package/dist/adyen-Druit6gz.js +1 -0
- package/dist/adyenSdk-B01MB9Ia.mjs +58 -0
- package/dist/adyenSdk-BP2XXzeJ.js +1 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amazon-pay.svg.es-CQWgtowB.js +1 -0
- package/dist/amex.svg.es-DKhW4Txt.js +1 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/api.es-QaC926Xu.mjs +43 -0
- package/dist/api.es-duCDtZD9.js +1 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/apple-pay.svg.es-Dyojd0F-.js +1 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bacs.svg.es-GJpZs1sD.js +1 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/bancontact.svg.es-BQh7nAup.js +1 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/carnet.svg.es-DY04-F2L.js +1 -0
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +1 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cashapp.svg.es-MwXGYom6.js +1 -0
- package/dist/cn.es-CNvIP217.js +1 -0
- package/dist/{cn.es-BEU5D0Wz.mjs → cn.es-DjnGlmqV.mjs} +657 -927
- package/dist/comparators.es-D8WGL-c4.mjs +153 -0
- package/dist/comparators.es-OGt19O9U.js +1 -0
- package/dist/component-5wqcK7yz.mjs +8 -0
- package/dist/component-B7ZDyqBp.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +39 -48
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +256 -307
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +43 -52
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +372 -430
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +55 -65
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +41 -46
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +43 -53
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +58 -68
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +51 -63
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +41 -50
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +49 -60
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +59 -70
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/configuration-akTS7Wiw.js +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +89 -104
- package/dist/{countryData.es--zJAd6LA.mjs → countryData.es-BegoD-cZ.mjs} +2 -2
- package/dist/countryData.es-C4jHBzfo.js +1 -0
- package/dist/customElements-Bt8PbjIn.js +1187 -0
- package/dist/customElements-Com2NiGU.mjs +6531 -0
- package/dist/customer-CKgMJEgv.mjs +31 -0
- package/dist/customer-Q4JGfVfq.js +1 -0
- package/dist/customer.es-B5ppZf0j.mjs +20 -0
- package/dist/customer.es-BButyYo0.js +1 -0
- package/dist/dana.svg.es-BDtZLpwd.js +1 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/dankort.svg.es-CksaipXF.js +1 -0
- package/dist/{de-DE-CI2zQkiP.mjs → de-DE-CVCmzlNH.mjs} +5 -5
- package/dist/{de-DE-BeyQVhTv.mjs → de-DE-DBO5f-Eu.mjs} +38 -56
- package/dist/{de-DE-_40QfLNJ.js → de-DE-DqLD4IX2.js} +1 -1
- package/dist/de-DE-Ds_yJLS3.js +1 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/diners.svg.es-D6Mu1pqP.js +1 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/discover.svg.es-DgqWCMUM.js +1 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/eftpos.svg.es-Dk2DOT8W.js +1 -0
- package/dist/elo.svg.es-C-BzjuRP.js +1 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/{en-US-5YWNEi-V.mjs → en-US-3UmnS23B.mjs} +38 -56
- package/dist/en-US-C51ILrVv.js +1 -0
- package/dist/{en-US--NRsi7Hz.js → en-US-CvFmmI_O.js} +1 -1
- package/dist/{en-US-DksUWPIu.mjs → en-US-DVR9O7b_.mjs} +5 -5
- package/dist/eps.svg.es-B_85bP-W.js +1 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/error-BHVZJGwD.mjs +13 -0
- package/dist/error-CmduqgVq.js +1 -0
- package/dist/floating-ui.vue.es-Bly3DGWm.js +1 -0
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +1108 -0
- package/dist/formatting.es-C72Nsrmh.js +1 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/gcash.svg.es-BKAdhWzv.js +1 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getComposedString.es-haS4bAj7.js +1 -0
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +8 -0
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +1 -0
- package/dist/girocard.svg.es-HSOEvDif.js +1 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/go-pay.svg.es-DQjtunZ_.js +1 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/google-pay.svg.es-hzc_EgiJ.js +1 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/hipercard.svg.es-CbCsRY2q.js +1 -0
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +4 -0
- package/dist/icon-sprite.svg.es-Dauis9LS.js +1 -0
- package/dist/ideal.svg.es-Booz1IML.js +1 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-BPU8tIml.mjs +828 -0
- package/dist/index-BPZPnOQQ.js +7 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index-DwueOtPi.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.es-BclokHQX.js +1 -0
- package/dist/index.es-CXkP_k3u.mjs +345 -0
- package/dist/index.mjs +40 -40
- package/dist/invoices-CV9iAUHf.mjs +115 -0
- package/dist/invoices-CvpL4rv5.js +1 -0
- package/dist/{it-IT-CMy1tHKZ.mjs → it-IT-CDMnnFKZ.mjs} +5 -5
- package/dist/{it-IT-aPQY57ht.js → it-IT-CFEfSpPH.js} +1 -1
- package/dist/{it-IT-B6blp8MI.mjs → it-IT-CxBRisRm.mjs} +38 -56
- package/dist/it-IT-Dxw59eR_.js +1 -0
- package/dist/jcb.svg.es-B3WPB8c2.js +1 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +1 -0
- package/dist/klarna.svg.es-Cs6XaHD7.js +1 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-BvK4oPg4.js +1 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/mastercard.svg.es-lp4AXyyV.js +1 -0
- package/dist/momo.svg.es-C5aLYf_R.js +1 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/{nl-NL-CjoW8r_M.mjs → nl-NL-BWGkVweu.mjs} +38 -56
- package/dist/nl-NL-Btbfd9p2.js +1 -0
- package/dist/{nl-NL-zRUAuEHg.js → nl-NL-jtVgF3jx.js} +1 -1
- package/dist/{nl-NL-CckNM7R9.mjs → nl-NL-o3UvtSNg.mjs} +5 -5
- package/dist/nyce.svg.es-ArAivAZW.js +1 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/object.es-CdriXMPs.js +1 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/open-banking.svg.es-Q3rRkCvP.js +1 -0
- package/dist/paymentMethods-BuwoJ1y9.mjs +75 -0
- package/dist/paymentMethods-ChWAwDSF.js +1 -0
- package/dist/payments-C_cMXQzE.mjs +45 -0
- package/dist/payments-DGckugN0.js +1 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/paypal.svg.es-Cjp5sNI3.js +1 -0
- package/dist/pricing-BVAld27Y.js +1 -0
- package/dist/pricing-DLOeiAIB.mjs +16 -0
- package/dist/pricingItemConfigs.es-DMf1e6y7.mjs +76 -0
- package/dist/pricingItemConfigs.es-DlybwIh1.js +1 -0
- package/dist/pricingPlanSchedule-COfmWv_o.js +1 -0
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +129 -0
- package/dist/pulse.svg.es-Dit33E8S.js +1 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +3 -5237
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +112 -138
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +348 -397
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +153 -170
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +609 -720
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +466 -555
- package/dist/sepa.svg.es-0t4DKeA1.js +1 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/slots.es-T9ZJRGtG.js +1 -0
- package/dist/sorting.es-DCihKqD2.mjs +77 -0
- package/dist/sorting.es-DQsjKr8A.js +1 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/star.svg.es-D2JncY7b.js +1 -0
- package/dist/subscription-9GORG-Gt.js +1 -0
- package/dist/subscription-CvfAEJeP.mjs +69 -0
- package/dist/subscriptions-B5VqRayX.mjs +55 -0
- package/dist/subscriptions-X0Ciw8z3.js +1 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/trustly.svg.es-GJByiFAs.js +1 -0
- package/dist/twint.svg.es-BJ2f48og.js +1 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/typeGuards.es-DS3vZaJn.js +1 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +2 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +7 -0
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +1 -0
- package/dist/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/url-BNKStNY9.js +1 -0
- package/dist/url-DwiuKYpu.mjs +20 -0
- package/dist/useActionDispatchProvider-B54GYEY7.js +1 -0
- package/dist/useActionDispatchProvider-e2lQXTid.mjs +11 -0
- package/dist/useCustomer-BJwJ9BkJ.js +1 -0
- package/dist/useCustomer-CC9zxV6c.mjs +20 -0
- package/dist/useCustomerFormLabels-72Pxw8X5.js +1 -0
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +930 -0
- package/dist/useExperimentalFeature-8Mzpj5wc.js +1 -0
- package/dist/useExperimentalFeature-B0IFn3Uw.mjs +6 -0
- package/dist/useIncrementalLoading-CaWOE8Xl.js +1 -0
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +48 -0
- package/dist/useInvoiceData-6mHUZC9a.mjs +38 -0
- package/dist/useInvoiceData-Bblwdl0f.js +1 -0
- package/dist/useInvoicesList-B5H5JfvY.mjs +500 -0
- package/dist/useInvoicesList-_U1-tn9_.js +1 -0
- package/dist/useLoadInitialData-CezlvhBV.js +1 -0
- package/dist/useLoadInitialData-ux_wpNiR.mjs +15 -0
- package/dist/usePaymentMethodAvailability-CkR4TwoV.mjs +118 -0
- package/dist/usePaymentMethodAvailability-DRwrBdto.js +1 -0
- package/dist/usePaymentMethodOptions-B6GIM9q4.js +1 -0
- package/dist/usePaymentMethodOptions-BfnLBZOo.mjs +37 -0
- package/dist/usePaymentMethods-C3QfLSrP.mjs +15 -0
- package/dist/usePaymentMethods-GFmQRp0X.js +1 -0
- package/dist/usePayments-BkwGyZT0.mjs +318 -0
- package/dist/usePayments-SQF_V7oL.js +1 -0
- package/dist/usePortal-BdM7hDge.js +1 -0
- package/dist/usePortal-DDG9b6FI.mjs +11 -0
- package/dist/useService-Bh47bllz.mjs +50 -0
- package/dist/useService-H7BjLg8P.js +1 -0
- package/dist/useSubscription-BJJYHYgr.mjs +210 -0
- package/dist/useSubscription-Q4C2DPhw.js +1 -0
- package/dist/useTimePeriod.es-9tZvAhyb.mjs +93 -0
- package/dist/useTimePeriod.es-pepm2TpV.js +1 -0
- package/dist/useViewport-BgdA2PPt.mjs +29 -0
- package/dist/useViewport-hPRVDWCm.js +1 -0
- package/dist/useWatchDebounced-CAU1WI1P.js +1 -0
- package/dist/useWatchDebounced-DT5IicPp.mjs +14 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/visa.svg.es-NY3BHhda.js +1 -0
- package/dist/vpay.svg.es-VViQi42w.js +1 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/zip.svg.es-C9S_F31W.js +1 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +3 -3
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs +0 -240
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +0 -1
- package/dist/Amount.vue.es-BO5sS1UX.mjs +0 -25
- package/dist/Amount.vue.es-JDVa_3H-.js +0 -1
- package/dist/Avatar.vue.es-BGTZSAqU.js +0 -1
- package/dist/Avatar.vue.es-DJzJiYtv.mjs +0 -91
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs +0 -66
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js +0 -1
- package/dist/Button.vue.es-Cm9pLU9i.mjs +0 -421
- package/dist/Button.vue.es-O8mNivLL.js +0 -1
- package/dist/Chip.vue.es-BBmn-qJp.mjs +0 -120
- package/dist/Chip.vue.es-DmCjC1hi.js +0 -1
- package/dist/Comparators.vue.es-CYfxd5H-.mjs +0 -120
- package/dist/Comparators.vue.es-DK8wGjxM.js +0 -1
- package/dist/ContentWithAsideLayout-DHpnJfGA.js +0 -1
- package/dist/ContentWithAsideLayout-Dy9xgxuF.mjs +0 -39
- package/dist/ContextMenu.vue.es-CTc1ktXb.mjs +0 -681
- package/dist/ContextMenu.vue.es-DaW0yp4Y.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BX0Da7Kr.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-CMZO8oLj.mjs +0 -175
- package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +0 -4
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs +0 -150
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs +0 -3264
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-CeAHAe_Y.mjs +0 -72
- package/dist/DividerText.vue.es-DjT4i_YD.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs +0 -562
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js +0 -1
- package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +0 -38
- package/dist/ErrorNotification.vue.es-CaEFTi2k.js +0 -1
- package/dist/Expand.vue.es-C-lnbA1v.js +0 -1
- package/dist/Expand.vue.es-C4_XmqbR.mjs +0 -50
- package/dist/FormMessage.vue.es-Bd4_NG9H.js +0 -1
- package/dist/FormMessage.vue.es-C3oxwq_8.mjs +0 -46
- package/dist/IconButton.vue.es-BHdQskx0.js +0 -1
- package/dist/IconButton.vue.es-KywqWWvr.mjs +0 -228
- package/dist/IconTitle.vue.es-BmjBdZb_.mjs +0 -107
- package/dist/IconTitle.vue.es-D9Wc3PIq.js +0 -1
- package/dist/Input.vue.es-DqKJhFTr.js +0 -1
- package/dist/Input.vue.es-WZGF8dfr.mjs +0 -251
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs +0 -97
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs +0 -49
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js +0 -1
- package/dist/InvoiceSummary.vue.es-BI5sD_8F.mjs +0 -2944
- package/dist/InvoiceSummary.vue.es-BWYIHezU.js +0 -1
- package/dist/Modal.vue.es-B_1aqm_m.js +0 -1
- package/dist/Modal.vue.es-qdUHDOnU.mjs +0 -483
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs +0 -154
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs +0 -54
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js +0 -1
- package/dist/PaymentHistoryBlock-CgNUV8Gy.mjs +0 -4
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs +0 -101
- package/dist/PaymentIntegrationForm-CLokpXvK.mjs +0 -4
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs +0 -167
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-C885o8IE.mjs +0 -699
- package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +0 -1
- package/dist/PaymentIntegrationFormStripe-BjMdJmDC.mjs +0 -547
- package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +0 -1
- package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +0 -1
- package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +0 -677
- package/dist/PaymentMethodForm-IEuDxEPN.mjs +0 -4
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs +0 -172
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs +0 -189
- package/dist/PricingGroupRangeInput.vue.es-ButaePib.mjs +0 -632
- package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +0 -1
- package/dist/Section.vue.es-CAJvEDn6.js +0 -1
- package/dist/Section.vue.es-DX_9ueCG.mjs +0 -79
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs +0 -1044
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs +0 -78
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs +0 -6171
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs +0 -101
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs +0 -309
- package/dist/TooltipParagraph.vue.es-C5RTcrid.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-H9fI7zzt.js +0 -1
- package/dist/TrialChip.vue.es-B1puKyR-.mjs +0 -56
- package/dist/TrialChip.vue.es-CCs50m02.js +0 -1
- package/dist/accel.svg.es-CE5tIWtm.mjs +0 -4
- package/dist/accel.svg.es-Dt_1wJmV.js +0 -1
- package/dist/ach.svg.es-B4tn0_IV.js +0 -1
- package/dist/ach.svg.es-D4QPcIU-.mjs +0 -4
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-BXi_D9TQ.mjs +0 -123
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/adyen-VS2sDW0m.js +0 -1
- package/dist/amazon-pay.svg.es-B428S4f3.js +0 -1
- package/dist/amazon-pay.svg.es-DUScOW15.mjs +0 -4
- package/dist/amex.svg.es-BCXkaVLN.mjs +0 -4
- package/dist/amex.svg.es-Bn9e31C3.js +0 -1
- package/dist/api.es-C5pe8LUl.mjs +0 -62
- package/dist/api.es-Czekkp_X.js +0 -1
- package/dist/apple-pay.svg.es-Cfgn0K28.js +0 -1
- package/dist/apple-pay.svg.es-DlCfkt39.mjs +0 -4
- package/dist/bacs.svg.es-BKsvSeIP.mjs +0 -4
- package/dist/bacs.svg.es-hL7hLPkQ.js +0 -1
- package/dist/bancontact.svg.es-BbRqGgZ9.mjs +0 -4
- package/dist/bancontact.svg.es-DU2ejvNL.js +0 -1
- package/dist/carnet.svg.es-C5SFaOsa.js +0 -1
- package/dist/carnet.svg.es-Db-KEb13.mjs +0 -4
- package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +0 -4
- package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +0 -1
- package/dist/cashapp.svg.es-CnS5r_D8.mjs +0 -4
- package/dist/cashapp.svg.es-DE4vMu_p.js +0 -1
- package/dist/cn.es-DxSeYcoP.js +0 -1
- package/dist/comparators.es-9VsCB-JI.mjs +0 -175
- package/dist/comparators.es-wrKHduVq.js +0 -1
- package/dist/component-BG6DmXcy.mjs +0 -9
- package/dist/component-hDuDTBt5.js +0 -1
- package/dist/configuration-BjYwV4_B.js +0 -1
- package/dist/configuration-CD8cOXAJ.mjs +0 -15
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customElements-B-89a5oH.mjs +0 -6810
- package/dist/customElements-DD7bpqkx.js +0 -1
- package/dist/customer-DozNwS_a.js +0 -1
- package/dist/customer-Dzj1g9lV.mjs +0 -32
- package/dist/customer.es-C_vSWcVA.mjs +0 -30
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/dana.svg.es-Bbn6_ktN.mjs +0 -4
- package/dist/dana.svg.es-DKZaseoJ.js +0 -1
- package/dist/dankort.svg.es-D8FgSiFf.js +0 -1
- package/dist/dankort.svg.es-DtAdliQq.mjs +0 -4
- package/dist/de-DE-BvHD68Ay.js +0 -1
- package/dist/diners.svg.es-DhchsD1D.mjs +0 -4
- package/dist/diners.svg.es-SydF_H-Z.js +0 -1
- package/dist/discover.svg.es-B8vgzVNG.js +0 -1
- package/dist/discover.svg.es-BnqYPvnV.mjs +0 -4
- package/dist/eftpos.svg.es-DO0YPaY1.js +0 -1
- package/dist/eftpos.svg.es-DRLaafYa.mjs +0 -4
- package/dist/elo.svg.es-CTOm1rvj.js +0 -1
- package/dist/elo.svg.es-CgkEOP_O.mjs +0 -4
- package/dist/en-US-dqfKx3GS.js +0 -1
- package/dist/eps.svg.es-CApyGjyU.js +0 -1
- package/dist/eps.svg.es-D6IHsRYP.mjs +0 -4
- package/dist/error-Cg-i7gGl.js +0 -1
- package/dist/error-DY_I2hPx.mjs +0 -13
- package/dist/floating-ui.vue.es-Bv94BfDm.js +0 -1
- package/dist/floating-ui.vue.es-DWY7pdz8.mjs +0 -1573
- package/dist/formatting.es-DBtYnvI5.js +0 -1
- package/dist/formatting.es-eYgXv_AK.mjs +0 -70
- package/dist/gcash.svg.es-BhJ-eA2z.mjs +0 -4
- package/dist/gcash.svg.es-JaL4fpZr.js +0 -1
- package/dist/getComposedString.es-CELkn0I7.mjs +0 -14
- package/dist/getComposedString.es-DvSNX-_z.js +0 -1
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/girocard.svg.es-D_3LML4l.mjs +0 -4
- package/dist/girocard.svg.es-tVgtT23w.js +0 -1
- package/dist/go-pay.svg.es-6UtgwVBA.mjs +0 -4
- package/dist/go-pay.svg.es-fYX6yMzJ.js +0 -1
- package/dist/google-pay.svg.es-BYXX1em8.js +0 -1
- package/dist/google-pay.svg.es-CRxXgFVl.mjs +0 -4
- package/dist/hipercard.svg.es-Ct1-mF9F.mjs +0 -4
- package/dist/hipercard.svg.es-D-nmiFXB.js +0 -1
- package/dist/icon-sprite.svg.es-BpwT0GQ5.js +0 -1
- package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +0 -4
- package/dist/ideal.svg.es-D23EhJJ2.mjs +0 -4
- package/dist/ideal.svg.es-DXtHE0Jb.js +0 -1
- package/dist/index-Cai7laNY.mjs +0 -1069
- package/dist/index-DIFK3mcJ.js +0 -6
- package/dist/index-DyvRdSR7.mjs +0 -9673
- package/dist/index-IZaUTAsE.js +0 -1
- package/dist/index.es-2JWHHSgP.js +0 -1
- package/dist/index.es-D5xOw_SJ.mjs +0 -542
- package/dist/invoices-1oYkdQQV.mjs +0 -121
- package/dist/invoices-BAoh6X2a.js +0 -1
- package/dist/it-IT-CEP3oeWs.js +0 -1
- package/dist/jcb.svg.es-Bz6J-c0s.js +0 -1
- package/dist/jcb.svg.es-CcH08OoO.mjs +0 -4
- package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +0 -4
- package/dist/kakao-pay.svg.es-qVTABboW.js +0 -1
- package/dist/klarna.svg.es-Clu-7zkp.js +0 -1
- package/dist/klarna.svg.es-DfIPX0gr.mjs +0 -4
- package/dist/maestro.svg.es-CVmNVokN.mjs +0 -4
- package/dist/maestro.svg.es-e8E_H2QU.js +0 -1
- package/dist/mastercard.svg.es-B8z0ZySS.mjs +0 -4
- package/dist/mastercard.svg.es-YO3_jGD6.js +0 -1
- package/dist/momo.svg.es-BXTQlQRy.js +0 -1
- package/dist/momo.svg.es-Bm5zCTOT.mjs +0 -4
- package/dist/nl-NL-e_vf6OuT.js +0 -1
- package/dist/nyce.svg.es-CgurqLKH.mjs +0 -4
- package/dist/nyce.svg.es-DM6esO47.js +0 -1
- package/dist/object.es-DFXiU9p3.js +0 -1
- package/dist/object.es-jvvnR8Kr.mjs +0 -12
- package/dist/open-banking.svg.es-DUM360xB.js +0 -1
- package/dist/open-banking.svg.es-DzzLCVp_.mjs +0 -4
- package/dist/paymentMethods-CZ3ydybI.js +0 -1
- package/dist/paymentMethods-DIV78w0O.mjs +0 -78
- package/dist/payments--lkjiwCt.js +0 -1
- package/dist/payments-Cvqdrprv.mjs +0 -47
- package/dist/paypal.svg.es-BdkNTf3c.js +0 -1
- package/dist/paypal.svg.es-DltWzW4V.mjs +0 -4
- package/dist/pricing-3W7XLwL6.js +0 -1
- package/dist/pricing-CJxS2hr2.mjs +0 -17
- package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +0 -107
- package/dist/pricingItemConfigs.es-C73cQlxQ.js +0 -1
- package/dist/pricingPlanSchedule-B9HFiXy-.js +0 -1
- package/dist/pricingPlanSchedule-CXG3CQ61.mjs +0 -146
- package/dist/pulse.svg.es-BdpWAuIN.js +0 -1
- package/dist/pulse.svg.es-BecAwT-p.mjs +0 -4
- package/dist/sepa.svg.es-BF8PYKZg.js +0 -1
- package/dist/sepa.svg.es-cbE9g8gV.mjs +0 -4
- package/dist/slots.es-BpwYO3A3.mjs +0 -18
- package/dist/slots.es-Dq1PTUOv.js +0 -1
- package/dist/sorting.es-CjTrRfSW.mjs +0 -105
- package/dist/sorting.es-RyvcgbSL.js +0 -1
- package/dist/star.svg.es-DsCD-tSp.mjs +0 -4
- package/dist/star.svg.es-Q50IzqXr.js +0 -1
- package/dist/subscription-C41lG-rH.mjs +0 -89
- package/dist/subscription-b0OPx8Du.js +0 -1
- package/dist/subscriptions-300o4ae0.js +0 -1
- package/dist/subscriptions-DcMHBPVJ.mjs +0 -58
- package/dist/trustly.svg.es-C0Ou1HWk.mjs +0 -4
- package/dist/trustly.svg.es-CHojqNqm.js +0 -1
- package/dist/twint.svg.es-CQ-ZDfy8.js +0 -1
- package/dist/twint.svg.es-WrZYquRs.mjs +0 -4
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/unionpay.svg.es-DYgo83Hf.mjs +0 -4
- package/dist/unionpay.svg.es-YqJKKFEj.js +0 -1
- package/dist/url-CjULBkjW.js +0 -1
- package/dist/url-CvNDq4wp.mjs +0 -22
- package/dist/useActionDispatchProvider-BVOBO0Jx.mjs +0 -12
- package/dist/useActionDispatchProvider-Cv9amjTf.js +0 -1
- package/dist/useCustomer-DLHOs4BR.js +0 -1
- package/dist/useCustomer-EDhref7T.mjs +0 -25
- package/dist/useCustomerFormLabels-B61-4xQ7.mjs +0 -1168
- package/dist/useCustomerFormLabels-C6wW4n2e.js +0 -1
- package/dist/useExperimentalFeature-0yFoaEzV.js +0 -1
- package/dist/useExperimentalFeature-DvxOrFPU.mjs +0 -9
- package/dist/useIncrementalLoading-BK9pRYAU.mjs +0 -71
- package/dist/useIncrementalLoading-CdtGJm_Y.js +0 -1
- package/dist/useInvoiceData-BSjVeJrI.js +0 -1
- package/dist/useInvoiceData-C0Y5WrbT.mjs +0 -45
- package/dist/useInvoicesList-BRDZqsaB.js +0 -1
- package/dist/useInvoicesList-CYoE7q0u.mjs +0 -580
- package/dist/useLoadInitialData-Cp1OA8y6.mjs +0 -18
- package/dist/useLoadInitialData-u7IyXqb6.js +0 -1
- package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +0 -1
- package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +0 -141
- package/dist/usePaymentMethodOptions--8QpMvNm.js +0 -1
- package/dist/usePaymentMethodOptions-Cljh7HYp.mjs +0 -36
- package/dist/usePaymentMethods-BJzoI8dZ.mjs +0 -16
- package/dist/usePaymentMethods-DvEnJWmB.js +0 -1
- package/dist/usePayments-CANj0QVc.js +0 -1
- package/dist/usePayments-CaT1CBzE.mjs +0 -362
- package/dist/usePortal-BjGoSeLy.js +0 -1
- package/dist/usePortal-CMPQ0M9R.mjs +0 -12
- package/dist/useService-D73FNBjT.js +0 -1
- package/dist/useService-W3Kxems4.mjs +0 -72
- package/dist/useSubscription-D1UKnZAx.mjs +0 -250
- package/dist/useSubscription-DZfRHbL7.js +0 -1
- package/dist/useViewport-Bu0cyeSi.mjs +0 -38
- package/dist/useViewport-CKRY1CKR.js +0 -1
- package/dist/useWatchDebounced-C_YxgoQ6.js +0 -1
- package/dist/useWatchDebounced-Zmxd6InB.mjs +0 -16
- package/dist/visa.svg.es-B6aU_qRs.mjs +0 -4
- package/dist/visa.svg.es-D6sc4YTE.js +0 -1
- package/dist/vpay.svg.es-4qIqS4aX.mjs +0 -4
- package/dist/vpay.svg.es-CLGTyB09.js +0 -1
- package/dist/zip.svg.es-3PzSBe1E.mjs +0 -4
- package/dist/zip.svg.es-BRsgmur-.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),Lt=require("./Section.vue.es-DuK52y67.js"),Q=require("./formatting.es-C72Nsrmh.js"),ht=require("./comparators.es-OGt19O9U.js"),Z=require("./Chip.vue.es-DUgjuRWm.js"),ne=require("./Expand.vue.es-BtM0EZEr.js"),ie=require("./cn.es-CNvIP217.js"),E=require("./customElements-Bt8PbjIn.js"),G=require("./floating-ui.vue.es-Bly3DGWm.js"),bt=require("./IconTitle.vue.es-D-q6w2E-.js"),L=require("./Button.vue.es-BWl37nzm.js"),ue=require("./index.es-BclokHQX.js"),me=require("./IconButton.vue.es-DGLIdHkR.js"),Mt=require("./getComposedString.es-haS4bAj7.js"),F=require("./useService-H7BjLg8P.js"),de=require("./DividerText.vue.es-BBdydUy_.js"),z=require("./Amount.vue.es-DExaYBqm.js"),re=require("./Comparators.vue.es-DmkxV0gb.js"),I=require("./TooltipParagraph.vue.es-sTgWAgcd.js"),T=require("./pricingItemConfigs.es-DlybwIh1.js"),pe=require("./slots.es-T9ZJRGtG.js"),H=require("./typeGuards.es-DS3vZaJn.js"),ot=require("./PricingGroupRangeInput.vue.es-D82XvoC_.js"),Rt=require("./Avatar.vue.es-CJw5z7Uu.js"),lt=require("./TrialChip.vue.es-Cl-9_pdr.js"),at=require("./object.es-CdriXMPs.js"),At=1122.515625;function Ft(t,n,i,o){const u=n.getBoundingClientRect().top+window.scrollY,r=Math.floor(u/o),g=[...t.querySelectorAll(i)];for(let l=g.length-1;l>=0;l--){const v=g[l],c=v.getBoundingClientRect().top+window.scrollY,s=Math.floor(c/o);if(c<u&&s===r)return v;if(c<u&&s<r)break}return null}function Zt(t,n){if(!(n!=null&&n.length))return 0;const i=new Set;return n.reduce((o,u)=>{const r=t.querySelector(u);return!r||i.has(r)?o:(i.add(r),o+r.getBoundingClientRect().height)},0)}function Ut(t,n,i={enabled:!1}){const o=i.pageHeight??At,u=i.pushThreshold??.6,r=i.smallOverflowRatio??.1,g=[],l=b=>{var m;if((m=i.expandSelectors)!=null&&m.length)for(const d of i.expandSelectors)b.querySelectorAll(d).forEach(f=>{getComputedStyle(f).display==="none"&&(f.style.display="block",g.push(f))})},v=()=>{g.forEach(b=>b.style.display="none"),g.length=0},c=()=>{const b=t.value;if(!b)return;l(b);const d=((b.getBoundingClientRect().top+window.scrollY)%o+o)%o;[...b.querySelectorAll(n)].forEach(B=>{B.style.marginTop="";const k=B.getBoundingClientRect().top+window.scrollY,C=B.getBoundingClientRect().height,y=((k-d)%o+o)%o,a=o-y,h=Zt(B,i.protectedTopSelectors);if(C<=a)return;const p=(_,S)=>{const w=i.companionSelector?Ft(b,_,i.companionSelector,o):null;if(w){const D=((w.getBoundingClientRect().top+window.scrollY-d)%o+o)%o,$=o-D;D>o*.5?w.style.marginTop=`${$}px`:_.style.marginTop=`${S}px`}else _.style.marginTop=`${S}px`};if(h>0&&a<h){p(B,a);return}if(C>o){y>o*.5&&p(B,a);return}const N=(C-a)/o<r,x=a/C<u;(N||x)&&p(B,a)})},s=()=>{const b=t.value;b&&(v(),b.querySelectorAll(n).forEach(m=>{m.style.marginTop=""}),i.companionSelector&&b.querySelectorAll(i.companionSelector).forEach(m=>{m.style.marginTop=""}))};return e.onMounted(()=>{i.enabled&&(window.addEventListener("beforeprint",c),window.addEventListener("afterprint",s))}),e.onUnmounted(()=>{i.enabled&&(window.removeEventListener("beforeprint",c),window.removeEventListener("afterprint",s))}),{adjust:c,reset:s}}const Ht=(t,n={})=>{const{estimatedHeight:i,mountMargin:o="200px 0px",unmountMargin:u="600px 0px",keepMountedOnce:r=!1}=n,g=()=>e.unref(n.disabled)??!1,l=e.ref(g()),v=e.ref(null),c=async()=>{l.value=!0,await e.nextTick();const d=e.unref(t);d&&d.offsetHeight>0&&(v.value=d.offsetHeight)},s=ue.useIntersectionObserver(t,([d])=>{g()||!(d!=null&&d.isIntersecting)||(c(),r&&(s.stop(),b.stop()))},{rootMargin:o,threshold:0}),b=ue.useIntersectionObserver(t,([d])=>{g()||r||d!=null&&d.isIntersecting||(l.value=!1)},{rootMargin:u,threshold:0});s.isSupported.value||(l.value=!0),e.watch(g,d=>{d&&c()}),e.onBeforeUnmount(()=>{s.stop(),b.stop()});const m=e.computed(()=>{if(l.value)return;const d=v.value??i;return d===void 0?void 0:{minHeight:`${d}px`}});return{shouldRender:l,placeholderStyle:m}},yt=Symbol("expandedConfigs"),Gt=(t={})=>{const n=e.ref(!t.defaultCollapsed),i=e.reactive(new Set),o=g=>i.has(g)?!n.value:n.value,u=(g,l)=>{l===n.value?i.delete(g):i.add(g)},r=g=>Array.isArray(g)?g:[g];return{isExpanded:o,toggle:g=>u(g,!o(g)),expand:g=>r(g).forEach(l=>u(l,!0)),collapse:g=>r(g).forEach(l=>u(l,!1)),expandAll:()=>{n.value=!0,i.clear()},collapseAll:()=>{n.value=!1,i.clear()}}},_t=(t={})=>{const n=Gt(t);return e.provide(yt,n),n},jt=(t={})=>{const n=e.inject(yt,null);return n||_t(t)},qt=Symbol("viewportGating"),Wt=()=>e.inject(qt,!1),Yt=(t,n=!0)=>{const i=Mt.getComposedString((t.products??[]).map(o=>o.name??""));return t.name?n?`${t.name} - ${i}`:t.name:i},Kt=(t,n)=>{var i,o;return!!((i=t.enabled_pricings)!=null&&i.some(({pricing_id:u})=>u===n.id)||(o=t.override_pricings)!=null&&o.some(u=>"id"in u&&u.id===n.id||u.original_pricing_id===n.id))},rt=t=>{var n,i;return[...((n=t.enabled_pricings)==null?void 0:n.map(({pricing_id:o})=>o))??[],...((i=t.override_pricings)==null?void 0:i.map(o=>"id"in o?o.id:o.original_pricing_id))??[]]},kt=({schedule:t,pricingItemConfigIds:n})=>{var i,o;const u=new Date,r=new Set(n),g=(i=t.seats_values)==null?void 0:i.map((l,v)=>({seatsValue:l,index:v})).filter(({seatsValue:l})=>{if(!r.has(l.pricing_item_config_id))return!1;const v=l.set_start_at_to_now||!l.start_at||new Date(l.start_at)<=u,c=!l.end_at||new Date(l.end_at)>u;return v&&c});return(o=g==null?void 0:g.sort((l,v)=>{const c=l.seatsValue.set_start_at_to_now?u.getTime():l.seatsValue.start_at?new Date(l.seatsValue.start_at).getTime():0,s=v.seatsValue.set_start_at_to_now?u.getTime():v.seatsValue.start_at?new Date(v.seatsValue.start_at).getTime():0;return s!==c?s-c:v.index-l.index})[0])==null?void 0:o.seatsValue},ct=(t,n)=>{var i;const o=l=>l==null?void 0:l.map(v=>{var c;return{...v,configs:(c=v.configs)==null?void 0:c.map(r)}}),u=l=>l==null?void 0:l.map(v=>{var c;return{...v,configs:(c=v.configs)==null?void 0:c.map(r),billing_period_configs:o(v.billing_period_configs)}}),r=l=>{var v,c,s;const b=(v=n.included_volumes)==null?void 0:v.find(d=>d.pricing_item_config_id===l.id),m=kt({schedule:n,pricingItemConfigIds:[l.id]})??((c=n.seats_values)==null?void 0:c.find(d=>d.pricing_item_config_id===l.id));return{...l,...!F.isEmpty(b)&&{default_included_volume:at.pick(b,["amount","number","reset_type"])},...!F.isEmpty(m)&&{default_seats_value:at.pick(m,"number")},conditions:l.conditions?{...l.conditions,configs:(s=l.conditions.configs)==null?void 0:s.map(r)}:void 0}};return{...t,entitlements:(l=>{var v,c,s;const b=f=>{var B;return(B=l.products)==null?void 0:B.some(k=>{var C;return(C=k.features)==null?void 0:C.some(y=>y.id===f.feature_id)})},m=((c=(v=n.entitlements)==null?void 0:v.filter(f=>b(f)))==null?void 0:c.reduce((f,B)=>{var k,C;const y=(C=(k=l.entitlements)==null?void 0:k.find(a=>a.feature_id===B.feature_id))==null?void 0:C.feature;return y?[...f,{...B,feature:y}]:f},[]))??[];return F.isEmpty(m)?l.entitlements:[...((s=l.entitlements)==null?void 0:s.filter(f=>b(f)&&!(m!=null&&m.some(B=>B.feature_id===f.feature_id))))??[],...m]})(t),items:(i=t.items)==null?void 0:i.map(l=>({...l,...l.configs&&{configs:l.configs.map(r)},...l.billing_period_configs&&{billing_period_configs:o(l.billing_period_configs)},...l.pricing_currency_configs&&{pricing_currency_configs:u(l.pricing_currency_configs)}}))}},st=(t,n,i={displayDisabledAddonPricings:!1})=>{var o,u;const r=g=>i.displayDisabledAddonPricings||g.product_type!=="ADDON"||Kt(n,g);return{...t,pricing_categories:(u=(o=t.pricing_categories)==null?void 0:o.map(g=>{var l,v,c,s;return{...g,pricing_groups:(v=(l=g.pricing_groups)==null?void 0:l.map(b=>{var m,d;return{...b,pricings:(d=(m=b.pricings)==null?void 0:m.filter(r))==null?void 0:d.map(f=>ct(f,n))}}))==null?void 0:v.filter(b=>!F.isEmpty(b.pricings)),pricings:(s=(c=g.pricings)==null?void 0:c.filter(r))==null?void 0:s.map(b=>ct(b,n))}}))==null?void 0:u.filter(g=>i.displayDisabledAddonPricings||!(F.isEmpty(g.pricing_groups)&&F.isEmpty(g.pricings)))}},Jt=t=>t.type==="REVENUE",Xt=t=>t.type==="DEDUCTION",Qt=t=>!!(t!=null&&t.every(Jt)),en=t=>!!t&&t.length>0&&(t==null?void 0:t.every(Xt)),tn=t=>["AT_MOST_ONE","EXACTLY_ONE"].includes(t.selection_constraint),nn=t=>n=>{if(!n)return 0;if(n.tier_top_bound&&H.isBandNumber(n.tier_top_bound))return t.formatNumber(+n.tier_top_bound.number);if(H.isBandCount(n.tier_top_bound))return t.formatNumber(+n.tier_top_bound.count);if(H.isBandAmount(n.tier_top_bound))return Q.formatAmount(n.tier_top_bound.amount)},on=t=>(n,i,o)=>{if(o===i.length-1)return t.infinite;if(n.tier_top_bound&&"number"in n.tier_top_bound&&H.isBandNumber(n.tier_top_bound))return t.formatNumber(+n.tier_top_bound.number);if(n.tier_top_bound&&"count"in n.tier_top_bound&&H.isBandCount(n.tier_top_bound))return t.formatNumber(+n.tier_top_bound.count);if(n.tier_top_bound&&"amount"in n.tier_top_bound&&H.isBandAmount(n.tier_top_bound))return Q.formatAmount(n.tier_top_bound.amount)},ln=(t,n)=>{var i,o;return(o=(i=t.markup)==null?void 0:i.pricing_item_configs)==null?void 0:o.find(({ids:u})=>u==null?void 0:u.includes(n.id))},an=(t,n)=>t.type===n.type&&t.value===n.value,dt=(t,n)=>t!=null&&t.length?n?t.filter(({billing_period:i})=>an(i,n)):t:[],Ct=(t,n)=>{var i;if(!((i=t.pricing_currency_configs)!=null&&i.length)||!n)return;const o=t.pricing_currency_configs.find(u=>u.currency===n)??t.pricing_currency_configs[0];if(o)return o.fallback_currency?{config:t.pricing_currency_configs.find(r=>r.currency===o.fallback_currency),additionalFields:{use_fallback_currency:!0,fallback_currency:o.fallback_currency}}:{config:o,additionalFields:void 0}},rn=(t,n)=>{var i,o,u,r;if(!((i=t.pricing_currency_configs)!=null&&i.length))return(((o=t.billing_period_configs)==null?void 0:o.length)??0)>0;const g=Ct(t,n);return(((r=(u=g==null?void 0:g.config)==null?void 0:u.billing_period_configs)==null?void 0:r.length)??0)>0},cn=(t,n,i)=>{var o,u,r,g;const{configs:l,billing_period_configs:v,...c}=t;if(!((o=t.pricing_currency_configs)!=null&&o.length)&&((u=t.billing_period_configs)!=null&&u.length)){const b=dt(t.billing_period_configs,i).flatMap(m=>(m.configs??[]).map(d=>{var f;return{...d,details:{...d.details,pricing_period:((f=d.details)==null?void 0:f.pricing_period)??m.billing_period}}}));return{...c,configs:b}}if(!((r=t.pricing_currency_configs)!=null&&r.length)||!n)return t;const s=Ct(t,n);if(!(s!=null&&s.config))return t;if((g=s.config.billing_period_configs)!=null&&g.length){const b=dt(s.config.billing_period_configs,i).flatMap(m=>(m.configs??[]).map(d=>{var f;return{...d,...s.additionalFields,details:{...d.details,pricing_period:((f=d.details)==null?void 0:f.pricing_period)??m.billing_period}}}));return{...c,configs:b}}return{...c,configs:(s.config.configs??[]).map(b=>({...b,...s.additionalFields}))}},ut=(t,n,i)=>{var o;return(o=t.items)!=null&&o.length?t.items.map(u=>cn(u,n,i)):t.items},sn=(t,n,i)=>{var o;return{...t,pricing_categories:(o=t.pricing_categories)==null?void 0:o.map(u=>{var r,g;return{...u,pricings:(r=u.pricings)==null?void 0:r.map(l=>({...l,items:ut(l,n,i)})),pricing_groups:(g=u.pricing_groups)==null?void 0:g.map(l=>{var v;return{...l,pricings:(v=l.pricings)==null?void 0:v.map(c=>({...c,items:ut(c,n,i)}))}})}})}},dn=(t,n)=>{const i=[],o=u=>{for(const r of u??[]){const g=(r.items??[]).filter(l=>rn(l,n)).map(l=>l.id);i.push([r.id,g])}};for(const u of t.pricing_categories??[]){o(u.pricings);for(const r of u.pricing_groups??[])o(r.pricings)}return Object.fromEntries(i)},un=t=>{var n;for(const i of(t==null?void 0:t.pricing_categories)??[]){for(const o of i.pricing_groups??[])if(o.pricings[0])return o.pricings[0].id;if((n=i.pricings)!=null&&n[0])return i.pricings[0].id}},mn=(t,n)=>{if(t.length>0)return t;const i=un(n);return i?[i]:[]},pn=t=>"object_type"in t,ve=t=>(t.pricing_categories??[]).filter(pn),gn=t=>ve(t).flatMap(n=>n.pricings??[]),fn=t=>ve(t).flatMap(n=>n.pricing_groups??[]),vn=t=>gn(t).length>0||fn(t).length>0,hn=t=>({object_type:"PRICING_PLAN",id:t.pricing_plan_id??`direct_${t.id}`,reference:`direct_${t.id}`,name:"",type:"CUSTOM",variant:"DEFAULT"}),mt=t=>{const{entitlements:n,...i}=t;return i},bn=t=>{const{pricings:n,pricing_groups:i,...o}=t;return{...o,pricings:n==null?void 0:n.map(mt),pricing_groups:i==null?void 0:i.map(u=>({...u,pricings:(u.pricings??[]).map(mt)}))}},yn=(t,n)=>{if(!vn(t))return;const i=(n==null?void 0:n.pricingPlan)??hn(t);return{object_type:"PRICING_PLAN_VERSION",id:`direct_${t.id}`,pricing_plan_id:i.id,pricing_plan:i,version:1,status:"ACTIVE",pricing_categories:ve(t).map(bn)}},he=e.defineComponent({__name:"CardContent",props:{spacing:{default:"md"}},setup(t){return(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"p-2":t.spacing==="xs","px-4 py-3":t.spacing==="sm","p-4":t.spacing==="md","px-8 py-6":t.spacing==="lg"})},[e.renderSlot(n.$slots,"default")],2))}}),ge="w-6",_n=e.defineComponent({__name:"CollapsibleList",props:{type:{default:"ordered"},hasAddButton:{type:Boolean},i18n:{}},emits:["add"],setup(t){const n=t,i=e.computed(()=>n.type==="ordered"?"ol":"ul");return(o,u)=>{var r;return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),null,{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3})),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col items-center justify-center",e.unref(ge)])},[t.hasAddButton?(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{key:0,square:"","aria-label":((r=t.i18n)==null?void 0:r.addButtonLabel)??"Add item",intent:"secondary",size:"sm","icon-prefix":"add",onClick:u[0]||(u[0]=g=>o.$emit("add"))},null,8,["aria-label"])):e.createCommentVNode("",!0)],2)])}}}),kn=e.defineComponent({__name:"CombinedVolumeChip",props:{i18n:{},placement:{}},setup(t){return(n,i)=>(e.openBlock(),e.createBlock(I._sfc_main,{offset:4,placement:t.placement},{default:e.withCtx(()=>[e.createVNode(Z._sfc_main,{intent:"neutral"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.combinedVolume),1)]),_:1})]),tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.description),1)]),_:1})]),_:1})]),_:1},8,["placement"]))}}),Cn=["aria-label","aria-expanded","disabled"],xt=e.defineComponent({__name:"ExpandController",props:{isCollapsible:{type:Boolean,default:!0},isExpanded:{type:Boolean,default:!1},iconPosition:{default:"before"},collapsedIcon:{default:"unfold_more"},expandedIcon:{default:"unfold_less"},iconSize:{default:"xs"},rootClass:{},ariaLabel:{},disabled:{type:Boolean,default:!1}},emits:["toggle"],setup(t,{emit:n}){const i=t,o=n,u=e.computed(()=>i.isExpanded?i.expandedIcon:i.collapsedIcon);return(r,g)=>t.isCollapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["flex cursor-pointer items-center disabled:cursor-not-allowed",t.rootClass]),"aria-label":t.ariaLabel,"aria-expanded":t.isExpanded,disabled:t.disabled,onClick:g[0]||(g[0]=l=>o("toggle"))},[t.iconPosition==="before"?(e.openBlock(),e.createBlock(L._sfc_main$1,{key:0,icon:u.value,size:t.iconSize},null,8,["icon","size"])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default"),t.iconPosition==="after"?(e.openBlock(),e.createBlock(L._sfc_main$1,{key:1,icon:u.value,size:t.iconSize},null,8,["icon","size"])):e.createCommentVNode("",!0)],10,Cn)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.rootClass)},[e.renderSlot(r.$slots,"default")],2))}}),be=e.defineComponent({__name:"ExpandWithHeader",props:{isCollapsible:{type:Boolean,default:!0},isExpanded:{type:Boolean,default:!1},headerClass:{},unmountOnClose:{type:Boolean}},emits:["toggle"],setup(t){const n=e.useSlots(),i=e.computed(()=>!!n.default&&!pe.isVnodeEmpty(n.default()));return(o,u)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(xt,{"is-collapsible":t.isCollapsible,"is-expanded":t.isExpanded,"root-class":"w-full",onToggle:u[0]||(u[0]=r=>o.$emit("toggle"))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["w-full",t.headerClass])},[e.renderSlot(o.$slots,"header")],2)]),_:3},8,["is-collapsible","is-expanded"]),i.value?(e.openBlock(),e.createBlock(ne._sfc_main,{key:0,"is-open":!t.isCollapsible||t.isExpanded,lazy:"","unmount-on-close":t.unmountOnClose},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["is-open","unmount-on-close"])):e.createCommentVNode("",!0)]))}}),xn=e.defineComponent({__name:"Card",props:{borderStyle:{default:"solid"},spacing:{default:"md"},cappedWidth:{type:Boolean,default:!1},variant:{default:"default"},shadowSize:{default:"sm"},borderRadius:{default:"base"},title:{},rootClass:{},wrapperClass:{},printBehavior:{}},setup(t){return(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-col",e.unref(ie.cn)(t.variant==="grouped"?"border border-dashed border-opacity-50":"gap-1",t.borderRadius==="md"?"rounded-md":"",t.borderRadius==="lg"?"rounded-lg":"",t.borderRadius==="base"?"rounded":"",t.variant==="grouped"?t.rootClass:"",t.wrapperClass,t.printBehavior==="avoid"?"card-print-avoid":"")])},[t.title||n.$slots.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ie.cn)("flex items-center justify-between",t.spacing==="sm"?"p-1.5":"",t.spacing==="md"?"p-3":"",t.spacing==="lg"?"p-6":""))},[e.renderSlot(n.$slots,"title",{},()=>[e.createVNode(e.unref(E._sfc_main),{tag:"span",variant:t.variant==="grouped"?"caps-heading":"body-sm",weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["variant"])],!0),e.renderSlot(n.$slots,"right",{},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(ie.cn)(t.spacing==="sm"?"p-1.5":"",t.spacing==="md"?"p-3":"",t.spacing==="lg"?"p-6":"",t.borderStyle==="solid"&&t.shadowSize==="sm"?"shadow-sm":"",t.borderStyle==="solid"&&t.shadowSize==="md"?"shadow-md":"",t.borderStyle==="solid"&&t.shadowSize==="lg"?"shadow-lg":"",t.borderStyle==="dashed"?"border-dashed border-opacity-50":"",t.shadowSize==="none"&&t.variant==="default"?"border-gray-100":"",t.variant==="error"?"border-red-600":"",t.variant==="warning"?"border-yellow-400":"",t.variant==="primary"?"border-primary-400":"",t.cappedWidth?"max-w-220":"",t.borderRadius==="base"?"rounded":"",t.borderRadius==="md"?"rounded-md":"",t.borderRadius==="lg"?"rounded-lg":"",t.variant==="grouped"?"border-b-0 border-l-0 border-r-0":"",t.variant==="grouped"?"rounded-t-none":"",t.variant==="primary"?"bg-primary-50/50":"",t.variant==="default"?"bg-white":"",t.rootClass?`${t.rootClass}`:""),"card-surface border"]),"data-testid":"card"},[e.renderSlot(n.$slots,"default",{},void 0,!0)],2)],2))}}),ce=G._export_sfc(xn,[["__scopeId","data-v-561cca98"]]),Bn={topUp:"Top up",defaultTooltip:"Top up allows moving unused volume over to the next billing cycle",tieredTooltip:{blockSize:"Includes prior volume to determine the tier and unused volume will move over",nonBlockSize:"Includes prior volume to determine the tier"},rollover:{title:"Rollover",tooltip:"Top up is applied to the next following schedule's billing cycles"}},Nn={combinedVolume:"Combined volume",description:"Total volume sets the tier, applied proportionally to the selected rules."},ye={defaultPricing:"Pricing",combinedVolume:Nn,topUpChip:Bn,splitBy:"Split by"},Vn={class:"inline-flex items-center"},En=e.defineComponent({__name:"TopUpChip",props:{i18n:{},placement:{},hasTooltip:{type:Boolean},pricingItemConfig:{}},setup(t){const n=t,i=e.computed(()=>{var l,v;return!!((v=(l=n.pricingItemConfig)==null?void 0:l.top_up)!=null&&v.rollover)}),o=e.computed(()=>({intent:"neutral",hasChipAfter:i.value})),u={intent:"neutral",hasChipBefore:!0},r=e.computed(()=>{var l,v,c;return(c=(v=(l=n.pricingItemConfig)==null?void 0:l.details)==null?void 0:v.bands)==null?void 0:c.some(s=>s.block_size)}),g=e.computed(()=>T.isTieredPricing(n.pricingItemConfig)&&r.value?n.i18n.tieredTooltip.blockSize:T.isTieredPricing(n.pricingItemConfig)&&!r.value?n.i18n.tieredTooltip.nonBlockSize:n.i18n.defaultTooltip);return(l,v)=>(e.openBlock(),e.createElementBlock("span",Vn,[t.hasTooltip?(e.openBlock(),e.createBlock(I._sfc_main,{key:0,offset:4,placement:t.placement},{default:e.withCtx(()=>[e.createVNode(Z._sfc_main,e.normalizeProps(e.guardReactiveProps(o.value)),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.topUp),1)]),_:1},16)]),tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.value),1)]),_:1})]),_:1})]),_:1},8,["placement"])):(e.openBlock(),e.createBlock(Z._sfc_main,e.normalizeProps(e.mergeProps({key:1},o.value)),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.topUp),1)]),_:1},16)),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.hasTooltip?(e.openBlock(),e.createBlock(I._sfc_main,{key:0,offset:4,placement:t.placement},{default:e.withCtx(()=>[e.createVNode(Z._sfc_main,e.normalizeProps(e.guardReactiveProps(u)),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.rollover.title),1)]),_:1},16)]),tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.rollover.tooltip),1)]),_:1})]),_:1})]),_:1},8,["placement"])):(e.openBlock(),e.createBlock(Z._sfc_main,e.normalizeProps(e.mergeProps({key:1},u)),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.rollover.title),1)]),_:1},16))],64)):e.createCommentVNode("",!0)]))}}),Sn={class:"flex items-center gap-2"},wn={class:"flex items-center gap-2"},Pn={key:0},_e=e.defineComponent({__name:"PricingItemConfigHeader",props:{config:{},i18n:{},hasTooltip:{type:Boolean,default:!0},isCombinedPricing:{type:Boolean},hideDefaultLabel:{type:Boolean}},setup(t){const n=t,i=e.computed(()=>n.i18n??ye),o=e.computed(()=>{var u,r;return!F.isEmpty((r=(u=n.config)==null?void 0:u.conditions)==null?void 0:r.meter_properties)});return(u,r)=>(e.openBlock(),e.createElementBlock("div",Sn,[e.createElementVNode("div",wn,[e.createVNode(E._sfc_main,{class:"line-clamp-1","no-spacing":"",color:"secondary",variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>{var g,l,v,c,s,b;return[(g=t.config.conditions)!=null&&g.name||o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(l=t.config.conditions)!=null&&l.name?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString((v=t.config.conditions)==null?void 0:v.name),1)],64)):e.createCommentVNode("",!0),o.value&&((s=(c=t.config)==null?void 0:c.conditions)!=null&&s.meter_properties)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.hasTooltip&&((b=t.config.conditions)!=null&&b.name)?(e.openBlock(),e.createBlock(I._sfc_main,{key:0,variant:"outline",class:"ml-1"},{default:e.withCtx(()=>[e.createVNode(L._sfc_main$1,{icon:"help",size:"2xs",class:"rounded drop-shadow-sm hover:cursor-default hover:bg-gray-50"})]),tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(E._sfc_main,{variant:"body-sm","no-spacing":"",color:"secondary"},{default:e.withCtx(()=>{var m,d;return[e.createVNode(re._sfc_main,{comparators:(d=(m=t.config)==null?void 0:m.conditions)==null?void 0:d.meter_properties},null,8,["comparators"])]}),_:1})]),_:1})]),_:1})):(e.openBlock(),e.createBlock(E._sfc_main,{key:1,variant:"body-sm",weight:"normal",color:"secondary",tag:"span"},{default:e.withCtx(()=>{var m,d,f;return[(m=t.config.conditions)!=null&&m.name?(e.openBlock(),e.createElementBlock("span",Pn," - ")):e.createCommentVNode("",!0),e.createVNode(re._sfc_main,{comparators:(f=(d=t.config)==null?void 0:d.conditions)==null?void 0:f.meter_properties,display:"inline"},null,8,["comparators"])]}),_:1}))],64)):e.createCommentVNode("",!0)],64)):t.hideDefaultLabel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i.value.defaultPricing),1)],64))]}),_:1}),t.config.volume_group_reference?(e.openBlock(),e.createBlock(kn,{key:0,i18n:i.value.combinedVolume},null,8,["i18n"])):e.createCommentVNode("",!0),e.unref(T.isTopUpPricing)(t.config)?(e.openBlock(),e.createBlock(En,{key:1,i18n:i.value.topUpChip,"pricing-item-config":t.config},null,8,["i18n","pricing-item-config"])):e.createCommentVNode("",!0)]),e.renderSlot(u.$slots,"override-tooltip")]))}}),ke={...ht.comparatorI18nDefaults,and:"and"},se={...ke,or:"or",unsupported:"unsupported",product:"product",revenueItem:"revenue item",commitmentBody:(t,n,i)=>`Commitment on ${t} <strong>${n}</strong> ${i}`,startOfSchedule:"Start of schedule",endOfSchedule:"End of schedule",unknown:"unknown",products:t=>t===1?"product":"products",pluralRevenueItems:t=>t===1?"revenue item":"revenue items",pricingRule:"price rule",invoice:"invoice",units:t=>`${t} units`,commitmentOnInvoice:t=>`Commitment on <strong>Invoice</strong> ${t}`,basedOnMeterValue:"based on meter value"},$n=(t,n=se,i)=>{const{formatDate:o}=E.useIntl(),u=e.computed(()=>{var m,d;return((d=(m=t.value)==null?void 0:m.pricing_categories)==null?void 0:d.flatMap(f=>{var B;return[...((B=f.pricing_groups)==null?void 0:B.flatMap(k=>k.pricings))??[],...f.pricings??[]]}))??[]}),r=e.computed(()=>u.value.map(m=>{var d;return{pricing:m,product:(d=m.products)==null?void 0:d[0],pricingId:m.id}})),g=e.computed(()=>{var m;return((m=u.value)==null?void 0:m.flatMap(d=>{var f;return((f=d.items)==null?void 0:f.map(B=>{var k;return{productItem:(k=B.product_items)==null?void 0:k[0],pricingItemId:B.id}}))??[]}))??[]}),l=m=>n.commitmentBody(s(m),v(m)??"",b(m)),v=m=>{var d,f,B,k,C;switch(m.commitmentLevel){case"PRODUCTS":{const y=(d=m.ids)==null?void 0:d.map(a=>r.value.find(h=>h.pricingId===a));return c((y==null?void 0:y.map(a=>{var h;return(a==null?void 0:a.pricing.name)??(((h=a==null?void 0:a.product)==null?void 0:h.name)||"")}))??[])}case"REVENUE_ITEMS":{const y=(f=m.ids)==null?void 0:f.map(a=>{var h;return(h=g.value.find(p=>p.pricingItemId===a))==null?void 0:h.productItem});return c((y==null?void 0:y.map(a=>(a==null?void 0:a.name)||""))??[])}case"PRICING_RULE":{const y=S=>{var w;return S.id===((w=m.ids)==null?void 0:w[0])},a=S=>{var w,P;return y(S)||!!((P=(w=S.conditions)==null?void 0:w.configs)!=null&&P.some(a))},h=S=>{var w;return(w=S.configs)==null?void 0:w.some(a)},p=S=>{var w;return(w=S.items)==null?void 0:w.some(h)},V=(B=u.value)==null?void 0:B.find(p),N=(k=V==null?void 0:V.items)==null?void 0:k.find(h),x=(C=N==null?void 0:N.configs)==null?void 0:C.flatMap(T.getFlatConfigs),_=x==null?void 0:x.find(y);return`<strong>${T.getConfigName(n)({pricing:V,item:N,config:_})}</strong>`}}},c=m=>m.reduce((d,f,B)=>{const k=`<strong>${f}</strong>`;return B===0?k:B===m.length-1?[d,k].join(" and "):[d,k].join(", ")},""),s=m=>{var d,f;switch(m.commitmentLevel){case"PRODUCTS":return n.products(((d=m.ids)==null?void 0:d.length)??0);case"REVENUE_ITEMS":return n.pluralRevenueItems(((f=m.ids)==null?void 0:f.length)??0);case"PRICING_RULE":return n.pricingRule;case"INVOICE":return n.invoice}},b=m=>{if(!m.start_at&&!m.end_at)return"";let d,f;return m.start_at||(d=n.startOfSchedule),m.end_at||(f=n.endOfSchedule),m.start_at&&(d=o(i?{date:m.start_at,format:"date",offsetType:"offsetted",timezone:i}:{date:m.start_at,format:"date",offsetType:"local",showTimezone:!1})),m.end_at&&(f=o(i?{date:m.end_at,format:"date",offsetType:"offsetted",timezone:i}:{date:m.end_at,format:"date",offsetType:"local",showTimezone:!1})),`(${d} - ${f})`};return{getCommitmentBody:l,getFormattedDuration:b}},In=t=>{const n=Object.entries(t||{});if(n.length===0)return;const[i,o]=n[0],[u,r,g]=i.split(".");return{commitmentLevel:u,index:parseInt(r,10),fieldName:g,message:o}},Tn={class:"flex items-center justify-between"},Dn={class:"flex items-center gap-2"},On={key:0,class:"ml-3 flex gap-3"},Ce=e.defineComponent({__name:"CommitmentDiscountItem",props:{icon:{},iconColor:{},isEditable:{type:Boolean},isRemovable:{type:Boolean},error:{}},emits:["edit","delete"],setup(t){return(n,i)=>(e.openBlock(),e.createBlock(ce,{spacing:"none","root-class":"p-2 pr-3"},{default:e.withCtx(()=>[e.createElementVNode("div",Tn,[e.createElementVNode("div",Dn,[e.createVNode(L._sfc_main$1,{icon:t.icon,size:"sm",variant:"contained",class:e.normalizeClass(["p-1",{"bg-orange-50 text-orange-700":t.iconColor==="orange","bg-yellow-50 text-yellow-700":t.iconColor==="yellow"}])},null,8,["icon","class"]),e.createVNode(E._sfc_main,{variant:"body-sm","no-spacing":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"body")]),_:3})]),t.isEditable||t.isRemovable?(e.openBlock(),e.createElementBlock("div",On,[t.isEditable?(e.openBlock(),e.createBlock(L._sfc_main,{key:0,intent:"subtle",square:"","icon-prefix":"edit",onClick:i[0]||(i[0]=o=>n.$emit("edit"))})):e.createCommentVNode("",!0),t.isRemovable?(e.openBlock(),e.createBlock(L._sfc_main,{key:1,intent:"dangerSecondary",square:"","icon-prefix":"delete",onClick:i[1]||(i[1]=o=>n.$emit("delete"))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createVNode(ne._sfc_main,{"is-open":!!t.error},{default:e.withCtx(()=>[t.error?(e.openBlock(),e.createBlock(me._sfc_main,{key:0,type:"danger",class:"-mb-2 -ml-2 -mr-3 mt-2 rounded-bl-md rounded-br-md rounded-tl-none rounded-tr-none"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Q.capitalize)(t.error)),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["is-open"])]),_:3}))}}),zn={class:"font-semibold"},Ln={key:2,class:"font-semibold text-primary-600"},Mn=["innerHTML"],Rn=["innerHTML"],An={key:2},Fn=e.defineComponent({__name:"SubscriptionCommitmentItem",props:{commitment:{},pricingPlanVersion:{},isEditable:{type:Boolean},isRemovable:{type:Boolean},error:{},i18n:{},timezone:{}},emits:["edit","delete"],setup(t){const n=t,i=e.computed(()=>n.i18n??se),{getCommitmentBody:o,getFormattedDuration:u}=$n(e.computed(()=>n.pricingPlanVersion),i.value,n.timezone);return(r,g)=>(e.openBlock(),e.createBlock(Ce,{icon:"handshake","icon-color":"orange","is-editable":t.isEditable,"is-removable":t.isRemovable,error:t.error,onEdit:g[0]||(g[0]=l=>r.$emit("edit")),onDelete:g[1]||(g[1]=l=>r.$emit("delete"))},{body:e.withCtx(()=>{var l;return[e.createElementVNode("span",zn,[t.commitment.amount?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:t.commitment.amount,highlighted:""},null,8,["value"])):"meter_value_calculation"in t.commitment&&((l=t.commitment.meter_value_calculation)!=null&&l.amount)?(e.openBlock(),e.createBlock(z._sfc_main,{key:1,value:t.commitment.meter_value_calculation.amount,highlighted:""},null,8,["value"])):"meter_value_calculation"in t.commitment&&t.commitment.meter_value_calculation&&"number"in t.commitment.meter_value_calculation?(e.openBlock(),e.createElementBlock("span",Ln,e.toDisplayString(t.commitment.meter_value_calculation.number&&i.value.units(t.commitment.meter_value_calculation.number)),1)):e.createCommentVNode("",!0)]),g[2]||(g[2]=e.createTextVNode(" ",-1)),t.commitment.commitmentLevel==="INVOICE"?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:i.value.commitmentOnInvoice(e.unref(u)(t.commitment))},null,8,Mn)):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:e.unref(o)(t.commitment)},null,8,Rn)),"meter_value_calculation"in t.commitment&&t.commitment.meter_value_calculation&&"amount"in t.commitment.meter_value_calculation?(e.openBlock(),e.createElementBlock("span",An,e.toDisplayString(" ")+"("+e.toDisplayString(i.value.basedOnMeterValue)+")",1)):e.createCommentVNode("",!0)]}),_:1},8,["is-editable","is-removable","error"]))}}),te={...se,title:"Commitments",orderOfApplicationExplanation:"Commitments are applied after discounts on invoices",description:"Setup a minimum usage per an agreed-upon time period.",selectPricingPlanHint:"Please select a pricing plan to add commitments",addItemLabel:"Add commitment",notEditableExplanation:"Commitments can't be edited for active schedules"},xe=({isEditable:t,isRemovable:n})=>({isEditableFlag:e.computed(()=>typeof t=="function"?!0:!!t),isItemEditable:r=>typeof t=="function"?t(r):!!t,isItemRemovable:r=>typeof n=="function"?n(r):typeof n=="boolean"?n:!0}),Zn={class:"flex items-center justify-between gap-4"},Un={class:"flex items-center gap-4"},Hn={class:"flex items-center gap-1"},Gn={class:"mt-1 text-xs text-secondary"},jn={class:"flex items-center justify-between gap-4"},qn={class:"flex items-center gap-1"},Wn={class:"text-xs font-bold uppercase text-secondary"},Yn={class:"mt-1 flex flex-col gap-2"},Be=e.defineComponent({__name:"CommitmentDiscountsSection",props:{title:{},orderOfApplicationExplanation:{},description:{},selectPricingPlanHint:{},addItemLabel:{},notEditableExplanation:{},hasItems:{type:Boolean},pricingPlanVersionIsSelected:{type:Boolean},isEditable:{type:Boolean},isCreatable:{type:Boolean}},emits:["add"],setup(t){return(n,i)=>(e.openBlock(),e.createElementBlock("section",null,[t.hasItems?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("header",jn,[e.createElementVNode("div",qn,[e.createElementVNode("h2",Wn,e.toDisplayString(t.title),1),e.createVNode(I._sfc_main,{variant:"outline",placement:"bottom-start"},{default:e.withCtx(()=>[e.createVNode(L._sfc_main$1,{icon:"help",class:"drop-shadow-sm hover:cursor-default hover:bg-gray-50",size:"xs"})]),tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.orderOfApplicationExplanation),1)]),_:1})]),_:1})]),_:1})])]),e.createElementVNode("ul",Yn,[e.renderSlot(n.$slots,"list-items")])],64)):(e.openBlock(),e.createBlock(ce,{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",Zn,[e.createElementVNode("div",Un,[e.renderSlot(n.$slots,"icon"),e.createElementVNode("div",null,[e.createElementVNode("div",Hn,[e.createVNode(E._sfc_main,{tag:"h2",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),e.createVNode(I._sfc_main,{variant:"outline",placement:"bottom-start"},{default:e.withCtx(()=>[e.createVNode(L._sfc_main$1,{icon:"help",class:"drop-shadow-sm hover:cursor-default hover:bg-gray-50",size:"xs"})]),tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.orderOfApplicationExplanation),1)]),_:1})]),_:1})]),_:1})]),e.createElementVNode("p",Gn,e.toDisplayString(t.description),1)])]),t.isEditable?(e.openBlock(),e.createBlock(I._sfc_main,{key:0,variant:"outline"},{tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[t.pricingPlanVersionIsSelected?t.isEditable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(E._sfc_main,{key:1,color:"secondary",variant:"body-sm","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.notEditableExplanation),1)]),_:1})):(e.openBlock(),e.createBlock(E._sfc_main,{key:0,color:"secondary",variant:"body-sm","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.selectPricingPlanHint),1)]),_:1}))]),_:1})]),_:1})):e.createCommentVNode("",!0)])]),_:3}))]))}}),Kn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20fill='none'%3e%3cmask%20id='a'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='44'%20height='44'%3e%3cpath%20fill='%23D9D9D9'%20d='M0%200h44v44H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cmask%20id='e'%20fill='%23fff'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.922%2015.593A6%206%200%200%200%208.03%208.816c-.072-.516.251-1.035.767-1.108l21.957-3.086c.516-.072.97.338%201.043.854a6%206%200%200%200%206.776%205.106c.589-.082%201.19.281%201.273.87L42.06%2027.22c.083.589-.395%201.104-.984%201.186a6%206%200%200%200-5.106%206.777c.074.525-.255%201.055-.78%201.13l-21.925%203.08c-.526.074-.988-.344-1.062-.87a6%206%200%200%200-6.776-5.107c-.452.064-.901-.223-.965-.674L2.182%2016.507c-.064-.451.29-.85.74-.914Z'/%3e%3c/mask%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.922%2015.593A6%206%200%200%200%208.03%208.816c-.072-.516.251-1.035.767-1.108l21.957-3.086c.516-.072.97.338%201.043.854a6%206%200%200%200%206.776%205.106c.589-.082%201.19.281%201.273.87L42.06%2027.22c.083.589-.395%201.104-.984%201.186a6%206%200%200%200-5.106%206.777c.074.525-.255%201.055-.78%201.13l-21.925%203.08c-.526.074-.988-.344-1.062-.87a6%206%200%200%200-6.776-5.107c-.452.064-.901-.223-.965-.674L2.182%2016.507c-.064-.451.29-.85.74-.914Z'%20fill='%23D9D9D9'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.922%2015.593A6%206%200%200%200%208.03%208.816c-.072-.516.251-1.035.767-1.108l21.957-3.086c.516-.072.97.338%201.043.854a6%206%200%200%200%206.776%205.106c.589-.082%201.19.281%201.273.87L42.06%2027.22c.083.589-.395%201.104-.984%201.186a6%206%200%200%200-5.106%206.777c.074.525-.255%201.055-.78%201.13l-21.925%203.08c-.526.074-.988-.344-1.062-.87a6%206%200%200%200-6.776-5.107c-.452.064-.901-.223-.965-.674L2.182%2016.507c-.064-.451.29-.85.74-.914Z'%20fill='%23BFEAFB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.922%2015.593A6%206%200%200%200%208.03%208.816c-.072-.516.251-1.035.767-1.108l21.957-3.086c.516-.072.97.338%201.043.854a6%206%200%200%200%206.776%205.106c.589-.082%201.19.281%201.273.87L42.06%2027.22c.083.589-.395%201.104-.984%201.186a6%206%200%200%200-5.106%206.777c.074.525-.255%201.055-.78%201.13l-21.925%203.08c-.526.074-.988-.344-1.062-.87a6%206%200%200%200-6.776-5.107c-.452.064-.901-.223-.965-.674L2.182%2016.507c-.064-.451.29-.85.74-.914Z'%20fill='url(%23b)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.922%2015.593A6%206%200%200%200%208.03%208.816c-.072-.516.251-1.035.767-1.108l21.957-3.086c.516-.072.97.338%201.043.854a6%206%200%200%200%206.776%205.106c.589-.082%201.19.281%201.273.87L42.06%2027.22c.083.589-.395%201.104-.984%201.186a6%206%200%200%200-5.106%206.777c.074.525-.255%201.055-.78%201.13l-21.925%203.08c-.526.074-.988-.344-1.062-.87a6%206%200%200%200-6.776-5.107c-.452.064-.901-.223-.965-.674L2.182%2016.507c-.064-.451.29-.85.74-.914Z'%20fill='url(%23c)'/%3e%3cpath%20d='m39.845%2011.452-1.09.153%201.09-.153Zm-9.092-6.83.153%201.09-.153-1.09Zm11.308%2022.599%201.09-.153-1.09.153ZM8.796%207.708%208.643%206.62l.153%201.09ZM6.94%208.97a4.9%204.9%200%200%201-4.17%205.534l.306%202.179a7.1%207.1%200%200%200%206.042-8.019l-2.178.306ZM30.6%203.533%208.643%206.62l.306%202.179%2021.957-3.086-.306-2.179Zm7.819%205.96a4.9%204.9%200%200%201-5.534-4.17l-2.179.306a7.1%207.1%200%200%200%208.02%206.043l-.307-2.179Zm4.731%2017.575-2.216-15.77-2.179.307%202.217%2015.769%202.178-.306Zm-6.09%207.963a4.9%204.9%200%200%201%204.17-5.534l-.306-2.179a7.1%207.1%200%200%200-6.043%208.019l2.179-.306Zm-23.641%205.453%2021.924-3.081-.306-2.179-21.924%203.081.306%202.179ZM5.58%2034.507a4.9%204.9%200%200%201%205.534%204.17l2.178-.306a7.1%207.1%200%200%200-8.018-6.043l.306%202.179ZM1.092%2016.66l2.282%2016.236%202.179-.306L3.27%2016.354l-2.179.306Zm2.179-.306a.333.333%200%200%201-.066.254.202.202%200%200%201-.13.074l-.306-2.179c-.95.134-1.838%201.008-1.677%202.157l2.179-.306Zm9.841%2021.951a.244.244%200%200%201%20.105.009c.031.01.05.023.06.03.014.013.016.02.017.027l-2.179.306c.142%201.008%201.064%201.981%202.304%201.807l-.306-2.179Zm21.77-2.968c-.002-.006-.002-.014.009-.03a.168.168%200%200%201%20.048-.046.244.244%200%200%201%20.098-.037l.306%202.179c1.24-.175%201.859-1.365%201.717-2.372l-2.179.306Zm3.843-23.665a.117.117%200%200%201%20.069.012c.003.002-.005-.002-.015-.017a.153.153%200%200%201-.024-.062l2.179-.306c-.185-1.317-1.46-1.954-2.515-1.806l.306%202.179ZM5.275%2032.328a.202.202%200%200%201%20.144.036.332.332%200%200%201%20.134.226l-2.179.306c.162%201.15%201.255%201.745%202.207%201.61l-.306-2.178ZM30.906%205.712a.258.258%200%200%201-.11-.01.186.186%200%200%201-.065-.033c-.019-.016-.023-.028-.025-.04l2.179-.306c-.14-1-1.057-1.963-2.285-1.79l.306%202.179Zm10.066%2021.662a.153.153%200%200%201%20.005-.066c.006-.018.012-.024.01-.02a.115.115%200%200%201-.062.03l.305%202.179c1.056-.149%202.105-1.112%201.92-2.43l-2.178.307ZM9.118%208.663c.002.012.001.025-.012.045a.186.186%200%200%201-.053.05.258.258%200%200%201-.104.04l-.306-2.179c-1.229.173-1.844%201.35-1.703%202.35l2.178-.306Z'%20fill='url(%23d)'%20fill-opacity='.1'%20mask='url(%23e)'/%3e%3cg%20opacity='.5'%3e%3cmask%20id='f'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='10'%20y='10'%20width='24'%20height='24'%3e%3cpath%20transform='rotate(-8%2010.706%2013.489)'%20fill='%23D9D9D9'%20d='M10.706%2013.489h20v20h-20z'/%3e%3c/mask%3e%3cg%20mask='url(%23f)'%3e%3cpath%20d='M22.825%2028.616a.486.486%200%200%200%20.271-.164l5.816-7.718a1.54%201.54%200%200%200%20.283-.608%201.804%201.804%200%200%200-.176-1.248%201.375%201.375%200%200%200-.435-.475l-4-3.014a1.376%201.376%200%200%200-.577-.288%201.775%201.775%200%200%200-1.248.176%201.54%201.54%200%200%200-.506.44l-.195.258%201.744%201.333c.233.163.416.362.547.596.13.234.215.489.254.764.081.577-.047%201.09-.383%201.537-.337.447-.795.711-1.372.792a2.245%202.245%200%200%201-.815-.033%201.895%201.895%200%200%201-.731-.339l-1.762-1.309-3.103%204.118a.393.393%200%200%200-.083.306c.015.11.07.204.166.282a.386.386%200%200%200%20.307.094.484.484%200%200%200%20.271-.164l2.412-3.201%201.318.993-2.391%203.197a.394.394%200%200%200-.083.306.4.4%200%200%200%20.164.272.4.4%200%200%200%20.306.083.486.486%200%200%200%20.271-.164l2.415-3.18%201.318.993-2.39%203.197a.25.25%200%200%200-.076.137.472.472%200%200%200-.008.17.4.4%200%200%200%20.164.27.4.4%200%200%200%20.578-.08l2.414-3.18%201.318.993-2.412%203.2a.394.394%200%200%200-.083.306c.016.11.074.2.175.27.101.07.207.098.317.082Zm.21%201.654a2.033%202.033%200%200%201-1.422-.316%201.99%201.99%200%200%201-.869-1.172%202.054%202.054%200%200%201-1.257-.412%202.054%202.054%200%200%201-.743-1.095%201.979%201.979%200%200%201-1.248-.424%202.12%202.12%200%200%201-.731-1.086%201.982%201.982%200%200%201-1.375-.5%202.046%202.046%200%200%201-.687-1.293%202.119%202.119%200%200%201%20.043-.816c.068-.269.184-.513.35-.733l4.116-5.438%203.083%202.323a.25.25%200%200%200%20.137.075.47.47%200%200%200%20.169.008.445.445%200%200%200%20.294-.157.39.39%200%200%200%20.081-.317.473.473%200%200%200-.054-.16.25.25%200%200%200-.11-.111l-3.365-2.536a1.377%201.377%200%200%200-.577-.287%201.778%201.778%200%200%200-1.248.176%201.538%201.538%200%200%200-.506.44l-2.497%203.337c-.107.142-.19.3-.249.477-.06.177-.091.35-.095.518a1.57%201.57%200%200%200%20.304.968l-1.029%201.364a3.313%203.313%200%200%201-.662-.969%203.273%203.273%200%200%201-.154-2.293c.114-.387.295-.746.543-1.075l2.5-3.318c.286-.363.62-.655%201.003-.877a3.316%203.316%200%200%201%203.68.219l.26.195.195-.259c.285-.363.62-.655%201.002-.877a3.316%203.316%200%200%201%203.68.219l3.977%202.996a3.393%203.393%200%200%201%201.3%202.216c.06.426.036.854-.072%201.283a3.282%203.282%200%200%201-.57%201.185l-5.818%207.697c-.166.22-.368.402-.607.548a2.002%202.002%200%200%201-.771.277Z'%20fill='%23222B35'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='b'%20x1='1.097'%20y1='10.89'%20x2='36.001'%20y2='44.744'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF6200'/%3e%3cstop%20offset='1'%20stop-color='%23FF6200'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='40.312'%20y1='5.379'%20x2='16.092'%20y2='47.542'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='24.991'%20y1='38.635'%20x2='20.304'%20y2='5.283'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230C0E41'/%3e%3cstop%20offset='1'%20stop-color='%230C0E41'%20stop-opacity='.5'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Jn=["src"],Xn=e.defineComponent({__name:"SubscriptionCommitments",props:{pricingPlanVersion:{},commitment:{},i18n:{},isCreatable:{type:Boolean},isEditable:{type:[Boolean,Function]},isRemovable:{type:[Boolean,Function]},error:{},timezone:{}},setup(t){const n=t,i=e.computed(()=>n.i18n??te),{isEditableFlag:o,isItemEditable:u,isItemRemovable:r}=xe({isEditable:n.isEditable,isRemovable:n.isRemovable}),g=e.computed(()=>{if("error"in n)return In(n.error)}),l=e.computed(()=>{var v,c,s,b,m,d,f,B;return[...((c=(v=n.commitment)==null?void 0:v.pricing_item_configs)==null?void 0:c.map((k,C)=>{var y,a;return{item:{commitmentLevel:"PRICING_RULE",...k},error:C===((y=g.value)==null?void 0:y.index)&&((a=g.value)==null?void 0:a.commitmentLevel)==="pricing_item_configs"?g.value.message:void 0}}))||[],...((b=(s=n.commitment)==null?void 0:s.pricing_items)==null?void 0:b.map((k,C)=>{var y,a;return{item:{commitmentLevel:"REVENUE_ITEMS",...k},error:C===((y=g.value)==null?void 0:y.index)&&((a=g.value)==null?void 0:a.commitmentLevel)==="pricing_items"?g.value.message:void 0}}))||[],...((d=(m=n.commitment)==null?void 0:m.pricings)==null?void 0:d.map((k,C)=>{var y,a;return{item:{commitmentLevel:"PRODUCTS",...k},error:C===((y=g.value)==null?void 0:y.index)&&((a=g.value)==null?void 0:a.commitmentLevel)==="pricings"?g.value.message:void 0}}))||[],...((B=(f=n.commitment)==null?void 0:f.totals)==null?void 0:B.map((k,C)=>{var y,a;return{item:{commitmentLevel:"INVOICE",...k},error:C===((y=g.value)==null?void 0:y.index)&&((a=g.value)==null?void 0:a.commitmentLevel)==="totals"?g.value.message:void 0}}))||[]]});return(v,c)=>(e.openBlock(),e.createBlock(Be,{title:i.value.title,"order-of-application-explanation":i.value.orderOfApplicationExplanation,description:i.value.description,"pricing-plan-version-is-selected":!!t.pricingPlanVersion,"select-pricing-plan-hint":i.value.selectPricingPlanHint,"add-item-label":i.value.addItemLabel,"not-editable-explanation":i.value.notEditableExplanation,"is-creatable":!!t.isCreatable,"is-editable":e.unref(o),"has-items":l.value.length>0,onAdd:c[0]||(c[0]=s=>v.$emit("add"))},{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(Kn),alt:""},null,8,Jn)]),"list-items":e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,({item:s,error:b})=>(e.openBlock(),e.createElementBlock("li",{key:JSON.stringify(s)},[e.createVNode(Fn,{timezone:t.timezone,commitment:s,error:b,"is-editable":e.unref(u)(s),"is-removable":e.unref(r)(s),"pricing-plan-version":t.pricingPlanVersion,i18n:i.value,onEdit:m=>v.$emit("edit",s),onDelete:m=>v.$emit("delete",s)},null,8,["timezone","commitment","error","is-editable","is-removable","pricing-plan-version","i18n","onEdit","onDelete"])]))),128))]),_:1},8,["title","order-of-application-explanation","description","pricing-plan-version-is-selected","select-pricing-plan-hint","add-item-label","not-editable-explanation","is-creatable","is-editable","has-items"]))}}),Qn=(t,n)=>!t||!n?!t==!n:t.operator===n.operator&&t.operands.length===n.operands.length&&t.operands.every((i,o)=>{var u,r,g,l,v;const c=(u=n.operands[o])==null?void 0:u.meter_property;return((r=i.meter_property)==null?void 0:r.id)===(c==null?void 0:c.id)&&((g=i.meter_property)==null?void 0:g.comparator)===(c==null?void 0:c.comparator)&&((l=i.meter_property)==null?void 0:l.value)===(c==null?void 0:c.value)&&JSON.stringify((v=i.meter_property)==null?void 0:v.values)===JSON.stringify(c==null?void 0:c.values)}),ei=(t,n,i)=>{const{formatDate:o}=E.useIntl(),u=e.computed(()=>{var c,s;return(s=(c=t.value)==null?void 0:c.pricing_categories)==null?void 0:s.flatMap(b=>{var m;return[...((m=b.pricing_groups)==null?void 0:m.flatMap(d=>d.pricings))??[],...b.pricings??[]]})}),r=c=>{var s,b,m,d,f,B,k,C,y,a;let h,p;switch(c.discountLevel){case"PRODUCT":{h=(s=u.value)==null?void 0:s.find(V=>{var N,x;return V.id===((N=c.ids)==null?void 0:N[0])||((x=V.products)==null?void 0:x.some(_=>{var S;return _.id===((S=c.ids)==null?void 0:S[0])}))});break}case"REVENUE_ITEM":{const V=N=>{var x,_;return N.id===((x=c.ids)==null?void 0:x[0])||"product_items"in N&&((_=N.product_items)==null?void 0:_.some(S=>{var w;return S.id===((w=c.ids)==null?void 0:w[0])}))};h=(b=u.value)==null?void 0:b.find(N=>{var x;return(x=N.items)==null?void 0:x.some(V)}),p=(m=h==null?void 0:h.items)==null?void 0:m.find(V);break}case"PRICING_RULE":{const V=$=>{var O;return c.meter_property_condition_expression?Qn(T.buildMeterConditionExpression($),c.meter_property_condition_expression):$.id===((O=c.ids)==null?void 0:O[0])},N=$=>{var O,U;return V($)||!!((U=(O=$.conditions)==null?void 0:O.configs)!=null&&U.some(N))},x=$=>{var O,U,R;return c.meter_property_condition_expression?((O=$.product_items)==null?void 0:O.some(A=>{var M;return A.id===((M=c.ids)==null?void 0:M[0])}))&&((U=$.configs)==null?void 0:U.some(N)):(R=$.configs)==null?void 0:R.some(N)},_=$=>{var O;return(O=$.items)==null?void 0:O.some(x)},S=(d=u.value)==null?void 0:d.find(_),w=(f=S==null?void 0:S.items)==null?void 0:f.find(x),P=(B=w==null?void 0:w.configs)==null?void 0:B.flatMap(T.getFlatConfigs),D=P==null?void 0:P.find(V);return`<strong>${T.getConfigName(n)({pricing:S,item:w,config:D})}</strong>`}}return[(h==null?void 0:h.name)??((C=(k=h==null?void 0:h.products)==null?void 0:k[0])==null?void 0:C.name),(a=(y=p==null?void 0:p.product_items)==null?void 0:y[0])==null?void 0:a.name].filter(Boolean).join(" - ")},g=c=>{let s;switch(c.discountLevel){case"PRODUCT":{s=n.product;break}case"REVENUE_ITEM":{s=n.revenueItem;break}case"PRICING_RULE":{s=n.pricingRule;break}}return n.discountBody(s??"",r(c)??"",v(c))},l=c=>{var s,b;const m=c.condition;if(!((b=(s=m==null?void 0:m.value)==null?void 0:s.amount)!=null&&b.quantity))return"";const d=ht.getFormattedComparator(n)({propertyName:n.conditionResource,comparator:m.comparator,value:Q.formatAmount(m.value.amount)},{hasFormatting:!0});return n.discountCondition(d)},v=c=>{if(!c.start_at&&!c.end_at)return"";let s,b;return c.start_at||(s=n.startOfSchedule),c.end_at||(b=n.endOfSchedule),c.start_at&&(s=o(i?{date:c.start_at,format:"date",offsetType:"offsetted",timezone:i}:{date:c.start_at,format:"date",offsetType:"local",showTimezone:!1})),c.end_at&&(b=o(i?{date:c.end_at,format:"date",offsetType:"offsetted",timezone:i}:{date:c.end_at,format:"date",offsetType:"local",showTimezone:!1})),`(${s} - ${b})`};return{getDiscountBody:g,getConditionBody:l,getFormattedDuration:v}},ti=t=>{const n=Object.entries(t||{});if(n.length===0)return;const[i,o]=n[0],[u,r,g]=i.split(".");return{discountLevel:u,index:parseInt(r,10),fieldName:g,message:o}},Bt={...ke,product:"product",revenueItem:"revenue item",pricingRule:"price rule",discountBody:(t,n,i)=>`Discount on ${t} <strong>${n}</strong> ${i}`,conditionResource:"invoice amount",discountCondition:t=>`when ${t}`,startOfSchedule:"Start of schedule",endOfSchedule:"End of schedule",or:"or",unsupported:"unsupported",unknown:"unknown"},ni={class:"inline-block"},ii={key:0,class:"inline-flex flex-wrap items-center gap-1"},oi=["innerHTML"],li=["innerHTML"],ai=e.defineComponent({__name:"SubscriptionDiscountItem",props:{discount:{},pricingPlanVersion:{},isEditable:{type:Boolean},isRemovable:{type:Boolean},i18n:{},error:{},timezone:{}},emits:["edit","delete"],setup(t,{emit:n}){const i=t,o=n,{$t:u}=E.useIntl(),r=e.computed(()=>i.i18n??Bt),{getDiscountBody:g,getConditionBody:l,getFormattedDuration:v}=ei(e.toRef(()=>i.pricingPlanVersion),r.value,i.timezone);return(c,s)=>{var b,m;return e.openBlock(),e.createBlock(Ce,{icon:"south_east","icon-color":"yellow","is-editable":t.discount.discountLevel==="INVOICE"&&((b=t.discount.ids)!=null&&b[0])?!1:t.isEditable,"is-removable":t.discount.discountLevel==="INVOICE"&&((m=t.discount.ids)!=null&&m[0])?!1:t.isRemovable,error:t.error,onEdit:s[0]||(s[0]=d=>o("edit")),onDelete:s[1]||(s[1]=d=>o("delete"))},{body:e.withCtx(()=>{var d;return[e.createElementVNode("div",ni,[e.createVNode(E._sfc_main,{tag:"span",weight:"semibold"},{default:e.withCtx(()=>{var f;return[(f=t.discount.amount)!=null&&f.quantity?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:t.discount.amount,highlighted:""},null,8,["value"])):t.discount.percentage?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,color:"inherit",tag:"span",class:"text-primary-600"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.discount.percentage)+"%",1)]),_:1})):e.createCommentVNode("",!0)]}),_:1}),s[3]||(s[3]=e.createTextVNode(" ",-1)),t.discount.discountLevel==="INVOICE"?(e.openBlock(),e.createElementBlock("span",ii,[e.createVNode(E._sfc_main,{tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)({defaultMessage:"Discount on",description:"Discount on",id:"SubscriptionDiscountItem.discountOn"})),1)]),_:1}),e.createVNode(E._sfc_main,{tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)({defaultMessage:"Invoice",description:"invoice indicator",id:"SubscriptionDiscountItem.invoice"})),1)]),_:1}),(d=t.discount.ids)!=null&&d[0]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(E._sfc_main,{tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)({defaultMessage:"applied by",description:"Subscription discount applied by",id:"SubscriptionDiscountItem.coupon.applied_by"})),1)]),_:1}),e.createVNode(E._sfc_main,{tag:"span",weight:"semibold"},{default:e.withCtx(()=>{var f;return[e.createTextVNode(e.toDisplayString(t.discount.coupon_name??((f=t.discount.ids)==null?void 0:f[0])),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.unref(v)(t.discount)?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)(t.discount)),1)]),_:1})):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:e.unref(g)(t.discount)},null,8,oi)),t.discount.condition?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s[2]||(s[2]=e.createTextVNode(" ",-1)),e.createElementVNode("span",{innerHTML:e.unref(l)(t.discount)},null,8,li)],64)):e.createCommentVNode("",!0)])]}),_:1},8,["is-editable","is-removable","error"])}}}),le={...Bt,title:"Discounts",orderOfApplicationExplanation:"Discounts are applied before commitments on invoices",description:"Add price reductions for a defined period or specific terms.",selectPricingPlanHint:"Please select a pricing plan to add discounts",addItemLabel:"Add",notEditableExplanation:"Discounts can't be edited for active schedules"},ri="data:image/svg+xml,%3csvg%20width='44'%20height='44'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='a'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='44'%20height='44'%3e%3cpath%20fill='%23D9D9D9'%20d='M0%200h44v44H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cmask%20id='e'%20fill='%23fff'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m18.55%2039.32%203.45%203.4%203.46-3.41%204.48%201.85%201.86-4.5h4.87v-4.84l4.47-1.9-1.82-4.47%203.4-3.45-3.41-3.46%201.85-4.48-4.5-1.86V7.33h-4.84l-1.9-4.47-4.47%201.82L22%201.28%2018.54%204.7l-4.48-1.85-1.86%204.5H7.33v4.84l-4.47%201.9%201.82%204.47L1.28%2022l3.41%203.46-1.85%204.48%204.5%201.86v4.87h4.84l1.9%204.47%204.47-1.82Z'/%3e%3c/mask%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m18.55%2039.32%203.45%203.4%203.46-3.41%204.48%201.85%201.86-4.5h4.87v-4.84l4.47-1.9-1.82-4.47%203.4-3.45-3.41-3.46%201.85-4.48-4.5-1.86V7.33h-4.84l-1.9-4.47-4.47%201.82L22%201.28%2018.54%204.7l-4.48-1.85-1.86%204.5H7.33v4.84l-4.47%201.9%201.82%204.47L1.28%2022l3.41%203.46-1.85%204.48%204.5%201.86v4.87h4.84l1.9%204.47%204.47-1.82Z'%20fill='%23BFEAFB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m18.55%2039.32%203.45%203.4%203.46-3.41%204.48%201.85%201.86-4.5h4.87v-4.84l4.47-1.9-1.82-4.47%203.4-3.45-3.41-3.46%201.85-4.48-4.5-1.86V7.33h-4.84l-1.9-4.47-4.47%201.82L22%201.28%2018.54%204.7l-4.48-1.85-1.86%204.5H7.33v4.84l-4.47%201.9%201.82%204.47L1.28%2022l3.41%203.46-1.85%204.48%204.5%201.86v4.87h4.84l1.9%204.47%204.47-1.82Z'%20fill='url(%23b)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m18.55%2039.32%203.45%203.4%203.46-3.41%204.48%201.85%201.86-4.5h4.87v-4.84l4.47-1.9-1.82-4.47%203.4-3.45-3.41-3.46%201.85-4.48-4.5-1.86V7.33h-4.84l-1.9-4.47-4.47%201.82L22%201.28%2018.54%204.7l-4.48-1.85-1.86%204.5H7.33v4.84l-4.47%201.9%201.82%204.47L1.28%2022l3.41%203.46-1.85%204.48%204.5%201.86v4.87h4.84l1.9%204.47%204.47-1.82Z'%20fill='url(%23c)'/%3e%3cpath%20d='m22%2042.72-.7.7.7.7.7-.7-.7-.7Zm-3.45-3.4.7-.71-.46-.46-.61.25.37.92Zm6.91-.01.38-.93-.6-.25-.48.47.7.7Zm4.48%201.85-.38.93.92.38.38-.92-.92-.39Zm1.86-4.5v-1h-.67l-.25.62.92.39Zm4.87%200v1h1v-1h-1Zm0-4.84-.4-.92-.6.26v.66h1Zm4.47-1.9.39.93.9-.39-.36-.9-.93.37Zm-1.82-4.47-.7-.7-.47.46.25.61.92-.37Zm3.4-3.45.7.7.7-.7-.7-.7-.7.7Zm-3.41-3.46-.93-.38-.25.61.47.47.7-.7Zm1.85-4.48.93.39.38-.93-.92-.38-.39.92Zm-4.5-1.86h-1v.67l.62.25.39-.92Zm0-4.87h1v-1h-1v1Zm-4.84%200-.92.4.26.6h.66v-1Zm-1.9-4.47.93-.39-.38-.9-.92.36.38.93Zm-4.47%201.82-.7.71.46.46.61-.25-.37-.92ZM22%201.28l.7-.7-.7-.7-.7.7.7.7ZM18.54%204.7l-.38.93.61.25.47-.47-.7-.7Zm-4.48-1.85.39-.93-.93-.38-.38.92.92.39Zm-1.86%204.5v1h.67l.25-.62-.92-.39Zm-4.87%200v-1h-1v1h1Zm0%204.84.4.92.6-.26v-.66h-1Zm-4.47%201.9-.39-.93-.9.38.36.92.93-.38Zm1.82%204.47.71.7.46-.46-.25-.61-.92.37ZM1.28%2022l-.7-.7-.7.7.7.7.7-.7Zm3.41%203.46.93.38.25-.61-.47-.47-.7.7Zm-1.85%204.48-.93-.39-.38.93.92.38.39-.92Zm4.5%201.86h1v-.67l-.62-.25-.39.92Zm0%204.87h-1v1h1v-1Zm4.84%200%20.92-.4-.26-.6h-.66v1Zm1.9%204.47-.93.39.39.9.9-.36-.37-.93Zm8.62.86-3.44-3.39-1.4%201.42%203.44%203.4L22.7%2042Zm2.06-3.4L21.3%2042l1.4%201.43%203.46-3.41-1.4-1.42Zm5.56%201.64-4.48-1.86-.76%201.85%204.48%201.86.76-1.85Zm.56-3.96L29%2040.78l1.85.77%201.86-4.5-1.84-.77Zm5.79-.61H31.8v2h4.87v-2Zm-1-3.85v4.85h2v-4.85h-2Zm5.08-2.81-4.47%201.89.78%201.84%204.47-1.9-.78-1.83Zm-2.35-3.19%201.81%204.48%201.86-.75-1.82-4.48-1.85.75ZM42%2021.3l-3.39%203.44%201.43%201.4%203.39-3.44L42%2021.3Zm-3.4-2.06L42%2022.7l1.43-1.4-3.4-3.46-1.43%201.4Zm1.64-5.56-1.86%204.48%201.85.76%201.86-4.47-1.85-.77Zm-3.96-.56%204.5%201.87.77-1.85-4.5-1.86-.77%201.84Zm-.61-5.79v4.87h2V7.33h-2Zm-3.85%201h4.85v-2h-4.85v2Zm-2.81-5.08%201.89%204.47%201.84-.78-1.9-4.47-1.83.78ZM25.82%205.6%2030.3%203.8l-.75-1.86-4.48%201.82.75%201.85ZM21.3%202l3.44%203.39%201.4-1.42L22.7.57%2021.3%202Zm-2.06%203.4L22.7%202%2021.3.57l-3.46%203.4%201.4%201.43Zm-5.56-1.64%204.48%201.86.76-1.85-4.47-1.86-.77%201.85Zm-.56%203.96L15%203.22l-1.85-.77-1.86%204.5%201.84.77Zm-5.79.61h4.87v-2H7.33v2Zm1%203.85V7.33h-2v4.85h2Zm-5.08%202.81%204.47-1.89-.78-1.84-4.47%201.9.78%201.83Zm2.35%203.19L3.8%2013.7l-1.86.75%201.82%204.48%201.85-.75ZM2%2022.7l3.39-3.44-1.42-1.4-3.4%203.44L2%2022.7Zm3.4%202.06L2%2021.3.57%2022.7l3.41%203.46%201.42-1.4Zm-1.64%205.56%201.86-4.48-1.85-.76-1.86%204.47%201.85.77Zm3.96.56L3.22%2029l-.77%201.85%204.5%201.86.77-1.84Zm.61%205.79V31.8h-2v4.87h2Zm3.85-1H7.33v2h4.85v-2Zm2.81%205.08-1.89-4.47-1.84.78%201.9%204.47%201.83-.78Zm3.19-2.35L13.7%2040.2l.75%201.86%204.48-1.82-.75-1.85Z'%20fill='url(%23d)'%20fill-opacity='.1'%20mask='url(%23e)'/%3e%3cg%20opacity='.5'%3e%3cmask%20id='f'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='12'%20y='12'%20width='20'%20height='20'%3e%3cpath%20fill='%23D9D9D9'%20d='M12%2012h20v20H12z'/%3e%3c/mask%3e%3cg%20mask='url(%23f)'%3e%3cpath%20d='M19.5%2027.83v-1.66H25l-9.67-9.67%201.17-1.17L26.17%2025v-5.5h1.66v8.33H19.5Z'%20fill='%23222B35'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='b'%20x1='1.28'%20y1='1.28'%20x2='42.72'%20y2='42.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F6D449'/%3e%3cstop%20offset='1'%20stop-color='%23F6D449'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='42.72'%20y1='1.28'%20x2='1.28'%20y2='42.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='22'%20y1='42.72'%20x2='22'%20y2='-2.59'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230C0E41'/%3e%3cstop%20offset='1'%20stop-color='%230C0E41'%20stop-opacity='.5'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",ci=["src"],si=e.defineComponent({__name:"SubscriptionDiscounts",props:{i18n:{},discount:{},pricingPlanVersion:{},isEditable:{type:[Boolean,Function]},isCreatable:{type:Boolean},isRemovable:{type:[Boolean,Function]},scheduleStart:{},billingPeriod:{},billingTime:{},isDraftSubscription:{type:Boolean,default:!1},error:{},timezone:{}},emits:["add","edit","delete"],setup(t){const n=t,i=e.computed(()=>n.i18n??le),o=e.computed(()=>{if("error"in n)return ti(n.error)}),{isEditableFlag:u,isItemEditable:r,isItemRemovable:g}=xe({isEditable:n.isEditable,isRemovable:n.isRemovable}),l=e.computed(()=>{var v,c,s,b,m,d,f,B,k,C,y,a,h,p;return[...((c=(v=n.discount)==null?void 0:v.pricing_item_configs)==null?void 0:c.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"PRICING_RULE"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="pricing_item_configs"?o.value.message:void 0}}))||[],...((b=(s=n.discount)==null?void 0:s.product_items)==null?void 0:b.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"REVENUE_ITEM"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="product_items"?o.value.message:void 0}}))||[],...((d=(m=n.discount)==null?void 0:m.product_item_meter_property_conditions)==null?void 0:d.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"PRICING_RULE"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="product_item_meter_property_conditions"?o.value.message:void 0}}))||[],...((B=(f=n.discount)==null?void 0:f.pricing_items)==null?void 0:B.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"REVENUE_ITEM"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="pricing_items"?o.value.message:void 0}}))||[],...((C=(k=n.discount)==null?void 0:k.pricings)==null?void 0:C.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"PRODUCT"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="pricings"?o.value.message:void 0}}))||[],...((a=(y=n.discount)==null?void 0:y.products)==null?void 0:a.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"PRODUCT"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="products"?o.value.message:void 0}}))||[],...((p=(h=n.discount)==null?void 0:h.totals)==null?void 0:p.map((V,N)=>{var x,_;return{item:{...V,discountLevel:"INVOICE"},error:N===((x=o.value)==null?void 0:x.index)&&((_=o.value)==null?void 0:_.discountLevel)==="totals"?o.value.message:void 0}}))||[]]});return(v,c)=>(e.openBlock(),e.createBlock(Be,e.mergeProps(v.$attrs,{title:i.value.title,"order-of-application-explanation":i.value.orderOfApplicationExplanation,description:i.value.description,"pricing-plan-version-is-selected":!!t.pricingPlanVersion,"select-pricing-plan-hint":i.value.selectPricingPlanHint,"add-item-label":i.value.addItemLabel,"is-editable":e.unref(u),"is-creatable":!!t.isCreatable,"not-editable-explanation":i.value.notEditableExplanation,"has-items":l.value.length>0,onAdd:c[0]||(c[0]=s=>v.$emit("add"))}),{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(ri),alt:""},null,8,ci)]),"list-items":e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,({item:s,error:b})=>(e.openBlock(),e.createElementBlock("li",{key:JSON.stringify(s)},[e.createVNode(ai,{discount:s,error:b,"is-editable":e.unref(r)(s),"is-removable":e.unref(g)(s),"pricing-plan-version":t.pricingPlanVersion,i18n:i.value,timezone:t.timezone,onEdit:m=>v.$emit("edit",s),onDelete:m=>v.$emit("delete",s)},null,8,["discount","error","is-editable","is-removable","pricing-plan-version","i18n","timezone","onEdit","onDelete"])]))),128))]),_:1},16,["title","order-of-application-explanation","description","pricing-plan-version-is-selected","select-pricing-plan-hint","add-item-label","is-editable","is-creatable","not-editable-explanation","has-items"]))}}),Ne={...se,...ke,markupBody:(t,n,i)=>`Markup on ${t} <strong>${n}</strong> ${i}`},di=(t,n=Ne,i)=>{const{formatDate:o}=E.useIntl(),u=e.computed(()=>{var v,c;return((c=(v=t.value)==null?void 0:v.pricing_categories)==null?void 0:c.flatMap(s=>{var b;return[...((b=s.pricing_groups)==null?void 0:b.flatMap(m=>m.pricings))??[],...s.pricings??[]]}))??[]}),r=v=>n.markupBody(n.pricingRule,g(v)??"",l(v)),g=v=>{var c,s;const b=a=>{var h;return a.id===((h=v.ids)==null?void 0:h[0])},m=a=>{var h,p;return b(a)||!!((p=(h=a.conditions)==null?void 0:h.configs)!=null&&p.some(b))},d=a=>{var h;return(h=a.configs)==null?void 0:h.some(m)},f=a=>{var h;return(h=a.items)==null?void 0:h.some(d)},B=(c=u.value)==null?void 0:c.find(f),k=(s=B==null?void 0:B.items)==null?void 0:s.find(d),C=(k==null?void 0:k.configs)&&(k==null?void 0:k.configs.flatMap(T.getFlatConfigs)),y=C==null?void 0:C.find(b);return`<strong>${T.getConfigName(n)({pricing:B,item:k,config:y})}</strong>`},l=v=>{if(!v.start_at&&!v.end_at)return"";let c,s;return v.start_at||(c=n.startOfSchedule),v.end_at||(s=n.endOfSchedule),v.start_at&&(c=o(i?{date:v.start_at,format:"date",offsetType:"offsetted",timezone:i}:{date:v.start_at,format:"date",offsetType:"local",showTimezone:!1})),v.end_at&&(s=o(i?{date:v.end_at,format:"date",offsetType:"offsetted",timezone:i}:{date:v.end_at,format:"date",offsetType:"local",showTimezone:!1})),`(${c} - ${s})`};return{getMarkupBody:r,getFormattedDuration:l}},ui=t=>{const n=Object.entries(t||{});if(n.length===0)return;const[i,o]=n[0],[u,r,g]=i.split(".");return{markupLevel:u,index:parseInt(r,10),fieldName:g,message:o}},mi={class:"font-semibold text-primary-600"},pi=["innerHTML"],gi=e.defineComponent({__name:"SubscriptionMarkupItem",props:{markup:{},pricingPlanVersion:{},isEditable:{type:Boolean},isRemovable:{type:Boolean},i18n:{},error:{},timezone:{}},emits:["edit","delete"],setup(t,{emit:n}){const i=t,o=n,u=e.computed(()=>i.i18n??Ne),{getMarkupBody:r}=di(e.toRef(()=>i.pricingPlanVersion),u.value,i.timezone);return(g,l)=>(e.openBlock(),e.createBlock(Ce,{icon:"north_east","icon-color":"teal","is-editable":t.isEditable,"is-removable":t.isRemovable,error:t.error,onEdit:l[0]||(l[0]=v=>o("edit")),onDelete:l[1]||(l[1]=v=>o("delete"))},{body:e.withCtx(()=>[e.createElementVNode("span",mi,e.toDisplayString(t.markup.percentage)+"%"+e.toDisplayString(" "),1),e.createElementVNode("span",{innerHTML:e.unref(r)(t.markup)},null,8,pi)]),_:1},8,["is-editable","is-removable","error"]))}}),ae={...Ne,title:"Markups",orderOfApplicationExplanation:"Markups are applied before commitments on invoices",description:"Add price markups for a defined period or specific terms.",selectPricingPlanHint:"Please select a pricing plan to add markups",addItemLabel:"Add",notEditableExplanation:"Markups can't be edited for active schedules"},fi="data:image/svg+xml,%3csvg%20width='44'%20height='44'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='a'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='44'%20height='44'%3e%3cpath%20fill='%23D9D9D9'%20d='M0%200h44v44H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cmask%20id='e'%20fill='%23fff'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.76%2040.05a2.94%202.94%200%200%201%203.17.63%202.96%202.96%200%200%200%204.15%200%202.93%202.93%200%200%201%203.17-.63c1.48.61%203.19-.1%203.8-1.58a2.92%202.92%200%200%201%202.7-1.8c1.61%200%202.92-1.3%202.92-2.92%200-1.17.7-2.23%201.78-2.69a2.96%202.96%200%200%200%201.6-3.82%202.94%202.94%200%200%201%20.63-3.17%202.96%202.96%200%200%200%200-4.15%202.93%202.93%200%200%201-.63-3.16c.61-1.5-.1-3.2-1.58-3.81a2.92%202.92%200%200%201-1.8-2.7c0-1.61-1.3-2.92-2.92-2.92a2.93%202.93%200%200%201-2.69-1.78%202.96%202.96%200%200%200-3.82-1.6c-1.09.44-2.34.2-3.17-.63a2.96%202.96%200%200%200-4.15%200%202.93%202.93%200%200%201-3.16.63c-1.5-.61-3.2.1-3.81%201.58a2.92%202.92%200%200%201-2.7%201.8%202.92%202.92%200%200%200-2.92%202.92c0%201.17-.7%202.23-1.78%202.69a2.96%202.96%200%200%200-1.6%203.82c.44%201.09.2%202.34-.63%203.17a2.96%202.96%200%200%200%20.01%204.15c.82.83%201.07%202.08.62%203.16-.61%201.5.1%203.2%201.58%203.81a2.92%202.92%200%200%201%201.8%202.7c0%201.61%201.3%202.92%202.92%202.92%201.17%200%202.23.7%202.69%201.78a2.96%202.96%200%200%200%203.82%201.6Z'/%3e%3c/mask%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.76%2040.05a2.94%202.94%200%200%201%203.17.63%202.96%202.96%200%200%200%204.15%200%202.93%202.93%200%200%201%203.17-.63c1.48.61%203.19-.1%203.8-1.58a2.92%202.92%200%200%201%202.7-1.8c1.61%200%202.92-1.3%202.92-2.92%200-1.17.7-2.23%201.78-2.69a2.96%202.96%200%200%200%201.6-3.82%202.94%202.94%200%200%201%20.63-3.17%202.96%202.96%200%200%200%200-4.15%202.93%202.93%200%200%201-.63-3.16c.61-1.5-.1-3.2-1.58-3.81a2.92%202.92%200%200%201-1.8-2.7c0-1.61-1.3-2.92-2.92-2.92a2.93%202.93%200%200%201-2.69-1.78%202.96%202.96%200%200%200-3.82-1.6c-1.09.44-2.34.2-3.17-.63a2.96%202.96%200%200%200-4.15%200%202.93%202.93%200%200%201-3.16.63c-1.5-.61-3.2.1-3.81%201.58a2.92%202.92%200%200%201-2.7%201.8%202.92%202.92%200%200%200-2.92%202.92c0%201.17-.7%202.23-1.78%202.69a2.96%202.96%200%200%200-1.6%203.82c.44%201.09.2%202.34-.63%203.17a2.96%202.96%200%200%200%20.01%204.15c.82.83%201.07%202.08.62%203.16-.61%201.5.1%203.2%201.58%203.81a2.92%202.92%200%200%201%201.8%202.7c0%201.61%201.3%202.92%202.92%202.92%201.17%200%202.23.7%202.69%201.78a2.96%202.96%200%200%200%203.82%201.6Z'%20fill='%23BFEAFB'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.76%2040.05a2.94%202.94%200%200%201%203.17.63%202.96%202.96%200%200%200%204.15%200%202.93%202.93%200%200%201%203.17-.63c1.48.61%203.19-.1%203.8-1.58a2.92%202.92%200%200%201%202.7-1.8c1.61%200%202.92-1.3%202.92-2.92%200-1.17.7-2.23%201.78-2.69a2.96%202.96%200%200%200%201.6-3.82%202.94%202.94%200%200%201%20.63-3.17%202.96%202.96%200%200%200%200-4.15%202.93%202.93%200%200%201-.63-3.16c.61-1.5-.1-3.2-1.58-3.81a2.92%202.92%200%200%201-1.8-2.7c0-1.61-1.3-2.92-2.92-2.92a2.93%202.93%200%200%201-2.69-1.78%202.96%202.96%200%200%200-3.82-1.6c-1.09.44-2.34.2-3.17-.63a2.96%202.96%200%200%200-4.15%200%202.93%202.93%200%200%201-3.16.63c-1.5-.61-3.2.1-3.81%201.58a2.92%202.92%200%200%201-2.7%201.8%202.92%202.92%200%200%200-2.92%202.92c0%201.17-.7%202.23-1.78%202.69a2.96%202.96%200%200%200-1.6%203.82c.44%201.09.2%202.34-.63%203.17a2.96%202.96%200%200%200%20.01%204.15c.82.83%201.07%202.08.62%203.16-.61%201.5.1%203.2%201.58%203.81a2.92%202.92%200%200%201%201.8%202.7c0%201.61%201.3%202.92%202.92%202.92%201.17%200%202.23.7%202.69%201.78a2.96%202.96%200%200%200%203.82%201.6Z'%20fill='url(%23b)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.76%2040.05a2.94%202.94%200%200%201%203.17.63%202.96%202.96%200%200%200%204.15%200%202.93%202.93%200%200%201%203.17-.63c1.48.61%203.19-.1%203.8-1.58a2.92%202.92%200%200%201%202.7-1.8c1.61%200%202.92-1.3%202.92-2.92%200-1.17.7-2.23%201.78-2.69a2.96%202.96%200%200%200%201.6-3.82%202.94%202.94%200%200%201%20.63-3.17%202.96%202.96%200%200%200%200-4.15%202.93%202.93%200%200%201-.63-3.16c.61-1.5-.1-3.2-1.58-3.81a2.92%202.92%200%200%201-1.8-2.7c0-1.61-1.3-2.92-2.92-2.92a2.93%202.93%200%200%201-2.69-1.78%202.96%202.96%200%200%200-3.82-1.6c-1.09.44-2.34.2-3.17-.63a2.96%202.96%200%200%200-4.15%200%202.93%202.93%200%200%201-3.16.63c-1.5-.61-3.2.1-3.81%201.58a2.92%202.92%200%200%201-2.7%201.8%202.92%202.92%200%200%200-2.92%202.92c0%201.17-.7%202.23-1.78%202.69a2.96%202.96%200%200%200-1.6%203.82c.44%201.09.2%202.34-.63%203.17a2.96%202.96%200%200%200%20.01%204.15c.82.83%201.07%202.08.62%203.16-.61%201.5.1%203.2%201.58%203.81a2.92%202.92%200%200%201%201.8%202.7c0%201.61%201.3%202.92%202.92%202.92%201.17%200%202.23.7%202.69%201.78a2.96%202.96%200%200%200%203.82%201.6Z'%20fill='url(%23c)'/%3e%3cpath%20d='M12.02%2038.84a3.96%203.96%200%200%200%205.12%202.14l-.75-1.86c-.98.4-2.12-.07-2.53-1.05l-1.84.77Zm-1.77-1.17c.76%200%201.46.46%201.77%201.17l1.84-.78a3.93%203.93%200%200%200-3.61-2.4v2Zm-3.92-3.92a3.92%203.92%200%200%200%203.92%203.92v-2a1.92%201.92%200%200%201-1.92-1.92h-2Zm-1.18-1.77c.72.3%201.18%201%201.18%201.77h2c0-1.58-.95-3.01-2.42-3.62l-.76%201.85Zm-2.12-5.12c-.83%202%20.12%204.29%202.12%205.12l.76-1.85a1.92%201.92%200%200%201-1.03-2.5l-1.85-.77Zm-.41-2.08c.54.55.7%201.37.4%202.08l1.86.77c.6-1.46.26-3.14-.84-4.25l-1.42%201.4Zm-.01-5.55a3.96%203.96%200%200%200%200%205.55l1.43-1.4a1.96%201.96%200%200%201%200-2.75l-1.43-1.4Zm.41-2.1c.3.73.13%201.55-.41%202.1l1.42%201.4a3.94%203.94%200%200%200%20.85-4.25l-1.86.76Zm2.14-5.11a3.96%203.96%200%200%200-2.14%205.12l1.86-.76c-.4-.97.07-2.1%201.06-2.52l-.78-1.84Zm1.17-1.77c0%20.76-.46%201.46-1.17%201.77l.78%201.84a3.93%203.93%200%200%200%202.4-3.61h-2Zm3.92-3.92a3.92%203.92%200%200%200-3.92%203.92h2c0-1.06.86-1.92%201.92-1.92v-2Zm1.77-1.18c-.3.72-1%201.18-1.77%201.18v2c1.58%200%203.01-.95%203.62-2.42l-1.85-.76Zm5.12-2.12c-2-.83-4.29.12-5.12%202.12l1.85.76a1.92%201.92%200%200%201%202.5-1.03l.77-1.85Zm2.08-.41c-.55.54-1.37.7-2.08.4l-.77%201.86c1.46.6%203.14.26%204.26-.84l-1.4-1.42Zm5.55-.01a3.96%203.96%200%200%200-5.55%200l1.4%201.43a1.96%201.96%200%200%201%202.75%200l1.4-1.43Zm2.1.41c-.72.3-1.55.13-2.1-.41l-1.4%201.42a3.94%203.94%200%200%200%204.25.85l-.76-1.86Zm5.12%202.14a3.96%203.96%200%200%200-5.13-2.14l.76%201.86c.97-.4%202.1.07%202.52%201.05L32%205.16Zm1.76%201.17c-.76%200-1.46-.46-1.76-1.17l-1.85.77a3.93%203.93%200%200%200%203.61%202.4v-2Zm3.92%203.92a3.92%203.92%200%200%200-3.92-3.92v2c1.06%200%201.92.86%201.92%201.92h2Zm1.18%201.77c-.71-.3-1.18-1-1.18-1.77h-2c0%201.58.95%203.01%202.42%203.62l.76-1.85Zm2.12%205.12c.83-2-.12-4.29-2.12-5.12l-.76%201.85c.97.4%201.44%201.53%201.03%202.5l1.85.77Zm.41%202.08a1.93%201.93%200%200%201-.4-2.08l-1.86-.77a3.93%203.93%200%200%200%20.84%204.25l1.42-1.4Zm.01%205.55a3.96%203.96%200%200%200%200-5.55l-1.43%201.4c.75.77.75%202%200%202.74l1.43%201.4Zm-.41%202.1c-.3-.73-.13-1.55.41-2.1l-1.42-1.4a3.94%203.94%200%200%200-.85%204.25l1.86-.76Zm-2.14%205.11a3.96%203.96%200%200%200%202.14-5.12l-1.86.76c.4.97-.07%202.1-1.05%202.52l.77%201.84Zm-1.17%201.77c0-.76.46-1.46%201.17-1.77l-.77-1.84a3.93%203.93%200%200%200-2.4%203.61h2Zm-3.92%203.92a3.92%203.92%200%200%200%203.92-3.92h-2c0%201.06-.86%201.92-1.92%201.92v2Zm-1.77%201.18c.3-.72%201-1.18%201.77-1.18v-2c-1.58%200-3.01.95-3.62%202.42l1.85.76Zm-5.12%202.12c2%20.83%204.3-.12%205.12-2.12l-1.85-.76a1.92%201.92%200%200%201-2.5%201.03l-.77%201.85Zm-2.08.41c.55-.54%201.38-.7%202.08-.4l.77-1.86a3.93%203.93%200%200%200-4.25.84l1.4%201.42Zm-4.14-1.41a3.94%203.94%200%200%200-4.25-.85l.75%201.86c.72-.3%201.54-.13%202.1.41l1.4-1.42Zm-1.4%201.42a3.96%203.96%200%200%200%205.54%200l-1.4-1.43c-.77.75-2%20.75-2.74%200l-1.4%201.43Z'%20fill='url(%23d)'%20fill-opacity='.1'%20mask='url(%23e)'/%3e%3cg%20opacity='.5'%3e%3cmask%20id='f'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='12'%20y='12'%20width='20'%20height='20'%3e%3cpath%20fill='%23D9D9D9'%20d='M12%2012h20v20H12z'/%3e%3c/mask%3e%3cg%20mask='url(%23f)'%3e%3cpath%20d='m16.5%2028.67-1.17-1.17L25%2017.83h-5.5v-1.66h8.33v8.33h-1.66V19l-9.67%209.67Z'%20fill='%23222B35'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='b'%20x1='1.28'%20y1='1.28'%20x2='42.72'%20y2='42.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23395E6D'/%3e%3cstop%20offset='1'%20stop-color='%23395E6D'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='42.72'%20y1='1.28'%20x2='1.28'%20y2='42.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='22'%20y1='42.72'%20x2='22'%20y2='-2.59'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230C0E41'/%3e%3cstop%20offset='1'%20stop-color='%230C0E41'%20stop-opacity='.5'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",vi=["src"],hi=e.defineComponent({__name:"SubscriptionMarkups",props:{i18n:{},markup:{},pricingPlanVersion:{},isCreatable:{type:Boolean},isEditable:{type:[Boolean,Function]},isRemovable:{type:[Boolean,Function]},error:{},timezone:{}},emits:["add","edit","delete"],setup(t){const n=t,i=e.computed(()=>n.i18n??ae),{isEditableFlag:o,isItemEditable:u,isItemRemovable:r}=xe({isEditable:n.isEditable,isRemovable:n.isRemovable}),g=e.computed(()=>{if("error"in n)return ui(n.error)}),l=e.computed(()=>{var v,c;return((c=(v=n.markup)==null?void 0:v.pricing_item_configs)==null?void 0:c.map((s,b)=>{var m,d;return{item:s,error:b===((m=g.value)==null?void 0:m.index)&&((d=g.value)==null?void 0:d.markupLevel)==="pricing_item_configs"?g.value.message:void 0}}))??[]});return(v,c)=>(e.openBlock(),e.createBlock(Be,e.mergeProps(v.$attrs,{title:i.value.title,"order-of-application-explanation":i.value.orderOfApplicationExplanation,description:i.value.description,"pricing-plan-version-is-selected":!!t.pricingPlanVersion,"select-pricing-plan-hint":i.value.selectPricingPlanHint,"add-item-label":i.value.addItemLabel,"is-editable":e.unref(o),"is-creatable":!!t.isCreatable,"not-editable-explanation":i.value.notEditableExplanation,"has-items":l.value.length>0,onAdd:c[0]||(c[0]=s=>v.$emit("add"))}),{icon:e.withCtx(()=>[e.createElementVNode("img",{src:e.unref(fi),alt:""},null,8,vi)]),"list-items":e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,({item:s,error:b})=>(e.openBlock(),e.createElementBlock("li",{key:JSON.stringify(s)},[e.createVNode(gi,{markup:s,error:b,"is-editable":e.unref(u)(s),"is-removable":e.unref(r)(s),"pricing-plan-version":t.pricingPlanVersion,i18n:i.value,timezone:t.timezone,onEdit:m=>v.$emit("edit",s),onDelete:m=>v.$emit("delete",s)},null,8,["markup","error","is-editable","is-removable","pricing-plan-version","i18n","timezone","onEdit","onDelete"])]))),128))]),_:1},16,["title","order-of-application-explanation","description","pricing-plan-version-is-selected","select-pricing-plan-hint","add-item-label","is-editable","is-creatable","not-editable-explanation","has-items"]))}}),Nt={startOfSchedule:te.startOfSchedule,endOfSchedule:te.endOfSchedule,markupPercentage:t=>`${t}% markup`},bi={class:"flex items-center gap-2"},yi=e.defineComponent({__name:"SubscriptionScheduleConfigMarkup",props:{markup:{},i18n:{}},setup(t){const n=t,i=e.computed(()=>n.i18n??Nt),{formatDate:o}=E.useIntl();return(u,r)=>(e.openBlock(),e.createBlock(Z._sfc_main,{intent:"neutral"},{default:e.withCtx(()=>[e.createElementVNode("div",bi,[e.createVNode(L._sfc_main$1,{icon:"north_east",size:"xs"}),e.createElementVNode("span",null,[t.markup.percentage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.value.markupPercentage(t.markup.percentage)),1)],64)):e.createCommentVNode("",!0),t.markup.start_at||t.markup.end_at?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(" ")+"("+e.toDisplayString(t.markup.start_at?e.unref(o)({date:t.markup.start_at,format:"date",offsetType:"local",showTimezone:!1}):i.value.startOfSchedule)+" - "+e.toDisplayString(t.markup.end_at?e.unref(o)({date:t.markup.end_at,format:"date",offsetType:"local",showTimezone:!1}):i.value.endOfSchedule)+") ",1)],64)):e.createCommentVNode("",!0)])])]),_:1}))}}),Vt=e.defineComponent({__name:"TopUpDescription",props:{i18n:{},pricingItemConfig:{}},setup(t){const n=t,i=e.computed(()=>{var r;return!!((r=n.pricingItemConfig.top_up)!=null&&r.rollover)}),o=e.computed(()=>{var r,g;return(g=(r=n.pricingItemConfig.details)==null?void 0:r.bands)==null?void 0:g.some(l=>!!l.block_size)}),u=e.computed(()=>T.isTieredPricing(n.pricingItemConfig)&&o.value?i.value?n.i18n.tiered.blockSize.rolloverDescription:n.i18n.tiered.blockSize.nonRolloverDescription:T.isTieredPricing(n.pricingItemConfig)&&!o.value?i.value?n.i18n.tiered.nonBlockSize.rolloverDescription:n.i18n.tiered.nonBlockSize.nonRolloverDescription:i.value?n.i18n.rolloverDescription:n.i18n.nonRolloverDescription);return(r,g)=>(e.openBlock(),e.createBlock(E._sfc_main,{variant:"body-xs",color:"secondary",class:"italic"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1}))}}),_i={class:"min-w-0 grow"},ki={class:"shrink-0"},Ci=e.defineComponent({__name:"CardHeader",props:{icon:{},iconVariant:{default:"neutral"},title:{},subTitle:{},spacing:{default:"md"},size:{default:"sm"},variant:{default:"default"},uppercase:{type:Boolean,default:!0},cardVariant:{default:"default"}},setup(t){const n=t,i=e.computed(()=>{switch(n.cardVariant){case"error":return"border-red-100";case"dark":return"border-gray-600";default:return"border-gray-100"}});return(o,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card-header-print-root flex items-center justify-between gap-3",{"px-2 pt-2":t.spacing==="xs","px-4 pt-2":t.spacing==="sm","pb-2":["xs","sm"].includes(t.spacing)&&t.variant==="bordered","px-4 pt-4":t.spacing==="md","pb-4":t.spacing==="md"&&t.variant==="bordered","px-8 pt-6":t.spacing==="lg","pb-6":t.spacing==="lg"&&t.variant==="bordered","border-b":t.variant==="bordered",[i.value]:t.variant==="bordered"}])},[e.createElementVNode("div",_i,[e.createVNode(e.unref(bt._sfc_main),{icon:t.icon,title:t.title,"sub-title":t.subTitle,variant:t.iconVariant,size:t.size,uppercase:t.uppercase},{prefix:e.withCtx(()=>[e.renderSlot(o.$slots,"prefix",{},void 0,!0)]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),subTitle:e.withCtx(()=>[e.renderSlot(o.$slots,"subTitle",{},void 0,!0)]),suffix:e.withCtx(()=>[e.renderSlot(o.$slots,"title-suffix",{},void 0,!0)]),_:3},8,["icon","title","sub-title","variant","size","uppercase"])]),e.createElementVNode("div",ki,[e.renderSlot(o.$slots,"right",{},void 0,!0)])],2))}}),Et=G._export_sfc(Ci,[["__scopeId","data-v-fd2a04c5"]]),xi={class:"min-w-0 grow"},Bi={class:"flex items-center justify-center gap-2"},Ni={class:"collapsible-card-print-content"},Vi=e.defineComponent({__name:"CollapsibleCard",props:{isOpen:{type:Boolean,default:!1},isControlled:{type:Boolean},title:{},icon:{},iconVariant:{},spacing:{default:"md"},borderStyle:{},isExpandContentHidden:{type:Boolean,default:!1},printBehavior:{},withLeftAccent:{type:Boolean,default:!1},headerSize:{default:"sm"},uppercase:{type:Boolean,default:!0},cappedWidth:{type:Boolean},variant:{default:"default"},shadowSize:{},borderRadius:{},rootClass:{},wrapperClass:{}},emits:["toggle","toggled"],setup(t,{emit:n}){const i=t,o=n,[u,r]=ue.useToggle(!i.isOpen),g=()=>{i.isControlled?o("toggle"):r()};e.watch(()=>u.value,s=>{o("toggled",s)}),e.watch(()=>i.isOpen,s=>{i.isControlled&&r(!s)});const l=e.computed(()=>{switch(i.variant){case"error":return"border-red-50 bg-red-50";case"dark":return"bg-gray-800 text-gray-300";default:return""}}),v=e.computed(()=>{switch(i.variant){case"error":return"bg-red-200";default:return""}}),c=e.computed(()=>["ease-in-out duration-200 hover:shadow-md",l.value].join(" "));return(s,b)=>(e.openBlock(),e.createBlock(ce,{spacing:"none","wrapper-class":"collapsible-card-print-wrapper","root-class":e.unref(ie.cn)("collapsible-card-print-root",c.value),"border-style":t.borderStyle,"print-behavior":t.printBehavior},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ie.cn)(t.withLeftAccent?"flex p-1":""))},[t.withLeftAccent?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mr-2 w-1 rounded-md",v.value])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",xi,[e.renderSlot(s.$slots,"pre-header",{},void 0,!0),e.createVNode(Et,{"data-testid":"card-header",title:t.title,icon:t.icon,"icon-variant":t.iconVariant,spacing:t.spacing,size:t.headerSize,uppercase:t.uppercase,class:e.normalizeClass(["cursor-pointer",{"pb-4":t.spacing==="md","pb-6":t.spacing==="lg"}]),variant:"bordered",tabindex:"0","card-variant":t.variant,onClick:e.withModifiers(g,["stop"]),onKeyup:e.withKeys(g,["enter"])},e.createSlots({prefix:e.withCtx(()=>[e.renderSlot(s.$slots,"title-prefix",{},void 0,!0)]),default:e.withCtx(()=>[e.renderSlot(s.$slots,"title",{},void 0,!0)]),"title-suffix":e.withCtx(()=>[e.renderSlot(s.$slots,"title-suffix",{},void 0,!0)]),_:2},[t.isExpandContentHidden?void 0:{name:"right",fn:e.withCtx(()=>[e.createElementVNode("div",Bi,[s.$slots.right?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex justify-center",onClick:b[0]||(b[0]=e.withModifiers(()=>{},["stop"])),onKeyup:b[1]||(b[1]=e.withKeys(e.withModifiers(()=>{},["stop"]),["enter"]))},[e.renderSlot(s.$slots,"right",{},void 0,!0)],32)):e.createCommentVNode("",!0),e.createVNode(L._sfc_main$1,{icon:e.unref(u)?"unfold_more":"unfold_less",size:t.headerSize,class:e.normalizeClass({"text-white":t.variant==="dark","print:hidden":!0})},null,8,["icon","size","class"])])]),key:"0"}]),1032,["title","icon","icon-variant","spacing","size","uppercase","class","card-variant"]),t.isExpandContentHidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne._sfc_main,{key:0,"is-open":!e.unref(u),lazy:""},{default:e.withCtx(()=>[e.createElementVNode("div",Ni,[e.createVNode(he,{spacing:t.spacing},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["spacing"])])]),_:3},8,["is-open"]))])],2)]),_:3},8,["root-class","border-style","print-behavior"]))}}),Ei=G._export_sfc(Vi,[["__scopeId","data-v-31d142b4"]]),Si={tooltipCollapse:"Close",tooltipExpand:"Open"},wi={class:"flex flex-col"},Pi=["aria-label"],$i={class:"flex grow select-none items-center justify-between"},Ii={class:"text-left"},Ti={class:"flex items-center gap-2"},Di={key:0},Oi={class:"flex gap-6 print:block"},zi={class:"grow pt-5"},Li={class:"collapsible-list-item-content pb-6"},Mi=e.defineComponent({__name:"CollapsibleListItem",props:{hasContinuedPreline:{type:Boolean,default:!0},itemNumber:{default:1},i18n:{default:()=>Si},isOpen:{type:Boolean,default:!1},hideCollapseIcon:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["toggle"],setup(t){const n=t,i=e.computed(()=>n.isOpen?"unfold_less":"unfold_more");return(o,u)=>(e.openBlock(),e.createElementBlock("li",wi,[e.createElementVNode("button",{type:"button",class:"flex items-center gap-6","aria-label":t.isOpen?t.i18n.tooltipCollapse:t.i18n.tooltipExpand,onClick:u[0]||(u[0]=e.withModifiers(r=>o.$emit("toggle"),["stop"]))},[e.createElementVNode("div",{class:e.normalizeClass(["flex h-6 select-none items-center justify-center rounded border bg-white shadow-sm print:hidden",e.unref(ge)])},[e.renderSlot(o.$slots,"icon",{},()=>[e.createVNode(E._sfc_main,{tag:"span",variant:"body-xs",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.itemNumber),1)]),_:1})],!0)],2),e.createElementVNode("div",$i,[e.createElementVNode("div",Ii,[e.renderSlot(o.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",Ti,[o.$slots.right?(e.openBlock(),e.createElementBlock("div",Di,[e.renderSlot(o.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0),t.hideCollapseIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L._sfc_main$1,{key:1,icon:i.value,size:"sm",class:"h-6 print:hidden"},null,8,["icon"]))])])],8,Pi),e.createElementVNode("div",Oi,[e.createElementVNode("div",{class:e.normalizeClass(["relative flex shrink-0 justify-center",e.unref(ge)])},[e.createElementVNode("div",{class:e.normalizeClass(["pointer-events-none h-full w-0.5",[t.hasContinuedPreline?"bg-gray-100":"bg-gradient-to-b from-gray-100 to-transparent"]])},null,2)],2),e.createElementVNode("div",zi,[e.createVNode(ne._sfc_main,{"is-open":t.isOpen,lazy:t.lazy},{default:e.withCtx(()=>[e.createElementVNode("div",Li,[e.renderSlot(o.$slots,"default",{},void 0,!0)])]),_:3},8,["is-open","lazy"])])])]))}}),pt=G._export_sfc(Mi,[["__scopeId","data-v-333bc619"]]),Ri={class:"flex flex-col gap-1"},Ai={class:"text-base"},Fi=e.defineComponent({__name:"PricingItemHeader",props:{item:{},creditTypesById:{}},setup(t){return(n,i)=>(e.openBlock(),e.createElementBlock("div",Ri,[e.createElementVNode("h4",Ai,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.item.product_items,o=>(e.openBlock(),e.createBlock(E._sfc_main,{key:o.id,tag:"span",class:"flex flex-wrap items-center gap-3",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1024))),128))])]))}}),St={tiered:{nonBlockSize:{rolloverDescription:"Includes prior volume to determine the tier, including volume from prior schedule's billing cycles",nonRolloverDescription:"Prior volume is included to determine the tier"},blockSize:{rolloverDescription:"Includes prior volume to determine the tier and unused volume will move over, including volume from adjacent schedule's billing cycles",nonRolloverDescription:"Includes prior volume to determine the tier and unused volume will move over to the following billing cycles"}},nonRolloverDescription:"Unused volume will be moved over to the next billing cycle",rolloverDescription:"Unused volume will be moved over to the next billing cycle, including the next schedule's billing cycle"},wt={...ye,formatBillingPeriod:Q.formatBillingPeriod,formatAmount:Q.formatAmount,formatNumber:t=>new Intl.NumberFormat("en-US").format(t),billedEvery:"Billed every",every:"every",from:"From",upTo:"Up to",feeFloor:"Fee floor",feeCap:"Fee cap",price:"Price",pricePerStep:()=>"Price / Step",pricePerUnit:()=>"Price / Unit",percentage:"Percentage",per:"Per",infinite:"infinite",topUpDescription:St,fixedAmount:"Fixed amount",tieringConditions:"Tiering conditions"},Pt={...ye,topUpDescription:St,notBilled:"Not billed",passThrough:"Pass through",perNumberOfUnits:(t,n)=>`per ${Number(t)>1?`${t} ${(n==null?void 0:n.plural)??"units"}`:`${(n==null?void 0:n.singular)??"unit"}`}`,ofAmount:()=>"of amount",with:"with",aMinimumOf:"a minimum of",and:"and",aMaximumOf:"a maximum of",perSeat:"per seat",billedInAdvance:"billed in advance",billedEvery:"billed every",oneOff:"one-off",formatBillingPeriod:Q.formatBillingPeriod},$t={...Pt,...wt,includedVolumeAmountPerSchedule:t=>`with <strong class="font-semibold text-primary-600">${new Intl.NumberFormat("en-US",{style:"currency",currencyDisplay:"symbol",currency:t.currency,maximumFractionDigits:10}).format(Number(t.quantity))}</strong> free amount per schedule included`,includedVolumeAmountPerBillingPeriod:t=>`with <strong class="font-semibold text-primary-600">${new Intl.NumberFormat("en-US",{style:"currency",currencyDisplay:"symbol",currency:t.currency,maximumFractionDigits:10}).format(Number(t.quantity))}</strong> free amount per billing period included`,includedVolumeUnitsPerSchedule:t=>`with <strong class="font-semibold text-primary-600">${t} unit${t==="1"?"":"s"}</strong> per schedule included`,includedVolumeUnitsPerBillingPeriod:t=>`with <strong class="font-semibold text-primary-600">${t} unit${t==="1"?"":"s"}</strong> per billing period included`,includedSeats:t=>`with default <strong class="font-semibold text-primary-600">${t}</strong> seat${t==="1"?"":"s"}`},Zi={key:0,class:"flex flex-col gap-1"},Ui={class:"flex items-center gap-2"},Hi={key:0,class:"flex justify-center gap-2"},Gi={key:0,class:"ml-auto text-secondary"},ji={key:1,class:"ml-auto text-secondary"},qi={key:0,class:"ml-4 flex shrink-0 flex-col empty:hidden"},Wi={class:"flex items-center justify-end"},Yi={"data-testid":"flat-fixed-none-amount"},Ki={"data-testid":"flat-fixed-none-per-units",class:"pl-1"},Ji={key:0,class:"pl-1"},Xi={"data-testid":"flat-fixed-none-amount"},Qi={key:0,class:"pl-1"},eo={"data-testid":"flat-fixed-none-credits-label",class:"font-semibold text-primary-600"},to={"data-testid":"flat-fixed-none-per-units",class:"pl-1"},no={key:0,class:"pl-1"},io={class:"font-semibold text-primary-600"},oo={class:"pl-1"},lo={key:0,class:"pl-1"},ao={key:1,class:"mr-1"},ro={key:3,class:"mr-1"},co={key:0,class:"flex shrink-0 flex-col"},so={key:2,class:"pl-1"},uo={key:3,class:"pl-1"},mo={key:4,class:"shrink-9 pl-1 italic"},po={class:"font-semibold text-primary-600"},go={key:1,class:"flex shrink-0 flex-col"},fo={class:"pl-1"},vo={key:0,class:"italic"},ho={key:2,class:"flex shrink-0 flex-col"},bo={class:"pl-1"},yo={key:1,class:"pl-1"},_o={key:2,class:"pl-1 italic"},ko={class:"font-semibold text-primary-600"},Co=e.defineComponent({__name:"FlatFixedNonePricingRule",props:{config:{},item:{},areNonBillableItemsVisible:{type:Boolean},i18n:{},isCombinedPricing:{type:Boolean},showConfigHeader:{type:Boolean,default:!0},showDefaultValues:{type:Boolean,default:!0},creditTypesById:{},isCollapsible:{type:Boolean},isExpanded:{type:Boolean}},emits:["expand-toggled"],setup(t){const n=t,{formatMessage:i}=E.useIntl(),o=e.computed(()=>n.i18n??Pt),u=e.computed(()=>T.isTopUpPricing(n.config)),r=i({defaultMessage:"unit",id:"lWOCGz",description:"Fallback singular unit label for pricing rule display"}),g=i({defaultMessage:"units",id:"Vl9vDx",description:"Fallback plural unit label for pricing rule display"}),l=e.computed(()=>n.item.product_items&&n.item.product_items[0]),v=e.computed(()=>{var C,y,a,h,p,V,N,x;if(((C=l.value)==null?void 0:C.model_type)==="CREDITS"){const _=(y=l.value.credits)==null?void 0:y.credit_type_id,S=_?(h=(a=n.creditTypesById)==null?void 0:a[_])==null?void 0:h.unit_name:void 0;return{singular:(S==null?void 0:S.singular)||r,plural:(S==null?void 0:S.plural)||g}}return{singular:((V=(p=l.value)==null?void 0:p.unit_name)==null?void 0:V.singular)||r,plural:((x=(N=l.value)==null?void 0:N.unit_name)==null?void 0:x.plural)||g}}),c=e.computed(()=>{var C,y,a,h;return{singular:((y=(C=l.value)==null?void 0:C.unit_name)==null?void 0:y.singular)||r,plural:((h=(a=l.value)==null?void 0:a.unit_name)==null?void 0:h.plural)||g}}),s=e.computed(()=>{var C,y,a,h;return(h=(a=(y=(C=n.config.split_pricing)==null?void 0:C.meter_properties)==null?void 0:y.map(p=>{var V;return(V=p.meter_property)==null?void 0:V.name}))==null?void 0:a.filter(p=>!!p))==null?void 0:h.join(",")}),b=e.computed(()=>n.showConfigHeader||n.config.split_pricing),m=e.computed(()=>!!n.config.use_fallback_currency&&!!n.config.fallback_currency),d=e.computed(()=>`Based on fallback currency – ${n.config.fallback_currency}`),f=e.computed(()=>{var C,y,a;return(a=(y=(C=n.config.details)==null?void 0:C.bands)==null?void 0:y[0])==null?void 0:a.credits}),B=e.computed(()=>{var C,y,a,h,p,V;const N=(C=f.value)==null?void 0:C.credit_type_id,x=(y=f.value)==null?void 0:y.quantity;if(!x)return"";const _=N?(a=n.creditTypesById)==null?void 0:a[N]:void 0;if(!_)return x;const S=Number(x)===1?((h=_.unit_name)==null?void 0:h.singular)??_.name:((p=_.unit_name)==null?void 0:p.plural)??((V=_.unit_name)==null?void 0:V.singular)??_.name;return S?`${x} ${S}`:x}),k=e.computed(()=>{var C;return((C=n.config.details)==null?void 0:C.pricing_type)==="NONE"});return(C,y)=>(e.openBlock(),e.createBlock(be,{class:e.normalizeClass({"print:hidden":k.value}),"is-collapsible":t.isCollapsible,"is-expanded":t.isExpanded,"header-class":"flex items-start justify-between",onToggle:y[0]||(y[0]=a=>C.$emit("expand-toggled"))},{header:e.withCtx(()=>{var a,h,p,V,N,x,_,S,w,P,D,$,O,U,R,A,M,j,Ve,Ee,Se,we,Pe,$e,Ie,Te,De,Oe,ze,Le,Me,Re,Ae,Fe,Ze,Ue,He,Ge,je,qe,We,Ye,Ke,Je,Xe,Qe,et;return[b.value?(e.openBlock(),e.createElementBlock("div",Zi,[e.createElementVNode("div",Ui,[t.showConfigHeader?(e.openBlock(),e.createBlock(_e,{key:0,config:t.config,i18n:o.value},{"override-tooltip":e.withCtx(()=>[e.renderSlot(C.$slots,"override-tooltip")]),_:3},8,["config","i18n"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(I._sfc_main,{key:1,variant:"outline",placement:"top"},{tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(L._sfc_main$1,{icon:"change_circle",class:"text-gray-500"})]),_:1})):e.createCommentVNode("",!0)]),t.config.split_pricing?(e.openBlock(),e.createElementBlock("div",Hi,[e.createVNode(E._sfc_main,{variant:"label",tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.splitBy),1)]),_:1}),e.createVNode(E._sfc_main,{tag:"span",variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),((a=t.config.details)==null?void 0:a.pricing_type)==="NONE"||((h=t.config.details)==null?void 0:h.pricing_type)==="PASS_THROUGH"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[((p=t.config.details)==null?void 0:p.pricing_type)==="NONE"?(e.openBlock(),e.createElementBlock("div",Gi,e.toDisplayString(o.value.notBilled),1)):e.createCommentVNode("",!0),((V=t.config.details)==null?void 0:V.pricing_type)==="PASS_THROUGH"?(e.openBlock(),e.createElementBlock("div",ji,e.toDisplayString(o.value.passThrough),1)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.value.model_type==="USAGE_BASED"||l.value.model_type==="CREDITS"?(e.openBlock(),e.createElementBlock("div",qi,[e.createElementVNode("div",null,[e.createElementVNode("div",Wi,[(N=t.config.details)!=null&&N.bands&&((x=t.config.details)!=null&&x.bands[0].amount)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Yi,[e.createVNode(z._sfc_main,{value:(_=t.config.details)==null?void 0:_.bands[0].amount,highlighted:""},null,8,["value"])]),e.createElementVNode("span",Ki,e.toDisplayString(o.value.perNumberOfUnits((w=(S=t.config.details)==null?void 0:S.bands[0])!=null&&w.block_size&&e.unref(H.isBandNumber)((P=t.config.details)==null?void 0:P.bands[0].block_size)?(D=t.config.details)==null?void 0:D.bands[0].block_size.number:"1",v.value)),1),($=t.config.details)!=null&&$.pricing_period?(e.openBlock(),e.createElementBlock("span",Ji,e.toDisplayString(o.value.formatBillingPeriod((O=t.config.details)==null?void 0:O.pricing_period)),1)):e.createCommentVNode("",!0)],64)):(U=t.config.details)!=null&&U.bands&&((R=t.config.details)!=null&&R.bands[0].fixed_amount)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",Xi,[e.createVNode(z._sfc_main,{value:(A=t.config.details)==null?void 0:A.bands[0].fixed_amount,highlighted:""},null,8,["value"])]),(M=t.config.details)!=null&&M.pricing_period?(e.openBlock(),e.createElementBlock("span",Qi,e.toDisplayString(o.value.formatBillingPeriod((j=t.config.details)==null?void 0:j.pricing_period)),1)):e.createCommentVNode("",!0)],64)):(Ve=t.config.details)!=null&&Ve.bands&&((Se=(Ee=t.config.details)==null?void 0:Ee.bands[0].credits)!=null&&Se.quantity)&&((Pe=(we=t.config.details)==null?void 0:we.bands[0].credits)!=null&&Pe.credit_type_id)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",eo,e.toDisplayString(B.value),1),e.createElementVNode("span",to,e.toDisplayString(o.value.perNumberOfUnits((Ie=($e=t.config.details)==null?void 0:$e.bands[0])!=null&&Ie.block_size&&e.unref(H.isBandNumber)((Te=t.config.details)==null?void 0:Te.bands[0].block_size)?(De=t.config.details)==null?void 0:De.bands[0].block_size.number:"1",c.value)),1),(Oe=t.config.details)!=null&&Oe.pricing_period?(e.openBlock(),e.createElementBlock("span",no,e.toDisplayString(o.value.formatBillingPeriod((ze=t.config.details)==null?void 0:ze.pricing_period)),1)):e.createCommentVNode("",!0)],64)):(Le=t.config.details)!=null&&Le.bands&&typeof((Me=t.config.details)==null?void 0:Me.bands[0].percentage)=="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",io,e.toDisplayString((Re=t.config.details)==null?void 0:Re.bands[0].percentage)+"% ",1),e.createElementVNode("span",oo,e.toDisplayString(o.value.ofAmount((Ae=l.value.unit_name)==null?void 0:Ae.singular)),1),(Fe=t.config.details)!=null&&Fe.pricing_period?(e.openBlock(),e.createElementBlock("span",lo,e.toDisplayString(o.value.formatBillingPeriod((Ze=t.config.details)==null?void 0:Ze.pricing_period)),1)):e.createCommentVNode("",!0),(Ue=t.config.details)!=null&&Ue.bands[0].minimum_amount||(He=t.config.details)!=null&&He.bands[0].maximum_amount?(e.openBlock(),e.createElementBlock("span",ao," , "+e.toDisplayString(o.value.with),1)):e.createCommentVNode("",!0),(Ge=t.config.details)!=null&&Ge.bands[0].minimum_amount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(o.value.aMinimumOf)+" ",1),e.createVNode(z._sfc_main,{value:(je=t.config.details)==null?void 0:je.bands[0].minimum_amount,highlighted:"",class:"mx-1"},null,8,["value"])],64)):e.createCommentVNode("",!0),(qe=t.config.details)!=null&&qe.bands[0].minimum_amount&&((We=t.config.details)!=null&&We.bands[0].maximum_amount)?(e.openBlock(),e.createElementBlock("span",ro,e.toDisplayString(o.value.and),1)):e.createCommentVNode("",!0),(Ye=t.config.details)!=null&&Ye.bands[0].maximum_amount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createTextVNode(e.toDisplayString(o.value.aMaximumOf)+" ",1),e.createVNode(z._sfc_main,{value:(Ke=t.config.details)==null?void 0:Ke.bands[0].maximum_amount,highlighted:"",class:"ml-1"},null,8,["value"])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",null,[e.renderSlot(C.$slots,"included")])])):e.createCommentVNode("",!0),t.isCombinedPricing?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.value.model_type==="RECURRING"?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{tag:"div",variant:"body-sm",class:"flex items-center"},{default:e.withCtx(()=>{var q,W,Y,K,J,X,tt,nt,it;return[(q=t.config.details)!=null&&q.bands&&((W=t.config.details)!=null&&W.bands[0].amount)?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:(Y=t.config.details)==null?void 0:Y.bands[0].amount,highlighted:""},null,8,["value"])):(K=t.config.details)!=null&&K.bands&&((J=t.config.details)!=null&&J.bands[0].fixed_amount)?(e.openBlock(),e.createBlock(z._sfc_main,{key:1,value:(X=t.config.details)==null?void 0:X.bands[0].fixed_amount,highlighted:""},null,8,["value"])):e.createCommentVNode("",!0),(nt=(tt=t.config.details)==null?void 0:tt.pricing_period)!=null&&nt.type?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(o.value.formatBillingPeriod((it=t.config.details)==null?void 0:it.pricing_period)),1)):(e.openBlock(),e.createElementBlock("div",uo,"per billing period")),t.config.billing_in_advance?(e.openBlock(),e.createElementBlock("span",mo," ("+e.toDisplayString(o.value.billedInAdvance)+") ",1)):e.createCommentVNode("",!0)]}),_:1}),(Xe=(Je=t.config.details)==null?void 0:Je.billing_period)!=null&&Xe.type?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,tag:"div",variant:"body-sm",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.billedEvery)+" ",1),e.createElementVNode("span",po,e.toDisplayString(o.value.formatBillingPeriod(t.config.details.billing_period,{prefix:!1})),1)]),_:1})):e.createCommentVNode("",!0)]),e.renderSlot(C.$slots,"included")])):e.createCommentVNode("",!0),l.value.model_type==="ONE_OFF"?(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{tag:"div",variant:"body-sm",class:"flex items-center"},{default:e.withCtx(()=>{var q,W,Y,K,J,X;return[(q=t.config.details)!=null&&q.bands&&((W=t.config.details)!=null&&W.bands[0].amount)?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:(Y=t.config.details)==null?void 0:Y.bands[0].amount,highlighted:""},null,8,["value"])):(K=t.config.details)!=null&&K.bands&&((J=t.config.details)!=null&&J.bands[0].fixed_amount)?(e.openBlock(),e.createBlock(z._sfc_main,{key:1,value:(X=t.config.details)==null?void 0:X.bands[0].fixed_amount,highlighted:""},null,8,["value"])):e.createCommentVNode("",!0),e.createElementVNode("div",fo,[e.createTextVNode(e.toDisplayString(o.value.oneOff)+" ",1),t.config.billing_in_advance?(e.openBlock(),e.createElementBlock("span",vo," ("+e.toDisplayString(o.value.billedInAdvance)+") ",1)):e.createCommentVNode("",!0)])]}),_:1})]),e.renderSlot(C.$slots,"included")])):e.createCommentVNode("",!0),l.value.model_type==="PER_SEAT"?(e.openBlock(),e.createElementBlock("div",ho,[e.createElementVNode("div",null,[e.createVNode(E._sfc_main,{tag:"div",variant:"body-sm",class:"flex items-center"},{default:e.withCtx(()=>{var q,W,Y,K,J,X;return[(q=t.config.details)!=null&&q.bands&&((W=t.config.details)!=null&&W.bands[0].amount)?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:(Y=t.config.details)==null?void 0:Y.bands[0].amount,highlighted:""},null,8,["value"])):e.createCommentVNode("",!0),e.createElementVNode("span",bo,e.toDisplayString(o.value.perSeat),1),(J=(K=t.config.details)==null?void 0:K.pricing_period)!=null&&J.type?(e.openBlock(),e.createElementBlock("div",yo,e.toDisplayString(o.value.formatBillingPeriod((X=t.config.details)==null?void 0:X.pricing_period)),1)):e.createCommentVNode("",!0),t.config.billing_in_advance?(e.openBlock(),e.createElementBlock("span",_o," ("+e.toDisplayString(o.value.billedInAdvance)+") ",1)):e.createCommentVNode("",!0)]}),_:1}),(et=(Qe=t.config.details)==null?void 0:Qe.billing_period)!=null&&et.type?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,tag:"div",variant:"body-sm",class:"text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.billedEvery)+" ",1),e.createElementVNode("span",ko,e.toDisplayString(o.value.formatBillingPeriod(t.config.details.billing_period,{prefix:!1})),1)]),_:1})):e.createCommentVNode("",!0)]),e.renderSlot(C.$slots,"included")])):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)],64))]}),default:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(Vt,{key:0,i18n:o.value.topUpDescription,class:"mt-1","pricing-item-config":t.config},null,8,["i18n","pricing-item-config"])):e.createCommentVNode("",!0)]),_:3},8,["class","is-collapsible","is-expanded"]))}}),xo={key:0,class:"flex items-center gap-2"},Bo={key:1,class:"ml-4 flex shrink-0 flex-wrap items-center justify-end gap-1"},No=e.defineComponent({__name:"FlexiblePricingRule",props:{config:{},showConfigHeader:{type:Boolean,default:!0},isCollapsible:{type:Boolean},isExpanded:{type:Boolean}},emits:["expand-toggled"],setup(t){const n=t,{formatMessage:i}=E.useIntl(),o=e.computed(()=>{var l,v;return(v=(l=n.config.details)==null?void 0:l.bands)==null?void 0:v[0]}),u=i({defaultMessage:"Flexible pricing",id:"wYqODC",description:"Read-only label for a flexible (choose-your-amount) pricing rule"}),r=i({defaultMessage:"minimum amount",id:"Bbc4Nn",description:"Suffix after the minimum amount of a flexible pricing rule"}),g=i({defaultMessage:"maximum amount",id:"V6mQFd",description:"Suffix after the maximum amount of a flexible pricing rule"});return(l,v)=>(e.openBlock(),e.createBlock(be,{"is-collapsible":t.isCollapsible,"is-expanded":t.isExpanded,"header-class":"flex items-start justify-between",onToggle:v[0]||(v[0]=c=>l.$emit("expand-toggled"))},{header:e.withCtx(()=>{var c,s,b,m,d;return[t.showConfigHeader?(e.openBlock(),e.createElementBlock("div",xo,[e.createVNode(E._sfc_main,{"no-spacing":"",color:"secondary",variant:"body",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)),1)]),_:1}),e.renderSlot(l.$slots,"override-tooltip")])):e.createCommentVNode("",!0),(c=o.value)!=null&&c.minimum_amount||(s=o.value)!=null&&s.maximum_amount?(e.openBlock(),e.createElementBlock("div",Bo,[(b=o.value)!=null&&b.minimum_amount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(z._sfc_main,{value:o.value.minimum_amount,highlighted:""},null,8,["value"]),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(e.unref(r)),1),(m=o.value)!=null&&m.maximum_amount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(",")],64)):e.createCommentVNode("",!0)])],64)):e.createCommentVNode("",!0),(d=o.value)!=null&&d.maximum_amount?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(z._sfc_main,{value:o.value.maximum_amount,highlighted:""},null,8,["value"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(g)),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),_:3},8,["is-collapsible","is-expanded"]))}}),Vo={key:0,"data-testid":"tiering-conditions",class:"flex flex-col gap-1"},Eo={class:"text-xs"},So=e.defineComponent({__name:"TieringConditions",props:{expression:{},i18n:{}},setup(t){return(n,i)=>t.expression?(e.openBlock(),e.createElementBlock("div",Vo,[e.createVNode(E._sfc_main,{variant:"body-xs",weight:"semibold",color:"secondary","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.tieringConditions),1)]),_:1}),e.createElementVNode("div",Eo,[e.createVNode(re._sfc_main,{"expression-comparators":t.expression,"root-class":"bg-teal-400/25"},null,8,["expression-comparators"])])])):e.createCommentVNode("",!0)}}),wo={key:0,class:"flex gap-2"},Po={key:1,class:"flex justify-center gap-2"},$o={class:"tiered-table-print-wrapper mt-3 overflow-clip rounded border"},Io={class:"tiered-table-print w-full table-auto"},To=["colspan"],Do={class:"border-t"},Oo={class:"px-2 py-1 text-left"},zo={class:"px-2 py-1 text-left"},Lo={key:0,class:"px-2 py-1 text-right"},Mo={key:1,class:"px-2 py-1 text-right"},Ro={key:2,class:"px-2 py-1 text-right"},Ao={class:"px-2 py-1 text-left"},Fo={class:"px-2 py-1 text-left"},Zo={key:4,class:"pr-2 text-right"},Uo={class:"px-2 py-1"},Ho={class:"px-2 py-1"},Go={key:0,class:"px-2 py-1 text-right"},jo={class:"font-semibold text-primary-600"},qo={key:1,class:"px-2 py-1 text-right"},Wo={class:"font-semibold text-primary-600"},Yo={key:2,class:"px-2 py-1 text-right"},Ko={class:"px-2 py-1"},Jo={class:"px-2 py-1"},Xo={key:4,class:"px-2 py-1 text-right"},Qo={key:2,class:"mt-2 flex items-center"},el={key:0},tl={class:"font-semibold text-primary-600"},nl=e.defineComponent({__name:"TieredSteppedPricingRule",props:{config:{},itemIndex:{},configIndex:{},item:{},i18n:{},isCombinedPricing:{type:Boolean},showConfigHeader:{type:Boolean,default:!0},creditTypesById:{},isCollapsible:{type:Boolean},isExpanded:{type:Boolean}},emits:["expand-toggled"],setup(t){const n=t,i=e.computed(()=>n.i18n??wt),o=e.computed(()=>({tieringConditions:i.value.tieringConditions})),u=e.computed(()=>{var y,a,h,p,V,N,x;return((p=(h=(a=(y=n.config.details)==null?void 0:y.bands)==null?void 0:a.find(_=>{var S;return(S=_.credits)==null?void 0:S.credit_type_id}))==null?void 0:h.credits)==null?void 0:p.credit_type_id)??((x=(N=(V=n.item.product_items)==null?void 0:V[0])==null?void 0:N.credits)==null?void 0:x.credit_type_id)}),r=e.computed(()=>{var y,a,h,p,V;if(u.value){const N=(y=n.creditTypesById)==null?void 0:y[u.value];if(N)return((a=N.unit_name)==null?void 0:a.singular)||"unit"}return((V=(p=(h=n.item.product_items)==null?void 0:h[0])==null?void 0:p.unit_name)==null?void 0:V.singular)||"unit"}),g=e.computed(()=>{var y,a;const h=(y=n.config.details)==null?void 0:y.pricing_type;if(h&&["TIERED","TOP_TIERED"].includes(h)&&((a=n.config.details)!=null&&a.bands)){for(const p of n.config.details.bands)if(p.minimum_amount||p.maximum_amount)return!0}return!1}),l=e.computed(()=>{var y;return T.isTieredPricing(n.config)?"TIERED":T.isStairStepPricing(n.config)?"STAIR_STEP":(y=n.config.details)==null?void 0:y.pricing_type}),v=e.computed(()=>T.isTopUpPricing(n.config)),c=e.computed(()=>{var y,a;return(a=(y=n.config.details)==null?void 0:y.bands)==null?void 0:a.some(h=>h.block_size)}),s=e.computed(()=>{var y;return(y=n.config.details.bands)==null?void 0:y.some(a=>a.fixed_amount)}),b=e.computed(()=>{var y;return(y=n.config.details.bands)==null?void 0:y.some(a=>a.amount)}),m=e.computed(()=>{var y;return(y=n.config.details.bands)==null?void 0:y.some(a=>a.percentage)}),d=e.computed(()=>{var y,a,h,p;return(p=(h=(a=(y=n.config.split_pricing)==null?void 0:y.meter_properties)==null?void 0:a.map(V=>{var N;return(N=V.meter_property)==null?void 0:N.name}))==null?void 0:h.filter(V=>!!V))==null?void 0:p.join(", ")}),f=e.computed(()=>n.showConfigHeader||n.config.split_pricing),B=e.computed(()=>!!n.config.use_fallback_currency&&!!n.config.fallback_currency),k=e.computed(()=>`Based on fallback currency – ${n.config.fallback_currency}`),C=e.computed(()=>2+(s.value?1:0)+(b.value?1:0)+(m.value?1:0)+(g.value?2:0)+(c.value?1:0));return(y,a)=>(e.openBlock(),e.createBlock(be,{"is-collapsible":t.isCollapsible,"is-expanded":t.isExpanded,"header-class":"tiered-rule-header flex items-start justify-between","unmount-on-close":"",onToggle:a[0]||(a[0]=h=>y.$emit("expand-toggled"))},{header:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",wo,[e.createVNode(_e,{config:t.config,i18n:i.value},{"override-tooltip":e.withCtx(()=>[e.renderSlot(y.$slots,"override-tooltip",{},void 0,!0)]),_:3},8,["config","i18n"]),B.value?(e.openBlock(),e.createBlock(I._sfc_main,{key:0,variant:"outline",placement:"top"},{tooltip:e.withCtx(()=>[e.createVNode(I.TooltipContent,null,{default:e.withCtx(()=>[e.createVNode(I._sfc_main$1,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.value),1)]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(L._sfc_main$1,{icon:"change_circle",class:"text-gray-500"})]),_:1})):e.createCommentVNode("",!0),t.config.split_pricing?(e.openBlock(),e.createElementBlock("div",Po,[e.createVNode(E._sfc_main,{variant:"label",tag:"span"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.splitBy),1)]),_:1}),e.createVNode(E._sfc_main,{tag:"span",variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value),1)]),_:1})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>{var h,p,V,N;return[v.value?(e.openBlock(),e.createBlock(e.unref(Vt),{key:0,class:"mb-3 mt-1",i18n:i.value.topUpDescription,"pricing-item-config":t.config},null,8,["i18n","pricing-item-config"])):e.createCommentVNode("",!0),e.createElementVNode("div",$o,[e.createElementVNode("table",Io,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{colspan:C.value,class:"bg-gray-50 px-2 text-left"},[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Q.formatEnum)(l.value)),1)]),_:1})],8,To)]),e.createElementVNode("tr",Do,[e.createElementVNode("th",Oo,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.from),1)]),_:1})]),e.createElementVNode("th",zo,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.upTo),1)]),_:1})]),s.value?(e.openBlock(),e.createElementBlock("th",Lo,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.fixedAmount),1)]),_:1})])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("th",Mo,[l.value==="STAIR_STEP"?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,variant:"caps-heading"},{default:e.withCtx(()=>{var x,_,S;return[e.createTextVNode(e.toDisplayString(i.value.pricePerStep((S=(_=(x=t.item.product_items)==null?void 0:x[0])==null?void 0:_.unit_name)==null?void 0:S.plural)),1)]}),_:1})):c.value?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.price),1)]),_:1})):t.config.details.bands&&t.config.details.bands[0].amount||t.config.details.bands&&t.config.details.bands[0].fixed_amount?(e.openBlock(),e.createBlock(E._sfc_main,{key:2,variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.pricePerUnit(r.value)),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("th",Ro,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.percentage),1)]),_:1})])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("th",Ao,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.feeFloor),1)]),_:1})]),e.createElementVNode("th",Fo,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.feeCap),1)]),_:1})])],64)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("th",Zo,[e.createVNode(E._sfc_main,{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.per),1)]),_:1})])):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.config.details.bands,(x,_)=>{var S,w,P,D,$,O;return e.openBlock(),e.createElementBlock("tr",{key:_,class:"border-t"},[e.createElementVNode("td",Uo,[(S=t.config.details)!=null&&S.bands?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(nn)(i.value)((w=t.config.details)==null?void 0:w.bands[_-1])),1)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("td",Ho,[(P=t.config.details)!=null&&P.bands?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(on)(i.value)(x,(D=t.config.details)==null?void 0:D.bands,_)),1)],64)):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createElementBlock("td",Go,[x.fixed_amount?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:x.fixed_amount,highlighted:""},null,8,["value"])):e.createCommentVNode("",!0),x.fixed_amount&&(($=t.config.details)!=null&&$.pricing_period)?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,tag:"span",class:"pl-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.every)+" ",1),e.createElementVNode("span",jo,e.toDisplayString(i.value.formatBillingPeriod(t.config.details.pricing_period,{prefix:!1})),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("td",qo,[x.amount?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:x.amount,highlighted:""},null,8,["value"])):e.createCommentVNode("",!0),x.amount&&((O=t.config.details)!=null&&O.pricing_period)?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,tag:"span",class:"pl-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.every)+" ",1),e.createElementVNode("span",Wo,e.toDisplayString(i.value.formatBillingPeriod(t.config.details.pricing_period,{prefix:!1})),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("td",Yo,[x.percentage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(x.percentage)+"% ",1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("td",Ko,[x.minimum_amount?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:x.minimum_amount},null,8,["value"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ")],64))]),e.createElementVNode("td",Jo,[x.maximum_amount?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:x.maximum_amount},null,8,["value"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ")],64))])],64)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("td",Xo,[e.unref(H.isBandAmount)(x.block_size)?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:x.block_size.amount},null,8,["value"])):e.unref(H.isBandNumber)(x.block_size)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(i.value.formatNumber(+x.block_size.number)),1)],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])}),128))])])]),t.config.tiering_conditions?(e.openBlock(),e.createBlock(So,{key:1,class:"mt-2",i18n:o.value,expression:t.config.tiering_conditions.expression},null,8,["i18n","expression"])):e.createCommentVNode("",!0),y.$slots.included||(p=(h=t.config.details)==null?void 0:h.billing_period)!=null&&p.type?(e.openBlock(),e.createElementBlock("div",Qo,[y.$slots.included?(e.openBlock(),e.createElementBlock("div",el,[e.renderSlot(y.$slots,"included",{},void 0,!0)])):e.createCommentVNode("",!0),(N=(V=t.config.details)==null?void 0:V.billing_period)!=null&&N.type?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,tag:"div",variant:"body-sm",color:"secondary",class:"ml-auto"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.billedEvery)+" ",1),e.createElementVNode("span",tl,e.toDisplayString(i.value.formatBillingPeriod(t.config.details.billing_period,{prefix:!1})),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]}),_:3},8,["is-collapsible","is-expanded"]))}}),il=G._export_sfc(nl,[["__scopeId","data-v-04f973b1"]]),ol={key:0,class:"conditions-root"},ll=["innerHTML"],al=["innerHTML"],rl=["innerHTML"],cl=["innerHTML"],sl=["innerHTML"],dl=["innerHTML"],ul={key:3,class:"mt-3"},ml={key:0,class:"context-menu-wrapper absolute -top-2 right-2"},pl=e.defineComponent({__name:"PricingItemConfig",props:{areNonBillableItemsVisible:{type:Boolean},rootConfig:{},config:{},configIndex:{},item:{},itemIndex:{},pricing:{},i18n:{},rootClass:{},showConfigHeader:{type:Boolean,default:!0},showDefaultValues:{type:Boolean,default:!0},schedule:{},creditTypesById:{},canCollapseNestedConditions:{type:Boolean,default:!1},mountInViewOnly:{type:Boolean}},setup(t){const n=t,i=Wt(),o=e.computed(()=>n.mountInViewOnly??i),u=e.ref(null),{shouldRender:r,placeholderStyle:g}=Ht(u,{estimatedHeight:T.estimatePricingItemConfigBodyHeight(n.config),disabled:e.computed(()=>!o.value)}),l=jt({defaultCollapsed:n.canCollapseNestedConditions}),v=e.computed(()=>l.isExpanded(n.config.id)),c=e.computed(()=>{var _;return(_=n.config.conditions)==null?void 0:_.configs}),s=e.computed(()=>!!n.canCollapseNestedConditions&&!F.isEmpty(c.value)),b=()=>{v.value?l.collapse(n.config.id):l.expand(T.getConfigIds(n.config))},m=()=>{if(!s.value){l.expand(n.config.id);return}b()},d=e.computed(()=>n.i18n??$t),f=e.useSlots(),B=_=>{var S,w,P;return T.isFlatPricing(_)||((S=_.details)==null?void 0:S.pricing_type)==="FIXED"||((w=_.details)==null?void 0:w.pricing_type)==="PASS_THROUGH"||((P=_.details)==null?void 0:P.pricing_type)==="NONE"&&n.areNonBillableItemsVisible},k=_=>T.hasOneOfPricingTypes(_,["TIERED","TIERED_TOP_UP","TOP_TIERED"])||T.isStairStepPricing(_),C=_=>T.isFlexiblePricing(_),y=_=>{var S,w,P,D,$;return(($=(D=(P=(w=(S=_.product_items)==null?void 0:S[0])==null?void 0:w.usage_based)==null?void 0:P.meter_value_calculation)==null?void 0:D.meter_value)==null?void 0:$.type)==="AMOUNT"},a=_=>{var S,w,P,D,$;return(($=(D=(P=(w=(S=_.product_items)==null?void 0:S[0])==null?void 0:w.usage_based)==null?void 0:P.meter_value_calculation)==null?void 0:D.meter_value)==null?void 0:$.type)==="NUMBER"},h=(_,S)=>{var w,P,D;return((P=(w=_.product_items)==null?void 0:w[0])==null?void 0:P.model_type)==="PER_SEAT"&&((D=S.details)==null?void 0:D.pricing_type)!=="NONE"},p=e.computed(()=>n.rootConfig??n.config),V=e.computed(()=>({pricing:n.pricing,item:n.item,config:n.config})),N=e.computed(()=>!!f["pricing-item-config-settings"]&&!pe.isVnodeEmpty(f["pricing-item-config-settings"](V.value))),x=e.computed(()=>{var _,S,w;const P=n.config.original_pricing_item_config_id;return n.schedule?((_=kt({schedule:n.schedule,pricingItemConfigIds:[n.config.id,...P?[P]:[]]}))==null?void 0:_.number)??((S=n.config.default_seats_value)==null?void 0:S.number):(w=n.config.default_seats_value)==null?void 0:w.number});return(_,S)=>{var w,P,D,$,O;const U=e.resolveComponent("PricingItemConfig",!0);return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative",{[`${t.rootClass}`]:t.rootClass,"mb-4 last:mb-0":B(t.config)&&(((w=t.config.conditions)==null?void 0:w.meter_properties)||t.configIndex===0&&t.item.configs&&t.item.configs.length>0),"mb-6 last:mb-0":k(t.config)}])},[e.createElementVNode("div",{ref_key:"bodyEl",ref:u,style:e.normalizeStyle(e.unref(g))},[e.unref(r)?(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("div",{class:e.normalizeClass({"conditions-with-context-menu":N.value})},[(P=t.config.details)!=null&&P.bands||(D=t.config.details)!=null&&D.pricing_type?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B(t.config)?(e.openBlock(),e.createBlock(e.unref(Co),{key:0,"is-combined-pricing":t.pricing.products&&t.pricing.products.length>1,"are-non-billable-items-visible":t.areNonBillableItemsVisible,config:t.config,item:t.item,class:e.normalizeClass({"mt-3":!t.rootClass}),i18n:d.value,"show-config-header":t.showConfigHeader,"show-default-values":t.showDefaultValues,"credit-types-by-id":t.creditTypesById,"is-collapsible":s.value,"is-expanded":v.value,onExpandToggled:b},{"override-tooltip":e.withCtx(()=>[e.renderSlot(_.$slots,"override-tooltip",e.normalizeProps(e.guardReactiveProps(n)),void 0,!0)]),included:e.withCtx(()=>{var R,A,M,j;return[y(t.item)&&((R=t.config.default_included_volume)!=null&&R.amount)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mt-1 text-right text-subtle",innerHTML:t.config.default_included_volume.reset_type==="BILLING_PERIOD"?d.value.includedVolumeAmountPerBillingPeriod(t.config.default_included_volume.amount):d.value.includedVolumeAmountPerSchedule(t.config.default_included_volume.amount)},null,8,ll)):e.createCommentVNode("",!0),a(t.item)&&((A=t.config.default_included_volume)!=null&&A.number)?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mt-1 text-right text-subtle",innerHTML:t.config.default_included_volume.reset_type==="BILLING_PERIOD"?d.value.includedVolumeUnitsPerBillingPeriod(t.config.default_included_volume.number,(M=t.item.product_items)==null?void 0:M[0].unit_name):d.value.includedVolumeUnitsPerSchedule(t.config.default_included_volume.number,(j=t.item.product_items)==null?void 0:j[0].unit_name)},null,8,al)):e.createCommentVNode("",!0),t.showDefaultValues&&h(t.item,t.config)&&x.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:"mt-1 text-right text-subtle",innerHTML:d.value.includedSeats(x.value)},null,8,rl)):e.createCommentVNode("",!0)]}),_:3},8,["is-combined-pricing","are-non-billable-items-visible","config","item","class","i18n","show-config-header","show-default-values","credit-types-by-id","is-collapsible","is-expanded"])):k(t.config)?(e.openBlock(),e.createBlock(e.unref(il),{key:1,"is-combined-pricing":t.pricing.products&&t.pricing.products.length>1,config:t.config,"item-index":t.itemIndex,"config-index":t.configIndex,item:t.item,"credit-types-by-id":t.creditTypesById,class:"mt-3",i18n:d.value,"show-config-header":t.showConfigHeader,"is-collapsible":s.value,"is-expanded":v.value,onExpandToggled:b},{"override-tooltip":e.withCtx(()=>[e.renderSlot(_.$slots,"override-tooltip",e.normalizeProps(e.guardReactiveProps(n)),void 0,!0)]),included:e.withCtx(()=>{var R,A,M,j;return[y(t.item)&&((R=t.config.default_included_volume)!=null&&R.amount)?(e.openBlock(),e.createElementBlock("span",{key:0,class:"mt-1 text-right text-subtle",innerHTML:t.config.default_included_volume.reset_type==="BILLING_PERIOD"?d.value.includedVolumeAmountPerBillingPeriod(t.config.default_included_volume.amount):d.value.includedVolumeAmountPerSchedule(t.config.default_included_volume.amount)},null,8,cl)):e.createCommentVNode("",!0),a(t.item)&&((A=t.config.default_included_volume)!=null&&A.number)?(e.openBlock(),e.createElementBlock("span",{key:1,class:"mt-1 text-right text-subtle",innerHTML:t.config.default_included_volume.reset_type==="BILLING_PERIOD"?d.value.includedVolumeUnitsPerBillingPeriod(t.config.default_included_volume.number,(M=t.item.product_items)==null?void 0:M[0].unit_name):d.value.includedVolumeUnitsPerSchedule(t.config.default_included_volume.number,(j=t.item.product_items)==null?void 0:j[0].unit_name)},null,8,sl)):e.createCommentVNode("",!0),t.showDefaultValues&&h(t.item,t.config)&&x.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:"mt-1 text-right text-subtle",innerHTML:d.value.includedSeats(x.value)},null,8,dl)):e.createCommentVNode("",!0)]}),_:3},8,["is-combined-pricing","config","item-index","config-index","item","credit-types-by-id","i18n","show-config-header","is-collapsible","is-expanded"])):C(t.config)?(e.openBlock(),e.createBlock(e.unref(No),{key:2,config:t.config,class:"mt-3","show-config-header":t.showConfigHeader,"is-collapsible":s.value,"is-expanded":v.value,onExpandToggled:b},{"override-tooltip":e.withCtx(()=>[e.renderSlot(_.$slots,"override-tooltip",e.normalizeProps(e.guardReactiveProps(n)),void 0,!0)]),_:3},8,["config","show-config-header","is-collapsible","is-expanded"])):e.createCommentVNode("",!0),_.$slots["pricing-item-config-additions"]&&!e.unref(pe.isVnodeEmpty)((O=($=_.$slots)["pricing-item-config-additions"])==null?void 0:O.call($,V.value))?(e.openBlock(),e.createElementBlock("div",ul,[e.renderSlot(_.$slots,"pricing-item-config-additions",e.normalizeProps(e.guardReactiveProps(V.value)),void 0,!0)])):e.createCommentVNode("",!0)],64)):t.showConfigHeader?(e.openBlock(),e.createBlock(xt,{key:1,"is-collapsible":s.value,"is-expanded":v.value,class:"mb-1 mt-2 print:hidden",onClick:m},{default:e.withCtx(()=>[e.createVNode(_e,{"is-combined-pricing":t.pricing.products&&t.pricing.products.length>1,config:t.config,i18n:d.value},{"override-tooltip":e.withCtx(()=>[e.renderSlot(_.$slots,"override-tooltip",e.normalizeProps(e.guardReactiveProps(n)),void 0,!0)]),_:3},8,["is-combined-pricing","config","i18n"])]),_:3},8,["is-collapsible","is-expanded"])):e.createCommentVNode("",!0)],2),N.value?(e.openBlock(),e.createElementBlock("div",ml,[e.renderSlot(_.$slots,"pricing-item-config-settings",e.mergeProps(V.value,{rootConfig:p.value}),void 0,!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4),c.value&&!e.unref(F.isEmpty)(c.value)?(e.openBlock(),e.createBlock(ne._sfc_main,{key:0,"is-open":v.value,lazy:"","unmount-on-close":"",class:"nesting-line relative mb-4 w-full pl-4 before:bottom-3 before:left-1.5"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([...c.value].sort((R,A)=>A.order-R.order),(R,A)=>(e.openBlock(),e.createElementBlock("div",{key:R.id,class:"print:mb-4 print:last:mb-0"},[e.createVNode(U,{pricing:t.pricing,item:t.item,"item-index":t.itemIndex,config:R,"config-index":A,"are-non-billable-items-visible":t.areNonBillableItemsVisible,i18n:d.value,"root-class":t.rootClass,"root-config":p.value,"credit-types-by-id":t.creditTypesById,"can-collapse-nested-conditions":t.canCollapseNestedConditions,"mount-in-view-only":o.value},{"pricing-item-config-settings":e.withCtx(M=>[e.renderSlot(_.$slots,"pricing-item-config-settings",e.mergeProps({ref_for:!0},M),void 0,!0)]),"override-tooltip":e.withCtx(M=>[e.renderSlot(_.$slots,"pricing-item-config-override-tooltip",e.mergeProps({ref_for:!0},M),void 0,!0)]),"pricing-item-config-additions":e.withCtx(M=>[e.renderSlot(_.$slots,"pricing-item-config-additions",e.mergeProps({ref_for:!0},M),void 0,!0)]),_:3},8,["pricing","item","item-index","config","config-index","are-non-billable-items-visible","i18n","root-class","root-config","credit-types-by-id","can-collapse-nested-conditions","mount-in-view-only"])]))),128))]),_:3},8,["is-open"])):e.createCommentVNode("",!0)],2)}}}),gt=G._export_sfc(pl,[["__scopeId","data-v-eb141324"]]),gl=["onClick"],fl={class:"text-subtle"},vl={class:"px-4 pb-3"},hl=e.defineComponent({__name:"PricingDetail",props:{itemClass:{},rootClass:{},titleWithIcon:{type:Boolean},pricing:{},groupedPricingItemIds:{},areNonBillableItemsVisible:{type:Boolean},i18n:{},schedule:{},creditTypesById:{},canCollapseNestedConditions:{type:Boolean}},setup(t){const n=E.useIntl(),i=t,o=e.ref({}),u=f=>f?`${f.type}:${f.value}`:"none",r=f=>{o.value={...o.value,[f]:!o.value[f]}},g=f=>!o.value[f],l=(f,B)=>{if(!B)return null;const k=new Map;return f.forEach(C=>{var y,a,h;const p=((y=C.details)==null?void 0:y.billing_period)??((a=C.details)==null?void 0:a.pricing_period);if(!p)return;const V=u(p);k.has(V)||k.set(V,{billingPeriod:p,configs:[]}),(h=k.get(V))==null||h.configs.push(C)}),Array.from(k.entries()).map(([C,y])=>({key:C,...y}))},v=f=>[...f].sort((B,k)=>k.order-B.order),c=f=>{var B,k;return(B=f.configs)!=null&&B.length?f.configs:((k=f.billing_period_configs)==null?void 0:k.flatMap(C=>(C.configs??[]).map(y=>({...y}))))??[]},s=f=>{var B;return b(f)?(B=f.billing_period_configs)!=null&&B.length?f.billing_period_configs.map(k=>({key:u(k.billing_period),billingPeriod:k.billing_period,configs:k.configs??[]})):l(c(f),!0):l(c(f),!1)},b=f=>{var B,k;return(((B=f.billing_period_configs)==null?void 0:B.length)??0)>0||(((k=i.groupedPricingItemIds)==null?void 0:k.includes(f.id))??!1)},m=e.computed(()=>{var f;return((f=i.pricing.items)==null?void 0:f.map(B=>({id:B.id,groups:s(B)})))??[]}),d=f=>{const B=c(f),k=B.some(y=>{var a;return((a=y.details)==null?void 0:a.pricing_type)!=="NONE"}),C=B.some(y=>{var a;return((a=y.details)==null?void 0:a.pricing_type)==="NONE"});return k||C&&!!i.areNonBillableItemsVisible};return(f,B)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricing.items,(k,C)=>{var y;return e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[d(k)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["pricing-item-block pb-5 last:pb-3",{[`${t.itemClass}`]:t.itemClass}])},[e.createVNode(bt._sfc_main,{icon:t.titleWithIcon?"inventory_2":void 0,variant:"neutral",size:"sm",class:"pricing-item-heading"},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"pricing-item-header",{item:k},()=>[e.createVNode(Fi,{item:k,"credit-types-by-id":t.creditTypesById},null,8,["item","credit-types-by-id"])],!0)]),_:2},1032,["icon"]),(y=m.value[C])!=null&&y.groups?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value[C].groups,a=>{var h,p,V;return e.openBlock(),e.createElementBlock("div",{key:a.key,class:"mt-3 rounded border border-gray-100"},[e.createElementVNode("button",{type:"button",class:"flex w-full items-center justify-between px-4 py-2 text-left text-sm font-semibold text-secondary",onClick:N=>r(a.key)},[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString((h=t.i18n)!=null&&h.formatBillingPeriod?e.unref(n).$t({defaultMessage:"Billing period",id:"pricing_detail.billing_period",description:"The billing period in the pricing detail card"}):"Billing period")+" ",1),e.createElementVNode("span",fl,e.toDisplayString((V=(p=t.i18n)==null?void 0:p.formatBillingPeriod)==null?void 0:V.call(p,a.billingPeriod)),1)]),e.createVNode(L._sfc_main$1,{icon:g(a.key)?"unfold_less":"unfold_more",size:"sm",class:"print:hidden"},null,8,["icon"])],8,gl),e.createVNode(ne._sfc_main,{"is-open":g(a.key),lazy:""},{default:e.withCtx(()=>[e.createElementVNode("div",vl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v(a.configs),(N,x)=>(e.openBlock(),e.createBlock(gt,{key:N.id,pricing:t.pricing,item:k,"item-index":C,config:N,"config-index":x,"are-non-billable-items-visible":t.areNonBillableItemsVisible,i18n:t.i18n,"root-class":t.rootClass,schedule:t.schedule,"credit-types-by-id":t.creditTypesById,"can-collapse-nested-conditions":t.canCollapseNestedConditions},{"pricing-item-config-settings":e.withCtx(_=>[e.renderSlot(f.$slots,"pricing-item-config-settings",e.mergeProps({ref_for:!0},_),void 0,!0)]),"override-tooltip":e.withCtx(_=>[e.renderSlot(f.$slots,"pricing-item-config-override-tooltip",e.mergeProps({ref_for:!0},_),void 0,!0)]),"pricing-item-config-additions":e.withCtx(_=>[e.renderSlot(f.$slots,"pricing-item-config-additions",e.mergeProps({ref_for:!0},_),void 0,!0)]),_:3},8,["pricing","item","item-index","config","config-index","are-non-billable-items-visible","i18n","root-class","schedule","credit-types-by-id","can-collapse-nested-conditions"]))),128))])]),_:2},1032,["is-open"])])}),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(v(c(k)??[]),(a,h)=>(e.openBlock(),e.createBlock(gt,{key:a.id,pricing:t.pricing,item:k,"item-index":C,config:a,"config-index":h,"are-non-billable-items-visible":t.areNonBillableItemsVisible,i18n:t.i18n,"root-class":t.rootClass,schedule:t.schedule,"credit-types-by-id":t.creditTypesById,"can-collapse-nested-conditions":t.canCollapseNestedConditions},{"pricing-item-config-settings":e.withCtx(p=>[e.renderSlot(f.$slots,"pricing-item-config-settings",e.mergeProps({ref_for:!0},p),void 0,!0)]),"override-tooltip":e.withCtx(p=>[e.renderSlot(f.$slots,"pricing-item-config-override-tooltip",e.mergeProps({ref_for:!0},p),void 0,!0)]),"pricing-item-config-additions":e.withCtx(p=>[e.renderSlot(f.$slots,"pricing-item-config-additions",e.mergeProps({ref_for:!0},p),void 0,!0)]),_:3},8,["pricing","item","item-index","config","config-index","are-non-billable-items-visible","i18n","root-class","schedule","credit-types-by-id","can-collapse-nested-conditions"]))),128))],2)):e.createCommentVNode("",!0)],64)}),128))]))}}),ft=G._export_sfc(hl,[["__scopeId","data-v-f8f96c95"]]);var ee=(t=>(t.ENUM="ENUM",t.SWITCH="SWITCH",t.NUMBER="NUMBER",t.AMOUNT="AMOUNT",t.STRING="STRING",t))(ee||{});const bl={...$t},It={...bl,revenueItems:"Revenue items",billedItems:"Billed Items",deductionItems:"Deduction items",features:"Features"},yl={class:"text-xs font-semibold uppercase text-subtle"},_l={class:"print:hidden"},kl={class:"hidden print:inline"},Cl={class:"text-xs font-semibold uppercase text-subtle"},xl={key:2,class:"mt-2"},Bl={class:"text-xs font-semibold uppercase text-subtle"},Nl={key:0,class:"absolute right-0 top-1/2 z-10 -translate-y-1/2 bg-white"},Vl={class:"pl-4"},El={class:"mt-2"},Sl={class:"font-bold print:font-normal"},wl={key:1,class:"font-bold text-primary-600"},Pl={key:2,class:"font-bold text-primary-600"},$l={key:4,class:"font-bold text-primary-600"},Il=e.defineComponent({__name:"PricingInfo",props:{pricing:{},groupedPricingItemIds:{},areNonBillableItemsVisible:{type:Boolean},i18n:{},schedule:{},creditTypesById:{},canCollapseNestedConditions:{type:Boolean}},setup(t){const n=t;e.provide("pricingId",n.pricing.id);const i=e.computed(()=>n.i18n??It),o=e.computed(()=>{var r;return(r=n.pricing.items)==null?void 0:r.filter(g=>Qt(g.product_items))}),u=e.computed(()=>{var r;return(r=n.pricing.items)==null?void 0:r.filter(g=>en(g.product_items))});return(r,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"pricing-item-warning",{},void 0,!0),e.unref(F.isEmpty)(o.value)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(F.isEmpty)(t.pricing.items)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de._sfc_main,{key:0,class:"section-label my-3"},{default:e.withCtx(()=>[e.createElementVNode("h3",yl,[e.createElementVNode("span",_l,e.toDisplayString(i.value.revenueItems),1),e.createElementVNode("span",kl,e.toDisplayString(i.value.billedItems),1)])]),_:1})),e.createVNode(ft,{pricing:{...t.pricing,items:o.value},"grouped-pricing-item-ids":t.groupedPricingItemIds,i18n:i.value,"are-non-billable-items-visible":t.areNonBillableItemsVisible,schedule:t.schedule,"credit-types-by-id":t.creditTypesById,"can-collapse-nested-conditions":t.canCollapseNestedConditions},{"pricing-item-header":e.withCtx(({item:l})=>[e.renderSlot(r.$slots,"pricing-item-header",{item:l},void 0,!0)]),"pricing-item-config-settings":e.withCtx(l=>[e.renderSlot(r.$slots,"pricing-item-config-settings",e.normalizeProps(e.guardReactiveProps(l)),void 0,!0)]),"pricing-item-config-override-tooltip":e.withCtx(l=>[e.renderSlot(r.$slots,"pricing-item-config-override-tooltip",e.normalizeProps(e.guardReactiveProps(l)),void 0,!0)]),"pricing-item-config-additions":e.withCtx(l=>[e.renderSlot(r.$slots,"pricing-item-config-additions",e.normalizeProps(e.guardReactiveProps(l)),void 0,!0)]),_:3},8,["pricing","grouped-pricing-item-ids","i18n","are-non-billable-items-visible","schedule","credit-types-by-id","can-collapse-nested-conditions"])],64)),e.unref(F.isEmpty)(u.value)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.pricing.items&&t.pricing.items.length>0?(e.openBlock(),e.createBlock(de._sfc_main,{key:0,class:"section-label mb-3 mt-6"},{default:e.withCtx(()=>[e.createElementVNode("h3",Cl,e.toDisplayString(i.value.deductionItems),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(ft,{pricing:{...t.pricing,items:u.value},"grouped-pricing-item-ids":t.groupedPricingItemIds,i18n:i.value,"are-non-billable-items-visible":t.areNonBillableItemsVisible,"credit-types-by-id":t.creditTypesById,"can-collapse-nested-conditions":t.canCollapseNestedConditions},{"pricing-item-header":e.withCtx(({item:l})=>[e.renderSlot(r.$slots,"pricing-item-header",{item:l},void 0,!0)]),"pricing-item-config-settings":e.withCtx(l=>[e.renderSlot(r.$slots,"pricing-item-config-settings",e.normalizeProps(e.guardReactiveProps(l)),void 0,!0)]),"pricing-item-config-override-tooltip":e.withCtx(l=>[e.renderSlot(r.$slots,"pricing-item-config-override-tooltip",e.normalizeProps(e.guardReactiveProps(l)),void 0,!0)]),"pricing-item-config-additions":e.withCtx(l=>[e.renderSlot(r.$slots,"pricing-item-config-additions",e.normalizeProps(e.guardReactiveProps(l)),void 0,!0)]),_:3},8,["pricing","grouped-pricing-item-ids","i18n","are-non-billable-items-visible","credit-types-by-id","can-collapse-nested-conditions"])],64)),e.unref(F.isEmpty)(t.pricing.entitlements)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xl,[e.createVNode(de._sfc_main,{class:"section-label relative"},{default:e.withCtx(()=>[e.createElementVNode("h3",Bl,e.toDisplayString(i.value.features),1),r.$slots["pricing-entitlements-settings"]?(e.openBlock(),e.createElementBlock("div",Nl,[e.createElementVNode("div",Vl,[e.renderSlot(r.$slots,"pricing-entitlements-settings",{pricing:t.pricing},void 0,!0)])])):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("ul",El,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.pricing.entitlements,l=>(e.openBlock(),e.createElementBlock("li",{key:l.feature_id,class:"flex items-center justify-between py-2"},[e.createElementVNode("span",Sl,e.toDisplayString(l.feature.name),1),l.feature.type===e.unref(ee).AMOUNT&&l.amount?(e.openBlock(),e.createBlock(z._sfc_main,{key:0,value:l.amount,highlighted:""},null,8,["value"])):e.createCommentVNode("",!0),l.feature.type===e.unref(ee).NUMBER&&l.number?(e.openBlock(),e.createElementBlock("span",wl,e.toDisplayString(l.number),1)):e.createCommentVNode("",!0),l.feature.type===e.unref(ee).STRING&&l.string?(e.openBlock(),e.createElementBlock("span",Pl,e.toDisplayString(l.string),1)):e.createCommentVNode("",!0),l.feature.type===e.unref(ee).SWITCH&&"switch"in l?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["inline-block rounded-full leading-[0.5] text-white",l.switch?"bg-primary-600":"bg-red-500"])},[e.createVNode(L._sfc_main$1,{icon:l.switch?"check":"close",size:"xs"},null,8,["icon"])],2)):e.createCommentVNode("",!0),l.feature.type===e.unref(ee).ENUM&&l.enum?(e.openBlock(),e.createElementBlock("span",$l,e.toDisplayString(l.enum),1)):e.createCommentVNode("",!0)]))),128))])]))]))}}),Tl=G._export_sfc(Il,[["__scopeId","data-v-8ad8d93e"]]),Dl=t=>"cancellationDate"in t,oe=t=>"schedule"in t,Tt={...It,volumePooling:"Volume pooling",addon:"Addon",someItemsDeprecatedWarning:"Some of the product items are deprecated. They cannot be used for pricing and needs to be deleted",allItemsDeprecatedWarning:"All product items are deprecated, this pricing needs to be deleted",expandAllConditions:"Expand all",collapseAllConditions:"Collapse all"},Dt={addon:"Addon",singleSelect:"Single select",multiSelect:"Multi select"},Ot={...Dt,...Tt,productsCount:t=>t===0?"no products":t===1?"1 product":`${t} products`},Ol={...le,...te,...ae,...Ot,...Nt,commitmentsTitle:te.title,discountsTitle:le.title,markupsTitle:ae.title,commitmentsOrderOfApplicationExplanation:te.orderOfApplicationExplanation,discountsOrderOfApplicationExplanation:le.orderOfApplicationExplanation,markupsOrderOfApplicationExplanation:ae.orderOfApplicationExplanation,scheduleNumber:t=>`Schedule ${t}`,versionNumber:t=>`Version ${t}`,subscriptionCancelled:t=>`Subscription cancelled from ${t}`,directPricingTitle:"Pricing defined on this schedule"},zl={class:"ml-2 inline-block"},Ll={class:"flex items-center gap-2"},Ml={key:0,class:"mb-2"},fe=e.defineComponent({__name:"PricingCard",props:{pricing:{},groupedPricingItemIds:{},pricingPlanId:{},pricingPlanVersionId:{},isCustomizedPlan:{type:Boolean},subscriptionId:{},showNonBillable:{type:Boolean},defaultExpanded:{type:Boolean},i18n:{},showAddonChip:{type:Boolean,default:!0},isEnabled:{type:Boolean,default:!0},schedule:{},creditTypesById:{},canCollapseNestedConditions:{type:Boolean}},emits:["pricing-toggled","pricing-toggle"],setup(t,{emit:n}){const i=t,o=n,u=e.computed(()=>i.i18n??Tt);e.provide("pricingId",i.pricing.id);const r=_t({defaultCollapsed:i.canCollapseNestedConditions}),g=a=>[...a.configs??[],...(a.billing_period_configs??[]).flatMap(h=>h.configs??[]),...(a.pricing_currency_configs??[]).flatMap(h=>[...h.configs??[],...(h.billing_period_configs??[]).flatMap(p=>p.configs??[])])],l=e.computed(()=>(i.pricing.items??[]).flatMap(g).flatMap(a=>T.getFlatConfigs(a)).filter(a=>{var h;return!F.isEmpty((h=a.conditions)==null?void 0:h.configs)}).map(a=>a.id)),v=e.computed(()=>l.value.length>0),c=e.computed(()=>l.value.every(a=>r.isExpanded(a))),s=e.ref(!!i.defaultExpanded);e.watch(()=>i.defaultExpanded,a=>{s.value=!!a});const b=a=>{s.value!==a&&(s.value=a,o("pricing-toggle",i.pricing.id))},m=e.computed(()=>!!i.canCollapseNestedConditions&&v.value),d=e.computed(()=>s.value&&c.value),f=e.computed(()=>d.value?u.value.collapseAllConditions??"Collapse all":u.value.expandAllConditions??"Expand all"),B=()=>{if(d.value){r.collapseAll(),b(!1);return}b(!0),r.expandAll()},k=a=>a.status==="DEPRECATED",C=e.computed(()=>(i.pricing.items||[]).flatMap(a=>a.product_items||[]).some(k)),y=e.computed(()=>(i.pricing.items||[]).flatMap(a=>a.product_items||[]).every(k));return(a,h)=>(e.openBlock(),e.createBlock(Ei,{class:"flex flex-col justify-between","capped-width":"","is-controlled":"","is-open":s.value,"data-testid":`pricing-${t.pricing.id}`,spacing:"sm",onToggle:h[0]||(h[0]=p=>b(!s.value)),onToggled:h[1]||(h[1]=p=>a.$emit("pricing-toggled",p))},{"pre-header":e.withCtx(()=>[e.renderSlot(a.$slots,"pre-header")]),"title-prefix":e.withCtx(()=>[e.renderSlot(a.$slots,"title-prefix")]),title:e.withCtx(()=>[e.createVNode(E._sfc_main,{weight:"semibold",tag:"span",variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Yt)(t.pricing,!(t.pricing.products&&t.pricing.products.length>1))),1)]),_:1})]),"title-suffix":e.withCtx(()=>[t.pricing.products&&t.pricing.products.length>1?(e.openBlock(),e.createBlock(Z._sfc_main,{key:0,intent:"info",class:"ml-2 align-middle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.volumePooling),1)]),_:1})):e.createCommentVNode("",!0),t.showAddonChip&&t.pricing.product_type&&t.pricing.product_type==="ADDON"?(e.openBlock(),e.createBlock(Z._sfc_main,{key:1,intent:"info",class:"ml-2 align-middle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.addon),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("span",zl,[e.renderSlot(a.$slots,"id")])]),right:e.withCtx(()=>[e.createElementVNode("div",Ll,[e.renderSlot(a.$slots,"right"),m.value?(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{key:0,intent:"secondary",size:"xs","aria-expanded":d.value,onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1},8,["aria-expanded"])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(he,{spacing:"none"},{default:e.withCtx(()=>[a.$slots["pricing-note"]?(e.openBlock(),e.createElementBlock("div",Ml,[e.renderSlot(a.$slots,"pricing-note")])):e.createCommentVNode("",!0),e.createVNode(Tl,{pricing:t.pricing,"grouped-pricing-item-ids":t.groupedPricingItemIds,i18n:u.value,"are-non-billable-items-visible":t.showNonBillable,schedule:t.schedule,"credit-types-by-id":t.creditTypesById,"can-collapse-nested-conditions":t.canCollapseNestedConditions},{"pricing-item-header":e.withCtx(({item:p})=>[e.renderSlot(a.$slots,"pricing-item-header",{item:p})]),"pricing-item-warning":e.withCtx(()=>[y.value?(e.openBlock(),e.createBlock(me._sfc_main,{key:0,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.allItemsDeprecatedWarning),1)]),_:1})):C.value?(e.openBlock(),e.createBlock(me._sfc_main,{key:1,type:"warning"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.someItemsDeprecatedWarning),1)]),_:1})):e.createCommentVNode("",!0)]),"pricing-item-config-settings":e.withCtx(p=>[e.renderSlot(a.$slots,"pricing-item-config-settings",e.normalizeProps(e.guardReactiveProps(p)))]),"pricing-entitlements-settings":e.withCtx(p=>[e.renderSlot(a.$slots,"pricing-entitlements-settings",e.normalizeProps(e.guardReactiveProps(p)))]),"pricing-item-config-override-tooltip":e.withCtx(p=>[e.renderSlot(a.$slots,"pricing-item-config-override-tooltip",e.normalizeProps(e.guardReactiveProps(p)))]),"pricing-item-config-additions":e.withCtx(p=>[e.renderSlot(a.$slots,"pricing-item-config-additions",e.normalizeProps(e.guardReactiveProps(p)))]),_:3},8,["pricing","grouped-pricing-item-ids","i18n","are-non-billable-items-visible","schedule","credit-types-by-id","can-collapse-nested-conditions"])]),_:3})]),_:3},8,["is-open","data-testid"]))}}),Rl={class:"inline-block"},zt=e.defineComponent({__name:"PricingGroupCard",props:{pricingGroup:{},i18n:{default:()=>Dt},isEnabled:{type:Boolean}},setup(t){return(n,i)=>(e.openBlock(),e.createBlock(ce,{spacing:t.isEnabled?"sm":"none","border-style":t.isEnabled?"solid":"dashed"},{default:e.withCtx(()=>[e.createVNode(Et,{spacing:"none",title:t.pricingGroup.name},{"title-suffix":e.withCtx(()=>[t.pricingGroup.product_type&&t.pricingGroup.product_type==="ADDON"?(e.openBlock(),e.createBlock(Z._sfc_main,{key:0,intent:"info",class:"ml-2 align-middle print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.i18n.addon),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(Z._sfc_main,{intent:"neutral",class:"mx-2 align-middle print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(tn)(t.pricingGroup)?t.i18n.singleSelect:t.i18n.multiSelect),1)]),_:1}),e.createElementVNode("span",Rl,[e.renderSlot(n.$slots,"id")])]),right:e.withCtx(()=>[e.renderSlot(n.$slots,"settings")]),_:3},8,["title"]),e.createVNode(he,{spacing:"none",class:"mt-2"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"pricings")]),_:3})]),_:3},8,["spacing","border-style"]))}}),Al=e.defineComponent({__name:"PricingGroupSingleSelectCard",props:{pricingGroup:{},pricingPlanVersion:{},schedule:{},showNonBillable:{type:Boolean},isEnabled:{type:Boolean}},emits:["update-enabled-pricing"],setup(t,{emit:n}){const i=t,o=n,u=e.computed(()=>{var m,d,f;return(f=(d=(m=i.schedule)==null?void 0:m.enabled_pricings)==null?void 0:d.find(B=>i.pricingGroup.pricings.some(k=>k.id===B.pricing_id)))==null?void 0:f.pricing_id}),r=m=>{o("update-enabled-pricing",u.value,m??"")},g=e.computed(()=>i.pricingGroup.pricings.map(m=>({value:m.id}))),{renderPricingForPricingItem:l}=ot.usePricingItem(),v=e.computed(()=>i.pricingGroup.pricings.find(m=>m.id===u.value)),c=e.computed(()=>v.value??i.pricingGroup.pricings[0]),s=e.computed(()=>{var m,d,f,B;return(d=(m=v.value)==null?void 0:m.items)!=null&&d[0]?l({pricingItem:(B=(f=v.value)==null?void 0:f.items)==null?void 0:B[0]}):""}),b=e.computed(()=>Object.fromEntries((i.pricingPlanVersion.credit_types??[]).map(m=>[m.id,m])));return e.onMounted(()=>{u.value||r(c.value.id)}),(m,d)=>(e.openBlock(),e.createBlock(e.unref(zt),{"pricing-group":t.pricingGroup,"is-enabled":t.isEnabled},{id:e.withCtx(()=>[e.renderSlot(m.$slots,"id",{id:t.pricingGroup.id})]),settings:e.withCtx(()=>[e.renderSlot(m.$slots,"pricing-group-settings",{pricingGroup:t.pricingGroup})]),pricings:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(e.unref(fe),{key:0,"default-expanded":!0,pricing:c.value,"pricing-plan-version-id":t.pricingPlanVersion.id,"pricing-plan-id":t.pricingPlanVersion.pricing_plan_id,"show-non-billable":t.showNonBillable,"is-customized-plan":!!t.pricingPlanVersion.copied_from_pricing_plan_version_id,class:"flex flex-col","show-addon-chip":!1,"is-enabled":t.isEnabled,schedule:t.schedule,"credit-types-by-id":b.value},{"pre-header":e.withCtx(()=>[e.createVNode(ot._sfc_main,{"model-value":u.value,options:g.value,name:"pricing-group-single-select",variant:"stepped-ghost",size:"lg",class:"border-b","onUpdate:modelValue":r},null,8,["model-value","options"])]),"pricing-note":e.withCtx(()=>[e.renderSlot(m.$slots,"pricing-note",e.normalizeProps(e.guardReactiveProps({pricing:v.value})))]),"title-prefix":e.withCtx(()=>[e.renderSlot(m.$slots,"pricing-group-pricing-title-prefix",{pricingGroup:t.pricingGroup,pricing:v.value})]),id:e.withCtx(()=>[e.renderSlot(m.$slots,"pricing-title-suffix",{id:c.value.id})]),right:e.withCtx(()=>[s.value?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,variant:"body-xs",color:"secondary",class:"mr-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1})):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"pricing-group-pricing-settings",{pricing:v.value,pricingGroup:t.pricingGroup})]),"pricing-item-header":e.withCtx(({item:f})=>[e.renderSlot(m.$slots,"pricing-item-header",{item:f})]),"pricing-entitlements-settings":e.withCtx(f=>[e.renderSlot(m.$slots,"pricing-entitlements-settings",e.normalizeProps(e.guardReactiveProps(f)))]),"pricing-item-config-settings":e.withCtx(f=>[e.renderSlot(m.$slots,"pricing-item-config-settings",e.mergeProps(f,{pricingGroup:t.pricingGroup}))]),"pricing-item-config-override-tooltip":e.withCtx(f=>[e.renderSlot(m.$slots,"pricing-item-config-override-tooltip",e.normalizeProps(e.guardReactiveProps(f)))]),"pricing-item-config-additions":e.withCtx(f=>[e.renderSlot(m.$slots,"pricing-item-config-additions",e.normalizeProps(e.guardReactiveProps(f)))]),_:3},8,["pricing","pricing-plan-version-id","pricing-plan-id","show-non-billable","is-customized-plan","is-enabled","schedule","credit-types-by-id"])):e.createCommentVNode("",!0)]),_:3},8,["pricing-group","is-enabled"]))}}),Fl={key:0,class:"category-heading mb-2 flex items-center gap-2 text-sm print:hidden"},Zl={class:"font-bold"},Ul={class:"flex flex-col gap-2"},Hl={class:"flex flex-col gap-1"},Gl=7,jl=e.defineComponent({__name:"PricingPlanVersionContent",props:{pricingPlanVersion:{},groupedPricingItemIdsByPricing:{},defaultExpanded:{type:Boolean},showNonBillable:{type:Boolean},expandedPricings:{},enabledPricings:{},i18n:{},schedule:{},enablePricingGroupSelection:{type:Boolean,default:!1},canCollapseNestedConditions:{type:Boolean,default:!1}},emits:["pricing-toggle","pricing-toggled","delete-pricing","update-enabled-pricing"],setup(t){const n=t,i=e.computed(()=>n.i18n??Ot),o=e.computed(()=>n.enabledPricings??[]),u=e.computed(()=>{var l;return Object.fromEntries((((l=n.pricingPlanVersion)==null?void 0:l.credit_types)??[]).map(v=>[v.id,v]))}),r=l=>l.product_type==="DEFAULT"||l.pricings.some(v=>o.value.includes(v.id)),g=l=>l.product_type==="DEFAULT"||o.value.includes(l.id);return(l,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(l.$slots,"header",{},void 0,!0),t.pricingPlanVersion&&(!t.pricingPlanVersion.pricing_categories||t.pricingPlanVersion.pricing_categories.length===0)?e.renderSlot(l.$slots,"empty-state",{},void 0,!0,0):t.pricingPlanVersion?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.pricingPlanVersion.pricing_categories??[],(c,s)=>{var b,m;return e.openBlock(),e.createElementBlock("div",{key:c.product_category_id,class:e.normalizeClass({"mt-6":s>0})},[(b=c.product_category)!=null&&b.name?(e.openBlock(),e.createElementBlock("h2",Fl,[e.createElementVNode("span",Zl,e.toDisplayString((m=c.product_category)==null?void 0:m.name),1),e.createElementVNode("div",null,[e.createVNode(Z._sfc_main,{size:"sm",intent:"neutral",class:"rounded-2xl font-semibold uppercase"},{default:e.withCtx(()=>{var d,f;return[e.createTextVNode(e.toDisplayString(i.value.productsCount((((d=c.pricing_groups)==null?void 0:d.length)??0)+(((f=c.pricings)==null?void 0:f.length)??0))),1)]}),_:2},1024)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.pricing_groups,d=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d.id},[t.enablePricingGroupSelection&&d.selection_constraint==="EXACTLY_ONE"&&d.pricings.length>=Gl?(e.openBlock(),e.createBlock(Al,{key:0,"pricing-group":d,"pricing-plan-version":t.pricingPlanVersion,"is-enabled":r(d),i18n:i.value,schedule:t.schedule,"show-non-billable":t.showNonBillable,onUpdateEnabledPricing:v[0]||(v[0]=(f,B)=>l.$emit("update-enabled-pricing",f,B))},{id:e.withCtx(()=>[e.renderSlot(l.$slots,"id",{id:d.id},void 0,!0)]),"pricing-group-settings":e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-group-settings",{pricingGroup:d},void 0,!0)]),_:2},1032,["pricing-group","pricing-plan-version","is-enabled","i18n","schedule","show-non-billable"])):(e.openBlock(),e.createBlock(e.unref(zt),{key:1,"pricing-group":d,"is-enabled":r(d),i18n:i.value},{id:e.withCtx(()=>[e.renderSlot(l.$slots,"id",{id:d.id},void 0,!0)]),settings:e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-group-settings",{pricingGroup:d},void 0,!0)]),pricings:e.withCtx(()=>[e.createElementVNode("div",Hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.pricings,f=>{var B,k;return e.openBlock(),e.createBlock(e.unref(fe),{key:f.id,"default-expanded":t.defaultExpanded===!0||((B=t.expandedPricings)==null?void 0:B.includes(f.id)),pricing:f,"pricing-plan-version-id":t.pricingPlanVersion.id,"pricing-plan-id":t.pricingPlanVersion.pricing_plan_id,"show-non-billable":t.showNonBillable,"is-customized-plan":!!t.pricingPlanVersion.copied_from_pricing_plan_version_id,"grouped-pricing-item-ids":(k=t.groupedPricingItemIdsByPricing)==null?void 0:k[f.id],class:"flex flex-col",i18n:i.value,"show-addon-chip":!1,"is-enabled":g(f),"credit-types-by-id":u.value,"can-collapse-nested-conditions":t.canCollapseNestedConditions,onPricingToggled:C=>l.$emit("pricing-toggled",f.id,C),onPricingToggle:v[1]||(v[1]=C=>l.$emit("pricing-toggle",C))},{"pricing-note":e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-note",e.mergeProps({ref_for:!0},{pricing:f}),void 0,!0)]),"title-prefix":e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-group-pricing-title-prefix",{pricingGroup:d,pricing:f},void 0,!0)]),id:e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-title-suffix",{id:f.id},void 0,!0)]),right:e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-group-pricing-settings",{pricing:f,pricingGroup:d},void 0,!0)]),"pricing-item-header":e.withCtx(({item:C})=>[e.renderSlot(l.$slots,"pricing-item-header",{item:C},void 0,!0)]),"pricing-entitlements-settings":e.withCtx(C=>[e.renderSlot(l.$slots,"pricing-entitlements-settings",e.mergeProps({ref_for:!0},C),void 0,!0)]),"pricing-item-config-settings":e.withCtx(C=>[e.renderSlot(l.$slots,"pricing-item-config-settings",e.mergeProps({ref_for:!0},C,{pricingGroup:d}),void 0,!0)]),"pricing-item-config-override-tooltip":e.withCtx(C=>[e.renderSlot(l.$slots,"pricing-item-config-override-tooltip",e.mergeProps({ref_for:!0},C),void 0,!0)]),"pricing-item-config-additions":e.withCtx(C=>[e.renderSlot(l.$slots,"pricing-item-config-additions",e.mergeProps({ref_for:!0},C),void 0,!0)]),_:2},1032,["default-expanded","pricing","pricing-plan-version-id","pricing-plan-id","show-non-billable","is-customized-plan","grouped-pricing-item-ids","i18n","is-enabled","credit-types-by-id","can-collapse-nested-conditions","onPricingToggled"])}),128))])]),_:2},1032,["pricing-group","is-enabled","i18n"]))],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.pricings,d=>{var f,B;return e.openBlock(),e.createBlock(e.unref(fe),{key:d.id,"default-expanded":t.defaultExpanded===!0||((f=t.expandedPricings)==null?void 0:f.includes(d.id)),pricing:d,"pricing-plan-version-id":t.pricingPlanVersion.id,"pricing-plan-id":t.pricingPlanVersion.pricing_plan_id,"grouped-pricing-item-ids":(B=t.groupedPricingItemIdsByPricing)==null?void 0:B[d.id],"show-non-billable":t.showNonBillable,"is-customized-plan":!!t.pricingPlanVersion.copied_from_pricing_plan_version_id,class:"flex flex-col",i18n:i.value,"is-enabled":g(d),"credit-types-by-id":u.value,schedule:t.schedule,"can-collapse-nested-conditions":t.canCollapseNestedConditions,onPricingToggled:k=>l.$emit("pricing-toggled",d.id,k),onPricingToggle:v[2]||(v[2]=k=>l.$emit("pricing-toggle",k))},{id:e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-title-suffix",{id:d.id},void 0,!0)]),right:e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-settings",{pricing:d},void 0,!0)]),"pricing-note":e.withCtx(()=>[e.renderSlot(l.$slots,"pricing-note",e.mergeProps({ref_for:!0},{pricing:d}),void 0,!0)]),"pricing-item-header":e.withCtx(({item:k})=>[e.renderSlot(l.$slots,"pricing-item-header",{item:k},void 0,!0)]),"pricing-entitlements-settings":e.withCtx(k=>[e.renderSlot(l.$slots,"pricing-entitlements-settings",e.mergeProps({ref_for:!0},k),void 0,!0)]),"pricing-item-config-settings":e.withCtx(k=>[e.renderSlot(l.$slots,"pricing-item-config-settings",e.mergeProps({ref_for:!0},k,{pricingGroup:void 0}),void 0,!0)]),"pricing-item-config-override-tooltip":e.withCtx(k=>[e.renderSlot(l.$slots,"pricing-item-config-override-tooltip",e.mergeProps({ref_for:!0},k),void 0,!0)]),"pricing-item-config-additions":e.withCtx(k=>[e.renderSlot(l.$slots,"pricing-item-config-additions",e.mergeProps({ref_for:!0},k),void 0,!0)]),_:2},1032,["default-expanded","pricing","pricing-plan-version-id","pricing-plan-id","grouped-pricing-item-ids","show-non-billable","is-customized-plan","i18n","is-enabled","credit-types-by-id","schedule","can-collapse-nested-conditions","onPricingToggled"])}),128))])],2)}),128)):e.createCommentVNode("",!0)],64))}}),vt=G._export_sfc(jl,[["__scopeId","data-v-a9312230"]]),ql={class:"flex items-center gap-2"},Wl={key:0,class:"mb-8 flex items-center gap-2 print:hidden"},Yl={class:"text-base font-semibold"},Kl={key:1,class:"transition-opacity-300"},Jl={key:2,class:"transition-opacity-300"},Xl=e.defineComponent({__name:"PricingPlanSchedules",props:{schedules:{},isEditable:{type:Boolean},openScheduleId:{},i18n:{},displayDisabledAddonPricings:{type:Boolean,default:!1},isExpandedByDefault:{type:Boolean},timezone:{},cancellationDate:{},cancellationReason:{},enablePricingGroupSelection:{type:Boolean,default:!1},forPrint:{type:Boolean,default:!1}},emits:["add-schedule","toggle-schedule"],setup(t,{emit:n}){var i;const o=t,u=n,r=e.computed(()=>o.i18n??Ol),{formatDate:g}=E.useIntl(),{getIsOpen:l,toggle:v}=re.useToggleList({closeOthers:!0,initialToggledItems:[(i=o.schedules[0])==null?void 0:i.schedule.id]}),c=e.ref(null);Ut(c,".collapsible-card-print-wrapper",{companionSelector:".category-heading",expandSelectors:[".collapsible-list-item-content",".collapsible-card-print-content"],protectedTopSelectors:[".card-header-print-root",".section-label",".pricing-item-block"],enabled:o.forPrint});const s=e.computed(()=>o.schedules.map((a,h)=>({...a,inferredPricingPlanVersion:a.selectedPricingPlanVersion&&st(a.selectedPricingPlanVersion,a.schedule,{displayDisabledAddonPricings:o.displayDisabledAddonPricings}),scheduleNumber:h+1,cancelled:!1}))),b=e.computed(()=>{let a=[...s.value.map((h,p)=>({...h,inferredPricingPlanVersion:h.selectedPricingPlanVersion&&st(h.selectedPricingPlanVersion,h.schedule,{displayDisabledAddonPricings:o.displayDisabledAddonPricings}),scheduleNumber:p+1}))];if(o.cancellationDate){let h=0;const p={cancellationDate:o.cancellationDate,cancellationReason:o.cancellationReason},V=a.findLastIndex(N=>oe(N)&&(N.schedule.start_at??"")<(o.cancellationDate??""));if(V===-1)a=[p,...a];else{const N=a[V];h=oe(N)&&(N.schedule.end_at??"")>=(o.cancellationDate??"")?V:V+1,h===o.schedules.length+1?a=[...a,p]:a.splice(h,0,p)}return a.map((N,x)=>oe(N)?{...N,cancelled:x>h}:N)}return a}),m=a=>{if(a.inferredPricingPlanVersion)return sn(a.inferredPricingPlanVersion,a.schedule.pricing_currency,a.schedule.billing_period)},d=a=>a.inferredPricingPlanVersion?dn(a.inferredPricingPlanVersion,a.schedule.pricing_currency):{},f=a=>yn(a.schedule),B=a=>{if(o.isExpandedByDefault)return;const h=m(a)??a.inferredPricingPlanVersion;return mn([],h)},k=e.computed(()=>o.openScheduleId===void 0),C=a=>k.value?l(a.id):o.openScheduleId===a.id,y=a=>{k.value?v(a.id):u("toggle-schedule",a.id)};return(a,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:c},[e.createVNode(_n,e.mergeProps(a.$attrs,{"has-add-button":t.isEditable,onAdd:h[0]||(h[0]=p=>a.$emit("add-schedule"))}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(p,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:V},[e.unref(Dl)(p)?(e.openBlock(),e.createBlock(pt,{key:0,"hide-collapse-icon":""},{icon:e.withCtx(()=>[e.createVNode(L._sfc_main$1,{icon:"cancel",class:"text-red-600"})]),left:e.withCtx(()=>[e.createVNode(E._sfc_main,{variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.subscriptionCancelled(t.timezone?e.unref(g)({date:p.cancellationDate,format:"date",offsetType:"offsetted",timezone:t.timezone}):e.unref(g)({date:p.cancellationDate,format:"dateTime",offsetType:"local"}))),1)]),_:2},1024),p.cancellationReason?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.cancellationReason),1)]),_:2},1024)):e.createCommentVNode("",!0)]),_:2},1024)):e.createCommentVNode("",!0),e.unref(oe)(p)?(e.openBlock(),e.createBlock(pt,{key:1,"item-number":p.scheduleNumber,"is-open":C(p.schedule),"has-continued-preline":t.isEditable?!0:p.scheduleNumber-1!==s.value.length-1,class:e.normalizeClass({"opacity-60":p.cancelled}),lazy:!t.forPrint,onToggle:N=>y(p.schedule)},{left:e.withCtx(()=>[e.createElementVNode("div",ql,[e.createVNode(E._sfc_main,{tag:"h3",weight:"semibold",class:"print:text-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.scheduleNumber(p.scheduleNumber)),1)]),_:2},1024),p.schedule.type==="TRIAL"&&p.schedule.start_at&&p.schedule.end_at?(e.openBlock(),e.createBlock(lt._sfc_main,{key:0,"trial-period":e.unref(lt.convertDateRangeToTimePeriod)(new Date(p.schedule.start_at),new Date(p.schedule.end_at))},null,8,["trial-period"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"id",{id:p.schedule.id},void 0,!0)])]),right:e.withCtx(()=>[e.renderSlot(a.$slots,"schedule-right",{item:p,itemIndex:p.scheduleNumber-1},()=>[t.timezone?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(E._sfc_main,{variant:"body-xs",class:"print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.schedule.start_at?e.unref(g)({date:p.schedule.start_at,format:"dateTime",offsetType:"offsetted",timezone:t.timezone}):r.value.startOfSchedule)+" - "+e.toDisplayString(p.schedule.end_at?e.unref(g)({date:p.schedule.end_at,format:"dateTime",offsetType:"offsetted",timezone:t.timezone}):r.value.endOfSchedule),1)]),_:2},1024),e.createVNode(E._sfc_main,{variant:"body-xs",class:"hidden print:block"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.schedule.start_at?e.unref(g)({date:p.schedule.start_at,format:"date",offsetType:"offsetted",timezone:t.timezone}):r.value.startOfSchedule)+" - "+e.toDisplayString(p.schedule.end_at?e.unref(g)({date:p.schedule.end_at,format:"date",offsetType:"offsetted",timezone:t.timezone}):r.value.endOfSchedule),1)]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(E._sfc_main,{variant:"body-xs",class:"print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.schedule.start_at?e.unref(g)({date:p.schedule.start_at,format:"dateTime",offsetType:"local"}):r.value.startOfSchedule)+" - "+e.toDisplayString(p.schedule.end_at?e.unref(g)({date:p.schedule.end_at,format:"dateTime",offsetType:"local"}):r.value.endOfSchedule),1)]),_:2},1024),e.createVNode(E._sfc_main,{variant:"body-xs",class:"hidden print:block"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.schedule.start_at?e.unref(g)({date:p.schedule.start_at,format:"date",offsetType:"local"}):r.value.startOfSchedule)+" - "+e.toDisplayString(p.schedule.end_at?e.unref(g)({date:p.schedule.end_at,format:"date",offsetType:"local"}):r.value.endOfSchedule),1)]),_:2},1024)],64))],!0)]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"schedule",{item:p,previousItem:s.value.find(N=>N.scheduleNumber===p.scheduleNumber-1),nextItem:s.value.find(N=>N.scheduleNumber===p.scheduleNumber+1),timezone:t.timezone},()=>[p.selectedPricingPlan?(e.openBlock(),e.createElementBlock("div",Wl,[e.createVNode(Rt._sfc_main,{initials:p.selectedPricingPlan.name[0],"color-hash":p.selectedPricingPlan.id,size:"lg",class:"print:hidden"},null,8,["initials","color-hash"]),e.createElementVNode("h2",Yl,e.toDisplayString(p.selectedPricingPlan.name),1),e.createVNode(Z._sfc_main,{intent:"neutral"},{default:e.withCtx(()=>{var N;return[e.createTextVNode(e.toDisplayString(r.value.versionNumber(((N=p.inferredPricingPlanVersion)==null?void 0:N.version)??1)),1)]}),_:2},1024)])):e.createCommentVNode("",!0),p.inferredPricingPlanVersion?(e.openBlock(),e.createElementBlock("div",Kl,[e.createVNode(vt,{"pricing-plan-version":m(p)??p.inferredPricingPlanVersion,"grouped-pricing-item-ids-by-pricing":d(p),"enabled-pricings":e.unref(rt)(p.schedule),"default-expanded":t.isExpandedByDefault,"expanded-pricings":B(p),i18n:r.value,"enable-pricing-group-selection":t.enablePricingGroupSelection,"show-non-billable":""},{"pricing-item-config-additions":e.withCtx(({config:N})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([e.unref(ln)(p.schedule,N)],(x,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x?(e.openBlock(),e.createBlock(yi,{key:_,markup:x,i18n:r.value},null,8,["markup","i18n"])):e.createCommentVNode("",!0)],64))),256)),e.renderSlot(a.$slots,"pricing-item-config-additions",{config:N,item:p,pricingPlanVersion:p.inferredPricingPlanVersion},void 0,!0)]),_:2},1032,["pricing-plan-version","grouped-pricing-item-ids-by-pricing","enabled-pricings","default-expanded","expanded-pricings","i18n","enable-pricing-group-selection"])])):e.createCommentVNode("",!0),f(p)?(e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(E._sfc_main,{variant:"label",tag:"h3",class:"mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.directPricingTitle),1)]),_:1}),e.createVNode(vt,{"pricing-plan-version":f(p),"enabled-pricings":e.unref(rt)(p.schedule),"default-expanded":t.isExpandedByDefault,i18n:r.value,"show-non-billable":""},null,8,["pricing-plan-version","enabled-pricings","default-expanded","i18n"])])):e.createCommentVNode("",!0),p.schedule.discount?(e.openBlock(),e.createBlock(si,{key:3,discount:p.schedule.discount,"read-only":"","pricing-plan-version":p.inferredPricingPlanVersion,timezone:t.timezone,i18n:{...r.value,title:r.value.discountsTitle,orderOfApplicationExplanation:r.value.discountsOrderOfApplicationExplanation}},null,8,["discount","pricing-plan-version","timezone","i18n"])):e.createCommentVNode("",!0),p.schedule.markup?(e.openBlock(),e.createBlock(hi,{key:4,markup:p.schedule.markup,"pricing-plan-version":p.inferredPricingPlanVersion,timezone:t.timezone,i18n:{...r.value,title:r.value.markupsTitle,orderOfApplicationExplanation:r.value.markupsOrderOfApplicationExplanation}},null,8,["markup","pricing-plan-version","timezone","i18n"])):e.createCommentVNode("",!0),p.schedule&&p.schedule.commitment?(e.openBlock(),e.createBlock(Xn,{key:5,class:"mt-2",commitment:p.schedule.commitment,"read-only":"","pricing-plan-version":p.inferredPricingPlanVersion,timezone:t.timezone,i18n:{...r.value,title:r.value.commitmentsTitle,orderOfApplicationExplanation:r.value.commitmentsOrderOfApplicationExplanation}},null,8,["commitment","pricing-plan-version","timezone","i18n"])):e.createCommentVNode("",!0)],!0)]),_:2},1032,["item-number","is-open","has-continued-preline","class","lazy","onToggle"])):e.createCommentVNode("",!0)],64))),128))]),_:3},16,["has-add-button"])],512))}}),Ql=G._export_sfc(Xl,[["__scopeId","data-v-2c847a86"]]),ea=e.defineComponent({__name:"SubscriptionSchedules",props:{schedulesData:{type:Array},configuration:{type:Object},isLoading:{type:Boolean}},setup(t){const{$t:n}=E.useIntl();return(i,o)=>(e.openBlock(),e.createBlock(e.unref(Lt._sfc_main),{class:"sv-subscription-schedules sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(n)({defaultMessage:"Schedules",description:"Subscription schedules list title",id:"subscription_schedules.title"})},{default:e.withCtx(()=>[e.createVNode(e.unref(Ql),{class:"sv-subscription-schedules__list",schedules:t.schedulesData},null,8,["schedules"])]),_:1},8,["title"]))}});exports._sfc_main=ea;
|