Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/plugins/elementor/assets/js/wc-product-editor.min.js
Arrière
/*! elementor - v3.24.0 - 12-09-2024 */ (()=>{"use strict";function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var i=0,c=function F(){};return{s:c,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:c}}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 u,a=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return a=t.done,t},e:function e(t){d=!0,u=t},f:function f(){try{a||null==o.return||o.return()}finally{if(d)throw u}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=t[o];return i}({init:function init(){this.getDefaultSettings(),this.wcNewProductEditorSwitchButton()},getDefaultSettings:function getDefaultSettings(){this.selectors={wcProductHeaderInner:".woocommerce-product-header__inner",buttonTemplate:"#elementor-woocommerce-new-editor-button",wcLoader:'.woocommerce-product-header[role="region"]',wcEditButton:".woocommerce-product-header__inner #elementor-editor-button",body:"body"}},wcNewProductEditorSwitchButton:function wcNewProductEditorSwitchButton(){var t=document.querySelector(this.selectors.body),r=this;if(t){var o=new MutationObserver((function(t){var i,c=_createForOfIteratorHelper(t);try{for(c.s();!(i=c.n()).done;){var u=i.value;"childList"===u.type&&u.addedNodes.length>0&&r.isWcProductEditorLoading()&&!r.isElementorButtonInjected()&&(r.injectElementorButton(),o.disconnect())}}catch(t){c.e(t)}finally{c.f()}}));o.observe(t,{childList:!0,subtree:!0})}},injectElementorButton:function injectElementorButton(){var t=document.querySelector(this.selectors.wcProductHeaderInner);if(t){var r=document.querySelector(this.selectors.buttonTemplate),o=document.createElement("div");o.innerHTML=r.innerHTML;var i=o.firstElementChild;t.firstChild.append(i)}},isWcProductEditorLoading:function isWcProductEditorLoading(){return!!document.querySelector(this.selectors.wcLoader)},isElementorButtonInjected:function isElementorButtonInjected(){return!!document.querySelector(this.selectors.wcEditButton)}}).init()})();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages