HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/delta/wp-content/plugins/sitepress-multilingual-cms/dist/js/blockEditorNotices/app.js
!function(e){function t(t){for(var i,s,c=t[0],a=t[1],u=t[2],d=0,f=[];d<c.length;d++)s=c[d],Object.prototype.hasOwnProperty.call(o,s)&&o[s]&&f.push(o[s][0]),o[s]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(l&&l(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,c=1;c<n.length;c++){var a=n[c];0!==o[a]&&(i=!1)}i&&(r.splice(t--,1),e=s(s.s=n[0]))}return e}var i={},o={4:0},r=[];function s(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(n,i,function(t){return e[t]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="";var c=window.webpackWPML=window.webpackWPML||[],a=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=a;r.push([1292,0]),n()}({1292:function(e,t,n){"use strict";n.r(t);var i=n(27),o=n.n(i),r=n(14),s=n.n(r),c=n(16),a=n.n(c);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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 r,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,r=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw r}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d=function(){function e(){var t=this;s()(this,e),this.NOTICE_CLASS_STATUSES={"notice-success":"success",updated:"success","notice-warning":"warning","notice-error":"error",error:"error","notice-info":"info"},this.contentCreated=!1,this.convertOldStyledToOTGSNotices();var n=this.getNotices();n.forEach((function(e){e.innerHTML=e.outerHTML,e.classList.remove("notice"),e.classList.add("otgs-notice-wrap"),e.childNodes[0].classList.remove("notice","info","success","warning","error","notice-info","notice-success","notice-warning","notice-error")})),this.totalNumberOfNotices=n.length,this.addedNumberOfNotices=0,wp.data.subscribe((function(){return t.createBlockEditorNotices()})),wp.data.subscribe((function(){return t.hideCloseButtonOnAddingNotice()})),this.bindEvents()}return a()(e,[{key:"bindEvents",value:function(){var e=this;document.addEventListener("otgs-notice-dismiss",(function(t){e.closeNotice(t)}))}},{key:"hideCloseButtonOnAddingNotice",value:function(){var e=this,t=this.getAddedOTGSNotices(),n=t.length;n>this.addedNumberOfNotices&&(this.addedNumberOfNotices=n,t.forEach((function(t){var n=e.getComponentDismiss(t);n&&(n.style.visibility="hidden")})),n===this.totalNumberOfNotices&&document.dispatchEvent(new Event("otgs-notices-added")))}},{key:"getNoticeHTML",value:function(e){var t=[];return Object.values(e.childNodes).map((function(e){e.nodeType!==window.Node.ELEMENT_NODE?e.nodeValue.trim()&&t.push(e.nodeValue):e.classList.contains("notice-dismiss")||t.push(e.outerHTML)})),t.join("")}},{key:"getNoticeStatus",value:function(e){var t,n=u(e.classList);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this.NOTICE_CLASS_STATUSES.hasOwnProperty(i))return this.NOTICE_CLASS_STATUSES[i]}}catch(e){n.e(e)}finally{n.f()}}},{key:"createBlockEditorNotices",value:function(){var e=this;if(!this.contentCreated&&document.querySelector(".edit-post-layout__content")){this.contentCreated=!0;var t=this.getOTGSNotices().reverse();t.length>0&&t.forEach((function(t){var n=e.getNoticeStatus(t),i=e.getNoticeHTML(t),o=t.classList.contains("is-dismissible");wp.data.dispatch("core/notices").createNotice(n,i,{speak:!1,__unstableHTML:!0,isDismissible:o})}))}}},{key:"closeNotice",value:function(e){if(e.detail){var t=e.detail[0];if(void 0!==t){var n=this.getComponentDismiss(t);n&&(n.style.visibility="visible",n.click())}}}},{key:"getComponentDismiss",value:function(e){return e.closest(".components-notice").querySelector(".components-notice__dismiss")}},{key:"getAddedOTGSNotices",value:function(){return o()(document.querySelectorAll(".components-notice .otgs-notice"))}},{key:"getNotices",value:function(){return o()(document.querySelectorAll(".otgs-notice"))}},{key:"getOTGSNotices",value:function(){return o()(document.querySelectorAll(".otgs-notice-wrap"))}},{key:"getOldStyledAdminNotices",value:function(){return o()(document.querySelectorAll(["#wpbody-content > .icl-admin-message"].join(", ")))}},{key:"convertOldStyledToOTGSNotices",value:function(){this.getOldStyledAdminNotices().forEach((function(e){e.classList.contains("otgs-is-dismissible")&&(e.classList.remove("otgs-is-dismissible"),e.classList.add("is-dismissible")),e.classList.remove("message","updated","icl-admin-message","icl-admin-message-error","icl-admin-message-information","icl-admin-message-warning","update-nag"),e.classList.add("notice","otgs-notice")}))}}]),e}();document.addEventListener("DOMContentLoaded",(function(){new d}))}});