1import{r as s,j as e}from"./index-h3L_xq5V.js";const f="https://img.socialimages.ai/api";function S({getAccessToken:g,currentTermsVersion:m,onAccepted:p}){const[o,y]=s.useState(!1),[c,l]=s.useState(!1),[d,t]=s.useState(""),[i,h]=s.useState(!1),u=s.useRef(null);s.useEffect(()=>{const r=u.current;if(!r)return;function n(){if(!r)return;r.scrollTop+r.clientHeight>=r.scrollHeight-20&&h(!0)}return r.addEventListener("scroll",n),r.scrollHeight<=r.clientHeight+20&&h(!0),()=>r.removeEventListener("scroll",n)},[]);async function x(){l(!0),t("");try{const r=await g(),a=await(await fetch(`${f}/terms/accept`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({version:m})})).json();a.success?p():t(a.error||"Failed to accept terms. Please try again.")}catch{t("Network error. Please try again.")}finally{l(!1)}}return e.jsx("div",{className:"terms-gate-overlay",children:e.jsxs("div",{className:"terms-gate-modal",children:[e.jsx("h2",{children:"Terms of Service"}),e.jsx("p",{className:"terms-gate-intro",children:"Please review and accept our Terms of Service and Privacy Policy before using Social Images."}),e.jsxs("div",{className:`terms-gate-scroll-wrapper${i?"":" has-more"}`,children:[e.jsx("div",{className:"terms-gate-scroll",ref:u,children:e.jsx(j,{})}),!i&&e.jsx("div",{className:"terms-gate-scroll-fade",children:e.jsxs("div",{className:"terms-gate-scroll-hint",children:[e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),"Scroll to review all terms",e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})]})})]}),e.jsxs("label",{className:"terms-gate-checkbox",children:[e.jsx("input",{type:"checkbox",checked:o,onChange:r=>y(r.target.checked),disabled:!i}),e.jsxs("span",{children:["I have read and agree to the ",e.jsx("strong",{children:"Terms of Service"})," and ",e.jsx("strong",{children:"Privacy Policy"})]})]}),d&&e.jsx("p",{className:"terms-gate-error",children:d}),e.jsx("button",{type:"button",className:"terms-gate-accept",disabled:!o||c,onClick:x,children:c?"Accepting...":"Accept & Continue"})]})})}function j(){return e.jsxs("div",{className:"terms-gate-content",children:[e.jsx("h3",{children:"1. Acceptance of Terms"}),e.jsx("p",{children:'By accessing or using Social Images (the "Service"), operated by MILL5 ("we," "us," or "our"), you agree to be bound by these Terms of Service. If you do not agree, do not use the Service.'}),e.jsx("h3",{children:"2. Description of Service"}),e.jsx("p",{children:"Social Images is an AI-powered image metadata enrichment platform. The Service analyzes images using artificial intelligence, generates descriptive metadata (EXIF, XMP, IPTC, JSON-LD Schema.org), and delivers optimized images via CDN."}),e.jsxs("p",{children:[e.jsx("strong",{children:"The Service enriches images with AI-generated metadata. We do not guarantee any specific SEO rankings, search engine placement, social media performance, or AI search visibility as a result of using the Service."})," Metadata enrichment is provided on a best-effort basis using current AI technology, and results may vary."]}),e.jsx("h3",{children:"3. Content Ownership and Responsibility"}),e.jsxs("p",{children:[e.jsx("strong",{children:"You retain all ownership rights to your original images."})," By using the Service, you grant us a limited, temporary license to process your images for the sole purpose of providing the Service."]}),e.jsx("p",{children:e.jsx("strong",{children:"You represent and warrant that:"})}),e.jsxs("ul",{children:[e.jsx("li",{children:"You own or have all necessary rights, licenses, and permissions to the content you submit"}),e.jsx("li",{children:"Your content does not infringe on the intellectual property rights of any third party"}),e.jsx("li",{children:"Your content does not violate any applicable laws or regulations"}),e.jsx("li",{children:"You have obtained all necessary consents from any individuals depicted in your images"})]}),e.jsx("p",{children:e.jsx("strong",{children:"You are solely responsible for ensuring you have the legal r
1ight to upload, process, and distribute any content you submit to the Service."})}),e.jsx("h3",{children:"4. AI-Generated Metadata"}),e.jsx("p",{children:"The metadata generated by the Service (descriptions, keywords, entity data, geolocation estimates) is produced by artificial intelligence and may contain inaccuracies, errors, or omissions. You are responsible for reviewing and verifying all AI-generated metadata before publishing."}),e.jsx("h3",{children:"5. Limitation of Liability"}),e.jsx("p",{children:e.jsx("strong",{children:"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MILL5, ITS OFFICERS, DIRECTORS, EMPLOYEES, AGENTS, AND AFFILIATES SHALL NOT BE LIABLE FOR:"})}),e.jsxs("ul",{children:[e.jsx("li",{children:"Any indirect, incidental, special, consequential, or punitive damages"}),e.jsx("li",{children:"Any loss of data, revenue, profits, or business opportunities"}),e.jsx("li",{children:"Any claims arising from content uploaded by users"}),e.jsx("li",{children:"Any inaccuracies in AI-generated metadata, descriptions, or geolocation data"}),e.jsx("li",{children:"Any failure to achieve specific SEO, GEO, or performance outcomes"})]}),e.jsx("h3",{children:"6. Disclaimer of Warranties"}),e.jsxs("p",{children:[e.jsx("strong",{children:'THE SERVICE IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED.'})," We do not warrant that the Service will be uninterrupted, error-free, or that AI-generated metadata will be accurate or suitable for any purpose."]}),e.jsx("h3",{children:"7. Privacy"}),e.jsx("p",{children:"Your use of the Service is also governed by our Privacy Policy, which describes how we collect, use, and protect your information. By accepting these Terms, you also acknowledge our Privacy Policy."}),e.jsxs("p",{className:"terms-gate-version",children:["Terms version: ","2026-03-14"]})]})}export{S 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.