// 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/CoordinateConversion/setting/SymbolChooserPopup":function(){define("dojo/_base/declare jimu/BaseWidgetSetting dijit/_WidgetsInTemplateMixin dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/on dojo/text!./SymbolChooserPopup.html dijit/registry jimu/dijit/SymbolChooser jimu/dijit/Message jimu/dijit/Popup dojo/domReady!".split(" "),function(h,n,p,e,k,l,f,r,q,u,v,w){return h([n,p],{templateString:r,baseClass:"jimu-widget-coordinateconversion-setting",postCreate:function(){this.inherited("postCreate",
arguments);this.own(f(this.okButton,"click",e.hitch(this,this._onOKButtonClicked)));this._initSymbolChooser();this._createSymbolChooserPopup()},constructor:function(m){e.mixin(this,m)},_initSymbolChooser:function(){this.symbolChooser=new u(this.symbolParams,l.create("div",{},this.symbolData));this.symbolChooser.startup()},_createSymbolChooserPopup:function(){this.popup=new w({titleLabel:this.symbolChooserTitle,width:420,height:400,content:this.domNode})},_onOKButtonClicked:function(){if(q.byId(this.symbolChooser.pointSize.id).isValid()){if(!k.contains(this.okButton,
"jimu-state-disabled"))this.onOkClick()}else new v({message:this.nls.errorMessage})},onOkClick:function(m){return m}})})},"widgets/CoordinateConversion/setting/EditDefaultNotation":function(){define(["dojo/_base/declare","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dojo/text!./EditDefaultNotation.html"],function(h,n,p,e,k){return h([n,p,e],{templateString:k,notationFormat:null,constructor:function(l){this.notationFormat=l},postCreate:function(){this.notationString.value=
this.notationFormat}})})},"widgets/CoordinateConversion/setting/_build-generate_module":function(){define(["dojo/text!./Setting.html","dojo/text!./css/style.css","dojo/i18n!./nls/strings"],function(){})},"url:widgets/CoordinateConversion/setting/SymbolChooserPopup.html":'\x3cdiv style\x3d"width: 100%; height: 100%;"\x3e\r\n    \x3cdiv class\x3d"esriCTSymbolChooserContainer"\x3e\r\n        \x3cdiv data-dojo-attach-point\x3d"symbolData" title\x3d"${symbolChooserTitle}" class\x3d"common-input esriCTSymbolData"\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"buttonsDiv" class\x3d"buttonsDiv"\x3e\r\n        \x3cdiv class\x3d"button-container button-container-absolute" style\x3d"padding: 0px;"\x3e\r\n            \x3cdiv class\x3d"jimu-btn jimu-float-trailing jimu-leading-margin1" data-dojo-attach-point\x3d"okButton" tabindex\x3d"0"\x3e\r\n                ${nls.common.ok}\x3c/div\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/CoordinateConversion/setting/EditDefaultNotation.html":'\x3cdiv class\x3d\'coordinateContainer\'\x3e\r\n    \x3cspan class\x3d\'jimu-widget-subtitle\' data-dojo-attach-point\x3d\'label1\'\x3e\x3c/span\x3e\r\n    \x3cdiv class\x3d"controlGroup"\x3e\r\n        \x3cdiv class\x3d"controlItem" style\x3d"padding-top: 10px;"\x3e\r\n            \x3cinput class\x3d"edit-default-notation-input" data-dojo-attach-point\x3d"notationString" /\x3e\r\n            \x3c/select\x3e\r\n        \x3c/div\x3e\r\n    \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/CoordinateConversion/setting/Setting.html":'\x3cdiv class\x3d"esriCTMainContainer"\x3e\r\n  \x3cdiv data-dojo-attach-point\x3d"tabDiv" class\x3d"esriCTFullHeight"\x3e\r\n    \x3c!-- location icon --\x3e\r\n    \x3cdiv class\x3d"esriCTlabel" data-dojo-attach-point\x3d"graphicLocationPointSymbolLabelNode"\r\n        title\x3d"${nls.locationSymbol}"\x3e\r\n        ${nls.locationSymbol}\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"esriCTLayerField"\x3e\r\n      \x3cdiv class\x3d"esriCTPreviewField" data-dojo-attach-point\x3d"pointSymbolNode"\x3e\r\n      \x3c/div\x3e\r\n      \x3cdiv class\x3d"esriCTHint esriCTPreviewHintField"\x3e\r\n          ${nls.locationSymbolHintText}\x3c/div\x3e\r\n    \x3c/div\x3e\r\n    \r\n    \x3c!-- Scale --\x3e\r\n    \x3cdiv class\x3d"esriCTlabel" title\x3d"${nls.scaleLabel}"\x3e${nls.scaleLabel}\x3c/div\x3e\r\n    \x3cdiv class\x3d"config-group"\x3e\r\n        \x3cspan class\x3d"esriCTlabel"\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:"120px"},\r\n               constraints:{min:1,pattern:"##############0.################"}\' /\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv style\x3d"width: 100%;"\x3e\r\n      \x3cdiv class\x3d"esriCTlabel"\x3e${nls.inputNotation}\x3c/div\x3e\r\n      \x3cselect style\x3d"width: 150px" data-dojo-type\x3d"dijit/form/Select" data-dojo-attach-point\x3d"inputNotationDropdown"\x3e\r\n      \x3c/select\x3e   \r\n      \x3cinput type\x3d"text" data-dojo-type\x3d"dijit/form/TextBox" data-dojo-attach-point\x3d"inputFormatTextBox"\r\n        style\x3d"width:200px" /\x3e\r\n    \x3c/div\x3e\r\n    \x3cdiv class\x3d"esriCTChkWrapper esriCTHidden" data-dojo-attach-point\x3d"addSignChkBoxWrapper"\x3e\r\n      \x3cdiv data-dojo-attach-point\x3d"addSignChkBox"\r\n        label\x3d"${nls.posNegPrefixLabel}" data-dojo-type\x3d"jimu/dijit/CheckBox"\x3e\x3c/div\x3e\r\n    \x3c/div\x3e\r\n      \r\n    \x3c!-- Notations Table --\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"notationsTable" class\x3d"table-notations-infos"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e\r\n',
"url:widgets/CoordinateConversion/setting/css/style.css":".jimu-widget-coordinateconversion-setting .esriCTMainContainer {width: 100%; height: 90%;}.jimu-widget-coordinateconversion-setting .table-notations-infos {width: 100%; height: 307px; margin-top: 15px;}.jimu-widget-coordinateconversion-setting .esriCTlabel {padding: 10px 0px 5px 0px; font-size: 16px; color: #353535; letter-spacing: 0.44px;}.jimu-widget-coordinateconversion-setting .esriCTColorPickerNode {float: left; margin: 0 10px 0 0;}.jimu-widget-coordinateconversion-setting .esriCTHintInline {line-height: 30px;}.jimu-widget-coordinateconversion-setting .esriCTHintLeftMargin {margin-left: 10px;}.jimu-widget-coordinateconversion-setting .esriCTDirectionTabNode .esriCTHintInline {margin-top: 2px;}.jimu-widget-coordinateconversion-setting .row {clear: both;}.jimu-widget-coordinateconversion .esriCTFullHeight {height: 100%;}.jimu-widget-coordinateconversion-setting .esriCTSelectedLayersDiv {height: 50px; overflow: auto; width: 88%; float: left; border: 1px solid #d2dae2; background: #e3ecf2; margin: 0 10px 0 0px;}.jimu-widget-coordinateconversion-setting .esriCTAddLayerButton {float: right; margin-top: 9px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-coordinateconversion-setting .esriCTLayerSelectorNode {max-height: 200px; overflow: auto; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-coordinateconversion-setting .esriCTLayerSelectorNode .jimu-basic-layer-chooser-from-map .jimu-tree {position: relative !important;}.jimu-widget-coordinateconversion-setting .esriCTLayerListItem {height: 24px; color: #7989a0; padding: 0px 5px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; line-height: 22px; font-size: 14px;}.jimu-widget-coordinateconversion-setting .esriCTGeometryTypeIcon {height: 16px; width: 16px; background-repeat: no-repeat; margin: 6px 2px 0px 10px; float: left;}.jimu-widget-coordinateconversion-setting .esriCTCheckBox {float: left; height: 20px; width: 20px; margin-top: 10px; margin-right: 10px;}.jimu-widget-coordinateconversion-setting .esriCTLayerContainer {width: 100%; float: left;}.jimu-widget-coordinateconversion-setting .esriCTLayerField {display: inline-flex;}.jimu-widget-coordinateconversion-setting .esriCTHint {font-size: 12px;}.jimu-widget-coordinateconversion-setting .esriCTSetRouteURL {width: 100%;}.jimu-widget-coordinateconversion-setting .esriCTHidden {display: none;}.jimu-widget-coordinateconversion-setting .buttonsDiv .jimu-popup .button-container {padding: 0px;}.jimu-widget-coordinateconversion-setting .jimu-float-leading {margin-right: 10px;}.jimu-widget-coordinateconversion-setting .esriCTServiceUrlDiv {float: left; width: 100%;}.jimu-widget-coordinateconversion-setting .esriCTRouteLayersDiv {float: left; width: 100%;}.jimu-widget-coordinateconversion-setting .esriCTItemSelectDiv {margin-top: 10px; float: left; height: 450px; width: 100%;}.jimu-widget-coordinateconversion-setting .esriCTExampleUrl {float: left; width: 100%;}.jimu-widget-coordinateconversion-setting .esriCTRouteListDiv {margin-top: 10px; float: left; width: 100%; height: 360px; overflow: auto; border: 1px solid #ccc;}.jimu-widget-coordinateconversion-setting .esriCTAgolRouteListDiv {margin-top: 10px; float: left; width: 100%; height: 450px; overflow: auto; border: 1px solid #ccc;}.jimu-widget-coordinateconversion-setting .esriCTSearchRadio {float: left; width: 100%;}.jimu-widget-coordinateconversion-setting .serviceUrlContainer {float: left; width: 100%; margin-top: 10px;}.jimu-widget-coordinateconversion-setting .esriCTServiceLable {float: left; width: 100px; line-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-coordinateconversion-setting .esriCTServiceField {width: 85%; float: left;}.jimu-widget-coordinateconversion-setting .esriCTSetServiceURL {float: left; width: 85%;}.jimu-widget-coordinateconversion-setting .urlButton {line-height: 30px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.claro .dijitTreeRowFocused {}.claro .dijitTreeExpando {}.claro .dijitTreeExpando::first-child {}.jimu-widget-coordinateconversion-setting .esriCTSymbolChooserNode {text-align: center; cursor: pointer; min-width: 80px;}.jimu-widget-coordinateconversion-setting .esriCTSymbolPreviewText {font-size: 14px; color: #353535; letter-spacing: 0.39px;}.jimu-widget-coordinateconversion-setting .esriCTPreviewField {}.jimu-widget-coordinateconversion-setting .esriCTPreviewHintField {padding-top: 10px; font-size: 12px; color: #232323; letter-spacing: 0.33px;}.jimu-widget-coordinateconversion-setting .esriCTSymbolPreviewHintField {width: 50%; line-height: 20px; margin-left: 5px; float: right;}.jimu-widget-coordinateconversion-setting .esriCTSymbolPreviewField {width: 35%; min-width: 250px; float: left;}.jimu-widget-coordinateconversion-setting .esriCTDirectionTabNode .dijitTextBox {width: 88% !important; float: left;}.jimu-widget-coordinateconversion-setting .dijitSelect .dijitButtonContents {border-style: none none none none; background-color: #fafafc;}.jimu-widget-coordinateconversion-setting .dijitTreeLabel {font-size: 14px; color: #596679;}.dijitInline.dijitIcon.dijitTreeIcon.dijitLeaf {margin-left: 2px;}.claro .dijitSelect .dijitInputField {font-size: 14px; margin-right: 8px;}.jimu-widget-coordinateconversion-setting .esriCTURLSetButton {line-height: 30px; margin: 0 0 0 10px; float: right; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.jimu-widget-coordinateconversion-setting .esriCTSearchTabNode,.jimu-widget-coordinateconversion-setting .esriCTDirectionTabNode {margin-top: 20px;}.jimu-widget-coordinateconversion-setting .esriCTSymbolChooserContainer {height: calc(100% - 50px); overflow: auto;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTColorPickerNode {float: right; margin: 0 0px 0 10px;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTHint {margin: 0px 5px; float: right;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTLayerField {float: none;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTPreviewHintField {margin-right: 10px;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTlabel {padding: 5px 0px 5px 10px; float: none;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTSelectedLayersDiv {float: right; margin-left: 10px; margin-right: 0px;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTPreviewField {float: right;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTGeometryTypeIcon {float: right;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTSetRouteURL {float: right; margin: 0;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTURLSetButton {float: left; margin: 0;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTSymbolPreviewField {float: right;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTSymbolPreviewText {padding: 0 0 0 5px;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTAddLayerButton {float: left;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTServiceLable {float: right;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTSetServiceURL {float: right;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTSymbolPreviewHintField {float: left; margin-right: 5px; margin-left: 0px;}.esriRtl .jimu-widget-coordinateconversion-setting .esriCTCheckBox {float: right; margin-left: 10px; margin-right: 0px;}.esriRtl .jimu-widget-coordinateconversion-setting .jimu-float-leading {margin-left: 10px; margin-right: 0px;}.edit-default-notation-input {border: 1px solid #999999; color: #000000; font-size: 12px; height: 30px; background-color: transparent; padding: 5px; margin: 0; border-radius: 2px; width: 240px;}.jimu-widget-coordinateconversion-setting .esriCTChkWrapper {padding-top: 10px;}.jimu-widget-coordinateconversion-setting .esriCTChkWrapper .jimu-float-leading{margin-right: 0px;}",
"*now":function(h){h(['dojo/i18n!*preload*widgets/CoordinateConversion/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 jimu/BaseWidgetSetting dijit/_WidgetsInTemplateMixin dojo/_base/lang dojo/_base/html dojo/_base/array dojo/dom-construct dojo/query dojo/on dijit/registry ./SymbolChooserPopup jimu/utils esri/symbols/jsonUtils jimu/dijit/Message jimu/dijit/Popup jimu/dijit/SimpleTable jimu/symbolUtils ./EditDefaultNotation dojo/dom-class dijit/form/TextBox jimu/dijit/CheckBox dijit/form/Select dojo/domReady!".split(" "),function(h,n,p,e,k,l,f,r,q,u,v,w,m,y,z,A,B,C,t){return h([n,p],{baseClass:"jimu-widget-coordinateconversion-setting",
_symbolParams:{},_isInitialLoad:!0,startup:function(){this.inherited(arguments);this.displayNotationsTable=new A({fields:[{name:"show",title:this.nls.showHeaderLabel,width:"auto",type:"checkbox","class":"show"},{name:"index",title:this.nls.indexHeaderLabel,type:"text",hidden:!0},{name:"notation",title:this.nls.notationHeaderLabel,width:"30%",type:"text"},{name:"defaultFormat",title:this.nls.defaultFormatHeaderLabel,width:"30%",type:"text"},{name:"actions",title:this.nls.editFormatHeaderLabel,type:"actions",
width:"30%",actions:["edit"],"class":"symbol"}],selectable:!0,autoHeight:!1});this.displayNotationsTable.placeAt(this.notationsTable);k.setStyle(this.displayNotationsTable.domNode,{height:"100%"});this.own(q(this.displayNotationsTable,"actions-edit",e.hitch(this,this.editDefaultFormatClick)));var a=r("input[type\x3d'text']",this.scale.domNode)[1];k.setStyle(a,{"text-align":"center"});this.setConfig(this.config)},postMixInProperties:function(){this.nls.common={};e.mixin(this.nls.common,window.jimuNls.common)},
postCreate:function(){this._symbolParams={};this._createSymbolPicker(this.pointSymbolNode,"graphicLocationSymbol","esriGeometryPoint",this.nls.locationSymbol);this.notations=[{notation:"DD",format:"YN XE"},{notation:"DDM",format:"A\u00b0 B'N X\u00b0 Y'E"},{notation:"DMS",format:"A\u00b0 B' C\"N X\u00b0 Y' Z\"E"},{notation:"GARS",format:"XYQK"},{notation:"GEOREF",format:"ABCDXY"},{notation:"MGRS",format:"ZSXY"},{notation:"USNG",format:"ZSXY"},{notation:"UTM",format:"ZB X Y"},{notation:"UTM_H",format:"ZH X Y"}];
this._initListeners();this._populateInputNotationsList();this.showHideAddSignPrefixChk()},getConfig:function(){var a=this.displayNotationsTable.getData(),b=[];l.forEach(a,e.hitch(this,function(c){var d={};c.show&&(d.notation=c.notation,d.defaultFormat=c.defaultFormat,b.push(d))}));this.config={symbols:this._symbolParams,coordinateconversion:{zoomScale:parseFloat(this.scale.value)},initialCoords:b,inputNotation:this.inputNotationDropdown.getValue(),inputFormat:this.inputFormatTextBox.value,addSignPrefix:t.contains(this.addSignChkBoxWrapper,
"esriCTHidden")?!1:this.addSignChkBox.getValue()};return(a=u.byId(this.scale.id))&&!a.isValid()?(new y({message:a.message}),!1):this.config},setConfig:function(a){this.config=a;this._setNotationTable(this.notations,this.config.initialCoords);this.scale.set("value",this.config.coordinateconversion.zoomScale);this.config.hasOwnProperty("inputNotation")?this.inputNotationDropdown.set("value",this.config.inputNotation):this.inputNotationDropdown.set("value","DD");this.config.hasOwnProperty("inputFormat")?
this.inputFormatTextBox.set("value",this.config.inputFormat):this.inputNotationDropdown.set("value","YN XE");this.config.hasOwnProperty("addSignPrefix")||!t.contains(this.addSignChkBoxWrapper,"esriCTHidden")?this.addSignChkBox.setValue(this.config.addSignPrefix):this.addSignChkBox.setValue(!1)},_createSymbolPicker:function(a,b,c,d){if(c){var g={};g.type=w.getSymbolTypeByGeometryType(c);this.config&&this.config.symbols&&this.config.symbols.hasOwnProperty(b)&&(g.symbol=m.fromJson(this.config.symbols[b]));
var x=this._createPreviewContainer(a);var D={symbolChooserTitle:d,symbolParams:g,nls:this.nls,symbolType:b};this._showSelectedSymbol(x,g.symbol,b);this.own(q(x,"click",e.hitch(this,function(){g.symbol=m.fromJson(this._symbolParams[b]);this._initSymbolChooserPopup(D,x)})))}},_createPreviewContainer:function(a){a=f.create("table",{cellspacing:"0",cellpadding:"0"},a);a=f.create("tr",{style:"height:30px"},a);var b=f.create("td",{},a);f.create("div",{innerHTML:this.nls.symbolPickerPreviewText,"class":"esriCTSymbolPreviewText"},
b);a=f.create("td",{},a);return f.create("div",{"class":"esriCTSymbolChooserNode"},a)},_initSymbolChooserPopup:function(a,b){var c=new v(a);c.onOkClick=e.hitch(this,function(){var d=c.symbolChooser.getSymbol();this._showSelectedSymbol(b,d,a.symbolType);c.popup.close()})},_showSelectedSymbol:function(a,b,c){f.empty(a);if(b){var d=B.createSymbolNode(b);d||(d=f.create("div"));f.place(d,a);this._symbolParams[c]=b.toJson()}},_setNotationTable:function(a,b){this.displayNotationsTable.clear();for(var c=
0;c<a.length;c++){for(var d={notation:a[c].notation,defaultFormat:a[c].format,index:""+c},g=0;g<b.length;g++)b[g].notation===a[c].notation&&(d.show=!0,d.defaultFormat=b[g].defaultFormat);this.displayNotationsTable.addRow(d)}},editDefaultFormatClick:function(a){var b=r(".action-item-parent",a);if(b&&b.length)if(b=this.displayNotationsTable.getRowData(a),b.show)b=parseInt(b.index,10),this.openEditDefaultFormatDialog(a,b);else var c=new y({message:this.nls.warning,buttons:[{label:this.nls.common.ok,
onClick:e.hitch(this,function(){c.close()})}]})},openEditDefaultFormatDialog:function(a,b){var c=this.displayNotationsTable.getRowData(a),d=new z({titleLabel:this.nls.setDefaultFormatTitlePane,width:300,maxHeight:200,autoHeight:!0,content:new C(c.defaultFormat),buttons:[{label:this.nls.common.ok,onClick:e.hitch(this,function(){c.defaultFormat=d.content.notationString.value;this.displayNotationsTable.editRow(a,c);d.close();d=null})},{label:this.nls.common.cancel,onClick:e.hitch(this,function(){d.close();
d=null})}],onClose:function(){d=null}})},_populateInputNotationsList:function(){l.forEach(this.notations,e.hitch(this,function(a){this.inputNotationDropdown.addOption({value:a.notation,label:a.notation,format:a.format})}))},_initListeners:function(){this.own(q(this.inputNotationDropdown,"change",e.hitch(this,function(a){this.showHideAddSignPrefixChk();this._isInitialLoad||(this.inputFormatTextBox.set("value",this.inputNotationDropdown.getOptions(a).format),this.addSignChkBox.setValue(!1));this._isInitialLoad=
!1})))},showHideAddSignPrefixChk:function(){var a=this.inputNotationDropdown.getValue();"DD"===a||"DDM"===a||"DMS"===a?t.remove(this.addSignChkBoxWrapper,"esriCTHidden"):t.add(this.addSignChkBoxWrapper,"esriCTHidden")}})});