PageSourceSearch

https://givaways.app/_next/static/chunks/pages/login-cf862dd61f52bf9b.js

js givaways.app collected 2026-09-24 14:31:53 UTC 15,328 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{9846:function(e,t,n){"use strict";n.d(t,{g:function(){return h}});var r,o=n(7956),a=n(6729),i=n.n(a),s=n(5415),c=n.n(s),u=(n(439),n(1786)),l=n(103),d=(0,u.vJ)(r||(r=(0,o.Z)(["\n    body {\n        margin: 0;\n        background: #f9fafb;\n        color: #24272b;\n    }\n"]))),p=u.ZP.div.withConfig({displayName:"AuthLayout__Shell",componentId:"sc-1j1ssk1-0"})(["min-height:100vh;padding:49px 16px 72px;font-family:Inter,Arial,sans-serif;font-size:15px;line-height:1.5;letter-spacing:0;*,*::before,*::after{box-sizing:border-box;}button,input{font:inherit;letter-spacing:0;}.auth-logo{width:fit-content;margin:0 auto 35px;display:block;}.auth-logo img{width:174px;height:auto;display:block;}main{width:min(100%,508px);margin:0 auto;animation:auth-enter .22s ease-out both;}.auth-intro{margin-bottom:25px;text-align:center;}.auth-intro h1{margin:0;color:#222326;font-size:40px;font-weight:700;line-height:48px;}.auth-intro p{margin:4px 0 0;color:#747b85;font-size:15px;line-height:22px;}.auth-form{padding:29px 30px 30px;border:1px solid #e3e5e9;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.02);}.auth-provider{width:100%;height:46px;padding:0 18px;position:relative;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #d2d6dc;border-radius:8px;background:#fff;color:#25272b;font-size:16px;font-weight:500;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease;}.auth-provider:hover:not(:disabled){border-color:#a99bd1;background:#fcfbff;box-shadow:0 1px 3px rgba(16,24,40,.06);}.auth-provider.meta{margin-top:10px;border-color:#1877f2;background:#1877f2;color:#fff;}.auth-provider.meta:hover:not(:disabled){border-color:#0f66d0;background:#0f66d0;}.auth-provider-note{margin:8px 4px 0;color:#747b85;font-size:11px;line-height:16px;text-align:center;}.auth-provider:disabled{opacity:.58;cursor:wait;}.auth-provider svg{width:18px;height:18px;flex:0 0 auto;}.auth-separator{margin:22px 0 20px;display:flex;align-items:center;gap:14px;color:#8c9199;font-size:12px;text-transform:uppercase;}.auth-separator::before,.auth-separator::after{content:'';height:1px;flex:1;background:#e5e7eb;}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}.auth-field{margin-top:16px;}form > .auth-field:first-child,.auth-grid:first-child .auth-field{margin-top:0;}.auth-field label{margin-bottom:7px;display:block;color:#33363b;font-size:13px;font-weight:500;}.auth-input{position:relative;}.auth-input > svg{width:17px;height:17px;position:absolute;z-index:1;top:50%;left:17px;color:#9ba0a8;pointer-events:none;transform:translateY(-50%);}.auth-field input{width:100%;height:48px;padding:0 15px 0 49px;outline:0;border:1px solid #d2d6dc;border-radius:6px;background:#fff;color:#24272b;font-size:14px;transition:border-color .16s ease,box-shadow .16s ease;}.auth-field input:focus{border-color:#7458c6;box-shadow:0 0 0 3px rgba(98,68,187,.11);}.auth-field small{margin-top:6px;display:block;color:#747b85;font-size:12px;}.auth-submit{width:100%;height:46px;margin-top:21px;border:1px solid #6244bb;border-radius:8px;background:#6244bb;color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,transform .16s ease;}.auth-submit:hover:not(:disabled){border-color:#4f359a;background:#4f359a;}.auth-submit:active:not(:disabled){transform:translateY(1px);}.auth-submit:disabled{opacity:.58;cursor:wait;}.auth-help{margin-top:16px;display:flex;justify-content:center;color:#747b85;font-size:13px;}.auth-help a,.auth-bottom a{color:#6244bb;font-weight:500;text-decoration:none;}.auth-help a:hover,.auth-bottom a:hover{text-decoration:underline;}.auth-bottom{margin:23px 0 0;color:#6f7680;text-align:center;font-size:14px;}.auth-message{margin:16px 0 0;padding:10px 12px;border-radius:6px;background:#f3f0fb;color:#4d3597;font-size:13px;line-height:19px;}.auth-message.error{background:#fff0f3;color:#a32042;}.auth-turnstile{min-height:1px;margin-top:16px;display:flex;justify-content:center;}.auth-turnstile-error{margin:0;color:#a32042;font-size:12px;text-align:center;}@keyframes auth-enter{from{opacity:0;transform:translateY(7px);}to{opacity:1;transform:translateY(0);}}@media (max-width:560px){padding:34px 16px 48px;.auth-logo{margin-bottom:28px;}.auth-logo img{width:157px;}.auth-intro{margin-bottom:20px;}.auth-intro h1{font-size:32px;line-height:39px;}.auth-form{padding:24px 20px 25px;}.auth-grid{grid-template-columns:1fr;gap:0;}.auth-grid .auth-field + .auth-field{margin-top:16px;}}@media (prefers-reduced-motion:reduce){main{animation:none;}.auth-provider,.auth-submit,.auth-field input{transition:none;}}"]),h=function(e){var t=e.title,n=e.description,r=e.children;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsxs)("title",{children:[t," | Givaways.app"]}),(0,l.jsx)("meta",{name:"description",content:n}),(0,l.jsx)("meta",{name:"robots",content:"noindex,follow"})]}),(0,l.jsx)(d,{}),(0,l.jsxs)(p,{children:[(0,l.jsx)(c(),{href:"/",children:(0,l.jsx)("a",{className:"auth-logo","aria-label":"Givaways.app",children:(0,l.jsx)("img",{src:"/img/logo_givaways.svg",alt:"Givaways.app"})})}),(0,l.jsx)("main",{children:r})]})]})}},7569:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(6616),o=n(4432),a=n.n(o),i=n(439),s=n(5440),c=n(6427),u=n(103),l="givaways-google-identity",d=function(e){var t=e.disabled,n=e.onAccessToken,o=e.onError,d="en"===(0,c.useRouter)().locale,p=(0,i.useRef)(null),h=(0,i.useRef)(n),f=(0,i.useRef)(o),g=(0,i.useState)(!1),m=g[0],x=g[1],b=(0,i.useState)(!1),v=b[0],w=b[1];(0,i.useEffect)((function(){h.current=n,f.current=o}),[n,o]),(0,i.useEffect)((function(){var e="144435712873-8tgke0j2u4rn43nq4tpciat47t8hdquh.apps.googleusercontent.com";var t=function(){window.google&&!p.current&&(p.current=window.google.accounts.oauth2.initTokenClient({client_id:e,scope:"openid email profile",callback:function(){var e=(0,r.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.access_token&&!t.error){e.next=4;break}return w(!1),f.current(d?"Could not continue with Google.":"N\xe3o foi poss\xedvel continuar com Google."),e.abrupt("return");case 4:return e.prev=4,e.next=7,h.current(t.access_token);case 7:return e.prev=7,w(!1),e.finish(7);case 10:case"end":return e.stop()}}),e,null,[[4,,7,10]])})));return function(t){return e.apply(this,arguments)}}(),error_callback:function(){w(!1),f.current(d?"Google access was canceled.":"O acesso com Google foi cancelado.")}}),x(!0))};if(!window.google){var n=document.getElementById(l);return n||((n=document.createElement("script")).id=l,n.src="https://accounts.google.com/gsi/client",n.async=!0,n.defer=!0,document.head.appendChild(n)),n.addEventListener("load",t),function(){var e;return null===(e=n)||void 0===e?void 0:e.removeEventListener("load",t)}}t()}),[d]);return(0,u.jsxs)("button",{className:"auth-provider",type:"button",disabled:!m||t||v,onClick:function(){!p.current||t||v||(w(!0),p.current.requestAccessToken({prompt:"select_account"}))},children:[(0,u.jsx)(s.JM8,{"aria-hidden":"true"}),v?d?"Connecting...":"Conectando...":d?"Continue with Google":"Continuar com Google"]})}},4981:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(439),o=n(103),a="givaways-turnstile",i=function(e){var t=e.onToken,n=e.resetSignal,i=void 0===n?0:n,s=(0,r.useRef)(null),c=(0,r.useRef)(null),u=(0,r.useRef)(t),l=(0,r.useRef)(i),d=(0,r.useState)(""),p=d[0],h=d[1];return(0,r.useEffect)((function(){u.current=t}),[t]),(0,r.useEffect)((function(){var e=!1,t="0x4AAAAAAD8UI45ouztnmmhC";var n=function(){!e&&s.current&&window.turnstile&&!c.current&&(c.current=window.turnstile.render(s.current,{sitekey:t,theme:"light",size:"flexible",appearance:"interaction-only",callback:function(e){h(""),u.current(e)},"expired-callback":function(){u.current(""),c.current&&window.turnstile&&window.turnstile.reset(c.current)},"timeout-callback":function(){u.current(""),c.current&&window.turnstile&&window.turnstile.reset(c.current)},"error-callback":function(){u.current(""),h("N\xe3o foi poss\xedvel carregar a verifica\xe7\xe3o de seguran\xe7a.")}}))};if(window.turnstile)n();else{var r=document.getElementById(a);r||((r=document.createElement("script")).id=a,r.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",r.async=!0,r.defer=!0,document.head.appendChild(r)),r.addEventListener("load",n)}return function(){e=!0;var t=c.current;t&&window.turnstile&&window.turnstile.remove(t),c.current=null}}),[]),(0,r.useEffect)((function(){l.current!==i&&(l.current=i,c.current&&window.turnstile&&(window.turnstile.reset(c.current),u.current("")))}),[i]),(0,o.jsx)("div",{className:"auth-turnstile",children:p?(0,o.jsx)("p",{className:"auth-turnstile-error",role:"alert",children:p}):(0,o.jsx)("div",{ref:s})})}},6274:function(e,t,n){"use strict";n.d(t,{N:function(){return o},d:function(){return a}});var r="https://givaways.app",o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/dashboard";if("string"!==typeof e||!e.startsWith("/")||e.startsWith("//")||e.includes("\\"))return t;try{var n=new URL(e,r);return n.origin!==r?t:"".concat(n.pathname).concat(n.search).concat(n.hash)}catch(o){return t}},a=function(e,t){return"".concat(e,"?next=").concat(encodeURIComponent(o(t)))}},2566:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var r=n(6616),o=n(4432),a=n.n(o),i=n(5415),s=n.n(i),c=n(6427),u=n(439),l=n(6410),d=n(9846),p=n(7569),h=n(4981),f=n(6274),g=n(286),m=n(103),x=function(){var e=(0,c.useRouter)(),t=(0,u.useState)(""),n=t[0],o=t[1],i=(0,u.useState)(""),x=i[0],b=i[1],v=(0,u.useState)(""),w=v[0],k=v[1],y=(0,u.useState)(0),j=y[0],_=y[1],N=(0,u.useState)(!1),C=N[0],E=N[1],S=(0,u.useState)(""),z=S[0],A=S[1],I=(0,f.N)(e.query.next),R="en"===e.locale,G=R?{title:"Sign in",description:"Sign in to your Givaways account.",heading:"Welcome!",intro:"Sign in to your account",meta:"Continue with Facebook and Instagram",metaNote:"Connects a Facebook Page and its linked professional Instagram account for comment giveaways.",or:"or",email:"Email",password:"Password",security:"Complete the security check.",submit:"Sign in",submitting:"Signing in...",recover:"Recover password",noAccount:"Don't have an account?",signup:"Sign up"}:{title:"Entrar",description:"Entre na sua conta Givaways.",heading:"Ol\xe1!",intro:"Entre na sua conta aqui",meta:"Continuar com Facebook e Instagram",metaNote:"Conecta uma P\xe1gina do Facebook e a conta profissional do Instagram vinculada para sorteios por coment\xe1rios.",or:"ou",email:"E-mail",password:"Senha",security:"Conclua a verifica\xe7\xe3o de seguran\xe7a.",submit:"Conecte-se",submitting:"Entrando...",recover:"Recuperar senha",noAccount:"Voc\xea n\xe3o tem uma conta?",signup:"Inscrever-se"},T=(0,u.useCallback)((0,r.Z)(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.push(I);case 2:case"end":return t.stop()}}),t)}))),[I,e]),F=(0,u.useCallback)(function(){var e=(0,r.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(""),e.prev=1,e.next=4,(0,g.H)("google",{accessToken:t,turnstileToken:w}
1);case 4:return e.next=6,T();case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),A(e.t0 instanceof Error?e.t0.message:"N\xe3o foi poss\xedvel continuar com Google."),_((function(e){return e+1}));case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),[T,w]),q=(0,u.useCallback)((function(e){return A(e)}),[]),P=(0,u.useCallback)((function(e){return k(e)}),[]),Z=function(){var e=(0,r.Z)(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),w){e.next=4;break}return A(G.security),e.abrupt("return");case 4:return E(!0),A(""),e.prev=6,e.next=9,(0,g.H)("login",{email:n,password:x,turnstileToken:w});case 9:return e.next=11,T();case 11:e.next=18;break;case 13:e.prev=13,e.t0=e.catch(6),A(e.t0 instanceof Error?e.t0.message:"N\xe3o foi poss\xedvel entrar."),_((function(e){return e+1})),E(!1);case 18:case"end":return e.stop()}}),e,null,[[6,13]])})));return function(t){return e.apply(this,arguments)}}();return(0,m.jsxs)(d.g,{title:G.title,description:G.description,children:[(0,m.jsxs)("div",{className:"auth-intro",children:[(0,m.jsx)("h1",{children:G.heading}),(0,m.jsx)("p",{children:G.intro})]}),(0,m.jsxs)("div",{className:"auth-form",children:[(0,m.jsx)(p.$,{disabled:!w,onAccessToken:F,onError:q}),(0,m.jsxs)("button",{className:"auth-provider meta",type:"button",onClick:function(){A("");var e=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/dashboard",n="399219019063562";if(!n)return null;window.sessionStorage.setItem("givaways-auth-next",t);var r="".concat(window.location.origin,"/facebook/callback"),o=new URLSearchParams({client_id:n,display:"page",redirect_uri:r,response_type:"token,signed_request,graph_domain",return_scopes:"true"}),a=null===(e="1341048050854465")||void 0===e?void 0:e.trim();return a?o.set("config_id",a):o.set("scope","pages_read_engagement,instagram_basic,instagram_manage_comments,email,pages_show_list"),window.location.pathname.startsWith("/en/")&&o.set("locale","en_US"),"https://www.facebook.com/v24.0/dialog/oauth?".concat(o.toString())}("/dashboard"===I?"".concat(R?"/en":"/pt","/contas"):I);e?window.location.assign(e):A(R?"Facebook connection is not configured.":"A conex\xe3o com o Facebook n\xe3o est\xe1 configurada.")},children:[(0,m.jsx)(l.Bsb,{"aria-hidden":"true"}),G.meta]}),(0,m.jsx)("p",{className:"auth-provider-note",children:G.metaNote}),(0,m.jsx)("div",{className:"auth-separator",children:G.or}),(0,m.jsxs)("form",{onSubmit:Z,children:[(0,m.jsxs)("div",{className:"auth-field",children:[(0,m.jsx)("label",{htmlFor:"login-email",children:G.email}),(0,m.jsxs)("div",{className:"auth-input",children:[(0,m.jsx)(l.Imn,{"aria-hidden":"true"}),(0,m.jsx)("input",{id:"login-email",type:"email",autoComplete:"email",required:!0,value:n,onChange:function(e){return o(e.target.value)}})]})]}),(0,m.jsxs)("div",{className:"auth-field",children:[(0,m.jsx)("label",{htmlFor:"login-password",children:G.password}),(0,m.jsxs)("div",{className:"auth-input",children:[(0,m.jsx)(l.UIZ,{"aria-hidden":"true"}),(0,m.jsx)("input",{id:"login-password",type:"password",autoComplete:"current-password",required:!0,value:x,onChange:function(e){return b(e.target.value)}})]})]}),(0,m.jsx)(h.A,{onToken:P,resetSignal:j}),z&&(0,m.jsx)("p",{className:"auth-message error",role:"alert",children:z}),(0,m.jsx)("button",{className:"auth-submit",type:"submit",disabled:C||!w,children:C?G.submitting:G.submit})]}),(0,m.jsx)("div",{className:"auth-help",children:(0,m.jsx)(s(),{href:"".concat(R?"/en":"/pt","/recuperar-senha"),children:(0,m.jsx)("a",{children:G.recover})})})]}),(0,m.jsxs)("p",{className:"auth-bottom",children:[G.noAccount," ",(0,m.jsx)(s(),{href:(0,f.d)(R?"/en/signup":"/pt/signup",I),children:(0,m.jsx)("a",{children:G.signup})})]})]})}},7946:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(2566)}])}},function(e){e.O(0,[4540,9774,2888,179],(function(){return t=7946,e(e.s=t);var t}));var t=e.O();_N_E=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.