PageSourceSearch

https://www.xplorence.com/assets/Panel-VTzoZ4EI.js

js xplorence.com collected 2026-10-02 01:51:39 UTC 71,269 bytes, 19 lines download raw bytes

1import{r as n,j as e}from"./main-DoqNxVyS.js";import{d as Ys,f as Ws,e as Qs}from"./push-yHMSgYK8.js";import{H as Ke,m as $a,t as s,i as Fa,N as Oa,K as La,c as Zs,z as Ye,G as Ha,D as Ka,v as f,S as Gs,u as Vs,O as ve,M as p,r as Js,I as Xs,J as ei}from"./site-DTRSzt01.js";import{X as ai}from"./Brand-D41UPv22.js";import{Q as si}from"./index-DlkTEb76.js";import{a as h}from"./api-czj9L198.js";import{U as Ya}from"./regions-Da0tx9e4.js";import{a as Wa}from"./GeoPicker-CtX1isUz.js";import{j as ii,u as ni}from"./geo-units-DartzAak.js";import{I as ti}from"./Icon-Bu18Cjlc.js";import{L as Qa}from"./LangPicker-BPnaBU5x.js";import"./index-DcLHCLfd.js";import"./BrandAssets-aqo1BWaj.js";import"./uz-geo-CengOO0N.js";import"./uz-demographics-CVBppHNS.js";const H=({icon:c,children:z})=>e.jsxs("div",{className:"opt",style:{cursor:"default",display:"flex",gap:10,alignItems:"flex-start"},children:[e.jsx("span",{style:{color:"var(--teal)",flexShrink:0,marginTop:1},children:e.jsx(ti,{name:c})}),e.jsx("span",{className:"small",children:z})]}),Za=[{v:"m",ru:"Мужской",uz:"Erkak"},{v:"f",ru:"Женский",uz:"Ayol"}],li=["18-24","25-34","35-44","45-54","55+"],x=c=>Number(c||0).toLocaleString("ru-RU"),xe=[{v:"urban",ru:"Город",uz:"Shahar"},{v:"rural",ru:"Вне города (кишлак, аул, посёлок)",uz:"Shahardan tashqarida (qishloq, ovul, shaharcha)"}],We=[{v:"secondary",ru:"Среднее",uz:"Oʻrta"},{v:"vocational",ru:"Среднее спец.",uz:"Oʻrta maxsus"},{v:"higher",ru:"Высшее",uz:"Oliy"}],Qe=[{v:"food",ru:"Денег хватает только на еду",uz:"Pul faqat oziq-ovqatga yetadi"},{v:"clothes",ru:"Хватает на еду и одежду, но технику купить трудно",uz:"Oziq-ovqat va kiyimga yetadi, texnika olish qiyin"},{v:"tech",ru:"Можем купить технику, но не автомобиль",uz:"Texnika olamiz, lekin avtomobil emas"},{v:"car",ru:"Можем купить автомобиль, но не квартиру",uz:"Avtomobil olamiz, lekin uy emas"},{v:"home",ru:"Можем купить квартиру или дом",uz:"Kvartira yoki uy ola olamiz"}],ri=[{v:"u5",ru:"до 5 млн",uz:"5 mln gacha"},{v:"5_10",ru:"5–10 млн",uz:"5–10 mln"},{v:"10_20",ru:"10–20 млн",uz:"10–20 mln"},{v:"20_35",ru:"20–35 млн",uz:"20–35 mln"},{v:"35_60",ru:"35–60 млн",uz:"35–60 mln"},{v:"60p",ru:"больше 60 млн",uz:"60 mln dan koʻp"}],oi=["1","2","3","4","5","6","7+"],Ze=[{v:"employed",ru:"Наёмный",uz:"Yollanma"},{v:"self_employed",ru:"Самозанятый",uz:"Oʻz-oʻzini band"},{v:"business_owner",ru:"Свой бизнес",uz:"Biznes egasi"},{v:"student",ru:"Студент",uz:"Talaba"},{v:"unemployed",ru:"Не работаю",uz:"Ishsiz"},{v:"retired",ru:"Пенсионер",uz:"Nafaqada"},{v:"homemaker",ru:"Домохозяйка",uz:"Uy bekasi"}],Ga=[{v:"parent",ru:"Родитель",uz:"Ota-ona"},{v:"car_owner",ru:"Автовладелец",uz:"Avto egasi"},{v:"business_owner",ru:"Предприниматель",uz:"Tadbirkor"},{v:"it_pro",ru:"IT/профи",uz:"IT/mutaxassis"},{v:"decision_maker",ru:"Руководитель/ЛПР",uz:"Rahbar"},{v:"patient_chronic",ru:"Хрон. заболевание",uz:"Surunkali kasallik"},{v:"student",ru:"Студент",uz:"Talaba"},{v:"pet_owner",ru:"Есть питомец",uz:"Uy hayvoni"},{v:"homeowner",ru:"Свой дом/кв.",uz:"Uy egasi"},{v:"traveler",ru:"Путешествую",uz:"Sayohatchi"}],K=(c,z,t)=>{var D;return((D=c.find(y=>y.v===z))==null?void 0:D[t==="uz"?"uz":"ru"])||z},Va={cash:{icon:"💳",label:()=>s("Деньги на карту","Cash to card","Kartaga pul"),desc:()=>s("Перевод на Uzcard/Humo. С выплаты удерживается НДФЛ 12% (мы — налоговый агент).","Transfer to Uzcard/Humo. 12% income tax is withheld (we are the tax agent).","Uzcard/Humoʻga oʻtkazma. Toʻlovdan 12% NDFL ushlanadi (biz soliq agentimiz).")},mobile:{icon:"📱",label:()=>s("Мобильный баланс","Mobile top-up","Mobil balans"),desc:()=>s("Пополнение баланса телефона. Заявку обрабатывает оператор.","Phone balance top-up. Processed by the operator.","Telefon balansini toʻldirish. Soʻrovni operator koʻrib chiqadi.")},raffle:{icon:"🎟️",label:()=>s("Билет в розыгрыш","Raffle ticket","Yutuq chiptasi"),desc:()=>
1s("Скоро: вход бесплатный, баллы не списываются.","Coming soon: entry is free, no points spent.","Tez orada: kirish bepul, ballar yechilmaydi.")},status:{icon:"⭐",label:()=>s("Статус и бейджи","Status & badges","Maqom va belgilar"),desc:()=>s("Скоро.","Coming soon.","Tez orada.")}},ci=c=>c==="fulfilled"?s("выполнено","fulfilled","bajarildi"):c==="failed"?s("отменено","cancelled","bekor qilindi"):s("в обработке","processing","koʻrib chiqilmoqda");function je({children:c,right:z,wide:t}){return e.jsxs(e.Fragment,{children:[e.jsxs("header",{className:"tg-hide",children:[e.jsxs("div",{className:"logo",onClick:()=>{window.location.href="/panel"},style:{cursor:"pointer"},title:s("На главную панели","Panel home","Panel bosh sahifasi"),children:[e.jsx(ai,{}),e.jsxs("div",{children:["Sonar ",e.jsx("small",{children:s("панель","panel","panel")})]})]}),e.jsx("div",{className:"spacer"}),z]}),e.jsx("main",{className:t?"panel-cols":void 0,style:t?void 0:{maxWidth:600},children:c})]})}function qi(){var Ba,Ua,Ma;const[c,z]=n.useState(typeof localStorage<"u"&&localStorage.getItem("sonar_panel_code")||""),[t,D]=n.useState(null),[y,l]=n.useState(""),[ee,S]=n.useState(""),[ae,ke]=n.useState(""),[Ne,Ja]=n.useState(""),[Se,Xa]=n.useState(""),[u,Ge]=n.useState(()=>{const a=Ke()==="uz"?"uz":"ru";return $a(a),a}),[Ve,es]=n.useState([]),[Y,as]=n.useState(""),[I,ss]=n.useState(!1),[Je,Xe]=n.useState(""),[se,is]=n.useState(!0),[ie,ns]=n.useState(""),[d,j]=n.useState(null),[ea,aa]=n.useState(!1),[we,sa]=n.useState(!1),[ia,na]=n.useState(""),[b,B]=n.useState(null),[ts,ls]=n.useState(""),[ta,la]=n.useState(!1),[ze,ra]=n.useState(""),[qe,oa]=n.useState(!1),[ca,da]=n.useState(!1),[ua]=n.useState(()=>{try{return new URLSearchParams(window.location.search).get("ref")||""}catch{return""}}),[ha]=n.useState(()=>{try{const a=new URLSearchParams(window.location.search),i={source:a.get("utm_source")||null,medium:a.get("utm_medium")||null,campaign:a.get("utm_campaign")||null};return i.source||i.medium||i.campaign?{utm:i,landing:window.location.pathname+window.location.search}:{}}catch{return{}}}),[ma,rs]=n.useState(!1),[U,w]=n.useState("phone"),[pa,ne]=n.useState(0),[E,Te]=n.useState(""),[v,q]=n.useState(!1),[ga,ya]=n.useState(""),[Ce,os]=n.useState(""),[fa,cs]=n.useState(null),[ds,ba]=n.useState(""),[Pe,us]=n.useState("sms"),[te,va]=n.useState(""),[W,Re]=n.useState(""),[Ee,_]=n.useState(!1);n.useEffect(()=>{const a=/[#&?]tg=([A-Za-z0-9]+)/.exec(typeof location<"u"?location.hash:"");if(!a)return;const i=a[1];try{history.replaceState(null,"",location.pathname+location.search)}catch{}Re(i),w("code"),_(!1),q(!0),l(""),(async()=>{try{const r=await h.panelOtpVerify({tgToken:i});r.access_code?await m(r.access_code):r.needProfile&&(r.country?(Ie(r.country),ce(r.regi
1ons||[])):(h.markets().then(g=>Na(g.markets||[])).catch(()=>{}),await Ue("UZ")),w("profile"),ne(0))}catch{const r=typeof localStorage<"u"&&localStorage.getItem("sonar_panel_code")||"";if(r){await m(r),q(!1);return}w("phone"),l(s("Ссылка для входа устарела. Запросите вход через Telegram ещё раз.","This sign-in link has expired. Request Telegram sign-in again.","Kirish havolasi eskirgan. Telegram orqali kirishni qaytadan soʻrang."))}q(!1)})()},[]),n.useEffect(()=>{if(!Ee||!W||U!=="code")return;let a=!0;const i=setInterval(async()=>{try{const r=await h.panelOtpPoll(W);if(!a)return;r.status==="ready"?(_(!1),G(!0)):r.status==="rejected"?(_(!1),l(s("Номер вашего Telegram не совпал с введённым. Посмотрите сообщение бота, исправьте номер и запросите вход заново.","Your Telegram number didn’t match the one you entered. Check the bot’s message, fix the number and request sign-in again.","Telegram raqamingiz kiritilgani bilan mos kelmadi. Botning xabarini koʻring, raqamni toʻgʻrilab, qaytadan soʻrang."))):r.status==="used"?(_(!1),l(s("Вход уже выполнен в другом окне — эту вкладку можно закрыть.","You’ve already signed in in another window — this tab can be closed.","Boshqa oynada allaqachon kirdingiz — bu varaqni yopsangiz boʻladi."))):(r.status==="expired"||r.status==="unknown")&&_(!1)}catch{}},2500);return()=>{a=!1,clearInterval(i)}},[Ee,W,U]);const[M,xa]=n.useState("phone"),[Q,hs]=n.useState(""),[ms,ps]=n.useState(!1),[_e,gs]=n.useState(!1),[ja,ys]=n.useState(!0),[Ae,fs]=n.useState({webpush:!1,vapidKey:null}),[le,re]=n.useState(!1),[bs,De]=n.useState(!1);n.useEffect(()=>{c&&Ys("panel",c)},[c]);const[oe,Ie]=n.useState(null),[Be,ce]=n.useState([]),[ka,Na]=n.useState([]);async function Ue(a){if(Ie(a),ke(""),!a){ce([]);return}const i=await h.marketInfo(a).catch(()=>null);ce((i==null?void 0:i.regions)||[])}const[$,T]=n.useState(()=>{try{return Fa()?"checking":""}catch{return""}}),[de,vs]=n.useState(""),[Sa,xs]=n.useState(""),[ue,js]=n.useState(""),[wa,Me]=n.useState(!1),[Z,he]=n.useState("home");n.useEffect(()=>{const a=t&&Z==="home"?(t.surveys||[]).find(i=>i.status!=="complete"):null;return a?Oa(s("Пройти опрос","Take the survey","Soʻrovdan oʻtish"),()=>{window.location.href=a.url}):Oa(null)},[t,Z,u]),n.useEffect(()=>!t||Z!=="settings"?La(null):La(()=>he("home")),[t,Z]),n.useEffect(()=>{const a=/[#&?]code=([A-Za-z0-9-]{4,40})/.exec(typeof location<"u"?location.hash:"");if(a){try{history.replaceState(null,"",location.pathname+location.search)}catch{}m(a[1]).finally(()=>T(""));return}Fa()&&(async()=>{try{const i=await Zs();if(i)try{i.ready(),i.expand()}catch{}const r=Ye();if(!r){T("");return}const g=await h.panelTgAuth(r);try{Ha()||Ta(Ke({profile:g.lang,tg:g.tgLang}))}catch{}if(g.access_code){await m(g.access_code),T("");return}if(g.needJoin){vs(String(g.name||"")),w("profile"),ne(0),T("join");return}T("")}catch{T("")}})()},[]),n.useEffect(()=>{c&&m(c),h.config().then(a=>{cs((a==null?void 0:a.tgBot)||null),ys((a==null?void 0:a.payouts)!==!1),ps((a==null?void 0:a.emailOtp)===!0),gs((a==null?void 0:a.smsOtp)===!0),fs({webpush:(a==null?void 0:a.webpush)===!0,vapidKey:(a==null?void 0:a.vapidKey)||null})}).catch(()=>{})},[]),n.useEffect(()=>{typeof navigator>"u"||!("serviceWorker"in navigator)||!("PushManager"in window)||Ka("panel").then(a=>a==null?void 0:a.pushManager.getSubscription()).then(a=>De(!!a)).catch(()=>{})},[t]);const ks=a=>{const i="=".repeat((4-a.length%4)%4),r=atob((a+i).replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(r,g=>g.charCodeAt(0))};async function Ns(){if(Ae.vapidKey){l(""),re(!0);try{const a=await Js("panel");if(await Notification.requestPermission()!=="granted"){l(s("Уведомления запрещены в браузере.","Notifications are blocked in the browser.","Brauzerda bildirishnomalar taqiqlangan."));return}const r=await a.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:ks(Ae.vapidKey)});
1await h.panelPushSubscribe(c,r.toJSON()),await Ws("panel",c,r.endpoint),De(!0),S(s("Push-уведомления включены в этом браузере.","Push notifications enabled in this browser.","Bu brauzerda push yoqildi.")),await m(c)}catch(a){l(a.message||String(a))}finally{re(!1)}}}async function Ss(){l(""),re(!0);try{const a=await Ka("panel"),i=await(a==null?void 0:a.pushManager.getSubscription());i&&(await h.panelPushUnsubscribe(c,i.endpoint),await i.unsubscribe()),De(!1),S(s("Push-уведомления выключены.","Push notifications disabled.","Push oʻchirildi.")),await m(c)}catch(a){l(a.message||String(a))}finally{re(!1)}}async function ws(a){l("");try{await h.panelSetNotifyChannel(c,a),await m(c)}catch(i){l(f(i))}}async function m(a){l("");try{const i=await h.panelHome(a);D(i),z(a),localStorage.setItem("sonar_panel_code",a),Ha()||Ta(Ke({profile:i&&i.panelist?i.panelist.lang:null}))}catch(i){l(f(i)),D(null)}}const zs=a=>{const i=a.replace(/\D/g,"");return i.length===9||i.length>=7&&i.length<=15&&!/^0/.test(i)},qs=a=>/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(a.trim()),za=()=>M==="email"?{email:Q.trim()}:{phone:Y};async function C(a="telegram"){if(l(""),ya(""),ba(""),va(""),Re(""),_(!1),a==="email"){if(!qs(Q)){l(s("Введите корректный email.","Enter a valid email.","Toʻgʻri email kiriting."));return}}else if(!zs(Y)){l(s("Введите корректный номер (+998…, для других стран — в международном формате).","Enter a valid number (international format, e.g. +998…).","Toʻgʻri raqam kiriting (+998…, boshqa davlatlar — xalqaro formatda)."));return}q(!0),us(a);try{const i=await h.panelOtpRequest({...a==="email"?{email:Q.trim()}:{phone:Y},channel:a});if(w("code"),Te(""),a==="telegram"&&i.deepLink){ba(i.deepLink),va(i.appLink||i.deepLink),Re(i.token||""),_(!!i.token);try{window.location.href=i.appLink||i.deepLink}catch{}}i.dev&&i.devCode&&ya(s("Демо-режим (доставка не подключена): код ","Demo mode (delivery off): code ","Demo (yetkazish yoʻq): kod ")+i.devCode)}catch(i){l(f(i))}finally{q(!1)}}async function G(a=!1){if(l(""),!a&&E.replace(/\D/g,"").length<4){l(s("Введите код.","Enter the code.","Kodni kiriting."));return}q(!0);try{const i=await h.panelOtpVerify({...za(),...a?{tgToken:W}:{code:E}});i.access_code?await m(i.access_code):i.needProfile&&(i.country?(Ie(i.country),ce(i.regions||[])):(h.markets().then(r=>Na(r.markets||[])).catch(()=>{}),await Ue("UZ")),w("profile"),ne(0))}catch(i){l(f(i))}finally{q(!1)}}function Ts(){const a=(()=>{var i;try{return(i=window.Telegram)==null?void 0:i.WebApp}catch{return}})();if(!a||typeof a.requestContact!="function"||!Xs("6.9")){l(s("Эта версия Telegram не умеет передавать номер — можно вступить и без него.","This Telegram version can’t share your number — you can join without it.","Telegram’ning bu versiyasi raqamni uzata olmaydi — usiz ham qoʻshilish mumkin."));return}l(""),Me(!0);try{a.requestContact((i,r)=>{(async()=>{var g,be;try{if(!i)return;const R=r&&r.response?String(r.response):"";if(!R){l(s("Telegram не передал подписанный номер — можно вступить без него.","Telegram didn’t pass a signed number — you can join without it.","Telegram imzolangan raqamni uzatmadi — usiz ham qoʻshilish mumkin."));return}xs(R);try{js(String(((be=(g=r==null?void 0:r.responseUnsafe)==null?void 0:g.contact)==null?void 0:be.phone_number)||""))}catch{}const L=await h.panelTgJoin(Ye(),{contactResponse:R,lang:u});L.access_code&&(await m(L.access_code),T(""))}catch(R){l(f(R))}finally{Me(!1)}})()})}catch(i){Me(!1),l(f(i))}}const $e=a=>{const i=String(a||"").replace(/[^\d+]/g,"");return i.length<6?i:i.slice(0,4)+" •• ••• "+i.slice(-4)};async function Cs(){if(l(""),!I){l(s("Нужно согласие","Consent required","Rozilik kerak"));return}q(!0);const a={region:ae,district:ie||void 0,gender:Ne,age:Se,lang:u,langs:Array.from(new Set([u,...Ve])),urbanRural:Je||void 0,recontact:se,consent:I,ref:ua||void 0,country:oe||void 0,utm:ha.utm||void 0,landing:ha.landing||void 0};try{const i=$==="join"?await h.panelTgJoin(Ye(),{...a,contactResponse:Sa||void 0}
1):await h.panelOtpVerify({...za(),...E?{code:E}:{tgToken:W},...a});i.access_code&&(await m(i.access_code),T(""))}catch(i){l(f(i))}finally{q(!1)}}async function Ps(){if(d){l(""),aa(!0);try{await h.panelSetProfile(c,d),p("ok"),sa(!0),await m(c),setTimeout(()=>{sa(!1),j(null)},1400)}catch(a){p("warn"),l(f(a))}finally{aa(!1)}}}async function Rs(a){l("");try{await h.panelSetRecontact(c,a),S(a?s("Снова будем присылать опросы.","We'll send you surveys again.","Yana soʻrov yuboramiz."):s("Больше не будем присылать опросы.","We'll stop sending surveys.","Endi soʻrov yubormaymiz.")),await m(c)}catch(i){l(f(i))}}async function Es(){try{await navigator.clipboard.writeText(t.referral.link),S(s("Ссылка скопирована.","Link copied.","Havola nusxalandi."))}catch{}}async function _s(){if(confirm(s("Выйти из панели? Профиль сохранится.","Leave the panel? Your profile is kept.","Paneldan chiqasizmi?")))try{await h.panelLeave(c),S(s("Вы вышли из панели.","You left the panel.","Paneldan chiqdingiz.")),await m(c)}catch(a){l(f(a))}}async function As(){l("");try{await h.panelSetPayout(c,ia),na(""),S(s("Карта сохранена.","Card saved.","Karta saqlandi.")),await m(c)}catch(a){l(f(a))}}async function Ds(){l(""),da(!0);try{await h.panelPayoutIdentity(c,{pinfl:ze,accept:qe}),ra(""),oa(!1),S(s("Данные для выплаты сохранены.","Payout details saved.","Toʻlov maʼlumotlari saqlandi.")),await m(c)}catch(a){l(f(a))}finally{da(!1)}}function Is(a){var r;const i=((r=t==null?void 0:t.balance)==null?void 0:r.balance)||0;l(""),S(""),B({option:a.id,amount:Math.max(a.min,Math.min(i,i)),phone:""}),ls(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():String(Date.now())+Math.random().toString(36).slice(2))}async function Bs(){if(!b)return;l(""),la(!0);const a=b.option==="mobile"?{phone:b.phone}:b.option==="cash"?{card:""}:{};try{await h.panelRedeem(c,{option:b.option,amount:Number(b.amount),dest:a,key:ts}),S(s("Заявка на обмен принята.","Redemption request accepted.","Almashtirish soʻrovi qabul qilindi.")),B(null),await m(c)}catch(i){l(f(i))}finally{la(!1)}}function qa(){D(null),z(""),localStorage.removeItem("sonar_panel_code"),Qs("panel")}async function Us(){var r;const a=((r=t==null?void 0:t.balance)==null?void 0:r.balance)||0,i=s(`Удалить ваши данные безвозвратно?
2
3• Профиль, телефон/email, карта выплат и приглашения будут удалены.
4• Ваши прошлые ответы останутся в исследованиях ОБЕЗЛИЧЕННЫМИ (связь с вами разрывается навсегда).
5${a>
50?`• Несгоревший баланс ${x(a)} баллов будет аннулирован — при желании сначала обменяйте его.
6`:""}
7Это действие нельзя отменить.`,`Delete your data permanently?
8
9• Profile, phone/email, payout card and invitations will be deleted.
10• Your past answers stay in studies DE-IDENTIFIED (the link to you is severed forever).
11${a>0?`• Your remaining balance of ${x(a)} points will be forfeited — redeem it first if you wish.
12`:""}
13This cannot be undone.`,`Maʼlumotlaringiz butunlay oʻchirilsinmi?
14
15• Profil, telefon/email, toʻlov kartasi va takliflar oʻchiriladi.
16• Oʻtgan javoblaringiz tadqiqotlarda SHAXSSIZLANTIRILGAN holda qoladi.
17${a>0?`• Qolgan ${x(a)} ball bekor qilinadi — xohlasangiz avval almashtiring.
18`:""}
19Bu amalni bekor qilib boʻlmaydi.`);if(confirm(i)&&confirm(s("Точно удалить? Восстановить аккаунт и историю будет невозможно.","Really delete? The account and history cannot be recovered.","Rostdan oʻchirilsinmi? Hisob va tarixni tiklab boʻlmaydi."))){l("");try{await h.panelDeleteData(c),alert(s("Данные удалены. Спасибо, что были с нами.","Your data has been deleted. Thank you for being with us.","Maʼlumotlaringiz oʻchirildi. Biz bilan boʻlganingiz uchun rahmat.")),qa()}catch(g){l(f(g))}}}async function Ms(){l("");try{await h.panelConfirmProfile(c),S(s("Спасибо! Профиль отмечен как актуальный.","Thanks! Profile marked as up to date.","Rahmat! Profil dolzarb deb belgilandi.")),await m(c)}catch(a){l(f(a))}}const Ta=a=>{const i=a==="uz"||a==="kaa"?"uz":"ru";$a(i),Ge(i)},Ca=a=>{ei(a),Ge(a);const i=c||(()=>{try{return localStorage.getItem("sonar_panel_code")||""}catch{return""}})();i&&h.panelSetLang(i,a).catch(()=>{})},F=["intro","langs","geo","gender","age","urban","consents"],Pa=a=>a==="urban"?!ie:!0,k=F[Math.min(Math.max(pa,0),F.length-1)],Ra=F.filter(a=>a!=="intro"&&Pa(a)),Fe=Math.max(1,Ra.indexOf(k)+1),Oe=Ra.length,V=a=>{let i=pa+a;for(;i>0&&i<F.length-1&&!Pa(F[i]);)i+=a;ne(Math.max(0,Math.min(i,F.length-1)));try{window.scrollTo(0,0)}catch{}},Le=a=>{p("pick"),a(),setTimeout(()=>V(1),200)};if(!t&&$==="checking")return e.jsx(je,{children:e.jsx("div",{className:"card",style:{marginTop:24},children:e.jsx("div",{className:"sub",children:s("Входим…","Signing you in…","Kirilmoqda…")})})});if(!t)return e.jsx(je,{children:e.jsxs("div",{className:"card",style:{marginTop:24},children:[e.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:8},children:e.jsx(Qa,{value:u,options:["uz","ru"],onChange:a=>Ca(a)})}),U==="phone"&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:s("Вход и регистрация","Sign in & sign up","Kirish va roʻyxat")}
19),e.jsx(H,{icon:"target",children:s("Короткие опросы под ваш профиль — обычно около 5 минут","Short surveys matched to your profile — usually about 5 minutes","Profilingizga mos qisqa soÊ»rovlar — odatda 5 daqiqa atrofida")}),e.jsx(H,{icon:"tag",children:ja?s("Баллы за каждый засчитанный опрос: 1 балл = 1 сум — на карту или телефон","Points for every counted survey: 1 point = 1 UZS — card or phone top-up","Har bir hisobga olingan soÊ»rov uchun ball: 1 ball = 1 soÊ»m — kartaga yoki telefonga"):s("Баллы за каждый засчитанный опрос копятся: 1 балл = 1 сум. Баллы не сгорают","Points add up for every counted survey: 1 point = 1 UZS. Points do not expire","Har bir hisobga olingan soÊ»rov uchun ball toÊ»planadi: 1 ball = 1 soÊ»m. Ballar yoÊ»qolmaydi")}),e.jsx(H,{icon:"chart",children:s("Ваше мнение реально учитывается: видно, в скольких исследованиях учтён ваш голос","Your opinion truly counts: see how many studies your voice counted in","Fikringiz haqiqatan inobatga olinadi: ovozingiz nechta tadqiqotda inobatga olingani koÊ»rinadi")}),e.jsxs("div",{className:"sub",style:{marginTop:8},children:[s("Введите номер телефона — пришлём код. Данные хранятся в Узбекистане.","Enter your phone — we'll send you a code. Data is stored in Uzbekistan.","Telefon raqamingizni kiriting — kod yuboramiz. Maʼlumotlar OÊ»zbekistonda saqlanadi.")," ",e.jsx("a",{href:"/panel/rules",style:{color:"var(--teal)"},children:s("Баллы и правила →","Points & rules →","Ballar va qoidalar →")})]}),ua&&e.jsx("p",{className:"note",style:{color:"var(--green)"},children:s("Вас пригласил друг — после вашего первого опроса он получит бонус.","A friend invited you — they get a bonus after your first survey.","Sizni doÊ»stingiz taklif qildi — birinchi soÊ»rovingizdan keyin u bonus oladi.")}),ms&&e.jsxs("div",{className:"btnrow",style:{marginBottom:4},children:[e.jsx("button",{className:"btn sm "+(M==="phone"?"":"sec"),onClick:()=>{xa("phone"),l("")},children:s("Телефон","Phone","Telefon")}),e.jsx("button",{className:"btn sm "+(M==="email"?"":"sec"),onClick:()=>{xa("email"),l("")},children:"Email"})]}),M==="email"?e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:"Email"}),e.jsx("input",{value:Q,onChange:a=>hs(a.target.value),inputMode:"email",type:"email",placeholder:"[email protected]",onKeyDown:a=>a.key==="Enter"&&C("email")}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn lg",disabled:v,onClick:()=>C("email"),children:v?"…":s("Получить код на email →","Get code by email →","Emailga kod olish →")})})]}):e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Номер телефона","Phone number","Telefon raqami")}),e.jsx("input",{value:Y,onChange:a=>as(a.target.value),inputMode:"tel",placeholder:"+998 90 123 45 67",onKeyDown:a=>{a.key==="Enter"&&(fa?C("telegram"):_e&&C("sms"))}}),e.jsx("p",{className:"note",children:s("Другая страна? Введите номер в международном формате (+7…, +90…) или войдите по email.","Outside Uzbekistan? Use the international format (+7…, +90…) or sign in by email.","Boshqa davlatmi? Raqamni xalqaro formatda kiriting (+7…, +90…) yoki email orqali kiring.")}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),fa?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn lg",disabled:v,onClick:()=>C("telegram"),style:{background:"#229ED9",borderColor:"#229ED9"},children:v?"…":s("Войти через Telegram (бесплатно) →","Sign in with Telegram (free) →","Telegram orqali kirish (bepul) →")})}),_e&&e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn sec",disabled:v,onClick:()=>C("sms"),children:s("Прислать SMS","Send via SMS","SMS yuborish")})})]}):_e?e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn lg",disabled:v,onClick:()=>C("sms"),children:v?"…":s("Получить код →","Get co
19de →","Kod olish →")})}):e.jsx("p",{className:"note",children:s("Вход по номеру сейчас недоступен. Войдите по email или по личному коду.","Phone sign-in is unavailable right now. Use email or your personal code.","Raqam bilan kirish hozir ishlamaydi. Email yoki shaxsiy kod bilan kiring.")})]}),e.jsx("p",{className:"note",style:{textAlign:"center"},children:e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),l(""),w("byCode")},children:s("Войти по личному коду","Sign in with a personal code","Shaxsiy kod bilan kirish")})})]}),U==="code"&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:te?s("Подтвердите номер в Telegram","Confirm your number in Telegram","Raqamni Telegram’da tasdiqlang"):s("Введите код","Enter the code","Kodni kiriting")}),te?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sub",children:Ee?s("В Telegram одна кнопка — «Подтвердить номер». После неё вход произойдёт сам.","One button in Telegram — “Confirm number”. You’ll be signed in right after.","Telegram’da bitta tugma — «Raqamni tasdiqlash». Shundan soÊ»ng kirish oÊ»zi amalga oshadi."):s("Ожидание остановлено. Запросите вход заново.","Waiting stopped. Request sign-in again.","Kutish toÊ»xtadi. Qaytadan soÊ»rang.")}),e.jsxs("p",{className:"note",style:{textAlign:"center"},children:[s("Telegram не открылся? ","Telegram didn’t open? ","Telegram ochilmadimi? "),e.jsx("a",{href:te,children:s("Открыть ещё раз","Open again","Yana ochish")})," · ",e.jsx("a",{href:ds,target:"_blank",rel:"noreferrer",children:s("через браузер","in the browser","brauzer orqali")})]})]}):e.jsx("div",{className:"sub",children:Pe==="email"?e.jsxs(e.Fragment,{children:[s("Мы отправили код на ","We emailed a code to ","Kod emailga yuborildi: "),e.jsx("b",{children:Q.trim()}),"."]}):e.jsxs(e.Fragment,{children:[s("Мы отправили SMS с кодом на ","We texted a code to ","Kod SMS orqali yuborildi: "),e.jsx("b",{children:Y}),"."]})}),ga&&e.jsx("p",{className:"note",style:{color:"var(--amber)"},children:ga}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),te?e.jsxs("details",{style:{marginTop:10},children:[e.jsx("summary",{className:"small muted",style:{cursor:"pointer"},children:s("Ввести код вручную","Enter the code manually","Kodni qoÊ»lda kiritish")}),e.jsx("input",{value:E,onChange:a=>Te(a.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",placeholder:"• • • • • •",style:{marginTop:8},onKeyDown:a=>a.key==="Enter"&&G()}),e.jsx("div",{className:"btnrow",style:{marginTop:8},children:e.jsx("button",{className:"btn",disabled:v||!E,onClick:()=>G(),children:v?"…":s("Подтвердить →","Verify →","Tasdiqlash →")})})]}):e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Код","Code","Kod")}),e.jsx("input",{value:E,onChange:a=>Te(a.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",placeholder:"• • • • • •",onKeyDown:a=>a.key==="Enter"&&G()}),e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn lg",disabled:v,onClick:()=>G(),children:v?"…":s("Подтвердить →","Verify →","Tasdiqlash →")})})]}),e.jsxs("p",{className:"note",style:{textAlign:"center"},children:[e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),C(Pe)},children:s("Отправить код ещё раз","Resend code","Kodni qayta yuborish")}),"  ·  ",e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),l(""),w("phone")},children:Pe==="email"?s("Изменить email","Change email","Emailni oÊ»zgartirish"):s("Изменить номер","Change number","Raqamni oÊ»zgartirish")})]})]}),U==="profile"&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:$==="join"?s("Вступление в панель Sonar","Joining the Sonar panel","Sonar paneliga qoÊ»shilish"):s("Немного о вас","A bit about you","OÊ»zingiz haqingizda")}),k!=="intro"&&e.jsx("div",{className:"small muted",style:{marginTop:2},children:s(`Шаг ${Fe} из ${Oe}`,`Step ${Fe} of ${Oe}`,`${Oe} qadamdan ${Fe}-si`)}),k==="intro"&&e.jsxs(e.Fragment,{children:[$==="join"?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sub",children:de?s(`Здравствуйте, ${de}! Вы вошли через Telegram — вводить номер телефона не нужно.`,`Hello, ${de}! You're signed in with Telegram — no need to type a phone number.`,`Salom, ${de}! Telegram orqali kirdingiz — telefon raqamini terish shart emas.`):s("Вы вошли через Telegram — вводить номер телефона не нужно.","You're signed in with Telegram — no need to type a phone number.","Telegram orqali kirdingiz — telefon raqamini terish shart emas.")}),e.jsx(H,{icon:"target",children:s("Короткие опросы под ваш профиль — обычно около 5 минут","Short surveys matched to your profile — usually about 5 minutes","Profilingizga mos qisqa soÊ»rovlar — odatda 5 daqiqa atrofida")}),e.jsx(H,{icon:"tag",children:ja?s("Баллы за каждый засчитанный опрос: 1 балл = 1 сум — на карту или телефон","Points for every counted survey: 1 point = 1 UZS — card or phone top-up","Har bir hisobga olingan soÊ»rov uchun ball: 1 ball = 1 soÊ»m — kartaga yoki telefonga"):s("Баллы за каждый засчитанный опрос копятся: 1 балл = 1 сум. Баллы не сгорают","Points add up for every counted survey: 1 point = 1 UZS. Points do not expire","Har bir hisobga olingan soÊ»rov uchun ball toÊ»planadi: 1 ball = 1 soÊ»m. Ballar yoÊ»qolmaydi")}),e.jsx(H,{icon:"chart",children:s("Приглашения приходят в этот же чат. Отписаться можно в любой момент.","Invitations arrive in this same chat. You can unsubscribe at any time.","Takliflar shu chatning oÊ»ziga keladi. Istalgan payt obunani bekor qilish mumkin.")}),Sa?e.jsxs("p",{className:"note",style:{color:"var(--green)",marginTop:10},children:["✓ ",ue?s(`Номер ${$e(ue)} подтверждён через Telegram.`,`Number ${$e(ue)} confirmed via Telegram.`,`${$e(ue)} raqami Telegram orqali tasdiqlandi.`):s("Номер подтверждён через Telegram.","Number confirmed via Telegram.","Raqam Telegram orqali tasdiqlandi.")]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"btnrow",style:{marginTop:10},children:e.jsx("button",{className:"btn",disabled:wa,onClick:Ts,style:{background:"#229ED9",borderColor:"#229ED9"},children:wa?"…":s("Подтвердить номер через Telegram","Confirm number via Telegram","Raqamni Telegram orqali tasdiqlash")})}),e.jsx("p",{className:"note",children:s("Одно нажатие — Telegram сам передаст номер, набирать его Ð
19½Ðµ нужно. Номер помогает узнать вас, если вы уже участвовали, и нужен для выплат. Можно вступить и без него.","One tap — Telegram passes the number itself, no typing. It helps us recognise you if you took part before, and it's needed for payouts. You can join without it.","Bir marta bosing — raqamni Telegram oÊ»zi uzatadi, terish shart emas. U ilgari ishtirok etgan boÊ»lsangiz sizni tanishga yordam beradi va toÊ»lovlar uchun kerak. Usiz ham qoÊ»shilish mumkin.")})]}),e.jsx("div",{className:"sub",style:{marginTop:8},children:s("Дальше — несколько коротких вопросов, чтобы подбирать подходящие опросы. Данные хранятся в Узбекистане.","Next — a few short questions so we can match you to the right surveys. Data is stored in Uzbekistan.","Keyingi — sizga mos soÊ»rovlarni tanlash uchun bir necha qisqa savol. Maʼlumotlar OÊ»zbekistonda saqlanadi.")})]}):e.jsx("div",{className:"sub",children:M==="email"?s("Это поможет подбирать подходящие опросы. Email уже подтверждён.","This helps us match you to the right surveys. Your email is verified.","Bu sizga mos soÊ»rovlarni tanlashga yordam beradi. Email tasdiqlandi."):s("Это поможет подбирать подходящие опросы. Телефон уже подтверждён.","This helps us match you to the right surveys. Your phone is verified.","Bu sizga mos soÊ»rovlarni tanlashga yordam beradi. Telefon tasdiqlandi.")}),e.jsx("div",{className:"btnrow",style:{marginTop:12},children:e.jsx("button",{className:"btn lg",onClick:()=>V(1),children:s("Продолжить →","Continue →","Davom etish →")})})]}),k==="langs"&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("На каких языках готовы проходить опросы?","Which languages can you take surveys in?","Qaysi tillarda soÊ»rovlardan oÊ»ta olasiz?")}),e.jsx("div",{className:"chips",children:Gs.map(a=>{const i=Ve.includes(a.v)||a.v===u;return e.jsxs("button",{type:"button",className:"btn "+(i?"":"sec"),onClick:()=>es(r=>r.includes(a.v)?r.filter(g=>g!==a.v):[...r,a.v]),children:[i?"☑":"☐"," ",a.label]},a.v)})}),e.jsx("div",{className:"btnrow",style:{marginTop:12},children:e.jsx("button",{className:"btn lg",onClick:()=>V(1),children:s("Далее →","Next →","Keyingi →")})})]}),k==="geo"&&e.jsxs(e.Fragment,{children:[M==="email"&&ka.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Страна","Country","Mamlakat")}),e.jsxs("select",{value:oe||"",onChange:a=>Ue(a.target.value||null),children:[e.jsx("option",{value:"",children:"—"}),ka.map(a=>e.jsx("option",{value:a.cc,children:u==="uz"?a.name.uz:a.name.ru},a.cc))]})]}),(!oe||oe==="UZ")&&!Be.length?e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Где вы живёте","Where you live","Qayerda yashaysiz")}),e.jsx(Wa,{code:ie,onChange:(a,i)=>{ns(a),ke(i?i.key:""),Xe(i?i.urban?"urban":"rural":"")}})]}):e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Регион","Region","Viloyat")}),e.jsxs("select",{value:ae,onChange:a=>ke(a.target.value),children:[e.jsx("option",{value:"",children:"—"}),(Be.length?Be.map(a=>({v:a.code,ru:a.name,uz:a.name_uz||a.name})):Ya).map(a=>e.jsx("option",{value:a.v,children:u==="uz"?a.uz:a.ru},a.v))]})]}),e.jsx("div",{className:"btnrow",style:{marginTop:12},children:e.jsx("button",{className:"btn lg",disabled:!ae,onClick:()=>V(1),children:s("Далее →","Next →","Keyingi →")})})]}),k==="gender"&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Пол","Gender","Jins")}),e.jsx("div",{className:"chips",children:Za.map(a=>e.jsx("button",{className:"btn "+(Ne===a.v?"":"sec"),onClick:()=>Le(()=>Ja(a.v)),children:u==="uz"?a.uz:a.ru},a.v))})]}),k==="age"&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Возраст","Age","Yosh")}),e.jsx("div",{className:"chips c3",children:li.map(a=>e.jsx("button",{className:"btn "+(Se===a?"":"sec"),onClick:()=>Le(()=>Xa(a)),children:a.replace("-","–")},a))})]}),k==="urban"&&e.jsx(e.Fragment,{children:!ie&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Тип населённого пункта","Settlement","Aholi punkti")}),e.jsx("div",{className:"chips",children:xe.map(a=>e.jsx("button",{type:"button",className:"btn "+(Je===a.v?"":"sec"),onClick:()=>Le(()=>Xe(a.v)),children:u==="uz"?a.uz:a.ru},a.v))})]})}),k==="consents"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"opt"+(se?" sel":""),onClick:()=>is(!se),children:[se?"☑":"☐"," ",s("Согласен получать приглашения на подходящие опросы","I agree to re
19ceive invitations to relevant surveys","Mos soʻrovlarga takliflar olishga roziman")]}),e.jsxs("div",{className:"opt"+(I?" sel":""),onClick:()=>ss(!I),children:[I?"☑":"☐"," ",s("Согласен на обработку данных и участие","I consent to data processing and participation","Maʼlumotlarni qayta ishlash va ishtirokka roziman")]}),e.jsxs("p",{className:"note",children:[s("Как начисляются баллы и какие ответы не засчитываются — ","How points are earned and which answers don't count — ","Ballar qanday hisoblanadi va qaysi javoblar hisobga olinmaydi — "),e.jsx("a",{href:"/panel/rules",target:"_blank",rel:"noopener noreferrer",children:s("«Баллы и правила»","Points & rules","«Ballar va qoidalar»")})]}),e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn lg",disabled:v||!ae||!Ne||!Se||!I,onClick:Cs,children:v?"…":$==="join"?s("Вступить в панель →","Join the panel →","Panelga qoʻshilish →"):s("Завершить регистрацию →","Finish sign-up →","Roʻyxatni yakunlash →")})})]}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),k!=="intro"&&e.jsx("p",{className:"note",style:{textAlign:"center",marginTop:10},children:e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),l(""),V(-1)},children:s("← Назад","← Back","← Orqaga")})}),$==="join"&&k==="intro"&&e.jsxs("p",{className:"note",style:{textAlign:"center"},children:[s("Уже участвуете? ","Already a member? ","Allaqachon aʼzomisiz? "),e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),l(""),T(""),w("phone")},children:s("войти по номеру или личному коду","sign in by phone or personal code","raqam yoki shaxsiy kod bilan kirish")})]})]}),U==="byCode"&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{children:s("Вход по личному коду","Sign in with a personal code","Shaxsiy kod bilan kirish")}),e.jsx("div",{className:"sub",children:s("Личный код можно получить в Telegram-боте командой /kabinet.","Get your personal code in the Telegram bot via /kabinet.","Shaxsiy kodni Telegram-botda /kabinet orqali oling.")}),e.jsx("label",{className:"fl",children:s("Личный код","Personal code","Shaxsiy kod")}),e.jsx("input",{value:Ce,onChange:a=>os(a.target.value.trim()),placeholder:"a1b2c3d4",onKeyDown:a=>a.key==="Enter"&&m(Ce)}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn lg",onClick:()=>m(Ce),children:s("Войти →","Sign in →","Kirish →")})}),e.jsx("p",{className:"note",style:{textAlign:"center"},children:e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),l(""),w("phone")},children:s("← Вход по телефону","← Sign in by phone","← Telefon orqali kirish")})})]})]})});const o=t.panelist,O=t.balance||{balance:0},me=t.payouts!==!1,pe=(t.surveys||[]).filter(a=>a.status!=="complete"),Ea=(t.surveys||[]).filter(a=>a.status==="complete"),J=t.streak||{weeks:0,thisWeek:!1},ge=t.impact||{projects:0},P=(((Ba=t.profileHealth)==null?void 0:Ba.gaps)||[]).length,ye=7-P,N=t.tier||{key:"new",validCompletes:0,next:null},fe=(N.validCompletes||0)===0,$s=t.profileHealth&&t.profileHealth.gaps||[],X=[{gap:"education",q:s("Какое у вас образование?","What is your education?","Maʼlumotingiz qanday?"),opts:We,key:"education"},{gap:"income_band",q:s("Что вы можете себе позволить?","What can your household afford?","Nimani sotib ola olasiz?"),opts:Qe,key:"afford",one:!0},{gap:"employment",q:s("Чем вы заняты?","What do you do?","Nima bilan bandsiz?"),opts:Ze,key:"employment"},{gap:"urban_rural",q:s("Где вы живёте?","Where do you live?","Qayerda yashaysiz?"),opts:xe,key:"urbanRural"},{gap:"gender",q:s("Ваш пол","Your gender","Jinsingiz"),opts:Za,key:"gender"}].find(a=>$s.includes(a.gap))||null,Fs=async(a,i)=>{p("pick"),l("");try{await h.panelSetProfile(c,{[a]:i}),await m(c)}catch(r){p("warn"),l(f(r))}},Os=t.notify&&t.notify.hasTg?s("Первый опрос придёт сюда, в этот чат: обычно около 5 минут, за ответы начисляются баллы.","Your first survey will arrive right here in this chat: usually about 5 minutes, with points for answers.","Birinchi soʻrov shu chatga keladi: odatda 5 daqiqacha, javoblar uchun ball beriladi."):s("Первый опрос придёт приглашением: обычно около 5 минут, за ответы начисляются баллы.","Your first survey will arrive as an invitation: usually about 5 minutes, with points for answers.","Birinchi soʻrov taklif bilan keladi: odatda 5 daqiqacha, javoblar uchun ball beriladi."),_a={new:s("Новичок","Newcomer","Yangi"),bronze:s("Бронза","Bronze","Bronza"),silver:s("Серебро","Silver","Kumush"),gold:s("Золото","Gold","Oltin"),platinum:s("Платина","Platinum","Platina")},Ls={new:"🌱",bronze:"🥉",silver:"🥈",gold:"🥇",platinum:"💎"},Aa=[(()=>{const a=o.district?ii[o.district]:null;if(a)return ni(a);
19const i=(t.regions||[]).find(r=>r.code===o.region);return i?u==="uz"&&i.name_uz?i.name_uz:i.name:K(Ya,o.region,u)||null})(),o.gender==="m"?s("муж","male","erkak"):o.gender==="f"?s("жен","female","ayol"):null,o.age?String(o.age).replace("-","–"):null,(o.langs&&o.langs.length?o.langs:[o.lang]).filter(Boolean).map(Vs).join(", ")||null].filter(Boolean).join(" · "),Da=a=>u==="uz"?`${a} ta maydon`:`${a} ${a%10===1&&a%100!==11?"поле":a%10>=2&&a%10<=4&&(a%100<12||a%100>14)?"поля":"полей"}`,He=()=>{p("tap"),j({district:o.district||"",urbanRural:o.urban_rural||"",education:o.education||"",afford:o.afford||"",incomeUzs:o.income_uzs||"",incomeAmount:o.income_amount?String(o.income_amount):"",householdSize:o.household_size?String(o.household_size):"",employment:o.employment||"",niches:Array.isArray(o.niches)?o.niches:[]}),he("settings");try{window.scrollTo(0,0)}catch{}},Ia=()=>{p("tap"),he("settings");try{window.scrollTo(0,0)}catch{}},Hs=()=>{p("tap"),he("home");try{window.scrollTo(0,0)}catch{}},Ks=e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:10},children:[e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{className:"p-hi",children:ve()?s(`Здравствуйте, ${ve()}!`,`Hello, ${ve()}!`,`Salom, ${ve()}!`):s("Ваш кабинет","Your cabinet","Kabinetingiz")}),e.jsx("div",{className:"small muted",children:s("Участник панели Sonar","Sonar panel member","Sonar panel aʼzosi")})]}),e.jsx(Qa,{value:u,options:["uz","ru"],onChange:a=>{p("pick"),Ca(a)}})]});return Z==="settings"?e.jsxs(je,{children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[e.jsxs("button",{className:"btn sec sm",onClick:Hs,children:["← ",s("Назад","Back","Orqaga")]}),e.jsx("div",{className:"p-hi",style:{fontSize:18},children:s("Настройки и данные","Settings & data","Sozlamalar va maʼlumotlar")})]}),ee&&e.jsx("p",{className:"note",style:{color:"var(--green)"},children:ee}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Профиль","Profile","Profil")}),e.jsx("div",{className:"card",children:d?e.jsxs(e.Fragment,{children:[(!o.country||o.country==="UZ")&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Где вы живёте","Where you live","Qayerda yashaysiz")}),e.jsx(Wa,{code:d.district||"",onChange:(a,i)=>j({...d,district:a,urbanRural:i?i.urban?"urban":"rural":d.urbanRural})})]}),!d.district&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Тип населённого пункта","Settlement","Aholi punkti")}),e.jsx("div",{className:"chips",children:xe.map(a=>e.jsx("button",{type:"button",className:"btn "+(d.urbanRural===a.v?"":"sec"),onClick:()=>j({...d,urbanRural:a.v}),children:u==="uz"?a.uz:a.ru},a.v))})]}),e.jsx("label",{className:"fl",children:s("Образование","Education","Taʼlim")}),e.jsx("div",{className:"chips c3",children:We.map(a=>e.jsx("button",{type:"button",className:"btn "+(d.education===a.v?"":"sec"),onClick:()=>{p("pick"),j({...d,education:a.v})},children:u==="uz"?a.uz:a.ru},a.v))}),e.jsx("label",{className:"fl",children:s("Что вы можете себе позволить?","What can your household afford?","Nimani sotib ola olasiz?")}),e.jsx("div",{className:"chips one",children:Qe.map(a=>e.jsx("button",{type:"button",className:"btn "+(d.afford===a.v?"":"sec"),onClick:()=>{p("pick"),j({...d,afford:a.v})},children:u==="uz"?a.uz:a.ru},a.v))}),e.jsx("label",{className:"fl",children:s("Доход всей семьи в месяц — по желанию","Total household income per month — optional","Butun oila daromadi (ixtiyoriy)")}),e.jsx("p",{className:"note",style:{marginTop:0},children:s("Считайте всех, кто живёт вместе и складывает деньги: зарплаты, пенсии, помощь родных.","Count everyone who lives together and pools money: salaries, pensions, family support.","Birga yashab, pulni birga sarflaydiganlarning hammasini hisoblang: maosh, nafaqa, qarindosh yordami.")}),e.jsx("div",{className:"chips c3",children:ri.map(a=>e.jsx("button",{type:"button",className:"btn "+(d.incomeUzs===a.v?"":"sec"),onClick:()=>{p("pick"),j({...d,incomeUzs:d.incomeUzs===a.v?"":a.v,incomeAmount:""})},children:u==="uz"?a.uz:a.ru},a.v))}),e.jsx("label",{className:"fl",children:s("Или укажите точно, сум в месяц","Or enter the exact amount, UZS per month","Yoki aniq summani kiriting, soʻm/oy")}),e.jsx("input",{value:d.incomeAmount||"",onChange:a=>j({...d,incomeAmount:a.target.value.replace(/[^\d ]/g,""),incomeUzs:""}),inputMode:"numeric",placeholder:"12 000 000"}),e.jsx("label",{className:"fl",children:s("Сколько человек живёт на этот доход","How many people live on this income","Bu daromad bilan necha kishi yashaydi")}),e.jsx("div",{className:"chips c3",children:oi.map(a=>{const i=a==="7+"?"7":a;return e.jsx("button",{type:"button",className:"btn "+(String(d.householdSize||"")===i?"":"sec"),onClick:()=>{p("pick"),j({...d,householdSize:String(d.householdSize||"")===i?"":i})},children:a},a)})}),e.jsx("p",{className:"note",style:{marginTop:4},children:s("Всё это можно пропустить — на подбор опросов не влияет.","All of this is optional — it doesn't affect survey matching.","Bularning barchasi ixtiyoriy — soʻrov tanlashga taʼsir qilmaydi.")}),e.jsx("label",{className:"fl",children:s("Занятость","Employment","Bandlik")}),e.jsx("div",{className:"chips",children:Ze.map(a=>e.jsx("button",{type:"button",className:"btn "+(d.employment===a.v?"":"sec"),onClick:()=>{p("pick"),j({...d,employment:a.v})},children:u==="uz"?a.uz:a.ru},a.v))}),e.jsx("label",{className:"fl",children:s("Это про вас? (можно несколько)","Which apply to you? (multiple)","Sizga tegishli? (bir nechta)")}),e.jsx("div",{className:"chips",children:Ga.map(a=>{const i=(d.niches||[]).includes(a.v);return e.jsxs("button",{type:"button",className:"btn "+(i?"":"sec"),onClick:()=>{p("pick"),j({...d,niches:i?d.niches.filter(r=>r!==a.v):[...d.niches||[],a.v]})},children:[i?"☑":"☐"," ",u==="uz"?a.uz:a.ru]},a.v)})}),e.jsxs("div",{className:"btnrow",style:{marginTop:8},children:[e.jsx("button",{className:"btn",disabled:ea||we,onClick:Ps,style:we?{background:"var(--green)",borderColor:"var(--green)"}:void 0,children:ea?"…":we?s("Сохранено ✓","Saved ✓","Saqlandi ✓"):s("Сохранить","Save","Saqlash")}),e.jsx("button",{className:"btn sec",onClick:()=>j(null),children:s("Отмена","Cancel","Bekor")})]}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-facts",children:Aa||s("Профиль пока пустой","Profile is empty","Profil hozircha boʻsh")}),e.jsxs("div",{className:"p-facts",style:{marginTop:6},children:[s("Тип","Settlement","Punkt"),": ",o.urban_rural?K(xe,o.urban_rural,u):"—"," · ",s("Образование","Education","Taʼlim"),": ",o.education?K(We,o.education,u):"—"," · ",s("Занятость","Employment","Bandlik"),": ",o.employment?K(Ze,o.employment,u):"—"]}),o.afford&&e.jsxs("div",{className:"p-facts",style:{marginTop:4},children:[s("Достаток","Affluence","Farovonlik"),": ",K(Qe,o.afford,u)]}),o.niches&&o.niches.length>0&&e.jsxs("div",{className:"p-facts",style:{marginTop:4},children:[s("Категории","Tags","Toifalar"),": ",o.niches.map(a=>
19K(Ga,a,u)).join(", ")]}),e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn sec",onClick:He,children:s("Обновить профиль","Update profile","Profilni yangilash")})})]})})]}),t.notify&&e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Приглашения на опросы","Survey invitations","SoÊ»rov takliflari")}),e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"opt"+(o.recontact_ok?" sel":""),style:{margin:0},onClick:()=>{p("pick"),Rs(!o.recontact_ok)},children:[o.recontact_ok?"☑":"☐"," ",s("Присылать приглашения на опросы","Send me survey invitations","SoÊ»rov takliflarini yuborish")]}),!o.recontact_ok&&e.jsx("p",{className:"note",style:{marginTop:6},children:s("Приглашения не приходят. Опросы всё равно видны здесь, в кабинете.","No invitations are sent. Surveys are still visible here in your cabinet.","Takliflar kelmaydi. SoÊ»rovlar shu kabinetda baribir koÊ»rinadi.")}),o.recontact_ok&&e.jsx("label",{className:"fl",children:s("Куда присылать","Where to send","Qayerga yuborish")}),o.recontact_ok&&e.jsxs(e.Fragment,{children:[e.jsxs("select",{value:t.notify.channel,onChange:a=>ws(a.target.value),children:[e.jsx("option",{value:"auto",children:s("Авто (Telegram → push → email)","Auto (Telegram → push → email)","Avto (Telegram → push → email)")}),t.notify.hasTg&&e.jsx("option",{value:"telegram",children:"Telegram"}),t.notify.pushSubs>0&&e.jsx("option",{value:"webpush",children:s("Push (браузер)","Push (browser)","Push (brauzer)")}),t.notify.hasEmail&&e.jsx("option",{value:"email",children:"Email"}),e.jsx("option",{value:"none",children:s("Не присылать","Don't send","Yuborilmasin")})]}),Ae.webpush&&typeof navigator<"u"&&"serviceWorker"in navigator&&"PushManager"in window&&e.jsx("div",{className:"btnrow",children:bs?e.jsx("button",{className:"btn sec sm",disabled:le,onClick:Ss,children:le?"…":s("Выключить push здесь","Disable push here","Bu yerda pushni oÊ»chirish")}):e.jsx("button",{className:"btn sec sm",disabled:le,onClick:Ns,children:le?"…":s("🔔 Включить push","🔔 Enable push","🔔 Pushni yoqish")})})]})]})]}),e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Баллы","Points","Ballar")}),e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"p-facts",children:[s("Баланс","Balance","Balans"),": ",e.jsx("b",{children:x(O.balance)})," ",s("баллов","points","ball")," · ",s("1 балл = 1 сум","1 point = 1 UZS","1 ball = 1 soÊ»m")," · ",e.jsx("a",{href:"/panel/rules",style:{color:"var(--teal)"},children:s("Правила","Rules","Qoidalar")})]}),!me&&e.jsx("div",{className:"p-facts",style:{marginTop:6},children:s("Баллы копятся за каждый засчитанный опрос. Вывод денег включим, как только подключим выплаты — баллы не сгорают.","Points add up for every counted survey. Cash-out opens as soon as payouts are live — points don't expire.","Ballar har bir hisobga olingan soÊ»rov uchun toÊ»planadi. Pul yechish toÊ»lovlar ulangach ochiladi — ballar yoÊ»qolmaydi.")}),me&&(t.catalog||[]).filter(a=>a.available&&(a.id==="cash"||a.id==="mobile")).map(a=>{const i=Va[a.id];if(!i)return null;const r=O.balance>=a.min,g=a.requires==="card"&&!o.payout,be=a.taxable&&!(t.payoutIdentity&&t.payoutIdentity.ready),R=b&&b.option===a.id,L=Math.max(0,a.min-O.balance);return e.jsxs("div",{className:"qcard",style:{marginTop:8},children:[e.jsxs("div",{className:"meta",style:{alignItems:"flex-start"},children:[e.jsxs("div",{style:{flex:1},children:[e.jsxs("b",{children:[i.icon," ",i.label()]}),e.jsx("div",{className:"small muted",style:{marginTop:2},children:i.desc()}),!r&&e.jsx("div",{className:"small muted",style:{marginTop:2},children:s(`Доступно с ${x(a.min)} баллов — осталось ${x(L)}`,`Available from ${x(a.min)} points — ${x(L)} to go`,`${x(a.min)} balldan boshlab — yana ${x(L)}`)})]}),!R&&e.jsx("button",{className:"btn sm",disabled:!r,onClick:()=>Is(a),children:s("Обменять","Redeem","Almashtirish")})]}),!r&&e.jsx("div",{className:"p-bar",children:e.jsx("i",{style:{width:Math.min(100,Math.round(O.balance/Math.max(1,a.min)*100))+"%"}})}),R&&e.jsx("div",{style:{marginTop:8},children:g?e.jsx("p",{className:"note",children:s("Сначала сохраните карту для выплат ниже.","Save a payout card below first.","Avval pastda toÊ»lov kartasini saqlang.")}):be?e.jsxs("div",{children:[e.jsx("p",{className:"note",style:{marginTop:0},children:s("Чтобы выплатить деньги, нам нужен ваш ПИНФЛ: с денежного вознаграждения мы как налоговый агент удерживаем 12 % и отчитываемся в налоговую. Это спрашивается один раз.","To pay you we need your PINFL: as the tax agent we withhold 12 % from a cash reward and report it to the tax office. We ask once.","Pulni toÊ»lash uchun JShShIR kerak: soliq agenti sifatida 12 % ushlab qolamiz va soliq idorasiga hisobot beramiz. Bir marta soÊ»raladi.")}),e.jsx("label",{className:"fl",children:s("ПИНФЛ (14 цифр с ID-карты)","PINFL (14 digits from your ID card)","JShShIR (ID-kartadagi 14 raqam)")}),e.jsx("input",{value:ze,onChange:A=>ra(A.target.value.replace(/[^0-9 ]/g,"")),inputMode:"numeric",placeholder:"1234 5678 9012 34"}),e.jsx("div",{className:"small muted",style:{marginTop:2},children:s("Он есть на ID-карте и в приложении my.gov.uz. Используется только для выплаты и налоговой отчётности и никогда не связывается с вашими ответами.","It is on your ID card and in the my.gov.uz app. Used only for the payout and tax reporting, never linked to your answers.","U ID-kartada va my.gov.uz ilovasida bor. Faqat toÊ»lov va soliq hisoboti uchun ishlatiladi.")}),e.jsxs("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginTop:10,cursor:"pointer"},children:[e.jsx("input",{type:"checkbox",checked:qe,onChange:A=>oa(A.target.checked),style:{marginTop:3,width:"auto"}}),e.jsxs("span",{className:"small",children:[s("Принимаю ","I accept the ","Qabul qilaman: "),e.jsx("a",{href:"/panel/oferta",target:"_blank",rel:"noopener",style:{color:"var(--teal)"},children:s("условия вознаграждения","reward terms","mukofot shartlari")})]})]}),e.jsxs("div",{className:"btnrow",style:{marginTop:10},children:[e.jsx("button",{className:"btn",disabled:ca||ze.replace(/\D/g,"").length!==14||!qe,onClick:Ds,children:ca?"…":s("Сохранить и продолжить","Save and continue","Saqlash va davom etish")}),e.jsx("button",{className:"btn sec",onClick:()=>B(null),children:s("Отмена","Cancel","Bekor")})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Сколько баллов обменять","How many points","Necha ball almashtirish")}),e.jsx("input",{value:b.amount,onChange:A=>B({...b,amount:A.target.value.replace(/\D/g,"")}),inputMode:"numeric"}),a.id==="mobile"&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",children:s("Номер телефона для пополнения","Phone number to top up","ToÊ»ldirish uchun telefon raqami")}),e.jsx("input",{value:b.phone,onChange:A=>B({...b,phone:A.target.value}),inputMode:"tel",placeholder:"+998 90 123 45 67"})]}),a.id==="cash"&&o.payout&&e.jsxs("div",{className:"small muted",children:[s("Выплата на карту","Payout to card","Kartaga toÊ»lov"),": ",o.payout]}),e.jsxs("div",{className:"btnrow",style:{marginTop:8},children:[e.jsx("button",{className:"btn",disabled:ta||Number(b.amount)<a.min||Number(b.amount)>O.balance||a.id==="mobile"&&(b.phone||"").replace(/\D/g,"").length<9,onClick:Bs,children:ta?"…":s("Подтвердить обмен","Confirm","Tasdiqlash")}),e.jsx("button",{className:"btn sec",onClick:()=>B(null),children:s("Отмена","Cancel","Bekor")})]})]})})]},a.id)}),me&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:"fl",style:{marginTop:12},children:s("Карта для выплат (Uzcard/Humo)","Payout card (Uzcard/Humo)","ToÊ»lov kartasi (Uzcard/Humo)")}),e.jsx("div",{className:"small muted",children:o.payout?`${s("Сохранена карта","Saved card","Saqlangan karta")}: ${o.payout}`:s("Карта для выплат не указана.","No payout card set.","ToÊ»lov kartasi koÊ»rsatilmagan.")}),e.jsx("input",{value:ia,onChange:a=>na(a.target.value.replace(/[^\d ]/g,"")),inputMode:"numeric",placeholder:"8600 •••• •••• ••••"}),e.jsx("div",{className:"btnrow",children:e.jsx("button",{className:"btn sec",onClick:As,children:s("Сохранить карту","Save card","Kartani saqlash")})})]}),(t.redemptions||[]).length>0&&e.jsxs("div",{style:{marginTop:12},children:[e.jsx("div",{className:"small muted",style:{marginBottom:4},children:s("История обменов","Redemption history","Almashtirishlar tarixi")}),(t.redemptions||[]).map(a=>{var i;return e.jsxs("div",{className:"small muted",style:{display:"flex",gap:8,flexWrap:"wrap"},children:[e.jsx("span",{children:((i=Va[a.option])==null?void 0:i.label())||a.option}),e.jsxs("span",{children:["· ",x(a.amount)," ",s("баллов","points","ball")]}),e.jsxs("span",{style:{color:a.status==="fulfilled"?"var(--green)":a.status==="failed"?"var(--red)":"var(--amber)"},children:["· ",ci(a.status)]})]},a.id)})]})]})]}),t.referral&&e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Друзья","Friends","DoÊ»stlar")}),e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"p-facts",children:[s("Друг регистрируется по вашей ссылке и проходит первый опрос — вам","A friend signs up with your link and completes their first survey — you get","DoÊ»stingiz havolangiz bilan roÊ»yxatdan oÊ»tib, birinchi soÊ»rovni bajaradi — sizga")," ",e.jsx("b",{children:"3 000"})," ",me?s("сум","UZS","soÊ»m"):s("баллов","points","ball"),"."]}),e.jsx("input",{readOnly:!0,value:t.referral.link,onFocus:a=>a.currentTarget.select(),style:{marginTop:8,fontSize:12}}),e.jsxs("div",{className:"btnrow",children:[e.jsx("button",{className:"btn sec",onClick:()=>{p("ok"),Es()},children:s("Скопировать","Copy","Nusxalash")}),e.jsx("button",{className:"btn sec",onClick:()=>{p("tap"),rs(a=>!a)},children:ma?s("Скрыть QR","Hide QR","QR yashirish"):s("QR-код","QR code","QR-kod")})]}),ma&&e.jsx("div",{style:{marginTop:12,display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:e.jsx("div",{style:{background:"#fff",padding:12,borderRadius:12},children:e.jsx(si,{value:t.referral.link,size:184,level:"M",marginSize:1,fgColor:"#0B2A4A"})})}),e.jsxs("div",{className:"p-facts",style:{marginTop:8},children:[s("Приглашено","Invited","Taklif qilingan"),": ",t.referral.invited," · ",s("начислено","earned","hisoblangan"),": ",x(t.referral.earned)]})]})]}),t.alsoInterviewer&&e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Другая роль","Other role","Boshqa rol")}),e.jsxs("a",{className:"p-row",href:"/field",onClick:()=>p("tap"),children:[e.jsxs("span",{children:[s("Рабочий кабинет интервьюера","Interviewer work cabinet","Intervyuer ish kabineti"),e.jsx("div",{className:"p-sub",children:s("Проекты, наÐ
19·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ, обучение и заработок","Projects, assignments, training and earnings","Loyihalar, topshiriqlar, oÊ»qish va daromad")})]}),e.jsx("span",{className:"p-go",children:"→"})]})]}),e.jsxs("div",{className:"p-danger",children:[e.jsx("h2",{children:s("Аккаунт","Account","Hisob")}),e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),_s()},children:s("Выйти из панели","Leave the panel","Paneldan chiqish")}),e.jsx("a",{href:"#",onClick:a=>{a.preventDefault(),qa()},children:s("Выйти на этом устройстве","Log out on this device","Bu qurilmada chiqish")}),e.jsx("div",{style:{marginTop:8},children:e.jsx("a",{className:"warn",href:"#",onClick:a=>{a.preventDefault(),Us()},children:s("Удалить мои данные безвозвратно","Delete my data permanently","Maʼlumotlarimni butunlay oÊ»chirish")})}),e.jsxs("div",{className:"small muted",style:{marginTop:6},children:[s("Ответы останутся в исследованиях обезличенными.","Answers stay in studies de-identified.","Javoblar tadqiqotlarda shaxssiz qoladi.")," ",e.jsx("a",{href:"/data",target:"_blank",rel:"noopener noreferrer",children:s("Защита данных","Data protection","Maʼlumotlar himoyasi")})]})]})]}):e.jsxs(je,{children:[Ks,!fe&&e.jsxs("div",{className:"p-stat",children:[e.jsx("b",{children:x(O.balance)}),e.jsxs("span",{children:[s("баллов","points","ball")," · ",s("1 балл = 1 сум","1 point = 1 UZS","1 ball = 1 soÊ»m")]})]}),ee&&e.jsx("p",{className:"note",style:{color:"var(--green)"},children:ee}),y&&e.jsx("p",{className:"note",style:{color:"var(--red)"},children:y}),o.status!=="active"&&e.jsx("p",{className:"note",style:{color:"var(--amber)"},children:s("Вы на паузе — приглашения не приходят. Профиль сохранён.","You are paused — no invitations. Your profile is kept.","Siz pauzadasiz — takliflar kelmaydi. Profil saqlangan.")}),fe&&e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Что дальше","What's next","Keyingi qadam")}),pe.length?pe.map(a=>e.jsxs("a",{className:"p-row",href:a.url,onClick:()=>p("tap"),children:[e.jsxs("span",{style:{minWidth:0},children:[a.title,e.jsx("div",{className:"p-sub",children:s("около 5 минут — это ваш первый опрос","about 5 minutes — your first survey","5 daqiqacha — bu birinchi soÊ»rovingiz")})]}),e.jsx("span",{className:"p-go",children:"→"})]},a.id)):e.jsx("div",{className:"card",children:e.jsx("div",{className:"p-facts",children:Os})}),X&&e.jsxs("div",{className:"card",style:{marginTop:8},children:[e.jsx("div",{className:"p-facts",style:{fontWeight:600},children:X.q}),e.jsx("div",{className:"small muted",style:{marginTop:2},children:s("Один вопрос — и подходящих опросов станет больше.","One question — and more surveys will match you.","Bitta savol — va mos soÊ»rovlar koÊ»payadi.")}),e.jsx("div",{className:"chips"+(X.one?" one":""),style:{marginTop:8},children:X.opts.map(a=>e.jsx("button",{type:"button",className:"btn sec",onClick:()=>Fs(X.key,a.v),children:u==="uz"?a.uz:a.ru},a.v))})]})]}),!fe&&e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Опросы для вас","Surveys for you","Sizga soÊ»rovlar")}),pe.length?pe.map(a=>e.jsxs("a",{className:"p-row",href:a.url,onClick:()=>p("tap"),children:[e.jsxs("span",{style:{minWidth:0},children:[a.title,e.jsx("div",{className:"p-sub",children:s("около 5 минут","about 5 minutes","5 daqiqacha")})]}),e.jsx("span",{className:"p-go",children:"→"})]},a.id)):e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"p-empty",children:[e.jsx("div",{className:"p-emoji",children:"📡"}),e.jsx("p",{children:s("Пока нет подходящих опросов. Как только появится — придёт приглашение.","No matching surveys yet. You'll get an invitation as soon as one appears.","Hozircha mos soÊ»rov yoÊ»q. Paydo boÊ»lishi bilan taklif keladi.")})]}),e.jsx("div",{className:"small muted",style:{marginTop:12,fontWeight:600},children:s("Чтобы их стало больше:","To get more of them:","Ular koÊ»payishi uchun:")}),P>0&&e.jsxs("button",{className:"p-row",onClick:He,children:[e.jsxs("span",{children:[s("Дозаполнить профиль","Complete your profile","Profilni toÊ»ldirish"),e.jsx("div",{className:"p-sub",children:s(`Осталось ${Da(P)} — под них подбираются опросы`,`${P} fields left — surveys are matched by them`,`Yana ${Da(P)} — soÊ»rovlar shunga qarab tanlanadi`)})]}),e.jsx("span",{className:"p-go",children:"→"})]}),t.referral&&e.jsxs("button",{className:"p-row",onClick:Ia,children:[e.jsxs("span",{children:[s("Позвать друга","Invite a friend","DoÊ»stni taklif qilish"),e.jsx("div",{className:"p-sub",children:s("+3 000 после его первого опроса","+3 000 after their first survey","Uning birinchi soÊ»rovidan keyin +3 000")})]}),e.jsx("span",{className:"p-go",children:"→"})]})]}),Ea.length>0&&e.jsxs("div",{className:"p-facts",style:{marginTop:8},children:[s("Пройдено опросов","Completed surveys","Bajarilgan soÊ»rovlar"),": ",Ea.length]})]}),!fe&&e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Ваш вклад","Your impact","Hissangiz")}
19),e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"p-facts",children:[Ls[N.key||"new"]," ",_a[N.key||"new"]," · ",s("засчитано опросов","valid surveys","hisoblangan soʻrovlar"),": ",e.jsx("b",{children:N.validCompletes}),N.next?` · ${s("до","to","gacha")} «${_a[N.next.key]}» ${s("ещё","need","yana")} ${N.next.needValid}`:` · ${s("максимальный уровень ✓","top tier ✓","eng yuqori daraja ✓")}`]}),N.next&&N.next.minValid>0&&e.jsx("div",{className:"p-bar",children:e.jsx("i",{style:{width:Math.min(100,Math.round(N.validCompletes/N.next.minValid*100))+"%"}})}),ge.projects>0&&e.jsxs("div",{className:"p-facts",style:{marginTop:8},children:["🗣️ ",s(`Ваш голос учтён в ${ge.projects} исследованиях`,`Your voice counted in ${ge.projects} studies`,`Ovozingiz ${ge.projects} ta tadqiqotda inobatga olindi`)]}),J.weeks>0&&e.jsxs("div",{className:"p-facts",children:["🔥 ",s(`Серия: ${J.weeks} нед. подряд`,`Streak: ${J.weeks} weeks`,`Seriya: ${J.weeks} hafta`),J.thisWeek?" · "+s("эта неделя засчитана","this week counted","bu hafta hisoblandi"):""]})]})]}),e.jsxs("div",{className:"p-sec",children:[e.jsx("h2",{children:s("Профиль","Profile","Profil")}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-facts",children:Aa||s("Профиль пока пустой","Profile is empty","Profil hozircha boʻsh")}),e.jsx("div",{className:"p-facts",style:{marginTop:6},children:s(`Заполнено ${ye} из 7`,`Filled ${ye} of 7`,`Toʻldirilgan: 7 dan ${ye}`)}),e.jsx("div",{className:"p-bar",children:e.jsx("i",{style:{width:Math.round(ye/7*100)+"%"}})}),e.jsxs("div",{className:"btnrow",children:[e.jsx("button",{className:"btn sec",onClick:He,children:P>0?s("Дозаполнить","Complete","Toʻldirish"):s("Обновить профиль","Update profile","Profilni yangilash")}),P===0&&((Ua=t.profileHealth)==null?void 0:Ua.needsReprofile)&&o.status==="active"&&e.jsxs("button",{className:"btn sec",onClick:Ms,children:["✓ ",s("Всё актуально","All up to date","Hammasi dolzarb")]})]}),((Ma=t.profileHealth)==null?void 0:Ma.needsReprofile)&&e.jsx("div",{className:"p-facts",style:{marginTop:6},children:P===0?s("Раз в полгода просим обновить профиль: работа, достаток, район могли измениться.","Every six months we ask you to update your profile: job, affluence or district may have changed.","Yarim yilda bir marta profilni yangilashni soʻraymiz: ish, farovonlik, tuman oʻzgargan boʻlishi mumkin."):s("Сначала заполните оставшиеся поля — подтверждать пока нечего.","Fill in the remaining fields first — there is nothing to confirm yet.","Avval qolgan maydonlarni toʻldiring — hozircha tasdiqlaydigan narsa yoʻq.")})]})]}),e.jsxs("button",{className:"p-row",style:{marginTop:18},onClick:Ia,children:[e.jsxs("span",{children:[s("Настройки и данные","Settings & data","Sozlamalar va maʼlumotlar"),e.jsx("div",{className:"p-sub",children:s("Уведомления, баллы и выплаты, друзья, аккаунт","Notifications, points and payouts, friends, account","Bildirishnomalar, ballar va toʻlovlar, doʻstlar, hisob")})]}),e.jsx("span",{className:"p-go",children:"→"})]})]})}export{qi 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.