1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[1607],{5916(e,t,o){o.d(t,{d:()=>V,M:()=>O});var l=o(76998),s=o(75523),r=o(65361),n=o(86273),a=o(95549),d=o(85609),i=o(79253),u=o(95587),c=o(81567),h=o(34156),m=o.n(h),p=o(66899);const _="Dropdown_wrapper__7snXi",v="Dropdown_select__bFr58",f="Dropdown_label__7EmMB",w="Dropdown_arrowIcon__MVdYI",x="Dropdown_expandMoreRoundedIcon__Kcld+",g="Dropdown_expandLessRoundedIcon__XtANv",b="Dropdown_dropdown__67b4K",j="Dropdown_scroller__LDifD",N="Dropdown_option__DsiVv",F="Dropdown_selected__fVhWM",L="Dropdown_resetButton__pc4-H",C="Dropdown_bottomArrow__gVWzT",T="Dropdown_opened__AXtk3";var D=o(23446);function E(e){const{name:t,options:o,selectedOption:r,label:n,onChange:a,onResetFilter:d}=e,[i,u]=(0,l.useState)(!1),c=(0,p.j)(i,()=>{u(!1)}),{watch:h}=(0,s.xW)(),E=h(t),R=m()(_,{[T]:i});return(0,D.jsxs)("div",{ref:c,className:R,children:[(0,D.jsxs)("div",{onClick:()=>{u(!i)},className:v,children:[(0,D.jsx)("span",{className:f,children:r?r.label:n}),(0,D.jsx)("span",{className:m()(w,"material-icons",{[x]:!i,[g]:i})})]}),i&&(0,D.jsxs)("div",{className:b,children:[(0,D.jsxs)("div",{className:j,children:[E.length>0&&(0,D.jsx)("div",{onClick:d,className:m()(N,L),children:"Reset filter"}),o.map(e=>(0,D.jsx)("div",{onClick:()=>{var t;t=e.value,a(t),u(!1)},className:m()(N,{[F]:e.selected}),children:e.label},e.value))]}),(0,D.jsx)("div",{className:C,children:(0,D.jsx)("span",{className:m()(w,x,"material-icons")})})]})]})}function R(e){const{facets:t,facetType:o,name:r,onResetFilter:n,label:a}=e,{setValue:d}=(0,s.xW)(),i=t[o],u=(0,l.useMemo)(()=>null===i||void 0===i?void 0:i.map(e=>({label:e.label,value:e.filterValue.values[0],selected:e.selected})),[i]),c=null===u||void 0===u?void 0:u.find(e=>e.selected),h=(0,l.useCallback)(e=>{d(r,[e])},[r,d]);return u?(0,D.jsx)(E,{name:r,options:u,selectedOption:c,onChange:h,label:a,onResetFilter:n}):null}var M=o(32383);const B={logoWrapper:"BrandLogo_logoWrapper__v8-Tm",heading:"BrandLogo_heading__g-lQY"};var y=o(71992);function A(e){const{logo:t,alt:o,urlEmailAddress:l,heading:s}=e;if(null===t||void 0===t||!t.path)return null;const r=(0,D.jsx)(M.Ay,{src:null===t||void 0===t?void 0:t.path,alt:o,testId:"brand-logo-image"});return(0,D.jsxs)("div",{className:B.wrapper,children:[s&&(0,D.jsx)("div",{className:B.heading,children:s}),(0,D.jsx)("div",{className:B.logoWrapper,children:l?(0,D.jsx)(y.M,{to:l,children:r}):r})]})}var I=o(34993);let O=function(e){return e[e.ONE=1]="ONE",e[e.TWO=2]="TWO",e[e.THREE=3]="THREE",e[e.FOUR=4]="FOUR",e}({});function V(e){const{module:{"@type":t,title:o,titleSize:l,introText:n,filterTitle:h,discovery:{facets:m}={},elementId:p,filterPosition:_,brandLogoDisplayed:v,brandLogo:f},moduleName:w,brandName:x,defaultValues:g,theme:b,resultsCount:j,showMoreButtonURL:N,bottomShowMoreButtonLabel:F,topShowMoreButtonLabel:L,showLeftFilter:C,showTopFilter:T,children:E,testId:M}=e,B=(0,s.mN)({defaultValues:g}),y=B.watch(),O=(0,c.QF)(g,B.getValues()),{handleFilterChange:V}=(0,a.j)({module:e.module,moduleName:w,brandName:x});return(0,D.jsx)(d.x,{type:t,theme:b,elementId:p,testId:M,children:(0,D.jsx)(i.Uv,{heading:o&&(0,D.jsx)(i.Aw,{heading:o,titleSize:l,text:n}),leftFilter:(0,D.jsx)(i.zC,{form:B,onChangeFilter:V,children:(0,D.jsx)(i.mL,{heading:h,onResetFilter:()=>B.reset(g),disableResetFilter:O,children:m&&(0,D.jsx)(u.ZZ,{facets:m})})}),showLeftFilter:C,topFilter:m&&(0,D.jsx)(i.zC,{form:B,onChangeFilter:V,children:(0,D.jsx)(R,{name:"sectors",label:"Choose an Interest",facets:m,facetType:r.Cw.SECTORS,onResetFilter:()=>B.reset(g)})}),showTopFilter:T,showMoreButton:(0,D.jsx)(I.A,{count:j,filterPosition:_,url:N,bottomButtonLabel:F,topButtonLabel:L,query:y}),brandLogo:v&&(0,D.jsx)(A,{heading:null===f||void 0===f?void 0:f.heading,logo:null===f||void 0===f?void 0:f.logo,alt:null===f||void 0===f?void 0:f.alt,urlEmailAddress:null===f||void 0===f?void 0:f.urlEmailAddress}),children:E})})}V.defaultProps={theme:n.gG.Light,showFilter:!1}},88163(e,t,o){o.r(t),o.d(t,{default:()=>p});var l=o(76998),s=o(5916),r=o(79253),n=o(35352),a=o(5040),d=o(81567),i=o(86273),u=o(12669),c=o(24241),h=o(2883),m=o(23446);function p(e){const{module:t,testId:o}=e,{brandName:p}=(0,u.E)(),{featuredRowsCount:_,discovery:{records:v=[]}={},searchQueryData:f,filterPosition:w}=t,x=w===i.UC.LEFT,g=w===i.UC.TOP,b=(0,d.uy)(f.facetsConfig),j=b&&x,N=b&&g,F=(0,l.useMemo)(()=>{const e=f.subBrands||[];return e.length>0?e:[p]},[p,f.subBrands]),L=(0,c.N)(h.xV),C=(0,l.useMemo)(()=>({deliveryType:[],subBrands:F,sectors:[],topics:[],month:[],location:[],mainFilterTopic:L}),[L,F]),{results:T=[]}=(0,d.xC)(i.jq.EVENT,v),D=(0,l.useMemo)(()=>T.filter(e=>e.featuredType!==a.u6.LARGE).slice(0,s.M[_]*(j?3:4)),[T,_,j]),E=(0,l.useMemo)(()=>T.filter(e=>e.featuredType===a.u6.LARGE),[T]);return 0===D.length?null:(0,m.jsx)(s.d,{module:t,moduleName:"events",brandName:p,defaultValues:C,resultsCount:0,showLeftFilter:j,showTopFilter:N,showMoreButtonURL:"/events",bottomShowMoreButtonLabel:"Search All Events",topShowMoreButtonLabel:"Browse All Events",testId:o,children:(0,m.jsx)(r.ho,{products:D,featuredProducts:E,renderProduct:e=>(0,m.jsx)(n.ct,{data:e}),renderFeaturedProduct:e=>(0,m.jsx)(n.ct,{data:e,cardType:"list",showFilter:b}),productsCountPerRow:j?"three":"four"})})}p.defaultProps={testId:"hub-events-module"}}}]); 2//# sourceMappingURL=HubEventsModule.d872e9f4.chunk.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.