"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[1919],{1692:function(t,e,n){n.d(e,{Tj:function(){return s},pb:function(){return o},qI:function(){return a},qh:function(){return i}});var r=n(3964);const o=(0,r.A)(((t,e)=>e.filter(t))),s=(0,r.A)(((t,e)=>e.map(t))),i=(0,r.A)(((t,e)=>e.indexOf(t))),a=(0,r.A)(((t,e)=>e.flatMap(t)))},8321:function(t,e,n){n.d(e,{f:function(){return A},q:function(){return g}});var r=n(367),o=n(4465),s=n(298);const i="load_more_posts/data.js",a={};function u(t){return{site_id:t.bootstrap.site.id,node_id:t.sklId,resource_id:t.bootstrap.resourceId,path_params:JSON.stringify(t.bootstrap.pathParams),rm_page_path:t.path,formats:"html",...t.bootstrap.tag?.isSection&&{is_section_tag:1},...t.pathParams}}function c(t){return t.sklId in a||(a[t.sklId]=1),{...u(t),rm_lazy_load:1,exclude_post_ids:t.excludePostIds,pn:a[t.sklId],last_post_id:t.lastPostId,pn_strategy:t.ignorePageNumber?"ignore":""}}function d(t){return[`/res/${i}`,t]}function f([t,e]){return`${t}?${new URLSearchParams(e).toString()}`}const l=(0,r.A)((function(t){return{...u(t),post_id:t.postId,override_device:"desktop"}}),d,f),p=(0,r.A)(c,d,f),m=(0,r.A)(c,(function(t){return[`/core/${i}`,t]}),f);function h(t){return a[t.node_id]++,[t,a[t.node_id]]}function A(t){const e=(0,o.x3)()?m:p;return(0,s.mQ)(e(t)).then(h)}function g(t){return(0,s.mQ)(l(t))}},409:function(t,e,n){n.d(e,{A:function(){return d}});var r=n(367),o=n(1692),s=t=>e=>Array.from(e.querySelectorAll(t));const i=t=>(0,r.A)(a,c)(t),a=t=>u(t)?new Set:new Set((t.dataset.postsSources||"").split(",")),u=t=>"true"===t.dataset.ignorePageNumber,c=t=>(0,r.A)(s("[data-source]"),(0,o.pb)((t=>"false"!==t.getAttribute("data-source-unique"))),(0,o.pb)((e=>!t.has(e.getAttribute("data-source")))),(0,o.qI)(s("[elid]")),(0,o.Tj)((t=>t.getAttribute("elid"))))(document);function d(t,e){const n=Array.from(t.parentElement.querySelectorAll("article")),r=n[n.length-1],o=r?r.getAttribute("elid"):"",s=i(t),a=new Set(s);return{sklId:t.dataset.sklId,bootstrap:e.settings,path:e.path,pathParams:e.pathParams,excludePostIds:Array.from(new Set(a)).sort().join(","),ignorePageNumber:u(t),lastPostId:o}}},5282:function(t,e,n){function r(t){const e=(t.type||"").toLowerCase();if("video-content"===e||function(t){return t.startsWith("application/")&&t.endsWith("json")}(e))return;const n=document.createElement("script");var r;t.src?n.setAttribute("src",t.src):n.textContent=t.innerText,setTimeout((r=n,function(){document.head.appendChild(r)}),1)}function o(t){t.querySelectorAll("script").forEach(r)}n.d(e,{A:function(){return o}})},5508:function(t,e,n){n.d(e,{A:function(){return s},H:function(){return o}});var r=n(5282);function o(t,e){return t.innerHTML=e,(0,r.A)(t),t}function s(t,e,n=!1){const o=document.createElement("template");return o.innerHTML=e,(0,r.A)(o.content),n?t.insertAdjacentHTML("afterend",e):t.parentElement.insertBefore(o.content,t),n?t.nextElementSibling:t.previousElementSibling}},9046:function(t,e,n){n.d(e,{hD:function(){return u},iq:function(){return s},o2:function(){return i}});var r=n(5508),o=n(893);function s(t,e,n=!1){return(0,o.A)(e.css),n?(0,r.H)(t,e.posts_html):(0,r.A)(t,e.posts_html)}function i(t){let e=window.innerHeight;const n=t.querySelector(".posts-custom");if(n)e=n.offsetHeight;else{const n=t.querySelectorAll("article");if(n.length){const t=n[n.length-1];e=Math.min(6*e,Math.max(6*t.offsetHeight,e))}}return e}function a(t){return t.dataset.hasMore&&"false"!==t.dataset.hasMore}function u(t){const e=Array.from(t.querySelectorAll("[data-has-more]")).filter(a);return a(t)&&e.push(t),!!e.length}},1919:function(t,e,n){n.r(e),n.d(e,{default:function(){return d}});var r=n(4361),o=n(3964),s=n(409),i=n(8321),a=n(9046);const u=(0,o.A)(((t,[e,n])=>(0,a.iq)(t,e))),c=(0,o.A)((function(t,e){"hasMore"in e.dataset&&"true"!==e.dataset.hasMore||"morePostsExists"in e.dataset&&"true"!==e.dataset.morePostsExists||(0,i.f)((0,s.A)(e,t)).then(u(e))}));function d(t){(0,r.A)(".rm-lazy-load-post-lcp-wrapper",c(t))}}}]);
//# sourceMappingURL=1919.4e0becb8b663a691c463.bundle.mjs.map