{ "version": 3, "sources": ["../../card/utils.ts"], "sourcesContent": ["import type {Card} from \"@cling/lib.shared.model\"\nimport {ui_state} from \"../state/index\"\n\nexport function card_level(card: Card) {\n return ui_state.search_state.all_boards ? 2 : card.level\n}\n\nexport function title_tag(card: Card) {\n return `h${Math.min(6, card_level(card))}` as \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"\n}\n"], "mappings": "gFAGO,SAASA,EAAWC,EAAY,CACnC,OAAOC,EAAS,aAAa,WAAa,EAAID,EAAK,KACvD,CAFgBE,EAAAH,EAAA,cAIT,SAASI,EAAUH,EAAY,CAClC,MAAO,IAAI,KAAK,IAAI,EAAGD,EAAWC,CAAI,CAAC,CAAC,EAC5C,CAFgBE,EAAAC,EAAA", "names": ["card_level", "card", "ui_state", "__name", "title_tag"] }