PageSourceSearch

https://www.larepublica.net/static/dist/social-ux/486.d825ead534e23dd6e558.bundle.js

js larepublica.net collected 2026-09-24 08:55:50 UTC 3,679 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[486],{115:function(n,t,e){function r(n,t){var e,r=null;return function(){for(var o=!0,i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];null!=r&&(o=n.apply(null,r.concat(u))),r=u,o&&(e&&(e(),e=null),e=t.apply(null,u))}}e.d(t,{A:function(){return r}})},5520:function(n,t,e){e.d(t,{A:function(){return i}});var r=e(3990),o=(0,e(2452).A)((function(n,t,e,r,o){return r().then((function(t){return t(n)})).then((function(n){return n(t,e,o)}))}));function i(n,t,e,i){var u=n in window.RM_OVERRIDES?window.RM_OVERRIDES[n]:null,c=u||i;return(0,r.A)().then((function(n){var r=o(n,t,e),l=u?function(){return r(i,null)}:null;return r(c,l).then((function(t){return[n,t]}))}))}},1580:function(n,t,e){e.d(t,{U:function(){return o}});var r=e(2452),o=(0,r.A)((function(n,t,e,r,o){e.classList.add("loaded","rm-preact");var i=n.preact.h(t,r);return n.preact.render(i,e,o)}));t.A=(0,r.A)((function(n,t,e,r){return o(n,t,e,r,null)}))},486:function(n,t,e){e.r(t),e.d(t,{default:function(){return g},renderLikeButton:function(){return v}});var r=e(6128),o=e(5520),i=e(1580),u=e(115),c=e(2452),l=e(1335),a=e(7107),f=e(5874);function s(n,t,e){var r={post_site_id:n,post_id:t,site_id:e};return(0,f.af)("/core/feeds/post/likes/","POST",r)}function d(n,t){var e={post_id:t,post_site_id:n};return(0,f.af)("/core/feeds/post/likes/","DELETE",e)}function p(n){return(0,f.mQ)("/core/feeds/post/likes/".concat(n))}function h(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function A(n,t,e,r){return n!=e||r.profileSite.id!==t.profileSite.id}var v=(0,c.A)((function(n,t,e,r,o,i,u,f,s){if(f)n({totalLikes:r,isLoggedIn:!1,isLiked:!1,toggleLike:a.A});else{var d="".concat(s.profileSite.id),p=!0,h=!1,A=(0,c.A)((function(n,t){return!!h||(h=!0,(n?i:o)(d).then(v(n)).catch(console.error).finally(y),t.preventDefault(),!1)})),v=(0,l.A)((function(n){k(!n)}));t.intersectionObserverProvider.addTask({onIntersect:function(){u().then(g).catch(console.error)},rawNodes:[e],threshold:200,oneTime:!0}),k(!1)}function y(){h=!1}function k(t){var e={isLoggedIn:p,isLiked:t,totalLikes:r,toggleLike:A(t)};n(e)}function g(n){k(d in n)}})),y=(0,c.A)((function(n,t,e){var o,a,f=(a=2,function(n){if(Array.isArray(n))return n}(o=e)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,o,i,u,c=[],l=!0,a=!1;try{if(i=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(n){a=!0,o=n}finally{try{if(!l&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(a)throw o}}return c}}(o,a)||function(n,t){if(n){if("string"==typeof n)return h(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?h(n,t):void 0}}(o,a)||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.")}()),y=f[0],k=f[1],g=t.closest("article[elid]"),b=g.getAttribute("elid"),L=(0,r.A)(".post-context-".concat(b),g).post.authors[0],m="postLikes"in t.dataset?parseInt(t.dataset.postLikes,10):0,w=(0,c.A)(s)(L,b),S=(0,l.A)(d)(L,b),I=(0,l.A)(p)(b);n.listenForUserInfo((0,u.A)(A,v((0,i.A)(y,k,t),n,t,m,w,S,I)))})),k=function(){return e.e(4749).then(e.bind(e,4749)).then((function(n){return n.default}))};function g(n,t){(0,o.A)("LikeButton",n,{},k).then(y(n,t))}}}]);
2//# sourceMappingURL=486.d825ead534e23dd6e558.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.