Файловый менеджер - Редактировать - /home/elecjxjk/tumaninvestigators.com/wp-content/plugins/wpforms-lite/assets/js/admin/education/edit-post.es5.min.js
Назад
!function n(o,r,s){function c(i,e){if(!r[i]){if(!o[i]){var t="function"==typeof require&&require;if(!e&&t)return t(i,!0);if(a)return a(i,!0);throw new Error("Cannot find module '"+i+"'")}e=r[i]={exports:{}};o[i][0].call(e.exports,function(e){var t=o[i][1][e];return c(t||e)},e,e.exports,n,o,r,s)}return r[i].exports}for(var a="function"==typeof require&&require,e=0;e<s.length;e++)c(s[e]);return c}({1:[function(e,t,i){"use strict";function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,r,s,c=[],a=!0,u=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;a=!1}else for(;!(a=(n=r.call(i)).done)&&(c.push(n.value),c.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{if(!a&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){var i;if(e)return"string"==typeof e?n(e,t):"Map"===(i="Object"===(i=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var o,r,s,a;(window.WPFormsEditPostEducation||(o=document,r=window,s=jQuery,a={isNoticeVisible:!1,init:function(){s(r).on("load",function(){"function"==typeof s.ready.then?s.ready.then(a.load):a.load()})},load:function(){var e;a.isGutenbergEditor()?e=setInterval(function(){var t,i;o.querySelector('.editor-post-title__input, iframe[name="editor-canvas"]')&&(clearInterval(e),a.isFse()?(t=o.querySelector('iframe[name="editor-canvas"]'),(i=new MutationObserver(function(){var e=t.contentDocument||t.contentWindow.document||{};"complete"===e.readyState&&e.querySelector(".editor-post-title__input")&&(a.maybeShowGutenbergNotice(),a.bindFseEvents(),i.disconnect())})).observe(o.body,{subtree:!0,childList:!0})):(a.maybeShowGutenbergNotice(),a.bindGutenbergEvents()))},200):(a.maybeShowClassicNotice(),a.bindClassicEvents())},bindClassicEvents:function(){var e=s(o);a.isNoticeVisible||e.on("input","#title",_.debounce(a.maybeShowClassicNotice,1e3)),e.on("click",".wpforms-edit-post-education-notice-close",a.closeNotice)},bindGutenbergEvents:function(){var e=s(o);e.on("DOMSubtreeModified",".edit-post-layout",a.distractionFreeModeToggle),a.isNoticeVisible||e.on("input",".editor-post-title__input",_.debounce(a.maybeShowGutenbergNotice,1e3)).on("DOMSubtreeModified",".editor-post-title__input",_.debounce(a.maybeShowGutenbergNotice,1e3))},bindFseEvents:function(){var e=s('iframe[name="editor-canvas"]');s(o).on("DOMSubtreeModified",".edit-post-layout",a.distractionFreeModeToggle),e.contents().on("DOMSubtreeModified",".editor-post-title__input",_.debounce(a.maybeShowGutenbergNotice,1e3))},isGutenbergEditor:function(){return"undefined"!=typeof wp&&void 0!==wp.blocks},isFse:function(){return Boolean(s('iframe[name="editor-canvas"]').length)},showGutenbergNotice:function(){wp.data.dispatch("core/notices").createInfoNotice(wpforms_edit_post_education.gutenberg_notice.template,a.getGutenbergNoticeSettings());var t=setInterval(function(){var e=s(".wpforms-edit-post-education-notice-body");e.length&&((e=e.closest(".components-notice")).addClass("wpforms-edit-post-education-notice"),e.find(".is-secondary, .is-link").removeClass("is-secondary").removeClass("is-link").addClass("is-primary"),(e=e.find(".components-notice__dismiss"))&&e.on("click",function(){a.updateUserMeta()}),clearInterval(t))},100)},getGutenbergNoticeSettings:function(){var n,o,e,r,t,s="wpforms-edit-post-product-education-guide",i={id:s,isDismissible:!0,HTML:!0,__unstableHTML:!0,actions:[{className:"wpforms-edit-post-education-notice-guide-button",variant:"primary",label:wpforms_edit_post_education.gutenberg_notice.button}]};return wpforms_edit_post_education.gutenberg_guide?(n=wp.components.Guide,o=wp.element.useState,e=wp.plugins.registerPlugin,r=wp.plugins.unregisterPlugin,t=function(){var e=c(o(!0),2),t=e[0],i=e[1];return t?React.createElement(n,{className:"edit-post-welcome-guide",onFinish:function(){r(s),i(!1)},pages:a.getGuidePages()}):null},i.actions[0].onClick=function(){return e(s,{render:t})}):i.actions[0].url=wpforms_edit_post_education.gutenberg_notice.url,i},getGuidePages:function(){var t=[];return wpforms_edit_post_education.gutenberg_guide.forEach(function(e){t.push({content:React.createElement(React.Fragment,null,React.createElement("h1",{className:"edit-post-welcome-guide__heading"},e.title),React.createElement("p",{className:"edit-post-welcome-guide__text"},e.content)),image:React.createElement("img",{className:"edit-post-welcome-guide__image",src:e.image,alt:e.title})})}),t},maybeShowClassicNotice:function(){a.isNoticeVisible||a.isTitleMatchKeywords(s("#title").val())&&(a.isNoticeVisible=!0,s(".wpforms-edit-post-education-notice").removeClass("wpforms-hidden"))},maybeShowGutenbergNotice:function(){var e;a.isNoticeVisible||(e="TEXTAREA"===(e=a.isFse()?s('iframe[name="editor-canvas"]').contents().find(".editor-post-title__input"):s(".editor-post-title__input")).prop("tagName")?e.val():e.text(),a.isTitleMatchKeywords(e)&&(a.isNoticeVisible=!0,a.showGutenbergNotice()))},distractionFreeModeToggle:function(){var e;a.isNoticeVisible&&(e=s(o),Boolean(e.find(".is-distraction-free").length))&&!Boolean(s(".wpforms-edit-post-education-notice").length)&&e.find(".wpforms-edit-post-education-notice-body").closest(".components-notice").addClass("wpforms-edit-post-education-notice")},isTitleMatchKeywords:function(e){return new RegExp(/\b(contact|form)\b/i).test(e)},closeNotice:function(){s(this).closest(".wpforms-edit-post-education-notice").remove(),a.updateUserMeta()},updateUserMeta:function(){s.post(wpforms_edit_post_education.ajax_url,{action:"wpforms_education_dismiss",nonce:wpforms_edit_post_education.education_nonce,section:"edit-post-notice"})}})).init()},{}]},{},[1]);
| ver. 1.4 |
Github
|
.
| PHP 8.1.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка