PageSourceSearch

https://transcripthq.io/_next/static/chunks/9254e541055830a4.js?dpl=dpl_8aZW4f2waFkkDCY9xhkm5E3kzC6P

js transcripthq.io collected 2026-10-02 01:03:46 UTC 24,520 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return d},getImageProps:function(){return c}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let i=e.r(55682),n=e.r(8927),o=e.r(5500),l=i._(e.r(1948));function c(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=o.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},16799,e=>{"use strict";let t={appName:"TranscriptHQ",appDescription:"Extract word-for-word transcripts in bulk from YouTube, TikTok, Twitter & more. AI-powered transcription with noise reduction, 100+ language translation, and 95% accuracy. Simple API, credit-based pricing.",domainName:"transcripthq.io",mailgun:{subdomain:"mg",fromNoReply:"TranscriptHQ <[email protected]>",fromAdmin:"TranscriptHQ Support <[email protected]>"},subscriptionPlans:[{id:"free",name:"Free",price:0,monthlyCredits:0,pricePerMin:0,features:["3 free credits on signup","YouTube captions = 1 credit flat","API Access","Playground Access","30 req/min rate limit","1 concurrent request","Community support"],rateLimit:30,concurrent:1},{id:"starter",name:"Starter",price:5,yearlyPrice:48,monthlyCredits:1e3,pricePerMin:.005,features:["1,000 credits/month","YouTube captions = 1 credit flat","API Access","Playground Access","100 req/min rate limit","2 concurrent requests","Email support","Priority queue"],rateLimit:100,concurrent:2,topUpPrice:.006,polarProductId:{monthly:"1f545a09-a697-4565-a38b-7302b4a53abb",yearly:"85c4fc54-fd95-4542-9ffb-f068edf81bc5"},polarCheckoutUrl:{monthly:"https://buy.polar.sh/polar_cl_aBCr8XrzjhtVSm9I8KzuDHNmfPuXIjMgSRTjP47fGSd",yearly:"https://buy.polar.sh/polar_cl_c3yxdpKXnEGp62uvocbFAKp1iv23GFrXabR6P3BsCvb"}},{id:"pro",name:"Pro",price:15,yearlyPrice:144,monthlyCredits:4e3,pricePerMin:.00375,popular:!0,features:["4,000 credits/month","YouTube captions = 1 credit flat","API Access","Playground Access","300 req/min rate limit","3 concurrent requests","Word-level timestamps","Translation (100+ languages)","Audio noise reduction","Priority support"],rateLimit:300,concurrent:3,topUpPrice:.005,polarProductId:{monthly:"8f4383cd-3b5a-4427-8787-41752fced13f",yearly:"a7b88d3e-9110-4af7-a971-ef33d4e8b33e"},polarCheckoutUrl:{monthly:"https://buy.polar.sh/polar_cl_mlNSAVoTGZ5hiG430xVnWEZ4ejF3VjZGJ8Jdq1GkpTc",yearly:"https://buy.polar.sh/polar_cl_GSWIkyxNNRvvkeJk1F49mc5rbsEvDJ2Djrg3i3UFhKL"}},{id:"business",name:"Business",price:49,yearlyPrice:470,monthlyCredits:15e3,pricePerMin:.00327,bestValue:!0,features:["15,000 credits/month","YouTube captions = 1 credit flat","API Access","Playground Access","500 req/min rate limit","5 concurrent requests","All Pro features","Custom webhook integrations","Dedicated support"],rateLimit:500,concurrent:5,topUpPrice:.004,polarProductId:{monthly:"d5e1acd6-a344-497f-ad22-b60861a50bad",yearly:"a70a2c13-11b7-401a-8991-8040b10fcd7b"},polarCheckoutUrl:{monthly:"https://buy.polar.sh/polar_cl_TptebDq1Iq2YcNrUIujFTaaWhPR5bmbYF7hEx37Xdqb",yearly:"https://buy.polar.sh/polar_cl_gQlARxCOOMImfcxTmRIBrk5KRSVhgYw2e3ore11NImy"}},{id:"enterprise",name:"Enterprise",price:null,monthlyCredits:null,features:["Custom credit allocation","500 req/min rate limit","Unlimited concurrent requests","All Business features","Custom SLA","Dedicated account manager","On-premise deployment option"],rateLimit:500,concurrent:null}],creditPackages:[{id:"small",credits:500,price:3,pricePerCredit:.006,polarProductId:"f9f73f18-9569-437e-ac79-9aa00415f549",polarCheckoutUrl:"https://buy.polar.sh/polar_cl_f7bGWzbBPemtDu67zJULMfz7mHQAHMKABW6Qs2Y0K5P"},{id:"medium",credits:1e3,price:5,pricePerCredit:.005,popular:!0,polarProductId:"09433e07-f0a8-4f96-af36-cbb83176a28b",polarCheckoutUrl:"https://buy.polar.sh/polar_cl_UjeApc1L5HuPTjQYJxUxgsSZ4EDzuFsKkdmQm0nPNFX"},{id:"large",credits:2500,price:10,pricePerCredit:.004,bestValue:!0,polarProductId:"ee677b5b-c8d5-4339-a7b5-3584c2ac2c69",polarCheckoutUrl:"https://buy.polar.sh/polar_cl_ui6nyh2P0cFgNbRyEZmkpzoVaeDte6FCKcKfL3do7fE"}],polarCustomerPortal:"https://polar.sh/transcripthq/portal",freeCredits:3,apiUrl:e.i(47167).default.env.TRANSCRIPT_API_URL||"https://api.transcripthq.io",supportedServices:[{id:"youtube",name:"YouTube",enabled:!0,description:"Extract transcripts from YouTube videos, playlists, or channels"}],features:[{title:"Bulk Extraction",description:"Extract transcripts from multiple items, entire playlists, or whole channels in a single API call"},{title:"Timestamped Segments",description:"Get precise timestamps for every segment, perfect for navigation and search indexing"},{title:"Multi-Language Support",description:"Automatically detect and translate transcripts from content in any language to English"},{title:"Parallel Processing",description:"Process hundreds of items concurrently with our distributed infrastru
1cture"},{title:"Simple API",description:"RESTful API with clear endpoints. Get started with a single POST request"},{title:"Credit-Based Billing",description:"Pay only for what you use. 1 credit = 1 transcript extraction"}]};e.s(["default",0,t])},78917,e=>{"use strict";let t=(0,e.i(75254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>t],78917)},75822,e=>{"use strict";let t=(0,e.i(75254).default)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);e.s(["Coins",()=>t],75822)},64659,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],64659)},31343,e=>{"use strict";let t=(0,e.i(75254).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",()=>t],31343)},84614,e=>{"use strict";let t=(0,e.i(75254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>t],84614)},34161,e=>{"use strict";let t=(0,e.i(75254).default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);e.s(["Key",()=>t],34161)},78583,e=>{"use strict";let t=(0,e.i(75254).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",()=>t],78583)},73375,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>t],73375)},27516,e=>{"use strict";let t=(0,e.i(75254).default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["History",()=>t],27516)},75254,e=>{"use strict";var t=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:o="",children:l,iconNode:c,...d},u)=>(0,t.createElement)("svg",{ref:u,...a,width:r,height:r,stroke:e,strokeWidth:n?24*Number(i)/Number(r):i,className:s("lucide",o),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),n=(e,a)=>{let n=(0,t.forwardRef)(({className:n,...o},l)=>(0,t.createElement)(i,{ref:l,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...o}));return n.displayName=r(e),n};e.s(["default",()=>n],75254)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},48425,e=>{"use strict";var t=e.i(71645);e.i(74080);var r=e.i(91918),s=e.i(43476),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{let i=(0,r.createSlot)(`Primitive.${a}`),n=t.forwardRef((e,t)=>
1{let{asChild:r,...n}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(r?i:a,{...n,ref:t})});return n.displayName=`Primitive.${a}`,{...e,[a]:n}},{});e.s(["Primitive",()=>a])},34620,e=>{"use strict";var t=e.i(71645),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},81140,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:s=!0}={}){return function(t){if(e?.(t),!1===s||!t.defaultPrevented)return r?.(t)}}"undefined"!=typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},69340,e=>{"use strict";var t=e.i(71645),r=e.i(34620);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var s=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function a({prop:e,defaultProp:r,onChange:a=()=>{},caller:i}){let[n,o,l]=function({defaultProp:e,onChange:r}){let[a,i]=t.useState(e),n=t.useRef(a),o=t.useRef(r);return s(()=>{o.current=r},[r]),t.useEffect(()=>{n.current!==a&&(o.current?.(a),n.current=a)},[a,n]),[a,i,o]}({defaultProp:r,onChange:a}),c=void 0!==e,d=c?e:n;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,i])}return[d,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[c,e,o,l])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>a],69340)},35804,e=>{"use strict";var t=e.i(71645),r=e.i(34620);function s(e){let[s,a]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,s;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,s=t.blockSize}else r=e.offsetWidth,s=e.offsetHeight;a({width:r,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}a(void 0)},[e]),s}e.s(["useSize",()=>s])},30030,e=>{"use strict";var t=e.i(71645),r=e.i(43476);function s(e,a=[]){let i=[],n=()=>{let r=i.map(e=>t.createContext(e));return function(s){let a=s?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return n.scopeName=e,[function(s,a){let n=t.createContext(a);n.displayName=s+"Context";let o=i.length;i=[...i,a];let l=s=>{let{scope:a,children:i,...l}=s,c=a?.[e]?.[o]||n,d=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(c.Provider,{value:d,children:i})};return l.displayName=s+"Provider",[l,function(r,i){let l=i?.[e]?.[o]||n,c=t.useContext(l);if(c)return c;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${s}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let s=()=>{let s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=s.reduce((t,{useScope:r,scopeName:s})=>{let a=r(e)[`__scope${s}`];return{...t,...a}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:a}),[a])}};return s.scopeName=r.scopeName,s}(n,...a)]}e.s(["createContextScope",()=>s])},61659,e=>{"use strict";let t=(0,e.i(75254).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",()=>t],61659)},39616,e=>{"use strict";let t=(0,e.i(75254).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",()=>t],39616)},55838,(e,t,r)=>{"use strict";var s=e.r(71645),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,n=s.useEffect,o=s.useLayoutEffect,l=s.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),s=i({inst:{value:r,getSnapshot:t}}),a=s[0].inst,d=s[1];
1return o(function(){a.value=r,a.getSnapshot=t,c(a)&&d({inst:a})},[e,r,t]),n(function(){return c(a)&&d({inst:a}),e(function(){c(a)&&d({inst:a})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:d},2239,(e,t,r)=>{"use strict";t.exports=e.r(55838)},28766,e=>{"use strict";var t=e.i(43476),r=e.i(17255),s=e.i(18566),a=e.i(22016),i=e.i(57688),n=e.i(3746),o=e.i(75254);let l=(0,o.default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);var c=e.i(34161),d=e.i(61659),u=e.i(27516),f=e.i(31343),p=e.i(78583),m=e.i(39616);let h=(0,o.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var x=e.i(73375),y=e.i(63059),g=e.i(78917),b=e.i(54469),v=e.i(71645),w=e.i(16799);let j=[{name:"Dashboard",href:"/dashboard",icon:l},{name:"Playground",href:"/dashboard/playground",icon:f.Play},{name:"Jobs",href:"/dashboard/jobs",icon:u.History},{name:"API Keys",href:"/dashboard/api-keys",icon:c.Key},{name:"Billing",href:"/dashboard/billing",icon:d.CreditCard},{name:"Settings",href:"/dashboard/settings",icon:m.Settings}],N=[{name:"Documentation",href:"/docs",icon:p.FileText,external:!1}];function k(){let e=(0,s.usePathname)(),[o,l]=(0,v.useState)(!1);return(0,t.jsxs)("aside",{className:(0,n.cn)("flex flex-col h-full bg-background border-r border-border/40 transition-all duration-200 ease-out",o?"w-[68px]":"w-[240px]"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 h-16 border-b border-border/40",children:[o?(0,t.jsx)(a.default,{href:"/dashboard",className:"mx-auto",children:(0,t.jsx)(i.default,{src:"/icon.png",alt:w.default.appName,width:28,height:28,className:"rounded-md"})}):(0,t.jsxs)(a.default,{href:"/dashboard",className:"flex items-center gap-2.5 group",children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(i.default,{src:"/icon.png",alt:w.default.appName,width:28,height:28,className:"rounded-md"})}),(0,t.jsx)("span",{className:"font-semibold text-[15px] tracking-tight",children:w.default.appName})]}),!o&&(0,t.jsx)(b.Button,{variant:"ghost",size:"icon",onClick:()=>l(!0),className:"h-8 w-8 text-muted-foreground hover:text-foreground",children:(0,t.jsx)(x.ChevronLeft,{className:"h-4 w-4"})})]}),o&&(0,t.jsx)("div",{className:"px-2.5 py-2",children:(0,t.jsx)(b.Button,{variant:"ghost",size:"icon",onClick:()=>l(!1),className:"w-full h-9 text-muted-foreground hover:text-foreground",children:(0,t.jsx)(y.ChevronRight,{className:"h-4 w-4"})})}),(0,t.jsxs)("nav",{className:"flex-1 px-2.5 py-3 space-y-0.5 overflow-y-auto",children:[j.map(r=>{let s=e===r.href||"/dashboard"!==r.href&&e.startsWith(r.href);return(0,t.jsxs)(a.default,{href:r.href,className:(0,n.cn)("flex items-center gap-3 px-3 py-2.5 rounded-lg text-[13px] font-medium transition-all duration-150",s?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-muted hover:text-foreground",o&&"justify-center px-0"),title:o?r.name:void 0,children:[(0,t.jsx)(r.icon,{className:(0,n.cn)("h-[18px] w-[18px] flex-shrink-0",s&&"text-primary-foreground")}),!o&&(0,t.jsx)("span",{children:r.name})]},r.name)}),!o&&(0,t.jsx)("div",{className:"py-3",children:(0,t.jsx)("div",{className:"h-px bg-border/60"})}),o&&(0,t.jsx)("div",{className:"h-3"}),N.map(r=>{let s=e===r.href||e.startsWith(r.href);return(0,t.jsxs)(a.default,{href:r.href,className:(0,n.cn)("flex items-center gap-3 px-3 py-2.5 rounded-lg text-[13px] font-medium transition-all duration-150",s?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground",o&&"justify-center px-0"),title:o?r.name:void 0,children:[(0,t.jsx)(r.icon,{className:"h-[18px] w-[18px] flex-shrink-0"}),!o&&(0,t.jsxs)("span",{className:"flex-1 flex items-center justify-between",children:[r.name,r.external&&(0,t.jsx)(g.ExternalLink,{className:"h-3 w-3 opacity-50"})]})]},r.name)})]}),(0,t.jsx)("div",{className:"px-2.5 py-3 border-t border-border/40",children:(0,t.jsxs)("button",{onClick:()=>(0,r.signOut)({callbackUrl:"/"}),className:(0,n.cn)("flex items-center gap-3 px-3 py-2.5 rounded-lg text-[13px] font-medium w-full text-muted-foreground hover:bg-muted hover:text-foreground transition-all duration-150",o&&"justify-center px-0"),title:o?"Sign out":void 0,children:[(0,t.jsx)(h,{className:"h-[18px] w-[18px] flex-shrink-0"}),!o&&(0,t.jsx)("span",{children:"Sign out"})]})})]})}var P=e.i(30030),S=e.i(30207),C=e.i(34620),A=e.i(48425),E=e.i(2239);function I(){return()=>{}}var M="Avatar",[L,T]=(0,P.createContextScope)(M),[R,_]=L(M),q=v.forwardRef((e,r)=>{let{__scopeAvatar:s,...a}=e,[i,n]=v.useState("idle");return(0,t.jsx)(R,{scope:s,imageLoadingStatus:i,onImageLoadingStatusChange:n,children:(0,t.jsx)(A.Primitive.span,{...a,ref:r})})});q.displayName=M;var D="AvatarImage",U=v.forwardRef((e,r)=>{let{__scopeAvatar:s,src:a,onLoadingStatusChange:i=()=>{},...n}=e,o=_(D,s),l=function(e,{referrerPolicy:t,crossOrigin:r}){let s=(0,E.useSyncExternalStore)(I,()=>!0,()=>
1!1),a=v.useRef(null),i=s?(a.current||(a.current=new window.Image),a.current):null,[n,o]=v.useState(()=>H(i,e));return(0,C.useLayoutEffect)(()=>{o(H(i,e))},[i,e]),(0,C.useLayoutEffect)(()=>{let e=e=>()=>{o(e)};if(!i)return;let s=e("loaded"),a=e("error");return i.addEventListener("load",s),i.addEventListener("error",a),t&&(i.referrerPolicy=t),"string"==typeof r&&(i.crossOrigin=r),()=>{i.removeEventListener("load",s),i.removeEventListener("error",a)}},[i,r,t]),n}(a,n),c=(0,S.useCallbackRef)(e=>{i(e),o.onImageLoadingStatusChange(e)});return(0,C.useLayoutEffect)(()=>{"idle"!==l&&c(l)},[l,c]),"loaded"===l?(0,t.jsx)(A.Primitive.img,{...n,ref:r,src:a}):null});U.displayName=D;var z="AvatarFallback",B=v.forwardRef((e,r)=>{let{__scopeAvatar:s,delayMs:a,...i}=e,n=_(z,s),[o,l]=v.useState(void 0===a);return v.useEffect(()=>{if(void 0!==a){let e=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(e)}},[a]),o&&"loaded"!==n.imageLoadingStatus?(0,t.jsx)(A.Primitive.span,{...i,ref:r}):null});function H(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}B.displayName=z;let O=v.forwardRef(({className:e,...r},s)=>(0,t.jsx)(q,{ref:s,className:(0,n.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));O.displayName=q.displayName;let K=v.forwardRef(({className:e,...r},s)=>(0,t.jsx)(U,{ref:s,className:(0,n.cn)("aspect-square h-full w-full",e),...r}));K.displayName=U.displayName;let F=v.forwardRef(({className:e,...r},s)=>(0,t.jsx)(B,{ref:s,className:(0,n.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));F.displayName=B.displayName;var W=e.i(86516),$=e.i(75822),V=e.i(84614),Y=e.i(64659);let G={"/dashboard":"Overview","/dashboard/playground":"Playground","/dashboard/jobs":"Jobs","/dashboard/api-keys":"API Keys","/dashboard/billing":"Billing","/dashboard/settings":"Settings"};function J(){var e;let{data:i}=(0,r.useSession)(),o=(0,s.usePathname)();return(0,t.jsxs)("header",{className:"h-16 border-b border-border/40 bg-background flex items-center justify-between px-6",children:[(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)("h1",{className:"text-[15px] font-medium text-foreground",children:(()=>{if(G[o])return G[o];for(let[e,t]of Object.entries(G))if(o.startsWith(e)&&"/dashboard"!==e)return t;return"Dashboard"})()})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(a.default,{href:"/dashboard/billing",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-muted/60 hover:bg-muted transition-colors cursor-pointer border border-border/40",children:[(0,t.jsx)($.Coins,{className:"h-3.5 w-3.5 text-primary"}),(0,t.jsx)("span",{className:"text-[13px] font-medium",children:(0,n.formatCredits)(i?.user?.credits||0)}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"credits"})]})}),(0,t.jsxs)(W.DropdownMenu,{children:[(0,t.jsx)(W.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{className:"flex items-center gap-2 p-1.5 rounded-full hover:bg-muted transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:[(0,t.jsxs)(O,{className:"h-8 w-8 border border-border/40",children:[(0,t.jsx)(K,{src:i?.user?.image}),(0,t.jsx)(F,{className:"text-xs font-medium bg-primary/10 text-primary",children:(e=i?.user?.name)?e.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"U"})]}),(0,t.jsx)(Y.ChevronDown,{className:"h-3.5 w-3.5 text-muted-foreground"})]})}),(0,t.jsxs)(W.DropdownMenuContent,{align:"end",className:"w-60",children:[(0,t.jsx)(W.DropdownMenuLabel,{className:"font-normal",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:i?.user?.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:i?.user?.email})]})}),(0,t.jsx)(W.DropdownMenuSeparator,{}),(0,t.jsx)(W.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(a.default,{href:"/dashboard",className:"cursor-pointer",children:[(0,t.jsx)(V.User,{className:"mr-2 h-4 w-4"}),"Dashboard"]})}),(0,t.jsx)(W.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(a.default,{href:"/dashboard/api-keys",className:"cursor-pointer",children:[(0,t.jsx)(c.Key,{className:"mr-2 h-4 w-4"}),"API Keys"]})}),(0,t.jsx)(W.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(a.default,{href:"/dashboard/settings",className:"cursor-pointer",children:[(0,t.jsx)(m.Settings,{className:"mr-2 h-4 w-4"}),"Settings"]})}),(0,t.jsx)(W.DropdownMenuSeparator,{}),(0,t.jsxs)(W.DropdownMenuItem,{onClick:()=>(0,r.signOut)({callbackUrl:"/"}),className:"cursor-pointer text-destructive focus:text-destructive focus:bg-destructive/10",children:[(0,t.jsx)(h,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]})]})]})}function Q({children:e}){let{data:a,status:i}=(0,r.useSession)();return"loading"===i?(0,t.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,t.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):(a||(0,s.redirect)("/auth/signin"),(0,t.jsxs)("div",{className:"flex h-screen bg-background",children:[(0,t.jsx)(k,{}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,t.jsx)(J,{}),(0,t.jsx)("main",{className:"flex-1 overflow-auto p-6",children:e})]})]}))}e.s(["default",()=>Q],28766)}]);

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.