/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/audioplaylist.sourcepack.js":
/*!*****************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/audioplaylist.sourcepack.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _jsinc_dzsap_svgs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsinc/_dzsap_svgs */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js\");\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n/* harmony import */ var _configs_settingsPlaylist__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configs/_settingsPlaylist */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlaylist.js\");\n/* harmony import */ var _jsinc_components_nav__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jsinc/components/_nav */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_nav.js\");\n/* harmony import */ var _jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jsinc/_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n/* harmony import */ var _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\n\n\n\nvar DzsApPlaylist = /*#__PURE__*/function () {\n  function DzsApPlaylist(argThis, argOptions, $) {\n    _classCallCheck(this, DzsApPlaylist);\n\n    this.argThis = argThis;\n    this.argOptions = argOptions;\n    this.$ = $;\n    this.navClass = null;\n    this.init();\n  }\n\n  _createClass(DzsApPlaylist, [{\n    key: \"init\",\n    value: function init() {\n      var $ = this.$;\n      var selfGallery = this;\n      var o = selfGallery.argOptions;\n      var cgallery = $(selfGallery.argThis);\n      var cid = 'ag1';\n      var currNr = -1 // -- the current player that is playing\n      ,\n          lastCurrNr = 0,\n          nrChildren = 0,\n          tempNr = 0;\n      var i = 0;\n      var dzsap_currplayer_focused = null;\n\n      var _sliderMain, _sliderClipper, _navMain, _navClipper;\n\n      var busy = false,\n          first = true,\n          destroyed = true,\n          skin_redlight_give_controls_right_to_all_players = false // -- if the mode is mode-showall and the skin of the player is redlights, then make all players with controls right\n      ;\n      var trying_to_get_track_data = false;\n      var arr_menuitems = [];\n      var track_data = []; // -- the whole track data views / likes etc.\n\n      var str_alertBeforeRate = 'You need to comment or rate before downloading.';\n      var duration_viy = 20;\n      var target_viy = 0;\n      var begin_viy = 0;\n      var change_viy = 0;\n      selfGallery.goto_item = goto_item;\n      selfGallery.handleResize = handleResize;\n      selfGallery.initOptions = o;\n\n      if (window.dzsap_settings && typeof window.dzsap_settings.str_alertBeforeRate != 'undefined') {\n        str_alertBeforeRate = window.dzsap_settings.str_alertBeforeRate;\n      }\n\n      cgallery.get(0).currNr_2 = -1; // -- we use this as backup currNR for mode-showall ( hack )\n\n      init();\n\n      function init() {\n        // -- init gallery here\n        if (o.settings_ap === 'default') {\n          if (cgallery.attr('data-player-options')) {\n            o.settings_ap = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.convertPluginOptionsToFinalOptions)(cgallery.get(0), {}, null, 'data-player-options');\n          } else {\n            var _firstPlayer = cgallery.find('.audioplayer, .audioplayer-tobe').eq(0);\n\n            if (_firstPlayer) {\n              o.settings_ap = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.convertPluginOptionsToFinalOptions)(_firstPlayer.get(0), {}, null);\n            }\n          }\n        } else {\n          if (typeof o.settings_ap == 'string' && window.dzsap_apconfigs) {\n            if (_typeof(window.dzsap_apconfigs[o.settings_ap]) === 'object') {\n              o.settings_ap = _objectSpread({}, window.dzsap_apconfigs[o.settings_ap]);\n            }\n          }\n        }\n\n        if (o.settings_ap === 'default' || typeof o.settings_ap === 'string') {\n          o.settings_ap = {};\n        }\n\n        if (o.design_menu_width === 'default') {\n          o.design_menu_width = '100%';\n        }\n\n        if (o.design_menu_height === 'default') {\n          o.design_menu_height = '200';\n        }\n\n        if (cgallery.hasClass('skin-wave')) {\n          o.design_skin = 'skin-wave';\n        }\n\n        if (cgallery.hasClass('skin-default')) {\n          o.design_skin = 'skin-default';\n        }\n\n        if (cgallery.hasClass('skin-aura')) {\n          o.design_skin = 'skin-aura';\n        }\n\n        cgallery.addClass(o.settings_mode);\n        cgallery.append('<div class=\"slider-main\"><div class=\"slider-clipper\"></div></div>');\n        cgallery.addClass('menu-position-' + o.design_menu_position);\n        _sliderMain = cgallery.find('.slider-main').eq(0);\n        var lengthAudioPlayersInPlaylist = cgallery.find('.items').children('.audioplayer-tobe').length; // --- if there is a single audio player in the gallery - theres no point of a menu\n\n        o.settings_ap.disable_player_navigation = o.disable_player_navigation;\n\n        if (lengthAudioPlayersInPlaylist === 0 || lengthAudioPlayersInPlaylist === 1) {\n          o.design_menu_position = 'none';\n          o.settings_ap.disable_player_navigation = 'on';\n        }\n\n        selfGallery.navClass = new _jsinc_components_nav__WEBPACK_IMPORTED_MODULE_3__.ZoomSoundsNav(selfGallery);\n\n        if (o.design_menu_position === 'top') {\n          _sliderMain.before(selfGallery.navClass.get_structZoomsoundsNav());\n        }\n\n        if (o.design_menu_position === 'bottom') {\n          _sliderMain.after(selfGallery.navClass.get_structZoomsoundsNav());\n        }\n\n        if (o.settings_php_handler) {} else {\n          if (o.settings_ap.settings_php_handler) {\n            o.settings_php_handler = o.settings_ap.settings_php_handler;\n          }\n        }\n\n        if (_typeof(cgallery.attr('id'))) {\n          cid = cgallery.attr('id');\n        } else {\n          var ind = 0;\n\n          while ($('ag' + ind).length === 0) {\n            ind++;\n          }\n\n          cid = 'ag' + ind;\n          cgallery.attr('id', cid);\n        }\n\n        _sliderClipper = cgallery.find('.slider-clipper').eq(0);\n        _navMain = cgallery.find('.nav-main').eq(0);\n        _navClipper = cgallery.find('.nav-clipper').eq(0);\n\n        if (cgallery.children('.extra-html').length) {\n          cgallery.append(cgallery.children('.extra-html'));\n        }\n\n        if (o.settings_mode === 'mode-showall') {\n          _sliderClipper.addClass('layout-' + o.mode_showall_layout);\n        }\n\n        selfGallery.navClass.set_elements(_navMain, _navClipper, cgallery);\n        reinit();\n        selfGallery.navClass.init_ready();\n        parse_track_data();\n\n        if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.can_history_api)() === false) {\n          o.settings_enable_linking = 'off';\n        }\n\n        $(window).on('resize', handleResize);\n        handleResize();\n        setTimeout(handleResize, 1000);\n\n        cgallery.get(0).api_skin_redlights_give_controls_right_to_all = function () {\n          skin_redlight_give_controls_right_to_all_players = true;\n        };\n\n        if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.get_query_arg)(window.location.href, 'audiogallery_startitem_' + cid)) {\n          tempNr = Number((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.get_query_arg)(window.location.href, 'audiogallery_startitem_' + cid));\n          lastCurrNr = tempNr;\n\n          if (Number((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.get_query_arg)(window.location.href, 'audiogallery_startitem_' + cid)) && Number((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.get_query_arg)(window.location.href, 'audiogallery_startitem_' + cid)) > 0) {\n            // -- caution .. coming from share link will trigger autoplay!!!\n            if (o.force_autoplay_when_coming_from_share_link == 'on') {\n              o.autoplay = 'on';\n            }\n          }\n        }\n\n        if (o.settings_mode == 'mode-normal') {\n          goto_item(tempNr, {\n            'called_from': 'init'\n          });\n        }\n\n        if (o.settings_mode === 'mode-showall') {\n          // -- mode-showall\n          _sliderClipper.children().each(function () {\n            var _t = $(this);\n\n            var ind = _t.parent().children('.audioplayer,.audioplayer-tobe').index(_t);\n\n            if (_t.hasClass('audioplayer-tobe')) {\n              var player_args = Object.assign({}, o.settings_ap);\n              player_args.parentgallery = cgallery;\n              player_args.call_from = 'mode show-all';\n              player_args.action_audio_play = mode_showall_listen_for_play; // -- showall\n\n              _t.audioplayer(player_args);\n\n              ind = String(ind + 1);\n\n              if (ind.length < 2) {\n                ind = '0' + ind;\n              }\n\n              if (o.mode_showall_layout === 'one-per-row' && o.settings_mode_showall_show_number !== 'off') {\n                _t.before('<div class=\"number-wrapper\"><span class=\"the-number\">' + ind + '</span></div>');\n\n                _t.after('<div class=\"clear for-number-wrapper\"></div>');\n              }\n            }\n          });\n\n          if ($.fn.isotope && o.mode_showall_layout !== 'one-per-row') {\n            // -- we have isotope\n            _sliderClipper.find('.audioplayer,.audioplayer-tobe').addClass('isotope-item');\n\n            setTimeout(function () {\n              _sliderClipper.prepend('<div class=\"grid-sizer\"></div>');\n\n              _sliderClipper.isotope({\n                // options\n                itemSelector: '.isotope-item',\n                layoutMode: 'fitRows',\n                percentPosition: true,\n                masonry: {\n                  columnWidth: '.grid-sizer'\n                }\n              });\n\n              _sliderClipper.addClass('isotoped');\n\n              setTimeout(function () {\n                _sliderClipper.isotope('layout');\n              }, 900);\n            }, _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.PLAYLIST_TRANSITION_DURATION);\n\n            _sliderClipper.append('<div class=\"clear\"></div>');\n          }\n\n          if (skin_redlight_give_controls_right_to_all_players) {\n            _sliderClipper.children('.audioplayer').each(function () {\n              var _t = $(this);\n\n              if (_t.find('.ap-controls-right').eq(0).prev().hasClass('controls-right') === false) {\n                _t.find('.ap-controls-right').eq(0).before('<div class=\"controls-right\"> </div>');\n              }\n            });\n          }\n        }\n\n        cgallery.find('.download-after-rate').on('click', click_downloadAfterRate);\n        cgallery.get(0).api_regenerate_sync_players_with_this_playlist = regenerate_sync_players_with_this_playlist;\n        cgallery.get(0).api_goto_next = goto_next;\n        cgallery.get(0).api_goto_prev = goto_prev;\n        cgallery.get(0).api_goto_item = goto_item;\n        cgallery.get(0).api_gallery_handle_end = handlePlaylistSongEnd;\n        cgallery.get(0).api_toggle_menu_state = toggle_menu_state;\n        cgallery.get(0).api_handleResize = handleResize;\n        cgallery.get(0).api_player_commentSubmitted = player_commentSubmitted;\n        cgallery.get(0).api_player_rateSubmitted = player_rateSubmitted;\n        cgallery.get(0).api_reinit = reinit;\n        cgallery.get(0).api_play_curr_media = play_curr_media;\n        cgallery.get(0).api_get_nr_children = get_nr_children;\n        cgallery.get(0).api_init_player_from_gallery = init_player_from_gallery;\n        cgallery.get(0).api_filter = filterPlayersInPlaylist;\n        cgallery.get(0).api_destroy = destroy_gallery;\n        cgallery.get(0).SelfPlaylist = selfGallery;\n        setInterval(calculate_on_interval, 1000);\n        setTimeout(init_loaded, 700);\n\n        if (o.enable_easing == 'on') {\n          handle_frame();\n        }\n\n        cgallery.addClass('dzsag-inited');\n        cgallery.addClass('transition-' + o.playlistTransition);\n        cgallery.addClass('playlist-transition-' + o.playlistTransition);\n      }\n\n      function destroy_gallery() {\n        if (destroyed) {\n          return false;\n        }\n\n        cgallery.remove();\n        cgallery = null;\n        destroyed = true;\n      }\n\n      function filterPlayersInPlaylist(filterBy, searchedString) {\n        if (!filterBy) {\n          filterBy = 'title';\n        }\n        /**\n         *\n         * @param $audioPlayer_\n         * @returns {boolean} true if found\n         */\n\n\n        var filterForIsotope = function filterForIsotope($audioPlayer_) {\n          var $audioPlayer = $($audioPlayer_);\n          var referenceVal = '';\n\n          if (filterBy === 'title') {\n            referenceVal = $audioPlayer.find('.the-name').text();\n          }\n\n          if (searchedString === '') {\n            return true;\n          }\n\n          return referenceVal.toLowerCase().indexOf(searchedString.toLowerCase()) > -1;\n        };\n\n        _sliderClipper.children().each(function () {\n          var isAccordingToSearch = filterForIsotope(this);\n\n          if (isAccordingToSearch) {\n            $(this).addClass('is-according-to-search');\n          } else {\n            $(this).removeClass('is-according-to-search');\n          }\n\n          if (_sliderClipper.hasClass('isotoped')) {\n            _sliderClipper.isotope({\n              filter: '.is-according-to-search'\n            });\n          } else {\n            if (isAccordingToSearch) {\n              $(this).fadeIn('fast');\n            } else {\n              $(this).fadeOut('fast');\n            }\n          }\n        });\n      }\n\n      function regenerate_sync_players_with_this_playlist() {\n        // -- in case we play from playlist we overwrite whole footer playlist\n        window.dzsap_syncList_players = [];\n\n        _sliderClipper.children('.audioplayer,.audioplayer-tobe').each(function () {\n          var _t = $(this);\n\n          _t.addClass('feeded-whole-playlist');\n\n          if (_t.attr('data-do-not-include-in-list') != 'on') {\n            window.dzsap_syncList_players.push(_t);\n          }\n        });\n      }\n\n      function init_parse_track_data() {\n        if (trying_to_get_track_data) {\n          return false;\n        }\n\n        trying_to_get_track_data = true;\n        var data = {\n          action: 'dzsap_get_views_all',\n          postdata: '1'\n        };\n\n        if (o.settings_php_handler) {\n          $.ajax({\n            type: \"POST\",\n            url: o.settings_php_handler,\n            data: data,\n            success: function success(response) {\n              cgallery.attr('data-track-data', response);\n              parse_track_data();\n            },\n            error: function error(arg) {}\n          });\n        }\n      }\n\n      function parse_track_data() {\n        if (cgallery.attr('data-track-data')) {\n          try {\n            track_data = JSON.parse(cgallery.attr('data-track-data'));\n          } catch (err) {\n            console.log(err);\n          }\n\n          if (track_data && track_data.length) {\n            selfGallery.navClass.parseTrackData(track_data);\n          }\n        }\n      }\n\n      function get_nr_children() {\n        return nrChildren;\n      }\n\n      function find_player_id(arg) {\n        if (arg.attr('data-player-id')) {\n          return arg.attr('data-player-id');\n        } else {\n          if (arg.attr('id')) {\n            return arg.attr('id');\n          } else {\n            if (arg.attr('data-source')) {\n              return (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.dzs_clean_string)(arg.attr('data-source'));\n            }\n          }\n        }\n      }\n\n      function generateMenuItemObjects(notInitedPlayers) {\n        var arr_menuitems = [];\n        notInitedPlayers.each(function () {\n          var _c = $(this);\n\n          var menuDescriptionHtml = '';\n\n          if (_c.find('.menu-description').length && _c.find('.menu-description').eq(0).html()) {\n            menuDescriptionHtml = _c.find('.menu-description').html();\n          } else {\n            menuDescriptionHtml = '';\n\n            if (_c.find('.feed-artist-name').length || _c.find('.feed-song-name').length) {\n              menuDescriptionHtml = \"\";\n\n              if (_c.attr('data-thumb')) {\n                menuDescriptionHtml += \"<div class=\\\"menu-item-thumb-con\\\"><div class=\\\"menu-item-thumb\\\" style=\\\"background-image: url(\".concat(_c.attr('data-thumb'), \")\\\"></div></div>\");\n              }\n\n              menuDescriptionHtml += \"<div class=\\\"menu-artist-info\\\"><span class=\\\"the-artist\\\">\".concat(_c.find('.feed-artist-name').html(), \"</span><span class=\\\"the-name\\\">\").concat(_c.find('.feed-song-name').html(), \"</span></div>\");\n            }\n          }\n\n          var menuItemObject = {\n            'menu_description': menuDescriptionHtml,\n            'player_id': find_player_id(_c)\n          };\n          arr_menuitems.push(menuItemObject);\n        });\n        return arr_menuitems;\n      }\n\n      function reinit() {\n        var notInitedPlayers = cgallery.find('.items').eq(0).children('.audioplayer-tobe');\n        arr_menuitems = [];\n        arr_menuitems = generateMenuItemObjects(notInitedPlayers);\n\n        _sliderClipper.append(notInitedPlayers);\n\n        for (i = 0; i < arr_menuitems.length; i++) {\n          var extra_class = '';\n\n          if (arr_menuitems[i].menu_description && arr_menuitems[i].menu_description.indexOf('<div class=\"menu-item-thumb-con\"><div class=\"menu-item-thumb\" style=\"') == -1) {\n            extra_class += ' no-thumb';\n          }\n\n          var aux = '<div class=\"menu-item' + extra_class + '\"  data-menu-index=\"' + i + '\" data-gallery-id=\"' + cid + '\" data-playerid=\"' + arr_menuitems[i].player_id + '\">';\n\n          if (cgallery.hasClass('skin-aura')) {\n            aux += '<div class=\"menu-item-number\">' + ++nrChildren + '</div>';\n          }\n\n          aux += arr_menuitems[i].menu_description;\n\n          if (cgallery.hasClass('skin-aura') && String(arr_menuitems[i].menu_description).indexOf('menu-item-views') == 1) {\n            if (track_data && track_data.length > 0) {\n              aux += '<div class=\"menu-item-views\"></div>';\n            } else {\n              init_parse_track_data();\n              aux += '<div class=\"menu-item-views\">' + _jsinc_dzsap_svgs__WEBPACK_IMPORTED_MODULE_0__.playbtn_svg + ' ' + '<span class=\"the-count\">{{views_' + arr_menuitems[i].player_id + '}}' + '</span></div>';\n            }\n          }\n\n          aux += '</div>';\n\n          _navClipper.append(aux);\n\n          if (cgallery.hasClass('skin-aura')) {\n            if (arr_menuitems[i] && arr_menuitems[i].menu_description && arr_menuitems[i].menu_description.indexOf('float-right') > -1) {\n              _navClipper.children().last().addClass('has-extra-info');\n            }\n          }\n        }\n      }\n\n      function init_loaded() {\n        // -- gallery\n        cgallery.addClass('dzsag-loaded');\n      }\n\n      function click_downloadAfterRate() {\n        var _t = $(this);\n\n        if (!_t.hasClass('active')) {\n          alert(str_alertBeforeRate);\n          return false;\n        }\n      }\n\n      function play_curr_media() {\n        if (typeof _sliderClipper.children().eq(currNr).get(0) != 'undefined') {\n          if (typeof _sliderClipper.children().eq(currNr).get(0).api_play_media != 'undefined') {\n            _sliderClipper.children().eq(currNr).get(0).api_play_media({\n              'call_from': 'play_curr_media_gallery'\n            });\n          }\n        }\n      }\n\n      function mode_showall_listen_for_play(arg) {\n        if (o.settings_mode == 'mode-showall') {\n          var ind = _sliderClipper.children('.audioplayer,.audioplayer-tobe').index(arg);\n\n          currNr = ind;\n          cgallery.get(0).currNr_2 = ind;\n        }\n      }\n\n      function handle_frame() {\n        // -- cgallery\n        if (isNaN(target_viy)) {\n          target_viy = 0;\n        }\n\n        if (duration_viy === 0) {\n          requestAnimationFrame(handle_frame);\n          return false;\n        }\n\n        begin_viy = target_viy;\n        change_viy = selfGallery.navClass.finish_viy - begin_viy;\n        target_viy = Number(Math.easeIn(1, begin_viy, change_viy, duration_viy).toFixed(4));\n\n        if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.is_ios)() == false && (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.is_android)() == false) {\n          _navClipper.css({\n            'transform': 'translateY(' + target_viy + 'px)'\n          });\n        }\n\n        requestAnimationFrame(handle_frame);\n      }\n\n      function toggle_menu_state() {\n        selfGallery.navClass.toggle_menu_state();\n      }\n\n      function handlePlaylistSongEnd() {\n        console.log('handlePlaylistSongEnd() ', o);\n\n        if (o.autoplayNext == 'on') {\n          goto_next();\n        }\n      }\n\n      function player_commentSubmitted() {\n        _navClipper.children('.menu-item').eq(currNr).find('.download-after-rate').addClass('active');\n      }\n\n      function player_rateSubmitted() {\n        _navClipper.children('.menu-item').eq(currNr).find('.download-after-rate').addClass('active');\n      }\n\n      function calculateDims() {\n        if (o.settings_mode != 'mode-showall' && !_sliderClipper.hasClass('isotoped') && o.mode_normal_video_mode != 'one') {\n          // -- mode normal, not isotope\n          if (_sliderClipper.children().eq(currNr).hasClass('zoomsounds-wrapper-bg-bellow') == false) {\n            _sliderClipper.css('height', _sliderClipper.children().eq(currNr).outerHeight());\n          }\n        }\n\n        if (!_sliderClipper.hasClass('isotoped')) {\n          // -- not isotope\n          setTimeout(function () {\n            _sliderClipper.css('height', 'auto');\n          }, _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.PLAYLIST_TRANSITION_DURATION);\n        }\n\n        selfGallery.navClass.calculateDims();\n\n        if (o.embedded == 'on') {\n          if (window.frameElement) {\n            window.frameElement.height = cgallery.height();\n          }\n        }\n      }\n\n      function calculate_on_interval() {\n        // -- @called on setInterval\n        selfGallery.navClass.calculateDims(); // -- this is for player ? todo ...\n        // if (0 && o.gallery_gapless_play == 'on') {\n        //\n        //   if (o.parentgallery && cthis.hasClass('active-from-gallery')) {\n        //     var _c = o.parentgallery;\n        //\n        //\n        //     var _cach = _sliderClipper.children().eq(Number(_c.data('currNr')) + 1);\n        //\n        //\n        //     if (!(_cach.data('gapless-inited') == true)) {\n        //\n        //       var args = {\n        //         preload_method: \"auto\"\n        //         , \"autoplay\": \"off\"\n        //         , \"call_from\": \"gapless_play\"\n        //       }\n        //\n        //\n        //       _c.get(0).api_init_player_from_gallery(_cach, args);\n        //\n        //       _cach.data('gapless-inited', true);\n        //\n        //       setTimeout(function () {\n        //         _cach.get(0).api_handleResize();\n        //       }, 1000)\n        //     }\n        //   }\n        // }\n      }\n\n      function handleResize() {\n        if (o.settings_mode !== 'mode-showall' && _sliderClipper.hasClass('isotoped') === false) {\n          setTimeout(function () {\n            _sliderClipper.css('height', _sliderClipper.children().eq(currNr).outerHeight());\n          }, 500);\n        }\n\n        calculateDims();\n      }\n\n      function transition_end(newCurrNr) {\n        _sliderClipper.children().eq(lastCurrNr).removeClass('transitioning-out');\n\n        _sliderClipper.children().eq(newCurrNr).removeClass('transitioning-in');\n\n        lastCurrNr = currNr;\n        busy = false;\n      }\n\n      function transition_bg_end() {\n        cgallery.parent().children('.the-bg').eq(0).remove();\n        busy = false;\n      }\n\n      function goto_prev() {\n        tempNr = currNr;\n        tempNr--;\n        var isGoingToItem = true;\n\n        if (tempNr < 0) {\n          tempNr = _sliderClipper.children().length - 1;\n\n          if (o.loop_playlist == 'off') {\n            isGoingToItem = false;\n          }\n        }\n\n        if (isGoingToItem) {\n          goto_item(tempNr);\n        }\n      }\n\n      function goto_next() {\n        tempNr = currNr;\n        var isGoingToItem = true;\n\n        if (o.settings_mode == 'mode-showall') {\n          tempNr = cgallery.get(0).currNr_2;\n        }\n\n        tempNr++;\n\n        if (tempNr >= _sliderClipper.children().length) {\n          tempNr = 0;\n\n          if (o.loop_playlist == 'off') {\n            isGoingToItem = false;\n          }\n        }\n\n        if (isGoingToItem) {\n          goto_item(tempNr);\n        }\n      }\n\n      function goto_item(newCurrNr, pargs) {\n        var margs = {\n          'ignore_arg_currNr_check': false,\n          'ignore_linking': false // -- does not change the link if set to true\n          ,\n          donotopenlink: \"off\",\n          called_from: \"default\"\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        if (busy == true) {\n          return;\n        }\n\n        if (newCurrNr == \"last\") {\n          newCurrNr = _sliderClipper.children().length - 1;\n        }\n\n        if (Boolean(currNr == newCurrNr)) {\n          if (_sliderClipper && _sliderClipper.children().eq(currNr).get(0) && _sliderClipper.children().eq(currNr).get(0).api_play_media) {\n            _sliderClipper.children().eq(currNr).get(0).api_play_media({\n              'call_from': 'gallery'\n            });\n          }\n\n          return;\n        }\n\n        var _audioplayerToBeActive = _sliderClipper.children('.audioplayer,.audioplayer-tobe').eq(newCurrNr);\n\n        var currNr_last_vol = '';\n\n        if (currNr > -1) {\n          if (typeof _sliderClipper.children().eq(currNr).get(0) != 'undefined') {\n            if (typeof _sliderClipper.children().eq(currNr).get(0).api_pause_media != 'undefined') {\n              _sliderClipper.children().eq(currNr).get(0).api_pause_media();\n            }\n\n            if (typeof _sliderClipper.children().eq(currNr).get(0).api_get_last_vol != 'undefined') {\n              currNr_last_vol = _sliderClipper.children().eq(currNr).get(0).api_get_last_vol();\n            }\n          }\n\n          _navClipper.children().removeClass('active active-from-gallery');\n\n          if (o.mode_normal_video_mode == 'one') {} else {\n            if (o.settings_mode != 'mode-showall') {\n              _sliderClipper.children().eq(currNr).removeClass('active active-from-gallery');\n\n              _navClipper.children().eq(currNr).removeClass('active active-from-gallery');\n            }\n          }\n        } // --  setting settings\n\n\n        if (o.settings_ap.design_skin === 'sameasgallery') {\n          o.settings_ap.design_skin = o.design_skin;\n        } // -- if this is  the first audio\n\n\n        if (currNr == -1 && o.autoplay == 'on') {\n          o.settings_ap.autoplay = 'on';\n        } // -- if this is not the first audio\n\n\n        if (currNr > -1 && o.autoplayNext == 'on') {\n          o.settings_ap.autoplay = 'on';\n        }\n\n        o.settings_ap.parentgallery = cgallery;\n        o.settings_ap.design_menu_show_player_state_button = o.design_menu_show_player_state_button;\n        o.settings_ap.cue = 'on';\n\n        if (first == true) {\n          if (o.cueFirstMedia == 'off') {\n            o.settings_ap.cue = 'off';\n          }\n\n          first = false;\n        } // -- setting settings END\n\n\n        var args_player = $.extend({}, o.settings_ap);\n        args_player.volume_from_gallery = currNr_last_vol;\n        args_player.call_from = 'gotoItem';\n        args_player.player_navigation = o.player_navigation;\n\n        if (o.mode_normal_video_mode == 'one' && newCurrNr > -1 && margs.called_from != 'init') {\n          // -- video mode -> one\n          var _c = _sliderClipper.children().eq(0).get(0);\n\n          _audioplayerToBeActive = _sliderClipper.children().eq(0);\n\n          if (_c) {\n            if (_c.api_play_media) {\n              _c.api_change_media(_sliderClipper.children().eq(newCurrNr), {\n                'called_from': 'goto_item -- mode_normal_video_mode()',\n                'modeOneGalleryIndex': newCurrNr,\n                'source_player_do_not_update': 'on'\n              });\n\n              if (o.autoplayNext == 'on') {\n                setTimeout(function () {\n                  _c.api_play_media();\n                }, 200);\n              }\n            }\n          }\n        } else {\n          // -- init player from gallery\n          init_player_from_gallery(_audioplayerToBeActive, args_player);\n        } // -- actions after init\n\n\n        if (o.autoplayNext === 'on') {\n          if (o.settings_mode === 'mode-showall') {\n            currNr = cgallery.get(0).currNr_2;\n          }\n\n          if (!!(currNr > -1 && _audioplayerToBeActive.get(0) && _audioplayerToBeActive.get(0).api_play)) {\n            _audioplayerToBeActive.get(0).api_play();\n          }\n        }\n\n        if (o.settings_ap.playfrom === undefined || o.settings_ap.playfrom === \"0\") {\n          if (_audioplayerToBeActive.get(0) && _audioplayerToBeActive.get(0).api_seek_to) {\n            _audioplayerToBeActive.get(0).api_seek_to(0, {\n              call_from: 'playlist_seek_from_0'\n            });\n          } else {\n            console.log('_audioplayerToBeActive not found - ', _audioplayerToBeActive);\n          }\n        } // -- end actions after init\n\n\n        dzsap_currplayer_focused = _audioplayerToBeActive.get(0);\n\n        if (o.settings_mode !== 'mode-showall') {\n          _sliderClipper.children().eq(currNr).addClass('transitioning-out');\n\n          _audioplayerToBeActive.removeClass('transitioning-out-complete');\n\n          _audioplayerToBeActive.addClass('transitioning-in');\n\n          setTimeout(function (_arg) {\n            _arg.addClass('transitioning-out-complete');\n          }, _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.PLAYLIST_TRANSITION_DURATION, _sliderClipper.children().eq(currNr));\n\n          if (_audioplayerToBeActive.attr('data-type') != 'link') {\n            if (margs.ignore_linking == false && o.settings_enable_linking == 'on') {\n              var stateObj = {\n                foo: \"bar\"\n              };\n              history.pushState(stateObj, null, (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.add_query_arg)(window.location.href, 'audiogallery_startitem_' + cid, newCurrNr));\n            }\n          }\n\n          if (o.playlistTransition === 'fade') {\n            setTimeout(transition_end, _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.PLAYLIST_TRANSITION_DURATION, newCurrNr);\n            busy = true;\n          }\n\n          if (o.playlistTransition === 'direct') {\n            transition_end(newCurrNr);\n          }\n        }\n\n        _audioplayerToBeActive.addClass('active active-from-gallery');\n\n        _navClipper.children().eq(newCurrNr).addClass('active active-from-gallery'); // -- background parent\n\n\n        var bgimage = '';\n\n        if (_audioplayerToBeActive.attr(\"data-bgimage\")) {\n          bgimage = _audioplayerToBeActive.attr(\"data-bgimage\");\n        }\n\n        if (_audioplayerToBeActive.attr(\"data-wrapper-image\")) {\n          bgimage = _audioplayerToBeActive.attr(\"data-wrapper-image\");\n        }\n\n        if (bgimage && cgallery.parent().hasClass('ap-wrapper') && cgallery.parent().children('.the-bg').length > 0) {\n          cgallery.parent().children('.the-bg').eq(0).after('<div class=\"the-bg\" style=\"background-image: url(' + bgimage + ');\"></div>');\n          cgallery.parent().children('.the-bg').eq(0).css({\n            'opacity': 1\n          });\n          cgallery.parent().children('.the-bg').eq(1).css({\n            'opacity': 0\n          });\n          cgallery.parent().children('.the-bg').eq(1).animate({\n            'opacity': 1\n          }, {\n            queue: false,\n            duration: 1000,\n            complete: transition_bg_end,\n            step: function step() {\n              busy = true;\n            }\n          });\n          busy = true;\n        }\n\n        if (o.settings_mode != 'mode-showall') {\n          currNr = newCurrNr;\n          cgallery.data('currNr', currNr);\n        }\n\n        if (_sliderClipper.children().eq(currNr).get(0) && _sliderClipper.children().eq(currNr).get(0).api_handleResize && _sliderClipper.children().eq(currNr).hasClass('media-setuped')) {\n          _sliderClipper.children().eq(currNr).get(0).api_handleResize();\n        }\n\n        calculateDims();\n      }\n\n      function init_player_from_gallery(_cache, pargs) {\n        var player_args = $.extend({}, o.settings_ap);\n\n        if (pargs) {\n          player_args = $.extend(player_args, pargs);\n        }\n\n        if (_cache.hasClass('audioplayer-tobe')) {\n          o.settings_ap.call_from = 'init player from gallery';\n          player_args.is_inited_from_playlist = true;\n\n          _cache.audioplayer(player_args);\n        }\n      }\n    }\n  }]);\n\n  return DzsApPlaylist;\n}();\n\nvar registerToJqueryPlaylist = function registerToJqueryPlaylist($) {\n  $.fn.audiogallery = function (argOptions) {\n    var finalOptions = {};\n\n    var defaultOptions = _objectSpread({}, _configs_settingsPlaylist__WEBPACK_IMPORTED_MODULE_2__.default_opts);\n\n    finalOptions = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.convertPluginOptionsToFinalOptions)(this, defaultOptions, argOptions);\n    this.each(function () {\n      this.linkedClassInstance = new DzsApPlaylist(this, finalOptions, $);\n    });\n  };\n\n  window.dzsag_init = function (selector, settings) {\n    $(selector).audiogallery(Object.assign({}, settings));\n  };\n};\n\n(0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_5__.dzsap_jQueryInit)().then(function () {\n  registerToJqueryPlaylist(jQuery);\n  jQuery(document).ready(function ($) {\n    window.dzsap_init_allGalleries($);\n    console.log('ready 5 7 2 3');\n  });\n});\n\nwindow.dzsap_init_allGalleries = function ($) {\n  var $feed_dzsapConfigs = document.querySelectorAll('.dzsap-feed--dzsap-configs');\n\n  if ($feed_dzsapConfigs && $feed_dzsapConfigs.length) {\n    try {\n      window.dzsap_apconfigs = JSON.parse($feed_dzsapConfigs[$feed_dzsapConfigs.length - 1].innerHTML);\n    } catch (err) {\n      console.log(err);\n    }\n  } // -- load audio player\n\n\n  (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_5__.loadScriptIfItDoesNotExist)('', 'dzsap_inited').then(function () {\n    $('.audiogallery.auto-init').each(function () {\n      var $currGallery = $(this);\n\n      if (!$currGallery.hasClass('dzsag-inited')) {\n        if (window.dzsag_init) {\n          dzsag_init($currGallery);\n        }\n      }\n    });\n  });\n};\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/audioplaylist.sourcepack.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js":
/*!***********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js ***!
  \***********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"ConstantsDzsAp\": () => (/* binding */ ConstantsDzsAp),\n/* harmony export */   \"DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS\": () => (/* binding */ DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_FOOTER_PLAYER\": () => (/* binding */ DZSAP_PLAYER_CLASS_FOOTER_PLAYER),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_FOR_STICK_TO_BOTTOM_SHOW\": () => (/* binding */ DZSAP_PLAYER_CLASS_FOR_STICK_TO_BOTTOM_SHOW),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_LOADED\": () => (/* binding */ DZSAP_PLAYER_CLASS_LOADED),\n/* harmony export */   \"DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM\": () => (/* binding */ DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM),\n/* harmony export */   \"DZSAP_PLAYER_PLACEHOLDER_CLASS_STICK_TO_BOTTOM\": () => (/* binding */ DZSAP_PLAYER_PLACEHOLDER_CLASS_STICK_TO_BOTTOM),\n/* harmony export */   \"DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED\": () => (/* binding */ DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED),\n/* harmony export */   \"DZSAP_SCRIPT_SELECTOR_KEYBOARD\": () => (/* binding */ DZSAP_SCRIPT_SELECTOR_KEYBOARD),\n/* harmony export */   \"DZSAP_SCRIPT_SELECTOR_MAIN_SETTINGS\": () => (/* binding */ DZSAP_SCRIPT_SELECTOR_MAIN_SETTINGS),\n/* harmony export */   \"DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT\": () => (/* binding */ DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT)\n/* harmony export */ });\nconst ConstantsDzsAp = {\n  PLAYLIST_TRANSITION_DURATION: 300,\n  'DEBUG_STYLE_1': 'background-color: #aaa022; color: #222222;',\n  'DEBUG_STYLE_2': 'background-color: #7c3b8e; color: #ffffff;',\n  'DEBUG_STYLE_3': 'background-color: #3a696b; color: #eeeeee;',\n  'DEBUG_STYLE_ERROR': 'background-color: #3a696b; color: #eeeeee;',\n  URL_WAVESURFER_HELPER_BACKUP: 'https://zoomthe.me/assets/dzsap-wave-generate.js',\n  WAVESURFER_MAX_TIMEOUT: 20000,\n  URL_JQUERY: 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js',\n  DEBUG_STYLE_PLAY_FUNCTIONS: 'background-color: #daffda; color: #222222;',\n  ERRORED_OUT_CLASS: 'errored-out',\n  ERRORED_OUT_MAX_ATTEMPTS: 5\n}\n\nconst DZSAP_PLAYER_CLASS_FOOTER_PLAYER = 'dzsap_footer';\nconst DZSAP_PLAYER_CLASS_LOADED = 'dzsap-loaded';\nconst DZSAP_PLAYER_CLASS_FOR_STICK_TO_BOTTOM_SHOW = 'audioplayer-loaded';\nconst DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM = 'dzsap-sticktobottom';\nconst DZSAP_PLAYER_PLACEHOLDER_CLASS_STICK_TO_BOTTOM = 'dzsap-sticktobottom-placeholder';\nconst DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED = 'fake';\nconst DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS = 'last';\n\nconst DZSAP_SCRIPT_SELECTOR_MAIN_SETTINGS = '#dzsap-main-settings';\nconst DZSAP_SCRIPT_SELECTOR_KEYBOARD = '#dzsap-keyboard-controls';\nconst DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT = 500;\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlaylist.js":
/*!******************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlaylist.js ***!
  \******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default_opts\": () => (/* binding */ default_opts)\n/* harmony export */ });\nconst default_opts = {\n  design_skin: 'skin-default', // -- \"skin-default\" or \"skin-aura\" or \"skin-wave\"\n  cueFirstMedia: 'on', // -- preload the mp3 to the first item\n  autoplay: 'off', // -- autoplay the first item\n  autoplayNext: 'on', // -- autoplay items after the first item\n  settings_enable_linking: 'off',  // -- use html5 history to remember last position in the gallery\n\n  design_menu_position: 'bottom',\n  navigation_method: 'mouseover', // -- 'mouseover', 'full', 'legacyscroll' or 'dzsscroll'\n  design_menu_state: 'open',  // -- options are \"open\" or \"closed\", this sets the initial state of the menu, even if the initial state is \"closed\", it can still be opened by a button if you set design_menu_show_player_state_button to \"on\"\n  design_menu_show_player_state_button: 'off',  // -- show a button that allows to hide or show the menu\n  design_menu_width: 'default',\n  design_menu_height: 'default',\n  design_menu_space: 'default',\n  settings_php_handler: '', // -- link to publisher.php ( auto assigned in wordpress to admin-ajax.php )\n  design_menuitem_width: 'default',\n  design_menuitem_height: 'default',\n  design_menuitem_space: 'default',\n\n  disable_menu_navigation: 'off',\n  loop_playlist: 'on',\n  menu_facebook_share: 'auto' // -- mousemove or scroller or all\n  , enable_easing: 'off' // -- enable easing for menu animation\n  , settings_ap: 'default' // -- string or array\n  , playlistTransition: 'fade' // -- fade or direct\n  , embedded: 'off',\n  mode_showall_layout: 'one-per-row' // or \"two-per-row\" or \"three-per-row\"\n  , settings_mode: 'mode-normal' // -- mode-normal or mode-showall\n  , settings_mode_showall_show_number: 'on' // mode-normal or mode-showall\n  , mode_normal_video_mode: 'auto' // -- auto or \"one\" ( only one audio player )\n\n};\n\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlaylist.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js":
/*!***************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"decode_json\": () => (/* binding */ decode_json),\n/* harmony export */   \"dzsap_jQueryInit\": () => (/* binding */ dzsap_jQueryInit),\n/* harmony export */   \"getBaseUrl\": () => (/* binding */ getBaseUrl),\n/* harmony export */   \"getRelativeX\": () => (/* binding */ getRelativeX),\n/* harmony export */   \"isInt\": () => (/* binding */ isInt),\n/* harmony export */   \"isValid\": () => (/* binding */ isValid),\n/* harmony export */   \"loadScriptIfItDoesNotExist\": () => (/* binding */ loadScriptIfItDoesNotExist),\n/* harmony export */   \"sanitizeToCssPx\": () => (/* binding */ sanitizeToCssPx),\n/* harmony export */   \"setupTooltip\": () => (/* binding */ setupTooltip),\n/* harmony export */   \"simpleStringify\": () => (/* binding */ simpleStringify),\n/* harmony export */   \"string_curateClassName\": () => (/* binding */ string_curateClassName)\n/* harmony export */ });\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n\n\nconst decode_json = function (arg) {\n  var fout = {};\n\n  if (arg) {\n\n    try {\n\n      fout = JSON.parse(arg);\n    } catch (err) {\n\n      return null;\n    }\n  }\n\n  return fout;\n}\nasync function dzsap_jQueryInit(callback, reject) {\n\n  return new Promise((resolve, reject) => {\n\n    if (window.jQuery) {\n      resolve('jQuery loaded');\n    } else {\n      const script = document.createElement('script');\n      script.onload = function () {\n        if (window.jQuery) {\n          resolve('jQuery loaded');\n        } else {\n          reject('error loading');\n        }\n      };\n      script.src = _configs_constants__WEBPACK_IMPORTED_MODULE_0__.ConstantsDzsAp.URL_JQUERY;\n\n      document.head.appendChild(script);\n    }\n\n    setTimeout(() => {\n      reject('error loading');\n    }, 15000);\n  })\n}\n/**\n *\n * @param {string} arg\n * @return {string}\n */\nfunction string_curateClassName(arg){\n\n  arg = arg.replace('feed-dzsap', '');\n  arg = arg.replace('feed-dzsap--extra-html', '');\n  return arg;\n}\n\n\nfunction simpleStringify (object){\n  if (object && typeof object === 'object') {\n    object = copyWithoutCircularReferences([object], object);\n  }\n  return JSON.stringify(object);\n\n  function copyWithoutCircularReferences(references, object) {\n    const cleanObject = {};\n    Object.keys(object).forEach(function(key) {\n      var value = object[key];\n      if (value && typeof value === 'object') {\n        if (references.indexOf(value) < 0) {\n          references.push(value);\n          cleanObject[key] = copyWithoutCircularReferences(references, value);\n          references.pop();\n        } else {\n          cleanObject[key] = '###_Circular_###';\n        }\n      } else if (typeof value !== 'function') {\n        cleanObject[key] = value;\n      }\n    });\n    return cleanObject;\n  }\n}\n\nconst loadScriptIfItDoesNotExist = (scriptSrc, checkForVar) => {\n  return new Promise((resolve, reject) => {\n    if (checkForVar) {\n      resolve('loadfromvar');\n      return;\n    }\n\n    var script = document.createElement('script');\n    script.onload = function () {\n      resolve('loadfromload');\n    };\n    script.onerror = function () {\n      reject();\n    };\n    script.src = scriptSrc;\n\n    document.head.appendChild(script);\n  })\n}\n\n\nconst getBaseUrl = (baseUrlVar, scriptName) => {\n  if (window[baseUrlVar]) {\n    return window[baseUrlVar];\n  }\n\n  let scripts = document.getElementsByTagName(\"script\");\n  for (var scriptKey in scripts) {\n    if (scripts[scriptKey] && scripts[scriptKey].src && String(scripts[scriptKey].src).indexOf(scriptName) > -1) {\n      break;\n    }\n  }\n  var baseUrl_arr = String(scripts[scriptKey].src).split('/');\n  baseUrl_arr.splice(-1, 1);\n  const result = string_addTrailingSlash(baseUrl_arr.join('/'));\n  window[baseUrlVar] = result+'/';\n  return result;\n}\n\nfunction string_addTrailingSlash(url){\n  var lastChar = url.substr(-1); // Selects the last character\n  if (lastChar != '/') {         // If the last character is not a slash\n    url = url + '/';            // Append a slash to it.\n  }\n  return url;\n}\nconst sanitizeToCssPx = (arg) => {\n\n  if (String(arg).indexOf('%') > -1 || String(arg).indexOf('em') > -1 || String(arg).indexOf('px') > -1 || String(arg).indexOf('auto') > -1) {\n    return arg;\n  }\n  return arg + 'px';\n}\n\n\nconst setupTooltip = (args) => {\n\n  var mainArgs = Object.assign({\n    tooltipInnerHTML: '',\n    tooltipIndicatorText: '',\n    tooltipConClass: '',\n  }, args)\n\n  return `<div class=\"dzstooltip-con ${mainArgs.tooltipConClass}\"><span class=\"dzstooltip main-tooltip   talign-end arrow-bottom style-rounded color-dark-light  dims-set transition-slidedown \" style=\"width: 280px;\"><span class=\"dzstooltip--inner\">${mainArgs.tooltipInnerHTML}</span> </span></span><span class=\"tooltip-indicator\">${mainArgs.tooltipIndicatorText}</span></div>`;\n}\n\n\nconst isInt = function (n) {\n  return typeof n == 'number' && Math.round(n) % 1 == 0;\n}\n\nconst isValid = function (n) {\n  return typeof n != 'undefined' && n != '';\n}\n\n\nfunction getRelativeX (mouseX, $el_) {\n  if (jQuery) {\n    return mouseX - jQuery($el_).offset().left;\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js":
/*!**********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"ajax_comment_publish\": () => (/* binding */ ajax_comment_publish),\n/* harmony export */   \"ajax_submit_download\": () => (/* binding */ ajax_submit_download),\n/* harmony export */   \"ajax_submit_like\": () => (/* binding */ ajax_submit_like),\n/* harmony export */   \"ajax_submit_total_time\": () => (/* binding */ ajax_submit_total_time),\n/* harmony export */   \"ajax_submit_views\": () => (/* binding */ ajax_submit_views)\n/* harmony export */ });\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n/* harmony import */ var _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n\n\n\nconst ajax_submit_views = function (argp) {\n\n\n  var selfClass = this;\n  var $ = jQuery;\n  var data = {\n    action: 'dzsap_submit_views',\n    postdata: 1,\n    playerid: selfClass.the_player_id,\n    currip: selfClass.currIp,\n    playerSource: selfClass.data_source\n  };\n\n\n\n  if (selfClass.cthis.attr('data-playerid-for-views')) {\n    data.playerid = selfClass.cthis.attr('data-playerid-for-views');\n  }\n\n\n  if (data.playerid == '') {\n    data.playerid = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.dzs_clean_string)(selfClass.data_source);\n  }\n\n\n  // -- submit view\n  if (selfClass.urlToAjaxHandler) {\n    $.ajax({\n      type: \"POST\",\n      url: selfClass.urlToAjaxHandler,\n      data: data,\n      success: function (response) {\n\n        // -- increase number of hits\n        let auxnr = selfClass.cthis.find('.counter-hits .the-number').html();\n        auxnr = parseInt(auxnr, 10);\n        if (selfClass.increment_views != 2) {\n          auxnr++;\n        }\n        if (response) {\n          if ((0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.decode_json)(response)) {\n            auxnr = (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.decode_json)(response)['number'];\n          }\n        }\n\n        selfClass.cthis.find('.counter-hits .the-number').html(auxnr);\n\n        selfClass.ajax_view_submitted = 'on';\n      },\n      error: function (arg) {\n\n\n        var auxlikes = selfClass.cthis.find('.counter-hits .the-number').html();\n        auxlikes = parseInt(auxlikes, 10);\n        auxlikes++;\n        selfClass.cthis.find('.counter-hits .the-number').html(auxlikes);\n\n        selfClass.ajax_view_submitted = 'on';\n      }\n    });\n    selfClass.ajax_view_submitted = 'on';\n  }\n\n}\n\nconst ajax_submit_like = function (argp) {\n  var selfClass = this;\n  var $ = jQuery;\n\n  //only handles ajax call + result\n  var mainarg = argp;\n  var data = {\n    action: 'dzsap_submit_like',\n    postdata: mainarg,\n    playerid: selfClass.the_player_id,\n    playerSource: selfClass.data_source\n  };\n\n\n  selfClass.cthis.find('.btn-like').addClass('disabled');\n\n  if (selfClass.urlToAjaxHandler || selfClass.cthis.hasClass('is-preview')) {\n\n    $.ajax({\n      type: \"POST\",\n      url: selfClass.urlToAjaxHandler,\n      data: data,\n      success: function (response) {\n\n\n        selfClass.cthis.find('.btn-like').addClass('active');\n        selfClass.cthis.find('.btn-like').removeClass('disabled');\n        var auxlikes = selfClass.cthis.find('.counter-likes .the-number').html();\n        auxlikes = parseInt(auxlikes, 10);\n        auxlikes++;\n        selfClass.cthis.find('.counter-likes .the-number').html(auxlikes);\n      },\n      error: function (arg) {\n\n\n        selfClass.cthis.find('.btn-like').addClass('active');\n        selfClass.cthis.find('.btn-like').removeClass('disabled');\n        var auxlikes = selfClass.cthis.find('.counter-likes .the-number').html();\n        auxlikes = parseInt(auxlikes, 10);\n        auxlikes++;\n        selfClass.cthis.find('.counter-likes .the-number').html(auxlikes);\n      }\n    });\n  }\n}\n\n\n\nconst ajax_comment_publish = function (argp) {\n  // -- only handles ajax call + result\n  var selfClass = this;\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n\n\n  var mainarg = argp;\n  var data = {\n    action: 'dzsap_front_submitcomment',\n    postdata: mainarg,\n    playerid: selfClass.the_player_id,\n    comm_position: selfClass.commentPositionPerc,\n  };\n\n  if (window.dzsap_settings) {\n    data.skinwave_comments_avatar = window.dzsap_settings.comments_avatar;\n    data.skinwave_comments_account = window.dzsap_settings.comments_username;\n  }\n\n  if (selfClass.cthis.find('*[name=comment-email]').length > 0) {\n    data.email = selfClass.cthis.find('*[name=comment-email]').eq(0).val();\n  }\n\n\n  if (selfClass.urlToAjaxHandler) {\n    jQuery.ajax({\n      type: \"POST\",\n      url: selfClass.urlToAjaxHandler,\n      data: data,\n      success: function (response) {\n        if (response.charAt(response.length - 1) == '0') {\n          response = response.slice(0, response.length - 1);\n        }\n\n\n        var fout_tooltipData = '';\n\n        // -- process php\n        fout_tooltipData = '';\n        fout_tooltipData += `<div class=\"dzstooltip-con dzsap--comment\" style=\"left:${selfClass.commentPositionPerc}\"><span class=\"dzstooltip arrow-from-start transition-slidein  arrow-bottom talign-start style-rounded color-dark-light  \" style=\"width: 250px;\"><span class=\"dzstooltip--inner\"><span class=\"the-comment-author\">@${window.dzsap_settings.comments_username}</span> says:<br>${(0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.htmlEncode)(data.postdata)}</span></span><fig class=\"the-avatar\" style=\"background-image: url(${window.dzsap_settings.comments_avatar})\"></fig></div>`;\n\n\n        selfClass._commentsHolder.append(fout_tooltipData);\n\n\n        if (selfClass.action_audio_comment) {\n          selfClass.action_audio_comment(selfClass.cthis, fout_tooltipData);\n        }\n\n\n      },\n      error: function (arg) {\n\n        selfClass._commentsHolder.append(data.postdata);\n      }\n    });\n  }\n}\n\n\nconst ajax_submit_total_time = function (selfClass) {\n\n  const isTheNeedToSendTotalTime = () => {\n\n    return !selfClass.cthis.attr('data-sample_time_total') || (selfClass.cthis.attr('data-sample_time_total') && selfClass.timeModel.getActualTotalTime() && selfClass.timeModel.getActualTotalTime() != selfClass.cthis.attr('data-sample_time_total') && !selfClass.cthis.attr('data-sample_time_end'));\n  }\n\n  if (!selfClass.isSentCacheTotalTime) {\n    if (isTheNeedToSendTotalTime()) {\n      if (window.dzsap_settings && window.dzsap_settings.action_received_time_total) {\n        selfClass.timeModel.refreshTimes();\n        window['dzsap_functions'][window.dzsap_settings.action_received_time_total](selfClass.timeModel.getActualTotalTime(), selfClass.cthis);\n      }\n    }\n    selfClass.isSentCacheTotalTime = true;\n  }\n}\n\n\nconst ajax_submit_download = function (argp) {\n  //only handles ajax call + result\n  var mainarg = argp;\n  var selfClass = this;\n  var data = {\n    action: 'dzsap_submit_download',\n    postdata: mainarg,\n    playerid: selfClass.the_player_id\n  };\n\n  if (selfClass.starrating_alreadyrated > -1) {\n    return;\n  }\n\n  if (selfClass.urlToAjaxHandler) {\n\n    jQuery.ajax({\n      type: \"POST\",\n      url: selfClass.urlToAjaxHandler,\n      data: data,\n      success: function (response) {\n\n\n      },\n      error: function (arg) {\n\n\n      }\n    });\n  }\n};\n\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js":
/*!*************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"add_query_arg\": () => (/* binding */ add_query_arg),\n/* harmony export */   \"assignHelperFunctionsToJquery\": () => (/* binding */ assignHelperFunctionsToJquery),\n/* harmony export */   \"assignPcmData\": () => (/* binding */ assignPcmData),\n/* harmony export */   \"can_canvas\": () => (/* binding */ can_canvas),\n/* harmony export */   \"can_history_api\": () => (/* binding */ can_history_api),\n/* harmony export */   \"convertPluginOptionsToFinalOptions\": () => (/* binding */ convertPluginOptionsToFinalOptions),\n/* harmony export */   \"dzs_clean_string\": () => (/* binding */ dzs_clean_string),\n/* harmony export */   \"dzsapInitjQueryRegisters\": () => (/* binding */ dzsapInitjQueryRegisters),\n/* harmony export */   \"dzsap_generate_keyboard_tooltip\": () => (/* binding */ dzsap_generate_keyboard_tooltip),\n/* harmony export */   \"dzsap_is_mobile\": () => (/* binding */ dzsap_is_mobile),\n/* harmony export */   \"dzsap_singleton_ready_calls\": () => (/* binding */ dzsap_singleton_ready_calls),\n/* harmony export */   \"formatTime\": () => (/* binding */ formatTime),\n/* harmony export */   \"generateFakeArrayForPcm\": () => (/* binding */ generateFakeArrayForPcm),\n/* harmony export */   \"get_query_arg\": () => (/* binding */ get_query_arg),\n/* harmony export */   \"hexToRgb\": () => (/* binding */ hexToRgb),\n/* harmony export */   \"htmlEncode\": () => (/* binding */ htmlEncode),\n/* harmony export */   \"is_android\": () => (/* binding */ is_android),\n/* harmony export */   \"is_android_good\": () => (/* binding */ is_android_good),\n/* harmony export */   \"is_ios\": () => (/* binding */ is_ios),\n/* harmony export */   \"is_safari\": () => (/* binding */ is_safari),\n/* harmony export */   \"jQueryAuxBindings\": () => (/* binding */ jQueryAuxBindings),\n/* harmony export */   \"playerFunctions\": () => (/* binding */ playerFunctions),\n/* harmony export */   \"playerRegisterWindowFunctions\": () => (/* binding */ playerRegisterWindowFunctions),\n/* harmony export */   \"player_checkIfWeShouldShowAComment\": () => (/* binding */ player_checkIfWeShouldShowAComment),\n/* harmony export */   \"player_delete\": () => (/* binding */ player_delete),\n/* harmony export */   \"player_determineStickToBottomContainer\": () => (/* binding */ player_determineStickToBottomContainer),\n/* harmony export */   \"player_getPlayFromTime\": () => (/* binding */ player_getPlayFromTime),\n/* harmony export */   \"player_identifySource\": () => (/* binding */ player_identifySource),\n/* harmony export */   \"player_identifyTypes\": () => (/* binding */ player_identifyTypes),\n/* harmony export */   \"player_isGoingToSetupMediaNow\": () => (/* binding */ player_isGoingToSetupMediaNow),\n/* harmony export */   \"player_radio_isNameUpdatable\": () => (/* binding */ player_radio_isNameUpdatable),\n/* harmony export */   \"player_reinit_findIfPcmNeedsGenerating\": () => (/* binding */ player_reinit_findIfPcmNeedsGenerating),\n/* harmony export */   \"player_service_getSourceProtection\": () => (/* binding */ player_service_getSourceProtection),\n/* harmony export */   \"player_stickToBottomContainerDetermineClasses\": () => (/* binding */ player_stickToBottomContainerDetermineClasses),\n/* harmony export */   \"player_stopOtherPlayers\": () => (/* binding */ player_stopOtherPlayers),\n/* harmony export */   \"player_syncPlayers_buildList\": () => (/* binding */ player_syncPlayers_buildList),\n/* harmony export */   \"player_syncPlayers_gotoItem\": () => (/* binding */ player_syncPlayers_gotoItem),\n/* harmony export */   \"player_view_addMetaLoaded\": () => (/* binding */ player_view_addMetaLoaded),\n/* harmony export */   \"registerTextWidth\": () => (/* binding */ registerTextWidth),\n/* harmony export */   \"sanitizeObjectForChangeMediaArgs\": () => (/* binding */ sanitizeObjectForChangeMediaArgs),\n/* harmony export */   \"sanitizeToHexColor\": () => (/* binding */ sanitizeToHexColor),\n/* harmony export */   \"sanitizeToIntFromPointTime\": () => (/* binding */ sanitizeToIntFromPointTime),\n/* harmony export */   \"select_all\": () => (/* binding */ select_all),\n/* harmony export */   \"string_jsonConvertToArray\": () => (/* binding */ string_jsonConvertToArray),\n/* harmony export */   \"utils_sanitizeToColor\": () => (/* binding */ utils_sanitizeToColor),\n/* harmony export */   \"view_player_globalDetermineSyncPlayersIndex\": () => (/* binding */ view_player_globalDetermineSyncPlayersIndex),\n/* harmony export */   \"view_player_playMiscEffects\": () => (/* binding */ view_player_playMiscEffects),\n/* harmony export */   \"waitForScriptToBeAvailableThenExecute\": () => (/* binding */ waitForScriptToBeAvailableThenExecute)\n/* harmony export */ });\n/* harmony import */ var _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n/* harmony import */ var _dzsap_svgs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_dzsap_svgs */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js\");\n/* harmony import */ var _player_player_keyboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./player/_player_keyboard */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js\");\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n\n\n\n\n\n\nfunction formatTime(arg) {\n\n  var s = Math.round(arg);\n  var m = 0;\n  var h = 0;\n  if (s > 0) {\n    while (s > 3599 && s < 3000000 && isFinite(s)) {\n      h++;\n      s -= 3600;\n    }\n    while (s > 59 && s < 3000000 && isFinite(s)) {\n      m++;\n      s -= 60;\n    }\n    if (h) {\n\n      return String((h < 10 ? \"0\" : \"\") + h + \":\" + String((m < 10 ? \"0\" : \"\") + m + \":\" + (s < 10 ? \"0\" : \"\") + s));\n    }\n    return String((m < 10 ? \"0\" : \"\") + m + \":\" + (s < 10 ? \"0\" : \"\") + s);\n  } else {\n    return \"00:00\";\n  }\n}\n\nfunction can_history_api() {\n  return !!(window.history && history.pushState);\n}\n\nfunction dzs_clean_string(arg) {\n\n  if (arg) {\n\n    arg = arg.replace(/[^A-Za-z0-9\\-]/g, '');\n\n    arg = arg.replace(/\\./g, '');\n    return arg;\n  }\n\n  return '';\n\n\n}\n\n\nfunction get_query_arg(purl, key) {\n  if (purl) {\n\n    if (String(purl).indexOf(key + '=') > -1) {\n\n      var regexS = \"[?&]\" + key + \"=.+\";\n      var regex = new RegExp(regexS);\n      var regtest = regex.exec(purl);\n\n\n      if (regtest != null) {\n        var splitterS = regtest[0];\n        if (splitterS.indexOf('&') > -1) {\n          var aux = splitterS.split('&');\n          splitterS = aux[1];\n        }\n\n        var splitter = splitterS.split('=');\n\n\n        return splitter[1];\n\n      }\n\n    }\n\n  } else {\n  }\n}\n\nfunction add_query_arg(purl, key, value) {\n\n  key = encodeURIComponent(key);\n  value = encodeURIComponent(value);\n\n  if (!(purl)) {\n    purl = '';\n  }\n  var s = purl;\n  var pair = key + \"=\" + value;\n\n  var r = new RegExp(\"(&|\\\\?)\" + key + \"=[^\\&]*\");\n\n  s = s.replace(r, \"$1\" + pair);\n\n  if (s.indexOf(key + '=') > -1) {\n\n\n  } else {\n    if (s.indexOf('?') > -1) {\n      s += '&' + pair;\n    } else {\n      s += '?' + pair;\n    }\n  }\n\n\n  if (value === 'NaN') {\n    var regex_attr = new RegExp('[\\?|\\&]' + key + '=' + value);\n    s = s.replace(regex_attr, '');\n\n\n    if (s.indexOf('?') === -1 && s.indexOf('&') > -1) {\n      s = s.replace('&', '?');\n    }\n  }\n\n  return s;\n}\n\n\nfunction dzsap_is_mobile() {\n\n\n  return is_ios() || is_android();\n}\n\nfunction is_ios() {\n\n  return ((navigator.platform.indexOf(\"iPhone\") !== -1) || (navigator.platform.indexOf(\"iPod\") !== -1) || (navigator.platform.indexOf(\"iPad\") !== -1));\n}\n\n\nfunction can_canvas() {\n\n  var oCanvas = document.createElement(\"canvas\");\n  return !!oCanvas.getContext(\"2d\");\n\n}\n\nfunction is_safari() {\n  return Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;\n}\n\n\nfunction is_android() {\n  var ua = navigator.userAgent.toLowerCase();\n\n  return (ua.indexOf(\"android\") > -1);\n}\n\nfunction select_all(el) {\n  if (typeof window.getSelection !== \"undefined\" && typeof document.createRange !== \"undefined\") {\n    var range = document.createRange();\n    range.selectNodeContents(el);\n    var sel = window.getSelection();\n    sel.removeAllRanges();\n    sel.addRange(range);\n  } else if (typeof document.selection !== \"undefined\" && typeof document.body.createTextRange !== \"undefined\") {\n    var textRange = document.body.createTextRange();\n    textRange.moveToElementText(el);\n    textRange.select();\n  }\n}\n\nfunction is_android_good() {\n\n\n}\n\nfunction htmlEncode(arg) {\n  return jQuery('<div/>').text(arg).html();\n}\n\nfunction dzsap_generate_keyboard_tooltip(keyboard_controls, lab) {\n\n\n  var structureDzsTooltipCommentAfterSubmit = '<span class=\"dzstooltip color-dark-light talign-start transition-slidein arrow-bottom style-default\" style=\"width: auto;  white-space:nowrap;\"><span class=\"dzstooltip--inner\">' + 'Shortcut' + ': ' + keyboard_controls[lab] + '</span></span>';\n\n  structureDzsTooltipCommentAfterSubmit = structureDzsTooltipCommentAfterSubmit.replace('32', 'space');\n  structureDzsTooltipCommentAfterSubmit = structureDzsTooltipCommentAfterSubmit.replace('27', 'escape');\n\n  return structureDzsTooltipCommentAfterSubmit;\n\n\n}\n\n\n/**\n *\n * @param hex\n * @param {number|null} targetAlpha 0-1\n * @returns {string}\n */\nfunction hexToRgb(hex, targetAlpha = null) {\n  var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n  var str = '';\n  if (result) {\n    result = {\n      r: parseInt(result[1], 16),\n      g: parseInt(result[2], 16),\n      b: parseInt(result[3], 16)\n    };\n\n\n    var alpha = 1;\n\n    if (targetAlpha !== null) {\n      alpha = targetAlpha;\n    }\n\n\n    str = 'rgba(' + result.r + ',' + result.g + ',' + result.b + ',' + alpha + ')';\n  }\n\n\n  return str;\n\n\n}\n\nfunction assignHelperFunctionsToJquery($) {\n\n\n  Math.easeIn = function (t, b, c, d) {\n    return -c * (t /= d) * (t - 2) + b;\n  };\n\n\n  /**\n   *\n   * @param {string} argfind\n   * @param {string} arg\n   * @returns {string}\n   */\n  const checkIfHasClass = (argfind, arg) => {\n\n    if (!argfind) {\n      var regex = new RegExp('class=\"(.*?)\"');\n      var auxarr = regex.exec(arg);\n\n\n      if (auxarr && auxarr[1]) {\n        argfind = '.' + auxarr[1];\n      }\n    }\n\n    return argfind;\n  }\n  $.fn.prependOnce = function (arg, argfind) {\n    var _t = $(this)\n\n\n    argfind = checkIfHasClass(argfind, arg);\n\n\n    if (_t.children(argfind).length < 1) {\n      _t.prepend(arg);\n      return true;\n    }\n    return false;\n  };\n  $.fn.appendOnce = function (arg, argfind) {\n    var _t = $(this)\n\n    argfind = checkIfHasClass(argfind, arg);\n\n    if (_t.children(argfind).length < 1) {\n      _t.append(arg);\n      return true;\n    }\n    return false;\n  };\n};\n\n\nfunction registerTextWidth($) {\n\n  $.fn.textWidth = function () {\n    var _t = jQuery(this);\n    var html_org = _t.html();\n    if (_t[0].nodeName === 'INPUT') {\n      html_org = _t.val();\n    }\n    var html_calcS = '<span class=\"forcalc\">' + html_org + '</span>';\n    jQuery('body').append(html_calcS);\n    var _lastspan = jQuery('span.forcalc').last();\n\n    _lastspan.css({\n      'font-size': _t.css('font-size'),\n      'font-family': _t.css('font-family')\n    })\n    var width = _lastspan.width();\n\n    _lastspan.remove();\n    return width;\n  };\n}\n\nfunction player_checkIfWeShouldShowAComment(selfClass, real_time_curr, real_time_total) {\n\n  var $ = jQuery;\n  var timer_curr_perc = Math.round((real_time_curr / real_time_total) * 100) / 100;\n  if (selfClass.audioType === 'fake') {\n    timer_curr_perc = Math.round((selfClass.timeCurrent / selfClass.timeTotal) * 100) / 100;\n  }\n  if (selfClass._commentsHolder) {\n    selfClass._commentsHolder.children().each(function () {\n      var _t = $(this);\n      if (_t.hasClass('dzstooltip-con')) {\n        var _t_posx = _t.offset().left - selfClass._commentsHolder.offset().left;\n\n\n        var aux = Math.round((parseFloat(_t_posx) / selfClass._commentsHolder.outerWidth()) * 100) / 100;\n\n\n        if (aux) {\n\n          if (Math.abs(aux - timer_curr_perc) < 0.02) {\n            selfClass._commentsHolder.find('.dzstooltip').removeClass('active');\n            _t.find('.dzstooltip').addClass('active');\n          } else {\n            _t.find('.dzstooltip').removeClass('active');\n          }\n        }\n      }\n    })\n  }\n}\n\n\nfunction sanitizeObjectForChangeMediaArgs(_sourceForChange) {\n\n  var changeMediaArgs = {};\n  var _feed_fakePlayer = _sourceForChange;\n\n  var lab = '';\n\n  if (_sourceForChange.data('original-settings')) {\n    return _sourceForChange.data('original-settings');\n  }\n\n\n  changeMediaArgs.source = null;\n  if (_feed_fakePlayer.attr('data-source')) {\n    changeMediaArgs.source = _feed_fakePlayer.attr('data-source')\n  } else {\n\n    if (_feed_fakePlayer.attr('href')) {\n      changeMediaArgs.source = _feed_fakePlayer.attr('href');\n    }\n  }\n\n  if (_feed_fakePlayer.attr('data-pcm')) {\n    changeMediaArgs.pcm = _feed_fakePlayer.attr('data-pcm');\n  }\n\n\n  lab = 'thumb';\n  if (_feed_fakePlayer.attr('data-' + lab)) {\n    changeMediaArgs[lab] = _sourceForChange.attr('data-' + lab);\n  }\n\n  lab = 'playerid';\n  if (_feed_fakePlayer.attr('data-' + lab)) {\n    changeMediaArgs[lab] = _sourceForChange.attr('data-' + lab);\n  }\n  lab = 'type';\n  if (_feed_fakePlayer.attr('data-' + lab)) {\n    changeMediaArgs[lab] = _sourceForChange.attr('data-' + lab);\n  }\n\n\n  if (_feed_fakePlayer.attr('data-thumb_link')) {\n    changeMediaArgs.thumb_link = _sourceForChange.attr('data-thumb_link');\n  }\n\n\n  if (_sourceForChange.find('.meta-artist').length > 0 || _sourceForChange.find('.meta-artist-con').length > 0) {\n\n    changeMediaArgs.artist = _sourceForChange.find('.the-artist').eq(0).html();\n    changeMediaArgs.song_name = _sourceForChange.find('.the-name').eq(0).html();\n  }\n\n\n  if (_sourceForChange.attr('data-thumb_for_parent')) {\n    changeMediaArgs.thumb = _sourceForChange.attr('data-thumb_for_parent');\n  }\n\n\n  if (_sourceForChange.find('.feed-song-name').length > 0 || _sourceForChange.find('.feed-artist-name').length > 0) {\n    changeMediaArgs.artist = _sourceForChange.find('.feed-artist-name').eq(0).html();\n    changeMediaArgs.song_name = _sourceForChange.find('.feed-song-name').eq(0).html();\n  }\n\n\n  return changeMediaArgs;\n}\n\n\nfunction utils_sanitizeToColor(colorString) {\n  if (colorString.indexOf('#') === -1 && colorString.indexOf('rgb') === -1 && colorString.indexOf('hsl') === -1) {\n    return '#' + colorString;\n  }\n  return colorString;\n}\n\nfunction dzsapInitjQueryRegisters() {\n}\n\nfunction player_radio_isNameUpdatable(selfClass, radio_update_song_name, targetKey) {\n\n  if (selfClass._metaArtistCon.find(targetKey).length && selfClass._metaArtistCon.find(targetKey).eq(0).text().length > 0) {\n\n    if (selfClass._metaArtistCon.find(targetKey).eq(0).html().indexOf('{{update}}') > -1) {\n      return true;\n    }\n  }\n\n\n  return false;\n}\n\nfunction playerRegisterWindowFunctions() {\n\n\n  window['dzsap_functions'] = {};\n  window['dzsap_functions']['send_total_time'] = function (argtime, argcthis) {\n\n\n    if (argtime && argtime !== Infinity) {\n      const data = {\n        action: 'dzsap_send_total_time_for_track',\n        id_track: argcthis.attr('data-playerid'),\n        postdata: Math.ceil(argtime)\n      };\n      jQuery.post(window.dzsap_ajaxurl, data, function (response) {\n      });\n    }\n\n  }\n\n\n  window.dzs_open_social_link = function (arg, argthis) {\n    var leftPosition, topPosition;\n    var w = 500, h = 500;\n\n    leftPosition = (window.screen.width / 2) - ((w / 2) + 10);\n\n    topPosition = (window.screen.height / 2) - ((h / 2) + 50);\n    var windowFeatures = \"status=no,height=\" + h + \",width=\" + w + \",resizable=yes,left=\" + leftPosition + \",top=\" + topPosition + \",screenX=\" + leftPosition + \",screenY=\" + topPosition + \",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no\";\n\n\n    arg = arg.replace('{{replacewithcurrurl}}', encodeURIComponent(window.location.href));\n\n    if (argthis && argthis.attr) {\n      arg = arg.replace(/{{replacewithdataurl}}/g, argthis.attr('data-url'));\n    }\n\n    const locationHref = window.location.href;\n\n\n    const auxa = locationHref.split('?');\n\n    let cid = '';\n    let cid_gallery = '';\n\n\n    if (argthis) {\n\n    } else {\n      if (window.dzsap_currplayer_from_share) {\n\n        argthis = window.dzsap_currplayer_from_share;\n      }\n    }\n\n\n    if (argthis) {\n\n      const $ = jQuery;\n\n      if ($(argthis).hasClass('audioplayer')) {\n        cid = $(argthis).parent().children().index(argthis);\n        cid_gallery = $(argthis).parent().parent().parent().attr('id');\n      } else {\n        if (jQuery(argthis).parent().parent().attr('data-menu-index')) {\n\n          cid = jQuery(argthis).parent().parent().attr('data-menu-index');\n        }\n        if (jQuery(argthis).parent().parent().attr('data-gallery-id')) {\n\n          cid_gallery = jQuery(argthis).parent().parent().attr('data-gallery-id');\n        }\n      }\n\n    }\n\n\n    var shareurl = encodeURIComponent(auxa[0] + '?fromsharer=on&audiogallery_startitem_' + cid_gallery + '=' + cid + '');\n    arg = arg.replace('{{shareurl}}', shareurl);\n\n\n    window.open(arg, \"sharer\", windowFeatures);\n  }\n\n\n  window.dzsap_wp_send_contor_60_secs = function (argcthis, argtitle) {\n\n    var data = {\n      video_title: argtitle\n\n      , video_analytics_id: argcthis.attr('data-playerid')\n      , curr_user: window.dzsap_curr_user\n    };\n    var theajaxurl = 'index.php?action=ajax_dzsap_submit_contor_60_secs';\n\n    if (window.dzsap_settings.dzsap_site_url) {\n\n      theajaxurl = dzsap_settings.dzsap_site_url + theajaxurl;\n    }\n\n\n    jQuery.ajax({\n      type: \"POST\",\n      url: theajaxurl,\n      data: data,\n      success: function (response) {\n\n\n      },\n      error: function (arg) {\n\n      }\n    });\n  }\n\n\n  window.dzsap_init_multisharer = function () {\n\n\n  }\n\n\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction assignPcmData(selfClass) {\n\n  selfClass.pcmSource = string_jsonConvertToArray(selfClass.cthis.attr('data-pcm'));\n  if (selfClass.initOptions.skinwave_enableSpectrum === 'on') {\n    var pcmSourceLen = selfClass.pcmSource.length;\n    var desiredSize = 256;\n\n    for (var i = 0; i < pcmSourceLen; i++) {\n      if (i > desiredSize) {\n        continue;\n      }\n      selfClass.pcmSource[i] = selfClass.pcmSource[i * pcmSourceLen / desiredSize] * desiredSize;\n    }\n    selfClass.pcmSource.splice(desiredSize, pcmSourceLen - desiredSize); // removes 3rd element of array\n  }\n}\n\nfunction string_jsonConvertToArray(ar_str) {\n  let waves = [];\n  if (typeof (ar_str) == 'object') {\n    waves = ar_str;\n  } else {\n    try {\n      waves = JSON.parse(ar_str);\n    } catch (err) {\n\n    }\n  }\n\n  return waves;\n}\n\n/**\n * should be called only once on init\n */\nfunction dzsap_singleton_ready_calls() {\n\n  window.dzsap_singleton_ready_calls_is_called = true;\n\n\n  let $feed_dzsapMainSettings = null;\n  const $feed_dzsapMainSettingsAll = document.querySelectorAll('.dzsap-main-settings');\n  if ($feed_dzsapMainSettingsAll.length) {\n    $feed_dzsapMainSettings = $feed_dzsapMainSettingsAll[$feed_dzsapMainSettingsAll.length - 1];\n  }\n  if ($feed_dzsapMainSettings) {\n    window.dzsap_settings = JSON.parse($feed_dzsapMainSettings.innerHTML);\n    window.ajaxurl = window.dzsap_settings.ajax_url;\n    window.dzsap_curr_user = window.dzsap_settings.dzsap_curr_user;\n  }\n\n  jQuery('body').append('<style class=\"dzsap--style\"></style>');\n\n\n  window.dzsap__style = jQuery('.dzsap--style');\n\n\n  jQuery('audio.zoomsounds-from-audio').each(function () {\n    var _t = jQuery(this);\n    _t.after('<div class=\"audioplayer-tobe auto-init skin-silver\" data-source=\"' + _t.attr('src') + '\"></div>');\n    _t.remove();\n  })\n\n  jQuery(document).on('focus.dzsap', 'input', function () {\n    window.dzsap_currplayer_focused = null;\n  })\n\n  registerTextWidth(jQuery);\n\n  (0,_player_player_keyboard__WEBPACK_IMPORTED_MODULE_2__.dzsap_keyboardSetup)();\n}\n\nfunction jQueryAuxBindings($) {\n\n\n  function handleClick_onGlobalZoomSoundsButton(e) {\n    var $t = $(this);\n\n\n    e.preventDefault();\n    e.stopPropagation();\n    e.stopImmediatePropagation();\n\n    if ($t.hasClass('audioplayer-song-changer')) {\n      var _c = $($t.attr('data-fakeplayer')).eq(0);\n\n\n      if (_c && _c.get(0) && _c.get(0).api_change_media) {\n        _c.get(0).api_change_media($t, {\n          'feeder_type': 'button'\n          , 'call_from': 'changed audioplayer-song-changer'\n        });\n      }\n\n      return false;\n    }\n\n    if ($t.hasClass('dzsap-wishlist-but')) {\n\n\n      var data = {\n        action: 'dzsap_add_to_wishlist',\n        playerid: $t.attr('data-post_id'),\n        wishlist_action: 'add',\n      };\n\n\n      if ($t.find('.svg-icon').hasClass('fa-star')) {\n        data.wishlist_action = 'remove';\n      }\n\n\n      if (window.dzsap_lasto.settings_php_handler) {\n        $.ajax({\n          type: \"POST\",\n          url: window.dzsap_lasto.settings_php_handler,\n          data: data,\n          success: function (response) {\n\n\n            if ($t.find('.svg-icon').hasClass('fa-star-o')) {\n              $t.find('.svg-icon').eq(0).attr('class', 'svg-icon fa fa-star');\n            } else {\n\n              $t.find('.svg-icon').eq(0).attr('class', 'svg-icon fa fa-star-o');\n            }\n\n          },\n          error: function (arg) {\n\n          }\n        });\n      }\n\n      return false;\n\n\n    }\n\n  }\n\n\n  $(document).off('click.dzsap_metas')\n  $(document).on('click.dzsap_metas', '.audioplayer-song-changer, .dzsap-wishlist-but', handleClick_onGlobalZoomSoundsButton)\n\n\n}\n\n\n/**\n * for .zoomsounds-wrapper-bg-center\n * @param selfClass\n */\nfunction view_player_playMiscEffects(selfClass) {\n\n  selfClass.$conPlayPause.addClass('playing');\n\n  if (selfClass.cthis.parent().hasClass('zoomsounds-wrapper-bg-center')) {\n    selfClass.cthis.parent().addClass('is-playing');\n  }\n}\n\n\nfunction view_player_globalDetermineSyncPlayersIndex(selfClass) {\n\n  if (selfClass._sourcePlayer === null && window.dzsap_syncList_players) {\n    window.dzsap_syncList_players.forEach(($syncPlayer, index) => {\n      if (selfClass.cthis.attr('data-playerid') == $syncPlayer.attr('data-playerid')) {\n        window.dzsap_syncList_index = index;\n      }\n    })\n  }\n}\n\n\nfunction player_view_addMetaLoaded(selfClass) {\n\n  selfClass.cthis.addClass('meta-loaded');\n  selfClass.cthis.removeClass('meta-fake');\n  if (selfClass._sourcePlayer) {\n    selfClass._sourcePlayer.addClass('meta-loaded');\n    selfClass._sourcePlayer.removeClass('meta-fake');\n  }\n  if (selfClass.$totalTime) {\n\n    selfClass.timeModel.refreshTimes();\n    selfClass.$totalTime.html(formatTime(selfClass.timeModel.getVisualTotalTime()));\n  }\n  if (selfClass._sourcePlayer) {\n    selfClass._sourcePlayer.addClass('meta-loaded');\n  }\n}\n\n\n\nfunction htmlEntities(str) {\n  return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n}\n\nfunction waitForScriptToBeAvailableThenExecute(verifyVar, callbackFn) {\n\n  new Promise((resolve, reject) => {\n\n    var checkInterval = 0;\n\n    function checkIfVarExists() {\n      if (verifyVar) {\n        clearInterval(checkInterval);\n        resolve('var exists');\n      }\n    }\n\n    checkIfVarExists()\n    checkInterval = setInterval(checkIfVarExists, 300);\n    setTimeout(() => {\n      reject('timeout');\n    }, 5000);\n\n  }).then((resolve => {\n    callbackFn(resolve);\n  })).catch((err) => {\n  })\n}\n\n\n\n\nfunction player_reinit_findIfPcmNeedsGenerating(selfClass) {\n  const o = selfClass.initOptions;\n\n  if (selfClass.cthis.attr('data-pcm')) {\n    selfClass.hasInitialPcmData = true;\n  }\n\n  if (!selfClass.hasInitialPcmData && o.skinwave_wave_mode === 'canvas' && (o.design_skin === 'skin-wave' || selfClass.cthis.attr('data-fakeplayer'))) {\n    selfClass.isPcmRequiredToGenerate = true;\n  }\n\n\n  if (o.scrubbar_type === 'wave') {\n    if (o.is_inited_from_playlist) {\n\n      selfClass.cthis.addClass('scrubbar-type-wave--has-reveal-animation');\n    }\n    if (o.scrubbar_type_wave__has_reveal_animation === 'on') {\n\n      selfClass.cthis.addClass('scrubbar-type-wave--has-reveal-animation');\n    }\n    if (selfClass.isPcmRequiredToGenerate) {\n      selfClass.cthis.addClass('scrubbar-type-wave--has-reveal-animation');\n    }\n  }\n}\n\n\nfunction playerFunctions(selfClass, functionType) {\n  var o = selfClass.initOptions;\n\n  if (functionType === 'detectIds') {\n\n\n    if (o.skinwave_comments_playerid === '') {\n      if (typeof (selfClass.cthis.attr('id')) !== 'undefined') {\n        selfClass.the_player_id = selfClass.cthis.attr('id');\n      }\n    }\n\n\n    if (selfClass.the_player_id == '') {\n\n      if (selfClass.cthis.attr('data-computed-playerid')) {\n        selfClass.the_player_id = selfClass.cthis.attr('data-computed-playerid');\n      }\n      if (selfClass.cthis.attr('data-real-playerid')) {\n        selfClass.the_player_id = selfClass.cthis.attr('data-real-playerid');\n      }\n    }\n    selfClass.uniqueId = selfClass.the_player_id;\n\n    if (typeof selfClass.uniqueId === 'string') {\n      selfClass.uniqueId = selfClass.uniqueId.replace('ap', '');\n    }\n    selfClass.identifier_pcm = selfClass.uniqueId;\n\n\n    if (selfClass.uniqueId === '') {\n      o.skinwave_comments_enable = 'off';\n    }\n\n  }\n}\n\nfunction player_delete(selfClass) {\n\n  var _con = null;\n  if (selfClass.cthis.parent().parent().hasClass('dzsap-sticktobottom')) {\n    _con = selfClass.cthis.parent().parent();\n  }\n  if (_con) {\n    if (_con.prev().hasClass(\"dzsap-sticktobottom-placeholder\")) {\n      _con.prev().remove();\n    }\n    _con.remove();\n  }\n  selfClass.cthis.remove();\n  return false;\n}\n\n\n\nfunction sanitizeToHexColor(hexcolor) {\n  if (hexcolor.indexOf('#') === -1) {\n    hexcolor = '#' + hexcolor;\n  }\n  return hexcolor;\n}\n\nfunction player_identifySource(selfClass) {\n\n  selfClass.data_source = selfClass.cthis.attr('data-source') || '';\n}\n\nfunction player_identifyTypes(selfClass) {\n\n\n  var o = selfClass.initOptions;\n  const cthis = selfClass.cthis;\n  if (cthis.attr('data-type') === 'youtube') {\n    o.type = 'youtube';\n    selfClass.audioType = 'youtube';\n  }\n  if (cthis.attr('data-type') === 'soundcloud') {\n    o.type = 'soundcloud';\n    selfClass.audioType = 'soundcloud';\n\n    o.skinwave_enableSpectrum = 'off';\n    cthis.removeClass('skin-wave-is-spectrum');\n  }\n  if (cthis.attr('data-type') === 'mediafile') {\n    o.type = 'audio';\n    selfClass.audioType = 'audio';\n  }\n\n  if (cthis.attr('data-type') === 'shoutcast') {\n    o.type = 'shoutcast';\n    selfClass.audioType = 'audio';\n    o.disable_timer = 'on';\n    o.skinwave_enableSpectrum = 'off';\n\n    if (!cthis.attr('data-streamtype')) {\n\n      selfClass.audioTypeSelfHosted_streamType = 'shoutcast';\n    }\n\n\n    if (o.design_skin === 'skin-default') {\n      o.disable_scrub = 'on';\n    }\n\n  }\n\n\n  if (selfClass.audioType === 'audio' || selfClass.audioType === 'normal' || selfClass.audioType === '') {\n    selfClass.audioType = 'selfHosted';\n  }\n\n\n  if (String(selfClass.data_source).indexOf('https://soundcloud.com/') > -1) {\n    selfClass.audioType = 'soundcloud';\n  }\n}\n\n\n\nfunction player_getPlayFromTime(selfClass) {\n\n  selfClass.playFrom = selfClass.initOptions.playfrom;\n\n  if ((0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_0__.isValid)(selfClass.cthis.attr('data-playfrom'))) {\n    selfClass.playFrom = selfClass.cthis.attr('data-playfrom');\n  }\n\n  if (isNaN(parseInt(selfClass.playFrom, 10)) === false) {\n    selfClass.playFrom = parseInt(selfClass.playFrom, 10);\n  }\n\n\n  if (selfClass.playFrom === 'off' || selfClass.playFrom === '') {\n    if (get_query_arg(window.location.href, 'audio_time')) {\n      selfClass.playFrom = sanitizeToIntFromPointTime(get_query_arg(window.location.href, 'audio_time'));\n    }\n  }\n\n  if (selfClass.timeModel.sampleTimeStart) {\n    if (selfClass.playFrom < selfClass.timeModel.sampleTimeStart) {\n      selfClass.playFrom = selfClass.timeModel.sampleTimeStart;\n    }\n    if (typeof selfClass.playFrom === 'string') {\n      selfClass.playFrom = selfClass.timeModel.sampleTimeStart;\n    }\n  }\n}\n\n\nfunction sanitizeToIntFromPointTime(arg) {\n\n\n  arg = String(arg).replace('%3A', ':');\n  arg = String(arg).replace('#', '');\n\n  if (arg && String(arg).indexOf(':') > -1) {\n\n    var arr = /(\\d.*):(\\d.*)/g.exec(arg);\n\n\n    var m = parseInt(arr[1], 10);\n    var s = parseInt(arr[2], 10);\n\n\n    return (m * 60) + s;\n  } else {\n    return Number(arg);\n  }\n}\n\n\n/**\n * called in player init()\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_determineStickToBottomContainer(selfClass) {\n\n  let $conTest = selfClass.cthis.parent();\n\n\n\n  if ($conTest.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_3__.DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM)) {\n    selfClass.$stickToBottomContainer = $conTest;\n    selfClass.isStickyPlayer = true;\n\n  }\n  $conTest = selfClass.cthis.parent().parent();\n  if ($conTest.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_3__.DZSAP_PLAYER_CLASS_STICK_TO_BOTTOM)) {\n    selfClass.$stickToBottomContainer = $conTest;\n    selfClass.isStickyPlayer = true;\n  }\n}\n\n\n/**\n *\n * todo: maybe move\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_stickToBottomContainerDetermineClasses(selfClass) {\n\n  if (selfClass.$stickToBottomContainer) {\n    if (selfClass.cthis.hasClass('theme-dark')) {\n      selfClass.$stickToBottomContainer.addClass('theme-dark');\n    }\n\n    setTimeout(function () {\n\n      selfClass.$stickToBottomContainer.addClass('inited');\n    }, 500)\n\n\n  }\n\n}\n\nfunction player_service_getSourceProtection(selfClass) {\n\n  return new Promise((resolve, reject) => {\n\n    jQuery.ajax({\n      type: \"POST\",\n      url: selfClass.data_source,\n      data: {},\n      success: function (response) {\n        resolve(response);\n      },\n      error: function (err) {\n        reject(err);\n      }\n    });\n  })\n}\n\nfunction player_isGoingToSetupMediaNow(selfClass) {\n  return selfClass.audioTypeSelfHosted_streamType !== 'icecast' && selfClass.audioType !== 'youtube';\n}\n\n\nfunction player_stopOtherPlayers(dzsap_list, selfClass) {\n\n  let i = 0;\n  for (i = 0; i < dzsap_list.length; i++) {\n\n    if (dzsap_list[i].get(0) && dzsap_list[i].get(0).api_pause_media && (dzsap_list[i].get(0) != selfClass.cthis.get(0))) {\n\n\n      if (dzsap_list[i].data('type_audio_stop_buffer_on_unfocus') && dzsap_list[i].data('type_audio_stop_buffer_on_unfocus') === 'on') {\n        dzsap_list[i].get(0).api_destroy_for_rebuffer();\n      } else {\n        dzsap_list[i].get(0).api_pause_media({\n          'audioapi_setlasttime': false\n        });\n      }\n    }\n  }\n}\n\n\nfunction player_syncPlayers_gotoItem(selfClass, targetIncrement) {\n  if (window.dzsap_settings.syncPlayers_autoplayEnabled) {\n\n    for (let keySyncPlayer in window.dzsap_syncList_players) {\n      let $playerInSyncList = selfClass.cthis;\n\n      if (selfClass._sourcePlayer) {\n        $playerInSyncList = selfClass._sourcePlayer;\n      }\n\n\n      if (window.dzsap_syncList_players[keySyncPlayer].get(0) === $playerInSyncList.get(0)) {\n\n        keySyncPlayer = parseInt(keySyncPlayer, 10);\n        let targetIndex = window.dzsap_syncList_index + targetIncrement;\n        if (targetIndex >= 0 && targetIndex < window.dzsap_syncList_players.length) {\n          const $currentSyncPlayer_ = window.dzsap_syncList_players[targetIndex].get(0);\n\n\n          if ($currentSyncPlayer_ && $currentSyncPlayer_.api_play_media) {\n            setTimeout(function () {\n              $currentSyncPlayer_.api_play_media({\n                'called_from': 'api_sync_players_prev'\n              });\n            }, 200);\n\n          }\n        }\n      }\n    }\n  }\n\n}\n\nfunction player_syncPlayers_buildList() {\n\n  if (!window.syncPlayers_isDzsapListBuilt) {\n\n    window.dzsap_syncList_players = [];\n\n    window.syncPlayers_isDzsapListBuilt = true;\n\n    jQuery('.audioplayer.is-single-player,.audioplayer-tobe.is-single-player').each(function () {\n      var _t23 = jQuery(this);\n\n\n      if (_t23.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_3__.DZSAP_PLAYER_CLASS_FOOTER_PLAYER)) {\n        return;\n      }\n\n\n      if (_t23.attr('data-do-not-include-in-list') !== 'on') {\n        window.dzsap_syncList_players.push(_t23);\n      }\n    })\n\n\n    clearTimeout(window.syncPlayers_buildTimeout);\n\n    window.syncPlayers_buildTimeout = setTimeout(function () {\n      window.syncPlayers_isDzsapListBuilt = false;\n    }, 500);\n\n  }\n}\n\n\n\nfunction convertPluginOptionsToFinalOptions(elThis, defaultOptions, argOptions = null, searchedAttr = 'data-options', $es) {\n\n  var finalOptions = null;\n  var tempOptions = {};\n  var isSetFromJson = false;\n\n  if ($es === undefined) {\n    $es = jQuery;\n  }\n\n\n  var $elThis = $es(elThis);\n\n  const isArgOptionsDefinedViaJs = Boolean(argOptions && typeof argOptions === 'object' && Object.keys(argOptions).length);\n\n\n  if (isArgOptionsDefinedViaJs) {\n    tempOptions = argOptions;\n  } else {\n    if ($elThis.attr(searchedAttr)) {\n      try {\n        tempOptions = JSON.parse($elThis.attr(searchedAttr));\n        isSetFromJson = true;\n      } catch (err) {\n\n      }\n    }\n    if (!isSetFromJson) {\n      if (typeof $elThis.attr(searchedAttr) != 'undefined' && $elThis.attr('data-options') != '') {\n        let aux = $elThis.attr(searchedAttr);\n        aux = 'var aux_opts = ' + aux;\n        eval(aux);\n        tempOptions = Object.assign({}, argOptions);\n      }\n    }\n  }\n  finalOptions = Object.assign(defaultOptions, tempOptions);\n\n  return finalOptions;\n}\n\nfunction generateFakeArrayForPcm() {\n\n\n  var maxlen = 256;\n\n  var arr = [];\n\n  for (let it1 = 0; it1 < maxlen; it1++) {\n    arr[it1] = Math.random() * 100;\n\n  }\n\n  return arr;\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js":
/*!**********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"pausebtn_svg\": () => (/* binding */ pausebtn_svg),\n/* harmony export */   \"playbtn_svg\": () => (/* binding */ playbtn_svg),\n/* harmony export */   \"svg_embed_btn\": () => (/* binding */ svg_embed_btn),\n/* harmony export */   \"svg_embed_button\": () => (/* binding */ svg_embed_button),\n/* harmony export */   \"svg_footer_playlist\": () => (/* binding */ svg_footer_playlist),\n/* harmony export */   \"svg_menu_state\": () => (/* binding */ svg_menu_state),\n/* harmony export */   \"svg_next_btn\": () => (/* binding */ svg_next_btn),\n/* harmony export */   \"svg_prev_btn\": () => (/* binding */ svg_prev_btn),\n/* harmony export */   \"svg_share_icon\": () => (/* binding */ svg_share_icon)\n/* harmony export */ });\n\n\n\nconst playbtn_svg = '<svg class=\"svg-icon\" version=\"1.2\" baseProfile=\"tiny\" id=\"Layer_1\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"25px\" height=\"30px\" viewBox=\"0 0 25 30\" xml:space=\"preserve\"> <path d=\"M24.156,13.195L2.406,0.25C2.141,0.094,1.867,0,1.555,0C0.703,0,0.008,0.703,0.008,1.562H0v26.875h0.008 C0.008,29.297,0.703,30,1.555,30c0.32,0,0.586-0.109,0.875-0.266l21.727-12.93C24.672,16.375,25,15.727,25,15 S24.672,13.633,24.156,13.195z\"/> </svg>';\nconst pausebtn_svg = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_3\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"12px\" height=\"13px\" viewBox=\"0 0 13.415 16.333\" enable-background=\"new 0 0 13.415 16.333\" xml:space=\"preserve\"> <path fill=\"#D2D6DB\" d=\"M4.868,14.59c0,0.549-0.591,0.997-1.322,0.997H2.2c-0.731,0-1.322-0.448-1.322-0.997V1.618 c0-0.55,0.592-0.997,1.322-0.997h1.346c0.731,0,1.322,0.447,1.322,0.997V14.59z\"/> <path fill=\"#D2D6DB\" d=\"M12.118,14.59c0,0.549-0.593,0.997-1.324,0.997H9.448c-0.729,0-1.322-0.448-1.322-0.997V1.619 c0-0.55,0.593-0.997,1.322-0.997h1.346c0.731,0,1.324,0.447,1.324,0.997V14.59z\"/> </svg>';\n\n\n\n\n\nconst svg_share_icon = '<svg class=\"svg-icon\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" version=\"1.1\" id=\"Capa_1\" x=\"0px\" y=\"0px\" width=\"512px\" height=\"512px\" viewBox=\"0 0 511.626 511.627\" style=\"enable-background:new 0 0 511.626 511.627;\" xml:space=\"preserve\"> <g> <path d=\"M506.206,179.012L360.025,32.834c-3.617-3.617-7.898-5.426-12.847-5.426s-9.233,1.809-12.847,5.426 c-3.617,3.619-5.428,7.902-5.428,12.85v73.089h-63.953c-135.716,0-218.984,38.354-249.823,115.06C5.042,259.335,0,291.03,0,328.907 c0,31.594,12.087,74.514,36.259,128.762c0.57,1.335,1.566,3.614,2.996,6.849c1.429,3.233,2.712,6.088,3.854,8.565 c1.146,2.471,2.384,4.565,3.715,6.276c2.282,3.237,4.948,4.859,7.994,4.859c2.855,0,5.092-0.951,6.711-2.854 c1.615-1.902,2.424-4.284,2.424-7.132c0-1.718-0.238-4.236-0.715-7.569c-0.476-3.333-0.715-5.564-0.715-6.708 c-0.953-12.938-1.429-24.653-1.429-35.114c0-19.223,1.668-36.449,4.996-51.675c3.333-15.229,7.948-28.407,13.85-39.543 c5.901-11.14,13.512-20.745,22.841-28.835c9.325-8.09,19.364-14.702,30.118-19.842c10.756-5.141,23.413-9.186,37.974-12.135 c14.56-2.95,29.215-4.997,43.968-6.14s31.455-1.711,50.109-1.711h63.953v73.091c0,4.948,1.807,9.232,5.421,12.847 c3.62,3.613,7.901,5.424,12.847,5.424c4.948,0,9.232-1.811,12.854-5.424l146.178-146.183c3.617-3.617,5.424-7.898,5.424-12.847 C511.626,186.92,509.82,182.636,506.206,179.012z\" fill=\"#696969\"/> </g></svg> ';\n\n\n\nconst svg_embed_button = ' <svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_1\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"10.975px\" height=\"14.479px\" viewBox=\"0 0 10.975 14.479\" enable-background=\"new 0 0 10.975 14.479\" xml:space=\"preserve\"> <g> <path d=\"M2.579,1.907c0.524-0.524,1.375-0.524,1.899,0l4.803,4.804c0.236-0.895,0.015-1.886-0.687-2.587L5.428,0.959 c-1.049-1.05-2.75-1.05-3.799,0L0.917,1.671c-1.049,1.05-1.049,2.751,0,3.801l3.167,3.166c0.7,0.702,1.691,0.922,2.587,0.686 L1.867,4.52c-0.524-0.524-0.524-1.376,0-1.899L2.579,1.907z M5.498,13.553c1.05,1.05,2.75,1.05,3.801,0l0.712-0.713 c1.05-1.05,1.05-2.75,0-3.8L6.843,5.876c-0.701-0.7-1.691-0.922-2.586-0.686l4.802,4.803c0.524,0.525,0.524,1.376,0,1.897 l-0.713,0.715c-0.523,0.522-1.375,0.522-1.898,0L1.646,7.802c-0.237,0.895-0.014,1.886,0.686,2.586L5.498,13.553z\"/> </g> </svg> ';\n\n\n\nconst svg_prev_btn = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"14px\" height=\"14px\" viewBox=\"0 0 12.5 12.817\" enable-background=\"new 0 0 12.5 12.817\" xml:space=\"preserve\"> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M2.581,7.375c-0.744-0.462-1.413-0.94-1.486-1.061C1.021,6.194,1.867,5.586,2.632,5.158l2.35-1.313 c0.765-0.427,1.505-0.782,1.646-0.789s0.257,1.03,0.257,1.905V7.87c0,0.876-0.051,1.692-0.112,1.817 C6.711,9.81,5.776,9.361,5.032,8.898L2.581,7.375z\"/> </g> </g> </g> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M6.307,7.57C5.413,7.014,4.61,6.441,4.521,6.295C4.432,6.15,5.447,5.42,6.366,4.906l2.82-1.577 c0.919-0.513,1.809-0.939,1.979-0.947s0.309,1.236,0.309,2.288v3.493c0,1.053-0.061,2.033-0.135,2.182S10.144,9.955,9.25,9.4 L6.307,7.57z\"/> </g> </g> </g> </svg>';\nconst svg_next_btn = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"14px\" height=\"14px\" viewBox=\"0 0 12.5 12.817\" enable-background=\"new 0 0 12.5 12.817\" xml:space=\"preserve\"> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M9.874,5.443c0.744,0.462,1.414,0.939,1.486,1.06c0.074,0.121-0.771,0.729-1.535,1.156L7.482,8.967 C6.719,9.394,5.978,9.75,5.837,9.756C5.696,9.761,5.581,8.726,5.581,7.851V4.952c0-0.875,0.05-1.693,0.112-1.816 c0.062-0.124,0.995,0.326,1.739,0.788L9.874,5.443z\"/> </g> </g> </g> <g> <g> <g> <path fill=\"#D2D6DB\" d=\"M6.155,5.248c0.893,0.556,1.696,1.129,1.786,1.274c0.088,0.145-0.928,0.875-1.847,1.389l-2.811,1.57 c-0.918,0.514-1.808,0.939-1.978,0.947c-0.169,0.008-0.308-1.234-0.308-2.287V4.66c0-1.052,0.061-2.034,0.135-2.182 s1.195,0.391,2.089,0.947L6.155,5.248z\"/> </g> </g> </g> </svg>';\n\n\n\n\n\nconst svg_menu_state = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"13.25px\" height=\"13.915px\" viewBox=\"0 0 13.25 13.915\" enable-background=\"new 0 0 13.25 13.915\" xml:space=\"preserve\"> <path d=\"M1.327,4.346c-0.058,0-0.104-0.052-0.104-0.115V2.222c0-0.063,0.046-0.115,0.104-0.115H11.58 c0.059,0,0.105,0.052,0.105,0.115v2.009c0,0.063-0.046,0.115-0.105,0.115H1.327z\"/> <path d=\"M1.351,8.177c-0.058,0-0.104-0.051-0.104-0.115V6.054c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.063-0.047,0.115-0.105,0.115H1.351z\"/> <path d=\"M1.351,12.182c-0.058,0-0.104-0.05-0.104-0.115v-2.009c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.064-0.047,0.115-0.105,0.115H1.351z\"/> </svg>';\nconst svg_embed_btn = '<svg class=\"svg-icon\" version=\"1.2\" baseProfile=\"tiny\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"15px\" height=\"15px\" viewBox=\"0 0 15 15\" xml:space=\"preserve\"> <g id=\"Layer_1\"> <polygon fill=\"#E6E7E8\" points=\"1.221,7.067 0.494,5.422 4.963,1.12 5.69,2.767 \"/> <polygon fill=\"#E6E7E8\" points=\"0.5,5.358 1.657,4.263 3.944,10.578 2.787,11.676 \"/> <polygon fill=\"#E6E7E8\" points=\"13.588,9.597 14.887,8.34 12.268,2.672 10.969,3.93 \"/> <polygon fill=\"#E6E7E8\" points=\"14.903,8.278 14.22,6.829 9.714,11.837 10.397,13.287 \"/> </g> <g id=\"Layer_2\"> <rect x=\"6.416\" y=\"1.713\" transform=\"matrix(0.9663 0.2575 -0.2575 0.9663 2.1699 -1.6329)\" fill=\"#E6E7E8\" width=\"1.805\" height=\"11.509\"/> </g> </svg>';\n\n\nconst svg_footer_playlist = '<svg class=\"svg-icon\" version=\"1.1\" id=\"Layer_2\" xmlns=\"https://www.w3.org/2000/svg\" xmlns:xlink=\"https://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"13.25px\" height=\"13.915px\" viewBox=\"0 0 13.25 13.915\" enable-background=\"new 0 0 13.25 13.915\" xml:space=\"preserve\"> <path d=\"M1.327,4.346c-0.058,0-0.104-0.052-0.104-0.115V2.222c0-0.063,0.046-0.115,0.104-0.115H11.58 c0.059,0,0.105,0.052,0.105,0.115v2.009c0,0.063-0.046,0.115-0.105,0.115H1.327z\"/> <path d=\"M1.351,8.177c-0.058,0-0.104-0.051-0.104-0.115V6.054c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.063-0.047,0.115-0.105,0.115H1.351z\"/> <path d=\"M1.351,12.182c-0.058,0-0.104-0.05-0.104-0.115v-2.009c0-0.064,0.046-0.115,0.104-0.115h10.252 c0.058,0,0.105,0.051,0.105,0.115v2.009c0,0.064-0.047,0.115-0.105,0.115H1.351z\"/> </svg>';\n\n\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_nav.js":
/*!**************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_nav.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"ZoomSoundsNav\": () => (/* binding */ ZoomSoundsNav)\n/* harmony export */ });\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n/* harmony import */ var _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n/* harmony import */ var _dzsap_ajax__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n\n\n\n\n\n\nconst ZoomSoundsNav = class {\n\n  constructor(parentGallery) {\n    this.parentGallery = parentGallery;\n\n    this.structZoomsoundsNav = '';\n    this._navMain = null;\n    this._navClipper = null;\n    this.cgallery = null;\n\n    this.size_navMainClipSize = null;\n    this.size_navMainTotalSize = null;\n    this.finish_viy = 0;\n\n    this.init();\n\n\n  }\n\n  init() {\n\n    var selfGallery = this.parentGallery;\n\n    this.structZoomsoundsNav = '<div class=\"nav-main zoomsounds-nav ' + selfGallery.initOptions.design_skin + ' navigation-method-' + selfGallery.initOptions.navigation_method + '\"><div class=\"nav-clipper\"></div></div>';\n\n\n    // -- let us do some sanitize\n    if (this.parentGallery.initOptions.navigation_method === 'full') {\n      this.parentGallery.initOptions.design_menu_height = 'auto';\n    }\n\n  }\n\n  init_ready() {\n\n\n\n    const self = this;\n    var selfGallery = this.parentGallery;\n\n    if (selfGallery.initOptions.disable_menu_navigation == 'on') {\n      this._navMain.hide();\n    }\n\n    if(!isNaN(Number(selfGallery.initOptions.design_menu_height))){\n      this._navMain.css({\n        'height': (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.sanitizeToCssPx)(selfGallery.initOptions.design_menu_height)\n      })\n    }\n\n    if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() || (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)()) {\n      this._navMain.css({\n        'overflow': 'auto'\n      })\n    }\n\n\n    if (selfGallery.initOptions.design_menu_state == 'closed') {\n      this._navMain.css({\n        'height': 0\n      })\n      this.cgallery.removeClass('menu-opened');\n      this.cgallery.addClass('menu-closed');\n    } else {\n      this.cgallery.addClass('menu-opened');\n      this.cgallery.removeClass('menu-closed');\n    }\n\n\n    this._navClipper.on('click', '.menu-btn-like,.menu-facebook-share', click_menuitem);\n    this._navClipper.on('click', '.menu-item', click_menuitem);\n\n\n    function click_menuitem(e) {\n      var _t = jQuery(this);\n\n      if (e.type == 'click') {\n        if (_t.hasClass('menu-item')) {\n          var ind = _t.parent().children().index(_t);\n\n          selfGallery.goto_item(ind);\n        }\n        if (_t.hasClass('menu-btn-like')) {\n\n\n          if (_t.parent().parent().attr('data-playerid')) {\n            (_dzsap_ajax__WEBPACK_IMPORTED_MODULE_2__.ajax_submit_like.bind(selfGallery))(1, _t.parent().parent().attr('data-playerid'), {\n              refferer: _t\n            });\n          }\n\n\n          return false;\n        }\n        if (_t.hasClass('menu-facebook-share')) {\n          if (_t.parent().parent().attr('data-playerid')) {\n            (_dzsap_ajax__WEBPACK_IMPORTED_MODULE_2__.ajax_submit_like.bind(selfGallery))(1, _t.parent().parent().attr('data-playerid'), {\n              refferer: _t\n            });\n          }\n\n\n          return false;\n        }\n      }\n\n    }\n\n\n  }\n\n\n  get_structZoomsoundsNav() {\n    return this.structZoomsoundsNav;\n  }\n\n  set_elements(_navMain, _navClipper, cgallery) {\n    this._navMain = _navMain;\n    this._navClipper = _navClipper;\n    this.cgallery = cgallery;\n  }\n\n  calculateDims() {\n\n    this.size_navMainClipSize = this._navMain.height();\n    this.size_navMainTotalSize = this._navClipper.outerHeight();\n\n    const self = this;\n\n    if (this.parentGallery.initOptions.navigation_method === 'mouseover') {\n\n\n\n      if (this.size_navMainTotalSize > this.size_navMainClipSize && this.size_navMainClipSize > 0) {\n        this._navMain.off('mousemove', navMain_mousemove);\n        this._navMain.on('mousemove', navMain_mousemove);\n      } else {\n        this._navMain.off('mousemove', navMain_mousemove);\n      }\n    }\n\n    function navMain_mousemove(e) {\n\n      var aux_error = 20; //==erroring for the menu scroll\n      var $ = jQuery;\n      var _t = $(this);\n      var mx = e.pageX - _t.offset().left;\n      var my = e.pageY - _t.offset().top;\n\n\n      if (self.size_navMainTotalSize <= self.size_navMainClipSize) {\n        return;\n      }\n\n      self.size_navMainClipSize = self._navMain.outerHeight();\n\n\n\n      var vix = 0;\n      var viy = 0;\n\n      viy = (my / self.size_navMainClipSize) * -(self.size_navMainTotalSize - self.size_navMainClipSize + 10 + aux_error * 2) + aux_error;\n\n      if (viy > 0) {\n        viy = 0;\n      }\n      if (viy < -(self.size_navMainTotalSize - self.size_navMainClipSize + 10)) {\n        viy = -(self.size_navMainTotalSize - self.size_navMainClipSize + 10);\n      }\n\n      self.finish_viy = viy;\n\n\n\n\n      if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() == false && (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)() == false) {\n        if (self.parentGallery.initOptions.enable_easing != 'on') {\n\n          self._navClipper.css({\n            'transform': 'translateY(' + self.finish_viy + 'px)'\n          });\n        }\n      }\n\n\n    }\n\n  }\n\n\n\n  toggle_menu_state() {\n\n    const self = this;\n\n    if (this._navMain.height() == 0) {\n      this._navMain.css({\n        'height': this.parentGallery.initOptions.design_menu_height\n      })\n\n\n      this.cgallery.removeClass('menu-closed');\n      this.cgallery.addClass('menu-opened');\n    } else {\n\n      this._navMain.css({\n        'height': 0\n      })\n      this.cgallery.removeClass('menu-opened');\n      this.cgallery.addClass('menu-closed');\n    }\n    setTimeout(function () {\n      self.parentGallery.handleResize();\n    }, 400); // -- animation delay\n\n  }\n\n  parseTrackData(track_data) {\n    var foundnr = 0;\n    var self = this;\n    this._navMain.find('.menu-item-views').each(function () {\n      var _t2 = $(this);\n\n      var aux_html = _t2.html();\n\n      var reg_findid = /{{views_(.*?)}}/g;\n\n\n      var aux = reg_findid.exec(aux_html);\n\n\n\n      var id = '';\n      if (aux && aux[1]) {\n\n        id = aux[1];\n\n        for (var i in track_data) {\n\n\n\n          if (id == track_data[i].label || id == 'ap' + track_data[i].label) {\n            aux_html = aux_html.replace(aux[0], track_data[i].views);\n            foundnr++;\n            break;\n          }\n        }\n\n\n        _t2.html(aux_html);\n\n      }\n\n\n    })\n\n    if (foundnr < track_data.length) {\n\n      self._navMain.find('.menu-item-views').each(function () {\n\n        var _t2 = jQuery(this);\n\n        var aux_html = _t2.html();\n        var reg_findid = /{{views_(.*?)}}/g;\n\n        var aux = reg_findid.exec(aux_html);\n\n        if (aux && aux[0]) {\n\n          aux_html = aux_html.replace(aux[0], 0);\n          _t2.html(aux_html);\n        }\n\n      })\n    }\n\n\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_nav.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js":
/*!**********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"dzsap_generate_keyboard_controls\": () => (/* binding */ dzsap_generate_keyboard_controls),\n/* harmony export */   \"dzsap_keyboardSetup\": () => (/* binding */ dzsap_keyboardSetup),\n/* harmony export */   \"handle_keypresses\": () => (/* binding */ handle_keypresses)\n/* harmony export */ });\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n\n\nconst dzsap_generate_keyboard_controls = function () {\n  let keyboard_controls = {\n    'play_trigger_step_back': 'off'\n    , 'step_back_amount': '5'\n    , 'step_back': '37'\n    , 'step_forward': '39'\n    , 'sync_players_goto_next': ''\n    , 'sync_players_goto_prev': ''\n    , 'pause_play': '32'\n    , 'show_tooltips': 'off'\n  }\n\n\n  const $keyboardControlsInfo = jQuery(_configs_constants__WEBPACK_IMPORTED_MODULE_0__.DZSAP_SCRIPT_SELECTOR_KEYBOARD);\n  if ($keyboardControlsInfo.length) {\n    window.dzsap_keyboard_controls = JSON.parse($keyboardControlsInfo.html());\n  }\n\n  if (window.dzsap_keyboard_controls) {\n    keyboard_controls = jQuery.extend(keyboard_controls, window.dzsap_keyboard_controls);\n  }\n\n  keyboard_controls.step_back_amount = Number(keyboard_controls.step_back_amount);\n\n\n  return keyboard_controls;\n};\n\n\nfunction handle_keypresses(e) {\n\n  if (window.dzsap_isTextFieldFocused) {\n    return;\n  }\n\n\n  function isKeyPressed(checkKeyCode) {\n    let isKeyPressed = false;\n    if (checkKeyCode.indexOf('ctrl+') > -1) {\n      if (e.ctrlKey) {\n        checkKeyCode = checkKeyCode.replace('ctrl+', '');\n        if (e.keyCode === Number(checkKeyCode)) {\n          isKeyPressed = true;\n        }\n      }\n    } else {\n      if (e.keyCode === Number(checkKeyCode)) {\n        isKeyPressed = true;\n      }\n    }\n    return isKeyPressed;\n  }\n\n  var $ = jQuery;\n\n  const keyboard_controls = $.extend({}, dzsap_generate_keyboard_controls());\n\n\n  if (dzsap_currplayer_focused && dzsap_currplayer_focused.api_pause_media) {\n\n    if (isKeyPressed(keyboard_controls.pause_play)) {\n      if (!$(dzsap_currplayer_focused).hasClass('comments-writer-active')) {\n        if ($(dzsap_currplayer_focused).hasClass('is-playing')) {\n          dzsap_currplayer_focused.api_pause_media();\n        } else {\n          dzsap_currplayer_focused.api_play_media();\n        }\n\n        if (window.dzsap_mouseover) {\n          e.preventDefault();\n          return false;\n        }\n      }\n    }\n\n    if (isKeyPressed(keyboard_controls.step_back)) {\n      dzsap_currplayer_focused.api_step_back(keyboard_controls.step_back_amount);\n    }\n\n    if (isKeyPressed(keyboard_controls.step_forward)) {\n      dzsap_currplayer_focused.api_step_forward(keyboard_controls.step_back_amount);\n    }\n\n    if (isKeyPressed(keyboard_controls.sync_players_goto_next)) {\n      dzsap_currplayer_focused.api_sync_players_goto_next();\n    }\n\n\n    if (isKeyPressed(keyboard_controls.sync_players_goto_prev)) {\n      dzsap_currplayer_focused.api_sync_players_goto_prev();\n    }\n\n\n  }\n}\n\n\n/**\n * called in singleton\n */\nconst dzsap_keyboardSetup = () => {\n\n  let $ = jQuery;\n\n  window.dzsap_isTextFieldFocused = false;\n\n  $(document).off('keydown.dzsapkeyup');\n  $(document).on('keydown.dzsapkeyup', handle_keypresses);\n\n\n  $(document).on('focus blur', 'textarea,input', function (e) {\n\n    if (e.type == 'focusin' || e.type == 'focus') {\n\n      window.dzsap_isTextFieldFocused = true;\n    }\n    if (e.type == 'focusout' || e.type == 'blur') {\n\n      window.dzsap_isTextFieldFocused = false;\n    }\n  });\n\n\n  $(document).on('keydown blur', '.zoomsounds-search-field', function (e) {\n    const _t = $(e.currentTarget);\n\n    setTimeout(function () {\n\n      if (_t) {\n        let $audioGallery = $('.audiogallery').eq(0);\n        if (_t.attr('data-target')) {\n          $audioGallery = $(_t.attr('data-target'));\n        }\n        if ($audioGallery.get(0) && $audioGallery.get(0).api_filter) {\n          $audioGallery.get(0).api_filter('title', _t.val());\n        }\n      }\n    }, 100);\n\n  });\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js?");

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/audioplaylist.sourcepack.js");
/******/ 	
/******/ })()
;