// 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/MyLocation/setting/_build-generate_module":function(){define(["dojo/text!./Setting.html","dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:widgets/MyLocation/setting/Setting.html":'\x3cdiv style\x3d"width:100%;"\x3e\r\n  \x3ctable class\x3d"setting-table input-table" cellspacing\x3d"0"\x3e\r\n    \x3ctbody\x3e\r\n      \x3ctr\x3e\r\n        \x3ctd class\x3d"first"\x3e\r\n          \x3cdiv class\x3d"cb" data-dojo-type\x3d"jimu/dijit/CheckBox" data-dojo-attach-point\x3d"highlightLocation"\r\n            data-dojo-props\x3d\'label:"${nls.highlightLocation}"\'\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n        \x3c!--\x3ctd class\x3d"second"\x3e\x3c/td\x3e--\x3e\r\n        \x3ctd class\x3d"third"\x3e\r\n          \x3cdiv class\x3d"help-icon"\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr\x3e\r\n        \x3ctd class\x3d"first"\x3e\r\n          \x3cdiv class\x3d"cb" data-dojo-type\x3d"jimu/dijit/CheckBox" data-dojo-attach-point\x3d"useTracking"\r\n            data-dojo-props\x3d\'label:"${nls.useTracking}"\'\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n        \x3c!--\x3ctd class\x3d"second"\x3e\x3c/td\x3e--\x3e\r\n        \x3ctd class\x3d"third"\x3e\r\n          \x3cdiv class\x3d"help-icon"\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"compass-setting"\x3e\r\n        \x3ctd class\x3d"first"\x3e\r\n          \x3cdiv class\x3d"cb" data-dojo-type\x3d"jimu/dijit/CheckBox" data-dojo-attach-point\x3d"useCompass"\r\n            data-dojo-props\x3d\'label:"${nls.useCompass}"\'\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n        \x3c!--\x3ctd class\x3d"second"\x3e\x3c/td\x3e--\x3e\r\n        \x3ctd class\x3d"third"\x3e\r\n          \x3cdiv class\x3d"help-icon"\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"compass-setting"\x3e\r\n        \x3ctd class\x3d"first"\x3e\r\n          \x3cdiv class\x3d"cb" data-dojo-type\x3d"jimu/dijit/CheckBox" data-dojo-attach-point\x3d"useAccCircle"\r\n            data-dojo-props\x3d\'label:"${nls.useAccCircle}"\'\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n        \x3c!--\x3ctd class\x3d"second"\x3e\x3c/td\x3e--\x3e\r\n        \x3ctd class\x3d"third"\x3e\r\n          \x3cdiv class\x3d"help-icon"\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr\x3e\r\n        \x3ctd class\x3d"first"\x3e\r\n          \x3cspan class\x3d"inputs-label"\x3e${nls.timeout}\x3c/span\x3e\r\n          \x3cdiv class\x3d"config-group"\x3e\r\n            \x3cinput type\x3d"text" data-dojo-type\x3d"dijit/form/NumberTextBox" required\x3d"true" placeHolder\x3d"15000"\r\n                   data-dojo-attach-point\x3d"timeout" data-dojo-props\x3d\'style:{width:"100px"}, constraints:{min:10}\'/\x3e\r\n            \x3cspan style\x3d"margin: 0 10px"\x3e(ms)\x3c/span\x3e\r\n          \x3c/div\x3e\r\n        \x3c/td\x3e\r\n        \x3c!--\x3ctd class\x3d"second"\x3e\x3c/td\x3e--\x3e\r\n        \x3ctd class\x3d"third"\x3e\r\n          \x3cdiv class\x3d"help-icon"\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr\x3e\r\n        \x3ctd class\x3d"first"\x3e\r\n          \x3cspan class\x3d"inputs-label"\x3e${nls.zoomScale}\x3c/span\x3e\r\n          \x3cdiv class\x3d"config-group"\x3e\r\n            \x3cspan\x3e1: \x3c/span\x3e\r\n            \x3cinput type\x3d"text" data-dojo-type\x3d"dijit/form/NumberTextBox" required\x3d"true" placeHolder\x3d"50000"\r\n                   data-dojo-attach-point\x3d"scale" data-dojo-props\x3d\'style:{width:"150px"},\r\n                   constraints:{min:1,pattern:"##############0.################"}\'/\x3e\r\n          \x3c/div\x3e\r\n        \x3c/td\x3e\r\n        \x3c!--\x3ctd class\x3d"second"\x3e\x3c/td\x3e--\x3e\r\n        \x3ctd class\x3d"third"\x3e\r\n          \x3cdiv class\x3d"help-icon"\x3e\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n    \x3c/tbody\x3e\r\n  \x3c/table\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/MyLocation/setting/css/style.css":".jimu-widget-mylocation-setting{margin:0; padding:0; font-size:15px;}.jimu-widget-mylocation-setting .setting-table \x3e thead \x3e tr \x3e th,.jimu-widget-mylocation-setting .setting-table \x3e tbody \x3e tr \x3e td{height:40px; line-height:40px; vertical-align:middle;}.jimu-widget-mylocation-setting .input-table \x3e tbody \x3e tr \x3e .first{width:auto; text-align: left; padding-right:15px; position: relative; display: flex;}.jimu-widget-mylocation-setting .input-table \x3e tbody \x3e tr \x3e .first .cb,.cb-label{padding-left: 5px;}.jimu-widget-mylocation-setting .input-table \x3e tbody \x3e tr \x3e .first .inputs-label{min-width: 150px; padding-right: 20px; display: flex;}.jimu-widget-mylocation-setting .input-table \x3e tbody \x3e tr \x3e .first .config-group{display: flex; align-items: center; min-width: 200px;}.jimu-widget-mylocation-setting .input-table \x3e tbody \x3e tr \x3e .second{width:200px;}.jimu-widget-mylocation-setting .input-table \x3e tbody \x3e tr \x3e .third{width:35px;}.jimu-widget-mylocation-setting .compass-setting .first{margin: 0 20px;}",
"*now":function(b){b(['dojo/i18n!*preload*widgets/MyLocation/setting/nls/Setting*["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/on dojo/_base/lang dijit/_WidgetsInTemplateMixin jimu/BaseWidgetSetting jimu/dijit/Message dijit/form/NumberTextBox jimu/dijit/CheckBox".split(" "),function(b,c,d,e,f,g){return b([f,e],{baseClass:"jimu-widget-mylocation-setting",startup:function(){this.inherited(arguments);this.config.locateButton||(this.config.locateButton={});this.config.locateButton.geolocationOptions||(this.config.locateButton.geolocationOptions={});this.own(c(this.highlightLocation,"change",d.hitch(this,
"_compassParamHanlder")));this.own(c(this.useTracking,"change",d.hitch(this,"_compassParamHanlder")));this.setConfig(this.config)},setConfig:function(a){this.config=a;this._setCompassParam();a.locateButton.geolocationOptions&&a.locateButton.geolocationOptions.timeout&&this.timeout.set("value",a.locateButton.geolocationOptions.timeout);a.locateButton.highlightLocation||"undefined"===typeof a.locateButton.highlightLocation?this.highlightLocation.setValue(!0):this.highlightLocation.setValue(!1);a.locateButton.useTracking||
"undefined"===typeof a.locateButton.useTracking?this.useTracking.setValue(!0):this.useTracking.setValue(!1);a.locateButton.scale&&this.scale.set("value",a.locateButton.scale)},getConfig:function(){if(!this.isValid())return new g({message:this.nls.warning}),!1;this.config.locateButton.geolocationOptions.timeout=parseInt(this.timeout.value,10);this.config.locateButton.highlightLocation=this.highlightLocation.checked;this.config.locateButton.useTracking=this.useTracking.checked;this.config.locateButton.scale=
parseFloat(this.scale.value);this._getCompassParam();return this.config},isValid:function(){return this.scale.isValid()&&this.timeout.isValid()?!0:!1},_compassParamHanlder:function(){this.highlightLocation.checked&&this.useTracking.checked?(this.useCompass.set("disabled",!1),this.useAccCircle.set("disabled",!1)):(this.useCompass.set("disabled",!0),this.useAccCircle.set("disabled",!0))},_getCompassParam:function(){this.config.useCompass=this.useCompass.checked;this.config.useAccCircle=this.useAccCircle.checked},
_setCompassParam:function(){this.useCompass.setValue(this.config.useCompass);this.useAccCircle.setValue(this.config.useAccCircle)}})});