import{c as h,j as e,H as x}from"./app-BiexncSX.js";import{A as j}from"./app-layout-BB5SDrLz.js";import{L as u,V as b,E as f,I as g}from"./IndexPageLayout-vH6paYeM.js";import{T as y,a as N,b as n,c as o,d as _,e as s}from"./table-DPbxE3sd.js";import{C as v,a as w,b as R}from"./card-DJd5CcuI.js";import{B}from"./badge-BL2IjDE_.js";import{D as C}from"./DeleteButton-CIKFjTI1.js";import{B as T}from"./bed-double-DlbqgL2k.js";import{f as H}from"./lucide-react-C-jOYeYF.js";/* empty css            */import"./sonner-8z7PTnwf.js";import"./index-BphRgCCf.js";import"./loader-circle-C36m3ppM.js";import"./createLucideIcon-CiyItOCI.js";import"./triangle-alert-Dp60wOMH.js";import"./index-BLf-KPWz.js";import"./button-Cwvd_D5X.js";import"./utils-DvRnx1Xn.js";import"./index-Bx9iUFeV.js";import"./index-BKRdUh5V.js";import"./index-DRVc8jnD.js";import"./index-CqDcnRSI.js";import"./x-Cp4MPESs.js";import"./tooltip-CFZPZp2b.js";import"./index-B9bcoF29.js";import"./index-3q7cNFQn.js";import"./index-vCsTGnV6.js";import"./index-BxgPClSG.js";import"./index-CW_Do8vH.js";import"./index-BzyVuPsA.js";import"./sun-D646Bdfj.js";import"./index-jmbesBs1.js";import"./index-Dql7-O7m.js";import"./index-DDBh_SM-.js";import"./chevrons-up-down-B23gAN10.js";import"./utensils-CU7nxPop.js";import"./globe-CZ3jv1ui.js";import"./chevron-right-D-bIFB2o.js";import"./house-CmuRWHdh.js";import"./Icon-DEKRlUi3.js";import"./dialog-CRgq9Gqn.js";import"./input-C7geQw3H.js";import"./label-BACPLsln.js";import"./spinner-BshPoFqP.js";import"./trash-2-B8EoOc8P.js";import"./send-D-Y6pdiK.js";import"./wifi-yGaHKi1T.js";import"./phone-Bieilqj-.js";import"./check-Do_LJdyj.js";import"./chevron-up-D0SwuXIU.js";import"./chevron-left-CfTNJLZd.js";import"./shield-check-BcGX3gbR.js";import"./youtube-C8R3zjo2.js";import"./plus-Cm0TKlUw.js";import"./clock-CXI9z3-R.js";import"./credit-card-DrNFemOT.js";import"./ellipsis-BcGSaUdp.js";import"./key-Dw2ORQjm.js";import"./loader-uls-v5oU.js";import"./minus-BQGRvjuE.js";import"./monitor-4BAY-8Q0.js";import"./save-BnaHUyyd.js";import"./search-DVB94mIy.js";import"./sparkles-duG_NONK.js";import"./users-B6ln6dzh.js";const L=[{title:"Rooms",href:"dashboard/rooms"}];function ze(c){const r=h.c(7),{rooms:m,system_currency:p}=c;let a;r[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(x,{title:"Rooms"}),r[0]=a):a=r[0];let i;r[1]!==m||r[2]!==p?(i=e.jsx(v,{className:"px-4",children:m.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center space-y-4",children:[e.jsx("div",{className:"p-4 rounded-full bg-muted",children:e.jsx(T,{className:"w-10 h-10 text-primary"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"No Rooms Yet"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"You haven’t added any rooms to your hotel. Start by creating your first room to manage pricing and availability."})]}),e.jsxs(u,{className:"bg-primary hover:bg-primary hover:text-white text-white",href:"/dashboard/rooms/create",children:[e.jsx(H,{className:" h-4 w-4"})," Add First Room "]})]}):e.jsxs(y,{children:[e.jsx(N,{children:e.jsxs(n,{children:[e.jsx(o,{className:"w-8",children:"#"}),e.jsx(o,{children:"Room Number"}),e.jsx(o,{children:"Cateogry"}),e.jsx(o,{children:"Published"}),e.jsx(o,{children:"Price"}),e.jsx(o,{className:"text-right",children:"Action"})]})}),e.jsx(_,{children:m.map(t=>e.jsxs(n,{children:[e.jsx(s,{children:t.id}),e.jsx(s,{children:t.room_number}),e.jsx(s,{children:t.room_category_name}),e.jsx(s,{children:e.jsx(B,{variant:t.is_published?"default":"outline",children:t.is_published?" published":"Hide"})}),e.jsxs(s,{children:[" ",Number(t.price_override)>0?e.jsxs(e.Fragment,{children:[p," ",Number(t.price_override).toLocaleString()]}):"-"]}),e.jsxs(s,{className:" flex gap-2 justify-end items-center",children:[e.jsx(b,{path:"/dashboard/rooms",id:t.id}),e.jsx(f,{path:"/dashboard/rooms",id:t.id}),e.jsx(C,{deleteId:t.id,model:"rooms",title:`Room #${t.id}`})]})]},t.id))})]})}),r[1]=m,r[2]=p,r[3]=i):i=r[3];let d;r[4]===Symbol.for("react.memo_cache_sentinel")?(d=e.jsx(w,{}),r[4]=d):d=r[4];let l;return r[5]!==i?(l=e.jsxs(j,{breadcrumbs:L,children:[a,e.jsx(g,{title:"Rooms",path:"/dashboard/rooms",add:!0,description:"Manage hotel rooms with pricing, images, availability, and room details. Organize and update rooms to provide a smooth booking experience for customers.",children:e.jsx(e.Fragment,{children:e.jsxs(R,{className:"py-4 rounded-sm shadow-none gap-2",children:[i,d]})})})]}),r[5]=i,r[6]=l):l=r[6],l}export{ze as default};
