Your IP : 18.219.201.167


Current Path : /proc/5289/cwd/bitrix/image_uploader/
Upload File :
Current File : //proc/5289/cwd/bitrix/image_uploader/aurigma.uploader.installationprogress.min.js

(function(t,e){var s=t.Aurigma?t.Aurigma.ImageUploader||{}:{};s.installationProgress=function(t){if(!(this instanceof s.installationProgress)){return new s.installationProgress(t)}this._uploader=t;this._showDownloadingScreen=this._showInstallationScreen=true;t.registerCallback("activeXBeforeOpenTagRender",this.onActiveXBeforeOpenTagRender,this);t.registerCallback("activeXBeforeCloseTagRender",this.onActiveXBeforeCloseTagRender,this);t.registerCallback("activeXAfterCloseTagRender",this.onActiveXAfterCloseTagRender,this);t.registerCallback("javaBeforeOpenTagRender",this.onJavaBeforeOpenTagRender,this);t.registerCallback("javaAfterCloseTagRender",this.onJavaAfterCloseTagRender,this);t.registerCallback("javaRenderStyleAttribute",this.onJavaRenderStyleAttribute,this);t.registerCallback("javaBeforeCloseTagRender",this.onJavaBeforeCloseTagRender,this);t.registerCallback("flashBeforeOpenTagRender",this.onFlashBeforeOpenTagRender,this);t.registerCallback("flashRenderStyleAttribute",this.onFlashRenderStyleAttribute,this);t.registerCallback("flashAfterCloseTagRender",this.onFlashAfterCloseTagRender,this);t.registerCallback("flashBeforeCloseTagRender",this.onFlashBeforeCloseTagRender,this);this._splashscreentimeout=12e4;var e=t.id();var r=function(){var t=document.getElementById(e+"-progress");var s=document.getElementById(e);if(t)t.style.display="none";if(s){s.style.position="";s.style.left="0";s.style.visibility=""}};t.events().initComplete().add(r);setTimeout(r,this._splashscreentimeout);this._progressCssClass="";this._instructionsCssClass="";this._commonHtml="<p>Aurigma Image Uploader control is necessary to upload "+"your files quickly and easily. You will be able to select multiple images "+"in user-friendly interface instead of clumsy input fields with <strong>Browse</strong> button.</p>";this._progressHtml='<p><img src="{0}" />'+"<br />"+"Loading Aurigma Image Uploader...</p>";this._flashProgressHtml='<p><img src="{0}" />'+"<br />"+"Loading Aurigma Flash Uploader...</p>";this._progressImageUrl="Scripts/InstallationProgress.gif";this._beforeIE6XPSP2ProgressHtml="<p>To install Image Uploader, please wait until the control will be loaded and click "+"the <strong>Yes</strong> button when you see the installation dialog.</p>";this._beforeIE6XPSP2InstructionsHtml="<p>To install Image Uploader, please reload the page and click "+"the <strong>Yes</strong> button when you see the control installation dialog. "+"If you don't see installation dialog, please check your security settings.</p>";this._IE6XPSP2ProgressHtml="<p>Please wait until the control will be loaded.</p>";this._IE6XPSP2InstructionsHtml="<p>To install Image Uploader, please click on the <strong>Information Bar</strong> and select "+"<strong>Install ActiveX Control</strong> from the dropdown menu. After page reload click <strong>Install</strong> when "+"you see the control installation dialog. If you don't see Information Bar, please try to reload the page and/or check your security settings.</p>";this._IE7ProgressHtml=this._IE6XPSP2ProgressHtml;this._IE7InstructionsHtml="<p>To install Image Uploader, please click on the <strong>Information Bar</strong> "+"and select <strong>Install ActiveX Control</strong> or <strong>Run ActiveX Control</strong> from the dropdown menu.</p>"+"<p>Then either click <strong>Run</strong> or after the page reload click <strong>Install</strong> "+"when you see the control installation dialog. If you don't see Information Bar, please try to reload the page and/or check your security settings.</p>";this._IE8ProgressHtml=this._IE6XPSP2ProgressHtml;this._IE8InstructionsHtml="<p>To install Image Uploader, please click on the <strong>Information Bar</strong> "+"and select <strong>Install This Add-on</strong> or <strong>Run Add-on</strong> from the dropdown menu.</p>"+"<p>Then either click <strong>Run</strong> or after the page reload click <strong>Install</strong> "+"when you see the control installation dialog. If you don't see Information Bar, please try to reload the page and/or check your security settings.</p>";this._altInstallerHtml="";this._updateInstructions="You need to update Image Uploader control. Click <strong>Install</strong> or <strong>Run</strong> button when you see the control installation dialog."+" If you don't see installation dialog, please try to reload the page.";this._macInstallJavaHtml='<p>Use the <a href="http://support.apple.com/kb/HT1338">Software Update</a> feature '+"(available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.</p>";this._installJavaHtml='<p>Please <a href="http://www.java.com/getjava/">download</a> and install Java.</p>';this._installFlashPlayerHtml="<p>You need to install Flash Player for running Aurigma Flash Uploader. Download latest version from <a href='http://www.adobe.com/go/getflashplayer' title='Download Flash Player'>here</a>.</p>"};s.installationProgress.prototype.__class=true;s.installationProgress.prototype.onActiveXBeforeOpenTagRender=function(t,e){if(this.showDownloadingScreen()){e.resultHtml=this._createProgressScreen(t,"ax")}};s.installationProgress.prototype.onActiveXAfterCloseTagRender=function(t,e){if(this.showDownloadingScreen()&&t.activeXControl().isActiveXSupported()){e.resultHtml="</div>"}};s.installationProgress.prototype.onActiveXBeforeCloseTagRender=function(t,e){if(this.showInstallationScreen()){var r=[];r.push("<div ");r.push('id="'+t.id()+'-install-bg"');r.push(' style="background-color:#fff;position:relative;z-index:1000;">');r.push("<div ");r.push('id="'+t.id()+'-install"');var o=t.width(),n=t.height();o=parseInt(o)+""==o?o+"px":o;n=parseInt(n)+""==n?n+"px":n;r.push(' style="margin:0;padding:0;border:0 none;overflow: hidden;width:'+o+";height:"+n+'"');if(this._instructionsCssClass){r.push(' class="'+this._instructionsCssClass+'"')}r.push(">");r.push(this._commonHtml);if(t.activeXControl().getActiveXInstalledToUpdate()){r.push(this._updateInstructions)}else{if(s.browser.isBeforeIE6XPSP2){r.push(this._beforeIE6XPSP2InstructionsHtml)}else if(s.browser.isIE6XPSP2){r.push(this._IE6XPSP2InstructionsHtml)}else if(s.browser.isIE7){r.push(this._IE7InstructionsHtml)}else{r.push(this._IE8InstructionsHtml)}if(this._altInstallerHtml){r.push(this._altInstallerHtml)}}r.push("</div>");r.push("</div>");e.resultHtml=r.join("")}};s.installationProgress.prototype.onJavaAfterCloseTagRender=function(t,e){if(this.showDownloadingScreen()&&t.javaControl().isJavaSupported()){e.resultHtml="</div>"}if(this.showInstallationScreen()&&s.browser.isOpera&&!t.javaControl().isJavaSupported()&&s.javaDetector.getJREs().length>0){e.resultHtml+=" -->"}};s.installationProgress.prototype.onJavaBeforeCloseTagRender=function(t,e){if(this.showInstallationScreen()){var r=[];r.push("<div ");r.push('id="'+t.id()+'-install-bg"');r.push(' style="background-color:#fff;position:relative;z-index:1000;">');r.push("<div ");r.push('id="'+t.id()+'-install"');var o=t.width(),n=t.height();o=parseInt(o)+""==o?o+"px":o;n=parseInt(n)+""==n?n+"px":n;r.push(' style="margin:0;padding:0;border:0 none;overflow:hidden;width:'+o+";height:"+n+'"');if(this._instructionsCssClass){r.push(' class="'+this._instructionsCssClass+'"')}r.push(">");if(navigator.platform.toLowerCase().indexOf("mac")>-1){r.push(this._macInstallJavaHtml)}else{r.push(this._installJavaHtml)}if(!s.browser.isIE&&false){var i=t.javaControl().javaVersionRequired;i=i[0]+"."+i[1];r.push('<embed code="empty.class" width="0" height="0" java_version="'+i+'+" type="application/x-java-applet;version='+i+'" pluginspage='+'"http://javadl.sun.com/webapps/download/GetFile/1.6.0_16-b01/windows-i586/xpiinstall.exe"></embed>')}r.push("</div>");r.push("</div>");e.resultHtml=r.join("")}};s.installationProgress.prototype.onJavaBeforeOpenTagRender=function(t,e){if(this.showDownloadingScreen()&&t.javaControl().isJavaSupported()){e.resultHtml=this._createProgressScreen(t,"j")}if(this.showInstallationScreen()&&s.browser.isOpera&&!t.javaControl().isJavaSupported()&&s.javaDetector.getJREs().length>0){this.onJavaBeforeCloseTagRender(t,e);e.resultHtml+="<!-- "}};s.installationProgress.prototype.onJavaRenderStyleAttribute=function(t,e){if(this.showDownloadingScreen()&&t.javaControl().isJavaSupported()){if(s.browser.isIE){e.resultHtml="position:absolute;left:-10000px;"}else{e.resultHtml="visibility:hidden;"}}};s.installationProgress.prototype.onFlashAfterCloseTagRender=function(t,e){if(this.showDownloadingScreen()&&true||t.flashControl().isFlashSupported()){e.resultHtml="</div>"}if(this.showInstallationScreen()&&!t.flashControl().isFlashSupported()&&!s.browser.isIE&&s.flashDetector.detectVersion()[0]>-1){e.resultHtml=" -->"}};s.installationProgress.prototype.onFlashBeforeOpenTagRender=function(t,e){if(this.showDownloadingScreen()&&t.flashControl().isFlashSupported()){e.resultHtml=this._createProgressScreen(t,"f")}if(this.showInstallationScreen()&&!t.flashControl().isFlashSupported()&&!s.browser.isIE&&s.flashDetector.detectVersion()[0]>-1){this.onFlashBeforeCloseTagRender(t,e);e.resultHtml+="<!-- "}};s.installationProgress.prototype.onFlashRenderStyleAttribute=function(t,e){if(this.showDownloadingScreen()&&t.flashControl().isFlashSupported()){if(s.browser.isIE){e.resultHtml="position:absolute;left:-10000px;"}else{e.resultHtml="visibility:hidden;"}}};s.installationProgress.prototype.onFlashBeforeCloseTagRender=function(t,e){if(this.showInstallationScreen()){var r=[];r.push("<div ");r.push('id="'+t.id()+'-install"');var o=t.width(),n=t.height();o=parseInt(o)+""==o?o+"px":o;n=parseInt(n)+""==n?n+"px":n;r.push(' style="margin:0;padding:0;border:0 none;position:relative;z-index:1000;overflow:hidden;width:'+o+";height:"+n+'"');if(this._instructionsCssClass){r.push(' class="'+this._instructionsCssClass+'"')}r.push(">");r.push(this._installFlashPlayerHtml);r.push("</div>");if(!s.browser.isIE){r.push('<object width="0" height="0" type="application/x-shockwave-flash"></object>')}r.push("</div>");e.resultHtml=r.join("")}};s.installationProgress.prototype._createProgressScreen=function(t,e){var r=[],o;var n=t.width();var i=/^(\d+)([^0-9]+)?$/;if(o=i.exec(n)){if(o[2]=="%"){t.width("100%")}if(!o[2]){n+="px"}}else{showWarning("InstallationProgress: Can not parse uploader width: "+n)}var a=t.height();if(o=i.exec(a)){if(o[2]=="%"){t.height("100%")}if(!o[2]){a+="px"}}else{showWarning("InstallationProgress: Can not parse uploader height: "+a)}r.push("<div ");r.push(' style="position: relative;width:'+n+";height:"+a+';"');r.push(">");r.push("<div");r.push(' id="'+t.id()+'-progress"');r.push(' style="border:0 none;margin:0;padding:0;position:absolute;overflow:hidden;width:100%;height:100%"');if(this._progressCssClass){r.push(' class="'+this._progressCssClass+'"')}r.push(">");if(e==="ax"){r.push((this._progressHtml+"").replace("{0}",this._progressImageUrl));r.push(this._commonHtml);if(t.activeXControl().getActiveXInstalledToUpdate()){r.push(this._updateInstructions)}else{if(s.browser.isBeforeIE6XPSP2){r.push(this._beforeIE6XPSP2ProgressHtml)}else if(s.browser.isIE6XPSP2){r.push(this._IE6XPSP2ProgressHtml)}else if(s.browser.isIE7){r.push(this._IE7ProgressHtml)}else{r.push(this._IE8ProgressHtml)}}}else if(e==="j"){r.push((this._progressHtml+"").replace("{0}",this._progressImageUrl));r.push(this._commonHtml)}else if(e==="f"){r.push((this._flashProgressHtml+"").replace("{0}",this._progressImageUrl))}r.push("</div>");return r.join("")};s.installationProgress.prototype._prop=function(t,e,s){if(s){this["_"+t]=e}else{return this["_"+t]}};s.installationProgress.prototype.showDownloadingScreen=function(t){return this._prop("showDownloadingScreen",arguments[0],arguments.length)};s.installationProgress.prototype.showInstallationScreen=function(t){return this._prop("showInstallationScreen",arguments[0],arguments.length)};s.installationProgress.prototype.progressCssClass=function(t){return this._prop("progressCssClass",arguments[0],arguments.length)};s.installationProgress.prototype.instructionsCssClass=function(t){return this._prop("instructionsCssClass",arguments[0],arguments.length)};s.installationProgress.prototype.commonHtml=function(t){return this._prop("commonHtml",arguments[0],arguments.length)};s.installationProgress.prototype.progressHtml=function(t){return this._prop("progressHtml",arguments[0],arguments.length)};s.installationProgress.prototype.flashProgressHtml=function(t){return this._prop("flashProgressHtml",arguments[0],arguments.length)};s.installationProgress.prototype.progressImageUrl=function(t){return this._prop("progressImageUrl",arguments[0],arguments.length)};s.installationProgress.prototype.beforeIE6XPSP2ProgressHtml=function(t){return this._prop("beforeIE6XPSP2ProgressHtml",arguments[0],arguments.length)};s.installationProgress.prototype.beforeIE6XPSP2InstructionsHtml=function(t){return this._prop("beforeIE6XPSP2InstructionsHtml",arguments[0],arguments.length)};s.installationProgress.prototype.IE6XPSP2ProgressHtml=function(t){return this._prop("IE6XPSP2ProgressHtml",arguments[0],arguments.length)};s.installationProgress.prototype.IE6XPSP2InstructionsHtml=function(t){return this._prop("IE6XPSP2InstructionsHtml",arguments[0],arguments.length)};s.installationProgress.prototype.IE7ProgressHtml=function(t){return this._prop("IE7ProgressHtml",arguments[0],arguments.length)};s.installationProgress.prototype.IE7InstructionsHtml=function(t){return this._prop("IE7InstructionsHtml",arguments[0],arguments.length)};s.installationProgress.prototype.IE8ProgressHtml=function(t){return this._prop("IE8ProgressHtml",arguments[0],arguments.length)};s.installationProgress.prototype.IE8InstructionsHtml=function(t){return this._prop("IE8InstructionsHtml",arguments[0],arguments.length)};s.installationProgress.prototype.altInstallerHtml=function(t){return this._prop("altInstallerHtml",arguments[0],arguments.length)};s.installationProgress.prototype.updateInstructions=function(t){return this._prop("updateInstructions",arguments[0],arguments.length)};s.installationProgress.prototype.macInstallJavaHtml=function(t){return this._prop("macInstallJavaHtml",arguments[0],arguments.length)};s.installationProgress.prototype.installJavaHtml=function(t){return this._prop("installJavaHtml",arguments[0],arguments.length)};s.installationProgress.prototype.installFlashPlayerHtml=function(t){return this._prop("installFlashPlayerHtml",arguments[0],arguments.length)};t.Aurigma=t.Aurigma||{__namespace:true};t.Aurigma.ImageUploader=s})(window);
//# sourceMappingURL=aurigma.uploader.installationprogress.map.js