1import{A as Be}from"./BDJFKRVi.js";import{g as z,S as qe,L as Ue}from"./CnSnONVu.js";import{a1 as Ve,d as Z,o as s,h as r,t as k,i as g,k as e,R as Q,p as V,_ as ee,U as me,l as w,A as re,y as H,e as ue,M as ge,z as he,N as Re,b as M,j as P,Q as be,m as t,S as Fe,F,r as E,C as Y,D as N,n as X,O as ye,P as Ce,x as Oe,W as Pe,J as de,T as je,f as Ne,w as He,B as _e,a as Me,a7 as Ee}from"./QJre-PsH.js";import{u as ke}from"./CgDj6rrw.js";import{B as ze}from"./DR3Ate2j.js";import{B as Te}from"./CHps-Mb2.js";import{B as We}from"./CWXXeE93.js";import{B as Ke}from"./HDGNBR0W.js";import{K as Ge}from"./HwSmxQd7.js";import{K as Je}from"./CEvb9rPJ.js";import{n as Qe,U as se,e as oe,f as Xe,d as te,h as xe,a as J,j as Ye,k as T,i as G,b as le,g as W}from"./DZl7w66e.js";import{B as ve}from"./DLoQi4Os.js";import{B as pe}from"./B756xE6l.js";import{u as Ze}from"./BKGXCE4B.js";class fe extends Ve{constructor(c,v){super(c,v)}async getSupportCallTimes(){return await this.get("/v2/users/profile/support-calls-times")}async selectSupportCallTime(c,v){return await this.post("/v2/users/profile/support-calls-times",{date:c,time:v})}}class et extends Be{constructor(c,v){super(c,v)}async getFaq(c){const v=`/v1/faq/${c}`;return await this.get(v)}}const tt={key:0,class:"comparison-table__text"},lt={key:1,class:"comparison-table__check"},at={key:2,class:"comparison-table__deny"},nt=Z({__name:"ComparisonCell",props:{cell:{}},setup(u){return(c,v)=>u.cell.type==="text"?(s(),r("span",tt,k(u.cell.value),1)):u.cell.type==="check"?(s(),r("span",lt,[g(e(Q),{name:"icon-tick-fill",size:"20",color:"text-brand--icn"}),V(" "+k(u.cell.value),1)])):(s(),r("span",at,[g(e(Q),{name:"icon-close-fill",size:"20",color:"text-de-primary--icn"}),v[0]||(v[0]=V(" ÙØ¯Ø§Ø±Ø¯ ",-1))]))}}),ie=Object.assign(ee(nt,[["__scopeId","data-v-8206f3c9"]]),{__name:"ComparisonCell"});function Le(){const u=me(),c=w(()=>{const h=u.getUserProfile;return h?.user?.id?h:null}),v=w(()=>c.value?.status),l=w(()=>!!c.value?.user?.is_foreign_national),U=w(()=>!u.isLogin||!c.value?null:Qe(c.value.status.progress)),$=w(()=>u.isLogin);return{getUserProfile:c,getUserStatus:v,getIsForeignUser:l,getUserProgress:U,getIsLogin:$}}const st=u=>u?u.startsWith("0")?`${u.slice(0,4)}****${u.slice(-3)}`:`${u.slice(0,3)}****${u.slice(-3)}`:"â",ot=u=>u?`${u.slice(0,3)}****${u.slice(-3)}`:"â";function it(u){const c=ue(),{formatNumberScale:v}=ke(),{getUserProfile:l,getUserStatus:U,getIsForeignUser:$,getUserProgress:h,getIsLogin:L}=Le(),S=H(!1),I=H(!1),b=()=>c.public.DOMAIN_DASHBOARD_URL,A=a=>{const{user:n}=a,i=n.is_foreign_national?n.foreign_national_code:n.national_code;return{variant:"rejected",hint:"Ø¨Ø±Ø§Û ÙØ¹Ø§Ù Ø´Ø¯Ù Ø³Ø·Ø Ù¾Ø§ÛÙØ Ø´Ù
ار٠Ù
ÙØ¨Ø§ÛÙ Ø¨Ø§ÛØ¯ Ø¨Ù ÙØ§Ù
Ø´Ù
ا Ù Ù
طاب٠با کد Ù
ÙÛ Ø«Ø¨Øª شد٠باشد.",hintIcon:"icon-close-fill",hintIconColor:"text-error--icn",lineInfo:[{label:"کد Ù
ÙÛ:",value:ot(i)},{label:"Ø´Ù
ار٠Ù
ÙØ¨Ø§ÛÙ:",value:st(n.mobile)}],buttonLabel:"Ø§ØµÙØ§Ø Ø§Ø·ÙØ§Ø¹Ø§Øª",opensEditDialog:!0}},O=()=>({variant:"success",hint:"Ø¨Ù Ø³Ø·Ø Ù¾ÛØ´Ø±ÙØªÙ Ø§Ø±ØªÙØ§ ÛØ§ÙØªÛØ¯",hintDescription:"ØØ³Ø§Ø¨ Ø´Ù
ا اکÙÙ٠در Ø³Ø·Ø Ù¾ÛØ´Ø±ÙØªÙ ÙØ¹Ø§Ù است Ù Ù
ÛâØªÙØ§ÙÛØ¯ از اÙ
Ú©Ø§ÙØ§Øª اÛÙ Ø³Ø·Ø Ø§Ø³ØªÙØ§Ø¯Ù Ú©ÙÛØ¯.",hintIcon:"icon-tick-fill",hintIconColor:"text-brand--icn",buttonLabel:"بازگشت Ø¨Ù Ø¯Ø§Ø´Ø¨ÙØ±Ø¯",buttonHref:b(),buttonColor:"neutral"}),R=()=>({variant:"rejected",hint:"Ù
دارک ارساÙÛ ÙØ§Ø¨Ù تاÛÛØ¯ ÙØ¨Ùد. ÙØ·Ùا٠تصÙÛØ± ÛØ§ ÙÛØ¯Ø¦Ù را Ù
طاب٠راÙÙÙ
ا Ù
جددا٠ارسا٠کÙÛØ¯.",hintIcon:"icon-close-fill",hintIconColor:"text-error--icn",buttonLabel:"Ø§ØµÙØ§Ø Ù
دارک",buttonHref:c.public.DOMAIN_SSO_URL+"/verify-status/"}),p=w(()=>!!l.value?.user?.has_active_card),o=(a,n)=>a?W(n,a)?1:n===se.ADVANCED_COMPLETE||a.status_level>=2?2:G(n)?0:T(n,a)?1:0:0,D=(a,n,i)=>te(a)?2:G(a)||J(a)?1:W(a,i)||T(a,i)?2:le(a)?1:n,x=w(()=>L.value?o(l.value?.status,h.value):null),d=(a,n)=>{const{status:i,user:m}=a;if(i.status===3)return null;if(oe(n))return{hint:"Ø¨Ø±Ø§Û ØªØ§ÛÛØ¯ Ø³Ø·Ø Ù¾ÛØ´Ø±Ùت٠زÙ
ا٠Ù
ÙØ±Ø¯Ùظر Ø®ÙØ¯ Ø¨Ø±Ø§Û ØªÙ
اس Ù¾Ø´ØªÛØ¨Ø§Ù را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯.",buttonLabel:"Ø§ÙØªØ®Ø§Ø¨ زÙ
ا٠تÙ
اس",opensSupportCallDialog:!0};if(Xe(n))return{hint:"در Ø§ÙØªØ¸Ø§Ø± تÙ
اس تÙÙÙÛ",buttonLabel:"بازگشت Ø¨Ù Ø¯Ø§Ø´Ø¨ÙØ±Ø¯",buttonHref:b(),buttonColor:"neutral"};if(te(n)||i.status_level>=2)return O();if(xe(n))return R();if(J(n))return A(a);if(Ye(n,i))return{hint:"Ù
دارک Ø´Ù
ا با Ù
ÙÙÙÛØª Ø¯Ø±ÛØ§Ùت شد ٠در ØØ§Ù Ø¨Ø±Ø±Ø³Û Ø§Ø³Øª. ÙØªÛج٠از طرÛÙ Ù¾ÛØ§Ù
Ú© Ø¨Ø±Ø§Û Ø´Ù
ا ارسا٠Ù
ÛâØ´ÙØ¯.",buttonLabel:"بازگشت Ø¨Ù Ø¯Ø§Ø´Ø¨ÙØ±Ø¯",buttonHref:b(),buttonColor:"neutral"};if(T(n,i)){const C=m.is_foreign_national?"/confirm-identity/":"/verification-method/";return{hint:"با ارسا٠تصÙÛØ± ÛØ§ ضبط ÙÛØ¯Ø¦ÙÛ ÙÙ
1ÛØªÛ Ø³Ø·Ø Ù¾ÛØ´Ø±Ùت٠را ÙØ¹Ø§Ù Ú©ÙÛØ¯.",lineInfo:[{label:"زÙ
ا٠Ù
ÙØ±Ø¯ ÙÛØ§Ø²:",value:"ØØ¯Ùدا Ûµ دÙÛÙÙ"}],buttonLabel:"Ø§Ø±ØªÙØ§ Ø¨Ù Ø³Ø·Ø Ù¾ÛØ´Ø±ÙتÙ",buttonHref:c.public.DOMAIN_SSO_URL+C}}return G(n)?{hint:"Ø´Ù
ار٠Ù
ÙØ¨Ø§ÛÙ Ø¨Ø±Ø§Û ØªØ·Ø§Ø¨Ù Ø¨Ø§ کد Ù
ÙÛ Ø¯Ø± ØØ§Ù Ø¨Ø±Ø±Ø³Û Ø§Ø³Øª. ÙØªÛج٠تا Ø¯ÙØ§ÛÙÛ Ø¯Ûگر از طرÛÙ Ù¾ÛØ§Ù
Ú© Ø¨Ø±Ø§Û Ø´Ù
ا ارسا٠Ù
ÛâØ´ÙØ¯.",buttonLabel:"بازگشت Ø¨Ù Ø¯Ø§Ø´Ø¨ÙØ±Ø¯",buttonHref:b(),buttonColor:"neutral"}:le(n)?{hint:"Ø¨Ø±Ø§Û ÙØ¹Ø§Ù Ø´Ø¯Ù Ø³Ø·Ø Ù¾Ø§ÛÙØ Ø§Ø·ÙØ§Ø¹Ø§Øª ÙÙÛØªÛ Ø®ÙØ¯ را ÙØ§Ø±Ø¯ Ú©ÙÛØ¯.",buttonLabel:"تکÙ
ÛÙ Ø§Ø·ÙØ§Ø¹Ø§Øª",buttonHref:c.public.DOMAIN_SSO_URL+"/user-information/"}:i.status_detail===4?A(a):{hint:"Ø¨Ø±Ø§Û ÙØ¹Ø§ÙâØ³Ø§Ø²Û Ø¨Ø±Ø¯Ø§Ø´Øª تÙÙ
Ø§Ù Ù Ø¯Ø³ØªØ±Ø³Û Ø¨Ù Ø§Ù
Ú©Ø§ÙØ§Øª Ø¨ÛØ´ØªØ±Ø Ø§ØØ±Ø§Ø² ÙÙÛØª پاÛ٠را تکÙ
ÛÙ Ú©ÙÛØ¯.",buttonLabel:"تکÙ
ÛÙ Ø§ØØ±Ø§Ø² ÙÙÛØª",buttonHref:c.public.DOMAIN_SSO_URL+"/user-information/"}},f=w(()=>L.value?l.value?d(l.value,h.value):null:{hint:"Ø¨Ø±Ø§Û Ù
Ø´Ø§ÙØ¯Ù Ø³Ø·Ø Ú©Ø§Ø±Ø¨Ø±Û Ù Ø¯Ø³ØªØ±Ø³Û Ø¨Ù Ø§Ù
Ú©Ø§ÙØ§Øª ØØ³Ø§Ø¨ Ø®ÙØ¯ ÙØ§Ø±Ø¯ Ø´ÙÛØ¯.",buttonLabel:"ÙØ±Ùد ÛØ§ ثبتâÙØ§Ù
",buttonHref:c.public.DOMAIN_SSO_URL}),j=(a,n,i)=>{if($.value&&(T(n,i)||te(n))){if(a===1)return[{text:"ÙØ§Ø±Ûز ÙØ§Ù
ØØ¯Ùد ارز Ø¯ÛØ¬Ûتا٠٠تÙÙ
اÙ"},{text:"Ù
عاÙ
ÙÙ ÙØ§Ù
ØØ¯Ùد"}];if(a===2)return[{text:"ÙØ§Ø±Ûز Ù Ù
عاÙ
ÙÙ ÙØ§Ù
ØØ¯Ùد"},{text:"برداشت تÙÙ
Ø§Ù Ø±ÙØ²Ø§Ù٠تا ",highlight:v(z(u.value,$.value,2,"max_irt_withdraw_amount"))}]}return a===0?[{text:"ÙØ§Ø±Ûز ÙØ§Ù
ØØ¯Ùد ارز Ø¯ÛØ¬ÛتاÙ"},{text:"Ù
عاÙ
ÙÙ ÙØ§Ù
ØØ¯Ùد"}]:a===1?[{text:"برداشت تÙÙ
Ø§Ù Ø±ÙØ²Ø§Ù٠تا ",highlight:v(z(u.value,$.value,1,"max_irt_withdraw_amount"))},{text:"برداشت ارز Ø±ÙØ²Ø§Ù٠تا ",highlight:v(z(u.value,$.value,1,"max_crypto_withdraw_amount")),suffix:" تÙÙ
اÙ"}]:[{text:"برداشت تÙÙ
Ø§Ù Ø±ÙØ²Ø§Ù٠تا ",highlight:v(z(u.value,$.value,2,"max_irt_withdraw_amount"))},{text:"برداشت ارز Ø±ÙØ²Ø§Ù٠تا ",highlight:v(z(u.value,$.value,2,"max_crypto_withdraw_amount")),suffix:" تÙÙ
اÙ"}]},ae=(a,n,i,m)=>{const C=x.value;if(C!==null&&C>=2&&a<C||a===0&&(C===0||C===1&&(T(i,m)||W(i,m)))||a===1&&C===1&&(T(i,m)||W(i,m)))return"muted";if(n!==a)return"default";if(a===1&&J(i))return"error";if(a===1&&G(i))return"pending";if(a===2){const B=W(i,m);if(B==="rejected")return"error";if(B==="need-support-call"||B==="waiting-support-call"||B==="under-review")return"pending"}return a===n?"success":"default"},ne=(a,n,i,m,C)=>{if(a===0)return n===0&&(le(m)||G(m)||J(m))?{title:"Ø³Ø·Ø Ù¾ÛØ´âÙØ±Ø¶ (Ø³Ø·Ø ÙØ¹ÙÛ Ø´Ù
ا)"}:{title:"Ø³Ø·Ø Ù¾ÛØ´âÙØ±Ø¶"};if(a===1)return le(m)&&i===1?{title:"Ø³Ø·Ø Ù¾Ø§ÛÙ (Ø¢Ù
Ø§Ø¯Ù Ø§Ø±ØªÙØ§)",badge:"ÙÛØ§Ø² ب٠تکÙ
ÛÙ Ø§Ø·ÙØ§Ø¹Ø§Øª"}:G(m)&&i===1?{title:"Ø³Ø·Ø Ù¾Ø§ÛÙ",badge:"در ØØ§Ù بررسÛ"}:J(m)&&i===1?{title:"Ø³Ø·Ø Ù¾Ø§ÛÙ",badge:"ÙÛØ§Ø² Ø¨Ù Ø§ØµÙØ§Ø Ø§Ø·ÙØ§Ø¹Ø§Øª"}:n===1&&(T(m,C)||W(m,C))?{title:"Ø³Ø·Ø Ù¾Ø§ÛÙ (Ø³Ø·Ø ÙØ¹ÙÛ Ø´Ù
ا)"}:{title:"Ø³Ø·Ø Ù¾Ø§ÛÙ"};if(i===2){const B=W(m,C);if(B==="rejected")return{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±ÙتÙ",badge:"ÙÛØ§Ø² Ø¨Ù Ø§ØµÙØ§Ø Ù
دارک"};if(B==="need-support-call")return{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±ÙتÙ",badge:"ÙÛØ§Ø² ب٠تÙ
اس تÙÙÙÛ"};if(B==="waiting-support-call")return{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±ÙتÙ",badge:"در Ø§ÙØªØ¸Ø§Ø± تÙ
اس تÙÙÙÛ"};if(B==="under-review")return{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±ÙتÙ",badge:"در ØØ§Ù بررسÛ"}}return(te(m)||n!==null&&n>=2)&&i===2?{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±Ùت٠(Ø³Ø·Ø ÙØ¹ÙÛ Ø´Ù
ا)"}:T(m,C)&&i===2?{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±Ùت٠(Ø¢Ù
Ø§Ø¯Ù Ø§Ø±ØªÙØ§)"}:{title:"Ø³Ø·Ø Ù¾ÛØ´Ø±Ùت٠(Ø³Ø·Ø Ø¨Ø¹Ø¯Û)"}},y=(a,n,i,m)=>{if(a===0)return{icon:"icon-user-profile",illusColor:"neutral"};if(a===1)return J(n)&&i===1?{icon:"icon-user-success",illusColor:"error"}:G(n)&&i===1?{icon:"icon-user-success",illusColor:"black"}:{icon:"icon-user-success",illusColor:"brand-sec"};if(i===2){const C=W(n,m);
1if(C==="rejected")return{icon:"icon-tick-blue",illusColor:"error"};if(C==="need-support-call"||C==="waiting-support-call"||C==="under-review")return{icon:"icon-tick-blue",illusColor:"black"}}return{icon:"icon-tick-blue",illusColor:"primary"}},_=w(()=>l.value?.user?.mobile?.trim()??""),q=()=>{oe(h.value)&&(I.value=!0)};re(h,a=>{oe(a)&&q()});const K=w(()=>{const a=x.value,n=h.value,i=U.value,m=L.value?D(n,a??0,i):null,C=B=>{const Se=j(B,n,i),{title:we,badge:Ie}=ne(B,a,m,n,i),{icon:De,illusColor:$e}=y(B,n,m,i),Ae=ae(B,m,n,i);return{slug:B,title:we,badge:Ie,icon:De,illusColor:$e,highlighted:m===B,visualState:Ae,features:Se}};return[C(0),C(1),C(2)]}),ce=(a,n)=>a!==1?!1:n!==null&&n>=se.UPGRADE_LEVEL&&n<=se.ADVANCED_COMPLETE;return{getLevelCards:K,getLevelCardsCta:f,getUserProgress:h,getHasActiveCard:p,showEditInformationDialog:S,showScheduleSupportCallDialog:I,getSupportCallContactPhone:_,getBadgeColors:a=>a==="pending"?{contentColor:"text-de-secondary--txt",backgroundColor:"bg-neutral-tonal--bg"}:a==="error"?{contentColor:"text-error--txt",backgroundColor:"bg-error-tonal--bg"}:{contentColor:"text-de-secondary--txt",backgroundColor:"bg-neutral-tonal--bg"},getFeatureIconColor:(a,n,i)=>n==="muted"||ce(a,i)?"text-de-secondary--icn":"text-brand--icn",shouldUseMutedFeatureHighlight:ce}}const rt={class:"schedule-support-call-dialog__body"},ut={key:0,class:"schedule-support-call-dialog__loading"},ct={class:"schedule-support-call-dialog__fields"},dt={class:"schedule-support-call-dialog__description"},_t={class:"schedule-support-call-dialog__field"},vt={key:0,class:"schedule-support-call-dialog__field"},pt={class:"schedule-support-call-dialog__actions"},ft=Z({__name:"ScheduleSupportCallDialog",props:Ce({contactPhone:{default:""}},{modelValue:{default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(u){const c=u,v=ge(u,"modelValue"),l=ue(),U=me(),$=he(),{$toast:h}=Re(),L=H({}),S=H(!1),I=H(!1),b=H(null),A=H(null),O=w(()=>$.breakpoints.smAndDown?"bottom-sheet":"modal"),R=w(()=>Object.entries(L.value).map(([y,_])=>({id:y,label:_.date_info.date}))),p=w(()=>{if(!b.value)return[];const y=L.value[b.value];return y?y.hours.map(_=>({id:_.id,label:_.hour,disabled:_.complete})):[]}),o=w(()=>`ØªØ§Ø±ÛØ® ٠زÙ
Ø§Ù Ø¨Ø±ÙØ±Ø§Ø±Û تÙ
اس را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯. (تÙ
اس با Ø´Ù
ار٠${c.contactPhone?.trim()||"â"})`),D=w(()=>!!b.value&&A.value!=null&&!S.value&&!I.value),x=()=>{b.value=null,A.value=null},d=()=>{v.value=!1},f=y=>{L.value=y?.time_slots??{};const _=R.value[0];_&&(b.value=_.id)},j=async()=>{S.value=!0;try{const{success:y,data:_}=await new fe(l).getSupportCallTimes();if(!y||!_){L.value={};return}f({time_slots:_.time_slots})}catch(y){L.value={},console.error("Error in fetch support call times api",y)}finally{S.value=!1}},ae=async()=>{const{success:y,data:_}=await new qe(l).getUserProfileStatus();y&&_&&U.setUserProfile(_)},ne=async()=>{if(!(!D.value||b.value==null||A.value==null)){I.value=!0;try{const{success:y,message:_,errors:q}=await new fe(l).selectSupportCallTime(b.value,A.value);if(!y){const K=q?.time?.[0]||q?.date?.[0]||_;h({size:"sm",title:"خطاÛÛ Ø±Ø® داد٠است.",content:K,color:"error",hasIcon:!0,dismiss:!0});return}await ae(),d()}catch(y){console.error("Error in submit support call time",y)}finally{I.value=!1}}};return re(b,()=>{A.value=null}),re(v,y=>{if(x(),y){j();return}L.value={}}),(y,_)=>(s(),M(e(ye),{modelValue:v.value,"onUpdate:modelValue":_[2]||(_[2]=q=>v.value=q),mode:e(O),"content-class":"md:!rounded-xl !w-full md:!max-w-[420px]","data-selenium":"identity_level_schedule_support_call_dialog"},{default:P(()=>[g(e(be),{title:"تعÛÛ٠زÙ
ا٠تÙ
اس","trailing-icon2":"icon-close",class:"schedule-support-call-dialog__header","data-selenium":"identity_level_schedule_support_call_dialog_header",onSecondTrailingBtn:d}),t("div",rt,[e(S)?(s(),r("div",ut,[g(e(Fe),{color:"var(--b-brand-a--bg)",width:32,height:32})])):(s(),r(F,{key:1},[t("div",ct,[t("p",dt,k(e(o)),1),t("div",_t,[_[3]||(_[3]=t("p",{class:"schedule-support-call-dialog__field-label"},"ØªØ§Ø±ÛØ®",-1)),g(e(pe),{class:"schedule-support-call-dialog__chips","hide-overlays":""},{default:P(()=>[(s(!0),r(F,null,E(e(R),q=>(s(),M(e(ve),{key:q.id,modelValue:e(b),"onUpdate:modelValue":_[0]||(_[0]=K=>Y(b)?b.value=K:null),value:q.id,title:q.label,size:"40",variant:"rounded"},null,8,["modelValue","value","title"]))),128))]),_:1})]),e(b)&&e(p).length?(s(),r("div",vt,[_[4]||(_[4]=t("p",{class:"schedule-support-call-dialog__field-label"},"Ù
ØØ¯Ùد٠زÙ
اÙÛ",-1)),g(e(pe),{class:"schedule-support-call-dialog__chips","hide-overlays":""},{default:P(()=>[(s(!0),r(F,null,E(e(p),q=>(s(),M(e(ve),{key:q.id,modelValue:e(A),"onUpdate:modelValue":_[1]||(_[1]=K=>Y(A)?A.value=K:null),value:q.id,title:q.label,disabled:q.disabled,size:"40",variant:"rounded"},null,8,["modelValue","value","title","disabled"]))),128))]),_:1})])):N("",!0)]),t("div",pt,[g(e(X),{emphasis:"high",color:"primary",size:"40",wide:"",disabled:!e(D),loading:e(I),"data-selenium":"identity_level_schedule_support_call_submit",onClick:ne},{default:P(()=>[..._[5]||(_[5]=[V(" تاÛÛØ¯ ٠ارسا٠",-1)])]),_:1},8,["disabled","loading"]),g(e(X),{emphasis:"medium-outline",color:"neutral",size:"40",wide:"",disabled:e(I),"data-selenium":"identity_level_schedule_support_call_cancel",onClick:d},{default:P(()=>[..._[6]||(_[6]=[V(" ÙØºÙ ",-1)])]),_:1},8,["disabled"])])],64))])]),_:1},8,["modelValue","mode"]))}}),mt=Object.assign(ee(ft,[["__scopeId","data-v-3c18e30c"]]),{__name:"ScheduleSupportCallDialog"}),gt={class:"level-cards__track"},ht={class:"level-card__head"},bt={class:"level-card__title-wrap"},yt={class:"level-card__title"},Ct={class:"level-card__features"},kt={class:"level-card__features-list"},xt={key:1},Lt={key:2},St={key:0,class:"level-cards__cta"},wt={key:0,class:"level-cards__cta-success"},It={class:"level-cards__cta-success-title"},Dt={key:0,class:"level-cards__cta-success-description"},$t={key:1,class:"level-cards__cta-rejected"},At={class:"level-cards__cta-rejected-message"},Bt={class:"level-cards__cta-rejected-message-text"},qt={key:0,class:"level-cards__cta-line-info"},Ut={class:"level-cards__cta-line-info-label"},Vt={class:"level-cards__cta-line-info-value"},Rt={key:2,class:"level-cards__cta-body"},Ft={class:"level-cards__cta-hint"},Ot={key:0,class:"level-cards__cta-line-info"},Pt={class:"level-cards__cta-line-info-label"},jt={class:"level-cards__cta-line-info-value"},Nt={key:3,class:"level-cards__cta-btn-wrapper"},Ht=Z({__name:"LevelCards",props:{userLevels:{}},setup(u){const c=u,{getLevelCards:v,getLevelCardsCta:l,getUserProgress:U,getHasActiveCard:$,showEditInformationDialog:h,showScheduleSupportCallDialog:L,getSupportCallContactPhone:S,getBadgeColors:I,getFeatureIconColor:b,shouldUseMutedFeatureHighlight:A}=it(je(c,"userLevels")),O=H(null);return Oe(()=>{window.matchMedia("(max-width: 742px)").matches&&Pe(()=>{const R=O.value,p=R?.querySelector(".level-card--highlighted");if(!R||!p)return;const o=R.getBoundingClientRect(),D=p.getBoundingClientRect();R.scrollLeft+=D.left+D.width/2-(o.left+o.width/2)})}),(R,p)=>(s(),r("div",null,[t("div",gt,[t("div",{ref_key:"levelCardsRef",ref:O,class:"level-cards"},[(s(!0),r(F,null,E(e(v),o=>(s(),r("article",{key:o.slug,class:de(["level-card",[{"level-card--highlighted":o.highlighted,"level-card--state-success":o.visualState==="success","level-card--state-pending":o.visualState==="pending","level-card--state-error":o.visualState==="error","level-card--state-muted":o.visualState==="muted"}]])},[t("div",ht,[g(e(Je),{icon:o.icon,color:o.illusColor},null,8,["icon","color"]),t("div",bt,[t("h2",yt,k(o.title),1),o.badge?(s(),M(e(Ke),{key:0,size:"md",type:"text",content:o.badge,"content-color":e(I)(o.visualState).contentColor,"background-color":e(I)(o.visualState).backgroundColor},null,8,["content","content-color","background-color"])):N("",!0)])]),t("div",Ct,[p[4]||(p[4]=t("p",{class:"level-card__features-label"},"اÙ
Ú©Ø§ÙØ§Øª اÛ٠سطØ:",-1)),t("ul",kt,[(s(!0),r(F,null,E(o.features,(D,x)=>(s(),r("li",{key:x,class:"level-card__feature"},[g(e(Q),{name:"icon-tick-fill",size:"20",color:e(b)(o.slug,o.visualState,e(U))},null,8,["color"]),t("span",null,[V(k(D.text)+" ",1),D.highlight?(s(),r("span",{key:0,class:de(["level-card__feature-highlight",{"level-card__feature-highlight--muted":e(A)(o.slug,e(U))}])},k(D.highlight),3)):N("",!0),D.highlightSuffix?(s(),r("span",xt,k(D.highlightSuffix
1),1)):N("",!0),D.suffix?(s(),r("span",Lt,k(D.suffix),1)):N("",!0)])]))),128))])])],2))),128))],512)]),e(l)?(s(),r("div",St,[e(l).variant==="success"?(s(),r("div",wt,[t("p",It,[g(e(Q),{name:e(l).hintIcon||"icon-tick-fill",size:"24",color:e(l).hintIconColor||"text-brand--icn"},null,8,["name","color"]),V(" "+k(e(l).hint),1)]),e(l).hintDescription?(s(),r("p",Dt,k(e(l).hintDescription),1)):N("",!0)])):e(l).variant==="rejected"?(s(),r("div",$t,[t("p",At,[g(e(Q),{class:"level-cards__cta-rejected-message-icon",name:e(l).hintIcon||"icon-close-fill",size:"24",color:e(l).hintIconColor||"text-error--icn"},null,8,["name","color"]),t("span",Bt,[e(xe)(e(U))?(s(),r(F,{key:0},[p[5]||(p[5]=V(" Ù
دارک ارساÙÛ ",-1)),p[6]||(p[6]=t("span",{class:"text-error--txt"},"ÙØ§Ø¨Ù تاÛÛØ¯ ÙØ¨Ùد",-1)),p[7]||(p[7]=V(". ÙØ·Ùا٠تصÙÛØ± ÛØ§ ÙÛØ¯Ø¦Ù را Ù
طاب٠راÙÙÙ
ا Ù
جددا٠ارسا٠کÙÛØ¯. ",-1))],64)):(s(),r(F,{key:1},[V(k(e(l).hint),1)],64))])]),e(l).lineInfo?.length?(s(),r("div",qt,[(s(!0),r(F,null,E(e(l).lineInfo,o=>(s(),r("div",{key:o.label,class:"level-cards__cta-line-info-row"},[t("span",Ut,k(o.label),1),t("span",Vt,k(o.value),1)]))),128))])):N("",!0)])):(s(),r("div",Rt,[t("p",Ft,[g(e(Q),{name:"icon-info-fill",size:"24",color:e(l).hintIconColor||"text-brand--icn"},null,8,["color"]),V(" "+k(e(l).hint),1)]),e(l).lineInfo?.length?(s(),r("div",Ot,[(s(!0),r(F,null,E(e(l).lineInfo,o=>(s(),r("div",{key:o.label,class:"level-cards__cta-line-info-row"},[t("span",Pt,k(o.label),1),t("span",jt,k(o.value),1)]))),128))])):N("",!0)])),e(l).buttonLabel&&(e(l).buttonHref||e(l).opensEditDialog||e(l).opensSupportCallDialog)?(s(),r("div",Nt,[e(l).opensEditDialog?(s(),M(e(X),{key:0,size:"48",class:"level-cards__cta-btn",color:e(l).buttonColor??"primary","data-selenium":"identity_level_edit_info_btn",onClick:p[0]||(p[0]=o=>h.value=!0)},{default:P(()=>[V(k(e(l).buttonLabel),1)]),_:1},8,["color"])):e(l).opensSupportCallDialog?(s(),M(e(X),{key:1,size:"48",class:"level-cards__cta-btn",color:e(l).buttonColor??"primary","data-selenium":"identity_level_schedule_support_call_btn",onClick:p[1]||(p[1]=o=>L.value=!0)},{default:P(()=>[V(k(e(l).buttonLabel),1)]),_:1},8,["color"])):(s(),M(e(X),{key:2,size:"48",class:"level-cards__cta-btn",color:e(l).buttonColor??"primary",tag:"nuxt-link",href:e(l).buttonHref},{default:P(()=>[V(k(e(l).buttonLabel),1)]),_:1},8,["color","href"]))])):N("",!0)])):N("",!0),g(e(Ge),{modelValue:e(h),"onUpdate:modelValue":p[2]||(p[2]=o=>Y(h)?h.value=o:null),"has-active-card":e($)},null,8,["modelValue","has-active-card"]),g(mt,{modelValue:e(L),"onUpdate:modelValue":p[3]||(p[3]=o=>Y(L)?L.value=o:null),"contact-phone":e(S)},null,8,["modelValue","contact-phone"])]))}}),Mt=Object.assign(ee(Ht,[["__scopeId","data-v-4875ba4e"]]),{__name:"LevelCards"}),Et={class:"level-requirements-dialog__content"},zt={class:"level-requirements-dialog__table"},Tt={class:"level-requirements-dialog__level"},Wt={class:"level-requirements-dialog__requirement"},Kt=Z({__name:"LevelRequirementsDialog",props:Ce({IsForeign:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(u){const c=ge(u,"modelValue"),v=u,l=he(),U=w(()=>l.breakpoints.smAndDown?"bottom-sheet":"modal"),$=[{level:"Ù¾ÛØ´âÙØ±Ø¶",requirement:"ثبتâÙØ§Ù
اÙÙÛ٠بدÙ٠تکÙ
ÛÙ Ø§Ø·ÙØ§Ø¹Ø§Øª ÙÙÛØªÛ"},{level:"پاÛÙ",requirement:v.IsForeign?"ثبت Ø§Ø·ÙØ§Ø¹Ø§Øª ÙØ±Ø¯Û":"تطاب٠شÙ
ار٠Ù
ÙØ¨Ø§Û٠با کد Ù
ÙÛ"},{level:"Ù¾ÛØ´Ø±ÙتÙ",requirement:v.IsForeign?"ارسا٠تصÙÛØ± Ù
دارک ÙÙÛØªÛ":"ارسا٠تصÙÛØ± ÛØ§ ضبط ÙÛØ¯Ø¦ÙÛ ÙÙÛØªÛ"}],h=()=>{c.value=!1};return(L,S)=>(s(),M(e(ye),{modelValue:c.value,"onUpdate:modelValue":S[0]||(S[0]=I=>c.value=I),mode:U.value,"content-class":"!w-full md:!max-w-[520px]","data-selenium":"identity_level_requirements_dialog"},{default:P(()=>[g(e(be),{title:"ÙÛØ§Ø²Ù
ÙØ¯âÛâÙØ§âÛ ÙØ± Ø³Ø·Ø Ú©Ø§Ø±Ø¨Ø±Û","trailing-icon2":"icon-close",class:"!py-4 !px-5","data-selenium":"identity_level_requirements_dialog_header",onSecondTrailingBtn:h}),t("div",Et,[t("div",zt,[S[1]||(S[1]=t("div",{class:"level-requirements-dialog__table-head"},[t("span",{class:"level-requirements-dialog__table-head-col"},"Ø³Ø·Ø Ú©Ø§Ø±Ø¨Ø±Û"),t("span",{class:"level-requirements-dialog__table-head-col"},"ÙÛØ§Ø²Ù
ÙØ¯Û سطØ")],-1)),(s(),r(F,null,E($,I=>t("div",{key:I.level,class:"level-requirements-dialog__row"},[t("span",Tt,k(I.level),1),t("span",Wt,k(I.requirement),1)])),64))]),g(e(X),{emphasis:"high",color:"neutral",size:"48",wide:"","data-selenium":"identity_level_requirements_dialog_confirm",onClick:h},{default:P(()=>[...S[2]||(S[2]=[V(" Ù
ØªÙØ¬Ù شدÙ
",-1)])]),_:1})])]),_:1},8,["modelValue","mode"]))}}),Gt=Object.assign(ee(Kt,[["__scopeId","data-v-6f6f422b"]]),{__name:"LevelRequirementsDialog"}),Jt={class:"identity-level-page"},Qt={class:"identity-level-page__hero"},Xt={class:"identity-level-page__comparison"},Yt={class:"identity-level-page__comparison-head"},Zt={class:"comparison-table"},el={class:"comparison-table__scroll"},tl={class:"comparison-table__table"},ll={scope:"row",class:"comparison-table__feature-col"},al={class:"comparison-table__data-col"},nl={class:"comparison-table__data-col"},sl={class:"comparison-table__data-col"},ol={class:"identity-level-page__faq"},il={key:0,class:"faq-list faq-list--loading","aria-busy":"true","aria-label":"در ØØ§Ù بارگذارÛ"},rl={key:2,class:"faq-list"},ul=Z({__name:"identity-level",async setup(u){let c,v;const l=ue();Ne({title:"Ø³Ø·ÙØ Ú©Ø§Ø±Ø¨Ø±Û Ø¯Ø± Ø¨ÛØªÛ²Û´",meta:[{name:"description",content:"با Ø§Ø±ØªÙØ§Û Ø³Ø·Ø Ú©Ø§Ø±Ø¨Ø±Û Ø¯Ø± Ø¨ÛØªÛ²Û´Ø از سÙ٠برداشت Ø¨Ø§ÙØ§ØªØ± ٠اÙ
Ú©Ø§ÙØ§Øª Ø¨ÛØ´ØªØ± Ø¨ÙØ±ÙâÙ
ÙØ¯ Ø´ÙÛØ¯."}],link:[{rel:"canonical",href:`${l.public.DOMAIN_PUBLIC_URL}
1/identity-level/`}]});const{options:U}=Ze(),{formatNumberScale:$}=ke(),{getIsForeignUser:h}=Le(),L=H(0),S=H(!1),I=x=>[...x].sort((d,f)=>d.order-f.order).map((d,f)=>({id:f+1,title:d.title,description:d.description})),{data:b,pending:A}=([c,v]=He(async()=>Me("identity-level-page-data",async()=>{const[x,d]=await Promise.allSettled([new Ue(l,U).getUserLevels(),new et(l,U).getFaq("user-level")]);let f=null;x.status==="fulfilled"&&x.value.success&&x.value.data?f=x.value.data:x.status==="rejected"&&console.error("error in get user levels api",x.reason);let j=[];return d.status==="fulfilled"&&d.value.success&&d.value.data?.faqs?.length?j=I(d.value.data.faqs):d.status==="rejected"&&console.error("error in get faq api",d.reason),{userLevels:f,faqItems:j}})),c=await c,v(),c),O=w(()=>b.value?.userLevels??null),R=w(()=>b.value?.faqItems??[]),p=x=>x<=0?{type:"deny"}:{type:"check",value:`تا ${$(x)} تÙÙ
اÙ`},o=w(()=>!A.value&&R.value?.length===0),D=w(()=>{const x=z(O.value,h.value,1,"max_irt_withdraw_amount"),d=z(O.value,h.value,1,"max_crypto_withdraw_amount"),f=z(O.value,h.value,2,"max_irt_withdraw_amount"),j=z(O.value,h.value,2,"max_crypto_withdraw_amount");return[{feature:"ÙØ§Ø±Ûز تÙÙ
اÙ",default:{type:"deny"},base:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"},advanced:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"}},{feature:"ÙØ§Ø±Ûز ارز",default:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"},base:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"},advanced:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"}},{feature:"Ù
عاÙ
ÙÙ",default:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"},base:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"},advanced:{type:"text",value:"ÙØ§Ù
ØØ¯Ùد"}},{feature:"برداشت Ø±ÙØ²Ø§Ù٠تÙÙ
اÙ",default:{type:"deny"},base:p(x),advanced:p(f)},{feature:"برداشت Ø±ÙØ²Ø§Ù٠ارز",default:{type:"deny"},base:p(d),advanced:p(j)}]});return(x,d)=>(s(),r("div",Jt,[t("section",Qt,[g(e(_e),{class:"identity-level-page__container"},{default:P(()=>[...d[3]||(d[3]=[t("h1",{class:"identity-level-page__title"},"Ø³Ø·ÙØ Ú©Ø§Ø±Ø¨Ø±Û Ø¯Ø± Ø¨ÛØªÛ²Û´",-1),t("p",{class:"identity-level-page__subtitle"}," با Ø§Ø±ØªÙØ§Û Ø³Ø·Ø Ú©Ø§Ø±Ø¨Ø±ÛØ از سÙ٠برداشت Ø¨Ø§ÙØ§ØªØ± ٠اÙ
Ú©Ø§ÙØ§Øª Ø¨ÛØ´ØªØ± Ø¨ÙØ±ÙâÙ
ÙØ¯ Ø´ÙÛØ¯. ",-1)])]),_:1})]),g(e(_e),{class:"identity-level-page__container"},{default:P(()=>[g(Mt,{"user-levels":e(O)},null,8,["user-levels"]),t("section",Xt,[t("div",Yt,[d[4]||(d[4]=t("h2",{class:"identity-level-page__section-title !mb-0"}," Ù
ÙØ§Ûس٠کاÙ
Ù Ø³Ø·ÙØ Ú©Ø§Ø±Ø¨Ø±Û ",-1)),g(e(Ee),{tag:"button",title:"ÙÛØ§Ø²Ù
ÙØ¯Û ÙØ± Ø³Ø·Ø Ú©Ø§Ø±Ø¨Ø±ÛØ",underline:"",class:"identity-level-page__comparison-link","data-selenium":"identity_level_comparison_link",onClick:d[0]||(d[0]=f=>S.value=!0)})]),t("div",Zt,[t("div",el,[t("table",tl,[d[5]||(d[5]=t("thead",null,[t("tr",null,[t("th",{scope:"col",class:"comparison-table__feature-col"}," ÙØ§Ø¨ÙÛØªâÙØ§ "),t("th",{scope:"col",class:"comparison-table__data-col"}," Ø³Ø·Ø Ù¾ÛØ´âÙØ±Ø¶ "),t("th",{scope:"col",class:"comparison-table__data-col"},"Ø³Ø·Ø Ù¾Ø§ÛÙ"),t("th",{scope:"col",class:"comparison-table__data-col"}," Ø³Ø·Ø Ù¾ÛØ´Ø±Ùت٠")])],-1)),t("tbody",null,[(s(!0),r(F,null,E(e(D),f=>(s(),r("tr",{key:f.feature},[t("th",ll,k(f.feature),1),t("td",al,[g(ie,{cell:f.default},null,8,["cell"])]),t("td",nl,[g(ie,{cell:f.base},null,8,["cell"])]),t("td",sl,[g(ie,{cell:f.advanced},null,8,["cell"])])]))),128))])])])])]),t("section",ol,[d[6]||(d[6]=t("h2",{class:"identity-level-page__section-title"},"راÙÙÙ
ا Ù Ø³ÙØ§Ùات Ù
تداÙÙ",-1)),e(A)?(s(),r("div",il,[(s(),r(F,null,E(4,f=>t("div",{key:f,class:"faq-list__skeleton-row"},[g(e(We),{class:"faq-list__skeleton-title"})])),64))])):e(o)?(s(),M(e(Te),{key:1,class:"faq-list__empty",title:"Ø³ÙØ§ÙÛ ÛØ§Ùت ÙØ´Ø¯.",state:"empty-search"})):(s(),r("div",rl,[(s(!0),r(F,null,E(e(R),f=>(s(),M(e(ze),{id:f.id,key:f.id,modelValue:e(L),"onUpdate:modelValue":d[1]||(d[1]=j=>Y(L)?L.value=j:null),"title-tag":"h2",border:"bottom",title:f.title,description:f.description,type:"html"},null,8,["id","modelValue","title","description"]))),128))]))])]),_:1}),g(Gt,{modelValue:e(S),"onUpdate:modelValue":d[2]||(d[2]=f=>Y(S)?S.value=f:null),IsForeign:e(h)},null,8,["modelValue","IsForeign"])]))}}),wl=ee(ul,[["__scopeId","data-v-77bb6eba"]]);export{wl 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.