403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.252
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/tapchi.ai/wp-content/plugins/light-modal-block/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/tapchi.ai/wp-content/plugins/light-modal-block/build/view.js
(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)e[i]=o[i]}return e}var t=function t(o,i){function n(t,n,s){if("undefined"!=typeof document){"number"==typeof(s=e({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in s)s[a]&&(r+="; "+a,!0!==s[a]&&(r+="="+s[a].split(";")[0]));return document.cookie=t+"="+o.write(n,t)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],i={},n=0;n<t.length;n++){var s=t[n].split("="),r=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(i[a]=o.read(r,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(t,o){n(t,"",e({},o,{expires:-1}))},withAttributes:function(o){return t(this.converter,e({},this.attributes,o))},withConverter:function(o){return t(e({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class o{openTrigger="data-trigger-modal";closeTrigger="wp-block-cloudcatch-light-modal-block__close";openClass="is-open";cookieDuration=0;interactionSetsCookie=!1;focusableElements='a[href],area[href],input:not([disabled]):not([type="hidden"]):not([aria-hidden]),select:not([disabled]):not([aria-hidden]),textarea:not([disabled]):not([aria-hidden]),button:not([disabled]):not([aria-hidden]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])';constructor({targetModal:e,triggers:t=[],cookieDuration:o,interactionSetsCookie:i=!1}){this.modalId=e,this.triggers=t,this.cookieDuration=o,this.interactionSetsCookie=i,this.modal=document.querySelector(`[data-modal-id="${this.modalId}"]`),t.length>0&&this.registerTriggers(...t),this.modal.removeAttribute("data-trigger-delay"),this.modal.removeAttribute("data-trigger-selector"),this.modal.removeAttribute("data-cookie-duration"),this.modal.removeAttribute("data-cookie-interaction"),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}registerTriggers(...e){e.filter(Boolean).forEach((e=>{e.addEventListener("click",(()=>this.showModal(!0)))}))}setCookie(){const e=new Date((new Date).getTime()+60*this.cookieDuration*1e3);t.set("wordpress_lmb_"+this.modalId,"1",{expires:e})}getCookie(){return t.get("wordpress_lmb_"+this.modalId)}showModal(e=!1){this.cookieDuration&&this.getCookie()&&!1===e||(this.activeElement=document.activeElement,this.modal.classList.add(this.openClass),document.body.classList.add("lmb-open"),this.addEventListeners(),this.setFocusToFirstNode(),this.modal.dispatchEvent(new CustomEvent("light-modal-block:modal-show",{bubbles:!0})))}closeModal(){const e=this.modal;this.removeEventListeners(),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),e.classList.remove(this.openClass),document.body.classList.remove("lmb-open"),this.cookieDuration&&this.setCookie(),this.modal.dispatchEvent(new CustomEvent("light-modal-block:modal-close",{bubbles:!0}))}addEventListeners(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),this.modal.addEventListener("submit",this.onSubmit),document.addEventListener("keydown",this.onKeydown)}removeEventListeners(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),this.modal.removeEventListener("submit",this.onSubmit),document.removeEventListener("keydown",this.onKeydown)}onClick(e){e.target.classList.contains(this.closeTrigger)||e.target.parentNode.classList.contains(this.closeTrigger)||e.target.classList.contains("wp-block-cloudcatch-light-modal-block__wrapper")?(e.preventDefault(),e.stopPropagation(),this.closeModal()):this.interactionSetsCookie&&("A"!==e.target.tagName&&"BUTTON"!==e.target.tagName||this.setCookie())}onKeydown(e){27===e.keyCode&&this.closeModal(),9===e.keyCode&&this.retainFocus(e)}onSubmit(){this.interactionSetsCookie&&this.setCookie()}getFocusableNodes(){const e=void 0!==window.lmbFocusableElements?window.lmbFocusableElements:this.focusableElements;if(!e)return[];const t=this.modal.querySelectorAll(e);return Array.from(t)}setFocusToFirstNode(){const e=this.getFocusableNodes();if(0===e.length)return;const t=e.filter((e=>!e.classList.contains(this.closeTrigger)));t.length>0&&t[0].focus(),0===t.length&&e[0].focus()}retainFocus(e){let t=this.getFocusableNodes();if(0===t.length)return;t=t.filter((e=>null!==e.offsetParent));const o=t.indexOf(document.activeElement);e.shiftKey&&0===o&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&o===t.length-1&&(t[0].focus(),e.preventDefault())}}window.addEventListener("DOMContentLoaded",(()=>{window.lightModalBlocks=new Map,document.querySelectorAll(".wp-block-cloudcatch-light-modal-block__wrapper").forEach((e=>{const t=e.getAttribute("data-modal-id"),i=e.getAttribute("data-trigger-selector"),n=parseInt(e.getAttribute("data-trigger-delay")),s=parseInt(e.getAttribute("data-cookie-duration"))||0,r="true"===(e.getAttribute("data-cookie-interaction")||!1),a=Object.assign({},{openTrigger:"data-trigger-modal"}),l=[...document.querySelectorAll(`[${a.openTrigger}="${t}"]`),...document.querySelectorAll(`${i}`)];a.targetModal=t,a.triggers=l,a.cookieDuration=s,a.interactionSetsCookie=r,window.lightModalBlocks.set(t,new o(a)),null===n||isNaN(n)||setTimeout((()=>window.lightModalBlocks.get(t).showModal()),n)})),document.dispatchEvent(new CustomEvent("light-modal-block:ready"))}))})();

Youez - 2016 - github.com/yon3zu
LinuXploit