PageSourceSearch

https://maestro.pontua.com.br/assets/EmployeeTermAcceptance-sMm-Zy96.js

js pontua.com.br collected 2026-10-01 14:16:16 UTC 3,798 bytes, 1 lines download raw bytes

1import{r as l,u as C,j as e,N as n,L as A}from"./vendor-react-DIA7vK4g.js";import{u as k}from"./useEmployeeOnboarding-CbwMSPww.js";import{u as S}from"./useIsEmployee-Cwr-rJfu.js";import{bh as T,aa as c,d as y,by as L,aH as E}from"./index-DtUVjOr4.js";import{G,b as B,c as F,a as H}from"./GlowCard-eEGJc4nM.js";import{G as P}from"./GlowButton-DmpRcAFP.js";import{B as d}from"./BlurBackground-ClCPgGtR.js";import{S as z}from"./scroll-area-DFJSP9HM.js";import{F as I}from"./file-check-DxTrjYKQ.js";import{M as _}from"./index-CeKSU_Wy.js";import"./vendor-docs-BA9xu9ak.js";import"./vendor-utils-DWHjTIse.js";import"./vendor-supabase-_bOAMmkC.js";function Z(){const{isEmployee:m,hasAcceptedTerm:h,isLoading:x}=S(),{allowedTools:p}=T(),{term:s,isLoadingTerm:u,acceptTerm:f,isAccepting:o}=k(),[t,g]=l.useState(!1),[i,j]=l.useState(!1),w=C(),b=p.filter(a=>a.status==="active").length>0,v=a=>{const r=a.target;r.scrollHeight-r.scrollTop<=r.clientHeight+50&&g(!0)},N=()=>{s&&f({termId:s.id,userAgent:navigator.userAgent},{onSuccess:()=>{w("/parceiro-pontua/colaborador/onboarding")}})};return x||u?e.jsxs("div",{className:"min-h-screen relative",children:[e.jsx(d,{variant:"onboarding"}),e.jsx("div",{className:"flex items-center justify-center min-h-screen relative z-10",children:e.jsx(c,{className:"h-8 w-8 animate-spin text-[hsl(1,100%,50%)]"})})]}):m?h?e.jsx(n,{to:"/parceiro-pontua/colaborador/onboarding",replace:!0}):e.jsxs("div",{className:"h-screen relative flex flex-col items-center justify-center p-4 overflow-hidden",children:[e.jsx(d,{variant:"onboarding"}),b&&e.jsx("div",{className:"w-full max-w-3xl relative z-10 mb-3",children:e.jsxs(A,{to:"/",className:"inline-flex items-center gap-1.5 text-sm text-white/60 hover:text-white transition-colors",children:[e.jsx(y,{className:"h-4 w-4"}),"Voltar para Central de Ferramentas"]})}),e.jsxs(G,{className:"w-full max-w-3xl relative z-10 max-h-[calc(100vh-80px)] overflow-hidden",children:[e.jsxs(B,{className:"text-center",children:[e.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-gradient-to-br from-[hsl(1,100%,50%)] to-[hsl(1,90%,45%)] flex items-center justify-center mb-2 shadow-[0_0_30px_hsla(1,100%,50%,0.4)]",children:e.jsx(I,{className:"h-6 w-6 text-white"})}),e.jsx(F,{className:"text-xl",children:"Termo de Adesão ao Programa"}),e.jsx("p",{className:"text-white/60 mt-1",children:"Leia atentamente o termo abaixo antes de continuar"})]}
1),e.jsxs(H,{className:"space-y-3",children:[e.jsx(z,{className:"h-[35vh] lg:h-[40vh] rounded-xl border border-white/10 bg-[hsl(222,60%,8%)] p-4",onScrollCapture:v,children:e.jsx("div",{className:"prose prose-invert prose-sm max-w-none",children:e.jsx(_,{children:(s==null?void 0:s.content)||""})})}),e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-white/5 border border-white/10",children:[e.jsx(L,{id:"agree",checked:i,onCheckedChange:a=>j(a===!0),disabled:!t,className:"mt-1 border-white/30 data-[state=checked]:bg-[hsl(1,100%,50%)] data-[state=checked]:border-[hsl(1,100%,50%)]"}),e.jsxs("label",{htmlFor:"agree",className:`text-sm ${t?"text-white cursor-pointer":"text-white/40"}`,children:["Li e concordo com os termos e condições do Programa de Indicações para Colaboradores Pontua",!t&&e.jsx("span",{className:"block text-xs text-white/40 mt-1",children:"(Role até o final do documento para habilitar)"})]})]}),e.jsx(P,{onClick:N,disabled:!i||o,className:"w-full",children:o?e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"h-4 w-4 mr-2 animate-spin"}),"Processando..."]}):e.jsxs(e.Fragment,{children:[e.jsx(E,{className:"h-4 w-4 mr-2"}),"Aceitar e Continuar"]})}),e.jsxs("p",{className:"text-xs text-center text-white/40",children:["Versão do termo: ",s==null?void 0:s.version]})]})]})]}):e.jsx(n,{to:"/parceiro-pontua",replace:!0})}export{Z as default};

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.