// 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:jimu/dijit/_filter/TwoDatesValueProvider.html":'\x3cdiv\x3e\r\n\t\x3ctable data-dojo-attach-point\x3d"dateRangeTable" style\x3d"width:100%;border-collapse:collapse;" cellpadding\x3d"0" cellspacing\x3d"0"\x3e\r\n\t\t\x3ctbody\x3e\r\n\t\t\t\x3ctr\x3e\r\n\t\t\t\t\x3ctd style\x3d"width:40%;"\x3e\r\n\t\t\t\t\t\x3c!-- \x3cinput data-dojo-attach-point\x3d"_dijit1" data-dojo-type\x3d"jimu/dijit/_filter/DateValueSelector" data-dojo-attach-event\x3d"change:_onDateValueSelectorChanged" /\x3e --\x3e\r\n\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"_dijitDiv1"  data-dojo-attach-event\x3d"change:_onDateValueSelectorChanged"\x3e\x3c/div\x3e\r\n\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\x3ctd style\x3d"width:20%;text-align:center;"\x3e\r\n\t\t\t\t\t\x3cspan\x3e${nls.and}\x3c/span\x3e\r\n\t\t\t\t\x3c/td\x3e\r\n\t\t\t\t\x3ctd\x3e\r\n\t\t\t\t\t\x3c!-- \x3cinput data-dojo-attach-point\x3d"_dijit2" data-dojo-type\x3d"jimu/dijit/_filter/DateValueSelector" data-dojo-attach-event\x3d"change:_onDateValueSelectorChanged" /\x3e --\x3e\r\n\t\t\t\t\t\x3cdiv data-dojo-attach-point\x3d"_dijitDiv2"  data-dojo-attach-event\x3d"change:_onDateValueSelectorChanged"\x3e\x3c/div\x3e\r\n\t\t\t\t\x3c/td\x3e\r\n\t\t\t\x3c/tr\x3e\r\n\t\t\x3c/tbody\x3e\r\n\t\x3c/table\x3e\r\n\x3c/div\x3e'}});
define("dojo/Evented dojo/on dojo/_base/html dojo/_base/declare dojo/_base/lang ./ValueProvider dijit/_WidgetsInTemplateMixin ./DateValueSelector dojo/text!./TwoDatesValueProvider.html jimu/utils".split(" "),function(k,g,l,m,e,n,p,h,q,r){return m([n,p,k],{templateString:q,customId:null,postCreate:function(){this.inherited(arguments);this.customId=this.partObj.vpId;l.addClass(this.domNode,"jimu-two-dates-filter-value-provider");var a={runtime:this.runtime,popupInfo:this.popupInfo,_fieldInfo:this.fieldInfo,
style:{width:"100%"}},b=e.clone(a);if(this.customId){a.customId=this.customId+"_between";a.prompt=this.partObj.interactiveObj.prompt+" "+this.partObj.interactiveObj.hint;var c=this.customId}else c=r.getUUID();b.customId=c+"_and";b.prompt=this.nls.and;this.runtime&&(a.virtualDates=this.partObj.interactiveObj.virtualDates1,b.virtualDates=this.partObj.interactiveObj.virtualDates2);this._dijit1=new h(a,this._dijitDiv1);this._dijit2=new h(b,this._dijitDiv2);this.own(g(this._dijit1,"change",e.hitch(this,
function(d){this.emit("change",d,"start")})));this.own(g(this._dijit2,"change",e.hitch(this,function(d){this.emit("change",d,"end")})))},_initDateSelectors:function(){},_onDateValueSelectorChanged:function(){this.emit("change")},getDijits:function(){return[this._dijit1,this._dijit2]},setValueObject:function(a){this._setValueObject(this._dijit1,a,1);this._setValueObject(this._dijit2,a,2)},_setValueObject:function(a,b,c){var d="value"+c;if(this.isDefined(b[d])){var f={enableTime:b["enableTime"+c],timeAccuracy:b["timeAccuracy"+
c],value:null,virtualDate:""};f.value=b[d];f.virtualDate=b["virtualDate"+c];a.setValueObject(f)}},getValueObject:function(){if(this.isValidValue()){var a=this._dijit1.getValueObject(),b=this._dijit2.getValueObject();if(a.value&&b.value)return{isValid:!0,type:this.partObj.valueObj.type,enableTime1:a.enableTime?!0:!1,timeAccuracy1:a.timeAccuracy?a.timeAccuracy:"",enableTime2:b.enableTime?!0:!1,timeAccuracy2:b.timeAccuracy?b.timeAccuracy:"",value1:a.value,value2:b.value,virtualDate1:a.virtualDate,virtualDate2:b.virtualDate}}return null},
tryGetValueObject:function(){return this.isValidValue()?this.getValueObject():this.isEmptyValue()?{isValid:!0,type:this.partObj.valueObj.type,value1:null,value2:null,virtualDate1:null,virtualDate2:null}:null},getStatus:function(){return 1===this._dijit1.getStatus()&&1===this._dijit2.getStatus()?1:-1===this._dijit1.getStatus()||-1===this._dijit2.getStatus()?-1:0},setRequired:function(a){this._dijit1.set("required",a);this._dijit2.set("required",a)}})});