Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Gallery – Photo Gallery – Image Gallery |
Version | 2.6.0 |
Comparing to | |
See all releases |
Code changes from version 2.5.5 to 2.6.0
- Modula.php +4 -2
- assets/css/admin/addons.css +10 -2
- assets/css/admin/effects.css +142 -142
- assets/css/admin/modula-cpt.css +45 -51
- assets/css/admin/modula-cpt.min.css +1 -1
- assets/css/admin/modula-header.css +4 -0
- assets/css/admin/uninstall.css +5 -0
- assets/css/admin/welcome.css +8 -3
- assets/css/front.css +1 -1
- assets/css/front/fancybox.css +7 -2
- assets/css/front/fancybox.min.css +1 -1
- assets/images/addons/modula-fullscreen.png +0 -0
- assets/js/admin/modula-addon.js +83 -1
- assets/js/admin/modula-edit.js +51 -17
- assets/js/admin/wp-modula-conditions.js +4 -2
- assets/js/admin/wp-modula-gutenberg.js +1 -1
- assets/js/admin/wp-modula-settings.js +26 -19
- assets/js/front/fancybox.min.js +1 -1
- assets/js/front/isotope-packery.min.js +1 -1
- assets/js/front/isotope.min.js +1 -1
- assets/js/front/jquery-modula.js +21 -1
- assets/js/front/jquery-modula.min.js +1 -1
- assets/js/front/justifiedGallery.min.js +1 -1
- assets/js/front/lazysizes.min.js +1 -1
- assets/js/modula-all.js +6 -6
- assets/js/modula-justified-wf.js +3 -3
- assets/js/modula-justified-wfl.js +2 -2
- assets/js/modula-justified-wl.js +0 -3
Modula.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wp-modula.com/
|
5 |
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
|
6 |
* Author: WPChill
|
7 |
-
* Version: 2.
|
8 |
* Author URI: https://www.wpchill.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -47,13 +47,15 @@
|
|
47 |
* @since 2.0.2
|
48 |
*/
|
49 |
|
50 |
-
define( 'MODULA_LITE_VERSION' , '2.
|
51 |
define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
|
52 |
define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
|
53 |
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
|
54 |
defined( 'MODULA_PRO_STORE_UPGRADE_URL' ) || define( 'MODULA_PRO_STORE_UPGRADE_URL' , 'https://wp-modula.com/pricing' );
|
55 |
define( 'MODULA_FILE' , plugin_basename( __FILE__ ) );
|
56 |
|
|
|
|
|
57 |
if( ! class_exists( 'Modula_Plugin_Usage_Tracker') ) {
|
58 |
require_once dirname( __FILE__ ) . '/includes/tracking/class-plugin-usage-tracker.php';
|
59 |
}
|
4 |
* Plugin URI: https://wp-modula.com/
|
5 |
* Description: Modula is the most powerful, user-friendly WordPress gallery plugin. Add galleries, masonry grids and more in a few clicks.
|
6 |
* Author: WPChill
|
7 |
+
* Version: 2.6.0
|
8 |
* Author URI: https://www.wpchill.com/
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
47 |
* @since 2.0.2
|
48 |
*/
|
49 |
|
50 |
+
define( 'MODULA_LITE_VERSION' , '2.6.0' );
|
51 |
define( 'MODULA_PATH' , plugin_dir_path( __FILE__ ) );
|
52 |
define( 'MODULA_URL' , plugin_dir_url( __FILE__ ) );
|
53 |
defined( 'MODULA_PRO_STORE_URL' ) || define( 'MODULA_PRO_STORE_URL' , 'https://wp-modula.com' );
|
54 |
defined( 'MODULA_PRO_STORE_UPGRADE_URL' ) || define( 'MODULA_PRO_STORE_UPGRADE_URL' , 'https://wp-modula.com/pricing' );
|
55 |
define( 'MODULA_FILE' , plugin_basename( __FILE__ ) );
|
56 |
|
57 |
+
define ( 'MODULA_LITE_TRANSLATE', dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
58 |
+
|
59 |
if( ! class_exists( 'Modula_Plugin_Usage_Tracker') ) {
|
60 |
require_once dirname( __FILE__ ) . '/includes/tracking/class-plugin-usage-tracker.php';
|
61 |
}
|
assets/css/admin/addons.css
CHANGED
@@ -1,9 +1,16 @@
|
|
1 |
-
.modula-addons-container
|
|
|
2 |
display: flex;
|
3 |
justify-content: space-between;
|
4 |
flex-wrap: wrap;
|
5 |
padding-top:28px;
|
6 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
.modula-addon {
|
8 |
width: 100%;
|
9 |
margin-bottom: 10px;
|
@@ -43,7 +50,8 @@
|
|
43 |
margin-top: 15px;
|
44 |
text-align: center;
|
45 |
}
|
46 |
-
.modula-addon .modula-addon-actions
|
|
|
47 |
padding: 6px 20px;
|
48 |
background-color: #fafafa;
|
49 |
border-top: 1px solid #ddd;
|
1 |
+
.modula-addons-container,
|
2 |
+
.modula-free-addons-container{
|
3 |
display: flex;
|
4 |
justify-content: space-between;
|
5 |
flex-wrap: wrap;
|
6 |
padding-top:28px;
|
7 |
}
|
8 |
+
|
9 |
+
.modula-addons-container.hidden,
|
10 |
+
.modula-free-addons-container.hidden {
|
11 |
+
display : none;
|
12 |
+
}
|
13 |
+
|
14 |
.modula-addon {
|
15 |
width: 100%;
|
16 |
margin-bottom: 10px;
|
50 |
margin-top: 15px;
|
51 |
text-align: center;
|
52 |
}
|
53 |
+
.modula-addon .modula-addon-actions,
|
54 |
+
.modula-addon .modula-free-addon-actions{
|
55 |
padding: 6px 20px;
|
56 |
background-color: #fafafa;
|
57 |
border-top: 1px solid #ddd;
|
assets/css/admin/effects.css
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
z-index: -1;
|
8 |
}
|
9 |
|
10 |
-
.modula-gallery .modula-items .modula-item
|
11 |
margin:0;
|
12 |
}
|
13 |
.modula-gallery .modula-items .modula-item p {
|
@@ -64,7 +64,7 @@
|
|
64 |
height: 100%;
|
65 |
}
|
66 |
|
67 |
-
.modula-gallery .modula-item.effect-quiet
|
68 |
-webkit-transition: -webkit-transform 0.35s;
|
69 |
transition: transform 0.35s;
|
70 |
-webkit-transform: translate3d(0,-20px,0);
|
@@ -78,7 +78,7 @@
|
|
78 |
transform: scale(1);
|
79 |
}
|
80 |
|
81 |
-
.modula-gallery .modula-item.effect-quiet:hover
|
82 |
.modula-gallery .modula-item.effect-quiet:hover p {
|
83 |
opacity: 1;
|
84 |
-webkit-transform: translate3d(0,0,0);
|
@@ -104,18 +104,18 @@
|
|
104 |
transform: translate3d(0,0,300px);
|
105 |
}
|
106 |
|
107 |
-
.modula-gallery .modula-item.effect-seemo
|
108 |
width: 100%;
|
109 |
-webkit-transition: -webkit-transform 0.35s;
|
110 |
transition: transform 0.35s;
|
111 |
}
|
112 |
|
113 |
-
.modula-gallery .modula-item.effect-seemo
|
114 |
-webkit-transform: translate3d(0,0px,0) translate3d(0,0,0);
|
115 |
transform: translate3d(0,0,0) translate3d(0,0,0);
|
116 |
}
|
117 |
|
118 |
-
.modula-gallery .modula-item.effect-seemo:hover
|
119 |
-webkit-transform: translate3d(0,-20px,0);
|
120 |
transform: translate3d(0,-20px,0);
|
121 |
}
|
@@ -154,7 +154,7 @@
|
|
154 |
transform: translate3d(0,10px,0);
|
155 |
}
|
156 |
|
157 |
-
html body .modula-gallery .modula-item.effect-appear
|
158 |
position: absolute;
|
159 |
bottom: 7.5%;
|
160 |
left: 0;
|
@@ -166,7 +166,7 @@
|
|
166 |
}
|
167 |
|
168 |
@media all and (max-width:480px) {
|
169 |
-
html body .modula-gallery .modula-item.effect-appear
|
170 |
bottom:60px;
|
171 |
}
|
172 |
|
@@ -182,7 +182,7 @@
|
|
182 |
}
|
183 |
}
|
184 |
|
185 |
-
.modula-gallery .modula-item.effect-appear
|
186 |
font-style: normal;
|
187 |
opacity: 0;
|
188 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
@@ -196,14 +196,14 @@
|
|
196 |
}
|
197 |
|
198 |
.modula-gallery .modula-item.effect-appear .figc::before,
|
199 |
-
.modula-gallery .modula-item.effect-appear
|
200 |
-webkit-transition: -webkit-transform 0.35s;
|
201 |
transition: transform 0.35s;
|
202 |
}
|
203 |
|
204 |
.modula-gallery .modula-item.effect-appear:hover .figc::before,
|
205 |
-
.modula-gallery .modula-item.effect-appear:hover
|
206 |
-
.modula-gallery .modula-item.effect-appear:hover
|
207 |
opacity: 1;
|
208 |
-webkit-transform: translate3d(0,0,0);
|
209 |
transform: translate3d(0,0,0);
|
@@ -212,7 +212,7 @@
|
|
212 |
/*---------------*/
|
213 |
/***** crafty *****/
|
214 |
/*---------------*/
|
215 |
-
.modula-gallery .modula-item.effect-crafty
|
216 |
margin: 0 0 10px 0;
|
217 |
-webkit-transition: -webkit-transform 0.35s;
|
218 |
transition: transform 0.35s;
|
@@ -229,7 +229,7 @@
|
|
229 |
margin-bottom: 10px;
|
230 |
}
|
231 |
|
232 |
-
.modula-gallery .modula-item.effect-crafty:hover
|
233 |
-webkit-transform: translate3d(0,0,0);
|
234 |
transform: translate3d(0,0,0);
|
235 |
}
|
@@ -272,7 +272,7 @@
|
|
272 |
text-align: right;
|
273 |
}
|
274 |
|
275 |
-
html body .modula-gallery .modula-item.effect-pufrobo
|
276 |
html body .modula-gallery .modula-item.effect-pufrobo p {
|
277 |
position: absolute;
|
278 |
right: 30px;
|
@@ -289,7 +289,7 @@
|
|
289 |
letter-spacing: 1px;
|
290 |
}
|
291 |
|
292 |
-
.modula-gallery .modula-item.effect-pufrobo
|
293 |
/*top: 30px;*/
|
294 |
top: 10%;
|
295 |
-webkit-transition: -webkit-transform 0.35s;
|
@@ -298,12 +298,12 @@
|
|
298 |
transform: translate3d(0,20px,0);
|
299 |
}
|
300 |
|
301 |
-
.modula-gallery .modula-item.effect-pufrobo:hover
|
302 |
-webkit-transform: translate3d(0,0,0);
|
303 |
transform: translate3d(0,0,0);
|
304 |
}
|
305 |
|
306 |
-
.modula-gallery .modula-item.effect-pufrobo
|
307 |
position: absolute;
|
308 |
top: 80%;
|
309 |
left: 0;
|
@@ -315,14 +315,14 @@
|
|
315 |
transform: translate3d(0,40px,0);
|
316 |
}
|
317 |
|
318 |
-
.modula-gallery .modula-item.effect-pufrobo
|
319 |
.modula-gallery .modula-item.effect-pufrobo p {
|
320 |
opacity: 0;
|
321 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
322 |
transition: opacity 0.35s, transform 0.35s;
|
323 |
}
|
324 |
|
325 |
-
.modula-gallery .modula-item.effect-pufrobo:hover
|
326 |
.modula-gallery .modula-item.effect-pufrobo:hover p {
|
327 |
margin-top: 10px;
|
328 |
margin-bottom: 5px;
|
@@ -366,7 +366,7 @@
|
|
366 |
justify-content: center;
|
367 |
}
|
368 |
|
369 |
-
.modula-gallery .modula-item.effect-hide .figc-inner
|
370 |
.modula-gallery .modula-item.effect-hide .figc-inner p {
|
371 |
margin: 0 20px;
|
372 |
}
|
@@ -384,7 +384,7 @@
|
|
384 |
transform: scale(1);
|
385 |
}
|
386 |
|
387 |
-
.modula-gallery .modula-item.effect-hide
|
388 |
-webkit-transition: -webkit-transform 0.35s;
|
389 |
transition: transform 0.35s;
|
390 |
-webkit-transform: translate3d(0,20px,0);
|
@@ -400,7 +400,7 @@
|
|
400 |
transform: translate3d(0,20px,0) scale(1.1);
|
401 |
}
|
402 |
|
403 |
-
.modula-gallery .modula-item.effect-hide:hover
|
404 |
-webkit-transform: translate3d(0,0,0);
|
405 |
transform: translate3d(0,0,0);
|
406 |
}
|
@@ -446,7 +446,7 @@
|
|
446 |
text-align: left;
|
447 |
}
|
448 |
|
449 |
-
.modula-gallery .modula-item.effect-sarah
|
450 |
position: relative;
|
451 |
overflow: hidden;
|
452 |
padding: 20px 0;
|
@@ -456,11 +456,11 @@
|
|
456 |
padding: 20px 0;
|
457 |
}
|
458 |
|
459 |
-
.modula-gallery .modula-item.effect-sarah
|
460 |
display:none;
|
461 |
}
|
462 |
|
463 |
-
.modula-gallery .modula-item.effect-sarah
|
464 |
position: absolute;
|
465 |
bottom: 0;
|
466 |
left: 0;
|
@@ -474,7 +474,7 @@
|
|
474 |
transform: translate3d(-100%,0,0);
|
475 |
}
|
476 |
|
477 |
-
.modula-gallery .modula-item.effect-sarah:hover
|
478 |
-webkit-transform: translate3d(0,0,0);
|
479 |
transform: translate3d(0,0,0);
|
480 |
}
|
@@ -536,18 +536,18 @@
|
|
536 |
box-sizing: border-box;
|
537 |
}
|
538 |
|
539 |
-
.modula-gallery .modula-item.effect-lily
|
540 |
.modula-gallery .modula-item.effect-lily .jtg-body {
|
541 |
-webkit-transform: translate3d(0,40px,0);
|
542 |
transform: translate3d(0,40px,0);
|
543 |
}
|
544 |
|
545 |
-
.modula-gallery .modula-item.effect-lily
|
546 |
-webkit-transition: -webkit-transform 0.35s;
|
547 |
transition: transform 0.35s;
|
548 |
}
|
549 |
|
550 |
-
.modula-gallery .modula-item.effect-lily
|
551 |
displaY:none;
|
552 |
}
|
553 |
|
@@ -564,7 +564,7 @@
|
|
564 |
}
|
565 |
|
566 |
.modula-gallery .modula-item.effect-lily:hover img,
|
567 |
-
.modula-gallery .modula-item.effect-lily:hover
|
568 |
.modula-gallery .modula-item.effect-lily:hover .jtg-body {
|
569 |
-webkit-transform: translate3d(0,0,0);
|
570 |
transform: translate3d(0,0,0);
|
@@ -608,7 +608,7 @@
|
|
608 |
transform: translate3d(0,50%,0);
|
609 |
}
|
610 |
|
611 |
-
.modula-gallery .modula-item.effect-sadie
|
612 |
position: absolute;
|
613 |
top: 50%;
|
614 |
left: 0;
|
@@ -620,7 +620,7 @@
|
|
620 |
transform: translate3d(0,-50%,0);
|
621 |
}
|
622 |
|
623 |
-
.modula-gallery .modula-item.effect-sadie
|
624 |
display:none;
|
625 |
}
|
626 |
|
@@ -643,7 +643,7 @@
|
|
643 |
box-sizing: border-box;
|
644 |
}
|
645 |
|
646 |
-
.modula-gallery .modula-item.effect-sadie:hover
|
647 |
color: #fff;
|
648 |
-webkit-transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
|
649 |
transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
|
@@ -729,11 +729,11 @@
|
|
729 |
max-width:85%;
|
730 |
}
|
731 |
|
732 |
-
.modula-gallery .modula-item.effect-roxy
|
733 |
padding: 10px 0 10px 0;
|
734 |
}
|
735 |
|
736 |
-
.modula-gallery .modula-item.effect-roxy
|
737 |
display:none;
|
738 |
}
|
739 |
|
@@ -820,14 +820,14 @@
|
|
820 |
transform: scale(1,0);
|
821 |
}
|
822 |
|
823 |
-
.modula-gallery .modula-item.effect-bubba
|
824 |
-webkit-transition: -webkit-transform 0.35s;
|
825 |
transition: transform 0.35s;
|
826 |
-webkit-transform: translate3d(0,-100%,0);
|
827 |
transform: translate3d(0,-100%,0);
|
828 |
}
|
829 |
|
830 |
-
.modula-gallery .modula-item.effect-bubba
|
831 |
display:none;
|
832 |
}
|
833 |
|
@@ -848,7 +848,7 @@
|
|
848 |
transform: scale(1);
|
849 |
}
|
850 |
|
851 |
-
.modula-gallery .modula-item.effect-bubba:hover
|
852 |
.modula-gallery .modula-item.effect-bubba:hover .jtg-body {
|
853 |
opacity: 1;
|
854 |
-webkit-transform: translate3d(0,0,0);
|
@@ -928,7 +928,7 @@
|
|
928 |
transform: translate3d(-50%,-50%,0) rotate(-45deg);
|
929 |
}
|
930 |
|
931 |
-
.modula-gallery .modula-item.effect-romeo
|
932 |
.modula-gallery .modula-item.effect-romeo .jtg-body {
|
933 |
position: absolute;
|
934 |
top: 50%;
|
@@ -938,12 +938,12 @@
|
|
938 |
transition: transform 0.35s;
|
939 |
}
|
940 |
|
941 |
-
.modula-gallery .modula-item.effect-romeo
|
942 |
-webkit-transform: translate3d(0,-50%,0) translate3d(0,-150%,0);
|
943 |
transform: translate3d(0,-50%,0) translate3d(0,-150%,0);
|
944 |
}
|
945 |
|
946 |
-
.modula-gallery .modula-item.effect-romeo
|
947 |
display:none;
|
948 |
}
|
949 |
|
@@ -953,7 +953,7 @@
|
|
953 |
transform: translate3d(0,-50%,0) translate3d(0,150%,0);
|
954 |
}
|
955 |
|
956 |
-
.modula-gallery .modula-item.effect-romeo:hover
|
957 |
-webkit-transform: translate3d(0,-50%,0) translate3d(0,-100%,0);
|
958 |
transform: translate3d(0,-50%,0) translate3d(0,-100%,0);
|
959 |
}
|
@@ -1016,13 +1016,13 @@
|
|
1016 |
transform-origin: 100% 0;
|
1017 |
}
|
1018 |
|
1019 |
-
.modula-gallery .modula-item.effect-layla
|
1020 |
padding-top: 26%;
|
1021 |
-webkit-transition: -webkit-transform 0.35s;
|
1022 |
transition: transform 0.35s;
|
1023 |
}
|
1024 |
|
1025 |
-
.modula-gallery .modula-item.effect-layla
|
1026 |
display:none;
|
1027 |
}
|
1028 |
|
@@ -1035,7 +1035,7 @@
|
|
1035 |
}
|
1036 |
|
1037 |
.modula-gallery .modula-item.effect-layla img,
|
1038 |
-
.modula-gallery .modula-item.effect-layla
|
1039 |
-webkit-transform: translate3d(0,-30px,0);
|
1040 |
transform: translate3d(0,-30px,0);
|
1041 |
min-height:calc(100% + 60px) !important;
|
@@ -1062,7 +1062,7 @@
|
|
1062 |
transform: scale(1);
|
1063 |
}
|
1064 |
|
1065 |
-
.modula-gallery .modula-item.effect-layla:hover
|
1066 |
.modula-gallery .modula-item.effect-layla:hover p {
|
1067 |
opacity: 1;
|
1068 |
-webkit-transform: translate3d(0,0,0);
|
@@ -1070,7 +1070,7 @@
|
|
1070 |
}
|
1071 |
|
1072 |
.modula-gallery .modula-item.effect-layla:hover figc::after,
|
1073 |
-
.modula-gallery .modula-item.effect-layla:hover
|
1074 |
.modula-gallery .modula-item.effect-layla:hover p,
|
1075 |
.modula-gallery .modula-item.effect-layla:hover img {
|
1076 |
-webkit-transition-delay: 0.15s;
|
@@ -1107,7 +1107,7 @@
|
|
1107 |
transform: translate3d(0,10px,0);
|
1108 |
}
|
1109 |
|
1110 |
-
html body .modula-gallery .modula-item.effect-honey
|
1111 |
position: absolute;
|
1112 |
bottom: 0;
|
1113 |
left: 0;
|
@@ -1118,11 +1118,11 @@
|
|
1118 |
transform: translate3d(0,-30px,0);
|
1119 |
}
|
1120 |
|
1121 |
-
.modula-gallery .modula-item.effect-honey
|
1122 |
display:none;
|
1123 |
}
|
1124 |
|
1125 |
-
.modula-gallery .modula-item.effect-honey
|
1126 |
font-style: normal;
|
1127 |
opacity: 0;
|
1128 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
@@ -1132,14 +1132,14 @@
|
|
1132 |
}
|
1133 |
|
1134 |
.modula-gallery .modula-item.effect-honey .figc::before,
|
1135 |
-
.modula-gallery .modula-item.effect-honey
|
1136 |
-webkit-transition: -webkit-transform 0.35s;
|
1137 |
transition: transform 0.35s;
|
1138 |
}
|
1139 |
|
1140 |
.modula-gallery .modula-item.effect-honey:hover .figc::before,
|
1141 |
-
.modula-gallery .modula-item.effect-honey:hover
|
1142 |
-
.modula-gallery .modula-item.effect-honey:hover
|
1143 |
opacity: 1;
|
1144 |
-webkit-transform: translate3d(0,0,0);
|
1145 |
transform: translate3d(0,0,0);
|
@@ -1177,7 +1177,7 @@
|
|
1177 |
content: '';
|
1178 |
}
|
1179 |
|
1180 |
-
/*.modula-gallery .modula-item.effect-oscar
|
1181 |
margin: 20% 0 10px 0;
|
1182 |
-webkit-transition: -webkit-transform 0.35s;
|
1183 |
transition: transform 0.35s;
|
@@ -1185,7 +1185,7 @@
|
|
1185 |
transform: translate3d(0,100%,0);
|
1186 |
}*/
|
1187 |
|
1188 |
-
.modula-gallery .modula-item.effect-oscar
|
1189 |
display:none;
|
1190 |
}
|
1191 |
|
@@ -1198,7 +1198,7 @@
|
|
1198 |
transform: scale(0);
|
1199 |
}
|
1200 |
|
1201 |
-
/*.modula-gallery .modula-item.effect-oscar:hover
|
1202 |
-webkit-transform: translate3d(0,0,0);
|
1203 |
transform: translate3d(0,0,0);
|
1204 |
}*/
|
@@ -1226,7 +1226,7 @@
|
|
1226 |
text-align: right;
|
1227 |
}
|
1228 |
|
1229 |
-
.modula-gallery .modula-item.effect-marley
|
1230 |
.modula-gallery .modula-item.effect-marley p {
|
1231 |
position: absolute;
|
1232 |
right: 7.5%;
|
@@ -1242,7 +1242,7 @@
|
|
1242 |
transform: translate3d(0,100%,0);
|
1243 |
}
|
1244 |
|
1245 |
-
.modula-gallery .modula-item.effect-marley
|
1246 |
top: 7.5%;
|
1247 |
-webkit-transition: -webkit-transform 0.35s;
|
1248 |
transition: transform 0.35s;
|
@@ -1250,16 +1250,16 @@
|
|
1250 |
transform: translate3d(0,20px,0);
|
1251 |
}
|
1252 |
|
1253 |
-
.modula-gallery .modula-item.effect-marley
|
1254 |
display:none;
|
1255 |
}
|
1256 |
|
1257 |
-
.modula-gallery .modula-item.effect-marley:hover
|
1258 |
-webkit-transform: translate3d(0,0,0);
|
1259 |
transform: translate3d(0,0,0);
|
1260 |
}
|
1261 |
|
1262 |
-
.modula-gallery .modula-item.effect-marley
|
1263 |
position: absolute;
|
1264 |
top: 100%;
|
1265 |
left: 0;
|
@@ -1271,14 +1271,14 @@
|
|
1271 |
transform: translate3d(0,40px,0);
|
1272 |
}
|
1273 |
|
1274 |
-
.modula-gallery .modula-item.effect-marley
|
1275 |
.modula-gallery .modula-item.effect-marley p {
|
1276 |
opacity: 0;
|
1277 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
1278 |
transition: opacity 0.35s, transform 0.35s;
|
1279 |
}
|
1280 |
|
1281 |
-
.modula-gallery .modula-item.effect-marley:hover
|
1282 |
.modula-gallery .modula-item.effect-marley:hover p {
|
1283 |
opacity: 1;
|
1284 |
-webkit-transform: translate3d(0,0,0);
|
@@ -1316,7 +1316,7 @@
|
|
1316 |
transform: scale(1);
|
1317 |
}
|
1318 |
|
1319 |
-
.modula-gallery .modula-item.effect-ruby
|
1320 |
margin-top: 20%;
|
1321 |
-webkit-transition: -webkit-transform 0.35s;
|
1322 |
transition: transform 0.35s;
|
@@ -1324,7 +1324,7 @@
|
|
1324 |
transform: translate3d(0,20px,0);
|
1325 |
}
|
1326 |
|
1327 |
-
.modula-gallery .modula-item.effect-ruby
|
1328 |
display:none;
|
1329 |
}
|
1330 |
|
@@ -1340,7 +1340,7 @@
|
|
1340 |
z-index:10;
|
1341 |
}
|
1342 |
|
1343 |
-
.modula-gallery .modula-item.effect-ruby:hover
|
1344 |
-webkit-transform: translate3d(0,0,0);
|
1345 |
transform: translate3d(0,0,0);
|
1346 |
}
|
@@ -1396,7 +1396,7 @@
|
|
1396 |
transform: translate3d(0,0,0) scale(1);
|
1397 |
}
|
1398 |
|
1399 |
-
.modula-gallery .modula-item.effect-milo
|
1400 |
position: absolute;
|
1401 |
right: 0;
|
1402 |
bottom: 0;
|
@@ -1430,7 +1430,7 @@
|
|
1430 |
background: linear-gradient(to bottom, rgba(37,141,200,1) 0%,rgba(104,60,19,1) 100%);
|
1431 |
}
|
1432 |
|
1433 |
-
.modula-gallery .modula-item.effect-dexter
|
1434 |
display:none;
|
1435 |
}
|
1436 |
|
@@ -1469,11 +1469,11 @@
|
|
1469 |
display:block;
|
1470 |
}
|
1471 |
|
1472 |
-
.modula-gallery .modula-item.effect-dexter .figc
|
1473 |
padding:10px;
|
1474 |
}
|
1475 |
|
1476 |
-
#poststuff .modula-effects-preview.modula-gallery .modula-item.effect-dexter .figc
|
1477 |
padding: 15px;
|
1478 |
}
|
1479 |
|
@@ -1555,12 +1555,12 @@
|
|
1555 |
margin-right:10px;
|
1556 |
}
|
1557 |
|
1558 |
-
html body .modula-gallery .modula-item.effect-zoe
|
1559 |
float: left;
|
1560 |
text-align: left;
|
1561 |
}
|
1562 |
|
1563 |
-
.modula-gallery .modula-item.effect-zoe
|
1564 |
display:none;
|
1565 |
}
|
1566 |
|
@@ -1589,7 +1589,7 @@
|
|
1589 |
left: 0;
|
1590 |
}
|
1591 |
|
1592 |
-
.modula-gallery .modula-item.effect-zoe
|
1593 |
.modula-gallery .modula-item.effect-zoe .jtg-social a {
|
1594 |
-webkit-transition: -webkit-transform 0.35s;
|
1595 |
transition: transform 0.35s;
|
@@ -1602,13 +1602,13 @@
|
|
1602 |
}
|
1603 |
|
1604 |
.modula-gallery .modula-item.effect-zoe:hover .figc,
|
1605 |
-
.modula-gallery .modula-item.effect-zoe:hover
|
1606 |
.modula-gallery .modula-item.effect-zoe:hover .jtg-social a {
|
1607 |
-webkit-transform: translate3d(0,0,0);
|
1608 |
transform: translate3d(0,0,0);
|
1609 |
}
|
1610 |
|
1611 |
-
.modula-gallery .modula-item.effect-zoe:hover
|
1612 |
-webkit-transition-delay: 0.05s;
|
1613 |
transition-delay: 0.05s;
|
1614 |
}
|
@@ -1634,7 +1634,7 @@
|
|
1634 |
}
|
1635 |
|
1636 |
/* Color for admin */
|
1637 |
-
.modula-gallery .panel-zoe .modula-item.effect-zoe
|
1638 |
.modula-gallery .panel-zoe .modula-item.effect-zoe .jtg-social a {
|
1639 |
color: #000;
|
1640 |
}
|
@@ -1688,11 +1688,11 @@
|
|
1688 |
padding:5px;
|
1689 |
}
|
1690 |
|
1691 |
-
.modula-gallery .modula-item.effect-chico
|
1692 |
padding: 20px 0 20px 0;
|
1693 |
}
|
1694 |
|
1695 |
-
.modula-gallery .modula-item.effect-chico
|
1696 |
display:none;
|
1697 |
}
|
1698 |
|
@@ -1746,12 +1746,12 @@
|
|
1746 |
color: #000;
|
1747 |
}
|
1748 |
|
1749 |
-
.modula-gallery .modula-item.effect-julia
|
1750 |
position: relative;
|
1751 |
padding: 0.5em 0;
|
1752 |
}
|
1753 |
|
1754 |
-
.modula-gallery .modula-item.effect-julia
|
1755 |
display:none;
|
1756 |
}
|
1757 |
|
@@ -1824,7 +1824,7 @@
|
|
1824 |
}
|
1825 |
|
1826 |
.modula-gallery .modula-item.effect-goliath img,
|
1827 |
-
.modula-gallery .modula-item.effect-goliath
|
1828 |
-webkit-transition: -webkit-transform 0.35s;
|
1829 |
transition: transform 0.35s;
|
1830 |
}
|
@@ -1834,7 +1834,7 @@
|
|
1834 |
backface-visibility: hidden;
|
1835 |
}
|
1836 |
|
1837 |
-
.modula-gallery .modula-item.effect-goliath
|
1838 |
.modula-gallery .modula-item.effect-goliath p {
|
1839 |
position: absolute;
|
1840 |
bottom: 0;
|
@@ -1857,12 +1857,12 @@
|
|
1857 |
transform: translate3d(0,-80px,0);
|
1858 |
}
|
1859 |
|
1860 |
-
.modula-gallery .modula-item.effect-goliath:hover
|
1861 |
-webkit-transform: translate3d(0,-100px,0);
|
1862 |
transform: translate3d(0,-100px,0);
|
1863 |
}
|
1864 |
|
1865 |
-
.modula-gallery .modula-item.effect-goliath
|
1866 |
display: none;
|
1867 |
}
|
1868 |
|
@@ -1880,15 +1880,15 @@
|
|
1880 |
background: #303fa9;
|
1881 |
}
|
1882 |
|
1883 |
-
.modula-gallery .modula-item.effect-hera
|
1884 |
font-size: 158.75%;
|
1885 |
}
|
1886 |
|
1887 |
-
.modula-gallery .modula-item.effect-hera
|
1888 |
display: none;
|
1889 |
}
|
1890 |
|
1891 |
-
.modula-gallery .modula-item.effect-hera
|
1892 |
.modula-gallery .modula-item.effect-hera .jtg-social {
|
1893 |
position: absolute;
|
1894 |
top: 50%;
|
@@ -1989,7 +1989,7 @@
|
|
1989 |
transform: translate3d(-50%,-50%,0) rotate3d(0,0,1,-45deg) scale3d(1,1,1);
|
1990 |
}
|
1991 |
|
1992 |
-
.modula-gallery .modula-item.effect-hera:hover
|
1993 |
opacity: 0;
|
1994 |
-webkit-transform: translate3d(-50%,-50%,0) scale3d(0.8,0.8,1);
|
1995 |
transform: translate3d(-50%,-50%,0) scale3d(0.8,0.8,1);
|
@@ -2032,7 +2032,7 @@
|
|
2032 |
transform: scale3d(0.95,0.95,1);
|
2033 |
}
|
2034 |
|
2035 |
-
.modula-gallery .modula-item.effect-selena
|
2036 |
-webkit-transition: -webkit-transform 0.35s;
|
2037 |
transition: transform 0.35s;
|
2038 |
-webkit-transform: translate3d(0,20px,0);
|
@@ -2049,7 +2049,7 @@
|
|
2049 |
transform-origin: 50% 0%;
|
2050 |
}
|
2051 |
|
2052 |
-
.modula-gallery .modula-item.effect-selena:hover
|
2053 |
-webkit-transform: translate3d(0,0,0);
|
2054 |
transform: translate3d(0,0,0);
|
2055 |
}
|
@@ -2125,7 +2125,7 @@
|
|
2125 |
opacity: 0.85;
|
2126 |
}
|
2127 |
|
2128 |
-
html body .modula-gallery .modula-item.effect-terry
|
2129 |
position: absolute;
|
2130 |
bottom: 0;
|
2131 |
left: 0;
|
@@ -2134,7 +2134,7 @@
|
|
2134 |
text-align: left;
|
2135 |
}
|
2136 |
|
2137 |
-
.modula-gallery .modula-item.effect-terry
|
2138 |
display: none;
|
2139 |
}
|
2140 |
|
@@ -2267,11 +2267,11 @@
|
|
2267 |
width:70%;
|
2268 |
}
|
2269 |
|
2270 |
-
html body .modula-gallery .modula-items .modula-item.effect-apollo
|
2271 |
text-align: left;
|
2272 |
}
|
2273 |
|
2274 |
-
.modula-gallery .modula-item.effect-apollo
|
2275 |
display: none;
|
2276 |
}
|
2277 |
|
@@ -2350,7 +2350,7 @@
|
|
2350 |
transform: translate3d(0,0,0);
|
2351 |
}
|
2352 |
|
2353 |
-
.modula-gallery .modula-item.effect-kira
|
2354 |
display: none;
|
2355 |
}
|
2356 |
|
@@ -2388,7 +2388,7 @@
|
|
2388 |
padding:5%;
|
2389 |
}
|
2390 |
|
2391 |
-
.modula-gallery .modula-item.effect-steve
|
2392 |
display: none;
|
2393 |
}
|
2394 |
|
@@ -2409,13 +2409,13 @@
|
|
2409 |
transform: perspective(1000px) translate3d(0,0,0);
|
2410 |
}
|
2411 |
|
2412 |
-
.modula-gallery .modula-item.effect-steve
|
2413 |
.modula-gallery .modula-item.effect-steve p {
|
2414 |
background: #fff;
|
2415 |
color: #2d434e;
|
2416 |
}
|
2417 |
|
2418 |
-
.modula-gallery .modula-item.effect-steve
|
2419 |
position: relative;
|
2420 |
margin-top: 2em;
|
2421 |
padding: 0.25em;
|
@@ -2490,18 +2490,18 @@
|
|
2490 |
flex-direction: column;
|
2491 |
}
|
2492 |
|
2493 |
-
.modula-gallery .modula-item.effect-jazz
|
2494 |
.modula-gallery .modula-item.effect-jazz p {
|
2495 |
opacity: 1;
|
2496 |
-webkit-transform: scale3d(0.8,0.8,1);
|
2497 |
transform: scale3d(0.8,0.8,1);
|
2498 |
}
|
2499 |
|
2500 |
-
.modula-gallery .modula-item.effect-jazz
|
2501 |
display: none;
|
2502 |
}
|
2503 |
|
2504 |
-
.modula-gallery .modula-item.effect-jazz
|
2505 |
-webkit-transition: -webkit-transform 0.35s;
|
2506 |
transition: transform 0.35s;
|
2507 |
}
|
@@ -2525,7 +2525,7 @@
|
|
2525 |
transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
|
2526 |
}
|
2527 |
|
2528 |
-
.modula-gallery .modula-item.effect-jazz:hover
|
2529 |
.modula-gallery .modula-item.effect-jazz:hover p {
|
2530 |
opacity: 1;
|
2531 |
-webkit-transform: scale3d(1,1,1);
|
@@ -2570,13 +2570,13 @@
|
|
2570 |
padding:5%;
|
2571 |
}
|
2572 |
|
2573 |
-
.modula-gallery .modula-item.effect-ming
|
2574 |
margin: 20% 0 10px 0;
|
2575 |
-webkit-transition: -webkit-transform 0.35s;
|
2576 |
transition: transform 0.35s;
|
2577 |
}
|
2578 |
|
2579 |
-
.modula-gallery .modula-item.effect-ming
|
2580 |
display: none;
|
2581 |
}
|
2582 |
|
@@ -2589,7 +2589,7 @@
|
|
2589 |
z-index:999;
|
2590 |
}
|
2591 |
|
2592 |
-
.modula-gallery .modula-item.effect-ming:hover
|
2593 |
-webkit-transform: scale(0.9);
|
2594 |
transform: scale(0.9);
|
2595 |
}
|
@@ -2686,7 +2686,7 @@
|
|
2686 |
transform: translate3d(0,0,0);
|
2687 |
}
|
2688 |
|
2689 |
-
html body .modula-gallery .modula-item.effect-lexi
|
2690 |
text-align: left;
|
2691 |
-webkit-transition: -webkit-transform 0.35s;
|
2692 |
transition: transform 0.35s;
|
@@ -2694,7 +2694,7 @@
|
|
2694 |
transform: translate3d(5px,5px,0);
|
2695 |
}
|
2696 |
|
2697 |
-
.modula-gallery .modula-item.effect-lexi
|
2698 |
display:none;
|
2699 |
}
|
2700 |
|
@@ -2716,7 +2716,7 @@
|
|
2716 |
transform: scale3d(1,1,1);
|
2717 |
}
|
2718 |
|
2719 |
-
html body .modula-gallery .modula-item.effect-lexi:hover
|
2720 |
html body .modula-gallery .modula-item.effect-lexi:hover p {
|
2721 |
opacity: 1;
|
2722 |
-webkit-transform: translate3d(0,0,0);
|
@@ -2748,7 +2748,7 @@
|
|
2748 |
transform: scale3d(2,2,1);
|
2749 |
}
|
2750 |
|
2751 |
-
.modula-gallery .modula-item.effect-duke
|
2752 |
-webkit-transition: -webkit-transform 0.35s;
|
2753 |
transition: transform 0.35s;
|
2754 |
-webkit-transform: scale3d(0.8,0.8,1);
|
@@ -2757,7 +2757,7 @@
|
|
2757 |
transform-origin: 50% 100%;
|
2758 |
}
|
2759 |
|
2760 |
-
.modula-gallery .modula-item.effect-duke
|
2761 |
display: none;
|
2762 |
}
|
2763 |
|
@@ -2778,7 +2778,7 @@
|
|
2778 |
width:calc(100% - 40px) !important;
|
2779 |
}
|
2780 |
|
2781 |
-
.modula-gallery .modula-item.effect-duke:hover
|
2782 |
.modula-gallery .modula-item.effect-duke:hover p {
|
2783 |
opacity: 1;
|
2784 |
-webkit-transform: scale3d(1,1,1);
|
@@ -2800,14 +2800,14 @@
|
|
2800 |
transform: translateZ(0px); /* Force correct stacking order */
|
2801 |
}
|
2802 |
|
2803 |
-
.modula-gallery .modula-item.effect-tilt_1
|
2804 |
-
.modula-gallery .modula-item.effect-tilt_2
|
2805 |
-
.modula-gallery .modula-item.effect-tilt_3
|
2806 |
-
.modula-gallery .modula-item.effect-tilt_4
|
2807 |
-
.modula-gallery .modula-item.effect-tilt_5
|
2808 |
-
.modula-gallery .modula-item.effect-tilt_6
|
2809 |
-
.modula-gallery .modula-item.effect-tilt_7
|
2810 |
-
.modula-gallery .modula-item.effect-tilt_8
|
2811 |
display:none;
|
2812 |
}
|
2813 |
|
@@ -2999,7 +2999,7 @@
|
|
2999 |
height:auto !important;
|
3000 |
}
|
3001 |
|
3002 |
-
.modula-gallery .modula-items .modula-item.effect-fluid-up
|
3003 |
float: left;
|
3004 |
color:#121212;
|
3005 |
}
|
@@ -3017,14 +3017,14 @@
|
|
3017 |
-webkit-backface-visibility: hidden; /* Fix for Chrome 37.0.2062.120 (Mac) */
|
3018 |
}
|
3019 |
|
3020 |
-
.modula-gallery .modula-item.effect-fluid-up
|
3021 |
-webkit-transition: -webkit-transform 0.35s;
|
3022 |
transition: transform 0.35s;
|
3023 |
-webkit-transform: translate3d(0,200%,0);
|
3024 |
transform: translate3d(0,200%,0);
|
3025 |
}
|
3026 |
|
3027 |
-
.modula-gallery .modula-item.effect-fluid-up
|
3028 |
display: inline-block;
|
3029 |
}
|
3030 |
|
@@ -3033,13 +3033,13 @@
|
|
3033 |
}
|
3034 |
|
3035 |
.modula-gallery .modula-item:not(.notitle).effect-fluid-up:hover .figc,
|
3036 |
-
.modula-gallery .modula-item:not(.notitle).effect-fluid-up:hover
|
3037 |
.modula-gallery .modula-item:not(.notitle).effect-fluid-up:hover p.icon-links a {
|
3038 |
-webkit-transform: translate3d(0,0,0);
|
3039 |
transform: translate3d(0,0,0);
|
3040 |
}
|
3041 |
|
3042 |
-
.modula-gallery .modula-item.effect-fluid-up:hover
|
3043 |
-webkit-transition-delay: 0.05s;
|
3044 |
transition-delay: 0.05s;
|
3045 |
}
|
@@ -3080,7 +3080,7 @@
|
|
3080 |
display: block;
|
3081 |
}
|
3082 |
|
3083 |
-
.modula-gallery .modula-items .modula-item.effect-comodo
|
3084 |
margin-top: 20px;
|
3085 |
}
|
3086 |
|
@@ -3155,14 +3155,14 @@
|
|
3155 |
transform-origin: 0 100%;
|
3156 |
}
|
3157 |
|
3158 |
-
.modula-gallery .modula-item.effect-winston
|
3159 |
-webkit-transition: -webkit-transform 0.35s;
|
3160 |
transition: transform 0.35s;
|
3161 |
-webkit-transform: translate3d(0,20px,0);
|
3162 |
transform: translate3d(0,20px,0);
|
3163 |
}
|
3164 |
|
3165 |
-
.modula-gallery .modula-item.effect-winston
|
3166 |
display:none;
|
3167 |
}
|
3168 |
|
@@ -3189,7 +3189,7 @@
|
|
3189 |
opacity: 0.6;
|
3190 |
}
|
3191 |
|
3192 |
-
.modula-gallery .modula-item.effect-winston:hover
|
3193 |
-webkit-transform: translate3d(0,0,0);
|
3194 |
transform: translate3d(0,0,0);
|
3195 |
}
|
@@ -3253,14 +3253,14 @@
|
|
3253 |
transform: scale3d(0.95,0.95,1);
|
3254 |
}
|
3255 |
|
3256 |
-
.modula-gallery .modula-item.effect-selena
|
3257 |
-webkit-transition: -webkit-transform 0.35s;
|
3258 |
transition: transform 0.35s;
|
3259 |
-webkit-transform: translate3d(0,20px,0);
|
3260 |
transform: translate3d(0,20px,0);
|
3261 |
}
|
3262 |
|
3263 |
-
.modula-gallery .modula-item.effect-selena
|
3264 |
display: none;
|
3265 |
}
|
3266 |
|
@@ -3274,7 +3274,7 @@
|
|
3274 |
transform-origin: 50% 0%;
|
3275 |
}
|
3276 |
|
3277 |
-
.modula-gallery .modula-item.effect-selena:hover
|
3278 |
-webkit-transform: translate3d(0,0,0);
|
3279 |
transform: translate3d(0,0,0);
|
3280 |
}
|
@@ -3330,7 +3330,7 @@
|
|
3330 |
transform: scale3d(1,1,1);
|
3331 |
}
|
3332 |
|
3333 |
-
.modula-gallery .modula-items .modula-item.effect-phoebe
|
3334 |
margin-top: 1em;
|
3335 |
-webkit-transition: transform 0.35s;
|
3336 |
transition: transform 0.35s;
|
@@ -3338,11 +3338,11 @@
|
|
3338 |
transform: translate3d(0,40px,0);
|
3339 |
}
|
3340 |
|
3341 |
-
.modula-gallery .modula-item.effect-phoebe
|
3342 |
display: none;
|
3343 |
}
|
3344 |
|
3345 |
-
.modula-gallery .modula-item.effect-phoebe:hover
|
3346 |
-webkit-transform: translate3d(0,0,0);
|
3347 |
transform: translate3d(0,0,0);
|
3348 |
}
|
@@ -3414,7 +3414,7 @@
|
|
3414 |
margin:5%;
|
3415 |
}
|
3416 |
|
3417 |
-
.modula-gallery .modula-item.effect-reflex .figc-inner
|
3418 |
.modula-gallery .modula-item.effect-reflex .figc-inner p {
|
3419 |
border-left: 3px solid #fff;
|
3420 |
padding-left: 2.5%;
|
@@ -3429,7 +3429,7 @@
|
|
3429 |
opacity: 1
|
3430 |
}
|
3431 |
|
3432 |
-
html body .modula-gallery .modula-item.effect-reflex
|
3433 |
text-align: left;
|
3434 |
}
|
3435 |
|
@@ -3490,7 +3490,7 @@
|
|
3490 |
transform:scaleY(1);
|
3491 |
}
|
3492 |
|
3493 |
-
html body .modula-gallery .modula-items .effect-curtain
|
3494 |
text-align: left;
|
3495 |
padding: 0 0 2.5%;
|
3496 |
border-bottom: 2px solid rgba( 255,255,255,.6 );
|
@@ -3558,7 +3558,7 @@
|
|
3558 |
transform: scale3d(2,2,1);
|
3559 |
}
|
3560 |
|
3561 |
-
.modula-gallery .modula-item.effect-lens
|
3562 |
-webkit-transition: -webkit-transform 0.35s;
|
3563 |
transition: transform 0.35s;
|
3564 |
-webkit-transform: scale3d(0.8,0.8,1);
|
@@ -3592,7 +3592,7 @@
|
|
3592 |
margin-top: 10px;
|
3593 |
}
|
3594 |
|
3595 |
-
.modula-gallery .modula-item.effect-lens:hover
|
3596 |
.modula-gallery .modula-item.effect-lens:hover p {
|
3597 |
opacity: 1;
|
3598 |
-webkit-transform: scale3d(1,1,1);
|
@@ -6556,7 +6556,7 @@ html body .modula-gallery.modula-custom-grid .modula-items .modula-item.effect-u
|
|
6556 |
.modula-gallery .modula-items .modula-item.effect-under .jtg-social a {
|
6557 |
opacity: 1;
|
6558 |
}
|
6559 |
-
.modula-gallery .modula-items .modula-item.effect-under
|
6560 |
display: none;
|
6561 |
}
|
6562 |
|
@@ -6615,7 +6615,7 @@ html body .modula-gallery.modula-custom-grid .modula-items .modula-item.effect-u
|
|
6615 |
text-align: center;
|
6616 |
}
|
6617 |
|
6618 |
-
.modula-gallery .modula-item.effect-milo
|
6619 |
display:none;
|
6620 |
}
|
6621 |
|
7 |
z-index: -1;
|
8 |
}
|
9 |
|
10 |
+
.modula-gallery .modula-items .modula-item .jtg-title {
|
11 |
margin:0;
|
12 |
}
|
13 |
.modula-gallery .modula-items .modula-item p {
|
64 |
height: 100%;
|
65 |
}
|
66 |
|
67 |
+
.modula-gallery .modula-item.effect-quiet .jtg-title {
|
68 |
-webkit-transition: -webkit-transform 0.35s;
|
69 |
transition: transform 0.35s;
|
70 |
-webkit-transform: translate3d(0,-20px,0);
|
78 |
transform: scale(1);
|
79 |
}
|
80 |
|
81 |
+
.modula-gallery .modula-item.effect-quiet:hover .jtg-title,
|
82 |
.modula-gallery .modula-item.effect-quiet:hover p {
|
83 |
opacity: 1;
|
84 |
-webkit-transform: translate3d(0,0,0);
|
104 |
transform: translate3d(0,0,300px);
|
105 |
}
|
106 |
|
107 |
+
.modula-gallery .modula-item.effect-seemo .jtg-title {
|
108 |
width: 100%;
|
109 |
-webkit-transition: -webkit-transform 0.35s;
|
110 |
transition: transform 0.35s;
|
111 |
}
|
112 |
|
113 |
+
.modula-gallery .modula-item.effect-seemo .jtg-title {
|
114 |
-webkit-transform: translate3d(0,0px,0) translate3d(0,0,0);
|
115 |
transform: translate3d(0,0,0) translate3d(0,0,0);
|
116 |
}
|
117 |
|
118 |
+
.modula-gallery .modula-item.effect-seemo:hover .jtg-title {
|
119 |
-webkit-transform: translate3d(0,-20px,0);
|
120 |
transform: translate3d(0,-20px,0);
|
121 |
}
|
154 |
transform: translate3d(0,10px,0);
|
155 |
}
|
156 |
|
157 |
+
html body .modula-gallery .modula-item.effect-appear .jtg-title {
|
158 |
position: absolute;
|
159 |
bottom: 7.5%;
|
160 |
left: 0;
|
166 |
}
|
167 |
|
168 |
@media all and (max-width:480px) {
|
169 |
+
html body .modula-gallery .modula-item.effect-appear .jtg-title {
|
170 |
bottom:60px;
|
171 |
}
|
172 |
|
182 |
}
|
183 |
}
|
184 |
|
185 |
+
.modula-gallery .modula-item.effect-appear .jtg-title i {
|
186 |
font-style: normal;
|
187 |
opacity: 0;
|
188 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
196 |
}
|
197 |
|
198 |
.modula-gallery .modula-item.effect-appear .figc::before,
|
199 |
+
.modula-gallery .modula-item.effect-appear .jtg-title {
|
200 |
-webkit-transition: -webkit-transform 0.35s;
|
201 |
transition: transform 0.35s;
|
202 |
}
|
203 |
|
204 |
.modula-gallery .modula-item.effect-appear:hover .figc::before,
|
205 |
+
.modula-gallery .modula-item.effect-appear:hover .jtg-title,
|
206 |
+
.modula-gallery .modula-item.effect-appear:hover .jtg-title i {
|
207 |
opacity: 1;
|
208 |
-webkit-transform: translate3d(0,0,0);
|
209 |
transform: translate3d(0,0,0);
|
212 |
/*---------------*/
|
213 |
/***** crafty *****/
|
214 |
/*---------------*/
|
215 |
+
.modula-gallery .modula-item.effect-crafty .jtg-title {
|
216 |
margin: 0 0 10px 0;
|
217 |
-webkit-transition: -webkit-transform 0.35s;
|
218 |
transition: transform 0.35s;
|
229 |
margin-bottom: 10px;
|
230 |
}
|
231 |
|
232 |
+
.modula-gallery .modula-item.effect-crafty:hover .jtg-title {
|
233 |
-webkit-transform: translate3d(0,0,0);
|
234 |
transform: translate3d(0,0,0);
|
235 |
}
|
272 |
text-align: right;
|
273 |
}
|
274 |
|
275 |
+
html body .modula-gallery .modula-item.effect-pufrobo .jtg-title,
|
276 |
html body .modula-gallery .modula-item.effect-pufrobo p {
|
277 |
position: absolute;
|
278 |
right: 30px;
|
289 |
letter-spacing: 1px;
|
290 |
}
|
291 |
|
292 |
+
.modula-gallery .modula-item.effect-pufrobo .jtg-title {
|
293 |
/*top: 30px;*/
|
294 |
top: 10%;
|
295 |
-webkit-transition: -webkit-transform 0.35s;
|
298 |
transform: translate3d(0,20px,0);
|
299 |
}
|
300 |
|
301 |
+
.modula-gallery .modula-item.effect-pufrobo:hover .jtg-title {
|
302 |
-webkit-transform: translate3d(0,0,0);
|
303 |
transform: translate3d(0,0,0);
|
304 |
}
|
305 |
|
306 |
+
.modula-gallery .modula-item.effect-pufrobo .jtg-title::after {
|
307 |
position: absolute;
|
308 |
top: 80%;
|
309 |
left: 0;
|
315 |
transform: translate3d(0,40px,0);
|
316 |
}
|
317 |
|
318 |
+
.modula-gallery .modula-item.effect-pufrobo .jtg-title::after,
|
319 |
.modula-gallery .modula-item.effect-pufrobo p {
|
320 |
opacity: 0;
|
321 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
322 |
transition: opacity 0.35s, transform 0.35s;
|
323 |
}
|
324 |
|
325 |
+
.modula-gallery .modula-item.effect-pufrobo:hover .jtg-title::after,
|
326 |
.modula-gallery .modula-item.effect-pufrobo:hover p {
|
327 |
margin-top: 10px;
|
328 |
margin-bottom: 5px;
|
366 |
justify-content: center;
|
367 |
}
|
368 |
|
369 |
+
.modula-gallery .modula-item.effect-hide .figc-inner .jtg-title,
|
370 |
.modula-gallery .modula-item.effect-hide .figc-inner p {
|
371 |
margin: 0 20px;
|
372 |
}
|
384 |
transform: scale(1);
|
385 |
}
|
386 |
|
387 |
+
.modula-gallery .modula-item.effect-hide .jtg-title {
|
388 |
-webkit-transition: -webkit-transform 0.35s;
|
389 |
transition: transform 0.35s;
|
390 |
-webkit-transform: translate3d(0,20px,0);
|
400 |
transform: translate3d(0,20px,0) scale(1.1);
|
401 |
}
|
402 |
|
403 |
+
.modula-gallery .modula-item.effect-hide:hover .jtg-title {
|
404 |
-webkit-transform: translate3d(0,0,0);
|
405 |
transform: translate3d(0,0,0);
|
406 |
}
|
446 |
text-align: left;
|
447 |
}
|
448 |
|
449 |
+
.modula-gallery .modula-item.effect-sarah .jtg-title {
|
450 |
position: relative;
|
451 |
overflow: hidden;
|
452 |
padding: 20px 0;
|
456 |
padding: 20px 0;
|
457 |
}
|
458 |
|
459 |
+
.modula-gallery .modula-item.effect-sarah .jtg-title:before {
|
460 |
display:none;
|
461 |
}
|
462 |
|
463 |
+
.modula-gallery .modula-item.effect-sarah .jtg-title::after {
|
464 |
position: absolute;
|
465 |
bottom: 0;
|
466 |
left: 0;
|
474 |
transform: translate3d(-100%,0,0);
|
475 |
}
|
476 |
|
477 |
+
.modula-gallery .modula-item.effect-sarah:hover .jtg-title::after {
|
478 |
-webkit-transform: translate3d(0,0,0);
|
479 |
transform: translate3d(0,0,0);
|
480 |
}
|
536 |
box-sizing: border-box;
|
537 |
}
|
538 |
|
539 |
+
.modula-gallery .modula-item.effect-lily .jtg-title,
|
540 |
.modula-gallery .modula-item.effect-lily .jtg-body {
|
541 |
-webkit-transform: translate3d(0,40px,0);
|
542 |
transform: translate3d(0,40px,0);
|
543 |
}
|
544 |
|
545 |
+
.modula-gallery .modula-item.effect-lily .jtg-title {
|
546 |
-webkit-transition: -webkit-transform 0.35s;
|
547 |
transition: transform 0.35s;
|
548 |
}
|
549 |
|
550 |
+
.modula-gallery .modula-item.effect-lily .jtg-title:before {
|
551 |
displaY:none;
|
552 |
}
|
553 |
|
564 |
}
|
565 |
|
566 |
.modula-gallery .modula-item.effect-lily:hover img,
|
567 |
+
.modula-gallery .modula-item.effect-lily:hover .jtg-title,
|
568 |
.modula-gallery .modula-item.effect-lily:hover .jtg-body {
|
569 |
-webkit-transform: translate3d(0,0,0);
|
570 |
transform: translate3d(0,0,0);
|
608 |
transform: translate3d(0,50%,0);
|
609 |
}
|
610 |
|
611 |
+
.modula-gallery .modula-item.effect-sadie .jtg-title {
|
612 |
position: absolute;
|
613 |
top: 50%;
|
614 |
left: 0;
|
620 |
transform: translate3d(0,-50%,0);
|
621 |
}
|
622 |
|
623 |
+
.modula-gallery .modula-item.effect-sadie .jtg-title:before {
|
624 |
display:none;
|
625 |
}
|
626 |
|
643 |
box-sizing: border-box;
|
644 |
}
|
645 |
|
646 |
+
.modula-gallery .modula-item.effect-sadie:hover .jtg-title {
|
647 |
color: #fff;
|
648 |
-webkit-transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
|
649 |
transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
|
729 |
max-width:85%;
|
730 |
}
|
731 |
|
732 |
+
.modula-gallery .modula-item.effect-roxy .jtg-title {
|
733 |
padding: 10px 0 10px 0;
|
734 |
}
|
735 |
|
736 |
+
.modula-gallery .modula-item.effect-roxy .jtg-title:before {
|
737 |
display:none;
|
738 |
}
|
739 |
|
820 |
transform: scale(1,0);
|
821 |
}
|
822 |
|
823 |
+
.modula-gallery .modula-item.effect-bubba .jtg-title {
|
824 |
-webkit-transition: -webkit-transform 0.35s;
|
825 |
transition: transform 0.35s;
|
826 |
-webkit-transform: translate3d(0,-100%,0);
|
827 |
transform: translate3d(0,-100%,0);
|
828 |
}
|
829 |
|
830 |
+
.modula-gallery .modula-item.effect-bubba .jtg-title:before {
|
831 |
display:none;
|
832 |
}
|
833 |
|
848 |
transform: scale(1);
|
849 |
}
|
850 |
|
851 |
+
.modula-gallery .modula-item.effect-bubba:hover .jtg-title,
|
852 |
.modula-gallery .modula-item.effect-bubba:hover .jtg-body {
|
853 |
opacity: 1;
|
854 |
-webkit-transform: translate3d(0,0,0);
|
928 |
transform: translate3d(-50%,-50%,0) rotate(-45deg);
|
929 |
}
|
930 |
|
931 |
+
.modula-gallery .modula-item.effect-romeo .jtg-title,
|
932 |
.modula-gallery .modula-item.effect-romeo .jtg-body {
|
933 |
position: absolute;
|
934 |
top: 50%;
|
938 |
transition: transform 0.35s;
|
939 |
}
|
940 |
|
941 |
+
.modula-gallery .modula-item.effect-romeo .jtg-title {
|
942 |
-webkit-transform: translate3d(0,-50%,0) translate3d(0,-150%,0);
|
943 |
transform: translate3d(0,-50%,0) translate3d(0,-150%,0);
|
944 |
}
|
945 |
|
946 |
+
.modula-gallery .modula-item.effect-romeo .jtg-title:before {
|
947 |
display:none;
|
948 |
}
|
949 |
|
953 |
transform: translate3d(0,-50%,0) translate3d(0,150%,0);
|
954 |
}
|
955 |
|
956 |
+
.modula-gallery .modula-item.effect-romeo:hover .jtg-title {
|
957 |
-webkit-transform: translate3d(0,-50%,0) translate3d(0,-100%,0);
|
958 |
transform: translate3d(0,-50%,0) translate3d(0,-100%,0);
|
959 |
}
|
1016 |
transform-origin: 100% 0;
|
1017 |
}
|
1018 |
|
1019 |
+
.modula-gallery .modula-item.effect-layla .jtg-title {
|
1020 |
padding-top: 26%;
|
1021 |
-webkit-transition: -webkit-transform 0.35s;
|
1022 |
transition: transform 0.35s;
|
1023 |
}
|
1024 |
|
1025 |
+
.modula-gallery .modula-item.effect-layla .jtg-title:before {
|
1026 |
display:none;
|
1027 |
}
|
1028 |
|
1035 |
}
|
1036 |
|
1037 |
.modula-gallery .modula-item.effect-layla img,
|
1038 |
+
.modula-gallery .modula-item.effect-layla .jtg-title {
|
1039 |
-webkit-transform: translate3d(0,-30px,0);
|
1040 |
transform: translate3d(0,-30px,0);
|
1041 |
min-height:calc(100% + 60px) !important;
|
1062 |
transform: scale(1);
|
1063 |
}
|
1064 |
|
1065 |
+
.modula-gallery .modula-item.effect-layla:hover .jtg-title,
|
1066 |
.modula-gallery .modula-item.effect-layla:hover p {
|
1067 |
opacity: 1;
|
1068 |
-webkit-transform: translate3d(0,0,0);
|
1070 |
}
|
1071 |
|
1072 |
.modula-gallery .modula-item.effect-layla:hover figc::after,
|
1073 |
+
.modula-gallery .modula-item.effect-layla:hover .jtg-title,
|
1074 |
.modula-gallery .modula-item.effect-layla:hover p,
|
1075 |
.modula-gallery .modula-item.effect-layla:hover img {
|
1076 |
-webkit-transition-delay: 0.15s;
|
1107 |
transform: translate3d(0,10px,0);
|
1108 |
}
|
1109 |
|
1110 |
+
html body .modula-gallery .modula-item.effect-honey .jtg-title {
|
1111 |
position: absolute;
|
1112 |
bottom: 0;
|
1113 |
left: 0;
|
1118 |
transform: translate3d(0,-30px,0);
|
1119 |
}
|
1120 |
|
1121 |
+
.modula-gallery .modula-item.effect-honey .jtg-title:before {
|
1122 |
display:none;
|
1123 |
}
|
1124 |
|
1125 |
+
.modula-gallery .modula-item.effect-honey .jtg-title i {
|
1126 |
font-style: normal;
|
1127 |
opacity: 0;
|
1128 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
1132 |
}
|
1133 |
|
1134 |
.modula-gallery .modula-item.effect-honey .figc::before,
|
1135 |
+
.modula-gallery .modula-item.effect-honey .jtg-title {
|
1136 |
-webkit-transition: -webkit-transform 0.35s;
|
1137 |
transition: transform 0.35s;
|
1138 |
}
|
1139 |
|
1140 |
.modula-gallery .modula-item.effect-honey:hover .figc::before,
|
1141 |
+
.modula-gallery .modula-item.effect-honey:hover .jtg-title,
|
1142 |
+
.modula-gallery .modula-item.effect-honey:hover .jtg-title i {
|
1143 |
opacity: 1;
|
1144 |
-webkit-transform: translate3d(0,0,0);
|
1145 |
transform: translate3d(0,0,0);
|
1177 |
content: '';
|
1178 |
}
|
1179 |
|
1180 |
+
/*.modula-gallery .modula-item.effect-oscar div.jtg-title {
|
1181 |
margin: 20% 0 10px 0;
|
1182 |
-webkit-transition: -webkit-transform 0.35s;
|
1183 |
transition: transform 0.35s;
|
1185 |
transform: translate3d(0,100%,0);
|
1186 |
}*/
|
1187 |
|
1188 |
+
.modula-gallery .modula-item.effect-oscar .jtg-title:before {
|
1189 |
display:none;
|
1190 |
}
|
1191 |
|
1198 |
transform: scale(0);
|
1199 |
}
|
1200 |
|
1201 |
+
/*.modula-gallery .modula-item.effect-oscar:hover .jtg-title {
|
1202 |
-webkit-transform: translate3d(0,0,0);
|
1203 |
transform: translate3d(0,0,0);
|
1204 |
}*/
|
1226 |
text-align: right;
|
1227 |
}
|
1228 |
|
1229 |
+
.modula-gallery .modula-item.effect-marley .jtg-title,
|
1230 |
.modula-gallery .modula-item.effect-marley p {
|
1231 |
position: absolute;
|
1232 |
right: 7.5%;
|
1242 |
transform: translate3d(0,100%,0);
|
1243 |
}
|
1244 |
|
1245 |
+
.modula-gallery .modula-item.effect-marley .jtg-title {
|
1246 |
top: 7.5%;
|
1247 |
-webkit-transition: -webkit-transform 0.35s;
|
1248 |
transition: transform 0.35s;
|
1250 |
transform: translate3d(0,20px,0);
|
1251 |
}
|
1252 |
|
1253 |
+
.modula-gallery .modula-item.effect-marley .jtg-title:before {
|
1254 |
display:none;
|
1255 |
}
|
1256 |
|
1257 |
+
.modula-gallery .modula-item.effect-marley:hover .jtg-title {
|
1258 |
-webkit-transform: translate3d(0,0,0);
|
1259 |
transform: translate3d(0,0,0);
|
1260 |
}
|
1261 |
|
1262 |
+
.modula-gallery .modula-item.effect-marley .jtg-title::after {
|
1263 |
position: absolute;
|
1264 |
top: 100%;
|
1265 |
left: 0;
|
1271 |
transform: translate3d(0,40px,0);
|
1272 |
}
|
1273 |
|
1274 |
+
.modula-gallery .modula-item.effect-marley .jtg-title::after,
|
1275 |
.modula-gallery .modula-item.effect-marley p {
|
1276 |
opacity: 0;
|
1277 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
1278 |
transition: opacity 0.35s, transform 0.35s;
|
1279 |
}
|
1280 |
|
1281 |
+
.modula-gallery .modula-item.effect-marley:hover .jtg-title::after,
|
1282 |
.modula-gallery .modula-item.effect-marley:hover p {
|
1283 |
opacity: 1;
|
1284 |
-webkit-transform: translate3d(0,0,0);
|
1316 |
transform: scale(1);
|
1317 |
}
|
1318 |
|
1319 |
+
.modula-gallery .modula-item.effect-ruby .jtg-title {
|
1320 |
margin-top: 20%;
|
1321 |
-webkit-transition: -webkit-transform 0.35s;
|
1322 |
transition: transform 0.35s;
|
1324 |
transform: translate3d(0,20px,0);
|
1325 |
}
|
1326 |
|
1327 |
+
.modula-gallery .modula-item.effect-ruby .jtg-title:before {
|
1328 |
display:none;
|
1329 |
}
|
1330 |
|
1340 |
z-index:10;
|
1341 |
}
|
1342 |
|
1343 |
+
.modula-gallery .modula-item.effect-ruby:hover .jtg-title {
|
1344 |
-webkit-transform: translate3d(0,0,0);
|
1345 |
transform: translate3d(0,0,0);
|
1346 |
}
|
1396 |
transform: translate3d(0,0,0) scale(1);
|
1397 |
}
|
1398 |
|
1399 |
+
.modula-gallery .modula-item.effect-milo .jtg-title {
|
1400 |
position: absolute;
|
1401 |
right: 0;
|
1402 |
bottom: 0;
|
1430 |
background: linear-gradient(to bottom, rgba(37,141,200,1) 0%,rgba(104,60,19,1) 100%);
|
1431 |
}
|
1432 |
|
1433 |
+
.modula-gallery .modula-item.effect-dexter .jtg-title:before {
|
1434 |
display:none;
|
1435 |
}
|
1436 |
|
1469 |
display:block;
|
1470 |
}
|
1471 |
|
1472 |
+
.modula-gallery .modula-item.effect-dexter .figc div.jtg-title {
|
1473 |
padding:10px;
|
1474 |
}
|
1475 |
|
1476 |
+
#poststuff .modula-effects-preview.modula-gallery .modula-item.effect-dexter .figc .jtg-title {
|
1477 |
padding: 15px;
|
1478 |
}
|
1479 |
|
1555 |
margin-right:10px;
|
1556 |
}
|
1557 |
|
1558 |
+
html body .modula-gallery .modula-item.effect-zoe .jtg-title {
|
1559 |
float: left;
|
1560 |
text-align: left;
|
1561 |
}
|
1562 |
|
1563 |
+
.modula-gallery .modula-item.effect-zoe .jtg-title:before {
|
1564 |
display:none;
|
1565 |
}
|
1566 |
|
1589 |
left: 0;
|
1590 |
}
|
1591 |
|
1592 |
+
.modula-gallery .modula-item.effect-zoe .jtg-title,
|
1593 |
.modula-gallery .modula-item.effect-zoe .jtg-social a {
|
1594 |
-webkit-transition: -webkit-transform 0.35s;
|
1595 |
transition: transform 0.35s;
|
1602 |
}
|
1603 |
|
1604 |
.modula-gallery .modula-item.effect-zoe:hover .figc,
|
1605 |
+
.modula-gallery .modula-item.effect-zoe:hover .jtg-title,
|
1606 |
.modula-gallery .modula-item.effect-zoe:hover .jtg-social a {
|
1607 |
-webkit-transform: translate3d(0,0,0);
|
1608 |
transform: translate3d(0,0,0);
|
1609 |
}
|
1610 |
|
1611 |
+
.modula-gallery .modula-item.effect-zoe:hover .jtg-title {
|
1612 |
-webkit-transition-delay: 0.05s;
|
1613 |
transition-delay: 0.05s;
|
1614 |
}
|
1634 |
}
|
1635 |
|
1636 |
/* Color for admin */
|
1637 |
+
.modula-gallery .panel-zoe .modula-item.effect-zoe .jtg-title,
|
1638 |
.modula-gallery .panel-zoe .modula-item.effect-zoe .jtg-social a {
|
1639 |
color: #000;
|
1640 |
}
|
1688 |
padding:5px;
|
1689 |
}
|
1690 |
|
1691 |
+
.modula-gallery .modula-item.effect-chico .jtg-title {
|
1692 |
padding: 20px 0 20px 0;
|
1693 |
}
|
1694 |
|
1695 |
+
.modula-gallery .modula-item.effect-chico .jtg-title:before {
|
1696 |
display:none;
|
1697 |
}
|
1698 |
|
1746 |
color: #000;
|
1747 |
}
|
1748 |
|
1749 |
+
.modula-gallery .modula-item.effect-julia .jtg-title {
|
1750 |
position: relative;
|
1751 |
padding: 0.5em 0;
|
1752 |
}
|
1753 |
|
1754 |
+
.modula-gallery .modula-item.effect-julia .jtg-title:before {
|
1755 |
display:none;
|
1756 |
}
|
1757 |
|
1824 |
}
|
1825 |
|
1826 |
.modula-gallery .modula-item.effect-goliath img,
|
1827 |
+
.modula-gallery .modula-item.effect-goliath .jtg-title {
|
1828 |
-webkit-transition: -webkit-transform 0.35s;
|
1829 |
transition: transform 0.35s;
|
1830 |
}
|
1834 |
backface-visibility: hidden;
|
1835 |
}
|
1836 |
|
1837 |
+
.modula-gallery .modula-item.effect-goliath .jtg-title,
|
1838 |
.modula-gallery .modula-item.effect-goliath p {
|
1839 |
position: absolute;
|
1840 |
bottom: 0;
|
1857 |
transform: translate3d(0,-80px,0);
|
1858 |
}
|
1859 |
|
1860 |
+
.modula-gallery .modula-item.effect-goliath:hover .jtg-title {
|
1861 |
-webkit-transform: translate3d(0,-100px,0);
|
1862 |
transform: translate3d(0,-100px,0);
|
1863 |
}
|
1864 |
|
1865 |
+
.modula-gallery .modula-item.effect-goliath .jtg-title:before {
|
1866 |
display: none;
|
1867 |
}
|
1868 |
|
1880 |
background: #303fa9;
|
1881 |
}
|
1882 |
|
1883 |
+
.modula-gallery .modula-item.effect-hera .jtg-title {
|
1884 |
font-size: 158.75%;
|
1885 |
}
|
1886 |
|
1887 |
+
.modula-gallery .modula-item.effect-hera .jtg-title:before {
|
1888 |
display: none;
|
1889 |
}
|
1890 |
|
1891 |
+
.modula-gallery .modula-item.effect-hera .jtg-title,
|
1892 |
.modula-gallery .modula-item.effect-hera .jtg-social {
|
1893 |
position: absolute;
|
1894 |
top: 50%;
|
1989 |
transform: translate3d(-50%,-50%,0) rotate3d(0,0,1,-45deg) scale3d(1,1,1);
|
1990 |
}
|
1991 |
|
1992 |
+
.modula-gallery .modula-item.effect-hera:hover .jtg-title {
|
1993 |
opacity: 0;
|
1994 |
-webkit-transform: translate3d(-50%,-50%,0) scale3d(0.8,0.8,1);
|
1995 |
transform: translate3d(-50%,-50%,0) scale3d(0.8,0.8,1);
|
2032 |
transform: scale3d(0.95,0.95,1);
|
2033 |
}
|
2034 |
|
2035 |
+
.modula-gallery .modula-item.effect-selena .jtg-title {
|
2036 |
-webkit-transition: -webkit-transform 0.35s;
|
2037 |
transition: transform 0.35s;
|
2038 |
-webkit-transform: translate3d(0,20px,0);
|
2049 |
transform-origin: 50% 0%;
|
2050 |
}
|
2051 |
|
2052 |
+
.modula-gallery .modula-item.effect-selena:hover .jtg-title {
|
2053 |
-webkit-transform: translate3d(0,0,0);
|
2054 |
transform: translate3d(0,0,0);
|
2055 |
}
|
2125 |
opacity: 0.85;
|
2126 |
}
|
2127 |
|
2128 |
+
html body .modula-gallery .modula-item.effect-terry .jtg-title {
|
2129 |
position: absolute;
|
2130 |
bottom: 0;
|
2131 |
left: 0;
|
2134 |
text-align: left;
|
2135 |
}
|
2136 |
|
2137 |
+
.modula-gallery .modula-item.effect-terry .jtg-title:before {
|
2138 |
display: none;
|
2139 |
}
|
2140 |
|
2267 |
width:70%;
|
2268 |
}
|
2269 |
|
2270 |
+
html body .modula-gallery .modula-items .modula-item.effect-apollo .jtg-title {
|
2271 |
text-align: left;
|
2272 |
}
|
2273 |
|
2274 |
+
.modula-gallery .modula-item.effect-apollo .jtg-title:before {
|
2275 |
display: none;
|
2276 |
}
|
2277 |
|
2350 |
transform: translate3d(0,0,0);
|
2351 |
}
|
2352 |
|
2353 |
+
.modula-gallery .modula-item.effect-kira .jtg-title:before {
|
2354 |
display: none;
|
2355 |
}
|
2356 |
|
2388 |
padding:5%;
|
2389 |
}
|
2390 |
|
2391 |
+
.modula-gallery .modula-item.effect-steve .jtg-title:before {
|
2392 |
display: none;
|
2393 |
}
|
2394 |
|
2409 |
transform: perspective(1000px) translate3d(0,0,0);
|
2410 |
}
|
2411 |
|
2412 |
+
.modula-gallery .modula-item.effect-steve .jtg-title,
|
2413 |
.modula-gallery .modula-item.effect-steve p {
|
2414 |
background: #fff;
|
2415 |
color: #2d434e;
|
2416 |
}
|
2417 |
|
2418 |
+
.modula-gallery .modula-item.effect-steve .jtg-title {
|
2419 |
position: relative;
|
2420 |
margin-top: 2em;
|
2421 |
padding: 0.25em;
|
2490 |
flex-direction: column;
|
2491 |
}
|
2492 |
|
2493 |
+
.modula-gallery .modula-item.effect-jazz .jtg-title,
|
2494 |
.modula-gallery .modula-item.effect-jazz p {
|
2495 |
opacity: 1;
|
2496 |
-webkit-transform: scale3d(0.8,0.8,1);
|
2497 |
transform: scale3d(0.8,0.8,1);
|
2498 |
}
|
2499 |
|
2500 |
+
.modula-gallery .modula-item.effect-jazz .jtg-title:before {
|
2501 |
display: none;
|
2502 |
}
|
2503 |
|
2504 |
+
.modula-gallery .modula-item.effect-jazz .jtg-title {
|
2505 |
-webkit-transition: -webkit-transform 0.35s;
|
2506 |
transition: transform 0.35s;
|
2507 |
}
|
2525 |
transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
|
2526 |
}
|
2527 |
|
2528 |
+
.modula-gallery .modula-item.effect-jazz:hover .jtg-title,
|
2529 |
.modula-gallery .modula-item.effect-jazz:hover p {
|
2530 |
opacity: 1;
|
2531 |
-webkit-transform: scale3d(1,1,1);
|
2570 |
padding:5%;
|
2571 |
}
|
2572 |
|
2573 |
+
.modula-gallery .modula-item.effect-ming .jtg-title {
|
2574 |
margin: 20% 0 10px 0;
|
2575 |
-webkit-transition: -webkit-transform 0.35s;
|
2576 |
transition: transform 0.35s;
|
2577 |
}
|
2578 |
|
2579 |
+
.modula-gallery .modula-item.effect-ming .jtg-title:before {
|
2580 |
display: none;
|
2581 |
}
|
2582 |
|
2589 |
z-index:999;
|
2590 |
}
|
2591 |
|
2592 |
+
.modula-gallery .modula-item.effect-ming:hover .jtg-title {
|
2593 |
-webkit-transform: scale(0.9);
|
2594 |
transform: scale(0.9);
|
2595 |
}
|
2686 |
transform: translate3d(0,0,0);
|
2687 |
}
|
2688 |
|
2689 |
+
html body .modula-gallery .modula-item.effect-lexi .jtg-title {
|
2690 |
text-align: left;
|
2691 |
-webkit-transition: -webkit-transform 0.35s;
|
2692 |
transition: transform 0.35s;
|
2694 |
transform: translate3d(5px,5px,0);
|
2695 |
}
|
2696 |
|
2697 |
+
.modula-gallery .modula-item.effect-lexi .jtg-title:before {
|
2698 |
display:none;
|
2699 |
}
|
2700 |
|
2716 |
transform: scale3d(1,1,1);
|
2717 |
}
|
2718 |
|
2719 |
+
html body .modula-gallery .modula-item.effect-lexi:hover .jtg-title,
|
2720 |
html body .modula-gallery .modula-item.effect-lexi:hover p {
|
2721 |
opacity: 1;
|
2722 |
-webkit-transform: translate3d(0,0,0);
|
2748 |
transform: scale3d(2,2,1);
|
2749 |
}
|
2750 |
|
2751 |
+
.modula-gallery .modula-item.effect-duke .jtg-title {
|
2752 |
-webkit-transition: -webkit-transform 0.35s;
|
2753 |
transition: transform 0.35s;
|
2754 |
-webkit-transform: scale3d(0.8,0.8,1);
|
2757 |
transform-origin: 50% 100%;
|
2758 |
}
|
2759 |
|
2760 |
+
.modula-gallery .modula-item.effect-duke .jtg-title:before {
|
2761 |
display: none;
|
2762 |
}
|
2763 |
|
2778 |
width:calc(100% - 40px) !important;
|
2779 |
}
|
2780 |
|
2781 |
+
.modula-gallery .modula-item.effect-duke:hover .jtg-title,
|
2782 |
.modula-gallery .modula-item.effect-duke:hover p {
|
2783 |
opacity: 1;
|
2784 |
-webkit-transform: scale3d(1,1,1);
|
2800 |
transform: translateZ(0px); /* Force correct stacking order */
|
2801 |
}
|
2802 |
|
2803 |
+
.modula-gallery .modula-item.effect-tilt_1 .jtg-title:before,
|
2804 |
+
.modula-gallery .modula-item.effect-tilt_2 .jtg-title:before,
|
2805 |
+
.modula-gallery .modula-item.effect-tilt_3 .jtg-title:before,
|
2806 |
+
.modula-gallery .modula-item.effect-tilt_4 .jtg-title:before,
|
2807 |
+
.modula-gallery .modula-item.effect-tilt_5 .jtg-title:before,
|
2808 |
+
.modula-gallery .modula-item.effect-tilt_6 .jtg-title:before,
|
2809 |
+
.modula-gallery .modula-item.effect-tilt_7 .jtg-title:before,
|
2810 |
+
.modula-gallery .modula-item.effect-tilt_8 .jtg-title:before {
|
2811 |
display:none;
|
2812 |
}
|
2813 |
|
2999 |
height:auto !important;
|
3000 |
}
|
3001 |
|
3002 |
+
.modula-gallery .modula-items .modula-item.effect-fluid-up .jtg-title {
|
3003 |
float: left;
|
3004 |
color:#121212;
|
3005 |
}
|
3017 |
-webkit-backface-visibility: hidden; /* Fix for Chrome 37.0.2062.120 (Mac) */
|
3018 |
}
|
3019 |
|
3020 |
+
.modula-gallery .modula-item.effect-fluid-up .jtg-title {
|
3021 |
-webkit-transition: -webkit-transform 0.35s;
|
3022 |
transition: transform 0.35s;
|
3023 |
-webkit-transform: translate3d(0,200%,0);
|
3024 |
transform: translate3d(0,200%,0);
|
3025 |
}
|
3026 |
|
3027 |
+
.modula-gallery .modula-item.effect-fluid-up .jtg-title {
|
3028 |
display: inline-block;
|
3029 |
}
|
3030 |
|
3033 |
}
|
3034 |
|
3035 |
.modula-gallery .modula-item:not(.notitle).effect-fluid-up:hover .figc,
|
3036 |
+
.modula-gallery .modula-item:not(.notitle).effect-fluid-up:hover .jtg-title,
|
3037 |
.modula-gallery .modula-item:not(.notitle).effect-fluid-up:hover p.icon-links a {
|
3038 |
-webkit-transform: translate3d(0,0,0);
|
3039 |
transform: translate3d(0,0,0);
|
3040 |
}
|
3041 |
|
3042 |
+
.modula-gallery .modula-item.effect-fluid-up:hover .jtg-title {
|
3043 |
-webkit-transition-delay: 0.05s;
|
3044 |
transition-delay: 0.05s;
|
3045 |
}
|
3080 |
display: block;
|
3081 |
}
|
3082 |
|
3083 |
+
.modula-gallery .modula-items .modula-item.effect-comodo .jtg-title {
|
3084 |
margin-top: 20px;
|
3085 |
}
|
3086 |
|
3155 |
transform-origin: 0 100%;
|
3156 |
}
|
3157 |
|
3158 |
+
.modula-gallery .modula-item.effect-winston .jtg-title {
|
3159 |
-webkit-transition: -webkit-transform 0.35s;
|
3160 |
transition: transform 0.35s;
|
3161 |
-webkit-transform: translate3d(0,20px,0);
|
3162 |
transform: translate3d(0,20px,0);
|
3163 |
}
|
3164 |
|
3165 |
+
.modula-gallery .modula-item.effect-winston .jtg-title:before {
|
3166 |
display:none;
|
3167 |
}
|
3168 |
|
3189 |
opacity: 0.6;
|
3190 |
}
|
3191 |
|
3192 |
+
.modula-gallery .modula-item.effect-winston:hover .jtg-title {
|
3193 |
-webkit-transform: translate3d(0,0,0);
|
3194 |
transform: translate3d(0,0,0);
|
3195 |
}
|
3253 |
transform: scale3d(0.95,0.95,1);
|
3254 |
}
|
3255 |
|
3256 |
+
.modula-gallery .modula-item.effect-selena .jtg-title {
|
3257 |
-webkit-transition: -webkit-transform 0.35s;
|
3258 |
transition: transform 0.35s;
|
3259 |
-webkit-transform: translate3d(0,20px,0);
|
3260 |
transform: translate3d(0,20px,0);
|
3261 |
}
|
3262 |
|
3263 |
+
.modula-gallery .modula-item.effect-selena .jtg-title:before {
|
3264 |
display: none;
|
3265 |
}
|
3266 |
|
3274 |
transform-origin: 50% 0%;
|
3275 |
}
|
3276 |
|
3277 |
+
.modula-gallery .modula-item.effect-selena:hover .jtg-title {
|
3278 |
-webkit-transform: translate3d(0,0,0);
|
3279 |
transform: translate3d(0,0,0);
|
3280 |
}
|
3330 |
transform: scale3d(1,1,1);
|
3331 |
}
|
3332 |
|
3333 |
+
.modula-gallery .modula-items .modula-item.effect-phoebe .jtg-title {
|
3334 |
margin-top: 1em;
|
3335 |
-webkit-transition: transform 0.35s;
|
3336 |
transition: transform 0.35s;
|
3338 |
transform: translate3d(0,40px,0);
|
3339 |
}
|
3340 |
|
3341 |
+
.modula-gallery .modula-item.effect-phoebe .jtg-title:before {
|
3342 |
display: none;
|
3343 |
}
|
3344 |
|
3345 |
+
.modula-gallery .modula-item.effect-phoebe:hover .jtg-title {
|
3346 |
-webkit-transform: translate3d(0,0,0);
|
3347 |
transform: translate3d(0,0,0);
|
3348 |
}
|
3414 |
margin:5%;
|
3415 |
}
|
3416 |
|
3417 |
+
.modula-gallery .modula-item.effect-reflex .figc-inner .jtg-title,
|
3418 |
.modula-gallery .modula-item.effect-reflex .figc-inner p {
|
3419 |
border-left: 3px solid #fff;
|
3420 |
padding-left: 2.5%;
|
3429 |
opacity: 1
|
3430 |
}
|
3431 |
|
3432 |
+
html body .modula-gallery .modula-item.effect-reflex .jtg-title {
|
3433 |
text-align: left;
|
3434 |
}
|
3435 |
|
3490 |
transform:scaleY(1);
|
3491 |
}
|
3492 |
|
3493 |
+
html body .modula-gallery .modula-items .effect-curtain .jtg-title {
|
3494 |
text-align: left;
|
3495 |
padding: 0 0 2.5%;
|
3496 |
border-bottom: 2px solid rgba( 255,255,255,.6 );
|
3558 |
transform: scale3d(2,2,1);
|
3559 |
}
|
3560 |
|
3561 |
+
.modula-gallery .modula-item.effect-lens .jtg-title {
|
3562 |
-webkit-transition: -webkit-transform 0.35s;
|
3563 |
transition: transform 0.35s;
|
3564 |
-webkit-transform: scale3d(0.8,0.8,1);
|
3592 |
margin-top: 10px;
|
3593 |
}
|
3594 |
|
3595 |
+
.modula-gallery .modula-item.effect-lens:hover .jtg-title,
|
3596 |
.modula-gallery .modula-item.effect-lens:hover p {
|
3597 |
opacity: 1;
|
3598 |
-webkit-transform: scale3d(1,1,1);
|
6556 |
.modula-gallery .modula-items .modula-item.effect-under .jtg-social a {
|
6557 |
opacity: 1;
|
6558 |
}
|
6559 |
+
.modula-gallery .modula-items .modula-item.effect-under .jtg-title:before {
|
6560 |
display: none;
|
6561 |
}
|
6562 |
|
6615 |
text-align: center;
|
6616 |
}
|
6617 |
|
6618 |
+
.modula-gallery .modula-item.effect-milo .jtg-title:before {
|
6619 |
display:none;
|
6620 |
}
|
6621 |
|
assets/css/admin/modula-cpt.css
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
color: #9c9c9c;
|
18 |
cursor: pointer;
|
19 |
position: relative;
|
20 |
-
width: 190px;
|
21 |
position: relative;
|
22 |
}
|
23 |
.modula-settings-container .modula-tabs .modula-tab sup {
|
@@ -25,7 +25,7 @@
|
|
25 |
padding: 2px 5px;
|
26 |
border-radius: 5px;
|
27 |
color: #fff;
|
28 |
-
font-size:
|
29 |
background: #9c9c9c;
|
30 |
display: inline-block;
|
31 |
line-height: 1;
|
@@ -162,10 +162,15 @@ tr label.th-label {
|
|
162 |
min-width:220px;
|
163 |
}
|
164 |
|
165 |
-
.modula-settings-container .modula-tabs-content .form-table textarea {
|
166 |
max-width:230px;
|
167 |
}
|
168 |
|
|
|
|
|
|
|
|
|
|
|
169 |
.modula-settings-container .modula-tabs-content .form-table th.two_child_setting {
|
170 |
padding-left:60px;
|
171 |
display:inline-block;
|
@@ -310,7 +315,7 @@ tr label.th-label {
|
|
310 |
height: 100%;
|
311 |
padding: 0;
|
312 |
}
|
313 |
-
.modula-effects-preview .modula-item .figc
|
314 |
font-size: 21px !important;
|
315 |
color: #fff;
|
316 |
}
|
@@ -320,7 +325,7 @@ tr label.th-label {
|
|
320 |
font-style: normal;
|
321 |
}
|
322 |
|
323 |
-
.modula .modula-items .modula-item
|
324 |
margin:0;
|
325 |
}
|
326 |
.modula .modula-items .modula-item p {
|
@@ -385,7 +390,7 @@ html body .modula.modula-gallery .modula-items .jtg-social {
|
|
385 |
text-align: right;
|
386 |
}
|
387 |
|
388 |
-
.modula .modula-item.effect-pufrobo
|
389 |
.modula .modula-item.effect-pufrobo p {
|
390 |
position: absolute;
|
391 |
right: 30px;
|
@@ -405,7 +410,7 @@ html body .modula.modula-gallery .modula-items .jtg-social {
|
|
405 |
letter-spacing: 1px;
|
406 |
}
|
407 |
|
408 |
-
.modula .modula-item.effect-pufrobo
|
409 |
/*top: 30px;*/
|
410 |
top: 10%;
|
411 |
-webkit-transition: -webkit-transform 0.35s;
|
@@ -414,12 +419,12 @@ html body .modula.modula-gallery .modula-items .jtg-social {
|
|
414 |
transform: translate3d(0,20px,0);
|
415 |
}
|
416 |
|
417 |
-
.modula .modula-item.effect-pufrobo:hover
|
418 |
-webkit-transform: translate3d(0,0,0);
|
419 |
transform: translate3d(0,0,0);
|
420 |
}
|
421 |
|
422 |
-
.modula .modula-item.effect-pufrobo
|
423 |
position: absolute;
|
424 |
top: 80%;
|
425 |
left: 0;
|
@@ -431,14 +436,14 @@ html body .modula.modula-gallery .modula-items .jtg-social {
|
|
431 |
transform: translate3d(0,40px,0);
|
432 |
}
|
433 |
|
434 |
-
.modula .modula-item.effect-pufrobo
|
435 |
.modula .modula-item.effect-pufrobo p {
|
436 |
opacity: 0;
|
437 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
438 |
transition: opacity 0.35s, transform 0.35s;
|
439 |
}
|
440 |
|
441 |
-
.modula .modula-item.effect-pufrobo:hover
|
442 |
.modula .modula-item.effect-pufrobo:hover p {
|
443 |
margin-top: 10px;
|
444 |
margin-bottom: 5px;
|
@@ -447,11 +452,11 @@ html body .modula.modula-gallery .modula-items .jtg-social {
|
|
447 |
transform: translate3d(0,0,0);
|
448 |
}
|
449 |
|
450 |
-
html body #wpbody #poststuff #post-body .postbox-container #modula-hover-effect .modula.modula-gallery .modula-items .modula-item.effect-sadie
|
451 |
color:#fff;
|
452 |
}
|
453 |
|
454 |
-
html body #wpbody #poststuff #post-body .postbox-container #modula-hover-effect .modula.modula-gallery .modula-items .modula-item.effect-zoe
|
455 |
html body #wpbody #poststuff #post-body .postbox-container #modula-hover-effect .modula.modula-gallery .modula-items .modula-item.effect-zoe .jtg-social a {
|
456 |
color:#000;
|
457 |
}
|
@@ -484,24 +489,24 @@ tr[data-container="effect"] > td {
|
|
484 |
.modula-effects-preview .modula-item.effect-roxy .figc,
|
485 |
.modula-effects-preview .modula-item.effect-layla .figc,
|
486 |
.modula-effects-preview .modula-item.effect-oscar .figc,
|
487 |
-
#poststuff .modula-effects-preview .modula-item .figc
|
488 |
padding : 0;
|
489 |
}
|
490 |
|
491 |
-
#poststuff .modula .modula-item.effect-reflex .figc-inner
|
492 |
padding-left : 10px;
|
493 |
}
|
494 |
|
495 |
-
#poststuff .modula .modula-items .modula-item.effect-comodo
|
496 |
margin-top : 20px;
|
497 |
}
|
498 |
|
499 |
-
#poststuff .modula .modula-item.effect-appear
|
500 |
-
#poststuff .modula .modula-item.effect-honey
|
501 |
padding : 1em 1.5em;
|
502 |
}
|
503 |
|
504 |
-
#poststuff .modula .modula-item.effect-milo
|
505 |
padding : 1em 1.2em;
|
506 |
}
|
507 |
|
@@ -510,7 +515,7 @@ tr[data-container="effect"] > td {
|
|
510 |
padding : 0.4em 1em;
|
511 |
}
|
512 |
|
513 |
-
#poststuff .modula .modula-item.effect-terry
|
514 |
padding : 0.4em 15px;
|
515 |
}
|
516 |
|
@@ -519,7 +524,7 @@ tr[data-container="effect"] > td {
|
|
519 |
padding : 0 1em;
|
520 |
}
|
521 |
|
522 |
-
#poststuff .modula .modula-items .modula-item.effect-steve
|
523 |
margin-top : 2em;
|
524 |
padding : 0.25em;
|
525 |
color : #000;
|
@@ -537,17 +542,6 @@ tr[data-container="effect"] > td {
|
|
537 |
transform : translate(-50%, -50%);
|
538 |
}
|
539 |
|
540 |
-
/**
|
541 |
-
* General Metabox
|
542 |
-
*/
|
543 |
-
|
544 |
-
.modula-metabox {
|
545 |
-
border : 0;
|
546 |
-
padding : 15px;
|
547 |
-
margin-top : 30px;
|
548 |
-
text-align:center;
|
549 |
-
}
|
550 |
-
|
551 |
/* Upsells */
|
552 |
.modula-upsell {
|
553 |
background: #f1f1f1;
|
@@ -557,10 +551,6 @@ tr[data-container="effect"] > td {
|
|
557 |
margin-top: 30px;
|
558 |
}
|
559 |
|
560 |
-
#modula-debug .modula-metabox p.modula-metabox-description {
|
561 |
-
padding:0;
|
562 |
-
}
|
563 |
-
|
564 |
.modula-settings-container .modula-upsell {
|
565 |
margin:30px;
|
566 |
}
|
@@ -598,8 +588,6 @@ tr[data-container="effect"] > td {
|
|
598 |
.modula-upsell p {
|
599 |
margin: 0;
|
600 |
}
|
601 |
-
|
602 |
-
.modula-metabox p.modula-metabox-description,
|
603 |
.modula-upsell p.modula-upsell-description {
|
604 |
font-size: 13px;
|
605 |
line-height: 1.5;
|
@@ -1712,21 +1700,28 @@ html body .modula-tabs-content .modula-colorpickers .iris-palette-container a:nt
|
|
1712 |
}
|
1713 |
|
1714 |
.modula .nav-tab .modula-badge {
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
|
|
1720 |
}
|
1721 |
|
1722 |
.modula-settings-upsell {
|
1723 |
max-width: 600px;
|
1724 |
padding: 15px;
|
1725 |
background: #fff;
|
1726 |
-
margin-
|
|
|
|
|
|
|
|
|
|
|
|
|
1727 |
}
|
1728 |
|
1729 |
-
.modula-settings-upsell a:first-child {
|
1730 |
margin-right: 10px;
|
1731 |
}
|
1732 |
|
@@ -1816,18 +1811,17 @@ html body .modula-tabs-content .modula-colorpickers .iris-palette-container a:nt
|
|
1816 |
line-height: 20px;
|
1817 |
}
|
1818 |
|
1819 |
-
html body .modula-settings-container .modula-tab-content tr[data-container="gutter"] > td
|
|
|
1820 |
display:inline-block;
|
1821 |
}
|
1822 |
|
1823 |
-
html body .modula-settings-container .modula-tab-content tr[data-container] input
|
1824 |
-
html body .modula-settings-container .modula-tab-content tr[data-container] input[data-setting="tablet_gutter"],
|
1825 |
-
html body .modula-settings-container .modula-tab-content tr[data-container] input[data-setting="mobile_gutter"] {
|
1826 |
border-radius : 0;
|
1827 |
border-right : 0;
|
1828 |
border-left : 0;
|
1829 |
-
min-width :
|
1830 |
-
max-width :
|
1831 |
height : 32px;
|
1832 |
position : relative;
|
1833 |
left : -1px;
|
17 |
color: #9c9c9c;
|
18 |
cursor: pointer;
|
19 |
position: relative;
|
20 |
+
min-width: 190px;
|
21 |
position: relative;
|
22 |
}
|
23 |
.modula-settings-container .modula-tabs .modula-tab sup {
|
25 |
padding: 2px 5px;
|
26 |
border-radius: 5px;
|
27 |
color: #fff;
|
28 |
+
font-size: 10px;
|
29 |
background: #9c9c9c;
|
30 |
display: inline-block;
|
31 |
line-height: 1;
|
162 |
min-width:220px;
|
163 |
}
|
164 |
|
165 |
+
.modula-settings-container .modula-tabs-content .form-table textarea:not(#modula-style-customcode) {
|
166 |
max-width:230px;
|
167 |
}
|
168 |
|
169 |
+
textarea#modula-style-customcode {
|
170 |
+
resize : none;
|
171 |
+
height : calc(100vh - 100px);
|
172 |
+
}
|
173 |
+
|
174 |
.modula-settings-container .modula-tabs-content .form-table th.two_child_setting {
|
175 |
padding-left:60px;
|
176 |
display:inline-block;
|
315 |
height: 100%;
|
316 |
padding: 0;
|
317 |
}
|
318 |
+
.modula-effects-preview .modula-item .figc .jtg-title {
|
319 |
font-size: 21px !important;
|
320 |
color: #fff;
|
321 |
}
|
325 |
font-style: normal;
|
326 |
}
|
327 |
|
328 |
+
.modula .modula-items .modula-item .jtg-title {
|
329 |
margin:0;
|
330 |
}
|
331 |
.modula .modula-items .modula-item p {
|
390 |
text-align: right;
|
391 |
}
|
392 |
|
393 |
+
.modula .modula-item.effect-pufrobo .jtg-title,
|
394 |
.modula .modula-item.effect-pufrobo p {
|
395 |
position: absolute;
|
396 |
right: 30px;
|
410 |
letter-spacing: 1px;
|
411 |
}
|
412 |
|
413 |
+
.modula .modula-item.effect-pufrobo .jtg-title {
|
414 |
/*top: 30px;*/
|
415 |
top: 10%;
|
416 |
-webkit-transition: -webkit-transform 0.35s;
|
419 |
transform: translate3d(0,20px,0);
|
420 |
}
|
421 |
|
422 |
+
.modula .modula-item.effect-pufrobo:hover .jtg-title {
|
423 |
-webkit-transform: translate3d(0,0,0);
|
424 |
transform: translate3d(0,0,0);
|
425 |
}
|
426 |
|
427 |
+
.modula .modula-item.effect-pufrobo .jtg-title::after {
|
428 |
position: absolute;
|
429 |
top: 80%;
|
430 |
left: 0;
|
436 |
transform: translate3d(0,40px,0);
|
437 |
}
|
438 |
|
439 |
+
.modula .modula-item.effect-pufrobo .jtg-title::after,
|
440 |
.modula .modula-item.effect-pufrobo p {
|
441 |
opacity: 0;
|
442 |
-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
|
443 |
transition: opacity 0.35s, transform 0.35s;
|
444 |
}
|
445 |
|
446 |
+
.modula .modula-item.effect-pufrobo:hover .jtg-title::after,
|
447 |
.modula .modula-item.effect-pufrobo:hover p {
|
448 |
margin-top: 10px;
|
449 |
margin-bottom: 5px;
|
452 |
transform: translate3d(0,0,0);
|
453 |
}
|
454 |
|
455 |
+
html body #wpbody #poststuff #post-body .postbox-container #modula-hover-effect .modula.modula-gallery .modula-items .modula-item.effect-sadie .jtg-title {
|
456 |
color:#fff;
|
457 |
}
|
458 |
|
459 |
+
html body #wpbody #poststuff #post-body .postbox-container #modula-hover-effect .modula.modula-gallery .modula-items .modula-item.effect-zoe .jtg-title,
|
460 |
html body #wpbody #poststuff #post-body .postbox-container #modula-hover-effect .modula.modula-gallery .modula-items .modula-item.effect-zoe .jtg-social a {
|
461 |
color:#000;
|
462 |
}
|
489 |
.modula-effects-preview .modula-item.effect-roxy .figc,
|
490 |
.modula-effects-preview .modula-item.effect-layla .figc,
|
491 |
.modula-effects-preview .modula-item.effect-oscar .figc,
|
492 |
+
#poststuff .modula-effects-preview .modula-item .figc .jtg-title {
|
493 |
padding : 0;
|
494 |
}
|
495 |
|
496 |
+
#poststuff .modula .modula-item.effect-reflex .figc-inner .jtg-title {
|
497 |
padding-left : 10px;
|
498 |
}
|
499 |
|
500 |
+
#poststuff .modula .modula-items .modula-item.effect-comodo .jtg-title {
|
501 |
margin-top : 20px;
|
502 |
}
|
503 |
|
504 |
+
#poststuff .modula .modula-item.effect-appear .jtg-title,
|
505 |
+
#poststuff .modula .modula-item.effect-honey .jtg-title {
|
506 |
padding : 1em 1.5em;
|
507 |
}
|
508 |
|
509 |
+
#poststuff .modula .modula-item.effect-milo .jtg-title {
|
510 |
padding : 1em 1.2em;
|
511 |
}
|
512 |
|
515 |
padding : 0.4em 1em;
|
516 |
}
|
517 |
|
518 |
+
#poststuff .modula .modula-item.effect-terry .jtg-title {
|
519 |
padding : 0.4em 15px;
|
520 |
}
|
521 |
|
524 |
padding : 0 1em;
|
525 |
}
|
526 |
|
527 |
+
#poststuff .modula .modula-items .modula-item.effect-steve .jtg-title {
|
528 |
margin-top : 2em;
|
529 |
padding : 0.25em;
|
530 |
color : #000;
|
542 |
transform : translate(-50%, -50%);
|
543 |
}
|
544 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
/* Upsells */
|
546 |
.modula-upsell {
|
547 |
background: #f1f1f1;
|
551 |
margin-top: 30px;
|
552 |
}
|
553 |
|
|
|
|
|
|
|
|
|
554 |
.modula-settings-container .modula-upsell {
|
555 |
margin:30px;
|
556 |
}
|
588 |
.modula-upsell p {
|
589 |
margin: 0;
|
590 |
}
|
|
|
|
|
591 |
.modula-upsell p.modula-upsell-description {
|
592 |
font-size: 13px;
|
593 |
line-height: 1.5;
|
1700 |
}
|
1701 |
|
1702 |
.modula .nav-tab .modula-badge {
|
1703 |
+
font-size: 10px;
|
1704 |
+
background: #f4daa4;
|
1705 |
+
padding: 2px 5px;
|
1706 |
+
display: inline-block;
|
1707 |
+
margin-left: 10px;
|
1708 |
+
border-radius: 10px;
|
1709 |
}
|
1710 |
|
1711 |
.modula-settings-upsell {
|
1712 |
max-width: 600px;
|
1713 |
padding: 15px;
|
1714 |
background: #fff;
|
1715 |
+
margin-bottom: 20px;
|
1716 |
+
}
|
1717 |
+
|
1718 |
+
.modula-settings-tab-upsell {
|
1719 |
+
padding: 20px;
|
1720 |
+
background: #fff;
|
1721 |
+
color: #3c434a;
|
1722 |
}
|
1723 |
|
1724 |
+
.modula-settings-upsell a:first-child, .modula-settings-tab-upsell a:first-child {
|
1725 |
margin-right: 10px;
|
1726 |
}
|
1727 |
|
1811 |
line-height: 20px;
|
1812 |
}
|
1813 |
|
1814 |
+
html body .modula-settings-container .modula-tab-content tr[data-container="gutter"] > td,
|
1815 |
+
html body .modula-settings-container .modula-tab-content tr[data-container="height"] > td {
|
1816 |
display:inline-block;
|
1817 |
}
|
1818 |
|
1819 |
+
html body .modula-settings-container .modula-tab-content tr[data-container] input.modula-gutter-input {
|
|
|
|
|
1820 |
border-radius : 0;
|
1821 |
border-right : 0;
|
1822 |
border-left : 0;
|
1823 |
+
min-width : 62px;
|
1824 |
+
max-width : 62px;
|
1825 |
height : 32px;
|
1826 |
position : relative;
|
1827 |
left : -1px;
|
assets/css/admin/modula-cpt.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#modula-settings .inside{padding:0;margin:0}.modula-settings-container{display:flex}.modula-settings-container .modula-tabs{background-color:#f8f8f8}.modula-settings-container .modula-tabs .modula-tab{margin:0 10px 0 0;padding:15px 0;color:#9c9c9c;cursor:pointer;position:relative;width:185px;position:relative}.modula-settings-container .modula-tabs .modula-tab sup{margin-left:5px;padding:2px 5px;border-radius:5px;color:#fff;font-size:8px;background:#9c9c9c;display:inline-block;line-height:1;position:relative;top:-2px}.modula-settings-container .modula-tabs .modula-tab.active-tab sup,.modula-settings-container .modula-tabs .modula-tab:hover sup{background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.modula-responsive.active-tab sup,.modula-settings-container .modula-tabs .modula-tab.modula-responsive:hover sup{background:#dc3232}.modula-settings-container .modula-tabs .modula-tab>i{margin-right:10px;margin-left:15px}.modula-settings-container .modula-tabs .modula-tab:after{position:absolute;content:"";width:1px;height:100%;background-color:transparent;top:0;right:-1px}.modula-settings-container .modula-tabs .modula-tab.active-tab:first-child{border-top:none}.modula-settings-container .modula-tabs .modula-tab:hover{color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab{margin:0;padding:15px 10px 15px 0;background-color:#fff;border-top:1px solid #ddd;color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab:not(:last-child){border-bottom:1px solid #ddd}.modula-settings-container .modula-tabs .modula-tab.active-tab:before{content:"";position:absolute;left:-2px;top:-1px;width:3px;height:calc(100% + 2px);background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.active-tab:after{background-color:#fff}tr label.th-label{color:#23282d;font-weight:600;margin-bottom:10px}.postbox .modula-settings-container table.form-table{margin:0}.modula-settings-container .modula-tabs-content{padding:0;border-left:1px solid #ccd0d4;flex-grow:1}.modula-tabs-content>div:not(.active-tab){display:none}.modula-settings-container .modula-tabs-content .tab-content-header{width:100%;padding:15px 20px 15px 20px;border-bottom:1px solid #ccd0d4;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions{display:flex;align-items:center}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions>span{margin:0 10px;font-style:italic}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions a.button>span{height:auto;line-height:26px;margin-right:10px}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-title>h2{font-weight:700;padding:0;display:inline-block;line-height:20px}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-header-description p{margin:0}.modula-settings-container .form-table td p.description{font-size:13px}.modula-settings-container .modula-tabs-content .form-table tr{border-top:1px solid #eee;border-bottom:1px solid #eee}.modula-settings-container .modula-tabs-content .form-table tr:first-of-type{border-top:none}.modula-settings-container .modula-tabs-content .form-table tr:last-of-type{border-bottom:none}.modula-settings-container .modula-tabs-content .form-table th{padding:20px;width:230px}.modula-settings-container .modula-tabs-content .form-table th.child_setting{padding-left:40px;display:inline-block;width:230px}.modula-settings-container .slider-container{position:relative;height:2px;padding:10px 0;width:240px;box-sizing:border-box;display:flex;display:flex;justify-content:space-between;align-items:center}.modula-settings-container .slider-container input[type=text]{border:none;text-align:center;padding:2px;margin:0 30px 0 0;font-size:12px;color:#333;border-radius:10px;background-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);box-shadow:inset 0 1px 1px rgba(0,0,0,.16);width:40px;height:22px;min-width:auto;cursor:default}.modula-settings-container .slider-container .ui-slider{position:relative;text-align:left;height:2px;border-radius:3px;border:none;display:block;width:100%;background:#d6d6d6;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.modula-settings-container .slider-container .ui-slider .ui-slider-handle{position:absolute;z-index:2;top:-10px;cursor:default;-ms-touch-action:none;touch-action:none;width:18px;height:18px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;background-color:#fff;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border:solid 1px #d7d7d7;transform:translateX(-50%)}.modula-settings-container .slider-container .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0;background:#57a7c9;top:0;bottom:0}.modula-settings-container input:not([type=select-one]):not([type=button]):not([readonly=readonly]),.modula-settings-container select{min-width:240px;max-width:240px}.selectize-control.single .selectize-input,.selectize-dropdown.single{max-width:240px}.modula-effects-preview{margin-top:20px}.modula-effects-preview .modula-item{width:400px;height:300px;overflow:hidden;position:relative}.modula-effects-preview .modula-item img{position:absolute;min-height:100%;min-width:100%}.modula-effects-preview .modula-item .figc{display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;text-align:center;position:absolute;left:0;width:100%;height:100%;padding:0}.modula-effects-preview .modula-item .figc h2{font-size:21px!important;color:#fff}.modula-effects-preview .modula-item .figc p{color:#fff;font-size:15px;font-style:normal}.modula .modula-items .modula-item h2{margin:0}.modula .modula-items .modula-item p{margin:0;padding:0}.modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}.modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;width:20px;padding:6px 4px;border:0;opacity:0;transition:opacity .3s}.modula .modula-item .jtg-social svg{width:20px;height:16px}.modula .modula-item:hover .jtg-social a{opacity:1}.modula .modula-items .jtg-social{opacity:0;transition:opacity .1s;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}.modula .modula-items .jtg-social{opacity:1}.modula .modula-items .jtg-social a:last-of-type{margin-right:0}.modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}.modula .modula-item.effect-pufrobo .figc{text-align:right}.modula .modula-item.effect-pufrobo h2,.modula .modula-item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}.modula .modula-item:hover img{opacity:.8}.modula .modula-item{background-color:#000}.modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}.modula .modula-item.effect-pufrobo h2{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}.modula .modula-item.effect-pufrobo:hover h2{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula .modula-item.effect-pufrobo h2::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}.modula .modula-item.effect-pufrobo h2::after,.modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}.modula .modula-item.effect-pufrobo:hover h2::after,.modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula-upsell{background:#f1f1f1;border:0;padding:15px;margin-top:30px}.modula-settings-container .modula-upsell{margin:30px}.form-table-wrapper .modula-upsell{border:1px solid #ddd;text-align:center}#poststuff .modula-upsell h2{margin:0 0 20px 0;font-size:16px;font-weight:700;background:#fff;left:-15px;top:-15px;padding:8px 12px;position:relative;width:calc(100% + 6px);border-bottom:1px solid #ddd}.modula-upsell p{margin:0}.modula-upsell p.modula-upsell-description{font-size:13px;line-height:1.5;color:#333;opacity:.8;margin-top:0;margin-bottom:10px;padding:0 10px}.modula-upsell .button{height:31px;line-height:31px;font-weight:700}.modula-upsell .button:first-child{margin-right:10px}.modula-upsell .action-link,.modula-upsell .action-link:hover{background:#51ad31;border-color:#51ad31;color:#fff;font-weight:700}#modula-uploader-container{position:relative;padding-left:10px;padding-right:10px}#modula-uploader-container.modula-resizer-enabled{margin-bottom:20px}.modula-upload-actions{padding:15px 20px;background-color:#f8fcfd;border-bottom:1px solid #ecf6f9;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box}.modula-upload-actions .buttons{flex-shrink:0;width:275px;display:flex}.modula-sources-dropdown{position:relative;border-top:1px solid rgba(255,255,255,0);border-right:1px solid rgba(255,255,255,0);border-left:1px solid rgba(255,255,255,0)}.modula-sources-dropdown:hover{border-color:#ddd;background:#f5f5f5}.modula-sources-dropdown>span{width:28px;height:32px;text-align:center;line-height:28px;cursor:pointer;display:inline-block;font-size:25px;font-weight:700}.modula-sources-dropdown .modula-sources-dropdown-content{position:absolute;right:-1px;bottom:0;transform:translateY(100%);display:none;padding:15px;background-color:#f5f5f5;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;border:1px solid #ddd}.modula-sources-dropdown:hover .modula-sources-dropdown-content{display:block}.modula-sources-dropdown:hover .modula-sources-dropdown-content:before{content:"";height:1px;width:28px;background-color:#f5f5f5;position:absolute;top:-1px;right:0}.segrip.ui-resizable-se{width:30px;height:30px;background:url(../images/resize-se.svg) no-repeat;background-size:contain;display:none;z-index:100;opacity:1}.modula-resizer-enabled .segrip.ui-resizable-se{display:block}.modula-upload-actions #modula-uploader-browser{border-bottom-right-radius:0;border-top-right-radius:0}.modula-upload-actions #modula-wp-gallery{border-bottom-left-radius:0;border-top-left-radius:0}.wp-core-ui .modula-upload-actions>a{margin:0 5px}#modula-dropzone-container{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,.9);z-index:250000;display:none;text-align:center;opacity:0;transition:opacity 250ms}#modula-dropzone-container .modula-uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}#poststuff #modula-dropzone-container .modula-uploader-window-content h1{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:20px;line-height:28px;font-weight:400;color:#fff;padding:0}.modula-uploader-inline-content{position:relative;min-height:300px;width:100%}.modula-resizer-enabled .modula-uploader-inline-content{min-height:initial}.modula-uploader-inline-content h2{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#poststuff .modula-upload-message{font-size:43px;line-height:1;font-weight:400;margin:0;display:none;color:#ebebeb}#poststuff .modula-upload-message .dashicons,#poststuff .modula-upload-message .dashicons-before:before{font-size:43px;width:43px;height:43px}.modula-uploader-inline p{font-size:12px;margin:.5em 0}#poststuff .modula-uploader-inline .modula-upload-instructions{font-size:14px;color:#444;font-weight:400;padding:0}.modula-uploader-footer .max-upload-size{float:left}.modula-uploader-footer .modula-upload-numbers{float:right;opacity:0}.modula-uploader-footer:after{display:block;content:"";clear:both}.upload-progress .modula-upload-numbers{margin:0;line-height:1.4em}.modula-progress-bar{width:100%;max-width:400px;position:relative;height:2px;margin:8px 0 0;border-radius:10px;background:#e5e5e5}.upload-info-container{position:relative;overflow:hidden;flex-grow:1}.upload-info-container .upload-info{padding:5px 0}.upload-info-container .upload-progress{position:absolute;background-color:#f8fcfd;height:100%;display:flex;top:0;left:0;width:100%;flex-direction:column;transition:transform .5s;transform:translateY(100%)}.modula-upload-actions.show-progress .upload-info-container .upload-progress{transform:translateY(0)}.modula-progress-bar .modula-progress-bar-inner{height:2px;min-width:20px;width:0;background:#0085ba;-webkit-transition:width .3s;-moz-transition:width .3s;-ms-transition:width .3s;-o-transition:width .3s;transition:width .3s;border-radius:5px}.modula-uploader-footer.show-progress .modula-progress-bar,.modula-uploader-footer.show-progress .modula-upload-numbers{opacity:1}.modula-uploader-inline-content .modula-single-image,.modula-uploader-inline-content .modula-single-image-placeholder{cursor:move;display:inline-block;padding:0 10px 20px 0;box-sizing:border-box;width:16.66%}.modula-uploader-inline-content .modula-single-image-placeholder:after{width:100%;height:100%;display:inline-block;content:"";position:relative;border:3px dashed #444;padding-top:calc(100% - 6px);box-sizing:border-box}.modula-uploader-inline-content .modula-single-image .modula-single-image-content{position:relative;border:1px solid #d6d6d6;box-sizing:border-box;background-position:center;background-size:cover}.modula-uploader-inline-content .modula-single-image .modula-single-image-content img{display:block;width:100%}#poststuff .modula-uploader-inline-content>.modula-upload-message:only-child{display:block}.modula-uploader-inline-content .modula-single-image .actions{position:absolute;z-index:99;font-size:0;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.4);padding:5px;box-sizing:border-box;display:none}.modula-uploader-inline-content .modula-single-image:hover .actions{display:block}.modula-uploader-inline-content .modula-single-image .actions a{width:20px;height:20px;border-radius:100%;border:1px solid #000;background-color:rgba(255,255,255,.8);color:#000;display:block;text-decoration:none;text-align:center;line-height:20px;margin-bottom:5px}.modula-uploader-inline-content .modula-single-image .actions a:hover{background-color:#000;color:#fff}.modula-uploader-inline-content .modula-single-image .actions a span{font-size:16px;width:20px;height:20px;line-height:20px}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image{color:#a00a00}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image:hover{background-color:#a00a00;color:#fff}.modula-uploader-inline-content:after{content:"";display:block;clear:both}.media-modal .modula-edit-popup.edit-attachment-frame .edit-media-header button.right{border-right:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting input[type=text],.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting div.description{clear:both;float:left;margin:5px 0 0 0;text-align:left;font-size:13px;font-style:italic;color:#666}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}.media-modal .attachment-info .actions a{display:inline-block}.inline-input{display:inline}.ui-draggable.ui-resizable>.segrip{width:10px;height:10px;background:red;position:absolute;bottom:0;right:0}.ui-draggable.ui-resizable .modula-single-image-content img{display:none}.ui-draggable.ui-resizable .modula-single-image-content{width:100%;height:100%}.ui-draggable.ui-resizable.modula-single-image{padding:0}.packery-drop-placeholder{outline:3px dashed #444;outline-offset:-6px;-webkit-transition:-webkit-transform .2s;transition:transform .2s}.ui-resizable-helper{border:3px dashed #444;box-sizing:border-box}#poststuff #modula-preview-gallery h2.hndle,#poststuff #modula-settings h2.hndle{padding-left:20px}#poststuff #modula-preview-gallery .inside{margin-top:0;padding:0}.modula-edit-popup .attachment-details .setting span.description>span{display:inline-block;float:none;width:auto;min-width:unset;line-height:16px;min-height:16px;margin-top:8px;padding:0;vertical-align:middle;margin-right:0}.modula-edit-popup .attachment-details .setting span.description{text-align:left;vertical-align:middle}.modula-media-modal .attachments-browser .media-toolbar .media-toolbar-secondary{width:100%}.modula-error-container{display:block}.modula-error-container.hide{display:none}.modula-error-container .modula-error{padding:12px;margin-bottom:12px;background:#fff;border-left:4px solid #dc3232;box-shadow:0 0 4px 0 rgba(0,0,0,.1);font-weight:600;margin-top:5px;position:relative;background-color:#dc3232;color:#fff}.modula-error-container .modula-error a{color:#fff}.modula-error-container .modula-error .upload-dismiss-errors{position:absolute;top:50%;right:-5px;padding:10px;transition:none;display:block;text-decoration:none;margin-top:-18px}.modula-error-container .modula-error .upload-dismiss-errors:before{content:"\f153";display:block;font:400 16px/1 dashicons;color:#fff}a.modula-tab-link{text-decoration:none}.modula-tab-link span.dashicons{width:16px;height:16px;line-height:16px;margin-right:3px;vertical-align:text-bottom;font-size:16px;text-decoration:none}#modula-grid{height:100%;position:absolute;overflow:hidden;top:0;left:0;width:100%}#modula-grid .modula-grid-item{background-color:#fafafa;float:left}#modula-grid .modula-grid-item:nth-child(12n){margin-right:0!important}#modula-grid:after{content:"";display:block;clear:both}.modula-tooltip{position:relative;display:inline-block;float:left;margin-right:10px}.modula-tooltip>span{cursor:pointer;color:#0073aa;text-decoration:underline;margin-left:5px}.modula-tooltip .modula-tooltip-content{display:none;position:absolute;top:50%;right:-10px;transform:translate(100% ,-50%);width:300px;background:#000;color:#fff;padding:10px;box-sizing:border-box;z-index:99}.modula-tooltip .modula-tooltip-content:before{content:'';width:0;height:0;border-style:solid;border-width:8px 8px 8px 0;border-color:transparent #000 transparent transparent;display:block;position:absolute;top:50%;left:-8px;transform:translateY(-50%)}.modula-tooltip:hover .modula-tooltip-content{display:block}.modula-helper-guidelines-container{padding:15px 20px;background-color:#f8fcfd;display:flex;align-items:center;border-top:1px solid #ecf6f9;z-index:999;position:relative}.modula-helper-guidelines-container .onoffswitch{margin-top:0}.modula-helper-guidelines-wrapper .modula-helper-guidelines-label{margin-left:5px}.modula-helper-guidelines-container.modula-guidelines-display{display:none}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image .modula-single-image-content{background:#eee!important;position:relative;overflow:hidden}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content:before{content:"";display:block;padding-top:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content img{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.landscape img{max-height:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.portrait img{max-width:100%}.modula-toggle{position:relative;position:relative;user-select:none;display:inline-block}.modula-toggle__items{box-sizing:border-box;display:inline-block;position:relative}.modula-toggle__items>*{box-sizing:inherit}.modula-toggle__input[type=checkbox]{border-radius:2px;border:2px solid #6c7781;margin-right:12px;transition:none;height:100%;left:0;top:0;margin:0;padding:0;opacity:0;position:absolute;width:100%;z-index:1}.modula-toggle__track{background-color:#fff;border:2px solid #6c7781;border-radius:9px;display:inline-block;height:18px;width:36px;vertical-align:top;transition:background .2s ease}.modula-toggle__thumb{background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;display:block;height:10px;width:10px;position:absolute;left:4px;top:4px;transition:transform .2s ease}.modula-toggle__off{position:absolute;right:6px;top:6px;color:#6c7781;fill:currentColor}.modula-toggle__on{position:absolute;top:6px;left:8px;border:1px solid #fff;outline:1px solid transparent;outline-offset:-1px;display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__track{background-color:#11a0d2;border:9px solid transparent}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__off{display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__on{display:inline-block}p.description.alert{color:red}tr.troubleshoot-subfield.hide{display:none}.modula-copy-shortcode{display:flex;align-items:center;flex-wrap:wrap}.modula-copy-shortcode input{margin:0;border-top-right-radius:0;border-bottom-right-radius:0;flex-grow:1}.modula-copy-shortcode span{width:100%}.wp-core-ui .modula-copy-shortcode a.button-primary{height:30px;border-top-left-radius:0;border-bottom-left-radius:0}@keyframes carousel{0%{transform:translateX(0);opacity:1!important}50%{transform:translateX(0);opacity:1!important}51%{transform:translateX(-100%);opacity:1!important}99%{transform:translateX(-100%);opacity:1!important}100%{transform:translateX(-200%);opacity:1!important}}.modula-upsells-carousel-wrapper{position:relative;display:flex;overflow:hidden}.modula-upsells-carousel{flex-shrink:0;position:relative;display:block;width:100%}.modula-upsells-carousel .modula-upsell-item{position:relative;width:100%;flex-shrink:0;margin-top:0;left:-15px}.modula-upsells-carousel .modula-upsell-item{text-align:center}.modula-upsells-carousel .modula-upsell-item ul.modula-upsells-list{padding-left:40px}.modula-upsells-carousel .modula-upsell-item ul li{position:relative;list-style-type:none!important;text-align:left}#modula-albums-upsell .modula-upsells-carousel .modula-upsell-item ul li{display:inline-block;margin:0 15px 15px 35px}.modula-upsells-carousel .modula-upsell-item ul li:before{font-family:Dashicons;content:"\f147";position:absolute;left:-30px;font-size:14px;color:green;background-color:#fff;padding:0 3px;border-radius:50%;border:1px solid #ddd;top:-1px}#modula-albums-upsell>button.handlediv,#modula-albums-upsell>h2.hndle.ui-sortable-handle,#modula-sorting-upsell>button.handlediv,#modula-sorting-upsell>h2.hndle.ui-sortable-handle{display:none}#modula-albums-upsell>.inside,#modula-sorting-upsell>.inside{padding:0;margin:0 auto}.cm-s-dracula .CodeMirror-gutters,.cm-s-dracula.CodeMirror{background-color:#282a36!important;color:#f8f8f2!important;border:none}.cm-s-dracula .CodeMirror-gutters{color:#282a36}.cm-s-dracula .CodeMirror-cursor{border-left:solid thin #f8f8f0}.cm-s-dracula .CodeMirror-linenumber{color:#6d8a88}.cm-s-dracula .CodeMirror-selected{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-line::selection,.cm-s-dracula .CodeMirror-line>span::selection,.cm-s-dracula .CodeMirror-line>span>span::selection{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-line::-moz-selection,.cm-s-dracula .CodeMirror-line>span::-moz-selection,.cm-s-dracula .CodeMirror-line>span>span::-moz-selection{background:rgba(255,255,255,.1)}.cm-s-dracula span.cm-comment{color:#6272a4}.cm-s-dracula span.cm-string,.cm-s-dracula span.cm-string-2{color:#f1fa8c}.cm-s-dracula span.cm-number{color:#bd93f9}.cm-s-dracula span.cm-variable{color:#50fa7b}.cm-s-dracula span.cm-variable-2{color:#fff}.cm-s-dracula span.cm-def{color:#50fa7b}.cm-s-dracula span.cm-operator{color:#ff79c6}.cm-s-dracula span.cm-keyword{color:#ff79c6}.cm-s-dracula span.cm-atom{color:#bd93f9}.cm-s-dracula span.cm-meta{color:#f8f8f2}.cm-s-dracula span.cm-tag{color:#ff79c6}.cm-s-dracula span.cm-attribute{color:#50fa7b}.cm-s-dracula span.cm-qualifier{color:#50fa7b}.cm-s-dracula span.cm-property{color:#66d9ef}.cm-s-dracula span.cm-builtin{color:#50fa7b}.cm-s-dracula span.cm-type,.cm-s-dracula span.cm-variable-3{color:#ffb86c}.cm-s-dracula .CodeMirror-activeline-background{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}#modula_troubleshooting_option .modula-select label{margin-right:10px}#modula_troubleshooting_option .modula-select label:last-child{margin-right:0}#modula_troubleshooting_option td>.wrap.modula{margin:0 auto}#modula_troubleshooting_option td>.wrap.modula .modula-toggle{margin-top:0}#modula-albums-upsell h2{margin:0!important}.modula-settings-container input[type=number]{max-width:80px}.modula-after-input{margin-left:5px}.modula-scaling-effect-preview{position:relative;max-width:900px;width:100%;margin:0 auto;margin-top:20px}.modula-scaling-effect-preview .modula-item{transition:.6s all;z-index:9999;float:left;margin:10px}.modula-scaling-effect-preview a#test-scaling-preview{margin-top:25px;margin-left:10px}#modula-shortcode .modula-copy-shortcode{margin:10px auto}#modula-shortcode .inside{padding:0 12px 2.5px!important}.shortcode-description{margin:10px 0 0 0;border-bottom:1px solid #ddd;color:#696969;padding-bottom:10px}.modula-imagesize-info span{font-weight:700}.modula-settings-container .selectize-dropdown{cursor:pointer}
|
1 |
+
#modula-settings .inside{padding:0;margin:0}.modula-settings-container{display:flex}.modula-settings-container .modula-tabs{background-color:#f8f8f8}.modula-settings-container .modula-tabs .modula-tab{margin:0 10px 0 0;padding:15px 0;color:#9c9c9c;cursor:pointer;position:relative;width:185px;position:relative}.modula-settings-container .modula-tabs .modula-tab sup{margin-left:5px;padding:2px 5px;border-radius:5px;color:#fff;font-size:8px;background:#9c9c9c;display:inline-block;line-height:1;position:relative;top:-2px}.modula-settings-container .modula-tabs .modula-tab.active-tab sup,.modula-settings-container .modula-tabs .modula-tab:hover sup{background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.modula-responsive.active-tab sup,.modula-settings-container .modula-tabs .modula-tab.modula-responsive:hover sup{background:#dc3232}.modula-settings-container .modula-tabs .modula-tab>i{margin-right:10px;margin-left:15px}.modula-settings-container .modula-tabs .modula-tab:after{position:absolute;content:"";width:1px;height:100%;background-color:transparent;top:0;right:-1px}.modula-settings-container .modula-tabs .modula-tab.active-tab:first-child{border-top:none}.modula-settings-container .modula-tabs .modula-tab:hover{color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab{margin:0;padding:15px 10px 15px 0;background-color:#fff;border-top:1px solid #ddd;color:#333}.modula-settings-container .modula-tabs .modula-tab.active-tab:not(:last-child){border-bottom:1px solid #ddd}.modula-settings-container .modula-tabs .modula-tab.active-tab:before{content:"";position:absolute;left:-2px;top:-1px;width:3px;height:calc(100% + 2px);background-color:#57a7c9}.modula-settings-container .modula-tabs .modula-tab.active-tab:after{background-color:#fff}tr label.th-label{color:#23282d;font-weight:600;margin-bottom:10px}.postbox .modula-settings-container table.form-table{margin:0}.modula-settings-container .modula-tabs-content{padding:0;border-left:1px solid #ccd0d4;flex-grow:1}.modula-tabs-content>div:not(.active-tab){display:none}.modula-settings-container .modula-tabs-content .tab-content-header{width:100%;padding:15px 20px 15px 20px;border-bottom:1px solid #ccd0d4;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions{display:flex;align-items:center}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions>span{margin:0 10px;font-style:italic}.modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-actions a.button>span{height:auto;line-height:26px;margin-right:10px}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-content-header-title>h2{font-weight:700;padding:0;display:inline-block;line-height:20px}#poststuff .modula-settings-container .modula-tabs-content .tab-content-header .tab-header-description p{margin:0}.modula-settings-container .form-table td p.description{font-size:13px}.modula-settings-container .modula-tabs-content .form-table tr{border-top:1px solid #eee;border-bottom:1px solid #eee}.modula-settings-container .modula-tabs-content .form-table tr:first-of-type{border-top:none}.modula-settings-container .modula-tabs-content .form-table tr:last-of-type{border-bottom:none}.modula-settings-container .modula-tabs-content .form-table th{padding:20px;width:230px}.modula-settings-container .modula-tabs-content .form-table th.child_setting{padding-left:40px;display:inline-block;width:230px}.modula-settings-container .slider-container{position:relative;height:2px;padding:10px 0;width:240px;box-sizing:border-box;display:flex;display:flex;justify-content:space-between;align-items:center}.modula-settings-container .slider-container input[type=text]{border:none;text-align:center;padding:2px;margin:0 30px 0 0;font-size:12px;color:#333;border-radius:10px;background-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.16);box-shadow:inset 0 1px 1px rgba(0,0,0,.16);width:40px;height:22px;min-width:auto;cursor:default}.modula-settings-container .slider-container .ui-slider{position:relative;text-align:left;height:2px;border-radius:3px;border:none;display:block;width:100%;background:#d6d6d6;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.modula-settings-container .slider-container .ui-slider .ui-slider-handle{position:absolute;z-index:2;top:-10px;cursor:default;-ms-touch-action:none;touch-action:none;width:18px;height:18px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;background-color:#fff;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border:solid 1px #d7d7d7;transform:translateX(-50%)}.modula-settings-container .slider-container .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0;background:#57a7c9;top:0;bottom:0}.modula-settings-container input:not([type=select-one]):not([type=button]):not([readonly=readonly]),.modula-settings-container select{min-width:240px;max-width:240px}.selectize-control.single .selectize-input,.selectize-dropdown.single{max-width:240px}.modula-effects-preview{margin-top:20px}.modula-effects-preview .modula-item{width:400px;height:300px;overflow:hidden;position:relative}.modula-effects-preview .modula-item img{position:absolute;min-height:100%;min-width:100%}.modula-effects-preview .modula-item .figc{display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;text-align:center;position:absolute;left:0;width:100%;height:100%;padding:0}.modula-effects-preview .modula-item .figc .jtg-title{font-size:21px!important;color:#fff}.modula-effects-preview .modula-item .figc p{color:#fff;font-size:15px;font-style:normal}.modula .modula-items .modula-item .jtg-title{margin:0}.modula .modula-items .modula-item p{margin:0;padding:0}.modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}.modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;width:20px;padding:6px 4px;border:0;opacity:0;transition:opacity .3s}.modula .modula-item .jtg-social svg{width:20px;height:16px}.modula .modula-item:hover .jtg-social a{opacity:1}.modula .modula-items .jtg-social{opacity:0;transition:opacity .1s;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}.modula .modula-items .jtg-social{opacity:1}.modula .modula-items .jtg-social a:last-of-type{margin-right:0}.modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}.modula .modula-item.effect-pufrobo .figc{text-align:right}.modula .modula-item.effect-pufrobo .jtg-title,.modula .modula-item.effect-pufrobo p{position:absolute;right:30px;left:30px;padding:10px 0}.modula .modula-item:hover img{opacity:.8}.modula .modula-item{background-color:#000}.modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}.modula .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}.modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}.modula .modula-item.effect-pufrobo .jtg-title::after,.modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}.modula .modula-item.effect-pufrobo:hover .jtg-title::after,.modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.modula-upsell{background:#f1f1f1;border:0;padding:15px;margin-top:30px}.modula-settings-container .modula-upsell{margin:30px}.form-table-wrapper .modula-upsell{border:1px solid #ddd;text-align:center}#poststuff .modula-upsell .jtg-title{margin:0 0 20px 0;font-size:16px;font-weight:700;background:#fff;left:-15px;top:-15px;padding:8px 12px;position:relative;width:calc(100% + 6px);border-bottom:1px solid #ddd}.modula-upsell p{margin:0}.modula-upsell p.modula-upsell-description{font-size:13px;line-height:1.5;color:#333;opacity:.8;margin-top:0;margin-bottom:10px;padding:0 10px}.modula-upsell .button{height:31px;line-height:31px;font-weight:700}.modula-upsell .button:first-child{margin-right:10px}.modula-upsell .action-link,.modula-upsell .action-link:hover{background:#51ad31;border-color:#51ad31;color:#fff;font-weight:700}#modula-uploader-container{position:relative;padding-left:10px;padding-right:10px}#modula-uploader-container.modula-resizer-enabled{margin-bottom:20px}.modula-upload-actions{padding:15px 20px;background-color:#f8fcfd;border-bottom:1px solid #ecf6f9;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box}.modula-upload-actions .buttons{flex-shrink:0;width:275px;display:flex}.modula-sources-dropdown{position:relative;border-top:1px solid rgba(255,255,255,0);border-right:1px solid rgba(255,255,255,0);border-left:1px solid rgba(255,255,255,0)}.modula-sources-dropdown:hover{border-color:#ddd;background:#f5f5f5}.modula-sources-dropdown>span{width:28px;height:32px;text-align:center;line-height:28px;cursor:pointer;display:inline-block;font-size:25px;font-weight:700}.modula-sources-dropdown .modula-sources-dropdown-content{position:absolute;right:-1px;bottom:0;transform:translateY(100%);display:none;padding:15px;background-color:#f5f5f5;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;border:1px solid #ddd}.modula-sources-dropdown:hover .modula-sources-dropdown-content{display:block}.modula-sources-dropdown:hover .modula-sources-dropdown-content:before{content:"";height:1px;width:28px;background-color:#f5f5f5;position:absolute;top:-1px;right:0}.segrip.ui-resizable-se{width:30px;height:30px;background:url(../images/resize-se.svg) no-repeat;background-size:contain;display:none;z-index:100;opacity:1}.modula-resizer-enabled .segrip.ui-resizable-se{display:block}.modula-upload-actions #modula-uploader-browser{border-bottom-right-radius:0;border-top-right-radius:0}.modula-upload-actions #modula-wp-gallery{border-bottom-left-radius:0;border-top-left-radius:0}.wp-core-ui .modula-upload-actions>a{margin:0 5px}#modula-dropzone-container{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,86,132,.9);z-index:250000;display:none;text-align:center;opacity:0;transition:opacity 250ms}#modula-dropzone-container .modula-uploader-window-content{position:absolute;top:10px;left:10px;right:10px;bottom:10px;border:1px dashed #fff}#poststuff #modula-dropzone-container .modula-uploader-window-content h1{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:20px;line-height:28px;font-weight:400;color:#fff;padding:0}.modula-uploader-inline-content{position:relative;min-height:300px;width:100%}.modula-resizer-enabled .modula-uploader-inline-content{min-height:initial}.modula-uploader-inline-content .jtg-title{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#poststuff .modula-upload-message{font-size:43px;line-height:1;font-weight:400;margin:0;display:none;color:#ebebeb}#poststuff .modula-upload-message .dashicons,#poststuff .modula-upload-message .dashicons-before:before{font-size:43px;width:43px;height:43px}.modula-uploader-inline p{font-size:12px;margin:.5em 0}#poststuff .modula-uploader-inline .modula-upload-instructions{font-size:14px;color:#444;font-weight:400;padding:0}.modula-uploader-footer .max-upload-size{float:left}.modula-uploader-footer .modula-upload-numbers{float:right;opacity:0}.modula-uploader-footer:after{display:block;content:"";clear:both}.upload-progress .modula-upload-numbers{margin:0;line-height:1.4em}.modula-progress-bar{width:100%;max-width:400px;position:relative;height:2px;margin:8px 0 0;border-radius:10px;background:#e5e5e5}.upload-info-container{position:relative;overflow:hidden;flex-grow:1}.upload-info-container .upload-info{padding:5px 0}.upload-info-container .upload-progress{position:absolute;background-color:#f8fcfd;height:100%;display:flex;top:0;left:0;width:100%;flex-direction:column;transition:transform .5s;transform:translateY(100%)}.modula-upload-actions.show-progress .upload-info-container .upload-progress{transform:translateY(0)}.modula-progress-bar .modula-progress-bar-inner{height:2px;min-width:20px;width:0;background:#0085ba;-webkit-transition:width .3s;-moz-transition:width .3s;-ms-transition:width .3s;-o-transition:width .3s;transition:width .3s;border-radius:5px}.modula-uploader-footer.show-progress .modula-progress-bar,.modula-uploader-footer.show-progress .modula-upload-numbers{opacity:1}.modula-uploader-inline-content .modula-single-image,.modula-uploader-inline-content .modula-single-image-placeholder{cursor:move;display:inline-block;padding:0 10px 20px 0;box-sizing:border-box;width:16.66%}.modula-uploader-inline-content .modula-single-image-placeholder:after{width:100%;height:100%;display:inline-block;content:"";position:relative;border:3px dashed #444;padding-top:calc(100% - 6px);box-sizing:border-box}.modula-uploader-inline-content .modula-single-image .modula-single-image-content{position:relative;border:1px solid #d6d6d6;box-sizing:border-box;background-position:center;background-size:cover}.modula-uploader-inline-content .modula-single-image .modula-single-image-content img{display:block;width:100%}#poststuff .modula-uploader-inline-content>.modula-upload-message:only-child{display:block}.modula-uploader-inline-content .modula-single-image .actions{position:absolute;z-index:99;font-size:0;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.4);padding:5px;box-sizing:border-box;display:none}.modula-uploader-inline-content .modula-single-image:hover .actions{display:block}.modula-uploader-inline-content .modula-single-image .actions a{width:20px;height:20px;border-radius:100%;border:1px solid #000;background-color:rgba(255,255,255,.8);color:#000;display:block;text-decoration:none;text-align:center;line-height:20px;margin-bottom:5px}.modula-uploader-inline-content .modula-single-image .actions a:hover{background-color:#000;color:#fff}.modula-uploader-inline-content .modula-single-image .actions a span{font-size:16px;width:20px;height:20px;line-height:20px}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image{color:#a00a00}.modula-uploader-inline-content .modula-single-image .actions a.modula-delete-image:hover{background-color:#a00a00;color:#fff}.modula-uploader-inline-content:after{content:"";display:block;clear:both}.media-modal .modula-edit-popup.edit-attachment-frame .edit-media-header button.right{border-right:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting input[type=text],.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings .setting div.description{clear:both;float:left;margin:5px 0 0 0;text-align:left;font-size:13px;font-style:italic;color:#666}.media-modal .modula-edit-popup .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}.media-modal .attachment-info .actions a{display:inline-block}.inline-input{display:inline}.ui-draggable.ui-resizable>.segrip{width:10px;height:10px;background:red;position:absolute;bottom:0;right:0}.ui-draggable.ui-resizable .modula-single-image-content img{display:none}.ui-draggable.ui-resizable .modula-single-image-content{width:100%;height:100%}.ui-draggable.ui-resizable.modula-single-image{padding:0}.packery-drop-placeholder{outline:3px dashed #444;outline-offset:-6px;-webkit-transition:-webkit-transform .2s;transition:transform .2s}.ui-resizable-helper{border:3px dashed #444;box-sizing:border-box}#poststuff #modula-preview-gallery .jtg-title.hndle,#poststuff #modula-settings .jtg-title.hndle{padding-left:20px}#poststuff #modula-preview-gallery .inside{margin-top:0;padding:0}.modula-edit-popup .attachment-details .setting span.description>span{display:inline-block;float:none;width:auto;min-width:unset;line-height:16px;min-height:16px;margin-top:8px;padding:0;vertical-align:middle;margin-right:0}.modula-edit-popup .attachment-details .setting span.description{text-align:left;vertical-align:middle}.modula-media-modal .attachments-browser .media-toolbar .media-toolbar-secondary{width:100%}.modula-error-container{display:block}.modula-error-container.hide{display:none}.modula-error-container .modula-error{padding:12px;margin-bottom:12px;background:#fff;border-left:4px solid #dc3232;box-shadow:0 0 4px 0 rgba(0,0,0,.1);font-weight:600;margin-top:5px;position:relative;background-color:#dc3232;color:#fff}.modula-error-container .modula-error a{color:#fff}.modula-error-container .modula-error .upload-dismiss-errors{position:absolute;top:50%;right:-5px;padding:10px;transition:none;display:block;text-decoration:none;margin-top:-18px}.modula-error-container .modula-error .upload-dismiss-errors:before{content:"\f153";display:block;font:400 16px/1 dashicons;color:#fff}a.modula-tab-link{text-decoration:none}.modula-tab-link span.dashicons{width:16px;height:16px;line-height:16px;margin-right:3px;vertical-align:text-bottom;font-size:16px;text-decoration:none}#modula-grid{height:100%;position:absolute;overflow:hidden;top:0;left:0;width:100%}#modula-grid .modula-grid-item{background-color:#fafafa;float:left}#modula-grid .modula-grid-item:nth-child(12n){margin-right:0!important}#modula-grid:after{content:"";display:block;clear:both}.modula-tooltip{position:relative;display:inline-block;float:left;margin-right:10px}.modula-tooltip>span{cursor:pointer;color:#0073aa;text-decoration:underline;margin-left:5px}.modula-tooltip .modula-tooltip-content{display:none;position:absolute;top:50%;right:-10px;transform:translate(100%,-50%);width:300px;background:#000;color:#fff;padding:10px;box-sizing:border-box;z-index:99}.modula-tooltip .modula-tooltip-content:before{content:'';width:0;height:0;border-style:solid;border-width:8px 8px 8px 0;border-color:transparent #000 transparent transparent;display:block;position:absolute;top:50%;left:-8px;transform:translateY(-50%)}.modula-tooltip:hover .modula-tooltip-content{display:block}.modula-helper-guidelines-container{padding:15px 20px;background-color:#f8fcfd;display:flex;align-items:center;border-top:1px solid #ecf6f9;z-index:999;position:relative}.modula-helper-guidelines-container .onoffswitch{margin-top:0}.modula-helper-guidelines-wrapper .modula-helper-guidelines-label{margin-left:5px}.modula-helper-guidelines-container.modula-guidelines-display{display:none}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image .modula-single-image-content{background:#eee!important;position:relative;overflow:hidden}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content:before{content:"";display:block;padding-top:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content img{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.landscape img{max-height:100%}.modula-creative-gallery.modula-uploader-inline-content .modula-single-image-content.portrait img{max-width:100%}.modula-toggle{position:relative;position:relative;user-select:none;display:inline-block}.modula-toggle__items{box-sizing:border-box;display:inline-block;position:relative}.modula-toggle__items>*{box-sizing:inherit}.modula-toggle__input[type=checkbox]{border-radius:2px;border:2px solid #6c7781;margin-right:12px;transition:none;height:100%;left:0;top:0;margin:0;padding:0;opacity:0;position:absolute;width:100%;z-index:1}.modula-toggle__track{background-color:#fff;border:2px solid #6c7781;border-radius:9px;display:inline-block;height:18px;width:36px;vertical-align:top;transition:background .2s ease}.modula-toggle__thumb{background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;display:block;height:10px;width:10px;position:absolute;left:4px;top:4px;transition:transform .2s ease}.modula-toggle__off{position:absolute;right:6px;top:6px;color:#6c7781;fill:currentColor}.modula-toggle__on{position:absolute;top:6px;left:8px;border:1px solid #fff;outline:1px solid transparent;outline-offset:-1px;display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__track{background-color:#11a0d2;border:9px solid transparent}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__off{display:none}.modula-toggle__input[type=checkbox]:checked+.modula-toggle__items .modula-toggle__on{display:inline-block}p.description.alert{color:red}tr.troubleshoot-subfield.hide{display:none}.modula-copy-shortcode{display:flex;align-items:center;flex-wrap:wrap}.modula-copy-shortcode input{margin:0;border-top-right-radius:0;border-bottom-right-radius:0;flex-grow:1}.modula-copy-shortcode span{width:100%}.wp-core-ui .modula-copy-shortcode a.button-primary{height:30px;border-top-left-radius:0;border-bottom-left-radius:0}@keyframes carousel{0%{transform:translateX(0);opacity:1!important}50%{transform:translateX(0);opacity:1!important}51%{transform:translateX(-100%);opacity:1!important}99%{transform:translateX(-100%);opacity:1!important}100%{transform:translateX(-200%);opacity:1!important}}.modula-upsells-carousel-wrapper{position:relative;display:flex;overflow:hidden}.modula-upsells-carousel{flex-shrink:0;position:relative;display:block;width:100%}.modula-upsells-carousel .modula-upsell-item{position:relative;width:100%;flex-shrink:0;margin-top:0;left:-15px}.modula-upsells-carousel .modula-upsell-item{text-align:center}.modula-upsells-carousel .modula-upsell-item ul.modula-upsells-list{padding-left:40px}.modula-upsells-carousel .modula-upsell-item ul li{position:relative;list-style-type:none!important;text-align:left}#modula-albums-upsell .modula-upsells-carousel .modula-upsell-item ul li{display:inline-block;margin:0 15px 15px 35px}.modula-upsells-carousel .modula-upsell-item ul li:before{font-family:Dashicons;content:"\f147";position:absolute;left:-30px;font-size:14px;color:green;background-color:#fff;padding:0 3px;border-radius:50%;border:1px solid #ddd;top:-1px}#modula-albums-upsell>button.handlediv,#modula-albums-upsell>h2.hndle.ui-sortable-handle,#modula-sorting-upsell>button.handlediv,#modula-sorting-upsell>h2.hndle.ui-sortable-handle{display:none}#modula-albums-upsell>.inside,#modula-sorting-upsell>.inside{padding:0;margin:0 auto}.cm-s-dracula .CodeMirror-gutters,.cm-s-dracula.CodeMirror{background-color:#282a36!important;color:#f8f8f2!important;border:none}.cm-s-dracula .CodeMirror-gutters{color:#282a36}.cm-s-dracula .CodeMirror-cursor{border-left:solid thin #f8f8f0}.cm-s-dracula .CodeMirror-linenumber{color:#6d8a88}.cm-s-dracula .CodeMirror-selected{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-line::selection,.cm-s-dracula .CodeMirror-line>span::selection,.cm-s-dracula .CodeMirror-line>span>span::selection{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-line::-moz-selection,.cm-s-dracula .CodeMirror-line>span::-moz-selection,.cm-s-dracula .CodeMirror-line>span>span::-moz-selection{background:rgba(255,255,255,.1)}.cm-s-dracula span.cm-comment{color:#6272a4}.cm-s-dracula span.cm-string,.cm-s-dracula span.cm-string-2{color:#f1fa8c}.cm-s-dracula span.cm-number{color:#bd93f9}.cm-s-dracula span.cm-variable{color:#50fa7b}.cm-s-dracula span.cm-variable-2{color:#fff}.cm-s-dracula span.cm-def{color:#50fa7b}.cm-s-dracula span.cm-operator{color:#ff79c6}.cm-s-dracula span.cm-keyword{color:#ff79c6}.cm-s-dracula span.cm-atom{color:#bd93f9}.cm-s-dracula span.cm-meta{color:#f8f8f2}.cm-s-dracula span.cm-tag{color:#ff79c6}.cm-s-dracula span.cm-attribute{color:#50fa7b}.cm-s-dracula span.cm-qualifier{color:#50fa7b}.cm-s-dracula span.cm-property{color:#66d9ef}.cm-s-dracula span.cm-builtin{color:#50fa7b}.cm-s-dracula span.cm-type,.cm-s-dracula span.cm-variable-3{color:#ffb86c}.cm-s-dracula .CodeMirror-activeline-background{background:rgba(255,255,255,.1)}.cm-s-dracula .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}#modula_troubleshooting_option .modula-select label{margin-right:10px}#modula_troubleshooting_option .modula-select label:last-child{margin-right:0}#modula_troubleshooting_option td>.wrap.modula{margin:0 auto}#modula_troubleshooting_option td>.wrap.modula .modula-toggle{margin-top:0}#modula-albums-upsell h2{margin:0!important}.modula-settings-container input[type=number]{max-width:80px}.modula-after-input{margin-left:5px}.modula-scaling-effect-preview{position:relative;max-width:900px;width:100%;margin:0 auto;margin-top:20px}.modula-scaling-effect-preview .modula-item{transition:.6s all;z-index:9999;float:left;margin:10px}.modula-scaling-effect-preview a#test-scaling-preview{margin-top:25px;margin-left:10px}#modula-shortcode .modula-copy-shortcode{margin:10px auto}#modula-shortcode .inside{padding:0 12px 2.5px!important}.shortcode-description{margin:10px 0 0 0;border-bottom:1px solid #ddd;color:#696969;padding-bottom:10px}.modula-imagesize-info span{font-weight:700}.modula-settings-container .selectize-dropdown{cursor:pointer}
|
assets/css/admin/modula-header.css
CHANGED
@@ -19,12 +19,16 @@ body.modula-gallery_page_modula-import-export #wpcontent .wrap {
|
|
19 |
|
20 |
|
21 |
body.modula-gallery_page_modula-addons .modula-addons-container,
|
|
|
22 |
body.modula-gallery_page_modula-addons .nav-tab-wrapper,
|
23 |
body.modula-gallery_page_modula-lite-vs-pro .modula-addons-container,
|
|
|
24 |
body.modula-gallery_page_modula-lite-vs-pro .nav-tab-wrapper,
|
25 |
body.modula-gallery_page_modula .modula-addons-container,
|
|
|
26 |
body.modula-gallery_page_modula .nav-tab-wrapper,
|
27 |
body.post-type-modula-gallery .modula-addons-container,
|
|
|
28 |
body.post-type-modula-gallery .nav-tab-wrapper {
|
29 |
padding : 20px;
|
30 |
}
|
19 |
|
20 |
|
21 |
body.modula-gallery_page_modula-addons .modula-addons-container,
|
22 |
+
body.modula-gallery_page_modula-addons .modula-free-addons-container,
|
23 |
body.modula-gallery_page_modula-addons .nav-tab-wrapper,
|
24 |
body.modula-gallery_page_modula-lite-vs-pro .modula-addons-container,
|
25 |
+
body.modula-gallery_page_modula-lite-vs-pro .modula-free-addons-container,
|
26 |
body.modula-gallery_page_modula-lite-vs-pro .nav-tab-wrapper,
|
27 |
body.modula-gallery_page_modula .modula-addons-container,
|
28 |
+
body.modula-gallery_page_modula .modula-free-addons-container,
|
29 |
body.modula-gallery_page_modula .nav-tab-wrapper,
|
30 |
body.post-type-modula-gallery .modula-addons-container,
|
31 |
+
body.post-type-modula-gallery .modula-free-addons-container,
|
32 |
body.post-type-modula-gallery .nav-tab-wrapper {
|
33 |
padding : 20px;
|
34 |
}
|
assets/css/admin/uninstall.css
CHANGED
@@ -110,4 +110,9 @@
|
|
110 |
|
111 |
.modula-red-text {
|
112 |
color:red;
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
110 |
|
111 |
.modula-red-text {
|
112 |
color:red;
|
113 |
+
}
|
114 |
+
|
115 |
+
a.modula-lite-vs-pro {
|
116 |
+
color:orange;
|
117 |
+
font-weight:bold;
|
118 |
}
|
assets/css/admin/welcome.css
CHANGED
@@ -20,6 +20,11 @@ body.modula-gallery_page_modula-lite-vs-pro #wpcontent .wrap {
|
|
20 |
max-width : 85%;
|
21 |
}
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
.lite-vs-pro-section .wp-badge{
|
24 |
display:inline-block;
|
25 |
vertical-align:middle;
|
@@ -186,9 +191,9 @@ body.modula-gallery_page_modula-lite-vs-pro #wpcontent .wrap {
|
|
186 |
line-height: 26px;
|
187 |
}
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
|
193 |
.featured-section.features .row {
|
194 |
display: inline-block;
|
20 |
max-width : 85%;
|
21 |
}
|
22 |
|
23 |
+
.modula.lite-vs-pro-section > .wpchill-plans-table.wpchill-highlight > .wpchill-pricing-package {
|
24 |
+
background : #fefff0;
|
25 |
+
box-shadow: 0 0 15px rgb(208 219 219);
|
26 |
+
}
|
27 |
+
|
28 |
.lite-vs-pro-section .wp-badge{
|
29 |
display:inline-block;
|
30 |
vertical-align:middle;
|
191 |
line-height: 26px;
|
192 |
}
|
193 |
|
194 |
+
/**
|
195 |
+
Featured section
|
196 |
+
*/
|
197 |
|
198 |
.featured-section.features .row {
|
199 |
display: inline-block;
|
assets/css/front.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
|
2 |
html body .modula .modula-items .modula-item{position:absolute;overflow:hidden;box-sizing:border-box}html body .modula .modula-items .modula-item .modula-item-content{transition:transform .3s ease-out,opacity .2s linear,top .3s,left .6s;opacity:0}html body .modula .modula-items{position:relative;z-index:1;min-height:10px}html body .modula .modula-items .modula-item .modula-item-content>a{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background:0 0}html body .modula.modula-creative-gallery .modula-items .modula-item .modula-item-content,html body .modula.modula-custom-grid .modula-items .modula-item .modula-item-content{height:100%}html body .modula .modula-items .modula-item .jtg-social{z-index:10;font-size:0}html body .modula.modula-columns:not(.modula-loaded-scale).modula-gallery-initialized .modula-items .modula-item .modula-item-content,html body .modula:not(.modula-loaded-scale).modula-gallery-initialized .modula-items .modula-item.tg-loaded .modula-item-content,html body .modula:not(.modula-loaded-scale).modula-gallery-initialized .modula-items.justified-gallery .modula-item .modula-item-content{transform:scale(1) translate(0,0) rotate(0)!important;opacity:1}html body .modula .modula-items .modula-item img.pic{font-size:12px;position:absolute;max-width:999em;transition:width .3s,height .3s,transform .3s linear,opacity .2s linear}html body .modula.modula-columns .modula-items .modula-item img.pic{position:relative;max-width:100%;margin:0 auto}html body .modula .modula-items .modula-item.tg-loaded img.pic,html body .modula.modula-columns .modula-items .modula-item img.pic{display:block;opacity:1}html body .modula .modula-items .modula-item img.pic.lazyload,html body .modula .modula-items .modula-item img.pic.lazyloaded{display:block}html body .modula .modula-items .modula-item .caption .icon{font-size:14px;position:absolute;left:50%;top:50%;margin:-12px 0 0 -8px}html body .modula .modula-items .modula-item .figc{color:#fff;text-align:center;position:absolute;left:0;width:100%;padding:0;max-width:100%}html body .modula .modula-items .hidden .figc{display:none}html body .modula .modula-items .hidden:hover .figc{display:block}html body .modula .modula-items .visible .figc{display:block}html body .modula .modula-items .always-visible .figc{display:block}html body .modula .modula-items .visible:hover .figc{display:none}html body .modula .modula-items .caption span.text{display:block;padding:10px}html body .modula .modula-items .caption span.title{font-size:14px;font-weight:700}html body .modula .jtg-social a{box-shadow:none}html body .modula .jtg-social svg{width:20px;height:16px}html body .modula .modula-items .modula-item .jtg-title{margin:0}html body .modula .modula-items .modula-item p{margin:0;padding:0}html body .modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}html body .modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;padding:0;border:0;opacity:0;transition:opacity .3s}html body .modula .modula-item:hover .jtg-social a{opacity:1}html body .modula .modula-items .jtg-social{opacity:0;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}html body .et_pb_module_inner .modula .modula-items .jtg-social{transition:all .3s!important}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{margin-right:10px}@media all and (max-width:480px){html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social{right:0;width:100%;text-align:center}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{padding:5px}}html body .modula .modula-items .jtg-social{opacity:1}html body .modula .modula-items .jtg-social a:last-of-type{margin-right:0}html body .modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}html body .et_pb_module_inner .modula .modula-item.effect-pufrobo p.description{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo .figc{text-align:right}html body .modula .modula-item.effect-pufrobo .jtg-title,html body .modula .modula-item.effect-pufrobo p{position:absolute;right:5%;left:5%;padding:10px 0}html body .modula.modula-gallery-initialized .modula-item:hover img,html body .modula.modula-gallery-initialized .modula-items .modula-item.tg-loaded:hover img.pic{opacity:.8}html body .modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}html body .et_pb_module_inner .modula .modula-items .modula-item.effect-pufrobo .jtg-title{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after,html body .modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}html body .modula .modula-item.effect-pufrobo:hover .jtg-title::after,html body .modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-items .modula-item.effect-pufrobo .figc.no-title.no-description .jtg-title:after{display:none}html body .modula .modula-items .modula-item.effect-appear .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-comodo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-crafty .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-curtain .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-fluid-up .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-hide .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-lens .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-pufrobo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-quiet .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-reflex .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-seemo .figc .jtg-title:before{display:none}html body .modula .modula-items .modula-item>a{cursor:zoom-in}html body .modula-fancybox-container.modula-fancybox-is-open{z-index:99999999}html body .modula-fancybox-share__button--li{background:#0e76a8}html body .modula-fancybox-share__button--wa{background:#25d366}html body .modula.modula-columns .modula-item{display:flex;justify-content:center}html body .modula.modula-columns .modula-item .modula-item-content{position:relative}html body .modula.modula-columns .modula-items.grid-gallery .modula-item .modula-item-content{height:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content{width:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content .pic{position:absolute;top:50%;left:50%;margin:0;padding:0;border:none}html body .modula.modula-columns .modula-item.jg-filtered{display:none}html body .modula-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}html body .modula-row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}@media (min-width:576px){html body .modula-row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:768px){html body .modula-row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:992px){html body .modula-row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:1200px){html body .modula-row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}html body .modula .modula-items.grid-gallery .modula-item .figc{height:100%;top:0}html body div.modula-powered{text-align:right;font-size:14px;margin-right:5px;clear:both}html body div.modula-powered svg.modula-logo{width:14px;position:relative;top:3px}html body div.modula-powered svg.modula-logo path{color:#58ab7e!important}html body div.modula-powered svg.modula-logo{display:inline-block}.modula-gallery:not(.modula-gallery-initialized)>.modula-items{visibility:hidden}.modula-gallery.modula-gallery-initialized .modula-items .modula-item{visibility:visible}
|
1 |
+
html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}@media all and (min-width:577px){html body .modula-fancybox-container .modula-fancybox-thumbs{width:212px}}
|
2 |
html body .modula .modula-items .modula-item{position:absolute;overflow:hidden;box-sizing:border-box}html body .modula .modula-items .modula-item .modula-item-content{transition:transform .3s ease-out,opacity .2s linear,top .3s,left .6s;opacity:0}html body .modula .modula-items{position:relative;z-index:1;min-height:10px}html body .modula .modula-items .modula-item .modula-item-content>a{display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background:0 0}html body .modula.modula-creative-gallery .modula-items .modula-item .modula-item-content,html body .modula.modula-custom-grid .modula-items .modula-item .modula-item-content{height:100%}html body .modula .modula-items .modula-item .jtg-social{z-index:10;font-size:0}html body .modula.modula-columns:not(.modula-loaded-scale).modula-gallery-initialized .modula-items .modula-item .modula-item-content,html body .modula:not(.modula-loaded-scale).modula-gallery-initialized .modula-items .modula-item.tg-loaded .modula-item-content,html body .modula:not(.modula-loaded-scale).modula-gallery-initialized .modula-items.justified-gallery .modula-item .modula-item-content{transform:scale(1) translate(0,0) rotate(0)!important;opacity:1}html body .modula .modula-items .modula-item img.pic{font-size:12px;position:absolute;max-width:999em;transition:width .3s,height .3s,transform .3s linear,opacity .2s linear}html body .modula.modula-columns .modula-items .modula-item img.pic{position:relative;max-width:100%;margin:0 auto}html body .modula .modula-items .modula-item.tg-loaded img.pic,html body .modula.modula-columns .modula-items .modula-item img.pic{display:block;opacity:1}html body .modula .modula-items .modula-item img.pic.lazyload,html body .modula .modula-items .modula-item img.pic.lazyloaded{display:block}html body .modula .modula-items .modula-item .caption .icon{font-size:14px;position:absolute;left:50%;top:50%;margin:-12px 0 0 -8px}html body .modula .modula-items .modula-item .figc{color:#fff;text-align:center;position:absolute;left:0;width:100%;padding:0;max-width:100%}html body .modula .modula-items .hidden .figc{display:none}html body .modula .modula-items .hidden:hover .figc{display:block}html body .modula .modula-items .visible .figc{display:block}html body .modula .modula-items .always-visible .figc{display:block}html body .modula .modula-items .visible:hover .figc{display:none}html body .modula .modula-items .caption span.text{display:block;padding:10px}html body .modula .modula-items .caption span.title{font-size:14px;font-weight:700}html body .modula .jtg-social a{box-shadow:none}html body .modula .jtg-social svg{width:20px;height:16px}html body .modula .modula-items .modula-item .jtg-title{margin:0}html body .modula .modula-items .modula-item p{margin:0;padding:0}html body .modula .figc{color:#000;text-align:center;position:absolute;left:0;width:100%;padding:2em}html body .modula .modula-item .jtg-social a{text-decoration:none;color:#fff;display:inline-block;margin:0 10px 0 0;padding:0;border:0;opacity:0;transition:opacity .3s}html body .modula .modula-item:hover .jtg-social a{opacity:1}html body .modula .modula-items .jtg-social{opacity:0;right:30px;position:absolute;bottom:20px;text-align:right;transition:all .3s}html body .et_pb_module_inner .modula .modula-items .jtg-social{transition:all .3s!important}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{margin-right:10px}@media all and (max-width:480px){html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social{right:0;width:100%;text-align:center}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-social a{padding:5px}}html body .modula .modula-items .jtg-social{opacity:1}html body .modula .modula-items .jtg-social a:last-of-type{margin-right:0}html body .modula .modula-item.effect-pufrobo p.description{margin-bottom:2em}html body .et_pb_module_inner .modula .modula-item.effect-pufrobo p.description{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo .figc{text-align:right}html body .modula .modula-item.effect-pufrobo .jtg-title,html body .modula .modula-item.effect-pufrobo p{position:absolute;right:5%;left:5%;padding:10px 0}html body .modula.modula-gallery-initialized .modula-item:hover img,html body .modula.modula-gallery-initialized .modula-items .modula-item.tg-loaded:hover img.pic{opacity:.8}html body .modula .modula-item.effect-pufrobo p{bottom:20%;line-height:1.5;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);letter-spacing:1px}html body .modula .modula-items .modula-item.effect-pufrobo .jtg-title{top:10%;-webkit-transition:-webkit-transform .35s;transition:transform .35s;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}html body .et_pb_module_inner .modula .modula-items .modula-item.effect-pufrobo .jtg-title{-webkit-transition:-webkit-transform .35s!important;transition:transform .35s!important}html body .modula .modula-item.effect-pufrobo:hover .jtg-title{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after{position:absolute;top:80%;left:0;width:100%;height:4px;background:#fff;content:'';-webkit-transform:translate3d(0,40px,0);transform:translate3d(0,40px,0)}html body .modula .modula-item.effect-pufrobo .jtg-title::after,html body .modula .modula-item.effect-pufrobo p{opacity:0;-webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s}html body .modula .modula-item.effect-pufrobo:hover .jtg-title::after,html body .modula .modula-item.effect-pufrobo:hover p{margin-top:10px;margin-bottom:5px;opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}html body .modula .modula-items .modula-item.effect-pufrobo .figc.no-title.no-description .jtg-title:after{display:none}html body .modula .modula-items .modula-item.effect-appear .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-comodo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-crafty .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-curtain .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-fluid-up .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-hide .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-lens .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-pufrobo .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-quiet .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-reflex .figc .jtg-title:before,html body .modula .modula-items .modula-item.effect-seemo .figc .jtg-title:before{display:none}html body .modula .modula-items .modula-item>a{cursor:zoom-in}html body .modula-fancybox-container.modula-fancybox-is-open{z-index:99999999}html body .modula-fancybox-share__button--li{background:#0e76a8}html body .modula-fancybox-share__button--wa{background:#25d366}html body .modula.modula-columns .modula-item{display:flex;justify-content:center}html body .modula.modula-columns .modula-item .modula-item-content{position:relative}html body .modula.modula-columns .modula-items.grid-gallery .modula-item .modula-item-content{height:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content{width:100%}html body .modula.modula-columns .modula-items.grid-gallery.justified-gallery .modula-item .modula-item-content .pic{position:absolute;top:50%;left:50%;margin:0;padding:0;border:none}html body .modula.modula-columns .modula-item.jg-filtered{display:none}html body .modula-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}html body .modula-row-cols-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}@media (min-width:576px){html body .modula-row-cols-sm-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-sm-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-sm-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-sm-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-sm-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-sm-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:768px){html body .modula-row-cols-md-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-md-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-md-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-md-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-md-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-md-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:992px){html body .modula-row-cols-lg-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-lg-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-lg-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-lg-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-lg-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-lg-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}@media (min-width:1200px){html body .modula-row-cols-xl-1>*{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}html body .modula-row-cols-xl-2>*{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}html body .modula-row-cols-xl-3>*{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}html body .modula-row-cols-xl-4>*{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}html body .modula-row-cols-xl-5>*{-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}html body .modula-row-cols-xl-6>*{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}}html body .modula .modula-items.grid-gallery .modula-item .figc{height:100%;top:0}html body div.modula-powered{text-align:right;font-size:14px;margin-right:5px;clear:both}html body div.modula-powered svg.modula-logo{width:14px;position:relative;top:3px}html body div.modula-powered svg.modula-logo path{color:#58ab7e!important}html body div.modula-powered svg.modula-logo{display:inline-block}.modula-gallery:not(.modula-gallery-initialized)>.modula-items{visibility:hidden}.modula-gallery.modula-gallery-initialized .modula-items .modula-item{visibility:visible}
|
assets/css/front/fancybox.css
CHANGED
@@ -803,7 +803,7 @@ html body .modula-fancybox-container .modula-fancybox-thumbs {
|
|
803 |
right: 0;
|
804 |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
805 |
top: 0;
|
806 |
-
width: 212px
|
807 |
z-index: 99995;
|
808 |
}
|
809 |
|
@@ -828,7 +828,6 @@ html body .modula-fancybox-thumbs__list {
|
|
828 |
overflow-x: hidden;
|
829 |
overflow-y: auto;
|
830 |
padding: 0;
|
831 |
-
position: absolute;
|
832 |
position: relative;
|
833 |
white-space: nowrap;
|
834 |
width: 100%;
|
@@ -908,4 +907,10 @@ html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before
|
|
908 |
html body .modula-fancybox-thumbs__list a {
|
909 |
max-width: calc(100% - 10px);
|
910 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
911 |
}
|
803 |
right: 0;
|
804 |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
805 |
top: 0;
|
806 |
+
/*width: 212px;*/
|
807 |
z-index: 99995;
|
808 |
}
|
809 |
|
828 |
overflow-x: hidden;
|
829 |
overflow-y: auto;
|
830 |
padding: 0;
|
|
|
831 |
position: relative;
|
832 |
white-space: nowrap;
|
833 |
width: 100%;
|
907 |
html body .modula-fancybox-thumbs__list a {
|
908 |
max-width: calc(100% - 10px);
|
909 |
}
|
910 |
+
}
|
911 |
+
|
912 |
+
@media all and (min-width:577px){
|
913 |
+
html body .modula-fancybox-container .modula-fancybox-thumbs {
|
914 |
+
width : 212px;
|
915 |
+
}
|
916 |
}
|
assets/css/front/fancybox.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;width:212px;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
|
1 |
+
html body .compensate-for-scrollbar{overflow:hidden}html body .modula-fancybox-active{height:auto}html body .modula-fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}html body .modula-fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:0;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}html body .modula-fancybox-container *{box-sizing:border-box}html body .modula-fancybox-bg,html body .modula-fancybox-inner,html body .modula-fancybox-outer,html body .modula-fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}html body .modula-fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}html body .modula-fancybox-bg{background:#1e1e1e;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}html body .modula-fancybox-is-open .modula-fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}html body .modula-fancybox-container .modula-fancybox-caption,html body .modula-fancybox-container .modula-fancybox-infobar,html body .modula-fancybox-container .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}html body .modula-fancybox-show-caption .modula-fancybox-caption,html body .modula-fancybox-show-infobar .modula-fancybox-infobar,html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button,html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}html body .modula-fancybox-container .modula-fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html body .modula-fancybox-container .modula-fancybox-toolbar{right:0;top:0}html body .modula-fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}html body .modula-fancybox-is-open .modula-fancybox-stage{overflow:hidden}html body .modula-fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}html body .modula-fancybox-slide::before{content:'';display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}html body .modula-fancybox-is-sliding .modula-fancybox-slide,html body .modula-fancybox-slide--current,html body .modula-fancybox-slide--next,html body .modula-fancybox-slide--previous{display:block}html body .modula-fancybox-slide--image{overflow:hidden;padding:44px 0}html body .modula-fancybox-slide--image::before{display:none}html body .modula-fancybox-slide--html{padding:6px}html body .modula-fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}html body .modula-fancybox-slide--image .modula-fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:0 0;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;-ms-transform-origin:top left;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}html body .modula-fancybox-can-zoomOut .modula-fancybox-content{cursor:zoom-out}html body .modula-fancybox-can-zoomIn .modula-fancybox-content{cursor:zoom-in}html body .modula-fancybox-can-pan .modula-fancybox-content,html body .modula-fancybox-can-swipe .modula-fancybox-content{cursor:-webkit-grab;cursor:grab}html body .modula-fancybox-is-grabbing .modula-fancybox-content{cursor:-webkit-grabbing;cursor:grabbing}html body .modula-fancybox-container [data-selectable=true]{cursor:text}html body .modula-fancybox-image,html body .modula-fancybox-spaceball{background:0 0;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}html body .modula-fancybox-spaceball{z-index:1}html body .modula-fancybox-slide--iframe .modula-fancybox-content,html body .modula-fancybox-slide--map .modula-fancybox-content,html body .modula-fancybox-slide--pdf .modula-fancybox-content,html body .modula-fancybox-slide--video .modula-fancybox-content{height:100%;overflow:visible;padding:0;width:100%}html body .modula-fancybox-slide--video .modula-fancybox-content{background:#000}html body .modula-fancybox-slide--map .modula-fancybox-content{background:#e5e3df}html body .modula-fancybox-slide--iframe .modula-fancybox-content{background:#fff}html body .modula-fancybox-iframe,html body .modula-fancybox-video{background:0 0;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}html body .modula-fancybox-iframe{left:0;position:absolute;top:0}html body .modula-fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}html body .modula-fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}html body .modula-fancybox-container .modula-fancybox-button,html body .modula-fancybox-container .modula-fancybox-button:link,html body .modula-fancybox-container .modula-fancybox-button:visited{color:#ccc}html body .modula-fancybox-container .modula-fancybox-button:hover{color:#fff;box-shadow:none}html body .modula-fancybox-container .modula-fancybox-button:focus{outline:0}html body .modula-fancybox-container .modula-fancybox-button.modula-fancybox-focus{outline:1px dotted}html body .modula-fancybox-container .modula-fancybox-button[disabled],html body .modula-fancybox-container .modula-fancybox-button[disabled]:hover{color:#888;cursor:default;outline:0}html body .modula-fancybox-container .modula-fancybox-button div{height:100%}html body .modula-fancybox-container .modula-fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}html body .modula-fancybox-container .modula-fancybox-button svg path{fill:currentColor;stroke-width:0}html body .modula-fancybox-container .modula-fancybox-button--fsenter svg:nth-child(2),html body .modula-fancybox-container .modula-fancybox-button--play svg:nth-child(2){display:none}html body .modula-fancybox-container .modula-fancybox-button--fsexit svg:nth-child(1),html body .modula-fancybox-container .modula-fancybox-button--pause svg:nth-child(1){display:none}html body .modula-fancybox-container .modula-fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;-ms-transform:scaleX(0);transform:scaleX(0);-ms-transform-origin:0;transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}html body .modula-fancybox-container .modula-fancybox-close-small{background:0 0;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}html body .modula-fancybox-container .modula-fancybox-close-small:hover{color:#fff;opacity:1}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-slide--html .modula-fancybox-close-small{color:#000;padding:10px;right:0;top:0;background-color:transparent}html body .modula-fancybox-slide--image.modula-fancybox-is-scaling .modula-fancybox-content{overflow:hidden}html body .modula-fancybox-is-scaling .modula-fancybox-close-small,html body .modula-fancybox-is-zoomable.modula-fancybox-can-pan .modula-fancybox-close-small{display:none}html body .modula-fancybox-navigation .modula-fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}html body .modula-fancybox-navigation .modula-fancybox-button div{padding:7px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}html body .modula-fancybox-navigation .modula-fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}html body .modula-fancybox-caption{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,rgba(0,0,0,0) 100%);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px 44px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}html body .modula-fancybox-caption--separate{margin-top:-50px}html body .modula-fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}html body .modula-fancybox-caption a,html body .modula-fancybox-caption a:link,html body .modula-fancybox-caption a:visited{color:#ccc;text-decoration:none}html body .modula-fancybox-caption a:hover{color:#fff;text-decoration:underline}html body .modula-fancybox-loading{animation:fancybox-rotate 1s linear infinite;background:0 0;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}html body .modula-fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}html body .modula-fancybox-fx-slide.modula-fancybox-slide--current{opacity:1;transform:translate3d(0,0,0)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--next,html body .modula-fancybox-fx-fade.modula-fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}html body .modula-fancybox-fx-fade.modula-fancybox-slide--current{opacity:1}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}html body .modula-fancybox-fx-zoom-in-out.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--previous{opacity:0;-ms-transform:rotate(-360deg);transform:rotate(-360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--next{opacity:0;-ms-transform:rotate(360deg);transform:rotate(360deg)}html body .modula-fancybox-fx-rotate.modula-fancybox-slide--current{opacity:1;-ms-transform:rotate(0);transform:rotate(0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}html body .modula-fancybox-fx-circular.modula-fancybox-slide--current{opacity:1;transform:scale3d(1,1,1) translate3d(0,0,0)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}html body .modula-fancybox-fx-tube.modula-fancybox-slide--current{transform:translate3d(0,0,0) scale(1)}@media all and (max-height:576px){html body .modula-fancybox-slide{padding-left:6px;padding-right:6px}html body .modula-fancybox-slide--image{padding:6px 0}html body .modula-fancybox-close-small{right:-6px}html body .modula-fancybox-slide--image .modula-fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}html body .modula-fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){html body .modula-fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px 0}.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:after,.modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share h1:before{display:none}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share p{margin:0;padding:0}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px 5px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:link,html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:visited{color:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button:hover{text-decoration:none}html body .modula-fancybox-share__button--fb{background:#3b5998}html body .modula-fancybox-share__button--fb:hover{background:#344e86}html body .modula-fancybox-share__button--pt{background:#bd081d}html body .modula-fancybox-share__button--pt:hover{background:#aa0719}html body .modula-fancybox-share__button--tw{background:#1da1f2}html body .modula-fancybox-share__button--tw:hover{background:#0d95e8}html body .modula-fancybox-share__button--email{background:#9c3}html body .modula-fancybox-share__button--email:hover{background:#7aa329}html body .modula-fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px;display:inline-block}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share__button svg path{fill:#fff}html body .modula-fancybox-container .modula-fancybox-stage .modula-fancybox-share .modula-fancybox-share__input{background:0 0;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0 0;outline:0;padding:10px 15px;width:100%}html body .modula-fancybox-container .modula-fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px 2px;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;z-index:99995}html body .modula-fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}html body .modula-fancybox-show-thumbs .modula-fancybox-thumbs{display:block}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:212px}html body .modula-fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:relative;white-space:nowrap;width:100%}html body .modula-fancybox-thumbs-x .modula-fancybox-thumbs__list{overflow:hidden}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar{width:7px}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}html body .modula-fancybox-thumbs-y .modula-fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}html body .modula-fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:center center;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:0;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}html body .modula-fancybox-thumbs__list a::before{border:6px solid #ff5268;bottom:0;content:'';left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}html body .modula-fancybox-thumbs__list a:focus::before{opacity:.5}html body .modula-fancybox-thumbs__list a.modula-fancybox-thumbs-active::before{opacity:1}@media all and (max-width:576px){html body .modula-fancybox-thumbs{width:110px}html body .modula-fancybox-show-thumbs .modula-fancybox-inner{right:110px}html body .modula-fancybox-thumbs__list a{max-width:calc(100% - 10px)}}@media all and (min-width:577px){html body .modula-fancybox-container .modula-fancybox-thumbs{width:212px}}
|
assets/images/addons/modula-fullscreen.png
ADDED
Binary file
|
assets/js/admin/modula-addon.js
CHANGED
@@ -16,4 +16,86 @@
|
|
16 |
});
|
17 |
});
|
18 |
|
19 |
-
})( jQuery );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
});
|
17 |
});
|
18 |
|
19 |
+
})( jQuery );
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Function to install/activate/deactivate Modula's free addons
|
23 |
+
*/
|
24 |
+
(function( wp, $ ) {
|
25 |
+
'use strict';
|
26 |
+
if ( ! wp ) {
|
27 |
+
return;
|
28 |
+
}
|
29 |
+
|
30 |
+
$( '.modula-free-addons-container .modula-toggle__input' ).on( 'change', function ( e ) {
|
31 |
+
|
32 |
+
var activate_url = $( this ).data( 'activateurl' ),
|
33 |
+
deactivate_url = $( this ).data( 'deactivateurl' ),
|
34 |
+
action = $( this ).data( 'action' ),
|
35 |
+
text_wrapper = $( this ).parents( '.modula-free-addon-actions' ).find( 'span.modula-action-texts' ),
|
36 |
+
slug = $( this ).data( 'slug' );
|
37 |
+
|
38 |
+
e.preventDefault();
|
39 |
+
|
40 |
+
if ( 'install' === action ) {
|
41 |
+
|
42 |
+
text_wrapper.text( modulaAddons.installing_text );
|
43 |
+
|
44 |
+
wp.updates.installPlugin( {
|
45 |
+
slug: slug
|
46 |
+
} );
|
47 |
+
|
48 |
+
} else if ( 'activate' === action ) {
|
49 |
+
|
50 |
+
text_wrapper.text( modulaAddons.activating_text );
|
51 |
+
freeModulaPluginAction( activate_url, action, text_wrapper );
|
52 |
+
} else if ( 'installed' === action ) {
|
53 |
+
|
54 |
+
text_wrapper.text( modulaAddons.deactivating_text );
|
55 |
+
freeModulaPluginAction( deactivate_url, action, text_wrapper );
|
56 |
+
}
|
57 |
+
|
58 |
+
});
|
59 |
+
|
60 |
+
function freeModulaPluginAction( url, action, text_wrapper, slug ) {
|
61 |
+
|
62 |
+
$.ajax( {
|
63 |
+
async : true,
|
64 |
+
type : 'GET',
|
65 |
+
dataType: 'html',
|
66 |
+
url : url,
|
67 |
+
success : function () {
|
68 |
+
|
69 |
+
if ( 'activate' === action ) {
|
70 |
+
|
71 |
+
if ( !text_wrapper && 'undefined' !== typeof slug ) {
|
72 |
+
text_wrapper = jQuery( 'input[data-slug="' + slug + '"]' ).parents( '.modula-free-addon-actions' ).find( 'span.modula-action-texts' );
|
73 |
+
}
|
74 |
+
|
75 |
+
text_wrapper.text( modulaAddons.activated_text );
|
76 |
+
|
77 |
+
} else if ( 'deactivate' === action ) {
|
78 |
+
|
79 |
+
if ( !text_wrapper && 'undefined' !== typeof slug ) {
|
80 |
+
text_wrapper = jQuery( 'input[data-slug="' + slug + '"]' ).parents( '.modula-free-addon-actions' ).find( 'span.modula-action-texts' );
|
81 |
+
}
|
82 |
+
|
83 |
+
text_wrapper.text( modulaAddons.deactivated_text );
|
84 |
+
}
|
85 |
+
|
86 |
+
setTimeout( function () {
|
87 |
+
text_wrapper.text( '' );
|
88 |
+
}, 3000 );
|
89 |
+
}
|
90 |
+
} );
|
91 |
+
}
|
92 |
+
|
93 |
+
jQuery( document ).on( 'wp-plugin-install-success', function ( response, data ) {
|
94 |
+
|
95 |
+
if ( jQuery.inArray( data.slug, modulaAddons.free_addons ) > -1 ) {
|
96 |
+
|
97 |
+
freeModulaPluginAction( data.activateUrl, 'activate', false, data.slug );
|
98 |
+
}
|
99 |
+
} );
|
100 |
+
|
101 |
+
})( window.wp, jQuery );
|
assets/js/admin/modula-edit.js
CHANGED
@@ -1,22 +1,24 @@
|
|
1 |
-
(function($) {
|
2 |
'use strict';
|
3 |
|
4 |
-
$(document).ready(function() {
|
5 |
-
$('.modula-feedback-notice .notice-dismiss').click(function(evt) {
|
6 |
evt.preventDefault();
|
7 |
|
8 |
var notice = $(this).parent();
|
9 |
$.ajax({
|
10 |
method: 'POST',
|
11 |
url: ajaxurl,
|
12 |
-
data: {
|
13 |
-
|
|
|
|
|
14 |
notice.remove();
|
15 |
});
|
16 |
});
|
17 |
|
18 |
// Copy shortcode functionality
|
19 |
-
$('.copy-modula-shortcode').click(function(e) {
|
20 |
e.preventDefault();
|
21 |
var gallery_shortcode = $(this).parent().find('input');
|
22 |
gallery_shortcode.focus();
|
@@ -27,7 +29,7 @@
|
|
27 |
});
|
28 |
|
29 |
// Dismiss notice
|
30 |
-
$('body').on('click', '#modula-lightbox-upgrade .notice-dismiss', function(e) {
|
31 |
e.preventDefault();
|
32 |
var notice = $(this).parent();
|
33 |
|
@@ -36,7 +38,7 @@
|
|
36 |
nonce: modulaHelper._wpnonce
|
37 |
};
|
38 |
|
39 |
-
$.post(modulaHelper.ajax_url, data, function(response) {
|
40 |
// Redirect to plugins page
|
41 |
notice.remove();
|
42 |
});
|
@@ -45,29 +47,61 @@
|
|
45 |
|
46 |
const modulaOpenModal = (e) => {
|
47 |
e.preventDefault();
|
|
|
48 |
$.get(
|
49 |
-
modulaHelper.ajax_url,
|
50 |
-
|
51 |
-
action: 'modula_modal_upgrade'
|
52 |
},
|
53 |
(html) => {
|
54 |
$('body').addClass('modal-open');
|
55 |
$('body').append(html);
|
56 |
|
57 |
-
$(document).one('click', '.modula-modal__overlay',
|
58 |
-
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
);
|
61 |
};
|
62 |
|
63 |
-
const modulaCloseModal = () => {
|
64 |
-
|
|
|
65 |
$('body').removeClass('modal-open');
|
66 |
};
|
67 |
|
68 |
$('body').on(
|
69 |
'click',
|
70 |
-
'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-albums"]',
|
|
|
|
|
71 |
modulaOpenModal
|
72 |
);
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function ($) {
|
2 |
'use strict';
|
3 |
|
4 |
+
$(document).ready(function () {
|
5 |
+
$('.modula-feedback-notice .notice-dismiss').click(function (evt) {
|
6 |
evt.preventDefault();
|
7 |
|
8 |
var notice = $(this).parent();
|
9 |
$.ajax({
|
10 |
method: 'POST',
|
11 |
url: ajaxurl,
|
12 |
+
data: {
|
13 |
+
action: 'modula-edit-notice'
|
14 |
+
}
|
15 |
+
}).done(function (msg) {
|
16 |
notice.remove();
|
17 |
});
|
18 |
});
|
19 |
|
20 |
// Copy shortcode functionality
|
21 |
+
$('.copy-modula-shortcode').click(function (e) {
|
22 |
e.preventDefault();
|
23 |
var gallery_shortcode = $(this).parent().find('input');
|
24 |
gallery_shortcode.focus();
|
29 |
});
|
30 |
|
31 |
// Dismiss notice
|
32 |
+
$('body').on('click', '#modula-lightbox-upgrade .notice-dismiss', function (e) {
|
33 |
e.preventDefault();
|
34 |
var notice = $(this).parent();
|
35 |
|
38 |
nonce: modulaHelper._wpnonce
|
39 |
};
|
40 |
|
41 |
+
$.post(modulaHelper.ajax_url, data, function (response) {
|
42 |
// Redirect to plugins page
|
43 |
notice.remove();
|
44 |
});
|
47 |
|
48 |
const modulaOpenModal = (e) => {
|
49 |
e.preventDefault();
|
50 |
+
const upsell = e.data.upsell;
|
51 |
$.get(
|
52 |
+
modulaHelper.ajax_url, {
|
53 |
+
action: 'modula_modal-' + upsell + '_upgrade'
|
|
|
54 |
},
|
55 |
(html) => {
|
56 |
$('body').addClass('modal-open');
|
57 |
$('body').append(html);
|
58 |
|
59 |
+
$(document).one('click', '.modula-modal__overlay.'+ upsell, {
|
60 |
+
upsell
|
61 |
+
}, modulaCloseModal);
|
62 |
+
$(document).one('click', '.modula-modal__dismiss.'+ upsell, {
|
63 |
+
upsell
|
64 |
+
}, modulaCloseModal);
|
65 |
}
|
66 |
);
|
67 |
};
|
68 |
|
69 |
+
const modulaCloseModal = (e) => {
|
70 |
+
const upsell = e.data.upsell;
|
71 |
+
$('.modula-modal__overlay.'+ upsell).remove();
|
72 |
$('body').removeClass('modal-open');
|
73 |
};
|
74 |
|
75 |
$('body').on(
|
76 |
'click',
|
77 |
+
'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-albums"]', {
|
78 |
+
upsell: 'albums'
|
79 |
+
},
|
80 |
modulaOpenModal
|
81 |
);
|
82 |
+
|
83 |
+
$('body').on(
|
84 |
+
'click',
|
85 |
+
'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#gallery-defaults"]',
|
86 |
+
{upsell:'gallery-defaults'},
|
87 |
+
modulaOpenModal
|
88 |
+
);
|
89 |
+
|
90 |
+
$('body').on(
|
91 |
+
'click',
|
92 |
+
'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#albums-defaults"]',
|
93 |
+
{upsell:'albums-defaults'},
|
94 |
+
modulaOpenModal
|
95 |
+
);
|
96 |
+
|
97 |
+
jQuery(window).load(function () {
|
98 |
+
|
99 |
+
let searchParams = new URLSearchParams(window.location.search);
|
100 |
+
if (searchParams.has('page') && 'modula-lite-vs-pro' === searchParams.get('page') && searchParams.has('extension')) {
|
101 |
+
|
102 |
+
jQuery('html,body').animate({
|
103 |
+
scrollTop: jQuery('.wpchill-plans-table.wpchill-highlight').offset().top - 150
|
104 |
+
}, 600);
|
105 |
+
}
|
106 |
+
});
|
107 |
+
})(jQuery);
|
assets/js/admin/wp-modula-conditions.js
CHANGED
@@ -61,7 +61,7 @@ var modulaGalleryConditions = Backbone.Model.extend({
|
|
61 |
|
62 |
rows.filter( '[data-container="width"], [data-container="height"], [data-container="randomFactor"], [data-container="shuffle"]' ).hide();
|
63 |
|
64 |
-
rows.filter('
|
65 |
|
66 |
// Rows for grid type
|
67 |
rows.filter('[data-container="grid_type"], [data-container="grid_row_height"], [data-container="grid_max_row_height"], [data-container="grid_row_height"], [data-container="grid_justify_last_row"]').hide();
|
@@ -76,7 +76,7 @@ var modulaGalleryConditions = Backbone.Model.extend({
|
|
76 |
|
77 |
rows.filter( '[data-container="width"], [data-container="height"], [data-container="randomFactor"], [data-container="shuffle"]' ).show();
|
78 |
|
79 |
-
rows.filter('[data-container="height"], [data-container="gutter"], [data-container="
|
80 |
|
81 |
|
82 |
// Rows for grid type
|
@@ -97,6 +97,8 @@ var modulaGalleryConditions = Backbone.Model.extend({
|
|
97 |
} else {
|
98 |
|
99 |
rows.filter('[data-container="grid_type"], [data-container="grid_row_height"], [data-container="grid_max_row_height"], [data-container="grid_row_height"], [data-container="grid_justify_last_row"]').hide();
|
|
|
|
|
100 |
}
|
101 |
|
102 |
// Check image sizes
|
61 |
|
62 |
rows.filter( '[data-container="width"], [data-container="height"], [data-container="randomFactor"], [data-container="shuffle"]' ).hide();
|
63 |
|
64 |
+
rows.filter('[data-container="maxImagesCount"]').show();
|
65 |
|
66 |
// Rows for grid type
|
67 |
rows.filter('[data-container="grid_type"], [data-container="grid_row_height"], [data-container="grid_max_row_height"], [data-container="grid_row_height"], [data-container="grid_justify_last_row"]').hide();
|
76 |
|
77 |
rows.filter( '[data-container="width"], [data-container="height"], [data-container="randomFactor"], [data-container="shuffle"]' ).show();
|
78 |
|
79 |
+
rows.filter('[data-container="height"], [data-container="gutter"], [data-container="shuffle"], [data-container="showAllOnLightbox"],[data-container="maxImagesCount"]').show();
|
80 |
|
81 |
|
82 |
// Rows for grid type
|
97 |
} else {
|
98 |
|
99 |
rows.filter('[data-container="grid_type"], [data-container="grid_row_height"], [data-container="grid_max_row_height"], [data-container="grid_row_height"], [data-container="grid_justify_last_row"]').hide();
|
100 |
+
|
101 |
+
rows.filter('[data-container="randomFactor"]').show();
|
102 |
}
|
103 |
|
104 |
// Check image sizes
|
assets/js/admin/wp-modula-gutenberg.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function a(n){if(e[n])return e[n].exports;var l=e[n]={i:n,l:!1,exports:{}};return t[n].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var l in t)a.d(n,l,function(e){return t[e]}.bind(null,l));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=0)}([function(t,e,a){"use strict";a.r(e);wp.i18n.__;var n=wp.element,l=(n.Component,n.Fragment,n.useEffect),o=(n.useState,wp.data.withSelect,wp.components),c=(o.SelectControl,o.Button,o.Spinner,o.Toolbar,o.IconButton,wp.editor.BlockControls,wp.compose.compose,wp.components.__experimentalInputControl,function(t){var e=t.onIdChange,a=t.id,n=t.options;return l((function(){jQuery(".modula-gallery-input").selectize({valueField:"value",labelField:"label",searchField:["label","value"],create:!1,maxItems:1,placeholder:"Search for a gallery...",preload:!0,allowEmptyOptions:!0,closeAfterSelect:!0,options:n,render:{option:function(t,e){return'<div><span class="title">'+e(t.label)+'<span class="name">( #'+e(t.value)+" )</span></div>"}},load:function(t,e){if(!t.length)return e();jQuery.ajax({url:modulaVars.ajaxURL,type:"GET",data:{action:"modula_get_gallery",nonce:modulaVars.nonce,term:t},success:function(t){e(t)}})},onChange:function(t){e(t)}})}),[]),React.createElement("input",{className:"modula-gallery-input",value:"0"==a?"":a})}),i=wp.i18n.__,r=wp.element,d=(r.Component,r.Fragment),u=wp.editor.InspectorControls,s=wp.components,m=(s.SelectControl,s.Button),g=s.PanelBody,f=wp.components.withFilters("modula.ModulaInspector")((function(t){var e=t.attributes,a=(t.setAttributes,t.galleries),n=t.onIdChange,l=e.id,o=(e.currentGallery,e.currentSelectize);return React.createElement(d,null,React.createElement(u,null,React.createElement(g,{title:i("Gallery Settings","modula-best-grid-gallery"),initialOpen:!0},a.length>0&&React.createElement(d,null,React.createElement(c,{id:l,key:l,value:l,options:o,onIdChange:n}),0!=l&&React.createElement(m,{target:"_blank",href:modulaVars.adminURL+"post.php?post="+l+"&action=edit",isDefault:!0},i("Edit gallery"))))))})),p={};p.modula=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"364 242.9 312.2 357"},React.createElement("g",null,React.createElement("path",{d:"M528.1,242.9c8.5,16.9,17,33.8,25.6,50.6c13.4,26.4,26.9,52.7,39.9,79.7c-41.8-23.3-83.6-46.7-125.4-70.1 c0.3-1.9,1.7-2.6,2.7-3.5c17.7-17.7,35.4-35.4,53.1-53c1.1-1.1,2.6-2,3.1-3.7C527.4,242.9,527.8,242.9,528.1,242.9z"}),React.createElement("path",{d:"M602.3,463.3c11.3-6.9,22.6-13.9,33.9-20.8c5.5-3.4,11.1-6.7,16.5-10.3c2.2-1.4,2.9-1.1,3.5,1.5 c6.4,25.3,13,50.6,19.6,75.8c0.6,2.2,1,3.7-2.4,3.5c-46.7-2.1-93.5-4.1-140.2-6.1c-0.2,0-0.3-0.1-0.5-0.2c0.5-1.7,2.1-2,3.3-2.7 c20-12.3,39.9-24.7,60-36.8c3.4-2.1,5.1-3.7,4.8-8.5c-1.4-21.3-1.8-42.6-2.6-63.9c-0.9-24.1-1.8-48.3-2.8-72.4 c-0.2-6.1-0.2-6.1,5.5-4.6c23.8,6.2,47.6,12.5,71.5,18.5c3.9,1,4.2,1.9,2.1,5.4c-23.4,38.5-46.7,77.1-70,115.7c-1,1.7-2,3.4-3,5.1 C601.7,462.8,602,463,602.3,463.3z"}),React.createElement("path",{d:"M372.8,326.9c48,2.6,95.8,5.1,143.9,7.7c-0.9,2-2.5,2.3-3.7,3.1c-38.6,23.2-77.3,46.4-115.9,69.6c-3,1.8-4.3,2.6-5.4-1.9 c-5.9-24.9-12.2-49.7-18.3-74.6C373.1,329.6,373,328.4,372.8,326.9z"}),React.createElement("path",{d:"M517.6,599.9c-23.2-43.7-45.9-86.6-69.2-130.5c2.3,1.2,3.5,1.8,4.7,2.4c39.8,21.5,79.5,43.1,119.3,64.5 c3.2,1.7,4.1,2.5,1,5.6c-17.7,17.8-35.2,35.9-52.8,53.9C519.7,596.9,518.9,598.2,517.6,599.9z"}),React.createElement("path",{d:"M364.9,505.1c26.6-40.5,53.1-80.8,79.7-121.3c1.3,1.3,0.9,2.5,0.9,3.6c0,46-0.1,92-0.1,137.9c0,3.1-0.2,4.5-4,3.3 c-24.9-7.7-49.9-15.2-74.9-22.8C366,505.8,365.7,505.5,364.9,505.1z"}))),p.remove=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),p.replace=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),p.chevronLeft=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),p.chevronRight=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),p.twitter=React.createElement("svg",{"aria-hidden":"true","data-prefix":"fab","data-icon":"twitter",class:"svg-inline--fa fa-twitter fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})),p.facebook=React.createElement("svg",{"aria-hidden":"true","data-prefix":"fab","data-icon":"facebook-f",class:"svg-inline--fa fa-facebook-f fa-w-9",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},React.createElement("path",{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})),p.whatsapp=React.createElement("svg",{"aria-hidden":"true",focusable:"false",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1600"},React.createElement("path",{d:"M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z",fill:"currentColor"})),p.pinterest=React.createElement("svg",{"aria-hidden":"true","data-prefix":"fab","data-icon":"pinterest-p",class:"svg-inline--fa fa-pinterest-p fa-w-12",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},React.createElement("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})),p.linkedin=React.createElement("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"linkedin-in",class:"svg-inline--fa fa-linkedin-in fa-w-14",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},React.createElement("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"})),p.email=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z",fill:"currentColor"})),p.chevronRightFancy=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-chevron-right",viewBox:"0 0 16 16"},React.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}));var h=p,v=wp.element.Fragment,y=function(t){var e=t.settings,a=t.img,n=(t.effectCheck,t.hideTitle),l=t.hideDescription,o=t.hideSocial;return[React.createElement(v,null,["tilt_1","tilt_3","tilt_7"].includes(e.effect)&&React.createElement("div",{class:"tilter__deco tilter__deco--shine"},React.createElement("div",null)),["tilt_3","tilt_7"].includes(e.effect)&&React.createElement("div",{class:"tilter__deco tilter__deco--overlay"}),["tilt_1","tilt_7"].includes(e.effect)&&React.createElement("div",{class:"tilter__deco tilter__deco--lines"}),React.createElement("div",{className:"figc"},React.createElement("div",{className:"figc-inner"},"0"==e.hide_title&&!n&&React.createElement("h2",{className:"jtg-title"}," ",a.title," "),React.createElement("div",{className:["lily","sadie","ruby","bubba","dexter","chico","ming"].includes(e.effect)?"jtg-body":""},"0"==e.hide_description&&!l&&React.createElement("p",{className:"description"}," ",0!=a.description.length&&a.description," "),!o&&"1"==e.enableSocial&&React.createElement("div",{className:"jtg-social"},"1"==e.enableTwitter&&React.createElement("a",{className:"modula-icon-twitter",href:"#"}," ","$",h.twitter," "),"1"==e.enableFacebook&&React.createElement("a",{className:"modula-icon-facebook",href:"#"}," ","$",h.facebook," "),"1"==e.enableWhatsapp&&React.createElement("a",{className:"modula-icon-whatsapp",href:"#"}," ","$",h.whatsapp," "),"1"==e.enableLinkedin&&React.createElement("a",{className:"modula-icon-linkedin",href:"#"}," ","$",h.linkedin," "),"1"==e.enablePinterest&&React.createElement("a",{className:"modula-icon-pinterest",href:"#"}," ","$",h.pinterest," "),"1"==e.enableEmail&&React.createElement("a",{className:"modula-icon-email",href:"#"}," ","$",h.email," "))))))]},b=(wp.i18n.__,wp.element),w=(b.useState,b.useEffect,wp.components),j=(w.Button,w.ButtonGroup,wp.blockEditor),E=(j.MediaUpload,j.MediaPlaceholder,wp.components.withFilters("modula.ModulaGalleryImage")((function(t){var e=t.attributes,a=(e.images,e.settings),n=(e.id,e.effectCheck),l=t.img,o=t.index;t.setAttributes,t.checkHoverEffect;return[React.createElement("div",{className:"modula-item effect-".concat(a.effect),"data-width":l["data-width"]?l["data-width"]:"2","data-height":l["data-height"]?l["data-height"]:"2"},React.createElement("div",{className:"modula-item-overlay"}),React.createElement("div",{className:"modula-item-content"},React.createElement("img",{className:"modula-image pic","data-id":l.id,"data-full":l.src,"data-src":l.src,"data-valign":"middle","data-halign":"center",src:l.src}),"slider"!==a.type&&React.createElement(y,{settings:a,img:l,index:o,hideTitle:null==n||1!=n.title,hideDescription:null==n||1!=n.description,hideSocial:null==n||1!=n.social,effectCheck:n})))]}))),R=function(t){var e=t.id,a=t.settings,n="";"grid"==a.type&&"automatic"!=a.grid_type&&(n+="#jtg-".concat(e,".modula-gallery .modula-item, .modula-gallery .modula-grid-sizer { width: calc(").concat(100/a.grid_type,"% - ").concat(a.gutter-a.gutter/a.grid_type,"px) !important}")),"0"!=a.borderSize&&(n+="#jtg-".concat(e," .modula-item {\n\t\t\tborder: ").concat(a.borderSize,"px solid ").concat(a.borderColor,";\n\t\t}")),"0"!=a.borderRadius&&(n+="#jtg-".concat(e," .modula-item {\n\t\t\tborder-radius: ").concat(a.borderRadius,"px;\n\t\t}")),"0"!=a.shadowSize&&(n+="#jtg-".concat(e," .modula-item {\n\t\t\tbox-shadow: ").concat(a.shadowColor," 0px 0px ").concat(a.shadowSize,"px;\n\t\t}")),"#ffffff"!=a.socialIconColor&&(n+="#jtg-".concat(e," .modula-item .jtg-social a {\n\t\t\tcolor: ").concat(a.socialIconColor,";\n\t\t}")),"16"!=a.socialIconSize&&(n+="#jtg-".concat(e," .modula-item .jtg-social svg {\n\t\t\theight: ").concat(a.socialIconSize,"px;\n\t\t\twidth: ").concat(a.socialIconSize,"px;\n\t\t}")),"10"!=a.socialIconPadding&&(n+="#jtg-".concat(e," .modula-item .jtg-social a:not(:last-child) {\n\t\t\tmargin-right: ").concat(a.socialIconPadding,"px;\n\t\t}")),n+="#jtg-".concat(e," .modula-item .caption {\n\t\tbackground-color: ").concat(a.captionColor,";\n\t}"),""!=a.captionColor&&(n+="#jtg-".concat(e," .modula-item .figc {\n\t\t\tcolor: ").concat(a.captionColor,";\n\t\t}")),""!=a.titleFontSize&&"0"!=a.titleFontSize&&(n+="#jtg-".concat(e," .modula-item .figc .jtg-title {\n\t\t\tfont-size: ").concat(a.titleFontSize,"px;\n\t\t}")),""!=a.captionFontSize&&"0"!=a.captionFontSize&&(n+="#jtg-".concat(e," .modula-item .figc p.description {\n\t\t\tfont-size: ").concat(a.captionFontSize,"px;\n\t\t}")),n+="#jtg-".concat(e," .modula-items .figc p.description {\n\t\t\tcolor: ").concat(a.captionColor,";\n\t}"),""!=a.titleColor?n+="#jtg-".concat(e," .modula-items .figc .jtg-title {\n\t\t\tcolor: ").concat(a.titleColor,";\n\t\t}"):n+="#jtg-".concat(e," .modula-items .figc .jtg-title {\n\t\t\tcolor: ").concat(a.captionColor,";\n\t\t}"),n+="#jtg-".concat(e,".modula-gallery .modula-item > a, #jtg-").concat(e,".modula-gallery .modula-item, #jtg-").concat(e,".modula-gallery .modula-item-content > a {\n\t\tcursor: ").concat(a.cursor,";\n\t}"),"custom-grid"==a.type&&"slider"==a.type||(n+="#jtg-".concat(e," {\n\t\twidth: ").concat(a.width,";\n\t\tmargin : 0 auto;\n\t\t}"),0==t.imagesCount?n+="#jtg-".concat(e," .modula-items {\n\t\t\t\theight: 100px;\n\t\t\t}"):"grid"!=a.type&&"slider"!=a.type?n+="#jtg-".concat(e," .modula-items {\n\t\t\t\theight: ").concat(a.height,"px;\n\t\t\t}"):"slider"==a.type&&(n+="#jtg-".concat(e," .modula-items {\n\t\t\t\theight: auto;\n\t\t\t}"))),null!=a.style&&0!=a.style.length&&(n+="".concat(a.style));var l="";return""!=a.mobileTitleFontSize&&0!=a.mobileTitleFontSize&&(l+="#jtg-".concat(e," .modula-item .figc .jtg-title {\n\t\t\tfont-size: ").concat(a.mobileTitleFontSize,"px\n\t\t}")),l+="#jtg-".concat(e," .modula-items .figc p.description {\n\t\tcolor: ").concat(a.captionColor,";\n\t\tfont-size: ").concat(a.mobileCaptionFontSize,"px;\n\t}"),n+="@media screen and (max-width:480px){\n\t\t".concat(l,"\n\t\t}"),"none"==a.effect&&(n+="#jtg-".concat(e," .modula-items .modula-item:hover img {\n\t\t\topacity: 1;\n\t\t}")),n+="#jtg-".concat(e,".modula .modula-items .modula-item .modula-item-overlay, #jtg-").concat(e,".modula .modula-items .modula-item.effect-layla, #jtg-").concat(e,".modula .modula-items .modula-item.effect-ruby, #jtg-").concat(e,".modula .modula-items .modula-item.effect-bubba, #jtg-").concat(e,".modula .modula-items .modula-item.effect-sarah, #jtg-").concat(e,".modula .modula-items .modula-item.effect-milo, #jtg-").concat(e,".modula .modula-items .modula-item.effect-julia, #jtg-").concat(e,".modula .modula-items .modula-item.effect-hera, #jtg-").concat(e,".modula .modula-items .modula-item.effect-winston, #jtg-").concat(e,".modula .modula-items .modula-item.effect-selena, #jtg-").concat(e,".modula .modula-items .modula-item.effect-terry, #jtg-").concat(e,".modula .modula-items .modula-item.effect-phoebe, #jtg-").concat(e,".modula .modula-items} .modula-item.effect-apollo, #jtg-").concat(e,".modula .modula-items .modula-item.effect-steve, #jtg-").concat(e,".modula .modula-items .modula-item.effect-ming{ \n\t\tbackground-color: ").concat(a.hoverColor,";\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-oscar {\n\t\tbackground: -webkit-linear-gradient(45deg, ").concat(a.hoverColor," 0, #9b4a1b 40%, ").concat(a.hoverColor," 100%);\n\t\tbackground: linear-gradient(45deg, ").concat(a.hoverColor," 0, #9b4a1b 40%, ").concat(a.hoverColor," 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-roxy {\n\t\tbackground: -webkit-linear-gradient(45deg, ").concat(a.hoverColor," 0, #05abe0 100%);\n\t\tbackground: linear-gradient(45deg, ").concat(a.hoverColor," 0, #05abe0 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-dexter {\n\t\tbackground: -webkit-linear-gradient(top, ").concat(a.hoverColor," 0, rgba(104,60,19,1) 100%);\n\t\tbackground: linear-gradient(top, ").concat(a.hoverColor," 0, rgba(104,60,19,1) 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-jazz {\n\t\tbackground: -webkit-linear-gradient(-45deg, ").concat(a.hoverColor," 0, #f33f58 100%);\n\t\tbackground: linear-gradient(-45deg, ").concat(a.hoverColor," 0, #f33f58 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-lexi {\n\t\tbackground: -webkit-linear-gradient(-45deg, ").concat(a.hoverColor," 0, #fff 100%);\n\t\tbackground: linear-gradient(-45deg, ").concat(a.hoverColor," 0, #fff 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-duke {\n\t\tbackground: -webkit-linear-gradient(-45deg, ").concat(a.hoverColor," 0, #cc6055 100%);\n\t\tbackground: linear-gradient(-45deg, ").concat(a.hoverColor," 0, #cc6055 100%);\n\t}"),a.hoverOpacity<=100&&"none"!=a.effect&&(n+="#jtg-".concat(e,".modula .modula-items .modula-item:hover img {\n\t\t\topacity: ").concat(1-a.hoverOpacity/100," ;\n\t\t}")),"default"!=a.titleFontWeight&&(n+="#jtg-".concat(e,".modula .modula-items .modula-item .jtg-title {\n\t\t\tfont-weight : ").concat(a.titleFontWeight,";\n\t\t}")),"default"!=a.captionFontWeight&&(n+="#jtg-".concat(e,".modula .modula-items .modula-item p.description {\n\t\t\tfont-weight : ").concat(a.captionFontWeight,";\n\t\t}")),n+="#jtg-".concat(e,".modula-gallery .modula-item.effect-terry .jtg-social a:not(:last-child) {\n\t\tmargin-bottom: ").concat(a.socialIconPadding,"px;\n\t}"),"slider"==a.type&&("true"==jQuery("[aria-label=Settings]").attr("aria-expanded")?n+="#jtg-".concat(e," {\n\t\t\t\t\twidth: 800px;\n\t\t\t\t\t}"):n+="#jtg-".concat(e," {\n\t\t\twidth: 1100px;\n\t\t\t}"),n+="#jtg-".concat(e," .modula-items {\n\t\theight: auto;\n\t\t}"),n+="#jtg-".concat(e," .modula-item {\n\t\tbackground-color: transparent;\n\t\ttransform: none;\n\t\t}")),null!=a.filters&&a.filters.length>1&&(n+="#jtg-".concat(e,".modula-gallery .filters {\n\t\t\ttext-align: ").concat(a.filterTextAlignment,";\n\t\t}")),React.createElement("style",{dangerouslySetInnerHTML:{__html:"\n \t\t\t\t".concat(n,"\n \t\t\t\t")}})},k=wp.components.withFilters("modula.ModulaItemsExtraComponent")((function(t){return null}));function x(){return(x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}wp.i18n.__;var C=wp.element,_=(C.Component,C.Fragment),S=C.useEffect,z=(C.useState,wp.components.withFilters("modula.modulaGallery")((function(t){var e=t.attributes,a=e.images,n=e.jsConfig,l=e.id,o=t.settings,c=(t.galleryId,t.checkHoverEffect),i=t.modulaRun,r=t.modulaSlickRun;S((function(){void 0!==o&&c(o.effect),"slider"!==o.type?i(n):r()}),[]);var d="modula modula-gallery ",u="modula-items";return"creative-gallery"==o.type?d+="modula-creative-gallery":"custom-grid"==o.type?d+="modula-custom-grid":"slider"==o.type?d="modula-slider":(d+="modula-columns",u+=" grid-gallery","automatic"==o.grid_type&&(u+=" justified-gallery")),[React.createElement(_,null,React.createElement(R,{id:l,settings:o}),React.createElement("div",{id:"jtg-".concat(l),className:"".concat(d," ").concat(null!=t.attributes.modulaDivClassName?t.attributes.modulaDivClassName:""),"data-config":JSON.stringify(n)},"grid"==o.type&&"automatic"!=o.grid_type&&React.createElement("div",{class:"modula-grid-sizer"}," "),React.createElement(k,x({},t,{position:"top"})),React.createElement("div",{className:u},a.length>0&&React.createElement(_,null,React.createElement(_,null,a.map((function(e,a){return[React.createElement(E,x({},t,{img:e,index:a}))]}))))),React.createElement(k,x({},t,{position:"bottom"}))))]})));function N(){return(N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,l,o=[],c=!0,i=!1;try{for(a=a.call(t);!(c=(n=a.next()).done)&&(o.push(n.value),!e||o.length!==e);c=!0);}catch(t){i=!0,l=t}finally{try{c||null==a.return||a.return()}finally{if(i)throw l}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return M(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var I=wp.i18n.__,F=wp.element,O=(F.Component,F.Fragment),B=F.useEffect,q=F.useState,Q=wp.data.withSelect,V=wp.components,L=(V.SelectControl,V.Button),P=V.Spinner,A=V.Toolbar,G=V.IconButton,U=wp.editor.BlockControls,H=(0,wp.compose.compose)(Q((function(t,e){return{galleries:(0,t("core").getEntityRecords)("postType","modula-gallery",{post_status:"publish",per_page:1})||[]}})),wp.components.withFilters("modula.ModulaEdit"))((function(t){var e=t.attributes,a=t.galleries,n=t.setAttributes,l=e.id,o=e.images,i=e.status,r=e.settings,d=e.jsConfig,u=e.galleryId,s=(e.currentGallery,e.currentSelectize),m=T(q(t.attributes.align),2),g=(m[0],m[1],T(q(l),2)),p=g[0];g[1];B((function(){0!==l&&v(l)}),[]),B((function(){jQuery(document).on("modula_api_after_init",(function(e,a){t.setAttributes({instance:a})})),null!=t.attributes.instance&&null!=r&&"grid"==r.type&&t.attributes.instance.reset(t.attributes.instance)}));var v=function(t){isNaN(t)||""==t||(t=parseInt(t),wp.apiFetch({path:"wp/v2/modula-gallery/".concat(t)}).then((function(e){n({currentGallery:e}),n({currentSelectize:[{value:t,label:""===e.title.rendered?"Unnamed":e.title.rendered}]}),jQuery.ajax({type:"POST",data:{action:"modula_get_gallery_meta",id:t,nonce:modulaVars.nonce},url:modulaVars.ajaxURL,success:function(e){return y(t,e)}})})))},y=function(t,e){!1!==e.success?(p==t&&null!=r||b(t),n({id:t,images:e,status:"ready"})):n({id:t,status:"ready"})},b=function(t){fetch("".concat(modulaVars.restURL,"wp/v2/modula-gallery/").concat(t)).then((function(t){return t.json()})).then((function(t){var e=t;n({status:"loading"}),jQuery.ajax({type:"POST",data:{action:"modula_get_jsconfig",nonce:modulaVars.nonce,settings:e.modulaSettings},url:modulaVars.ajaxURL,success:function(t){var a=Math.floor(999*Math.random());n({galleryId:a,settings:e.modulaSettings,jsConfig:t,status:"ready"})}})}))},w=React.createElement(U,null,o&&o.length>0&&React.createElement(A,null,React.createElement(G,{label:I("Edit gallery","modula-best-grid-gallery"),icon:"edit",href:modulaVars.adminURL+"post.php?post="+l+"&action=edit",target:"_blank"})));return 0==l&&"none"===e.galleryType?[React.createElement(O,null,React.createElement("div",{className:"modula-block-preview"},React.createElement("div",{className:"modula-block-preview__content"},React.createElement("div",{className:"modula-block-preview__logo"}),React.createElement("div",{className:"modula-button-group"},0==a.length&&React.createElement("p",null," ",I("Sorry no galleries found","modula-best-grid-gallery")," "),a.length>0&&React.createElement(L,{className:"modula-button",target:"_blank",onClick:function(t){n({status:"ready",id:0,galleryType:"gallery"})}},I("Display An Existing Gallery","modula-best-grid-gallery"),h.chevronRightFancy),null==t.attributes.proInstalled&&a.length>0&&React.createElement(L,{href:"https://chl.so/get-lite",className:"modula-button-upsell",isSecondary:!0,target:"_blank"},I("Upgrade to PRO to create galleries using a preset ( fastest way )","modula-best-grid-gallery"))))))]:"loading"===i?[React.createElement(O,null,React.createElement("div",{className:"modula-block-preview"},React.createElement("div",{className:"modula-block-preview__content"},React.createElement("div",{className:"modula-block-preview__logo"}),React.createElement(P,null))))]:0==l||0===o.length?[React.createElement(O,null,React.createElement(f,N({onIdChange:function(t){return v(t)},selectOptions:function(){var t=[{value:0,label:I("select a gallery","modula-best-grid-gallery")}];return a.forEach((function(e){var a=e.title,n=e.id;0==a.rendered.length?t.push({value:n,label:I("Unnamed Gallery","modula-best-grid-gallery")+n}):t.push({value:n,label:a.rendered})})),t}},t)),React.createElement("div",{className:"modula-block-preview"},React.createElement("div",{className:"modula-block-preview__content"},React.createElement("div",{className:"modula-block-preview__logo"}),a.length>0&&React.createElement(O,null,React.createElement(c,{id:l,key:l,value:l,options:s,onIdChange:v}),0!=l&&React.createElement(L,{target:"_blank",href:modulaVars.adminURL+"post.php?post="+l+"&action=edit",isPrimary:!0},I("Edit Gallery"))))))]:r?[React.createElement(O,null,w,React.createElement(f,N({onIdChange:function(t){v(t)}},t)),React.createElement(z,N({},t,{settings:r,jsConfig:d,modulaRun:function(t){if(null!=t){n({status:"ready"});var e=jQuery(".modula.modula-gallery");jQuery.each(e,(function(){jQuery(this).attr("id");var t=jQuery(this).data("config");t.lazyLoad=0,jQuery(this).modulaGallery(t)}))}},modulaSlickRun:function(){var t=jQuery(".modula-slider");t.length>0&&void 0!==jQuery.fn.slick&&jQuery.each(t,(function(){jQuery(this).attr("id");var t=jQuery(this).data("config"),e=jQuery(this).find(".modula-slider-nav"),a=jQuery(this).find(".modula-items");if(a.slick(t.slider_settings),e.length){var n=e.data("config"),l=a.slick("slickCurrentSlide");e.on("init",(function(t,a){e.find('.slick-slide[data-slick-index="'+l+'"]').addClass("is-active")})),e.slick(n),a.on("afterChange",(function(t,a,n){e.slick("slickGoTo",n);var l='.slick-slide[data-slick-index="'+n+'"]';e.find(".slick-slide.is-active").removeClass("is-active"),e.find(l).addClass("is-active")})),e.on("click",".slick-slide",(function(t){t.preventDefault();var e=jQuery(this).data("slick-index");a.slick("slickGoTo",e)}))}}))},checkHoverEffect:function(t){jQuery.ajax({type:"POST",data:{action:"modula_check_hover_effect",nonce:modulaVars.nonce,effect:t},url:modulaVars.ajaxURL,success:function(t){n({effectCheck:t})}})},galleryId:u})))]:null}));function D(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var $=wp.i18n.__,W=wp.blocks.registerBlockType;new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.registerBlock()}var e,a,n;return e=t,(a=[{key:"registerBlock",value:function(){this.blockName="modula/gallery",this.blockAttributes={id:{type:"number",default:0},images:{type:"array",default:[]},status:{type:"string",default:"ready"},galleryId:{type:"number",default:0},defaultSettings:{type:"object",default:[]},galleryType:{type:"string",default:"none"},currentGallery:{type:"object",default:{}},currentSelectize:{type:"array",default:[]}},W(this.blockName,{title:modulaVars.gutenbergTitle,icon:h.modula,description:$("Make your galleries stand out.","modula-best-grid-gallery"),keywords:[$("gallery"),$("modula"),$("images")],category:"common",supports:{align:!0,customClassName:!1},attributes:this.blockAttributes,edit:H,save:function(){return null}})}}])&&D(e.prototype,a),n&&D(e,n),t}())}]);
|
1 |
+
!function(t){var e={};function a(n){if(e[n])return e[n].exports;var l=e[n]={i:n,l:!1,exports:{}};return t[n].call(l.exports,l,l.exports,a),l.l=!0,l.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var l in t)a.d(n,l,function(e){return t[e]}.bind(null,l));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=0)}([function(t,e,a){"use strict";a.r(e);var n=wp.element.useEffect,l=function(t){var e=t.onIdChange,a=t.id,l=t.options,c=t.galleries;return n((function(){var t=[];null!=c&&0==t.length&&c.forEach((function(e){t.push({value:e.id,label:e.title.rendered})})),jQuery(".modula-gallery-input").selectize({valueField:"value",labelField:"label",searchField:["label","value"],create:!1,maxItems:1,placeholder:"Search for a gallery...",preload:!0,allowEmptyOptions:!0,closeAfterSelect:!0,options:l.concat(t),render:{option:function(t,e){return'<div><span class="title">'+e(t.label)+'<span class="name">( #'+e(t.value)+" )</span></div>"}},load:function(t,e){if(!t.length)return e();jQuery.ajax({url:modulaVars.ajaxURL,type:"GET",data:{action:"modula_get_gallery",nonce:modulaVars.nonce,term:t},success:function(t){e(t)}})},onChange:function(t){e(t)}})}),[]),React.createElement("input",{className:"modula-gallery-input",value:"0"==a?"":a})},c=wp.i18n.__,o=wp.element.Fragment,i=wp.blockEditor.InspectorControls,r=wp.components,d=r.Button,u=r.PanelBody,s=wp.components.withFilters("modula.ModulaInspector")((function(t){var e=t.attributes,a=t.galleries,n=t.onIdChange,r=e.id,s=e.currentSelectize;return React.createElement(o,null,React.createElement(i,null,React.createElement(u,{title:c("Gallery Settings","modula-best-grid-gallery"),initialOpen:!0},a.length>0&&React.createElement(o,null,React.createElement(l,{id:r,key:r,value:r,options:s,onIdChange:n,galleries:a}),0!=r&&React.createElement(d,{target:"_blank",href:modulaVars.adminURL+"post.php?post="+r+"&action=edit",isSecondary:!0},c("Edit gallery"))))))})),m={};m.modula=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"364 242.9 312.2 357"},React.createElement("g",null,React.createElement("path",{d:"M528.1,242.9c8.5,16.9,17,33.8,25.6,50.6c13.4,26.4,26.9,52.7,39.9,79.7c-41.8-23.3-83.6-46.7-125.4-70.1 c0.3-1.9,1.7-2.6,2.7-3.5c17.7-17.7,35.4-35.4,53.1-53c1.1-1.1,2.6-2,3.1-3.7C527.4,242.9,527.8,242.9,528.1,242.9z"}),React.createElement("path",{d:"M602.3,463.3c11.3-6.9,22.6-13.9,33.9-20.8c5.5-3.4,11.1-6.7,16.5-10.3c2.2-1.4,2.9-1.1,3.5,1.5 c6.4,25.3,13,50.6,19.6,75.8c0.6,2.2,1,3.7-2.4,3.5c-46.7-2.1-93.5-4.1-140.2-6.1c-0.2,0-0.3-0.1-0.5-0.2c0.5-1.7,2.1-2,3.3-2.7 c20-12.3,39.9-24.7,60-36.8c3.4-2.1,5.1-3.7,4.8-8.5c-1.4-21.3-1.8-42.6-2.6-63.9c-0.9-24.1-1.8-48.3-2.8-72.4 c-0.2-6.1-0.2-6.1,5.5-4.6c23.8,6.2,47.6,12.5,71.5,18.5c3.9,1,4.2,1.9,2.1,5.4c-23.4,38.5-46.7,77.1-70,115.7c-1,1.7-2,3.4-3,5.1 C601.7,462.8,602,463,602.3,463.3z"}),React.createElement("path",{d:"M372.8,326.9c48,2.6,95.8,5.1,143.9,7.7c-0.9,2-2.5,2.3-3.7,3.1c-38.6,23.2-77.3,46.4-115.9,69.6c-3,1.8-4.3,2.6-5.4-1.9 c-5.9-24.9-12.2-49.7-18.3-74.6C373.1,329.6,373,328.4,372.8,326.9z"}),React.createElement("path",{d:"M517.6,599.9c-23.2-43.7-45.9-86.6-69.2-130.5c2.3,1.2,3.5,1.8,4.7,2.4c39.8,21.5,79.5,43.1,119.3,64.5 c3.2,1.7,4.1,2.5,1,5.6c-17.7,17.8-35.2,35.9-52.8,53.9C519.7,596.9,518.9,598.2,517.6,599.9z"}),React.createElement("path",{d:"M364.9,505.1c26.6-40.5,53.1-80.8,79.7-121.3c1.3,1.3,0.9,2.5,0.9,3.6c0,46-0.1,92-0.1,137.9c0,3.1-0.2,4.5-4,3.3 c-24.9-7.7-49.9-15.2-74.9-22.8C366,505.8,365.7,505.5,364.9,505.1z"}))),m.remove=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M13 11.9l3.3-3.4-1.1-1-3.2 3.3-3.2-3.3-1.1 1 3.3 3.4-3.5 3.6 1 1L12 13l3.5 3.5 1-1z"})),m.replace=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),m.chevronLeft=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),m.chevronRight=React.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),m.twitter=React.createElement("svg",{"aria-hidden":"true","data-prefix":"fab","data-icon":"twitter",class:"svg-inline--fa fa-twitter fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})),m.facebook=React.createElement("svg",{"aria-hidden":"true","data-prefix":"fab","data-icon":"facebook-f",class:"svg-inline--fa fa-facebook-f fa-w-9",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 264 512"},React.createElement("path",{fill:"currentColor",d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"})),m.whatsapp=React.createElement("svg",{"aria-hidden":"true",focusable:"false",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 1536 1600"},React.createElement("path",{d:"M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z",fill:"currentColor"})),m.pinterest=React.createElement("svg",{"aria-hidden":"true","data-prefix":"fab","data-icon":"pinterest-p",class:"svg-inline--fa fa-pinterest-p fa-w-12",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},React.createElement("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"})),m.linkedin=React.createElement("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"linkedin-in",class:"svg-inline--fa fa-linkedin-in fa-w-14",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},React.createElement("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"})),m.email=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("path",{d:"M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z",fill:"currentColor"})),m.chevronRightFancy=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-chevron-right",viewBox:"0 0 16 16"},React.createElement("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}));var g=m,f=wp.element.Fragment,p=function(t){var e=t.settings,a=t.img,n=t.hideTitle,l=t.hideDescription,c=t.hideSocial;return[React.createElement(f,null,["tilt_1","tilt_3","tilt_7"].includes(e.effect)&&React.createElement("div",{class:"tilter__deco tilter__deco--shine"},React.createElement("div",null)),["tilt_3","tilt_7"].includes(e.effect)&&React.createElement("div",{class:"tilter__deco tilter__deco--overlay"}),["tilt_1","tilt_7"].includes(e.effect)&&React.createElement("div",{class:"tilter__deco tilter__deco--lines"}),React.createElement("div",{className:"figc"},React.createElement("div",{className:"figc-inner"},"0"==e.hide_title&&!n&&React.createElement("div",{className:"jtg-title"}," ",a.title," "),React.createElement("div",{className:["lily","sadie","ruby","bubba","dexter","chico","ming"].includes(e.effect)?"jtg-body":""},"0"==e.hide_description&&!l&&React.createElement("p",{className:"description"}," ",0!=a.description.length&&a.description," "),!c&&"1"==e.enableSocial&&React.createElement("div",{className:"jtg-social"},"1"==e.enableTwitter&&React.createElement("a",{className:"modula-icon-twitter",href:"#"}," ","$",g.twitter," "),"1"==e.enableFacebook&&React.createElement("a",{className:"modula-icon-facebook",href:"#"}," ","$",g.facebook," "),"1"==e.enableWhatsapp&&React.createElement("a",{className:"modula-icon-whatsapp",href:"#"}," ","$",g.whatsapp," "),"1"==e.enableLinkedin&&React.createElement("a",{className:"modula-icon-linkedin",href:"#"}," ","$",g.linkedin," "),"1"==e.enablePinterest&&React.createElement("a",{className:"modula-icon-pinterest",href:"#"}," ","$",g.pinterest," "),"1"==e.enableEmail&&React.createElement("a",{className:"modula-icon-email",href:"#"}," ","$",g.email," "))))))]},h=wp.components.withFilters("modula.ModulaGalleryImage")((function(t){var e=t.attributes,a=e.settings,n=e.effectCheck,l=t.img,c=t.index;return[React.createElement("div",{className:"modula-item effect-".concat(a.effect),"data-width":l["data-width"]?l["data-width"]:"2","data-height":l["data-height"]?l["data-height"]:"2"},React.createElement("div",{className:"modula-item-overlay"}),React.createElement("div",{className:"modula-item-content"},React.createElement("img",{className:"modula-image pic","data-id":l.id,"data-full":l.src,"data-src":l.src,"data-valign":"middle","data-halign":"center",src:l.src}),"slider"!==a.type&&React.createElement(p,{settings:a,img:l,index:c,hideTitle:null==n||1!=n.title,hideDescription:null==n||1!=n.description,hideSocial:null==n||1!=n.social,effectCheck:n})))]})),v=function(t){var e=t.id,a=t.settings,n="";"grid"==a.type&&"automatic"!=a.grid_type&&(n+="#jtg-".concat(e,".modula-gallery .modula-item, .modula-gallery .modula-grid-sizer { width: calc(").concat(100/a.grid_type,"% - ").concat(a.gutter-a.gutter/a.grid_type,"px) !important}")),"0"!=a.borderSize&&(n+="#jtg-".concat(e," .modula-item {\n\t\t\tborder: ").concat(a.borderSize,"px solid ").concat(a.borderColor,";\n\t\t}")),"0"!=a.borderRadius&&(n+="#jtg-".concat(e," .modula-item {\n\t\t\tborder-radius: ").concat(a.borderRadius,"px;\n\t\t}")),"0"!=a.shadowSize&&(n+="#jtg-".concat(e," .modula-item {\n\t\t\tbox-shadow: ").concat(a.shadowColor," 0px 0px ").concat(a.shadowSize,"px;\n\t\t}")),"#ffffff"!=a.socialIconColor&&(n+="#jtg-".concat(e," .modula-item .jtg-social a {\n\t\t\tcolor: ").concat(a.socialIconColor,";\n\t\t}")),"16"!=a.socialIconSize&&(n+="#jtg-".concat(e," .modula-item .jtg-social svg {\n\t\t\theight: ").concat(a.socialIconSize,"px;\n\t\t\twidth: ").concat(a.socialIconSize,"px;\n\t\t}")),"10"!=a.socialIconPadding&&(n+="#jtg-".concat(e," .modula-item .jtg-social a:not(:last-child) {\n\t\t\tmargin-right: ").concat(a.socialIconPadding,"px;\n\t\t}")),n+="#jtg-".concat(e," .modula-item .caption {\n\t\tbackground-color: ").concat(a.captionColor,";\n\t}"),""!=a.captionColor&&(n+="#jtg-".concat(e," .modula-item .figc {\n\t\t\tcolor: ").concat(a.captionColor,";\n\t\t}")),""!=a.titleFontSize&&"0"!=a.titleFontSize&&(n+="#jtg-".concat(e," .modula-item .figc .jtg-title {\n\t\t\tfont-size: ").concat(a.titleFontSize,"px;\n\t\t}")),""!=a.captionFontSize&&"0"!=a.captionFontSize&&(n+="#jtg-".concat(e," .modula-item .figc p.description {\n\t\t\tfont-size: ").concat(a.captionFontSize,"px;\n\t\t}")),n+="#jtg-".concat(e," .modula-items .figc p.description {\n\t\t\tcolor: ").concat(a.captionColor,";\n\t}"),""!=a.titleColor?n+="#jtg-".concat(e," .modula-items .figc .jtg-title {\n\t\t\tcolor: ").concat(a.titleColor,";\n\t\t}"):n+="#jtg-".concat(e," .modula-items .figc .jtg-title {\n\t\t\tcolor: ").concat(a.captionColor,";\n\t\t}"),n+="#jtg-".concat(e,".modula-gallery .modula-item > a, #jtg-").concat(e,".modula-gallery .modula-item, #jtg-").concat(e,".modula-gallery .modula-item-content > a {\n\t\tcursor: ").concat(a.cursor,";\n\t}"),"custom-grid"==a.type&&"slider"==a.type||(n+="#jtg-".concat(e," {\n\t\twidth: ").concat(a.width,";\n\t\tmargin : 0 auto;\n\t\t}"),0==t.imagesCount?n+="#jtg-".concat(e," .modula-items {\n\t\t\t\theight: 100px;\n\t\t\t}"):"grid"!=a.type&&"slider"!=a.type?n+="#jtg-".concat(e," .modula-items {\n\t\t\t\theight: ").concat(a.height,"px;\n\t\t\t}"):"slider"==a.type&&(n+="#jtg-".concat(e," .modula-items {\n\t\t\t\theight: auto;\n\t\t\t}"))),null!=a.style&&0!=a.style.length&&(n+="".concat(a.style));var l="";return""!=a.mobileTitleFontSize&&0!=a.mobileTitleFontSize&&(l+="#jtg-".concat(e," .modula-item .figc .jtg-title {\n\t\t\tfont-size: ").concat(a.mobileTitleFontSize,"px\n\t\t}")),l+="#jtg-".concat(e," .modula-items .figc p.description {\n\t\tcolor: ").concat(a.captionColor,";\n\t\tfont-size: ").concat(a.mobileCaptionFontSize,"px;\n\t}"),n+="@media screen and (max-width:480px){\n\t\t".concat(l,"\n\t\t}"),"none"==a.effect&&(n+="#jtg-".concat(e," .modula-items .modula-item:hover img {\n\t\t\topacity: 1;\n\t\t}")),n+="#jtg-".concat(e,".modula .modula-items .modula-item .modula-item-overlay, #jtg-").concat(e,".modula .modula-items .modula-item.effect-layla, #jtg-").concat(e,".modula .modula-items .modula-item.effect-ruby, #jtg-").concat(e,".modula .modula-items .modula-item.effect-bubba, #jtg-").concat(e,".modula .modula-items .modula-item.effect-sarah, #jtg-").concat(e,".modula .modula-items .modula-item.effect-milo, #jtg-").concat(e,".modula .modula-items .modula-item.effect-julia, #jtg-").concat(e,".modula .modula-items .modula-item.effect-hera, #jtg-").concat(e,".modula .modula-items .modula-item.effect-winston, #jtg-").concat(e,".modula .modula-items .modula-item.effect-selena, #jtg-").concat(e,".modula .modula-items .modula-item.effect-terry, #jtg-").concat(e,".modula .modula-items .modula-item.effect-phoebe, #jtg-").concat(e,".modula .modula-items} .modula-item.effect-apollo, #jtg-").concat(e,".modula .modula-items .modula-item.effect-steve, #jtg-").concat(e,".modula .modula-items .modula-item.effect-ming{ \n\t\tbackground-color: ").concat(a.hoverColor,";\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-oscar {\n\t\tbackground: -webkit-linear-gradient(45deg, ").concat(a.hoverColor," 0, #9b4a1b 40%, ").concat(a.hoverColor," 100%);\n\t\tbackground: linear-gradient(45deg, ").concat(a.hoverColor," 0, #9b4a1b 40%, ").concat(a.hoverColor," 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-roxy {\n\t\tbackground: -webkit-linear-gradient(45deg, ").concat(a.hoverColor," 0, #05abe0 100%);\n\t\tbackground: linear-gradient(45deg, ").concat(a.hoverColor," 0, #05abe0 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-dexter {\n\t\tbackground: -webkit-linear-gradient(top, ").concat(a.hoverColor," 0, rgba(104,60,19,1) 100%);\n\t\tbackground: linear-gradient(top, ").concat(a.hoverColor," 0, rgba(104,60,19,1) 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-jazz {\n\t\tbackground: -webkit-linear-gradient(-45deg, ").concat(a.hoverColor," 0, #f33f58 100%);\n\t\tbackground: linear-gradient(-45deg, ").concat(a.hoverColor," 0, #f33f58 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-lexi {\n\t\tbackground: -webkit-linear-gradient(-45deg, ").concat(a.hoverColor," 0, #fff 100%);\n\t\tbackground: linear-gradient(-45deg, ").concat(a.hoverColor," 0, #fff 100%);\n\t}"),n+="#jtg-".concat(e,".modula .modula-items .modula-item.effect-duke {\n\t\tbackground: -webkit-linear-gradient(-45deg, ").concat(a.hoverColor," 0, #cc6055 100%);\n\t\tbackground: linear-gradient(-45deg, ").concat(a.hoverColor," 0, #cc6055 100%);\n\t}"),a.hoverOpacity<=100&&"none"!=a.effect&&(n+="#jtg-".concat(e,".modula .modula-items .modula-item:hover img {\n\t\t\topacity: ").concat(1-a.hoverOpacity/100," ;\n\t\t}")),"default"!=a.titleFontWeight&&(n+="#jtg-".concat(e,".modula .modula-items .modula-item .jtg-title {\n\t\t\tfont-weight : ").concat(a.titleFontWeight,";\n\t\t}")),"default"!=a.captionFontWeight&&(n+="#jtg-".concat(e,".modula .modula-items .modula-item p.description {\n\t\t\tfont-weight : ").concat(a.captionFontWeight,";\n\t\t}")),n+="#jtg-".concat(e,".modula-gallery .modula-item.effect-terry .jtg-social a:not(:last-child) {\n\t\tmargin-bottom: ").concat(a.socialIconPadding,"px;\n\t}"),"slider"==a.type&&("true"==jQuery("[aria-label=Settings]").attr("aria-expanded")?n+="#jtg-".concat(e," {\n\t\t\t\t\twidth: 800px;\n\t\t\t\t\t}"):n+="#jtg-".concat(e," {\n\t\t\twidth: 1100px;\n\t\t\t}"),n+="#jtg-".concat(e," .modula-items {\n\t\theight: auto;\n\t\t}"),n+="#jtg-".concat(e," .modula-item {\n\t\tbackground-color: transparent;\n\t\ttransform: none;\n\t\t}")),null!=a.filters&&a.filters.length>1&&(n+="#jtg-".concat(e,".modula-gallery .filters {\n\t\t\ttext-align: ").concat(a.filterTextAlignment,";\n\t\t}")),React.createElement("style",{dangerouslySetInnerHTML:{__html:"\n \t\t\t\t".concat(n,"\n \t\t\t\t")}})},y=wp.components.withFilters("modula.ModulaItemsExtraComponent")((function(t){return null}));function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}var w=wp.element,j=w.Fragment,E=w.useEffect,R=wp.components.withFilters("modula.modulaGallery")((function(t){var e=t.attributes,a=e.images,n=e.jsConfig,l=e.id,c=t.settings,o=t.checkHoverEffect,i=t.modulaRun,r=t.modulaSlickRun;E((function(){void 0!==c&&o(c.effect),"slider"!==c.type?i(n):r(l)}),[]);var d="modula modula-gallery ",u="modula-items";return"creative-gallery"==c.type?d+="modula-creative-gallery":"custom-grid"==c.type?d+="modula-custom-grid":"slider"==c.type?d="modula-slider":(d+="modula-columns",u+=" grid-gallery","automatic"==c.grid_type&&(u+=" justified-gallery")),[React.createElement(j,null,React.createElement(v,{id:l,settings:c}),React.createElement("div",{id:"jtg-".concat(l),className:"".concat(d," ").concat(null!=t.attributes.modulaDivClassName?t.attributes.modulaDivClassName:""),"data-config":JSON.stringify(n)},"grid"==c.type&&"automatic"!=c.grid_type&&React.createElement("div",{class:"modula-grid-sizer"}," "),React.createElement(y,b({},t,{position:"top"})),React.createElement("div",{className:u},a.length>0&&React.createElement(j,null,React.createElement(j,null,a.map((function(e,a){return[React.createElement(h,b({},t,{img:e,index:a}))]}))))),React.createElement(y,b({},t,{position:"bottom"}))))]}));function k(){return(k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var n,l,c=[],o=!0,i=!1;try{for(a=a.call(t);!(o=(n=a.next()).done)&&(c.push(n.value),!e||c.length!==e);o=!0);}catch(t){i=!0,l=t}finally{try{o||null==a.return||a.return()}finally{if(i)throw l}}return c}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var _=wp.i18n.__,z=wp.element,S=z.Fragment,N=z.useEffect,T=z.useState,M=wp.data.withSelect,F=wp.components,I=F.Button,O=F.Spinner,q=F.ToolbarGroup,V=F.ToolbarItem,B=wp.blockEditor.BlockControls,L=(0,wp.compose.compose)(M((function(t,e){return{galleries:(0,t("core").getEntityRecords)("postType","modula-gallery",{post_status:"publish",per_page:5})||[]}})),wp.components.withFilters("modula.ModulaEdit"))((function(t){var e=t.attributes,a=t.galleries,n=t.setAttributes,c=e.id,o=e.images,i=e.status,r=e.settings,d=e.jsConfig,u=e.galleryId,m=(e.currentGallery,e.currentSelectize),f=x(T(t.attributes.align),2),p=(f[0],f[1],x(T(c),2)),h=p[0];p[1];N((function(){0!==c&&v(c)}),[]),N((function(){jQuery(document).on("modula_api_after_init",(function(e,a){t.setAttributes({instance:a})})),null!=t.attributes.instance&&null!=r&&"grid"==r.type&&t.attributes.instance.reset(t.attributes.instance)}));var v=function(t){isNaN(t)||""==t||(t=parseInt(t),wp.apiFetch({path:"wp/v2/modula-gallery/".concat(t)}).then((function(e){n({currentGallery:e}),n({currentSelectize:[{value:t,label:""===e.title.rendered?"Unnamed":e.title.rendered}]}),jQuery.ajax({type:"POST",data:{action:"modula_get_gallery_meta",id:t,nonce:modulaVars.nonce},url:modulaVars.ajaxURL,success:function(e){return y(t,e)}})})))},y=function(t,e){!1!==e.success?(h==t&&null!=r||b(t),n({id:t,images:e,status:"ready"})):n({id:t,status:"ready"})},b=function(t){fetch("".concat(modulaVars.restURL,"wp/v2/modula-gallery/").concat(t)).then((function(t){return t.json()})).then((function(t){var e=t;n({status:"loading"}),jQuery.ajax({type:"POST",data:{action:"modula_get_jsconfig",nonce:modulaVars.nonce,settings:e.modulaSettings},url:modulaVars.ajaxURL,success:function(t){var a=Math.floor(999*Math.random());n({galleryId:a,settings:e.modulaSettings,jsConfig:t,status:"ready"})}})}))},w=React.createElement(B,null,o&&o.length>0&&React.createElement(q,null,React.createElement(V,null,React.createElement(I,{label:_("Edit gallery","modula-best-grid-gallery"),icon:"edit",href:modulaVars.adminURL+"post.php?post="+c+"&action=edit",target:"_blank"}))));return 0==c&&"none"===e.galleryType?[React.createElement(S,null,React.createElement("div",{className:"modula-block-preview"},React.createElement("div",{className:"modula-block-preview__content"},React.createElement("div",{className:"modula-block-preview__logo"}),React.createElement("div",{className:"modula-button-group"},0==a.length&&React.createElement("p",null," ",_("Sorry no galleries found","modula-best-grid-gallery")," "),a.length>0&&React.createElement(I,{className:"modula-button",target:"_blank",onClick:function(t){n({status:"ready",id:0,galleryType:"gallery"})}},_("Display An Existing Gallery","modula-best-grid-gallery"),g.chevronRightFancy),null==t.attributes.proInstalled&&a.length>0&&React.createElement(I,{href:"https://wp-modula.com/pricing/?utm_source=modula-lite&utm_campaign=upsell",className:"modula-button-upsell",isSecondary:!0,target:"_blank"},_("Upgrade to PRO to create galleries using a preset ( fastest way )","modula-best-grid-gallery"))))))]:"loading"===i?[React.createElement(S,null,React.createElement("div",{className:"modula-block-preview"},React.createElement("div",{className:"modula-block-preview__content"},React.createElement("div",{className:"modula-block-preview__logo"}),React.createElement(O,null))))]:0==c||0===o.length?[React.createElement(S,null,React.createElement(s,k({onIdChange:function(t){return v(t)},selectOptions:function(){var t=[{value:0,label:_("select a gallery","modula-best-grid-gallery")}];return a.forEach((function(e){var a=e.title,n=e.id;0==a.rendered.length?t.push({value:n,label:_("Unnamed Gallery","modula-best-grid-gallery")+n}):t.push({value:n,label:a.rendered})})),t}},t)),React.createElement("div",{className:"modula-block-preview"},React.createElement("div",{className:"modula-block-preview__content"},React.createElement("div",{className:"modula-block-preview__logo"}),a.length>0&&React.createElement(S,null,React.createElement(l,{id:c,key:c,value:c,options:m,onIdChange:v,galleries:a}),0!=c&&React.createElement(I,{target:"_blank",href:modulaVars.adminURL+"post.php?post="+c+"&action=edit",isPrimary:!0},_("Edit Gallery"))))))]:r?[React.createElement(S,null,w,React.createElement(s,k({onIdChange:function(t){v(t)}},t)),React.createElement(R,k({},t,{settings:r,jsConfig:d,modulaRun:function(t){if(null!=t){n({status:"ready"});var e=jQuery(".modula.modula-gallery");jQuery.each(e,(function(){jQuery(this).attr("id");var t=jQuery(this).data("config");t.lazyLoad=0,jQuery(this).modulaGallery(t)}))}},modulaSlickRun:function(t){if(t="jtg-".concat(t),n({status:"ready"}),jQuery(".modula-slider").length>0&&void 0!==jQuery.fn.slick){var e=jQuery("#".concat(t)).data("config"),a=jQuery("#".concat(t)).find(".modula-slider-nav"),l=jQuery("#".concat(t)).find(".modula-items");if(l.slick(e.slider_settings),a.length){var c=a.data("config"),o=l.slick("slickCurrentSlide");a.on("init",(function(t,e){a.find('.slick-slide[data-slick-index="'+o+'"]').addClass("is-active")})),a.slick(c),l.on("afterChange",(function(t,e,n){a.slick("slickGoTo",n);var l='.slick-slide[data-slick-index="'+n+'"]';a.find(".slick-slide.is-active").removeClass("is-active"),a.find(l).addClass("is-active")})),a.on("click",".slick-slide",(function(t){t.preventDefault();var e=jQuery(this).data("slick-index");l.slick("slickGoTo",e)}))}}},checkHoverEffect:function(t){jQuery.ajax({type:"POST",data:{action:"modula_check_hover_effect",nonce:modulaVars.nonce,effect:t},url:modulaVars.ajaxURL,success:function(t){n({effectCheck:t})}})},galleryId:u})))]:null}));function Q(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var P=wp.i18n.__,A=wp.blocks.registerBlockType;new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.registerBlock()}var e,a,n;return e=t,(a=[{key:"registerBlock",value:function(){this.blockName="modula/gallery",this.blockAttributes={id:{type:"number",default:0},images:{type:"array",default:[]},status:{type:"string",default:"ready"},galleryId:{type:"number",default:0},defaultSettings:{type:"object",default:[]},galleryType:{type:"string",default:"none"},currentGallery:{type:"object",default:{}},currentSelectize:{type:"array",default:[]}},A(this.blockName,{title:modulaVars.gutenbergTitle,icon:g.modula,description:P("Make your galleries stand out.","modula-best-grid-gallery"),keywords:[P("gallery"),P("modula"),P("images")],category:"common",supports:{align:!0,customClassName:!1},attributes:this.blockAttributes,edit:L,save:function(){return null}})}}])&&Q(e.prototype,a),n&&Q(e,n),t}())}]);
|
assets/js/admin/wp-modula-settings.js
CHANGED
@@ -171,31 +171,38 @@ wp.Modula = 'undefined' === typeof( wp.Modula ) ? {} : wp.Modula;
|
|
171 |
},
|
172 |
|
173 |
initCustomCSS: function() {
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
});
|
192 |
-
}
|
193 |
}
|
194 |
},
|
195 |
expandGalleryContainer: function () {
|
196 |
$( '#modula-preview-gallery' ).removeClass( 'closed' );
|
197 |
}
|
198 |
-
|
199 |
});
|
200 |
|
201 |
modula.settings = {
|
171 |
},
|
172 |
|
173 |
initCustomCSS: function() {
|
174 |
+
|
175 |
+
// If codeEditor is undefined we should not try to recreate the Custom CSS editor
|
176 |
+
// Will be left as a simple textarea
|
177 |
+
if ( undefined !== wp.codeEditor ) {
|
178 |
+
var editorSettings = wp.codeEditor.defaultSettings ? _.clone( wp.codeEditor.defaultSettings ) : {};
|
179 |
+
if ( this.customEditors.length > 0 ) {
|
180 |
+
this.customEditors.each( function( $index, customEditorContainer ) {
|
181 |
+
var syntax = $( customEditorContainer ).data( 'syntax' ),
|
182 |
+
id = '#' + $( customEditorContainer ).find( '.modula-custom-editor-field' ).attr( 'id' ),
|
183 |
+
currentSettings = _.extend(
|
184 |
+
{},
|
185 |
+
editorSettings.codemirror,
|
186 |
+
{
|
187 |
+
mode: syntax,
|
188 |
+
}
|
189 |
+
);
|
190 |
+
|
191 |
+
if( undefined !== wp.codeEditor ) {
|
192 |
+
var editor = wp.codeEditor.initialize( $( id ), currentSettings );
|
193 |
+
$( customEditorContainer ).parents( '.modula-tab-content' ).on( 'modula-current-tab',function(){
|
194 |
+
editor.codemirror.refresh();
|
195 |
+
});
|
196 |
+
}
|
197 |
+
|
198 |
});
|
199 |
+
}
|
200 |
}
|
201 |
},
|
202 |
expandGalleryContainer: function () {
|
203 |
$( '#modula-preview-gallery' ).removeClass( 'closed' );
|
204 |
}
|
205 |
+
|
206 |
});
|
207 |
|
208 |
modula.settings = {
|
assets/js/front/fancybox.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(l,s,f,m){"use strict";var a,i,r,d,e,c,p,u,n,t,o,h,g;function b(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=u(t.data.options,e)),o=e.$target||f(t.currentTarget).trigger("blur"),(a=f.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?f(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):f('[data-fancybox="'+n+'"]'):[o],(s=f(i).index(o))<0&&(s=0),(a=f.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},f&&(f.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},a=f(l),i=f(s),r=0,d=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=s.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==m)return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e){var o=f.extend(!0,{},t,e);return f.each(e,function(t,e){f.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=u({index:o},f.modulaFancybox.defaults),f.isPlainObject(e)&&(n.opts=u(n.opts,e)),f.modulaFancybox.isMobile&&(n.opts=u(n.opts,n.opts.mobile)),n.id=n.opts.id||++r,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},f.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex==parseInt(e.opts.image_id)&&(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&f.modulaFancybox.close(!0),f("body").addClass("modula-fancybox-active"),!f.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!f.modulaFancybox.isMobile&&s.body.scrollHeight>l.innerHeight&&(f("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-s.documentElement.clientWidth)+"px;}</style>"),f("body").addClass("compensate-for-scrollbar")),n="",f.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=f(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===m?t:o[e]})},addContent:function(t){var r=this,t=f.makeArray(t);f.each(t,function(t,e){var o,n,a,i={},s={};f.isPlainObject(e)?s=(i=e).opts||e:"object"===f.type(e)&&f(e).length?(s=(n=f(e)).data()||{},(s=f.extend(!0,{},s,s.options)).$orig=n,i.src=r.opts.src||s.src||n.attr("href"),i.type||i.src||(i.type="inline",i.src=e)):i={type:"html",src:e+""},i.opts=f.extend(!0,{},r.opts,s),f.isArray(s.buttons)&&(i.opts.buttons=s.buttons),f.modulaFancybox.isMobile&&i.opts.mobile&&(i.opts=u(i.opts,i.opts.mobile)),o=i.type||i.opts.type,n=i.src||"",!o&&n&&((s=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="video",i.opts.video.format||(i.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?(o="iframe",i=f.extend(!0,i,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===n.charAt(0)&&(o="inline")),o?i.type=o:r.trigger("objectNeedsType",i),i.contentType||(i.contentType=-1<f.inArray(i.type,["html","inline","ajax"])?"html":i.type),i.index=r.group.length,"auto"==i.opts.smallBtn&&(i.opts.smallBtn=-1<f.inArray(i.type,["html","inline","ajax"])),"auto"===i.opts.toolbar&&(i.opts.toolbar=!i.opts.smallBtn),i.$thumb=i.opts.$thumb||null,i.opts.$trigger&&i.index===r.opts.index&&(i.$thumb=i.opts.$trigger.find("img:first"),i.$thumb.length&&(i.opts.$orig=i.opts.$trigger)),i.$thumb&&i.$thumb.length||!i.opts.$orig||(i.$thumb=i.opts.$orig.find("img:first")),i.$thumb&&!i.$thumb.length&&(i.$thumb=null),i.thumb=i.opts.thumb||(i.$thumb?i.$thumb[0].src:null),"function"===f.type(i.opts.caption)&&(i.opts.caption=i.opts.caption.apply(e,[r,i])),"function"===f.type(r.opts.caption)&&(i.opts.caption=r.opts.caption.apply(e,[r,i])),i.opts.caption instanceof f||(i.opts.caption=i.opts.caption===m?"":i.opts.caption+""),"ajax"===i.type&&1<(a=n.split(/\s+/,2)).length&&(i.src=a.shift(),i.opts.filter=a.shift()),i.opts.modal&&(i.opts=f.extend(!0,i.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(i)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=d(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},f.modulaFancybox.isMobile?600:250))}),i.on("keydown.fb",function(t){var e=(f.modulaFancybox?f.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||f(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,i.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),i.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d=this,u=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun))return t=parseInt(t,10),!(!(o=(d.current||d).opts.loop)&&(t<0||u<=t))&&(e=d.firstRun=!Object.keys(d.slides).length,i=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,a=d.createSlide(t),1<u&&((o||a.index<u-1)&&d.createSlide(t+1),(o||0<a.index)&&d.createSlide(t-1)),d.current=a,d.currIndex=a.index,d.currPos=a.pos,d.trigger("beforeShow",e),d.updateControls(),a.forcedDuration=m,f.isNumeric(n)?a.forcedDuration=n:n=a.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),t=d.isMoved(a),a.$slide.addClass("modula-fancybox-slide--current"),e?(a.opts.animationEffect&&n&&d.$refs.container.css("transition-duration",n+"ms"),d.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),d.loadSlide(a)):(s=f.modulaFancybox.getTranslate(i.$slide),r=f.modulaFancybox.getTranslate(d.$refs.stage),f.each(d.slides,function(t,e){f.modulaFancybox.stop(e.$slide,!0)}),i.pos!==a.pos&&(i.isComplete=!1),i.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),t?(c=s.left-(i.pos*s.width+i.pos*i.opts.gutter),f.each(d.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*s.width+e.pos*e.opts.gutter;f.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-r.left+c}),e.pos!==a.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>a.pos?"next":"previous")),p(e.$slide),f.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-a.pos)*s.width+(e.pos-a.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===d.currPos&&d.complete()})})):n&&a.opts.transitionEffect&&(l="modula-fancybox-animated modula-fancybox-fx-"+a.opts.transitionEffect,i.$slide.addClass("modula-fancybox-slide--"+(i.pos>a.pos?"next":"previous")),f.modulaFancybox.animate(i.$slide,l,n,function(){i.$slide.removeClass(l).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),a.isLoaded?d.revealContent(a):d.loadSlide(a)),void d.preload("image"))},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=f('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=f.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r=this,l=r.current,c=l.$content,d=f.modulaFancybox.getTranslate(l.$slide).width,u=f.modulaFancybox.getTranslate(l.$slide).height,p=l.width,h=l.height;r.isAnimating||r.isMoved()||!c||"image"!=l.type||!l.isLoaded||l.hasError||(r.isAnimating=!0,f.modulaFancybox.stop(c),t=t===m?.5*d:t,e=e===m?.5*u:e,(n=f.modulaFancybox.getTranslate(c)).top-=f.modulaFancybox.getTranslate(l.$slide).top,n.left-=f.modulaFancybox.getTranslate(l.$slide).left,i=p/n.width,s=h/n.height,a=.5*d-.5*p,l=.5*u-.5*h,d<p&&(0<(a=n.left*i-(t*i-t))&&(a=0),a<d-p&&(a=d-p)),u<h&&(0<(l=n.top*s-(e*s-e))&&(l=0),l<u-h&&(l=u-h)),r.updateCursor(p,h),f.modulaFancybox.animate(c,{top:l,left:a,scaleX:i,scaleY:s},o||366,function(){r.isAnimating=!1}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop())},scaleToFit:function(t){var e=this,o=e.current,n=o.$content;e.isAnimating||e.isMoved()||!n||"image"!=o.type||!o.isLoaded||o.hasError||(e.isAnimating=!0,f.modulaFancybox.stop(n),o=e.getFitPos(o),e.updateCursor(o.width,o.height),f.modulaFancybox.animate(n,{top:o.top,left:o.left,scaleX:o.width/n.width(),scaleY:o.height/n.height()},t||366,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,o,n=t.$content,a=t.$slide,i=t.width||t.opts.width,s=t.height||t.opts.height,r={};return!!(t.isLoaded&&n&&n.length)&&(e=f.modulaFancybox.getTranslate(this.$refs.stage).width,o=f.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(n.css("marginLeft"))+parseFloat(n.css("marginRight")),o-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(n.css("marginTop"))+parseFloat(n.css("marginBottom")),i&&s||(i=e,s=o),e-.5<(i*=n=Math.min(1,e/i,o/s))&&(i=e),o-.5<(s*=n)&&(s=o),"image"===t.type?(r.top=Math.floor(.5*(o-s))+parseFloat(a.css("paddingTop")),r.left=Math.floor(.5*(e-i))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(i/(t=t.opts.width&&t.opts.height?i/s:t.opts.ratio||16/9)<s?s=i/t:s*t<i&&(i=s*t)),r.width=i,r.height=s,r)},update:function(o){var n=this;f.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(f.modulaFancybox.stop(n),f.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),f.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===m?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o=t||this.current;return!!o&&(e=f.modulaFancybox.getTranslate(this.$refs.stage),t=f.modulaFancybox.getTranslate(o.$slide),!o.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(t.top-e.top)||.5<Math.abs(t.left-e.left)))},updateCursor:function(t,e){var o=this,n=o.current,a=o.$refs.container;n&&!o.isClosing&&o.Guestures&&(a.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),e=!!(t=o.canPan(t,e))||o.isZoomable(),a.toggleClass("modula-fancybox-is-zoomable",e),f("[data-fancybox-zoom]").prop("disabled",!e),t?a.addClass("modula-fancybox-can-pan"):e&&("zoom"===n.opts.clickContent||f.isFunction(n.opts.clickContent)&&"zoom"==n.opts.clickContent(n))?a.addClass("modula-fancybox-can-zoomIn"):n.opts.touch&&(n.opts.touch.vertical||1<o.group.length)&&"video"!==n.contentType&&a.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==m&&e!==m?o=t<n.width&&e<n.height:a&&(o=(o=f.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==m&&e!==m?n={width:t,height:e}:o.isComplete&&(n=f.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":f(o.src).length?a.setContent(o,f(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=f.ajax(f.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=f('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=s.createElement("img")).onerror=function(){f(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=f(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=s.createElement("img"),n=f(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$thumb&&n.attr("title",e.$thumb.find("img.pic").attr("title")),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=f('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=f(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===m&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===m&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{f(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}f(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&f.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof f&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=f("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&(e=f("<div>").append(f.trim(e)).contents()),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){f(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),f(e).appendTo(t.$slide),f(e).is("video,audio")&&(f(e).addClass("modula-fancybox-video"),f(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||f(e).attr("width"),t.opts.height=t.opts.height||f(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=f(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e=this,o=t||e.current,n=o.opts.caption,a=o.opts.preventCaptionOverlap,i=e.$refs.caption,t=!1;i.toggleClass("modula-fancybox-caption--separate",a),a&&n&&n.length&&(o.pos!==e.currPos?((i=i.clone().appendTo(i.parent())).children().eq(0).empty().html(n),t=i.outerHeight(!0),i.empty().remove()):e.$caption&&(t=e.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",t||""))},adjustLayout:function(t){var e,o,n,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(o=a.$slide[0].style["padding-bottom"],n=a.$slide.css("padding-bottom"),0<parseFloat(n)&&(t=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(t-a.$slide[0].scrollHeight)<1&&(e=n),a.$slide.css("padding-bottom",o))),a.$content.css("margin-bottom",e))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===m?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),f.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),p(t.$content),void f.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(f.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),p(s),"image"!==t.type&&t.$content.hide().show(0),void f.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i=t.$thumb;return!!(i&&(a=(n=i).find("a.tile-inner")[0])&&a.ownerDocument===s&&(f(".modula-fancybox-container").css("pointer-events","none"),n={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2},a=s.elementFromPoint(n.x,n.y)===a,f(".modula-fancybox-container").css("pointer-events",""),a))&&(o=f.modulaFancybox.getTranslate(i),t=parseFloat(i.css("border-top-width")||0),n=parseFloat(i.css("border-right-width")||0),a=parseFloat(i.css("border-bottom-width")||0),i=parseFloat(i.css("border-left-width")||0),e={top:o.top+t,left:o.left+i,width:o.width-n-i,height:o.height-t-a,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),p(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),f.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(f.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o=this,n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");o.isClosing||((e=(e=!t&&o.current&&o.current.isComplete?o.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):o.$refs.container.find("*:visible")).filter(n).filter(function(){return"hidden"!==f(this).css("visibility")&&!f(this).hasClass("disabled")})).length?(n=e.index(s.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),e.eq(e.length-1).trigger("focus")):(n<0||n==e.length-1)&&(t&&t.preventDefault(),e.eq(0).trigger("focus"))):o.$refs.container.trigger("focus"))},activate:function(){var e=this;f(".modula-fancybox-container").each(function(){var t=f(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){l.cleanUp(t)}var n,a,i,s,r,l=this,c=l.current;return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,d(function(){l.update()}),!1):(l.removeEvents(),i=c.$content,n=c.opts.animationEffect,a=f.isNumeric(e)?e:n?c.opts.animationDuration:0,c.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?f.modulaFancybox.stop(c.$slide):n=!1,c.$slide.siblings().trigger("onReset").remove(),a&&l.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),l.hideLoading(c),l.hideControls(!0),l.updateCursor(),"zoom"!==n||i&&a&&"image"===c.type&&!l.isMoved()&&!c.hasError&&(r=l.getThumbPos(c))||(n="fade"),"zoom"===n?(f.modulaFancybox.stop(i),e={top:(s=f.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/r.width,scaleY:s.height/r.height,width:r.width,height:r.height},"auto"==(s=c.opts.zoomOpacity)&&(s=.1<Math.abs(c.width/c.height-r.width/r.height)),s&&(r.opacity=0),f.modulaFancybox.setTranslate(i,e),p(i),f.modulaFancybox.animate(i,r,a,o)):n&&a?f.modulaFancybox.animate(c.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o=this,n=o.current.opts.$orig;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current.opts.backFocus&&(n&&n.length&&n.is(":visible")||(n=o.$trigger),n&&n.length&&(e=l.scrollX,t=l.scrollY,n.trigger("focus"),f("html, body").scrollTop(t).scrollLeft(e))),o.current=null,(o=f.modulaFancybox.getInstance())?o.activate():(f("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),f("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,e=e&&e.opts?e:a.current;if(e?n.unshift(e):e=a,n.unshift(a),f.isFunction(e.opts[t])&&(o=e.opts[t].apply(e,n)),!1===o)return o;("afterClose"!==t&&a.$refs?a.$refs.container:i).trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),f(s.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=(t.current||t).opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),f.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=f('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===f.type(t)?e[t].apply(e,o):"function"===f.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),i.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=s.createElement("div"),l.getComputedStyle&&l.getComputedStyle(t)&&l.getComputedStyle(t).getPropertyValue("transform")&&!(s.documentMode&&s.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===m&&e.top===m||(o=(e.left===m?t.position():e).left+"px, "+(e.top===m?t.position():e).top+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==m&&e.scaleY!==m?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==m&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==m&&(n.opacity=e.opacity),e.width!==m&&(n.width=e.width),e.height!==m&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;f.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),f.isNumeric(n)&&e.css("transition-duration",""),f.isPlainObject(o)?o.scaleX!==m&&o.scaleY!==m&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),f.isFunction(a)&&a(t))}),f.isNumeric(n)&&e.css("transition-duration",n+"ms"),f.isPlainObject(o)?(o.scaleX!==m&&o.scaleY!==m&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),f.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},f.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},b):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},b),this},i.on("click.fb-start","[data-fancybox]",b),i.on("click.fb-start","[data-fancybox-trigger]",function(t){f('[data-fancybox="'+f(this).attr("data-fancybox-trigger")+'"]').eq(f(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:f(this)})}),o=".modula-fancybox-button",h="modula-fancybox-focus",g=null,i.on("mousedown mouseup focus blur",o,function(t){switch(t.type){case"mousedown":g=f(this);break;case"mouseup":g=null;break;case"focusin":f(o).removeClass(h),f(this).is(g)||f(this).is("[disabled]")||f(this).addClass(h);break;case"focusout":f(o).removeClass(h)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(d,l,u){"use strict";function p(t){var e,o=[];for(e in t=(t=t.originalEvent||t||d.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?o.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&o.push({x:t[e].clientX,y:t[e].clientY});return o}function h(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||u.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function f(t){for(var e,o,n,a=!1;e=t.get(0),o=n=o=void 0,o=d.getComputedStyle(e)["overflow-y"],n=d.getComputedStyle(e)["overflow-x"],o=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,e=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(a=o||e)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return a}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",u.proxy(e,"ontouchstart"))}var m=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(t){return d.setTimeout(t,1e3/60)},g=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.mozCancelAnimationFrame||d.oCancelAnimationFrame||function(t){d.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),u(l).off(".fb.touch"),t.requestId&&(g(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=u(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=p(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=u.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=u.modulaFancybox.getTranslate(i),e.stagePos=u.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,u(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",u.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",u.proxy(e,"ontouchmove")),u.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),u.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=f(o)||f(o.parent()),u.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(u.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,u.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-u(d).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-u(d).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=h(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=p(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=h(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=h(e.newPoints[0],e.startPoints[0],"y"),e.distance=h(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var a=this,i=a.instance,e=a.isSwiping,o=a.sliderStartPos.left||0;if(!0!==e)"x"==e&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?o+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?o-=Math.pow(-a.distanceX,.8):o+=a.distanceX),a.sliderLastPos={top:"x"==e?0:a.sliderStartPos.top+a.distanceY,left:o},a.requestId&&(g(a.requestId),a.requestId=null),a.requestId=m(function(){a.sliderLastPos&&(u.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;u.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<u(d).width()?a.isSwiping="x":(o=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<o&&o<135?"y":"x"),"y"===a.isSwiping&&u.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,u.each(i.slides,function(t,e){var o,n;u.modulaFancybox.stop(e.$slide),o=u.modulaFancybox.getTranslate(e.$slide),n=u.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),u.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;h(t.newPoints[0],t.realPoints[0])<(u.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,t=Math.max(0,.5*e-.5*l),i=Math.max(0,.5*o-.5*c),l=Math.min(e-l,.5*e-.5*l),c=Math.min(o-c,.5*o-.5*c);return 0<n&&t<d&&(d=t-1+Math.pow(-t+s+n,.8)||0),n<0&&d<l&&(d=l+1-Math.pow(l-s-n,.8)||0),0<a&&i<u&&(u=i-1+Math.pow(-i+r+a,.8)||0),a<0&&u<c&&(u=c+1-Math.pow(c-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=h(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,e=(n-l)*t.percentageOfImageAtPinchPointY,o=(t.newPoints[0].x+t.newPoints[1].x)/2-u(d).scrollLeft(),n=(t.newPoints[0].y+t.newPoints[1].y)/2-u(d).scrollTop(),o=o-t.centerPointStartX,s={top:i+(e+(n-t.centerPointStartY)),left:a+(c+o),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=s,t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=p(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),u(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(g(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),i="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(u.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):i&&0<o.distanceX?n=o.instance.previous(300):i&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o=this;o.contentLastPos&&(e=!1===o.opts.momentum||350<o.dMs?(t=o.contentLastPos.left,o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,o.contentLastPos.top+500*o.velocityY),(e=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,e.height=o.contentStartPos.height,u.modulaFancybox.animate(o.$content,e,366))},o.prototype.endZooming=function(){var t,e,o,n=this,a=n.instance.current,i=n.newWidth,s=n.newHeight;n.contentLastPos&&(t=n.contentLastPos.left,o={top:e=n.contentLastPos.top,left:t,width:i,height:s,scaleX:1,scaleY:1},u.modulaFancybox.setTranslate(n.$content,o),i<n.canvasWidth&&s<n.canvasHeight?n.instance.scaleToFit(150):i>a.width||s>a.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(s=n.limitPosition(t,e,i,s),u.modulaFancybox.animate(n.$content,s,150)))},o.prototype.onTap=function(e){function t(t){if(t=s.opts[t],u.isFunction(t)&&(t=t.apply(i,[s,e])),t)switch(t){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var o,n=this,a=u(e.target),i=n.instance,s=i.current,r=e&&p(e)||n.startPoints,l=r[0]?r[0].x-u(d).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-u(d).scrollTop()-n.stagePos.top:0;if((!e.originalEvent||2!=e.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))o="Outside";else if(a.is(".modula-fancybox-slide"))o="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+o)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+o]&&s.opts["dblclick"+o]!==s.opts["click"+o]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+o)},500):t("click"+o);return this}},u(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(i,s){"use strict";s.extend(!0,s.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}s.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=s('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&s.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),s(i).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){e=e&&e.SlideShow;n?e&&o.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.fb":function(t,e,o){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.SlideShow;!e||!o.opts.slideShow||80!==a&&32!==a||s(i.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(i).on("visibilitychange",function(){var t=s.modulaFancybox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(i.hidden?t.clear():t.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){e=e&&e.Thumbs;e&&e.isVisible&&e.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.Thumbs;e&&e.isActive&&71===a&&(n.preventDefault(),e.toggle())},"beforeClose.fb":function(t,e){e=e&&e.Thumbs;e&&e.isVisible&&!1!==e.opts.hideOnClose&&e.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var a,e,i=o.modulaFancybox.getInstance(),s=i.current||null,r="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";s&&("function"===o.type(s.opts.share.url)&&(a=s.opts.share.url.apply(s,[i,s])),o.each(s.opts.modulaShare,function(t,e){var o=(s.opts.lightboxEmailMessage.length?s.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,s.src),n=null!=jQuery(s.$image).attr("title")?jQuery(s.$image).attr("title"):"";""==n&&(n=i.$caption.text()),r+=s.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===s.type?encodeURIComponent(s.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(a)).replace(/\{\{descr\}\}/g,encodeURIComponent(n)).replace(/\{\{subject\}\}/g,encodeURIComponent(s.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),r=(r+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},String(a).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:i.translate(i,r),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,n){"use strict";function a(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){return!!t&&(""!==(t=(t=(t.current||t).opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&t)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.modulaFancybox.defaults.hash&&(n(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(a(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),n(i).on("hashchange.fb",function(){var t=a(),o=null;n.each(n(".modula-fancybox-container").get().reverse(),function(t,e){e=n(e).data("modulaFancyBox");if(e&&e.currentHash)return o=e,!1}),o?o.currentHash===t.gallery+"-"+t.index||1===t.index&&o.currentHash==t.gallery||(o.currentHash=null,o.close()):""!==t.gallery&&e(t)}),setTimeout(function(){n.modulaFancybox.getInstance()||e(a())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
1 |
+
!function(l,s,f,m){"use strict";var a,i,r,d,e,c,p,u,n,t,o,h,g;function b(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},o=(e=t&&t.data?u(t.data.options,e):e).$target||f(t.currentTarget).trigger("blur"),(a=f.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?f(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):f('[data-fancybox="'+n+'"]'):[o],s=f(i).index(o),(a=f.modulaFancybox.open(i,e,s=s<0?0:s)).$trigger=o))}l.console=l.console||{info:function(t){}},f&&(f.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},a=f(l),i=f(s),r=0,d=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=s.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==m)return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e){var o=f.extend(!0,{},t,e);return f.each(e,function(t,e){f.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=u({index:o},f.modulaFancybox.defaults),f.isPlainObject(e)&&(n.opts=u(n.opts,e)),f.modulaFancybox.isMobile&&(n.opts=u(n.opts,n.opts.mobile)),n.id=n.opts.id||++r,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},f.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex==parseInt(e.opts.image_id)&&(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&f.modulaFancybox.close(!0),f("body").addClass("modula-fancybox-active"),!f.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!f.modulaFancybox.isMobile&&s.body.scrollHeight>l.innerHeight&&(f("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-s.documentElement.clientWidth)+"px;}</style>"),f("body").addClass("compensate-for-scrollbar")),n="",f.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=f(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===m?t:o[e]})},addContent:function(t){var r=this,t=f.makeArray(t);f.each(t,function(t,e){var o,n,a,i={},s={};f.isPlainObject(e)?s=(i=e).opts||e:"object"===f.type(e)&&f(e).length?(s=(n=f(e)).data()||{},(s=f.extend(!0,{},s,s.options)).$orig=n,i.src=r.opts.src||s.src||n.attr("href"),i.type||i.src||(i.type="inline",i.src=e)):i={type:"html",src:e+""},i.opts=f.extend(!0,{},r.opts,s),f.isArray(s.buttons)&&(i.opts.buttons=s.buttons),f.modulaFancybox.isMobile&&i.opts.mobile&&(i.opts=u(i.opts,i.opts.mobile)),o=i.type||i.opts.type,n=i.src||"",!o&&n&&((s=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="video",i.opts.video.format||(i.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?i=f.extend(!0,i,{contentType:"pdf",opts:{iframe:{preload:!(o="iframe")}}}):"#"===n.charAt(0)&&(o="inline")),o?i.type=o:r.trigger("objectNeedsType",i),i.contentType||(i.contentType=-1<f.inArray(i.type,["html","inline","ajax"])?"html":i.type),i.index=r.group.length,"auto"==i.opts.smallBtn&&(i.opts.smallBtn=-1<f.inArray(i.type,["html","inline","ajax"])),"auto"===i.opts.toolbar&&(i.opts.toolbar=!i.opts.smallBtn),i.$thumb=i.opts.$thumb||null,i.opts.$trigger&&i.index===r.opts.index&&(i.$thumb=i.opts.$trigger.find("img:first"),i.$thumb.length&&(i.opts.$orig=i.opts.$trigger)),i.$thumb&&i.$thumb.length||!i.opts.$orig||(i.$thumb=i.opts.$orig.find("img:first")),i.$thumb&&!i.$thumb.length&&(i.$thumb=null),i.thumb=i.opts.thumb||(i.$thumb?i.$thumb[0].src:null),"function"===f.type(i.opts.caption)&&(i.opts.caption=i.opts.caption.apply(e,[r,i])),"function"===f.type(r.opts.caption)&&(i.opts.caption=r.opts.caption.apply(e,[r,i])),i.opts.caption instanceof f||(i.opts.caption=i.opts.caption===m?"":i.opts.caption+""),"ajax"===i.type&&1<(a=n.split(/\s+/,2)).length&&(i.src=a.shift(),i.opts.filter=a.shift()),i.opts.modal&&(i.opts=f.extend(!0,i.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(i)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=d(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},f.modulaFancybox.isMobile?600:250))}),i.on("keydown.fb",function(t){var e=(f.modulaFancybox?f.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||f(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,i.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),i.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d=this,u=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun))return t=parseInt(t,10),!(!(o=(d.current||d).opts.loop)&&(t<0||u<=t))&&(e=d.firstRun=!Object.keys(d.slides).length,i=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,a=d.createSlide(t),1<u&&((o||a.index<u-1)&&d.createSlide(t+1),(o||0<a.index)&&d.createSlide(t-1)),d.current=a,d.currIndex=a.index,d.currPos=a.pos,d.trigger("beforeShow",e),d.updateControls(),a.forcedDuration=m,f.isNumeric(n)?a.forcedDuration=n:n=a.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),t=d.isMoved(a),a.$slide.addClass("modula-fancybox-slide--current"),e?(a.opts.animationEffect&&n&&d.$refs.container.css("transition-duration",n+"ms"),d.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),d.loadSlide(a)):(s=f.modulaFancybox.getTranslate(i.$slide),r=f.modulaFancybox.getTranslate(d.$refs.stage),f.each(d.slides,function(t,e){f.modulaFancybox.stop(e.$slide,!0)}),i.pos!==a.pos&&(i.isComplete=!1),i.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),t?(c=s.left-(i.pos*s.width+i.pos*i.opts.gutter),f.each(d.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*s.width+e.pos*e.opts.gutter;f.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-r.left+c}),e.pos!==a.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>a.pos?"next":"previous")),p(e.$slide),f.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-a.pos)*s.width+(e.pos-a.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===d.currPos&&d.complete()})})):n&&a.opts.transitionEffect&&(l="modula-fancybox-animated modula-fancybox-fx-"+a.opts.transitionEffect,i.$slide.addClass("modula-fancybox-slide--"+(i.pos>a.pos?"next":"previous")),f.modulaFancybox.animate(i.$slide,l,n,function(){i.$slide.removeClass(l).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),a.isLoaded?d.revealContent(a):d.loadSlide(a)),void d.preload("image"))},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=f('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=f.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r=this,l=r.current,c=l.$content,d=f.modulaFancybox.getTranslate(l.$slide).width,u=f.modulaFancybox.getTranslate(l.$slide).height,p=l.width,h=l.height;r.isAnimating||r.isMoved()||!c||"image"!=l.type||!l.isLoaded||l.hasError||(r.isAnimating=!0,f.modulaFancybox.stop(c),t=t===m?.5*d:t,e=e===m?.5*u:e,(n=f.modulaFancybox.getTranslate(c)).top-=f.modulaFancybox.getTranslate(l.$slide).top,n.left-=f.modulaFancybox.getTranslate(l.$slide).left,i=p/n.width,s=h/n.height,a=.5*d-.5*p,l=.5*u-.5*h,d<p&&(a=0<(a=n.left*i-(t*i-t))?0:a)<d-p&&(a=d-p),u<h&&(l=0<(l=n.top*s-(e*s-e))?0:l)<u-h&&(l=u-h),r.updateCursor(p,h),f.modulaFancybox.animate(c,{top:l,left:a,scaleX:i,scaleY:s},o||366,function(){r.isAnimating=!1}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop())},scaleToFit:function(t){var e=this,o=e.current,n=o.$content;e.isAnimating||e.isMoved()||!n||"image"!=o.type||!o.isLoaded||o.hasError||(e.isAnimating=!0,f.modulaFancybox.stop(n),o=e.getFitPos(o),e.updateCursor(o.width,o.height),f.modulaFancybox.animate(n,{top:o.top,left:o.left,scaleX:o.width/n.width(),scaleY:o.height/n.height()},t||366,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,o,n=t.$content,a=t.$slide,i=t.width||t.opts.width,s=t.height||t.opts.height,r={};return!!(t.isLoaded&&n&&n.length)&&(e=f.modulaFancybox.getTranslate(this.$refs.stage).width,o=f.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(n.css("marginLeft"))+parseFloat(n.css("marginRight")),o-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(n.css("marginTop"))+parseFloat(n.css("marginBottom")),i&&s||(i=e,s=o),e-.5<(i*=n=Math.min(1,e/i,o/s))&&(i=e),o-.5<(s*=n)&&(s=o),"image"===t.type?(r.top=Math.floor(.5*(o-s))+parseFloat(a.css("paddingTop")),r.left=Math.floor(.5*(e-i))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(i/(t=t.opts.width&&t.opts.height?i/s:t.opts.ratio||16/9)<s?s=i/t:s*t<i&&(i=s*t)),r.width=i,r.height=s,r)},update:function(o){var n=this;f.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(f.modulaFancybox.stop(n),f.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),f.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===m?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o=t||this.current;return!!o&&(e=f.modulaFancybox.getTranslate(this.$refs.stage),t=f.modulaFancybox.getTranslate(o.$slide),!o.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(t.top-e.top)||.5<Math.abs(t.left-e.left)))},updateCursor:function(t,e){var o=this,n=o.current,a=o.$refs.container;n&&!o.isClosing&&o.Guestures&&(a.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),e=!!(t=o.canPan(t,e))||o.isZoomable(),a.toggleClass("modula-fancybox-is-zoomable",e),f("[data-fancybox-zoom]").prop("disabled",!e),t?a.addClass("modula-fancybox-can-pan"):e&&("zoom"===n.opts.clickContent||f.isFunction(n.opts.clickContent)&&"zoom"==n.opts.clickContent(n))?a.addClass("modula-fancybox-can-zoomIn"):n.opts.touch&&(n.opts.touch.vertical||1<o.group.length)&&"video"!==n.contentType&&a.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==m&&e!==m?o=t<n.width&&e<n.height:a&&(o=(o=f.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==m&&e!==m?n={width:t,height:e}:o.isComplete&&(n=f.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":f(o.src).length?a.setContent(o,f(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=f.ajax(f.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=f('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=s.createElement("img")).onerror=function(){f(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=f(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}(e=!e&&o.length?o[o.length-1]:e)&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=s.createElement("img"),n=f(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$thumb&&n.attr("title",e.$thumb.find("img.pic").attr("title")),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=f('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=f(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===m&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===m&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{f(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}f(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&f.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof f&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=f("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&(e=f("<div>").append(f.trim(e)).contents()),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){f(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),f(e).appendTo(t.$slide),f(e).is("video,audio")&&(f(e).addClass("modula-fancybox-video"),f(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||f(e).attr("width"),t.opts.height=t.opts.height||f(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=f(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e=this,o=t||e.current,n=o.opts.caption,a=o.opts.preventCaptionOverlap,i=e.$refs.caption,t=!1;i.toggleClass("modula-fancybox-caption--separate",a),a&&n&&n.length&&(o.pos!==e.currPos?((i=i.clone().appendTo(i.parent())).children().eq(0).empty().html(n),t=i.outerHeight(!0),i.empty().remove()):e.$caption&&(t=e.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",t||""))},adjustLayout:function(t){var e,o,n,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(o=a.$slide[0].style["padding-bottom"],n=a.$slide.css("padding-bottom"),0<parseFloat(n)&&(t=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(t-a.$slide[0].scrollHeight)<1&&(e=n),a.$slide.css("padding-bottom",o))),a.$content.css("margin-bottom",e))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===m?n:t.forcedDuration,10),"zoom"===(e=c||t.pos!==i.currPos||!n?!1:e)&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,(a="auto"==(a=t.opts.zoomOpacity)?.1<Math.abs(t.width/t.height-l.width/l.height):a)&&(l.opacity=.1,r.opacity=1),f.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),p(t.$content),void f.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(f.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),p(s),"image"!==t.type&&t.$content.hide().show(0),void f.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i=t.$thumb;return!!(i&&(a=(n=i).find("a.tile-inner")[0])&&a.ownerDocument===s&&(f(".modula-fancybox-container").css("pointer-events","none"),n={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2},a=s.elementFromPoint(n.x,n.y)===a,f(".modula-fancybox-container").css("pointer-events",""),a))&&(o=f.modulaFancybox.getTranslate(i),t=parseFloat(i.css("border-top-width")||0),n=parseFloat(i.css("border-right-width")||0),a=parseFloat(i.css("border-bottom-width")||0),i=parseFloat(i.css("border-left-width")||0),e={top:o.top+t,left:o.left+i,width:o.width-n-i,height:o.height-t-a,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),p(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),f.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(f.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o=this,n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");o.isClosing||((e=(e=!t&&o.current&&o.current.isComplete?o.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):o.$refs.container.find("*:visible")).filter(n).filter(function(){return"hidden"!==f(this).css("visibility")&&!f(this).hasClass("disabled")})).length?(n=e.index(s.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),e.eq(e.length-1).trigger("focus")):(n<0||n==e.length-1)&&(t&&t.preventDefault(),e.eq(0).trigger("focus"))):o.$refs.container.trigger("focus"))},activate:function(){var e=this;f(".modula-fancybox-container").each(function(){var t=f(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){l.cleanUp(t)}var n,a,i,s,r,l=this,c=l.current;return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,d(function(){l.update()}),!1):(l.removeEvents(),i=c.$content,n=c.opts.animationEffect,a=f.isNumeric(e)?e:n?c.opts.animationDuration:0,c.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?f.modulaFancybox.stop(c.$slide):n=!1,c.$slide.siblings().trigger("onReset").remove(),a&&l.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),l.hideLoading(c),l.hideControls(!0),l.updateCursor(),"zoom"===(n=!("zoom"!==n||i&&a&&"image"===c.type&&!l.isMoved()&&!c.hasError&&(r=l.getThumbPos(c)))?"fade":n)?(f.modulaFancybox.stop(i),e={top:(s=f.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/r.width,scaleY:s.height/r.height,width:r.width,height:r.height},(s="auto"==(s=c.opts.zoomOpacity)?.1<Math.abs(c.width/c.height-r.width/r.height):s)&&(r.opacity=0),f.modulaFancybox.setTranslate(i,e),p(i),f.modulaFancybox.animate(i,r,a,o)):n&&a?f.modulaFancybox.animate(c.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o=this,n=o.current.opts.$orig;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current.opts.backFocus&&(n=n&&n.length&&n.is(":visible")?n:o.$trigger)&&n.length&&(e=l.scrollX,t=l.scrollY,n.trigger("focus"),f("html, body").scrollTop(t).scrollLeft(e)),o.current=null,(o=f.modulaFancybox.getInstance())?o.activate():(f("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),f("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,e=e&&e.opts?e:a.current;if(e?n.unshift(e):e=a,n.unshift(a),!1===(o=f.isFunction(e.opts[t])?e.opts[t].apply(e,n):o))return o;("afterClose"!==t&&a.$refs?a.$refs.container:i).trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),f(s.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=(t.current||t).opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),f.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=f('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===f.type(t)?e[t].apply(e,o):"function"===f.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),i.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=s.createElement("div"),l.getComputedStyle&&l.getComputedStyle(t)&&l.getComputedStyle(t).getPropertyValue("transform")&&!(s.documentMode&&s.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===m&&e.top===m||(o=(e.left===m?t.position():e).left+"px, "+(e.top===m?t.position():e).top+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==m&&e.scaleY!==m?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==m&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==m&&(n.opacity=e.opacity),e.width!==m&&(n.width=e.width),e.height!==m&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;f.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),f.isNumeric(n)&&e.css("transition-duration",""),f.isPlainObject(o)?o.scaleX!==m&&o.scaleY!==m&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),f.isFunction(a)&&a(t))}),f.isNumeric(n)&&e.css("transition-duration",n+"ms"),f.isPlainObject(o)?(o.scaleX!==m&&o.scaleY!==m&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),f.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},f.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},b):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},b),this},i.on("click.fb-start","[data-fancybox]",b),i.on("click.fb-start","[data-fancybox-trigger]",function(t){f('[data-fancybox="'+f(this).attr("data-fancybox-trigger")+'"]').eq(f(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:f(this)})}),o=".modula-fancybox-button",h="modula-fancybox-focus",g=null,i.on("mousedown mouseup focus blur",o,function(t){switch(t.type){case"mousedown":g=f(this);break;case"mouseup":g=null;break;case"focusin":f(o).removeClass(h),f(this).is(g)||f(this).is("[disabled]")||f(this).addClass(h);break;case"focusout":f(o).removeClass(h)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return"object"===h.type(e=e||"")&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){l=(l="?"==(l=s[e.paramPlace])[0]?l.substring(1):l).split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(d,l,u){"use strict";function p(t){var e,o=[];for(e in t=(t=t.originalEvent||t||d.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?o.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&o.push({x:t[e].clientX,y:t[e].clientY});return o}function h(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||u.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function f(t){for(var e,o,n,a=!1;e=t.get(0),o=n=o=void 0,o=d.getComputedStyle(e)["overflow-y"],n=d.getComputedStyle(e)["overflow-x"],o=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,e=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(a=o||e)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return a}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",u.proxy(e,"ontouchstart"))}var m=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(t){return d.setTimeout(t,1e3/60)},g=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.mozCancelAnimationFrame||d.oCancelAnimationFrame||function(t){d.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),u(l).off(".fb.touch"),t.requestId&&(g(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=u(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=p(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=u.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=u.modulaFancybox.getTranslate(i),e.stagePos=u.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,u(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",u.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",u.proxy(e,"ontouchmove")),u.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),u.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=f(o)||f(o.parent()),u.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(u.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,u.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-u(d).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-u(d).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=h(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=p(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=h(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=h(e.newPoints[0],e.startPoints[0],"y"),e.distance=h(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var a=this,i=a.instance,e=a.isSwiping,o=a.sliderStartPos.left||0;if(!0!==e)"x"==e&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?o+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?o-=Math.pow(-a.distanceX,.8):o+=a.distanceX),a.sliderLastPos={top:"x"==e?0:a.sliderStartPos.top+a.distanceY,left:o},a.requestId&&(g(a.requestId),a.requestId=null),a.requestId=m(function(){a.sliderLastPos&&(u.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;u.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<u(d).width()?a.isSwiping="x":(o=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<o&&o<135?"y":"x"),"y"===a.isSwiping&&u.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,u.each(i.slides,function(t,e){var o,n;u.modulaFancybox.stop(e.$slide),o=u.modulaFancybox.getTranslate(e.$slide),n=u.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),u.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;h(t.newPoints[0],t.realPoints[0])<(u.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,t=Math.max(0,.5*e-.5*l),i=Math.max(0,.5*o-.5*c),l=Math.min(e-l,.5*e-.5*l),c=Math.min(o-c,.5*o-.5*c);return 0<n&&t<d&&(d=t-1+Math.pow(-t+s+n,.8)||0),n<0&&d<l&&(d=l+1-Math.pow(l-s-n,.8)||0),0<a&&i<u&&(u=i-1+Math.pow(-i+r+a,.8)||0),{top:u=a<0&&u<c?c+1-Math.pow(c-r-a,.8)||0:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=h(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,e=(n-l)*t.percentageOfImageAtPinchPointY,o=(t.newPoints[0].x+t.newPoints[1].x)/2-u(d).scrollLeft(),n=(t.newPoints[0].y+t.newPoints[1].y)/2-u(d).scrollTop(),o=o-t.centerPointStartX,s={top:i+(e+(n-t.centerPointStartY)),left:a+(c+o),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=s,t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=p(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),u(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(g(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),i="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(u.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):i&&0<o.distanceX?n=o.instance.previous(300):i&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o=this;o.contentLastPos&&(e=!1===o.opts.momentum||350<o.dMs?(t=o.contentLastPos.left,o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,o.contentLastPos.top+500*o.velocityY),(e=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,e.height=o.contentStartPos.height,u.modulaFancybox.animate(o.$content,e,366))},o.prototype.endZooming=function(){var t,e,o=this,n=o.instance.current,a=o.newWidth,i=o.newHeight;o.contentLastPos&&(t=o.contentLastPos.left,e=o.contentLastPos.top,u.modulaFancybox.setTranslate(o.$content,{top:e,left:t,width:a,height:i,scaleX:1,scaleY:1}),a<o.canvasWidth&&i<o.canvasHeight?o.instance.scaleToFit(150):a>n.width||i>n.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(i=o.limitPosition(t,e,a,i),u.modulaFancybox.animate(o.$content,i,150)))},o.prototype.onTap=function(e){function t(t){if(t=s.opts[t],t=u.isFunction(t)?t.apply(i,[s,e]):t)switch(t){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var o,n=this,a=u(e.target),i=n.instance,s=i.current,r=e&&p(e)||n.startPoints,l=r[0]?r[0].x-u(d).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-u(d).scrollTop()-n.stagePos.top:0;if((!e.originalEvent||2!=e.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))o="Outside";else if(a.is(".modula-fancybox-slide"))o="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+o)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+o]&&s.opts["dblclick"+o]!==s.opts["click"+o]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+o)},500):t("click"+o);return this}},u(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(i,s){"use strict";s.extend(!0,s.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}s.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=s('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&s.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),s(i).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){e=e&&e.SlideShow;n?e&&o.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.fb":function(t,e,o){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.SlideShow;!e||!o.opts.slideShow||80!==a&&32!==a||s(i.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(i).on("visibilitychange",function(){var t=s.modulaFancybox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(i.hidden?t.clear():t.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){e=e&&e.Thumbs;e&&e.isVisible&&e.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.Thumbs;e&&e.isActive&&71===a&&(n.preventDefault(),e.toggle())},"beforeClose.fb":function(t,e){e=e&&e.Thumbs;e&&e.isVisible&&!1!==e.opts.hideOnClose&&e.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var a,e,i=o.modulaFancybox.getInstance(),s=i.current||null,r="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";s&&("function"===o.type(s.opts.share.url)&&(a=s.opts.share.url.apply(s,[i,s])),o.each(s.opts.modulaShare,function(t,e){var o=(s.opts.lightboxEmailMessage.length?s.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,s.src),n=null!=jQuery(s.$image).attr("title")?jQuery(s.$image).attr("title"):"";""==n&&(n=i.$caption.text()),r+=s.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===s.type?encodeURIComponent(s.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(a)).replace(/\{\{descr\}\}/g,encodeURIComponent(n)).replace(/\{\{subject\}\}/g,encodeURIComponent(s.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),r=(r+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},String(a).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:i.translate(i,r),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,n){"use strict";function a(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){return!!t&&(""!==(t=(t=(t.current||t).opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&t)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.modulaFancybox.defaults.hash&&(n(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(a(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),n(i).on("hashchange.fb",function(){var t=a(),o=null;n.each(n(".modula-fancybox-container").get().reverse(),function(t,e){e=n(e).data("modulaFancyBox");if(e&&e.currentHash)return o=e,!1}),o?o.currentHash===t.gallery+"-"+t.index||1===t.index&&o.currentHash==t.gallery||(o.currentHash=null,o.close()):""!==t.gallery&&e(t)}),setTimeout(function(){n.modulaFancybox.getInstance()||e(a())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
assets/js/front/isotope-packery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,i){t.Packery=t.Packery||{},t.Packery.Rect=i()}(window,function(){function a(t){for(var i in a.defaults)this[i]=a.defaults[i];for(i in t)this[i]=t[i]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,h=t.y+t.height;return this.x<s&&i>t.x&&this.y<h&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,h=this.y+this.height,n=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),n<s&&(i=new a({x:n,y:this.y,width:s-n,height:this.height}),e.push(i)),r<h&&(i=new a({x:this.x,y:r,width:this.width,height:h-r}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,i){t=t.Packery=t.Packery||{};t.Packer=i(t.Rect)}(window,function(i){function t(t,i,e){this.width=t||0,this.height=i||0,this.sortDirection=e||"downwardLeftToRight",this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x,t.y=i.y,this.placed(t)},e.placed=function(t){for(var i=[],e=0;e<this.spaces.length;e++){var s=this.spaces[e],h=s.getMaximalFreeRects(t);h?i.push.apply(i,h):i.push(s)}this.spaces=i,this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var i=0,e=t[i];t:for(;e;){for(var s=0,h=t[i+s];h;){if(h==e)s++;else{if(h.contains(e)){t.splice(i,1),e=t[i];continue t}e.contains(h)?t.splice(i+s,1):s++}h=t[i+s]}e=t[++i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}),function(t,i){t.Packery.Item=i(t.Outlayer,t.Packery.Rect)}(window,function(t,i){function e(){t.Item.apply(this,arguments)}var s="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",h=e.prototype=Object.create(t.Item.prototype),n=h._create;h._create=function(){n.call(this),this.rect=new i};var r=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):r.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(t,i){t.Packery=i(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(c,t,r,i,e){r.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;e=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}e._create=function(){t.prototype._create.call(this),this.packer=new i,this.shiftPacker=new i,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,i){i&&e.itemDragStart(t.currentTarget)},drag:function(t,i){i&&e.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t,i){i&&e.itemDragEnd(t.currentTarget)}}},e._resetLayout=function(){var t,i,e;this.getSize(),this._getMeasurements(),e=this._getOption("horizontal")?(t=1/0,i=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,i=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=i,this.packer.sortDirection=this.shiftPacker.sortDirection=e,this.packer.reset(),this.maxY=0,this.maxX=0},e._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},e._getItemLayoutPosition=function(t){var i;return this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount?(i=this._getPackMethod(),this.packer[i](t.rect)):this.packer.pack(t.rect),this._setMaxXY(t.rect),t.rect},e.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},e._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},e._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},e._setRectSize=function(t,i){var e=c(t),t=e.outerWidth,e=e.outerHeight;(t||e)&&(t=this._applyGridGutter(t,this.columnWidth),e=this._applyGridGutter(e,this.rowHeight)),i.width=Math.min(t,this.packer.width),i.height=Math.min(e,this.packer.height)},e._applyGridGutter=function(t,i){if(!i)return t+this.gutter;var e=t%(i+=this.gutter);return t=Math[e&&e<1?"round":"ceil"](t/i)*i},e._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e._manageStamp=function(t){var i,e=this.getItem(t);i=e&&e.isPlacing?e.rect:(i=this._getElementOffset(t),new r({x:this._getOption("originLeft")?i.left:i.right,y:this._getOption("originTop")?i.top:i.bottom})),this._setRectSize(t,i),this.packer.placed(i),this._setMaxXY(i)},e.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},e.fit=function(t,i,e){t=this.getItem(t);t&&(this.stamp(t.element),t.enablePlacing(),this.updateShiftTargets(t),i=void 0===i?t.rect.x:i,e=void 0===e?t.rect.y:e,this.shift(t,i,e),this._bindFitEvents(t),t.moveTo(t.rect.x,t.rect.y),this.shiftLayout(),this.unstamp(t.element),this.sortItemsByPosition(),t.disablePlacing())},e._bindFitEvents=function(t){var i=this,e=0;function s(){2==++e&&i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s),this.once("layoutComplete",s)},e.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},e.needsResizeLayout=function(){var t=c(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},e.resizeShiftPercentLayout=function(){var e,i,s,t=this._getItemsForLayout(this.items),h=this._getOption("horizontal"),n=h?"y":"x",r=h?"height":"width",a=h?"rowHeight":"columnWidth",h=h?"innerHeight":"innerWidth",o=this[a];(o=o&&o+this.gutter)?(this._getMeasurements(),e=this[a]+this.gutter,t.forEach(function(t){var i=Math.round(t.rect[n]/o);t.rect[n]=i*e})):(i=c(this.element)[h]+this.gutter,s=this.packer[r],t.forEach(function(t){t.rect[n]=t.rect[n]/s*i})),this.shiftLayout()},e.itemDragStart=function(t){this.isEnabled&&(this.stamp(t),(t=this.getItem(t))&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t)))},e.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);i&&i.isPlacing||(i=this._getElementOffset(t),i=new r({x:e?i.left:i.right,y:s?i.top:i.bottom}),this._setRectSize(t,i),this.shiftPacker.placed(i))},this);var o=this._getOption("horizontal"),i=o?"rowHeight":"columnWidth",c=o?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var g=this[i];if(g=g&&g+this.gutter)for(var i=Math.ceil(t.rect[c]/g),h=Math.floor((this.shiftPacker[c]+this.gutter)/g),u=(h-i)*g,n=0;n<h;n++)this._addShiftTarget(n*g,0,u);else u=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,u);var t=this._getItemsForLayout(this.items),d=this._getPackMethod();t.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i),this.shiftPacker[d](i),this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x,s=o?i.y:i.y+i.height;if(this._addShiftTarget(e,s,u),g)for(var h=Math.round(i[c]/g),n=1;n<h;n++){var r=o?e:i.x+g*n,a=o?i.y+g*n:s;this._addShiftTarget(r,a,u)}},this)},e._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;0!==s&&e<s||(s=t+","+i,-1!=this.shiftTargetKeys.indexOf(s)||(this.shiftTargetKeys.push(s),this.shiftTargets.push({x:t,y:i})))},e.shift=function(t,i,e){var h,n=1/0,r={x:i,y:e};this.shiftTargets.forEach(function(t){var i,e,s,i=(s=(e=r).x-(i=t).x,i=e.y-i.y,Math.sqrt(s*s+i*i));i<n&&(h=t,n=i)}),t.rect.x=h.x,t.rect.y=h.y};e.itemDragMove=function(t,i,e){var s,h=this.isEnabled&&this.getItem(t);function n(){s.shift(h,i,e),h.positionDropPlaceholder(),s.layout()}h&&(i-=this.size.paddingLeft,e-=this.size.paddingTop,s=this,t=new Date,this._itemDragTime&&t-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(n,120)):(n(),this._itemDragTime=t))},e.itemDragEnd=function(t){var i,e,s=this.isEnabled&&this.getItem(t);function h(){2==++i&&(s.element.classList.remove("is-positioning-post-drag"),s.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[s]))}s&&(clearTimeout(this.dragTimeout),s.element.classList.add("is-positioning-post-drag"),i=0,e=this,s.once("layout",h),this.once("layoutComplete",h),s.moveTo(s.rect.x,s.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),s.disablePlacing(),this.unstamp(s.element))},e.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},e.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},e._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart),t[i]("dragMove",e.dragMove),t[i]("dragEnd",e.dragEnd)},e.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},e.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},e._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var a=e.destroy;return e.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},s.Rect=r,s.Packer=i,s}),function(t,i){i(t.ModulaIsotope.LayoutMode,t.Packery)}(window,function(t,i){var e,t=t.create("packery"),s=t.prototype,h={_getElementOffset:!0,_getMeasurement:!0};for(e in i.prototype)h[e]||(s[e]=i.prototype[e]);var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer,this.shiftPacker=this.shiftPacker||new i.Packer,n.apply(this,arguments)};var r=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){return t.rect=t.rect||new i.Rect,r.call(this,t)};var a=s.needsResizeLayout;s.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():a.call(this)};var o=s._getOption;return s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:o.apply(this.isotope,arguments)},t});
|
1 |
+
!function(t,i){t.Packery=t.Packery||{},t.Packery.Rect=i()}(window,function(){function a(t){for(var i in a.defaults)this[i]=a.defaults[i];for(i in t)this[i]=t[i]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,h=t.y+t.height;return this.x<s&&i>t.x&&this.y<h&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,h=this.y+this.height,n=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),n<s&&(i=new a({x:n,y:this.y,width:s-n,height:this.height}),e.push(i)),r<h&&(i=new a({x:this.x,y:r,width:this.width,height:h-r}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,i){t=t.Packery=t.Packery||{};t.Packer=i(t.Rect)}(window,function(i){function t(t,i,e){this.width=t||0,this.height=i||0,this.sortDirection=e||"downwardLeftToRight",this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x,t.y=i.y,this.placed(t)},e.placed=function(t){for(var i=[],e=0;e<this.spaces.length;e++){var s=this.spaces[e],h=s.getMaximalFreeRects(t);h?i.push.apply(i,h):i.push(s)}this.spaces=i,this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var i=0,e=t[i];t:for(;e;){for(var s=0,h=t[i+s];h;){if(h==e)s++;else{if(h.contains(e)){t.splice(i,1),e=t[i];continue t}e.contains(h)?t.splice(i+s,1):s++}h=t[i+s]}e=t[++i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}),function(t,i){t.Packery.Item=i(t.Outlayer,t.Packery.Rect)}(window,function(t,i){function e(){t.Item.apply(this,arguments)}var s="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",h=e.prototype=Object.create(t.Item.prototype),n=h._create;h._create=function(){n.call(this),this.rect=new i};var r=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):r.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(t,i){t.Packery=i(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(c,t,r,i,e){r.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;e=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}e._create=function(){t.prototype._create.call(this),this.packer=new i,this.shiftPacker=new i,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,i){i&&e.itemDragStart(t.currentTarget)},drag:function(t,i){i&&e.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t,i){i&&e.itemDragEnd(t.currentTarget)}}},e._resetLayout=function(){var t,i,e;this.getSize(),this._getMeasurements(),e=this._getOption("horizontal")?(t=1/0,i=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,i=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=i,this.packer.sortDirection=this.shiftPacker.sortDirection=e,this.packer.reset(),this.maxY=0,this.maxX=0},e._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},e._getItemLayoutPosition=function(t){var i;return this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount?(i=this._getPackMethod(),this.packer[i](t.rect)):this.packer.pack(t.rect),this._setMaxXY(t.rect),t.rect},e.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},e._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},e._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},e._setRectSize=function(t,i){var e=c(t),t=e.outerWidth,e=e.outerHeight;(t||e)&&(t=this._applyGridGutter(t,this.columnWidth),e=this._applyGridGutter(e,this.rowHeight)),i.width=Math.min(t,this.packer.width),i.height=Math.min(e,this.packer.height)},e._applyGridGutter=function(t,i){if(!i)return t+this.gutter;var e=t%(i+=this.gutter);return t=Math[e&&e<1?"round":"ceil"](t/i)*i},e._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e._manageStamp=function(t){var i,e=this.getItem(t);i=e&&e.isPlacing?e.rect:(i=this._getElementOffset(t),new r({x:this._getOption("originLeft")?i.left:i.right,y:this._getOption("originTop")?i.top:i.bottom})),this._setRectSize(t,i),this.packer.placed(i),this._setMaxXY(i)},e.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},e.fit=function(t,i,e){t=this.getItem(t);t&&(this.stamp(t.element),t.enablePlacing(),this.updateShiftTargets(t),i=void 0===i?t.rect.x:i,e=void 0===e?t.rect.y:e,this.shift(t,i,e),this._bindFitEvents(t),t.moveTo(t.rect.x,t.rect.y),this.shiftLayout(),this.unstamp(t.element),this.sortItemsByPosition(),t.disablePlacing())},e._bindFitEvents=function(t){var i=this,e=0;function s(){2==++e&&i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s),this.once("layoutComplete",s)},e.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},e.needsResizeLayout=function(){var t=c(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},e.resizeShiftPercentLayout=function(){var e,i,s,t=this._getItemsForLayout(this.items),h=this._getOption("horizontal"),n=h?"y":"x",r=h?"height":"width",a=h?"rowHeight":"columnWidth",h=h?"innerHeight":"innerWidth",o=this[a];(o=o&&o+this.gutter)?(this._getMeasurements(),e=this[a]+this.gutter,t.forEach(function(t){var i=Math.round(t.rect[n]/o);t.rect[n]=i*e})):(i=c(this.element)[h]+this.gutter,s=this.packer[r],t.forEach(function(t){t.rect[n]=t.rect[n]/s*i})),this.shiftLayout()},e.itemDragStart=function(t){this.isEnabled&&(this.stamp(t),(t=this.getItem(t))&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t)))},e.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);i&&i.isPlacing||(i=this._getElementOffset(t),i=new r({x:e?i.left:i.right,y:s?i.top:i.bottom}),this._setRectSize(t,i),this.shiftPacker.placed(i))},this);var o=this._getOption("horizontal"),i=o?"rowHeight":"columnWidth",c=o?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var g=this[i];if(g=g&&g+this.gutter)for(var i=Math.ceil(t.rect[c]/g),h=Math.floor((this.shiftPacker[c]+this.gutter)/g),u=(h-i)*g,n=0;n<h;n++)this._addShiftTarget(n*g,0,u);else u=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,u);var t=this._getItemsForLayout(this.items),d=this._getPackMethod();t.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i),this.shiftPacker[d](i),this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x,s=o?i.y:i.y+i.height;if(this._addShiftTarget(e,s,u),g)for(var h=Math.round(i[c]/g),n=1;n<h;n++){var r=o?e:i.x+g*n,a=o?i.y+g*n:s;this._addShiftTarget(r,a,u)}},this)},e._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;0!==s&&e<s||(-1!=this.shiftTargetKeys.indexOf(s=t+","+i)||(this.shiftTargetKeys.push(s),this.shiftTargets.push({x:t,y:i})))},e.shift=function(t,i,e){var s,h=1/0,n={x:i,y:e};this.shiftTargets.forEach(function(t){var i,e,i=(e=n.x-(i=t).x,i=n.y-i.y,Math.sqrt(e*e+i*i));i<h&&(s=t,h=i)}),t.rect.x=s.x,t.rect.y=s.y};e.itemDragMove=function(t,i,e){var s,h=this.isEnabled&&this.getItem(t);function n(){s.shift(h,i,e),h.positionDropPlaceholder(),s.layout()}h&&(i-=this.size.paddingLeft,e-=this.size.paddingTop,s=this,t=new Date,this._itemDragTime&&t-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(n,120)):(n(),this._itemDragTime=t))},e.itemDragEnd=function(t){var i,e,s=this.isEnabled&&this.getItem(t);function h(){2==++i&&(s.element.classList.remove("is-positioning-post-drag"),s.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[s]))}s&&(clearTimeout(this.dragTimeout),s.element.classList.add("is-positioning-post-drag"),i=0,e=this,s.once("layout",h),this.once("layoutComplete",h),s.moveTo(s.rect.x,s.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),s.disablePlacing(),this.unstamp(s.element))},e.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},e.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},e._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart),t[i]("dragMove",e.dragMove),t[i]("dragEnd",e.dragEnd)},e.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},e.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},e._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var a=e.destroy;return e.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},s.Rect=r,s.Packer=i,s}),function(t,i){i(t.ModulaIsotope.LayoutMode,t.Packery)}(window,function(t,i){var e,t=t.create("packery"),s=t.prototype,h={_getElementOffset:!0,_getMeasurement:!0};for(e in i.prototype)h[e]||(s[e]=i.prototype[e]);var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer,this.shiftPacker=this.shiftPacker||new i.Packer,n.apply(this,arguments)};var r=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){return t.rect=t.rect||new i.Rect,r.call(this,t)};var a=s.needsResizeLayout;s.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():a.call(this)};var o=s._getOption;return s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:o.apply(this.isotope,arguments)},t});
|
assets/js/front/isotope.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,e){t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(h,u,l){(l=l||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[h]=function(t){if("string"!=typeof t)return a=t,this.each(function(t,e){var i=l.data(e,h);i?(i.option(a),i._init()):(i=new u(e,a),l.data(e,h,i))}),this;var n,o,s,r,a,e=i.call(arguments,1);return o=e,r="$()."+h+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=l.data(e,h);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,o),s=void 0===s?i:s):d(r+" is not a valid method"):d(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:t},s(l))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t){function e(){}t.EvEmitter=((t=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},t.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},t.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),function(t){window.getSize=t()}(function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=f.length;function g(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var y,v=!1;function _(t){if(v||(v=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(c),l=g(c),y=200==Math.round(m(l.width)),_.isBoxSizeOuter=y,d.removeChild(c)),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=g(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<p;e++)t[f[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<p;o++){var s=f[o],r=e[s],r=parseFloat(r);i[s]=isNaN(r)?0:r}var a=i.paddingLeft+i.paddingRight,h=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,l=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,c=i.borderTopWidth+i.borderBottomWidth,t=n&&y,n=m(e.width);!1!==n&&(i.width=n+(t?0:a+d));n=m(e.height);return!1!==n&&(i.height=n+(t?0:h+c)),i.innerWidth=i.width-(a+d),i.innerHeight=i.height-(h+c),i.outerWidth=i.width+u,i.outerHeight=i.height+l,i}}return _}),window.matchesSelector=function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}(),function(t,e){t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(i,r){var n={};n.extend=function(t,e){for(var i in e)t[i]=e[i];return t},n.modulo=function(t,e){return(t%e+e)%e};var e=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},n.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},n.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,o){t=n.makeArray(t);var s=[];return t.forEach(function(t){var e;if(e=t,"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)if(o){r(t,o)&&s.push(t);for(var i=t.querySelectorAll(o),n=0;n<i.length;n++)s.push(i[n])}else s.push(t)}),s},n.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return n.htmlInit=function(a,h){n.docReady(function(){var t=n.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),t=document.querySelectorAll(".js-"+t),t=n.makeArray(e).concat(n.makeArray(t)),s=o+"-options",r=i.jQuery;t.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,h,n)})})},n}),function(t,e){t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize)}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=a.prototype=Object.create(t.prototype);t.constructor=a,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),t=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*t.width),-1!=o.indexOf("%")&&(r=r/100*t.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?t.paddingLeft:t.paddingRight,r-=i?t.paddingTop:t.paddingBottom,this.position.x=s,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",i=i?"right":"left",o=this.position.x+t[o];e[s]=this.getXValue(o),e[i]="";o=n?"paddingTop":"paddingBottom",i=n?"top":"bottom",n=n?"bottom":"top",o=this.position.y+t[o];e[i]=this.getYValue(o),e[n]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!o||this.isTransitioning?(i=t-i,e-=n,(n={}).transform=this.getTranslate(i,e),this.transition({to:n,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var h="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:h,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=u[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var l={transitionProperty:"",transitionDuration:"",transitionDelay:""};return t.removeTransitionStyles=function(){this.css(l)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(t,e){"use strict";t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,o,n,s){"use strict";function i(){}var r=t.console,a=t.jQuery,h=0,u={};function l(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}l.namespace="outlayer",l.Item=s,l.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=l.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},l.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),t=e&&e[1],e=e&&e[2];if(!t.length)return 0;t=parseFloat(t);e=m[e]||1;return t*e}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,s=t.length;function r(){++o==s&&n()}t&&s?(o=0,t.forEach(function(t){t.once(e,r)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((e=a.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(l,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},l.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},l.create=function(t,e){var i=c(l);return i.defaults=n.extend({},l.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},l.compatOptions),i.namespace=t,i.data=l.data,i.Item=c(s),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var m={ms:1,s:1e3};return l.Item=s,l}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=e(t.Outlayer)}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=e(t.getSize,t.Outlayer)}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";t=e.prototype;return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},t.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&a(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),e={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,s=i+n.col,r=n.col;r<s;r++)this.colYs[r]=o;return e},t._getTopColPosition=function(t){var e=this._getTopColGroup(t),t=Math.min.apply(Math,e);return{col:e.indexOf(t),y:t}},t._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},t._getColGroupY=function(t,e){if(e<2)return this.colYs[t];e=this.colYs.slice(t,t+e);return Math.max.apply(Math,e)},t._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=a(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(t/this.columnWidth);o-=t%this.columnWidth?0:1,o=Math.min(this.cols-1,o);for(var s=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,r=n;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){e(t.ModulaIsotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var r=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},t}),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("fitRows"),t=t.prototype;t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t._getContainerSize=function(){return{height:this.maxY}}}(),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("vertical",{horizontalAlignment:0}),t=t.prototype;t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t._getContainerSize=function(){return{height:this.y}}}(),function(t,e){t.ModulaIsotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window,function(t,i,e,n,s,o,r){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=r;o=u.prototype;o._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},o.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},o._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},o._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},o.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},o._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},o.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},o._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},o._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},o._filter=function(t){for(var e=(e=this.options.filter)||"*",i=[],n=[],o=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a,h=t[r];h.isIgnored||((a=s(h))&&i.push(h),a&&h.isHidden?n.push(h):a||h.isHidden||o.push(h))}return{matches:i,needReveal:n,needHide:o}},o._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},o.updateSortData=function(t){t=t?(t=s.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},o._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=l(i)}},o._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()};var l=function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),s=u.sortDataParsers[e[1]];return t=s?function(t){return t&&s(o(t))}:function(t){return t&&o(t)}};u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},o._sort=function(){var t,r,a;this.options.sortBy&&(t=s.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),r=this.sortHistory,a=this.options.sortAscending,t=function(t,e){for(var i=0;i<r.length;i++){var n=r[i],o=t.sortData[n],s=e.sortData[n];if(s<o||o<s)return(s<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0},this.filteredItems.sort(t))},o._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},o._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},o._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},o._manageStamp=function(t){this._mode()._manageStamp(t)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(t){t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},o.prepended=function(t){var e=this._itemize(t);e.length&&(this._resetLayout(),this._manageStamps(),t=this._filterRevealAdded(e),this.layoutItems(this.filteredItems),this.filteredItems=t.concat(this.filteredItems),this.items=e.concat(this.items))},o._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var d=o.remove;return o.remove=function(t){t=s.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];s.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;e=t.apply(this,e);return this.options.transitionDuration=i,e},o.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u});
|
1 |
+
!function(t,e){t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(h,u,l){(l=l||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[h]=function(t){if("string"!=typeof t)return a=t,this.each(function(t,e){var i=l.data(e,h);i?(i.option(a),i._init()):(i=new u(e,a),l.data(e,h,i))}),this;var n,o,s,r,a,e=i.call(arguments,1);return o=e,r="$()."+h+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=l.data(e,h);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,o),s=void 0===s?i:s):d(r+" is not a valid method"):d(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:t},s(l))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t){function e(){}t.EvEmitter=((t=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},t.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},t.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),function(t){window.getSize=t()}(function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=f.length;function g(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var y,v=!1;function _(t){if(v||(v=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(c),l=g(c),y=200==Math.round(m(l.width)),_.isBoxSizeOuter=y,d.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=g(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<p;e++)t[f[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<p;o++){var s=f[o],r=e[s],r=parseFloat(r);i[s]=isNaN(r)?0:r}var a=i.paddingLeft+i.paddingRight,h=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,l=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,c=i.borderTopWidth+i.borderBottomWidth,t=n&&y,n=m(e.width);!1!==n&&(i.width=n+(t?0:a+d));n=m(e.height);return!1!==n&&(i.height=n+(t?0:h+c)),i.innerWidth=i.width-(a+d),i.innerHeight=i.height-(h+c),i.outerWidth=i.width+u,i.outerHeight=i.height+l,i}}return _}),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}}(),function(t,e){t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(i,r){var h={};h.extend=function(t,e){for(var i in e)t[i]=e[i];return t},h.modulo=function(t,e){return(t%e+e)%e};var e=Array.prototype.slice;h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,o){t=h.makeArray(t);var s=[];return t.forEach(function(t){var e;if(e=t,"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)if(o){r(t,o)&&s.push(t);for(var i=t.querySelectorAll(o),n=0;n<i.length;n++)s.push(i[n])}else s.push(t)}),s},h.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return h.htmlInit=function(r,a){h.docReady(function(){var t=h.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),t=h.makeArray(e).concat(h.makeArray(t)),o=n+"-options",s=i.jQuery;t.forEach(function(e){var t=e.getAttribute(n)||e.getAttribute(o);try{i=t&&JSON.parse(t)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}var i=new r(e,i);s&&s.data(e,a,i)})})},h}),function(t,e){t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize)}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=a.prototype=Object.create(t.prototype);t.constructor=a,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),t=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*t.width),-1!=o.indexOf("%")&&(r=r/100*t.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?t.paddingLeft:t.paddingRight,r-=i?t.paddingTop:t.paddingBottom,this.position.x=s,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",s=this.position.x+t[i?"paddingLeft":"paddingRight"];e[i?"left":"right"]=this.getXValue(s),e[o]="";o=n?"bottom":"top",t=this.position.y+t[n?"paddingTop":"paddingBottom"];e[n?"top":"bottom"]=this.getYValue(t),e[o]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!o||this.isTransitioning?((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var h="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:h,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=u[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var l={transitionProperty:"",transitionDuration:"",transitionDelay:""};return t.removeTransitionStyles=function(){this.css(l)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(t,e){"use strict";t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,o,n,s){"use strict";function i(){}var r=t.console,a=t.jQuery,h=0,u={};function l(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}l.namespace="outlayer",l.Item=s,l.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=l.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},l.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),t=e&&e[1],e=e&&e[2];if(!t.length)return 0;t=parseFloat(t);e=m[e]||1;return t*e}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,s=t.length;function r(){++o==s&&n()}t&&s?(o=0,t.forEach(function(t){t.once(e,r)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((e=a.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(l,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},l.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},l.create=function(t,e){var i=c(l);return i.defaults=n.extend({},l.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},l.compatOptions),i.namespace=t,i.data=l.data,i.Item=c(s),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var m={ms:1,s:1e3};return l.Item=s,l}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=e(t.Outlayer)}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=e(t.getSize,t.Outlayer)}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";t=e.prototype;return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},t.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&a(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),e={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,s=i+n.col,r=n.col;r<s;r++)this.colYs[r]=o;return e},t._getTopColPosition=function(t){var e=this._getTopColGroup(t),t=Math.min.apply(Math,e);return{col:e.indexOf(t),y:t}},t._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},t._getColGroupY=function(t,e){if(e<2)return this.colYs[t];e=this.colYs.slice(t,t+e);return Math.max.apply(Math,e)},t._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=a(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(t/this.columnWidth);o-=t%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),s=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,r=n;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){e(t.ModulaIsotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var r=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},t}),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("fitRows"),t=t.prototype;t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t._getContainerSize=function(){return{height:this.maxY}}}(),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("vertical",{horizontalAlignment:0}),t=t.prototype;t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t._getContainerSize=function(){return{height:this.y}}}(),function(t,e){t.ModulaIsotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window,function(t,i,e,n,s,o,r){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=r;o=u.prototype;o._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},o.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},o._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},o._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},o.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},o._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},o.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},o._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},o._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},o._filter=function(t){for(var e=this.options.filter,i=[],n=[],o=[],s=this._getFilterTest(e=e||"*"),r=0;r<t.length;r++){var a,h=t[r];h.isIgnored||((a=s(h))&&i.push(h),a&&h.isHidden?n.push(h):a||h.isHidden||o.push(h))}return{matches:i,needReveal:n,needHide:o}},o._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},o.updateSortData=function(t){t=t?(t=s.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},o._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=l(i)}},o._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()};var l=function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),s=u.sortDataParsers[e[1]];return t=s?function(t){return t&&s(o(t))}:function(t){return t&&o(t)}};u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},o._sort=function(){var t,r,a;this.options.sortBy&&(t=s.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),r=this.sortHistory,a=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<r.length;i++){var n=r[i],o=t.sortData[n],s=e.sortData[n];if(s<o||o<s)return(s<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0}))},o._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},o._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},o._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},o._manageStamp=function(t){this._mode()._manageStamp(t)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(t){t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},o.prepended=function(t){var e=this._itemize(t);e.length&&(this._resetLayout(),this._manageStamps(),t=this._filterRevealAdded(e),this.layoutItems(this.filteredItems),this.filteredItems=t.concat(this.filteredItems),this.items=e.concat(this.items))},o._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var d=o.remove;return o.remove=function(t){t=s.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];s.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;e=t.apply(this,e);return this.options.transitionDuration=i,e},o.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u});
|
assets/js/front/jquery-modula.js
CHANGED
@@ -40,6 +40,10 @@ jQuery(window).on('elementor/frontend/init', function () {
|
|
40 |
keepArea: true,
|
41 |
type: 'creative-gallery',
|
42 |
columns: 12,
|
|
|
|
|
|
|
|
|
43 |
gutter: 10,
|
44 |
desktopGutter: 10,
|
45 |
mobileGutter: 10,
|
@@ -118,6 +122,12 @@ jQuery(window).on('elementor/frontend/init', function () {
|
|
118 |
instance.onResize(instance);
|
119 |
});
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
$(window).on('modula-update', function() {
|
122 |
instance.onResize(instance);
|
123 |
});
|
@@ -314,6 +324,16 @@ jQuery(window).on('elementor/frontend/init', function () {
|
|
314 |
// if ( this.options.height ) {
|
315 |
// this.$itemsCnt.height(this.options.height);
|
316 |
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
this.$itemsCnt.data('area', this.$itemsCnt.width() * this.options.height);
|
318 |
|
319 |
this.lastWidth = this.$itemsCnt.width();
|
@@ -831,4 +851,4 @@ function modulaInViewport(element) {
|
|
831 |
(elementBounds.top - jQuery(window).height() <= -100 && elementBounds.top - jQuery(window).height() >= -400) ||
|
832 |
elementBounds.bottom <= jQuery(window).height()
|
833 |
);
|
834 |
-
}
|
40 |
keepArea: true,
|
41 |
type: 'creative-gallery',
|
42 |
columns: 12,
|
43 |
+
height: 800,
|
44 |
+
desktopHeight: 800,
|
45 |
+
mobileHeight: 800,
|
46 |
+
tabletHeight: 800,
|
47 |
gutter: 10,
|
48 |
desktopGutter: 10,
|
49 |
mobileGutter: 10,
|
122 |
instance.onResize(instance);
|
123 |
});
|
124 |
|
125 |
+
const resizeObserver = new ResizeObserver(entries => {
|
126 |
+
|
127 |
+
instance.onResize(instance);
|
128 |
+
});
|
129 |
+
resizeObserver.observe(instance.$element[0]);
|
130 |
+
|
131 |
$(window).on('modula-update', function() {
|
132 |
instance.onResize(instance);
|
133 |
});
|
324 |
// if ( this.options.height ) {
|
325 |
// this.$itemsCnt.height(this.options.height);
|
326 |
// }
|
327 |
+
var viewport = document.documentElement.clientWidth;
|
328 |
+
|
329 |
+
if (viewport <= 568) {
|
330 |
+
instance.options.height = instance.options.mobileHeight;
|
331 |
+
} else if (viewport <= 768) {
|
332 |
+
instance.options.height = instance.options.tabletHeight;
|
333 |
+
} else {
|
334 |
+
instance.options.height = instance.options.desktopHeight;
|
335 |
+
}
|
336 |
+
|
337 |
this.$itemsCnt.data('area', this.$itemsCnt.width() * this.options.height);
|
338 |
|
339 |
this.lastWidth = this.$itemsCnt.width();
|
851 |
(elementBounds.top - jQuery(window).height() <= -100 && elementBounds.top - jQuery(window).height() >= -400) ||
|
852 |
elementBounds.bottom <= jQuery(window).height()
|
853 |
);
|
854 |
+
}
|
assets/js/front/jquery-modula.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);t=t.getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)}),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",i={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(i.width=o.width,i.left=0,a){case"top":i.top=0;break;case"middle":i.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":i.bottom=0}else switch(i.height=o.height,i.top=0,h){case"left":i.left=0;break;case"center":i.left=0-(o.height*s-o.width)/2;break;case"right":i.right=0}e.css(i),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t="//www.facebook.com/sharer.php?u="+u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o="mailto:?subject="+i+"&body="+encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
1 |
+
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){t=(t="function"==typeof jQuery&&t instanceof jQuery?t[0]:t).getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,height:800,desktopHeight:800,mobileHeight:800,tabletHeight:800,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)});const e=new ResizeObserver(t=>{i.onResize(i)});e.observe(i.$element[0]),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this,t=a.documentElement.clientWidth;o.options.height=t<=568?o.options.mobileHeight:t<=768?o.options.tabletHeight:o.options.desktopHeight,this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",i=e.data("halign")?e.data("halign"):"center",h={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(h.width=o.width,h.left=0,a){case"top":h.top=0;break;case"middle":h.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":h.bottom=0}else switch(h.height=o.height,h.top=0,i){case"left":h.left=0;break;case"center":h.left=0-(o.height*s-o.width)/2;break;case"right":h.right=0}e.css(h),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("//www.facebook.com/sharer.php?u="+t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o=encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open("mailto:?subject="+i+"&body="+o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
assets/js/front/justifiedGallery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i;void 0===(i=t.data("jg.captionMouseEvents"))&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t=t<i?i:t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
assets/js/front/lazysizes.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t){t=t(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window,function(a,m){"use strict";if(m.getElementsByClassName){var z,n,i,t,s,o,y=m.documentElement,r=a.Date,l=a.HTMLPictureElement,c="addEventListener",h="getAttribute",d=a[c],u=a.setTimeout,f=a.requestAnimationFrame||u,g=a.requestIdleCallback,v=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],C={},b=Array.prototype.forEach,A=function(e,t){return C[t]||(C[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),C[t].test(e[h]("class")||"")&&C[t]},E=function(e,t){A(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)},_=function(e,t){(t=A(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))},w=function(t,n,e){var a=e?c:"removeEventListener";e&&w(t,n),p.forEach(function(e){t[a](e,n)})},M=function(e,t,n,a,i){var s=m.createEvent("Event");return(n=n||{}).instance=ue,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},N=function(e,t){var n;!l&&(n=a.picturefill||z.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},W=function(e,t,n){for(n=n||e.offsetWidth;n<z.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(s=[],o=t=[],he._lsFlush=ye,he),e=function(n,e){return e?function(){T(n)}:function(){var e=this,t=arguments;T(function(){n.apply(e,t)})}},B=function(e){
|
1 |
+
!function(e,t){t=t(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window,function(a,m){"use strict";if(m.getElementsByClassName){var z,n,i,t,s,o,y=m.documentElement,r=a.Date,l=a.HTMLPictureElement,c="addEventListener",h="getAttribute",d=a[c],u=a.setTimeout,f=a.requestAnimationFrame||u,g=a.requestIdleCallback,v=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],C={},b=Array.prototype.forEach,A=function(e,t){return C[t]||(C[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),C[t].test(e[h]("class")||"")&&C[t]},E=function(e,t){A(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)},_=function(e,t){(t=A(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))},w=function(t,n,e){var a=e?c:"removeEventListener";e&&w(t,n),p.forEach(function(e){t[a](e,n)})},M=function(e,t,n,a,i){var s=m.createEvent("Event");return(n=n||{}).instance=ue,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},N=function(e,t){var n;!l&&(n=a.picturefill||z.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},W=function(e,t,n){for(n=n||e.offsetWidth;n<z.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(s=[],o=t=[],he._lsFlush=ye,he),e=function(n,e){return e?function(){T(n)}:function(){var e=this,t=arguments;T(function(){n.apply(e,t)})}},B=function(e){var t,n,a=function(){t=null,e()},i=function(){var e=r.now()-n;e<99?u(i,99-e):(g||a)(a)};return function(){n=r.now(),t=t||u(i,99)}};!function(){var e,t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in z=a.lazySizesConfig||a.lazysizesConfig||{},t)e in z||(z[e]=t[e]);a.lazySizesConfig=z,u(function(){z.init&&ze()})}();var F,S,L,R,k,D,H,O,P,$,I,q,j,G,J,K,Q,U,V,X,Y,Z,ee,te,ne,ae,ie,se,oe,re,le,ce,de,ue,fe=(V=/^img$/i,X=/^iframe$/i,Y="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),te=-1,j=pe,J=ee=Z=0,K=z.throttleDelay,Q=z.ricTimeout,U=g&&49<Q?function(){g(Ce,{timeout:Q}),Q!==z.ricTimeout&&(Q=z.ricTimeout)}:e(function(){u(Ce)},!0),ae=e(be),ie=function(e){ae({target:e.target})},se=e(function(e,t,n,a,i){var s,o,r,l;(r=M(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?E(e,z.autosizesClass):e.setAttribute("sizes",a)),n=e[h](z.srcsetAttr),a=e[h](z.srcAttr),i&&(o=(s=e.parentNode)&&v.test(s.nodeName||"")),l=t.firesLoad||"src"in e&&(n||a||o),r={target:e},E(e,z.loadingClass),l&&(clearTimeout(L),L=u(ge,2500),w(e,ie,!0)),o&&b.call(s.getElementsByTagName("source"),Ae),n?e.setAttribute("srcset",n):a&&!o&&(X.test(e.nodeName)?function(t,n){try{t.contentWindow.location.replace(n)}catch(e){t.src=n}}(e,a):e.src=a),i&&(n||o)&&N(e,{src:a})),e._lazyRace&&delete e._lazyRace,_(e,z.lazyClass),T(function(){(!l||e.complete&&1<e.naturalWidth)&&(be(r),e._lazyCache=!0,u(function(){"_lazyCache"in e&&delete e._lazyCache},9))},!0)}),re=function(){var e;S||(r.now()-k<999?u(re,999):(e=B(function(){z.loadMode=3,ne()}),S=!0,z.loadMode=3,ne(),d("scroll",function(){3==z.loadMode&&(z.loadMode=2),e()},!0)))},{_:function(){k=r.now(),ue.elements=m.getElementsByClassName(z.lazyClass),F=m.getElementsByClassName(z.lazyClass+" "+z.preloadClass),d("scroll",ne,!0),d("resize",ne,!0),a.MutationObserver?new MutationObserver(ne).observe(y,{childList:!0,subtree:!0,attributes:!0}):(y[c]("DOMNodeInserted",ne,!0),y[c]("DOMAttrModified",ne,!0),setInterval(ne,999)),d("hashchange",ne,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){m[c](e,ne,!0)}),/d$|^c/.test(m.readyState)?re():(d("load",re),m[c]("DOMContentLoaded",ne),u(re,2e4)),ue.elements.length?(pe(),T._lsFlush()):ne()},checkElems:ne=function(e){var t;(e=!0===e)&&(Q=33),G||(G=!0,(t=K-(r.now()-J))<0&&(t=0),e||t<9?U():u(U,t))},unveil:oe=function(e){var t,n=V.test(e.nodeName),a=n&&(e[h](z.sizesAttr)||e[h]("sizes")),i="auto"==a;(!i&&S||!n||!e[h]("src")&&!e.srcset||e.complete||A(e,z.errorClass)||!A(e,z.lazyClass))&&(t=M(e,"lazyunveilread").detail,i&&me.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,ee++,se(e,t,i,a,n))}}),me=(ce=e(function(e,t,n,a){var i,s,o;if(e._lazysizesWidth=a,e.setAttribute("sizes",a+="px"),v.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",a);n.detail.dataAttr||N(e,n.detail)}),{_:function(){le=m.getElementsByClassName(z.autosizesClass),d("resize",de)},checkElems:de=B(function(){var e,t=le.length;if(t)for(e=0;e<t;e++)Ee(le[e])}),updateElem:Ee}),ze=function(){ze.i||(ze.i=!0,me._(),fe._())};return ue={cfg:z,autoSizer:me,loader:fe,init:ze,uP:N,aC:E,rC:_,hC:A,fire:M,gW:W,rAF:T}}function ye(){var e=o;for(o=t.length?s:t,i=!(n=!0);e.length;)e.shift()();n=!1}function he(e,t){n&&!t?e.apply(this,arguments):(o.push(e),i||(i=!0,(m.hidden?u:f)(ye)))}function ge(e){ee--,e&&!(ee<0)&&e.target||(ee=0)}function ve(e){return(q=null==q?"hidden"==x(m.body,"visibility"):q)||"hidden"!=x(e.parentNode,"visibility")&&"hidden"!=x(e,"visibility")}function pe(){var e,t,n,a,i,s,o,r,l,c,d,u,f=ue.elements;if((R=z.loadMode)&&ee<8&&(e=f.length)){for(t=0,te++,c=!z.expand||z.expand<1?500<y.clientHeight&&500<y.clientWidth?500:370:z.expand,d=(ue._defEx=c)*z.expFactor,u=z.hFac,q=null,Z<d&&ee<1&&2<te&&2<R&&!m.hidden?(Z=d,te=0):Z=1<R&&1<te&&ee<6?c:0;t<e;t++)if(f[t]&&!f[t]._lazyRace)if(Y)if(l!==(s=!(r=f[t][h]("data-expand"))||!(s=+r)?Z:s)&&(D=innerWidth+s*u,H=innerHeight+s,o=-1*s,l=s),n=f[t].getBoundingClientRect(),(I=n.bottom)>=o&&(O=n.top)<=H&&($=n.right)>=o*u&&(P=n.left)<=D&&(I||$||P||O)&&(z.loadHidden||ve(f[t]))&&(S&&ee<3&&!r&&(R<3||te<4)||function(e,t){var n,a=e,i=ve(e);for(O-=t,I+=t,P-=t,$+=t;i&&(a=a.offsetParent)&&a!=m.body&&a!=y;)(i=0<(x(a,"opacity")||1))&&"visible"!=x(a,"overflow")&&(n=a.getBoundingClientRect(),i=$>n.left&&P<n.right&&I>n.top-1&&O<n.bottom+1);return i}(f[t],s))){if(oe(f[t]),i=!0,9<ee)break}else!i&&S&&!a&&ee<4&&te<4&&2<R&&(F[0]||z.preloadAfterLoad)&&(F[0]||!r&&(I||$||P||O||"auto"!=f[t][h](z.sizesAttr)))&&(a=F[0]||f[t]);else oe(f[t]);a&&!i&&oe(a)}}function Ce(){G=!1,J=r.now(),j()}function be(e){var t=e.target;t._lazyCache?delete t._lazyCache:(ge(e),E(t,z.loadedClass),_(t,z.loadingClass),w(t,ie),M(t,"lazyloaded"))}function Ae(e){var t,n=e[h](z.srcsetAttr);(t=z.customMedia[e[h]("data-media")||e[h]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)}function Ee(e,t,n){var a=e.parentNode;a&&(n=W(e,a,n),(t=M(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=t.detail.width)&&n!==e._lazysizesWidth&&ce(e,a,t,n))}});
|
assets/js/modula-all.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(t,e){t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(h,u,l){(l=l||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[h]=function(t){if("string"!=typeof t)return a=t,this.each(function(t,e){var i=l.data(e,h);i?(i.option(a),i._init()):(i=new u(e,a),l.data(e,h,i))}),this;var n,o,s,r,a,e=i.call(arguments,1);return o=e,r="$()."+h+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=l.data(e,h);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,o),s=void 0===s?i:s):d(r+" is not a valid method"):d(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:t},s(l))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t){function e(){}t.EvEmitter=((t=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},t.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},t.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),function(t){window.getSize=t()}(function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=f.length;function g(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var y,v=!1;function _(t){if(v||(v=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(c),l=g(c),y=200==Math.round(m(l.width)),_.isBoxSizeOuter=y,d.removeChild(c)),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=g(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<p;e++)t[f[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<p;o++){var s=f[o],r=e[s],r=parseFloat(r);i[s]=isNaN(r)?0:r}var a=i.paddingLeft+i.paddingRight,h=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,l=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,c=i.borderTopWidth+i.borderBottomWidth,t=n&&y,n=m(e.width);!1!==n&&(i.width=n+(t?0:a+d));n=m(e.height);return!1!==n&&(i.height=n+(t?0:h+c)),i.innerWidth=i.width-(a+d),i.innerHeight=i.height-(h+c),i.outerWidth=i.width+u,i.outerHeight=i.height+l,i}}return _}),window.matchesSelector=function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}(),function(t,e){t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(i,r){var n={};n.extend=function(t,e){for(var i in e)t[i]=e[i];return t},n.modulo=function(t,e){return(t%e+e)%e};var e=Array.prototype.slice;n.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},n.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},n.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,o){t=n.makeArray(t);var s=[];return t.forEach(function(t){var e;if(e=t,"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)if(o){r(t,o)&&s.push(t);for(var i=t.querySelectorAll(o),n=0;n<i.length;n++)s.push(i[n])}else s.push(t)}),s},n.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n)}},n.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return n.htmlInit=function(a,h){n.docReady(function(){var t=n.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),t=document.querySelectorAll(".js-"+t),t=n.makeArray(e).concat(n.makeArray(t)),s=o+"-options",r=i.jQuery;t.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(s);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,h,n)})})},n}),function(t,e){t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize)}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=a.prototype=Object.create(t.prototype);t.constructor=a,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),t=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*t.width),-1!=o.indexOf("%")&&(r=r/100*t.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?t.paddingLeft:t.paddingRight,r-=i?t.paddingTop:t.paddingBottom,this.position.x=s,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",i=i?"right":"left",o=this.position.x+t[o];e[s]=this.getXValue(o),e[i]="";o=n?"paddingTop":"paddingBottom",i=n?"top":"bottom",n=n?"bottom":"top",o=this.position.y+t[o];e[i]=this.getYValue(o),e[n]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!o||this.isTransitioning?(i=t-i,e-=n,(n={}).transform=this.getTranslate(i,e),this.transition({to:n,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var h="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:h,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=u[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var l={transitionProperty:"",transitionDuration:"",transitionDelay:""};return t.removeTransitionStyles=function(){this.css(l)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(t,e){"use strict";t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,o,n,s){"use strict";function i(){}var r=t.console,a=t.jQuery,h=0,u={};function l(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}l.namespace="outlayer",l.Item=s,l.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=l.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},l.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),t=e&&e[1],e=e&&e[2];if(!t.length)return 0;t=parseFloat(t);e=m[e]||1;return t*e}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,s=t.length;function r(){++o==s&&n()}t&&s?(o=0,t.forEach(function(t){t.once(e,r)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((e=a.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(l,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},l.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},l.create=function(t,e){var i=c(l);return i.defaults=n.extend({},l.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},l.compatOptions),i.namespace=t,i.data=l.data,i.Item=c(s),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var m={ms:1,s:1e3};return l.Item=s,l}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=e(t.Outlayer)}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=e(t.getSize,t.Outlayer)}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";t=e.prototype;return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},t.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&a(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),e={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,s=i+n.col,r=n.col;r<s;r++)this.colYs[r]=o;return e},t._getTopColPosition=function(t){var e=this._getTopColGroup(t),t=Math.min.apply(Math,e);return{col:e.indexOf(t),y:t}},t._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},t._getColGroupY=function(t,e){if(e<2)return this.colYs[t];e=this.colYs.slice(t,t+e);return Math.max.apply(Math,e)},t._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=a(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(t/this.columnWidth);o-=t%this.columnWidth?0:1,o=Math.min(this.cols-1,o);for(var s=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,r=n;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){e(t.ModulaIsotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var r=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},t}),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("fitRows"),t=t.prototype;t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t._getContainerSize=function(){return{height:this.maxY}}}(),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("vertical",{horizontalAlignment:0}),t=t.prototype;t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t._getContainerSize=function(){return{height:this.y}}}(),function(t,e){t.ModulaIsotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window,function(t,i,e,n,s,o,r){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=r;o=u.prototype;o._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},o.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},o._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},o._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},o.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},o._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},o.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},o._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},o._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},o._filter=function(t){for(var e=(e=this.options.filter)||"*",i=[],n=[],o=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a,h=t[r];h.isIgnored||((a=s(h))&&i.push(h),a&&h.isHidden?n.push(h):a||h.isHidden||o.push(h))}return{matches:i,needReveal:n,needHide:o}},o._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},o.updateSortData=function(t){t=t?(t=s.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},o._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=l(i)}},o._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()};var l=function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),s=u.sortDataParsers[e[1]];return t=s?function(t){return t&&s(o(t))}:function(t){return t&&o(t)}};u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},o._sort=function(){var t,r,a;this.options.sortBy&&(t=s.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),r=this.sortHistory,a=this.options.sortAscending,t=function(t,e){for(var i=0;i<r.length;i++){var n=r[i],o=t.sortData[n],s=e.sortData[n];if(s<o||o<s)return(s<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0},this.filteredItems.sort(t))},o._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},o._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},o._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},o._manageStamp=function(t){this._mode()._manageStamp(t)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(t){t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},o.prepended=function(t){var e=this._itemize(t);e.length&&(this._resetLayout(),this._manageStamps(),t=this._filterRevealAdded(e),this.layoutItems(this.filteredItems),this.filteredItems=t.concat(this.filteredItems),this.items=e.concat(this.items))},o._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var d=o.remove;return o.remove=function(t){t=s.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];s.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;e=t.apply(this,e);return this.options.transitionDuration=i,e},o.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u});
|
2 |
-
!function(t,i){t.Packery=t.Packery||{},t.Packery.Rect=i()}(window,function(){function a(t){for(var i in a.defaults)this[i]=a.defaults[i];for(i in t)this[i]=t[i]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,h=t.y+t.height;return this.x<s&&i>t.x&&this.y<h&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,h=this.y+this.height,n=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),n<s&&(i=new a({x:n,y:this.y,width:s-n,height:this.height}),e.push(i)),r<h&&(i=new a({x:this.x,y:r,width:this.width,height:h-r}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,i){t=t.Packery=t.Packery||{};t.Packer=i(t.Rect)}(window,function(i){function t(t,i,e){this.width=t||0,this.height=i||0,this.sortDirection=e||"downwardLeftToRight",this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x,t.y=i.y,this.placed(t)},e.placed=function(t){for(var i=[],e=0;e<this.spaces.length;e++){var s=this.spaces[e],h=s.getMaximalFreeRects(t);h?i.push.apply(i,h):i.push(s)}this.spaces=i,this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var i=0,e=t[i];t:for(;e;){for(var s=0,h=t[i+s];h;){if(h==e)s++;else{if(h.contains(e)){t.splice(i,1),e=t[i];continue t}e.contains(h)?t.splice(i+s,1):s++}h=t[i+s]}e=t[++i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}),function(t,i){t.Packery.Item=i(t.Outlayer,t.Packery.Rect)}(window,function(t,i){function e(){t.Item.apply(this,arguments)}var s="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",h=e.prototype=Object.create(t.Item.prototype),n=h._create;h._create=function(){n.call(this),this.rect=new i};var r=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):r.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(t,i){t.Packery=i(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(c,t,r,i,e){r.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;e=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}e._create=function(){t.prototype._create.call(this),this.packer=new i,this.shiftPacker=new i,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,i){i&&e.itemDragStart(t.currentTarget)},drag:function(t,i){i&&e.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t,i){i&&e.itemDragEnd(t.currentTarget)}}},e._resetLayout=function(){var t,i,e;this.getSize(),this._getMeasurements(),e=this._getOption("horizontal")?(t=1/0,i=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,i=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=i,this.packer.sortDirection=this.shiftPacker.sortDirection=e,this.packer.reset(),this.maxY=0,this.maxX=0},e._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},e._getItemLayoutPosition=function(t){var i;return this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount?(i=this._getPackMethod(),this.packer[i](t.rect)):this.packer.pack(t.rect),this._setMaxXY(t.rect),t.rect},e.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},e._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},e._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},e._setRectSize=function(t,i){var e=c(t),t=e.outerWidth,e=e.outerHeight;(t||e)&&(t=this._applyGridGutter(t,this.columnWidth),e=this._applyGridGutter(e,this.rowHeight)),i.width=Math.min(t,this.packer.width),i.height=Math.min(e,this.packer.height)},e._applyGridGutter=function(t,i){if(!i)return t+this.gutter;var e=t%(i+=this.gutter);return t=Math[e&&e<1?"round":"ceil"](t/i)*i},e._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e._manageStamp=function(t){var i,e=this.getItem(t);i=e&&e.isPlacing?e.rect:(i=this._getElementOffset(t),new r({x:this._getOption("originLeft")?i.left:i.right,y:this._getOption("originTop")?i.top:i.bottom})),this._setRectSize(t,i),this.packer.placed(i),this._setMaxXY(i)},e.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},e.fit=function(t,i,e){t=this.getItem(t);t&&(this.stamp(t.element),t.enablePlacing(),this.updateShiftTargets(t),i=void 0===i?t.rect.x:i,e=void 0===e?t.rect.y:e,this.shift(t,i,e),this._bindFitEvents(t),t.moveTo(t.rect.x,t.rect.y),this.shiftLayout(),this.unstamp(t.element),this.sortItemsByPosition(),t.disablePlacing())},e._bindFitEvents=function(t){var i=this,e=0;function s(){2==++e&&i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s),this.once("layoutComplete",s)},e.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},e.needsResizeLayout=function(){var t=c(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},e.resizeShiftPercentLayout=function(){var e,i,s,t=this._getItemsForLayout(this.items),h=this._getOption("horizontal"),n=h?"y":"x",r=h?"height":"width",a=h?"rowHeight":"columnWidth",h=h?"innerHeight":"innerWidth",o=this[a];(o=o&&o+this.gutter)?(this._getMeasurements(),e=this[a]+this.gutter,t.forEach(function(t){var i=Math.round(t.rect[n]/o);t.rect[n]=i*e})):(i=c(this.element)[h]+this.gutter,s=this.packer[r],t.forEach(function(t){t.rect[n]=t.rect[n]/s*i})),this.shiftLayout()},e.itemDragStart=function(t){this.isEnabled&&(this.stamp(t),(t=this.getItem(t))&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t)))},e.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);i&&i.isPlacing||(i=this._getElementOffset(t),i=new r({x:e?i.left:i.right,y:s?i.top:i.bottom}),this._setRectSize(t,i),this.shiftPacker.placed(i))},this);var o=this._getOption("horizontal"),i=o?"rowHeight":"columnWidth",c=o?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var g=this[i];if(g=g&&g+this.gutter)for(var i=Math.ceil(t.rect[c]/g),h=Math.floor((this.shiftPacker[c]+this.gutter)/g),u=(h-i)*g,n=0;n<h;n++)this._addShiftTarget(n*g,0,u);else u=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,u);var t=this._getItemsForLayout(this.items),d=this._getPackMethod();t.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i),this.shiftPacker[d](i),this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x,s=o?i.y:i.y+i.height;if(this._addShiftTarget(e,s,u),g)for(var h=Math.round(i[c]/g),n=1;n<h;n++){var r=o?e:i.x+g*n,a=o?i.y+g*n:s;this._addShiftTarget(r,a,u)}},this)},e._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;0!==s&&e<s||(s=t+","+i,-1!=this.shiftTargetKeys.indexOf(s)||(this.shiftTargetKeys.push(s),this.shiftTargets.push({x:t,y:i})))},e.shift=function(t,i,e){var h,n=1/0,r={x:i,y:e};this.shiftTargets.forEach(function(t){var i,e,s,i=(s=(e=r).x-(i=t).x,i=e.y-i.y,Math.sqrt(s*s+i*i));i<n&&(h=t,n=i)}),t.rect.x=h.x,t.rect.y=h.y};e.itemDragMove=function(t,i,e){var s,h=this.isEnabled&&this.getItem(t);function n(){s.shift(h,i,e),h.positionDropPlaceholder(),s.layout()}h&&(i-=this.size.paddingLeft,e-=this.size.paddingTop,s=this,t=new Date,this._itemDragTime&&t-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(n,120)):(n(),this._itemDragTime=t))},e.itemDragEnd=function(t){var i,e,s=this.isEnabled&&this.getItem(t);function h(){2==++i&&(s.element.classList.remove("is-positioning-post-drag"),s.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[s]))}s&&(clearTimeout(this.dragTimeout),s.element.classList.add("is-positioning-post-drag"),i=0,e=this,s.once("layout",h),this.once("layoutComplete",h),s.moveTo(s.rect.x,s.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),s.disablePlacing(),this.unstamp(s.element))},e.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},e.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},e._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart),t[i]("dragMove",e.dragMove),t[i]("dragEnd",e.dragEnd)},e.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},e.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},e._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var a=e.destroy;return e.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},s.Rect=r,s.Packer=i,s}),function(t,i){i(t.ModulaIsotope.LayoutMode,t.Packery)}(window,function(t,i){var e,t=t.create("packery"),s=t.prototype,h={_getElementOffset:!0,_getMeasurement:!0};for(e in i.prototype)h[e]||(s[e]=i.prototype[e]);var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer,this.shiftPacker=this.shiftPacker||new i.Packer,n.apply(this,arguments)};var r=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){return t.rect=t.rect||new i.Rect,r.call(this,t)};var a=s.needsResizeLayout;s.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():a.call(this)};var o=s._getOption;return s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:o.apply(this.isotope,arguments)},t});
|
3 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
4 |
-
!function(l,s,f,m){"use strict";var a,i,r,d,e,c,p,u,n,t,o,h,g;function b(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=u(t.data.options,e)),o=e.$target||f(t.currentTarget).trigger("blur"),(a=f.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?f(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):f('[data-fancybox="'+n+'"]'):[o],(s=f(i).index(o))<0&&(s=0),(a=f.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},f&&(f.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},a=f(l),i=f(s),r=0,d=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=s.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==m)return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e){var o=f.extend(!0,{},t,e);return f.each(e,function(t,e){f.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=u({index:o},f.modulaFancybox.defaults),f.isPlainObject(e)&&(n.opts=u(n.opts,e)),f.modulaFancybox.isMobile&&(n.opts=u(n.opts,n.opts.mobile)),n.id=n.opts.id||++r,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},f.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex==parseInt(e.opts.image_id)&&(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&f.modulaFancybox.close(!0),f("body").addClass("modula-fancybox-active"),!f.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!f.modulaFancybox.isMobile&&s.body.scrollHeight>l.innerHeight&&(f("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-s.documentElement.clientWidth)+"px;}</style>"),f("body").addClass("compensate-for-scrollbar")),n="",f.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=f(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===m?t:o[e]})},addContent:function(t){var r=this,t=f.makeArray(t);f.each(t,function(t,e){var o,n,a,i={},s={};f.isPlainObject(e)?s=(i=e).opts||e:"object"===f.type(e)&&f(e).length?(s=(n=f(e)).data()||{},(s=f.extend(!0,{},s,s.options)).$orig=n,i.src=r.opts.src||s.src||n.attr("href"),i.type||i.src||(i.type="inline",i.src=e)):i={type:"html",src:e+""},i.opts=f.extend(!0,{},r.opts,s),f.isArray(s.buttons)&&(i.opts.buttons=s.buttons),f.modulaFancybox.isMobile&&i.opts.mobile&&(i.opts=u(i.opts,i.opts.mobile)),o=i.type||i.opts.type,n=i.src||"",!o&&n&&((s=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="video",i.opts.video.format||(i.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?(o="iframe",i=f.extend(!0,i,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===n.charAt(0)&&(o="inline")),o?i.type=o:r.trigger("objectNeedsType",i),i.contentType||(i.contentType=-1<f.inArray(i.type,["html","inline","ajax"])?"html":i.type),i.index=r.group.length,"auto"==i.opts.smallBtn&&(i.opts.smallBtn=-1<f.inArray(i.type,["html","inline","ajax"])),"auto"===i.opts.toolbar&&(i.opts.toolbar=!i.opts.smallBtn),i.$thumb=i.opts.$thumb||null,i.opts.$trigger&&i.index===r.opts.index&&(i.$thumb=i.opts.$trigger.find("img:first"),i.$thumb.length&&(i.opts.$orig=i.opts.$trigger)),i.$thumb&&i.$thumb.length||!i.opts.$orig||(i.$thumb=i.opts.$orig.find("img:first")),i.$thumb&&!i.$thumb.length&&(i.$thumb=null),i.thumb=i.opts.thumb||(i.$thumb?i.$thumb[0].src:null),"function"===f.type(i.opts.caption)&&(i.opts.caption=i.opts.caption.apply(e,[r,i])),"function"===f.type(r.opts.caption)&&(i.opts.caption=r.opts.caption.apply(e,[r,i])),i.opts.caption instanceof f||(i.opts.caption=i.opts.caption===m?"":i.opts.caption+""),"ajax"===i.type&&1<(a=n.split(/\s+/,2)).length&&(i.src=a.shift(),i.opts.filter=a.shift()),i.opts.modal&&(i.opts=f.extend(!0,i.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(i)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=d(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},f.modulaFancybox.isMobile?600:250))}),i.on("keydown.fb",function(t){var e=(f.modulaFancybox?f.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||f(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,i.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),i.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d=this,u=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun))return t=parseInt(t,10),!(!(o=(d.current||d).opts.loop)&&(t<0||u<=t))&&(e=d.firstRun=!Object.keys(d.slides).length,i=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,a=d.createSlide(t),1<u&&((o||a.index<u-1)&&d.createSlide(t+1),(o||0<a.index)&&d.createSlide(t-1)),d.current=a,d.currIndex=a.index,d.currPos=a.pos,d.trigger("beforeShow",e),d.updateControls(),a.forcedDuration=m,f.isNumeric(n)?a.forcedDuration=n:n=a.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),t=d.isMoved(a),a.$slide.addClass("modula-fancybox-slide--current"),e?(a.opts.animationEffect&&n&&d.$refs.container.css("transition-duration",n+"ms"),d.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),d.loadSlide(a)):(s=f.modulaFancybox.getTranslate(i.$slide),r=f.modulaFancybox.getTranslate(d.$refs.stage),f.each(d.slides,function(t,e){f.modulaFancybox.stop(e.$slide,!0)}),i.pos!==a.pos&&(i.isComplete=!1),i.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),t?(c=s.left-(i.pos*s.width+i.pos*i.opts.gutter),f.each(d.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*s.width+e.pos*e.opts.gutter;f.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-r.left+c}),e.pos!==a.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>a.pos?"next":"previous")),p(e.$slide),f.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-a.pos)*s.width+(e.pos-a.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===d.currPos&&d.complete()})})):n&&a.opts.transitionEffect&&(l="modula-fancybox-animated modula-fancybox-fx-"+a.opts.transitionEffect,i.$slide.addClass("modula-fancybox-slide--"+(i.pos>a.pos?"next":"previous")),f.modulaFancybox.animate(i.$slide,l,n,function(){i.$slide.removeClass(l).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),a.isLoaded?d.revealContent(a):d.loadSlide(a)),void d.preload("image"))},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=f('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=f.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r=this,l=r.current,c=l.$content,d=f.modulaFancybox.getTranslate(l.$slide).width,u=f.modulaFancybox.getTranslate(l.$slide).height,p=l.width,h=l.height;r.isAnimating||r.isMoved()||!c||"image"!=l.type||!l.isLoaded||l.hasError||(r.isAnimating=!0,f.modulaFancybox.stop(c),t=t===m?.5*d:t,e=e===m?.5*u:e,(n=f.modulaFancybox.getTranslate(c)).top-=f.modulaFancybox.getTranslate(l.$slide).top,n.left-=f.modulaFancybox.getTranslate(l.$slide).left,i=p/n.width,s=h/n.height,a=.5*d-.5*p,l=.5*u-.5*h,d<p&&(0<(a=n.left*i-(t*i-t))&&(a=0),a<d-p&&(a=d-p)),u<h&&(0<(l=n.top*s-(e*s-e))&&(l=0),l<u-h&&(l=u-h)),r.updateCursor(p,h),f.modulaFancybox.animate(c,{top:l,left:a,scaleX:i,scaleY:s},o||366,function(){r.isAnimating=!1}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop())},scaleToFit:function(t){var e=this,o=e.current,n=o.$content;e.isAnimating||e.isMoved()||!n||"image"!=o.type||!o.isLoaded||o.hasError||(e.isAnimating=!0,f.modulaFancybox.stop(n),o=e.getFitPos(o),e.updateCursor(o.width,o.height),f.modulaFancybox.animate(n,{top:o.top,left:o.left,scaleX:o.width/n.width(),scaleY:o.height/n.height()},t||366,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,o,n=t.$content,a=t.$slide,i=t.width||t.opts.width,s=t.height||t.opts.height,r={};return!!(t.isLoaded&&n&&n.length)&&(e=f.modulaFancybox.getTranslate(this.$refs.stage).width,o=f.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(n.css("marginLeft"))+parseFloat(n.css("marginRight")),o-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(n.css("marginTop"))+parseFloat(n.css("marginBottom")),i&&s||(i=e,s=o),e-.5<(i*=n=Math.min(1,e/i,o/s))&&(i=e),o-.5<(s*=n)&&(s=o),"image"===t.type?(r.top=Math.floor(.5*(o-s))+parseFloat(a.css("paddingTop")),r.left=Math.floor(.5*(e-i))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(i/(t=t.opts.width&&t.opts.height?i/s:t.opts.ratio||16/9)<s?s=i/t:s*t<i&&(i=s*t)),r.width=i,r.height=s,r)},update:function(o){var n=this;f.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(f.modulaFancybox.stop(n),f.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),f.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===m?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o=t||this.current;return!!o&&(e=f.modulaFancybox.getTranslate(this.$refs.stage),t=f.modulaFancybox.getTranslate(o.$slide),!o.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(t.top-e.top)||.5<Math.abs(t.left-e.left)))},updateCursor:function(t,e){var o=this,n=o.current,a=o.$refs.container;n&&!o.isClosing&&o.Guestures&&(a.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),e=!!(t=o.canPan(t,e))||o.isZoomable(),a.toggleClass("modula-fancybox-is-zoomable",e),f("[data-fancybox-zoom]").prop("disabled",!e),t?a.addClass("modula-fancybox-can-pan"):e&&("zoom"===n.opts.clickContent||f.isFunction(n.opts.clickContent)&&"zoom"==n.opts.clickContent(n))?a.addClass("modula-fancybox-can-zoomIn"):n.opts.touch&&(n.opts.touch.vertical||1<o.group.length)&&"video"!==n.contentType&&a.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==m&&e!==m?o=t<n.width&&e<n.height:a&&(o=(o=f.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==m&&e!==m?n={width:t,height:e}:o.isComplete&&(n=f.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":f(o.src).length?a.setContent(o,f(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=f.ajax(f.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=f('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=s.createElement("img")).onerror=function(){f(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=f(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=s.createElement("img"),n=f(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$thumb&&n.attr("title",e.$thumb.find("img.pic").attr("title")),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=f('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=f(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===m&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===m&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{f(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}f(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&f.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof f&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=f("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&(e=f("<div>").append(f.trim(e)).contents()),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){f(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),f(e).appendTo(t.$slide),f(e).is("video,audio")&&(f(e).addClass("modula-fancybox-video"),f(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||f(e).attr("width"),t.opts.height=t.opts.height||f(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=f(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e=this,o=t||e.current,n=o.opts.caption,a=o.opts.preventCaptionOverlap,i=e.$refs.caption,t=!1;i.toggleClass("modula-fancybox-caption--separate",a),a&&n&&n.length&&(o.pos!==e.currPos?((i=i.clone().appendTo(i.parent())).children().eq(0).empty().html(n),t=i.outerHeight(!0),i.empty().remove()):e.$caption&&(t=e.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",t||""))},adjustLayout:function(t){var e,o,n,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(o=a.$slide[0].style["padding-bottom"],n=a.$slide.css("padding-bottom"),0<parseFloat(n)&&(t=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(t-a.$slide[0].scrollHeight)<1&&(e=n),a.$slide.css("padding-bottom",o))),a.$content.css("margin-bottom",e))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===m?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),f.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),p(t.$content),void f.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(f.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),p(s),"image"!==t.type&&t.$content.hide().show(0),void f.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i=t.$thumb;return!!(i&&(a=(n=i).find("a.tile-inner")[0])&&a.ownerDocument===s&&(f(".modula-fancybox-container").css("pointer-events","none"),n={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2},a=s.elementFromPoint(n.x,n.y)===a,f(".modula-fancybox-container").css("pointer-events",""),a))&&(o=f.modulaFancybox.getTranslate(i),t=parseFloat(i.css("border-top-width")||0),n=parseFloat(i.css("border-right-width")||0),a=parseFloat(i.css("border-bottom-width")||0),i=parseFloat(i.css("border-left-width")||0),e={top:o.top+t,left:o.left+i,width:o.width-n-i,height:o.height-t-a,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),p(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),f.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(f.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o=this,n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");o.isClosing||((e=(e=!t&&o.current&&o.current.isComplete?o.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):o.$refs.container.find("*:visible")).filter(n).filter(function(){return"hidden"!==f(this).css("visibility")&&!f(this).hasClass("disabled")})).length?(n=e.index(s.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),e.eq(e.length-1).trigger("focus")):(n<0||n==e.length-1)&&(t&&t.preventDefault(),e.eq(0).trigger("focus"))):o.$refs.container.trigger("focus"))},activate:function(){var e=this;f(".modula-fancybox-container").each(function(){var t=f(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){l.cleanUp(t)}var n,a,i,s,r,l=this,c=l.current;return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,d(function(){l.update()}),!1):(l.removeEvents(),i=c.$content,n=c.opts.animationEffect,a=f.isNumeric(e)?e:n?c.opts.animationDuration:0,c.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?f.modulaFancybox.stop(c.$slide):n=!1,c.$slide.siblings().trigger("onReset").remove(),a&&l.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),l.hideLoading(c),l.hideControls(!0),l.updateCursor(),"zoom"!==n||i&&a&&"image"===c.type&&!l.isMoved()&&!c.hasError&&(r=l.getThumbPos(c))||(n="fade"),"zoom"===n?(f.modulaFancybox.stop(i),e={top:(s=f.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/r.width,scaleY:s.height/r.height,width:r.width,height:r.height},"auto"==(s=c.opts.zoomOpacity)&&(s=.1<Math.abs(c.width/c.height-r.width/r.height)),s&&(r.opacity=0),f.modulaFancybox.setTranslate(i,e),p(i),f.modulaFancybox.animate(i,r,a,o)):n&&a?f.modulaFancybox.animate(c.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o=this,n=o.current.opts.$orig;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current.opts.backFocus&&(n&&n.length&&n.is(":visible")||(n=o.$trigger),n&&n.length&&(e=l.scrollX,t=l.scrollY,n.trigger("focus"),f("html, body").scrollTop(t).scrollLeft(e))),o.current=null,(o=f.modulaFancybox.getInstance())?o.activate():(f("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),f("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,e=e&&e.opts?e:a.current;if(e?n.unshift(e):e=a,n.unshift(a),f.isFunction(e.opts[t])&&(o=e.opts[t].apply(e,n)),!1===o)return o;("afterClose"!==t&&a.$refs?a.$refs.container:i).trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),f(s.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=(t.current||t).opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),f.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=f('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===f.type(t)?e[t].apply(e,o):"function"===f.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),i.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=s.createElement("div"),l.getComputedStyle&&l.getComputedStyle(t)&&l.getComputedStyle(t).getPropertyValue("transform")&&!(s.documentMode&&s.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===m&&e.top===m||(o=(e.left===m?t.position():e).left+"px, "+(e.top===m?t.position():e).top+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==m&&e.scaleY!==m?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==m&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==m&&(n.opacity=e.opacity),e.width!==m&&(n.width=e.width),e.height!==m&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;f.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),f.isNumeric(n)&&e.css("transition-duration",""),f.isPlainObject(o)?o.scaleX!==m&&o.scaleY!==m&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),f.isFunction(a)&&a(t))}),f.isNumeric(n)&&e.css("transition-duration",n+"ms"),f.isPlainObject(o)?(o.scaleX!==m&&o.scaleY!==m&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),f.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},f.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},b):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},b),this},i.on("click.fb-start","[data-fancybox]",b),i.on("click.fb-start","[data-fancybox-trigger]",function(t){f('[data-fancybox="'+f(this).attr("data-fancybox-trigger")+'"]').eq(f(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:f(this)})}),o=".modula-fancybox-button",h="modula-fancybox-focus",g=null,i.on("mousedown mouseup focus blur",o,function(t){switch(t.type){case"mousedown":g=f(this);break;case"mouseup":g=null;break;case"focusin":f(o).removeClass(h),f(this).is(g)||f(this).is("[disabled]")||f(this).addClass(h);break;case"focusout":f(o).removeClass(h)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(d,l,u){"use strict";function p(t){var e,o=[];for(e in t=(t=t.originalEvent||t||d.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?o.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&o.push({x:t[e].clientX,y:t[e].clientY});return o}function h(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||u.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function f(t){for(var e,o,n,a=!1;e=t.get(0),o=n=o=void 0,o=d.getComputedStyle(e)["overflow-y"],n=d.getComputedStyle(e)["overflow-x"],o=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,e=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(a=o||e)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return a}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",u.proxy(e,"ontouchstart"))}var m=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(t){return d.setTimeout(t,1e3/60)},g=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.mozCancelAnimationFrame||d.oCancelAnimationFrame||function(t){d.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),u(l).off(".fb.touch"),t.requestId&&(g(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=u(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=p(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=u.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=u.modulaFancybox.getTranslate(i),e.stagePos=u.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,u(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",u.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",u.proxy(e,"ontouchmove")),u.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),u.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=f(o)||f(o.parent()),u.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(u.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,u.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-u(d).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-u(d).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=h(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=p(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=h(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=h(e.newPoints[0],e.startPoints[0],"y"),e.distance=h(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var a=this,i=a.instance,e=a.isSwiping,o=a.sliderStartPos.left||0;if(!0!==e)"x"==e&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?o+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?o-=Math.pow(-a.distanceX,.8):o+=a.distanceX),a.sliderLastPos={top:"x"==e?0:a.sliderStartPos.top+a.distanceY,left:o},a.requestId&&(g(a.requestId),a.requestId=null),a.requestId=m(function(){a.sliderLastPos&&(u.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;u.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<u(d).width()?a.isSwiping="x":(o=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<o&&o<135?"y":"x"),"y"===a.isSwiping&&u.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,u.each(i.slides,function(t,e){var o,n;u.modulaFancybox.stop(e.$slide),o=u.modulaFancybox.getTranslate(e.$slide),n=u.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),u.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;h(t.newPoints[0],t.realPoints[0])<(u.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,t=Math.max(0,.5*e-.5*l),i=Math.max(0,.5*o-.5*c),l=Math.min(e-l,.5*e-.5*l),c=Math.min(o-c,.5*o-.5*c);return 0<n&&t<d&&(d=t-1+Math.pow(-t+s+n,.8)||0),n<0&&d<l&&(d=l+1-Math.pow(l-s-n,.8)||0),0<a&&i<u&&(u=i-1+Math.pow(-i+r+a,.8)||0),a<0&&u<c&&(u=c+1-Math.pow(c-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=h(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,e=(n-l)*t.percentageOfImageAtPinchPointY,o=(t.newPoints[0].x+t.newPoints[1].x)/2-u(d).scrollLeft(),n=(t.newPoints[0].y+t.newPoints[1].y)/2-u(d).scrollTop(),o=o-t.centerPointStartX,s={top:i+(e+(n-t.centerPointStartY)),left:a+(c+o),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=s,t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=p(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),u(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(g(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),i="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(u.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):i&&0<o.distanceX?n=o.instance.previous(300):i&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o=this;o.contentLastPos&&(e=!1===o.opts.momentum||350<o.dMs?(t=o.contentLastPos.left,o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,o.contentLastPos.top+500*o.velocityY),(e=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,e.height=o.contentStartPos.height,u.modulaFancybox.animate(o.$content,e,366))},o.prototype.endZooming=function(){var t,e,o,n=this,a=n.instance.current,i=n.newWidth,s=n.newHeight;n.contentLastPos&&(t=n.contentLastPos.left,o={top:e=n.contentLastPos.top,left:t,width:i,height:s,scaleX:1,scaleY:1},u.modulaFancybox.setTranslate(n.$content,o),i<n.canvasWidth&&s<n.canvasHeight?n.instance.scaleToFit(150):i>a.width||s>a.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(s=n.limitPosition(t,e,i,s),u.modulaFancybox.animate(n.$content,s,150)))},o.prototype.onTap=function(e){function t(t){if(t=s.opts[t],u.isFunction(t)&&(t=t.apply(i,[s,e])),t)switch(t){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var o,n=this,a=u(e.target),i=n.instance,s=i.current,r=e&&p(e)||n.startPoints,l=r[0]?r[0].x-u(d).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-u(d).scrollTop()-n.stagePos.top:0;if((!e.originalEvent||2!=e.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))o="Outside";else if(a.is(".modula-fancybox-slide"))o="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+o)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+o]&&s.opts["dblclick"+o]!==s.opts["click"+o]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+o)},500):t("click"+o);return this}},u(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(i,s){"use strict";s.extend(!0,s.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}s.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=s('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&s.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),s(i).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){e=e&&e.SlideShow;n?e&&o.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.fb":function(t,e,o){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.SlideShow;!e||!o.opts.slideShow||80!==a&&32!==a||s(i.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(i).on("visibilitychange",function(){var t=s.modulaFancybox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(i.hidden?t.clear():t.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){e=e&&e.Thumbs;e&&e.isVisible&&e.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.Thumbs;e&&e.isActive&&71===a&&(n.preventDefault(),e.toggle())},"beforeClose.fb":function(t,e){e=e&&e.Thumbs;e&&e.isVisible&&!1!==e.opts.hideOnClose&&e.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var a,e,i=o.modulaFancybox.getInstance(),s=i.current||null,r="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";s&&("function"===o.type(s.opts.share.url)&&(a=s.opts.share.url.apply(s,[i,s])),o.each(s.opts.modulaShare,function(t,e){var o=(s.opts.lightboxEmailMessage.length?s.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,s.src),n=null!=jQuery(s.$image).attr("title")?jQuery(s.$image).attr("title"):"";""==n&&(n=i.$caption.text()),r+=s.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===s.type?encodeURIComponent(s.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(a)).replace(/\{\{descr\}\}/g,encodeURIComponent(n)).replace(/\{\{subject\}\}/g,encodeURIComponent(s.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),r=(r+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},String(a).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:i.translate(i,r),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,n){"use strict";function a(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){return!!t&&(""!==(t=(t=(t.current||t).opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&t)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.modulaFancybox.defaults.hash&&(n(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(a(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),n(i).on("hashchange.fb",function(){var t=a(),o=null;n.each(n(".modula-fancybox-container").get().reverse(),function(t,e){e=n(e).data("modulaFancyBox");if(e&&e.currentHash)return o=e,!1}),o?o.currentHash===t.gallery+"-"+t.index||1===t.index&&o.currentHash==t.gallery||(o.currentHash=null,o.close()):""!==t.gallery&&e(t)}),setTimeout(function(){n.modulaFancybox.getInstance()||e(a())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
5 |
-
!function(e,t){t=t(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window,function(a,m){"use strict";if(m.getElementsByClassName){var z,n,i,t,s,o,y=m.documentElement,r=a.Date,l=a.HTMLPictureElement,c="addEventListener",h="getAttribute",d=a[c],u=a.setTimeout,f=a.requestAnimationFrame||u,g=a.requestIdleCallback,v=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],C={},b=Array.prototype.forEach,A=function(e,t){return C[t]||(C[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),C[t].test(e[h]("class")||"")&&C[t]},E=function(e,t){A(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)},_=function(e,t){(t=A(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))},w=function(t,n,e){var a=e?c:"removeEventListener";e&&w(t,n),p.forEach(function(e){t[a](e,n)})},M=function(e,t,n,a,i){var s=m.createEvent("Event");return(n=n||{}).instance=ue,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},N=function(e,t){var n;!l&&(n=a.picturefill||z.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},W=function(e,t,n){for(n=n||e.offsetWidth;n<z.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(s=[],o=t=[],he._lsFlush=ye,he),e=function(n,e){return e?function(){T(n)}:function(){var e=this,t=arguments;T(function(){n.apply(e,t)})}},B=function(e){
|
6 |
-
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);t=t.getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)}),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",i={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(i.width=o.width,i.left=0,a){case"top":i.top=0;break;case"middle":i.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":i.bottom=0}else switch(i.height=o.height,i.top=0,h){case"left":i.left=0;break;case"center":i.left=0-(o.height*s-o.width)/2;break;case"right":i.right=0}e.css(i),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t="//www.facebook.com/sharer.php?u="+u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o="mailto:?subject="+i+"&body="+encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
1 |
+
!function(t,e){t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(h,u,l){(l=l||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[h]=function(t){if("string"!=typeof t)return a=t,this.each(function(t,e){var i=l.data(e,h);i?(i.option(a),i._init()):(i=new u(e,a),l.data(e,h,i))}),this;var n,o,s,r,a,e=i.call(arguments,1);return o=e,r="$()."+h+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=l.data(e,h);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,o),s=void 0===s?i:s):d(r+" is not a valid method"):d(h+" not initialized. Cannot call methods, i.e. "+r)}),void 0!==s?s:t},s(l))}function s(t){!t||t&&t.bridget||(t.bridget=o)}return s(e||t.jQuery),o}),function(t){function e(){}t.EvEmitter=((t=e.prototype).on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},t.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},t.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e)}("undefined"!=typeof window?window:this),function(t){window.getSize=t()}(function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},f=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=f.length;function g(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var y,v=!1;function _(t){if(v||(v=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(d=document.body||document.documentElement).appendChild(c),l=g(c),y=200==Math.round(m(l.width)),_.isBoxSizeOuter=y,d.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=g(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<p;e++)t[f[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,o=0;o<p;o++){var s=f[o],r=e[s],r=parseFloat(r);i[s]=isNaN(r)?0:r}var a=i.paddingLeft+i.paddingRight,h=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,l=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,c=i.borderTopWidth+i.borderBottomWidth,t=n&&y,n=m(e.width);!1!==n&&(i.width=n+(t?0:a+d));n=m(e.height);return!1!==n&&(i.height=n+(t?0:h+c)),i.innerWidth=i.width-(a+d),i.innerHeight=i.height-(h+c),i.outerWidth=i.width+u,i.outerHeight=i.height+l,i}}return _}),window.matchesSelector=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}}(),function(t,e){t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(i,r){var h={};h.extend=function(t,e){for(var i in e)t[i]=e[i];return t},h.modulo=function(t,e){return(t%e+e)%e};var e=Array.prototype.slice;h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,o){t=h.makeArray(t);var s=[];return t.forEach(function(t){var e;if(e=t,"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)if(o){r(t,o)&&s.push(t);for(var i=t.querySelectorAll(o),n=0;n<i.length;n++)s.push(i[n])}else s.push(t)}),s},h.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,i=this;this[s]=setTimeout(function(){o.apply(i,e),delete i[s]},n)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return h.htmlInit=function(r,a){h.docReady(function(){var t=h.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),t=h.makeArray(e).concat(h.makeArray(t)),o=n+"-options",s=i.jQuery;t.forEach(function(e){var t=e.getAttribute(n)||e.getAttribute(o);try{i=t&&JSON.parse(t)}catch(t){return void(u&&u.error("Error parsing "+n+" on "+e.className+": "+t))}var i=new r(e,i);s&&s.data(e,a,i)})})},h}),function(t,e){t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize)}(window,function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=a.prototype=Object.create(t.prototype);t.constructor=a,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),t=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*t.width),-1!=o.indexOf("%")&&(r=r/100*t.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?t.paddingLeft:t.paddingRight,r-=i?t.paddingTop:t.paddingBottom,this.position.x=s,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",s=this.position.x+t[i?"paddingLeft":"paddingRight"];e[i?"left":"right"]=this.getXValue(s),e[o]="";o=n?"bottom":"top",t=this.position.y+t[n?"paddingTop":"paddingBottom"];e[n?"top":"bottom"]=this.getYValue(t),e[o]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!o||this.isTransitioning?((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var h="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:h,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=u[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var l={transitionProperty:"",transitionDuration:"",transitionDelay:""};return t.removeTransitionStyles=function(){this.css(l)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}),function(t,e){"use strict";t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,o,n,s){"use strict";function i(){}var r=t.console,a=t.jQuery,h=0,u={};function l(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(u[e]=this)._create(),this._getOption("initLayout")&&this.layout()):r&&r.error("Bad element for "+this.constructor.namespace+": "+(i||t))}l.namespace="outlayer",l.Item=s,l.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=l.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},l.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=new i(e[o],this);n.push(s)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),t=e&&e[1],e=e&&e[2];if(!t.length)return 0;t=parseFloat(t);e=m[e]||1;return t*e}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,s=t.length;function r(){++o==s&&n()}t&&s?(o=0,t.forEach(function(t){t.once(e,r)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((e=a.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(l,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},l.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&u[t]},l.create=function(t,e){var i=c(l);return i.defaults=n.extend({},l.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},l.compatOptions),i.namespace=t,i.data=l.data,i.Item=c(s),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var m={ms:1,s:1e3};return l.Item=s,l}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.Item=e(t.Outlayer)}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){t.ModulaIsotope=t.ModulaIsotope||{},t.ModulaIsotope.LayoutMode=e(t.getSize,t.Outlayer)}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,a){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";t=e.prototype;return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},t.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&a(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),e={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,s=i+n.col,r=n.col;r<s;r++)this.colYs[r]=o;return e},t._getTopColPosition=function(t){var e=this._getTopColGroup(t),t=Math.min.apply(Math,e);return{col:e.indexOf(t),y:t}},t._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},t._getColGroupY=function(t,e){if(e<2)return this.colYs[t];e=this.colYs.slice(t,t+e);return Math.max.apply(Math,e)},t._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=a(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(t/this.columnWidth);o-=t%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),s=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,r=n;r<=o;r++)this.colYs[r]=Math.max(s,this.colYs[r])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){e(t.ModulaIsotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var s=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var r=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},t}),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("fitRows"),t=t.prototype;t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t._getContainerSize=function(){return{height:this.maxY}}}(),function(){"use strict";var t=window.ModulaIsotope.LayoutMode.create("vertical",{horizontalAlignment:0}),t=t.prototype;t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t._getContainerSize=function(){return{height:this.y}}}(),function(t,e){t.ModulaIsotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.ModulaIsotope.Item,t.ModulaIsotope.LayoutMode)}(window,function(t,i,e,n,s,o,r){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("modulaisotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=o,u.LayoutMode=r;o=u.prototype;o._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},o.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},o._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},o._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?s.extend(e.options,i):i,this.modes[t]=new e(this)},o.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},o._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},o.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},o._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},o._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},o._filter=function(t){for(var e=this.options.filter,i=[],n=[],o=[],s=this._getFilterTest(e=e||"*"),r=0;r<t.length;r++){var a,h=t[r];h.isIgnored||((a=s(h))&&i.push(h),a&&h.isHidden?n.push(h):a||h.isHidden||o.push(h))}return{matches:i,needReveal:n,needHide:o}},o._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},o.updateSortData=function(t){t=t?(t=s.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},o._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=l(i)}},o._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()};var l=function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),s=u.sortDataParsers[e[1]];return t=s?function(t){return t&&s(o(t))}:function(t){return t&&o(t)}};u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},o._sort=function(){var t,r,a;this.options.sortBy&&(t=s.makeArray(this.options.sortBy),this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory)),r=this.sortHistory,a=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<r.length;i++){var n=r[i],o=t.sortData[n],s=e.sortData[n];if(s<o||o<s)return(s<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0}))},o._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},o._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},o._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},o._manageStamp=function(t){this._mode()._manageStamp(t)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(t){t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},o.prepended=function(t){var e=this._itemize(t);e.length&&(this._resetLayout(),this._manageStamps(),t=this._filterRevealAdded(e),this.layoutItems(this.filteredItems),this.filteredItems=t.concat(this.filteredItems),this.items=e.concat(this.items))},o._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var d=o.remove;return o.remove=function(t){t=s.makeArray(t);var e=this.getItems(t);d.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];s.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;e=t.apply(this,e);return this.options.transitionDuration=i,e},o.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u});
|
2 |
+
!function(t,i){t.Packery=t.Packery||{},t.Packery.Rect=i()}(window,function(){function a(t){for(var i in a.defaults)this[i]=a.defaults[i];for(i in t)this[i]=t[i]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},t.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,s=t.x+t.width,h=t.y+t.height;return this.x<s&&i>t.x&&this.y<h&&e>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,e=[],s=this.x+this.width,h=this.y+this.height,n=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(i=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),e.push(i)),n<s&&(i=new a({x:n,y:this.y,width:s-n,height:this.height}),e.push(i)),r<h&&(i=new a({x:this.x,y:r,width:this.width,height:h-r}),e.push(i)),this.x<t.x&&(i=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),e.push(i)),e},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,i){t=t.Packery=t.Packery||{};t.Packer=i(t.Rect)}(window,function(i){function t(t,i,e){this.width=t||0,this.height=i||0,this.sortDirection=e||"downwardLeftToRight",this.reset()}var e=t.prototype;e.reset=function(){this.spaces=[];var t=new i({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=s[this.sortDirection]||s.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x,t.y=i.y,this.placed(t)},e.placed=function(t){for(var i=[],e=0;e<this.spaces.length;e++){var s=this.spaces[e],h=s.getMaximalFreeRects(t);h?i.push.apply(i,h):i.push(s)}this.spaces=i,this.mergeSortSpaces()},e.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var i=0,e=t[i];t:for(;e;){for(var s=0,h=t[i+s];h;){if(h==e)s++;else{if(h.contains(e)){t.splice(i,1),e=t[i];continue t}e.contains(h)?t.splice(i+s,1):s++}h=t[i+s]}e=t[++i]}return t};var s={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return t}),function(t,i){t.Packery.Item=i(t.Outlayer,t.Packery.Rect)}(window,function(t,i){function e(){t.Item.apply(this,arguments)}var s="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",h=e.prototype=Object.create(t.Item.prototype),n=h._create;h._create=function(){n.call(this),this.rect=new i};var r=h.moveTo;return h.moveTo=function(t,i){var e=Math.abs(this.position.x-t),s=Math.abs(this.position.y-i);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&s<1?this.goTo(t,i):r.apply(this,arguments)},h.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&s&&(this.element.style[s]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},h.disablePlacing=function(){this.isPlacing=!1},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},h.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},h.positionDropPlaceholder=function(){this.dropPlaceholder.style[s]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},h.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(t,i){t.Packery=i(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(c,t,r,i,e){r.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=t.create("packery");s.Item=e;e=s.prototype;function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function n(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}e._create=function(){t.prototype._create.call(this),this.packer=new i,this.shiftPacker=new i,this.isEnabled=!0,this.dragItemCount=0;var e=this;this.handleDraggabilly={dragStart:function(){e.itemDragStart(this.element)},dragMove:function(){e.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){e.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,i){i&&e.itemDragStart(t.currentTarget)},drag:function(t,i){i&&e.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t,i){i&&e.itemDragEnd(t.currentTarget)}}},e._resetLayout=function(){var t,i,e;this.getSize(),this._getMeasurements(),e=this._getOption("horizontal")?(t=1/0,i=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,i=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=i,this.packer.sortDirection=this.shiftPacker.sortDirection=e,this.packer.reset(),this.maxY=0,this.maxX=0},e._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},e._getItemLayoutPosition=function(t){var i;return this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount?(i=this._getPackMethod(),this.packer[i](t.rect)):this.packer.pack(t.rect),this._setMaxXY(t.rect),t.rect},e.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},e._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},e._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},e._setRectSize=function(t,i){var e=c(t),t=e.outerWidth,e=e.outerHeight;(t||e)&&(t=this._applyGridGutter(t,this.columnWidth),e=this._applyGridGutter(e,this.rowHeight)),i.width=Math.min(t,this.packer.width),i.height=Math.min(e,this.packer.height)},e._applyGridGutter=function(t,i){if(!i)return t+this.gutter;var e=t%(i+=this.gutter);return t=Math[e&&e<1?"round":"ceil"](t/i)*i},e._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e._manageStamp=function(t){var i,e=this.getItem(t);i=e&&e.isPlacing?e.rect:(i=this._getElementOffset(t),new r({x:this._getOption("originLeft")?i.left:i.right,y:this._getOption("originTop")?i.top:i.bottom})),this._setRectSize(t,i),this.packer.placed(i),this._setMaxXY(i)},e.sortItemsByPosition=function(){var t=this._getOption("horizontal")?n:h;this.items.sort(t)},e.fit=function(t,i,e){t=this.getItem(t);t&&(this.stamp(t.element),t.enablePlacing(),this.updateShiftTargets(t),i=void 0===i?t.rect.x:i,e=void 0===e?t.rect.y:e,this.shift(t,i,e),this._bindFitEvents(t),t.moveTo(t.rect.x,t.rect.y),this.shiftLayout(),this.unstamp(t.element),this.sortItemsByPosition(),t.disablePlacing())},e._bindFitEvents=function(t){var i=this,e=0;function s(){2==++e&&i.dispatchEvent("fitComplete",null,[t])}t.once("layout",s),this.once("layoutComplete",s)},e.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},e.needsResizeLayout=function(){var t=c(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[i]!=this.size[i]},e.resizeShiftPercentLayout=function(){var e,i,s,t=this._getItemsForLayout(this.items),h=this._getOption("horizontal"),n=h?"y":"x",r=h?"height":"width",a=h?"rowHeight":"columnWidth",h=h?"innerHeight":"innerWidth",o=this[a];(o=o&&o+this.gutter)?(this._getMeasurements(),e=this[a]+this.gutter,t.forEach(function(t){var i=Math.round(t.rect[n]/o);t.rect[n]=i*e})):(i=c(this.element)[h]+this.gutter,s=this.packer[r],t.forEach(function(t){t.rect[n]=t.rect[n]/s*i})),this.shiftLayout()},e.itemDragStart=function(t){this.isEnabled&&(this.stamp(t),(t=this.getItem(t))&&(t.enablePlacing(),t.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(t)))},e.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var i=this.getItem(t);i&&i.isPlacing||(i=this._getElementOffset(t),i=new r({x:e?i.left:i.right,y:s?i.top:i.bottom}),this._setRectSize(t,i),this.shiftPacker.placed(i))},this);var o=this._getOption("horizontal"),i=o?"rowHeight":"columnWidth",c=o?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var g=this[i];if(g=g&&g+this.gutter)for(var i=Math.ceil(t.rect[c]/g),h=Math.floor((this.shiftPacker[c]+this.gutter)/g),u=(h-i)*g,n=0;n<h;n++)this._addShiftTarget(n*g,0,u);else u=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,u);var t=this._getItemsForLayout(this.items),d=this._getPackMethod();t.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i),this.shiftPacker[d](i),this._addShiftTarget(i.x,i.y,u);var e=o?i.x+i.width:i.x,s=o?i.y:i.y+i.height;if(this._addShiftTarget(e,s,u),g)for(var h=Math.round(i[c]/g),n=1;n<h;n++){var r=o?e:i.x+g*n,a=o?i.y+g*n:s;this._addShiftTarget(r,a,u)}},this)},e._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;0!==s&&e<s||(-1!=this.shiftTargetKeys.indexOf(s=t+","+i)||(this.shiftTargetKeys.push(s),this.shiftTargets.push({x:t,y:i})))},e.shift=function(t,i,e){var s,h=1/0,n={x:i,y:e};this.shiftTargets.forEach(function(t){var i,e,i=(e=n.x-(i=t).x,i=n.y-i.y,Math.sqrt(e*e+i*i));i<h&&(s=t,h=i)}),t.rect.x=s.x,t.rect.y=s.y};e.itemDragMove=function(t,i,e){var s,h=this.isEnabled&&this.getItem(t);function n(){s.shift(h,i,e),h.positionDropPlaceholder(),s.layout()}h&&(i-=this.size.paddingLeft,e-=this.size.paddingTop,s=this,t=new Date,this._itemDragTime&&t-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(n,120)):(n(),this._itemDragTime=t))},e.itemDragEnd=function(t){var i,e,s=this.isEnabled&&this.getItem(t);function h(){2==++i&&(s.element.classList.remove("is-positioning-post-drag"),s.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[s]))}s&&(clearTimeout(this.dragTimeout),s.element.classList.add("is-positioning-post-drag"),i=0,e=this,s.once("layout",h),this.once("layoutComplete",h),s.moveTo(s.rect.x,s.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),s.disablePlacing(),this.unstamp(s.element))},e.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},e.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},e._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart),t[i]("dragMove",e.dragMove),t[i]("dragEnd",e.dragEnd)},e.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},e.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},e._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var a=e.destroy;return e.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},s.Rect=r,s.Packer=i,s}),function(t,i){i(t.ModulaIsotope.LayoutMode,t.Packery)}(window,function(t,i){var e,t=t.create("packery"),s=t.prototype,h={_getElementOffset:!0,_getMeasurement:!0};for(e in i.prototype)h[e]||(s[e]=i.prototype[e]);var n=s._resetLayout;s._resetLayout=function(){this.packer=this.packer||new i.Packer,this.shiftPacker=this.shiftPacker||new i.Packer,n.apply(this,arguments)};var r=s._getItemLayoutPosition;s._getItemLayoutPosition=function(t){return t.rect=t.rect||new i.Rect,r.call(this,t)};var a=s.needsResizeLayout;s.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():a.call(this)};var o=s._getOption;return s._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:o.apply(this.isotope,arguments)},t});
|
3 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i;void 0===(i=t.data("jg.captionMouseEvents"))&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t=t<i?i:t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
4 |
+
!function(l,s,f,m){"use strict";var a,i,r,d,e,c,p,u,n,t,o,h,g;function b(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},o=(e=t&&t.data?u(t.data.options,e):e).$target||f(t.currentTarget).trigger("blur"),(a=f.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?f(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):f('[data-fancybox="'+n+'"]'):[o],s=f(i).index(o),(a=f.modulaFancybox.open(i,e,s=s<0?0:s)).$trigger=o))}l.console=l.console||{info:function(t){}},f&&(f.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},a=f(l),i=f(s),r=0,d=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=s.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==m)return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e){var o=f.extend(!0,{},t,e);return f.each(e,function(t,e){f.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=u({index:o},f.modulaFancybox.defaults),f.isPlainObject(e)&&(n.opts=u(n.opts,e)),f.modulaFancybox.isMobile&&(n.opts=u(n.opts,n.opts.mobile)),n.id=n.opts.id||++r,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},f.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex==parseInt(e.opts.image_id)&&(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&f.modulaFancybox.close(!0),f("body").addClass("modula-fancybox-active"),!f.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!f.modulaFancybox.isMobile&&s.body.scrollHeight>l.innerHeight&&(f("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-s.documentElement.clientWidth)+"px;}</style>"),f("body").addClass("compensate-for-scrollbar")),n="",f.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=f(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===m?t:o[e]})},addContent:function(t){var r=this,t=f.makeArray(t);f.each(t,function(t,e){var o,n,a,i={},s={};f.isPlainObject(e)?s=(i=e).opts||e:"object"===f.type(e)&&f(e).length?(s=(n=f(e)).data()||{},(s=f.extend(!0,{},s,s.options)).$orig=n,i.src=r.opts.src||s.src||n.attr("href"),i.type||i.src||(i.type="inline",i.src=e)):i={type:"html",src:e+""},i.opts=f.extend(!0,{},r.opts,s),f.isArray(s.buttons)&&(i.opts.buttons=s.buttons),f.modulaFancybox.isMobile&&i.opts.mobile&&(i.opts=u(i.opts,i.opts.mobile)),o=i.type||i.opts.type,n=i.src||"",!o&&n&&((s=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="video",i.opts.video.format||(i.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?i=f.extend(!0,i,{contentType:"pdf",opts:{iframe:{preload:!(o="iframe")}}}):"#"===n.charAt(0)&&(o="inline")),o?i.type=o:r.trigger("objectNeedsType",i),i.contentType||(i.contentType=-1<f.inArray(i.type,["html","inline","ajax"])?"html":i.type),i.index=r.group.length,"auto"==i.opts.smallBtn&&(i.opts.smallBtn=-1<f.inArray(i.type,["html","inline","ajax"])),"auto"===i.opts.toolbar&&(i.opts.toolbar=!i.opts.smallBtn),i.$thumb=i.opts.$thumb||null,i.opts.$trigger&&i.index===r.opts.index&&(i.$thumb=i.opts.$trigger.find("img:first"),i.$thumb.length&&(i.opts.$orig=i.opts.$trigger)),i.$thumb&&i.$thumb.length||!i.opts.$orig||(i.$thumb=i.opts.$orig.find("img:first")),i.$thumb&&!i.$thumb.length&&(i.$thumb=null),i.thumb=i.opts.thumb||(i.$thumb?i.$thumb[0].src:null),"function"===f.type(i.opts.caption)&&(i.opts.caption=i.opts.caption.apply(e,[r,i])),"function"===f.type(r.opts.caption)&&(i.opts.caption=r.opts.caption.apply(e,[r,i])),i.opts.caption instanceof f||(i.opts.caption=i.opts.caption===m?"":i.opts.caption+""),"ajax"===i.type&&1<(a=n.split(/\s+/,2)).length&&(i.src=a.shift(),i.opts.filter=a.shift()),i.opts.modal&&(i.opts=f.extend(!0,i.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(i)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=d(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},f.modulaFancybox.isMobile?600:250))}),i.on("keydown.fb",function(t){var e=(f.modulaFancybox?f.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||f(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,i.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),i.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d=this,u=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun))return t=parseInt(t,10),!(!(o=(d.current||d).opts.loop)&&(t<0||u<=t))&&(e=d.firstRun=!Object.keys(d.slides).length,i=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,a=d.createSlide(t),1<u&&((o||a.index<u-1)&&d.createSlide(t+1),(o||0<a.index)&&d.createSlide(t-1)),d.current=a,d.currIndex=a.index,d.currPos=a.pos,d.trigger("beforeShow",e),d.updateControls(),a.forcedDuration=m,f.isNumeric(n)?a.forcedDuration=n:n=a.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),t=d.isMoved(a),a.$slide.addClass("modula-fancybox-slide--current"),e?(a.opts.animationEffect&&n&&d.$refs.container.css("transition-duration",n+"ms"),d.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),d.loadSlide(a)):(s=f.modulaFancybox.getTranslate(i.$slide),r=f.modulaFancybox.getTranslate(d.$refs.stage),f.each(d.slides,function(t,e){f.modulaFancybox.stop(e.$slide,!0)}),i.pos!==a.pos&&(i.isComplete=!1),i.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),t?(c=s.left-(i.pos*s.width+i.pos*i.opts.gutter),f.each(d.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*s.width+e.pos*e.opts.gutter;f.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-r.left+c}),e.pos!==a.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>a.pos?"next":"previous")),p(e.$slide),f.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-a.pos)*s.width+(e.pos-a.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===d.currPos&&d.complete()})})):n&&a.opts.transitionEffect&&(l="modula-fancybox-animated modula-fancybox-fx-"+a.opts.transitionEffect,i.$slide.addClass("modula-fancybox-slide--"+(i.pos>a.pos?"next":"previous")),f.modulaFancybox.animate(i.$slide,l,n,function(){i.$slide.removeClass(l).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),a.isLoaded?d.revealContent(a):d.loadSlide(a)),void d.preload("image"))},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=f('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=f.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r=this,l=r.current,c=l.$content,d=f.modulaFancybox.getTranslate(l.$slide).width,u=f.modulaFancybox.getTranslate(l.$slide).height,p=l.width,h=l.height;r.isAnimating||r.isMoved()||!c||"image"!=l.type||!l.isLoaded||l.hasError||(r.isAnimating=!0,f.modulaFancybox.stop(c),t=t===m?.5*d:t,e=e===m?.5*u:e,(n=f.modulaFancybox.getTranslate(c)).top-=f.modulaFancybox.getTranslate(l.$slide).top,n.left-=f.modulaFancybox.getTranslate(l.$slide).left,i=p/n.width,s=h/n.height,a=.5*d-.5*p,l=.5*u-.5*h,d<p&&(a=0<(a=n.left*i-(t*i-t))?0:a)<d-p&&(a=d-p),u<h&&(l=0<(l=n.top*s-(e*s-e))?0:l)<u-h&&(l=u-h),r.updateCursor(p,h),f.modulaFancybox.animate(c,{top:l,left:a,scaleX:i,scaleY:s},o||366,function(){r.isAnimating=!1}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop())},scaleToFit:function(t){var e=this,o=e.current,n=o.$content;e.isAnimating||e.isMoved()||!n||"image"!=o.type||!o.isLoaded||o.hasError||(e.isAnimating=!0,f.modulaFancybox.stop(n),o=e.getFitPos(o),e.updateCursor(o.width,o.height),f.modulaFancybox.animate(n,{top:o.top,left:o.left,scaleX:o.width/n.width(),scaleY:o.height/n.height()},t||366,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,o,n=t.$content,a=t.$slide,i=t.width||t.opts.width,s=t.height||t.opts.height,r={};return!!(t.isLoaded&&n&&n.length)&&(e=f.modulaFancybox.getTranslate(this.$refs.stage).width,o=f.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(n.css("marginLeft"))+parseFloat(n.css("marginRight")),o-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(n.css("marginTop"))+parseFloat(n.css("marginBottom")),i&&s||(i=e,s=o),e-.5<(i*=n=Math.min(1,e/i,o/s))&&(i=e),o-.5<(s*=n)&&(s=o),"image"===t.type?(r.top=Math.floor(.5*(o-s))+parseFloat(a.css("paddingTop")),r.left=Math.floor(.5*(e-i))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(i/(t=t.opts.width&&t.opts.height?i/s:t.opts.ratio||16/9)<s?s=i/t:s*t<i&&(i=s*t)),r.width=i,r.height=s,r)},update:function(o){var n=this;f.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(f.modulaFancybox.stop(n),f.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),f.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===m?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o=t||this.current;return!!o&&(e=f.modulaFancybox.getTranslate(this.$refs.stage),t=f.modulaFancybox.getTranslate(o.$slide),!o.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(t.top-e.top)||.5<Math.abs(t.left-e.left)))},updateCursor:function(t,e){var o=this,n=o.current,a=o.$refs.container;n&&!o.isClosing&&o.Guestures&&(a.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),e=!!(t=o.canPan(t,e))||o.isZoomable(),a.toggleClass("modula-fancybox-is-zoomable",e),f("[data-fancybox-zoom]").prop("disabled",!e),t?a.addClass("modula-fancybox-can-pan"):e&&("zoom"===n.opts.clickContent||f.isFunction(n.opts.clickContent)&&"zoom"==n.opts.clickContent(n))?a.addClass("modula-fancybox-can-zoomIn"):n.opts.touch&&(n.opts.touch.vertical||1<o.group.length)&&"video"!==n.contentType&&a.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==m&&e!==m?o=t<n.width&&e<n.height:a&&(o=(o=f.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==m&&e!==m?n={width:t,height:e}:o.isComplete&&(n=f.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":f(o.src).length?a.setContent(o,f(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=f.ajax(f.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=f('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=s.createElement("img")).onerror=function(){f(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=f(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}(e=!e&&o.length?o[o.length-1]:e)&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=s.createElement("img"),n=f(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$thumb&&n.attr("title",e.$thumb.find("img.pic").attr("title")),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=f('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=f(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===m&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===m&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{f(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}f(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&f.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof f&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=f("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&(e=f("<div>").append(f.trim(e)).contents()),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){f(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),f(e).appendTo(t.$slide),f(e).is("video,audio")&&(f(e).addClass("modula-fancybox-video"),f(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||f(e).attr("width"),t.opts.height=t.opts.height||f(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=f(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e=this,o=t||e.current,n=o.opts.caption,a=o.opts.preventCaptionOverlap,i=e.$refs.caption,t=!1;i.toggleClass("modula-fancybox-caption--separate",a),a&&n&&n.length&&(o.pos!==e.currPos?((i=i.clone().appendTo(i.parent())).children().eq(0).empty().html(n),t=i.outerHeight(!0),i.empty().remove()):e.$caption&&(t=e.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",t||""))},adjustLayout:function(t){var e,o,n,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(o=a.$slide[0].style["padding-bottom"],n=a.$slide.css("padding-bottom"),0<parseFloat(n)&&(t=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(t-a.$slide[0].scrollHeight)<1&&(e=n),a.$slide.css("padding-bottom",o))),a.$content.css("margin-bottom",e))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===m?n:t.forcedDuration,10),"zoom"===(e=c||t.pos!==i.currPos||!n?!1:e)&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,(a="auto"==(a=t.opts.zoomOpacity)?.1<Math.abs(t.width/t.height-l.width/l.height):a)&&(l.opacity=.1,r.opacity=1),f.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),p(t.$content),void f.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(f.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),p(s),"image"!==t.type&&t.$content.hide().show(0),void f.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i=t.$thumb;return!!(i&&(a=(n=i).find("a.tile-inner")[0])&&a.ownerDocument===s&&(f(".modula-fancybox-container").css("pointer-events","none"),n={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2},a=s.elementFromPoint(n.x,n.y)===a,f(".modula-fancybox-container").css("pointer-events",""),a))&&(o=f.modulaFancybox.getTranslate(i),t=parseFloat(i.css("border-top-width")||0),n=parseFloat(i.css("border-right-width")||0),a=parseFloat(i.css("border-bottom-width")||0),i=parseFloat(i.css("border-left-width")||0),e={top:o.top+t,left:o.left+i,width:o.width-n-i,height:o.height-t-a,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),p(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),f.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(f.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o=this,n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");o.isClosing||((e=(e=!t&&o.current&&o.current.isComplete?o.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):o.$refs.container.find("*:visible")).filter(n).filter(function(){return"hidden"!==f(this).css("visibility")&&!f(this).hasClass("disabled")})).length?(n=e.index(s.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),e.eq(e.length-1).trigger("focus")):(n<0||n==e.length-1)&&(t&&t.preventDefault(),e.eq(0).trigger("focus"))):o.$refs.container.trigger("focus"))},activate:function(){var e=this;f(".modula-fancybox-container").each(function(){var t=f(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){l.cleanUp(t)}var n,a,i,s,r,l=this,c=l.current;return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,d(function(){l.update()}),!1):(l.removeEvents(),i=c.$content,n=c.opts.animationEffect,a=f.isNumeric(e)?e:n?c.opts.animationDuration:0,c.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?f.modulaFancybox.stop(c.$slide):n=!1,c.$slide.siblings().trigger("onReset").remove(),a&&l.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),l.hideLoading(c),l.hideControls(!0),l.updateCursor(),"zoom"===(n=!("zoom"!==n||i&&a&&"image"===c.type&&!l.isMoved()&&!c.hasError&&(r=l.getThumbPos(c)))?"fade":n)?(f.modulaFancybox.stop(i),e={top:(s=f.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/r.width,scaleY:s.height/r.height,width:r.width,height:r.height},(s="auto"==(s=c.opts.zoomOpacity)?.1<Math.abs(c.width/c.height-r.width/r.height):s)&&(r.opacity=0),f.modulaFancybox.setTranslate(i,e),p(i),f.modulaFancybox.animate(i,r,a,o)):n&&a?f.modulaFancybox.animate(c.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o=this,n=o.current.opts.$orig;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current.opts.backFocus&&(n=n&&n.length&&n.is(":visible")?n:o.$trigger)&&n.length&&(e=l.scrollX,t=l.scrollY,n.trigger("focus"),f("html, body").scrollTop(t).scrollLeft(e)),o.current=null,(o=f.modulaFancybox.getInstance())?o.activate():(f("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),f("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,e=e&&e.opts?e:a.current;if(e?n.unshift(e):e=a,n.unshift(a),!1===(o=f.isFunction(e.opts[t])?e.opts[t].apply(e,n):o))return o;("afterClose"!==t&&a.$refs?a.$refs.container:i).trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),f(s.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=(t.current||t).opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),f.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=f('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===f.type(t)?e[t].apply(e,o):"function"===f.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),i.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=s.createElement("div"),l.getComputedStyle&&l.getComputedStyle(t)&&l.getComputedStyle(t).getPropertyValue("transform")&&!(s.documentMode&&s.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===m&&e.top===m||(o=(e.left===m?t.position():e).left+"px, "+(e.top===m?t.position():e).top+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==m&&e.scaleY!==m?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==m&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==m&&(n.opacity=e.opacity),e.width!==m&&(n.width=e.width),e.height!==m&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;f.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),f.isNumeric(n)&&e.css("transition-duration",""),f.isPlainObject(o)?o.scaleX!==m&&o.scaleY!==m&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),f.isFunction(a)&&a(t))}),f.isNumeric(n)&&e.css("transition-duration",n+"ms"),f.isPlainObject(o)?(o.scaleX!==m&&o.scaleY!==m&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),f.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},f.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},b):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},b),this},i.on("click.fb-start","[data-fancybox]",b),i.on("click.fb-start","[data-fancybox-trigger]",function(t){f('[data-fancybox="'+f(this).attr("data-fancybox-trigger")+'"]').eq(f(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:f(this)})}),o=".modula-fancybox-button",h="modula-fancybox-focus",g=null,i.on("mousedown mouseup focus blur",o,function(t){switch(t.type){case"mousedown":g=f(this);break;case"mouseup":g=null;break;case"focusin":f(o).removeClass(h),f(this).is(g)||f(this).is("[disabled]")||f(this).addClass(h);break;case"focusout":f(o).removeClass(h)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return"object"===h.type(e=e||"")&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){l=(l="?"==(l=s[e.paramPlace])[0]?l.substring(1):l).split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(d,l,u){"use strict";function p(t){var e,o=[];for(e in t=(t=t.originalEvent||t||d.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?o.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&o.push({x:t[e].clientX,y:t[e].clientY});return o}function h(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||u.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function f(t){for(var e,o,n,a=!1;e=t.get(0),o=n=o=void 0,o=d.getComputedStyle(e)["overflow-y"],n=d.getComputedStyle(e)["overflow-x"],o=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,e=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(a=o||e)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return a}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",u.proxy(e,"ontouchstart"))}var m=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(t){return d.setTimeout(t,1e3/60)},g=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.mozCancelAnimationFrame||d.oCancelAnimationFrame||function(t){d.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),u(l).off(".fb.touch"),t.requestId&&(g(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=u(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=p(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=u.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=u.modulaFancybox.getTranslate(i),e.stagePos=u.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,u(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",u.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",u.proxy(e,"ontouchmove")),u.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),u.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=f(o)||f(o.parent()),u.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(u.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,u.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-u(d).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-u(d).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=h(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=p(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=h(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=h(e.newPoints[0],e.startPoints[0],"y"),e.distance=h(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var a=this,i=a.instance,e=a.isSwiping,o=a.sliderStartPos.left||0;if(!0!==e)"x"==e&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?o+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?o-=Math.pow(-a.distanceX,.8):o+=a.distanceX),a.sliderLastPos={top:"x"==e?0:a.sliderStartPos.top+a.distanceY,left:o},a.requestId&&(g(a.requestId),a.requestId=null),a.requestId=m(function(){a.sliderLastPos&&(u.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;u.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<u(d).width()?a.isSwiping="x":(o=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<o&&o<135?"y":"x"),"y"===a.isSwiping&&u.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,u.each(i.slides,function(t,e){var o,n;u.modulaFancybox.stop(e.$slide),o=u.modulaFancybox.getTranslate(e.$slide),n=u.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),u.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;h(t.newPoints[0],t.realPoints[0])<(u.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,t=Math.max(0,.5*e-.5*l),i=Math.max(0,.5*o-.5*c),l=Math.min(e-l,.5*e-.5*l),c=Math.min(o-c,.5*o-.5*c);return 0<n&&t<d&&(d=t-1+Math.pow(-t+s+n,.8)||0),n<0&&d<l&&(d=l+1-Math.pow(l-s-n,.8)||0),0<a&&i<u&&(u=i-1+Math.pow(-i+r+a,.8)||0),{top:u=a<0&&u<c?c+1-Math.pow(c-r-a,.8)||0:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=h(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,e=(n-l)*t.percentageOfImageAtPinchPointY,o=(t.newPoints[0].x+t.newPoints[1].x)/2-u(d).scrollLeft(),n=(t.newPoints[0].y+t.newPoints[1].y)/2-u(d).scrollTop(),o=o-t.centerPointStartX,s={top:i+(e+(n-t.centerPointStartY)),left:a+(c+o),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=s,t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=p(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),u(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(g(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),i="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(u.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):i&&0<o.distanceX?n=o.instance.previous(300):i&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o=this;o.contentLastPos&&(e=!1===o.opts.momentum||350<o.dMs?(t=o.contentLastPos.left,o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,o.contentLastPos.top+500*o.velocityY),(e=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,e.height=o.contentStartPos.height,u.modulaFancybox.animate(o.$content,e,366))},o.prototype.endZooming=function(){var t,e,o=this,n=o.instance.current,a=o.newWidth,i=o.newHeight;o.contentLastPos&&(t=o.contentLastPos.left,e=o.contentLastPos.top,u.modulaFancybox.setTranslate(o.$content,{top:e,left:t,width:a,height:i,scaleX:1,scaleY:1}),a<o.canvasWidth&&i<o.canvasHeight?o.instance.scaleToFit(150):a>n.width||i>n.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(i=o.limitPosition(t,e,a,i),u.modulaFancybox.animate(o.$content,i,150)))},o.prototype.onTap=function(e){function t(t){if(t=s.opts[t],t=u.isFunction(t)?t.apply(i,[s,e]):t)switch(t){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var o,n=this,a=u(e.target),i=n.instance,s=i.current,r=e&&p(e)||n.startPoints,l=r[0]?r[0].x-u(d).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-u(d).scrollTop()-n.stagePos.top:0;if((!e.originalEvent||2!=e.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))o="Outside";else if(a.is(".modula-fancybox-slide"))o="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+o)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+o]&&s.opts["dblclick"+o]!==s.opts["click"+o]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+o)},500):t("click"+o);return this}},u(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(i,s){"use strict";s.extend(!0,s.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}s.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=s('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&s.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),s(i).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){e=e&&e.SlideShow;n?e&&o.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.fb":function(t,e,o){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.SlideShow;!e||!o.opts.slideShow||80!==a&&32!==a||s(i.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(i).on("visibilitychange",function(){var t=s.modulaFancybox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(i.hidden?t.clear():t.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){e=e&&e.Thumbs;e&&e.isVisible&&e.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.Thumbs;e&&e.isActive&&71===a&&(n.preventDefault(),e.toggle())},"beforeClose.fb":function(t,e){e=e&&e.Thumbs;e&&e.isVisible&&!1!==e.opts.hideOnClose&&e.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var a,e,i=o.modulaFancybox.getInstance(),s=i.current||null,r="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";s&&("function"===o.type(s.opts.share.url)&&(a=s.opts.share.url.apply(s,[i,s])),o.each(s.opts.modulaShare,function(t,e){var o=(s.opts.lightboxEmailMessage.length?s.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,s.src),n=null!=jQuery(s.$image).attr("title")?jQuery(s.$image).attr("title"):"";""==n&&(n=i.$caption.text()),r+=s.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===s.type?encodeURIComponent(s.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(a)).replace(/\{\{descr\}\}/g,encodeURIComponent(n)).replace(/\{\{subject\}\}/g,encodeURIComponent(s.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),r=(r+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},String(a).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:i.translate(i,r),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,n){"use strict";function a(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){return!!t&&(""!==(t=(t=(t.current||t).opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&t)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.modulaFancybox.defaults.hash&&(n(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(a(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),n(i).on("hashchange.fb",function(){var t=a(),o=null;n.each(n(".modula-fancybox-container").get().reverse(),function(t,e){e=n(e).data("modulaFancyBox");if(e&&e.currentHash)return o=e,!1}),o?o.currentHash===t.gallery+"-"+t.index||1===t.index&&o.currentHash==t.gallery||(o.currentHash=null,o.close()):""!==t.gallery&&e(t)}),setTimeout(function(){n.modulaFancybox.getInstance()||e(a())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
5 |
+
!function(e,t){t=t(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window,function(a,m){"use strict";if(m.getElementsByClassName){var z,n,i,t,s,o,y=m.documentElement,r=a.Date,l=a.HTMLPictureElement,c="addEventListener",h="getAttribute",d=a[c],u=a.setTimeout,f=a.requestAnimationFrame||u,g=a.requestIdleCallback,v=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],C={},b=Array.prototype.forEach,A=function(e,t){return C[t]||(C[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),C[t].test(e[h]("class")||"")&&C[t]},E=function(e,t){A(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)},_=function(e,t){(t=A(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))},w=function(t,n,e){var a=e?c:"removeEventListener";e&&w(t,n),p.forEach(function(e){t[a](e,n)})},M=function(e,t,n,a,i){var s=m.createEvent("Event");return(n=n||{}).instance=ue,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},N=function(e,t){var n;!l&&(n=a.picturefill||z.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},W=function(e,t,n){for(n=n||e.offsetWidth;n<z.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(s=[],o=t=[],he._lsFlush=ye,he),e=function(n,e){return e?function(){T(n)}:function(){var e=this,t=arguments;T(function(){n.apply(e,t)})}},B=function(e){var t,n,a=function(){t=null,e()},i=function(){var e=r.now()-n;e<99?u(i,99-e):(g||a)(a)};return function(){n=r.now(),t=t||u(i,99)}};!function(){var e,t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in z=a.lazySizesConfig||a.lazysizesConfig||{},t)e in z||(z[e]=t[e]);a.lazySizesConfig=z,u(function(){z.init&&ze()})}();var F,S,L,R,k,D,H,O,P,$,I,q,j,G,J,K,Q,U,V,X,Y,Z,ee,te,ne,ae,ie,se,oe,re,le,ce,de,ue,fe=(V=/^img$/i,X=/^iframe$/i,Y="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),te=-1,j=pe,J=ee=Z=0,K=z.throttleDelay,Q=z.ricTimeout,U=g&&49<Q?function(){g(Ce,{timeout:Q}),Q!==z.ricTimeout&&(Q=z.ricTimeout)}:e(function(){u(Ce)},!0),ae=e(be),ie=function(e){ae({target:e.target})},se=e(function(e,t,n,a,i){var s,o,r,l;(r=M(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?E(e,z.autosizesClass):e.setAttribute("sizes",a)),n=e[h](z.srcsetAttr),a=e[h](z.srcAttr),i&&(o=(s=e.parentNode)&&v.test(s.nodeName||"")),l=t.firesLoad||"src"in e&&(n||a||o),r={target:e},E(e,z.loadingClass),l&&(clearTimeout(L),L=u(ge,2500),w(e,ie,!0)),o&&b.call(s.getElementsByTagName("source"),Ae),n?e.setAttribute("srcset",n):a&&!o&&(X.test(e.nodeName)?function(t,n){try{t.contentWindow.location.replace(n)}catch(e){t.src=n}}(e,a):e.src=a),i&&(n||o)&&N(e,{src:a})),e._lazyRace&&delete e._lazyRace,_(e,z.lazyClass),T(function(){(!l||e.complete&&1<e.naturalWidth)&&(be(r),e._lazyCache=!0,u(function(){"_lazyCache"in e&&delete e._lazyCache},9))},!0)}),re=function(){var e;S||(r.now()-k<999?u(re,999):(e=B(function(){z.loadMode=3,ne()}),S=!0,z.loadMode=3,ne(),d("scroll",function(){3==z.loadMode&&(z.loadMode=2),e()},!0)))},{_:function(){k=r.now(),ue.elements=m.getElementsByClassName(z.lazyClass),F=m.getElementsByClassName(z.lazyClass+" "+z.preloadClass),d("scroll",ne,!0),d("resize",ne,!0),a.MutationObserver?new MutationObserver(ne).observe(y,{childList:!0,subtree:!0,attributes:!0}):(y[c]("DOMNodeInserted",ne,!0),y[c]("DOMAttrModified",ne,!0),setInterval(ne,999)),d("hashchange",ne,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){m[c](e,ne,!0)}),/d$|^c/.test(m.readyState)?re():(d("load",re),m[c]("DOMContentLoaded",ne),u(re,2e4)),ue.elements.length?(pe(),T._lsFlush()):ne()},checkElems:ne=function(e){var t;(e=!0===e)&&(Q=33),G||(G=!0,(t=K-(r.now()-J))<0&&(t=0),e||t<9?U():u(U,t))},unveil:oe=function(e){var t,n=V.test(e.nodeName),a=n&&(e[h](z.sizesAttr)||e[h]("sizes")),i="auto"==a;(!i&&S||!n||!e[h]("src")&&!e.srcset||e.complete||A(e,z.errorClass)||!A(e,z.lazyClass))&&(t=M(e,"lazyunveilread").detail,i&&me.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,ee++,se(e,t,i,a,n))}}),me=(ce=e(function(e,t,n,a){var i,s,o;if(e._lazysizesWidth=a,e.setAttribute("sizes",a+="px"),v.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",a);n.detail.dataAttr||N(e,n.detail)}),{_:function(){le=m.getElementsByClassName(z.autosizesClass),d("resize",de)},checkElems:de=B(function(){var e,t=le.length;if(t)for(e=0;e<t;e++)Ee(le[e])}),updateElem:Ee}),ze=function(){ze.i||(ze.i=!0,me._(),fe._())};return ue={cfg:z,autoSizer:me,loader:fe,init:ze,uP:N,aC:E,rC:_,hC:A,fire:M,gW:W,rAF:T}}function ye(){var e=o;for(o=t.length?s:t,i=!(n=!0);e.length;)e.shift()();n=!1}function he(e,t){n&&!t?e.apply(this,arguments):(o.push(e),i||(i=!0,(m.hidden?u:f)(ye)))}function ge(e){ee--,e&&!(ee<0)&&e.target||(ee=0)}function ve(e){return(q=null==q?"hidden"==x(m.body,"visibility"):q)||"hidden"!=x(e.parentNode,"visibility")&&"hidden"!=x(e,"visibility")}function pe(){var e,t,n,a,i,s,o,r,l,c,d,u,f=ue.elements;if((R=z.loadMode)&&ee<8&&(e=f.length)){for(t=0,te++,c=!z.expand||z.expand<1?500<y.clientHeight&&500<y.clientWidth?500:370:z.expand,d=(ue._defEx=c)*z.expFactor,u=z.hFac,q=null,Z<d&&ee<1&&2<te&&2<R&&!m.hidden?(Z=d,te=0):Z=1<R&&1<te&&ee<6?c:0;t<e;t++)if(f[t]&&!f[t]._lazyRace)if(Y)if(l!==(s=!(r=f[t][h]("data-expand"))||!(s=+r)?Z:s)&&(D=innerWidth+s*u,H=innerHeight+s,o=-1*s,l=s),n=f[t].getBoundingClientRect(),(I=n.bottom)>=o&&(O=n.top)<=H&&($=n.right)>=o*u&&(P=n.left)<=D&&(I||$||P||O)&&(z.loadHidden||ve(f[t]))&&(S&&ee<3&&!r&&(R<3||te<4)||function(e,t){var n,a=e,i=ve(e);for(O-=t,I+=t,P-=t,$+=t;i&&(a=a.offsetParent)&&a!=m.body&&a!=y;)(i=0<(x(a,"opacity")||1))&&"visible"!=x(a,"overflow")&&(n=a.getBoundingClientRect(),i=$>n.left&&P<n.right&&I>n.top-1&&O<n.bottom+1);return i}(f[t],s))){if(oe(f[t]),i=!0,9<ee)break}else!i&&S&&!a&&ee<4&&te<4&&2<R&&(F[0]||z.preloadAfterLoad)&&(F[0]||!r&&(I||$||P||O||"auto"!=f[t][h](z.sizesAttr)))&&(a=F[0]||f[t]);else oe(f[t]);a&&!i&&oe(a)}}function Ce(){G=!1,J=r.now(),j()}function be(e){var t=e.target;t._lazyCache?delete t._lazyCache:(ge(e),E(t,z.loadedClass),_(t,z.loadingClass),w(t,ie),M(t,"lazyloaded"))}function Ae(e){var t,n=e[h](z.srcsetAttr);(t=z.customMedia[e[h]("data-media")||e[h]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)}function Ee(e,t,n){var a=e.parentNode;a&&(n=W(e,a,n),(t=M(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=t.detail.width)&&n!==e._lazysizesWidth&&ce(e,a,t,n))}});
|
6 |
+
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){t=(t="function"==typeof jQuery&&t instanceof jQuery?t[0]:t).getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,height:800,desktopHeight:800,mobileHeight:800,tabletHeight:800,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)});const e=new ResizeObserver(t=>{i.onResize(i)});e.observe(i.$element[0]),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this,t=a.documentElement.clientWidth;o.options.height=t<=568?o.options.mobileHeight:t<=768?o.options.tabletHeight:o.options.desktopHeight,this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",i=e.data("halign")?e.data("halign"):"center",h={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(h.width=o.width,h.left=0,a){case"top":h.top=0;break;case"middle":h.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":h.bottom=0}else switch(h.height=o.height,h.top=0,i){case"left":h.left=0;break;case"center":h.left=0-(o.height*s-o.width)/2;break;case"right":h.right=0}e.css(h),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("//www.facebook.com/sharer.php?u="+t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o=encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open("mailto:?subject="+i+"&body="+o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
assets/js/modula-justified-wf.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
2 |
-
!function(e,t){t=t(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window,function(a,m){"use strict";if(m.getElementsByClassName){var z,n,i,t,s,o,y=m.documentElement,r=a.Date,l=a.HTMLPictureElement,c="addEventListener",h="getAttribute",d=a[c],u=a.setTimeout,f=a.requestAnimationFrame||u,g=a.requestIdleCallback,v=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],C={},b=Array.prototype.forEach,A=function(e,t){return C[t]||(C[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),C[t].test(e[h]("class")||"")&&C[t]},E=function(e,t){A(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)},_=function(e,t){(t=A(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))},w=function(t,n,e){var a=e?c:"removeEventListener";e&&w(t,n),p.forEach(function(e){t[a](e,n)})},M=function(e,t,n,a,i){var s=m.createEvent("Event");return(n=n||{}).instance=ue,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},N=function(e,t){var n;!l&&(n=a.picturefill||z.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},W=function(e,t,n){for(n=n||e.offsetWidth;n<z.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(s=[],o=t=[],he._lsFlush=ye,he),e=function(n,e){return e?function(){T(n)}:function(){var e=this,t=arguments;T(function(){n.apply(e,t)})}},B=function(e){
|
3 |
-
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);t=t.getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)}),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",i={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(i.width=o.width,i.left=0,a){case"top":i.top=0;break;case"middle":i.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":i.bottom=0}else switch(i.height=o.height,i.top=0,h){case"left":i.left=0;break;case"center":i.left=0-(o.height*s-o.width)/2;break;case"right":i.right=0}e.css(i),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t="//www.facebook.com/sharer.php?u="+u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o="mailto:?subject="+i+"&body="+encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i;void 0===(i=t.data("jg.captionMouseEvents"))&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t=t<i?i:t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
2 |
+
!function(e,t){t=t(e,e.document);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}(window,function(a,m){"use strict";if(m.getElementsByClassName){var z,n,i,t,s,o,y=m.documentElement,r=a.Date,l=a.HTMLPictureElement,c="addEventListener",h="getAttribute",d=a[c],u=a.setTimeout,f=a.requestAnimationFrame||u,g=a.requestIdleCallback,v=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],C={},b=Array.prototype.forEach,A=function(e,t){return C[t]||(C[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),C[t].test(e[h]("class")||"")&&C[t]},E=function(e,t){A(e,t)||e.setAttribute("class",(e[h]("class")||"").trim()+" "+t)},_=function(e,t){(t=A(e,t))&&e.setAttribute("class",(e[h]("class")||"").replace(t," "))},w=function(t,n,e){var a=e?c:"removeEventListener";e&&w(t,n),p.forEach(function(e){t[a](e,n)})},M=function(e,t,n,a,i){var s=m.createEvent("Event");return(n=n||{}).instance=ue,s.initEvent(t,!a,!i),s.detail=n,e.dispatchEvent(s),s},N=function(e,t){var n;!l&&(n=a.picturefill||z.pf)?(t&&t.src&&!e[h]("srcset")&&e.setAttribute("srcset",t.src),n({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},x=function(e,t){return(getComputedStyle(e,null)||{})[t]},W=function(e,t,n){for(n=n||e.offsetWidth;n<z.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},T=(s=[],o=t=[],he._lsFlush=ye,he),e=function(n,e){return e?function(){T(n)}:function(){var e=this,t=arguments;T(function(){n.apply(e,t)})}},B=function(e){var t,n,a=function(){t=null,e()},i=function(){var e=r.now()-n;e<99?u(i,99-e):(g||a)(a)};return function(){n=r.now(),t=t||u(i,99)}};!function(){var e,t={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in z=a.lazySizesConfig||a.lazysizesConfig||{},t)e in z||(z[e]=t[e]);a.lazySizesConfig=z,u(function(){z.init&&ze()})}();var F,S,L,R,k,D,H,O,P,$,I,q,j,G,J,K,Q,U,V,X,Y,Z,ee,te,ne,ae,ie,se,oe,re,le,ce,de,ue,fe=(V=/^img$/i,X=/^iframe$/i,Y="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),te=-1,j=pe,J=ee=Z=0,K=z.throttleDelay,Q=z.ricTimeout,U=g&&49<Q?function(){g(Ce,{timeout:Q}),Q!==z.ricTimeout&&(Q=z.ricTimeout)}:e(function(){u(Ce)},!0),ae=e(be),ie=function(e){ae({target:e.target})},se=e(function(e,t,n,a,i){var s,o,r,l;(r=M(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(n?E(e,z.autosizesClass):e.setAttribute("sizes",a)),n=e[h](z.srcsetAttr),a=e[h](z.srcAttr),i&&(o=(s=e.parentNode)&&v.test(s.nodeName||"")),l=t.firesLoad||"src"in e&&(n||a||o),r={target:e},E(e,z.loadingClass),l&&(clearTimeout(L),L=u(ge,2500),w(e,ie,!0)),o&&b.call(s.getElementsByTagName("source"),Ae),n?e.setAttribute("srcset",n):a&&!o&&(X.test(e.nodeName)?function(t,n){try{t.contentWindow.location.replace(n)}catch(e){t.src=n}}(e,a):e.src=a),i&&(n||o)&&N(e,{src:a})),e._lazyRace&&delete e._lazyRace,_(e,z.lazyClass),T(function(){(!l||e.complete&&1<e.naturalWidth)&&(be(r),e._lazyCache=!0,u(function(){"_lazyCache"in e&&delete e._lazyCache},9))},!0)}),re=function(){var e;S||(r.now()-k<999?u(re,999):(e=B(function(){z.loadMode=3,ne()}),S=!0,z.loadMode=3,ne(),d("scroll",function(){3==z.loadMode&&(z.loadMode=2),e()},!0)))},{_:function(){k=r.now(),ue.elements=m.getElementsByClassName(z.lazyClass),F=m.getElementsByClassName(z.lazyClass+" "+z.preloadClass),d("scroll",ne,!0),d("resize",ne,!0),a.MutationObserver?new MutationObserver(ne).observe(y,{childList:!0,subtree:!0,attributes:!0}):(y[c]("DOMNodeInserted",ne,!0),y[c]("DOMAttrModified",ne,!0),setInterval(ne,999)),d("hashchange",ne,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){m[c](e,ne,!0)}),/d$|^c/.test(m.readyState)?re():(d("load",re),m[c]("DOMContentLoaded",ne),u(re,2e4)),ue.elements.length?(pe(),T._lsFlush()):ne()},checkElems:ne=function(e){var t;(e=!0===e)&&(Q=33),G||(G=!0,(t=K-(r.now()-J))<0&&(t=0),e||t<9?U():u(U,t))},unveil:oe=function(e){var t,n=V.test(e.nodeName),a=n&&(e[h](z.sizesAttr)||e[h]("sizes")),i="auto"==a;(!i&&S||!n||!e[h]("src")&&!e.srcset||e.complete||A(e,z.errorClass)||!A(e,z.lazyClass))&&(t=M(e,"lazyunveilread").detail,i&&me.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,ee++,se(e,t,i,a,n))}}),me=(ce=e(function(e,t,n,a){var i,s,o;if(e._lazysizesWidth=a,e.setAttribute("sizes",a+="px"),v.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",a);n.detail.dataAttr||N(e,n.detail)}),{_:function(){le=m.getElementsByClassName(z.autosizesClass),d("resize",de)},checkElems:de=B(function(){var e,t=le.length;if(t)for(e=0;e<t;e++)Ee(le[e])}),updateElem:Ee}),ze=function(){ze.i||(ze.i=!0,me._(),fe._())};return ue={cfg:z,autoSizer:me,loader:fe,init:ze,uP:N,aC:E,rC:_,hC:A,fire:M,gW:W,rAF:T}}function ye(){var e=o;for(o=t.length?s:t,i=!(n=!0);e.length;)e.shift()();n=!1}function he(e,t){n&&!t?e.apply(this,arguments):(o.push(e),i||(i=!0,(m.hidden?u:f)(ye)))}function ge(e){ee--,e&&!(ee<0)&&e.target||(ee=0)}function ve(e){return(q=null==q?"hidden"==x(m.body,"visibility"):q)||"hidden"!=x(e.parentNode,"visibility")&&"hidden"!=x(e,"visibility")}function pe(){var e,t,n,a,i,s,o,r,l,c,d,u,f=ue.elements;if((R=z.loadMode)&&ee<8&&(e=f.length)){for(t=0,te++,c=!z.expand||z.expand<1?500<y.clientHeight&&500<y.clientWidth?500:370:z.expand,d=(ue._defEx=c)*z.expFactor,u=z.hFac,q=null,Z<d&&ee<1&&2<te&&2<R&&!m.hidden?(Z=d,te=0):Z=1<R&&1<te&&ee<6?c:0;t<e;t++)if(f[t]&&!f[t]._lazyRace)if(Y)if(l!==(s=!(r=f[t][h]("data-expand"))||!(s=+r)?Z:s)&&(D=innerWidth+s*u,H=innerHeight+s,o=-1*s,l=s),n=f[t].getBoundingClientRect(),(I=n.bottom)>=o&&(O=n.top)<=H&&($=n.right)>=o*u&&(P=n.left)<=D&&(I||$||P||O)&&(z.loadHidden||ve(f[t]))&&(S&&ee<3&&!r&&(R<3||te<4)||function(e,t){var n,a=e,i=ve(e);for(O-=t,I+=t,P-=t,$+=t;i&&(a=a.offsetParent)&&a!=m.body&&a!=y;)(i=0<(x(a,"opacity")||1))&&"visible"!=x(a,"overflow")&&(n=a.getBoundingClientRect(),i=$>n.left&&P<n.right&&I>n.top-1&&O<n.bottom+1);return i}(f[t],s))){if(oe(f[t]),i=!0,9<ee)break}else!i&&S&&!a&&ee<4&&te<4&&2<R&&(F[0]||z.preloadAfterLoad)&&(F[0]||!r&&(I||$||P||O||"auto"!=f[t][h](z.sizesAttr)))&&(a=F[0]||f[t]);else oe(f[t]);a&&!i&&oe(a)}}function Ce(){G=!1,J=r.now(),j()}function be(e){var t=e.target;t._lazyCache?delete t._lazyCache:(ge(e),E(t,z.loadedClass),_(t,z.loadingClass),w(t,ie),M(t,"lazyloaded"))}function Ae(e){var t,n=e[h](z.srcsetAttr);(t=z.customMedia[e[h]("data-media")||e[h]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)}function Ee(e,t,n){var a=e.parentNode;a&&(n=W(e,a,n),(t=M(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=t.detail.width)&&n!==e._lazysizesWidth&&ce(e,a,t,n))}});
|
3 |
+
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){t=(t="function"==typeof jQuery&&t instanceof jQuery?t[0]:t).getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,height:800,desktopHeight:800,mobileHeight:800,tabletHeight:800,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)});const e=new ResizeObserver(t=>{i.onResize(i)});e.observe(i.$element[0]),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this,t=a.documentElement.clientWidth;o.options.height=t<=568?o.options.mobileHeight:t<=768?o.options.tabletHeight:o.options.desktopHeight,this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",i=e.data("halign")?e.data("halign"):"center",h={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(h.width=o.width,h.left=0,a){case"top":h.top=0;break;case"middle":h.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":h.bottom=0}else switch(h.height=o.height,h.top=0,i){case"left":h.left=0;break;case"center":h.left=0-(o.height*s-o.width)/2;break;case"right":h.right=0}e.css(h),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("//www.facebook.com/sharer.php?u="+t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o=encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open("mailto:?subject="+i+"&body="+o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
assets/js/modula-justified-wfl.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
2 |
-
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);t=t.getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)}),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",i={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(i.width=o.width,i.left=0,a){case"top":i.top=0;break;case"middle":i.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":i.bottom=0}else switch(i.height=o.height,i.top=0,h){case"left":i.left=0;break;case"center":i.left=0-(o.height*s-o.width)/2;break;case"right":i.right=0}e.css(i),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t="//www.facebook.com/sharer.php?u="+u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o="mailto:?subject="+i+"&body="+encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i;void 0===(i=t.data("jg.captionMouseEvents"))&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t=t<i?i:t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
2 |
+
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){t=(t="function"==typeof jQuery&&t instanceof jQuery?t[0]:t).getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,height:800,desktopHeight:800,mobileHeight:800,tabletHeight:800,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)});const e=new ResizeObserver(t=>{i.onResize(i)});e.observe(i.$element[0]),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this,t=a.documentElement.clientWidth;o.options.height=t<=568?o.options.mobileHeight:t<=768?o.options.tabletHeight:o.options.desktopHeight,this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",i=e.data("halign")?e.data("halign"):"center",h={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(h.width=o.width,h.left=0,a){case"top":h.top=0;break;case"middle":h.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":h.bottom=0}else switch(h.height=o.height,h.top=0,i){case"left":h.left=0;break;case"center":h.left=0-(o.height*s-o.width)/2;break;case"right":h.right=0}e.css(h),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("//www.facebook.com/sharer.php?u="+t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o=encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open("mailto:?subject="+i+"&body="+o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,function(){var t=jQuery(this).data("config");jQuery(this).modulaGallery(t)})});
|
assets/js/modula-justified-wl.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(g){function n(t,i){this.settings=i,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=i.border?i.border:i.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:g('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}n.prototype.getSuffix=function(t,i){for(var e=i<t?t:i,s=0;s<this.suffixRanges.length;s++)if(e<=this.suffixRanges[s])return this.settings.sizeRangeSuffixes[this.suffixRanges[s]];return this.settings.sizeRangeSuffixes[this.suffixRanges[s-1]]},n.prototype.removeSuffix=function(t,i){return t.substring(0,t.length-i.length)},n.prototype.endsWith=function(t,i){return-1!==t.indexOf(i,t.length-i.length)},n.prototype.getUsedSuffix=function(t){for(var i in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(i)&&0!==this.settings.sizeRangeSuffixes[i].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[i]))return this.settings.sizeRangeSuffixes[i];return""},n.prototype.newSrc=function(t,i,e,s){var n;return this.settings.thumbnailPath?n=this.settings.thumbnailPath(t,i,e,s):(s=null!==(s=t.match(this.settings.extension))?s[0]:"",n=t.replace(this.settings.extension,""),n=this.removeSuffix(n,this.getUsedSuffix(n)),n+=this.getSuffix(i,e)+s),n},n.prototype.showImg=function(t,i){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),i&&i()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,i),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,i))},n.prototype.extractImgSrcFromImage=function(t){var i=t.data("safe-src"),e="data-safe-src";return void 0===i&&(i=t.attr("src"),e="src"),t.data("jg.originalSrc",i),t.data("jg.src",i),t.data("jg.originalSrcLoc",e),i},n.prototype.imgFromEntry=function(t){t=t.find(this.settings.imgSelector);return 0===t.length?null:t},n.prototype.captionFromEntry=function(t){t=t.find("> .jg-caption");return 0===t.length?null:t},n.prototype.displayEntry=function(t,i,e,s,n,r){t.width(s),t.height(r),t.css("top",e),t.css("left",i);var o,a,h=this.imgFromEntry(t);null!==h?(h.css("width",s),h.css("height",n),h.css("margin-left",-s/2),h.css("margin-top",-n/2),(o=h.data("jg.src"))&&(o=this.newSrc(o,s,n,h[0]),h.one("error",function(){this.resetImgSrc(h)}),a=function(){h.attr("src",o)},"skipped"===t.data("jg.loaded")&&o?this.onImageEvent(o,function(){this.showImg(t,a),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,a))):this.showImg(t),this.displayEntryCaption(t)},n.prototype.displayEntryCaption=function(t){var i,e=this.imgFromEntry(t);null!==e&&this.settings.captions?(null===(i=this.captionFromEntry(t))&&(e=e.attr("alt"),this.isValidCaption(e)||(e=t.attr("title")),this.isValidCaption(e)&&(i=g('<div class="jg-caption">'+e+"</div>"),t.append(i),t.data("jg.createdCaption",!0))),null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},n.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},n.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},n.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(g(t.currentTarget));this.settings.cssAnimation?t.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},n.prototype.addCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0===i&&(i={mouseenter:g.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:g.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,i.mouseenter),t.on("mouseleave",void 0,void 0,i.mouseleave),t.data("jg.captionMouseEvents",i))},n.prototype.removeCaptionEventsHandlers=function(t){var i=t.data("jg.captionMouseEvents");void 0!==i&&(t.off("mouseenter",void 0,i.mouseenter),t.off("mouseleave",void 0,i.mouseleave),t.removeData("jg.captionMouseEvents"))},n.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n.prototype.prepareBuildingRow=function(t,i){var e,s,n,r,o=!0,a=0,h=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,g=h/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/h>this.settings.justifyThreshold;if(i||t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)s=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?s.removeClass("jg-entry-visible"):(s.stop().fadeTo(0,.1),s.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(o=!1,0<this.rows&&(o=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/h>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(s=this.buildingRow.entriesBuff[e]).data("jg.width")/s.data("jg.height"),r=o?(n=e===this.buildingRow.entriesBuff.length-1?h:g*r,g):(n=l*r,l),h-=Math.round(n),s.data("jg.jwidth",Math.round(n)),s.data("jg.jheight",Math.ceil(r)),(0===e||r<a)&&(a=r);return this.buildingRow.height=a,o},n.prototype.flushRow=function(t,i){var e,s=this.settings,n=this.border,r=this.prepareBuildingRow(t,i);if(i||t&&"hide"===s.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===s.lastRow||"right"===s.lastRow)){for(var o=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*s.margins,a=0;a<this.buildingRow.entriesBuff.length;a++)o-=(e=this.buildingRow.entriesBuff[a]).data("jg.jwidth");"center"===s.lastRow?n+=Math.round(o/2):"right"===s.lastRow&&(n+=o)}var h=this.buildingRow.entriesBuff.length-1;for(a=0;a<=h;a++)e=this.buildingRow.entriesBuff[this.settings.rtl?h-a:a],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+s.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=s.rowHeight&&r)&&(this.offY+=this.buildingRow.height+s.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var i=0;n.prototype.rememberGalleryHeight=function(){i=this.$gallery.height(),this.$gallery.height(i)},n.prototype.setGalleryTempHeight=function(t){i=Math.max(t,i),this.$gallery.height(i)},n.prototype.setGalleryFinalHeight=function(t){i=t,this.$gallery.height(t)},n.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(g.proxy(function(){var t;this.$gallery.is(":visible")&&(t=parseFloat(this.$gallery.width()),Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0)))},this),this.settings.refreshTime)},n.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},n.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},n.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},n.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,i=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<i.length?i.eq(t.phase).fadeTo(t.timeSlot,1):i.eq(t.phase-i.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*i.length)},t.timeSlot)},n.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},n.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},n.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},n.prototype.updateEntries=function(t){var i;return 0<(i=t&&null!=this.lastFetchedEntry?(i=this.getSelectorWithoutSpinner(),g(this.lastFetchedEntry).nextAll(i).toArray()):(this.entries=[],this.getAllEntries())).length&&(g.isFunction(this.settings.sort)?i=this.sortArray(i):this.settings.randomize&&(i=this.shuffleArray(i)),this.lastFetchedEntry=i[i.length-1],this.settings.filter?i=this.filterArray(i):this.resetFilters(i)),this.entries=this.entries.concat(i),!0},n.prototype.insertToGallery=function(t){var i=this;g.each(t,function(){g(this).appendTo(i.$gallery)})},n.prototype.shuffleArray=function(t){for(var i,e,s=t.length-1;0<s;s--)i=Math.floor(Math.random()*(s+1)),e=t[s],t[s]=t[i],t[i]=e;return this.insertToGallery(t),t},n.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},n.prototype.resetFilters=function(t){for(var i=0;i<t.length;i++)g(t[i]).removeClass("jg-filtered")},n.prototype.filterArray=function(t){var i=this.settings;if("string"===g.type(i.filter))return t.filter(function(t){t=g(t);return t.is(i.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(g.isFunction(i.filter)){for(var e=t.filter(i.filter),s=0;s<t.length;s++)-1===e.indexOf(t[s])?g(t[s]).addClass("jg-filtered").removeClass("jg-visible"):g(t[s]).removeClass("jg-filtered");return e}},n.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},n.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),g.each(this.getAllEntries(),g.proxy(function(t,i){var e=g(i);e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry jg-filtered jg-entry-visible");i=this.imgFromEntry(e);i&&(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),this.resetImgSrc(i),i.data("jg.originalSrc",void 0),i.data("jg.originalSrcLoc",void 0),i.data("jg.src",void 0)),this.removeCaptionEventsHandlers(e);i=this.captionFromEntry(e);e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},n.prototype.analyzeImages=function(t){for(var i=this.lastAnalyzedIndex+1;i<this.entries.length;i++){var e=g(this.entries[i]);if(!0===e.data("jg.loaded")||"skipped"===e.data("jg.loaded")){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,n=e.data("jg.width")/e.data("jg.height");if(this.buildingRow.entriesBuff.push(e),this.buildingRow.aspectRatio+=n,this.buildingRow.width+=n*this.settings.rowHeight,this.lastAnalyzedIndex=i,s/(this.buildingRow.aspectRatio+n)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==e.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},n.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},n.prototype.startImgAnalyzer=function(t){var i=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){i.analyzeImages(t)},.001)},n.prototype.onImageEvent=function(t,i,e){var s,n;(i||e)&&(s=new Image,n=g(s),i&&n.one("load",function(){n.off("load error"),i(s)}),e&&n.one("error",function(){n.off("load error"),e(s)}),s.src=t)},n.prototype.init=function(){var o=!1,a=!1,h=this;g.each(this.entries,function(t,i){var e=g(i),s=h.imgFromEntry(e);if(e.addClass("jg-entry"),!0!==e.data("jg.loaded")&&"skipped"!==e.data("jg.loaded"))if(null!==h.settings.rel&&e.attr("rel",h.settings.rel),null!==h.settings.target&&e.attr("target",h.settings.target),null!==s){var n=h.extractImgSrcFromImage(s);if(!1===h.settings.waitThumbnailsLoad||!n){var r=parseFloat(s.attr("width")),i=parseFloat(s.attr("height"));if("svg"===s.prop("tagName")&&(r=parseFloat(s[0].getBBox().width),i=parseFloat(s[0].getBBox().height)),!isNaN(r)&&!isNaN(i))return e.data("jg.width",r),e.data("jg.height",i),e.data("jg.loaded","skipped"),a=!0,h.startImgAnalyzer(!1),!0}e.data("jg.loaded",!1),o=!0,h.isSpinnerActive()||h.startLoadingSpinnerAnimation(),h.onImageEvent(n,function(t){e.data("jg.width",t.width),e.data("jg.height",t.height),e.data("jg.loaded",!0),h.startImgAnalyzer(!1)},function(){e.data("jg.loaded","error"),h.startImgAnalyzer(!1)})}else e.data("jg.loaded",!0),e.data("jg.width",e.width()|parseFloat(e.css("width"))|1),e.data("jg.height",e.height()|parseFloat(e.css("height"))|1)}),o||a||this.startImgAnalyzer(!1),this.checkWidth()},n.prototype.checkOrConvertNumber=function(t,i){if("string"===g.type(t[i])&&(t[i]=parseFloat(t[i])),"number"!==g.type(t[i]))throw i+" must be a number";if(isNaN(t[i]))throw"invalid number for "+i},n.prototype.checkSizeRangesSuffixes=function(){if("object"!==g.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(t);for(var e={0:""},s=0;s<i.length;s++)if("string"===g.type(i[s]))try{e[parseInt(i[s].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[i[s]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else e[i[s]]=this.settings.sizeRangeSuffixes[i[s]];this.settings.sizeRangeSuffixes=e},n.prototype.retrieveMaxRowHeight=function(){var t=null,i=this.settings.rowHeight;if("string"===g.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?i*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==g.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<i&&(t=i),t},n.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==g.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==g.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==g.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==g.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!g.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!g.isFunction(this.settings.filter)&&"string"!==g.type(this.settings.filter))throw"filter must be false, a string or a filter function"},n.prototype.retrieveSuffixRanges=function(){var t,i=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&i.push(parseInt(t,10));return i.sort(function(t,i){return i<t?1:t<i?-1:0}),i},n.prototype.updateSettings=function(t){this.settings=g.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},n.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},g.fn.justifiedGallery=function(s){return this.each(function(t,i){var e=g(i);e.addClass("justified-gallery");i=e.data("jg.controller");if(void 0===i){if(null!=s&&"object"!==g.type(s)){if("destroy"===s)return;throw"The argument must be an object"}i=new n(e,g.extend({},n.prototype.defaults,s)),e.data("jg.controller",i)}else if("norewind"!==s){if("destroy"===s)return void i.destroy();i.updateSettings(s),i.rewind()}i.updateEntries("norewind"===s)&&i.init()})}});
|
2 |
-
!function(l,s,f,m){"use strict";var a,i,r,d,e,c,p,u,n,t,o,h,g;function b(t,e){var o,n,a,i=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=u(t.data.options,e)),o=e.$target||f(t.currentTarget).trigger("blur"),(a=f.modulaFancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(i=e.selector?f(e.selector):(n=o.attr("data-fancybox")||"")?(i=t.data?t.data.items:[]).length?i.filter('[data-fancybox="'+n+'"]'):f('[data-fancybox="'+n+'"]'):[o],(s=f(i).index(o))<0&&(s=0),(a=f.modulaFancybox.open(i,e,s)).$trigger=o))}l.console=l.console||{info:function(t){}},f&&(f.fn.modulaFancybox?console.info("fancyBox already initialized"):(t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="modula-fancybox-frame{rnd}" name="modula-fancybox-frame{rnd}" class="modula-fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="modula-fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="modula-fancybox-container" role="dialog" tabindex="-1"><div class="modula-fancybox-bg"></div><div class="modula-fancybox-inner"><div class="modula-fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="modula-fancybox-toolbar">{{buttons}}</div><div class="modula-fancybox-navigation">{{arrows}}</div><div class="modula-fancybox-stage"></div><div class="modula-fancybox-caption"><div class="modula-fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="modula-fancybox-loading"></div>',errorTpl:'<div class="modula-fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="modula-fancybox-button modula-fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="modula-fancybox-button modula-fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="modula-fancybox-button modula-fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="modula-fancybox-button modula-fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="modula-fancybox-button modula-fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="modula-fancybox-button modula-fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},modulaShare:["facebook","twitter","pinterest","whatsapp","linkedin","email"],shareBtnTpl:{facebook:'<a class="modula-fancybox-share__button modula-fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{modulaShareUrl}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a>',twitter:'<a class="modula-fancybox-share__button modula-fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{modulaShareUrl}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a>',pinterest:'<a class="modula-fancybox-share__button modula-fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{modulaShareUrl}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a>',whatsapp:'<a class="modula-fancybox-share__button modula-fancybox-share__button--wa" href="https://api.whatsapp.com/send?text={{modulaShareUrl}}&review_url=true"><svg aria-hidden="true" focusable="false" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1536 1600"><path d="M985 878q13 0 97.5 44t89.5 53q2 5 2 15q0 33-17 76q-16 39-71 65.5T984 1158q-57 0-190-62q-98-45-170-118T476 793q-72-107-71-194v-8q3-91 74-158q24-22 52-22q6 0 18 1.5t19 1.5q19 0 26.5 6.5T610 448q8 20 33 88t25 75q0 21-34.5 57.5T599 715q0 7 5 15q34 73 102 137q56 53 151 101q12 7 22 7q15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134t134-200.5t50-243.5t-50-243.5T1226 336t-200.5-134T782 152t-243.5 50T338 336T204 536.5T154 780q0 203 120 368l-79 233l242-77q158 104 345 104zm0-1382q153 0 292.5 60T1315 247t161 240.5t60 292.5t-60 292.5t-161 240.5t-240.5 161t-292.5 60q-195 0-365-94L0 1574l136-405Q28 991 28 780q0-153 60-292.5T249 247T489.5 86T782 26z" fill="currentColor"/></svg><span>WhatsApp</span></a>',linkedin:'<a class="modula-fancybox-share__button modula-fancybox-share__button--li" href="//linkedin.com/shareArticle?mini=true&url={{modulaShareUrl}}"><svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg><span>LinkedIn</span></a>',email:'<a class="modula-fancybox-share__button modula-fancybox-share__button--email" href="mailto:?subject={{subject}}&body={{emailMessage}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z" fill="currentColor"></path></svg><span>Email</span></a>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},a=f(l),i=f(s),r=0,d=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},c=function(){var t,e=s.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(e.style[t]!==m)return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e){var o=f.extend(!0,{},t,e);return f.each(e,function(t,e){f.isArray(e)&&(o[t]=e)}),o},n=function(t,e,o){var n=this;n.opts=u({index:o},f.modulaFancybox.defaults),f.isPlainObject(e)&&(n.opts=u(n.opts,e)),f.modulaFancybox.isMobile&&(n.opts=u(n.opts,n.opts.mobile)),n.id=n.opts.id||++r,n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=!0,n.group=[],n.slides={},n.addContent(t),n.group.length&&n.init()},f.extend(n.prototype,{init:function(){var o=this;o.currIndex<0&&(o.currIndex=0),void 0===o.group[o.currIndex]&&jQuery.each(this.group,function(t,e){o.currIndex==parseInt(e.opts.image_id)&&(o.currIndex=t)});var e,n,a=o.group[o.currIndex].opts;a.closeExisting&&f.modulaFancybox.close(!0),f("body").addClass("modula-fancybox-active"),!f.modulaFancybox.getInstance()&&!1!==a.hideScrollbar&&!f.modulaFancybox.isMobile&&s.body.scrollHeight>l.innerHeight&&(f("head").append('<style id="modula-fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-s.documentElement.clientWidth)+"px;}</style>"),f("body").addClass("compensate-for-scrollbar")),n="",f.each(a.buttons,function(t,e){n+=a.btnTpl[e]||""}),e=f(o.translate(o,a.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","modula-fancybox-container-"+o.id).addClass(a.baseClass).data("modulaFancyBox",o).appendTo(a.parentEl),o.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){o.$refs[t]=e.find(".modula-fancybox-"+t)}),o.trigger("onInit"),o.activate(),o.jumpTo(o.currIndex)},translate:function(t,e){var o=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return o[e]===m?t:o[e]})},addContent:function(t){var r=this,t=f.makeArray(t);f.each(t,function(t,e){var o,n,a,i={},s={};f.isPlainObject(e)?s=(i=e).opts||e:"object"===f.type(e)&&f(e).length?(s=(n=f(e)).data()||{},(s=f.extend(!0,{},s,s.options)).$orig=n,i.src=r.opts.src||s.src||n.attr("href"),i.type||i.src||(i.type="inline",i.src=e)):i={type:"html",src:e+""},i.opts=f.extend(!0,{},r.opts,s),f.isArray(s.buttons)&&(i.opts.buttons=s.buttons),f.modulaFancybox.isMobile&&i.opts.mobile&&(i.opts=u(i.opts,i.opts.mobile)),o=i.type||i.opts.type,n=i.src||"",!o&&n&&((s=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(o="video",i.opts.video.format||(i.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?(o="iframe",i=f.extend(!0,i,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===n.charAt(0)&&(o="inline")),o?i.type=o:r.trigger("objectNeedsType",i),i.contentType||(i.contentType=-1<f.inArray(i.type,["html","inline","ajax"])?"html":i.type),i.index=r.group.length,"auto"==i.opts.smallBtn&&(i.opts.smallBtn=-1<f.inArray(i.type,["html","inline","ajax"])),"auto"===i.opts.toolbar&&(i.opts.toolbar=!i.opts.smallBtn),i.$thumb=i.opts.$thumb||null,i.opts.$trigger&&i.index===r.opts.index&&(i.$thumb=i.opts.$trigger.find("img:first"),i.$thumb.length&&(i.opts.$orig=i.opts.$trigger)),i.$thumb&&i.$thumb.length||!i.opts.$orig||(i.$thumb=i.opts.$orig.find("img:first")),i.$thumb&&!i.$thumb.length&&(i.$thumb=null),i.thumb=i.opts.thumb||(i.$thumb?i.$thumb[0].src:null),"function"===f.type(i.opts.caption)&&(i.opts.caption=i.opts.caption.apply(e,[r,i])),"function"===f.type(r.opts.caption)&&(i.opts.caption=r.opts.caption.apply(e,[r,i])),i.opts.caption instanceof f||(i.opts.caption=i.opts.caption===m?"":i.opts.caption+""),"ajax"===i.type&&1<(a=n.split(/\s+/,2)).length&&(i.src=a.shift(),i.opts.filter=a.shift()),i.opts.modal&&(i.opts=f.extend(!0,i.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(i)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}).on("click.fb","[data-fancybox-zoom]",function(t){n[n.isScaledDown()?"scaleToActual":"scaleToFit"]()}),a.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(n.requestId&&e(n.requestId),n.requestId=d(function(){n.update(t)})):(n.current&&"iframe"===n.current.type&&n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update(t)},f.modulaFancybox.isMobile?600:250))}),i.on("keydown.fb",function(t){var e=(f.modulaFancybox?f.modulaFancybox.getInstance():null).current,o=t.keyCode||t.which;if(9!=o){if(!(!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||f(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventDefault(),void n.close(t)):37===o||38===o?(t.preventDefault(),void n.previous()):39===o||40===o?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,o)}else e.opts.trapFocus&&n.focus(t)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,i.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=l.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&!n.isDragging&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){a.off("orientationchange.fb resize.fb"),i.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n){var e,o,a,i,s,r,l,c,d=this,u=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun))return t=parseInt(t,10),!(!(o=(d.current||d).opts.loop)&&(t<0||u<=t))&&(e=d.firstRun=!Object.keys(d.slides).length,i=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,a=d.createSlide(t),1<u&&((o||a.index<u-1)&&d.createSlide(t+1),(o||0<a.index)&&d.createSlide(t-1)),d.current=a,d.currIndex=a.index,d.currPos=a.pos,d.trigger("beforeShow",e),d.updateControls(),a.forcedDuration=m,f.isNumeric(n)?a.forcedDuration=n:n=a.opts[e?"animationDuration":"transitionDuration"],n=parseInt(n,10),t=d.isMoved(a),a.$slide.addClass("modula-fancybox-slide--current"),e?(a.opts.animationEffect&&n&&d.$refs.container.css("transition-duration",n+"ms"),d.$refs.container.addClass("modula-fancybox-is-open").trigger("focus"),d.loadSlide(a)):(s=f.modulaFancybox.getTranslate(i.$slide),r=f.modulaFancybox.getTranslate(d.$refs.stage),f.each(d.slides,function(t,e){f.modulaFancybox.stop(e.$slide,!0)}),i.pos!==a.pos&&(i.isComplete=!1),i.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--current"),t?(c=s.left-(i.pos*s.width+i.pos*i.opts.gutter),f.each(d.slides,function(t,e){e.$slide.removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")});var o=e.pos*s.width+e.pos*e.opts.gutter;f.modulaFancybox.setTranslate(e.$slide,{top:0,left:o-r.left+c}),e.pos!==a.pos&&e.$slide.addClass("modula-fancybox-slide--"+(e.pos>a.pos?"next":"previous")),p(e.$slide),f.modulaFancybox.animate(e.$slide,{top:0,left:(e.pos-a.pos)*s.width+(e.pos-a.pos)*e.opts.gutter},n,function(){e.$slide.css({transform:"",opacity:""}).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous"),e.pos===d.currPos&&d.complete()})})):n&&a.opts.transitionEffect&&(l="modula-fancybox-animated modula-fancybox-fx-"+a.opts.transitionEffect,i.$slide.addClass("modula-fancybox-slide--"+(i.pos>a.pos?"next":"previous")),f.modulaFancybox.animate(i.$slide,l,n,function(){i.$slide.removeClass(l).removeClass("modula-fancybox-slide--next modula-fancybox-slide--previous")},!1)),a.isLoaded?d.revealContent(a):d.loadSlide(a)),void d.preload("image"))},createSlide:function(t){var e,o=this,n=t%o.group.length;return n=n<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=f('<div class="modula-fancybox-slide"></div>').appendTo(o.$refs.stage),o.slides[t]=f.extend(!0,{},o.group[n],{pos:t,$slide:e,isLoaded:!1}),o.updateSlide(o.slides[t])),o.slides[t]},scaleToActual:function(t,e,o){var n,a,i,s,r=this,l=r.current,c=l.$content,d=f.modulaFancybox.getTranslate(l.$slide).width,u=f.modulaFancybox.getTranslate(l.$slide).height,p=l.width,h=l.height;r.isAnimating||r.isMoved()||!c||"image"!=l.type||!l.isLoaded||l.hasError||(r.isAnimating=!0,f.modulaFancybox.stop(c),t=t===m?.5*d:t,e=e===m?.5*u:e,(n=f.modulaFancybox.getTranslate(c)).top-=f.modulaFancybox.getTranslate(l.$slide).top,n.left-=f.modulaFancybox.getTranslate(l.$slide).left,i=p/n.width,s=h/n.height,a=.5*d-.5*p,l=.5*u-.5*h,d<p&&(0<(a=n.left*i-(t*i-t))&&(a=0),a<d-p&&(a=d-p)),u<h&&(0<(l=n.top*s-(e*s-e))&&(l=0),l<u-h&&(l=u-h)),r.updateCursor(p,h),f.modulaFancybox.animate(c,{top:l,left:a,scaleX:i,scaleY:s},o||366,function(){r.isAnimating=!1}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop())},scaleToFit:function(t){var e=this,o=e.current,n=o.$content;e.isAnimating||e.isMoved()||!n||"image"!=o.type||!o.isLoaded||o.hasError||(e.isAnimating=!0,f.modulaFancybox.stop(n),o=e.getFitPos(o),e.updateCursor(o.width,o.height),f.modulaFancybox.animate(n,{top:o.top,left:o.left,scaleX:o.width/n.width(),scaleY:o.height/n.height()},t||366,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,o,n=t.$content,a=t.$slide,i=t.width||t.opts.width,s=t.height||t.opts.height,r={};return!!(t.isLoaded&&n&&n.length)&&(e=f.modulaFancybox.getTranslate(this.$refs.stage).width,o=f.modulaFancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(n.css("marginLeft"))+parseFloat(n.css("marginRight")),o-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(n.css("marginTop"))+parseFloat(n.css("marginBottom")),i&&s||(i=e,s=o),e-.5<(i*=n=Math.min(1,e/i,o/s))&&(i=e),o-.5<(s*=n)&&(s=o),"image"===t.type?(r.top=Math.floor(.5*(o-s))+parseFloat(a.css("paddingTop")),r.left=Math.floor(.5*(e-i))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(i/(t=t.opts.width&&t.opts.height?i/s:t.opts.ratio||16/9)<s?s=i/t:s*t<i&&(i=s*t)),r.width=i,r.height=s,r)},update:function(o){var n=this;f.each(n.slides,function(t,e){n.updateSlide(e,o)})},updateSlide:function(t,e){var o=this,n=t&&t.$content,a=t.width||t.opts.width,i=t.height||t.opts.height,s=t.$slide;o.adjustCaption(t),n&&(a||i||"video"===t.contentType)&&!t.hasError&&(f.modulaFancybox.stop(n),f.modulaFancybox.setTranslate(n,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),s.length&&(s.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".modula-fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,n=o.$slide;!e.isClosing&&o&&(n.siblings().css({transform:"",opacity:""}),n.parent().children().removeClass("modula-fancybox-slide--previous modula-fancybox-slide--next"),f.modulaFancybox.animate(n,{top:0,left:0,opacity:1},t===m?0:t,function(){n.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o=t||this.current;return!!o&&(e=f.modulaFancybox.getTranslate(this.$refs.stage),t=f.modulaFancybox.getTranslate(o.$slide),!o.$slide.hasClass("modula-fancybox-animated")&&(.5<Math.abs(t.top-e.top)||.5<Math.abs(t.left-e.left)))},updateCursor:function(t,e){var o=this,n=o.current,a=o.$refs.container;n&&!o.isClosing&&o.Guestures&&(a.removeClass("modula-fancybox-is-zoomable modula-fancybox-can-zoomIn modula-fancybox-can-zoomOut modula-fancybox-can-swipe modula-fancybox-can-pan"),e=!!(t=o.canPan(t,e))||o.isZoomable(),a.toggleClass("modula-fancybox-is-zoomable",e),f("[data-fancybox-zoom]").prop("disabled",!e),t?a.addClass("modula-fancybox-can-pan"):e&&("zoom"===n.opts.clickContent||f.isFunction(n.opts.clickContent)&&"zoom"==n.opts.clickContent(n))?a.addClass("modula-fancybox-can-zoomIn"):n.opts.touch&&(n.opts.touch.vertical||1<o.group.length)&&"video"!==n.contentType&&a.addClass("modula-fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=!1,n=this.current,a=n.$content;return t!==m&&e!==m?o=t<n.width&&e<n.height:a&&(o=(o=f.modulaFancybox.getTranslate(a)).width<n.width&&o.height<n.height),o},canPan:function(t,e){var o=this.current,n=null,a=!1;return"image"===o.type&&(o.isComplete||t&&e)&&!o.hasError&&(a=this.getFitPos(o),t!==m&&e!==m?n={width:t,height:e}:o.isComplete&&(n=f.modulaFancybox.getTranslate(o.$content)),n&&a&&(a=1.5<Math.abs(n.width-a.width)||1.5<Math.abs(n.height-a.height))),a},loadSlide:function(o){var t,e,n,a=this;if(!o.isLoading&&!o.isLoaded){if(!(o.isLoading=!0)===a.trigger("beforeLoad",o))return o.isLoading=!1;switch(t=o.type,(e=o.$slide).off("refresh").trigger("onReset").addClass(o.opts.slideClass),t){case"image":a.setImage(o);break;case"iframe":a.setIframe(o);break;case"html":a.setContent(o,o.src||o.content);break;case"video":a.setContent(o,o.opts.video.tpl.replace(/\{\{src\}\}/gi,o.src).replace("{{format}}",o.opts.videoFormat||o.opts.video.format||"").replace("{{poster}}",o.thumb||""));break;case"inline":f(o.src).length?a.setContent(o,f(o.src)):a.setError(o);break;case"ajax":a.showLoading(o),n=f.ajax(f.extend({},o.opts.ajax.settings,{url:o.src,success:function(t,e){"success"===e&&a.setContent(o,t)},error:function(t,e){t&&"abort"!==e&&a.setError(o)}})),e.one("onReset",function(){n.abort()});break;default:a.setError(o)}return!0}},setImage:function(e){var t,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=f('<div class="modula-fancybox-content"></div>').addClass("modula-fancybox-is-hidden").appendTo(e.$slide.addClass("modula-fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=s.createElement("img")).onerror=function(){f(this).remove(),e.$ghost=null},t.onload=function(){o.afterLoad(e)},e.$ghost=f(t).addClass("modula-fancybox-image").appendTo(e.$content).attr("src",e.thumb),"undifined"!=typeof e.src&&e.$ghost.attr("alt",e.alt)),o.setBigImage(e)},checkSrcset:function(t){var e,o,n,a,i=t.opts.srcset||t.opts.image.srcset;if(i){n=l.devicePixelRatio||1,a=l.innerWidth*n,(o=i.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var o=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;o&&(n.value=o,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var s=0;s<o.length;s++){var r=o[s];if("w"===r.postfix&&r.value>=a||"x"===r.postfix&&r.value>=n){e=r;break}}!e&&o.length&&(e=o[o.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=i)}},setBigImage:function(e){var o=this,t=s.createElement("img"),n=f(t);e.$image=n.one("error",function(){o.setError(e)}).one("load",function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<a.width()/a.height()?"100":Math.round(e.width/e.height*100))+"vw"),n.attr("sizes",t).attr("srcset",e.opts.srcset)),e.opts.alt&&n.attr("alt",e.opts.alt),e.opts.image_id&&n.attr("image-id",e.opts.image_id),e.$thumb&&n.attr("title",e.$thumb.find("img.pic").attr("title")),e.$ghost&&setTimeout(function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))}).addClass("modula-fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&n.naturalWidth&&n.naturalHeight?n.trigger("load"):t.error&&n.trigger("error")},resolveImageSlideSize:function(t,e,o){var n=parseInt(t.opts.width,10),a=parseInt(t.opts.height,10);t.width=e,t.height=o,0<n&&(t.width=n,t.height=Math.floor(n*o/e)),0<a&&(t.width=Math.floor(a*e/o),t.height=a)},setIframe:function(a){var i,e=this,s=a.opts.iframe,r=a.$slide;a.$content=f('<div class="modula-fancybox-content'+(s.preload?" modula-fancybox-is-hidden":"")+'"></div>').css(s.css).appendTo(r),r.addClass("modula-fancybox-slide--"+a.contentType),a.$iframe=i=f(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(s.attr).appendTo(a.$content),s.preload?(e.showLoading(a),i.on("load.fb error.fb",function(t){this.isReady=1,a.$slide.trigger("refresh"),e.afterLoad(a)}),r.on("refresh.fb",function(){var t,e=a.$content,o=s.css.width,n=s.css.height;if(1===i[0].isReady){try{t=i.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),o===m&&(o=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",o||"").css("max-width",""),n===m&&(n=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",n||""),r.css("overflow","auto")),e.removeClass("modula-fancybox-is-hidden")}})):e.afterLoad(a),i.attr("src",a.src),r.one("onReset",function(){try{f(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}f(this).off("refresh.fb").empty(),a.isLoaded=!1,a.isRevealed=!1})},setContent:function(t,e){var o;this.isClosing||(this.hideLoading(t),t.$content&&f.modulaFancybox.stop(t.$content),t.$slide.empty(),(o=e)&&o.hasOwnProperty&&o instanceof f&&e.parent().length?((e.hasClass("modula-fancybox-content")||e.parent().hasClass("modula-fancybox-content"))&&e.parents(".modula-fancybox-slide").trigger("onReset"),t.$placeholder=f("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&(e=f("<div>").append(f.trim(e)).contents()),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){f(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("modula-fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),f(e).appendTo(t.$slide),f(e).is("video,audio")&&(f(e).addClass("modula-fancybox-video"),f(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||f(e).attr("width"),t.opts.height=t.opts.height||f(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.modula-fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("modula-fancybox-content"),t.$slide.addClass("modula-fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("modula-fancybox-slide--"+t.contentType).addClass("modula-fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=f(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="modula-fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e=this,o=t||e.current,n=o.opts.caption,a=o.opts.preventCaptionOverlap,i=e.$refs.caption,t=!1;i.toggleClass("modula-fancybox-caption--separate",a),a&&n&&n.length&&(o.pos!==e.currPos?((i=i.clone().appendTo(i.parent())).children().eq(0).empty().html(n),t=i.outerHeight(!0),i.empty().remove()):e.$caption&&(t=e.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",t||""))},adjustLayout:function(t){var e,o,n,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(o=a.$slide[0].style["padding-bottom"],n=a.$slide.css("padding-bottom"),0<parseFloat(n)&&(t=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(t-a.$slide[0].scrollHeight)<1&&(e=n),a.$slide.css("padding-bottom",o))),a.$content.css("margin-bottom",e))},revealContent:function(t){var e,o,n,a,i=this,s=t.$slide,r=!1,l=!1,c=i.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[i.firstRun?"animationEffect":"transitionEffect"],n=t.opts[i.firstRun?"animationDuration":"transitionDuration"],n=parseInt(t.forcedDuration===m?n:t.forcedDuration,10),!c&&t.pos===i.currPos&&n||(e=!1),"zoom"===e&&(t.pos===i.currPos&&n&&"image"===t.type&&!t.hasError&&(l=i.getThumbPos(t))?r=i.getFitPos(t):e="fade"),"zoom"===e?(i.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(a=t.opts.zoomOpacity)&&(a=.1<Math.abs(t.width/t.height-l.width/l.height)),a&&(l.opacity=.1,r.opacity=1),f.modulaFancybox.setTranslate(t.$content.removeClass("modula-fancybox-is-hidden"),l),p(t.$content),void f.modulaFancybox.animate(t.$content,r,n,function(){i.isAnimating=!1,i.complete()})):(i.updateSlide(t),e?(f.modulaFancybox.stop(s),o="modula-fancybox-slide--"+(t.pos>=i.prevPos?"next":"previous")+" modula-fancybox-animated modula-fancybox-fx-"+e,s.addClass(o).removeClass("modula-fancybox-slide--current"),t.$content.removeClass("modula-fancybox-is-hidden"),p(s),"image"!==t.type&&t.$content.hide().show(0),void f.modulaFancybox.animate(s,"modula-fancybox-slide--current",n,function(){s.removeClass(o).css({transform:"",opacity:""}),t.pos===i.currPos&&i.complete()},!0)):(t.$content.removeClass("modula-fancybox-is-hidden"),d||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===i.currPos&&i.complete())))},getThumbPos:function(t){var e,o,n,a,i=t.$thumb;return!!(i&&(a=(n=i).find("a.tile-inner")[0])&&a.ownerDocument===s&&(f(".modula-fancybox-container").css("pointer-events","none"),n={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2},a=s.elementFromPoint(n.x,n.y)===a,f(".modula-fancybox-container").css("pointer-events",""),a))&&(o=f.modulaFancybox.getTranslate(i),t=parseFloat(i.css("border-top-width")||0),n=parseFloat(i.css("border-right-width")||0),a=parseFloat(i.css("border-bottom-width")||0),i=parseFloat(i.css("border-left-width")||0),e={top:o.top+t,left:o.left+i,width:o.width-n-i,height:o.height-t-a,scaleX:1,scaleY:1},0<o.width&&0<o.height&&e)},complete:function(){var t,o=this,e=o.current,n={};!o.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),o.preload("inline"),p(e.$slide),e.$slide.addClass("modula-fancybox-slide--complete"),f.each(o.slides,function(t,e){e.pos>=o.currPos-1&&e.pos<=o.currPos+1?n[e.pos]=e:e&&(f.modulaFancybox.stop(e.$slide),e.$slide.off().remove())}),o.slides=n),o.isAnimating=!1,o.updateCursor(),o.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),o.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):o.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,o,n=this;n.group.length<2||(o=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),o&&o.type===t&&n.loadSlide(o))},focus:function(t,e){var o=this,n=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");o.isClosing||((e=(e=!t&&o.current&&o.current.isComplete?o.current.$slide.find("*:visible"+(e?":not(.modula-fancybox-close-small)":"")):o.$refs.container.find("*:visible")).filter(n).filter(function(){return"hidden"!==f(this).css("visibility")&&!f(this).hasClass("disabled")})).length?(n=e.index(s.activeElement),t&&t.shiftKey?(n<0||0==n)&&(t.preventDefault(),e.eq(e.length-1).trigger("focus")):(n<0||n==e.length-1)&&(t&&t.preventDefault(),e.eq(0).trigger("focus"))):o.$refs.container.trigger("focus"))},activate:function(){var e=this;f(".modula-fancybox-container").each(function(){var t=f(this).data("modulaFancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function o(){l.cleanUp(t)}var n,a,i,s,r,l=this,c=l.current;return!l.isClosing&&(!(l.isClosing=!0)===l.trigger("beforeClose",t)?(l.isClosing=!1,d(function(){l.update()}),!1):(l.removeEvents(),i=c.$content,n=c.opts.animationEffect,a=f.isNumeric(e)?e:n?c.opts.animationDuration:0,c.$slide.removeClass("modula-fancybox-slide--complete modula-fancybox-slide--next modula-fancybox-slide--previous modula-fancybox-animated"),!0!==t?f.modulaFancybox.stop(c.$slide):n=!1,c.$slide.siblings().trigger("onReset").remove(),a&&l.$refs.container.removeClass("modula-fancybox-is-open").addClass("modula-fancybox-is-closing").css("transition-duration",a+"ms"),l.hideLoading(c),l.hideControls(!0),l.updateCursor(),"zoom"!==n||i&&a&&"image"===c.type&&!l.isMoved()&&!c.hasError&&(r=l.getThumbPos(c))||(n="fade"),"zoom"===n?(f.modulaFancybox.stop(i),e={top:(s=f.modulaFancybox.getTranslate(i)).top,left:s.left,scaleX:s.width/r.width,scaleY:s.height/r.height,width:r.width,height:r.height},"auto"==(s=c.opts.zoomOpacity)&&(s=.1<Math.abs(c.width/c.height-r.width/r.height)),s&&(r.opacity=0),f.modulaFancybox.setTranslate(i,e),p(i),f.modulaFancybox.animate(i,r,a,o)):n&&a?f.modulaFancybox.animate(c.$slide.addClass("modula-fancybox-slide--previous").removeClass("modula-fancybox-slide--current"),"modula-fancybox-animated modula-fancybox-fx-"+n,a,o):!0===t?setTimeout(o,a):o(),!0))},cleanUp:function(t){var e,o=this,n=o.current.opts.$orig;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.current.opts.backFocus&&(n&&n.length&&n.is(":visible")||(n=o.$trigger),n&&n.length&&(e=l.scrollX,t=l.scrollY,n.trigger("focus"),f("html, body").scrollTop(t).scrollLeft(e))),o.current=null,(o=f.modulaFancybox.getInstance())?o.activate():(f("body").removeClass("modula-fancybox-active compensate-for-scrollbar"),f("#modula-fancybox-style-noscroll").remove())},trigger:function(t,e){var o,n=Array.prototype.slice.call(arguments,1),a=this,e=e&&e.opts?e:a.current;if(e?n.unshift(e):e=a,n.unshift(a),f.isFunction(e.opts[t])&&(o=e.opts[t].apply(e,n)),!1===o)return o;("afterClose"!==t&&a.$refs?a.$refs.container:i).trigger(t+".fb",n)},updateControls:function(){var t=this,e=t.current,o=e.index,n=t.$refs.container,a=t.$refs.caption,i=e.opts.caption;e.$slide.trigger("refresh"),i&&i.length?(t.$caption=a).children().eq(0).html(i):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),n.find("[data-fancybox-count]").html(t.group.length),n.find("[data-fancybox-index]").html(o+1),n.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&o<=0),n.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&o>=t.group.length-1),"image"===e.type?n.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&n.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),f(s.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"modula-fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=(t.current||t).opts,o=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("modula-fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("modula-fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("modula-fancybox-show-caption",!!t.$caption).toggleClass("modula-fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("modula-fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),f.modulaFancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=f('.modula-fancybox-container:not(".modula-fancybox-is-closing"):last').data("modulaFancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof n&&("string"===f.type(t)?e[t].apply(e,o):"function"===f.type(t)&&t.apply(e,o),e)},open:function(t,e,o){return new n(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),i.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(t=s.createElement("div"),l.getComputedStyle&&l.getComputedStyle(t)&&l.getComputedStyle(t).getPropertyValue("transform")&&!(s.documentMode&&s.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var o="",n={};if(t&&e)return e.left===m&&e.top===m||(o=(e.left===m?t.position():e).left+"px, "+(e.top===m?t.position():e).top+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==m&&e.scaleY!==m?o+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==m&&(o+=" scaleX("+e.scaleX+")"),o.length&&(n.transform=o),e.opacity!==m&&(n.opacity=e.opacity),e.width!==m&&(n.width=e.width),e.height!==m&&(n.height=e.height),t.css(n)},animate:function(e,o,n,a,i){var s,r=this;f.isFunction(n)&&(a=n,n=null),r.stop(e),s=r.getTranslate(e),e.on(c,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),f.isNumeric(n)&&e.css("transition-duration",""),f.isPlainObject(o)?o.scaleX!==m&&o.scaleY!==m&&r.setTranslate(e,{top:o.top,left:o.left,width:s.width*o.scaleX,height:s.height*o.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(o),f.isFunction(a)&&a(t))}),f.isNumeric(n)&&e.css("transition-duration",n+"ms"),f.isPlainObject(o)?(o.scaleX!==m&&o.scaleY!==m&&(delete o.width,delete o.height,e.parent().hasClass("modula-fancybox-slide--image")&&e.parent().addClass("modula-fancybox-is-scaling")),f.modulaFancybox.setTranslate(e,o)):e.addClass(o),e.data("timer",setTimeout(function(){e.trigger(c)},n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(c),t.off(c).css("transition-duration",""),t.parent().removeClass("modula-fancybox-is-scaling"))}},f.fn.modulaFancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},b):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},b),this},i.on("click.fb-start","[data-fancybox]",b),i.on("click.fb-start","[data-fancybox-trigger]",function(t){f('[data-fancybox="'+f(this).attr("data-fancybox-trigger")+'"]').eq(f(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:f(this)})}),o=".modula-fancybox-button",h="modula-fancybox-focus",g=null,i.on("mousedown mouseup focus blur",o,function(t){switch(t.type){case"mousedown":g=f(this);break;case"mouseup":g=null;break;case"focusin":f(o).removeClass(h),f(this).is(g)||f(this).is("[disabled]")||f(this).addClass(h);break;case"focusout":f(o).removeClass(h)}})))}(window,document,jQuery),function(h){"use strict";function f(o,t,e){if(o)return e=e||"","object"===h.type(e)&&(e=h.param(e,!0)),h.each(t,function(t,e){o=o.replace("$"+t,e||"")}),e.length&&(o+=(0<o.indexOf("?")?"&":"?")+e),o}var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(t,e,a){var i,s,r,l,c,d,u=a.src||"",p=!1,o=h.extend(!0,{},n,a.opts.media);h.each(o,function(t,e){if(s=u.match(e.matcher)){if(p=e.type,d=t,c={},e.paramPlace&&s[e.paramPlace]){"?"==(l=s[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var o=0;o<l.length;++o){var n=l[o].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return r=h.extend(!0,{},e.params,a.opts[t],c),u="function"===h.type(e.url)?e.url.call(this,s,r,a):f(e.url,s,r),i="function"===h.type(e.thumb)?e.thumb.call(this,s,r,a):f(e.thumb,s),"youtube"===t?u=u.replace(/&t=(\d+)/,function(t,e){return"&start="+e}):"vimeo"===t&&(u=u.replace("&%23","#")),!1}}),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=i),"iframe"===p&&(a.opts=h.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(a,{type:p,src:u,origSrc:a.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(a.type=a.opts.defaultType)});var a={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,o=this;this[t].loaded?setTimeout(function(){o.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){o[t].loaded=!0,o.done(t)}:e.onload=function(){o[t].loaded=!0,o.done(t)},document.body.appendChild(e))},done:function(t){var e,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=h.modulaFancybox.getInstance())&&(o=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",function(){e.next()}))}};h(document).on({"afterShow.fb":function(t,e,o){1<e.group.length&&("youtube"===o.contentSource||"vimeo"===o.contentSource)&&a.load(o.contentSource)}})}(jQuery),function(d,l,u){"use strict";function p(t){var e,o=[];for(e in t=(t=t.originalEvent||t||d.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?o.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&o.push({x:t[e].clientX,y:t[e].clientY});return o}function h(t,e,o){return e&&t?"x"===o?t.x-e.x:"y"===o?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||u.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,o=t[0].attributes,n=o.length;e<n;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return 1}function f(t){for(var e,o,n,a=!1;e=t.get(0),o=n=o=void 0,o=d.getComputedStyle(e)["overflow-y"],n=d.getComputedStyle(e)["overflow-x"],o=("scroll"===o||"auto"===o)&&e.scrollHeight>e.clientHeight,e=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(a=o||e)&&(t=t.parent()).length&&!t.hasClass("modula-fancybox-stage")&&!t.is("body"););return a}function o(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",u.proxy(e,"ontouchstart"))}var m=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(t){return d.setTimeout(t,1e3/60)},g=d.cancelAnimationFrame||d.webkitCancelAnimationFrame||d.mozCancelAnimationFrame||d.oCancelAnimationFrame||function(t){d.clearTimeout(t)};o.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),u(l).off(".fb.touch"),t.requestId&&(g(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},o.prototype.ontouchstart=function(t){var e=this,o=u(t.target),n=e.instance,a=n.current,i=a.$slide,s=a.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&i.length&&o.length&&!c(o)&&!c(o.parent())&&(o.is("img")||!(t.originalEvent.clientX>o[0].clientWidth+o.offset().left))){if(!a||n.isAnimating||a.$slide.hasClass("modula-fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=p(t),e.startPoints.length&&(a.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=o,e.$content=s,e.opts=a.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=n.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(i[0].clientWidth),e.canvasHeight=Math.round(i[0].clientHeight),e.contentLastPos=null,e.contentStartPos=u.modulaFancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=u.modulaFancybox.getTranslate(i),e.stagePos=u.modulaFancybox.getTranslate(n.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,u(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",u.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",u.proxy(e,"ontouchmove")),u.modulaFancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(o.is(e.$stage)||e.$stage.find(o).length)||(o.is(".modula-fancybox-image")&&t.preventDefault(),u.modulaFancybox.isMobile&&o.parents(".modula-fancybox-caption").length))&&(e.isScrollable=f(o)||f(o.parent()),u.modulaFancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!a.hasError||(e.canPan?(u.modulaFancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("modula-fancybox-is-grabbing")),2===e.startPoints.length&&"image"===a.type&&(a.isLoaded||a.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,u.modulaFancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-u(d).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-u(d).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=h(e.startPoints[0],e.startPoints[1]))))}},o.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},o.prototype.ontouchmove=function(t){var e=this;void 0===t.originalEvent.buttons||0!==t.originalEvent.buttons?e.isScrolling?e.canTap=!1:(e.newPoints=p(t),(e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=h(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=h(e.newPoints[0],e.startPoints[0],"y"),e.distance=h(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))):e.ontouchend(t)},o.prototype.onSwipe=function(t){var a=this,i=a.instance,e=a.isSwiping,o=a.sliderStartPos.left||0;if(!0!==e)"x"==e&&(0<a.distanceX&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?o+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?o-=Math.pow(-a.distanceX,.8):o+=a.distanceX),a.sliderLastPos={top:"x"==e?0:a.sliderStartPos.top+a.distanceY,left:o},a.requestId&&(g(a.requestId),a.requestId=null),a.requestId=m(function(){a.sliderLastPos&&(u.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currPos;u.modulaFancybox.setTranslate(e.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*e.opts.gutter})}),a.$container.addClass("modula-fancybox-is-sliding"))});else if(10<Math.abs(a.distance)){if(a.canTap=!1,i.group.length<2&&a.opts.vertical?a.isSwiping="y":i.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&800<u(d).width()?a.isSwiping="x":(o=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=45<o&&o<135?"y":"x"),"y"===a.isSwiping&&u.modulaFancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);i.isDragging=a.isSwiping,a.startPoints=a.newPoints,u.each(i.slides,function(t,e){var o,n;u.modulaFancybox.stop(e.$slide),o=u.modulaFancybox.getTranslate(e.$slide),n=u.modulaFancybox.getTranslate(i.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("modula-fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)modula-fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===i.current.pos&&(a.sliderStartPos.top=o.top-n.top,a.sliderStartPos.left=o.left-n.left),u.modulaFancybox.setTranslate(e.$slide,{top:o.top-n.top,left:o.left-n.left})}),i.SlideShow&&i.SlideShow.isActive&&i.SlideShow.stop()}},o.prototype.onPan=function(){var t=this;h(t.newPoints[0],t.realPoints[0])<(u.modulaFancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)}))},o.prototype.limitMovement=function(){var t=this,e=t.canvasWidth,o=t.canvasHeight,n=t.distanceX,a=t.distanceY,i=t.contentStartPos,s=i.left,r=i.top,l=i.width,c=i.height,d=e<l?s+n:s,u=r+a,t=Math.max(0,.5*e-.5*l),i=Math.max(0,.5*o-.5*c),l=Math.min(e-l,.5*e-.5*l),c=Math.min(o-c,.5*o-.5*c);return 0<n&&t<d&&(d=t-1+Math.pow(-t+s+n,.8)||0),n<0&&d<l&&(d=l+1-Math.pow(l-s-n,.8)||0),0<a&&i<u&&(u=i-1+Math.pow(-i+r+a,.8)||0),a<0&&u<c&&(u=c+1-Math.pow(c-r-a,.8)||0),{top:u,left:d}},o.prototype.limitPosition=function(t,e,o,n){var a=this.canvasWidth,i=this.canvasHeight;return t=a<o?(t=0<t?0:t)<a-o?a-o:t:Math.max(0,a/2-o/2),{top:e=i<n?(e=0<e?0:e)<i-n?i-n:e:Math.max(0,i/2-n/2),left:t}},o.prototype.onZoom=function(){var t=this,e=t.contentStartPos,o=e.width,n=e.height,a=e.left,i=e.top,s=h(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(o*s),l=Math.floor(n*s),c=(o-r)*t.percentageOfImageAtPinchPointX,e=(n-l)*t.percentageOfImageAtPinchPointY,o=(t.newPoints[0].x+t.newPoints[1].x)/2-u(d).scrollLeft(),n=(t.newPoints[0].y+t.newPoints[1].y)/2-u(d).scrollTop(),o=o-t.centerPointStartX,s={top:i+(e+(n-t.centerPointStartY)),left:a+(c+o),scaleX:s,scaleY:s};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=s,t.requestId&&g(t.requestId),t.requestId=m(function(){u.modulaFancybox.setTranslate(t.$content,t.contentLastPos)})},o.prototype.ontouchend=function(t){var e=this,o=e.isSwiping,n=e.isPanning,a=e.isZooming,i=e.isScrolling;if(e.endPoints=p(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("modula-fancybox-is-grabbing"),u(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(g(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,n?e.endPanning():a?e.endZooming():e.endSwiping(o,i)},o.prototype.endSwiping=function(t,e){var o=this,n=!1,a=o.instance.group.length,i=Math.abs(o.distanceX),i="x"==t&&1<a&&(130<o.dMs&&10<i||50<i);o.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(o.distanceY)?(u.modulaFancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),n=o.instance.close(!0,250)):i&&0<o.distanceX?n=o.instance.previous(300):i&&o.distanceX<0&&(n=o.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("modula-fancybox-is-sliding")},o.prototype.endPanning=function(){var t,e,o=this;o.contentLastPos&&(e=!1===o.opts.momentum||350<o.dMs?(t=o.contentLastPos.left,o.contentLastPos.top):(t=o.contentLastPos.left+500*o.velocityX,o.contentLastPos.top+500*o.velocityY),(e=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,e.height=o.contentStartPos.height,u.modulaFancybox.animate(o.$content,e,366))},o.prototype.endZooming=function(){var t,e,o,n=this,a=n.instance.current,i=n.newWidth,s=n.newHeight;n.contentLastPos&&(t=n.contentLastPos.left,o={top:e=n.contentLastPos.top,left:t,width:i,height:s,scaleX:1,scaleY:1},u.modulaFancybox.setTranslate(n.$content,o),i<n.canvasWidth&&s<n.canvasHeight?n.instance.scaleToFit(150):i>a.width||s>a.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(s=n.limitPosition(t,e,i,s),u.modulaFancybox.animate(n.$content,s,150)))},o.prototype.onTap=function(e){function t(t){if(t=s.opts[t],u.isFunction(t)&&(t=t.apply(i,[s,e])),t)switch(t){case"close":i.close(n.startEvent);break;case"toggleControls":i.toggleControls();break;case"next":i.next();break;case"nextOrClose":1<i.group.length?i.next():i.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(i.canPan()?i.scaleToFit():i.isScaledDown()?i.scaleToActual(l,c):i.group.length<2&&i.close(n.startEvent))}}var o,n=this,a=u(e.target),i=n.instance,s=i.current,r=e&&p(e)||n.startPoints,l=r[0]?r[0].x-u(d).scrollLeft()-n.stagePos.left:0,c=r[0]?r[0].y-u(d).scrollTop()-n.stagePos.top:0;if((!e.originalEvent||2!=e.originalEvent.button)&&(a.is("img")||!(l>a[0].clientWidth+a.offset().left))){if(a.is(".modula-fancybox-bg,.modula-fancybox-inner,.modula-fancybox-outer,.modula-fancybox-container"))o="Outside";else if(a.is(".modula-fancybox-slide"))o="Slide";else{if(!i.current.$content||!i.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY))return this;t("dblclick"+o)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+o]&&s.opts["dblclick"+o]!==s.opts["click"+o]?n.tapped=setTimeout(function(){n.tapped=null,i.isAnimating||t("click"+o)},500):t("click"+o);return this}},u(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new o(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(i,s){"use strict";s.extend(!0,s.modulaFancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="modula-fancybox-button modula-fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function o(t){this.instance=t,this.init()}s.extend(o.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,o=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=s('<div class="modula-fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,o=e.instance,n=o.current;n&&(!0===t||n.opts.loop||o.currIndex<o.group.length-1)?e.isActive&&"video"!==n.contentType&&(e.$progress&&s.modulaFancybox.animate(e.$progress.show(),{scaleX:1},n.opts.slideShow.speed),e.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},n.opts.slideShow.speed)):(e.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("modula-fancybox-button--play").addClass("modula-fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("modula-fancybox-button--pause").addClass("modula-fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),s(i).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new o(e))},"beforeShow.fb":function(t,e,o,n){e=e&&e.SlideShow;n?e&&o.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.fb":function(t,e,o){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.SlideShow;!e||!o.opts.slideShow||80!==a&&32!==a||s(i.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(i).on("visibilitychange",function(){var t=s.modulaFancybox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(i.hidden?t.clear():t.set())})}(document,jQuery),function(i,o){"use strict";var n,a=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],e={},o=0;o<t.length;o++){var n=t[o];if(n&&n[1]in i){for(var a=0;a<n.length;a++)e[t[0][a]]=n[a];return e}}return!1}();a&&(n={request:function(t){(t=t||i.documentElement)[a.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){i[a.exitFullscreen]()},toggle:function(t){t=t||i.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(i[a.fullscreenElement])},enabled:function(){return Boolean(i[a.fullscreenEnabled])}},o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="modula-fancybox-button modula-fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),o(i).on(a.fullscreenchange,function(){var t=n.isFullscreen(),e=o.modulaFancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("modula-fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("modula-fancybox-button--fsenter",!t).toggleClass("modula-fancybox-button--fsexit",t))})),o(i).on({"onInit.fb":function(t,e){a?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,o,n,a){e&&e.FullScreen&&70===a&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("modula-fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,i){"use strict";var s="modula-fancybox-thumbs",r=s+"-active";i.modulaFancybox.defaults=i.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="modula-fancybox-button modula-fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".modula-fancybox-container",axis:"y"}},i.modulaFancybox.defaults);function n(t){this.init(t)}i.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,o=t.group,n=0;e.instance=t,e.opts=o[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var a=0,i=o.length;a<i&&(o[a].thumb&&n++,!(1<n));a++);1<n&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var o,t=this,e=t.instance,n=t.opts.parentEl,a=[];t.$grid||(t.$grid=i('<div class="'+s+" "+s+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(n).addBack().filter(n)),t.$grid.on("click","a",function(){e.jumpTo(i(this).attr("data-index"))})),t.$list||(t.$list=i('<div class="'+s+'__list">').appendTo(t.$grid)),i.each(e.group,function(t,e){(o=e.thumb)||"image"!==e.type||(o=e.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(o&&o.length?' style="background-image:url('+o+')"':'class="modula-fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=a.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,o,n=this,a=n.$list,i=n.$grid;n.instance.current&&(o=(e=a.children().removeClass(r).filter('[data-index="'+n.instance.current.index+'"]').addClass(r)).position(),"y"===n.opts.axis&&(o.top<0||o.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+o.top},t):"x"===n.opts.axis&&(o.left<i.scrollLeft()||o.left>i.scrollLeft()+(i.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:o.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("modula-fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),i(t).on({"onInit.fb":function(t,e){var o;e&&!e.Thumbs&&(o=new n(e)).isActive&&!0===o.opts.autoStart&&o.show()},"beforeShow.fb":function(t,e,o,n){e=e&&e.Thumbs;e&&e.isVisible&&e.focus(n?0:250)},"afterKeydown.fb":function(t,e,o,n,a){e=e&&e.Thumbs;e&&e.isActive&&71===a&&(n.preventDefault(),e.toggle())},"beforeClose.fb":function(t,e){e=e&&e.Thumbs;e&&e.isVisible&&!1!==e.opts.hideOnClose&&e.$grid.hide()}})}(document,jQuery),function(t,o){"use strict";o.extend(!0,o.modulaFancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="modula-fancybox-button modula-fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}}}),o(t).on("click","[data-fancybox-share]",function(){var a,e,i=o.modulaFancybox.getInstance(),s=i.current||null,r="<div class='modula-fancybox-share'><h1>{{SHARE}}</h1><p>";s&&("function"===o.type(s.opts.share.url)&&(a=s.opts.share.url.apply(s,[i,s])),o.each(s.opts.modulaShare,function(t,e){var o=(s.opts.lightboxEmailMessage.length?s.opts.lightboxEmailMessage:"Here is the link to the image : %%image_link%% and this is the link to the gallery : %%gallery_link%%").replace(/\%%gallery_link%%/g,window.location.href).replace(/\%%image_link%%/g,s.src),n=null!=jQuery(s.$image).attr("title")?jQuery(s.$image).attr("title"):"";""==n&&(n=i.$caption.text()),r+=s.opts.shareBtnTpl[e].replace(/\{\{media\}\}/g,"image"===s.type?encodeURIComponent(s.src):"").replace(/\{\{modulaShareUrl\}\}/g,encodeURIComponent(a)).replace(/\{\{descr\}\}/g,encodeURIComponent(n)).replace(/\{\{subject\}\}/g,encodeURIComponent(s.opts.lightboxEmailSubject)).replace(/\{\{emailMessage\}\}/g,encodeURIComponent(o))}),r=(r+="</p><p><input class='modula-fancybox-share__input' type='text' value='{{url_raw}}' /></p></div>").replace(/\{\{url_raw\}\}/g,(e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},String(a).replace(/[&<>"'`=\/]/g,function(t){return e[t]}))),o.modulaFancybox.open({src:i.translate(i,r),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".modula-fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(i,s,n){"use strict";function a(){var t=i.location.hash.substr(1),e=t.split("-"),o=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:e.join("-")}}function e(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){return!!t&&(""!==(t=(t=(t.current||t).opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&t)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.modulaFancybox.defaults.hash&&(n(s).on({"onInit.fb":function(t,e){!1!==e.group[e.currIndex].opts.hash&&(a(),r(e))},"beforeShow.fb":function(t,e,o,n){var a;o&&!1!==o.opts.hash&&(a=r(e))&&(e.currentHash=a+(1<e.group.length?"-"+o.opts.image_id:""),i.location.hash!=="#"+e.currentHash&&(n&&!e.origHash&&(e.origHash=i.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in i.history?(i.history[n?"pushState":"replaceState"]({},s.title,i.location.pathname+i.location.search+"#"+e.currentHash),n&&(e.hasCreatedHistory=!0)):i.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,o){o&&!1!==o.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?i.history.back():e.currentHash&&("replaceState"in i.history?i.history.replaceState({},s.title,i.location.pathname+i.location.search+(e.origHash||"")):i.location.hash=e.origHash),e.currentHash=null)}}),n(i).on("hashchange.fb",function(){var t=a(),o=null;n.each(n(".modula-fancybox-container").get().reverse(),function(t,e){e=n(e).data("modulaFancyBox");if(e&&e.currentHash)return o=e,!1}),o?o.currentHash===t.gallery+"-"+t.index||1===t.index&&o.currentHash==t.gallery||(o.currentHash=null,o.close()):""!==t.gallery&&e(t)}),setTimeout(function(){n.modulaFancybox.getInstance()||e(a())},50))})}(window,document,jQuery),function(t,e){"use strict";var a=(new Date).getTime();e(t).on({"onInit.fb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,o=(new Date).getTime();n.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("modula-fancybox-animated")||(t=t.originalEvent||t,o-a<250||(a=o,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
3 |
-
function tg_getURLParameter(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function modulaInViewport(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);t=t.getBoundingClientRect();return t.top-jQuery(window).height()<=-100&&-400<=t.top-jQuery(window).height()||t.bottom<=jQuery(window).height()}jQuery(document).on("vc-full-width-row-single vc-full-width-row",function(t,i){0<jQuery("body").find(".modula").length&&jQuery(window).trigger("modula-update")}),jQuery(window).on("elementor/frontend/init",function(){window.elementorFrontend&&window.elementorFrontend.hooks.addAction("frontend/element_ready/global",function(t){jQuery("body").find(".modula").length})}),function(u,s,a,t){var n="modulaGallery",e={resizer:"/",keepArea:!0,type:"creative-gallery",columns:12,gutter:10,desktopGutter:10,mobileGutter:10,tabletGutter:10,enableTwitter:!1,enableFacebook:!1,enableWhatsapp:!1,enablePinterest:!1,enableLinkedin:!1,enableEmail:!1,lazyLoad:0,initLightbox:!1,lightbox:"fancybox",lightboxOpts:{},inView:!1};function h(t,i){this.element=t,this.$element=u(t),this.$itemsCnt=this.$element.find(".modula-items"),this.$items=this.$itemsCnt.find(".modula-item"),this.options=u.extend({},e,i),this._defaults=e,this._name=n,this.tiles=[],this.$tilesCnt=null,this.completed=!1,this.lastWidth=0,this.resizeTO=0,this.isIsotope=!1,this.isLazyLoaded=!0,this.init()}h.prototype.init=function(){var i=this,t=a.documentElement.clientWidth;this.options.gutter=t<=568?this.options.mobileGutter:t<=768?this.options.tabletGutter:this.options.desktopGutter,u(a).trigger("modula_api_before_init",[i]),"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),"custom-grid"===this.options.type&&u(s).height()<u("html").height()&&i.onResize(i),u(s).resize(function(){i.onResize(i)}),u(s).on("modula-update",function(){i.onResize(i)}),u(a).on("lazyloaded",function(t){t=u(t.target);"modula"==t.data("source")&&(t.data("size",{width:t.width(),height:t.height()}),(t=t.parents(".modula-item")).addClass("tg-loaded"),t=i.$items.not(".jtg-hidden").index(t),i.placeImage(t),i.isIsotope&&i.$itemsCnt.modulaisotope("layout"),"grid"==i.options.type&&"automatic"==i.options.grid_type&&i.$itemsCnt.justifiedGallery())}),i.options.inView&&jQuery(s).on("DOMContentLoaded load resize scroll",function(){modulaInViewport(i.$element)&&i.$element.addClass("modula-loaded-scale")}),this.setupSocial(),jQuery(i.$element).addClass("modula-gallery-initialized"),this.options.onComplete&&this.options.onComplete(),"fancybox"!=i.options.lightbox||i.options.initLightbox||this.initLightbox(),u(a).trigger("modula_api_after_init",[i])},h.prototype.initLightbox=function(){var e=this;e.$element.on("click",".modula-item-link:not( .modula-simple-link )",function(t){t.preventDefault();var i=u.map(e.$items,function(t){var i=jQuery(t).find(".modula-item-link:not( .modula-simple-link )"),t=jQuery(t).find(".pic");return{src:i.attr("href"),opts:{$thumb:t.parents(".modula-item"),caption:i.data("caption"),alt:t.attr("alt"),image_id:i.attr("data-image-id")}}}),t=e.$items.index(jQuery(this).parents(".modula-item"));jQuery.modulaFancybox.open(i,e.options.lightboxOpts,t)})},h.prototype.trunc=function(t){return Math.trunc?Math.trunc(t):(t=+t,isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t)},h.prototype.createCustomGallery=function(){var h,r=this,t=this.$element.find(".modula-items").width(),l=this,d=this.options.columns,i=a.documentElement.clientWidth;"1"==this.options.enableResponsive&&(i<=568?d=this.options.mobileColumns:i<=768&&(d=this.options.tabletColumns)),h=0<this.options.gutter?(t-this.options.gutter*(d-1))/d:Math.floor(t/d*1e3)/1e3,this.$items.not(".jtg-hidden").each(function(t,i){var e,o,n={},s=u(i).data("width"),a=u(i).data("height");12<s&&(s=12),"1"==l.options.enableResponsive&&(e=s,o=a,1==d?a=(s=1)*o/e:((s=Math.round(d*e/12))<1&&(s=1),(a=Math.round(s*o/e))<1&&(a=1))),n.width=h*s+l.options.gutter*(s-1),n.height=Math.round(h)*a+l.options.gutter*(a-1),u(i).data("size",n).addClass("tiled").addClass(n.width>n.height?"tile-h":"tile-v").data("position"),u(i).css(u(i).data("size")),u(i).find(".figc").css({width:u(i).data("size").width,height:u(i).data("size").height}),r.loadImage(t)});t={itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(l.options.gutter)}};this.$itemsCnt.modulaisotope(t),this.isIsotope=!0},h.prototype.createGrid=function(){var o=this;this.$itemsCnt.data("area",this.$itemsCnt.width()*this.options.height),this.lastWidth=this.$itemsCnt.width();for(var t,i=0;i<this.$items.not(".jtg-hidden").length;i++)this.tiles.push(o.getSlot());this.tiles.sort(function(t,i){return t.position-i.position}),this.$items.not(".jtg-hidden").each(function(t,i){var e=o.tiles[t];u(i).data("size",e),u(i).addClass("tiled").addClass(e.width>e.height?"tile-h":"tile-v").data("position"),u(i).css({width:e.width,height:e.height}),u(i).find(".figc").css({width:e.width,height:e.height}),o.loadImage(t)}),this.isIsotope||(t={resizesContainer:!1,itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(o.options.gutter)}},this.$itemsCnt.modulaisotope(t),this.isIsotope=!0)},h.prototype.createAutoGrid=function(){this.$itemsCnt.justifiedGallery({rowHeight:this.options.rowHeight,margins:this.options.gutter,lastRow:this.options.lastRow,captions:!1,border:0,imgSelector:".pic",cssAnimation:!0,imagesAnimationDuration:700})},h.prototype.createColumnsGrid=function(){var e=this;this.$itemsCnt.modulaisotope({itemSelector:".modula-item",layoutMode:"packery",packery:{gutter:parseInt(this.options.gutter)}}),this.$items.each(function(t,i){e.loadImage(t)}),this.isIsotope=!0},h.prototype.getSlot=function(){if(0==this.tiles.length)return o={top:0,left:0,width:this.$itemsCnt.width(),height:this.options.height,area:this.$itemsCnt.width()*this.options.height,position:0};for(var t=0,i=0;i<this.tiles.length;i++)(o=this.tiles[i]).area>this.tiles[t].area&&(t=i);var e,o={},n=this.tiles[t];return(o=n.width>n.height?(e=n.width/2*this.options.randomFactor,n.prevWidth=n.width,n.width=Math.floor(n.width/2+e*(Math.random()-.5)),{top:n.top,left:n.left+n.width+this.options.gutter,width:n.prevWidth-n.width-this.options.gutter,height:n.height}):(e=n.height/2*this.options.randomFactor,n.prevHeight=n.height,n.height=Math.floor(n.height/2+e*(Math.random()-.5)),{left:n.left,top:n.top+n.height+this.options.gutter,width:n.width,height:n.prevHeight-n.height-this.options.gutter})).area=o.width*o.height,o.position=1e3*o.top+o.left,n.position=1e3*n.top+n.left,this.tiles[t]=n,this.tiles[t].area=n.width*n.height,o},h.prototype.reset=function(){this.tiles=[],"custom-grid"===this.options.type?this.createCustomGallery():"creative-gallery"==this.options.type?this.createGrid():"grid"==this.options.type&&("automatic"==this.options.grid_type?this.createAutoGrid():this.createColumnsGrid()),this.lastWidth=this.$itemsCnt.width(),u(a).trigger("modula_api_reset",[this])},h.prototype.onResize=function(i){var t;i.lastWidth!=i.$itemsCnt.width()&&(t=a.documentElement.clientWidth,i.options.gutter=t<=568?i.options.mobileGutter:t<=768?i.options.tabletGutter:this.options.desktopGutter,clearTimeout(i.resizeTO),i.resizeTO=setTimeout(function(){var t;i.options.keepArea&&(t=i.$itemsCnt.data("area"),i.$itemsCnt.height(t/i.$itemsCnt.width())),i.reset(),i.isIsotope&&i.$itemsCnt.modulaisotope({packery:{gutter:parseInt(i.options.gutter)}}).modulaisotope("layout")},100))},h.prototype.loadImage=function(t){var i,e,o=this,n=o.$items.not(".jtg-hidden").eq(t).find(".pic");"0"==o.options.lazyLoad?((e=new Image).onload=function(){i={width:this.width,height:this.height},n.data("size",i),o.placeImage(t)},"undefined"!=n.attr("src")?e.src=n.attr("src"):e.src=n.data("src")):o.placeImage(t)},h.prototype.placeImage=function(t){if("grid"!=this.options.type){var i=this.$items.not(".jtg-hidden").eq(t),e=i.find(".pic"),o=i.data("size"),n=e.data("size");if(void 0!==o&&void 0!==n){o.width,o.height;var s=n.width/n.height,a=e.data("valign")?e.data("valign"):"middle",h=e.data("halign")?e.data("halign"):"center",i={top:"auto",bottom:"auto",left:"auto",right:"auto",width:"auto",height:"auto",margin:"0",maxWidth:"999em"};if(o.width*n.height/n.width>o.height)switch(i.width=o.width,i.left=0,a){case"top":i.top=0;break;case"middle":i.top=0-(o.width*(1/s)-o.height)/2;break;case"bottom":i.bottom=0}else switch(i.height=o.height,i.top=0,h){case"left":i.left=0;break;case"center":i.left=0-(o.height*s-o.width)/2;break;case"right":i.right=0}e.css(i),this.$items.not(".jtg-hidden").eq(t).addClass("tg-loaded")}}},h.prototype.setupSocial=function(){this.options.enableTwitter&&i(this.$items,this),this.options.enableFacebook&&o(this.$items,this),this.options.enablePinterest&&l(this.$items,this),this.options.enableLinkedin&&d(this.$items,this),this.options.enableWhatsapp&&r(this.$items,this),this.options.enableEmail&&p(this.$items,this)},h.prototype.destroy=function(){this.isPackeryActive&&(this.$itemsCnt.packery("destroy"),this.isPackeryActive=!1)};var i=function(t,i){t.find(".modula-icon-twitter").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("caption"),o=i.data("full"),t=i.attr("title"),i=a.title;return 0<t.length?i=u.trim(t):0<e.length&&(i=u.trim(e)),s.open("https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(i),"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},o=function(t,i){t.find(".modula-icon-facebook").click(function(t){t.preventDefault();t="//www.facebook.com/sharer.php?u="+u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},r=function(t,i){t.find(".modula-icon-whatsapp").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full");return s.open("https://api.whatsapp.com/send?text="+encodeURI(t)+"&preview_url=true","ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},l=function(t,i){t.find(".modula-icon-pinterest").click(function(t){t.preventDefault();var i=u(this).parents(".modula-item").find("img.pic"),e=i.data("full"),o=i.data("caption"),n=i.attr("title"),t=a.title;0<n.length?t=u.trim(n):0<o.length&&(t=u.trim(o));e="http://pinterest.com/pin/create/button/?url="+encodeURI(e)+"&description="+encodeURI(t);return 1<=i.length&&(t=i.attr("data-full"),e+="&media="+(i=t,(t=a.createElement("img")).src=i,i=t.src,t.src=null,i)),s.open(e,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},d=function(t,i){t.find(".modula-icon-linkedin").click(function(t){t.preventDefault();t=u(this).parents(".modula-item").find("img.pic").attr("data-full"),t="//linkedin.com/shareArticle?mini=true&url="+encodeURI(t);return s.open(t,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})},p=function(t,n){t.find(".modula-icon-email").click(function(t){var i=encodeURI(n.options.email_subject),e=jQuery(".modula-icon-email").parents(".modula-item").find("img.pic").attr("data-full"),o=location.href,o="mailto:?subject="+i+"&body="+encodeURI(n.options.email_message.replace(/%%image_link%%/g,e).replace(/%%gallery_link%%/g,o));return s.open(o,"ftgw","location=1,status=1,scrollbars=1,width=600,height=400").moveTo(screen.width/2-300,screen.height/2-200),!1})};u.fn[n]=function(i){var e,o=arguments;return i===t||"object"==typeof i?this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new h(this,i))}):"string"==typeof i&&"_"!==i[0]&&"init"!==i?(this.each(function(){var t=u.data(this,"plugin_"+n);t instanceof h&&"function"==typeof t[i]&&(e=t[i].apply(t,Array.prototype.slice.call(o,1))),"destroy"===i&&u.data(this,"plugin_"+n,null)}),e!==t?e:this):void 0}}(jQuery,window,document),jQuery(document).ready(function(){var t=jQuery(".modula.modula-gallery");jQuery.each(t,fu
|
|
|
|
|
|