Version Description
Download this release
Release Info
Developer | pasyuk |
Plugin | Gmedia Photo Gallery |
Version | 1.16.6 |
Comparing to | |
See all releases |
Code changes from version 1.16.4 to 1.16.6
- admin/admin.php +1 -1
- admin/pages/modules/functions.php +80 -68
- admin/pages/modules/tpl/module-item.php +7 -3
- grand-media.php +2 -2
- inc/frontend.filters.php +6 -2
- module/amron/css/gm_vit_itemMenu.css +0 -29
- module/amron/css/gm_vit_modalWin.css +0 -289
- module/amron/css/gm_vit_slider.css +0 -399
- module/amron/css/style.css +0 -512
- module/amron/index.php +1 -1
- module/amron/js/components/gm_vit_itemMenu.js +0 -18
- module/amron/js/components/gm_vit_modalWin.js +0 -32
- module/amron/js/components/gm_vit_slider.js +0 -91
- module/amron/js/script.js +1 -90
- module/amron/settings.php +1 -1
- module/cubik-lite/index.php +1 -1
- module/cubik-lite/init.php +2 -0
- module/jq-mplayer/index.php +1 -1
- module/jq-mplayer/init.php +2 -0
- module/phantom/index.php +1 -1
- module/phantom/init.php +2 -0
- module/photomania/index.php +1 -1
- module/photomania/init.php +2 -0
- readme.txt +9 -0
admin/admin.php
CHANGED
@@ -245,7 +245,7 @@ class GmediaAdmin {
|
|
245 |
if ( (int) $gmGallery->options['twitter'] ) {
|
246 |
?>
|
247 |
<div class="row panel visible-lg-block">
|
248 |
-
<a class="twitter-timeline" href="https://twitter.com/CodEasily/timelines/648240437141086212?ref_src=twsrc%5Etfw">#GmediaGallery - Curated tweets by CodEasily</a>
|
249 |
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
250 |
</div>
|
251 |
<?php
|
245 |
if ( (int) $gmGallery->options['twitter'] ) {
|
246 |
?>
|
247 |
<div class="row panel visible-lg-block">
|
248 |
+
<a class="twitter-timeline" data-height="600" href="https://twitter.com/CodEasily/timelines/648240437141086212?ref_src=twsrc%5Etfw">#GmediaGallery - Curated tweets by CodEasily</a>
|
249 |
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
250 |
</div>
|
251 |
<?php
|
admin/pages/modules/functions.php
CHANGED
@@ -3,85 +3,97 @@
|
|
3 |
* Modules functions
|
4 |
*/
|
5 |
|
6 |
-
function gmedia_module_action_buttons($module){
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
-
function gmedia_module_preset_more_data(&$item){
|
43 |
-
|
44 |
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
|
50 |
-
|
51 |
-
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
|
65 |
-
|
66 |
-
|
67 |
|
68 |
-
|
69 |
-
|
70 |
|
71 |
-
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
|
86 |
-
|
87 |
}
|
3 |
* Modules functions
|
4 |
*/
|
5 |
|
6 |
+
function gmedia_module_action_buttons( $module ) {
|
7 |
+
global $gmCore, $gmProcessor, $gmGallery;
|
8 |
+
|
9 |
+
$buttons = [];
|
10 |
+
if ( ( 'remote' == $module['place'] ) && ! empty( $module['buy'] ) ) {
|
11 |
+
//$sale = !empty($module['sale'])? 'onsale' : '';
|
12 |
+
$buttons['buy'] = '<a class="btn btn-primary" href="' . $module['buy'] . '" target="_blank">' . __( 'Buy Now (no license required)', 'grand-media' ) . ' <span>' . $module['price'] . '</span></a>';
|
13 |
+
}
|
14 |
+
|
15 |
+
if ( ( ! empty( $module['status'] ) && 'premium' === $module['status'] ) && empty( $module['buy'] ) && empty( $gmGallery->options['license_name'] ) ) {
|
16 |
+
$buttons['premium'] = '<a class="btn btn-success" style="font-weight: bold;" target="_blank" href="https://codeasily.com/gmedia-premium/">' . __( 'Get Premium', 'grand-media' ) . '</a>';
|
17 |
+
} else {
|
18 |
+
if ( 'remote' == $module['place'] && ! empty( $module['download'] ) ) {
|
19 |
+
if ( ( ! empty( $module['status'] ) && 'premium' === $module['status'] ) && empty( $gmGallery->options['license_name'] ) ) {
|
20 |
+
$buttons['premium'] = '<a class="btn btn-success" style="font-weight: bold;" target="_blank" href="https://codeasily.com/gmedia-premium/">' . __( 'Get Premium', 'grand-media' ) . '</a>';
|
21 |
+
} else {
|
22 |
+
$buttons['install'] = '<a class="btn btn-primary ' . ( gm_user_can( 'module_manage' ) ? 'module_install' : 'disabled' ) . '" data-module="' . $module['name'] . '" data-loading-text="' . __( 'Loading...', 'grand-media' ) . '" href="' . esc_url( $module['download'] ) . '">' . __( 'Install Module', 'grand-media' ) . '</a>';
|
23 |
+
}
|
24 |
+
} elseif ( 'remote' != $module['place'] ) {
|
25 |
+
$buttons['create'] = '<a class="btn btn-success" href="' . $gmCore->get_admin_url( [ 'page' => 'GrandMedia_Galleries', 'gallery_module' => $module['name'] ], [], true ) . '">' . __( 'Create Gallery', 'grand-media' ) . '</a>';
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( ! empty( $module['demo'] ) && $module['demo'] != '#' ) {
|
30 |
+
$buttons['demo'] = '<a class="btn btn-default" target="_blank" href="' . $module['demo'] . '">' . __( 'View Demo', 'grand-media' ) . '</a>';
|
31 |
+
}
|
32 |
+
if ( ! empty( $module['update'] ) && 'remote' != $module['place'] ) {
|
33 |
+
if ( empty( $module['buy'] ) ) {
|
34 |
+
if ( 'free' === $module['status'] || ! empty( $gmGallery->options['license_name'] ) ) {
|
35 |
+
$buttons['update'] = '<a class="btn btn-warning module_install" data-module="' . $module['name'] . '" data-loading-text="' . __( 'Loading...', 'grand-media' ) . '" href="' . esc_url( $module['download'] ) . '">' . __( 'Update Module', 'grand-media' ) . " (v{$module['update']})</a>";
|
36 |
+
}
|
37 |
+
} else {
|
38 |
+
if ( ! empty( $module['download'] ) && ! empty( $gmGallery->options['license_name'] ) ) {
|
39 |
+
$buttons['update'] = '<a class="btn btn-warning module_install" data-module="' . $module['name'] . '" data-loading-text="' . __( 'Loading...', 'grand-media' ) . '" href="' . esc_url( $module['download'] ) . '">' . __( 'Update Module (license required)', 'grand-media' ) . " (v{$module['update']})</a>";
|
40 |
+
}
|
41 |
+
$buttons['update2'] = '<a class="btn btn-warning" target="_blank" href="' . esc_url( $module['buy'] ) . '">' . __( 'Download Update (no license required)', 'grand-media' ) . " (v{$module['update']})</a>";
|
42 |
+
}
|
43 |
+
}
|
44 |
+
if ( ( 'remote' != $module['place'] ) && ( 'amron' != $module['name'] ) && gm_user_can( 'module_manage' ) ) {
|
45 |
+
$buttons['delete'] = '<a class="btn btn-danger" href="' . wp_nonce_url( $gmCore->get_admin_url( [ 'delete_module' => $module['name'] ], [], $gmProcessor->url ), 'gmedia_module_delete', '_wpnonce_module_delete' ) . '">' . __( 'Delete Module', 'grand-media' ) . '</a>';
|
46 |
+
}
|
47 |
+
if ( ! empty( $module['download'] ) && ( 'free' === $module['status'] || ! empty( $gmGallery->options['license_name'] ) ) ) {
|
48 |
+
$buttons['download'] = '<a class="btn btn-link" href="' . $module['download'] . '" download="' . $module['name'] . '">' . __( 'Download module ZIP', 'grand-media' ) . '</a>';
|
49 |
+
}
|
50 |
+
|
51 |
+
return $buttons;
|
52 |
}
|
53 |
|
54 |
+
function gmedia_module_preset_more_data( &$item ) {
|
55 |
+
global $gmCore, $user_ID;
|
56 |
|
57 |
|
58 |
+
if ( ! $item || is_wp_error( $item ) ) {
|
59 |
+
$item = new stdClass();
|
60 |
+
gmedia_module_preset_more_data( $item );
|
61 |
|
62 |
+
return;
|
63 |
+
}
|
64 |
|
65 |
+
if ( empty( $item->term_id ) ) {
|
66 |
+
$item->term_id = 0;
|
67 |
+
$item->name = '';
|
68 |
+
$item->taxonomy = 'gmedia_module';
|
69 |
+
$item->description = [];
|
70 |
+
$item->global = $user_ID;
|
71 |
+
$item->status = $gmCore->_get( 'preset_module', 'amron' );
|
72 |
+
} else {
|
73 |
+
if ( ( $preset_module = $gmCore->_get( 'preset_module' ) ) && $item->status != $preset_module ) {
|
74 |
+
$item = new stdClass();
|
75 |
+
gmedia_module_preset_more_data( $item );
|
76 |
|
77 |
+
return;
|
78 |
+
}
|
79 |
|
80 |
+
$item->name = trim( str_replace( '[' . $item->status . ']', '', $item->name ) );
|
81 |
+
}
|
82 |
|
83 |
+
$item->module = $gmCore->get_module_path( $item->status );
|
84 |
|
85 |
+
$module_info = [ 'type' => '—' ];
|
86 |
+
if ( is_file( $item->module['path'] . '/index.php' ) ) {
|
87 |
+
include( $item->module['path'] . '/index.php' );
|
88 |
|
89 |
+
$item->module['info'] = $module_info;
|
90 |
+
} else {
|
91 |
+
$item->module['broken'] = true;
|
92 |
+
}
|
93 |
|
94 |
+
$getModulePreset = $gmCore->getModulePreset( $item->status );
|
95 |
+
$item->module['name'] = $getModulePreset['module'];
|
96 |
+
$item->module['settings'] = $gmCore->array_replace_recursive( $getModulePreset['settings'][ $getModulePreset['module'] ], maybe_unserialize( $item->description ) );
|
97 |
|
98 |
+
$item = apply_filters( 'gmedia_module_preset_more_data', $item );
|
99 |
}
|
admin/pages/modules/tpl/module-item.php
CHANGED
@@ -8,7 +8,7 @@ if(!defined('ABSPATH')){
|
|
8 |
* Module List Item
|
9 |
*/
|
10 |
|
11 |
-
global $gmDB, $gmCore, $user_ID;
|
12 |
?>
|
13 |
<div class="media<?php echo $module['mclass']; ?>">
|
14 |
<div class="row">
|
@@ -34,12 +34,16 @@ global $gmDB, $gmCore, $user_ID;
|
|
34 |
</p>
|
35 |
</div>
|
36 |
<?php
|
37 |
-
if($module['place']
|
38 |
?>
|
39 |
<div class="col-sm-4">
|
40 |
<div id="module_presets_list" class="module_presets module_presets_<?php echo $module['name'] ?>">
|
41 |
<h4 class="media-heading" style="margin-bottom:10px;">
|
42 |
-
|
|
|
|
|
|
|
|
|
43 |
<?php _e('Presets', 'grand-media'); ?></h4>
|
44 |
<?php
|
45 |
$presets = $gmDB->get_terms('gmedia_module', array('status' => $module['name']));
|
8 |
* Module List Item
|
9 |
*/
|
10 |
|
11 |
+
global $gmGallery, $gmDB, $gmCore, $user_ID;
|
12 |
?>
|
13 |
<div class="media<?php echo $module['mclass']; ?>">
|
14 |
<div class="row">
|
34 |
</p>
|
35 |
</div>
|
36 |
<?php
|
37 |
+
if( 'remote' !== $module['place'] ){
|
38 |
?>
|
39 |
<div class="col-sm-4">
|
40 |
<div id="module_presets_list" class="module_presets module_presets_<?php echo $module['name'] ?>">
|
41 |
<h4 class="media-heading" style="margin-bottom:10px;">
|
42 |
+
<?php if ( 'free' === $module['status'] || ! empty( $gmGallery->options['license_name'] ) || ! empty( $module['buy'] ) ) { ?>
|
43 |
+
<a href="<?php echo $gmCore->get_admin_url(array('page' => 'GrandMedia_Modules', 'preset_module' => $module['name']), array(), admin_url('admin.php')); ?>" class="addpreset pull-right"><span class="label label-success">+</span></a>
|
44 |
+
<?php } else { ?>
|
45 |
+
<a href="https://codeasily.com/gmedia-premium/" title="<?php _e( 'Get Premium', 'grand-media' ); ?>" class="addpreset pull-right"><span class="label label-success">+</span></a>
|
46 |
+
<?php } ?>
|
47 |
<?php _e('Presets', 'grand-media'); ?></h4>
|
48 |
<?php
|
49 |
$presets = $gmDB->get_terms('gmedia_module', array('status' => $module['name']));
|
grand-media.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Gmedia Gallery
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/grand-media/
|
5 |
* Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
|
6 |
-
* Version: 1.16.
|
7 |
* Author: Rattus
|
8 |
* Author URI: https://codeasily.com/
|
9 |
* Requires at least: 3.7
|
@@ -42,7 +42,7 @@ if ( ! class_exists( 'Gmedia' ) ) {
|
|
42 |
*/
|
43 |
class Gmedia {
|
44 |
|
45 |
-
var $version = '1.16.
|
46 |
var $dbversion = '1.8.0';
|
47 |
var $minium_WP = '3.7';
|
48 |
var $options = '';
|
3 |
* Plugin Name: Gmedia Gallery
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/grand-media/
|
5 |
* Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
|
6 |
+
* Version: 1.16.6
|
7 |
* Author: Rattus
|
8 |
* Author URI: https://codeasily.com/
|
9 |
* Requires at least: 3.7
|
42 |
*/
|
43 |
class Gmedia {
|
44 |
|
45 |
+
var $version = '1.16.6';
|
46 |
var $dbversion = '1.8.0';
|
47 |
var $minium_WP = '3.7';
|
48 |
var $options = '';
|
inc/frontend.filters.php
CHANGED
@@ -149,13 +149,17 @@ function gmedia_alter_query_author( $query ) {
|
|
149 |
/** Add related media for tags and categories
|
150 |
*
|
151 |
* @param $posts
|
152 |
-
* @param $query
|
153 |
*
|
154 |
* @return mixed
|
155 |
*/
|
156 |
function gmedia_the_posts_filter_taxonomy( $posts, $query ) {
|
157 |
|
158 |
-
|
|
|
|
|
|
|
|
|
159 |
if ( $paged != 1 ) {
|
160 |
return $posts;
|
161 |
}
|
149 |
/** Add related media for tags and categories
|
150 |
*
|
151 |
* @param $posts
|
152 |
+
* @param WP_Query $query
|
153 |
*
|
154 |
* @return mixed
|
155 |
*/
|
156 |
function gmedia_the_posts_filter_taxonomy( $posts, $query ) {
|
157 |
|
158 |
+
if( ! $query ) {
|
159 |
+
return $posts;
|
160 |
+
}
|
161 |
+
|
162 |
+
$paged = ( $query->get( 'paged' ) ) ? $query->get( 'paged' ) : 1;
|
163 |
if ( $paged != 1 ) {
|
164 |
return $posts;
|
165 |
}
|
module/amron/css/gm_vit_itemMenu.css
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
/****************** Item Menu ************/
|
2 |
-
.gmedia_v2_CollectionItemInfoMenu
|
3 |
-
{
|
4 |
-
position: relative;
|
5 |
-
overflow: hidden ;
|
6 |
-
float: left ;
|
7 |
-
}
|
8 |
-
.gmedia_v2_CollectionItemInfoMenu .itemsButtons
|
9 |
-
{
|
10 |
-
position: relative;
|
11 |
-
padding: 9px;
|
12 |
-
width: 38px;
|
13 |
-
height: 38px;
|
14 |
-
cursor: pointer;
|
15 |
-
float: left;
|
16 |
-
transition: background-color .2s, transform .4s ease-out;
|
17 |
-
border-radius: 2px;
|
18 |
-
}
|
19 |
-
.gmedia_v2_CollectionItemInfoMenu .lightbox
|
20 |
-
{
|
21 |
-
margin-right: 2px;
|
22 |
-
}
|
23 |
-
.gmedia_v2_CollectionItemInfoMenu .itemsButtons svg
|
24 |
-
{
|
25 |
-
width: 100%;
|
26 |
-
height: 100%;
|
27 |
-
transition: fill .2s, transform .4s ease-out;
|
28 |
-
vertical-align: baseline !important;
|
29 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/css/gm_vit_modalWin.css
DELETED
@@ -1,289 +0,0 @@
|
|
1 |
-
/******************************** Modal Window *************************/
|
2 |
-
.gmedia_v2_Modal * {
|
3 |
-
box-sizing: border-box;
|
4 |
-
}
|
5 |
-
.gmedia_v2_Modal
|
6 |
-
{
|
7 |
-
position: fixed;
|
8 |
-
-webkit-backface-visibility: hidden;
|
9 |
-
backface-visibility: hidden;
|
10 |
-
top: 0;
|
11 |
-
left: 0;
|
12 |
-
right: 0;
|
13 |
-
bottom: 0;
|
14 |
-
overflow: hidden;
|
15 |
-
opacity: 0;
|
16 |
-
will-change: opacity;
|
17 |
-
transition: opacity .4s;
|
18 |
-
text-align: center;
|
19 |
-
}
|
20 |
-
.gmedia_v2_Modal .gmflexe
|
21 |
-
{
|
22 |
-
display: inline-block;
|
23 |
-
width: 0;
|
24 |
-
height: 100%;
|
25 |
-
vertical-align: middle;
|
26 |
-
}
|
27 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare
|
28 |
-
{
|
29 |
-
font-size: 14px;
|
30 |
-
line-height: 1.3;
|
31 |
-
margin: 0 10px;
|
32 |
-
padding-bottom: 10px;
|
33 |
-
max-width: 480px;
|
34 |
-
min-width: 260px;
|
35 |
-
background-color: white;
|
36 |
-
border-radius: 2px;
|
37 |
-
box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
|
38 |
-
vertical-align: middle;
|
39 |
-
display: inline-block ;
|
40 |
-
will-change: transform;
|
41 |
-
}
|
42 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemDescription
|
43 |
-
{
|
44 |
-
display: block;
|
45 |
-
margin: 0.5em 0 1em 0;
|
46 |
-
font-weight: 400;
|
47 |
-
font-size: 80%;
|
48 |
-
line-height: 1;
|
49 |
-
}
|
50 |
-
.gmedia_v2_ItemShare .gmDescriptionWrap .gmItemTitle
|
51 |
-
{
|
52 |
-
display: block;
|
53 |
-
font-size: 130%;
|
54 |
-
font-weight: 600;
|
55 |
-
line-height: 1.3;
|
56 |
-
}
|
57 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButtonWrap
|
58 |
-
{
|
59 |
-
position: relative;
|
60 |
-
display: inline-block;
|
61 |
-
padding: 0 4px;
|
62 |
-
min-width: 130px;
|
63 |
-
width: 50%;
|
64 |
-
height: 42px;
|
65 |
-
}
|
66 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButtonWrap .gmItemCopyLink
|
67 |
-
{
|
68 |
-
background-color: rgb(250, 250, 250);
|
69 |
-
border: solid 1px rgba(0, 0, 0, 0.17);
|
70 |
-
width: 100%;
|
71 |
-
height: 100%;
|
72 |
-
border-radius: 2px;
|
73 |
-
overflow: hidden;
|
74 |
-
position: relative;
|
75 |
-
cursor: pointer;
|
76 |
-
transition: .4s;
|
77 |
-
}
|
78 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButtonWrap .gmItemCopyLink svg
|
79 |
-
{
|
80 |
-
width: 40px;
|
81 |
-
height: 40px;
|
82 |
-
padding: 4px;
|
83 |
-
float: left;
|
84 |
-
transition: fill .4s;
|
85 |
-
vertical-align: baseline !important;
|
86 |
-
}
|
87 |
-
.gmItemShareButtonWrap .gmItemCopyLink .gmSH_title
|
88 |
-
{
|
89 |
-
position: absolute;
|
90 |
-
white-space: nowrap;
|
91 |
-
line-height: 41px;
|
92 |
-
left: 41px;
|
93 |
-
right: 10px;
|
94 |
-
overflow: hidden;
|
95 |
-
opacity: .7;
|
96 |
-
transition: .4s;
|
97 |
-
}
|
98 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemCopyLink:hover
|
99 |
-
{
|
100 |
-
box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
|
101 |
-
}
|
102 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemCopyLink:hover .gmSH_title
|
103 |
-
{
|
104 |
-
opacity: 1;
|
105 |
-
}
|
106 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButton
|
107 |
-
{
|
108 |
-
border: 1px solid;
|
109 |
-
border-color: rgba(0, 0, 0, 0.18);
|
110 |
-
cursor: pointer;
|
111 |
-
width: 100%;
|
112 |
-
height: 100%;
|
113 |
-
border-radius: 2px;
|
114 |
-
background-color: rgb(250, 250, 250);
|
115 |
-
transition: .4s;
|
116 |
-
}
|
117 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButton:hover
|
118 |
-
{
|
119 |
-
box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
|
120 |
-
}
|
121 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButton:hover .gmSH_title
|
122 |
-
{
|
123 |
-
opacity: 1;
|
124 |
-
}
|
125 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButton svg
|
126 |
-
{
|
127 |
-
width: 40px;
|
128 |
-
height: 40px;
|
129 |
-
float: left;
|
130 |
-
vertical-align: baseline !important;
|
131 |
-
}
|
132 |
-
.gmedia_v2_Modal .gmedia_v2_ItemShare .gmItemShareButton .gmSH_title
|
133 |
-
{
|
134 |
-
white-space: nowrap;
|
135 |
-
position: absolute;
|
136 |
-
left: 30px;
|
137 |
-
right: 0;
|
138 |
-
font-size: 15px;
|
139 |
-
font-weight: 400;
|
140 |
-
line-height: 41px;
|
141 |
-
text-align: center;
|
142 |
-
opacity: 0.7;
|
143 |
-
transition: opacity .4s;
|
144 |
-
}
|
145 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar
|
146 |
-
{
|
147 |
-
font-size: 14px;
|
148 |
-
line-height: 1.3;
|
149 |
-
margin: 0 10px;
|
150 |
-
padding-bottom: 10px;
|
151 |
-
max-width: 820px;
|
152 |
-
min-width: 260px;
|
153 |
-
background-color: white;
|
154 |
-
border-radius: 2px;
|
155 |
-
box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
|
156 |
-
vertical-align: middle;
|
157 |
-
display: inline-block ;
|
158 |
-
will-change: transform;
|
159 |
-
}
|
160 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar .gmInfoBarCloseButton, .gmedia_v2_Modal .gmedia_v2_ItemShare .gmInfoBarCloseButton
|
161 |
-
{
|
162 |
-
position: relative;
|
163 |
-
z-index: 11;
|
164 |
-
margin: 10px;
|
165 |
-
width: 24px;
|
166 |
-
height: 24px;
|
167 |
-
display: inline-block;
|
168 |
-
float: right ;
|
169 |
-
cursor: pointer;
|
170 |
-
}
|
171 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar .gmInfoBarCloseButton svg, .gmedia_v2_Modal .gmedia_v2_ItemShare .gmInfoBarCloseButton svg
|
172 |
-
{
|
173 |
-
width: 100%;
|
174 |
-
height: 100%;
|
175 |
-
vertical-align: baseline !important;
|
176 |
-
}
|
177 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar .gmDescriptionWrap, .gmedia_v2_Modal .gmedia_v2_ItemShare .gmDescriptionWrap
|
178 |
-
{
|
179 |
-
min-width: 270px;
|
180 |
-
min-height: 44px;
|
181 |
-
padding: 10px 20px 0 20px;
|
182 |
-
float: left;
|
183 |
-
text-align: left;
|
184 |
-
}
|
185 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemTitle
|
186 |
-
{
|
187 |
-
font-size: 130%;
|
188 |
-
font-weight: 600;
|
189 |
-
}
|
190 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemDescription
|
191 |
-
{
|
192 |
-
font-size: 80%;
|
193 |
-
font-weight: 400;
|
194 |
-
}
|
195 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .termsTitle
|
196 |
-
{
|
197 |
-
display: inline-block;
|
198 |
-
line-height: 26px;
|
199 |
-
padding: 0 20px 0 3px;
|
200 |
-
position: relative;
|
201 |
-
text-decoration: none;
|
202 |
-
/*float: left;*/
|
203 |
-
}
|
204 |
-
/*--------------- TAGS ---------------------*/
|
205 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .terms_list
|
206 |
-
{
|
207 |
-
list-style: none;
|
208 |
-
margin: 0;
|
209 |
-
overflow: hidden;
|
210 |
-
padding: 0;
|
211 |
-
}
|
212 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gm_tags_ul {
|
213 |
-
font-size: 1rem !important;
|
214 |
-
line-height: 1.4 !important;
|
215 |
-
margin-bottom: 0 !important;
|
216 |
-
margin-left: 0 !important;
|
217 |
-
}
|
218 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .terms_list li {
|
219 |
-
float: left;
|
220 |
-
}
|
221 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gm_tag, .gmedia_v2_ItemInfoBar .gmDescriptionWrap .gm_album,
|
222 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gm_category
|
223 |
-
{
|
224 |
-
border-radius: 3px;
|
225 |
-
display: inline-block;
|
226 |
-
height: 26px;
|
227 |
-
line-height: 26px;
|
228 |
-
padding: 0 20px 0 23px;
|
229 |
-
position: relative;
|
230 |
-
margin: 0 7px 10px 0;
|
231 |
-
text-decoration: none;
|
232 |
-
cursor: pointer;
|
233 |
-
transition: .3s;
|
234 |
-
}
|
235 |
-
/*------------------------------------*/
|
236 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemMetaExifValue
|
237 |
-
{
|
238 |
-
line-height: 1.9;
|
239 |
-
display: inline-block;
|
240 |
-
}
|
241 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemsDate
|
242 |
-
{
|
243 |
-
font-size: 100%;
|
244 |
-
line-height: 1.9;
|
245 |
-
}
|
246 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemMetaKey
|
247 |
-
{
|
248 |
-
float: left;
|
249 |
-
width: 40%;
|
250 |
-
min-width: 80px;
|
251 |
-
}
|
252 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemMetaValue
|
253 |
-
{
|
254 |
-
float: left;
|
255 |
-
white-space: nowrap;
|
256 |
-
text-transform: capitalize;
|
257 |
-
}
|
258 |
-
.gmedia_v2_ItemInfoBar .gmDescriptionWrap .gmItemMetaExifSeparator {
|
259 |
-
display: inline-block;
|
260 |
-
font-size: 100%;
|
261 |
-
margin: 0 2px;
|
262 |
-
opacity: .4;
|
263 |
-
}
|
264 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar .gmDescriptionWrap .likesViewCom
|
265 |
-
{
|
266 |
-
position: relative;
|
267 |
-
float: left;
|
268 |
-
width: 31%;
|
269 |
-
min-height: 40px;
|
270 |
-
border: 1px solid;
|
271 |
-
border-color: rgba(0, 0, 0, 0.18);
|
272 |
-
border-radius: 2px;
|
273 |
-
background-color: rgb(250, 250, 250);
|
274 |
-
padding: 4px;
|
275 |
-
margin: 0 1%;
|
276 |
-
text-align: center;
|
277 |
-
}
|
278 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar .gmDescriptionWrap .likesViewCom svg
|
279 |
-
{
|
280 |
-
display: inline-block;
|
281 |
-
width: 24px;
|
282 |
-
height: 24px;
|
283 |
-
vertical-align: baseline !important;
|
284 |
-
}
|
285 |
-
.gmedia_v2_Modal .gmedia_v2_ItemInfoBar .gmDescriptionWrap .likesViewCom .counterTxt
|
286 |
-
{
|
287 |
-
font-size: 15px;
|
288 |
-
line-height: 1;
|
289 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/css/gm_vit_slider.css
DELETED
@@ -1,399 +0,0 @@
|
|
1 |
-
.gm_grabbable {
|
2 |
-
cursor: move; /* fallback if grab cursor is unsupported */
|
3 |
-
cursor: grab;
|
4 |
-
cursor: -moz-grab;
|
5 |
-
cursor: -webkit-grab;
|
6 |
-
}
|
7 |
-
/* (Optional) Apply a "closed-hand" cursor during drag operation. */
|
8 |
-
.gm_grabbable:active {
|
9 |
-
cursor: grabbing;
|
10 |
-
cursor: -moz-grabbing;
|
11 |
-
cursor: -webkit-grabbing;
|
12 |
-
}
|
13 |
-
/******************************** CollectionSlider View ********************/
|
14 |
-
.gmedia_v2_ColectionSlider *{
|
15 |
-
box-sizing: border-box !important;
|
16 |
-
line-height: 1.4;
|
17 |
-
}
|
18 |
-
.gmedia_v2_hints
|
19 |
-
{
|
20 |
-
position: absolute;
|
21 |
-
display: inline-block;
|
22 |
-
padding: 5px 10px;
|
23 |
-
font-size: 12px;
|
24 |
-
line-height: normal;
|
25 |
-
background-color: rgba(0,0,0,.8);
|
26 |
-
color: white;
|
27 |
-
transform: translateY(-100%);
|
28 |
-
border-radius: 2px;
|
29 |
-
transition: .4s;
|
30 |
-
}
|
31 |
-
.gmedia_v2_ColectionSlider
|
32 |
-
{
|
33 |
-
position: fixed;
|
34 |
-
z-index: 99999;
|
35 |
-
/*width: 100%;*/
|
36 |
-
/*height: 100vh;*/
|
37 |
-
left: 0;
|
38 |
-
right: 0;
|
39 |
-
top: 0;
|
40 |
-
bottom: 0;
|
41 |
-
visibility: hidden;
|
42 |
-
opacity: 0;
|
43 |
-
-ms-touch-action: none;
|
44 |
-
touch-action: none;
|
45 |
-
-webkit-text-size-adjust: 100%;
|
46 |
-
font-family: Arial, Helvetica, sans-serif;
|
47 |
-
-webkit-transition: opacity .4s ease;
|
48 |
-
transition: opacity .4s ease, visibility .4s ease
|
49 |
-
}
|
50 |
-
.gmedia_v2_ColectionSliderActivate
|
51 |
-
{
|
52 |
-
pointer-events: auto;
|
53 |
-
visibility: visible;
|
54 |
-
opacity: 1;
|
55 |
-
}
|
56 |
-
.gmedia_v2_ColectionSlider .gmSliderBg
|
57 |
-
{
|
58 |
-
width: 100%;
|
59 |
-
height: 100%;
|
60 |
-
transform: translateZ(0);
|
61 |
-
}
|
62 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SlidesWrap
|
63 |
-
{
|
64 |
-
position: absolute;
|
65 |
-
/*will-change: transform;*/
|
66 |
-
width: 100%;
|
67 |
-
top:0;
|
68 |
-
bottom: 0;
|
69 |
-
}
|
70 |
-
.gmedia_v2_ColectionSlider .miniScreen
|
71 |
-
{
|
72 |
-
margin-top: 0;
|
73 |
-
margin-bottom: 0;
|
74 |
-
}
|
75 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage
|
76 |
-
{
|
77 |
-
position: absolute;
|
78 |
-
display: block;
|
79 |
-
transform: translate3d(0px,0px,0px);
|
80 |
-
width: 100%;
|
81 |
-
top:0;
|
82 |
-
bottom: 0;
|
83 |
-
left: 0;
|
84 |
-
-webkit-backface-visibility: hidden;
|
85 |
-
overflow: hidden;
|
86 |
-
}
|
87 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SliderPage .sliderItemsButtons
|
88 |
-
{
|
89 |
-
position: absolute;
|
90 |
-
top: 10px;
|
91 |
-
right: 10px;
|
92 |
-
transition: transform.5s;
|
93 |
-
}
|
94 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_iconHolder
|
95 |
-
{
|
96 |
-
position: absolute;
|
97 |
-
width: 140px;
|
98 |
-
height: 140px;
|
99 |
-
border-radius: 50%;
|
100 |
-
background-color: rgba(255, 255, 255, 0.6);
|
101 |
-
transform: translateY(-50%) translateX(-50%);
|
102 |
-
left: 50%;
|
103 |
-
top:50%;
|
104 |
-
padding: 30px;
|
105 |
-
visibility: hidden;
|
106 |
-
will-change: transform;
|
107 |
-
cursor: pointer;
|
108 |
-
}
|
109 |
-
.gmedia_v2_SliderPage .gmedia_iconHolder svg
|
110 |
-
{
|
111 |
-
width: 100%;
|
112 |
-
height: 100%;
|
113 |
-
fill: rgba(0, 0, 0, 0.4);
|
114 |
-
}
|
115 |
-
.gmedia_v2_SliderPage.info_icon .gmedia_iconHolder
|
116 |
-
{
|
117 |
-
visibility: visible;
|
118 |
-
}
|
119 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_sliderPage_inner
|
120 |
-
{
|
121 |
-
position: absolute;
|
122 |
-
display: block;
|
123 |
-
left: 0;
|
124 |
-
top: 0;
|
125 |
-
bottom: 0;
|
126 |
-
width: 100%;
|
127 |
-
overflow: hidden;
|
128 |
-
transform: translate3d(0,0,0);
|
129 |
-
backface-visibility: hidden;
|
130 |
-
-webkit-backface-visibility: hidden;
|
131 |
-
-webkit-transform-origin: left top;
|
132 |
-
transform-origin: left top;
|
133 |
-
}
|
134 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_sliderPage_inner img
|
135 |
-
{
|
136 |
-
/*will-change: opacity;*/
|
137 |
-
-webkit-backface-visibility: hidden;
|
138 |
-
backface-visibility: hidden;
|
139 |
-
position: absolute !important;
|
140 |
-
display: block !important;
|
141 |
-
border: none !important;
|
142 |
-
max-width: none !important;
|
143 |
-
/*transform-origin: 0 0 !important;*/
|
144 |
-
opacity: 0;
|
145 |
-
padding: 0 !important;
|
146 |
-
margin: 0 !important;
|
147 |
-
transform: translate3d(0,0,0);
|
148 |
-
transition: opacity .35s ease;
|
149 |
-
}
|
150 |
-
.gmedia_v2_SliderPage.video_play .gmedia_sliderPage_inner img{
|
151 |
-
visibility: hidden;
|
152 |
-
}
|
153 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_sliderPage_inner img.onLoad
|
154 |
-
{
|
155 |
-
opacity: 1;
|
156 |
-
}
|
157 |
-
.gmedia_v2_SliderPage .gmedia_sliderPage_inner .gmedia_video_wrap
|
158 |
-
{
|
159 |
-
position: absolute;
|
160 |
-
display: block;
|
161 |
-
border: none;
|
162 |
-
}
|
163 |
-
.gmedia_v2_SliderPage .gmedia_sliderPage_inner .gmedia_video_wrap iframe
|
164 |
-
{
|
165 |
-
width: 100% !important;
|
166 |
-
height: 100% !important;
|
167 |
-
top:0;
|
168 |
-
left: 0;
|
169 |
-
}
|
170 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_v2_ItemPage
|
171 |
-
{
|
172 |
-
position: absolute;
|
173 |
-
width: 100%;
|
174 |
-
height: 100%;
|
175 |
-
top:0;
|
176 |
-
left: 0;
|
177 |
-
overflow: hidden;
|
178 |
-
}
|
179 |
-
.gmedia_SliderImage {
|
180 |
-
position: absolute !important;
|
181 |
-
display: block !important;
|
182 |
-
border: none !important;
|
183 |
-
max-width: none !important;
|
184 |
-
transform-origin: 0 0 !important;
|
185 |
-
}
|
186 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_v2_ItemPage .gmflexe
|
187 |
-
{
|
188 |
-
display: inline-block;
|
189 |
-
width: 0;
|
190 |
-
height: 100%;
|
191 |
-
vertical-align: middle;
|
192 |
-
}
|
193 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_v2_ItemPage img
|
194 |
-
{
|
195 |
-
position: absolute;
|
196 |
-
display: block;
|
197 |
-
border: none;
|
198 |
-
}
|
199 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_v2_ItemPage .gmedia_video_wrap
|
200 |
-
{
|
201 |
-
position: absolute;
|
202 |
-
display: block;
|
203 |
-
border: none;
|
204 |
-
}
|
205 |
-
.gmedia_v2_SlidesWrap .gmedia_v2_SliderPage .gmedia_v2_ItemPage .gmedia_video_wrap iframe
|
206 |
-
{
|
207 |
-
width: 100% !important;
|
208 |
-
height: 100% !important;
|
209 |
-
top:0;
|
210 |
-
left: 0;
|
211 |
-
}
|
212 |
-
.gmedia_v2_ColectionSlider .sliderNextPrevButtons
|
213 |
-
{
|
214 |
-
position: absolute;
|
215 |
-
width: 50px;
|
216 |
-
height: 34px;
|
217 |
-
top: 50%;
|
218 |
-
margin: 0 10px;
|
219 |
-
cursor: pointer;
|
220 |
-
transition: background-color .2s, transform .4s ease-out;
|
221 |
-
border-radius: 2px;
|
222 |
-
}
|
223 |
-
.gmedia_v2_ColectionSlider .sliderNextPrevButtonsMiniScreen
|
224 |
-
{
|
225 |
-
display: none;
|
226 |
-
}
|
227 |
-
.gmedia_v2_ColectionSlider .sliderNextPrevButtons svg
|
228 |
-
{
|
229 |
-
width: 100%;
|
230 |
-
height: 100%;
|
231 |
-
vertical-align: baseline !important;
|
232 |
-
}
|
233 |
-
.gmedia_v2_ColectionSlider .sliderItemsButtons
|
234 |
-
{
|
235 |
-
position: relative;
|
236 |
-
padding: 9px;
|
237 |
-
width: 38px;
|
238 |
-
height: 38px;
|
239 |
-
margin: 0 2px 2px 0;
|
240 |
-
cursor: pointer;
|
241 |
-
float: left;
|
242 |
-
background-color: rgba(0, 0, 0, 0.4);
|
243 |
-
transition: background-color .2s, transform .4s ease-out;
|
244 |
-
border-radius: 2px;
|
245 |
-
}
|
246 |
-
.gmedia_v2_ColectionSlider .sliderItemsButtons svg
|
247 |
-
{
|
248 |
-
width: 100%;
|
249 |
-
height: 100%;
|
250 |
-
transition: fill .2s, transform .4s ease-out;
|
251 |
-
vertical-align: baseline !important;
|
252 |
-
}
|
253 |
-
.gmedia_v2_ColectionSlider .gmNoneTransition
|
254 |
-
{
|
255 |
-
transition: none;
|
256 |
-
}
|
257 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SlidesHeader
|
258 |
-
{
|
259 |
-
position: absolute;
|
260 |
-
height:auto;
|
261 |
-
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1));
|
262 |
-
width: 100%;
|
263 |
-
top: 0;
|
264 |
-
transform: translateY(-100%);
|
265 |
-
/*will-change: transform;*/
|
266 |
-
transition: transform .4s ease-out;
|
267 |
-
}
|
268 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SlidesHeaderMiniScreen
|
269 |
-
{
|
270 |
-
/*background-color: rgba(0, 0, 0, 0);
|
271 |
-
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1));*/
|
272 |
-
}
|
273 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SlidesHeaderActivate
|
274 |
-
{
|
275 |
-
transform: translateY(0);
|
276 |
-
}
|
277 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SlidesFooter
|
278 |
-
{
|
279 |
-
position: absolute;
|
280 |
-
width: 100%;
|
281 |
-
bottom: 0;
|
282 |
-
background-image: linear-gradient(180deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1));
|
283 |
-
transform: translateY(100%);
|
284 |
-
/*will-change: transform;*/
|
285 |
-
transition: transform .4s ease-out;
|
286 |
-
}
|
287 |
-
.gmedia_v2_ColectionSlider .gmedia_v2_SlidesFooterActivate
|
288 |
-
{
|
289 |
-
transform: translateY(0);
|
290 |
-
}
|
291 |
-
.gmedia_v2_ColectionSlider .gmInfoBox1
|
292 |
-
{
|
293 |
-
position: relative;
|
294 |
-
float: left;
|
295 |
-
margin: 10px 20px;
|
296 |
-
overflow: hidden;
|
297 |
-
}
|
298 |
-
.gmedia_v2_ColectionSliderItemTitle
|
299 |
-
{
|
300 |
-
text-rendering: auto;
|
301 |
-
color: #fff;
|
302 |
-
font-size: 36px;
|
303 |
-
width: 100%;
|
304 |
-
overflow: hidden;
|
305 |
-
white-space: nowrap;
|
306 |
-
text-overflow: ellipsis;
|
307 |
-
line-height: 1;
|
308 |
-
box-sizing: content-box;
|
309 |
-
letter-spacing: 0;
|
310 |
-
text-transform: capitalize;
|
311 |
-
margin-bottom: 5px;
|
312 |
-
}
|
313 |
-
.gmedia_v2_ColectionSliderItemTitleMiniScreen
|
314 |
-
{
|
315 |
-
padding-bottom: 10px;
|
316 |
-
}
|
317 |
-
.gmedia_v2_ColectionSliderTermTitle
|
318 |
-
{
|
319 |
-
|
320 |
-
}
|
321 |
-
.gmedia_v2_ColectionSliderTermTitleMiniScreen
|
322 |
-
{
|
323 |
-
|
324 |
-
}
|
325 |
-
/******************************** Slider ScrollBar *************************/
|
326 |
-
.gmedia_v2_TermScrollBarWrap
|
327 |
-
{
|
328 |
-
position: relative;
|
329 |
-
width: 100%;
|
330 |
-
margin: 10px 0;
|
331 |
-
overflow: hidden;
|
332 |
-
}
|
333 |
-
.gmedia_v2_TermScrollBarWrap .gmedia_v2_ScrollView
|
334 |
-
{
|
335 |
-
position: absolute;
|
336 |
-
overflow: hidden;
|
337 |
-
}
|
338 |
-
.gmedia_v2_ScrollBarItem
|
339 |
-
{
|
340 |
-
position: absolute;
|
341 |
-
height: 80px;
|
342 |
-
width: 100px;
|
343 |
-
overflow: hidden;
|
344 |
-
}
|
345 |
-
.gmedia_v2_TermScrollBarWrap .miniScreen
|
346 |
-
{
|
347 |
-
height: 50px;
|
348 |
-
width: 70px;
|
349 |
-
margin: 0 0;
|
350 |
-
}
|
351 |
-
.gmedia_v2_ScrollBarItem .gmedia_v2_ScrollBarItemBg
|
352 |
-
{
|
353 |
-
position: absolute;
|
354 |
-
left: 3px;
|
355 |
-
right: 3px;
|
356 |
-
top: 3px;
|
357 |
-
bottom: 3px;
|
358 |
-
background-position: center;
|
359 |
-
-webkit-background-size: cover;
|
360 |
-
background-size: cover;
|
361 |
-
background-repeat: no-repeat;
|
362 |
-
-webkit-backface-visibility: hidden;
|
363 |
-
backface-visibility: hidden;
|
364 |
-
}
|
365 |
-
.gmedia_v2_ScrollBarItem .gmedia_v2_ScrollBarItemHover
|
366 |
-
{
|
367 |
-
position: absolute;
|
368 |
-
opacity: 0;
|
369 |
-
transition: opacity .2s;
|
370 |
-
pointer-events: none;
|
371 |
-
top: 0;
|
372 |
-
left: 0;
|
373 |
-
right: 0;
|
374 |
-
bottom: 0;
|
375 |
-
border-style: solid;
|
376 |
-
border-width: 3px;
|
377 |
-
border-color: #fff;
|
378 |
-
}
|
379 |
-
.gmedia_v2_ScrollBarItem .gmedia_v2_ScrollBarItemLink
|
380 |
-
{
|
381 |
-
position: absolute;
|
382 |
-
width: 34px;
|
383 |
-
height: 34px;
|
384 |
-
padding: 6px;
|
385 |
-
border-radius: 50%;
|
386 |
-
left: 50%;
|
387 |
-
top: 50%;
|
388 |
-
transform: translateY(-50%) translateX(-50%);
|
389 |
-
}
|
390 |
-
.gmedia_v2_ScrollBarItemLink.rotate svg{
|
391 |
-
animation: 1s spinner linear infinite;
|
392 |
-
}
|
393 |
-
.gmedia_v2_ScrollBarItemLink svg
|
394 |
-
{
|
395 |
-
width: 100%;
|
396 |
-
height: 100%;
|
397 |
-
fill: rgba(0, 0, 0, 0.58);
|
398 |
-
vertical-align: baseline !important;
|
399 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/css/style.css
DELETED
@@ -1,512 +0,0 @@
|
|
1 |
-
/********* GM Preloader *************/
|
2 |
-
.gmedia_v2_Preloader {
|
3 |
-
min-height: inherit;
|
4 |
-
position: absolute;
|
5 |
-
top: 0;
|
6 |
-
left: 0;
|
7 |
-
bottom: 0;
|
8 |
-
right: 0;
|
9 |
-
overflow: hidden;
|
10 |
-
z-index: 100;
|
11 |
-
}
|
12 |
-
@keyframes spinner {
|
13 |
-
0% { transform: rotate(-360deg); }
|
14 |
-
100% { transform: rotate(0deg); }
|
15 |
-
}
|
16 |
-
@keyframes _spinner {
|
17 |
-
to {
|
18 |
-
transform: rotate(-1440deg);
|
19 |
-
}
|
20 |
-
}
|
21 |
-
.gmedia_v2_Preloader .c-spinner {
|
22 |
-
/*animation: 2s _spinner ease-in-out infinite alternate;*/
|
23 |
-
animation: 1s spinner linear infinite;
|
24 |
-
}
|
25 |
-
@keyframes gmFadeIn {
|
26 |
-
from {
|
27 |
-
opacity: 0;
|
28 |
-
}
|
29 |
-
to {
|
30 |
-
opacity: 1;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
.amron_module *{
|
34 |
-
box-sizing: border-box;
|
35 |
-
line-height: 1.4;
|
36 |
-
}
|
37 |
-
/***************** Tags Cloud *********************/
|
38 |
-
.gmedia_amron_CollectionTagsCloud{
|
39 |
-
position: relative;
|
40 |
-
display: block;
|
41 |
-
margin-top: 10px;
|
42 |
-
margin-bottom: 2px;
|
43 |
-
text-align: center;
|
44 |
-
/*background-color: #eeeeee;*/
|
45 |
-
}
|
46 |
-
.gmedia_amron_CollectionTagsCloud ul {
|
47 |
-
margin: 0 !important;
|
48 |
-
padding: 0 !important;
|
49 |
-
list-style: none;
|
50 |
-
}
|
51 |
-
.gmedia_amron_CollectionTagsCloud ul li::before
|
52 |
-
{
|
53 |
-
display: none;
|
54 |
-
}
|
55 |
-
.gmedia_amron_CollectionTagsCloud ul li {
|
56 |
-
display: inline-block;
|
57 |
-
max-width: 200px;
|
58 |
-
padding: 5px 8px !important;
|
59 |
-
margin: 3px !important;
|
60 |
-
white-space: nowrap;
|
61 |
-
text-overflow: ellipsis;
|
62 |
-
overflow: hidden;
|
63 |
-
font-size: 15px !important;
|
64 |
-
border-radius: 2px;
|
65 |
-
text-decoration: none;
|
66 |
-
-webkit-touch-callout: none; /* iOS Safari */
|
67 |
-
-webkit-user-select: none; /* Safari */
|
68 |
-
-moz-user-select: none; /* Firefox */
|
69 |
-
-ms-user-select: none; /* Internet Explorer/Edge */
|
70 |
-
user-select: none;
|
71 |
-
cursor: pointer;
|
72 |
-
transition: 0.3s;
|
73 |
-
}
|
74 |
-
/******************************** Saved Button ****************************/
|
75 |
-
.gmedia_amron_BookmarkBox{
|
76 |
-
position: relative;
|
77 |
-
z-index: 1;
|
78 |
-
}
|
79 |
-
.gmedia_amron_BookmarkBox .gmedia_buttonHolder{
|
80 |
-
position: relative;
|
81 |
-
display: flex;
|
82 |
-
overflow: hidden;
|
83 |
-
height: 40px;
|
84 |
-
}
|
85 |
-
.gmedia_amron_BookmarkBox .gmedia_buttonHolder .gmedia_lineStyle
|
86 |
-
{
|
87 |
-
flex: auto;
|
88 |
-
height: 1px;
|
89 |
-
margin: auto 15px;
|
90 |
-
background-color: rgba(0, 0, 0, 0.11);
|
91 |
-
}
|
92 |
-
.gmedia_amron_BookmarkBox .gmedia_buttonHolder .gmedia_savedButton
|
93 |
-
{
|
94 |
-
flex: initial;
|
95 |
-
width: 40px;
|
96 |
-
height: 40px;
|
97 |
-
border-radius: 50%;
|
98 |
-
padding: 10px;
|
99 |
-
border: solid 1px rgba(0, 0, 0, 0.11);
|
100 |
-
cursor: pointer;
|
101 |
-
}
|
102 |
-
.gmedia_amron_BookmarkBox .gmedia_buttonHolder .gmedia_savedButton svg
|
103 |
-
{
|
104 |
-
width: 100%;
|
105 |
-
height: 100%;
|
106 |
-
vertical-align: baseline !important;
|
107 |
-
}
|
108 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox
|
109 |
-
{
|
110 |
-
position: relative;
|
111 |
-
text-align: center;
|
112 |
-
overflow: hidden;
|
113 |
-
transition: opacity 0.8s;
|
114 |
-
padding: 5px 15px 25px;
|
115 |
-
opacity: 0;
|
116 |
-
}
|
117 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_titleWrap
|
118 |
-
{
|
119 |
-
font-size: 20px;
|
120 |
-
height: 28px;
|
121 |
-
line-height: 28px;
|
122 |
-
display: inline-block;
|
123 |
-
text-align: center;
|
124 |
-
}
|
125 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_titleWrap .gmedia_title
|
126 |
-
{
|
127 |
-
display: inline-block;
|
128 |
-
float: left;
|
129 |
-
}
|
130 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_titleWrap .gmedia_title a
|
131 |
-
{
|
132 |
-
cursor: pointer;
|
133 |
-
}
|
134 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_description
|
135 |
-
{
|
136 |
-
font-size: 14px;
|
137 |
-
line-height: 1.5;
|
138 |
-
}
|
139 |
-
.gmedia_amron_SavedButton{
|
140 |
-
margin: 0 0 0 10px;
|
141 |
-
padding: 0 10px 0 0;
|
142 |
-
overflow: hidden;
|
143 |
-
height: 40px;
|
144 |
-
background-color: aliceblue;
|
145 |
-
}
|
146 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_titleWrap .gmedia_IconButton
|
147 |
-
{
|
148 |
-
height: 28px;
|
149 |
-
width: 28px;
|
150 |
-
padding: 3px;
|
151 |
-
display: inline-block;
|
152 |
-
margin: 0 5px;
|
153 |
-
cursor: pointer;
|
154 |
-
overflow: hidden;
|
155 |
-
transition: transform 0.3s;
|
156 |
-
}
|
157 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_titleWrap .gmedia_IconButton:hover{
|
158 |
-
transform: scale(1.1);
|
159 |
-
}
|
160 |
-
.gmedia_amron_BookmarkBox .gmedia_infoBox .gmedia_titleWrap .gmedia_IconButton svg
|
161 |
-
{
|
162 |
-
width: 100%;
|
163 |
-
height: 100%;
|
164 |
-
vertical-align: baseline !important;
|
165 |
-
}
|
166 |
-
/******************************** Search Form *****************************/
|
167 |
-
.gmedia_amron_Grid_SearchForm
|
168 |
-
{
|
169 |
-
position: relative;
|
170 |
-
display: flex;
|
171 |
-
flex-direction: row;
|
172 |
-
height: 40px;
|
173 |
-
margin-bottom: 10px;
|
174 |
-
}
|
175 |
-
.gmedia_amron_Grid_SearchForm .inputSearch
|
176 |
-
{
|
177 |
-
flex: 1 auto;
|
178 |
-
box-sizing: border-box;
|
179 |
-
height: 40px !important;
|
180 |
-
border-radius: 2px;
|
181 |
-
border: none !important;
|
182 |
-
font-size: 18px !important;
|
183 |
-
line-height: normal !important;
|
184 |
-
padding: 0 10px !important;
|
185 |
-
transition: background-color 0.3s;
|
186 |
-
}
|
187 |
-
.gmedia_amron_Grid_SearchForm .inputSearch:focus
|
188 |
-
{
|
189 |
-
outline: none !important;
|
190 |
-
}
|
191 |
-
.gmedia_amron_Grid_SearchForm .buttonSearch
|
192 |
-
{
|
193 |
-
display: flex;
|
194 |
-
padding: 8px !important;
|
195 |
-
height: 40px !important;
|
196 |
-
width: 60px !important;
|
197 |
-
border: none !important;
|
198 |
-
border-radius: 0 2px 2px 0 !important;
|
199 |
-
transition: background-color 0.3s;
|
200 |
-
cursor: pointer;
|
201 |
-
}
|
202 |
-
.gmedia_amron_Grid_SearchForm .buttonSearch svg
|
203 |
-
{
|
204 |
-
width: 100%;
|
205 |
-
height: 100%;
|
206 |
-
vertical-align: baseline !important;
|
207 |
-
}
|
208 |
-
/******************************** Masonry Collection *************************/
|
209 |
-
.gmedia_amron_MasonryCollection{
|
210 |
-
position: relative;
|
211 |
-
width: 100%;
|
212 |
-
overflow: hidden;
|
213 |
-
transition: transform 0.5s;
|
214 |
-
z-index: 2;
|
215 |
-
}
|
216 |
-
.gmedia_amron_MasonryCollection *{
|
217 |
-
box-sizing: border-box !important;
|
218 |
-
}
|
219 |
-
.gmedia_amron_MasonryCollection .gm_content .collectionColumn
|
220 |
-
{
|
221 |
-
position: relative;
|
222 |
-
float: left;
|
223 |
-
}
|
224 |
-
.gmedia_amron_MasonryCollection .gm_header, .gmedia_amron_MasonryCollection .gm_content, .gmedia_amron_MasonryCollection .gm_footer
|
225 |
-
{
|
226 |
-
position: relative;
|
227 |
-
width: 100%;
|
228 |
-
}
|
229 |
-
.gmedia_amron_MasonryCollection .gm_header .gm_navi
|
230 |
-
{
|
231 |
-
position: relative;
|
232 |
-
width: 100%;
|
233 |
-
overflow: hidden;
|
234 |
-
}
|
235 |
-
.gmedia_amron_MasonryCollection .gm_header .termTitle
|
236 |
-
{
|
237 |
-
position: relative;
|
238 |
-
display: inline-block;
|
239 |
-
font-size: 28px;
|
240 |
-
line-height: 34px;
|
241 |
-
}
|
242 |
-
.gmedia_amron_MasonryCollection .gm_header .backButton
|
243 |
-
{
|
244 |
-
position: relative;
|
245 |
-
float: left;
|
246 |
-
margin: 0 10px 0 0;
|
247 |
-
width: 54px;
|
248 |
-
height: 34px;
|
249 |
-
border-radius: 2px;
|
250 |
-
cursor: pointer;
|
251 |
-
}
|
252 |
-
.gmedia_amron_MasonryCollection .gm_header .backButton svg
|
253 |
-
{
|
254 |
-
width: 100%;
|
255 |
-
height: 100%;
|
256 |
-
vertical-align: baseline !important;
|
257 |
-
}
|
258 |
-
.gmedia_amron_MasonryCollection .gm_content{
|
259 |
-
min-height: 200px;
|
260 |
-
overflow: hidden;
|
261 |
-
}
|
262 |
-
/******************* Masonry Thumbnail PintStyle ***********************/
|
263 |
-
.gmedia_amron_MasonryThumbPint{
|
264 |
-
position: relative;
|
265 |
-
width: 100%;
|
266 |
-
opacity: 0;
|
267 |
-
transition: opacity 0.45s;
|
268 |
-
float: left;
|
269 |
-
box-sizing: border-box !important;
|
270 |
-
}
|
271 |
-
.gmedia_amron_MasonryThumbPint .gmedia_imageHolder
|
272 |
-
{
|
273 |
-
position: relative;
|
274 |
-
width: 100%;
|
275 |
-
overflow: hidden;
|
276 |
-
}
|
277 |
-
.gmedia_amron_MasonryThumbPint .gmedia_imageOver
|
278 |
-
{
|
279 |
-
position: absolute;
|
280 |
-
top:0;
|
281 |
-
width: 100%;
|
282 |
-
height: 100%;
|
283 |
-
transition: opacity 0.5s;
|
284 |
-
opacity: 0;
|
285 |
-
}
|
286 |
-
.gmedia_amron_MasonryThumbPint .gmedia_imageOver.hover
|
287 |
-
{
|
288 |
-
opacity: 1;
|
289 |
-
}
|
290 |
-
.gmedia_amron_MasonryThumbPint .gmedia_zoom
|
291 |
-
{
|
292 |
-
position: absolute;
|
293 |
-
width: 50px;
|
294 |
-
height: 50px;
|
295 |
-
padding: 15px !important;
|
296 |
-
right: 0;
|
297 |
-
bottom: 4px;
|
298 |
-
transform: translateX(100%);
|
299 |
-
margin: auto;
|
300 |
-
/*background-color: black;*/
|
301 |
-
cursor: pointer;
|
302 |
-
transition: transform 0.2s ;
|
303 |
-
}
|
304 |
-
.gmedia_amron_MasonryThumbPint .gmedia_zoom.media
|
305 |
-
{
|
306 |
-
width: 40px;
|
307 |
-
height: 40px;
|
308 |
-
background-color: rgba(255, 255, 255, 0.5);
|
309 |
-
border-radius: 50%;
|
310 |
-
padding: 5px !important;
|
311 |
-
transform: translateX(-10%);
|
312 |
-
}
|
313 |
-
.gmedia_amron_MasonryThumbPint .gmedia_zoom svg
|
314 |
-
{
|
315 |
-
width: 100%;
|
316 |
-
height: 100%;
|
317 |
-
stroke: white;
|
318 |
-
vertical-align: baseline !important;
|
319 |
-
}
|
320 |
-
.gmedia_amron_MasonryThumbPint .gmedia_zoom.media svg{
|
321 |
-
stroke: none;
|
322 |
-
}
|
323 |
-
.gmedia_amron_MasonryThumbPint .gmedia_hover .gmedia_zoom{
|
324 |
-
transform: translateX(-10%);
|
325 |
-
}
|
326 |
-
.gmedia_amron_MasonryThumbPint .gmedia_hover img{
|
327 |
-
transform: scale(1.1);
|
328 |
-
}
|
329 |
-
.gmedia_amron_MasonryThumbPint img
|
330 |
-
{
|
331 |
-
display: block;
|
332 |
-
border: 0 !important;
|
333 |
-
margin: 0 !important;
|
334 |
-
padding: 0 !important;
|
335 |
-
max-height: none !important;
|
336 |
-
max-width: none !important;
|
337 |
-
min-height: 0 !important;
|
338 |
-
min-width: 0 !important;
|
339 |
-
width: 100% !important;
|
340 |
-
height: auto !important;
|
341 |
-
-webkit-backface-visibility: hidden;
|
342 |
-
backface-visibility: hidden;
|
343 |
-
transition: 0.5s ease-out 0s;
|
344 |
-
opacity: 0;
|
345 |
-
}
|
346 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemContent
|
347 |
-
{
|
348 |
-
position: relative;
|
349 |
-
display: block;
|
350 |
-
padding: 7px 20px !important;
|
351 |
-
text-align: left;
|
352 |
-
background-color: white;
|
353 |
-
overflow: hidden;
|
354 |
-
width: 100%;
|
355 |
-
z-index: 1;
|
356 |
-
box-sizing: border-box;
|
357 |
-
}
|
358 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemTitle
|
359 |
-
{
|
360 |
-
position: relative;
|
361 |
-
margin: 10px 0 5px;
|
362 |
-
display: block;
|
363 |
-
font-size: 18px;
|
364 |
-
line-height: 1.1;
|
365 |
-
letter-spacing: 1px;
|
366 |
-
font-weight: 600;
|
367 |
-
}
|
368 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemDescription
|
369 |
-
{
|
370 |
-
position: relative;
|
371 |
-
display: block;
|
372 |
-
margin: 10px 0;
|
373 |
-
padding: 0;
|
374 |
-
font-size: 13px;
|
375 |
-
}
|
376 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemReadMore
|
377 |
-
{
|
378 |
-
text-decoration: none;
|
379 |
-
box-shadow: none;
|
380 |
-
position: relative;
|
381 |
-
cursor: pointer;
|
382 |
-
font-size: 10px;
|
383 |
-
border-radius: 2px;
|
384 |
-
text-transform: uppercase;
|
385 |
-
line-height: 38px;
|
386 |
-
padding: 0 15px;
|
387 |
-
font-weight: 700;
|
388 |
-
letter-spacing: 1px;
|
389 |
-
color: white;
|
390 |
-
display: inline-block;
|
391 |
-
background-color: rgba(0, 0, 0, 0.59);
|
392 |
-
transition: 0.5s;
|
393 |
-
}
|
394 |
-
.gmedia_amron_MasonryThumbPint a:hover, .gmedia_amron_MasonryThumbPint a:visited,
|
395 |
-
.gmedia_amron_MasonryThumbPint a:link, .gmedia_amron_MasonryThumbPint a:active
|
396 |
-
{
|
397 |
-
text-decoration: none;
|
398 |
-
box-shadow: none;
|
399 |
-
}
|
400 |
-
/*.gmedia_amron_MasonryThumbPint .itemReadMore:hover, .gmedia_amron_MasonryThumbPint .itemReadMore:visited,
|
401 |
-
.gmedia_amron_MasonryThumbPint .itemReadMore:link, .gmedia_amron_MasonryThumbPint .itemReadMore:active
|
402 |
-
{
|
403 |
-
text-decoration: none;
|
404 |
-
}*/
|
405 |
-
.gmedia_amron_MasonryThumbPint .tagsWrap, .gmedia_amron_MasonryThumbPint .catWrap
|
406 |
-
{
|
407 |
-
position: relative;
|
408 |
-
display: block;
|
409 |
-
margin: 5px 0;
|
410 |
-
overflow: hidden;
|
411 |
-
}
|
412 |
-
.gmedia_amron_MasonryThumbPint .tagsWrap .thumbTag, .gmedia_amron_MasonryThumbPint .catWrap .thumbCat
|
413 |
-
{
|
414 |
-
text-decoration: none;
|
415 |
-
box-shadow: none;
|
416 |
-
position: relative;
|
417 |
-
display: inline-block;
|
418 |
-
float: left;
|
419 |
-
font-size: 13px;
|
420 |
-
font-weight: 400;
|
421 |
-
line-height: 1.2;
|
422 |
-
cursor: pointer;
|
423 |
-
margin: 0 5px 0 0 !important;
|
424 |
-
}
|
425 |
-
/*.gmedia_amron_MasonryThumbPint .tagsWrap .thumbTag:hover, .gmedia_amron_MasonryThumbPint .tagsWrap .thumbTag:visited,
|
426 |
-
.gmedia_amron_MasonryThumbPint .tagsWrap .thumbTag:link, .gmedia_amron_MasonryThumbPint .tagsWrap .thumbTag:active
|
427 |
-
{
|
428 |
-
text-decoration: none;
|
429 |
-
box-shadow: none;
|
430 |
-
}
|
431 |
-
.gmedia_amron_MasonryThumbPint .catWrap .thumbCat:hover, .gmedia_amron_MasonryThumbPint .catWrap .thumbCat:visited,
|
432 |
-
.gmedia_amron_MasonryThumbPint .catWrap .thumbCat:link, .gmedia_amron_MasonryThumbPint .catWrap .thumbCat:active
|
433 |
-
{
|
434 |
-
text-decoration: none;
|
435 |
-
box-shadow: none;
|
436 |
-
}*/
|
437 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemMenuHolder{
|
438 |
-
position: relative;
|
439 |
-
display: block;
|
440 |
-
width: 100%;
|
441 |
-
margin: 15px 0;
|
442 |
-
overflow: hidden;
|
443 |
-
text-align: right;
|
444 |
-
}
|
445 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemMenuHolder .gmedia_itemsButtons
|
446 |
-
{
|
447 |
-
position: relative;
|
448 |
-
padding: 9px;
|
449 |
-
width: 36px;
|
450 |
-
height: 36px;
|
451 |
-
cursor: pointer;
|
452 |
-
float: right;
|
453 |
-
transition: .5s;
|
454 |
-
box-sizing: border-box;
|
455 |
-
margin: 0 1px;
|
456 |
-
border-radius: 2px;
|
457 |
-
}
|
458 |
-
.gmedia_amron_MasonryThumbPint .gmedia_itemMenuHolder .gmedia_itemsButtons svg
|
459 |
-
{
|
460 |
-
width: 100%;
|
461 |
-
height: 100%;
|
462 |
-
transition: fill .2s;
|
463 |
-
vertical-align: baseline !important;
|
464 |
-
}
|
465 |
-
/***************** Audio Content ******************/
|
466 |
-
@keyframes rotate {
|
467 |
-
from {
|
468 |
-
transform: rotate(0deg);
|
469 |
-
}
|
470 |
-
to {
|
471 |
-
transform: rotate(360deg);
|
472 |
-
}
|
473 |
-
}
|
474 |
-
|
475 |
-
.gmpAudioCoverContainerMultiGrid {
|
476 |
-
border-radius: 50%;
|
477 |
-
height: 300px;
|
478 |
-
width: 300px;
|
479 |
-
overflow: hidden;
|
480 |
-
}
|
481 |
-
|
482 |
-
.gmAlbusListRotate {
|
483 |
-
animation-name: rotate;
|
484 |
-
animation-duration: 2s;
|
485 |
-
animation-iteration-count: infinite;
|
486 |
-
animation-timing-function: linear;
|
487 |
-
}
|
488 |
-
.gmCircleAudioControllerMultiGridContainer {
|
489 |
-
position: absolute;
|
490 |
-
top: 50%;
|
491 |
-
left: 50%;
|
492 |
-
border-radius: 50%;
|
493 |
-
width: 109px;
|
494 |
-
height: 109px;
|
495 |
-
transform: translate3d(-50%, -50%, 0px);
|
496 |
-
overflow: hidden;
|
497 |
-
cursor: pointer;
|
498 |
-
}
|
499 |
-
.gmCirclebButtonAudioPlayerMultiGrid {
|
500 |
-
position: absolute;
|
501 |
-
display: block;
|
502 |
-
width: 106px;
|
503 |
-
height: 106px;
|
504 |
-
padding: 12px;
|
505 |
-
transition: background 0.3s;
|
506 |
-
}
|
507 |
-
.gmCirclebButtonAudioPlayerMultiGrid svg {
|
508 |
-
width: 100%;
|
509 |
-
height: 100%;
|
510 |
-
pointer-events: none;
|
511 |
-
vertical-align: baseline !important;
|
512 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/index.php
CHANGED
@@ -3,7 +3,7 @@ $module_info = array(
|
|
3 |
'base' => 'amron',
|
4 |
'name' => 'amron',
|
5 |
'title' => 'Amron',
|
6 |
-
'version' => '
|
7 |
'author' => 'GalleryCreator',
|
8 |
'description' => 'Responsive AJAX Gallery with Masonry layout. The gallery is completely customisable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). Required Gmedia Gallery plugin v1.14+',
|
9 |
'type' => 'gallery',
|
3 |
'base' => 'amron',
|
4 |
'name' => 'amron',
|
5 |
'title' => 'Amron',
|
6 |
+
'version' => '3.0',
|
7 |
'author' => 'GalleryCreator',
|
8 |
'description' => 'Responsive AJAX Gallery with Masonry layout. The gallery is completely customisable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones). Required Gmedia Gallery plugin v1.14+',
|
9 |
'type' => 'gallery',
|
module/amron/js/components/gm_vit_itemMenu.js
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
function codeasily_v2_itemMenu(m,n,p,q){function l(a,h,d){function g(a){"like"==a.getAttribute("type")&&a.getAttribute("like")||("bookmark"==a.getAttribute("type")&&a.getAttribute("bookmark")?a.style.backgroundColor=c.backgroundColor:(a.style.backgroundColor=c.backgroundColor,a.childNodes[0].style.fill=c.iconColor))}function b(a){if("click"==a.type){if(a=c.item){switch(this.getAttribute("type")){case "info":e(c.appName).appEventManager.dispatchGMEvent(f.GMEvent(k.NEED_MODAL,c,{type:"info",item:a}));
|
2 |
-
break;case "link":a.link&&window.open(a.link,e(c.appName).linkTargetWindow);break;case "like":g(this);c.delegate.likeItem=c.item;this.setAttribute("like",c.item.ID);this.style.cursor="default";this.style.pointerEvents="none";this.getElementsByTagName("svg")[0].style.fill="red";break;case "bookmark":g(this);c.delegate.bookmarkItem=c.item;c.updateForItem(c.item);break;case "share":e(c.appName).appEventManager.dispatchGMEvent(f.GMEvent(k.NEED_MODAL,c,{type:"share",item:a}));break;case "download":a=a.url;
|
3 |
-
var b=document.createElement("A");b.href=a;b.download=a.substr(a.lastIndexOf("/")+1);document.body.appendChild(b);b.click();document.body.removeChild(b);break;case "coments":a=a.sharelink+"/#comments";window.open(a,"_self");break;case "fullscreen":e(c.appName).appEventManager.dispatchGMEvent(f.GMEvent(k.FULLSCREEN_SWITCH,c,null)),g(this)}f.Device.desktop||g(this)}}else"mouseenter"==a.type?"bookmark"==this.getAttribute("type")&&this.getAttribute("bookmark")?this.style.backgroundColor=c.backgroundColorOver:
|
4 |
-
(this.style.backgroundColor=c.backgroundColorOver,this.childNodes[0].style.fill=c.iconColorOver):"mouseleave"==a.type&&g(this)}var c=this;this.delegate=a;this.appName=a.appName;this.item=void 0;this.view=document.createElement("div");this.view.className="gmedia_v2_CollectionItemInfoMenu";this.backgroundColor=h.backgroundColor;this.backgroundColorOver=h.backgroundColorOver;this.iconColor=h.iconColor;this.iconColorOver=h.iconColorOver;a=void 0;a=document.createElement("div");a.className="itemsButtons";
|
5 |
-
d&&a.classList.add("lightbox");a.setAttribute("type","link");a.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg>';
|
6 |
-
a.style.backgroundColor=this.backgroundColor;a.childNodes[0].style.fill=this.iconColor;this.linkButton=a;a.addEventListener("click",b,!1);a.addEventListener("mouseenter",b,!1);a.addEventListener("mouseleave",b,!1);this.view.appendChild(a);if(!d&&e(this.appName).collectionInfoEnable||d&&e(this.appName).sliderInfoEnable)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","info"),a.innerHTML='<svg height="100px" id="Capa_1" style="enable-background:new 0 0 46 100;" version="1.1" viewBox="0 0 46 100" width="46px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M35.162,0c6.696,0,10.043,4.567,10.043,9.789c0,6.522-5.814,12.555-13.391,12.555c-6.344,0-10.045-3.752-9.869-9.947 C21.945,7.176,26.35,0,35.162,0z M14.543,100c-5.287,0-9.164-3.262-5.463-17.615l6.07-25.457c1.057-4.077,1.23-5.707,0-5.707 c-1.588,0-8.451,2.816-12.51,5.59L0,52.406C12.863,41.48,27.662,35.072,34.004,35.072c5.285,0,6.168,6.361,3.525,16.148 L30.58,77.98c-1.234,4.729-0.703,6.359,0.527,6.359c1.586,0,6.787-1.963,11.896-6.041L46,82.377C33.488,95.1,19.83,100,14.543,100z "/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',
|
7 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.infoButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);if(!d&&e(this.appName).collectionItemDiscuss||d&&e(this.appName).sliderItemDiscuss)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","coments"),a.innerHTML='<svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,1H4C1.8,1,0,2.8,0,5v10c0,2.2,1.8,4,4,4v3c0,0.9,1.1,1.3,1.7,0.7L9.4,19H20c2.2,0,4-1.8,4-4V5 C24,2.8,22.2,1,20,1z M14,13H8c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h6c0.6,0,1,0.4,1,1C15,12.6,14.6,13,14,13z M16,9H8 C7.4,9,7,8.6,7,8c0-0.6,0.4-1,1-1h8c0.6,0,1,0.4,1,1C17,8.6,16.6,9,16,9z" id="message"/></g></svg>',
|
8 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.commentsButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);if(!d&&e(this.appName).collectionItemDownload||d&&e(this.appName).sliderItemDownload)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","download"),a.innerHTML='<svg version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><g id="save"><path d="M11.2,16.6c0.4,0.5,1.2,0.5,1.6,0l6-6.3C19.3,9.8,18.8,9,18,9h-4c0,0,0.2-4.6,0-7c-0.1-1.1-0.9-2-2-2c-1.1,0-1.9,0.9-2,2 c-0.2,2.3,0,7,0,7H6c-0.8,0-1.3,0.8-0.8,1.4L11.2,16.6z"/><path d="M19,19H5c-1.1,0-2,0.9-2,2v0c0,0.6,0.4,1,1,1h16c0.6,0,1-0.4,1-1v0C21,19.9,20.1,19,19,19z"/></g></g></svg>',
|
9 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.downloadButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);if(!d&&e(this.appName).collectionSocialShareEnabled||d&&e(this.appName).sliderSocialShareEnabled)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","share"),a.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1344 1024q133 0 226.5 93.5t93.5 226.5-93.5 226.5-226.5 93.5-226.5-93.5-93.5-226.5q0-12 2-34l-360-180q-92 86-218 86-133 0-226.5-93.5t-93.5-226.5 93.5-226.5 226.5-93.5q126 0 218 86l360-180q-2-22-2-34 0-133 93.5-226.5t226.5-93.5 226.5 93.5 93.5 226.5-93.5 226.5-226.5 93.5q-126 0-218-86l-360 180q2 22 2 34t-2 34l360 180q92-86 218-86z"/></svg>',
|
10 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.shareButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);e(this.appName).bookmarkEnable&&(a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","bookmark"),a.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1420 128q23 0 44 9 33 13 52.5 41t19.5 62v1289q0 34-19.5 62t-52.5 41q-19 8-44 8-48 0-83-32l-441-424-441 424q-36 33-83 33-23 0-44-9-33-13-52.5-41t-19.5-62v-1289q0-34 19.5-62t52.5-41q21-9 44-9h1048z"/></svg>',
|
11 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.bookMarkButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a));if(!d&&e(this.appName).collectionLikesEnabled||d&&e(this.appName).sliderLikesEnabled)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","like"),a.innerHTML='<svg enable-background="new 0 0 51 46" height="46px" id="Layer_1" version="1.1" viewBox="0 0 51 46" width="51px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0 C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766 l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg>',
|
12 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.likeButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);d&&!f.Device.ios&&(a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","fullscreen"),a.innerHTML='<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g id="fullscreen" transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',
|
13 |
-
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.fullscreenButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a))}var f=n,e=f.moduleSettings,k={NEED_MODAL:"NEED_MODAL",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"};l.prototype={updateForItem:function(a){this.item=a;this.delegate.likesSet&&this.likeButton&&(this.delegate.likesSet[a.ID]?(this.likeButton.getElementsByTagName("svg")[0].style.fill=
|
14 |
-
"red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.setAttribute("like",a.ID)):(this.likeButton.childNodes[0].style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",this.likeButton.removeAttribute("like")));this.bookMarkButton&&(this.delegate.is_containIdInBookmarkSet(this.item.ID)||0===this.delegate.is_containIdInBookmarkSet(this.item.ID)?(this.bookMarkButton.setAttribute("bookmark",a.ID),this.bookMarkButton.getElementsByTagName("svg")[0].style.fill=
|
15 |
-
"red"):(this.bookMarkButton.removeAttribute("bookmark"),this.bookMarkButton.getElementsByTagName("svg")[0].style.fill=this.iconColor));a.link?(this.linkButton.style.display="block",this.linkButton.style.opacity="1",this.linkButton.style.cursor="pointer",this.linkButton.style.pointerEvents="all"):(this.linkButton.style.opacity="0",this.linkButton.style.display="none",this.linkButton.style.cursor="default",this.linkButton.style.pointerEvents="none")},resizeHandler:function(){var a=document.webkitIsFullScreen||
|
16 |
-
document.mozFullScreen||!1;this.fullscreenButton&&(this.fullscreenButton.innerHTML=a?'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g id="Core" transform="translate(-257.000000, -257.000000)"><g id="fullscreen-exit" transform="translate(257.000000, 257.000000)"><path d="M0,11 L3,11 L3,14 L5,14 L5,9 L0,9 L0,11 L0,11 Z M3,3 L0,3 L0,5 L5,5 L5,0 L3,0 L3,3 L3,3 Z M9,14 L11,14 L11,11 L14,11 L14,9 L9,9 L9,14 L9,14 Z M11,3 L11,0 L9,0 L9,5 L14,5 L14,3 L11,3 L11,3 Z" id="Shape"/></g></g></g></svg>':
|
17 |
-
'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g id="fullscreen" transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',
|
18 |
-
this.fullscreenButton.childNodes[0].style.fill=this.iconColor)}};return new l(m,p,q)};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/js/components/gm_vit_modalWin.js
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
function codeasily_v2_modalWin(n,v){function r(a,c){this.appName=a;this.modal=c;a=document.createElement("div");a.className="gmedia_v2_ItemInfoBar";a.style.backgroundColor=e(this.appName).modalInfoBoxBgColor;if(!f.is_touch_device||f.is_touch_device&&f.mouseDetected){var m=document.createElement("div");m.className="gmInfoBarCloseButton";m.innerHTML='<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>';
|
2 |
-
m.childNodes[0].style.fill=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTitleTextColor,1);m.addEventListener("click",function(){c.prepareToRemove()},!1);a.appendChild(m)}this.view=a}function t(a,c){this.appName=a;this.modal=c;a=document.createElement("div");a.className="gmedia_v2_ItemShare";a.style.backgroundColor=e(this.appName).modalInfoBoxBgColor;if(!f.is_touch_device||f.is_touch_device&&f.mouseDetected){var m=document.createElement("div");m.className="gmInfoBarCloseButton";m.innerHTML='<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>';
|
3 |
-
m.childNodes[0].style.fill=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTitleTextColor,1);m.addEventListener("click",function(){c.prepareToRemove()},!1);a.appendChild(m)}this.view=a}function u(a){var c=this;this.type=void 0;this.delegate=a;this.appName=a.appName;this.view=document.createElement("div");this.view.className="gmedia_v2_Modal";this.closeButton=document.createElement("div");this.closeButton.style.position="absolute";this.closeButton.style.zIndex=-100;this.closeButton.className="gmModalCloseButton";
|
4 |
-
this.closeButton.style.width="100%";this.closeButton.style.height="100%";this.closeButton.style.backgroundColor=e(this.appName).modaBgColor;this.closeButton.style.willChange="opacity";this.closeButton.style.opacity=e(this.appName).modalBgAlpha;this.closeButton.addEventListener("click",function(a){c.prepareToRemove(a)},!1);this.view.appendChild(this.closeButton);a=document.createElement("div");a.className="gmflexe";this.view.appendChild(a);this.scrollView=void 0;this.dragging=!1;this._scrollViewTranslateY=
|
5 |
-
0;this.startDragHandler=void 0;this.viewCompleted=!1;this.addToStage()}var f=v,e=f.moduleSettings;r.prototype={set item(a){var c=0,m=this.view,k=this.modal,l=this;var b='<div class="gmItemTitle" style="color: '+e(this.appName).modalInfoBoxTitleTextColor+'">'+a.title+"<br>";b=a.description&&""!=a.description?b+('<div class="gmItemDescription" style="color: '+e(this.appName).modalInfoBoxTextColor+'">'+a.description+"</div></div>"):b+"</div>";if(""!=b){var d=document.createElement("div");d.className=
|
6 |
-
"gmDescriptionWrap";d.style.float="none";d.innerHTML=b;m.appendChild(d)}if(e(this.appName).infoBarTermsEnable){d=function(a){if(!k.dragging){a=this.getAttribute("termId");var b=this.getAttribute("taxonomy");e(l.appName).appEventManager.dispatchGMEvent(f.GMEvent("NEED_NEW_COLLECTION",l,{term_id:[a],taxonomy:b}))}};b=document.createElement("div");b.className="gmDescriptionWrap";b.style.float="none";b.style.minHeight="0";b.style.color=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTextColor,1);b.style.fontSize=
|
7 |
-
"100%";m.appendChild(b);if(a.albums&&0<a.albums.length){var h=document.createElement("ul");c=document.createElement("li");c.className="termsTitle";c.innerHTML="Albums:";h.appendChild(c);h.className="gm_tags_ul";for(c=0;c<a.albums.length;c++){var g=document.createElement("li");g.className="gm_album";g.innerHTML=a.albums[c].name;g.style.color=e(this.appName).infoBarTermsTitleColor;g.style.backgroundColor=e(this.appName).infoBarTermsBackgroundColorAlbums;g.onmouseover=function(){this.style.color=e(l.appName).infoBarTermsBackgroundColorAlbums;
|
8 |
-
this.style.backgroundColor=e(l.appName).infoBarTermsTitleColor};g.onmouseout=function(){this.style.color=e(l.appName).infoBarTermsTitleColor;this.style.backgroundColor=e(l.appName).infoBarTermsBackgroundColorAlbums};g.setAttribute("termId",a.albums[c].term_id);g.setAttribute("taxonomy","album__in");g.addEventListener("mouseup",d,!1);f.is_touch_device&&g.addEventListener("touchend",d,!1);h.appendChild(g)}b.appendChild(h)}if(a.categories&&0<a.categories.length){h=document.createElement("ul");c=document.createElement("li");
|
9 |
-
c.className="termsTitle";c.innerHTML="Categories:";h.appendChild(c);h.className="gm_tags_ul";for(c=0;c<a.categories.length;c++)g=document.createElement("li"),g.className="gm_category",g.innerHTML=a.categories[c].title,g.style.color=e(this.appName).infoBarTermsTitleColor,g.style.backgroundColor=e(this.appName).infoBarTermsBackgroundColorCategories,g.onmouseover=function(){this.style.color=e(l.appName).infoBarTermsBackgroundColorCategories;this.style.backgroundColor=e(l.appName).infoBarTermsTitleColor},
|
10 |
-
g.onmouseout=function(){this.style.color=e(l.appName).infoBarTermsTitleColor;this.style.backgroundColor=e(l.appName).infoBarTermsBackgroundColorCategories},g.addEventListener("mouseup",d,!1),f.is_touch_device&&g.addEventListener("touchend",d,!1),g.setAttribute("termId",a.categories[c].term_id),g.setAttribute("taxonomy","category__in"),h.appendChild(g);b.appendChild(h)}if(a.tags&&0<a.tags.length){h=document.createElement("ul");c=document.createElement("li");c.className="termsTitle";c.innerHTML="Tags:";
|
11 |
-
h.appendChild(c);h.className="gm_tags_ul";for(c=0;c<a.tags.length;c++)g=document.createElement("li"),g.className="gm_tag",g.innerHTML=a.tags[c].name,g.style.color=e(this.appName).infoBarTermsTitleColor,g.style.backgroundColor=e(this.appName).infoBarTermsBackgroundColorTags,g.onmouseover=function(){this.style.color=e(l.appName).infoBarTermsBackgroundColorTags;this.style.backgroundColor=e(l.appName).infoBarTermsTitleColor},g.onmouseout=function(){this.style.color=e(l.appName).infoBarTermsTitleColor;
|
12 |
-
this.style.backgroundColor=e(l.appName).infoBarTermsBackgroundColorTags},g.addEventListener("mouseup",d,!1),f.is_touch_device&&g.addEventListener("touchend",d,!1),g.setAttribute("termId",a.tags[c].term_id),g.setAttribute("taxonomy","tag__in"),h.appendChild(g);b.appendChild(h)}}if(e(this.appName).infoBarExifEnable){b="";a.meta.data&&a.meta.data.model&&(b+="<div class=gmItemMetaExifValue>"+a.meta.data.model+"</div></br>");d=[];a.meta.data&&a.meta.data.focallength&&d.push("<div class=gmItemMetaExifValue>"+
|
13 |
-
a.meta.data.focallength+"</div>");a.meta.data&&a.meta.data.aperture&&d.push("<div class=gmItemMetaExifValue>"+a.meta.data.aperture+"</div>");a.meta.data&&a.meta.data.exposure&&d.push("<div class=gmItemMetaExifValue>"+a.meta.data.exposure+"</div>");a.meta.data&&a.meta.data.iso&&d.push("<div class=gmItemMetaExifValue>ISO "+a.meta.data.iso+"</div>");for(c=0;c<d.length;c++)b+=d[c],c<d.length-1&&(b+='<div class="gmItemMetaExifSeparator"> / </div>');""!=b&&(d=document.createElement("div"),d.className="gmDescriptionWrap",
|
14 |
-
d.style.color=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTextColor,1),d.style.fontSize="100%",d.innerHTML=b,m.appendChild(d))}e(this.appName).infoBarCountersEnable&&(d=document.createElement("div"),d.className="gmDescriptionWrap",d.style.color=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTextColor,1),d.style.fontSize="100%",b=document.createElement("div"),b.className="likesViewCom",b.innerHTML='<svg enable-background="new 0 0 167 93" height="93px" id="Layer_1" version="1.1" viewBox="0 0 167 93" width="167px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M83.25,29.25c-9.649,0-17.5,7.851-17.5,17.5s7.851,17.5,17.5,17.5s17.5-7.851,17.5-17.5 S92.899,29.25,83.25,29.25z"/><path d="M83.25,0.75c-45.84,0-83,46-83,46s37.16,46,83,46s83-46,83-46S129.09,0.75,83.25,0.75z M83.25,81.25 c-19.054,0-34.5-15.445-34.5-34.5c0-19.054,15.446-34.5,34.5-34.5s34.5,15.446,34.5,34.5C117.75,65.805,102.304,81.25,83.25,81.25z "/></g></svg><div class="counterTxt">'+
|
15 |
-
(a.meta.views?a.meta.views:0)+"</div>",b.getElementsByTagName("svg")[0].style.fill=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTitleTextColor,1),d.appendChild(b),b=document.createElement("div"),b.className="likesViewCom",b.innerHTML='<svg enable-background="new 0 0 51 46" height="46px" id="Layer_1" version="1.1" viewBox="0 0 51 46" width="51px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0 C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766 l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg><div class="counterTxt">'+
|
16 |
-
(a.meta.likes?a.meta.likes:0)+"</div>",b.getElementsByTagName("svg")[0].style.fill=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTitleTextColor,1),d.appendChild(b),b=document.createElement("div"),b.className="likesViewCom",b.innerHTML='<svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,1H4C1.8,1,0,2.8,0,5v10c0,2.2,1.8,4,4,4v3c0,0.9,1.1,1.3,1.7,0.7L9.4,19H20c2.2,0,4-1.8,4-4V5 C24,2.8,22.2,1,20,1z M14,13H8c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h6c0.6,0,1,0.4,1,1C15,12.6,14.6,13,14,13z M16,9H8 C7.4,9,7,8.6,7,8c0-0.6,0.4-1,1-1h8c0.6,0,1,0.4,1,1C17,8.6,16.6,9,16,9z" id="message"/></g></svg><div class="counterTxt">'+
|
17 |
-
(a.comment_count?a.comment_count:0)+"</div>",b.getElementsByTagName("svg")[0].style.fill=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTitleTextColor,1),d.appendChild(b),m.appendChild(d));e(this.appName).infoBarDateInfoEnable&&(d=document.createElement("div"),d.className="gmDescriptionWrap",d.style.color=f.hexToRgbaStrin(e(this.appName).modalInfoBoxTextColor,1),d.style.fontSize="100%",b="",c='<div class="gmItemMetaKey">Upload: </div><div class="gmItemMetaValue">'+f.timeConverter(a.date)+"</div></br>",
|
18 |
-
b+=c,a.meta.data&&a.meta.data.created_timestamp&&(a='<div class="gmItemMetaKey">Taken: </div><div class="gmItemMetaValue">'+f.timeConverter(a.meta.data.created_timestamp)+"</div>",b+=a),d.innerHTML='<div class="gmItemsDate">'+b+"</div>",""!=b&&m.appendChild(d))}};t.prototype={set item(a){function c(a){if(!m.dragging){a=this.getAttribute("type");var b="menubar=no,toolbar=no,resizable=yes,scrollbars=yes, top=200, left="+(screen.width-600)/2+", height=450,width=600";switch(a){case "copy":d&&window.open(l,
|
19 |
-
"_blank");a=document.getElementById("gmSH_title_copy");b=this.getElementsByClassName("gmItemCopyLink")[0].getElementsByTagName("svg")[0];window.getSelection().selectAllChildren(a);try{document.execCommand("copy"),window.getSelection().removeAllRanges(),b.style.fill="green",a.style.color="green",d=!0}catch(w){window.open(l,"_blank")}break;case "facebook":window.open("https://www.facebook.com/share.php?u="+l,"",b);break;case "twitter":window.open("https://twitter.com/intent/tweet?text="+encodeURI(descriptionData.title)+
|
20 |
-
"&url="+l,"",b);break;case "pinterest":window.open("http://www.pinterest.com/pin/create/button/?url="+l+"&media="+descriptionData.url+"&description="+encodeURI(descriptionData.title),"",b)}}}var m=this.modal,k=this.view,l=a.sharelink;var b='<div class="gmItemTitle" style="color: '+e(this.appName).modalInfoBoxTitleTextColor+'">'+e(this.appName).shareTitlePlaceHolder+"<br>";b=a.title&&""!=a.title?b+('<div class="gmItemDescription" style="color: '+e(this.appName).modalInfoBoxTextColor+'">'+a.title+"</div></div>"):
|
21 |
-
b+"</div>";""!=b&&(a=document.createElement("div"),a.className="gmDescriptionWrap",a.style.float="none",a.innerHTML=b,k.appendChild(a));a=document.createElement("div");a.className="gmDescriptionWrap";a.style.float="none";a.style.padding="0px 20px";k.appendChild(a);var d=!1;b=document.createElement("div");b.setAttribute("type","facebook");b.className="gmItemShareButtonWrap";b.id="gmedia_share_fb";var h=document.createElement("div");h.className="gmItemShareButton";h.innerHTML='<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg><div class="gmSH_title" style="color: #3b5998">Facebook</div>';
|
22 |
-
h.getElementsByTagName("svg")[0].style.fill="#3b5998";b.appendChild(h);b.addEventListener("mouseup",c,!1);f.is_touch_device&&b.addEventListener("touchend",c,!1);a.appendChild(b);b=document.createElement("div");b.setAttribute("type","twitter");b.className="gmItemShareButtonWrap";b.id="gmedia_share_tw";h=document.createElement("div");h.className="gmItemShareButton";h.innerHTML='<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M30 7.3c-1 .5-2.1.8-3.3.9 1.2-.7 2.1-1.8 2.5-3.2-1.1.7-2.3 1.1-3.6 1.4-1-1.1-2.5-1.8-4.2-1.8-3.2 0-5.7 2.6-5.7 5.7 0 .5.1.9.1 1.3-4.8-.2-9-2.5-11.8-6-.5.9-.8 1.9-.8 3 0 2 1 3.8 2.6 4.8-.9 0-1.8-.3-2.6-.7v.1c0 2.8 2 5.1 4.6 5.6-.5.1-1 .2-1.5.2-.4 0-.7 0-1.1-.1.7 2.3 2.9 3.9 5.4 4-2 1.5-4.4 2.5-7.1 2.5-.5 0-.9 0-1.4-.1 2.5 1.6 5.6 2.6 8.8 2.6 10.6 0 16.3-8.8 16.3-16.3v-.7c1.1-1 2-2 2.8-3.2z"></path></svg><div class="gmSH_title" style="color: #00aced">Twitter</div>';
|
23 |
-
h.getElementsByTagName("svg")[0].style.fill="#00aced";b.appendChild(h);b.addEventListener("mouseup",c,!1);f.is_touch_device&&b.addEventListener("touchend",c,!1);a.appendChild(b);b=document.createElement("div");b.setAttribute("type","pinterest");b.className="gmItemShareButtonWrap";b.id="gmedia_share_pin";h=document.createElement("div");h.className="gmItemShareButton";h.innerHTML='<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg><div class="gmSH_title" style="color: #cc2127">Pinterest</div>';
|
24 |
-
h.getElementsByTagName("svg")[0].style.fill="#cc2127";b.appendChild(h);b.addEventListener("mouseup",c,!1);f.is_touch_device&&b.addEventListener("touchend",c,!1);a.appendChild(b);b=document.createElement("div");b.setAttribute("type","copy");b.className="gmItemShareButtonWrap";b.id="gmedia_share_link";h=document.createElement("div");h.className="gmItemCopyLink";h.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg><div id="gmSH_title_copy" class="gmSH_title" style="color: #7d7d7d">'+
|
25 |
-
l+"</div>";h.getElementsByTagName("svg")[0].style.fill="#7d7d7d";b.appendChild(h);b.addEventListener("mouseup",c,!1);f.is_touch_device&&b.addEventListener("touchend",c,!1);a.appendChild(b);k.appendChild(a)}};u.prototype={get infoBar(){return new r(this.appName,this)},get shareBar(){return new t(this.appName,this)},addToStage:function(){var a=this,c=document.getElementsByTagName("body")[0];document.getElementsByTagName("html");this.view.style.zIndex=f.findHighestZIndex(c)+1;f.disableBodyScrollSlider();
|
26 |
-
n.slider?n.slider.view.appendChild(this.view):c.appendChild(this.view);setTimeout(function(){a.view.style.opacity="1"},30);document.addEventListener("keydown",a.keydownHandler(),!1)},prepareToRemove:function(a){var c=this;document.removeEventListener("keydown",this.handlerKB,!1);this.scrollView.removeEventListener("touchstart",this.startDragHandler,f.passiveListener);this.scrollView.removeEventListener("mousedown",this.startDragHandler,!1);c.view.style.opacity="0";this.delegate.slider||f.enableBodyScrollSlider();
|
27 |
-
setTimeout(function(){c.view&&c.view.parentNode&&c.view.parentNode.removeChild(c.view);delete c.view;c.delegate.deleteModal()},400)},keydownHandler:function(a){var c=this;c.handlerKB=function(a){switch(a.keyCode){case 27:c.prepareToRemove()}};return c.handlerKB},pushPage:function(a){this.viewCompleted=!1;this.scrollView&&this.scrollView.parentNode&&this.scrollView.parentNode.removeChild(this.scrollView);this.view.appendChild(a);this.scrollView=a;this.updateControlls()},updateControlls:function(){this.scrollView&&
|
28 |
-
!this.viewCompleted&&(this.startDragHandler=this.startDrag(),this.scrollView.addEventListener("touchstart",this.startDragHandler,f.passiveListener),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0)},get bottom(){return this.view.clientHeight-this.scrollView.clientHeight-20},set scrollViewTranslateY(a){this._scrollViewTranslateY=a;this.scrollView.style.transform="translateY("+a+"px)";a=Math.max(e(this.appName).modalBgAlpha-Math.abs(a/200),0);this.closeButton.style.opacity=
|
29 |
-
a},get scrollViewTranslateY(){return this._scrollViewTranslateY},startDrag:function(){function a(){d=0<k.scrollViewTranslateY?.2*d+.1*(0-k.scrollViewTranslateY):k.scrollViewTranslateY<k.bottom?.2*d+.1*(k.bottom-k.scrollViewTranslateY):.95*d;k.scrollViewTranslateY+=d;.04>Math.abs(d)?(k.dragging=!1,q(p)):p=n(a)}function c(a){a.originalEvent&&(a=a.originalEvent);a.preventDefault();if(a=l-(a.touches&&a.touches[0]?a.touches[0].pageY:a.pageY))k.dragging=!0;k.scrollViewTranslateY=b-a;h=g;g=k.scrollViewTranslateY;
|
30 |
-
d=g-h}function e(b){b.preventDefault();k.scrollView.style.transition="none";f.is_touch_device&&(document.removeEventListener("touchmove",c,f.passiveListener),document.removeEventListener("touchend",e,f.passiveListener));document.removeEventListener("mousemove",c,!1);document.removeEventListener("mouseup",e,!1);document.removeEventListener("oncontextmenu",e,!1);if(0>=k.bottom){if(k.scrollViewTranslateY<k.bottom-50||50<k.scrollViewTranslateY){k.prepareToRemove();return}}else if(-50>k.scrollViewTranslateY||
|
31 |
-
50<k.scrollViewTranslateY){k.prepareToRemove();return}(0!=d||0<k.scrollViewTranslateY||k.scrollViewTranslateY<k.bottom)&&k.dragging&&(p=n(a))}var k=this,l=void 0,b=0,d=0,h=0,g=0,p=void 0,n=f.requestAnimationFrame,q=f.cancelAnimationFrame;return function(a){a?(f.is_touch_device||a.preventDefault(),a.originalEvent&&(a=a.originalEvent),a.button&&0!==a.button||(d=0,g=k.scrollViewTranslateY,l=a.touches&&a.touches[0]?a.touches[0].pageY:a.pageY,b=k.scrollViewTranslateY,q(p),f.is_touch_device&&(document.addEventListener("touchmove",
|
32 |
-
c,f.passiveListener),document.addEventListener("touchend",e,f.passiveListener)),document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",e,!1),document.addEventListener("oncontextmenu",e,!1))):(d=0,b=k.scrollViewTranslateY,q(p))}}};return new u(n)};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/js/components/gm_vit_slider.js
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(g,r,m){g!=Array.prototype&&g!=Object.prototype&&(g[r]=m.value)};$jscomp.getGlobal=function(g){return"undefined"!=typeof window&&window===g?g:"undefined"!=typeof global&&null!=global?global:g};$jscomp.global=$jscomp.getGlobal(this);
|
2 |
-
$jscomp.polyfill=function(g,r,m,p){if(r){m=$jscomp.global;g=g.split(".");for(p=0;p<g.length-1;p++){var n=g[p];n in m||(m[n]={});m=m[n]}g=g[g.length-1];p=m[g];r=r(p);r!=p&&null!=r&&$jscomp.defineProperty(m,g,{configurable:!0,writable:!0,value:r})}};
|
3 |
-
$jscomp.polyfill("Math.hypot",function(g){return g?g:function(g,m,p){g=Number(g);m=Number(m);var n,l=Math.max(Math.abs(g),Math.abs(m));for(n=2;n<arguments.length;n++)l=Math.max(l,Math.abs(arguments[n]));if(1E100<l||1E-100>l){if(!l)return l;g/=l;m/=l;var f=g*g+m*m;for(n=2;n<arguments.length;n++){var e=Number(arguments[n])/l;f+=e*e}return Math.sqrt(f)*l}f=g*g+m*m;for(n=2;n<arguments.length;n++)e=Number(arguments[n]),f+=e*e;return Math.sqrt(f)}},"es6","es3");
|
4 |
-
function codeasily_v2_slider(g,r){function m(a){function b(a){switch(a.type){case "mouseenter":d.selector.style.opacity="1";break;case "mouseleave":d._selected||(d.selector.style.opacity="0")}}var d=this;this.delegate=a;this.appName=a.appName;this.item=void 0;this.view=document.createElement("div");this.view.className="gmedia_v2_ScrollBarItem";f.miniScreen&&this.view.classList.add("miniScreen");this.bgImg=document.createElement("div");this.bgImg.className="gmedia_v2_ScrollBarItemBg";this.view.appendChild(this.bgImg);
|
5 |
-
this.imgSRC=void 0;this.selector=document.createElement("div");this.selector.className="gmedia_v2_ScrollBarItemHover";this.selector.style.borderColor=e(this.appName).sliderThumbBarHoverColor;this.view.appendChild(this.selector);this._selected=!1;this.view.addEventListener("mouseenter",b,!1);this.view.addEventListener("mouseleave",b,!1)}function p(a){this.delegate=a;this.appName=a.appName;this.itemsList=[];this.thumbSize=f.Size(100,80);this.view=document.createElement("div");this.view.className="gmedia_v2_TermScrollBarWrap";
|
6 |
-
f.miniScreen&&this.view.classList.add("miniScreen");this.scrollView=document.createElement("div");this.scrollView.className="gmedia_v2_ScrollView";this.scrollView.style.width="0px";this.view.appendChild(this.scrollView);this.thumbsList=[];this._scrollWidth=this.itemsInStageCount=0;this.dragging=this.viewCompleted=!1;this.scrollViewTranslateX=0;this.activAudioIndex=this.activIndex=this.startDragHandler=void 0}function n(a){this.delegate=a;this.id=this.item=void 0;this.appName=a.appName;this.itemIndex=
|
7 |
-
void 0;this.positionIndex=0;this.view=document.createElement("div");this.view.className="gmedia_v2_SliderPage";this.itemInner=document.createElement("div");this.itemInner.className="gmedia_sliderPage_inner";this.view.appendChild(this.itemInner);this.iconHolder=document.createElement("div");this.iconHolder.className="gmedia_iconHolder";this.preloader=f.createPreloaderView(f.hexToRgbaStrin(e(this.appName).sliderPreloaderColor,1));this.preloader.style.display="none";this.view.appendChild(this.preloader);
|
8 |
-
this.view.appendChild(this.iconHolder);e(this.appName).key||(a=e(this.appName).tv.cloneNode(!0),a.style.left="50%",a.style.top="50%",a.style.transform="translateX(-50%) translateY(-50%)",a.style.transform="translateX(-50%) translateY(-50%)",a.style.zIndex="999999",this.view.appendChild(a));this.size=f.Size(0,0);this.imgSize=f.Size(0,0);this._imageFrame=f.Rect(0,0,0,0);this.maxYoffset=this.maxXoffset=this.height=this.width=0;this.MaxScale=4;this.newScaleMW=this.newScale=this.scale=this.imgScale=1;
|
9 |
-
this._viewTranslate=f.Point(0,0);this.origin=f.Point(0,0);this.animaSliderRender=this.boundingBoxScale=this.boundingBox=void 0;this.newY=this.oldY=this.newX=this.oldX=this.speedY=this.speedX=0;this.isBlockDragingMem=this.isBlockDraging=this.draging=!1;this.startDistForZoom=this.startGlobalPoint=this.startScale=void 0}function l(a){this.delegate=a;this.appName=this.delegate.appName;this.id=this.appName+"sliderAView_";this.itemsList=void 0;this.visibleBounds=f.Rect(0,0,0,0);this.needHideControlls=this.isControllsShow=
|
10 |
-
!1;this.firsrTap=void 0;this.removing=!1;this.intitByTermDelay=this.createlayoutDelay=void 0;this.view=document.createElement("div");this.view.className="gmedia_v2_ColectionSlider";f.Device.desktop||(this.view.style.height="100%");this.view.id=this.id+"main";this.resizeDelay=void 0;this.size=f.Size(0,0);a=document.createElement("div");a.className="gmSliderBg";a.style.backgroundColor=e(this.appName).sliderBgColor;this.background=a;this.view.appendChild(a);this.sliderPages=[];this.zoomingDrag=this.dragging=
|
11 |
-
!1;this._scrollViewTranslateY=this._scrollViewTranslateX=this.speedY=this.speedX=0;this.currentItemIndex=this.startDragHandler=void 0;this.startItemIndex=0;this.items=[];this.itemsAmount=0;this.animaSliderRender=this.zoomingPage=this.pageInFocusPrev=this.pageInFocus=this._itemNum=void 0;this.slider=document.createElement("div");this.slider.className="gmedia_v2_SlidesWrap";this.view.appendChild(this.slider);this.footer=document.createElement("div");this.footer.className="gmedia_v2_SlidesFooter";this.footer.style.backgroundImage=
|
12 |
-
"linear-gradient(180deg,"+f.hexToRgbaStrin(e(this.appName).sliderHeaderFooterBgColor,0)+","+f.hexToRgbaStrin(e(this.appName).sliderHeaderFooterBgColor,1)+")";this.view.appendChild(this.footer);this.header=document.createElement("div");this.header.className="gmedia_v2_SlidesHeader";this.header.style.backgroundImage="linear-gradient(0deg,"+f.hexToRgbaStrin(e(this.appName).sliderHeaderFooterBgColor,0)+","+f.hexToRgbaStrin(e(this.appName).sliderHeaderFooterBgColor,1)+")";f.miniScreen&&this.header.classList.add("gmedia_v2_SlidesHeaderMiniScreen");
|
13 |
-
this.view.appendChild(this.header);this.copyR=this.copyRight();this.createControlls();this.addToStage()}var f=r,e=f.moduleSettings,A=f.trace,q=f.cancelAnimationFrame,t=f.requestAnimationFrame,v=f.passiveListener;m.prototype={initByItem:function(a){this.item=a;this.imgSRC=a.itemViewThumbSrc;this.bgImg.style.backgroundImage="url("+this.imgSRC+")";this.type=a.type;if("audio"==this.type||"video"==this.type){this.hover=document.createElement("div");this.hover.className="gmedia_v2_ScrollBarItemLink";this.hover.style.backgroundColor=
|
14 |
-
f.hexToRgbaStrin("#ffffff",.6);switch(this.type){case "audio":this.hover.innerHTML='<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
15 |
-
break;case "video":"vimeo"==this.item.mime_type.split("/")[1]?this.hover.innerHTML='<svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="-5 -5 66.693 66.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997 c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256 c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928 c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>':
|
16 |
-
this.hover.innerHTML='<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>'}this.view.appendChild(this.hover)}},
|
17 |
-
set musicIdentifireStatus(a){},select:function(a){this.selector.style.opacity=a?"1":"0";this._selected=a}};p.prototype={initItemsList:function(a){this.itemsList=a;a=new m(this);this.scrollView.appendChild(a.view);this.thumbSize.width=a.view.clientWidth;this.thumbSize.height=a.view.clientHeight;this.scrollView.removeChild(a.view);this.prepare();this.view.style.height=this.scrollView.style.height=this.thumbSize.height+"px";this._scrollWidth=this.thumbSize.width*this.itemsList.length;this.scrollView.style.width=
|
18 |
-
this._scrollWidth+5+"px";this.scrollViewTranslateX=0;this.updateView()},addThumbByIndex:function(a){function b(a){"touchend"!=a.type&&"mouseup"!=a.type||d.dragging||(d.delegate.gotoPageByNum(parseInt(this.getAttribute("gmIndex"))),d.startDragHandler&&d.startDragHandler())}if(!this.thumbsList[a]){var d=this,c=new m(this);this.thumbsList[a]=c;this.itemsInStageCount+=1;f.is_touch_device&&c.view.addEventListener("touchend",b,!1);c.view.addEventListener("mouseup",b,!1);c.view.style.left=this.thumbSize.width*
|
19 |
-
a+"px";this.scrollView.appendChild(c.view);c.initByItem(this.itemsList[a]);c.view.setAttribute("gmIndex",a)}},changeAudioStatusForIndex:function(a,b){!this.activAudioIndex&&0!==this.activAudioIndex||a==this.activAudioIndex||(this.thumbsList[this.activAudioIndex].musicIdentifireStatus="ended");this.thumbsList[a].musicIdentifireStatus=b.type;this.activAudioIndex=a},prepare:function(){this._scrollWidth=0;this.scrollView.style.transform="translateX(0px)";this.scrollView.style.width="0px";this._scrollViewTranslateX=
|
20 |
-
0},resize:function(){this.updateView()},selectThumbByIndex:function(a){if(void 0!==a&&0!=this.itemsList.length){var b;(this.activIndex||0===this.activIndex)&&(b=this.thumbsList[this.activIndex])&&b.select(!1);this.thumbsList[a]||this.addThumbByIndex(a);if(b=this.thumbsList[a]){b.select(!0);b=this.thumbSize.width*a;var d=b+this.scrollViewTranslateX,c=d+this.thumbSize.width;this.scrollView.style.transition="none";if(0>d||0>c)this.scrollView.style.transition="transform .4s",this.scrollViewTranslateX=
|
21 |
-
-b;if(d>this.view.clientWidth||c>this.view.clientWidth)this.scrollView.style.transition="transform .4s",this.scrollViewTranslateX=this.view.clientWidth-this.thumbSize.width-b;this._scrollWidth>this.view.clientWidth&&(this.scrollViewTranslateX=Math.max(this.scrollViewTranslateX,-(this._scrollWidth-this.view.clientWidth)))}this.activIndex=a}},updateView:function(){this.selectThumbByIndex(this.activIndex);1>this.view.clientWidth/this._scrollWidth?(this.scrollViewTranslateX=this._scrollViewTranslateX,
|
22 |
-
this.viewCompleted||(this.scrollView.classList.add("gm_grabbable"),this.startDragHandler=this.startDrag(),f.is_touch_device&&this.scrollView.addEventListener("touchstart",this.startDragHandler,v),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0)):(this.scrollView.classList.remove("gm_grabbable"),this.scrollViewTranslateX=(this.view.clientWidth-this._scrollWidth)/2,this.viewCompleted&&(f.is_touch_device&&this.scrollView.removeEventListener("touchstart",this.startDragHandler,
|
23 |
-
v),this.scrollView.removeEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!1))},set scrollViewTranslateX(a){this._scrollViewTranslateX=a;this.scrollView.style.transform="translateX("+a+"px)";if(this.itemsList.length!=this.itemsInStageCount){var b=Math.max(Math.floor(-a/this.thumbSize.width),0);for(a=Math.min(b+Math.ceil(this.view.clientWidth/this.thumbSize.width),this.itemsList.length-1);b<=a;b++)this.addThumbByIndex(b)}},get scrollViewTranslateX(){return this._scrollViewTranslateX},
|
24 |
-
startDrag:function(a){function b(){return-(h._scrollWidth-h.view.clientWidth+h.view.getBoundingClientRect().left)}function d(){u=0<h.scrollViewTranslateX?.2*u+.1*(0-h.scrollViewTranslateX):h.scrollViewTranslateX<b()?.2*u+.1*(b()-h.scrollViewTranslateX):.95*u;h.scrollViewTranslateX+=u;.04>Math.abs(u)?q(l):l=t(d)}function c(a){a.preventDefault();if(a=e-(a.touches&&a.touches[0]?a.touches[0].pageX:a.pageX))h.dragging=!0;h.scrollViewTranslateX=g-a;m=n;n=h.scrollViewTranslateX;u=n-m}function k(a){a.preventDefault();
|
25 |
-
h.scrollView.style.transition=null;f.is_touch_device&&(document.removeEventListener("touchmove",c,v),document.removeEventListener("touchend",k,v),document.removeEventListener("touchcancel",k,!1));document.removeEventListener("mousemove",c,!1);document.removeEventListener("mouseup",k,!1);document.removeEventListener("oncontextmenu",k,!1);if(0!=u||0<h.scrollViewTranslateX||h.scrollViewTranslateX<b())l=t(d);h.dragging=!1}var h=this,e=void 0,g=void 0,u=0,m=0,n=0,l=void 0;return function(a){a?(f.is_touch_device||
|
26 |
-
a.preventDefault(),a.button&&0!==a.button||(u=0,n=h.scrollViewTranslateX,e=a.touches&&a.touches[0]?a.touches[0].pageX:a.pageX,g=h.scrollViewTranslateX,q(l),f.is_touch_device&&(document.addEventListener("touchmove",c,v),document.addEventListener("touchend",k,v),document.addEventListener("touchcancel",k,!1)),document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",k,!1),document.addEventListener("oncontextmenu",k,!1))):(u=0,g=h.scrollViewTranslateX,q(l))}}};n.prototype={initByItem:function(a){if(this.id!=
|
27 |
-
a.ID){var b=this;this.item=a;this.id=a.ID;1!=this.scale&&(this.scale=1,this.viewTranslate=f.Point(0,0));this.itemInner.firstChild&&this.itemInner.removeChild(this.itemInner.firstChild);this.itemInner.appendChild(a.webView);this.itemImg=a.webView;a.webView.complete?(this.imgSize.width=this.itemImg.naturalWidth,this.imgSize.height=this.itemImg.naturalHeight,this.isInScale&&this.normalize(),this.fit(!1)):(this.preloader.style.display="block",a.webView.addEventListener("load",function(){b.preloader.style.display=
|
28 |
-
"none";b.imgSize.width=this.naturalWidth;b.imgSize.height=this.naturalHeight;b.isInScale&&b.normalize();b.fit(!1)},!1));switch(a.type){case "audio":this.iconHolder.innerHTML='<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
29 |
-
this.view.classList.add("info_icon");break;case "video":this.view.classList.add("info_icon");this.iconHolder.innerHTML='<svg version="1.1" viewBox="0 0 50 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M48.479,27.435L5.672,0.915C2.553-1.132,0,0.374,0,4.261v51.48c0,3.885,2.553,5.391,5.672,3.346l42.807-26.52 c0,0,1.521-1.07,1.521-2.566S48.479,27.435,48.479,27.435z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
30 |
-
this.iconHolder.firstChild.style.marginLeft="7px";break;default:this.view.classList.remove("info_icon")}}},set posX(a){this.view.style.left=this.size.width*a+"px";this.positionIndex=a},resize:function(){this.size.width=this.view.clientWidth;this.size.height=this.view.clientHeight;this.posX=this.positionIndex;this.isInScale&&this.normalize();this.fit(!1)},fit:function(a){if(this.itemImg){a=0;e(this.appName).sliderThumbBarEnable&&700<this.size.height&&(a=100);!e(this.appName).sliderThumbBarEnable&&
|
31 |
-
700<this.size.height&&(a=48);"video"==this.item.type&&(a=40);var b=f.getFrameForBoxWithMode(this.imgSize,f.Size(this.size.width-4,this.size.height-2*a),!1,!1);b.x+=2;b.y+=a;this.imgScale=Math.min(this.imgSize.width/b.width,this.MaxScale);this.item.webImgFrame.x!=b.x||this.item.webImgFrame.y!=b.y||this.item.webImgFrame.width!=b.width||this.item.webImgFrame.height!=b.height?(this.imageFrame=b,this.item.webImgFrame=b):this._imageFrame=b;this.videoWrap&&(this.videoWrapFrame=b)}},set imageFrame(a){this.itemImg.style.left=
|
32 |
-
a.x+"px";this.itemImg.style.top=a.y+"px";this.itemImg.style.width=a.width+"px";this.itemImg.style.height=a.height+"px";this._imageFrame=a},get imageFrame(){return this._imageFrame},set videoWrapFrame(a){this.videoWrap.style.width=a.width+"px";this.videoWrap.style.height=a.height+"px";this.videoWrap.style.left=a.x+"px";this.videoWrap.style.top=a.y+"px"},checkOffset:function(a,b){if(b!==this.boundingBoxScale){var d=this.imageFrame.width*(b?b:1),c=this.imageFrame.height*(b?b:1),k=this.imageFrame.x*(b?
|
33 |
-
b:1),h=this.imageFrame.y*(b?b:1);this.boundingBox={left:d>this.size.width?-k:(this.size.width-this.size.width*b)/2,top:c>this.size.height?-h:(this.size.height-this.size.height*b)/2,right:d>this.size.width?this.size.width-(k+d):(this.size.width-this.size.width*b)/2,bottom:c>this.size.height?this.size.height-(h+c):(this.size.height-this.size.height*b)/2};this.boundingBoxScale=b}b=a.x>this.boundingBox.left?this.boundingBox.left:a.x;b=b<this.boundingBox.right?this.boundingBox.right:b;a=a.y>this.boundingBox.top?
|
34 |
-
this.boundingBox.top:a.y;a=a<this.boundingBox.bottom?this.boundingBox.bottom:a;return f.Point(b,a)},is_pointInItem:function(a){var b=this.viewTranslate.x+this.size.width/2*this.newScale-this.imageFrame.width/2*this.newScale,d=b+this.imageFrame.width*this.newScale,c=this.size.height/2*this.newScale+this.viewTranslate.y-this.imageFrame.height/2*this.newScale,f=c+this.imageFrame.height*this.scale;return a.x>b&&a.x<d&&a.y>c&&a.y<f?!0:!1},normalize:function(a){q(this.animaSliderRender);a?this.renderTransformTo(f.Point(0,
|
35 |
-
0),1):(this.scale=this.newScale=this.newScaleMW=1,this.viewTranslate=f.Point(0,0),this.origin=f.Point(0,0))},get isInScale(){return 1==this.newScale&&0==this.origin.x&&0==this.origin.y?!1:!0},zoomIn:function(a,b){"audio"!=this.item.type&&"video"!=this.item.type&&(q(this.animaSliderRender),b=f.Point(b.x-(b.x-this.viewTranslate.x)/this.scale*a,b.y-(b.y-this.viewTranslate.y)/this.scale*a),this.renderTransformTo(this.checkOffset(b,a),a))},zoomByScaleIter:function(a,b){"audio"!=this.item.type&&"video"!=
|
36 |
-
this.item.type&&(a=0>a?1.065:.935,q(this.animaSliderRender),this.newScale*a>this.MaxScale&&(a=this.MaxScale/this.newScale),1>this.newScale*a&&(a=1/this.newScale),this.newScale*=a,this.origin=f.Point(b.x-a*(b.x-this.origin.x),b.y-a*(b.y-this.origin.y)),this.renderTransformTo(this.checkOffset(this.origin,this.newScale),this.newScale))},zoomByScaleDeltaToPoint:function(a,b,d){if("audio"!=this.item.type&&"video"!=this.item.type){q(this.animaSliderRender);a=this.startDistForZoom/this.startScale*(a/this.startDistForZoom)/
|
37 |
-
(this.startDistForZoom/this.startScale)*this.startScale;d=0;a>this.MaxScale&&(d=.8*-(a-this.MaxScale));a+=d;d=this.startGlobalPoint.x-(this.startGlobalPoint.x-this.startTranslate.x)/this.newScale*a;var c=this.startGlobalPoint.y-(this.startGlobalPoint.y-this.startTranslate.y)/this.newScale*a;b=f.Point(d-b.x,c-b.y);this.scale=this.newScale=a;this.viewTranslate=b;this.startTranslate=f.Point(d,c)}},set viewTranslate(a){this._viewTranslate=a;this.itemInner.style.transform="matrix("+this.scale+", 0, 0, "+
|
38 |
-
this.scale+", "+a.x+", "+a.y+")"},get viewTranslate(){return this._viewTranslate},renderTransformTo:function(a,b){function d(){k=.05*k+.1*(a.x-c.viewTranslate.x);h=.05*h+.1*(a.y-c.viewTranslate.y);b&&(e=.05*e+.1*(b-c.scale));var g=c.viewTranslate.x;g+=k;var m=c.viewTranslate.y;m+=h;b&&(c.scale+=e);c.viewTranslate=f.Point(g,m);.02>Math.abs(k)&&.02>Math.abs(h)&&.02>Math.abs(e)?(q(c.animaSliderRender),b&&(c.scale=b),c.viewTranslate=f.Point(a.x,a.y)):c.animaSliderRender=t(d)}var c=this;q(c.animaSliderRender);
|
39 |
-
this.origin=a;this.newScale=b;var k=0,h=0,e=0;c.animaSliderRender=t(d)},renderGlidingTransform:function(){function a(){b.speedX*=d;b.speedY*=c;var k=b.viewTranslate.x;k+=b.speedX;var h=b.viewTranslate.y;h+=b.speedY;if(k>b.boundingBox.left||k<b.boundingBox.right)b.speedX*=-1,k=(k>b.boundingBox.left?b.boundingBox.left:k<b.boundingBox.right?b.boundingBox.right:k)+b.speedX,d=.75;if(h>b.boundingBox.top||h<b.boundingBox.bottom)b.speedY*=-1,h=(h>b.boundingBox.top?b.boundingBox.top:h<b.boundingBox.bottom?
|
40 |
-
b.boundingBox.bottom:h)+b.speedY,c=.75;b.origin=f.Point(k,h);b.viewTranslate=f.Point(k,h);.02>Math.abs(b.speedX)&&.02>Math.abs(b.speedY)?(q(b.animaSliderRender),b.speedX=0,b.speedY=0):b.animaSliderRender=t(a)}var b=this;q(b.animaSliderRender);var d=.95,c=.95;b.animaSliderRender=t(a)},renderStretchstretchTransform:function(){function a(){c=.2*c+.15*(d.x-b.viewTranslate.x);k=.2*k+.15*(d.y-b.viewTranslate.y);b.viewTranslate=f.Point(b.viewTranslate.x+c,b.viewTranslate.y+k);.02>Math.abs(c)&&.02>Math.abs(k)?
|
41 |
-
(q(b.animaSliderRender),b.viewTranslate=d):b.animaSliderRender=t(a)}var b=this;q(b.animaSliderRender);var d=this.checkOffset(f.Point(b.viewTranslate.x+b.speedX,b.viewTranslate.y+b.speedY),b.scale),c=0,k=0;b.animaSliderRender=t(a)},startDrag:function(a,b){q(this.animaSliderRender);"audio"!=this.item.type&&"video"!=this.item.type&&(this.startDistForZoom=b,this.startGlobalPoint=a,this.startTranslate=this.viewTranslate,this.speedY=this.speedX=0,this.newX=this.viewTranslate.x,this.newY=this.viewTranslate.y,
|
42 |
-
this.startScale=this.scale)},stopDrag:function(){if("audio"!=this.item.type&&"video"!=this.item.type){if(this.isInScale)if(1>this.scale)this.normalize(!0);else if(this.scale>this.MaxScale)this.zoomIn(this.MaxScale,this.startGlobalPoint);else{var a=this.checkOffset(this.origin,this.newScale);(this.isBlockDraging=a.x!=this.origin.x||a.y!=this.origin.y)&&this.renderStretchstretchTransform()}this.draging&&(this.isBlockDraging?this.renderStretchstretchTransform():this.renderGlidingTransform(),this.draging=
|
43 |
-
!1)}},dragin:function(a){if("audio"==this.item.type||"video"==this.item.type)return!1;var b=this.startTranslate.x-a.x;a=this.startTranslate.y-a.y;var d=this.checkOffset(f.Point(b,a),this.newScale);this.isBlockDraging=d.x!=b||d.y!=a;var c=a-d.y;b-=.7*(b-d.x);a-=.7*c;this.oldX=this.newX;this.newX=b;this.speedX=.7*(this.newX-this.oldX);this.oldY=this.newY;this.newY=a;this.speedY=.7*(this.newY-this.oldY);this.origin=f.Point(b,a);this.viewTranslate=f.Point(b,a);return this.draging=!0},get isSubContentActiv(){return this.videoWrap?
|
44 |
-
!0:!1},action:function(a){if(this.item)switch(a){case "click":if("video"==this.item.type){if(this.videoWrap)return this.removeVideoContent(),"videoStop";this.view.classList.add("video_play");this.view.classList.remove("info_icon");this.addVideoContent();return"videoPlay"}if("audio"==this.item.type)return this.tryPlayOrPauseMp3(),"audioPlay";break;case "removeSubContent":if("video"==this.item.type)return this.removeVideoContent(),"videoStop";"audio"==this.item.type&&this.audioPlayer&&!this.audioPlayer.paused&&
|
45 |
-
(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("gmAlbusListRotate"))}},addVideoContent:function(){var a=this.item.mime_type.split("/")[1];if(a)switch(this.videoWrap||(this.videoWrap=document.createElement("div"),this.videoWrap.className="gmedia_video_wrap",this.videoWrapFrame=this.imageFrame,this.itemInner.appendChild(this.videoWrap),this.view.appendChild(this.delegate.closeButton)),a){case "youtube":this.videoWrap.innerHTML=f.youTubeCode.replace("%id%",this.item.videoId);break;
|
46 |
-
case "vimeo":this.videoWrap.innerHTML=f.vimeoCode.replace("%id%",this.item.videoId)}},removeVideoContent:function(){this.videoWrap&&(this.delegate.buttonsBox.appendChild(this.delegate.closeButton),this.view.classList.remove("video_play"),this.videoWrap.parentNode&&this.videoWrap.parentNode.removeChild(this.videoWrap),this.videoWrap=void 0,this.view.classList.remove("video_play"),"image"!=this.item.type&&this.view.classList.add("info_icon"))},tryPlayOrPauseMp3:function(){if("audio"==this.item.type){if(!this.audioPlayer){if(!document.getElementById("gmAudioPlayer"))return;
|
47 |
-
this.audioPlayer=document.getElementById("gmAudioPlayer")}this.audioPlayer.src==this.item.url?this.audioPlayer.paused?(this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("gmAlbusListRotate")):(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("gmAlbusListRotate")):(this.audioPlayer.src=this.item.url,this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("gmAlbusListRotate"))}}};l.prototype={get viewOfsetY(){return this.view.getBoundingClientRect().top-document.body.getBoundingClientRect().top},
|
48 |
-
get viewOfsetX(){return this.view.getBoundingClientRect().left-document.body.getBoundingClientRect().left},copyRight:function(a){var b=this,d=void 0;return function(a){if(!f.Device.ios||"mouseup"!=a.type){var c=void 0,h=void 0;a.changedTouches&&a.changedTouches[0]?(c=a.changedTouches[0].pageX,h=a.changedTouches[0].pageY):(c=a.pageX,h=a.pageY);c-=b.viewOfsetX;h-=b.viewOfsetY;var e=b.itemsList[b.itemIndex];if(e.webView&&e.webView==a.target){a.preventDefault();var g=document.getElementById("gm_copyr");
|
49 |
-
g&&(clearTimeout(d),g.parentNode.removeChild(g),g=null);g=document.createElement("div");g.id="gm_copyr";g.className="gmedia_v2_hints";g.innerHTML=e.user&&e.user.displayname?"Hey, this photo is © "+e.user.displayname:"This I can not give you.";g.style.top=h+"px";g.style.left=c+"px";b.view.appendChild(g);d=setTimeout(function(){g.parentNode.removeChild(g)},1E3)}}}},addToStage:function(){var a=this,b=document.getElementsByTagName("body")[0];document.getElementsByTagName("html");this.view.style.zIndex=
|
50 |
-
f.findHighestZIndex(b)+1;f.disableBodyScrollSlider();document.addEventListener("keydown",a.deHandler(),!0);document.addEventListener("contextmenu",a.copyR,!1);e(this.appName).appEventManager.addGMEventListener("FULLSCREEN_SWITCH",this,"fullscreenSwitch");b.appendChild(this.view);setTimeout(function(){a.view.classList.add("gmedia_v2_ColectionSliderActivate")},30)},intitByTerm:function(a,b){b&&(this.startItemId=b);this.term=a;var d=this;e(d.appName).appEventManager.addGMEventListener("COLLECTION_DATA_REDY",
|
51 |
-
d,"dataLoaded");this.intitByTermDelay=setTimeout(function(){d.showPreloader(!0);f.request(JSON.stringify({library:a.query}),d,"COLLECTION_DATA_REDY")},300)},dataLoaded:function(a){if(a=a.params.data){try{var b=JSON.parse(a);b.key&&""!=b.key?e(this.appName).key=b.key:(e(this.appName).tv=document.createElement("div"),e(this.appName).tv.style.position="absolute",e(this.appName).tv.style.height="24px",e(this.appName).tv.innerHTML='<a href="http://bit.ly/2snVAca" style="background-color: rgba(0, 0, 0, 0.8) !important;position: relative !important;left: auto!important;right: auto!important;top: auto!important;bottom: auto!important;width:auto!important;height:auto!important;text-indent:0!important;overflow:visible!important;display:block!important;padding: 4px 10px!important;margin:0 0 -3em 0!important;font-size:14px!important;line-height:120%!important;color:#FFFFFF!important;font-weight:bold!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;">Trial version - Gmedia WP Plugin</a>');
|
52 |
-
b.data&&this.addItemsToCollection(b.data)}catch(d){A(d)}this.showPreloader(!1)}},addItemsToCollection:function(a){for(var b=[],d=0,c=0;c<a.length;c++){var k=f.Item(a[c],this.appName);this.startItemId&&k.ID==this.startItemId&&(d=c);b.push(k)}this.term.itemsList=b;this.initByList(this.term.itemsList,d)},initByList:function(a,b){if(a&&0<a.length){var d=this;this.currentItemIndex=b&&0!==b?0:void 0;this.startItemIndex=b?b:0;this.itemsList=a;this.createlayoutDelay=setTimeout(function(){d.createLayout()},
|
53 |
-
400)}},prepareToRemove:function(){if(!this.removing){clearTimeout(this.createlayoutDelay);clearTimeout(this.intitByTermDelay);var a=this.scrollViewTranslateY/(this.size.height/2);this.pageInFocus&&this.pageInFocus.isSubContentActiv&&.2>a?"videoStop"==this.pageInFocus.action("click")&&(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow):(this.removing=!0,f.cacherItemsList.init(),e(this.appName).appEventManager.removeGMEventListener("COLLECTION_DATA_REDY",this,"dataLoaded"),window.removeEventListener("wheel",
|
54 |
-
this.handlerMWheel,!1),document.removeEventListener("keydown",this.handlerKB,!0),document.removeEventListener("contextmenu",this.copyR,!1),e(this.appName).appEventManager.removeGMEventListener("FULLSCREEN_SWITCH",this,"fullscreenSwitch"),this.delegate.itemsCountersUpdate(),this.subMenu&&this.showSubmenu&&(this.subMenu.style.transition="0s",this.needShowSubmenu(!1)),f.enableBodyScrollSlider(),this.view.classList.remove("gmedia_v2_ColectionSliderActivate"),document.getElementById("gmAudioPlayer")&&
|
55 |
-
document.getElementById("gmAudioPlayer").pause(),e(this.appName).appEventManager.dispatchGMEvent(f.GMEvent("REMOVE_LIGHTBOX",this)))}},deHandler:function(a){var b=this;b.handlerKB=function(a){if(b.startDragHandler||27==a.keyCode)switch(a.keyCode){case 37:b.gotoPrev();break;case 39:b.gotoNext();break;case 27:if(b.delegate.modal){b.delegate.modal.prepareToRemove();break}b.prepareToRemove();break;case 32:if(b.delegate.modal)b.delegate.modal.prepareToRemove();else return b.switchShowControlls(),b.needHideControlls=
|
56 |
-
!b.isControllsShow,f.preventDefault(a),!1}};return b.handlerKB},showPreloader:function(a){var b=void 0;a?document.getElementById(this.appName+"slider_preloader")||(b=f.createPreloaderView(f.hexToRgbaStrin(e(this.appName).sliderPreloaderColor,.7)),b.id=this.appName+"slider_preloader",this.view.appendChild(b)):(b=document.getElementById(this.appName+"slider_preloader"))&&f.fadeOut(b,function(){b&&b.parentNode&&b.parentNode.removeChild(b)},500)},createLayout:function(){var a=this;this.itemsAmount=this.itemsList.length;
|
57 |
-
this.size=f.Size(a.view.clientWidth,a.view.clientHeight);f.miniScreen&&this.slider.classList.add("miniScreen");500>a.size.width&&(this.prevButton.classList.add("sliderNextPrevButtonsMiniScreen"),this.nextButton.classList.add("sliderNextPrevButtonsMiniScreen"));this.initSlider();this.thumbsBar&&(this.thumbsBar.initItemsList(this.itemsList),this.thumbsBar.selectThumbByIndex(this.itemIndex));700>a.size.height&&this.slider.classList.add("miniScreen");window.addEventListener("wheel",a.mouseWheelHandler(),
|
58 |
-
!1);setTimeout(function(){a.showControlls(!0)},500)},set itemIndex(a){this._itemNum=a;this.updateControlls()},get itemIndex(){return this._itemNum},initSlider:function(){var a;if(0==this.sliderPages.length)for(a=0;3>a;a++){var b=new n(this);this.slider.appendChild(b.view);this.sliderPages.push(b);b.resize()}var d=2<this.itemsAmount?-1:0;for(a=0;3>a;a++)b=this.sliderPages[a],b.posX=d,b.itemIndex=void 0,d+=1;this.startDragHandler?this.gotoPageByNum(0):(this.startDragHandler=this.startDrag(),this.slider.addEventListener("touchstart",
|
59 |
-
this.startDragHandler,v),this.slider.addEventListener("mousedown",this.startDragHandler,!1),this.gotoPageByNum(this.startItemIndex))},set scrollViewTranslateY(a){this._scrollViewTranslateY=a;this.slider.style.transform="translate3d("+this.scrollViewTranslateX+"px,"+a+"px, 0px";0!=a&&this.sliderVerticalRender()},get scrollViewTranslateY(){return this._scrollViewTranslateY},set scrollViewTranslateX(a){this._scrollViewTranslateX=a;this.slider.style.transform="translate3d("+a+"px,"+this.scrollViewTranslateY+
|
60 |
-
"px, 0px";this.pageRenderByIndex(-Math.round(a/this.size.width))},get scrollViewTranslateX(){return this._scrollViewTranslateX},sliderVerticalRender:function(){var a=1-Math.abs(this.scrollViewTranslateY)/(this.size.height/2);this.background.style.opacity=a;this.needHideControlls||(.8>a?this.showControlls(!1):this.showControlls(!0))},tryOpenItemID:function(a){for(var b=0;b<this.term.itemsList.length;b++)if(this.term.itemsList[b].ID==a)return this.gotoPageByNum(b),!0;return!1},gotoPageByNum:function(a){!this.itemIndex&&
|
61 |
-
0!==this.itemIndex||!this.currentItemIndex?this.gotoPageByIndex(a,!0):this.gotoPageByIndex(this.currentItemIndex-(this.itemIndex-a))},gotoNext:function(){this.gotoPageByIndex(this.currentItemIndex+1)},gotoPrev:function(){this.gotoPageByIndex(this.currentItemIndex-1)},renderTransformTo:function(a){function b(){c=.2*c+.15*(a.x-d.scrollViewTranslateX);f=.2*f+.15*(a.y-d.scrollViewTranslateY);d.scrollViewTranslateX+=c;d.scrollViewTranslateY+=f;1>Math.abs(c)&&1>Math.abs(f)&&(d.dragging=!1);.1>Math.abs(c)&&
|
62 |
-
.1>Math.abs(f)?(q(d.animaSliderRender),d.scrollViewTranslateX=a.x,d.scrollViewTranslateY=a.y,d.sliderTransitionComplete({target:d.slider})):d.animaSliderRender=t(b)}var d=this;q(d.animaSliderRender);var c=5*d.speedX,f=5*d.speedY;d.animaSliderRender=t(b)},gotoPageByIndex:function(a,b){3>this.itemsAmount&&(a=Math.max(0,a),a=Math.min(this.itemsAmount-1,a));2<Math.abs(this.currentItemIndex-a)&&(b=!0);a=-a*this.size.width;b?(this.scrollViewTranslateX=a,this.sliderTransitionComplete({target:this.slider})):
|
63 |
-
this.renderTransformTo(f.Point(a,this.scrollViewTranslateY))},pageRenderByIndex:function(a){if(this.currentItemIndex!==a){void 0!==this.pageInFocus&&(this.pageInFocusPrev=this.pageInFocus,this.pageInFocus.isInScale&&(this.zoomingPage=this.pageInFocus));var b;if(3>this.itemsAmount){for(b=0;b<this.itemsAmount;b++)this.sliderPages[b].initByItem(this.itemsList[b]);this.pageInFocus=this.sliderPages[a];this.itemIndex=this.currentItemIndex=a}else{var d=(a+1)%3;0>d&&(d+=3);var c=0<=d-1?d-1:2,f=3>d+1?d+1:
|
64 |
-
0,h=[c,d,f],e=[a-1,a,a+1];for(b=0;b<h.length;b++)this.sliderPages[h[b]].posX=e[b];this.currentItemIndex=a;this.pageInFocus=this.sliderPages[d];this.itemIndex=0>a?this.itemsAmount+(0==a%this.itemsAmount?-this.itemsAmount:a%this.itemsAmount):a%this.itemsAmount;this.sliderPages[d].initByItem(this.itemsList[this.itemIndex]);this.sliderPages[f].initByItem(this.itemIndex+1<this.itemsAmount?this.itemsList[this.itemIndex+1]:this.itemsList[0]);this.sliderPages[c].initByItem(0>this.itemIndex-1?this.itemsList[this.itemsAmount-
|
65 |
-
1]:this.itemsList[this.itemIndex-1])}}},sliderTransitionComplete:function(a){a.target==this.slider&&(a=f.cacherItemsList.status(),(a.list!==this.itemsList||a.list===this.itemsList&&this.itemIndex>=a.index)&&f.cacherItemsList.init(this.itemsList,this.itemIndex,5),void 0!==this.pageInFocusPrev&&this.pageInFocusPrev.action("removeSubContent"),void 0!==this.zoomingPage&&this.zoomingPage!==this.pageInFocus&&this.zoomingPage.normalize())},mouseWheelHandler:function(a){var b=this,d=0,c=0,k=void 0;b.handlerMWheel=
|
66 |
-
function(a){a.stopPropagation();var e=f.Point(0,0);if("deltaX"in a)1===a.deltaMode?(e.x=18*a.deltaX,e.y=18*a.deltaY):(e.x=a.deltaX,e.y=a.deltaY);else if("wheelDelta"in a)a.wheelDeltaX&&(e.x=-.16*a.wheelDeltaX),e.y=a.wheelDeltaY?-.16*a.wheelDeltaY:-.16*a.wheelDelta;else if("detail"in a)e.y=a.detail;else return;var h=b.size.width/2,g=b.size.height/2;a.pageX&&(h=a.pageX,g=a.pageY);h-=b.viewOfsetX;g-=b.viewOfsetY;if(!b.dragging){k!==b.pageInFocus&&(k=void 0);b.zoomingPage&&b.zoomingPage!==b.pageInFocus&&
|
67 |
-
(b.zoomingPage.normalize(),b.zoomingPage=void 0);k||(b.needHideControlls=b.isControllsShow,k=b.zoomingPage=b.pageInFocus);if(h!=d||g!=c)k.startDrag(f.Point(h,g)),d=h,c=g;k.zoomByScaleIter(e.y,f.Point(h,g));k.isInScale?b.showControlls(!1):(b.showControlls(b.needHideControlls),k=void 0)}};return b.handlerMWheel},doubleClickController:function(a){if(!f.Device.ios||"mouseup"!=a.type){var b=void 0,d=void 0;a.changedTouches&&a.changedTouches[0]?(b=a.changedTouches[0].pageX,d=a.changedTouches[0].pageY):
|
68 |
-
(b=a.pageX,d=a.pageY);b-=this.viewOfsetX;d-=this.viewOfsetY;var c=this.pageInFocus.is_pointInItem(f.Point(b,d)),e=this;this.firsrTap?(clearTimeout(this.firsrTap),this.firsrTap=void 0,c&&(this.pageInFocus.isInScale?(e.showControlls(e.needHideControlls),this.pageInFocus.normalize(!0),this.zoomingPage=void 0):(this.zoomingPage&&this.zoomingPage.normalize(),this.zoomingPage=this.pageInFocus,this.zoomingPage.zoomIn(.3>Math.abs(this.zoomingPage.imgScale-1)?1.5:this.zoomingPage.imgScale,f.Point(b,d)),this.zoomingPage.isInScale&&
|
69 |
-
(e.needHideControlls=e.isControllsShow,e.showControlls(!1))))):this.firsrTap=setTimeout(function(){e.firsrTap=void 0;if(c||f.miniScreen)if(e.pageInFocus.isInScale)e.pageInFocus.normalize(!0),e.showControlls(e.needHideControlls),e.zoomingPage=void 0;else switch(e.pageInFocus.action("click")){case "videoPlay":e.showControlls(!1);e.needHideControlls=!e.isControllsShow;break;case "videoStop":e.switchShowControlls();e.needHideControlls=!e.isControllsShow;break;default:e.switchShowControlls(),e.needHideControlls=
|
70 |
-
!e.isControllsShow}else e.prepareToRemove()},300)}},startDrag:function(a){function b(a){a.originalEvent&&(a=a.originalEvent);a.preventDefault();if(a.touches)if(!c.dragging&&1<a.touches.length){p=!0;var b=a.touches[0].pageX;var d=a.touches[0].pageY;var e=a.touches[1].pageX;a=a.touches[1].pageY;var k=Math.hypot(b-e,d-a);b+=(e-b)/2;d+=(a-d)/2}else p=!1,b=a.touches[0].pageX,d=a.touches[0].pageY;else b=a.pageX,d=a.pageY;b-=z;d-=t;if(!(f.Device.ios&&20>=h))if(void 0===l&&(d===g?l=!1:(e=180*Math.atan2(Math.abs(d-
|
71 |
-
g),Math.abs(b-h))/Math.PI,l=45<e)),!c.dragging&&c.zoomingPage){e=4<Math.abs(h-b)?h-b:0;a=4<Math.abs(g-d)?g-d:0;if(e||a)c.zoomingDrag=!0;p?c.pageInFocus.zoomByScaleDeltaToPoint(k,f.Point(e,a),f.Point(b,d)):c.zoomingPage&&c.zoomingPage.dragin(f.Point(e,a))}else if(l){w=0;if(b=4<Math.abs(g-d)?g-d:0)c.dragging=!0;c.scrollViewTranslateY=n-b}else{c.transition=!0;if(b=4<Math.abs(h-b)?h-b:0)c.dragging=!0;c.scrollViewTranslateX=m-b;y=x;x=c.scrollViewTranslateX;w=x-y}}function d(a){a.preventDefault();l=void 0;
|
72 |
-
f.is_touch_device&&(document.removeEventListener("touchmove",b,v),document.removeEventListener("touchend",d,v));document.removeEventListener("mousemove",b,!1);document.removeEventListener("mouseup",d,!1);document.removeEventListener("oncontextmenu",d,!1);c.dragging||p||c.zoomingDrag?(c.zoomingPage?(c.zoomingPage.stopDrag(),p=!1):4>Math.abs(c.scrollViewTranslateY)?(a=c.currentItemIndex,Math.abs(w)>(f.is_touch_device?7:3)&&e==c.currentItemIndex&&(a=0<w?a-1:a+1),c.speedX=w,c.scrollViewTranslateY=0,c.gotoPageByIndex(a)):
|
73 |
-
.2<Math.abs(c.scrollViewTranslateY/(c.size.height/2))?c.prepareToRemove():c.renderTransformTo(f.Point(c.scrollViewTranslateX,0)),this.dragging=!1):c.doubleClickController(a);c.zoomingDrag=!1}var c=this,e=void 0,h=void 0,g=void 0,m=void 0,n=void 0,l=void 0,p=void 0,r=void 0,t=c.viewOfsetY,z=c.viewOfsetX,w=0,y=0,x=0;return function(a){c.zoomingPage=c.pageInFocus.isInScale?c.pageInFocus:void 0;q(c.animaSliderRender);e=c.currentItemIndex;a.preventDefault();a.originalEvent&&(a=a.originalEvent);if(!a.button||
|
74 |
-
0===a.button){if(a.touches)if(!c.dragging&&1<a.touches.length){p=!0;var k=a.touches[0].pageX;var l=a.touches[0].pageY;var u=a.touches[1].pageX;a=a.touches[1].pageY;r=Math.hypot(k-u,l-a);k+=(u-k)/2;l+=(a-l)/2;c.zoomingPage=c.pageInFocus;c.needHideControlls=c.isControllsShow;c.showControlls(!1)}else k=a.touches[0].pageX,l=a.touches[0].pageY;else k=a.pageX,l=a.pageY;k-=z;l-=t;y=w=c.speedX=c.speedY=0;x=c.scrollViewTranslateX;h=k;g=l;m=c.scrollViewTranslateX;n=c.scrollViewTranslateY;c.zoomingPage&&c.zoomingPage.startDrag(f.Point(h,
|
75 |
-
g),r);f.is_touch_device&&(document.addEventListener("touchmove",b,v),document.addEventListener("touchend",d,v));document.addEventListener("mousemove",b,!1);document.addEventListener("mouseup",d,!1);document.addEventListener("oncontextmenu",d,!1)}}},audioPlayerHandler:function(a){this.thumbsBar&&this.thumbsBar.changeAudioStatusForIndex(this.itemIndex,a)},createControlls:function(){function a(a){a.style.backgroundColor=e(d.appName).sliderNavigationIconColor;a.childNodes[0].style.stroke=e(d.appName).sliderNavigationColor}
|
76 |
-
function b(a){a.style.backgroundColor=e(d.appName).sliderNavigationColor;a.childNodes[0].style.stroke=e(d.appName).sliderNavigationIconColor}var d=this;this.prevButton=document.createElement("div");this.prevButton.className="sliderNextPrevButtons";this.prevButton.style.left="0px";this.prevButton.style.transform="translateX(-120%)";this.prevButton.style.backgroundColor=e(this.appName).sliderNavigationColor;this.prevButton.style.visibility="hidden";this.prevButton.innerHTML='<svg height="128px" id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 128 128" width="128px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="57.12" x2="17.787" y1="103.334" y2="64"/><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="17.787" x2="57.12" y1="64" y2="24.666"/></g><line style="stroke-width:12;stroke-miterlimit:10;" x1="17.787" x2="118.213" y1="64" y2="64"/></g></svg>';
|
77 |
-
this.prevButton.childNodes[0].style.stroke=e(this.appName).sliderNavigationIconColor;this.prevButton.onmouseover=function(){a(this)};this.prevButton.onmouseout=function(){b(this)};this.prevButton.onclick=function(){d.gotoPrev();f.Device.desktop||b(this)};this.view.appendChild(this.prevButton);this.nextButton=document.createElement("div");this.nextButton.className="sliderNextPrevButtons";this.nextButton.style.backgroundColor=e(this.appName).sliderNavigationColor;this.nextButton.style.right="0px";this.nextButton.style.transform=
|
78 |
-
"translateX(120%)";this.nextButton.style.visibility="hidden";this.nextButton.innerHTML='<svg height="128px" id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 128 128" width="128px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="70.88" x2="110.213" y1="24.666" y2="64"/><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="110.213" x2="70.88" y1="64" y2="103.334"/></g><line style="stroke-width:12;stroke-miterlimit:10;" x1="110.213" x2="9.787" y1="64" y2="64"/></g></svg>';
|
79 |
-
this.nextButton.childNodes[0].style.stroke=e(this.appName).sliderNavigationIconColor;this.nextButton.onmouseover=function(){a(this)};this.nextButton.onmouseout=function(){b(this)};this.nextButton.onclick=function(){d.gotoNext();f.Device.desktop||b(this)};this.view.appendChild(this.nextButton);e(this.appName).sliderThumbBarEnable&&(this.thumbsBar=new p(this),this.footer.appendChild(this.thumbsBar.view));this.view.appendChild(this.footer);this.view.appendChild(this.header);this.infoBox1=document.createElement("div");
|
80 |
-
this.infoBox1.className="gmInfoBox1";this.header.appendChild(this.infoBox1);if(this.delegate.itemMenuConstructor){var c={};c.backgroundColor=e(this.appName).sliderThumbSubMenuBackgroundColor;c.backgroundColorOver=e(this.appName).sliderThumbSubMenuBackgroundColorOver;c.iconColor=e(this.appName).sliderThumbSubMenuIconColor;c.iconColorOver=e(this.appName).sliderThumbSubMenuIconHoverColor;this.itemMenu=this.delegate.itemMenuConstructor(this.delegate,f,c,!0)}this.buttonsBox=document.createElement("div");
|
81 |
-
this.buttonsBox.className="gmInfoBox1";this.buttonsBox.style.float="right";this.buttonsBox.appendChild(this.itemMenu.view);this.header.appendChild(this.buttonsBox);this.closeButton=document.createElement("div");this.closeButton.setAttribute("type","close");this.closeButton.className="sliderItemsButtons";this.closeButton.innerHTML='<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>';
|
82 |
-
this.closeButton.style.backgroundColor=e(this.appName).sliderNavigationColor;this.closeButton.childNodes[0].style.fill=e(this.appName).sliderNavigationIconColor;this.buttonsBox.appendChild(this.closeButton);this.closeButton.onmouseover=function(){this.style.backgroundColor=e(d.appName).sliderNavigationIconColor;this.childNodes[0].style.fill=e(d.appName).sliderNavigationColor};this.closeButton.onmouseout=function(){this.style.backgroundColor=e(d.appName).sliderNavigationColor;this.childNodes[0].style.fill=
|
83 |
-
e(d.appName).sliderNavigationIconColor};this.closeButton.addEventListener("click",function(){this.parentNode==d.buttonsBox&&d.prepareToRemove()},!1);f.miniScreen&&(this.infoBox2=document.createElement("div"),this.infoBox2.className="gmInfoBox1",this.infoBox2.style.width="100%",this.footer.appendChild(this.infoBox2),this.header.appendChild(this.buttonsBox),this.buttonsBox.style.float="none",this.infoBox1.style.float="none");this.titleItem=document.createElement("div");this.titleItem.className="gmedia_v2_ColectionSliderItemTitle";
|
84 |
-
this.titleItem.style.fontSize=e(this.appName).sliderItemTitleFontSize+"px";this.titleItem.style.color=e(this.appName).sliderItemTitleTextColor;f.miniScreen&&(this.titleItem.classList.add("gmedia_v2_ColectionSliderItemTitleMiniScreen"),this.titleItem.style.fontSize="20px",this.titleItem.style.borderBottom="solid 1px "+f.hexToRgbaStrin(e(this.appName).sliderNavigationIconColor,.3));this.infoBox1.appendChild(this.titleItem);this.titleTerm=document.createElement("div");this.titleTerm.className="gmedia_v2_ColectionSliderItemTitle";
|
85 |
-
this.titleTerm.style.fontSize=e(this.appName).sliderItemTitleFontSize/2+"px";this.titleTerm.style.color=f.hexToRgbaStrin(e(this.appName).sliderItemTitleTextColor,.7);this.titleTerm.classList.add("gmedia_v2_ColectionSliderTermTitle");f.miniScreen?(this.titleTerm.classList.add("gmedia_v2_ColectionSliderTermTitleMiniScreen"),this.titleTerm.style.fontSize="15px",this.infoBox2.appendChild(this.titleTerm)):(this.titleTerm.style.fontSize=e(this.appName).sliderItemTitleFontSize/2+"px",this.infoBox1.appendChild(this.titleTerm))},
|
86 |
-
fullscreenSwitch:function(a){f.toggleFullScreen(this.view)},switchShowControlls:function(){this.showControlls(!this.isControllsShow)},showControlls:function(a,b){this.isControllsShow!=a&&(b?(this.header.classList.add("gmNoneTransition"),this.footer.classList.add("gmNoneTransition"),this.prevButton.classList.add("gmNoneTransition"),this.nextButton.classList.add("gmNoneTransition")):(this.header.classList.remove("gmNoneTransition"),this.footer.classList.remove("gmNoneTransition"),this.prevButton.classList.remove("gmNoneTransition"),
|
87 |
-
this.nextButton.classList.remove("gmNoneTransition")),a?(this.header.classList.add("gmedia_v2_SlidesHeaderActivate"),this.footer.classList.add("gmedia_v2_SlidesFooterActivate"),this.prevButton.style.transform="translateX(0%)",this.nextButton.style.transform="translateX(0%)"):(this.header.classList.remove("gmedia_v2_SlidesHeaderActivate"),this.footer.classList.remove("gmedia_v2_SlidesFooterActivate"),this.prevButton.style.transform="translateX(-120%)",this.nextButton.style.transform="translateX(120%)"),
|
88 |
-
this.isControllsShow=a)},updateControlls:function(){3>this.itemsAmount?(this.prevButton.style.visibility=0==this.itemIndex?"hidden":"visible",this.nextButton.style.visibility=this.itemIndex==this.itemsAmount-1?"hidden":"visible",1==this.itemsAmount&&(this.prevButton.style.visibility="hidden",this.nextButton.style.visibility="hidden")):(this.prevButton.style.visibility="visible",this.nextButton.style.visibility="visible");var a=this.itemsList[this.itemIndex];a&&(this.titleItem.innerHTML=a.title?a.title:
|
89 |
-
"",this.titleTerm.textContent=this.itemIndex+1+" / "+this.itemsAmount,this.itemMenu&&this.itemMenu.updateForItem(a),this.thumbsBar&&this.thumbsBar.selectThumbByIndex(this.itemIndex),this.delegate.modal&&("info"==this.delegate.modal.type?e(this.appName).appEventManager.dispatchGMEvent(f.GMEvent("NEED_MODAL",this,{type:"info",item:a})):this.delegate.modal.prepareToRemove()),this.delegate.viewItem=a)},resizeHandler:function(){var a=this;this.resizeDelay&&clearTimeout(this.resizeDelay);this.resizeDelay=
|
90 |
-
setTimeout(function(){a.size=f.Size(a.view.clientWidth,a.view.clientHeight);410>a.size.height&&(a.showControlls(!1,!0),a.needHideControlls=!0);500>a.size.width?(a.prevButton.classList.add("sliderNextPrevButtonsMiniScreen"),a.nextButton.classList.add("sliderNextPrevButtonsMiniScreen")):(a.prevButton.classList.remove("sliderNextPrevButtonsMiniScreen"),a.nextButton.classList.remove("sliderNextPrevButtonsMiniScreen"));a.itemMenu&&a.itemMenu.resizeHandler();for(var b=0;b<a.sliderPages.length;b++)a.sliderPages[b].resize();
|
91 |
-
a.gotoPageByIndex(a.currentItemIndex,!0);a.thumbsBar&&a.thumbsBar.updateView()},200)}};return new l(g)};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/js/script.js
CHANGED
@@ -1,90 +1 @@
|
|
1 |
-
function amron_module(){function r(){this._device=function(){var a=window,b=a.navigator.userAgent,d={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:a.cordova||a.phonegap,phonegap:a.cordova||a.phonegap},e=b.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),f=b.match(/(Android);?[\s\/]+([\d.]+)?/),m=b.match(/(iPad).*OS\s([\d_]+)/),g=b.match(/(iPod)(.*OS\s([\d_]+))?/),k=!m&&b.match(/(iPhone\sOS|iOS)\s([\d_]+)/);e&&(d.os="windows",d.osVersion=e[2],d.windows=!0);f&&
|
2 |
-
!e&&(d.os="android",d.osVersion=f[2],d.android=!0,d.androidChrome=0<=b.toLowerCase().indexOf("chrome"));if(m||k||g)d.os="ios",d.ios=!0;k&&!g&&(d.osVersion=k[2].replace(/_/g,"."),d.iphone=!0);m&&(d.osVersion=m[2].replace(/_/g,"."),d.ipad=!0);g&&(d.osVersion=g[3]?g[3].replace(/_/g,"."):null,d.iphone=!0);d.ios&&d.osVersion&&0<=b.indexOf("Version/")&&"10"===d.osVersion.split(".")[0]&&(d.osVersion=b.toLowerCase().split("version/")[1].split(" ")[0]);d.desktop=!(d.os||d.android||d.webView);d.webView=(k||
|
3 |
-
m||g)&&b.match(/.*AppleWebKit(?!.*Safari)/i);d.os&&"ios"===d.os&&(b=d.osVersion.split("."),e=document.querySelector('meta[name="viewport"]'),d.minimalUi=!d.webView&&(g||k)&&(7===1*b[0]?1<=1*b[1]:7<1*b[0])&&e&&0<=e.getAttribute("content").indexOf("minimal-ui"));d.pixelRatio=a.devicePixelRatio||1;return d}();this._mouseDetected=!1;var a=function(c){window.removeEventListener("mousedown",a,!1);window.removeEventListener("touchstart",a,!1);"touchstart"==c.type?(c.stopPropagation(),this._mouseDetected=
|
4 |
-
!1):this._mouseDetected=!0};window.addEventListener("mousedown",a,!1);window.addEventListener("touchstart",a,!1);this.cacherItemsList=this.CacheItemsList()}function t(a){this.delegate=a;this.appName=a.appName;this.id=this.appName+"_tag_";this.view=document.createElement("div");this.view.className="gmedia_amron_CollectionTagsCloud";this.list=document.createElement("ul");this.view.appendChild(this.list)}function u(a,c){this.delegate=a;this.appName=a.appName;this.index=c;this.view=document.createElement("div");
|
5 |
-
this.view.className="gmedia_amron_MasonryThumbPint";this.view.style.padding=e(this.appName).thumbSpacing/2+"px";this.imageHolder=document.createElement("div");this.imageHolder.className="gmedia_imageHolder";this.view.appendChild(this.imageHolder);this._size=k.Size(1,1);this.item=void 0;this.imageRetio=1;this.opacityDelay=void 0;this._display="none"}function q(a,c){this.delegate=a;this.appName=c;this.properties=void 0;this.itemsList=[];this.filteredList=[];this.presentedList=[];this.page_Amount=0;
|
6 |
-
this.scrollHandler=this.cureantPage=void 0;this.terms=[];this.term=void 0;this.tagsCloud=e(this.appName).tagsFilter?{0:e(this.appName).tagCloudAll}:void 0;this._filter=0;this.view=document.createElement("div");this.header=document.createElement("div");this.headerNavi=document.createElement("div");this.content=document.createElement("div");this.footer=document.createElement("div");this.tagsCloudView=void 0;this.header.className="gm_header";this.content.className="gm_content";this.footer.className=
|
7 |
-
"gm_footer";this.headerNavi.classList="gm_navi";this.header.appendChild(this.headerNavi);this.view.appendChild(this.header);this.view.appendChild(this.content);this.view.appendChild(this.footer);this.resizeTimeOut=void 0;this.viewWidth=0}function p(a,c){q.apply(this,arguments);this.view.className="gmedia_amron_MasonryCollection";this.header.style.padding="0 "+e(c).thumbSpacing/2+"px";this.content.style.paddingBottom=e(c).thumbSpacing+"px";this.columnsArr=[]}function v(a,c,b){k.copyProperties(a,this);
|
8 |
-
if(this.appApi){this.appName=c;this.appDiv=b;this.modal=void 0;this.collectionTranslateY=0;if(a=this.settings)e(this.appName).appApi=this.appApi,e(this.appName).post_url=a.post_url,e(this.appName).galleryID="gm"+b.getAttribute("data-gmid"),e(this.appName).appEventManager=k.GMEventsManager(),e(this.appName).key=!0,e(this.appName).lightBoxEnable="1"==a.lightBoxEnable?!0:!1,e(this.appName).thumbSpacing=parseInt(a.thumbSpacing),e(this.appName).collectionPreloaderColor="#"+a.collectionPreloaderColor,e(this.appName).linkTargetWindow=
|
9 |
-
a.linkTargetWindow,e(this.appName).infoBarTermsClickNewPageEnable="1"==a.infoBarTermsClickNewPageEnable?!0:!1,e(this.appName).tagsFilter="1"==a.tagsFilter?!0:!1,e(this.appName).tagCloudAll=a.tagCloudAll,e(this.appName).tagCloudTextColor="#"+a.tagCloudTextColor,e(this.appName).tagCloudBgColor="#"+a.tagCloudBgColor,e(this.appName).collectionThumbRecomendedWidth=parseInt(a.collectionThumbRecomendedWidth),e(this.appName).collectionThumbHoverColor=a.collectionThumbHoverColor,e(this.appName).collectionThumbContentBGColor=
|
10 |
-
"rgba(245,245,245,1)",e(this.appName).collectionThumbTitleShow="1"==a.collectionThumbTitleShow?!0:!1,e(this.appName).collectionThumbTitleColor=a.collectionThumbTitleColor,e(this.appName).collectionThumbFontSize=parseInt(a.collectionThumbFontSize),e(this.appName).collectionThumbDescriptionShow="1"==a.collectionThumbDescriptionShow?!0:!1,e(this.appName).collectionThumbDescriptionColor=a.collectionThumbDescriptionColor,e(this.appName).collectionThumbDescriptionFontSize=parseInt(a.collectionThumbDescriptionFontSize),
|
11 |
-
e(this.appName).collectionThumbSubMenuBackgroundColor=a.collectionThumbSubMenuBackgroundColor,e(this.appName).collectionThumbSubMenuBackgroundColorOver=a.collectionThumbSubMenuBackgroundColorOver,e(this.appName).collectionThumbSubMenuIconColor=a.collectionThumbSubMenuIconColor,e(this.appName).collectionThumbSubMenuIconHoverColor=a.collectionThumbSubMenuIconHoverColor,e(this.appName).collectionReadMoreButtonBGColor=a.collectionReadMoreButtonBGColor,e(this.appName).collectionReadMoreButtonLabelColor=
|
12 |
-
a.collectionReadMoreButtonLabelColor,e(this.appName).collectionReadMoreButtonBGColorHover=a.collectionReadMoreButtonBGColorHover,e(this.appName).collectionReadMoreButtonLabelColorHover=a.collectionReadMoreButtonLabelColorHover,e(this.appName).collectionReadMoreButtonLabel=a.collectionReadMoreButtonLabel,e(this.appName).modaBgColor=a.modaBgColor,e(this.appName).modalInfoBoxBgColor=a.modalInfoBoxBgColor,e(this.appName).modalInfoBoxTitleTextColor="#"+a.modalInfoBoxTitleTextColor,e(this.appName).modalInfoBoxTextColor=
|
13 |
-
"#"+a.modalInfoBoxTextColor,e(this.appName).infoBarCountersEnable="1"==a.infoBarCountersEnable?!0:!1,e(this.appName).infoBarDateInfoEnable="1"==a.infoBarDateInfoEnable?!0:!1,e(this.appName).shareTitlePlaceHolder=a.shareTitlePlaceHolder,e(this.appName).sliderThumbBarEnable="1"==a.sliderThumbBarEnable?!0:!1,e(this.appName).sliderThumbBarHoverColor=a.sliderThumbBarHoverColor,e(this.appName).sliderPreloaderColor="#"+a.sliderPreloaderColor,e(this.appName).sliderBgColor=a.sliderBgColor,e(this.appName).sliderHeaderFooterBgColor=
|
14 |
-
"#"+a.sliderHeaderFooterBgColor,e(this.appName).sliderNavigationColor=a.sliderNavigationColor,e(this.appName).sliderNavigationIconColor=a.sliderNavigationIconColor,e(this.appName).sliderItemTitleFontSize=parseInt(a.sliderItemTitleFontSize),e(this.appName).sliderItemTitleTextColor="#"+a.sliderItemTitleTextColor,e(this.appName).sliderThumbSubMenuBackgroundColor=a.sliderThumbSubMenuBackgroundColor,e(this.appName).sliderThumbSubMenuBackgroundColorOver=a.sliderThumbSubMenuBackgroundColorOver,e(this.appName).sliderThumbSubMenuIconColor=
|
15 |
-
a.sliderThumbSubMenuIconColor,e(this.appName).sliderThumbSubMenuIconHoverColor=a.sliderThumbSubMenuIconHoverColor,e(this.appName).sliderInfoEnable="1"==a.sliderInfoEnable?!0:!1,e(this.appName).sliderItemDownload="1"==a.sliderItemDownload?!0:!1,e(this.appName).sliderItemDiscuss="1"==a.sliderItemDiscuss?!0:!1,e(this.appName).sliderSocialShareEnabled="1"==a.sliderSocialShareEnabled?!0:!1,e(this.appName).sliderLikesEnabled="1"==a.sliderLikesEnabled?!0:!1;this.audioPlayer=void 0;this.bookmarkStatusShow=
|
16 |
-
e(this.appName).bookmarkShowState;if(e){this.currentLocation=void 0;this.collections=[];this.terms={};this.appDiv.style.position="relative";this.appDiv.style.height="auto";this.appDivWidth=this.appDiv.clientWidth;b=new p(this,this.appName);this.collections.push(b);this.appDiv.appendChild(b.view);b.init();e(this.appName).appEventManager.addGMEventListener(l.EXT_SCRIPTS_READY,this,"externalScriptsReady");b=e(this.appName).module_url+"/js/components/";a=x.slice(0);for(var d in a)a[d]=b+a[d];k.loadExtScripts(a,
|
17 |
-
this,l.EXT_SCRIPTS_READY)}}}r.prototype={moduleSettings:function(a){return window[a]&&window[a].settings?window[a].settings:null},get passiveListener(){return this.isPassiveListener()?{passive:!1,capture:!1}:!1},isPassiveListener:function(){var a=!1;try{var c=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveListener",null,c)}catch(b){}return a},get requestAnimationFrame(){return window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
|
18 |
-
window.msRequestAnimationFrame},get cancelAnimationFrame(){return window.cancelAnimationFrame||window.mozCancelAnimationFrame},get whichTransitionEventEnd(){var a,c=document.createElement("fakeelement"),b={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(a in b)if(void 0!==c.style[a])return b[a]},get Device(){return this._device},get is_touch_device(){return navigator.maxTouchPoints||"ontouchstart"in window},get getScrollbarWidth(){var a=
|
19 |
-
document.createElement("div");a.style.visibility="hidden";a.style.width="100px";a.style.msOverflowStyle="scrollbar";document.body.appendChild(a);var c=a.offsetWidth;a.style.overflow="scroll";var b=document.createElement("div");b.style.width="100%";a.appendChild(b);b=b.offsetWidth;a.parentNode.removeChild(a);return c-b},get hasScrollbar(){if("number"===typeof window.innerWidth)return window.innerWidth>document.documentElement.clientWidth;var a=document.documentElement||document.body;if("undefined"!==
|
20 |
-
typeof a.currentStyle)var c=a.currentStyle.overflow;c=c||window.getComputedStyle(a,"").overflow;if("undefined"!==typeof a.currentStyle)var b=a.currentStyle.overflowY;b=b||window.getComputedStyle(a,"").overflowY;a=a.scrollHeight>a.clientHeight;var d=/^(visible|auto)$/.test(c)||/^(visible|auto)$/.test(b);return a&&d||"scroll"===c||"scroll"===b},get miniScreen(){return 500>window.screen.height||500>window.screen.width},get mouseDetected(){return this._mouseDetected},get youTubeCode(){return'<iframe src="https://www.youtube.com/embed/%id%?rel=0&showinfo=0&autoplay=1&wmode=transparent" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},
|
21 |
-
get vimeoCode(){return'<iframe src="https://player.vimeo.com/video/%id%?byline=0&portrait=0&autoplay=1" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},copyProperties:function(a,c){for(var b in a)c[b]=a[b]},Rect:function(a,c,b,d){return{x:a,y:c,width:b,height:d}},Size:function(a,c){return{width:a,height:c}},Point:function(a,c){return{x:a,y:c}},findHighestZIndex:function(a){for(var c=99999,b=0;b<a.childNodes.length;b++){var d=a.childNodes[b];if(1==d.nodeType&&
|
22 |
-
"SCRIPT"!=d.nodeName)var e=document.defaultView.getComputedStyle(d,null).getPropertyValue("z-index");e>c&&"auto"!=e&&(c=parseInt(e))}return c},timeConverter:function(a){a=new Date(1E3*a);var c=new Date,b=new Date(Date.now()-864E5),d=a.getFullYear(),e="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[a.getMonth()],f=a.getDate(),m=a.getHours(),g=a.getMinutes();return a.setHours(0,0,0,0)==c.setHours(0,0,0,0)?"Today, "+m+":"+g:a.setHours(0,0,0,0)==b.setHours(0,0,0,0)?"Yesterday, "+m+":"+g:
|
23 |
-
d==c.getFullYear()?f+" "+e+", "+d:f+" "+e+" "+d},createPreloaderView:function(a){var c=0,b=document.createElement("div");b.className="gmedia_v2_Preloader";var d=document.createElement("div");d.style.position="absolute";d.style.width="8px";d.style.height="8px";d.style.margin="-4px";d.style.left="50%";d.style.top="50%";d.style.borderRadius="50%";d.style.backgroundColor=a;b.appendChild(d);d=document.createElement("div");d.className="c-spinner";d.style.position="absolute";d.style.width="36px";d.style.height=
|
24 |
-
"36px";d.style.margin="-18px";d.style.left="50%";d.style.top="50%";for(var e=0;8>e;e++){var f=document.createElement("div");f.style.position="absolute";f.style.top="50%";f.style.left="50%";f.style.marginTop="-4px";f.style.marginLeft="-4px";f.style.width="8px";f.style.height="8px";f.style.backgroundColor=a;f.style.borderRadius="100%";f.style.transform="rotate("+c+"deg) translate(18px)";c+=45;d.appendChild(f)}b.appendChild(d);return b},trace:function(a){if(1==arguments.length)console.log(a);else{for(var c=
|
25 |
-
"",b=0;b<arguments.length;b++)c+=arguments[b]+", ";c=c.slice(0,-2);console.log(c)}},preventDefaultForScrollKeys:function(a){if({37:1,38:1,39:1,40:1}[a.keyCode])return a.preventDefault(),!1},preventDefault:function(a){a=a||window.event;a.preventDefault&&a.preventDefault();a.returnValue=!1},disableBodyScroll:function(){document.getElementsByTagName("html")[0].classList.add("gmedia_PopUpActive")},enableBodyScroll:function(){document.getElementsByTagName("html")[0].classList.remove("gmedia_PopUpActive")},
|
26 |
-
disableBodyScrollSlider:function(){window.addEventListener&&(window.addEventListener("wheel",this.preventDefault,this.passiveListener),window.addEventListener("mousewheel",this.preventDefault,this.passiveListener),window.addEventListener("touchmove",this.preventDefault,this.passiveListener));document.onkeydown=this.preventDefaultForScrollKeys},enableBodyScrollSlider:function(){window.removeEventListener&&(window.removeEventListener("wheel",this.preventDefault,this.passiveListener),window.removeEventListener("mousewheel",
|
27 |
-
this.preventDefault,this.passiveListener),window.removeEventListener("touchmove",this.preventDefault,this.passiveListener));document.onkeydown=null},collapseElementsInElemt:function(a,c){for(var b=[],d=0;d<a.childNodes.length;d++){var e={},f=a.childNodes[d];1==f.nodeType&&"SCRIPT"!=f.nodeName&&f!==c&&(e.element=f,e.height=null,e.overflow=null,""!=f.style.height&&(e.height=f.style.height),""!=f.style.overflow&&(e.overflow=f.style.overflow),b.push(e),f.style.overflow="hidden",f.style.height="0")}return b},
|
28 |
-
recoverElements:function(a){if(0!=a.length)for(var c=0;c<a.length;c++){var b=a[c].element;b&&(a[c].overflow?b.style.overflow=a[c].overflow:b.style.removeProperty("overflow"),a[c].height?b.style.height=a[c].height:b.style.removeProperty("height"))}},hexToRgbaStrin:function(a,c){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,e,f){return c+c+e+e+f+f});return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?"rgba("+parseInt(a[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+","+c+
|
29 |
-
")":null},getFrameForBoxWithMode:function(a,c,b){var d=a.width,e=a.height;a=c.width;c=c.height;b?b=Math.max(a/d,c/e):(b=Math.min(a/d,c/e),b=1<b?1:b);d=Math.round(d*b);e=Math.round(e*b);return this.Rect(Math.round((a-d)/2),Math.round((c-e)/2),d,e)},getItemFrameByIndexForBox:function(a,c,b,d,e,f){var h=1;f&&(h=f);e=Math.min(c,e);e=Math.floor(c/e);c=1<e?(c-(e-1)*b)/e:c;h*=c;f=Math.ceil((a+1)/e)-1;return this.Rect((a-f*e)*(c+b),f*(h+d),c,h)},fadeOut:function(a,c,b){function d(){var h=(new Date).getTime()-
|
30 |
-
f,g=h/b;1>g?(g=1-e(g),a.style.opacity=String(g),setTimeout(d,Math.min(25,b-h))):(a.style.opacity="0",c&&c())}b||(b=500);var e=Math.sqrt,f=(new Date).getTime();d()},ellipsizeTextBoxToLine:function(a,c){a.innerHTML=a.textContent||a.innerText||"";var b=a.innerHTML,d=a.innerHTML.split(" ");a.innerHTML=d[0].substring(0,3);c*=a.clientHeight;for(a.innerHTML=b;a.clientHeight>c;)d.pop(),a.innerHTML=d.join(" ")+" ..."},ellipsizeTextBox:function(a){a.innerHTML=a.textContent||a.innerText||"";for(var c=a.innerHTML.split(" ");a.scrollHeight>
|
31 |
-
a.offsetHeight;)c.pop(),a.innerHTML=c.join(" ")+" ..."},scrollToY:function(a,c){var b=window.pageYOffset,d=Math.PI/(c/15),e=b/2,f=0,m,g=setInterval(function(){window.pageYOffset>a?(f+=1,m=e-e*Math.cos(f*d),window.scrollTo(0,b-m)):clearInterval(g)},15)},toggleFullScreen:function(a){var c=document.webkitIsFullScreen||document.mozFullScreen||!1;a.requestFullScreen=a.requestFullScreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||function(){return!1};document.cancelFullScreen=document.cancelFullScreen||
|
32 |
-
document.webkitCancelFullScreen||document.mozCancelFullScreen||function(){return!1};c?document.cancelFullScreen():a.requestFullScreen()},loadExtScripts:function(a,c,b){for(var d=0,h=0;h<a.length;h++){var f=document.createElement("script");f.src=a[h];f.async=!0;f.onload=f.onreadystatechange=function(){d+=1;d==a.length&&e(c.appName).appEventManager.dispatchGMEvent(k.GMEvent(b,self))};document.body.appendChild(f)}},CacheItemsList:function(){function a(){b.cached+=1;c(b.lastIndex+1>=b.itemsList.length?
|
33 |
-
0:b.lastIndex+1)}function c(d){!b.itemsList||b.cached==b.itemsList.length&&!b.amount||b.amount&&b.cached>=b.amount||(b.amount&&(b.amount=Math.min(b.amount,b.itemsList.length)),b.currentItem=b.itemsList[d].webView,b.lastIndex=d,b.currentItem.complete?(b.cached+=1,c(b.lastIndex+1>=b.itemsList.length?0:b.lastIndex+1)):b.currentItem.addEventListener("load",a,!1))}var b={cached:0,itemsList:void 0,currentItem:void 0,amount:void 0,lastIndex:void 0,init:function(d,e,f){b.currentItem&&b.currentItem.removeEventListener("load",
|
34 |
-
a,!1);b.amount=f;b.cached=0;b.currentItem=void 0;b.lastIndex=e;b.itemsList=d;void 0===e&&(e=0);c(e)},status:function(){return{list:b.itemsList,index:b.lastIndex}}};return b},GMEventsManager:function(){return{_listenerSet:{},addGMEventListener:function(a,c,b){this._listenerSet[a]||(this._listenerSet[a]=[]);this._listenerSet[a].push({listener:c,handler:b})},removeGMEventListener:function(a,c,b){if(this._listenerSet[a])for(var d=0;d<this._listenerSet[a].length;d++)this._listenerSet[a][d].listener==c&&
|
35 |
-
this._listenerSet[a][d].handler==b&&(this._listenerSet[a].splice(d,1),d=this._listenerSet[a].length)},dispatchGMEvent:function(a){if(this._listenerSet[a.type])for(var c=this._listenerSet[a.type],b=0;b<c.length;b++){var d=c[b];if(d&&d.listener&&"function"==typeof d.listener[d.handler])d.listener[d.handler](a)}}}},GMEvent:function(a,c,b){var d={};d.type=a;d.params=b;d.target=c;return d},request:function(a,c,b,d){var e=this,f=new XMLHttpRequest;f.open("POST",this.moduleSettings(c.appName).appApi,!0);
|
36 |
-
f.onreadystatechange=function(){4==this.readyState&&(200!=this.status?b&&e.moduleSettings(c.appName).appEventManager.dispatchGMEvent(e.GMEvent(b,c,{error:this.statusText,params:d})):b&&e.moduleSettings(c.appName).appEventManager.dispatchGMEvent(e.GMEvent(b,c,{data:this.responseText,params:d})))};f.onerror=function(e){1==confirm("Failed to load resource: The network connection was lost. Let's try again?")&&request(a,c,b,d)};try{f.send(a),e.moduleSettings(c.appName).appEventManager.dispatchGMEvent(e.GMEvent(l.REQUEST_START,
|
37 |
-
c,null))}catch(m){e.trace(m)}},Item:function(a,c){var b={get webView(){if(this.webImg.src)return b.webImg;this.webImg.src=this.itemViewSrc;return this.webImg}};this.copyProperties(a,b);b.appName=c;b.idPrefix=void 0;b.webImg=new Image;b.webImgFrame=this.Rect(0,0,0,0);b.webImg.addEventListener("load",function(){this.classList.add("onLoad")},!1);if(b.link&&""!=b.link){a=b.link;var d;a.match(/youtu\.be/i)||a.match(/youtube\.com/i)?(c=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&\?]*).*/,
|
38 |
-
(a=a.match(c))&&11==a[7].length&&(d=a[7]),void 0!==d&&(b.mime_type="video/youtube",b.videoId=d,b.link=void 0)):a.match(/vimeo\.com/i)&&(c=/(www\.)?vimeo.com\/(\d+)($|\/)/,(a=a.match(c))&&(d=a[2]),void 0!==d&&(b.mime_type="video/vimeo",b.videoId=d,b.link=void 0))}"audio/mpeg"==b.mime_type&&(b.type="audio");"image"==b.mime_type.split("/")[0]&&(b.type="image");"video"==b.mime_type.split("/")[0]&&(b.type="video");b.hasTag=function(a){if("all"==a)return!0;if(!b.tags||0==b.tags.length)return!1;for(var c=
|
39 |
-
0;c<b.tags.length;c++)if(b.tags[c].term_id==a)return!0};b.itemViewSrc=b.meta?b.meta.web?b.meta.web.link:b.meta.original?b.meta.original.link:b.meta.thumb?b.meta.thumb.link:null:null;b.itemViewThumbSrc=b.meta?b.meta.thumb?b.meta.thumb.link:b.meta.web?b.meta.web.link:null:null;b.itemViewSize=b.meta?b.meta.web?this.Size(b.meta.web.width,b.meta.web.height):b.meta.original?this.Size(b.meta.original.width,b.meta.original.height):this.Size(300,300):this.Size(300,300);b.itemViewThumbSize=b.meta?b.meta.thumb?
|
40 |
-
this.Size(b.meta.thumb.width,b.meta.thumb.height):b.meta.web?this.Size(b.meta.web.width,b.meta.web.height):this.Size(300,300):this.Size(300,300);return b},Term:function(a,c){var b=this,d={set gmedia__in(a){this._query&&(this._query.gmedia__in=a.toString(),this._gmedia_in=a,this.count=a.length,"myCollection"==this.taxonomy&&this._query&&(this.sharelink=b.moduleSettings(c).post_url+"/?"+b.moduleSettings(c).galleryID+"[gmedia__in]="+this._query.gmedia__in))},get gmedia__in(){return this._gmedia_in},
|
41 |
-
get taxony_type(){switch(this.taxonomy){case "gmedia_album":return"albums";case "gmedia_category":return"categories";case "gmedia_tag":return"tags";case "myCollection":return"gmedia__in";default:return null}},get term_id(){return"myCollection"==this.taxonomy?this.taxony_type+"-"+this.gmedia__in.toString():this._term_id},set term_id(a){this._term_id=a},get query(){var a=void 0,b;if("myCollection"==this.taxonomy)return b={orderby:"gmedia__in",order:"ASC",gmedia__in:this._gmedia_in.toString()};switch(this.taxonomy){case "gmedia_album":a=
|
42 |
-
"album__in";break;case "gmedia_category":a="category__in";break;case "gmedia_tag":a="tag__in"}b={per_page:0,admin:!1,page:1};b[a]=[this.term_id];return b}};this.copyProperties(a,d);a.term_id&&(d._term_id=a.term_id);d.appName=c;d.key=void 0;d._gmedia_in=[];d.meta&&(a=this.Meta(d.meta,d.appName),d.meta=a);"gmedia_tag"==d.taxonomy&&(d.name="#"+d.name);"myCollection"==d.taxonomy&&d._query&&(d.gmedia__in=d._query.gmedia__in.split(","));return d},termDataByQueryNameId:function(a,c,b){if(!a.gmedia__in)return null;
|
43 |
-
var d=a.gmedia__in.split(",").length,e=a.orderby,f=a.order;return{count:d,name:c,meta:{_order:f,_orderby:e,order:f,orderby:e},taxonomy:"myCollection",term_id:b,_query:a}},termsListFromAppQuery:function(a){var c=[],b=void 0;if(a.album__in){var d=a.album__in.split(",");for(b in d)c.push({taxonomy_type:"albums",term_id:d[b]})}if(a.category__in)for(b in d=a.category__in.split(","),d)c.push({taxonomy_type:"categories",term_id:d[b]});if(a.tag__in)for(b in a=a.tag__in.split(","),a)c.push({taxonomy_type:"tags",
|
44 |
-
term_id:a[b]});return 0<c.length?c:void 0},Meta:function(a,c){var b={};this.copyProperties(a,b);b.appName=c;b._cover&&(b._cover=this.Item(a._cover,b.appName));a=b._cover?b._cover:null;b.cover=a;return b}};var x=["gm_vit_slider.js","gm_vit_itemMenu.js","gm_vit_modalWin.js?ver=2.1.0"],k=new r,y=k.trace,e=k.moduleSettings,l={REQUEST_START:"REQUEST_START",COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",COUNTERS_UPDATED:"COUNTERS_UPDATED",NEED_MODAL:"NEED_MODAL",NEED_LIGHTBOX:"NEED_LIGHTBOX",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX",
|
45 |
-
NEED_NEW_COLLECTION:"NEED_NEW_COLLECTION",NEED_PREV_COLLECTION:"NEED_PREV_COLLECTION",NEED_NEW_COLLECTION_BY_TERM:"NEED_NEW_COLLECTION_BY_TERM",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"};t.prototype={updateView:function(){var a=this.delegate.tagsCloud,c=[],b=[],d;for(d in a)"0"!=d&&c.push(a[d].toLowerCase());c.sort();c.splice(0,0,a["0"].toLowerCase());for(d=0;d<c.length;d++)for(var h in a)if(a[h].toLowerCase()==c[d]){var f=this.createTag(h,a[h]);b.push(f);this.list.appendChild(f);delete a[h]}this.selectedTag=
|
46 |
-
document.getElementById(this.id+this.delegate.filtredById);this.selectedTag.style.backgroundColor=e(this.appName).tagCloudTextColor;this.selectedTag.style.color=e(this.appName).tagCloudBgColor;this.selectedTag.style.cursor="default"},createTag:function(a,c){function b(a){var b=this.id.split("_")[this.id.split("_").length-1];if(d.selectedTag!=this)switch(a.type){case "click":d.selectedTag=document.getElementById(d.id+d.delegate.filtredById);d.selectedTag.style.color=e(d.appName).tagCloudTextColor;
|
47 |
-
d.selectedTag.style.backgroundColor=e(d.appName).tagCloudBgColor;d.selectedTag.style.cursor="pointer";d.delegate.filtred(b);d.selectedTag=document.getElementById(d.id+d.delegate.filtredById);d.selectedTag.style.cursor="default";break;case "mouseenter":this.style.backgroundColor=e(d.appName).tagCloudTextColor;this.style.color=e(d.appName).tagCloudBgColor;break;case "mouseleave":this!=d.selectedTag&&(this.style.color=e(d.appName).tagCloudTextColor,this.style.backgroundColor=e(d.appName).tagCloudBgColor)}}
|
48 |
-
var d=this,h=document.createElement("li");h.appendChild(document.createTextNode(c));h.id=this.id+a;h.style.color=e(this.appName).tagCloudTextColor;h.style.backgroundColor=e(this.appName).tagCloudBgColor;h.addEventListener("click",b,!1);h.addEventListener("mouseenter",b,!1);h.addEventListener("mouseleave",b,!1);return h}};u.prototype={init:function(){function a(a){if(e(f.appName).lightBoxEnable)switch(a.type){case "mouseenter":this.classList.add("gmedia_hover");k&&k.classList.add("gmedia_hover");break;
|
49 |
-
case "mouseleave":this.classList.remove("gmedia_hover");k&&k.classList.remove("gmedia_hover");break;case "click":this.classList.remove("gmedia_hover"),k&&k.classList.remove("gmedia_hover"),f.delegate.itemAction(f.index,"lightBox")}}function c(a){a.classList.remove("gmedia_hover");"like"==a.getAttribute("type")&&a.getAttribute("like")||"bookmark"==a.getAttribute("type")&&a.getAttribute("mark")?a.style.backgroundColor=w:(a.style.backgroundColor=w,a.childNodes[0].style.fill=l)}function b(a){"click"==
|
50 |
-
a.type?d&&(f.delegate.itemAction(f.index,this.getAttribute("type")),miniScreen&&c(this)):"mouseenter"==a.type?(this.classList.add("gmedia_hover"),this.style.backgroundColor=z,"bookmark"==this.getAttribute("type")&&this.getAttribute("mark")||(this.childNodes[0].style.fill=p)):"mouseleave"==a.type&&c(this)}var d=this.delegate.itemsList[this.index];this.item=d;var h=this.delegate.itemWidth;this.type=d.type;this.itemViewSrc=!1;this.img=new Image;var f=this;this.img.onload=function(){this.setAttribute("alt",
|
51 |
-
d.title);1.1<f.view.clientWidth/this.naturalWidth&&d.itemViewSrc&&!f.itemViewSrc&&(this.src=d.itemViewSrc,f.itemViewSrc=!0);f.imageHolder.style.minHeight=null;this.style.opacity="1"};this.imageHolder.appendChild(this.img);if(e(this.appName).lightBoxEnable){var k=document.createElement("div");k.className="gmedia_imageOver";k.style.backgroundColor=e(this.appName).collectionThumbHoverColor;this.imageHolder.appendChild(k);var g=document.createElement("div");g.className="gmedia_zoom";switch(this.item.type){case "video":"vimeo"==
|
52 |
-
this.item.mime_type.split("/")[1]?(g.classList.add("media"),g.innerHTML='<svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="0 0 56.693 56.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997 c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256 c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928 c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>',
|
53 |
-
g.firstChild.style.fill="#00adef"):(g.classList.add("media"),g.innerHTML='<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>',
|
54 |
-
g.firstChild.style.fill="#e02f2f");break;case "audio":g.classList.add("media");g.innerHTML='<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
55 |
-
g.firstChild.style.fill="#7a7a7a";break;default:g.innerHTML='<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>'}this.imageHolder.appendChild(g)}this.imageHolder.addEventListener("mouseenter",a,!1);this.imageHolder.addEventListener("mouseleave",
|
56 |
-
a,!1);this.imageHolder.addEventListener("click",a,!1);this.img.src=1.1<h/d.itemViewThumbSize.width?d.itemViewSrc:d.itemViewThumbSrc;this.imageRetio=d.itemViewSize.height/d.itemViewSize.width;this.imageHolder.style.minHeight=this.imageRetio*h+"px";h=document.createElement("div");h.className="gmedia_itemContent";h.style.backgroundColor=e(this.appName).collectionThumbContentBGColor;this.view.appendChild(h);g=void 0;e(this.appName).collectionThumbTitleShow&&d.title&&""!=d.title&&(g=document.createElement("div"),
|
57 |
-
g.className="gmedia_gmedia_itemTitle",g.style.fontSize=e(this.appName).collectionThumbFontSize+"px",g.style.color=e(this.appName).collectionThumbTitleColor,g.innerHTML=d.title,h.appendChild(g));e(this.appName).collectionThumbDescriptionShow&&d.description&&""!=d.description&&(g=document.createElement("div"),g.className="gmedia_itemDescription",g.style.fontSize=e(this.appName).collectionThumbDescriptionFontSize+"px",g.style.color=e(this.appName).collectionThumbDescriptionColor,g.innerHTML=d.description,
|
58 |
-
h.appendChild(g));g=document.createElement("div");g.className="gmedia_itemMenuHolder";var l=e(this.appName).collectionThumbSubMenuIconColor,w=e(this.appName).collectionThumbSubMenuBackgroundColor,z=e(this.appName).collectionThumbSubMenuBackgroundColorOver,p=e(this.appName).collectionThumbSubMenuIconHoverColor;if(d.link){var n=document.createElement("a");n.className="gmedia_itemReadMore";n.innerHTML=e(this.appName).collectionReadMoreButtonLabel;n.style.backgroundColor=e(this.appName).collectionReadMoreButtonBGColor;
|
59 |
-
n.style.color=e(this.appName).collectionReadMoreButtonLabelColor;n.setAttribute("target",e(this.appName).linkTargetWindow);n.setAttribute("href",d.link);n.onmouseenter=function(){this.style.backgroundColor=e(f.appName).collectionReadMoreButtonBGColorHover;this.style.color=e(f.appName).collectionReadMoreButtonLabelColorHover};n.onmouseleave=function(){this.style.backgroundColor=e(f.appName).collectionReadMoreButtonBGColor;this.style.color=e(f.appName).collectionReadMoreButtonLabelColor};n.addEventListener("click",
|
60 |
-
b,!1);g.appendChild(n)}0<g.childNodes.length&&h.appendChild(g)},resize:function(a){return this.view.clientHeight},updateSomeData:function(){},set mark(a){this.bookmarkButton&&(a?(this.bookmarkButton.getElementsByTagName("svg")[0].style.fill="red",this.bookmarkButton.setAttribute("mark","true")):(this.bookmarkButton.getElementsByTagName("svg")[0].style.fill=this.bookmarkButton.classList.contains("gmedia_hover")?e(this.appName).collectionThumbSubMenuIconHoverColor:e(this.appName).collectionThumbSubMenuIconColor,
|
61 |
-
this.bookmarkButton.removeAttribute("mark")))},get mark(){return this.bookmarkButton?!0:!1},set like(a){this.likeButton&&(a?(this.likeButton.getElementsByTagName("svg")[0].style.fill="red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.setAttribute("like","true")):(this.likeButton.childNodes[0].style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",this.likeButton.removeAttribute("like")))},get like(){return this.likeButton?
|
62 |
-
!0:!1},set visibility(a){this.view.style.visibility=a},set display(a){"none"==a&&clearTimeout(this.opacityDelay);this._display=this.view.style.display=a;this.updateSomeData()},get display(){return this._display},set opacity(a){var c=this;a.delay?this.opacityDelay=setTimeout(function(){c.view.style.opacity=a.opacity},a.delay):(clearTimeout(this.opacityDelay),c.view.style.opacity=a.opacity)}};q.prototype={init:function(){this.showPreloader(!0)},startRequest:function(a){var c={};c.backgroundColor=e(this.appName).collectionThumbSubMenuBackgroundColor;
|
63 |
-
c.backgroundColorOver=e(this.appName).collectionThumbSubMenuBackgroundColorOver;c.iconColor=e(this.appName).collectionThumbSubMenuIconColor;c.iconColorOver=e(this.appName).collectionThumbSubMenuIconHoverColor;this.itemMenu=this.delegate.itemMenuConstructor(this.delegate,k,c,!1);this.query=a;this.query.per_page=0;this.query.page=1;e(this.appName).appEventManager.addGMEventListener(l.COLLECTION_DATA_REDY,this,"dataLoaded");k.request(JSON.stringify({library:this.query}),this,l.COLLECTION_DATA_REDY)},
|
64 |
-
showPreloader:function(a){var c=void 0;if(a)document.getElementById(this.appName+"_preloader")||(c=k.createPreloaderView(k.hexToRgbaStrin(e(this.appName).collectionPreloaderColor,.7)),c.id=this.appName+"_preloader",this.view.appendChild(c));else if(document.getElementById(this.appName+"_preloader")){var b=this;c=document.getElementById(this.appName+"_preloader");k.fadeOut(c,function(){b.view&&b.view.removeChild(c)},500)}},dataLoaded:function(a){if(a=a.params.data){try{var c=JSON.parse(a);c.data&&
|
65 |
-
(this.addItemsToCollection(c.data),this.trySortItemsByTerms());e(this.appName).lightBoxEnable&&this.delegate.startItem&&this.tryOpenLightboxForID(this.delegate.startItem)}catch(b){y(b)}this.showPreloader(!1);this.itemsList&&this.updateViewByData()}},tryOpenLightboxForID:function(a){for(var c=0;c<this.filteredCollection.length;c++)a==this.filteredCollection[c].ID&&(e(this.appName).appEventManager.dispatchGMEvent(k.GMEvent(l.NEED_LIGHTBOX,this,{collection:this,index:c})),c=this.filteredCollection.length)},
|
66 |
-
createTermsCollectionAndUpdateProperties:function(a){function c(a){var c={},e;for(e in a){var f=k.Term(a[e],b.appName);c[f.term_id]=f;f.itemsList=[];if(b.itemsList)for(var h=0;h<b.itemsList.length;h++){var l=b.itemsList[h];if(l[f.taxonomy_type]){var p=l[f.taxonomy_type],n;for(n in p)p[n].term_id==f.term_id&&(f.itemsList.push(l),d.push(l),b.itemsList.splice(h,1),--h)}}}return c}this.properties||(this.properties={});var b=this,d=[];this.terms=[];for(var e in a)"album__in"==e||"category__in"==e||"tag__in"==
|
67 |
-
e?this.terms.push(c(a[e])):this.properties[e]=a[e];this.itemsList=d.concat(this.itemsList)},addItemsToCollection:function(a){for(var c=0;c<a.length;c++){var b=k.Item(a[c],this.appName);b.index=this.itemsList.length+c;if(b.tags&&0<b.tags.length)for(var d=0;d<b.tags.length;d++){var e=b.tags[d];this.tagsCloud&&(this.tagsCloud[e.term_id]=e.name)}this.itemsList.push(b)}},trySortItemsByTerms:function(){this.queryTermsList=k.termsListFromAppQuery(this.query);if(this.itemsList&&this.queryTermsList){for(var a=
|
68 |
-
[],c=0;c<this.queryTermsList.length;c++)for(var b=this.queryTermsList[c],d=0;d<this.itemsList.length;d++){var e=this.itemsList[d];if(e[b.taxonomy_type]){var f=e[b.taxonomy_type],l;for(l in f)f[l].term_id==b.term_id&&(a.push(e),this.itemsList.splice(d,1),--d)}}this.itemsList=a.concat(this.itemsList)}},itemAction:function(a,c){if(!this.dragging){var b=this.filteredCollection[a];switch(c){case "lightBox":e(this.appName).appEventManager.dispatchGMEvent(k.GMEvent(l.NEED_LIGHTBOX,this,{collection:this,
|
69 |
-
index:a}));break;case "share":e(this.appName).appEventManager.dispatchGMEvent(k.GMEvent(l.NEED_MODAL,self,{type:"share",item:b}));break;case "link":b.link&&window.open(b.link,e(this.appName).linkTargetWindow);break;case "coments":window.open(b.sharelink+"/#comments",e(this.appName).linkTargetWindow);break;case "like":this.delegate.likeItem=b;break;case "bookmark":this.delegate.bookmarkItem=b}}},refteshDataInItem:function(){for(var a=0;a<this.filteredCollection.length;a++)this.filteredCollection[a].view.updateSomeData()},
|
70 |
-
activate:function(){this.updateLayout();(this.scrollHandler=this.scrollHandlerFunction())&&window.addEventListener("scroll",this.scrollHandler,!1)},deactivate:function(){e(this.appName).appEventManager.removeGMEventListener(l.COLLECTION_DATA_REDY,this,"dataLoaded");window.removeEventListener("scroll",this.scrollHandler,!1);this.scrollHandler=void 0;this.removePresentedItems()},removeItemViewFormStage:function(){this.removePresentedItems();this.presentedList=[];this.cureantPage=void 0},removePresentedItems:function(){for(var a=
|
71 |
-
0;a<this.presentedList.length;a++)this.presentedList[a].display="none"},showPresentedItems:function(){for(var a=0;a<this.presentedList.length;a++)this.presentedList[a].display="block"},createLayout:function(){this.scrollHandler||(this.scrollHandler=this.scrollHandlerFunction())&&window.addEventListener("scroll",this.scrollHandler,!1);this.page_Amount=Math.min(20,this.filteredCollection.length)},updateLayout:function(){},scrollHandlerFunction:function(){return!1},resize:function(){var a=this;clearTimeout(this.resizeTimeOut);
|
72 |
-
k.is_touch_device?this.resizeTimeOut=setTimeout(function(){a.resizeDelay()},150):this.resizeDelay()},resizeDelay:function(){this.viewWidth!=this.view.clientWidth&&(this.updateLayout(),this.viewWidth=this.view.clientWidth)},filtred:function(a){window.removeEventListener("scroll",this.scrollHandler,!1);this.scrollHandler=void 0;this.removeItemViewFormStage();this.filtredById=a;this.createLayout()},updateTagsCloud:function(){0!=this.filteredCollection.length&&(this.tagsCloudView||(this.tagsCloudView=
|
73 |
-
new t(this),this.header.appendChild(this.tagsCloudView.view)),this.tagsCloud&&this.tagsCloudView.updateView())},set filtredById(a){if(this.itemsList&&(this.filteredList=[],this._filter=a,0!==a))for(var c=0;c<this.itemsList.length;c++){var b=this.itemsList[c];b.hasTag(a)&&this.filteredList.push(b)}},get filtredById(){return this._filter},get filteredCollection(){return 0<this.filteredList.length?this.filteredList:this.itemsList}};p.prototype=Object.create(q.prototype,{updateViewByData:{value:function(){if(this.itemsList)for(var a=
|
74 |
-
0;a<this.itemsList.length;a++){var c=new u(this,a);this.itemsList[a].view=c;c.init()}e(this.appName).tagsFilter&&this.updateTagsCloud();this.createLayout()}},createLayout:{value:function(){q.prototype.createLayout.apply(this,arguments);this.createColumns();this.addPageToStage()}},updateLayout:{value:function(){if(0==this.createColumns())this.presentedList&&this.presentedList[0]&&"none"==this.presentedList[0].display&&this.showPresentedItems();else{this.removePresentedItems();for(var a=0;a<this.presentedList.length;a++)this.arangeItemToColum(this.presentedList[a])}}},
|
75 |
-
createColumns:{value:function(){var a=Math.floor(this.content.clientWidth/Math.min(this.content.clientWidth,e(this.appName).collectionThumbRecomendedWidth));if(this.columnsArr.length!=a){for(var c=0;c<this.columnsArr.length;c++)this.content.removeChild(this.columnsArr[c]);this.columnsArr=[];for(c=0;c<a;c++){var b=document.createElement("div");b.className="collectionColumn";b.style.width=100/a+"%";this.columnsArr.push(b);this.content.appendChild(b)}return!0}return!1}},bottomSpace:{get:function(){return this.content.getBoundingClientRect().bottom-
|
76 |
-
window.innerHeight}},scrollHandlerFunction:{value:function(a){var c=this;return function(){200>c.bottomSpace&&c.addPageToStage()}}},addPageToStage:{value:function(){void 0===this.cureantPage&&(this.cureantPage=0);clearTimeout(this.layoutSizerDelay);if(!(this.cureantPage>=Math.ceil(this.filteredCollection.length/this.page_Amount))){for(var a=this.cureantPage*this.page_Amount,c=Math.min(a+this.page_Amount,this.filteredCollection.length),b=1;a<c;a++){var d=this.filteredCollection[a].view;d.index=a;d.opacity=
|
77 |
-
{opacity:0,delay:0};this.addItemToStage(d);d.opacity={opacity:1,delay:100*b};b+=1}this.cureantPage+=1;var e=this;this.layoutSizerDelay=setTimeout(function(){200>e.bottomSpace&&e.addPageToStage()},1E3)}}},getColumWithMinHeight:{value:function(){for(var a=this.columnsArr[0].clientHeight,c=0,b=1;b<this.columnsArr.length;b++)a!=Math.min(a,this.columnsArr[b].clientHeight)&&(a=Math.min(a,this.columnsArr[b].clientHeight),c=b);return c}},arangeItemToColum:{value:function(a){var c=a.view;this.columnsArr[this.getColumWithMinHeight()].appendChild(c);
|
78 |
-
a.display="block"}},addItemToStage:{value:function(a){this.arangeItemToColum(a);this.presentedList.push(a)}},itemWidth:{get:function(){var a=Math.floor(this.content.clientWidth/e(this.appName).collectionThumbRecomendedWidth);return this.content.clientWidth/a}}});p.prototype.constructor=p;v.prototype={externalScriptsReady:function(a){"function"===typeof window.codeasily_v2_itemMenu&&(this.itemMenuConstructor=window.codeasily_v2_itemMenu);"function"===typeof window.codeasily_v2_slider&&(this.sliderConstructor=
|
79 |
-
window.codeasily_v2_slider);"function"===typeof window.codeasily_v2_modalWin&&(this.modalWinConstructor=window.codeasily_v2_modalWin);e(this.appName).appEventManager.removeGMEventListener(l.EXT_SCRIPTS_READY,this,"externalScriptsReady");this.startApp()},startApp:function(){var a=this;e(this.appName).appEventManager.addGMEventListener(l.NEED_NEW_COLLECTION,this,"pushNewCollectionByTermID");e(this.appName).appEventManager.addGMEventListener(l.NEED_NEW_COLLECTION_BY_TERM,this,"pushNewCollectionByTerm");
|
80 |
-
e(this.appName).appEventManager.addGMEventListener(l.NEED_MODAL,this,"createModal");e(this.appName).lightBoxEnable&&(e(this.appName).appEventManager.addGMEventListener(l.NEED_LIGHTBOX,this,"createLightbox"),e(this.appName).appEventManager.addGMEventListener(l.REMOVE_LIGHTBOX,this,"removeLightbox"));this.viewsSet={};e(this.appName).appEventManager.addGMEventListener(l.COUNTERS_UPDATED,this,"itemsCountersUpdateHandler");this.likesSet={};window.localStorage.getItem("gm_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("gm_likesSet")));
|
81 |
-
window.addEventListener("resize",function(){a.windowResizeHandler(a)});this.popstateHandler=function(c){a.slider?a.slider.prepareToRemove():0<a.collections.length&&a.collections[a.collections.length-1]&&a.itemFromHash&&a.collections[a.collections.length-1].tryOpenLightboxForID(a.itemFromHash)};window.addEventListener("popstate",this.popstateHandler,!1);this.itemFromHash&&(this.startItem=this.itemFromHash,window.history.replaceState(null,null,window.location.pathname+window.location.search));this.appQuery&&
|
82 |
-
(this.createAudioPlayer(),this.collections[0].startRequest(this.appQuery))},get itemFromHash(){var a=window.location.hash.indexOf(this.appName),c=void 0;a+1&&(c=2<=window.location.hash.substr(a).split("-").length?parseInt(window.location.hash.substr(a).split("-")[1]):void 0);return c},itemHash:function(a){return"#"+this.appName+"-"+a.ID},addCollectioByQuery:function(a){var c=0;this.modal&&(this.modal.prepareToRemove(),c=500);this.slider&&(this.slider.prepareToRemove(),c=500);if(0<this.collections.length&&
|
83 |
-
this.collections[this.collections.length-1]){var b=this.collections[this.collections.length-1];b.deactivate();b.view.parentNode&&this.appDiv.removeChild(b.view)}document.body.scrollTop>this.appDiv.getBoundingClientRect().top&&(b=document.body.getBoundingClientRect(),b=this.appDiv.getBoundingClientRect().top-b.top-(k.is_touch_device?0:50),scrollToY(b,500));var d=this;!a.s&&this.searchForm&&this.searchForm.clear();setTimeout(function(){var b=new p(d,d.appName,a);d.collections.push(b);d.appDiv.appendChild(b.view);
|
84 |
-
b.init()},c)},pushNewCollectionByTerm:function(a){if(a.params||a.params.term)a=a.params.term,a.sharelink&&window.open(a.sharelink,"_self")},termLinkForTerm:function(a,c){return e(this.appName).post_url+"/?"+e(this.appName).galleryID+"["+c+"]="+a},pushNewCollectionByTermID:function(a){if(a.params||a.params.term_id||!a.params.taxonomy)a=this.termLinkForTerm(a.params.term_id,a.params.taxonomy),window.open(a,"_self")},set likeItem(a){a&&(a.meta.likes||(a.meta.likes=0),a.meta.likes=parseInt(a.meta.likes)+
|
85 |
-
1,a.view&&a.view.like&&(a.view.like=!0),a=a.ID,this.likesSet[a]||(this.likesSet[a]="like",this.viewsSet[a]&&delete this.viewsSet[a],a=JSON.stringify({counter:{likes:[a],views:[a]}}),k.request(a,this,l.COUNTERS_UPDATED),window.localStorage.setItem("gm_likesSet",JSON.stringify(this.likesSet))))},set viewItem(a){var c=a.ID;this.updateItemLink(a);this.viewsSet[c]="view"},itemsCountersUpdate:function(){if(this.viewsSet){var a=[];for(key in this.viewsSet)a.push(key);0<a.length&&(a=JSON.stringify({counter:{likes:[],
|
86 |
-
views:a}}),k.request(a,this,l.COUNTERS_UPDATED),this.viewsSet={})}},itemsCountersUpdateHandler:function(a){window.localStorage.setItem("gm_likesSet",JSON.stringify(this.likesSet))},createLightbox:function(a){if(a.params||a.params.collection){var c=a.params.collection;a=a.params.index;var b=c.filteredCollection[a];this.slider&&this.slider.prepareToRemove();window.localStorage.getItem("gm_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("gm_likesSet")));this.sliderConstructor&&(this.slider=
|
87 |
-
this.sliderConstructor(this,k),this.slider.initByList(c.filteredCollection,a));c=this.itemHash(b);window.location.hash!=c&&window.history.pushState(null,null,c)}},updateItemLink:function(a){window.history.replaceState(null,null,this.itemHash(a))},removeLightbox:function(a){var c=this,b=a.target;setTimeout(function(){b.view&&b.view.parentNode&&b.view.parentNode.removeChild(b.view);c.slider&&(c.slider=void 0)},400);this.itemFromHash&&window.history.back()},createModal:function(a){if(a.params.type&&
|
88 |
-
a.params.item){var c=a.params.item,b=void 0;this.modal||(this.modal=this.modalWinConstructor(this,k));this.modal.type=a.params.type;switch(a.params.type){case "share":b=this.modal.shareBar;break;case "info":b=this.modal.infoBar}b.item=c;this.modal.pushPage(b.view)}},deleteModal:function(){this.modal&&delete this.modal},windowResizeHandler:function(a){this.bookmarkBox&&this.collectionTranslateY!=this.bookmarkBox.height&&(this.collectionTranslateY=this.bookmarkBox.height,this.showBookmarkInfo(this.bookmarkStatusShow));
|
89 |
-
0<this.collections.length&&this.collections[this.collections.length-1].resize();this.slider&&this.slider.resizeHandler()},createAudioPlayer:function(){var a=this;var c=document.getElementById("gmAudioPlayer")?document.getElementById("gmAudioPlayer"):new Audio;if(null!=c&&c.canPlayType&&c.canPlayType("audio/mpeg")){var b=function(b){a.slider&&a.slider.audioPlayerHandler(b)};c.id="gmAudioPlayer";c.setAttribute("type","audio/mpeg");c.setAttribute("codecs","mp3");this.audioPlayer=c;this.appDiv.appendChild(this.audioPlayer);
|
90 |
-
c.addEventListener("ended",b,!1);c.addEventListener("pause",b,!1);c.addEventListener("play",b,!1);c.addEventListener("durationchange",b,!1)}}};(function(){for(var a=document.body.getElementsByClassName("amron_module"),c=0;c<a.length;c++){var b=a[c].id;this[b]=new v(this[b],b,a[c])}})()}amron_module();
|
1 |
+
!function(e){var t={};function i(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(o,a,function(t){return e[t]}.bind(null,a));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=17)}([function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var a=(s=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(l," */")),n=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot).concat(e," */")}));return[i].concat(n).concat([a]).join("\n")}var s,r,l;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(i,"}"):i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},a=0;a<this.length;a++){var n=this[a][0];null!=n&&(o[n]=!0)}for(var s=0;s<e.length;s++){var r=e[s];null!=r[0]&&o[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="(".concat(r[2],") and (").concat(i,")")),t.push(r))}},t}},function(e,t,i){var o,a,n={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===a&&(a=o.apply(this,arguments)),a}),r=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,i){if("function"==typeof e)return e();if(void 0===t[e]){var o=r.call(this,e,i);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}}(),c=null,d=0,h=[],m=i(4);function u(e,t){for(var i=0;i<e.length;i++){var o=e[i],a=n[o.id];if(a){a.refs++;for(var s=0;s<a.parts.length;s++)a.parts[s](o.parts[s]);for(;s<o.parts.length;s++)a.parts.push(y(o.parts[s],t))}else{var r=[];for(s=0;s<o.parts.length;s++)r.push(y(o.parts[s],t));n[o.id]={id:o.id,refs:1,parts:r}}}}function p(e,t){for(var i=[],o={},a=0;a<e.length;a++){var n=e[a],s=t.base?n[0]+t.base:n[0],r={css:n[1],media:n[2],sourceMap:n[3]};o[s]?o[s].parts.push(r):i.push(o[s]={id:s,parts:[r]})}return i}function g(e,t){var i=l(e.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=h[h.length-1];if("top"===e.insertAt)o?o.nextSibling?i.insertBefore(t,o.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),h.push(t);else if("bottom"===e.insertAt)i.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=l(e.insertAt.before,i);i.insertBefore(t,a)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=h.indexOf(e);t>=0&&h.splice(t,1)}function f(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return i.nc}();o&&(e.attrs.nonce=o)}return w(t,e.attrs),g(e,t),t}function w(e,t){Object.keys(t).forEach((function(i){e.setAttribute(i,t[i])}))}function y(e,t){var i,o,a,n;if(t.transform&&e.css){if(!(n="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=n}if(t.singleton){var s=d++;i=c||(c=f(t)),o=C.bind(null,i,s,!1),a=C.bind(null,i,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",w(t,e.attrs),g(e,t),t}(t),o=T.bind(null,i,t),a=function(){v(i),i.href&&URL.revokeObjectURL(i.href)}):(i=f(t),o=k.bind(null,i),a=function(){v(i)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var i=p(e,t);return u(i,t),function(e){for(var o=[],a=0;a<i.length;a++){var s=i[a];(r=n[s.id]).refs--,o.push(r)}e&&u(p(e,t),t);for(a=0;a<o.length;a++){var r;if(0===(r=o[a]).refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete n[r.id]}}}};var b,x=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function C(e,t,i,o){var a=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=x(t,a);else{var n=document.createTextNode(a),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(n,s[t]):e.appendChild(n)}}function k(e,t){var i=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}function T(e,t,i){var o=i.css,a=i.sourceMap,n=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||n)&&(o=m(o)),a&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var s=new Blob([o],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(s),r&&URL.revokeObjectURL(r)}},function(e,t,i){var o=i(3);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".amron_module *{box-sizing:border-box !important}.gmedia-amron-collection-tags-cloud{position:relative;display:block;margin-top:10px;margin-bottom:2px;text-align:center}.gmedia-amron-collection-tags-cloud ul{margin:0 !important;padding:0 !important;list-style:none}.gmedia-amron-collection-tags-cloud ul li::before{display:none}.gmedia-amron-collection-tags-cloud ul li{display:inline-block;max-width:200px;padding:5px 8px !important;margin:3px !important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:15px !important;border-radius:2px;text-decoration:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;transition:0.3s}.gmedia-amron-masonry-collection{position:relative;width:100%;min-height:200px;overflow:hidden;transition:transform 0.5s;z-index:2}.gmedia-amron-masonry-collection .gmedia-amron-content{position:relative;width:100%}.gmedia-amron-masonry-collection .gmedia-amron-content .gmedia-amron-collection-column{position:relative;float:left}.gmedia-amron-masonry-collection .gmedia-amron-header{position:relative;width:100%}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-navi{position:relative;width:100%;overflow:hidden}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-term-title{position:relative;display:inline-block;font-size:28px;line-height:34px}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-back-button{position:relative;float:left;margin:0 10px 0 0;width:54px;height:34px;border-radius:2px;cursor:pointer}.gmedia-amron-masonry-collection .gmedia-amron-header .gmedia-amron-back-button svg{width:100%;height:100%;vertical-align:baseline !important}.gmedia-amron-masonry-thumb-pint{position:relative;width:100%;opacity:0;transition:opacity 0.45s;float:left;box-sizing:border-box !important}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-holder{position:relative;width:100%;overflow:hidden}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-holder.gmedia-hover .gmedia-amron-zoom{transform:translateX(-10%)}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-holder.gmedia-hover img{transform:scale(1.1)}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-over{position:absolute;top:0;width:100%;height:100%;transition:opacity 0.5s;opacity:0}.gmedia-amron-masonry-thumb-pint .gmedia-amron-image-over.gmedia-hover{opacity:1}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom{position:absolute;width:50px;height:50px;padding:15px !important;right:0;bottom:4px;transform:translateX(100%);margin:auto;cursor:pointer;transition:transform 0.2s}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom.media{width:40px;height:40px;background-color:rgba(255,255,255,0.5);border-radius:50%;padding:5px !important;transform:translateX(-10%)}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom.media svg{stroke:none}.gmedia-amron-masonry-thumb-pint .gmedia-amron-zoom svg{width:100%;height:100%;stroke:white;vertical-align:baseline !important}.gmedia-amron-masonry-thumb-pint img{display:block;border:0 !important;margin:0 !important;padding:0 !important;max-height:none !important;max-width:none !important;min-height:0 !important;min-width:0 !important;width:100% !important;height:auto !important;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:0.5s ease-out 0s;opacity:0}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-content{position:relative;display:block;padding:7px 20px !important;text-align:left;background-color:white;overflow:hidden;width:100%;z-index:1;box-sizing:border-box}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-title{position:relative;margin:10px 0 5px;display:block;font-size:18px;line-height:1.1;letter-spacing:1px;font-weight:600}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-description{position:relative;display:block;margin:10px 0;padding:0;font-size:13px}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-read-more{text-decoration:none;box-shadow:none;position:relative;cursor:pointer;font-size:10px;border-radius:2px;text-transform:uppercase;line-height:38px;padding:0 15px;font-weight:700;letter-spacing:1px;color:white;display:inline-block;background-color:rgba(0,0,0,0.59);transition:0.5s}.gmedia-amron-masonry-thumb-pint a:hover,.gmedia-amron-masonry-thumb-pint a:visited,.gmedia-amron-masonry-thumb-pint a:link,.gmedia-amron-masonry-thumb-pint a:active{text-decoration:none;box-shadow:none}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-menu-holder{position:relative;display:block;width:100%;margin:15px 0;overflow:hidden;text-align:right}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-menu-holder .gmedia-amron-items-buttons{position:relative;padding:9px;width:36px;height:36px;cursor:pointer;float:right;transition:.5s;box-sizing:border-box;margin:0 1px;border-radius:2px}.gmedia-amron-masonry-thumb-pint .gmedia-amron-item-menu-holder .gmedia-amron-items-buttons svg{width:100%;height:100%;transition:fill .2s;vertical-align:baseline !important}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var i=t.protocol+"//"+t.host,o=i+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,n=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?e:(a=0===n.indexOf("//")?n:0===n.indexOf("/")?i+n:o+n.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},function(e,t,i){var o=i(6);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".gmedia-preloader{min-height:inherit;position:absolute;top:0;left:0;bottom:0;right:0;overflow:hidden;z-index:100}.gmedia-preloader .c-spinner{animation:1s spinner linear infinite}@keyframes spinner{0%{transform:rotate(-360deg)}100%{transform:rotate(0deg)}}@keyframes _spinner{to{transform:rotate(-1440deg)}}@keyframes gmFadeIn{from{opacity:0}to{opacity:1}}\n",""])},function(e,t,i){var o=i(8);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".gmedia-slider-view{position:absolute;overflow:hidden;left:0;right:0;top:0;bottom:0}.gmedia-slider-view *{box-sizing:border-box !important;line-height:1.4}.gmedia-slider-view .gmedia-slider-hints{position:absolute;display:inline-block;padding:5px 10px;font-size:12px;line-height:normal;background-color:rgba(0,0,0,0.8);color:white;transform:translateY(-100%);border-radius:2px;transition:.4s}.gmedia-slider-view.gmedia-slider-activate{pointer-events:auto;visibility:visible;opacity:1}.gmedia-slider-view .gmedia-slider-bg{width:100%;height:100%;transform:translateZ(0)}.gmedia-slider-view .gmedia-slider-wrap{position:absolute;user-select:none;width:100%;top:0;bottom:0}.gmedia-slider-view .miniScreen{margin-top:0;margin-bottom:0}.gmedia-slider-view .gmedia-slider-next-prev-button{position:absolute;width:45px;height:40px;top:50%;margin:0 10px;padding:0;cursor:pointer;transition:transform .5s ease-out;border-radius:2px}.gmedia-slider-view .gmedia-slider-next-prev-button.next-prev-button-mini-screen{display:none}.gmedia-slider-view .gmedia-slider-next-prev-button svg{width:100%;height:100%;vertical-align:baseline !important}.gmedia-slider-page-view{position:absolute;display:block;transform:translate3d(0px, 0px, 0px);width:100%;top:0;bottom:0;left:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;-moz-user-select:none;-ms-user-select:none}.gmedia-slider-page-view .gmedia-slider-page-inner{position:absolute;display:block;left:0;top:0;bottom:0;width:100%;overflow:hidden;transform:translate3d(0, 0, 0);backface-visibility:hidden;-webkit-backface-visibility:hidden;-webkit-transform-origin:left top;transform-origin:left top;user-select:none}.gmedia-slider-page-view .gmedia-slider-page-inner img{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute !important;display:block !important;border:none !important;max-width:none !important;opacity:0;padding:0 !important;margin:0 !important;transition:.35s ease-out;user-select:none}.gmedia-slider-page-view .gmedia-slider-page-inner img.onLoad{opacity:1}.gmedia-slider-page-view .gmedia-slider-page-inner.video-play img{visibility:hidden}.gmedia-slider-page-view .gmedia-slider-page-inner .video-wrap{position:absolute;display:block;border:none}.gmedia-slider-page-view .gmedia-slider-page-inner .video-wrap iframe{width:100% !important;height:100% !important;top:0;left:0}.gmedia-slider-page-view .gmedia-slider-page-icon-holder{position:absolute;width:140px;height:140px;border-radius:50%;background-color:rgba(255,255,255,0.6);transform:translateY(-50%) translateX(-50%);left:50%;top:50%;padding:30px;visibility:hidden;will-change:transform;cursor:pointer}.gmedia-slider-page-view .gmedia-slider-page-icon-holder svg{width:100%;height:100%;fill:rgba(0,0,0,0.4)}.gmedia-slider-page-view.info-icon .gmedia-slider-page-icon-holder{visibility:visible}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.gmWrapRotate{animation-name:rotate;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}\n",""])},function(e,t,i){var o=i(10);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".gmedia-item-menu-view{position:relative;overflow:hidden;float:left}.gmedia-item-menu-view.gmedia-item-menu-type-ultrabox{display:flex;flex-direction:row;flex-wrap:wrap;margin-right:5px}.gmedia-item-menu-view.gmedia-item-menu-type-ultrabox .gmedia-item-menu-button{padding:3px;width:43px;height:43px;margin:0 5px;border-radius:2px}.gmedia-item-menu-view.gmedia-item-menu-type-lightbox .gmedia-item-menu-button{margin:2px}.gmedia-item-menu-view.gmedia-item-menu-type-thumb .gmedia-item-menu-button{margin:1px}.gmedia-item-menu-view .gmedia-item-menu-button{position:relative;padding:9px;width:38px;height:38px;cursor:pointer;float:left;transition:background-color .2s, transform .4s ease-out;border-radius:2px}.gmedia-item-menu-view .gmedia-item-menu-button svg{width:100%;height:100%;fill:inherit;transition:fill .2s, transform .4s ease-out;vertical-align:baseline !important}\n",""])},function(e,t,i){var o=i(12);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".gmedia-scroll-bar-wrap{position:relative;flex:none;width:490px;height:50px;margin:5px 0;overflow:hidden}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view{position:absolute}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view .gmedia-scroll-bar-item{position:absolute;height:50px;width:70px;overflow:hidden}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view .gmedia-scroll-bar-item .gmedia-scroll-bar-item-bg{position:absolute;left:3px;right:3px;top:3px;bottom:3px;background-position:center;-webkit-background-size:cover;background-size:cover;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view .gmedia-scroll-bar-item .gmedia-scroll-bar-item-hover{position:absolute;opacity:0;transition:opacity .2s;pointer-events:none;top:0;left:0;right:0;bottom:0;border-style:solid;border-width:3px;border-color:#fff}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view .gmedia-scroll-bar-item .gmedia-scroll-bar-item-link{position:absolute;width:34px;height:34px;padding:6px;border-radius:50%;left:50%;top:50%;transform:translateY(-50%) translateX(-50%)}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view .gmedia-scroll-bar-item .gmedia-scroll-bar-item-link svg{width:100%;height:100%;fill:rgba(0,0,0,0.58);vertical-align:baseline !important}.gmedia-scroll-bar-wrap .gmedia-scroll-bar-view .gmedia-scroll-bar-item .gmedia-scroll-bar-item-link.rotate svg{animation:1s spinner linear infinite}.gm_grabbable{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.gm_grabbable:active{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}\n",""])},function(e,t,i){var o=i(14);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".gmedia-lightbox-b-view{position:fixed;z-index:99999;left:0;right:0;top:0;bottom:0;visibility:hidden;opacity:0;-ms-touch-action:none;touch-action:none;-webkit-text-size-adjust:100%;font-family:Arial, Helvetica, sans-serif;-webkit-transition:opacity .4s ease;transition:opacity .4s ease, visibility .4s ease}.gmedia-lightbox-b-view *{box-sizing:border-box !important;line-height:1.4}.gmedia-lightbox-b-view.gmedia-lightbox-b-activate{pointer-events:auto;visibility:visible;opacity:1}.gmedia-lightbox-b-view .gmedia-lightbox-b-bg{width:100%;height:100%;transform:translateZ(0)}.gmedia-lightbox-b-view .gmedia-lightbox-b-content{position:absolute;top:0;left:0;width:100%;height:100%}.gmedia-lightbox-b-view .gmedia-lightbox-b-header{position:absolute;padding:5px;left:0;top:0;width:100%;display:flex;flex-wrap:wrap;transform:translateY(-100%);transition:transform .4s ease-out}.gmedia-lightbox-b-view .gmedia-lightbox-b-header *{user-select:none;-moz-user-select:none;-webkit-user-select:none}.gmedia-lightbox-b-view .gmedia-lightbox-b-header.gmedia-show{transform:translateY(0%)}.gmedia-lightbox-b-view .gmedia-lightbox-b-footer{user-select:none;position:absolute;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;padding:0 10px;left:0;bottom:0;width:100%;transform:translateY(100%);transition:transform .4s ease-out}.gmedia-lightbox-b-view .gmedia-lightbox-b-footer.gmedia-show{transform:translateY(0%)}.gmedia-lightbox-b-view .gmedia-lightbox-b-footer.gmedia-lightbox-b-touch-device .gmedia-lightbox-b-caption-wrap{border-radius:2px;padding:0;margin:0}.gmedia-lightbox-b-view .gmedia-lightbox-b-footer .gmedia-lightbox-b-caption-wrap{border-radius:2px;padding:3px 10px;margin:2px}.gmedia-lightbox-b-view .gmedia-lightbox-b-description-wrap{flex:none;width:400px;max-width:100%;padding:0 5px;height:100%}.gmedia-lightbox-b-view .gmedia-lightbox-b-description-wrap a{cursor:pointer}.gmedia-lightbox-b-view .gmedia-lightbox-b-description-wrap a:hover,.gmedia-lightbox-b-view .gmedia-lightbox-b-description-wrap a:visited,.gmedia-lightbox-b-view .gmedia-lightbox-b-description-wrap a:link,.gmedia-lightbox-b-view .gmedia-lightbox-b-description-wrap a:active{text-decoration:none;box-shadow:none}.gmedia-lightbox-b-view .gmedia-lightbox-b-item-title{text-rendering:auto;color:#fff;font-size:18px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.3;box-sizing:content-box;letter-spacing:0;margin-top:1px;margin-bottom:3px;text-decoration:none !important;box-shadow:none !important}.gmedia-lightbox-b-view .gmedia-lightbox-b-item-description{color:#969696;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.gmedia-lightbox-b-view .gmedia-lightbox-b-free-space{flex:auto}.gmedia-lightbox-b-view .gmedia-lightbox-b-caption-play-wrap{display:flex;align-items:center}.gmedia-lightbox-b-view .gmedia-lightbox-b-caption-play-wrap .gmedia-lightbox-b-autoplay-wrap{margin-left:15px}.gmedia-lightbox-b-view .gmedia-lightbox-b-caption-wrap{position:relative;flex:none;font-size:13px;line-height:22px;font-weight:400;color:white;display:inline-block}.gmedia-lightbox-b-view .gmedia-lightbox-b-caption-current{position:relative;display:inline-block}.gmedia-lightbox-b-view .gmedia-lightbox-b-caption-delimiter{position:relative;display:inline-block;padding:0 3px}.gmedia-lightbox-b-view .gmedia-lightbox-b-caption-all{position:relative;display:inline-block}.gmedia-lightbox-b-view .gmedia-lightbox-b-autoplay-wrap{position:relative;opacity:0;height:22px;transition:opacity .4s}.gmedia-lightbox-b-view .gmedia-lightbox-b-info-wrap{position:relative;flex:none;min-height:30px;padding:0 10px}.gmedia-lightbox-b-view .gmedia-lightbox-b-item-menu-wrap{position:relative;flex:none;min-width:40px;overflow:hidden}\n",""])},function(e,t,i){var o=i(16);"string"==typeof o&&(o=[[e.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i(1)(o,a);o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(0)(!1)).push([e.i,".gmedia-modal-window{position:fixed;-webkit-backface-visibility:hidden;backface-visibility:hidden;top:0;left:0;right:0;bottom:0;overflow:hidden;opacity:0;will-change:opacity;transition:opacity .4s;text-align:center}.gmedia-modal-window *{box-sizing:border-box}.gmedia-modal-window .gmedia-modal-flex{display:inline-block;width:0;height:100%;vertical-align:middle}.gmedia-modal-window .gmedia-modal-close-button{position:absolute;width:100%;height:100%;z-index:-100;will-change:opacity}.gmedia-item-info-bar{font-size:14px;line-height:1.3;margin:0 10px;padding-bottom:10px;max-width:720px;min-width:260px;background-color:white;border-radius:2px;box-shadow:0 8px 16px rgba(0,0,0,0.15);vertical-align:middle;display:inline-block;will-change:transform}.gmedia-item-info-bar .gmedia-item-info-close-button{position:absolute;margin:10px;width:24px;height:24px;cursor:pointer;right:0}.gmedia-item-info-bar .gmedia-item-info-close-button svg{width:100%;height:100%;vertical-align:baseline !important}.gmedia-item-info-bar .gmedia-item-info-description-wrap{min-width:200px;min-height:44px;padding:10px 20px 0 20px;float:left;text-align:left;font-size:1em}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-item-title{font-size:130%;font-weight:600}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-item-description{font-size:80%;font-weight:400}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-terms-list{list-style:none;margin:0;overflow:hidden;padding:0}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-terms-list.gmedia-item-info-tags-ul{font-size:1rem !important;line-height:1.4 !important;margin-bottom:0 !important;margin-left:0 !important}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-terms-list.gmedia-item-info-tags-ul li{border-radius:3px;display:inline-block;height:26px;line-height:26px;padding:0 20px 0 23px;position:relative;margin:0 7px 10px 0;text-decoration:none;cursor:pointer;transition:.3s}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-meta-exif-value{line-height:1.9;display:inline-block}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-meta-exif-separator{display:inline-block;font-size:100%;margin:0 2px;opacity:.4}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-item-date{font-size:100%;line-height:1.9}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-item-date .gmedia-item-info-item-meta-key{float:left;width:40%;min-width:80px}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-item-date .gmedia-item-info-item-meta-value{float:left;white-space:nowrap;text-transform:capitalize}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-likes-view-com{position:relative;min-width:60px;min-height:40px;border:1px solid;border-color:rgba(0,0,0,0.18);border-radius:2px;background-color:#fafafa;padding:4px;margin:0 1%;text-align:center;display:inline-block}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-likes-view-com svg{display:inline-block;width:24px;height:24px;vertical-align:baseline !important}.gmedia-item-info-bar .gmedia-item-info-description-wrap .gmedia-item-info-likes-view-com .gmedia-item-info-counter-text{font-size:15px;line-height:1}.gmedia-item-info-bar .gmedia-item-info-terms-title{display:inline-block;line-height:26px;padding:0 20px 0 3px;position:relative;text-decoration:none}.gmedia-item-share-bar{font-size:14px;line-height:1.3;margin:0 10px;padding-bottom:10px;max-width:480px;min-width:260px;background-color:white;border-radius:2px;box-shadow:0 8px 16px rgba(0,0,0,0.15);vertical-align:middle;display:inline-block;will-change:transform}.gmedia-item-share-bar .gmedia-item-share-close-button{position:absolute;margin:10px;width:24px;height:24px;cursor:pointer;right:0}.gmedia-item-share-bar .gmedia-item-share-close-button svg{width:100%;height:100%;vertical-align:baseline !important}.gmedia-item-share-bar .gmedia-item-share-description-wrap{min-width:270px;min-height:44px;padding:10px 20px 0 20px;float:left;text-align:left}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-title{display:block;font-size:130%;font-weight:600;line-height:1.3}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap{position:relative;display:inline-block;padding:0 4px;min-width:130px;width:50%;height:42px}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button{border:1px solid;border-color:rgba(0,0,0,0.18);cursor:pointer;width:100%;height:100%;border-radius:2px;background-color:#fafafa;transition:.4s}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button svg{width:40px;height:40px;float:left;vertical-align:baseline !important}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button .gmedia-item-share-button-title{white-space:nowrap;position:absolute;left:30px;right:0;font-size:15px;font-weight:400;line-height:41px;text-align:center;opacity:0.7;transition:opacity .4s}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button:hover{box-shadow:0 1px 4px rgba(0,0,0,0.2)}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-button:hover .gmedia-item-share-button-title{opacity:1}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link{background-color:#fafafa;border:solid 1px rgba(0,0,0,0.17);width:100%;height:100%;border-radius:2px;overflow:hidden;position:relative;cursor:pointer;transition:.4s}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link .gmedia-item-share-button-title{position:absolute;white-space:nowrap;line-height:41px;left:41px;right:10px;overflow:hidden;opacity:.7;transition:.4s}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link svg{width:40px;height:40px;padding:4px;float:left;transition:fill .4s;vertical-align:baseline !important}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link:hover{box-shadow:0 1px 4px rgba(0,0,0,0.2)}.gmedia-item-share-bar .gmedia-item-share-description-wrap .gmedia-item-share-item-button-wrap .gmedia-item-share-item-copy-link:hover .gmedia-item-share-button-title{opacity:1}\n",""])},function(e,t,i){"use strict";i.r(t);i(2),i(5);function o(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=this;this.mouseDetected=!1,this.mouseMoveHandler=function(){return function(e){window.removeEventListener("mousedown",t.mouseMoveHandler,!1),window.removeEventListener("touchstart",t.mouseMoveHandler,!1),"touchstart"===e.type?(e.stopPropagation(),t.mouseDetected=!1):t.mouseDetected=!0}},window.addEventListener("mousedown",this.mouseMoveHandler,!1),window.addEventListener("touchstart",this.mouseMoveHandler,!1)}return a(e,null,[{key:"ICONS",get:function(){return{MAXIMIZE_SVG:'<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>',NOTE_SVG:'<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',VIMEO_SVG:'<svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="-5 -5 66.693 66.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997 c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256 c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928 c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>',YOU_TUBE_SVG:'<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>',BOOKMARK_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1420 128q23 0 44 9 33 13 52.5 41t19.5 62v1289q0 34-19.5 62t-52.5 41q-19 8-44 8-48 0-83-32l-441-424-441 424q-36 33-83 33-23 0-44-9-33-13-52.5-41t-19.5-62v-1289q0-34 19.5-62t52.5-41q21-9 44-9h1048z"/></svg>',HEART_SVG:'<svg enable-background="new 0 0 51 46" height="46px" id="Layer_1" version="1.1" viewBox="0 0 51 46" width="51px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0 C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766 l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg>',HEART_2_SVG:'<svg enable-background="new 0 0 24 24" id="Layer_1" version="1.0" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M16.4,6c2,0,3.6,1.6,3.6,3.6c0,2-3.9,6.4-8,9.8c-4.1-3.5-8-7.9-8-9.8C4,7.6,5.6,6,7.6,6C10,6,12,9,12,9S13.9,6,16.4,6 M16.4,4C14.6,4,13,4.9,12,6.3C11,4.9,9.4,4,7.6,4C4.5,4,2,6.5,2,9.6C2,14,12,22,12,22s10-8,10-12.4C22,6.5,19.5,4,16.4,4L16.4,4z"/></svg>',COMENTS_SVG:'<svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,1H4C1.8,1,0,2.8,0,5v10c0,2.2,1.8,4,4,4v3c0,0.9,1.1,1.3,1.7,0.7L9.4,19H20c2.2,0,4-1.8,4-4V5 C24,2.8,22.2,1,20,1z M14,13H8c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h6c0.6,0,1,0.4,1,1C15,12.6,14.6,13,14,13z M16,9H8 C7.4,9,7,8.6,7,8c0-0.6,0.4-1,1-1h8c0.6,0,1,0.4,1,1C17,8.6,16.6,9,16,9z" id="message"/></g></svg>',COMENTS_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" id="Layer_1" version="1.1" viewBox="0 0 64 64" width="64px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M47.964,8.127H16.036c-4.4,0-8,3.6-8,8v20.977c0,4.4,3.6,8,8,8h7.397v10.768l13.333-10.768h11.197c4.4,0,8-3.6,8-8V16.127 C55.964,11.727,52.364,8.127,47.964,8.127z M50.964,37.104c0,1.626-1.374,3-3,3H36.767H35l-1.375,1.11l-5.191,4.193v-0.303v-5h-5 h-7.397c-1.626,0-3-1.374-3-3V16.127c0-1.626,1.374-3,3-3h31.928c1.626,0,3,1.374,3,3V37.104z"/><circle cx="21.743" cy="26.617" r="2.913"/><circle cx="32" cy="26.617" r="2.913"/><circle cx="42.256" cy="26.617" r="2.913"/></g></svg>',INFO_SVG:'<svg height="100px" id="Capa_1" style="enable-background:new 0 0 46 100;" version="1.1" viewBox="0 0 46 100" width="46px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M35.162,0c6.696,0,10.043,4.567,10.043,9.789c0,6.522-5.814,12.555-13.391,12.555c-6.344,0-10.045-3.752-9.869-9.947 C21.945,7.176,26.35,0,35.162,0z M14.543,100c-5.287,0-9.164-3.262-5.463-17.615l6.07-25.457c1.057-4.077,1.23-5.707,0-5.707 c-1.588,0-8.451,2.816-12.51,5.59L0,52.406C12.863,41.48,27.662,35.072,34.004,35.072c5.285,0,6.168,6.361,3.525,16.148 L30.58,77.98c-1.234,4.729-0.703,6.359,0.527,6.359c1.586,0,6.787-1.963,11.896-6.041L46,82.377C33.488,95.1,19.83,100,14.543,100z "/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',DOWNLOAD_SVG:'<svg version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><g id="save"><path d="M11.2,16.6c0.4,0.5,1.2,0.5,1.6,0l6-6.3C19.3,9.8,18.8,9,18,9h-4c0,0,0.2-4.6,0-7c-0.1-1.1-0.9-2-2-2c-1.1,0-1.9,0.9-2,2 c-0.2,2.3,0,7,0,7H6c-0.8,0-1.3,0.8-0.8,1.4L11.2,16.6z"/><path d="M19,19H5c-1.1,0-2,0.9-2,2v0c0,0.6,0.4,1,1,1h16c0.6,0,1-0.4,1-1v0C21,19.9,20.1,19,19,19z"/></g></g></svg>',DOWNLOAD_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" id="Layer_1" version="1.1" viewBox="0 0 64 64" width="64px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M40.001,36.254c0,3.299-2.673,5.971-5.97,5.971H29.97c-3.297,0-5.97-2.672-5.97-5.971H8v17c0,2.209,1.791,4,4,4h40 c2.209,0,4-1.791,4-4v-17H40.001z"/><path d="M31.916,33.246l7.608-7.452c0.747-0.733,0.506-1.327-0.543-1.327h-4.565V9.246c0-1.381-1.119-2.5-2.5-2.5 s-2.5,1.119-2.5,2.5v15.221h-4.565c-1.05,0-1.291,0.595-0.542,1.327L31.916,33.246z"/></g></svg>',LINK_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg>',LINK_2_SVG:'<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M9.87012,5.541l4.26953,4.26953a2.02108,2.02108,0,0,1,0,2.855l-1.42383,1.42285,1.41406,1.415,1.42383-1.42334a4.02449,4.02449,0,0,0,0-5.68359L11.28418,4.127a4.01858,4.01858,0,0,0-5.68359,0L4.17676,5.55029a4.02212,4.02212,0,0,0,0,5.68311L5.59082,9.81934a2.02108,2.02108,0,0,1,0-2.855L7.01465,5.541A2.06778,2.06778,0,0,1,9.87012,5.541Z"/><path d="M19.82324,12.666l-1.41406,1.41406a2.02108,2.02108,0,0,1,0,2.855L16.98535,18.3584a2.06778,2.06778,0,0,1-2.85547,0L9.86035,14.08887a2.02108,2.02108,0,0,1,0-2.855L11.28418,9.811,9.87012,8.396,8.44629,9.81934a4.02449,4.02449,0,0,0,0,5.68359l4.26953,4.26953a4.01917,4.01917,0,0,0,5.68359.00049l1.42383-1.42334A4.02449,4.02449,0,0,0,19.82324,12.666Z"/></svg>',SHARE_SVG:'<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1344 1024q133 0 226.5 93.5t93.5 226.5-93.5 226.5-226.5 93.5-226.5-93.5-93.5-226.5q0-12 2-34l-360-180q-92 86-218 86-133 0-226.5-93.5t-93.5-226.5 93.5-226.5 226.5-93.5q126 0 218 86l360-180q-2-22-2-34 0-133 93.5-226.5t226.5-93.5 226.5 93.5 93.5 226.5-93.5 226.5-226.5 93.5q-126 0-218-86l-360 180q2 22 2 34t-2 34l360 180q92-86 218-86z"/></svg>',SHARE_2_SVG:'<svg enable-background="new 0 0 64 64" height="64px" id="Layer_1" version="1.1" viewBox="0 0 64 64" width="64px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M48,39.26c-2.377,0-4.515,1-6.033,2.596L24.23,33.172c0.061-0.408,0.103-0.821,0.103-1.246c0-0.414-0.04-0.818-0.098-1.215 l17.711-8.589c1.519,1.609,3.667,2.619,6.054,2.619c4.602,0,8.333-3.731,8.333-8.333c0-4.603-3.731-8.333-8.333-8.333 s-8.333,3.73-8.333,8.333c0,0.414,0.04,0.817,0.098,1.215l-17.711,8.589c-1.519-1.609-3.666-2.619-6.054-2.619 c-4.603,0-8.333,3.731-8.333,8.333c0,4.603,3.73,8.333,8.333,8.333c2.377,0,4.515-1,6.033-2.596l17.737,8.684 c-0.061,0.407-0.103,0.821-0.103,1.246c0,4.603,3.731,8.333,8.333,8.333s8.333-3.73,8.333-8.333C56.333,42.99,52.602,39.26,48,39.26 z"/></svg>',FULL_SCREEN_SVG:'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g id="fullscreen" transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',NORMAL_SCREEN_SVG:'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g id="Core" transform="translate(-257.000000, -257.000000)"><g id="fullscreen-exit" transform="translate(257.000000, 257.000000)"><path d="M0,11 L3,11 L3,14 L5,14 L5,9 L0,9 L0,11 L0,11 Z M3,3 L0,3 L0,5 L5,5 L5,0 L3,0 L3,3 L3,3 Z M9,14 L11,14 L11,11 L14,11 L14,9 L9,9 L9,14 L9,14 Z M11,3 L11,0 L9,0 L9,5 L14,5 L14,3 L11,3 L11,3 Z" id="Shape"/></g></g></g></svg>',CLOSE_SVG:'<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>',VIEW_SVG:'<svg enable-background="new 0 0 167 93" height="93px" id="Layer_1" version="1.1" viewBox="0 0 167 93" width="167px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M83.25,29.25c-9.649,0-17.5,7.851-17.5,17.5s7.851,17.5,17.5,17.5s17.5-7.851,17.5-17.5 S92.899,29.25,83.25,29.25z"/><path d="M83.25,0.75c-45.84,0-83,46-83,46s37.16,46,83,46s83-46,83-46S129.09,0.75,83.25,0.75z M83.25,81.25 c-19.054,0-34.5-15.445-34.5-34.5c0-19.054,15.446-34.5,34.5-34.5s34.5,15.446,34.5,34.5C117.75,65.805,102.304,81.25,83.25,81.25z "/></g></svg>',FB_SVG_COLOR:'<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg>',FB_SVG:'<svg enable-background="new 0 0 32 32" version="1.1" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Flat_copy"><path d="M11.848,32h6.612V15.998h4.411l0.584-5.514H18.46l0.007-2.761c0-1.437,0.137-2.209,2.2-2.209h2.757V0h-4.412 c-5.299,0-7.164,2.675-7.164,7.174v3.311H8.545v5.515h3.303V32z"/></g></svg>',TW_SVG:'<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M30 7.3c-1 .5-2.1.8-3.3.9 1.2-.7 2.1-1.8 2.5-3.2-1.1.7-2.3 1.1-3.6 1.4-1-1.1-2.5-1.8-4.2-1.8-3.2 0-5.7 2.6-5.7 5.7 0 .5.1.9.1 1.3-4.8-.2-9-2.5-11.8-6-.5.9-.8 1.9-.8 3 0 2 1 3.8 2.6 4.8-.9 0-1.8-.3-2.6-.7v.1c0 2.8 2 5.1 4.6 5.6-.5.1-1 .2-1.5.2-.4 0-.7 0-1.1-.1.7 2.3 2.9 3.9 5.4 4-2 1.5-4.4 2.5-7.1 2.5-.5 0-.9 0-1.4-.1 2.5 1.6 5.6 2.6 8.8 2.6 10.6 0 16.3-8.8 16.3-16.3v-.7c1.1-1 2-2 2.8-3.2z"></path></svg>',PIN_SVG:'<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg>',ZOOM_IN_SVG:'<svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M497.913,497.914c-18.782,18.781-49.226,18.781-68.008,0l-84.862-84.864c-34.89,22.366-76.131,35.718-120.66,35.718 C100.468,448.768,0,348.314,0,224.384C0,100.454,100.468,0,224.383,0c123.931,0,224.384,100.453,224.384,224.384 c0,44.529-13.353,85.771-35.718,120.675l84.863,84.849C516.695,448.689,516.695,479.131,497.913,497.914z M224.383,64.11 c-88.511,0-160.274,71.763-160.274,160.274c0,88.526,71.764,160.274,160.274,160.274c88.526,0,160.273-71.748,160.273-160.274 C384.656,135.873,312.909,64.11,224.383,64.11z M256.438,320.548h-64.108v-64.109H128.22V192.33h64.109v-64.11h64.108v64.11h64.11 v64.109h-64.11V320.548z"/></svg>',ZOOM_OUT_SVG:'<svg enable-background="new 0 0 512 512" height="512px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><path d="M497.913,429.906l-84.863-84.848c22.365-34.903,35.718-76.146,35.718-120.676C448.768,100.453,348.314,0,224.383,0 C100.468,0,0,100.453,0,224.384s100.468,224.384,224.383,224.384c44.529,0,85.771-13.352,120.66-35.718l84.862,84.864 c18.782,18.781,49.226,18.781,68.008,0C516.695,479.131,516.695,448.689,497.913,429.906z M224.383,384.658 c-88.511,0-160.274-71.748-160.274-160.274c0-88.511,71.764-160.274,160.274-160.274c88.526,0,160.273,71.763,160.273,160.274 C384.656,312.91,312.909,384.658,224.383,384.658z M128.219,256.438h192.329v-64.109H128.219V256.438z"/></g></g></svg>',PLAY_SVG:'<svg height="512px" id="Layer_1" enable-background:new 0 0 512 512 version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M405.2,232.9L126.8,67.2c-3.4-2-6.9-3.2-10.9-3.2c-10.9,0-19.8,9-19.8,20H96v344h0.1c0,11,8.9,20,19.8,20 c4.1,0,7.5-1.4,11.2-3.4l278.1-165.5c6.6-5.5,10.8-13.8,10.8-23.1C416,246.7,411.8,238.5,405.2,232.9z"/></svg>',PAUSE_SVG:'<svg height="512px" id="Layer_1" enable-background:new 0 0 512 512 version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M224,435.8V76.1c0-6.7-5.4-12.1-12.2-12.1h-71.6c-6.8,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6 C218.6,448,224,442.6,224,435.8z"/><path d="M371.8,64h-71.6c-6.7,0-12.2,5.4-12.2,12.1v359.7c0,6.7,5.4,12.2,12.2,12.2h71.6c6.7,0,12.2-5.4,12.2-12.2V76.1 C384,69.4,378.6,64,371.8,64z"/></g></svg>'}}}]),a(e,null,[{key:"moduleSettings",value:function(e){return window[e]&&window[e].settings?window[e].settings:null}},{key:"requestAnimationFrame",value:function(e){return(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame)(e)}},{key:"cancelAnimationFrame",value:function(e){(window.cancelAnimationFrame||window.mozCancelAnimationFrame)(e)}},{key:"whichTransitionEventEnd",value:function(){var e=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},i=Object.keys(t);for(var o in i)if(void 0!==e.style[o])return t[o]}},{key:"copyProperties",value:function(e,t){for(var i=Object.keys(e),o=0;o<i.length;o+=1){var a=i[o];t[a]=e[a]}}},{key:"shuffle",value:function(e){for(var t,i,o=e.length;0!==o;)i=Math.floor(Math.random()*o),t=e[o-=1],e[o]=e[i],e[i]=t;return e}},{key:"Rect",value:function(e,t,i,o){return{x:e,y:t,width:i,height:o}}},{key:"Size",value:function(e,t){return{width:e,height:t}}},{key:"Point",value:function(e,t){return{x:e,y:t}}},{key:"findHighestZIndex",value:function(e){for(var t,i=99999,o=0;o<e.childNodes.length;o+=1){var a=e.childNodes[o];1===a.nodeType&&"SCRIPT"!==a.nodeName&&(t=document.defaultView.getComputedStyle(a,null).getPropertyValue("z-index")),t>i&&"auto"!==t&&(i=parseInt(t,10))}return i}},{key:"timeConverter",value:function(e){var t=new Date(1e3*e),i=new Date,o=new Date(Date.now()-864e5),a=t.getFullYear(),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],s=t.getDate(),r=t.getHours(),l=t.getMinutes();return t.setHours(0,0,0,0)===i.setHours(0,0,0,0)?"Today, ".concat(r,":").concat(l):t.setHours(0,0,0,0)===o.setHours(0,0,0,0)?"Yesterday, ".concat(r,":").concat(l):a===(new Date).getFullYear()?"".concat(s," ").concat(n,", ").concat(a):"".concat(s," ").concat(n," ").concat(a)}},{key:"createPreloaderView",value:function(e){var t=0,i=document.createElement("div");i.className="gmedia-preloader";var o=document.createElement("div");o.style.position="absolute",o.style.width="".concat(8,"px"),o.style.height="".concat(8,"px"),o.style.margin="".concat(-4,"px"),o.style.left="50%",o.style.top="50%",o.style.borderRadius="50%",o.style.backgroundColor=e,i.appendChild(o);var a=document.createElement("div");a.className="c-spinner",a.style.position="absolute",a.style.width="".concat(36,"px"),a.style.height="".concat(36,"px"),a.style.margin="".concat(-18,"px"),a.style.left="50%",a.style.top="50%";for(var n=0;n<8;n+=1){var s=document.createElement("div");s.style.position="absolute",s.style.top="50%",s.style.left="50%",s.style.marginTop="".concat(-4,"px"),s.style.marginLeft="".concat(-4,"px"),s.style.width="".concat(8,"px"),s.style.height="".concat(8,"px"),s.style.backgroundColor=e,s.style.borderRadius="100%",s.style.transform="rotate(".concat(t,"deg) translate(").concat(18,"px)"),t+=45,a.appendChild(s)}return i.appendChild(a),i}},{key:"trace",value:function(e){if(1!==arguments.length){for(var t="",i=0;i<arguments.length;i++){var o=arguments[i];t+="".concat(o," , ")}t=t.slice(0,-2),console.log(t)}else console.log(e)}},{key:"preventDefaultForScrollKeys",value:function(e){return!{37:1,38:1,39:1,40:1}[e.keyCode]||(e.preventDefault(),!1)}},{key:"preventDefault",value:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},{key:"disableBodyScroll",value:function(){document.getElementsByTagName("html")[0].classList.add("gmedia_PopUpActive")}},{key:"enableBodyScroll",value:function(){document.getElementsByTagName("html")[0].classList.remove("gmedia_PopUpActive")}},{key:"disableBodyScrollSlider",value:function(){if(window.addEventListener){var t=e.passiveListener,i=e.preventDefault;window.addEventListener("wheel",i,t),window.addEventListener("mousewheel",i,t),window.addEventListener("touchmove",i,t)}document.onkeydown=e.preventDefaultForScrollKeys}},{key:"enableBodyScrollSlider",value:function(){if(window.removeEventListener){var t=e.passiveListener,i=e.preventDefault;window.removeEventListener("wheel",i,t),window.removeEventListener("mousewheel",i,t),window.removeEventListener("touchmove",i,t)}document.onkeydown=null}},{key:"collapseElementsInElemt",value:function(e,t){for(var i=[],o=0;o<e.childNodes.length;o+=1){var a={},n=e.childNodes[o];1===n.nodeType&&"SCRIPT"!==n.nodeName&&n!==t&&(a.element=n,a.height=null,a.overflow=null,""!==n.style.height&&(a.height=n.style.height),""!==n.style.overflow&&(a.overflow=n.style.overflow),i.push(a),n.style.overflow="hidden",n.style.height="0")}return i}},{key:"recoverElements",value:function(e){if(0!==e.length)for(var t=0;t<e.length;t+=1){var i=e[t].element;i&&(e[t].overflow?i.style.overflow=e[t].overflow:i.style.removeProperty("overflow"),e[t].height?i.style.height=e[t].height:i.style.removeProperty("height"))}}},{key:"hexToRgbaStrin",value:function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,o){return t+t+i+i+o+o}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return i?"rgba(".concat(parseInt(i[1],16),",").concat(parseInt(i[2],16),",").concat(parseInt(i[3],16),",").concat(t,")"):null}},{key:"getFrameForBoxWithMode",value:function(e,t,i){var o=e.width,a=e.height,n=t.width,s=t.height,r=1,l=1,c=1;i?(r=n/o,l=s/a,c=Math.max(r,l)):(r=n/o,l=s/a,c=(c=Math.min(r,l))>1?1:c);var d=Math.round(o*c),h=Math.round(a*c),m=Math.round((n-d)/2),u=Math.round((s-h)/2);return this.Rect(m,u,d,h)}},{key:"getItemFrameByIndexForBox",value:function(e,t,i,o,a,n){var s=1;n&&(s=n);var r=a=Math.min(t,a),l=Math.floor(t/a),c=(r=l>1?(t-(l-1)*i)/l:t)*s,d=Math.ceil((e+1)/l)-1,h=d*(c+o),m=(e-d*l)*(r+i);return this.Rect(m,h,r,c)}},{key:"fadeOut",value:function(e,t,i){i||(i=500);var o=Math.sqrt,a=(new Date).getTime();!function n(){var s=(new Date).getTime()-a,r=s/i;if(r<1){var l=1-o(r);e.style.opacity=String(l),setTimeout(n,Math.min(25,i-s))}else e.style.opacity="0",t&&t()}()}},{key:"ellipsizeTextBoxToLine",value:function(e,t){e.innerHTML=e.textContent||e.innerText||"";var i=e.innerHTML,o=e.innerHTML.split(" ");e.innerHTML=o[0].substring(0,3);var a=e.clientHeight*t;for(e.innerHTML=i;e.clientHeight>a;)o.pop(),e.innerHTML="".concat(o.join(" ")," ...")}},{key:"ellipsizeTextBox",value:function(e){e.innerHTML=e.textContent||e.innerText||"";for(var t=e.innerHTML.split(" ");e.scrollHeight>e.offsetHeight;)t.pop(),e.innerHTML="".concat(t.join(" ")," ...")}},{key:"scrollToY",value:function(e,t){var i,o=window.pageYOffset,a=Math.PI/(t/15),n=o/2,s=0,r=setInterval((function(){window.pageYOffset>e?(s+=1,i=n-n*Math.cos(s*a),window.scrollTo(0,o-i)):clearInterval(r)}),15)}},{key:"toggleFullScreen",value:function(e){var t=document.webkitIsFullScreen||document.mozFullScreen||!1;e.requestFullScreen=e.requestFullScreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||function(){return!1},document.cancelFullScreen=document.cancelFullScreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||function(){return!1},t?document.cancelFullScreen():e.requestFullScreen()}},{key:"CacheItemsList",value:function(){var e={};function t(o){!e.itemsList||e.cached===e.itemsList.length&&!e.amount||e.amount&&e.cached>=e.amount||(e.amount&&(e.amount=Math.min(e.amount,e.itemsList.length)),e.currentItem=e.itemsList[o].webView,e.lastIndex=o,e.currentItem.complete?(e.cached+=1,t(e.lastIndex+1>=e.itemsList.length?0:e.lastIndex+1)):e.currentItem.addEventListener("load",i,!1))}function i(){e.cached+=1,t(e.lastIndex+1>=e.itemsList.length?0:e.lastIndex+1)}return e.cached=0,e.itemsList=void 0,e.currentItem=void 0,e.amount=void 0,e.lastIndex=void 0,e.init=function(o,a,n){e.currentItem&&e.currentItem.removeEventListener("load",i,!1),e.amount=n,e.cached=0,e.currentItem=void 0,e.lastIndex=a,e.itemsList=o,void 0===a&&(a=0),t(a)},e.status=function(){return{list:e.itemsList,index:e.lastIndex}},e}},{key:"GMEventsManager",value:function(){return{listenerSet:{},addGMEventListener:function(e,t,i){this.listenerSet[e]||(this.listenerSet[e]=[]);var o={};o.listener=t,o.handler=i,this.listenerSet[e].push(o)},removeGMEventListener:function(e,t,i){if(this.listenerSet[e])for(var o=0;o<this.listenerSet[e].length;o+=1)this.listenerSet[e][o].listener===t&&this.listenerSet[e][o].handler===i&&(this.listenerSet[e].splice(o,1),o=this.listenerSet[e].length)},dispatchGMEvent:function(e){if(this.listenerSet[e.type])for(var t=this.listenerSet[e.type],i=0;i<t.length;i+=1){var o=t[i];o&&o.listener&&"function"==typeof o.listener[o.handler]&&o.listener[o.handler](e)}}}}},{key:"GMEvent",value:function(e,t,i){var o={};return o.type=e,o.params=i,o.target=t,o}},{key:"request",value:function(t,i,o,a){var n=new XMLHttpRequest;n.open("POST",this.moduleSettings(i.appName).appApi,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("Access-Control-Allow-Headers","Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"),n.onreadystatechange=function(){4===this.readyState&&(200!==this.status?o&&e.moduleSettings(i.appName).appEventManager.dispatchGMEvent(e.GMEvent(o,i,{error:this.statusText,params:a})):o&&e.moduleSettings(i.appName).appEventManager.dispatchGMEvent(e.GMEvent(o,i,{data:this.responseText,params:a})))},n.onerror=function(){!0===confirm("Failed to load resource: The network connection was lost. Let's try again?")&&e.request(t,i,o,a)};try{n.send(t),e.moduleSettings(i.appName).appEventManager.dispatchGMEvent(e.GMEvent("REQUEST_START",i,null))}catch(t){e.trace(t)}}},{key:"Item",value:function(t,i){var o={get webView(){return this.webImg.src?o.webImg:(this.webImg.src=this.itemViewSrc,this.webImg)}};if(e.copyProperties(t,o),o.appName=i,o.idPrefix=void 0,o.webImg=new Image,o.webImgFrame=e.Rect(0,0,0,0),o.webImg.addEventListener("load",(function(){this.classList.add("onLoad")}),!1),o.link&&""!==o.link){var a,n,s,r=o.link;r.match(/youtu\.be/i)||r.match(/youtube\.com/i)?(n=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/,(s=r.match(n))&&11===s[7].length&&(a=s[7]),void 0!==a&&(o.mime_type="video/youtube",o.videoId=a,o.link=void 0)):r.match(/vimeo\.com/i)&&(n=/(www\.)?vimeo.com\/(\d+)($|\/)/,(s=r.match(n))&&(a=s[2]),void 0!==a&&(o.mime_type="video/vimeo",o.videoId=a,o.link=void 0))}return"audio/mpeg"===o.mime_type&&(o.type="audio"),"image"===o.mime_type.split("/")[0]&&(o.type="image"),"video"===o.mime_type.split("/")[0]&&(o.type="video"),o.hasTag=function(e){if("all"===e)return!0;if(!o.tags||0===o.tags.length)return!1;for(var t=0;t<o.tags.length;t+=1){if(o.tags[t].term_id===e)return!0}return!1},o.itemViewSrc=o.meta?o.meta.web?o.meta.web.link:o.meta.original?o.meta.original.link:o.meta.thumb?o.meta.thumb.link:null:null,o.itemViewThumbSrc=o.meta?o.meta.thumb?o.meta.thumb.link:o.meta.web?o.meta.web.link:null:null,o.itemViewSize=o.meta?o.meta.web?e.Size(o.meta.web.width,o.meta.web.height):o.meta.original?e.Size(o.meta.original.width,o.meta.original.height):e.Size(300,300):e.Size(300,300),o.itemViewThumbSize=o.meta?o.meta.thumb?e.Size(o.meta.thumb.width,o.meta.thumb.height):o.meta.web?e.Size(o.meta.web.width,o.meta.web.height):e.Size(300,300):e.Size(300,300),o}},{key:"Term",value:function(t,i){var o={set gmedia__in(e){this.query_Pr&&(this.query_Pr.gmedia__in=e.toString(),this.gmedia_in_Pr=e,this.count=e.length,"myCollection"===this.taxonomy&&this.query_Pr&&(this.sharelink="".concat(self.moduleSettings(i).post_url,"/?").concat(self.moduleSettings(i).galleryID,"[gmedia__in]=").concat(this.query_Pr.gmedia__in)))},get gmedia__in(){return this.gmedia_in_Pr},get taxony_type(){var e;switch(this.taxonomy){case"gmedia_album":e="albums";break;case"gmedia_category":e="categories";break;case"gmedia_tag":e="tags";break;case"myCollection":e="gmedia__in";break;default:e=null}return e},get term_id(){return"myCollection"===this.taxonomy?"".concat(this.taxony_type,"-").concat(this.gmedia__in.toString()):this.term_id_Pr},set term_id(e){this.term_id_Pr=e},get query(){var e,t;if("myCollection"===this.taxonomy)return t={orderby:"gmedia__in",order:"ASC",gmedia__in:this.gmedia_in_Pr.toString()};switch(this.taxonomy){case"gmedia_album":e="album__in";break;case"gmedia_category":e="category__in";break;case"gmedia_tag":e="tag__in"}return(t={per_page:0,admin:!1,page:1})[e]=[this.term_id],t}};if(e.copyProperties(t,o),t.term_id&&(o.term_id_Pr=t.term_id),o.appName=i,o.key=void 0,o.gmedia_in_Pr=[],o.meta){var a=e.Meta(o.meta,o.appName);o.meta=a}return"gmedia_tag"===o.taxonomy&&(o.name="#".concat(o.name)),"myCollection"===o.taxonomy&&o.query_Pr&&(o.gmedia__in=o.query_Pr.gmedia__in.split(",")),o}},{key:"termDataByQueryNameId",value:function(e,t,i){if(!e.gmedia__in)return null;var o=e.gmedia__in.split(",").length,a=e.orderby,n=e.order;return{count:o,name:t,meta:{_order:n,_orderby:a,order:n,orderby:a},taxonomy:"myCollection",term_id:i,_query:e}}},{key:"termsListFromAppQuery",value:function(e){var t,i=[];if(e.album__in){var o=e.album__in.split(",");for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&i.push({taxonomy_type:"albums",term_id:o[t]})}if(e.category__in){var a=e.category__in.split(",");for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&i.push({taxonomy_type:"categories",term_id:a[t]})}if(e.tag__in){var n=e.tag__in.split(",");for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&i.push({taxonomy_type:"tags",term_id:n[t]})}return i.length>0?i:void 0}},{key:"Meta",value:function(t,i){var o={};return e.copyProperties(t,o),o.appName=i,o._cover&&(o._cover=e.Item(t._cover,o.appName)),o.cover=o._cover?o._cover:null,o}},{key:"passiveListener",get:function(){var e=!1;try{var t={get:function(){e=!0}},i=Object.defineProperty({},"passive",t);window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}return!!e&&{passive:!1,capture:!1}}},{key:"Device",get:function(){var e=window,t=e.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:e.cordova||e.phonegap,phonegap:e.cordova||e.phonegap,browser:{ie11:!1}},o=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=t.match(/(Android);?[\s\/]+([\d.]+)?/),n=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),r=!n&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(o&&(i.os="windows",i.osVersion=o[2],i.windows=!0),a&&!o&&(i.os="android",i.osVersion=a[2],i.android=!0,i.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(n||r||s)&&(i.os="ios",i.ios=!0),r&&!s&&(i.osVersion=r[2].replace(/_/g,"."),i.iphone=!0),n&&(i.osVersion=n[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&t.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(r||n||s)&&t.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var l=i.osVersion.split("."),c=document.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(s||r)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&c&&c.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=e.devicePixelRatio||1,window.navigator.userAgent.indexOf("Trident/7.0")>-1&&(i.browser.ie11=!0),i}},{key:"isTouchDevice",get:function(){return navigator.maxTouchPoints||"ontouchstart"in window}},{key:"getScrollbarWidth",get:function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var i=document.createElement("div");i.style.width="100%",e.appendChild(i);var o=i.offsetWidth;return e.parentNode.removeChild(e),t-o}},{key:"hasScrollbar",get:function(){if("number"==typeof window.innerWidth)return window.innerWidth>document.documentElement.clientWidth;var e,t,i=document.documentElement||document.body;void 0!==i.currentStyle&&(e=i.currentStyle.overflow),e=e||window.getComputedStyle(i,"").overflow,void 0!==i.currentStyle&&(t=i.currentStyle.overflowY),t=t||window.getComputedStyle(i,"").overflowY;var o=i.scrollHeight>i.clientHeight,a=/^(visible|auto)$/.test(e)||/^(visible|auto)$/.test(t);return o&&a||("scroll"===e||"scroll"===t)}},{key:"miniScreen",get:function(){return window.screen.height<500||window.screen.width<500}},{key:"youTubeCode",get:function(){return'<iframe src="https://www.youtube.com/embed/%id%?rel=0&showinfo=0&autoplay=1&wmode=transparent" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}},{key:"vimeoCode",get:function(){return'<iframe src="https://player.vimeo.com/video/%id%?byline=0&portrait=0&autoplay=1&transparent=0" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}},{key:"isFullscreen",get:function(){return document.webkitIsFullScreen||document.mozFullScreen||!1}}]),e}();i(7);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}var c=function(){function e(t){s(this,e),this.delegate=t,this.item=void 0,this.id=void 0,this.appName=t.appName,this.itemIndex=void 0,this.iconSet=t.iconSet,this.positionIndex=0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.itemInner=document.createElement("div"),this.itemInner.className="".concat(e.classPref,"inner"),this.view.appendChild(this.itemInner),this.iconHolder=document.createElement("div"),this.iconHolder.className="".concat(e.classPref,"icon-holder"),this.preloader=n.createPreloaderView(this.delegate.params.preloaderColor),this.preloader.style.display="none",this.view.appendChild(this.preloader),this.view.appendChild(this.iconHolder),this.size=n.Size(0,0),this.imgSize=n.Size(0,0),this.imageFramePr=n.Rect(0,0,0,0),this.imageFrameFF=n.Rect(0,0,0,0),this.imageScaledFF=!1,this.width=0,this.height=0,this.maxXoffset=0,this.maxYoffset=0,this.MaxScale=4,this.imgScale=1,this.imgScaleFF=1,this.scale=1,this.newScale=1,this.newScaleMW=1,this.viewTranslatePr=n.Point(0,0),this.origin=n.Point(0,0),this.boundingBox=void 0,this.boundingBoxScale=void 0,this.animaSliderRender=void 0,this.speedX=0,this.speedY=0,this.oldX=0,this.newX=0,this.oldY=0,this.newY=0,this.draging=!1,this.isBlockDraging=!1,this.isBlockDragingMem=!1,this.startScale=void 0,this.startGlobalPoint=void 0,this.startDistForZoom=void 0}return l(e,null,[{key:"classPref",get:function(){return"gmedia-slider-page-"}}]),l(e,[{key:"initByItem",value:function(e){if(this.id!==e.ID){var t=this;switch(this.item=e,this.id=e.ID,1!==this.scale&&(this.scale=1,this.viewTranslate=n.Point(0,0)),this.itemInner.firstChild&&this.itemInner.removeChild(this.itemInner.firstChild),this.itemInner.appendChild(e.webView),this.itemImg=e.webView,e.webView.complete?(this.imgSize.width=this.itemImg.naturalWidth,this.imgSize.height=this.itemImg.naturalHeight,this.isInScale&&this.normalize(),this.fit(!1)):(this.preloader.style.display="block",e.webView.addEventListener("load",(function(){t.preloader.style.display="none",t.imgSize.width=this.naturalWidth,t.imgSize.height=this.naturalHeight,t.isInScale&&t.normalize(),t.fit(!1)}),!1)),e.type){case"audio":this.iconHolder.innerHTML=this.iconSet.NOTE_SVG,this.view.classList.add("info-icon");break;case"video":this.view.classList.add("info-icon"),this.iconHolder.innerHTML=this.iconSet.PLAY_SVG,this.iconHolder.firstChild.style.marginLeft="7px";break;default:this.view.classList.remove("info-icon")}}}},{key:"resize",value:function(e){this.size=e,this.posX=this.positionIndex,this.isInScale&&this.normalize(),this.fit(!0)}},{key:"fit",value:function(){if(this.itemImg){var e=this.delegate.params.xOffset,t=0,i=n.getFrameForBoxWithMode(this.imgSize,n.Size(this.size.width-2*e,this.size.height-2*t),!1,!1);i.x+=e,i.y+=t,this.imageFrameFF=i,t=this.delegate.params.yOffset,(i=n.getFrameForBoxWithMode(this.imgSize,n.Size(this.size.width-2*e,this.size.height-2*t),!1,!1)).x+=e,i.y+=t,this.imageFrameNF=i,this.imgScale=Math.min(this.imgSize.width/i.width,this.MaxScale),this.imgScaleFF=this.imageFrameFF.height/i.height,"video"!==this.item.type&&(this.delegate.FF_Mode?(this.imageFrame=this.imageFrameFF,i=this.imageFrameFF,this.imageScaledFF=!0):(this.imageFrame=this.imageFrameNF,i=this.imageFrameNF,this.imageScaledFF=!1)),this.item.webImgFrame.x!==i.x||this.item.webImgFrame.y!==i.y||this.item.webImgFrame.width!==i.width||this.item.webImgFrame.height!==i.height?(this.imageFrame=i,this.item.webImgFrame=i):this.imageFramePr=i,this.videoWrap&&(this.videoWrapFrame=i)}}},{key:"checkOffset",value:function(e,t){var i=this.imageScaledFF?this.imageFrameFF:this.imageFrame;if(t!==this.boundingBoxScale){var o=i.width*(t||1),a=i.height*(t||1),s=i.x*(t||1),r=i.y*(t||1);this.boundingBox={left:o>this.size.width?-s:(this.size.width-this.size.width*t)/2,top:a>this.size.height?-r:(this.size.height-this.size.height*t)/2,right:o>this.size.width?this.size.width-(s+o):(this.size.width-this.size.width*t)/2,bottom:a>this.size.height?this.size.height-(r+a):(this.size.height-this.size.height*t)/2},this.boundingBoxScale=t}var l=e.x>this.boundingBox.left?this.boundingBox.left:e.x;l=l<this.boundingBox.right?this.boundingBox.right:l;var c=e.y>this.boundingBox.top?this.boundingBox.top:e.y;return c=c<this.boundingBox.bottom?this.boundingBox.bottom:c,n.Point(l,c)}},{key:"isPointInItem",value:function(e){var t=this.viewTranslate.x+this.size.width/2*this.newScale-this.imageFrame.width/2*this.newScale,i=t+this.imageFrame.width*this.newScale,o=this.size.height/2*this.newScale+this.viewTranslate.y-this.imageFrame.height/2*this.newScale*this.newScale,a=o+this.imageFrame.height*this.scale*this.newScale;return e.x>t&&e.x<i&&e.y>o&&e.y<a}},{key:"normalize",value:function(e){n.cancelAnimationFrame(this.animaSliderRender),e?this.renderTransformTo(n.Point(0,0),1):(this.scale=1,this.newScale=1,this.newScaleMW=1,this.viewTranslate=n.Point(0,0),this.origin=n.Point(0,0))}},{key:"zoomIn",value:function(e,t){if("audio"!==this.item.type&&"video"!==this.item.type){n.cancelAnimationFrame(this.animaSliderRender);var i=t.x-this.viewTranslate.x,o=t.y-this.viewTranslate.y,a=i/this.scale,s=o/this.scale,r=t.x-a*e,l=t.y-s*e,c=n.Point(r,l);this.renderTransformTo(this.checkOffset(c,e),e)}}},{key:"zoomByScaleIter",value:function(e,t){if("audio"!==this.item.type&&"video"!==this.item.type){var i=e<0?1.065:.935;n.cancelAnimationFrame(this.animaSliderRender),this.newScale*i>this.MaxScale&&(i=this.MaxScale/this.newScale),this.newScale*i<1&&(i=1/this.newScale),this.newScale*=i,this.origin=n.Point(t.x-i*(t.x-this.origin.x),t.y-i*(t.y-this.origin.y)),this.renderTransformTo(this.checkOffset(this.origin,this.newScale),this.newScale)}}},{key:"zoomByScaleDeltaToPoint",value:function(e,t){if("audio"!==this.item.type&&"video"!==this.item.type){var i;n.cancelAnimationFrame(this.animaSliderRender);var o=e/this.startDistForZoom,a=0;(i=this.startDistForZoom/this.startScale*o/(this.startDistForZoom/this.startScale)*this.startScale)>this.MaxScale&&(a=.8*-(i-this.MaxScale)),i+=a;var s=this.startGlobalPoint.x-this.startTranslate.x,r=this.startGlobalPoint.y-this.startTranslate.y,l=s/this.newScale,c=r/this.newScale,d=this.startGlobalPoint.x-l*i,h=this.startGlobalPoint.y-c*i,m=n.Point(d-t.x,h-t.y);this.scale=i,this.newScale=i,this.viewTranslate=m,this.startTranslate=n.Point(d,h)}}},{key:"renderTransformTo",value:function(e,t){var i=this;n.cancelAnimationFrame(i.animaSliderRender),this.origin=e,this.newScale=t;var o=0,a=0,s=0,r=.05,l=.1;i.animaSliderRender=n.requestAnimationFrame((function c(){o=o*r+(e.x-i.viewTranslate.x)*l,a=a*r+(e.y-i.viewTranslate.y)*l,t&&(s=s*r+.1*(t-i.scale));var d=i.viewTranslate.x;d+=o;var h=i.viewTranslate.y;h+=a,t&&(i.scale+=s),i.viewTranslate=n.Point(d,h),Math.abs(o)<.02&&Math.abs(a)<.02&&Math.abs(s)<.02?(n.cancelAnimationFrame(i.animaSliderRender),t&&(i.scale=t),i.viewTranslate=n.Point(e.x,e.y)):i.animaSliderRender=n.requestAnimationFrame(c)}))}},{key:"renderGlidingTransform",value:function(){var e=this;n.cancelAnimationFrame(e.animaSliderRender);var t=.95,i=.95;e.animaSliderRender=n.requestAnimationFrame((function o(){e.speedX*=t,e.speedY*=i;var a=e.viewTranslate.x;a+=e.speedX;var s=e.viewTranslate.y;if(s+=e.speedY,a>e.boundingBox.left||a<e.boundingBox.right){e.speedX*=-1;var r=a<e.boundingBox.right?e.boundingBox.right:a;a=a>e.boundingBox.left?e.boundingBox.left:r,a+=e.speedX,t=.75}if(s>e.boundingBox.top||s<e.boundingBox.bottom){e.speedY*=-1;var l=s<e.boundingBox.bottom?e.boundingBox.bottom:s;s=s>e.boundingBox.top?e.boundingBox.top:l,s+=e.speedY,i=.75}e.origin=n.Point(a,s),e.viewTranslate=n.Point(a,s),Math.abs(e.speedX)<.02&&Math.abs(e.speedY)<.02?(n.cancelAnimationFrame(e.animaSliderRender),e.speedX=0,e.speedY=0):e.animaSliderRender=n.requestAnimationFrame(o)}))}},{key:"renderStretchstretchTransform",value:function(){var e=this;n.cancelAnimationFrame(e.animaSliderRender);var t=this.checkOffset(n.Point(e.viewTranslate.x+e.speedX,e.viewTranslate.y+e.speedY),e.scale),i=.2,o=.15,a=0,s=0;e.animaSliderRender=n.requestAnimationFrame((function r(){a=a*i+(t.x-e.viewTranslate.x)*o,s=s*i+(t.y-e.viewTranslate.y)*o;var l=e.viewTranslate.x+a,c=e.viewTranslate.y+s;e.viewTranslate=n.Point(l,c),Math.abs(a)<.02&&Math.abs(s)<.02?(n.cancelAnimationFrame(e.animaSliderRender),e.viewTranslate=t):e.animaSliderRender=n.requestAnimationFrame(r)}))}},{key:"startDrag",value:function(e,t){n.cancelAnimationFrame(this.animaSliderRender),"audio"!==this.item.type&&"video"!==this.item.type&&(this.startDistForZoom=t,this.startGlobalPoint=e,this.startTranslate=this.viewTranslate,this.speedX=0,this.speedY=0,this.newX=this.viewTranslate.x,this.newY=this.viewTranslate.y,this.startScale=this.scale)}},{key:"stopDrag",value:function(){if("audio"!==this.item.type&&"video"!==this.item.type){if(this.isInScale)if(this.scale<1)this.normalize(!0);else if(this.scale>this.MaxScale)this.zoomIn(this.MaxScale,this.startGlobalPoint);else{var e=this.checkOffset(this.origin,this.newScale);this.isBlockDraging=e.x!==this.origin.x||e.y!==this.origin.y,this.isBlockDraging&&this.renderStretchstretchTransform()}this.draging&&(this.isBlockDraging?this.renderStretchstretchTransform():this.renderGlidingTransform(),this.draging=!1)}}},{key:"dragin",value:function(e){if("audio"===this.item.type||"video"===this.item.type)return!1;var t=this.startTranslate.x-e.x,i=this.startTranslate.y-e.y,o=this.checkOffset(n.Point(t,i),this.newScale);this.isBlockDraging=o.x!==t||o.y!==i,t-=.7*(t-o.x),i-=.7*(i-o.y);return this.oldX=this.newX,this.newX=t,this.speedX=.7*(this.newX-this.oldX),this.oldY=this.newY,this.newY=i,this.speedY=.7*(this.newY-this.oldY),this.origin=n.Point(t,i),this.viewTranslate=n.Point(t,i),this.draging=!0,!0}},{key:"action",value:function(e){if(this.item)switch(e){case"click":if("video"===this.item.type)return this.videoWrap?(this.removeVideoContent(),"videoStop"):(this.view.classList.add("video-play"),this.view.classList.remove("info-icon"),this.addVideoContent(),"videoPlay");if("audio"===this.item.type)return this.tryPlayOrPauseMp3(),"audioPlay";break;case"removeSubContent":if("video"===this.item.type)return this.removeVideoContent(),"videoStop";"audio"===this.item.type&&this.audioPlayer&&!this.audioPlayer.paused&&(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("gmWrapRotate"));break;default:return}}},{key:"addVideoContent",value:function(){var e=this.item.mime_type.split("/")[1];if(e)switch(this.videoWrap||(this.videoWrap=document.createElement("div"),this.videoWrap.className="video-wrap",this.videoWrapFrame=this.imageFrame,this.itemInner.appendChild(this.videoWrap)),e){case"youtube":this.videoWrap.innerHTML=n.youTubeCode.replace("%id%",this.item.videoId);break;case"vimeo":this.videoWrap.innerHTML=n.vimeoCode.replace("%id%",this.item.videoId)}}},{key:"removeVideoContent",value:function(){this.videoWrap&&(this.view.classList.remove("video-play"),this.videoWrap.parentNode&&this.videoWrap.parentNode.removeChild(this.videoWrap),this.videoWrap=void 0,this.view.classList.remove("video-play"),"image"!==this.item.type&&this.view.classList.add("info-icon"))}},{key:"tryPlayOrPauseMp3",value:function(){if("audio"===this.item.type){if(!this.audioPlayer){if(!document.getElementById("gmAudioPlayer"))return;this.audioPlayer=document.getElementById("gmAudioPlayer")}this.audioPlayer.src===this.item.url?this.audioPlayer.paused?(this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("gmWrapRotate")):(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("gmWrapRotate")):(this.audioPlayer.src=this.item.url,this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("gmWrapRotate"))}}},{key:"posX",set:function(e){this.view.style.left="".concat(this.size.width*e,"px"),this.positionIndex=e}},{key:"imageFrame",set:function(e){this.itemImg.style.left="".concat(e.x,"px"),this.itemImg.style.top="".concat(e.y,"px"),this.itemImg.style.width="".concat(e.width,"px"),this.itemImg.style.height="".concat(e.height,"px"),this.imageFramePr=e},get:function(){return this.imageFramePr}},{key:"videoWrapFrame",set:function(e){this.videoWrap.style.width="".concat(e.width,"px"),this.videoWrap.style.height="".concat(e.height,"px"),this.videoWrap.style.left="".concat(e.x,"px"),this.videoWrap.style.top="".concat(e.y,"px")}},{key:"isInScale",get:function(){return 1!==this.newScale||0!==this.origin.x||0!==this.origin.y}},{key:"viewTranslate",set:function(e){this.viewTranslatePr=e,this.itemInner.style.transform="matrix(".concat(this.scale,", 0, 0, \n ").concat(this.scale,", ").concat(e.x,", ").concat(e.y,")")},get:function(){return this.viewTranslatePr}},{key:"isSubContentActiv",get:function(){return!!this.videoWrap}}]),e}(),d=function(){function e(t,i){s(this,e),this.delegate=t,this.iconSet=e.ICONS,this.params=e.CONFIG,n.copyProperties(i,this.params),this.appName=this.delegate.appName,this.cacherItemsList=n.moduleSettings(this.appName).cacheItemsList,this.id="".concat(this.appName,"_vitSlider_"),this.itemsList=void 0,this.visibleBounds=n.Rect(0,0,0,0),this.isControllsShow=!1,this.isZooming=!1,this.needHideControlls=!1,this.naviButtonsStatus=void 0,this.firsrTap=void 0,this.removing=!1,this.createlayoutDelay=void 0,this.intitByTermDelay=void 0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.id="".concat(this.id,"main"),this.resizeDelay=void 0,this.size=n.Size(0,0);var o=document.createElement("div");o.className="".concat(e.classPref,"bg"),this.background=o,this.background.style.backgroundColor=this.params.backgroundColor,this.view.appendChild(o),this.sliderPages=[],this.dragging=!1,this.zoomingDrag=!1,this.speedX=0,this.speedY=0,this.scrollViewTranslateXPr=0,this.scrollViewTranslateYPr=0,this.startDragHandler=void 0,this.currentItemIndex=void 0,this.startItemIndex=0,this.items=[],this.itemsAmount=0,this.itemNumPr=void 0,this.pageInFocus=void 0,this.pageInFocusPrev=void 0,this.zoomingPage=void 0,this.FF_Mode=!1,this.mouseWheelMode=!1,this.animaSliderRender=void 0,this.slider=document.createElement("div"),this.slider.className="".concat(e.classPref,"wrap"),this.view.appendChild(this.slider)}return l(e,null,[{key:"classPref",get:function(){return"gmedia-slider-"}},{key:"ICONS",get:function(){return{PLAY_SVG:'<svg version="1.1" viewBox="0 0 50 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M48.479,27.435L5.672,0.915C2.553-1.132,0,0.374,0,4.261v51.48c0,3.885,2.553,5.391,5.672,3.346l42.807-26.52 c0,0,1.521-1.07,1.521-2.566S48.479,27.435,48.479,27.435z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',NOTE_SVG:'<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',NEXT_ARR:'<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="160,115.4 180.7,96 352,256 180.7,416 160,396.7 310.5,256 "/></svg>',PREV_ARR:'<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="352,115.4 331.3,96 160,256 331.3,416 352,396.7 201.5,256 "/></svg>'}}},{key:"EVENTS",get:function(){return{COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",UPDATE_CONTROLS:"UPDATE_CONTROLS",ZOOM:"ZOOM",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX"}}},{key:"CONFIG",get:function(){return{preloaderColor:"#494949",backgroundColor:"rgba(0,0,0,1)",navigationIconColor:"rgba(255,255,255,1)",navigationColor:"rgba(0,0,0,0.8)",zoom:!0,mouseWheel:!0,fit:!1,xOffset:2,yOffset:0,canRemoved:!1,trLin:"bit",tv:void 0,copyR_Alert:"Hello, this photo is mine!"}}}]),l(e,[{key:"copyRight",value:function(){var t,i=this;return function(o){if(!n.Device.ios||"mouseup"!==o.type){var a,s;o.changedTouches&&o.changedTouches[0]?(a=o.changedTouches[0].pageX,s=o.changedTouches[0].pageY):(a=o.pageX,s=o.pageY),a-=i.viewOfsetX,s-=i.viewOfsetY;var r=i.itemsList[i.itemIndex];if(r.webView&&r.webView===o.target){o.preventDefault();var l=document.getElementById("gm_copyr");l&&(clearTimeout(t),l.parentNode.removeChild(l),l=null),(l=document.createElement("div")).id="gm_copyr",l.className="".concat(e.classPref,"hints"),l.innerHTML=r.user&&r.user.displayname?"Hey, this photo is ©".concat(r.user.displayname):i.params.copyR_Alert,l.style.top="".concat(s,"px"),l.style.left="".concat(a,"px"),i.view.appendChild(l),t=setTimeout((function(){l.parentNode.removeChild(l)}),1e3)}}}}},{key:"initByStage",value:function(e){e.appendChild(this.view),this.copyR=this.copyRight(),document.addEventListener("contextmenu",this.copyR,!1),this.createControlls()}},{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=n.findHighestZIndex(i)+1,n.disableBodyScrollSlider(),document.addEventListener("contextmenu",t.copyR,!1),i.appendChild(this.view),setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),30)}},{key:"intitByTerm",value:function(t,i){i&&(this.startItemId=i),this.term=t;var o=this;n.moduleSettings(o.appName).appEventManager.addGMEventListener(e.EVENTS.COLLECTION_DATA_REDY,o,"dataLoaded"),this.intitByTermDelay=setTimeout((function(){o.showPreloader(!0),n.request(JSON.stringify({library:t.query}),o,e.EVENTS.COLLECTION_DATA_REDY)}),300)}},{key:"dataLoaded",value:function(e){var t=e.params.data;if(t){try{var i=JSON.parse(t);i.data&&this.addItemsToCollection(i.data)}catch(e){n.trace(e)}this.showPreloader(!1)}}},{key:"addItemsToCollection",value:function(e){for(var t=[],i=0,o=0;o<e.length;o+=1){var a=n.Item(e[o],this.appName);this.startItemId&&a.ID===this.startItemId&&(i=o),t.push(a)}this.term.itemsList=t,this.initByList(this.term.itemsList,i)}},{key:"initByList",value:function(e,t){if(e&&e.length>0){var i=this;this.currentItemIndex=t&&0!==t?0:void 0,this.startItemIndex=t||0,this.itemsList=e,this.createlayoutDelay=setTimeout((function(){i.createLayout()}),100)}}},{key:"prepareToRemove",value:function(){if(!this.removing){clearTimeout(this.createlayoutDelay),clearTimeout(this.intitByTermDelay);var t=this.scrollViewTranslateY/(this.size.height/2);if(this.pageInFocus&&this.pageInFocus.isSubContentActiv&&t<.2)"videoStop"===this.pageInFocus.action("click")&&(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow);else{if(this.removing=!0,this.cacherItemsList.init(),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(e.EVENTS.COLLECTION_DATA_REDY,this,"dataLoaded"),this.view.removeEventListener("wheel",this.handlerMWheel,!1),document.removeEventListener("contextmenu",this.copyR,!1),document.getElementById("gmAudioPlayer"))document.getElementById("gmAudioPlayer").pause();n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.REMOVE_LIGHTBOX,this,{}))}}}},{key:"remoteControl",value:function(t){if(this.startDragHandler||"esc"===t)switch(t){case"prev":n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{draging:!0})),this.gotoPrev();break;case"next":n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{draging:!0})),this.gotoNext();break;case"space":this.switchShowControlls(),this.needHideControlls=!this.isControllsShow;break;case"esc":this.prepareToRemove();break;case"zoom":this.zoomSwitch()}}},{key:"showPreloader",value:function(e){var t;if(e){if(document.getElementById("".concat(this.appName,"slider_preloader")))return;(t=n.createPreloaderView(this.params.preloaderColor)).id="".concat(this.appName,"slider_preloader"),this.view.appendChild(t)}else(t=document.getElementById("".concat(this.appName,"slider_preloader")))&&n.fadeOut(t,(function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),500)}},{key:"createLayout",value:function(){var t=this;this.itemsAmount=this.itemsList.length,this.size=n.Size(t.view.clientWidth,t.view.clientHeight),n.miniScreen&&this.slider.classList.add("miniScreen"),t.size.width<500&&(this.prevButton.classList.add("next-prev-button-mini-screen"),this.nextButton.classList.add("next-prev-button-mini-screen")),this.initSlider(),t.size.height<700&&this.slider.classList.add("miniScreen"),this.params.mouseWheel&&this.view.addEventListener("wheel",t.mouseWheelHandler(),!1),setTimeout((function(){t.showControlls(!0),n.moduleSettings(t.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{status:"ready"}))}),500)}},{key:"initSlider",value:function(){var e,t=0;if(0===this.sliderPages.length)for(t=0;t<3;t+=1)e=new c(this),this.slider.appendChild(e.view),this.sliderPages.push(e),e.resize(this.size);var i=this.itemsAmount>2?-1:0;for(t=0;t<3;t+=1)(e=this.sliderPages[t]).posX=i,e.itemIndex=void 0,i+=1;this.startDragHandler?this.gotoPageByNum(0):(this.startDragHandler=this.startDrag(),n.isTouchDevice&&(this.slider.addEventListener("touchstart",this.startDragHandler,n.passiveListener),window.addEventListener("touchmove",(function(){}),n.passiveListener)),this.slider.addEventListener("mousedown",this.startDragHandler,!1),this.gotoPageByNum(this.startItemIndex))}},{key:"sliderVerticalRender",value:function(){var e=1-Math.abs(this.scrollViewTranslateY)/(this.size.height/2);this.background.style.opacity=e,this.needHideControlls||(e<.8?this.showControlls(!1):this.showControlls(!0))}},{key:"tryOpenItemID",value:function(e){for(var t=0;t<this.itemsList.length;t+=1){if(this.itemsList[t].ID===e)return this.gotoPageByNum(t),!0}return!1}},{key:"gotoPageByNum",value:function(e){if((this.itemIndex||0===this.itemIndex)&&this.currentItemIndex){var t=this.itemIndex-e;this.gotoPageByIndex(this.currentItemIndex-t)}else this.gotoPageByIndex(e,!0)}},{key:"gotoNext",value:function(){this.gotoPageByIndex(this.currentItemIndex+1)}},{key:"gotoPrev",value:function(){this.gotoPageByIndex(this.currentItemIndex-1)}},{key:"renderTransformTo",value:function(e){var t=this;n.cancelAnimationFrame(t.animaSliderRender);var i=5*t.speedX,o=5*t.speedY,a=.2,s=.15;t.animaSliderRender=n.requestAnimationFrame((function r(){i=i*a+(e.x-t.scrollViewTranslateX)*s,o=o*a+(e.y-t.scrollViewTranslateY)*s,t.scrollViewTranslateX+=i,t.scrollViewTranslateY+=o,Math.abs(i)<1&&Math.abs(o)<1&&(t.dragging=!1),Math.abs(i)<.1&&Math.abs(o)<.1?(n.cancelAnimationFrame(t.animaSliderRender),t.scrollViewTranslateX=e.x,t.scrollViewTranslateY=e.y,t.sliderTransitionComplete({target:t.slider})):t.animaSliderRender=n.requestAnimationFrame(r)}))}},{key:"gotoPageByIndex",value:function(e,t){this.itemsAmount<3&&(e=Math.max(0,e),e=Math.min(this.itemsAmount-1,e)),Math.abs(this.currentItemIndex-e)>2&&(t=!0);var i=-e*this.size.width;t?(this.scrollViewTranslateX=i,this.sliderTransitionComplete({target:this.slider})):this.renderTransformTo(n.Point(i,this.scrollViewTranslateY))}},{key:"pageRenderByIndex",value:function(e){if(this.currentItemIndex!==e){void 0!==this.pageInFocus&&(this.pageInFocusPrev=this.pageInFocus,this.pageInFocus.isInScale&&(this.zoomingPage=this.pageInFocus));var t=0;if(this.itemsAmount<3){for(t=0;t<this.itemsAmount;t+=1)this.sliderPages[t].initByItem(this.itemsList[t]);return this.pageInFocus=this.sliderPages[e],this.currentItemIndex=e,void(this.itemIndex=e)}var i=(e+1)%3;i<0&&(i+=3);var o=i-1>=0?i-1:2,a=i+1<3?i+1:0,n=[o,i,a],s=[e-1,e,e+1];for(t=0;t<n.length;t+=1){this.sliderPages[n[t]].posX=s[t]}this.currentItemIndex=e,this.pageInFocus=this.sliderPages[i],this.itemIndex=e<0?this.itemsAmount+(e%this.itemsAmount==0?-this.itemsAmount:e%this.itemsAmount):e%this.itemsAmount,this.sliderPages[i].initByItem(this.itemsList[this.itemIndex]),this.sliderPages[a].initByItem(this.itemIndex+1<this.itemsAmount?this.itemsList[this.itemIndex+1]:this.itemsList[0]),this.sliderPages[o].initByItem(this.itemIndex-1<0?this.itemsList[this.itemsAmount-1]:this.itemsList[this.itemIndex-1])}}},{key:"sliderTransitionComplete",value:function(e){if(e.target===this.slider){var t=this.cacherItemsList.status();(t.list!==this.itemsList||t.list===this.itemsList&&this.itemIndex>=t.index)&&this.cacherItemsList.init(this.itemsList,this.itemIndex,5),void 0!==this.pageInFocusPrev&&this.pageInFocusPrev.action("removeSubContent"),void 0!==this.zoomingPage&&this.zoomingPage!==this.pageInFocus&&this.zoomingPage.normalize()}}},{key:"mouseWheelHandler",value:function(){var e,t=this,i=0,o=0;return t.handlerMWheel=function(a){if(!1!==t.mouseWheelMode){a.stopPropagation(),a.preventDefault();var s=n.Point(0,0);if("deltaX"in a)1===a.deltaMode?(s.x=18*a.deltaX,s.y=18*a.deltaY):(s.x=a.deltaX,s.y=a.deltaY);else if("wheelDelta"in a)a.wheelDeltaX&&(s.x=-.16*a.wheelDeltaX),a.wheelDeltaY?s.y=-.16*a.wheelDeltaY:s.y=-.16*a.wheelDelta;else{if(!("detail"in a))return;s.y=a.detail}var r=t.size.width/2,l=t.size.height/2;a.pageX&&(r=a.pageX,l=a.pageY),r-=t.viewOfsetX,l-=t.viewOfsetY,t.dragging||(e!==t.pageInFocus&&(e=void 0),t.zoomingPage&&t.zoomingPage!==t.pageInFocus&&(t.zoomingPage.normalize(),t.zoomingPage=void 0),e||(t.needHideControlls=t.isControllsShow,e=t.pageInFocus,t.zoomingPage=t.pageInFocus),r===i&&l===o||(e.startDrag(n.Point(r,l)),i=r,o=l),e.zoomByScaleIter(s.y,n.Point(r,l)),e.isInScale?t.showControlls(!1):(t.showControlls(t.needHideControlls),e=void 0))}},t.handlerMWheel}},{key:"zoomSwitch",value:function(){var e=n.Point(this.view.clientWidth/2,this.view.clientHeight/2);this.secondClick(e)}},{key:"fitMode",value:function(e){this.params.fit&&(this.FF_Mode=e);for(var t=0;t<this.sliderPages.length;t+=1)this.sliderPages[t].fit(!0)}},{key:"firstClick",value:function(e){if(this.pageInFocus.isPointInItem(e))if(this.pageInFocus.isInScale)this.pageInFocus.normalize(!0),this.zoomingPage=void 0,this.showControlls(this.needHideControlls);else switch(this.pageInFocus.action("click")){case"audioPlay":break;case"videoPlay":this.showControlls(!1),this.needHideControlls=!this.isControllsShow;break;case"videoStop":this.switchShowControlls(),this.needHideControlls=!this.isControllsShow;break;default:this.fitMode(this.isControllsShow),this.switchShowControlls(),this.needHideControlls=!this.isControllsShow}else this.params.canRemoved?this.prepareToRemove():this.params.canRemoved||this.pageInFocus&&this.pageInFocus.isSubContentActiv&&"videoStop"===this.pageInFocus.action("click")&&(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow)}},{key:"secondClick",value:function(e){if(this.params.zoom&&this.pageInFocus.isPointInItem(e))if(this.pageInFocus.isInScale)this.pageInFocus.normalize(!0),this.zoomingPage=void 0,this.showControlls(this.needHideControlls);else{if(this.zoomingPage&&this.zoomingPage.normalize(),this.zoomingPage=this.pageInFocus,this.zoomingPage.zoomIn(Math.abs(this.zoomingPage.imgScale-1)<.3?1.5:this.zoomingPage.imgScale,e),!this.zoomingPage.isInScale)return;this.needHideControlls=this.isControllsShow,this.showControlls(!1)}}},{key:"doubleClickController",value:function(e){if(!n.Device.ios||"mouseup"!==e.type){var t,i;e.changedTouches&&e.changedTouches[0]?(t=e.changedTouches[0].pageX,i=e.changedTouches[0].pageY):(t=e.pageX,i=e.pageY),t-=this.viewOfsetX,i-=this.viewOfsetY;var o=this;if(this.firsrTap)return clearTimeout(this.firsrTap),this.firsrTap=void 0,void this.secondClick(n.Point(t,i));this.firsrTap=setTimeout((function(){o.firsrTap=void 0,o.firstClick(n.Point(t,i))}),300)}}},{key:"startDrag",value:function(){var t,i,o,a,s,r,l,c,d,h=this,m=4,u=!0,p=45,g=h.viewOfsetY,v=h.viewOfsetX,f=0,w=0,y=0;function b(e){var t,c,d,b,x;if(e.originalEvent&&(e=e.originalEvent),e.touches?!h.dragging&&e.touches.length>1?h.params.zoom&&(l=!0,t=e.touches[0].pageX,c=e.touches[0].pageY,d=e.touches[1].pageX,b=e.touches[1].pageY,x=Math.hypot(t-d,c-b),t+=(d-t)/2,c+=(b-c)/2):(l=!1,t=e.touches[0].pageX,c=e.touches[0].pageY):(t=e.pageX,c=e.pageY),t-=v,c-=g,!(n.Device.ios&&i<=20)){var C,k;if(void 0===r)u&&c===o||!u&&t===i?r=!1:(C=180*Math.atan2(Math.abs(c-o),Math.abs(t-i))/Math.PI,r=u?C>45:90-C>p);if(!h.dragging&&h.zoomingPage){e.preventDefault();var T=Math.abs(i-t)>m?i-t:0,E=Math.abs(o-c)>m?o-c:0;return(T||E)&&(h.zoomingDrag=!0),void(l?h.pageInFocus.zoomByScaleDeltaToPoint(x,n.Point(T,E),n.Point(t,c)):h.zoomingPage&&h.zoomingPage.dragin(n.Point(T,E)))}r?(f=0,(k=Math.abs(o-c)>m?o-c:0)&&(h.dragging=!0),h.params.canRemoved&&(h.scrollViewTranslateY=s-k)):(e.preventDefault(),h.transition=!0,(k=Math.abs(i-t)>m?i-t:0)&&(h.dragging=!0),h.scrollViewTranslateX=a-k,w=y,y=h.scrollViewTranslateX,f=y-w)}}function x(e){if(r=void 0,n.isTouchDevice&&(document.removeEventListener("touchmove",b,n.passiveListener),document.removeEventListener("touchend",x,n.passiveListener)),document.removeEventListener("mousemove",b,!1),document.removeEventListener("mouseup",x,!1),document.removeEventListener("oncontextmenu",x,!1),h.dragging||l||h.zoomingDrag){if(h.zoomingPage&&(h.zoomingPage.stopDrag(),l=!1),!h.zoomingPage)if(Math.abs(h.scrollViewTranslateY)<m){var i=h.currentItemIndex,o=n.isTouchDevice?7:1;Math.abs(f)>o&&t===h.currentItemIndex&&(i=f>0?i-1:i+1),h.speedX=f,h.scrollViewTranslateY=0,h.gotoPageByIndex(i)}else{var a=h.scrollViewTranslateY/(h.size.height/2);Math.abs(a)>.2?h.prepareToRemove():h.renderTransformTo(n.Point(h.scrollViewTranslateX,0))}this.dragging=!1}else h.doubleClickController(e);h.zoomingDrag=!1,d=e.type}return function(r){var m,u,p,C;"mousedown"===r.type&&"touchend"===d||(h.zoomingPage=h.pageInFocus.isInScale?h.pageInFocus:void 0,n.cancelAnimationFrame(h.animaSliderRender),t=h.currentItemIndex,r.originalEvent&&(r=r.originalEvent),n.isTouchDevice||r.preventDefault(),r.button&&0!==r.button||(r.touches?!h.dragging&&r.touches.length>1?(l=!0,m=r.touches[0].pageX,u=r.touches[0].pageY,p=r.touches[1].pageX,C=r.touches[1].pageY,c=Math.hypot(m-p,u-C),m+=(p-m)/2,u+=(C-u)/2,h.zoomingPage=h.pageInFocus,h.needHideControlls=h.isControllsShow,h.showControlls(!1)):(m=r.touches[0].pageX,u=r.touches[0].pageY):(m=r.pageX,u=r.pageY),m-=v,u-=g,h.speedX=0,h.speedY=0,f=0,w=0,y=h.scrollViewTranslateX,i=m,o=u,a=h.scrollViewTranslateX,s=h.scrollViewTranslateY,n.moduleSettings(h.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,h,{draging:!0})),h.zoomingPage&&h.zoomingPage.startDrag(n.Point(i,o),c),n.isTouchDevice&&(document.addEventListener("touchmove",b,n.passiveListener),document.addEventListener("touchend",x,n.passiveListener)),document.addEventListener("mousemove",b,!1),document.addEventListener("mouseup",x,!1),document.addEventListener("oncontextmenu",x,!1)))}}},{key:"createControlls",value:function(){var t=this;function i(e){e.style.backgroundColor=t.params.navigationIconColor,e.childNodes[0].style.fill=t.params.navigationColor}function o(e){e.style.backgroundColor=t.params.navigationColor,e.childNodes[0].style.fill=t.params.navigationIconColor}this.prevButton=document.createElement("div"),this.prevButton.className="".concat(e.classPref,"next-prev-button"),this.prevButton.style.left="".concat(0,"px"),this.prevButton.style.transform="translate(-150%, -50%)",this.prevButton.style.backgroundColor=t.params.navigationColor,this.prevButton.style.visibility="hidden",this.prevButton.innerHTML=e.ICONS.PREV_ARR,this.prevButton.childNodes[0].style.fill=t.params.navigationIconColor,this.prevButton.onmouseover=function(){i(this)},this.prevButton.onmouseout=function(){o(this)},this.prevButton.onclick=function(){n.moduleSettings(t.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),t.gotoPrev(),n.Device.desktop||o(this)},this.view.appendChild(this.prevButton),this.nextButton=document.createElement("div"),this.nextButton.className="".concat(e.classPref,"next-prev-button"),this.nextButton.style.backgroundColor=t.params.navigationColor,this.nextButton.style.right="0px",this.nextButton.style.transform="translate(150%, -50%)",this.nextButton.style.visibility="hidden",this.nextButton.innerHTML=e.ICONS.NEXT_ARR,this.nextButton.childNodes[0].style.fill=t.params.navigationIconColor,this.nextButton.onmouseover=function(){i(this)},this.nextButton.onmouseout=function(){o(this)},this.nextButton.onclick=function(){n.moduleSettings(t.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,t,{draging:!0})),t.gotoNext(),n.Device.desktop||o(this)},this.view.appendChild(this.nextButton)}},{key:"switchShowControlls",value:function(){this.showControlls(!this.isControllsShow)}},{key:"showHideNaviButton",value:function(e){if(this.naviButtonsStatus!==e){switch(e){case"show":if(this.isZoom)return;this.prevButton.style.transform="translate(0%, -50%)",this.nextButton.style.transform="translate(0%, -50%)";break;case"hide":this.prevButton.style.transform="translate(-150%, -50%)",this.nextButton.style.transform="translate(150%, -50%)"}this.naviButtonsStatus=e}}},{key:"showControlls",value:function(t){this.isZooming!==this.isZoom&&(this.isZooming=this.isZoom,n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{zoom:this.isZoom?"zoomIn":"zoomOut"})),this.isZoom?this.showHideNaviButton("hide"):this.showHideNaviButton("show")),this.isControllsShow!==t&&(t?(n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{controls:"show"})),this.showHideNaviButton("show")):n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{controls:"hide"})),this.isControllsShow=t)}},{key:"updateControlls",value:function(){this.itemsAmount<3?(0===this.itemIndex?this.prevButton.style.visibility="hidden":this.prevButton.style.visibility="visible",this.itemIndex===this.itemsAmount-1?this.nextButton.style.visibility="hidden":this.nextButton.style.visibility="visible",1===this.itemsAmount&&(this.prevButton.style.visibility="hidden",this.nextButton.style.visibility="hidden")):(this.prevButton.style.visibility="visible",this.nextButton.style.visibility="visible");var t=this.itemsList[this.itemIndex];t&&n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.UPDATE_CONTROLS,this,{item:t,itemIndex:this.itemIndex}))}},{key:"resizeHandler",value:function(e){var t=this;this.resizeDelay&&clearTimeout(this.resizeDelay),n.cancelAnimationFrame(this.animaSliderRender),this.resizeDelay=setTimeout((function(){if(t.size=e,t.size.height<410&&(t.showControlls(!1,!0),t.needHideControlls=!0),t.size.width<500?(t.prevButton.classList.add("next-prev-button-mini-screen"),t.nextButton.classList.add("next-prev-button-mini-screen")):(t.prevButton.classList.remove("next-prev-button-mini-screen"),t.nextButton.classList.remove("next-prev-button-mini-screen")),0!==t.sliderPages.length){for(var i=0;i<t.sliderPages.length;i+=1)t.sliderPages[i].resize(t.size);t.gotoPageByIndex(t.currentItemIndex,!0),t.showControlls(!0)}}),70)}},{key:"viewOfsetY",get:function(){return this.view.getBoundingClientRect().top-document.body.getBoundingClientRect().top}},{key:"viewOfsetX",get:function(){return this.view.getBoundingClientRect().left-document.body.getBoundingClientRect().left}},{key:"itemIndex",set:function(e){this.itemNumPr=e,this.updateControlls()},get:function(){return this.itemNumPr}},{key:"scrollViewTranslateY",set:function(e){this.scrollViewTranslateYPr=e,this.slider.style.transform="translate3d(".concat(this.scrollViewTranslateX,"px,").concat(e,"px, 0px"),0!==e&&this.sliderVerticalRender()},get:function(){return this.scrollViewTranslateYPr}},{key:"scrollViewTranslateX",set:function(e){this.scrollViewTranslateXPr=e,this.slider.style.transform="translate3d(".concat(e,"px,").concat(this.scrollViewTranslateY,"px, 0px"),this.pageRenderByIndex(-Math.round(e/this.size.width))},get:function(){return this.scrollViewTranslateXPr}},{key:"isZoom",get:function(){return!!this.pageInFocus&&this.pageInFocus.isInScale}}]),e}();i(9);function h(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t,i){return t&&h(e.prototype,t),i&&h(e,i),e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function e(t,i,o,a,n,s,r){u(this,e);var l=document.createElement("div");return l.className=t,l.dataset.type=o,l.innerHTML=i,l.style.backgroundColor=a,l.style.order=r,l.style.fill=n,l.addEventListener("click",s,!1),l.addEventListener("mouseenter",s,!1),l.addEventListener("mouseleave",s,!1),l},g=function(){function e(t,i,o){u(this,e);var a=this;this.appName=t.appName;var s=e.MENU_TYPE,r=e.CONFIG;function l(e){"like"===e.dataset.type&&e.dataset.like||("bookmark"===e.dataset.type&&e.dataset.bookmark?e.style.backgroundColor=a.backgroundColor:(e.style.backgroundColor=a.backgroundColor,e.style.fill=a.iconColor))}function c(t){if("click"===t.type){var i=a.item;if(!i)return;var o={};switch(o.type=this.dataset.type,o.item=i,this.dataset.type){case"like":case"bookmark":case"fullscreen":l(this)}n.Device.desktop||l(this),n.moduleSettings(a.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.ITEM_MENU_ACTION,a,o))}else"mouseenter"===t.type?"bookmark"===(s=this).dataset.type&&s.dataset.bookmark?s.style.backgroundColor=a.backgroundColorOver:(s.style.backgroundColor=a.backgroundColorOver,s.style.fill=a.iconColorOver):"mouseleave"===t.type&&l(this);var s}n.copyProperties(o,r),this.delegate=t,this.item=void 0,this.lightbox=i===s.LIGHTBOX,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.classList.add(i),this.backgroundColor=r.backgroundColor,this.backgroundColorOver=r.backgroundColorOver,this.iconColor=r.iconColor,this.iconColorOver=r.iconColorOver,r.link&&(this.linkButton=new p("".concat(e.classPref,"button"),i===s.ULTRABOX?n.ICONS.LINK_2_SVG:n.ICONS.LINK_SVG,"link",this.backgroundColor,this.iconColor,c,i===s.ULTRABOX?6:0),this.view.appendChild(this.linkButton)),r.play&&(this.playButton=new p("".concat(e.classPref,"button"),n.ICONS.PLAY_SVG,"play",this.backgroundColor,this.iconColor,c,1),this.view.appendChild(this.playButton)),r.zoom&&(this.zoomButton=new p("".concat(e.classPref,"button"),n.ICONS.ZOOM_IN_SVG,"zoom",this.backgroundColor,this.iconColor,c,2),this.view.appendChild(this.zoomButton)),r.info&&(this.infoButton=new p("".concat(e.classPref,"button"),n.ICONS.INFO_SVG,"info",this.backgroundColor,this.iconColor,c,i===s.ULTRABOX?5:3),this.view.appendChild(this.infoButton)),r.discuss&&(this.commentsButton=new p("".concat(e.classPref,"button"),i===s.ULTRABOX?n.ICONS.COMENTS_2_SVG:n.ICONS.COMENTS_SVG,"coments",this.backgroundColor,this.iconColor,c,(s.ULTRABOX,4)),this.view.appendChild(this.commentsButton)),r.download&&(this.downloadButton=new p("".concat(e.classPref,"button"),i===s.ULTRABOX?n.ICONS.DOWNLOAD_2_SVG:n.ICONS.DOWNLOAD_SVG,"download",this.backgroundColor,this.iconColor,c,i===s.ULTRABOX?3:5),this.view.appendChild(this.downloadButton)),r.share&&(this.shareButton=new p("".concat(e.classPref,"button"),i===s.ULTRABOX?n.ICONS.SHARE_2_SVG:n.ICONS.SHARE_SVG,"share",this.backgroundColor,this.iconColor,c,i===s.ULTRABOX?2:6),this.view.appendChild(this.shareButton)),r.bookmark&&(this.bookMarkButton=new p("".concat(e.classPref,"button"),n.ICONS.BOOKMARK_SVG,"bookmark",this.backgroundColor,this.iconColor,c),this.view.appendChild(this.bookMarkButton)),r.like&&(this.likeButton=new p("".concat(e.classPref,"button"),i===s.ULTRABOX?n.ICONS.HEART_2_SVG:n.ICONS.HEART_SVG,"like",this.backgroundColor,this.iconColor,c,i===s.ULTRABOX?1:7),this.view.appendChild(this.likeButton)),r.fulscreen&&(this.fullscreenButton=new p("".concat(e.classPref,"button"),n.ICONS.FULL_SCREEN_SVG,"fullscreen",this.backgroundColor,this.iconColor,c,i===s.ULTRABOX?6:8),this.view.appendChild(this.fullscreenButton)),r.close&&(this.closeButton=new p("".concat(e.classPref,"button"),n.ICONS.CLOSE_SVG,"close",this.backgroundColor,this.iconColor,c,9),this.view.appendChild(this.closeButton))}return m(e,null,[{key:"classPref",get:function(){return"gmedia-item-menu-"}},{key:"EVENTS",get:function(){return{ITEM_MENU_ACTION:"ITEM_MENU_ACTION"}}},{key:"MENU_TYPE",get:function(){return{THUMB:"".concat(e.classPref,"type-thumb"),LIGHTBOX:"".concat(e.classPref,"type-lightbox"),ULTRABOX:"".concat(e.classPref,"type-ultrabox")}}},{key:"CONFIG",get:function(){return{linkTargetWindow:"_self",backgroundColor:"rgb(0,0,0)",backgroundColorOver:"rgb(255,255,255)",iconColor:"rgb(255,255,255)",iconColorOver:"rgb(0,0,0)",link:!1,play:!1,zoom:!1,info:!1,discuss:!1,download:!1,share:!1,like:!1,bookmark:!1,fulscreen:!1,close:!1}}}]),m(e,[{key:"updateForItem",value:function(e){if(this.item=e,this.zoomButton&&("image"!==e.type?this.zoomButtonStatus("desable"):this.zoomButtonStatus("zoomOut")),this.likeButton&&this.delegate.likesSet&&(this.delegate.likesSet[e.ID]?(this.likeButton.style.fill="red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.setAttribute("data-like",e.ID)):(this.likeButton.style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",this.likeButton.removeAttribute("data-like"))),this.bookMarkButton&&(this.delegate.is_containIdInBookmarkSet(this.item.ID)||0===this.delegate.is_containIdInBookmarkSet(this.item.ID)?(this.bookMarkButton.setAttribute("data-bookmark",e.ID),this.bookMarkButton.style.fill="red"):(this.bookMarkButton.removeAttribute("data-bookmark"),this.bookMarkButton.style.fill=this.iconColor)),this.linkButton&&(e.link?(this.linkButton.style.display="block",this.linkButton.style.opacity="1",this.linkButton.style.cursor="pointer",this.linkButton.style.pointerEvents="all"):(this.linkButton.style.opacity="0",this.linkButton.style.display="none",this.linkButton.style.cursor="default",this.linkButton.style.pointerEvents="none")),this.commentsButton)switch(e.comment_status){case"open":this.commentsButton.style.display=null;break;case"closed":this.commentsButton.style.display="none"}}},{key:"zoomButtonStatus",value:function(e){if(this.zoomButton&&this.zoomStatus!==e){switch(e){case"desable":this.zoomButton.innerHTML=n.ICONS.ZOOM_IN_SVG,this.zoomButton.style.pointerEvents="none",this.zoomButton.style.opacity=.4;break;case"zoomOut":this.zoomButton.innerHTML=n.ICONS.ZOOM_IN_SVG,this.zoomButton.style.pointerEvents="auto",this.zoomButton.style.opacity=1;break;case"zoomIn":this.zoomButton.innerHTML=n.ICONS.ZOOM_OUT_SVG,this.zoomButton.style.pointerEvents="auto",this.zoomButton.style.opacity=1}this.zoomStatus=e}}},{key:"playButtonStatus",value:function(e){if(this.playButton&&this.playStatus!==e){switch(e){case"play":this.playButton.innerHTML=n.ICONS.PAUSE_SVG;break;case"stop":this.playButton.innerHTML=n.ICONS.PLAY_SVG}this.playStatus=e}}},{key:"resizeHandler",value:function(){var e=document.webkitIsFullScreen||document.mozFullScreen||!1;this.fullscreenButton&&(this.fullscreenButton.innerHTML=e?n.ICONS.NORMAL_SCREEN_SVG:n.ICONS.FULL_SCREEN_SVG,this.fullscreenButton.style.fill=this.iconColor)}}]),e}();i(11);function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t,i){return t&&f(e.prototype,t),i&&f(e,i),e}var y=function(){function e(t){v(this,e);var i=this;function o(e){switch(e.type){case"mouseenter":i.selector.style.opacity="1";break;case"mouseleave":i.selectedPr||(i.selector.style.opacity="0")}}this.delegate=t,this.appName=t.appName,this.item=void 0,this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"item"),this.bgImg=document.createElement("div"),this.bgImg.className="".concat(e.classPref,"item-bg"),this.view.appendChild(this.bgImg),this.imgSRC=void 0,this.selector=document.createElement("div"),this.selector.className="".concat(e.classPref,"item-hover"),this.selector.style.borderColor=this.delegate.config.itemBgColor,this.view.appendChild(this.selector),this.selectedPr=!1,this.view.addEventListener("mouseenter",o,!1),this.view.addEventListener("mouseleave",o,!1)}return w(e,null,[{key:"classPref",get:function(){return"gmedia-scroll-bar-"}}]),w(e,[{key:"initByItem",value:function(t){if(this.item=t,this.imgSRC=t.itemViewThumbSrc,this.bgImg.style.backgroundImage="url(".concat(this.imgSRC,")"),this.type=t.type,"audio"===this.type||"video"===this.type){switch(this.hover=document.createElement("div"),this.hover.className="".concat(e.classPref,"item-link"),this.hover.style.backgroundColor=this.delegate.config.itemBgColor,this.type){case"audio":this.hover.innerHTML=n.ICONS.NOTE_SVG;break;case"video":"vimeo"===this.item.mime_type.split("/")[1]?this.hover.innerHTML=n.ICONS.VIMEO_SVG:this.hover.innerHTML=n.ICONS.YOU_TUBE_SVG}this.view.appendChild(this.hover)}}},{key:"select",value:function(e){this.selector.style.opacity=e?"1":"0",this.selectedPr=e}}]),e}(),b=function(){function e(t,i){v(this,e),this.delegate=t,this.config=e.CONFIG,n.copyProperties(i,this.config),this.appName=t.appName,this.itemsList=[],this.thumbSize=n.Size(70,50),this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"wrap"),this.scrollView=document.createElement("div"),this.scrollView.className="".concat(e.classPref,"view"),this.scrollView.style.width="0px",this.view.appendChild(this.scrollView),this.thumbsList=[],this.itemsInStageCount=0,this.scrollWidthPr=0,this.viewCompleted=!1,this.dragging=!1,this.scrollViewTranslateX=0,this.startDragHandler=void 0,this.animationRender=void 0,this.speedX=0,this.activIndex=void 0,this.activAudioIndex=void 0}return w(e,null,[{key:"classPref",get:function(){return"gmedia-scroll-bar-"}},{key:"CONFIG",get:function(){return{itemBgColor:"rgba(255,255,255,0.6)"}}},{key:"EVENTS",get:function(){return{ITEMS_SCROLL_BAR_ITEM_ACTION:"ITEMS_SCROLL_BAR_ITEM_ACTION"}}}]),w(e,[{key:"initByItemslist",value:function(e){this.itemsList=e;var t=new y(this);this.scrollView.appendChild(t.view),this.thumbSize.width=t.view.clientWidth,this.thumbSize.height=t.view.clientHeight,this.scrollView.removeChild(t.view),this.prepare(),this.scrollWidthPr=this.thumbSize.width*this.itemsList.length,this.scrollView.style.width="".concat(this.scrollWidthPr+5,"px"),this.scrollViewTranslateX=0,this.updateView()}},{key:"addThumbByIndex",value:function(t){if(!this.thumbsList[t]){var i=this,o=new y(this);this.thumbsList[t]=o,this.itemsInStageCount+=1,n.isTouchDevice&&o.view.addEventListener("touchend",a,!1),o.view.addEventListener("mouseup",a,!1),o.view.style.left="".concat(this.thumbSize.width*t,"px"),this.scrollView.appendChild(o.view),o.initByItem(this.itemsList[t]),o.view.dataset.gmIndex=t}function a(t){"touchend"!==t.type&&"mouseup"!==t.type||i.dragging||(i.delegate.slider&&n.moduleSettings(i.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,i,{action:"click",index:parseInt(this.dataset.gmIndex)})),i.startDragHandler&&i.startDragHandler())}}},{key:"changeAudioStatusForIndex",value:function(e,t){var i=this.thumbsList[e];!this.activAudioIndex&&0!==this.activAudioIndex||e===this.activAudioIndex||(this.thumbsList[this.activAudioIndex].musicIdentifireStatus="ended"),i.musicIdentifireStatus=t.type,this.activAudioIndex=e}},{key:"prepare",value:function(){this.scrollWidthPr=0,this.scrollView.style.transform="translateX(0px)",this.scrollView.style.width="0px",this.scrollViewTranslateXPr=0}},{key:"resizeHandler",value:function(){this.updateView()}},{key:"selectThumbByIndex",value:function(e){if(void 0!==e&&0!==this.itemsList.length){var t;if((this.activIndex||0===this.activIndex)&&(t=this.thumbsList[this.activIndex])&&t.select(!1),this.thumbsList[e]||this.addThumbByIndex(e),t=this.thumbsList[e]){t.select(!0);var i=this.thumbSize.width*e,o=i+this.scrollViewTranslateX,a=o+this.thumbSize.width;(o<0||a<0)&&this.renderTransformTo(n.Point(-i,0)),(o>this.view.clientWidth||a>this.view.clientWidth)&&this.renderTransformTo(n.Point(this.view.clientWidth-this.thumbSize.width-i,0)),this.scrollWidthPr>this.view.clientWidth&&(this.scrollViewTranslateX=Math.max(this.scrollViewTranslateX,-(this.scrollWidthPr-this.view.clientWidth)))}this.activIndex=e}}},{key:"updateView",value:function(){if(this.selectThumbByIndex(this.activIndex),this.view.clientWidth/this.scrollWidthPr<1){if(this.scrollViewTranslateX=this.scrollViewTranslateXPr,this.viewCompleted)return;this.scrollView.classList.add("gm_grabbable"),this.startDragHandler=this.startDrag(),n.isTouchDevice&&this.scrollView.addEventListener("touchstart",this.startDragHandler,n.passiveListener),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0}else{if(this.scrollView.classList.remove("gm_grabbable"),this.scrollViewTranslateX=(this.view.clientWidth-this.scrollWidthPr)/2,!this.viewCompleted)return;n.isTouchDevice&&this.scrollView.removeEventListener("touchstart",this.startDragHandler,n.passiveListener),this.scrollView.removeEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!1}}},{key:"renderTransformTo",value:function(e){var t=this;n.cancelAnimationFrame(t.animationRender);var i=0,o=.2,a=.1;t.animationRender=requestAnimationFrame((function n(){i=i*o+(e.x-t.scrollViewTranslateX)*a,t.scrollViewTranslateX+=i,Math.abs(i)<.04?(cancelAnimationFrame(t.animationRender),t.scrollViewTranslateX=e.x):t.animationRender=requestAnimationFrame(n)}))}},{key:"startDrag",value:function(){var e,t,i=this,o=5*i.speedX,a=0,s=0,r=.95,l=1;function c(){return-i.scrollWidthPr+i.view.clientWidth}function d(){if(i.scrollViewTranslateX>0?o=.2*o+.1*(0-i.scrollViewTranslateX):i.scrollViewTranslateX<c()?o=.2*o+.1*(c()-i.scrollViewTranslateX):o*=r,i.scrollViewTranslateX+=o,Math.abs(o)<.4){n.cancelAnimationFrame(i.animationRender),i.speedX=o;var e=o<0?Math.max(Math.ceil(-i.scrollViewTranslateXPr/i.thumbSize.width),0):Math.max(Math.floor(-i.scrollViewTranslateXPr/i.thumbSize.width),0);i.renderTransformTo(n.Point(Math.max(c(),-e*i.thumbSize.width),0))}else i.animationRender=requestAnimationFrame(d)}function h(n){var r;n.preventDefault(),r=n.touches&&n.touches[0]?n.touches[0].pageX:n.pageX;var c=e-r;c&&(i.dragging=!0),i.scrollViewTranslateX=t-c,a=s,s=i.scrollViewTranslateX,o=(s-a)*l}function m(e){e.preventDefault(),i.scrollView.style.transition=null,n.isTouchDevice&&(document.removeEventListener("touchmove",h,n.passiveListener),document.removeEventListener("touchend",m,n.passiveListener),document.removeEventListener("touchcancel",m,!1)),document.removeEventListener("mousemove",h,!1),document.removeEventListener("mouseup",m,!1),document.removeEventListener("oncontextmenu",m,!1),(0!==o||i.scrollViewTranslateX>0||i.scrollViewTranslateX<c())&&(i.animationRender=requestAnimationFrame(d)),i.dragging=!1}return function(a){if(!a)return o=0,t=i.scrollViewTranslateX,void n.cancelAnimationFrame(i.animationRender);var r;(n.isTtouchDevice||a.preventDefault(),a.button&&0!==a.button)||(o=0,s=i.scrollViewTranslateX,r=a.touches&&a.touches[0]?a.touches[0].pageX:a.pageX,e=r,t=i.scrollViewTranslateX,n.cancelAnimationFrame(i.animationRender),n.isTouchDevice&&(document.addEventListener("touchmove",h,n.passiveListener),document.addEventListener("touchend",m,n.passiveListener),document.addEventListener("touchcancel",m,!1)),document.addEventListener("mousemove",h,!1),document.addEventListener("mouseup",m,!1),document.addEventListener("oncontextmenu",m,!1))}}},{key:"size",set:function(e){var t=Math.floor(e.width/this.thumbSize.width);if(t<3)this.view.style.width="0";else{var i=Math.min(t,this.itemsList.length)*this.thumbSize.width;this.view.style.width="".concat(i,"px"),e.height&&(this.view.style.height="".concat(this.thumbSize.height,"px")),this.resizeHandler()}}},{key:"scrollViewTranslateX",set:function(e){if(this.scrollViewTranslateXPr=e,this.scrollView.style.transform="translateX(".concat(e,"px)"),this.itemsList.length!==this.itemsInStageCount)for(var t=Math.max(Math.floor(-e/this.thumbSize.width),0),i=Math.min(t+Math.ceil(this.view.clientWidth/this.thumbSize.width),this.itemsList.length-1),o=t;o<=i;o+=1)this.addThumbByIndex(o)},get:function(){return this.scrollViewTranslateXPr}}]),e}();i(13);function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,t,i){return t&&C(e.prototype,t),i&&C(e,i),e}var T=function(){function e(t,i){x(this,e),this.delegate=t,this.appName=t.appName,this.config=e.CONFIG,n.copyProperties(i,this.config);this.view=document.createElement("div"),this.view.className="gmedia-lightbox-b-autoplay-wrap",this.view.innerHTML='<svg class="gmedia_progress-radial" width="22px" height="22px" viewBox="0 0 100 100" shape-rendering="geometricPrecision"><defs><mask id="circle_mask" x="0" y="0" width="100" height="100" maskUnits="userSpaceOnUse"><circle cx="50" cy="50" r="51" stroke-width="0" fill="black" opacity="1"/><circle cx="50" cy="50" r="50" stroke-width="0" fill="white" opacity="1"/><circle class="gmedia_progress-radial-mask-inner" cx="50" cy="50" r="40" stroke-width="0" fill="black" opacity="1"/></mask></defs><g mask="url(#circle_mask)"><circle class="gmedia_progress-radial-track" cx="50" cy="50" r="50" stroke-width="0" opacity="1"/><path class="gmedia_progress-radial-bar" transform="translate(50, 50)"d="M 0 0"></path></g></svg>',this.bar=this.view.getElementsByClassName("gmedia_progress-radial-bar")[0],this.bar.style.fill=this.config.autoPlayColor,this.view.getElementsByClassName("gmedia_progress-radial-track")[0].style.fill=this.config.autoPlayBgColor,this.animRatio=25,this.counter=0,this.durationCount=25*this.config.slideshowDelay,this.interval=void 0,this.anPart=0,this.status=void 0}return k(e,null,[{key:"CONFIG",get:function(){return{autoPlayBgColor:"rgba(255,255,255, 0.3)",autoPlayColor:"rgba(255,255,255, 1)",slideshowDelay:8}}},{key:"EVENTS",get:function(){return{NEXT_SLIDE:"NEXT_SLIDE",PLAY:"PLAY"}}}]),k(e,[{key:"drawProgress",value:function(t){if(!isNaN(t)){t=e.clamp(parseFloat(t),0,1);var i=e.clamp(360*t,0,359.99999),o=i*Math.PI/180,a=51*Math.sin(o),n=-51*Math.cos(o),s=i>180?1:0,r="M 0 0 v -%@ A %@ %@ 1 ".replace(/%@/gi,51),l="".concat(r+s," 1 ").concat(a," ").concat(n," z");this.bar.setAttribute("d",l)}}},{key:"switch",value:function(){"play"===this.status?this.clear():this.start()}},{key:"start",value:function(){var t=this;this.view.style.opacity=1;var i=1/this.durationCount;this.interval=setInterval((function(){t.counter+=1,t.counter>=t.durationCount&&(clearInterval(t.interval),n.moduleSettings(t.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.NEXT_SLIDE,t,{})),t.counter=0,t.start()),t.drawProgress(i*t.counter)}),1e3/this.animRatio),"play"!==this.status&&(this.status="play",n.moduleSettings(t.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.PLAY,t,{status:this.status})))}},{key:"pause",value:function(){clearInterval(this.interval),this.status="pause"}},{key:"clear",value:function(){clearInterval(this.interval),this.counter=0,this.drawProgress(0),this.view.style.opacity=0,this.status="stop",n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.PLAY,this,{status:this.status}))}}],[{key:"clamp",value:function(e,t,i){return Math.max(t,Math.min(i,e))}}]),e}(),E=function(){function e(t,i){x(this,e),this.delegate=t,this.config=e.CONFIG,n.copyProperties(i,this.config),this.appName=t.appName,this.headerFooterStatus=void 0,this.headerStatus=void 0,this.mouseMovingTimer=void 0,this.resizeDelay=void 0,this.size=n.Size(0,0),this.view=document.createElement("div"),this.view.className="".concat(e.classPref,"view"),this.view.id="".concat(this.appName,"_lightbox"),n.Device.desktop||(this.view.style.height="100%");var o=document.createElement("div");o.className="".concat(e.classPref,"bg"),this.background=o,this.view.appendChild(o),this.content=document.createElement("div"),this.content.className="".concat(e.classPref,"content");var a=d.CONFIG;a.backgroundColor=this.config.backgroundColor,a.preloaderColor=this.config.preloaderColor,a.navigationColor=this.config.sliderNavigationColor,a.navigationIconColor=this.config.sliderNavigationIconColor,a.fit=!0;var s=this.config.thumbBarEnable?60:this.config.headerFooterHeight;a.yOffset=n.miniScreen?0:s,a.canRemoved=!0,a.copyR_Alert=this.config.copyR_Alert,a.zoom=this.config.zoom,n.moduleSettings(this.appName).appEventManager.addGMEventListener(d.EVENTS.UPDATE_CONTROLS,this,"updateViewControls"),n.moduleSettings(this.appName).appEventManager.addGMEventListener(d.EVENTS.REMOVE_LIGHTBOX,this,"prepareToRemove"),n.moduleSettings(this.appName).appEventManager.addGMEventListener(T.EVENTS.PLAY,this,"slideShowSwitchHandler"),n.moduleSettings(this.appName).appEventManager.addGMEventListener(T.EVENTS.NEXT_SLIDE,this,"slideshowHandler"),n.moduleSettings(this.appName).appEventManager.addGMEventListener(b.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,"scrollBarHandler"),this.slider=new d(this,a),this.slider.initByStage(this.content),this.slider.mouseWheelMode=this.config.zoom,this.view.appendChild(this.content),this.header=document.createElement("div"),this.header.className="".concat(e.classPref,"header"),this.header.style.backgroundImage="linear-gradient(0deg,rgba(0,0,0,0),".concat(this.config.headerFooterColor,")"),this.view.appendChild(this.header),this.footer=document.createElement("div"),this.footer.className="".concat(e.classPref,"footer"),this.footer.style.minHeight="".concat(this.config.headerFooterHeight,"px"),n.isTouchDevice&&this.footer.classList.add("".concat(e.classPref,"touch-device")),n.miniScreen&&(this.footer.style.backgroundImage="linear-gradient(0deg,".concat(this.config.headerFooterColor,",rgba(0,0,0,0))")),this.view.appendChild(this.footer),this.infoBar1=document.createElement("div"),this.infoBar1.className="".concat(e.classPref,"info-wrap"),this.header.appendChild(this.infoBar1),this.config.itemTitleEnable&&(this.itemTitle=document.createElement("div"),this.itemTitle.className="".concat(e.classPref,"item-title"),this.itemTitle.style.fontSize="".concat(this.config.itemTitleFontSize,"px"),this.itemTitle.style.color=this.config.itemTitleTextColor,this.infoBar1.appendChild(this.itemTitle));var r=document.createElement("div");r.className="".concat(e.classPref,"caption-wrap"),r.style.color=this.config.itemCounterColor,this.config.thumbBarEnable||n.isTouchDevice||(r.style.backgroundColor=this.config.headerFooterColor),this.item_current_info=document.createElement("div"),this.item_current_info.className="".concat(e.classPref,"caption-current"),r.appendChild(this.item_current_info);var l=document.createElement("div");l.className="".concat(e.classPref,"caption-delimiter"),l.style.opacity=.7,l.textContent="/",r.appendChild(l),this.items_amount_info=document.createElement("div"),this.items_amount_info.className="".concat(e.classPref,"caption-all"),r.appendChild(this.items_amount_info),this.counter=r;var c=document.createElement("div");if(c.className="".concat(e.classPref,"caption-play-wrap"),c.appendChild(r),this.infoBar1.appendChild(c),this.config.thumbBarEnable){var h=b.CONFIG;h.itemBgColor=this.config.thumbBarHoverColor,this.thumbsBar=new b(this,h),this.footer.appendChild(this.thumbsBar.view),n.isTouchDevice&&this.footer.appendChild(c)}else this.footer.appendChild(c);if(n.Device.desktop&&this.config.slideshowEneble){var m=T.CONFIG;m.autoPlayBgColor=this.config.slideshowIndicatorColorBg,m.autoPlayColor=this.config.slideshowIndicatorColor,m.slideshowDelay=this.config.slideshowTimer,this.autoPlay=new T(this,m),this.config.thumbBarEnable?c.appendChild(this.autoPlay.view):this.infoBar1.appendChild(this.autoPlay.view)}var u=document.createElement("div");n.isTouchDevice&&(u.style.width="100%"),u.className="".concat(e.classPref,"free-space"),this.header.appendChild(u),this.itemMenuWrap=document.createElement("div"),this.itemMenuWrap.className="".concat(e.classPref,"item-menu-wrap"),this.header.appendChild(this.itemMenuWrap);var p=g.CONFIG;p.link=!0,p.play=n.Device.desktop&&this.config.slideshowEneble,p.zoom=n.Device.desktop&&this.config.zoom,p.discuss=this.config.discuss,p.info=this.config.itemInfoEnable,p.share=this.config.itemShare,p.download=this.config.itemDownload,p.like=this.config.itemLike,p.close=n.Device.desktop,p.fulscreen=!n.Device.ios,p.backgroundColor=this.config.menuBackgroundColor,p.backgroundColorOver=this.config.menuBackgroundColorOver,p.iconColor=this.config.menuIconColor,p.iconColorOver=this.config.menuIconColorOver,this.itemMenu=new g(this,g.MENU_TYPE.LIGHTBOX,p),this.itemMenuWrap.appendChild(this.itemMenu.view),n.moduleSettings(this.appName).appEventManager.addGMEventListener(g.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler"),this.addToStage()}return k(e,null,[{key:"classPref",get:function(){return"gmedia-lightbox-b-"}},{key:"EVENTS",get:function(){return{NEED_MODAL:"NEED_MODAL",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"}}},{key:"CONFIG",get:function(){return{backgroundColor:"rgba(0,0,0,0.8)",preloaderColor:"#494949",headerFooterHeight:40,headerFooterColor:"rgba(0,0,0,1)",sliderNavigationColor:"rgba(0,0,0,0.8)",sliderNavigationIconColor:"rgba(255,255,255,1)",itemCounterColor:"rgba(255,255,255,1)",itemTitleEnable:!0,itemTitleFontSize:18,itemTitleTextColor:"rgba(255,255,255,1)",thumbBarEnable:!0,thumbBarHoverColor:"rgba(255,255,255,1)",itemInfoEnable:!0,itemLike:!0,itemShare:!0,itemDownload:!0,zoom:!0,discuss:!0,menuBackgroundColor:"rgb(0,0,0)",menuBackgroundColorOver:"rgb(255,255,255)",menuIconColor:"rgb(255,255,255)",menuIconColorOver:"rgb(0,0,0)",slideshowEneble:!0,slideshowTimer:8,slideshowAutoPlay:!1,slideshowIndicatorColorBg:"rgba(255,255,255,0.7)",slideshowIndicatorColor:"rgba(255,255,255,1)",copyR_Alert:"Hello, this photo is mine!"}}}]),k(e,[{key:"itemMenuActionHandler",value:function(t){var i=t.params.item,o=t.params.type;if(i&&o){var a,s,r={};switch(r.item=i,o){case"info":r.type="info",n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.NEED_MODAL,this,r)),n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(T.EVENTS.PLAY,this,{action:"stop"}));break;case"link":i.link&&window.open(i.link,this.config.linkTargetWindow);break;case"like":this.delegate.likeItem=i,this.itemMenu.updateForItem(i);break;case"bookmark":this.delegate.bookmarkItem=i,this.itemMenu.updateForItem(i);break;case"share":r.type="share",n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.NEED_MODAL,this,r)),n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(T.EVENTS.PLAY,this,{action:"stop"}));break;case"zoom":"function"==typeof this.sliderZoomSwitch&&this.sliderZoomSwitch();break;case"close":this.prepareToRemove();break;case"play":n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(T.EVENTS.PLAY,this,{}));break;case"download":a=i.url,(s=document.createElement("A")).href=a,s.download=a.substr(a.lastIndexOf("/")+1),document.body.appendChild(s),s.click(),document.body.removeChild(s);break;case"coments":"open"===i.comment_status&&(a="".concat(i.sharelink,"/#comments"),window.open(a,"_self"));break;case"fullscreen":n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.FULLSCREEN_SWITCH,this,{}))}}}},{key:"sliderZoomSwitch",value:function(){this.slider&&this.slider.remoteControl("zoom")}},{key:"slideShowSwitchHandler",value:function(e){if(this.autoPlay)if(e.params.action)switch(e.params.action){case"play":this.autoPlay.start();break;case"stop":this.autoPlay.clear()}else e.params.status?this.itemMenu&&this.itemMenu.playButtonStatus(e.params.status):this.autoPlay.switch()}},{key:"slideshowHandler",value:function(){this.slider&&this.slider.gotoNext()}},{key:"scrollBarHandler",value:function(e){if(this.slider&&e.params&&e.params.action&&(e.params.index||0===e.params.index))switch(e.params.action){case"click":this.slider.gotoPageByIndex(e.params.index)}}},{key:"keydownHandler",value:function(){var e=this;return e.handlerKB=function(t){if(e.delegate.modal)e.delegate.modal.prepareToRemove();else switch(t.keyCode){case 37:e.slider.remoteControl("prev");break;case 39:e.slider.remoteControl("next");break;case 32:n.preventDefault(t),e.slider.remoteControl("space");break;case 27:e.slider.prepareToRemove()}},e.handlerKB}},{key:"addToStage",value:function(){var t=this,i=document.getElementsByTagName("body")[0];this.view.style.zIndex=n.findHighestZIndex(i)+1,n.disableBodyScrollSlider(),document.addEventListener("keydown",t.keydownHandler(),!0),n.moduleSettings(this.appName).appEventManager.addGMEventListener(g.EVENTS.CLOSE,this,"prepareToRemove"),i.appendChild(this.view),setTimeout((function(){t.view.classList.add("".concat(e.classPref,"activate"))}),30)}},{key:"initByList",value:function(e,t){e&&e.length>0&&(this.currentItemIndex=t&&0!==t?0:void 0,this.startItemIndex=t||0,this.itemsList=e,this.thumbsBar&&this.thumbsBar.initByItemslist(this.itemsList),this.slider.initByList(this.itemsList,this.startItemIndex),this.resizeHandler())}},{key:"prepareToRemove",value:function(){if(!this.removing){if(this.removing=!0,this.slider.prepareToRemove(),document.removeEventListener("keydown",this.handlerKB,!0),n.enableBodyScrollSlider(),this.view.classList.remove("".concat(e.classPref,"activate")),document.getElementById("gmediaAudioPlayer"))document.getElementById("gmediaAudioPlayer").pause();n.moduleSettings(this.appName).appEventManager.removeGMEventListener(g.EVENTS.ITEM_MENU_ACTION,this,"itemMenuActionHandler"),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(g.EVENTS.CLOSE,this,"prepareToRemove"),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(d.EVENTS.UPDATE_CONTROLS,this,"updateViewControls"),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(d.EVENTS.REMOVE_LIGHTBOX,this,"prepareToRemove"),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(T.EVENTS.PLAY,this,"slideShowSwitchHandler"),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(T.EVENTS.NEXT_SLIDE,this,"slideshowHandler"),n.moduleSettings(this.appName).appEventManager.removeGMEventListener(b.EVENTS.ITEMS_SCROLL_BAR_ITEM_ACTION,this,"scrollBarHandler"),n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.REMOVE_LIGHTBOX,this))}}},{key:"mouseMoveHandler",value:function(){var e=this;"hide"===this.headerFooterStatus?(clearTimeout(this.mouseMovingTimer),"show"!==this.headerStatus&&(this.header.classList.add("gmedia-show"),this.headerStatus="show",this.slider&&this.slider.showHideNaviButton("show")),this.mouseMovingTimer=setTimeout((function(){e.header.classList.remove("gmedia-show"),e.slider&&e.slider.showHideNaviButton("hide"),e.headerStatus="hide"}),3e3)):(clearTimeout(this.mouseMovingTimer),"show"!==this.headerStatus&&(this.header.classList.add("gmedia-show"),this.headerStatus="show",this.slider&&this.slider.showHideNaviButton("show")))}},{key:"updateViewControls",value:function(e){var t=this;if(e.params.draging&&n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(T.EVENTS.PLAY,this,{action:"stop"})),e.params.zoom&&(n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(T.EVENTS.PLAY,this,{action:"stop"})),this.itemMenu&&this.itemMenu.zoomButtonStatus(e.params.zoom)),e.params.controls)switch(n.moduleSettings(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(T.EVENTS.PLAY,this,{action:"stop"})),this.headerFooterStatus=e.params.controls,this.mouseMoveHandler(),e.params.controls){case"show":n.miniScreen&&this.header.classList.add("gmedia-show"),this.footer.classList.add("gmedia-show");break;case"hide":n.miniScreen&&this.header.classList.remove("gmedia-show"),this.footer.classList.remove("gmedia-show")}if((e.params.itemIndex||0===e.params.itemIndex)&&(this.item_current_info.innerHTML=e.params.itemIndex+1,this.items_amount_info.innerHTML=this.itemsList.length,this.thumbsBar&&this.thumbsBar.selectThumbByIndex(e.params.itemIndex)),e.params.item&&(this.currentItem=e.params.item,this.delegate.viewItem=this.currentItem,this.itemTitle&&(this.itemTitle.innerHTML=e.params.item.title),this.itemMenu&&this.itemMenu.updateForItem(e.params.item)),e.params.status)switch(e.params.status){case"ready":this.autoPlay&&this.config.slideshowAutoPlay&&!this.startItem&&this.autoPlay.start(),this.view.addEventListener("mousemove",(function(e){t.mouseMoveHandler(e)}),!1)}}},{key:"resizeHandler",value:function(){if(this.view.clientWidth<360?(this.autoPlay&&(this.autoPlay.view.style.display="none"),(this.descriptionWrap||this.thumbsBar)&&(this.counter.style.display="none")):(this.autoPlay&&(this.autoPlay.view.style.display=null),this.counter.style.display=null),this.itemMenu&&this.itemMenu.resizeHandler(),this.thumbsBar){var e=this.footer.clientWidth;this.thumbsBar.size=n.Size(e,0)}this.slider&&this.slider.resizeHandler(n.Size(this.view.clientWidth,this.view.clientHeight))}},{key:"likeItem",set:function(e){this.delegate.likeItem=e}},{key:"likesSet",get:function(){return this.delegate.likesSet}}]),e}();i(15);function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function N(e,t,i){return t&&L(e.prototype,t),i&&L(e,i),e}var I=function(){function e(t,i){S(this,e),this.appName=t,this.modal=i;var o=document.createElement("div");o.className="".concat(e.clessPref,"bar"),o.style.backgroundColor=i.colors.pageBgColor,o.style.color=i.colors.modalInfoBoxTitleTextColor;var a=document.createElement("div");a.className="".concat(e.clessPref,"close-button"),a.innerHTML=n.ICONS.CLOSE_SVG,a.childNodes[0].style.fill=i.colors.modalInfoBoxTitleTextColor,n.isTouchDevice&&a.addEventListener("touchend",(function(){i.dragging||i.prepareToRemove()}),!1),a.addEventListener("click",(function(){i.prepareToRemove()}),!1),o.appendChild(a),this.view=o}return N(e,null,[{key:"clessPref",get:function(){return"gmedia-item-info-"}},{key:"EVENTS",get:function(){return{NEED_NEW_COLLECTION:"NEED_NEW_COLLECTION"}}}]),N(e,[{key:"item",set:function(t){var i,o=this.view,a=this.modal,s=this,r="";function l(){if(!a.dragging){var t=this.dataset.termId,i=this.dataset.taxonomy;n.moduleSettings(s.appName).appEventManager.dispatchGMEvent(n.GMEvent(e.EVENTS.NEED_NEW_COLLECTION,s,{term_id:[t],taxonomy:i}))}}if(r+='<div class="'.concat(e.clessPref,'item-title" style="color:\n ').concat(a.colors.modalInfoBoxTitleTextColor,'">').concat(t.title,"<br>"),t.description&&""!==t.description?r+='<div class="'.concat(e.clessPref,'item-description" style="color:\n ').concat(a.colors.modalInfoBoxTextColor,'">').concat(t.description,"</div></div>"):r+="</div>",""!==r&&((i=document.createElement("div")).className="".concat(e.clessPref,"description-wrap"),i.style.float="none",i.style.marginRight="41px",i.innerHTML=r,o.appendChild(i)),a.config.infoBarTerms){var c=document.createElement("div");if(c.className="".concat(e.clessPref,"description-wrap"),c.style.float="none",c.style.minHeight="0",c.style.color=n.hexToRgbaStrin(this.modal.colors.modalInfoBoxTextColor,1),o.appendChild(c),t.albums&&t.albums.length>0){var d=document.createElement("ul");d.className="".concat(e.clessPref,"terms-list"),d.classList.add("".concat(e.clessPref,"tags-ul"));var h=document.createElement("li");h.className="".concat(e.clessPref,"terms-title"),h.innerHTML="Albums:",d.appendChild(h);for(var m=0;m<t.albums.length;m+=1){var u=document.createElement("li");u.className="".concat(e.clessPref,"album"),u.innerHTML=t.albums[m].name,u.style.color=this.modal.colors.infoBarTermsTitleColor,u.style.backgroundColor=this.modal.colors.infoBarTermsBackgroundColorAlbums,u.onmouseover=function(){this.style.color=s.modal.colors.infoBarTermsBackgroundColorAlbums,this.style.backgroundColor=s.modal.colors.infoBarTermsTitleColor},u.onmouseout=function(){this.style.color=s.modal.colors.infoBarTermsTitleColor,this.style.backgroundColor=s.modal.colors.infoBarTermsBackgroundColorAlbums},u.dataset.termId=t.albums[m].term_id,u.dataset.taxonomy="album__in",u.addEventListener("mouseup",l,!1),n.isTouchDevice&&u.addEventListener("touchend",l,!1),d.appendChild(u)}c.appendChild(d)}if(t.categories&&t.categories.length>0){var p=document.createElement("ul");p.className="".concat(e.clessPref,"terms-list"),p.classList.add("".concat(e.clessPref,"tags-ul"));var g=document.createElement("li");g.className="".concat(e.clessPref,"terms-title"),g.innerHTML="Categories:",p.appendChild(g);for(var v=0;v<t.categories.length;v+=1){var f=document.createElement("li");f.className="".concat(e.clessPref,"category"),f.innerHTML=t.categories[v].title,f.style.color=s.modal.colors.infoBarTermsTitleColor,f.style.backgroundColor=s.modal.colors.infoBarTermsBackgroundColorCategories,f.onmouseover=function(){this.style.color=s.modal.colors.infoBarTermsBackgroundColorCategories,this.style.backgroundColor=s.modal.colors.infoBarTermsTitleColor},f.onmouseout=function(){this.style.color=s.modal.colors.infoBarTermsTitleColor,this.style.backgroundColor=s.modal.colors.infoBarTermsBackgroundColorCategories},f.addEventListener("mouseup",l,!1),n.isTouchDevice&&f.addEventListener("touchend",l,!1),f.dataset.termId=t.categories[v].term_id,f.dataset.taxonomy="category__in",p.appendChild(f)}c.appendChild(p)}if(t.tags&&t.tags.length>0){var w=document.createElement("ul");w.className="".concat(e.clessPref,"terms-list"),w.classList.add("".concat(e.clessPref,"tags-ul"));var y=document.createElement("li");y.className="".concat(e.clessPref,"terms-title"),y.innerHTML="Tags:",w.appendChild(y);for(var b=0;b<t.tags.length;b+=1){var x=document.createElement("li");x.className="".concat(e.clessPref,"tags"),x.innerHTML=t.tags[b].name,x.style.color=s.modal.colors.infoBarTermsTitleColor,x.style.backgroundColor=s.modal.colors.infoBarTermsBackgroundColorTags,x.onmouseover=function(){this.style.color=s.modal.colors.infoBarTermsBackgroundColorTags,this.style.backgroundColor=s.modal.colors.infoBarTermsTitleColor},x.onmouseout=function(){this.style.color=s.modal.colors.infoBarTermsTitleColor,this.style.backgroundColor=s.modal.colors.infoBarTermsBackgroundColorTags},x.addEventListener("mouseup",l,!1),n.isTouchDevice&&x.addEventListener("touchend",l,!1),x.dataset.termId=t.tags[b].term_id,x.dataset.taxonomy="tag__in",w.appendChild(x)}c.appendChild(w)}}if(a.config.infoBarExifEnable){var C="";if(t.meta.data){t.meta.data&&t.meta.data.model&&(C+='<div class="'.concat(e.clessPref,'meta-exif-value">').concat(t.meta.data.model,"</div></br>"));var k=[];t.meta.data&&t.meta.data.focallength&&k.push('<div class="'.concat(e.clessPref,'meta-exif-value">').concat(t.meta.data.focallength,"</div>")),t.meta.data&&t.meta.data.aperture&&k.push('<div class="'.concat(e.clessPref,'meta-exif-value">').concat(t.meta.data.aperture,"</div>")),t.meta.data&&t.meta.data.exposure&&k.push('<div class="'.concat(e.clessPref,'meta-exif-value">').concat(t.meta.data.exposure,"</div>")),t.meta.data&&t.meta.data.iso&&k.push('<div class="'.concat(e.clessPref,'meta-exif-value">').concat(t.meta.data.iso,"</div>"));for(var T=0;T<k.length;T+=1)C+=k[T],T<k.length-1&&(C+='<div class="'.concat(e.clessPref,'meta-exif-separator"> / </div>'));""!==C&&((i=document.createElement("div")).className="".concat(e.clessPref,"description-wrap"),i.style.color=n.hexToRgbaStrin(s.modal.colors.modalInfoBoxTextColor,1),i.innerHTML=C,o.appendChild(i))}}if(a.config.infoBarCountersEnable){(i=document.createElement("div")).className="".concat(e.clessPref,"description-wrap"),i.style.color=a.colors.modalInfoBoxTextColor,i.style.minWidth="240px";var E=document.createElement("div");E.className="".concat(e.clessPref,"likes-view-com"),E.innerHTML="".concat(n.ICONS.VIEW_SVG,'<div class="').concat(e.clessPref,'counter-text">').concat(t.meta.views?t.meta.views:0,"</div>"),E.getElementsByTagName("svg")[0].style.fill=a.colors.modalInfoBoxTitleTextColor,i.appendChild(E);var S=document.createElement("div");S.className="".concat(e.clessPref,"likes-view-com"),S.innerHTML="".concat(n.ICONS.HEART_SVG,'<div class="').concat(e.clessPref,'counter-text">').concat(t.meta.likes?t.meta.likes:0,"</div>"),S.getElementsByTagName("svg")[0].style.fill=a.colors.modalInfoBoxTitleTextColor,i.appendChild(S);var L=document.createElement("div");L.className="".concat(e.clessPref,"likes-view-com"),L.innerHTML="".concat(n.ICONS.COMENTS_SVG,'<div class="').concat(e.clessPref,'counter-text">').concat(t.meta.comment_count?t.comment_count:0,"</div>"),L.getElementsByTagName("svg")[0].style.fill=n.hexToRgbaStrin(a.colors.modalInfoBoxTitleTextColor,1),i.appendChild(L),o.appendChild(i)}if(a.config.infoBarDateInfoEnable){(i=document.createElement("div")).className="".concat(e.clessPref,"description-wrap"),i.style.color=a.colors.modalInfoBoxTextColor;var N="";if(N+='<div class="'.concat(e.clessPref,'item-meta-key">Upload:</div>\n <div class="').concat(e.clessPref,'item-meta-value">').concat(n.timeConverter(t.date),"</div></br>"),t.meta.data&&t.meta.data.created_timestamp)N+='<div class="'.concat(e.clessPref,'item-meta-key">Taken:</div>\n <div class="').concat(e.clessPref,'item-meta-value">').concat(n.timeConverter(t.meta.data.created_timestamp),"</div></br>");i.innerHTML='<div class="'.concat(e.clessPref,'item-date">').concat(N,"</div>"),""!==N&&o.appendChild(i)}}}]),e}(),B=function(){function e(t,i){S(this,e),this.appName=t,this.modal=i;var o=document.createElement("div");o.className="".concat(e.clessPref,"bar"),o.style.backgroundColor=i.colors.pageBgColor,o.style.color=i.colors.modalInfoBoxTitleTextColor;var a=document.createElement("div");a.className="".concat(e.clessPref,"close-button"),a.innerHTML=n.ICONS.CLOSE_SVG,a.childNodes[0].style.fill=i.colors.modalInfoBoxTitleTextColor,n.isTouchDevice&&a.addEventListener("touchend",(function(){i.dragging||i.prepareToRemove()}),n.passiveListener),a.addEventListener("click",(function(){i.prepareToRemove()}),!1),o.appendChild(a),this.view=o}return N(e,null,[{key:"clessPref",get:function(){return"gmedia-item-share-"}}]),N(e,[{key:"item",set:function(t){var i=this.view,o=this.modal,a=t.sharelink,s="";if(""!==(s+='<div class="'.concat(e.clessPref,'item-title" style="color: \'\n ').concat(o.colors.modalInfoBoxTitleTextColor,"'\">").concat(t.title,"</div>"))){var r=document.createElement("div");r.className="".concat(e.clessPref,"description-wrap"),r.style.float="none",r.style.marginRight="41px",r.innerHTML=s,i.appendChild(r)}var l=document.createElement("div");l.className="".concat(e.clessPref,"description-wrap"),l.style.float="none",l.style.padding="0px 20px",i.appendChild(l);var c=!1;function d(){if(!o.dragging){var e,i,n=this.getAttribute("type"),s=(window.screen.width-600)/2,r="menubar=no,toolbar=no,resizable=yes,scrollbars=yes, top=".concat(200,",\n left=").concat(s,", height=450,width=600");switch(n){case"copy":e=document.getElementById("gmSH_title_copy"),i=this.getElementsByTagName("svg")[0],c&&window.open(a,"_blank"),window.getSelection().selectAllChildren(e);try{document.execCommand("copy")&&(window.getSelection().removeAllRanges(),i.style.fill="green",e.style.color="green",c=!0)}catch(e){window.open(a,"_blank")}break;case"facebook":window.open("https://www.facebook.com/share.php?u=".concat(a),"",r);break;case"twitter":window.open("https://twitter.com/intent/tweet?text=".concat(encodeURI(t.title),"&url=").concat(a),"",r);break;case"pinterest":window.open("http://www.pinterest.com/pin/create/button/?url=".concat(a,"&media=").concat(t.url,"\n &description=").concat(encodeURI(t.title)),"",r)}}}var h=document.createElement("div");h.dataset.type="facebook",h.className="".concat(e.clessPref,"item-button-wrap"),h.id="gmedia_share_fb";var m=document.createElement("div");m.className="".concat(e.clessPref,"item-button"),m.innerHTML="".concat(n.ICONS.FB_SVG_COLOR,'\n <div class="').concat(e.clessPref,'button-title" style="color: #3b5998">Facebook</div>'),m.getElementsByTagName("svg")[0].style.fill="#3b5998",h.appendChild(m),h.addEventListener("mouseup",d,!1),n.isTouchDevice&&h.addEventListener("touchend",d,!1),l.appendChild(h),(h=document.createElement("div")).setAttribute("type","twitter"),h.className="".concat(e.clessPref,"item-button-wrap"),h.id="gmedia_share_tw",(m=document.createElement("div")).className="".concat(e.clessPref,"item-button"),m.innerHTML="".concat(n.ICONS.TW_SVG,'\n <div class="').concat(e.clessPref,'button-title" style="color: #00aced">Twitter</div>'),m.getElementsByTagName("svg")[0].style.fill="#00aced",h.appendChild(m),h.addEventListener("mouseup",d,!1),n.isTouchDevice&&h.addEventListener("touchend",d,!1),l.appendChild(h),(h=document.createElement("div")).setAttribute("type","pinterest"),h.className="".concat(e.clessPref,"item-button-wrap"),h.id="gmedia_share_pin",(m=document.createElement("div")).className="".concat(e.clessPref,"item-button"),m.innerHTML="".concat(n.ICONS.PIN_SVG,'\n <div class="').concat(e.clessPref,'button-title" style="color: #cc2127">Pinterest</div>'),m.getElementsByTagName("svg")[0].style.fill="#cc2127",h.appendChild(m),h.addEventListener("mouseup",d,!1),n.isTouchDevice&&h.addEventListener("touchend",d,!1),l.appendChild(h),(h=document.createElement("div")).setAttribute("type","copy"),h.className="".concat(e.clessPref,"item-button-wrap"),h.id="gmedia_share_link",(m=document.createElement("div")).className="".concat(e.clessPref,"item-copy-link"),m.innerHTML="".concat(n.ICONS.LINK_SVG,'\n <div id="gmSH_title_copy" class="').concat(e.clessPref,'button-title" style="color: #7d7d7d">').concat(a,"</div>"),m.getElementsByTagName("svg")[0].style.fill="#7d7d7d",h.appendChild(m),h.addEventListener("mouseup",d,!1),n.isTouchDevice&&h.addEventListener("touchend",d,!1),l.appendChild(h),i.appendChild(l)}}]),e}(),M=function(){function e(t,i,o){var a=this;S(this,e),this.colors=e.COLOR,n.copyProperties(i,this.colors),this.config=e.CONFIG,n.copyProperties(o,this.config),this.iconsSet=e.ICONS,this.passiveListener=n.passiveListener,this.type=void 0,this.delegate=t,this.appName=t.appName,this.view=document.createElement("div"),this.view.className="".concat(e.clessPref,"window"),this.stageFixedMode=!1,this.closeButton=document.createElement("div"),this.closeButton.className="".concat(e.clessPref,"close-button"),this.closeButton.style.backgroundColor=this.colors.backgroundColor,this.view.addEventListener("click",(function(e){e.target!==a.view&&e.target!==a.closeButton||a.prepareToRemove(e)}),n.passiveListener),this.view.appendChild(this.closeButton);var s=document.createElement("div");s.className="".concat(e.clessPref,"flex"),this.view.appendChild(s),this.scrollView=void 0,this.dragging=!1,this.scrollViewTranslateYPr=0,this.startDragHandler=void 0,this.viewCompleted=!1,this.initForStage(this.config.parentDiv,this.config.fixedMode)}return N(e,null,[{key:"clessPref",get:function(){return"gmedia-modal-"}},{key:"EVENTS",get:function(){return{ITEM_MENU_ACTION:"ITEM_MENU_ACTION"}}},{key:"TYPE",get:function(){return{INFO_BAR:"INFO_BAR",SHARE_BAR:"SHARE_BAR"}}},{key:"CONFIG",get:function(){return{parentDiv:void 0,fixedMode:!1,infoBarDateInfoEnable:!0,infoBarExifEnable:!0,infoBarCountersEnable:!0,infoBarTerms:!1,shareTitle:"Share"}}},{key:"COLOR",get:function(){return{backgroundColor:"rgba(0,0,0,0.8)",buttonBackgroundColor:"rgba(0,0,0,0)",buttonIconColor:"white",pageBgColor:"rgb(230,230,230)",modalInfoBoxTitleTextColor:"black",modalInfoBoxTextColor:"black",infoBarTermsTitleColor:"rgba(255,255,255,1)",infoBarTermsBackgroundColorAlbums:"red",infoBarTermsBackgroundColorCategories:"orange",infoBarTermsBackgroundColorTags:"green"}}}]),N(e,[{key:"getPageByType",value:function(t){var i;switch(t){case e.TYPE.INFO_BAR:i=new I(this.appName,this);break;case e.TYPE.SHARE_BAR:i=new B(this.appName,this)}return i}},{key:"initForStage",value:function(t,i){var o=this;t.appendChild(this.view),this.view.style.zIndex=n.findHighestZIndex(t)+1,i?(n.disableBodyScrollSlider(),this.view.classList.add("".concat(e.clessPref,"fixed-modal")),this.stageFixedMode=!0,document.addEventListener("keydown",o.keydownHandler(),!1)):this.stageFixedMode=!1,setTimeout((function(){o.view.style.opacity="1"}),30)}},{key:"addToStage",value:function(){var e=this,t=document.getElementsByTagName("body")[0];this.view.style.zIndex=n.findHighestZIndex(t)+1,n.disableBodyScrollSlider(),this.delegate.slider?this.delegate.slider.view.appendChild(this.view):t.appendChild(this.view),setTimeout((function(){e.view.style.opacity="1"}),30),document.addEventListener("keydown",e.keydownHandler(),!1)}},{key:"prepareToRemove",value:function(){var e=this;e.view.style.opacity="0",this.stageFixedMode&&(document.removeEventListener("keydown",this.handlerKB,!1),n.enableBodyScrollSlider()),setTimeout((function(){e.view&&e.view.parentNode&&e.view.parentNode.removeChild(e.view),delete e.view,e.delegate.deleteModal()}),400)}},{key:"keydownHandler",value:function(){var e=this;return e.handlerKB=function(t){switch(t.keyCode){case 27:e.prepareToRemove()}},e.handlerKB}},{key:"pushPage",value:function(e){this.viewCompleted=!1,this.scrollView&&this.scrollView.parentNode&&this.scrollView.parentNode.removeChild(this.scrollView),this.view.appendChild(e),this.scrollView=e,this.updateControlls()}},{key:"updateControlls",value:function(){this.scrollView&&(this.viewCompleted||(this.startDragHandler=this.startDrag(),this.scrollView.addEventListener("touchstart",this.startDragHandler,this.passiveListener),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0))}},{key:"startDrag",value:function(){var e,t,i=this,o=0,a=0,s=0,r=0,l=.95,c=1,d=n.requestAnimationFrame,h=n.cancelAnimationFrame;function m(){i.scrollViewTranslateY>0?a=.2*a+.1*(0-i.scrollViewTranslateY):i.scrollViewTranslateY<i.bottom?a=.2*a+.1*(i.bottom-i.scrollViewTranslateY):a*=l,i.scrollViewTranslateY+=a,Math.abs(a)<.04?(i.dragging=!1,h(t)):t=d(m)}function u(t){var n=null;t.originalEvent&&(t=t.originalEvent),t.preventDefault(),n=t.touches&&t.touches[0]?t.touches[0].pageY:t.pageY;var l=e-n;l&&(i.dragging=!0),i.scrollViewTranslateY=o-l,s=r,r=i.scrollViewTranslateY,a=(r-s)*c}function p(e){if(e.preventDefault(),i.scrollView.style.transition="none",n.isTouchDevice&&(document.removeEventListener("touchmove",u,i.passiveListener),document.removeEventListener("touchend",p,i.passiveListener)),document.removeEventListener("mousemove",u,!1),document.removeEventListener("mouseup",p,!1),document.removeEventListener("oncontextmenu",p,!1),i.bottom<=0){if(i.scrollViewTranslateY<i.bottom-50||i.scrollViewTranslateY>50)return void i.prepareToRemove()}else if(i.scrollViewTranslateY<-50||i.scrollViewTranslateY>50)return void i.prepareToRemove();(0!==a||i.scrollViewTranslateY>0||i.scrollViewTranslateY<i.bottom)&&i.dragging&&(t=d(m))}return function(s){if(!s)return a=0,o=i.scrollViewTranslateY,void h(t);var l;(n.isTouchDevice||s.preventDefault(),s.originalEvent&&(s=s.originalEvent),s.button&&0!==s.button)||(a=0,r=i.scrollViewTranslateY,l=s.touches&&s.touches[0]?s.touches[0].pageY:s.pageY,e=l,o=i.scrollViewTranslateY,h(t),n.isTouchDevice&&(document.addEventListener("touchmove",u,i.passiveListener),document.addEventListener("touchend",p,i.passiveListener)),document.addEventListener("mousemove",u,!1),document.addEventListener("mouseup",p,!1),document.addEventListener("oncontextmenu",p,!1))}}},{key:"bottom",get:function(){return this.view.clientHeight-this.scrollView.clientHeight-20}},{key:"scrollViewTranslateY",set:function(e){this.scrollViewTranslateYPr=e,this.scrollView.style.transform="translateY(".concat(e,"px)");var t=Math.max(n.moduleSettings(this.appName).modalBgAlpha-Math.abs(e/200),0);this.closeButton.style.opacity=t},get:function(){return this.scrollViewTranslateYPr}}]),e}();function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e,t,i){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=z(e)););return e}(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(i):a.value}})(e,t,i||e)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t,i){return t&&H(e.prototype,t),i&&H(e,i),e}!function(){console.log("%c Gmedia Gallery Amron v.3.0","background: #222; color: #bada55");var e="gmedia-amron-",t=n.trace,i=n.moduleSettings,o={REQUEST_START:"REQUEST_START",COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",COUNTERS_UPDATED:"COUNTERS_UPDATED",NEED_MODAL:"NEED_MODAL",NEED_LIGHTBOX:"NEED_LIGHTBOX",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX",NEED_NEW_COLLECTION:"NEED_NEW_COLLECTION",NEED_PREV_COLLECTION:"NEED_PREV_COLLECTION",NEED_NEW_COLLECTION_BY_TERM:"NEED_NEW_COLLECTION_BY_TERM",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"},a=function(){function t(i){A(this,t),this.delegate=i,this.appName=i.appName,this.id="".concat(this.appName,"_tag_"),this.view=document.createElement("div"),this.view.className="".concat(e,"collection-tags-cloud"),this.list=document.createElement("ul"),this.view.appendChild(this.list)}return R(t,[{key:"updateView",value:function(){var e=this.delegate.tagsCloud,t=[],o=[];for(var a in e)"0"!==a&&t.push(e[a].toLowerCase());t.sort(),t.splice(0,0,e[0].toLowerCase());for(var n=0;n<t.length;n++)for(var s in e)if(e[s].toLowerCase()!==t[n]);else{var r=this.createTag(s,e[s]);o.push(r),this.list.appendChild(r),delete e[s]}this.selectedTag=document.getElementById(this.id+this.delegate.filtredById),this.selectedTag.style.backgroundColor=i(this.appName).tagCloudTextColor,this.selectedTag.style.color=i(this.appName).tagCloudBgColor,this.selectedTag.style.cursor="default"}},{key:"createTag",value:function(e,t){var o=this;function a(e){var t=this.id.split("_")[this.id.split("_").length-1];if(o.selectedTag!==this)switch(e.type){case"click":o.selectedTag=document.getElementById(o.id+o.delegate.filtredById),o.selectedTag.style.color=i(o.appName).tagCloudTextColor,o.selectedTag.style.backgroundColor=i(o.appName).tagCloudBgColor,o.selectedTag.style.cursor="pointer",o.delegate.filtred(t),o.selectedTag=document.getElementById(o.id+o.delegate.filtredById),o.selectedTag.style.cursor="default";break;case"mouseenter":this.style.backgroundColor=i(o.appName).tagCloudTextColor,this.style.color=i(o.appName).tagCloudBgColor;break;case"mouseleave":if(this===o.selectedTag)return;this.style.color=i(o.appName).tagCloudTextColor,this.style.backgroundColor=i(o.appName).tagCloudBgColor}}var n=document.createElement("li");return n.appendChild(document.createTextNode(t)),n.id=this.id+e,n.style.color=i(this.appName).tagCloudTextColor,n.style.backgroundColor=i(this.appName).tagCloudBgColor,n.addEventListener("click",a,!1),n.addEventListener("mouseenter",a,!1),n.addEventListener("mouseleave",a,!1),n}}]),t}(),s=function(){function t(o,a){A(this,t),this.delegate=o,this.appName=o.appName,this.index=a,this.view=document.createElement("div"),this.view.className="".concat(e,"masonry-thumb-pint"),this.view.style.padding="".concat(i(this.appName).thumbSpacing/2,"px"),this.imageHolder=document.createElement("div"),this.imageHolder.className="".concat(e,"image-holder"),this.view.appendChild(this.imageHolder),this.sizePr=n.Size(1,1),this.item=void 0,this.imageRetio=1,this.opacityDelay=void 0,this.displayPr="none"}return R(t,[{key:"init",value:function(){var t=this.delegate.itemsList[this.index];this.item=t;var o=this.delegate.itemWidth;this.type=t.type,this.itemViewSrc=!1,this.img=new Image;var a,s=this;if(this.img.onload=function(){this.setAttribute("alt",t.title),s.view.clientWidth/this.naturalWidth>1.1&&t.itemViewSrc&&!s.itemViewSrc&&(this.src=t.itemViewSrc,s.itemViewSrc=!0),s.imageHolder.style.minHeight=null,this.style.opacity="1"},this.imageHolder.appendChild(this.img),i(this.appName).lightBoxEnable){(a=document.createElement("div")).className="".concat(e,"image-over"),a.style.backgroundColor=i(this.appName).collectionThumbHoverColor,this.imageHolder.appendChild(a);var r=document.createElement("div");switch(r.className="".concat(e,"zoom"),this.item.type){case"video":"vimeo"===this.item.mime_type.split("/")[1]?(r.classList.add("media"),r.innerHTML=n.ICONS.VIMEO_SVG,r.firstChild.style.fill="#00adef"):(r.classList.add("media"),r.innerHTML=n.ICONS.YOU_TUBE_SVG,r.firstChild.style.fill="#e02f2f");break;case"audio":r.classList.add("media"),r.innerHTML=n.ICONS.NOTE_SVG,r.firstChild.style.fill="#7a7a7a";break;default:r.innerHTML=n.ICONS.MAXIMIZE_SVG}this.imageHolder.appendChild(r)}function l(e){if(i(s.appName).lightBoxEnable)switch(e.type){case"mouseenter":this.classList.add("gmedia-hover"),a&&a.classList.add("gmedia-hover");break;case"mouseleave":this.classList.remove("gmedia-hover"),a&&a.classList.remove("gmedia-hover");break;case"click":this.classList.remove("gmedia-hover"),a&&a.classList.remove("gmedia-hover"),s.delegate.itemAction(s.index,"lightBox")}}this.imageHolder.addEventListener("mouseenter",l,!1),this.imageHolder.addEventListener("mouseleave",l,!1),this.imageHolder.addEventListener("click",l,!1),o/t.itemViewThumbSize.width>1.1?this.img.src=t.itemViewSrc:this.img.src=t.itemViewThumbSrc,this.imageRetio=t.itemViewSize.height/t.itemViewSize.width,this.imageHolder.style.minHeight="".concat(this.imageRetio*o,"px");var c,d=document.createElement("div");if(d.className="".concat(e,"item-content"),d.style.backgroundColor=i(this.appName).collectionThumbContentBGColor,this.view.appendChild(d),i(this.appName).collectionThumbTitleShow&&t.title&&""!==t.title&&((c=document.createElement("div")).className="".concat(e,"item-title"),c.style.fontSize="".concat(i(this.appName).collectionThumbFontSize,"px"),c.style.color=i(this.appName).collectionThumbTitleColor,c.innerHTML=t.title,d.appendChild(c)),i(this.appName).collectionThumbDescriptionShow&&t.description&&""!==t.description){var h=document.createElement("div");h.className="".concat(e,"item-description"),h.style.fontSize="".concat(i(this.appName).collectionThumbDescriptionFontSize,"px"),h.style.color=i(this.appName).collectionThumbDescriptionColor,h.innerHTML=t.description,d.appendChild(h)}var m=document.createElement("div");m.className="".concat(e,"item-menu-holder");var u=i(this.appName).collectionThumbSubMenuIconColor,p=i(this.appName).collectionThumbSubMenuBackgroundColor,g=i(this.appName).collectionThumbSubMenuBackgroundColorOver,v=i(this.appName).collectionThumbSubMenuIconHoverColor;function f(e){e.classList.remove("gmedia-hover"),"like"===e.getAttribute("type")&&e.getAttribute("like")||"bookmark"===e.getAttribute("type")&&e.getAttribute("mark")?e.style.backgroundColor=p:(e.style.backgroundColor=p,e.childNodes[0].style.fill=u)}if(t.link){var w=document.createElement("a");w.className="".concat(e,"item-read-more"),w.innerHTML=i(this.appName).collectionReadMoreButtonLabel,w.style.backgroundColor=i(this.appName).collectionReadMoreButtonBGColor,w.style.color=i(this.appName).collectionReadMoreButtonLabelColor,w.setAttribute("target",i(this.appName).linkTargetWindow),w.setAttribute("href",t.link),w.onmouseenter=function(){this.style.backgroundColor=i(s.appName).collectionReadMoreButtonBGColorHover,this.style.color=i(s.appName).collectionReadMoreButtonLabelColorHover},w.onmouseleave=function(){this.style.backgroundColor=i(s.appName).collectionReadMoreButtonBGColor,this.style.color=i(s.appName).collectionReadMoreButtonLabelColor},w.addEventListener("click",(function(e){if("click"===e.type){if(!t)return;s.delegate.itemAction(s.index,this.getAttribute("type")),n.miniScreen&&f(this)}else"mouseenter"===e.type?((i=this).classList.add("gmedia-hover"),i.style.backgroundColor=g,"bookmark"===i.getAttribute("type")&&i.getAttribute("mark")||(i.childNodes[0].style.fill=v)):"mouseleave"===e.type&&f(this);var i}),!1),m.appendChild(w)}m.childNodes.length>0&&d.appendChild(m)}},{key:"resize",value:function(){return this.view.clientHeight}},{key:"updateSomeData",value:function(){}},{key:"mark",set:function(e){this.bookmarkButton&&(e?(this.bookmarkButton.getElementsByTagName("svg")[0].style.fill="red",this.bookmarkButton.setAttribute("mark","true")):(this.bookmarkButton.getElementsByTagName("svg")[0].style.fill=this.bookmarkButton.classList.contains("gmedia-hover")?i(this.appName).collectionThumbSubMenuIconHoverColor:i(this.appName).collectionThumbSubMenuIconColor,this.bookmarkButton.removeAttribute("mark")))},get:function(){return!!this.bookmarkButton}},{key:"like",set:function(e){this.likeButton&&(e?(this.likeButton.getElementsByTagName("svg")[0].style.fill="red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.setAttribute("like","true")):(this.likeButton.childNodes[0].style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",this.likeButton.removeAttribute("like")))},get:function(){return!!this.likeButton}},{key:"visibility",set:function(e){this.view.style.visibility=e}},{key:"display",set:function(e){"none"===e&&clearTimeout(this.opacityDelay),this.view.style.display=e,this.displayPr=e},get:function(){return this.displayPr}},{key:"opacity",set:function(e){var t=this;e.delay?this.opacityDelay=setTimeout((function(){t.view.style.opacity=e.opacity}),e.delay):(clearTimeout(this.opacityDelay),t.view.style.opacity=e.opacity)}}]),t}(),r=function(t){function o(t,a){var n;return A(this,o),(n=P(this,z(o).call(this,t,a))).view.className="".concat(e,"masonry-collection"),n.header.style.padding="0 ".concat(i(a).thumbSpacing/2,"px"),n.content.style.paddingBottom="".concat(i(a).thumbSpacing,"px"),n.columnsArr=[],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(o,t),R(o,[{key:"updateViewByData",value:function(){if(this.itemsList)for(var e=0;e<this.itemsList.length;e++){var t=new s(this,e);this.itemsList[e].view=t,t.init()}i(this.appName).tagsFilter&&this.updateTagsCloud(),this.createLayout()}},{key:"createLayout",value:function(){O(z(o.prototype),"createLayout",this).call(this),this.createColumns(),this.addPageToStage()}},{key:"updateLayout",value:function(){if(!1!==this.createColumns()){this.removePresentedItems();for(var e=0;e<this.presentedList.length;e++)this.arangeItemToColum(this.presentedList[e])}else this.presentedList&&this.presentedList[0]&&"none"===this.presentedList[0].display&&this.showPresentedItems()}},{key:"createColumns",value:function(){var t=Math.floor(this.content.clientWidth/Math.min(this.content.clientWidth,i(this.appName).collectionThumbRecomendedWidth));if(this.columnsArr.length!==t){for(var o=0;o<this.columnsArr.length;o++)this.content.removeChild(this.columnsArr[o]);this.columnsArr=[];for(var a=0;a<t;a++){var n=document.createElement("div");n.className="".concat(e,"collection-column"),n.style.width="".concat(100/t,"%"),this.columnsArr.push(n),this.content.appendChild(n)}return!0}return!1}},{key:"scrollHandlerFunction",value:function(){var e=this;return function(){e.bottomSpace<200&&e.addPageToStage()}}},{key:"addPageToStage",value:function(){void 0===this.cureantPage&&(this.cureantPage=0),clearTimeout(this.layoutSizerDelay);var e=Math.ceil(this.filteredCollection.length/this.page_Amount);if(!(this.cureantPage>=e)){for(var t=this.cureantPage*this.page_Amount,i=Math.min(t+this.page_Amount,this.filteredCollection.length),o=1,a=t;a<i;a++){var n=this.filteredCollection[a].view;n.index=a,n.opacity={opacity:0,delay:0},this.addItemToStage(n),n.opacity={opacity:1,delay:100*o},o+=1}this.cureantPage+=1;var s=this;this.layoutSizerDelay=setTimeout((function(){s.bottomSpace<200&&s.addPageToStage()}),1e3)}}},{key:"getColumWithMinHeight",value:function(){for(var e=this.columnsArr[0].clientHeight,t=0,i=1;i<this.columnsArr.length;i++)e!==Math.min(e,this.columnsArr[i].clientHeight)&&(e=Math.min(e,this.columnsArr[i].clientHeight),t=i);return t}},{key:"arangeItemToColum",value:function(e){var t=e.view;this.columnsArr[this.getColumWithMinHeight()].appendChild(t),e.display="block"}},{key:"addItemToStage",value:function(e){this.arangeItemToColum(e),this.presentedList.push(e)}},{key:"bottomSpace",get:function(){var e=this.content.getBoundingClientRect(),t=window.innerHeight;return e.bottom-t}},{key:"itemWidth",get:function(){var e=Math.floor(this.content.clientWidth/i(this.appName).collectionThumbRecomendedWidth);return this.content.clientWidth/e}}]),o}(function(){function s(t,o){A(this,s),this.delegate=t,this.appName=o,this.properties=void 0,this.itemsList=[],this.filteredList=[],this.presentedList=[],this.page_Amount=0,this.cureantPage=void 0,this.scrollHandler=void 0,this.terms=[],this.term=void 0,this.tagsCloud=i(this.appName).tagsFilter?{0:i(this.appName).tagCloudAll}:void 0,this.filterPr=0,this.view=document.createElement("div"),this.header=document.createElement("div"),this.headerNavi=document.createElement("div"),this.content=document.createElement("div"),this.footer=document.createElement("div"),this.tagsCloudView=void 0,this.header.className="".concat(e,"header"),this.content.className="".concat(e,"content"),this.footer.className="".concat(e,"footer"),this.headerNavi.className="".concat(e,"navi"),this.header.appendChild(this.headerNavi),this.view.appendChild(this.header),this.view.appendChild(this.content),this.view.appendChild(this.footer),this.resizeTimeOut=void 0,this.viewWidth=0}return R(s,[{key:"init",value:function(){this.showPreloader(!0)}},{key:"startRequest",value:function(e){this.query=e,this.query.per_page=0,this.query.page=1,i(this.appName).appEventManager.addGMEventListener(o.COLLECTION_DATA_REDY,this,"dataLoaded"),n.request(JSON.stringify({library:this.query}),this,o.COLLECTION_DATA_REDY)}},{key:"showPreloader",value:function(e){var t,o=this;if(e){if(document.getElementById("".concat(this.appName,"_preloader")))return;(t=n.createPreloaderView(n.hexToRgbaStrin(i(this.appName).collectionPreloaderColor,.7))).id="".concat(this.appName,"_preloader"),this.view.appendChild(t)}else document.getElementById("".concat(this.appName,"_preloader"))&&(t=document.getElementById("".concat(this.appName,"_preloader")),n.fadeOut(t,(function(){o.view&&o.view.removeChild(t)}),500))}},{key:"dataLoaded",value:function(e){var o=e.params.data;if(o){try{var a=JSON.parse(o);a.data&&(this.addItemsToCollection(a.data),this.trySortItemsByTerms()),i(this.appName).lightBoxEnable&&this.delegate.startItem&&this.tryOpenLightboxForID(this.delegate.startItem)}catch(e){t(e)}this.showPreloader(!1),this.itemsList&&this.updateViewByData()}}},{key:"tryOpenLightboxForID",value:function(e){for(var t=0;t<this.filteredCollection.length;t++){var a=this.filteredCollection[t];e===parseInt(a.ID)&&(i(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(o.NEED_LIGHTBOX,this,{collection:this,index:t})),t=this.filteredCollection.length)}}},{key:"createTermsCollectionAndUpdateProperties",value:function(e){this.properties||(this.properties={});var t=this,i=[];function o(e){var o={};for(var a in e)if(e[a]){var s=n.Term(e[a],t.appName);if(o[s.term_id]=s,s.itemsList=[],t.itemsList)for(var r=0;r<t.itemsList.length;r++){var l=t.itemsList[r];if(l[s.taxonomy_type]){var c=l[s.taxonomy_type];for(var d in c)c[d].term_id===s.term_id&&(s.itemsList.push(l),i.push(l),t.itemsList.splice(r,1),r-=1)}}return o}}for(var a in this.terms=[],e)!e[a]||"album__in"!==a&&"category__in"!==a&&"tag__in"!==a?this.properties[a]=e[a]:this.terms.push(o(e[a]));this.itemsList=i.concat(this.itemsList)}},{key:"addItemsToCollection",value:function(e){for(var t=0;t<e.length;t++){var i=n.Item(e[t],this.appName);if(i.index=this.itemsList.length+t,i.tags&&i.tags.length>0)for(var o=0;o<i.tags.length;o++){var a=i.tags[o];this.tagsCloud&&(this.tagsCloud[a.term_id]=a.name)}this.itemsList.push(i)}}},{key:"trySortItemsByTerms",value:function(){if(this.queryTermsList=n.termsListFromAppQuery(this.query),this.itemsList&&this.queryTermsList){for(var e=[],t=0;t<this.queryTermsList.length;t++)for(var i=this.queryTermsList[t],o=0;o<this.itemsList.length;o++){var a=this.itemsList[o];if(a[i.taxonomy_type]){var s=a[i.taxonomy_type];for(var r in s)s[r].term_id===i.term_id&&(e.push(a),this.itemsList.splice(o,1),o-=1)}}this.itemsList=e.concat(this.itemsList)}}},{key:"itemAction",value:function(e,t){if(!this.dragging){var a,s=this.filteredCollection[e];switch(t){case"lightBox":i(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(o.NEED_LIGHTBOX,this,{collection:this,index:e}));break;case"share":i(this.appName).appEventManager.dispatchGMEvent(n.GMEvent(o.NEED_MODAL,this,{type:"share",item:s}));break;case"link":s.link&&window.open(s.link,i(this.appName).linkTargetWindow);break;case"coments":a="".concat(s.sharelink,"/#comments"),window.open(a,i(this.appName).linkTargetWindow);break;case"like":this.delegate.likeItem=s;break;case"bookmark":this.delegate.bookmarkItem=s}}}},{key:"refteshDataInItem",value:function(){for(var e=0;e<this.filteredCollection.length;e++){this.filteredCollection[e].view.updateSomeData()}}},{key:"activate",value:function(){this.updateLayout(),this.scrollHandler=this.scrollHandlerFunction(),this.scrollHandler&&window.addEventListener("scroll",this.scrollHandler,!1)}},{key:"deactivate",value:function(){i(this.appName).appEventManager.removeGMEventListener(o.COLLECTION_DATA_REDY,this,"dataLoaded"),window.removeEventListener("scroll",this.scrollHandler,!1),this.scrollHandler=void 0}},{key:"removeItemViewFormStage",value:function(){this.removePresentedItems(),this.presentedList=[],this.cureantPage=void 0}},{key:"removePresentedItems",value:function(){for(var e=0;e<this.presentedList.length;e++)this.presentedList[e].display="none"}},{key:"showPresentedItems",value:function(){for(var e=0;e<this.presentedList.length;e++)this.presentedList[e].display="block"}},{key:"createLayout",value:function(){this.scrollHandler||(this.scrollHandler=this.scrollHandlerFunction(),this.scrollHandler&&window.addEventListener("scroll",this.scrollHandler,!1)),this.page_Amount=Math.min(20,this.filteredCollection.length)}},{key:"scrollHandlerFunction",value:function(){return!1}},{key:"resize",value:function(){var e=this;clearTimeout(this.resizeTimeOut),n.is_touch_device?this.resizeTimeOut=setTimeout((function(){e.resizeDelay()}),150):this.resizeDelay()}},{key:"resizeDelay",value:function(){this.viewWidth!==this.view.clientWidth&&(this.updateLayout(),this.viewWidth=this.view.clientWidth)}},{key:"filtred",value:function(e){window.removeEventListener("scroll",this.scrollHandler,!1),this.scrollHandler=void 0,this.removeItemViewFormStage(),this.filtredById=e,this.createLayout()}},{key:"updateTagsCloud",value:function(){0!==this.filteredCollection.length&&(this.tagsCloudView||(this.tagsCloudView=new a(this),this.header.appendChild(this.tagsCloudView.view)),this.tagsCloud&&this.tagsCloudView.updateView())}},{key:"filtredById",set:function(e){if(this.itemsList&&(this.filteredList=[],this.filterPr=e,0!==e))for(var t=0;t<this.itemsList.length;t++){var i=this.itemsList[t];i.hasTag(e)&&this.filteredList.push(i)}},get:function(){return this.filterPr}},{key:"filteredCollection",get:function(){return this.filteredList.length>0?this.filteredList:this.itemsList}}]),s}()),l=function(){function e(t,o,a){if(A(this,e),n.copyProperties(t,this),this.appApi){this.appName=o,this.appDiv=a,this.modal=void 0;var s=this.settings;if(s&&(i(this.appName).appApi=this.appApi,i(this.appName).post_url=s.post_url,i(this.appName).galleryID="gm".concat(a.getAttribute("data-gmid")),i(this.appName).appEventManager=n.GMEventsManager(),i(this.appName).cacheItemsList=n.CacheItemsList(),i(this.appName).key=!0,i(this.appName).lightBoxEnable="1"===s.lightBoxEnable,i(this.appName).thumbSpacing=parseInt(s.thumbSpacing),i(this.appName).collectionPreloaderColor="#".concat(s.collectionPreloaderColor),i(this.appName).linkTargetWindow=s.linkTargetWindow,i(this.appName).infoBarTermsClickNewPageEnable="1"===s.infoBarTermsClickNewPageEnable,i(this.appName).tagsFilter="1"===s.tagsFilter,i(this.appName).tagCloudAll=s.tagCloudAll,i(this.appName).tagCloudTextColor="#".concat(s.tagCloudTextColor),i(this.appName).tagCloudBgColor="#".concat(s.tagCloudBgColor),i(this.appName).collectionThumbRecomendedWidth=parseInt(s.collectionThumbRecomendedWidth),i(this.appName).collectionThumbHoverColor=s.collectionThumbHoverColor,i(this.appName).collectionThumbContentBGColor="rgba(245,245,245,1)",i(this.appName).collectionThumbTitleShow="1"===s.collectionThumbTitleShow,i(this.appName).collectionThumbTitleColor=s.collectionThumbTitleColor,i(this.appName).collectionThumbFontSize=parseInt(s.collectionThumbFontSize),i(this.appName).collectionThumbDescriptionShow="1"===s.collectionThumbDescriptionShow,i(this.appName).collectionThumbDescriptionColor=s.collectionThumbDescriptionColor,i(this.appName).collectionThumbDescriptionFontSize=parseInt(s.collectionThumbDescriptionFontSize),i(this.appName).collectionThumbSubMenuBackgroundColor=s.collectionThumbSubMenuBackgroundColor,i(this.appName).collectionThumbSubMenuBackgroundColorOver=s.collectionThumbSubMenuBackgroundColorOver,i(this.appName).collectionThumbSubMenuIconColor=s.collectionThumbSubMenuIconColor,i(this.appName).collectionThumbSubMenuIconHoverColor=s.collectionThumbSubMenuIconHoverColor,i(this.appName).collectionReadMoreButtonBGColor=s.collectionReadMoreButtonBGColor,i(this.appName).collectionReadMoreButtonLabelColor=s.collectionReadMoreButtonLabelColor,i(this.appName).collectionReadMoreButtonBGColorHover=s.collectionReadMoreButtonBGColorHover,i(this.appName).collectionReadMoreButtonLabelColorHover=s.collectionReadMoreButtonLabelColorHover,i(this.appName).collectionReadMoreButtonLabel=s.collectionReadMoreButtonLabel,i(this.appName).modaBgColor=s.modaBgColor,i(this.appName).modalInfoBoxBgColor=s.modalInfoBoxBgColor,i(this.appName).modalInfoBoxTitleTextColor="#".concat(s.modalInfoBoxTitleTextColor),i(this.appName).modalInfoBoxTextColor="#".concat(s.modalInfoBoxTextColor),i(this.appName).infoBarCountersEnable="1"===s.infoBarCountersEnable,i(this.appName).infoBarDateInfoEnable="1"===s.infoBarDateInfoEnable,i(this.appName).shareTitlePlaceHolder=s.shareTitlePlaceHolder,i(this.appName).sliderThumbBarEnable="1"===s.sliderThumbBarEnable,i(this.appName).sliderThumbBarHoverColor=s.sliderThumbBarHoverColor,i(this.appName).sliderPreloaderColor="#".concat(s.sliderPreloaderColor),i(this.appName).sliderBgColor=s.sliderBgColor,i(this.appName).sliderHeaderFooterBgColor="#".concat(s.sliderHeaderFooterBgColor),i(this.appName).sliderNavigationColor=s.sliderNavigationColor,i(this.appName).sliderNavigationIconColor=s.sliderNavigationIconColor,i(this.appName).sliderItemTitleFontSize=parseInt(s.sliderItemTitleFontSize),i(this.appName).sliderItemTitleTextColor="#".concat(s.sliderItemTitleTextColor),i(this.appName).sliderThumbSubMenuBackgroundColor=s.sliderThumbSubMenuBackgroundColor,i(this.appName).sliderThumbSubMenuBackgroundColorOver=s.sliderThumbSubMenuBackgroundColorOver,i(this.appName).sliderThumbSubMenuIconColor=s.sliderThumbSubMenuIconColor,i(this.appName).sliderThumbSubMenuIconHoverColor=s.sliderThumbSubMenuIconHoverColor,i(this.appName).sliderInfoEnable="1"===s.sliderInfoEnable,i(this.appName).sliderItemDownload="1"===s.sliderItemDownload,i(this.appName).sliderItemDiscuss="1"===s.sliderItemDiscuss,i(this.appName).sliderSocialShareEnabled="1"===s.sliderSocialShareEnabled,i(this.appName).sliderLikesEnabled="1"===s.sliderLikesEnabled),this.audioPlayer=void 0,this.bookmarkStatusShow=i(this.appName).bookmarkShowState,i){this.currentLocation=void 0,this.collections=[],this.terms={},this.appDiv.style.position="relative",this.appDiv.style.height="auto",this.appDivWidth=this.appDiv.clientWidth;var l=new r(this,this.appName);this.collections.push(l),this.appDiv.appendChild(l.view),l.init(),this.startApp()}}}return R(e,[{key:"startApp",value:function(){var e=this;i(this.appName).appEventManager.addGMEventListener(o.NEED_NEW_COLLECTION,this,"pushNewCollectionByTermID"),i(this.appName).appEventManager.addGMEventListener(o.NEED_NEW_COLLECTION_BY_TERM,this,"pushNewCollectionByTerm"),i(this.appName).appEventManager.addGMEventListener(o.NEED_MODAL,this,"createModal"),i(this.appName).lightBoxEnable&&(i(this.appName).appEventManager.addGMEventListener(o.NEED_LIGHTBOX,this,"createLightbox"),i(this.appName).appEventManager.addGMEventListener(o.REMOVE_LIGHTBOX,this,"removeLightbox"),i(this.appName).appEventManager.addGMEventListener(o.FULLSCREEN_SWITCH,this,"fullscreenSwitch")),this.viewsSet={},i(this.appName).appEventManager.addGMEventListener(o.COUNTERS_UPDATED,this,"itemsCountersUpdateHandler"),this.likesSet={},window.localStorage.getItem("gm_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("gm_likesSet"))),window.addEventListener("resize",(function(){e.windowResizeHandler(e)})),this.popstateHandler=function(){(e.modal&&e.modal.prepareToRemove(),e.lightbox)?e.lightbox.prepareToRemove():e.collections.length>0&&e.collections[e.collections.length-1]&&e.itemFromHash&&e.collections[e.collections.length-1].tryOpenLightboxForID(e.itemFromHash)},window.addEventListener("popstate",this.popstateHandler,!1),this.itemFromHash&&(this.startItem=this.itemFromHash,window.history.replaceState(null,null,window.location.pathname+window.location.search)),this.appQuery&&(this.createAudioPlayer(),this.collections[0].startRequest(this.appQuery))}},{key:"itemHash",value:function(e){return"#".concat(this.appName,"-").concat(e.ID)}},{key:"addCollectioByQuery",value:function(e){var t=0;if(this.modal&&(this.modal.prepareToRemove(),t=500),this.lightbox&&(this.lightbox.prepareToRemove(),t=500),this.collections.length>0&&this.collections[this.collections.length-1]){var i=this.collections[this.collections.length-1];i.deactivate(),i.view.parentNode&&this.appDiv.removeChild(i.view)}if(document.body.scrollTop>this.appDiv.getBoundingClientRect().top){var o=document.body.getBoundingClientRect(),a=this.appDiv.getBoundingClientRect().top-o.top-(n.isTouchDevice?0:50);n.scrollToY(a,500)}var s=this;!e.s&&this.searchForm&&this.searchForm.clear(),setTimeout((function(){var t=new r(s,s.appName,e);s.collections.push(t),s.appDiv.appendChild(t.view),t.init()}),t)}},{key:"pushNewCollectionByTerm",value:function(e){if(e.params||e.params.term){var t=e.params.term;t.sharelink&&window.open(t.sharelink,"_self")}}},{key:"termLinkForTerm",value:function(e,t){return"".concat(i(this.appName).post_url,"/?").concat(i(this.appName).galleryID,"[").concat(t,"]=").concat(e)}},{key:"pushNewCollectionByTermID",value:function(e){if(e.params||e.params.term_id||!e.params.taxonomy){var t=e.params.term_id,i=e.params.taxonomy,o=this.termLinkForTerm(t,i);window.open(o,"_self")}}},{key:"itemsCountersUpdate",value:function(){if(this.viewsSet){var e=[];for(var t in this.viewsSet)this.viewsSet[t]&&e.push(t);if(e.length>0){var i={likes:[],views:e},a=JSON.stringify({counter:i});n.request(a,this,o.COUNTERS_UPDATED),this.viewsSet={}}}}},{key:"itemsCountersUpdateHandler",value:function(){window.localStorage.setItem("gm_likesSet",JSON.stringify(this.likesSet))}},{key:"createLightbox",value:function(e){if(e.params||e.params.collection){var t=e.params.collection,o=e.params.index,a=t.filteredCollection[o];this.lightbox&&this.lightbox.prepareToRemove(),window.localStorage.getItem("gm_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("gm_likesSet")));var n=E.CONFIG;n.backgroundColor=i(this.appName).sliderBgColor,n.headerFooterColor=i(this.appName).sliderHeaderFooterBgColor,n.preloaderColor=i(this.appName).sliderPreloaderColor,n.sliderNavigationColor=i(this.appName).sliderNavigationColor,n.sliderNavigationIconColor=i(this.appName).sliderNavigationIconColor,n.itemTitleEnable=!0,n.itemTitleFontSize=i(this.appName).sliderItemTitleFontSize,n.itemTitleTextColor=i(this.appName).sliderItemTitleTextColor,n.thumbBarEnable=!0,n.zoom=!0,n.itemInfoEnable=i(this.appName).sliderInfoEnable,n.itemShare=i(this.appName).sliderSocialShareEnabled,n.itemDownload=i(this.appName).sliderItemDownload,n.itemLike=i(this.appName).sliderLikesEnabled,n.discuss=i(this.appName).sliderItemDiscuss,n.menuBackgroundColor=i(this.appName).sliderThumbSubMenuBackgroundColor,n.menuBackgroundColorOver=i(this.appName).sliderThumbSubMenuBackgroundColorOver,n.menuIconColor=i(this.appName).sliderThumbSubMenuIconColor,n.menuIconColorOver=i(this.appName).sliderThumbSubMenuIconHoverColor,n.slideshowEneble=!0,n.slideshowIndicatorColor="rgba(255,255,255,1)",n.slideshowIndicatorColorBg="rgba(255,255,255,0.6)",n.slideshowTimer=8,this.lightbox=new E(this,n),this.lightbox.initByList(t.filteredCollection,o);var s=this.itemHash(a);window.location.hash!==s&&window.history.pushState(null,null,s)}}},{key:"updateItemLink",value:function(e){window.history.replaceState(null,null,this.itemHash(e))}},{key:"removeLightbox",value:function(e){if(e.target===this.lightbox){var t=this,i=e.target;setTimeout((function(){i.view&&i.view.parentNode&&i.view.parentNode.removeChild(i.view),t.lightbox&&(t.lightbox=void 0)}),100),this.itemsCountersUpdate(),this.itemFromHash&&window.history.back()}}},{key:"createModal",value:function(e){if(e.params.type&&e.params.item){var t,o=e.params.item,a=M.COLOR;a.backgroundColor=i(this.appName).modaBgColor,a.buttonIconColor=i(this.appName).modalInfoBoxTitleTextColor,a.pageBgColor=i(this.appName).modalInfoBoxBgColor,a.modalInfoBoxTitleTextColor=i(this.appName).modalInfoBoxTitleTextColor,a.modalInfoBoxTextColor=i(this.appName).modalInfoBoxTextColor;var n=M.CONFIG;n.infoBarDateInfoEnable=i(this.appName).infoBarDateInfoEnable,n.infoBarExifEnable=!0,n.infoBarCountersEnable=i(this.appName).infoBarCountersEnable,n.infoBarTerms=!0;var s=document.getElementsByTagName("body")[0];switch(n.parentDiv=this.lightbox?this.lightbox.view:s,n.fixedMode=!this.lightbox,this.modal||(this.modal=new M(this,a,n)),e.params.type){case"share":t=this.modal.getPageByType(M.TYPE.SHARE_BAR);break;case"info":t=this.modal.getPageByType(M.TYPE.INFO_BAR)}t.item=o,this.modal.pushPage(t.view)}}},{key:"deleteModal",value:function(){this.modal&&delete this.modal}},{key:"fullscreenSwitch",value:function(){var e=this.lightbox.view;e&&(n.toggleFullScreen(e),this.windowResizeHandler())}},{key:"windowResizeHandler",value:function(){this.bookmarkBox&&this.collectionTranslateY!==this.bookmarkBox.height&&(this.collectionTranslateY=this.bookmarkBox.height,this.showBookmarkInfo(this.bookmarkStatusShow)),this.collections.length>0&&this.collections[this.collections.length-1].resize(),this.lightbox&&this.lightbox.resizeHandler()}},{key:"createAudioPlayer",value:function(){var e,t=this;function i(e){t.slider&&t.slider.audioPlayerHandler(e)}null!=(e=document.getElementById("gmAudioPlayer")?document.getElementById("gmAudioPlayer"):new Audio)&&e.canPlayType&&e.canPlayType("audio/mpeg")&&(e.id="gmAudioPlayer",e.setAttribute("type","audio/mpeg"),e.setAttribute("codecs","mp3"),this.audioPlayer=e,this.appDiv.appendChild(this.audioPlayer),e.addEventListener("ended",i,!1),e.addEventListener("pause",i,!1),e.addEventListener("play",i,!1),e.addEventListener("durationchange",i,!1))}},{key:"itemFromHash",get:function(){var e,t=window.location.hash.indexOf(this.appName);return t+1&&(e=window.location.hash.substr(t).split("-").length>=2?parseInt(window.location.hash.substr(t).split("-")[1]):void 0),e}},{key:"likeItem",set:function(e){if(e){e.meta.likes||(e.meta.likes=0),e.meta.likes=parseInt(e.meta.likes)+1,e.view&&e.view.like&&(e.view.like=!0);var t=e.ID;if(!this.likesSet[t]){this.likesSet[t]="like",this.viewsSet[t]&&delete this.viewsSet[t];var i={likes:[t],views:[t]},a=JSON.stringify({counter:i});n.request(a,this,o.COUNTERS_UPDATED),window.localStorage.setItem("gm_likesSet",JSON.stringify(this.likesSet))}}}},{key:"viewItem",set:function(e){var t=e.ID;this.updateItemLink(e),this.viewsSet[t]="view"}}]),e}();!function(){for(var e=document.body.getElementsByClassName("amron_module"),t=0;t<e.length;t++){var i=e[t].id;window[i]=new l(window[i],i,e[t])}}()}()}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module/amron/settings.php
CHANGED
@@ -35,7 +35,7 @@ $default_options = array(
|
|
35 |
// Slider Page
|
36 |
'lightBoxEnable' => '1',
|
37 |
'sliderPreloaderColor' =>'ffffff',
|
38 |
-
'sliderBgColor' => 'rgba(0,0,0,
|
39 |
'sliderHeaderFooterBgColor' => '000000',
|
40 |
'sliderNavigationColor' => 'rgba(0,0,0,1)',
|
41 |
'sliderNavigationIconColor' => 'rgba(255,255,255,1)',
|
35 |
// Slider Page
|
36 |
'lightBoxEnable' => '1',
|
37 |
'sliderPreloaderColor' =>'ffffff',
|
38 |
+
'sliderBgColor' => 'rgba(0,0,0,0.8)',
|
39 |
'sliderHeaderFooterBgColor' => '000000',
|
40 |
'sliderNavigationColor' => 'rgba(0,0,0,1)',
|
41 |
'sliderNavigationIconColor' => 'rgba(255,255,255,1)',
|
module/cubik-lite/index.php
CHANGED
@@ -3,7 +3,7 @@ $module_info = array(
|
|
3 |
'base' => 'cubik-lite',
|
4 |
'name' => 'cubik-lite',
|
5 |
'title' => 'Cubik Lite',
|
6 |
-
'version' => '1.
|
7 |
'author' => 'GalleryCreator',
|
8 |
'description' => __('Perfect gallery module for widget. This is a light version of Cubik module.
|
9 |
|
3 |
'base' => 'cubik-lite',
|
4 |
'name' => 'cubik-lite',
|
5 |
'title' => 'Cubik Lite',
|
6 |
+
'version' => '1.6',
|
7 |
'author' => 'GalleryCreator',
|
8 |
'description' => __('Perfect gallery module for widget. This is a light version of Cubik module.
|
9 |
|
module/cubik-lite/init.php
CHANGED
@@ -276,10 +276,12 @@ if(!$is_bot){
|
|
276 |
}
|
277 |
?>
|
278 |
<script type="text/javascript">
|
|
|
279 |
jQuery(function() {
|
280 |
var settings = <?php echo json_encode($settings); ?>;
|
281 |
jQuery('#GmediaGallery_<?php echo $id; ?>').gmCubikLite([settings]);
|
282 |
});
|
|
|
283 |
</script><?php
|
284 |
if($shortcode_raw){
|
285 |
echo '</pre>';
|
276 |
}
|
277 |
?>
|
278 |
<script type="text/javascript">
|
279 |
+
document.addEventListener('DOMContentLoaded', function(){
|
280 |
jQuery(function() {
|
281 |
var settings = <?php echo json_encode($settings); ?>;
|
282 |
jQuery('#GmediaGallery_<?php echo $id; ?>').gmCubikLite([settings]);
|
283 |
});
|
284 |
+
});
|
285 |
</script><?php
|
286 |
if($shortcode_raw){
|
287 |
echo '</pre>';
|
module/jq-mplayer/index.php
CHANGED
@@ -3,7 +3,7 @@ $module_info = array(
|
|
3 |
'base' => 'jq-mplayer',
|
4 |
'name' => 'jq-mplayer',
|
5 |
'title' => 'jQ Music Player',
|
6 |
-
'version' => '2.
|
7 |
'author' => 'CodEasily.com',
|
8 |
'description' => __('This beautiful audio player is totally written in JQuery and HTML5 + visitors can set rating for each track', 'grand-media'),
|
9 |
'type' => 'music',
|
3 |
'base' => 'jq-mplayer',
|
4 |
'name' => 'jq-mplayer',
|
5 |
'title' => 'jQ Music Player',
|
6 |
+
'version' => '2.13',
|
7 |
'author' => 'CodEasily.com',
|
8 |
'description' => __('This beautiful audio player is totally written in JQuery and HTML5 + visitors can set rating for each track', 'grand-media'),
|
9 |
'type' => 'music',
|
module/jq-mplayer/init.php
CHANGED
@@ -89,11 +89,13 @@ if ( ! empty( $content ) ) {
|
|
89 |
}
|
90 |
?>
|
91 |
<script type="text/javascript">
|
|
|
92 |
jQuery(function() {
|
93 |
var settings = <?php echo json_encode($settings); ?>;
|
94 |
var content = <?php echo json_encode($content); ?>;
|
95 |
jQuery('#GmediaGallery_<?php echo $gallery['term_id'] ?>').data('uid', '<?php echo $gallery['term_id'] ?>').gmMusicPlayer(content, settings);
|
96 |
});
|
|
|
97 |
</script><?php if ( $shortcode_raw ) {
|
98 |
echo '</pre>';
|
99 |
}
|
89 |
}
|
90 |
?>
|
91 |
<script type="text/javascript">
|
92 |
+
document.addEventListener('DOMContentLoaded', function(){
|
93 |
jQuery(function() {
|
94 |
var settings = <?php echo json_encode($settings); ?>;
|
95 |
var content = <?php echo json_encode($content); ?>;
|
96 |
jQuery('#GmediaGallery_<?php echo $gallery['term_id'] ?>').data('uid', '<?php echo $gallery['term_id'] ?>').gmMusicPlayer(content, settings);
|
97 |
});
|
98 |
+
});
|
99 |
</script><?php if ( $shortcode_raw ) {
|
100 |
echo '</pre>';
|
101 |
}
|
module/phantom/index.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
$module_info = array('base' => 'phantom',
|
3 |
'name' => 'phantom',
|
4 |
'title' => 'Phantom',
|
5 |
-
'version' => '3.
|
6 |
'author' => 'CodEasily.com',
|
7 |
'description' => __('This module will help you to easily add a grid gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).
|
8 |
|
2 |
$module_info = array('base' => 'phantom',
|
3 |
'name' => 'phantom',
|
4 |
'title' => 'Phantom',
|
5 |
+
'version' => '3.21',
|
6 |
'author' => 'CodEasily.com',
|
7 |
'description' => __('This module will help you to easily add a grid gallery to your WordPress website or blog. The gallery is completely customizable, resizable and is compatible with all browsers and devices (iPhone, iPad and Android smartphones).
|
8 |
|
module/phantom/init.php
CHANGED
@@ -393,10 +393,12 @@ if(!$is_bot){
|
|
393 |
}
|
394 |
?>
|
395 |
<script type="text/javascript">
|
|
|
396 |
jQuery(function() {
|
397 |
var settings = <?php echo json_encode($settings); ?>;
|
398 |
jQuery('#GmediaGallery_<?php echo $id; ?>').gmPhantom([settings]);
|
399 |
});
|
|
|
400 |
</script><?php
|
401 |
if($shortcode_raw){
|
402 |
echo '</pre>';
|
393 |
}
|
394 |
?>
|
395 |
<script type="text/javascript">
|
396 |
+
document.addEventListener('DOMContentLoaded', function(){
|
397 |
jQuery(function() {
|
398 |
var settings = <?php echo json_encode($settings); ?>;
|
399 |
jQuery('#GmediaGallery_<?php echo $id; ?>').gmPhantom([settings]);
|
400 |
});
|
401 |
+
});
|
402 |
</script><?php
|
403 |
if($shortcode_raw){
|
404 |
echo '</pre>';
|
module/photomania/index.php
CHANGED
@@ -3,7 +3,7 @@ $module_info = array(
|
|
3 |
'base' => 'photomania',
|
4 |
'name' => 'photomania',
|
5 |
'title' => 'PhotoMania',
|
6 |
-
'version' => '1.
|
7 |
'author' => 'CodEasily.com',
|
8 |
'description' => __('Responsive Gallery based on jQuery with keyboard control, displaying thumbs, author, title and optional description, download, link button, like button, full window and full screen mode', 'grand-media'),
|
9 |
'type' => 'gallery',
|
3 |
'base' => 'photomania',
|
4 |
'name' => 'photomania',
|
5 |
'title' => 'PhotoMania',
|
6 |
+
'version' => '1.6',
|
7 |
'author' => 'CodEasily.com',
|
8 |
'description' => __('Responsive Gallery based on jQuery with keyboard control, displaying thumbs, author, title and optional description, download, link button, like button, full window and full screen mode', 'grand-media'),
|
9 |
'type' => 'gallery',
|
module/photomania/init.php
CHANGED
@@ -366,6 +366,7 @@ if ( ! $is_bot ) {
|
|
366 |
}
|
367 |
?>
|
368 |
<script type="text/javascript">
|
|
|
369 |
jQuery(function($) {
|
370 |
var settings = <?php echo json_encode($settings); ?>;
|
371 |
var content = <?php echo json_encode($content); ?>;
|
@@ -373,6 +374,7 @@ if ( ! $is_bot ) {
|
|
373 |
container.photomania(settings, content);
|
374 |
window.GmediaGallery_<?php echo $id; ?> = container.data('photomania');
|
375 |
});
|
|
|
376 |
</script><?php if ( $shortcode_raw ) {
|
377 |
echo '</pre>';
|
378 |
} ?>
|
366 |
}
|
367 |
?>
|
368 |
<script type="text/javascript">
|
369 |
+
document.addEventListener('DOMContentLoaded', function(){
|
370 |
jQuery(function($) {
|
371 |
var settings = <?php echo json_encode($settings); ?>;
|
372 |
var content = <?php echo json_encode($content); ?>;
|
374 |
container.photomania(settings, content);
|
375 |
window.GmediaGallery_<?php echo $id; ?> = container.data('photomania');
|
376 |
});
|
377 |
+
});
|
378 |
</script><?php if ( $shortcode_raw ) {
|
379 |
echo '</pre>';
|
380 |
} ?>
|
readme.txt
CHANGED
@@ -21,6 +21,7 @@ Handle any file format and link any files with images in few clicks. You can imp
|
|
21 |
|
22 |
#### Demos:
|
23 |
|
|
|
24 |
* [UltraBox](https://codeasily.com/portfolio/gmedia-gallery-modules/ultrabox/) - Grid/Justify/Massonry gallery with Related Images support in lightbox + EXIF/GPS info, global search, tag filter.
|
25 |
* [GmediaSlider](https://codeasily.com/portfolio/gmedia-gallery-modules/gmediaslider/) - Responsive Image Slider with slideshow.
|
26 |
* [MultiSlider (3 in 1)](https://codeasily.com/portfolio/gmedia-gallery-modules/multislider/) - Image Slider with a lot of options and 3 different layouts.
|
@@ -133,6 +134,14 @@ Use [Gmedia Support Forum](https://codeasily.com/community/forum/gmedia-gallery-
|
|
133 |
= Modules Updated =
|
134 |
* Go to Gmedia Modules page and update installed premium modules to latest versions
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
= v1.16.4 =
|
137 |
* Added option to disable menu label with quantity of new modules.
|
138 |
* Fixed import from WP Library not save image author.
|
21 |
|
22 |
#### Demos:
|
23 |
|
24 |
+
* [Amron](https://codeasily.com/amron/) - bundled FREE lightweight and fast gllery which will fit any website.
|
25 |
* [UltraBox](https://codeasily.com/portfolio/gmedia-gallery-modules/ultrabox/) - Grid/Justify/Massonry gallery with Related Images support in lightbox + EXIF/GPS info, global search, tag filter.
|
26 |
* [GmediaSlider](https://codeasily.com/portfolio/gmedia-gallery-modules/gmediaslider/) - Responsive Image Slider with slideshow.
|
27 |
* [MultiSlider (3 in 1)](https://codeasily.com/portfolio/gmedia-gallery-modules/multislider/) - Image Slider with a lot of options and 3 different layouts.
|
134 |
= Modules Updated =
|
135 |
* Go to Gmedia Modules page and update installed premium modules to latest versions
|
136 |
|
137 |
+
= v1.16.6 =
|
138 |
+
* Updated Amron module.
|
139 |
+
* Small fixes.
|
140 |
+
|
141 |
+
= v1.16.5 =
|
142 |
+
* Fixed PHP warning on some themes.
|
143 |
+
* Updated bundled modules.
|
144 |
+
|
145 |
= v1.16.4 =
|
146 |
* Added option to disable menu label with quantity of new modules.
|
147 |
* Fixed import from WP Library not save image author.
|