/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.grid.enhanced.plugins.filter._DataExprs"],["require","dojox.grid.enhanced.plugins.filter._ConditionExpr"],["require","dojo.date.locale"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.grid.enhanced.plugins.filter._DataExprs"]){_4._hasResource["dojox.grid.enhanced.plugins.filter._DataExprs"]=true;_4.provide("dojox.grid.enhanced.plugins.filter._DataExprs");_4.require("dojox.grid.enhanced.plugins.filter._ConditionExpr");_4.require("dojo.date.locale");(function(){var _7=_6.grid.enhanced.plugins.filter;_4.declare("dojox.grid.enhanced.plugins.filter.BooleanExpr",_7._DataExpr,{_name:"bool",_convertData:function(_8){return !!_8;}});_4.declare("dojox.grid.enhanced.plugins.filter.StringExpr",_7._DataExpr,{_name:"string",_convertData:function(_9){return String(_9);}});_4.declare("dojox.grid.enhanced.plugins.filter.NumberExpr",_7._DataExpr,{_name:"number",_convertDataToExpr:function(_a){return parseFloat(_a);}});_4.declare("dojox.grid.enhanced.plugins.filter.DateExpr",_7._DataExpr,{_name:"date",_convertData:function(_b){if(_b instanceof Date){return _b;}else{if(typeof _b=="number"){return new Date(_b);}else{var _c=_4.date.locale.parse(String(_b),_4.mixin({selector:this._name},this._convertArgs));if(!_c){throw new Error("Datetime parse failed: "+_b);}return _c;}}},toObject:function(){if(this._value instanceof Date){var _d=this._value;this._value=this._value.valueOf();var _e=this.inherited(arguments);this._value=_d;return _e;}else{return this.inherited(arguments);}}});_4.declare("dojox.grid.enhanced.plugins.filter.TimeExpr",_7.DateExpr,{_name:"time"});})();}}};});