"use strict";
/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
self["webpackHotUpdate_N_E"]("app/page",{

/***/ "(app-pages-browser)/./src/components/BottleGrid.tsx":
/*!***************************************!*\
  !*** ./src/components/BottleGrid.tsx ***!
  \***************************************/
/***/ (function(module, __webpack_exports__, __webpack_require__) {

eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ BottleGrid; }\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-dev-runtime.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"(app-pages-browser)/./node_modules/next/dist/compiled/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/link */ \"(app-pages-browser)/./node_modules/next/dist/api/link.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/calendar.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/unlock.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/ghost.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/lock.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/clock.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/search.js\");\n/* harmony import */ var _barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! __barrel_optimize__?names=Calendar,Clock,Ghost,Lock,Search,Unlock,X!=!lucide-react */ \"(app-pages-browser)/./node_modules/lucide-react/dist/esm/icons/x.js\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \nvar _s = $RefreshSig$();\n\n\n\nfunction BottleCard(param) {\n    let { bottle } = param;\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(next_link__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        href: \"/bottles/\".concat(bottle.id),\n        className: \"block\",\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"bg-white dark:bg-zinc-900 rounded-2xl overflow-hidden border border-zinc-200 dark:border-zinc-800 shadow-md transition-all hover:scale-[1.02] hover:shadow-xl group relative\",\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"aspect-[3/2] overflow-hidden bg-zinc-100 dark:bg-zinc-800 relative\",\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"img\", {\n                            src: bottle.image_url,\n                            alt: bottle.name,\n                            className: \"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110\"\n                        }, void 0, false, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 16,\n                            columnNumber: 21\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors\"\n                        }, void 0, false, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 21,\n                            columnNumber: 21\n                        }, this),\n                        bottle.last_tasted && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"absolute top-3 right-3 bg-zinc-900/80 backdrop-blur-md text-white text-[10px] font-bold px-2 py-1 rounded-md flex items-center gap-1 border border-white/10\",\n                            children: [\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                                    size: 10\n                                }, void 0, false, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 25,\n                                    columnNumber: 29\n                                }, this),\n                                \"ZULETZT: \",\n                                new Date(bottle.last_tasted).toLocaleDateString(\"de-DE\")\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 24,\n                            columnNumber: 25\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"absolute bottom-3 left-3 px-2 py-1 rounded-md text-[10px] font-black uppercase flex items-center gap-1.5 backdrop-blur-md border \".concat(bottle.status === \"open\" ? \"bg-amber-500/80 text-white border-amber-400/50\" : bottle.status === \"empty\" ? \"bg-zinc-500/80 text-white border-zinc-400/50\" : \"bg-blue-600/80 text-white border-blue-400/50\"),\n                            children: [\n                                bottle.status === \"open\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n                                    size: 10\n                                }, void 0, false, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 36,\n                                    columnNumber: 53\n                                }, this) : bottle.status === \"empty\" ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n                                    size: 10\n                                }, void 0, false, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 36,\n                                    columnNumber: 104\n                                }, this) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n                                    size: 10\n                                }, void 0, false, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 36,\n                                    columnNumber: 126\n                                }, this),\n                                bottle.status\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 30,\n                            columnNumber: 21\n                        }, this)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                    lineNumber: 15,\n                    columnNumber: 17\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                    className: \"p-4\",\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"h3\", {\n                            className: \"font-bold text-lg text-zinc-800 dark:text-zinc-100 truncate\",\n                            children: bottle.name\n                        }, void 0, false, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 41,\n                            columnNumber: 21\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                            className: \"text-zinc-500 text-sm truncate\",\n                            children: bottle.distillery\n                        }, void 0, false, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 42,\n                            columnNumber: 21\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"mt-2 flex items-center gap-1.5 text-[10px] font-bold text-zinc-400 uppercase tracking-tight\",\n                            children: [\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n                                    size: 12\n                                }, void 0, false, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 45,\n                                    columnNumber: 25\n                                }, this),\n                                \"Hinzugef\\xfcgt am \",\n                                new Date(bottle.created_at).toLocaleDateString(\"de-DE\")\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 44,\n                            columnNumber: 21\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                            className: \"mt-3 flex items-center justify-between\",\n                            children: [\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                                    className: \"px-2 py-1 bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-400 text-xs font-semibold rounded-md\",\n                                    children: bottle.category\n                                }, void 0, false, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 50,\n                                    columnNumber: 25\n                                }, this),\n                                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                                    className: \"text-xs text-zinc-400\",\n                                    children: [\n                                        bottle.abv,\n                                        \"% Vol.\"\n                                    ]\n                                }, void 0, true, {\n                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                    lineNumber: 53,\n                                    columnNumber: 25\n                                }, this)\n                            ]\n                        }, void 0, true, {\n                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                            lineNumber: 49,\n                            columnNumber: 21\n                        }, this)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                    lineNumber: 40,\n                    columnNumber: 17\n                }, this)\n            ]\n        }, void 0, true, {\n            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n            lineNumber: 14,\n            columnNumber: 13\n        }, this)\n    }, void 0, false, {\n        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n        lineNumber: 13,\n        columnNumber: 9\n    }, this);\n}\n_c = BottleCard;\nfunction BottleGrid(param) {\n    let { bottles } = param;\n    _s();\n    const [searchQuery, setSearchQuery] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(\"\");\n    const [selectedCategory, setSelectedCategory] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [selectedDistillery, setSelectedDistillery] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [selectedStatus, setSelectedStatus] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);\n    const [sortBy, setSortBy] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(\"created_at\");\n    const categories = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{\n        const cats = new Set(bottles.map((b)=>b.category).filter(Boolean));\n        return Array.from(cats).sort();\n    }, [\n        bottles\n    ]);\n    const distilleries = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{\n        const dists = new Set(bottles.map((b)=>b.distillery).filter(Boolean));\n        return Array.from(dists).sort();\n    }, [\n        bottles\n    ]);\n    const filteredBottles = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{\n        let result = bottles.filter((bottle)=>{\n            var _bottle_name, _bottle_distillery;\n            const matchesSearch = ((_bottle_name = bottle.name) === null || _bottle_name === void 0 ? void 0 : _bottle_name.toLowerCase().includes(searchQuery.toLowerCase())) || ((_bottle_distillery = bottle.distillery) === null || _bottle_distillery === void 0 ? void 0 : _bottle_distillery.toLowerCase().includes(searchQuery.toLowerCase()));\n            const matchesCategory = !selectedCategory || bottle.category === selectedCategory;\n            const matchesDistillery = !selectedDistillery || bottle.distillery === selectedDistillery;\n            const matchesStatus = !selectedStatus || bottle.status === selectedStatus;\n            return matchesSearch && matchesCategory && matchesDistillery && matchesStatus;\n        });\n        // Sorting logic\n        return result.sort((a, b)=>{\n            if (sortBy === \"name\") {\n                return (a.name || \"\").localeCompare(b.name || \"\");\n            } else if (sortBy === \"last_tasted\") {\n                const dateA = a.last_tasted ? new Date(a.last_tasted).getTime() : 0;\n                const dateB = b.last_tasted ? new Date(b.last_tasted).getTime() : 0;\n                return dateB - dateA;\n            } else {\n                return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();\n            }\n        });\n    }, [\n        bottles,\n        searchQuery,\n        selectedCategory,\n        selectedDistillery,\n        sortBy\n    ]);\n    if (!bottles || bottles.length === 0) {\n        return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n            className: \"text-center py-12 p-8 bg-zinc-50 dark:bg-zinc-900/50 rounded-3xl border-2 border-dashed border-zinc-200 dark:border-zinc-800\",\n            children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                className: \"text-zinc-500\",\n                children: \"Noch keine Flaschen im Vault. Zeit f\\xfcr den ersten Scan! \\uD83E\\uDD43\"\n            }, void 0, false, {\n                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                lineNumber: 114,\n                columnNumber: 17\n            }, this)\n        }, void 0, false, {\n            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n            lineNumber: 113,\n            columnNumber: 13\n        }, this);\n    }\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"w-full space-y-8\",\n        children: [\n            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                className: \"w-full max-w-6xl mx-auto px-4 space-y-6\",\n                children: [\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                        className: \"flex flex-col md:flex-row gap-4\",\n                        children: [\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                className: \"relative flex-1\",\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n                                        className: \"absolute left-3 top-1/2 -translate-y-1/2 text-zinc-400\",\n                                        size: 18\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 125,\n                                        columnNumber: 25\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"input\", {\n                                        type: \"text\",\n                                        placeholder: \"Suchen nach Name oder Distille...\",\n                                        value: searchQuery,\n                                        onChange: (e)=>setSearchQuery(e.target.value),\n                                        className: \"w-full pl-10 pr-4 py-3 bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl focus:ring-2 focus:ring-amber-500 outline-none transition-all\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 126,\n                                        columnNumber: 25\n                                    }, this),\n                                    searchQuery && /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n                                        onClick: ()=>setSearchQuery(\"\"),\n                                        className: \"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400 hover:text-zinc-600\",\n                                        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_barrel_optimize_names_Calendar_Clock_Ghost_Lock_Search_Unlock_X_lucide_react__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n                                            size: 16\n                                        }, void 0, false, {\n                                            fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                            lineNumber: 138,\n                                            columnNumber: 33\n                                        }, this)\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 134,\n                                        columnNumber: 29\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                lineNumber: 124,\n                                columnNumber: 21\n                            }, this),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"select\", {\n                                value: sortBy,\n                                onChange: (e)=>setSortBy(e.target.value),\n                                className: \"px-4 py-3 bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl text-sm font-medium focus:ring-2 focus:ring-amber-500 outline-none cursor-pointer\",\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"option\", {\n                                        value: \"created_at\",\n                                        children: \"Neueste zuerst\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 148,\n                                        columnNumber: 25\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"option\", {\n                                        value: \"last_tasted\",\n                                        children: \"Zuletzt verkostet\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 149,\n                                        columnNumber: 25\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"option\", {\n                                        value: \"name\",\n                                        children: \"Alphabetisch\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 150,\n                                        columnNumber: 25\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                lineNumber: 143,\n                                columnNumber: 21\n                            }, this)\n                        ]\n                    }, void 0, true, {\n                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                        lineNumber: 123,\n                        columnNumber: 17\n                    }, this),\n                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                        className: \"space-y-4\",\n                        children: [\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                className: \"flex flex-col gap-2\",\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                                        className: \"text-[10px] font-black uppercase tracking-widest text-zinc-400 px-1\",\n                                        children: \"Kategorie\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 157,\n                                        columnNumber: 25\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                        className: \"flex gap-2 overflow-x-auto pb-2 scrollbar-hide\",\n                                        children: [\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n                                                onClick: ()=>setSelectedCategory(null),\n                                                className: \"px-4 py-2 rounded-xl text-xs font-bold whitespace-nowrap transition-all border \".concat(selectedCategory === null ? \"bg-amber-600 border-amber-600 text-white shadow-lg shadow-amber-600/20\" : \"bg-white dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 text-zinc-600 dark:text-zinc-400\"),\n                                                children: \"ALLE\"\n                                            }, void 0, false, {\n                                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                                lineNumber: 159,\n                                                columnNumber: 29\n                                            }, this),\n                                            categories.map((cat)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n                                                    onClick: ()=>setSelectedCategory(cat),\n                                                    className: \"px-4 py-2 rounded-xl text-xs font-bold whitespace-nowrap transition-all border \".concat(selectedCategory === cat ? \"bg-amber-600 border-amber-600 text-white shadow-lg shadow-amber-600/20\" : \"bg-white dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 text-zinc-600 dark:text-zinc-400\"),\n                                                    children: cat.toUpperCase()\n                                                }, cat, false, {\n                                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                                    lineNumber: 169,\n                                                    columnNumber: 33\n                                                }, this))\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 158,\n                                        columnNumber: 25\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                lineNumber: 156,\n                                columnNumber: 21\n                            }, this),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                className: \"flex flex-col gap-2\",\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                                        className: \"text-[10px] font-black uppercase tracking-widest text-zinc-400 px-1\",\n                                        children: \"Distillery\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 185,\n                                        columnNumber: 25\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                        className: \"flex gap-2 overflow-x-auto pb-2 scrollbar-hide\",\n                                        children: [\n                                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n                                                onClick: ()=>setSelectedDistillery(null),\n                                                className: \"px-4 py-2 rounded-xl text-xs font-bold whitespace-nowrap transition-all border \".concat(selectedDistillery === null ? \"bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 border-zinc-900 dark:border-white\" : \"bg-white dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 text-zinc-600 dark:text-zinc-400\"),\n                                                children: \"ALLE\"\n                                            }, void 0, false, {\n                                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                                lineNumber: 187,\n                                                columnNumber: 29\n                                            }, this),\n                                            distilleries.map((dist)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n                                                    onClick: ()=>setSelectedDistillery(dist),\n                                                    className: \"px-4 py-2 rounded-xl text-xs font-bold whitespace-nowrap transition-all border \".concat(selectedDistillery === dist ? \"bg-zinc-900 dark:bg-white text-white dark:text-zinc-900 border-zinc-900 dark:border-white\" : \"bg-white dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 text-zinc-600 dark:text-zinc-400\"),\n                                                    children: dist.toUpperCase()\n                                                }, dist, false, {\n                                                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                                    lineNumber: 197,\n                                                    columnNumber: 33\n                                                }, this))\n                                        ]\n                                    }, void 0, true, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 186,\n                                        columnNumber: 25\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                lineNumber: 184,\n                                columnNumber: 21\n                            }, this),\n                            /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                className: \"flex flex-col gap-2\",\n                                children: [\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"span\", {\n                                        className: \"text-[10px] font-black uppercase tracking-widest text-zinc-400 px-1\",\n                                        children: \"Status\"\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 213,\n                                        columnNumber: 25\n                                    }, this),\n                                    /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                                        className: \"flex gap-2 overflow-x-auto pb-2 scrollbar-hide\",\n                                        children: [\n                                            \"sealed\",\n                                            \"open\",\n                                            \"sampled\",\n                                            \"empty\"\n                                        ].map((status)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n                                                onClick: ()=>setSelectedStatus(selectedStatus === status ? null : status),\n                                                className: \"px-4 py-2 rounded-xl text-xs font-bold whitespace-nowrap transition-all border \".concat(selectedStatus === status ? status === \"open\" ? \"bg-amber-500 border-amber-500 text-white\" : status === \"sampled\" ? \"bg-purple-500 border-purple-500 text-white\" : status === \"empty\" ? \"bg-zinc-500 border-zinc-500 text-white\" : \"bg-blue-600 border-blue-600 text-white\" : \"bg-white dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 text-zinc-600 dark:text-zinc-400\"),\n                                                children: status.toUpperCase()\n                                            }, status, false, {\n                                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                                lineNumber: 216,\n                                                columnNumber: 33\n                                            }, this))\n                                    }, void 0, false, {\n                                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                        lineNumber: 214,\n                                        columnNumber: 25\n                                    }, this)\n                                ]\n                            }, void 0, true, {\n                                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                                lineNumber: 212,\n                                columnNumber: 21\n                            }, this)\n                        ]\n                    }, void 0, true, {\n                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                        lineNumber: 154,\n                        columnNumber: 17\n                    }, this)\n                ]\n            }, void 0, true, {\n                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                lineNumber: 122,\n                columnNumber: 13\n            }, this),\n            filteredBottles.length > 0 ? /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                className: \"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 w-full max-w-6xl mx-auto px-4\",\n                children: filteredBottles.map((bottle)=>/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(BottleCard, {\n                        bottle: bottle\n                    }, bottle.id, false, {\n                        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                        lineNumber: 236,\n                        columnNumber: 25\n                    }, this))\n            }, void 0, false, {\n                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                lineNumber: 234,\n                columnNumber: 17\n            }, this) : /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n                className: \"text-center py-12\",\n                children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"p\", {\n                    className: \"text-zinc-500 italic\",\n                    children: \"Keine Flaschen gefunden, die deinen Filtern entsprechen. \\uD83D\\uDD0E\"\n                }, void 0, false, {\n                    fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                    lineNumber: 241,\n                    columnNumber: 21\n                }, this)\n            }, void 0, false, {\n                fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n                lineNumber: 240,\n                columnNumber: 17\n            }, this)\n        ]\n    }, void 0, true, {\n        fileName: \"/home/robin/AI/Coding/Whisky/src/components/BottleGrid.tsx\",\n        lineNumber: 120,\n        columnNumber: 9\n    }, this);\n}\n_s(BottleGrid, \"qNeqbiUb/7LvCkqUfPetPdK6Qi4=\");\n_c1 = BottleGrid;\nvar _c, _c1;\n$RefreshReg$(_c, \"BottleCard\");\n$RefreshReg$(_c1, \"BottleGrid\");\n\n\n;\n    // Wrapped in an IIFE to avoid polluting the global scope\n    ;\n    (function () {\n        var _a, _b;\n        // Legacy CSS implementations will `eval` browser code in a Node.js context\n        // to extract CSS. For backwards compatibility, we need to check we're in a\n        // browser context before continuing.\n        if (typeof self !== 'undefined' &&\n            // AMP / No-JS mode does not inject these helpers:\n            '$RefreshHelpers$' in self) {\n            // @ts-ignore __webpack_module__ is global\n            var currentExports = module.exports;\n            // @ts-ignore __webpack_module__ is global\n            var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;\n            // This cannot happen in MainTemplate because the exports mismatch between\n            // templating and execution.\n            self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);\n            // A module can be accepted automatically based on its exports, e.g. when\n            // it is a Refresh Boundary.\n            if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {\n                // Save the previous exports signature on update so we can compare the boundary\n                // signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797)\n                module.hot.dispose(function (data) {\n                    data.prevSignature =\n                        self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports);\n                });\n                // Unconditionally accept an update to this module, we'll check if it's\n                // still a Refresh Boundary later.\n                // @ts-ignore importMeta is replaced in the loader\n                module.hot.accept();\n                // This field is set when the previous version of this module was a\n                // Refresh Boundary, letting us know we need to check for invalidation or\n                // enqueue an update.\n                if (prevSignature !== null) {\n                    // A boundary can become ineligible if its exports are incompatible\n                    // with the previous exports.\n                    //\n                    // For example, if you add/remove/change exports, we'll want to\n                    // re-execute the importing modules, and force those components to\n                    // re-render. Similarly, if you convert a class component to a\n                    // function, we want to invalidate the boundary.\n                    if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) {\n                        module.hot.invalidate();\n                    }\n                    else {\n                        self.$RefreshHelpers$.scheduleUpdate();\n                    }\n                }\n            }\n            else {\n                // Since we just executed the code for the module, it's possible that the\n                // new exports made it ineligible for being a boundary.\n                // We only care about the case when we were _previously_ a boundary,\n                // because we already accepted this update (accidental side effect).\n                var isNoLongerABoundary = prevSignature !== null;\n                if (isNoLongerABoundary) {\n                    module.hot.invalidate();\n                }\n            }\n        }\n    })();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 26968 characters]\n//# sourceURL=webpack-internal:///(app-pages-browser)/./src/components/BottleGrid.tsx\n"));

/***/ })

});