{"version":3,"file":"truncateClassMapper.cjs","sources":["../../../../../../src/components/ui/theme/typography/truncateClassMapper.ts"],"sourcesContent":["import { BaseClassMapper } from \"../common/BaseClassMapper\";\nimport type { CategoryProps, TruncateKey } from \"../../props\";\n\nexport class TruncateClassMapper extends BaseClassMapper implements Record<TruncateKey, string> {\n  /** Single line truncation with ellipsis */\n  truncate: string = \"truncate\";\n  /** Truncate at 2 lines */\n  lineClamp2: string = \"line-clamp-2\";\n  /** Truncate at 3 lines */\n  lineClamp3: string = \"line-clamp-3\";\n  /** Truncate at 4 lines */\n  lineClamp4: string = \"line-clamp-4\";\n  /** Truncate at 5 lines */\n  lineClamp5: string = \"line-clamp-5\";\n  /** No truncation (remove truncate) */\n  noTruncate: string = \"line-clamp-none\";\n\n  getClasses(extractedKeys: CategoryProps): string[] {\n    const classes: string[] = [];\n\n    const truncateValue = extractedKeys?.truncate;\n\n    if (truncateValue && truncateValue in this) {\n      classes.push(this[truncateValue as TruncateKey]);\n    }\n\n    return classes;\n  }\n}\n"],"names":["BaseClassMapper"],"mappings":";;;;AAGO,MAAM,4BAA4BA,+BAAA,CAAuD;AAAA,EAAzF,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAEL;AAAA,IAAA,IAAA,CAAA,QAAA,GAAmB,UAAA;AAEnB;AAAA,IAAA,IAAA,CAAA,UAAA,GAAqB,cAAA;AAErB;AAAA,IAAA,IAAA,CAAA,UAAA,GAAqB,cAAA;AAErB;AAAA,IAAA,IAAA,CAAA,UAAA,GAAqB,cAAA;AAErB;AAAA,IAAA,IAAA,CAAA,UAAA,GAAqB,cAAA;AAErB;AAAA,IAAA,IAAA,CAAA,UAAA,GAAqB,iBAAA;AAAA,EAAA;AAAA,EAErB,WAAW,aAAA,EAAwC;AACjD,IAAA,MAAM,UAAoB,EAAC;AAE3B,IAAA,MAAM,gBAAgB,aAAA,EAAe,QAAA;AAErC,IAAA,IAAI,aAAA,IAAiB,iBAAiB,IAAA,EAAM;AAC1C,MAAA,OAAA,CAAQ,IAAA,CAAK,IAAA,CAAK,aAA4B,CAAC,CAAA;AAAA,IACjD;AAEA,IAAA,OAAO,OAAA;AAAA,EACT;AACF;;;;"}