/*
 COPYRIGHT 2009 ESRI

 TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
 Unpublished material - all rights reserved under the
 Copyright Laws of the United States and applicable international
 laws, treaties, and conventions.

 For additional information, contact:
 Environmental Systems Research Institute, Inc.
 Attn: Contracts and Legal Services Department
 380 New York Street
 Redlands, California, 92373
 USA

 email: contracts@esri.com
 */
//>>built
require({cache:{"url:esri/dijit/analysis/templates/TrafficTime.html":"<table style=\"width:100%\" class=\"esriFormTable\">\r\n  <tbody>\r\n    <tr>\r\n      <td class=\"shortTextInput\" colspan=\"3\" style=\"padding-bottom:0;\">\r\n        <div class=\"esriLeadingMargin2\">\r\n          <label>\r\n            <input type=\"checkbox\" data-dojo-attach-point=\"_useTrafficCheck\" data-dojo-type=\"dijit/form/CheckBox\" data-dojo-attach-event=\"onChange:_handleUseTrafficCheckChange\" data-dojo-props=\"checked:false\" style=\"margin-bottom:0.25em;\">\r\n            </input>\r\n            <label class=\"esriLeadingMargin025\">${i18n.trafficLabel}</label>\r\n         </label>\r\n        </div>\r\n      </td>\r\n    </tr>\r\n    <tr data-dojo-attach-point=\"_driveTimeRow\">\r\n      <td colspan=\"3\" style=\"padding-top:0;padding-bottom:0\">\r\n        <select class=\"esriLeadingMargin2 mediumInput\" data-dojo-type=\"dijit/form/Select\"data-dojo-attach-point=\"_trafficDay\" style=\"width:46%;table-layout:fixed;\">\r\n          <option value=\"1/1/1990\">${i18n.monday}</option>\r\n          <option value=\"1/2/1990\">${i18n.tuesday}</option>\r\n          <option value=\"1/3/1990\">${i18n.wednesday}</option>\r\n          <option value=\"1/4/1990\">${i18n.thursday}</option>\r\n          <option value=\"1/5/1990\">${i18n.friday}</option>\r\n          <option value=\"1/6/1990\">${i18n.saturday}</option>\r\n          <option value=\"1/7/1990\">${i18n.sunday}</option>\r\n        </select>\r\n        <input  type=\"text\" data-dojo-type=\"dijit/form/TimeTextBox\" data-dojo-props=\"value:'T12:00:00', required:true,intermediateChanges:true,constraints:{formatLength:'short',selector:'time'}\"  data-dojo-attach-point=\"_trafficTime\" style=\"height:24px;width:37%;margin-top:0;\">\r\n        </input>\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td colspan=\"3\" style=\"padding-top:0;\">\r\n        <a class=\"esriLeadingMargin3 esriSmallFont\" href=\"http://www.arcgis.com/home/item.html?id=b7a893e8e1e04311bd925ea25cb8d7c7\" target=\"_available\">${i18n.seeAvailability}</a>\r\n      </td>\r\n    </tr>\r\n  </tbody>\r\n</table>\r\n"}});define("esri/dijit/analysis/TrafficTime",["require","dojo/_base/declare","dojo/_base/lang","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/has","dijit/_WidgetBase","dijit/_TemplatedMixin","dijit/_WidgetsInTemplateMixin","dijit/_OnDijitClickMixin","dijit/_FocusMixin","dijit/form/CheckBox","dijit/form/TimeTextBox","dijit/form/Select","esri/kernel","dojo/i18n!esri/nls/jsapi","dojo/text!esri/dijit/analysis/templates/TrafficTime.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12){var _13=_2([_8,_9,_a,_b,_c],{declaredClass:"esri.dijit.analysis.TrafficTime",i18n:null,basePath:_1.toUrl("esri/dijit/analysis"),templateString:_12,widgetsInTemplate:true,postMixInProperties:function(){this.i18n={};_3.mixin(this.i18n,_11.common);_3.mixin(this.i18n,_11.driveTimes);},postCreate:function(){this.inherited(arguments);this._handleUseTrafficCheckChange(this._useTrafficCheck.get("value"));},_handleUseTrafficCheckChange:function(_14){this._trafficTime.set("disabled",!_14);this._trafficDay.set("disabled",!_14);},_setDisabledAttr:function(_15){this._useTrafficCheck.set("disabled",_15);},_setResetAttr:function(_16){if(_16){this._useTrafficCheck.set("checked",false);}},_getCheckedAttr:function(){return this._useTrafficCheck.get("checked");},_setCheckedAttr:function(_17){this._useTrafficCheck.set("checked",_17);},_getTimeOfDayAttr:function(){var _18,_19;_19=new Date(this._trafficDay.get("value"));_18=_19.getTime()-(_19.getTimezoneOffset()*60*1000)+(this._trafficTime.get("value")).getTime()-((this._trafficTime.get("value")).getTimezoneOffset()*60*1000);return _18;}});if(_7("extend-esri")){_3.setObject("dijit.analysis.TrafficTime",_13,_10);}return _13;});