PageSourceSearch

https://ltw365.com/static/js/HubCoursesModule.4ba232a4.chunk.js

js ltw365.com collected 2026-10-08 19:58:19 UTC 5,476 bytes, 2 lines download raw bytes

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