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,EACN,WAAYC,EACZ,QAASC,CACX,EACaC,EAAe,CAC1B,GAAI,EACJ,KAAM,SACN,KAAMC,EACN,WAAYC,EACZ,QAASC,CACX,EAUaC,EAAa,CACxB,UAAW,CACT,GAAI,EACJ,KAAM,aACN,KAAMnB,EACN,QAASE,EACT,KAAM,SACR,EACA,EAAG,CACD,GAAI,EACJ,KAAM,eACN,KAAMF,EACN,QAASE,EACT,KAAM,cACR,EACA,EAAG,CACD,GAAI,EACJ,KAAM,eACN,KAAMF,EACN,QAASE,EACT,KAAM,cACR,EACA,EAAG,CACD,GAAI,EACJ,KAAM,oBACN,KAAME,EACN,QAASE,EACT,KAAM,KACN,KAAM,mBACR,EACA,EAAG,CACD,GAAI,EACJ,KAAM,OACN,KAAME,EACN,QAASE,EACT,KAAM,MACR,EACA,EAAG,CACD,GAAI,EACJ,KAAM,iBACN,KAAME,EACN,QAASE,EACT,KAAM,gBACR,EACA,EAAG,CACD,GAAI,EACJ,KAAM,SACN,KAAME,EACN,QAASE,CACX,CACF,EChHME,EAAiBC,EAAA,KAAK,IAAMC,EAAA,WAAO,8BAAmB,EAAC,iCAE7D,SAAwBC,EAAiB,CACvC,OAAAC,EACA,eAAAC,EACA,SAAAC,CACF,EAIG,CAID,OAHsBC,UAQnBC,WACC,UAAAC,MAACT,GAAe,OAAAI,EAAgB,eAAAC,EAAgC,SAAAC,CAAoB,EACtF,GANSG,EAAA,IAAAC,WAAA,GAQb","names":["SvgCircleStop","props","React.createElement","SvgTrashCan","SvgBadgeCheck","SvgBookmark","SvgBookOpen","WantToReadStatus","faBookmarkRegular","faBookmarkSolid","faBookmarkDuo","CurrentlyReadingStatus","faBookOpenRegular","faBookOpenSolid","faBookOpenDuo","ReadStatus","faBadgeCheckRegular","faBadgeCheckSolid","faBadgeCheckDuo","DidNotFinishStatus","faStopCircleRegular","faStopCircleSolid","faStopCircleDuo","RemoveStatus","faTrashCanRegular","faTrashCanSolid","faTrashCanDuo","STATUS_MAP","BookButtonOpen","lazy","__vitePreload","BookButtonDrawer","bookId","referrerUserId","settings","useCurrentUserId","Suspense","jsx","Fragment"],"ignoreList":[],"sources":["../../../app/javascript/icons/solid/circle-stop.svg","../../../app/javascript/icons/solid/trash-can.svg","../../../app/javascript/icons/regular/badge-check.svg","../../../app/javascript/icons/regular/bookmark.svg","../../../app/javascript/icons/regular/book-open.svg","../../../app/javascript/icons/regular/circle-stop.svg","../../../app/javascript/icons/regular/trash-can.svg","../../../app/javascript/icons/duotone/badge-check.svg","../../../app/javascript/icons/duotone/bookmark.svg","../../../app/javascript/icons/duotone/book-open.svg","../../../app/javascript/icons/duotone/circle-stop.svg","../../../app/javascript/icons/duotone/trash-can.svg","../../../app/javascript/components/shared/UserBookStatuses.tsx","../../../app/javascript/features/BookButtonDrawer/components/BookButtonDrawer/BookButtonDrawer.tsx"],"sourcesContent":["import * as React from \"react\";\nconst SvgCircleStop = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 512 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m-64-352h128c17.7 0 32 14.3 32 32v128c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32\" }));\nexport default SvgCircleStop;\n","import * as React from \"react\";\nconst SvgTrashCan = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 448 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M135.2 17.7A31.9 31.9 0 0 1 163.8 0h120.4c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64s14.3-32 32-32h96zM32 128h384v320c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64zm96 64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16m96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16m96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16\" }));\nexport default SvgTrashCan;\n","import * as React from \"react\";\nconst SvgBadgeCheck = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 512 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5A24 24 0 0 0 340 93.2c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1c-3.4 11 1.5 22.9 11.7 28.2 20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7a23.9 23.9 0 0 0-11.7 28.2c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7c-11-3.4-22.9 1.5-28.2 11.7-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5a23.9 23.9 0 0 0-28.2-11.7c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340c3.4-11-1.5-22.9-11.7-28.2C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7A24 24 0 0 0 93.2 172c-6.6-21.6-1.4-46.1 15.7-63.1s41.5-22.3 63.1-15.7c11 3.4 22.9-1.5 28.2-11.7zM256 0c-35.9 0-67.8 17-88.1 43.4-33-4.3-67.6 6.2-93 31.6S39 135 43.3 168C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6c20.2 26.3 52.1 43.3 88 43.3s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93c26.3-20.2 43.3-52.1 43.3-88s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93S377 39 344 43.3A110.7 110.7 0 0 0 256 0m113 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64a23.9 23.9 0 0 0 33.9 0z\" }));\nexport default SvgBadgeCheck;\n","import * as React from \"react\";\nconst SvgBookmark = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 384 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M0 48C0 21.5 21.5 0 48 0v441.4l130.1-92.9c8.3-6 19.6-6 27.9 0l130 92.9V48H48V0h288c26.5 0 48 21.5 48 48v440c0 9-5 17.2-13 21.3s-17.6 3.4-24.9-1.8L192 397.5l-154.1 110c-7.3 5.2-16.9 5.9-24.9 1.8S0 497 0 488z\" }));\nexport default SvgBookmark;\n","import * as React from \"react\";\nconst SvgBookOpen = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 576 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M156 32C100.6 32 48.8 46.6 27.1 53.6 10.3 59 0 74.5 0 91.1v312.4c0 26.1 24 44.2 48 40.2 19.8-3.3 54.8-7.7 100-7.7 54 0 97.5 25.5 112.5 35.6 7.5 5 16.8 8.4 27 8.4 11.5 0 21.6-4.2 29.3-9.9 13.4-9.8 52.3-34.1 111.2-34.1 47.7 0 80.5 4 99 7.2 23.9 4.1 49-13.8 49-40.6V91.1c0-16.5-10.3-32.1-27.1-37.5C527.2 46.6 475.4 32 420 32c-36.8 0-71.8 6.4-97.4 12.7-12.8 3.2-23.5 6.3-30.9 8.7-1.3.4-2.6.8-3.7 1.2a507.68 507.68 0 0 0-34.6-9.9C227.8 38.4 192.8 32 156 32m108 65.3v320.6c-26-13.7-67.2-29.9-116-29.9-42.9 0-77.4 3.7-100 7.1V97.3C70.3 90.6 112.4 80 156 80c31.6 0 62.6 5.6 85.9 11.3 8.6 2.1 16.1 4.2 22.1 6m48 319.2V97.3c6-1.8 13.5-3.9 22.1-6C357.4 85.6 388.4 80 420 80c43.6 0 85.7 10.6 108 17.3v297.4c-21.7-3.3-54.9-6.7-100-6.7-51.4 0-90.8 15-116 28.6z\" }));\nexport default SvgBookOpen;\n","import * as React from \"react\";\nconst SvgCircleStop = (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 0m192-96h128c17.7 0 32 14.3 32 32v128c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32\" }));\nexport default SvgCircleStop;\n","import * as React from \"react\";\nconst SvgTrashCan = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 448 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"m170.5 51.6-19 28.4h145l-19-28.4c-1.5-2.2-4-3.6-6.7-3.6h-93.7c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6 36.7 55H424c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8v304c0 44.2-35.8 80-80 80H112c-44.2 0-80-35.8-80-80V128h-8c-13.3 0-24-10.7-24-24s10.7-24 24-24h69.8l36.7-55.1A56.2 56.2 0 0 1 177.1 0h93.7c18.7 0 36.2 9.4 46.6 24.9zM80 128v304c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V128zm80 64v208c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16m80 0v208c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16m80 0v208c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16\" }));\nexport default SvgTrashCan;\n","import * as React from \"react\";\nconst SvgBadgeCheck = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 512 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M369 175a23.9 23.9 0 0 1 0 33.9L241 337a23.9 23.9 0 0 1-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175a23.9 23.9 0 0 1 33.9 0z\", className: \"fa-primary\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M256 0a96 96 0 0 1 84.9 51.1C373.8 41 411 49 437 75s34 63.3 23.9 96.1A96 96 0 0 1 512 256a96 96 0 0 1-51.1 84.9C471 373.8 463 411 437 437s-63.3 34-96.1 23.9A96 96 0 0 1 256 512a96 96 0 0 1-84.9-51.1C138.2 471 101 463 75 437s-34-63.3-23.9-96.1A96 96 0 0 1 0 256a96 96 0 0 1 51.1-84.9C41 138.2 49 101 75 75s63.3-34 96.1-23.9A96 96 0 0 1 256 0m113 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64a23.9 23.9 0 0 0 33.9 0z\", style: {\n opacity: 0.4\n} }));\nexport default SvgBadgeCheck;\n","import * as React from \"react\";\nconst SvgBookmark = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 384 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M0 487.7V48C0 21.5 21.5 0 48 0h48v322.1c0 12.8 14.2 20.4 24.9 13.3L192 288l71.1 47.4c10.6 7.1 24.9-.5 24.9-13.3V0h48c26.5 0 48 21.5 48 48v439.7a24.33 24.33 0 0 1-38.3 19.9L192 400 38.3 507.6A24.33 24.33 0 0 1 0 487.7\", className: \"fa-primary\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"m192 288-71.1 47.4c-10.6 7.1-24.9-.5-24.9-13.3V0h192v322.1c0 12.8-14.2 20.4-24.9 13.3z\", style: {\n opacity: 0.4\n} }));\nexport default SvgBookmark;\n","import * as React from \"react\";\nconst SvgBookOpen = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 576 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M288 72v408s-92.8-32-144-32c-38.5 0-88.4 12.1-119.9 22.6C12.8 474.3 0 466 0 454.1V83.8c0-12.1 6.8-23.3 18.1-27.7C46.3 45.3 93.5 32 144 32c64 0 128 24 144 40\", className: \"fa-primary\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M288 72v408s92.8-32 144-32c38.5 0 88.4 12.1 119.9 22.6 11.3 3.8 24.1-4.6 24.1-16.5V83.8c0-12.1-6.8-23.3-18.1-27.6C529.7 45.3 482.5 32 432 32c-64 0-128 24-144 40\", style: {\n opacity: 0.4\n} }));\nexport default SvgBookOpen;\n","import * as React from \"react\";\nconst SvgCircleStop = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 512 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512m-64-352h128c17.7 0 32 14.3 32 32v128c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32\", style: {\n opacity: 0.4\n} }));\nexport default SvgCircleStop;\n","import * as React from \"react\";\nconst SvgTrashCan = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 448 512\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3A31.9 31.9 0 0 0 284.2 0z\", className: \"fa-primary\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M416 96H32v352c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64zm-272 80v224c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16m96 0v224c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16m96 0v224c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16\", style: {\n opacity: 0.4\n} }));\nexport default SvgTrashCan;\n","import faBadgeCheckSolid from \"icons/solid/badge-check.svg\";\nimport faBookmarkSolid from \"icons/solid/bookmark.svg\";\nimport faBookOpenSolid from \"icons/solid/book-open.svg\";\nimport faStopCircleSolid from \"icons/solid/circle-stop.svg\";\nimport faTrashCanSolid from \"icons/solid/trash-can.svg\";\n\nimport faBadgeCheckRegular from \"icons/regular/badge-check.svg\";\nimport faBookmarkRegular from \"icons/regular/bookmark.svg\";\nimport faBookOpenRegular from \"icons/regular/book-open.svg\";\nimport faStopCircleRegular from \"icons/regular/circle-stop.svg\";\nimport faTrashCanRegular from \"icons/regular/trash-can.svg\";\n\nimport faBadgeCheckDuo from \"icons/duotone/badge-check.svg\";\nimport faBookmarkDuo from \"icons/duotone/bookmark.svg\";\nimport faBookOpenDuo from \"icons/duotone/book-open.svg\";\nimport faStopCircleDuo from \"icons/duotone/circle-stop.svg\";\nimport faTrashCanDuo from \"icons/duotone/trash-can.svg\";\n\nimport UserBookStatusType from \"types/UserBookStatusType\";\nimport { IconThemeProps } from \"hardcover-ui/theme/components/icon\";\n\nexport const WantToReadStatus = {\n id: 1,\n name: \"Want to Read\",\n icon: faBookmarkRegular,\n activeIcon: faBookmarkSolid,\n duoIcon: faBookmarkDuo,\n};\nexport const CurrentlyReadingStatus = {\n id: 2,\n name: \"Currently Reading\",\n icon: faBookOpenRegular,\n activeIcon: faBookOpenSolid,\n size: \"1x\",\n duoIcon: faBookOpenDuo,\n};\nexport const ReadStatus = {\n id: 3,\n name: \"Read\",\n icon: faBadgeCheckRegular,\n activeIcon: faBadgeCheckSolid,\n duoIcon: faBadgeCheckDuo,\n};\nexport const DidNotFinishStatus = {\n id: 5,\n name: \"Did Not Finish\",\n icon: faStopCircleRegular,\n activeIcon: faStopCircleSolid,\n duoIcon: faStopCircleDuo,\n};\nexport const RemoveStatus = {\n id: 6,\n name: \"Remove\",\n icon: faTrashCanRegular,\n activeIcon: faTrashCanSolid,\n duoIcon: faTrashCanDuo,\n};\n\nexport const STATUSES: UserBookStatusType[] = [\n WantToReadStatus,\n CurrentlyReadingStatus,\n ReadStatus,\n DidNotFinishStatus,\n RemoveStatus,\n];\n\nexport const STATUS_MAP = {\n undefined: {\n id: 0,\n name: \"Loading...\",\n icon: faBookmarkRegular,\n duoIcon: faBookmarkDuo,\n slug: \"loading\",\n },\n 0: {\n id: 0,\n name: \"Want to Read\",\n icon: faBookmarkRegular,\n duoIcon: faBookmarkDuo,\n slug: \"want-to-read\",\n },\n 1: {\n id: 1,\n name: \"Want to Read\",\n icon: faBookmarkRegular,\n duoIcon: faBookmarkDuo,\n slug: \"want-to-read\",\n },\n 2: {\n id: 2,\n name: \"Currently Reading\",\n icon: faBookOpenRegular,\n duoIcon: faBookOpenDuo,\n size: \"1x\" as IconThemeProps[\"size\"],\n slug: \"currently-reading\",\n },\n 3: {\n id: 3,\n name: \"Read\",\n icon: faBadgeCheckRegular,\n duoIcon: faBadgeCheckDuo,\n slug: \"read\",\n },\n 5: {\n id: 5,\n name: \"Did Not Finish\",\n icon: faStopCircleRegular,\n duoIcon: faStopCircleDuo,\n slug: \"did-not-finish\",\n },\n 6: {\n id: 6,\n name: \"Remove\",\n icon: faTrashCanRegular,\n duoIcon: faTrashCanDuo,\n },\n};\n","import { DrawerSettingsType } from \"features/Drawer/types/types\";\nimport useCurrentUserId from \"hooks/user/useCurrentUserId\";\nimport { Suspense, lazy } from \"react\";\n\nconst BookButtonOpen = lazy(() => import(\"../BookButtonOpen\"));\n\nexport default function BookButtonDrawer({\n bookId,\n referrerUserId,\n settings,\n}: {\n bookId: number;\n referrerUserId?: number;\n settings: DrawerSettingsType;\n}) {\n const currentUserId = useCurrentUserId();\n\n // Never load or show the Book Button Drawer when not logged in\n if (!currentUserId) {\n return <>;\n }\n\n return (\n \n \n \n );\n}\n"],"file":"assets/BookButtonDrawer-Bp9w0pXG.js"}