PageSourceSearch

https://raastin.com/_next/static/chunks/pages/auth/set-password-35e33f00074f408a.js

js raastin.com collected 2026-10-07 04:03:59 UTC 6,673 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="05ad0131-206a-4d2d-8c12-e10e8fce6fff",e._sentryDebugIdIdentifier="sentry-dbid-05ad0131-206a-4d2d-8c12-e10e8fce6fff")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51791],{13241:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(18153),s=r(3801);function i(e){let{label:t,isLoading:r,disabled:i}=e;return(0,n.Y)(s.A,{sx:{mt:1,height:47},variant:"contained",disableElevation:!0,fullWidth:!0,size:"large",type:"submit",disabled:r||i,loading:r,children:t})}},26363:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(18153),s=r(84733),i=r(68044),a=r(43476),l=r(27092),o=r(50438),d=r(66148),c=r(44057);function u(e){let{helperText:t,action:r,...u}=e;return(0,n.FD)(l.A,{fullWidth:!0,margin:"normal",color:"secondary",error:e.error,children:[(0,n.FD)(s.A,{mb:1,display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.Y)(d.A,{focused:!1,sx:{typography:"subtitle2"},children:e.label}),r]}),(0,n.Y)(i.A,{fullWidth:!0,disableUnderline:!0,color:"secondary",inputProps:{style:{direction:"ltr"}},sx:{["&.".concat(a.A.root)]:{borderRadius:1},"& input":{padding:1.5,fontSize:13,"&::placeholder":{fontSize:14},fontFamily:e.value&&"password"!==e.type?c.J.style.fontFamily:void 0}},...u}),(0,n.Y)(o.A,{children:t})]})}},29438:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(18153),s=r(14232),i=r(91408),a=r(84733),l=r(8295),o=r(51675),d=r(5067);let c=()=>(0,n.Y)(l.A,{sx:{my:-1},color:"success",fontSize:"small"}),u=()=>(0,n.Y)(o.default,{sx:{my:-1},color:"error",fontSize:"small"});function h(){let[e,t]=(0,s.useState)(!0),[r,l]=(0,s.useState)(!0),[o,h]=(0,s.use
1State)(!0),[p,f]=(0,s.useState)(!0);return{passwordSchema:(0,i.Yj)().required("وارد کردن این فیلد الزامی است.").test({message:"شرایط زیر باید رعایت شود:",test:e=>{let r=!0;return void 0===e?(h(!0),l(!0),t(!0),f(!0),!0):(/(?=.*[A-Za-z])/.test(e+"")?h(!1):(h(!0),r=!1),/(?=.*?[0-9])/.test(e+"")?l(!1):(l(!0),r=!1),/.{8,}/.test(e+"")?t(!1):(t(!0),r=!1),/[آ-ی]/.test(e+"")||/[۰-۹]/.test(e+"")?(f(!0),r=!1):f(!1),r&&!0)}}),helperTextJSX:(0,n.FD)(a.A,{py:.5,children:[(0,n.FD)(a.A,{display:"flex",alignItems:"center",children:[e?(0,n.Y)(u,{}):(0,n.Y)(c,{}),(0,n.Y)(d.A,{ml:.5,variant:"caption",display:"block",color:e?"error.main":"success.light",children:"حداقل 8 کاراکتر داشته باشد"})]}),(0,n.FD)(a.A,{display:"flex",alignItems:"center",children:[o?(0,n.Y)(u,{}):(0,n.Y)(c,{}),(0,n.Y)(d.A,{ml:.5,variant:"caption",display:"block",color:o?"error.main":"success.light",children:"حداقل یک حرف انگلیسی داشته باشد"})]}),(0,n.FD)(a.A,{display:"flex",alignItems:"center",children:[r?(0,n.Y)(u,{}):(0,n.Y)(c,{}),(0,n.Y)(d.A,{ml:.5,variant:"caption",display:"block",color:r?"error.main":"success.light",children:"حداقل شامل یک عدد باشد"})]}),(0,n.FD)(a.A,{display:"flex",alignItems:"center",children:[p?(0,n.Y)(u,{}):(0,n.Y)(c,{}),(0,n.Y)(d.A,{ml:.5,variant:"caption",display:"block",color:p?"error.main":"success.light",children:"بدون حروف فارسی"})]})]})}}},82514:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(18153),s=r(14232),i=r(91408),a=r(48627),l=r(18847),o=r.n(l),d=r(5067),c=r(55134),u=r(74262),h=r(10871),p=r(22353),f=r(89099),y=r(26363),b=r(13241),w=r(29438),m=r(98375),A=r(43321),g=r(91316),Y=r(51762),v=r(16674);let F=o()(()=>r.e(33114).then(r.bind(r,33114)),{loadableGenerated:{webpack:()=>[33114]}}),_=o()(()=>r.e(17351).then(r.bind(r,17351)),{loadableGenerated:{webpack:()=>[17351]}});function x(){let e=(0,f.useRouter)(),t=e.query.token,l=e.query.buy,o=(0,Y.CI)(),{mutate:x}=(0,v.Jd)(),[D,S]=(0,s.useState)(!1),[k,I]=(0,s.useState)(!1),{passwordSchema:z,helperTextJSX:C}=(0,w.A)(),E=(0,i.Ik)().shape({password:z});async function P(n){S(!0);try{let s=await Promise.resolve().then(r.bind(r,37394)).then(e=>e.ajax);await s({method:"post",url:"v1/accounts/password/set/",headers:{Authorization:"Bearer ".concat(t)},data:{...n}}),o({event:"set_password",loginMethod:"phone"}),g.firebaseCloudMessaging.fireBaseLogEvent("set_password"),await (0,g.sendFCMToken)(),x();let i=await Promise.resolve().then(r.bind(r,59688)).then(e=>e.toast);i.success("رمز عبور جدید ثبت شد."),e.replace("/account/verification/basic"),i.success("رمز عبور شما با موفقیت ثبت شد!")}catch(e){S(!1),(await Promise.resolve().then(r.bind(r,37394)).then(e=>e.handleError))(e)}}let{getFieldProps:N,touched:T,errors:W,handleSubmit:j}=(0,a.Wx)({initialValues:{password:""},validationSchema:E,onSubmit:P});return(0,n.FD)(n.FK,{children:[(0,n.Y)(m.A,{children:(0,n.FD)(h.A,{gap:2,children:[(0,n.Y)(p.A,{severity:"fail"===l?"warning":"success",sx:{justifyContent:"center",borderRadius:3,fontWeight:450,fontSize:14},children:"fail"===l?"حین خرید ارز دیجیتال خطایی صورت گرفت ولی واریز تومان با موفقیت انجام شده است و در کیف‌پول‌تان قابل مشاهده است. لطفا ابتدا رمز عبور حساب کاربری خود را مشخص کنید.":"خرید شما با موفقیت انجام شد. برای مشاهده‌ی ارز دیجیتال خود، ابتدا رمز عبور حساب کاربری‌تان را مشخص کنید."}),(0,n.Y)(A.A,{title:"تعیین رمز عبور"})]})}),(0,n.FD)(n.FK,{children:[(0,n.Y)(d.A,{align:"center",variant:"subtitle2",color:"textSecondary",children:"لطفا رمز عبور خود را وارد نمایید."}),(0,n.FD)("form",{onSubmit:j,noValidate:!0,children:[(0,n.Y)(y.A,{required:!0,disabled:D,autoComplete:"new-password",type:k?"text":"password",id:"password",label:"رمز عبور",...N("password"),error:T.password&&!!W.password,helperText:(0,n.FD)(n.FK,{children:[T.password&&W.password&&(0,n.FD)(n.FK,{children:[W.password,(0,n.Y)("br",{})]}),C]}),startAdornment:(0,n.Y)(u.A,{position:"start",children:(0,n.Y)(c.A,{size:"small",onClick:()=>I(!k),children:k?(0,n.Y)(_,{fontSize:"inherit"}):(0,n.Y)(F,{fontSize:"inherit"})})})}),(0,n.Y)(b.A,{label:"ثبت",isLoading:D})]})]})]})}
1var D=r(94228),S=r(46973);function k(){return(0,n.Y)(x,{})}k.getLayout=function(e){return(0,n.Y)(D.A,{title:"تنظیم رمز عبور | ".concat(S.A.nameFa),children:e})};let I=k},86736:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/set-password",function(){return r(82514)}])}},e=>{e.O(0,[68044,48627,91408,22353,75139,46901,43251,65734,59394,90636,46593,38792],()=>e(e.s=86736)),_N_E=e.O()}]);

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.