Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/dist
File: blob.js
this["wp"] = this["wp"] || {}; this["wp"]["blob"] =
[0] Fix | Delete
/******/ (function(modules) { // webpackBootstrap
[1] Fix | Delete
/******/ // The module cache
[2] Fix | Delete
/******/ var installedModules = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/******/ // The require function
[5] Fix | Delete
/******/ function __webpack_require__(moduleId) {
[6] Fix | Delete
/******/
[7] Fix | Delete
/******/ // Check if module is in cache
[8] Fix | Delete
/******/ if(installedModules[moduleId]) {
[9] Fix | Delete
/******/ return installedModules[moduleId].exports;
[10] Fix | Delete
/******/ }
[11] Fix | Delete
/******/ // Create a new module (and put it into the cache)
[12] Fix | Delete
/******/ var module = installedModules[moduleId] = {
[13] Fix | Delete
/******/ i: moduleId,
[14] Fix | Delete
/******/ l: false,
[15] Fix | Delete
/******/ exports: {}
[16] Fix | Delete
/******/ };
[17] Fix | Delete
/******/
[18] Fix | Delete
/******/ // Execute the module function
[19] Fix | Delete
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
[20] Fix | Delete
/******/
[21] Fix | Delete
/******/ // Flag the module as loaded
[22] Fix | Delete
/******/ module.l = true;
[23] Fix | Delete
/******/
[24] Fix | Delete
/******/ // Return the exports of the module
[25] Fix | Delete
/******/ return module.exports;
[26] Fix | Delete
/******/ }
[27] Fix | Delete
/******/
[28] Fix | Delete
/******/
[29] Fix | Delete
/******/ // expose the modules object (__webpack_modules__)
[30] Fix | Delete
/******/ __webpack_require__.m = modules;
[31] Fix | Delete
/******/
[32] Fix | Delete
/******/ // expose the module cache
[33] Fix | Delete
/******/ __webpack_require__.c = installedModules;
[34] Fix | Delete
/******/
[35] Fix | Delete
/******/ // define getter function for harmony exports
[36] Fix | Delete
/******/ __webpack_require__.d = function(exports, name, getter) {
[37] Fix | Delete
/******/ if(!__webpack_require__.o(exports, name)) {
[38] Fix | Delete
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
[39] Fix | Delete
/******/ }
[40] Fix | Delete
/******/ };
[41] Fix | Delete
/******/
[42] Fix | Delete
/******/ // define __esModule on exports
[43] Fix | Delete
/******/ __webpack_require__.r = function(exports) {
[44] Fix | Delete
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
[45] Fix | Delete
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
[46] Fix | Delete
/******/ }
[47] Fix | Delete
/******/ Object.defineProperty(exports, '__esModule', { value: true });
[48] Fix | Delete
/******/ };
[49] Fix | Delete
/******/
[50] Fix | Delete
/******/ // create a fake namespace object
[51] Fix | Delete
/******/ // mode & 1: value is a module id, require it
[52] Fix | Delete
/******/ // mode & 2: merge all properties of value into the ns
[53] Fix | Delete
/******/ // mode & 4: return value when already ns object
[54] Fix | Delete
/******/ // mode & 8|1: behave like require
[55] Fix | Delete
/******/ __webpack_require__.t = function(value, mode) {
[56] Fix | Delete
/******/ if(mode & 1) value = __webpack_require__(value);
[57] Fix | Delete
/******/ if(mode & 8) return value;
[58] Fix | Delete
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
[59] Fix | Delete
/******/ var ns = Object.create(null);
[60] Fix | Delete
/******/ __webpack_require__.r(ns);
[61] Fix | Delete
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
[62] Fix | Delete
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
[63] Fix | Delete
/******/ return ns;
[64] Fix | Delete
/******/ };
[65] Fix | Delete
/******/
[66] Fix | Delete
/******/ // getDefaultExport function for compatibility with non-harmony modules
[67] Fix | Delete
/******/ __webpack_require__.n = function(module) {
[68] Fix | Delete
/******/ var getter = module && module.__esModule ?
[69] Fix | Delete
/******/ function getDefault() { return module['default']; } :
[70] Fix | Delete
/******/ function getModuleExports() { return module; };
[71] Fix | Delete
/******/ __webpack_require__.d(getter, 'a', getter);
[72] Fix | Delete
/******/ return getter;
[73] Fix | Delete
/******/ };
[74] Fix | Delete
/******/
[75] Fix | Delete
/******/ // Object.prototype.hasOwnProperty.call
[76] Fix | Delete
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
[77] Fix | Delete
/******/
[78] Fix | Delete
/******/ // __webpack_public_path__
[79] Fix | Delete
/******/ __webpack_require__.p = "";
[80] Fix | Delete
/******/
[81] Fix | Delete
/******/
[82] Fix | Delete
/******/ // Load entry module and return exports
[83] Fix | Delete
/******/ return __webpack_require__(__webpack_require__.s = "ca5x");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "ca5x":
[89] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[90] Fix | Delete
[91] Fix | Delete
"use strict";
[92] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[93] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBlobURL", function() { return createBlobURL; });
[94] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobByURL", function() { return getBlobByURL; });
[95] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBlobTypeByURL", function() { return getBlobTypeByURL; });
[96] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "revokeBlobURL", function() { return revokeBlobURL; });
[97] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isBlobURL", function() { return isBlobURL; });
[98] Fix | Delete
/**
[99] Fix | Delete
* Browser dependencies
[100] Fix | Delete
*/
[101] Fix | Delete
var _window$URL = window.URL,
[102] Fix | Delete
createObjectURL = _window$URL.createObjectURL,
[103] Fix | Delete
revokeObjectURL = _window$URL.revokeObjectURL;
[104] Fix | Delete
/**
[105] Fix | Delete
* @type {Record<string, File|undefined>}
[106] Fix | Delete
*/
[107] Fix | Delete
[108] Fix | Delete
var cache = {};
[109] Fix | Delete
/**
[110] Fix | Delete
* Create a blob URL from a file.
[111] Fix | Delete
*
[112] Fix | Delete
* @param {File} file The file to create a blob URL for.
[113] Fix | Delete
*
[114] Fix | Delete
* @return {string} The blob URL.
[115] Fix | Delete
*/
[116] Fix | Delete
[117] Fix | Delete
function createBlobURL(file) {
[118] Fix | Delete
var url = createObjectURL(file);
[119] Fix | Delete
cache[url] = file;
[120] Fix | Delete
return url;
[121] Fix | Delete
}
[122] Fix | Delete
/**
[123] Fix | Delete
* Retrieve a file based on a blob URL. The file must have been created by
[124] Fix | Delete
* `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return
[125] Fix | Delete
* `undefined`.
[126] Fix | Delete
*
[127] Fix | Delete
* @param {string} url The blob URL.
[128] Fix | Delete
*
[129] Fix | Delete
* @return {File|undefined} The file for the blob URL.
[130] Fix | Delete
*/
[131] Fix | Delete
[132] Fix | Delete
function getBlobByURL(url) {
[133] Fix | Delete
return cache[url];
[134] Fix | Delete
}
[135] Fix | Delete
/**
[136] Fix | Delete
* Retrieve a blob type based on URL. The file must have been created by
[137] Fix | Delete
* `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return
[138] Fix | Delete
* `undefined`.
[139] Fix | Delete
*
[140] Fix | Delete
* @param {string} url The blob URL.
[141] Fix | Delete
*
[142] Fix | Delete
* @return {string|undefined} The blob type.
[143] Fix | Delete
*/
[144] Fix | Delete
[145] Fix | Delete
function getBlobTypeByURL(url) {
[146] Fix | Delete
var _getBlobByURL;
[147] Fix | Delete
[148] Fix | Delete
return (_getBlobByURL = getBlobByURL(url)) === null || _getBlobByURL === void 0 ? void 0 : _getBlobByURL.type.split('/')[0]; // 0: media type , 1: file extension eg ( type: 'image/jpeg' ).
[149] Fix | Delete
}
[150] Fix | Delete
/**
[151] Fix | Delete
* Remove the resource and file cache from memory.
[152] Fix | Delete
*
[153] Fix | Delete
* @param {string} url The blob URL.
[154] Fix | Delete
*/
[155] Fix | Delete
[156] Fix | Delete
function revokeBlobURL(url) {
[157] Fix | Delete
if (cache[url]) {
[158] Fix | Delete
revokeObjectURL(url);
[159] Fix | Delete
}
[160] Fix | Delete
[161] Fix | Delete
delete cache[url];
[162] Fix | Delete
}
[163] Fix | Delete
/**
[164] Fix | Delete
* Check whether a url is a blob url.
[165] Fix | Delete
*
[166] Fix | Delete
* @param {string} url The URL.
[167] Fix | Delete
*
[168] Fix | Delete
* @return {boolean} Is the url a blob url?
[169] Fix | Delete
*/
[170] Fix | Delete
[171] Fix | Delete
function isBlobURL(url) {
[172] Fix | Delete
if (!url || !url.indexOf) {
[173] Fix | Delete
return false;
[174] Fix | Delete
}
[175] Fix | Delete
[176] Fix | Delete
return url.indexOf('blob:') === 0;
[177] Fix | Delete
}
[178] Fix | Delete
[179] Fix | Delete
[180] Fix | Delete
/***/ })
[181] Fix | Delete
[182] Fix | Delete
/******/ });
[183] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function