data-table.js
4 years ago
data-table.js.map
4 years ago
settings.js
4 years ago
settings.js.map
4 years ago
settings.js
193 lines
| 1 | // modules are defined as an array |
| 2 | // [ module function, map of requires ] |
| 3 | // |
| 4 | // map of requires is short require name -> numeric require |
| 5 | // |
| 6 | // anything defined in a previous bundle is accessed via the |
| 7 | // orig method which is the require for previous bundles |
| 8 | |
| 9 | (function (modules, entry, mainEntry, parcelRequireName, globalName) { |
| 10 | /* eslint-disable no-undef */ |
| 11 | var globalObject = |
| 12 | typeof globalThis !== 'undefined' |
| 13 | ? globalThis |
| 14 | : typeof self !== 'undefined' |
| 15 | ? self |
| 16 | : typeof window !== 'undefined' |
| 17 | ? window |
| 18 | : typeof global !== 'undefined' |
| 19 | ? global |
| 20 | : {}; |
| 21 | /* eslint-enable no-undef */ |
| 22 | |
| 23 | // Save the require from previous bundle to this closure if any |
| 24 | var previousRequire = |
| 25 | typeof globalObject[parcelRequireName] === 'function' && |
| 26 | globalObject[parcelRequireName]; |
| 27 | |
| 28 | var cache = previousRequire.cache || {}; |
| 29 | // Do not use `require` to prevent Webpack from trying to bundle this call |
| 30 | var nodeRequire = |
| 31 | typeof module !== 'undefined' && |
| 32 | typeof module.require === 'function' && |
| 33 | module.require.bind(module); |
| 34 | |
| 35 | function newRequire(name, jumped) { |
| 36 | if (!cache[name]) { |
| 37 | if (!modules[name]) { |
| 38 | // if we cannot find the module within our internal map or |
| 39 | // cache jump to the current global require ie. the last bundle |
| 40 | // that was added to the page. |
| 41 | var currentRequire = |
| 42 | typeof globalObject[parcelRequireName] === 'function' && |
| 43 | globalObject[parcelRequireName]; |
| 44 | if (!jumped && currentRequire) { |
| 45 | return currentRequire(name, true); |
| 46 | } |
| 47 | |
| 48 | // If there are other bundles on this page the require from the |
| 49 | // previous one is saved to 'previousRequire'. Repeat this as |
| 50 | // many times as there are bundles until the module is found or |
| 51 | // we exhaust the require chain. |
| 52 | if (previousRequire) { |
| 53 | return previousRequire(name, true); |
| 54 | } |
| 55 | |
| 56 | // Try the node require function if it exists. |
| 57 | if (nodeRequire && typeof name === 'string') { |
| 58 | return nodeRequire(name); |
| 59 | } |
| 60 | |
| 61 | var err = new Error("Cannot find module '" + name + "'"); |
| 62 | err.code = 'MODULE_NOT_FOUND'; |
| 63 | throw err; |
| 64 | } |
| 65 | |
| 66 | localRequire.resolve = resolve; |
| 67 | localRequire.cache = {}; |
| 68 | |
| 69 | var module = (cache[name] = new newRequire.Module(name)); |
| 70 | |
| 71 | modules[name][0].call( |
| 72 | module.exports, |
| 73 | localRequire, |
| 74 | module, |
| 75 | module.exports, |
| 76 | this |
| 77 | ); |
| 78 | } |
| 79 | |
| 80 | return cache[name].exports; |
| 81 | |
| 82 | function localRequire(x) { |
| 83 | var res = localRequire.resolve(x); |
| 84 | return res === false ? {} : newRequire(res); |
| 85 | } |
| 86 | |
| 87 | function resolve(x) { |
| 88 | var id = modules[name][1][x]; |
| 89 | return id != null ? id : x; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | function Module(moduleName) { |
| 94 | this.id = moduleName; |
| 95 | this.bundle = newRequire; |
| 96 | this.exports = {}; |
| 97 | } |
| 98 | |
| 99 | newRequire.isParcelRequire = true; |
| 100 | newRequire.Module = Module; |
| 101 | newRequire.modules = modules; |
| 102 | newRequire.cache = cache; |
| 103 | newRequire.parent = previousRequire; |
| 104 | newRequire.register = function (id, exports) { |
| 105 | modules[id] = [ |
| 106 | function (require, module) { |
| 107 | module.exports = exports; |
| 108 | }, |
| 109 | {}, |
| 110 | ]; |
| 111 | }; |
| 112 | |
| 113 | Object.defineProperty(newRequire, 'root', { |
| 114 | get: function () { |
| 115 | return globalObject[parcelRequireName]; |
| 116 | }, |
| 117 | }); |
| 118 | |
| 119 | globalObject[parcelRequireName] = newRequire; |
| 120 | |
| 121 | for (var i = 0; i < entry.length; i++) { |
| 122 | newRequire(entry[i]); |
| 123 | } |
| 124 | |
| 125 | if (mainEntry) { |
| 126 | // Expose entry point to Node, AMD or browser globals |
| 127 | // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js |
| 128 | var mainExports = newRequire(mainEntry); |
| 129 | |
| 130 | // CommonJS |
| 131 | if (typeof exports === 'object' && typeof module !== 'undefined') { |
| 132 | module.exports = mainExports; |
| 133 | |
| 134 | // RequireJS |
| 135 | } else if (typeof define === 'function' && define.amd) { |
| 136 | define(function () { |
| 137 | return mainExports; |
| 138 | }); |
| 139 | |
| 140 | // <script> |
| 141 | } else if (globalName) { |
| 142 | this[globalName] = mainExports; |
| 143 | } |
| 144 | } |
| 145 | })({"hc0kI":[function(require,module,exports) { |
| 146 | document.addEventListener('DOMContentLoaded', function() { |
| 147 | var download_csv = function download_csv(fileName, data) { |
| 148 | var blob = new Blob([ |
| 149 | data |
| 150 | ], { |
| 151 | type: 'text/csv' |
| 152 | }); |
| 153 | var element = window.document.createElement('a'); |
| 154 | element.href = window.URL.createObjectURL(blob); |
| 155 | element.download = fileName; |
| 156 | document.body.appendChild(element); |
| 157 | element.click(); |
| 158 | document.body.removeChild(element); |
| 159 | }; |
| 160 | document.getElementById("iawp-export-views").addEventListener('click', function(e) { |
| 161 | var button = e.target; |
| 162 | button.textContent = "Exporting views..."; |
| 163 | button.setAttribute('disabled', 'disabled'); |
| 164 | var data = { |
| 165 | 'action': 'iawp_export_views', |
| 166 | 'export_views_nonce': IAWP_AJAX.export_views_nonce |
| 167 | }; |
| 168 | jQuery.post(ajaxurl, data, function(response) { |
| 169 | download_csv('exported-views.csv', response); |
| 170 | button.textContent = 'Export views'; |
| 171 | button.removeAttribute('disabled'); |
| 172 | }); |
| 173 | }); |
| 174 | document.getElementById("iawp-export-referrers").addEventListener('click', function(e) { |
| 175 | var button = e.target; |
| 176 | button.textContent = "Exporting referrers..."; |
| 177 | button.setAttribute('disabled', 'disabled'); |
| 178 | var data = { |
| 179 | 'action': 'iawp_export_referrers', |
| 180 | 'export_referrers_nonce': IAWP_AJAX.export_referrers_nonce |
| 181 | }; |
| 182 | jQuery.post(ajaxurl, data, function(response) { |
| 183 | download_csv('exported-referrers.csv', response); |
| 184 | button.textContent = 'Export referrers'; |
| 185 | button.removeAttribute('disabled'); |
| 186 | }); |
| 187 | }); |
| 188 | }); |
| 189 | |
| 190 | },{}]},["hc0kI"], "hc0kI", "parcelRequirec571") |
| 191 | |
| 192 | //# sourceMappingURL=settings.js.map |
| 193 |