[web] rm annual-prices-monthly-rates split test (#26727)

* [web] rm annual-prices-monthly-rates split test

- rm monthly rates treatment
- rm unused translations
- rm unused supporting functions
- rm unused styles

GitOrigin-RevId: 5901853245cd9b01ee9e4774154d29ae8f5fcae5
This commit is contained in:
Kristina
2025-07-02 14:42:42 +02:00
committed by Copybot
parent 3f1a930046
commit 4eee7cd6ef
6 changed files with 0 additions and 57 deletions
@@ -23,17 +23,6 @@ function shouldPlanChangeAtTermEnd(oldPlan, newPlan, isInTrial) {
return oldPlan.price_in_cents > newPlan.price_in_cents
}
/**
* This is duplicated in:
* - services/web/scripts/plan-prices/plans.mjs
* - services/web/modules/subscriptions/frontend/js/pages/plans/group-member-picker/group-plan-pricing.js
* @param {number} number
* @returns {number}
*/
function roundUpToNearest5Cents(number) {
return Math.ceil(number * 20) / 20
}
/**
* @import { CurrencyCode } from '../../../../types/subscription/currency'
*/
@@ -48,7 +37,6 @@ function roundUpToNearest5Cents(number) {
* @typedef {Object} LocalizedGroupPrice
* @property {PlanToPrice} price
* @property {PlanToPrice} pricePerUser
* @property {PlanToPrice} pricePerUserPerMonth
*/
/**
@@ -65,17 +53,11 @@ function generateInitialLocalizedGroupPrice(recommendedCurrency, locale) {
INITIAL_LICENSE_SIZE
].price_in_cents / 100
const collaboratorPricePerUser = collaboratorPrice / INITIAL_LICENSE_SIZE
const collaboratorPricePerUserPerMonth = roundUpToNearest5Cents(
collaboratorPrice / INITIAL_LICENSE_SIZE / 12
)
const professionalPrice =
GroupPlansData.enterprise.professional[recommendedCurrency][
INITIAL_LICENSE_SIZE
].price_in_cents / 100
const professionalPricePerUser = professionalPrice / INITIAL_LICENSE_SIZE
const professionalPricePerUserPerMonth = roundUpToNearest5Cents(
professionalPrice / INITIAL_LICENSE_SIZE / 12
)
/**
* @param {number} price
@@ -93,10 +75,6 @@ function generateInitialLocalizedGroupPrice(recommendedCurrency, locale) {
collaborator: formatPrice(collaboratorPricePerUser),
professional: formatPrice(professionalPricePerUser),
},
pricePerUserPerMonth: {
collaborator: formatPrice(collaboratorPricePerUserPerMonth),
professional: formatPrice(professionalPricePerUserPerMonth),
},
}
}