PageSourceSearch

https://reelsgenerator.ai/_next/static/chunks/app/layout-2d7227272d0b63b1.js

js reelsgenerator.ai collected 2026-10-05 15:02:23 UTC 15,440 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{13432:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});let s=new(r(87017)).E},28021:(e,t,r)=>{Promise.resolve().then(r.bind(r,26259)),Promise.resolve().then(r.bind(r,96063)),Promise.resolve().then(r.bind(r,58930)),Promise.resolve().then(r.t.bind(r,69243,23)),Promise.resolve().then(r.t.bind(r,78346,23)),Promise.resolve().then(r.t.bind(r,30347,23)),Promise.resolve().then(r.bind(r,94819)),Promise.resolve().then(r.bind(r,86415)),Promise.resolve().then(r.bind(r,77890)),Promise.resolve().then(r.bind(r,48947)),Promise.resolve().then(r.bind(r,89074))},30285:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,r:()=>l});var s=r(95155);r(12115);var a=r(99708),n=r(74466),o=r(59434);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:r,size:n,asChild:i=!1,...d}=e,c=i?a.DX:"button";return(0,s.jsx)(c,{"data-slot":"button",className:(0,o.cn)(l({variant:r,size:n,className:t})),...d})}},30347:()=>{},48947:(e,t,r)=>{"use strict";r.d(t,{Navbar:()=>b});var s=r(95155),a=r(6874),n=r.n(a),o=r(35695),l=r(30285),i=r(54416),d=r(74783),c=r(57340),h=r(84616),u=r(29676),m=r(71007),f=r(34835),p=r(12115),x=r(94819),v=r(56671),g=r(12108);function b(){var e,t,r,a;let b=(0,o.usePathname)(),[w,j]=(0,p.useState)(!1),[N,y]=(0,p.useState)(!1),k=(0,p.useRef)(null),{logout:A}=(0,x.A)(),{data:S,status:E}=(0,g.useSession)();if((0,p.useEffect)(()=>{let e=()=>y(window.scrollY>20);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,p.useEffect)(()=>{j(!1)},[b]),(0,p.useEffect)(()=>{let e=e=>{"Escape"===e.key&&j(!1)},t=e=>{k.current&&!k.current.contains(e.target)&&j(!1)};return w&&(document.addEventListener("keydown",e),document.addEventListener("mousedown",t)),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[w]),(0,p.useEffect)(()=>(document.body.style.overflow=w?"hidden":"",()=>{document.body.style.overflow=""}),[w]),"/venda"===b)return null;let P=()=>j(e=>!e),C=async()=>{await A(),v.oR.success("Logout realizado com sucesso!")};if("authenticated"!==E)return(0,s.jsxs)("header",{ref:k,className:"fixed w-full z-50 transition-all duration-300 ".concat(N?"py-3 bg-slate-950/95 backdrop-blur-md shadow-lg border-b border-purple-500/10":"py-5 bg-transparent"),children:[(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 flex justify-between items-center",children:[(0,s.jsx)("div",{className:"logo",children:(0,s.jsx)(n(),{href:"/",children:(0,s.jsx)("img",{src:"/logo.png",alt:"Reels Generator",className:"w-[160px] md:w-[180px]"})})}),(0,s.jsxs)("nav",{className:"hidden md:flex items-center gap-8",children:[(0,s.jsx)(n(),{href:"/#features",className:"text-slate-300 hover:text-white text-sm font-medium relative after:absolute after:w-0 after:h-0.5 after:bg-gradient-to-r after:from-pink-500 after:via-purple-500 after:to-orange-500 after:left-0 after:-bottom-1 after:transition-all hover:after:w-full",children:"Recursos"}),(0,s.jsx)(n(),{href:"/#demo",className:"text-slate-300 hover:text-white text-sm font-medium relative after:absolute after:w-0 after:h-0.5 after:bg-gradient-to-r after:from-pink-500 after:via-purple-500 after:to-orange-500 after:left-0 after:-bottom-1 after:transition-all hover:after:w-full",children:"Como Funciona"}
1),(0,s.jsx)(n(),{href:"/#preco",className:"text-slate-300 hover:text-white text-sm font-medium relative after:absolute after:w-0 after:h-0.5 after:bg-gradient-to-r after:from-pink-500 after:via-purple-500 after:to-orange-500 after:left-0 after:-bottom-1 after:transition-all hover:after:w-full",children:"Pre\xe7o"}),(0,s.jsx)(n(),{href:"/#faq",className:"text-slate-300 hover:text-white text-sm font-medium relative after:absolute after:w-0 after:h-0.5 after:bg-gradient-to-r after:from-pink-500 after:via-purple-500 after:to-orange-500 after:left-0 after:-bottom-1 after:transition-all hover:after:w-full",children:"FAQ"}),(0,s.jsx)("div",{className:"h-5 w-px bg-slate-700"}),(0,s.jsx)(n(),{href:"/login",children:(0,s.jsx)(l.$,{variant:"ghost",className:"bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white border-none rounded-xl px-5 py-2 transition-all duration-300 shadow-md shadow-purple-600/20",children:"Login"})})]}),(0,s.jsx)(l.$,{variant:"ghost",size:"icon",className:"md:hidden text-white border-none p-1",onClick:P,"aria-label":w?"Fechar menu":"Abrir menu",children:w?(0,s.jsx)(i.A,{className:"h-6 w-6"}):(0,s.jsx)(d.A,{className:"h-6 w-6"})})]}),(0,s.jsx)("div",{className:"md:hidden absolute top-full left-0 w-full bg-slate-900/98 backdrop-blur-md shadow-xl border-b border-purple-500/20 transition-all duration-200 overflow-hidden ".concat(w?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 -translate-y-2 pointer-events-none"),children:(0,s.jsxs)("div",{className:"py-5 px-4 space-y-1",children:[[{href:"/#features",label:"Recursos"},{href:"/#demo",label:"Como Funciona"},{href:"/#preco",label:"Pre\xe7o"},{href:"/#faq",label:"FAQ"}].map(e=>{let{href:t,label:r}=e;return(0,s.jsx)(n(),{href:t,className:"block px-3 py-2.5 rounded-lg text-slate-300 hover:text-white hover:bg-slate-800/60 font-medium transition-colors",onClick:()=>j(!1),children:r},t)}),(0,s.jsx)("div",{className:"pt-3",children:(0,s.jsx)(n(),{href:"/login",onClick:()=>j(!1),children:(0,s.jsx)(l.$,{className:"w-full bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white rounded-xl py-2.5",children:"Login"})})})]})})]});let z=e=>e?"bg-gradient-to-r from-purple-600/20 to-pink-600/20 text-white border border-purple-500/20":"text-slate-300 hover:bg-slate-800/50 hover:text-white";return(0,s.jsxs)("header",{ref:k,className:"sticky top-0 z-50 bg-slate-900/95 backdrop-blur-md shadow-md border-b border-slate-800",children:[(0,s.jsxs)("div",{className:"max-w-7xl w-full mx-auto px-4 sm:px-6 py-3 flex items-center justify-between",children:[(0,s.jsx)(n(),{href:"/dashboard",className:"flex items-center gap-2",children:(0,s.jsx)("img",{src:"/logo.png",alt:"Reels Generator",className:"w-[150px] md:w-[180px]"})}),(0,s.jsxs)("nav",{className:"hidden md:flex md:items-center md:gap-6",children:[(0,s.jsxs)(n(),{href:"/dashboard",className:"flex items-center gap-2 px-3 py-2 rounded-lg transition-colors ".concat("/dashboard"===b?"bg-slate-800 text-white":"text-slate-300 hover:text-white hover:bg-slate-800/50"),children:[(0,s.jsx)(c.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"font-medium",children:"Dashboard"})]}),(0,s.jsxs)(n(),{href:"/dashboard",className:"flex items-center gap-2 px-3 py-2 rounded-lg transition-colors ".concat("/new-project"===b?"bg-slate-800 text-white":"text-slate-300 hover:text-white hover:bg-slate-800/50"),children:[(0,s.jsx)(h.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"font-medium",children:"Novo Reel"})]}),(0,s.jsxs)(n(),{href:"/dashboard#history",className:"flex items-center gap-2 px-3 py-2 rounded-lg transition-colors text-slate-300 hover:text-white hover:bg-slate-800/50",children:[(0,s.jsx)(u.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"font-medium",children:"Hist\xf3rico"})]}),(0,s.jsx)("div",{className:"h-8 w-px bg-slate-700 mx-2"}),(0,s.jsxs)(n(),{href:"/account",className:"flex items-center gap-2 px-3 py-2 rounded-lg transition-colors ".concat(b.startsWith("/account")?"bg-slate-800 text-white":"text-slate-300 hover:text-white hover:bg-slate-800/50"),children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"font-medium",children:"Conta"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-slate-800/30 text-slate-300",children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"font-medium",children:(null==S?void 0:null===(e=S.user)||void 0===e?void 0:e.name)||(null==S?void 0:null===(t=S.user)||void 0===t?void 0:t.username)||"Usu\xe1rio"})]}),(0,s.jsxs)(l.$,{variant:"outline",size:"sm",className:"ml-2 gap-2 border-slate-700 text-slate-300 hover:text-white hover:bg-slate-800/50 hover:border-slate-600",onClick:C,children:[(0,s.jsx)(f.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Sair"})]})]}),(0,s.jsx)(l.$,{variant:"ghost",size:"icon",className:"md:hidden text-slate-300",onClick:P,"aria-label":w?"Fechar menu":"Abrir menu",children:w?(0,s.jsx)(i.A,{className:"h-5 w-5"}):(0,s.jsx)(d.A,{className:"h-5 w-5"})})]}),(0,s.jsx)("div",{className:"md:hidden absolute top-full left-0 w-full bg-slate-900/98 backdrop-blur-md border-b border-slate-800 shadow-xl transition-all duration-200 overflow-hidden ".concat(w?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 -translate-y-2 pointer-events-none"),children:(0,s.jsxs)("nav",{className:"flex flex-col p-4 space-y-1",children:[(0,s.jsxs)(n(),{href:"/dashboard",className:"flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ".concat(z("/dashboard"===b)),onClick:()=>j(!1),children:[(0,s.jsx)(c.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"font-medium",children:"Dashboard"})]}),(0,s.jsxs)(n(),{href:"/dashboard",className:"flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ".concat(z("/new-project"===b)),onClick:()=>j(!1),children:[(0,s.jsx)(h.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"font-medium",children:"Novo Reel"})]}),(0,s.jsxs)(n(),{href:"/dashboard?tab=history",className:"flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ".concat(z(!1)),onClick:()=>j(!1),children:[(0,s.jsx)(u.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"font-medium",children:"Hist\xf3rico"})]}),(0,s.jsxs)(n(),{href:"/account",className:"flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ".concat(z(b.startsWith("/account"))),onClick:()=>j(!1),children:[(0,s.jsx)(m.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"font-medium",children:"Conta"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-lg bg-slate-800/30 text-slate-300",children:[(0,s.jsx)(m.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"font-medium",children:(null==S?void 0:null===(r=S.user)||void 0===r?void 0:r.name)||(null==S?void 0:null===(a=S.user)||void 0===a?void 0:a.username)||"Usu\xe1rio"})]}),(0,s.jsxs)(l.$,{variant:"outline",className:"mt-2 gap-2 w-full border-slate-700 text-slate-300 hover:text-white hover:bg-slate-800/50 hover:border-slate-600",onClick:()=>{j(!1),C()},children:[(0,s.jsx)(f.A,{className:"h-5 w-5"}),(0,s.jsx)("span",{children:"Sair"})]})]})})]})}},59434:(e,t,r)=>{"use strict";r.d(t,{AX:()=>d,cn:()=>n,fU:()=>i,wG:()=>o});var s=r(52596),a=r(39688);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}function o(e){if(!e||"string"!=typeof e)throw Error("Tempo inv\xe1lido: deve ser uma string no formato HH:MM:SS ou HH:MM:SS,mmm");e=e.trim().replace(",",".");let t=null;for(let r of[/^(\d{1,2}):(\d{1,2}):(\d{1,2})(?:[\.,](\d{1,3}))?$/,/^(\d{1,2}):(\d{1,2})(?:[\.,](\d{1,3}))?$/,/^(\d{1,2})(?:[\.,](\d{1,3}))?$/])if(t=e.match(r))break;if(!t)throw Error("Formato de tempo inv\xe1lido. Use HH:MM:SS[.mmm], MM:SS[.mmm] ou SS[.mmm]");let r=0,s=0,a=0,n=0;if(5===t.length?[,r,s,a,n]=t.map(e=>e?parseInt(e):0):4===t.length?[,s,a,n]=t.map(e=>e?parseInt(e):0):[,a,n]=t.map(e=>e?parseInt(e):0),s>=60||a>=60)throw Error("Minutos e segundos devem ser menores que 60");if(n>0)for(;n<100;)n*=10;let o=3600*r+60*s+a;return n&&(o+=n/1e3),o}function l(e){let[t,r,s]=e.replace(",",".").split(":");return 3600*parseFloat(t)+60*parseFloat(r)+parseFloat(s)}
1function i(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),s=Math.floor(e%60);return"".concat(t.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0"),":").concat(s.toString().padStart(2,"0"))}function d(e,t,r){let s=e.trim().split(/\n\n+/),a=[];for(let e of s){let s=e.trim().split("\n");if(s.length<3)continue;let[n,o]=s[1].split(" --\x3e "),i=l(n),d=l(o);if(i>=t-.5&&d<=r+.5){let e=s.slice(2).join(" ").replace(/<[^>]+>/g,"").trim();a.push(e)}}return Array.from(new Set(a)).join(" ")}},77890:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>n});var s=r(95155);r(12115);var a=r(51362);function n(e){let{children:t,...r}=e;return(0,s.jsx)(a.N,{...r,children:t})}},86415:(e,t,r)=>{"use strict";r.d(t,{ReactQueryProvider:()=>l});var s=r(95155),a=r(13432),n=r(26715),o=r(50192);function l(e){let{children:t}=e;return(0,s.jsxs)(n.Ht,{client:a.q,children:[t,(0,s.jsx)(o.E,{initialIsOpen:!1})]})}},89074:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>o});var s=r(95155),a=r(51362),n=r(56671);let o=e=>{let{...t}=e,{theme:r="system"}=(0,a.D)();return(0,s.jsx)(n.l$,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})}},94819:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,AuthProvider:()=>c});var s=r(95155),a=r(12108),n=r(12115),o=r(35695),l=r(56671);let i=(0,n.createContext)(void 0);function d(e){let{children:t}=e,r=(0,o.useRouter)(),{status:d}=(0,a.useSession)(),c=async(e,t,r)=>{try{let s={username:e,password:t,redirect:!1};"string"==typeof r&&r.trim()&&(s.code=r.trim());let n=await (0,a.signIn)("credentials",s);if(null==n?void 0:n.error)throw Error(n.error);return}catch(t){let e=(null==t?void 0:t.message)||String(t);throw e.includes("2faRequired")||e.includes("2faInvalid")||e.includes("subscriptionInactive")||console.error("Erro ao fazer login:",t),t}},h=async()=>{await (0,a.signOut)({redirect:!1}),r.refresh(),r.push("/login")};return(0,n.useEffect)(()=>{if("authenticated"!==d)return;let e=!1,t=async()=>{try{let t=await fetch("/api/auth/validate-session",{method:"GET",cache:"no-store"});if(e)return;409===t.status&&(l.oR.message("Sua sess\xe3o expirou. Fa\xe7a login novamente."),await h())}catch(e){}};t();let r=setInterval(t,3e4);return()=>{e=!0,clearInterval(r)}},[d]),(0,s.jsx)(i.Provider,{value:{login:c,logout:h},children:t})}function c(e){let{children:t}=e;return(0,s.jsx)(a.SessionProvider,{children:(0,s.jsx)(d,{children:t})})}function h(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("useAuth deve ser usado dentro de um AuthProvider");return e}}},e=>{var t=t=>e(e.s=t);e.O(0,[2191,7690,3455,6874,3753,6967,7017,2108,3349,8441,1684,7358],()=>t(28021)),_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.