(()=>{var e={};e.id=4007,e.ids=[4007],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},64692:(e,r,s)=>{"use strict";s.r(r),s.d(r,{GlobalError:()=>i.a,__next_app__:()=>x,originalPathname:()=>p,pages:()=>c,routeModule:()=>m,tree:()=>l}),s(56337),s(84500),s(49356),s(91884),s(90996);var t=s(30170),a=s(45002),n=s(83876),i=s.n(n),o=s(66299),d={};for(let e in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>o[e]);s.d(r,d);let l=["",{children:["tenant",{children:["messages",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,56337)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\tenant\\messages\\page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,84500)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\layout.tsx"],error:[()=>Promise.resolve().then(s.bind(s,49356)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\error.tsx"],loading:[()=>Promise.resolve().then(s.bind(s,91884)),"c:\\xampp\\htdocs\\propmaster.io\\src\\app\\loading.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,90996,23)),"next/dist/client/components/not-found-error"]}],c=["c:\\xampp\\htdocs\\propmaster.io\\src\\app\\tenant\\messages\\page.tsx"],p="/tenant/messages/page",x={require:s,loadChunk:()=>Promise.resolve()},m=new t.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/tenant/messages/page",pathname:"/tenant/messages",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},22823:(e,r,s)=>{Promise.resolve().then(s.bind(s,60158))},60158:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>d});var t=s(97247),a=s(19898),n=s(34178);s(28964);var i=s(77940),o=s(45975);function d(){let{data:e,status:r}=(0,a.useSession)(),s=(0,n.useRouter)();return"loading"===r?t.jsx("div",{className:"min-h-screen bg-gradient-bg-light dark:bg-gradient-bg-dark flex items-center justify-center",children:t.jsx("div",{className:"animate-spin rounded-full h-32 w-32 border-b-2 border-purple-600 dark:border-purple-400"})}):e&&"tenant"===e.user.role?(0,t.jsxs)("div",{className:"h-screen bg-gradient-bg-light dark:bg-gradient-bg-dark flex flex-col",children:[t.jsx("div",{className:"bg-white/80 dark:bg-gray-900/80 backdrop-blur-[20px] border-b border-gray-200 dark:border-gray-700 flex-shrink-0",children:t.jsx("div",{className:"max-w-7xl mx-auto px-6 py-4",children:(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsxs)("button",{onClick:()=>{s.push("/tenant/dashboard")},className:"flex items-center space-x-2 text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200 transition-colors",children:[t.jsx(i.Z,{className:"w-5 h-5"}),t.jsx("span",{className:"font-medium",children:"Back to Dashboard"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[t.jsx("div",{className:"w-10 h-10 bg-gradient-primary rounded-xl flex items-center justify-center",children:(0,t.jsxs)("span",{className:"text-white font-semibold text-lg",children:[e.user.firstName?.[0],e.user.lastName?.[0]]})}),(0,t.jsxs)("div",{children:[t.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-gray-100",children:"Messages"}),t.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Communicate with your property manager"})]})]})]})})}),t.jsx("div",{className:"flex-1 overflow-hidden",children:t.jsx(o.Z,{currentUserId:e.user.id,currentUserRole:e.user.role})})]}):null}s(43999)},56337:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>t});let t=(0,s(45347).createProxy)(String.raw`c:\xampp\htdocs\propmaster.io\src\app\tenant\messages\page.tsx#default`)}};var r=require("../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[7787,7549,125,3757],()=>s(64692));module.exports=t})();