// 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:widgets/Swipe/setting/Placement.html":'\x3cdiv class\x3d"default-layer-setting placement"\x3e\r\n\t\x3cspan class\x3d"layer-text sub-title"\x3e${nls.placement}\x3c/span\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"vertical" class\x3d"vh"\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"showLeftSide" title\x3d"${nls.showLeftSide}"\r\n\t\t\tclass\x3d"show-leftside placement-icons selected"\x3e\x3c/div\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"showRigthSide" title\x3d"${nls.showRigthSide}"\r\n\t\tclass\x3d"show-rightside placement-icons"\x3e\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\t\x3cdiv data-dojo-attach-point\x3d"horizontal" class\x3d"vh hide"\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"showUpSide" title\x3d"${nls.showUpSide}"\r\n\t\t\tclass\x3d"show-upside placement-icons selected"\x3e\x3c/div\x3e\r\n\t\t\x3cdiv data-dojo-attach-point\x3d"showDownSide" title\x3d"${nls.showDownSide}"\r\n\t\t\tclass\x3d"show-downside placement-icons"\x3e\x3c/div\x3e\r\n\t\x3c/div\x3e\r\n\x3c/div\x3e'}});
define("dojo/Evented dojo/_base/declare dojo/_base/lang dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/on dojo/_base/html dojo/text!./Placement.html".split(" "),function(e,f,c,g,h,k,d,a,l){return f([g,h,k,e],{templateString:l,state:{direction:""},postCreate:function(){this.inherited(arguments)},startup:function(){this.own(d(this.showLeftSide,"click",c.hitch(this,function(){this._setDisplay(this.showLeftSide)})));this.own(d(this.showRigthSide,"click",c.hitch(this,function(){this._setDisplay(this.showRigthSide)})));
this.own(d(this.showUpSide,"click",c.hitch(this,function(){this._setDisplay(this.showUpSide)})));this.own(d(this.showDownSide,"click",c.hitch(this,function(){this._setDisplay(this.showDownSide)})));this.setVH(this.config.style);this.initInvert(this.config.invertPlacement);this.inherited(arguments)},setConfig:function(){},getConfig:function(){var b=!1;if(a.hasClass(this.showLeftSide,"selected")||a.hasClass(this.showUpSide,"selected"))b=!1;else if(a.hasClass(this.showRigthSide,"selected")||a.hasClass(this.showDownSide,
"selected"))b=!0;return b},setVH:function(b){"scope"===b?a.addClass(this.domNode,"hide"):(a.removeClass(this.domNode,"hide"),a.removeClass(this.vertical,"hide"),a.removeClass(this.horizontal,"hide"),"horizontal"===b?(a.addClass(this.vertical,"hide"),this.state.direction="horizontal"):(a.addClass(this.horizontal,"hide"),this.state.direction="vertical"),b=this.getConfig(),this.initInvert(b))},initInvert:function(b){a.removeClass(this.showLeftSide,"selected");a.removeClass(this.showRigthSide,"selected");
a.removeClass(this.showUpSide,"selected");a.removeClass(this.showDownSide,"selected");b?"vertical"===this.state.direction?a.addClass(this.showRigthSide,"selected"):a.addClass(this.showDownSide,"selected"):"vertical"===this.state.direction?a.addClass(this.showLeftSide,"selected"):a.addClass(this.showUpSide,"selected")},_setDisplay:function(b){a.removeClass(this.showLeftSide,"selected");a.removeClass(this.showRigthSide,"selected");a.removeClass(this.showUpSide,"selected");a.removeClass(this.showDownSide,
"selected");b&&a.addClass(b,"selected")}})});