{"version":3,"file":"plan-details-link.Bj3cb7CS.js","sources":["../../../src/components/plan-details-link.tsx"],"sourcesContent":["import { Link, type Variant } from '@components/ui/link'\nimport type { ContextPlacement, DesignVersion } from '@lib/analytics.d'\n\nexport interface PlanDetailsLinkPlan {\n id: number\n name: string\n has_enroll_now: boolean\n plan_details_url: string\n state_object: {\n id?: string\n name: string\n slug?: string\n }\n logo_url: string\n rating_designation?: string\n}\n\ninterface Props {\n label?: string\n plan: PlanDetailsLinkPlan\n contextPlacement: ContextPlacement\n variant?: Variant\n className?: string\n designVersion?: DesignVersion\n target?: '_parent' | '_blank'\n}\n\nexport const PlanDetailsLink = ({\n label = 'Plan Details',\n plan,\n contextPlacement,\n variant,\n className,\n designVersion = 'text_link',\n target\n}: Props) => {\n const {\n state_object: { name: stateName },\n plan_details_url,\n id,\n name,\n has_enroll_now\n } = plan\n\n return (\n \n {label}\n \n )\n}\n\n"],"names":["PlanDetailsLink","label","plan","contextPlacement","variant","className","designVersion","target","stateName","plan_details_url","id","name","has_enroll_now","jsx","Link"],"mappings":"ybA2BO,MAAMA,EAAkB,CAAC,CAC9B,MAAAC,EAAQ,eACR,KAAAC,EACA,iBAAAC,EACA,QAAAC,EACA,UAAAC,EACA,cAAAC,EAAgB,YAChB,OAAAC,CACF,IAAa,CACL,KAAA,CACJ,aAAc,CAAE,KAAMC,CAAU,EAChC,iBAAAC,EACA,GAAAC,EACA,KAAAC,EACA,eAAAC,CACE,EAAAV,EAGF,OAAAW,EAAA,IAACC,EAAA,CACC,UAAAT,EACA,QAAAD,EACA,KAAMK,EACN,OAAQF,GAAU,UAClB,eAAe,cACf,QAAQ,eACR,OAAQG,EACR,SAAUC,EACV,UAAWH,EACX,iBAAAL,EACA,SAAUS,EAAiB,cAAgB,kBAC3C,cAAAN,EAEC,SAAAL,CAAA,CAAA,CAGP"}