2026 lines
69 KiB
JavaScript
2026 lines
69 KiB
JavaScript
/******/ (function(modules) { // webpackBootstrap
|
|
/******/ function hotDisposeChunk(chunkId) {
|
|
/******/ delete installedChunks[chunkId];
|
|
/******/ }
|
|
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
|
|
/******/ this["webpackHotUpdate"] =
|
|
/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
|
|
/******/ hotAddUpdateChunk(chunkId, moreModules);
|
|
/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
|
|
/******/ } ;
|
|
/******/
|
|
/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
|
|
/******/ var head = document.getElementsByTagName("head")[0];
|
|
/******/ var script = document.createElement("script");
|
|
/******/ script.type = "text/javascript";
|
|
/******/ script.charset = "utf-8";
|
|
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + hotCurrentHash + ".hot-update.js";
|
|
/******/ head.appendChild(script);
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotDownloadManifest() { // eslint-disable-line no-unused-vars
|
|
/******/ return new Promise(function(resolve, reject) {
|
|
/******/ if(typeof XMLHttpRequest === "undefined")
|
|
/******/ return reject(new Error("No browser support"));
|
|
/******/ try {
|
|
/******/ var request = new XMLHttpRequest();
|
|
/******/ var requestPath = __webpack_require__.p + "" + hotCurrentHash + ".hot-update.json";
|
|
/******/ request.open("GET", requestPath, true);
|
|
/******/ request.timeout = 10000;
|
|
/******/ request.send(null);
|
|
/******/ } catch(err) {
|
|
/******/ return reject(err);
|
|
/******/ }
|
|
/******/ request.onreadystatechange = function() {
|
|
/******/ if(request.readyState !== 4) return;
|
|
/******/ if(request.status === 0) {
|
|
/******/ // timeout
|
|
/******/ reject(new Error("Manifest request to " + requestPath + " timed out."));
|
|
/******/ } else if(request.status === 404) {
|
|
/******/ // no update available
|
|
/******/ resolve();
|
|
/******/ } else if(request.status !== 200 && request.status !== 304) {
|
|
/******/ // other failure
|
|
/******/ reject(new Error("Manifest request to " + requestPath + " failed."));
|
|
/******/ } else {
|
|
/******/ // success
|
|
/******/ try {
|
|
/******/ var update = JSON.parse(request.responseText);
|
|
/******/ } catch(e) {
|
|
/******/ reject(e);
|
|
/******/ return;
|
|
/******/ }
|
|
/******/ resolve(update);
|
|
/******/ }
|
|
/******/ };
|
|
/******/ });
|
|
/******/ }
|
|
/******/
|
|
/******/
|
|
/******/
|
|
/******/ var hotApplyOnUpdate = true;
|
|
/******/ var hotCurrentHash = "30e714dc5134ac0de7e5"; // eslint-disable-line no-unused-vars
|
|
/******/ var hotCurrentModuleData = {};
|
|
/******/ var hotCurrentChildModule; // eslint-disable-line no-unused-vars
|
|
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
|
|
/******/ var hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars
|
|
/******/
|
|
/******/ function hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars
|
|
/******/ var me = installedModules[moduleId];
|
|
/******/ if(!me) return __webpack_require__;
|
|
/******/ var fn = function(request) {
|
|
/******/ if(me.hot.active) {
|
|
/******/ if(installedModules[request]) {
|
|
/******/ if(installedModules[request].parents.indexOf(moduleId) < 0)
|
|
/******/ installedModules[request].parents.push(moduleId);
|
|
/******/ } else {
|
|
/******/ hotCurrentParents = [moduleId];
|
|
/******/ hotCurrentChildModule = request;
|
|
/******/ }
|
|
/******/ if(me.children.indexOf(request) < 0)
|
|
/******/ me.children.push(request);
|
|
/******/ } else {
|
|
/******/ console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId);
|
|
/******/ hotCurrentParents = [];
|
|
/******/ }
|
|
/******/ return __webpack_require__(request);
|
|
/******/ };
|
|
/******/ var ObjectFactory = function ObjectFactory(name) {
|
|
/******/ return {
|
|
/******/ configurable: true,
|
|
/******/ enumerable: true,
|
|
/******/ get: function() {
|
|
/******/ return __webpack_require__[name];
|
|
/******/ },
|
|
/******/ set: function(value) {
|
|
/******/ __webpack_require__[name] = value;
|
|
/******/ }
|
|
/******/ };
|
|
/******/ };
|
|
/******/ for(var name in __webpack_require__) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(__webpack_require__, name) && name !== "e") {
|
|
/******/ Object.defineProperty(fn, name, ObjectFactory(name));
|
|
/******/ }
|
|
/******/ }
|
|
/******/ fn.e = function(chunkId) {
|
|
/******/ if(hotStatus === "ready")
|
|
/******/ hotSetStatus("prepare");
|
|
/******/ hotChunksLoading++;
|
|
/******/ return __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {
|
|
/******/ finishChunkLoading();
|
|
/******/ throw err;
|
|
/******/ });
|
|
/******/
|
|
/******/ function finishChunkLoading() {
|
|
/******/ hotChunksLoading--;
|
|
/******/ if(hotStatus === "prepare") {
|
|
/******/ if(!hotWaitingFilesMap[chunkId]) {
|
|
/******/ hotEnsureUpdateChunk(chunkId);
|
|
/******/ }
|
|
/******/ if(hotChunksLoading === 0 && hotWaitingFiles === 0) {
|
|
/******/ hotUpdateDownloaded();
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/ };
|
|
/******/ return fn;
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars
|
|
/******/ var hot = {
|
|
/******/ // private stuff
|
|
/******/ _acceptedDependencies: {},
|
|
/******/ _declinedDependencies: {},
|
|
/******/ _selfAccepted: false,
|
|
/******/ _selfDeclined: false,
|
|
/******/ _disposeHandlers: [],
|
|
/******/ _main: hotCurrentChildModule !== moduleId,
|
|
/******/
|
|
/******/ // Module API
|
|
/******/ active: true,
|
|
/******/ accept: function(dep, callback) {
|
|
/******/ if(typeof dep === "undefined")
|
|
/******/ hot._selfAccepted = true;
|
|
/******/ else if(typeof dep === "function")
|
|
/******/ hot._selfAccepted = dep;
|
|
/******/ else if(typeof dep === "object")
|
|
/******/ for(var i = 0; i < dep.length; i++)
|
|
/******/ hot._acceptedDependencies[dep[i]] = callback || function() {};
|
|
/******/ else
|
|
/******/ hot._acceptedDependencies[dep] = callback || function() {};
|
|
/******/ },
|
|
/******/ decline: function(dep) {
|
|
/******/ if(typeof dep === "undefined")
|
|
/******/ hot._selfDeclined = true;
|
|
/******/ else if(typeof dep === "object")
|
|
/******/ for(var i = 0; i < dep.length; i++)
|
|
/******/ hot._declinedDependencies[dep[i]] = true;
|
|
/******/ else
|
|
/******/ hot._declinedDependencies[dep] = true;
|
|
/******/ },
|
|
/******/ dispose: function(callback) {
|
|
/******/ hot._disposeHandlers.push(callback);
|
|
/******/ },
|
|
/******/ addDisposeHandler: function(callback) {
|
|
/******/ hot._disposeHandlers.push(callback);
|
|
/******/ },
|
|
/******/ removeDisposeHandler: function(callback) {
|
|
/******/ var idx = hot._disposeHandlers.indexOf(callback);
|
|
/******/ if(idx >= 0) hot._disposeHandlers.splice(idx, 1);
|
|
/******/ },
|
|
/******/
|
|
/******/ // Management API
|
|
/******/ check: hotCheck,
|
|
/******/ apply: hotApply,
|
|
/******/ status: function(l) {
|
|
/******/ if(!l) return hotStatus;
|
|
/******/ hotStatusHandlers.push(l);
|
|
/******/ },
|
|
/******/ addStatusHandler: function(l) {
|
|
/******/ hotStatusHandlers.push(l);
|
|
/******/ },
|
|
/******/ removeStatusHandler: function(l) {
|
|
/******/ var idx = hotStatusHandlers.indexOf(l);
|
|
/******/ if(idx >= 0) hotStatusHandlers.splice(idx, 1);
|
|
/******/ },
|
|
/******/
|
|
/******/ //inherit from previous dispose call
|
|
/******/ data: hotCurrentModuleData[moduleId]
|
|
/******/ };
|
|
/******/ hotCurrentChildModule = undefined;
|
|
/******/ return hot;
|
|
/******/ }
|
|
/******/
|
|
/******/ var hotStatusHandlers = [];
|
|
/******/ var hotStatus = "idle";
|
|
/******/
|
|
/******/ function hotSetStatus(newStatus) {
|
|
/******/ hotStatus = newStatus;
|
|
/******/ for(var i = 0; i < hotStatusHandlers.length; i++)
|
|
/******/ hotStatusHandlers[i].call(null, newStatus);
|
|
/******/ }
|
|
/******/
|
|
/******/ // while downloading
|
|
/******/ var hotWaitingFiles = 0;
|
|
/******/ var hotChunksLoading = 0;
|
|
/******/ var hotWaitingFilesMap = {};
|
|
/******/ var hotRequestedFilesMap = {};
|
|
/******/ var hotAvailableFilesMap = {};
|
|
/******/ var hotDeferred;
|
|
/******/
|
|
/******/ // The update info
|
|
/******/ var hotUpdate, hotUpdateNewHash;
|
|
/******/
|
|
/******/ function toModuleId(id) {
|
|
/******/ var isNumber = (+id) + "" === id;
|
|
/******/ return isNumber ? +id : id;
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotCheck(apply) {
|
|
/******/ if(hotStatus !== "idle") throw new Error("check() is only allowed in idle status");
|
|
/******/ hotApplyOnUpdate = apply;
|
|
/******/ hotSetStatus("check");
|
|
/******/ return hotDownloadManifest().then(function(update) {
|
|
/******/ if(!update) {
|
|
/******/ hotSetStatus("idle");
|
|
/******/ return null;
|
|
/******/ }
|
|
/******/ hotRequestedFilesMap = {};
|
|
/******/ hotWaitingFilesMap = {};
|
|
/******/ hotAvailableFilesMap = update.c;
|
|
/******/ hotUpdateNewHash = update.h;
|
|
/******/
|
|
/******/ hotSetStatus("prepare");
|
|
/******/ var promise = new Promise(function(resolve, reject) {
|
|
/******/ hotDeferred = {
|
|
/******/ resolve: resolve,
|
|
/******/ reject: reject
|
|
/******/ };
|
|
/******/ });
|
|
/******/ hotUpdate = {};
|
|
/******/ var chunkId = 6;
|
|
/******/ { // eslint-disable-line no-lone-blocks
|
|
/******/ /*globals chunkId */
|
|
/******/ hotEnsureUpdateChunk(chunkId);
|
|
/******/ }
|
|
/******/ if(hotStatus === "prepare" && hotChunksLoading === 0 && hotWaitingFiles === 0) {
|
|
/******/ hotUpdateDownloaded();
|
|
/******/ }
|
|
/******/ return promise;
|
|
/******/ });
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars
|
|
/******/ if(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])
|
|
/******/ return;
|
|
/******/ hotRequestedFilesMap[chunkId] = false;
|
|
/******/ for(var moduleId in moreModules) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
|
/******/ hotUpdate[moduleId] = moreModules[moduleId];
|
|
/******/ }
|
|
/******/ }
|
|
/******/ if(--hotWaitingFiles === 0 && hotChunksLoading === 0) {
|
|
/******/ hotUpdateDownloaded();
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotEnsureUpdateChunk(chunkId) {
|
|
/******/ if(!hotAvailableFilesMap[chunkId]) {
|
|
/******/ hotWaitingFilesMap[chunkId] = true;
|
|
/******/ } else {
|
|
/******/ hotRequestedFilesMap[chunkId] = true;
|
|
/******/ hotWaitingFiles++;
|
|
/******/ hotDownloadUpdateChunk(chunkId);
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotUpdateDownloaded() {
|
|
/******/ hotSetStatus("ready");
|
|
/******/ var deferred = hotDeferred;
|
|
/******/ hotDeferred = null;
|
|
/******/ if(!deferred) return;
|
|
/******/ if(hotApplyOnUpdate) {
|
|
/******/ hotApply(hotApplyOnUpdate).then(function(result) {
|
|
/******/ deferred.resolve(result);
|
|
/******/ }, function(err) {
|
|
/******/ deferred.reject(err);
|
|
/******/ });
|
|
/******/ } else {
|
|
/******/ var outdatedModules = [];
|
|
/******/ for(var id in hotUpdate) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {
|
|
/******/ outdatedModules.push(toModuleId(id));
|
|
/******/ }
|
|
/******/ }
|
|
/******/ deferred.resolve(outdatedModules);
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ function hotApply(options) {
|
|
/******/ if(hotStatus !== "ready") throw new Error("apply() is only allowed in ready status");
|
|
/******/ options = options || {};
|
|
/******/
|
|
/******/ var cb;
|
|
/******/ var i;
|
|
/******/ var j;
|
|
/******/ var module;
|
|
/******/ var moduleId;
|
|
/******/
|
|
/******/ function getAffectedStuff(updateModuleId) {
|
|
/******/ var outdatedModules = [updateModuleId];
|
|
/******/ var outdatedDependencies = {};
|
|
/******/
|
|
/******/ var queue = outdatedModules.slice().map(function(id) {
|
|
/******/ return {
|
|
/******/ chain: [id],
|
|
/******/ id: id
|
|
/******/ };
|
|
/******/ });
|
|
/******/ while(queue.length > 0) {
|
|
/******/ var queueItem = queue.pop();
|
|
/******/ var moduleId = queueItem.id;
|
|
/******/ var chain = queueItem.chain;
|
|
/******/ module = installedModules[moduleId];
|
|
/******/ if(!module || module.hot._selfAccepted)
|
|
/******/ continue;
|
|
/******/ if(module.hot._selfDeclined) {
|
|
/******/ return {
|
|
/******/ type: "self-declined",
|
|
/******/ chain: chain,
|
|
/******/ moduleId: moduleId
|
|
/******/ };
|
|
/******/ }
|
|
/******/ if(module.hot._main) {
|
|
/******/ return {
|
|
/******/ type: "unaccepted",
|
|
/******/ chain: chain,
|
|
/******/ moduleId: moduleId
|
|
/******/ };
|
|
/******/ }
|
|
/******/ for(var i = 0; i < module.parents.length; i++) {
|
|
/******/ var parentId = module.parents[i];
|
|
/******/ var parent = installedModules[parentId];
|
|
/******/ if(!parent) continue;
|
|
/******/ if(parent.hot._declinedDependencies[moduleId]) {
|
|
/******/ return {
|
|
/******/ type: "declined",
|
|
/******/ chain: chain.concat([parentId]),
|
|
/******/ moduleId: moduleId,
|
|
/******/ parentId: parentId
|
|
/******/ };
|
|
/******/ }
|
|
/******/ if(outdatedModules.indexOf(parentId) >= 0) continue;
|
|
/******/ if(parent.hot._acceptedDependencies[moduleId]) {
|
|
/******/ if(!outdatedDependencies[parentId])
|
|
/******/ outdatedDependencies[parentId] = [];
|
|
/******/ addAllToSet(outdatedDependencies[parentId], [moduleId]);
|
|
/******/ continue;
|
|
/******/ }
|
|
/******/ delete outdatedDependencies[parentId];
|
|
/******/ outdatedModules.push(parentId);
|
|
/******/ queue.push({
|
|
/******/ chain: chain.concat([parentId]),
|
|
/******/ id: parentId
|
|
/******/ });
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ return {
|
|
/******/ type: "accepted",
|
|
/******/ moduleId: updateModuleId,
|
|
/******/ outdatedModules: outdatedModules,
|
|
/******/ outdatedDependencies: outdatedDependencies
|
|
/******/ };
|
|
/******/ }
|
|
/******/
|
|
/******/ function addAllToSet(a, b) {
|
|
/******/ for(var i = 0; i < b.length; i++) {
|
|
/******/ var item = b[i];
|
|
/******/ if(a.indexOf(item) < 0)
|
|
/******/ a.push(item);
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // at begin all updates modules are outdated
|
|
/******/ // the "outdated" status can propagate to parents if they don't accept the children
|
|
/******/ var outdatedDependencies = {};
|
|
/******/ var outdatedModules = [];
|
|
/******/ var appliedUpdate = {};
|
|
/******/
|
|
/******/ var warnUnexpectedRequire = function warnUnexpectedRequire() {
|
|
/******/ console.warn("[HMR] unexpected require(" + result.moduleId + ") to disposed module");
|
|
/******/ };
|
|
/******/
|
|
/******/ for(var id in hotUpdate) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {
|
|
/******/ moduleId = toModuleId(id);
|
|
/******/ var result;
|
|
/******/ if(hotUpdate[id]) {
|
|
/******/ result = getAffectedStuff(moduleId);
|
|
/******/ } else {
|
|
/******/ result = {
|
|
/******/ type: "disposed",
|
|
/******/ moduleId: id
|
|
/******/ };
|
|
/******/ }
|
|
/******/ var abortError = false;
|
|
/******/ var doApply = false;
|
|
/******/ var doDispose = false;
|
|
/******/ var chainInfo = "";
|
|
/******/ if(result.chain) {
|
|
/******/ chainInfo = "\nUpdate propagation: " + result.chain.join(" -> ");
|
|
/******/ }
|
|
/******/ switch(result.type) {
|
|
/******/ case "self-declined":
|
|
/******/ if(options.onDeclined)
|
|
/******/ options.onDeclined(result);
|
|
/******/ if(!options.ignoreDeclined)
|
|
/******/ abortError = new Error("Aborted because of self decline: " + result.moduleId + chainInfo);
|
|
/******/ break;
|
|
/******/ case "declined":
|
|
/******/ if(options.onDeclined)
|
|
/******/ options.onDeclined(result);
|
|
/******/ if(!options.ignoreDeclined)
|
|
/******/ abortError = new Error("Aborted because of declined dependency: " + result.moduleId + " in " + result.parentId + chainInfo);
|
|
/******/ break;
|
|
/******/ case "unaccepted":
|
|
/******/ if(options.onUnaccepted)
|
|
/******/ options.onUnaccepted(result);
|
|
/******/ if(!options.ignoreUnaccepted)
|
|
/******/ abortError = new Error("Aborted because " + moduleId + " is not accepted" + chainInfo);
|
|
/******/ break;
|
|
/******/ case "accepted":
|
|
/******/ if(options.onAccepted)
|
|
/******/ options.onAccepted(result);
|
|
/******/ doApply = true;
|
|
/******/ break;
|
|
/******/ case "disposed":
|
|
/******/ if(options.onDisposed)
|
|
/******/ options.onDisposed(result);
|
|
/******/ doDispose = true;
|
|
/******/ break;
|
|
/******/ default:
|
|
/******/ throw new Error("Unexception type " + result.type);
|
|
/******/ }
|
|
/******/ if(abortError) {
|
|
/******/ hotSetStatus("abort");
|
|
/******/ return Promise.reject(abortError);
|
|
/******/ }
|
|
/******/ if(doApply) {
|
|
/******/ appliedUpdate[moduleId] = hotUpdate[moduleId];
|
|
/******/ addAllToSet(outdatedModules, result.outdatedModules);
|
|
/******/ for(moduleId in result.outdatedDependencies) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(result.outdatedDependencies, moduleId)) {
|
|
/******/ if(!outdatedDependencies[moduleId])
|
|
/******/ outdatedDependencies[moduleId] = [];
|
|
/******/ addAllToSet(outdatedDependencies[moduleId], result.outdatedDependencies[moduleId]);
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/ if(doDispose) {
|
|
/******/ addAllToSet(outdatedModules, [result.moduleId]);
|
|
/******/ appliedUpdate[moduleId] = warnUnexpectedRequire;
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // Store self accepted outdated modules to require them later by the module system
|
|
/******/ var outdatedSelfAcceptedModules = [];
|
|
/******/ for(i = 0; i < outdatedModules.length; i++) {
|
|
/******/ moduleId = outdatedModules[i];
|
|
/******/ if(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)
|
|
/******/ outdatedSelfAcceptedModules.push({
|
|
/******/ module: moduleId,
|
|
/******/ errorHandler: installedModules[moduleId].hot._selfAccepted
|
|
/******/ });
|
|
/******/ }
|
|
/******/
|
|
/******/ // Now in "dispose" phase
|
|
/******/ hotSetStatus("dispose");
|
|
/******/ Object.keys(hotAvailableFilesMap).forEach(function(chunkId) {
|
|
/******/ if(hotAvailableFilesMap[chunkId] === false) {
|
|
/******/ hotDisposeChunk(chunkId);
|
|
/******/ }
|
|
/******/ });
|
|
/******/
|
|
/******/ var idx;
|
|
/******/ var queue = outdatedModules.slice();
|
|
/******/ while(queue.length > 0) {
|
|
/******/ moduleId = queue.pop();
|
|
/******/ module = installedModules[moduleId];
|
|
/******/ if(!module) continue;
|
|
/******/
|
|
/******/ var data = {};
|
|
/******/
|
|
/******/ // Call dispose handlers
|
|
/******/ var disposeHandlers = module.hot._disposeHandlers;
|
|
/******/ for(j = 0; j < disposeHandlers.length; j++) {
|
|
/******/ cb = disposeHandlers[j];
|
|
/******/ cb(data);
|
|
/******/ }
|
|
/******/ hotCurrentModuleData[moduleId] = data;
|
|
/******/
|
|
/******/ // disable module (this disables requires from this module)
|
|
/******/ module.hot.active = false;
|
|
/******/
|
|
/******/ // remove module from cache
|
|
/******/ delete installedModules[moduleId];
|
|
/******/
|
|
/******/ // remove "parents" references from all children
|
|
/******/ for(j = 0; j < module.children.length; j++) {
|
|
/******/ var child = installedModules[module.children[j]];
|
|
/******/ if(!child) continue;
|
|
/******/ idx = child.parents.indexOf(moduleId);
|
|
/******/ if(idx >= 0) {
|
|
/******/ child.parents.splice(idx, 1);
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // remove outdated dependency from module children
|
|
/******/ var dependency;
|
|
/******/ var moduleOutdatedDependencies;
|
|
/******/ for(moduleId in outdatedDependencies) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
|
|
/******/ module = installedModules[moduleId];
|
|
/******/ if(module) {
|
|
/******/ moduleOutdatedDependencies = outdatedDependencies[moduleId];
|
|
/******/ for(j = 0; j < moduleOutdatedDependencies.length; j++) {
|
|
/******/ dependency = moduleOutdatedDependencies[j];
|
|
/******/ idx = module.children.indexOf(dependency);
|
|
/******/ if(idx >= 0) module.children.splice(idx, 1);
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // Not in "apply" phase
|
|
/******/ hotSetStatus("apply");
|
|
/******/
|
|
/******/ hotCurrentHash = hotUpdateNewHash;
|
|
/******/
|
|
/******/ // insert new code
|
|
/******/ for(moduleId in appliedUpdate) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {
|
|
/******/ modules[moduleId] = appliedUpdate[moduleId];
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // call accept handlers
|
|
/******/ var error = null;
|
|
/******/ for(moduleId in outdatedDependencies) {
|
|
/******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
|
|
/******/ module = installedModules[moduleId];
|
|
/******/ moduleOutdatedDependencies = outdatedDependencies[moduleId];
|
|
/******/ var callbacks = [];
|
|
/******/ for(i = 0; i < moduleOutdatedDependencies.length; i++) {
|
|
/******/ dependency = moduleOutdatedDependencies[i];
|
|
/******/ cb = module.hot._acceptedDependencies[dependency];
|
|
/******/ if(callbacks.indexOf(cb) >= 0) continue;
|
|
/******/ callbacks.push(cb);
|
|
/******/ }
|
|
/******/ for(i = 0; i < callbacks.length; i++) {
|
|
/******/ cb = callbacks[i];
|
|
/******/ try {
|
|
/******/ cb(moduleOutdatedDependencies);
|
|
/******/ } catch(err) {
|
|
/******/ if(options.onErrored) {
|
|
/******/ options.onErrored({
|
|
/******/ type: "accept-errored",
|
|
/******/ moduleId: moduleId,
|
|
/******/ dependencyId: moduleOutdatedDependencies[i],
|
|
/******/ error: err
|
|
/******/ });
|
|
/******/ }
|
|
/******/ if(!options.ignoreErrored) {
|
|
/******/ if(!error)
|
|
/******/ error = err;
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // Load self accepted modules
|
|
/******/ for(i = 0; i < outdatedSelfAcceptedModules.length; i++) {
|
|
/******/ var item = outdatedSelfAcceptedModules[i];
|
|
/******/ moduleId = item.module;
|
|
/******/ hotCurrentParents = [moduleId];
|
|
/******/ try {
|
|
/******/ __webpack_require__(moduleId);
|
|
/******/ } catch(err) {
|
|
/******/ if(typeof item.errorHandler === "function") {
|
|
/******/ try {
|
|
/******/ item.errorHandler(err);
|
|
/******/ } catch(err2) {
|
|
/******/ if(options.onErrored) {
|
|
/******/ options.onErrored({
|
|
/******/ type: "self-accept-error-handler-errored",
|
|
/******/ moduleId: moduleId,
|
|
/******/ error: err2,
|
|
/******/ orginalError: err
|
|
/******/ });
|
|
/******/ }
|
|
/******/ if(!options.ignoreErrored) {
|
|
/******/ if(!error)
|
|
/******/ error = err2;
|
|
/******/ }
|
|
/******/ if(!error)
|
|
/******/ error = err;
|
|
/******/ }
|
|
/******/ } else {
|
|
/******/ if(options.onErrored) {
|
|
/******/ options.onErrored({
|
|
/******/ type: "self-accept-errored",
|
|
/******/ moduleId: moduleId,
|
|
/******/ error: err
|
|
/******/ });
|
|
/******/ }
|
|
/******/ if(!options.ignoreErrored) {
|
|
/******/ if(!error)
|
|
/******/ error = err;
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/ }
|
|
/******/
|
|
/******/ // handle errors in accept handlers and self accepted module load
|
|
/******/ if(error) {
|
|
/******/ hotSetStatus("fail");
|
|
/******/ return Promise.reject(error);
|
|
/******/ }
|
|
/******/
|
|
/******/ hotSetStatus("idle");
|
|
/******/ return new Promise(function(resolve) {
|
|
/******/ resolve(outdatedModules);
|
|
/******/ });
|
|
/******/ }
|
|
/******/
|
|
/******/ // The module cache
|
|
/******/ var installedModules = {};
|
|
/******/
|
|
/******/ // The require function
|
|
/******/ function __webpack_require__(moduleId) {
|
|
/******/
|
|
/******/ // Check if module is in cache
|
|
/******/ if(installedModules[moduleId]) {
|
|
/******/ return installedModules[moduleId].exports;
|
|
/******/ }
|
|
/******/ // Create a new module (and put it into the cache)
|
|
/******/ var module = installedModules[moduleId] = {
|
|
/******/ i: moduleId,
|
|
/******/ l: false,
|
|
/******/ exports: {},
|
|
/******/ hot: hotCreateModule(moduleId),
|
|
/******/ parents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),
|
|
/******/ children: []
|
|
/******/ };
|
|
/******/
|
|
/******/ // Execute the module function
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
|
|
/******/
|
|
/******/ // Flag the module as loaded
|
|
/******/ module.l = true;
|
|
/******/
|
|
/******/ // Return the exports of the module
|
|
/******/ return module.exports;
|
|
/******/ }
|
|
/******/
|
|
/******/
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
/******/ __webpack_require__.m = modules;
|
|
/******/
|
|
/******/ // expose the module cache
|
|
/******/ __webpack_require__.c = installedModules;
|
|
/******/
|
|
/******/ // identity function for calling harmony imports with the correct context
|
|
/******/ __webpack_require__.i = function(value) { return value; };
|
|
/******/
|
|
/******/ // define getter function for harmony exports
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
/******/ Object.defineProperty(exports, name, {
|
|
/******/ configurable: false,
|
|
/******/ enumerable: true,
|
|
/******/ get: getter
|
|
/******/ });
|
|
/******/ }
|
|
/******/ };
|
|
/******/
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
/******/ __webpack_require__.n = function(module) {
|
|
/******/ var getter = module && module.__esModule ?
|
|
/******/ function getDefault() { return module['default']; } :
|
|
/******/ function getModuleExports() { return module; };
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
/******/ return getter;
|
|
/******/ };
|
|
/******/
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
/******/
|
|
/******/ // __webpack_public_path__
|
|
/******/ __webpack_require__.p = "";
|
|
/******/
|
|
/******/ // __webpack_hash__
|
|
/******/ __webpack_require__.h = function() { return hotCurrentHash; };
|
|
/******/
|
|
/******/ // Load entry module and return exports
|
|
/******/ return hotCreateRequire(516)(__webpack_require__.s = 516);
|
|
/******/ })
|
|
/************************************************************************/
|
|
/******/ ({
|
|
|
|
/***/ 10:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(global) {/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
/**
|
|
* Send a Post Request to reset search Action.
|
|
*/
|
|
|
|
var $ = global.$;
|
|
|
|
var init = function resetSearch(url, redirectUrl) {
|
|
$.post(url).then(function () {
|
|
return window.location.assign(redirectUrl);
|
|
});
|
|
};
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (init);
|
|
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(2)))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 11:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class BulkActionSelectCheckboxExtension
|
|
*/
|
|
|
|
var BulkActionCheckboxExtension = function () {
|
|
function BulkActionCheckboxExtension() {
|
|
_classCallCheck(this, BulkActionCheckboxExtension);
|
|
}
|
|
|
|
_createClass(BulkActionCheckboxExtension, [{
|
|
key: 'extend',
|
|
|
|
/**
|
|
* Extend grid with bulk action checkboxes handling functionality
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
this._handleBulkActionCheckboxSelect(grid);
|
|
this._handleBulkActionSelectAllCheckbox(grid);
|
|
}
|
|
|
|
/**
|
|
* Handles "Select all" button in the grid
|
|
*
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_handleBulkActionSelectAllCheckbox',
|
|
value: function _handleBulkActionSelectAllCheckbox(grid) {
|
|
var _this = this;
|
|
|
|
grid.getContainer().on('change', '.js-bulk-action-select-all', function (e) {
|
|
var $checkbox = $(e.currentTarget);
|
|
|
|
var isChecked = $checkbox.is(':checked');
|
|
if (isChecked) {
|
|
_this._enableBulkActionsBtn(grid);
|
|
} else {
|
|
_this._disableBulkActionsBtn(grid);
|
|
}
|
|
|
|
grid.getContainer().find('.js-bulk-action-checkbox').prop('checked', isChecked);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Handles each bulk action checkbox select in the grid
|
|
*
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_handleBulkActionCheckboxSelect',
|
|
value: function _handleBulkActionCheckboxSelect(grid) {
|
|
var _this2 = this;
|
|
|
|
grid.getContainer().on('change', '.js-bulk-action-checkbox', function () {
|
|
var checkedRowsCount = grid.getContainer().find('.js-bulk-action-checkbox:checked').length;
|
|
|
|
if (checkedRowsCount > 0) {
|
|
_this2._enableBulkActionsBtn(grid);
|
|
} else {
|
|
_this2._disableBulkActionsBtn(grid);
|
|
}
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Enable bulk actions button
|
|
*
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_enableBulkActionsBtn',
|
|
value: function _enableBulkActionsBtn(grid) {
|
|
grid.getContainer().find('.js-bulk-actions-btn').prop('disabled', false);
|
|
}
|
|
|
|
/**
|
|
* Disable bulk actions button
|
|
*
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_disableBulkActionsBtn',
|
|
value: function _disableBulkActionsBtn(grid) {
|
|
grid.getContainer().find('.js-bulk-actions-btn').prop('disabled', true);
|
|
}
|
|
}]);
|
|
|
|
return BulkActionCheckboxExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (BulkActionCheckboxExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 12:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class ExportToSqlManagerExtension extends grid with exporting query to SQL Manager
|
|
*/
|
|
|
|
var ExportToSqlManagerExtension = function () {
|
|
function ExportToSqlManagerExtension() {
|
|
_classCallCheck(this, ExportToSqlManagerExtension);
|
|
}
|
|
|
|
_createClass(ExportToSqlManagerExtension, [{
|
|
key: 'extend',
|
|
|
|
/**
|
|
* Extend grid
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
var _this = this;
|
|
|
|
grid.getHeaderContainer().on('click', '.js-common_show_query-grid-action', function () {
|
|
return _this._onShowSqlQueryClick(grid);
|
|
});
|
|
grid.getHeaderContainer().on('click', '.js-common_export_sql_manager-grid-action', function () {
|
|
return _this._onExportSqlManagerClick(grid);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Invoked when clicking on the "show sql query" toolbar button
|
|
*
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_onShowSqlQueryClick',
|
|
value: function _onShowSqlQueryClick(grid) {
|
|
var $sqlManagerForm = $('#' + grid.getId() + '_common_show_query_modal_form');
|
|
this._fillExportForm($sqlManagerForm, grid);
|
|
|
|
var $modal = $('#' + grid.getId() + '_grid_common_show_query_modal');
|
|
$modal.modal('show');
|
|
|
|
$modal.on('click', '.btn-sql-submit', function () {
|
|
return $sqlManagerForm.submit();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Invoked when clicking on the "export to the sql query" toolbar button
|
|
*
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_onExportSqlManagerClick',
|
|
value: function _onExportSqlManagerClick(grid) {
|
|
var $sqlManagerForm = $('#' + grid.getId() + '_common_show_query_modal_form');
|
|
|
|
this._fillExportForm($sqlManagerForm, grid);
|
|
|
|
$sqlManagerForm.submit();
|
|
}
|
|
|
|
/**
|
|
* Fill export form with SQL and it's name
|
|
*
|
|
* @param {jQuery} $sqlManagerForm
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_fillExportForm',
|
|
value: function _fillExportForm($sqlManagerForm, grid) {
|
|
var query = grid.getContainer().find('.js-grid-table').data('query');
|
|
|
|
$sqlManagerForm.find('textarea[name="sql"]').val(query);
|
|
$sqlManagerForm.find('input[name="name"]').val(this._getNameFromBreadcrumb());
|
|
}
|
|
|
|
/**
|
|
* Get export name from page's breadcrumb
|
|
*
|
|
* @return {String}
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_getNameFromBreadcrumb',
|
|
value: function _getNameFromBreadcrumb() {
|
|
var $breadcrumbs = $('.header-toolbar').find('.breadcrumb-item');
|
|
var name = '';
|
|
|
|
$breadcrumbs.each(function (i, item) {
|
|
var $breadcrumb = $(item);
|
|
|
|
var breadcrumbTitle = 0 < $breadcrumb.find('a').length ? $breadcrumb.find('a').text() : $breadcrumb.text();
|
|
|
|
if (0 < name.length) {
|
|
name = name.concat(' > ');
|
|
}
|
|
|
|
name = name.concat(breadcrumbTitle);
|
|
});
|
|
|
|
return name;
|
|
}
|
|
}]);
|
|
|
|
return ExportToSqlManagerExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (ExportToSqlManagerExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 13:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__app_utils_reset_search__ = __webpack_require__(10);
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class FiltersResetExtension extends grid with filters resetting
|
|
*/
|
|
|
|
var FiltersResetExtension = function () {
|
|
function FiltersResetExtension() {
|
|
_classCallCheck(this, FiltersResetExtension);
|
|
}
|
|
|
|
_createClass(FiltersResetExtension, [{
|
|
key: 'extend',
|
|
|
|
|
|
/**
|
|
* Extend grid
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
grid.getContainer().on('click', '.js-reset-search', function (event) {
|
|
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__app_utils_reset_search__["a" /* default */])($(event.currentTarget).data('url'), $(event.currentTarget).data('redirect'));
|
|
});
|
|
}
|
|
}]);
|
|
|
|
return FiltersResetExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (FiltersResetExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 14:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
/**
|
|
* Class ReloadListExtension extends grid with "List reload" action
|
|
*/
|
|
var ReloadListExtension = function () {
|
|
function ReloadListExtension() {
|
|
_classCallCheck(this, ReloadListExtension);
|
|
}
|
|
|
|
_createClass(ReloadListExtension, [{
|
|
key: 'extend',
|
|
|
|
/**
|
|
* Extend grid
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
grid.getHeaderContainer().on('click', '.js-common_refresh_list-grid-action', function () {
|
|
location.reload();
|
|
});
|
|
}
|
|
}]);
|
|
|
|
return ReloadListExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (ReloadListExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 15:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__app_utils_table_sorting__ = __webpack_require__(7);
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
* Class ReloadListExtension extends grid with "List reload" action
|
|
*/
|
|
|
|
var SortingExtension = function () {
|
|
function SortingExtension() {
|
|
_classCallCheck(this, SortingExtension);
|
|
}
|
|
|
|
_createClass(SortingExtension, [{
|
|
key: 'extend',
|
|
|
|
/**
|
|
* Extend grid
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
var $sortableTable = grid.getContainer().find('table.table');
|
|
|
|
new __WEBPACK_IMPORTED_MODULE_0__app_utils_table_sorting__["a" /* default */]($sortableTable).attach();
|
|
}
|
|
}]);
|
|
|
|
return SortingExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (SortingExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 16:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Handles submit of grid actions
|
|
*/
|
|
|
|
var SubmitBulkActionExtension = function () {
|
|
function SubmitBulkActionExtension() {
|
|
var _this = this;
|
|
|
|
_classCallCheck(this, SubmitBulkActionExtension);
|
|
|
|
return {
|
|
extend: function extend(grid) {
|
|
return _this.extend(grid);
|
|
}
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Extend grid with bulk action submitting
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
|
|
|
|
_createClass(SubmitBulkActionExtension, [{
|
|
key: 'extend',
|
|
value: function extend(grid) {
|
|
var _this2 = this;
|
|
|
|
grid.getContainer().on('click', '.js-bulk-action-submit-btn', function (event) {
|
|
_this2.submit(event, grid);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Handle bulk action submitting
|
|
*
|
|
* @param {Event} event
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: 'submit',
|
|
value: function submit(event, grid) {
|
|
var $submitBtn = $(event.currentTarget);
|
|
var confirmMessage = $submitBtn.data('confirm-message');
|
|
|
|
if (typeof confirmMessage !== "undefined" && 0 < confirmMessage.length && !confirm(confirmMessage)) {
|
|
return;
|
|
}
|
|
|
|
var $form = $('#' + grid.getId() + '_filter_form');
|
|
|
|
$form.attr('action', $submitBtn.data('form-url'));
|
|
$form.attr('method', $submitBtn.data('form-method'));
|
|
$form.submit();
|
|
}
|
|
}]);
|
|
|
|
return SubmitBulkActionExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (SubmitBulkActionExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 18:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class LinkRowActionExtension handles link row actions
|
|
*/
|
|
|
|
var LinkRowActionExtension = function () {
|
|
function LinkRowActionExtension() {
|
|
_classCallCheck(this, LinkRowActionExtension);
|
|
}
|
|
|
|
_createClass(LinkRowActionExtension, [{
|
|
key: 'extend',
|
|
|
|
/**
|
|
* Extend grid
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
grid.getContainer().on('click', '.js-link-row-action', function (event) {
|
|
var confirmMessage = $(event.currentTarget).data('confirm-message');
|
|
|
|
if (confirmMessage.length && !confirm(confirmMessage)) {
|
|
event.preventDefault();
|
|
}
|
|
});
|
|
}
|
|
}]);
|
|
|
|
return LinkRowActionExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (LinkRowActionExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 2:
|
|
/***/ (function(module, exports) {
|
|
|
|
var g;
|
|
|
|
// This works in non-strict mode
|
|
g = (function() {
|
|
return this;
|
|
})();
|
|
|
|
try {
|
|
// This works if eval is allowed (see CSP)
|
|
g = g || Function("return this")() || (1,eval)("this");
|
|
} catch(e) {
|
|
// This works if the window reference is available
|
|
if(typeof window === "object")
|
|
g = window;
|
|
}
|
|
|
|
// g can still be undefined, but nothing to do about it...
|
|
// We return undefined, instead of nothing here, so it's
|
|
// easier to handle this case. if(!global) { ...}
|
|
|
|
module.exports = g;
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 22:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class SubmitRowActionExtension handles submitting of row action
|
|
*/
|
|
|
|
var SubmitRowActionExtension = function () {
|
|
function SubmitRowActionExtension() {
|
|
_classCallCheck(this, SubmitRowActionExtension);
|
|
}
|
|
|
|
_createClass(SubmitRowActionExtension, [{
|
|
key: 'extend',
|
|
|
|
/**
|
|
* Extend grid
|
|
*
|
|
* @param {Grid} grid
|
|
*/
|
|
value: function extend(grid) {
|
|
grid.getContainer().on('click', '.js-submit-row-action', function (event) {
|
|
event.preventDefault();
|
|
|
|
var $button = $(event.currentTarget);
|
|
var confirmMessage = $button.data('confirm-message');
|
|
|
|
if (confirmMessage.length && !confirm(confirmMessage)) {
|
|
return;
|
|
}
|
|
|
|
var method = $button.data('method');
|
|
var isGetOrPostMethod = ['GET', 'POST'].includes(method);
|
|
|
|
var $form = $('<form>', {
|
|
'action': $button.data('url'),
|
|
'method': isGetOrPostMethod ? method : 'POST'
|
|
}).appendTo('body');
|
|
|
|
if (!isGetOrPostMethod) {
|
|
$form.append($('<input>', {
|
|
'type': '_hidden',
|
|
'name': '_method',
|
|
'value': method
|
|
}));
|
|
}
|
|
|
|
$form.submit();
|
|
});
|
|
}
|
|
}]);
|
|
|
|
return SubmitRowActionExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (SubmitRowActionExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 24:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class SubmitGridActionExtension handles grid action submits
|
|
*/
|
|
|
|
var SubmitGridActionExtension = function () {
|
|
function SubmitGridActionExtension() {
|
|
var _this = this;
|
|
|
|
_classCallCheck(this, SubmitGridActionExtension);
|
|
|
|
return {
|
|
extend: function extend(grid) {
|
|
return _this.extend(grid);
|
|
}
|
|
};
|
|
}
|
|
|
|
_createClass(SubmitGridActionExtension, [{
|
|
key: 'extend',
|
|
value: function extend(grid) {
|
|
var _this2 = this;
|
|
|
|
grid.getContainer().on('click', '.js-grid-action-submit-btn', function (event) {
|
|
_this2.handleSubmit(event, grid);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Handle grid action submit.
|
|
* It uses grid form to submit actions.
|
|
*
|
|
* @param {Event} event
|
|
* @param {Grid} grid
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: 'handleSubmit',
|
|
value: function handleSubmit(event, grid) {
|
|
var $submitBtn = $(event.currentTarget);
|
|
var confirmMessage = $submitBtn.data('confirm-message');
|
|
|
|
if (typeof confirmMessage !== "undefined" && 0 < confirmMessage.length && !confirm(confirmMessage)) {
|
|
return;
|
|
}
|
|
|
|
var $form = $('#' + grid.getId() + '_filter_form');
|
|
|
|
$form.attr('action', $submitBtn.data('url'));
|
|
$form.attr('method', $submitBtn.data('method'));
|
|
$form.find('input[name="' + grid.getId() + '[_token]"]').val($submitBtn.data('csrf'));
|
|
$form.submit();
|
|
}
|
|
}]);
|
|
|
|
return SubmitGridActionExtension;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (SubmitGridActionExtension);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 241:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ContactsPage__ = __webpack_require__(308);
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
|
|
|
|
var $ = window.$;
|
|
|
|
$(function () {
|
|
new __WEBPACK_IMPORTED_MODULE_0__ContactsPage__["a" /* default */]();
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ 308:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_grid_grid__ = __webpack_require__(8);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_grid_extension_reload_list_extension__ = __webpack_require__(14);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_grid_extension_export_to_sql_manager_extension__ = __webpack_require__(12);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_grid_extension_filters_reset_extension__ = __webpack_require__(13);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_grid_extension_sorting_extension__ = __webpack_require__(15);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_grid_extension_link_row_action_extension__ = __webpack_require__(18);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_grid_extension_submit_grid_action_extension__ = __webpack_require__(24);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_grid_extension_submit_bulk_action_extension__ = __webpack_require__(16);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_grid_extension_bulk_action_checkbox_extension__ = __webpack_require__(11);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_grid_extension_action_row_submit_row_action_extension__ = __webpack_require__(22);
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Responsible for actions in Contacts listing page.
|
|
*/
|
|
|
|
var ContactsPage = function ContactsPage() {
|
|
_classCallCheck(this, ContactsPage);
|
|
|
|
var contactGrid = new __WEBPACK_IMPORTED_MODULE_0__components_grid_grid__["a" /* default */]('contact');
|
|
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_1__components_grid_extension_reload_list_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_2__components_grid_extension_export_to_sql_manager_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_3__components_grid_extension_filters_reset_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_4__components_grid_extension_sorting_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_5__components_grid_extension_link_row_action_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_6__components_grid_extension_submit_grid_action_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_7__components_grid_extension_submit_bulk_action_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_8__components_grid_extension_bulk_action_checkbox_extension__["a" /* default */]());
|
|
contactGrid.addExtension(new __WEBPACK_IMPORTED_MODULE_9__components_grid_extension_action_row_submit_row_action_extension__["a" /* default */]());
|
|
};
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (ContactsPage);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 516:
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(241);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 7:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* WEBPACK VAR INJECTION */(function(global) {var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2017 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = global.$;
|
|
|
|
/**
|
|
* Makes a table sortable by columns.
|
|
* This forces a page reload with more query parameters.
|
|
*/
|
|
|
|
var TableSorting = function () {
|
|
|
|
/**
|
|
* @param {jQuery} table
|
|
*/
|
|
function TableSorting(table) {
|
|
_classCallCheck(this, TableSorting);
|
|
|
|
this.selector = '.ps-sortable-column';
|
|
this.columns = $(table).find(this.selector);
|
|
}
|
|
|
|
/**
|
|
* Attaches the listeners
|
|
*/
|
|
|
|
|
|
_createClass(TableSorting, [{
|
|
key: 'attach',
|
|
value: function attach() {
|
|
var _this = this;
|
|
|
|
this.columns.on('click', function (e) {
|
|
var $column = $(e.delegateTarget);
|
|
_this._sortByColumn($column, _this._getToggledSortDirection($column));
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Sort using a column name
|
|
* @param {string} columnName
|
|
* @param {string} direction "asc" or "desc"
|
|
*/
|
|
|
|
}, {
|
|
key: 'sortBy',
|
|
value: function sortBy(columnName, direction) {
|
|
var $column = this.columns.is('[data-sort-col-name="' + columnName + '"]');
|
|
if (!$column) {
|
|
throw new Error('Cannot sort by "' + columnName + '": invalid column');
|
|
}
|
|
|
|
this._sortByColumn($column, direction);
|
|
}
|
|
|
|
/**
|
|
* Sort using a column element
|
|
* @param {jQuery} column
|
|
* @param {string} direction "asc" or "desc"
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_sortByColumn',
|
|
value: function _sortByColumn(column, direction) {
|
|
window.location = this._getUrl(column.data('sortColName'), direction === 'desc' ? 'desc' : 'asc');
|
|
}
|
|
|
|
/**
|
|
* Returns the inverted direction to sort according to the column's current one
|
|
* @param {jQuery} column
|
|
* @return {string}
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_getToggledSortDirection',
|
|
value: function _getToggledSortDirection(column) {
|
|
return column.data('sortDirection') === 'asc' ? 'desc' : 'asc';
|
|
}
|
|
|
|
/**
|
|
* Returns the url for the sorted table
|
|
* @param {string} colName
|
|
* @param {string} direction
|
|
* @return {string}
|
|
* @private
|
|
*/
|
|
|
|
}, {
|
|
key: '_getUrl',
|
|
value: function _getUrl(colName, direction) {
|
|
var url = new URL(window.location.href);
|
|
var params = url.searchParams;
|
|
|
|
params.set('orderBy', colName);
|
|
params.set('sortOrder', direction);
|
|
|
|
return url.toString();
|
|
}
|
|
}]);
|
|
|
|
return TableSorting;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (TableSorting);
|
|
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(2)))
|
|
|
|
/***/ }),
|
|
|
|
/***/ 8:
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
/**
|
|
* 2007-2018 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2018 PrestaShop SA
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
var $ = window.$;
|
|
|
|
/**
|
|
* Class is responsible for handling Grid events
|
|
*/
|
|
|
|
var Grid = function () {
|
|
/**
|
|
* Grid id
|
|
*
|
|
* @param {string} id
|
|
*/
|
|
function Grid(id) {
|
|
_classCallCheck(this, Grid);
|
|
|
|
this.id = id;
|
|
this.$container = $('#' + this.id + '_grid');
|
|
}
|
|
|
|
/**
|
|
* Get grid id
|
|
*
|
|
* @returns {string}
|
|
*/
|
|
|
|
|
|
_createClass(Grid, [{
|
|
key: 'getId',
|
|
value: function getId() {
|
|
return this.id;
|
|
}
|
|
|
|
/**
|
|
* Get grid container
|
|
*
|
|
* @returns {jQuery}
|
|
*/
|
|
|
|
}, {
|
|
key: 'getContainer',
|
|
value: function getContainer() {
|
|
return this.$container;
|
|
}
|
|
|
|
/**
|
|
* Get grid header container
|
|
*
|
|
* @returns {jQuery}
|
|
*/
|
|
|
|
}, {
|
|
key: 'getHeaderContainer',
|
|
value: function getHeaderContainer() {
|
|
return this.$container.closest('.js-grid-panel').find('.js-grid-header');
|
|
}
|
|
|
|
/**
|
|
* Extend grid with external extensions
|
|
*
|
|
* @param {object} extension
|
|
*/
|
|
|
|
}, {
|
|
key: 'addExtension',
|
|
value: function addExtension(extension) {
|
|
extension.extend(this);
|
|
}
|
|
}]);
|
|
|
|
return Grid;
|
|
}();
|
|
|
|
/* harmony default export */ __webpack_exports__["a"] = (Grid);
|
|
|
|
/***/ })
|
|
|
|
/******/ }); |