// 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/Geoprocessing/editors/RecordSetEditorChooser.html":'\x3cdiv\x3e\r\n  \x3cdiv class\x3d"field"\x3e\r\n    \x3cinput id\x3d"gpRecordModeJSON" name\x3d"mode" data-dojo-type\x3d"dijit/form/RadioButton" data-dojo-attach-point\x3d"jsonMode" data-dojo-attach-event\x3d"onclick: _onJSONModeSelect" class\x3d"jimu-leading-margin10"\x3e\r\n    \x3clabel for\x3d"gpRecordModeJSON" style\x3d"width: auto;" class\x3d"jimu-leading-margin025"\x3e${nls.inputJSONString}\x3c/label\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv class\x3d"field"\x3e\r\n    \x3cinput id\x3d"gpRecordModeTable" name\x3d"mode" data-dojo-type\x3d"dijit/form/RadioButton" data-dojo-attach-point\x3d"tableMode" data-dojo-attach-event\x3d"onclick: _onTableModeSelect" class\x3d"jimu-leading-margin10"\x3e\r\n    \x3clabel for\x3d"gpRecordModeTable" style\x3d" width: auto;" class\x3d"jimu-leading-margin025"\x3e${nls.selectTable}\x3c/label\x3e\r\n  \x3c/div\x3e\r\n  \x3cdiv style\x3d"margin-top:5px;display:none;" data-dojo-attach-point\x3d"defaultJSONDiv"\x3e\r\n    \x3cdiv data-dojo-attach-point\x3d"jsonEditorDiv"\x3e\x3c/div\x3e\r\n  \x3c/div\x3e\r\n\x3c/div\x3e\r\n'}});
define("dojo/_base/declare dojo/_base/html dojo/_base/lang dojo/on dojo/text!./RecordSetEditorChooser.html dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin ../BaseEditor ./simpleEditors dojo/i18n!../nls/strings dijit/form/RadioButton".split(" "),function(d,b,a,c,e,f,g,h,k,l){return d([h,f,g],{baseClass:"jimu-gp-editor-base jimu-gp-editor-rsec",templateString:e,editorName:"RecordSetEditorChooser",postMixInProperties:function(){this.inherited(arguments);a.mixin(this.nls,l)},postCreate:function(){this.inherited(arguments);
this.value={};this.own(c(this.jsonMode,"click",a.hitch(this,this._onJSONModeSelect)));this.own(c(this.tableMode,"click",a.hitch(this,this._onTableModeSelect)));"json"===this.param.recordSetMode?(this.jsonMode.set("checked",!0),this._onJSONModeSelect()):"table"===this.param.recordSetMode&&(this.tableMode.set("checked",!0),this._onTableModeSelect());this.editor=new k.SimpleJsonEditor({value:this.param.defaultValue,nls:this.nls});this.editor.placeAt(this.jsonEditorDiv)},getValue:function(){"json"===
this.value.recordSetMode&&(this.value.defaultValue=this.editor.getValue());return this.value},_onJSONModeSelect:function(){this.value.recordSetMode="json";b.setStyle(this.defaultJSONDiv,"display","block")},_onTableModeSelect:function(){this.value.recordSetMode="table";b.setStyle(this.defaultJSONDiv,"display","none")}})});