PageSourceSearch

https://oietai.ir/chunk-JOGYDMHH.js

js oietai.ir collected 2026-10-02 20:30:15 UTC 14,916 bytes, 1 lines download raw bytes

1import{a as Te}from"./chunk-WN6QJXCB.js";import{a as Ae}from"./chunk-Q4656DJV.js";import{a as Ie}from"./chunk-U3QSVXNJ.js";import{a as ye}from"./chunk-SA3V6EDL.js";import"./chunk-Y35DUD74.js";import{a as $}from"./chunk-UOXAJ2LV.js";import{a as _e}from"./chunk-HJXZTAP3.js";import{a as Fe}from"./chunk-DTFT4MHC.js";import"./chunk-PYMRZ236.js";import{a as Se,b as xe}from"./chunk-ZW53CIMW.js";import{c as ee,d as te}from"./chunk-GCEAKI4V.js";import"./chunk-C4YMXCDC.js";import{a as fe,b as we}from"./chunk-VDHGNPHA.js";import{c as ie}from"./chunk-F5S4ITCH.js";import{a as Ce}from"./chunk-LJ4WI7UD.js";import"./chunk-LFPDKKUA.js";import{f as J}from"./chunk-R6HVEOTY.js";import{a as Z}from"./chunk-URN4ZELH.js";import{a as Y}from"./chunk-N2YJYZJG.js";import"./chunk-Z3AAV5VZ.js";import{a as ve,b as be}from"./chunk-VRQG7ITP.js";import{a as ge,b as he}from"./chunk-ODCVZTN3.js";import"./chunk-2FXXY56M.js";import"./chunk-R67BXNCG.js";import"./chunk-WHIB4362.js";import{a as oe,c as ne}from"./chunk-E26IQJC4.js";import{b as Q}from"./chunk-QODO6H7A.js";import{d as q}from"./chunk-GNAHCHFZ.js";import"./chunk-E7BNNCNQ.js";import"./chunk-C7LQQ5SW.js";import"./chunk-JLCVCFF7.js";import"./chunk-ZMMLUIOI.js";import"./chunk-WAODHCTP.js";import"./chunk-IBINZPDA.js";import"./chunk-FZHWDMNC.js";import"./chunk-OHNG3VM7.js";import"./chunk-4YRY4IP2.js";import"./chunk-L73F5FQA.js";import"./chunk-PZDGU76M.js";import{i as K,n as X}from"./chunk-OETXCHNO.js";import{A as ce,B as me,C as ue,b as ae,d as T,f as re,g as se,j as A,l as le,n as pe,o as de}from"./chunk-CZY7IQJZ.js";import{i as N}from"./chunk-X737KUNB.js";import{A as G}from"./chunk-YV7RYJG6.js";import{Bb as u,Dc as l,Eb as V,Ec as p,Fb as R,Ib as S,Mb as s,Nb as r,O as L,Ob as F,Sb as x,Vc as z,Wb as f,Xb as g,cc as j,dc as O,ec as W,fc as H,gb as n,gc as h,hb as m,hc as _,ic as y,la as B,lc as D,mb as k,mc as P,nc as E,sc as U,tc as I,wa as d,wb as b,xa as c}
1from"./chunk-XWZ3VNRP.js";import{k as M}from"./chunk-BI7C37SH.js";var je=["captcha"],Me=()=>({width:"30vw"}),Le=()=>({"960px":"90vw"});function Oe(o,w){o&1&&(s(0,"div",29),h(1),l(2,"translate"),r()),o&2&&(n(),_(p(2,1,"auth.sendingCode")))}function We(o,w){o&1&&(s(0,"div",29),h(1),l(2,"translate"),r()),o&2&&(n(),_(p(2,1,"auth.codeSent")))}function He(o,w){if(o&1&&(s(0,"div",12)(1,"div",13)(2,"label",27),h(3),l(4,"translate"),r(),F(5,"p-dropdown",28),l(6,"translate"),r()(),b(7,Oe,3,3,"div",29)(8,We,3,3,"div",29)),o&2){let e=g();n(3),y(" ",p(4,7,"auth.selectVerificationMethod")," "),n(2),u("options",e.twoFactorMethodList)("placeholder",p(6,9,"auth.selectMethodPlaceholder"))("formControl",e.loginForm.controls.twoFactorAuthMethod)("showClear",!0),n(2),S(e.twoFactorLoading?7:-1),n(),S(e.twoFactorCodeRecieved?8:-1)}}function Ue(o,w){o&1&&(s(0,"span",33),h(1),l(2,"translate"),r()),o&2&&(n(),_(p(2,1,"auth.twoFactorAuth")))}function ze(o,w){if(o&1){let e=x();s(0,"div",34)(1,"div",34)(2,"label",35),h(3),l(4,"translate"),r(),s(5,"input",36),l(6,"translate"),f("emitWarningMessage",function(t){d(e);let a=g(2);return c(a.safeInputToast.showSafeInputValidationToast(t))}),r()(),s(7,"div",16)(8,"button",37),l(9,"translate"),f("click",function(){d(e);let t=g(2);return c(t.twoFactorLogin())}),r()()()}if(o&2){let e=g(2);n(3),y(" ",p(4,8,"auth.enterVerificationCode")," "),n(2),u("maxLength",6)("maxChars",6)("debounceTimeMs",250)("placeholder",p(6,10,"auth.enterCodePlaceholder"))("formControl",e.twoFactorCode),n(3),u("disabled",!e.twoFactorCode.value)("label",p(9,12,"auth.loginToAccount"))}}function Ge(o,w){if(o&1){let e=x();s(0,"p-dialog",30),E("visibleChange",function(t){d(e);let a=g();return P(a.twoFactorDialogShow,t)||(a.twoFactorDialogShow=t),c(t)}),f("onHide",function(){d(e);let t=g();return c(t.twoFactorDialogShow=!1)}),b(1,Ue,3,3,"ng-template",31)(2,ze,10,14,"ng-template",32),r()}if(o&2){let e=g();V(I(9,Me)),u("closable",!0)("closeOnEscape",!0),D("visible",e.twoFactorDialogShow),u("breakpoints",I(10,Le))("draggable",!1)("resizable",!1)("modal",!0)}}function Ne(o,w){o&1&&(s(0,"span",33),h(1),l(2,"translate"),r()),o&2&&(n(),_(p(2,1,"auth.forgotPasswordTitle")))}function qe(o,w){if(o&1){let e=x();s(0,"sendlink-forgetpassword",38),f("emitClose",function(){d(e);let t=g(2);return c(t.forgetPassDialogHide())})("emitResult",function(t){d(e);let a=g(2);return c(a.handleForgetPasswordResults(t))}),r()}}function Qe(o,w){if(o&1){let e=x();s(0,"p-dialog",30),E("visibleChange",function(t){d(e);let a=g();return P(a.forgetPasswordDialogShow,t)||(a.forgetPasswordDialogShow=t),c(t)}),f("onHide",function(){d(e);let t=g();return c(t.forgetPasswordDialogShow=!1)}),b(1,Ne,3,3,"ng-template",31)(2,qe,1,0,"ng-template",32),r()}if(o&2){let e=g();V(I(9,Me)),u("closable",!0)("closeOnEscape",!0),D("visible",e.forgetPasswordDialogShow),u("breakpoints",I(10,Le))("draggable",!1)("resizable",!1)("modal",!0)}}var Vt=(()=>{class o{constructor(e,i,t,a,C,v,Ve,De,Pe,Ee,Be,ke){this.fb=e,this.route=i,this.authenticationService=t,this.messageService=a,this.genericService=C,this.titleService=v,this.httpClient=Ve,this.cdr=De,this.encryptService=Pe,this.storageService=Ee,this.safeInputToast=Be,this.renderer=ke,this.loginbtnloading=!1,this.submitted=!1,this.count=0,this.twoFactorCode=new A(null),this.context=J,this.typedCharactersCount=0,this.twoFactorMethodList=[{label:"\u0627\u06CC\u0645\u06CC\u0644",value:"Email"},{label:"\u067E\u06CC\u0627\u0645\u06A9",value:"Sms"}],this.captcha={userInput:"",captchaId:""},this.twoFactorCodeRecieved=!1,this.twoFactorLoading=!1,this.twoFactorDialogShow=!1,this.twoFactorAuthenticationActivated=!0,this.twoFactorDefaultMethod=null,this.isLoggedIn=!1,this.loginForm=this.fb.group({password:new A("",T.required),username:new A("",T.required),twoFactorAuthMethod:new A(null)}),this.cultureDirection="rtl",this.forgetPasswordDialogShow=!1,this.authenticationService.isLoggedIn().subscribe(Re=>{this.isLoggedIn=Re})}handlePasswordValue(e){let i=e;this.loginForm.get("password")?.setValue(i)}ngOnInit(){this.titleService.setTitle("\u0648\u0631\u0648\u062F \u0628\u0647 \u062D\u0633\u0627\u0628 \u06A9\u0627\u0631\u0628\u0631\u06CC"),document.getElementsByTagName("body")[0].classList.add("loginaera"),this.route.data.subscribe(e=>{this.staticUrl=e.staticUrl,(this.staticUrl||this.staticUrl!=null)&&(this.staticUrl=this.staticUrl.replace("superadminlogin","login"),this.httpClient.get(this.genericService.urlApi+"Core/PageManagement/Page/GetPageInformation?pagePath="+this.staticUrl,{context:this.context}).subscribe({next:i=>{this.storageService.setDomainItem("cultureDirection",i.data.website.cultureDirection),this.cultureDirection=i.data.website.cultureDirection.toLowerCase(),this.storageService.setDomainItem("culture",i.data.website.culture),this.twoFactorAuthenticationActivated?this.loginForm.controls.twoFactorAuthMethod.setValidators(T.required):this.loginForm.controls.twoFactorAuthMethod.clearValidators(),this.twoFactorDefaultMethod=i.data.website?.twoFactorDefaultMethod||null,this.twoFactorDefaultMethod&&(this.loginForm.get("twoFactorAuthMethod")?.setValue(this.twoFactorDefaultMethod),this.loginForm.get("twoFactorAuthMethod")?.disable())},error:i=>{console.error(i)}}))})}handleCaptcha(e){this.captcha=e}onPasswordInput(e){this.typedCharactersCount=e.target.value.length}ngOnDestroy(){document.getElementsByTagName("body")[0].classList.remove("loginaera")}get f(){return this.loginForm.controls}twoFactorLogin(){return M(this,null,function*(){let e={username:this.loginForm.controls.username.value,password:yield this.encryptService.encryptPassword(this.loginForm.controls.password.value??""),twoFactorCode:this.twoFactorCode.value,twoFactorAuthMethod:this.loginForm.get("twoFactorAuthMethod")?.getRawValue()};this.authenticationService.superAdminLogin(e,this.captcha).pipe(L()).subscribe({next:i=>{this.loginbtnloading=!1,this.twoFactorDialogShow=!1,this.cdr.markForCheck()},error:i=>{console.log(i),this.loginbtnloading=!1,this.twoFactorDialogShow=!1,this.twoFactorCode.reset(),i.error.statusCode&&this.captchaComponent?.reset(),this.cdr.markForCheck()}})})}onSubmit(){return M(this,null,function*(){if(this.submitted=!0,this.loginbtnloading=!0,this.loginForm.invali
1d)return;let e={username:this.loginForm.controls.username.value,password:yield this.encryptService.encryptPassword(this.loginForm.controls.password.value??""),twoFactorCode:null,twoFactorAuthMethod:this.loginForm.get("twoFactorAuthMethod")?.getRawValue()};this.twoFactorLoading=!0,this.authenticationService.superAdminLogin(e,this.captcha).pipe(L()).subscribe({next:i=>{this.loginbtnloading=!1,this.twoFactorCodeRecieved=!0,this.twoFactorDialogShow=!0,this.twoFactorLoading=!1,this.cdr.markForCheck()},error:i=>{this.twoFactorLoading=!1,this.twoFactorCodeRecieved=!1,this.twoFactorDialogShow=!1,console.log(i),this.loginbtnloading=!1,i.error.statusCode&&this.captchaComponent?.reset(),this.cdr.markForCheck()}})})}onFocusUsername(){let e=document.getElementById("username");e&&e.setSelectionRange(0,e.value.length)}onFocusMobile(){let e=document.getElementById("mobile");e&&e.setSelectionRange(0,e.value.length)}onFocusPassword(){let e=document.getElementById("password");e&&e.setSelectionRange(0,e.value.length)}authChangePasswordDialogShow(){this.forgetPasswordDialogShow=!0}handleForgetPasswordResults(e){this.messageService.add(e)}forgetPassDialogHide(){this.forgetPasswordDialogShow=!1,this.messageService.add({severity:"success",summary:"\u0644\u06CC\u0646\u06A9 \u0641\u0631\u0627\u0645\u0648\u0634\u06CC \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0628\u0631\u0627\u06CC \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062F",life:3e3})}static{this.\u0275fac=function(i){return new(i||o)(m(ce),m(Q),m($),m(K),m(Y),m(q),m(N),m(z),m(Ie),m(Z),m(_e),m(k))}}static{this.\u0275cmp=B({type:o,selectors:[["super-admin-login"]],viewQuery:function(i,t){if(i&1&&j(je,5),i&2){let a;O(a=W())&&(t.captchaComponent=a.first)}},standalone:!0,features:[U],decls:49,vars:36,consts:[["captcha",""],[1,"authcard"],[1,"surface-card","p-4","shadow-1","border-round-2xl","m-auto","w-11","sm:w-8","md:w-7","lg:w-6","xl:w-4","xl:max-w-26rem","relative"],[1,"absolute",2,"top","15px","left","15px"],["href","/",1,"no-underline","text-sm","text-400","flex","align-items-center"],[1,"ml-1"],[1,"pi","pi-arrow-left",2,"font-size","0.7rem"],[1,"text-center","mb-4"],["src","assets/images/auth/login.gif"],[1,"text-sm","mb-3","font-bold",2,"color","#9c9c9c"],["autocomplete","off",3,"formGroup"],[1,"grid","grid-nogutter"],[1,"col-12","mb-2"],[1,"m-1"],["for","username",1,"block","text-900","mb-1","text-sm"],["pInputText","","id","username","dir","ltr","safeInput","","autofocus","true",1,"identityField",3,"emitWarningMessage","maxChars","debounceTimeMs","placeholder","formControl"],[1,"col-12"],[1,"p-1"],["for","password",1,"block","text-900","mb-1","text-sm"],[1,"fanum",2,"font-size","10px","color","#a2acb9","margin-right","4px","letter-spacing","1px"],[3,"valueChange","focusEvent","inputId"],[3,"userInputChange"],[1,"col-12","md:col-6"],["pButton","","pRipple","",1,"w-full","p-button-sm","csloginbtn","loginBtns",3,"click","disabled","label","loading"],["pButton","","pRipple","",1,"w-full","p-button-sm","p-button-secondary","loginBtns",3,"click","label"],["position","top-left"],[3,"closable","closeOnEscape","visible","breakpoints","style","draggable","resizable","modal"],["for","twoFactorAuthMethod",1,"block","text-700","mb-1","text-sm"],["id","users","optionLabel","label","optionValue","value",1,"w-full",3,"options","placeholder","formControl","showClear"],[1,"text-green-400","my-1","text-xs"],[3,"visibleChange","onHide","closable","closeOnEscape","visible","breakpoints","draggable","resizable","modal"],["pTemplate","header"],["pTemplate","body"],[1,"text-xl","font-bold"],[1,"mb-2"],["for","authCode",1,"block","text-900","mb-1","text-sm"],["pInputText","","pKeyFilter","int","id","authCode","safeInput","int","dir","ltr","autofocus","true",1,"identityField",3,"emitWarningMessage","maxLength","maxChars","debounceTimeMs","placeholder","formControl"],["pButton","","pRipple","",1,"w-full","p-button-sm","csloginbtn","loginBtns",3,"click","disabled","label"],[3,"emitClose","emitResult"]],template:function(i,t){if(i&1){let a=x();
1s(0,"div",1)(1,"div",2)(2,"div",3)(3,"a",4)(4,"span",5),h(5),l(6,"translate"),r(),F(7,"i",6),r()(),s(8,"div")(9,"div",7),F(10,"img",8),s(11,"div",9),h(12),l(13,"translate"),r()(),s(14,"form",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"label",14),h(19),l(20,"translate"),r(),s(21,"input",15),l(22,"translate"),f("emitWarningMessage",function(v){return d(a),c(t.safeInputToast.showSafeInputValidationToast(v))}),r()()(),s(23,"div",16)(24,"div",17)(25,"label",18)(26,"span"),h(27),l(28,"translate"),r(),s(29,"span",19),h(30),r()(),s(31,"password-input",20),f("valueChange",function(v){return d(a),c(t.handlePasswordValue(v))})("focusEvent",function(){return d(a),c(t.onFocusPassword())}),r()()(),b(32,He,9,11),s(33,"div",16)(34,"div",13)(35,"captcha",21,0),f("userInputChange",function(v){return d(a),c(t.handleCaptcha(v))}),r()()(),s(37,"div",22)(38,"div",13)(39,"button",23),l(40,"translate"),l(41,"translate"),f("click",function(){return d(a),c(t.onSubmit())}),r()()(),s(42,"div",22)(43,"div",13)(44,"button",24),l(45,"translate"),f("click",function(){return d(a),c(t.authChangePasswordDialogShow())}),r()()()()()()()(),F(46,"p-toast",25),b(47,Ge,3,11,"p-dialog",26)(48,Qe,3,11,"p-dialog",26)}if(i&2){let a=H(36);n(5),_(p(6,20,"auth.back")),n(7),y(" ",p(13,22,"auth.loginToSuperAdmin")," "),n(2),u("formGroup",t.loginForm),n(5),_(p(20,24,"auth.username")),n(2),u("maxChars",150)("debounceTimeMs",250)("placeholder",p(22,26,"auth.usernamePlaceholder"))("formControl",t.loginForm.controls.username),n(6),_(p(28,28,"auth.password")),n(3),y("(",t.typedCharactersCount,")"),n(),R("mb-3"),u("inputId","password"),n(),S(t.twoFactorAuthenticationActivated?32:-1),n(7),u("disabled",!t.loginForm.valid||a.userInput==""||!a.userInput)("label",t.twoFactorAuthenticationActivated?p(40,30,"auth.confirmAndGetCode"):p(41,32,"auth.loginToPanel"))("loading",t.loginbtnloading),n(5),u("label",p(45,34,"auth.forgotPassword")),n(3),S(t.twoFactorDialogShow?47:-1),n(),S(t.forgetPasswordDialogShow?48:-1)}},dependencies:[Ae,te,ee,X,ne,oe,me,le,ae,re,se,ue,pe,de,Fe,we,fe,be,ve,he,ge,xe,Se,G,ye,Te,Ce,ie],styles:['.authcard[_ngcontent-%COMP%]{display:flex;align-content:center;height:100vh;background-image:url("./media/bglogin-ZIYVSV4M.jpg")!important}.loadercaptcha[_ngcontent-%COMP%]{display:flex;height:78px;justify-content:center;align-items:center;position:absolute;width:100%}.identityField[_ngcontent-%COMP%]{letter-spacing:2px;padding:10px;font-size:14px!important}.identityField[_ngcontent-%COMP%]::placeholder{letter-spacing:0px;text-align:right;font-size:13px}.loginBtns[_ngcontent-%COMP%]{padding:10px!important}[_nghost-%COMP%]     .p-dialog .p-dialog-header{flex-direction:row!important}']})}}return o})();export{Vt as SuperAdminLoginComponent};

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.