diff --git a/assets/scss/config/_mixins.scss b/assets/scss/config/_mixins.scss index aa3d2c7c..3a7ca30f 100644 --- a/assets/scss/config/_mixins.scss +++ b/assets/scss/config/_mixins.scss @@ -136,7 +136,7 @@ .courier-icon { text-align: center; - width: 2.5rem; + width: 2.5em; position: absolute; left: 0; @@ -157,7 +157,7 @@ &[data-closable] { .courier-content-wrapper { - padding-right: 3rem; + padding-right: 3em; } .courier-close { @@ -208,7 +208,7 @@ @if ( $icon != false and $icon != '' ) { .courier-content-wrapper { - padding-left: 3rem; + padding-left: 3em; } } } diff --git a/assets/scss/config/_variables.scss b/assets/scss/config/_variables.scss index 735a8647..776cd7f9 100644 --- a/assets/scss/config/_variables.scss +++ b/assets/scss/config/_variables.scss @@ -63,7 +63,7 @@ $notice-default-secondary: #cecece; //Other Global items $global-radius: .25rem; $courier-max-content-width: 100%; -$courier-padding: .75rem 1rem .75rem 3rem; +$courier-padding: .75em 1em .75em 3em; // 03. Animations $global_timing: 300ms; diff --git a/assets/scss/frontend/_notices.scss b/assets/scss/frontend/_notices.scss index be2c5489..2eb1cbba 100644 --- a/assets/scss/frontend/_notices.scss +++ b/assets/scss/frontend/_notices.scss @@ -73,11 +73,11 @@ a.close { position: absolute; - top: 1rem; - right: 1rem; - height: 2rem; - width: 2rem; - line-height: 2rem; + top: 1em; + right: 1em; + height: 2em; + width: 2em; + line-height: 2em; text-align: center; background: rgba( $medium-gray, .75); border: 1px solid rgba( $white, .6 ); @@ -90,10 +90,14 @@ position: relative; text-align: center; background: $white; - min-height: 5rem; + min-height: 5em; max-height: 80vh; overflow-y: scroll; width: 80vw; - max-width: 50rem; + max-width: 50em; + } + + .courier-content { + padding: 1em; } } diff --git a/css/courier-notices-admin.css b/css/courier-notices-admin.css index 08ae7064..0cff636b 100644 --- a/css/courier-notices-admin.css +++ b/css/courier-notices-admin.css @@ -121,7 +121,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { position: relative; margin: 0 auto; max-width: 100%; - padding: 0.75rem 1rem 0.75rem 3rem; } + padding: 0.75em 1em 0.75em 3em; } .courier-notice .courier-content-wrapper:before, .courier-notice .courier-content-wrapper:after { position: absolute; left: 0; @@ -148,7 +148,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { margin-bottom: 0; } .courier-notice .courier-icon { text-align: center; - width: 2.5rem; + width: 2.5em; position: absolute; left: 0; top: 0; @@ -162,7 +162,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { top: 50%; transform: translateY(-50%); } .courier-notice[data-closable] .courier-content-wrapper { - padding-right: 3rem; } + padding-right: 3em; } .courier-notice[data-closable] .courier-close { position: absolute; right: 0; @@ -185,7 +185,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier_type-primary a { color: #222; } .courier_type-primary .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier_type-primary + .courier_type-primary { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -198,7 +198,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier_type-success a { color: #222; } .courier_type-success .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier_type-success + .courier_type-success { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -211,7 +211,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier_type-alert a { color: #222; } .courier_type-alert .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier_type-alert + .courier_type-alert { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -224,7 +224,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier_type-warning a { color: #222; } .courier_type-warning .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier_type-warning + .courier_type-warning { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -237,7 +237,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier_type-feedback a { color: #222; } .courier_type-feedback .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier_type-feedback + .courier_type-feedback { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -250,7 +250,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier_type-info a { color: #222; } .courier_type-info .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier_type-info + .courier_type-info { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } diff --git a/css/courier-notices.css b/css/courier-notices.css index 973111c7..533851c4 100644 --- a/css/courier-notices.css +++ b/css/courier-notices.css @@ -127,7 +127,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { position: relative; margin: 0 auto; max-width: 100%; - padding: 0.75rem 1rem 0.75rem 3rem; } + padding: 0.75em 1em 0.75em 3em; } .courier-notices .courier-notice .courier-content-wrapper:before, .courier-notices .courier-notice .courier-content-wrapper:after { position: absolute; left: 0; @@ -154,7 +154,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { margin-bottom: 0; } .courier-notices .courier-notice .courier-icon { text-align: center; - width: 2.5rem; + width: 2.5em; position: absolute; left: 0; top: 0; @@ -168,7 +168,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { top: 50%; transform: translateY(-50%); } .courier-notices .courier-notice[data-closable] .courier-content-wrapper { - padding-right: 3rem; } + padding-right: 3em; } .courier-notices .courier-notice[data-closable] .courier-close { position: absolute; right: 0; @@ -191,7 +191,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier-notices .courier_type-primary a { color: #222; } .courier-notices .courier_type-primary .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier-notices .courier_type-primary + .courier_type-primary { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -204,7 +204,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier-notices .courier_type-success a { color: #222; } .courier-notices .courier_type-success .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier-notices .courier_type-success + .courier_type-success { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -217,7 +217,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier-notices .courier_type-alert a { color: #222; } .courier-notices .courier_type-alert .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier-notices .courier_type-alert + .courier_type-alert { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -230,7 +230,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier-notices .courier_type-warning a { color: #222; } .courier-notices .courier_type-warning .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier-notices .courier_type-warning + .courier_type-warning { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -243,7 +243,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier-notices .courier_type-feedback a { color: #222; } .courier-notices .courier_type-feedback .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier-notices .courier_type-feedback + .courier_type-feedback { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -256,7 +256,7 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { .courier-notices .courier_type-info a { color: #222; } .courier-notices .courier_type-info .courier-content-wrapper { - padding-left: 3rem; } + padding-left: 3em; } .courier-notices .courier_type-info + .courier_type-info { border-top: 2px solid rgba(0, 0, 0, 0.05); margin-top: -2px; } @@ -292,11 +292,11 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { align-content: center; } .courier-modal-overlay a.close { position: absolute; - top: 1rem; - right: 1rem; - height: 2rem; - width: 2rem; - line-height: 2rem; + top: 1em; + right: 1em; + height: 2em; + width: 2em; + line-height: 2em; text-align: center; background: rgba(173, 167, 157, 0.75); border: 1px solid rgba(255, 255, 255, 0.6); @@ -307,8 +307,10 @@ body.wp-admin table.courier_notice_page_courier [class*="icon-"] { position: relative; text-align: center; background: #FFFFFF; - min-height: 5rem; + min-height: 5em; max-height: 80vh; overflow-y: scroll; width: 80vw; - max-width: 50rem; } + max-width: 50em; } + .courier-modal-overlay .courier-content { + padding: 1em; } diff --git a/js/courier-notices-admin.js b/js/courier-notices-admin.js index b7c37906..00e4a15b 100644 --- a/js/courier-notices-admin.js +++ b/js/courier-notices-admin.js @@ -1,4 +1,2083 @@ -!function(e){var t={};function i(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(s,n,function(t){return e[t]}.bind(null,n));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=3)}([function(e,t){e.exports=jQuery},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return core}));var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),a;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 1); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./assets/js/admin/core.js": +/*!*********************************!*\ + !*** ./assets/js/admin/core.js ***! + \*********************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return core; }); +/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); +/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + /*! jQuery Timepicker Addon - v1.6.3 - 2016-04-20 * http://trentrichardson.com/examples/timepicker - * Copyright (c) 2016 Trent Richardson; Licensed MIT */a=function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.6.3"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,altRedirectFocus:!0,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",oneLine:!1,defaultValue:null,parse:"strict",afterInject:null},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_newInst:function _newInst($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(e){inlineSettings[attrName]=attrValue}}for(i in overrides={beforeShow:function(e,t){return $.isFunction(tp_inst._defaults.evnts.beforeShow)?tp_inst._defaults.evnts.beforeShow.call($input[0],e,t,tp_inst):void 0},onChangeMonthYear:function(e,t,i){$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],e,t,i,tp_inst)},onClose:function(e,t){!0===tp_inst.timeDefined&&""!==$input.val()&&tp_inst._updateDateTime(t),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],e,t,tp_inst)}},overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||this._defaults[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,(function(e){return e.toUpperCase()})),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,(function(e){return e.toUpperCase()})),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&void 0===$.ui.slider&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&"object"!=_typeof(timezoneList[0]))for(;tzl>tzi;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hourtp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minutetp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.secondtp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second,tp_inst.millisec=tp_inst._defaults.millisectp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec,tp_inst.microsec=tp_inst._defaults.microsectp_inst._defaults.microsecMax?tp_inst._defaults.microsecMax:tp_inst._defaults.microsec,tp_inst.ampm="",tp_inst.$input=$input,tp_inst._defaults.altField&&(tp_inst.$altInput=$(tp_inst._defaults.altField),!0===tp_inst._defaults.altRedirectFocus&&tp_inst.$altInput.css({cursor:"pointer"}).focus((function(){$input.trigger("focus")}))),(0===tp_inst._defaults.minDate||0===tp_inst._defaults.minDateTime)&&(tp_inst._defaults.minDate=new Date),(0===tp_inst._defaults.maxDate||0===tp_inst._defaults.maxDateTime)&&(tp_inst._defaults.maxDate=new Date),void 0!==tp_inst._defaults.minDate&&tp_inst._defaults.minDate instanceof Date&&(tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())),void 0!==tp_inst._defaults.minDateTime&&tp_inst._defaults.minDateTime instanceof Date&&(tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())),void 0!==tp_inst._defaults.maxDate&&tp_inst._defaults.maxDate instanceof Date&&(tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())),void 0!==tp_inst._defaults.maxDateTime&&tp_inst._defaults.maxDateTime instanceof Date&&(tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())),tp_inst.$input.bind("focus",(function(){tp_inst._onFocus()})),tp_inst},_addTimePicker:function(e){var t=$.trim(this.$altInput&&this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val());this.timeDefined=this._parseTime(t),this._limitMinMaxDateTime(e,!1),this._injectTimePicker(),this._afterInject()},_parseTime:function(e,t){if(this.inst||(this.inst=$.datepicker._getInst(this.$input[0])),t||!this._defaults.timeOnly){var i=$.datepicker._get(this.inst,"dateFormat");try{var s=parseDateTimeInternal(i,this._defaults.timeFormat,e,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!s.timeObj)return!1;$.extend(this,s.timeObj)}catch(t){return $.timepicker.log("Error parsing the date/time string: "+t+"\ndate/time string = "+e+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+i),!1}return!0}var n=$.datepicker.parseTime(this._defaults.timeFormat,e,this._defaults);return!!n&&($.extend(this,n),!0)},_afterInject:function(){var e=this.inst.settings;$.isFunction(e.afterInject)&&e.afterInject.call(this)},_injectTimePicker:function(){var e=this.inst.dpDiv,t=this.inst.settings,i=this,s="",n="",a=null,r={},o={},c=null,l=0,u=0;if(0===e.find("div.ui-timepicker-div").length&&t.showTimepicker){var d=" ui_tpicker_unit_hide",m='
'+t.timeText+'
";for(l=0,u=this.units.length;u>l;l++){if(a=null!==t["show"+(n=(s=this.units[l]).substr(0,1).toUpperCase()+s.substr(1))]?t["show"+n]:this.support[s],r[s]=parseInt(t[s+"Max"]-(t[s+"Max"]-t[s+"Min"])%t["step"+n],10),o[s]=0,m+='
'+t[s+"Text"]+'
',a&&t[s+"Grid"]>0){if(m+='
',"hour"===s)for(var p=t[s+"Min"];p<=r[s];p+=parseInt(t[s+"Grid"],10)){o[s]++;var _=$.datepicker.formatTime(this.support.ampm?"hht":"HH",{hour:p},t);m+='"}else for(var f=t[s+"Min"];f<=r[s];f+=parseInt(t[s+"Grid"],10))o[s]++,m+='";m+="
'+_+"'+(10>f?"0":"")+f+"
"}m+="
"}var h=null!==t.showTimezone?t.showTimezone:this.support.timezone;m+='
'+t.timezoneText+"
",m+='
';var g=$(m+="
");for(!0===t.timeOnly&&(g.prepend('
'+t.timeOnlyTitle+"
"),e.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()),l=0,u=i.units.length;u>l;l++)a=null!==t["show"+(n=(s=i.units[l]).substr(0,1).toUpperCase()+s.substr(1))]?t["show"+n]:this.support[s],i[s+"_slider"]=i.control.create(i,g.find(".ui_tpicker_"+s+"_slider"),s,i[s],t[s+"Min"],r[s],t["step"+n]),a&&t[s+"Grid"]>0&&(c=100*o[s]*t[s+"Grid"]/(r[s]-t[s+"Min"]),g.find(".ui_tpicker_"+s+" table").css({width:c+"%",marginLeft:t.isRTL?"0":c/(-2*o[s])+"%",marginRight:t.isRTL?c/(-2*o[s])+"%":"0",borderCollapse:"collapse"}).find("td").click((function(e){var t=$(this),n=t.html(),a=parseInt(n.replace(/[^0-9]/g),10),r=n.replace(/[^apm]/gi),o=t.data("for");"hour"===o&&(-1!==r.indexOf("p")&&12>a?a+=12:-1!==r.indexOf("a")&&12===a&&(a=0)),i.control.value(i,i[o+"_slider"],s,a),i._onTimeChange(),i._onSelectHandler()})).css({cursor:"pointer",width:100/o[s]+"%",textAlign:"center",overflow:"hidden"}));this.timezone_select=g.find(".ui_tpicker_timezone").append("").find("select"),$.fn.append.apply(this.timezone_select,$.map(t.timezoneList,(function(e,t){return $("