// 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:{"url:themes/PocketTheme/panels/PocketPanel/Panel.html":'\x3cdiv\x3e\r\n  \x3cdiv class\x3d"jimu-panel-title" data-dojo-attach-point\x3d"titleNode"\x3e\r\n    \x3cdiv tabindex\x3d"0" role\x3d"button" class\x3d"max-btn jimu-vcenter jimu-float-trailing" data-dojo-attach-point\x3d"maxNode"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"jimu-container" data-dojo-attach-point\x3d"containerNode"\x3e\r\n    \x3cdiv class\x3d"empty-tip"\x3e${nls.emptyPanelTip}\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/_base/declare dojo/_base/lang dojo/on dijit/focus dojo/dom-attr dojo/keys dojo/query dojo/_base/html dojo/topic dijit/_TemplatedMixin dojo/text!./Panel.html jimu/BaseWidgetPanel jimu/utils".split(" "),function(n,g,h,t,f,d,m,c,k,p,q,r,e){return n([r,p],{baseClass:"jimu-panel jimu-pocket-panel",templateString:q,postMixInProperties:function(){this.headerNls=window.jimuNls.panelHeader},postCreate:function(){this.inherited(arguments);this.own(h(this.maxNode,"click",g.hitch(this,"_onMaxBtnClicked")));
f.set(this.maxNode,"aria-label",this.headerNls.maxWindow);this.own(h(this.maxNode,"keydown",g.hitch(this,function(a){a.keyCode!==d.ENTER&&a.keyCode!==d.SPACE||this._onMaxBtnClicked(a);a.keyCode===d.ESCAPE&&(a.stopPropagation(),this.domNode.focus())})));f.set(this.domNode,"tabindex",this.config.tabIndex)},startup:function(){var a=this.getAllWidgetConfigs();a=Array.isArray(this.config.widgets)?this.config.widgets:[this.config];0<a.length&&(c.empty(this.containerNode),this.own(h(this.domNode,"keydown",
g.hitch(this,function(b){var l=this.widgetManager.getWidgetById(a[0].id);b.keyCode===d.ESCAPE&&(this._isShowingPanelOfMobileMode()&&document.activeElement&&document.activeElement.id!==this.domNode.id?this.maxNode.focus():this.domNode.focus());document.activeElement&&document.activeElement.id===this.domNode.id&&b.keyCode===d.ENTER&&e.focusFirstFocusNode(l.domNode)}))));this._setPosition();this.inherited(arguments)},resize:function(){var a=e.detectUserAgent();a&&a.os&&a.os.android&&!0===a.os.android?
"INPUT"!==document.activeElement.tagName&&"input"==document.activeElement.tagName&&this._setPosition():this._setPosition()},destroy:function(){var a;if(a=document.getElementById(this.baseClass+"positionCSS"))a.disabled=!0;a=m(".esriControlsBR");window.isRTL?c.setStyle(a[0],{left:"0px"}):c.setStyle(a[0],{right:"0px"});this.inherited(arguments)},_isShowingPanelOfMobileMode:function(){return window.appInfo.isRunInMobile&&760>=window.innerWidth?!0:!1},_onMaxBtnClicked:function(a){a.stopPropagation();
this._isShowingPanelOfMobileMode()&&("maximized"===this.windowState?(this.panelManager.normalizePanel(this),f.set(this.maxNode,"aria-label",this.headerNls.maxWindow)):(this.panelManager.maximizePanel(this),f.set(this.maxNode,"aria-label",this.headerNls.restoreWindow)),this._setPosition(),this.maxNode.focus())},_setPosition:function(){var a=e.getPositionStyle(this.position);var b=this.panelManager.getPanelById(this.id);if(this._isShowingPanelOfMobileMode()){a.width="100%";a.right="0";a.left="0";a.bottom=
"0";"maximized"===this.windowState?(a.height="100%",a.width="100%",a.top="0",k.publish("changeMapPosition",{bottom:"0"})):(a.height="50%",a.width="100%",a.top="50%",k.publish("changeMapPosition",{bottom:"50%"}));c.setStyle(b.domNode,a);c.place(b.domNode,jimuConfig.layoutId);c.setStyle(b.titleNode,"display","block");var l=b.titleNode.offsetHeight;c.setStyle(b.containerNode,{height:"calc(100% - "+l+"px)"})}else a.height="auto",b.titleNode&&c.setStyle(b.titleNode,"display","none"),c.setStyle(b.containerNode,
{height:"100%"}),k.publish("changeMapPosition",{bottom:"0px"}),c.place(b.domNode,jimuConfig.mapId),c.setStyle(b.domNode,a);this._setAttributionAndLogoPosition(a);"auto"===a.right&&!window.isRTL||"15px"===a.right&&window.isRTL?this._setPositionStyles(!0):this._setPositionStyles(!1)},_setAttributionAndLogoPosition:function(a){var b;(b=m(".esriControlsBR"))&&0<b.length&&"auto"===a.left?c.setStyle(b[0],{right:"380px"}):b&&0<b.length&&("auto"===a.right&&window.isRTL?c.setStyle(b[0],{left:"380px"}):"auto"!==
a.right&&window.isRTL?c.setStyle(b[0],{left:"0px"}):c.setStyle(b[0],{right:"0px"}))},_setPositionStyles:function(a){var b=document.getElementById(this.baseClass+"positionCSS");a?b?b.disabled=!1:(a=e.getUriInfo(this.uri),e.loadStyleLink(this.baseClass+"positionCSS",a.folderUrl+"positions.css",null)):b&&(b.disabled=!0)}})});