PageSourceSearch

https://mp3totext.io/_next/static/chunks/app/layout-c2b5ba0df2a344b7.js

js mp3totext.io collected 2026-10-09 22:54:33 UTC 50,781 bytes, 8 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{21345:(e,t,a)=>{"use strict";a.d(t,{Cf:()=>u,Es:()=>x,HM:()=>d,L3:()=>h,c7:()=>m,lG:()=>l,rr:()=>p});var r=a(54568);a(7620);var s=a(55096),n=a(36645),i=a(417);function l({...e}){return(0,r.jsx)(s.bL,{"data-slot":"dialog",...e})}function o({...e}){return(0,r.jsx)(s.ZL,{"data-slot":"dialog-portal",...e})}function d({...e}){return(0,r.jsx)(s.bm,{"data-slot":"dialog-close",...e})}function c({className:e,...t}){return(0,r.jsx)(s.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 backdrop-blur-sm",e),...t})}function u({className:e,children:t,showCloseButton:a=!0,overlayClassName:l,...d}){return(0,r.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,r.jsx)(c,{className:l}),(0,r.jsxs)(s.UC,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...d,children:[t,a&&(0,r.jsxs)(s.bm,{"data-slot":"dialog-close",className:"cursor-pointer absolute top-4 right-4 rounded-full p-1 opacity-70 transition-all hover:opacity-100 hover:bg-slate-100 disabled:pointer-events-none text-neutral-500 dark:text-neutral-400 dark:hover:bg-slate-800 focus:outline-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,r.jsx)(n.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})}function x({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function h({className:e,...t}){return(0,r.jsx)(s.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-none font-semibold",e),...t})}function p({className:e,...t}){return(0,r.jsx)(s.VY,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...t})}},23522:(e,t,a)=>{"use strict";a.d(t,{bs:()=>l,qC:()=>n});var r=a(48820),s=a(99534);let n=["user-credits"];async function i(){let e=await (0,s.nr)("/api/user/credits",{cache:"no-store"}),t=await e.json().catch(()=>null);if(!e.ok||!t?.success||null===t.data){var a;throw Error((a=e.status,t?.error?.message?t.error.message:401===a?"Authentication required":403===a?"Access denied":`Request failed with status ${a}`))}return t.data}function l(e){let{enabled:t=!0,initialData:a=null}=e??{},{data:s,isLoading:l,error:o,refetch:d}=(0,r.I)({queryKey:n,queryFn:i,enabled:t,initialData:a??void 0,staleTime:3e4,retry:0});return{data:s??null,loading:l,error:o instanceof Error?o.message:null,reload:d}}},29056:(e,t,a)=>{"use strict";a.d(t,{AM:()=>i,Wv:()=>l,dT:()=>d,hl:()=>o});var r=a(54568);a(7620);var s=a(64023),n=a(417);function i({...e}){return(0,r.jsx)(s.bL,{"data-slot":"popover",...e})}function l({...e}){return(0,r.jsx)(s.l9,{"data-slot":"popover-trigger",...e})}function o({className:e,align:t="center",sideOffset:a=4,...i}){return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{"data-slot":"popover-content",align:t,sideOffset:a,className:(0,n.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...i})})}function d({...e}){return(0,r.jsx)(s.Mz,{"data-slot":"popover-anchor",...e})}},32220:(e,t,a)=>{"use strict";a.d(t,{Ym:()=>r.Y});var r=a(17876);a(81616),a(7620),a(86776)},40555:(e,t,a)=>{"use strict";a.d(t,{b:()=>l});var r=a(54568),s=a(65587),n=a.n(s),i=a(73756);function l({locale:e,variant:t="dark",hideTextOnMobile:a=!0,textSize:s="md",href:l,brandName:o,homeAriaLabel:d,supportLabel:c}){let u=l??("en"===e?"/":`/${e}`);return(0,r.jsx)("div",{className:"flex items-center shrink-0",children:(0,r.jsx)(n(),{href:u,className:"transition-all duration-300 group cursor-pointer",suppressHydrationWarning:!0,"aria-label":d,children:(0,r.jsx)(i.Rz,{brandName:o,supportLabel:c,variant:t,textSize:s,hideOnMobile:a})})})}},41966:(e,t,a)=>{"use strict";a.d(t,{j:()=>m,zN:()=>p,dr:()=>c,QC:()=>h,HN:()=>u,Jo:()=>d,Vm:()=>x});
1let r="transvio.anonymous.transcription.access_tokens",s="transvio.transcription.upload_preferences",n="transvio.transcription.pending_claim";function i(){return void 0!==window.localStorage}function l(){if(!i())return{};try{let e=window.localStorage.getItem(r);if(!e)return{};let t=JSON.parse(e);return t&&"object"==typeof t?t:{}}catch{return{}}}function o(e){if(i())try{window.localStorage.setItem(r,JSON.stringify(e))}catch{}}function d(e,t){e&&t&&(!function(e,t){if(!e||!t)return;let a=l();a[e]=t,o(a)}(e,t),function(e){if(i()&&e.publicId&&e.anonymousAccessToken)try{window.localStorage.setItem(n,JSON.stringify(e))}catch{}}({publicId:e,anonymousAccessToken:t,createdAt:Date.now()}))}function c(e){return l()[e]??null}function u(e){if(!e)return;let t=l();e in t&&(delete t[e],o(t))}function m(e,t){let a=`/transcriptions/${t}`;return"en"===e?a:`/${e}${a}`}function x(e,t){if(!e)return;let a=function(){if(!i())return{};try{let e=window.localStorage.getItem(s);if(!e)return{};let t=JSON.parse(e);if(!t||"object"!=typeof t)return{};return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,{aiSummary:t?.aiSummary==="general"?"general":"off",aiMindMap:t?.aiMindMap==="general"?"general":"off",..."string"==typeof t?.fileName&&t.fileName.trim()?{fileName:t.fileName.trim()}:{}}]))}catch{return{}}}();a[e]=t;if(i())try{window.localStorage.setItem(s,JSON.stringify(a))}catch{}}function h(){if(!i())return null;try{let e=window.localStorage.getItem(n);if(!e)return null;let t=JSON.parse(e);if(!t||"object"!=typeof t||"string"!=typeof t.publicId||"string"!=typeof t.anonymousAccessToken||"number"!=typeof t.createdAt||Date.now()-t.createdAt>864e5)return window.localStorage.removeItem(n),null;return t}catch{return window.localStorage.removeItem(n),null}}function p(){if(i())try{window.localStorage.removeItem(n)}catch{}}},49063:(e,t,a)=>{"use strict";a.d(t,{AppShell:()=>ez});var r=a(54568),s=a(7620),n=a(68728),i=a(65587),l=a.n(i),o=a(79748),d=a(36645),c=a(17212),u=a(417);function m({loginText:e,signUpText:t,onLoginClick:a,onSignUpClick:s,variant:n="dark",layout:i="horizontal",className:l,showSignUp:o=!0}){return(0,r.jsxs)("div",{className:(0,u.cn)("flex items-center","horizontal"===i?"gap-3":"flex-col gap-2 w-full",l),children:[(0,r.jsx)("button",{onClick:a,className:(0,u.cn)("inline-flex items-center justify-center rounded-lg text-sm transition-all duration-200 cursor-pointer","vertical"===i&&"w-full",o?"px-4 py-2 font-medium text-slate-700 hover:text-primary hover:bg-primary/5":"bg-primary px-5 py-2.5 font-semibold text-white shadow-sm hover:bg-primary/90 hover:shadow-md hover:scale-[1.02] active:scale-[0.98]"),children:e}),o&&(0,r.jsx)("button",{onClick:s,className:(0,u.cn)("inline-flex items-center justify-center rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition-all duration-200 hover:bg-primary/90 hover:shadow-md hover:scale-[1.02] active:scale-[0.98] cursor-pointer","vertical"===i&&"w-full"),children:t})]})}var x=a(40555),h=a(34041),p=a(22277);function f({...e}){return(0,r.jsx)(p.bL,{"data-slot":"accordion",...e})}function g({className:e,...t}){return(0,r.jsx)(p.q7,{"data-slot":"accordion-item",className:(0,u.cn)("border-b last:border-b-0",e),...t})}function b({className:e,children:t,...a}){return(0,r.jsx)(p.Y9,{className:"flex",children:(0,r.jsxs)(p.l9,{"data-slot":"accordion-trigger",className:(0,u.cn)("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,(0,r.jsx)(h.A,{className:"pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"})]})})}function v({className:e,children:t,...a}){return(0,r.jsx)(p.UC,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:(0,r.jsx)("div",{className:(0,u.cn)("pt-0 pb-4",e),children:t})})}let j=[{id:"mp3-to-srt",path:"/mp3-to-srt",labelKey:"mp3ToSrt"},{id:"m4a-to-text",path:"/m4a-to-text",labelKey:"m4aToText"}],y="block w-full cursor-pointer rounded-md px-3.5 py-2.5 text-sm font-medium text-slate-600 transition-colors duration-150 hover:text-primary";function w(e,t){return j.map(a=>{var r;return{id:a.id,href:(r=a.path,"en"===e?r:`/${e}${r}`),label:t.items[a.labelKey]}})}function N(e,t){return(t.replace(/\/$/,"")||"/")===(e.href.replace(/\/$/,"")||"/")}function k({locale:e,menuLabel:t,triggerAriaLabel:a,labels:n,activePathname:i}){let o=(0,s.useId)(),d=(0,s.useRef)(null),c=(0,s.useRef)(null),[m,x]=(0,s.use
1State)(!1),p=w(e,n),f=(0,s.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]),g=(0,s.useCallback)(()=>{f(),x(!0)},[f]),b=(0,s.useCallback)(()=>{f(),c.current=setTimeout(()=>{x(!1)},150)},[f]),v=(0,s.useCallback)(()=>{f(),x(e=>!e)},[f]);return(0,s.useEffect)(()=>{if(!m)return;let e=e=>{d.current?.contains(e.target)||x(!1)},t=e=>{"Escape"===e.key&&x(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[m]),(0,s.useEffect)(()=>()=>{f()},[f]),(0,r.jsxs)("div",{ref:d,className:"relative",onMouseEnter:g,onMouseLeave:b,children:[(0,r.jsxs)("button",{type:"button",className:(0,u.cn)("inline-flex cursor-pointer items-center gap-1 rounded-lg px-3 py-2 text-sm font-medium text-slate-700 transition-all duration-200 hover:bg-primary/5 hover:text-primary",m&&"bg-primary/5 text-primary"),"aria-expanded":m,"aria-haspopup":"menu","aria-controls":o,"aria-label":a,onClick:v,children:[(0,r.jsx)("span",{children:t}),(0,r.jsx)(h.A,{className:(0,u.cn)("h-4 w-4 transition-transform duration-200",m&&"rotate-180"),"aria-hidden":"true"})]}),m?(0,r.jsx)("div",{id:o,role:"menu",className:"absolute left-0 top-full z-50 w-max min-w-[11.5rem] pt-1.5",onMouseEnter:g,onMouseLeave:b,children:(0,r.jsx)("div",{className:"rounded-lg border border-slate-200/90 bg-white p-1.5 shadow-md ring-1 ring-slate-900/[0.04]",children:p.map(e=>{let t=N(e,i);return(0,r.jsx)(l(),{href:e.href,role:"menuitem","aria-current":t?"page":void 0,className:y,onClick:()=>x(!1),children:e.label},e.id)})})}):null]})}function C({locale:e,menuLabel:t,labels:a,activePathname:s,onNavigate:n}){let i=w(e,a),o=i.some(e=>N(e,s));return(0,r.jsx)(f,{type:"single",collapsible:!0,className:"w-full",defaultValue:o?"tools":void 0,children:(0,r.jsxs)(g,{value:"tools",className:"border-0",children:[(0,r.jsx)(b,{className:"cursor-pointer rounded-lg px-3 py-2 text-sm font-medium text-slate-700 transition-all duration-200 hover:bg-primary/5 hover:text-primary hover:no-underline data-[state=open]:bg-primary/5 data-[state=open]:text-primary",children:t}),(0,r.jsx)(v,{className:"pb-0",children:(0,r.jsx)("div",{className:"space-y-0.5 pb-2 pl-2",children:i.map(e=>{let t=N(e,s);return(0,r.jsx)(l(),{href:e.href,"aria-current":t?"page":void 0,className:y,onClick:n,children:e.label},e.id)})})})]})})}function $({locale:e,labels:t,activePathname:a}){let s=w(e,t);return(0,r.jsx)(r.Fragment,{children:s.map(e=>{let t=N(e,a);return(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,"aria-current":t?"page":void 0,className:"group flex items-center py-1.5 text-sm font-medium text-slate-600 transition-colors duration-200 hover:text-brand-600",children:(0,r.jsx)("span",{children:e.label})})},e.id)})})}var S=a(46548),_=a(56242),A=a(29056),E=a(2939),M=a(73599),L=a(28465),I=a(92007);let z={"plan-reset":{group:"group/plan-reset",hover:"group-hover/plan-reset:block"},"pack-expiry":{group:"group/pack-expiry",hover:"group-hover/pack-expiry:block"}};function P({ariaLabel:e,tooltip:t,variant:a,className:s}){let{group:n,hover:i}=z[a];return(0,r.jsxs)("span",{className:(0,u.cn)("relative inline-flex",n,s),children:[(0,r.jsx)(I.A,{className:"size-3.5 shrink-0 text-slate-400","aria-label":e}),(0,r.jsx)("div",{role:"tooltip",className:(0,u.cn)("pointer-events-none absolute top-full right-0 z-50 mt-1 hidden w-max whitespace-nowrap rounded-md border border-slate-200/80 bg-white/95 px-2.5 py-1 text-xs font-normal text-slate-600 shadow-sm backdrop-blur-sm",i),children:t})]})}function T({label:e,used:t,total:a,className:s,labelSuffix:n}){let i=Math.min(100,Math.round(t/Math.max(a,1)*100));return(0,r.jsxs)("div",{className:(0,u.cn)("space-y-2",s),children:[(0,r.jsxs)("div",{className:"overflow-visible flex items-center gap-1.5",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-slate-700",children:e}),n]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-slate-100",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,children:(0,r.jsx)("div",{className:"h-full rounded-full bg-primary transition-all duration-300",style:{width:`${i}%`}})}),(0,r.jsxs)("span",{className:"shrink-0 text-xs tabular-nums text-slate-500",children:[i,"%"]})]})]})}function U({icon:e,label:t,value:a,used:s,total:n,footer:i,className:l}){let o="number"==typeof s&&"number"==typeof n&&n>0,d=o?Math.min(100,Math.round(s/n*100)):0;return(0,r.jsxs)("div",{className:(0,u.cn)("space-y-2",l),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:e}),(0,r.jsx)("span",{className:"text-sm font-medium text-slate-700",children:t})]}),(0,r.jsx)("div",{className:"shrink-0 text-sm font-medium tabular-nums text-slate-700",children:a})]}),o?(0,r.jsx)("div",{className:"ml-6 h-1.5 overflow-hidden rounded-full bg-slate-100",role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,children:(0,r.jsx)("div",{className:"h-full rounded-full bg-emerald-500 transition-all duration-300",style:{width:`${d}%`}})}):null,i?(0,r.jsx)("div",{className:"ml-6",children:i}):null]})}function O({used:e,total:t}){let a=Math.min(Math.max(0,e),t);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-slate-700",children:a}),(0,r.jsxs)("span",{className:"text-slate-400",children:["/",t]})]})}var q=a(81618),R=a(2402);
1function Q(e,t){return Object.entries(t).reduce((e,[t,a])=>e.replace(RegExp(`\\{${t}\\}`,"g"),String(a)),e)}function W(e,t){let a=(0,R.ck)(e);return"free"===a?t.free.badgeLabel:t.subscription.tierNames[a]}function D(e){let{minutesRemaining:t,minutesIncluded:a,minutesUsed:r}=e,s=t>a;return{hasCarryover:s,carryoverMinutes:s?t-a:0,progressUsed:s?0:r,progressTotal:s?t:a}}function F({entitlements:e,dictionary:t,onUpgrade:a}){let{freeDaily:s}=e,n=t.free;return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-slate-700",children:n.currentPlanLabel}),(0,r.jsx)("span",{className:"rounded-full bg-slate-100 px-2.5 py-0.5 text-xs font-semibold text-slate-700",children:n.badgeLabel})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(U,{icon:(0,r.jsx)(E.A,{className:"size-4","aria-hidden":"true"}),label:n.metrics.daily,value:(0,r.jsx)(O,{used:s.used,total:s.limit}),used:s.used,total:s.limit}),(0,r.jsx)(U,{icon:(0,r.jsx)(M.A,{className:"size-4","aria-hidden":"true"}),label:n.metrics.perFile,value:Q(n.perFileValue,{minutes:s.durationLimitMinutes})})]}),(0,r.jsx)(L.$,{type:"button",className:"w-full",onClick:a,children:n.upgrade})]})}function K({packUsage:e,dictionary:t,locale:a,withDivider:s=!1}){let n=t.subscription,i=(0,q.iQ)(e.minutesRemaining,a),l=(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-slate-700",children:[(0,r.jsx)("span",{children:Q(n.minutePackMinutesLeft,{remaining:i})}),(0,r.jsx)(P,{variant:"pack-expiry",ariaLabel:n.minutePackNeverExpiresHintAria,tooltip:n.minutePackNeverExpires})]});return s?(0,r.jsx)("div",{className:"overflow-visible border-t border-slate-100 pt-3",children:l}):(0,r.jsx)("div",{className:"overflow-visible",children:l})}function B({entitlements:e,dictionary:t,locale:a,onUpgrade:s}){let{packUsage:n}=e,i=t.credits;return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"border-b border-slate-100 pb-2",children:(0,r.jsx)("p",{className:"text-sm font-semibold text-foreground",children:i.title})}),(0,r.jsx)(K,{packUsage:n,dictionary:t,locale:a}),(0,r.jsx)(L.$,{type:"button",className:"w-full",onClick:s,children:i.buyMinutes})]})}function Y({subscriptionUsage:e,dictionary:t}){let a="year"===e.interval?t.interval.yearly:t.interval.monthly,s=W(e.planId,t);return(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-foreground",children:Q(t.subscription.planTitle,{tier:s})}),(0,r.jsx)("span",{className:"shrink-0 rounded-full bg-brand-50 px-2.5 py-0.5 text-xs font-semibold text-brand-700",children:a})]})}function J({subscriptionUsage:e,dictionary:t,locale:a}){let{progressUsed:s,progressTotal:n}=D(e),i=function(e,t,a){let{minutesRemaining:r,minutesIncluded:s,minutesUsed:n}=e,{hasCarryover:i}=D(e),l=t.subscription;return i?Q(l.minutesAvailableRemaining,{remaining:(0,q.iQ)(r,a)}):0===n?Q(l.minutesAvailable,{included:(0,q.iQ)(s,a)}):Q(l.minutesUsed,{used:(0,q.iQ)(n,a),included:(0,q.iQ)(s,a)})}(e,t,a),l=t.subscription;return(0,r.jsx)(T,{label:i,used:s,total:n,labelSuffix:e.periodReset?(0,r.jsx)(P,{variant:"plan-reset",ariaLabel:l.planResetsHintAria,tooltip:Q(l.planResetsOn,{date:(0,q.Bs)(e.periodReset,a)})}):null})}function H({subscriptionUsage:e,dictionary:t,locale:a,onUpgrade:s,showChangePlan:n}){return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(Y,{subscriptionUsage:e,dictionary:t}),(0,r.jsx)(J,{subscriptionUsage:e,dictionary:t,locale:a}),n?(0,r.jsx)(L.$,{type:"button",className:"w-full",onClick:s,children:t.subscription.changePlan}):null]})}function V({subscriptionUsage:e,packUsage:t,dictionary:a,locale:s,onUpgrade:n,showChangePlan:i}){let l=a.subscription;return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(Y,{subscriptionUsage:e,dictionary:a}),(0,r.jsx)(J,{subscriptionUsage:e,dictionary:a,locale:s}),(0,r.jsx)(K,{packUsage:t,dictionary:a,locale:s,withDivider:!0}),i?(0,r.jsx)(L.$,{type:"button",className:"w-full",onClick:n,children:l.changePlan}):null]})}function G({entitlements:e,dictionary:t,locale:a,onUpgrade:s}){if("free"===e.billingMode)return(0,r.jsx)(F,{entitlements:e,dictionary:t,onUpgrade:s});if("credits"===e.billingMode)return(0,r.jsx)(B,{entitlements:e,dictionary:t,locale:a,onUpgrade:s});let{subscriptionUsage:n,packUsage:i}=e,l="pro"!==(0,R.ck)(n.planId);return i?(0,r.jsx)(V,{subscriptionUsage:n,packUsage:i,dictionary:t,locale:a,onUpgrade:s,showChangePlan:l}):(0,r.jsx)(H,{subscriptionUsage:n,dictionary:t,locale:a,onUpgrade:s,showChangePlan:l})}var Z=a(81689),X=a(22142);function ee({entitlements:e,loading:t=!1,locale:a,dictionary:i}
1){let l=(0,n.jE)(),[o,d]=(0,s.useState)(!1),[c,m]=(0,s.useState)(!1),x=function(e,t,a){if(!e)return t.free.badgeLabel;if("subscription"===e.billingMode)return function(e,t){let{subscriptionUsage:a}=e,r=W(a.planId,t);return Q(t.subscription.badgeLabel,{tier:r})}(e,t);if("credits"===e.billingMode)return Q(t.credits.badgeLabel,{remaining:(0,q.iQ)(e.packUsage.minutesRemaining,a)});return t.free.badgeLabel}(e,i,a),p=e?.billingMode==="subscription"||e?.billingMode==="credits";return t?(0,r.jsx)("div",{className:"h-8 w-24 animate-pulse rounded-full bg-muted"}):e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(A.AM,{open:o,onOpenChange:e=>{d(e),e&&l.invalidateQueries({queryKey:X.ob,exact:!0})},children:[(0,r.jsx)(A.Wv,{asChild:!0,children:(0,r.jsxs)("button",{type:"button","aria-label":i.badgeAria,className:(0,u.cn)("group inline-flex cursor-pointer items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium shadow-sm transition-all",p?"border-brand-200 bg-brand-50/50 text-brand-700 hover:bg-brand-50 hover:shadow":"border-slate-200 bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50 hover:shadow"),children:[p?(0,r.jsx)(S.A,{className:"size-3.5 text-brand-500","aria-hidden":"true"}):(0,r.jsx)(_.A,{className:"size-3.5 text-slate-400","aria-hidden":"true"}),(0,r.jsx)("span",{children:x}),(0,r.jsx)(h.A,{className:(0,u.cn)("size-3.5 shrink-0 transition-transform duration-200 group-hover:translate-y-[1px]",p?"text-brand-500/70":"text-slate-400"),"aria-hidden":"true"})]})}),(0,r.jsx)(A.hl,{align:"end",className:"w-[300px] overflow-visible p-4",children:(0,r.jsx)(G,{entitlements:e,dictionary:i,locale:a,onUpgrade:()=>{d(!1),m(!0)}})})]}),(0,r.jsx)(Z.u,{open:c,onOpenChange:m,entrySurface:"header_plan_usage_badge"})]}):null}var et=a(7362),ea=a(14796),er=a(46175),es=a(77542),en=a(34309),ei=a(17876);function el({notifications:e=[]}){let{dictionary:t}=(0,ei.Y)(),a=t.header.notificationCenter,[n,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(e),m=(0,s.useRef)(null),x=(0,o.usePathname)(),h=x?.includes("/settings"),p=l.filter(e=>!e.read).length;return(0,s.useEffect)(()=>{function e(e){m.current&&!m.current.contains(e.target)&&i(!1)}if(n)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[n]),(0,r.jsxs)("div",{className:"relative",ref:m,children:[(0,r.jsxs)("button",{onClick:()=>i(!n),className:(0,u.cn)("group relative flex h-10 w-10 items-center justify-center rounded-full transition-colors cursor-pointer",h?"text-neutral-500 hover:bg-slate-100 hover:text-slate-700":"text-neutral-300 hover:bg-brand-500/10 hover:text-brand-200"),"aria-label":"Notifications",children:[(0,r.jsx)(es.A,{className:(0,u.cn)("w-5 h-5 transition-all duration-300 group-hover:scale-110 group-hover:rotate-12",h?"group-hover:text-slate-700":"group-hover:text-brand-300")}),p>0&&(0,r.jsx)("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 rounded-full bg-red-500 animate-pulse"})]}),n&&(0,r.jsxs)("div",{className:"absolute right-0 mt-2 w-96 max-w-[calc(100vw-2rem)] bg-white dark:bg-neutral-900 rounded-xl shadow-xl border border-neutral-200 dark:border-neutral-800 z-50 overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-neutral-200 dark:border-neutral-800",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-neutral-900 dark:text-neutral-100",children:a.title}),p>0&&(0,r.jsx)("button",{onClick:()=>{c(e=>e.map(e=>({...e,read:!0})))},className:"text-sm text-blue-600 hover:text-blue-500 font-medium",children:a.markAllRead})]}),(0,r.jsx)("div",{className:"max-h-[400px] overflow-y-auto",children:0===l.length?(0,r.jsxs)("div",{className:"p-8 text-center",children:[(0,r.jsx)(es.A,{className:"w-12 h-12 text-neutral-400 mx-auto mb-3"}
1),(0,r.jsx)("p",{className:"text-sm text-neutral-600 dark:text-neutral-400",children:a.noNotifications})]}):(0,r.jsx)("div",{className:"divide-y divide-neutral-200 dark:divide-neutral-800",children:l.map(e=>{var t;let s,n,i;return(0,r.jsx)("div",{className:`group p-4 hover:bg-neutral-50 dark:hover:bg-neutral-800/50 transition-colors ${!e.read?"bg-blue-50/50 dark:bg-blue-950/20":""}`,children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("div",{className:"flex-shrink-0 mt-0.5",children:(e=>{switch(e){case"video_complete":return(0,r.jsx)(et.A,{className:"w-5 h-5 text-green-600"});case"credits_low":return(0,r.jsx)(ea.A,{className:"w-5 h-5 text-orange-600"});case"payment_success":return(0,r.jsx)(er.A,{className:"w-5 h-5 text-blue-600"});default:return(0,r.jsx)(es.A,{className:"w-5 h-5 text-neutral-600"})}})(e.type)}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-1",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-neutral-900 dark:text-neutral-100",children:e.title}),(0,r.jsx)("button",{onClick:()=>{var t;return t=e.id,void c(e=>e.filter(e=>e.id!==t))},className:"opacity-0 group-hover:opacity-100 p-1 rounded hover:bg-neutral-200 dark:hover:bg-neutral-700 transition-all","aria-label":"Delete notification",children:(0,r.jsx)(d.A,{className:"w-3.5 h-3.5 text-neutral-500"})})]}
1),(0,r.jsx)("p",{className:"text-sm text-neutral-600 dark:text-neutral-400 mb-2",children:e.message}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-xs text-neutral-500",children:(t=e.timestamp,i=Math.floor((n=Math.floor((s=Math.floor((new Date().getTime()-t.getTime())/6e4))/60))/24),s<1?"Just now":s<60?`${s}m ago`:n<24?`${n}h ago`:i<7?`${i}d ago`:t.toLocaleDateString())}),!e.read&&(0,r.jsxs)("button",{onClick:()=>{var t;return t=e.id,void c(e=>e.map(e=>e.id===t?{...e,read:!0}:e))},className:"text-xs text-blue-600 hover:text-blue-500 font-medium flex items-center gap-1",children:[(0,r.jsx)(en.A,{className:"w-3 h-3"}),a.markRead]})]})]})]})},e.id)})})})]})]})}var eo=a(82175),ed=a(73266),ec=a(27104),eu=a(89250),em=a(23397);function ex({dictionary:e,locale:t,isAdmin:a=!1,user:n}){let[i,d]=(0,s.useState)(!1),c=(0,eu.R)(),u=(0,o.usePathname)();if(!n)return null;let m=(0,em.yN)(t),x=t===ec.q?"/settings/billing":`/${t}/settings/billing`,h=t===ec.q?"/settings":`/${t}/settings`,p=t===ec.q?"/dashboard":`/${t}/dashboard`,f="/settings"===u||u.startsWith("/settings/")||u===h||u.startsWith(`${h}/`)||"/dashboard"===u||u.startsWith("/dashboard/")||u===p||u.startsWith(`${p}/`),g=async()=>{try{await c(f?{redirectTo:t===ec.q?"/":`/${t}`}:void 0)}catch(e){console.error("[Better Auth] Sign out failed",e)}};return(0,r.jsxs)(ed.rI,{open:i,onOpenChange:d,children:[(0,r.jsx)(ed.ty,{asChild:!0,children:(0,r.jsx)(L.$,{variant:"ghost",className:"relative h-8 w-8 cursor-pointer rounded-full p-0 hover:bg-slate-100",children:(()=>{if(n.image)return(0,r.jsx)(eo.default,{src:n.image,alt:n.name||n.email||n.image,width:32,height:32,className:"h-8 w-8 rounded-full object-cover"});let e=(n.name||n.email||"U").split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2);return(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gradient-to-br from-brand-600 to-brand-700",children:(0,r.jsx)("span",{className:"text-sm font-semibold text-white",children:e})})})()})}),(0,r.jsxs)(ed.SQ,{className:"w-56",align:"end",forceMount:!0,children:[(0,r.jsx)(ed._2,{asChild:!0,children:(0,r.jsx)(l(),{href:m,className:"cursor-pointer",children:(0,r.jsx)("span",{children:e.userMenu.dashboard})})}),(0,r.jsx)(ed._2,{asChild:!0,children:(0,r.jsx)(l(),{href:x,className:"cursor-pointer",children:(0,r.jsx)("span",{children:e.userMenu.billing})})}),(0,r.jsx)(ed._2,{asChild:!0,children:(0,r.jsx)(l(),{href:`${h}/subscription`,className:"cursor-pointer",children:(0,r.jsx)("span",{children:e.userMenu.subscription})})}),(0,r.jsx)(ed._2,{asChild:!0,children:(0,r.jsx)(l(),{href:`${h}/account`,className:"cursor-pointer",children:(0,r.jsx)("span",{children:e.userMenu.account})})}),a?(0,r.jsx)(ed._2,{asChild:!0,children:(0,r.jsx)(l(),{href:"/admin/",className:"cursor-pointer",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("span",{children:e.userMenu.adminMenu})})}):null,(0,r.jsx)(ed._2,{onClick:g,className:"cursor-pointer",children:(0,r.jsx)("span",{children:e.userMenu.signOut})})]})]})}function eh({entitlements:e=null,entitlementsLoading:t=!1,locale:a,dictionary:s,isAdmin:n=!1,user:i,mode:l="app"}){return(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2.5",children:["app"===l?(0,r.jsx)(ee,{entitlements:e,loading:t,locale:a,dictionary:s.planUsage}):null,"app"===l?(0,r.jsx)(el,{}):null,(0,r.jsx)(ex,{dictionary:s,locale:a,isAdmin:n,user:i})]})}var ep=a(63786),ef=a(32220),eg=a(80879);function eb({loading:e=!1,authenticated:t=!1,user:a=null,entitlements:n=null,isAdmin:i=!1,variant:h="marketing"}){let[p,f]=(0,s.useState)(!1),g=(0,o.usePathname)(),{locale:b,dictionary:v}=(0,ef.Ym)(),{showAuthModal:j,authMode:y,openLogin:w,openSignUp:N,closeAuth:$,setAuthMode:S}=(0,em.If)(),_=v.component.layout.header,A=_.brand.identity,E=(0,em.yN)(b),M=(0,s.useCallback)(()=>{w("go_dashboard",E)},[E,w]),I=(0,s.useCallback)(()=>{N("go_dashboard",E)},[E,N]),z="en"===b?"/":`/${b}`,P=`${z}#features`,T="en"===b?"/pricing":`/${b}/pricing`,U=`${z}#faq`,O="en"===b?"/blog":`/${b}/blog`,q="cursor-pointer rounded-lg px-3 py-2 text-sm font-medium text-slate-700 transition-all duration-200 hover:bg-primary/5 hover:text-primary",R=v.header.signup,Q=(0,eg.i)(b,"login",E),W=(0,eg.i)(b,"signup",E),D="marketing"===h,F=D?z:E;return(0,s.useEffect)(()=>{!e&&t&&j&&$(!1)},[t,$,e,j]),(0,r.jsxs)("header",{className:(0,u.cn)("sticky top-0 z-50 w-full border-b border-slate-200/50 bg-white px-4 sm:px-6 lg:px-8 xl:px-10 2xl:px-12"),children:[(0,r.jsxs)("div",{className:"relative mx-auto flex h-16 max-w-[1440px] items-center",children:[(0,r.jsx)(x.b,{locale:b,href:F,variant:"dark",textSize:"md",hideTextOnMobile:!1,brandName:A.primary_name,supportLabel:A.support_label,homeAriaLabel:A.home_aria_label}),D?(0,r.jsxs)("nav",{className:"ml-12 hidden items-center gap-1 lg:flex",children:[(0,r.jsx)(k,{locale:b,menuLabel:v.header.tools,triggerAriaLabel:v.header.toolsMenu.triggerAria,labels:v.header.toolsMenu,activePathname:g}),(0,r.jsx)(l(),{href:P,className:q,children:v.header.features}),(0,r.jsx)(l(),{href:T,className:q,children:v.header.pricing}),(0,r.jsx)(l(),{href:O,className:q,children:v.header.blog}),(0,r.jsx)(l(),{href:U,className:q,children:v.header.faq})]}):null,(0,r.jsx)("div",{className:"ml-auto hidden shrink-0 items-center gap-2 md:flex",children:e?(0,r.jsx)("div",{className:"h-9 w-36 animate-pulse rounded-full bg-muted"}):t?D?(0,r.jsx)(L.$,{asChild:!0,className:"bg-primary text-white hover:bg-primary/90",children:(0,r.jsx)(l(),{href:E,children:v.header.userMenu.dashboard})}):(0,r.jsx)(eh,{user:a,entitlements:n,entitlementsLoading:e,locale:b,dictionary:v.header,isAdmin:i,mode:"app"}):D?(0,r.jsx)(m,{loginText:v.header.login,signUpText:R,onLoginClick:M,onSignUpClick:I}):(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(l(),{href:Q,className:"inline-flex cursor-pointer items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-slate-700 transition-all duration-200 hover:bg-primary/5 hover:text-primary",children:v.header.login}),(0,r.jsx)(l(),{href:W,className:"inline-flex cursor-pointer items-center justify-center rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition-all duration-200 hover:bg-primary/90 hover:shadow-md hover:scale-[1.02] active:scale-[0.98]",children:R})]})}),(0,r.jsx)(L.$,{variant:"ghost",size:"icon-lg",className:"ml-auto md:hidden",onClick:()=>f(!p),"aria-label":_.actions.toggle_menu,children:p?(0,r.jsx)(d.A,{className:"h-5 w-5"}):(0,r.jsx)(c.A,{className:"h-5 w-5"})})]}),p?(0,r.jsx)("div",{className:"border-t border-border bg-card md:hidden",children:(0,r.jsxs)("div",{className:"space-y-1 px-4 py-6",children:[D?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{locale:b,menuLabel:v.header.tools,labels:v.header.toolsMenu,activePathname:g,onNavigate:()=>f(!1)}),(0,r.jsx)(l(),{href:P,className:`block ${q}`,onClick:()=>f(!1),children:v.header.features}),(0,r.jsx)(l(),{href:T,className:`block ${q}`,onClick:()=>f(!1),children:v.header.pricing}),(0,r.jsx)(l(),{href:O,className:`block ${q}`,onClick:()=>f(!1),children:v.header.blog}),(0,r.jsx)(l(),{href:U,className:`block ${q}`,onClick:()=>f(!1),children:v.header.faq})]}):null,(0,r.jsx)("div",{className:"space-y-3 border-t border-border pt-4",children:e?(0,r.jsx)("div",{className:"h-10 rounded-lg bg-muted animate-pulse"}):t?D?(0,r.jsx)(L.$,{asChild:!0,className:"w-full bg-primary text-white hover:bg-primary/90",children:(0,r.jsx)(l(),{href:E,onClick:()=>f(!1),children:v.header.userMenu.dashboard})}):(0,r.jsx)("div",{className:"space-y-3",children:(0,r.jsx)("div",{className:"rounded-lg bg-muted p-3",children:(0,r.jsx)(eh,{user:a,entitlements:n,entitlementsLoading:e,locale:b,dictionary:v.header,isAdmin:i,mode:"app"})})}):D?(0,r.jsx)(m,{loginText:v.header.login,signUpText:R,onLoginClick:()=>{f(!1),M()},onSignUpClick:()=>{f(!1),I()},layout:"vertical"}):(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,r.jsx)(l(),{href:Q,onClick:()=>f(!1),className:"inline-flex w-full cursor-pointer items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-slate-700 transition-all duration-200 hover:bg-primary/5 hover:text-primary",children:v.header.login}),(0,r.jsx)(l(),{href:W,onClick:()=>f(!1),className:"inline-flex w-full cursor-pointer items-center justify-center rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white shadow-sm transition-all duration-200 hover:bg-primary/90 hover:shadow-md hover:scale-[1.02] active:scale-[0.98]",children:R})]})})]})}):null,D?(0,r.jsx)(ep.U,{open:j,onOpenChange:$,mode:y,onModeChange:S,locale:b,dictionary:v.tools.authModal}):null]})}var ev=a(22754);let ej=RegExp(`^/(${ev.I.join("|")})($|/)`);function ey({loading:e=!1,authenticated:t=!1,user:a=null,entitlements:s=null,isAdmin:n=!1}){let i,l=(i=(0,o.usePathname)().replace(ej,"/")).startsWith("/admin")||i.startsWith("/transcriptions/")||i.startsWith("/share/")||i.startsWith("/redeem")?"none":i.startsWith("/dashboard")||i.startsWith("/settings")?"app":"marketing";return"none"===l?null:(0,r.jsx)(eb,{loading:e,authenticated:t,user:a,entitlements:s,isAdmin:n,variant:l})}var ew=a(84504);let eN="group flex items-center py-1.5 text-sm font-medium text-slate-600 transition-colors duration-200 hover:text-brand-600";function ek({dictionary:e,brandDictionary:t,toolsMenu:a,currentLocale:s,activePathname:n}){let i=new Date().getFullYear(),o=t.brand.identity,d="en"===s?"/pricing":`/${s}/pricing`,c="en"===s?"/blog":`/${s}/blog`,u="en"===s?"/login":`/${s}/login`,m="en"===s?"/signup":`/${s}/signup`,h="en"===s?"/privacy":`/${s}/privacy`,p="en"===s?"/terms":`/${s}/terms`,f="en"===s?"/partners":`/${s}/partners`;return(0,r.jsx)("footer",{className:"bg-gradient-to-b from-white to-primary/[0.03] border-t border-slate-200/50",children:(0,r.jsxs)("div",{className:"mx-auto max-w-7xl px-4 py-12 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-5",children:[(0,r.jsxs)("div",{className:"space-y-4 sm:col-span-2 lg:col-span-1",children:[(0,r.jsx)(x.b,{locale:s,textSize:"sm",hideTextOnMobile:!1,brandName:o.primary_name,supportLabel:o.support_label,homeAriaLabel:o.home_aria_label}),(0,r.jsx)("p",{className:"max-w-xs text-sm leading-relaxed text-slate-600",children:e.description}),t.brand.discovery.site_hint?(0,r.jsx)("p",{className:"text-xs font-semibold tracking-[0.08em] text-slate-600",children:t.brand.discovery.site_hint}):null,(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:`mailto:${e.support.email}`,className:"inline-flex items-center gap-2 text-sm font-medium text-slate-700 transition-colors duration-200 hover:text-brand-600",children:[(0,r.jsx)(ew.A,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"}),(0,r.jsx)("span",{children:e.support.email})]})})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-xs font-semibold text-slate-900 tracking-wider up
1percase",children:e.tools}),(0,r.jsx)("ul",{className:"space-y-1",children:(0,r.jsx)($,{locale:s,labels:a,activePathname:n})})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-xs font-semibold text-slate-900 tracking-wider uppercase",children:e.product}),(0,r.jsxs)("ul",{className:"space-y-1",children:[(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:d,className:eN,children:(0,r.jsx)("span",{children:e.pricing})})}),(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:c,className:eN,children:(0,r.jsx)("span",{children:e.blog})})})]})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-xs font-semibold text-slate-900 tracking-wider uppercase",children:e.account}),(0,r.jsxs)("ul",{className:"space-y-1",children:[(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:u,className:eN,children:(0,r.jsx)("span",{children:e.login})})}),(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:m,className:eN,children:(0,r.jsx)("span",{children:e.signup})})})]})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-xs font-semibold text-slate-900 tracking-wider uppercase",children:e.company}),(0,r.jsxs)("ul",{className:"space-y-1",children:[(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:h,className:eN,children:(0,r.jsx)("span",{children:e.privacyPolicy})})}),(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:p,className:eN,children:(0,r.jsx)("span",{children:e.termsOfService})})}),(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:f,className:eN,children:(0,r.jsx)("span",{children:e.links})})})]})]})]}),(0,r.jsx)("div",{className:"mt-12 border-t border-slate-200/50 pt-8",children:(0,r.jsx)("div",{className:"flex flex-col items-center justify-between space-y-4 md:flex-row md:space-y-0",children:(0,r.jsx)("p",{className:"text-sm text-slate-600",children:e.copyright.replace("{year}",i.toString())})})})]})})}let eC=RegExp(`^/(${ev.I.join("|")})($|/)`);function e$(){let e=(0,o.usePathname)(),{locale:t,dictionary:a}=(0,ef.Ym)(),s=e.includes("/login")||e.includes("/signup")||e.startsWith("/redeem"),n=e.replace(eC,"/"),i=n.startsWith("/dashboard")||n.startsWith("/settings")||n.startsWith("/profile")||n.startsWith("/admin")||n.startsWith("/transcriptions/")||n.startsWith("/share/");return s||i?null:(0,r.jsx)(ek,{dictionary:a.footer,brandDictionary:a.component.layout.footer,toolsMenu:a.header.toolsMenu,currentLocale:t,activePathname:e})}var eS=a(86776),e_=a(23522),eA=a(3078),eE=a(77204),eM=a(99534),eL=a(41966),eI=a(51879);function ez({children:e}){var t;let a,i,{bootstrap:l,bootstrapLoading:o,reloadCredits:d}=(0,eS.o)(),c=(0,n.jE)(),{locale:u}=(0,ef.Ym)();return t=l?.authenticated,a=(0,s.useRef)(!1),i=(0,n.jE)(),(0,s.useEffect)(()=>{if(!t){a.current=!1;return}if(a.current)return;let e=(0,eL.QC)();e&&(a.current=!0,(async()=>{try{let t=await (0,eM.nr)(`/api/transcriptions/${e.publicId}/claim`,{method:"POST",headers:{"x-transcription-access-token":e.anonymousAccessToken}}),a=await t.json().catch(()=>null);if(!t.ok||!a?.success)throw Error(a&&!a.success?a.error.message:"Failed to claim transcription");(0,eL.HN)(e.publicId),(0,eL.zN)(),(0,eI.A)(),await i.invalidateQueries({queryKey:X.ob})}catch(e){a.current=!1}})())},[t,i]),(0,s.useEffect)(()=>{let e=!1,t=!1,a=!1,r=async()=>{if(!e){if(t){a=!0;return}t=!0;try{if(l?.authenticated){await (0,eE.n)(c);let e=(await d()).data??null;e&&c.setQueryData(e_.qC,e)}}catch{}finally{t=!1,a&&!e&&(a=!1,r())}}};(0,eA.r)()&&r();let s=()=>{r()};return window.addEventListener(eA.nW,s),()=>{e=!0,window.removeEventListener(eA.nW,s)}},[l?.authenticated,c,d]),(0,s.useEffect)(()=>{document.documentElement.lang=u},[u]),(0,r.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,r.jsx)(ey,{loading:o,authenticated:l?.authenticated??!1,user:l?.user,entitlements:l?.entitlements??null,isAdmin:l?.isAdmin??!1}),(0,r.jsx)("main",{className:"flex-1",children:e}),(0,r.jsx)(e$,{})]})}},51879:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,h:()=>r});let r="transvio:transcription-claim-completed";function s(){window.dispatchEvent(new Event(r))}},73266:(e,t,a)=>{"use strict";a.d(t,{SQ:()=>o,_2:()=>d,lp:()=>c,mB:()=>u,rI:()=>i,ty:()=>l});var r=a(54568);a(7620);var s=a(96869),n=a(417);function i({...e}){return(0,r.jsx)(s.bL,{"data-slot":"dropdown-menu",...e})}function l({...e}){return(0,r.jsx)(s.l9,{"data-slot":"dropdown-menu-trigger",...e})}function o({className:e,sideOffset:t=4,portalContainer:a,...i}){return(0,r.jsx)(s.ZL,{container:a,children:(0,r.jsx)(s.UC,{"data-slot":"dropdown-menu-content",sideOffset:t,className:(0,n.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md border border-white/10 outline-none",e),...i})})}function d({className:e,inset:t,variant:a="default",...i}){return(0,r.jsx)(s.q7,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:(0,n.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none transition-colors duration-200","hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-white/[0.06] dark:hover:text-white","focus:bg-neutral-100 focus:text-neutral-900 dark:focus:bg-white/[0.06] dark:focus:text-white","data-[variant=destructive]:text-destructive data-[variant=destructive]:hover:bg-red-50 data-[variant=destructive]:focus:bg-red-50 dark:data-[variant=destructive]:hover:bg-red-950/20 dark:data-[variant=destructive]:focus:bg-red-950/20 data-[variant=destructive]:hover:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive","[&_svg:not([class*='text-'])]:text-muted-foreground [&_svg:not([class*='text-'])]:text-neutral-400 focus:[&_svg:not([class*='text-'])]:text-neutral-900 hover:[&_svg:not([class*='text-'])]:text-neutral-900 dark:focus:[&_svg:not([class*='text-'])]:text-white dark:hover:[&_svg:not([class*='text-'])]:text-white","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function c({className:e,inset:t,...a}){return(0,r.jsx)(s.JU,{"data-slot":"dropdown-menu-label","data-inset":t,className:(0,n.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...a})}function u({className:e,...t}){return(0,r.jsx)(s.wv,{"data-slot":"dropdown-menu-separator",className:(0,n.cn)("bg-border -mx-1 my-1 h-px",e),...t})}},73756:(e,t,a)=>{"use strict";a.d(t,{Rz:()=>i,gu:()=>o});var r=a(54568);a(7620);var s=a(417);function n(e){return(0,r.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",...e,children:[(0,r.jsx)("rect",{x:"3.5",y:"13",width:"2.5",height:"5",rx:"1.25",fill:"currentColor"}),(0,r.jsx)("rect",{x:"7.5",y:"7",width:"2.5",height:"16",rx:"1.25",fill:"currentColor"}),(0,r.jsx)("rect",{x:"11.5",y:"10",width:"2.5",height:"10",rx:"1.25",fill:"currentColor"}),(0,r.jsx)("rect",{x:"18.5",y:"10",width:"7",height:"2.5",rx:"1.25",fill:"currentColor"}),(0,r.jsx)("rect",{x:"18.5",y:"15.5",width:"5",height:"2.5",rx:"1.25",fill:"currentColor"})]})}function i({brandName:e,supportLabel:t,variant:a="dark",textSize:n="md",className:i,hideOnMobile:l=!1}){return(0,r.jsxs)("span",{translate:"no",className:(0,s.cn)("notranslate font-semibold tracking-normal","sm"===n?"text-xl":"text-2xl",l&&"hidden sm:inline","light"===a?"text-brand-100":"text-brand-700",i),children:[e,t]})}function l({className:e="",variant:t="dark"}){return(0,r.jsx)(i,{brandName:"MP3ToText",supportLabel:".io",variant:t,textSize:"sm",className:(0,s.cn)("text-xl font-bold tracking-tight",e)})}function o({className:e="",showText:t=!0,...a}){return(0,r.jsxs)("div",{className:`flex items-center gap-2 ${e}`,children:[(0,r.jsx)(n,{className:"flex-shrink-0 text-brand-600",...a}),t?(0,r.jsx)(l,{}):null]})}},74256:(e,t,a)=>{"use strict";a.d(t,{ClientProviders:()=>I});var r=a(54568),s=a(7620),n=a(79748),i=a(76043),l=a(22142),o=a(25177),d=a(16510);function c({measurementId:e}){let t=(0,n.usePathname)();return(0,s.useMemo)(()=>!!e&&(!t||!(0,d.Q2)(t)&&!/^\/[^/]+\/admin(?:\/|$)/.test(t)),[e,t])?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{src:`https://www.googletagmanager.com/gtag/js?id=${e}`,strategy:"afterInteractive"}),(0,r.jsx)(o.default,{id:"ga4-init",strategy:"afterInteractive",children:`
2                    window.dataLayer = window.dataLayer || [];
3                    function gtag(){dataLayer.push(arguments);}
4                    window.gtag = gtag;
5                    gtag('js', new Date());
6                    gtag('config', '${e}', { send_page_view: false });
7                    window.dispatchEvent(new Event('${i.GA}'));
8                `})]}):null}
8function u(){let e=(0,n.usePathname)(),t=(0,n.useSearchParams)(),{loading:a}=(0,l.Ls)(),[r,o]=(0,s.useState)(()=>(0,i.fB)()),c=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(r)return;let e=()=>{o(!0)};return window.addEventListener(i.GA,e),(0,i.fB)()&&o(!0),()=>{window.removeEventListener(i.GA,e)}},[r]),(0,s.useEffect)(()=>{if(a||!r||(0,d.Q2)(e))return;let s=(0,d.XQ)(t),n=(0,d.__)(e),l=`${n}${s?`?${s}`:""}`;c.current!==l&&(c.current=l,(0,i.ZY)({pathname:e,search:s,title:"u">typeof document?document.title:void 0}))},[r,a,e,t]),null}var m=a(63322),x=a(92007),h=a(63264),p=a(21847),f=a(58299),g=a(66888);let b=({...e})=>(0,r.jsx)(g.l$,{theme:"dark",className:"toaster group",icons:{success:(0,r.jsx)(m.A,{className:"size-4"}),info:(0,r.jsx)(x.A,{className:"size-4"}),warning:(0,r.jsx)(h.A,{className:"size-4"}),error:(0,r.jsx)(p.A,{className:"size-4"}),loading:(0,r.jsx)(f.A,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e});var v=a(53892),j=a(27104),y=a(24480),w=a(31223),N=a(3078);let k="payment",C="payment_type",$="payment_request_id";function S(){let e=(0,n.usePathname)(),t=(0,n.useSearchParams)(),a=(0,y.l)(e),r=(0,s.useMemo)(()=>(0,j.TW)(a),[a]).tools.payment.creditsSuccess,l=t.get(k),o=t.get(C);return(0,s.useEffect)(()=>{let a,r=((a=new URLSearchParams(t.toString())).delete(k),a.delete(C),a.delete($),a.delete("return_to"),a.toString()),s=(0,N.Ec)(e,r);s&&(0,N.QP)(s)},[e,t]),(0,s.useEffect)(()=>{let t,a="success"===l&&"credits"===o,s=(0,N.Q3)(e)&&(0,N.Vn)();if(!a&&!s)return;if((0,N.Yv)(),a){let e=(0,N.Qj)();if(e?.productType==="one_time"){let t=e.productId?(0,w.y9)(e.productId):null;(0,i.tO)({dedupeKey:`${e.orderId??e.requestId}:${e.productType??"unknown"}`,transactionId:e.orderId??e.requestId,productId:e.productId,productType:e.productType,value:t?.price,currency:t?.currency,entrySurface:e.entrySurface??"unknown"}),(0,N.z$)()}}a&&((t=new URL(window.location.href)).searchParams.delete(k),t.searchParams.delete(C),t.searchParams.delete($),window.history.replaceState({},"",t.toString()));let n=window.setTimeout(()=>{g.oR.success(r.card.title,{...v.iZ,id:"credits-payment-success"})},80);return()=>{window.clearTimeout(n)}},[r.card.title,e,l,o]),null}var _=a(75603),A=a(68728),E=a(28634),M=a(95553);function L({children:e}){let[t]=(0,s.useState)(()=>new _.E({defaultOptions:{queries:{staleTime:3e4,gcTime:6e5,refetchOnWindowFocus:!1,refetchOnReconnect:!0,retry:(e,t)=>!(t instanceof Error&&"status"in t&&[401,403,404].includes(t.status))&&e<1,retryDelay:e=>Math.min(1e3*2**e,2e3)},mutations:{retry:0}}}));return(0,r.jsxs)(A.Ht,{client:t,children:[e,"development"===(0,E.jb)("NEXT_PUBLIC_APP_ENV")&&(0,r.jsx)(M.E,{initialIsOpen:!1})]})}function I({children:e}){return(0,r.jsxs)(L,{children:[(0,r.jsx)(s.Suspense,{fallback:null,children:(0,r.jsx)(c,{measurementId:"G-HG9EYEMKEB".trim()||""})}),(0,r.jsx)(b,{position:"top-center",expand:!0,duration:4e3,richColors:!0}),(0,r.jsx)(s.Suspense,{fallback:null,children:(0,r.jsx)(u,{})}),e,(0,r.jsx)(s.Suspense,{fallback:null,children:(0,r.jsx)(S,{})})]})}},74471:()=>{},77204:(e,t,a)=>{"use strict";a.d(t,{l:()=>n,n:()=>i});var r=a(22142),s=a(23522);function n(e){return e.invalidateQueries({queryKey:s.qC,exact:!0})}function i(e){return e.invalidateQueries({queryKey:r.ob,exact:!0})}},80879:(e,t,a)=>{"use strict";function r(e,t,a){let r="en"===e?`/${t}`:`/${e}/${t}`;return a?`${r}?returnTo=${encodeURIComponent(a)}`:r}a.d(t,{i:()=>r})},81618:(e,t,a)=>{"use strict";a.d(t,{Bs:()=>l,Il:()=>o,iQ:()=>n,kg:()=>i});var r=a(24480);function s(e){return(0,r.y)(e)}function n(e,t){return new Intl.NumberFormat(s(t)).format(e)}function i(e,t="USD",a){return new Intl.NumberFormat(s(a),{style:"currency",currency:t}).format(e)}function l(e,t){let a=e instanceof Date?e:new Date(e);return new Intl.DateTimeFormat(s(t),{dateStyle:"medium"}).format(a)}function o(e,t){let a=e instanceof Date?e:new Date(e);return new Intl.DateTimeFormat(s(t),{dateStyle:"medium",timeStyle:"short"}).format(a)}},86776:(e,t,a)=>{"use strict";a.d(t,{o:()=>n});var r=a(22142),s=a(23522);function n(){let{data:e,loading:t}=(0,r.Ls)(),a=e?.authenticated??!1,n=e?.authenticated===!0&&null!==e.creditsBreakdown,i=(0,s.bs)({enabled:a,initialData:n?{credits:e.credits,creditsBreakdown:e.creditsBreakdown}:null});return{bootstrap:e,bootstrapLoading:t,isAuthenticated:a,creditsData:i.data,creditsLoading:i.loading,creditsError:i.error,reloadCredits:i.reload}}},89250:(e,t,a)=>{"use strict";a.d(t,{R:()=>d});var r=a(7620),s=a(79748),n=a(68728),i=a(45744),l=a(22142),o=a(23522);function d(){let e=(0,s.useRouter)(),t=(0,n.jE)();return(0,r.useCallback)(async({redirectTo:a,hardRedirect:r=!1}={})=>
8{if(await i.y.signOut(),localStorage.removeItem("oauth-callback-target"),await Promise.all([t.cancelQueries({queryKey:l.ob,exact:!0}),t.cancelQueries({queryKey:o.qC,exact:!0})]),t.setQueryData(l.ob,l.xV),t.removeQueries({queryKey:o.qC,exact:!0}),a){if(r){window.location.href=a;return}e.replace(a)}e.refresh()},[t,e])}},89711:(e,t,a)=>{Promise.resolve().then(a.bind(a,49063)),Promise.resolve().then(a.bind(a,74256)),Promise.resolve().then(a.t.bind(a,50669,23)),Promise.resolve().then(a.t.bind(a,74471,23))}},e=>{e.O(0,[9259,9306,5587,3357,1763,2821,7594,6888,4698,1921,6869,5604,1669,3704,7104,9152,6249,9491,1689,587,1968,7358],()=>e(e.s=89711)),_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.