PageSourceSearch

https://www.luminus.be/_next/static/chunks/7907.84bd934d71ded674.js

js luminus.be collected 2026-10-02 07:29:30 UTC 8,575 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7907],{61337:function(e,t,r){r.d(t,{U:function(){return n}});let n={Flanders:{nl:"Vlaanderen",fr:"Flandres",en:"Flanders"},Wallonia:{nl:"Walloni\xeb",fr:"Wallonie",en:"Wallonia"},Brussels:{nl:"Brussel",fr:"Bruxelles",en:"Brussels"}}},17907:function(e,t,r){r.r(t),r.d(t,{ProductsCategoryPriceListBlock:function(){return K}});var n=r(85583),s=r(1780),i=r(57437),l=r(15236),o=r(54763),a=r(19352),d=r(5217),c=r(87305),u=r(96755),g=r(25122),p=r(9969),x=r(90658),f=r(38543),m=r(68045),h=r(45735),j=r(16116),y=r(13759),b=r(12087),v=r(16875),P=r(99376),B=r(2265),C=r(37368),L=r(1589),Z=r(77889),k=r(17433),w=r(25772),R=r(62271),F=r(61337);let S=(0,L.ZP)(Z.a)(e=>{let{theme:t}=e;return{color:t.palette.primary.main,fontSize:t.typography.h6.fontSize,textDecoration:"none",justifyContent:"right"}}),T=(0,L.ZP)(o.Z)(e=>{let{theme:t}=e;return{flexDirection:"row",justifyContent:"start",alignItems:"center",gap:t.spacing(2)}}),_=e=>{let{id:t,energyType:r,openFile:n,title:s,alt:l,isPricelist:o,target:a,isGerman:d,isBrussels:c}=e,u=(0,g.Z)(),{lang:p}=(0,P.useParams)(),{tabValue:x}=(0,w.X9)(),f=(0,R.K)(),m=o?(0,C.k)({id:t,type:r,lang:d?"de":p,isBrussels:(null==f?void 0:f.identifier)==="residential"&&(x===F.U.Brussels.en||c),tabValue:x}):"/api-next/download?fileId=".concat(t,"&openFile=").concat(n);return o&&m||!o?(0,i.jsx)(S,{href:m,target:a,rel:n?"noopener noreferrer":void 0,children:(0,i.jsxs)(T,{children:[s,(0,i.jsx)(k.a,{"aria-label":l,stroke:u.palette.primary[400],fill:u.palette.primary[400]})]})}):(0,i.jsxs)(T,{fontSize:u.typography.h6.fontSize,color:u.palette.grey[400],children:[s,(0,i.jsx)(k.a,{"aria-label":l,stroke:u.palette.grey[400],fill:u.palette.grey[400]})]})};var z=r(8101),G=r(43226),I=r(27648);let U=e=>{var t;let{electricityPdf:r,gasPdf:n,otherDocumentPdf:s,isGerman:l,justifyContent:a="flex-start",isBrussels:c}=e,u=(0,g.Z)(),{t:p}=(0,d.E)();return r||n||s?(0,i.jsx)(o.Z,{"data-testid":"download-pricelist",sx:{flexDirection:"row",justifyContent:{xs:"left",md:a},gap:{xs:u.spacing(1),md:u.spacing(4)}},children:(0,i.jsxs)(i.Fragment,{children:[s?(0,i.jsxs)(i.Fragment,{children:["fileLink"in s&&(null===(t=s.fileLink)||void 0===t?void 0:t.asset)&&(0,i.jsx)(_,{id:s.fileLink.fileId,openFile:s.fileLink.openFile,target:s.target,alt:s.text}),("internalLink"in s||"externalLink"in s)&&(0,i.jsx)(I.default,{target:s.target,href:(0,z.D)(s),children:(0,i.jsx)(G.a,{fill:u.palette.primary.main})})]}):null,r&&(0,i.jsx)(_,{id:r,openFile:!0,title:p(l?"products-category.de.electricity":"products-category.electricity"),isPricelist:!0,energyType:"electricity",isGerman:l,isBrussels:c}),n&&(0,i.jsx)(_,{openFile:!0,energyType:"gas",id:n,title:p(l?"products-category.de.gas":"products-category.gas"),isPricelist:!0,isGerman:l,isBrussels:c})]})}):null};var D=r(62225);let V=e=>{let{cells:t,title:r,subText:n,isOtherDocuments:s}=e,l=(0,g.Z)(),{lang:d,segment:p}=(0,P.useParams)();return(0,i.jsxs)(a.Z,{size:12,children:[(0,i.jsx)(x.Z,{variant:"h2",sx:{marginBottom:l.spacing(8)},children:r}),(0,i.jsx)(o.Z,{sx:{gap:l.spacing(4)},children:t.map(e=>{let{resultId:t,rowContent:r,downloadCell:n,downloadGermanCell:a,slug:c}=e,g=c&&p;return(0,i.jsxs)(o.Z,{spacing:2,sx:{border:l.border.smallGrey,padding:l.spacing(2,4),borderRadius:l.borderRadius.small,gap:l.spacing(4)},children:[s||!g?r:(0,i.jsxs)(S,{sx:{fontSize:"1rem",color:l.palette.text.primary,alignItems:"center",display:"flex",justifyContent:"left",gap:l.spacing(2)},href:(0,u.V)(d,p,"product",{product:c}),children:[r,(0,i.jsx)(D.J,{fillColor:l.palette.primary.main,strokeColor:l.palette.primary.main,icon:"arrowRightIcon"})]}),n,a&&!s&&(0,i.jsx)(i.Fragment,{children:a})]},t)})}),n&&(0,i.jsx)(c.X,{sx:{"& p":{marginTop:0,marginBottom:2},paddingBlock:8},content:n})]})},W={0:void 0,1:"asc",2:"desc"},X=e=>{let{_id:t,title:r,products:n=[],subText:s}=e,[l,o]=(0,B.useState)(0),{t:C}=(0,d.E)("common"),{lang:L,segment:Z}=(0,P.useParams)(),k=n[0]&&"text"in n[0],w=(0,g.Z)(),R=(0,p.Z)(w.breakpoints.down("sm")),F=C("products-category.products"),T=C("products-category.de.download"),_=C("products-category.download"),z=function(e){let{isDocumentsDownload:t,documentsHeaderCellLabel:r,productsHeaderCellLabel:n,downloadHeaderCellLabel:s,downloadHeaderCellLabelDE:i}=e,l=[{id:"rowContent",label:t?r:n,sorting:!t},{id:"downloadCell",label:s,sorting:!1}];return t?l:[...l,{id:"downloadGermanCell",label:i,sorting:!1}]}({isDocumentsDownload:k,documentsHeaderCellLabel:C("products-category.documents"),productsHeaderCellLabel:F,downloadHeaderCellLabel:_,downloadHeaderCellLabelDE:T}),G=n.map((e,r)=>{let n="text"in e,s=n?e.text:e.title,l=n?(0,i.jsx)(U,{otherDocumentPdf:e,justifyContent:"flex-end"}):!!e.slug&&(0,i.jsx)(U,{electricityPdf:e.slug,gasPdf:e.elecOnly?void 0:e.slug,isBrussels:"brusselsPriceList"===t}),o=n?(0,i.jsx)(U,{otherDocumentPdf:e,isGerman:!0,justifyContent:"flex-end"}):!!e.slug&&(0,i.jsx)(U,{electricityPdf:e.slug,gasPdf:e.elecOnly?void 0:e.slug,isGerman:!0,isBrussels:"brusselsPriceList"===t});return{resultId:"".concat(s,"-").concat(r),rowContent:s,downloadCell:l,downloadGermanCell:o,slug:n||"brusselsPriceList"===t&&e.hidePriceListLink?void 0:e.slug}}).sort((e,t)=>
1l?e.rowContent>t.rowContent?1===l?-1:1:e.rowContent===t.rowContent?0:1===l?1:-1:0),I=()=>{o(e=>(e+1)%3)};return R?(0,i.jsx)(V,{isOtherDocuments:k,title:r,cells:G,subText:s}):(0,i.jsxs)(a.Z,{size:12,children:[(0,i.jsx)(x.Z,{variant:"h2",sx:{marginBottom:w.spacing(8)},children:r}),(0,i.jsx)(f.Z,{sx:{border:w.border.smallGrey,borderRadius:w.borderRadius.small},children:(0,i.jsxs)(m.Z,{children:[(0,i.jsx)(h.a,{children:(0,i.jsx)(j.Z,{children:z.map((e,t)=>{let r=0===t,n=k&&!r?"":e.label;return(0,i.jsx)(y.a,{sx:{textAlign:"left",borderTopLeftRadius:r?w.borderRadius.small:0,borderTopRightRadius:r?0:w.borderRadius.small,justifyItems:"baseline"},children:e.sorting?(0,i.jsx)(b.a,{direction:W[l],onClick:I,active:!0,sx:{"&& .MuiTableSortLabel-icon":{color:w.palette.grey[800]}},children:n}):n},e.id)})})}),(0,i.jsx)(v.Z,{children:G.map((e,t,r)=>{let{resultId:n,rowContent:s,downloadCell:l,downloadGermanCell:o,slug:a}=e,d=t===r.length-1,c=a&&Z;return(0,i.jsxs)(j.Z,{sx:{borderBottom:d?void 0:w.border.smallGrey},children:[(0,i.jsx)(y.a,{sx:{border:"none",borderBottomLeftRadius:d?w.borderRadius.small:void 0,width:"50%"},children:c?(0,i.jsx)(S,{sx:{fontSize:"1rem"},href:(0,u.V)(L,Z,"product",{product:a}),children:s}):s}),(0,i.jsx)(y.a,{sx:{border:"none",borderBottomRightRadius:d?w.borderRadius.small:void 0,width:"25%"},align:"left",children:l}),!k&&(0,i.jsx)(y.a,{sx:{border:"none",borderBottomRightRadius:d?w.borderRadius.small:void 0,width:"25%"},align:"left",children:o})]},n)})})]})}),s&&(0,i.jsx)(c.X,{sx:{"& p":{marginTop:0,marginBottom:2},paddingBlock:8},content:s})]})};var E=r(76643);let O=e=>{let t=e.products.filter(e=>"isLegacyProduct"in e&&!e.isLegacyProduct);return(0,s._)((0,n._)({},e),{products:t})},K=e=>{let{_id:t,title:r,titleLayout:s,description:d,descriptionLayout:c,titleSize:u,priceLists:g,productsDocuments:p,brusselsPriceList:x}=e,{tabValue:f}=(0,w.X9)(),m=(0,R.K)(),h=f===F.U.Brussels.en&&(null==m?void 0:m.identifier)===E.KL.residential?[]:(g||[]).map(e=>O(e)),j=x&&(f===F.U.Brussels.en||!f)?O(x):null,y=[...h,j?{_id:"brusselsPriceList",products:j.products.filter(e=>"isLegacyProduct"in e&&!e.isLegacyProduct&&e.germanProductName),title:j.title||""}:null,p].filter(e=>null!==e);return(0,i.jsxs)(o.Z,{id:t,children:[(0,i.jsx)(l.g,{title:r,titleLayout:s,titleSize:u,description:d,descriptionLayout:c}),(0,i.jsx)(a.Z,{container:!0,spacing:8,children:null==y?void 0:y.map(e=>(0,i.jsx)(X,(0,n._)({},e),e._id))})]})}},25772:function(e,t,r){r.d(t,{X9:function(){return o},qH:function(){return l}});var n=r(57437),s=r(2265);let i=(0,s.createContext)(void 0),l=e=>{let{children:t}=e,[r,l]=(0,s.useState)(void 0),o=(0,s.useMemo)(()=>({tabValue:r,setTabValue:l}),[r]);return(0,n.jsx)(i.Provider,{value:o,children:t})},o=()=>(0,s.useContext)(i)||{tabValue:void 0,setTabValue:()=>{}}},37368:function(e,t,r){r.d(t,{k:function(){return s}});var n=r(61337);let s=e=>{let{id:t,type:r,lang:s,isBrussels:i,tabValue:l,salesOffice:o}=e,a="en"===s?"nl":s,d="&tabValue=".concat(function(e){let{tabValue:t,lang:r,isBrussels:s}=e;return s&&!t?n.U.Brussels.en:t||("fr"===r?n.U.Wallonia.en:n.U.Flanders.en)}({tabValue:l,lang:s,isBrussels:i})),c=i?"&isBrussels=".concat(i):"",u=o?"&salesOffice=".concat(encodeURIComponent(o)):"";return"/api-next/get-pricelist?documentSlug=".concat(t,"&energyType=").concat(r,"&language=").concat(a).concat(c).concat(d).concat(u)}}}]);

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.