// 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/DataAggregation/js/UI/templates/LocationType.html":'\x3cdiv class\x3d"pad-left-5 no-select"\x3e\r\n  \x3ctable class\x3d"page-table" cellpading\x3d"0"\x3e\r\n    \x3ctbody\x3e\r\n      \x3ctr\x3e\r\n        \x3ctd colspan\x3d"3" class\x3d"panel-title-td"\x3e\r\n          \x3cdiv class\x3d"panel-title-text" tabindex\x3d"0" role\x3d"region"\r\n            aria-label\x3d"${nls.mapping.locationMapping} ${nls.locationMapping.locationMappingPageHint}"\x3e\r\n            ${nls.mapping.locationMapping}\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"bottom-border-bold task-instruction-row"\x3e\r\n        \x3ctd colspan\x3d"3" class\x3d"panel-title-hint-td"\x3e\r\n          \x3cdiv class\x3d"instruction"\x3e${nls.locationMapping.locationMappingPageHint}\x3c/div\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"task-row task-instruction-row" \x3e \r\n        \x3ctd class\x3d"field-control-td pad-left-10"\x3e\r\n          \x3cinput name\x3d"lt" data-dojo-type\x3d"dijit/form/RadioButton"\r\n                 class\x3d"jimu-radio-btn"\r\n                 id\x3d"${id}_rdo-address"\r\n                 type\x3d"radio"\r\n                 data-dojo-attach-point\x3d"rdoAddress"\r\n                 title\x3d"${nls.locationMapping.useAddress}" \r\n                 tabindex\x3d"0" \r\n                 aria-label\x3d"${nls.locationMapping.useAddress} ${nls.locationMapping.useAddressHint}"\r\n                 data-dojo-attach-event\x3d"onClick:_rdoAddressClick"\r\n                 role\x3d"radio"/\x3e\r\n          \x3clabel class\x3d"main-text" for\x3d"${id}_rdo-address"\x3e${nls.locationMapping.useAddress}\x3c/label\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"bottom-border task-instruction-row"\x3e\r\n        \x3ctd class\x3d"pad-left-20 pad-bottom-10"\x3e\r\n          \x3cspan class\x3d"instruction"\x3e${nls.locationMapping.useAddressHint}\x3c/span\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"task-instruction-row task-row"\x3e\r\n        \x3ctd class\x3d"field-control-td pad-left-10"\x3e\r\n          \x3cinput name\x3d"lt" data-dojo-type\x3d"dijit/form/RadioButton"\r\n                 class\x3d"jimu-radio-btn"\r\n                 id\x3d"${id}_rdo-coordinate"\r\n                 type\x3d"radio"\r\n                 data-dojo-attach-point\x3d"rdoCoordinates"\r\n                 title\x3d"${nls.locationMapping.useCoordinates}" \r\n                 tabindex\x3d"0"\r\n                 aria-label\x3d"${nls.locationMapping.useCoordinates} ${nls.locationMapping.useCoordinatesHint}"\r\n                 data-dojo-attach-event\x3d"onClick:_rdoCoordinateClick"\r\n                 role\x3d"radio"/\x3e\r\n          \x3clabel class\x3d"main-text" for\x3d"${id}_rdo-coordinate"\x3e${nls.locationMapping.useCoordinates}\x3c/label\x3e\r\n        \x3c/td\x3e\r\n      \x3c/tr\x3e\r\n      \x3ctr class\x3d"bottom-border task-instruction-row"\x3e\r\n        \x3ctd class\x3d"pad-left-20 pad-bottom-10"\x3e\r\n          \x3cspan class\x3d"instruction"\x3e${nls.locationMapping.useCoordinatesHint}\x3c/span\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'}});
define("dojo/_base/declare dojo/_base/lang dijit/_WidgetBase dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin dojo/Evented dojo/Deferred dojo/on dojo/keys dojo/text!./templates/LocationType.html dijit/form/RadioButton".split(" "),function(g,d,h,k,l,m,e,f,q,n){return g([h,k,l,m],{baseClass:"cf-location-type",declaredClass:"CriticalFacilities.LocationType",templateString:n,_started:null,label:"LocationType",parent:null,nls:null,map:null,appConfig:null,config:null,useAddress:!0,useCoordinates:!1,
theme:"",styleColor:"",_coordinatesView:void 0,_addressView:void 0,constructor:function(a){d.mixin(this,a)},postCreate:function(){this.inherited(arguments);this._initRadioButtons()},_initRadioButtons:function(){this.own(f(this.rdoAddress,"change",d.hitch(this,this._rdoAddressChanged)));this.own(f(this.rdoCoordinates,"change",d.hitch(this,this._rdoCoordinateChanged)));this.rdoAddress.set("checked",this.useAddress);this.useAddress&&(this.lastFocusNode=this.rdoAddress.focusNode);this.rdoCoordinates.set("checked",
this.useCoordinates)},startup:function(){this._started=!0;this._updateAltIndexes()},onShown:function(){this.pageContainer.nextDisabled=!1},validate:function(a,c){var b=new e;"next-view"===a?b.resolve(this._nextView()):"back-view"===a?b.resolve(this._backView()):this._homeView(c).then(function(p){b.resolve(p)});return b},_nextView:function(){return!0},_backView:function(){return!0},_homeView:function(a){var c=new e;this.pageContainer.getViewByTitle("Home").verifyClearSettings(a).then(function(b){c.resolve(b)});
return c},_updateAltIndexes:function(){if(this.pageContainer&&!this._coordinatesView&&!this._addressView){this._coordinatesView=this.pageContainer.getViewByTitle("Coordinates");this._addressView=this.pageContainer.getViewByTitle("Addresses");var a=this.rdoAddress.get("checked");this._addressView&&this._coordinatesView&&(this._addressView.altBackIndex=this.index,this._coordinatesView.altBackIndex=this.index,this.altNextIndex=a?this._addressView.index:this._coordinatesView.index)}},_rdoAddressClick:function(){this.rdoAddress.set("checked",
!0)},_rdoAddressChanged:function(a){this.useAddress=a;this._addressView&&this._coordinatesView&&(this.altNextIndex=a?this._addressView.index:this._coordinatesView.index);a&&(this.lastFocusNode=this.rdoAddress.focusNode,this.parent.updateFirstLastNode(!1));this.parent._locationMappingComplete=!1},_rdoCoordinateClick:function(){this.rdoCoordinates.set("checked",!0)},_rdoCoordinateChanged:function(a){this.useCoordinates=a;this._addressView&&this._coordinatesView&&(this.altNextIndex=a?this._coordinatesView.index:
this._addressView.index);a&&(this.lastFocusNode=this.rdoCoordinates.focusNode,this.parent.updateFirstLastNode(!1));this.parent._locationMappingComplete=!1},setStyleColor:function(a){this.styleColor=a},updateImageNodes:function(){},_getResults:function(){return this.useAddress?this._addressView._getResults():this._coordinatesView._getResults()}})});