1import{s as X,j as e,u as Ze,b as Ke,c as et,L as S,G as tt,g as st,a as Ie,d as at,e as Ee,f as it,h as lt}from"./index-B4Uy4NJO.js";import{r as i,_ as xe,d as H,Q as nt,$ as ot,n as rt,X as he,p as $e,a0 as dt,J as se,a1 as ct,o as W,u as mt,z as xt,s as ut,a2 as pt,Z as Oe,a3 as Be,a4 as Ae,a5 as qe,a6 as ht,a7 as gt,K as ft,a8 as Ue,a9 as ze,aa as bt,A as yt}from"./lucide-mMo7nqgk.js";import{m as j,A as ae}from"./framer-mxZmfqgM.js";import"./vendor-Cv6_TLXB.js";const G=[{id:"ui_design",name:"UI & Visual Design",icon:"ð¨",topics:[{id:"visual_quality",name:"Visual Quality"},{id:"layout_spacing",name:"Layout & Spacing"},{id:"visual_hierarchy",name:"Visual Hierarchy"},{id:"typography",name:"Typography"},{id:"color_contrast",name:"Color & Contrast"},{id:"consistency",name:"Consistency"}]},{id:"ux_usability",name:"UX & Usability",icon:"âï¸",topics:[{id:"ease_of_use",name:"Ease of Use"},{id:"interaction_feedback",name:"Interaction Feedback"},{id:"task_completion",name:"Task Completion"},{id:"cognitive_load",name:"Cognitive Load"},{id:"content_communication",name:"Content Communication"},{id:"conversion_experience",name:"Conversion Experience"}]},{id:"conversion_problem",name:"Conversion & Problem Finder",icon:"ð",topics:[{id:"conversion_risks",name:"Conversion Risks"},{id:"trust_risks",name:"Trust Risks"},{id:"mental_load_issues",name:"Mental Load Issues"},{id:"optimization_wins",name:"Optimization Wins"}]},{id:"architecture_ia",name:"Architecture & Information Architecture",icon:"ðï¸",topics:[{id:"primary_intent",name:"Primary Intent"},{id:"entry_context",name:"Entry Context"},{id:"first_impression",name:"First Impression"},{id:"ia_quality",name:"IA Quality"},{id:"above_fold_flow",name:"Above-Fold & Flow"}]},{id:"trust_brand",name:"Trust & Brand",icon:"ð¡ï¸",topics:[{id:"trust_safety",name:"Trust & Safety"},{id:"brand_perception",name:"Brand Perception"},{id:"emotional_response",name:"Emotional Response"}]},{id:"mobile_context",name:"Mobile & Context",icon:"ð±",topics:[{id:"accessibility",name:"Accessibility"},{id:"mobile_optimization",name:"Mobile Optimization"},{id:"performance_perception",name:"Performance Perception"},{id:"interaction_states",name:"Interaction States"},{id:"user_scenarios",name:"User Scenarios"},{id:"psychology_alignment",name:"Psychology Alignment"}]},{id:"usability_heuristics",name:"Usability Heuristics",icon:"âï¸",topics:[{id:"visibility_of_system_status",name:"Visibility of System Status"},{id:"match_system_real_world",name:"Match Between System and Real World"},{id:"user_control_freedom",name:"User Control and Freedom"},{id:"consistency_standards",name:"Consistency and Standards"},{id:"error_prevention",name:"Error Prevention"},{id:"recognition_over_recall",name:"Recognition Rather Than Recall"},{id:"flexibility_efficiency",name:"Flexibility and Efficiency of Use"},{id:"aesthetic_minimalist",name:"Aesthetic & Minimalist Design"},{id:"error_recovery",name:"Error Recovery"},{id:"help_documentation",name:"Help & Documentation"}]},{id:"ux_laws",name:"UX Laws & Psychology",icon:"ð§ ",topics:[{id:"hicks_law",name:"Hick's Law"},{id:"millers_law",name:"Miller's Law"},{id:"fitts_law",name:"Fitts's Law"},{id:"zeigarnik_effect",name:"Zeigarnik Effect"}]}],pe=G.flatMap(n=>n.topics.map(g=>g.id)),wt={};G.forEach(n=>{n.topics.forEach(g=>{wt[g.id]={topicName:g.name,categoryName:n.name,categoryIcon:n.icon}})});const jt=[{id:"quick",name:"Quick Audit",icon:"â¡",description:"Find the biggest UX, UI and conversion issues quickly.",ctaText:"Use Quick Audit",topicIds:["visual_quality","layout_spacing","visual_hierarchy","typography","color_contrast","consistency","ease_of_use","interaction_feedback","task_completion","cognitive_load","content_communication","conversion_risks","mental_load_issues","optimization_wins"],categoryBreakdown:[{categoryName:"UI & Visual Design",topics:["Visual Quality","Layout & Spacing","Visual Hierarchy","Typography","Color & Contrast","Consistency"]}
1,{categoryName:"UX & Usability",topics:["Ease of Use","Interaction Feedback","Task Completion","Cognitive Load","Content Communication"]},{categoryName:"Conversion & Problem Finder",topics:["Conversion Risks","Mental Load Issues","Optimization Wins"]}]},{id:"conversion",name:"Conversion Audit",icon:"ð",description:"Find friction, trust problems and UX issues that may affect conversion.",ctaText:"Use Conversion Audit",topicIds:["ease_of_use","task_completion","cognitive_load","content_communication","conversion_experience","conversion_risks","trust_risks","mental_load_issues","optimization_wins","trust_safety","brand_perception","primary_intent","entry_context","first_impression","ia_quality","above_fold_flow"],categoryBreakdown:[{categoryName:"UX & Usability",topics:["Ease of Use","Task Completion","Cognitive Load","Content Communication","Conversion Experience"]},{categoryName:"Conversion & Problem Finder",topics:["Conversion Risks","Trust Risks","Mental Load Issues","Optimization Wins"]},{categoryName:"Trust & Brand",topics:["Trust & Safety","Brand Perception"]},{categoryName:"Architecture & IA",topics:["Primary Intent","Entry Context","First Impression","IA Quality","Above-Fold & Flow"]}]},{id:"design",name:"Design Audit",icon:"ð¨",description:"Evaluate your visual design, usability, brand experience and UX principles.",ctaText:"Use Design Audit",topicIds:["visual_quality","layout_spacing","visual_hierarchy","typography","color_contrast","consistency","ease_of_use","interaction_feedback","task_completion","cognitive_load","content_communication","trust_safety","brand_perception","emotional_response","hicks_law","millers_law","fitts_law","zeigarnik_effect"],categoryBreakdown:[{categoryName:"UI & Visual Design",topics:["Visual Quality","Layout & Spacing","Visual Hierarchy","Typography","Color & Contrast","Consistency"]}
1,{categoryName:"UX & Usability",topics:["Ease of Use","Interaction Feedback","Task Completion","Cognitive Load","Content Communication"]},{categoryName:"Trust & Brand",topics:["Trust & Safety","Brand Perception","Emotional Response"]},{categoryName:"UX Laws & Psychology",topics:["Hick's Law","Miller's Law","Fitts's Law","Zeigarnik Effect"]}]},{id:"full",name:"Full Audit",icon:"ð",description:"Run the complete MyDesignAudit analysis.",ctaText:"Run Full Audit",topicIds:pe,categoryBreakdown:G.map(n=>({categoryName:n.name,topics:n.topics.map(g=>g.name)}))},{id:"custom",name:"Custom Audit",icon:"â¨",description:"Choose exactly what you want MyDesignAudit to analyze.",ctaText:"Create Custom Audit",topicIds:[],categoryBreakdown:[]}],Me=({checked:n,indeterminate:g,onChange:c,id:J,disabled:N=!1})=>{const u=i.useRef(null);return i.useEffect(()=>{u.current&&(u.current.indeterminate=!n&&g)},[n,g]),e.jsx("input",{type:"checkbox",id:J,ref:u,checked:n,onChange:c,disabled:N,className:"w-4 h-4 rounded border-slate-300 text-[#635FF4] accent-[#635FF4] cursor-pointer shrink-0 disabled:cursor-not-allowed disabled:opacity-40"})},ve={quick:{icon:e.jsx(Oe,{className:"w-4 h-4"}),accent:"text-amber-600",iconBg:"bg-amber-50 border-amber-200/80"},conversion:{icon:e.jsx(pt,{className:"w-4 h-4"}),accent:"text-emerald-600",iconBg:"bg-emerald-50 border-emerald-200/80"},design:{icon:e.jsx(ut,{className:"w-4 h-4"}),accent:"text-violet-600",iconBg:"bg-violet-50 border-violet-200/80"},full:{icon:e.jsx(xt,{className:"w-4 h-4"}),accent:"text-[#635FF4]",iconBg:"bg-indigo-50 border-indigo-200/80"},custom:{icon:e.jsx(mt,{className:"w-4 h-4"}),accent:"text-slate-600",iconBg:"bg-slate-100 border-slate-200/80"}},ue=(n,g="Free")=>{const c=g||"Free";return c==="Pro"?{isLocked:!1,requiredPlan:null,badge:null}:c==="Basic"||c==="Standard"?n==="custom"?{isLocked:!0,requiredPlan:"Pro",badge:"Pro Only"}:{isLocked:!1,requiredPlan:null,badge:null}:n==="quick"?{isLocked:!1,requiredPlan:null,badge:null}:n==="custom"?{isLocked:!0,requiredPlan:"Pro",badge:"Pro Only"}:{isLocked:!0,requiredPlan:"Basic",badge:"Basic+"}},vt=({sourceTitle:n,sourceType:g="link",userPlan:c="Free",onStartAudit:J,onCancel:N,onUpgradePlan:u})=>{const[Ne,R]=i.useState("presets"),[f,ge]=i.useState(pe),[p,T]=i.useState(null),[B,F]=i.useState(null),[y,U]=i.useState([]),[_e,L]=i.useState(!1),[v,q]=i.useState(null),[ke,Ce]=i.useState(""),[Q,z]=i.useState(""),[ie,Z]=i.useState("#635FF4"),[w,fe]=i.useState(!1),[_,M]=i.useState(null);i.useEffect(()=>{c==="Pro"&&X.auth.getUser().then(({data:{user:t}})=>{t&&X.from("user_profiles").select("white_label_brand_name, white_label_logo_url, white_label_color").eq("id",t.id).maybeSingle().then(({data:s})=>{s&&(s.white_label_brand_name&&Ce(s.white_label_brand_name),s.white_label_logo_url&&z(s.white_label_logo_url),s.white_label_color&&Z(s.white_label_color))})})},[c]);const be=t=>{U(s=>s.includes(t)?s.filter(o=>o!==t):[...s,t])},ye=y.length===G.length,le=()=>U(ye?[]:G.map(t=>t.id)),x=t=>ge(s=>s.includes(t)?s.filter(o=>o!==t):[...s,t]),$=f.length===pe.length,k=f.length>0&&!$,ne=()=>ge($?[]:[...pe]),K=t=>{const s=t.topics.map(m=>m.id),o=s.filter(m=>f.includes(m)).length;return{count:o,total:s.length,isAll:o===s.length,isSome:o>0&&o<s.length}},ee=t=>{const s=t.topics.map(m=>m.id),{isAll:o}=K(t);ge(m=>o?m.filter(b=>!s.includes(b)):Array.from(new Set([...m,...s])))},oe=t=>{t.id==="custom"?R("custom"):T(t)},O=(t,s)=>{c==="Pro"?(q({auditType:t,selectedTopics:s}),L(!0)):J(t,s)},V=t=>{const s=ue(t.id,c);if(s.isLocked)F({presetName:t.name,requiredPlan:s.requiredPlan||"Basic"});else if(t.id==="custom")R("custom");else{const o=t.categoryBreakdown.map(m=>m.categoryName);O(t.name,o)}},we=()=>{if(ue("custom",c).isLocked){F({presetName:"Custom Audit",requiredPlan:"Pro"});return}if(f.length===0)return;const s=G.filter(o=>o.topics.some(m=>f.includes(m.id))).map(o=>o.name);O("Custom Audit",s)},I=async t=>{var m;const s=(m=t.target.files)==null?void 0:m[0];if(!s)return;fe(!0),M(null);const o=await Ze(s);fe(!1),o.success&&o.url?z(o.url):M(o.error||"Failed to upload logo.")},D=()=>{v&&(J(v.auditType,v.selectedTopics,{brandName:ke.trim()||void 0,logoUrl:Q||void 0,color:ie}),L(!1))},A=()=>{v&&(J(v.auditType,v.selectedTopics),L(!1))},C=ue("custom",c).isLocked;return e.jsxs("div",{className:"w-full max-w-4xl mx-auto px-4 py-4 md:py-6",children:[n&&e.jsx(j.div,{initial:{opacity:0,y:-4}
1,animate:{opacity:1,y:0},className:"flex justify-center mb-8",children:e.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-1.5 bg-slate-950 text-white rounded-full text-[11px] font-medium tracking-wide shadow-sm",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-400 shrink-0"}),e.jsx("span",{className:"text-slate-400",children:g==="image"?"Screenshot":"URL"}),e.jsx("span",{className:"text-slate-300 font-semibold truncate max-w-[180px] md:max-w-xs",children:n}),N&&e.jsx("button",{onClick:N,className:"ml-1 text-slate-500 hover:text-slate-300 text-[11px] transition-colors",children:"â Change"})]})}),e.jsxs(j.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx("h2",{className:"text-[22px] md:text-3xl font-extrabold text-slate-900 tracking-tight mb-1.5",children:"Choose your audit scope"}),e.jsx("p",{className:"text-sm text-slate-500 max-w-xs mx-auto",children:"Pick a preset or build a custom scope."})]}),e.jsxs(ae,{mode:"wait",children:[Ne==="presets"&&e.jsx(j.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.16},children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:jt.map((t,s)=>{const o=ve[t.id];t.id;const m=t.id==="custom",b=ue(t.id,c);return e.jsxs(j.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:s*.04,duration:.18},onClick:()=>oe(t),className:"group text-left rounded-2xl border border-slate-200 bg-white hover:border-slate-300 hover:shadow-sm transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#635FF4]/40 relative overflow-hidden",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsx("div",{className:`w-9 h-9 rounded-xl flex items-center justify-center border ${o.iconBg} ${o.accent}`,children:o.icon}),m?e.jsx("span",{className:"text-[10px] font-black text-indigo-500 bg-indigo-50 border border-indigo-200 px-2 py-0.5 rounded-full tracking-wide",children:"Custom"}):e.jsxs("span",{className:"text-[10px] font-black text-slate-400 bg-slate-100 border border-slate-200 px-2 py-0.5 rounded-full tabular-nums tracking-wide",children:[t.topicIds.length," topics"]})]}),e.jsx("p",{className:"text-[13px] font-bold text-slate-900 mb-1 leading-snug",children:t.name}),e.jsx("p",{className:"text-[11px] text-slate-500 leading-relaxed line-clamp-2",children:t.description})]}),e.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between rounded-b-2xl border-t border-slate-100 bg-slate-50/60",children:[e.jsx("span",{className:`text-[11px] font-semibold transition-colors ${o.accent}`,children:m?"Build scope":"Preview & select"}),e.jsx("div",{className:`w-5 h-5 rounded-full flex items-center justify-center transition-all duration-200 group-hover:translate-x-0.5 ${b.isLocked?"text-amber-500":"text-slate-400 group-hover:text-slate-700"}`,children:b.isLocked?e.jsx(xe,{className:"w-3.5 h-3.5 text-amber-500"}):e.jsx(H,{className:"w-3.5 h-3.5"})})]})]},t.id)})})},"presets"),Ne==="custom"&&e.jsxs(j.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.16},className:"bg-white border border-slate-200 rounded-2xl overflow-hidden shadow-sm",children:[C&&e.jsxs("div",{className:"bg-amber-50 border-b border-amber-200 px-4 py-3 flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold text-amber-800",children:[e.jsx(xe,{className:"w-4 h-4 text-amber-600 shrink-0"}),e.jsx("span",{children:"Custom Scope selection is an exclusive Pro feature."})]}),u&&e.jsx("button",{onClick:()=>u("Pro"),className:"px-3 py-1 bg-amber-600 hover:bg-amber-700 text-white rounded-lg text-xs font-black transition-all shrink-0 shadow-sm",children:"Upgrade to Pro"})]}),e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-slate-100 bg-slate-50/60",children:[e.jsxs("button",{onClick:()=>R("presets"),className:"flex items-center gap-1.5 text-[11px] font-semibold text-slate-500 hover:text-slate-900 transition-colors",children:[e.jsx(nt,{className:"w-3.5 h-3.5"}),"Back"]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:le,className:"text-[11px] font-semibold text-slate-500 hover:text-slate-900 transition-colors",children:ye?"Collapse all":"Expand all"}),e.jsx("div",{className:"h-3.5 w-px bg-slate-200"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Me,{id:"sel-all",checked:$,indeterminate:k,onChange:ne,disabled:C}),e.jsx("label",{htmlFor:"sel-all",className:`text-[11px] font-semibold text-slate-700 cursor-pointer ${C?"opacity-50 cursor-not-allowed":""}`,children:"Select all"})]}),e.jsx("div",{className:"h-3.5 w-px bg-slate-200"}),e.jsxs("span",{className:`text-[11px] font-bold tabular-nums ${f.length===0?"text-red-500":"text-[#635FF4]"}`,children:[f.length," / ",pe.length]})]})]}),e.jsx("div",{className:`p-4 grid grid-cols-1 md:grid-cols-2 gap-3 items-start ${C?"opacity-60 pointer-events-none select-none":""}`,children:G.map(t=>{const{count:s,total:o,isAll:m,isSome:b}=K(t),te=y.includes(t.id);return e.jsxs("div",{className:"border border-slate-200 rounded-xl overflow-hidden bg-white shadow-xs transition-all",children:[e.jsxs("div",{onClick:()=>be(t.id),className:`flex items-center justify-between px-3.5 py-3 cursor-pointer select-none transition-colors ${te?"bg-slate-50/90 border-b border-slate-100":"bg-white hover:bg-slate-50/50"}`,children:[e.jsxs("div",{className:"flex items-center gap-2.5",onClick:P=>P.stopPropagation(),children:[e.jsx(Me,{id:`cat-${t.id}`,checked:m,indeterminate:b,onChange:()=>ee(t),disabled:C}),e.jsxs("label",{htmlFor:`cat-${t.id}`,className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("span",{className:"text-base leading-none",children:t.icon}),e.jsx("span",{className:"text-xs font-bold text-slate-900",children:t.name})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-full tabular-nums tracking-wide ${s>0?"bg-indigo-100 text-indigo-700":"bg-slate-100 text-slate-500"}`,children:[s,"/",o]}),e.jsx("div",{className:"w-6 h-6 rounded-lg flex items-center justify-center text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",children:te?e.jsx(ot,{className:"w-4 h-4 text-slate-600"}):e.jsx(rt,{className:"w-4 h-4 text-slate-400"})})]})]}),e.jsx(ae,{initial:!1,children:te&&e.jsx(j.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:e.jsx("div",{className:"p-2.5 grid grid-cols-2 gap-1.5 bg-slate-50/30",children:t.topics.map(P=>{const re=f.includes(P.id);return e.jsxs("label",{className:`flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-[11px] font-medium cursor-pointer transition-all select-none ${re?"bg-indigo-50 text-indigo-800 border border-indigo-200/80":"text-slate-500 hover:text-slate-800 hover:bg-slate-100/70 border border-transparent"}`,children:[e.jsx("input",{type:"checkbox",checked:re,onChange:()=>x(P.id),disabled:C,className:"w-3.5 h-3.5 rounded border-slate-300 text-[#635FF4] accent-[#635FF4] shrink-0 disabled:cursor-not-allowed"}),e.jsx("span",{className:"truncate leading-snug",children:P.name})]},P.id)})})})})]},t.id)})}),e.jsxs("div",{className:"px-4 py-3.5 border-t border-slate-100 bg-slate-50/60 flex items-center justify-between gap-3",children:[e.jsx("span",{className:"text-[11px] text-slate-500",children:f.length>0?e.jsxs("span",{className:"font-semibold text-slate-700",children:[f.length," topics selected"]}):e.jsx("span",{className:"text-red-500 font-semibold",children:"No topics selected"})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>R("presets"),className:"px-3.5 py-2 rounded-xl text-[11px] font-semibold text-slate-600 border border-slate-200 hover:bg-white transition-colors",children:"Cancel"}),e.jsx("button",{onClick:we,disabled:f.length===0,className:`px-4 py-2 text-white rounded-xl text-[11px] font-bold transition-all shadow-sm active:scale-[0.97] flex items-center gap-1.5 ${C?"bg-amber-600 hover:bg-amber-700":"bg-[#635FF4] hover:bg-[#524ee5]"}`,children:C?e.jsxs(e.Fragment,{children:[e.jsx(xe,{className:"w-3.5 h-3.5"})," Upgrade to Pro"]}):e.jsxs(e.Fragment,{children:["Run Custom Audit ",e.jsx(H,{className:"w-3.5 h-3.5"})]})})]})]})]},"custom")]}),e.jsx(ae,{children:p&&e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:()=>T(null),children:[e.jsx(j.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-slate-900/40 backdrop-blur-[2px]"}),e.jsxs(j.div,{initial:{opacity:0,scale:.97,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.97,y:6},transition:{duration:.16},onClick:t=>t.stopPropagation(),className:"relative w-full max-w-md bg-white rounded-2xl border border-slate-200 shadow-2xl max-h-[85vh] flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-8 h-8 rounded-xl flex items-center justify-center border ${ve[p.id].iconBg} ${ve[p.id].accent}`,children:ve[p.id].icon}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-slate-900 leading-tight",children:p.name}),e.jsxs("p",{className:"text-[10px] text-slate-400 font-medium",children:[p.topicIds.length," topics"]})]})]}),e.jsx("button",{onClick:()=>T(null),className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors",children:e.jsx(he,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"overflow-y-auto flex-1 px-5 py-4 space-y-3",children:p.categoryBreakdown.map((t,s)=>e.jsxs("div",{className:"border border-slate-100 rounded-xl overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-3.5 py-2 bg-slate-50",children:[e.jsx("span",{className:"text-[11px] font-bold text-slate-700",children:t.categoryName}),e.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:t.topics.length})]}),e.jsx("div",{className:"px-3.5 py-2.5 grid grid-cols-2 gap-1.5",children:t.topics.map((o,m)=>e.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-slate-600",children:[e.jsx($e,{className:"w-3 h-3 text-[#635FF4] shrink-0"}),e.jsx("span",{className:"truncate",children:o})]},m))})]},s))}),e.jsxs("div",{className:"px-5 py-4 border-t border-slate-100 flex items-center gap-2.5",children:[e.jsx("button",{onClick:()=>T(null),className:"flex-1 py-2.5 rounded-xl text-[11px] font-semibold text-slate-600 border border-slate-200 hover:bg-slate-50 transition-colors",children:"Cancel"}),(()=>{const t=ue(p.id,c);return t.isLocked?e.jsxs("button",{onClick:()=>{const s=t.requiredPlan||"Basic",o=p.name;T(null),u?u(s):F({presetName:o,requiredPlan:s})},className:"flex-1 py-2.5 bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 text-white rounded-xl text-[11px] font-bold transition-all shadow-sm active:scale-[0.97] flex items-center justify-center gap-1.5",children:[e.jsx(xe,{className:"w-3.5 h-3.5"}),"Upgrade to ",t.requiredPlan," to Use"]}):e.jsxs("button",{onClick:()=>{const s=p;T(null),V(s)},className:"flex-1 py-2.5 bg-[#635FF4] hover:bg-[#524ee5] text-white rounded-xl text-[11px] font-bold transition-all shadow-sm active:scale-[0.97] flex items-center justify-center gap-1.5",children:[p.ctaText,e.jsx(H,{className:"w-3.5 h-3.5"})]})})()]})]})]})}),e.jsx(ae,{children:_e&&e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:()=>L(!1),children:[e.jsx(j.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-slate-900/50 backdrop-blur-sm"}),e.jsxs(j.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.18},onClick:t=>t.stopPropagation(),className:"relative w-full max-w-lg bg-white rounded-3xl p-6 md:p-8 border border-slate-100 shadow-2xl overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6 pb-4 border-b border-slate-100",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-2xl bg-indigo-50 border border-indigo-200/80 flex items-center justify-center text-[#635FF4] shrink-0",children:e.jsx(dt,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"text-base font-extrabold text-slate-900 tracking-tight",children:"White-Label Branding"}),e.jsx("span",{className:"px-2 py-0.5 bg-gradient-to-r from-purple-600 to-indigo-600 text-white rounded-full text-[9px] font-black uppercase tracking-wider",children:"Pro Feature"})]}),e.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Customize your audit report logo, brand name, and accent color"})]})]}),e.jsx("button",{onClick:()=>L(!1),className:"p-2 rounded-xl text-slate-400 hover:text-slate-700 hover:bg-slate-100 transition-colors",children:e.jsx(he,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"space-y-5 mb-8",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 uppercase tracking-wider mb-2",children:"Brand / Agency Name"}),e.jsx("input",{type:"text",value:ke,onChange:t=>Ce(t.target.value),placeholder:"e.g. Acme Design Studio",className:"w-full px-4 py-3 rounded-2xl border border-slate-200 text-slate-900 text-sm font-semibold outline-none focus:border-[#635FF4] focus:ring-2 focus:ring-[#635FF4]/20 transition-all placeholder:text-slate-400"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 uppercase tracking-wider mb-2",children:"Brand Logo"}),e.jsx("div",{className:"flex items-center gap-4",children:Q?e.jsxs("div",{className:"relative w-20 h-20 rounded-2xl border border-slate-200 bg-slate-50 p-2 flex items-center justify-center shrink-0 group",children:[e.jsx("img",{src:Q,alt:"Brand Logo",className:"max-w-full max-h-full object-contain"}),e.jsx("button",{type:"button",onClick:()=>z(""),className:"absolute -top-2 -right-2 w-6 h-6 rounded-full bg-red-500 text-white flex items-center justify-center text-xs shadow-md hover:bg-red-600 transition-colors",title:"Remove logo",children:"â"})]}):e.jsxs("label",{className:"flex-1 flex flex-col items-center justify-center p-4 rounded-2xl border-2 border-dashed border-slate-200 hover:border-[#635FF4] bg-slate-50/50 cursor-pointer transition-all",children:[e.jsx("input",{type:"file",accept:"image/png, image/jpeg, image/svg+xml, image/webp",onChange:I,className:"hidden",disabled:w}),w?e.jsxs("div",{className:"flex items-center gap-2 text-indigo-600 text-xs font-bold",children:[e.jsx(se,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{children:"Uploading to brand-logos..."})]}):e.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-xs font-semibold",children:[e.jsx(ct,{className:"w-4 h-4 text-slate-400"}),e.jsx("span",{children:"Upload Logo (PNG, JPG, SVG)"})]})]})}),_&&e.jsx("p",{className:"text-[11px] font-bold text-red-500 mt-1.5",children:_})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-bold text-slate-700 uppercase tracking-wider mb-2",children:"Brand Color Code"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"color",value:ie,onChange:t=>Z(t.target.value),className:"w-11 h-11 rounded-xl border border-slate-200 cursor-pointer shrink-0 bg-transparent p-0.5"}),e.jsx("input",{type:"text",value:ie,onChange:t=>Z(t.target.value),placeholder:"#635FF4",className:"flex-1 px-4 py-3 rounded-2xl border border-slate-200 text-slate-900 text-sm font-mono font-bold outline-none focus:border-[#635FF4] focus:ring-2 focus:ring-[#635FF4]/20 transition-all"})]})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{type:"button",onClick:A,className:"flex-1 py-3 px-4 roun
1ded-2xl text-xs font-bold text-slate-600 border border-slate-200 hover:bg-slate-50 transition-colors",children:"Skip Branding"}),e.jsxs("button",{type:"button",onClick:D,disabled:w,className:"flex-1 py-3 px-4 bg-[#635FF4] hover:bg-[#524ee5] text-white rounded-2xl text-xs font-bold transition-all shadow-lg shadow-indigo-600/25 flex items-center justify-center gap-2 active:scale-[0.98] disabled:opacity-50",children:[e.jsx("span",{children:"Apply & Start Audit"}),e.jsx(H,{className:"w-4 h-4"})]})]})]})]})}),e.jsx(ae,{children:B&&e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:()=>F(null),children:[e.jsx(j.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-slate-900/50 backdrop-blur-[3px]"}),e.jsxs(j.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.16},onClick:t=>t.stopPropagation(),className:"relative w-full max-w-sm bg-white rounded-3xl p-6 border border-slate-100 shadow-2xl text-center overflow-hidden",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-amber-50 border border-amber-200/80 flex items-center justify-center mx-auto mb-4 text-amber-600 shadow-sm",children:e.jsx(xe,{className:"w-6 h-6"})}),e.jsxs("h3",{className:"text-lg font-extrabold text-slate-900 mb-1.5 tracking-tight",children:["Unlock ",B.presetName]}),e.jsxs("p",{className:"text-xs text-slate-500 font-medium leading-relaxed mb-6 max-w-[260px] mx-auto",children:["This audit scope requires the ",e.jsxs("strong",{className:"text-slate-900",children:[B.requiredPlan," Plan"]}),". Upgrade your account to access advanced audit scopes."]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("button",{onClick:()=>{const t=B.requiredPlan;F(null),u&&u(t)},className:"w-full py-3 bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 text-white rounded-xl text-xs font-bold transition-all shadow-md flex items-center justify-center gap-2 active:scale-[0.98]",children:[e.jsx(W,{className:"w-4 h-4"}),"Upgrade to ",B.requiredPlan," Plan"]}),e.jsx("button",{onClick:()=>F(null),className:"w-full py-2.5 bg-slate-50 hover:bg-slate-100 text-slate-500 rounded-xl text-xs font-semibold transition-colors",children:"Maybe Later"})]})]})]})})]})},St=({userEmail:n,displayName:g,userPlan:c,userBillingCycle:J="monthly",subscriptionStatus:N="active",hasUsedTrial:u=!1,auditsUsed:Ne,credits:R,isFetchingCredits:f,expiresAt:ge,onReactivate:p,onSubmit:T,onSignOut:B,onProfile:F})=>{const[y,U]=i.useState(""),[_e,L]=i.useState("input"),[v,q]=i.useState(!1),[ke,Ce]=i.useState(!1),Q=Ke(),[z,ie]=i.useState(!1),[Z,w]=i.useState(null),[fe,_]=i.useState(!1),[M,be]=i.useState(!1),[ye,le]=i.useState(""),[x,$]=i.useState(null),[k,ne]=i.useState(null),[K,ee]=i.useState(!1),[oe,O]=i.useState(null),[V,we]=i.useState("pending"),[I,D]=i.useState(null),[A,C]=i.useState(null),[t,s]=i.useState([]),[o,m]=i.useState(!1),b=i.useRef(null),te=async a=>{be(!0),w(null);const l=(c||"Standard").toLowerCase();try{const r=await it(l,"monthly");if(r.url){window.location.href=r.url;return}const d=await lt({plan:l,billingCycle:"monthly",email:n});if(d.checkout_url){window.location.href=d.checkout_url;return}alert("Unable to open checkout portal directly. Please check your email inbox ("+n+") for Dodo Payments' automated billing notification, or choose a plan from the billing section to reactivate.")}catch{alert("Something went wrong loading the payment portal. Please try refreshing or check your email inbox ("+n+").")}finally{be(!1)}},[P,re]=i.useState(!1),Se=i.useRef(null),Ve=g||n.split("@")[0],De=10*1024*1024,Fe=R,de=!f&&!z&&Fe<=0,ce=!u&&!f&&!z&&Fe<=0,Ye=!0,Pe=async()=>{if(n){m(!0);try{const a=await st(n);s(a||[])}catch{}finally{m(!1)}}};i.useEffect(()=>{Pe()},[n]),i.useEffect(()=>{et();const a=sessionStorage.getItem("pending_audit_url");a&&U(a);const l=sessionStorage.getItem("pending_audit_file"),r=sessionStorage.getItem("pending_audit_filename");l&&r&&fetch(l).then(d=>d.blob()).then(d=>{const h=new File([d],r,{type:d.type||"image/png"});$(h),le(r),ne(l)}).catch(d=>{})},[]),i.useEffect(()=>{var l;if(((l=Q.state)==null?void 0:l.fromPaymentSuccess)||sessionStorage.getItem("just_completed_payment")==="true"){sessionStorage.removeItem("just_completed_payment"),ie(!0),p(!0);let r=0;const d=setInterval(()=>{r+=1,R>0||r>=3?clearInterval(d):p(!0)},2500);return()=>clearInterval(d)}},[Q.state]),i.useEffect(()=>{function a(l){Se.current&&!Se.current.contains(l.target)&&re(!1)}return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[]),i.useEffect(()=>()=>{k&&URL.revokeObjectURL(k)},[k]),i.useEffect(()=>{if(!K||!oe)return;let a=!0;const l=async()=>{try{const{data:d,error:h}=await X.from("audit_requests").select("id, status, report_url, overall_score, input_value, input_type, audit_type").eq("id",oe).maybeSingle();if(h)return;if(d&&a&&(we(d.status),d.status==="completed")){D(d);const E=`ga_tracked_audit_completed_${d.id}`;sessionStorage.getItem(E)||(sessionStorage.setItem(E,"true"),Ie.auditCompleted({plan:c,score:d.overall_score}),Pe())}}catch{}};l();const r=setInterval(()=>{if(V==="completed"||V==="failed"){clearInterval(r);return}l()},1e4);return()=>{a=!1,clearInterval(r)}},[K,oe,V]),i.useEffect(()=>{if(!n)return;(async()=>{try{const{data:l,error:r}=await X.from("audit_requests").select("id, status, report_url, overall_score, input_value, audit_type, created_at").eq("email",n).eq("status","completed").order("created_at",{ascending:!1}).limit(5);if(!r&&l&&l.length>0){const d=JSON.parse(localStorage.getItem("dismissed_completed_audit_notifications")||"[]"),h=l.find(E=>E.report_url&&!d.includes(E.id));h&&C(h)}}catch{}})()},[n]);const We=a=>{try{const l=JSON.parse(localStorage.getItem("dismissed_completed_audit_notifications")||"[]");l.includes(a)||(l.push(a),localStorage.setItem("dismissed_completed_audit_notifications",JSON.stringify(l)))}catch{}C(null)},Xe=a=>{if(de&&!ce){_(!0);return}if(a.target.files&&a.target.files[0]){const l=a.target.files[0];if(!["image/png","image/jpeg","image/jpg"].includes(l.type)){w("Unsupported file format. Please upload a PNG or JPEG image."),b.current&&(b.current.value="");return}if(l.size>De){w("File is too large. Please upload an image smaller than 10MB."),b.current&&(b.current.value="");return}le(l.name),$(l),U(""),w(null);const d=URL.createObjectURL(l);ne(d);const h=new FileReader;h.onload=()=>
1{if(typeof h.result=="string")try{sessionStorage.setItem("pending_audit_file",h.result),sessionStorage.setItem("pending_audit_filename",l.name)}catch{}},h.readAsDataURL(l)}},je=()=>{le(""),$(null),w(null),k&&(URL.revokeObjectURL(k),ne(null)),b.current&&(b.current.value=""),sessionStorage.removeItem("pending_audit_file"),sessionStorage.removeItem("pending_audit_filename")},He=a=>{if(a.preventDefault(),ce){y.trim()&&sessionStorage.setItem("pending_audit_url",y.trim()),sessionStorage.setItem("trial_intent","true"),F("billing"),setTimeout(()=>{window.location.hash="plans-section";const l=document.getElementById("plans-section");l&&l.scrollIntoView({behavior:"smooth"})},150);return}if(de){_(!0);return}if(!x&&!y.trim()){alert("Please enter a website URL or upload an image screenshot.");return}w(null),L("scope")},Ge=async(a,l,r)=>{if(v)return;if(de){Ie.upgradeClicked({plan:c,upgrade_location:"dashboard_limit_exceeded"}),_(!0);return}let d=y;const{data:{session:h}}=await X.auth.getSession();if(!(h!=null&&h.user)){alert("User not logged in");return}if(!x&&!y){alert("No input selected");return}q(!0),Ie.auditStarted({url:d,plan:c});const E=x?"image":"link",Qe={email:h.user.email||n,input_type:E,input_value:x?x.name:d,status:"pending",audit_type:a,selected_topics:l,white_label_brand_name:r==null?void 0:r.brandName,white_label_logo_url:r==null?void 0:r.logoUrl,white_label_color:r==null?void 0:r.color},me=await at(Qe);if(!me.success){q(!1),me.message==="NO_CREDITS"?w("Credit limit reached. Please upgrade your plan to continue."):me.message==="ACCOUNT_BANNED"?w("This account has been restricted. Please contact support for more information."):alert(me.message||"Failed to start audit.");return}const Y=me.data.id,Re=`${Y}/input.png`;if(x){const{error:Te}=await X.storage.from("audit_requests_files").upload(Re,x);if(Te){await Ee(Y),p(),w("Image upload failed: "+Te.message+". Your credit has been restored."),q(!1);return}const{error:Le}=await X.from("audit_requests").update({image_path:Re}).eq("id",Y);if(Le){await Ee(Y),p(),w("Failed to link uploaded image: "+Le.message+". Your credit has been restored."),q(!1);return}}sessionStorage.removeItem("pending_audit_url"),sessionStorage.removeItem("pending_audit_file"),sessionStorage.removeItem("pending_audit_filename"),sessionStorage.removeItem("trial_intent"),sessionStorage.setItem("last_submitted_audit_id",Y),q(!1),O(Y),we("pending"),D(null),ee(!0),T(Y)},Je=()=>y.trim().length>3&&Ye||!!x;if(y.trim().length>0,K){const a=V==="completed"&&(I==null?void 0:I.report_url),l=V==="failed";return e.jsxs("div",{className:"min-h-screen bg-[#Fdfdfc] flex flex-col items-center justify-center px-4 py-12 text-center relative overflow-hidden font-sans",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-[-20%] left-[-10%] w-[70%] h-[80%] bg-gradient-to-br from-indigo-100/40 via-purple-50/30 to-transparent blur-3xl"}),e.jsx("div",{className:"absolute top-[-20%] right-[-10%] w-[70%] h-[80%] bg-gradient-to-bl from-cyan-100/40 via-blue-100/30 to-transparent blur-3xl"})]}),a?e.jsxs("div",{className:"max-w-md w-full mx-auto relative z-10 bg-white p-8 md:p-10 rounded-[2.5rem] border border-emerald-200/80 shadow-2xl shadow-emerald-500/10 animate-in fade-in zoom-in-95",children:[e.jsxs("div",{className:"w-20 h-20 bg-emerald-50 rounded-3xl flex items-center justify-center mx-auto mb-6 relative",children:[e.jsx("div",{className:"absolute inset-0 rounded-3xl bg-emerald-200 animate-ping opacity-30"}),e.jsx($e,{className:"w-9 h-9 text-emerald-600 relative z-10 stroke-[3]"})]}),e.jsx("h1",{className:"text-2xl md:text-3xl font-black text-slate-900 mb-3 tracking-tight",children:"ð Your Report is Ready!"}),I.overall_score!==void 0&&I.overall_score!==null&&e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-emerald-50 text-emerald-800 border border-emerald-200 font-extrabold text-sm mb-4",children:[e.jsx("span",{children:"Overall Score:"}),e.jsxs("span",{className:"text-base font-black text-emerald-600",children:[I.overall_score,"/100"]})]}),e.jsx("p",{className:"text-slate-500 text-sm md:text-base font-medium mb-6 leading-relaxed",children:"Your AI design audit has completed successfully."}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs(S,{to:`/view-report?id=${encodeURIComponent(I.id)}&url=${encodeURIComponent(I.report_url)}`,className:"w-full py-4 bg-emerald-600 hover:bg-emerald-700 text-white rounded-2xl font-bold text-sm transition-all shadow-xl shadow-emerald-600/20 active:scale-95 flex items-center justify-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-white"}),"View Report Now"]}),e.jsx("button",{onClick:()=>{ee(!1),O(null),D(null),je(),U("")},className:"text-xs font-bold text-slate-400 hover:text-slate-700 transition-colors py-2",children:"â Submit another design"})]})]}):l?e.jsxs("div",{className:"max-w-md w-full mx-auto relative z-10 bg-white p-8 md:p-10 rounded-[2.5rem] border border-amber-200 shadow-2xl shadow-amber-500/10",children:[e.jsx("div",{className:"w-20 h-20 bg-amber-50 rounded-3xl flex items-center justify-center mx-auto mb-6",children:e.jsx(Be,{className:"w-9 h-9 text-amber-600"})}),e.jsx("h1",{className:"text-2xl font-black text-slate-900 mb-3 tracking-tight",children:"Audit Processing Issue"}),e.jsx("p",{className:"text-slate-600 text-sm font-medium mb-6 leading-relaxed",children:"We encountered an issue while generating your report. Please check My Reports or try submitting again."}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs(S,{to:"/my-reports",className:"w-full py-4 bg-slate-900 text-white rounded-2xl font-bold text-sm hover:bg-slate-800 transition-all shadow-xl shadow-slate-900/10 flex items-center justify-center gap-2",children:[e.jsx(Ae,{className:"w-4 h-4 text-indigo-400"}),"View My Reports"]}),e.jsx("button",{onClick:()=>{ee(!1),O(null),D(null),je(),U("")},className:"text-xs font-bold text-slate-400 hover:text-slate-700 transition-colors py-2",children:"â Back to Dashboard"})]})]}):e.jsxs("div",{className:"max-w-md w-full mx-auto relative z-10 bg-white p-8 md:p-10 rounded-[2.5rem] border border-slate-200/80 shadow-2xl shadow-slate-200/50",children:[e.jsxs("div",{className:"w-20 h-20 bg-indigo-50 rounded-3xl flex items-center justify-center mx-auto mb-6 relative",children:[e.jsx("div",{className:"absolute inset-0 rounded-3xl bg-indigo-200 animate-ping opacity-30"}),e.jsx(Oe,{className:"w-9 h-9 text-[#635FF4] relative z-10",fill:"currentColor"})]}),e.jsx("h1",{className:"text-2xl md:text-3xl font-black text-slate-900 mb-3 tracking-tight",children:"Your audit is running! ð"}),e.jsx("p",{className:"text-slate-500 text-sm md:text-base font-medium mb-2 leading-relaxed",children:"Our AI engine is analyzing your design. Results will be sent to:"}),e.jsx("p",{className:"font-bold text-slate-900 mb-6 text-sm bg-slate-100 px-4 py-2 rounded-xl inline-block border border-slate-200/60 truncate max-w-full",children:n}),e.jsx("div",{className:"bg-slate-50 border border-slate-100 rounded-2xl p-4 mb-8 text-left space-y-3",children:[{icon:"â¡",text:"Your audit is being analyzed. We'll notify you when your report is ready."},{icon:"ð§",text:"Check your inbox for notification"},{icon:"â
",text:"You can safely close this browser window"}].map((r,d)=>e.jsxs("div",{className:"flex items-center gap-3 text-xs md:text-sm font-semibold text-slate-700",children:[e.jsx("span",{className:"text-base",children:r.icon}),r.text]},d))}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs(S,{to:"/my-reports",className:"w-full py-4 bg-slate-900 text-white rounded-2xl font-bold text-sm hover:bg-slate-800 transition-all shadow-xl shadow-slate-900/10 active:scale-95 flex items-center justify-center gap-2",children:[e.jsx(Ae,{className:"w-4 h-4 text-indigo-400"}),"View My Reports"]}),e.jsx("button",{onClick:()=>{ee(!1),O(null),D(null),je(),U("")},className:"text-xs font-bold text-slate-400 hover:text-slate-700 transition-colors py-2",children:"â Submit another design"})]})]})]})}return e.jsxs("div",{className:"min-h-screen font-sans text-slate-900 bg-[#Fdfdfc] selection:bg-cyan-100 relative overflow-x-clip flex flex-col",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none fixed z-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-[-20%] left-[-10%] w-[70%] h-[80%
1] bg-gradient-to-br from-indigo-100/40 via-purple-50/30 to-transparent blur-3xl"}),e.jsx("div",{className:"absolute top-[-20%] right-[-10%] w-[70%] h-[80%] bg-gradient-to-bl from-cyan-100/40 via-blue-100/30 to-transparent blur-3xl"}),e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[50%] h-[60%] bg-gradient-radial from-purple-50/20 to-transparent blur-2xl"}),e.jsx("div",{className:"absolute inset-0 opacity-[0.3] bg-[url('https://grainy-gradients.vercel.app/noise.svg')] bg-repeat mix-blend-overlay"})]}),e.jsxs("nav",{className:"relative z-50 w-full px-4 md:px-6 h-16 md:h-20 flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("img",{src:"/logo-new.png",alt:"My Design Audit",className:"h-7 md:h-8 w-auto",width:"128",height:"32",loading:"eager",decoding:"async"})}),e.jsxs("div",{className:"flex items-center gap-3 md:gap-4",children:[e.jsxs(S,{to:"/profile",state:{activeTab:"referral"},className:"flex items-center gap-1.5 md:gap-2 px-3 md:px-4 py-2 bg-gradient-to-r from-indigo-50 to-purple-50 border border-indigo-200/80 rounded-full shadow-sm hover:shadow-md hover:border-indigo-300 transition-all text-[9px] md:text-[10px] font-black text-indigo-700 uppercase tracking-widest active:scale-95 group/refer",children:[e.jsx(qe,{className:"w-3 h-3 md:w-3.5 md:h-3.5 text-indigo-600 transition-transform group-hover/refer:scale-110"}),e.jsx("span",{className:"hidden xs:inline",children:"Refer & Earn (+2)"}),e.jsx("span",{className:"xs:hidden",children:"Refer"})]}),e.jsxs(S,{to:"/my-reports",className:"flex items-center gap-2 px-3 md:px-4 py-2 bg-white border border-slate-200 rounded-full shadow-sm hover:shadow-md transition-all text-[9px] md:text-[10px] font-black text-slate-600 uppercase tracking-widest active:scale-95 group/reports",children:[e.jsx(Ae,{className:"w-3 h-3 md:w-3.5 md:h-3.5 text-indigo-600 transition-transform group-hover/reports:rotate-[-15deg]"}),e.jsx("span",{className:"hidden xs:inline",children:"My Reports"}),e.jsx("span",{className:"xs:hidden",children:"Reports"})]}),e.jsxs("div",{className:"flex items-center bg-white border border-slate-200 rounded-full shadow-sm overflow-hidden shrink-0",children:[e.jsx("div",{className:`px-3 py-1.5 border-r hidden sm:flex items-center ${!u||N==="on_trial"?"bg-purple-900 border-purple-800":"bg-slate-900 border-slate-800"}`,children:e.jsx("span",{className:"text-[9px] md:text-[10px] font-black text-white uppercase tracking-wider",children:N==="on_trial"?`${c} (14-Day Trial)`:c==="Basic"||c==="Standard"||c==="Pro"?c:u?"No Active Plan":"14-Day Trial Available"})}),e.jsx("div",{className:"flex items-center gap-1.5 px-3 py-1.5",children:f?e.jsx(se,{className:"w-3.5 h-3.5 animate-spin text-slate-400"}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${de?"bg-red-500 animate-pulse":"bg-green-500"}`}),e.jsxs("span",{className:"text-[9px] md:text-[10px] font-black text-slate-500 uppercase tracking-widest flex items-center gap-1.5",children:[Fe," ",e.jsx("span",{className:"hidden xs:inline",children:N==="on_trial"?"Trial Credit Available":"Credits Available"})]})]})})]}),e.jsxs("div",{className:"relative shrink-0",ref:Se,children:[e.jsx("button",{onClick:()=>re(!P),className:"group flex items-center p-0.5 rounded-full border border-slate-200/80 bg-white/60 hover:bg-white transition-all focus:ring-2 focus:ring-slate-100 shadow-sm overflow-hidden",children:e.jsx("div",{className:"w-8 h-8 md:w-9 md:h-9 rounded-full bg-slate-100 overflow-hidden border border-slate-200 shadow-inner",children:e.jsx("img",{src:`https://api.dicebear.com/9.x/lorelei/svg?seed=${n}`,alt:"Profile",width:"36",height:"36",className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})})}),P&&e.jsxs("div",{className:"absolute right-0 top-full mt-2 w-52 md:w-56 bg-white rounded-2xl shadow-xl border border-slate-100/60 p-1.5 z-50 animate-in fade-in slide-in-from-top-2 duration-200 overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-3 border-b border-slate-50 mb-1",children:[e.jsx("p",{className:"text-[9px] md:text-[11px] font-bold text-slate-400 uppercase tracking-tight",children:"Signed in as"}),e.jsx("p",{className:"text-xs md:text-sm font-bold text-[#1e293b] truncate",children:n})]}),e.jsxs("div",{className:"p-1 space-y-1",children:[e.jsxs(S,{to:"/profile",state:{activeTab:"referral"},className:"w-full text-left flex items-center gap-2.5 md:gap-3 px-3 py-2 md:py-2.5 text-xs md:text-sm text-indigo-600 hover:bg-indigo-50/60 rounded-xl transition-colors font-bold group",children:[e.jsx(qe,{className:"w-3.5 h-3.5 md:w-4 md:h-4 text-indigo-500 group-hover:scale-110 transition-transform"}),"Refer & Earn (+2)"]}),e.jsxs(S,{to:"/profile",className:"w-full text-left flex items-center gap-2.5 md:gap-3 px-3 py-2 md:py-2.5 text-xs md:text-sm text-[#334155] hover:bg-[#f8fafc] rounded-xl transition-colors font-bold group",children:[e.jsx(ht,{className:"w-3.5 h-3.5 md:w-4 md:h-4 text-slate-400 group-hover:text-slate-900 transition-colors"}),"Account setting"]}),e.jsxs(S,{to:"/my-reports",className:"w-full text-left flex items-center gap-2.5 md:gap-3 px-3 py-2 md:py-2.5 text-xs md:text-sm text-[#334155] hover:bg-[#f8fafc] rounded-xl transition-colors font-bold group",children:[e.jsx(gt,{className:"w-3.5 h-3.5 md:w-4 md:h-4 text-slate-400 group-hover:text-slate-900 transition-colors"}),"My Reports"]}),e.jsxs("button",{type:"button",onClick:a=>{a.preventDefault(),B()},className:"w-full text-left flex items-center gap-2.5 md:gap-3 px-3 py-2 md:py-2.5 text-xs md:text-sm text-[#ef4444] hover:bg-[#fef2f2] rounded-xl transition-colors font-bold group",children:[e.jsx(ft,{className:"w-3.5 h-3.5 md:w-4 md:h-4 text-[#ef4444]/60 group-hover:text-[#ef4444] transition-colors"}),"Sign out"]})]})]})]})]})]}),e.jsx("div",{className:"flex-1 flex flex-col items-center justify-center relative z-10 px-4 py-10 md:pb-20",children:_e==="scope"?e.jsx(vt,{sourceTitle:x?x.name:y,sourceType:x?"image":"link",userPlan:c,onStartAudit:Ge,onCancel:()=>L("input"),onUpgradePlan:()=>{F("billing"),setTimeout(()=>{window.location.hash="plans-section";const a=document.getElementById("plans-section");a&&a.scrollIntoView({behavior:"smooth"})},150)}}):e.jsxs("div",{className:"w-full max-w-4xl mx-auto flex flex-col items-center text-center",children:[de?null:e.jsxs("div",{className:"animate-fade-in inline-flex items-center gap-2 px-3 md:px-4 py-1.5 rounded-full bg-white border border-slate-200 shadow-sm mb-6",children:[e.jsx("div",{className:"w-1.5 h-1.5 md:w-2 md:h-2 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.5)]"}),e.jsx("span",{className:"text-slate-600 text-[10px] md:text-xs font-bold uppercase tracking-wide",children:"AI Audit Engine Ready"})]}),N==="on_hold"&&e.jsxs("div",{className:"w-full max-w-3xl mx-auto mb-6 p-4 md:p-5 bg-amber-500/10 border border-amber-500/30 rounded-3xl text-amber-900 shadow-sm flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3 text-left",children:[e.jsx("div",{className:"w-10 h-10 bg-amber-500/20 text-amber-600 rounded-2xl flex items-center justify-center shrink-0",children:e.jsx(Ue,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-wider text-amber-700",children:"Payment Declined â Subscription On Hold"}),e.jsx("p",{className:"text-xs md:text-sm font-bold text-slate-900",children:"Your subscription is on hold due to a payment issue. Update your payment details to restore access."})]})]}),e.jsxs("button",{onClick:()=>te(),disabled:M,className:"w-full sm:w-auto px-5 py-2.5 bg-amber-600 hover:bg-amber-700 text-white rounded-2xl font-black text-xs transition-all shadow-md shrink-0 active:scale-95 flex items-center justify-center gap-2 disabled:opacity-50",children:[M?e.jsx(se,{className:"w-4 h-4 animate-spin"}):e.jsx(ze,{className:"w-4 h-4"}),e.jsx("span",{children:"Update Payment Method"})]})]}),e.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold text-slate-900 tracking-tight mb-3 leading-tight px-4 flex items-center justify-center gap-3",children:["Welcome, ",e.jsxs("span",{className:"text-indigo-600 truncate max-w-[200px] inline-block align-bottom",children:[Ve,"!"]})]}),e.jsx("p",{className:"text-sm md:text-base text-slate-600 max-w-2xl mx-auto leading-relaxed font-medium mb-8 px-4",children:"Drop your design or paste a URL. Our AI will analyze your UX and generate a detailed audit report for you."}),A&&e.jsxs("div",{className:"w-full max-w-2xl mx-auto mb-6 p-4 md:p-5 bg-gradient-to-r from-emerald-50 via-teal-50 to-emerald-50 border border-emerald-200/80 rounded-3xl flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 shadow-sm",children:[e.jsxs("div",{className:"flex items-start gap-3.5 text-left",children:[e.jsx("div",{className:"w-10 h-10 bg-emerald-500 text-white rounded-2xl flex items-center justify-center shrink-0 font-bold shadow-md shadow-emerald-500/20",children:e.jsx(W,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("p",{className:"text-xs md:text-sm font-bold text-slate-900",children:"ð Your Audit Report is Ready"}),A.overall_score!==void 0&&A.overall_score!==null&&e.jsxs("span",{className:"text-[10px] md:text-xs font-extrabold px-2.5 py-0.5 rounded-full bg-emerald-100 text-emerald-800 border border-emerald-200",children:["Score: ",A.overall_score,"/100"]})]}),e.jsx("p",{className:"text-xs font-medium text-slate-600 mt-1 truncate max-w-sm md:max-w-md",children:A.input_value||"Audit Report"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto justify-end shrink-0",children:[e.jsxs(S,{to:`/view-report?id=${encodeURIComponent(A.id)}&url=${encodeURIComponent(A.report_url)}`,className:"px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-white text-xs font-bold rounded-2xl transition-all shadow-md shadow-emerald-600/20 flex items-center gap-1.5 shrink-0",children:[e.jsx("span",{children:"View Report"}),e.jsx(H,{className:"w-3.5 h-3.5"})]}),e.jsx("button",{onClick:()=>We(A.id),className:"p-2 text-slate-400 hover:text-slate-600 hover:bg-emerald-100/50 rounded-xl transition-colors shrink-0",title:"Dismiss notification",children:e.jsx(he,{className:"w-4 h-4"})})]})]}),z&&R<=0?e.jsx("div",{className:"w-full max-w-2xl mx-auto mb-8 p-4 md:p-5 bg-gradient-to-r from-indigo-900 via-purple-900 to-slate-900 rounded-3xl text-white shadow-xl border border-indigo-500/30 flex items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-left",children:[e.jsx("div",{className:"w-10 h-10 bg-indigo-500/20 border border-indigo-400/30 rounded-2xl flex items-center justify-center shrink-0",children:e.jsx(se,{className:"w-5 h-5 text-indigo-300 animate-spin"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-wider text-indigo-300",children:"Payment Confirmed"}),e.jsx("p",{className:"text-sm font-bold text-white",children:"Finalizing your trial credits... You can enter your URL or upload an image below now."})]})]})}):ce||!u&&(c==="Free"||N!=="on_trial")?e.jsxs("div",{className:"w-full max-w-2xl mx-auto mb-8 p-4 md:p-5 bg-gradient-to-r from-purple-900 via-indigo-900 to-slate-900 rounded-3xl text-white shadow-xl border border-purple-500/30 flex flex-col sm:flex-row items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4",children:[e.jsxs("div",{className:"flex items-center gap-3 text-left",children:[e.jsx("div",{className:"w-10 h-10 bg-purple-500/20 border border-purple-400/30 rounded-2xl flex items-center justify-center shrink-0",children:e.jsx(W,{className:"w-5 h-5 text-purple-300"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black uppercase tracking-wider text-purple-300",children:"14-Day Free Trial Required"}),e.jsx("p",{className:"text-sm font-bold text-white",children:"Activate your free 14-day trial to run your first audit. $0 today."})]})]}),e.jsxs("button",{onClick:()=>{y.trim()&&sessionStorage.setItem("pending_audit_url",y.trim()),sessionStorage.setItem("trial_intent","true"),F("billing"),setTimeout(()=>{window.location.hash="plans-section";const a=document.getElementById("plans-section");a&&a.scrollIntoView({behavior:"smooth"})},150)},className:"px-5 py-2.5 bg-white text-slate-900 hover:bg-purple-50 rounded-2xl font-black text-xs transition-all shadow-lg shrink-0 active:scale-95 flex items-center gap-1.5",children:["Activate Free Trial ",e.jsx(H,{className:"w-3.5 h-3.5"})]})]}):null,e.jsxs("div",{className:"w-full max-w-3xl px-2",children:[e.jsxs("form",{onSubmit:He,className:"relative",children:[e.jsxs("div",{className:`flex items-center bg-white rounded-full p-2 shadow-xl shadow-slate-200/40 border border-slate-200/60 transition-all duration-300 ${v?"opacity-70 pointer-events-none":""}`,children:[e.jsx("button",{type:"button",onClick:()=>{var a;return k?je():(a=b.current)==null?void 0:a.click()},className:"w-11 h-11 md:w-12 md:h-12 flex items-center justify-center rounded-full bg-slate-50 hover:bg-slate-100 border border-slate-200 transition-all shrink-0 active:scale-95 group/upload relative overflow-hidden",title:k?"Clear selection":"Upload image",children:k?e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:k,className:"w-full h-full object-cover",alt:"Selected"}),e.jsx("div",{className:"absolute inset-0 bg-slate-900/40 opacity-0 group-hover/upload:opacity-100 flex items-center justify-center transition-opacity",children:e.jsx(he,{className:"w-4 h-4 text-white"})})]}):e.jsx(bt,{className:"w-5 h-5 text-slate-500 group-hover/upload:text-slate-700 transition-colors",strokeWidth:2.5})}),e.jsx("input",{type:"text",value:y,onChange:a=>U(a.target.value),disabled:!!x,placeholder:x?ye:"Paste a URL, or click '+' to upload an image",className:`flex-1 bg-transparent px-5 md:px-6 outline-none text-slate-600 font-medium text-sm md:text-base placeholder:text-slate-400 ${x?"opacity-60":""}`}),e.jsx("button",{type:"submit",disabled:ce?!1:!Je()||v,className:"h-11 md:h-12 px-7 md:px-9 bg-[#635FF4] hover:bg-[#5651E0] text-white rounded-full font-bold text-sm md:text-base transition-all flex items-center gap-2 shrink-0 shadow-lg shadow-[#635FF4]/25 disabled:opacity-40 disabled:shadow-none active:scale-[0.98] disabled:cursor-not-allowed",children:v?e.jsx(se,{className:"w-4 h-4 animate-spin"}):ce?e.jsxs(e.Fragment,{children:["Activate Free Trial ",e.jsx(H,{className:"w-4 h-4"})]}):e.jsxs(e.Fragment,{children:["Audit ",e.jsx(yt,{className:"w-4 h-4"})]})})]}),e.jsx("input",{type:"file",ref:b,className:"hidden",accept:"image/png, image/jpeg",onChange:Xe})]}),Z&&e.jsxs("div",{role:"alert",className:"mt-4 flex items-center gap-2 text-red-500 bg-red-50 px-4 py-3 rounded-xl border border-red-100 animate-in fade-in slide-in-from-top-1",children:[e.jsx(Be,{className:"w-4 h-4 shrink-0"}),e.jsx("p",{className:"text-xs font-bold",children:Z})]})]}),e.jsx("div",{className:"mt-12 md:mt-16 flex flex-wrap justify-center gap-3 md:gap-4 px-4",children:[{label:"UI Analysis",color:"bg-green-500"},{label:"UX Heuristics",color:"bg-blue-500"},{label:"Accessibility",color:"bg-[#635FF4]"},{label:"Conversion",color:"bg-cyan-500"}].map((a,l)=>e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-white border border-slate-100 rounded-full shadow-sm text-[10px] md:text-xs font-black text-slate-500 uppercase tracking-widest cursor-default",children:[e.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${a.color}`}),a.label]},l))})]})}),e.jsxs(ae,{children:[v&&e.jsx(tt,{fullScreen:!0,message:x?"Uploading your design securely...":"Connecting to analyzing engines..."}),fe&&e.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",children:[e.jsx(j.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},onClick:()=>_(!1),className:"absolute inset-0 bg-slate-900/60 backdrop-blur-sm"}),e.jsxs(j.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-lg bg-white rounded-3xl shadow-2xl border border-slate-200 overflow-hidden",children:[e.jsx("button",{onClick:()=>_(!1),className:"absolute top-4 right-4 p-2 rounded-full hover:bg-slate-100 transition-colors text-slate-400 hover:text-slate-600",children:e.jsx(he,{className:"w-5 h-5"})}),N==="on_hold"?e.jsxs("div",{className:"p-8 md:p-10 text-center",children:[e.jsx("div",{className:"w-14 h-14 md:w-16 md:h-16 bg-amber-50 text-amber-600 rounded-2xl flex items-center justify-center mx-auto mb-6",children:e.jsx(Ue,{className:"w-7 h-7 md:w-8 md:h-8"})}),e.jsx("h3",{className:"text-2xl md:text-3xl font-black text-slate-900 mb-3 tracking-tight",children:"Payment Declined"}),e.jsx("p",{className:"text-sm md:text-base text-slate-500 font-medium leading-relaxed mb-8 px-2",children:"Your subscription is on hold due to a payment issue. Update your payment details to restore access and unlock your plan credits."}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("button",{onClick:()=>te(),disabled:M,className:"w-full py-4 bg-[#635FF4] hover:bg-[#524ee5] text-white rounded-2xl font-black text-sm md:text-base shadow-xl shadow-indigo-600/20 transition-all flex items-center justify-center gap-3 active:scale-[0.98] disabled:opacity-50",children:[M?e.jsx(se,{className:"w-5 h-5 animate-spin"}):e.jsx(ze,{className:"w-5 h-5"}),e.jsx("span",{children:"Update Payment Method"})]}),e.jsx("button",{onClick:()=>_(!1),className:"w-full py-3.5 bg-slate-100 text-slate-600 rounded-2xl font-bold text-sm hover:bg-slate-200 transition-all",children:"Close"})]})]}):u?e.jsxs("div",{className:"p-8 md:p-10 text-center",children:[e.jsx("div",{className:"w-14 h-14 md:w-16 md:h-16 bg-red-50 text-red-600 rounded-2xl flex items-center justify-center mx-auto mb-6",children:e.jsx(Ue,{className:"w-7 h-7 md:w-8 md:h-8"})}),e.jsx("h3",{className:"text-2xl md:text-3xl font-black text-slate-900 mb-3 tracking-tight",children:"Credits Exhausted"}),e.jsxs("p",{className:"text-sm md:text-base text-slate-500 font-medium leading-relaxed mb-10 px-2",children:["You've used all your available credits. ",c==="Basic"?"Upgrade your plan to unlock full AI auditing capabilities.":"Top up your account to continue receiving professional audits."]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(S,{to:"/profile",state:{activeTab:"billing"},className:"w-full py-4 bg-slate-900 text-white rounded-2xl font-black text-sm md:text-base shadow-xl shadow-slate-900/20 hover:bg-slate-800 transition-all flex items-center justify-center gap-3 group active:scale-[0.98]",children:[e.jsx(W,{className:"w-4 h-4 md:w-5 md:h-5 text-yellow-400"})," View Billing & Plans"]}),e.jsx("button",{onClick:()=>_(!1),className:"w-full py-4 bg-white text-slate-600 border border-slate-200 rounded-2xl font-bold text-sm md:text-base hover:bg-slate-50 transition-all active:scale-[0.98]",children:"Maybe later"})]})]}):e.jsxs("div",{className:"p-8 md:p-10 text-center",children:[e.jsx("div",{className:"w-14 h-14 md:w-16 md:h-16 bg-indigo-50 text-indigo-600 rounded-2xl flex items-center justify-center mx-auto mb-6",children:e.jsx(W,{className:"w-7 h-7 md:w-8 md:h-8 text-indigo-600"})}),e.jsx("h3",{className:"text-2xl md:text-3xl font-black text-slate-900 mb-3 tracking-tight",children:"Activate Your 14-Day Free Trial"}),e.jsx("p",{className:"text-sm md:text-base text-slate-500 font-medium leading-relaxed mb-10 px-2",children:"Choose a plan to start your 14-day free trial ($0 today) and receive your audit credits. Your pending audit will run immediately once your trial is activated."}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(S,{to:"/profile",state:{activeTab:"billing"},className:"w-full py-4 bg-[#635FF4] hover:bg-[#524ee5] text-white rounded-2xl font-black text-sm md:text-base shadow-xl shadow-indigo-600/20 transition-all flex items-center justify-center gap-3 group active:scale-[0.98]",children:[e.jsx(W,{className:"w-4 h-4 md:w-5 md:h-5 text-yellow-300"})," Choose Plan & Start Free Trial"]}),e.jsx("button",{onClick:()=>_(!1),className:"w-full py-4 bg-white text-slate-600 border border-slate-200 rounded-2xl font-bold text-sm md:text-base hover:bg-slate-50 transition-all active:scale-[0.98]",children:"Maybe later"})]})]})]})]})]})]})};export{St as UploadPage};
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.