//>>built
define("mill/dataBrowser/loginDialog",["dijit/Dialog","dijit/form/Select","dijit/form/Button"],function(){dojo.declare("mill.dataBrowser.loginDialog",[dijit.Dialog],{_savePassCheck:"",_autoLoginCheck:"",content:dojo.cache("mill","dataBrowser/loginDialog.html",'\x3cdiv\x3e\x3cdiv dojoAttachPoint\x3d"animatedMill" dojoType\x3d"mill.animatedMill" style\x3d"width:100%"\x3e\x3c/div\x3e\x3cdiv\x3e\x3cimg src\x3d"/.system/license.png" width\x3d"100%"/\x3e\x3c/div\x3e\x3cdiv style\x3d"background-image:url(ExtensionLogin.bmp); background-repeat:repeat-x; width:100%; height:216px; background-size:100% 100%"\x3e\x3cdiv style\x3d"padding:12px;padding-bottom:0px"\x3e\x3ctable cellSpacing\x3d"20" width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d"font-family: Tahoma,inherit;font-size: 12;font-weight: bold;"\x3e \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445: \x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cselect dojoAttachPoint\x3d"datasourceSelect" dojotype\x3d"dijit.form.Select" style\x3d"width:100%"/\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d"font-family: Tahoma,inherit;font-size: 12;font-weight: bold;"\x3e \u041b\u043e\u0433\u0438\u043d: \x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"loginTextBox" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x3cspan style\x3d"font-family: Tahoma,inherit;font-size: 12;font-weight: bold;"\x3e \u041f\u0430\u0440\u043e\u043b\u044c: \x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cinput dojoAttachPoint\x3d"passTextBox" dojoType\x3d"dijit.form.ValidationTextBox" required\x3d"true" style\x3d"width:100%" type\x3d"password"\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3cdiv style\x3d"padding-left:34px"\x3e\x3ctable width\x3d"100%"\x3e\x3ctr\x3e\x3ctd\x3e\x3cdiv\x3e\x3cinput dojoType\x3d"dijit.form.CheckBox" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._savePassClick(this)"\x3e\x3c/input\x3e\x3cspan\x3e\u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c\x3c/span\x3e\x3c/div\x3e\x3cdiv style\x3d"height:5px;overflow:hidden"\x3e \x26#160; \x3c/div\x3e\x3cdiv\x3e\x3cinput dojoType\x3d"dijit.form.CheckBox" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._autoLoginClick(this)"\x3e\x3c/input\x3e\x3cspan\x3e\u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\x3c/span\x3e\x3c/div\x3e\x3c/td\x3e\x3ctd align\x3d"right" dojoAttachPoint\x3d"buttonExcel" style\x3d"padding-right:30px; padding-bottom:4px"\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._loginButtonClick()" style\x3d"Border:0px; padding:0px"\x3e\x3cdiv style\x3d"width:55px;height:17px;font-family:\u200bTahoma,\u200bArial,\u200bclean,\u200bsans-serif;font-size:11px"\x3e OK \x3c/div\x3e\x3c/button\x3e\x3cbutton dojoType\x3d"dijit.form.Button" onClick\x3d"dijit.byNode(this.domNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode)._cancelButtonClick()" style\x3d"Border:0px; padding:0px"\x3e\x3cdiv style\x3d"width:55px;height:17px;font-family:\u200bTahoma,\u200bArial,\u200bclean,\u200bsans-serif;font-size:11px"\x3e \u041e\u0442\u043c\u0435\u043d\u0430 \x3c/div\x3e\x3c/button\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'),
parseOnLoad:!1,style:"width:484px;height:419px;border-radius:15px;border-top:0px",classID:null,applicationTitle:null,applicationSubtitle:null,show:function(){var b=this.inherited(arguments);this.titleBar.style.display="none";this.containerNode.style.padding="0";var a=[];a.push("\x3cdiv\x3e");a.push(this.applicationTitle);a.push("\x3c/div\x3e");a.push('\x3cdiv style\x3d"margin-top:28px;font-weight:normal;font-size:14pt"\x3e');a.push(this.applicationSubtitle);a.push("\x3c/div\x3e");dojo.place(a.join(""),
this.animatedMill.containerNode,"only");return b},postCreate:function(){this.inherited(arguments);var b={};dojo.forEach(dojo.parser.parse({rootNode:this.containerNode,template:!0}),function(a){a&&a.dojoAttachPoint&&(b[a.dojoAttachPoint]=a)});dojo.mixin(this,b);dojo.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},preventCache:!0,url:"/.system/contents.xml",load:dojo.hitch(this,function(a){for(var c=0;c<a.documentElement.childNodes.length;c++){var d=a.documentElement.childNodes[c];
d.getAttribute("class").toString()==this.classID.toString()&&"1"!=(d.getAttribute("disabled")||0).toString()&&this.datasourceSelect.addOption({value:d.getAttribute("ID"),label:d.getAttribute("description")})}return a})})},_cancelButtonClick:function(){},_loginButtonClick:function(){dojo.xhrGet({handleAs:"xml",sync:!0,headers:{"Disable-Basic-Auth":"yes"},content:{login:this.loginTextBox.attr("value"),password:this.passTextBox.attr("value"),jsversion:(dojo.version?dojo.version.toString():"")||""},preventCache:!0,
url:"/"+this.datasourceSelect.attr("value")+"/sysinfo.xml",load:dojo.hitch(this,function(b,a){this.onConnect(this.datasourceSelect.attr("value"));return b}),error:dojo.hitch(this,function(b,a){a.xhr.status="403";alert("\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d/\u043f\u0430\u0440\u043e\u043b\u044c.");return b})})},_savePassClick:function(b){b.checked?this._savePassCheck=!0:this._savePassCheck=!1},_autoLoginClick:function(b){b.checked?this._autoLoginCheck=!0:this._autoLoginCheck=
!1},onConnect:function(b,a,c){}})});