PageSourceSearch

https://bit24.cash/__nuxt/DtFGn-7k.js

js bit24.cash collected 2026-10-07 17:46:41 UTC 27,650 bytes, 1 lines download raw bytes

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.