1import{j as e}from"./vendor-ui-NLPqw2t3.js";import{P as N,S as w,t as i}from"./index-CThYbAOY.js";import{L as u}from"./vendor-react-C3dcikN3.js";import{r as l,A as f}from"./vendor-icons-BSGq3JuS.js";import{u as S,t as q,o as P,s as d}from"./types-CWPfWoB9.js";import{m as x}from"./vendor-motion-BbBenTIs.js";import"./vendor-query-CgGIzJQR.js";const c="https://phxintel.com/backendapi/api/",p="6LdTbNosAAAAADzZDt6xQY-Q19IHp9sFx7ZWgX2s",A=P({firstName:d().trim().min(1,"First name is required").max(100),lastName:d().trim().min(1,"Last name is required").max(100),email:d().trim().email("Please enter a valid email").max(255),stateOfResidence:d().trim().min(1,"State of residence is required").max(100)});function L(){const[g,b]=l.useState(!1),[m,n]=l.useState(!1),[h,y]=l.useState(!1),t=S({resolver:q(A),defaultValues:{firstName:"",lastName:"",email:"",stateOfResidence:""}});l.useEffect(()=>{const s=document.createElement("script");return s.src=`https://www.google.com/recaptcha/api.js?render=${p}`,s.async=!0,s.defer=!0,s.onload=()=>{y(!0)},document.body.appendChild(s),()=>{document.querySelectorAll('script[src*="recaptcha"]').forEach(a=>a.remove());const o=document.querySelector(".grecaptcha-badge");o&&o.remove()}},[]);const v=async s=>{n(!0);try{if(!h||!window.grecaptcha){i({title:"Please Wait",description:"reCAPTCHA is still loading. Please try again.",variant:"destructive"}),n(!1);return}const r=await window.grecaptcha.execute(p,{action:"submit_optout_request"});if(!r){i({title:"Verification Failed",description:"reCAPTCHA verification failed. Please try again.",variant:"destructive"}),n(!1);return}const o=`${c}opt-out-request`;
1console.log("API_BASE_URL from env:",c),console.log("Full API URL:",o);const a=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({first_name:s.firstName,last_name:s.lastName,email:s.email,state_of_residence:s.stateOfResidence,recaptchaToken:r})});if(!a.ok)throw new Error(`API request failed with status ${a.status}`);const j=await a.json();console.log("Opt-out request submitted successfully:",j),b(!0),i({title:"Request Submitted",description:"We will process your opt-out request in accordance with applicable law."})}catch(r){console.error("Error submitting opt-out request:",r),i({title:"Submission Failed",description:"There was an error submitting your request. Please try again later.",variant:"destructive"})}finally{n(!1)}};return e.jsxs(N,{children:[e.jsx(w,{title:"Your Privacy Choices | Phoenix Intelligence",description:"Exercise your privacy rights. Opt out of targeted advertising and manage your data preferences with Phoenix Intelligence.",canonical:"/privacy-choices"}),e.jsx("section",{className:"py-24 lg:py-32 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 lg:px-8 max-w-3xl",children:[e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-primary font-sans",children:"Legal"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mt-3 mb-4",children:"Your Privacy Choices"})]}),e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"space-y-10 mt-12",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-foreground font-sans mb-3",children:"Do Not Share / Targeted Advertising"}),e.jsxs("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mb-4",children:['Certain U.S. states provide residents with the right to opt out of the sharing of personal information for cross-context behavioral advertising and/or certain types of targeted advertising ("targeted advertising"). You can learn more about these rights by reviewing our'," ",e.jsx(u,{to:"/privacy",className:"text-primary hover:underline",children:"Privacy Policy"}),"."]}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mb-4",children:"If you are a resident of one of those U.S. states and would like to submit a request to opt out of targeted advertising, please complete the form below."}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mb-4",children:"The information you provide below will facilitate your request to opt out of targeted advertising. If you do not provide the information requested, we may not be able to identify you and process your request. Any information submitted will not be used, disclosed, or retained for any purpose other than processing your opt-out request."}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mb-4",children:"You may also opt out of targeted advertising by sending certain browser-enabled opt-out signals, such as the Global Privacy Control (GPC). You may learn more about how to enable the Global Privacy Control through your browser provider."}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mb-4",children:"Submitting this form will not automatically prevent targeting cookies from being placed on your browser. To opt out of targeting cookies, please adjust your preferences in the cookie settings on the Phoenix website you visited or enable an opt-out signal on your browser."})]}),g?e.jsxs("div",{className:"rounded-xl border border-border p-10 bg-card text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-accent/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(f,{className:"h-6 w-6 text-accent"})}),e.jsx("h3",{className:"text-xl font-bold text-foreground mb-2 font-sans",children:"Request Submitted"}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans",children:"We will process your opt-out request in accordance with applicable law."})]}):e.jsxs("form",{onSubmit:t.handleSubmit(v),className:"rounded-xl border border-border p-8 bg-card space-y-5",children:[e.jsx("h3",{className:"text-base font-semibold text-foreground font-sans mb-1",children:"Opt-Out Request Form"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5 font-sans",children:"First Name"}),e.jsx("input",{...t.register("firstName"),type:"text",className:"w-full px-4 py-2.5 text-sm border border-border rounded-lg bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-accent/30 font-sans"}),t.formState.errors.firstName&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:t.formState.errors.firstName.message})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5 font-sans",children:"Last Name"}),e.jsx("input",{...t.register("lastName"),type:"text",className:"w-full px-4 py-2.5 text-sm border border-border rounded-lg bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-accent/30 font-sans"}),t.formState.errors.lastName&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:t.formState.errors.lastName.message})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5 font-sans",children:"Email Address"}),e.jsx("input",{...t.register("email"),type:"email",className:"w-full px-4 py-2.5 text-sm border border-border rounded-lg bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-accent/30 font-sans"}),t.formState.errors.email&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:t.formState.errors.email.message})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-1.5 font-sans",children:"State of Residence"}),e.jsx("input",{...t.register("stateOfResidence"),type:"text",className:"w-full px-4 py-2.5 text-sm border border-border rounded-lg bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-accent/30 font-sans"}),t.formState.errors.stateOfResidence&&e.jsx("p",{className:"text-xs text-red-500 mt-1",children:t.formState.errors.stateOfResidence.message})]}),e.jsxs("button",{type:"submit",disabled:m,className:"w-full inline-flex items-center justify-center gap-2 px-7 py-3.5 text-sm font-semibold bg-accent text-accent-foreground rounded-lg hover:bg-warm-light transition-colors font-sans disabled:opacity-50 disabled:cursor-not-allowed",children:[m?"Submitting...":"Submit Opt-Out Request"," ",e.jsx(f,{className:"h-4 w-4"})]})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-foreground font-sans mb-3",children:"Authorized Agent Requests"}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mb-4",children:"If you are submitting a request on behalf of another consumer as an authorized agent, please submit your request directly to:"}),e.jsx("div",{className:"rounded-xl border border-border p-5 bg-card",children:e.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline font-sans text-sm font-semibold",children:"[email protected]"})}),e.jsx("p",{className:"text-sm text-muted-foreground font-sans leading-relaxed mt-4",children:"In your request, please include the consumer's first name, last name, email address, and written permission signed by the consumer demonstrating that you have been authorized to make this request. If you have been granted power of attorney, you may instead include a copy of the validly executed power of attorney naming you as the consumer's authorized representative."})]}),e.jsx("div",{className:"pt-6 border-t border-border",children:e.jsx(u,{to:"/",className:"text-sm text-primary hover:underline font-sans",children:"â Back to Home"})})]})]})})]})}export{L 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.