| 1 |
var wp; |
| 2 |
(wp ||= {}).nux = (() => { |
| 3 |
var __create = Object.create; |
| 4 |
var __defProp = Object.defineProperty; |
| 5 |
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
| 6 |
var __getOwnPropNames = Object.getOwnPropertyNames; |
| 7 |
var __getProtoOf = Object.getPrototypeOf; |
| 8 |
var __hasOwnProp = Object.prototype.hasOwnProperty; |
| 9 |
var __commonJS = (cb, mod) => function __require() { |
| 10 |
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; |
| 11 |
}; |
| 12 |
var __export = (target, all) => { |
| 13 |
for (var name in all) |
| 14 |
__defProp(target, name, { get: all[name], enumerable: true }); |
| 15 |
}; |
| 16 |
var __copyProps = (to, from, except, desc) => { |
| 17 |
if (from && typeof from === "object" || typeof from === "function") { |
| 18 |
for (let key of __getOwnPropNames(from)) |
| 19 |
if (!__hasOwnProp.call(to, key) && key !== except) |
| 20 |
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); |
| 21 |
} |
| 22 |
return to; |
| 23 |
}; |
| 24 |
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( |
| 25 |
// If the importer is in node compatibility mode or this is not an ESM |
| 26 |
// file that has been converted to a CommonJS file using a Babel- |
| 27 |
// compatible transform (i.e. "__esModule" has not been set), then set |
| 28 |
// "default" to the CommonJS "module.exports" for node compatibility. |
| 29 |
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, |
| 30 |
mod |
| 31 |
)); |
| 32 |
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); |
| 33 |
|
| 34 |
// package-external:@wordpress/deprecated |
| 35 |
var require_deprecated = __commonJS({ |
| 36 |
"package-external:@wordpress/deprecated"(exports, module) { |
| 37 |
module.exports = window.wp.deprecated; |
| 38 |
} |
| 39 |
}); |
| 40 |
|
| 41 |
// package-external:@wordpress/data |
| 42 |
var require_data = __commonJS({ |
| 43 |
"package-external:@wordpress/data"(exports, module) { |
| 44 |
module.exports = window.wp.data; |
| 45 |
} |
| 46 |
}); |
| 47 |
|
| 48 |
// packages/nux/build-module/index.mjs |
| 49 |
var index_exports = {}; |
| 50 |
__export(index_exports, { |
| 51 |
DotTip: () => dot_tip_default, |
| 52 |
store: () => store |
| 53 |
}); |
| 54 |
var import_deprecated = __toESM(require_deprecated(), 1); |
| 55 |
|
| 56 |
// packages/nux/build-module/store/index.mjs |
| 57 |
var import_data = __toESM(require_data(), 1); |
| 58 |
|
| 59 |
// packages/nux/build-module/store/reducer.mjs |
| 60 |
var DEFAULT_STATE = { |
| 61 |
guides: [], |
| 62 |
preferences: { |
| 63 |
areTipsEnabled: false, |
| 64 |
dismissedTips: {} |
| 65 |
} |
| 66 |
}; |
| 67 |
function reducer(state = DEFAULT_STATE) { |
| 68 |
return state; |
| 69 |
} |
| 70 |
|
| 71 |
// packages/nux/build-module/store/actions.mjs |
| 72 |
var actions_exports = {}; |
| 73 |
__export(actions_exports, { |
| 74 |
disableTips: () => disableTips, |
| 75 |
dismissTip: () => dismissTip, |
| 76 |
enableTips: () => enableTips, |
| 77 |
triggerGuide: () => triggerGuide |
| 78 |
}); |
| 79 |
function triggerGuide(tipIds) { |
| 80 |
return { |
| 81 |
type: "TRIGGER_GUIDE", |
| 82 |
tipIds |
| 83 |
}; |
| 84 |
} |
| 85 |
function dismissTip(id) { |
| 86 |
return { |
| 87 |
type: "DISMISS_TIP", |
| 88 |
id |
| 89 |
}; |
| 90 |
} |
| 91 |
function disableTips() { |
| 92 |
return { |
| 93 |
type: "DISABLE_TIPS" |
| 94 |
}; |
| 95 |
} |
| 96 |
function enableTips() { |
| 97 |
return { |
| 98 |
type: "ENABLE_TIPS" |
| 99 |
}; |
| 100 |
} |
| 101 |
|
| 102 |
// packages/nux/build-module/store/selectors.mjs |
| 103 |
var selectors_exports = {}; |
| 104 |
__export(selectors_exports, { |
| 105 |
areTipsEnabled: () => areTipsEnabled, |
| 106 |
getAssociatedGuide: () => getAssociatedGuide, |
| 107 |
isTipVisible: () => isTipVisible |
| 108 |
}); |
| 109 |
function getAssociatedGuide() { |
| 110 |
return null; |
| 111 |
} |
| 112 |
function isTipVisible() { |
| 113 |
return false; |
| 114 |
} |
| 115 |
function areTipsEnabled() { |
| 116 |
return false; |
| 117 |
} |
| 118 |
|
| 119 |
// packages/nux/build-module/store/index.mjs |
| 120 |
var STORE_NAME = "core/nux"; |
| 121 |
var store = (0, import_data.createReduxStore)(STORE_NAME, { |
| 122 |
reducer, |
| 123 |
actions: actions_exports, |
| 124 |
selectors: selectors_exports, |
| 125 |
persist: ["preferences"] |
| 126 |
}); |
| 127 |
(0, import_data.registerStore)(STORE_NAME, { |
| 128 |
reducer, |
| 129 |
actions: actions_exports, |
| 130 |
selectors: selectors_exports, |
| 131 |
persist: ["preferences"] |
| 132 |
}); |
| 133 |
|
| 134 |
// packages/nux/build-module/components/dot-tip/index.mjs |
| 135 |
function DotTip() { |
| 136 |
return null; |
| 137 |
} |
| 138 |
var dot_tip_default = DotTip; |
| 139 |
|
| 140 |
// packages/nux/build-module/index.mjs |
| 141 |
(0, import_deprecated.default)("wp.nux", { |
| 142 |
since: "5.4", |
| 143 |
hint: "wp.components.Guide can be used to show a user guide.", |
| 144 |
version: "6.2" |
| 145 |
}); |
| 146 |
return __toCommonJS(index_exports); |
| 147 |
})(); |
| 148 |
//# sourceMappingURL=index.js.map |
| 149 |
|