PageSourceSearch

https://www.ehn.org/static/dist/social-ux/4836.5a72f92b10ae3bf2477f.bundle.mjs

js ehn.org collected 2026-09-24 08:43:15 UTC 4,389 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[4836],{1821:function(e,t,s){function i(e){const t=document.createElement("template");return t.innerHTML=e,{template:t,getElement(){return t.content.cloneNode(!0).firstElementChild}}}s.d(t,{A:function(){return i}})},4414:function(e,t){t.A=(e,t)=>e.parentNode.insertBefore(t,e)},5315:function(e,t,s){s.d(t,{A:function(){return n}});var i=s(4414);function n(e,t){(0,i.A)(e,t),t.appendChild(e)}},4836:function(e,t,s){s.r(t),s.d(t,{default:function(){return w}});var i=s(5315),n=s(1821),a=s(3989),o=s(2140),r=s(4361);const l=(0,n.A)('\n<div class="share-tab-img share-buttons share-trigger"></div>'),c=(0,n.A)('\n<div class="share-media-panel">\n    <ul class="social-tab-i">\n        <li class="social-tab-buttons">\n            <ul></ul>\n        </li>\n        <li class="close-share-mobile-wrap">\n            <button class="close-share-mobile" title="Close sharing options">\n                <span style="display:none;">Close sharing options</span>\n                <i class="icons-share cls sprite-shares-close sprite-shares-small-close"></i>\n            </button>\n        </li>\n        <li class="show-share-mobile-wrap">\n            <button class="show-share-mobile" title="Show sharing options">\n                <span style="display:none;">Show sharing options</span>\n                <i class="icons-share cls sprite-shares-share sprite-shares-small-share"></i>\n            </button>\n        </li>\n    </ul>\n</div>'),d=(0,n.A)('\n<li>\n    <button class="share" target="_blank">\n        <span style="display:none;"></span>\n        <i class="icons-share"></i>\n    </button>\n</li>');function h(e,t){(0,o.P)(`${e}?${new URLSearchParams(t).toString()}`)}const m={facebook(e){h("http://www.facebook.com/dialog/feed",{app_id:e.settings.fbId,display:"popup",link:`${window.location.href}?xrs=RebelMouse_fb#${e.image.id}`,picture:e.image.src,redirect_uri:`https://${window.location.host}/fb_exit.html?fb=${window.location.href}`})},twitter(e){h("https://twitter.com/intent/tweet",{url:`${window.location.href}?xrs=RebelMouse_tw#${e.image.id}`,text:`${e.headline} via @`})},pinterest(e){h("https://www.pinterest.com/pin/create/button/",{url:window.location.href,media:e.image.src,description:e.headline})},tumblr(e){h("https://www.tumblr.com/share",{t:e.headline,u:`${window.location.href}#${e.image.id}`,v:3})},email(e){const t=`Hey, found this on ${document.querySelector('meta[property="og:site_name"]').getAttribute("content")}'s Front Page and thought you would like it: ${window.location.href}#${e.image.id}`,s="mailto:?subject="+encodeURIComponent(e.headline||"")+"&body="+encodeURIComponent(t),i=document.createElement("a");i.target="_blank",i.href=s,i.click()}},u=[{name:"facebook",alias:"fb",useShortClass:!0},{name:"twitter",alias:"tw",useShortClass:!0},{name:"pinterest",alias:"pt"},{name:"tumblr",alias:"tl"},{name:"email",alias:"em"}],p=function(e){this.closest(".social-tab-i").classList.add("show-mobile-share-bar"),e.preventDefault(),e.stopPropagation()},b=function(e){this.closest(".social-tab-i").classList.remove("show-mobile-share-bar"),e.preventDefault(),e.stopPropagation()},g=["[data-image-share-headline] img.rm-shortcode:not(.rm-resized-image)",".body-description img.rm-shortcode:not(.rm-resized-image)",".article-description img.rm-shortcode:not(.rm-resized-image)",".body-description .rm-shortcode > img:not(.rm-resized-image)",".article-description .rm-shortcode > img:not(.rm-resized-image)"].join();function w(e){(0,r.A)(g,(t=>{const s=l.getElement(),n=c.getElement(),o=t.closest("div.body,.image-sharing");(0,i.A)(t,s),"mobile"===(0,a.A)()&&(n.querySelector(".show-share-mobile").addEventListener("click",p),n.querySelector(".close-share-mobile").addEventListener("click",b)),u.forEach((({name:s,alias:i,useShortClass:a})=>{const r=d.getElement(),l=r.querySelector("button");r.querySelector("span").innerText=`Share using ${i}`,l.classList.add(`share-${a?i:s}`),n.querySelector(".social-tab-buttons > ul").appendChild(r),r.querySelector("i").classList.add(i,`sprite-shares-${s}`,`sprite-shares-small-${s}`);const c=o.dataset.headline||o.dataset.imageShareHeadline;r.addEventListener("click",(i=>(m[s]({headline:c,image:t,settings:e}),i.preventDefault(),i.stopPropagation(),!1)))})),s.appendChild(n)}))}}}]);
2//# sourceMappingURL=4836.5a72f92b10ae3bf2477f.bundle.mjs.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.