1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[853],{26176:function(t,e,n){"use strict";n.r(e),n.d(e,{BottomRecircList:function(){return R},default:function(){return O}});var i=n(52322),o=n(2784),r=n(66111),c=n(16938),s=n(9772),u=n(13980),a=n.n(u);function l(t){var e=t.AdUnit,n=t.config,i=t.styles,r=(0,o.useState)("story-bpage"!==n.adPos),c=r[0],s=r[1],u=(0,o.useState)(!1),a=u[0],l=u[1],f=(0,o.useCallback)((function(t){var e=t.type;"story-bpage"===n.adPos&&("empty"===e?l(!0):"buzz"!==e&&s(!0))}),[n.adPos]),d=[i.gridAd,c?i.fullWidth:"",a?i.collapsed:""];return n.refreshOptions={infinite:!0},o.createElement("li",{className:d.join(" ")},o.createElement(e,{config:n,onAdRender:f}))}l.propTypes={AdUnit:a().oneOfType([a().element,a().func]).isRequired,config:a().object.isRequired,styles:a().object};var f=n(24027),d=n(99404),b=n(12228),m=n(33266),p=function(t){function e(){var t;return(0,f.PA)(this,e),(t=(0,f.$w)(this,e,arguments))._state.adCounter=0,t}return(0,f.XW)(e,t),(0,f.qH)(e,[{key:"getNextAd",value:function(){var t=(0,f.Vx)(e,"getNextAd",this,3)(arguments);return t&&!e.isDone(t)&&(t.key="".concat(t.slot.adPos,"-").concat(this._state.adCounter),this._state.adCounter++),t}},{key:"reset",value:function(){(0,f.Vx)(e,"reset",this,3)([]),this._state.adCounter=0}},{key:"isDone",value:function(t){return e.isDone(t)}}])}(d.ZP);var _=n(37863),g=n(83661),y=n(5103),v=n(99112),h=n(41332),z=n(15208),w=n(3695),A=n(46769),k=n(53378),P=n(56543),j=n.n(P),x=n(78623);function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N=function(t){return(0,i.jsx)(l,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){C(t,e,n[e])}))}return t}({AdUnit:g.Z},t))};function R(t){var e=t.t,n=t.className,u=void 0===n?"":n,a=(0,o.useContext)(h.Z).buzz,l=void 0===a?{}:a,f=(0,o.useContext)(s.$),d=(0,o.useContext)(v.Z).destination,y=(0,o.useMemo)((function(){var t=(0,k.sM)(),e=t.country,n=t.language;return"us"!==e||"en"!==n||l.isShopping?"bpager/recirculation/bottom-feed":"recirculation/bottom-feed-mars"}),[l.isShopping]),P=(0,o.useMemo)((function(){return{eventCategory:"bottom-feed",unit_type:"buzz_bottom",unit_name:"recommended_posts"}}),[]),C=!(0,c.Z)("(min-width:40rem)"),R=(0,o.useState)(null),O=R[0],S=R[1];return(0,o.useEffect)((function(){if("loaded"!==f.status)return function(){};var t=function(t){var e=t.buzz,n=t.rowSize,i=t.isMobile,o={units:(i?[b.vc["story-bpage"]]:[]).concat((0,m.k)(10).map((function(t){return b.vc["promo-bottom".concat(t)]}))),unitsRepeated:[b.vc["promo-bottom-infinite"]],density:3*n+1,placements:i?[n+1]:[]};return e.isAd&&(o.units=o.units.length>10?o.units.slice(0,1):[],o.unitsRepeated=[],o.placements=o.units.length>0?[1]:[]),new p({config:o})}({AdUnit:g.Z,buzz:l,rowSize:C?2:3,isMobile:(0,r.isMobile)()});return t.init().then((function(){S(t)}),(function(){})),function(){S(null),t.destroy()}}),[l.id,f,C]),(0,z.h)(l)?(0,i.jsx)(_.Z,{className:"".concat(j().bottomRecircList," ").concat((0,w.G)(l)?j().recircListNews:""," ").concat(l.isShopping?j().shoppingBottomArticle:""," ").concat(u),"aria-labelledby":"bottom-recirc-title",enableAds:!l.isQuiz&&!(0,A.g)(l)||(0,x.l)({isBFN:(0,w.G)(l)}),service:"recsys",serviceParams:{endpoint:y},trackingData:P,lazyLoad:!1,pageSize:75,adManager:O,RecircAd:N,origin:"morebf",variant:"bottomUnit",children:(0,i.jsx)("div",{className:"".concat(j().sectionTitle," ").concat(j()[d]),id:"bottom-recirc-title",children:e("more_from_buzzfeed")})}):null}var O=(0,y.withTranslation)("common")(R)},56543:function(t){t.exports={bottomRecircList:"bottomrecirclist_bottomRecircList__LdERA",shoppingBottomArticle:"bottomrecirclist_shoppingBottomArticle__6IkxT",sectionTitle:"bottomrecirclist_sectionTitle__W2KrP",recircListNews:"bottomrecirclist_recircListNews__IcRbP",buzzfeed:"bottomrecirclist_buzzfeed__CAyOb",buzzfeed_news:"bottomrecirclist_buzzfeed_news__VIwmj"}}}]); 2//# sourceMappingURL=recirculation-bottom.3de3ab6100e81fc4.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.