//>>built
require({cache:{"url:mill/jssupport/layout/layoutContent/authorizationForm.html":'\x3cdiv\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"name: \'login\', placeHolder: \'Office.Login\', required: true, uppercase: true, icon: \'icon-set-user\'"\x3e\x3c/div\x3e\x3cdiv data-dojo-type\x3d"office.form.TextField" data-dojo-props\x3d"type: \'password\', name: \'password\', placeHolder: \'Office.Password\', required: true, icon: \'icon-set-lock\'"\x3e\x3c/div\x3e\x3cdiv class\x3d"officeFormField"\x3e\x3cdiv style\x3d"display:none;width:100%;max-width:29.8em;height:2.75em" data-dojo-type\x3d"dijit.ProgressBar" data-dojo-props\x3d"indeterminate: true" data-dojo-attach-point\x3d"progressNode"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'}});
define("mill/jssupport/layout/layoutContent/AuthorizationForm","dojo/_base/declare dojo/_base/lang dojo/dom-construct dojo/cookie dojo/text!mill/jssupport/layout/layoutContent/authorizationForm.html mill/jssupport/TranslatableNode mill/jssupport/Announcement mill/jssupport/form/_FormContent mill/jssupport/form/TextField mill/jssupport/form/CheckBoxField mill/jssupport/form/ButtonField mill/jssupport/base mill/jssupport/session mill/mill".split(" "),function(h,a,k,l,m,n,p,q,t,f,u,c,d,r){return mill.registerAlias("office.AuthorizationForm",
h("mill.jssupport.layout.layoutContent.AuthorizationForm",[q],{baseClass:"officeAuthorizationForm",submitButtonType:"submit",submitApplicationLabel:"Office.SignIn",submittingApplicationLabel:"Office.SigningIn",retrySubmitApplicationLabel:"Office.SignIn",content:m,formTitle:"Office.SignIn",buildRendering:function(){this.inherited(arguments);window.xwz&&(this._announcementWidget=new p({text:"\x26#160;",color:"",icon:"info",readOnly:!0,style:{opacity:"0"}},k.create("div",{},this.messageNode,"after")))},
startup:function(){this.inherited(arguments);if(window.hasOwnProperty("application")&&"acForeignStudent"===window.app.accessCategory){var e=new f({name:"PersonalDataConsent",text:"",doubleColumn:!1,required:!0});this.addChild(e);this.registerWidget(e.controlNode);var b=(new n({text:window.app.combinedTranslationIdent("PersonalDataAgreementShort"),display:"inline",onClick:function(){b.set("text",b.get("text")===window.app.combinedTranslationIdent("PersonalDataAgreementShort")?window.app.combinedTranslationIdent("PersonalDataAgreementShort")+
";\x3cbr/\x3e;"+window.app.combinedTranslationIdent("PersonalDataAgreementLong"):window.app.combinedTranslationIdent("PersonalDataAgreementShort"))}})).placeAt(e.controlNode,"after");this.addChild(new f({name:"PDConfirm",text:window.app.combinedTranslationIdent("PDConfirmShort"),doubleColumn:!1,required:!0}))}},getFormValue:function(){return a.mixin(this.gatherFormValues(),{language:"",jsversion:(dojo.version?dojo.version.toString():"")||"",RoistatCategoryName:c.accessCategory||(window.app?window.app.accessCategory:
""),RoistatCounter:l("roistat_visit")})},submitForm:function(){if(window.xwz)window.app.signin(this.getFormValue(),this);else return this.inherited(arguments)},postForm:function(){this.inherited(arguments);if(window.ym&&window.webAnalyticsConfig.WebAnalyticsYandexID)if("acForeignAbiturient"===c.accessCategory)try{ym(window.webAnalyticsConfig.WebAnalyticsYandexID,"reachGoal","ADM_LOGIN_BA")}catch(e){}else if("acForeignMagAbiturient"===c.accessCategory)try{ym(window.webAnalyticsConfig.WebAnalyticsYandexID,
"reachGoal","ADM_LOGIN_MA")}catch(e){}d.logout(!0).then(a.hitch(this,function(){this.postRequest({skipErrorStatus:403,url:r.getRequestUrl(c.mainHandler,"sysinfo.xml"),data:this.getFormValue()}).then(a.hitch(this,function(e){d.load(null,null,null,!0).then(a.hitch(this,function(b){d.hasRemoteUser()?d.checkRemoteUserAccessCategory(c.accessCategory)?(this.submitButton.destroyRecursive(),this.toggleDisabledState(),this.createSuccessMessage("Office.LoadingData",null,null,"blue",!0),b=a.hitch(this,function(){c._loadData().then(function(){},
a.hitch(this,function(g){this._announcementWidget.hide().then(a.hitch(this,function(){this.createErrorMessage(g.message)}));throw Error(g);}))}),d.getRemoteUserLocale()&&c.locale!==d.getRemoteUserLocale()?c.translate(d.getRemoteUserLocale()).then(a.hitch(this,b)):b()):this.createErrorMessage("Office.IncorrectLoginOrPassword","sad"):this.createErrorMessage("Office.IncorrectLoginOrPassword","sad")}),a.hitch(this,function(b){this.createErrorMessage(b.message)}))}),a.hitch(this,function(e){d.load(null,
null,null,!0).then(a.hitch(this,function(){403===e.response.status&&this.createErrorMessage("Office.IncorrectLoginOrPassword","sad")}),a.hitch(this,function(b){this.createErrorMessage(b.message)}))}))}))}}))});