{"version":3,"file":"BookSeriesTag-B1b36FDI.js","sources":["../../../app/javascript/components/series/BookSeriesTag.tsx"],"sourcesContent":["import Badge from \"hardcover-ui/components/Badge\";\nimport { generateFeaturedBookSeries } from \"lib/bookUtils\";\nimport { Link } from \"@inertiajs/react\";\nimport { BookSerializersBookByline } from \"types/serializers\";\n\nexport interface Props {\n book: BookSerializersBookByline;\n className?: string;\n link?: boolean;\n}\n\nfunction BookSeriesTagWrapper({\n href,\n message,\n className,\n}: {\n href?: string;\n className: string;\n message: string;\n}) {\n if (href) {\n return (\n \n \n {message}\n \n \n );\n }\n\n return (\n \n {message}\n \n );\n}\n\nexport function BookSeriesTag({ book, link = false, className = \"\" }: Props) {\n if (!book.featuredSeries?.id) {\n return false;\n }\n\n\n const message = generateFeaturedBookSeries(book);\n const { featuredSeries } = book;\n return (\n \n );\n}\n"],"names":["BookSeriesTagWrapper","href","message","className","jsx","Link","Badge","BookSeriesTag","book","link","_a","generateFeaturedBookSeries","featuredSeries"],"mappings":"2IAWA,SAASA,EAAqB,CAC5B,KAAAC,EACA,QAAAC,EACA,UAAAC,CACF,EAIG,CACD,OAAIF,EAEAG,EAAA,IAACC,EAAA,CACC,KAAAJ,EACA,UAAW,GAAGE,CAAS,uDAEvB,SAAAC,EAAA,IAACE,GAAM,QAAQ,YAAY,KAAK,KAAK,UAAU,eAC5C,SACHJ,CAAA,CAAA,CAAA,CAAA,EAMJE,EAAA,IAACE,EAAA,CACC,QAAQ,YACR,KAAK,KACL,UAAW,gBAAgBH,CAAS,GAEnC,SAAAD,CAAA,CAAA,CAGP,CAEO,SAASK,EAAc,CAAE,KAAAC,EAAM,KAAAC,EAAO,GAAO,UAAAN,EAAY,IAAa,OACvE,GAAA,GAACO,EAAAF,EAAK,iBAAL,MAAAE,EAAqB,IACjB,MAAA,GAIH,MAAAR,EAAUS,EAA2BH,CAAI,EACzC,CAAE,eAAAI,CAAmB,EAAAJ,EAEzB,OAAAJ,EAAA,IAACJ,EAAA,CACC,KAAMS,EAAO,WAAWG,EAAe,OAAO,IAAI,GAAK,KACvD,UAAAT,EACA,QAAAD,CAAA,CAAA,CAGN"}