PageSourceSearch

https://app.aicosts.ai/static/js/398.11636798.chunk.js

js aicosts.ai collected 2026-10-04 23:00:38 UTC 21,541 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="24f6c447-b1e6-58f7-a3bc-8fab92e47b05")}catch(e){}}();
3(self.webpackChunkaibd_web_app=self.webpackChunkaibd_web_app||[]).push([[398],{28:(e,a,t)=>{t.d(a,{A:()=>n});t(5043);var s=t(579);const l=e=>{let{text:a="Loading..."}=e;return(0,s.jsx)("div",{className:"fixed inset-0 bg-gradient-to-br from-apple-blue-50/95 via-purple-50/95 to-pink-50/95 backdrop-blur-xl z-50 flex flex-col items-center justify-center transition-all duration-500",children:(0,s.jsxs)("div",{className:"glass-card flex flex-col items-center p-12 rounded-3xl animate-scale-in",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"w-28 h-28 border-4 border-apple-gray-200 rounded-full animate-spin-slow"}),(0,s.jsx)("div",{className:"absolute top-0 left-0 w-28 h-28 border-t-4 border-apple-blue-600 rounded-full animate-spin"}),(0,s.jsx)("div",{className:"absolute top-1/2 left-1/2 w-4 h-4 bg-apple-blue-600 rounded-full transform -translate-x-1/2 -translate-y-1/2 animate-pulse"})]}),(0,s.jsxs)("div",{className:"mt-10 text-center",children:[(0,s.jsx)("p",{className:"text-apple-gray-900 font-bold text-xl tracking-wide text-display",children:a}),(0,s.jsxs)("div",{className:"mt-4 flex justify-center space-x-1",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-apple-blue-600 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),(0,s.jsx)("div",{className:"w-2 h-2 bg-apple-blue-600 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),(0,s.jsx)("div",{className:"w-2 h-2 bg-apple-blue-600 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})]})]})})},r=()=>(0,s.jsx)("style",{children:"\n    @keyframes spin-slow {\n      0% {\n        transform: rotate(0deg);\n      }\n      100% {\n        transform: rotate(360deg);\n      }\n    }\n    .animate-spin-slow {\n      animation: spin-slow 3s linear infinite;\n    }\n  "}),n=e=>{let{text:a="Loading..."}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r,{}),(0,s.jsx)(l,{text:a})]})}},589:(e,a,t)=>{t.d(a,{Vz:()=>n,ZH:()=>l,hY:()=>s,rm:()=>r});const s=e=>{if("string"!==typeof e)return e||"";return e.replace(/_/g," ").split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")},l=e=>"string"!==typeof e||0===e.length?"":e.charAt(0).toUpperCase()+e.slice(1),r=e=>{if(!e)return"";return new Date(e).toISOString().split("T")[0]},n=e=>e&&e.length>0&&e[0]?e[0]:"U"},1732:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(8039);const l=class{constructor(){this.pathPrefix=void 0,this.commonService=void 0,this.pathPrefix="/api/v1/session",this.commonService=new s.A}reviewSession(){const e={method:"GET",url:`${this.pathPrefix}/review`,withCredentials:!0};return this.commonService.fetch(e)}verifyTurnstileToken(e){let{token:a}=e;const t={method:"POST",url:`${this.pathPrefix}/verifyturnstiletoken`,data:{token:a},withCredentials:!0};return this.commonService.fetch(t)}logIn(e){let{email:a,password:t}=e;const s={method:"POST",url:`${this.pathPrefix}/login`,data:{email:a,password:t},withCredentials:!0};return this.commonService.fetch(s)}logOut(){const e={method:"GET",url:`${this.pathPrefix}/logout`,withCredentials:!0};return this.commonService.fetch(e)}}},2065:(e,a,t)=>{t.d(a,{s:()=>s});const s=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if("number"!==typeof e||isNaN(e))return e;if(e<1e3)return e.toFixed(a);const t=[{value:1e3,symbol:"k"},{value:1e6,symbol:"m"},{value:1e9,symbol:"B"},{value:1e12,symbol:"T"}];let s;for(s=t.length-1;s>0&&!(e>=t[s].value);s--);const l=e/t[s].value;return parseFloat(l.toFixed(a))+t[s].symbol}},3719:(e,a,t)=>{t.d(a,{N:()=>r});var s=t(9337),l=t(2936);l.A.init("b35820620837f9ded87ef1eaa05d34ee",{debug:!1,ignore_dnt:!1});const r={instance:l.A,identify(e){try{l.A.identify(e)}catch(a){s.A.error("mixpanel.identify error:",a)}},track(e,a){try{l.A.track(e,a)}catch(t){s.A.error("mixpanel.track error:",t)}}}},6398:(e,a,t)=>{t.r(a),t.d(a,{default:()=>A});var s=t(5043),l=t(8269),r=t(1732),n=t(7348),i=t(6767),o=t(2934),d=t(9218),c=t(7001),p=t(6868),x=t(7690),m=t(28),u=t(3719),h=t(446),f=t.n(h),g=t(7766),b=t(579);const v=e=>{let{usageRecords:a,platforms:t}=e;const s=e=>{const a=t.find((a=>a._id===e));return(null===a||void 0===a?void 0:a.name)||"Unknown Platform"};return(0,b.jsx)("div",{className:"overflow-x-auto",children:(0,b.jsxs)("table",{className:"min-w-full apple-card",children:[(0,b.jsx)("thead",{className:"glass-card bg-gradient-to-r from-apple-gray-50 to-apple-gray-100 border-b",children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-apple-gray-500 uppercase tracking-wider",children:"Date"}),(0,b.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-apple-gray-500 uppercase tracking-wider",children:"Platform"}),(0,b.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-apple-gray-500 uppercase tracking-wider",children:"Items"}),(0,b.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-apple-gray-500 uppercase tracking-wider",children:"Total Cost"}),(0,b.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-apple-gray-500 uppercase tracking-wider",children:"Created"})]})}),(0,b.jsx)("tbody",{className:"divide-y divide-apple-gray-200",children:a.map((e=>(0,b.jsxs)("tr",{className:"hover:glass-card hover:bg-gradient-to-r from-apple-gray-50 to-apple-gray-100 hover-lift animate-slide-up",children:[(0,b.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-apple-gray-900",children:f()(e.date).format("MMM D, YYYY")}),(0,b.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-apple-gray-900",children:e.platform_name||s(e.platform_id)}),(0,b.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-apple-gray-900",children:e.usage_items.length}),(0,b.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-apple-gray-900",children:(0,g.vv)(e.total_cost||0,{useSimpleFormat:!0})}),(0,b.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-apple-gray-500",children:e.createdAt?f()(e.createdAt).format("MMM D, YYYY"):"N/A"})]},e._id)))})]})})};var j=t(6163),y=t(4793),N=t(8793),w=t(589);const k=e=>{let{platforms:a,filters:t,onFilterChange:l}=e;
3const[r,n]=(0,s.useState)(t.startDate?f()(t.startDate):null),[i,o]=(0,s.useState)(t.endDate?f()(t.endDate):null),d=(0,s.useCallback)((e=>{const a=e.target.value||void 0;l({platformId:a})}),[l]),c=(0,s.useCallback)((e=>{l({sortBy:e.target.value})}),[l]),p=(0,s.useCallback)((e=>{l({sortOrder:e.target.value})}),[l]),x=(0,s.useCallback)((e=>{n(e),l({startDate:e?e.toISOString():void 0})}),[l]),m=(0,s.useCallback)((e=>{o(e),l({endDate:e?e.toISOString():void 0})}),[l]),u=(0,s.useCallback)((()=>{n(null),o(null),l({platformId:void 0,startDate:void 0,endDate:void 0,sortBy:"date",sortOrder:"desc"})}),[l]);return(0,b.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,b.jsx)("h2",{className:"text-display text-lg font-semibold text-apple-gray-900",children:"Filters"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-apple-gray-700 mb-1",children:"Platform (Active Platforms)"}),(0,b.jsxs)("select",{className:"glass-input w-full border border-apple-gray-300 rounded-3xl py-2 px-3 focus:outline-none focus:ring-2 focus:ring-apple-blue-500 focus:border-apple-blue-500 hover-lift",value:t.platformId||"",onChange:d,children:[(0,b.jsx)("option",{value:"",children:"Select Platform"}),a.filter((e=>e.isActive)).map((e=>(0,b.jsx)("option",{value:e._id,children:(0,w.ZH)(e.name)},e._id)))]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-apple-gray-700 mb-1",children:"Start Date"}),(0,b.jsx)(y.$,{dateAdapter:N.R,children:(0,b.jsx)(j.l,{value:r,onChange:x,maxDate:i||void 0,slotProps:{textField:{fullWidth:!0,size:"small",placeholder:"Select start date",sx:{"& .MuiOutlinedInput-root":{borderRadius:"0.375rem"}}}},format:"MM/DD/YYYY"})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-apple-gray-700 mb-1",children:"End Date"}),(0,b.jsx)(y.$,{dateAdapter:N.R,children:(0,b.jsx)(j.l,{value:i,onChange:m,minDate:r||void 0,maxDate:f()(),slotProps:{textField:{fullWidth:!0,size:"small",placeholder:"Select end date",sx:{"& .MuiOutlinedInput-root":{borderRadius:"0.375rem"}}}},format:"MM/DD/YYYY"})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-apple-gray-700 mb-1",children:"Sort By"}),(0,b.jsxs)("select",{className:"glass-input w-full border border-apple-gray-300 rounded-3xl py-2 px-3 focus:outline-none focus:ring-2 focus:ring-apple-blue-500 focus:border-apple-blue-500 hover-lift",value:t.sortBy,onChange:c,children:[(0,b.jsx)("option",{value:"date",children:"Date"}),(0,b.jsx)("option",{value:"total_cost",children:"Cost"}),(0,b.jsx)("option",{value:"createdAt",children:"Created At"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-apple-gray-700 mb-1",children:"Sort Order"}),(0,b.jsxs)("select",{className:"glass-input w-full border border-apple-gray-300 rounded-3xl py-2 px-3 focus:outline-none focus:ring-2 focus:ring-apple-blue-500 focus:border-apple-blue-500 hover-lift",value:t.sortOrder,onChange:p,children:[(0,b.jsx)("option",{value:"desc",children:"Newest First"}),(0,b.jsx)("option",{value:"asc",children:"Oldest First"})]})]})]}),(0,b.jsx)("div",{className:"flex justify-end",children:(0,b.jsx)("button",{onClick:u,className:"px-4 py-2 text-sm text-apple-blue-600 hover:text-apple-blue-800 focus:outline-none hover-lift",children:"Clear Filters"})})]})},C=e=>{let{currentPage:a,totalPages:t,onPageChange:l}=e;const r=(()=>{const e=[];e.push(1);let s=Math.max(2,a-1),l=Math.min(t-1,a+1);l-s<Math.min(3,t-2)&&(a<t/2?l=Math.min(t-1,s+Math.min(3,t-2)):s=Math.max(2,l-Math.min(3,t-2))),s>2&&e.push("...");for(let a=s;a<=l;a++)e.push(a);return l<t-1&&e.push("..."),t>1&&e.push(t),e})();return(0,b.jsx)("div",{className:"flex justify-center",children:(0,b.jsxs)("div",{className:"inline-flex items-center glass-card rounded-2xl p-1 shadow-apple",children:[(0,b.jsx)("button",{onClick:()=>l(a-1),disabled:1===a,className:"px-4 py-2 rounded-xl font-semibold transition-all duration-200 "+(1===a?"bg-apple-gray-100 text-apple-gray-400 cursor-not-allowed":"apple-button-secondary hover-lift"),children:"\u2190 Prev"}),r.map(((e,t)=>(0,b.jsx)(s.Fragment,{children:"..."===e?(0,b.jsx)("span",{className:"px-3 py-2 text-apple-gray-600 font-semibold",children:"..."}):(0,b.jsx)("button",{onClick:()=>"number"===typeof e&&l(e),className:"px-4 py-2 rounded-xl mx-1 font-semibold transition-all duration-200 "+(e===a?"apple-button-primary":"glass-button hover-lift text-apple-gray-700"),children:e})},t))),(0,b.jsx)("button",{onClick:()=>l(a+1),disabled:a===t,className:"px-4 py-2 rounded-xl font-semibold transition-all duration-200 "+(a===t?"bg-apple-gray-100 text-apple-gray-400 cursor-not-allowed":"apple-button-secondary hover-lift"),children:"Next \u2192"})]})})},A=()=>
3{const e=(0,i.Zp)(),[a,t]=(0,s.useState)(!1),{setUserSession:h,userSession:f,isAuthenticated:j}=(0,n.jh)(),{usageRecords:y,loading:N,error:w,pagination:A,filters:S,setFilters:D,setPage:P,refreshUsageData:M}=(0,p.zK)(),{platforms:z,refreshPlatforms:F}=(0,x.g)(),O=y.reduce(((e,a)=>e+(a.total_cost||0)),0),I=A.total||0,U=(0,s.useCallback)((async()=>{try{u.N.track("UsageManagementView",{userId:null===f||void 0===f?void 0:f.id}),t(!0);const a=new r.A;let s={userSessionData:f};if(!j){if(s=await a.reviewSession(),!s.success)return h(null),e(o.aq,{replace:!0}),void t(!1);h(s.userSessionData)}try{await F(),await M()}catch(w){const a=(0,d.Rb)("UsageManagement.handleInitialLoad.refreshPlatforms",w,"Fetching platforms");(0,c.r)("error",a)}t(!1)}catch(w){var a;if(401!==((null===w||void 0===w||null===(a=w.response)||void 0===a?void 0:a.status)||(null===w||void 0===w?void 0:w.status))){const e=(0,d.Rb)("UsageManagement.handleInitialLoad",w,"Handling initial load");(0,c.r)("error",e)}e(o.aq,{replace:!0}),t(!1)}}),[f,j,h,e,F,M]);(0,s.useEffect)((()=>{U()}),[U]);const Y=(0,s.useCallback)((async()=>{try{const a=new r.A;await a.logOut(),h(null),e(o.aq,{replace:!0})}catch(w){const a=(0,d.Rb)("UsageManagement.handleLogOut",w,"Logging out");(0,c.r)("error",a)}}),[h,e]),_=(0,s.useCallback)((e=>{D(e)}),[D]);return a?(0,b.jsx)(m.A,{}):w?(0,b.jsx)("div",{className:"max-w-full mx-auto px-4 py-8",children:(0,b.jsxs)("div",{className:"glass-card bg-gradient-to-r from-red-50 to-red-100 border border-red-200 rounded-3xl p-6 text-red-700 animate-slide-up",children:[(0,b.jsx)("h2",{className:"text-display text-lg font-semibold mb-2",children:"Error"}),(0,b.jsx)("p",{children:w})]})}):(0,b.jsx)(l.A,{handleLogOut:Y,children:(0,b.jsxs)("div",{className:"max-w-full mx-auto px-4 py-8",children:[(0,b.jsx)("div",{className:"flex justify-between items-center mb-8",children:(0,b.jsx)("h1",{className:"text-display text-2xl md:text-3xl font-bold text-apple-gray-900",children:"Usage Management"})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[(0,b.jsxs)("div",{className:"apple-card rounded-3xl shadow-apple p-6 border border-apple-gray-100 transition-shadow duration-300 hover:shadow-apple",children:[(0,b.jsx)("h3",{className:"text-apple-gray-600 text-sm font-medium mb-2",children:"Total Usage Records"}),(0,b.jsx)("p",{className:"text-3xl font-bold text-apple-gray-900",children:I})]}),(0,b.jsxs)("div",{className:"apple-card rounded-3xl shadow-apple p-6 border border-apple-gray-100 transition-shadow duration-300 hover:shadow-apple",children:[(0,b.jsx)("h3",{className:"text-apple-gray-600 text-sm font-medium mb-2",children:"Total Cost"}),(0,b.jsx)("p",{className:"text-3xl font-bold text-apple-gray-900",children:(0,g.vv)(O||0,{useSimpleFormat:!0})})]})]}),(0,b.jsx)("div",{className:"apple-card rounded-3xl shadow-apple p-6 border border-apple-gray-100 mb-8",children:(0,b.jsx)(k,{platforms:z,filters:S,onFilterChange:_})}),(0,b.jsxs)("div",{className:"apple-card rounded-3xl shadow-apple p-6 border border-apple-gray-100 mb-8",children:[(0,b.jsx)("h2",{className:"text-xl font-semibold text-apple-gray-900 mb-6",children:"Usage Records"}),N?(0,b.jsxs)("div",{className:"py-10 text-center",children:[(0,b.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-apple-blue-500"}),(0,b.jsx)("p",{className:"mt-2 text-apple-gray-600",children:"Loading usage data..."})]}):0===y.length?(0,b.jsx)("div",{className:"py-10 text-center",children:(0,b.jsx)("p",{className:"text-apple-gray-600",children:"No usage records found."})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v,{usageRecords:y,platforms:z}),A.pages>1&&(0,b.jsx)("div",{className:"mt-8",children:(0,b.jsx)(C,{currentPage:A.page,totalPages:A.pages,onPageChange:P})})]})]})]})})}},7766:(e,a,t)=>{t.d(a,{vv:()=>l});var s=t(2065);const l=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{currency:t="USD",locale:l="en-US",decimals:r=2,useSimpleFormat:n=!1}=a;return void 0===e||null===e?"$0.00":n?`$${(0,s.s)(Number(e),r)}`:new Intl.NumberFormat(l,{style:"currency",currency:t,minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}},8269:(e,a,t)=>{t.d(a,{A:()=>j});var s=t(5043),l=t(6767),r=t(4379),n=t(5258),i=t(7199),o=t(6376),d=t(7365),c=t(764),p=t(614),x=t(2983),m=t(7666),u=t(9493),h=t(2934),f=t(7348),g=t(4357),b=t(589),v=t(579);const j=e=>{let{children:a,handleLogOut:t}=e;const{userSession:j}
3=(0,f.jh)(),[y,N]=(0,s.useState)(!1),w=(0,l.zy)(),k=()=>N(!1);(0,s.useEffect)((()=>{N(!1)}),[w.pathname]),(0,s.useEffect)((()=>(document.body.style.overflow=y?"hidden":"",()=>{document.body.style.overflow=""})),[y]);const C=[{label:"Dashboard",link:h.pf,icon:(0,v.jsx)(r.A,{size:18}),external:!1},{label:"Platforms",link:h.vP,icon:(0,v.jsx)(n.A,{size:18}),external:!1},{label:"Usage",link:h.dZ,icon:(0,v.jsx)(i.A,{size:18}),external:!1},{label:"Billing",link:g.A.links.stripeCustomerPortalURL,icon:(0,v.jsx)(o.A,{size:18}),external:!0},{label:"Settings",link:h.Q0,icon:(0,v.jsx)(d.A,{size:18}),external:!1}],A=(e,a)=>{const t="apple-nav-item "+(s=e.link,w.pathname===s?"apple-nav-item-active":"");var s;return e.external?(0,v.jsxs)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:t,onClick:k,children:[(0,v.jsx)("span",{className:"mr-3",children:e.icon}),(0,v.jsx)("span",{className:"font-semibold",children:e.label}),(0,v.jsx)(c.A,{size:14,className:"ml-auto opacity-70"})]},a):(0,v.jsxs)("a",{href:e.link,className:t,onClick:k,children:[(0,v.jsx)("span",{className:"mr-3",children:e.icon}),(0,v.jsx)("span",{className:"font-semibold",children:e.label})]},a)};return(0,v.jsxs)("div",{className:"min-h-screen flex flex-col paper",children:[(0,v.jsxs)("header",{className:"glass-navbar py-3 px-3 sm:px-4 lg:px-6 flex items-center justify-between sticky top-0 z-40 animate-fade-in",children:[(0,v.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,v.jsx)("button",{onClick:()=>N(!y),className:"glass-button p-2 mr-2 sm:mr-3 rounded-xl transition-colors duration-200 lg:hidden","aria-label":y?"Close menu":"Open menu","aria-expanded":y,children:y?(0,v.jsx)(p.A,{size:20}):(0,v.jsx)(x.A,{size:20})}),(0,v.jsxs)("a",{href:h.pf,className:"flex items-center text-lg sm:text-xl font-bold text-ink text-display min-w-0 truncate",children:[(0,v.jsx)("img",{src:"/logo.webp",alt:"AICosts.ai Logo",className:"w-7 h-7 sm:w-8 sm:h-8 mr-2 flex-shrink-0"}),(0,v.jsx)("span",{className:"truncate",children:"AICosts.ai"})]})]}),(0,v.jsx)("div",{className:"flex items-center gap-2 lg:hidden",children:(0,v.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white font-semibold shadow-apple text-sm",style:{background:"linear-gradient(135deg, #1d1d1f 0%, #000 100%)"},title:null===j||void 0===j?void 0:j.name,children:(0,b.Vz)(null===j||void 0===j?void 0:j.name)})})]}),(0,v.jsxs)("div",{className:"flex flex-1 relative",children:[y&&(0,v.jsx)("div",{className:"fixed inset-0 bg-black/40 z-30 lg:hidden backdrop-blur-sm transition-opacity duration-300",onClick:k,"aria-hidden":!0}),(0,v.jsx)("aside",{className:`fixed lg:sticky top-0 lg:top-14 left-0 h-screen lg:h-[calc(100vh-56px)] z-40 lg:z-auto\n                      w-[86vw] max-w-[320px] lg:w-64 xl:w-72 flex-shrink-0\n                      transition-transform duration-300 ease-in-out\n                      bg-white/95 lg:bg-transparent\n                      backdrop-blur-xl lg:backdrop-blur-none\n                      border-r border-black/[0.07] lg:border-r-0\n                      shadow-2xl lg:shadow-none\n                      ${y?"translate-x-0":"-translate-x-full"} lg:translate-x-0\n                      overflow-y-auto`,"aria-label":"Primary navigation",children:(0,v.jsxs)("div",{className:"flex flex-col h-full",children:[(0,v.jsxs)("div",{className:"flex items-center justify-between px-4 py-4 border-b border-black/[0.06] lg:hidden",children:[(0,v.jsxs)("span",{className:"flex items-center font-bold text-ink text-display",children:[(0,v.jsx)("img",{src:"/logo.webp",alt:"",className:"w-7 h-7 mr-2","aria-hidden":!0}),"AICosts.ai"]}),(0,v.jsx)("button",{onClick:k,className:"p-2 rounded-xl text-ink-soft hover:bg-black/5","aria-label":"Close menu",children:(0,v.jsx)(p.A,{size:18})})]}),(0,v.jsxs)("nav",{className:"flex-1 py-4 lg:py-6 overflow-y-auto",children:[(0,v.jsx)("ul",{className:"space-y-1 lg:space-y-2 px-3 lg:px-2",children:C.map(((e,a)=>(0,v.jsx)("li",{children:A(e,a)},a)))}),(0,v.jsx)("div",{className:"px-3 lg:px-2 mt-6",children:(0,v.jsxs)("div",{className:"glass-card p-4 lg:p-5 rounded-2xl",children:[(0,v.jsx)("h4",{className:"text-sm font-bold text-ink mb-1.5",children:"Need help?"}),(0,v.jsx)("p",{className:"text-xs text-ink-soft mb-3 leading-snug",children:"Contact our support team for any questions."}),(0,v.jsxs)("a",{href:`mailto:${g.A.emails.support}`,className:"apple-button-primary text-xs flex items-center justify-center py-2.5 w-full",children:[(0,v.jsx)(m.A,{size:14,className:"mr-2"}),"Contact Support"]})]})})]}),(0,v.jsx)("div",{className:"p-3 lg:p-4 border-t border-black/[0.06] flex-shrink-0",children:(0,v.jsxs)("div",{className:"flex items-center gap-3",children:[(0,v.jsx)("div",{className:"w-9 h-9 rounded-full flex items-center justify-center text-white font-semibold shadow-apple text-sm flex-shrink-0",style:{background:"linear-gradient(135deg, #1d1d1f 0%, #000 100%)"},children:(0,b.Vz)(null===j||void 0===j?void 0:j.name)}),(0,v.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,v.jsx)("p",{className:"font-semibold text-ink text-sm truncate",children:null===j||void 0===j?void 0:j.name}),(0,v.jsx)("p",{className:"text-xs text-ink-soft truncate",children:null===j||void 0===j?void 0:j.email})]}),(0,v.jsx)("button",{onClick:t,className:"p-2 text-ink-soft hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors flex-shrink-0",title:"Log Out","aria-label":"Log out",children:(0,v.jsx)(u.A,{size:18})})]})})]})}),(0,v.jsx)("main",{className:"flex-1 min-w-0 relative overflow-x-hidden",children:(0,v.jsx)("div",{className:"animate-fade-in",children:a})})]})]})}}}]);
4//# sourceMappingURL=398.11636798.chunk.js.map
5//# debugId=24f6c447-b1e6-58f7-a3bc-8fab92e47b05

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.