PageSourceSearch

https://www.alternet.org/static/dist/social-ux/8097.27fb1583cba0e3546bbc.bundle.js

js alternet.org collected 2026-09-24 08:33:37 UTC 6,500 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[8097],{9621:function(t,e,n){function i(t){var e=document.createElement("template");return e.innerHTML=t,{template:e,getElement:function(){return e.content.cloneNode(!0).firstElementChild}}}n.d(e,{A:function(){return i}})},3798:function(t,e){e.A=function(t,e){return t.parentNode.insertBefore(e,t)}},315:function(t,e,n){n.d(e,{A:function(){return o}});var i=n(3798);function o(t,e){(0,i.A)(t,e),e.appendChild(t)}},8097:function(t,e,n){n.r(e),n.d(e,{default:function(){return m}});var i=n(9621),o=function(t){return(0,i.A)('\n    <div class="dots-container" style="'.concat(t.style,'">\n        <div class="product-dot-cont">\n            <div class="product-dot">\n                <div class="details-container hidden desktop">\n                    <div class="description-container">\n                        <p class="dots-container__title">').concat(t.title,'</p>\n                             <img src="').concat(t.thumbnail,'" class="dots-container__image" />\n                        <p class="dots-container__price">').concat(t.price,'</p>\n                    </div>\n                    <div class="info-container">\n                        <a class="dots-container__link"  href="').concat(t.href,'" target="_blank">"').concat(t.buyCaption,'"</a>\n                    </div>\n                </div>\n                <div class="details-container hidden mobile">\n                    <div class="description-container">\n                        <img src="').concat(t.thumbnail,'" class="dots-container__image" />\n                        <p class="dots-container__title">').concat(t.title,'</p>\n                    </div>\n                    <div class="info-container">\n                        <p class="dots-container__price">').concat(t.price,'</p>\n                        <a class="dots-container__link"  href="').concat(t.href,'" target="_blank">"').concat(t.buyCaption,'"</a>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n')).getElement()},c=n(315),r=n(8781);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t){var e=document.createElement("div"),n=document.createElement("button"),i=document.createElement("button");return e.className="product-image-container",i.className="hide-products hidden",i.appendChild(document.createTextNode(t&&t.hideProductsCaption?t.hideProductsCaption:"TAP TO HIDE PRODUCTS")),n.className="view-products",n.appendChild(document.createTextNode(t&&t.viewProductsCaption?t.viewProductsCaption:"TAP TO VIEW PRODUCTS")),{productContainer:e,hideButton:i,showButton:n}}function d(t,e){var n=e.productContainer;(0,c.A)(t.closest(".share-tab-img")||t,n),n.appendChild(e.showButton),n.appendChild(e.hideButton)}function s(t,e,n){t.forEach((function(t){!function(t,e){var n=document.createElement("div");n.className="products-container hidden",t.forEach((function(t){n.appendChild(o(t))})),e.productContainer.appendChild(n)}(Array.from(t.querySelectorAll("area")).map((function(t){var n,i,o=(n=(t.coords||"").split(","),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,c,r,a=[],l=!0,d=!1;try{if(c=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=c.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){d=!0,o=t}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(d)throw o}}return a}}(n,i)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=o[0],r=o[1];return!(!c||!r)&&{style:"top: ".concat(r,"%; left: ").concat(c,"%;"),title:t.title,href:t.href,price:t.dataset.price,thumbnail:t.dataset.imageSrc,buyCaption:e}}
1)).filter(Boolean),n)}))}function u(t){t.preventDefault(),t.currentTarget.parentNode.querySelectorAll(".products-container, .hide-products, .view-products, .share-media-panel").forEach((function(t){t.classList.toggle("hidden")}))}function p(t){t.productContainer.querySelectorAll(".details-container").forEach((function(t){t.classList.toggle("hidden",!0)}))}function f(t){t.showButton.addEventListener("click",u),t.hideButton.addEventListener("click",u),t.productContainer.querySelectorAll(".product-dot-cont").forEach((function(e){e.addEventListener("click",(function(e){var n=e.currentTarget,i="mobile"===(0,r.A)()?n.querySelector(".details-container.mobile"):n.querySelector(".details-container.desktop"),o=i.closest(".product-image-container"),c=i.classList.contains("hidden");if(p(t),i.classList.toggle("hidden",!c),c){var a=i.getBoundingClientRect(),l=o.getBoundingClientRect(),d=a.left+window.scrollX+i.clientWidth-80,s=l.left+window.scrollX+o.clientWidth,u=a.top+window.scrollY+i.clientHeight,f=l.top+window.scrollY+o.clientHeight;if("mobile"===(0,r.A)()){var h=n.querySelector(".details-container.mobile");h.style.top=(o.clientHeight-h.clientHeight)/2+"px",h.style.left=o.clientWidth-h.clientWidth+"px",window.addEventListener("scroll",(function(){p(t)}))}else if(a.left-l.left<i.clientWidth/2&&i.classList.add("left"),s-d<i.clientWidth/2&&i.classList.add("right"),f-u<-30){var m=-1*(i.clientHeight+36);i.classList.add("bottom"),i.style.top="".concat(m,"px")}}else window.removeEventListener("scroll",p,!0)}))}))}function h(t){if(t.post.media_html.match(/<map/g)){var e=l(),n=document.querySelector(".widget__image");if(n.closest(".product-image-container"))return;d(n,e),function(t,e,n){var i=document.createElement("div");i.innerHTML=e,s(i.querySelectorAll("map"),t.closest("article").dataset.buyCaption||"Buy",n)}(n,t.post.media_html,e),f(e)}}function m(t,e){if(!e.querySelectorAll(".product-image-container").length)if(e.useMap){var n=l(e.closest("article").dataset);d(e,n),function(t,e){var n=(t.useMap||"").replace(/^#/,"");s(document.querySelectorAll('map[name="'.concat(n,'"]')),t.closest("article").dataset.buyCaption||"Buy",e)}(e,n),f(n)}else REBELMOUSE_STDLIB.getBootstrap().then(h)}}}]);
2//# sourceMappingURL=8097.27fb1583cba0e3546bbc.bundle.js.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.