{"version":3,"file":"cap-rating-section.BiR2WHpa.js","sources":["../../../src/components/rating-plan-card/piggy-bank-icon.tsx","../../../src/components/rating-plan-card/grad-cap-icon.tsx","../../../src/components/rating-plan-card/cap-rating-section.tsx"],"sourcesContent":["export default function PiggyBankIcon() {\n return (\n \n )\n}\n","export default function GradCapIcon() {\n return (\n \n )\n}\n","import { InfoBubble } from '@components/ui/info-bubble'\nimport { CapRating, getNumericRating } from '../cap-rating/cap-rating'\nimport { ResidentBenefits } from '../resident-benefits/resident-benefits'\nimport type { ResidentBenefitsLevel } from '@schema/plans-model'\nimport type { ProcessedImages } from '@lib/image'\n\nimport PiggyBankIcon from './piggy-bank-icon'\nimport GradCapIcon from './grad-cap-icon'\n\nexport interface CapRatingSectionPlan {\n is_prepaid: boolean\n is_fdic?: boolean\n overall_rating: string\n resident_benefits: ResidentBenefitsLevel\n state_object: {\n id?: string\n name: string\n slug?: string\n }\n}\n\nexport const CapRatingSection = ({\n plan,\n processedImages\n}: {\n plan: CapRatingSectionPlan\n processedImages: ProcessedImages\n}) => {\n const notRated = getNumericRating(plan.overall_rating) === 0\n if (plan.is_prepaid) {\n return (\n
\n Prepaid Plan{' '}\n
\n FDIC-Insured or Stable Value Plan{' '}\n
Not rated
\nOur rating
\n {notRated && (\n