// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
require({cache:{"widgets/FullScreen/a11y/Widget":function(){define(["dojo/_base/lang","dojo/on","dojo/_base/html","dijit/a11yclick"],function(c,e,b,f){return{a11y_updateLabel:function(d){d&&b.setAttr(this.domNode,"aria-label",d)},a11y_initEvents:function(){this.own(e(this.domNode,f,c.hitch(this,this._onFullScreenClick)))}}})},"widgets/FullScreen/_build-generate_module":function(){define(["dojo/text!./Widget.html","dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:widgets/FullScreen/Widget.html":'\x3cdiv\x3e\r\n\t\x3cdiv class\x3d"operate-item fullScreen" data-dojo-attach-event\x3d"onclick:_onFullScreenClick" data-dojo-attach-point\x3d"fullScreenBtn" title\x3d"${label}"\x3e\x3c/div\x3e\r\n\x3c/div\x3e',
"url:widgets/FullScreen/css/style.css":'.jimu-widget-fullScreen {border-radius: 5px; border: 1px solid #999;}.jimu-widget-fullScreen:not(.jimu-main-background) {color: #555;}.jimu-widget-fullScreen:not(.jimu-main-background) .fullScreen{background-color: #555;}.jimu-widget-fullScreen:hover{opacity: 1; background-color: #333;}.jimu-widget-fullScreen:not(.jimu-main-background) .fullScreen:hover{background-color: #333;}.jimu-widget-fullScreen.mobile{display: none !important;}.jimu-widget-fullScreen .fullScreen {width: 30px; height: 30px; text-align: center; color: #fff; line-height: 30px; font-size: 14px; margin-left: auto; margin-right: auto; cursor: pointer; border-radius: 5px;}.jimu-widget-fullScreen .fullScreen:before{font-family: \'Themefont\';}.jimu-widget-fullScreen .fullScreen.restore:before {content: "\\a906";}.jimu-widget-fullScreen .fullScreen.maximize:before {content: "\\a905";}.jimu-widget-fullScreen .fullScreen.f11 {background: #11ee11;}:-webkit-full-screen {width: 100%; height: 100%; background: transparent;}:-moz-full-screen {width: 100%; height: 100%; background: transparent;}:-ms-fullscreen {width: 100%; height: 100%; background: transparent;}:fullscreen {width: 100%; height: 100%; background: transparent;}:full-screen {width: 100%; height: 100%; background: transparent;}:fullscreen-ancestor {z-index: -1;}.body-fullscreened \x3e .dijitPopup {z-index: 2147483647 !important;}',
"*now":function(c){c(['dojo/i18n!*preload*widgets/FullScreen/nls/Widget*["ar","bs","ca","cs","da","de","en","el","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt-br","pt-pt","ro","ru","sk","sl","sr","sv","th","tr","zh-cn","uk","vi","zh-hk","zh-tw","ROOT"]'])},"*noref":1}});
define("dojo/_base/declare dojo/_base/lang dojo/_base/html dojo/on dojo/query jimu/BaseWidget dojo/_base/window jimu/utils ./a11y/Widget".split(" "),function(c,e,b,f,d,h,k,g,l){c=c([h],{name:"FullScreen",baseClass:"jimu-widget-fullScreen",domsCache:{appDoc:null},ACTION:{HIDE:"hide",SHOW:"show"},MODE:{RESTORE:"restore",MAXIMIZE:"maximize"},state:null,_changeColorThemes:["BillboardTheme","BoxTheme","DartTheme","PlateauTheme"],startup:function(){this.a11y_updateLabel(this.nls._widgetLabel);this.domsCache.appDoc=
k.doc;this.state=this.MODE.RESTORE;b.addClass(this.fullScreenBtn,this.state);-1<this._changeColorThemes.indexOf(this.appConfig.theme.name)&&b.addClass(this.domNode,"jimu-main-background");this.own(f(this.domsCache.appDoc,"webkitfullscreenchange,mozfullscreenchange,MSFullscreenChange,fullscreenchange",e.hitch(this,function(){this._onFullScreenChangeEvent()})));this.a11y_initEvents()},setPosition:function(){this.inherited(arguments);"DashboardTheme"!==window.getAppConfig().theme.name||window.appInfo.isRunInMobile||
(b.setStyle(this.domNode,"z-index",110),this.placeAt(this._getDBThemeContainer()));window.appInfo.isRunInMobile||g.isMobileUa()?b.addClass(this.domNode,"mobile"):b.removeClass(this.domNode,"mobile")},onAppConfigChanged:function(a){-1<this._changeColorThemes.indexOf(a.theme.name)?b.addClass(this.domNode,"jimu-main-background"):b.removeClass(this.domNode,"jimu-main-background")},_onFullScreenClick:function(a){a&&a.stopPropagation&&a.stopPropagation();this._toggleFullScreen()},_onFullScreenChangeEvent:function(){this._isFullScreen()?
this.state=this.MODE.MAXIMIZE:(this.state=this.MODE.RESTORE,this._toggleFullScreen(this.state));this._toggleBtnIcon()},_toggleFullScreen:function(a){this._isFullScreen()||a===this.MODE.RESTORE?this._cancelFullScreen(this.domsCache.appDoc):this._launchFullScreen(this.domsCache.appDoc.body)},_toggleBtnIcon:function(){this.state===this.MODE.RESTORE?(b.addClass(this.fullScreenBtn,"restore"),b.removeClass(this.fullScreenBtn,"maximize"),b.removeClass(this.domsCache.appDoc.body,"body-fullscreened")):(b.addClass(this.fullScreenBtn,
"maximize"),b.removeClass(this.fullScreenBtn,"restore"),b.addClass(this.domsCache.appDoc.body,"body-fullscreened"))},_isFullScreen:function(){var a=this._isElementFullScreen(this.domsCache.appDoc);g.isInConfigOrPreviewWindow()&&!1===this._isFullScreenCountByJS(window)&&!0===this._isFullScreenCountByJS(this._getBuilderWindow())&&(a=!1);return a},_getBuilderWindow:function(){return window.parent},_getDBThemeContainer:function(){var a=null;return a=window.appInfo.isRunInMobile?d("#main-page .DashboardTheme")[0]:
d(".jimu-dnd-layout")[0]},_isFullScreenCountByJS:function(a){return Math.floor(a.innerWidth)===Math.floor(screen.width)&&Math.floor(a.innerHeight)===Math.floor(screen.height)},_isElementFullScreen:function(a){return!!(a.fullscreenElement||a.mozFullScreenElement||a.webkitFullscreenElement||a.msFullscreenElement)},_launchFullScreen:function(a){if(a.requestFullScreen)a.requestFullScreen();else if(a.mozRequestFullScreen)a.mozRequestFullScreen();else if(a.webkitRequestFullScreen)a.webkitRequestFullScreen();
else if(a.msRequestFullscreen)a.msRequestFullscreen();else return!1},_cancelFullScreen:function(a){if(a.fullscreen||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement)if(a.exitFullscreen)a.exitFullscreen();else if(a.mozCancelFullScreen)a.mozCancelFullScreen();else if(a.webkitCancelFullScreen)a.webkitCancelFullScreen();else if(a.msExitFullscreen)a.msExitFullscreen();else return!1}});c.extend(l);return c});