/*
 * 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/audioplayer.sourcepack.js":
/*!***************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/audioplayer.sourcepack.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__ = __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_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 _jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./jsinc/media/_media_functions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_media_functions.js\");\n/* harmony import */ var _jsinc_media_onePlayer_changeMedia__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jsinc/media/_onePlayer_changeMedia */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_onePlayer_changeMedia.js\");\n/* harmony import */ var _jsinc_dzsap_time_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jsinc/_dzsap_time_model */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_time_model.js\");\n/* harmony import */ var _jsinc_dzsap_ajax__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./jsinc/_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n/* harmony import */ var _configs_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./configs/_constants */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_constants.js\");\n/* harmony import */ var _jsinc_helper_classes_ClassMetaParts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./jsinc/helper-classes/_ClassMetaParts */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/helper-classes/_ClassMetaParts.js\");\n/* harmony import */ var _jsinc_components_comments__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./jsinc/components/_comments */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_comments.js\");\n/* harmony import */ var _jsinc_dzsap_svgs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./jsinc/_dzsap_svgs */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js\");\n/* harmony import */ var _jsinc_dzsap_misc__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./jsinc/_dzsap_misc */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_misc.js\");\n/* harmony import */ var _jsinc_components_structure__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./jsinc/components/_structure */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_structure.js\");\n/* harmony import */ var _jsinc_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./jsinc/wave-render/_wave-render-functions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/wave-render/_wave-render-functions.js\");\n/* harmony import */ var _configs_settingsPlayer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./configs/_settingsPlayer */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlayer.js\");\n/* harmony import */ var _jsinc_player_player_one_time_setups__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./jsinc/player/_player-one-time-setups */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player-one-time-setups.js\");\n/* harmony import */ var _jsinc_player_player_keyboard__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./jsinc/player/_player_keyboard */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_keyboard.js\");\n/* harmony import */ var _jsinc_player_features_zoomsounds_radio_features__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./jsinc/player/features/_zoomsounds-radio-features */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/features/_zoomsounds-radio-features.js\");\n/* harmony import */ var _jsinc_player_player_scrubModeWave_spectrum__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./jsinc/player/_player_scrubModeWave_spectrum */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave_spectrum.js\");\n/* harmony import */ var _jsinc_player_player_commentsSelector__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./jsinc/player/_player_commentsSelector */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_commentsSelector.js\");\n/* harmony import */ var _jsinc_player_player_setupMiscButtons__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./jsinc/player/_player_setupMiscButtons */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_setupMiscButtons.js\");\n/* harmony import */ var _jsinc_player_player_touchFunctionality__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./jsinc/player/_player_touchFunctionality */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_touchFunctionality.js\");\n/* harmony import */ var _jsinc_player_player_menuState__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./jsinc/player/_player_menuState */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_menuState.js\");\n/* harmony import */ var _jsinc_player_player_nextPrevButtons__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./jsinc/player/_player_nextPrevButtons */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_nextPrevButtons.js\");\n/* harmony import */ var _jsinc_player_player_volume__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./jsinc/player/_player_volume */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_volume.js\");\n/* harmony import */ var _jsinc_player_player_feederFunctions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./jsinc/player/_player_feederFunctions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_feederFunctions.js\");\n/* harmony import */ var _jsinc_player_player_scrubbar__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./jsinc/player/_player_scrubbar */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubbar.js\");\n/* harmony import */ var _jsinc_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./jsinc/player/_player_scrubModeWave */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave.js\");\n/* harmony import */ var _jsinc_player_player_viewSetup__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./jsinc/player/_player_viewSetup */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_viewSetup.js\");\n/* harmony import */ var _jsinc_view_player_view_playerStructure__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./jsinc/view/player/_view_playerStructure */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_playerStructure.js\");\n/* harmony import */ var _jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./jsinc/player/_player_config */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_config.js\");\n/*\n * Author: Audio Player with Playlist\n * Website: https://digitalzoomstudio.net/\n * Portfolio: https://bit.ly/nM4R6u\n * Version: 6.41\n * */\n\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/** list for autoplay -- this is for the players */\n\nwindow.dzsap_list = [];\nvar dzsap_globalidind = 1;\nwindow.dzsap_inited = true;\nwindow.loading_multi_sharer = false;\nwindow.dzsap_player_interrupted_by_dzsap = null;\nwindow.dzsap_audio_ctx = null;\nwindow.dzsap__style = null;\nwindow.dzsap_sticktobottom_con = null;\nwindow.dzsap_self_options = {};\nwindow.dzsap_generating_pcm = false;\nwindow.dzsap_box_main_con = null;\nwindow.dzsap_lasto = null;\n/** list for sync -- used for next .. prev .. footer playlist */\n\nwindow.dzsap_syncList_players = [];\nwindow.dzsap_syncList_index = 0; // -- used for next .. prev .. footer playlist\n\nwindow.dzsap_base_url = '';\nwindow.dzsap_player_index = 0; // -- the player index on the page\n\n/** announcers can subscribe to this action */\n\nif (!window.dzsap_action_play_listeners) {\n  window.dzsap_action_play_listeners = [];\n}\n/**\n * @property {boolean} isAlreadyHasRealPcm\n * @property {boolean} isPcmRequiredToGenerate\n * @property {boolean} isMultiSharer\n * @property {string} identifier_pcm\n * @property {string} urlToAjaxHandler\n * @property {array<number>} pcmSource\n * @property {array<number>} last_lastArray\n * @property {object} last_lastArray\n * @property {AnalyserNode} spectrum_analyser\n * @property {HTMLElement} _sourcePlayer\n * @property {HTMLElement} $mediaNode_\n * @constructor\n * @public\n */\n\n\nvar DzsAudioPlayer = /*#__PURE__*/function () {\n  function DzsAudioPlayer(argThis, argOptions, $) {\n    _classCallCheck(this, DzsAudioPlayer);\n\n    this.argThis = argThis;\n    this.argOptions = Object.assign({}, argOptions);\n    this.$ = $;\n    this.cthis = null;\n    this.ajax_view_submitted = 'auto';\n    this.increment_views = 0;\n    this.the_player_id = '';\n    this.currIp = '127.0.0.1';\n    this.index_extrahtml_toloads = 0;\n    this.starrating_alreadyrated = -1;\n    this.data_source = '';\n    this.pcmSource = null;\n    this.urlToAjaxHandler = null;\n    this.playFrom = '';\n    this._actualPlayer = null;\n    this._audioplayerInner = null;\n    this._metaArtistCon = null;\n    this._conControls = null;\n    this._conPlayPauseCon = null;\n    this._apControls = null;\n    this._apControlsLeft = null;\n    this._apControlsRight = null;\n    this._commentsHolder = null;\n    this.$mediaNode_ = null;\n    this._scrubbar = null;\n    this._scrubbarbg_canvas = null;\n    this._scrubBgCanvasCtx = null;\n    this._scrubbarprog_canvas = null;\n    this.$feed_fakeButton = null;\n    this._sourcePlayer = null;\n    this.$theMedia = null;\n    this.$conPlayPause = null; // -- [selector] .con-playpause\n\n    this.$conControls = null;\n    this.$$scrubbProg = null;\n    this.$controlsVolume = null;\n    this.$currTime = null;\n    this.$parentPlaylist = null;\n    this.$totalTime = null;\n    this.$commentsWritter = null;\n    this.$commentsChildren = null;\n    this.$commentsSelector = null;\n    this.$embedButton = null;\n    /** a reflection object for triggering the player from outside */\n\n    this.$reflectionVisualObject = null;\n    this.audioType = 'normal';\n    this.audioTypeSelfHosted_streamType = '';\n    this.skinwave_mode = 'normal';\n    this.action_audio_comment = null; // -- set a outer ended function ( for example for tracking your analytics\n\n    this.commentPositionPerc = 0; // -- the % at which the comment will be placed\n\n    this.spectrum_audioContext = null;\n    this.spectrum_audioContextBufferSource = null;\n    this.spectrum_audioContext_buffer = null;\n    this.spectrum_mediaElementSource = null;\n    this.spectrum_analyser = null;\n    this.spectrum_gainNode = null;\n    this.isMultiSharer = false;\n    this.hasInitialPcmData = false;\n    this.lastArray = null;\n    this.last_lastArray = null;\n    this.isPlayerPlaying = false;\n    /** leaves a easing before ending play */\n\n    this.isPlayerPlayingEased = false;\n    this.isPlayerPlayingEasedInterval = null;\n    this.actualDataTypeOfMedia = 'audio'; // \"audio\" or\n\n    this.youtube_retryPlayTimeout = 0;\n    this.lastTimeInSeconds = 0;\n    this.inter_checkReady = 0;\n    this.cthisWidth = 0; // -- sticky player\n\n    this.isStickyPlayer = false;\n    this.$stickToBottomContainer = null; // -- pcm\n\n    this.uniqueId = '';\n    this.identifier_pcm = ''; // -- can be either player id or source if player id is not set\n\n    this.isAlreadyHasRealPcm = false;\n    this.isPcmTryingToGenerate = false;\n    this.isPlayPromised = false; // -- we are promising generating on meta load\n\n    this.isCanvasFirstDrawn = false; // -- the first draw on canvas\n\n    this.isPlayerLoaded = false;\n    this.original_real_mp3 = ''; // -- this is the original real mp3 for sainvg and identifying in the database\n    // -- theme specific\n\n    this.skin_minimal_canvasplay = null;\n    this.classFunctionalityInnerPlaylist = null;\n    this.feedEmbedCode = '';\n    this.youtube_currentId = 0;\n    this.youtube_isInited = false;\n    this.extraHtmlAreas = {\n      bottom: '',\n      afterArtist: '',\n      controlsLeft: '',\n      controlsRight: ''\n    }; // -- time vars\n\n    this.sample_time_start = 0;\n    this.sample_time_end = 0;\n    this.sample_time_total = 0;\n    this.playlist_inner_currNr = 0;\n    this.canvasWidth = null;\n    this.heightCanvas = null;\n    this.timeCurrent = 0; // -- *deprecated\n\n    this.timeModel = new _jsinc_dzsap_time_model__WEBPACK_IMPORTED_MODULE_4__.PlayerTime(this);\n    this.isSample = false;\n    this.isSafeToChangeTrack = false; // -- only after 2 seconds of init is it safe to change track\n\n    this.isMediaEnded = false;\n    /** is first setuped media */\n\n    this.isSetupedMedia = false;\n    this.isSentCacheTotalTime = false;\n    this.isPcmRequiredToGenerate = false;\n    this.radio_isGoingToUpdateSongName = false;\n    this.radio_isGoingToUpdateArtistName = false;\n    this.mediaProtectionStatus = 'unprotected';\n    this.classMetaParts = new _jsinc_helper_classes_ClassMetaParts__WEBPACK_IMPORTED_MODULE_7__._ClassMetaParts(this);\n    this.inter_isEnded = 0;\n    argThis.SelfInstance = this;\n    this.classInit();\n  }\n\n  _createClass(DzsAudioPlayer, [{\n    key: \"set_sourcePlayer\",\n    value: function set_sourcePlayer($arg) {\n      if ($arg) {\n        if ($arg.get(0) != this.cthis.get(0)) {\n          this._sourcePlayer = $arg;\n        }\n      } else {\n        this._sourcePlayer = $arg;\n      }\n    }\n  }, {\n    key: \"reinit_beforeChangeMedia\",\n    value: function reinit_beforeChangeMedia() {\n      this.hasInitialPcmData = false;\n      this.isPcmRequiredToGenerate = false;\n      this.isAlreadyHasRealPcm = false;\n      this.cthis.attr('data-pcm', '');\n    }\n  }, {\n    key: \"reinit_resetMetrics\",\n    value: function reinit_resetMetrics() {\n      this.isPlayerLoaded = false;\n    }\n  }, {\n    key: \"service_checkIfWeShouldUpdateTotalTime\",\n    value: function service_checkIfWeShouldUpdateTotalTime() {\n      (0,_jsinc_dzsap_ajax__WEBPACK_IMPORTED_MODULE_5__.ajax_submit_total_time)(this);\n    }\n  }, {\n    key: \"classInit\",\n    value: function classInit() {\n      var $ = this.$;\n      var o = this.argOptions;\n      var cthis = $(this.argThis);\n      var selfClass = this;\n      selfClass.cthis = cthis;\n      selfClass.initOptions = o;\n      selfClass.volume_lastVolume = 1;\n      selfClass.isScrubShowingCurrentTime = false;\n      selfClass.scrubbarWidth = 0;\n      selfClass.scrubbarProgX = 0;\n      selfClass.currTime_outerWidth = 0;\n      var cthisId = 'ap1';\n      var ww, th // -- controls width\n      ;\n      var isDestroyed = false,\n          isDestroyedForRebuffer = false,\n          media_isLoopActive = false // -- if loop_active the track will loop\n      ,\n          curr_time_first_set = false,\n          isListenersSetup = false;\n      var last_time_total = 0,\n          player_index_in_gallery = -1 // -- the player index in gallery\n      ;\n      var inter_60_secs_contor = 0,\n          inter_trigger_resize;\n      var data_station_main_url = '';\n      var is_under_400 = false; // resize thumb height\n\n      var skin_minimal_button_size = 0;\n      var action_audio_end = null,\n          action_audio_play = null,\n          action_audio_play2 = null,\n          action_audio_pause = null;\n      var isRenderingFrame = false,\n          isRenderingFrameInterval = null,\n          spectrum_fakeItMode = 'auto';\n      var draw_canvas_inter = 0;\n      window.dzsap_player_index++;\n      selfClass.timeModel.getSampleTimesFromDom();\n      init();\n\n      function init() {\n        if (cthis.hasClass('dzsap-inited')) {\n          return false;\n        }\n\n        selfClass.play_media_visual = play_media_visual;\n        selfClass.play_media = play_media;\n        selfClass.pause_media = pause_media;\n        selfClass.pause_media_visual = pause_media_visual;\n        selfClass.seek_to = seek_to;\n        selfClass.reinit = reinit;\n        selfClass.handle_end = media_handleEnd;\n        selfClass.init_loaded = init_loaded;\n        selfClass.scrubbar_reveal = scrubbar_reveal;\n        selfClass.calculate_dims_time = calculate_dims_time;\n        selfClass.check_multisharer = check_multisharer;\n        selfClass.setup_structure_scrub = setup_structure_scrub;\n        selfClass.setup_structure_sanitizers = setup_structure_sanitizers;\n\n        selfClass.destroy_cmedia = function () {\n          (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.destroy_cmedia)(selfClass);\n        };\n\n        selfClass.view_drawCurrentTime = view_drawCurrentTime;\n        selfClass.setupStructure_thumbnailCon = setupStructure_thumbnailCon;\n        selfClass.setup_pcm_random_for_now = view_wave_setupRandomPcm;\n        selfClass.handleResize = view_handleResize;\n\n        selfClass.destroy_media = function () {\n          (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.destroy_media)(selfClass, pause_media);\n        };\n\n        cthis.css({\n          'opacity': ''\n        });\n        cthis.addClass('dzsap-inited');\n        window.dzsap_player_index++;\n\n        if (o.parentgallery) {\n          selfClass.$parentPlaylist = o.parentgallery;\n        }\n\n        selfClass.keyboard_controls = (0,_jsinc_player_player_keyboard__WEBPACK_IMPORTED_MODULE_15__.dzsap_generate_keyboard_controls)();\n        (0,_jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__.configureAudioPlayerOptionsInitial)(cthis, o, selfClass);\n\n        if (o.loop == 'on') {\n          media_isLoopActive = true;\n        }\n\n        _jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__.player_detect_skinwave_mode.bind(selfClass)();\n\n        if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.dzsap_is_mobile)()) {\n          $('body').addClass('is-mobile');\n\n          if (o.mobile_delete === 'on') {\n            (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_delete)(selfClass);\n          } // -- disable fakeplayer on mobile for some reason\n\n\n          if (o.mobile_disable_fakeplayer === 'on') {\n            selfClass.cthis.attr('data-fakeplayer', '');\n          }\n        }\n\n        (0,_jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__.player_viewApplySkinWaveModes)(selfClass);\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.playerFunctions)(selfClass, 'detectIds');\n\n        if (cthis.attr('data-fakeplayer')) {\n          (0,_jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__.player_determineActualPlayer)(selfClass);\n        }\n\n        selfClass.cthis.addClass('scrubbar-type-' + o.scrubbar_type);\n        (0,_jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__.player_determineHtmlAreas)(selfClass); // -- syncPlayers build\n\n        if (window.dzsap_settings.syncPlayers_buildList === 'on') {\n          (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_syncPlayers_buildList)();\n        }\n\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_getPlayFromTime)(selfClass);\n        (0,_jsinc_player_player_config__WEBPACK_IMPORTED_MODULE_29__.player_adjustIdentifiers)(selfClass);\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_identifySource)(selfClass);\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_identifyTypes)(selfClass);\n\n        if (selfClass.audioType === 'youtube') {\n          window.dzsap_get_base_url();\n          var scriptUrl = window.dzsap_base_url ? window.dzsap_base_url + '/parts/youtube/dzsap-youtube-functions.js' : '';\n          (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.loadScriptIfItDoesNotExist)(scriptUrl, window.dzsap_youtube_functions_inited).then(function (resolveStr) {\n            window.dzsap_youtube_functions_init(selfClass);\n          });\n        }\n\n        selfClass.audioTypeSelfHosted_streamType = '';\n\n        if (selfClass.audioType === 'selfHosted') {\n          if (cthis.attr('data-streamtype') && cthis.attr('data-streamtype') !== 'off') {\n            selfClass.audioTypeSelfHosted_streamType = cthis.attr('data-streamtype');\n            data_station_main_url = selfClass.data_source;\n            cthis.addClass('is-radio-type');\n          } else {\n            selfClass.audioTypeSelfHosted_streamType = '';\n          }\n        } // -- no shoutcast autoupdate at the moment 2 3 4 5 6 7 8\n\n\n        if (selfClass.audioTypeSelfHosted_streamType === 'shoutcast') {// -- todo: we\n        } // -- we disable the function if audioplayer inited\n\n\n        if (cthis.hasClass('audioplayer')) {\n          return;\n        }\n\n        if (cthis.attr('id') !== undefined) {\n          cthisId = cthis.attr('id');\n        } else {\n          cthisId = 'ap' + dzsap_globalidind++;\n        }\n\n        selfClass.youtube_currentId = 'ytplayer_' + cthisId;\n        cthis.removeClass('audioplayer-tobe');\n        cthis.addClass('audioplayer');\n        view_drawScrubProgress();\n        setTimeout(function () {\n          view_drawScrubProgress();\n        }, 1000); // -- ios does not support volume controls so just let it die\n        // -- .. or autoplay FORCE STAFF\n\n        if (o.cueMedia === 'off') {\n          // -- cue is forcing autoplay on\n          cthis.addClass('cue-off');\n          o.autoplay = 'on';\n        } //====sound cloud INTEGRATION //\n\n\n        if (selfClass.audioType === 'soundcloud') {\n          (0,_jsinc_dzsap_misc__WEBPACK_IMPORTED_MODULE_10__.retrieve_soundcloud_url)(selfClass);\n        } // -- END soundcloud INTEGRATION//\n\n\n        (0,_jsinc_components_structure__WEBPACK_IMPORTED_MODULE_11__.setup_structure)(selfClass, {}); //  -- inside init()\n        // --   trying to access the youtube api with ios did not work\n\n        if (o.scrubbar_type === 'wave' && (selfClass.audioType === 'selfHosted' || selfClass.audioType === 'soundcloud' || selfClass.audioType === 'fake') && o.skinwave_comments_enable === 'on') {\n          (0,_jsinc_components_comments__WEBPACK_IMPORTED_MODULE_8__.comments_setupCommentsInitial)(selfClass);\n        }\n\n        if (o.autoplay === 'on' && o.cueMedia === 'on') {\n          selfClass.increment_views = 1;\n        } // -- soundcloud will setupmedia when api done\n\n\n        if (o.cueMedia === 'on' && selfClass.audioType !== 'soundcloud') {\n          if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)() || (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n            cthis.find('.playbtn').on('click', play_media);\n          }\n\n          if (selfClass.data_source && selfClass.data_source.indexOf('{{generatenonce}}') > -1) {\n            selfClass.mediaProtectionStatus = 'fetchingProtection';\n            (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_service_getSourceProtection)(selfClass).then(function (response) {\n              if (response) {\n                cthis.attr('data-source', response);\n                setup_media({\n                  'called_from': 'nonce generated',\n                  'newSource': response\n                });\n                selfClass.mediaProtectionStatus = 'protectedMode';\n              }\n            });\n          } else {\n            var isGoingToSetupMediaNow = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_isGoingToSetupMediaNow)(selfClass);\n\n            if (selfClass.audioType === 'selfHosted') {\n              (0,_jsinc_player_features_zoomsounds_radio_features__WEBPACK_IMPORTED_MODULE_16__.checkIfNeedsSongNameRefresh)(selfClass);\n            }\n\n            if (isGoingToSetupMediaNow) {\n              setup_media({\n                'called_from': 'normal setup media .. --- icecast must wait'\n              });\n            }\n          }\n        } else {\n          cthis.find('.playbtn').on('click', handleClickForSetupMedia);\n          cthis.find('.scrubbar').on('click', handleClickForSetupMedia);\n          view_handleResize(null, {\n            called_from: 'init'\n          });\n        } // -- we call the api functions here\n\n\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_determineStickToBottomContainer)(selfClass);\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_stickToBottomContainerDetermineClasses)(selfClass);\n        selfClass.timeModel.initObjects(); // -- api calls\n\n        selfClass.setup_media = setup_media;\n        cthis.get(0).classInstance = selfClass;\n        cthis.get(0).api_init_loaded = init_loaded; // -- force resize event\n\n        cthis.get(0).api_destroy = destroy_it; // -- destroy the player and the listeners\n\n        cthis.get(0).api_play = play_media; // -- play the media\n\n        cthis.get(0).api_set_volume = function (arg, pargs) {\n          (0,_jsinc_player_player_volume__WEBPACK_IMPORTED_MODULE_23__.volume_setVolume)(selfClass, arg, pargs);\n        }; // -- set a volume\n\n\n        cthis.get(0).api_get_last_vol = volume_getLast; // -- play the media\n\n        cthis.get(0).api_get_source = function () {\n          return selfClass.data_source;\n        }; // -- play the media\n\n\n        cthis.get(0).api_click_for_setup_media = handleClickForSetupMedia; // -- play the media\n\n        cthis.get(0).api_handleResize = view_handleResize; // -- force resize event\n\n        cthis.get(0).api_set_playback_speed = set_playback_speed; // -- set the playback speed, only works for local hosted mp3\n\n        cthis.get(0).api_change_media = (0,_jsinc_media_onePlayer_changeMedia__WEBPACK_IMPORTED_MODULE_3__.media_changeMedia)(selfClass, $); // -- change the media file from the API\n\n        cthis.get(0).api_seek_to_perc = seek_to_perc; // -- seek to percentage ( for example seek to 0.5 skips to half of the song )\n\n        cthis.get(0).api_seek_to = seek_to; // -- seek to percentage ( for example seek to 0.5 skips to half of the song )\n\n        cthis.get(0).api_seek_to_visual = seek_to_visual; // -- seek to perchange but only visually ( does not actually skip to that ) , good for a fake player\n\n        cthis.get(0).api_visual_set_volume = function (arg, pargs) {\n          (0,_jsinc_player_player_volume__WEBPACK_IMPORTED_MODULE_23__.volume_setOnlyVisual)(selfClass, arg, pargs);\n        }; // -- set a volume\n\n\n        cthis.get(0).api_destroy_listeners = destroy_listeners; // -- set a volume\n\n        cthis.get(0).api_pause_media = pause_media; // -- pause the media\n\n        cthis.get(0).api_get_media_isLoopActive = function () {\n          return media_isLoopActive;\n        }; // -- pause the media\n\n\n        cthis.get(0).api_media_toggleLoop = media_toggleLoop; // -- pause the media\n\n        cthis.get(0).api_pause_media_visual = pause_media_visual; // -- pause the media, but only visually\n\n        cthis.get(0).api_play_media = play_media; // -- play the media\n\n        cthis.get(0).api_play_media_visual = play_media_visual; // -- play the media, but only visually\n\n        cthis.get(0).api_handle_end = media_handleEnd; // -- play the media, but only visually\n\n        cthis.get(0).api_change_visual_target = change_visual_target; // -- play the media, but only visually\n\n        cthis.get(0).api_change_design_color_highlight = view_updateColorHighlight; // -- play the media, but only visually\n\n        cthis.get(0).api_draw_scrub_prog = view_drawScrubProgress; // -- render the scrub progress\n\n        cthis.get(0).api_draw_curr_time = view_drawCurrentTime; // -- render the current time\n\n        cthis.get(0).api_get_times = selfClass.timeModel.refreshTimes; // -- refresh the current time\n\n        cthis.get(0).api_check_time = handleEnterFrame; // -- do actions required in the current frame\n\n        cthis.get(0).api_sync_players_goto_next = function () {\n          (0,_jsinc_player_player_nextPrevButtons__WEBPACK_IMPORTED_MODULE_22__.syncPlayers_gotoNext)(selfClass);\n        }; // -- in the sync playlist, go to the next song\n\n\n        cthis.get(0).api_sync_players_goto_prev = function () {\n          (0,_jsinc_player_player_nextPrevButtons__WEBPACK_IMPORTED_MODULE_22__.syncPlayers_gotoPrev)(selfClass);\n        }; // -- in the sync playlist, go to the previous song\n\n\n        cthis.get(0).api_regenerate_playerlist_inner = function () {\n          // -- call with window.dzsap_generate_list_for_sync_players({'force_regenerate': true})\n          if (selfClass.classFunctionalityInnerPlaylist) {\n            selfClass.classFunctionalityInnerPlaylist.playlistInner_setupStructureInPlayer();\n          }\n        }; // -- regenerate the playlist innter\n\n\n        cthis.get(0).api_step_back = function (nrSeconds) {\n          if (!nrSeconds) {\n            nrSeconds = selfClass.keyboard_controls.step_back_amount;\n          }\n\n          seek_to(selfClass.timeCurrent - nrSeconds);\n        };\n\n        cthis.get(0).api_step_forward = function (nrSeconds) {\n          if (nrSeconds) {} else {\n            nrSeconds = selfClass.keyboard_controls.step_back_amount;\n          }\n\n          seek_to(selfClass.timeCurrent + nrSeconds);\n        }; // --\n\n        /**\n         *\n         * @param {number} argSpeed  - 0 to 1\n         */\n\n\n        cthis.get(0).api_playback_speed = function (argSpeed) {\n          if (selfClass.$mediaNode_ && selfClass.$mediaNode_.playbackRate) {\n            selfClass.$mediaNode_.playbackRate = argSpeed;\n          }\n        }; // -- slow to 2/3 of the current song\n\n\n        cthis.get(0).api_set_action_audio_play = function (arg) {\n          action_audio_play = arg;\n        }; // -- set action on audio play\n\n\n        cthis.get(0).api_set_action_audio_pause = function (arg) {\n          action_audio_pause = arg;\n        }; // -- set action on audio pause\n\n\n        cthis.get(0).api_set_action_audio_end = function (arg) {\n          action_audio_end = arg;\n          cthis.data('has-action-end', 'on');\n        }; // -- set action on audio end\n\n\n        cthis.get(0).api_set_action_audio_comment = function (arg) {\n          selfClass.action_audio_comment = arg;\n        }; // -- set the function to call on audio song comment\n\n\n        cthis.get(0).api_try_to_submit_view = service_submitView; // -- try to submit a new play analytic\n\n        if (o.action_audio_play) {\n          action_audio_play = o.action_audio_play;\n        }\n\n        if (o.action_audio_pause) {\n          action_audio_pause = o.action_audio_pause;\n        }\n\n        if (o.action_audio_play2) {\n          action_audio_play2 = o.action_audio_play2;\n        }\n\n        if (o.action_audio_end) {\n          action_audio_end = o.action_audio_end;\n          cthis.data('has-action-end', 'on');\n        }\n\n        handleEnterFrame({\n          'fire_only_once': true\n        });\n\n        if (o.design_skin === 'skin-minimal') {\n          handleEnterFrame({\n            'fire_only_once': true\n          });\n        }\n\n        (0,_jsinc_player_player_setupMiscButtons__WEBPACK_IMPORTED_MODULE_19__.player_setupMiscButtons)(selfClass, $, seek_to);\n        cthis.on('click', '.dzsap-loop-button', handle_mouse);\n        cthis.on('mouseenter', handle_mouse);\n        cthis.on('mouseleave', handle_mouse);\n        selfClass.$conPlayPause.on('click', handleClick_playPause);\n        $(window).on('resize.dzsap', view_handleResize);\n        view_handleResize(null, {\n          called_from: 'init'\n        });\n        (0,_jsinc_player_player_touchFunctionality__WEBPACK_IMPORTED_MODULE_20__.dzsap_player_touchFunctionalitySetup)(selfClass, seek_to_perc, $);\n\n        if (o.skinwave_comments_mode_outer_selector) {\n          (0,_jsinc_player_player_commentsSelector__WEBPACK_IMPORTED_MODULE_18__.player_commentsSelectorInit)(selfClass, $, cthis, o);\n        }\n\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.waitForScriptToBeAvailableThenExecute)(window.dzsap_part_starRatings_loaded, function () {\n          window.dzsap_init_starRatings_from_dzsap(selfClass);\n        });\n        setTimeout(function () {\n          view_handleResize(null, {\n            called_from: 'init_timeout'\n          });\n\n          if (o.skinwave_wave_mode === 'canvas') {\n            calculate_dims_time();\n            setTimeout(function () {\n              calculate_dims_time();\n            }, 100);\n          }\n        }, 100);\n        (0,_jsinc_player_player_menuState__WEBPACK_IMPORTED_MODULE_21__.player_menuStateSetup)(cthis, o);\n        (0,_jsinc_player_player_nextPrevButtons__WEBPACK_IMPORTED_MODULE_22__.player_nextPrevButtonsSetup)(selfClass, cthis, o);\n      }\n\n      function calculate_dims_time() {\n        var reflection_size = parseFloat(o.skinwave_wave_mode_canvas_reflection_size);\n        reflection_size = 1 - reflection_size;\n\n        var scrubbarh = selfClass._scrubbar.height();\n\n        if (selfClass.initOptions.scrubbar_type === 'wave') {\n          if (selfClass.skinwave_mode === 'small') {\n            scrubbarh = 60;\n          }\n\n          if (selfClass._commentsHolder) {\n            if (reflection_size === 0) {\n              selfClass._commentsHolder.css('top', selfClass._scrubbar.offset().top - cthis.offset().top + scrubbarh * reflection_size - selfClass._commentsHolder.height());\n            } else {\n              selfClass._commentsHolder.css('top', selfClass._scrubbar.offset().top - selfClass._scrubbar.parent().offset().top + scrubbarh * reflection_size);\n\n              selfClass.$commentsWritter.css('top', selfClass._scrubbar.offset().top - selfClass._scrubbar.parent().offset().top + scrubbarh * reflection_size);\n            }\n          }\n\n          if (o.design_skin === 'skin-wave') {\n            if (selfClass.$currTime) {\n              selfClass.$currTime.css('top', scrubbarh * reflection_size - selfClass.$currTime.outerHeight());\n            }\n\n            if (selfClass.$totalTime) {\n              selfClass.$totalTime.css('top', scrubbarh * reflection_size - selfClass.$totalTime.outerHeight());\n            }\n          }\n        }\n\n        cthis.attr('data-reflection-size', reflection_size);\n      }\n      /**\n       * change the visual target, the main is the main player selfClass.isPlayerPlaying and the visual target is the player which is a visual representation of this\n       * @param arg\n       * @param pargs\n       */\n\n\n      function change_visual_target(arg, pargs) {\n        var margs = {};\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        if (selfClass._sourcePlayer && selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).api_pause_media_visual) {\n          selfClass._sourcePlayer.get(0).api_pause_media_visual({\n            'call_from': 'change_visual_target'\n          });\n        }\n\n        selfClass.set_sourcePlayer(arg);\n\n        var $sourcePlayer_ = selfClass._sourcePlayer.get(0);\n\n        if (selfClass.isPlayerPlaying) {\n          if (selfClass._sourcePlayer && $sourcePlayer_ && $sourcePlayer_.api_play_media_visual) {\n            $sourcePlayer_.api_play_media_visual();\n          }\n        }\n\n        if ($sourcePlayer_ && $sourcePlayer_.api_draw_curr_time) {\n          $sourcePlayer_.api_set_timeVisualCurrent(selfClass.timeCurrent);\n          $sourcePlayer_.api_get_times({\n            'call_from': ' change visual target .. in api '\n          });\n          $sourcePlayer_.api_check_time({\n            'fire_only_once': true\n          });\n          $sourcePlayer_.api_draw_curr_time();\n          $sourcePlayer_.api_draw_scrub_prog();\n        }\n\n        setTimeout(function () {\n          if ($sourcePlayer_ && $sourcePlayer_.api_draw_curr_time) {\n            $sourcePlayer_.api_get_times();\n            $sourcePlayer_.api_check_time({\n              'fire_only_once': true\n            });\n            $sourcePlayer_.api_draw_curr_time();\n            $sourcePlayer_.api_draw_scrub_prog();\n          }\n        }, 800);\n      }\n\n      function view_updateColorHighlight(arg) {\n        o.design_wave_color_progress = arg;\n\n        if (o.skinwave_wave_mode === 'canvas') {\n          (0,_jsinc_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_12__.view_drawCanvases)(selfClass, cthis.attr('data-pcm'), 'canvas_change_pcm');\n        }\n      }\n      /**\n       * called in init_loaded()\n       */\n\n\n      function reinit() {\n        if (selfClass.audioType === 'normal' || selfClass.audioType === 'detect' || selfClass.audioType === 'audio') {\n          selfClass.audioType = 'selfHosted';\n        }\n      }\n\n      function destroy_listeners() {\n        if (isDestroyed) {\n          return false;\n        }\n\n        isRenderingFrame = false;\n      }\n\n      function destroy_it() {\n        if (isDestroyed) {\n          return false;\n        }\n\n        if (selfClass.isPlayerPlaying) {\n          pause_media();\n        }\n\n        $(window).off('resize.dzsap');\n        cthis.remove();\n        cthis = null;\n        isDestroyed = true;\n      }\n\n      function handleClickForSetupMedia(e, pargs) {\n        var margs = {\n          'do_not_autoplay': false\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        cthis.find('.playbtn').unbind('click', handleClickForSetupMedia);\n        cthis.find('.scrubbar').unbind('click', handleClickForSetupMedia);\n        setup_media(margs);\n\n        if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)() || (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n          play_media({\n            'called_from': 'click_for_setup_media'\n          });\n        }\n      }\n\n      function init_checkIfReady(pargs) {\n        var margs = {\n          'do_not_autoplay': false\n        };\n\n        if (selfClass._actualPlayer && (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n          return false;\n        }\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        if (selfClass.audioType === 'youtube') {\n          init_loaded(margs);\n        } else {\n          if (typeof selfClass.$mediaNode_ !== 'undefined' && selfClass.$mediaNode_) {\n            if (selfClass.$mediaNode_.nodeName !== \"AUDIO\" || o.type === 'shoutcast') {\n              init_loaded(margs);\n            } else {\n              if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_safari)()) {\n                if (selfClass.$mediaNode_.readyState >= 1) {\n                  if (selfClass.isPlayerLoaded === false) {}\n\n                  init_loaded(margs);\n                  clearInterval(selfClass.inter_checkReady);\n\n                  if (o.action_audio_loaded_metadata) {\n                    o.action_audio_loaded_metadata(cthis);\n                  }\n                }\n              } else {\n                if (selfClass.$mediaNode_.readyState >= 2) {\n                  if (selfClass.isPlayerLoaded === false) {}\n\n                  init_loaded(margs);\n                  clearInterval(selfClass.inter_checkReady);\n\n                  if (o.action_audio_loaded_metadata) {\n                    o.action_audio_loaded_metadata(cthis);\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n\n      function scrubbar_reveal() {\n        setTimeout(function () {\n          selfClass.cthis.addClass('scrubbar-loaded');\n        }, 1000);\n      }\n\n      function setupStructure_thumbnailCon() {\n        (0,_jsinc_view_player_view_playerStructure__WEBPACK_IMPORTED_MODULE_28__.player_setupStructure_thumbnailCon)(selfClass);\n      }\n\n      function setup_structure_sanitizers() {\n        if (cthis.hasClass('zoomsounds-wrapper-bg-bellow') && cthis.find('.dzsap-wrapper-buts').length === 0) {\n          cthis.append('<div class=\"temp-wrapper\"></div>');\n          cthis.find('.temp-wrapper').append(selfClass.extraHtmlAreas.controlsRight);\n          cthis.find('.temp-wrapper').children('*:not(.dzsap-wrapper-but)').remove();\n          cthis.find('.temp-wrapper > .dzsap-wrapper-but').unwrap();\n          cthis.find('.dzsap-wrapper-but').each(function () {\n            var aux = $(this).html();\n            aux = aux.replace('{{heart_svg}}', '\\t&hearts;');\n            aux = aux.replace('{{svg_share_icon}}', _jsinc_dzsap_svgs__WEBPACK_IMPORTED_MODULE_9__.svg_share_icon);\n\n            if ($(this).get(0) && $(this).get(0).outerHTML.indexOf('dzsap-multisharer-but') > -1) {\n              selfClass.isMultiSharer = true;\n            }\n\n            $(this).html(aux);\n          }).wrapAll('<div class=\"dzsap-wrapper-buts\"></div>');\n        }\n\n        if (o.design_skin === 'skin-customcontrols') {\n          cthis.html(String(cthis.html()).replace('{{svg_play_icon}}', _jsinc_dzsap_svgs__WEBPACK_IMPORTED_MODULE_9__.playbtn_svg));\n          cthis.html(String(cthis.html()).replace('{{svg_pause_icon}}', _jsinc_dzsap_svgs__WEBPACK_IMPORTED_MODULE_9__.pausebtn_svg));\n        }\n      }\n      /**\n       * called if we have .dzsap-multisharer-but in html\n       */\n\n\n      function check_multisharer() {\n        // -- we setup a box main here as a child of body\n        selfClass.cthis.find('.dzsap-multisharer-but').data('cthis', cthis);\n        selfClass.cthis.data('embed_code', selfClass.feedEmbedCode);\n      }\n\n      function view_wave_setupRandomPcm(pargs) {\n        var margs = {\n          call_from: 'default'\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        var default_pcm = [];\n\n        if (!(o.pcm_data_try_to_generate === 'on' && o.pcm_data_try_to_generate_wait_for_real_pcm === 'on')) {\n          for (var i3 = 0; i3 < 200; i3++) {\n            default_pcm[i3] = Number(Math.random()).toFixed(2);\n          }\n\n          default_pcm = JSON.stringify(default_pcm);\n          cthis.addClass('rnd-pcm-for-now');\n          cthis.attr('data-pcm', default_pcm);\n        }\n\n        (0,_jsinc_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_26__.scrubbar_modeWave_setupCanvas)({}, selfClass);\n      }\n      /**\n       * called from setup_structure\n       */\n\n\n      function setup_structure_scrub() {\n        if (o.skinwave_enableSpectrum === 'on') {\n          // -- spectrum ON\n          (0,_jsinc_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_26__.scrubbar_modeWave_setupCanvas)({}, selfClass); // -- old spectrum code\n\n          selfClass._scrubbarbg_canvas = selfClass.cthis.find('.scrub-bg-img').eq(0);\n          selfClass._scrubBgCanvasCtx = selfClass._scrubbarbg_canvas.get(0).getContext(\"2d\");\n        } else {\n          if (o.skinwave_wave_mode === 'canvas') {\n            if (cthis.attr('data-pcm')) {\n              (0,_jsinc_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_26__.scrubbar_modeWave_setupCanvas)({}, selfClass);\n            } else {\n              view_wave_setupRandomPcm();\n            }\n          }\n        }\n      }\n\n      ;\n      /**\n       * order -> init, setup_media, init_loaded\n       * called from init() if not icecast or soundcloud\n       * @param pargs\n       * @returns {boolean}\n       */\n\n      function setup_media(pargs) {\n        (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.mediaSetup)(selfClass, pargs, init_loaded, pause_media, init_checkIfReady, handleClick_playPause);\n      }\n\n      function setup_listeners() {\n        if (isListenersSetup) {\n          return false;\n        }\n\n        isListenersSetup = true; // -- adding scrubbar listeners\n\n        selfClass._scrubbar.unbind('mousemove');\n\n        selfClass._scrubbar.unbind('mouseleave');\n\n        selfClass._scrubbar.unbind('click');\n\n        (0,_jsinc_player_player_scrubbar__WEBPACK_IMPORTED_MODULE_25__.player_scrubbarSetup)(selfClass, $, o, view_drawCurrentTime, viewCalculateScrubbarWidth, play_media, seek_to);\n        (0,_jsinc_player_player_volume__WEBPACK_IMPORTED_MODULE_23__.player_volumeSetup)(selfClass, selfClass.volume_lastVolume, $, o);\n        cthis.find('.playbtn').unbind('click');\n        setTimeout(view_handleResize, 300);\n        setTimeout(view_handleResize, 2000);\n\n        if (o.settings_trigger_resize > 0) {\n          inter_trigger_resize = setInterval(view_handleResize, o.settings_trigger_resize);\n        }\n\n        cthis.addClass('listeners-setuped');\n        return false;\n      }\n\n      function volume_getLast() {\n        return selfClass.volume_lastVolume;\n      }\n      /**\n       * init laoded\n       * @param pargs\n       */\n\n\n      function init_loaded(pargs) {\n        if (cthis.hasClass('dzsap-loaded')) {\n          return;\n        }\n\n        var margs = {\n          'do_not_autoplay': false,\n          'call_from': 'init'\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        setTimeout(function () {\n          selfClass.isSafeToChangeTrack = true;\n        }, 5000);\n        clearInterval(selfClass.inter_checkReady);\n        clearTimeout(selfClass.inter_checkReady);\n        setup_listeners();\n        setTimeout(function () {\n          if (selfClass.$currTime && selfClass.$currTime.outerWidth() > 0) {\n            selfClass.currTime_outerWidth = selfClass.$currTime.outerWidth();\n          }\n        }, 1000); // -- this comes from cue off, no pcm data\n\n        if (selfClass.isPcmRequiredToGenerate) {\n          (0,_jsinc_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_12__.scrubModeWave__checkIfWeShouldTryToGetPcm)(selfClass, {\n            called_from: 'init_loaded()'\n          });\n        }\n\n        if (selfClass.audioType !== 'fake' && margs.call_from !== 'force_reload_change_media') {\n          if (o.settings_exclude_from_list !== 'on' && dzsap_list && dzsap_list.indexOf(cthis) === -1) {\n            if (selfClass._actualPlayer === null) {\n              dzsap_list.push(cthis);\n            }\n          }\n\n          if (o.type_audio_stop_buffer_on_unfocus === 'on') {\n            cthis.data('type_audio_stop_buffer_on_unfocus', 'on');\n\n            cthis.get(0).api_destroy_for_rebuffer = function () {\n              if (o.type === 'audio') {\n                selfClass.playFrom = selfClass.$mediaNode_.currentTime;\n              }\n\n              (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.destroy_media)(selfClass, pause_media);\n              isDestroyedForRebuffer = true;\n            };\n          }\n        }\n\n        if (selfClass.ajax_view_submitted === 'auto') {\n          setTimeout(function () {\n            if (selfClass.ajax_view_submitted === 'auto') {\n              selfClass.ajax_view_submitted = 'off';\n            }\n          }, 1000);\n        }\n\n        selfClass.isPlayerLoaded = true;\n\n        if (selfClass.data_source !== _configs_constants__WEBPACK_IMPORTED_MODULE_6__.DZSAP_PLAYER_TYPE_FOR_ACCEPTING_FEED) {\n          cthis.addClass(_configs_constants__WEBPACK_IMPORTED_MODULE_6__.DZSAP_PLAYER_CLASS_LOADED);\n\n          if (selfClass.isStickyPlayer) {\n            if (window['dzsap_stickyPlayer_show']) {\n              setTimeout(function () {\n                dzsap_stickyPlayer_show(selfClass);\n              }, 500);\n            }\n          }\n        }\n\n        (0,_jsinc_player_player_volume__WEBPACK_IMPORTED_MODULE_23__.volume_setVolume)(selfClass, (0,_jsinc_player_player_volume__WEBPACK_IMPORTED_MODULE_23__.getDefaultVolume)(o, selfClass), {\n          call_from: \"from_init_loaded\"\n        });\n\n        if ((0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.isInt)(selfClass.playFrom)) {\n          seek_to(selfClass.playFrom, {\n            call_from: 'from_playfrom'\n          });\n        }\n\n        if (selfClass.playFrom === _configs_constants__WEBPACK_IMPORTED_MODULE_6__.DZSAP_PLAYER_ATTR_PLAY_FROM_LAST_POS) {\n          // -- here we save last position\n          if (typeof Storage !== 'undefined') {\n            setTimeout(function () {\n              selfClass.playFrom_ready = true;\n            });\n\n            if (typeof localStorage['dzsap_' + selfClass.the_player_id + '_lastpos'] !== 'undefined') {\n              seek_to(localStorage['dzsap_' + selfClass.the_player_id + '_lastpos'], {\n                'call_from': 'last_pos'\n              });\n            }\n          }\n        }\n\n        if (margs.do_not_autoplay !== true) {\n          if (o.autoplay === 'on' && o.cueMedia === 'on') {\n            play_media({\n              'called_from': 'do not autoplay not true ( init_loaded() ) '\n            });\n          }\n        }\n\n        if (selfClass.$mediaNode_ && selfClass.$mediaNode_.duration) {\n          (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_view_addMetaLoaded)(selfClass);\n        }\n\n        reinit();\n        handleEnterFrame({\n          'fire_only_once': false\n        });\n\n        if (o.autoplay === 'off') {\n          isRenderingFrame = false;\n        }\n\n        cthis.addClass('init-loaded');\n        setTimeout(function () {\n          selfClass.timeModel.refreshTimes({\n            'call_from': 'set timeout 500'\n          });\n          handleEnterFrame({\n            'fire_only_once': true\n          });\n          cthis.find('.wave-download').on('click', handle_mouse);\n        }, 500);\n        setTimeout(function () {\n          selfClass.timeModel.refreshTimes({\n            'call_from': 'set timeout 1000'\n          });\n          handleEnterFrame({\n            'fire_only_once': true\n          });\n        }, 1000);\n\n        if (inter_60_secs_contor === 0 && o.action_video_contor_60secs) {\n          inter_60_secs_contor = setInterval(count_60secs, 30000);\n        }\n      }\n\n      function count_60secs() {\n        if (o.action_video_contor_60secs && cthis.hasClass('is-playing')) {\n          o.action_video_contor_60secs(cthis, '');\n        }\n      }\n      /**\n       *\n       * @param {boolean} isGoingToActivate\n       */\n\n\n      function media_toggleLoop(isGoingToActivate) {\n        media_isLoopActive = isGoingToActivate;\n      }\n\n      function handle_mouse(e) {\n        var $t = $(this);\n\n        if (e.type === 'click') {\n          if ($t.hasClass('wave-download')) {\n            _jsinc_dzsap_ajax__WEBPACK_IMPORTED_MODULE_5__.ajax_submit_download.bind(selfClass)();\n          }\n\n          if ($t.hasClass('dzsap-loop-button')) {\n            if ($t.hasClass('active')) {\n              $t.removeClass('active');\n              media_isLoopActive = false;\n            } else {\n              $t.addClass('active');\n              media_isLoopActive = true;\n            }\n          }\n        }\n\n        if (e.type === 'mouseover') {}\n\n        if (e.type === 'mouseenter') {\n          if (o.preview_on_hover === 'on') {\n            seek_to_perc(0);\n            play_media({\n              'called_from': 'preview_on_hover'\n            });\n          }\n\n          window.dzsap_mouseover = true;\n        }\n\n        if (e.type === 'mouseleave') {\n          if (o.preview_on_hover === 'on') {\n            seek_to_perc(0);\n            pause_media();\n          }\n\n          window.dzsap_mouseover = false;\n        }\n      }\n\n      function view_drawCurrentTime() {\n        // -- draw current time -- called onEnterFrame when playing\n        var currentTime = selfClass.timeModel.getVisualCurrentTime();\n        var totalTime = selfClass.timeModel.getVisualTotalTime();\n\n        if (selfClass.initOptions.scrubbar_type === 'wave') {\n          if (selfClass.initOptions.skinwave_enableSpectrum === 'on') {\n            if (!selfClass.isPlayerPlayingEased) {\n              return false;\n            }\n\n            (0,_jsinc_player_player_scrubModeWave_spectrum__WEBPACK_IMPORTED_MODULE_17__.view_spectrum_drawMeter)(selfClass, selfClass._scrubbarbg_canvas, spectrum_fakeItMode, selfClass.heightCanvas); // -- end spectrum\n          }\n\n          if (selfClass.$currTime && selfClass.$currTime.length) {\n            if (selfClass.initOptions.skinwave_timer_static !== 'on') {\n              (0,_jsinc_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_26__.view_player_scrubModeWaveAdjustCurrTimeAndTotalTime)(selfClass);\n            }\n          }\n        }\n\n        if (totalTime !== last_time_total) {\n          view_updateTotalTime(totalTime);\n        }\n\n        if (selfClass.$currTime) {\n          if (selfClass.isScrubShowingCurrentTime === false) {\n            selfClass.$currTime.html((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.formatTime)(currentTime));\n          }\n\n          if (selfClass.timeModel.getVisualTotalTime() && selfClass.timeModel.getVisualTotalTime() > -1) {\n            selfClass.cthis.addClass('time-total-visible');\n          }\n        }\n\n        if (selfClass.spectrum_audioContext) {\n          if (selfClass.$totalTime) {\n            selfClass.$totalTime.html((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.formatTime)(totalTime));\n          }\n        }\n      }\n\n      function view_updateTotalTime(totalTime) {\n        if (selfClass.$totalTime) {\n          selfClass.$totalTime.html((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.formatTime)(totalTime));\n          selfClass.$totalTime.fadeIn('fast');\n        }\n      }\n      /**\n       * draw the scrub width\n       * @returns {void}\n       */\n\n\n      function view_drawScrubProgress() {\n        var currentTime = selfClass.timeModel.getVisualCurrentTime();\n        var totalTime = selfClass.timeModel.getVisualTotalTime();\n        selfClass.scrubbarProgX = currentTime / totalTime * selfClass.scrubbarWidth;\n\n        if (isNaN(selfClass.scrubbarProgX)) {\n          selfClass.scrubbarProgX = 0;\n        }\n\n        if (selfClass.scrubbarProgX > selfClass.scrubbarWidth) {\n          selfClass.scrubbarProgX = selfClass.scrubbarWidth;\n        }\n\n        if (currentTime < 0) {\n          selfClass.scrubbarProgX = 0;\n        }\n\n        if (totalTime === 0 || isNaN(totalTime)) {\n          selfClass.scrubbarProgX = 0;\n        }\n\n        if (selfClass.scrubbarProgX < 2 && cthis.data('promise-to-play-footer-player-from')) {\n          return;\n        }\n\n        if (selfClass.spectrum_audioContext_buffer === null) {\n          if (selfClass.$$scrubbProg) {\n            selfClass.$$scrubbProg.style.width = parseInt(selfClass.scrubbarProgX, 10) + 'px';\n          }\n        }\n      }\n      /**\n       * fired on requestAnimationFrame\n       * @param pargs\n       * @returns {boolean}\n       */\n\n\n      function handleEnterFrame(pargs) {\n        // -- enter frame\n        var margs = $.extend({\n          'fire_only_once': false\n        }, pargs || {});\n\n        if (isDestroyed) {\n          return false;\n        }\n\n        selfClass.timeModel.refreshTimes({\n          'call_from': 'checK_time'\n        });\n\n        if (selfClass.audioType === 'selfHosted') {}\n\n        view_drawScrubProgress();\n        selfClass.timeModel.processCurrentFrame(); // -- skin minimal\n\n        if (o.design_skin === 'skin-minimal') {\n          (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.waitForScriptToBeAvailableThenExecute)(window.dzsap_view_player_skinMinimal_drawFrame, function () {\n            window.dzsap_view_player_skinMinimal_drawFrame(selfClass, selfClass.scrubbarProgX);\n          });\n        } // -- enter_frame\n\n\n        view_drawCurrentTime();\n\n        if (margs.fire_only_once !== true) {\n          requestAnimationFrame(handleEnterFrame);\n        }\n      }\n\n      function handleClick_playPause(e) {\n        if (cthis.hasClass('prevent-bubble')) {\n          if (e && e.stopPropagation) {\n            e.preventDefault();\n            e.stopPropagation();\n          }\n        }\n\n        var $conPlayPause = $(this);\n        var isToggleCancelled = false;\n\n        if (!cthis.hasClass('listeners-setuped')) {\n          $(selfClass.$mediaNode_).attr('preload', 'auto');\n          setup_listeners();\n          init_loaded();\n          var inter_checkTotalTime = setInterval(function () {\n            if (selfClass.$mediaNode_ && selfClass.$mediaNode_.duration && isNaN(selfClass.$mediaNode_.duration) === false) {\n              clearInterval(inter_checkTotalTime);\n            }\n          }, 1000);\n        }\n\n        if (o.design_skin === 'skin-minimal') {\n          (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.waitForScriptToBeAvailableThenExecute)(window.dzsap_skin_minimal_inited, function () {\n            window.dzsap_view_player_skinMinimal_onClickPlayPause(selfClass, $conPlayPause, seek_to_perc, handleEnterFrame, e, togglePlayPause);\n          });\n          isToggleCancelled = true;\n        }\n\n        if (!isToggleCancelled) {\n          togglePlayPause();\n        }\n\n        return false;\n      }\n\n      function togglePlayPause() {\n        if (!selfClass.isPlayerPlaying) {\n          play_media({\n            'called_from': 'click_playpause'\n          });\n        } else {\n          pause_media();\n        }\n      }\n      /**\n       *\n       * @param pargs\n       * @returns {boolean|void}\n       */\n\n\n      function media_handleEnd(pargs) {\n        (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.media_handleEventEnd)(selfClass, pargs, media_isLoopActive, seek_to, play_media, pause_media, o, _jsinc_player_player_nextPrevButtons__WEBPACK_IMPORTED_MODULE_22__.syncPlayers_gotoNext, action_audio_end);\n      }\n\n      function view_handleResize(e, pargs) {\n        if (cthis) {}\n\n        ww = $(window).width();\n        selfClass.cthisWidth = cthis.width();\n        th = cthis.height();\n\n        if (selfClass._scrubbarbg_canvas && typeof selfClass._scrubbarbg_canvas.width === 'function') {\n          selfClass.canvasWidth = selfClass._scrubbarbg_canvas.width();\n          selfClass.heightCanvas = selfClass._scrubbarbg_canvas.height();\n        }\n\n        if (selfClass.cthisWidth <= 720) {\n          cthis.addClass('under-720');\n        } else {\n          cthis.removeClass('under-720');\n        }\n\n        if (selfClass.cthisWidth <= 500) {\n          // -- width under 500\n          cthis.addClass('under-500');\n        } else {\n          // -- width under 500\n          cthis.removeClass('under-500');\n        }\n\n        (0,_jsinc_player_player_viewSetup__WEBPACK_IMPORTED_MODULE_27__.view_resizeHandleTreatSkins)(selfClass); // -- display none + overflow hidden hack does not work .. yeah\n\n        if (cthis.css('display') !== 'none') {\n          selfClass._scrubbar.find('.scrub-bg-img').eq(0).css({\n            'width': selfClass._scrubbar.children('.scrub-bg').width()\n          });\n\n          selfClass._scrubbar.find('.scrub-prog-img').eq(0).css({\n            'width': selfClass._scrubbar.children('.scrub-bg').width()\n          });\n        }\n\n        cthis.removeClass('under-240 under-400');\n\n        if (selfClass.cthisWidth <= 240) {\n          cthis.addClass('under-240');\n        }\n\n        if (selfClass.cthisWidth <= 500) {\n          cthis.addClass('under-400');\n\n          if (is_under_400 === false) {\n            is_under_400 = true;\n          }\n\n          if (selfClass.$controlsVolume) {}\n        } else {\n          if (is_under_400 === true) {\n            is_under_400 = false;\n          }\n        }\n\n        var aux2 = 50; // -- skin-wave\n\n        if (o.design_skin === 'skin-wave') {\n          // ---------- calculate dims small\n          if (selfClass.skinwave_mode === 'small') {\n            selfClass.scrubbarWidth = selfClass._scrubbar.width();\n          }\n\n          if (o.skinwave_wave_mode === 'canvas') {\n            if (cthis.attr('data-pcm')) {\n              if (selfClass._scrubbarbg_canvas.width() === 100) {\n                selfClass._scrubbarbg_canvas.width(selfClass._scrubbar.width());\n              }\n\n              if (selfClass.data_source !== 'fake') {\n                // -- if inter definied then clear timeout and call\n                if (draw_canvas_inter) {\n                  clearTimeout(draw_canvas_inter);\n                  draw_canvas_inter = setTimeout(draw_canvas_inter_func, 300);\n                } else {\n                  draw_canvas_inter_func();\n                  draw_canvas_inter = 1;\n                }\n              }\n            }\n          }\n        }\n\n        if (['skin-minimal', 'skin-minion'].indexOf(o.design_skin) > -1) {\n          if (window.dzsap_skinFunctions_handleResize[o.design_skin]) {\n            window.dzsap_skinFunctions_handleResize[o.design_skin](selfClass);\n          }\n        }\n\n        if (o.design_skin === 'skin-default') {\n          if (selfClass.$currTime) {\n            if (selfClass._metaArtistCon.css('display') === 'none') {\n              selfClass._metaArtistCon_w = 0;\n            }\n\n            if (isNaN(selfClass._metaArtistCon_l)) {\n              selfClass._metaArtistCon_l = 20;\n            }\n          }\n        }\n\n        if (o.embedded === 'on') {\n          (0,_jsinc_player_player_viewSetup__WEBPACK_IMPORTED_MODULE_27__.view_resizeEmbedded)(selfClass);\n        }\n\n        view_drawScrubProgress();\n\n        if (o.settings_trigger_resize > 0) {\n          if (o.parentgallery && $(o.parentgallery).get(0) !== undefined && $(o.parentgallery).get(0).api_handleResize !== undefined) {\n            $(o.parentgallery).get(0).api_handleResize();\n          }\n        }\n      }\n\n      function draw_canvas_inter_func() {\n        (0,_jsinc_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_12__.view_drawCanvases)(selfClass, cthis.attr('data-pcm'), 'canvas_normal_pcm');\n        draw_canvas_inter = 0;\n      }\n\n      function viewCalculateScrubbarWidth() {\n        if (selfClass.scrubbarWidth === 0) {\n          selfClass.scrubbarWidth = selfClass._scrubbar.width();\n        }\n\n        if (selfClass.scrubbarWidth === 0) {\n          selfClass.scrubbarWidth = 300;\n        }\n      }\n\n      function seek_to_perc(argperc, pargs) {\n        seek_to(argperc * selfClass.timeModel.getVisualTotalTime(), pargs);\n      }\n      /**\n       * seek to seconds\n       * @param targetTimeMediaScrub - number of seconds\n       * @param pargs -- optiona arguments\n       * @returns {boolean}\n       */\n\n\n      function seek_to(targetTimeMediaScrub) {\n        var pargs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n        var margs = {\n          'call_from': 'default',\n          'deeplinking': 'off' // -- default or \"auto\" or \"user action\"\n          ,\n          'call_from_type': 'default' // -- default or \"auto\" or \"user action\"\n\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        if (margs.call_from === 'from_feeder_to_feed') {}\n\n        if (margs.deeplinking === 'on') {\n          var newlink = add_query_arg(window.location.href, 'audio_time', targetTimeMediaScrub);\n          var stateObj = {\n            foo: \"bar\"\n          };\n          history.pushState(stateObj, null, newlink);\n        }\n\n        targetTimeMediaScrub = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.sanitizeToIntFromPointTime)(targetTimeMediaScrub);\n        targetTimeMediaScrub = selfClass.timeModel.getActualTargetTime(targetTimeMediaScrub);\n\n        if (selfClass._actualPlayer) {\n          (0,_jsinc_player_player_feederFunctions__WEBPACK_IMPORTED_MODULE_24__.player_feederSeekTo)(selfClass, margs, targetTimeMediaScrub);\n          return false;\n        }\n\n        if (selfClass.audioType === 'youtube') {\n          try {\n            selfClass.$mediaNode_.seekTo(targetTimeMediaScrub);\n          } catch (err) {}\n        }\n\n        handleEnterFrame({\n          'fire_only_once': true\n        });\n        setTimeout(function () {\n          handleEnterFrame({\n            'fire_only_once': true\n          });\n        }, 20);\n\n        if (selfClass.audioType === 'selfHosted') {\n          if (false) {} else {\n            if (selfClass.$mediaNode_ && typeof selfClass.$mediaNode_.currentTime !== 'undefined') {\n              try {\n                selfClass.$mediaNode_.currentTime = targetTimeMediaScrub;\n              } catch (e) {}\n            }\n\n            return false;\n          }\n        }\n      }\n      /**\n       * seek to ( only visual )\n       * @param argperc\n       */\n\n\n      function seek_to_visual(argperc) {\n        curr_time_first_set = true;\n        handleEnterFrame({\n          'fire_only_once': true\n        });\n        setTimeout(function () {\n          handleEnterFrame({\n            'fire_only_once': true\n          });\n        }, 20);\n      }\n      /**\n       * playback speed\n       * @param {float} arg 0 - 10\n       */\n\n\n      function set_playback_speed(arg) {\n        if (selfClass.audioType === 'youtube') {\n          selfClass.$mediaNode_.setPlaybackRate(arg);\n        }\n\n        if (selfClass.audioType === 'selfHosted') {\n          selfClass.$mediaNode_.playbackRate = arg;\n        }\n      }\n\n      function pause_media_visual(pargs) {\n        var margs = {\n          'call_from': 'default'\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        selfClass.$conPlayPause.removeClass('playing');\n        cthis.removeClass('is-playing');\n        selfClass.isPlayerPlaying = false;\n        clearTimeout(selfClass.isPlayerPlayingEasedInterval);\n        selfClass.isPlayerPlayingEasedInterval = setTimeout(function () {\n          selfClass.isPlayerPlayingEased = false;\n        }, _configs_constants__WEBPACK_IMPORTED_MODULE_6__.DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT);\n\n        if (cthis.parent().hasClass('zoomsounds-wrapper-bg-center')) {\n          cthis.parent().removeClass('is-playing');\n        }\n\n        if (selfClass.$reflectionVisualObject) {\n          selfClass.$reflectionVisualObject.removeClass('is-playing');\n        }\n\n        if (o.parentgallery) {\n          o.parentgallery.removeClass('player-is-playing');\n        }\n\n        clearTimeout(isRenderingFrameInterval);\n        isRenderingFrameInterval = setTimeout(function () {\n          isRenderingFrame = false;\n        }, _configs_constants__WEBPACK_IMPORTED_MODULE_6__.DZSAP_VIEW_PLAYER_PLAYING_EASED_TIMEOUT);\n\n        if (action_audio_pause) {\n          action_audio_pause(cthis);\n        }\n      }\n\n      function pause_media(pargs) {\n        var margs = {\n          'audioapi_setlasttime': true,\n          'donot_change_media': false,\n          'call_actual_player': true\n        };\n\n        if (isDestroyed) {\n          return false;\n        }\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        pause_media_visual({\n          'call_from': 'pause_media'\n        });\n\n        if (margs.call_actual_player && margs.donot_change_media !== true) {\n          if (selfClass._actualPlayer !== null) {\n            (0,_jsinc_player_player_feederFunctions__WEBPACK_IMPORTED_MODULE_24__.player_actualPlayerPause)(selfClass);\n            return;\n          }\n        }\n\n        (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.media_pause)(selfClass, function () {\n          if (selfClass._sourcePlayer) {\n            (0,_jsinc_player_player_feederFunctions__WEBPACK_IMPORTED_MODULE_24__.player_sourcePlayerPauseVisual)(selfClass);\n          }\n        });\n      }\n\n      function play_media_visual(margs) {\n        selfClass.isPlayerPlaying = true;\n        clearTimeout(selfClass.isPlayerPlayingEasedInterval);\n        selfClass.isPlayerPlayingEased = true;\n        clearTimeout(isRenderingFrameInterval);\n        isRenderingFrame = true;\n        cthis.addClass('is-playing');\n        cthis.addClass('first-played');\n\n        if (selfClass.$reflectionVisualObject) {\n          selfClass.$reflectionVisualObject.addClass('is-playing');\n        }\n\n        if (o.parentgallery) {\n          o.parentgallery.addClass('player-is-playing');\n        }\n\n        if (selfClass.classFunctionalityInnerPlaylist) {\n          selfClass.classFunctionalityInnerPlaylist.player_determineSyncPlayersIndex(selfClass, selfClass._sourcePlayer);\n        }\n\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.view_player_globalDetermineSyncPlayersIndex)(selfClass);\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.view_player_playMiscEffects)(selfClass);\n\n        if (selfClass.isStickyPlayer) {\n          if (window['dzsap_stickyPlayer_show']) {\n            dzsap_stickyPlayer_show(selfClass);\n          }\n        }\n\n        if (action_audio_play) {\n          action_audio_play(cthis);\n        }\n\n        if (action_audio_play2) {\n          action_audio_play2(cthis);\n        }\n      }\n\n      function play_media(pargs) {\n        var margs = {\n          'api_report_play_media': true,\n          'called_from': 'default',\n          'retry_call': 0\n        };\n\n        if (pargs) {\n          margs = $.extend(margs, pargs);\n        }\n\n        if (!selfClass.isSetupedMedia) {\n          setup_media({\n            'called_from': margs.called_from + '[play_media .. not setuped]'\n          });\n        }\n\n        if (margs.called_from === 'api_sync_players_prev') {\n          player_index_in_gallery = cthis.parent().children('.audioplayer,.audioplayer-tobe').index(cthis);\n\n          if (o.parentgallery && o.parentgallery.get(0) && o.parentgallery.get(0).api_goto_item) {\n            o.parentgallery.get(0).api_goto_item(player_index_in_gallery);\n          }\n        }\n\n        if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() && selfClass.spectrum_audioContext_buffer === 'waiting' || selfClass.mediaProtectionStatus === 'fetchingProtection') {\n          setTimeout(function () {\n            if (!pargs) {\n              pargs = {};\n            }\n\n            pargs.call_from_aux = 'waiting audioCtx_buffer or ios';\n            play_media(pargs);\n          }, 500);\n          return false;\n        }\n\n        if (margs.called_from === 'click_playpause') {// -- lets setup the playlist\n        }\n\n        if (!cthis.hasClass('media-setuped') && selfClass._actualPlayer === null) {\n          console.log('[dzsap][warning] media not setuped, there might be issues', cthis.attr('id'));\n        }\n\n        if (margs.called_from.indexOf('feed_to_feeder') > -1) {\n          if (!cthis.hasClass('dzsap-loaded')) {\n            init_loaded();\n            var delay = 300;\n\n            if ((0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)()) {\n              delay = 0;\n            }\n\n            if (margs.call_from_aux !== 'with delay') {\n              if (delay) {\n                setTimeout(function () {\n                  margs.call_from_aux = 'with delay';\n                  play_media(margs);\n                }, delay);\n              } else {\n                play_media(margs);\n              }\n\n              return false;\n            }\n          }\n        }\n\n        (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_stopOtherPlayers)(dzsap_list, selfClass);\n\n        if (isDestroyedForRebuffer) {\n          setup_media({\n            'called_from': 'play_media() .. destroyed for rebuffer'\n          });\n\n          if ((0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.isInt)(selfClass.playFrom)) {\n            seek_to(selfClass.playFrom, {\n              'call_from': 'destroyed_for_rebuffer_playfrom'\n            });\n          }\n\n          isDestroyedForRebuffer = false;\n        } // -- media functions\n\n\n        if (selfClass._sourcePlayer) {\n          (0,_jsinc_player_player_feederFunctions__WEBPACK_IMPORTED_MODULE_24__.player_sourcePlayerPlayVisual)(selfClass);\n        }\n\n        if (selfClass._actualPlayer) {\n          var output = (0,_jsinc_player_player_feederFunctions__WEBPACK_IMPORTED_MODULE_24__.player_actualPlayerPlay)(selfClass, margs, seek_to);\n\n          if (output.itShouldReturn) {\n            return;\n          }\n        }\n\n        if (selfClass.audioType === 'youtube') {\n          dzsap_youtube_playMedia(selfClass, margs, selfClass.youtube_currentId);\n        }\n\n        if (selfClass.audioType === 'selfHosted') {}\n\n        if (selfClass.audioType === 'youtube') {\n          play_media_visual(margs);\n        }\n\n        (0,_jsinc_media_media_functions__WEBPACK_IMPORTED_MODULE_2__.media_tryToPlay)(selfClass, function () {\n          play_media_visual(margs);\n\n          if (o.skinwave_enableSpectrum === 'on') {\n            (0,_jsinc_player_player_scrubModeWave_spectrum__WEBPACK_IMPORTED_MODULE_17__.player_initSpectrum)(selfClass);\n          }\n\n          if (selfClass._sourcePlayer) {\n            window.dzsap_currplayer_focused = selfClass._sourcePlayer.get(0);\n\n            if (selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).api_pause_media_visual) {\n              selfClass._sourcePlayer.get(0).api_try_to_submit_view();\n            }\n          } else {\n            window.dzsap_currplayer_focused = cthis.get(0);\n            service_submitView();\n          }\n\n          if (selfClass.keyboard_controls.play_trigger_step_back === 'on') {\n            if (dzsap_currplayer_focused) {\n              dzsap_currplayer_focused.api_step_back(selfClass.keyboard_controls.step_back_amount);\n            }\n          }\n        }, function (err) {\n          console.log('error autoplay playing -  ', err);\n          setTimeout(function () {\n            pause_media();\n            console.log('trying to pause');\n          }, 30);\n        });\n      }\n\n      function service_submitView() {\n        if (selfClass.ajax_view_submitted === 'auto') {\n          selfClass.ajax_view_submitted = 'off';\n        }\n\n        if (selfClass.ajax_view_submitted === 'off') {\n          _jsinc_dzsap_ajax__WEBPACK_IMPORTED_MODULE_5__.ajax_submit_views.bind(selfClass)();\n        }\n      }\n    }\n  }]);\n\n  return DzsAudioPlayer;\n}();\n\nfunction register_dzsap_plugin() {\n  if (!window.dzsap_settings) {\n    window.dzsap_settings = {};\n  }\n\n  (function ($) {\n    (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.assignHelperFunctionsToJquery)($); // -- define player here\n\n    $.fn.audioplayer = function (argOptions) {\n      var finalOptions = {};\n      var defaultOptions = Object.assign({}, _configs_settingsPlayer__WEBPACK_IMPORTED_MODULE_13__.defaultPlayerOptions);\n      finalOptions = (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.convertPluginOptionsToFinalOptions)(this, defaultOptions, argOptions);\n      this.each(function () {\n        return new DzsAudioPlayer(this, Object.assign({}, finalOptions), $);\n      });\n    };\n  })(jQuery);\n}\n\nwindow.dzsap_singleton_ready_calls_is_called = false;\n/**\n * not reliable\n */\n\nwindow.dzsap_get_base_url = function () {\n  window.dzsap_base_url = window.dzsap_settings && window.dzsap_settings.pluginurl ? window.dzsap_settings.pluginurl : (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.getBaseUrl)('dzsap_base_url', 'audioplayer.js');\n};\n\nwindow.dzsap_currplayer_focused = null;\nwindow.dzsap_currplayer_from_share = null;\nwindow.dzsap_mouseover = false;\n\nwindow.dzsap_init_allPlayers = function ($) {\n  var $feed_dzsapConfigs = $('.dzsap-feed--dzsap-configs');\n\n  if ($feed_dzsapConfigs.length) {\n    window.dzsap_apconfigs = JSON.parse($feed_dzsapConfigs.last().html());\n  }\n\n  $('.audioplayer.auto-init,.audioplayer-tobe.auto-init').each(function () {\n    var $playerTarget = $(this);\n\n    if ($playerTarget.hasClass('audioplayer-tobe')) {\n      if (window.dzsap_init) {\n        dzsap_init($playerTarget);\n      }\n    }\n  });\n};\n\n(0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.dzsap_jQueryInit)().then(function () {\n  register_dzsap_plugin();\n  window.dzsap_get_base_url();\n  jQuery(document).ready(function ($) {\n    // -- defined gallery here\n    // --\n    // AUDIO GALLERY\n    // --\n    // -- main call\n    if (!window.dzsap_singleton_ready_calls_is_called) {\n      (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.dzsap_singleton_ready_calls)();\n    } // window.dzsap_init_allGalleries($);\n\n\n    (0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.jQueryAuxBindings)($);\n    window.dzsap_init_allPlayers($);\n  });\n\n  if (!window.dzsap_player_isOneTimeSetuped) {\n    (0,_jsinc_player_player_one_time_setups__WEBPACK_IMPORTED_MODULE_14__.dzsap_oneTimeSetups)();\n    window.dzsap_player_isOneTimeSetuped = true;\n  }\n})[\"catch\"](function (err) {\n  console.log(err);\n});\n\nwindow.dzsap_init = function (selector, settings) {\n  jQuery(selector).audioplayer(Object.assign({}, settings));\n  window.dzsap_lasto = settings;\n};\n\n(0,_jsinc_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.playerRegisterWindowFunctions)();\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/audioplayer.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/_settingsPlayer.js":
/*!****************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlayer.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 */   \"defaultPlayerOptions\": () => (/* binding */ defaultPlayerOptions)\n/* harmony export */ });\nconst defaultPlayerOptions = {\n  design_skin: 'skin-default',  // -- the skin of the player - can be set from the html as well,autoplay: 'off' // -- autoplay the track ( only works is cue is set to \"on\"\n  call_from: 'default', // -- call from a specific api\n  autoplay_on_scrub_click: 'off',  // -- autoplay the track ( only works is cue is set to \"on\"\n  cueMedia: 'on', // -- this chooses wheter \"on\" or not \"off\" a part .. what part is decided by the preload_method below\n  preload_method: 'metadata',  // -- \"none\" or \"metadata\" or \"auto\" ( whole track )\n  loop: 'off',  // -- loop the track\n  pause_method: 'pause',  // -- loop the track\n  // -- extra HTML\n  settings_extrahtml: '',  // -- some extra html - can be rates, plays, likes\n  settings_extrahtml_before_play_pause: '',  // -- some extra html that you may want before play button\n  settings_extrahtml_after_play_pause: '',  // -- some extra html that you may want after play button\n\n  settings_trigger_resize: '0',  // -- check the player dimensions every x milli seconds\n  design_thumbh: \"default\",  // -- thumbnail size\n  extra_classes_player: '',\n  disable_volume: 'default',\n  disable_scrub: 'default',\n  disable_timer: 'default', // -- disable timer display\n  disable_player_navigation: 'off',\n  scrub_show_scrub_time: 'on',\n  player_navigation: 'default',  // -- auto decide if we need player navigation\n  type: 'audio'\n  , enable_embed_button: 'off' // -- enable the embed button\n  , embed_code: '' // -- embed code\n  , skinwave_dynamicwaves: 'off' // -- dynamic scale based on volume for no spectrum wave\n  , soundcloud_apikey: '',  // -- set the sound cloud api key\n  skinwave_enableSpectrum: 'off', // -- off or on\n  skinwave_place_thumb_after_volume: 'off', // -- place the thumbnail after volume button\n  skinwave_place_metaartist_after_volume: 'off', // -- place metaartist after volume button\n  php_retriever: 'soundcloudretriever.php', // -- the soundcloud php file used to render soundcloud files,\n  skinwave_mode: 'normal',  // -- \"normal\" or \"small\" or \"alternate\"\n  skinwave_wave_mode: 'canvas',  // -- \"normal\" or \"canvas\" or \"line\"\n  skinwave_wave_mode_canvas_mode: 'normal',  // -- \"normal\" or \"reflecto\"\n  skinwave_wave_mode_canvas_normalize: 'on' // -- normalize wave to look more natural\n\n  // -- wave settings\n  , skinwave_wave_mode_canvas_waves_number: '3' // -- the number of waves in the canvas ( \"1\" pixel waves, \"2\" 2 pixel width waves, \"3\" 3 pixel width waves, \"anything more then 3\" means number of waves in the container, for example 100 means 100 waves in 1000px container if the container is 1000px width )\n  , skinwave_wave_mode_canvas_waves_padding: '1' // -- padding between waves ( \"1\" 1 pixel between < - > \"0\" no reflection )\n  , skinwave_wave_mode_canvas_reflection_size: '0.25',  // -- the reflection size ( \"1\" full size < - > \"0\" no reflection )\n  wavesurfer_pcm_length: '200',  // -- define the precision of the wave generation; higher is more precise, but occupies more space\n\n  pcm_data_try_to_generate: 'on',  // -- try to find out the pcm data and sent it via ajax ( maybe send it via php_handler\n  pcm_data_try_to_generate_wait_for_real_pcm: 'on',  // -- if set to on, the fake pcm data will not be generated\n  pcm_notice: 'off',  // -- show a notice for pcm\n  notice_no_media: 'on',  // -- show a notice for when the media errors out\n\n  sampleTimesMode: 'realPrevivew', // -- \"realPreview\" or \"pseudoPreview\"\n  mobile_delete: \"off\",  // -- delete the whole player on mobile, useful for unwanted footer players in mobile\n  footer_btn_playlist: \"off\",  // -- construct inner player playlist\n  mobile_disable_fakeplayer: \"off\",  // -- disable feeding to other players on mobile\n  skinwave_comments_displayontime: 'on', // -- display the comment when the scrub header is over it\n  skinwave_comments_allow_post_if_not_logged_in: 'on', // -- allow posting in comments section if not looged in, to be logged in, skinwave_comments_account must be an account id\n\n  skinwave_comments_links_to: '',  // -- clicking the comments bar will lead to this link ( optional )\n  skinwave_comments_enable: 'off',  // -- enable the comments, publisher.php must be in the same folder as this html\n  skinwave_comments_mode_outer_selector: '',  // -- the outer selector if it has one\n  skinwave_comments_playerid: '',\n\n  skinwave_timer_static: 'off',  // -- Timer indicators are static\n  default_volume: 'default',  // -- number / set the default volume 0-1 or \"last\" for the last known volume\n  volume_from_gallery: '',// -- the volume set from the gallery item select, leave blank if the player is not called from the gallery\n  design_menu_show_player_state_button: 'off', // -- show a button that allows to hide or show the menu\n  playfrom: 'off',  // -- off or specific number of settings or set to \"last\"\n  design_animateplaypause: 'default'\n  , embedded: 'off',  // // -- if embedded in a iframe\n  embedded_iframe_id: '', // // -- if embedded in a iframe, specify the iframe id here\n  google_analytics_send_play_event: 'off' // -- send the play event to google analytics, you need to have google analytics script already on your page\n  , fakeplayer: null // -- if this is a fake player, it will feed\n  , failsafe_repair_media_element: '' // -- some scripts might effect the media element used by zoomsounds, this is how we replace the media element in a certain time\n  , action_audio_play: null // -- set a outer play function ( for example for tracking your analytics )\n  , action_audio_play2: null // -- set a outer play function ( for example for tracking your analytics )\n  , action_audio_pause: null, // -- set a outer play function ( for example for tracking your analytics )\n  action_audio_end: null,  // -- set a outer ended function ( for example for tracking your analytics )\n  action_audio_comment: null,  // -- set a outer commented function ( for example for tracking your analytics )\n  action_received_time_total: null // -- event triggers at receiving time total\n  , action_audio_change_media: null,  // -- set a outer on change track function\n  action_audio_loaded_metadata: null,  // -- set a outer commented function ( for example for tracking your analytics )\n  action_video_contor_60secs: null,  // -- fire every 30s\n  type_audio_stop_buffer_on_unfocus: 'off',  // -- if set to on, when the audio player goes out of focus, it will unbuffer the file so that it will not load anymore, useful if you want to stop buffer on large files\n\n\n  settings_exclude_from_list: 'off',  // -- a audioplayer list is formed at runtime so that when\n  design_wave_color_bg: '222222',  // -- waveform background color..  000000,ffffff gradient is allowed\n  design_wave_color_progress: 'ea8c52', // -- waveform progress color\n\n\n  skin_minimal_button_size: '100',\n  gallery_gapless_play: 'off', // -- play without pause\n  preview_on_hover: 'off',  // -- on mouseenter autoplay the track\n  controls_external_scrubbar: '',  // -- on mouseenter autoplay the track\n  parentgallery: null, // -- the parent gallery of the player\n  scrubbar_type: 'auto', // -- \"wave\" or \"spectrum\" or \"bar\"\n  scrubbar_type_wave__has_reveal_animation: 'off',\n\n  settings_php_handler: '', // -- the path of the publisher.php file, this is used to handle comments, likes etc. - can be \"wpdefault\"\n};\n\n// settings_extrahtml -- for plays use <div class=\"dzsap-counter counter-hits\"><i class=\"fa fa-play\"></i><span class=\"the-number\">{{get_plays}}</span></div>\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/configs/_settingsPlayer.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_misc.js":
/*!**********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_misc.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 */   \"retrieve_soundcloud_url\": () => (/* binding */ retrieve_soundcloud_url)\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\n\nfunction retrieve_soundcloud_url(selfClass, pargs) {\n\n\n  var o = selfClass.initOptions;\n\n  if (o.soundcloud_apikey == '') {\n    alert('soundcloud api key not defined, read docs!');\n  }\n  var aux = 'https://api.' + 'soundcloud.com' + '/resolve?url=' + selfClass.data_source + '&format=json&consumer_key=' + o.soundcloud_apikey;\n\n\n\n  aux = encodeURIComponent(aux);\n\n\n  var soundcloud_retriever = o.php_retriever + '?scurl=' + aux;\n\n\n  jQuery.ajax({\n    type: \"GET\",\n    url: soundcloud_retriever\n    , data: {}\n    , async: true\n    , dataType: 'text'\n    , error: function (err, q, t) {\n\n    }\n    , success: function (response) {\n\n\n      var data = [];\n\n\n      let newSource = '';\n      try {\n        data = JSON.parse(response);\n\n        selfClass.audioType = 'selfHosted';\n\n\n        if (data == '') {\n          selfClass.cthis.addClass(_configs_constants__WEBPACK_IMPORTED_MODULE_0__.ConstantsDzsAp.ERRORED_OUT_CLASS);\n          selfClass.cthis.append('<div class=\"feedback-text\">soundcloud track does not seem to serve via api</div>');\n        }\n\n\n\n        selfClass.original_real_mp3 = selfClass.cthis.attr('data-source');\n        if (data.stream_url) {\n\n          newSource = data.stream_url + '?consumer_key=' + o.soundcloud_apikey + '&origin=localhost';\n          selfClass.cthis.attr('data-source', newSource);\n\n\n          if (selfClass.$feed_fakeButton) {\n            selfClass.$feed_fakeButton.attr('data-source', newSource);\n          }\n          if (selfClass._sourcePlayer) {\n            selfClass._sourcePlayer.attr('data-source', newSource);\n          }\n        } else {\n\n          selfClass.cthis.addClass(_configs_constants__WEBPACK_IMPORTED_MODULE_0__.ConstantsDzsAp.ERRORED_OUT_CLASS);\n          selfClass.cthis.append('<div class=\"feedback-text \">this soundcloud track does not allow streaming  </div>');\n        }\n        selfClass.data_source = newSource;\n\n\n        if (selfClass.cthis.attr('data-pcm')) {\n          selfClass.isAlreadyHasRealPcm = true;\n        }\n        if (o.design_skin == 'skin-wave') {\n          if (o.skinwave_wave_mode == 'canvas') {\n            if (selfClass.isAlreadyHasRealPcm == false) {\n              if ((o.pcm_data_try_to_generate == 'on' && o.pcm_data_try_to_generate_wait_for_real_pcm == 'on') == false) {\n                window.scrubModeWave__initGenerateWaveData(selfClass, {\n                  'call_from': 'soundcloud init(), pcm not real..'\n                });\n              }\n            }\n          }\n        }\n\n        selfClass.setup_media({\n          'called_from': 'change_media'\n        });\n\n\n        setTimeout(function () {\n\n\n          if (selfClass.isPlayPromised) {\n            selfClass.play_media({\n              'call_from': 'change_media'\n            })\n            selfClass.isPlayPromised = false;\n          }\n        }, 300);\n      } catch (err) {\n        console.log('soduncloud parse error -', response, ' - ', soundcloud_retriever);\n      }\n    }\n  });\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_misc.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/_dzsap_time_model.js":
/*!****************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_time_model.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 */   \"PlayerTime\": () => (/* binding */ PlayerTime)\n/* harmony export */ });\n/* harmony import */ var _media_media_functions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./media/_media_functions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_media_functions.js\");\n\n\n/**\n * @property actualTotalTime\n */\nclass PlayerTime {\n\n  /**\n   *\n   * @param {DzsAudioPlayer} selfClass\n   */\n  constructor(selfClass) {\n\n    this.timeCurrent = 0;\n    this.timeTotal = 0;\n    this.sampleTimeStart = null;\n    this.sampleTimeEnd = null;\n    this.sampleTimeTotal = null;\n\n    this.referenceMediaCurrentTime = 0;\n    this.referenceMediaTotalTime = 0;\n\n    this.visualCurrentTime = null;\n    this.visualTotalTime = null;\n\n    this.actualTotalTime = null;\n\n\n    this.dzsapInstance = selfClass;\n    this.init();\n  }\n\n  init() {\n\n\n  }\n\n  initObjects() {\n\n    var selfClass = this.dzsapInstance;\n    var timeInstance = this;\n\n\n    // -- set current time\n    selfClass.cthis.get(0).api_set_timeVisualCurrent = function (arg) {\n      timeInstance.visualCurrentTime = arg;\n\n\n    }\n    selfClass.cthis.get(0).api_get_time_total = function () {\n\n      return timeInstance.getVisualTotalTime();\n    }\n    selfClass.cthis.get(0).api_get_time_curr = function () {\n      return timeInstance.getVisualCurrentTime();\n    };\n\n    // -- set total time\n    selfClass.cthis.get(0).api_set_timeVisualTotal = function (arg) {\n\n\n      timeInstance.visualTotalTime = arg;\n      timeInstance.refreshTimes();\n\n\n    };\n  }\n\n\n  /**\n   * called from enterFrame and other places\n   */\n  refreshTimes() {\n\n    const getCurrentTime = () => {\n      if (false) {} else {\n\n        // -- normal\n        if (selfClass.$mediaNode_) {\n          if (selfClass._actualPlayer === null) {\n            return selfClass.$mediaNode_.currentTime;\n          }\n        }\n      }\n\n    }\n\n    var selfClass = this.dzsapInstance;\n\n\n    // -- trying to get current time\n\n    if ((selfClass.audioType === 'selfHosted' || (selfClass.audioType === 'fake' && selfClass._actualPlayer))) {\n      if (selfClass.audioTypeSelfHosted_streamType === '') {\n\n\n        if (selfClass.$mediaNode_ && (0,_media_media_functions__WEBPACK_IMPORTED_MODULE_0__.isValidTotalTime)(selfClass.$mediaNode_.duration)) {\n          this.referenceMediaTotalTime = selfClass.$mediaNode_.duration;\n        }\n\n        this.referenceMediaCurrentTime = getCurrentTime();\n\n\n\n        if (selfClass.playFrom === 'last' && selfClass.playFrom_ready) {\n          if (typeof Storage !== 'undefined') {\n            localStorage['dzsap_' + selfClass.the_player_id + '_lastpos'] = selfClass.timeCurrent;\n          }\n        }\n\n\n      }\n\n\n    }\n\n\n\n    if ((selfClass.audioType === 'youtube')) {\n\n      if(selfClass.$mediaNode_ && selfClass.$mediaNode_.getDuration){\n        this.referenceMediaCurrentTime = selfClass.$mediaNode_.getCurrentTime();\n        this.referenceMediaTotalTime = selfClass.$mediaNode_.getDuration();\n      }\n\n    }\n\n    if (selfClass._sourcePlayer && selfClass._sourcePlayer.get(0)) {\n\n\n      if (selfClass._sourcePlayer.get(0).api_get_time_curr) {\n        if (isNaN(selfClass._sourcePlayer.get(0).api_get_time_total()) || selfClass._sourcePlayer.get(0).api_get_time_total() === '' || selfClass._sourcePlayer.get(0).api_get_time_total() < 1) {\n          selfClass._sourcePlayer.get(0).api_set_timeVisualTotal(this.getVisualTotalTime());\n        }\n      }\n    }\n\n\n    // -- setting real times ( if actual player is not there )\n    if (selfClass._actualPlayer === null && this.referenceMediaCurrentTime > -1) {\n      selfClass.timeCurrent = this.referenceMediaCurrentTime;\n    }\n\n    if (selfClass._actualPlayer === null && this.referenceMediaTotalTime > -1) {\n      selfClass.timeTotal = this.referenceMediaTotalTime;\n    }\n\n\n    if (this.sampleTimeStart) {\n      if (this.sampleTimeEnd) {\n        if (selfClass.timeCurrent > this.sampleTimeEnd) {\n          var args = {\n            'call_from': 'time_curr>sample_time_end'\n          }\n          selfClass.handle_end(args);\n\n          selfClass.isMediaEnded = true;\n\n          clearTimeout(selfClass.inter_isEnded);\n          selfClass.inter_isEnded = setTimeout(function () {\n\n            selfClass.isMediaEnded = false;\n          }, 1000);\n        }\n      }\n    }\n  }\n\n  /**\n   * call on every playing frame\n   */\n  processCurrentFrame() {\n\n    var selfClass = this.dzsapInstance;\n    if (selfClass._sourcePlayer) {\n      if (selfClass._sourcePlayer.get(0)) {\n        if (selfClass._sourcePlayer.get(0).api_get_time_curr) {\n          selfClass._sourcePlayer.get(0).api_set_timeVisualCurrent(selfClass.timeCurrent);\n        }\n      }\n\n\n      if (selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).api_seek_to_visual) {\n        var temp_time_curr = selfClass.timeCurrent;\n        // TODO: to be continued\n\n\n        selfClass._sourcePlayer.get(0).api_seek_to_visual(temp_time_curr / selfClass.timeTotal);\n      } else {\n      }\n\n    }\n\n\n    // -- check end track\n    if (selfClass.isSafeToChangeTrack && this.timeTotal > 1 && this.timeCurrent >= this.timeTotal - 0.07) {\n      var args = {\n        'call_from': 'selfClass.timeTotal > 0 && selfClass.timeCurrent >= selfClass.timeTotal - 0.07 ... '\n      }\n\n      if (!selfClass._actualPlayer) {\n\n        selfClass.handle_end(args);\n        selfClass.isMediaEnded = true;\n\n\n        clearTimeout(selfClass.inter_isEnded);\n        selfClass.inter_isEnded = setTimeout(function () {\n          selfClass.isMediaEnded = false;\n        }, 1000);\n      }\n    }\n\n  }\n\n  getVisualCurrentTime() {\n\n    var selfClass = this.dzsapInstance;\n\n\n    if (selfClass._actualPlayer === null && this.referenceMediaCurrentTime > -1) {\n      return this.referenceMediaCurrentTime;\n    }\n\n\n    if (this.visualCurrentTime) {\n      return this.visualCurrentTime;\n    }\n\n\n    if (selfClass.playFrom) {\n      return selfClass.playFrom;\n    }\n\n    // todo: offsetVisual\n\n\n    return 0;\n  }\n\n  getActualTotalTime() {\n    return this.actualTotalTime;\n  }\n\n  /**\n   *\n   * @returns {null|number}\n   */\n  getVisualTotalTime() {\n    var selfClass = this.dzsapInstance;\n\n\n    if (this.sampleTimeTotal) {\n      return this.sampleTimeTotal;\n    }\n\n\n    if (selfClass._actualPlayer === null) {\n      if (this.referenceMediaTotalTime > -1) {\n        return this.referenceMediaTotalTime;\n      }\n    } else {\n      // -- has footer player\n\n      if (this.visualTotalTime) {\n        return this.visualTotalTime;\n      }\n      //-- last resort\n      if (this.referenceMediaTotalTime > -1) {\n        return this.referenceMediaTotalTime;\n      }\n    }\n\n\n    return 0;\n  }\n\n  /**\n   * compare target scrub time with sample times\n   * @param targetTime\n   * @returns {*}\n   */\n  getActualTargetTime(targetTime) {\n    if (this.sampleTimeStart) {\n      if (targetTime < this.sampleTimeStart) {\n        targetTime = this.sampleTimeStart;\n      }\n      if (targetTime > this.sampleTimeEnd) {\n        targetTime = this.sampleTimeEnd;\n      }\n    }\n\n    return targetTime;\n  }\n\n  getSampleTimesFromDom($targetPlayer = null) {\n    var selfClass = this.dzsapInstance;\n\n    selfClass.sample_time_start = 0;\n    selfClass.sample_time_total = 0;\n    selfClass.sample_time_start = 0;\n    selfClass.pseudo_sample_time_end = 0;\n\n\n    if ($targetPlayer === null) {\n      $targetPlayer = selfClass.cthis;\n    }\n\n\n    if ($targetPlayer.attr('data-sample_time_start')) {\n      this.sampleTimeStart = Number($targetPlayer.attr('data-sample_time_start'));\n    }\n    if ($targetPlayer.attr('data-sample_time_end')) {\n      this.sampleTimeEnd = Number($targetPlayer.attr('data-sample_time_end'));\n    }\n    if ($targetPlayer.attr('data-sample_time_total')) {\n      this.sampleTimeTotal = Number($targetPlayer.attr('data-sample_time_total'));\n    }\n\n\n    // -- *side-effect: send to selfClass\n    selfClass.sample_perc_start = selfClass.sample_time_start / selfClass.sample_time_total;\n    selfClass.sample_perc_end = selfClass.sample_time_end / selfClass.sample_time_total;\n\n\n    selfClass.isSample = !!((this.sampleTimeTotal && this.sampleTimeStart) || (this.sampleTimeStart && this.sampleTimeEnd));\n\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_time_model.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_comments.js":
/*!*******************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_comments.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 */   \"comments_handleClickCancel\": () => (/* binding */ comments_handleClickCancel),\n/* harmony export */   \"comments_handleClickCommentsBg\": () => (/* binding */ comments_handleClickCommentsBg),\n/* harmony export */   \"comments_handleClickSubmit\": () => (/* binding */ comments_handleClickSubmit),\n/* harmony export */   \"comments_selector_event\": () => (/* binding */ comments_selector_event),\n/* harmony export */   \"comments_setupCommentsHolder\": () => (/* binding */ comments_setupCommentsHolder),\n/* harmony export */   \"comments_setupCommentsInitial\": () => (/* binding */ comments_setupCommentsInitial),\n/* harmony export */   \"hide_comments_writer\": () => (/* binding */ hide_comments_writer)\n/* harmony export */ });\n/* harmony import */ var _dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __webpack_require__(/*! ../../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n\n\n\n\n\nconst TOOLTIP_ALL_TALIGN_CLASSES = `talign-start talign-center talign-end`;\nconst STRUCTURE_COMMENTS_WRITER = `<div class=\"dzstooltip dzstooltip--comments-writer    talign-center arrow-top style-rounded color-dark-light    dims-set transition-slidedown \" style=\"width: 330px;\">  <div class=\"dzstooltip--inner\"><div class=\"comments-writer\"><div class=\"comments-writer-inner\">\n<div class=\"comments-writer--form\">\n\n                <div class=\"dzsap-comments--section\">\n\n                  <textarea name=\"comment-text\" placeholder=\"Your comment..\" type=\"text\" class=\"comment-input\"></textarea>\n\n                </div>\n                <div class=\"dzsap-comments--section\">\n                  <input placeholder=\"Your email..\" name=\"comment-email\" type=\"text\" class=\"comment-input\">\n                </div>\n                <div class=\"dzsap-comments--section overflow-and-fixed  \">\n\n                  <div class=\"flex-grow-1   \"><span\n                    class=\"dzsap-comments--comment-form-label\">commenting on </span> <span\n                    class=\"dzsap-comments--comment-form-label-time\">1:07</span></div>\n                  <div class=\"flex-grow-0 margin-left-auto\"><button class=\"submit-ap-comment dzs-button-dzsap float-right\">&#10148; Submit</button></div>\n                  <div class=\"clear\"></div>\n\n                </div>\n              </div>\n\n              <div class=\"comments-writer--avatar-con\">\n                <div class=\"comments-writer--avatar\" style=\"\"></div>\n              </div>\n              </div></div><span class=\"dzstooltip--close\"><span\n              class=\"label--x-button\">&#10006;</span></span></div></div>`;\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nconst hide_comments_writer = function (selfClass) {\n\n\n  var $ = jQuery;\n\n\n  selfClass.cthis.removeClass('comments-writer-active');\n  selfClass._commentsHolder.find('.dzstooltip-con.placeholder').remove();\n  selfClass.$commentsWritter.removeClass('active');\n  selfClass.$commentsWritter.css({\n    'height': 0\n  })\n\n\n  if (selfClass.initOptions.parentgallery && $(selfClass.initOptions.parentgallery).get(0) !== undefined && $(selfClass.initOptions.parentgallery).get(0).api_handleResize !== undefined) {\n    $(selfClass.initOptions.parentgallery).get(0).api_handleResize();\n  }\n\n  setTimeout(function () {\n\n    selfClass.cthis.find('.comments-writter-temp-css,.dzsap-style-comments').remove();\n  }, 300);\n};\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nconst comments_setupCommentsInitial = function (selfClass) {\n\n\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n\n\n  if (selfClass.cthis.find('.the-comments').length > 0 && selfClass.cthis.find('.the-comments').eq(0).children().length > 0) {\n    selfClass.$commentsChildren = selfClass.cthis.find('.the-comments').eq(0).children();\n  }\n\n  var str_comments_holder = '<div class=\"comments-holder\">';\n\n\n  if (o.skinwave_comments_links_to) {\n\n    str_comments_holder += '<a href=\"' + o.skinwave_comments_links_to + '\" target=\"_blank\" class=\"the-bg\"></a>';\n  } else {\n\n    str_comments_holder += '<div class=\"the-comments-holder-bg\"><div class=\"the-avatar comments-avatar--placeholder\"></div></div>';\n  }\n\n\n  str_comments_holder += '</div><div class=\"clear\"></div>' + STRUCTURE_COMMENTS_WRITER;\n\n\n  selfClass._scrubbar.appendOnce(str_comments_holder);\n  selfClass._commentsHolder = selfClass.cthis.find('.comments-holder').eq(0);\n  selfClass.$commentsWritter = selfClass.cthis.find('.dzstooltip--comments-writer').eq(0);\n\n\n  comments_setupCommentsHolder(selfClass);\n\n\n  selfClass._commentsHolder.on('click', function (e) {\n    comments_handleClickCommentsBg(selfClass, this, e);\n  });\n  selfClass._commentsHolder.on('mousemove', function (e) {\n\n    selfClass._commentsHolder.find('.comments-avatar--placeholder').css('left', `${(0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__.getRelativeX)(e.pageX, e.currentTarget) - 7}px`)\n\n  });\n  selfClass.$commentsWritter.find('.dzstooltip--close').on('click', (e) => {\n    comments_handleClickCancel(selfClass, e);\n  });\n  selfClass.$commentsWritter.find('.submit-ap-comment').on('click', (e) => {\n    comments_handleClickSubmit(selfClass, e);\n  });\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nconst comments_setupCommentsHolder = function (selfClass) {\n\n\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n\n  if (selfClass._commentsHolder && selfClass.$commentsChildren) {\n\n\n    selfClass.$commentsChildren.each(function () {\n\n      var _c = $(this);\n\n\n      if (o.skinwave_comments_process_in_php === 'on') {\n\n        if (_c && _c.hasClass && _c.hasClass('dzstooltip-con')) {\n          if (_c.find('.dzstooltip > .dzstooltip--inner').length) {\n\n          } else {\n\n\n            _c.find('.dzstooltip').wrapInner('<div class=\"dzstooltip--inner\"></div>');\n\n\n            _c.find('.the-avatar').addClass('tooltip-indicator');\n            _c.find('.dzstooltip').before(_c.find('.tooltip-indicator'));\n            _c.find('.dzstooltip').addClass('talign-start style-rounded color-dark-light');\n          }\n        }\n      }\n\n      selfClass._commentsHolder.append(_c);\n    })\n  }\n\n}\n\nfunction comments_updateCommentHolderTimerWhenReady(selfClass, percClickFromScrubWidth) {\n\n\n  if (selfClass.timeModel.getVisualTotalTime()) {\n\n    selfClass.$commentsWritter.find('.dzsap-comments--comment-form-label-time').html((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__.formatTime)(percClickFromScrubWidth * selfClass.timeModel.getVisualTotalTime()));\n  } else {\n    setTimeout(() => {\n      comments_updateCommentHolderTimerWhenReady(selfClass, percClickFromScrubWidth);\n    }, 100);\n  }\n\n}\n\nconst comments_handleClickCommentsBg = function (selfClass, argThis, e) {\n\n\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n\n  var $commentsHolder = $(argThis);\n\n  var leftMouseX = parseInt(e.clientX, 10) - $commentsHolder.offset().left;\n  let percClickFromScrubWidth = leftMouseX / $commentsHolder.width();\n\n\n  selfClass.commentPositionPerc = `calc(${(percClickFromScrubWidth) * 100}% - 7px)`;\n\n\n  comments_updateCommentHolderTimerWhenReady(selfClass, percClickFromScrubWidth);\n\n  if (o.skinwave_comments_links_to) {\n    return;\n  }\n  if (o.skinwave_comments_allow_post_if_not_logged_in === 'off' && !(window.dzsap_settings && window.dzsap_settings.comments_username)) {\n    return false;\n  }\n\n  // -- start\n\n  var sw = true;\n\n\n  selfClass._commentsHolder.children().each(function () {\n    var $commentElement = $(this);\n\n\n    if ($commentElement.hasClass('placeholder') || $commentElement.hasClass('the-bg')) {\n      return;\n    }\n\n    var lmx2 = $commentElement.offset().left - $commentsHolder.offset().left;\n\n\n    if (Math.abs(lmx2 - leftMouseX) < 20) {\n      selfClass._commentsHolder.find('.dzstooltip-con.placeholder').remove();\n      sw = false;\n\n      return false;\n    }\n  })\n\n\n  if (!sw) {\n    return false;\n  }\n\n\n  // todo: assign left on tooltip\n  selfClass.$commentsWritter.css({\n    'left': `${leftMouseX}px`\n  })\n\n\n  selfClass.$commentsWritter.css('top', ((parseInt(selfClass._commentsHolder.css('top'), 10) + 20) + 'px'))\n\n\n  if (selfClass.$commentsWritter.hasClass('active') === false) {\n    selfClass.$commentsWritter.addClass('active');\n    selfClass.cthis.addClass('comments-writer-active');\n  }\n\n\n  if (window.dzsap_settings && window.dzsap_settings.comments_username) {\n    selfClass.cthis.find('input[name=comment-email]').remove();\n  } else {\n    selfClass.$commentsWritter.find('.comments-writer--avatar-con').remove();\n  }\n\n\n  add_comments_placeholder(selfClass);\n\n\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction add_comments_placeholder(selfClass) {\n\n  var strCommentsAvatarUrl = '';\n\n  if (window.dzsap_settings && window.dzsap_settings.comments_avatar) {\n    strCommentsAvatarUrl = window.dzsap_settings.comments_avatar;\n  }\n\n  selfClass._commentsHolder.remove('.dzsap-style-comments');\n  selfClass._commentsHolder.append('<style class=\"dzsap-style-comments\">.dzstooltip-con:not(.placeholder) { opacity: 0.5; }</style>')\n  selfClass._commentsHolder.find('.dzstooltip-con.placeholder').remove();\n  selfClass._commentsHolder.append('<span class=\"dzstooltip-con placeholder\" style=\"left:' + selfClass.commentPositionPerc + ';\"><div class=\"the-avatar\" style=\"background-image: url(' + strCommentsAvatarUrl + ')\"></div></span>');\n}\n\nconst comments_handleClickCancel = function (selfClass, e) {\n  hide_comments_writer(selfClass);\n}\n\n\nfunction comment_submit(selfClass, comment_text, comment_email, comment_username) {\n\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n\n  var comm_author = '';\n  if (comment_email) {\n    const regex_mail = /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n    if (regex_mail.test(comment_email) == false) {\n      alert('please insert email, your email is just used for gravatar. it will not be sent or stored anywhere');\n      return false;\n    }\n\n    comm_author = String(comment_email).split('@')[0];\n\n\n    if (selfClass.$commentsSelector) {\n\n      selfClass.$commentsSelector.find('*[name=comment_email],*[name=comment_user]').remove();\n    }\n\n    if (!window.dzsap_settings) {\n      window.dzsap_settings = {};\n    }\n\n    window.dzsap_settings.comments_username = comm_author;\n    window.dzsap_settings.comments_avatar = 'https://secure.gravatar.com/avatar/' + window.MD5(String(selfClass.cthis.find('input[name=comment-email]').eq(0).val()).toLowerCase()) + '?s=20';\n  }\n\n\n  var aux = '';\n\n\n  // -- process php\n\n  aux += comment_text;\n\n\n  selfClass.cthis.find('*[name=comment-text]').eq(0).val('');\n\n\n  selfClass.cthis.find('.comments-writter-temp-css,.dzsap-style-comments').remove();\n\n\n  (_dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__.ajax_comment_publish.bind(selfClass))(aux);\n\n  hide_comments_writer(selfClass);\n\n  if (o.parentgallery && $(o.parentgallery).get(0) != undefined && $(o.parentgallery).get(0).api_player_commentSubmitted != undefined) {\n    $(o.parentgallery).get(0).api_player_commentSubmitted();\n  }\n\n}\n\n\n/**\n *\n * @param selfClass\n * @param e\n * @returns {boolean}\n */\nconst comments_handleClickSubmit = function (selfClass, e) {\n\n  var comment_email = '';\n\n  if (selfClass.cthis.find('input[name=comment-email]').length) {\n    comment_email = selfClass.cthis.find('input[name=comment-email]').eq(0).val();\n  }\n\n\n  comment_submit(selfClass, selfClass.cthis.find('*[name=comment-text]').eq(0).val(), comment_email);\n\n\n  return false;\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param e\n * @returns {boolean}\n */\nconst comments_selector_event = function (selfClass, e) {\n  const $ = jQuery;\n  const _t = $(this);\n  let _con = null;\n\n\n  if (_t.parent().parent().hasClass('zoomsounds-comment-wrapper')) {\n    _con = _t.parent().parent();\n  }\n  if (_t.parent().parent().parent().hasClass('zoomsounds-comment-wrapper')) {\n    _con = _t.parent().parent().parent();\n  }\n\n  if (e.type == 'focusin') {\n    var spx = selfClass.timeCurrent / selfClass.timeTotal * selfClass._commentsHolder.width();\n    spx += 'px';\n    selfClass.commentPositionPerc = `calc(${selfClass.timeCurrent / selfClass.timeTotal * 100}% - 7px)`;\n\n    _con.addClass('active');\n\n    add_comments_placeholder(selfClass);\n  }\n  if (e.type == 'focusout') {\n\n\n  }\n  if (e.type == 'click') {\n\n    if (_t.hasClass('dzstooltip--close')) {\n\n      _con.removeClass('active');\n      _con.find('input').val('');\n    }\n    if (_t.hasClass('comments-btn-submit')) {\n\n\n      var comment_email = '';\n\n      if (_con.find('.comment_email').length) {\n        comment_email = _con.find('.comment_email').eq(0).val();\n      }\n\n\n      comment_submit(selfClass, _con.find('.comment_text').eq(0).val(), comment_email);\n\n\n      _con.removeClass('active');\n      _con.find('input').val('');\n\n\n      return false;\n    }\n\n\n  }\n}\n\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_comments.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_structure.js":
/*!********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_structure.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 */   \"setup_structure\": () => (/* binding */ setup_structure),\n/* harmony export */   \"setup_structure_extras\": () => (/* binding */ setup_structure_extras)\n/* harmony export */ });\n/* harmony import */ var _extra_functionality_extraHtmlFunctions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../extra-functionality/_extraHtmlFunctions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_extraHtmlFunctions.js\");\n/* harmony import */ var _extra_functionality_innerPlaylist__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../extra-functionality/_innerPlaylist */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_innerPlaylist.js\");\n/* harmony import */ var _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_dzsap_svgs */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js\");\n/* harmony import */ var _view_player_view_playerStructure__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/player/_view_playerStructure */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_playerStructure.js\");\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n\n\n\n\n\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param o\n */\nfunction setup_structure_extras(selfClass, o) {\n\n\n  if (o.design_skin === 'skin-wave' && selfClass.skinwave_mode === 'bigwavo') {\n    selfClass._audioplayerInner.after(selfClass._scrubbar);\n\n    if (selfClass.cthis.find('.feed-description')) {\n      selfClass.$conControls.after(selfClass.cthis.find('.feed-description').eq(0));\n      selfClass.$conControls.next().removeClass('feed-description').addClass('song-desc');\n    }\n  }\n\n\n  selfClass.radio_isGoingToUpdateSongName = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.player_radio_isNameUpdatable)(selfClass, selfClass.radio_isGoingToUpdateSongName, '.the-songname');\n  selfClass.radio_isGoingToUpdateArtistName = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.player_radio_isNameUpdatable)(selfClass, selfClass.radio_isGoingToUpdateArtistName, '.the-artist');\n\n\n  if (o.disable_scrub === 'on') {\n    selfClass.cthis.addClass('disable-scrubbar');\n  }\n\n\n  const struct_embedButtonWithTooltip = `<div class=\"btn-embed-code-con dzstooltip-con \"><div class=\"btn-embed-code player-but \"> <div class=\"the-icon-bg\"></div>${_dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.svg_embed_btn}</div><span class=\"dzstooltip   transition-slidein arrow-bottom talign-end style-rounded color-dark-light \" style=\"width: 350px; \"><span class=\"dzstooltip--inner\"><span class=\"embed-code--text\"></span></span></span></div>`;\n\n  if (selfClass.feedEmbedCode !== '') {\n    (0,_extra_functionality_extraHtmlFunctions__WEBPACK_IMPORTED_MODULE_0__.feedEmbedFunctionality)(selfClass, jQuery, struct_embedButtonWithTooltip)\n  }\n\n  if (o.footer_btn_playlist === 'on') {\n    if (selfClass._apControlsRight.find('.btn-footer-playlist').length === 0) {\n\n      selfClass.classFunctionalityInnerPlaylist = new _extra_functionality_innerPlaylist__WEBPACK_IMPORTED_MODULE_1__.DzsapInnerPlaylist(selfClass);\n      selfClass.classFunctionalityInnerPlaylist.init();\n    }\n\n  }\n\n\n  setTimeout(function () {\n\n    if (selfClass.cthis.find('.extra-html').length) {\n      (0,_extra_functionality_extraHtmlFunctions__WEBPACK_IMPORTED_MODULE_0__.extraHtmlBottomFunctionality)(selfClass);\n    }\n  }, 100);\n\n  setTimeout(function () {\n    if (selfClass.cthis.html().indexOf('dzsap-multisharer-but') > -1) {\n      selfClass.isMultiSharer = true;\n      selfClass.check_multisharer();\n    }\n  }, 1002);\n\n\n  if (selfClass.cthis.find('.afterplayer').length > 0) {\n\n    selfClass.cthis.append(selfClass.cthis.find('.afterplayer'));\n  }\n\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction structure_generatePlayPauseString(selfClass) {\n\n  const o = selfClass.initOptions;\n\n  let structConPlayPause = '';\n  if (o.settings_extrahtml_before_play_pause) {\n    structConPlayPause += o.settings_extrahtml_before_play_pause;\n\n\n  }\n\n\n  structConPlayPause += '<div class=\"con-playpause-con\">';\n\n  structConPlayPause = addExtraHtmlInPlace(selfClass, '.feed-dzsap-before-playpause', '') + structConPlayPause;\n\n  structConPlayPause += '<div class=\"con-playpause';\n\n  if (selfClass.keyboard_controls.show_tooltips === 'on') {\n    structConPlayPause += ' dzstooltip-con';\n  }\n\n  structConPlayPause += '\">';\n  if (selfClass.keyboard_controls.show_tooltips === 'on') {\n    structConPlayPause += (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.dzsap_generate_keyboard_tooltip)(selfClass.keyboard_controls, 'pause_play');\n  }\n\n\n  structConPlayPause += '<div class=\"playbtn player-but\" aria-controls=\"' + selfClass.uniqueId + '-audio\"><div class=\"the-icon-bg\"></div><div class=\"dzsap-play-icon\">';\n\n\n  structConPlayPause += _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.playbtn_svg;\n\n\n  structConPlayPause += `</div><div class=\"media-load--preloader\"><img alt=\"preloader\" class=\"\" src=\"${window.dzsap_base_url}parts/assets/view-preloader.svg\"/></div>`;\n  structConPlayPause += '</div>'; // -- end playbtn\n\n\n  structConPlayPause += '<div class=\"pausebtn player-but\"';\n\n\n  structConPlayPause += '><div class=\"the-icon-bg\"></div><div class=\"pause-icon\">';\n\n\n  structConPlayPause += _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.pausebtn_svg;\n\n\n  structConPlayPause += '</div>';// -- end pause-icon\n  structConPlayPause += '</div>'; // -- end pausebtn\n\n\n  structConPlayPause += '';\n\n\n  structConPlayPause += '</div>';\n\n  // -- todo: check if correct one\n  if (selfClass.cthis.find('.feed-dzsap-after-playpause').length) {\n    structConPlayPause += addExtraHtmlInPlace(selfClass, '.feed-dzsap-after-playpause', '');\n  }\n\n  structConPlayPause += '</div>';\n\n\n  return structConPlayPause;\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction setup_structure__setup_wrapper_image(selfClass) {\n\n  var img = new Image();\n\n\n  if (selfClass.cthis.hasClass('zoomsounds-no-wrapper') === false) {\n\n    img.onload = function () {\n\n\n      selfClass.cthis.css('background-image', 'url(' + this.src + ')');\n\n      setTimeout(function () {\n\n        selfClass.cthis.find('.zoomsounds-bg').addClass('loaded');\n\n\n        if (selfClass.cthis.hasClass('zoomsounds-wrapper-bg-bellow')) {\n\n          selfClass.cthis.css('padding-top', 200);\n        }\n      }, 100);\n    }\n\n    img.src = selfClass.cthis.attr('data-wrapper-image');\n  }\n\n}\n\n/**\n * setup player structure , called from init\n * @param {DzsAudioPlayer} selfClass\n * @param pargs\n * @returns {boolean}\n */\nconst setup_structure = function (selfClass, pargs) {\n\n\n  // -- setup structure here\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n\n\n  var margs = {\n    'setup_inner_player': true\n    , 'setup_media': true\n    , 'setup_otherstructure': true\n    , 'call_from': \"default\"\n\n\n  }\n\n\n  if (pargs) {\n    margs = $.extend(margs, pargs);\n  }\n\n\n  if (margs.call_from === 'reconstruct') {\n    if (selfClass._metaArtistCon) {\n\n\n    }\n\n\n    selfClass._metaArtistCon = null;\n    if (selfClass.cthis.hasClass('skin-wave')) {\n      o.design_skin = 'skin-wave';\n    }\n    if (selfClass.cthis.hasClass('skin-silver')) {\n      o.design_skin = 'skin-silver';\n    }\n  }\n\n\n  var structure_str_apControls = '<div class=\"ap-controls';\n\n  if (o.design_skin === 'skin-default') {\n    structure_str_apControls += ' dzsap-color_inverse_ui_fill';\n  }\n  structure_str_apControls += '\"></div>'\n\n  if (margs.setup_inner_player) {\n    selfClass.cthis.appendOnce('<div class=\"audioplayer-inner\"></div>');\n    selfClass._audioplayerInner = selfClass.cthis.children('.audioplayer-inner');\n  }\n\n\n  // -- end setup inner\n\n\n  if (!margs.setup_otherstructure) {\n    return false;\n  }\n\n\n  if (selfClass.cthis.attr('data-wrapper-image')) {\n    setup_structure__setup_wrapper_image(selfClass);\n  }\n\n\n  var structure_str_scrubbar = '<div class=\"scrubbar\">';\n  var aux_str_con_controls = '';\n\n  var aux_str_time = '';\n\n\n  structure_str_scrubbar += '<div class=\"scrub-bg\"></div><div class=\"scrub-buffer\"></div>';\n\n  structure_str_scrubbar += '<div class=\"scrub-prog';\n\n  if (o.scrubbar_type !== 'wave') {\n    structure_str_scrubbar += ' dzsap-color_brand_bg';\n  }\n\n  structure_str_scrubbar += '\"></div><div class=\"scrubBox\"></div><div class=\"scrubBox-prog\"></div><div class=\"scrubBox-hover\"></div>';\n  aux_str_time = '<div class=\"total-time\">00:00</div><div class=\"curr-time\">00:00</div>';\n\n\n  if (selfClass.sample_perc_start) {\n\n    structure_str_scrubbar += '<div class=\"sample-block-start\" style=\"width: ' + (selfClass.sample_perc_start * 100) + '%\"></div>'\n  }\n  if (selfClass.sample_perc_end) {\n\n    structure_str_scrubbar += '<div class=\"sample-block-end\" style=\"left: ' + (selfClass.sample_perc_end * 100) + '%; width: ' + (100 - (selfClass.sample_perc_end * 100)) + '%\"></div>'\n  }\n\n  structure_str_scrubbar += '</div>'; // -- end scrubbar\n\n\n  if (o.controls_external_scrubbar) {\n    structure_str_scrubbar = '';\n  }\n\n\n  var struct_con_playpause = '';\n\n  struct_con_playpause += structure_generatePlayPauseString(selfClass);\n\n\n  aux_str_con_controls += '<div class=\"con-controls\"><div class=\"the-bg\"></div>' + struct_con_playpause;\n\n\n  if (selfClass.extraHtmlAreas.controlsLeft) {\n    aux_str_con_controls += selfClass.extraHtmlAreas.controlsLeft;\n  }\n\n\n  if (o.design_skin === 'skin-pro') {\n    aux_str_con_controls += '<div class=\"con-controls--right\">';\n    aux_str_con_controls += '</div>';\n  }\n\n\n  var aux_str_con_volume = '<div class=\"controls-volume\"><div class=\"volumeicon\"></div><div class=\"volume_static\"></div><div class=\"volume_active\"></div><div class=\"volume_cut\"></div></div>';\n  if (o.disable_volume === 'on') {\n    aux_str_con_volume = '';\n  }\n\n\n  if (o.design_skin === 'skin-default' || o.design_skin === 'skin-wave') {\n\n    aux_str_con_controls += '<div class=\"ap-controls-right\">';\n    if (o.disable_volume !== 'on') {\n      aux_str_con_controls += '<div class=\"controls-volume\"><div class=\"volumeicon\"></div><div class=\"volume_static\"></div><div class=\"volume_active\"></div><div class=\"volume_cut\"></div></div>';\n    }\n\n\n    aux_str_con_controls += '</div>';\n\n\n  }\n\n  aux_str_con_controls += '</div>'; // -- end con-controls\n\n\n/// -- end STR\n\n\n  if (o.design_skin === 'skin-wave' && selfClass.skinwave_mode === 'small') {\n    aux_str_con_controls = '<div class=\"the-bg\"></div><div class=\"ap-controls-left\">' + struct_con_playpause + '</div>' + structure_str_scrubbar + '<div class=\"ap-controls-right\">' + aux_str_con_volume + '<div class=\"extrahtml-in-float-right for-skin-wave-small\">' + selfClass.extraHtmlAreas.controlsRight + '</div></div>';\n\n\n  } else {\n\n\n    // -- other skins\n\n    if (o.design_skin === 'skin-aria' || o.design_skin === 'skin-silver' || o.design_skin === 'skin-redlights' || o.design_skin === 'skin-steel') {\n\n\n      let playbtnSvg = _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.playbtn_svg;\n      let pausebtnSvg = _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.pausebtn_svg;\n      if (o.design_skin === 'skin-steel') {\n        playbtnSvg = '';\n        pausebtnSvg = '';\n      }\n\n      aux_str_con_controls = '<div class=\"the-bg\"></div><div class=\"ap-controls-left\">';\n\n\n      if (o.design_skin === 'skin-silver') {\n\n        aux_str_con_controls += struct_con_playpause;\n      } else {\n\n\n        aux_str_con_controls += '<div class=\"con-playpause';\n\n        if (selfClass.keyboard_controls.show_tooltips === 'on') {\n          aux_str_con_controls += ' dzstooltip-con';\n        }\n\n        aux_str_con_controls += '\">';\n\n\n        if (selfClass.keyboard_controls.show_tooltips === 'on') {\n          aux_str_con_controls += (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.dzsap_generate_keyboard_tooltip)(selfClass.keyboard_controls, 'pause_play');\n        }\n\n\n        aux_str_con_controls += '<div class=\"playbtn player-but playbtn-not-skin-silver\"><div class=\"dzsap-play-icon\">' + playbtnSvg + '</div></div><div class=\"pausebtn player-but\" ';\n\n\n        aux_str_con_controls += '><div class=\"pause-icon\">' + pausebtnSvg + '</div></div></div>'; // -- enc con-playpause\n\n      }\n\n\n      // todo: check\n      // addExtraHtmlInPlace(selfClass, '.feed-dzsap-after-playpause', struct_con_playpause);\n\n\n      aux_str_con_controls += '</div>';\n\n\n      if (selfClass.extraHtmlAreas.controlsRight) {\n        aux_str_con_controls += '<div class=\"controls-right\">' + selfClass.extraHtmlAreas.controlsRight + '</div>';\n\n\n        if (o.design_skin === 'skin-redlights') {\n\n\n          if (o.parentgallery && o.parentgallery.get(0).api_skin_redlights_give_controls_right_to_all) {\n            o.parentgallery.get(0).api_skin_redlights_give_controls_right_to_all();\n          }\n        }\n      }\n\n\n      aux_str_con_controls += '<div class=\"ap-controls-right\">';\n\n      if (o.design_skin === 'skin-silver') {\n\n        aux_str_con_controls += '<div class=\"controls-volume controls-volume-vertical\"><div class=\"volumeicon\"></div><div class=\"volume-holder\"><div class=\"volume_static\"></div><div class=\"volume_active\"></div><div class=\"volume_cut\"></div></div></div>';\n\n\n        aux_str_con_controls += '</div>' + structure_str_scrubbar;\n      } else {\n\n\n        if (o.design_skin === 'skin-redlights') {\n\n          if (o.disable_volume != 'on') {\n            aux_str_con_controls += '<div class=\"controls-volume\"><div class=\"volumeicon\"></div><div class=\"volume_static\"></div><div class=\"volume_active\"></div><div class=\"volume_cut\"></div></div>';\n          }\n        }\n\n        aux_str_con_controls += structure_str_scrubbar;\n\n\n        if (o.disable_timer != 'on') {\n          aux_str_con_controls += '<div class=\"total-time\">00:00</div>';\n        }\n      }\n\n\n      if (o.design_skin === 'skin-silver') {\n\n      } else {\n        aux_str_con_controls += '</div>';\n      }\n\n\n    }\n\n\n  }\n\n\n// -- end strings\n// --------------\n\n  if (margs.setup_media) {\n    selfClass._audioplayerInner.append('<div class=\"the-media\"></div>');\n    selfClass.$theMedia = selfClass._audioplayerInner.children('.the-media').eq(0);\n  }\n  if (o.design_skin !== 'skin-customcontrols') {\n    selfClass._audioplayerInner.append(structure_str_apControls);\n  }\n\n  selfClass._apControls = selfClass._audioplayerInner.children('.ap-controls').eq(0);\n  selfClass._apControls.append(aux_str_con_controls);\n\n\n  if (selfClass.cthis.hasClass('skin-wave-mode-alternate')) {\n    if (selfClass.cthis.find('.scrubbar').length === 0) {\n      selfClass._apControls.append(structure_str_scrubbar);\n    }\n  } else {\n    if (selfClass.cthis.find('.scrubbar').length === 0) {\n      selfClass._apControls.prepend(structure_str_scrubbar);\n    }\n  }\n\n\n  selfClass._apControlsRight = null;\n\n  if (selfClass._apControls.find('.ap-controls-right').length > 0) {\n    selfClass._apControlsRight = selfClass.cthis.find('.ap-controls-right');\n  }\n  if (selfClass._apControls.find('.ap-controls-left').length > 0) {\n    selfClass._apControlsLeft = selfClass._apControls.find('.ap-controls-left').eq(0);\n  }\n\n\n  if (o.design_skin === 'skin-pro') {\n    selfClass._apControlsRight = selfClass.cthis.find('.con-controls--right').eq(0)\n  }\n\n\n// -- Todo: if we have footer, playlist btn we can place it in ap-controls-right\n\n\n  addExtraHtmlInPlace(selfClass, '.feed-dzsap--custom-controls', null, selfClass._audioplayerInner);\n  addExtraHtmlInPlace(selfClass, '.feed-dzsap-after-con-controls', null, selfClass._apControls);\n\n\n  if (o.controls_external_scrubbar) {\n    selfClass._scrubbar = $(o.controls_external_scrubbar).children('.scrubbar').eq(0);\n  } else {\n    selfClass._scrubbar = selfClass._apControls.find('.scrubbar').eq(0);\n  }\n\n  if (selfClass._scrubbar.length === 0) {\n    selfClass.initOptions.scrubbar_type = 'none';\n  }\n\n\n  selfClass.$$scrubbProg = selfClass._scrubbar.find('.scrub-prog').get(0);\n\n\n  selfClass.$conControls = selfClass._apControls.children('.con-controls');\n  selfClass.$conPlayPause = selfClass.cthis.find('.con-playpause').eq(0);\n  selfClass._conPlayPauseCon = selfClass.cthis.find('.con-playpause-con').eq(0);\n  selfClass.$controlsVolume = selfClass.cthis.find('.controls-volume').eq(0);\n\n\n  (_view_player_view_playerStructure__WEBPACK_IMPORTED_MODULE_3__.player_constructArtistAndSongCon.bind(selfClass))(margs);\n\n\n  selfClass._scrubbar.addClass('scrubbar-inited');\n  if (o.scrubbar_type === 'wave' && o.disable_timer != 'on') {\n    // -- no sense in adding time if external\n    if (o.controls_external_scrubbar === '') {\n      selfClass._scrubbar.append(aux_str_time);\n    }\n  }\n\n\n  if (o.design_skin != 'skin-wave' && o.disable_timer != 'on') {\n    // aux_str_con_controls += '<div class=\"curr-time\">00:00</div><div class=\"total-time\">00:00</div>';\n\n    // -- all skins\n    selfClass._apControls.append(aux_str_time);\n  }\n\n\n// -- end structure\n\n\n// -- start assocations\n  if (o.disable_timer != 'on') {\n    selfClass.$currTime = selfClass.cthis.find('.curr-time').eq(0);\n    selfClass.$totalTime = selfClass.cthis.find('.total-time').eq(0);\n\n    if (o.design_skin === 'skin-steel') {\n      if (selfClass.$currTime.length === 0) {\n        selfClass.$totalTime.before('<div class=\"curr-time\">00:00</div> <span class=\"separator-slash\">/</span> ');\n\n\n        selfClass.$currTime = selfClass.$totalTime.prev().prev();\n\n      }\n    }\n\n\n  }\n\n\n  if (Number(o.sample_time_total) > 0) {\n\n    selfClass.timeTotal = Number(o.sample_time_total);\n\n\n    if (selfClass.$totalTime) {\n\n\n      selfClass.$totalTime.html((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_4__.formatTime)(selfClass.time_total_for_visual));\n    }\n\n\n  }\n\n\n  selfClass.setupStructure_thumbnailCon();\n\n\n  if (o.design_skin === 'skin-wave' && o.parentgallery && typeof (o.parentgallery) != 'undefined' && o.design_menu_show_player_state_button === 'on') {\n    if (o.design_skin === 'skin-wave') {\n      if (selfClass._apControlsRight) {\n\n        selfClass._apControlsRight.appendOnce('<div class=\"btn-menu-state player-but\"> <div class=\"the-icon-bg\"></div> ' + _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.svg_menu_state + '    </div></div>');\n      } else {\n      }\n    } else {\n      selfClass._audioplayerInner.appendOnce('<div class=\"btn-menu-state\"></div>');\n    }\n  }\n\n  if (o.skinwave_place_metaartist_after_volume === 'on') {\n\n    selfClass.$controlsVolume.before(selfClass._metaArtistCon);\n  }\n\n\n  if (o.skinwave_place_thumb_after_volume === 'on') {\n\n    selfClass.$controlsVolume.before(selfClass.cthis.find('.the-thumb-con'));\n  }\n\n\n  if (o.design_skin === 'skin-wave') {\n\n\n    // -- structure setup\n\n    selfClass.setup_structure_scrub();\n\n\n    if (o.skinwave_timer_static === 'on') {\n      if (selfClass.$currTime) {\n        selfClass.$currTime.addClass('static');\n      }\n      if (selfClass.$totalTime) {\n        selfClass.$totalTime.addClass('static');\n      }\n    }\n\n\n    selfClass._apControls.css({\n      //'height': design_thumbh\n    })\n\n\n    if (o.skinwave_wave_mode === 'canvas') {\n\n      setTimeout(function () {\n        selfClass.cthis.addClass('scrubbar-loaded');\n        selfClass._scrubbar.parent().addClass('scrubbar-loaded');\n\n\n      }, 700); // -- tbc\n\n    }\n\n  }\n// --- END skin-wave\n\n\n  selfClass.check_multisharer();\n\n  if (selfClass.cthis.hasClass('skin-minimal')) {\n    // -- here is skin-minimal\n\n    selfClass.cthis.find('.the-bg').before('<div class=\"skin-minimal-bg skin-minimal--outer-bg\"></div><div class=\"skin-minimal-bg skin-minimal--inner-bg-under dzsap-color_brand_bg\"></div><div class=\"skin-minimal-bg skin-minimal--inner-bg\"></div><div class=\"skin-minimal-bg skin-minimal--inner-inner-bg dzsap-color_brand_bg\"></div>')\n    selfClass.cthis.find('.the-bg').append('<canvas width=\"100\" height=\"100\" class=\"playbtn-canvas\"/>')\n    selfClass.skin_minimal_canvasplay = selfClass.cthis.find('.playbtn-canvas').eq(0).get(0);\n\n    if (selfClass.$conPlayPause) {\n\n      selfClass.$conPlayPause.children('.playbtn').append(_dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.playbtn_svg);\n      selfClass.$conPlayPause.children('.pausebtn').append(_dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.pausebtn_svg);\n    }\n\n    setTimeout(function () {\n      selfClass.isCanvasFirstDrawn = false;\n    }, 200);\n  }\n\n\n  if (selfClass.cthis.hasClass('skin-minion')) {\n    if (selfClass.cthis.find('.menu-description').length > 0) {\n\n      selfClass.$conPlayPause.addClass('with-tooltip');\n      selfClass.$conPlayPause.prepend('<span class=\"dzstooltip\" style=\"left:-7px;\">' + selfClass.cthis.find('.menu-description').html() + '</span>');\n      selfClass.$conPlayPause.children('span').eq(0).css('width', selfClass.$conPlayPause.children('span').eq(0).textWidth() + 10);\n    }\n  }\n\n\n  if (o.player_navigation === 'default') {\n\n    if (o.parentgallery) {\n\n      o.player_navigation = 'on';\n    }\n\n\n    if (o.parentgallery && o.parentgallery.hasClass('mode-showall')) {\n      o.player_navigation = 'off';\n    }\n  }\n\n  if (o.disable_player_navigation === 'on') {\n\n    o.player_navigation = 'off';\n  }\n\n  if (o.player_navigation === 'default') {\n\n    o.player_navigation = 'off';\n  }\n\n\n  if (o.player_navigation === 'on') {\n\n    var prev_btn_str = '<div class=\"prev-btn player-but\"><div class=\"the-icon-bg\"></div>' + _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.svg_prev_btn + ' </div>';\n\n    var next_btn_str = '<div class=\"next-btn player-but\"><div class=\"the-icon-bg\"></div>' + _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.svg_next_btn + '  </div>';\n\n\n    var auxs = prev_btn_str + next_btn_str;\n\n\n    // -- create player navigation here\n    if ((o.design_skin === 'skin-wave' && selfClass.skinwave_mode === 'small') || o.design_skin === 'skin-aria') {\n\n\n      selfClass.$conPlayPause.before(prev_btn_str)\n      selfClass.$conPlayPause.after(next_btn_str)\n\n\n    } else {\n      if (o.design_skin === 'skin-wave') {\n\n\n        if (o.player_navigation === 'on') {\n\n          selfClass._conPlayPauseCon.prependOnce(prev_btn_str, '.prev-btn');\n          selfClass._conPlayPauseCon.appendOnce(next_btn_str, '.next-btn');\n        }\n\n      } else if (o.design_skin === 'skin-steel') {\n\n        selfClass._apControlsLeft.prependOnce(prev_btn_str, '.prev-btn');\n\n        if (selfClass._apControlsLeft.children('.the-thumb-con').length > 0) {\n\n\n          if (selfClass._apControlsLeft.children('.the-thumb-con').eq(0).length > 0) {\n            if (selfClass._apControlsLeft.children('.the-thumb-con').eq(0).prev().hasClass('next-btn') === false) {\n              selfClass._apControlsLeft.children('.the-thumb-con').eq(0).before(next_btn_str);\n            }\n          }\n\n        } else {\n\n          selfClass._apControlsLeft.appendOnce(next_btn_str, '.next-btn');\n        }\n      } else {\n\n        selfClass._audioplayerInner.appendOnce(auxs, '.prev-btn');\n      }\n    }\n\n  }\n\n\n  if (selfClass.cthis.hasClass('skinvariation-wave-bigtitles')) {\n    if (selfClass.cthis.find('.controls-volume').length && selfClass._metaArtistCon.find('.controls-volume').length === 0) {\n      selfClass._metaArtistCon.append('<br>');\n      selfClass._metaArtistCon.append(selfClass.cthis.find('.controls-volume'));\n    }\n\n  }\n\n  if (selfClass.cthis.hasClass('skinvariation-wave-righter')) {\n\n    selfClass._apControls.appendOnce('<div class=\"playbuttons-con\"></div>');\n    var _c = selfClass.cthis.find('.playbuttons-con').eq(0);\n    _c.append(selfClass.cthis.find('.con-playpause-con'));\n\n  }\n\n\n  if (o.design_skin === 'skin-pro') {\n\n    selfClass._apControlsRight.append(selfClass.$currTime);\n    selfClass._apControlsRight.append(selfClass.$totalTime);\n  }\n\n\n  if (o.design_skin === 'skin-silver') {\n    selfClass._scrubbar.after(selfClass._apControlsRight);\n    selfClass._apControlsLeft.prepend(selfClass._metaArtistCon);\n    selfClass._apControlsLeft.append(selfClass.$currTime);\n    selfClass._apControlsRight.append(selfClass.$totalTime);\n\n\n  }\n\n\n  if (o.design_skin === 'skin-redlights') {\n    selfClass._apControlsRight.append('<div class=\"ap-controls-right--top\"></div>');\n    selfClass._apControlsRight.append('<div class=\"ap-controls-right--bottom\"></div>');\n    selfClass._apControlsRight.find('.ap-controls-right--top').append(selfClass._apControlsRight.find('.meta-artist-con'));\n    selfClass._apControlsRight.find('.ap-controls-right--top').append(selfClass._apControlsRight.find('.controls-volume'));\n    selfClass._apControlsRight.find('.ap-controls-right--bottom').append(selfClass._apControlsRight.find('.scrubbar'));\n  }\n\n\n  if (margs.call_from === 'reconstruct') {\n    if (selfClass.cthis.hasClass('skin-silver')) {\n      selfClass._apControlsLeft.append(selfClass.cthis.find('.con-playpause'));\n    }\n  }\n\n\n  if (selfClass.isMultiSharer) {\n    selfClass.check_multisharer();\n  }\n\n  selfClass.setup_structure_sanitizers();\n  setup_structure_extras(selfClass, o);\n\n\n  selfClass.cthis.addClass('structure-setuped');\n\n\n  if (selfClass.extraHtmlAreas.afterArtist) {\n    selfClass._metaArtistCon.find('.the-artist').append(selfClass.extraHtmlAreas.afterArtist);\n  }\n\n\n  if (selfClass.extraHtmlAreas.bottom !== '') {\n    selfClass.cthis.append('<div class=\"extra-html\">' + selfClass.extraHtmlAreas.bottom + '</div>');\n  }\n\n\n  var settings_extrahtml_in_float_right_str = '';\n\n\n  if (String(selfClass.extraHtmlAreas.controlsRight).indexOf('dzsap-multisharer-but') > -1) {\n    selfClass.isMultiSharer = true;\n  }\n\n  if (o.design_skin === 'skin-wave' && selfClass.skinwave_mode === 'small') {\n\n  } else {\n\n    settings_extrahtml_in_float_right_str += '<div class=\"extrahtml-in-float-right from-setup_structure from-js-setup_structure\">' + selfClass.extraHtmlAreas.controlsRight + '</div>';\n  }\n\n\n  if (settings_extrahtml_in_float_right_str) {\n    if (o.design_skin === 'skin-wave' || o.design_skin === 'skin-default') {\n\n      selfClass.cthis.find('.ap-controls-right').eq(0).append(settings_extrahtml_in_float_right_str);\n\n    }\n    if (o.design_skin === 'skin-pro') {\n\n      selfClass.cthis.find('.con-controls--right').eq(0).append(settings_extrahtml_in_float_right_str);\n\n    }\n  }\n\n\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param {string} feedSelector\n * @param {string|null} addToString\n * @param $appendElement\n * @returns {null|string|any}\n */\nfunction addExtraHtmlInPlace(selfClass, feedSelector, addToString = null, $appendElement = null) {\n\n  if (selfClass.cthis.find(feedSelector).length) {\n    if (addToString !== null) {\n\n      addToString += selfClass.cthis.find(feedSelector).eq(0).html();\n    }\n\n    if ($appendElement !== null) {\n\n      $appendElement.append(selfClass.cthis.find(feedSelector).eq(0).html())\n      return $appendElement;\n    }\n    selfClass.cthis.find(feedSelector).remove();\n    if (addToString !== null) {\n\n      return addToString;\n    }\n  }\n\n\n  if (typeof addToString == 'string') {\n    return addToString;\n  }\n\n  return null;\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_structure.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_extraHtmlFunctions.js":
/*!**************************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_extraHtmlFunctions.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 */   \"extraHtmlBottomFunctionality\": () => (/* binding */ extraHtmlBottomFunctionality),\n/* harmony export */   \"feedEmbedFunctionality\": () => (/* binding */ feedEmbedFunctionality)\n/* harmony export */ });\n/* harmony import */ var _dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n\n\n\nfunction extraHtmlBottomFunctionality(selfClass    ){\n\n\n  var o = selfClass.initOptions;\n\n\n\n\n\n    if (selfClass.increment_views === 1) {\n      (_dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__.ajax_submit_views.bind(selfClass))();\n      selfClass.increment_views = 2;\n    }\n\n\n\n  if (selfClass.index_extrahtml_toloads === 0) {\n\n\n    selfClass.cthis.find('.extra-html').addClass('active');\n  }\n  setTimeout(function () {\n    selfClass.cthis.find('.extra-html').addClass('active');\n    if (selfClass.cthis.find('.float-left').length === 0) {\n      selfClass.cthis.find('.extra-html').append(selfClass.cthis.find('.extra-html-extra'));\n    } else {\n      selfClass.cthis.find('.extra-html .float-left').append(selfClass.cthis.find('.extra-html-extra'));\n    }\n\n\n    var _c = selfClass.cthis.find('.extra-html-extra').children().eq(0);\n\n    selfClass.cthis.find('.extra-html-extra').children().unwrap();\n\n\n\n\n\n\n\n  }, 2000);\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param $\n * @param struct_embedButtonWithTooltip\n */\nfunction feedEmbedFunctionality(selfClass,$, struct_embedButtonWithTooltip){\n\n  var o = selfClass.initOptions;\n\n  if (o.design_skin === 'skin-wave') {\n\n    if (o.enable_embed_button === 'on') {\n      if (selfClass._apControlsRight) {\n\n        selfClass._apControlsRight.appendOnce(struct_embedButtonWithTooltip);\n        selfClass.$embedButton = selfClass._apControlsRight.find('.btn-embed-code-con').eq(0);\n        selfClass.$embedButton.find('.btn-embed-code').addClass('player-but');\n      }\n    }\n\n  } else {\n    if (o.enable_embed_button === 'on') {\n      selfClass._audioplayerInner.appendOnce(struct_embedButtonWithTooltip);\n      selfClass.$embedButton = selfClass._audioplayerInner.find('.btn-embed-code-con').eq(0);\n    }\n  }\n  if (selfClass.$embedButton) {\n\n    selfClass.$embedButton.find('.embed-code--text').html(selfClass.feedEmbedCode);\n  }\n\n\n  selfClass.cthis.on('click', '.btn-embed-code-con, .btn-embed', function () {\n    var _t = $(this);\n\n\n    (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__.select_all)(_t.find('.dzstooltip').get(0));\n    document.execCommand('copy');\n  })\n  selfClass.cthis.on('click', '.copy-embed-code-btn', function () {\n    var _t = $(this);\n\n    (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__.select_all)(_t.parent().parent().find('.dzstooltip--inner > span').get(0));\n\n    document.execCommand('copy');\n    setTimeout(function () {\n      (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__.select_all)(_t.get(0));\n    }, 100)\n  })\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_extraHtmlFunctions.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_innerPlaylist.js":
/*!*********************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_innerPlaylist.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 */   \"DzsapInnerPlaylist\": () => (/* binding */ DzsapInnerPlaylist)\n/* harmony export */ });\n/* harmony import */ var _dzsap_svgs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_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\n\n\n\nwindow.dzsap_moving_playlist_item = false;\nwindow.dzsap_playlist_con = null;\nwindow.dzsap_playlist_item_moving = null;\nwindow.dzsap_playlist_item_target = null;\n\nclass DzsapInnerPlaylist {\n  constructor(dzsapClass) {\n    this.dzsapClass = dzsapClass;\n    this.$playlistInner = null;\n  }\n\n  init() {\n\n    const selfClass = this.dzsapClass;\n\n    const thisClass = this;\n\n    selfClass._apControlsRight.append('<div class=\"btn-footer-playlist for-hover dzstooltip-con player-but\"> <div class=\"tooltip-indicator tooltip-indicator--btn-footer-playlist\"><div class=\"the-icon-bg\"></div> ' + _dzsap_svgs__WEBPACK_IMPORTED_MODULE_0__.svg_footer_playlist + '    </div><div class=\"dzstooltip playlist-tooltip style-default color-light-dark arrow-bottom talign-end transition-scaleup active2\"><div class=\"dzstooltip--inner\"> </div></div></div>');\n\n    thisClass.$playlistInner = selfClass.cthis.find('.playlist-tooltip');\n    selfClass.cthis.on('mousedown', '.the-sort-handle', handle_mouse);\n    selfClass.cthis.on('click', '.playlist-menu-item', handle_mouse);\n\n    setTimeout(function () {\n      thisClass.playlistInner_setupStructureInPlayer();\n    }, 100);\n\n\n    function handle_mouse(e) {\n\n      var $t = jQuery(this);\n      if (e.type === 'click') {\n\n        if ($t.hasClass('playlist-menu-item')) {\n\n\n          var ind = $t.parent().children().index($t);\n\n\n          thisClass.playlistInner_gotoItem(ind, {\n            'call_from': 'handle_mouse'\n          })\n\n\n        }\n      }\n      if (e.type === 'mousedown') {\n\n\n        const _con = $t.parent();\n\n        _con.parent().append(_con.clone().addClass('cloner'));\n        const _clone = _con.parent().children('.cloner').eq(0);\n\n        dzsap_playlist_con = _con.parent();\n        dzsap_moving_playlist_item = true;\n\n        dzsap_playlist_item_target = _con;\n        dzsap_playlist_item_moving = _clone;\n        _con.addClass('target-playlist-item');\n\n\n      }\n    }\n\n\n  }\n\n  playlistInner_setupStructureInPlayer(pargs) {\n    // -- setup playlist for footer\n\n    var $ = jQuery;\n    var thisClass = this;\n    var selfClass = this.dzsapClass;\n\n    var margs = {\n      'call_from': \"default\"\n    }\n\n    if (pargs) {\n      margs = $.extend(margs, pargs);\n    }\n\n\n    if (thisClass.$playlistInner) {\n      (window.dzsap_syncList_players.length) ? thisClass.$playlistInner.parent().removeClass('is-empty') : thisClass.$playlistInner.parent().addClass('is-empty');\n      // -- clear all before adding\n      thisClass.$playlistInner.find('.dzstooltip--inner').html('');\n      var stringPlaylistMenuItems = '';\n      for (var keySyncPlayer in window.dzsap_syncList_players) {\n        // -- setup inner playlist for sticky player\n\n\n        var _c = window.dzsap_syncList_players[keySyncPlayer];\n\n        if (_c.hasClass('number-wrapper') || _c.hasClass('for-number-wrapper')) {\n          continue;\n        }\n\n        stringPlaylistMenuItems += '<div class=\"playlist-menu-item\"';\n\n\n        $.each(_c.get(0).attributes, function () {\n          // -- we remember attributes in case the page has changed and we lost..\n          if (this.specified && this.name && this.name !== 'id' && this.name !== 'style') {\n\n            stringPlaylistMenuItems += ' ' + this.name + '=\\'' + this.value + '\\'';\n          }\n        });\n\n\n        stringPlaylistMenuItems += '>';\n\n\n        if (_c.attr('data-thumb')) {\n\n          stringPlaylistMenuItems += '<div class=\"pi-thumb-con\">';\n          stringPlaylistMenuItems += '<div class=\"pi-thumb divimage\" style=\"background-image: url(' + _c.attr('data-thumb') + ')\">';\n          stringPlaylistMenuItems += '</div>'\n          stringPlaylistMenuItems += '</div>'\n        }\n        stringPlaylistMenuItems += '<div class=\"pi-meta-con\">';\n\n        stringPlaylistMenuItems += '<div class=\"pi-the-artist\">';\n        stringPlaylistMenuItems += _c.find('.the-artist').eq(0).text();\n        stringPlaylistMenuItems += '</div>';\n\n        stringPlaylistMenuItems += '<div class=\"pi-the-name\">';\n        stringPlaylistMenuItems += _c.find('.the-name').eq(0).text();\n        stringPlaylistMenuItems += '</div>';\n\n        stringPlaylistMenuItems += '</div>';\n\n\n        stringPlaylistMenuItems += '<div class=\"the-sort-handle\">';\n        stringPlaylistMenuItems += '&#x2195;';\n        stringPlaylistMenuItems += '</div>';\n        stringPlaylistMenuItems += '</div>';\n\n      }\n      thisClass.$playlistInner.find('.dzstooltip--inner').append(stringPlaylistMenuItems);\n\n\n      $(document).on('mousemove.dzsap_playlist_item', function (e) {\n\n        if (window.dzsap_moving_playlist_item) {\n\n          var my = e.clientY;\n\n          my -= dzsap_playlist_con.offset().top;\n\n\n          dzsap_playlist_item_moving.css('top', my - 20);\n\n\n          dzsap_playlist_item_target.parent().children(':not(\".target-playlist-item\"):not(\".cloner\")').each(function () {\n            var _t = $(this);\n\n            var tmy = _t.offset().top - dzsap_playlist_con.offset().top;\n\n\n            if (my > tmy) {\n              _t.after(dzsap_playlist_item_target);\n            }\n          })\n\n          if (my < 50) {\n            dzsap_playlist_item_target.parent().prepend(dzsap_playlist_item_target);\n          }\n        }\n      });\n      $(document).on('mouseup.dzsap_playlist_item', function (e) {\n\n        if (window.dzsap_moving_playlist_item) {\n\n          window.dzsap_moving_playlist_item = false;\n\n\n          dzsap_playlist_item_moving.parent().children('.cloner').remove();\n          dzsap_playlist_item_target.removeClass('target-playlist-item');\n          dzsap_playlist_item_moving.remove();\n          dzsap_playlist_item_moving = null;\n          dzsap_playlist_item_target = null;\n        }\n      })\n    } else {\n      console.error('no tooltip .. why, should be here?');\n    }\n\n\n  }\n\n  player_determineSyncPlayersIndex(selfClass, $targetPlayer) {\n\n\n    if (this.$playlistInner) {\n      const $playlistTooltipInner = this.$playlistInner.children('.dzstooltip--inner').eq(0);\n      $playlistTooltipInner.children().removeClass('current-playlist-item');\n      $playlistTooltipInner.children().each(function () {\n        var _t = jQuery(this);\n\n        if (_t.attr('data-playerid') === $targetPlayer.attr('data-playerid')) {\n          _t.addClass('current-playlist-item');\n          selfClass.playlist_inner_currNr = _t.parent().children().index(_t);\n        }\n      })\n    }\n\n  }\n\n\n  /**\n   * this is the function called from playlist menu item ( footer )\n   * @param arg\n   * @param pargs\n   */\n  playlistInner_gotoItem(arg, pargs) {\n    // --\n\n    var $ = jQuery;\n    var thisClass = this;\n    var selfClass = this.dzsapClass;\n\n    var margs = {\n      'call_from': \"default\"\n    }\n\n    if (pargs) {\n      margs = $.extend(margs, pargs);\n    }\n\n\n    var _cach_con = null;\n\n\n    if (thisClass.$playlistInner) {\n      _cach_con = thisClass.$playlistInner.find('.dzstooltip--inner');\n\n      const $cach = _cach_con.children().eq(arg);\n\n\n      const playerId = $cach.attr('data-playerid');\n\n\n      const $targetPlayer = $('.audioplayer[data-playerid=\"' + playerId + '\"],.audioplayer-tobe[data-playerid=\"' + playerId + '\"]');\n\n\n      if (playerId && $targetPlayer.length && $targetPlayer.eq(0).get(0) && $targetPlayer.eq(0).get(0).api_play_media) {\n\n\n        $('.audioplayer[data-playerid=\"' + playerId + '\"]').eq(0).get(0).api_play_media({\n          'called_from': 'api_sync_players_prev'\n        });\n\n      } else {\n\n\n        if ($targetPlayer.parent().parent().parent().hasClass('audiogallery')) {\n          $targetPlayer.parent().parent().parent().get(0).api_goto_item(arg);\n        } else {\n\n          // -- in case we change the page ;)\n\n          const $dzsapFooter = $(`.${_configs_constants__WEBPACK_IMPORTED_MODULE_1__.DZSAP_PLAYER_CLASS_FOOTER_PLAYER}`);\n          if ($dzsapFooter.length && $dzsapFooter.get(0).api_change_media) {\n            $dzsapFooter.get(0).api_change_media($targetPlayer);\n          }\n\n        }\n\n\n      }\n\n      selfClass.playlist_inner_currNr = arg;\n\n    }\n  }\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/extra-functionality/_innerPlaylist.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/helper-classes/_ClassMetaParts.js":
/*!*****************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/helper-classes/_ClassMetaParts.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 */   \"_ClassMetaParts\": () => (/* binding */ _ClassMetaParts)\n/* harmony export */ });\n\n\nclass _ClassMetaParts{\n  constructor(selfClass) {\n    this.selfClass = selfClass;\n  }\n\n  set_extraHtmlFloatRight(extraHtml){\n\n\n    this.selfClass.cthis.find('.extrahtml-in-float-right').eq(0).html(extraHtml);\n  }\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/helper-classes/_ClassMetaParts.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_media_functions.js":
/*!*********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_media_functions.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 */   \"buildAudioElementHtml\": () => (/* binding */ buildAudioElementHtml),\n/* harmony export */   \"destroy_cmedia\": () => (/* binding */ destroy_cmedia),\n/* harmony export */   \"destroy_media\": () => (/* binding */ destroy_media),\n/* harmony export */   \"isValidTotalTime\": () => (/* binding */ isValidTotalTime),\n/* harmony export */   \"makeMediaPreloadInTheFuture\": () => (/* binding */ makeMediaPreloadInTheFuture),\n/* harmony export */   \"mediaSetup\": () => (/* binding */ mediaSetup),\n/* harmony export */   \"media_handleEventEnd\": () => (/* binding */ media_handleEventEnd),\n/* harmony export */   \"media_pause\": () => (/* binding */ media_pause),\n/* harmony export */   \"media_removeMediaInside\": () => (/* binding */ media_removeMediaInside),\n/* harmony export */   \"media_tryToPlay\": () => (/* binding */ media_tryToPlay),\n/* harmony export */   \"repairMediaElement\": () => (/* binding */ repairMediaElement),\n/* harmony export */   \"setupMediaElement\": () => (/* binding */ setupMediaElement),\n/* harmony export */   \"setupMediaListeners\": () => (/* binding */ setupMediaListeners)\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 _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 _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n/* harmony import */ var _player_player_volume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../player/_player_volume */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_volume.js\");\n/* harmony import */ var _player_player_scrubModeWave_spectrum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../player/_player_scrubModeWave_spectrum */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave_spectrum.js\");\n\n\n\n\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param callbackFn\n * @param errorFn\n */\nconst media_tryToPlay = function (selfClass, callbackFn, errorFn) {\n  async function async_media_tryToPlay() {\n    function tryToPlay(resolve, reject) {\n      if (selfClass.cthis.attr('data-original-type')) {\n        // -- then this player is feeding\n      } else {\n\n        if (selfClass.$mediaNode_) {\n          if (selfClass.$mediaNode_.play) {\n\n            // -- no audioCtx_buffer\n\n            if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() && selfClass.spectrum_audioContext !== null && typeof selfClass.spectrum_audioContext == 'object') {\n              // todo: ios not playing nice.. with audio context\n\n              selfClass.spectrum_audioContextBufferSource = selfClass.spectrum_audioContext.createBufferSource();\n              selfClass.spectrum_audioContextBufferSource.buffer = selfClass.spectrum_audioContext_buffer;\n              selfClass.spectrum_audioContextBufferSource.connect(selfClass.spectrum_audioContext.destination);\n\n              selfClass.spectrum_audioContextBufferSource.start(0, selfClass.lastTimeInSeconds);\n              resolve({\n                'resolve_type': 'playing_context'\n              })\n            } else {\n\n              selfClass.cthis.addClass('zoomsounds-player--media--is-loading');\n\n              try {\n\n                selfClass.$mediaNode_.play().then(r => {\n                  resolve({\n                    'resolve_type': 'started_playing'\n                  })\n                }).catch(err => {\n                  reject({\n                    'error_type': 'did not want to play',\n                    'error_message': err\n                  });\n                }).finally(() => {\n\n                  selfClass.cthis.removeClass('zoomsounds-player--media--is-loading');\n                });\n              } catch (e) {\n                selfClass.$mediaNode_.play();\n                console.log(e);\n                resolve({\n                  'resolve_type': 'started_playing'\n                })\n              }\n\n            }\n          } else {\n            if (selfClass._actualPlayer == null) {\n              selfClass.isPlayPromised = true;\n            }\n\n          }\n        } else {\n          if (selfClass._actualPlayer == null) {\n            selfClass.isPlayPromised = true;\n          }\n        }\n\n\n      }\n\n    }\n\n    return new Promise((resolve, reject) => {\n\n      tryToPlay(resolve, reject);\n\n    })\n  }\n\n  async_media_tryToPlay().then((r) => {\n    callbackFn(r);\n  }).catch((err) => {\n    errorFn(err);\n  })\n\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param {object} pargs\n * @param {boolean} media_isLoopActive\n * @param {function} seek_to\n * @param {function} play_media\n * @param {function} pause_media\n * @param {object} o\n * @param {function} syncPlayers_gotoNext\n * @param {function} action_audio_end\n * @returns {void}\n */\nconst media_handleEventEnd = (selfClass, pargs, media_isLoopActive, seek_to, play_media, pause_media, o, syncPlayers_gotoNext, action_audio_end) => {\n\n\n  var margs = {\n    'called_from': 'default'\n  }\n\n\n  if (pargs) {\n    margs = Object.assign(margs, pargs);\n  }\n  if (selfClass.isMediaEnded) {\n    return;\n  }\n\n  selfClass.isMediaEnded = true;\n\n  selfClass.inter_isEnded = setTimeout(function () {\n    selfClass.isMediaEnded = false;\n  }, 1000);\n\n\n  if (selfClass._sourcePlayer) {\n\n    media_isLoopActive = selfClass._sourcePlayer.get(0).api_get_media_isLoopActive();\n  }\n  if (selfClass._actualPlayer && margs.call_from !== 'fake_player') {\n    // -- lets leave fake player handle handle_end\n    return;\n  }\n\n\n  seek_to(0, {\n    'call_from': 'handle_end'\n  });\n\n  if (media_isLoopActive) {\n    play_media({\n      'called_from': 'track_end'\n    });\n    return;\n  } else {\n    pause_media();\n  }\n\n  if (o.parentgallery) {\n    o.parentgallery.get(0).api_gallery_handle_end();\n  }\n\n\n  let autoplayNextMethod = 'default';\n\n  let $parentPlaylistForSource = null;\n  if (selfClass._sourcePlayer && selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).SelfInstance && selfClass._sourcePlayer.get(0).SelfInstance.$parentPlaylist) {\n    // -- called on handle end\n    $parentPlaylistForSource = selfClass._sourcePlayer.get(0).SelfInstance.$parentPlaylist.get(0).SelfPlaylist;\n\n    if ($parentPlaylistForSource) {\n\n      if ($parentPlaylistForSource.initOptions.autoplayNext === 'on') {\n        autoplayNextMethod = 'nextInSourcePlayist';\n      }\n    }\n  }\n\n  if (autoplayNextMethod === 'default') {\n    if (window.dzsap_syncList_players && window.dzsap_syncList_players.length > 0) {\n      if (selfClass.cthis.hasClass('is-single-player') || (selfClass._sourcePlayer && selfClass._sourcePlayer.hasClass('is-single-player'))) {\n        // -- called on handle end\n        autoplayNextMethod = 'syncPlayerNext';\n      }\n    }\n  }\n\n  if (autoplayNextMethod === 'default') {\n    if (selfClass._sourcePlayer && (selfClass._sourcePlayer.hasClass('is-single-player') || selfClass._sourcePlayer.hasClass('feeded-whole-playlist'))) {\n      autoplayNextMethod = 'handleEndForSourcePlayer';\n    }\n  }\n\n  if (autoplayNextMethod === 'default') {\n    autoplayNextMethod = 'nothingAfter';\n  }\n\n  // -- decided autoplayNextMethod\n\n  if (autoplayNextMethod === 'nextInSourcePlayist') {\n\n    if ($parentPlaylistForSource.argThis) {\n      $parentPlaylistForSource.argThis.api_gallery_handle_end();\n    }\n  }\n  if (autoplayNextMethod === 'syncPlayerNext') {\n    setTimeout(function () {\n      syncPlayers_gotoNext(selfClass);\n    }, 100);\n  }\n\n  if (autoplayNextMethod === 'handleEndForSourcePlayer') {\n    setTimeout(function () {\n      selfClass._sourcePlayer.get(0).api_handle_end({\n        'call_from': 'handle_end() fake_player'\n      });\n    }, 200);\n  }\n\n  if (action_audio_end) {\n    setTimeout(function () {\n      let args = {};\n      action_audio_end(selfClass.cthis, args);\n    }, 200);\n  }\n}\n\nconst media_removeMediaInside = (selfClass) => {\n\n  selfClass.$theMedia.children().remove();\n  selfClass.$mediaNode_ = null;\n}\n\nconst setupMediaElement = (selfClass, stringAudioElementHtml = '', stringAudioTagSource = '') => {\n\n\n  media_removeMediaInside(selfClass);\n\n  if (stringAudioTagSource) {\n    if (selfClass.$mediaNode_) {\n\n      jQuery(selfClass.$mediaNode_).append(stringAudioTagSource);\n      if (selfClass.$mediaNode_.load) {\n        selfClass.$mediaNode_.load();\n      }\n\n    } else {\n      setupMediaElement(selfClass, stringAudioElementHtml);\n      return false;\n    }\n  } else {\n    selfClass.$theMedia.append(stringAudioElementHtml);\n  }\n  selfClass.$mediaNode_ = (selfClass.$theMedia.children('audio').get(0));\n\n\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction destroy_cmedia(selfClass) {\n  // -- destroy cmedia\n  const $ = selfClass.$;\n\n  $(selfClass.$mediaNode_).remove();\n  selfClass.$mediaNode_ = null;\n  selfClass.isSetupedMedia = false;\n  selfClass.isPlayerLoaded = false;\n}\n\nfunction destroy_media(selfClass, pause_media) {\n  const o = selfClass.initOptions;\n  pause_media();\n\n\n  if (selfClass.$mediaNode_) {\n\n    if (selfClass.$mediaNode_.children) {\n\n    }\n\n    if (o.type === 'audio') {\n      selfClass.$mediaNode_.innerHTML = '';\n      selfClass.$mediaNode_.load();\n    }\n  }\n\n  if (selfClass.$theMedia) {\n\n    selfClass.$theMedia.children().remove();\n    selfClass.$mediaNode_ = null;\n    selfClass.isPlayerLoaded = false;\n  }\n\n  destroy_cmedia(selfClass);\n\n}\n\nconst setupMediaListeners = function (selfClass, setupMediaAttrs, action_initLoaded, volume_lastVolume, volume_setVolume) {\n\n  let attempt_reload = 0;\n\n\n  if (typeof (selfClass.$mediaNode_) !== \"undefined\" && selfClass.$mediaNode_) {\n    selfClass.$mediaNode_.addEventListener('error', handleAudioError, true);\n    selfClass.$mediaNode_.addEventListener('loadedmetadata', handleMediaMetaLoaded, true);\n    if (selfClass.$mediaNode_.nodeName === 'AUDIO') {\n      selfClass.$mediaNode_.addEventListener('ended', media_handleEnd);\n    }\n  }\n\n\n  function media_handleEnd(pargs) {\n    selfClass.handle_end(pargs);\n  }\n\n  function handleAudioError(e) {\n\n    const $audioElement_ = this;\n\n    var noSourcesLoaded = ($audioElement_.networkState === HTMLMediaElement.NETWORK_NO_SOURCE);\n    if (noSourcesLoaded && (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.dzsap_is_mobile)() === false) {\n      if (selfClass.cthis.hasClass(_configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.ERRORED_OUT_CLASS) === false) {\n\n        if (attempt_reload < _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.ERRORED_OUT_MAX_ATTEMPTS) {\n          setTimeout(function (earg) {\n            if (selfClass.$mediaNode_) {\n              selfClass.$mediaNode_.src = '';\n            }\n\n\n            setTimeout(function () {\n              if (selfClass.$mediaNode_) {\n                selfClass.$mediaNode_.src = selfClass.data_source;\n                selfClass.$mediaNode_.load();\n              }\n            }, 1000)\n          }, 1000, e)\n          attempt_reload++;\n        } else {\n\n          // -- IT FAILED LOADING\n\n          if (selfClass.initOptions.notice_no_media === 'on') {\n            selfClass.cthis.addClass(_configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.ERRORED_OUT_CLASS);\n            var txt = 'error - file does not exist...';\n            if (e.target.error) {\n              txt = e.target.error.message;\n            }\n            selfClass.cthis.append((0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__.setupTooltip)({\n              tooltipConClass: ' feedback-tooltip-con',\n              tooltipIndicatorText: '<span class=\"player-but\"><span class=\"the-icon-bg\" style=\"background-color: #912c2c\"></span><span class=\"svg-icon dzsap-color-ui-inverse\" >&#x2139;</span></span>',\n              tooltipInnerHTML: 'cannot load - ( ' + selfClass.data_source + ' ) - error: ' + txt,\n            }));\n          }\n        }\n      }\n    }\n  }\n\n\n  function handleMediaMetaLoaded(e) {\n\n\n    (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_view_addMetaLoaded)(selfClass);\n\n    /** @type {HTMLAudioElement} */\n    const $audio_ = e.currentTarget;\n\n    if (isValidTotalTime($audio_.duration)) {\n      selfClass.timeModel.actualTotalTime = Math.ceil($audio_.duration);\n    }\n    selfClass.service_checkIfWeShouldUpdateTotalTime();\n\n\n    if (setupMediaAttrs.called_from === 'change_media') {\n\n      action_initLoaded({\n        'call_from': 'force_reload_change_media'\n      })\n    }\n\n    if (setupMediaAttrs.called_from === 'change_media' || selfClass._sourcePlayer) {\n      if (volume_lastVolume) {\n        setTimeout(() => {\n          volume_setVolume(selfClass, volume_lastVolume, {\n            call_from: \"change_media\"\n          });\n        }, 50);\n      }\n    }\n\n    if (selfClass._sourcePlayer) {\n      if (isValidTotalTime($audio_.duration)) {\n        selfClass._sourcePlayer.get(0).api_set_timeVisualTotal($audio_.duration)\n\n      }\n    }\n\n\n    selfClass.view_drawCurrentTime();\n  }\n\n}\n\n\nconst buildAudioElementHtml = function (selfClass, type_normal_stream_type, calledFrom) {\n\n  var stringAudioTagOpen = '';\n  var stringAudioTagSource = '';\n  var stringAudioTagClose = '';\n  var o = selfClass.initOptions;\n\n\n  if (selfClass.data_source) {\n    if (selfClass.data_source.indexOf('get_track_source') > -1) {\n      o.preload_method = 'none';\n    }\n  }\n\n  stringAudioTagOpen += '<audio';\n  stringAudioTagOpen += ' id=\"' + selfClass.uniqueId + '-audio\"';\n  stringAudioTagOpen += ' preload=\"' + o.preload_method + '\"';\n  if (o.skinwave_enableSpectrum === 'on') {\n    stringAudioTagOpen += ' crossOrigin=\"anonymous\"';\n\n  }\n\n  if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n    if (calledFrom === 'change_media') {\n      stringAudioTagOpen += ' autoplay';\n    }\n  }\n\n  stringAudioTagOpen += '>';\n  stringAudioTagSource = '';\n\n\n  if (selfClass.data_source) {\n\n    if (!selfClass.data_source && type_normal_stream_type !== 'icecast') {\n      selfClass.data_source = selfClass.cthis.attr('data-source');\n    }\n\n\n    if (selfClass.data_source !== 'fake') {\n      stringAudioTagSource += '<source src=\"' + selfClass.data_source + '\" type=\"audio/mpeg\">';\n      if (selfClass.cthis.attr('data-sourceogg') !== undefined) {\n        stringAudioTagSource += '<source src=\"' + selfClass.cthis.attr('data-sourceogg') + '\" type=\"audio/ogg\">';\n      }\n    } else {\n      selfClass.cthis.addClass('meta-loaded meta-fake');\n    }\n  }\n  stringAudioTagClose += '</audio>';\n\n\n  return {\n    stringAudioElementHtml: stringAudioTagOpen + stringAudioTagSource + stringAudioTagClose,\n    stringAudioTagSource\n  };\n\n}\n\nconst makeMediaPreloadInTheFuture = function (selfClass, stringAudioElementHtml) {\n\n  setTimeout(function () {\n    if (selfClass.$mediaNode_) {\n      jQuery(selfClass.$mediaNode_).attr('preload', 'metadata');\n    }\n  }, (Number(window.dzsap_player_index) * 10000));\n}\nconst repairMediaElement = function (selfClass, stringAudioElementHtml) {\n\n  var o = selfClass.initOptions;\n  setTimeout(function () {\n\n    if (selfClass.$theMedia.children().eq(0).get(0) && selfClass.$theMedia.children().eq(0).get(0).nodeName === \"AUDIO\") {\n\n      return false;\n    }\n    selfClass.$theMedia.html('');\n    selfClass.$mediaNode_ = null;\n    selfClass.$theMedia.append(stringAudioElementHtml);\n\n    var isWasPlaying = selfClass.isPlayerPlaying;\n\n    selfClass.pause_media();\n    selfClass.$mediaNode_ = (selfClass.$theMedia.children('audio').get(0));\n\n\n    if (isWasPlaying) {\n      setTimeout(function () {\n\n        selfClass.play_media({\n          'called_from': 'aux_was_playing'\n        });\n      }, 20);\n    }\n  }, o.failsafe_repair_media_element);\n\n  o.failsafe_repair_media_element = '';\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param callbackFn\n */\nconst media_pause = function (selfClass, callbackFn) {\n\n  var $ = selfClass.$;\n\n\n  if (selfClass.audioType === 'youtube') {\n\n\n    if (selfClass.$mediaNode_ && selfClass.$mediaNode_.pauseVideo) {\n      selfClass.$mediaNode_.pauseVideo();\n    }\n  }\n  if (selfClass.audioType === 'selfHosted') {\n\n    if (false) {} else {\n      if (selfClass.$mediaNode_) {\n\n        if (selfClass.initOptions.pause_method == 'stop') {\n\n          selfClass.$mediaNode_.pause();\n          selfClass.$mediaNode_.src = '';\n\n\n          selfClass.destroy_cmedia();\n          $(selfClass.$mediaNode_).remove();\n          selfClass.$mediaNode_ = null;\n        } else {\n\n          if (selfClass.$mediaNode_.pause) {\n            selfClass.$mediaNode_.pause();\n          }\n        }\n      }\n\n    }\n\n\n  }\n\n  callbackFn();\n\n}\n\nconst isValidTotalTime = (duration) => {\n  return Boolean(duration && duration !== Infinity);\n}\n\n\nconst mediaSetupElement = (setupMediaAttrs, selfClass, stringAudioElement, stringAudioElementHtml) => {\n\n  const stringAudioTagSource = stringAudioElement.stringAudioTagSource;\n  if (setupMediaAttrs.called_from === 'change_media' || setupMediaAttrs.called_from === 'nonce generated') {\n\n    if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() || (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)()) {\n\n      // -- we append only the source to mobile devices as we need the thing to autoplay without user action\n      setupMediaElement(selfClass, stringAudioElementHtml, stringAudioTagSource);\n\n    } else {\n      // -- normal desktop\n      if (!(setupMediaAttrs.called_from === 'nonce generated' && selfClass._actualPlayer)) {\n\n        setupMediaElement(selfClass, stringAudioElementHtml);\n      }\n    }\n    // -- end change media\n  } else {\n    setupMediaElement(selfClass, stringAudioElementHtml);\n\n  }\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param {object} pargs\n * @param init_loaded\n * @param pause_media\n * @param init_checkIfReady\n * @param handleClick_playPause\n * @returns {void}\n */\nconst mediaSetup = (selfClass, pargs, init_loaded, pause_media, init_checkIfReady, handleClick_playPause) => {\n  var stringAudioElementHtml = '';\n\n  var setupMediaAttrs = {\n\n    'do_not_autoplay': false,\n    'called_from': 'default',\n    'newSource': '',\n  };\n\n  var $ = jQuery;\n  var o = selfClass.initOptions;\n  var cthis = selfClass.cthis;\n\n  if (pargs) {\n    setupMediaAttrs = $.extend(setupMediaAttrs, pargs);\n  }\n\n  if (selfClass.cthis && selfClass.cthis.attr('data-pcm')) {\n    (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.assignPcmData)(selfClass);\n  }\n\n  // -- these types should not exist\n  if (selfClass.audioType === 'icecast' || selfClass.audioType === 'shoutcast') {\n    selfClass.audioType = 'selfHosted';\n  }\n\n  if (o.cueMedia === 'off') {\n    if (selfClass.ajax_view_submitted === 'auto') {\n      // -- why is view submitted ?\n      selfClass.increment_views = 1;\n      selfClass.ajax_view_submitted = 'off';\n    }\n  }\n\n  if (selfClass.isPlayerLoaded) {\n    return;\n  }\n  if (cthis.attr('data-original-type') === 'youtube') {\n    return;\n  }\n\n\n  if (selfClass.audioType === 'youtube') {\n    dzsap_youtube_setupMedia(selfClass, setupMediaAttrs);\n  }\n  // -- END youtube\n\n\n  if (setupMediaAttrs.newSource) {\n    selfClass.data_source = setupMediaAttrs.newSource;\n  }\n\n  if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n    o.preload_method = 'metadata';\n  }\n\n  const stringAudioElement = buildAudioElementHtml(selfClass, selfClass.audioTypeSelfHosted_streamType, 'setup_media');\n  stringAudioElementHtml = stringAudioElement.stringAudioElementHtml;\n\n  if (selfClass.audioType === 'selfHosted' || selfClass.audioType === 'soundcloud') {\n\n    mediaSetupElement(setupMediaAttrs, selfClass, stringAudioElement, stringAudioElementHtml);\n\n    if (selfClass.$mediaNode_ && selfClass.$mediaNode_.addEventListener && selfClass.cthis.attr('data-source') !== 'fake') {\n      setupMediaListeners(selfClass, setupMediaAttrs, init_loaded, selfClass.volume_lastVolume, _player_player_volume__WEBPACK_IMPORTED_MODULE_3__.volume_setVolume)\n    }\n\n  }\n\n  selfClass.cthis.addClass('media-setuped');\n\n\n  if (setupMediaAttrs.called_from === 'change_media') {\n    return;\n  }\n\n  if (selfClass.audioType !== 'youtube') {\n    if (selfClass.cthis.attr('data-source') === 'fake') {\n      if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() || (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)()) {\n        init_loaded(setupMediaAttrs);\n      }\n    } else {\n      if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n\n        setTimeout(function () {\n          init_loaded(setupMediaAttrs);\n        }, 1000);\n\n\n      } else {\n\n        // -- check_ready() will fire init_loaded()\n        selfClass.inter_checkReady = setInterval(function () {\n          init_checkIfReady(setupMediaAttrs);\n        }, 50);\n      }\n\n    }\n\n\n    if (o.preload_method === 'none') {\n      makeMediaPreloadInTheFuture(selfClass);\n    }\n\n\n    if (o.design_skin === 'skin-customcontrols' || o.design_skin === 'skin-customhtml') {\n      cthis.find('.custom-play-btn,.custom-pause-btn').off('click');\n      cthis.find('.custom-play-btn,.custom-pause-btn').on('click', handleClick_playPause);\n    }\n\n    if (o.failsafe_repair_media_element) {\n      repairMediaElement(selfClass, stringAudioElementHtml);\n\n    }\n  }\n\n  if (o.skinwave_enableSpectrum === 'on') {\n    (0,_player_player_scrubModeWave_spectrum__WEBPACK_IMPORTED_MODULE_4__.player_initSpectrumOnUserAction)(selfClass);\n  }\n\n  selfClass.isSetupedMedia = true;\n}\n\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_media_functions.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_onePlayer_changeMedia.js":
/*!***************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_onePlayer_changeMedia.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 */   \"media_changeMedia\": () => (/* binding */ media_changeMedia)\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/* harmony import */ var _dzsap_misc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_dzsap_misc */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_misc.js\");\n/* harmony import */ var _wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../wave-render/_wave-render-functions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/wave-render/_wave-render-functions.js\");\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n/* harmony import */ var _player_player_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../player/_player_config */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_config.js\");\n\n\n\n\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param $\n * @returns {function(*, *=): (boolean|undefined)}\n */\nfunction media_changeMedia(selfClass, $) {\n  /**\n   * change media source for the player / change_media(\"song.mp3\", {type:\"audio\", fakeplayer_is_feeder:\"off\"});\n   * @param {HTMLElement|string} $playerSource - can be player dom element\n   * @param pargs - {type:\"audio\", fakeplayer_is_feeder:\"off\"}\n   * @returns {boolean}\n   */\n  return function ($playerSource, pargs = {}) {\n\n\n    const changeMediaArgsDefaults = {\n      type: '',\n      fakeplayer_is_feeder: 'off' // -- this is OFF in case there is a button feeding it, and on if it's an actual player\n      , called_from: 'default'\n      , source: 'default'\n      , pcm: ''\n      , artist: \"\"\n      , song_name: \"\"\n      , thumb: \"\"\n      , thumb_link: \"\"\n      , autoplay: \"on\"\n      , cue: \"on\"\n      , feeder_type: \"player\"\n      , source_player_do_not_update: \"off\"\n      , playerid: \"\"\n    };\n\n\n    selfClass.ajax_view_submitted = 'on'; // -- view submitted from caller\n\n\n    var handle_resize_delay = 500;\n    let changeMediaArgs = {...changeMediaArgsDefaults, ...pargs};\n    var o = selfClass.initOptions;\n\n\n    const $sourceForChange = $playerSource;\n\n\n    // -- let us decide if we pause old player\n    var isGoingToPauseTheOldPlayer = true; // pause previous player\n    var isGoingToPauseTheActualPlayer = false; // pause if\n    var isSourceAStringSource = false;\n    var isSourceAZoomSoundsAudioplayer = false;\n    let isSourceA$Object = false;\n\n    let newSource = '';\n\n\n    if ($sourceForChange && $sourceForChange.attr) {\n      isSourceA$Object = true;\n    }\n\n\n    selfClass.reinit_resetMetrics();\n    selfClass.reinit_beforeChangeMedia();\n\n    if (typeof $sourceForChange === 'string') {\n      isSourceAStringSource = true;\n    }\n\n    if (!isSourceAStringSource) {\n      if ($playerSource.hasClass('audioplayer') || $playerSource.hasClass('audioplayer-tobe')) {\n        isSourceAZoomSoundsAudioplayer = true;\n      }\n    }\n\n    $('.current-feeder-for-parent-player').removeClass('current-feeder-for-parent-player');\n\n    if (selfClass.$reflectionVisualObject) {\n      selfClass.$reflectionVisualObject.removeClass('is-playing');\n    }\n\n\n    if (isSourceAStringSource) {\n      newSource = $sourceForChange;\n    }\n    if (isSourceA$Object) {\n\n      newSource = $sourceForChange.attr('data-source');\n      selfClass.$reflectionVisualObject = $sourceForChange;\n      changeMediaArgs = {...changeMediaArgs, ...(0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_3__.sanitizeObjectForChangeMediaArgs)($sourceForChange)};\n    }\n    if (changeMediaArgs.source && changeMediaArgs.source != 'default') {\n      newSource = changeMediaArgs.source;\n    }\n\n\n    if (selfClass.data_source === newSource) {\n      isGoingToPauseTheOldPlayer = false;\n    }\n\n    // -- old feed fake player\n\n    if (isGoingToPauseTheOldPlayer && selfClass._sourcePlayer) {\n      selfClass._sourcePlayer.get(0).api_pause_media_visual({\n        'call_from': 'change_media'\n      });\n      selfClass._sourcePlayer.get(0).api_set_timeVisualTotal(0);\n    }\n\n    // -- we are in one mode, so we need to preserve the originalSettings of the first item\n    if (!(selfClass.cthis.data('original-settings')) && selfClass.data_source !== 'fake') {\n      selfClass.cthis.data('original-settings', (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_3__.sanitizeObjectForChangeMediaArgs)(selfClass.cthis))\n    }\n\n\n    const oldSource = selfClass.data_source;\n    selfClass.data_source = newSource;\n\n    const isSourceHasClassForDomSource = !isSourceAStringSource && !!($sourceForChange.hasClass('audioplayer') || $sourceForChange.hasClass('is-zoomsounds-source-player'));\n\n\n    if ((isSourceHasClassForDomSource) || changeMediaArgs.fakeplayer_is_feeder === 'on') {\n\n      selfClass.set_sourcePlayer($sourceForChange)\n      if (selfClass._sourcePlayer) {\n\n        selfClass.cthis.data('feeding-from', selfClass._sourcePlayer.get(0));\n        selfClass._sourcePlayer.addClass('current-feeder-for-parent-player');\n      }\n    }\n\n    if (!isSourceAStringSource && $sourceForChange) {\n      if ($sourceForChange && $sourceForChange.attr('data-playerid')) {\n        selfClass.cthis.attr('data-feed-playerid', $sourceForChange.attr('data-playerid'));\n      } else {\n        selfClass.cthis.attr('data-feed-playerid', '');\n        changeMediaArgs.playerid = '';\n      }\n    }\n\n\n    if (oldSource === newSource) {\n      if (selfClass.cthis.hasClass('is-playing')) {\n        selfClass.pause_media();\n      } else {\n        selfClass.play_media();\n      }\n      return false;\n    }\n\n\n    if (changeMediaArgs.type === 'detect' || changeMediaArgs.type === 'audio' || changeMediaArgs.type === 'normal') {\n      changeMediaArgs.type = 'selfHosted';\n    }\n\n\n    selfClass.cthis.removeClass('meta-loaded');\n\n\n    // -- footer placeholder\n    if (selfClass.cthis.parent().hasClass('audioplayer-was-loaded')) {\n\n      selfClass.cthis.parent().addClass('audioplayer-loaded');\n      $('body').addClass('footer-audioplayer-loaded');\n      selfClass.cthis.parent().removeClass('audioplayer-was-loaded');\n    }\n\n    if (selfClass.$stickToBottomContainer) {\n      selfClass.$stickToBottomContainer.addClass('audioplayer-loaded');\n    }\n\n\n    selfClass.cthis.removeClass(_configs_constants__WEBPACK_IMPORTED_MODULE_0__.ConstantsDzsAp.ERRORED_OUT_CLASS);\n\n\n    selfClass.destroy_media();\n\n\n    selfClass.cthis.attr('data-source', changeMediaArgs.source);\n\n\n    const original_type = changeMediaArgs.type;\n    if (changeMediaArgs.type === 'mediafile') {\n      changeMediaArgs.type = 'audio';\n    }\n    if (changeMediaArgs.type) {\n      if (changeMediaArgs.type === 'soundcloud') {\n        changeMediaArgs.type = 'audio';\n      }\n      if (changeMediaArgs.type === 'album_part') {\n        changeMediaArgs.type = 'audio';\n      }\n      selfClass.cthis.attr('data-type', changeMediaArgs.type);\n      selfClass.audioType = changeMediaArgs.type;\n      o.type = changeMediaArgs.type;\n    }\n\n\n    if (o.design_skin === 'skin-wave') {\n      if (o.skinwave_wave_mode === 'canvas') {\n        if (selfClass._sourcePlayer) {\n          selfClass.data_source = $sourceForChange.attr('data-source');\n        } else {\n          if (typeof $sourceForChange === 'string') {\n\n            selfClass.data_source = $sourceForChange;\n          }\n        }\n\n        if ($sourceForChange && changeMediaArgs.pcm) {\n\n          if (selfClass.initOptions.scrubbar_type === 'wave') {\n\n            selfClass.cthis.attr('data-pcm', $sourceForChange.attr('data-pcm'));\n            (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_3__.assignPcmData)(selfClass);\n            (0,_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_2__.scrubModeWave__view_transitionIn)(selfClass, $sourceForChange.attr('data-pcm'));\n          }\n        } else {\n\n          (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_3__.player_reinit_findIfPcmNeedsGenerating)(selfClass);\n\n          (0,_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_2__.scrubModeWave__checkIfWeShouldTryToGetPcm)(selfClass, {});\n        }\n\n      }\n\n\n      // -- inside skin-wave\n      if (changeMediaArgs.thumb) {\n\n        if (selfClass.cthis.find('.the-thumb').length) {\n\n          selfClass.cthis.find('.the-thumb').css('background-image', 'url(' + changeMediaArgs.thumb + ')');\n        } else {\n          selfClass.cthis.attr('data-thumb', changeMediaArgs.thumb);\n          selfClass.setupStructure_thumbnailCon();\n        }\n\n      }\n    }\n\n\n    if (changeMediaArgs.thumb) {\n\n      if (selfClass.cthis.find('.the-thumb').length) {\n\n        selfClass.cthis.find('.the-thumb').css('background-image', 'url(' + changeMediaArgs.thumb + ')');\n      } else {\n        selfClass.cthis.attr('data-thumb', changeMediaArgs.thumb);\n        selfClass.setupStructure_thumbnailCon()\n      }\n\n      selfClass.cthis.removeClass('does-not-have-thumb');\n      selfClass.cthis.addClass('has-thumb');\n    } else {\n      selfClass.cthis.addClass('does-not-have-thumb');\n      selfClass.cthis.removeClass('has-thumb');\n    }\n\n\n    if (changeMediaArgs.pcm === '') {\n      selfClass.setup_pcm_random_for_now();\n    }\n\n\n    (0,_player_player_config__WEBPACK_IMPORTED_MODULE_4__.player_adjustIdentifiers)(selfClass);\n\n\n    handle_resize_delay = 100;\n\n\n    if (!isSourceAStringSource && $sourceForChange) {\n\n\n      // -- .feed-dzsap-for-extra-html-right will be appended to the footer player\n\n      var selector = '';\n      var $feedExtraHtmlRightFromSource = null;\n      if ($sourceForChange.find('.feed-dzsap-for-extra-html-right').length) {\n        $feedExtraHtmlRightFromSource = $sourceForChange.find('.feed-dzsap-for-extra-html-right').eq(0);\n      } else {\n        // -- we use this for Shop Builder\n        if (selfClass._sourcePlayer) {\n\n          if (selfClass._sourcePlayer.attr('data-playerid') && $(document).find('.feed-dzsap-for-extra-html-right[data-playerid=\"' + selfClass._sourcePlayer.attr('data-playerid') + '\"]').length) {\n            $feedExtraHtmlRightFromSource = $(document).find('.feed-dzsap-for-extra-html-right[data-playerid=\"' + selfClass._sourcePlayer.attr('data-playerid') + '\"]').eq(0);\n          }\n        }\n      }\n\n      if ($feedExtraHtmlRightFromSource) {\n        selfClass.classMetaParts.set_extraHtmlFloatRight($feedExtraHtmlRightFromSource.html());\n\n      }\n    }\n\n    if (changeMediaArgs.artist) {\n      selfClass.cthis.find('.the-artist').html(changeMediaArgs.artist);\n    }\n    if (changeMediaArgs.song_name) {\n      selfClass.cthis.find('.the-name').html(changeMediaArgs.song_name);\n    }\n\n\n    if (changeMediaArgsDefaults.source_player_do_not_update === 'on') {\n      selfClass.set_sourcePlayer(null);\n    }\n\n\n    if (original_type === 'soundcloud' && changeMediaArgs.source.indexOf('api.soundcloud') === -1) {\n      selfClass.data_source = changeMediaArgs.source;\n\n      selfClass.isPlayPromised = true;\n      setTimeout(function () {\n        selfClass.isPlayPromised = true;\n      }, 501);\n      (0,_dzsap_misc__WEBPACK_IMPORTED_MODULE_1__.retrieve_soundcloud_url)(selfClass);\n\n    } else {\n\n      // -- setup media for all sources\n      // -- make sure source is not fake\n      selfClass.setup_media({\n        'called_from': 'change_media'\n      });\n    }\n\n\n    selfClass.timeModel.getSampleTimesFromDom(selfClass._sourcePlayer);\n\n\n    if (selfClass.audioType === 'fake') {\n      return false;\n    }\n\n    if (selfClass.initOptions.action_audio_change_media) {\n      selfClass.initOptions.action_audio_change_media(changeMediaArgs.source, changeMediaArgs);\n    }\n\n\n    if (changeMediaArgs.autoplay === 'on') {\n      selfClass.play_media_visual();\n\n      if (!isSourceAZoomSoundsAudioplayer) {\n\n        setTimeout(function () {\n          selfClass.play_media({\n            'called_from': 'changeMediaArgs.autoplay'\n          });\n        }, 100);\n      }\n    }\n    selfClass.reinit();\n\n    if (o.skinwave_enableSpectrum === 'on') {\n      selfClass.spectrum_analyser = null;\n    }\n    setTimeout(function () {\n\n      selfClass.handleResize(null, {\n        called_from: 'change_media'\n      });\n    }, handle_resize_delay)\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/media/_onePlayer_changeMedia.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player-one-time-setups.js":
/*!*****************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player-one-time-setups.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_oneTimeSetups\": () => (/* binding */ dzsap_oneTimeSetups)\n/* harmony export */ });\nconst dzsap_oneTimeSetups = ()=>{\n\n\n  window.dzsap_generate_list_for_sync_players = function (pargs) {\n    var $ = jQuery;\n\n    var margs = {\n      'force_regenerate': false\n\n    };\n\n    if (pargs) {\n      margs = $.extend(margs, pargs);\n    }\n    window.dzsap_syncList_players = [];\n\n\n    if ((window.dzsap_settings.syncPlayers_buildList === 'on') || margs.force_regenerate) {\n\n      jQuery('.audioplayer,.audioplayer-tobe').each(function () {\n        var _t2 = jQuery(this);\n        if (_t2.attr('data-do-not-include-in-list') !== 'on') {\n          if (_t2.attr('data-type') !== 'fake' || _t2.attr('data-fakeplayer')) {\n            window.dzsap_syncList_players.push(_t2);\n          }\n        }\n      })\n\n\n    }\n  }\n\n\n  jQuery(document).off('click.dzsap_global');\n  jQuery(document).on('click.dzsap_global', '.dzsap-btn-info', function () {\n\n    var _t = jQuery(this);\n    if (_t.hasClass('dzsap-btn-info')) {\n\n      _t.find('.dzstooltip').toggleClass('active');\n      return;\n    }\n\n  })\n  jQuery(document).on('mouseover.dzsap_global', '.dzsap-btn-info', function () {\n\n    var _t = jQuery(this);\n    if (_t.hasClass('dzsap-btn-info')) {\n\n      if (window.innerWidth < 500) {\n\n        if (_t.offset().left < (window.innerWidth / 2)) {\n          _t.find('.dzstooltip').removeClass('talign-end').addClass('talign-start');\n        }\n      } else {\n        _t.find('.dzstooltip').addClass('talign-end').removeClass('talign-start');\n      }\n    }\n\n  });\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player-one-time-setups.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_commentsSelector.js":
/*!******************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_commentsSelector.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 */   \"player_commentsSelectorInit\": () => (/* binding */ player_commentsSelectorInit)\n/* harmony export */ });\n/* harmony import */ var _components_comments__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/_comments */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/components/_comments.js\");\n\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param {jQuery} $\n * @param {jQuery} cthis\n */\nconst player_commentsSelectorInit = (selfClass, $, cthis, o) => {\n\n  selfClass.$commentsSelector = $(o.skinwave_comments_mode_outer_selector);\n\n  if (selfClass.$commentsSelector.data) {\n\n    selfClass.$commentsSelector.data('parent', cthis);\n\n    if (window.dzsap_settings.comments_username) {\n      selfClass.$commentsSelector.find('.comment_email,*[name=comment_user]').remove();\n    }\n\n    selfClass.$commentsSelector.on('click', '.dzstooltip--close,.comments-btn-submit', _components_comments__WEBPACK_IMPORTED_MODULE_0__.comments_selector_event);\n    selfClass.$commentsSelector.on('focusin', 'input', _components_comments__WEBPACK_IMPORTED_MODULE_0__.comments_selector_event);\n    selfClass.$commentsSelector.on('focusout', 'input', _components_comments__WEBPACK_IMPORTED_MODULE_0__.comments_selector_event);\n\n  } else {\n    console.log('%c, data not available .. ', 'color: #990000;', $(o.skinwave_comments_mode_outer_selector));\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_commentsSelector.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_config.js":
/*!********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_config.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 */   \"configureAudioPlayerOptionsInitial\": () => (/* binding */ configureAudioPlayerOptionsInitial),\n/* harmony export */   \"player_adjustIdentifiers\": () => (/* binding */ player_adjustIdentifiers),\n/* harmony export */   \"player_detect_skinwave_mode\": () => (/* binding */ player_detect_skinwave_mode),\n/* harmony export */   \"player_determineActualPlayer\": () => (/* binding */ player_determineActualPlayer),\n/* harmony export */   \"player_determineHtmlAreas\": () => (/* binding */ player_determineHtmlAreas),\n/* harmony export */   \"player_viewApplySkinWaveModes\": () => (/* binding */ player_viewApplySkinWaveModes)\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_svgs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_dzsap_svgs */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_svgs.js\");\n\n\n\n\n/**\n *\n * @param {jQuery} cthis\n * @param {object} o\n * @param {DzsAudioPlayer} selfClass\n */\nfunction configureAudioPlayerOptionsInitial(cthis, o, selfClass) {\n\n\n  selfClass.cthis.addClass('preload-method-' + o.preload_method);\n\n  o.wavesurfer_pcm_length = Number(o.wavesurfer_pcm_length);\n\n\n  o.settings_trigger_resize = parseInt(o.settings_trigger_resize, 10);\n\n\n  if (isNaN(parseInt(o.design_thumbh, 10)) === false) {\n    o.design_thumbh = parseInt(o.design_thumbh, 10);\n  }\n\n  if (o.skinwave_wave_mode === '') {\n    o.skinwave_wave_mode = 'canvas';\n  }\n  if (o.skinwave_enableSpectrum === 'on') {\n    o.skinwave_wave_mode = 'canvas';\n  }\n  if (o.skinwave_wave_mode_canvas_normalize === '') {\n    o.skinwave_wave_mode_canvas_normalize = 'on';\n  }\n  if (o.skinwave_wave_mode_canvas_waves_number === '' || isNaN(Number(o.skinwave_wave_mode_canvas_waves_number))) {\n    o.skinwave_wave_mode_canvas_waves_number = 3;\n  }\n\n\n  if (o.autoplay === 'on' && o.cue === 'on') {\n    o.preload_method = 'auto';\n  }\n\n  cthis.addClass(o.extra_classes_player)\n\n  if (o.design_skin === '') {\n    o.design_skin = 'skin-default';\n  }\n\n\n  if (selfClass.cthis.find('.feed-dzsap--embed-code').length) {\n\n    selfClass.feedEmbedCode = selfClass.cthis.find('.feed-dzsap--embed-code').eq(0).html();\n  } else {\n    if (o.embed_code !== '') {\n      selfClass.feedEmbedCode = o.embed_code;\n    }\n  }\n\n  if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)()) {\n\n    if (selfClass.initOptions.skinwave_enableSpectrum === 'on') {\n      selfClass.initOptions.skinwave_enableSpectrum = 'off';\n    }\n\n  }\n\n  const skin_regex = / skin-/g;\n\n\n  if (skin_regex.test(cthis.attr('class'))) {\n\n  } else {\n\n    cthis.addClass(o.design_skin);\n  }\n\n\n  if (cthis.hasClass('skin-default')) {\n    o.design_skin = 'skin-default';\n  }\n  if (cthis.hasClass('skin-wave')) {\n    o.design_skin = 'skin-wave';\n  }\n  if (cthis.hasClass('skin-justthumbandbutton')) {\n    o.design_skin = 'skin-justthumbandbutton';\n  }\n  if (cthis.hasClass('skin-pro')) {\n    o.design_skin = 'skin-pro';\n  }\n  if (cthis.hasClass('skin-aria')) {\n    o.design_skin = 'skin-aria';\n  }\n  if (cthis.hasClass('skin-silver')) {\n    o.design_skin = 'skin-silver';\n  }\n  if (cthis.hasClass('skin-redlights')) {\n    o.design_skin = 'skin-redlights';\n  }\n  if (cthis.hasClass('skin-steel')) {\n    o.design_skin = 'skin-steel';\n  }\n  if (cthis.hasClass('skin-customcontrols')) {\n    o.design_skin = 'skin-customcontrols';\n  }\n\n\n  if (o.design_skin === 'skin-wave') {\n    if (o.scrubbar_type === 'auto') {\n      o.scrubbar_type = 'wave';\n    }\n  }\n  if (o.scrubbar_type === 'auto') {\n    o.scrubbar_type = 'bar';\n  }\n\n  if (o.settings_php_handler === 'wpdefault') {\n    o.settings_php_handler = window.ajaxurl;\n  }\n  if (o.action_received_time_total === 'wpdefault') {\n    o.action_received_time_total = window.dzsap_send_total_time;\n  }\n  if (o.action_video_contor_60secs === 'wpdefault') {\n    o.action_video_contor_60secs = window.action_video_contor_60secs;\n  }\n\n\n  if ((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_ios)() || (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.is_android)()) {\n    o.autoplay = 'off';\n    o.disable_volume = 'on';\n    if (o.cueMedia === 'off') {\n      o.cueMedia = 'on';\n    }\n    o.cueMedia = 'on';\n  }\n\n  if (cthis.attr('data-viewsubmitted') === 'on') {\n    selfClass.ajax_view_submitted = 'on';\n\n\n  }\n  if (cthis.attr('data-userstarrating')) {\n    selfClass.starrating_alreadyrated = Number(cthis.attr('data-userstarrating'));\n  }\n\n  if (cthis.attr('data-loop') === 'on') {\n    selfClass.initOptions.loop = 'on';\n  }\n\n\n  if (cthis.hasClass('skin-minimal')) {\n    o.design_skin = 'skin-minimal';\n    if (o.disable_volume === 'default') {\n      o.disable_volume = 'on';\n    }\n\n    if (o.disable_scrub === 'default') {\n      o.disable_scrub = 'on';\n    }\n    o.disable_timer = 'on';\n  }\n  if (cthis.hasClass('skin-minion')) {\n    o.design_skin = 'skin-minion';\n    if (o.disable_volume === 'default') {\n      o.disable_volume = 'on';\n    }\n\n    if (o.disable_scrub === 'default') {\n      o.disable_scrub = 'on';\n    }\n\n    o.disable_timer = 'on';\n  }\n\n\n  if (o.design_color_bg) {\n    o.design_wave_color_bg = o.design_color_bg;\n  }\n\n\n  if (o.design_color_highlight) {\n    o.design_wave_color_progress = o.design_color_highlight;\n  }\n\n\n  if (o.design_skin === 'skin-justthumbandbutton') {\n    if (o.design_thumbh === 'default') {\n      o.design_thumbh = '';\n\n    }\n    o.disable_timer = 'on';\n    o.disable_volume = 'on';\n\n    if (o.design_animateplaypause === 'default') {\n      o.design_animateplaypause = 'on';\n    }\n  }\n  if (o.design_skin === 'skin-redlights') {\n    o.disable_timer = 'on';\n    o.disable_volume = 'off';\n    if (o.design_animateplaypause === 'default') {\n      o.design_animateplaypause = 'on';\n    }\n\n  }\n  if (o.design_skin === 'skin-steel') {\n    if (o.disable_timer === 'default') {\n\n      o.disable_timer = 'off';\n    }\n    o.disable_volume = 'on';\n    if (o.design_animateplaypause === 'default') {\n      o.design_animateplaypause = 'on';\n    }\n\n\n    if (o.disable_scrub === 'default') {\n      o.disable_scrub = 'on';\n    }\n\n  }\n  if (o.design_skin === 'skin-customcontrols') {\n    if (o.disable_timer === 'default') {\n\n      o.disable_timer = 'on';\n    }\n    o.disable_volume = 'on';\n    if (o.design_animateplaypause === 'default') {\n      o.design_animateplaypause = 'on';\n    }\n\n\n    if (o.disable_scrub === 'default') {\n      o.disable_scrub = 'on';\n    }\n\n  }\n\n  if (o.skinwave_wave_mode_canvas_mode === 'reflecto') {\n    o.skinwave_wave_mode_canvas_reflection_size = 0.5;\n\n\n  }\n\n  if (o.skinwave_wave_mode_canvas_mode === 'reflecto') {\n    o.skinwave_wave_mode_canvas_reflection_size = 0.5;\n\n  }\n\n\n  if (o.embed_code === '') {\n    if (cthis.find('div.feed-embed-code').length > 0) {\n      o.embed_code = cthis.find('div.feed-embed-code').eq(0).html();\n    }\n  }\n\n  if (o.design_animateplaypause === 'default') {\n    o.design_animateplaypause = 'off';\n  }\n\n  if (o.design_animateplaypause === 'on') {\n    cthis.addClass('design-animateplaypause');\n  }\n\n  if (window.dzsap_settings) {\n    if (window.dzsap_settings.ajax_url) {\n      if (!o.settings_php_handler) {\n\n        o.settings_php_handler = window.dzsap_settings.ajax_url;\n      }\n    }\n  }\n\n  if (o.settings_php_handler) {\n    selfClass.urlToAjaxHandler = o.settings_php_handler;\n  } else {\n    if (window.dzsap_settings && window.dzsap_settings.php_handler) {\n\n      selfClass.urlToAjaxHandler = window.dzsap_settings.php_handler;\n    }\n  }\n\n\n  (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.player_reinit_findIfPcmNeedsGenerating)(selfClass);\n\n}\n\nfunction player_detect_skinwave_mode() {\n\n  const selfClass = this;\n\n\n  selfClass.skinwave_mode = selfClass.initOptions.skinwave_mode;\n\n  if (selfClass.cthis.hasClass('skin-wave-mode-small')) {\n    selfClass.skinwave_mode = 'small'\n  }\n  if (selfClass.cthis.hasClass('skin-wave-mode-alternate')) {\n    selfClass.skinwave_mode = 'alternate'\n  }\n  if (selfClass.cthis.hasClass('skin-wave-mode-bigwavo')) {\n    selfClass.skinwave_mode = 'bigwavo'\n  }\n}\n\n\n\nfunction player_viewApplySkinWaveModes(selfClass) {\n\n\n  var o = selfClass.initOptions;\n\n  selfClass.cthis.removeClass('skin-wave-mode-normal');\n\n  if (o.design_skin === 'skin-wave') {\n    selfClass.cthis.addClass('skin-wave-mode-' + selfClass.skinwave_mode);\n\n\n    selfClass.cthis.addClass('skin-wave-wave-mode-' + o.skinwave_wave_mode);\n    if (o.skinwave_enableSpectrum === 'on') {\n      selfClass.cthis.addClass('skin-wave-is-spectrum');\n    }\n    selfClass.cthis.addClass('skin-wave-wave-mode-canvas-mode-' + o.skinwave_wave_mode_canvas_mode);\n  }\n\n\n}\n\nfunction player_determineHtmlAreas(selfClass) {\n\n  var o = selfClass.initOptions;\n\n\n  let extraHtmlBottom = '';\n  let extraHtmlControlsLeft = '';\n  let extraHtmlControlsRight = '';\n\n\n  if (selfClass.cthis.children('.feed-dzsap--extra-html').length > 0 && o.settings_extrahtml === '') {\n    selfClass.cthis.children('.feed-dzsap--extra-html').each(function () {\n\n      let newExtraHtmlSectionClassName = (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_1__.string_curateClassName)(this.className);\n      extraHtmlBottom += `<section class=\"dzsap-extra-html--section-bottom ${newExtraHtmlSectionClassName}\">${this.innerHTML}</section>`;\n    })\n    selfClass.cthis.children('.feed-dzsap--extra-html').remove();\n  } else {\n    if (o.settings_extrahtml) {\n      extraHtmlBottom = o.settings_extrahtml;\n    }\n  }\n\n\n  if (selfClass.cthis.children('.feed-dzsap--extra-html-in-controls-left').length > 0) {\n    extraHtmlControlsLeft = selfClass.cthis.children('.feed-dzsap--extra-html-in-controls-left').eq(0).html();\n  }\n  if (selfClass.cthis.children('.feed-dzsap--extra-html-in-controls-right').length > 0) {\n    extraHtmlControlsRight = selfClass.cthis.children('.feed-dzsap--extra-html-in-controls-right').eq(0).html();\n  }\n  if (selfClass.cthis.children('.feed-dzsap--extra-html-bottom').length > 0) {\n    extraHtmlBottom = selfClass.cthis.children('.feed-dzsap--extra-html-bottom').eq(0).html();\n  }\n\n\n  selfClass.extraHtmlAreas.controlsLeft = extraHtmlControlsLeft;\n  selfClass.extraHtmlAreas.controlsRight = extraHtmlControlsRight;\n  selfClass.extraHtmlAreas.bottom = extraHtmlBottom;\n\n\n  if (selfClass.extraHtmlAreas.controlsRight) {\n    selfClass.extraHtmlAreas.controlsRight = String(selfClass.extraHtmlAreas.controlsRight).replace(/{{svg_share_icon}}/g, _dzsap_svgs__WEBPACK_IMPORTED_MODULE_2__.svg_share_icon);\n  }\n\n\n  for (var key in selfClass.extraHtmlAreas) {\n\n    selfClass.extraHtmlAreas[key] = String(selfClass.extraHtmlAreas[key]).replace('{{heart_svg}}', '\\t&hearts;');\n    selfClass.extraHtmlAreas[key] = String(selfClass.extraHtmlAreas[key]).replace('{{embed_code}}', selfClass.feedEmbedCode);\n  }\n}\n\n\nfunction player_determineActualPlayer(selfClass) {\n\n  var $ = jQuery;\n  var $fakePlayer = $(selfClass.cthis.attr('data-fakeplayer'));\n\n\n  if ($fakePlayer.length === 0) {\n    $fakePlayer = $(String(selfClass.cthis.attr('data-fakeplayer')).replace('#', '.'));\n    if ($fakePlayer.length) {\n      selfClass._actualPlayer = $(String(selfClass.cthis.attr('data-fakeplayer')).replace('#', '.'));\n      selfClass.cthis.attr('data-fakeplayer', String(selfClass.cthis.attr('data-fakeplayer')).replace('#', '.'));\n    }\n  }\n\n  if ($fakePlayer.length === 0) {\n    selfClass.cthis.attr('data-fakeplayer', '');\n  } else {\n    selfClass.cthis.addClass('player-is-feeding is-source-player-for-actual-player');\n    if (selfClass.cthis.attr('data-type')) {\n      selfClass._actualPlayer = $(selfClass.cthis.attr('data-fakeplayer')).eq(0);\n      selfClass._actualPlayer.addClass('player-is-feeded');\n      selfClass.actualDataTypeOfMedia = selfClass.cthis.attr('data-type');\n      selfClass.cthis.attr('data-original-type', selfClass.actualDataTypeOfMedia);\n    }\n  }\n}\n\n\nfunction player_adjustIdentifiers(selfClass) {\n\n  selfClass.identifier_pcm = selfClass.the_player_id;\n\n\n  var _feed_obj = null;\n\n  if (selfClass.$feed_fakeButton) {\n    _feed_obj = selfClass.$feed_fakeButton;\n  } else {\n    if (selfClass._sourcePlayer) {\n      _feed_obj = selfClass._sourcePlayer;\n    } else {\n      _feed_obj = null;\n    }\n  }\n\n\n  if (selfClass.identifier_pcm === 'dzs_footer') {\n    selfClass.identifier_pcm = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.dzs_clean_string)(selfClass.cthis.attr('data-source'));\n  }\n\n  if (_feed_obj) {\n    if (_feed_obj.attr('data-playerid')) {\n      selfClass.identifier_pcm = _feed_obj.attr('data-playerid');\n    } else {\n      if (_feed_obj.attr('data-source')) {\n        selfClass.identifier_pcm = _feed_obj.attr('data-source');\n      }\n    }\n  }\n\n  if (typeof selfClass.identifier_pcm === 'string') {\n    selfClass.identifier_pcm = selfClass.identifier_pcm.replace('ap', '');\n  }\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_config.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_feederFunctions.js":
/*!*****************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_feederFunctions.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 */   \"player_actualPlayerPause\": () => (/* binding */ player_actualPlayerPause),\n/* harmony export */   \"player_actualPlayerPlay\": () => (/* binding */ player_actualPlayerPlay),\n/* harmony export */   \"player_feederSeekTo\": () => (/* binding */ player_feederSeekTo),\n/* harmony export */   \"player_sourcePlayerPauseVisual\": () => (/* binding */ player_sourcePlayerPauseVisual),\n/* harmony export */   \"player_sourcePlayerPlayVisual\": () => (/* binding */ player_sourcePlayerPlayVisual)\n/* harmony export */ });\n/* harmony import */ var _dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n\n\n\nfunction player_sourcePlayerPauseVisual(selfClass){\n  if (selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).api_pause_media_visual) {\n    selfClass._sourcePlayer.get(0).api_pause_media_visual({\n      'call_from': 'pause_media in child player'\n    });\n  }\n}\nfunction player_sourcePlayerPlayVisual(selfClass){\n  if (selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).api_play_media_visual) {\n    selfClass._sourcePlayer.get(0).api_play_media_visual({\n      'api_report_play_media': false\n    });\n  }\n}\nfunction player_actualPlayerPlay(selfClass, margs, seek_to){\n\n  const cthis = selfClass.cthis;\n  const o = selfClass.initOptions;\n\n  const output = {\n    itShouldReturn : false\n  }\n  // -- the actual player is the footer player\n\n  let args = {\n    type: selfClass.actualDataTypeOfMedia,\n    fakeplayer_is_feeder: 'on',\n    call_from: 'play_media_audioplayer'\n  }\n\n  try {\n    if (margs.called_from === 'click_playpause') {\n      // -- let us reset up the playlist\n\n\n      if (o.parentgallery) {\n        o.parentgallery.get(0).api_regenerate_sync_players_with_this_playlist();\n        selfClass._actualPlayer.get(0).api_regenerate_playerlist_inner();\n      }\n\n    }\n\n    if (selfClass._actualPlayer && selfClass._actualPlayer.length && selfClass._actualPlayer.data('feeding-from') !== cthis.get(0)) {\n\n      args.called_from = 'play_media from player 22 ' + cthis.attr('data-source') + ' < -  ' + 'old call from - ' + margs.called_from;\n\n      if (selfClass._actualPlayer.get(0).api_change_media) {\n        selfClass._actualPlayer.get(0).api_change_media(cthis, args);\n      }\n\n      if (!cthis.hasClass('first-played')) {\n        if (cthis.data('promise-to-play-footer-player-from')) {\n          seek_to(cthis.data('promise-to-play-footer-player-from'));\n          setTimeout(function () {\n            cthis.data('promise-to-play-footer-player-from', '');\n          }, 1000);\n        }\n      }\n\n    }\n    setTimeout(function () {\n      if (selfClass._actualPlayer.get(0) && selfClass._actualPlayer.get(0).api_play_media) {\n        selfClass._actualPlayer.get(0).api_play_media({\n          'called_from': '[feed_to_feeder]'\n        });\n      }\n    }, 100);\n\n\n    if (selfClass.ajax_view_submitted === 'off') {\n      (_dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__.ajax_submit_views.bind(selfClass))();\n    }\n\n    output.itShouldReturn = true;\n\n\n  } catch (err) {\n    console.log('no fake player..', err);\n  }\n\n  return output;\n}\nfunction player_actualPlayerPause(selfClass){\n\n  const cthis = selfClass.cthis;\n\n\n  let args = {\n    type: selfClass.actualDataTypeOfMedia,\n    fakeplayer_is_feeder: 'on'\n  }\n  if (selfClass._actualPlayer && selfClass._actualPlayer.length && selfClass._actualPlayer.data('feeding-from') !== cthis.get(0)) {\n    args.called_from = 'pause_media from player ' + cthis.attr('data-source');\n    selfClass._actualPlayer.get(0).api_change_media(cthis, args);\n  }\n  setTimeout(function () {\n    if (selfClass._actualPlayer.get(0) && selfClass._actualPlayer.get(0).api_pause_media) {\n      selfClass._actualPlayer.get(0).api_pause_media();\n    }\n  }, 100);\n}\nfunction player_feederSeekTo(selfClass, margs, targetTimeMediaScrub){\n\n  const cthis = selfClass.cthis;\n\n  let args = {\n    type: selfClass.actualDataTypeOfMedia,\n    fakeplayer_is_feeder: 'on'\n  }\n  if (selfClass._actualPlayer.length && selfClass._actualPlayer.data('feeding-from') !== cthis.get(0)) {\n    // -- the actualPlayer is not rendering this feed player\n    if (margs.call_from !== 'handle_end' && margs.call_from !== 'from_playfrom' && margs.call_from !== 'last_pos' && margs.call_from !== 'playlist_seek_from_0') {\n      // -- if it is not user action, ( handle_end or anything else )\n      args.called_from = 'seek_to from player source->' + (cthis.attr('data-source')) + ' < -  ' + 'old call from - ' + margs.call_from;\n      if (selfClass._actualPlayer.get(0).api_change_media) {\n        selfClass._actualPlayer.get(0).api_change_media(cthis, args);\n      } else {\n        console.log('not inited ? ', selfClass._actualPlayer);\n      }\n    } else {\n      // -- NORMAL call\n\n      cthis.data('promise-to-play-footer-player-from', targetTimeMediaScrub);\n    }\n  }\n\n\n  setTimeout(function () {\n\n    if (selfClass._actualPlayer.get(0) && selfClass._actualPlayer.get(0).api_pause_media) {\n      if (margs.call_from !== 'from_playfrom' && margs.call_from !== 'last_pos') {\n        selfClass._actualPlayer.get(0).api_seek_to(targetTimeMediaScrub, {\n          'call_from': 'from_feeder_to_feed'\n        });\n      }\n    }\n  }, 50);\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_feederFunctions.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?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_menuState.js":
/*!***********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_menuState.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 */   \"player_menuStateSetup\": () => (/* binding */ player_menuStateSetup)\n/* harmony export */ });\nconst player_menuStateSetup = (cthis,o) => {\n\n  cthis.find('.btn-menu-state').eq(0).on('click', handleClickMenuState);\n\n\n  function handleClickMenuState(e) {\n    if (o.parentgallery && typeof (o.parentgallery.get(0)) !== \"undefined\") {\n      o.parentgallery.get(0).api_toggle_menu_state();\n    }\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_menuState.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_nextPrevButtons.js":
/*!*****************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_nextPrevButtons.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 */   \"player_nextPrevButtonsSetup\": () => (/* binding */ player_nextPrevButtonsSetup),\n/* harmony export */   \"syncPlayers_gotoItem\": () => (/* binding */ syncPlayers_gotoItem),\n/* harmony export */   \"syncPlayers_gotoNext\": () => (/* binding */ syncPlayers_gotoNext),\n/* harmony export */   \"syncPlayers_gotoPrev\": () => (/* binding */ syncPlayers_gotoPrev)\n/* harmony export */ });\n/* harmony import */ var _dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n/* harmony import */ var _dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_dzsap_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_helpers.js\");\n\n\n\nconst player_nextPrevButtonsSetup = (selfClass, cthis, o) => {\n\n  cthis.on('click', '.prev-btn,.next-btn', handle_mouse);\n\n\n  function handle_mouse(e) {\n    let _target;\n    const $t = $(this);\n\n    if (e.type === 'click') {\n      if ($t.hasClass('prev-btn')) {\n        handleClick_prevBtn();\n      }\n      if ($t.hasClass('next-btn')) {\n        handleClick_nextBtn();\n      }\n    }\n  }\n\n\n  function handleClick_prevBtn() {\n    if (o.parentgallery && (o.parentgallery.get(0))) {\n      o.parentgallery.get(0).api_goto_prev();\n    } else {\n\n      syncPlayers_gotoPrev(selfClass);\n    }\n  }\n\n  function handleClick_nextBtn() {\n    if (o.parentgallery && (o.parentgallery.get(0))) {\n      o.parentgallery.get(0).api_goto_next();\n    } else {\n\n      syncPlayers_gotoNext(selfClass);\n    }\n  }\n}\n\n\nfunction syncPlayers_gotoPrev(selfClass) {\n\n\n  if (selfClass._actualPlayer) {\n    selfClass._actualPlayer.get(0).api_sync_players_goto_prev();\n\n    return false;\n  }\n\n\n  syncPlayers_gotoItem(selfClass, -1);\n\n}\n\n\n/**\n * go to next inner playlistItem for single player\n * @returns {boolean}\n */\nfunction syncPlayers_gotoNext(selfClass) {\n\n  if (selfClass._actualPlayer) {\n    selfClass._actualPlayer.get(0).api_sync_players_goto_next();\n\n    return false;\n  }\n  syncPlayers_gotoItem(selfClass, 1);\n}\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param targetIncrement\n */\nfunction syncPlayers_gotoItem(selfClass, targetIncrement = 0) {\n\n\n  var targetIndex = 0;\n  if (selfClass.classFunctionalityInnerPlaylist) {\n    // -- playlist Inner\n\n    targetIndex = selfClass.playlist_inner_currNr + targetIncrement;\n    if (targetIndex >= 0) {\n      selfClass.classFunctionalityInnerPlaylist.playlistInner_gotoItem(targetIndex, {\n        'call_from': 'api_sync_players_prev'\n      });\n    }\n  } else {\n    if (window.dzsap_syncList_players && window.dzsap_syncList_players.length > 0) {\n      (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_1__.player_syncPlayers_gotoItem)(selfClass, targetIncrement);\n    } else {\n      console.log('[dzsap] [syncPlayers] no players found')\n    }\n  }\n\n  if (window.dzsap_syncList_players && window.dzsap_syncList_index >= window.dzsap_syncList_players.length) {\n    window.dzsap_syncList_index = 0;\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_nextPrevButtons.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave.js":
/*!***************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave.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 */   \"scrubbar_modeWave_clearObsoleteCanvas\": () => (/* binding */ scrubbar_modeWave_clearObsoleteCanvas),\n/* harmony export */   \"scrubbar_modeWave_setupCanvas\": () => (/* binding */ scrubbar_modeWave_setupCanvas),\n/* harmony export */   \"scrubbar_modeWave_setupCanvas_context\": () => (/* binding */ scrubbar_modeWave_setupCanvas_context),\n/* harmony export */   \"view_player_scrubModeWaveAdjustCurrTimeAndTotalTime\": () => (/* binding */ view_player_scrubModeWaveAdjustCurrTimeAndTotalTime)\n/* harmony export */ });\n\n\nfunction scrubbar_modeWave_clearObsoleteCanvas(selfClass) {\n  if (selfClass._scrubbar) {\n    selfClass._scrubbar.find('.scrubbar-type-wave--canvas.transitioning-out').remove();\n  }\n}\n\n\nfunction scrubbar_modeWave_setupCanvas_context(_canvas) {\n  if(_canvas.get(0)){\n\n    const _canvasContext = _canvas.get(0).getContext(\"2d\");\n\n    _canvasContext.imageSmoothingEnabled = false;\n    _canvasContext.imageSmoothing = false;\n    _canvasContext.imageSmoothingQuality = \"high\";\n    _canvasContext.webkitImageSmoothing = false;\n  }\n}\n\nfunction scrubbar_modeWave_setupCanvas(pargs, selfClass) {\n\n  var margs = {\n    prepare_for_transition_in: false\n  }\n\n  if (pargs) {\n    margs = Object.assign(margs, pargs);\n  }\n\n\n  var struct_scrubBg_str = '';\n  var struct_scrubProg_str = '';\n  var aux_selector = '';\n  var o = selfClass.initOptions;\n\n\n  struct_scrubBg_str = '<canvas class=\"scrubbar-type-wave--canvas scrub-bg-img';\n  struct_scrubBg_str += '\" ></canvas>';\n\n  struct_scrubProg_str = '<canvas class=\"scrubbar-type-wave--canvas scrub-prog-img';\n  struct_scrubProg_str += '\" ></canvas>';\n\n\n  selfClass._scrubbar.find('.scrub-bg').eq(0).append(struct_scrubBg_str);\n  selfClass._scrubbar.find('.scrub-prog').eq(0).append(struct_scrubProg_str);\n\n\n  selfClass._scrubbarbg_canvas = selfClass._scrubbar.find('.scrub-bg-img').last();\n  selfClass._scrubbarprog_canvas = selfClass._scrubbar.find('.scrub-prog-img').last();\n\n  if (o.skinwave_enableSpectrum === 'on') {\n    selfClass._scrubbarprog_canvas.hide();\n  }\n\n\n  scrubbar_modeWave_setupCanvas_context(selfClass._scrubbarbg_canvas);\n  scrubbar_modeWave_setupCanvas_context(selfClass._scrubbarprog_canvas);\n\n\n  if (margs.prepare_for_transition_in) {\n    selfClass._scrubbarbg_canvas.addClass('preparing-transitioning-in');\n    selfClass._scrubbarprog_canvas.addClass('preparing-transitioning-in');\n    setTimeout(function () {\n      selfClass._scrubbarbg_canvas.addClass('transitioning-in');\n      selfClass._scrubbarprog_canvas.addClass('transitioning-in');\n    }, 20);\n  }\n}\n\n\nfunction view_player_scrubModeWaveAdjustCurrTimeAndTotalTime(selfClass){\n\n  const cthis = selfClass.cthis;\n\n  if (selfClass.scrubbarProgX < 0) {\n    selfClass.scrubbarProgX = 0;\n  }\n  selfClass.scrubbarProgX = parseInt(selfClass.scrubbarProgX, 10);\n\n\n  if (selfClass.scrubbarProgX < 2 && cthis.data('promise-to-play-footer-player-from')) {\n    return false;\n  }\n\n  // -- move currTime\n  selfClass.$currTime.css({\n    'left': selfClass.scrubbarProgX\n  });\n\n  if (selfClass.scrubbarProgX > selfClass.scrubbarWidth - selfClass.currTime_outerWidth) {\n    selfClass.$currTime.css({\n      'left': selfClass.scrubbarWidth - selfClass.currTime_outerWidth\n    })\n  }\n  if (selfClass.scrubbarProgX > selfClass.scrubbarWidth - 30 && selfClass.scrubbarWidth) {\n    selfClass.$totalTime.css({\n      'opacity': 1 - (((selfClass.scrubbarProgX - (selfClass.scrubbarWidth - 30)) / 30))\n    });\n  } else {\n    if (selfClass.$totalTime.css('opacity') !== '1') {\n      selfClass.$totalTime.css({\n        'opacity': ''\n      });\n    }\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave_spectrum.js":
/*!************************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave_spectrum.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 */   \"player_initSpectrum\": () => (/* binding */ player_initSpectrum),\n/* harmony export */   \"player_initSpectrumOnUserAction\": () => (/* binding */ player_initSpectrumOnUserAction),\n/* harmony export */   \"view_spectrum_drawMeter\": () => (/* binding */ view_spectrum_drawMeter)\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 _wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wave-render/_wave-render-functions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/wave-render/_wave-render-functions.js\");\n\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_initSpectrum(selfClass) {\n\n\n  if (window.dzsap_audio_ctx === null) {\n    if (typeof AudioContext !== 'undefined') {\n      selfClass.spectrum_audioContext = new AudioContext();\n    } else if (typeof webkitAudioContext !== 'undefined') {\n      selfClass.spectrum_audioContext = new webkitAudioContext();\n    } else {\n      selfClass.spectrum_audioContext = null;\n    }\n    window.dzsap_audio_ctx = selfClass.spectrum_audioContext;\n  } else {\n    selfClass.spectrum_audioContext = window.dzsap_audio_ctx;\n  }\n\n\n  if (selfClass.spectrum_audioContext) {\n    if (selfClass.spectrum_analyser === null) {\n\n      selfClass.spectrum_analyser = selfClass.spectrum_audioContext.createAnalyser();\n      selfClass.spectrum_analyser.smoothingTimeConstant = 0.3;\n      selfClass.spectrum_analyser.fftSize = 512;\n\n      if (selfClass.audioType === 'selfHosted') {\n        selfClass.$mediaNode_.crossOrigin = \"anonymous\";\n        selfClass.spectrum_mediaElementSource = selfClass.spectrum_audioContext.createMediaElementSource(selfClass.$mediaNode_);\n\n        selfClass.spectrum_mediaElementSource.connect(selfClass.spectrum_analyser);\n        if (selfClass.spectrum_audioContext.createGain) {\n          selfClass.spectrum_gainNode = selfClass.spectrum_audioContext.createGain();\n        }\n        selfClass.spectrum_analyser.connect(selfClass.spectrum_audioContext.destination);\n\n        selfClass.spectrum_gainNode.gain.value = 1;\n\n        const frameCount = selfClass.spectrum_audioContext.sampleRate * 2.0;\n        selfClass.spectrum_audioContext_buffer = selfClass.spectrum_audioContext.createBuffer(2, frameCount, selfClass.spectrum_audioContext.sampleRate);\n      }\n    }\n  }\n\n\n  if (selfClass._scrubbarbg_canvas) {\n\n    selfClass.canvasWidth = selfClass._scrubbarbg_canvas.width();\n    selfClass.heightCanvas = selfClass._scrubbarbg_canvas.height();\n\n\n    if (selfClass.heightCanvas == 0) {\n      selfClass.heightCanvas = 100;\n    }\n\n    selfClass._scrubbarbg_canvas.get(0).width = selfClass.canvasWidth;\n    selfClass._scrubbarbg_canvas.get(0).height = selfClass.heightCanvas;\n  }\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_initSpectrumOnUserAction(selfClass) {\n\n\n  selfClass.cthis.get(0).addEventListener('mousedown', handleMouseDown, {once: true});\n  selfClass.cthis.get(0).addEventListener('touchdown', handleMouseDown, {once: true});\n\n  function handleMouseDown(e) {\n    player_initSpectrum(selfClass);\n  }\n\n\n}\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param $scrubBgCanvas\n * @param {string} spectrum_fakeItMode\n * @param {number} heightCanvas\n */\nconst view_spectrum_drawMeter = function (selfClass, $scrubBgCanvas, spectrum_fakeItMode, heightCanvas) {\n\n\n  // -- spectrum ON\n  // -- easing\n\n  let duration_viy = 20;\n  let begin_viy = 0;\n  let change_viy = 0;\n\n  if (selfClass.initOptions.type === 'soundcloud' || spectrum_fakeItMode === 'on') {\n    selfClass.lastArray = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.generateFakeArrayForPcm)();\n\n  } else {\n\n\n    if (selfClass.spectrum_analyser) {\n\n      if (selfClass.isPlayerPlaying) {\n        selfClass.lastArray = new Uint8Array(selfClass.spectrum_analyser.frequencyBinCount);\n        selfClass.spectrum_analyser.getByteFrequencyData(selfClass.lastArray);\n      }\n\n\n    }\n  }\n\n\n  // -- normalize if pcmSource exists\n  if (selfClass.pcmSource) {\n    for (let i = 0; i < selfClass.lastArray.length; i++) {\n      selfClass.lastArray[i] = (selfClass.lastArray[i] * 3/4 + (selfClass.pcmSource[i] /4));\n    }\n  }\n\n\n  if (selfClass.lastArray && selfClass.lastArray.length) {\n    // -- fix when some sounds end the value still not back to zero\n    const len = selfClass.lastArray.length;\n    for (let i = len - 1; i >= 0; i--) {\n\n      if (i < len / 2) {\n\n        selfClass.lastArray[i] = selfClass.lastArray[i] / 255 * heightCanvas;\n      } else {\n\n        selfClass.lastArray[i] = selfClass.lastArray[len - i] / 255 * heightCanvas;\n      }\n\n    }\n    ;\n\n\n    if (!selfClass.isPlayerPlaying && selfClass.pcmSource) {\n      selfClass.lastArray = [...selfClass.pcmSource];\n    }\n\n    // -- normalize\n    if (selfClass.isPlayerPlayingEased && selfClass.last_lastarray) {\n      for (let i3 = 0; i3 < selfClass.last_lastarray.length; i3++) {\n        if (selfClass.last_lastarray[i3] > heightCanvas) {\n          selfClass.last_lastarray[i3] = heightCanvas;\n        }\n        begin_viy = selfClass.last_lastarray[i3]; // -- last value\n        change_viy = selfClass.lastArray[i3] - begin_viy; // -- target value - last value\n        duration_viy = 6;\n        selfClass.lastArray[i3] = Math.easeIn(1, begin_viy, change_viy, duration_viy);\n      }\n    }\n    // -- easing END\n\n\n    (0,_wave_render_wave_render_functions__WEBPACK_IMPORTED_MODULE_1__.draw_canvas)($scrubBgCanvas.get(0), selfClass.lastArray, '' + selfClass.initOptions.design_wave_color_bg, {\n      'call_from': 'spectrum',\n      selfClass,\n      'skinwave_wave_mode_canvas_waves_number': parseInt(selfClass.initOptions.skinwave_wave_mode_canvas_waves_number),\n      'skinwave_wave_mode_canvas_waves_padding': parseInt(selfClass.initOptions.skinwave_wave_mode_canvas_waves_padding)\n    }, false)\n\n\n    if (selfClass.lastArray) {\n      selfClass.last_lastarray = selfClass.lastArray.slice();\n    }\n  }\n\n};\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave_spectrum.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubbar.js":
/*!**********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubbar.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 */   \"player_scrubbarSetup\": () => (/* binding */ player_scrubbarSetup)\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 _view_player_view_dimensionHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../view/player/_view_dimensionHelpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_dimensionHelpers.js\");\n\n\n\nfunction player_scrubbarSetup(selfClass, $, o, view_drawCurrentTime, viewCalculateScrubbarWidth, play_media, seek_to) {\n  const cthis = selfClass.cthis;\n  selfClass._scrubbar.on('mousemove', handleMouseOnScrubbar);\n  selfClass._scrubbar.on('mouseleave', handleMouseOnScrubbar);\n  selfClass._scrubbar.on('click', handleMouseOnScrubbar);\n\n\n  function handleMouseOnScrubbar(e) {\n    var mousex = e.pageX;\n\n\n    if ($(e.target).hasClass('sample-block-start') || $(e.target).hasClass('sample-block-end')) {\n      return false;\n    }\n\n    if (e.type === 'mousemove') {\n      selfClass._scrubbar.children('.scrubBox-hover').css({\n        'left': (mousex - selfClass._scrubbar.offset().left)\n      });\n\n\n      if (o.scrub_show_scrub_time === 'on') {\n\n\n        if (selfClass.timeModel.getVisualTotalTime()) {\n          var aux = (mousex - selfClass._scrubbar.offset().left) / selfClass._scrubbar.outerWidth() * selfClass.timeModel.getVisualTotalTime();\n\n\n          if (selfClass.$currTime) {\n            selfClass.$currTime.html((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.formatTime)(aux));\n            selfClass.$currTime.addClass('scrub-time');\n\n          }\n\n          selfClass.isScrubShowingCurrentTime = true;\n        }\n      }\n\n    }\n    if (e.type === 'mouseleave') {\n\n      selfClass.isScrubShowingCurrentTime = false;\n\n      if (selfClass.$currTime) {\n        selfClass.$currTime.removeClass('scrub-time');\n\n      }\n\n      view_drawCurrentTime();\n\n    }\n    if (e.type === 'click') {\n\n\n      if (cthis.hasClass('prevent-bubble')) {\n        if (e && e.stopPropagation) {\n          e.preventDefault();\n          e.stopPropagation();\n        }\n      }\n\n      viewCalculateScrubbarWidth();\n      let targetPositionOnScrub = (0,_view_player_view_dimensionHelpers__WEBPACK_IMPORTED_MODULE_1__.view_calculateTargetPositionOnScrub)(selfClass, selfClass.scrubbarWidth, e);\n\n      if (selfClass._actualPlayer) {\n        setTimeout(function () {\n          if (selfClass._actualPlayer.get(0) && selfClass._actualPlayer.get(0).api_pause_media) {\n\n            selfClass._actualPlayer.get(0).api_seek_to_perc(targetPositionOnScrub / selfClass.timeModel.getVisualTotalTime(), {\n              'call_from': 'from_feeder_to_feed'\n            });\n          }\n        }, 50);\n      }\n\n\n      seek_to(targetPositionOnScrub, {\n        'call_from': 'handleMouseOnScrubbar'\n      });\n\n      if (o.autoplay_on_scrub_click === 'on') {\n        if (!selfClass.isPlayerPlaying) {\n          play_media({\n            'called_from': 'handleMouseOnScrubbar'\n          });\n        }\n      }\n\n      if (cthis.hasClass('from-wc_loop')) {\n        return false;\n      }\n    }\n\n  }\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubbar.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_setupMiscButtons.js":
/*!******************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_setupMiscButtons.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 */   \"player_setupMiscButtons\": () => (/* binding */ player_setupMiscButtons)\n/* harmony export */ });\n/* harmony import */ var _dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_dzsap_ajax */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/_dzsap_ajax.js\");\n\n\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n * @param {jQuery} $\n * @param {function} seek_to\n */\nconst player_setupMiscButtons = (selfClass, $, seek_to) => {\n  var cthis = selfClass.cthis;\n\n  cthis.on('click', '.dzsap-repeat-button,.btn-zoomsounds-download,.zoomsounds-btn-step-backward,.zoomsounds-btn-step-forward,.zoomsounds-btn-go-beginning,.zoomsounds-btn-slow-playback,.zoomsounds-btn-reset, .tooltip-indicator--btn-footer-playlist, .wave-download', handle_mouse);\n  cthis.find('.wave-download').on('click', handle_mouse);\n\n\n\n  cthis.on('click', '.skip-15-sec', function () {\n    cthis.get(0).api_step_forward(15);\n  });\n\n  function handle_mouse(e) {\n    let _target;\n    const $t = $(this);\n\n    // if ($t.hasClass('wave-download')) {\n    //   (ajax_submit_download.bind(selfClass))();\n    // }\n    if ($t.hasClass('tooltip-indicator--btn-footer-playlist')) {\n\n      $t.parent().find('.dzstooltip').toggleClass('active');\n    }\n    if ($t.hasClass('zoomsounds-btn-go-beginning')) {\n\n      _target = cthis;\n      if (selfClass._actualPlayer) {\n        _target = selfClass._actualPlayer;\n      }\n\n      _target.get(0).api_seek_to(0);\n    }\n    if ($t.hasClass('zoomsounds-btn-step-backward')) {\n\n      _target = cthis;\n      if (selfClass._actualPlayer) {\n        _target = selfClass._actualPlayer;\n      }\n\n      _target.get(0).api_step_back();\n    }\n    if ($t.hasClass('zoomsounds-btn-step-forward')) {\n\n      _target = cthis;\n      if (selfClass._actualPlayer) {\n        _target = selfClass._actualPlayer;\n      }\n\n      _target.get(0).api_step_forward();\n    }\n    if ($t.hasClass('zoomsounds-btn-slow-playback')) {\n      _target = cthis;\n      if (selfClass._actualPlayer) {\n        _target = selfClass._actualPlayer;\n      }\n\n      _target.get(0).api_playback_slow();\n    }\n    if ($t.hasClass('zoomsounds-btn-reset')) {\n      _target = cthis;\n      if (selfClass._actualPlayer) {\n        _target = selfClass._actualPlayer;\n      }\n\n      _target.get(0).api_playback_reset();\n    }\n    if ($t.hasClass('btn-zoomsounds-download')) {\n      (_dzsap_ajax__WEBPACK_IMPORTED_MODULE_0__.ajax_submit_download.bind(selfClass))();\n    }\n    if ($t.hasClass('dzsap-repeat-button')) {\n\n      if (selfClass.isPlayerPlaying) {\n      }\n      seek_to(0, {\n        call_from: \"repeat\"\n      });\n    }\n\n\n  }\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_setupMiscButtons.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_touchFunctionality.js":
/*!********************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_touchFunctionality.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_player_touchFunctionalitySetup\": () => (/* binding */ dzsap_player_touchFunctionalitySetup)\n/* harmony export */ });\nconst dzsap_player_touchFunctionalitySetup = (selfClass, seek_to_perc, $) => {\n  // -- touch controls\n  var scrubbar_moving = false\n    , scrubbar_moving_x = 0\n    , aux3 = 0\n  ;\n\n\n  if (selfClass._scrubbar && selfClass._scrubbar.get(0)) {\n\n    selfClass._scrubbar.get(0).addEventListener('touchstart', function (e) {\n      if (selfClass.isPlayerPlaying) {\n        scrubbar_moving = true;\n      }\n    }, {passive: true})\n  }\n\n  $(document).on('touchmove', function (e) {\n    if (scrubbar_moving) {\n      scrubbar_moving_x = e.originalEvent.touches[0].pageX;\n\n\n      aux3 = scrubbar_moving_x - selfClass._scrubbar.offset().left;\n\n      if (aux3 < 0) {\n        aux3 = 0;\n      }\n      if (aux3 > selfClass._scrubbar.width()) {\n        aux3 = selfClass._scrubbar.width();\n      }\n\n      seek_to_perc(aux3 / selfClass._scrubbar.width(), {\n        call_from: \"touch move\"\n      });\n\n\n      return false;\n\n    }\n  });\n\n  $(document).on('touchend', function (e) {\n    scrubbar_moving = false;\n  });\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_touchFunctionality.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_viewSetup.js":
/*!***********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_viewSetup.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 */   \"view_resizeEmbedded\": () => (/* binding */ view_resizeEmbedded),\n/* harmony export */   \"view_resizeHandleTreatSkins\": () => (/* binding */ view_resizeHandleTreatSkins)\n/* harmony export */ });\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nconst view_resizeHandleTreatSkins = (selfClass) => {\n  var isResolveThumbHeight = false\n\n  var cthis = selfClass.cthis;\n  var o = selfClass.initOptions;\n  selfClass.scrubbarWidth = selfClass._scrubbar.outerWidth(false);\n  if (o.design_skin === 'skin-default') {\n    selfClass.scrubbarWidth = selfClass.cthisWidth;\n  }\n  if (o.design_skin === 'skin-pro') {\n    selfClass.scrubbarWidth = selfClass.cthisWidth;\n  }\n  if (o.design_skin === 'skin-silver' || o.design_skin === 'skin-aria') {\n    selfClass.scrubbarWidth = selfClass.cthisWidth;\n    selfClass.scrubbarWidth = selfClass._scrubbar.width();\n  }\n\n\n  if (o.design_skin === 'skin-justthumbandbutton') {\n    selfClass.cthisWidth = cthis.children('.audioplayer-inner').outerWidth();\n    selfClass.scrubbarWidth = selfClass.cthisWidth;\n  }\n  if (o.design_skin === 'skin-redlights' || o.design_skin === 'skin-steel') {\n    selfClass.scrubbarWidth = selfClass._scrubbar.width();\n  }\n\n  if (o.design_skin === 'skin-wave') {\n    selfClass.scrubbarWidth = selfClass._scrubbar.outerWidth(false);\n\n    if (selfClass._commentsHolder) {\n\n      selfClass._commentsHolder.css({\n        'width': selfClass.scrubbarWidth\n      })\n      selfClass._commentsHolder.addClass('active');\n    }\n\n  }\n\n}\nconst view_resizeEmbedded = (selfClass) => {\n\n  var cthis = selfClass.cthis;\n  if (window.frameElement) {\n\n    let args = {\n      height: cthis.outerHeight()\n    };\n\n\n    if (o.embedded_iframe_id) {\n\n      args.embedded_iframe_id = o.embedded_iframe_id;\n    }\n\n\n    var message = {\n      name: \"resizeIframe\",\n      params: args\n    };\n    window.parent.postMessage(message, '*');\n  }\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_viewSetup.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_volume.js":
/*!********************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_volume.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 */   \"getDefaultVolume\": () => (/* binding */ getDefaultVolume),\n/* harmony export */   \"player_volumeSetup\": () => (/* binding */ player_volumeSetup),\n/* harmony export */   \"volume_setOnlyVisual\": () => (/* binding */ volume_setOnlyVisual),\n/* harmony export */   \"volume_setVolume\": () => (/* binding */ volume_setVolume)\n/* harmony export */ });\nfunction player_volumeSetup(selfClass, volume_lastVolume, $, o) {\n\n  let last_vol_before_mute = 1;\n  var isMuted = false;\n  let volume_dragging = false;\n\n\n  const cthis = selfClass.cthis;\n\n\n  selfClass.$controlsVolume.on('click', '.volumeicon', volume_handleClickMuteIcon);\n\n  selfClass.$controlsVolume.on('mousemove', volume_handleMouse);\n  selfClass.$controlsVolume.on('mousedown', volume_handleMouse);\n\n\n  $(document).on('mouseup', window, volume_handleMouse);\n\n  if (o.design_skin === 'skin-silver') {\n    cthis.on('click', '.volume-holder', volume_handleMouse);\n  }\n\n\n  function volume_handleClickMuteIcon(e) {\n\n    if (isMuted === false) {\n      last_vol_before_mute = volume_lastVolume;\n      volume_setVolume(selfClass, 0, {\n        call_from: \"from_mute\"\n      });\n      isMuted = true;\n    } else {\n      volume_setVolume(selfClass, last_vol_before_mute, {\n        call_from: \"from_unmute\"\n      });\n      isMuted = false;\n    }\n  }\n\n\n\n\n  function volume_handleMouse(e) {\n    var _t = $(this);\n    /**\n     * from 0 to 1\n     * @type number\n     */\n    let mouseXRelativeToVolume = null;\n\n    if (selfClass.$controlsVolume.find('.volume_static').length) {\n\n      mouseXRelativeToVolume = Number((e.pageX - (selfClass.$controlsVolume.find('.volume_static').eq(0).offset().left)) / (selfClass.$controlsVolume.find('.volume_static').eq(0).width()));\n    }\n\n    if (!mouseXRelativeToVolume) {\n      return false;\n    }\n    if (e.type === 'mousemove') {\n      if (volume_dragging) {\n\n        if (_t.parent().hasClass('volume-holder') || _t.hasClass('volume-holder')) {\n        }\n\n        if (o.design_skin === 'skin-redlights') {\n          mouseXRelativeToVolume *= 10;\n          mouseXRelativeToVolume = Math.round(mouseXRelativeToVolume);\n          mouseXRelativeToVolume /= 10;\n        }\n\n\n        volume_setVolume(selfClass, mouseXRelativeToVolume, {\n          call_from: \"set_by_mousemove\"\n        });\n        isMuted = false;\n      }\n\n    }\n    if (e.type === 'mouseleave') {\n\n    }\n    if (e.type === 'click') {\n\n      if (_t.parent().hasClass('volume-holder')) {\n\n\n        mouseXRelativeToVolume = 1 - ((e.pageY - (selfClass.$controlsVolume.find('.volume_static').eq(0).offset().top)) / (selfClass.$controlsVolume.find('.volume_static').eq(0).height()));\n\n      }\n      if (_t.hasClass('volume-holder')) {\n        mouseXRelativeToVolume = 1 - ((e.pageY - (selfClass.$controlsVolume.find('.volume_static').eq(0).offset().top)) / (selfClass.$controlsVolume.find('.volume_static').eq(0).height()));\n\n\n      }\n\n      volume_setVolume(selfClass, mouseXRelativeToVolume, {\n        call_from: \"set_by_mouseclick\"\n      });\n      isMuted = false;\n    }\n\n    if (e.type === 'mousedown') {\n\n      volume_dragging = true;\n      cthis.addClass('volume-dragging');\n\n\n      if (_t.parent().hasClass('volume-holder')) {\n\n\n        mouseXRelativeToVolume = 1 - ((e.pageY - (selfClass.$controlsVolume.find('.volume_static').eq(0).offset().top)) / (selfClass.$controlsVolume.find('.volume_static').eq(0).height()));\n\n      }\n\n      volume_setVolume(selfClass, mouseXRelativeToVolume, {\n        call_from: \"set_by_mousedown\"\n      });\n      isMuted = false;\n    }\n    if (e.type === 'mouseup') {\n\n      volume_dragging = false;\n      cthis.removeClass('volume-dragging');\n\n    }\n\n  }\n\n}\n\n\n\n\nfunction volume_setOnlyVisual(selfClass, arg, margs) {\n  const o = selfClass.initOptions;\n\n  if (selfClass.$controlsVolume.hasClass('controls-volume-vertical')) {\n    selfClass.$controlsVolume.find('.volume_active').eq(0).css({\n      'height': (selfClass.$controlsVolume.find('.volume_static').eq(0).height() * arg)\n    });\n  } else {\n\n    if (selfClass.initOptions.design_skin === 'skin-redlights') {\n\n      selfClass.$controlsVolume.find('.volume_active').eq(0).css({\n        'clip-path': 'inset(0% ' + (Math.abs(1 - arg) * 100) + '% 0% 0%)'\n      });\n    } else {\n\n      selfClass.$controlsVolume.find('.volume_active').eq(0).css({\n        'width': (selfClass.$controlsVolume.find('.volume_static').eq(0).width() * arg)\n      });\n    }\n  }\n\n\n  if (o.design_skin === 'skin-wave' && o.skinwave_dynamicwaves === 'on') {\n    selfClass._scrubbar.find('.scrub-bg-img').eq(0).css({\n      'transform': 'scaleY(' + arg + ')'\n    })\n    selfClass._scrubbar.find('.scrub-prog-img').eq(0).css({\n      'transform': 'scaleY(' + arg + ')'\n    })\n\n  }\n\n\n  if (localStorage !== null && selfClass.the_player_id) {\n\n    localStorage.setItem('dzsap_last_volume_' + selfClass.the_player_id, arg);\n\n  }\n\n  selfClass.volume_lastVolume = arg;\n}\n\n\n\n\n/**\n * outputs a volume from 0 to 1\n * @param {DzsAudioPlayer} selfClass\n * @param {number} arg 0 <-> 1\n * @param pargs\n * @returns {boolean}\n */\nfunction volume_setVolume(selfClass, arg, pargs) {\n\n  var margs = {\n\n    'call_from': 'default'\n  };\n\n  if (pargs) {\n    margs = Object.assign(margs, pargs);\n  }\n\n  if (arg > 1) {\n    arg = 1;\n  }\n  if (arg < 0) {\n    arg = 0;\n  }\n\n  var o = selfClass.initOptions;\n  const $ = selfClass.$;\n  let volume_isSetByUser = false;\n\n\n  if (margs.call_from === 'from_fake_player_feeder_from_init_loaded') {\n    // -- lets prevent call from the init_loaded set_volume if the volume has been changed\n    if (selfClass._sourcePlayer) {\n      if (o.default_volume !== 'default') {\n        volume_isSetByUser = true;\n      }\n      if (volume_isSetByUser) {\n        return false;\n      } else {\n        volume_isSetByUser = true;\n      }\n    }\n  }\n\n  if (margs.call_from === 'set_by_mouseclick' || margs.call_from === 'set_by_mousemove') {\n    volume_isSetByUser = true;\n  }\n\n  if (selfClass.audioType === 'youtube') {\n    if (selfClass.$mediaNode_ && selfClass.$mediaNode_.setVolume) {\n      selfClass.$mediaNode_.setVolume(arg * 100);\n    }\n  }\n  if (selfClass.audioType === 'selfHosted') {\n    if (selfClass.$mediaNode_) {\n\n      selfClass.$mediaNode_.volume = arg;\n    } else {\n      if (selfClass.$mediaNode_) {\n        $(selfClass.$mediaNode_).attr('preload', 'metadata');\n      }\n    }\n  }\n\n\n  volume_setOnlyVisual(selfClass, arg, margs);\n\n  if (selfClass._sourcePlayer) {\n    margs.call_from = ('from_fake_player')\n    if (selfClass._sourcePlayer.get(0) && selfClass._sourcePlayer.get(0).api_visual_set_volume(arg, margs)) {\n      selfClass._sourcePlayer.get(0).api_visual_set_volume(arg, margs);\n    }\n  }\n\n  if (selfClass._actualPlayer) {\n    if (margs.call_from !== ('from_fake_player')) {\n      if (margs.call_from === 'from_init_loaded') {\n\n        margs.call_from = ('from_fake_player_feeder_from_init_loaded')\n      } else {\n\n        margs.call_from = ('from_fake_player_feeder')\n      }\n      if (selfClass._actualPlayer && selfClass._actualPlayer.get(0) && selfClass._actualPlayer.get(0).api_set_volume) {\n        selfClass._actualPlayer.get(0).api_set_volume(arg, margs);\n      }\n    }\n  }\n\n}\n\n\nfunction getDefaultVolume(o, selfClass){\n\n  let defaultVolume = 1;\n  if (o.default_volume === 'default') {\n    defaultVolume = 1;\n  }\n\n  if (isNaN(Number(o.default_volume)) === false) {\n    defaultVolume = Number(o.default_volume);\n  } else {\n    if (o.default_volume === 'last') {\n      if (localStorage !== null && selfClass.the_player_id) {\n        if (localStorage.getItem('dzsap_last_volume_' + selfClass.the_player_id)) {\n          defaultVolume = localStorage.getItem('dzsap_last_volume_' + selfClass.the_player_id);\n        } else {\n          defaultVolume = 1;\n        }\n      } else {\n        defaultVolume = 1;\n      }\n    }\n  }\n\n  if (o.volume_from_gallery) {\n    defaultVolume = o.volume_from_gallery;\n  }\n\n  return defaultVolume;\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_volume.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/features/_zoomsounds-radio-features.js":
/*!*****************************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/features/_zoomsounds-radio-features.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 */   \"checkIfNeedsSongNameRefresh\": () => (/* binding */ checkIfNeedsSongNameRefresh),\n/* harmony export */   \"player_icecastOrShoutcastRefresh\": () => (/* binding */ player_icecastOrShoutcastRefresh)\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\n\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction checkIfNeedsSongNameRefresh(selfClass){\n\n  if (selfClass.audioTypeSelfHosted_streamType === 'icecast' || selfClass.audioTypeSelfHosted_streamType === 'shoutcast') {\n    // -- if we have icecast we can update currently playing song\n\n\n    if (selfClass.audioTypeSelfHosted_streamType === 'icecast' || (selfClass.radio_isGoingToUpdateArtistName || selfClass.radio_isGoingToUpdateSongName)) {\n\n      player_icecastOrShoutcastRefresh(selfClass);\n    }\n    setInterval(function () {\n      player_icecastOrShoutcastRefresh(selfClass);\n    }, 10000)\n  }\n}\n\n\nfunction player_icecastOrShoutcastRefresh(selfClass) {\n\n\n  let url = selfClass.cthis.attr('data-source');\n\n  if (selfClass.audioTypeSelfHosted_streamType === 'shoutcast') {\n    url = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.add_query_arg)(selfClass.urlToAjaxHandler, 'action', 'dzsap_shoutcast_get_streamtitle');\n    url = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.add_query_arg)(url, 'source', (selfClass.data_source));\n  }\n\n\n  jQuery.ajax({\n    type: \"GET\",\n    url: url,\n    crossDomain: true,\n    success: function (response) {\n\n      if (response.documentElement && response.documentElement.innerHTML) {\n        response = response.documentElement.innerHTML;\n      }\n\n\n      let regex_title = '';\n      let regex_creator = '';\n      let new_title = '';\n      let new_artist = '';\n\n      if (selfClass.audioTypeSelfHosted_streamType === 'icecast') {\n\n        var regex_location = /<location>(.*?)<\\/location>/g\n\n        var regexMatches = null;\n        if (regexMatches = regex_location.exec(response)) {\n\n\n          if (regexMatches[1] !== selfClass.data_source) {\n            selfClass.data_source = regexMatches[1];\n            selfClass.setup_media({\n              'called_from': 'icecast setup'\n            });\n          }\n        }\n      }\n\n      if (selfClass.radio_isGoingToUpdateSongName) {\n        if (selfClass.audioTypeSelfHosted_streamType === 'icecast') {\n          regex_title = /<title>(.*?)<\\/title>/g\n\n          if (regexMatches = regex_title.exec(response)) {\n            new_title = regexMatches[1];\n          }\n        }\n        if (selfClass.audioTypeSelfHosted_streamType === 'shoutcast') {\n          new_title = response;\n        }\n\n      }\n      if (selfClass.radio_isGoingToUpdateArtistName) {\n        if (selfClass.audioTypeSelfHosted_streamType === 'icecast') {\n\n          regex_creator = /<creator>(.*?)<\\/creator>/g;\n\n          if (regexMatches = regex_creator.exec(response)) {\n            new_artist = regexMatches[1];\n          }\n        }\n        if (selfClass.audioTypeSelfHosted_streamType === 'shoutcast') {\n        }\n      }\n\n      if (selfClass.radio_isGoingToUpdateSongName) {\n        selfClass._metaArtistCon.find('.the-name').html(new_title);\n      }\n\n      if (selfClass.radio_isGoingToUpdateArtistName) {\n        selfClass._metaArtistCon.find('.the-artist').html(new_artist)\n      }\n    },\n    error: function (err) {\n\n    }\n  });\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/features/_zoomsounds-radio-features.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_dimensionHelpers.js":
/*!*********************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_dimensionHelpers.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 */   \"view_calculateTargetPositionOnScrub\": () => (/* binding */ view_calculateTargetPositionOnScrub)\n/* harmony export */ });\nfunction view_calculateTargetPositionOnScrub(selfClass, scrubbarWidth, e) {\n  let targetPositionOnScrub = ((e.pageX - (selfClass._scrubbar.offset().left)) / (scrubbarWidth) * selfClass.timeModel.getVisualTotalTime());\n\n\n  if (selfClass.sample_time_start > 0) {\n    targetPositionOnScrub -= selfClass.sample_time_start;\n  }\n\n\n  return targetPositionOnScrub;\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_dimensionHelpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_playerStructure.js":
/*!********************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_playerStructure.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 */   \"player_constructArtistAndSongCon\": () => (/* binding */ player_constructArtistAndSongCon),\n/* harmony export */   \"player_setupStructure_thumbnailCon\": () => (/* binding */ player_setupStructure_thumbnailCon)\n/* harmony export */ });\n/**\n *\n * @param {DzsAudioPlayer} selfClass\n */\nfunction player_setupStructure_thumbnailCon(selfClass){\n\n\n  var cthis = selfClass.cthis;\n  var o = selfClass.initOptions;\n\n  if (cthis.attr('data-thumb')) {\n    cthis.addClass('has-thumb');\n    var aux_thumb_con_str = '';\n\n    if (cthis.attr('data-thumb_link')) {\n      aux_thumb_con_str += '<a href=\"' + cthis.attr('data-thumb_link') + '\"';\n    } else {\n      aux_thumb_con_str += '<div';\n    }\n    aux_thumb_con_str += ' class=\"the-thumb-con\"><div class=\"the-thumb\" style=\" background-image:url(' + cthis.attr('data-thumb') + ')\"></div>';\n\n\n    if (cthis.attr('data-thumb_link')) {\n      aux_thumb_con_str += '</a>';\n    } else {\n      aux_thumb_con_str += '</div>';\n    }\n\n\n    if (cthis.children('.the-thumb-con').length) {\n      aux_thumb_con_str = cthis.children('.the-thumb-con').eq(0);\n    }\n\n\n    if (o.design_skin !== 'skin-customcontrols') {\n      if (o.design_skin === 'skin-wave' && (selfClass.skinwave_mode === 'small' || selfClass.skinwave_mode === 'alternate')) {\n\n        if (selfClass.skinwave_mode === 'alternate') {\n          selfClass._audioplayerInner.prepend(aux_thumb_con_str);\n        } else {\n\n          selfClass._apControlsLeft.prepend(aux_thumb_con_str);\n        }\n      } else if (o.design_skin === 'skin-steel') {\n        selfClass._apControlsLeft.prepend(aux_thumb_con_str);\n      } else {\n\n        selfClass._audioplayerInner.prepend(aux_thumb_con_str);\n      }\n    }\n\n  } else {\n\n    cthis.removeClass('has-thumb');\n  }\n}\n\nfunction player_constructArtistAndSongCon(margs) {\n\n  var selfClass = this;\n\n  if (selfClass.cthis.find('.meta-artist').length === 0) {\n    if (selfClass.cthis.find('.feed-artist-name').length || selfClass.cthis.find('.feed-song-name').length) {\n      let structHtmlMeta = '<span class=\"meta-artist player-artistAndSong\">';\n      if (selfClass.cthis.find('.feed-artist-name').length) {\n        structHtmlMeta += '<span class=\"the-artist\">' + selfClass.cthis.find('.feed-artist-name').eq(0).html() + '</span>';\n      }\n      if (selfClass.cthis.find('.feed-song-name').length) {\n        structHtmlMeta += '<span class=\"the-name player-meta--songname\">' + selfClass.cthis.find('.feed-song-name').eq(0).html() + '</span>';\n      }\n      structHtmlMeta += '</span>';\n      selfClass.cthis.append(structHtmlMeta);\n    }\n  }\n\n  if (selfClass.cthis.attr(\"data-type\") === 'fake') {\n    if (selfClass.cthis.find('.meta-artist').length === 0) {\n      selfClass.cthis.append('<span class=\"meta-artist\"><span class=\"the-artist\"></span><span class=\"the-name\"></span></span>')\n    }\n  }\n\n  if (!selfClass._metaArtistCon || margs.call_from === 'reconstruct') {\n\n    if (selfClass.cthis.children('.meta-artist').length > 0) {\n      if (selfClass.cthis.hasClass('skin-wave-mode-alternate')) {\n        if (selfClass._conControls.children().last().hasClass('clear')) {\n          selfClass._conControls.children().last().remove();\n        }\n        selfClass._conControls.append(selfClass.cthis.children('.meta-artist'));\n      } else {\n        if (selfClass._audioplayerInner) {\n          selfClass._audioplayerInner.append(selfClass.cthis.children('.meta-artist'));\n        }\n      }\n    }\n\n\n    selfClass._audioplayerInner.find('.meta-artist').eq(0).wrap('<div class=\"meta-artist-con\"></div>');\n\n\n    selfClass._metaArtistCon = selfClass._audioplayerInner.find('.meta-artist-con').eq(0);\n\n\n    const o = selfClass.initOptions;\n\n\n    if (selfClass._apControls.find('.ap-controls-right').length > 0) {\n      selfClass._apControlsRight = selfClass.cthis.find('.ap-controls-right').eq(0);\n    }\n    if (selfClass._apControls.find('.ap-controls-left').length > 0) {\n      selfClass._apControlsLeft = selfClass._apControls.find('.ap-controls-left').eq(0);\n    }\n\n\n    if (o.design_skin === 'skin-pro') {\n      selfClass._apControlsRight = selfClass.cthis.find('.con-controls--right').eq(0)\n    }\n\n    if (o.design_skin === 'skin-wave') {\n\n\n      if (selfClass.cthis.find('.dzsap-repeat-button').length) {\n        selfClass.cthis.find('.dzsap-repeat-button').after(selfClass._metaArtistCon);\n      } else {\n\n\n        if (selfClass.cthis.find('.dzsap-loop-button').length && selfClass.cthis.find('.dzsap-loop-button').eq(0).parent().hasClass('feed-dzsap-for-extra-html-right') === false) {\n          selfClass.cthis.find('.dzsap-loop-button').after(selfClass._metaArtistCon);\n        } else {\n\n          selfClass._conPlayPauseCon.after(selfClass._metaArtistCon);\n        }\n      }\n\n      if (selfClass.skinwave_mode === 'alternate') {\n        selfClass._apControlsRight.before(selfClass._metaArtistCon);\n      }\n\n\n    }\n    if (o.design_skin === 'skin-aria') {\n      selfClass._apControlsRight.prepend(selfClass._metaArtistCon);\n    }\n    if (o.design_skin === 'skin-redlights' || o.design_skin === 'skin-steel') {\n\n      selfClass._apControlsRight.prepend(selfClass._metaArtistCon);\n\n\n    }\n    if (o.design_skin === 'skin-silver') {\n      selfClass._apControlsRight.append(selfClass._metaArtistCon);\n    }\n    if (o.design_skin === 'skin-default') {\n      selfClass._apControlsRight.before(selfClass._metaArtistCon);\n    }\n\n\n  }\n\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/view/player/_view_playerStructure.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/wave-render/_wave-render-functions.js":
/*!*********************************************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/wave-render/_wave-render-functions.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 */   \"draw_canvas\": () => (/* binding */ draw_canvas),\n/* harmony export */   \"scrubModeWave__checkIfWeShouldTryToGetPcm\": () => (/* binding */ scrubModeWave__checkIfWeShouldTryToGetPcm),\n/* harmony export */   \"scrubModeWave__view_transitionIn\": () => (/* binding */ scrubModeWave__view_transitionIn),\n/* harmony export */   \"view_drawCanvases\": () => (/* binding */ view_drawCanvases)\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 _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 _js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/js_common/_dzs_helpers.js\");\n/* harmony import */ var _player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../player/_player_scrubModeWave */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/player/_player_scrubModeWave.js\");\n\n\n\n\n\n\nwindow.dzsap_wavesurfer_load_attempt = 0;\nwindow.dzsap_wavesurfer_is_trying_to_generate = null;\n\n\nvar dzsapWaveRender = undefined;\n\n/**\n * called on init_loaded\n * @param selfClass\n * @param pargs\n * @returns {boolean}\n */\nfunction scrubModeWave__checkIfWeShouldTryToGetPcm(selfClass, pargs) {\n\n\n  var margs = {\n    'call_from': 'default'\n    , 'call_attempt': 0\n  };\n  if (pargs) {\n    margs = jQuery.extend(margs, pargs);\n  }\n\n\n  // -- retry\n  if (window.dzsap_wavesurfer_is_trying_to_generate) {\n    setTimeout(function () {\n\n      margs.call_attempt++;\n      if (margs.call_attempt < 10) {\n        scrubModeWave__checkIfWeShouldTryToGetPcm(selfClass, margs);\n        ;\n      }\n    }, 1000)\n    return false;\n  }\n\n\n  if (selfClass.isPcmRequiredToGenerate) {\n\n    if (isWeCanGeneratePcm(selfClass)) {\n\n      window.dzsap_wavesurfer_is_trying_to_generate = selfClass;\n\n\n      window.dzsap_get_base_url();\n\n      let wavesurferUrl = window.dzsap_base_url ? window.dzsap_base_url + 'parts/wavesurfer/dzsap-wave-generate.js' : _configs_constants__WEBPACK_IMPORTED_MODULE_1__.ConstantsDzsAp.URL_WAVESURFER_HELPER_BACKUP;\n\n\n      window.scrubModeWave__view_transitionIn = scrubModeWave__view_transitionIn;\n\n\n      (0,_js_common_dzs_helpers__WEBPACK_IMPORTED_MODULE_2__.loadScriptIfItDoesNotExist)(wavesurferUrl, window.scrubModeWave__initedGenerateWave).then((resolveStr) => {\n\n\n        scrubModeWave__initGenerateWaveData(selfClass);\n      });\n    }\n  }\n}\n\nfunction isWeCanGeneratePcm(selfClass) {\n\n  if (selfClass.isAlreadyHasRealPcm) {\n    return false;\n  }\n  return selfClass.data_source != 'fake';\n\n}\n\nfunction view_drawCanvases(selfClass, argpcm, calledFrom) {\n  var o = selfClass.initOptions;\n\n  draw_canvas(selfClass._scrubbarbg_canvas.get(0), argpcm, \"#\" + o.design_wave_color_bg, {\n    call_from: calledFrom + '_bg',\n    selfClass,\n    'skinwave_wave_mode_canvas_waves_number': parseInt(o.skinwave_wave_mode_canvas_waves_number, 10),\n    'skinwave_wave_mode_canvas_waves_padding': parseInt(o.skinwave_wave_mode_canvas_waves_padding, 10)\n  });\n  draw_canvas(selfClass._scrubbarprog_canvas.get(0), argpcm, '#' + o.design_wave_color_progress, {\n      call_from: calledFrom + '_prog',\n      selfClass,\n      'skinwave_wave_mode_canvas_waves_number': parseInt(o.skinwave_wave_mode_canvas_waves_number, 10),\n      'skinwave_wave_mode_canvas_waves_padding': parseInt(o.skinwave_wave_mode_canvas_waves_padding, 10),\n    },\n    true);\n}\n\n\n/**\n * called on isPcmRequiredToGenerate ( init_loaded )  / change_media\n * @param selfClass\n * @param argpcm\n */\nfunction scrubModeWave__view_transitionIn(selfClass, argpcm) {\n\n\n  selfClass._scrubbar.find('.scrub-bg-img,.scrub-prog-img').removeClass('transitioning-in');\n  selfClass._scrubbar.find('.scrub-bg-img,.scrub-prog-img').addClass('transitioning-out');\n  ;\n\n  (0,_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_3__.scrubbar_modeWave_setupCanvas)({\n    'prepare_for_transition_in': true\n  }, selfClass);\n\n  view_drawCanvases(selfClass, argpcm, 'canvas_generate_wave_data_animate_pcm');\n\n\n  setTimeout(() => {\n    (0,_player_player_scrubModeWave__WEBPACK_IMPORTED_MODULE_3__.scrubbar_modeWave_clearObsoleteCanvas)(selfClass);\n  }, 300);\n\n  // -- warning - not always real pcm\n  selfClass.isAlreadyHasRealPcm = true;\n  selfClass.scrubbar_reveal();\n}\n\n\n/**\n * aggregate wave array based on max\n * @param waveArrayTemp\n * @returns {array}\n */\nfunction waveCalculateWaveArray(waveArrayTemp) {\n  let max = 0;\n  let waveArrayNew = [];\n  let barIndex = 0;\n\n  let waveArray = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.string_jsonConvertToArray)(waveArrayTemp);\n\n\n  // -- normalizing\n  for (barIndex = 0; barIndex < waveArray.length; barIndex++) {\n    if ((waveArray[barIndex]) > max) {\n      max = (waveArray[barIndex]);\n    }\n  }\n\n  for (barIndex = 0; barIndex < waveArray.length; barIndex++) {\n    waveArrayNew[barIndex] = parseFloat(Math.abs(waveArray[barIndex]) / Number(max));\n  }\n  // -- end normalize\n\n  waveArray = waveArrayNew;\n\n  return waveArray;\n\n}\n\n\nfunction view_drawBars(_canvasContext, isReflection, isProgressScrubContext, hexcolor, barCount, waveArray, widthCanvas, heightCanvas, reflection_size, playerOptions, margs, selfClass, bar_space) {\n  let isWithinSample = false;\n  var searched_index = null;\n  var lastBarHeight = 0;\n  var gradient = null;\n  var spectrum_isBarWithinProgress = false; // -- color the bar in progress colors\n\n\n  hexcolor = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.sanitizeToHexColor)(hexcolor);\n  // -- left right gradient\n  var temp_hex = hexcolor;\n  temp_hex = temp_hex.replace('#', '');\n  var hexcolors = []; // -- hex colors array\n  if (temp_hex.indexOf(',') > -1) {\n    hexcolors = temp_hex.split(',');\n  }\n\n\n  if (barCount == 1) {\n    barCount = widthCanvas / barCount;\n  }\n  if (barCount == 2) {\n    barCount = widthCanvas / 2;\n  }\n  if (barCount == 3) {\n    barCount = (widthCanvas) / 3;\n  }\n\n\n  if (widthCanvas / barCount < 1) {\n    barCount = Math.ceil(barCount / 3);\n  }\n\n\n  var widthBar = Math.ceil(widthCanvas / barCount);\n  var sizeRatioNormal = 1 - reflection_size;\n\n\n  if (widthBar == 0) {\n    widthBar = 1;\n    bar_space = 0;\n  }\n  if (widthBar == 1) {\n    bar_space = bar_space / 2;\n  }\n\n\n  var progress_hexcolor = '';\n  var progress_hexcolors = '';\n\n\n  if (margs.call_from == 'spectrum') {\n    progress_hexcolor = playerOptions.design_wave_color_progress;\n    progress_hexcolor = progress_hexcolor.replace('#', '');\n    progress_hexcolors = []; // -- hex colors array\n    if (progress_hexcolor.indexOf(',') > -1) {\n      progress_hexcolors = progress_hexcolor.split(',');\n\n    }\n  }\n\n  for (let barIndex = 0; barIndex < barCount; barIndex++) {\n    isWithinSample = false;\n    _canvasContext.save();\n\n\n    searched_index = Math.ceil(barIndex * (waveArray.length / barCount));\n\n    // -- we'll try to prevent\n    if (barIndex < barCount / 5) {\n      if (waveArray[searched_index] < 0.1) {\n        waveArray[searched_index] = 0.1;\n      }\n    }\n    if (waveArray.length > barCount * 2.5 && barIndex > 0 && barIndex < waveArray.length - 1) {\n      waveArray[searched_index] = Math.abs(waveArray[searched_index] + waveArray[searched_index - 1] + waveArray[searched_index + 1]) / 3\n    }\n    // -- normalize end\n\n\n    let targetRatio = sizeRatioNormal;\n    if (isReflection) {\n      targetRatio = reflection_size;\n    }\n\n    let barHeight = Math.abs(waveArray[searched_index] * heightCanvas * targetRatio);\n\n\n    if (playerOptions.skinwave_wave_mode_canvas_normalize == 'on') {\n      if (isNaN(lastBarHeight)) {\n        lastBarHeight = 0;\n      }\n      barHeight = barHeight / 1.5 + lastBarHeight / 2.5;\n    }\n    lastBarHeight = barHeight;\n\n\n    _canvasContext.lineWidth = 0;\n    barHeight = Math.floor(barHeight);\n\n\n    const barPositionTop = isReflection ? heightCanvas * sizeRatioNormal : Math.ceil(heightCanvas * targetRatio - barHeight);\n\n\n    _canvasContext.beginPath();\n    _canvasContext.rect(barIndex * widthBar, barPositionTop, widthBar - bar_space, barHeight);\n\n\n    if (margs.call_from == 'spectrum') {\n      if (barIndex / barCount < selfClass.timeCurrent / selfClass.timeTotal) {\n        spectrum_isBarWithinProgress = true;\n      } else {\n        spectrum_isBarWithinProgress = false;\n      }\n    }\n\n\n    if (selfClass.isSample) {\n      isWithinSample = isBeforeOrAfterSample(barIndex, barCount, selfClass);\n    }\n\n\n    if (spectrum_isBarWithinProgress) {\n      if (isReflection && playerOptions.skinwave_wave_mode_canvas_mode !== 'reflecto') {\n        _canvasContext.fillStyle = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)(progress_hexcolor, 0.25);\n      } else {\n        _canvasContext.fillStyle = isWithinSample ? (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)(progress_hexcolor, 0.5) : '#' + progress_hexcolor;\n      }\n\n\n      if (progress_hexcolors.length) {\n\n        const startColor = isReflection && playerOptions.skinwave_wave_mode_canvas_mode !== 'reflecto' ? (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)('#' + progress_hexcolors[0], 0.25) : '#' + progress_hexcolors[0];\n        const endColor = isReflection && playerOptions.skinwave_wave_mode_canvas_mode !== 'reflecto' ? (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)('#' + progress_hexcolors[1], 0.25) : '#' + progress_hexcolors[1];\n\n        gradient = _canvasContext.createLinearGradient(0, 0, 0, heightCanvas);\n        gradient.addColorStop(0, startColor);\n        gradient.addColorStop(1, endColor);\n        _canvasContext.fillStyle = gradient;\n      }\n\n    } else {\n      /**\n       * normal\n       */\n\n\n      if (isReflection && playerOptions.skinwave_wave_mode_canvas_mode !== 'reflecto') {\n        _canvasContext.fillStyle = (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)(hexcolor, 0.25);\n      } else {\n\n        _canvasContext.fillStyle = isWithinSample ? (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)(hexcolor, 0.5) : '' + hexcolor;\n      }\n\n      // -- if we have gradient\n      if (hexcolors.length) {\n        const startColor = isReflection && playerOptions.skinwave_wave_mode_canvas_mode !== 'reflecto' ? (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.utils_sanitizeToColor)(hexcolors[0]), 0.25) : '' + (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.utils_sanitizeToColor)(hexcolors[0]);\n        const endColor = isReflection && playerOptions.skinwave_wave_mode_canvas_mode !== 'reflecto' ? (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.hexToRgb)((0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.utils_sanitizeToColor)(hexcolors[1]), 0.25) : '' + (0,_dzsap_helpers__WEBPACK_IMPORTED_MODULE_0__.utils_sanitizeToColor)(hexcolors[1]);\n\n        gradient = _canvasContext.createLinearGradient(0, 0, 0, heightCanvas);\n        gradient.addColorStop(0, startColor);\n        gradient.addColorStop(1, endColor);\n        _canvasContext.fillStyle = gradient;\n      }\n\n\n    }\n\n\n    if (!(isWithinSample && isProgressScrubContext)) {\n\n\n      _canvasContext.fill();\n      _canvasContext.closePath();\n    }\n\n\n    _canvasContext.restore();\n\n  }\n\n}\n\n\n/**\n * draw with different color\n * @returns {boolean}\n * @param {number} currBarIndex\n * @param {number} barCount\n * @param {DzsAudioPlayer} selfClass\n */\nfunction isBeforeOrAfterSample(currBarIndex, barCount, selfClass) {\n\n\n  if ((currBarIndex / barCount < selfClass.timeModel.sampleTimeStart / selfClass.timeModel.sampleTimeTotal) || currBarIndex / barCount > selfClass.timeModel.sampleTimeEnd / selfClass.timeModel.sampleTimeTotal) {\n\n    return true;\n  }\n  return false;\n}\n\n/**\n * draw canvas here\n * @param $canvas_\n * @param pcm_arr\n * @param hexcolor\n * @param pargs\n * @param {boolean} isProgressScrubContext\n * @returns {boolean}\n */\nfunction draw_canvas($canvas_, pcm_arr, hexcolor, pargs, isProgressScrubContext = false) {\n  let margs = {\n    'call_from': 'default',\n    'is_sample': false,\n    'selfClass': null,\n    'sample_time_start': 0,\n    'sample_time_end': 0,\n    'sample_time_total': 0,\n    'skinwave_wave_mode_canvas_waves_number': 2,\n    'skinwave_wave_mode_canvas_waves_padding': 1,\n  };\n\n  const $ = jQuery;\n  if (pargs) {\n    margs = Object.assign(margs, pargs);\n  }\n\n\n  var _canvas = $($canvas_);\n  var __canvas = $canvas_;\n\n  if (_canvas.get(0)) {\n\n\n    var {selfClass, skinwave_wave_mode_canvas_waves_number, skinwave_wave_mode_canvas_waves_padding} = margs;\n    let playerOptions = {};\n    var _canvasContext = _canvas.get(0).getContext(\"2d\");\n    var waveArrayTemp = pcm_arr;\n    var widthCanvas;\n    var heightCanvas;\n\n    let waveArray = [];\n\n\n    // -- sanitize\n    if (isNaN(Number(skinwave_wave_mode_canvas_waves_number))) {\n      skinwave_wave_mode_canvas_waves_number = 2;\n    }\n\n    if (isNaN(Number(skinwave_wave_mode_canvas_waves_padding))) {\n      if (skinwave_wave_mode_canvas_waves_number !== 1) {\n        skinwave_wave_mode_canvas_waves_padding = 1;\n      } else {\n        skinwave_wave_mode_canvas_waves_padding = 0;\n      }\n    }\n\n    if (selfClass) {\n      playerOptions = selfClass.initOptions;\n    }\n\n\n    let barCount = skinwave_wave_mode_canvas_waves_number;\n    let bar_space = skinwave_wave_mode_canvas_waves_padding;\n\n\n    if (_canvas && _canvas.get(0)) {\n\n    } else {\n      return false;\n    }\n\n\n    if (selfClass && selfClass._scrubbar) {\n      if (selfClass._scrubbarprog_canvas) {\n        selfClass._scrubbarbg_canvas.width(selfClass._scrubbar.width());\n        selfClass._scrubbarprog_canvas.width(selfClass._scrubbar.width());\n        $canvas_.width = selfClass._scrubbar.width();\n        $canvas_.height = selfClass._scrubbar.height();\n      }\n    }\n\n\n    waveArray = waveCalculateWaveArray(waveArrayTemp);\n\n\n    if (selfClass) {\n      __canvas.width = selfClass._scrubbar.width();\n    }\n\n    widthCanvas = __canvas.width;\n    heightCanvas = __canvas.height;\n\n\n    const reflection_size = parseFloat(playerOptions.skinwave_wave_mode_canvas_reflection_size);\n\n\n    // -- left right gradient END\n\n\n    _canvasContext.clearRect(0, 0, widthCanvas, heightCanvas);\n\n\n    view_drawBars(_canvasContext, false, isProgressScrubContext, hexcolor, barCount, waveArray, widthCanvas, heightCanvas, reflection_size, playerOptions, margs, selfClass, bar_space)\n    if (reflection_size > 0) {\n      view_drawBars(_canvasContext, true, isProgressScrubContext, hexcolor, barCount, waveArray, widthCanvas, heightCanvas, reflection_size, playerOptions, margs, selfClass, bar_space)\n    }\n\n    // -- reflection\n    setTimeout(function () {\n      selfClass.scrubbar_reveal();\n    }, 100)\n  }\n\n\n}\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/libs/audioplayer/jsinc/wave-render/_wave-render-functions.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/audioplayer.sourcepack.js");
/******/ 	
/******/ })()
;