1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10052],{10052:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var r=a(57437),s=a(2265),l=a(12713),n=a(27648),o=a(3548),i=a(41833),c=a(54603);function d(e){let{photoDataUrl:t,aiScore:d,surface:h}=e,[u,x]=(0,s.useState)(!1),[p,m]=(0,s.useState)(""),[b,f]=(0,s.useState)(!1),[g,y]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),[v,N]=(0,s.useState)(!1),[k,_]=(0,s.useState)(!1),[S,L]=(0,s.useState)(void 0),[C,R]=(0,s.useState)(void 0),[T,E]=(0,s.useState)(!1),[U,I]=(0,s.useState)("");(0,s.useEffect)(()=>{m((0,c.FJ)())},[]);let H=h??(t?"scan_results":"scan_results_link"),O=(0,s.useRef)(!1);(0,s.useEffect)(()=>{O.current||(O.current=!0,(0,o.L9)("hs_optin_viewed",{surface:H}),(0,o.L9)(t?"hs_optin_viewed_form":"hs_optin_viewed_link"))},[t,H]);let W=(0,s.useRef)(!1),G=(0,s.useRef)(null);if((0,s.useEffect)(()=>{if(W.current)return;let e=G.current;if(!e||"undefined"==typeof IntersectionObserver)return;let a=null,r=new IntersectionObserver(e=>{for(let s of e)if(s.intersectionRatio>=.5){if(a||W.current)continue;a=setTimeout(()=>{if(!W.current){W.current=!0;try{(0,o.L9)("hs_optin_seen",{surface:H}),(0,o.L9)(t?"hs_optin_seen_form":"hs_optin_seen_link")}catch{}r.disconnect()}},600)}else a&&(clearTimeout(a),a=null)},{threshold:[0,.5,1]});return r.observe(e),()=>{a&&clearTimeout(a),r.disconnect()}},[t]),!t)return(0,r.jsxs)("div",{className:"mt-6 rounded-2xl border border-white/[0.10] bg-white/[0.03] p-5 text-center",children:[(0,r.jsx)("p",{className:"text-[11px] font-bold text-white/50 uppercase tracking-[0.16em] mb-2",children:"Human Score"}),(0,r.jsx)("p",{className:"text-white text-[15px] font-bold mb-1.5",children:"Want a human second opinion?"}),(0,r.jsx)("p",{className:"text-[13px] text-white/60 leading-relaxed mb-4",children:"Real people rate your photo 1â10 â numbers only, no comments. We email you once 10 votes are in, and you can delete it at any time."}),(0,r.jsx)(n.default,{href:"/contribute?source=scan_results_link",onClick:()=>{try{(0,o.L9)("hs_optin_link_clicked",void 0,{beacon:!0})}catch{}},className:"inline-flex w-full items-center justify-center rounded-full bg-white/10 px-5 py-3 text-[13px] font-extrabold text-white transition hover:bg-white/15",children:"Get rated by real people â"})]});if(k){let e="approved"===S;if("rejected"===S){var Y;return(0,r.jsxs)("div",{className:"mt-4 rounded-2xl border border-amber-500/25 bg-amber-500/[0.06] p-4",children:[(0,r.jsx)("p",{className:"text-sm font-bold text-white",children:"This photo wasnât accepted"}),(0,r.jsx)("p",{className:"text-[13px] text-gray-400 leading-relaxed mt-1",children:(null===(Y=l.uj[C])||void 0===Y?void 0:Y.line)??"This photo could not be accepted for the rating pool. A different photo is welcome."}),(0,r.jsx)("p",{className:"text-[13px] text-gray-500 leading-relaxed mt-2",children:"Nothing was saved and nobody will see it. Your scan results are unaffected."})]})}return(0,r.jsxs)("div",{className:"mt-4 rounded-2xl border border-emerald-500/25 bg-emerald-500/[0.06] p-4",children:[(0,r.jsx)("p",{className:"text-sm font-bold text-white",children:e?"Youâre in the pool â":"Submitted â pending human review â"}),(0,r.jsx)("p",{className:"text-[13px] text-gray-400 leading-relaxed mt-1",children:e?(0,r.jsxs)(r.Fragment,{children:["Real people can start rating your photo now â they rate it 1â10 and the average becomes your Human Score. We'll email you the moment 10 people have voted. Track it â or delete it anytime â on the"," ",(0,r.jsx)(n.default,{href:"/contribute",className:"text-gray-300 underline hover:text-white",children:"contribute page"}),"."]}):(0,r.jsxs)(r.Fragment,{children:["Once approved, real people rate this photo 1â10 and the average becomes your Human Score. We'll email you the moment 10 people have voted. Track it â or delete it anytime â on the"," ",(0,r.jsx)(n.default,{href:"/contribute",className:"text-gray-300 underline hover:text-white",children:"contribute page"}),"."]})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(i.default,{compact:!0,callbackUrl:"/account/results",headline:"Create a free account to track y
1our Human Score + AI score together",initialEmail:p,emailToggleLabel:"or use email",emailButtonLabel:"Email me a one-tap link â",surface:"community_optin"})})]})}async function q(){if(t&&p.includes("@")&&b&&w&&!v){N(!0),I("");try{let e;let r=await (0,c.GT)(t,800);try{let{screenApparentAge:t}=await a.e(83682).then(a.bind(a,83682)),s=URL.createObjectURL(r);try{let a=await t(s);a.ok&&(e=a.age)}finally{URL.revokeObjectURL(s)}}catch{}let s=await (0,c.Pc)({blob:r,email:p.trim().toLowerCase(),consentTraining:g,aiScore:d,source:"post_scan",apparentAge:e});if(!s.ok){s.capReached&&(0,o.L9)("hs_cap_hit",{surface:H,pro:s.pro?"true":"false"}),I(s.error||"Submission failed.");return}(0,o.L9)("hs_contribute_submitted",{surface:H});try{localStorage.setItem("looksmax_email",p.trim().toLowerCase())}catch{}L(s.status),R(s.rejectReason),E(!0===s.pro),_(!0)}catch(e){I(e instanceof Error?e.message:"Could not process the photo.")}finally{N(!1)}}}let A=p.includes("@")&&b&&w&&!v;return(0,r.jsx)("div",{ref:G,className:"mt-4 rounded-2xl border border-white/10 bg-white/[0.03] p-4",children:u?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("p",{className:"text-sm font-bold text-white",children:"Get rated by real people"}),(0,r.jsx)("p",{className:"text-[12px] text-gray-500 leading-relaxed",children:"Your scan photo is never stored â submitting here is a separate, optional upload you can delete anytime. It only happens if you check the boxes and tap submit."}),(0,r.jsx)("p",{className:"text-[11px] leading-relaxed text-amber-300/80 border border-amber-400/20 bg-amber-400/[0.04] rounded-lg px-2.5 py-2",children:c.Rk}),(0,r.jsxs)("label",{className:"flex items-start gap-2.5 cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:b,onChange:e=>f(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 accent-[var(--signal)]"}),(0,r.jsxs)("span",{className:"text-[12px] text-gray-300 leading-relaxed",children:[c.fL," ",(0,r.jsx)("span",{className:"text-gray-500",children:"(required)"})]})]}),(0,r.jsxs)("label",{className:"flex items-start gap-2.5 cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:g,onChange:e=>y(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 accent-[var(--signal)]"}),(0,r.jsx)("span",{className:"text-[12px] text-gray-300 leading-relaxed",children:c.ZV})]}),(0,r.jsxs)("label",{className:"flex items-start gap-2.5 cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:w,onChange:e=>j(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 accent-[var(--signal)]"}),(0,r.jsxs)("span",{className:"text-[12px] text-gray-300 leading-relaxed",children:[c.Be," ",(0,r.jsx)("span",{className:"text-gray-500",children:"(required)"})]})]}),(0,r.jsx)("input",{type:"email",value:p,onChange:e=>m(e.target.value),placeholder:"[email protected] â to show your score + honor deletion",className:"w-full rounded-lg bg-white/5 border border-white/15 px-3 py-2 text-[13px] text-white placeholder:text-white/30 focus:outline-none focus:border-[var(--signal)]"}),(0,r.jsx)("p",{className:"text-[11px] text-gray-500",children:"Used only to show you your score and honor deletion requests."}),U&&(0,r.jsx)("p",{className:"text-[12px] text-red-400",children:U}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("button",{onClick:q,disabled:!A,className:"rounded-full bg-white/10 border border-white/15 px-4 py-2 text-[13px] font-bold text-white hover:bg-white/15 disabled:opacity-40 disabled:cursor-not-allowed",children:v?"Uploadingâ¦":"Submit this photo for rating"}),(0,r.jsx)("button",{onClick:()=>x(!1),className:"text-[12px] text-gray-500 hover:text-gray-300",children:"Cancel"})]})]}):(0,r.jsxs)("button",{onClick:()=>{(0,o.L9)("hs_optin_started",{surface:H}),x(!0)},className:"w-full text-left group",children:[(0,r.jsx)("p",{className:"text-sm font-bold text-white",children:"You have your AI score. Do real people agree?"}),(0,r.jsxs)("p",{className:"text-[13px] text-gray-400 leading-relaxed mt-1",children:["Let real people rate this photo 1â10 â the average becomes your ",(0,r.jsx)("strong",{className:"text-gray-300",children:"Human Score"}),". We'll email you when 10 have voted, usually within a day or two."]}),(0,r.jsx)("span",{className:"mt-3 inline-flex w-full items-center justify-center rounded-full bg-white/10 px-5 py-3 text-[13px] font-extrabold text-white transition group-hover:bg-white/15",children:"Get rated by real people â"})]})})}}}]);
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.