module.exports=[14747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},24361,(a,b,c)=>{b.exports=a.x("util",()=>require("util"))},22734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},88644,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},54427,(a,b,c)=>{"use strict";function d(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return{resolve:a,reject:b,promise:c}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createPromiseWithResolvers",{enumerable:!0,get:function(){return d}})},79714,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(43310),e=a.i(50944);let f=(0,c.createContext)({});a.s(["LandlordAuthProvider",0,function({children:a}){let[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(!0),k=(0,e.useRouter)(),l=async()=>{try{let a=await d.landAuthApi.me();h(a.data.user)}catch(a){h(null)}finally{j(!1)}};(0,c.useEffect)(()=>{l()},[]);let m=async(a,b)=>{await d.landAuthApi.getCsrf(),h((await d.landAuthApi.login(a,b)).data.user),k.push("/landlord/dashboard/empresas")},n=async()=>{await d.landAuthApi.logout(),h(null),(0,d.clearTenant)(),k.push("/landlord/login")};return(0,b.jsx)(f.Provider,{value:{user:g,loading:i,login:m,logout:n},children:a})},"useLandlordAuth",0,()=>(0,c.useContext)(f)])},70311,a=>{"use strict";var b=a.i(87924),c=a.i(79714),d=a.i(25664),e=a.i(50944),f=a.i(23292);let g=["/landlord/login","/landlord/register","/landlord/forgot-password"];a.s(["default",0,function({children:a}){let h=(0,e.usePathname)(),i=g.includes(h||"");return(0,b.jsx)(d.ThemeProvider,{children:(0,b.jsx)(c.LandlordAuthProvider,{children:(0,b.jsxs)("div",{className:"min-h-screen flex flex-col",children:[(0,b.jsx)("main",{className:`flex-1 ${!i?"pt-16":""}`,children:(0,b.jsx)("div",{className:"container mx-auto px-4 py-6",children:a})}),!i&&(0,b.jsx)("footer",{className:"border-t py-4 text-center text-sm text-gray-500",children:(0,b.jsxs)("div",{className:"container mx-auto",children:["© ",new Date().getFullYear()," FacturaJá - Sistema de Gestão de Empresas"]})}),(0,b.jsx)(f.Toaster,{position:"top-right",richColors:!0})]})})})}])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__10ht4o.._.js.map