1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{8513:function(e,t,n){Promise.resolve().then(n.t.bind(n,2778,23)),Promise.resolve().then(n.bind(n,4738)),Promise.resolve().then(n.bind(n,1245)),Promise.resolve().then(n.bind(n,1151))},4738:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var r=n(7437),o=n(1245),s=n(4752),a=n(9799);function c(){let{user:e}=(0,o.a)(),t=async()=>{try{await (0,s.w7)(a.I8),console.log("Logged out successfully")}catch(e){console.error("Logout error:",e)}};return e?(0,r.jsx)("div",{className:"bg-white shadow",children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"flex justify-end h-16 items-center",children:(0,r.jsxs)("div",{className:"flex items-center space-x-4",children:[e.photoURL&&(0,r.jsx)("img",{src:e.photoURL,alt:"Profile",className:"w-8 h-8 rounded-full"}),(0,r.jsx)("span",{className:"text-gray-700",children:e.email}),(0,r.jsx)("button",{onClick:t,className:"bg-red-500 text-white px-4 py-2 rounded hover:bg-red-600 text-sm",children:"Logout"})]})})})}):null}},1245:function(e,t,n){"use strict";n.d(t,{AuthProvider:function(){return u},a:function(){return i}});var r=n(7437),o=n(2265),s=n(4752),a=n(9799);let c=(0,o.createContext)({user:null,loading:!0,subscription:null});function u(e){let{children:t}=e,[n,u]=(0,o.useState)(null),[i,l]=(0,o.useState)(!0),[d,f]=(0,o.useState)(null);return(0,o.useEffect)(()=>(0,s.Aj)(a.I8,e=>{u(e),l(!1),console.log("Auth state changed:",null==e?void 0:e.email)}),[]),(0,o.useEffect)(()=>{n&&(async()=>{try{let e=await n.getIdToken(),t=await fetch("/api/auth/token",{headers:{Authorization:"Bearer ".concat(e)}}),r=await t.json();f(r.subscription)}catch(e){console.error("Error fetching subscription:",e),f(null)}})()},[n]),(0,r.jsx)(c.Provider,{value:{user:n,loading:i,subscription:d},children:t})}let i=()=>(0,o.useContext)(c)},9799:function(e,t,n){"use strict";n.d(t,{I8:function(){return u},_p:function(){return o._p},db:function(){return i}});var r=n(738),o=n(4752),s=n(5978);let a={apiKey:"AIzaSyBCwxXPZmyeQsMP9423cIK_pJPMWWm_xCA",authDomain:"agg-reports-ce-v1.firebaseapp.com",projectId:"agg-reports-ce-v1",storageBucket:"agg-reports-ce-v1.appspot.com",messagingSenderId:"800886729638",appId:"1:800886729638:web:e93ded2d96b1ba5121bd67",measurementId:"G-RT7F06RJHD"},c=function(){try{return(0,r.Mq)()}catch(e){return(0,r.ZF)(a)}}(),u=(0,o.v0)(c),i=(0,s.ad)(c)},1151:function(e,t,n){"use strict";n.d(t,{N:function(){return i},PaddleProvider:function(){return u}});var r=n(7437),o=n(2265),s=n(5262),a=n(7900);let c=(0,o.createContext)({isInitialized:!1,paddle:null});function u(e){let{children:t}=e,[n,u]=(0,o.useState)(!1),[i,l]=(0,o.useState)(null);return(0,o.useEffect)(()=>{(0,s.J4)({environment:"production",token:"9e344ca652dbf4612a637070532e5b7ab4840a922839ffefcb"}).then(e=>{e&&(l(e),u(!0))})},[]),(0,r.jsxs)(c.Provider,{value:{isInitialized:n,paddle:i},children:[(0,r.jsx)(a.default,{src:"https://cdn.paddle.com/paddle/v2/paddle.js",onLoad:()=>{window.Paddle.Setup({token:"9e344ca652dbf4612a637070532e5b7ab4840a922839ffefcb"}),l(window.Paddle),u(!0)}}),t]})}let i=()=>(0,o.useContext)(c)},2778:function(){}},function(e){e.O(0,[461,358,565,714,576,971,117,744],function(){return e(e.s=8513)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.