芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cepali.edu.mx/wp-content/plugins/elementor/assets/js/media-hints.js
/*! elementor - v3.24.0 - 15-10-2024 */ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": /*!****************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! \****************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); function _defineProperty(obj, key, value) { key = toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": /*!***********************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \***********************************************************************/ /***/ ((module) => { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": /*!*************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! \*************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); function toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": /*!***************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! \***************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); function toPropertyKey(t) { var i = toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/typeof.js": /*!********************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! \********************************************************/ /***/ ((module) => { function _typeof(o) { "@babel/helpers - typeof"; return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); } module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; /*!*********************************************!*\ !*** ../assets/dev/js/admin/hints/media.js ***! \*********************************************/ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } (function (_elementorAdminHints, _wp, _wp$media, _wp$media$view, _wp$media$view$Attach) { if (!((_elementorAdminHints = elementorAdminHints) !== null && _elementorAdminHints !== void 0 && _elementorAdminHints.mediaHint)) { return; } if (!((_wp = wp) !== null && _wp !== void 0 && (_wp$media = _wp.media) !== null && _wp$media !== void 0 && (_wp$media$view = _wp$media.view) !== null && _wp$media$view !== void 0 && (_wp$media$view$Attach = _wp$media$view.Attachment) !== null && _wp$media$view$Attach !== void 0 && _wp$media$view$Attach.Details)) { return; } wp.media.view.Attachment.Details = wp.media.view.Attachment.Details.extend({ _tmpl: "
\">\n\t\t
\" data-display=\"<%= display %>\">\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\" data-settings=\"<%= button_data %>\">\n\t\t\t\t
<%= content %>
\n\t\t\t\t
\n\t\t\t\t<% if ( typeof(button_text) !== \"undefined\" ) { %>\n\t\t\t\t\t
e-btn-1\">\n\t\t\t\t\t\t<%= button_text %>\n\t\t\t\t\t
\n\t\t\t\t<% } %>\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\">\n\t\t\t\t
\n\t\t\t\t
<%= dismiss %>
\n\t\t\t
\n\t\t
\n\t
", template: function template(view) { // Get the template and parse it var html = wp.media.template('attachment-details')(view); // The template to extend var dom = document.createElement('div'); dom.innerHTML = html; if (!this.shouldDisplayHint(view)) { return dom.innerHTML; } var hint = document.createElement('div'); // Create a new element hint.classList.add('e-hint'); // Add a class to the element for styling hint.innerHTML = _.template(this._tmpl)(elementorAdminHints.mediaHint); // Add the content to the new element // Insert the new element at the correct spot var details = dom.querySelector('.attachment-info'); details.appendChild(hint); // Add new element at the correct spot return dom.innerHTML; }, events: _objectSpread(_objectSpread({}, wp.media.view.Attachment.Details.prototype.events), {}, { 'click .elementor-control-notice-dismiss': 'dismiss', 'click .e-hint__container a': 'onHintAnchorClick', 'click .e-hint__container button.e-btn-1': 'onHintAction' }), shouldDisplayHint: function shouldDisplayHint(view) { var _elementorAdminHints2; if (!elementorAdminHints || !((_elementorAdminHints2 = elementorAdminHints) !== null && _elementorAdminHints2 !== void 0 && _elementorAdminHints2.mediaHint)) { return false; } if (window.elementorHints !== undefined) { return false; } if (view.type !== 'image') { return false; } if (elementorAdminHints.mediaHint.display) { return true; } return this.imageNotOptimized(view); }, imageNotOptimized: function imageNotOptimized(attachment) { var checks = { height: 1080, width: 1920, filesizeInBytes: 100000 }; return Object.keys(checks).some(function (key) { var value = attachment[key] || false; return value && value > checks[key]; }); }, onHintAction: function onHintAction(event) { event.preventDefault(); var b64Settings = event.target.closest('.action-handler').dataset.settings; var settings = atob(b64Settings); var _JSON$parse = JSON.parse(settings), _JSON$parse$action_ur = _JSON$parse.action_url, actionURL = _JSON$parse$action_ur === void 0 ? null : _JSON$parse$action_ur; if (actionURL) { window.open(actionURL, '_blank'); } this.dismiss(event); }, onHintAnchorClick: function onHintAnchorClick(event) { this.dismiss(event); }, dismiss: function dismiss(event) { elementorCommon.ajax.addRequest('dismissed_editor_notices', { data: { dismissId: event.target.closest('.e-hint__container').dataset.event } }); this.hideHint(event); }, hideHint: function hideHint(event) { event.target.closest('.e-hint__container').remove(); window.elementorHints = {}; } }); })(); })(); /******/ })() ; //# sourceMappingURL=media-hints.js.map