MapPress Easy Google Maps - Version 2.49.4

Version Description

BETA = * Fixed: incorrect documentation URLs

Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.49.4
Comparing to
See all releases

Code changes from version 2.48.7 to 2.49.4

css/leaflet.css ADDED
@@ -0,0 +1,636 @@
1
+ /* required styles */
2
+
3
+ .leaflet-pane,
4
+ .leaflet-tile,
5
+ .leaflet-marker-icon,
6
+ .leaflet-marker-shadow,
7
+ .leaflet-tile-container,
8
+ .leaflet-pane > svg,
9
+ .leaflet-pane > canvas,
10
+ .leaflet-zoom-box,
11
+ .leaflet-image-layer,
12
+ .leaflet-layer {
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ }
17
+ .leaflet-container {
18
+ overflow: hidden;
19
+ }
20
+ .leaflet-tile,
21
+ .leaflet-marker-icon,
22
+ .leaflet-marker-shadow {
23
+ -webkit-user-select: none;
24
+ -moz-user-select: none;
25
+ user-select: none;
26
+ -webkit-user-drag: none;
27
+ }
28
+ /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
29
+ .leaflet-safari .leaflet-tile {
30
+ image-rendering: -webkit-optimize-contrast;
31
+ }
32
+ /* hack that prevents hw layers "stretching" when loading new tiles */
33
+ .leaflet-safari .leaflet-tile-container {
34
+ width: 1600px;
35
+ height: 1600px;
36
+ -webkit-transform-origin: 0 0;
37
+ }
38
+ .leaflet-marker-icon,
39
+ .leaflet-marker-shadow {
40
+ display: block;
41
+ }
42
+ /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
43
+ /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
44
+ .leaflet-container .leaflet-overlay-pane svg,
45
+ .leaflet-container .leaflet-marker-pane img,
46
+ .leaflet-container .leaflet-shadow-pane img,
47
+ .leaflet-container .leaflet-tile-pane img,
48
+ .leaflet-container img.leaflet-image-layer {
49
+ max-width: none !important;
50
+ max-height: none !important;
51
+ }
52
+
53
+ .leaflet-container.leaflet-touch-zoom {
54
+ -ms-touch-action: pan-x pan-y;
55
+ touch-action: pan-x pan-y;
56
+ }
57
+ .leaflet-container.leaflet-touch-drag {
58
+ -ms-touch-action: pinch-zoom;
59
+ /* Fallback for FF which doesn't support pinch-zoom */
60
+ touch-action: none;
61
+ touch-action: pinch-zoom;
62
+ }
63
+ .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
64
+ -ms-touch-action: none;
65
+ touch-action: none;
66
+ }
67
+ .leaflet-container {
68
+ -webkit-tap-highlight-color: transparent;
69
+ }
70
+ .leaflet-container a {
71
+ -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
72
+ }
73
+ .leaflet-tile {
74
+ filter: inherit;
75
+ visibility: hidden;
76
+ }
77
+ .leaflet-tile-loaded {
78
+ visibility: inherit;
79
+ }
80
+ .leaflet-zoom-box {
81
+ width: 0;
82
+ height: 0;
83
+ -moz-box-sizing: border-box;
84
+ box-sizing: border-box;
85
+ z-index: 800;
86
+ }
87
+ /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
88
+ .leaflet-overlay-pane svg {
89
+ -moz-user-select: none;
90
+ }
91
+
92
+ .leaflet-pane { z-index: 400; }
93
+
94
+ .leaflet-tile-pane { z-index: 200; }
95
+ .leaflet-overlay-pane { z-index: 400; }
96
+ .leaflet-shadow-pane { z-index: 500; }
97
+ .leaflet-marker-pane { z-index: 600; }
98
+ .leaflet-tooltip-pane { z-index: 650; }
99
+ .leaflet-popup-pane { z-index: 700; }
100
+
101
+ .leaflet-map-pane canvas { z-index: 100; }
102
+ .leaflet-map-pane svg { z-index: 200; }
103
+
104
+ .leaflet-vml-shape {
105
+ width: 1px;
106
+ height: 1px;
107
+ }
108
+ .lvml {
109
+ behavior: url(#default#VML);
110
+ display: inline-block;
111
+ position: absolute;
112
+ }
113
+
114
+
115
+ /* control positioning */
116
+
117
+ .leaflet-control {
118
+ position: relative;
119
+ z-index: 800;
120
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
121
+ pointer-events: auto;
122
+ }
123
+ .leaflet-top,
124
+ .leaflet-bottom {
125
+ position: absolute;
126
+ z-index: 1000;
127
+ pointer-events: none;
128
+ }
129
+ .leaflet-top {
130
+ top: 0;
131
+ }
132
+ .leaflet-right {
133
+ right: 0;
134
+ }
135
+ .leaflet-bottom {
136
+ bottom: 0;
137
+ }
138
+ .leaflet-left {
139
+ left: 0;
140
+ }
141
+ .leaflet-control {
142
+ float: left;
143
+ clear: both;
144
+ }
145
+ .leaflet-right .leaflet-control {
146
+ float: right;
147
+ }
148
+ .leaflet-top .leaflet-control {
149
+ margin-top: 10px;
150
+ }
151
+ .leaflet-bottom .leaflet-control {
152
+ margin-bottom: 10px;
153
+ }
154
+ .leaflet-left .leaflet-control {
155
+ margin-left: 10px;
156
+ }
157
+ .leaflet-right .leaflet-control {
158
+ margin-right: 10px;
159
+ }
160
+
161
+
162
+ /* zoom and fade animations */
163
+
164
+ .leaflet-fade-anim .leaflet-tile {
165
+ will-change: opacity;
166
+ }
167
+ .leaflet-fade-anim .leaflet-popup {
168
+ opacity: 0;
169
+ -webkit-transition: opacity 0.2s linear;
170
+ -moz-transition: opacity 0.2s linear;
171
+ -o-transition: opacity 0.2s linear;
172
+ transition: opacity 0.2s linear;
173
+ }
174
+ .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
175
+ opacity: 1;
176
+ }
177
+ .leaflet-zoom-animated {
178
+ -webkit-transform-origin: 0 0;
179
+ -ms-transform-origin: 0 0;
180
+ transform-origin: 0 0;
181
+ }
182
+ .leaflet-zoom-anim .leaflet-zoom-animated {
183
+ will-change: transform;
184
+ }
185
+ .leaflet-zoom-anim .leaflet-zoom-animated {
186
+ -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
187
+ -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
188
+ -o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
189
+ transition: transform 0.25s cubic-bezier(0,0,0.25,1);
190
+ }
191
+ .leaflet-zoom-anim .leaflet-tile,
192
+ .leaflet-pan-anim .leaflet-tile {
193
+ -webkit-transition: none;
194
+ -moz-transition: none;
195
+ -o-transition: none;
196
+ transition: none;
197
+ }
198
+
199
+ .leaflet-zoom-anim .leaflet-zoom-hide {
200
+ visibility: hidden;
201
+ }
202
+
203
+
204
+ /* cursors */
205
+
206
+ .leaflet-interactive {
207
+ cursor: pointer;
208
+ }
209
+ .leaflet-grab {
210
+ cursor: -webkit-grab;
211
+ cursor: -moz-grab;
212
+ }
213
+ .leaflet-crosshair,
214
+ .leaflet-crosshair .leaflet-interactive {
215
+ cursor: crosshair;
216
+ }
217
+ .leaflet-popup-pane,
218
+ .leaflet-control {
219
+ cursor: auto;
220
+ }
221
+ .leaflet-dragging .leaflet-grab,
222
+ .leaflet-dragging .leaflet-grab .leaflet-interactive,
223
+ .leaflet-dragging .leaflet-marker-draggable {
224
+ cursor: move;
225
+ cursor: -webkit-grabbing;
226
+ cursor: -moz-grabbing;
227
+ }
228
+
229
+ /* marker & overlays interactivity */
230
+ .leaflet-marker-icon,
231
+ .leaflet-marker-shadow,
232
+ .leaflet-image-layer,
233
+ .leaflet-pane > svg path,
234
+ .leaflet-tile-container {
235
+ pointer-events: none;
236
+ }
237
+
238
+ .leaflet-marker-icon.leaflet-interactive,
239
+ .leaflet-image-layer.leaflet-interactive,
240
+ .leaflet-pane > svg path.leaflet-interactive {
241
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
242
+ pointer-events: auto;
243
+ }
244
+
245
+ /* visual tweaks */
246
+
247
+ .leaflet-container {
248
+ background: #ddd;
249
+ outline: 0;
250
+ }
251
+ .leaflet-container a {
252
+ color: #0078A8;
253
+ }
254
+ .leaflet-container a.leaflet-active {
255
+ outline: 2px solid orange;
256
+ }
257
+ .leaflet-zoom-box {
258
+ border: 2px dotted #38f;
259
+ background: rgba(255,255,255,0.5);
260
+ }
261
+
262
+
263
+ /* general typography */
264
+ .leaflet-container {
265
+ font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
266
+ }
267
+
268
+
269
+ /* general toolbar styles */
270
+
271
+ .leaflet-bar {
272
+ box-shadow: 0 1px 5px rgba(0,0,0,0.65);
273
+ border-radius: 4px;
274
+ }
275
+ .leaflet-bar a,
276
+ .leaflet-bar a:hover {
277
+ background-color: #fff;
278
+ border-bottom: 1px solid #ccc;
279
+ width: 26px;
280
+ height: 26px;
281
+ line-height: 26px;
282
+ display: block;
283
+ text-align: center;
284
+ text-decoration: none;
285
+ color: black;
286
+ }
287
+ .leaflet-bar a,
288
+ .leaflet-control-layers-toggle {
289
+ background-position: 50% 50%;
290
+ background-repeat: no-repeat;
291
+ display: block;
292
+ }
293
+ .leaflet-bar a:hover {
294
+ background-color: #f4f4f4;
295
+ }
296
+ .leaflet-bar a:first-child {
297
+ border-top-left-radius: 4px;
298
+ border-top-right-radius: 4px;
299
+ }
300
+ .leaflet-bar a:last-child {
301
+ border-bottom-left-radius: 4px;
302
+ border-bottom-right-radius: 4px;
303
+ border-bottom: none;
304
+ }
305
+ .leaflet-bar a.leaflet-disabled {
306
+ cursor: default;
307
+ background-color: #f4f4f4;
308
+ color: #bbb;
309
+ }
310
+
311
+ .leaflet-touch .leaflet-bar a {
312
+ width: 30px;
313
+ height: 30px;
314
+ line-height: 30px;
315
+ }
316
+ .leaflet-touch .leaflet-bar a:first-child {
317
+ border-top-left-radius: 2px;
318
+ border-top-right-radius: 2px;
319
+ }
320
+ .leaflet-touch .leaflet-bar a:last-child {
321
+ border-bottom-left-radius: 2px;
322
+ border-bottom-right-radius: 2px;
323
+ }
324
+
325
+ /* zoom control */
326
+
327
+ .leaflet-control-zoom-in,
328
+ .leaflet-control-zoom-out {
329
+ font: bold 18px 'Lucida Console', Monaco, monospace;
330
+ text-indent: 1px;
331
+ }
332
+
333
+ .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
334
+ font-size: 22px;
335
+ }
336
+
337
+
338
+ /* layers control */
339
+
340
+ .leaflet-control-layers {
341
+ box-shadow: 0 1px 5px rgba(0,0,0,0.4);
342
+ background: #fff;
343
+ border-radius: 5px;
344
+ }
345
+ .leaflet-control-layers-toggle {
346
+ background-image: url(images/layers.png);
347
+ width: 36px;
348
+ height: 36px;
349
+ }
350
+ .leaflet-retina .leaflet-control-layers-toggle {
351
+ background-image: url(images/layers-2x.png);
352
+ background-size: 26px 26px;
353
+ }
354
+ .leaflet-touch .leaflet-control-layers-toggle {
355
+ width: 44px;
356
+ height: 44px;
357
+ }
358
+ .leaflet-control-layers .leaflet-control-layers-list,
359
+ .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
360
+ display: none;
361
+ }
362
+ .leaflet-control-layers-expanded .leaflet-control-layers-list {
363
+ display: block;
364
+ position: relative;
365
+ }
366
+ .leaflet-control-layers-expanded {
367
+ padding: 6px 10px 6px 6px;
368
+ color: #333;
369
+ background: #fff;
370
+ }
371
+ .leaflet-control-layers-scrollbar {
372
+ overflow-y: scroll;
373
+ overflow-x: hidden;
374
+ padding-right: 5px;
375
+ }
376
+ .leaflet-control-layers-selector {
377
+ margin-top: 2px;
378
+ position: relative;
379
+ top: 1px;
380
+ }
381
+ .leaflet-control-layers label {
382
+ display: block;
383
+ }
384
+ .leaflet-control-layers-separator {
385
+ height: 0;
386
+ border-top: 1px solid #ddd;
387
+ margin: 5px -10px 5px -6px;
388
+ }
389
+
390
+ /* Default icon URLs */
391
+ .leaflet-default-icon-path {
392
+ background-image: url(images/marker-icon.png);
393
+ }
394
+
395
+
396
+ /* attribution and scale controls */
397
+
398
+ .leaflet-container .leaflet-control-attribution {
399
+ background: #fff;
400
+ background: rgba(255, 255, 255, 0.7);
401
+ margin: 0;
402
+ }
403
+ .leaflet-control-attribution,
404
+ .leaflet-control-scale-line {
405
+ padding: 0 5px;
406
+ color: #333;
407
+ }
408
+ .leaflet-control-attribution a {
409
+ text-decoration: none;
410
+ }
411
+ .leaflet-control-attribution a:hover {
412
+ text-decoration: underline;
413
+ }
414
+ .leaflet-container .leaflet-control-attribution,
415
+ .leaflet-container .leaflet-control-scale {
416
+ font-size: 11px;
417
+ }
418
+ .leaflet-left .leaflet-control-scale {
419
+ margin-left: 5px;
420
+ }
421
+ .leaflet-bottom .leaflet-control-scale {
422
+ margin-bottom: 5px;
423
+ }
424
+ .leaflet-control-scale-line {
425
+ border: 2px solid #777;
426
+ border-top: none;
427
+ line-height: 1.1;
428
+ padding: 2px 5px 1px;
429
+ font-size: 11px;
430
+ white-space: nowrap;
431
+ overflow: hidden;
432
+ -moz-box-sizing: border-box;
433
+ box-sizing: border-box;
434
+
435
+ background: #fff;
436
+ background: rgba(255, 255, 255, 0.5);
437
+ }
438
+ .leaflet-control-scale-line:not(:first-child) {
439
+ border-top: 2px solid #777;
440
+ border-bottom: none;
441
+ margin-top: -2px;
442
+ }
443
+ .leaflet-control-scale-line:not(:first-child):not(:last-child) {
444
+ border-bottom: 2px solid #777;
445
+ }
446
+
447
+ .leaflet-touch .leaflet-control-attribution,
448
+ .leaflet-touch .leaflet-control-layers,
449
+ .leaflet-touch .leaflet-bar {
450
+ box-shadow: none;
451
+ }
452
+ .leaflet-touch .leaflet-control-layers,
453
+ .leaflet-touch .leaflet-bar {
454
+ border: 2px solid rgba(0,0,0,0.2);
455
+ background-clip: padding-box;
456
+ }
457
+
458
+
459
+ /* popup */
460
+
461
+ .leaflet-popup {
462
+ position: absolute;
463
+ text-align: center;
464
+ margin-bottom: 20px;
465
+ }
466
+ .leaflet-popup-content-wrapper {
467
+ padding: 1px;
468
+ text-align: left;
469
+ border-radius: 12px;
470
+ }
471
+ .leaflet-popup-content {
472
+ margin: 13px 19px;
473
+ line-height: 1.4;
474
+ }
475
+ .leaflet-popup-content p {
476
+ margin: 18px 0;
477
+ }
478
+ .leaflet-popup-tip-container {
479
+ width: 40px;
480
+ height: 20px;
481
+ position: absolute;
482
+ left: 50%;
483
+ margin-left: -20px;
484
+ overflow: hidden;
485
+ pointer-events: none;
486
+ }
487
+ .leaflet-popup-tip {
488
+ width: 17px;
489
+ height: 17px;
490
+ padding: 1px;
491
+
492
+ margin: -10px auto 0;
493
+
494
+ -webkit-transform: rotate(45deg);
495
+ -moz-transform: rotate(45deg);
496
+ -ms-transform: rotate(45deg);
497
+ -o-transform: rotate(45deg);
498
+ transform: rotate(45deg);
499
+ }
500
+ .leaflet-popup-content-wrapper,
501
+ .leaflet-popup-tip {
502
+ background: white;
503
+ color: #333;
504
+ box-shadow: 0 3px 14px rgba(0,0,0,0.4);
505
+ }
506
+ .leaflet-container a.leaflet-popup-close-button {
507
+ position: absolute;
508
+ top: 0;
509
+ right: 0;
510
+ padding: 4px 4px 0 0;
511
+ border: none;
512
+ text-align: center;
513
+ width: 18px;
514
+ height: 14px;
515
+ font: 16px/14px Tahoma, Verdana, sans-serif;
516
+ color: #c3c3c3;
517
+ text-decoration: none;
518
+ font-weight: bold;
519
+ background: transparent;
520
+ }
521
+ .leaflet-container a.leaflet-popup-close-button:hover {
522
+ color: #999;
523
+ }
524
+ .leaflet-popup-scrolled {
525
+ overflow: auto;
526
+ border-bottom: 1px solid #ddd;
527
+ border-top: 1px solid #ddd;
528
+ }
529
+
530
+ .leaflet-oldie .leaflet-popup-content-wrapper {
531
+ zoom: 1;
532
+ }
533
+ .leaflet-oldie .leaflet-popup-tip {
534
+ width: 24px;
535
+ margin: 0 auto;
536
+
537
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
538
+ filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
539
+ }
540
+ .leaflet-oldie .leaflet-popup-tip-container {
541
+ margin-top: -1px;
542
+ }
543
+
544
+ .leaflet-oldie .leaflet-control-zoom,
545
+ .leaflet-oldie .leaflet-control-layers,
546
+ .leaflet-oldie .leaflet-popup-content-wrapper,
547
+ .leaflet-oldie .leaflet-popup-tip {
548
+ border: 1px solid #999;
549
+ }
550
+
551
+
552
+ /* div icon */
553
+
554
+ .leaflet-div-icon {
555
+ background: #fff;
556
+ border: 1px solid #666;
557
+ }
558
+
559
+
560
+ /* Tooltip */
561
+ /* Base styles for the element that has a tooltip */
562
+ .leaflet-tooltip {
563
+ position: absolute;
564
+ padding: 6px;
565
+ background-color: #fff;
566
+ border: 1px solid #fff;
567
+ border-radius: 3px;
568
+ color: #222;
569
+ white-space: nowrap;
570
+ -webkit-user-select: none;
571
+ -moz-user-select: none;
572
+ -ms-user-select: none;
573
+ user-select: none;
574
+ pointer-events: none;
575
+ box-shadow: 0 1px 3px rgba(0,0,0,0.4);
576
+ }
577
+ .leaflet-tooltip.leaflet-clickable {
578
+ cursor: pointer;
579
+ pointer-events: auto;
580
+ }
581
+ .leaflet-tooltip-top:before,
582
+ .leaflet-tooltip-bottom:before,
583
+ .leaflet-tooltip-left:before,
584
+ .leaflet-tooltip-right:before {
585
+ position: absolute;
586
+ pointer-events: none;
587
+ border: 6px solid transparent;
588
+ background: transparent;
589
+ content: "";
590
+ }
591
+
592
+ /* Directions */
593
+
594
+ .leaflet-tooltip-bottom {
595
+ margin-top: 6px;
596
+ }
597
+ .leaflet-tooltip-top {
598
+ margin-top: -6px;
599
+ }
600
+ .leaflet-tooltip-bottom:before,
601
+ .leaflet-tooltip-top:before {
602
+ left: 50%;
603
+ margin-left: -6px;
604
+ }
605
+ .leaflet-tooltip-top:before {
606
+ bottom: 0;
607
+ margin-bottom: -12px;
608
+ border-top-color: #fff;
609
+ }
610
+ .leaflet-tooltip-bottom:before {
611
+ top: 0;
612
+ margin-top: -12px;
613
+ margin-left: -6px;
614
+ border-bottom-color: #fff;
615
+ }
616
+ .leaflet-tooltip-left {
617
+ margin-left: -6px;
618
+ }
619
+ .leaflet-tooltip-right {
620
+ margin-left: 6px;
621
+ }
622
+ .leaflet-tooltip-left:before,
623
+ .leaflet-tooltip-right:before {
624
+ top: 50%;
625
+ margin-top: -6px;
626
+ }
627
+ .leaflet-tooltip-left:before {
628
+ right: 0;
629
+ margin-right: -12px;
630
+ border-left-color: #fff;
631
+ }
632
+ .leaflet-tooltip-right:before {
633
+ left: 0;
634
+ margin-left: -12px;
635
+ border-right-color: #fff;
636
+ }
css/mappress.css CHANGED
@@ -4,14 +4,6 @@
4
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5
*/
6
7
- /*
8
- -----------------------------------------------------------------------------------
9
- The !important modifier is used because some themes use high-priority selectors
10
- on img tags that can interfere with Google map tiles.
11
- -----------------------------------------------------------------------------------
12
- */
13
-
14
-
15
/*
16
-----------------------------------------------------------------------------------
17
Map layout - table containing map, directions, poi list
@@ -46,37 +38,67 @@
46
display: none;
47
}
48
49
- /* Canvas */
50
- .mapp-canvas {
51
height: 100%;
52
margin: 0px;
53
overflow: hidden !important;
54
padding: 0px !important;
55
position: relative; /* Need for initial dialog position */
56
word-wrap: normal; /* 2013 sets break-word, which interferes w/Google copyright in IE only */
57
}
58
59
.mapp-canvas img {
60
- background-color: transparent !important;
61
box-shadow: none !important; /* 2012 */
62
border-radius: 0px !important; /* 2012 */
63
- max-width: 99999px !important; /* Themes have max-width/max-height set, and some phones can't accept max-width: auto. */
64
- max-height: none !important;
65
- margin: 0px !important;
66
- padding: 0px !important;
67
visibility: inherit !important;
68
}
69
70
.mapp-dialog {
71
background-color: white;
72
color: black;
73
min-height: 40px;
74
opacity: .95;
75
padding: 10px;
76
position: absolute;
77
text-align: center;
78
top: 0; left: 0; right: 0;
79
- z-index: 1;
80
}
81
82
@@ -84,6 +106,118 @@
84
display: inline-block;
85
}
86
87
/*
88
-----------------------------------------------------------------------------------
89
Header
@@ -92,55 +226,55 @@
92
.mapp-header {
93
background-color: #eee;
94
border-bottom: 1px solid lightgray;
95
- height: 40px;
96
- overflow: hidden;
97
}
98
99
.mapp-header-button {
100
- border-left: 1px solid lightgray;
101
cursor: pointer;
102
- float: right;
103
- line-height: 40px;
104
- margin-left: 5px;
105
min-width: 70px;
106
padding: 0 5px 0 5px;
107
text-align: center;
108
text-transform: uppercase;
109
}
110
111
- .mapp-search-wrapper {
112
- padding: 2px;
113
- }
114
115
/*
116
-----------------------------------------------------------------------------------
117
Search
118
-----------------------------------------------------------------------------------
119
*/
120
-
121
.mapp-search {
122
- overflow: hidden;
123
position: relative;
124
- }
125
-
126
- .mapp-search input {
127
- background: white !important; /* 2016 */
128
- border: 1px solid lightgray !important;
129
- box-shadow: none !important;
130
- color: black !important;
131
- line-height: 22px;
132
- margin: 0px !important;
133
- padding: 5px 28px 5px 5px !important;
134
- vertical-align: middle;
135
width: 100%;
136
}
137
138
-
139
- /* Error messages, e.g. invalid address */
140
.mapp-search input.mapp-error {
141
outline: 1px solid red !important;
142
}
143
144
.mapp-search .mapp-geolocate {
145
background: white url('../images/geolocate-2x.png') no-repeat center center;
146
background-size: 18px 18px;
@@ -151,6 +285,58 @@
151
width: 18px;
152
}
153
154
/*
155
-----------------------------------------------------------------------------------
156
Filters
@@ -211,6 +397,10 @@
211
-----------------------------------------------------------------------------------
212
*/
213
214
/* Important is used to override common theme / user agent styles that interfere */
215
.mapp-iw * {
216
color: black;
@@ -262,171 +452,89 @@
262
-----------------------------------------------------------------------------------
263
*/
264
265
.mapp-ib {
266
background-color: white;
267
- box-shadow: 1px 1px 1px 1px #888;
268
box-sizing: border-box;
269
- display: none;
270
outline: none;
271
overflow: auto;
272
padding: 5px 20px 5px 10px;
273
- position: absolute;
274
- z-index: 100; /* WP thickbox has z-index 102, this keeps editor's IB below it */
275
- }
276
-
277
- .mapp-ib .mapp-close {
278
- position: absolute;
279
- right: 0; top: 0;
280
}
281
282
/* Triangular tip */
283
.mapp-ib-tip {
284
- display: none;
285
- position: absolute;
286
border-top: 10px solid white;
287
border-left: 10px solid transparent;
288
border-right: 10px solid transparent;
289
border-bottom: none;
290
- margin-left: -10px;
291
- margin-top: -2px;
292
- padding: 0;
293
width: 0;
294
height: 0;
295
/* ie6 height fix */
296
font-size: 0;
297
line-height: 0;
298
- z-index: 101;
299
}
300
301
302
/*
303
-----------------------------------------------------------------------------------
304
- POI List (new)
305
- Structure:
306
- .mapp-list
307
- .mapp-items
308
- .mapp-item (one for each POI)
309
-----------------------------------------------------------------------------------
310
*/
311
312
- .mapp-list {
313
- background-color: white;
314
- position: relative; /* Needed to scroll list for selection */
315
- z-index: 1;
316
- }
317
-
318
- .mapp-list .mapp-items {
319
- height: 100%;
320
- overflow: auto;
321
- }
322
-
323
- .mapp-list .mapp-item {
324
- border-bottom: 1px solid lightgray;
325
- cursor: pointer;
326
- overflow: hidden;
327
- padding: 5px;
328
- }
329
-
330
- .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
331
- background-color: #fafafa;
332
- }
333
-
334
-
335
- .mapp-list .mapp-item .mapp-title {
336
- overflow: hidden;
337
- vertical-align: middle;
338
- }
339
-
340
- .mapp-list .mapp-item .mapp-icon {
341
- float: left;
342
- margin-right: 5px;
343
- max-width: 24px !important; /* 2012 tries to override */
344
- max-height: 24px;
345
- }
346
-
347
- .mapp-list .mapp-item .mapp-actions {
348
- visibility: hidden;
349
- }
350
-
351
- .mapp-list .mapp-item:hover .mapp-actions {
352
- color: black;
353
- visibility: visible;
354
- }
355
-
356
- .mapp-list .dashicons {
357
- color: #82878c;
358
}
359
360
- .mapp-list-footer {
361
- margin-top: 10px;
362
- text-align: center;
363
}
364
365
- .mapp-list .mapp-next, .mapp-list .mapp-prev {
366
- background-color: #f7f7f7;
367
- border: 1px solid #ccc;
368
- color: gray;
369
- cursor: pointer;
370
- display: inline-block;
371
- line-height: 1;
372
- margin: 0 10px 0 10px;
373
- padding: 5px;
374
- text-align: center;
375
- user-select: none;
376
}
377
378
- .mapp-list .mapp-next.mapp-active, .mapp-list .mapp-prev.mapp-active {
379
- background-color: #e8e8e8;
380
- color: black;
381
}
382
383
- .mapp-list .mapp-msg {
384
- text-align: center;
385
- }
386
387
/*
388
-----------------------------------------------------------------------------------
389
- layouts
390
-----------------------------------------------------------------------------------
391
*/
392
393
- .mapp-left .mapp-list {
394
- border-right: 1px solid lightgray;
395
- float: left;
396
- height: 100%;
397
- max-width: 45%;
398
- width: 250px;
399
- }
400
-
401
- .mapp-left.mapp-mini .mapp-list {
402
- display: none !important; /* Override editor */
403
- }
404
-
405
- .mapp-inline .mapp-list .mapp-items {
406
- border-top: 1px solid lightgray;
407
- max-height: 300px;
408
- }
409
-
410
/*
411
- -----------------------------------------------------------------------------------
412
- Views
413
- -----------------------------------------------------------------------------------
414
- */
415
-
416
- .mapp-view-filters .mapp-filters {
417
- display: block;
418
- }
419
-
420
- .mapp-view-menu .mapp-menu {
421
display: block;
422
}
423
424
- .mapp-view-directions .mapp-directions {
425
- display: block;
426
- }
427
-
428
- .mapp-view-directions .mapp-list {
429
- display: none;
430
}
431
432
.mapp-left [data-mapp-action="view-map"] { display: none; }
@@ -505,9 +613,6 @@
505
Custom controls
506
-----------------------------------------------------------------------------------
507
*/
508
- .mapp-controls {
509
- display: none;
510
- }
511
512
.mapp-menu-toggle {
513
background: white url('../images/menu-2x.png') no-repeat center center;
@@ -516,10 +621,12 @@
516
color: #777;
517
cursor: pointer;
518
height: 29px;
519
- margin: 10px 0 0 10px;
520
outline: none;
521
outline: none; /* Prevent focus outline */
522
width: 32px;
523
}
524
525
.mapp-menu {
@@ -531,9 +638,9 @@
531
overflow: auto;
532
padding: 5px 0 5px 0;
533
position: absolute;
534
- top: 0 !important; left: 0 !important; bottom: 0 !important;
535
width: 150px;
536
- z-index: 10000000 !important;
537
}
538
539
.mapp-menu-item {
@@ -578,9 +685,9 @@
578
-----------------------------------------------------------------------------------
579
*/
580
581
- .mapp-align-left { float: left !important; }
582
- .mapp-align-right { float: right !important; }
583
- .mapp-align-center { margin-left: auto !important; margin-right: auto !important; }
584
.mapp-align-default {}
585
586
.mapp-close {
4
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5
*/
6
7
/*
8
-----------------------------------------------------------------------------------
9
Map layout - table containing map, directions, poi list
38
display: none;
39
}
40
41
+ /*
42
+ -----------------------------------------------------------------------------------
43
+ Prevent theme conflicts with Google maps. The !important modifier is used because some
44
+ themes use high-priority (very specific) selectors that interfere.
45
+ -----------------------------------------------------------------------------------
46
+ */
47
+
48
+ .mapp-canvas-panel {
49
height: 100%;
50
margin: 0px;
51
overflow: hidden !important;
52
padding: 0px !important;
53
position: relative; /* Need for initial dialog position */
54
+ }
55
+
56
+ .mapp-canvas {
57
+ height: 100%;
58
word-wrap: normal; /* 2013 sets break-word, which interferes w/Google copyright in IE only */
59
}
60
61
.mapp-canvas img {
62
box-shadow: none !important; /* 2012 */
63
border-radius: 0px !important; /* 2012 */
64
visibility: inherit !important;
65
}
66
67
+ .mapp-layout.mapp-google .mapp-canvas img {
68
+ background-color: transparent;
69
+ margin: 0px;
70
+ max-height: none;
71
+ padding: 0px;
72
+ }
73
+
74
+ .leaflet-container .leaflet-control-attribution * {
75
+ font-size: 8px;
76
+ }
77
+
78
+ /* Prevent theme interference with leaflet */
79
+ .leaflet-popup-close-button {
80
+ box-shadow: none !important; /* 2016, 2017 */
81
+ }
82
+
83
+
84
+ @media only screen and (min--moz-device-pixel-ratio: 2),
85
+ only screen and (-o-min-device-pixel-ratio: 2/1),
86
+ only screen and (-webkit-min-device-pixel-ratio: 2),
87
+ only screen and (min-device-pixel-ratio: 2) {
88
+ background-size: 640px 640px;
89
+ }
90
+
91
.mapp-dialog {
92
background-color: white;
93
color: black;
94
+ display: none;
95
min-height: 40px;
96
opacity: .95;
97
padding: 10px;
98
position: absolute;
99
text-align: center;
100
top: 0; left: 0; right: 0;
101
+ z-index: 1000;
102
}
103
104
106
display: inline-block;
107
}
108
109
+ /*
110
+ -----------------------------------------------------------------------------------
111
+ POI List (new)
112
+ Structure:
113
+ .mapp-list
114
+ .mapp-list-header
115
+ .mapp-items
116
+ .mapp-item (one for each POI)
117
+ -----------------------------------------------------------------------------------
118
+ */
119
+
120
+ .mapp-list {
121
+ background-color: white;
122
+ overflow: auto;
123
+ position: relative; /* Needed to scroll list for selection */
124
+ z-index: 1;
125
+ }
126
+
127
+ .mapp-list .mapp-list-header {
128
+ padding: 5px;
129
+ text-align: center;
130
+ }
131
+
132
+ .mapp-list .mapp-items {
133
+ }
134
+
135
+ .mapp-list .mapp-item {
136
+ border-bottom: 1px solid lightgray;
137
+ cursor: pointer;
138
+ overflow: hidden;
139
+ padding: 5px;
140
+ }
141
+
142
+ .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
143
+ background-color: #fafafa;
144
+ }
145
+
146
+ .mapp-list .mapp-item .mapp-title {
147
+ overflow: hidden;
148
+ vertical-align: middle;
149
+ }
150
+
151
+ .mapp-list .mapp-item .mapp-icon {
152
+ float: left;
153
+ margin-right: 5px;
154
+ max-width: 24px !important; /* 2012 tries to override */
155
+ max-height: 24px;
156
+ }
157
+
158
+ .mapp-list .mapp-item .mapp-actions {
159
+ visibility: hidden;
160
+ }
161
+
162
+ .mapp-list .mapp-item .mapp-actions a {
163
+ text-decoration: none;
164
+ }
165
+
166
+ .mapp-list .mapp-item:hover .mapp-actions {
167
+ color: black;
168
+ visibility: visible;
169
+ }
170
+
171
+ .mapp-list .dashicons {
172
+ color: #82878c;
173
+ }
174
+
175
+ .mapp-list-footer {
176
+ margin-top: 10px;
177
+ text-align: center;
178
+ }
179
+
180
+ .mapp-list .mapp-next, .mapp-list .mapp-prev {
181
+ background-color: #f7f7f7;
182
+ border: 1px solid #ccc;
183
+ color: gray;
184
+ cursor: pointer;
185
+ display: inline-block;
186
+ line-height: 1;
187
+ margin: 0 10px 0 10px;
188
+ padding: 5px;
189
+ text-align: center;
190
+ user-select: none;
191
+ }
192
+
193
+ .mapp-list .mapp-next.mapp-active, .mapp-list .mapp-prev.mapp-active {
194
+ background-color: #e8e8e8;
195
+ color: black;
196
+ }
197
+
198
+ .mapp-list .mapp-msg {
199
+ text-align: center;
200
+ }
201
+
202
+ /*
203
+ -----------------------------------------------------------------------------------
204
+ layouts
205
+ -----------------------------------------------------------------------------------
206
+ */
207
+
208
+ .mapp-left .mapp-list {
209
+ border-right: 1px solid lightgray;
210
+ float: left;
211
+ height: 100%;
212
+ max-width: 45%;
213
+ width: 250px;
214
+ }
215
+
216
+ .mapp-inline .mapp-list {
217
+ border-top: 1px solid lightgray;
218
+ max-height: 300px;
219
+ }
220
+
221
/*
222
-----------------------------------------------------------------------------------
223
Header
226
.mapp-header {
227
background-color: #eee;
228
border-bottom: 1px solid lightgray;
229
+ display: table;
230
+ height: 36px;
231
+ width: 100%;
232
+ }
233
+
234
+ .mapp-header > div {
235
+ display: table-row;
236
+ width: 100%;
237
+ }
238
+
239
+ .mapp-header > div > div {
240
+ display: table-cell;
241
+ padding: 0;
242
}
243
244
.mapp-header-button {
245
cursor: pointer;
246
+ height: 35px;
247
+ line-height: 35px;
248
min-width: 70px;
249
padding: 0 5px 0 5px;
250
text-align: center;
251
text-transform: uppercase;
252
}
253
254
255
/*
256
-----------------------------------------------------------------------------------
257
Search
258
-----------------------------------------------------------------------------------
259
*/
260
.mapp-search {
261
position: relative;
262
width: 100%;
263
}
264
265
.mapp-search input.mapp-error {
266
outline: 1px solid red !important;
267
}
268
269
+ .mapp-search input.mapp-places {
270
+ background-color: white !important; /* Algolia uses 240,240,240 */
271
+ color: black !important; /* Theme */
272
+ }
273
+
274
+ .mapp-search ::placeholder {
275
+ color: black !important; /* Themes */
276
+ }
277
+
278
.mapp-search .mapp-geolocate {
279
background: white url('../images/geolocate-2x.png') no-repeat center center;
280
background-size: 18px 18px;
285
width: 18px;
286
}
287
288
+ .mapp-search .algolia-autocomplete {
289
+ display: block !important;
290
+ }
291
+
292
+ /* Important is used to override themes */
293
+ input.mapp-aa-input, input.mapp-aa-hint {
294
+ border: 1px solid #bbb ;
295
+ box-shadow: none ;
296
+ color: black ;
297
+ height: 34px ;
298
+ line-height: 34px ;
299
+ margin: 0 ;
300
+ padding: 5px 28px 5px 5px ;
301
+ vertical-align: middle ;
302
+ width: 100% ;
303
+ }
304
+
305
+ .mapp-autocomplete, .mapp-autocomplete * {
306
+ width: 100%;
307
+ }
308
+
309
+ .mapp-aa-dropdown-menu {
310
+ background-color: white;
311
+ border: 1px solid lightgray;
312
+ color: #8c8c8c;
313
+ cursor: pointer;
314
+ width: 100%;
315
+ z-index: 1001 !important; /* Widget default is 100 which is too low */
316
+ }
317
+
318
+ .mapp-aa-suggestion {
319
+ border-top: 1px solid #e6e6e6;
320
+ overflow: hidden !important;
321
+ padding: 5px;
322
+ text-overflow: ellipsis;
323
+ white-space: nowrap !important;
324
+ }
325
+
326
+ .mapp-aa-suggestion span, .mapp-aa-suggestion p {
327
+ white-space: nowrap !important;
328
+ }
329
+
330
+ /* No results */
331
+ .mapp-aa-dropdown-menu .list-group-item {
332
+ padding: 5px;
333
+ }
334
+
335
+
336
+ .mapp-aa-cursor {
337
+ background-color: #fafafa;
338
+ }
339
+
340
/*
341
-----------------------------------------------------------------------------------
342
Filters
397
-----------------------------------------------------------------------------------
398
*/
399
400
+ .mapp-leaflet .mapp-iw {
401
+ max-width: 250px;
402
+ }
403
+
404
/* Important is used to override common theme / user agent styles that interfere */
405
.mapp-iw * {
406
color: black;
452
-----------------------------------------------------------------------------------
453
*/
454
455
+ .mapp-ib-wrapper {
456
+ display: none;
457
+ position: absolute;
458
+ z-index: 100;
459
+ }
460
+
461
+ /* In fullscreen Google sets map z-index very high */
462
+ :fullscreen ~ .mapp-ib-wrapper { z-index: 10000000000; }
463
+ :-webkit-full-screen ~ .mapp-ib-wrapper { z-index: 10000000000; }
464
+ :-moz-full-screen ~ .mapp-ib-wrapper { z-index: 10000000000; }
465
+ :-ms-fullscreen ~ .mapp-ib-wrapper { z-index: 10000000000; }
466
+
467
.mapp-ib {
468
background-color: white;
469
+ border: 1px solid lightgray;
470
box-sizing: border-box;
471
+ max-width: 450px;
472
outline: none;
473
overflow: auto;
474
padding: 5px 20px 5px 10px;
475
}
476
477
/* Triangular tip */
478
.mapp-ib-tip {
479
+ height: 10px;
480
+ z-index: 1;
481
+ }
482
+
483
+ .mapp-ib-tip:after {
484
border-top: 10px solid white;
485
border-left: 10px solid transparent;
486
border-right: 10px solid transparent;
487
border-bottom: none;
488
+ content: "";
489
width: 0;
490
height: 0;
491
/* ie6 height fix */
492
font-size: 0;
493
+ left: 50%;
494
line-height: 0;
495
+ margin-left: -10px;
496
+ margin-top: -1px;
497
+ position: absolute;
498
}
499
500
501
/*
502
-----------------------------------------------------------------------------------
503
+ Views
504
-----------------------------------------------------------------------------------
505
*/
506
507
+ .mapp-view-filters .mapp-filters {
508
+ display: block;
509
+ z-index: 1001;
510
}
511
512
+ .mapp-view-menu .mapp-menu {
513
+ display: block;
514
}
515
516
+ .mapp-view-directions .mapp-directions {
517
+ display: block;
518
}
519
520
+ .mapp-view-directions .mapp-list {
521
+ display: none;
522
}
523
524
525
/*
526
-----------------------------------------------------------------------------------
527
+ Mini view - on hold
528
-----------------------------------------------------------------------------------
529
*/
530
531
/*
532
+ .mapp-has-filters .mapp-header, .mapp-has-search .mapp-header, .mapp-view-mini .mapp-header {
533
display: block;
534
}
535
536
+ .mapp-left.mapp-mini .mapp-list {
537
+ display: none !important;
538
}
539
540
.mapp-left [data-mapp-action="view-map"] { display: none; }
613
Custom controls
614
-----------------------------------------------------------------------------------
615
*/
616
617
.mapp-menu-toggle {
618
background: white url('../images/menu-2x.png') no-repeat center center;
621
color: #777;
622
cursor: pointer;
623
height: 29px;
624
outline: none;
625
outline: none; /* Prevent focus outline */
626
+ position: absolute;
627
+ top: 10px; left: 10px; bottom: 0; right: 0;
628
width: 32px;
629
+ z-index: 1000;
630
}
631
632
.mapp-menu {
638
overflow: auto;
639
padding: 5px 0 5px 0;
640
position: absolute;
641
+ top: 0; left: 0; bottom: 0;
642
width: 150px;
643
+ z-index: 1001;
644
}
645
646
.mapp-menu-item {
685
-----------------------------------------------------------------------------------
686
*/
687
688
+ .mapp-align-left { float: left; }
689
+ .mapp-align-right { float: right; }
690
+ .mapp-align-center { margin-left: auto; margin-right: auto; }
691
.mapp-align-default {}
692
693
.mapp-close {
css/mappress_admin.css CHANGED
@@ -14,37 +14,36 @@
14
-----------------------------------------------------------------------------------
15
*/
16
17
- .mapp-m-panel input[type="button"] {
18
vertical-align: middle;
19
}
20
21
- #mapp_m_edit_panel td {
22
padding-right: 5px;
23
}
24
25
- .mapp-m-panel hr {
26
- background-color: lightgray; /* Some browsers used background color */
27
- border: 0;
28
- color: lightgray; /* IE uses color */
29
- height: 1px;
30
}
31
32
- .mapp-m-map-list {
33
- width: 100%;
34
- height: 100%;
35
margin-top: 5px;
36
- overflow: auto;
37
}
38
39
- .mapp-m-actions {
40
visibility: hidden;
41
}
42
43
- .mobile .mapp-m-actions {
44
visibility: visible;
45
}
46
47
- tr:hover > td > .mapp-m-actions {
48
visibility: visible;
49
}
50
@@ -54,6 +53,28 @@ tr:hover > td > .mapp-m-actions {
54
-----------------------------------------------------------------------------------
55
*/
56
57
.mapp-edit .mapp-layout {
58
border: 1px solid lightgray;
59
margin: 5px 0 0 0;
@@ -105,14 +126,18 @@ tr:hover > td > .mapp-m-actions {
105
106
.mapp-poi-edit {}
107
108
- .mapp-poi-edit a {
109
- vertical-align: middle;
110
}
111
112
.mapp-poi-edit .mapp-poi-toolbar {
113
margin-top: 5px;
114
}
115
116
/* Table used to align title/icon */
117
.mapp-poi-edit .mapp-table {
118
width: 100%;
@@ -124,8 +149,13 @@ tr:hover > td > .mapp-m-actions {
124
vertical-align: middle;
125
}
126
127
.mapp-poi-edit .mapp-poi-body {
128
- width: 100%;
129
height: 143px;
130
}
131
@@ -133,6 +163,10 @@ tr:hover > td > .mapp-m-actions {
133
cursor: pointer;
134
}
135
136
/* Border around tinyMCE editor (WP removes it). mceLayout is for WP < 3.9 */
137
.mapp-poi-edit .mce-panel, .mapp-poi-edit table.mceLayout {
138
border: 1px solid lightgray !important;
@@ -150,19 +184,46 @@ tr:hover > td > .mapp-m-actions {
150
-----------------------------------------------------------------------------------
151
*/
152
153
- .mapp-settings-screen #mapp0 {
154
max-width: 600px;
155
}
156
157
- .mapp-settings-screen input.button {
158
- vertical-align: middle !important;
159
- }
160
-
161
.mapp-settings-screen label {
162
margin-right: 10px;
163
white-space: nowrap;
164
}
165
166
/* MapPress tables */
167
.mapp-settings-screen .form-table table {
168
border: 1px solid #dfdfdf;
@@ -172,7 +233,6 @@ tr:hover > td > .mapp-m-actions {
172
width: auto;
173
}
174
175
-
176
.mapp-settings-screen .form-table table th {
177
font-weight: bold;
178
background-color: rgb(241, 241, 241);
@@ -191,6 +251,13 @@ tr:hover > td > .mapp-m-actions {
191
padding: 5px;
192
}
193
194
/* Sort handles */
195
.mapp-handle {
196
cursor: move;
@@ -206,6 +273,99 @@ tr:hover > td > .mapp-m-actions {
206
color:red;
207
}
208
209
210
/*
211
-----------------------------------------------------------------------------------
@@ -218,11 +378,6 @@ tr:hover > td > .mapp-m-actions {
218
z-index: 100002;
219
}
220
221
- /* Prevent scrollbars on body when popup is open */
222
- body.mapp-popup-open {
223
- overflow: hidden;
224
- }
225
-
226
.mapp-popup {
227
background-color: white;
228
border: 1px solid lightgray;
@@ -230,7 +385,27 @@ body.mapp-popup-open {
230
box-sizing: content-box;
231
display: inline-block;
232
padding: 5px 20px 5px 5px;
233
- z-index: 100001;
234
}
235
236
.mapp-popup-backdrop {
@@ -243,24 +418,6 @@ body.mapp-popup-open {
243
z-index: 100000; /* WP adminbar is 99999 */
244
}
245
246
- /* Max size */
247
- .mapp-popup-max {
248
- position: fixed;
249
- top: 10%; bottom: 10%; left: 20%; right: 20%;
250
- }
251
-
252
- /* Max size on small screens */
253
- @media screen and (max-width: 900px) {
254
- .mapp-popup-max {
255
- top: 10%; bottom: 10%; left: 10%; right: 10%;
256
- }
257
- }
258
- @media screen and (max-width: 640px), screen and (max-height: 400px) {
259
- .mapp-popup-max {
260
- top: 0; bottom: 0; left: 0; right: 0;
261
- }
262
- }
263
-
264
/*
265
-----------------------------------------------------------------------------------
266
Icon Picker
14
-----------------------------------------------------------------------------------
15
*/
16
17
+ .mapp-media input[type="button"] {
18
vertical-align: middle;
19
}
20
21
+ .mapp-media-edit-panel {
22
+ display:none;
23
+ }
24
+
25
+ .mapp-media-edit-panel td {
26
padding-right: 5px;
27
}
28
29
+ .mapp-media-toolbar {
30
+ margin-top: 5px;
31
}
32
33
+ .mapp-media-list {
34
+ border-top: 1px solid lightgray;
35
margin-top: 5px;
36
}
37
38
+ .mapp-media-actions {
39
visibility: hidden;
40
}
41
42
+ .mobile .mapp-media-actions {
43
visibility: visible;
44
}
45
46
+ tr:hover > td > .mapp-media-actions {
47
visibility: visible;
48
}
49
53
-----------------------------------------------------------------------------------
54
*/
55
56
+ .mapp-edit .mapp-list-header {
57
+ background-color: #f1f1f1;
58
+ border-bottom: 1px solid lightgray;
59
+ padding: 10px;
60
+ text-align: left;
61
+ }
62
+
63
+ .mapp-edit .mapp-list-header a {
64
+ color: black;
65
+ font-size: 12px;
66
+ text-decoration: none;
67
+ }
68
+
69
+ .mapp-edit .mapp-list-header a:hover {
70
+ text-decoration: underline;
71
+ }
72
+
73
+ .mapp-edit .mapp-list-header .dashicons {
74
+ font-size: 16px;
75
+ vertical-align: middle;
76
+ }
77
+
78
.mapp-edit .mapp-layout {
79
border: 1px solid lightgray;
80
margin: 5px 0 0 0;
126
127
.mapp-poi-edit {}
128
129
+ .mapp-poi-edit a, .mapp-poi-edit button, .mapp-poi-edit input[type="button"] {
130
+ vertical-align: middle !important;
131
}
132
133
.mapp-poi-edit .mapp-poi-toolbar {
134
margin-top: 5px;
135
}
136
137
+ .mapp-poi-edit .mapp-poi-toolbar a,.mapp-poi-edit .mapp-poi-toolbar .button {
138
+ margin-right: 5px;
139
+ }
140
+
141
/* Table used to align title/icon */
142
.mapp-poi-edit .mapp-table {
143
width: 100%;
149
vertical-align: middle;
150
}
151
152
+ .mapp-poi-edit [data-mapp-iconpicker], .mapp-poi-edit [data-mapp-colorpicker] {
153
+ margin-left: 5px !important;
154
+ }
155
+
156
+
157
.mapp-poi-edit .mapp-poi-body {
158
+ width: 306px;
159
height: 143px;
160
}
161
163
cursor: pointer;
164
}
165
166
+ .mapp-poi-edit .mapp-poi-visual.mapp-active, .mapp-poi-edit .mapp-poi-html.mapp-active {
167
+ color: black;
168
+ }
169
+
170
/* Border around tinyMCE editor (WP removes it). mceLayout is for WP < 3.9 */
171
.mapp-poi-edit .mce-panel, .mapp-poi-edit table.mceLayout {
172
border: 1px solid lightgray !important;
184
-----------------------------------------------------------------------------------
185
*/
186
187
+ .mapp-settings-screen #mapp0-layout {
188
max-width: 600px;
189
}
190
191
.mapp-settings-screen label {
192
margin-right: 10px;
193
white-space: nowrap;
194
}
195
196
+ .mapp-settings-toolbar {
197
+ margin-top: 10px;
198
+ }
199
+
200
+ /* Simulate postboxes */
201
+ .mapp-settings-screen h2 {
202
+ background-color: white;
203
+ border-bottom: 1px solid #eee;
204
+ font-size: 14px;
205
+ margin-bottom: 0;
206
+ padding: 8px 12px 8px 12px;
207
+ }
208
+
209
+ .mapp-settings-screen .form-table {
210
+ margin-top: 0;
211
+ }
212
+
213
+ .mapp-settings-screen .form-table th {
214
+ background-color: white;
215
+ padding: 16px 12px 16px 12px;
216
+ }
217
+
218
+ .mapp-settings-screen .form-table td {
219
+ background-color: white;
220
+ padding: 16px 12px 16px 12px;
221
+ }
222
+
223
+ .mapp-settings-screen .button {
224
+ vertical-align: middle;
225
+ }
226
+
227
/* MapPress tables */
228
.mapp-settings-screen .form-table table {
229
border: 1px solid #dfdfdf;
233
width: auto;
234
}
235
236
.mapp-settings-screen .form-table table th {
237
font-weight: bold;
238
background-color: rgb(241, 241, 241);
251
padding: 5px;
252
}
253
254
+ a.mapp-help {
255
+ display: inline-block;
256
+ margin-left: 2px;
257
+ text-decoration: none;
258
+ }
259
+
260
+
261
/* Sort handles */
262
.mapp-handle {
263
cursor: move;
273
color:red;
274
}
275
276
+ /*
277
+ -----------------------------------------------------------------------------------
278
+ Template Editor
279
+ -----------------------------------------------------------------------------------
280
+ */
281
+
282
+ .mapp-tp-detail {
283
+ height: 600px;
284
+ width: 800px;
285
+ max-width: 90%;
286
+ max-height: 90%;
287
+ padding: 5px;
288
+ }
289
+
290
+ .mapp-tp-detail .mapp-tp-name {
291
+ font-weight: bold;
292
+ margin: 5px 0 5px 0;
293
+ text-transform: uppercase;
294
+ }
295
+
296
+ .mapp-tp-detail .mapp-tp-path {
297
+ font-size: 12px;
298
+ font-style: italic;
299
+ margin-bottom: 5px;
300
+ }
301
+
302
+ .mapp-tp-detail code {
303
+ border: 1px solid gray;
304
+ margin-right: 10px;
305
+ }
306
+
307
+ .mapp-tp-detail .mapp-tp-toolbar {
308
+ border-top: 1px solid lightgray;
309
+ margin-top: 5px;
310
+ padding: 5px;
311
+ }
312
+
313
+ .mapp-tp-detail .mapp-tp-toolbar input.button {
314
+ margin-right: 4px;
315
+ }
316
+
317
+ .mapp-tp-detail .mapp-tab-standard .CodeMirror {
318
+ background: #f7f7f7;
319
+ height: auto;
320
+ position: absolute;
321
+ top: 100px; bottom: 50px; left: 5px; right: 5px;
322
+ }
323
+
324
+ .mapp-tp-detail .mapp-tab-content .CodeMirror {
325
+ position: absolute;
326
+ top: 150px; bottom: 50px; left: 5px; right: 5px;
327
+ }
328
+
329
+ .mapp-tp-detail .mapp-tp-toolbar {
330
+ position: absolute;
331
+ bottom: 5px; left: 5px; right: 5px;
332
+ }
333
+
334
+ /*
335
+ -----------------------------------------------------------------------------------
336
+ Tabs
337
+ -----------------------------------------------------------------------------------
338
+ */
339
+
340
+ .mapp-tabs .mapp-tab-label {
341
+ background-color: white;
342
+ border-left: 1px solid lightgray;
343
+ border-right: 1px solid lightgray;
344
+ border-top: 1px solid lightgray;
345
+ cursor: pointer;
346
+ display: inline-block;
347
+ margin: 0;
348
+ padding: 10px;
349
+ position: relative;
350
+ top: 1px;
351
+ z-index: 1;
352
+ }
353
+ .mapp-tabs .mapp-tab-label.mapp-active {
354
+ border-bottom: 1px solid white;
355
+ font-weight: bold;
356
+ }
357
+
358
+ .mapp-tabs .mapp-tab {
359
+ background-color: white;
360
+ border-top: 1px solid lightgray;
361
+ clear: both;
362
+ display: none;
363
+ padding: 10px;
364
+ }
365
+
366
+ .mapp-tabs .mapp-tab.mapp-active {
367
+ display: block;
368
+ }
369
370
/*
371
-----------------------------------------------------------------------------------
378
z-index: 100002;
379
}
380
381
.mapp-popup {
382
background-color: white;
383
border: 1px solid lightgray;
385
box-sizing: content-box;
386
display: inline-block;
387
padding: 5px 20px 5px 5px;
388
+ z-index: 100005; /* Keep above popup-max */
389
+ }
390
+
391
+ .mapp-popup-fixed {
392
+ background-color: white;
393
+ border: 2px solid black;
394
+ position: fixed;
395
+ left: 50%;
396
+ top: 50%;
397
+ transform: translate(-50%, -50%);
398
+ z-index: 100002;
399
+ }
400
+
401
+ .mapp-popup-max {
402
+ transform: none;
403
+ top: 80px; left: 80px; bottom: 80px; right: 80px;
404
+ }
405
+
406
+ /* Prevent scrollbars on body when popup is open */
407
+ body.mapp-popup-modal {
408
+ overflow: hidden;
409
}
410
411
.mapp-popup-backdrop {
418
z-index: 100000; /* WP adminbar is 99999 */
419
}
420
421
/*
422
-----------------------------------------------------------------------------------
423
Icon Picker
forms/map_editor.php CHANGED
@@ -1,64 +1,58 @@
1
- <div class='mapp-edit'>
2
- <div class='mapp-table mapp-searchbox'>
3
- <div>
4
- <div class='mapp-max'>
5
- <input style='width:100%' type='text' id='mapp_e_saddr' placeholder='<?php _e('Add POI', 'mappress-google-maps-for-wordpress'); ?>'/>
6
- </div>
7
- <div>
8
- <button id='mapp_e_search' class='button button-primary mapp-search-button'></button>
9
- </div>
10
- <?php if (Mappress::ssl()) : ?>
11
- <div>
12
- <button id='mapp_e_myloc' class='button mapp-geolocate-button' title='<?php _e('My location', 'mappress-google-maps-for-wordpress');?>'></button>
13
- </div>
14
- <?php endif; ?>
15
- </div>
16
- </div>
17
- <div id='mapp_e_saddr_err' style='display:none'></div>
18
-
19
- <?php echo $map->display(); ?>
20
- </div>
21
22
23
- <script type='text/template' id='mapp-tmpl-poi-edit'>
24
- <div class='mapp-poi-edit'>
25
- <div class='mapp-table'>
26
- <div>
27
- <div><input class='mapp-poi-title' type='text' value='{{poi.title}}'></div>
28
- <# if (!poi.type) { #>
29
- <div><img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'></div>
30
- <# } else if (poi.isPoly()) { #>
31
- <div><span data-mapp-colorpicker class='mapp-colorpicker-toggle' data-mapp-color='{{{colors.color}}}' data-mapp-opacity='{{{colors.opacity}}}' data-mapp-weight='{{{colors.weight}}}' tabindex='0'></span></div>
32
- <# } #>
33
</div>
34
</div>
35
36
- <# if (poi.type == 'kml') { #>
37
- <div class='mapp-poi-kml'>
38
- <input class='mapp-poi-url' type='text' readonly='readonly' value='<# print( (poi.kml) ? poi.kml.url : '' );#>'/>
39
</div>
40
- <# } #>
41
42
- <div>
43
- <a data-mapp-action='poi-visual'><?php _e('Visual', 'mappress-google-maps-for-wordpress'); ?></a> | <a data-mapp-action='poi-html'><?php _e('HTML', 'mappress-google-maps-for-wordpress');?></a>
44
- </div>
45
46
- <textarea id='mapp-poi-body' class='mapp-poi-body' rows='10'>{{ poi.body }}</textarea>
47
48
- <div class='mapp-poi-toolbar'>
49
- <button data-mapp-action='poi-save' class='button button-primary'><?php _e('Save', 'mappress-google-maps-for-wordpress'); ?></button>
50
- <button data-mapp-action='poi-cancel' class='button'><?php _e('Cancel', 'mappress-google-maps-for-wordpress'); ?></button>
51
- <a href='#' data-mapp-action='poi-remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
52
- </div>
53
- </div>
54
- </script>
55
56
- <script type='text/template' id='mapp-tmpl-poi-list'>
57
- <div class='mapp-items'>
58
- <# _.forEach(pois, function(poi, i) { #>
59
- <div class='mapp-item' data-mapp-action='open' data-mapp-poi='{{{i}}}'>
60
- <img class='mapp-icon' src='<# print(mapp.Icons.getUrl(poi.iconid)); #>'>
61
- <div class='mapp-title'>{{poi.title}}</div>
62
</div>
63
- <# }); #>
64
</script>
1
+ <div class='mapp-edit'></div>
2
3
+ <script type='text/template' id='mapp-tmpl-edit-map'>
4
+ <?php echo Mappress_Template::get_template('map', array('map' => $map)); ?>
5
+ </script>
6
7
+ <script type='text/template' id='mapp-tmpl-edit-loop'>
8
+ <# if (mappl10n.options.pro) { #>
9
+ <div class='mapp-list-header'>
10
+ <span class="dashicons dashicons-admin-page"></span>
11
+ <a href='#' data-mapp-editor='layer'><?php esc_attr_e('Add KML', 'mappress-google-maps-for-wordpress'); ?></a>
12
</div>
13
+ <# } #>
14
+ <div class='mapp-items'>
15
+ <# _.forEach(pois, function(poi, i) { #>
16
+ <div class='mapp-item' data-mapp-action='open' data-mapp-poi='{{{i}}}'><# print(poi.render('item')); #></div>
17
+ <# }); #>
18
</div>
19
+ </script>
20
21
+ <script type='text/template' id='mapp-tmpl-edit-item'>
22
+ <img class="mapp-icon" src="{{{poi.icon}}}">
23
+ <div class='mapp-title'>{{{poi.title}}}</div>
24
+ </script>
25
+
26
+ <script type='text/template' id='mapp-tmpl-edit-popup'>
27
+ <div class='mapp-poi-edit'>
28
+ <div class='mapp-table'>
29
+ <div>
30
+ <div><input class='mapp-poi-title' type='text' value='{{poi.title}}'></div>
31
+ <# if (!poi.type) { #>
32
+ <div><img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'></div>
33
+ <# } else if (poi.isPoly()) { #>
34
+ <# var colors = poi.getTemplateColors(); #>
35
+ <div><span data-mapp-colorpicker class='mapp-colorpicker-toggle' data-mapp-color='{{{colors.color}}}' data-mapp-opacity='{{{colors.opacity}}}' data-mapp-weight='{{{colors.weight}}}' tabindex='0'></span></div>
36
+ <# } #>
37
+ </div>
38
</div>
39
40
+ <# if (poi.type == 'kml') { #>
41
+ <div class='mapp-poi-kml'>
42
+ <input class='mapp-poi-url' type='text' readonly='readonly' value='<# print( (poi.kml) ? poi.kml.url : '' );#>'/>
43
+ </div>
44
+ <# } #>
45
46
+ <div>
47
+ <a class='mapp-poi-visual'><?php _e('Visual', 'mappress-google-maps-for-wordpress'); ?></a> | <a class='mapp-poi-html'><?php _e('HTML', 'mappress-google-maps-for-wordpress');?></a>
48
+ </div>
49
50
+ <textarea id='mapp-poi-body' class='mapp-poi-body' rows='10'>{{ poi.body }}</textarea>
51
52
+ <div class='mapp-poi-toolbar'>
53
+ <button data-mapp-poi='save' class='button button-primary'><?php _e('Save', 'mappress-google-maps-for-wordpress'); ?></button>
54
+ <button data-mapp-poi='cancel' class='button'><?php _e('Cancel', 'mappress-google-maps-for-wordpress'); ?></button>
55
+ <a href='#' data-mapp-poi='remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
56
</div>
57
+ </div>
58
</script>
forms/map_media.php CHANGED
@@ -1,23 +1,23 @@
1
- <div class='mapp-m-panel'>
2
<?php echo Mappress::get_support_links(); ?>
3
- <div id='mapp_m_list_panel' style='display:none'>
4
<b><?php _e('Maps for This Post', 'mappress-google-maps-for-wordpress')?></b>
5
- <input class='button' type='button' id='mapp_m_add_map' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
6
- <div id='mapp_m_maplist'>
7
<?php echo Mappress_Map::get_map_list(); ?>
8
</div>
9
</div>
10
11
- <div id='mapp_m_edit_panel' style='display:none'>
12
<table class='mapp-settings'>
13
<tr>
14
<td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
15
- <td><span id='mapp_m_mapid'></span></td>
16
</tr>
17
18
<tr>
19
<td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
20
- <td><input id='mapp_m_title' type='text' size='40' placeholder='<?php _e('Untitled', 'mappress-google-maps-for-wordpress');?>' /></td>
21
</tr>
22
23
<tr>
@@ -26,17 +26,22 @@
26
<?php
27
$sizes = array();
28
foreach(Mappress::$options->sizes as $i => $size)
29
- $sizes[] = "<a href='#' class='mapp-m-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
30
echo implode(' | ', $sizes);
31
?>
32
- <input type='text' id='mapp_m_width' size='2' value='' /> x <input type='text' id='mapp_m_height' size='2' value='' />
33
</td>
34
</tr>
35
</table>
36
- <div>
37
- <input class='button button-primary' type='button' id='mapp_m_save' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
38
- <input class='button' type='button' id='mapp_m_cancel' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
39
- <input class='button' type='button' id='mapp_m_insert' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
40
</div>
41
<?php require Mappress::$basedir . "/forms/map_editor.php"; ?>
42
</div>
1
+ <div class='mapp-media'>
2
<?php echo Mappress::get_support_links(); ?>
3
+ <div class='mapp-media-list-panel'>
4
<b><?php _e('Maps for This Post', 'mappress-google-maps-for-wordpress')?></b>
5
+ <input data-mapp-media='add' class='button' type='button' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
6
+ <div class='mapp-media-list'>
7
<?php echo Mappress_Map::get_map_list(); ?>
8
</div>
9
</div>
10
11
+ <div class='mapp-media-edit-panel'>
12
<table class='mapp-settings'>
13
<tr>
14
<td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
15
+ <td><span class='mapp-media-mapid'></span></td>
16
</tr>
17
18
<tr>
19
<td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
20
+ <td><input class='mapp-media-title' type='text' size='40' placeholder='<?php _e('Untitled', 'mappress-google-maps-for-wordpress');?>' /></td>
21
</tr>
22
23
<tr>
26
<?php
27
$sizes = array();
28
foreach(Mappress::$options->sizes as $i => $size)
29
+ $sizes[] = "<a href='#' class='mapp-media-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
30
echo implode(' | ', $sizes);
31
?>
32
+ <input type='text' class='mapp-media-width' size='2' value='' /> x <input type='text' class='mapp-media-height' size='2' value='' />
33
</td>
34
</tr>
35
+
36
+ <tr>
37
+ <td><?php _e('Save center / zoom', 'mappress-google-maps-for-wordpress');?></td>
38
+ <td><input type='checkbox' class='mapp-media-viewport'></td>
39
+ </tr>
40
</table>
41
+ <div class='mapp-media-toolbar'>
42
+ <input data-mapp-media='save' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
43
+ <input data-mapp-media='cancel' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
44
+ <input data-mapp-media='insert' class='button' type='button' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
45
</div>
46
<?php require Mappress::$basedir . "/forms/map_editor.php"; ?>
47
</div>
forms/template_editor.php ADDED
@@ -0,0 +1,47 @@
1
+ <div class='mapp-tp-editor'>
2
+ <div class='mapp-tp-master'>
3
+ <?php echo Mappress_Controls::select('', $templates, 'map-tmpl-poi', array('class' => 'mapp-tp-select')); ?>
4
+ <?php echo Mappress_Controls::button('', __('Edit', 'mappress-google-maps-for-wordpress'), array('class' => 'button button-primary', 'data-mapp-action' => 'edit')); ?>
5
+ </div>
6
+ <div class='mapp-tp-detail'></div>
7
+ </div>
8
+
9
+ <script type='text/html' id='mapp-tmpl-tp-master'>
10
+ <div class='mapp-tp-master'>
11
+ <select class='mapp-tp-select'>
12
+ <# _.each(collection, function(template, name) { #>
13
+ <option <# print( ( model && model.name == name) ? 'selected' : ''); #> value='{{name}}'>
14
+ <# if (template.exists) print ('*'); #> {{template.label}}
15
+ </option>
16
+ <# }); #>
17
+ </select>
18
+ <input type='button' class='button button-primary' data-mapp-action='edit' value='<?php _e('Edit', 'mappress-google-maps-for-wordpress');?>'>
19
+
20
+ </div>
21
+ </script>
22
+
23
+ <script type='text/html' id='mapp-tmpl-tp-detail'>
24
+ <div class='mapp-tp-name'>{{ model.name }} <# if (!model.exists) { #>(<?php _e('New', 'mappress-google-maps-for-wordpress');?>)<# } else { #>(<?php _e('Custom', 'mappress-google-maps-for-wordpress');?>)<# } #></div>
25
+ <div class='mapp-tp-path'>{{ model.path }}</div>
26
+ <div class='mapp-tabs'>
27
+ <div class='mapp-tab-label mapp-active' class='mapp-active'><?php _e('Editor', 'mappress-google-maps-for-wordpress');?></div>
28
+ <div class='mapp-tab-label'><?php _e('Default', 'mappress-google-maps-for-wordpress');?></div>
29
+ <div class='mapp-tab mapp-tab-content mapp-active'>
30
+ <# _.each(tokens, function (token, i) { #>
31
+ <code data-mapp-action='insert' data-mapp-insert='{{{i}}}' title='{{{i}}}'>{{{token}}}</code>
32
+ <# }); #>
33
+ <hr/>
34
+ <textarea class='mapp-tp-content'>{{{ model.content }}}</textarea>
35
+ </div>
36
+ <div class='mapp-tab mapp-tab-standard'>
37
+ <textarea readonly class='mapp-tp-standard'>{{{ model.standard }}}</textarea>
38
+ </div>
39
+ </div>
40
+ <div class='mapp-tp-toolbar'>
41
+ <input type='button' class='button button-primary' data-mapp-action='save' value='<?php _e('Save', 'mappress-google-maps-for-wordpress');?>'>
42
+ <input type='button' class='button' data-mapp-action='cancel' value='<?php _e('Cancel', 'mappress-google-maps-for-wordpress');?>'>
43
+ <# if (model.exists) { #>
44
+ <a href='#' data-mapp-action='destroy'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
45
+ <# } #>
46
+ </div>
47
+ </script>
js/algolia/algoliasearchLite.min.js ADDED
@@ -0,0 +1,3 @@
1
+ /*! algoliasearch 3.29.0 | � 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
2
+ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearch=e()}}(function(){var e;return function t(e,r,o){function n(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){var r=e[a][1][t];return n(r?r:t)},l,l.exports,t,e,r,o)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(e,t,r){(function(o){function n(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var o="color: "+this.color;e.splice(1,0,o,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))}),e.splice(i,0,o)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(t){}}function u(){var e;try{e=r.storage.debug}catch(t){}return!e&&"undefined"!=typeof o&&"env"in o&&(e=o.env.DEBUG),e}function c(){try{return window.localStorage}catch(e){}}r=t.exports=e(2),r.log=a,r.formatArgs=i,r.save=s,r.load=u,r.useColors=n,r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(u())}).call(this,e(11))},{11:11,2:2}],2:[function(e,t,r){function o(e){var t,o=0;for(t in e)o=(o<<5)-o+e.charCodeAt(t),o|=0;return r.colors[Math.abs(o)%r.colors.length]}function n(e){function t(){if(t.enabled){var e=t,o=+new Date,n=o-(c||o);e.diff=n,e.prev=c,e.curr=o,c=o;for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];i[0]=r.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,o){if("%%"===t)return t;s++;var n=r.formatters[o];if("function"==typeof n){var a=i[s];t=n.call(e,a),i.splice(s,1),s--}return t}),r.formatArgs.call(e,i);var u=t.log||r.log||console.log.bind(console);u.apply(e,i)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=o(e),"function"==typeof r.init&&r.init(t),t}function i(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),o=t.length,n=0;n<o;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),"-"===e[0]?r.skips.push(new RegExp("^"+e.substr(1)+"quot;)):r.names.push(new RegExp("^"+e+"quot;)))}function a(){r.enable("")}function s(e){var t,o;for(t=0,o=r.skips.length;t<o;t++)if(r.skips[t].test(e))return!1;for(t=0,o=r.names.length;t<o;t++)if(r.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}r=t.exports=n.debug=n["default"]=n,r.coerce=u,r.disable=a,r.enable=i,r.enabled=s,r.humanize=e(8),r.names=[],r.skips=[],r.formatters={};var c},{8:8}],3:[function(t,r,o){(function(n,i){!function(t,n){"object"==typeof o&&"undefined"!=typeof r?r.exports=n():"function"==typeof e&&e.amd?e(n):t.ES6Promise=n()}(this,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"==typeof e}function o(e){Q=e}function a(e){Y=e}function s(){return function(){return n.nextTick(f)}}function u(){return"undefined"!=typeof G?function(){G(f)}:p()}function c(){var e=0,t=new Z(f),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=f,function(){return e.port2.postMessage(0)}}function p(){var e=setTimeout;return function(){return e(f,1)}}function f(){for(var e=0;e<V;e+=2){var t=re[e],r=re[e+1];t(r),re[e]=void 0,re[e+1]=void 0}V=0}function d(){try{var e=t,r=e("vertx");return G=r.runOnLoop||r.runOnContext,u()}catch(o){return p()}}function h(e,t){var r=arguments,o=this,n=new this.constructor(m);void 0===n[ne]&&P(n);var i=o._state;return i?!function(){var e=r[i-1];Y(function(){return q(i,n,e,o._result)})}():k(o,n,e,t),n}function y(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var r=new t(m);return S(r,e),r}function m(){}function g(){return new TypeError("You cannot resolve a promise with itself")}function v(){return new TypeError("A promises callback cannot return that same promise.")}function b(e){try{return e.then}catch(t){return ue.error=t,ue}}function w(e,t,r,o){try{e.call(t,r,o)}catch(n){return n}}function _(e,t,r){Y(function(e){var o=!1,n=w(r,t,function(r){o||(o=!0,t!==r?S(e,r):j(e,r))},function(t){o||(o=!0,O(e,t))},"Settle: "+(e._label||" unknown promise"));!o&&n&&(o=!0,O(e,n))},e)}function x(e,t){t._state===ae?j(e,t._result):t._state===se?O(e,t._result):k(t,void 0,function(t){return S(e,t)},function(t){return O(e,t)})}function T(e,t,o){t.constructor===e.constructor&&o===h&&t.constructor.resolve===y?x(e,t):o===ue?(O(e,ue.error),ue.error=null):void 0===o?j(e,t):r(o)?_(e,t,o):j(e,t)}function S(t,r){t===r?O(t,g()):e(r)?T(t,r,b(r)):j(t,r)}function A(e){e._onerror&&e._onerror(e._result),R(e)}function j(e,t){e._state===ie&&(e._result=t,e._state=ae,0!==e._subscribers.length&&Y(R,e))}function O(e,t){e._state===ie&&(e._state=se,e._result=t,Y(A,e))}function k(e,t,r,o){var n=e._subscribers,i=n.length;e._onerror=null,n[i]=t,n[i+ae]=r,n[i+se]=o,0===i&&e._state&&Y(R,e)}function R(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var o=void 0,n=void 0,i=e._result,a=0;a<t.length;a+=3)o=t[a],n=t[a+r],o?q(r,o,n,i):n(i);e._subscribers.length=0}}function C(){this.error=null}function I(e,t){try{return e(t)}catch(r){return ce.error=r,ce}}function q(e,t,o,n){var i=r(o),a=void 0,s=void 0,u=void 0,c=void 0;if(i){if(a=I(o,n),a===ce?(c=!0,s=a.error,a.error=null):u=!0,t===a)return void O(t,v())}else a=n,u=!0;t._state!==ie||(i&&u?S(t,a):c?O(t,s):e===ae?j(t,a):e===se&&O(t,a))}function N(e,t){try{t(function(t){S(e,t)},function(t){O(e,t)})}catch(r){O(e,r)}}function E(){return le++}function P(e){e[ne]=le++,e._state=void 0,e._result=void 0,e._subscribers=[]}function U(e,t){this._instanceConstructor=e,this.promise=new e(m),this.promise[ne]||P(this.promise),K(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&j(this.promise,this._result))):O(this.promise,D())}function D(){return new Error("Array Methods must be provided an Array")}function H(e){return new U(this,e).promise}function J(e){var t=this;return new t(K(e)?function(r,o){for(var n=e.length,i=0;i<n;i++)t.resolve(e[i]).then(r,o)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function M(e){var t=this,r=new t(m);return O(r,e),r}function F(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function $(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function L(e){this[ne]=E(),this._result=this._state=void 0,this._subscribers=[],m!==e&&("function"!=typeof e&&F(),this instanceof L?N(this,e):$())}function B(){var e=void 0;if("undefined"!=typeof i)e=i;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;if(r){var o=null;try{o=Object.prototype.toString.call(r.resolve())}catch(t){}if("[object Promise]"===o&&!r.cast)return}e.Promise=L}var X=void 0;X=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var K=X,V=0,G=void 0,Q=void 0,Y=function(e,t){re[V]=e,re[V+1]=t,V+=2,2===V&&(Q?Q(f):oe())},z="undefined"!=typeof window?window:void 0,W=z||{},Z=W.MutationObserver||W.WebKitMutationObserver,ee="undefined"==typeof self&&"undefined"!=typeof n&&"[object process]"==={}.toString.call(n),te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,re=new Array(1e3),oe=void 0;oe=ee?s():Z?c():te?l():void 0===z&&"function"==typeof t?d():p();var ne=Math.random().toString(36).substring(16),ie=void 0,ae=1,se=2,ue=new C,ce=new C,le=0;return U.prototype._enumerate=function(e){for(var t=0;this._state===ie&&t<e.length;t++)this._eachEntry(e[t],t)},U.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,o=r.resolve;if(o===y){var n=b(e);if(n===h&&e._state!==ie)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(r===L){var i=new r(m);T(i,e,n),this._willSettleAt(i,t)}else this._willSettleAt(new r(function(t){return t(e)}),t)}else this._willSettleAt(o(e),t)},U.prototype._settledAt=function(e,t,r){var o=this.promise;o._state===ie&&(this._remaining--,e===se?O(o,r):this._result[t]=r),0===this._remaining&&j(o,this._result)},U.prototype._willSettleAt=function(e,t){var r=this;k(e,void 0,function(e){return r._settledAt(ae,t,e)},function(e){return r._settledAt(se,t,e)})},L.all=H,L.race=J,L.resolve=y,L.reject=M,L._setScheduler=o,L._setAsap=a,L._asap=Y,L.prototype={constructor:L,then:h,"catch":function(e){return this.then(null,e)}},L.polyfill=B,L.Promise=L,L})}).call(this,t(11),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{11:11}],4:[function(e,t,r){var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(e,t,r){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)t.call(r,e[a],a,e);else for(var s in e)o.call(e,s)&&t.call(r,e[s],s,e)}},{}],5:[function(e,t,r){(function(e){var r;r="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],7:[function(e,t,r){var o={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},{}],8:[function(e,t,r){function o(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?#x2F;i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*p;case"days":case"day":case"d":return r*l;case"hours":case"hour":case"hrs":case"hr":case"h":return r*c;case"minutes":case"minute":case"mins":case"min":case"m":return r*u;case"seconds":case"second":case"secs":case"sec":case"s":return r*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function n(e){return e>=l?Math.round(e/l)+"d":e>=c?Math.round(e/c)+"h":e>=u?Math.round(e/u)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return a(e,l,"day")||a(e,c,"hour")||a(e,u,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var s=1e3,u=60*s,c=60*u,l=24*c,p=365.25*l;t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return o(e);if("number"===r&&isNaN(e)===!1)return t["long"]?i(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],9:[function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Array.prototype.slice,a=e(10),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["quot;+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!d)return p(e);try{return p(e)}catch(t){return!1}},y=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===n.call(e),i=a(e),s=t&&"[object String]"===n.call(e),p=[];if(!t&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!o.call(e,0))for(var d=0;d<e.length;++d)p.push(String(d));if(i&&e.length>0)for(var y=0;y<e.length;++y)p.push(String(y));else for(var m in e)f&&"prototype"===m||!o.call(e,m)||p.push(String(m));if(u)for(var g=h(e),v=0;v<l.length;++v)g&&"constructor"===l[v]||!o.call(e,l[v])||p.push(l[v]);return p};y.shim=function(){if(Object.keys){var e=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!e){var t=Object.keys;Object.keys=function(e){return t(a(e)?i.call(e):e)}}}else Object.keys=y;return Object.keys||y},t.exports=y},{10:10}],10:[function(e,t,r){"use strict";var o=Object.prototype.toString;t.exports=function(e){var t=o.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===o.call(e.callee)),r}},{}],11:[function(e,t,r){function o(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(p===setTimeout)return setTimeout(e,0);if((p===o||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?y=h.concat(y):g=-1,y.length&&u())}function u(){if(!m){var e=i(s);m=!0;for(var t=y.length;t;){for(h=y,y=[];++g<t;)h&&h[g].run();g=-1,t=y.length}h=null,m=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var p,f,d=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:o}catch(e){p=o}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var h,y=[],m=!1,g=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];y.push(new c(e,t)),1!==y.length||m||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],12:[function(e,t,r){"use strict";function o(e,t){if(e.map)return e.map(t);for(var r=[],o=0;o<e.length;o++)r.push(t(e[o],o));return r}var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],13:[function(e,t,r){(function(r){function o(t,r,o){var i=e(1)("algoliasearch"),a=e(20),s=e(7),c=e(25),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(o._allowEmptyCredentials!==!0&&!t)throw new u.AlgoliaSearchError("Please provide an application ID. "+l);if(o._allowEmptyCredentials!==!0&&!r)throw new u.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=t,this.apiKey=r,this.hosts={read:[],write:[]},o=o||{},this._timeouts=o.timeouts||{connect:1e3,read:2e3,write:3e4},o.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=o.timeout);var p=o.protocol||"https:";if(/:#x2F;.test(p)||(p+=":"),"http:"!==p&&"https:"!==p)throw new u.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+o.protocol+"`)");if(this._checkAppIdData(),o.hosts)s(o.hosts)?(this.hosts.read=a(o.hosts),this.hosts.write=a(o.hosts)):(this.hosts.read=a(o.hosts.read),this.hosts.write=a(o.hosts.write));else{var f=c(this._shuffleResult,function(e){return t+"-"+e+".algolianet.com"}),d=(o.dsn===!1?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+d].concat(f),this.hosts.write=[this.applicationID+".algolia.net"].concat(f)}this.hosts.read=c(this.hosts.read,n(p)),this.hosts.write=c(this.hosts.write,n(p)),this.extraHeaders={},this.cache=o._cache||{},this._ua=o._ua,this._useCache=!(void 0!==o._useCache&&!o._cache)||o._useCache,this._useRequestCache=this._useCache&&o._useRequestCache,this._useFallback=void 0===o.useFallback||o.useFallback,this._setTimeout=o._setTimeout,i("init done, %j",this)}function n(e){return function(t){return e+"//"+t.toLowerCase()}}function i(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var r=JSON.stringify(e);return Array.prototype.toJSON=t,r}function a(e){for(var t,r,o=e.length;0!==o;)r=Math.floor(Math.random()*o),o-=1,t=e[o],e[o]=e[r],e[r]=t;return e}function s(e){var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o;o="x-algolia-api-key"===r||"x-algolia-application-id"===r?"**hidden for security purposes**":e[r],t[r]=o}return t}t.exports=o;var u=e(23),c=e(24),l=e(14),p=e(29),f=500,d=r.env.RESET_APP_DATA_TIMER&&parseInt(r.env.RESET_APP_DATA_TIMER,10)||12e4;o.prototype.initIndex=function(e){return new l(this,e)},o.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},o.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},o.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},o.prototype.addAlgoliaAgent=function(e){this._ua.indexOf(";"+e)===-1&&(this._ua+=";"+e)},o.prototype._jsonRequest=function(t){function r(e,n){function c(e){var t=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;d("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,t,e.headers);var r=2===Math.floor(t/100),o=new Date;if(w.push({currentHost:A,headers:s(p),content:a||null,contentLength:void 0!==a?a.length:null,method:n.method,timeouts:n.timeouts,url:n.url,startTime:T,endTime:o,duration:o-T,statusCode:t}),r)return m._useCache&&!m._useRequestCache&&y&&(y[l]=e.responseText),{responseText:e.responseText,body:e.body};var i=4!==Math.floor(t/100);if(i)return g+=1,_();d("unrecoverable error");var c=new u.AlgoliaSearchError(e.body&&e.body.message,{debugData:w,statusCode:t});return m._promise.reject(c)}function f(e){d("error: %s, stack: %s",e.message,e.stack);var r=new Date;return w.push({currentHost:A,headers:s(p),content:a||null,contentLength:void 0!==a?a.length:null,method:n.method,timeouts:n.timeouts,url:n.url,startTime:T,endTime:r,duration:r-T}),e instanceof u.AlgoliaSearchError||(e=new u.Unknown(e&&e.message,e)),g+=1,e instanceof u.Unknown||e instanceof u.UnparsableJSON||g>=m.hosts[t.hostType].length&&(v||!b)?(e.debugData=w,m._promise.reject(e)):e instanceof u.RequestTimeout?x():_()}function _(){return d("retrying request"),m._incrementHostIndex(t.hostType),r(e,n)}function x(){return d("retrying request with higher timeout"),m._incrementHostIndex(t.hostType),m._incrementTimeoutMultipler(),n.timeouts=m._getTimeoutsForRequest(t.hostType),r(e,n)}m._checkAppIdData();var T=new Date;if(m._useCache&&!m._useRequestCache&&(l=t.url),m._useCache&&!m._useRequestCache&&a&&(l+="_body_"+n.body),o(!m._useRequestCache,y,l)){d("serving response from cache");var S=y[l];return m._promise.resolve({body:JSON.parse(S),responseText:S})}if(g>=m.hosts[t.hostType].length)return!b||v?(d("could not get any response"),m._promise.reject(new u.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+m.applicationID,{debugData:w}))):(d("switching to fallback"),g=0,n.method=t.fallback.method,n.url=t.fallback.url,n.jsonBody=t.fallback.body,n.jsonBody&&(n.body=i(n.jsonBody)),p=m._computeRequestHeaders({additionalUA:h,headers:t.headers}),n.timeouts=m._getTimeoutsForRequest(t.hostType),m._setHostIndexByType(0,t.hostType),v=!0,r(m._request.fallback,n));var A=m._getHostByType(t.hostType),j=A+n.url,O={body:n.body,jsonBody:n.jsonBody,method:n.method,headers:p,timeouts:n.timeouts,debug:d,forceAuthHeaders:n.forceAuthHeaders};return d("method: %s, url: %s, headers: %j, timeouts: %d",O.method,j,O.headers,O.timeouts),e===m._request.fallback&&d("using fallback"),e.call(m,j,O).then(c,f)}function o(e,t,r){return m._useCache&&e&&t&&void 0!==t[r]}function n(e,r){return o(m._useRequestCache,y,l)&&e["catch"](function(){delete y[l]}),"function"!=typeof t.callback?e.then(r):void e.then(function(e){c(function(){t.callback(null,r(e))},m._setTimeout||setTimeout)},function(e){c(function(){t.callback(e)},m._setTimeout||setTimeout)})}this._checkAppIdData();var a,l,p,d=e(1)("algoliasearch:"+t.url),h=t.additionalUA||"",y=t.cache,m=this,g=0,v=!1,b=m._useFallback&&m._request.fallback&&t.fallback;this.apiKey.length>f&&void 0!==t.body&&(void 0!==t.body.params||void 0!==t.body.requests)?(t.body.apiKey=this.apiKey,p=this._computeRequestHeaders({additionalUA:h,withApiKey:!1,headers:t.headers})):p=this._computeRequestHeaders({additionalUA:h,headers:t.headers}),void 0!==t.body&&(a=i(t.body)),d("request start");var w=[];if(m._useCache&&m._useRequestCache&&(l=t.url),m._useCache&&m._useRequestCache&&a&&(l+="_body_"+a),o(m._useRequestCache,y,l)){d("serving request from cache");var _=y[l],x="function"!=typeof _.then?m._promise.resolve({responseText:_}):_;return n(x,function(e){return JSON.parse(e.responseText)})}var T=r(m._request,{url:t.url,method:t.method,body:a,jsonBody:t.body,timeouts:m._getTimeoutsForRequest(t.hostType),forceAuthHeaders:t.forceAuthHeaders});return m._useCache&&m._useRequestCache&&y&&(y[l]=T),n(T,function(e){return e.body})},o.prototype._getSearchParams=function(e,t){if(void 0===e||null===e)return t;for(var r in e)null!==r&&void 0!==e[r]&&e.hasOwnProperty(r)&&(t+=""===t?"":"&",t+=r+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[r])?i(e[r]):e[r]));return t},o.prototype._computeRequestHeaders=function(t){var r=e(4),o=t.additionalUA?this._ua+";"+t.additionalUA:this._ua,n={"x-algolia-agent":o,"x-algolia-application-id":this.applicationID};return t.withApiKey!==!1&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),r(this.extraHeaders,function(e,t){n[t]=e}),t.headers&&r(t.headers,function(e,t){n[t]=e}),n},o.prototype.search=function(t,r,o){var n=e(7),i=e(25),a="Usage: client.search(arrayOfQueries[, callback])";if(!n(t))throw new Error(a);"function"==typeof r?(o=r,r={}):void 0===r&&(r={});var s=this,u={requests:i(t,function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:s._getSearchParams(e.params,t)}})},c=i(u.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&"),l="/1/indexes/*/queries";return void 0!==r.strategy&&(l+="?strategy="+r.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:l,body:u,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:c}},callback:o})},o.prototype.searchForFacetValues=function(t){var r=e(7),o=e(25),n="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!r(t))throw new Error(n);var i=this;return i._promise.all(o(t,function(t){if(!t||void 0===t.indexName||void 0===t.params.facetName||void 0===t.params.facetQuery)throw new Error(n);var r=e(20),o=e(27),a=t.indexName,s=t.params,u=s.facetName,c=o(r(s),function(e){return"facetName"===e}),l=i._getSearchParams(c,"");return i._jsonRequest({cache:i.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(a)+"/facets/"+encodeURIComponent(u)+"/query",hostType:"read",body:{params:l}})}))},o.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],r=0;r<e.length;++r)if("[object Array]"===Object.prototype.toString.call(e[r])){for(var o=[],n=0;n<e[r].length;++n)o.push(e[r][n]);t.push("("+o.join(",")+")")}else t.push(e[r]);e=t.join(",")}this.securityTags=e},o.prototype.setUserToken=function(e){this.userToken=e},o.prototype.clearCache=function(){this.cache={}},o.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},o.prototype.setTimeouts=function(e){this._timeouts=e},o.prototype.getTimeouts=function(){return this._timeouts},o.prototype._getAppIdData=function(){var e=p.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},o.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),p.set(this.applicationID,e)},o.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>d?this._resetInitialAppIdData(e):e},o.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||a([1,2,3]),this._setAppIdData(t)},o.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},o.prototype._partialAppIdDataUpdate=function(t){var r=e(4),o=this._getAppIdData();return r(t,function(e,t){o[t]=e}),this._setAppIdData(o)},o.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},o.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},o.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},o.prototype._setHostIndexByType=function(t,r){var o=e(20),n=o(this._hostIndexes);return n[r]=t,this._partialAppIdDataUpdate({hostIndexes:n}),t},o.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},o.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},o.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}).call(this,e(11))},{1:1,11:11,14:14,20:20,23:23,24:24,25:25,27:27,29:29,4:4,7:7}],14:[function(e,t,r){function o(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}var n=e(19),i=e(21),a=e(22);t.exports=o,o.prototype.clearCache=function(){this.cache={}},o.prototype.search=n("query"),o.prototype.similarSearch=n("similarQuery"),o.prototype.browse=function(t,r,o){var n,i,a=e(26),s=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(n=0,o=arguments[0],t=void 0):"number"==typeof arguments[0]?(n=arguments[0],"number"==typeof arguments[1]?i=arguments[1]:"function"==typeof arguments[1]&&(o=arguments[1],i=void 0),t=void 0,r=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(o=arguments[1]),r=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(o=arguments[1],r=void 0),r=a({},r||{},{page:n,hitsPerPage:i,query:t});var u=this.as._getSearchParams(r,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/browse",body:{params:u},hostType:"read",callback:o})},o.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},o.prototype.searchForFacetValues=function(t,r){var o=e(20),n=e(27),i="Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])";if(void 0===t.facetName||void 0===t.facetQuery)throw new Error(i);var a=t.facetName,s=n(o(t),function(e){return"facetName"===e}),u=this.as._getSearchParams(s,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(a)+"/query",hostType:"read",body:{params:u},callback:r})},o.prototype.searchFacet=i(function(e,t){return this.searchForFacetValues(e,t)},a("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),o.prototype._search=function(e,t,r,o){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:r,additionalUA:o})},o.prototype.getObject=function(e,t,r){var o=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var n="";if(void 0!==t){n="?attributes=";for(var i=0;i<t.length;++i)0!==i&&(n+=","),n+=t[i]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/"+encodeURIComponent(e)+n,hostType:"read",callback:r})},o.prototype.getObjects=function(t,r,o){var n=e(7),i=e(25),a="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!n(t))throw new Error(a);var s=this;1!==arguments.length&&"function"!=typeof r||(o=r,r=void 0);var u={requests:i(t,function(e){var t={indexName:s.indexName,objectID:e};return r&&(t.attributesToRetrieve=r.join(",")),t})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:u,callback:o})},o.prototype.as=null,o.prototype.indexName=null,o.prototype.typeAheadArgs=null,o.prototype.typeAheadValueOption=null},{19:19,20:20,21:21,22:22,25:25,26:26,27:27,7:7}],15:[function(e,t,r){"use strict";var o=e(13),n=e(16);t.exports=n(o,"(lite) ")},{13:13,16:16}],16:[function(e,t,r){(function(r){"use strict";var o=e(5),n=o.Promise||e(3).Promise;t.exports=function(t,i){function a(t,r,o){var n=e(20);return o=n(o||{}),o._ua=o._ua||a.ua,new s(t,r,o)}function s(){t.apply(this,arguments)}var u=e(6),c=e(23),l=e(17),p=e(18),f=e(28);i=i||"","debug"===r.env.NODE_ENV&&e(1).enable("algoliasearch*"),
3
+ a.version=e(30),a.ua="Algolia for vanilla JavaScript "+i+a.version,a.initPlaces=f(a),o.__algolia={debug:e(1),algoliasearch:a};var d={hasXMLHttpRequest:"XMLHttpRequest"in o,hasXDomainRequest:"XDomainRequest"in o};return d.hasXMLHttpRequest&&(d.cors="withCredentials"in new XMLHttpRequest),u(s,t),s.prototype._request=function(e,t){return new n(function(r,o){function n(){if(!h){clearTimeout(f);var e;try{e={body:JSON.parse(m.responseText),responseText:m.responseText,statusCode:m.status,headers:m.getAllResponseHeaders&&m.getAllResponseHeaders()||{}}}catch(t){e=new c.UnparsableJSON({more:m.responseText})}e instanceof c.UnparsableJSON?o(e):r(e)}}function i(e){h||(clearTimeout(f),o(new c.Network({more:e})))}function a(){h=!0,m.abort(),o(new c.RequestTimeout)}function s(){g=!0,clearTimeout(f),f=setTimeout(a,t.timeouts.complete)}function u(){g||s()}function p(){!g&&m.readyState>1&&s()}if(!d.cors&&!d.hasXDomainRequest)return void o(new c.Network("CORS not supported"));e=l(e,t.headers);var f,h,y=t.body,m=d.cors?new XMLHttpRequest:new XDomainRequest,g=!1;f=setTimeout(a,t.timeouts.connect),m.onprogress=u,"onreadystatechange"in m&&(m.onreadystatechange=p),m.onload=n,m.onerror=i,m instanceof XMLHttpRequest?(m.open(t.method,e,!0),t.forceAuthHeaders&&(m.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),m.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):m.open(t.method,e),d.cors&&(y&&("POST"===t.method?m.setRequestHeader("content-type","application/x-www-form-urlencoded"):m.setRequestHeader("content-type","application/json")),m.setRequestHeader("accept","application/json")),y?m.send(y):m.send()})},s.prototype._request.fallback=function(e,t){return e=l(e,t.headers),new n(function(r,o){p(e,t,function(e,t){return e?void o(e):void r(t)})})},s.prototype._promise={reject:function(e){return n.reject(e)},resolve:function(e){return n.resolve(e)},delay:function(e){return new n(function(t){setTimeout(t,e)})},all:function(e){return n.all(e)}},a}}).call(this,e(11))},{1:1,11:11,17:17,18:18,20:20,23:23,28:28,3:3,30:30,5:5,6:6}],17:[function(e,t,r){"use strict";function o(e,t){return e+=/\?/.test(e)?"&":"?",e+n(t)}t.exports=o;var n=e(12)},{12:12}],18:[function(e,t,r){"use strict";function o(e,t,r){function o(){t.debug("JSONP: success"),m||f||(m=!0,p||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),s(),r(new n.JSONPScriptFail)))}function a(){"loaded"!==this.readyState&&"complete"!==this.readyState||o()}function s(){clearTimeout(g),h.onload=null,h.onreadystatechange=null,h.onerror=null,d.removeChild(h)}function u(){try{delete window[y],delete window[y+"_loaded"]}catch(e){window[y]=window[y+"_loaded"]=void 0}}function c(){t.debug("JSONP: Script timeout"),f=!0,s(),r(new n.RequestTimeout)}function l(){t.debug("JSONP: Script error"),m||f||(s(),r(new n.JSONPScriptError))}if("GET"!==t.method)return void r(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));t.debug("JSONP: start");var p=!1,f=!1;i+=1;var d=document.getElementsByTagName("head")[0],h=document.createElement("script"),y="algoliaJSONP_"+i,m=!1;window[y]=function(e){return u(),f?void t.debug("JSONP: Late answer, ignoring"):(p=!0,s(),void r(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+y,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var g=setTimeout(c,t.timeouts.complete);h.onreadystatechange=a,h.onload=o,h.onerror=l,h.async=!0,h.defer=!0,h.src=e,d.appendChild(h)}t.exports=o;var n=e(23),i=0},{23:23}],19:[function(e,t,r){function o(e,t){return function(r,o,i){if("function"==typeof r&&"object"==typeof o||"object"==typeof i)throw new n.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof r?(i=r,r=""):1!==arguments.length&&"function"!=typeof o||(i=o,o=void 0),"object"==typeof r&&null!==r?(o=r,r=void 0):void 0!==r&&null!==r||(r="");var a="";void 0!==r&&(a+=e+"="+encodeURIComponent(r));var s;return void 0!==o&&(o.additionalUA&&(s=o.additionalUA,delete o.additionalUA),a=this.as._getSearchParams(o,a)),this._search(a,t,i,s)}}t.exports=o;var n=e(23)},{23:23}],20:[function(e,t,r){t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],21:[function(e,t,r){t.exports=function(e,t){function r(){return o||(console.warn(t),o=!0),e.apply(this,arguments)}var o=!1;return r}},{}],22:[function(e,t,r){t.exports=function(e,t){var r=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+r}},{}],23:[function(e,t,r){"use strict";function o(t,r){var o=e(4),n=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):n.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",r&&o(r,function(e,t){n[t]=e})}function n(e,t){function r(){var r=Array.prototype.slice.call(arguments,0);"string"!=typeof r[0]&&r.unshift(t),o.apply(this,r),this.name="AlgoliaSearch"+e+"Error"}return i(r,o),r}var i=e(6);i(o,Error),t.exports={AlgoliaSearchError:o,UnparsableJSON:n("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:n("RequestTimeout","Request timedout before getting a response"),Network:n("Network","Network issue, see err.more for details"),JSONPScriptFail:n("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:n("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:n("Unknown","Unknown error occured")}},{4:4,6:6}],24:[function(e,t,r){t.exports=function(e,t){t(e,0)}},{}],25:[function(e,t,r){var o=e(4);t.exports=function(e,t){var r=[];return o(e,function(o,n){r.push(t(o,n,e))}),r}},{4:4}],26:[function(e,t,r){var o=e(4);t.exports=function n(e){var t=Array.prototype.slice.call(arguments);return o(t,function(t){for(var r in t)t.hasOwnProperty(r)&&("object"==typeof e[r]&&"object"==typeof t[r]?e[r]=n({},e[r],t[r]):void 0!==t[r]&&(e[r]=t[r]))}),e}},{4:4}],27:[function(e,t,r){t.exports=function(t,r){var o=e(9),n=e(4),i={};return n(o(t),function(e){r(e)!==!0&&(i[e]=t[e])}),i}},{4:4,9:9}],28:[function(e,t,r){function o(t){return function(r,o,i){var a=e(20);i=i&&a(i)||{},i.hosts=i.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof r&&void 0!==r||(r="",o="",i._allowEmptyCredentials=!0);var s=t(r,o,i),u=s.initIndex("places");return u.search=n("query","/1/places/query"),u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}}t.exports=o;var n=e(19)},{19:19,20:20}],29:[function(e,t,r){(function(r){function o(e,t){return u("localStorage failed with",t),a(),s=l,s.get(e)}function n(e,t){return 1===arguments.length?s.get(e):s.set(e,t)}function i(){try{return"localStorage"in r&&null!==r.localStorage&&(r.localStorage[c]||r.localStorage.setItem(c,JSON.stringify({})),!0)}catch(e){return!1}}function a(){try{r.localStorage.removeItem(c)}catch(e){}}var s,u=e(1)("algoliasearch:src/hostIndexState.js"),c="algoliasearch-client-js",l={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},p={set:function(e,t){l.set(e,t);try{var n=JSON.parse(r.localStorage[c]);return n[e]=t,r.localStorage[c]=JSON.stringify(n),n[e]}catch(i){return o(e,i)}},get:function(e){try{return JSON.parse(r.localStorage[c])[e]||null}catch(t){return o(e,t)}}};s=i()?p:l,t.exports={get:n,set:n,supportsLocalStorage:i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],30:[function(e,t,r){"use strict";t.exports="3.29.0"},{}]},{},[15])(15)});
js/algolia/autocomplete.jquery.min.js ADDED
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * autocomplete.js 0.30.0
3
+ * https://github.com/algolia/autocomplete.js
4
+ * Copyright 2018 Algolia, Inc. and other contributors; Licensed MIT
5
+ */
6
+ !function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";a.exports=c(1)},function(a,b,c){"use strict";var d=c(2),e=c(3);d.element=e;var f=c(4);f.isArray=e.isArray,f.isFunction=e.isFunction,f.isObject=e.isPlainObject,f.bind=e.proxy,f.each=function(a,b){function c(a,c){return b(c,a)}e.each(a,c)},f.map=e.map,f.mixin=e.extend,f.Event=e.Event;var g,h,i,j=c(5),k=c(6);g=e.fn.autocomplete,h="aaAutocomplete",i={initialize:function(a,b){function c(){var c,d=e(this),f=new k({el:d});c=new j({input:d,eventBus:f,dropdownMenuContainer:a.dropdownMenuContainer,hint:void 0===a.hint||!!a.hint,minLength:a.minLength,autoselect:a.autoselect,autoselectOnBlur:a.autoselectOnBlur,openOnFocus:a.openOnFocus,templates:a.templates,debug:a.debug,cssClasses:a.cssClasses,datasets:b,keyboardShortcuts:a.keyboardShortcuts,appendTo:a.appendTo,autoWidth:a.autoWidth}),d.data(h,c)}return b=f.isArray(b)?b:[].slice.call(arguments,1),a=a||{},this.each(c)},open:function(){function a(){var a,b=e(this);(a=b.data(h))&&a.open()}return this.each(a)},close:function(){function a(){var a,b=e(this);(a=b.data(h))&&a.close()}return this.each(a)},val:function(a){function b(){var b,c=e(this);(b=c.data(h))&&b.setVal(a)}return arguments.length?this.each(b):function(a){var b,c;return(b=a.data(h))&&(c=b.getVal()),c}(this.first())},destroy:function(){function a(){var a,b=e(this);(a=b.data(h))&&(a.destroy(),b.removeData(h))}return this.each(a)}},e.fn.autocomplete=function(a){var b;return i[a]&&"initialize"!==a?(b=this.filter(function(){return!!e(this).data(h)}),i[a].apply(b,[].slice.call(arguments,1))):i.initialize.apply(this,arguments)},e.fn.autocomplete.noConflict=function(){return e.fn.autocomplete=g,this},e.fn.autocomplete.sources=j.sources,e.fn.autocomplete.escapeHighlightedString=f.escapeHighlightedString,a.exports=e.fn.autocomplete},function(a,b){"use strict";a.exports={element:null}},function(a,b){a.exports=jQuery},function(a,b,c){"use strict";function d(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\amp;")}var e=c(2);a.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\amp;")},isNumber:function(a){return"number"==typeof a},toStr:function(a){return void 0===a||null===a?"":a+""},cloneDeep:function(a){var b=this.mixin({},a),c=this;return this.each(b,function(a,d){a&&(c.isArray(a)?b[d]=[].concat(a):c.isObject(a)&&(b[d]=c.cloneDeep(a)))}),b},error:function(a){throw new Error(a)},every:function(a,b){var c=!0;return a?(this.each(a,function(d,e){if(!(c=b.call(null,d,e,a)))return!1}),!!c):c},any:function(a,b){var c=!1;return a?(this.each(a,function(d,e){if(b.call(null,d,e,a))return c=!0,!1}),c):c},getUniqueId:function(){var a=0;return function(){return a++}}(),templatify:function(a){if(this.isFunction(a))return a;var b=e.element(a);return"SCRIPT"===b.prop("tagName")?function(){return b.text()}:function(){return String(a)}},defer:function(a){setTimeout(a,0)},noop:function(){},formatPrefix:function(a,b){return b?"":a+"-"},className:function(a,b,c){return(c?"":".")+a+b},escapeHighlightedString:function(a,b,c){b=b||"<em>";var e=document.createElement("div");e.appendChild(document.createTextNode(b)),c=c||"</em>";var f=document.createElement("div");f.appendChild(document.createTextNode(c));var g=document.createElement("div");return g.appendChild(document.createTextNode(a)),g.innerHTML.replace(RegExp(d(e.innerHTML),"g"),b).replace(RegExp(d(f.innerHTML),"g"),c)}}},function(a,b,c){"use strict";function d(a){var b,c;if(a=a||{},a.input||i.error("missing input"),this.isActivated=!1,this.debug=!!a.debug,this.autoselect=!!a.autoselect,this.autoselectOnBlur=!!a.autoselectOnBlur,this.openOnFocus=!!a.openOnFocus,this.minLength=i.isNumber(a.minLength)?a.minLength:1,this.autoWidth=void 0===a.autoWidth||!!a.autoWidth,a.hint=!!a.hint,a.hint&&a.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=a.css=i.mixin({},o,a.appendTo?o.appendTo:{}),this.cssClasses=a.cssClasses=i.mixin({},o.defaultClasses,a.cssClasses||{}),this.cssClasses.prefix=a.cssClasses.formattedPrefix=i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=a.listboxId=[this.cssClasses.root,"listbox",i.getUniqueId()].join("-");var f=e(a);this.$node=f.wrapper;var g=this.$input=f.input;b=f.menu,c=f.hint,a.dropdownMenuContainer&&j.element(a.dropdownMenuContainer).css("position","relative").append(b.css("top","0")),g.on("blur.aa",function(a){var c=document.activeElement;i.isMsie()&&(b[0]===c||b[0].contains(c))&&(a.preventDefault(),a.stopImmediatePropagation(),i.defer(function(){g.focus()}))}),b.on("mousedown.aa",function(a){a.preventDefault()}),this.eventBus=a.eventBus||new k({el:g}),this.dropdown=new d.Dropdown({appendTo:a.appendTo,wrapper:this.$node,menu:b,datasets:a.datasets,templates:a.templates,cssClasses:a.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new d.Input({input:g,hint:c}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(a),this._setLanguageDirection()}function e(a){var b,c,d,e;b=j.element(a.input),c=j.element(n.wrapper.replace("%ROOT%",a.cssClasses.root)).css(a.css.wrapper),a.appendTo||"block"!==b.css("display")||"table"!==b.parent().css("display")||c.css("display","table-cell");var g=n.dropdown.replace("%PREFIX%",a.cssClasses.prefix).replace("%DROPDOWN_MENU%",a.cssClasses.dropdownMenu);d=j.element(g).css(a.css.dropdown).attr({role:"listbox",id:a.listboxId}),a.templates&&a.templates.dropdownMenu&&d.html(i.templatify(a.templates.dropdownMenu)()),e=b.clone().css(a.css.hint).css(f(b)),e.val("").addClass(i.className(a.cssClasses.prefix,a.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),e.removeData&&e.removeData(),b.data(h,{"aria-autocomplete":b.attr("aria-autocomplete"),"aria-expanded":b.attr("aria-expanded"),"aria-owns":b.attr("aria-owns"),autocomplete:b.attr("autocomplete"),dir:b.attr("dir"),role:b.attr("role"),spellcheck:b.attr("spellcheck"),style:b.attr("style"),type:b.attr("type")}),b.addClass(i.className(a.cssClasses.prefix,a.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":a.datasets&&a.datasets[0]&&a.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":a.ariaLabel,"aria-owns":a.listboxId}).css(a.hint?a.css.input:a.css.inputWithNoHint);try{b.attr("dir")||b.attr("dir","auto")}catch(a){}return c=a.appendTo?c.appendTo(j.element(a.appendTo).eq(0)).eq(0):b.wrap(c).parent(),c.prepend(a.hint?e:null).append(d),{wrapper:c,input:b,hint:e,menu:d}}function f(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function g(a,b){var c=a.find(i.className(b.prefix,b.input));i.each(c.data(h),function(a,b){void 0===a?c.removeAttr(b):c.attr(b,a)}),c.detach().removeClass(i.className(b.prefix,b.input,!0)).insertAfter(a),c.removeData&&c.removeData(h),a.remove()}var h="aaAttrs",i=c(4),j=c(2),k=c(6),l=c(7),m=c(16),n=c(18),o=c(19);i.mixin(d.prototype,{_bindKeyboardShortcuts:function(a){if(a.keyboardShortcuts){var b=this.$input,c=[];i.each(a.keyboardShortcuts,function(a){"string"==typeof a&&(a=a.toUpperCase().charCodeAt(0)),c.push(a)}),j.element(document).keydown(function(a){var d=a.target||a.srcElement,e=d.tagName;if(!d.isContentEditable&&"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e){var f=a.which||a.keyCode;c.indexOf(f)!==-1&&(b.focus(),a.stopPropagation(),a.preventDefault())}})}},_onSuggestionClicked:function(a,b){var c;(c=this.dropdown.getDatumForSuggestion(b))&&this._select(c)},_onCursorMoved:function(a,b){var c=this.dropdown.getDatumForCursor(),d=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(d),c&&(b&&this.input.setInputValue(c.value,!0),this.eventBus.trigger("cursorchanged",c.raw,c.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var a=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",a.width+"px");var b=this.$node[0].getBoundingClientRect(),c=a.bottom-b.top;this.$node.css("top",c+"px");var d=a.left-b.left;this.$node.css("left",d+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var a=this.input.getQuery();a.length>=this.minLength?this.dropdown.update(a):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var a,b;a=this.dropdown.getDatumForCursor(),b=this.dropdown.getDatumForTopSuggestion(),this.debug||(this.autoselectOnBlur&&a?this._select(a):this.autoselectOnBlur&&b?this._select(b):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(a,b){var c,d;c=this.dropdown.getDatumForCursor(),d=this.dropdown.getDatumForTopSuggestion(),c?(this._select(c),b.preventDefault()):this.autoselect&&d&&(this._select(d),b.preventDefault())},_onTabKeyed:function(a,b){var c;(c=this.dropdown.getDatumForCursor())?(this._select(c),b.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_