/*
 * 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
/******/ 	var __webpack_modules__ = ({

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/admin_global.sourcepack.js":
/*!*****************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/admin_global.sourcepack.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
eval("\n\nvar dzsDep = __webpack_require__(/*! ./js_common/_dzs_dependency.js */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_dependency.js\");\n\nvar miscFuncs = __webpack_require__(/*! ./jsinc/_misc */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_misc.js\");\n\nvar dzsHelpers = __webpack_require__(/*! ./js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_helpers.js\");\n\nvar adminHelpers = __webpack_require__(/*! ./jsinc/_adminHelpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_adminHelpers.js\");\n\nvar mainoptions = __webpack_require__(/*! ./jsinc/_mainoptions */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_mainoptions.js\");\n\n__webpack_require__(/*! ./jsinc/_check_block_editors.js */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_check_block_editors.js\");\n\nvar _require = __webpack_require__(/*! ./jsinc/admin/_view-admin */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/admin/_view-admin.js\"),\n    dzs_admin_addWarningForUpdate = _require.dzs_admin_addWarningForUpdate;\n\njQuery(document).ready(function ($) {\n  // Create the media frame.\n  setTimeout(reskin_select, 10);\n  $(document).undelegate(\".select-wrapper select\", \"change\");\n  $(document).delegate(\".select-wrapper select\", \"change\", change_select);\n  $(document).on('click', '.quick-edit-adarray, .quick-edit-qualityarray', handle_mouse);\n  $(document).on('change', '.wpb-input[name=\"db\"]', handle_input);\n  $(document).on('submit', '.delete-all-settings', handle_input);\n  mainoptions.mainoptions_init();\n  dzsDep.dep_init();\n\n  function handle_mouse(e) {\n    var _t = $(this);\n\n    if (e.type === 'click') {\n      if (_t.hasClass('quick-edit-adarray')) {\n        var url3 = dzsvg_settings.ad_builder_url;\n        window.ad_target_field = _t.prev();\n\n        if (_t.parent().parent().hasClass('zoomsounds-inspector-setting')) {\n          window.ad_target_field = _t.parent().parent().find('input').eq(0);\n        }\n\n        if (window.ad_target_field.val()) {\n          url3 += '&adstart=' + encodeURIComponent(window.ad_target_field.val());\n        }\n\n        window.open_ultibox(null, {\n          type: 'iframe',\n          source: url3,\n          scaling: 'fill' // -- this is the under description\n          ,\n          suggested_width: '800' // -- this is the under description\n          ,\n          suggested_height: '700' // -- this is the under description\n          ,\n          item: null // -- we can pass the items from here too\n\n        });\n        return false;\n      }\n\n      if (_t.hasClass('quick-edit-qualityarray')) {\n        var url3 = dzsvg_settings.quality_builder_url;\n        window.quality_target_field = _t.prev();\n\n        if (_t.prev().val()) {\n          url3 += '&qualitystart=' + encodeURIComponent(_t.prev().val());\n        }\n\n        window.open_ultibox(null, {\n          type: 'iframe',\n          source: url3,\n          scaling: 'fill' // -- this is the under description\n          ,\n          suggested_width: '800' // -- this is the under description\n          ,\n          suggested_height: '700' // -- this is the under description\n          ,\n          item: null // -- we can pass the items from here too\n\n        });\n        return false;\n      }\n    }\n  }\n\n  function handle_input(e) {\n    var _t = $(this);\n\n    if (e.type === 'change') {\n      if (_t.hasClass('wpb-input')) {\n        // -- vico get db\n        var mainarray = _t.val();\n\n        if (window.dzsvg_settings && dzsvg_settings.playlists_mode !== 'normal') {\n          var data = {\n            action: 'dzsvg_get_db_gals',\n            postdata: mainarray\n          };\n          jQuery.post(ajaxurl, data, function (response) {\n            jQuery('#save-ajax-loading').css('opacity', '0');\n            var aux = '';\n            var auxa = response.split(';');\n\n            for (var i = 0; i < auxa.length; i++) {\n              aux += '<option>' + auxa[i] + '</option>';\n            }\n\n            jQuery('.wpb-input[name=id]').html(aux);\n            jQuery('.wpb-input[name=id]').trigger('change');\n            jQuery('.wpb-input[name=slider]').html(aux);\n            jQuery('.wpb-input[name=slider]').trigger('change');\n          });\n        }\n      }\n    }\n\n    if (e.type === 'submit') {\n      if (_t.hasClass('delete-all-settings')) {\n        var r = confirm(\"Are you sure you want to delete all video gallery data ? \");\n\n        if (r) {} else {\n          return false;\n        }\n      }\n    }\n  }\n\n  $(document).off('click.dzswup', '.dzs-wordpress-uploader');\n  $(document).on('click.dzswup', '.dzs-wordpress-uploader', function (e) {\n    var _t = $(this);\n\n    var _targetInput = _t.prev();\n\n    var searched_type = '';\n\n    if (_targetInput.hasClass('upload-type-audio')) {\n      searched_type = 'audio';\n    }\n\n    if (_targetInput.hasClass('upload-type-video')) {\n      searched_type = 'video';\n    }\n\n    if (_targetInput.hasClass('upload-type-image')) {\n      searched_type = 'image';\n    }\n\n    var frame = wp.media.frames.dzsp_addimage = wp.media({\n      title: \"Insert Media\",\n      library: {\n        type: searched_type\n      },\n      // Customize the submit button.\n      button: {\n        // Set the text of the button.\n        text: \"Insert Media\",\n        close: true\n      }\n    }); // When an image is selected, run a callback.\n\n    frame.on('select', function () {\n      // Grab the selected attachment.\n      var attachment = frame.state().get('selection').first();\n      var arg = attachment.attributes.url;\n\n      if (_t.hasClass('insert-id')) {\n        arg = attachment.attributes.id;\n      }\n\n      _targetInput.val(arg);\n\n      _targetInput.trigger('change');\n    }); // Finally, open the modal.\n\n    frame.open();\n    e.stopPropagation();\n    e.preventDefault();\n    return false;\n  });\n  $(document).off('click', '.dzsvg-wordpress-uploader');\n  $(document).on('click', '.dzsvg-wordpress-uploader', function (e) {\n    var _t = $(this);\n\n    var _targetInput = _t.prev();\n\n    var _targetInputTitle = null;\n\n    var _con = _t.parent();\n\n    if (_con.find('.upload-target-prev').length) {\n      _targetInput = _con.find('.upload-target-prev').eq(0);\n    }\n\n    if (_con.find('.upload-target-title').length) {\n      _targetInputTitle = _con.find('.upload-target-title').eq(0);\n    }\n\n    var searched_type = '';\n\n    if (_targetInput.hasClass('upload-type-audio')) {\n      searched_type = 'audio';\n    }\n\n    if (_targetInput.hasClass('upload-type-image')) {\n      searched_type = 'image';\n    }\n\n    if (_targetInput.hasClass('upload-type-video')) {\n      searched_type = 'video';\n    }\n\n    if (typeof wp != 'undefined' && typeof wp.media != 'undefined') {\n      var uploader_frame = wp.media.frames.dzsvg_addplayer = wp.media({\n        // Set the title of the modal.\n        title: \"Insert Media Modal\",\n        multiple: true,\n        // Tell the modal to show only images.\n        library: {\n          type: searched_type\n        },\n        // Customize the submit button.\n        button: {\n          // Set the text of the button.\n          text: \"Insert Media\",\n          // Tell the button not to close the modal, since we're\n          // going to refresh the page when the image is selected.\n          close: false\n        }\n      }); // When an image is selected, run a callback.\n\n      uploader_frame.on('select', function () {\n        var attachment = uploader_frame.state().get('selection').first();\n\n        if (_targetInput.hasClass('upload-prop-id')) {\n          _targetInput.val(attachment.attributes.id);\n        } else {\n          _targetInput.val(attachment.attributes.url);\n        }\n\n        if (_targetInputTitle) {\n          _targetInputTitle.val(attachment.attributes.title);\n        }\n\n        _targetInput.trigger('change');\n\n        uploader_frame.close();\n      }); // Finally, open the modal.\n\n      uploader_frame.open();\n    }\n\n    return false;\n  });\n  $(document).off('click', '.dzs-btn-add-media-att');\n  $(document).on('click', '.dzs-btn-add-media-att', function () {\n    var _t = $(this);\n\n    var args = {\n      title: 'Add Item',\n      button: {\n        text: 'Select'\n      },\n      multiple: false\n    };\n\n    if (_t.attr('data-library_type')) {\n      args.library = {\n        'type': _t.attr('data-library_type')\n      };\n    }\n\n    var item_gallery_frame = wp.media.frames.downloadable_file = wp.media(args);\n    item_gallery_frame.on('select', function () {\n      var selection = item_gallery_frame.state().get('selection');\n      selection = selection.toJSON();\n      var ik = 0;\n\n      for (ik = 0; ik < selection.length; ik++) {\n        var _c = selection[ik];\n\n        if (_c.id == undefined) {\n          continue;\n        }\n\n        if (_t.hasClass('button-setting-input-url')) {\n          _t.parent().parent().find('input').eq(0).val(_c.url);\n        } else {\n          _t.parent().parent().find('input').eq(0).val(_c.id);\n        }\n\n        _t.parent().parent().find('input').eq(0).trigger('change');\n      }\n    }); // Finally, open the modal.\n\n    item_gallery_frame.open();\n    return false;\n  });\n\n  function change_select() {\n    var selval = $(this).find(':selected').text();\n    $(this).parent().children('span').text(selval);\n  }\n\n  function reskin_select() {\n    for (var i = 0; i < jQuery('select').length; i++) {\n      var _cache = jQuery('select').eq(i);\n\n      if (_cache.hasClass('styleme') == false || _cache.parent().hasClass('select_wrapper') || _cache.parent().hasClass('dzs--select-wrapper')) {\n        continue;\n      }\n\n      var sel = _cache.find(':selected');\n\n      _cache.wrap('<div class=\"dzs--select-wrapper\"></div>');\n\n      _cache.parent().prepend('<span>' + sel.text() + '</span>');\n    }\n\n    jQuery(document).off(\"change.dzsselectwrap\");\n    jQuery(document).on(\"change.dzsselectwrap\", \".dzs--select-wrapper select\", change_select);\n\n    function change_select() {\n      var selval = jQuery(this).find(':selected').text();\n      jQuery(this).parent().children('span').text(selval);\n    }\n  }\n\n  var aux = window.location.href;\n\n  if (aux.indexOf('plugins.php') > -1 || aux.indexOf('index.php') > -1 && aux.indexOf('?') == -1) {\n    setTimeout(function () {\n      jQuery.get(\"https://zoomthe.me/cronjobs/cache/dzsvg_get_version.static.html\", function (data) {\n        var newVersion = Number(data);\n        console.log(newVersion, Number(dzsvg_settings.version));\n\n        if (newVersion > Number(dzsvg_settings.version)) {\n          dzs_admin_addWarningForUpdate();\n        }\n      });\n    }, 300);\n  }\n\n  if (aux.indexOf('&dzsvg_purchase_remove_binded=on') > -1) {\n    aux = aux.replace('&dzsvg_purchase_remove_binded=on', '');\n    var stateObj = {\n      foo: \"bar\"\n    };\n\n    if (history) {\n      history.pushState(stateObj, null, aux);\n    }\n  }\n\n  $(document).on('click', '.refresh-main-thumb', function () {\n    adminHelpers.generateThumbnailForField(this);\n    return false;\n  });\n  miscFuncs.con_generate_buttons(ajaxurl);\n  miscFuncs.extra_skin_hiddenselect();\n});\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/admin_global.sourcepack.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_dependency.js":
/*!*******************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_dependency.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {

eval("function dep_init(){\n\n  jQuery(document).on('change.dzsdepe', '.dzs-dependency-field,*[name=\"0-settings-vpconfig\"], *[name=\"dzsvg_meta_item_type\"]', handle_change);\n\n\n  setTimeout(function () {\n    jQuery('.dzs-dependency-field').trigger('change');\n  }, 1000);\n}\n\nfunction handle_change(e) {\n\n\n  var _t = jQuery(this);\n  if (_t.hasClass('dzs-dependency-field')) {\n    check_dependency_settings();\n  }\n\n\n  if (_t.attr('name') === 'dzsvg_meta_item_type') {\n\n\n    var val = _t.val();\n\n\n\n    var _con = null;\n\n    if (_t.parent().parent().parent().hasClass('select-hidden-con')) {\n      _con = _t.parent().parent().parent();\n    }\n\n\n    if (_con) {\n      _con.removeClass('type_youtube type_vimeo type_video type_inline');\n      _con.addClass('type_' + val);\n    }\n\n\n  }\n  if (_t.attr('name') == '0-settings-vpconfig') {\n\n\n    var ind = 0;\n\n    _t.children().each(function () {\n      var _t2 = jQuery(this);\n\n      if (_t2.prop('selected')) {\n        ind = _t2.parent().children().index(_t2) - 1;\n        return false;\n      }\n    });\n\n    jQuery('#quick-edit').attr('href', add_query_arg(jQuery('#quick-edit').attr('href'), 'currslider', ind));\n\n\n  }\n\n}\n\n\nfunction check_dependency_settings() {\n  jQuery('*[data-dependency]').each(function () {\n    var _t = jQuery(this);\n\n\n\n    var margs = {\n      target_attribute: 'name'\n    }\n\n\n    var str_dependency = _t.attr('data-dependency');\n    str_dependency = str_dependency.replace(/{{quot}}/g, '\"');\n\n    str_dependency = str_dependency.replace(/^\"\"/g, '');\n    str_dependency = str_dependency.replace(/\"\"$/g, '');\n\n    // -- remove last and start \"\n    str_dependency = str_dependency.replace(/^\"/g, '');\n    str_dependency = str_dependency.replace(/\"$/g, '');\n\n    var dep_arr = [];\n\n\n    try {\n      dep_arr = JSON.parse(str_dependency);\n\n      var target_attribute = margs.target_attribute;\n\n      var target_con = jQuery(document);\n\n\n      if (dep_arr[0]) {\n        var _c = null;\n\n\n        if (dep_arr[0].lab) {\n          _c = jQuery('*[name=\"' + dep_arr[0].lab + '\"]:not(.fake-input)').eq(0);\n        }\n        if (dep_arr[0].label) {\n          _c = jQuery('*[name=\"' + dep_arr[0].label + '\"]:not(.fake-input)').eq(0);\n        }\n        if (dep_arr[0].element) {\n          _c = jQuery('*[name=\"' + dep_arr[0].element + '\"]:not(.fake-input)').eq(0);\n        }\n\n\n        if (_c) {\n\n          var cval = _c.val();\n\n\n          var isShowing = false;\n\n\n          if (dep_arr[0].val) {\n\n            for (var i3 in dep_arr[0].val) {\n              if (_c.val() === dep_arr[0].val[i3]) {\n                isShowing = true;\n                break;\n\n              }\n            }\n          }\n\n          if (dep_arr.relation) {\n\n\n\n            for (var i in dep_arr) {\n              if (i == 'relation') {\n                continue;\n              }\n\n\n              if (dep_arr[i].value) {\n                if (dep_arr.relation == 'AND') {\n                  isShowing = false;\n                }\n\n\n                if (dep_arr[0].element) {\n                  _c = target_con.find('*[' + target_attribute + '=\"' + dep_arr[i].element + '\"]:not(.fake-input)').eq(0);\n                }\n\n\n                for (var i3 in dep_arr[i].value) {\n\n\n                  if (_c.val() == dep_arr[i].value[i3]) {\n\n\n                    if (_c.attr('type') == 'checkbox') {\n                      if (_c.val() == dep_arr[i].value[i3] && _c.prop('checked')) {\n\n                        isShowing = true;\n                      }\n                    } else {\n\n                      isShowing = true;\n                    }\n\n                    break;\n\n                  }\n\n\n                  if (dep_arr[i].value[i3] == 'anything_but_blank' && cval) {\n\n                    isShowing = true;\n                    break;\n                  }\n                }\n\n                if (dep_arr.relation == 'AND') {\n                  if (!isShowing) {\n                    break;\n                  }\n                }\n              }\n\n            }\n\n          } else {\n\n            if (dep_arr[0].value) {\n\n              for (var i3 in dep_arr[0].value) {\n                if (_c.val() == dep_arr[0].value[i3]) {\n\n\n                  if (_c.attr('type') === 'checkbox') {\n                    if (_c.val() === dep_arr[0].value[i3] && _c.prop('checked')) {\n\n                      isShowing = true;\n                    }\n                  } else {\n\n                    isShowing = true;\n                  }\n\n                  break;\n\n                }\n\n\n                if (dep_arr[0].value[i3] === 'anything_but_blank' && cval) {\n\n                  isShowing = true;\n                  break;\n                }\n              }\n            }\n          }\n\n          if (isShowing) {\n            _t.css('display','');\n            _t.addClass('dzs-dependency-recently-revealed');\n            setTimeout(function(_arg){\n              _arg.removeClass('dzs-dependency-recently-revealed');\n            },500,_t);\n          } else {\n            _t.hide();\n          }\n        }\n\n\n      }\n    } catch (err) {\n      console.error('json dependency error - ', str_dependency);\n      console.error(err);\n    }\n  })\n}\n\n\n\n\nexports.dep_init = dep_init;\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_dependency.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_helpers.js":
/*!****************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_helpers.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {

eval("exports.get_query_arg = function (purl, key) {\n  if (purl.indexOf(key + '=') > -1) {\n    var regexS = \"[?&]\" + key + \"(.+?)(?=&|$)\";\n    var regex = new RegExp(regexS);\n    var regtest = regex.exec(purl);\n\n\n    if (regtest ) {\n\n\n      if (regtest[1]) {\n        var aux = regtest[1].replace(/=/g, '');\n        return aux;\n      } else {\n        return '';\n      }\n\n\n    }\n  }\n}\n\n\nexports.sanitize_to_youtube_id = function (arg) {\n\n  if (String(arg).indexOf('youtube.com/watch')) {\n\n    var dataSrc = arg;\n    var auxa = String(dataSrc).split('youtube.com/watch?v=');\n    if (auxa[1]) {\n\n      dataSrc = auxa[1];\n      if (auxa[1].indexOf('&') > -1) {\n        var auxb = String(auxa[1]).split('&');\n        dataSrc = auxb[0];\n      }\n\n\n      return dataSrc;\n    }\n  }\n\n  return arg;\n}\n\n\n/**\n * detect video type and source\n * @param dataSrc\n * @param forceType we might want to force the type if we know it\n * @returns {{source: *, playFrom: null, type: string}}\n */\nexports.detect_video_type_and_source = function (dataSrc, forceType = null, cthis = null) {\n\n  var playFrom = null;\n  var type = 'selfHosted';\n  var source = dataSrc;\n  if (String(dataSrc).indexOf('youtube.com/watch?') > -1 || String(dataSrc).indexOf('youtube.com/embed') > -1 || String(dataSrc).indexOf('youtu.be/') > -1) {\n    type = 'youtube';\n\n    var aux = /http(?:s?):\\/\\/(?:www\\.)?youtu(?:be\\.com\\/watch\\?v=|\\.be\\/)([\\w\\-\\_]*)(&(amp;)?‌​[\\w\\?‌​=]*)?/g.exec(dataSrc);\n\n    if (get_query_arg(dataSrc, 't')) {\n      playFrom = get_query_arg(dataSrc, 't');\n    }\n    if (aux && aux[1]) {\n      source = aux[1];\n    } else {\n      // -- let us try youtube embed\n      source = dataSrc.replace(/http(?:s?):\\/\\/(?:www\\.)?youtu(?:be\\.com\\/watch\\?v=|\\.be\\/|be\\.com)\\/embed\\//g, '');\n    }\n  }\n\n  if (String(dataSrc).indexOf('vimeo.com/') > -1) {\n    type = 'vimeo';\n\n    var aux = /(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/(?:[^\\/]*)\\/videos\\/|album\\/(?:\\d+)\\/video\\/|video\\/|)(\\d+)(?:[a-zA-Z0-9_\\-]+)?/g.exec(dataSrc);\n\n\n    if (aux && aux[1]) {\n      source = aux[1];\n    }\n  }\n\n  if (String(dataSrc).indexOf('.mp4') > -1) {\n    type = 'selfHosted';\n\n  }\n  if (String(dataSrc).indexOf('.mpd') > String(dataSrc).length - 5) {\n    type = 'dash';\n\n  }\n  if (forceType && forceType !== 'detect') {\n    type = forceType;\n  }\n\n  if (!playFrom) {\n    if (cthis && cthis.attr('data-play_from')) {\n      playFrom = cthis.attr('data-play_from');\n    }\n  }\n  return {\n    type,\n    source,\n    playFrom\n  };\n}\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_helpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_adminHelpers.js":
/*!*************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_adminHelpers.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

eval("\nvar dzsHelpers = __webpack_require__(/*! ../js_common/_dzs_helpers */ \"../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/js_common/_dzs_helpers.js\");\nexports.generateThumbnailForVideo = function(videoSource, videoType, _con){\n\n\n\n  var $ = jQuery;\n\n\n\n\n\n  return new Promise((resolve,reject)=>{\n\n\n    if (videoType == 'video') {\n\n\n      // -- try to generate image\n      if (window.dzsvg_settings && dzsvg_settings.admin_try_to_generate_thumb_for_self_hosted_videos == 'on') {\n\n\n        $('.dzs-single-upload-preview-img').addClass('generating-thumb');\n\n\n        var source = _con.find('*[name=dzsvg_meta_featured_media]').eq(0).val();\n\n\n        var aux43 = '<div class=\"screenshot-canvas-con';\n\n\n        if (window.dzsvg_settings && window.dzsvg_settings.debug_mode == 'on') {\n          aux43 += ' debug-mode';\n        }\n\n\n        aux43 += '\"><video crossOrigin=\"Anonymous\" class=\"temp-screenshot-video\" width=\"600\" height=\"400\" src=\"' + source + '\" style=\"opacity: 0;\"></video><canvas crossOrigin=\"Anonymous\" width=\"600\" height=\"400\" class=\"temp-screenshot-canvas\" style=\"opacity: 0;\"></canvas></div>';\n\n\n        _con.after(aux43);\n\n\n\n        var _c = _con.next();\n        var $canvas_ = _c.find('canvas').get(0);\n        var $canvasContext_ = $canvas_.getContext('2d');\n        var $videoElement_ = _c.find('video').get(0);\n\n        _c.find('video').get(0).currentTime = 5;\n\n\n        $videoElement_.addEventListener('error', (err)=>{\n\n          reject('');\n        })\n\n        setTimeout(function () {\n\n          $canvasContext_.drawImage($videoElement_, 0, 0);\n\n\n          var xhr = null;\n\n          var canvasData = $canvas_.toDataURL(\"image/png\");\n          var xmlHttpReq = false;\n          if (window.XMLHttpRequest) {\n            xhr = new XMLHttpRequest();\n          }\n\n          xhr.open('POST', dzsvg_settings.dzsvg_site_url + '/?dzsvg_action=savescreenshot&name=' + encodeURIComponent(source), true);\n          xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\n          xhr.onreadystatechange = function () {\n            var response = xhr.responseText;\n\n            if (xhr.readyState == 4 && xhr.status == 200) {\n\n              _con.find('*[name=dzsvg_meta_thumb]').trigger('change');\n              $('.dzs-single-upload-preview-img').removeClass('generating-thumb');\n\n              $('.screenshot-canvas-con:not(.debug-mode)').remove();\n\n              resolve(response);\n\n            }\n          }\n          xhr.send(\"imgData=\" + canvasData);\n\n        }, 4500);\n\n\n      }\n\n    }\n    if (videoType === 'vimeo') {\n\n      var _thumbfield = _con.find('*[name=dzsvg_meta_thumb]').eq(0);\n\n      if (_thumbfield.val() === '') {\n\n\n        var data = {\n          action: 'dzsvg_vimeo_get_vimeothumb',\n          postdata: _con.find('*[name=dzsvg_meta_featured_media]').eq(0).val()\n        };\n\n        jQuery.post(ajaxurl, data, function (response) {\n          if (response.substr(0, 6) == 'error:') {\n\n            alert(response.substr(7));\n            jQuery('.import-error').fadeIn('fast').delay(5000).fadeOut('slow');\n            return false;\n          }\n          resolve(response);\n\n        });\n      }\n    }\n\n    if (videoType === 'youtube') {\n\n\n      resolve('https://img.youtube.com/vi/' + dzsHelpers.sanitize_to_youtube_id(videoSource) + '/0.jpg');\n    }\n  })\n\n\n}\n\n\nexports.generateThumbnailForField = function($autoGenerateButton_){\n\n  // -- refresh main thumbnail\n\n  var $ = jQuery;\n  var _t = $($autoGenerateButton_);\n  var $item_tabContent = null;\n  var adminHelpers = this;\n\n\n\n\n  if (_t.parent().parent().hasClass('select-hidden-con')) {\n    $item_tabContent = _t.parent().parent();\n  }\n  if (_t.parent().parent().parent().hasClass('select-hidden-con')) {\n    $item_tabContent = _t.parent().parent().parent();\n  }\n  if (_t.parent().parent().parent().hasClass('tab-content')) {\n    $item_tabContent = _t.parent().parent().parent();\n  }\n\n\n  if ($item_tabContent) {\n\n    const videoSource = $item_tabContent.find('*[name=\"dzsvg_meta_featured_media\"]').eq(0).val();\n    let videoType = $item_tabContent.find('select[name=\"dzsvg_meta_item_type\"]').eq(0).val();\n    var $itemThumbnailField = $item_tabContent.find('*[name=dzsvg_meta_thumb]').eq(0);\n\n\n    if (videoType === 'detect' || videoType === '') {\n      videoType = dzsHelpers.detect_video_type_and_source(videoSource).type;\n    }\n\n    if (videoType === 'detect' || videoType === '') {\n      videoType = 'video';\n    }\n    const videoThumbComputed = adminHelpers.generateThumbnailForVideo(videoSource, videoType, $item_tabContent).then(result => {\n\n\n      $itemThumbnailField.val(result).trigger('change');\n\n\n\n    }).catch(err => {\n      console.log(err);\n\n    });\n\n\n\n\n  } else {\n  }\n}\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_adminHelpers.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_check_block_editors.js":
/*!********************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_check_block_editors.js ***!
  \********************************************************************************************************/
/***/ (() => {

eval("\n\n\nfunction docReady(){\n\n\n\n// -- add shortcode buttons to gutenberg classic block\n  setInterval(function(){\n    if(window.tinyMCE){\n      for(var i in window.tinyMCE.editors){\n\n\n        var _el = window.tinyMCE.editors[i];\n        var $_el = _el.$();\n\n        // -- gutenberg ..\n\n        if($_el.hasClass('wp-block-freeform')){\n\n          var _cach = $_el.parent().parent().parent();\n          if(_cach.find('.wp-content-media-buttons').length===0){\n\n\n            _cach.find('.block-library-classic__toolbar .mce-last .mce-btn-group').children().eq(0).append('<div style=\"display: inline-block;\" class=\"wp-content-media-buttons\"></div>');\n\n          }\n          window.dzsvg_add_media_buttons();\n        }\n\n      }\n    }\n  },2000);\n// -- END add shortcode buttons to gutenberg classic block\n}\ndocument.addEventListener('DOMContentLoaded', docReady, false);\n\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_check_block_editors.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_mainoptions.js":
/*!************************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_mainoptions.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {

eval("exports.mainoptions_init = function () {\n\n  var $ = jQuery;\n  var $tabs_ = document.querySelector('#dzs-tabs--main-options');\n\n  var inter_debounce_search = 0;\n\n  function search_for_setting_name(arg) {\n    $('.setting').each(function (e) {\n\n      var $t = $(this);\n      var searchedSettingName = arg.toLowerCase();\n      var currentSettingLabel = $t.find('.setting-label').length ? String($t.find('.setting-label').eq(0).text()).toLowerCase() : '';\n      var currentSettingSidenote = $t.find('.sidenote').length ? String($t.find('.sidenote').eq(0).text()).toLowerCase() : '';\n\n\n      if (searchedSettingName) {\n        if (currentSettingLabel.indexOf(searchedSettingName) > -1 || currentSettingSidenote.indexOf(searchedSettingName) > -1) {\n          $t.show();\n        } else {\n          $t.hide();\n        }\n      } else {\n        $t.show();\n      }\n    })\n\n    check_which_tabs_have_settings_visible(arg);\n    setTimeout(()=>{\n      $tabs_.api_handle_resize();\n    }, 300);\n  }\n\n  function check_which_tabs_have_settings_visible(arg) {\n\n    $('.tab-menu-con').each(function (e) {\n      var $t = $(this);\n\n      var isHasAnyDisplayOtherThanNone = false;\n      $t.find('.setting').each(function (e) {\n\n        var $setting = $(this);\n        if ($setting.css('display') !== 'none') {\n          isHasAnyDisplayOtherThanNone = true;\n        }\n      });\n\n      isHasAnyDisplayOtherThanNone  ? $t.css('display','') : $t.hide();\n\n      if (arg === '') {\n        $t.css('display','');\n      }\n    })\n  }\n\n  function handle_change_settings_search(e) {\n\n    var $t = $(e.currentTarget);\n\n    var val = $t.val();\n\n    if (val) {\n      $tabs_.api_set_fixed_mode('toggle');\n      $tabs_.classList.add('dzstaa-all-tabs-content-visible');\n\n    } else {\n\n      $tabs_.api_set_fixed_mode('');\n      $tabs_.classList.remove('dzstaa-all-tabs-content-visible');\n    }\n    search_for_setting_name(val);\n  }\n\n  $(document).on('keyup change mouseup', '#dzs--settings-search', function(e){\n    clearTimeout(inter_debounce_search);\n    inter_debounce_search = setTimeout(handle_change_settings_search, 400, e);\n  })\n}\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_mainoptions.js?");

/***/ }),

/***/ "../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_misc.js":
/*!*****************************************************************************************!*\
  !*** ../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_misc.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {

eval("exports.extra_skin_hiddenselect = function () {\n  for (var i = 0; i < jQuery('.select-hidden-metastyle').length; i++) {\n    var _t = jQuery('.select-hidden-metastyle').eq(i);\n    if (_t.hasClass('inited')) {\n      continue;\n    }\n    _t.addClass('inited');\n    _t.children('select').eq(0).bind('change', change_selecthidden);\n    change_selecthidden(null, _t.children('select').eq(0));\n    _t.find('.an-option').bind('click', click_anoption);\n  }\n\n  function change_selecthidden(e, arg) {\n    var _c = jQuery(this);\n    if (arg) {\n      _c = arg;\n    }\n    var _con = _c.parent();\n    var selind = _c.children().index(_c.children(':selected'));\n    var _slidercon = _con.parent().parent();\n    _con.find('.an-option').removeClass('active');\n    _con.find('.an-option').eq(selind).addClass('active');\n    do_changemainsliderclass(_slidercon, selind);\n  }\n\n  function click_anoption(e) {\n    var _c = jQuery(this);\n    var ind = _c.parent().children().index(_c);\n    var _con = _c.parent().parent();\n    var _slidercon = _con.parent().parent();\n    _c.parent().children().removeClass('active');\n    _c.addClass('active');\n    _con.children('select').eq(0).children().removeAttr('selected');\n    _con.children('select').eq(0).children().eq(ind).attr('selected', 'selected');\n    do_changemainsliderclass(_slidercon, ind);\n  }\n\n  function do_changemainsliderclass(arg, argval) {\n    //extra function - handmade\n\n    if (arg.hasClass('select-hidden-con')) {\n      arg.removeClass('mode_thumb');\n      arg.removeClass('mode_gallery');\n      arg.removeClass('mode_audio');\n      arg.removeClass('mode_video');\n      arg.removeClass('mode_youtube');\n      arg.removeClass('mode_vimeo');\n      arg.removeClass('mode_link');\n      arg.removeClass('mode_testimonial');\n      arg.removeClass('mode_link');\n      arg.removeClass('mode_twitter');\n\n      arg.addClass('mode_' + arg.find('.mainsetting').eq(0).children().eq(argval).val());\n\n    }\n    if (arg.hasClass('item-settings-con')) {\n      arg.removeClass('type_youtube');\n      arg.removeClass('type_normal');\n      arg.removeClass('type_vimeo');\n      arg.removeClass('type_audio');\n      arg.removeClass('type_image');\n      arg.removeClass('type_link');\n\n      if (argval == 0) {\n        arg.addClass('mode_youtube')\n      }\n      if (argval == 1) {\n        arg.addClass('mode_normal')\n      }\n      if (argval == 2) {\n        arg.addClass('mode_vimeo')\n      }\n      if (argval == 3) {\n        arg.addClass('mode_audio')\n      }\n      if (argval == 4) {\n        arg.addClass('mode_image')\n      }\n      if (argval == 5) {\n        arg.addClass('mode_link')\n      }\n    }\n  }\n\n}\n\n\n\nexports.con_generate_buttons = function (ajaxurl) {\n  var $ =jQuery;\n  $('#generate-upload-page').bind('click', function () {\n    var _t = $(this);\n\n    _t.css('opacity', 0.5);\n\n\n    var data = {\n      action: 'dzsvp_insert_upload_page'\n      , postdata: '1'\n    };\n    $.post(ajaxurl, data, function (response) {\n        console.log('Got this from the server: ' + response);\n\n      $('select[name=dzsvp_page_upload]').prepend('<optgroup label=\"Generated Pages\"><option value=\"' + response + '\">Upload</option></optgroup>')\n\n      $('select[name=dzsvp_page_upload]').find('option').eq(0).prop('selected', true);\n      $('select[name=dzsvp_page_upload]').trigger('change');\n\n      _t.parent().parent().remove();\n\n    });\n\n    return false;\n  })\n}\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/_misc.js?");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"dzs_admin_addWarningForUpdate\": () => (/* binding */ dzs_admin_addWarningForUpdate)\n/* harmony export */ });\nfunction dzs_admin_addWarningForUpdate() {\n\n  var $ = jQuery;\n  if ($('#welcome-panel').length) {\n\n\n    var _c = $('#welcome-panel');\n\n\n    _c.before('<div id=\"welcome-panel\" class=\"dzsvg-update-available welcome-panel\">\\n' +\n      '<input type=\"hidden\" id=\"welcomepanelnonce\" name=\"welcomepanelnonce\" value=\"5855c9d8b6\">\\t\\t<a class=\"welcome-panel-close\" href=\"#\" aria-label=\"Dismiss the welcome panel\">Dismiss</a>\\n' +\n      '\\t\\t\\t<div class=\"welcome-panel-content\"><a class=\"update-available\" href=\"admin.php?page=dzsvg-autoupdater\" aria-label=\"Update video gallery\">Update available</a> for <strong>Video Gallery Wordpress</strong>\\n' +\n\n      '\\t</div>\\n' +\n      '\\t\\t</div>')\n\n\n    return;\n  }\n\n\n\n  if ($('tr[data-slug=dzs-video-gallery]').length) {\n\n    var _c = $('tr[data-slug=dzs-video-gallery]').eq(0);\n\n    _c.find('.row-actions').after('<div class=\"row-actions visible\"><span class=\"deactivate\"><a class=\"update-available\" href=\"admin.php?page=dzsvg-autoupdater\" aria-label=\"Update video gallery\">Update available</a></span></div>');\n  } else {\n\n\n    if (jQuery('.version-number').length) {\n      jQuery('.version-number').append('<span class=\"new-version info-con\" style=\"width: auto;\"> <span class=\"new-version-text\">/ new version ' + data + '</span><div class=\"sidenote\">Download the new version by going to your CodeCanyon accound and accessing the Downloads tab.</div></div> </span>')\n\n      const $theListVg = $('#the-list > #dzs-video-gallery');\n      if (!$theListVg.next().hasClass('plugin-update-tr')) {\n        $theListVg.addClass('update');\n        $theListVg.after('<tr class=\"plugin-update-tr\"><td colspan=\"3\" class=\"plugin-update colspanchange\"><div class=\"update-message\">There is a new version of DZS Video Gallery available. <form action=\"admin.php?page=dzsvg-autoupdater\" class=\"mainsettings\" method=\"post\"> &nbsp; <br> <button class=\"button-primary\" name=\"action\" value=\"dzsvg_update_request\">Update</button></form></td></tr>');\n      }\n    }\n  }\n\n\n}\n\n//# sourceURL=webpack://dzsvg/../../../videogallery/wp/wp-content/plugins/dzs-videogallery/admin/jsinc/admin/_view-admin.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/admin/admin_global.sourcepack.js");
/******/ 	
/******/ })()
;