PageSourceSearch

https://ltw365.com/static/js/ClassicHeader.40bda86e.chunk.js

js ltw365.com collected 2026-10-08 19:57:39 UTC 7,207 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[6758],{47932(e,a,s){s.d(a,{L:()=>i});s(76998);var r=s(34156),n=s.n(r);const c={wrapper:"BurgerIcon_wrapper__A+q+H",burger:"BurgerIcon_burger__sLKOU",dark:"BurgerIcon_dark__ChwqB",light:"BurgerIcon_light__NzYqs",cross:"BurgerIcon_cross__CDipq"};var l=s(23446);let t=function(e){return e.dark="dark",e.light="light",e}({});function i(e){let{open:a,onClick:s,theme:r,testId:t}=e;return(0,l.jsx)("div",{"data-testid":t,onClick:s,className:n()(c.wrapper,c[r]),children:(0,l.jsxs)("div",{className:a?c.cross:c.burger,children:[(0,l.jsx)("span",{}),(0,l.jsx)("span",{}),(0,l.jsx)("span",{})]})})}i.defaultProps={theme:t.dark,testId:"burger-icon"}},56079(e,a,s){s.d(a,{v:()=>t});s(76998);var r=s(34156),n=s.n(r);const c="SearchButton_button__leOj2";var l=s(23446);function t(e){let{open:a,className:s,testId:r,...t}=e;const i=n()(c,"material-icons");return(0,l.jsx)("span",{"data-testid":r,className:i,...t,children:a?"close":"search"})}t.defaultProps={open:!1,testId:"search-button"}},47308(e,a,s){s.d(a,{L:()=>u});s(76998);var r=s(34156),n=s.n(r),c=s(17788);const l="SearchField_wrapper__1dqWN",t="SearchField_asButton__haagU",i="SearchField_button__uzNxN";var o=s(56079),d=s(23446);let _=function(e){return e.search="search",e.button="button",e}({});function u(e){let{variant:a,onSearch:s,placeholder:r,...u}=e;const{value:h,handleChange:p,handleKeyDown:m,handleSearch:x}=(0,c.zM)(s);return(0,d.jsxs)("div",{className:n()(l,{[t]:a===_.button}),children:[(0,d.jsx)("input",{type:"text",value:h,onInput:p,onKeyDown:m,placeholder:r||"Enter your search term or a topic",...u}),(0,d.jsx)("div",{className:i,children:(0,d.jsx)(o.v,{onClick:()=>x(h)})})]})}u.defaultProps={variant:_.search}},77918(e,a,s){s.r(a),s.d(a,{default:()=>P});var r=s(76998),n=s(34156),c=s.n(n);const l="ClassicHeader_wrapper__B15hL",t="ClassicHeader_largeWrapper__9C8w8",i="ClassicHeader_body__CBIC4",o="ClassicHeader_bodyLeft__yz8tG",d="ClassicHeader_bodyRight__K4xtb",_="ClassicHeader_logo__VwigC",u="ClassicHeader_breadcrumbsWrapper__P5fk8",h="ClassicHeader_headingWrapper__uihYN",p="ClassicHeader_searchWrapper__PLTiY",m="ClassicHeader_mobileSearchWrapper__a6NMS",x="ClassicHeader_mobileSearchButtonWrapper__GCRYn",v="ClassicHeader_textContentWrapper__hwtas",j="ClassicHeader_textContentWrapperMobile__aJ+Vg",g="ClassicHeader_burgerIcon__EfBxJ",N="ClassicHeader_mobileNavBar__AnjED";var C=s(23236),f=s(12669),b=s(71992),S=s(32383);const w="Heading_heading__S26Wo";var y=s(23446);function I(e){let{children:a}=e;return(0,y.jsx)("div",{className:w,children:a})}const k="TextContent_wrapper__gG-dS";function A(e){let{children:a}=e;return(0,y.jsx)("div",{className:k,children:a})}var B=s(47932),U=s(47308),H=s(59605),M=s(56079),L=s(58284);function P(e){const{logo:a,logoAlt:s,heading:n,textContent:w,displayBrandLogo:k,displaySearch:P,displayMobileSearchButton:D,searchPlaceholderText:W,displayTextContent:q,breadcrumbs:O,mobileNavBarContent:T,fullScreen:$}=e,{indexPath:E}=(0,f.E)(),[z,K]=(0,r.useState)(!1),[Y,G]=(0,r.useState)(!1),F=(0,r.useCallback)(e=>{const a=encodeURIComponent(e),s=(0,C._b)([E,"/search/"]);document.location.assign(`${s}?searchInput=${a}`)},[E]),J=(0,r.useCallback)(()=>{z?(0,C.fk)():(0,C.SS)(),K(!z)},[z]),R=(0,r.useCallback)(()=>{G(!Y)},[Y]),V=c()(l,{[t]:n}),Q=c()({"container-fluid":$,container:!$});return(0,y.jsxs)("div",{className:V,children:[(0,y.jsx)("div",{className:Q,children:(0,y.jsx)("div",{className:"row",children:(0,y.jsxs)("div",{className:"col-xs-12",children:[(0,y.jsxs)("div",{className:i,children:[(0,y.jsxs)("div",{className:o,children:[O&&(0,y.jsx)("div",{className:u,children:(0,y.jsx)(H.B,{breadcrumbs:O})}),n&&(0,y.jsx)("div",{className:h,children:(0,y.jsx)(I,{children:n})}),k&&a&&(0,y.jsx)("div",{className:_,children:(0,y.jsx)(b.M,{to:"/",pathPrefix:E,children:(0,y.jsx)(S.Ay,{src:a.path,alt:s,lazy:!1})})})]}),(0,y.jsxs)("div",{className:d,children:[q&&w&&(0,y.jsx)("div",{className:v,children:(0,y.jsx)(A,{children:w})}),P&&(0,y.jsx)("div",{className:p,children:(0,y.jsx)(U.L,{onSearch:F,placeholder:W})}),(0,y.jsx)(L.A,{}),D&&(0,y.jsx)("div",{"data-testid":"classic-header-search-button",className:x,children:(0,y.jsx)(M.v,{open:Y,onClick:R})}),T&&(0,y.jsx)("div",{className:g,children:(0,y.jsx)(B.L,{open:z,onClick:J})})]})]}),q&&w&&(0,y.jsx)("div",{className:j,children:(0,y.jsx)(A,{children:w})})]})})}),(z||Y)&&(0,y.jsxs)("div",{className:N,children:[Y&&(0,y.jsx)("div",{className:m,children:(0,y.jsx)(U.L,{onSearch:F,placeholder:W})}),z&&T]})]})}},58284(e,a,s){s.d(a,{A:()=>k});var r=s(76998),n=s(23236),c=s(13978),l=s(66899);const t="UserPreferences_wrapper__c4T7j",i="UserPreferences_menu__ckwgX";var o=s(34156),d=s.n(o);const _={wrapper:"UserIcon_wrapper__Toitk",picture:"UserIcon_picture__MpdqS",name:"UserIcon_name__DqycC"};var u=s(32383),h=s(23446);function p(e){const[a,s]=e.split(" ");return`${a[0]}${s[0]}`}function m(e){const{open:a,onClick:s,name:r,picture:n}=e;return(0,h.jsxs)("div",{onClick:s,className:_.wrapper,role:"button",children:[n?(0,h.jsx)(u.Ay,{src:n,alt:r,lazy:!1,imgixParams:"w=80&h=80",className:_.picture}):(0,h.jsx)("div",{className:_.name,children:p(r)}),(0,h.jsx)("span",{className:d()(_.arrowIcon,"material-icons"),children:a?"expand_less":"expand_more"})]})}const x="UserMenu_wrapper__UcSwG",v="UserMenu_header__qMO9v",j="UserMenu_body__5WTa9",g="UserMenu_footer__JAYQA",N="UserMenu_name__mB-fv",C="UserMenu_email__juS2V",f="MenuItem_anchor__fqIiu",b="MenuItem_icon__AUjhX";var S=s(71992);function w(e){const{icon:a,className:s,children:r,...n}=e;return(0,h.jsxs)(S.M,{className:d()(f,s),...n,children:[(0,h.jsx)("span",{className:d()(b,"material-icons"),children:a}),r]})}function y(e){let{name:a,email:s,onSignOut:r}=e;return(0,h.jsxs)("div",{className:x,children:[(0,h.jsxs)("div",{className:v,children:[(0,h.jsx)("div",{className:N,children:a}),(0,h.jsx)("div",{className:C,children:s})]}),(0,h.jsx)("div",{className:j,children:(0,h.jsx)(w,{to:"/account/profile/",icon:"manage_accounts",children:"My Profile"})}),(0,h.jsx)("div",{className:g,children:(0,h.jsx)(w,{to:"/account/logout/",onClick:r,icon:"logout",children:"Sign Out"})})]})}var I=s(31088);function k(){const[e,a]=(0,r.useState)({loggedIn:!1}),[s,o]=(0,r.useState)(),[d,_]=(0,r.useState)(!1),u=(0,l.j)(d,()=>{_(!1)}),p=(0,r.useCallback)(async()=>{try{var e;const a=await c.A.fetchAccountDetails("core"),s=await a.json();o((null===(e=s.profile)||void 0===e?void 0:e.core)||{})}catch(a){console.error(a)}},[]);(0,r.useEffect)(()=>{const e=c.A.getShortAccountDetails();a(e),e.loggedIn&&p()},[p]);const x=(0,r.useCallback)(()=>{_(e=>!e)},[]),v=s?`${s.forename} ${s.surname}`:`${null===e||void 0===e?void 0:e.forename} ${null===e||void 0===e?void 0:e.surname}`;return e.loggedIn?(0,h.jsxs)("div",{ref:u,className:t,children:[(0,h.jsx)(m,{open:d,onClick:x,name:v,picture:null===s||void 0===s?void 0:s.profilePhotoUrl}),d&&(0,h.jsx)("div",{className:i,children:(0,h.jsx)(y,{name:v,email:null===e||void 0===e?void 0:e.email,onSignOut:
1async e=>{e.preventDefault(),_(!1);try{await c.A.logout(),I.A.ga4UserLogout(),(0,n.yQ)()}catch(a){console.error(a)}}})})]}):null}}}]);
2//# sourceMappingURL=ClassicHeader.40bda86e.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.