{"version":3,"file":"TagCategories-CgZ0wtcz.js","sources":["../../../app/javascript/icons/regular/triangle-exclamation.svg","../../../app/javascript/icons/regular/book-heart.svg","../../../app/javascript/icons/regular/circle-question.svg","../../../app/javascript/constants/TagCategories.ts"],"sourcesContent":["import * as React from \"react\";\nconst SvgTriangleExclamation = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 512 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410a14.51 14.51 0 0 1-12.4 22h-387a14.51 14.51 0 0 1-12.4-22zm-41-25L9.1 385a62.52 62.52 0 0 0 53.4 95h387a62.52 62.52 0 0 0 53.4-95L304.6 59.3a56.93 56.93 0 0 0-97.2 0M288 368a32 32 0 1 0-64 0 32 32 0 1 0 64 0m-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24v96c0 13.3 10.7 24 24 24s24-10.7 24-24z\" }));\nexport default SvgTriangleExclamation;\n","import * as React from \"react\";\nconst SvgBookHeart = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 448 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M0 88A88 88 0 0 1 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80A80 80 0 0 1 .4 424H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zm80-185.4a61.3 61.3 0 0 1 61.3-61.3c16.2 0 31.8 6.5 43.3 17.9l7.4 7.4 7.4-7.4A61.3 61.3 0 0 1 352 173.3c0 16.2-6.5 31.8-17.9 43.3l-82.7 82.7c-6.2 6.2-16.4 6.2-22.6 0l-82.7-82.7a61.2 61.2 0 0 1-17.9-43.3z\" }));\nexport default SvgBookHeart;\n","import * as React from \"react\";\nconst SvgCircleQuestion = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 512 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M464 256a208 208 0 1 0-416 0 208 208 0 1 0 416 0M0 256a256 256 0 1 1 512 0 256 256 0 1 1-512 0m169.8-90.7a56.1 56.1 0 0 1 52.8-37.3h58.3a63.1 63.1 0 0 1 63.1 63.1 63.3 63.3 0 0 1-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6-13.3 0-24-10.7-24-24v-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4a15.09 15.09 0 0 0-7.5-28.2h-58.3c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1-64 0\" }));\nexport default SvgCircleQuestion;\n","import faTag from \"icons/regular/tag.svg\";\nimport faExclamationTriangle from \"icons/regular/triangle-exclamation.svg\";\nimport faSmile from \"icons/regular/face-smile.svg\";\nimport faBookHeart from \"icons/regular/book-heart.svg\";\nimport faQuestionCircle from \"icons/regular/circle-question.svg\";\n\nimport { TagCategoryType } from \"types/TagType\";\n\nexport const categoryMap: TagCategoryType[] = [\n {\n category: \"Genre\",\n icon: faBookHeart,\n },\n {\n category: \"Mood\",\n icon: faSmile,\n },\n {\n category: \"Content Warning\",\n icon: faExclamationTriangle,\n },\n {\n category: \"Tag\",\n icon: faTag,\n },\n];\n\nexport const categoryIconMap = {\n Genre: faBookHeart,\n Mood: faSmile,\n \"Content Warning\": faExclamationTriangle,\n Tag: faTag,\n};\n\nexport const unknownCategoryIcon = faQuestionCircle;\n\nexport const allCategories = Object.keys(categoryIconMap);\n\nexport const defaultCategories = {\n Genre: [],\n Mood: [],\n \"Content Warning\": [],\n Tag: [],\n};\n\nexport const categoryColorMap = {\n Genre: \"bg-secondary border border-muted\",\n Mood: \"bg-green-800 border border-green-700 text-white\",\n \"Content Warning\": \"bg-accent text-accent-foreground border border-accent\",\n Tag: \"bg-secondary text-secondary-foreground border border-secondary \",\n};\nexport const categoryHoverColorMap = {\n Genre: \"hover:bg-primary hover:border-primary hover:text-primary-foreground\",\n Mood: \"hover:bg-green-900\",\n \"Content Warning\": \"hover:bg-yellow-500\",\n Tag: \"hover:bg-gray-800\",\n};\n"],"names":["SvgTriangleExclamation","props","React.createElement","SvgBookHeart","SvgCircleQuestion","categoryIconMap","faBookHeart","faSmile","faExclamationTriangle","faTag","unknownCategoryIcon","faQuestionCircle","categoryColorMap","categoryHoverColorMap"],"mappings":"uFACA,MAAMA,EAA0BC,GAA0BC,EAAmB,cAAC,MAAO,CAAE,MAAO,6BAA8B,QAAS,cAAe,GAAGD,CAAO,EAAkBC,gBAAoB,OAAQ,CAAE,EAAG,8VAA8V,CAAE,CAAC,ECA5iBC,EAAgBF,GAA0BC,EAAmB,cAAC,MAAO,CAAE,MAAO,6BAA8B,QAAS,cAAe,GAAGD,CAAO,EAAkBC,gBAAoB,OAAQ,CAAE,EAAG,kfAAkf,CAAE,CAAC,ECAtrBE,EAAqBH,GAA0BC,EAAmB,cAAC,MAAO,CAAE,MAAO,6BAA8B,QAAS,cAAe,GAAGD,CAAO,EAAkBC,gBAAoB,OAAQ,CAAE,EAAG,gcAAgc,CAAE,CAAC,EC0BloBG,EAAkB,CAC7B,MAAOC,EACP,KAAMC,EACN,kBAAmBC,EACnB,IAAKC,CACP,EAEaC,EAAsBC,EAWtBC,EAAmB,CAC9B,MAAO,mCACP,KAAM,kDACN,kBAAmB,wDACnB,IAAK,iEACP,EACaC,EAAwB,CACnC,MAAO,sEACP,KAAM,qBACN,kBAAmB,sBACnB,IAAK,mBACP"}