PageSourceSearch

https://smartmentor.ai/assets/TermsOfUse.CyhgmuT4.js

js smartmentor.ai collected 2026-10-05 16:21:35 UTC 8,546 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-ui-core.DP8knyZn.js";import{r as o}from"./vendor-react.BBoGJFYM.js";import{j as r,S as t,H as n,s as i}from"./index.CdjOtu-m.js";import{p as a}from"./purify.es.COJDRNUs.js";import{L as s,a as l,aL as d,aM as c}from"./vendor-icons.BjAWwE8z.js";import"./vendor-supabase.DS-aP8MZ.js";import"./vendor-ui-forms.CjLBxE3d.js";import"./vendor-utils.BlEnRQrd.js";import"./vendor-ui-display.BT2Z6Vpo.js";import"./vendor-query.CfjDb5WU.js";import"./vendor-media.DY6E_qVO.js";import"./vendor-charts.RWeJ_I16.js";import"./vendor-motion.DCvbjL6b.js";const p={dark:{sectionBg:"linear-gradient(160deg, #15002B 0%, #2A044C 50%, #1A0235 100%)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.09)",headlineColor:"#ffffff",bodyText:"rgba(255,255,255,0.65)",mutedText:"rgba(255,255,255,0.38)",accentText:"#a78bfa",gridLine:"rgba(255,255,255,0.022)",divider:"rgba(255,255,255,0.07)",badgeBg:"rgba(139,92,246,0.18)",badgeBorder:"rgba(139,92,246,0.38)",proseH1:"#ffffff",proseH2:"#c4b5fd",proseH3:"#a78bfa",proseBody:"rgba(255,255,255,0.70)",proseStrong:"#ffffff",proseLink:"#a78bfa",proseLinkHover:"#c4b5fd",proseBorder:"rgba(255,255,255,0.10)",proseThBg:"rgba(139,92,246,0.18)",proseThText:"#c4b5fd",proseTdBg:"rgba(255,255,255,0.03)"},light:{sectionBg:"linear-gradient(160deg, #2D0550 0%, #5B1280 50%, #3D0A6E 100%)",cardBg:"rgba(255,255,255,0.07)",cardBorder:"rgba(255,255,255,0.14)",headlineColor:"#ffffff",bodyText:"rgba(255,255,255,0.80)",mutedText:"rgba(255,255,255,0.50)",accentText:"#c4b5fd",gridLine:"rgba(255,255,255,0.038)",divider:"rgba(255,255,255,0.14)",badgeBg:"rgba(167,139,250,0.25)",badgeBorder:"rgba(167,139,250,0.50)",proseH1:"#ffffff",proseH2:"#ddd6fe",proseH3:"#c4b5fd",proseBody:"rgba(255,255,255,0.82)",proseStrong:"#ffffff",proseLink:"#c4b5fd",proseLinkHover:"#ddd6fe",proseBorder:"rgba(255,255,255,0.18)",proseThBg:"rgba(167,139,250,0.22)",proseThText:"#ddd6fe",proseTdBg:"rgba(255,255,255,0.05)"}},m={"terms-of-use":l,"privacy-policy":d,"refund-policy":c};function f({documentType:d,defaultTitle:c,seoTitle:f,seoDescription:g,canonicalUrl:b}){const{resolvedTheme:x}=r(),[y,u]=o.useState(!1),[h,T]=o.useState(""),[v,j]=o.useState(c),[B,k]=o.useState(!0);o.useEffect(()=>{u(!0),window.scrollTo(0,0);(async()=>{try{const{data:e,error:o}=await i.from("policy_documents").select("title, content").eq("document_type",d).eq("published",!0).maybeSingle();if(o)throw o;e&&(j(e.title),T(e.content))}catch(e){}finally{k(!1)}})()},[d]);const S=y&&"light"===x?p.light:p.dark,w=m[d]??l,$=a.sanitize(h.replace(/<table/g,"<table class='policy-table'"),{ALLOWED_TAGS:["h1","h2","h3","h4","p","ul","ol","li","a","strong","em","br","code","pre","table","thead","tbody","tr","th","td","div","span"],ALLOWED_ATTR:["href","target","rel","class","style"],ALLOW_DATA_ATTR:!1});return B?e.jsx("div",{className:"min-h-screen flex items-center justify-center transition-colors duration-300",style:{background:S.sectionBg},children:e.jsxs("div",{className:"flex flex-col items-center gap-4 p-8 rounded-2xl",style:{background:S.cardBg,border:`1px solid ${S.cardBorder}`,backdropFilter:"blur(12px)"},children:[e.jsx(s,{className:"h-8 w-8 animate-spin",style:{color:S.accentText}}),e.jsx("p",{className:"text-sm",style:{color:S.mutedText},children:"Loading…"})]})}):e.jsxs("div",{className:"min-h-screen flex flex-col transition-colors duration-300",style:{background:S.sectionBg},children:[e.jsx(t,{title:f,description:g,canonicalUrl:b}),e.jsx("div",{"aria-hidden":!0,className:"fixed inset-0 pointer-events-none",style:{backgroundImage:[`linear-gradient(${S.gridLine} 1px, transparent 1px)`,`linear-gradient(90deg, ${S.gridLine} 1px, transparent 1px)`].join(", "),backgroundSize:"40px 40px",zIndex:0}}),e.jsx(n,{}),e.jsxs("main",{className:"relative z-10 flex-1 max-w-7xl mx-auto w-full px-4 sm:px-8 lg:px-12 pt-20 pb-20",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-[0.14em] mb-4",style:{background:S.badgeBg,border:`1px solid ${S.badgeBorder}`,color:S.accentText},children:[e.jsx(w,{className:"w-3.5 h-3.5"}),c]}),e.jsx("h1",{className:"text-3xl sm:text-4xl font-bold",style:{fontFamily:"'Roboto Slab', serif",color:S.headlineColor,textShadow:"0 2px 16px rgba(139,92,246,0.25)"},children:v})]}),e.jsxs("div",{className:"relative overflow-hidden rounded-2xl sm:rounded-3xl",style:{background:S.cardBg,border:`1px solid ${S.cardBorder}`,backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:[e.jsx("div",{style:{position:"absolute",top:0,left:"5%",right:"5%",height:"2px",background:"linear-gradient(90deg, transparent, rgba(139,92,246,0.60), transparent)",borderRadius:"2px"}}),e.jsx("div",{className:"px-6 sm:px-10 py-10",children:e.jsx("section",{className:"policy-content",dangerouslySetInnerHTML:{__html:$}})})]})]}),e.jsx("style",{children:`\n        .policy-content {\n          color: ${S.proseBody};\n          line-height: 1.8;\n          font-size: 0.9rem;\n        }\n        .policy-content h1 { font-size: 1.6rem; font-weight: 800; font-family: 'Roboto Slab', serif; color: ${S.proseH1}; margin: 2rem 0 1rem; letter-spacing: -0.02em; }\n        .policy-content h2 { font-size: 1.25rem; font-weight: 700; font-family: 'Roboto Slab', serif; color: ${S.proseH2}; margin: 1.75rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid ${S.proseBorder}; }\n        .policy-content h3 { font-size: 1.05rem; font-weight: 600; color: ${S.proseH3}; margin: 1.4rem 0 0.6rem; }\n        .policy-content h4 { font-size: 0.95rem; font-weight: 600; color: ${S.proseH3}; margin: 1.2rem 0 0.5rem; }\n        .policy-content p { margin-bottom: 1rem; }\n        .policy-content ul, .policy-content ol { margin: 0.75rem 0 1rem 1.5rem; }\n        .policy-content li { margin-bottom: 0.4rem; }\n        .policy-content ul { list-style: disc; }\n        .policy-content ol { list-style: decimal; }\n        .policy-content a { color: ${S.proseLink}; text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }\n        .policy-content a:hover { color: ${S.proseLinkHover}; }\n        .policy-content strong { font-weight: 700; color: ${S.proseStrong}; }\n        .policy-content em { font-style: italic;
1 opacity: 0.9; }\n        .policy-content code { font-family: monospace; font-size: 0.85em; background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.25); border-radius: 4px; padding: 1px 5px; color: ${S.proseH3}; }\n        .policy-content pre { background: rgba(0,0,0,0.25); border: 1px solid ${S.proseBorder}; border-radius: 12px; padding: 1rem; overflow-x: auto; margin: 1rem 0; }\n        .policy-content pre code { background: none; border: none; padding: 0; }\n        .policy-content .policy-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; border-radius: 10px; overflow: hidden; border: 1px solid ${S.proseBorder}; font-size: 0.85rem; }\n        .policy-content .policy-table th { background: ${S.proseThBg}; color: ${S.proseThText}; font-weight: 700; padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid ${S.proseBorder}; }\n        .policy-content .policy-table td { background: ${S.proseTdBg}; padding: 0.65rem 1rem; border-bottom: 1px solid ${S.proseBorder}; vertical-align: top; }\n        .policy-content .policy-table tr:last-child td { border-bottom: none; }\n        .policy-content .policy-table tr:hover td { background: rgba(139,92,246,0.06); }\n\n        .font-roboto-slab { font-family: 'Roboto Slab', serif; }\n        .font-roboto { font-family: 'Roboto', sans-serif; }\n      `})]})}function g(){return e.jsx(f,{documentType:"terms-of-use",defaultTitle:"Terms of Use",seoTitle:"Terms of Use - SmartMentor.ai",seoDescription:"Read our Terms of Use to understand how to use SmartMentor.ai services",canonicalUrl:"https://smartmentor.ai/terms-of-use"})}function b(){return e.jsx(f,{documentType:"privacy-policy",defaultTitle:"Privacy Policy",seoTitle:"Privacy Policy - SmartMentor.ai",seoDescription:"Learn how SmartMentor.ai protects your privacy and handles your personal data",canonicalUrl:"https://smartmentor.ai/privacy-policy"})}function x(){return e.jsx(f,{documentType:"refund-policy",defaultTitle:"Refund Policy",seoTitle:"Refund Policy - SmartMentor.ai",seoDescription:"Understand SmartMentor.ai refund policy and how to request refunds",canonicalUrl:"https://smartmentor.ai/refund-policy"})}export{f as PolicyPageLayout,b as PrivacyPolicy,x as RefundPolicy,g 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.