PageSourceSearch

https://www.constructionbuzz.co.uk/_next/static/chunks/2989.f7c690e0209cca0a.js

js constructionbuzz.co.uk collected 2026-09-29 02:45:10 UTC 3,350 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2989],{98851:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});var l=t(85893),o=t(67294),r=t(28926),i=t(5152),s=t.n(i);let a=s()(()=>Promise.all([t.e(1664),t.e(1730),t.e(5006)]).then(t.bind(t,52967)),{loadableGenerated:{webpack:()=>[52967]},loading:()=>(0,l.jsx)("div",{})}),d=()=>{let{setOpenModal:e}=(0,r.mK)(),n=(0,o.useMemo)(()=>(0,l.jsx)(a,{}),[]),t=(0,o.useCallback)(n=>{e("featuredSourceModal",n)},[e]);return{modal:n,setOpenModal:t}};var u=t(32804),p=t(57939),y=t(73699);function c(e){let{lastIndex:n,options:t}=e,[r,i]=(0,o.useState)(n),{getFeaturedSourcesList:s}=(0,u.D)(),{sourcesLoading:a}=(0,u.K)(),d=(0,o.useCallback)(async()=>{var e,n,l,o,a;await s({entityTypes:null!==(l="string"==typeof t.entityTypes?t.entityTypes:null==t?void 0:null===(e=t.entityTypes)||void 0===e?void 0:e.join(","))&&void 0!==l?l:"6,7",order:0,followedOnly:-1,parentId:0,startIndex:r,pageSize:null!==(o=t.number)&&void 0!==o?o:6,userType:1,companyIds:null===(n=t.companyIds)||void 0===n?void 0:n.join(",")}),i(r+(null!==(a=t.number)&&void 0!==a?a:6))},[s,r,t]);return(0,l.jsx)("div",{className:"col-span-2",children:(0,l.jsx)(y.default,{color:"Secondary",onClick:d,isLoading:a,fullWidth:!0,children:"Load More"})})}let v=s()(()=>Promise.all([t.e(1664),t.e(7891),t.e(4198)]).then(t.bind(t,14198)),{loadableGenerated:{webpack:()=>[14198]},loading:()=>(0,l.jsx)("div",{})}),m=s()(()=>t.e(9842).then(t.bind(t,79842)),{loadableGenerated:{webpack:()=>[79842]},loading:()=>(0,l.jsx)("div",{})}),g=e=>{let{sources:n,openAsLinks:t,options:o}=e,{modal:r,setOpenModal:i}=d();return(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-4 p-2 max-w-[490px] overflow-auto",children:[null==n?void 0:n.map(e=>(0,l.jsx)(v,{source:e,openAsLinks:t||e.entityType===p.D.Advertisment,openModal:i},e.entityType+e.entityId)),(0,l.jsx)(c,{lastIndex:6,options:o}),r]})};function b(e){var n;let{options:t}=e,{openAsLinks:r,title:i}=t,{getFeaturedSourcesList:s}=(0,u.D)(),{featuredSources:a}=(0,u.K)();return(0,o.useEffect)(()=>{var e,n,l,o;s({entityTypes:null!==(l="string"==typeof t.entityTypes?t.entityTypes:null==t?void 0:null===(e=t.entityTypes)||void 0===e?void 0:e.join(","))&&void 0!==l?l:"6,7",order:0,followedOnly:-1,parentId:0,startIndex:0,pageSize:null!==(o=t.number)&&void 0!==o?o:6,userType:1,companyIds:null===(n=t.companyIds)||void 0===n?void 0:n.join(",")})},[s,t]),(0,l.jsx)(l.Fragment,{children:(null==a?void 0:a.length)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m,{children:null!==(n=null==i?void 0:i.toUpperCase())&&void 0!==n?n:"FEATURED SOURCES"}),(0,l.jsx)(g,{sources:a,openAsLinks:r,options:t})]}):null})}},32804:function(e,n,t){t.d(n,{D:function(){return l.Db},K:function(){return l.KK}});var l=t(65742)},57939:function(e,n,t){var l,o;t.d(n,{D:function(){return l}}),(o=l||(l={}))[o.IndustryCategories=1]="IndustryCategories",o[o.IndustryTopics=2]="IndustryTopics",o[o.CompanyCategory=3]="CompanyCategory",o[o.IndustryTerm=4]="IndustryTerm",o[o.IndustryTermGroups=5]="IndustryTermGroups",o[o.Company=6]="Company",o[o.Magazine=7]="Magazine",o[o.Blog=8]="Blog",o[o.GlobalSource=9]="GlobalSource",o[o.GlobalPublisher=10]="GlobalPublisher",o[o.SavedArticle=11]="SavedArticle",o[o.IndustryNews=12]="IndustryNews",o[o.OrganizerNews=13]="OrganizerNews",o[o.Advertisment=-1]="Advertisment"}}]);

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.