PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 All 503 releases
jetpack / _inc / blocks / sharing-buttons / view.js

view.js in Jetpack – WP Security, Backup, Speed, & Growth 16.3-a.1, at _inc/blocks/sharing-buttons/view.js

1 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{var e={5971(){},79366(e,t,r){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)},98490(e){"use strict";e.exports=window.wp.domReady}},t={};function r(o){var a=t[o];if(void 0!==a)return a.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=o[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../"})(),(()=>{"use strict";r(79366)})(),(()=>{"use strict";var e=r(98490),t=r.n(e);r(5971);let o;const a={};function s(e){return"string"!=typeof a[e]&&(a[e]=`wpcom${e}-${Math.random().toString(36).slice(2)}`),a[e]}"undefined"!=typeof window&&t()(()=>{const e=document.getElementsByClassName("wp-block-jetpack-sharing-buttons");for(const t of e)t.addEventListener("click",e=>{const t=e.target.closest("a"),r=t?.dataset?.service;var a;if(t&&t.classList.contains(`share-${r}`)&&"mail"!==r)if(e.preventDefault(),e.stopPropagation(),"share"!==r)"print"!==r?(o&&o.close(),o=window.open(t.getAttribute("href"),s(r),"menubar=1,resizable=1,width=600,height=400"),o&&o.focus()):window.print();else if(t?.href&&(a={url:t.href},navigator&&"function"==typeof navigator.share&&"function"==typeof navigator.canShare&&navigator.canShare(a)))navigator.share({url:t.href});else{const[e]=t.getElementsByClassName("tooltiptext");e&&e.style&&(e.style.display="initial",setTimeout(()=>{e.style.display="none"},2e3)),navigator?.clipboard?.writeText(t.href)}})})})()})();