PageSourceSearch

https://removevideobackground.org/_next/static/chunks/app/layout-c…?dpl=dpl_HHWdG5dunTFuQRa6KBD2LmVuWefc

js removevideobackground.org collected 2026-10-07 20:56:01 UTC 12,466 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{383:function(e,t,s){Promise.resolve().then(s.t.bind(s,5127,23)),Promise.resolve().then(s.bind(s,8445)),Promise.resolve().then(s.bind(s,7743)),Promise.resolve().then(s.t.bind(s,8978,23)),Promise.resolve().then(s.t.bind(s,2461,23)),Promise.resolve().then(s.t.bind(s,3901,23))},6453:function(e,t,s){"use strict";s.d(t,{_:function(){return i}});var r=s(3761),n=s(4707),l=s(4158),a=s(8558),o=s(3695);function i(e){let{isOpen:t,onClose:s,callbackUrl:i="/"}=e;return(0,r.jsx)(n.u,{appear:!0,show:t,as:a.Fragment,children:(0,r.jsxs)(l.Vq,{as:"div",className:"relative z-50",onClose:s,children:[(0,r.jsx)(n.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"fixed inset-0 bg-black/25 backdrop-blur-sm"})}),(0,r.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,r.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,r.jsx)(n.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,r.jsxs)(l.Vq.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-8 shadow-xl transition-all relative",children:[(0,r.jsx)("button",{onClick:s,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-500 focus:outline-none",children:(0,r.jsx)("svg",{className:"h-6 w-6",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.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(l.Vq.Title,{as:"h3",className:"text-2xl font-bold text-gray-900 mb-2",children:"Welcome Back"}),(0,r.jsx)("p",{className:"text-gray-500 mb-8",children:"Please sign in to continue using our services"})]}),(0,r.jsxs)("button",{onClick:()=>(0,o.signIn)("google",{callbackUrl:i}),className:"w-full flex items-center justify-center gap-3 px-4 py-3 text-base font-medium rounded-lg border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 transition-colors shadow-sm",children:[(0,r.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,r.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,r.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,r.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),"Continue with Google"]}),(0,r.jsx)("div",{className:"mt-6 text-center",children:(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:["By continuing, you agree to our"," ",(0,r.jsx)("a",{href:"/terms",className:"text-blue-600 hover:underline",children:"Terms of Service"})," ","and"," ",(0,r.jsx)("a",{href:"/privacy",className:"text-blue-600 hover:underline",children:"Privacy Policy"})]})})]})})})})]})})}},8445:function(e,t,s){"use strict";s.d(t,{default:function(){return c}});var r=s(3761),n=s(295),l=s(4469),a=s(3695),o=s(8558),i=s(6453);function c(){var e,t,s,c;let[d,u]=(0,o.useState)(0),[m,h]=(0,o.useState)(!1),[x,f]=(0,o.useState)(!1),[v,g]=(0,o.useState)(!1),p=(0,o.useRef)(null),b=(0,o.useRef)(null),j=async()=>{try{let e=await fetch("/api/get-user-info",{method:"POST"});if(!e.ok)throw Error("Failed to fetch user info");let{code:t,message:s,data:r}=await e.json();console.log("fetchUserInfo res",r),0===t&&r&&void 0!==r.credits?u(r.credits):console.error("获取积分失败:",s)}catch(e){console.error("获取用户信息出错:",e)}},{data:y}=(0,a.useSession)();return(0,o.useEffect)(()=>{(null==y?void 0:y.user)&&j()},[y]),(0,o.useEffect)(()=>{function e(e){p.current&&!p.current.contains(e.target)&&g(!1),b.current&&!b.current.contains(e.target)&&h(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,o.useEffect)(()=>(m?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[m]),(0,r.jsxs)("nav",{className:"w-full bg-blue-50 z-50 relative",children:[(0,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"flex justify-between items-center h-16 relative",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsxs)(n.default,{href:"/",className:"flex items-center space-x-2 group",children:[(0,r.jsx)(l.default,{src:"/logo.png",alt:"Remove Video Backgroun
1d Logo",width:20,height:20,className:"h-5 w-5 transform transition-transform duration-200 hover:scale-110"}),(0,r.jsxs)("span",{className:"text-xl font-bold relative after:absolute after:bottom-0 after:left-1/2 after:h-[2px] after:w-0 after:bg-blue-600 after:transition-all after:duration-300 group-hover:after:left-0 group-hover:after:w-full",children:[(0,r.jsx)("span",{className:"hidden sm:inline",children:"Remove Video Background"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Remove Video Background"})]})]})}),(0,r.jsxs)("div",{className:"hidden md:flex absolute left-1/2 transform -translate-x-1/2 items-center space-x-6",children:[(0,r.jsx)(n.default,{href:"/remove-image-background",className:"text-gray-700 hover:text-blue-600 transition-colors font-medium whitespace-nowrap",children:"Remove Image Background"}),(0,r.jsx)(n.default,{href:"/pricing",className:"text-gray-700 hover:text-blue-600 transition-colors font-medium whitespace-nowrap",children:"Pricing"})]}),(0,r.jsxs)("div",{className:"hidden md:flex items-center space-x-4",children:[(0,r.jsx)("select",{className:"bg-transparent text-gray-700 focus:outline-none cursor-pointer",children:(0,r.jsx)("option",{value:"en",children:"English"})}),(null==y?void 0:y.user)&&(0,r.jsx)("div",{className:"flex items-center mr-4",children:(0,r.jsxs)("div",{className:"text-sm",children:[(0,r.jsx)("span",{className:"font-medium",children:"Credits: "}),(0,r.jsx)("span",{className:"text-blue-600",children:d})]})}),y?(0,r.jsxs)("div",{className:"relative",ref:p,children:[(0,r.jsx)("button",{onClick:()=>g(!v),className:"flex items-center space-x-2 focus:outline-none",children:(0,r.jsx)("div",{className:"w-8 h-8 rounded-full overflow-hidden",children:(0,r.jsx)(l.default,{src:(null===(e=y.user)||void 0===e?void 0:e.image)||"/default-avatar.png",alt:"User avatar",width:32,height:32,className:"w-full h-full object-cover"})})}),v&&(0,r.jsxs)("div",{className:"absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 animate-fade-in",children:[(0,r.jsx)("div",{className:"px-4 py-2 text-sm text-gray-700 border-b border-gray-100",children:null===(t=y.user)||void 0===t?void 0:t.name}),(0,r.jsx)("button",{onClick:()=>(0,a.signOut)(),className:"w-full text-left px-4 py-2 text-sm text-red-600 hover:bg-gray-50",children:"Sign out"})]})]}):(0,r.jsx)("button",{onClick:()=>f(!0),className:"px-4 py-2 text-sm font-medium text-white rounded-md bg-gradient-to-r from-blue-600 to-blue-500 hover:from-blue-700 hover:to-blue-600 transition-colors",children:"Sign In"})]}),(0,r.jsxs)("div",{className:"md:hidden flex items-center space-x-3",children:[(null==y?void 0:y.user)&&(0,r.jsx)("div",{className:"w-8 h-8 rounded-full overflow-hidden",children:(0,r.jsx)(l.default,{src:(null===(s=y.user)||void 0===s?void 0:s.image)||"/default-avatar.png",alt:"User avatar",width:32,height:32,className:"w-full h-full object-cover"})}),(0,r.jsxs)("button",{onClick:()=>h(!m),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-700 hover:text-blue-600 hover:bg-blue-100 focus:outline-none transition-colors","aria-expanded":"false",children:[(0,r.jsx)("span",{className:"sr-only",children:"Open main menu"}),m?(0,r.jsx)("svg",{className:"block h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}):(0,r.jsx)("svg",{className:"block h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})]})]})]})}),(0,r.jsx)("div",{ref:b,className:"md:hidden absolute top-16 left-0 right-0 bg-white shadow-lg transition-all duration-300 ease-in-out transform origin-top ".concat(m?"opacity-100 scale-y-100 visible":"opacity-0 scale-y-0 invisible"),children:(0,r.jsxs)("div",{className:"px-4 pt-2 pb-3 space-y-1",children:[(0,r.jsx)(n.default,{href:"/remove-image-background",onClick:()=>h(!1),className:"block px-3 py-3 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-blue-50 transition-colors",children:"Remove Image Backgroun
1d"}),(0,r.jsx)(n.default,{href:"/pricing",onClick:()=>h(!1),className:"block px-3 py-3 rounded-md text-base font-medium text-gray-700 hover:text-blue-600 hover:bg-blue-50 transition-colors",children:"Pricing"}),(null==y?void 0:y.user)&&(0,r.jsx)("div",{className:"px-3 py-3 border-t border-gray-100",children:(0,r.jsx)("div",{className:"flex items-center justify-between",children:(0,r.jsxs)("div",{className:"text-sm",children:[(0,r.jsx)("span",{className:"font-medium text-gray-700",children:"Credits: "}),(0,r.jsx)("span",{className:"text-blue-600 font-semibold",children:d})]})})}),(0,r.jsx)("div",{className:"border-t border-gray-100 pt-2",children:(0,r.jsxs)("div",{className:"px-3 py-2",children:[(0,r.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Language"}),(0,r.jsx)("select",{className:"mt-1 block w-full bg-white border border-gray-300 rounded-md py-2 px-3 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500",children:(0,r.jsx)("option",{value:"en",children:"English"})})]})}),y?(0,r.jsxs)("div",{className:"border-t border-gray-100 pt-2 space-y-1",children:[(0,r.jsx)("div",{className:"px-3 py-2 text-sm text-gray-700 font-medium",children:null===(c=y.user)||void 0===c?void 0:c.name}),(0,r.jsx)("button",{onClick:()=>{h(!1),(0,a.signOut)()},className:"w-full text-left px-3 py-3 rounded-md text-base font-medium text-red-600 hover:bg-red-50 transition-colors",children:"Sign out"})]}):(0,r.jsx)("div",{className:"border-t border-gray-100 pt-2",children:(0,r.jsx)("button",{onClick:()=>{h(!1),f(!0)},className:"w-full px-3 py-3 text-base font-medium text-white rounded-md bg-gradient-to-r from-blue-600 to-blue-500 hover:from-blue-700 hover:to-blue-600 transition-colors",children:"Sign In"})})]})}),(0,r.jsx)(i._,{isOpen:x,onClose:()=>f(!1)})]})}},7743:function(e,t,s){"use strict";s.d(t,{NextAuthProvider:function(){return l}});var r=s(3761),n=s(3695);function l(e){let{children:t}=e;return(0,r.jsx)(n.SessionProvider,{children:(0,r.jsx)("div",{className:"w-full h-full",children:t})})}},4469:function(e,t,s){"use strict";s.d(t,{default:function(){return n.a}});var r=s(5505),n=s.n(r)},295:function(e,t,s){"use strict";s.d(t,{default:function(){return n.a}});var r=s(1234),n=s.n(r)},5505:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return i},getImageProps:function(){return o}});let r=s(2022),n=s(6673),l=s(8978),a=r._(s(2239));function o(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let i=l.Image},5127:function(){},3901:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}}},function(e){e.O(0,[681,719,234,978,461,744,588,560],function(){return e(e.s=383)}),_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.