![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/plugins/wp-smushit/app/assets/js/ |
{"version":3,"file":"js/smush-global.min.js","mappings":"yBAIAA,SAASC,iBAAiB,oBAAoB,WAQ7C,SAASC,EAAcC,GACtBA,EAAMC,iBAEN,IACMC,EADSF,EAAMG,OACCC,QAAQ,6BACxBC,EAAMH,EAAOI,aAAa,YAE1BC,EAAM,IAAIC,eAChBD,EAAIE,KACH,OACAC,QAAU,oCAAsCL,EAAM,gBAAkBM,aAAaC,OACrF,GAEDL,EAAIM,OAAS,WACRX,GACHA,EAAOY,cAAc,yBAAyBC,cAAc,IAAIC,WAAW,QAAS,CACnFC,KAAMC,OACNC,SAAS,EACTC,YAAY,IAGf,EACAb,EAAIc,MACL,CA9B4BxB,SAASyB,iBACpC,0DAEmBC,SAAQ,SAACC,GAC5BA,EAAO1B,iBAAiB,QAASC,EAClC,GA0BD,G","sources":["webpack://wp-smushit/./_src/js/global.js"],"sourcesContent":["import '../scss/common.scss';\n\n/* global ajaxurl */\n\ndocument.addEventListener('DOMContentLoaded', function () {\n\tconst dismissNoticeButton = document.querySelectorAll(\n\t\t'.smush-dismissible-notice .smush-dismiss-notice-button'\n\t);\n\tdismissNoticeButton.forEach((button) => {\n\t\tbutton.addEventListener('click', dismissNotice);\n\t});\n\n\tfunction dismissNotice(event) {\n\t\tevent.preventDefault();\n\n\t\tconst button = event.target;\n\t\tconst notice = button.closest('.smush-dismissible-notice');\n\t\tconst key = notice.getAttribute('data-key');\n\n\t\tconst xhr = new XMLHttpRequest();\n\t\txhr.open(\n\t\t\t'POST',\n\t\t\tajaxurl + '?action=smush_dismiss_notice&key=' + key + '&_ajax_nonce=' + smush_global.nonce,\n\t\t\ttrue\n\t\t);\n\t\txhr.onload = () => {\n\t\t\tif (notice) {\n\t\t\t\tnotice.querySelector('button.notice-dismiss').dispatchEvent(new MouseEvent('click', {\n\t\t\t\t\tview: window,\n\t\t\t\t\tbubbles: true,\n\t\t\t\t\tcancelable: true\n\t\t\t\t}));\n\t\t\t}\n\t\t};\n\t\txhr.send();\n\t}\n});\n"],"names":["document","addEventListener","dismissNotice","event","preventDefault","notice","target","closest","key","getAttribute","xhr","XMLHttpRequest","open","ajaxurl","smush_global","nonce","onload","querySelector","dispatchEvent","MouseEvent","view","window","bubbles","cancelable","send","querySelectorAll","forEach","button"],"sourceRoot":""}