"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8907],{11647:(e,t,s)=>{s.d(t,{E:()=>o});var r=s(95155);s(12115);var a=s(32467),l=s(83101),n=s(64269);let i=(0,l.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function o(e){let{className:t,variant:s,asChild:l=!1,...o}=e,d=l?a.DX:"span";return(0,r.jsx)(d,{"data-slot":"badge",className:(0,n.cn)(i({variant:s}),t),...o})}},44254:(e,t,s)=>{s.d(t,{oT:()=>a,u5:()=>r});let r={xs:12,sm:16,md:24,lg:32,xl:48},a={spinner:"animate-spin rounded-full border-2 border-current border-t-transparent",pulse:"animate-pulse bg-gray-200 rounded",skeleton:"animate-pulse bg-gray-200 rounded",dots:"flex space-x-1"}},51950:(e,t,s)=>{function r(e){let t=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],s=["0","1","2","3","4","5","6","7","8","9"];return String(e).replace(/[0-9]/g,e=>t[s.indexOf(e)]).replace(/[٠١٢٣٤٥٦٧٨٩]/g,e=>t[["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"].indexOf(e)])}function a(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return r((t?e:Math.round(e/10)).toLocaleString("fa-IR"))}function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=a(e);return t?"".concat(s," تومان"):s}s.d(t,{$g:()=>a,dy:()=>l,ub:()=>r})},56210:(e,t,s)=>{s.d(t,{LoadingSpinner:()=>n});var r=s(95155),a=s(64269),l=s(44254);function n(e){let{size:t="md",type:s="spinner",color:n,message:i,showMessage:o=!1,rtl:d=!0,className:c,show:x=!0,...m}=e;if(!x)return null;let h=l.u5[t],b=(0,r.jsx)("div",{className:(0,a.cn)(l.oT[s],"inline-block flex-shrink-0",n&&"text-".concat(n),c),style:{width:h,height:h,..."spinner"===s&&{borderWidth:"xs"===t?1:2}},...m});return o&&i?(0,r.jsxs)("div",{className:(0,a.cn)("flex items-center gap-2",d&&"flex-row-reverse"),children:[b,(0,r.jsx)("span",{className:"text-sm text-gray-600",children:i})]}):b}},76444:(e,t,s)=>{s.d(t,{J:()=>n});var r=s(95155);s(12115);var a=s(10489),l=s(64269);function n(e){let{className:t,...s}=e;return(0,r.jsx)(a.b,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...s})}},86948:(e,t,s)=>{s.d(t,{BT:()=>o,Wu:()=>d,ZB:()=>i,Zp:()=>l,aR:()=>n});var r=s(95155);s(12115);var a=s(64269);function l(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,a.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...s})}function n(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function i(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("leading-none font-semibold",t),...s})}function o(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-muted-foreground text-sm",t),...s})}function d(e){let{className:t,...s}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-6",t),...s})}},94897:(e,t,s)=>{s.d(t,{A:()=>A});var r=s(95155),a=s(12115),l=s(65229),n=s(27937),i=s(37397),o=s(8198),d=s(17181),c=s(5917),x=s(75426),m=s(20908),h=s(48314),b=s(51834),u=s(3998),p=s(62381),f=s(6490),g=s(90296),v=s(27519),j=s(26154),w=s(52987);function N(e){let{isOpen:t,onClose:s,onSelect:l,loading:n}=e,[i,o]=(0,a.useState)(null);if(!t)return null;let d=i?f.R6.find(e=>e.id===i):null,c=i?(0,f.wc)(i):[];return(0,r.jsx)("div",{className:"fixed inset-0 z-[100] flex items-end sm:items-center justify-center transition-all duration-500 ease-out animate-in fade-in-0 p-0 sm:p-4 dir-rtl text-right",children:(0,r.jsxs)("div",{className:"w-full max-w-3xl bg-slate-900/70 backdrop-blur-xl border border-slate-700/60 rounded-t-3xl sm:rounded-3xl p-4 sm:p-6 pb-[calc(5.5rem+env(safe-area-inset-bottom,0px))] sm:pb-6 shadow-2xl text-white max-h-[85vh] sm:max-h-[90vh] overflow-y-auto no-scrollbar [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden transition-all duration-500 ease-out animate-in slide-in-from-bottom-full sm:slide-in-from-bottom-8 sm:zoom-in-95",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-800 pb-3 sm:pb-4 mb-4 sm:mb-5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[i&&(0,r.jsx)("button",{onClick:()=>o(null),"aria-label":"بازگشت به انتخاب دسته",className:"p-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-amber-400 transition-all flex items-center justify-center shrink-0",children:(0,r.jsx)(w.A,{className:"w-5 h-5"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-base sm:text-xl font-bold text-amber-400",children:i?"کدوم یکی دقیقاً خودِ تویی؟ ".concat(null==d?void 0:d.icon):"فکر می‌کنی چه آرکی‌تایپ و سبک بازی‌ای داری؟ \uD83D\uDD2E"}),(0,r.jsx)("p",{className:"text-[11px] sm:text-xs text-white mt-0.5",children:i?"از بین کاراکترهای ".concat(null==d?void 0:d.title,"، اونی که بیشتر شبیهته رو انتخاب کن!"):"دسته اصلی سبک بازی خودت رو انتخاب کن تا کاراکترت رو پیدا کنیم!"})]})]}),(0,r.jsx)("button",{onClick:()=>{o(null),s()},className:"p-2 rounded-full bg-slate-800 hover:bg-slate-700 text-slate-400 hover:text-white transition-colors shrink-0",children:"✕"})]}),i?(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:c.map(e=>(0,r.jsxs)("div",{onClick:()=>!n&&l(e.id),className:"group relative p-3 sm:p-3.5 rounded-2xl border border-slate-700/70 bg-slate-800/80 hover:bg-slate-800 hover:border-amber-500/60 cursor-pointer transition-all duration-300 hover:scale-[1.02] flex items-center gap-3 shadow-md",children:[(0,r.jsx)("img",{src:e.imageUrl,alt:e.title,className:"w-14 h-14 sm:w-16 sm:h-16 rounded-xl object-cover border border-slate-700 shadow-md group-hover:scale-105 transition-transform shrink-0"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h4",{className:"font-bold text-xs sm:text-sm text-white group-hover:text-amber-400 transition-colors",children:e.title}),(0,r.jsx)("span",{className:"text-[9px] sm:text-[10px] text-slate-400 font-mono",children:e.englishTitle})]}),(0,r.jsx)("span",{className:"text-[10px] sm:text-[11px] text-amber-400/90 block mb-0.5 sm:mb-1 font-medium",children:e.subtitle}),(0,r.jsx)("p",{className:"text-[10px] text-slate-300 line-clamp-2 leading-relaxed mb-1.5",children:e.description}),(0,r.jsx)("div",{className:"flex items-center gap-1 flex-wrap",children:e.traits.map((e,t)=>(0,r.jsxs)("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-slate-900/80 text-slate-300 border border-slate-700/50",children:["• ",e]},t))})]})]},e.id))}):(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:f.R6.map(e=>(0,r.jsxs)("div",{onClick:()=>o(e.id),className:"group p-4 sm:p-5 rounded-2xl border ".concat(e.borderColor," bg-gradient-to-br ").concat(e.bgGradient," cursor-pointer transition-all duration-300 hover:scale-[1.02] shadow-lg flex flex-col justify-between"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2.5 sm:mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)("span",{className:"text-2xl sm:text-3xl",children:e.icon}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-bold text-sm sm:text-base text-white group-hover:text-amber-400 transition-colors",children:e.title}),(0,r.jsx)("span",{className:"text-[9px] sm:text-[10px] text-slate-400 tracking-wider uppercase font-semibold",children:e.englishTitle})]})]}),(0,r.jsx)("span",{className:"text-[11px] sm:text-xs px-2 sm:px-2.5 py-1 rounded-full bg-slate-800/90 text-amber-400 border border-slate-700",children:"۵ کاراکتر باحال ←"})]}),(0,r.jsx)("p",{className:"text-[11px] sm:text-xs text-slate-300 leading-relaxed",children:e.description})]},e.id))})]})})}var y=s(15050),k=s(81703);function C(e){let{isOpen:t,onClose:s,referralCode:p,onSelectedSuccess:w,initialArchetype:N,introTitle:y,resultButtonText:C}=e,[A,D]=(0,a.useState)(!1),{step:O,currentQuestion:S,activeDuel:Q,quizResult:R,progress:E,isFreshQuiz:T,feedbackSubmitted:W,celebrating:L,copiedLink:I,startQuiz:_,selectOption:B,chooseShowdownOption:F,submitFeedback:H,shareChallenge:U,resetQuiz:z,resetToInitial:M}=(0,g.D)({initialReferralCode:p,initialArchetype:N,onRequireLogin:()=>{D(!0)}}),$=(0,a.useRef)(!1);(0,a.useEffect)(()=>{t&&!$.current&&M(),$.current=t},[t,M]);let G=()=>{let e=(null==R?void 0:R.winnerArchetype)||N;e&&w&&w(e),M(),s()};(0,a.useEffect)(()=>{if(!t)return;let e=e=>{if("Q1"===O||"Q2"===O||"Q3"===O||"Q4"===O||"Q5"===O){let t=parseInt(e.key,10);if(t>=1&&(null==S?void 0:S.options)&&t<=S.options.length){let e=S.options[t-1];e&&B(S.id,e.id)}}else"SHOWDOWN"===O&&Q&&("1"===e.key&&F(Q.archetypeA),"2"===e.key&&F(Q.archetypeB))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,O,S,Q,B,F]);let P=(null==R?void 0:R.winnerArchetype)?f.aK[R.winnerArchetype]:null,Z=(null==R?void 0:R.category)?f.R6.find(e=>e.id===R.category):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.lG,{open:t,onOpenChange:e=>!e&&G(),children:(0,r.jsxs)(b.Cf,{className:"flex flex-col w-[calc(100%-2rem)] sm:w-full sm:max-w-2xl min-w-0 max-w-full bg-slate-900/90 backdrop-blur-2xl border border-slate-700/60 rounded-3xl p-4 sm:p-7 shadow-2xl text-white max-h-[90vh] overflow-y-auto overflow-x-hidden no-scrollbar [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden dir-rtl",showCloseButton:!1,children:[(0,r.jsx)(j.A,{active:L}),(0,r.jsxs)("div",{className:"w-full min-w-0 flex items-center justify-between border-b border-slate-800 pb-3 mb-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,r.jsx)("span",{className:"text-xl shrink-0",children:"\uD83D\uDD2E"}),(0,r.jsx)("div",{className:"min-w-0 flex-1",children:(0,r.jsxs)("h3",{className:"text-sm sm:text-base font-bold text-amber-400 truncate",children:["INTRO"===O&&(y||"کشف آرکی‌تایپ اعضا"),("Q1"===O||"Q2"===O)&&"سنجش شاخه کلان ذهنی",("Q3"===O||"Q4"===O||"Q5"===O)&&"سنجش تخصصی ".concat((null==Z?void 0:Z.title)||"سبک بازی"),"SHOWDOWN"===O&&"دوئل سرنوشت‌ساز حل تساوی ⚔️","RESULT"===O&&"کارت کاراکتر کشف‌شده شما ✨"]})})]}),(0,r.jsx)("button",{onClick:G,"aria-label":"بستن",className:"p-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-400 hover:text-white transition-colors shrink-0 mr-2",children:(0,r.jsx)(l.A,{className:"w-5 h-5"})})]}),"INTRO"!==O&&"RESULT"!==O&&(0,r.jsxs)("div",{className:"w-full min-w-0 mb-5 space-y-1.5",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-[11px] sm:text-xs text-slate-400 font-medium",children:[(0,r.jsx)("span",{children:"SHOWDOWN"===O?"دوئل نهایی":"سوال ".concat(E.current," از ").concat(E.total)}),(0,r.jsx)("span",{children:"SHOWDOWN"===O?"۱۰۰٪":"".concat(E.percentage,"٪")})]}),(0,r.jsx)("div",{className:"w-full h-2 rounded-full bg-slate-800 overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-gradient-to-r from-amber-500 to-orange-500 rounded-full transition-all duration-500 ease-out",style:{width:"".concat("SHOWDOWN"===O?100:E.percentage,"%")}})})]}),"INTRO"===O&&(0,r.jsx)(v.F,{referralCode:p,onStart:_,onClose:G}),("Q1"===O||"Q2"===O||"Q3"===O||"Q4"===O||"Q5"===O)&&S&&(0,r.jsxs)("div",{className:"w-full min-w-0 space-y-4 animate-in fade-in-0 slide-in-from-bottom-3 duration-300",children:[(0,r.jsxs)("div",{className:"space-y-1 text-right",children:[(0,r.jsx)("span",{className:"text-[11px] sm:text-xs text-amber-400 font-semibold px-2.5 py-0.5 rounded-full bg-amber-500/10 border border-amber-500/20 inline-block mb-1",children:S.subtitle||"مرحله ".concat(E.current)}),(0,r.jsx)("h2",{className:"text-base sm:text-lg md:text-xl font-bold text-white leading-snug",children:S.title})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-2.5 pt-2 w-full min-w-0",children:S.options.map((e,t)=>(0,r.jsxs)("button",{onClick:()=>B(S.id,e.id),className:"group relative w-full min-w-0 p-3.5 sm:p-4 rounded-2xl bg-slate-800/80 hover:bg-slate-800 border border-slate-700/70 hover:border-amber-500/60 transition-all duration-200 hover:scale-[1.01] text-right flex items-center justify-between shadow-md",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,r.jsx)("span",{className:"w-6 h-6 sm:w-7 sm:h-7 rounded-lg bg-slate-900/90 border border-slate-700 text-slate-400 group-hover:text-amber-400 group-hover:border-amber-500/40 text-xs font-mono font-bold flex items-center justify-center shrink-0",children:t+1}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-slate-200 group-hover:text-white leading-relaxed break-words",children:e.text})]}),(0,r.jsx)(n.A,{className:"w-4 h-4 text-slate-500 group-hover:text-amber-400 transition-colors shrink-0 mr-2"})]},e.id))})]}),"SHOWDOWN"===O&&Q&&(0,r.jsxs)("div",{className:"w-full min-w-0 space-y-5 animate-in fade-in-0 zoom-in-95 duration-300 text-center",children:[(0,r.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-red-500/15 border border-red-500/30 text-red-400 text-xs font-bold",children:[(0,r.jsx)(i.A,{className:"w-4 h-4 text-red-400 shrink-0"}),(0,r.jsx)("span",{children:"دوئل حل تساوی امتیازات"})]}),(0,r.jsxs)("div",{className:"space-y-1 text-right",children:[(0,r.jsx)("h2",{className:"text-base sm:text-lg font-bold text-white",children:Q.scenario}),(0,r.jsx)("p",{className:"text-xs text-slate-300",children:"امتیازات دو کاراکتر برابر شد! برای تعیین قطعی کارت نهایی، گزینه‌ای که بیشتر به روحیاتت نزدیکه رو انتخاب کن:"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 pt-2 w-full min-w-0",children:[(0,r.jsxs)("button",{onClick:()=>F(Q.archetypeA),className:"group min-w-0 p-4 rounded-2xl bg-gradient-to-br from-slate-800 to-slate-900 border border-slate-700 hover:border-amber-500/80 hover:scale-[1.02] transition-all text-right space-y-2 shadow-lg",children:[(0,r.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded bg-amber-500/20 text-amber-300 font-bold",children:"گزینه ۱"}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-slate-200 group-hover:text-white leading-relaxed font-medium",children:Q.optionA})]}),(0,r.jsxs)("button",{onClick:()=>F(Q.archetypeB),className:"group min-w-0 p-4 rounded-2xl bg-gradient-to-br from-slate-800 to-slate-900 border border-slate-700 hover:border-amber-500/80 hover:scale-[1.02] transition-all text-right space-y-2 shadow-lg",children:[(0,r.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded bg-amber-500/20 text-amber-300 font-bold",children:"گزینه ۲"}),(0,r.jsx)("p",{className:"text-xs sm:text-sm text-slate-200 group-hover:text-white leading-relaxed font-medium",children:Q.optionB})]})]})]}),"RESULT"===O&&P&&R&&(0,r.jsxs)("div",{className:"w-full min-w-0 space-y-5 animate-in fade-in-0 zoom-in-95 duration-400",children:[(0,r.jsx)("div",{className:"w-full min-w-0 p-4 sm:p-5 rounded-3xl bg-gradient-to-br from-slate-800/90 via-slate-900 to-slate-950 border border-amber-500/40 shadow-2xl relative overflow-hidden",children:(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row items-center sm:items-start gap-4 text-center sm:text-right",children:[(0,r.jsx)("img",{src:P.imageUrl,alt:P.title,className:"w-24 h-24 sm:w-28 sm:h-28 rounded-2xl object-cover border-2 border-amber-400/60 shadow-xl shrink-0"}),(0,r.jsxs)("div",{className:"space-y-1.5 flex-1 min-w-0 w-full",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center sm:justify-between flex-wrap gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-xl font-black text-amber-400",children:P.title}),(0,r.jsxs)("span",{className:"text-xs font-mono text-slate-400 uppercase",children:["(",P.englishTitle,")"]})]}),(0,r.jsxs)("span",{className:"px-2.5 py-0.5 rounded-full bg-amber-500/20 text-amber-300 border border-amber-500/30 text-xs font-bold flex items-center gap-1 shrink-0",children:[(0,r.jsx)(o.A,{className:"w-3.5 h-3.5 text-amber-400"}),(0,r.jsxs)("span",{children:["تطابق ",R.matchPercentage,"٪"]})]})]}),(0,r.jsx)("p",{className:"text-xs text-amber-300/90 font-medium",children:P.subtitle}),(0,r.jsx)("p",{className:"text-xs text-slate-300 leading-relaxed line-clamp-3",children:P.description}),(0,r.jsx)("div",{className:"flex items-center justify-center sm:justify-start gap-1.5 flex-wrap pt-1",children:P.traits.map((e,t)=>(0,r.jsxs)("span",{className:"text-[10px] px-2 py-0.5 rounded-lg bg-slate-800 text-slate-300 border border-slate-700/60",children:["• ",e]},t))})]})]})}),(0,r.jsxs)("div",{className:"w-full min-w-0 p-3.5 sm:p-4 rounded-2xl bg-slate-800/60 border border-slate-700/60 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-xs sm:text-sm font-bold text-white",children:[(0,r.jsx)(d.A,{className:"w-4 h-4 text-amber-400 shrink-0"}),(0,r.jsx)("span",{children:"دوستانت رو به چالش بکش!"})]}),(0,r.jsx)("span",{className:"text-[10px] text-slate-400",children:"لینک اختصاصی چالش"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 w-full min-w-0",children:[(0,r.jsxs)(u.$,{onClick:()=>U(p||void 0),className:"w-full h-10 bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-slate-950 font-bold rounded-xl text-xs flex items-center justify-center gap-2 shadow-md",children:[(0,r.jsx)(d.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"ارسال چالش به دوستان \uD83D\uDE80"})]}),(0,r.jsx)(u.$,{onClick:()=>U(p||void 0),className:"w-full h-10 bg-slate-800/90 hover:bg-slate-700/90 text-slate-100 hover:text-white border border-slate-700 hover:border-slate-600 font-medium rounded-xl text-xs flex items-center justify-center gap-2 transition-all shadow-sm",children:I?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{className:"w-4 h-4 text-emerald-400"}),(0,r.jsx)("span",{className:"text-emerald-400 font-bold",children:"لینک کپی شد!"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{className:"w-4 h-4 text-slate-300"}),(0,r.jsx)("span",{className:"text-slate-100",children:"کپی لینک مستقیم"})]})})]})]}),T&&!W&&(0,r.jsxs)("div",{className:"w-full min-w-0 p-3.5 sm:p-4 rounded-2xl bg-slate-800/40 border border-slate-700/40 text-center space-y-2.5 animate-in fade-in-0 duration-300",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center gap-1.5 text-xs text-slate-300 font-medium",children:[(0,r.jsx)(m.A,{className:"w-4 h-4 text-amber-400 shrink-0"}),(0,r.jsx)("span",{children:"آیا این نتیجه با سبک واقعی شما تطابق دارد؟"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 flex-wrap",children:[(0,r.jsx)("button",{onClick:()=>H("EXACT"),className:"px-3 py-1.5 rounded-xl bg-emerald-950/60 hover:bg-emerald-900 border border-emerald-500/40 text-emerald-300 text-xs font-medium transition-all hover:scale-105",children:"\uD83C\uDFAF دقیقاً خودمم!"}),(0,r.jsx)("button",{onClick:()=>H("PARTIAL"),className:"px-3 py-1.5 rounded-xl bg-sky-950/60 hover:bg-sky-900 border border-sky-500/40 text-sky-300 text-xs font-medium transition-all hover:scale-105",children:"\uD83D\uDC4D تا حدی"}),(0,r.jsx)("button",{onClick:()=>H("MISMATCH"),className:"px-3 py-1.5 rounded-xl bg-rose-950/60 hover:bg-rose-900 border border-rose-500/40 text-rose-300 text-xs font-medium transition-all hover:scale-105",children:"❌ اشتباهه"})]})]}),(0,r.jsxs)("div",{className:"w-full min-w-0 flex items-center justify-between pt-1",children:[(0,r.jsxs)("button",{onClick:z,className:"text-xs text-slate-400 hover:text-amber-400 transition-colors flex items-center gap-1",children:[(0,r.jsx)(h.A,{className:"w-3.5 h-3.5"}),(0,r.jsx)("span",{children:"آزمون مجدد"})]}),(0,r.jsx)(u.$,{onClick:G,className:"px-6 h-10 rounded-xl font-bold text-xs shadow-md transition-all active:scale-95 flex items-center gap-1.5 ".concat(w?"bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-slate-950 shadow-amber-500/20":"bg-slate-800 hover:bg-slate-700 text-white"),children:(0,r.jsx)("span",{children:C||(w?"ثبت و ادامه مسیر \uD83D\uDE80":"بستن و بازگشت")})})]})]})]})}),(0,r.jsx)(k.G,{isOpen:A,onClose:()=>D(!1),title:"ورود به حساب کاربری",description:"برای ثبت رسمی کاراکتر بر روی پروفایل و ذخیره امتیازات، لطفاً وارد حساب خود شوید.",referralCode:p})]})}function A(e){return p.P.ENABLE_DYNAMIC_QUIZ?(0,r.jsx)(y.a,{onReset:e.onClose,children:(0,r.jsx)(C,{...e})}):(0,r.jsx)(N,{isOpen:e.isOpen,onClose:e.onClose,onSelect:t=>{e.onSelectedSuccess&&e.onSelectedSuccess(t)},loading:!1})}}}]);