PageSourceSearch

https://aiattractivenesstest.ai/_nuxt/M-vf-STb.js

js aiattractivenesstest.ai collected 2026-10-05 11:46:59 UTC 125,806 bytes, 1 lines download raw bytes

1import{o as n,d as a,F as N,r as V,p as z,t,m as l,i as ze,a as e,H as B,B as de,U as Re,u as me,l as ee,C as Ge,V as He,z as v,aj as Ke,ae as Ye,af as Ze,ag as Ft,f as W,n as O,c as pe,s as E,b as re,ah as Pt,w as ge,a8 as te,x as Ie,g as Je,ar as xe,as as It,at as vt,au as gt,a9 as be,av as Lt,aw as vs,ai as gs,K as bt,Z as Ue,A as bs,j as ws,W as ys,J as Oe,X as _s,S as wt,Y as yt,$ as ks,L as $s,a0 as _t,a1 as kt,a2 as Cs,a3 as Es,a4 as $t,a5 as Ct,ax as Et,ay as As,az as Ts,a6 as Ss,aA as Ds,a7 as Ms,_ as Fe,ab as Ne,ac as Ve,aB as Bs,aC as js,aD as Le,aE as Pe,ao as Fs,aF as Ps,aG as At,aH as Tt,aq as Is,aI as Ls,aJ as Us,aK as zs,ad as Rs}from"./BbdR-8bw.js";import{_ as Hs}from"./ClDSFjM6.js";import{c as Ut,b as zt,C as Js,a as Os}from"./ByL43wxS.js";import{e as Ns,c as Vs,a as St,g as qs,b as Ws,_ as Gs,A as Dt,d as Ks,u as Ys}from"./BGbedlz4.js";import{_ as Ce}from"./DlAUqK2U.js";const Zs='<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />',Qs='<polyline points="20 6 9 17 4 12" />',Xs=[{i18nKey:"neverSaved",svg:Zs},{i18nKey:"deleteAfter",svg:Qs}],eo=["aria-label"],to=["innerHTML"],so={__name:"UploadTrustAnchors",setup(i){return(r,u)=>(n(),a("div",{role:"group","aria-label":r.$t("hero.upload.trustAnchors.ariaLabel"),class:"mt-3 flex flex-wrap items-center justify-center gap-x-4 md:gap-x-6 gap-y-1 text-[0.7rem] md:text-xs text-[#6E6D6D]"},[(n(!0),a(N,null,V(l(Xs),y=>(n(),a("span",{key:y.i18nKey,class:"flex items-center gap-1.5"},[(n(),a("svg",{"aria-hidden":"true",focusable:"false",class:"w-3.5 h-3.5 flex-shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:y.svg},null,8,to)),z(" "+t(r.$t(`hero.upload.trustAnchors.${y.i18nKey}`)),1)]))),128))],8,eo))}},oo={class:"border border-[#DED8D0] rounded-xl p-4 md:p-6 bg-white/70"},lo={class:"flex items-center justify-between mb-3"},ro={class:"text-xs tracking-widest uppercase text-[#6E6D6A]"},no={class:"text-[10px] font-semibold text-[#9c4945] bg-[#fdf5f5] px-2 py-0.5 rounded-full"},ao={class:"text-sm font-bold text-slate-800 mb-3"},io={class:"space-y-2 mb-4"},co={class:"text-sm text-gray-900"},uo={class:"grid grid-cols-2 gap-2 mb-4"},po={class:"text-xs font-medium text-[#6E6D6A]"},mo={class:"relative z-10"},xo={class:"text-[10px] text-[#6E6D6A] text-center mt-3"},Rt={__name:"UnlockPreviewPanel",props:{previewCount:{type:Number,required:!0}},emits:["unlock"],setup(i){const{t:r}=ze(),u=B(()=>[r("result.preview.featureItem"),r("result.preview.strengthItem"),r("result.preview.adviceItem")]),y=B(()=>[r("result.analysis.featureAnalysis"),r("result.palettes.skinTone"),r("result.score.overall"),r("result.harmony.title")]);
1return(h,A)=>(n(),a("div",oo,[e("div",lo,[e("h3",ro,t(h.$t("result.preview.title")),1),e("span",no,t(h.$t("result.preview.lockedBadge")),1)]),e("p",ao,t(h.$t("result.preview.itemCount",{count:i.previewCount})),1),e("ul",io,[(n(!0),a(N,null,V(l(u),c=>(n(),a("li",{key:c,class:"flex items-start gap-2"},[A[1]||(A[1]=e("svg",{class:"w-4 h-4 text-[#9c4945] shrink-0 mt-0.5",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},[e("polyline",{points:"20 6 9 17 4 12"})],-1)),e("span",co,t(c),1)]))),128))]),e("div",uo,[(n(!0),a(N,null,V(l(y),c=>(n(),a("div",{key:c,class:"flex items-center justify-between bg-[#F3EFE9]/60 rounded-lg px-3 py-2"},[e("span",po,t(c),1),A[2]||(A[2]=e("svg",{class:"w-3.5 h-3.5 text-[#9c4945]",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[e("rect",{x:"5",y:"11",width:"14",height:"9",rx:"2"}),e("path",{d:"M8 11V7a4 4 0 018 0v4"})],-1))]))),128))]),e("button",{class:"w-full bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold py-3 px-6 rounded-xl shadow-lg hover:shadow-brand-500/30 transition-all premium-btn",onClick:A[0]||(A[0]=c=>h.$emit("unlock"))},[e("span",mo,t(h.$t("result.preview.unlockCta")),1)]),e("p",xo,t(h.$t("result.preview.privacyNote")),1)]))}},ho={class:"mt-6 px-4 py-6 bg-[#fdfcf8] border border-[#f0eadd] rounded-2xl"},fo={class:"font-serif text-lg text-[#2c2522] mb-4 text-center font-semibold"},vo={class:"flex flex-col md:flex-row justify-center gap-2 sm:gap-3 flex-wrap sm:flex-nowrap"},Qe={__name:"AiToolsUpsell",props:{pageSection:{type:String,default:"cross_sell_free"}},setup(i){return(r,u)=>(n(),a("div",ho,[e("h3",fo,t(r.$t("result.upsell.title")),1),e("div",vo,[e("a",{href:"/ai-hair-color-changer",target:"_blank",onClick:u[0]||(u[0]=y=>("pageClickEvent"in r?r.pageClickEvent:l(de))(i.pageSection,"ai_hair_color_changer")),class:"flex-1 flex items-center justify-center gap-1 px-2 py-3 bg-white border-2 border-brand-600 rounded-xl text-brand-600 font-medium text-center transition-all hover:bg-brand-600 hover:text-white text-[0.75rem] sm:text-sm"},[u[3]||(u[3]=e("svg",{class:"w-4 h-4 flex-shrink-0",viewBox:"0 0 24 24",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M12.963 2.286a.75.75 0 0 0-1.071-.136 9.742 9.742 0 0 0-3.539 6.176 7.547 7.547 0 0 1-1.705-1.715.75.75 0 0 0-1.152-.082A9 9 0 1 0 15.68 4.534a7.46 7.46 0 0 1-2.717-2.248ZM15.75 14.25a3.75 3.75 0 1 1-7.313-1.172c.628.465 1.353.81 2.133 1a5.99 5.99 0 0 1 1.925-3.546 3.75 3.75 0 0 1 3.255 3.718Z","clip-rule":"evenodd"})],-1)),e("span",null,t(r.$t("result.upsell.hairColorChanger")),1)]),e("a",{href:"https://aicoloranalysis.ai/ai-makeup-generator?utm_source=attractiveness",target:"_blank",onClick:u[1]||(u[1]=y=>("pageClickEvent"in r?r.pageClickEvent:l(de))(i.pageSection,"ai_makeup_generator")),class:"flex-1 flex items-center justify-center px-2 py-3 bg-white border-2 border-brand-600 rounded-xl text-brand-600 font-medium text-center transition-all hover:bg-brand-600 hover:text-white text-[0.75rem] sm:text-sm"},t(r.$t("result.upsell.makeupGenerator")),1),e("a",{href:"https://aicoloranalysis.ai/ai-outfit-generator?utm_source=attractiveness",target:"_blank",onClick:u[2]||(u[2]=y=>("pageClickEvent"in r?r.pageClickEvent:l(de))(i.pageSection,"ai_outfit_generator")),class:"flex-1 flex items-center justify-center px-2 py-3 bg-white border-2 border-brand-600 rounded-xl text-brand-600 font-medium text-center transition-all hover:bg-brand-600 hover:text-white text-[0.75rem] sm:text-sm"},t(r.$t("result.upsell.outfitGenerator")),1)])]))}},Xe="test",Mt=["facial_symmetry","facial_proportions","eyes","nose","lips","jawline_face_shape","skin_tone","eye_color","hair_color","overall_score","overall_summary"],go=["profile","feature_breakdown","additional_traits","summary"],bo="feature,palettes,overall,harmony",et=i=>{const r=Mt.filter(y=>i?.[y]!=null).length;return r>0?r:go.some(y=>i?.[y]!=null)?Mt.length:0},Ht=({getCardEl:i,getScore:r,onShare:u,generateShareImage:y})=>{const{t:h}=ze(),{show:A}=Re(),c=v(!1),L=v(!1),T=v(""),S=v(""),C=v(""),j=B(()=>h("result.share.shareText",{score:r()||"8.9"})),P=async()=>{const{domToPng:k}=await Ke(async()=>{const{domToPng:F}=await import("./NB5FNsou.js");return{domToPng:F}},[],import.meta.url),H=i(),Y=H.getBoundingClientRect();return await k(H,{scale:2,width:Y.width,features:{removeControlCharacter:!0}})};return{isDownloading:c,isShareUploading:L,shareText:j,handleDownload:async()=>
1{if(!c.value){if(!ee().isPaidUser){He("purchasePopupView","download_button"),A("download_button","single");return}c.value=!0;try{if(!i()){me().fail(h("errors.resultCardNotFound"));return}const k=await P(),H=`my-attractiveness-score-${r()||"8.9"}.png`;if(window.innerWidth<=768&&navigator.share)try{const f=await(await fetch(k)).blob(),M=new File([f],H,{type:f.type});await navigator.share({files:[M],title:h("result.share.nativeShareTitle"),text:j.value}),me().success(h("errors.imageSharedSuccess"))}catch{const f=document.createElement("a");f.download=H,f.href=k,document.body.appendChild(f),f.click(),document.body.removeChild(f),me().success(h("errors.resultDownloadedSuccess"))}else{const F=document.createElement("a");F.download=H,F.href=k,document.body.appendChild(F),F.click(),document.body.removeChild(F),me().success(h("errors.resultDownloadedSuccess"))}}catch(k){console.error("Download failed:",k),me().fail(h("errors.failedDownload"))}finally{c.value=!1}}},handleShare:async()=>{if(!L.value){try{if(!i()){me().fail(h("errors.resultCardNotFound"));return}L.value=!0;const k=`my-attractiveness-score-${r()||"8.9"}.png`,H=window.innerWidth<=768;if(!H&&C.value&&S.value){u({text:C.value,url:S.value});return}const Y=T.value||(ee().isPaidUser?await P():await y());if(Y&&!T.value&&(T.value=Y),H&&navigator.share)try{const f=await(await fetch(Y)).blob(),M=new File([f],k,{type:f.type});await navigator.share({files:[M],title:h("result.share.nativeShareTitle"),text:j.value}),me().success(h("errors.imageSharedSuccess"));return}catch(F){console.log("Native share failed:",F)}if(!H)try{const f=await(await fetch(Y)).blob(),M=new File([f],k,{type:f.type}),J=new FormData;J.append("file",M,k),J.append("app","aiattractivenesstest.ai");const G=await Ge().uploadResource(J);S.value=G?.d?.urls?.[0]||"",C.value=S.value?`${j.value} ${S.value}`:j.value,u({text:C.value,url:S.value});return}catch(F){console.error("Upload share failed:",F)}}catch(k){console.error("Share failed:",k)}finally{L.value=!1}u()}}}},wo={class:"font-sans text-[#1c1b1a]"},yo={class:"flex justify-between items-start border-b border-[#d2cec4] pb-[0.6rem] mb-4"},_o={class:"font-serif text-[2.6rem] max-[800px]:text-[2.2rem] font-normal tracking-[-0.5px] leading-none mb-[0.3rem]"},ko={class:"text-[0.65rem] tracking-[0.15em] text-[#5a5752] uppercase"},$o={class:"text-right text-[0.55rem] tracking-[0.1em] leading-[1.3] flex items-center gap-[6px] uppercase font-medium"},Co=["innerHTML"],Eo={class:"flex max-[800px]:flex-col gap-4 mb-4"},Ao={class:"flex-[0_0_280px] max-[800px]:flex-auto flex flex-col gap-[0.8rem]"},To={class:"w-full aspect-[1/1.15] border border-[#d2cec4] rounded-[4px] overflow-hidden"},So=["src","alt"],Do={class:"bg-[#f2efe9] border border-[#d2cec4] rounded-[4px] py-[1.2rem] px-4 text-center flex flex-col items-center justify-center flex-1"},Mo={class:"text-[0.6rem] tracking-[0.12em] uppercase font-medium mb-[0.6rem]"},Bo={class:"font-serif text-[4rem] font-normal leading-none tracking-[-1.5px] flex items-baseline justify-center mb-[0.6rem]"},jo={class:"flex gap-1 mb-[0.8rem]"},Fo=["fill","stroke","stroke-width"],Po={class:"bg-[#eaddcb] text-[#8c6e4e] py-1 px-[10px] rounded-[12px] text-[0.55rem] tracking-[0.05em] font-semibold inline-flex items-center gap-1 uppercase"},Io={class:"flex-1 flex flex-col"},Lo={class:"bg-[#e9e5de] border border-[#d2cec4] py-[1.2rem] px-6 rounded-[4px] mb-4"},Uo={class:"text-center mb-[0.6rem]"},zo={class:"text-[0.6rem] tracking-[0.12em] uppercase font-medium"},Ro={class:"text-[0.75rem] leading-[1.45] mb-[0.8rem] font-light"},Ho={class:"font-medium"},Jo={class:"text-[0.75rem] leading-[1.45] font-light"},Oo={class:"font-medium"},No={class:"border-t border-[#d2cec4] pt-4 mt-4 font-serif italic text-[0.9rem] text-[#5a5752] leading-[1.4] text-center"},Vo={class:"bg-[#f2efe9] border border-[#d2cec4] rounded-[4px] py-[1.2rem] px-6 flex-1 flex flex-col"},qo={class:"flex justify-between mb-[1.2rem]"},Wo={class:"text-[0.6rem] tracking-[0.12em] uppercase font-medium"},Go={class:"text-[0.6rem] tracking-[0.12em] uppercase font-medium"},Ko={class:"grid grid-cols-2 max-[800px]:grid-cols-1 gap-8 max-[800px]:gap-[1.2rem]"},Yo={class:"flex flex-col gap-4"},Zo={class:"flex justify-between items-center mb-[5px] text-[0.65rem] tracking-[0.03em]"},Qo={class:"font-medium uppercase"},Xo={class:"text-[0.75rem]"},el={class:"w-full h-[3px] bg-[#dcd8ce] rounded-[2px] overflow-hidden"},tl={class:"flex flex-col gap-4"},sl={class:"flex justify-between items-center mb-[5px] text-[0.65rem] tracking-[0.03em]"},ol={class:"font-medium uppercase"},ll={class:"text-[0.75rem]"},rl={class:"w-full h-[3px] bg-[#dcd8ce] rounded-[2px] overflow-hidden"},nl={class:"bg-[#e9e5de] border border-[#d2cec4] rounded-[4px] p-4 text-center mt-6"},al={class:"text-[0.6rem] tracking-[0.12em] uppercase font-medium mb-[0.2rem]"},il={class:"font-serif text-[1.6rem] mt-[0.2rem]"},dl={class:"bg-[#f2efe9] border border-[#d2cec4] rounded-[4px] py-[1.5rem] px-8 max-[800px]:p-[1.2rem] flex flex-col"},cl={class:"text-center mb-[1.2rem]"},ul={class:"text-[0.6rem] tracking-[0.12em] uppercase font-medium"},pl={class:"relative"},ml={class:"flex max-[800px]:flex-col items-center gap-12 max-[800px]:gap-8 mb-8 justify-center"},xl={class:"flex-grow flex flex-col gap-[0.7rem] max-w-[380px]"},hl={class:"w-[100px] font-medium"},fl={class:"flex-grow pr-[15px]"},vl={class:"w-full h-[3px] bg-[#dcd8ce] rounded-[2px] overflow-hidden"},gl={class:"w-[30px] text-right text-[#5a5752]"},bl={class:"flex justify-between gap-2 max-w-[600px] mx-auto w-full max-[800px]:flex-wrap"},wl=["innerHTML"],yl={class:"mt-4 font-serif italic text-[0.75rem] flex justify-end items-center gap-[6px]"},_l={class:"mt-4 mb-8 flex items-center justify-center gap-3 px-4"},kl=["title"],$l=["title","disabled"],Cl={key:0,class:"w-5 h-5 text-gray-500 animate-spin",fill:"none",viewBox:"0 0 24 24"},El={key:1,class:"w-5 h-5 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Al="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",Tl={__name:"SimpleResultOrganic",props:{imageUrl:{type:String,required:!0},resultJson:{type:Object,required:!0},taskId:{type:String,default:""},onClose:{type:Function,default:null},onReset:{type:Function,default:null}},emits:["share"],setup(i,{emit:r}){const u=i,y=r,h=[{label:"Symmetry",value:91},{label:"Proportions",value:90},{label:"Eyes",value:92},{label:"Nose",value:88},{label:"Lips",value:89},{label:"Jawline & Shape",value:90}],A=[{key:"tagBalanced",icon:'<circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><line x1="9" y1="9" x2="9.01" y2="9"/><line x1="15" y1="9" x2="15.01" y2="9"/>'},{key:"tagHarmonious",icon:'<path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/>'},{key:"tagNatural",icon:'<path d="M20 12V8H6a2 2 0 0 1-2-2c0-1.1.9-2 2-2h12v4"/>
1<path d="M4 6v12c0 1.1.9 2 2 2h14v-4"/>'},{key:"tagPhotogenic",icon:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/>'}],c=B(()=>u.resultJson||{}),L=B(()=>c.value.summary||{}),T=B(()=>c.value.profile||{}),S=B(()=>Number(T.value.overall_attractiveness_score)||0),C=g=>{const _=typeof g=="object"&&g!==null?g.score:g;return Number(_)||0},j=B(()=>[{key:"symmetry",score:C(c.value.feature_breakdown?.symmetry)},{key:"proportion",score:C(c.value.feature_breakdown?.proportion)},{key:"goldenRatio",score:C(c.value.feature_breakdown?.golden_ratio)}]),P=B(()=>[{key:"confidence",score:C(c.value.additional_traits?.confidence)},{key:"intelligence",score:C(c.value.additional_traits?.intelligence)},{key:"humor",score:C(c.value.additional_traits?.humor)}]),ne=B(()=>{const g=S.value/2;return Array.from({length:5},(_,oe)=>g>=oe+1?"full":g>=oe+.5?"half":"empty")}),{show:b,getExperimentContext:k}=Re(),{getExperimentContext:H}=Ye(),{variant:Y,getExperimentContext:F}=Ze(),f=B(()=>Y.value===Xe),M=B(()=>et(u.resultJson)),J=g=>{de("free_lock_popup",g),Pt({click_id:g},H(),F()),He("purchasePopupView","blur_result",k()),b("blur_result","single","subscription",g)},G=Ft().public.blurAreaIapEnabled,le=()=>{G&&J(zt)},se=v(null),U=v(null),ce=async()=>{const{domToPng:g,waitUntilLoad:_}=await Ke(async()=>{const{domToPng:Z,waitUntilLoad:K}=await import("./NB5FNsou.js");return{domToPng:Z,waitUntilLoad:K}},[],import.meta.url),oe=se.value.cloneNode(!0),p=Array.from(se.value.children).indexOf(U.value);p>-1&&oe.children[p]?.remove();const d=document.createElement("div");d.style.cssText="position:fixed;left:-9999px;top:0;width:640px;",d.appendChild(oe),document.body.appendChild(d);try{return await _(oe),await g(oe,{scale:2,width:640,features:{removeControlCharacter:!0}})}finally{document.body.removeChild(d)}},{isShareUploading:x,handleDownload:w,handleShare:I}=Ht({getCardEl:()=>se.value,getScore:()=>u.resultJson?.profile?.overall_attractiveness_score,onShare:g=>y("share",g),generateShareImage:ce});return(g,_)=>{const oe=Rt,p=Qe;return n(),a("div",wo,[_[15]||(_[15]=e("svg",{width:"0",height:"0",class:"absolute w-0 h-0"},[e("defs",null,[e("linearGradient",{id:"organic-half-fill"},[e("stop",{offset:"50%","stop-color":"#c49c71"}),e("stop",{offset:"50%","stop-color":"transparent"})])])],-1)),e("div",{ref_key:"resultCard",ref:se,class:"bg-[#f2efe9] w-full max-w-[820px] mx-auto p-6 max-[800px]:p-[1.2rem] border border-[#d2cec4] rounded-[6px] shadow-[0_10px_30px_rgba(0,0,0,0.04)]"},[e("header",yo,[e("div",null,[e("h1",_o,t(g.$t("result.organic.title")),1),e("p",ko,t(g.$t("result.organic.subtitle")),1)]),e("div",$o,[_[5]||(_[5]=e("svg",{class:"w-[10px] h-[10px] text-[#5a5752]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2"},[e("path",{d:"M12 2L15 9L22 12L15 15L12 22L9 15L2 12L9 9L12 2Z"})],-1)),e("span",{innerHTML:g.$t("result.organic.comprehensive")},null,8,Co)])]),e("div",Eo,[e("div",Ao,[e("div",To,[e("img",{src:i.imageUrl,alt:g.$t("result.analyzedFaceAlt"),class:"w-full h-full object-cover"},null,8,So)]),e("div",Do,[e("div",Mo,t(g.$t("result.organic.overallScore")),1),e("div",Bo,[z(t(S.value.toFixed(1)),1),_[6]||(_[6]=e("span",{class:"text-[1.1rem] text-[#5a5752] ml-1 font-sans font-light tracking-normal"},"/ 10",-1))]),e("div",jo,[(n(!0),a(N,null,V(ne.value,(d,Z)=>(n(),a("svg",{key:Z,viewBox:"0 0 24 24",class:"w-[18px] h-[18px]"},[e("polygon",{points:Al,fill:d==="full"?"#c49c71":d==="half"?"url(#organic-half-fill)":"none",stroke:d==="full"?"none":"#c49c71","stroke-width":d==="full"?0:1.5},null,8,Fo)]))),128))]),e("div",Po,[z(t(g.$t("result.organic.confidenceHigh"))+" ",1),_[7]||(_[7]=e("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"currentColor"},[e("rect",{x:"18",y:"3",width:"4",height:"18",rx:"1"}),e("rect",{x:"10",y:"8",width:"4",height:"13",rx:"1"}),e("rect",{x:"2",y:"14",width:"4",height:"7",rx:"1"})],-1))])])]),e("div",Io,[e("div",Lo,[e("div",Uo,[e("div",zo,t(g.$t("result.organic.summary")),1)]),e("div",Ro,[e("strong",Ho,t(g.$t("result.organic.strongestFeatures")),1),z(" "+t(L.value.strongest_features),1)]),e("div",Jo,[e("strong",Oo,t(g.$t("result.organic.weakestArea")),1),z(" "+t(L.value.weakest_area),1)]),e("div",No,' "'+t(L.value.overall_impression)+'" ',1)]),e("div",Vo,[e("div",qo,[e("div",Wo,t(g.$t("result.organic.featureBreakdown")),1),e("div",Go,t(g.$t("result.organic.additionalTraits")),1)]),e("div",Ko,[e("div",Yo,[(n(!0),a(N,null,V(j.value,d=>(n(),a("div",{key:d.key},[e("div",Zo,[e("span",Qo,t(g.$t(`result.organic.${d.key}`)),1),e("span",Xo,t(d.score.toFixed(1)),1)]),e("div",el,[e("div",{class:"h-full bg-[#c49c71] rounded-[2px]",style:W({width:`${d.score*10}%`})},null,4)])]))),128))]),e("div",tl,[(n(!0),a(N,null,V(P.value,d=>(n(),a("div",{key:d.key},[e("div",sl,[e("span",ol,t(g.$t(`result.organic.${d.key}`)),1),e("span",ll,t(d.score.toFixed(1)),1)]),e("div",rl,[e("div",{class:"h-full bg-[#c49c71] rounded-[2px]",style:W({width:`${d.score*10}%`})},null,4)])]))),128))])]),e("div",nl,[e("div",al,t(g.$t("result.organic.agePrediction")),1),e("div",il,t(T.value.age_prediction),1)])])])]),e("div",{ref_key:"harmonySection",ref:U,class:"border-t border-[#d2cec4] pt-4"},[e("div",dl,[e("div",cl,[e("div",ul,t(g.$t("result.organic.harmonyTitle")),1)]),e("div",pl,[e("div",ml,[_[8]||(_[8]=e("div",{class:"w-[110px] h-[110px] rounded-full bg-[conic-gradient(#c49c71_89%,#e9e5de_0)] flex items-center justify-center shrink-0"},[e("div",{class:"w-[90px] h-[90px] bg-[#f2efe9] rounded-full flex flex-col items-center justify-center text-center"},[e("span",{class:"text-[0.45rem] tracking-[0.1em] text-[#5a5752] mb-[2px] uppercase"},[z("Average"),e("br"),z("Feature Score")]),e("strong",{class:"font-serif text-[1.6rem] font-normal leading-none"},"89%")])],-1)),e("div",xl,[(n(),a(N,null,V(h,d=>e("div",{key:d.label,class:"flex items-center text-[0.65rem]"},[e("div",hl,t(d.label),1),e("div",fl,[e("div",vl,[e("div",{class:"h-full bg-[#c49c71] rounded-[2px]",style:W({width:`${d.value}%`})},null,4)])]),e("div",gl,t(d.value)+"%",1)])),64))])]),e("div",bl,[(n(),a(N,null,V(A,d=>e("div",{key:d.key,class:"border border-[#d2cec4] py-[6px] px-[10px] rounded-[12px] text-[0.55rem] tracking-[0.05em] flex items-center gap-1 uppercase flex-grow max-[800px]:flex-grow-0 justify-center"},[(n(),a("svg",{class:"w-3 h-3 stroke-[#5a5752] fill-none stroke-[1.5]",viewBox:"0 0 24 24",innerHTML:d.icon},null,8,wl)),z(" "+t(g.$t(`result.organic.${d.key}`)),1)])),64))]),e("div",{class:O(["absolute inset-0 z-20 backdrop-blur-[2px] bg-[#F3EFE9]/60 flex items-center justify-center rounded-[4px]",{"curs
1or-pointer":l(G)}]),onClick:le},[..._[9]||(_[9]=[e("svg",{class:"w-8 h-8 text-[#5a5752]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("rect",{x:"5",y:"11",width:"14",height:"9",rx:"2"}),e("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})],-1)])],2)]),f.value&&M.value>0?(n(),pe(oe,{key:0,class:"mt-6","preview-count":M.value,onUnlock:_[0]||(_[0]=d=>J(l(Ut)))},null,8,["preview-count"])):E("",!0)])],512),e("footer",yl,[z(t(g.$t("result.organic.footer"))+" ",1),_[10]||(_[10]=e("svg",{class:"w-[10px] h-[10px] text-[#5a5752]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2"},[e("path",{d:"M12 2L15 9L22 12L15 15L12 22L9 15L2 12L9 9L12 2Z"})],-1))])],512),e("div",_l,[e("button",{class:"w-12 h-12 flex items-center justify-center rounded-full bg-white/80 backdrop-blur border border-gray-200 shadow-md hover:bg-white transition-all",title:g.$t("result.actions.downloadReport"),onClick:_[1]||(_[1]=(...d)=>l(w)&&l(w)(...d))},[..._[11]||(_[11]=[e("svg",{class:"w-5 h-5 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])],8,kl),e("button",{class:"w-12 h-12 flex items-center justify-center rounded-full bg-white/80 backdrop-blur border border-gray-200 shadow-md hover:bg-white transition-all disabled:opacity-60",title:g.$t("result.actions.shareResult"),disabled:l(x),onClick:_[2]||(_[2]=(...d)=>l(I)&&l(I)(...d))},[l(x)?(n(),a("svg",Cl,[..._[12]||(_[12]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):(n(),a("svg",El,[..._[13]||(_[13]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z"},null,-1)])]))],8,$l),e("button",{class:"px-6 py-2 rounded-full border border-brand-700 text-brand-700 text-sm font-medium bg-white/80 backdrop-blur hover:bg-brand-50 transition-colors",onClick:_[3]||(_[3]=d=>u.onReset?.())},t(g.$t("result.actions.tryAgain")),1),e("a",{href:"https://aicoloranalysis.ai/ai-attractiveness-test?utm_source=aiattractivenesstest&utm_medium=referral&utm_campaign=resultpage",target:"_blank",class:"relative h-9 md:h-10 px-3 md:px-4 bg-[#9A524A] text-white flex items-center justify-center rounded-full font-medium text-sm md:text-base tracking-wide transition-all shadow-lg hover:bg-[#83433C] hover:shadow-xl hover:-translate-y-0.5 no-underline",onClick:_[4]||(_[4]=d=>("pageClickEvent"in g?g.pageClickEvent:l(de))("result","Test More"))},[_[14]||(_[14]=e("div",{class:"absolute -top-2 -right-2 px-1.5 rounded-[10px] text-[10px] font-extrabold text-white bg-[#2ab86d] shadow-[0_2px_4px_rgba(0,0,0,0.1)] pointer-events-none tracking-[0.5px]"},"Free",-1)),z(" "+t(g.$t("result.actions.testMore")),1)])]),re(p)])}}},Sl={class:"relative w-[90%] max-w-[400px] rounded-[20px] bg-white p-8 text-center shadow-[0_20px_40px_rgba(0,0,0,0.08)]"},Dl={class:"mb-3 text-[22px] font-bold leading-[1.3] text-[#2D2D2D]"},Ml={class:"mb-7 text-[15px] leading-[1.5] text-[#666]"},Bl={__name:"NsfwModal",props:{isOpen:{type:Boolean,default:!1}},emits:["close","upload"],setup(i,{emit:r}){const u=r;return(y,h)=>(n(),pe(Je,{to:"body"},[re(Ie,{name:"popIn"},{default:ge(()=>[i.isOpen?(n(),a("div",{key:0,class:"fixed inset-0 z-[1000] flex items-center justify-center bg-[rgba(30,25,25,0.4)] backdrop-blur-[4px]",onClick:h[2]||(h[2]=te(A=>u("close"),["self"]))},[e("div",Sl,[e("button",{class:"absolute right-4 top-4 cursor-pointer border-none bg-transparent text-2xl text-[#999] transition-colors duration-200 hover:text-[#333]","aria-label":"Close modal",onClick:h[0]||(h[0]=A=>u("close"))}," × "),h[3]||(h[3]=e("div",{class:"mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-full bg-[#FDF3F3]"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"#8C3A3B","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"2",y1:"2",x2:"22",y2:"22"}),e("path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24"}),e("path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"}),e("path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"})])],-1)),e("h2",Dl,t(y.$t("popups.nsfw.title")),1),e("p",Ml,t(y.$t("popups.nsfw.body")),1),e("button",{class:"w-full cursor-pointer rounded-xl border-none bg-[#8C3A3B] px-5 py-[14px] text-[16px] font-semibold text-white transition-all duration-200 hover:bg-[#7A3233] active:scale-[0.98]",onClick:h[1]||(h[1]=A=>u("upload"))},t(y.$t("popups.nsfw.uploadAnother")),1)])])):E("",!0)]),_:1})]))}},jl=Ce(Bl,[["__scopeId","data-v-b4223bfe"]]),Fl=xe("/assets/img/single-model.webp"),Pl=xe("/assets/img/vs1.webp"),Il=xe("/assets/img/vs2.webp"),Jt=xe("/assets/img/single.webp"),Ot=xe("/assets/img/pk.webp"),Bt=i=>{if(!i)return"";const r=i?.d?.err||i?.message||i?.m||i;return typeof r=="string"?r:String(r)},Ll=["sensitive","content_policy_violation"],Ul=i=>{const r=i?.d?.err;if(typeof r!="string")return null;const u=r.toLowerCase();return Ll.some(y=>u.includes(y))?r:null},zl=(i,r)=>i==="fast"&&r==="single"?"json":"image";let Nt=null,qe=!0,We="";const jt=Ns({queryTask:i=>Jl(i),terminalStates:[10],failureStates:[4,8],onTerminal:()=>({content_img:We}),clearInFlight:()=>It().setData("task_id",null),onQueryError:(i,r)=>{vt({task_id:i,pid:ee().pid,state:"failed",result:JSON.stringify(r)})},onQueryState:(i,r)=>{vt({task_id:i,pid:ee().pid,state:r,result:r})}}),Rl=({type:i,file:r,asset:u,lang:y="en"})=>(Nt=i,qe=u?.is_free_product,jt.reset(),new Promise((h,A)=>{Hl(r,y).then(c=>{It().setData("task_id",c),jt.poll(c,h,A)}).catch(A)})),Hl=async(i,r)=>{const{submitReportTask:u}=Ge(),y=ee();try{const h=new FormData;h.append("role",Nt),h.append("content_image",i),h.append("app","aiattractivenesstest.ai"),h.append("os","web"),h.append("pid",y.pid),h.append("text",`Translate all text of value into ${r}`);const{d:A}=await u(h);return We=A.pic_url?.[0]||"",gt({content_img:We,pid:y.pid,task_id:A.task_id,result:{content_image:A.pic_url?.[0]||""},state:"success",is_free_product:qe}),A.task_id}catch(h){throw gt({content_img:"",pid:y.pid,task_id:"",result:JSON.stringify(h),state:"failed",is_free_product:qe}),h}},Jl=async i=>{const{queryReportTask:r}=Ge(),u=ee(),y={task_id:i,app:"aiattractivenesstest.ai",os:"web",pid:u.pid};return await r(y)},Ol={class:"font-sans text-[#2B2A28]"},Nl={class:"header-left"},Vl={class:"font-serif text-2xl md:text-3xl lg:text-3xl font-normal tracking-wide mb-1 whitespace-nowrap"},ql={class:"text-xs tracking-widest text-[#6E6D6A] uppercase hidden md:block"},Wl={class:"header-right flex items-center gap-2 text-xs tracking-widest text-[#6E6D6A] uppercase hidden lg:flex"},Gl=["innerHTML"],Kl={class:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-4"},Yl={class:"flex flex-col gap-4"},Zl=["src","alt"],Ql={key:0,class:"palette-group flex flex-col items-center gap-2.5"},Xl={class:"text-[0.65rem] tracking-widest uppercase whitespace-nowrap"},er={class:"flex gap-1.5"},tr={key:1,class:"palette-group flex flex-col items-center gap-2.5"},sr={class:"text-[0.65rem] tracking-widest uppercase whitespace-nowrap"},or={class:"flex gap-1.5"},lr={key:2,class:"palette-group flex flex-col items-center gap-2.5"},rr={class:"text-[0.65rem] tracking-widest uppercase whitespace-nowrap"},nr={class:"flex gap-1.5"},ar={class:"border border-[#DED8D0] rounded-xl p-4 md:p-5 flex flex-col relative"},ir={class:"text-xs tracking-widest uppercase text-center mb-4 md:mb-5"},dr={class:"flex flex-col"},cr={key:0,class:"feature-item grid grid-cols-[24px_1fr] md:grid-cols-[35px_1fr_90px] gap-3 md:gap-4 py-3 md:py-4 border-b border-[#DED8D0] items-center"},ur={class:"f-details flex flex-col gap-1"},pr={class:"flex justify-between items-center"},mr={class:"text-xs font-medium tracking-widest uppercase"},xr={class:"text-[0.85rem] font-medium"},hr={class:"text-[0.7rem] text-[#6E6D6A] leading-relaxed pr-3 md:pr-4 hidden md:block"},fr={class:"w-2/3 md:w-[70%] h-[5px] bg-[#E1D6C6] rounded overflow-hidden"},vr={key:1,class:"feature-item grid grid-cols-[24px_1fr] md:grid-cols-[35px_1fr_90px] gap-3 md:gap-4 py-3 md:py-4 border-b border-[#DED8D0] items-center"},gr={class:"f-details flex flex-col gap-1"},br={class:"flex justify-between items-center"},wr={class:"text-xs font-medium tracking-widest uppercase"},yr={class:"text-[0.85rem] font-medium"},_r={class:"text-[0.7rem] text-[#6E6D6A] leading-relaxed pr-3 md:pr-4 hidden md:block"},kr={class:"w-2/3 md:w-[70%] h-[5px] bg-[#E1D6C6] rounded overflow-hidden"},$r={key:2,class:"feature-item grid grid-cols-[24px_1fr] md:grid-cols-[35px_1fr] gap-3 md:gap-4 py-3 md:py-4 border-b border-[#DED8D0] items-center"},Cr={class:"f-details flex flex-col gap-1"},Er={class:"flex justify-between items-center"},Ar={class:"text-xs font-medium tracking-widest uppercase"},Tr={class:"text-[0.85rem] font-medium"},Sr={class:"text-[0.7rem] text-[#6E6D6A] leading-relaxed pr-3 md:pr-4 hidden md:block"},Dr={class:"w-2/3 md:w-[70%] h-[5px] bg-[#E1D6C6] rounded overflow-hidden"},Mr={key:3,class:"feature-item grid grid-cols-[24px_1fr] md:grid-cols-[35px_1fr] gap-3 md:gap-4 py-3 md:py-4 border-b border-[#DED8D0] items-center"},Br={class:"f-details flex flex-col gap-1"},jr={class:"flex justify-between items-center"},Fr={class:"text-xs font-medium tracking-widest uppercase"},Pr={class:"text-[0.85rem] font-medium"},Ir={class:"text-[0.7rem] text-[#6E6D6A] leading-relaxed pr-3 md:pr-4 hidden md:block"},Lr={class:"w-2/3 md:w-[70%] h-[5px] bg-[#E1D6C6] rounded overflow-hidden"},Ur={key:4,class:"feature-item grid grid-cols-[24px_1fr] md:grid-cols-[35px_1fr] gap-3 md:gap-4 py-3 md:py-4 border-b border-[#DED8D0] items-center"},zr={class:"f-details flex flex-col gap-1"},Rr={class:"flex justify-between items-center"},Hr={class:"text-xs font-medium tracking-widest uppercase"},Jr={class:"text-[0.85rem] font-medium"},Or={class:"text-[0.7rem] text-[#6E6D6A] leading-relaxed pr-3 md:pr-4 hidden md:block"},Nr={class:"w-2/3 md:w-[70%] h-[5px] bg-[#E1D6C6] rounded overflow-hidden"},Vr={key:5,class:"feature-item grid grid-cols-[24px_1fr] md:grid-cols-[35px_1fr] gap-3 md:gap-4 py-3 md:py-4 items-center"},qr={class:"f-details flex flex-col gap-1"},Wr={class:"flex justify-between items-center"},Gr={class:"text-xs font-medium tracking-widest uppercase"},Kr={class:"text-[0.85rem] font-medium"},Yr={class:"text-[0.7rem] text-[#6E6D6A] leading-relaxed pr-3 md:pr-4 hidden md:block"},Zr={class:"w-2/3 md:w-[70%] h-[5px] bg-[#E1D6C6] rounded overflow-hidden"},Qr={key:0,class:"absolute inset-0 z-10 flex justify-center pointer-events-none items-center"},Xr={class:"bg-white rounded-2xl shadow-2xl p-4 max-w-sm md:mx-4 text-center border border-slate-200 pointer-events-auto"},en={class:"text-sm md:text-lg font-bold text-slate-800 mb-2"},tn={class:"relative z-10"},sn={class:"grid grid-cols-1 lg:grid-cols-[1fr_1.5fr] gap-4"},on={class:"relative"},ln={class:"text-xs tracking-widest uppercase"},rn={class:"flex items-baseline justify-center my-3 md:my-4"},nn={class:"font-serif text-3xl md:text-4xl lg:text-[4.5rem] leading-none font-normal whitespace-nowrap"},an={class:"flex gap-1.5 mb-4 text-[#BC9671]"},dn={key:0,d:"M12 2l3 9h9l-7 5.5 3 9-8-6.5-8 6.5 3-9-7-5.5h9z"},cn={key:1,d:"M12 2l3 9h9l-7 5.5 3 9-8-6.5-8 6.5 3-9-7-5.5h9z",fill:"#E1D6C6"},un={class:"bg-[#E8E4DC] px-4 py-2 rounded-full text-[0.65rem] tracking-widest uppercase font-medium flex items-center gap-2 mb-4 whitespace-nowrap"},pn={class:"text-xs text-[#6E6D6A] leading-relaxed max-w-[80%] hidden md:block"},mn={class:"relative border border-[#DED8D0] rounded-xl p-4 md:p-6 flex flex-col justify-center"},xn={key:0,class:"w-10 h-10 md:w-12 md:h-12 bg-gradient-to-br from-brand-500 to-brand-600 rounded-full flex items-center justify-center shadow-lg"},hn={class:"text-xs tracking-widest uppercase text-center"},fn={class:"flex flex-col lg:flex-row items-center justify-center gap-4 lg:gap-6 mt-4 mb-5"},vn={class:"relative w-[110px] h-[110px]"},gn={viewBox:"0 0 36 36",class:"w-full h-full"},bn=["stroke-dasharray"],wn={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-center"},yn=["innerHTML"],_n={class:"font-serif text-xl md:text-2xl font-normal"},kn={class:"flex-1 flex flex-col gap-2 w-full lg:w-auto"},$n={class:"flex items-center gap-4 text-sm"},Cn={class:"w-[110px] text-[0.6rem]"},En={class:"flex-1 h-1.5 bg-[#E1D6C6] rounded"},An={class:"w-[30px] text-right text-[0.6rem]"},Tn={class:"flex items-center gap-4 text-sm"},Sn={class:"w-[110px] text-[0.6rem]"},Dn={class:"flex-1 h-1.5 bg-[#E1D6C6] rounded"},Mn={class:"w-[30px] text-right text-[0.6rem]"},Bn={class:"flex items-center gap-4 text-sm"},jn={class:"w-[110px] text-[0.6rem]"},Fn={class:"flex-1 h-1.5 bg-[#E1D6C6] rounded"},Pn={class:"w-[30px] text-right text-[0.6rem]"},In={class:"flex items-center gap-4 text-sm"},Ln={class:"w-[110px] text-[0.6rem]"},Un={class:"flex-1 h-1.5 bg-[#E1D6C6] rounded"},zn={class:"w-[30px] text-right text-[0.6rem]"},Rn={class:"flex items-center gap-4 text-sm"},Hn={class:"w-[110px] text-[0.6rem]"},Jn={class:"flex-1 h-1.5 bg-[#E1D6C6] rounded"},On={class:"w-[30px] text-right text-[0.6rem]"},Nn={class:"flex items-center gap-4 text-sm"},Vn={class:"w-[110px] text-[0.6rem]"},qn={class:"flex-1 h-1.5 bg-[#E1D6C6] rounded"},Wn={class:"w-[30px] text-right text-[0.6rem]"},Gn={class:"grid grid-cols-2 gap-2 md:gap-0 md:flex justify-between border-t border-[#DED8D0] pt-4"},Kn={class:"flex items-center text-[10px] gap-[2px] tracking-widest uppercase justify-self-center"},Yn={class:"flex items-center text-[10px] gap-[2px] tracking-widest uppercase justify-self-center"},Zn={class:"flex items-center text-[10px] gap-[2px] tracking-widest uppercase justify-self-center"},Qn={class:"flex items-center text-[10px] gap-[2px] tracking-widest uppercase justify-self-center"},Xn={class:"relative z-10"},ea={class:"flex justify-center items-center gap-3 mt-4"},ta=["title"],sa=["disabled","title"],oa={key:0,class:"w-5 h-5 text-[#2B2A28] animate-spin",viewBox:"0 0 24 24",fill:"none"},la={key:1,class:"w-5 h-5 text-[#2B2A28]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ra={__name:"SingleResult",props:{imageUrl:{type:String,required:!0},resultJson:{type:Object,required:!0},taskId:{type:String,default:""},onClose:{type:Function,default:null},onReset:{type:Function,default:null},isFreeProduct:{type:Boolean,default:!0}},emits:["share"],setup(i,{emit:r}){const u=i,y=r,{show:h,getExperimentContext:A}=Re(),{lockPolicy:c,getExperimentContext:L}=Ye(),{shouldLock:T,hideInlineCta:S}=c.value,C=p=>u.isFreeProduct&&T(p),{variant:j,getExperimentContext:P}=Ze(),ne=B(()=>j.value===Xe),b=B(()=>et(u.resultJson)),k=p=>{de("free_lock_popup",p),Pt({click_id:p},L(),P()),He("purchasePopupView","blur_result",A()),h("blur_result","single","subscription",p)},H=Ft().public.blurAreaIapEnabled,Y=()=>{H&&k(zt)},F=v(null),f=v(null),M=v(null),J=v(null),G=v(null),le=v(null),se=async()=>{const{domToPng:p,waitUntilLoad:d}=await Ke(async()=>{const{domToPng:R,waitUntilLoad:ae}=await import("./NB5FNsou.js");return{domToPng:R,waitUntilLoad:ae}},[],import.meta.url);if(!f.value||!M.value||!J.value||!G.value||!le.value)return console.warn("Missing share sections"),null;const Z=640,K=document.createElement("div");
1Object.assign(K.style,{position:"fixed",left:"-9999px",top:"0",width:`${Z}px`,boxSizing:"border-box",padding:"20px",backgroundColor:"#F3EFE9",border:"1px solid #DED8D0",borderRadius:"12px",display:"flex",flexDirection:"column",gap:"16px",visibility:"visible",opacity:"1",zIndex:"-1"});const X=[f.value,M.value,J.value,G.value,le.value];for(const R of X){const ae=R.cloneNode(!0);if(ae.style.margin="0",ae.style.width="100%",ae.style.flex="none",R===M.value){ae.style.height="360px",ae.style.maxHeight="360px",ae.style.overflow="hidden";const _e=ae.querySelector("img");_e&&(_e.style.objectFit="contain",_e.style.borderRadius="12px")}K.appendChild(ae)}document.body.appendChild(K);try{return await d(K),await p(K,{scale:2,width:Z,backgroundColor:"#F3EFE9",features:{removeControlCharacter:!0}})}finally{document.body.removeChild(K)}},U=B(()=>{const p=u.resultJson?.overall_score;return p&&parseFloat(p)||0}),ce=B(()=>{const p=u.resultJson?.average_feature_score;if(p&&p!=="0%")return p;const Z=["facial_symmetry","facial_proportions","eyes","nose","lips","jawline_face_shape"].map(X=>u.resultJson?.[X]?.score).filter(X=>X).map(X=>parseFloat(X.replace("%","")));if(Z.length===0)return"0%";const K=Z.reduce((X,R)=>X+R,0)/Z.length;return`${Math.round(K)}%`}),x=p=>{if(!p)return"0%";if(typeof p=="number")return`${p}%`;if(typeof p=="string"){const d=p.replace(/[^0-9.]/g,""),Z=parseFloat(d);return isNaN(Z)?"0%":p.includes("%")?`${Math.min(Z,100)}%`:`${Math.min(Z,100)}%`}return"0%"},w=p=>p?typeof p=="number"?`${p}%`:typeof p=="string"?p.includes("%")?p:`${p}%`:"0%":"0%",{isShareUploading:I,handleDownload:g,handleShare:_}=Ht({getCardEl:()=>F.value,getScore:()=>u.resultJson?.overall_score,onShare:p=>y("share",p),generateShareImage:se}),oe=()=>{u.onReset&&u.onReset()};return(p,d)=>{const Z=Rt,K=Lt,X=Qe;return n(),a("div",Ol,[e("div",{ref_key:"resultCard",ref:F,class:"bg-[#F3EFE9] max-w-[1000px] mx-auto p-5 md:p-6 rounded-xl border border-[#DED8D0] shadow-lg"},[e("header",{ref_key:"header",ref:f,class:"flex justify-between items-start mb-4 md:mb-6"},[e("div",Nl,[e("h1",Vl,t(p.$t("result.header")),1),e("p",ql,t(p.$t("result.subtitle")),1)]),e("div",Wl,[d[6]||(d[6]=e("svg",{class:"w-4 h-4 stroke-[#6E6D6A] fill-none stroke-[1.5]",viewBox:"0 0 24 24"},[e("path",{d:"M12 2l2.4 7.4h7.6l-6 4.6 2.3 7.4-6.3-4.8-6.3 4.8 2.3-7.4-6-4.6h7.6z"})],-1)),e("span",{innerHTML:p.$t("result.comprehensive")},null,8,Gl)])],512),e("div",Kl,[e("div",Yl,[e("div",{ref_key:"userPhoto",ref:M,class:"border border-[#DED8D0] rounded-xl overflow-hidden md:flex-1 relative"},[e("img",{src:i.imageUrl,alt:p.$t("result.analyzedFaceAlt"),class:"w-full h-full object-contain md:object-cover"},null,8,Zl),d[7]||(d[7]=be('<svg class="face-overlay absolute top-0 left-0 w-full h-full pointer-events-none z-10 hidden md:block" width="100%" height="100%" data-v-e82e5e82><line x1="50%" y1="5%" x2="50%" y2="95%" class="overlay-line line-axis" data-v-e82e5e82></line><line x1="25%" y1="32%" x2="75%" y2="32%" class="overlay-line line-prop" data-v-e82e5e82></line><line x1="15%" y1="45%" x2="85%" y2="45%" class="overlay-line line-prop" data-v-e82e5e82></line><line x1="30%" y1="65%" x2="70%" y2="65%" class="overlay-line line-prop" data-v-e82e5e82></line><line x1="35%" y1="80%" x2="65%" y2="80%" class="overlay-line line-prop" data-v-e82e5e82></line><polyline points="50%,20% 70%,15% 100%,15%" class="overlay-line line-callout hidden lg:block" data-v-e82e5e82></polyline><polyline points="68%,45% 85%,38% 100%,38%" class="overlay-line line-callout hidden lg:block" data-v-e82e5e82></polyline><polyline points="50%,65% 80%,55% 100%,55%" class="overlay-line line-callout hidden lg:block" data-v-e82e5e82></polyline><polyline points="50%,90% 85%,75% 100%,75%" class="overlay-line line-callout hidden lg:block" data-v-e82e5e82></polyline><circle cx="50%" cy="20%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="34%" cy="45%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="66%" cy="45%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="50%" cy="45%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="42%" cy="65%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="58%" cy="65%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="50%" cy="65%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="40%" cy="80%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="60%" cy="80%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle><circle cx="50%" cy="90%" r="3.5" class="overlay-dot" data-v-e82e5e82></circle></svg>',1))],512),e("div",{ref_key:"palettesBox",ref:J,class:"border border-[#DED8D0] rounded-xl p-4 md:p-5 flex justify-between"},[i.resultJson.skin_tone?(n(),a("div",Ql,[e("span",Xl,t(p.$t("result.palettes.skinTone")),1),e("div",er,[(n(!0),a(N,null,V(i.resultJson.skin_tone.colors,R=>(n(),a("div",{key:R,class:"md:w-[16px] md:h-[16px] w-[12px] h-[12px] rounded-full shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",style:W({backgroundColor:R})},null,4))),128))])])):E("",!0),i.resultJson.eye_color?(n(),a("div",tr,[e("span",sr,t(p.$t("result.palettes.eyeColor")),1),e("div",or,[(n(!0),a(N,null,V(i.resultJson.eye_color.colors,R=>(n(),a("div",{key:R,class:"md:w-[16px] md:h-[16px] w-[12px] h-[12px] rounded-full shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",style:W({backgroundColor:R})},null,4))),128))])])):E("",!0),i.resultJson.hair_color?(n(),a("div",lr,[e("span",rr,t(p.$t("result.palettes.hairColor")),1),e("div",nr,[(n(!0),a(N,null,V(i.resultJson.hair_color.colors,R=>(n(),a("div",{key:R,class:"md:w-[16px] md:h-[16px] w-[12px] h-[12px] rounded-full shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",style:W({backgroundColor:R})},null,4))),128))])])):E("",!0)],512)]),e("div",ar,[e("h2",ir,t(p.$t("result.anal
1ysis.featureAnalysis")),1),e("div",dr,[i.resultJson.facial_symmetry?(n(),a("div",cr,[d[8]||(d[8]=e("div",{class:"f-icon"},[e("svg",{class:"w-5 h-5 md:w-[26px] md:h-[26px] stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M12 21c-5-2-7-6-7-11V6l7-3 7 3v4c0 5-2 9-7 11z"}),e("path",{d:"M9 10h.01M15 10h.01M12 14v2"})])],-1)),e("div",ur,[e("div",pr,[e("span",mr,t(p.$t("result.analysis.facialSymmetry")),1),e("span",xr,t(i.resultJson.facial_symmetry.score),1)]),e("p",hr,t(i.resultJson.facial_symmetry.description),1),e("div",fr,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.facial_symmetry.score)})},null,4)])]),e("div",{class:"f-thumb crop-face dynamic-thumb hidden md:block bg-cover",style:W({backgroundImage:`url(${i.imageUrl})`})},null,4)])):E("",!0),i.resultJson.facial_proportions?(n(),a("div",vr,[d[9]||(d[9]=e("div",{class:"f-icon"},[e("svg",{class:"w-5 h-5 md:w-[26px] md:h-[26px] stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M4 4h16v16H4zM4 12h16M12 4v16M8 8h8M8 16h8"})])],-1)),e("div",gr,[e("div",br,[e("span",wr,t(p.$t("result.analysis.proportions")),1),e("span",yr,t(i.resultJson.facial_proportions.score),1)]),e("p",_r,t(i.resultJson.facial_proportions.description),1),e("div",kr,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.facial_proportions.score)})},null,4)])]),e("div",{class:"f-thumb crop-face dynamic-thumb hidden md:block bg-cover",style:W({backgroundImage:`url(${i.imageUrl})`})},null,4)])):E("",!0),i.resultJson.eyes?(n(),a("div",$r,[d[10]||(d[10]=e("div",{class:"f-icon"},[e("svg",{class:"w-5 h-5 md:w-[26px] md:h-[26px] stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M2 12c0 0 4-7 10-7s10 7 10 7-4 7-10 7-10-7-10-7z"}),e("circle",{cx:"12",cy:"12",r:"3"})])],-1)),e("div",Cr,[e("div",Er,[e("span",Ar,t(p.$t("result.analysis.eyes")),1),e("span",Tr,t(i.resultJson.eyes.score),1)]),e("p",Sr,t(i.resultJson.eyes.description),1),e("div",Dr,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.eyes.score)})},null,4)])])])):E("",!0),i.resultJson.nose?(n(),a("div",Mr,[d[11]||(d[11]=e("div",{class:"f-icon"},[e("svg",{class:"w-5 h-5 md:w-[26px] md:h-[26px] stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M12 4v11c0 1.5-1 3-3 3s-3-1.5-3-3M12 15c0 1.5 1 3 3 3s3-1.5 3-3"})])],-1)),e("div",Br,[e("div",jr,[e("span",Fr,t(p.$t("result.analysis.nose")),1),e("span",Pr,t(i.resultJson.nose.score),1)]),e("p",Ir,t(i.resultJson.nose.description),1),e("div",Lr,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.nose.score)})},null,4)])])])):E("",!0),i.resultJson.lips?(n(),a("div",Ur,[d[12]||(d[12]=e("div",{class:"f-icon"},[e("svg",{class:"w-5 h-5 md:w-[26px] md:h-[26px] stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M2 12s4-4 10-4 10 4 10 4-4 6-10 6-10-6-10-6z"}),e("path",{d:"M2 12s4 2 10 2 10-2 10-2"})])],-1)),e("div",zr,[e("div",Rr,[e("span",Hr,t(p.$t("result.analysis.lips")),1),e("span",Jr,t(i.resultJson.lips.score),1)]),e("p",Or,t(i.resultJson.lips.description),1),e("div",Nr,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.lips.score)})},null,4)])])])):E("",!0),i.resultJson.jawline_face_shape?(n(),a("div",Vr,[d[13]||(d[13]=e("div",{class:"f-icon"},[e("svg",{class:"w-5 h-5 md:w-[26px] md:h-[26px] stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M5 8c0 4 3 10 7 12s7-8 7-12"}),e("path",{d:"M9 16l3 2 3-2"})])],-1)),e("div",qr,[e("div",Wr,[e("span",Gr,t(p.$t("result.analysis.jawlineShape")),1),e("span",Kr,t(i.resultJson.jawline_face_shape.score),1)]),e("p",Yr,t(i.resultJson.jawline_face_shape.description),1),e("div",Zr,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.jawline_face_shape.score)})},null,4)])])])):E("",!0)]),C("feature")?(n(),a("div",{key:0,onClick:Y,class:O(["absolute inset-0 backdrop-blur-[2px] bg-[#F3EFE9]/60 flex flex-col items-center justify-center gap-3 md:gap-4 z-20 rounded-xl",{"cursor-pointer":l(H)}])},[l(S)?E("",!0):(n(),a("div",Qr,[e("div",Xr,[d[14]||(d[14]=e("div",{class:"w-10 h-10 md:w-16 md:h-16 mx-auto mb-2 md:mb-4 bg-gradient-to-br from-brand-500 to-brand-600 rounded-full flex items-center justify-center"}
1,[e("svg",{class:"w-6 h-6 md:w-8 md:h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)),e("h3",en,t(p.$t("result.lock.title")),1),e("button",{onClick:d[0]||(d[0]=te(()=>{k(l(Js))},["stop"])),class:"relative overflow-hidden bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold py-2 md:py-3 px-8 rounded-xl shadow-lg hover:shadow-brand-500/30 transition-all premium-btn"},[e("span",tn,t(p.$t("result.lock.cta")),1)])])]))],2)):E("",!0)])]),e("div",sn,[e("div",on,[e("div",{ref_key:"overallScore",ref:G,class:"border border-[#DED8D0] rounded-xl p-4 md:p-6 flex flex-col items-center text-center"},[e("h2",ln,t(p.$t("result.score.overall")),1),e("div",rn,[e("span",nn,t(i.resultJson.overall_score||"0"),1),d[15]||(d[15]=e("span",{class:"text-lg text-[#6E6D6A] font-light ml-1 whitespace-nowrap"},"/ 10",-1))]),e("div",an,[(n(),a(N,null,V(5,R=>e("svg",{key:R,class:"w-5 h-5 fill-current",viewBox:"0 0 24 24"},[R<=Math.round(U.value/2)?(n(),a("path",dn)):(n(),a("path",cn))])),64))]),e("div",un,[z(t(p.$t("result.score.confidenceLevel",{level:i.resultJson.confidence_level||"N/A"}))+" ",1),d[16]||(d[16]=e("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"currentColor"},[e("path",{d:"M4 22h2V12H4v10zm6 0h2V6h-2v16zm6 0h2v-8h-2v8zm6 0h2V2h-2v20z"})],-1))]),e("p",pn,t(i.resultJson.overall_summary||p.$t("result.score.summary")),1)],512),C("overall")?(n(),a("div",{key:0,onClick:Y,class:O(["absolute inset-0 backdrop-blur-[2px] bg-[#F3EFE9]/60 flex flex-col items-center justify-center gap-2 md:gap-3 z-20 rounded-xl",{"cursor-pointer":l(H)}])},[...d[17]||(d[17]=[e("div",{class:"w-10 h-10 md:w-12 md:h-12 bg-gradient-to-br from-brand-500 to-brand-600 rounded-full flex items-center justify-center shadow-lg"},[e("svg",{class:"w-5 h-5 md:w-6 md:h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])],-1)])],2)):E("",!0)]),e("div",mn,[C("harmony")?(n(),a("div",{key:0,onClick:Y,class:O(["absolute inset-0 backdrop-blur-[2px] bg-[#F3EFE9]/60 flex items-center justify-center z-20 rounded-xl",{"cursor-pointer":l(H)}])},[l(S)?E("",!0):(n(),a("div",xn,[...d[18]||(d[18]=[e("svg",{class:"w-5 h-5 md:w-6 md:h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})],-1)])]))],2)):E("",!0),e("h2",hn,t(p.$t("result.harmony.title")),1),e("div",fn,[e("div",vn,[(n(),a("svg",gn,[d[19]||(d[19]=e("path",{class:"fill-none stroke-[#E1D6C6] stroke-[3.5]",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"},null,-1)),e("path",{class:"fill-none stroke-[#BC9671] stroke-[3.5] stroke-linecap-round","stroke-dasharray":`${x(ce.value)}, 100`,d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"},null,8,bn)])),e("div",wn,[e("span",{class:"block text-xs tracking-widest text-[#6E6D6A] uppercase",innerHTML:p.$t("result.score.average")},null,8,yn),e("strong",_n,t(ce.value),1)])]),e("div",kn,[e("div",$n,[e("span",Cn,t(p.$t("result.harmony.symmetry")),1),e("div",En,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.facial_symmetry?.score)})},null,4)]),e("span",An,t(w(i.resultJson.facial_symmetry?.score)),1)]),e("div",Tn,[e("span",Sn,t(p.$t("result.harmony.proportions")),1),e("div",Dn,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.facial_proportions?.score)})},null,4)]),e("span",Mn,t(w(i.resultJson.facial_proportions?.score)),1)]),e("div",Bn,[e("span",jn,t(p.$t("result.harmony.eyes")),1),e("div",Fn,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.eyes?.score)})}
1,null,4)]),e("span",Pn,t(w(i.resultJson.eyes?.score)),1)]),e("div",In,[e("span",Ln,t(p.$t("result.harmony.nose")),1),e("div",Un,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.nose?.score)})},null,4)]),e("span",zn,t(w(i.resultJson.nose?.score)),1)]),e("div",Rn,[e("span",Hn,t(p.$t("result.harmony.lips")),1),e("div",Jn,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.lips?.score)})},null,4)]),e("span",On,t(w(i.resultJson.lips?.score)),1)]),e("div",Nn,[e("span",Vn,t(p.$t("result.harmony.jawlineShape")),1),e("div",qn,[e("div",{class:"h-full bg-[#BC9671] rounded",style:W({width:x(i.resultJson.jawline_face_shape?.score)})},null,4)]),e("span",Wn,t(w(i.resultJson.jawline_face_shape?.score)),1)])])]),e("div",Gn,[e("div",Kn,[d[20]||(d[20]=e("svg",{class:"w-4 h-4 stroke-[#6E6D6A] fill-none stroke-[1.5]",viewBox:"0 0 24 24"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{d:"M12 2v20M2 12h20"})],-1)),z(" "+t(p.$t("result.harmony.tags.balanced")),1)]),e("div",Yn,[d[21]||(d[21]=e("svg",{class:"w-4 h-4 stroke-[#6E6D6A] fill-none stroke-[1.5]",viewBox:"0 0 24 24"},[e("path",{d:"M12 2v20M2 12h20"}),e("circle",{cx:"12",cy:"12",r:"6"})],-1)),z(" "+t(p.$t("result.harmony.tags.harmonious")),1)]),e("div",Zn,[d[22]||(d[22]=e("svg",{class:"w-4 h-4 stroke-[#6E6D6A] fill-none stroke-[1.5]",viewBox:"0 0 24 24"},[e("path",{d:"M12 2c5.5 0 10 4.5 10 10s-4.5 10-10 10S2 17.5 2 12 6.5 2 12 2zm0 4c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6z"})],-1)),z(" "+t(p.$t("result.harmony.tags.natural")),1)]),e("div",Qn,[d[23]||(d[23]=e("svg",{class:"w-4 h-4 stroke-[#6E6D6A] fill-none stroke-[1.5]",viewBox:"0 0 24 24"},[e("rect",{x:"3",y:"7",width:"18",height:"13",rx:"2"}),e("circle",{cx:"12",cy:"13",r:"3"}),e("path",{d:"M8 7V5a2 2 0 012-2h4a2 2 0 012 2v2"})],-1)),z(" "+t(p.$t("result.harmony.tags.photogenic")),1)])])]),ne.value&&C("harmony")&&b.value>0?(n(),pe(Z,{key:0,class:"col-span-full","preview-count":b.value,onUnlock:d[1]||(d[1]=R=>k(l(Ut)))},null,8,["preview-count"])):E("",!0),C("overall")?(n(),a("button",{key:1,onClick:d[2]||(d[2]=R=>k(l(Os))),class:"col-span-full relative overflow-hidden bg-gradient-to-r from-brand-500 to-brand-600 text-white font-semibold py-3 md:py-4 px-8 rounded-xl shadow-lg hover:shadow-brand-500/30 transition-all premium-btn text-base md:text-lg"},[e("span",Xn,t(p.$t("result.lock.unifiedCta")),1)])):E("",!0)]),e("footer",{ref_key:"footer",ref:le,class:"flex justify-end items-center gap-2 mt-4 font-serif text-sm italic text-[#6E6D6A] md:flex"},[z(t(p.$t("result.analysisBy"))+" ",1),d[24]||(d[24]=e("svg",{class:"w-3.5 h-3.5 stroke-[#6E6D6A] fill-none stroke-1",viewBox:"0 0 24 24"},[e("path",{d:"M12 2l2.4 7.4h7.6l-6 4.6 2.3 7.4-6.3-4.8-6.3 4.8 2.3-7.4-6-4.6h7.6z"})],-1))],512)],512),e("div",ea,[e("button",{onClick:d[3]||(d[3]=(...R)=>l(g)&&l(g)(...R)),class:"w-9 h-9 md:w-10 md:h-10 bg-[#F3F4F6] border border-[#E5E7EB] rounded-full flex items-center justify-center hover:bg-[#E5E7EB] hover:border-[#D1D5DB] transition-all",title:p.$t("result.actions.downloadReport")},[...d[25]||(d[25]=[e("svg",{class:"w-5 h-5 text-[#2B2A28]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e("polyline",{points:"7 10 12 15 17 10"}),e("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)])],8,ta),e("button",{disabled:l(I),onClick:d[4]||(d[4]=(...R)=>l(_)&&l(_)(...R)),class:"w-9 h-9 md:w-10 md:h-10 bg-[#F3F4F6] border border-[#E5E7EB] rounded-full flex items-center justify-center hover:bg-[#E5E7EB] hover:border-[#D1D5DB] transition-all disabled:opacity-60 disabled:cursor-not-allowed",title:p.$t("result.actions.shareResult")},[l(I)?(n(),a("svg",oa,[...d[26]||(d[26]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):(n(),a("svg",la,[...d[27]||(d[27]=[be('<circle cx="18" cy="5" r="3" data-v-e82e5e82></circle><circle cx="6" cy="12" r="3" data-v-e82e5e82></circle><circle cx="18" cy="19" r="3" data-v-e82e5e82></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49" data-v-e82e5e82></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49" data-v-e82e5e82></line>',5)])]))],8,sa),e("button",{onClick:oe,class:"h-9 md:h-10 px-3 md:px-4 bg-white text-brand-700 border-2 border-brand-700 flex items-center justify-center rounded-full font-medium text-sm md:text-base tracking-wide transition-all hover:bg-brand-700 hover:text-white"}
1,t(p.$t("result.actions.tryAgain")),1),re(K,null,{default:ge(()=>[!("useUserStore"in p?p.useUserStore:l(ee))().isLandingUser&&!("useUserStore"in p?p.useUserStore:l(ee))().isPaidUser?(n(),a("a",{key:0,href:"https://aicoloranalysis.ai/ai-attractiveness-test?utm_source=aiattractivenesstest&utm_medium=referral&utm_campaign=resultpage",target:"_blank",rel:"noopener noreferrer",class:"relative h-9 md:h-10 px-3 md:px-4 bg-[#9A524A] text-white flex items-center justify-center rounded-full font-medium text-sm md:text-base tracking-wide transition-all shadow-lg hover:bg-[#83433C] hover:shadow-xl hover:-translate-y-0.5 no-underline",onClick:d[5]||(d[5]=R=>("pageClickEvent"in p?p.pageClickEvent:l(de))("result","Test More"))},[d[28]||(d[28]=e("div",{class:"absolute -top-2 -right-2 px-1.5 rounded-[10px] text-[10px] font-extrabold text-white bg-[#2ab86d] shadow-[0_2px_4px_rgba(0,0,0,0.1)] pointer-events-none tracking-[0.5px]"},"Free",-1)),z(" "+t(p.$t("result.actions.testMore")),1)])):E("",!0)]),_:1})]),re(X)])}}},na=Ce(ra,[["__scopeId","data-v-e82e5e82"]]),aa=[{name:"facebook",re:/fban|fbav/i},{name:"instagram",re:/instagram/i},{name:"google",re:/\bgsa\//i},{name:"snapchat",re:/snapchat/i},{name:"wechat",re:/micromessenger/i},{name:"whatsapp",re:/whatsapp/i},{name:"tiktok",re:/tiktok/i},{name:"line",re:/\bline\//i},{name:"pinterest",re:/pinterest/i},{name:"android_webview",re:/; wv\)/i}],ia=i=>{typeof navigator<"u"&&i===void 0&&(i=navigator.userAgent||"");const r=aa.find(u=>u.re.test(i||""));return r?r.name:""},da=()=>{const i=vs("inapp:detected",()=>""),r=()=>{i.value||(i.value=ia()||"none")},u=B(()=>!!i.value&&i.value!=="none"),y=B(()=>u.value?i.value:""),h=B(()=>typeof navigator>"u"?!1:/iphone|ipad|ipod/i.test(navigator.userAgent||""));return{isInApp:u,name:y,isIOS:h,detect:r}},ca={id:"hero",class:"bg-[#FAFAFA] py-10 pt-[64px] mt-4 md:py-16 md:pt-[80px] md:mt-8 px-4"},ua={class:"max-w-[800px] mx-auto flex flex-col gap-4 md:gap-8"},pa={class:"text-center"},ma={class:"font-serif text-[28px] md:text-[44px] font-bold text-[#1C2024] tracking-tight mb-2"},xa={class:"font-serif text-[20px] md:text-[32px] font-semibold italic text-[#6B7280] mb-4 md:mb-5"},ha={class:"text-[15px] text-[#4B5563] max-w-[650px] mx-auto leading-relaxed"},fa={class:"bg-white rounded-3xl p-2 md:p-6 shadow-[0_25px_50px_-12px_rgba(154,82,74,0.15),0_0_0_1px_rgba(154,82,74,0.05)]"},va={key:0,class:"mb-3 flex items-start gap-2 rounded-xl border border-amber-300 bg-amber-50 p-3 text-xs text-amber-900"},ga={class:"flex-1"},ba={class:"font-semibold"},wa={class:"mt-0.5 leading-relaxed"},ya={class:"mt-2 flex items-center gap-3"},_a={class:"flex bg-[#F6F4F1] p-[5px] rounded-full w-full mb-5 relative shadow-[inset_0_1px_2px_rgba(0,0,0,0.02)]"},ka={class:"absolute bottom-[calc(100%+14px)] left-1/2 -translate-x-1/2 translate-y-[5px] bg-[rgba(30,30,30,0.95)] text-white px-[7px] py-[12px] rounded-md text-xs font-normal whitespace-nowrap opacity-0 invisible transition-all duration-200 z-10 pointer-events-none group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 hidden md:block"},$a={class:"absolute bottom-[calc(100%+14px)] left-1/2 -translate-x-1/2 translate-y-[5px] bg-[rgba(30,30,30,0.95)] text-white px-[7px] py-[12px] rounded-md text-xs font-normal whitespace-nowrap opacity-0 invisible transition-all duration-200 z-10 pointer-events-none group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 hidden md:block"},Ca={class:"absolute bottom-[calc(100%+14px)] left-1/2 -translate-x-1/2 translate-y-[5px] bg-[rgba(30,30,30,0.95)] text-white px-[7px] py-[12px] rounded-md text-xs font-normal whitespace-nowrap opacity-0 invisible transition-all duration-200 z-10 pointer-events-none group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 hidden md:block"},Ea={key:1},Aa={key:0,class:"flex flex-col items-center pointer-events-none"},Ta={class:"text-base font-semibold text-[#1C2024] mb-1"},Sa={class:"text-[13px] text-[#6B7280]"},Da={key:1,class:"relative pointer-events-none"},Ma={class:"w-[120px] h-[160px] rounded-lg overflow-hidden shadow-[0_4px_12px_rgba(0,0,0,0.1)] border-2 border-white"},Ba=["src","alt"],ja={key:2,class:"grid grid-cols-2 gap-4"},Fa={key:0,class:"flex flex-col items-center pointer-events-none"},Pa={class:"text-sm font-semibold text-[#1C2024] mb-1"},Ia={class:"text-[11px] text-[#6B7280]"},La={key:1,class:"relative pointer-events-none"},Ua={class:"w-[120px] h-[160px] rounded-lg overflow-hidden shadow-[0_4px_12px_rgba(0,0,0,0.1)] border-2 border-white"},za=["src","alt"],Ra={key:0,class:"flex flex-col items-center pointer-events-none"},Ha={class:"text-sm font-semibold text-[#1C2024] mb-1"},Ja={class:"text-[11px] text-[#6B7280]"},Oa={key:1,class:"relative pointer-events-none"},Na={class:"w-[120px] h-[160px] rounded-lg overflow-hidden shadow-[0_4px_12px_rgba(0,0,0,0.1)] border-2 border-white"},Va=["src","alt"],qa={class:"flex justify-end items-center mt-2 md:mt-5 gap-2 md:gap-4"},Wa={key:0},Ga={key:1,class:"animate-pulse"},Ka=["disabled","title"],Ya={key:0,class:"preview-teaser mt-4 md:mt-5 bg-[#F8FAFC] rounded-xl md:rounded-2xl border border-[#
1E5E7EB] p-3 md:p-4"},Za={class:"flex flex-col md:flex-row gap-3 md:gap-4 items-center"},Qa={class:"visual-area flex items-center gap-2 md:gap-3 flex-shrink-0 w-full md:w-auto justify-center md:justify-start"},Xa={class:"placeholder-box w-[30%] md:w-[120px] h-[35vw] md:h-[180px] rounded-md border border-[#CBD5E0] relative overflow-hidden bg-gray-200"},ei={key:0,src:Fl,alt:"",class:"w-full h-full object-cover"},ti={key:1,src:Pl,alt:"",class:"w-full h-full object-cover"},si={key:0,class:"vs-text text-[10px] md:text-[11px] font-extrabold text-[#718096]"},oi={key:1,class:"placeholder-box w-[30%] md:w-[120px] h-[35vw] md:h-[180px] rounded-md border border-[#CBD5E0] relative overflow-hidden bg-gray-200"},li={class:"result-box w-[30%] md:w-[120px] h-[35vw] md:h-[180px] rounded-md border-2 border-[#9A524A] relative overflow-hidden shadow-[0_0_12px_rgba(154,82,74,0.25)]"},ri={key:0,src:Jt,alt:"",class:"w-full h-full object-cover"},ni={key:1,src:Ot,alt:"",class:"w-full h-full object-cover"},ai={class:"teaser-text flex-1 min-w-0"},ii={class:"text-sm md:text-base font-semibold text-[#1C2024] mb-1"},di={class:"text-xs md:text-sm text-[#6B7280] leading-relaxed"},ci=["innerHTML"],ui=["innerHTML"],pi={key:0,class:"bg-white rounded-2xl md:rounded-3xl p-2 md:p-6 shadow-[0_25px_50px_-12px_rgba(154,82,74,0.15),0_0_0_1px_rgba(154,82,74,0.05)]"},mi={class:"text-xl font-bold text-[#1C2024] mb-2"},xi={class:"text-[15px] text-[#6B7280]"},hi={key:0,class:"mt-5 mx-auto max-w-md text-[14px] text-[#6B7280] bg-[#F7F3F2] rounded-xl px-4 py-3"},fi={key:3,class:"text-center"},vi={class:"w-full mx-auto mb-4 md:mb-8 rounded-xl md:rounded-2xl overflow-hidden shadow-[0_16px_40px_rgba(0,0,0,0.12)] bg-[#F3F4F6]"},gi=["src","alt"],bi={class:"flex justify-center items-center gap-4 flex-wrap"},wi=["disabled","title"],yi=["title"],_i=["src"],ki={class:"text-lg font-bold text-center mb-6 text-gray-800"},$i={class:"grid grid-cols-3 gap-4 mb-6"},Ci={class:"text-xs text-gray-600"},Ei={class:"text-xs text-gray-600"},Ai={class:"text-xs text-gray-600"},Ti={class:"bg-gray-50 border border-gray-200 rounded-xl flex items-center px-3 py-2"},Si={class:"flex-1 text-xs text-gray-600 truncate pr-2"},Di=6e4,ve="https://aiattractivenesstest.ai",Mi=2e4,Bi={__name:"HeroSection",setup(i,{expose:r}){const{t:u,locale:y}=ze(),h=gs(),A=B(()=>{const o=ee();return!o.isLandingUser&&!o.isPaidUser}),c=v("single"),L=v("fast"),T=v("idle"),S=v(""),C=v(!1),j=v(!1),P=v(!1),ne=v(u("result.share.copy")),b=v(""),k=v(""),H=v(!1),Y=v(!0),F=v(0),f=v(null),M=v(""),J=v(""),G=v(null),le=v(null),se=v(null),U=v({file:null,preview:""}),ce=v(!1),x=v([{file:null,preview:""},{file:null,preview:""}]),w=v(!1),I=v(!1),g=v(null),_=v(!1);let oe=null;const p=()=>{d(),_.value=!1,oe=setTimeout(()=>{_.value=!0},Di)},d=()=>{oe&&(clearTimeout(oe),oe=null),_.value=!1};bt(T,o=>{o!=="loading"&&d()}),Ue(()=>{d()});const Z=v(null),K=B(()=>c.value==="pk"?10:L.value==="fast"?ee().isLandingUser||ee().isPaidUser?5:1:10),X=B(()=>L.value==="fast"?"fast":c.value==="pk"?"pk":"deep"),R=B(()=>T.value==="loading"),ae=B(()=>R.value?!0:c.value==="single"?!U.value.file:!x.value[0].file||!x.value[1].file),{$ensureAuth:_e}=bs(),ke=ws(),Vt=ys(),qt={"fast-test":"fast","deep-scan":"deep","face-pk":"pk"},Wt={fast:"fast-test",deep:"deep-scan",pk:"face-pk"},tt=o=>{const s=qt[(o||"").replace(/^#/,"")];s&&Te(s)},{ensureAuthForSubmit:Gt}=Ys(),{show:st,getExperimentContext:Kt}=Re(),{getExperimentContext:Ee}=Ye(),{variant:Yt,getExperimentContext:Zt}=Ze(),Qt=B(()=>Yt.value===Xe),{fail:we,success:ot,info:Ae}=me(),{isInApp:Xt,isIOS:es,detect:ts}=da(),lt=v(!1),rt=v(!1),ss=()=>{typeof window<"u"&&window.open(window.location.href,"_blank")};Oe(async()=>{_s(),ts(),tt(ke.hash);const o=ee();try{if((!o.userInfo||!o.token)&&await _e(),o.userInfo){const{currentAsset:m}=await wt();m&&(F.value=m.amount,o.pid=m.pid)}}catch(m){console.error("Failed to get assets:",m)}Y.value=!1,window.addEventListener("paste",ut);const s=Vs();s&&s.entry===yt.ATTRACTIVENESS&&s.returnPath===ke.path&&o.isRealUser&&is(s)}),Ue(()=>{window.removeEventListener("paste",ut),De()}),bt(()=>ke.hash,tt);const os=()=>{U.value={file:null,preview:""},x.value=[{file:null,preview:""},{file:null,preview:""}],G.value&&(G.value.value=""),le.value&&(le.value.value=""),se.value&&(se.value.value="")},Te=o=>{const s=c.value,m=U.value.file?{...U.value}:null,$=x.value[0].file?{...x.value[0]}:null;o==="fast"?(L.value="fast",c.value="single"):o==="deep"?(L.value="structural",c.value="single"):o==="pk"&&(L.value="structural",c.value="pk"),s!==c.value&&(os(),s==="single"&&c.value==="pk"&&m&&(x.value[0]=m),s==="pk"&&c.value==="single"&&$&&(U.value=$));const q=`#${Wt[o]}`;ke.hash!==q&&Vt.replace({hash:q})};let Se=null,nt=0;const De=()=>{Se&&(clearTimeout(Se),Se=null)},at=o=>{if(!Xt.value)return;De();const s=++nt;Se=setTimeout(()=>{s===nt&&(Fe({status:"failed",image_type:0,image_size:0,mode:o,raw_type:"",raw_ext:"",raw_size_kb:0,fail_reason:"picker_no_response"}),lt.value=!0,we(u("errors.pickerNoResponse")))},Mi)},it=()=>{G.value&&(G.value.click(),Ve({status:"success",image_type:0,image_size:0,mode:c.value}),at(c.value))},Me=o=>{const s=o===0?le.value:se.value;s&&(s.click(),Ve({status:"success",image_type:0,image_size:0,mode:c.value}),at(c.value))};r({setOnboardingImage:async o=>{if(!o||!Dt.includes(o.type)||o.size>10*1024*1024)return;c.value="single";const s=await he(o);s&&(U.value=s)}});const he=async o=>{if(!Dt.includes(o.type))return we(u("errors.pleaseUploadJpg")),null;const s=10*1024*1024;if(o.size>s)return we(u("errors.exceeds10mb")),null;try{const{file:m,base64:$}=await Ks(o);return Ne({area:"hero_section",status:"success",error_msg:"",image_type:m.type,image_size:(m.size/1024).toFixed(2),mode:c.value,raw_type:o.type||"",is_heic:/heic|heif/i.test(o.type||""),fail_reason:""}),{file:m,preview:$}}catch(m){console.error("Image compression failed:",m);const $=m?.message||"compress_fail";let q=u("errors.failedProcessImage");return $==="heic_decode_fail"?q=u("errors.heicNotSupported"):$==="decode_fail"?q=u("errors.formatNotSupported"):($==="read_fail"||$==="blob_fail")&&(q=u("errors.failedRead
1Image")),Ne({area:"hero_section",status:"failed",error_msg:$,image_type:"",image_size:0,mode:c.value,raw_type:o.type||"",is_heic:/heic|heif/i.test(o.type||""),fail_reason:$}),we(q),null}},ls=async o=>{De();const s=Array.from(o.target.files);if(s.length===0){Fe({status:"cancelled",image_type:0,image_size:0,mode:"single",raw_type:"",raw_ext:"",raw_size_kb:0,fail_reason:"empty_file"});return}fe(s[0],"single");const m=await he(s[0]);m&&(U.value=m)},dt=async(o,s)=>{De();const m=Array.from(o.target.files);if(m.length===0){Fe({status:"cancelled",image_type:0,image_size:0,mode:"pk",raw_type:"",raw_ext:"",raw_size_kb:0,fail_reason:"empty_file"});return}fe(m[0],"pk");const $=await he(m[0]);$&&(x.value[s]=$)},rs=async o=>{ce.value=!1;const s=Array.from(o.dataTransfer.files);if(s.length===0)return;fe(s[0],"single");const m=await he(s[0]);m&&(U.value=m)},ct=async(o,s)=>{s===0?w.value=!1:I.value=!1;const m=Array.from(o.dataTransfer.files);if(m.length===0)return;fe(m[0],"pk"),fe(m[0],"pk");const $=await he(m[0]);$&&(x.value[s]=$)},ut=async o=>{if(T.value!=="idle")return;const s=o.clipboardData?.items;if(!s)return;let m=null;for(const $ of s)if($.type.startsWith("image/")){m=$.getAsFile();break}if(m)if(o.preventDefault(),c.value==="single"){fe(m,"single");const $=await he(m);$&&(U.value=$)}else{const $=x.value.findIndex(ue=>!ue.file),q=$===-1?0:$;fe(m,"pk");const ie=await he(m);ie&&(x.value[q]=ie)}},ns=()=>{U.value={file:null,preview:""},G.value&&(G.value.value="")},pt=o=>{x.value[o]={file:null,preview:""};const s=o===0?le.value:se.value;s&&(s.value="")},$e=v(0),as=()=>({entry:yt.ATTRACTIVENESS,mode:c.value,analysisMode:L.value,returnPath:ke.path,images:c.value==="single"?[U.value.preview]:[x.value[0].preview,x.value[1].preview]}),is=o=>{try{const s=o.images||[];if(o.mode==="pk"){if(s.length!==2)return;x.value=s.map(m=>({file:St(m),preview:m}))}else{if(s.length!==1)return;U.value={file:St(s[0]),preview:s[0]}}L.value=o.analysisMode,c.value=o.mode,mt({isRestore:!0})}catch(s){console.error("Failed to restore pending submit:",s)}},mt=async({isRestore:o=!1}={})=>{if(c.value==="single"&&!U.value.file){it();return}if(c.value==="pk"&&(!x.value[0].file||!x.value[1].file)){x.value[0].file?Me(1):Me(0);return}if(o||ks(c.value),T.value="loading",p(),await $s(),g.value.scrollIntoView({behavior:"smooth",block:"center"}),!await Gt(as)){T.value="idle";return}try{let m=null,$=!1;try{const Q=await wt();m=Q?.currentAsset,$=!!Q?.loadFailed,Z.value=m,m?_t("success","","",m,Q?.allAssets):_t("failed",Q?.error_msg,Q?.error_code,null,null)}catch(Q){console.error("Search failed:",Q),$=!0}if($){T.value="idle",Ae(u("errors.loadFailed"));return}const q=m?.amount??0;if(!m||q<K.value){if(c.value==="pk"&&q>0){kt({reason:"no_credits",remaining_credits:q,required_credits:K.value,mode:c.value}),T.value="idle",Ae(u("errors.pkInsufficientTrySingle"));return}kt({reason:"no_credits",remaining_credits:q,required_credits:K.value,mode:c.value}),o||st("no_credits",c.value),T.value="idle",Ae(u("errors.insufficientCredits"));return}F.value=m.amount,ee().pid=m.pid,$e.value+=1,Cs(c.value,$e.value,o?Es:void 0);const ie=Date.now(),ue=c.value==="single"?"ai-attractiveness-test-advanced":"ai-attractiveness-test-pk",ye=c.value==="single"?[U.value.file]:[x.value[0].file,x.value[1].file];if(L.value==="fast"&&c.value==="single"){const Q=ee(),D=await Rl({type:!Q.isLandingUser&&!Q.isPaidUser?"single-mode-lowcost":"single-mode",file:ye[0],asset:m,lang:y.value});if(D.c===0&&D.d?.state===10){M.value=U.value.preview;try{f.value=D.d?.chat_rsp?JSON.parse(D.d.chat_rsp):null}catch(je){console.error("Failed to parse chat_rsp:",je),f.value=null}if(J.value=D.task_id,$t(Date.now()-ie,c.value,$e.value),Ct({output_text:D.d.chat_rsp||"",output_url:[],content_img:D.content_img||"",type:"json",task_id:D.task_id,cost:Date.now()-ie,mode:c.value,is_free_product:m.is_free_product}),T.value="single-result",Et({asset:m.amount>K.value,is_free_product:m.is_free_product,is_success:!0},Ee()),m.is_free_product){const je=Zt();As(Ee(),je);const ft=et(f.value);Qt.value&&ft>0&&Ts({preview_sections:bo,preview_count:ft},Ee(),je)}}else throw D}else{const Q=await qs({role:ue,files:ye,prompt:JSON.stringify({lang:y.value}),width:0,height:0,mode:c.value,asset:m});if(Q.c===0&&Q.d?.output_url?.length)S.value=Q.d.output_url[0],F.value-=K.value,$t(Date.now()-ie,c.value,$e.value),Ct({output_text:"",output_url:Q.d.output_url,content_img:Q.content_img,type:"image",task_id:Q.d.task_id,cost:Date.now()-ie,mode:c.value,is_free_product:m.is_free_product}),T.value="result",Et({asset:m.amount>K.value,is_free_product:m.is_free_product,is_success:!0},Ee());else throw Q}}catch(m){if(console.error("Analysis failed:",m),m?.code==="poll_timeout"){T.value="idle",Ae(u("errors.pollTimeoutHint"));return}Ss({content_img:"",err_code:m.code||m.c||"unknown",err_msg:Bt(m),mode:c.value,is_free_product:Z.value?.is_free_product||!1,type:zl(L.value,c.value)});const $=Ul(m),q=!!$;q&&(P.value=!0,Ds({text:u("popups.nsfw.taskFailedText"),error_msg:$})),!q&&m.status!==401&&m.c!==401&&we(u("errors.somethingWrong")),Ms(0,m.code||m.c||"",Bt(m),c.value,$e.value),T.value="idle"}},Be=()=>{de("result","Try another photo"),T.value="idle",U.value={file:null,preview:""},x.value=[{file:null,preview:""},{file:null,preview:""}],S.value="",f.value=null,M.value="",J.value="",G.value&&(G.value.value=""),le.value&&(le.value.value=""),se.value&&(se.value.value=""),window.scrollTo({top:0,behavior:"smooth"})},ds=()=>{P.value=!1,Be()},cs=async()=>
1{if(de("result","share"),b.value="",k.value="",navigator.share&&/Mobi|Android/i.test(navigator.userAgent)&&S.value)try{const s=await(await fetch(S.value)).blob(),m=new File([s],"my-attractiveness-result.png",{type:s.type||"image/png"});await navigator.share({title:u("result.share.nativeShareTitle"),text:u("result.share.shareTextResult"),url:ve,files:[m]});return}catch(o){console.log("Native share failed, fallback to modal:",o)}C.value=!0},xt=o=>{de("result","share"),b.value=o?.text||"",k.value=o?.url||"",C.value=!0},us=o=>{o.target===o.currentTarget&&ht()},ht=()=>{C.value=!1,b.value="",k.value=""},ps=async()=>{try{const o=k.value||S.value||ve;if(navigator.clipboard&&navigator.clipboard.writeText)await navigator.clipboard.writeText(o);else{const s=document.createElement("input");s.value=o,s.style.position="fixed",s.style.opacity="0",document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s)}ne.value=u("result.share.copied"),setTimeout(()=>{ne.value=u("result.share.copy")},2e3)}catch(o){console.error("Copy failed:",o)}},ms=()=>{const o=k.value||S.value,s=u("result.share.shareTextResult");let m;if(o){const $=new URLSearchParams({img:o,text:s});m=`${ve}/share?${$.toString()}`}else m=ve;window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(s)}&url=${encodeURIComponent(m)}`,"_blank","width=600,height=400"),C.value=!1},xs=()=>{const o=encodeURIComponent(b.value||ve);window.open(`https://www.facebook.com/sharer/sharer.php?u=${o}`,"_blank","width=600,height=400"),C.value=!1},hs=()=>{const o=encodeURIComponent(b.value||`${u("result.share.shareTextResult")} ${S.value||""} ${ve}`);window.open(`https://api.whatsapp.com/send?text=${o}`,"_blank"),C.value=!1},fs=async()=>{if(de("result","download"),H.value)return;H.value=!0;const o=window.innerWidth<=768;try{const s=S.value,$=await(await fetch(s)).blob(),q="my-attractiveness-result.png";if(o&&navigator.share)try{const ye=new File([$],q,{type:$.type||"image/png"});await navigator.share({files:[ye],title:u("result.share.nativeShareTitle"),text:u("result.share.nativeShareText")}),ot(u("errors.imageSharedSuccess"));return}catch{}const ie=URL.createObjectURL($),ue=document.createElement("a");ue.href=ie,ue.download=q,document.body.appendChild(ue),ue.click(),document.body.removeChild(ue),URL.revokeObjectURL(ie),ot(u("errors.imageDownloadedSuccess"))}catch(s){console.error("Download failed:",s),we(u("errors.failedDownload"))}finally{H.value=!1}},fe=(o,s)=>{Fe(Ws(o,s))};return(o,s)=>{const m=so,$=Hs,q=Tl,ie=Lt,ue=Qe,ye=Gs,Q=jl;return n(),a("div",ca,[e("div",ua,[e("header",pa,[e("h1",ma,t(o.$t("hero.header.title")),1),e("h2",xa,t(o.$t("hero.header.subtitle")),1),e("p",ha,t(o.$t("hero.header.body")),1)]),e("div",fa,[l(lt)&&!l(rt)?(n(),a("div",va,[s[24]||(s[24]=e("svg",{class:"mt-0.5 h-4 w-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01M5 19h14a2 2 0 001.84-2.75L13.74 4a2 2 0 00-3.48 0L3.16 16.25A2 2 0 005 19z"})],-1)),e("div",ga,[e("p",ba,t(o.$t("hero.inAppHint.title")),1),e("p",wa,t(l(es)?o.$t("hero.inAppHint.iosMsg"):o.$t("hero.inAppHint.androidMsg"))+" "+t(o.$t("hero.inAppHint.forReliable")),1),e("div",ya,[e("button",{type:"button",onClick:ss,class:"rounded-lg bg-amber-600 px-3 py-1.5 font-medium text-white"},t(o.$t("hero.inAppHint.openInBrowser")),1),e("button",{type:"button",onClick:s[0]||(s[0]=D=>rt.value=!0),class:"text-amber-700 underline"},t(o.$t("hero.inAppHint.dismiss")),1)])])])):E("",!0),e("input",{type:"file",ref_key:"fileInput",ref:G,accept:"image/*",class:"hidden",onChange:ls},null,544),e("input",{type:"file",ref_key:"fileInput1",ref:le,accept:"image/*",class:"hidden",onChange:s[1]||(s[1]=D=>dt(D,0))},null,544),e("input",{type:"file",ref_key:"fileInput2",ref:se,accept:"image/*",class:"hidden",onChange:s[2]||(s[2]=D=>dt(D,1))},null,544),e("div",_a,[e("button",{type:"button",onClick:s[3]||(s[3]=D=>Te("fast")),class:"flex-1 relative cursor-pointer group"},[e("div",{class:O(["absolute right-0 top-1/2 -translate-y-1/2 h-[18px] w-[1px] bg-[#dcd7d1] z-1 transition-all duration-250",{"opacity-0":l(X)==="fast"||l(X)==="deep"}])},null,2),e("div",{class:O(["flex items-center justify-center gap-[6px] h-[42px] rounded-full text-[#6b6762] text-sm font-medium transition-all duration-250 relative z-2",l(X)==="fast"?"bg-[#9A524A] text-white shadow-[0_4px_10px_rgba(154,82,74,0.25)] font-semibold":"group-hover:text-[#9a524a]"])},[s[25]||(s[25]=e("svg",{class:"w-[17px] h-[17px] fill-none stroke-current stroke-[2.2] stroke-linecap-round stroke-linejoin-round transition-all duration-250",viewBox:"0 0 24 24"}
1,[e("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})],-1)),e("span",null,t(o.$t("hero.tabs.fastTest")),1)],2),e("div",ka,[z(t(o.$t("hero.tabs.fastTestTooltip"))+" ",1),s[26]||(s[26]=e("div",{class:"absolute top-full left-1/2 -translate-x-1/2 border-[5px] border-solid border-[rgba(30,30,30,0.95)] border-x-transparent border-b-transparent"},null,-1))])]),e("button",{type:"button",onClick:s[4]||(s[4]=D=>Te("deep")),class:"flex-1 relative cursor-pointer group"},[s[29]||(s[29]=e("div",{class:"absolute -top-2 left-1/2 -translate-x-[10%] px-[7px] py-[2px] rounded-[10px] text-[10px] font-extrabold text-white z-3 pointer-events-none whitespace-nowrap tracking-[0.5px] shadow-[0_2px_4px_rgba(0,0,0,0.1)] bg-[#2ab86d] z-[1]"}," PRO ",-1)),e("div",{class:O(["absolute right-0 top-1/2 -translate-y-1/2 h-[18px] w-[1px] bg-[#dcd7d1] z-1 transition-all duration-250",{"opacity-0":l(X)==="deep"||l(X)==="pk"}])},null,2),e("div",{class:O(["flex items-center justify-center gap-[6px] h-[42px] rounded-full text-[#6b6762] text-sm font-medium transition-all duration-250 relative z-2",l(X)==="deep"?"bg-[#9A524A] text-white shadow-[0_4px_10px_rgba(154,82,74,0.25)] font-semibold":"group-hover:text-[#9a524a]"])},[s[27]||(s[27]=be('<svg class="w-[17px] h-[17px] fill-none stroke-current stroke-[2.2] stroke-linecap-round stroke-linejoin-round transition-all duration-250" viewBox="0 0 24 24" data-v-b7430b0e><path d="M3 7V5a2 2 0 0 1 2-2h2" data-v-b7430b0e></path><path d="M17 3h2a2 2 0 0 1 2 2v2" data-v-b7430b0e></path><path d="M21 17v2a2 2 0 0 1-2 2h-2" data-v-b7430b0e></path><path d="M7 21H5a2 2 0 0 1-2-2v-2" data-v-b7430b0e></path><circle cx="12" cy="12" r="3" data-v-b7430b0e></circle></svg>',1)),e("span",null,t(o.$t("hero.tabs.deepScan")),1)],2),e("div",$a,[z(t(o.$t("hero.tabs.deepScanTooltip"))+" ",1),s[28]||(s[28]=e("div",{class:"absolute top-full left-1/2 -translate-x-1/2 border-[5px] border-solid border-[rgba(30,30,30,0.95)] border-x-transparent border-b-transparent"},null,-1))])]),e("button",{type:"button",onClick:s[5]||(s[5]=D=>Te("pk")),class:"flex-1 relative cursor-pointer group"},[s[32]||(s[32]=e("div",{class:"absolute -top-2 left-1/2 -translate-x-[10%] px-[7px] py-[2px] rounded-[10px] text-[10px] font-extrabold text-white z-3 pointer-events-none whitespace-nowrap tracking-[0.5px] shadow-[0_2px_4px_rgba(0,0,0,0.1)] bg-brand-500 z-[1]"}," HOT ",-1)),e("div",{class:O(["flex items-center justify-center gap-[6px] h-[42px] rounded-full text-[#6b6762] text-sm font-medium transition-all duration-250 relative z-2",l(X)==="pk"?"bg-[#9A524A] text-white shadow-[0_4px_10px_rgba(154,82,74,0.25)] font-semibold":"group-hover:text-[#9a524a]"])},[s[30]||(s[30]=be('<svg class="w-[17px] h-[17px] fill-none stroke-current stroke-[2.2] stroke-linecap-round stroke-linejoin-round transition-all duration-250" viewBox="0 0 24 24" data-v-b7430b0e><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-v-b7430b0e></path><circle cx="9" cy="7" r="4" data-v-b7430b0e></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87" data-v-b7430b0e></path><path d="M16 3.13a4 4 0 0 1 0 7.75" data-v-b7430b0e></path></svg>',1)),e("span",null,t(o.$t("hero.tabs.facePk")),1)],2),e("div",Ca,[z(t(o.$t("hero.tabs.facePkTooltip"))+" ",1),s[31]||(s[31]=e("div",{class:"absolute top-full left-1/2 -translate-x-1/2 border-[5px] border-solid border-[rgba(30,30,30,0.95)] border-x-transparent border-b-transparent"},null,-1))])])]),l(c)==="single"?(n(),a("div",Ea,[e("div",{class:O(["border-2 border-dashed rounded-2xl p-4 md:p-10 flex flex-col items-center justify-center text-center cursor-pointer transition-all duration-300 min-h-[200px] md:min-h-[240px]",[l(ce)?"bg-[#FEF8F7] border-[#9A524A]":"bg-[#F9FAFB] border-[#D1D5DB] hover:bg-[#FEF8F7] hover:border-[#9A524A]",l(U).preview?"border-solid border-[#D1D5DB]":""]]),onClick:it,onDragover:s[6]||(s[6]=te(D=>ce.value=!0,["prevent"])),onDragleave:s[7]||(s[7]=te(D=>ce.value=!1,["prevent"])),onDrop:te(rs,["prevent"])},[l(U).preview?(n(),a("div",Da,[e("div",Ma,[e("img",{src:l(U).preview,alt:o.$t("hero.upload.previewAlt"),class:"w-full h-full object-cover"},null,8,Ba)]),e("button",{onClick:te(ns,["stop"]),class:"absolute -top-2 -right-2 w-6 h-6 bg-white hover:bg-red-50 rounded-full flex items-center justify-center shadow-md transition-colors pointer-events-auto"},[...s[34]||(s[34]=[e("svg",{class:"w-4 h-4 text-[#6B7280] hover:text-red-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])):(n(),a("div",Aa,[s[33]||(s[33]=be('<div class="w-12 h-12 bg-white shadow-[0_4px_12px_rgba(0,0,0,0.06)] rounded-full flex items-center justify-center mb-4 border border-[#
1E5E7EB] transition-transform duration-300" data-v-b7430b0e><svg class="w-[22px] h-[22px] text-[#1C2024]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-b7430b0e><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-v-b7430b0e></path><polyline points="17 8 12 3 7 8" data-v-b7430b0e></polyline><line x1="12" y1="3" x2="12" y2="15" data-v-b7430b0e></line></svg></div>',1)),e("div",Ta,t(o.$t("hero.upload.title")),1),e("p",Sa,t(o.$t("hero.upload.hint")),1)]))],34),re(m)])):(n(),a("div",ja,[e("div",{class:O(["border-2 border-dashed rounded-2xl p-4 md:p-6 flex flex-col items-center justify-center text-center cursor-pointer transition-all duration-300 min-h-[180px] md:min-h-[220px]",[l(w)?"bg-[#FEF8F7] border-[#9A524A]":"bg-[#F9FAFB] border-[#D1D5DB] hover:bg-[#FEF8F7] hover:border-[#9A524A]",l(x)[0].preview?"border-solid border-[#D1D5DB]":""]]),onClick:s[9]||(s[9]=D=>Me(0)),onDragover:s[10]||(s[10]=te(D=>w.value=!0,["prevent"])),onDragleave:s[11]||(s[11]=te(D=>w.value=!1,["prevent"])),onDrop:s[12]||(s[12]=te(D=>ct(D,0),["prevent"]))},[l(x)[0].preview?(n(),a("div",La,[e("div",Ua,[e("img",{src:l(x)[0].preview,alt:o.$t("hero.upload.photo1"),class:"w-full h-full object-cover"},null,8,za)]),e("button",{onClick:s[8]||(s[8]=te(D=>pt(0),["stop"])),class:"absolute -top-2 -right-2 w-6 h-6 bg-white hover:bg-red-50 rounded-full flex items-center justify-center shadow-md transition-colors pointer-events-auto"},[...s[36]||(s[36]=[e("svg",{class:"w-4 h-4 text-[#6B7280] hover:text-red-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])):(n(),a("div",Fa,[s[35]||(s[35]=be('<div class="w-10 h-10 bg-white shadow-[0_4px_12px_rgba(0,0,0,0.06)] rounded-full flex items-center justify-center mb-3 border border-[#E5E7EB]" data-v-b7430b0e><svg class="w-[18px] h-[18px] text-[#1C2024]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-b7430b0e><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-v-b7430b0e></path><polyline points="17 8 12 3 7 8" data-v-b7430b0e></polyline><line x1="12" y1="3" x2="12" y2="15" data-v-b7430b0e></line></svg></div>',1)),e("h3",Pa,t(o.$t("hero.upload.photo1")),1),e("p",Ia,t(o.$t("hero.upload.photo1Hint")),1)]))],34),e("div",{class:O(["border-2 border-dashed rounded-2xl p-4 md:p-6 flex flex-col items-center justify-center text-center cursor-pointer transition-all duration-300 min-h-[180px] md:min-h-[220px]",[l(I)?"bg-[#FEF8F7] border-[#9A524A]":"bg-[#F9FAFB] border-[#D1D5DB] hover:bg-[#FEF8F7] hover:border-[#9A524A]",l(x)[1].preview?"border-solid border-[#D1D5DB]":""]]),onClick:s[14]||(s[14]=D=>Me(1)),onDragover:s[15]||(s[15]=te(D=>I.value=!0,["prevent"])),onDragleave:s[16]||(s[16]=te(D=>I.value=!1,["prevent"])),onDrop:s[17]||(s[17]=te(D=>ct(D,1),["prevent"]))},[l(x)[1].preview?(n(),a("div",Oa,[e("div",Na,[e("img",{src:l(x)[1].preview,alt:o.$t("hero.upload.photo2"),class:"w-full h-full object-cover"},null,8,Va)]),e("button",{onClick:s[13]||(s[13]=te(D=>pt(1),["stop"])),class:"absolute -top-2 -right-2 w-6 h-6 bg-white hover:bg-red-50 rounded-full flex items-center justify-center shadow-md transition-colors pointer-events-auto"},[...s[38]||(s[38]=[e("svg",{class:"w-4 h-4 text-[#6B7280] hover:text-red-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])):(n(),a("div",Ra,[s[37]||(s[37]=be('<div class="w-10 h-10 bg-white shadow-[0_4px_12px_rgba(0,0,0,0.06)] rounded-full flex items-center justify-center mb-3 border border-[#E5E7EB]" data-v-b7430b0e><svg class="w-[18px] h-[18px] text-[#1C2024]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-b7430b0e><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-v-b7430b0e></path><polyline points="17 8 12 3 7 8" data-v-b7430b0e></polyline><line x1="12" y1="3" x2="12" y2="15" data-v-b7430b0e></line></svg></div>',1)),e("h3",Ha,t(o.$t("hero.upload.photo2")),1),e("p",Ja,t(o.$t("hero.upload.photo2Hint")),1)]))],34)])),l(c)==="pk"?(n(),pe(m,{key:3})):E("",!0),e("div",qa,[("useUserStore"in o?o.useUserStore:l(ee))().isLandingUser||("useUserStore"in o?o.useUserStore:l(ee))().isPaidUser?(n(),a("span",{key:0,onClick:s[18]||(s[18]=()=>{l(st)("credit_balance",l(c)),("paywallEntryClickEvent"in o?o.paywallEntryClickEvent:l(He))("purchasePopupView","credit_balance",l(Kt)())}),class:O(["text-sm font-semibold flex items-center gap-1 cursor-pointer",l(F)<l(K)?"text-red-500":"text-[#6B7280]"])},[s[39]||(s[39]=e("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"#9A524A","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})],-1)),l(Y)?(n(),a("span",Ga,"...")):(n(),a("span",Wa,t(l(K))+" "+t(o.$t("hero.credits.credits")),1))],2)):E("",!0),e("button",{onClick:mt,disabled:l(ae),class:"w-[40px] md:w-[46px] h-[40p
1x] md:h-[46px] bg-[#9A524A] border-[3px] md:border-[4px] border-[#F1E5E3] rounded-full flex items-center justify-center shadow-[0_4px_12px_rgba(154,82,74,0.25)] transition-all duration-200 hover:scale-105 hover:bg-[#83433C] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100",title:o.$t("hero.cta.aiAttractivenessTest")},[...s[40]||(s[40]=[e("svg",{class:"w-5 h-5 text-white",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),e("polyline",{points:"5 12 12 5 19 12"})],-1)])],8,Ka)]),re(Ie,{name:"teaser-slide"},{default:ge(()=>[l(L)==="structural"?(n(),a("div",Ya,[e("div",Za,[e("div",Qa,[e("div",Xa,[l(c)==="single"?(n(),a("img",ei)):(n(),a("img",ti))]),l(c)==="pk"?(n(),a("span",si,"VS")):E("",!0),l(c)==="pk"?(n(),a("div",oi,[...s[41]||(s[41]=[e("img",{src:Il,alt:"",class:"w-full h-full object-cover"},null,-1)])])):E("",!0),s[42]||(s[42]=e("svg",{class:"w-4 md:w-5 h-4 md:h-5 text-[#6B7280]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)),e("div",li,[l(c)==="single"?(n(),a("img",ri)):(n(),a("img",ni))])]),e("div",ai,[e("h4",ii,t(l(c)==="pk"?o.$t("hero.teaser.structuralPk"):o.$t("hero.teaser.deepStructural")),1),e("p",di,[l(c)==="pk"?(n(),a("span",{key:0,innerHTML:o.$t("hero.teaser.structuralPkBody")},null,8,ci)):(n(),a("span",{key:1,innerHTML:o.$t("hero.teaser.deepStructuralBody")},null,8,ui))])])])])):E("",!0)]),_:1})]),re(Ie,{name:"slide-down"},{default:ge(()=>[l(T)!=="idle"?(n(),a("div",pi,[l(T)==="loading"?(n(),a("div",{key:0,ref_key:"loadingRef",ref:g,class:"py-10 md:py-14 text-center"},[s[43]||(s[43]=e("div",{class:"w-[52px] h-[52px] border-4 border-[#F1E5E3] border-t-[#9A524A] rounded-full animate-spin mx-auto mb-6"},null,-1)),e("div",mi,t(o.$t("hero.loader.analyzing")),1),e("div",xi,t(o.$t("hero.loader.waitMsg")),1),l(_)?(n(),a("div",hi,[z(t(o.$t("hero.loader.slowHint"))+" ",1),re($,{to:l(h)("/history"),class:"text-[#9A524A] font-medium underline"},{default:ge(()=>[z(t(o.$t("hero.loader.goHistory")),1)]),_:1},8,["to"])])):E("",!0)],512)):E("",!0),l(T)==="single-result"&&l(f)&&l(A)?(n(),pe(q,{key:1,imageUrl:l(M),resultJson:l(f),taskId:l(J),onClose:()=>T.value="idle",onReset:Be,onShare:xt},null,8,["imageUrl","resultJson","taskId","onClose"])):l(T)==="single-result"&&l(f)?(n(),pe(na,{key:2,imageUrl:l(M),resultJson:l(f),taskId:l(J),onClose:()=>T.value="idle",onReset:Be,isFreeProduct:l(Z).is_free_product,onShare:xt},null,8,["imageUrl","resultJson","taskId","onClose","isFreeProduct"])):l(T)==="result"?(n(),a("div",fi,[e("div",vi,[e("img",{src:l(S),alt:o.$t("result.header"),class:"w-full h-auto object-cover cursor-pointer hover:opacity-95 transition-opacity",onClick:s[19]||(s[19]=D=>j.value=!0)},null,8,gi)]),e("div",bi,[e("button",{onClick:fs,disabled:l(H),class:"w-8 h-8 md:w-12 md:h-12 bg-[#F3F4F6] border border-[#E5E7EB] rounded-full flex items-center justify-center hover:bg-[#E5E7EB] hover:border-[#D1D5DB] transition-all",title:o.$t("result.actions.download")},[...s[44]||(s[44]=[e("svg",{class:"w-5 h-5 text-[#1C2024]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e("polyline",{points:"7 10 12 15 17 10"}),e("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1)])],8,wi),e("button",{onClick:cs,class:"w-8 h-8 md:w-12 md:h-12 bg-[#F3F4F6] border border-[#E5E7EB] rounded-full flex items-center justify-center hover:bg-[#E5E7EB] hover:border-[#D1D5DB] transition-all",title:o.$t("result.actions.share")},[...s[45]||(s[45]=[e("svg",{class:"w-5 h-5 text-[#1C2024]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"18",cy:"5",r:"3"}),e("circle",{cx:"6",cy:"12",r:"3"}),e("circle",{cx:"18",cy:"19",r:"3"}),e("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),e("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})],-1)])],8,yi),e("button",{onClick:Be,class:"h-9 md:h-10 px-3 md:px-4 bg-white text-brand-700 border-2 border-brand-700 flex items-center justify-center rounded-full font-medium text-sm md:text-base tracking-wide transition-all hover:bg-brand-700 hover:text-white"}
1,t(o.$t("result.actions.tryAgain")),1),re(ie,null,{default:ge(()=>[!("useUserStore"in o?o.useUserStore:l(ee))().isLandingUser&&!("useUserStore"in o?o.useUserStore:l(ee))().isPaidUser?(n(),a("a",{key:0,href:"https://aicoloranalysis.ai/ai-attractiveness-test?utm_source=aiattractivenesstest&utm_medium=referral&utm_campaign=resultpage",target:"_blank",rel:"noopener noreferrer",class:"relative h-9 md:h-10 px-3 md:px-4 bg-[#9A524A] text-white flex items-center justify-center rounded-full font-medium text-sm md:text-base tracking-wide transition-all shadow-lg hover:bg-[#83433C] hover:shadow-xl hover:-translate-y-0.5 no-underline",onClick:s[20]||(s[20]=D=>l(de)("result","Test More"))},[s[46]||(s[46]=e("div",{class:"absolute -top-2 -right-2 px-1.5 rounded-[10px] text-[10px] font-extrabold text-white bg-[#2ab86d] shadow-[0_2px_4px_rgba(0,0,0,0.1)] pointer-events-none tracking-[0.5px]"},"Free",-1)),z(" "+t(o.$t("result.actions.testMore")),1)])):E("",!0)]),_:1})]),re(ue,{"page-section":"cross_sell_paid"})])):E("",!0)])):E("",!0)]),_:1})]),(n(),pe(Je,{to:"body"},[re(Ie,{name:"fade"},{default:ge(()=>[l(C)?(n(),a("div",{key:0,class:"fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center z-50 p-4 gap-8",onClick:us},[l(k)?(n(),a("img",{key:0,src:l(k),class:"h-[220px] rounded-sm object-contain",alt:""},null,8,_i)):E("",!0),e("div",{class:"bg-white w-full max-w-[400px] rounded-3xl p-6 shadow-xl relative",onClick:s[21]||(s[21]=te(()=>{},["stop"]))},[e("button",{onClick:ht,class:"absolute top-5 right-5 p-1 text-gray-400 hover:text-gray-600 transition-colors"},[...s[47]||(s[47]=[e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])]),e("div",ki,t(o.$t("result.share.title")),1),e("div",$i,[e("button",{onClick:ms,class:"flex flex-col items-center gap-2 hover:opacity-80 transition-opacity"},[s[48]||(s[48]=e("div",{class:"w-12 h-12 rounded-full bg-gray-100 flex items-center justify-center"},[e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M4 4l11.733 16h4.267l-11.733 -16z"}),e("path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"})])],-1)),e("span",Ci,t(o.$t("result.share.twitter")),1)]),e("button",{onClick:xs,class:"flex flex-col items-center gap-2 hover:opacity-80 transition-opacity"},[s[49]||(s[49]=e("div",{class:"w-12 h-12 rounded-full bg-gray-100 flex items-center justify-center"},[e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}
1)])],-1)),e("span",Ei,t(o.$t("result.share.facebook")),1)]),e("button",{onClick:hs,class:"flex flex-col items-center gap-2 hover:opacity-80 transition-opacity"},[s[50]||(s[50]=e("div",{class:"w-12 h-12 rounded-full bg-gray-100 flex items-center justify-center"},[e("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"})])],-1)),e("span",Ai,t(o.$t("result.share.whatsapp")),1)])]),e("div",Ti,[e("div",Si,t(l(k)||l(S)||ve),1),e("button",{onClick:ps,class:"bg-[#9A524A] text-white px-3 py-1.5 rounded-lg text-xs font-semibold hover:bg-[#83433C] transition-colors whitespace-nowrap"},t(l(ne)),1)])])])):E("",!0)]),_:1})])),re(ye,{"is-open":l(j),src:l(S),alt:o.$t("hero.upload.previewAlt"),onClose:s[22]||(s[22]=D=>j.value=!1)},null,8,["is-open","src","alt"]),re(Q,{"is-open":l(P),onClose:s[23]||(s[23]=D=>P.value=!1),onUpload:ds},null,8,["is-open"])])}}},ji=Ce(Bi,[["__scopeId","data-v-b7430b0e"]]),Fi={class:"fixed w-full h-full inset-0 z-[9999] flex items-center justify-center bg-[#000]/0.5 backdrop-blur-sm"},Pi={class:"relative flex flex-col bg-white overflow-hidden w-full h-full md:w-[414px] md:h-[calc(100vh-40px)] md:max-h-[844px] md:rounded-[34px] md:shadow-[0_26px_90px_rgba(72,43,39,0.15)]"},Ii={class:"px-6 pt-6 pb-2 flex gap-2 shrink-0"},Li={key:0,class:"flex-1 overflow-y-auto px-6 pb-28"},Ui={class:"space-y-3"},zi=["onClick"],Ri=["fill","stroke"],Hi=["d"],Ji={class:"block text-sm text-[#111827] mb-0.5"},Oi={class:"block text-xs text-gray-500"},Ni={key:1,class:"flex-1 flex flex-col px-6 pb-28"},Vi={class:"flex-1 flex flex-col min-h-0"},qi={key:2,class:"flex-1 flex flex-col bg-[#f9f8f6]"},Wi={class:"h-[42%] relative overflow-hidden bg-gray-200"},Gi=["src"],Ki={class:"flex-1 p-5 overflow-y-auto"},Yi={class:"bg-white rounded-[24px] shadow-sm border border-gray-100 p-5 w-full"},Zi={class:"flex justify-between items-center mb-3"},Qi={class:"text-[#a64f47] font-bold text-sm"},Xi={class:"w-full h-2 bg-[#f8ecea] rounded-full mb-6 overflow-hidden"},ed={class:"space-y-4"},td={key:0,class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},sd={key:1,class:"w-1.5 h-1.5 rounded-full animate-pulse bg-current"},od={key:2,class:"w-1.5 h-1.5 rounded-full bg-gray-300"},ld={key:3,class:"absolute bottom-0 w-full bg-white/95 backdrop-blur border-t border-gray-100 p-4 flex gap-3 z-30"},rd={__name:"OnboardingFlowModal",emits:["paywall"],setup(i,{emit:r}){const u=r,y=["goal_selection","upload","analyzing","paywall"],h=v("goal_selection"),A=B(()=>y.indexOf(h.value));Oe(()=>{Bs()||js(),Le("goal_selection"),window.addEventListener("paste",F)}),Ue(()=>window.removeEventListener("paste",F));const c=[{id:"goal_dating",title:"Dating Profile",desc:"Find the photo that maximizes your matches.",iconBg:"bg-pink-50 text-pink-500",icon:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"},{id:"goal_social",title:"Social Media",desc:"Optimize for likes, vibe, and followers.",iconBg:"bg-blue-50 text-blue-500",icon:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z M12 17a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"},{id:"goal_headshot",title:"Professional Headshot",desc:"Look competent and trustworthy.",iconBg:"bg-slate-50 text-slate-500",icon:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2 M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"},{id:"goal_glowup",title:"Glow-up Advice",desc:"Get an honest breakdown of how to improve.",iconBg:"bg-yellow-50 text-yellow-600",fill:!0,icon:"M12 2l1.9 5.8L20 9.5l-4.4 4.1L16.9 20 12 17l-4.9 3 1.3-6.4L4 9.5l6.1-1.7L12 2z"}],L=v(c[0].id),T=x=>{L.value=x,Pe("goal_selection",x)},S=v(!1);let C=null;const j=()=>{S.value=!1,requestAnimationFrame(()=>{S.value=!0}),clearTimeout(C),C=setTimeout(()=>{S.value=!1},2e3)},P=()=>{h.value==="goal_selection"?(Pe("goal_selection","next"),h.value="upload",Le("upload")):h.value==="upload"&&!b.value&&(Pe("upload","next"),j())},ne=()=>{h.value="goal_selection"},b=v(null),k=v(""),H=x=>{const w=x.target.files?.[0];w&&f(w),x.target.value=""},Y=x=>{const w=x.dataTransfer?.files?.[0];w&&f(w)},F=x=>
1{if(h.value!=="upload")return;const w=x.clipboardData?.files?.[0];w&&f(w)},f=x=>{!x.type.startsWith("image/")||x.size>10*1024*1024||(b.value=x,k.value=URL.createObjectURL(x),Ve({status:"success",image_type:x.type.split("/")[1]||"",image_size:String(Math.round(x.size/1024)),mode:"single"}),Pe("upload","start"),Ne({area:"image",status:"success",image_type:x.type.split("/")[1]||"",image_size:String(Math.round(x.size/1024)),mode:"single"}),h.value="analyzing",Le("analyzing"),ce())},M=["Uploading image","Scanning image","Analyzing facial structure","Measuring face ratio","Evaluating skin quality","Assessing symmetry","Preparing results"],J=v(0),G=B(()=>Math.min(Math.round((J.value+.5)/M.length*100),100)),le=x=>x<J.value?"font-medium text-gray-600":x===J.value?"font-bold text-[#111827]":"font-medium text-gray-400",se=x=>x<J.value?"bg-emerald-500 text-white":x===J.value?"bg-[#f8ecea] text-[#a64f47]":"bg-gray-100";let U=null;const ce=()=>{J.value=0;const x=()=>{J.value<M.length?(J.value++,U=setTimeout(x,Math.random()*400+400)):(h.value="paywall",u("paywall",{mode:"single",single:k.value,file:b.value}))};U=setTimeout(x,300)};return Ue(()=>{clearTimeout(U),clearTimeout(C)}),(x,w)=>(n(),pe(Je,{to:"body"},[e("div",Fi,[e("div",Pi,[e("div",Ii,[(n(),a(N,null,V(4,I=>e("div",{key:I,class:O(["h-1 flex-1 rounded-full transition-colors duration-300",I<=l(A)+1?"bg-[#a64f47]":"bg-gray-200"])},null,2)),64))]),l(h)==="goal_selection"?(n(),a("div",Li,[w[3]||(w[3]=e("div",{class:"inline-block bg-[#f8ecea] text-[#8e4039] text-xs font-extrabold px-3 py-1 rounded-full mb-3 mt-4"},"AI Attractiveness Test",-1)),w[4]||(w[4]=e("h1",{class:"text-3xl font-serif font-bold text-[#111827] leading-tight mb-6"},"Get your face score and improvement path.",-1)),e("div",Ui,[(n(),a(N,null,V(c,I=>e("button",{key:I.id,class:O(["w-full text-left p-4 rounded-2xl border transition flex items-center gap-4",l(L)===I.id?"border-[#a64f47]/55 bg-[#f8ecea]":"border-gray-200 bg-white"]),onClick:g=>T(I.id)},[e("div",{class:O(["w-10 h-10 rounded-full flex items-center justify-center shrink-0",I.iconBg])},[(n(),a("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:I.fill?"currentColor":"none",stroke:I.fill?"none":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:I.icon},null,8,Hi)],8,Ri))],2),e("div",null,[e("strong",Ji,t(I.title),1),e("span",Oi,t(I.desc),1)])],10,zi)),64))])])):l(h)==="upload"?(n(),a("div",Ni,[w[7]||(w[7]=e("div",{class:"inline-block bg-[#f8ecea] text-[#8e4039] text-xs font-extrabold px-3 py-1 rounded-full mb-3 mt-4 self
1-start"},"Upload photo",-1)),w[8]||(w[8]=e("h1",{class:"text-3xl font-serif font-bold text-[#111827] leading-tight mb-6"},"Upload a clear selfie.",-1)),e("div",Vi,[e("div",{class:O(["flex-1 border-2 border-dashed border-gray-300 rounded-[24px] bg-gradient-to-b from-white to-orange-50/30 flex flex-col items-center justify-center p-6 text-center cursor-pointer transition active:bg-[#f8ecea] overflow-hidden relative",{shake:l(S),"border-red-400":l(S)}]),onClick:w[0]||(w[0]=I=>x.$refs.file.click()),onDragover:w[1]||(w[1]=te(()=>{},["prevent"])),onDrop:te(Y,["prevent"])},[...w[5]||(w[5]=[e("div",{class:"w-14 h-14 bg-white rounded-full shadow-md flex items-center justify-center text-[#a64f47] mb-4"},[e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e("polyline",{points:"17 8 12 3 7 8"}),e("line",{x1:"12",y1:"3",x2:"12",y2:"15"})])],-1),e("h3",{class:"font-extrabold text-lg text-[#111827] mb-2"},"Upload Your Photo",-1),e("p",{class:"text-sm text-gray-500 mb-6 px-4"},"Choose, drag & drop, or paste a JPG, PNG photo up to 10MB.",-1),e("span",{class:"bg-[#a64f47] text-white font-extrabold px-6 py-3 rounded-full shadow-lg"},"Choose Photo",-1)])],34),e("p",{class:O(["h-5 mt-2 text-center text-xs font-bold text-[#a64f47] transition-opacity duration-300",l(S)?"opacity-100":"opacity-0"])},"Please upload a photo to continue",2),w[6]||(w[6]=e("div",{class:"flex justify-center gap-4 mt-4 text-[11px] text-gray-400 font-medium shrink-0"},[e("span",{class:"flex items-center gap-1"},[e("svg",{class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})]),z(" Photos never saved")]),e("span",{class:"flex items-center gap-1"},[e("svg",{class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"})]),z(" Auto-delete")])],-1))])])):l(h)==="analyzing"?(n(),a("div",qi,[e("div",Wi,[e("img",{src:l(k),alt:"Scanning",class:"w-full h-full object-cover"},null,8,Gi),w[9]||(w[9]=e("div",{class:"laser-line"},null,-1)),w[10]||(w[10]=e("div",{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-[#1a1514]/90 backdrop-blur px-5 py-2.5 rounded-full flex items-center gap-2.5 z-20 shadow-xl border border-white/10"},[e("div",{class:"w-2 h-2 rounded-full bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.8)]"}),e("span",{class:"text-white text-xs font-black tracking-widest uppercase"},"Analyzing...")],-1))]),e("div",Ki,[e("div",Yi,[e("div",Zi,[w[11]||(w[11]=e("h3",{class:"text-[#a64f47] font-black text-xs flex items-center gap-1.5"},[e("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"currentColor"},[e("path",{d:"M12 2l1.9 5.8L20 9.5l-4.4 4.1L16.9 20 12 17l-4.9 3 1.3-6.4L4 9.5l6.1-1.7L12 2z"})]),z(" AI ANALYSIS ")],-1)),e("span",Qi,t(l(G))+"%",1)]),e("div",Xi,[e("div",{class:"h-full bg-[#a64f47] rounded-full transition-[width] duration-300",style:W({width:l(G)+"%"})},null,4)]),e("ul",ed,[(n(),a(N,null,V(M,(I,g)=>e("li",{key:I,class:O(["flex items-center gap-3 text-[13px] transition-colors duration-300",le(g)])},[e("div",{class:O(["w-[22px] h-[22px] rounded-full flex items-center justify-center shrink-0 text-[10px]",se(g)])},[g<l(J)?(n(),a("svg",td,[...w[12]||(w[12]=[e("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):g===l(J)?(n(),a("div",sd)):(n(),a("div",od))],2),e("span",null,t(I),1)],2)),64))])])])])):E("",!0),l(h)==="goal_selection"||l(h)==="upload"?(n(),a("div",ld,[l(h)==="upload"?(n(),a("button",{key:0,class:"w-20 py-3.5 rounded-full border border-gray-300 text-gray-600 font-bold text-sm",onClick:ne},"Back")):E("",!0),e("button",{class:"flex-1 bg-[#a64f47] text-white py-3.5 rounded-full font-bold shadow-[0_8px_20px_rgba(166,79,71,0.25)] text-sm transition active:scale-[0.98]",onClick:P},"Continue")])):E("",!0),e("input",{ref:"file",type:"file",accept:"image/*",class:"hidden",onChange:w[2]||(w[2]=I=>H(I))},null,544)])])]))}},nd=Ce(rd,[["__scopeId","data-v-e347fddb"]]),ad={class:"fixed w-full h-full inset-0 z-[9999] flex items-center justify-center bg-[#000]/0.5 backdrop-blur-sm"},id={class:"relative flex flex-col bg-white overflow-hidden w-full md:w-[414px] h-full md:h-[calc(100vh-40px)] md:max-h-[844px] md:rounded-[34px] md:shadow-[0_26px_90px_rgba(72,43,39,0.15)]"},dd={class:"absolute inset-x-0 top-0 h-[50%] z-0"},cd={class:"absolute bottom-0 w-full bg-gray-50 rounded-t-[32px] pt-6 px-5 pb-8 z-20 shadow-[0_-10px_40px_-10px_rgba(0,0,0,0.1)] flex flex-col max-h-[85vh] overflow-y-auto"},ud={class:"space-y-2 mb-5"},pd={class:"text-xs text-gray-700 font-medium"},md={class:"grid grid-cols-2 gap-3 mb-5"},xd=["onClick"],hd={key:0,class:"absolute -top-3 left-1/2 -translate-x-1/2 bg-[#05070d] text-white text-[10px] font-black px-2.5 py-1 rounded-full whitespace-nowrap shadow-sm"},fd={class:"text-xl font-black text-[#111827] mb-1"},vd={class:"text-[22px]"},gd={class:"text-center text-[10px] font-medium text-gray-400"},bd="8.2",wd={__name:"GuidePaywallModal",props:{background:{type:String,default:""},tab:{type:String,default:"single"}},emits:["close"],setup(i,{emit:r}){const u=i,y=r,h=[{plat_pid:"subscription_silver_weekly",title:"Weekly",perTest:"
11.40",price:"6.99",sub:"Total $6.99 /wk",period:"week",name:"Silver Weekly",badge:""},{plat_pid:"subscription_silver_monthly",title:"Monthly",perTest:"1.00",price:"14.99",sub:"Total $14.99 /mo",period:"month",name:"Silver Monthly",badge:"SAVE 46%"}],A=v(h[1].plat_pid),c=B(()=>h.find(C=>C.plat_pid===A.value)),L=["Reveal full facial feature scores and balance details.","Get personalized fixes for angle, lighting, and styling."];Oe(()=>{Le("paywall"),Fs("guide_page"),Ps("guide_page",u.tab,"subscription")});const T=()=>{const C=c.value;At("guide_page",C.plat_pid,C.price,"checkout",C.name,u.tab,"stripe",Tt,"","subscription"),Is(C.plat_pid,"/","guide_page",3,C.price,"stripe","subscription")},S=()=>{At("guide_page","",0,"close","",u.tab,"stripe",Tt,"x_button","subscription"),y("close")};return(C,j)=>(n(),pe(Je,{to:"body"},[e("div",ad,[e("div",id,[e("div",dd,[e("div",{class:"absolute inset-0",style:W({background:i.background})},null,4),e("div",{class:"absolute top-6 left-1/2 -translate-x-1/2 bg-white/95 text-[#8e4039] font-black text-lg px-5 py-2 rounded-full shadow-lg border border-white/20 backdrop-blur whitespace-nowrap"}," SCORE "+t(bd)),j[0]||(j[0]=e("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-white/50 to-gray-50"},null,-1))]),e("div",cd,[e("button",{class:"absolute top-4 right-5 w-8 h-8 flex items-center justify-center rounded-full bg-gray-200/60 text-gray-500 hover:bg-gray-300 transition z-30","aria-label":"Close",onClick:S},[...j[1]||(j[1]=[e("svg",{class:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])]),j[4]||(j[4]=e("h2",{class:"text-2xl font-black text-[#111827] text-center mb-1"},"Your result is ready",-1)),j[5]||(j[5]=e("p",{class:"text-sm text-gray-500 text-center mb-4"},"Unlock the full report to reveal details.",-1)),e("div",ud,[(n(),a(N,null,V(L,P=>e("div",{key:P,class:"flex items-start gap-3 bg-white p-2.5 rounded-xl border border-gray-100"},[j[2]||(j[2]=e("div",{class:"w-5 h-5 rounded-full bg-[#f8ecea] text-[#a64f47] flex items-center justify-center shrink-0 mt-0.5"},[e("svg",{class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"20 6 9 17 4 12"})])],-1)),e("span",pd,t(P),1)])),64))]),e("div",md,[(n(),a(N,null,V(h,P=>e("div",{key:P.plat_pid,class:O(["border-2 rounded-2xl p-4 text-center cursor-pointer transition relative",l(A)===P.plat_pid?"border-[#a64f47] bg-[#fff8f7]":"border-gray-200 bg-white"]),onClick:ne=>A.value=P.plat_pid},[P.badge?(n(),a("div",hd,t(P.badge),1)):E("",!0),e("div",{class:O(["text-xs font-bold uppercase tracking-wider mb-2",l(A)===P.plat_pid?"text-[#a64f47]":"text-gray-400"])},t(P.title),3),e("div",fd,[e("span",vd,"$"+t(P.perTest),1),j[3]||(j[3]=e("span",{class:"text-xs font-bold text-gray-500"},"/test",-1))]),e("div",{class:O(["text-[11px] font-medium",l(A)===P.plat_pid?"text-[#8e4039]":"text-gray-400"])},t(P.sub),3)],10,xd)),64))]),e("button",{class:"w-full bg-[#a64f47] text-white font-black py-4 rounded-xl shadow-[0_8px_20px_rgba(166,79,71,0.3)] hover:bg-[#8e4039] transition text-[15px] mb-3 active:scale-[0.98]",onClick:T}," Unlock Full Report "),e("p",gd,"Billed $"+t(l(c).price)+" "+t(l(c).period)+"ly • Secure payment • Cancel anytime",1)])])])]))}},yd=xe("/assets/img/hero-bg.webp"),_d=xe("/assets/img/how-to-get.webp"),kd=xe("/assets/img/how-to-improve.webp"),$d={id:"compare-results",class:"bg-white border-y border-slate-200 py-16 md:py-24"},Cd={class:"max-w-7xl mx-auto px-6 md:px-12 flex flex-col items-center"},Ed={class:"text-3xl md:text-5xl font-serif text-slate-900 font-medium mb-6 text-center tracking-tight"},Ad={class:"text-brand-700 font-semibold"},Td={class:"text-slate-600 font-light mb-16 max-w-3xl mx-auto text-base md:text-lg leading-relaxed text-center"},Sd={class:"flex gap-6 max-w-5xl flex-col md:flex-row w-full"},Dd={class:"flex-1 bg-slate-50/50 border border-slate-200/80 rounded-2xl p-2 shadow-sm shadow-brand-900/5 hover:border-brand-200 hover:shadow-md transition-all duration-300"},Md=["alt"],Bd={class:"flex-1 bg-slate-50/50 border border-slate-200/80 rounded-2xl p-2 shadow-sm shadow-brand-900/5 hover:border-brand-200 hover:shadow-md transition-all duration-300"},jd=["alt"],Fd={id:"measure",class:"relative min-h-[90vh] flex items-center justify-center py-20 px-6 md:px-12 fade-in"},Pd={class:"absolute inset-0 z-0"},Id=["alt"],Ld={class:"relative z-10 max-w-4xl mx-auto text-center"},Ud={class:"text-4xl md:text-6xl font-serif text-white font-medium tracking-wide leading-tight mb-8"},zd={class:"text-base md:text-lg text-gray-100 font-light leading-relaxed mb-6"},Rd={class:"text-base md:text-lg text-gray-100 font-light leading-relaxed mb-12"},Hd={href:"#",class:"inline-block bg-brand-700 text-white px-8 py-4 rounded-full font-medium text-sm md:text-base tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-lg shadow-brand-900/20 hover:shadow-xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},Jd={id:"why-us",class:"py-16 md:py-32 px-6 md:px-12 max-w-7xl mx-auto text-center fade-in"},Od={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-6"},Nd={class:"max-w-3xl mx-auto text-stone-600 font-light text-base md:text-lg mb-16"},Vd={class:"grid grid-cols-1 md:grid-cols-3 gap-10 md:gap-16 mb-16"}
1,qd={class:"w-14 h-14 rounded-full bg-brand-50 border border-brand-100 flex items-center justify-center mb-6"},Wd={class:"w-6 h-6 text-brand-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Gd=["d"],Kd={class:"text-xl font-serif text-stone-900 mb-4"},Yd={class:"text-stone-600 font-light text-sm md:text-base leading-relaxed"},Zd={href:"#",class:"inline-block bg-brand-700 text-white px-8 py-4 rounded-full font-medium text-sm md:text-base tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-lg shadow-brand-900/20 hover:shadow-xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},Qd={id:"how-to-use",class:"py-16 md:py-32 px-6 md:px-12 bg-white border-y border-stone-200 text-center fade-in"},Xd={class:"max-w-7xl mx-auto"},ec={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-6"},tc={class:"max-w-3xl mx-auto text-stone-600 font-light text-base md:text-lg mb-16"},sc={class:"grid grid-cols-1 md:grid-cols-3 gap-10 md:gap-16 mb-16"},oc=["src","alt"],lc={class:"text-xl font-serif text-stone-900 mb-4 text-center md:text-left"},rc={class:"text-stone-600 font-light text-sm md:text-base leading-relaxed text-center md:text-left"},nc={href:"#",class:"inline-block bg-brand-700 text-white px-8 py-4 rounded-full font-medium text-sm md:text-base tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-lg shadow-brand-900/20 hover:shadow-xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},ac={id:"why-take",class:"py-16 md:py-32 px-6 md:px-12 max-w-7xl mx-auto text-center fade-in"},ic={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-6"},dc={class:"max-w-3xl mx-auto text-stone-600 font-light text-base md:text-lg mb-16"},cc={class:"grid grid-cols-1 md:grid-cols-3 gap-10 md:gap-16 mb-16"},uc={class:"w-14 h-14 rounded-full bg-brand-50 border border-brand-100 flex items-center justify-center mb-6"},pc={class:"w-6 h-6 text-brand-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},mc=["d"],xc={class:"text-xl font-serif text-stone-900 mb-4"},hc={class:"text-stone-600 font-light text-sm md:text-base leading-relaxed"},fc={href:"#",class:"inline-block bg-brand-700 text-white px-8 py-4 rounded-full font-medium text-sm md:text-base tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-lg shadow-brand-900/20 hover:shadow-xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},vc={id:"pro-tips",class:"py-16 md:py-32 px-6 md:px-12 bg-white border-t border-stone-200 fade-in"},gc={class:"max-w-7xl mx-auto"},bc={class:"text-center mb-16"},wc={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-6"},yc={class:"max-w-3xl mx-auto text-stone-600 font-light text-base md:text-lg"},_c={class:"grid grid-cols-1 md:grid-cols-2 gap-12 md:gap-20 items-center mb-16"},kc={class:"order-1"},$c=["alt"],Cc={class:"order-2"},Ec={class:"space-y-8"},Ac={class:"text-lg font-serif text-stone-900 mb-2"},Tc={class:"text-stone-600 font-light text-sm md:text-base leading-relaxed"},Sc={class:"text-center"},Dc={href:"#",class:"inline-block bg-brand-700 text-white px-8 py-4 rounded-full font-medium text-sm md:text-base tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-lg shadow-brand-900/20 hover:shadow-xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},Mc={id:"improve",class:"py-16 md:py-32 px-6 md:px-12 fade-in"},Bc={class:"max-w-7xl mx-auto"},jc={class:"text-center mb-16"},Fc={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-6"},Pc={class:"max-w-3xl mx-auto text-stone-600 font-light text-base md:text-lg"},Ic={class:"grid grid-cols-1 md:grid-cols-2 gap-12 md:gap-20 items-center mb-16"},Lc={class:"order-2 md:order-1"},Uc={class:"space-y-8"},zc={class:"text-lg font-serif text-stone-900 mb-2"},Rc={class:"text-stone-600 font-light text-sm md:text-base leading-relaxed"},Hc={class:"order-1 md:order-2"},Jc=["alt"],Oc={class:"text-center"},Nc={href:"#",class:"inline-block bg-brand-700 text-white px-8 py-4 rounded-full font-medium text-sm md:text-base tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-lg shadow-brand-900/20 hover:shadow-xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},Vc={id:"faq",class:"py-16 md:py-32 px-6 md:px-12 bg-white border-y border-stone-200 fade-in"},qc={class:"max-w-4xl mx-auto"},Wc={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-12 text-center"},Gc={class:"space-y-6"},Kc={class:"flex justify-between items-center font-serif text-lg md:text-xl text-stone-900 focus:outline-none"},Yc=["innerHTML"],Zc={id:"get-started",class:"py-24 md:py-40 px-6 md:px-12 text-center fade-in"},Qc={class:"max-w-3xl mx-auto"},Xc={class:"text-3xl md:text-5xl font-serif text-stone-900 font-medium mb-8"},eu={class:"text-stone-600 font-light text-base md:text-lg mb-12 leading-relaxed"},tu={href:"#",class:"inline-block bg-brand-700 text-white px-10 py-5 rounded-full font-medium text-base md:text-lg tracking-wide hover:bg-brand-800 transition-all duration-300 shadow-xl shadow-brand-900/20 hover:shadow-2xl hover:shadow-brand-900/30 hover:-translate-y-0.5"},su={__name:"index",setup(i){const{t:r}=ze(),u=v(!1),y=v(!1),h=v(""),A=v(null);Oe(()=>{Ls()==="test"&&Us()&&(u.value=!0,zs())});const c=({single:b,file:k})=>{h.value=`url(${b}) center/cover no-repeat`,y.value=!0,A.value?.setOnboardingImage(k)},L=()=>{y.value=!1,u.value=!1};Rs({title:()=>r("meta.title"),description:()=>r("meta.description"),ogTitle:()=>r("meta.title"),ogDescription:()=>r("meta.description"),ogType:"website",ogUrl:"https://aiattractivenesstest.ai",ogImage:"https://aiattractivenesstest.ai/og-image.
1webp",ogSiteName:"AI Attractiveness Test",twitterCard:"summary_large_image",twitterTitle:()=>r("meta.title"),twitterDescription:()=>r("meta.description"),twitterImage:"https://aiattractivenesstest.ai/og-image.webp"});const T=B(()=>[{title:r("pages.index.whyWeOffer.item1.title"),desc:r("pages.index.whyWeOffer.item1.desc"),icon:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},{title:r("pages.index.whyWeOffer.item2.title"),desc:r("pages.index.whyWeOffer.item2.desc"),icon:"M13 10V3L4 14h7v7l9-11h-7z"},{title:r("pages.index.whyWeOffer.item3.title"),desc:r("pages.index.whyWeOffer.item3.desc"),icon:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}]),S=B(()=>[{title:r("pages.index.steps.item1.title"),desc:r("pages.index.steps.item1.desc"),img:"/assets/img/step1.webp",alt:r("pages.index.steps.item1.alt")},{title:r("pages.index.steps.item2.title"),desc:r("pages.index.steps.item2.desc"),img:"/assets/img/step2.webp",alt:r("pages.index.steps.item2.alt")},{title:r("pages.index.steps.item3.title"),desc:r("pages.index.steps.item3.desc"),img:"/assets/img/step3.webp",alt:r("pages.index.steps.item3.alt")}]),C=B(()=>[{title:r("pages.index.whyTake.item1.title"),desc:r("pages.index.whyTake.item1.desc"),icon:"M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"},{title:r("pages.index.whyTake.item2.title"),desc:r("pages.index.whyTake.item2.desc"),icon:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"},{title:r("pages.index.whyTake.item3.title"),desc:r("pages.index.whyTake.item3.desc"),icon:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"}]),j=B(()=>[{title:r("pages.index.proTips.item1.title"),desc:r("pages.index.proTips.item1.desc")},{title:r("pages.index.proTips.item2.title"),desc:r("pages.index.proTips.item2.desc")},{title:r("pages.index.proTips.item3.title"),desc:r("pages.index.proTips.item3.desc")},{title:r("pages.index.proTips.item4.title"),desc:r("pages.index.proTips.item4.desc")}]),P=B(()=>[{title:r("pages.index.improveTips.item1.title"),desc:r("pages.index.improveTips.item1.desc")},{title:r("pages.index.improveTips.item2.title"),desc:r("pages.index.improveTips.item2.desc")},{title:r("pages.index.improveTips.item3.title"),desc:r("pages.index.improveTips.item3.desc")},{title:r("pages.index.improveTips.item4.title"),desc:r("pages.index.improveTips.item4.desc")}]),ne=B(()=>[{q:r("pages.index.faqs.item1.q"),a:r("pages.index.faqs.item1.a")},{q:r("pages.index.faqs.item2.q"),a:r("pages.index.faqs.item2.a")},{q:r("pages.index.faqs.item3.q"),a:r("pages.index.faqs.item3.a")},{q:r("pages.index.faqs.item4.q"),a:r("pages.index.faqs.item4.a")},{q:r("pages.index.faqs.item5.q"),a:r("pages.index.faqs.item5.a")},{q:r("pages.index.faqs.item6.q"),a:r("pages.index.faqs.item6.a")},{q:r("pages.index.faqs.item7.q"),a:r("pages.index.faqs.item7.a")}]);return(b,k)=>{const H=ji,Y=nd,F=wd;return n(),a("div",null,[re(H,{ref_key:"heroRef",ref:A},null,512),l(u)?(n(),pe(Y,{key:0,onPaywall:c})):E("",!0),l(y)?(n(),pe(F,{key:1,background:l(h),onClose:L},null,8,["background"])):E("",!0),e("section",$d,[e("div",Cd,[e("h2",Ed,[z(t(b.$t("pages.index.compareResults.title"))+" ",1),e("span",Ad,t(b.$t("pages.index.compareResults.titleHighlight")),1),z(" "+t(b.$t("pages.index.compareResults.titleSuffix")),1)]),e("p",Td,t(b.$t("pages.index.compareResults.subtitle")),1),e("div",Sd,[e("div",Dd,[e("img",{src:Jt,alt:b.$t("pages.index.sections.singleModelAlt"),class:"w-full h-auto object-cover rounded-xl border border-slate-200/60 shadow-inner"},null,8,Md)]),e("div",Bd,[e("img",{src:Ot,alt:b.$t("pages.index.sections.compareCardAlt"),class:"w-full h-auto object-cover rounded-xl border border-slate-200/60 shadow-inner"},null,8,jd)])])])]),e("header",Fd,[e("div",Pd,[e("img",{src:yd,alt:b.$t("pages.index.sections.heroBgAlt"),class:"w-full h-full object-cover"},null,8,Id),k[0]||(k[0]=e("div",{class:"absolute inset-0 bg-[#000]/40"},null,-1))]),e("div",Ld,[e("h2",Ud,t(b.$t("pages.index.sections.measure.title")),1),e("p",zd,t(b.$t("pages.index.sections.measure.body1")),1),e("p",Rd,t(b.$t("pages.index.sections.measure.body2")),1),e("a",Hd,t(b.$t("pages.index.cta.getRating")),1)])]),e("section",Jd,[e("h2",Od,t(b.$t("pages.index.sections.whyUs.title")),1),e("p",Nd,t(b.$t("pages.index.sections.whyUs.subtitle")),1),e("div",Vd,[(n(!0),a(N,null,V(l(T),(f,M)=>(n(),a("div",{key:M,class:"p-8 rounded-2xl bg-white border border-stone-200 hover:border-brand-200 shadow-sm hover:shadow-md hover:shadow-brand-900/5 transition-all duration-300 flex flex-col items-center"},[e("div",qd,[(n(),a("svg",Wd,[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:f.icon}
1,null,8,Gd)]))]),e("h3",Kd,t(f.title),1),e("p",Yd,t(f.desc),1)]))),128))]),e("a",Zd,t(b.$t("pages.index.cta.tryBest")),1)]),e("section",Qd,[e("div",Xd,[e("h2",ec,t(b.$t("pages.index.sections.howToUse.title")),1),e("p",tc,t(b.$t("pages.index.sections.howToUse.subtitle")),1),e("div",sc,[(n(!0),a(N,null,V(l(S),(f,M)=>(n(),a("div",{key:M,class:"text-left"},[e("img",{src:f.img,alt:f.alt,class:"w-full h-auto object-cover rounded-xl shadow-md border border-stone-100 mb-6"},null,8,oc),e("h3",lc,t(f.title),1),e("p",rc,t(f.desc),1)]))),128))]),e("a",nc,t(b.$t("pages.index.cta.startFree")),1)])]),e("section",ac,[e("h2",ic,t(b.$t("pages.index.sections.whyTake.title")),1),e("p",dc,t(b.$t("pages.index.sections.whyTake.subtitle")),1),e("div",cc,[(n(!0),a(N,null,V(l(C),(f,M)=>(n(),a("div",{key:M,class:"p-8 rounded-2xl bg-white border border-stone-200 hover:border-brand-200 shadow-sm hover:shadow-md hover:shadow-brand-900/5 transition-all duration-300 flex flex-col items-center"},[e("div",uc,[(n(),a("svg",pc,[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:f.icon},null,8,mc)]))]),e("h3",xc,t(f.title),1),e("p",hc,t(f.desc),1)]))),128))]),e("a",fc,t(b.$t("pages.index.cta.scoreYour")),1)]),e("section",vc,[e("div",gc,[e("div",bc,[e("h2",wc,t(b.$t("pages.index.sections.proTips.title")),1),e("p",yc,t(b.$t("pages.index.sections.proTips.subtitle")),1)]),e("div",_c,[e("div",kc,[e("img",{src:_d,alt:b.$t("pages.index.sections.proTipsAlt"),class:"w-full h-auto object-cover rounded-2xl shadow-lg shadow-brand-900/5 border border-stone-100"},null,8,$c)]),e("div",Cc,[e("ul",Ec,[(n(!0),a(N,null,V(l(j),(f,M)=>(n(),a("li",{key:M,class:"flex items-start"},[k[1]||(k[1]=e("span",{class:"w-2 h-2 mt-2 mr-4 rounded-full bg-brand-500 flex-shrink-0"},null,-1)),e("div",null,[e("div",Ac,t(f.title),1),e("p",Tc,t(f.desc),1)])]))),128))])])]),e("div",Sc,[e("a",Dc,t(b.$t("pages.index.cta.getAccurate")),1)])])]),e("section",Mc,[e("div",Bc,[e("div",jc,[e("h2",Fc,t(b.$t("pages.index.sections.improve.title")),1),e("p",Pc,t(b.$t("pages.index.sections.improve.subtitle")),1)]),e("div",Ic,[e("div",Lc,[e("ul",Uc,[(n(!0),a(N,null,V(l(P),(f,M)=>(n(),a("li",{key:M,class:"flex items-start"},[k[2]||(k[2]=e("span",{class:"w-2 h-2 mt-2 mr-4 rounded-full bg-brand-500 flex-shrink-0"},null,-1)),e("div",null,[e("div",zc,t(f.title),1),e("p",Rc,t(f.desc),1)])]))),128))])]),e("div",Hc,[e("img",{src:kd,alt:b.$t("pages.index.sections.improveAlt"),class:"w-full h-auto object-cover rounded-2xl shadow-lg shadow-brand-900/5 border border-stone-100"},null,8,Jc)])]),e("div",Oc,[e("a",Nc,t(b.$t("pages.index.cta.improveScore")),1)])])]),e("section",Vc,[e("div",qc,[e("h2",Wc,t(b.$t("pages.index.sections.faq.title")),1),e("div",Gc,[(n(!0),a(N,null,V(l(ne),(f,M)=>(n(),a("details",{key:M,open:"",class:"group border border-stone-200 bg-stone-50 rounded-xl p-6 transition-all duration-300 hover:border-brand-300 hover:shadow-md hover:shadow-brand-900/5 cursor-pointer"},[e("summary",Kc,[e("span",null,t(f.q),1),k[3]||(k[3]=e("span",{class:"transition-transform duration-300 group-open:rotate-180 text-brand-500"},[e("svg",{fill:"none",height:"24",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",viewBox:"0 0 24 24",width:"24"},[e("polyline",{points:"6 9 12 15 18 9"})])],-1))]),e("div",{class:"faq-answer text-stone-600 font-light text-sm md:text-base mt-4 leading-relaxed cursor-text [&_ol]:list-decimal [&_ol]:pl-5 [&_ol]:my-2 [&_li]:leading-relaxed",innerHTML:f.a},null,8,Yc)]))),128))])])]),e("section",Zc,[e("div",Qc,[e("h2",Xc,t(b.$t("pages.index.sections.finalCta.title")),1),e("p",eu,t(b.$t("pages.index.sections.finalCta.subtitle")),1),e("a",tu,t(b.$t("pages.index.cta.freeNow")),1)])])])}}},du=Ce(su,[["__scopeId","data-v-49ffda4b"]]);export{du 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.