Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/dist
File: nux.js
this["wp"] = this["wp"] || {}; this["wp"]["nux"] =
[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 = "51Wn");
[84] Fix | Delete
/******/ })
[85] Fix | Delete
/************************************************************************/
[86] Fix | Delete
/******/ ({
[87] Fix | Delete
[88] Fix | Delete
/***/ "1ZqX":
[89] Fix | Delete
/***/ (function(module, exports) {
[90] Fix | Delete
[91] Fix | Delete
(function() { module.exports = window["wp"]["data"]; }());
[92] Fix | Delete
[93] Fix | Delete
/***/ }),
[94] Fix | Delete
[95] Fix | Delete
/***/ "25BE":
[96] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[97] Fix | Delete
[98] Fix | Delete
"use strict";
[99] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
[100] Fix | Delete
function _iterableToArray(iter) {
[101] Fix | Delete
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
/***/ }),
[105] Fix | Delete
[106] Fix | Delete
/***/ "51Wn":
[107] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[108] Fix | Delete
[109] Fix | Delete
"use strict";
[110] Fix | Delete
// ESM COMPAT FLAG
[111] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[112] Fix | Delete
[113] Fix | Delete
// EXPORTS
[114] Fix | Delete
__webpack_require__.d(__webpack_exports__, "store", function() { return /* reexport */ store; });
[115] Fix | Delete
__webpack_require__.d(__webpack_exports__, "DotTip", function() { return /* reexport */ dot_tip; });
[116] Fix | Delete
[117] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/actions.js
[118] Fix | Delete
var actions_namespaceObject = {};
[119] Fix | Delete
__webpack_require__.r(actions_namespaceObject);
[120] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "triggerGuide", function() { return triggerGuide; });
[121] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "dismissTip", function() { return dismissTip; });
[122] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "disableTips", function() { return disableTips; });
[123] Fix | Delete
__webpack_require__.d(actions_namespaceObject, "enableTips", function() { return enableTips; });
[124] Fix | Delete
[125] Fix | Delete
// NAMESPACE OBJECT: ./node_modules/@wordpress/nux/build-module/store/selectors.js
[126] Fix | Delete
var selectors_namespaceObject = {};
[127] Fix | Delete
__webpack_require__.r(selectors_namespaceObject);
[128] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "getAssociatedGuide", function() { return getAssociatedGuide; });
[129] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "isTipVisible", function() { return isTipVisible; });
[130] Fix | Delete
__webpack_require__.d(selectors_namespaceObject, "areTipsEnabled", function() { return selectors_areTipsEnabled; });
[131] Fix | Delete
[132] Fix | Delete
// EXTERNAL MODULE: external ["wp","deprecated"]
[133] Fix | Delete
var external_wp_deprecated_ = __webpack_require__("NMb1");
[134] Fix | Delete
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_);
[135] Fix | Delete
[136] Fix | Delete
// EXTERNAL MODULE: external ["wp","data"]
[137] Fix | Delete
var external_wp_data_ = __webpack_require__("1ZqX");
[138] Fix | Delete
[139] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
[140] Fix | Delete
var defineProperty = __webpack_require__("rePB");
[141] Fix | Delete
[142] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
[143] Fix | Delete
var toConsumableArray = __webpack_require__("KQm4");
[144] Fix | Delete
[145] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/reducer.js
[146] Fix | Delete
[147] Fix | Delete
[148] Fix | Delete
[149] Fix | Delete
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[150] Fix | Delete
[151] Fix | Delete
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[152] Fix | Delete
[153] Fix | Delete
/**
[154] Fix | Delete
* WordPress dependencies
[155] Fix | Delete
*/
[156] Fix | Delete
[157] Fix | Delete
/**
[158] Fix | Delete
* Reducer that tracks which tips are in a guide. Each guide is represented by
[159] Fix | Delete
* an array which contains the tip identifiers contained within that guide.
[160] Fix | Delete
*
[161] Fix | Delete
* @param {Array} state Current state.
[162] Fix | Delete
* @param {Object} action Dispatched action.
[163] Fix | Delete
*
[164] Fix | Delete
* @return {Array} Updated state.
[165] Fix | Delete
*/
[166] Fix | Delete
[167] Fix | Delete
function guides() {
[168] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
[169] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[170] Fix | Delete
[171] Fix | Delete
switch (action.type) {
[172] Fix | Delete
case 'TRIGGER_GUIDE':
[173] Fix | Delete
return [].concat(Object(toConsumableArray["a" /* default */])(state), [action.tipIds]);
[174] Fix | Delete
}
[175] Fix | Delete
[176] Fix | Delete
return state;
[177] Fix | Delete
}
[178] Fix | Delete
/**
[179] Fix | Delete
* Reducer that tracks whether or not tips are globally enabled.
[180] Fix | Delete
*
[181] Fix | Delete
* @param {boolean} state Current state.
[182] Fix | Delete
* @param {Object} action Dispatched action.
[183] Fix | Delete
*
[184] Fix | Delete
* @return {boolean} Updated state.
[185] Fix | Delete
*/
[186] Fix | Delete
[187] Fix | Delete
function areTipsEnabled() {
[188] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
[189] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[190] Fix | Delete
[191] Fix | Delete
switch (action.type) {
[192] Fix | Delete
case 'DISABLE_TIPS':
[193] Fix | Delete
return false;
[194] Fix | Delete
[195] Fix | Delete
case 'ENABLE_TIPS':
[196] Fix | Delete
return true;
[197] Fix | Delete
}
[198] Fix | Delete
[199] Fix | Delete
return state;
[200] Fix | Delete
}
[201] Fix | Delete
/**
[202] Fix | Delete
* Reducer that tracks which tips have been dismissed. If the state object
[203] Fix | Delete
* contains a tip identifier, then that tip is dismissed.
[204] Fix | Delete
*
[205] Fix | Delete
* @param {Object} state Current state.
[206] Fix | Delete
* @param {Object} action Dispatched action.
[207] Fix | Delete
*
[208] Fix | Delete
* @return {Object} Updated state.
[209] Fix | Delete
*/
[210] Fix | Delete
[211] Fix | Delete
function dismissedTips() {
[212] Fix | Delete
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
[213] Fix | Delete
var action = arguments.length > 1 ? arguments[1] : undefined;
[214] Fix | Delete
[215] Fix | Delete
switch (action.type) {
[216] Fix | Delete
case 'DISMISS_TIP':
[217] Fix | Delete
return _objectSpread(_objectSpread({}, state), {}, Object(defineProperty["a" /* default */])({}, action.id, true));
[218] Fix | Delete
[219] Fix | Delete
case 'ENABLE_TIPS':
[220] Fix | Delete
return {};
[221] Fix | Delete
}
[222] Fix | Delete
[223] Fix | Delete
return state;
[224] Fix | Delete
}
[225] Fix | Delete
var preferences = Object(external_wp_data_["combineReducers"])({
[226] Fix | Delete
areTipsEnabled: areTipsEnabled,
[227] Fix | Delete
dismissedTips: dismissedTips
[228] Fix | Delete
});
[229] Fix | Delete
/* harmony default export */ var reducer = (Object(external_wp_data_["combineReducers"])({
[230] Fix | Delete
guides: guides,
[231] Fix | Delete
preferences: preferences
[232] Fix | Delete
}));
[233] Fix | Delete
[234] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/actions.js
[235] Fix | Delete
/**
[236] Fix | Delete
* Returns an action object that, when dispatched, presents a guide that takes
[237] Fix | Delete
* the user through a series of tips step by step.
[238] Fix | Delete
*
[239] Fix | Delete
* @param {string[]} tipIds Which tips to show in the guide.
[240] Fix | Delete
*
[241] Fix | Delete
* @return {Object} Action object.
[242] Fix | Delete
*/
[243] Fix | Delete
function triggerGuide(tipIds) {
[244] Fix | Delete
return {
[245] Fix | Delete
type: 'TRIGGER_GUIDE',
[246] Fix | Delete
tipIds: tipIds
[247] Fix | Delete
};
[248] Fix | Delete
}
[249] Fix | Delete
/**
[250] Fix | Delete
* Returns an action object that, when dispatched, dismisses the given tip. A
[251] Fix | Delete
* dismissed tip will not show again.
[252] Fix | Delete
*
[253] Fix | Delete
* @param {string} id The tip to dismiss.
[254] Fix | Delete
*
[255] Fix | Delete
* @return {Object} Action object.
[256] Fix | Delete
*/
[257] Fix | Delete
[258] Fix | Delete
function dismissTip(id) {
[259] Fix | Delete
return {
[260] Fix | Delete
type: 'DISMISS_TIP',
[261] Fix | Delete
id: id
[262] Fix | Delete
};
[263] Fix | Delete
}
[264] Fix | Delete
/**
[265] Fix | Delete
* Returns an action object that, when dispatched, prevents all tips from
[266] Fix | Delete
* showing again.
[267] Fix | Delete
*
[268] Fix | Delete
* @return {Object} Action object.
[269] Fix | Delete
*/
[270] Fix | Delete
[271] Fix | Delete
function disableTips() {
[272] Fix | Delete
return {
[273] Fix | Delete
type: 'DISABLE_TIPS'
[274] Fix | Delete
};
[275] Fix | Delete
}
[276] Fix | Delete
/**
[277] Fix | Delete
* Returns an action object that, when dispatched, makes all tips show again.
[278] Fix | Delete
*
[279] Fix | Delete
* @return {Object} Action object.
[280] Fix | Delete
*/
[281] Fix | Delete
[282] Fix | Delete
function enableTips() {
[283] Fix | Delete
return {
[284] Fix | Delete
type: 'ENABLE_TIPS'
[285] Fix | Delete
};
[286] Fix | Delete
}
[287] Fix | Delete
[288] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
[289] Fix | Delete
var slicedToArray = __webpack_require__("ODXe");
[290] Fix | Delete
[291] Fix | Delete
// EXTERNAL MODULE: ./node_modules/rememo/es/rememo.js
[292] Fix | Delete
var rememo = __webpack_require__("pPDe");
[293] Fix | Delete
[294] Fix | Delete
// EXTERNAL MODULE: external "lodash"
[295] Fix | Delete
var external_lodash_ = __webpack_require__("YLtl");
[296] Fix | Delete
[297] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/selectors.js
[298] Fix | Delete
[299] Fix | Delete
[300] Fix | Delete
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
[301] Fix | Delete
[302] Fix | Delete
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
[303] Fix | Delete
[304] Fix | Delete
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
[305] Fix | Delete
[306] Fix | Delete
/**
[307] Fix | Delete
* External dependencies
[308] Fix | Delete
*/
[309] Fix | Delete
[310] Fix | Delete
[311] Fix | Delete
/**
[312] Fix | Delete
* An object containing information about a guide.
[313] Fix | Delete
*
[314] Fix | Delete
* @typedef {Object} NUXGuideInfo
[315] Fix | Delete
* @property {string[]} tipIds Which tips the guide contains.
[316] Fix | Delete
* @property {?string} currentTipId The guide's currently showing tip.
[317] Fix | Delete
* @property {?string} nextTipId The guide's next tip to show.
[318] Fix | Delete
*/
[319] Fix | Delete
[320] Fix | Delete
/**
[321] Fix | Delete
* Returns an object describing the guide, if any, that the given tip is a part
[322] Fix | Delete
* of.
[323] Fix | Delete
*
[324] Fix | Delete
* @param {Object} state Global application state.
[325] Fix | Delete
* @param {string} tipId The tip to query.
[326] Fix | Delete
*
[327] Fix | Delete
* @return {?NUXGuideInfo} Information about the associated guide.
[328] Fix | Delete
*/
[329] Fix | Delete
[330] Fix | Delete
var getAssociatedGuide = Object(rememo["a" /* default */])(function (state, tipId) {
[331] Fix | Delete
var _iterator = _createForOfIteratorHelper(state.guides),
[332] Fix | Delete
_step;
[333] Fix | Delete
[334] Fix | Delete
try {
[335] Fix | Delete
for (_iterator.s(); !(_step = _iterator.n()).done;) {
[336] Fix | Delete
var tipIds = _step.value;
[337] Fix | Delete
[338] Fix | Delete
if (Object(external_lodash_["includes"])(tipIds, tipId)) {
[339] Fix | Delete
var nonDismissedTips = Object(external_lodash_["difference"])(tipIds, Object(external_lodash_["keys"])(state.preferences.dismissedTips));
[340] Fix | Delete
[341] Fix | Delete
var _nonDismissedTips = Object(slicedToArray["a" /* default */])(nonDismissedTips, 2),
[342] Fix | Delete
_nonDismissedTips$ = _nonDismissedTips[0],
[343] Fix | Delete
currentTipId = _nonDismissedTips$ === void 0 ? null : _nonDismissedTips$,
[344] Fix | Delete
_nonDismissedTips$2 = _nonDismissedTips[1],
[345] Fix | Delete
nextTipId = _nonDismissedTips$2 === void 0 ? null : _nonDismissedTips$2;
[346] Fix | Delete
[347] Fix | Delete
return {
[348] Fix | Delete
tipIds: tipIds,
[349] Fix | Delete
currentTipId: currentTipId,
[350] Fix | Delete
nextTipId: nextTipId
[351] Fix | Delete
};
[352] Fix | Delete
}
[353] Fix | Delete
}
[354] Fix | Delete
} catch (err) {
[355] Fix | Delete
_iterator.e(err);
[356] Fix | Delete
} finally {
[357] Fix | Delete
_iterator.f();
[358] Fix | Delete
}
[359] Fix | Delete
[360] Fix | Delete
return null;
[361] Fix | Delete
}, function (state) {
[362] Fix | Delete
return [state.guides, state.preferences.dismissedTips];
[363] Fix | Delete
});
[364] Fix | Delete
/**
[365] Fix | Delete
* Determines whether or not the given tip is showing. Tips are hidden if they
[366] Fix | Delete
* are disabled, have been dismissed, or are not the current tip in any
[367] Fix | Delete
* guide that they have been added to.
[368] Fix | Delete
*
[369] Fix | Delete
* @param {Object} state Global application state.
[370] Fix | Delete
* @param {string} tipId The tip to query.
[371] Fix | Delete
*
[372] Fix | Delete
* @return {boolean} Whether or not the given tip is showing.
[373] Fix | Delete
*/
[374] Fix | Delete
[375] Fix | Delete
function isTipVisible(state, tipId) {
[376] Fix | Delete
if (!state.preferences.areTipsEnabled) {
[377] Fix | Delete
return false;
[378] Fix | Delete
}
[379] Fix | Delete
[380] Fix | Delete
if (Object(external_lodash_["has"])(state.preferences.dismissedTips, [tipId])) {
[381] Fix | Delete
return false;
[382] Fix | Delete
}
[383] Fix | Delete
[384] Fix | Delete
var associatedGuide = getAssociatedGuide(state, tipId);
[385] Fix | Delete
[386] Fix | Delete
if (associatedGuide && associatedGuide.currentTipId !== tipId) {
[387] Fix | Delete
return false;
[388] Fix | Delete
}
[389] Fix | Delete
[390] Fix | Delete
return true;
[391] Fix | Delete
}
[392] Fix | Delete
/**
[393] Fix | Delete
* Returns whether or not tips are globally enabled.
[394] Fix | Delete
*
[395] Fix | Delete
* @param {Object} state Global application state.
[396] Fix | Delete
*
[397] Fix | Delete
* @return {boolean} Whether tips are globally enabled.
[398] Fix | Delete
*/
[399] Fix | Delete
[400] Fix | Delete
function selectors_areTipsEnabled(state) {
[401] Fix | Delete
return state.preferences.areTipsEnabled;
[402] Fix | Delete
}
[403] Fix | Delete
[404] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/store/index.js
[405] Fix | Delete
/**
[406] Fix | Delete
* WordPress dependencies
[407] Fix | Delete
*/
[408] Fix | Delete
[409] Fix | Delete
/**
[410] Fix | Delete
* Internal dependencies
[411] Fix | Delete
*/
[412] Fix | Delete
[413] Fix | Delete
[414] Fix | Delete
[415] Fix | Delete
[416] Fix | Delete
var STORE_NAME = 'core/nux';
[417] Fix | Delete
/**
[418] Fix | Delete
* Store definition for the nux namespace.
[419] Fix | Delete
*
[420] Fix | Delete
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
[421] Fix | Delete
*
[422] Fix | Delete
* @type {Object}
[423] Fix | Delete
*/
[424] Fix | Delete
[425] Fix | Delete
var store = Object(external_wp_data_["createReduxStore"])(STORE_NAME, {
[426] Fix | Delete
reducer: reducer,
[427] Fix | Delete
actions: actions_namespaceObject,
[428] Fix | Delete
selectors: selectors_namespaceObject,
[429] Fix | Delete
persist: ['preferences']
[430] Fix | Delete
}); // Once we build a more generic persistence plugin that works across types of stores
[431] Fix | Delete
// we'd be able to replace this with a register call.
[432] Fix | Delete
[433] Fix | Delete
Object(external_wp_data_["registerStore"])(STORE_NAME, {
[434] Fix | Delete
reducer: reducer,
[435] Fix | Delete
actions: actions_namespaceObject,
[436] Fix | Delete
selectors: selectors_namespaceObject,
[437] Fix | Delete
persist: ['preferences']
[438] Fix | Delete
});
[439] Fix | Delete
[440] Fix | Delete
// EXTERNAL MODULE: external ["wp","element"]
[441] Fix | Delete
var external_wp_element_ = __webpack_require__("GRId");
[442] Fix | Delete
[443] Fix | Delete
// EXTERNAL MODULE: external ["wp","compose"]
[444] Fix | Delete
var external_wp_compose_ = __webpack_require__("K9lf");
[445] Fix | Delete
[446] Fix | Delete
// EXTERNAL MODULE: external ["wp","components"]
[447] Fix | Delete
var external_wp_components_ = __webpack_require__("tI+e");
[448] Fix | Delete
[449] Fix | Delete
// EXTERNAL MODULE: external ["wp","i18n"]
[450] Fix | Delete
var external_wp_i18n_ = __webpack_require__("l3Sj");
[451] Fix | Delete
[452] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
[453] Fix | Delete
var library_close = __webpack_require__("w95h");
[454] Fix | Delete
[455] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/nux/build-module/components/dot-tip/index.js
[456] Fix | Delete
[457] Fix | Delete
[458] Fix | Delete
/**
[459] Fix | Delete
* WordPress dependencies
[460] Fix | Delete
*/
[461] Fix | Delete
[462] Fix | Delete
[463] Fix | Delete
[464] Fix | Delete
[465] Fix | Delete
[466] Fix | Delete
[467] Fix | Delete
[468] Fix | Delete
function onClick(event) {
[469] Fix | Delete
// Tips are often nested within buttons. We stop propagation so that clicking
[470] Fix | Delete
// on a tip doesn't result in the button being clicked.
[471] Fix | Delete
event.stopPropagation();
[472] Fix | Delete
}
[473] Fix | Delete
[474] Fix | Delete
function DotTip(_ref) {
[475] Fix | Delete
var _ref$position = _ref.position,
[476] Fix | Delete
position = _ref$position === void 0 ? 'middle right' : _ref$position,
[477] Fix | Delete
children = _ref.children,
[478] Fix | Delete
isVisible = _ref.isVisible,
[479] Fix | Delete
hasNextTip = _ref.hasNextTip,
[480] Fix | Delete
onDismiss = _ref.onDismiss,
[481] Fix | Delete
onDisable = _ref.onDisable;
[482] Fix | Delete
var anchorParent = Object(external_wp_element_["useRef"])(null);
[483] Fix | Delete
var onFocusOutsideCallback = Object(external_wp_element_["useCallback"])(function (event) {
[484] Fix | Delete
if (!anchorParent.current) {
[485] Fix | Delete
return;
[486] Fix | Delete
}
[487] Fix | Delete
[488] Fix | Delete
if (anchorParent.current.contains(event.relatedTarget)) {
[489] Fix | Delete
return;
[490] Fix | Delete
}
[491] Fix | Delete
[492] Fix | Delete
onDisable();
[493] Fix | Delete
}, [onDisable, anchorParent]);
[494] Fix | Delete
[495] Fix | Delete
if (!isVisible) {
[496] Fix | Delete
return null;
[497] Fix | Delete
}
[498] Fix | Delete
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function