PageSourceSearch

https://bizmedia.uz/desktop/static/js/9877.86aaaa55.chunk.js

js bizmedia.uz collected 2026-10-09 16:53:56 UTC 3,918 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreact_starter=self.webpackChunkreact_starter||[]).push([[9877],{9877:(e,a,t)=>{t.r(a),t.d(a,{default:()=>k});var i=t(9950),s=t(43939),n=t(41397),l=t(21215),r=t.n(l),o=t(67818),u=t(82569),d=t(28429),m=t(42074),g=t(49348),h=t(7094),c=t(79303),p=t(64958),f=t(40185),v=t(73219),b=t(80398),_=t(44414);const k=()=>{const{t:e}=(0,o.Bd)(),a=(0,d.Zp)(),t=(0,u.wA)(),l=r().parse(window.location.search,{ignoreQueryPrefix:!0}),[k,N]=(0,i.useState)({isOpen:!1,items:[]});return(0,_.jsx)(i.Fragment,{children:(0,_.jsx)("div",{className:"signup__formside",children:(0,_.jsxs)("div",{className:"signup__form",children:[(0,_.jsx)("h2",{className:"signup__form-title",children:e("Kirish")}),(0,_.jsx)("p",{className:"signup__form-desc mb-0",children:e("Sizda O\u2019zbekiston telefon raqami bo\u2019lsa. sms kod orqali  kirishingiz mumkin, agarda siz chet elda bo\u2019lsangiz unda e-mail orqali")}),(0,_.jsx)("div",{className:"mb-6",children:(0,_.jsx)(m.N_,{to:"/auth/register",className:"signup__form-link",children:e("ro\u2019yxatdan o\u2019ting")})}),(0,_.jsx)(c.A,{method:"post",url:"/user/login",params:{include:"user.country"},onSubmit:(e,a)=>{let{setFieldValue:t,setFieldError:i,setFieldTouched:s}=a;const l=(0,n.get)(e,"login");if(l||(i("login","Telefon raqam yoki e-mail kiriting"),s("login",!0)),isNaN(l))t("login",l);else{if(12===l.length&&l.startsWith("998")){t("login",p._$.formatInputPhoneNumber("+"+l))}if(9===l.length){t("login",p._$.formatInputPhoneNumber("+998 "+l))}if(11===l.length&&l.startsWith("7")){t("login",p._$.formatInputPhoneNumberRu("+"+l))}if(10===l.length){t("login",p._$.formatInputPhoneNumberRu("+7"+l))}}},onSuccess:i=>{12===(0,n.get)(i,"status")?(a("/"),t((0,f.Lz)(i)),p.IG.set("token",(0,n.get)(i,"data.token")),g.oR.success(e("Siz muvaffaqiyatli tizimga kirdingiz!"))):(a(`/auth/confirm?path=login&value=${(0,n.get)(i,"data.sent_to")}`),g.oR.success((0,n.get)(i,"data.sent_to")+" "+e("ga kod jonatildi!")))},onError:t=>{13===(0,n.get)(t,"response.data.status")&&a(`/auth/register?value=${(0,n.get)(t,"response.data.data.login")}`),18===(0,n.get)(t,"response.data.status")&&N({isOpen:!0,items:(0,n.get)(t,"response.data.data")}),g.oR.error(e((0,n.get)(t,"response.data.message")))},fields:[{name:"login",required:!0,value:Number(l.value)?String(l.value).startsWith("998")?p._$.formatInputPhoneNumber(l.value):p._$.formatInputPhoneNumberRu(l.value):l.value,onSubmitValue:e=>e.startsWith("+")?e.replace("+","").replaceAll(" ",""):isNaN(e)||12===e.length&&e.startsWith("998")?e:9===e.length?"998"+e:11===e.length&&e.startsWith("7")?e:10===e.length?"7"+e:void 0},{name:"password"},{name:"type",value:1},{name:"device_name",value:(0,n.get)(navigator,"userAgentData.platform",null)}],children:t=>{let{handleSubmit:i,isLoading:l,values:r,setFieldValue:o,setFieldError:u,setFieldTouched:d}=t;const m=(0,n.get)(r,"login").startsWith("+")||!isNaN((0,n.get)(r,"login")),g=p._$.validateEmail((0,n.get)(r,"login"));return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{style:{minHeight:102,maxHeight:g?250:102,transition:"all 0.3s ease"},children:[(0,_.jsx)(s.D0,{component:h.C8.PhoneEmail,name:"login",label:e("E-mail yoki telefon raqam"),placeholder:e("Kiriting"),autoFocus:!0}),!m&&g?(0,_.jsx)(s.D0,{component:h.C8.InputPassword,containerClassName:"animation-fade",name:"password",placeholder:e("Parol"),validate:a=>{if(!a)return e("Parol kiritilmadi")},label:e("Parolni kiriting"),message:e("Parol kiritlmadi")}):null]}),(0,_.jsx)(v.A,{deviceData:k,setDeviceData:N,handleSubmit:i}),m?(0,_.jsx)("div",{style:{height:54}}):(0,_.jsx)("div",{className:"d-flex justify-content-end mb-5",children:(0,_.jsx)("span",{className:"signup__form-link ",type:"button",onClick:()=>{a("/auth/user-email")},children:e("Parolingizni unutdingizmi?")})}),(0,_.jsx)(h.$n,{disabled:l,label:e("Akkountga kirish"),isLoading:l,className:"w-full",type:"submit"})]})}}),(0,_.jsx)(b.A,{})]})})})}}}]);

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.