PageSourceSearch

https://lbbonline.com/_next/static/chunks/pages/dashboard/data-admins-c271bb41aadede6c.js

js lbbonline.com collected 2026-09-24 09:16:43 UTC 18,688 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4826],{58119:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return U}});var n=r(59499),a=r(67294),o=r(18876),l=r(3528);r(51819);var i=r(34579),s=r(84710),c=r(46508);r(45674),r(87371);var u=r(27812),p=r(50029),d=r(87794),g=r.n(d),y=r(11163),m=r(95557),h=r(85893);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var x=function(e){var t=(0,a.useState)({page:e.page}),r=t[0];t[1];var n=Math.abs(e.currentpage-r.page)>=3;return(0,h.jsx)("li",{children:(0,h.jsx)("a",{onClick:function(t){n||e.setPage(r.page)},className:(n?"":" cursor-pointer hover:bg-gray-100 hover:text-gray-700 ")+" px-3 py-2 leading-tight text-gray-500 ".concat(e.currentpage==r.page?" text-white bg-lbb_black pointer-events-none":"bg-white"," border border-gray-300 "),children:n?"...":r.page})})},f=function(e){var t=(0,a.useState)({elements:[]}),r=t[0],n=t[1];(0,a.useEffect)(function(){if(e.page){for(var t=[],r=0;r<e.total_pages;r++)3>=Math.abs(e.page-(r+1))&&t.push({page:r+1});n(function(e){return j(j({},e),{},{elements:t})})}},[e.page]);var o=e.page<e.total_pages,l=e.page>1;return(0,h.jsx)("nav",{"aria-label":"Page navigation example",children:(0,h.jsxs)("ul",{className:"inline-flex -space-x-px",children:[(0,h.jsx)("li",{children:(0,h.jsx)("a",{onClick:function(){e.setPage(1)},className:(l?" cursor-pointer hover:bg-gray-100 hover:text-gray-700 ":"")+"px-3 py-2 ml-0 leading-tight text-gray-500 bg-white border border-gray-300 rounded-l-lg ",children:"First"})}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{onClick:function(){e.setPage(Math.max(e.page-1,1))},className:(l?" cursor-pointer hover:bg-gray-100 hover:text-gray-700 ":"")+"px-3 py-2 ml-0 leading-tight text-gray-500 bg-white border border-gray-300 ",children:"Previous"})}),r.elements.sort(function(e,t){return e.page-t.page}).map(function(t,r){return(0,h.jsx)(x,{currentpage:e.page,page:t.page,setPage:e.setPage},t.page)}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{onClick:function(){e.setPage(Math.min(e.page+1,e.total_pages))},className:(o?" cursor-pointer hover:bg-gray-100 hover:text-gray-700 ":"")+"px-3 py-2 leading-tight text-gray-500 bg-white border border-gray-300 ",children:"Next"})}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{onClick:function(){e.setPage(e.total_pages)},className:(o?" cursor-pointer hover:bg-gray-100 hover:text-gray-700 ":"")+"px-3 py-2 leading-tight text-gray-500 bg-white border border-gray-300 rounded-r-lg ",children:"Last"})})]})})},_=r(30279),v=r(66275),N=r(50653),w=r(67542),D=r(67067),k=r(150),S=r(21857),T=r(75187),O=r(44122),Z=r(45036),C=r(37918),P=r(11752);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var q=r.n(P)()().publicRuntimeConfig.mylbbUrl,z=[{id:0,value:0,label:"Companies",title:"Companies",otherTitle:"Companies",model:"company",contentType:k.Xc.company},{id:1,value:1,label:"Company groups",title:"Company groups",otherTitle:"Company groups",model:"group",contentType:k.Xc.network},{id:2,value:2,label:"Networks",title:"Networks",otherTitle:"Networks",model:"holdingcompany",contentType:k.Xc.holdingCompany}],R=new Date,X=new Date(R-2592e6),M=R.getFullYear(),G=R.getMonth()+1;String(M),String(G),function(){for(var e=[],t=2015;t<=M;t++)e.push({id:t,title:t})}();var I={open:!1,submit_errors:null,companies:null,checked_user:!1,skip:0,page:1,temp_q:"",page_size:50,gettingData:!1,user:!1,object_id:null,datatype:1,pastData:null,country:null,region:null,showOveriew:!1,sortType:"views",sortDirection:1,q:null,autoCompleteData:[],category:null,start_date:X,end_date:R,company_type:null,justForSort:!1,group:null,holding_company:null,item:z[0].id,type:z[0].type,content_type_id:z[0].contentType,model:z[0].model,pageCount:0,news_count:0,work_count:0,job_count:0},J=function(e){var t,r=(0,y.useRouter)(),n=(r.query,r.asPath),o=r.push,i=(0,a.useContext)(l.ko),s=i.user,c=i.not_logged,d=(0,a.useState)(I),b=d[0],j=d[1],x=function(e){b.sortType!=e?j(function(t){return E(E({},t),{},{sortType:e,sortDirection:1,justForSort:!0})}):0==b.sortDirection?j(function(t){return E(E({},t),{},{sortType:e,sortDirection:1,justForSort:!0})}):j(function(t){return E(E({},t),{},{sortType:e,sortDirection:-1*b.sortDirection,justForSort:!0})})},P=(0,C.X4)({company_type_ids:b.company_type?"{".concat(b.company_type,"}
1"):null,continent_ids:b.region?"{".concat(b.region,"}"):null,country_ids:b.country?"{".concat(b.country,"}"):null,association_ids:null,group_ids:b.group?"{".concat(b.group,"}"):null});(0,a.useEffect)(function(){if(c){o(q+"/auth/login?next="+n);return}if(s&&!s.is_staff){o("/dashboard/data");return}},[c]),(0,a.useEffect)(function(){j(function(e){return E(E({},e),{},{gettingData:!b.justForSort})}),(0,D.lP)({page:b.page,start_date:b.start_date,end_date:b.end_date,company_type:b.company_type?[b.company_type]:null,country:b.country?[b.country]:null,group:b.group?[b.group]:null,holding_company:b.holding_company?[b.holding_company]:null,region:b.region?[b.region]:null,page_size:b.page_size,q:b.q?(0,k.GT)(b.q,!0):null,model:b.model,sort_field:b.sortType,sort_direction:b.sortDirection}).then(function(e){j(function(t){return E(E({},t),{},{companies:e.data,pageCount:e.num_pages,gettingData:!1,justForSort:!1})})},function(e){j(function(e){return E(E({},e),{},{gettingData:!1,justForSort:!1})})}),(0,D.fk)({from:b.start_date,to:b.end_date}).then(function(e){j(function(t){return E(E({},t),{},{news_count:e.news,work_count:e.work,job_count:e.job})})},function(e){})},[b.page,b.start_date,b.end_date,b.company_type,b.country,b.group,b.holding_company,b.region,b.page_size,b.q,b.model,b.sortType,b.sortDirection]);var F=P.error;if(F)return(0,k.Js)(JSON.stringify(F));var M=P.loading,G=(t=(0,p.Z)(g().mark(function e(t){var r;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,D.zc)({text:t,model:b.model,exclude_lbb:!0});case 2:return r=e.sent,e.abrupt("return",r.data);case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),J=function(e){j(function(t){return E(E({},t),{},{page:1,start_date:e.startDate,end_date:e.endDate})})},L=function(e){j(function(t){return E(E({},t),{},{page:1,q:e})})},K=function(e){e&&-1==e.value&&(e={value:null}),j(function(t){return E(E({},t),{},{page:1,company_type:e.value})})},U=function(e){j(function(t){return E(E({},t),{},{page:e})})},W=b.region||b.group||b.holding_company||b.country||b.company_type||b.start_date!=X||b.end_date!=R||"views"!=b.sortType;return(0,h.jsx)(w.Z,{currentRoute:"/dashboard/data",children:(0,h.jsxs)(S.Z,{children:[(0,h.jsx)(Z.Z,{link:"/dashboard/data",className:"mt-2.5 mb-[13px]",title:"Insights"}),(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"p-4",children:"Data is updated every 24 hours."}),(0,h.jsxs)("div",{className:"flex flex-col ",children:[(0,h.jsxs)("div",{className:"flex space-x-2 pb-2 items-center justify-end",children:[(0,h.jsx)(_.Z,{multiSelect:!1,options:z,value:b.item,onChange:function(e){var t=z.filter(function(t){return t.id==e.value})[0];t&&j(function(r){return E(E({},r),{},{page:1,gettingData:!0,item:e.value,type:t.type,content_type_id:t.contentType,model:t.model,channel:null,q:null,category:null,autoCompleteData:[],country:null,region:null,companyType:null,sortType:"views",sortDirection:1,start_date:X,end_date:R,company_type:null,group:null,holding_company:null})})},itemvalue:"id","data-cy":"items",alignRight:!0,itemlabel:"title",defaultLabel:"Type",className:b.gettingData?"disabled large":"large"}),!M&&1==b.item&&(0,h.jsx)(_.Z,{multiSelect:!1,value:b.company_type,options:P.data&&P.data.admin_data_groups_company_types?[{value:-1,label:"Company Type"}].concat((0,u.Z)(P.data.admin_data_groups_company_types.map(function(e){return{value:e.id,label:e.title}}))):[],onChange:K,itemvalue:"id","data-cy":"company_type",itemlabel:"title",className:b.gettingData?"disabled large":"large",placeholder:"Company Type"}),!M&&0==b.item&&(0,h.jsx)(_.Z,{multiSelect:!1,value:b.company_type,options:P.data&&P.data.company_type?[{value:-1,label:"Company Type"}].concat((0,u.Z)(P.data.company_type.map(function(e){return{value:e.id,label:e.title}}))):[],onChange:K,itemvalue:"id","data-cy":"company_type",itemlabel:"title",className:b.gettingData?"disabled large":"large",placeholder:"Company Type"}),!M&&0==b.item&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_.Z,{multiSelect:!1,value:b.region,options:P.data&&P.data.continent?[{value:-1,label:"Region"}].concat((0,u.Z)(P.data.continent.map(function(e){return{value:e.id,label:e.continent}}))):[],onChange:function(e){e&&-1==e.value&&(e={value:null}),j(function(t){return E(E({},t),{},{page:1,region:e.value})})},"data-cy":"region",itemvalue:"id",itemlabel:"continent",className:b.gettingData?"disabled large":"large",placeholder:"Region"}),(0,h.jsx)(_.Z,{multiSelect:!1,options:P.data&&P.data.country?[{value:-1,label:"Country"}].concat((0,u.Z)(P.data.country.map(function(e){return{value:e.id,label:e.title}}
1))):[],value:b.country,onChange:function(e){e&&-1==e.value&&(e={value:null}),j(function(t){return E(E({},t),{},{page:1,country:e.value})})},itemvalue:"id",itemlabel:"title",className:b.gettingData?"disabled large":"large","data-cy":"country",placeholder:"Country"}),(0,h.jsx)(_.Z,{multiSelect:!1,value:b.group,options:P.data&&P.data.groups?[{value:-1,label:"Group"}].concat((0,u.Z)(P.data.groups.map(function(e){return{value:e.id,label:e.name}}))):[],onChange:function(e){e&&-1==e.value&&(e={value:null}),j(function(t){return E(E({},t),{},{page:1,group:e.value})})},itemvalue:"id",itemlabel:"name",className:b.gettingData?"disabled large":"large","data-cy":"group",placeholder:"Group"}),(0,h.jsx)(_.Z,{multiSelect:!1,value:b.holding_company,options:P.data&&P.data.holding_company?[{value:-1,label:"Networks"}].concat((0,u.Z)(P.data.holding_company.map(function(e){return{value:e.id,label:e.title}}))):[],onChange:function(e){e&&-1==e.value&&(e={value:null}),j(function(t){return E(E({},t),{},{page:1,holding_company:e.value})})},itemvalue:"id",itemlabel:"title",className:b.gettingData?"disabled large":"large","data-cy":"holding_company",placeholder:"Networks"})]}),(0,h.jsx)(v.Z,{startDate:b.start_date,endDate:b.end_date,className:b.gettingData?"disabled":"",placeholder:"Date",useRange:!0,value:{startDate:b.start_date,endDate:b.end_date},onChange:function(e){J(e)},name:"date_range"}),W&&(0,h.jsx)("div",{onClick:function(){j(function(e){return E(E({},e),{},{page:1,channel:null,q:null,temp_q:"",category:null,autoCompleteData:[],country:null,region:null,companyType:null,sortType:I.sortType,sortDirection:I.sortDirection,start_date:X,end_date:R,company_type:null,group:null,holding_company:null})})},className:"cursor-pointer icon-delete text-lbb_black mb-3",style:{fontSize:30}})]}),(0,h.jsx)("div",{className:"flex space-x-2 pb-2",children:(0,h.jsx)(N.Z,{type:"text",name:"q",search:!0,onKeyUp:function(e){"Enter"===e.key&&L(b.temp_q)},theme:"dashboard large ",className:b.gettingData?"disabled":"",onSuggestionSelected:function(e){L(b.temp_q)},getSuggestions:G,isSearchable:!0,onChange:function(e){e&&j(function(t){return E(E({},t),{},{temp_q:e[1]})})},value:b.temp_q})})]}),(0,h.jsx)("div",{className:"flex justify-center py-4",children:b.pageCount>1&&(0,h.jsx)(f,{setPage:U,page:b.page,total_pages:b.pageCount})}),!b.justForSort&&b.gettingData&&(0,h.jsx)(T.Z,{}),(!b.gettingData||b.justForSort)&&(0,h.jsx)("div",{className:"w-full overflow-x-auto",children:(0,h.jsxs)("table",{className:"w-[1800px]",children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{className:" py-4 bg-lbb_black ",children:[(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"title",clicked:x,justSorting:b.justForSort,type:"title",currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"Name"})})}),"company"==b.model&&(0,h.jsx)("th",{className:"px-2 border-r border-black",children:(0,h.jsx)(m.Z,{clicked:x,type:"company_type",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"Company type"})})}),(0,h.jsx)("th",{className:"px-2 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers views",clicked:x,type:"views",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"Total views"})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"news",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"News"})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"tags",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"Tagged"})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"lab",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"Editorials"})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"lab",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:"Lab"})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"feature_templates",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:" Featured Templates "})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"work",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:" Works "})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"jobs",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:" Jobs "})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"entries_count",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:" The Immortal Awards entries "})})}),(0,h.jsx)("th",{className:"px-2 py-4 border-r border-black",children:(0,h.jsx)(m.Z,{className:"numbers",clicked:x,type:"collection_count",justSorting:b.justForSort,currentType:b.sortType,direction:b.sortDirection,children:(0,h.jsx)(O.Z,{white:!0,children:" Collections"})})})]})}),(0,h.jsxs)("tbody",{className:"[&>*:nth-child(odd)]:bg-white",children:[!b.justForSort&&b.gettingData&&(0,h.jsx)(T.Z,{}),!b.gettingData&&b.companies&&b.companies.length<=0&&(0,h.jsx)(O.Z,{children:"No data found."}),b.companies&&b.companies.map(function(e,t){return(0,h.jsxs)("tr",{className:"py-4  ",children:[(0,h.jsx)("td",{className:"px-2 py-4",children:e.name}),"company"==b.model&&(0,h.jsx)("td",{className:"px-2 py-4",children:e.company_type?e.company_type:""}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.views}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.news}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.tags}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.editorials}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.lab}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.feature_templates}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.work}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.jobs}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.entries_count}),(0,h.jsx)("td",{className:"px-2 py-4",children:e.collection_count})]},t)})]})]})}),(0,h.jsx)("div",{className:"flex justify-center py-4",children:b.pageCount>1&&(0,h.jsx)(f,{setPage:U,page:b.page,total_pages:b.pageCount})})]})]})})};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var U=(0,i.h)((0,o.C)(function(e){return(0,h.jsxs)(l.Kv,K(K({},e),{},{children:[(0,h.jsx)(c.Z,{meta:{},noindexprop:!0}),(0,h.jsx)(s.k_,K(K({},e),{},{children:(0,h.jsx)(J,K({},e))}))]}))}))},45036:function(e,t,r){"use strict";var n=r(11163);r(67294);var a=r(44122),o=r(85893);t.Z=function(e){var t=e.title,r=e.newItems,l=e.className,i=e.link,s=(0,n.useRouter)();return(0,o.jsxs)("div",{className:"flex mt-2.5 mb-[30px] items-center ".concat(l),children:[(0,o.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:function(){return s.push(i||"/mylbb")},children:[(0,o.jsx)("img",{src:"/back.svg",alt:"Group_3646"}),(0,o.jsx)(a.Z,{className:"pl-3.5",bold:!0,size:"text-size_24_24",children:t})]}),!!r&&(0,o.jsxs)("div",{className:"bg-alert_red px-2 py-1.5 rounded-full font-barlow font-semibold text-white text-size_16_16 ml-3 mt-1",children:[r," NEW"]})]})}},65934:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/data-admins",function(){return r(58119)}])}},function(e){e.O(0,[3662,1739,2842,6115,6037,7614,2580,1664,3231,8808,381,5470,3973,7542,9248,7050,4710,4562,9774,2888,179],function(){return e(e.s=65934)}),_N_E=e.O()}]);

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.