PageSourceSearch

https://videosummarizers.ai/_next/static/chunks/8554-014118ae3cafb4a9.js

js videosummarizers.ai collected 2026-10-05 13:16:23 UTC 18,036 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8554],{98554:function(e,t,a){a.r(t),a.d(t,{default:function(){return P}});var r=a(3827),n=a(23465),s=a(8792),l=a(64090),o=a(69102),i=a.n(o),d=a(30982),c=a(47907);function u(){let e=(0,d.useTranslations)("LocaleSwitcher"),t=(0,d.useLocale)(),a=(0,c.useRouter)(),n=(0,c.usePathname)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("select",{onChange:e=>{let r=e.target.value,s=n.replace("/".concat(t),"")||"/";a.push("/".concat(r).concat(s))},defaultValue:t,className:"jsx-5c8adeb76494d12f language-select",children:[(0,r.jsx)("option",{value:"en",className:"jsx-5c8adeb76494d12f",children:e("english")}),(0,r.jsx)("option",{value:"zh",className:"jsx-5c8adeb76494d12f",children:e("chinese")}),(0,r.jsx)("option",{value:"de",className:"jsx-5c8adeb76494d12f",children:e("german")}),(0,r.jsx)("option",{value:"ja",className:"jsx-5c8adeb76494d12f",children:e("japanese")}),(0,r.jsx)("option",{value:"ko",className:"jsx-5c8adeb76494d12f",children:e("korean")})]}),(0,r.jsx)(i(),{id:"5c8adeb76494d12f",children:".language-select.jsx-5c8adeb76494d12f{padding:10px;border:1px solid#ccc;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;background:white;font-size:1rem;cursor:pointer}@media(max-width:600px){.language-select.jsx-5c8adeb76494d12f{padding:15px;font-size:16px}}"})]})}var f=a(94625),m=a(49769),x=a(23441),h=a(1657);let p=l.forwardRef((e,t)=>{let{className:a,children:n,...s}=e;return(0,r.jsxs)(f.fC,{ref:t,className:(0,h.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...s,children:[n,(0,r.jsx)(b,{})]})});p.displayName=f.fC.displayName;let g=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(f.aV,{ref:t,className:(0,h.cn)("group flex flex-1 list-none items-center justify-center space-x-1",a),...n})});g.displayName=f.aV.displayName;let j=f.ck,v=(0,m.j)("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50");l.forwardRef((e,t)=>{let{className:a,children:n,...s}=e;return(0,r.jsxs)(f.xz,{ref:t,className:(0,h.cn)(v(),"group",a),...s,children:[n," ",(0,r.jsx)(x.Z,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}).displayName=f.xz.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(f.VY,{ref:t,className:(0,h.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",a),...n})}).displayName=f.VY.displayName,f.rU;let b=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{className:(0,h.cn)("absolute left-0 top-full flex justify-center"),children:(0,r.jsx)(f.l_,{className:(0,h.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",a),ref:t,...n})})});b.displayName=f.l_.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(f.z$,{ref:t,className:(0,h.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",a),...n,children:(0,r.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}).displayName=f.z$.displayName;var N=a(85754),y=a(12178);let w=l.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,r.jsx)(y.fC,{ref:t,className:(0,h.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...n})});w.displayName=y.fC.displayName;let k=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(y.Ee,{ref:t,className:(0,h.cn)("aspect-square h-full w-full",a),...n})});k.displayName=y.Ee.displayName;let C=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(y.NY,{ref:t,className:(0,h.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...n})});C.displayName=y.NY.displayName;var z=a(90720),R=a(37805),S=a(80037),I=a(37501);let L=z.fC,V=z.xz;z.ZA,z.Uv,z.Tr,z.Ee,l.forwardRef((e,t)=>{let{className:a,inset:n,children:s,...l}=e;return(0,r.jsxs)(z.fF,{ref:t,className:(0,h.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",a),...l,children:[s,(0,r.jsx)(R.Z,{className:"ml-auto h-4 w-4"})]})}).displayName=z.fF.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(z.tu,{ref:t,className:(0,h.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",a),...n})}).displayName=z.tu.displayName;let _=l.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...s}=e;return(0,r.jsx)(z.Uv,{children:(0,r.jsx)(z.VY,{ref:t,sideOffset:n,className:(0,h.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",a),...s})})});_.displayName=z.VY.displayName,l.forwardRef((e,t)=>{let{className:a,inset:n,...s}=e;return(0,r.jsx)(z.ck,{ref:t,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",a),...s})}).displayName=z.ck.displayName;let E=l.forwardRef((e,t)=>{let{className:a,children:n,checked:s,...l}=e;return(0,r.jsxs)(z.oC,{ref:t,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:s,...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(z.wU,{children:(0,r.jsx)(S.Z,{className:"h-4 w-4"})})}),n]})});E.displayName=z.oC.displayName,l.forwardRef((e,t)=>{let{className:a,children:n,...s}=e;return(0,r.jsxs)(z.Rk,{ref:t,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...s,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(z.wU,{children:(0,r.jsx)(I.Z,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=z.Rk.displayName;let Z=l.forwardRef((e,t)=>{let{className:a,inset:n,...s}=e;return(0,r.jsx)(z.__,{ref:t,className:(0,h.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",a),...s})});Z.displayName=z.__.displayName;let A=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(z.Z0,{ref:t,className:(0,h.cn)("-mx-1 my-1 h-px bg-muted",a),...n})});A.displayName=z.Z0.displayName;var M=a(91214);function D(e){var t;let{user:a}=e,{signOut:n}=(0,M.ll)();(0,c.useRouter)();let s=async()=>{try{console.log("开始登出"),await n(),console.log("登出成功"),window.location.href="/"}catch(e){console.error("登出错误:",e)}};return(0,r.jsxs)(L,{children:[(0,r.jsx)(V,{asChild:!0,children:(0,r.jsxs)(w,{className:"cursor-pointer",children:[(0,r.jsx)(k,{src:a.avatar_url,alt:a.nickname}),(0,r.jsx)(C,{children:a.nickname})]})}),(0,r.jsxs)(_,{className:"mx-4",children:[(0,r.jsx)(Z,{className:"text-center truncate",children:a.nickname?a.nickname:a.email}),(0,r.jsx)(A,{}),(0,r.jsxs)(E,{className:"md:hidden text-center",children:["额度: ",null===(t=a.credits)||void 0===t?void 0:t.left_credits]}),(0,r.jsx)(A,{className:"md:hidden"}),(0,r.jsx)(E,{className:"md:hidden",children:(0,r.jsx)("a",{href:"/pricing",children:"价格"})}),(0,r.jsx)(A,{className:"md:hidden"}),(0,r.jsx)(E,{children:(0,r.jsx)("button",{onClick:s,className:"w-full text-left",children:"退出登录"})})]})]})}var T=()=>{let e=(0,d.useTranslations)("dailyCheckIn"),{user:t}=(0,M.aF)(),{fetchUserInfo:a}=(0,l.useContext)(n.AppContext),[s,o]=(0,l.useState)(!1),[i,c]=(0,l.useState)(!1);(0,l.useEffect)(()=>{(async()=>
1{if(t){let t=localStorage.getItem("lastCheckDate"),a=new Date().toDateString();if(t!==a)try{let e=await fetch("/api/check-in-status"),t=await e.json();o(t.canCheckIn),localStorage.setItem("canCheckIn",t.canCheckIn.toString()),localStorage.setItem("lastCheckDate",a)}catch(t){console.error(e("error"),t)}else o("true"===localStorage.getItem("canCheckIn"))}})()},[t,e]);let u=async()=>{if(s){c(!0);try{let t=await fetch("/api/check-in",{method:"POST"});(await t.json()).checkIn?(o(!1),localStorage.setItem("canCheckIn","false"),localStorage.setItem("lastCheckDate",new Date().toDateString()),alert(e("success")),a()):alert(e("error"))}catch(t){console.error(e("error"),t),alert(e("error"))}finally{c(!1)}}};return t?(0,r.jsx)("button",{onClick:u,disabled:!s||i,className:"px-2 py-1 mx-1 mt-1 text-sm transition-colors duration-300 transform rounded-md cursor-pointer ".concat(s?"text-blue-500 hover:bg-blue-100 dark:text-blue-400 dark:hover:bg-blue-900":"text-gray-500 bg-gray-200 dark:text-gray-400 dark:bg-gray-700 cursor-not-allowed"),children:i?e("checking"):s?e("daily"):e("done")}):null};let Y=()=>(0,r.jsxs)("svg",{className:"w-8 h-8 text-primary",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M4 8C4 5.79086 5.79086 4 8 4H16C18.2091 4 20 5.79086 20 8V16C20 18.2091 18.2091 20 16 20H8C5.79086 20 4 18.2091 4 16V8Z",stroke:"currentColor",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M10 9L15 12L10 15V9Z",fill:"currentColor"})]});function P(){let{user:e}=(0,l.useContext)(n.AppContext),t=(0,d.useTranslations)("nav"),a=(0,d.useLocale)(),[o,i]=(0,l.useState)(!1),[c,f]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=()=>{f(window.scrollY>10)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,r.jsx)("nav",{className:"\n      sticky top-0 z-50 transition-all duration-300\n      ".concat(c?"bg-white/80 dark:bg-gray-900/80 backdrop-blur-xl shadow-soft border-b border-border/50":"bg-white dark:bg-gray-900","\n    "),children:(0,r.jsxs)("div",{className:"container-wide",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between h-16 lg:h-20",children:[(0,r.jsxs)(s.default,{href:"/".concat(a),className:"flex items-center gap-3 group",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-primary/20 rounded-xl blur-lg group-hover:blur-xl transition-all duration-300"}),(0,r.jsx)("div",{className:"relative bg-gradient-to-br from-primary to-secondary p-2 rounded-xl",children:(0,r.jsx)(Y,{})})]}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"font-heading font-bold text-lg text-foreground",children:"Video Summarizer"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground hidden sm:block",children:"AI-Powered Analysis"})]})]}),(0,r.jsx)("div",{className:"hidden lg:flex items-center gap-2",children:(0,r.jsx)(p,{children:(0,r.jsxs)(g,{className:"flex items-center gap-1",children:[(0,r.jsx)(j,{children:(0,r.jsx)(s.default,{href:"/".concat(a),children:(0,r.jsx)("span",{className:"nav-link",children:t("home")})})}),(0,r.jsx)(j,{children:(0,r.jsx)(s.default,{href:"/".concat(a,"/summary"),children:(0,r.jsx)("span",{className:"nav-link",children:t("playground")})})}),(0,r.jsx)(j,{children:(0,r.jsx)(s.default,{href:"/".concat(a,"/audio"),children:(0,r.jsx)("span",{className:"nav-link",children:t("audio")})})}),(0,r.jsx)(j,{children:(0,r.jsx)(s.default,{href:"/".concat(a,"/video-to-blog"),children:(0,r.jsx)("span",{className:"nav-link",children:t("video-to-blog")})})}),(0,r.jsx)(j,{children:(0,r.jsx)(s.default,{href:"/".concat(a,"/pricing"),children:(0,r.jsx)("span",{className:"nav-link",children:t("pricing")})})}),(0,r.jsx)(j,{children:(0,r.jsx)(s.default,{href:"/".concat(a,"/blog"),children:(0,r.jsx)("span",{className:"nav-link",children:t("blog")})})})]})})}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(u,{}),void 0===e?(0,r.jsx)("div",{className:"w-20 h-9 skeleton rounded-lg"}):(0,r.jsx)(r.Fragment,{children:e?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(T,{}),e.credits&&(0,r.jsxs)(s.default,{href:"/pricing",className:"hidden md:flex items-center gap-2 px-3 py-1.5 rounded-full  bg-primary/10 hover:bg-primary/20 transition-colors cursor-pointer",children:[(0,r.jsx)("svg",{className:"w-4 h-4 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),(0,r.jsx)("span",{className:"text-sm font-semibold text-primary",children:e.credits.left_credits})]}),(0,r.jsx)(D,{user:e})]}):(0,r.jsx)(s.default,{href:"/".concat(a,"/sign-in"),children:(0,r.jsx)(N.z,{className:"btn-primary",children:t("login")})})}),(0,r.jsx)("button",{onClick:()=>i(!o),className:"lg:hidden p-2 rounded-lg hover:bg-muted transition-colors","aria-label":"Toggle menu",children:o?(0,r.jsx)("svg",{className:"w-6 h-6 text-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):(0,r.jsx)("svg",{className:"w-6 h-6 text-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})]}),(0,r.jsx)("div",{className:"\n          lg:hidden overflow-hidden transition-all duration-300 ease-in-out\n          ".concat(o?"max-h-64 opacity-100 pb-4":"max-h-0 opacity-0","\n        "),children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border",children:[(0,r.jsx)(s.default,{href:"/".concat(a),onClick:()=>i(!1),className:"nav-link block",children:t("home")}),(0,r.jsx)(s.default,{href:"/".concat(a,"/summary"),onClick:()=>i(!1),className:"nav-link block",children:t("playground")}),(0,r.jsx)(s.default,{href:"/".concat(a,"/audio"),onClick:()=>i(!1),className:"nav-link block",children:t("audio")}),(0,r.jsx)(s.default,{href:"/".concat(a,"/video-to-blog"),onClick:()=>i(!1),className:"nav-link block",children:t("video-to-blog")}),(0,r.jsx)(s.default,{href:"/".concat(a,"/pricing"),onClick:()=>i(!1),className:"nav-link block",children:t("pricing")}),(0,r.jsx)(s.default,{href:"/".concat(a,"/blog"),onClick:()=>i(!1),className:"nav-link block",children:t("blog")})]})})]})})}},85754:function(e,t,a){a.d(t,{z:function(){return d}});var r=a(3827),n=a(64090),s=a(59143),l=a(49769),o=a(1657);let i=(0,l.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>
1{let{className:a,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,r.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:a})),ref:t,...c})});d.displayName="Button"},23465:function(e,t,a){a.r(t),a.d(t,{AppContext:function(){return l},AppContextProvider:function(){return o}});var r=a(3827),n=a(64090),s=a(56288);let l=(0,n.createContext)({}),o=e=>{let{children:t}=e,[a,o]=(0,n.useState)(void 0),[i,d]=(0,n.useState)(null),[c,u]=(0,n.useState)(null),f=async function(){try{let e=localStorage.getItem("initialReferrer"),t=e?JSON.parse(e).url:null;console.log("initialReferrer",t);let a=await fetch("/api/get-user-info",{method:"POST",body:JSON.stringify({referer:t})});if(a.ok){let e=await a.json();if(e.data){o(e.data);return}}o(null)}catch(e){o(null),console.log("get user info failed: ",e),s.toast.error("get user info failed")}};return(0,n.useEffect)(()=>{f()},[]),(0,r.jsx)(l.Provider,{value:{user:a,fetchUserInfo:f,images:i,setimages:d},children:t})}},1657:function(e,t,a){a.d(t,{cn:function(){return s}});var r=a(75504),n=a(51367);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.m6)((0,r.W)(t))}}}]);

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.