PageSourceSearch

https://artpanda.ai/assets/LegalContent-B-FfTDl7.js

js artpanda.ai collected 2026-10-05 11:49:07 UTC 26,107 bytes, 43 lines download raw bytes

1import{r as c,j as e,z as E}from"./index-D-jN7C_p.js";import{a as x}from"./admin.service-lgqACIba.js";import{B as d}from"./button-boV1ZC-X.js";import{L,w as H,K as U,a as F,M as re}from"./index-BDaYyBcO.js";import{M as ie}from"./Modal-CVU57loO.js";import{A as le,b as ce}from"./AdminPageShell-A-9cqZDi.js";function ge(){const[g,u]=c.useState([]),[f,p]=c.useState([]),[y,m]=c.useState([]),[j,b]=c.useState([]),[w,k]=c.useState(D()),[l,v]=c.useState(_()),[i,K]=c.useState("privacy"),[J,N]=c.useState(!0),[R,B]=c.useState(""),[X,M]=c.useState(!1),[T,C]=c.useState({open:!1,type:"",index:-1,title:""}),S=(s,t,o)=>{C({open:!0,type:s,index:t,title:o})},Z=()=>{const{type:s,index:t}=T;s==="privacy"?u(o=>o.filter((a,n)=>n!==t)):s==="terms"?p(o=>o.filter((a,n)=>n!==t)):s==="cookies"?m(o=>o.filter((a,n)=>n!==t)):s==="faq"&&b(o=>o.filter((a,n)=>n!==t)),C({open:!1,type:"",index:-1,title:""}),E.success("Section deleted")};c.useEffect(()=>{let s=!0;return(async()=>{try{N(!0);const t=await x.legalAll(),o=t?.data||t||{};if(!s)return;const a=o.privacy?.sections||[],n=o.terms?.sections||[],r=o.cookies?.sections||[],z=o.faq?.sections||[],A=o.footer||{},I=o.banner||{},q=Array.isArray(I.sections)?I.sections:[],W=_(),se=I.content||W.headline,ae=q.find(h=>h.key==="subtext")?.content||W.subtext,oe=q.find(h=>h.key==="href")?.content||W.href,ne=(q.find(h=>h.key==="hidden")?.content||"").toString().toLowerCase()==="true";u(a.length?a:Y()),p(n.length?n:G()),m(r.length?r:O()),b(z.length?z:Q());const V=Array.isArray(A.sections)?A.sections:[],P=D();if(k({text:A.content||P.text,...P}),V.length){const h={...P,text:A.content||P.text};
1V.forEach($=>{$.key&&(h[$.key]=$.content)}),k(h)}v({headline:se,subtext:ae,href:oe,hidden:ne})}catch(t){B(t?.message||"Failed to load legal content")}finally{N(!1)}})(),()=>{s=!1}},[]);async function ee(){try{N(!0);const s={content:l.headline||"",sections:[{key:"subtext",title:"Subtext",content:l.subtext||""},{key:"href",title:"Link",content:l.href||"/login"},{key:"hidden",title:"Hidden",content:l.hidden?"true":"false"}]};await Promise.all([x.legalUpdate("privacy",g),x.legalUpdate("terms",f),x.legalUpdate("cookies",y),x.legalUpdate("faq",j),x.legalUpdate("banner",s),x.legalUpdate("footer",{content:w.text,sections:Object.keys(w).filter(t=>t!=="text").map(t=>({key:t,title:t,content:w[t]}))})]),M(!0),E.success("Settings saved successfully"),setTimeout(()=>M(!1),1200)}catch(s){B(s?.message||"Failed to save")}finally{N(!1)}}function te(){i==="privacy"?u(Y()):i==="terms"?p(G()):i==="cookies"?m(O()):i==="faq"?b(Q()):i==="footer"?k(D()):i==="banner"&&v(_())}function Y(){return[{key:"overview",title:"Overview",content:"We respect your privacy. This policy explains what we collect, how we use and share it, and the choices you have. It applies to your use of ArtPanda websites, apps, and services (collectively, the “Services”)."},{key:"info_collect",title:"Information We Collect",content:`- Account & Contact: Email, display name, and basic profile details you provide.
2- Content: Prompts, settings, and outputs you generate or upload. Private inputs are not used to re‑train models.
3- Usage: Log data, device/browser info, approximate region, and diagnostics to maintain reliability.
4- Payments: We process payments via PCI‑compliant providers; we do not store full card data on our servers.
5- Cookies: Essential and analytics cookies to keep you signed in and improve the product.`},{key:"use_info",title:"How We Use Information",content:`- Provide, secure, and troubleshoot the Services.
6- Process generations and deliver outputs you request.
7- Detect abuse and enforce content & safety guidelines.
8- Communicate service updates, account notices, and support responses.
9- Improve user experience through aggregated analytics.`},{key:"share_info",title:"How We Share Information",content:`- Service Providers: Infrastructure, analytics, and payment processors bound by confidentiality.
10- Legal & Safety: If required by law, court order, or to prevent harm or abuse.
11- No Selling of Personal Data: We do not sell personal information.`},{key:"ai_safety",title:"AI Content & Safety",content:"We do not permit explicit sexual content, content involving minors, or other prohibited content. Prompts and outputs that violate policies may be blocked. See Terms for full Acceptable Use."}]}function G(){return[{key:"agreement",title:"Agreement to Terms",content:"By accessing or using ArtPanda (“we”, “our”, “Service”), you agree to these Terms. If you do not agree, do not use the Service."},{key:"eligibility",title:"Eligibility & Accounts",content:`- You must be at least 13 years old (or the age of digital consent in your region).
12- Provide accurate information and keep your credentials secure. You are responsible for activity on your account.`},{key:"acceptable_use",title:"Acceptable Use",content:`- No unlawful, harmful, or abusive behavior.
13- No attempts to bypass safety systems or misuse the Service.
14- No content that infringes IP, violates privacy, or promotes violence or hate.
15- No sexual content, explicit nudity, pornography, or content involving minors.`},{key:"generated",title:"Generated Content",content:`- You own your lawful outputs, subject to plan and licensing terms.
16- You grant us a limited license to host/process your content to operate the Service.
17- You must comply with third‑party rights; do not upload or prompt infringing or illegal material.`},{key:"payment",title:"Payment & Credits",content:`- Paid plans and credit usage are billed via our payment partners.
18- Fees are non‑refundable unless required by law or specified in plan terms.
19- We may change pricing/quotas with reasonable notice; material changes will be communicated.`},{key:"third_party",title:"Third‑Party Services",content:"We may integrate with third‑party services. Their terms and privacy policies govern your use of those services."},{key:"termination",title:"Termination",content:"We may suspend or terminate accounts that violate Terms or applicable laws. You may close your account at any time."},{key:"disclaimers",title:"Disclaimers",content:"The Service is provided “as is” without warranties of any kind. Outputs may be inaccurate or unsafe if misused."},{key:"liability",title:"Limitation of Liability",content:"To the maximum extent permitted by law, we are not liable for indirect, incidental, or consequential damages."},{key:"indemnification",title:"Indemnification",content:"You agree to defend and hold us harmless from claims arising from your use of the Service or content."},{key:"law_disputes",title:"Governing Law & Disputes",content:"These Terms are governed by applicable local laws. Disputes will be resolved 
19in the courts or arbitration venue we designate, unless otherwise required by your local consumer protection laws."},{key:"changes",title:"Changes",content:"We may update these Terms to reflect changes to the Service or laws. We will post updates and revise the effective date."},{key:"contact",title:"Contact",content:"Questions? Contact us at [email protected]."}]}function O(){return[{key:"overview",title:"Overview",content:"This Cookie Policy explains how ArtPanda uses cookies and similar technologies. We use cookies to keep you signed in, remember preferences, and understand product usage so we can improve the experience."},{key:"the_cookies_we_use",title:"The Cookies We Use",content:`Session Cookies — Temporary cookies that expire when you close your browser.
20
21Persistent Cookies — Remain on your device after you close the browser to remember settings and preferences.
22
23Necessary Cookies — Required for core functionality such as authentication, security, and routing.
24
25Functionality Cookies — Remember UI preferences (e.g., theme, layout) for a smoother return visit.
26
27Analytical Cookies — Google Analytics 4 (GA4) to measure aggregate usage and performance (_ga, _ga_*).
28
29Account & Login Cookies — Help manage sign‑in state and reduce repeated logins; cleared on logout.
30
31Email / Newsletter Cookies — Remember subscription status to tailor notifications.
32
33Orders & Payments Cookies — Support payment flows with our PCI‑compliant providers.
34
35Forms Cookies — Remember basic details you provide on forms for smoother follow‑up.
36
37Site Preferences Cookies — Store preferences (e.g., model pickers, filters) to restore your workspace.`},{key:"first_third",title:"First‑Party and Third‑Party Cookies",content:`First‑party cookies are set by ArtPanda for the reasons above. Third‑party cookies are set by trusted providers that help us run analytics or integrations.
38
39Google Analytics 4 (GA4): We use GA4 to understand aggregate usage and improve reliability. GA4 may track general usage patterns like page views and session duration. We do not sell personal information. You can opt out via the GA opt‑out add‑on or browser settings. In some cases we may proxy analytics through our backend. See Google’s cookie docs: https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage
40
41Referrals: If you arrive with a referral code (e.g., /?ref=CODE), we store it to attribute referrals appropriately.`},{key:"choices",title:"Your Choices",content:`- Use your browser settings to delete or block cookies.
42- Enable Do Not Track (DNT) in your browser if available.
43- Use the Google Analytics opt‑out browser add‑on.`},{key:"changes",title:"Changes",content:"We may update this policy as our product evolves. We will update the effective date."},{key:"acceptance",title:"Policy Acceptance",content:"By continuing to use ArtPanda, you acknowledge that you have read and agree to this Cookie Policy."},{key:"more",title:"More Information",content:"Questions? Contact us at [email protected]."}]}function _(){return{headline:"Lucid Origin is available now.",subtext:"Hop in to get early access and keep your credits moving.",href:"/login",hidden:!1}}function Q(){return[{key:"what_is_artpanda",title:"What is ArtPanda?",content:"ArtPanda is an AI-native studio for artists, brands, and creative teams. We blend diffusion, video, and upscaling workflows into one dashboard so you can ideate, iterate, and ship visuals faster without giving up creative control."},{key:"credits",title:"How do credits and billing work?",content:"Every account has a credits wallet. Each generation or upscale consumes the amount shown next to the tool you pick. Credits reset monthly on subscriptions and can also be topped up anytime from the billing page."},{key:"commercial",title:"Can I use ArtPanda outputs commercially?",content:"Yes—commercial use is allowed for content you generate, provided it complies with our Terms and applicable laws. You are responsible for making sure prompts and uploads do not infringe on third-party rights."},{key:"models",title:"Which models do you support?",content:"We keep a curated list of image, video, and upscale models that are production-ready. Availability may change as partners update their APIs, and the admin panel highlights which presets are stable, experimental, or sunset."},{key:"support",title:"How do I report an issue or get support?",content:"You can open a ticket from the Help menu inside the app or email [email protected]. Include links, prompts, or screenshots when possible so we can reproduce issues quickly."},{key:"refunds",title:"Do you offer refunds or plan downgrades?",content:"Refund requests are evaluated case by case. You can downgrade or cancel from Billing > Subscription. Prepaid credits remain available until they expire or are consumed."}]}function D(){return{text:"Empowering creators with thoughtfully designed AI tools that enhance rather than replace human creativity.",social_twitter:"#",social_instagram:"#",social_discord:"#",social_telegram:"#"}}return e.jsx(le,{title:"Legal Content",description:"Edit privacy, terms, cookie, FAQ, banner, and footer copy without leaving the admin control center.",children:e.jsxs("div",{className:`${ce} p-6 space-y-6`,children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[["privacy","terms","cookies","faq","banner","footer"].map(s=>e.jsx("button",{type:"button",onClick:()=>K(s),className:`inline-flex h-8 items-center justify-center rounded-md border px-3 text-sm ${i===s?"border-blue-400 text-white bg-blue-500/10":"border-slate-700 text-slate-300 hover:bg-slate-800/60"}`,children:s[0].toUpperCase()+s.slice(1)},s)),J&&e.jsx("span",{className:"ml-auto text-xs text-slate-400",children:"Loading…"}),R&&e.jsx("span",{className:"ml-auto text-xs text-red-400",children:R})]}),i==="privacy"&&e.jsxs("section",{className:"space-y-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-slate-400",children:"Drag sections to reorder. Add new sections as 
43needed."}),g.map((s,t)=>e.jsxs("div",{className:"space-y-3 rounded-xl border border-slate-700/60 bg-slate-900/50 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-slate-500 font-mono",children:["#",t+1]}),e.jsx("input",{type:"text",className:"px-2 py-1 rounded bg-slate-800 border border-slate-700/60 text-sm font-semibold text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Section Title",value:s.title,onChange:o=>u(a=>a.map((n,r)=>r===t?{...n,title:o.target.value}:n))})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",disabled:t===0,onClick:()=>u(o=>{const a=[...o];return[a[t-1],a[t]]=[a[t],a[t-1]],a}),className:`p-1.5 rounded ${t===0?"text-slate-600 cursor-not-allowed":"text-slate-400 hover:text-white hover:bg-slate-700"}`,title:"Move up",children:e.jsx(L,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",disabled:t===g.length-1,onClick:()=>u(o=>{const a=[...o];return[a[t],a[t+1]]=[a[t+1],a[t]],a}),className:`p-1.5 rounded ${t===g.length-1?"text-slate-600 cursor-not-allowed":"text-slate-400 hover:text-white hover:bg-slate-700"}`,title:"Move down",children:e.jsx(H,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",disabled:g.length<=1,onClick:()=>S("privacy",t,s.title),className:`p-1.5 rounded ${g.length<=1?"text-slate-600 cursor-not-allowed":"text-rose-400 hover:text-rose-300 hover:bg-rose-500/10"}`,title:"Remove section",children:e.jsx(U,{className:"h-4 w-4"})})]})]}),e.jsx("textarea",{className:"w-full h-40 p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:`Enter text for ${s.title}`,value:s.content,onChange:o=>u(a=>a.map((n,r)=>r===t?{...n,content:o.target.value}:n))})]},s.key||t)),e.jsxs(d,{type:"button",variant:"outline",onClick:()=>u(s=>[...s,{key:`privacy-${Date.now()}`,title:"New Section",content:""}]),className:"gap-2",children:[e.jsx(F,{className:"h-4 w-4"}),"Add Section"]})]}),i==="terms"&&e.jsxs("section",{className:"space-y-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-slate-400",children:"Drag sections to reorder. Add new sections as needed."}),f.map((s,t)=>e.jsxs("div",{className:"space-y-3 rounded-xl border border-slate-700/60 bg-slate-900/50 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-slate-500 font-mono",children:["#",t+1]}),e.jsx("input",{type:"text",className:"px-2 py-1 rounded bg-slate-800 border border-slate-700/60 text-sm font-semibold text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Section Title",value:s.title,onChange:o=>p(a=>a.map((n,r)=>r===t?{...n,title:o.target.value}:n))})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",disabled:t===0,onClick:()=>p(o=>{const a=[...o];return[a[t-1],a[t]]=[a[t],a[t-1]],a}),className:`p-1.5 rounded ${t===0?"text-slate-600 cursor-not-allowed":"text-slate-400 hover:text-white hover:bg-slate-700"}`,title:"Move up",children:e.jsx(L,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",disabled:t===f.length-1,onClick:()=>p(o=>{const a=[...o];return[a[t],a[t+1]]=[a[t+1],a[t]],a}),className:`p-1.5 rounded ${t===f.length-1?"text-slate-600 cursor-not-allowed":"text-slate-400 hover:text-white hover:bg-slate-700"}`,title:"Move down",children:e.jsx(H,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",disabled:f.length<=1,onClick:()=>S("terms",t,s.title),className:`p-1.5 rounded ${f.length<=1?"text-slate-600 cursor-not-allowed":"text-rose-400 hover:text-rose-300 hover:bg-rose-500/10"}`,title:"Remove section",children:e.jsx(U,{className:"h-4 w-4"})})]})]}),e.jsx("textarea",{className:"w-full h-40 p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:`Enter text for ${s.title}`,value:s.content,onChange:o=>p(a=>a.map((n,r)=>
43r===t?{...n,content:o.target.value}:n))})]},s.key||t)),e.jsxs(d,{type:"button",variant:"outline",onClick:()=>p(s=>[...s,{key:`terms-${Date.now()}`,title:"New Section",content:""}]),className:"gap-2",children:[e.jsx(F,{className:"h-4 w-4"}),"Add Section"]})]}),i==="cookies"&&e.jsxs("section",{className:"space-y-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-slate-400",children:"Drag sections to reorder. Add new sections as needed."}),y.map((s,t)=>e.jsxs("div",{className:"space-y-3 rounded-xl border border-slate-700/60 bg-slate-900/50 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-slate-500 font-mono",children:["#",t+1]}),e.jsx("input",{type:"text",className:"px-2 py-1 rounded bg-slate-800 border border-slate-700/60 text-sm font-semibold text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Section Title",value:s.title,onChange:o=>m(a=>a.map((n,r)=>r===t?{...n,title:o.target.value}:n))})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{type:"button",disabled:t===0,onClick:()=>m(o=>{const a=[...o];return[a[t-1],a[t]]=[a[t],a[t-1]],a}),className:`p-1.5 rounded ${t===0?"text-slate-600 cursor-not-allowed":"text-slate-400 hover:text-white hover:bg-slate-700"}`,title:"Move up",children:e.jsx(L,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",disabled:t===y.length-1,onClick:()=>m(o=>{const a=[...o];return[a[t],a[t+1]]=[a[t+1],a[t]],a}),className:`p-1.5 rounded ${t===y.length-1?"text-slate-600 cursor-not-allowed":"text-slate-400 hover:text-white hover:bg-slate-700"}`,title:"Move down",children:e.jsx(H,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",disabled:y.length<=1,onClick:()=>S("cookies",t,s.title),className:`p-1.5 rounded ${y.length<=1?"text-slate-600 cursor-not-allowed":"text-rose-400 hover:text-rose-300 hover:bg-rose-500/10"}`,title:"Remove section",children:e.jsx(U,{className:"h-4 w-4"})})]})]}),e.jsx("textarea",{className:"w-full h-40 p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:`Enter text for ${s.title}`,value:s.content,onChange:o=>m(a=>a.map((n,r)=>r===t?{...n,content:o.target.value}:n))})]},s.key||t)),e.jsxs(d,{type:"button",variant:"outline",onClick:()=>m(s=>[...s,{key:`cookies-${Date.now()}`,title:"New Section",content:""}]),className:"gap-2",children:[e.jsx(F,{className:"h-4 w-4"}),"Add Section"]})]}),i==="faq"&&e.jsxs("section",{className:"space-y-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.2em] text-slate-400",children:"Display order matches the FAQ page."}),j.map((s,t)=>e.jsxs("div",{className:"space-y-3 rounded-xl border border-slate-700/60 bg-slate-900/50 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("label",{className:"text-sm font-semibold text-slate-200",children:["Question ",t+1]}),e.jsx("button",{type:"button",disabled:j.length<=1,onClick:()=>S("faq",t,s.title),className:`text-xs font-medium ${j.length<=1?"text-slate-600 cursor-not-allowed":"text-rose-300 hover:text-rose-200"}`,children:"Remove"})]}),e.jsx("input",{type:"text",className:"w-full p-3 rounded-lg bg-slate-900 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Question",value:s.title,onChange:o=>b(a=>a.map((n,r)=>r===t?{...n,title:o.target.value}:n))}),e.jsx("textarea",{className:"w-full h-40 p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Answer",value:s.content,onChange:o=>b(a=>a.map((n,r)=>r===t?{...n,content:o.target.value}:n))})]},s.key||t)),e.jsx(d,{type:"button",variant:"outline",onClick:()=>b(s=>[...s,{key:`faq-${Date.now()}`,title:"New question",content:""}]),children:"Add FAQ"})]}),i==="banner"&&e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-slate-700/60 bg-slate-900/50 px-3 py-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-slate-200",children:"Visibility"}),e.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${l.hidden?"bg-rose-500/10 text-rose-300 border border-rose-500/40":"bg-emerald-500/10 text-emerald-300 border border-emerald-500/40"}`,children:l.hidden?"Hidden":"Visible"})]}),e.jsx(d,{variant:l.hidden?"outline":"secondary",size:"sm",onClick:()=>{v(s=>{const t=!s.hidden,o=t?"Banner set to hidden. Save to publish the change.":"Banner will be visible after saving.";return E.success(o,{id:"banner-visibility"}),{...s,hidden:t}})},children:l.hidden?"Show banner":"Hide banner"}),e.jsx("span",{className:"text-xs text-slate-400",children:l.hidden?"Homepage announcement will stay hidden until you show it again.":"Homepage announcement is active for all visitors."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium text-slate-200",children:"Banner headline"}),e.jsx("input",{type:"text",className:"w-full p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Lucid Origin is available now.",value:l.headline,onChange:s=>v(t=>({...t,headline:s.target.value}))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium text-slate-200",children:"Subtext (optional)"}),e.jsx("textarea",{className:"w-full h-28 p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Hop in to get early access and keep your credits moving.",value:l.subtext,onChange:s=>v(t=>({...t,subtext:s.target.value}))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium text-slate-200",children:"Link (URL)"}),e.jsx("input",{type:"text",className:"w-full p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"/login",value:l.href,onCh
43ange:s=>v(t=>({...t,href:s.target.value}))})]})]}),i==="footer"&&e.jsxs("section",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium text-slate-200",children:"Brand Text"}),e.jsx("textarea",{className:"w-full h-24 p-3 rounded-lg bg-slate-900/60 border border-slate-700/60 text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",placeholder:"Brand description...",value:w.text,onChange:s=>k(t=>({...t,text:s.target.value}))})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-sm font-semibold text-slate-400 uppercase tracking-wider",children:"Social Links"}),["twitter","instagram","discord","telegram"].map(s=>e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-xs font-medium text-slate-400 capitalize",children:s}),e.jsx("input",{type:"text",className:"w-full p-2 rounded bg-slate-900/60 border border-slate-700/60 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500/40",value:w[`social_${s}`]||"",onChange:t=>k(o=>({...o,[`social_${s}`]:t.target.value}))})]},s))]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(d,{onClick:ee,children:"Save changes"}),e.jsx(d,{variant:"outline",size:"sm",onClick:te,children:"Reset (use defaults)"}),X&&e.jsx("span",{className:"text-xs text-emerald-400",children:"Saved"}),e.jsx("a",{href:i==="privacy"?"/privacy":i==="terms"?"/terms":i==="cookies"?"/cookies":i==="faq"?"/faq":"/",target:"_blank",rel:"noreferrer",className:"ml-auto inline-flex items-center gap-2 rounded-lg border border-slate-700/60 px-3 py-1.5 text-sm text-slate-200 hover:bg-slate-800/60",title:"Open public page in a new tab",children:"View Page"})]}),e.jsx(ie,{isOpen:T.open,onClose:()=>C({open:!1,type:"",index:-1,title:""}),title:"Delete Section",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-rose-500/10 flex items-center justify-center",children:e.jsx(re,{className:"h-6 w-6 text-rose-400"})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-slate-200",children:["Are you sure you want to delete the section"," ",e.jsxs("span",{className:"font-semibold text-white",children:['"',T.title,'"']}),"?"]}),e.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"This action cannot be undone. The section will be permanently removed."})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[e.jsx(d,{variant:"outline",onClick:()=>C({open:!1,type:"",index:-1,title:""}),children:"Cancel"}),e.jsx(d,{variant:"destructive",onClick:Z,className:"bg-rose-600 hover:bg-rose-700 text-white",children:"Delete Section"})]})]})})]})})}export{ge 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.