PageSourceSearch

https://new.pingi.co/_next/static/chunks/983-606194e1c78d8fab.js

js pingi.co collected 2026-10-01 14:58:36 UTC 9,131 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[983],{95760:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(e){if(!e)return e;var t={"۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"},n={"٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9"},i=e.toString();return(i=i.replace(/[۰-۹]/g,function(e){return t[e]})).replace(/[٠-٩]/g,function(e){return n[e]})}},50983:function(e,t,n){"use strict";n.r(t);var i=n(47568),r=n(26042),s=n(69396),a=n(99534),o=n(828),l=n(51351),c=n(97582),u=n(85893),d=n(67294),$=n(11163),g=n.n($),m=n(41664),h=n.n(m),_=n(60045),p=n(9473),f=n(28904),v=n(31955),x=n(95239),Z=n(16536),j=n(71230),b=n(15746),N=n(79531),w=n(71577),y=n(20835),k=n(50338),I=n(42526),C=n(11612),A=n.n(C),T=n(34840),S=n(41402),E=n(1451),z=n(9407),F=n(95760),q=n(17532),L=function(e){var t=e.shown,n=(0,p.I0)(),m=(0,$.useRouter)(),C=m.query,L=(0,o.Z)(x.Z.useForm(),1)[0],P=(0,d.useState)(!1),B=P[0],D=P[1],V=(0,d.useState)(!0),U=V[0],G=V[1],H=(0,d.useState)({}),J=H[0],K=H[1],O=(0,d.useState)(!0);O[0],O[1];var R,X,M=(0,d.useState)(!1),Q=M[0],W=M[1],Y=(0,d.useRef)(),ee=(R=(0,i.Z)(function(e,t){var i,o,l,u,d,$,h,p,x,j,b,N,w,A,S,E,L,P,B;return(0,c.__generator)(this,function(c){switch(c.label){case 0:D(!0),i=e.username,o=e.captcha_value,l=e.password,u=(0,a.Z)(e,["username","captcha_value","password"]),e=(0,s.Z)((0,r.Z)({},u),{password:(0,F.N)(l),mobile:k.d.mobileConvertToIntForm(i),email:null==i?void 0:i.toLowerCase(),captchaCode:o,captchaUuid:t}),isNaN(i)?delete e.mobile:delete e.email,c.label=1;case 1:return c.trys.push([1,9,10,11]),[4,(0,_.tm)(f.Z.SESSION_LOGIN,e,!1)];case 2:if(($=(d=c.sent()).data).success)return[3,7];return j=$.statusCode,b=(0,I.SF)((null==$?void 0:null===(h=$.error)||void 0===h?void 0:h.detail)||(null==$?void 0:null===(p=$.error)||void 0===p?void 0:p.code)),[4,et()];case 3:if(c.sent(),401===j?W(!0):W(!1),(null==$?void 0:null===(x=$.error)||void 0===x?void 0:x.code)!=="account_unverified")return[3,6];return N={},Z.ZP.success((N.content=b,N.className="ant-message-bg-success",N)),[4,n(T.ps(e))];case 4:return c.sent(),w={},[4,g().push((w.pathname="/verify",w.query={transactionId:$.error.transactionId},w))];case 5:c.sent(),c.label=6;case 6:return A={},Z.ZP.error((A.content=b,A.className="ant-message-bg-error",A)),[3,8];case 7:S=$.data;try{E=localStorage.getItem("showFirstLoginAttention"),null===E&&localStorage.setItem("showFirstLoginAttention",!0),localStorage.setItem("userJustLoggedIn",!0)}catch(V){}L={},S.mfa?((0,q.NB)(null==C?void 0:C.redirect),m.push((L.pathname="/mfa-login",L.query=(0,s.Z)((0,r.Z)({},C),{mfa_type:S.mfa,username:i,transactionId:S.transactionId}),L))):(P=new URLSearchParams(C).toString(),v.Z.set("access_token",S.accessToken,z.D),v.Z.set("refresh_token",S.refreshToken,z.D),n(y.ju(S.accessToken)).then(function(){(null==C?void 0:C.redirect)?g().push(C.redirect):P?g().push("/?".concat(P)):g().push("/")})),c.label=8;case 8:return[3,11];case 9:return B=c.sent(),console.log(B),[3,11];case 10:return D(!1),[7];case 11:return[2]}})}),function(e,t){return R.apply(this,arguments)}),et=(X=(0,i.Z)(function(){var e,t,n,i,r,s;return(0,c.__generator)(this,function(a){switch(a.label){case 0:G(!0),D(!0),a.label=1;case 1:return a.trys.push([1,3,,4]),n={},[4,(0,_.tm)(f.Z.CAPTCHA,(n.captchaUuid=null==J?void 0:J.uuid,n),!1)];case 2:return t=(e=a.sent()).data,i={},t.ok?K(r=t.data):(console.log("There is an error on retrieve captcha"),Z.ZP.error((i.content="با عرض پوزش، خطایی در تولید کپچا بوجود آمده است، لطفا لحظاتی دیگر امتحان کنید.",i.className="ant-message-bg-error",i.duration=10,i))),[3,4];case 3:return s=a.sent(),console.log(s),[3,4];case 4:return G(!1),D(!1),[2]}})}),function(){return X.apply(this,arguments)});return(0,d.useEffect)(function(){et()},[]),(0,d.useEffect)(function(){t&&setTimeout(function(){return Y.current.style.opacity=1},20)},[t]),(0,u.jsx)("div",{ref:Y,className:A().site_login__form_container,children:(0,u.jsx)(x.Z,{form:L,onFinish:function(e){return ee(e,null==J?void 0:J.uuid)},className:"global-form",layout:"vertical",size:"large",children:(0,u.jsxs)(j.Z,{gutter:[24,0],className:A().main__form,children:[(0,u.jsxs)(b.Z,{span:24,className:"pb-8",children:[(0,u.jsx)("h1",{className:A().main__title,children:"ورود به حساب کاربری"}),(0,u.jsx)("h2",{className:A().main__description,children:"خرید و فروش ارزهای دیجیتال، ساده و سریع"})]}),(0,u.jsx)(b.Z,{span:24,children:(0,u.jsx)(x.Z.Item,{name:"username",validateTrigger:["onBlur"],getValueFromEvent:function(e){var t,n=e.target;return t=k.d.digitToEn(n.value.trim()),/^([A-Za-z0-9@.+])+$/.test(t)?t:t.slice(0,-1)},rules:[{required:!0,whitespace:!1,message:"لطفا ایمیل یا شماره موبایل را وارد نمایید."},function(e){var e=null!==e?e:(0,l.Z)(TypeError("Cannot destructure undefined"));return{validator:function(e,t){if(t)return isNaN(t)?/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)?Promise.resolve():Promise.reject("ایمیل صحیح نمی‌باشد!"):/^(\+98|0)?9\d{9}$/.test(t)?Promise.resolve():Promise.reject("موبایل صحیح نمی‌باشد!");return Promise.reject()}}},],label:"ایمیل یا شماره موبایل",extra:Q&&(0,u.jsx)(h(),{href:"/register",children:(0,u.jsx)("a",{className:"signin--signup-mini",title:"هم‌اکنون ثبت‌نام کنید",children:"هم‌اکنون ثبت‌نام کنید"})}),children:(0,u.jsx)(N.Z,{className:"english-content persian-number",tabIndex:1,placeholder:""})})}),(0,u.jsx)(b.Z,{span:24,children:(0,u.jsx)(x.Z.Item,{name:"password",validateTrigger:["onBlur"],rules:[{required:!0,whitespace:!1,message:"لطفا رمز ورود را وارد نمایید."},],label:"رمز ورود",className:A().site_login__password,extra:(0,u.jsx)(h(),{href:"/reset-password",children:(0,u.jsx)("a",{title:"بازیابی رمز ورود",children:"بازیابی رمز ورود"})}),children:(0,u.jsx)(N.Z.Password,{className:"english-content",tabIndex:2,placeholder:""})})}),(0,u.jsx)(b.Z,{span:24,children:(0,u.jsxs)(j.Z,{children:[(0,u.jsx)(b.Z,{span:16,children:(0,u.jsx)(x.Z.Item,{name:"captcha_value",validateTrigger:["onBlur","onChange"],getValueFromEvent:function(e){return e.target.value.trim().toUpperCase()},rules:[{required:!0,whitespace:!1,message:"لطفا عبارت امنیتی را وارد کنید."},function(e){var e=null!==e?e:(0,l.Z)(TypeError("Cannot destructure undefined"));return{validator:function(e,t){return t?/^[a-zA-Z]+$/.test(t)?5===t.length?Promise.resolve():Promise.reject("لطفا هر ۵ حرف را وارد کنید."):Promise.reject("لطفا فقط حروف انگلیسی وارد کنید."):Promise.reject()}}}],label:"عبارت امنیتی",className:A().site_login__captcha,children:(0,u.jsx)(N.Z,{maxLength:5,suffix:(0,u.jsx)(E.wNS,{size:14,color:"var(--text-color-scondary)",onClick:function(){return et()}}),className:"english-content",placeholder:"",tabIndex:3})})}),(0,u.jsx)(b.Z,{span:8,children:(null==J?void 0:J.image)&&(0,u.jsx)("div",{style:{background:"#fff",marginTop:"30px",overflow:"hidden",display:"flex",justifyContent:"center"},children:(0,u.jsx)(S.Z,{loading:U,size:"small",children:(0,u.jsx)("img",{style:{cursor:"pointer"},onClick:function(){return et()},src:"data:image/png;base64, ".concat(null==J?void 0:J.image),alt:"عبارت امنیتی"})})})})]})}),(0,u.jsx)(b.Z,{span:24,className:"pt-6",children:(0,u.jsx)(w.Z,{type:"primary",loading:B,className:"text-base",tabIndex:4,htmlType:"submit",block:!0,children:"ورود به حساب کاربری"})})]})})})};t.default=L},11612:function(e){e.exports={site_login:"login_site_login__kcEtf",site_login__container:"login_site_login__container__cP8zx",site_login__bg:"login_site_login__bg__sihKu",section__right:"login_section__right__1AGjK",section__caution:"login_section__caution__iQvAv",main:"login_main__C9481",main__title_container:"login_main__title_container__McdsY",main__title:"login_main__title__XvavX",main__title_image:"login_main__title_image__8LVyu",main__description:"login_main__description__RVE9x",site_login__link:"login_site_login__link__dU0DJ",site_login__side:"login_site_login__side__p7ABs",site_login__form_container:"login_site_login__form_container__gAwKj",site_login__password:"login_site_login__password__yTTAD",site_login__captcha:"login_site_login__captcha__Wr3HG","ant-statistic":"login_ant-statistic__Zzni6","ant-statistic-content":"login_ant-statistic-content__g2eFg",intro:"login_intro__NB2ed",intro__block:"login_intro__block__XO3vi",intro__block__started:"login_intro__block__started__h_VyA",intro__title:"login_intro__title__qfmHC",intro__description:"login_intro__description__D5g7J",intro__animate:"login_intro__animate__tdP6i",intro__animate__started:"login_intro__animate__started__1hkqv"}},51351:function(e,t,n){"use strict";function i(e){throw e}n.d(t,{Z:function(){return i}})}}]);

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.