Unyson - Version 2.7.19

Version Description

  • Security Issue
Download this release

Release Info

Developer Unyson
Plugin Icon 128x128 Unyson
Version 2.7.19
Comparing to
See all releases

Code changes from version 2.7.18 to 2.7.19

framework/bin/load-latest-fonts.php CHANGED
@@ -2,6 +2,10 @@
2
 
3
  <?php
4
 
 
 
 
 
5
  /**
6
  * Download latest font packs from their sources.
7
  */
2
 
3
  <?php
4
 
5
+ if ( php_sapi_name() != 'cli' ) {
6
+ die();
7
+ }
8
+
9
  /**
10
  * Download latest font packs from their sources.
11
  */
framework/helpers/class-fw-session.php CHANGED
@@ -15,6 +15,10 @@ class FW_Session {
15
  }
16
 
17
  public static function get( $key, $default_value = null ) {
 
 
 
 
18
  self::start_session();
19
 
20
  return fw_akg( $key, $_SESSION, $default_value );
15
  }
16
 
17
  public static function get( $key, $default_value = null ) {
18
+ if ( ! apply_filters( 'fw_use_sessions', true ) ) {
19
+ return array();
20
+ }
21
+
22
  self::start_session();
23
 
24
  return fw_akg( $key, $_SESSION, $default_value );
framework/includes/option-types/datetime-picker/class-fw-option-type-datetime-picker.php CHANGED
@@ -24,9 +24,7 @@ class FW_Option_Type_Datetime_Picker extends FW_Option_Type {
24
  */
25
  protected function _get_defaults() {
26
  return array(
27
- 'attr' => array(
28
- 'readonly' => 'readonly'
29
- ),
30
  'value' => '',
31
  'datetime-picker' => array(
32
  'format' => 'Y/m/d H:i',
24
  */
25
  protected function _get_defaults() {
26
  return array(
27
+ 'attr' => array(),
 
 
28
  'value' => '',
29
  'datetime-picker' => array(
30
  'format' => 'Y/m/d H:i',
framework/includes/option-types/datetime-picker/static/css/jquery.datetimepicker.css CHANGED
@@ -1,4 +1,4 @@
1
- .xdsoft_datetimepicker{
2
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.506);
3
  background: #FFFFFF;
4
  border-bottom: 1px solid #BBBBBB;
@@ -17,7 +17,7 @@
17
  display:none;
18
  }
19
 
20
- .xdsoft_datetimepicker iframe {
21
  position: absolute;
22
  left: 0;
23
  top: 0;
@@ -27,11 +27,11 @@
27
  border:none;
28
  }
29
  /*For IE8 or lower*/
30
- .xdsoft_datetimepicker button {
31
  border:none !important;
32
  }
33
 
34
- .xdsoft_noselect{
35
  -webkit-touch-callout: none;
36
  -webkit-user-select: none;
37
  -khtml-user-select: none;
@@ -40,69 +40,69 @@
40
  -o-user-select: none;
41
  user-select: none;
42
  }
43
- .xdsoft_noselect::selection { background: transparent; }
44
- .xdsoft_noselect::-moz-selection { background: transparent; }
45
- .xdsoft_datetimepicker.xdsoft_inline{
46
  display: inline-block;
47
  position: static;
48
  box-shadow: none;
49
  }
50
- .xdsoft_datetimepicker *{
51
  -moz-box-sizing: border-box;
52
  box-sizing: border-box;
53
  padding:0px;
54
  margin:0px;
55
  }
56
- .xdsoft_datetimepicker .xdsoft_datepicker, .xdsoft_datetimepicker .xdsoft_timepicker{
57
  display:none;
58
  }
59
- .xdsoft_datetimepicker .xdsoft_datepicker.active, .xdsoft_datetimepicker .xdsoft_timepicker.active{
60
  display:block;
61
  }
62
- .xdsoft_datetimepicker .xdsoft_datepicker{
63
  width: 224px;
64
  float:left;
65
  margin-left:8px;
66
  }
67
- .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{
68
  width: 256px;
69
  }
70
- .xdsoft_datetimepicker .xdsoft_timepicker{
71
  width: 58px;
72
  float:left;
73
  text-align:center;
74
  margin-left:8px;
75
  margin-top:0px;
76
  }
77
- .xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{
78
  margin-top:8px;
79
  margin-bottom:3px
80
  }
81
- .xdsoft_datetimepicker .xdsoft_mounthpicker{
82
  position: relative;
83
  text-align: center;
84
  }
85
 
86
- .xdsoft_datetimepicker .xdsoft_prev, .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_today_button{
87
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAeCAYAAACsYQl4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozQjRCQjRGREU4MkNFMzExQjRDQkIyRDJDOTdBRUI1MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjg0OUYyNTZDODAxMUUzQjMwM0IwMERBNUU0ODQ5NSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjg0OUYyNDZDODAxMUUzQjMwM0IwMERBNUU0ODQ5NSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkI5NzE3MjFBN0E2Q0UzMTFBQjJEQjgzMDk5RTNBNTdBIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNCNEJCNEZERTgyQ0UzMTFCNENCQjJEMkM5N0FFQjUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+aQvATgAAAfVJREFUeNrsmr1OwzAQxzGtkPjYEAuvVGAvfQIGRKADE49gdLwDDwBiZ2RhQUKwICQkWLsgFiRQuIBTucFJ/XFp4+hO+quqnZ4uvzj2nV2RpukCW/22yAgYNINmc7du7DcghCjrkqgOKjF1znpt6rZ0AGWQj7TvCU8d9UM+QAGDrhdyc2Bnc1WVVPBev9V8lBnY+rDwncWZThG4xk4lmxtJy2AHgoY/FySgbSBPwPZ8mEXbQx3aDERb0EbYAYFC7pcAtAvkMWwC0D3NX58S9D/YnoGC7nPWr3Dg9JTbtuHhDShBT8D2CBSK/iIEvVXxpuxSgh7DdgwUTL4iA92zmJb6lKB/YTsECmV+IgK947AGDIqgQ/LojsO135Hn51l2cWlov0JdGNrPUceueXRwilSVgkUyom9Rd6gbLfYTDeO+1v6orn0InTogYDGUkYLO3/wc9BdqqTCKP1Tfi+oTIaCBIL2TES+GTyruT9S61p6BHam+99DFEAgLFklYsIBHwSI9QY80H5ta+1rB/6ovaKihBJeEJbgLbBlQgl+j3lDPqA2tfQV1j3pVn8s+oKHGTSVJ+FqDLeR5bCqJ2E/BCycsoLZETXaKGs7rhKVt+9HZScrZNMi88V8P7LlDbvOZYaJVpMMmBCT4n0o8dTBoNgbdWPsRYACs3r7XyNfbnAAAAABJRU5ErkJggg==');
88
  }
89
- .xdsoft_datetimepicker .xdsoft_prev{
90
  float: left;
91
  background-position:-20px 0px;
92
  }
93
- .xdsoft_datetimepicker .xdsoft_today_button{
94
  float: left;
95
  background-position:-70px 0px;
96
  margin-left:5px;
97
  }
98
 
99
- .xdsoft_datetimepicker .xdsoft_next{
100
  float: right;
101
  background-position:0px 0px;
102
  }
103
- .xdsoft_datetimepicker .xdsoft_next:active,.xdsoft_datetimepicker .xdsoft_prev:active{
104
  }
105
- .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev ,.xdsoft_datetimepicker .xdsoft_today_button{
106
  background-color: transparent;
107
  background-repeat: no-repeat;
108
  border: 0px none currentColor;
@@ -118,8 +118,8 @@
118
  white-space: nowrap;
119
  width: 20px;
120
  }
121
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
122
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{
123
  float:none;
124
  background-position:-40px -15px;
125
  height: 15px;
@@ -128,17 +128,17 @@
128
  margin-left:14px;
129
  margin-top:7px;
130
  }
131
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{
132
  background-position:-40px 0px;
133
  margin-bottom:7px;
134
  margin-top:0px;
135
  }
136
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{
137
  height:151px;
138
  overflow:hidden;
139
  border-bottom:1px solid #DDDDDD;
140
  }
141
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div{
142
  background: #F5F5F5;
143
  border-top:1px solid #DDDDDD;
144
  color: #666666;
@@ -151,15 +151,15 @@
151
  line-height:25px;
152
  }
153
 
154
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child{
155
  border-top-width:0px;
156
  }
157
- .xdsoft_datetimepicker .xdsoft_today_button:hover,
158
- .xdsoft_datetimepicker .xdsoft_next:hover,
159
- .xdsoft_datetimepicker .xdsoft_prev:hover {
160
  opacity: 1;
161
  }
162
- .xdsoft_datetimepicker .xdsoft_label{
163
  display: inline;
164
  position: relative;
165
  z-index: 9999;
@@ -174,10 +174,10 @@
174
  text-align:center;
175
  cursor:pointer;
176
  }
177
- .xdsoft_datetimepicker .xdsoft_label:hover{
178
  text-decoration:underline;
179
  }
180
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select{
181
  border:1px solid #ccc;
182
  position:absolute;
183
  right:0px;
@@ -188,43 +188,43 @@
188
  max-height:160px;
189
  overflow-y:hidden;
190
  }
191
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_monthselect{right:-7px;}
192
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_yearselect{right:2px;}
193
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
194
  color: #fff;
195
  background: #ff8000;
196
  }
197
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option{
198
  padding:2px 10px 2px 5px;
199
  }
200
- .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
201
  background: #33AAFF;
202
  box-shadow: #178FE5 0px 1px 3px 0px inset;
203
  color:#fff;
204
  font-weight: 700;
205
  }
206
- .xdsoft_datetimepicker .xdsoft_month{
207
  width:90px;
208
  text-align:right;
209
  }
210
- .xdsoft_datetimepicker .xdsoft_calendar{
211
  clear:both;
212
  }
213
- .xdsoft_datetimepicker .xdsoft_year{
214
  width:56px;
215
  }
216
- .xdsoft_datetimepicker .xdsoft_calendar table{
217
  border-collapse:collapse;
218
  width:100%;
219
 
220
  }
221
- .xdsoft_datetimepicker .xdsoft_calendar td > div{
222
  padding-right:5px;
223
  }
224
- .xdsoft_datetimepicker .xdsoft_calendar th{
225
  height: 25px;
226
  }
227
- .xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{
228
  width:14.2857142%;
229
  background: #F5F5F5;
230
  border:1px solid #DDDDDD;
@@ -236,64 +236,64 @@
236
  cursor:pointer;
237
  height: 25px;
238
  }
239
- .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{
240
  width:12.5%;
241
  }
242
- .xdsoft_datetimepicker .xdsoft_calendar th{
243
  background: #F1F1F1;
244
  }
245
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
246
  color:#33AAFF;
247
  }
248
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
249
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
250
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
251
  background: #33AAFF;
252
  box-shadow: #178FE5 0px 1px 3px 0px inset;
253
  color:#fff;
254
  font-weight: 700;
255
  }
256
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
257
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
258
- .xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled{
259
  opacity:0.5;
260
  }
261
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{
262
  opacity:0.2;
263
  }
264
- .xdsoft_datetimepicker .xdsoft_calendar td:hover,
265
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
266
  color: #fff !important;
267
  background: #ff8000 !important;
268
  box-shadow: none !important;
269
  }
270
- .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
271
- .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_disabled:hover{
272
  color: inherit !important;
273
  background: inherit !important;
274
  box-shadow: inherit !important;
275
  }
276
- .xdsoft_datetimepicker .xdsoft_calendar th{
277
  font-weight: 700;
278
  text-align: center;
279
  color: #999;
280
  cursor:default;
281
  }
282
- .xdsoft_datetimepicker .xdsoft_copyright{ color:#ccc !important; font-size:10px;clear:both;float:none;margin-left:8px;}
283
- .xdsoft_datetimepicker .xdsoft_copyright a{ color:#eee !important;}
284
- .xdsoft_datetimepicker .xdsoft_copyright a:hover{ color:#aaa !important;}
285
 
286
 
287
- .xdsoft_time_box{
288
  position:relative;
289
  border:1px solid #ccc;
290
  }
291
- .xdsoft_scrollbar >.xdsoft_scroller{
292
  background:#ccc !important;
293
  height:20px;
294
  border-radius:3px;
295
  }
296
- .xdsoft_scrollbar{
297
  position:absolute;
298
  width:7px;
299
  right:0px;
@@ -301,6 +301,6 @@
301
  bottom:0px;
302
  cursor:pointer;
303
  }
304
- .xdsoft_scroller_box{
305
  position:relative;
306
  }
1
+ .fw_xdsoft_datetimepicker{
2
  box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.506);
3
  background: #FFFFFF;
4
  border-bottom: 1px solid #BBBBBB;
17
  display:none;
18
  }
19
 
20
+ .fw_xdsoft_datetimepicker iframe {
21
  position: absolute;
22
  left: 0;
23
  top: 0;
27
  border:none;
28
  }
29
  /*For IE8 or lower*/
30
+ .fw_xdsoft_datetimepicker button {
31
  border:none !important;
32
  }
33
 
34
+ .fw_xdsoft_noselect{
35
  -webkit-touch-callout: none;
36
  -webkit-user-select: none;
37
  -khtml-user-select: none;
40
  -o-user-select: none;
41
  user-select: none;
42
  }
43
+ .fw_xdsoft_noselect::selection { background: transparent; }
44
+ .fw_xdsoft_noselect::-moz-selection { background: transparent; }
45
+ .fw_xdsoft_datetimepicker.fw_xdsoft_inline{
46
  display: inline-block;
47
  position: static;
48
  box-shadow: none;
49
  }
50
+ .fw_xdsoft_datetimepicker *{
51
  -moz-box-sizing: border-box;
52
  box-sizing: border-box;
53
  padding:0px;
54
  margin:0px;
55
  }
56
+ .fw_xdsoft_datetimepicker .fw_xdsoft_datepicker, .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker{
57
  display:none;
58
  }
59
+ .fw_xdsoft_datetimepicker .fw_xdsoft_datepicker.active, .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker.active{
60
  display:block;
61
  }
62
+ .fw_xdsoft_datetimepicker .fw_xdsoft_datepicker{
63
  width: 224px;
64
  float:left;
65
  margin-left:8px;
66
  }
67
+ .fw_xdsoft_datetimepicker.fw_xdsoft_showweeks .fw_xdsoft_datepicker{
68
  width: 256px;
69
  }
70
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker{
71
  width: 58px;
72
  float:left;
73
  text-align:center;
74
  margin-left:8px;
75
  margin-top:0px;
76
  }
77
+ .fw_xdsoft_datetimepicker .fw_xdsoft_datepicker.active+.fw_xdsoft_timepicker{
78
  margin-top:8px;
79
  margin-bottom:3px
80
  }
81
+ .fw_xdsoft_datetimepicker .fw_xdsoft_mounthpicker{
82
  position: relative;
83
  text-align: center;
84
  }
85
 
86
+ .fw_xdsoft_datetimepicker .fw_xdsoft_prev, .fw_xdsoft_datetimepicker .fw_xdsoft_next,.fw_xdsoft_datetimepicker .fw_xdsoft_today_button{
87
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAeCAYAAACsYQl4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozQjRCQjRGREU4MkNFMzExQjRDQkIyRDJDOTdBRUI1MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjg0OUYyNTZDODAxMUUzQjMwM0IwMERBNUU0ODQ5NSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjg0OUYyNDZDODAxMUUzQjMwM0IwMERBNUU0ODQ5NSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkI5NzE3MjFBN0E2Q0UzMTFBQjJEQjgzMDk5RTNBNTdBIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNCNEJCNEZERTgyQ0UzMTFCNENCQjJEMkM5N0FFQjUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+aQvATgAAAfVJREFUeNrsmr1OwzAQxzGtkPjYEAuvVGAvfQIGRKADE49gdLwDDwBiZ2RhQUKwICQkWLsgFiRQuIBTucFJ/XFp4+hO+quqnZ4uvzj2nV2RpukCW/22yAgYNINmc7du7DcghCjrkqgOKjF1znpt6rZ0AGWQj7TvCU8d9UM+QAGDrhdyc2Bnc1WVVPBev9V8lBnY+rDwncWZThG4xk4lmxtJy2AHgoY/FySgbSBPwPZ8mEXbQx3aDERb0EbYAYFC7pcAtAvkMWwC0D3NX58S9D/YnoGC7nPWr3Dg9JTbtuHhDShBT8D2CBSK/iIEvVXxpuxSgh7DdgwUTL4iA92zmJb6lKB/YTsECmV+IgK947AGDIqgQ/LojsO135Hn51l2cWlov0JdGNrPUceueXRwilSVgkUyom9Rd6gbLfYTDeO+1v6orn0InTogYDGUkYLO3/wc9BdqqTCKP1Tfi+oTIaCBIL2TES+GTyruT9S61p6BHam+99DFEAgLFklYsIBHwSI9QY80H5ta+1rB/6ovaKihBJeEJbgLbBlQgl+j3lDPqA2tfQV1j3pVn8s+oKHGTSVJ+FqDLeR5bCqJ2E/BCycsoLZETXaKGs7rhKVt+9HZScrZNMi88V8P7LlDbvOZYaJVpMMmBCT4n0o8dTBoNgbdWPsRYACs3r7XyNfbnAAAAABJRU5ErkJggg==');
88
  }
89
+ .fw_xdsoft_datetimepicker .fw_xdsoft_prev{
90
  float: left;
91
  background-position:-20px 0px;
92
  }
93
+ .fw_xdsoft_datetimepicker .fw_xdsoft_today_button{
94
  float: left;
95
  background-position:-70px 0px;
96
  margin-left:5px;
97
  }
98
 
99
+ .fw_xdsoft_datetimepicker .fw_xdsoft_next{
100
  float: right;
101
  background-position:0px 0px;
102
  }
103
+ .fw_xdsoft_datetimepicker .fw_xdsoft_next:active,.fw_xdsoft_datetimepicker .fw_xdsoft_prev:active{
104
  }
105
+ .fw_xdsoft_datetimepicker .fw_xdsoft_next,.fw_xdsoft_datetimepicker .fw_xdsoft_prev ,.fw_xdsoft_datetimepicker .fw_xdsoft_today_button{
106
  background-color: transparent;
107
  background-repeat: no-repeat;
108
  border: 0px none currentColor;
118
  white-space: nowrap;
119
  width: 20px;
120
  }
121
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_prev,
122
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_next{
123
  float:none;
124
  background-position:-40px -15px;
125
  height: 15px;
128
  margin-left:14px;
129
  margin-top:7px;
130
  }
131
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_prev{
132
  background-position:-40px 0px;
133
  margin-bottom:7px;
134
  margin-top:0px;
135
  }
136
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_time_box{
137
  height:151px;
138
  overflow:hidden;
139
  border-bottom:1px solid #DDDDDD;
140
  }
141
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_time_box >div >div{
142
  background: #F5F5F5;
143
  border-top:1px solid #DDDDDD;
144
  color: #666666;
151
  line-height:25px;
152
  }
153
 
154
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_time_box >div > div:first-child{
155
  border-top-width:0px;
156
  }
157
+ .fw_xdsoft_datetimepicker .fw_xdsoft_today_button:hover,
158
+ .fw_xdsoft_datetimepicker .fw_xdsoft_next:hover,
159
+ .fw_xdsoft_datetimepicker .fw_xdsoft_prev:hover {
160
  opacity: 1;
161
  }
162
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label{
163
  display: inline;
164
  position: relative;
165
  z-index: 9999;
174
  text-align:center;
175
  cursor:pointer;
176
  }
177
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label:hover{
178
  text-decoration:underline;
179
  }
180
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label > .fw_xdsoft_select{
181
  border:1px solid #ccc;
182
  position:absolute;
183
  right:0px;
188
  max-height:160px;
189
  overflow-y:hidden;
190
  }
191
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label > .fw_xdsoft_select.fw_xdsoft_monthselect{right:-7px;}
192
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label > .fw_xdsoft_select.fw_xdsoft_yearselect{right:2px;}
193
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label > .fw_xdsoft_select > div > .fw_xdsoft_option:hover{
194
  color: #fff;
195
  background: #ff8000;
196
  }
197
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label > .fw_xdsoft_select > div > .fw_xdsoft_option{
198
  padding:2px 10px 2px 5px;
199
  }
200
+ .fw_xdsoft_datetimepicker .fw_xdsoft_label > .fw_xdsoft_select > div > .fw_xdsoft_option.fw_xdsoft_current{
201
  background: #33AAFF;
202
  box-shadow: #178FE5 0px 1px 3px 0px inset;
203
  color:#fff;
204
  font-weight: 700;
205
  }
206
+ .fw_xdsoft_datetimepicker .fw_xdsoft_month{
207
  width:90px;
208
  text-align:right;
209
  }
210
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar{
211
  clear:both;
212
  }
213
+ .fw_xdsoft_datetimepicker .fw_xdsoft_year{
214
  width:56px;
215
  }
216
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar table{
217
  border-collapse:collapse;
218
  width:100%;
219
 
220
  }
221
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td > div{
222
  padding-right:5px;
223
  }
224
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar th{
225
  height: 25px;
226
  }
227
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td,.fw_xdsoft_datetimepicker .fw_xdsoft_calendar th{
228
  width:14.2857142%;
229
  background: #F5F5F5;
230
  border:1px solid #DDDDDD;
236
  cursor:pointer;
237
  height: 25px;
238
  }
239
+ .fw_xdsoft_datetimepicker.fw_xdsoft_showweeks .fw_xdsoft_calendar td,.fw_xdsoft_datetimepicker.fw_xdsoft_showweeks .fw_xdsoft_calendar th{
240
  width:12.5%;
241
  }
242
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar th{
243
  background: #F1F1F1;
244
  }
245
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_today{
246
  color:#33AAFF;
247
  }
248
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_default,
249
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_current,
250
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_time_box >div >div.fw_xdsoft_current{
251
  background: #33AAFF;
252
  box-shadow: #178FE5 0px 1px 3px 0px inset;
253
  color:#fff;
254
  font-weight: 700;
255
  }
256
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_other_month,
257
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_disabled,
258
+ .fw_xdsoft_datetimepicker .fw_xdsoft_time_box >div >div.fw_xdsoft_disabled{
259
  opacity:0.5;
260
  }
261
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_other_month.fw_xdsoft_disabled{
262
  opacity:0.2;
263
  }
264
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td:hover,
265
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_time_box >div >div:hover{
266
  color: #fff !important;
267
  background: #ff8000 !important;
268
  box-shadow: none !important;
269
  }
270
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar td.fw_xdsoft_disabled:hover,
271
+ .fw_xdsoft_datetimepicker .fw_xdsoft_timepicker .fw_xdsoft_time_box >div >div.fw_xdsoft_disabled:hover{
272
  color: inherit !important;
273
  background: inherit !important;
274
  box-shadow: inherit !important;
275
  }
276
+ .fw_xdsoft_datetimepicker .fw_xdsoft_calendar th{
277
  font-weight: 700;
278
  text-align: center;
279
  color: #999;
280
  cursor:default;
281
  }
282
+ .fw_xdsoft_datetimepicker .fw_xdsoft_copyright{ color:#ccc !important; font-size:10px;clear:both;float:none;margin-left:8px;}
283
+ .fw_xdsoft_datetimepicker .fw_xdsoft_copyright a{ color:#eee !important;}
284
+ .fw_xdsoft_datetimepicker .fw_xdsoft_copyright a:hover{ color:#aaa !important;}
285
 
286
 
287
+ .fw_xdsoft_time_box{
288
  position:relative;
289
  border:1px solid #ccc;
290
  }
291
+ .fw_xdsoft_scrollbar >.fw_xdsoft_scroller{
292
  background:#ccc !important;
293
  height:20px;
294
  border-radius:3px;
295
  }
296
+ .fw_xdsoft_scrollbar{
297
  position:absolute;
298
  width:7px;
299
  right:0px;
301
  bottom:0px;
302
  cursor:pointer;
303
  }
304
+ .fw_xdsoft_scroller_box{
305
  position:relative;
306
  }
framework/includes/option-types/datetime-picker/static/css/style.css CHANGED
@@ -1,4 +1,4 @@
1
- .xdsoft_datetimepicker.xdsoft_noselect {
2
  z-index: 560100; /* bigger than fw.OptionsModal's z-index */
3
  }
4
 
@@ -7,5 +7,4 @@
7
  }
8
  .fw-option-type-datetime-picker input[readonly] {
9
  background-color: #fff;
10
- cursor: pointer;
11
  }
1
+ .fw_xdsoft_datetimepicker.fw_xdsoft_noselect {
2
  z-index: 560100; /* bigger than fw.OptionsModal's z-index */
3
  }
4
 
7
  }
8
  .fw-option-type-datetime-picker input[readonly] {
9
  background-color: #fff;
 
10
  }
framework/includes/option-types/datetime-picker/static/js/jquery.datetimepicker.js CHANGED
@@ -1,2 +1,2429 @@
1
- var DateFormatter;!function(){"use strict";var e,t,a,n,r,o;r=864e5,o=3600,e=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},t=function(e,a,n){var r=n||"0",o=e.toString();return o.length<a?t(r+o,a):o},a=function(e){var t,n;for(e=e||{},t=1;t<arguments.length;t++)if(n=arguments[t])for(var r in n)n.hasOwnProperty(r)&&("object"==typeof n[r]?a(e[r],n[r]):e[r]=n[r]);return e},n={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){var t=e%10,a={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},DateFormatter=function(e){var t=this,r=a(n,e);t.dateSettings=r.dateSettings,t.separators=r.separators,t.validParts=r.validParts,t.intParts=r.intParts,t.tzParts=r.tzParts,t.tzClip=r.tzClip},DateFormatter.prototype={constructor:DateFormatter,parseDate:function(t,a){var n,r,o,i,s,d,u,l,f,c,h=this,m=!1,g=!1,p=h.dateSettings,y={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!t)return void 0;if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);if("U"===a)return o=parseInt(t),o?new Date(1e3*o):t;if("string"!=typeof t)return"";if(n=a.match(h.validParts),!n||0===n.length)throw new Error("Invalid date format definition.");for(r=t.replace(h.separators,"\x00").split("\x00"),o=0;o<r.length;o++)switch(i=r[o],s=parseInt(i),n[o]){case"y":case"Y":f=i.length,2===f?y.year=parseInt((70>s?"20":"19")+i):4===f&&(y.year=s),m=!0;break;case"m":case"n":case"M":case"F":isNaN(i)?(d=p.monthsShort.indexOf(i),d>-1&&(y.month=d+1),d=p.months.indexOf(i),d>-1&&(y.month=d+1)):s>=1&&12>=s&&(y.month=s),m=!0;break;case"d":case"j":s>=1&&31>=s&&(y.day=s),m=!0;break;case"g":case"h":u=n.indexOf("a")>-1?n.indexOf("a"):n.indexOf("A")>-1?n.indexOf("A"):-1,c=r[u],u>-1?(l=e(c,p.meridiem[0])?0:e(c,p.meridiem[1])?12:-1,s>=1&&12>=s&&l>-1?y.hour=s+l-1:s>=0&&23>=s&&(y.hour=s)):s>=0&&23>=s&&(y.hour=s),g=!0;break;case"G":case"H":s>=0&&23>=s&&(y.hour=s),g=!0;break;case"i":s>=0&&59>=s&&(y.min=s),g=!0;break;case"s":s>=0&&59>=s&&(y.sec=s),g=!0}if(m===!0&&y.year&&y.month&&y.day)y.date=new Date(y.year,y.month-1,y.day,y.hour,y.min,y.sec,0);else{if(g!==!0)return!1;y.date=new Date(0,0,0,y.hour,y.min,y.sec,0)}return y.date},guessDate:function(e,t){if("string"!=typeof e)return e;var a,n,r,o,i=this,s=e.replace(i.separators,"\x00").split("\x00"),d=/^[djmn]/g,u=t.match(i.validParts),l=new Date,f=0;if(!d.test(u[0]))return e;for(n=0;n<s.length;n++){switch(f=2,r=s[n],o=parseInt(r.substr(0,2)),n){case 0:"m"===u[0]||"n"===u[0]?l.setMonth(o-1):l.setDate(o);break;case 1:"m"===u[0]||"n"===u[0]?l.setDate(o):l.setMonth(o-1);break;case 2:a=l.getFullYear(),r.length<4?(l.setFullYear(parseInt(a.toString().substr(0,4-r.length)+r)),f=r.length):(l.setFullYear=parseInt(r.substr(0,4)),f=4);break;case 3:l.setHours(o);break;case 4:l.setMinutes(o);break;case 5:l.setSeconds(o)}r.substr(f).length>0&&s.splice(n+1,0,r.substr(f))}return l},parseFormat:function(e,a){var n,i=this,s=i.dateSettings,d=/\\?(.?)/gi,u=function(e,t){return n[e]?n[e]():t};return n={d:function(){return t(n.j(),2)},D:function(){return s.daysShort[n.w()]},j:function(){return a.getDate()},l:function(){return s.days[n.w()]},N:function(){return n.w()||7},w:function(){return a.getDay()},z:function(){var e=new Date(n.Y(),n.n()-1,n.j()),t=new Date(n.Y(),0,1);return Math.round((e-t)/r)},W:function(){var e=new Date(n.Y(),n.n()-1,n.j()-n.N()+3),a=new Date(e.getFullYear(),0,4);return t(1+Math.round((e-a)/r/7),2)},F:function(){return s.months[a.getMonth()]},m:function(){return t(n.n(),2)},M:function(){return s.monthsShort[a.getMonth()]},n:function(){return a.getMonth()+1},t:function(){return new Date(n.Y(),n.n(),0).getDate()},L:function(){var e=n.Y();return e%4===0&&e%100!==0||e%400===0?1:0},o:function(){var e=n.n(),t=n.W(),a=n.Y();return a+(12===e&&9>t?1:1===e&&t>9?-1:0)},Y:function(){return a.getFullYear()},y:function(){return n.Y().toString().slice(-2)},a:function(){return n.A().toLowerCase()},A:function(){var e=n.G()<12?0:1;return s.meridiem[e]},B:function(){var e=a.getUTCHours()*o,n=60*a.getUTCMinutes(),r=a.getUTCSeconds();return t(Math.floor((e+n+r+o)/86.4)%1e3,3)},g:function(){return n.G()%12||12},G:function(){return a.getHours()},h:function(){return t(n.g(),2)},H:function(){return t(n.G(),2)},i:function(){return t(a.getMinutes(),2)},s:function(){return t(a.getSeconds(),2)},u:function(){return t(1e3*a.getMilliseconds(),6)},e:function(){var e=/\((.*)\)/.exec(String(a))[1];return e||"Coordinated Universal Time"},T:function(){var e=(String(a).match(i.tzParts)||[""]).pop().replace(i.tzClip,"");return e||"UTC"},I:function(){var e=new Date(n.Y(),0),t=Date.UTC(n.Y(),0),a=new Date(n.Y(),6),r=Date.UTC(n.Y(),6);return e-t!==a-r?1:0},O:function(){var e=a.getTimezoneOffset(),n=Math.abs(e);return(e>0?"-":"+")+t(100*Math.floor(n/60)+n%60,4)},P:function(){var e=n.O();return e.substr(0,3)+":"+e.substr(3,2)},Z:function(){return 60*-a.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(d,u)},r:function(){return"D, d M Y H:i:s O".replace(d,u)},U:function(){return a.getTime()/1e3||0}},u(e,e)},formatDate:function(e,t){var a,n,r,o,i,s=this,d="";if("string"==typeof e&&(e=s.parseDate(e,t),e===!1))return!1;if(e instanceof Date){for(r=t.length,a=0;r>a;a++)i=t.charAt(a),"S"!==i&&(o=s.parseFormat(i,e),a!==r-1&&s.intParts.test(i)&&"S"===t.charAt(a+1)&&(n=parseInt(o),o+=s.dateSettings.ordinal(n)),d+=o);return d}return""}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){"use strict";function t(e,t,a){this.date=e,this.desc=t,this.style=a}var a={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]}},value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,disabledMinTime:!1,disabledMaxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},n=null,r="en",o="en",i={meridiem:["AM","PM"]},s=function(){var t=a.i18n[o],r={days:t.dayOfWeek,daysShort:t.dayOfWeekShort,months:t.months,monthsShort:e.map(t.months,function(e){return e.substring(0,3)})};n=new DateFormatter({dateSettings:e.extend({},i,r)})};e.datetimepicker={setLocale:function(e){var t=a.i18n[e]?e:r;o!=t&&(o=t,s())},RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},s(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var a=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),a.test(t)&&(t=t.replace(a,function(e,t,a){return a.toUpperCase()})),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var a,n;for(a=t||0,n=this.length;n>a;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t){return this.each(function(){var a,n,r,o,i,s=e(this),d=function(e){var t,a={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a.x=t.clientX,a.y=t.clientY):("mousedown"===e.type||"mouseup"===e.type||"mousemove"===e.type||"mouseover"===e.type||"mouseout"===e.type||"mouseenter"===e.type||"mouseleave"===e.type)&&(a.x=e.clientX,a.y=e.clientY),a},u=100,l=!1,f=0,c=0,h=0,m=!1,g=0,p=function(){};return"hide"===t?void s.find(".xdsoft_scrollbar").hide():(e(this).hasClass("xdsoft_scroller_box")||(a=s.children().eq(0),n=s[0].clientHeight,r=a[0].offsetHeight,o=e('<div class="xdsoft_scrollbar"></div>'),i=e('<div class="xdsoft_scroller"></div>'),o.append(i),s.addClass("xdsoft_scroller_box").append(o),p=function(e){var t=d(e).y-f+g;0>t&&(t=0),t+i[0].offsetHeight>h&&(t=h-i[0].offsetHeight),s.trigger("scroll_element.xdsoft_scroller",[u?t/u:0])},i.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(a){n||s.trigger("resize_scroll.xdsoft_scroller",[t]),f=d(a).y,g=parseInt(i.css("margin-top"),10),h=o[0].offsetHeight,"mousedown"===a.type||"touchstart"===a.type?(document&&e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("touchend mouseup.xdsoft_scroller",function r(){e([document.body,window]).off("touchend mouseup.xdsoft_scroller",r).off("mousemove.xdsoft_scroller",p).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",p)):(m=!0,a.stopPropagation(),a.preventDefault())}).on("touchmove",function(e){m&&(e.preventDefault(),p(e))}).on("touchend touchcancel",function(){m=!1,g=0}),s.on("scroll_element.xdsoft_scroller",function(e,t){n||s.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:0>t||isNaN(t)?0:t,i.css("margin-top",u*t),setTimeout(function(){a.css("marginTop",-parseInt((a[0].offsetHeight-n)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,d){var l,f;n=s[0].clientHeight,r=a[0].offsetHeight,l=n/r,f=l*o[0].offsetHeight,l>1?i.hide():(i.show(),i.css("height",parseInt(f>10?f:10,10)),u=o[0].offsetHeight-i[0].offsetHeight,d!==!0&&s.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(a.css("marginTop"),10))/(r-n)]))}),s.on("mousewheel",function(e){var t=Math.abs(parseInt(a.css("marginTop"),10));return t-=20*e.deltaY,0>t&&(t=0),s.trigger("scroll_element.xdsoft_scroller",[t/(r-n)]),e.stopPropagation(),!1}),s.on("touchstart",function(e){l=d(e),c=Math.abs(parseInt(a.css("marginTop"),10))}),s.on("touchmove",function(e){if(l){e.preventDefault();var t=d(e);s.trigger("scroll_element.xdsoft_scroller",[(c-(t.y-l.y))/(r-n)])}}),s.on("touchend touchcancel",function(){l=!1,c=0})),void s.trigger("resize_scroll.xdsoft_scroller",[t]))})},e.fn.datetimepicker=function(r,i){var s,d,u=this,l=48,f=57,c=96,h=105,m=17,g=46,p=13,y=27,v=8,b=37,D=38,x=39,k=40,T=9,S=116,w=65,O=67,M=86,_=90,W=89,F=!1,C=e.isPlainObject(r)||!r?e.extend(!0,{},a,r):e.extend(!0,{},a),P=0,A=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){e.is(":disabled")||e.data("xdsoft_datetimepicker")||(clearTimeout(P),P=setTimeout(function(){e.data("xdsoft_datetimepicker")||s(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))})};return s=function(a){function i(){var e,t=!1;return C.startDate?t=Y.strToDate(C.startDate):(t=C.value||(a&&a.val&&a.val()?a.val():""),t?t=Y.strToDateTime(t):C.defaultDate&&(t=Y.strToDateTime(C.defaultDate),C.defaultTime&&(e=Y.strtotime(C.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes())))),t&&Y.isValidDate(t)?j.data("changed",!0):t="",t||0}var s,d,u,P,A,Y,j=e('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),H=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),J=e('<div class="xdsoft_datepicker active"></div>'),z=e('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),I=e('<div class="xdsoft_calendar"></div>'),N=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),L=N.find(".xdsoft_time_box").eq(0),E=e('<div class="xdsoft_time_variant"></div>'),R=e('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),B=e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),G=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),V=!1,U=0,q=0;C.id&&j.attr("id",C.id),C.style&&j.attr("style",C.style),C.weeks&&j.addClass("xdsoft_showweeks"),C.rtl&&j.addClass("xdsoft_rtl"),j.addClass("xdsoft_"+C.theme),j.addClass(C.className),z.find(".xdsoft_month span").after(B),z.find(".xdsoft_year span").after(G),z.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var a,n,r=e(this).find(".xdsoft_select").eq(0),o=0,i=0,s=r.is(":visible");for(z.find(".xdsoft_select").hide(),Y.currentTime&&(o=Y.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),r[s?"hide":"show"](),a=r.find("div.xdsoft_option"),n=0;n<a.length&&a.eq(n).data("value")!==o;n+=1)i+=a[0].offsetHeight;return r.xdsoftScroller(i/(r.children()[0].offsetHeight-r[0].clientHeight)),t.stopPropagation(),!1}),z.find(".xdsoft_select").xdsoftScroller().on("touchstart mousedown.xdsoft",function(e){e.stopPropagation(),e.preventDefault()}).on("touchstart mousedown.xdsoft",".xdsoft_option",function(){(void 0===Y.currentTime||null===Y.currentTime)&&(Y.currentTime=Y.now());var t=Y.currentTime.getFullYear();Y&&Y.currentTime&&Y.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),j.trigger("xchange.xdsoft"),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(j,Y.currentTime,j.data("input")),t!==Y.currentTime.getFullYear()&&e.isFunction(C.onChangeYear)&&C.onChangeYear.call(j,Y.currentTime,j.data("input"))}),j.getValue=function(){return Y.getCurrentTime()},j.setOptions=function(r){var o={},i=function(e){try{if(document.selection&&document.selection.createRange){var t=document.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(e.setSelectionRange)return e.selectionStart}catch(a){return 0}},s=function(e,t){if(e="string"==typeof e||e instanceof String?document.getElementById(e):e,!e)return!1;if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),!0}return e.setSelectionRange?(e.setSelectionRange(t,t),!0):!1},d=function(e,t){var a=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(a).test(t)};C=e.extend(!0,{},C,r),r.allowTimes&&e.isArray(r.allowTimes)&&r.allowTimes.length&&(C.allowTimes=e.extend(!0,[],r.allowTimes)),r.weekends&&e.isArray(r.weekends)&&r.weekends.length&&(C.weekends=e.extend(!0,[],r.weekends)),r.allowDates&&e.isArray(r.allowDates)&&r.allowDates.length&&(C.allowDates=e.extend(!0,[],r.allowDates)),r.allowDateRe&&"[object String]"===Object.prototype.toString.call(r.allowDateRe)&&(C.allowDateRe=new RegExp(r.allowDateRe)),r.highlightedDates&&e.isArray(r.highlightedDates)&&r.highlightedDates.length&&(e.each(r.highlightedDates,function(a,r){var i,s=e.map(r.split(","),e.trim),d=new t(n.parseDate(s[0],C.formatDate),s[1],s[2]),u=n.formatDate(d.date,C.formatDate);void 0!==o[u]?(i=o[u].desc,i&&i.length&&d.desc&&d.desc.length&&(o[u].desc=i+"\n"+d.desc)):o[u]=d}),C.highlightedDates=e.extend(!0,[],o)),r.highlightedPeriods&&e.isArray(r.highlightedPeriods)&&r.highlightedPeriods.length&&(o=e.extend(!0,[],C.highlightedDates),e.each(r.highlightedPeriods,function(a,r){var i,s,d,u,l,f,c;if(e.isArray(r))i=r[0],s=r[1],d=r[2],c=r[3];else{var h=e.map(r.split(","),e.trim);i=n.parseDate(h[0],C.formatDate),s=n.parseDate(h[1],C.formatDate),d=h[2],c=h[3]}for(;s>=i;)u=new t(i,d,c),l=n.formatDate(i,C.formatDate),i.setDate(i.getDate()+1),void 0!==o[l]?(f=o[l].desc,f&&f.length&&u.desc&&u.desc.length&&(o[l].desc=f+"\n"+u.desc)):o[l]=u}),C.highlightedDates=e.extend(!0,[],o)),r.disabledDates&&e.isArray(r.disabledDates)&&r.disabledDates.length&&(C.disabledDates=e.extend(!0,[],r.disabledDates)),r.disabledWeekDays&&e.isArray(r.disabledWeekDays)&&r.disabledWeekDays.length&&(C.disabledWeekDays=e.extend(!0,[],r.disabledWeekDays)),!C.open&&!C.opened||C.inline||a.trigger("open.xdsoft"),C.inline&&(V=!0,j.addClass("xdsoft_inline"),a.after(j).hide()),C.inverseButton&&(C.next="xdsoft_prev",C.prev="xdsoft_next"),C.datepicker?J.addClass("active"):J.removeClass("active"),C.timepicker?N.addClass("active"):N.removeClass("active"),C.value&&(Y.setCurrentTime(C.value),a&&a.val&&a.val(Y.str)),C.dayOfWeekStart=isNaN(C.dayOfWeekStart)?0:parseInt(C.dayOfWeekStart,10)%7,C.timepickerScrollbar||L.xdsoftScroller("hide"),C.minDate&&/^[\+\-](.*)$/.test(C.minDate)&&(C.minDate=n.formatDate(Y.strToDateTime(C.minDate),C.formatDate)),C.maxDate&&/^[\+\-](.*)$/.test(C.maxDate)&&(C.maxDate=n.formatDate(Y.strToDateTime(C.maxDate),C.formatDate)),R.toggle(C.showApplyButton),z.find(".xdsoft_today_button").css("visibility",C.todayButton?"visible":"hidden"),
2
- z.find("."+C.prev).css("visibility",C.prevButton?"visible":"hidden"),z.find("."+C.next).css("visibility",C.nextButton?"visible":"hidden"),C.mask&&(a.off("keydown.xdsoft"),C.mask===!0&&(C.mask=C.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(C.mask)&&(d(C.mask,a.val())||(a.val(C.mask.replace(/[0-9]/g,"_")),s(a[0],0)),a.on("keydown.xdsoft",function(t){var n,r,o=this.value,u=t.which;if(u>=l&&f>=u||u>=c&&h>=u||u===v||u===g){for(n=i(this),r=u!==v&&u!==g?String.fromCharCode(u>=c&&h>=u?u-l:u):"_",u!==v&&u!==g||!n||(n-=1,r="_");/[^0-9_]/.test(C.mask.substr(n,1))&&n<C.mask.length&&n>0;)n+=u===v||u===g?-1:1;if(o=o.substr(0,n)+r+o.substr(n+1),""===e.trim(o))o=C.mask.replace(/[0-9]/g,"_");else if(n===C.mask.length)return t.preventDefault(),!1;for(n+=u===v||u===g?0:1;/[^0-9_]/.test(C.mask.substr(n,1))&&n<C.mask.length&&n>0;)n+=u===v||u===g?-1:1;d(C.mask,o)?(this.value=o,s(this,n)):""===e.trim(o)?this.value=C.mask.replace(/[0-9]/g,"_"):a.trigger("error_input.xdsoft")}else if(-1!==[w,O,M,_,W].indexOf(u)&&F||-1!==[y,D,k,b,x,S,m,T,p].indexOf(u))return!0;return t.preventDefault(),!1}))),C.validateOnBlur&&a.off("blur.xdsoft").on("blur.xdsoft",function(){if(C.allowBlank&&!e.trim(e(this).val()).length)e(this).val(null),j.data("xdsoft_datetime").empty();else if(n.parseDate(e(this).val(),C.format))j.data("xdsoft_datetime").setCurrentTime(e(this).val());else{var t=+[e(this).val()[0],e(this).val()[1]].join(""),a=+[e(this).val()[2],e(this).val()[3]].join("");e(this).val(!C.datepicker&&C.timepicker&&t>=0&&24>t&&a>=0&&60>a?[t,a].map(function(e){return e>9?e:"0"+e}).join(":"):n.formatDate(Y.now(),C.format)),j.data("xdsoft_datetime").setCurrentTime(e(this).val())}j.trigger("changedatetime.xdsoft")}),C.dayOfWeekStartPrev=0===C.dayOfWeekStart?6:C.dayOfWeekStart-1,j.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},j.data("options",C).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),G.hide(),B.hide(),!1}),L.append(E),L.xdsoftScroller(),j.on("afterOpen.xdsoft",function(){L.xdsoftScroller()}),j.append(J).append(N),C.withoutCopyright!==!0&&j.append(H),J.append(z).append(I).append(R),e(C.parentID).append(j),s=function(){var t=this;t.now=function(e){var a,n,r=new Date;return!e&&C.defaultDate&&(a=t.strToDateTime(C.defaultDate),r.setFullYear(a.getFullYear()),r.setMonth(a.getMonth()),r.setDate(a.getDate())),C.yearOffset&&r.setFullYear(r.getFullYear()+C.yearOffset),!e&&C.defaultTime&&(n=t.strtotime(C.defaultTime),r.setHours(n.getHours()),r.setMinutes(n.getMinutes())),r},t.isValidDate=function(e){return"[object Date]"!==Object.prototype.toString.call(e)?!1:!isNaN(e.getTime())},t.setCurrentTime=function(e){t.currentTime="string"==typeof e?t.strToDateTime(e):t.isValidDate(e)?e:t.now(),j.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){(void 0===t.currentTime||null===t.currentTime)&&(t.currentTime=t.now());var a,n=t.currentTime.getMonth()+1;return 12===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),n=0),a=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(j,Y.currentTime,j.data("input")),a!==t.currentTime.getFullYear()&&e.isFunction(C.onChangeYear)&&C.onChangeYear.call(j,Y.currentTime,j.data("input")),j.trigger("xchange.xdsoft"),n},t.prevMonth=function(){(void 0===t.currentTime||null===t.currentTime)&&(t.currentTime=t.now());var a=t.currentTime.getMonth()-1;return-1===a&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),a=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),a+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(a),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(j,Y.currentTime,j.data("input")),j.trigger("xchange.xdsoft"),a},t.getWeekOfYear=function(t){if(C.onGetWeekOfYear&&e.isFunction(C.onGetWeekOfYear)){var a=C.onGetWeekOfYear.call(j,t);if("undefined"!=typeof a)return a}var n=new Date(t.getFullYear(),0,1);return 4!=n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),Math.ceil(((t-n)/864e5+n.getDay()+1)/7)},t.strToDateTime=function(e){var a,r,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:(o=/^(\+|\-)(.*)$/.exec(e),o&&(o[2]=n.parseDate(o[2],C.formatDate)),o&&o[2]?(a=o[2].getTime()-6e4*o[2].getTimezoneOffset(),r=new Date(t.now(!0).getTime()+parseInt(o[1]+"1",10)*a)):r=e?n.parseDate(e,C.format):t.now(),t.isValidDate(r)||(r=t.now()),r)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var a=e?n.parseDate(e,C.formatDate):t.now(!0);return t.isValidDate(a)||(a=t.now(!0)),a},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var a=e?n.parseDate(e,C.formatTime):t.now(!0);return t.isValidDate(a)||(a=t.now(!0)),a},t.str=function(){return n.formatDate(t.currentTime,C.format)},t.currentTime=this.now()},Y=new s,R.on("touchend click",function(e){e.preventDefault(),j.data("changed",!0),Y.setCurrentTime(i()),a.val(Y.str()),j.trigger("close.xdsoft")}),z.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){j.data("changed",!0),Y.setCurrentTime(0),j.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,t,n=Y.getCurrentTime();n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=Y.strToDate(C.minDate),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),e>n||(t=Y.strToDate(C.maxDate),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n>t||(a.val(Y.str()),a.trigger("change"),j.trigger("close.xdsoft")))}),z.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,n=!1;!function r(e){t.hasClass(C.next)?Y.nextMonth():t.hasClass(C.prev)&&Y.prevMonth(),C.monthChangeSpinner&&(n||(a=setTimeout(r,e||100)))}(500),e([document.body,window]).on("touchend mouseup.xdsoft",function o(){clearTimeout(a),n=!0,e([document.body,window]).off("touchend mouseup.xdsoft",o)})}),N.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,n=!1,r=110;!function o(e){var i=L[0].clientHeight,s=E[0].offsetHeight,d=Math.abs(parseInt(E.css("marginTop"),10));t.hasClass(C.next)&&s-i-C.timeHeightInTimePicker>=d?E.css("marginTop","-"+(d+C.timeHeightInTimePicker)+"px"):t.hasClass(C.prev)&&d-C.timeHeightInTimePicker>=0&&E.css("marginTop","-"+(d-C.timeHeightInTimePicker)+"px"),L.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(E.css("marginTop"),10)/(s-i))]),r=r>10?10:r-10,n||(a=setTimeout(o,e||r))}(500),e([document.body,window]).on("touchend mouseup.xdsoft",function i(){clearTimeout(a),n=!0,e([document.body,window]).off("touchend mouseup.xdsoft",i)})}),d=0,j.on("xchange.xdsoft",function(t){clearTimeout(d),d=setTimeout(function(){(void 0===Y.currentTime||null===Y.currentTime)&&(Y.currentTime=Y.now());for(var t,a,i,s,d,u,l,f,c,h,m="",g=new Date(Y.currentTime.getFullYear(),Y.currentTime.getMonth(),1,12,0,0),p=0,y=Y.now(),v=!1,b=!1,D=[],x=!0,k="",T="";g.getDay()!==C.dayOfWeekStart;)g.setDate(g.getDate()-1);for(m+="<table><thead><tr>",C.weeks&&(m+="<th></th>"),t=0;7>t;t+=1)m+="<th>"+C.i18n[o].dayOfWeekShort[(t+C.dayOfWeekStart)%7]+"</th>";for(m+="</tr></thead>",m+="<tbody>",C.maxDate!==!1&&(v=Y.strToDate(C.maxDate),v=new Date(v.getFullYear(),v.getMonth(),v.getDate(),23,59,59,999)),C.minDate!==!1&&(b=Y.strToDate(C.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate()));p<Y.currentTime.countDaysInMonth()||g.getDay()!==C.dayOfWeekStart||Y.currentTime.getMonth()===g.getMonth();)D=[],p+=1,i=g.getDay(),s=g.getDate(),d=g.getFullYear(),u=g.getMonth(),l=Y.getWeekOfYear(g),h="",D.push("xdsoft_date"),f=C.beforeShowDay&&e.isFunction(C.beforeShowDay.call)?C.beforeShowDay.call(j,g):null,C.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(C.allowDateRe)?C.allowDateRe.test(g.dateFormat(C.formatDate))||D.push("xdsoft_disabled"):C.allowDates&&C.allowDates.length>0?-1===C.allowDates.indexOf(g.dateFormat(C.formatDate))&&D.push("xdsoft_disabled"):v!==!1&&g>v||b!==!1&&b>g||f&&f[0]===!1?D.push("xdsoft_disabled"):-1!==C.disabledDates.indexOf(n.formatDate(g,C.formatDate))?D.push("xdsoft_disabled"):-1!==C.disabledWeekDays.indexOf(i)&&D.push("xdsoft_disabled"),f&&""!==f[1]&&D.push(f[1]),Y.currentTime.getMonth()!==u&&D.push("xdsoft_other_month"),(C.defaultSelect||j.data("changed"))&&n.formatDate(Y.currentTime,C.formatDate)===n.formatDate(g,C.formatDate)&&D.push("xdsoft_current"),n.formatDate(y,C.formatDate)===n.formatDate(g,C.formatDate)&&D.push("xdsoft_today"),(0===g.getDay()||6===g.getDay()||-1!==C.weekends.indexOf(n.formatDate(g,C.formatDate)))&&D.push("xdsoft_weekend"),void 0!==C.highlightedDates[n.formatDate(g,C.formatDate)]&&(a=C.highlightedDates[n.formatDate(g,C.formatDate)],D.push(void 0===a.style?"xdsoft_highlighted_default":a.style),h=void 0===a.desc?"":a.desc),C.beforeShowDay&&e.isFunction(C.beforeShowDay)&&D.push(C.beforeShowDay(g)),x&&(m+="<tr>",x=!1,C.weeks&&(m+="<th>"+l+"</th>")),m+='<td data-date="'+s+'" data-month="'+u+'" data-year="'+d+'" class="xdsoft_date xdsoft_day_of_week'+g.getDay()+" "+D.join(" ")+'" title="'+h+'"><div>'+s+"</div></td>",g.getDay()===C.dayOfWeekStartPrev&&(m+="</tr>",x=!0),g.setDate(s+1);if(m+="</tbody></table>",I.html(m),z.find(".xdsoft_label span").eq(0).text(C.i18n[o].months[Y.currentTime.getMonth()]),z.find(".xdsoft_label span").eq(1).text(Y.currentTime.getFullYear()),k="",T="",u="",c=function(t,a){var r,o,i=Y.now(),s=C.allowTimes&&e.isArray(C.allowTimes)&&C.allowTimes.length;i.setHours(t),t=parseInt(i.getHours(),10),i.setMinutes(a),a=parseInt(i.getMinutes(),10),r=new Date(Y.currentTime),r.setHours(t),r.setMinutes(a),D=[],(C.minDateTime!==!1&&C.minDateTime>r||C.maxTime!==!1&&Y.strtotime(C.maxTime).getTime()<i.getTime()||C.minTime!==!1&&Y.strtotime(C.minTime).getTime()>i.getTime())&&D.push("xdsoft_disabled"),(C.minDateTime!==!1&&C.minDateTime>r||C.disabledMinTime!==!1&&i.getTime()>Y.strtotime(C.disabledMinTime).getTime()&&C.disabledMaxTime!==!1&&i.getTime()<Y.strtotime(C.disabledMaxTime).getTime())&&D.push("xdsoft_disabled"),o=new Date(Y.currentTime),o.setHours(parseInt(Y.currentTime.getHours(),10)),s||o.setMinutes(Math[C.roundTime](Y.currentTime.getMinutes()/C.step)*C.step),(C.initTime||C.defaultSelect||j.data("changed"))&&o.getHours()===parseInt(t,10)&&(!s&&C.step>59||o.getMinutes()===parseInt(a,10))&&(C.defaultSelect||j.data("changed")?D.push("xdsoft_current"):C.initTime&&D.push("xdsoft_init_time")),parseInt(y.getHours(),10)===parseInt(t,10)&&parseInt(y.getMinutes(),10)===parseInt(a,10)&&D.push("xdsoft_today"),k+='<div class="xdsoft_time '+D.join(" ")+'" data-hour="'+t+'" data-minute="'+a+'">'+n.formatDate(i,C.formatTime)+"</div>"},C.allowTimes&&e.isArray(C.allowTimes)&&C.allowTimes.length)for(p=0;p<C.allowTimes.length;p+=1)T=Y.strtotime(C.allowTimes[p]).getHours(),u=Y.strtotime(C.allowTimes[p]).getMinutes(),c(T,u);else for(p=0,t=0;p<(C.hours12?12:24);p+=1)for(t=0;60>t;t+=C.step)T=(10>p?"0":"")+p,u=(10>t?"0":"")+t,c(T,u);for(E.html(k),r="",p=0,p=parseInt(C.yearStart,10)+C.yearOffset;p<=parseInt(C.yearEnd,10)+C.yearOffset;p+=1)r+='<div class="xdsoft_option '+(Y.currentTime.getFullYear()===p?"xdsoft_current":"")+'" data-value="'+p+'">'+p+"</div>";for(G.children().eq(0).html(r),p=parseInt(C.monthStart,10),r="";p<=parseInt(C.monthEnd,10);p+=1)r+='<div class="xdsoft_option '+(Y.currentTime.getMonth()===p?"xdsoft_current":"")+'" data-value="'+p+'">'+C.i18n[o].months[p]+"</div>";B.children().eq(0).html(r),e(j).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){if(C.timepicker){var e,t,a,n;E.find(".xdsoft_current").length?e=".xdsoft_current":E.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=L[0].clientHeight,a=E[0].offsetHeight,n=E.find(e).index()*C.timeHeightInTimePicker+1,n>a-t&&(n=a-t),L.trigger("scroll_element.xdsoft_scroller",[parseInt(n,10)/(a-t)])):L.trigger("scroll_element.xdsoft_scroller",[0])}}),u=0,I.on("touchend click.xdsoft","td",function(t){t.stopPropagation(),u+=1;var n=e(this),r=Y.currentTime;return(void 0===r||null===r)&&(Y.currentTime=Y.now(),r=Y.currentTime),n.hasClass("xdsoft_disabled")?!1:(r.setDate(1),r.setFullYear(n.data("year")),r.setMonth(n.data("month")),r.setDate(n.data("date")),j.trigger("select.xdsoft",[r]),a.val(Y.str()),C.onSelectDate&&e.isFunction(C.onSelectDate)&&C.onSelectDate.call(j,Y.currentTime,j.data("input"),t),j.data("changed",!0),j.trigger("xchange.xdsoft"),j.trigger("changedatetime.xdsoft"),(u>1||C.closeOnDateSelect===!0||C.closeOnDateSelect===!1&&!C.timepicker)&&!C.inline&&j.trigger("close.xdsoft"),void setTimeout(function(){u=0},200))}),E.on("touchend click.xdsoft","div",function(t){t.stopPropagation();var a=e(this),n=Y.currentTime;return(void 0===n||null===n)&&(Y.currentTime=Y.now(),n=Y.currentTime),a.hasClass("xdsoft_disabled")?!1:(n.setHours(a.data("hour")),n.setMinutes(a.data("minute")),j.trigger("select.xdsoft",[n]),j.data("input").val(Y.str()),C.onSelectTime&&e.isFunction(C.onSelectTime)&&C.onSelectTime.call(j,Y.currentTime,j.data("input"),t),j.data("changed",!0),j.trigger("xchange.xdsoft"),j.trigger("changedatetime.xdsoft"),void(C.inline!==!0&&C.closeOnTimeSelect===!0&&j.trigger("close.xdsoft")))}),J.on("mousewheel.xdsoft",function(e){return C.scrollMonth?(e.deltaY<0?Y.nextMonth():Y.prevMonth(),!1):!0}),a.on("mousewheel.xdsoft",function(e){return C.scrollInput?!C.datepicker&&C.timepicker?(P=E.find(".xdsoft_current").length?E.find(".xdsoft_current").eq(0).index():0,P+e.deltaY>=0&&P+e.deltaY<E.children().length&&(P+=e.deltaY),E.children().eq(P).length&&E.children().eq(P).trigger("mousedown"),!1):C.datepicker&&!C.timepicker?(J.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),a.val&&a.val(Y.str()),j.trigger("changedatetime.xdsoft"),!1):void 0:!0}),j.on("changedatetime.xdsoft",function(t){if(C.onChangeDateTime&&e.isFunction(C.onChangeDateTime)){var a=j.data("input");C.onChangeDateTime.call(j,Y.currentTime,a,t),delete C.value,a.trigger("change")}}).on("generate.xdsoft",function(){C.onGenerate&&e.isFunction(C.onGenerate)&&C.onGenerate.call(j,Y.currentTime,j.data("input")),V&&(j.trigger("afterOpen.xdsoft"),V=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),P=0,A=function(){var t,a=j.data("input").offset(),n=j.data("input")[0],r=a.top+n.offsetHeight-1,o=a.left,i="absolute";if(document.documentElement.clientWidth-a.left<J.parent().outerWidth(!0)){var s=J.parent().outerWidth(!0)-n.offsetWidth;o-=s}"rtl"==j.data("input").parent().css("direction")&&(o-=j.outerWidth()-j.data("input").outerWidth()),C.fixed?(r-=e(window).scrollTop(),o-=e(window).scrollLeft(),i="fixed"):(r+n.offsetHeight>e(window).height()+e(window).scrollTop()&&(r=a.top-n.offsetHeight+1),0>r&&(r=0),o+n.offsetWidth>e(window).width()&&(o=e(window).width()-n.offsetWidth)),t=j[0];do if(t=t.parentNode,"relative"===window.getComputedStyle(t).getPropertyValue("position")&&e(window).width()>=t.offsetWidth){o-=(e(window).width()-t.offsetWidth)/2;break}while("HTML"!==t.nodeName);j.css({left:o,top:r,position:i})},j.on("open.xdsoft",function(t){var a=!0;C.onShow&&e.isFunction(C.onShow)&&(a=C.onShow.call(j,Y.currentTime,j.data("input"),t)),a!==!1&&(j.show(),A(),e(window).off("resize.xdsoft",A).on("resize.xdsoft",A),C.closeOnWithoutClick&&e([document.body,window]).on("touchstart mousedown.xdsoft",function n(){j.trigger("close.xdsoft"),e([document.body,window]).off("touchstart mousedown.xdsoft",n)}))}).on("close.xdsoft",function(t){var a=!0;z.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),C.onClose&&e.isFunction(C.onClose)&&(a=C.onClose.call(j,Y.currentTime,j.data("input"),t)),a===!1||C.opened||C.inline||j.hide(),t.stopPropagation()}).on("toggle.xdsoft",function(){j.trigger(j.is(":visible")?"close.xdsoft":"open.xdsoft")}).data("input",a),U=0,q=0,j.data("xdsoft_datetime",Y),j.setOptions(C),Y.setCurrentTime(i()),a.data("xdsoft_datetimepicker",j).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){a.is(":disabled")||a.data("xdsoft_datetimepicker").is(":visible")&&C.closeOnInputClick||(clearTimeout(U),U=setTimeout(function(){a.is(":disabled")||(V=!0,Y.setCurrentTime(i()),j.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var a,n=(this.value,t.which);return-1!==[p].indexOf(n)&&C.enterLikeTab?(a=e("input:visible,textarea:visible,button:visible,a:visible"),j.trigger("close.xdsoft"),a.eq(a.index(this)+1).focus(),!1):-1!==[T].indexOf(n)?(j.trigger("close.xdsoft"),!0):void 0})},d=function(t){var a=t.data("xdsoft_datetimepicker");a&&(a.data("xdsoft_datetime",null),a.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===m&&(F=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===m&&(F=!1)}),this.each(function(){var t,a=e(this).data("xdsoft_datetimepicker");if(a){if("string"===e.type(r))switch(r){case"show":e(this).select().focus(),a.trigger("open.xdsoft");break;case"hide":a.trigger("close.xdsoft");break;case"toggle":a.trigger("toggle.xdsoft");break;case"destroy":d(e(this));break;case"reset":this.value=this.defaultValue,this.value&&a.data("xdsoft_datetime").isValidDate(n.parseDate(this.value,C.format))||a.data("changed",!1),a.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":t=a.data("input"),t.trigger("blur.xdsoft");break;default:a[r]&&e.isFunction(a[r])&&(u=a[r](i))}else a.setOptions(r);return 0}"string"!==e.type(r)&&(!C.lazyInit||C.open||C.inline?s(e(this)):A(e(this)))}),u},e.fn.datetimepicker.defaults=a}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var i=t||window.event,s=d.call(arguments,1),u=0,f=0,c=0,h=0,m=0,g=0;if(t=e.event.fix(i),t.type="mousewheel","detail"in i&&(c=-1*i.detail),"wheelDelta"in i&&(c=i.wheelDelta),"wheelDeltaY"in i&&(c=i.wheelDeltaY),"wheelDeltaX"in i&&(f=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(f=-1*c,c=0),u=0===c?f:c,"deltaY"in i&&(c=-1*i.deltaY,u=c),"deltaX"in i&&(f=i.deltaX,0===c&&(u=-1*f)),0!==c||0!==f){if(1===i.deltaMode){var p=e.data(this,"mousewheel-line-height");u*=p,c*=p,f*=p}else if(2===i.deltaMode){var y=e.data(this,"mousewheel-page-height");u*=y,c*=y,f*=y}if(h=Math.max(Math.abs(c),Math.abs(f)),(!o||o>h)&&(o=h,n(i,h)&&(o/=40)),n(i,h)&&(u/=40,f/=40,c/=40),u=Math[u>=1?"floor":"ceil"](u/o),f=Math[f>=1?"floor":"ceil"](f/o),c=Math[c>=1?"floor":"ceil"](c/o),l.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,g=t.clientY-v.top}return t.deltaX=f,t.deltaY=c,t.deltaFactor=o,t.offsetX=m,t.offsetY=g,t.deltaMode=0,s.unshift(t,u,f,c),r&&clearTimeout(r),r=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function a(){o=null}function n(e,t){return l.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var r,o,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],d=Array.prototype.slice;if(e.event.fixHooks)for(var u=i.length;u;)e.event.fixHooks[i[--u]]=e.event.mouseHooks;var l=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=s.length;a;)this.addEventListener(s[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",l.getLineHeight(this)),e.data(this,"mousewheel-page-height",l.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=s.length;a;)this.removeEventListener(s[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),n=a["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var fwDateFormatter;
2
+ ! function () {
3
+ "use strict";
4
+ var e, t, a, r, n, o, i;
5
+ o = 864e5, i = 3600, e = function ( e, t ) {
6
+ return "string" == typeof e && "string" == typeof t && e.toLowerCase() === t.toLowerCase()
7
+ }, t = function ( e, a, r ) {
8
+ var n = r || "0", o = e.toString();
9
+ return o.length < a ? t( n + o, a ) : o
10
+ }, a = function ( e ) {
11
+ var t, r;
12
+ for ( e = e || {}, t = 1; t < arguments.length; t ++ ) {
13
+ if ( r = arguments[t] ) {
14
+ for ( var n in r ) {
15
+ r.hasOwnProperty( n ) && (
16
+ "object" == typeof r[n] ? a( e[n], r[n] ) : e[n] = r[n]
17
+ );
18
+ }
19
+ }
20
+ }
21
+ return e
22
+ }, r = function ( e, t ) {
23
+ for ( var a = 0; a < t.length; a ++ ) {
24
+ if ( t[a].toLowerCase() === e.toLowerCase() ) {
25
+ return a;
26
+ }
27
+ }
28
+ return - 1
29
+ }, n = {
30
+ dateSettings: {
31
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
32
+ daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
33
+ months: [
34
+ "January",
35
+ "February",
36
+ "March",
37
+ "April",
38
+ "May",
39
+ "June",
40
+ "July",
41
+ "August",
42
+ "September",
43
+ "October",
44
+ "November",
45
+ "December"
46
+ ],
47
+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
48
+ meridiem: ["AM", "PM"],
49
+ ordinal: function ( e ) {
50
+ var t = e % 10, a = {1: "st", 2: "nd", 3: "rd"};
51
+ return 1 !== Math.floor( e % 100 / 10 ) && a[t] ? a[t] : "th"
52
+ }
53
+ },
54
+ separators: /[ \-+\/\.T:@]/g,
55
+ validParts: /[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,
56
+ intParts: /[djwNzmnyYhHgGis]/g,
57
+ tzParts: /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
58
+ tzClip: /[^-+\dA-Z]/g
59
+ }, (
60
+ fwDateFormatter = function ( e ) {
61
+ var t = this, r = a( n, e );
62
+ t.dateSettings = r.dateSettings, t.separators = r.separators, t.validParts = r.validParts, t.intParts = r.intParts, t.tzParts = r.tzParts, t.tzClip = r.tzClip
63
+ }
64
+ ).prototype = {
65
+ constructor: fwDateFormatter, getMonth: function ( e ) {
66
+ var t, a = this;
67
+ return 0 === (
68
+ t = r( e, a.dateSettings.monthsShort ) + 1
69
+ ) && (
70
+ t = r( e, a.dateSettings.months ) + 1
71
+ ), t
72
+ }, parseDate: function ( t, a ) {
73
+ var r, n, o, i, s, u, d, l, f, c, m = this, h = ! 1, g = ! 1, p = m.dateSettings,
74
+ D = {date: null, year: null, month: null, day: null, hour: 0, min: 0, sec: 0};
75
+ if ( ! t ) {
76
+ return null;
77
+ }
78
+ if ( t instanceof Date ) {
79
+ return t;
80
+ }
81
+ if ( "U" === a ) {
82
+ return (
83
+ o = parseInt( t )
84
+ ) ? new Date( 1e3 * o ) : t;
85
+ }
86
+ switch ( typeof t ) {
87
+ case"number":
88
+ return new Date( t );
89
+ case"string":
90
+ break;
91
+ default:
92
+ return null
93
+ }
94
+ if ( ! (
95
+ r = a.match( m.validParts )
96
+ ) || 0 === r.length ) {
97
+ throw new Error( "Invalid date format definition." );
98
+ }
99
+ for ( n = t.replace( m.separators, "\0" ).split( "\0" ), o = 0; o < n.length; o ++ ) {
100
+ switch ( i = n[o], s = parseInt( i ), r[o] ) {
101
+ case"y":
102
+ case"Y":
103
+ if ( ! s ) {
104
+ return null;
105
+ }
106
+ f = i.length, D.year = 2 === f ? parseInt( (
107
+ 70 > s ? "20" : "19"
108
+ ) + i ) : s, h = ! 0;
109
+ break;
110
+ case"m":
111
+ case"n":
112
+ case"M":
113
+ case"F":
114
+ if ( isNaN( s ) ) {
115
+ if ( ! (
116
+ (
117
+ u = m.getMonth( i )
118
+ ) > 0
119
+ ) ) {
120
+ return null;
121
+ }
122
+ D.month = u
123
+ } else {
124
+ if ( ! (
125
+ s >= 1 && 12 >= s
126
+ ) ) {
127
+ return null;
128
+ }
129
+ D.month = s
130
+ }
131
+ h = ! 0;
132
+ break;
133
+ case"d":
134
+ case"j":
135
+ if ( ! (
136
+ s >= 1 && 31 >= s
137
+ ) ) {
138
+ return null;
139
+ }
140
+ D.day = s, h = ! 0;
141
+ break;
142
+ case"g":
143
+ case"h":
144
+ if ( d = r.indexOf( "a" ) > - 1 ? r.indexOf( "a" ) : r.indexOf( "A" ) > - 1 ? r.indexOf( "A" ) : - 1, c = n[d], d > - 1 ) {
145
+ l = e( c, p.meridiem[0] ) ? 0 : e( c, p.meridiem[1] ) ? 12 : - 1, s >= 1 && 12 >= s && l > - 1 ? D.hour = s + l - 1 : s >= 0 && 23 >= s && (
146
+ D.hour = s
147
+ );
148
+ } else {
149
+ if ( ! (
150
+ s >= 0 && 23 >= s
151
+ ) ) {
152
+ return null;
153
+ }
154
+ D.hour = s
155
+ }
156
+ g = ! 0;
157
+ break;
158
+ case"G":
159
+ case"H":
160
+ if ( ! (
161
+ s >= 0 && 23 >= s
162
+ ) ) {
163
+ return null;
164
+ }
165
+ D.hour = s, g = ! 0;
166
+ break;
167
+ case"i":
168
+ if ( ! (
169
+ s >= 0 && 59 >= s
170
+ ) ) {
171
+ return null;
172
+ }
173
+ D.min = s, g = ! 0;
174
+ break;
175
+ case"s":
176
+ if ( ! (
177
+ s >= 0 && 59 >= s
178
+ ) ) {
179
+ return null;
180
+ }
181
+ D.sec = s, g = ! 0
182
+ }
183
+ }
184
+ if ( ! 0 === h && D.year && D.month && D.day ) {
185
+ D.date = new Date( D.year, D.month - 1, D.day, D.hour, D.min, D.sec, 0 );
186
+ } else {
187
+ if ( ! 0 !== g ) {
188
+ return null;
189
+ }
190
+ D.date = new Date( 0, 0, 0, D.hour, D.min, D.sec, 0 )
191
+ }
192
+ return D.date
193
+ }, guessDate: function ( e, t ) {
194
+ if ( "string" != typeof e ) {
195
+ return e;
196
+ }
197
+ var a, r, n, o, i, s, u = this, d = e.replace( u.separators, "\0" ).split( "\0" ), l = /^[djmn]/g,
198
+ f = t.match( u.validParts ), c = new Date, m = 0;
199
+ if ( ! l.test( f[0] ) ) {
200
+ return e;
201
+ }
202
+ for ( n = 0; n < d.length; n ++ ) {
203
+ if ( m = 2, i = d[n], s = parseInt( i.substr( 0, 2 ) ), isNaN( s ) ) {
204
+ return null;
205
+ }
206
+ switch ( n ) {
207
+ case 0:
208
+ "m" === f[0] || "n" === f[0] ? c.setMonth( s - 1 ) : c.setDate( s );
209
+ break;
210
+ case 1:
211
+ "m" === f[0] || "n" === f[0] ? c.setDate( s ) : c.setMonth( s - 1 );
212
+ break;
213
+ case 2:
214
+ if ( r = c.getFullYear(), a = i.length, m = 4 > a ? a : 4, ! (
215
+ r = parseInt( 4 > a ? r.toString().substr( 0, 4 - a ) + i : i.substr( 0, 4 ) )
216
+ ) ) {
217
+ return null;
218
+ }
219
+ c.setFullYear( r );
220
+ break;
221
+ case 3:
222
+ c.setHours( s );
223
+ break;
224
+ case 4:
225
+ c.setMinutes( s );
226
+ break;
227
+ case 5:
228
+ c.setSeconds( s )
229
+ }
230
+ (
231
+ o = i.substr( m )
232
+ ).length > 0 && d.splice( n + 1, 0, o )
233
+ }
234
+ return c
235
+ }, parseFormat: function ( e, a ) {
236
+ var r, n = this, s = n.dateSettings, u = /\\?(.?)/gi, d = function ( e, t ) {
237
+ return r[e] ? r[e]() : t
238
+ };
239
+ return r = {
240
+ d: function () {
241
+ return t( r.j(), 2 )
242
+ }, D: function () {
243
+ return s.daysShort[r.w()]
244
+ }, j: function () {
245
+ return a.getDate()
246
+ }, l: function () {
247
+ return s.days[r.w()]
248
+ }, N: function () {
249
+ return r.w() || 7
250
+ }, w: function () {
251
+ return a.getDay()
252
+ }, z: function () {
253
+ var e = new Date( r.Y(), r.n() - 1, r.j() ), t = new Date( r.Y(), 0, 1 );
254
+ return Math.round( (
255
+ e - t
256
+ ) / o )
257
+ }, W: function () {
258
+ var e = new Date( r.Y(), r.n() - 1, r.j() - r.N() + 3 ), a = new Date( e.getFullYear(), 0, 4 );
259
+ return t( 1 + Math.round( (
260
+ e - a
261
+ ) / o / 7 ), 2 )
262
+ }, F: function () {
263
+ return s.months[a.getMonth()]
264
+ }, m: function () {
265
+ return t( r.n(), 2 )
266
+ }, M: function () {
267
+ return s.monthsShort[a.getMonth()]
268
+ }, n: function () {
269
+ return a.getMonth() + 1
270
+ }, t: function () {
271
+ return new Date( r.Y(), r.n(), 0 ).getDate()
272
+ }, L: function () {
273
+ var e = r.Y();
274
+ return e % 4 == 0 && e % 100 != 0 || e % 400 == 0 ? 1 : 0
275
+ }, o: function () {
276
+ var e = r.n(), t = r.W();
277
+ return r.Y() + (
278
+ 12 === e && 9 > t ? 1 : 1 === e && t > 9 ? - 1 : 0
279
+ )
280
+ }, Y: function () {
281
+ return a.getFullYear()
282
+ }, y: function () {
283
+ return r.Y().toString().slice( - 2 )
284
+ }, a: function () {
285
+ return r.A().toLowerCase()
286
+ }, A: function () {
287
+ var e = r.G() < 12 ? 0 : 1;
288
+ return s.meridiem[e]
289
+ }, B: function () {
290
+ var e = a.getUTCHours() * i, r = 60 * a.getUTCMinutes(), n = a.getUTCSeconds();
291
+ return t( Math.floor( (
292
+ e + r + n + i
293
+ ) / 86.4 ) % 1e3, 3 )
294
+ }, g: function () {
295
+ return r.G() % 12 || 12
296
+ }, G: function () {
297
+ return a.getHours()
298
+ }, h: function () {
299
+ return t( r.g(), 2 )
300
+ }, H: function () {
301
+ return t( r.G(), 2 )
302
+ }, i: function () {
303
+ return t( a.getMinutes(), 2 )
304
+ }, s: function () {
305
+ return t( a.getSeconds(), 2 )
306
+ }, u: function () {
307
+ return t( 1e3 * a.getMilliseconds(), 6 )
308
+ }, e: function () {
309
+ return /\((.*)\)/.exec( String( a ) )[1] || "Coordinated Universal Time"
310
+ }, I: function () {
311
+ return new Date( r.Y(), 0 ) - Date.UTC( r.Y(), 0 ) != new Date( r.Y(), 6 ) - Date.UTC( r.Y(), 6 ) ? 1 : 0
312
+ }, O: function () {
313
+ var e = a.getTimezoneOffset(), r = Math.abs( e );
314
+ return (
315
+ e > 0 ? "-" : "+"
316
+ ) + t( 100 * Math.floor( r / 60 ) + r % 60, 4 )
317
+ }, P: function () {
318
+ var e = r.O();
319
+ return e.substr( 0, 3 ) + ":" + e.substr( 3, 2 )
320
+ }, T: function () {
321
+ return (
322
+ String( a ).match( n.tzParts ) || [""]
323
+ ).pop().replace( n.tzClip, "" ) || "UTC"
324
+ }, Z: function () {
325
+ return 60 * - a.getTimezoneOffset()
326
+ }, c: function () {
327
+ return "Y-m-d\\TH:i:sP".replace( u, d )
328
+ }, r: function () {
329
+ return "D, d M Y H:i:s O".replace( u, d )
330
+ }, U: function () {
331
+ return a.getTime() / 1e3 || 0
332
+ }
333
+ }, d( e, e )
334
+ }, formatDate: function ( e, t ) {
335
+ var a, r, n, o, i, s = this, u = "";
336
+ if ( "string" == typeof e && ! (
337
+ e = s.parseDate( e, t )
338
+ ) ) {
339
+ return null;
340
+ }
341
+ if ( e instanceof Date ) {
342
+ for ( n = t.length, a = 0; n > a; a ++ ) {
343
+ "S" !== (
344
+ i = t.charAt( a )
345
+ ) && "\\" !== i && (
346
+ a > 0 && "\\" === t.charAt( a - 1 ) ? u += i : (
347
+ o = s.parseFormat( i, e ), a !== n - 1 && s.intParts.test( i ) && "S" === t.charAt( a + 1 ) && (
348
+ r = parseInt( o ) || 0, o += s.dateSettings.ordinal( r )
349
+ ), u += o
350
+ )
351
+ );
352
+ }
353
+ return u
354
+ }
355
+ return ""
356
+ }
357
+ }
358
+ }();
359
+ var datetimepickerFactory = function ( e ) {
360
+ "use strict";
361
+
362
+ function t( e, t, a ) {
363
+ this.date = e, this.desc = t, this.style = a
364
+ }
365
+
366
+ var a = {
367
+ i18n: {
368
+ ar: {
369
+ months: [
370
+ "كانون الثاني",
371
+ "شباط",
372
+ "آذار",
373
+ "نيسان",
374
+ "مايو",
375
+ "حزيران",
376
+ "تموز",
377
+ "آب",
378
+ "أيلول",
379
+ "تشرين الأول",
380
+ "تشرين الثاني",
381
+ "كانون الأول"
382
+ ],
383
+ dayOfWeekShort: ["ن", "ث", "ع", "خ", "ج", "س", "ح"],
384
+ dayOfWeek: ["الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت", "الأحد"]
385
+ },
386
+ ro: {
387
+ months: [
388
+ "Ianuarie",
389
+ "Februarie",
390
+ "Martie",
391
+ "Aprilie",
392
+ "Mai",
393
+ "Iunie",
394
+ "Iulie",
395
+ "August",
396
+ "Septembrie",
397
+ "Octombrie",
398
+ "Noiembrie",
399
+ "Decembrie"
400
+ ],
401
+ dayOfWeekShort: ["Du", "Lu", "Ma", "Mi", "Jo", "Vi", "Sâ"],
402
+ dayOfWeek: ["Duminică", "Luni", "Marţi", "Miercuri", "Joi", "Vineri", "Sâmbătă"]
403
+ },
404
+ id: {
405
+ months: [
406
+ "Januari",
407
+ "Februari",
408
+ "Maret",
409
+ "April",
410
+ "Mei",
411
+ "Juni",
412
+ "Juli",
413
+ "Agustus",
414
+ "September",
415
+ "Oktober",
416
+ "November",
417
+ "Desember"
418
+ ],
419
+ dayOfWeekShort: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
420
+ dayOfWeek: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"]
421
+ },
422
+ is: {
423
+ months: [
424
+ "Janúar",
425
+ "Febrúar",
426
+ "Mars",
427
+ "Apríl",
428
+ "Maí",
429
+ "Júní",
430
+ "Júlí",
431
+ "Ágúst",
432
+ "September",
433
+ "Október",
434
+ "Nóvember",
435
+ "Desember"
436
+ ],
437
+ dayOfWeekShort: ["Sun", "Mán", "Þrið", "Mið", "Fim", "Fös", "Lau"],
438
+ dayOfWeek: [
439
+ "Sunnudagur",
440
+ "Mánudagur",
441
+ "Þriðjudagur",
442
+ "Miðvikudagur",
443
+ "Fimmtudagur",
444
+ "Föstudagur",
445
+ "Laugardagur"
446
+ ]
447
+ },
448
+ bg: {
449
+ months: [
450
+ "Януари",
451
+ "Февруари",
452
+ "Март",
453
+ "Април",
454
+ "Май",
455
+ "Юни",
456
+ "Юли",
457
+ "Август",
458
+ "Септември",
459
+ "Октомври",
460
+ "Ноември",
461
+ "Декември"
462
+ ],
463
+ dayOfWeekShort: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
464
+ dayOfWeek: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"]
465
+ },
466
+ fa: {
467
+ months: [
468
+ "فروردین",
469
+ "اردیبهشت",
470
+ "خرداد",
471
+ "تیر",
472
+ "مرداد",
473
+ "شهریور",
474
+ "مهر",
475
+ "آبان",
476
+ "آذر",
477
+ "دی",
478
+ "بهمن",
479
+ "اسفند"
480
+ ],
481
+ dayOfWeekShort: ["یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"],
482
+ dayOfWeek: ["یک‌شنبه", "دوشنبه", "سه‌شنبه", "چهارشنبه", "پنج‌شنبه", "جمعه", "شنبه", "یک‌شنبه"]
483
+ },
484
+ ru: {
485
+ months: [
486
+ "Январь",
487
+ "Февраль",
488
+ "Март",
489
+ "Апрель",
490
+ "Май",
491
+ "Июнь",
492
+ "Июль",
493
+ "Август",
494
+ "Сентябрь",
495
+ "Октябрь",
496
+ "Ноябрь",
497
+ "Декабрь"
498
+ ],
499
+ dayOfWeekShort: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
500
+ dayOfWeek: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"]
501
+ },
502
+ uk: {
503
+ months: [
504
+ "Січень",
505
+ "Лютий",
506
+ "Березень",
507
+ "Квітень",
508
+ "Травень",
509
+ "Червень",
510
+ "Липень",
511
+ "Серпень",
512
+ "Вересень",
513
+ "Жовтень",
514
+ "Листопад",
515
+ "Грудень"
516
+ ],
517
+ dayOfWeekShort: ["Ндл", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Сбт"],
518
+ dayOfWeek: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"]
519
+ },
520
+ en: {
521
+ months: [
522
+ "January",
523
+ "February",
524
+ "March",
525
+ "April",
526
+ "May",
527
+ "June",
528
+ "July",
529
+ "August",
530
+ "September",
531
+ "October",
532
+ "November",
533
+ "December"
534
+ ],
535
+ dayOfWeekShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
536
+ dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
537
+ },
538
+ el: {
539
+ months: [
540
+ "Ιανουάριος",
541
+ "Φεβρουάριος",
542
+ "Μάρτιος",
543
+ "Απρίλιος",
544
+ "Μάιος",
545
+ "Ιούνιος",
546
+ "Ιούλιος",
547
+ "Αύγουστος",
548
+ "Σεπτέμβριος",
549
+ "Οκτώβριος",
550
+ "Νοέμβριος",
551
+ "Δεκέμβριος"
552
+ ],
553
+ dayOfWeekShort: ["Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"],
554
+ dayOfWeek: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"]
555
+ },
556
+ de: {
557
+ months: [
558
+ "Januar",
559
+ "Februar",
560
+ "März",
561
+ "April",
562
+ "Mai",
563
+ "Juni",
564
+ "Juli",
565
+ "August",
566
+ "September",
567
+ "Oktober",
568
+ "November",
569
+ "Dezember"
570
+ ],
571
+ dayOfWeekShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
572
+ dayOfWeek: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
573
+ },
574
+ nl: {
575
+ months: [
576
+ "januari",
577
+ "februari",
578
+ "maart",
579
+ "april",
580
+ "mei",
581
+ "juni",
582
+ "juli",
583
+ "augustus",
584
+ "september",
585
+ "oktober",
586
+ "november",
587
+ "december"
588
+ ],
589
+ dayOfWeekShort: ["zo", "ma", "di", "wo", "do", "vr", "za"],
590
+ dayOfWeek: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"]
591
+ },
592
+ tr: {
593
+ months: [
594
+ "Ocak",
595
+ "Şubat",
596
+ "Mart",
597
+ "Nisan",
598
+ "Mayıs",
599
+ "Haziran",
600
+ "Temmuz",
601
+ "Ağustos",
602
+ "Eylül",
603
+ "Ekim",
604
+ "Kasım",
605
+ "Aralık"
606
+ ],
607
+ dayOfWeekShort: ["Paz", "Pts", "Sal", "Çar", "Per", "Cum", "Cts"],
608
+ dayOfWeek: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"]
609
+ },
610
+ fr: {
611
+ months: [
612
+ "Janvier",
613
+ "Février",
614
+ "Mars",
615
+ "Avril",
616
+ "Mai",
617
+ "Juin",
618
+ "Juillet",
619
+ "Août",
620
+ "Septembre",
621
+ "Octobre",
622
+ "Novembre",
623
+ "Décembre"
624
+ ],
625
+ dayOfWeekShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
626
+ dayOfWeek: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"]
627
+ },
628
+ es: {
629
+ months: [
630
+ "Enero",
631
+ "Febrero",
632
+ "Marzo",
633
+ "Abril",
634
+ "Mayo",
635
+ "Junio",
636
+ "Julio",
637
+ "Agosto",
638
+ "Septiembre",
639
+ "Octubre",
640
+ "Noviembre",
641
+ "Diciembre"
642
+ ],
643
+ dayOfWeekShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
644
+ dayOfWeek: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"]
645
+ },
646
+ th: {
647
+ months: [
648
+ "มกราคม",
649
+ "กุมภาพันธ์",
650
+ "มีนาคม",
651
+ "เมษายน",
652
+ "พฤษภาคม",
653
+ "มิถุนายน",
654
+ "กรกฎาคม",
655
+ "สิงหาคม",
656
+ "กันยายน",
657
+ "ตุลาคม",
658
+ "พฤศจิกายน",
659
+ "ธันวาคม"
660
+ ],
661
+ dayOfWeekShort: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."],
662
+ dayOfWeek: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์", "อาทิตย์"]
663
+ },
664
+ pl: {
665
+ months: [
666
+ "styczeń",
667
+ "luty",
668
+ "marzec",
669
+ "kwiecień",
670
+ "maj",
671
+ "czerwiec",
672
+ "lipiec",
673
+ "sierpień",
674
+ "wrzesień",
675
+ "październik",
676
+ "listopad",
677
+ "grudzień"
678
+ ],
679
+ dayOfWeekShort: ["nd", "pn", "wt", "śr", "cz", "pt", "sb"],
680
+ dayOfWeek: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"]
681
+ },
682
+ pt: {
683
+ months: [
684
+ "Janeiro",
685
+ "Fevereiro",
686
+ "Março",
687
+ "Abril",
688
+ "Maio",
689
+ "Junho",
690
+ "Julho",
691
+ "Agosto",
692
+ "Setembro",
693
+ "Outubro",
694
+ "Novembro",
695
+ "Dezembro"
696
+ ],
697
+ dayOfWeekShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"],
698
+ dayOfWeek: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]
699
+ },
700
+ ch: {
701
+ months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
702
+ dayOfWeekShort: ["日", "一", "二", "三", "四", "五", "六"]
703
+ },
704
+ se: {
705
+ months: [
706
+ "Januari",
707
+ "Februari",
708
+ "Mars",
709
+ "April",
710
+ "Maj",
711
+ "Juni",
712
+ "Juli",
713
+ "Augusti",
714
+ "September",
715
+ "Oktober",
716
+ "November",
717
+ "December"
718
+ ], dayOfWeekShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"]
719
+ },
720
+ km: {
721
+ months: [
722
+ "មករា​",
723
+ "កុម្ភៈ",
724
+ "មិនា​",
725
+ "មេសា​",
726
+ "ឧសភា​",
727
+ "មិថុនា​",
728
+ "កក្កដា​",
729
+ "សីហា​",
730
+ "កញ្ញា​",
731
+ "តុលា​",
732
+ "វិច្ឆិកា",
733
+ "ធ្នូ​"
734
+ ],
735
+ dayOfWeekShort: ["អាទិ​", "ច័ន្ទ​", "អង្គារ​", "ពុធ​", "ព្រហ​​", "សុក្រ​", "សៅរ៍"],
736
+ dayOfWeek: ["អាទិត្យ​", "ច័ន្ទ​", "អង្គារ​", "ពុធ​", "ព្រហស្បតិ៍​", "សុក្រ​", "សៅរ៍"]
737
+ },
738
+ kr: {
739
+ months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
740
+ dayOfWeekShort: ["일", "월", "화", "수", "목", "금", "토"],
741
+ dayOfWeek: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
742
+ },
743
+ it: {
744
+ months: [
745
+ "Gennaio",
746
+ "Febbraio",
747
+ "Marzo",
748
+ "Aprile",
749
+ "Maggio",
750
+ "Giugno",
751
+ "Luglio",
752
+ "Agosto",
753
+ "Settembre",
754
+ "Ottobre",
755
+ "Novembre",
756
+ "Dicembre"
757
+ ],
758
+ dayOfWeekShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
759
+ dayOfWeek: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"]
760
+ },
761
+ da: {
762
+ months: [
763
+ "Januar",
764
+ "Februar",
765
+ "Marts",
766
+ "April",
767
+ "Maj",
768
+ "Juni",
769
+ "Juli",
770
+ "August",
771
+ "September",
772
+ "Oktober",
773
+ "November",
774
+ "December"
775
+ ],
776
+ dayOfWeekShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
777
+ dayOfWeek: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"]
778
+ },
779
+ no: {
780
+ months: [
781
+ "Januar",
782
+ "Februar",
783
+ "Mars",
784
+ "April",
785
+ "Mai",
786
+ "Juni",
787
+ "Juli",
788
+ "August",
789
+ "September",
790
+ "Oktober",
791
+ "November",
792
+ "Desember"
793
+ ],
794
+ dayOfWeekShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
795
+ dayOfWeek: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"]
796
+ },
797
+ ja: {
798
+ months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
799
+ dayOfWeekShort: ["日", "月", "火", "水", "木", "金", "土"],
800
+ dayOfWeek: ["日曜", "月曜", "火曜", "水曜", "木曜", "金曜", "土曜"]
801
+ },
802
+ vi: {
803
+ months: [
804
+ "Tháng 1",
805
+ "Tháng 2",
806
+ "Tháng 3",
807
+ "Tháng 4",
808
+ "Tháng 5",
809
+ "Tháng 6",
810
+ "Tháng 7",
811
+ "Tháng 8",
812
+ "Tháng 9",
813
+ "Tháng 10",
814
+ "Tháng 11",
815
+ "Tháng 12"
816
+ ],
817
+ dayOfWeekShort: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
818
+ dayOfWeek: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
819
+ },
820
+ sl: {
821
+ months: [
822
+ "Januar",
823
+ "Februar",
824
+ "Marec",
825
+ "April",
826
+ "Maj",
827
+ "Junij",
828
+ "Julij",
829
+ "Avgust",
830
+ "September",
831
+ "Oktober",
832
+ "November",
833
+ "December"
834
+ ],
835
+ dayOfWeekShort: ["Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"],
836
+ dayOfWeek: ["Nedelja", "Ponedeljek", "Torek", "Sreda", "Četrtek", "Petek", "Sobota"]
837
+ },
838
+ cs: {
839
+ months: [
840
+ "Leden",
841
+ "Únor",
842
+ "Březen",
843
+ "Duben",
844
+ "Květen",
845
+ "Červen",
846
+ "Červenec",
847
+ "Srpen",
848
+ "Září",
849
+ "Říjen",
850
+ "Listopad",
851
+ "Prosinec"
852
+ ], dayOfWeekShort: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"]
853
+ },
854
+ hu: {
855
+ months: [
856
+ "Január",
857
+ "Február",
858
+ "Március",
859
+ "Április",
860
+ "Május",
861
+ "Június",
862
+ "Július",
863
+ "Augusztus",
864
+ "Szeptember",
865
+ "Október",
866
+ "November",
867
+ "December"
868
+ ],
869
+ dayOfWeekShort: ["Va", "Hé", "Ke", "Sze", "Cs", "Pé", "Szo"],
870
+ dayOfWeek: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"]
871
+ },
872
+ az: {
873
+ months: [
874
+ "Yanvar",
875
+ "Fevral",
876
+ "Mart",
877
+ "Aprel",
878
+ "May",
879
+ "Iyun",
880
+ "Iyul",
881
+ "Avqust",
882
+ "Sentyabr",
883
+ "Oktyabr",
884
+ "Noyabr",
885
+ "Dekabr"
886
+ ],
887
+ dayOfWeekShort: ["B", "Be", "Ça", "Ç", "Ca", "C", "Ş"],
888
+ dayOfWeek: ["Bazar", "Bazar ertəsi", "Çərşənbə axşamı", "Çərşənbə", "Cümə axşamı", "Cümə", "Şənbə"]
889
+ },
890
+ bs: {
891
+ months: [
892
+ "Januar",
893
+ "Februar",
894
+ "Mart",
895
+ "April",
896
+ "Maj",
897
+ "Jun",
898
+ "Jul",
899
+ "Avgust",
900
+ "Septembar",
901
+ "Oktobar",
902
+ "Novembar",
903
+ "Decembar"
904
+ ],
905
+ dayOfWeekShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
906
+ dayOfWeek: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"]
907
+ },
908
+ ca: {
909
+ months: [
910
+ "Gener",
911
+ "Febrer",
912
+ "Març",
913
+ "Abril",
914
+ "Maig",
915
+ "Juny",
916
+ "Juliol",
917
+ "Agost",
918
+ "Setembre",
919
+ "Octubre",
920
+ "Novembre",
921
+ "Desembre"
922
+ ],
923
+ dayOfWeekShort: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
924
+ dayOfWeek: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"]
925
+ },
926
+ "en-GB": {
927
+ months: [
928
+ "January",
929
+ "February",
930
+ "March",
931
+ "April",
932
+ "May",
933
+ "June",
934
+ "July",
935
+ "August",
936
+ "September",
937
+ "October",
938
+ "November",
939
+ "December"
940
+ ],
941
+ dayOfWeekShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
942
+ dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
943
+ },
944
+ et: {
945
+ months: [
946
+ "Jaanuar",
947
+ "Veebruar",
948
+ "Märts",
949
+ "Aprill",
950
+ "Mai",
951
+ "Juuni",
952
+ "Juuli",
953
+ "August",
954
+ "September",
955
+ "Oktoober",
956
+ "November",
957
+ "Detsember"
958
+ ],
959
+ dayOfWeekShort: ["P", "E", "T", "K", "N", "R", "L"],
960
+ dayOfWeek: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev"]
961
+ },
962
+ eu: {
963
+ months: [
964
+ "Urtarrila",
965
+ "Otsaila",
966
+ "Martxoa",
967
+ "Apirila",
968
+ "Maiatza",
969
+ "Ekaina",
970
+ "Uztaila",
971
+ "Abuztua",
972
+ "Iraila",
973
+ "Urria",
974
+ "Azaroa",
975
+ "Abendua"
976
+ ],
977
+ dayOfWeekShort: ["Ig.", "Al.", "Ar.", "Az.", "Og.", "Or.", "La."],
978
+ dayOfWeek: ["Igandea", "Astelehena", "Asteartea", "Asteazkena", "Osteguna", "Ostirala", "Larunbata"]
979
+ },
980
+ fi: {
981
+ months: [
982
+ "Tammikuu",
983
+ "Helmikuu",
984
+ "Maaliskuu",
985
+ "Huhtikuu",
986
+ "Toukokuu",
987
+ "Kesäkuu",
988
+ "Heinäkuu",
989
+ "Elokuu",
990
+ "Syyskuu",
991
+ "Lokakuu",
992
+ "Marraskuu",
993
+ "Joulukuu"
994
+ ],
995
+ dayOfWeekShort: ["Su", "Ma", "Ti", "Ke", "To", "Pe", "La"],
996
+ dayOfWeek: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"]
997
+ },
998
+ gl: {
999
+ months: ["Xan", "Feb", "Maz", "Abr", "Mai", "Xun", "Xul", "Ago", "Set", "Out", "Nov", "Dec"],
1000
+ dayOfWeekShort: ["Dom", "Lun", "Mar", "Mer", "Xov", "Ven", "Sab"],
1001
+ dayOfWeek: ["Domingo", "Luns", "Martes", "Mércores", "Xoves", "Venres", "Sábado"]
1002
+ },
1003
+ hr: {
1004
+ months: [
1005
+ "Siječanj",
1006
+ "Veljača",
1007
+ "Ožujak",
1008
+ "Travanj",
1009
+ "Svibanj",
1010
+ "Lipanj",
1011
+ "Srpanj",
1012
+ "Kolovoz",
1013
+ "Rujan",
1014
+ "Listopad",
1015
+ "Studeni",
1016
+ "Prosinac"
1017
+ ],
1018
+ dayOfWeekShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
1019
+ dayOfWeek: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"]
1020
+ },
1021
+ ko: {
1022
+ months: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"],
1023
+ dayOfWeekShort: ["일", "월", "화", "수", "목", "금", "토"],
1024
+ dayOfWeek: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
1025
+ },
1026
+ lt: {
1027
+ months: [
1028
+ "Sausio",
1029
+ "Vasario",
1030
+ "Kovo",
1031
+ "Balandžio",
1032
+ "Gegužės",
1033
+ "Birželio",
1034
+ "Liepos",
1035
+ "Rugpjūčio",
1036
+ "Rugsėjo",
1037
+ "Spalio",
1038
+ "Lapkričio",
1039
+ "Gruodžio"
1040
+ ],
1041
+ dayOfWeekShort: ["Sek", "Pir", "Ant", "Tre", "Ket", "Pen", "Šeš"],
1042
+ dayOfWeek: [
1043
+ "Sekmadienis",
1044
+ "Pirmadienis",
1045
+ "Antradienis",
1046
+ "Trečiadienis",
1047
+ "Ketvirtadienis",
1048
+ "Penktadienis",
1049
+ "Šeštadienis"
1050
+ ]
1051
+ },
1052
+ lv: {
1053
+ months: [
1054
+ "Janvāris",
1055
+ "Februāris",
1056
+ "Marts",
1057
+ "Aprīlis ",
1058
+ "Maijs",
1059
+ "Jūnijs",
1060
+ "Jūlijs",
1061
+ "Augusts",
1062
+ "Septembris",
1063
+ "Oktobris",
1064
+ "Novembris",
1065
+ "Decembris"
1066
+ ],
1067
+ dayOfWeekShort: ["Sv", "Pr", "Ot", "Tr", "Ct", "Pk", "St"],
1068
+ dayOfWeek: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena"]
1069
+ },
1070
+ mk: {
1071
+ months: [
1072
+ "јануари",
1073
+ "февруари",
1074
+ "март",
1075
+ "април",
1076
+ "мај",
1077
+ "јуни",
1078
+ "јули",
1079
+ "август",
1080
+ "септември",
1081
+ "октомври",
1082
+ "ноември",
1083
+ "декември"
1084
+ ],
1085
+ dayOfWeekShort: ["нед", "пон", "вто", "сре", "чет", "пет", "саб"],
1086
+ dayOfWeek: ["Недела", "Понеделник", "Вторник", "Среда", "Четврток", "Петок", "Сабота"]
1087
+ },
1088
+ mn: {
1089
+ months: [
1090
+ "1-р сар",
1091
+ "2-р сар",
1092
+ "3-р сар",
1093
+ "4-р сар",
1094
+ "5-р сар",
1095
+ "6-р сар",
1096
+ "7-р сар",
1097
+ "8-р сар",
1098
+ "9-р сар",
1099
+ "10-р сар",
1100
+ "11-р сар",
1101
+ "12-р сар"
1102
+ ],
1103
+ dayOfWeekShort: ["Дав", "Мяг", "Лха", "Пүр", "Бсн", "Бям", "Ням"],
1104
+ dayOfWeek: ["Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба", "Ням"]
1105
+ },
1106
+ "pt-BR": {
1107
+ months: [
1108
+ "Janeiro",
1109
+ "Fevereiro",
1110
+ "Março",
1111
+ "Abril",
1112
+ "Maio",
1113
+ "Junho",
1114
+ "Julho",
1115
+ "Agosto",
1116
+ "Setembro",
1117
+ "Outubro",
1118
+ "Novembro",
1119
+ "Dezembro"
1120
+ ],
1121
+ dayOfWeekShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
1122
+ dayOfWeek: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"]
1123
+ },
1124
+ sk: {
1125
+ months: [
1126
+ "Január",
1127
+ "Február",
1128
+ "Marec",
1129
+ "Apríl",
1130
+ "Máj",
1131
+ "Jún",
1132
+ "Júl",
1133
+ "August",
1134
+ "September",
1135
+ "Október",
1136
+ "November",
1137
+ "December"
1138
+ ],
1139
+ dayOfWeekShort: ["Ne", "Po", "Ut", "St", "Št", "Pi", "So"],
1140
+ dayOfWeek: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"]
1141
+ },
1142
+ sq: {
1143
+ months: [
1144
+ "Janar",
1145
+ "Shkurt",
1146
+ "Mars",
1147
+ "Prill",
1148
+ "Maj",
1149
+ "Qershor",
1150
+ "Korrik",
1151
+ "Gusht",
1152
+ "Shtator",
1153
+ "Tetor",
1154
+ "Nëntor",
1155
+ "Dhjetor"
1156
+ ],
1157
+ dayOfWeekShort: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu"],
1158
+ dayOfWeek: ["E Diel", "E Hënë", "E Martē", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë"]
1159
+ },
1160
+ "sr-YU": {
1161
+ months: [
1162
+ "Januar",
1163
+ "Februar",
1164
+ "Mart",
1165
+ "April",
1166
+ "Maj",
1167
+ "Jun",
1168
+ "Jul",
1169
+ "Avgust",
1170
+ "Septembar",
1171
+ "Oktobar",
1172
+ "Novembar",
1173
+ "Decembar"
1174
+ ],
1175
+ dayOfWeekShort: ["Ned", "Pon", "Uto", "Sre", "čet", "Pet", "Sub"],
1176
+ dayOfWeek: ["Nedelja", "Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota"]
1177
+ },
1178
+ sr: {
1179
+ months: [
1180
+ "јануар",
1181
+ "фебруар",
1182
+ "март",
1183
+ "април",
1184
+ "мај",
1185
+ "јун",
1186
+ "јул",
1187
+ "август",
1188
+ "септембар",
1189
+ "октобар",
1190
+ "новембар",
1191
+ "децембар"
1192
+ ],
1193
+ dayOfWeekShort: ["нед", "пон", "уто", "сре", "чет", "пет", "суб"],
1194
+ dayOfWeek: ["Недеља", "Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота"]
1195
+ },
1196
+ sv: {
1197
+ months: [
1198
+ "Januari",
1199
+ "Februari",
1200
+ "Mars",
1201
+ "April",
1202
+ "Maj",
1203
+ "Juni",
1204
+ "Juli",
1205
+ "Augusti",
1206
+ "September",
1207
+ "Oktober",
1208
+ "November",
1209
+ "December"
1210
+ ],
1211
+ dayOfWeekShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"],
1212
+ dayOfWeek: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"]
1213
+ },
1214
+ "zh-TW": {
1215
+ months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
1216
+ dayOfWeekShort: ["日", "一", "二", "三", "四", "五", "六"],
1217
+ dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
1218
+ },
1219
+ zh: {
1220
+ months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
1221
+ dayOfWeekShort: ["日", "一", "二", "三", "四", "五", "六"],
1222
+ dayOfWeek: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
1223
+ },
1224
+ ug: {
1225
+ months: [
1226
+ "1-ئاي",
1227
+ "2-ئاي",
1228
+ "3-ئاي",
1229
+ "4-ئاي",
1230
+ "5-ئاي",
1231
+ "6-ئاي",
1232
+ "7-ئاي",
1233
+ "8-ئاي",
1234
+ "9-ئاي",
1235
+ "10-ئاي",
1236
+ "11-ئاي",
1237
+ "12-ئاي"
1238
+ ], dayOfWeek: ["يەكشەنبە", "دۈشەنبە", "سەيشەنبە", "چارشەنبە", "پەيشەنبە", "جۈمە", "شەنبە"]
1239
+ },
1240
+ he: {
1241
+ months: [
1242
+ "ינואר",
1243
+ "פברואר",
1244
+ "מרץ",
1245
+ "אפריל",
1246
+ "מאי",
1247
+ "יוני",
1248
+ "יולי",
1249
+ "אוגוסט",
1250
+ "ספטמבר",
1251
+ "אוקטובר",
1252
+ "נובמבר",
1253
+ "דצמבר"
1254
+ ],
1255
+ dayOfWeekShort: ["א'", "ב'", "ג'", "ד'", "ה'", "ו'", "שבת"],
1256
+ dayOfWeek: ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת", "ראשון"]
1257
+ },
1258
+ hy: {
1259
+ months: [
1260
+ "Հունվար",
1261
+ "Փետրվար",
1262
+ "Մարտ",
1263
+ "Ապրիլ",
1264
+ "Մայիս",
1265
+ "Հունիս",
1266
+ "Հուլիս",
1267
+ "Օգոստոս",
1268
+ "Սեպտեմբեր",
1269
+ "Հոկտեմբեր",
1270
+ "Նոյեմբեր",
1271
+ "Դեկտեմբեր"
1272
+ ],
1273
+ dayOfWeekShort: ["Կի", "Երկ", "Երք", "Չոր", "Հնգ", "Ուրբ", "Շբթ"],
1274
+ dayOfWeek: ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ"]
1275
+ },
1276
+ kg: {
1277
+ months: [
1278
+ "Үчтүн айы",
1279
+ "Бирдин айы",
1280
+ "Жалган Куран",
1281
+ "Чын Куран",
1282
+ "Бугу",
1283
+ "Кулжа",
1284
+ "Теке",
1285
+ "Баш Оона",
1286
+ "Аяк Оона",
1287
+ "Тогуздун айы",
1288
+ "Жетинин айы",
1289
+ "Бештин айы"
1290
+ ],
1291
+ dayOfWeekShort: ["Жек", "Дүй", "Шей", "Шар", "Бей", "Жум", "Ише"],
1292
+ dayOfWeek: ["Жекшемб", "Дүйшөмб", "Шейшемб", "Шаршемб", "Бейшемби", "Жума", "Ишенб"]
1293
+ },
1294
+ rm: {
1295
+ months: [
1296
+ "Schaner",
1297
+ "Favrer",
1298
+ "Mars",
1299
+ "Avrigl",
1300
+ "Matg",
1301
+ "Zercladur",
1302
+ "Fanadur",
1303
+ "Avust",
1304
+ "Settember",
1305
+ "October",
1306
+ "November",
1307
+ "December"
1308
+ ],
1309
+ dayOfWeekShort: ["Du", "Gli", "Ma", "Me", "Gie", "Ve", "So"],
1310
+ dayOfWeek: ["Dumengia", "Glindesdi", "Mardi", "Mesemna", "Gievgia", "Venderdi", "Sonda"]
1311
+ },
1312
+ ka: {
1313
+ months: [
1314
+ "იანვარი",
1315
+ "თებერვალი",
1316
+ "მარტი",
1317
+ "აპრილი",
1318
+ "მაისი",
1319
+ "ივნისი",
1320
+ "ივლისი",
1321
+ "აგვისტო",
1322
+ "სექტემბერი",
1323
+ "ოქტომბერი",
1324
+ "ნოემბერი",
1325
+ "დეკემბერი"
1326
+ ],
1327
+ dayOfWeekShort: ["კვ", "ორშ", "სამშ", "ოთხ", "ხუთ", "პარ", "შაბ"],
1328
+ dayOfWeek: ["კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი"]
1329
+ }
1330
+ },
1331
+ ownerDocument: document,
1332
+ contentWindow: window,
1333
+ value: "",
1334
+ rtl: ! 1,
1335
+ format: "Y/m/d H:i",
1336
+ formatTime: "H:i",
1337
+ formatDate: "Y/m/d",
1338
+ startDate: ! 1,
1339
+ step: 60,
1340
+ monthChangeSpinner: ! 0,
1341
+ closeOnDateSelect: ! 1,
1342
+ closeOnTimeSelect: ! 0,
1343
+ closeOnWithoutClick: ! 0,
1344
+ closeOnInputClick: ! 0,
1345
+ openOnFocus: ! 0,
1346
+ timepicker: ! 0,
1347
+ datepicker: ! 0,
1348
+ weeks: ! 1,
1349
+ defaultTime: ! 1,
1350
+ defaultDate: ! 1,
1351
+ minDate: ! 1,
1352
+ maxDate: ! 1,
1353
+ minTime: ! 1,
1354
+ maxTime: ! 1,
1355
+ minDateTime: ! 1,
1356
+ maxDateTime: ! 1,
1357
+ allowTimes: [],
1358
+ opened: ! 1,
1359
+ initTime: ! 0,
1360
+ inline: ! 1,
1361
+ theme: "",
1362
+ touchMovedThreshold: 5,
1363
+ onSelectDate: function () {
1364
+ },
1365
+ onSelectTime: function () {
1366
+ },
1367
+ onChangeMonth: function () {
1368
+ },
1369
+ onGetWeekOfYear: function () {
1370
+ },
1371
+ onChangeYear: function () {
1372
+ },
1373
+ onChangeDateTime: function () {
1374
+ },
1375
+ onShow: function () {
1376
+ },
1377
+ onClose: function () {
1378
+ },
1379
+ onGenerate: function () {
1380
+ },
1381
+ withoutCopyright: ! 0,
1382
+ inverseButton: ! 1,
1383
+ hours12: ! 1,
1384
+ next: "fw_xdsoft_next",
1385
+ prev: "fw_xdsoft_prev",
1386
+ dayOfWeekStart: 0,
1387
+ parentID: "body",
1388
+ timeHeightInTimePicker: 25,
1389
+ timepickerScrollbar: ! 0,
1390
+ todayButton: ! 0,
1391
+ prevButton: ! 0,
1392
+ nextButton: ! 0,
1393
+ defaultSelect: ! 0,
1394
+ scrollMonth: ! 0,
1395
+ scrollTime: ! 0,
1396
+ scrollInput: ! 0,
1397
+ lazyInit: ! 1,
1398
+ mask: ! 1,
1399
+ validateOnBlur: ! 0,
1400
+ allowBlank: ! 0,
1401
+ yearStart: 1950,
1402
+ yearEnd: 2050,
1403
+ monthStart: 0,
1404
+ monthEnd: 11,
1405
+ style: "",
1406
+ id: "",
1407
+ fixed: ! 1,
1408
+ roundTime: "round",
1409
+ className: "",
1410
+ weekends: [],
1411
+ highlightedDates: [],
1412
+ highlightedPeriods: [],
1413
+ allowDates: [],
1414
+ allowDateRe: null,
1415
+ disabledDates: [],
1416
+ disabledWeekDays: [],
1417
+ yearOffset: 0,
1418
+ beforeShowDay: null,
1419
+ enterLikeTab: ! 0,
1420
+ showApplyButton: ! 1
1421
+ }, r = null, n = null, o = "en", i = {meridiem: ["AM", "PM"]}, s = function () {
1422
+ var t = a.i18n[o], s = {
1423
+ days: t.dayOfWeek,
1424
+ daysShort: t.dayOfWeekShort,
1425
+ months: t.months,
1426
+ monthsShort: e.map( t.months, function ( e ) {
1427
+ return e.substring( 0, 3 )
1428
+ } )
1429
+ };
1430
+ "function" == typeof fwDateFormatter && (
1431
+ r = n = new fwDateFormatter( {dateSettings: e.extend( {}, i, s )} )
1432
+ )
1433
+ }, u = {
1434
+ moment: {
1435
+ default_options: {format: "YYYY/MM/DD HH:mm", formatDate: "YYYY/MM/DD", formatTime: "HH:mm"},
1436
+ formatter: {
1437
+ parseDate: function ( e, t ) {
1438
+ if ( l( t ) ) {
1439
+ return n.parseDate( e, t );
1440
+ }
1441
+ var a = moment( e, t );
1442
+ return ! ! a.isValid() && a.toDate()
1443
+ }, formatDate: function ( e, t ) {
1444
+ return l( t ) ? n.formatDate( e, t ) : moment( e ).format( t )
1445
+ }, formatMask: function ( e ) {
1446
+ return e.replace( /Y{4}/g, "9999" ).replace( /Y{2}/g, "99" ).replace( /M{2}/g, "19" ).replace( /D{2}/g, "39" ).replace( /H{2}/g, "29" ).replace( /m{2}/g, "59" ).replace( /s{2}/g, "59" )
1447
+ }
1448
+ }
1449
+ }
1450
+ };
1451
+ e.fwDatetimepicker = {
1452
+ setLocale: function ( e ) {
1453
+ var t = a.i18n[e] ? e : "en";
1454
+ o !== t && (
1455
+ o = t, s()
1456
+ )
1457
+ }, setDateFormatter: function ( t ) {
1458
+ if ( "string" == typeof t && u.hasOwnProperty( t ) ) {
1459
+ var n = u[t];
1460
+ e.extend( a, n.default_options ), r = n.formatter
1461
+ } else {
1462
+ r = t
1463
+ }
1464
+ }
1465
+ };
1466
+ var d = {
1467
+ RFC_2822: "D, d M Y H:i:s O",
1468
+ ATOM: "Y-m-dTH:i:sP",
1469
+ ISO_8601: "Y-m-dTH:i:sO",
1470
+ RFC_822: "D, d M y H:i:s O",
1471
+ RFC_850: "l, d-M-y H:i:s T",
1472
+ RFC_1036: "D, d M y H:i:s O",
1473
+ RFC_1123: "D, d M Y H:i:s O",
1474
+ RSS: "D, d M Y H:i:s O",
1475
+ W3C: "Y-m-dTH:i:sP"
1476
+ }, l = function ( e ) {
1477
+ return - 1 !== Object.values( d ).indexOf( e )
1478
+ };
1479
+ e.extend( e.fwDatetimepicker, d ), s(), window.getComputedStyle || (
1480
+ window.getComputedStyle = function ( e ) {
1481
+ return this.el = e, this.getPropertyValue = function ( t ) {
1482
+ var a = /(-([a-z]))/g;
1483
+ return "float" === t && (
1484
+ t = "styleFloat"
1485
+ ), a.test( t ) && (
1486
+ t = t.replace( a, function ( e, t, a ) {
1487
+ return a.toUpperCase()
1488
+ } )
1489
+ ), e.currentStyle[t] || null
1490
+ }, this
1491
+ }
1492
+ ), Array.prototype.indexOf || (
1493
+ Array.prototype.indexOf = function ( e, t ) {
1494
+ var a, r;
1495
+ for ( a = t || 0, r = this.length; a < r; a += 1 ) {
1496
+ if ( this[a] === e ) {
1497
+ return a;
1498
+ }
1499
+ }
1500
+ return - 1
1501
+ }
1502
+ ), Date.prototype.countDaysInMonth = function () {
1503
+ return new Date( this.getFullYear(), this.getMonth() + 1, 0 ).getDate()
1504
+ }, e.fn.fw_xdsoftScroller = function ( t, a ) {
1505
+ return this.each( function () {
1506
+ var r, n, o, i, s, u = e( this ), d = function ( e ) {
1507
+ var t, a = {x: 0, y: 0};
1508
+ return "touchstart" === e.type || "touchmove" === e.type || "touchend" === e.type || "touchcancel" === e.type ? (
1509
+ t = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0], a.x = t.clientX, a.y = t.clientY
1510
+ ) : "mousedown" !== e.type && "mouseup" !== e.type && "mousemove" !== e.type && "mouseover" !== e.type && "mouseout" !== e.type && "mouseenter" !== e.type && "mouseleave" !== e.type || (
1511
+ a.x = e.clientX, a.y = e.clientY
1512
+ ), a
1513
+ }, l = 100, f = ! 1, c = 0, m = 0, h = 0, g = ! 1, p = 0, D = function () {
1514
+ };
1515
+ "hide" !== a ? (
1516
+ e( this ).hasClass( "fw_xdsoft_scroller_box" ) || (
1517
+ r = u.children().eq( 0 ), n = u[0].clientHeight, o = r[0].offsetHeight, i = e( '<div class="fw_xdsoft_scrollbar"></div>' ), s = e( '<div class="fw_xdsoft_scroller"></div>' ), i.append( s ), u.addClass( "fw_xdsoft_scroller_box" ).append( i ), D = function ( e ) {
1518
+ var t = d( e ).y - c + p;
1519
+ t < 0 && (
1520
+ t = 0
1521
+ ), t + s[0].offsetHeight > h && (
1522
+ t = h - s[0].offsetHeight
1523
+ ), u.trigger( "scroll_element.fw_xdsoft_scroller", [l ? t / l : 0] )
1524
+ }, s.on( "touchstart.fw_xdsoft_scroller mousedown.fw_xdsoft_scroller", function ( r ) {
1525
+ n || u.trigger( "resize_scroll.fw_xdsoft_scroller", [a] ), c = d( r ).y, p = parseInt( s.css( "margin-top" ), 10 ), h = i[0].offsetHeight, "mousedown" === r.type || "touchstart" === r.type ? (
1526
+ t.ownerDocument && e( t.ownerDocument.body ).addClass( "fw_xdsoft_noselect" ), e( [
1527
+ t.ownerDocument.body,
1528
+ t.contentWindow
1529
+ ] ).on( "touchend mouseup.fw_xdsoft_scroller", function a() {
1530
+ e( [
1531
+ t.ownerDocument.body,
1532
+ t.contentWindow
1533
+ ] ).off( "touchend mouseup.fw_xdsoft_scroller", a ).off( "mousemove.fw_xdsoft_scroller", D ).removeClass( "fw_xdsoft_noselect" )
1534
+ } ), e( t.ownerDocument.body ).on( "mousemove.fw_xdsoft_scroller", D )
1535
+ ) : (
1536
+ g = ! 0, r.stopPropagation(), r.preventDefault()
1537
+ )
1538
+ } ).on( "touchmove", function ( e ) {
1539
+ g && (
1540
+ e.preventDefault(), D( e )
1541
+ )
1542
+ } ).on( "touchend touchcancel", function () {
1543
+ g = ! 1, p = 0
1544
+ } ), u.on( "scroll_element.fw_xdsoft_scroller", function ( e, t ) {
1545
+ n || u.trigger( "resize_scroll.fw_xdsoft_scroller", [
1546
+ t,
1547
+ ! 0
1548
+ ] ), t = t > 1 ? 1 : t < 0 || isNaN( t ) ? 0 : t, s.css( "margin-top", l * t ), setTimeout( function () {
1549
+ r.css( "marginTop", - parseInt( (
1550
+ r[0].offsetHeight - n
1551
+ ) * t, 10 ) )
1552
+ }, 10 )
1553
+ } ).on( "resize_scroll.fw_xdsoft_scroller", function ( e, t, a ) {
1554
+ var d, f;
1555
+ n = u[0].clientHeight, o = r[0].offsetHeight, f = (
1556
+ d = n / o
1557
+ ) * i[0].offsetHeight, d > 1 ? s.hide() : (
1558
+ s.show(), s.css( "height", parseInt( f > 10 ? f : 10, 10 ) ), l = i[0].offsetHeight - s[0].offsetHeight, ! 0 !== a && u.trigger( "scroll_element.fw_xdsoft_scroller", [
1559
+ t || Math.abs( parseInt( r.css( "marginTop" ), 10 ) ) / (
1560
+ o - n
1561
+ )
1562
+ ] )
1563
+ )
1564
+ } ), u.on( "mousewheel", function ( e ) {
1565
+ var t = Math.abs( parseInt( r.css( "marginTop" ), 10 ) );
1566
+ return (
1567
+ t -= 20 * e.deltaY
1568
+ ) < 0 && (
1569
+ t = 0
1570
+ ), u.trigger( "scroll_element.fw_xdsoft_scroller", [
1571
+ t / (
1572
+ o - n
1573
+ )
1574
+ ] ), e.stopPropagation(), ! 1
1575
+ } ), u.on( "touchstart", function ( e ) {
1576
+ f = d( e ), m = Math.abs( parseInt( r.css( "marginTop" ), 10 ) )
1577
+ } ), u.on( "touchmove", function ( e ) {
1578
+ if ( f ) {
1579
+ e.preventDefault();
1580
+ var t = d( e );
1581
+ u.trigger( "scroll_element.fw_xdsoft_scroller", [
1582
+ (
1583
+ m - (
1584
+ t.y - f.y
1585
+ )
1586
+ ) / (
1587
+ o - n
1588
+ )
1589
+ ] )
1590
+ }
1591
+ } ), u.on( "touchend touchcancel", function () {
1592
+ f = ! 1, m = 0
1593
+ } )
1594
+ ), u.trigger( "resize_scroll.fw_xdsoft_scroller", [a] )
1595
+ ) : u.find( ".fw_xdsoft_scrollbar" ).hide()
1596
+ } )
1597
+ }, e.fn.fwDatetimepicker = function ( n, i ) {
1598
+ var s, u, d = this, l = 48, f = 57, c = 96, m = 105, h = 17, g = 46, p = 13, D = 27, v = 8, y = 37, b = 38,
1599
+ k = 39, x = 40, T = 9, S = 116, M = 65, w = 67, O = 86, W = 90, _ = 89, F = ! 1,
1600
+ C = e.isPlainObject( n ) || ! n ? e.extend( ! 0, {}, a, n ) : e.extend( ! 0, {}, a ), P = 0,
1601
+ Y = function ( e ) {
1602
+ e.on( "open.fw_xdsoft focusin.fw_xdsoft mousedown.fw_xdsoft touchstart", function t() {
1603
+ e.is( ":disabled" ) || e.data( "fw_xdsoft_datetimepicker" ) || (
1604
+ clearTimeout( P ), P = setTimeout( function () {
1605
+ e.data( "fw_xdsoft_datetimepicker" ) || s( e ), e.off( "open.fw_xdsoft focusin.fw_xdsoft mousedown.fw_xdsoft touchstart", t ).trigger( "open.fw_xdsoft" )
1606
+ }, 100 )
1607
+ )
1608
+ } )
1609
+ };
1610
+ return s = function ( a ) {
1611
+ function i() {
1612
+ var e, t = ! 1;
1613
+ return C.startDate ? t = A.strToDate( C.startDate ) : (
1614
+ t = C.value || (
1615
+ a && a.val && a.val() ? a.val() : ""
1616
+ )
1617
+ ) ? (
1618
+ t = A.strToDateTime( t ), C.yearOffset && (
1619
+ t = new Date( t.getFullYear() - C.yearOffset, t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds() )
1620
+ )
1621
+ ) : C.defaultDate && (
1622
+ t = A.strToDateTime( C.defaultDate ), C.defaultTime && (
1623
+ e = A.strtotime( C.defaultTime ), t.setHours( e.getHours() ), t.setMinutes( e.getMinutes() )
1624
+ )
1625
+ ), t && A.isValidDate( t ) ? j.data( "changed", ! 0 ) : t = "", t || 0
1626
+ }
1627
+
1628
+ function s( t ) {
1629
+ var n = function ( e, t ) {
1630
+ var a = e.replace( /([\[\]\/\{\}\(\)\-\.\+]{1})/g, "\\$1" ).replace( /_/g, "{digit+}" ).replace( /([0-9]{1})/g, "{digit$1}" ).replace( /\{digit([0-9]{1})\}/g, "[0-$1_]{1}" ).replace( /\{digit[\+]\}/g, "[0-9_]{1}" );
1631
+ return new RegExp( a ).test( t )
1632
+ }, o = function ( e, a ) {
1633
+ if ( ! (
1634
+ e = "string" == typeof e || e instanceof String ? t.ownerDocument.getElementById( e ) : e
1635
+ ) ) {
1636
+ return ! 1;
1637
+ }
1638
+ if ( e.createTextRange ) {
1639
+ var r = e.createTextRange();
1640
+ return r.collapse( ! 0 ), r.moveEnd( "character", a ), r.moveStart( "character", a ), r.select(), ! 0
1641
+ }
1642
+ return ! ! e.setSelectionRange && (
1643
+ e.setSelectionRange( a, a ), ! 0
1644
+ )
1645
+ };
1646
+ t.mask && a.off( "keydown.fw_xdsoft" ), ! 0 === t.mask && (
1647
+ r.formatMask ? t.mask = r.formatMask( t.format ) : t.mask = t.format.replace( /Y/g, "9999" ).replace( /F/g, "9999" ).replace( /m/g, "19" ).replace( /d/g, "39" ).replace( /H/g, "29" ).replace( /i/g, "59" ).replace( /s/g, "59" )
1648
+ ), "string" === e.type( t.mask ) && (
1649
+ n( t.mask, a.val() ) || (
1650
+ a.val( t.mask.replace( /[0-9]/g, "_" ) ), o( a[0], 0 )
1651
+ ), a.on( "paste.fw_xdsoft", function ( r ) {
1652
+ var i = (
1653
+ r.clipboardData || r.originalEvent.clipboardData || window.clipboardData
1654
+ ).getData( "text" ), s = this.value, u = this.selectionStart;
1655
+ return s = s.substr( 0, u ) + i + s.substr( u + i.length ), u += i.length, n( t.mask, s ) ? (
1656
+ this.value = s, o( this, u )
1657
+ ) : "" === e.trim( s ) ? this.value = t.mask.replace( /[0-9]/g, "_" ) : a.trigger( "error_input.fw_xdsoft" ), r.preventDefault(), ! 1
1658
+ } ), a.on( "keydown.fw_xdsoft", function ( r ) {
1659
+ var i, s = this.value, u = r.which, d = this.selectionStart, C = this.selectionEnd, P = d !== C;
1660
+ if ( u >= l && u <= f || u >= c && u <= m || u === v || u === g ) {
1661
+ for (
1662
+ i = u === v || u === g ? "_" : String.fromCharCode( c <= u && u <= m ? u - l : u ), u === v && d && ! P && (
1663
+ d -= 1
1664
+ ); ;
1665
+ ) {
1666
+ var Y = t.mask.substr( d, 1 ), A = d < t.mask.length, H = d > 0;
1667
+ if ( ! (
1668
+ /[^0-9_]/.test( Y ) && A && H
1669
+ ) ) {
1670
+ break;
1671
+ }
1672
+ d += u !== v || P ? 1 : - 1
1673
+ }
1674
+ if ( P ) {
1675
+ var j = C - d, J = t.mask.replace( /[0-9]/g, "_" ), z = J.substr( d, j ).substr( 1 );
1676
+ s = s.substr( 0, d ) + (
1677
+ i + z
1678
+ ) + s.substr( d + j )
1679
+ } else {
1680
+ s = s.substr( 0, d ) + i + s.substr( d + 1 );
1681
+ }
1682
+ if ( "" === e.trim( s ) ) {
1683
+ s = J;
1684
+ } else if ( d === t.mask.length ) {
1685
+ return r.preventDefault(), ! 1;
1686
+ }
1687
+ for ( d += u === v ? 0 : 1; /[^0-9_]/.test( t.mask.substr( d, 1 ) ) && d < t.mask.length && d > 0; ) {
1688
+ d += u === v ? 0 : 1;
1689
+ }
1690
+ n( t.mask, s ) ? (
1691
+ this.value = s, o( this, d )
1692
+ ) : "" === e.trim( s ) ? this.value = t.mask.replace( /[0-9]/g, "_" ) : a.trigger( "error_input.fw_xdsoft" )
1693
+ } else if ( - 1 !== [M, w, O, W, _].indexOf( u ) && F || - 1 !== [
1694
+ D,
1695
+ b,
1696
+ x,
1697
+ y,
1698
+ k,
1699
+ S,
1700
+ h,
1701
+ T,
1702
+ p
1703
+ ].indexOf( u ) ) {
1704
+ return ! 0;
1705
+ }
1706
+ return r.preventDefault(), ! 1
1707
+ } )
1708
+ )
1709
+ }
1710
+
1711
+ var u, d, P, Y, A, H, j = e( '<div class="fw_xdsoft_datetimepicker fw_xdsoft_noselect"></div>' ),
1712
+ J = e( '<div class="fw_xdsoft_copyright"><a target="_blank" href="http://fw_xdsoft.net/jqplugins/datetimepicker/">fw_xdsoft.net</a></div>' ),
1713
+ z = e( '<div class="fw_xdsoft_datepicker active"></div>' ),
1714
+ I = e( '<div class="fw_xdsoft_monthpicker"><button type="button" class="fw_xdsoft_prev"></button><button type="button" class="fw_xdsoft_today_button"></button><div class="fw_xdsoft_label fw_xdsoft_month"><span></span><i></i></div><div class="fw_xdsoft_label fw_xdsoft_year"><span></span><i></i></div><button type="button" class="fw_xdsoft_next"></button></div>' ),
1715
+ N = e( '<div class="fw_xdsoft_calendar"></div>' ),
1716
+ L = e( '<div class="fw_xdsoft_timepicker active"><button type="button" class="fw_xdsoft_prev"></button><div class="fw_xdsoft_time_box"></div><button type="button" class="fw_xdsoft_next"></button></div>' ),
1717
+ E = L.find( ".fw_xdsoft_time_box" ).eq( 0 ), R = e( '<div class="fw_xdsoft_time_variant"></div>' ),
1718
+ V = e( '<button type="button" class="fw_xdsoft_save_selected blue-gradient-button">Save Selected</button>' ),
1719
+ B = e( '<div class="fw_xdsoft_select fw_xdsoft_monthselect"><div></div></div>' ),
1720
+ G = e( '<div class="fw_xdsoft_select fw_xdsoft_yearselect"><div></div></div>' ), U = ! 1, q = 0;
1721
+ C.id && j.attr( "id", C.id ), C.style && j.attr( "style", C.style ), C.weeks && j.addClass( "fw_xdsoft_showweeks" ), C.rtl && j.addClass( "fw_xdsoft_rtl" ), j.addClass( "fw_xdsoft_" + C.theme ), j.addClass( C.className ), I.find( ".fw_xdsoft_month span" ).after( B ), I.find( ".fw_xdsoft_year span" ).after( G ), I.find( ".fw_xdsoft_month,.fw_xdsoft_year" ).on( "touchstart mousedown.fw_xdsoft", function ( t ) {
1722
+ var a, r, n = e( this ).find( ".fw_xdsoft_select" ).eq( 0 ), o = 0, i = 0, s = n.is( ":visible" );
1723
+ for (
1724
+ I.find( ".fw_xdsoft_select" ).hide(), A.currentTime && (
1725
+ o = A.currentTime[e( this ).hasClass( "fw_xdsoft_month" ) ? "getMonth" : "getFullYear"]()
1726
+ ), n[s ? "hide" : "show"](), a = n.find( "div.fw_xdsoft_option" ), r = 0; r < a.length && a.eq( r ).data( "value" ) !== o; r += 1
1727
+ ) {
1728
+ i += a[0].offsetHeight;
1729
+ }
1730
+ return n.fw_xdsoftScroller( C, i / (
1731
+ n.children()[0].offsetHeight - n[0].clientHeight
1732
+ ) ), t.stopPropagation(), ! 1
1733
+ } );
1734
+ var X = function ( e ) {
1735
+ var t = e.originalEvent, a = t.touches ? t.touches[0] : t;
1736
+ this.touchStartPosition = this.touchStartPosition || a;
1737
+ var r = Math.abs( this.touchStartPosition.clientX - a.clientX ),
1738
+ n = Math.abs( this.touchStartPosition.clientY - a.clientY );
1739
+ Math.sqrt( r * r + n * n ) > C.touchMovedThreshold && (
1740
+ this.touchMoved = ! 0
1741
+ )
1742
+ };
1743
+ I.find( ".fw_xdsoft_select" ).fw_xdsoftScroller( C ).on( "touchstart mousedown.fw_xdsoft", function ( e ) {
1744
+ var t = e.originalEvent;
1745
+ this.touchMoved = ! 1, this.touchStartPosition = t.touches ? t.touches[0] : t, e.stopPropagation(), e.preventDefault()
1746
+ } ).on( "touchmove", ".fw_xdsoft_option", X ).on( "touchend mousedown.fw_xdsoft", ".fw_xdsoft_option", function () {
1747
+ if ( ! this.touchMoved ) {
1748
+ void 0 !== A.currentTime && null !== A.currentTime || (
1749
+ A.currentTime = A.now()
1750
+ );
1751
+ var t = A.currentTime.getFullYear();
1752
+ A && A.currentTime && A.currentTime[e( this ).parent().parent().hasClass( "fw_xdsoft_monthselect" ) ? "setMonth" : "setFullYear"]( e( this ).data( "value" ) ), e( this ).parent().parent().hide(), j.trigger( "xchange.fw_xdsoft" ), C.onChangeMonth && e.isFunction( C.onChangeMonth ) && C.onChangeMonth.call( j, A.currentTime, j.data( "input" ) ), t !== A.currentTime.getFullYear() && e.isFunction( C.onChangeYear ) && C.onChangeYear.call( j, A.currentTime, j.data( "input" ) )
1753
+ }
1754
+ } ), j.getValue = function () {
1755
+ return A.getCurrentTime()
1756
+ }, j.setOptions = function ( n ) {
1757
+ var o = {};
1758
+ C = e.extend( ! 0, {}, C, n ), n.allowTimes && e.isArray( n.allowTimes ) && n.allowTimes.length && (
1759
+ C.allowTimes = e.extend( ! 0, [], n.allowTimes )
1760
+ ), n.weekends && e.isArray( n.weekends ) && n.weekends.length && (
1761
+ C.weekends = e.extend( ! 0, [], n.weekends )
1762
+ ), n.allowDates && e.isArray( n.allowDates ) && n.allowDates.length && (
1763
+ C.allowDates = e.extend( ! 0, [], n.allowDates )
1764
+ ), n.allowDateRe && "[object String]" === Object.prototype.toString.call( n.allowDateRe ) && (
1765
+ C.allowDateRe = new RegExp( n.allowDateRe )
1766
+ ), n.highlightedDates && e.isArray( n.highlightedDates ) && n.highlightedDates.length && (
1767
+ e.each( n.highlightedDates, function ( a, n ) {
1768
+ var i, s = e.map( n.split( "," ), e.trim ),
1769
+ u = new t( r.parseDate( s[0], C.formatDate ), s[1], s[2] ),
1770
+ d = r.formatDate( u.date, C.formatDate );
1771
+ void 0 !== o[d] ? (
1772
+ i = o[d].desc
1773
+ ) && i.length && u.desc && u.desc.length && (
1774
+ o[d].desc = i + "\n" + u.desc
1775
+ ) : o[d] = u
1776
+ } ), C.highlightedDates = e.extend( ! 0, [], o )
1777
+ ), n.highlightedPeriods && e.isArray( n.highlightedPeriods ) && n.highlightedPeriods.length && (
1778
+ o = e.extend( ! 0, [], C.highlightedDates ), e.each( n.highlightedPeriods, function ( a, n ) {
1779
+ var i, s, u, d, l, f, c;
1780
+ if ( e.isArray( n ) ) {
1781
+ i = n[0], s = n[1], u = n[2], c = n[3];
1782
+ } else {
1783
+ var m = e.map( n.split( "," ), e.trim );
1784
+ i = r.parseDate( m[0], C.formatDate ), s = r.parseDate( m[1], C.formatDate ), u = m[2], c = m[3]
1785
+ }
1786
+ for ( ; i <= s; ) {
1787
+ d = new t( i, u, c ), l = r.formatDate( i, C.formatDate ), i.setDate( i.getDate() + 1 ), void 0 !== o[l] ? (
1788
+ f = o[l].desc
1789
+ ) && f.length && d.desc && d.desc.length && (
1790
+ o[l].desc = f + "\n" + d.desc
1791
+ ) : o[l] = d
1792
+ }
1793
+ } ), C.highlightedDates = e.extend( ! 0, [], o )
1794
+ ), n.disabledDates && e.isArray( n.disabledDates ) && n.disabledDates.length && (
1795
+ C.disabledDates = e.extend( ! 0, [], n.disabledDates )
1796
+ ), n.disabledWeekDays && e.isArray( n.disabledWeekDays ) && n.disabledWeekDays.length && (
1797
+ C.disabledWeekDays = e.extend( ! 0, [], n.disabledWeekDays )
1798
+ ), ! C.open && ! C.opened || C.inline || a.trigger( "open.fw_xdsoft" ), C.inline && (
1799
+ U = ! 0, j.addClass( "fw_xdsoft_inline" ), a.after( j ).hide()
1800
+ ), C.inverseButton && (
1801
+ C.next = "fw_xdsoft_prev", C.prev = "fw_xdsoft_next"
1802
+ ), C.datepicker ? z.addClass( "active" ) : z.removeClass( "active" ), C.timepicker ? L.addClass( "active" ) : L.removeClass( "active" ), C.value && (
1803
+ A.setCurrentTime( C.value ), a && a.val && a.val( A.str )
1804
+ ), isNaN( C.dayOfWeekStart ) ? C.dayOfWeekStart = 0 : C.dayOfWeekStart = parseInt( C.dayOfWeekStart, 10 ) % 7, C.timepickerScrollbar || E.fw_xdsoftScroller( C, "hide" ), C.minDate && /^[\+\-](.*)$/.test( C.minDate ) && (
1805
+ C.minDate = r.formatDate( A.strToDateTime( C.minDate ), C.formatDate )
1806
+ ), C.maxDate && /^[\+\-](.*)$/.test( C.maxDate ) && (
1807
+ C.maxDate = r.formatDate( A.strToDateTime( C.maxDate ), C.formatDate )
1808
+ ), C.minDateTime && /^\+(.*)$/.test( C.minDateTime ) && (
1809
+ C.minDateTime = A.strToDateTime( C.minDateTime ).dateFormat( C.formatDate )
1810
+ ), C.maxDateTime && /^\+(.*)$/.test( C.maxDateTime ) && (
1811
+ C.maxDateTime = A.strToDateTime( C.maxDateTime ).dateFormat( C.formatDate )
1812
+ ), V.toggle( C.showApplyButton ), I.find( ".fw_xdsoft_today_button" ).css( "visibility", C.todayButton ? "visible" : "hidden" ), I.find( "." + C.prev ).css( "visibility", C.prevButton ? "visible" : "hidden" ), I.find( "." + C.next ).css( "visibility", C.nextButton ? "visible" : "hidden" ), s( C ), C.validateOnBlur && a.off( "blur.fw_xdsoft" ).on( "blur.fw_xdsoft", function () {
1813
+ if ( C.allowBlank && (
1814
+ ! e.trim( e( this ).val() ).length || "string" == typeof C.mask && e.trim( e( this ).val() ) === C.mask.replace( /[0-9]/g, "_" )
1815
+ ) ) {
1816
+ e( this ).val( null ), j.data( "fw_xdsoft_datetime" ).empty();
1817
+ } else {
1818
+ var t = r.parseDate( e( this ).val(), C.format );
1819
+ if ( t ) {
1820
+ e( this ).val( r.formatDate( t, C.format ) );
1821
+ } else {
1822
+ var a = + [e( this ).val()[0], e( this ).val()[1]].join( "" ),
1823
+ n = + [e( this ).val()[2], e( this ).val()[3]].join( "" );
1824
+ ! C.datepicker && C.timepicker && a >= 0 && a < 24 && n >= 0 && n < 60 ? e( this ).val( [
1825
+ a,
1826
+ n
1827
+ ].map( function ( e ) {
1828
+ return e > 9 ? e : "0" + e
1829
+ } ).join( ":" ) ) : e( this ).val( r.formatDate( A.now(), C.format ) )
1830
+ }
1831
+ j.data( "fw_xdsoft_datetime" ).setCurrentTime( e( this ).val() )
1832
+ }
1833
+ j.trigger( "changedatetime.fw_xdsoft" ), j.trigger( "close.fw_xdsoft" )
1834
+ } ), C.dayOfWeekStartPrev = 0 === C.dayOfWeekStart ? 6 : C.dayOfWeekStart - 1, j.trigger( "xchange.fw_xdsoft" ).trigger( "afterOpen.fw_xdsoft" )
1835
+ }, j.data( "options", C ).on( "touchstart mousedown.fw_xdsoft", function ( e ) {
1836
+ return e.stopPropagation(), e.preventDefault(), G.hide(), B.hide(), ! 1
1837
+ } ), E.append( R ), E.fw_xdsoftScroller( C ), j.on( "afterOpen.fw_xdsoft", function () {
1838
+ E.fw_xdsoftScroller( C )
1839
+ } ), j.append( z ).append( L ), ! 0 !== C.withoutCopyright && j.append( J ), z.append( I ).append( N ).append( V ), e( C.parentID ).append( j ), A = new function () {
1840
+ var t = this;
1841
+ t.now = function ( e ) {
1842
+ var a, r, n = new Date;
1843
+ return ! e && C.defaultDate && (
1844
+ a = t.strToDateTime( C.defaultDate ), n.setFullYear( a.getFullYear() ), n.setMonth( a.getMonth() ), n.setDate( a.getDate() )
1845
+ ), n.setFullYear( n.getFullYear() ), ! e && C.defaultTime && (
1846
+ r = t.strtotime( C.defaultTime ), n.setHours( r.getHours() ), n.setMinutes( r.getMinutes() ), n.setSeconds( r.getSeconds() ), n.setMilliseconds( r.getMilliseconds() )
1847
+ ), n
1848
+ }, t.isValidDate = function ( e ) {
1849
+ return "[object Date]" === Object.prototype.toString.call( e ) && ! isNaN( e.getTime() )
1850
+ }, t.setCurrentTime = function ( e, a ) {
1851
+ "string" == typeof e ? t.currentTime = t.strToDateTime( e ) : t.isValidDate( e ) ? t.currentTime = e : e || a || ! C.allowBlank || C.inline ? t.currentTime = t.now() : t.currentTime = null, j.trigger( "xchange.fw_xdsoft" )
1852
+ }, t.empty = function () {
1853
+ t.currentTime = null
1854
+ }, t.getCurrentTime = function () {
1855
+ return t.currentTime
1856
+ }, t.nextMonth = function () {
1857
+ void 0 !== t.currentTime && null !== t.currentTime || (
1858
+ t.currentTime = t.now()
1859
+ );
1860
+ var a, r = t.currentTime.getMonth() + 1;
1861
+ return 12 === r && (
1862
+ t.currentTime.setFullYear( t.currentTime.getFullYear() + 1 ), r = 0
1863
+ ), a = t.currentTime.getFullYear(), t.currentTime.setDate( Math.min( new Date( t.currentTime.getFullYear(), r + 1, 0 ).getDate(), t.currentTime.getDate() ) ), t.currentTime.setMonth( r ), C.onChangeMonth && e.isFunction( C.onChangeMonth ) && C.onChangeMonth.call( j, A.currentTime, j.data( "input" ) ), a !== t.currentTime.getFullYear() && e.isFunction( C.onChangeYear ) && C.onChangeYear.call( j, A.currentTime, j.data( "input" ) ), j.trigger( "xchange.fw_xdsoft" ), r
1864
+ }, t.prevMonth = function () {
1865
+ void 0 !== t.currentTime && null !== t.currentTime || (
1866
+ t.currentTime = t.now()
1867
+ );
1868
+ var a = t.currentTime.getMonth() - 1;
1869
+ return - 1 === a && (
1870
+ t.currentTime.setFullYear( t.currentTime.getFullYear() - 1 ), a = 11
1871
+ ), t.currentTime.setDate( Math.min( new Date( t.currentTime.getFullYear(), a + 1, 0 ).getDate(), t.currentTime.getDate() ) ), t.currentTime.setMonth( a ), C.onChangeMonth && e.isFunction( C.onChangeMonth ) && C.onChangeMonth.call( j, A.currentTime, j.data( "input" ) ), j.trigger( "xchange.fw_xdsoft" ), a
1872
+ }, t.getWeekOfYear = function ( t ) {
1873
+ if ( C.onGetWeekOfYear && e.isFunction( C.onGetWeekOfYear ) ) {
1874
+ var a = C.onGetWeekOfYear.call( j, t );
1875
+ if ( void 0 !== a ) {
1876
+ return a
1877
+ }
1878
+ }
1879
+ var r = new Date( t.getFullYear(), 0, 1 );
1880
+ return 4 !== r.getDay() && r.setMonth( 0, 1 + (
1881
+ 4 - r.getDay() + 7
1882
+ ) % 7 ), Math.ceil( (
1883
+ (
1884
+ t - r
1885
+ ) / 864e5 + r.getDay() + 1
1886
+ ) / 7 )
1887
+ }, t.strToDateTime = function ( e ) {
1888
+ var a, n, o = [];
1889
+ return e && e instanceof Date && t.isValidDate( e ) ? e : (
1890
+ (
1891
+ o = /^([+-]{1})(.*)$/.exec( e )
1892
+ ) && (
1893
+ o[2] = r.parseDate( o[2], C.formatDate )
1894
+ ), o && o[2] ? (
1895
+ a = o[2].getTime() - 6e4 * o[2].getTimezoneOffset(), n = new Date( t.now( ! 0 ).getTime() + parseInt( o[1] + "1", 10 ) * a )
1896
+ ) : n = e ? r.parseDate( e, C.format ) : t.now(), t.isValidDate( n ) || (
1897
+ n = t.now()
1898
+ ), n
1899
+ )
1900
+ }, t.strToDate = function ( e ) {
1901
+ if ( e && e instanceof Date && t.isValidDate( e ) ) {
1902
+ return e;
1903
+ }
1904
+ var a = e ? r.parseDate( e, C.formatDate ) : t.now( ! 0 );
1905
+ return t.isValidDate( a ) || (
1906
+ a = t.now( ! 0 )
1907
+ ), a
1908
+ }, t.strtotime = function ( e ) {
1909
+ if ( e && e instanceof Date && t.isValidDate( e ) ) {
1910
+ return e;
1911
+ }
1912
+ var a = e ? r.parseDate( e, C.formatTime ) : t.now( ! 0 );
1913
+ return t.isValidDate( a ) || (
1914
+ a = t.now( ! 0 )
1915
+ ), a
1916
+ }, t.str = function () {
1917
+ var e = C.format;
1918
+ return C.yearOffset && (
1919
+ e = (
1920
+ e = e.replace( "Y", t.currentTime.getFullYear() + C.yearOffset )
1921
+ ).replace( "y", String( t.currentTime.getFullYear() + C.yearOffset ).substring( 2, 4 ) )
1922
+ ), r.formatDate( t.currentTime, e )
1923
+ }, t.currentTime = this.now()
1924
+ }, V.on( "touchend click", function ( e ) {
1925
+ e.preventDefault(), j.data( "changed", ! 0 ), A.setCurrentTime( i() ), a.val( A.str() ), j.trigger( "close.fw_xdsoft" )
1926
+ } ), I.find( ".fw_xdsoft_today_button" ).on( "touchend mousedown.fw_xdsoft", function () {
1927
+ j.data( "changed", ! 0 ), A.setCurrentTime( 0, ! 0 ), j.trigger( "afterOpen.fw_xdsoft" )
1928
+ } ).on( "dblclick.fw_xdsoft", function () {
1929
+ var e, t, r = A.getCurrentTime();
1930
+ r = new Date( r.getFullYear(), r.getMonth(), r.getDate() ), e = A.strToDate( C.minDate ), r < (
1931
+ e = new Date( e.getFullYear(), e.getMonth(), e.getDate() )
1932
+ ) || (
1933
+ t = A.strToDate( C.maxDate ), r > (
1934
+ t = new Date( t.getFullYear(), t.getMonth(), t.getDate() )
1935
+ ) || (
1936
+ a.val( A.str() ), a.trigger( "change" ), j.trigger( "close.fw_xdsoft" )
1937
+ )
1938
+ )
1939
+ } ), I.find( ".fw_xdsoft_prev,.fw_xdsoft_next" ).on( "touchend mousedown.fw_xdsoft", function () {
1940
+ var t = e( this ), a = 0, r = ! 1;
1941
+ ! function e( n ) {
1942
+ t.hasClass( C.next ) ? A.nextMonth() : t.hasClass( C.prev ) && A.prevMonth(), C.monthChangeSpinner && (
1943
+ r || (
1944
+ a = setTimeout( e, n || 100 )
1945
+ )
1946
+ )
1947
+ }( 500 ), e( [C.ownerDocument.body, C.contentWindow] ).on( "touchend mouseup.fw_xdsoft", function t() {
1948
+ clearTimeout( a ), r = ! 0, e( [
1949
+ C.ownerDocument.body,
1950
+ C.contentWindow
1951
+ ] ).off( "touchend mouseup.fw_xdsoft", t )
1952
+ } )
1953
+ } ), L.find( ".fw_xdsoft_prev,.fw_xdsoft_next" ).on( "touchend mousedown.fw_xdsoft", function () {
1954
+ var t = e( this ), a = 0, r = ! 1, n = 110;
1955
+ ! function e( o ) {
1956
+ var i = E[0].clientHeight, s = R[0].offsetHeight,
1957
+ u = Math.abs( parseInt( R.css( "marginTop" ), 10 ) );
1958
+ t.hasClass( C.next ) && s - i - C.timeHeightInTimePicker >= u ? R.css( "marginTop", "-" + (
1959
+ u + C.timeHeightInTimePicker
1960
+ ) + "px" ) : t.hasClass( C.prev ) && u - C.timeHeightInTimePicker >= 0 && R.css( "marginTop", "-" + (
1961
+ u - C.timeHeightInTimePicker
1962
+ ) + "px" ), E.trigger( "scroll_element.fw_xdsoft_scroller", [
1963
+ Math.abs( parseInt( R[0].style.marginTop, 10 ) / (
1964
+ s - i
1965
+ ) )
1966
+ ] ), n = n > 10 ? 10 : n - 10, r || (
1967
+ a = setTimeout( e, o || n )
1968
+ )
1969
+ }( 500 ), e( [C.ownerDocument.body, C.contentWindow] ).on( "touchend mouseup.fw_xdsoft", function t() {
1970
+ clearTimeout( a ), r = ! 0, e( [
1971
+ C.ownerDocument.body,
1972
+ C.contentWindow
1973
+ ] ).off( "touchend mouseup.fw_xdsoft", t )
1974
+ } )
1975
+ } ), u = 0, j.on( "xchange.fw_xdsoft", function ( t ) {
1976
+ clearTimeout( u ), u = setTimeout( function () {
1977
+ void 0 !== A.currentTime && null !== A.currentTime || (
1978
+ A.currentTime = A.now()
1979
+ );
1980
+ for ( var t, i, s, u, d, l, f, c, m, h, g = "", p = new Date( A.currentTime.getFullYear(), A.currentTime.getMonth(), 1, 12, 0, 0 ), D = 0, v = A.now(), y = ! 1, b = ! 1, k = ! 1, x = ! 1, T = [], S = ! 0, M = ""; p.getDay() !== C.dayOfWeekStart; ) {
1981
+ p.setDate( p.getDate() - 1 );
1982
+ }
1983
+ for (
1984
+ g += "<table><thead><tr>", C.weeks && (
1985
+ g += "<th></th>"
1986
+ ), t = 0; t < 7; t += 1
1987
+ ) {
1988
+ g += "<th>" + C.i18n[o].dayOfWeekShort[(
1989
+ t + C.dayOfWeekStart
1990
+ ) % 7] + "</th>";
1991
+ }
1992
+ g += "</tr></thead>", g += "<tbody>", ! 1 !== C.maxDate && (
1993
+ y = A.strToDate( C.maxDate ), y = new Date( y.getFullYear(), y.getMonth(), y.getDate(), 23, 59, 59, 999 )
1994
+ ), ! 1 !== C.minDate && (
1995
+ b = A.strToDate( C.minDate ), b = new Date( b.getFullYear(), b.getMonth(), b.getDate() )
1996
+ ), ! 1 !== C.minDateTime && (
1997
+ k = A.strToDate( C.minDateTime ), k = new Date( k.getFullYear(), k.getMonth(), k.getDate(), k.getHours(), k.getMinutes(), k.getSeconds() )
1998
+ ), ! 1 !== C.maxDateTime && (
1999
+ x = A.strToDate( C.maxDateTime ), x = new Date( x.getFullYear(), x.getMonth(), x.getDate(), x.getHours(), x.getMinutes(), x.getSeconds() )
2000
+ );
2001
+ var w;
2002
+ for (
2003
+ ! 1 !== x && (
2004
+ w = 31 * (
2005
+ 12 * x.getFullYear() + x.getMonth()
2006
+ ) + x.getDate()
2007
+ ); D < A.currentTime.countDaysInMonth() || p.getDay() !== C.dayOfWeekStart || A.currentTime.getMonth() === p.getMonth();
2008
+ ) {
2009
+ T = [], D += 1, s = p.getDay(), u = p.getDate(), d = p.getFullYear(), l = p.getMonth(), f = A.getWeekOfYear( p ), h = "", T.push( "fw_xdsoft_date" ), c = C.beforeShowDay && e.isFunction( C.beforeShowDay.call ) ? C.beforeShowDay.call( j, p ) : null, C.allowDateRe && "[object RegExp]" === Object.prototype.toString.call( C.allowDateRe ) && (
2010
+ C.allowDateRe.test( r.formatDate( p, C.formatDate ) ) || T.push( "fw_xdsoft_disabled" )
2011
+ ), C.allowDates && C.allowDates.length > 0 && - 1 === C.allowDates.indexOf( r.formatDate( p, C.formatDate ) ) && T.push( "fw_xdsoft_disabled" );
2012
+ var O = 31 * (
2013
+ 12 * p.getFullYear() + p.getMonth()
2014
+ ) + p.getDate();
2015
+ (
2016
+ ! 1 !== y && p > y || ! 1 !== k && p < k || ! 1 !== b && p < b || ! 1 !== x && O > w || c && ! 1 === c[0]
2017
+ ) && T.push( "fw_xdsoft_disabled" ), - 1 !== C.disabledDates.indexOf( r.formatDate( p, C.formatDate ) ) && T.push( "fw_xdsoft_disabled" ), - 1 !== C.disabledWeekDays.indexOf( s ) && T.push( "fw_xdsoft_disabled" ), a.is( "[disabled]" ) && T.push( "fw_xdsoft_disabled" ), c && "" !== c[1] && T.push( c[1] ), A.currentTime.getMonth() !== l && T.push( "fw_xdsoft_other_month" ), (
2018
+ C.defaultSelect || j.data( "changed" )
2019
+ ) && r.formatDate( A.currentTime, C.formatDate ) === r.formatDate( p, C.formatDate ) && T.push( "fw_xdsoft_current" ), r.formatDate( v, C.formatDate ) === r.formatDate( p, C.formatDate ) && T.push( "fw_xdsoft_today" ), 0 !== p.getDay() && 6 !== p.getDay() && - 1 === C.weekends.indexOf( r.formatDate( p, C.formatDate ) ) || T.push( "fw_xdsoft_weekend" ), void 0 !== C.highlightedDates[r.formatDate( p, C.formatDate )] && (
2020
+ i = C.highlightedDates[r.formatDate( p, C.formatDate )], T.push( void 0 === i.style ? "fw_xdsoft_highlighted_default" : i.style ), h = void 0 === i.desc ? "" : i.desc
2021
+ ), C.beforeShowDay && e.isFunction( C.beforeShowDay ) && T.push( C.beforeShowDay( p ) ), S && (
2022
+ g += "<tr>", S = ! 1, C.weeks && (
2023
+ g += "<th>" + f + "</th>"
2024
+ )
2025
+ ), g += '<td data-date="' + u + '" data-month="' + l + '" data-year="' + d + '" class="fw_xdsoft_date fw_xdsoft_day_of_week' + p.getDay() + " " + T.join( " " ) + '" title="' + h + '"><div>' + u + "</div></td>", p.getDay() === C.dayOfWeekStartPrev && (
2026
+ g += "</tr>", S = ! 0
2027
+ ), p.setDate( u + 1 )
2028
+ }
2029
+ g += "</tbody></table>", N.html( g ), I.find( ".fw_xdsoft_label span" ).eq( 0 ).text( C.i18n[o].months[A.currentTime.getMonth()] ), I.find( ".fw_xdsoft_label span" ).eq( 1 ).text( A.currentTime.getFullYear() + C.yearOffset ), M = "", l = "";
2030
+ var W = 0;
2031
+ if ( ! 1 !== C.minTime ) {
2032
+ F = A.strtotime( C.minTime );
2033
+ W = 60 * F.getHours() + F.getMinutes()
2034
+ }
2035
+ var _ = 1440;
2036
+ if ( ! 1 !== C.maxTime ) {
2037
+ F = A.strtotime( C.maxTime );
2038
+ _ = 60 * F.getHours() + F.getMinutes()
2039
+ }
2040
+ if ( ! 1 !== C.minDateTime ) {
2041
+ F = A.strToDateTime( C.minDateTime );
2042
+ r.formatDate( A.currentTime, C.formatDate ) === r.formatDate( F, C.formatDate ) && (
2043
+ l = 60 * F.getHours() + F.getMinutes()
2044
+ ) > W && (
2045
+ W = l
2046
+ )
2047
+ }
2048
+ if ( ! 1 !== C.maxDateTime ) {
2049
+ var F = A.strToDateTime( C.maxDateTime );
2050
+ r.formatDate( A.currentTime, C.formatDate ) === r.formatDate( F, C.formatDate ) && (
2051
+ l = 60 * F.getHours() + F.getMinutes()
2052
+ ) < _ && (
2053
+ _ = l
2054
+ )
2055
+ }
2056
+ if ( m = function ( t, n ) {
2057
+ var o, i = A.now(), s = C.allowTimes && e.isArray( C.allowTimes ) && C.allowTimes.length;
2058
+ i.setHours( t ), t = parseInt( i.getHours(), 10 ), i.setMinutes( n ), n = parseInt( i.getMinutes(), 10 ), T = [];
2059
+ var u = 60 * t + n;
2060
+ (
2061
+ a.is( "[disabled]" ) || u >= _ || u < W
2062
+ ) && T.push( "fw_xdsoft_disabled" ), (
2063
+ o = new Date( A.currentTime )
2064
+ ).setHours( parseInt( A.currentTime.getHours(), 10 ) ), s || o.setMinutes( Math[C.roundTime]( A.currentTime.getMinutes() / C.step ) * C.step ), (
2065
+ C.initTime || C.defaultSelect || j.data( "changed" )
2066
+ ) && o.getHours() === parseInt( t, 10 ) && (
2067
+ ! s && C.step > 59 || o.getMinutes() === parseInt( n, 10 )
2068
+ ) && (
2069
+ C.defaultSelect || j.data( "changed" ) ? T.push( "fw_xdsoft_current" ) : C.initTime && T.push( "fw_xdsoft_init_time" )
2070
+ ), parseInt( v.getHours(), 10 ) === parseInt( t, 10 ) && parseInt( v.getMinutes(), 10 ) === parseInt( n, 10 ) && T.push( "fw_xdsoft_today" ), M += '<div class="fw_xdsoft_time ' + T.join( " " ) + '" data-hour="' + t + '" data-minute="' + n + '">' + r.formatDate( i, C.formatTime ) + "</div>"
2071
+ }, C.allowTimes && e.isArray( C.allowTimes ) && C.allowTimes.length ) {
2072
+ for ( D = 0; D < C.allowTimes.length; D += 1 ) {
2073
+ m( A.strtotime( C.allowTimes[D] ).getHours(), l = A.strtotime( C.allowTimes[D] ).getMinutes() );
2074
+ }
2075
+ } else {
2076
+ for (
2077
+ D = 0, t = 0; D < (
2078
+ C.hours12 ? 12 : 24
2079
+ ); D += 1
2080
+ ) {
2081
+ for ( t = 0; t < 60; t += C.step ) {
2082
+ var P = 60 * D + t;
2083
+ P < W || (
2084
+ P >= _ || m( (
2085
+ D < 10 ? "0" : ""
2086
+ ) + D, l = (
2087
+ t < 10 ? "0" : ""
2088
+ ) + t )
2089
+ )
2090
+ }
2091
+ }
2092
+ }
2093
+ for ( R.html( M ), n = "", D = parseInt( C.yearStart, 10 ); D <= parseInt( C.yearEnd, 10 ); D += 1 ) {
2094
+ n += '<div class="fw_xdsoft_option ' + (
2095
+ A.currentTime.getFullYear() === D ? "fw_xdsoft_current" : ""
2096
+ ) + '" data-value="' + D + '">' + (
2097
+ D + C.yearOffset
2098
+ ) + "</div>";
2099
+ }
2100
+ for ( G.children().eq( 0 ).html( n ), D = parseInt( C.monthStart, 10 ), n = ""; D <= parseInt( C.monthEnd, 10 ); D += 1 ) {
2101
+ n += '<div class="fw_xdsoft_option ' + (
2102
+ A.currentTime.getMonth() === D ? "fw_xdsoft_current" : ""
2103
+ ) + '" data-value="' + D + '">' + C.i18n[o].months[D] + "</div>";
2104
+ }
2105
+ B.children().eq( 0 ).html( n ), e( j ).trigger( "generate.fw_xdsoft" )
2106
+ }, 10 ), t.stopPropagation()
2107
+ } ).on( "afterOpen.fw_xdsoft", function () {
2108
+ if ( C.timepicker ) {
2109
+ var e, t, a, r;
2110
+ R.find( ".fw_xdsoft_current" ).length ? e = ".fw_xdsoft_current" : R.find( ".fw_xdsoft_init_time" ).length && (
2111
+ e = ".fw_xdsoft_init_time"
2112
+ ), e ? (
2113
+ t = E[0].clientHeight, (
2114
+ a = R[0].offsetHeight
2115
+ ) - t < (
2116
+ r = R.find( e ).index() * C.timeHeightInTimePicker + 1
2117
+ ) && (
2118
+ r = a - t
2119
+ ), E.trigger( "scroll_element.fw_xdsoft_scroller", [
2120
+ parseInt( r, 10 ) / (
2121
+ a - t
2122
+ )
2123
+ ] )
2124
+ ) : E.trigger( "scroll_element.fw_xdsoft_scroller", [0] )
2125
+ }
2126
+ } ), d = 0, N.on( "touchend click.fw_xdsoft", "td", function ( t ) {
2127
+ t.stopPropagation(), d += 1;
2128
+ var r = e( this ), n = A.currentTime;
2129
+ if ( void 0 !== n && null !== n || (
2130
+ A.currentTime = A.now(), n = A.currentTime
2131
+ ), r.hasClass( "fw_xdsoft_disabled" ) ) {
2132
+ return ! 1;
2133
+ }
2134
+ n.setDate( 1 ), n.setFullYear( r.data( "year" ) ), n.setMonth( r.data( "month" ) ), n.setDate( r.data( "date" ) ), j.trigger( "select.fw_xdsoft", [n] ), a.val( A.str() ), C.onSelectDate && e.isFunction( C.onSelectDate ) && C.onSelectDate.call( j, A.currentTime, j.data( "input" ), t ), j.data( "changed", ! 0 ), j.trigger( "xchange.fw_xdsoft" ), j.trigger( "changedatetime.fw_xdsoft" ), (
2135
+ d > 1 || ! 0 === C.closeOnDateSelect || ! 1 === C.closeOnDateSelect && ! C.timepicker
2136
+ ) && ! C.inline && j.trigger( "close.fw_xdsoft" ), setTimeout( function () {
2137
+ d = 0
2138
+ }, 200 )
2139
+ } ), R.on( "touchstart", "div", function ( e ) {
2140
+ this.touchMoved = ! 1
2141
+ } ).on( "touchmove", "div", X ).on( "touchend click.fw_xdsoft", "div", function ( t ) {
2142
+ if ( ! this.touchMoved ) {
2143
+ t.stopPropagation();
2144
+ var a = e( this ), r = A.currentTime;
2145
+ if ( void 0 !== r && null !== r || (
2146
+ A.currentTime = A.now(), r = A.currentTime
2147
+ ), a.hasClass( "fw_xdsoft_disabled" ) ) {
2148
+ return ! 1;
2149
+ }
2150
+ r.setHours( a.data( "hour" ) ), r.setMinutes( a.data( "minute" ) ), j.trigger( "select.fw_xdsoft", [r] ), j.data( "input" ).val( A.str() ), C.onSelectTime && e.isFunction( C.onSelectTime ) && C.onSelectTime.call( j, A.currentTime, j.data( "input" ), t ), j.data( "changed", ! 0 ), j.trigger( "xchange.fw_xdsoft" ), j.trigger( "changedatetime.fw_xdsoft" ), ! 0 !== C.inline && ! 0 === C.closeOnTimeSelect && j.trigger( "close.fw_xdsoft" )
2151
+ }
2152
+ } ), z.on( "mousewheel.fw_xdsoft", function ( e ) {
2153
+ return ! C.scrollMonth || (
2154
+ e.deltaY < 0 ? A.nextMonth() : A.prevMonth(), ! 1
2155
+ )
2156
+ } ), a.on( "mousewheel.fw_xdsoft", function ( e ) {
2157
+ return ! C.scrollInput || (
2158
+ ! C.datepicker && C.timepicker ? (
2159
+ (
2160
+ P = R.find( ".fw_xdsoft_current" ).length ? R.find( ".fw_xdsoft_current" ).eq( 0 ).index() : 0
2161
+ ) + e.deltaY >= 0 && P + e.deltaY < R.children().length && (
2162
+ P += e.deltaY
2163
+ ), R.children().eq( P ).length && R.children().eq( P ).trigger( "mousedown" ), ! 1
2164
+ ) : C.datepicker && ! C.timepicker ? (
2165
+ z.trigger( e, [
2166
+ e.deltaY,
2167
+ e.deltaX,
2168
+ e.deltaY
2169
+ ] ), a.val && a.val( A.str() ), j.trigger( "changedatetime.fw_xdsoft" ), ! 1
2170
+ ) : void 0
2171
+ )
2172
+ } ), j.on( "changedatetime.fw_xdsoft", function ( t ) {
2173
+ if ( C.onChangeDateTime && e.isFunction( C.onChangeDateTime ) ) {
2174
+ var a = j.data( "input" );
2175
+ C.onChangeDateTime.call( j, A.currentTime, a, t ), delete C.value, a.trigger( "change" )
2176
+ }
2177
+ } ).on( "generate.fw_xdsoft", function () {
2178
+ C.onGenerate && e.isFunction( C.onGenerate ) && C.onGenerate.call( j, A.currentTime, j.data( "input" ) ), U && (
2179
+ j.trigger( "afterOpen.fw_xdsoft" ), U = ! 1
2180
+ )
2181
+ } ).on( "click.fw_xdsoft", function ( e ) {
2182
+ e.stopPropagation()
2183
+ } ), P = 0, H = function ( e, t ) {
2184
+ do {
2185
+ if ( ! (
2186
+ e = e.parentNode
2187
+ ) || ! 1 === t( e ) ) {
2188
+ break
2189
+ }
2190
+ } while ( "HTML" !== e.nodeName )
2191
+ }, Y = function () {
2192
+ var t, a, r, n, o, i, s, u, d, l, f, c, m;
2193
+ if ( u = j.data( "input" ), t = u.offset(), a = u[0], l = "top", r = t.top + a.offsetHeight - 1, n = t.left, o = "absolute", d = e( C.contentWindow ).width(), c = e( C.contentWindow ).height(), m = e( C.contentWindow ).scrollTop(), C.ownerDocument.documentElement.clientWidth - t.left < z.parent().outerWidth( ! 0 ) ) {
2194
+ var h = z.parent().outerWidth( ! 0 ) - a.offsetWidth;
2195
+ n -= h
2196
+ }
2197
+ "rtl" === u.parent().css( "direction" ) && (
2198
+ n -= j.outerWidth() - u.outerWidth()
2199
+ ), C.fixed ? (
2200
+ r -= m, n -= e( C.contentWindow ).scrollLeft(), o = "fixed"
2201
+ ) : (
2202
+ s = ! 1, H( a, function ( e ) {
2203
+ return null !== e && (
2204
+ "fixed" === C.contentWindow.getComputedStyle( e ).getPropertyValue( "position" ) ? (
2205
+ s = ! 0, ! 1
2206
+ ) : void 0
2207
+ )
2208
+ } ), s ? (
2209
+ o = "fixed", r + j.outerHeight() > c + m ? (
2210
+ l = "bottom", r = c + m - t.top
2211
+ ) : r -= m
2212
+ ) : r + j[0].offsetHeight > c + m && (
2213
+ r = t.top - j[0].offsetHeight + 1
2214
+ ), r < 0 && (
2215
+ r = 0
2216
+ ), n + a.offsetWidth > d && (
2217
+ n = d - a.offsetWidth
2218
+ )
2219
+ ), i = j[0], H( i, function ( e ) {
2220
+ if ( "relative" === C.contentWindow.getComputedStyle( e ).getPropertyValue( "position" ) && d >= e.offsetWidth ) {
2221
+ return n -= (
2222
+ d - e.offsetWidth
2223
+ ) / 2, ! 1
2224
+ }
2225
+ } ), (
2226
+ f = {position: o, left: n, top: "", bottom: ""}
2227
+ )[l] = r, j.css( f )
2228
+ }, j.on( "open.fw_xdsoft", function ( t ) {
2229
+ var a = ! 0;
2230
+ C.onShow && e.isFunction( C.onShow ) && (
2231
+ a = C.onShow.call( j, A.currentTime, j.data( "input" ), t )
2232
+ ), ! 1 !== a && (
2233
+ j.show(), Y(), e( C.contentWindow ).off( "resize.fw_xdsoft", Y ).on( "resize.fw_xdsoft", Y ), C.closeOnWithoutClick && e( [
2234
+ C.ownerDocument.body,
2235
+ C.contentWindow
2236
+ ] ).on( "touchstart mousedown.fw_xdsoft", function t() {
2237
+ j.trigger( "close.fw_xdsoft" ), e( [
2238
+ C.ownerDocument.body,
2239
+ C.contentWindow
2240
+ ] ).off( "touchstart mousedown.fw_xdsoft", t )
2241
+ } )
2242
+ )
2243
+ } ).on( "close.fw_xdsoft", function ( t ) {
2244
+ var a = ! 0;
2245
+ I.find( ".fw_xdsoft_month,.fw_xdsoft_year" ).find( ".fw_xdsoft_select" ).hide(), C.onClose && e.isFunction( C.onClose ) && (
2246
+ a = C.onClose.call( j, A.currentTime, j.data( "input" ), t )
2247
+ ), ! 1 === a || C.opened || C.inline || j.hide(), t.stopPropagation()
2248
+ } ).on( "toggle.fw_xdsoft", function () {
2249
+ j.is( ":visible" ) ? j.trigger( "close.fw_xdsoft" ) : j.trigger( "open.fw_xdsoft" )
2250
+ } ).data( "input", a ), q = 0, j.data( "fw_xdsoft_datetime", A ), j.setOptions( C ), A.setCurrentTime( i() ), a.data( "fw_xdsoft_datetimepicker", j ).on( "open.fw_xdsoft focusin.fw_xdsoft mousedown.fw_xdsoft touchstart", function () {
2251
+ a.is( ":disabled" ) || a.data( "fw_xdsoft_datetimepicker" ).is( ":visible" ) && C.closeOnInputClick || C.openOnFocus && (
2252
+ clearTimeout( q ), q = setTimeout( function () {
2253
+ a.is( ":disabled" ) || (
2254
+ U = ! 0, A.setCurrentTime( i(), ! 0 ), C.mask && s( C ), j.trigger( "open.fw_xdsoft" )
2255
+ )
2256
+ }, 100 )
2257
+ )
2258
+ } ).on( "keydown.fw_xdsoft", function ( t ) {
2259
+ var a, r = t.which;
2260
+ return - 1 !== [p].indexOf( r ) && C.enterLikeTab ? (
2261
+ a = e( "input:visible,textarea:visible,button:visible,a:visible" ), j.trigger( "close.fw_xdsoft" ), a.eq( a.index( this ) + 1 ).focus(), ! 1
2262
+ ) : - 1 !== [T].indexOf( r ) ? (
2263
+ j.trigger( "close.fw_xdsoft" ), ! 0
2264
+ ) : void 0
2265
+ } ).on( "blur.fw_xdsoft", function () {
2266
+ j.trigger( "close.fw_xdsoft" )
2267
+ } )
2268
+ }, u = function ( t ) {
2269
+ var a = t.data( "fw_xdsoft_datetimepicker" );
2270
+ a && (
2271
+ a.data( "fw_xdsoft_datetime", null ), a.remove(), t.data( "fw_xdsoft_datetimepicker", null ).off( ".fw_xdsoft" ), e( C.contentWindow ).off( "resize.fw_xdsoft" ), e( [
2272
+ C.contentWindow,
2273
+ C.ownerDocument.body
2274
+ ] ).off( "mousedown.fw_xdsoft touchstart" ), t.unmousewheel && t.unmousewheel()
2275
+ )
2276
+ }, e( C.ownerDocument ).off( "keydown.fw_xdsoftctrl keyup.fw_xdsoftctrl" ).on( "keydown.fw_xdsoftctrl", function ( e ) {
2277
+ e.keyCode === h && (
2278
+ F = ! 0
2279
+ )
2280
+ } ).on( "keyup.fw_xdsoftctrl", function ( e ) {
2281
+ e.keyCode === h && (
2282
+ F = ! 1
2283
+ )
2284
+ } ), this.each( function () {
2285
+ var t = e( this ).data( "fw_xdsoft_datetimepicker" );
2286
+ if ( t ) {
2287
+ if ( "string" === e.type( n ) ) {
2288
+ switch ( n ) {
2289
+ case"show":
2290
+ e( this ).select().focus(), t.trigger( "open.fw_xdsoft" );
2291
+ break;
2292
+ case"hide":
2293
+ t.trigger( "close.fw_xdsoft" );
2294
+ break;
2295
+ case"toggle":
2296
+ t.trigger( "toggle.fw_xdsoft" );
2297
+ break;
2298
+ case"destroy":
2299
+ u( e( this ) );
2300
+ break;
2301
+ case"reset":
2302
+ this.value = this.defaultValue, this.value && t.data( "fw_xdsoft_datetime" ).isValidDate( r.parseDate( this.value, C.format ) ) || t.data( "changed", ! 1 ), t.data( "fw_xdsoft_datetime" ).setCurrentTime( this.value );
2303
+ break;
2304
+ case"validate":
2305
+ t.data( "input" ).trigger( "blur.fw_xdsoft" );
2306
+ break;
2307
+ default:
2308
+ t[n] && e.isFunction( t[n] ) && (
2309
+ d = t[n]( i )
2310
+ )
2311
+ }
2312
+ } else {
2313
+ t.setOptions( n );
2314
+ }
2315
+ return 0
2316
+ }
2317
+ "string" !== e.type( n ) && (
2318
+ ! C.lazyInit || C.open || C.inline ? s( e( this ) ) : Y( e( this ) )
2319
+ )
2320
+ } ), d
2321
+ }, e.fn.fwDatetimepicker.defaults = a
2322
+ };
2323
+ ! function ( e ) {
2324
+ "function" == typeof define && define.amd ? define( [
2325
+ "jquery",
2326
+ "jquery-mousewheel"
2327
+ ], e ) : "object" == typeof exports ? module.exports = e( require( "jquery" ) ) : e( jQuery )
2328
+ }( datetimepickerFactory ), function ( e ) {
2329
+ "function" == typeof define && define.amd ? define( ["jquery"], e ) : "object" == typeof exports ? module.exports = e : e( jQuery )
2330
+ }( function ( e ) {
2331
+ function t( t ) {
2332
+ var i = t || window.event, s = u.call( arguments, 1 ), d = 0, f = 0, c = 0, m = 0, h = 0, g = 0;
2333
+ if ( t = e.event.fix( i ), t.type = "mousewheel", "detail" in i && (
2334
+ c = - 1 * i.detail
2335
+ ), "wheelDelta" in i && (
2336
+ c = i.wheelDelta
2337
+ ), "wheelDeltaY" in i && (
2338
+ c = i.wheelDeltaY
2339
+ ), "wheelDeltaX" in i && (
2340
+ f = - 1 * i.wheelDeltaX
2341
+ ), "axis" in i && i.axis === i.HORIZONTAL_AXIS && (
2342
+ f = - 1 * c, c = 0
2343
+ ), d = 0 === c ? f : c, "deltaY" in i && (
2344
+ d = c = - 1 * i.deltaY
2345
+ ), "deltaX" in i && (
2346
+ f = i.deltaX, 0 === c && (
2347
+ d = - 1 * f
2348
+ )
2349
+ ), 0 !== c || 0 !== f ) {
2350
+ if ( 1 === i.deltaMode ) {
2351
+ var p = e.data( this, "mousewheel-line-height" );
2352
+ d *= p, c *= p, f *= p
2353
+ } else if ( 2 === i.deltaMode ) {
2354
+ var D = e.data( this, "mousewheel-page-height" );
2355
+ d *= D, c *= D, f *= D
2356
+ }
2357
+ if ( m = Math.max( Math.abs( c ), Math.abs( f ) ), (
2358
+ ! o || m < o
2359
+ ) && (
2360
+ o = m, r( i, m ) && (
2361
+ o /= 40
2362
+ )
2363
+ ), r( i, m ) && (
2364
+ d /= 40, f /= 40, c /= 40
2365
+ ), d = Math[d >= 1 ? "floor" : "ceil"]( d / o ), f = Math[f >= 1 ? "floor" : "ceil"]( f / o ), c = Math[c >= 1 ? "floor" : "ceil"]( c / o ), l.settings.normalizeOffset && this.getBoundingClientRect ) {
2366
+ var v = this.getBoundingClientRect();
2367
+ h = t.clientX - v.left, g = t.clientY - v.top
2368
+ }
2369
+ return t.deltaX = f, t.deltaY = c, t.deltaFactor = o, t.offsetX = h, t.offsetY = g, t.deltaMode = 0, s.unshift( t, d, f, c ), n && clearTimeout( n ), n = setTimeout( a, 200 ), (
2370
+ e.event.dispatch || e.event.handle
2371
+ ).apply( this, s )
2372
+ }
2373
+ }
2374
+
2375
+ function a() {
2376
+ o = null
2377
+ }
2378
+
2379
+ function r( e, t ) {
2380
+ return l.settings.adjustOldDeltas && "mousewheel" === e.type && t % 120 == 0
2381
+ }
2382
+
2383
+ var n, o, i = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],
2384
+ s = "onwheel" in document || document.documentMode >= 9 ? ["wheel"] : [
2385
+ "mousewheel",
2386
+ "DomMouseScroll",
2387
+ "MozMousePixelScroll"
2388
+ ], u = Array.prototype.slice;
2389
+ if ( e.event.fixHooks ) {
2390
+ for ( var d = i.length; d; ) {
2391
+ e.event.fixHooks[i[-- d]] = e.event.mouseHooks;
2392
+ }
2393
+ }
2394
+ var l = e.event.special.mousewheel = {
2395
+ version: "3.1.12", setup: function () {
2396
+ if ( this.addEventListener ) {
2397
+ for ( var a = s.length; a; ) {
2398
+ this.addEventListener( s[-- a], t, ! 1 );
2399
+ }
2400
+ } else {
2401
+ this.onmousewheel = t;
2402
+ }
2403
+ e.data( this, "mousewheel-line-height", l.getLineHeight( this ) ), e.data( this, "mousewheel-page-height", l.getPageHeight( this ) )
2404
+ }, teardown: function () {
2405
+ if ( this.removeEventListener ) {
2406
+ for ( var a = s.length; a; ) {
2407
+ this.removeEventListener( s[-- a], t, ! 1 );
2408
+ }
2409
+ } else {
2410
+ this.onmousewheel = null;
2411
+ }
2412
+ e.removeData( this, "mousewheel-line-height" ), e.removeData( this, "mousewheel-page-height" )
2413
+ }, getLineHeight: function ( t ) {
2414
+ var a = e( t ), r = a["offsetParent" in e.fn ? "offsetParent" : "parent"]();
2415
+ return r.length || (
2416
+ r = e( "body" )
2417
+ ), parseInt( r.css( "fontSize" ), 10 ) || parseInt( a.css( "fontSize" ), 10 ) || 16
2418
+ }, getPageHeight: function ( t ) {
2419
+ return e( t ).height()
2420
+ }, settings: {adjustOldDeltas: ! 0, normalizeOffset: ! 0}
2421
+ };
2422
+ e.fn.extend( {
2423
+ mousewheel: function ( e ) {
2424
+ return e ? this.bind( "mousewheel", e ) : this.trigger( "mousewheel" )
2425
+ }, unmousewheel: function ( e ) {
2426
+ return this.unbind( "mousewheel", e )
2427
+ }
2428
+ } )
2429
+ } );
framework/includes/option-types/datetime-picker/static/js/script.js CHANGED
@@ -1,5 +1,5 @@
1
  (function($, fwe) {
2
- jQuery.datetimepicker.setLocale(jQuery('html').attr('lang').split('-').shift());
3
 
4
  var init = function() {
5
  var $container = $(this),
@@ -12,7 +12,7 @@
12
 
13
  fwe.trigger('fw:options:datetime-picker:before-init', data);
14
 
15
- $input.datetimepicker(data.options)
16
  .on('change', function (e) {
17
  fw.options.trigger.changeForEl(
18
  jQuery(e.target).closest('[data-fw-option-type="datetime-picker"]'), {
1
  (function($, fwe) {
2
+ //jQuery.fwDatetimepicker.setLocale(jQuery('html').attr('lang').split('-').shift());
3
 
4
  var init = function() {
5
  var $container = $(this),
12
 
13
  fwe.trigger('fw:options:datetime-picker:before-init', data);
14
 
15
+ $input.fwDatetimepicker(data.options)
16
  .on('change', function (e) {
17
  fw.options.trigger.changeForEl(
18
  jQuery(e.target).closest('[data-fw-option-type="datetime-picker"]'), {
framework/includes/option-types/datetime-range/static/js/script.js CHANGED
@@ -8,8 +8,8 @@
8
  $dateTimeLastWrapper = $dateTimeRange.find('.fw-option-type-datetime-picker:last'),
9
  $dateTimeFirstInput = $dateTimeFirstWrapper.find('input'),
10
  $dateTimeLastInput = $dateTimeLastWrapper.find('input'),
11
- dateTimeFirstPicker = $dateTimeFirstInput.data('xdsoft_datetimepicker'),
12
- dateTimeLastPicker = $dateTimeLastInput.data('xdsoft_datetimepicker');
13
 
14
  fwe.trigger('fw:options:datetime-range:before-init', {el: $dateTimeRange} );
15
 
@@ -65,7 +65,7 @@
65
  return true;
66
  }
67
 
68
- dateTimeFirstPicker.on('open.xdsoft', function(e){
69
 
70
  var firstInputMomentFormat = $dateTimeFirstInput.data('moment-format'),
71
  lastInputMomentFormat = $dateTimeLastInput.data('moment-format'),
8
  $dateTimeLastWrapper = $dateTimeRange.find('.fw-option-type-datetime-picker:last'),
9
  $dateTimeFirstInput = $dateTimeFirstWrapper.find('input'),
10
  $dateTimeLastInput = $dateTimeLastWrapper.find('input'),
11
+ dateTimeFirstPicker = $dateTimeFirstInput.data('fw_xdsoft_datetimepicker'),
12
+ dateTimeLastPicker = $dateTimeLastInput.data('fw_xdsoft_datetimepicker');
13
 
14
  fwe.trigger('fw:options:datetime-range:before-init', {el: $dateTimeRange} );
15
 
65
  return true;
66
  }
67
 
68
+ dateTimeFirstPicker.on('open.fw_xdsoft', function(e){
69
 
70
  var firstInputMomentFormat = $dateTimeFirstInput.data('moment-format'),
71
  lastInputMomentFormat = $dateTimeLastInput.data('moment-format'),
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.7.18';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.7.19';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: unyson
3
  Tags: page builder, editor, drag-and-drop, landing-page, widgets, sidebar, backup, shortcodes, backup, seo, breadcrumbs, portfolio, framework
4
  Requires at least: 4.4
5
  Tested up to: 4.9.6
6
- Stable tag: 2.7.18
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -89,6 +89,9 @@ Yes; Unyson will work with any theme.
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 2.7.18 =
93
  * Fixed [#3480](https://github.com/ThemeFuse/Unyson/issues/3480),[#3474](https://github.com/ThemeFuse/Unyson/issues/3474),[#3468](https://github.com/ThemeFuse/Unyson/issues/3468)
94
 
3
  Tags: page builder, editor, drag-and-drop, landing-page, widgets, sidebar, backup, shortcodes, backup, seo, breadcrumbs, portfolio, framework
4
  Requires at least: 4.4
5
  Tested up to: 4.9.6
6
+ Stable tag: 2.7.19
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
89
 
90
  == Changelog ==
91
 
92
+ = 2.7.19 =
93
+ * Security Issue
94
+
95
  = 2.7.18 =
96
  * Fixed [#3480](https://github.com/ThemeFuse/Unyson/issues/3480),[#3474](https://github.com/ThemeFuse/Unyson/issues/3474),[#3468](https://github.com/ThemeFuse/Unyson/issues/3468)
97
 
unyson.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.io/
5
  * Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
6
- * Version: 2.7.18
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.io/
5
  * Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
6
+ * Version: 2.7.19
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+