"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[335],{47068:(X,T,h)=>{h.d(T,{A:()=>M});var e=h(48322),E=h(67115);const W=E.Ay.form` ${({theme:{colors:N,spacing:B}})=>(0,E.AH)` display: flex; width: 100%; justify-content: center; .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } input[type='search'] { -webkit-appearance: none; appearance: none; border: 0; outline: none; box-shadow: none; /* Prevent iOS zoom on focus */ font-size: 16px; line-height: 1.5; } /* Hide native iOS search decorations/cancel button */ input[type='search']::-webkit-search-cancel-button, input[type='search']::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px inherit inset; -webkit-text-fill-color: inherit; transition: background-color 9999s ease-in-out 0s; } button { -webkit-appearance: none; appearance: none; } .search-input__input { max-width: 650px; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid ${N.light.brand.lightGold}; border-radius: 5px 0 0 5px; font-size: 1rem; outline: none; transition: all 0.3s; &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__icon { } .search-input__default-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 50px; padding: 0 ${B.xxxs}; border: none; border-radius: 0 5px 5px 0; font-size: 1rem; background-color: ${N.light.brand.midBlue}; color: #fff; cursor: pointer; transition: all 0.3s; &:hover { background-color: ${N.light.brand.darkBlue}; } &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__listing-input { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid ${N.light.brand.lightGold}; border-right-color: ${N.light.neutral.white}; border-radius: 5px 0 0 5px; font-size: 1rem; outline: none; transition: all 0.3s; border-right: none; &:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); } } .search-input__listing-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 50px; padding: 0 ${B.xxxs}; border: 1px solid ${N.light.brand.lightGold}; border-left-color: ${N.light.neutral.white}; border-radius: 0 5px 5px 0; font-size: 1rem; background-color: ${N.light.neutral.white}; color: ${N.light.brand.midBlue}; cursor: pointer; transition: all 0.3s; border-left: none; &:hover { color: ${N.light.neutral.white}; background-color: ${N.light.brand.darkBlue}; } } `} `;var R=h(95443);const M=({className:N,placeholder:B,value:P="",autofocus:K=!1,isListing:j=!1,submit:F})=>{const[Q,U]=(0,e.useState)(!1),[G,H]=(0,e.useState)(P),J=r=>{r.preventDefault(),U(!Q)},Y=r=>{H(r.target.value)},z=(0,e.useRef)(null),Z=r=>{const V=`/search.aspx?term=${r}`;location.href=V},O=r=>{r.preventDefault(),j?F(G):Z(G)};return(0,e.useEffect)(()=>{H(P)},[P]),e.createElement(W,{onSubmit:r=>{r.preventDefault(),O(r)},autoCapitalize:"off",className:`${N||""}`,onKeyDown:r=>r.key==="Enter"?O(r):null},e.createElement("label",{className:"sr-only",htmlFor:"searchInput"},"Keyword search"),e.createElement("input",{type:"search",value:G,onChange:Y,placeholder:B||"Search",id:"searchInput",ref:z,autoFocus:K,autoCapitalize:"off",autoCorrect:"off",enterKeyHint:"search",className:j?"search-input__listing-input":"search-input__input"}),e.createElement("button",{type:"submit",value:"search",onClick:r=>O(r),onKeyDown:r=>r.key==="Enter"?J(r):null,className:j?"search-input__listing-button":"search-input__default-button"},e.createElement("label",{className:"sr-only",htmlFor:"searchInput"},"Search"),e.createElement(R.A,{className:"search-input__icon",size:22,icon:"search"})))}},91335:(X,T,h)=>{h.d(T,{A:()=>xe});var e=h(48322),E=h(43266),k=h(67115);const R=k.Ay.div` ${({theme:{colors:t,spacing:n}})=>(0,k.AH)` position: relative; padding-block: ${n.xs}; background-color: ${t.light.system.alerts}; .u-container { display: flex; justify-content: space-between; gap: ${n.xxs}; } .alert__text-container { max-width: 75ch; } .alert__description { margin-block-start: 0.5em; } .alert__link { margin-block-start: 1em; } .alert__button { align-self: flex-start; padding: ${n.xxxs}; } .alert__icon { min-height: 20px; min-width: 20px; } `} `;var $=h(95443),M=h(69352),N=h(83652);const P=({title:t,description:n,link:a})=>{const[c,i]=(0,e.useState)(!0);(0,e.useEffect)(()=>{sessionStorage.getItem("alertDismissed")||i(!0)},[]);const b=()=>{i(!1),sessionStorage.setItem("alertDismissed","true")};return!c||!t?null:e.createElement(R,null,e.createElement("div",{className:"u-container"},e.createElement("div",{className:"alert__text-container"},e.createElement("h2",{className:"alert__title"},t),n&&e.createElement(N.default,{className:"alert__description flow",text:n}),a&&e.createElement(M.A,{className:"alert__link",link:a,label:"Find out more",buttonTheme:"clear"})),e.createElement(M.A,{className:"alert__button",onClick:b,buttonTheme:"none",label:e.createElement(e.Fragment,null,e.createElement($.A,{className:"alert__icon",icon:"close",size:24}),e.createElement("span",{className:"sr-only alert__dismiss-message"},"Dismiss alert message"))})))};var K=h(94836),j=h(39966);function F(t,n={}){return{type:t,...n}}const Q=()=>F(GET_SITE_CONFIG),U=t=>F(j.ux,t),H=k.Ay.div` ${({theme:{colors:t}})=>(0,k.AH)` position: fixed; inset: auto 0 0 0; padding: var(--space-s-m) 0; width: 100%; color: white; background-color: ${t.light.neutral.grey80}; z-index: 9999; a { color: ${t.light.brand.lightBlue}; } .cookie-banner__content { display: flex; justify-content: space-between; align-items: center; gap: var(--grid-gutter); } .cookie-banner__dismiss { flex: 0 0 52px; border-color: white; color: white; } `} `,Y=()=>{const t=(0,E.wA)(),[n,a]=(0,K.lT)(["cookiePolicy"]),c=()=>{a("cookiePolicy",!0)};return n.cookiePolicy&&t(U(!0)),n.cookiePolicy?null:e.createElement(H,null,e.createElement("div",{className:"u-container"},e.createElement("div",{className:"cookie-banner__content"},e.createElement("p",null,"We use cookies to enhance your online experience. To find out more, please read our"," ",e.createElement("a",{href:"/contact/cookies-notice.aspx"},"Cookies Notice")," and"," ",e.createElement("a",{href:"/contact/privacy-notice.aspx"},"Privacy Notice"),"."),e.createElement(M.A,{buttonTheme:"clear",label:e.createElement(e.Fragment,null,e.createElement("span",{className:"sr-only"},"Close cookie banner"),e.createElement($.A,{icon:"close",size:16})),onClick:()=>c(),className:"cookie-banner__dismiss"}))))};var z=h(39289);const O=k.Ay.footer` ${({theme:{colors:t,mq:n,spacing:a}})=>(0,k.AH)` .footer__top { background-color: ${t.light.brand.darkBlue}; padding: ${a.xs} 0; @media ${n.min.px.tablet} { padding: ${a.m} 0; } } .footer__heading { font-weight: 700; } .footer__container { display: flex; flex-direction: column; .footer__logo-row { @media ${n.min.px.tablet} { margin-bottom: ${a.s}; } .link { display: flex; width: fit-content; } .footer__logo { height: 70px; max-width: 150px; fill: ${t.light.neutral.white}; @media ${n.min.px.tablet} { max-width: 207px; } } } .footer__list-columns { display: flex; flex-direction: column; @media ${n.min.px.tablet} { flex-direction: row; flex-wrap: wrap; gap: ${a.s}; } @media ${n.min.px.largeDesktop} { gap: ${a.l}; flex-wrap: nowrap; } } .footer__columns-row { display: flex; flex-direction: column; @media ${n.min.px.tablet} { flex-direction: row; gap: ${a.xs}; .footer__column { flex: 1 1 45%; } .footer__map-column { flex: 1 1 100%; } } @media ${n.min.px.largeDesktop} { flex-direction: row; .footer__column { flex: 1 1 0; } .footer__map-column { flex: 2 1 0; } } } .footer__mobile-only { display: block; border-bottom: 1px solid ${t.light.neutral.white}; padding: ${a.xs} 0; @media ${n.min.px.tablet} { display: none; } } .footer__desktop-only { display: none; @media ${n.min.px.tablet} { display: block; } } .footer__column { flex: 1 1 0; min-width: 0; border-radius: 4px; color: ${t.light.neutral.white}; ul { display: flex; flex-direction: column; gap: ${a.xs}; margin: ${a.xs} 0 0 0; padding: 0; list-style: none; @media ${n.min.px.tablet} { margin: ${a.xs} 0; } } a { color: ${t.light.neutral.white}; text-decoration: none; &:hover { text-decoration: underline; } } .footer__dropdown-toggle { background: none; border: none; font-weight: bold; /* font-size: 1rem; */ cursor: pointer; color: ${t.light.neutral.white}; display: flex; flex-direction: row; justify-content: space-between; width: 100%; padding: 0; .chevron-icon { width: 24px; } } .footer__dropdown-panel { display: flex; flex-direction: column; } } .footer__map-column { min-width: 220px; padding: 0; display: flex; flex-direction: column; border-left: none; color: ${t.light.neutral.white}; margin-top: ${a.s}; @media ${n.min.px.tablet} { margin-top: 0; flex: 2 1 0; } @media ${n.min.px.largeDesktop} { margin-top: 0; padding: 0 0 0 ${a.m}; border-left: 2px solid ${t.light.brand.midBlue}; } .footer__map-panel { display: flex; flex-direction: column; gap: ${a.xxs}; margin: ${a.s} 0 0 0; padding: 0; } .footer__map { display: flex; align-items: center; justify-content: center; position: relative; img { object-fit: cover; width: 100%; height: 100%; max-height: 450px; display: block; border-radius: 10px; } .footer__map-pin { position: absolute; top: 45%; left: 45%; transform: translate(-50%, -100%); pointer-events: none; .footer__map-pin-icon { color: ${t.light.brand.midBlue}; font-size: 2rem; height: 62px; width: 62px; } } } } .footer__socials { display: flex; flex-direction: row; margin-top: 3rem; align-self: center; @media ${n.min.px.tablet} { align-self: flex-end; } } } .footer__middle { background: ${t.light.neutral.white}; ul { padding: ${a.xxs} 0; list-style: none; display: flex; flex-direction: column; gap: ${a.xxs}; align-items: center; @media ${n.min.px.tablet} { flex-direction: row; align-items: flex-start; } a { color: ${t.light.neutral.black}; text-decoration: none; &:hover { text-decoration: underline; } } } } .footer__bottom { background-color: ${t.light.brand.midBlue}; .copyright { padding-top: ${a.xs}; padding-bottom: ${a.xs}; color: ${t.light.neutral.white}; } } `} `;var r=h(67820),V=h(42501);const te=k.Ay.ul` ${({theme:{spacing:t,colors:n}})=>(0,k.AH)` display: flex; flex-wrap: wrap; gap: ${t.xs}; list-style: none; padding: 0; margin: 0; li { display: flex; align-items: center; justify-content: center; } .socials__icon { color: ${n.light.neutral.white}; } `} `,ne=()=>{const t=(0,E.d4)(z.FB);return t?e.createElement(te,null,t.map((n,a)=>{const c=n.type.toLowerCase();return e.createElement("li",{key:`${n.type}-${a}`},e.createElement(r.A,{path:n.url,title:`Worcester University on ${n.type}`},e.createElement($.A,{size:n.type==="X"?25:30,className:"socials__icon",icon:c})))})):null},ae=()=>{const t=(0,E.d4)(z.oL),[n,a]=(0,e.useState)([]),c=new Date().getFullYear();if(!t)return null;const i=l=>{a(o=>o.includes(l)?o.filter(u=>u!==l):[...o,l])},{getInTouch:b,linksColumnOne:w,linksColumnTwo:g,linksColumnThree:_,linksColumnFour:x,linksBottom:p,mapImage:m,mapText:d}=t,y=[{title:b.heading,items:[...b.phone?[{label:b.phone,url:`tel:${b.phone}`,isPhone:!0}]:[],...b.email?[{label:b.email,url:`mailto:${b.email}`}]:[]]},{title:w.heading,items:w.items},{title:g.heading,items:g.items},{title:_.heading,items:_.items},{title:x.heading,items:x.items}];return e.createElement(O,null,e.createElement("div",{className:"footer__top"},e.createElement("div",{className:"footer__container u-container"},e.createElement("div",{className:"footer__logo-row"},e.createElement(r.A,{path:"/"},e.createElement($.A,{className:"footer__logo",icon:"logo"}),e.createElement("span",{className:"sr-only"},"Return to the homepage"))),e.createElement("div",{className:"footer__columns-row"},e.createElement("div",{className:"footer__list-columns"},y.map((l,o)=>e.createElement("div",{className:"footer__column",key:o},e.createElement("div",{className:"footer__mobile-only"},e.createElement("button",{className:"footer__dropdown-toggle","aria-expanded":n.includes(o),onClick:()=>i(o)},l.title,e.createElement($.A,{className:"chevron-icon",icon:"arrowDown"})),n.includes(o)&&e.createElement("ul",{className:"footer__dropdown-panel"},l.items.map((u,s)=>e.createElement("li",{key:s},e.createElement(r.A,{className:u.isPhone?"footer__phone-link":void 0,key:s,path:u.url},u.label))))),e.createElement("div",{className:"footer__desktop-only"},e.createElement("p",{className:"footer__heading h4"},l.title),e.createElement("ul",{className:"footer__list-panel"},l.items.map((u,s)=>e.createElement("li",{key:s},e.createElement(r.A,{className:u.isPhone?"footer__phone-link":void 0,key:s,path:u.url},u.label)))))))),e.createElement("div",{className:"footer__map-column"},e.createElement("p",{className:"footer__heading h4"},"We are here"),e.createElement("div",{className:"footer__map-panel"},e.createElement("div",null,d),e.createElement("div",{className:"footer__map"},m&&e.createElement(V.A,{...m}))))),e.createElement("div",{className:"footer__socials"},e.createElement(ne,null)))),e.createElement("div",{className:"footer__middle"},e.createElement("div",{className:"u-container"},e.createElement("ul",null,p.map((l,o)=>e.createElement("li",{key:o},e.createElement(r.A,{key:o,path:l.url},l.label)))))),e.createElement("div",{className:"footer__bottom"},e.createElement("div",{className:"copyright u-container"},e.createElement("p",null,"\xA9 ",c," 国产视频"))))},oe=k.Ay.header` ${({theme:{colors:t,spacing:n,mq:a}})=>(0,k.AH)` display: block; width: 100%; background-color: ${t.light.brand.darkBlue}; .header__logo { height: 70px; max-width: 150px; fill: ${t.light.neutral.white}; @media ${a.min.px.tablet} { max-width: 207px; } } &.header--homepage { position: sticky; top: 0; z-index: 1000; transition: transform 0.3s ease; background: transparent; .header__sub-nav { border-top-left-radius: 30px; } .header__container { background-color: ${t.light.brand.darkBlue}; border-bottom-left-radius: 30px; transition: background-color 0.3s ease, backdrop-filter 0.3s ease; padding: 0 ${n.s}; max-width: var(--grid-max-width); } .header__outer-wrapper { max-width: var(--grid-max-width); margin: 0 auto; padding-inline: 0; @media ${a.min.px.desktop} { padding-inline: var(--grid-gutter); } } .header__sub-menu-container, .mobile-nav__container, .header__sub-menu-one, .header__top-item, .mobile-nav__back-button { border-top-left-radius: 30px; } .mobile-nav__top-menu-list-item:first-child .mobile-nav__top-menu-button { border-top-left-radius: 30px; } .mobile-nav__container { padding-inline: 0; background-color: ${t.light.neutral.lightGrey}; } .header__search-container { padding: 0; background-color: transparent; max-width: var(--grid-max-width); @media (min-width: 990px) { padding: 0 ${n.s}; } form { height: 100%; padding-top: ${n.s}; padding-bottom: ${n.s}; background-color: ${t.light.brand.lightBlue}; border-top-left-radius: 30px; padding: ${n.s}; overflow: hidden; -webkit-mask-image: -webkit-radial-gradient(white, black); } } } &.header--hidden { transform: translateY(calc(-100% - 15px)); } &.header--visible-translucent { .header__container { background-color: rgba(0, 0, 51, 0.7); backdrop-filter: blur(6px); } } .header__outer-wrapper { position: relative; padding-inline: var(--grid-gutter); } .header__container { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; height: 100px; margin: 0 auto; } .header__button { cursor: pointer; padding: 0; border: none; background-color: transparent; color: ${t.light.neutral.white}; } .header__button--search { padding: 8px; } .header_button-container { display: flex; align-items: center; gap: 4px; cursor: pointer; @media ${a.min.px.tablet} { gap: ${n.xxxs}; } } .header__search-container { z-index: 999; position: absolute; display: flex; align-items: center; justify-content: center; padding: ${n.s}; margin: 100px auto 0 auto; left: 0; right: 0; top: 0; width: 100%; height: auto; opacity: 1; background-color: ${t.light.brand.lighterBlue}; transition: opacity ease-in-out 1s; } `} `;var le=h(8981);const re=k.Ay.div` ${({theme:{colors:t,spacing:n}})=>(0,k.AH)` .mobile-nav__container { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100vw; margin: 0; transition: transform 200ms ease, opacity 200ms ease; opacity: 1; position: fixed; left: 0; right: 0; top: 100px; /* header height */ bottom: 0; height: calc(100dvh - 100px); height: calc(100vh - 100px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; z-index: 1001; background-color: ${t.light.neutral.lightGrey}; padding-bottom: env(safe-area-inset-bottom); } .mobile-nav__top-menu-list { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; list-style-type: none; padding: 0; margin: 0; width: 100%; .mobile-nav__top-menu-list-item { width: 100%; } } .mobile-nav__top-menu-button, .mobile-nav__sub-menu-button, .mobile-nav__sub-menu-link { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; padding: ${n.xs} ${n.s}; border: none; background-color: ${t.light.neutral.lightGrey}; font-weight: 700; color: ${t.light.brand.darkBlue}; &.hidden { display: none; } } .mobile-nav__sub-menu-link { text-decoration: 1px underline ${t.light.brand.midBlue}; text-underline-offset: 10px; } button { cursor: pointer; } .mobile-nav__back-button { display: flex; justify-content: flex-start; align-items: center; width: 100%; gap: ${n.xxxs}; padding: ${n.xs} ${n.s}; border: none; background-color: ${t.light.brand.lightestGold}; position: sticky; /* keep the back button visible at the top while scrolling */ top: 0; z-index: 1; } .mobile-nav__sub-menu-one-container { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin: 0 auto; transition: all ease-in-out 1s; opacity: 1; position: absolute; left: 0; right: 0; top: 0; margin-top: 100px; height: 100%; z-index: 999; background-color: ${t.light.brand.darkBlue}; } .mobile-nav__sub-menu-list { color: ${t.light.brand.gold}; margin: 0; list-style-type: none; width: 100%; padding: 0; } .mobile-nav__sub-menu-top-item { display: flex; gap: ${n.xxxs}; padding: ${n.xs} ${n.s}; color: ${t.light.neutral.black}; font-weight: 700; font-style: italic; background-color: ${t.light.brand.lighterBlue}; &.one { &.hidden { display: none; } } &.two { &.hidden { display: none; } } .mobile-nav__sub-menu-top-item-link { color: ${t.light.brand.gold}; } } .mobile-nav__sub-menu-two-item { padding-bottom: ${n.xxs}; } .mobile-nav__top-menu-one-icon { &.active { transform: rotate(90deg); } } .mobile-nav__menu-chevron { color: ${t.light.brand.darkBlue}; } .mobile-nav__sub-menu-one-icon { cursor: pointer; } li { text-underline-offset: 5px; } .mobile-nav__sub-menu-one-link, .mobile-nav__top-menu-button { font-weight: 700; color: ${t.light.brand.darkBlue}; } .mobile-nav__sub-menu-two { margin: 0; padding: ${n.xxs}; list-style-type: none; width: 100%; } .mobile-nav__sub-menu-two-link { color: ${t.light.brand.lightestGold}; } `} `,ie=({navMenu:t})=>{const[n,a]=(0,e.useState)(100),[c,i]=(0,e.useState)(100),[b,w]=(0,e.useState)(100),[g,_]=(0,e.useState)(!1),[x,p]=(0,e.useState)(!1),[m,d]=(0,e.useState)(!1);return e.createElement(re,null,e.createElement("div",{className:"mobile-nav__container"},g&&e.createElement("button",{onClick:y=>{y.stopPropagation(),_(!1),p(!1),a(100),i(100),w(100),d(!1)},className:"mobile-nav__back-button","aria-label":"Back to main menu","aria-expanded":g},e.createElement($.A,{className:"mobile-nav__back-button-icon",icon:"arrowLeft",size:24}),"Back to main menu"),e.createElement("ul",{className:"mobile-nav__top-menu-list"},t.map((y,l)=>e.createElement("li",{className:"mobile-nav__top-menu-list-item",key:l,role:"menuitem"},e.createElement("button",{className:`mobile-nav__top-menu-button ${g?"hidden":""}`,"aria-label":y.label,"aria-expanded":n===l,onClick:()=>{a(l===n?100:l),i(100),_(!0)},onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),a(l===n?100:l),i(100),_(!0))}},y.label,e.createElement($.A,{className:"mobile-nav__menu-chevron",icon:"arrowRight",size:24})),l===n&&e.createElement("ul",{className:`mobile-nav__sub-menu-list ${n===l?"active":""}`},e.createElement("li",{className:`mobile-nav__sub-menu-top-item one ${x?"hidden":""}`,role:"menuitem"},"pages in",e.createElement(r.A,{path:y.url,className:"mobile-nav__sub-menu-top-item-link"},y.label)),y.subMenuOne?.map((o,u)=>e.createElement("li",{key:u,className:"mobile-nav__sub-menu-one-item",role:"menuitem"},o.subMenuTwo&&o.subMenuTwo.length>0?e.createElement("button",{className:`mobile-nav__sub-menu-button ${x?"hidden":""}`,"aria-label":o.label,"aria-expanded":c===u,onClick:s=>{s.stopPropagation(),i(o.subMenuTwo&&o.subMenuTwo.length>0&&u!==c?u:c===u?100:c),p(!0)},onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),s.stopPropagation(),i(o.subMenuTwo&&o.subMenuTwo.length>0&&u!==c?u:c===u?100:c),p(!0))}},o.label,e.createElement($.A,{className:"mobile-nav__menu-chevron",icon:"arrowRight",size:24})):e.createElement(r.A,{className:`mobile-nav__sub-menu-link ${x?"hidden":""}`,path:o.url},o.label),u===c&&e.createElement("ul",{className:"mobile-nav__sub-menu-list"},e.createElement("li",{className:`mobile-nav__sub-menu-top-item two ${m?"hidden":""}`,role:"menuitem"},"pages in",e.createElement(r.A,{path:o.url,className:"mobile-nav__sub-menu-top-item-link"},o.label)),o.subMenuTwo?.map((s,A)=>e.createElement("li",{key:A,className:"mobile-nav__sub-menu-item",role:"menuitem"},s.subMenuThree&&s.subMenuThree.length>0?e.createElement("button",{className:`mobile-nav__sub-menu-button ${m?"hidden":""}`,onClick:f=>{f.stopPropagation(),w(A),d(!0)},onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),f.stopPropagation(),w(A),d(!0))},"aria-label":s.label,"aria-expanded":b===A},s.label,e.createElement($.A,{className:"mobile-nav__menu-chevron",icon:"arrowRight",size:24})):e.createElement(r.A,{className:`mobile-nav__sub-menu-link ${m?"hidden":""}`,path:s.url},s.label),A===b&&e.createElement("ul",{className:"mobile-nav__sub-menu-list"},e.createElement("li",{className:"mobile-nav__sub-menu-top-item three",role:"menuitem"},"pages in",e.createElement(r.A,{path:s.url,className:"mobile-nav__sub-menu-top-item-link"},s.label)),s.subMenuThree?.map((f,C)=>e.createElement("li",{key:C,className:"mobile-nav__sub-menu-item",role:"menuitem"},e.createElement(r.A,{className:"mobile-nav__sub-menu-link",path:f.url},f.label)))))))))))))))};var se=h(47068),ce=h(50844),ue=h(90490),me=h.n(ue),de=h(11029);const he=k.Ay.nav` ${({theme:{colors:t,spacing:n}})=>(0,k.AH)` display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 ${n.s}; .header__desktop-nav { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 ${n.s}; } .header__desktop-nav-list-item, .header__button { color: ${t.light.neutral.white}; font-size: 1rem; font-weight: 500; cursor: pointer; } .header__desktop-nav-static-link { color: ${t.light.brand.lightGold}; font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; } .header__desktop-nav-list { display: flex; flex-direction: row; justify-content: space-between; align-items: center; list-style-type: none; height: 100%; gap: ${n.s}; padding: 0; margin: 0; } .header__sub-nav { display: flex; align-items: center; justify-content: center; width: 100%; max-width: var(--grid-max-width); margin: 0 auto; transition: all ease-in-out 1s; opacity: 1; position: absolute; left: 0; right: 0; top: 0; margin-top: 100px; height: max-content; z-index: 999; background-color: ${t.light.neutral.white}; } .header__sub-menu-container { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); width: 100%; color: ${t.light.neutral.black}; border: 1px solid ${t.light.neutral.lightGrey}; } .header__sub-menu-one { display: flex; width: 100%; position: relative; left: 0; flex-direction: column; list-style-type: none; margin: 0; padding: 0; background-color: ${t.light.neutral.white}; .header__sub-menu-one-item { :hover { background-color: ${t.light.neutral.lightGrey}; } :hover .header__sub-menu-two { background-color: ${t.light.neutral.lightGrey}; } } } .header__sub-menu-two { background-color: ${t.light.neutral.white}; position: absolute; list-style-type: none; height: 100%; width: 100%; left: 100%; top: 0; bottom: 0; padding: 0; margin: 0; z-index: 999; height: 100%; .header__sub-menu-two-item { :hover .header__sub-menu-three { background-color: ${t.light.brand.lightestGold}; } } } .header__sub-menu-three { background-color: ${t.light.neutral.white}; position: absolute; list-style-type: none; height: 100%; width: 100%; left: 100%; top: 0; bottom: 0; z-index: 999; padding: 0; height: 100%; } .header__sub-menu-one-item, .header__sub-menu-two-item, .header__sub-menu-three-item { display: flex; align-items: center; justify-content: space-between; padding: ${n.xxs} ${n.s}; width: 100%; } .header__sub-menu-one-item { :hover { .header__sub-menu-one-link::after { width: 100%; } } } .header__sub-menu-two-item { :hover { .header__sub-menu-two-link::after { width: 100%; } } } .header__sub-menu-three-item { :hover { .header__sub-menu-three-link::after { width: 100%; } } } .header__top-item { background-color: ${t.light.brand.lighterBlue}; padding: ${n.xxs} ${n.xxs}; text-align: start; } .header__top-item-link { text-decoration: none; border-bottom: 2px solid ${t.light.brand.gold}; color: ${t.light.brand.gold}; } .header__sub-menu-one-link, .header__sub-menu-two-link, .header__sub-menu-three-link { display: flex; position: relative; height: 100%; inline-size: max-content; color: ${t.light.brand.darkBlue}; font-weight: 700; text-decoration: none; transition: color 0.3s ease; cursor: pointer; &::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: ${t.light.brand.midBlue}; transition: width 0.3s ease-in-out; } } .header__sub-menu-one-icon, .header__sub-menu-two-icon { transition: transform 0.3s ease-in-out; } .header__sub-menu-one-item { :hover { .header__sub-menu-one-icon { transform: rotate(90deg); } } } .header__sub-menu-two-item { :hover { .header__sub-menu-two-icon { transform: rotate(90deg); } } } .header__sub-menu-two, .header__sub-menu-three { display: none; } .header__sub-menu-button { background-color: transparent; border: none; cursor: pointer; } .header__sub-menu-one-item:hover .header__sub-menu-two, .header__sub-menu-two.active, .header__sub-menu-three.active { display: block; min-height: 100%; max-height: max-content; } .header__sub-menu-two.active { background-color: ${t.light.neutral.lightGrey}; } .header__sub-menu-three.active { background-color: ${t.light.brand.lightestGold}; } .header__sub-menu-two-item:hover .header__sub-menu-three { display: block; min-height: 100%; height: max-content; } .header__sub-menu-card { display: flex; flex-direction: column; gap: ${n.xxs}; padding: ${n.s}; color: ${t.light.neutral.black}; } .header__sub-menu-card-image { max-height: 300px; } `} `,pe=({navMenu:t,featureLinks:n,setActiveItem:a,activeItem:c,setActiveSubMenu:i,activeSubMenu:b,setActiveSubTwoMenu:w,activeSubTwoMenu:g})=>!t||!n?null:e.createElement(he,null,e.createElement("ul",{className:"header__desktop-nav-list"},n&&n.map((_,x)=>e.createElement("li",{key:x,className:"header__desktop-nav-static-list-item"},e.createElement(r.A,{className:"header__desktop-nav-static-link",path:_.url},_.label))),t.map((_,x)=>e.createElement("li",{className:"header__desktop-nav-list-item",key:x},e.createElement("button",{className:"header__button",onClick:()=>a(c!==x?x:100)},_.label),c===x&&e.createElement("div",{className:"header__sub-nav"},e.createElement("div",{className:"header__sub-menu-container"},e.createElement("ul",{className:"header__sub-menu-one"},e.createElement("li",{className:"header__top-item"},e.createElement(r.A,{className:"header__top-item-link",path:_.url},_.label)),_.subMenuOne?.map((p,m)=>e.createElement("li",{key:m,className:"header__sub-menu-one-item"},e.createElement(r.A,{className:"header__sub-menu-one-link",path:p.url},p.label),p.subMenuTwo&&p.subMenuTwo.length>0&&e.createElement("button",{onKeyDown:d=>{d.key==="Enter"&&(d.preventDefault(),d.stopPropagation(),i(m))},className:"header__sub-menu-button"},e.createElement($.A,{className:"header__sub-menu-one-icon",icon:"arrowRight",size:24})),p.subMenuTwo&&p.subMenuTwo.length>0&&e.createElement("ul",{className:`header__sub-menu-two ${b===m?"active":""}`},p.subMenuTwo.map((d,y)=>e.createElement("li",{key:y,className:"header__sub-menu-two-item"},e.createElement(r.A,{className:"header__sub-menu-two-link",path:d.url},d.label),d.subMenuThree&&d.subMenuThree.length>0&&e.createElement("button",{onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),l.stopPropagation(),w(y))},className:"header__sub-menu-button"},e.createElement($.A,{className:"header__sub-menu-two-icon",icon:"arrowRight",size:24})),d.subMenuThree&&d.subMenuThree.length>0&&e.createElement("ul",{className:`header__sub-menu-three ${g===y?"active":""}`},d.subMenuThree.map((l,o)=>e.createElement("li",{key:o,className:"header__sub-menu-three-item"},e.createElement(r.A,{className:"header__sub-menu-three-link",path:l.url},l.label)))))))))),_.cards&&_.cards.map((p,m)=>e.createElement(r.A,{key:m,path:p.url,className:"header__sub-menu-card"},e.createElement("img",{src:p.image?.src,alt:p.image?.alt,className:"header__sub-menu-card-image"}),e.createElement("div",{className:"header__sub-menu-card-text-container"},e.createElement("h5",null,p.title),e.createElement("p",null,p.description))))))))));var L=h(52546);const be=({hideOffsetDown:t=120,hideDeltaDown:n=24,showDeltaUp:a=8,translucentHoldMs:c=220,topSolidThreshold:i=8,startVisible:b=!0,paused:w=!1}={})=>{const[g,_]=(0,e.useState)(b),[x,p]=(0,e.useState)(!1),m=(0,e.useRef)(b),d=(0,e.useRef)(!1),y=(0,e.useRef)(0),l=(0,e.useRef)(0),o=(0,e.useRef)(!1),u=(0,e.useRef)(null),s=(0,e.useRef)(!!w);(0,e.useEffect)(()=>{m.current=g},[g]);const A=()=>{u.current!==null&&(window.clearTimeout(u.current),u.current=null)},f=()=>Math.max(0,window.scrollY??window.pageYOffset??document.documentElement.scrollTop??0),C=()=>{d.current||(d.current=!0,p(!0)),A(),u.current=window.setTimeout(()=>{d.current=!1,p(!1),u.current=null},c)},v=()=>{d.current&&(d.current=!1,p(!1)),A()};return(0,e.useEffect)(()=>{if(s.current=!!w,!(typeof window>"u")&&s.current){m.current||(m.current=!0,_(!0)),v();const S=f();y.current=S,l.current=S}},[w]),(0,e.useEffect)(()=>{if(typeof window>"u")return;const S=()=>{o.current||(o.current=!0,window.requestAnimationFrame(()=>{if(s.current){o.current=!1;return}const D=f(),we=y.current,I=D-we,q=I>0?1:I<0?-1:0,ee=Math.abs(D-l.current);if(D<=i){m.current||(m.current=!0,_(!0),l.current=0),v(),y.current=D,o.current=!1;return}q>0&&(D>t&&ee>n&&m.current&&(m.current=!1,_(!1),l.current=D),v()),q<0&&((!m.current&&ee>=a||!m.current&&a===0)&&(m.current=!0,_(!0),l.current=D),C()),y.current=D,o.current=!1}))};return y.current=f(),d.current=!1,p(!1),window.addEventListener("scroll",S,{passive:!0}),()=>{window.removeEventListener("scroll",S),A()}},[t,n,a,c,i]),{isVisible:g,isTranslucent:x}},_e=()=>{const[t,n]=(0,e.useState)(100),[a,c]=(0,e.useState)(!1),[i,b]=(0,e.useState)(!1),w=(0,e.useRef)(null),{width:g}=(0,le.l)(),[_,x]=(0,e.useState)(100),[p,m]=(0,e.useState)(100),d=(0,E.d4)(L.DT.selectors.selectRouteEntryContentTypeId)==="homeNEW",y=(0,de.W6)(),l=v=>y.push(`/search?term=${v}`),o=(0,E.d4)(z.z0),{isVisible:u,isTranslucent:s}=be({hideOffsetDown:120,hideDeltaDown:24,showDeltaUp:8,translucentHoldMs:220,topSolidThreshold:8,startVisible:!0,paused:a||i});(0,e.useEffect)(()=>{const v=S=>{w.current&&!w.current.contains(S.target)&&(n(100),x(100),m(100),b(!1),c(!1))};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),(0,e.useEffect)(()=>{i&&n(100)},[i]),(0,e.useEffect)(()=>{t!==100&&b(!1)},[t]);const A=()=>{c(!1),b(v=>!v)};(0,e.useEffect)(()=>{const v=g<990&&a||i,S=document.body.style.overflow,D=document.body.style.touchAction;return v?(document.body.style.overflow="hidden",document.body.style.touchAction="none"):(document.body.style.overflow=S,document.body.style.touchAction=D),()=>{document.body.style.overflow=S,document.body.style.touchAction=D}},[a,i,g]);const{navMenu:f,featureLinks:C}=o;return!f||!C?null:e.createElement(oe,{ref:w,className:`header ${d?"header--homepage":""} ${d&&!u?"header--hidden":""} ${d&&u&&s?"header--visible-translucent":""} `},e.createElement(me(),{active:a||i},e.createElement("div",{className:"header__outer-wrapper"},e.createElement("div",{className:"header__container u-container"},e.createElement("div",{className:"header__logo-container"},e.createElement(r.A,{path:"/"},e.createElement($.A,{className:"header__logo",icon:"logo"}),e.createElement("span",{className:"sr-only"},"Return to the homepage"))),g>990&&e.createElement(pe,{navMenu:f,featureLinks:C,setActiveItem:n,activeItem:t,setActiveSubMenu:x,activeSubMenu:_,setActiveSubTwoMenu:m,activeSubTwoMenu:p}),e.createElement("div",{className:"header_button-container"},e.createElement("button",{className:"header__button header__button--search",onClick:A,"aria-expanded":i,"aria-controls":"header-search"},i?e.createElement(e.Fragment,null,e.createElement("span",{className:"sr-only"},"Close search"),e.createElement($.A,{icon:"close",className:"header__search-icon",size:32})):e.createElement(e.Fragment,null,e.createElement("span",{className:"sr-only"},"Open search"),e.createElement($.A,{icon:"search",className:"header__search-icon",size:32}))),g<990&&e.createElement(ce.Ay,{color:"#ffffff",toggled:a,toggle:v=>{c(v),b(!1)},size:24,label:a?"Close menu":"Open menu"}))),i&&e.createElement("div",{className:"header__search-container",id:"header-search"},e.createElement(se.A,{submit:v=>l(v),autofocus:!0})),g<990&&a&&e.createElement(ie,{navMenu:f}))))};var fe=h(14864);const ge=`https://www.${PUBLIC_URI.replace(/(http|https):\/\/|www\.|\/$/g,"")}`,ye=({authorTwitterHandle:t,description:n,locale:a="en_GB",ogDescription:c,ogImage:i,ogImageAltText:b,ogType:w="website",pageTitle:g,rssFeedPath:_,twitterCardType:x="summary",twitterHandle:p,insytful:m=!0,noIndex:d=!1,noFollow:y=!1,schema:l})=>{const o=(0,E.d4)(L.DT.selectors.selectCurrentProject),u=(0,E.d4)(L.DT.selectors.selectRouteEntryEntryId),s=(0,E.d4)(L.DT.selectors.selectCanonicalPath),A=(0,E.d4)(z.TX),f=(0,E.d4)(z.Iz),C=A??"国产视频",v=C?`${g} | ${C}`:`${g}`,S=`${ge}${s}`;return e.createElement(fe.m,null,e.createElement("title",null,v),d?e.createElement("meta",{name:"robots",content:"noindex"}):null,y?e.createElement("meta",{name:"robots",content:"nofollow"}):null,n?e.createElement("meta",{name:"description",content:n}):null,e.createElement("meta",{property:"og:site_name",content:C}),s?e.createElement("meta",{property:"og:url",content:S}):null,e.createElement("meta",{property:"og:title",content:g}),c||n?e.createElement("meta",{property:"og:description",content:c||n}):null,i||f?.src?e.createElement("meta",{property:"og:image",content:i||(f&&f.src?f.src:"")}):null,b||f?.alt?e.createElement("meta",{property:"og:image:alt",content:b||(f&&f?.alt?f.alt:"")}):null,e.createElement("meta",{property:"og:image:width",content:"1200"}),e.createElement("meta",{property:"og:image:height",content:"630"}),e.createElement("meta",{property:"og:type",content:w}),a?e.createElement("meta",{property:"og:locale",content:a}):null,e.createElement("meta",{name:"twitter:card",content:x}),p?e.createElement("meta",{name:"twitter:site",content:p}):null,t?e.createElement("meta",{name:"twitter:creator",content:t}):null,e.createElement("meta",{name:"twitter:title",content:g}),n?e.createElement("meta",{name:"twitter:description",content:n}):null,i?e.createElement("meta",{name:"twitter:image",content:i}):null,b?e.createElement("meta",{name:"twitter:image:alt",content:b}):null,s?e.createElement("link",{rel:"canonical",href:S}):null,m&&o?e.createElement("meta",{name:"IDL:ProjectId",content:o}):null,m&&u?e.createElement("meta",{name:"IDL:EntryId",content:u}):null,_?e.createElement("link",{rel:"alternate",type:"application/rss+xml",title:`RSS Feed for ${C}`,href:_}):null,l?e.createElement("script",{type:"application/ld+json"},JSON.stringify(l)):null)},xe=({className:t,children:n,meta:a,showClearing:c})=>{const i=(0,E.d4)(z.c1)??null;return e.createElement(e.Fragment,null,e.createElement(Y,null),c&&e.createElement(P,{...i}),e.createElement(ye,{...a}),e.createElement(_e,null),e.createElement("main",{id:"main",className:`main ${t||""}`},n),e.createElement(ae,null))}},8981:(X,T,h)=>{h.d(T,{l:()=>k});var e=h(48322),E=h(35241);function k(){const[R,$]=(0,e.useState)({width:0,height:0}),M=()=>{$({width:window.innerWidth,height:window.innerHeight})};return(0,E.ML)("resize",M),(0,E.Es)(()=>{M()},[]),R}var W=null}}]);