summaryrefslogtreecommitdiff
path: root/priv/static/adminfe/static/js/chunk-03c5.1b0ab243.js.map
blob: acf1ba219dafdfac3ccf331c05cf6ddb2b078bcb (plain)
1
{"version":3,"sources":["webpack:///./node_modules/lodash.debounce/index.js","webpack:///./src/views/mediaProxyCache/index.vue?3e91","webpack:///./src/views/mediaProxyCache/index.vue?1a22","webpack:///./src/views/mediaProxyCache/index.vue?888e","webpack:///src/views/mediaProxyCache/index.vue","webpack:///./src/views/mediaProxyCache/index.vue"],"names":["global","FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","Object","freeSelf","self","root","Function","objectToString","prototype","toString","nativeMax","Math","max","nativeMin","min","now","Date","isObject","value","type","toNumber","isObjectLike","call","isSymbol","other","valueOf","replace","isBinary","test","slice","module","exports","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","remainingWait","debounced","isInvoking","arguments","this","leadingEdge","cancel","clearTimeout","flush","_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_index_js_ref_11_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_11_2_node_modules_sass_loader_lib_loader_js_ref_11_3_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_4ee576de_rel_stylesheet_2Fscss_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","n","views_mediaProxyCachevue_type_script_lang_js_","name","components","RebootButton","data","urls","ban","search","selectedUrls","computed","bannedUrls","$store","state","mediaProxyCache","currentPage","isDesktop","app","device","loading","mediaProxyEnabled","pageSize","removeSelectedDisabled","length","urlsCount","totalUrlsCount","created","_this","handleDebounceSearchInput","lodash_debounce_default","query","dispatch","page","mounted","methods","enableMediaProxy","_this2","$confirm","$t","confirmButtonText","cancelButtonText","then","$message","message","catch","evictURL","splitUrls","handlePageChange","handleSelectionChange","$data","removeSelected","map","el","url","removeUrl","split","trim","filter","component","componentNormalizer","_vm","_h","$createElement","_c","_self","staticClass","_v","_s","attrs","placeholder","autosize","clearable","model","callback","$$v","expression","on","click","directives","rawName","selection-change","align","width","min-width","prop","scopedSlots","_u","key","fn","scope","size","prefix-icon","input","$event","row","slot","disabled","_e","total","current-page","page-size","hide-on-single-page","layout","current-change","__file","__webpack_exports__"],"mappings":"4FAAA,SAAAA,GAUA,IAAAC,EAAA,sBAGAC,EAAA,IAGAC,EAAA,kBAGAC,EAAA,aAGAC,EAAA,qBAGAC,EAAA,aAGAC,EAAA,cAGAC,EAAAC,SAGAC,EAAA,iBAAAV,QAAAW,iBAAAX,EAGAY,EAAA,iBAAAC,iBAAAF,iBAAAE,KAGAC,EAAAJ,GAAAE,GAAAG,SAAA,cAAAA,GAUAC,EAPAL,OAAAM,UAOAC,SAGAC,EAAAC,KAAAC,IACAC,EAAAF,KAAAG,IAkBAC,EAAA,WACA,OAAAV,EAAAW,KAAAD,OA4MA,SAAAE,EAAAC,GACA,IAAAC,SAAAD,EACA,QAAAA,IAAA,UAAAC,GAAA,YAAAA,GA4EA,SAAAC,EAAAF,GACA,oBAAAA,EACA,OAAAA,EAEA,GAhCA,SAAAA,GACA,uBAAAA,GAtBA,SAAAA,GACA,QAAAA,GAAA,iBAAAA,EAsBAG,CAAAH,IAAAX,EAAAe,KAAAJ,IAAAxB,EA8BA6B,CAAAL,GACA,OAAAzB,EAEA,GAAAwB,EAAAC,GAAA,CACA,IAAAM,EAAA,mBAAAN,EAAAO,QAAAP,EAAAO,UAAAP,EACAA,EAAAD,EAAAO,KAAA,GAAAA,EAEA,oBAAAN,EACA,WAAAA,OAEAA,IAAAQ,QAAA/B,EAAA,IACA,IAAAgC,EAAA9B,EAAA+B,KAAAV,GACA,OAAAS,GAAA7B,EAAA8B,KAAAV,GACAnB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,GAAA,SAAAN,EAAAO,GAAAP,EAAAtB,GAAA,iEGYr+F,EACA,KACA,WACA,MAIAoB,EAAA5F,QAAA0I,OAAA,YACeC,EAAA,QAAA/C","file":"static/js/chunk-03c5.1b0ab243.js","sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n    nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n *   console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n  return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n *  Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n *  The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n *  Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n *   'leading': true,\n *   'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n  var lastArgs,\n      lastThis,\n      maxWait,\n      result,\n      timerId,\n      lastCallTime,\n      lastInvokeTime = 0,\n      leading = false,\n      maxing = false,\n      trailing = true;\n\n  if (typeof func != 'function') {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  wait = toNumber(wait) || 0;\n  if (isObject(options)) {\n    leading = !!options.leading;\n    maxing = 'maxWait' in options;\n    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n    trailing = 'trailing' in options ? !!options.trailing : trailing;\n  }\n\n  function invokeFunc(time) {\n    var args = lastArgs,\n        thisArg = lastThis;\n\n    lastArgs = lastThis = undefined;\n    lastInvokeTime = time;\n    result = func.apply(thisArg, args);\n    return result;\n  }\n\n  function leadingEdge(time) {\n    // Reset any `maxWait` timer.\n    lastInvokeTime = time;\n    // Start the timer for the trailing edge.\n    timerId = setTimeout(timerExpired, wait);\n    // Invoke the leading edge.\n    return leading ? invokeFunc(time) : result;\n  }\n\n  function remainingWait(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime,\n        result = wait - timeSinceLastCall;\n\n    return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n  }\n\n  function shouldInvoke(time) {\n    var timeSinceLastCall = time - lastCallTime,\n        timeSinceLastInvoke = time - lastInvokeTime;\n\n    // Either this is the first call, activity has stopped and we're at the\n    // trailing edge, the system time has gone backwards and we're treating\n    // it as the trailing edge, or we've hit the `maxWait` limit.\n    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n  }\n\n  function timerExpired() {\n    var time = now();\n    if (shouldInvoke(time)) {\n      return trailingEdge(time);\n    }\n    // Restart the timer.\n    timerId = setTimeout(timerExpired, remainingWait(time));\n  }\n\n  function trailingEdge(time) {\n    timerId = undefined;\n\n    // Only invoke if we have `lastArgs` which means `func` has been\n    // debounced at least once.\n    if (trailing && lastArgs) {\n      return invokeFunc(time);\n    }\n    lastArgs = lastThis = undefined;\n    return result;\n  }\n\n  function cancel() {\n    if (timerId !== undefined) {\n      clearTimeout(timerId);\n    }\n    lastInvokeTime = 0;\n    lastArgs = lastCallTime = lastThis = timerId = undefined;\n  }\n\n  function flush() {\n    return timerId === undefined ? result : trailingEdge(now());\n  }\n\n  function debounced() {\n    var time = now(),\n        isInvoking = shouldInvoke(time);\n\n    lastArgs = arguments;\n    lastThis = this;\n    lastCallTime = time;\n\n    if (isInvoking) {\n      if (timerId === undefined) {\n        return leadingEdge(lastCallTime);\n      }\n      if (maxing) {\n        // Handle invocations in a tight loop.\n        timerId = setTimeout(timerExpired, wait);\n        return invokeFunc(lastCallTime);\n      }\n    }\n    if (timerId === undefined) {\n      timerId = setTimeout(timerExpired, wait);\n    }\n    return result;\n  }\n  debounced.cancel = cancel;\n  debounced.flush = flush;\n  return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n  if (typeof value == 'number') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return NAN;\n  }\n  if (isObject(value)) {\n    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n    value = isObject(other) ? (other + '') : other;\n  }\n  if (typeof value != 'string') {\n    return value === 0 ? value : +value;\n  }\n  value = value.replace(reTrim, '');\n  var isBinary = reIsBinary.test(value);\n  return (isBinary || reIsOctal.test(value))\n    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n    : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/index.js??ref--11-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--11-2!../../../node_modules/sass-loader/lib/loader.js??ref--11-3!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=4ee576de&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/index.js??ref--11-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/lib/index.js??ref--11-2!../../../node_modules/sass-loader/lib/loader.js??ref--11-3!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=4ee576de&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"media-proxy-cache-container\"},[_c('div',{staticClass:\"media-proxy-cache-header-container\"},[_c('h1',[_vm._v(_vm._s(_vm.$t('mediaProxyCache.mediaProxyCache')))]),_vm._v(\" \"),_c('reboot-button')],1),_vm._v(\" \"),(_vm.mediaProxyEnabled)?_c('div',[_c('p',{staticClass:\"media-proxy-cache-header\"},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.evictObjectsHeader')))]),_vm._v(\" \"),_c('div',{staticClass:\"url-input-container\"},[_c('el-input',{staticClass:\"url-input\",attrs:{\"placeholder\":_vm.$t('mediaProxyCache.url'),\"type\":\"textarea\",\"autosize\":\"\",\"clearable\":\"\"},model:{value:(_vm.urls),callback:function ($$v) {_vm.urls=$$v},expression:\"urls\"}}),_vm._v(\" \"),_c('el-checkbox',{model:{value:(_vm.ban),callback:function ($$v) {_vm.ban=$$v},expression:\"ban\"}},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.ban')))]),_vm._v(\" \"),_c('el-button',{staticClass:\"evict-button\",on:{\"click\":_vm.evictURL}},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.evict')))])],1),_vm._v(\" \"),_c('span',{staticClass:\"expl url-input-expl\"},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.multipleInput')))]),_vm._v(\" \"),_c('p',{staticClass:\"media-proxy-cache-header\"},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.listBannedUrlsHeader')))]),_vm._v(\" \"),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"banned-urls-table\",attrs:{\"data\":_vm.bannedUrls},on:{\"selection-change\":_vm.handleSelectionChange}},[_vm._v(\">\\n      \"),_c('el-table-column',{attrs:{\"type\":\"selection\",\"align\":\"center\",\"width\":\"55\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"min-width\":_vm.isDesktop ? 320 : 120,\"prop\":\"url\"},scopedSlots:_vm._u([{key:\"header\",fn:function(scope){return [_c('el-input',{attrs:{\"placeholder\":_vm.$t('users.search'),\"size\":\"mini\",\"prefix-icon\":\"el-icon-search\"},on:{\"input\":_vm.handleDebounceSearchInput},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})]}}],null,false,2430623903)}),_vm._v(\" \"),_c('el-table-column',{scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"remove-url-button\",attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.removeUrl(scope.row.url)}}},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.remove')))])]}}],null,false,3837797105)},[_c('template',{slot:\"header\"},[_c('el-button',{staticClass:\"remove-url-button\",attrs:{\"disabled\":_vm.removeSelectedDisabled,\"size\":\"mini\"},on:{\"click\":function($event){return _vm.removeSelected()}}},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.removeSelected')))])],1)],2)],1),_vm._v(\" \"),(!_vm.loading)?_c('div',{staticClass:\"pagination\"},[_c('el-pagination',{attrs:{\"total\":_vm.urlsCount,\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"hide-on-single-page\":\"\",\"layout\":\"prev, pager, next\"},on:{\"current-change\":_vm.handlePageChange}})],1):_vm._e()],1):_c('div',{staticClass:\"enable-mediaproxy-container\"},[_c('el-button',{attrs:{\"type\":\"text\"},on:{\"click\":_vm.enableMediaProxy}},[_vm._v(_vm._s(_vm.$t('mediaProxyCache.enable')))]),_vm._v(\"\\n    \"+_vm._s(_vm.$t('mediaProxyCache.invalidationAndMediaProxy'))+\"\\n  \")],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js?cacheDirectory!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js?cacheDirectory!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","<template>\n  <div class=\"media-proxy-cache-container\">\n    <div class=\"media-proxy-cache-header-container\">\n      <h1>{{ $t('mediaProxyCache.mediaProxyCache') }}</h1>\n      <reboot-button/>\n    </div>\n    <div v-if=\"mediaProxyEnabled\">\n      <p class=\"media-proxy-cache-header\">{{ $t('mediaProxyCache.evictObjectsHeader') }}</p>\n      <div class=\"url-input-container\">\n        <el-input\n          :placeholder=\"$t('mediaProxyCache.url')\"\n          v-model=\"urls\"\n          type=\"textarea\"\n          autosize\n          clearable\n          class=\"url-input\"/>\n        <el-checkbox v-model=\"ban\">{{ $t('mediaProxyCache.ban') }}</el-checkbox>\n        <el-button class=\"evict-button\" @click=\"evictURL\">{{ $t('mediaProxyCache.evict') }}</el-button>\n      </div>\n      <span class=\"expl url-input-expl\">{{ $t('mediaProxyCache.multipleInput') }}</span>\n      <p class=\"media-proxy-cache-header\">{{ $t('mediaProxyCache.listBannedUrlsHeader') }}</p>\n      <el-table\n        v-loading=\"loading\"\n        :data=\"bannedUrls\"\n        class=\"banned-urls-table\"\n        @selection-change=\"handleSelectionChange\">>\n        <el-table-column\n          type=\"selection\"\n          align=\"center\"\n          width=\"55\"/>\n        <el-table-column :min-width=\"isDesktop ? 320 : 120\" prop=\"url\">\n          <template slot=\"header\" slot-scope=\"scope\">\n            <el-input\n              :placeholder=\"$t('users.search')\"\n              v-model=\"search\"\n              size=\"mini\"\n              prefix-icon=\"el-icon-search\"\n              @input=\"handleDebounceSearchInput\"/>\n          </template>\n        </el-table-column>\n        <el-table-column>\n          <template slot=\"header\">\n            <el-button\n              :disabled=\"removeSelectedDisabled\"\n              size=\"mini\"\n              class=\"remove-url-button\"\n              @click=\"removeSelected()\">{{ $t('mediaProxyCache.removeSelected') }}</el-button>\n          </template>\n          <template slot-scope=\"scope\">\n            <el-button\n              size=\"mini\"\n              class=\"remove-url-button\"\n              @click=\"removeUrl(scope.row.url)\">{{ $t('mediaProxyCache.remove') }}</el-button>\n          </template>\n        </el-table-column>\n      </el-table>\n      <div v-if=\"!loading\" class=\"pagination\">\n        <el-pagination\n          :total=\"urlsCount\"\n          :current-page=\"currentPage\"\n          :page-size=\"pageSize\"\n          hide-on-single-page\n          layout=\"prev, pager, next\"\n          @current-change=\"handlePageChange\"\n        />\n      </div>\n    </div>\n    <div v-else class=\"enable-mediaproxy-container\">\n      <el-button type=\"text\" @click=\"enableMediaProxy\">{{ $t('mediaProxyCache.enable') }}</el-button>\n      {{ $t('mediaProxyCache.invalidationAndMediaProxy') }}\n    </div>\n  </div>\n</template>\n\n<script>\nimport debounce from 'lodash.debounce'\nimport RebootButton from '@/components/RebootButton'\n\nexport default {\n  name: 'MediaProxyCache',\n  components: { RebootButton },\n  data() {\n    return {\n      urls: '',\n      ban: false,\n      search: '',\n      selectedUrls: []\n    }\n  },\n  computed: {\n    bannedUrls() {\n      return this.$store.state.mediaProxyCache.bannedUrls\n    },\n    currentPage() {\n      return this.$store.state.mediaProxyCache.currentPage\n    },\n    isDesktop() {\n      return this.$store.state.app.device === 'desktop'\n    },\n    loading() {\n      return this.$store.state.mediaProxyCache.loading\n    },\n    mediaProxyEnabled() {\n      return this.$store.state.mediaProxyCache.mediaProxyEnabled\n    },\n    pageSize() {\n      return this.$store.state.mediaProxyCache.pageSize\n    },\n    removeSelectedDisabled() {\n      return this.selectedUrls.length === 0\n    },\n    urlsCount() {\n      return this.$store.state.mediaProxyCache.totalUrlsCount\n    }\n  },\n  created() {\n    this.handleDebounceSearchInput = debounce((query) => {\n      this.$store.dispatch('SearchUrls', { query, page: 1 })\n    }, 500)\n  },\n  mounted() {\n    this.$store.dispatch('GetNodeInfo')\n    this.$store.dispatch('NeedReboot')\n    this.$store.dispatch('FetchMediaProxySetting')\n    this.$store.dispatch('ListBannedUrls', { page: 1 })\n  },\n  methods: {\n    enableMediaProxy() {\n      this.$confirm(\n        this.$t('mediaProxyCache.confirmEnablingMediaProxy'),\n        {\n          confirmButtonText: 'Yes',\n          cancelButtonText: 'Cancel',\n          type: 'warning'\n        }).then(() => {\n        this.$message({\n          type: 'success',\n          message: this.$t('mediaProxyCache.enableMediaProxySuccessMessage')\n        })\n        this.$store.dispatch('EnableMediaProxy')\n      }).catch(() => {\n        this.$message({\n          type: 'info',\n          message: 'Canceled'\n        })\n      })\n    },\n    evictURL() {\n      const urls = this.splitUrls(this.urls)\n      this.$store.dispatch('PurgeUrls', { urls, ban: this.ban })\n      this.urls = ''\n    },\n    handlePageChange(page) {\n      this.$store.dispatch('ListBannedUrls', { page })\n    },\n    handleSelectionChange(value) {\n      this.$data.selectedUrls = value\n    },\n    removeSelected() {\n      const urls = this.selectedUrls.map(el => el.url)\n      this.$store.dispatch('RemoveBannedUrls', urls)\n      this.selectedUrls = []\n    },\n    removeUrl(url) {\n      this.$store.dispatch('RemoveBannedUrls', [url])\n    },\n    splitUrls(urls) {\n      return urls.split(',').map(url => url.trim()).filter(el => el.length > 0)\n    }\n  }\n}\n</script>\n\n<style rel='stylesheet/scss' lang='scss' scoped>\nh1 {\n  margin: 0;\n}\n.enable-mediaproxy-container {\n  margin: 10px 15px;\n  button {\n    font-size: 16px;\n  }\n}\n.expl {\n  color: #666666;\n  font-size: 13px;\n  line-height: 22px;\n  margin: 5px 0 0 0;\n  overflow-wrap: break-word;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.banned-urls-table {\n  margin-top: 15px;\n  margin-bottom: 15px;\n}\n.evict-button {\n  margin-left: 15px;\n}\n.media-proxy-cache-header {\n  margin-left: 15px;\n  margin-top: 22px;\n  font-weight: 500;\n}\n.media-proxy-cache-header-container {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin: 10px 15px;\n}\n.pagination {\n  margin: 25px 0;\n  text-align: center;\n}\n.remove-url-button {\n  width: 150px;\n}\n.url-input {\n  margin-right: 15px;\n}\n.url-input-container {\n  display: flex;\n  align-items: baseline;\n  margin: 15px 15px 5px 15px;\n}\n.url-input-expl {\n  margin-left: 15px;\n}\n\n@media only screen and (max-width:480px) {\n  .url-input {\n    width: 100%;\n    margin-bottom: 5px;\n  }\n}\n</style>\n","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4ee576de&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=4ee576de&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"4ee576de\",\n  null\n  \n)\n\ncomponent.options.__file = \"index.vue\"\nexport default component.exports"],"sourceRoot":""}