import e,{useEffect as a,Suspense as t}from"react";import"../../../node_modules/prop-types/index.js";import r from"../../../node_modules/next/router.js";import"../../../node_modules/react-redux/es/index.js";import l from"../../common/Loading/Loading.js";import{useSelector as n}from"../../../node_modules/react-redux/es/hooks/useSelector.js";import{useDispatch as o}from"../../../node_modules/react-redux/es/hooks/useDispatch.js";import{Flex as s}from"../../../node_modules/@chakra-ui/layout/dist/esm/flex.js";import{p as c}from"../../../_virtual/index.js_commonjs-module";function m(r){var c=r.account,m=r.language,i=r.selectFooterLinks,u=r.loadFooterLinks,d=r.loadSecondaryFooterLinks,g=r.selectSecondaryFooterLinks,f=c.domain,E=c.footerLogoUrl,k=c.address,h=c.phone,p=c.mobileNumber,b=c.instagram,v=c.facebook,N=c.youtube,x=c.twitter,y=c.email,_=n(i),w=n(g),j=o();return a((function(){j(u({domain:f,language:m})),j(d({domain:f,language:m}))}),[m,j]),null==_?e.createElement(l,null):e.createElement(e.Fragment,null,e.createElement(t,{fallback:e.createElement(l,null)},e.createElement("div",{className:"footer variant-1"},e.createElement("div",{className:"footer-info-wrapper"},e.createElement("div",{className:"columns first",style:{flex:.4,display:"flex",alignItems:"baseline"}},e.createElement("img",{src:c.assetsEndpoint+E,style:{height:"auto",width:48},alt:"logo"})),e.createElement("div",{className:"container-fluid quicklinks-wrapper"},e.createElement("div",{className:"row"},e.createElement("div",{className:"quicklinks"},_.map((function(a,t){return e.createElement("a",{className:"quicklink-href",key:t,href:a.linkUrl},a.text)})))),e.createElement("div",{className:"row mt-3"},e.createElement("div",{className:"secondary-quicklinks"},w.map((function(a,t){return e.createElement("a",{className:"quicklink-href",key:t,href:a.linkUrl},a.text)}))))),e.createElement("div",{className:"columns last"},e.createElement("a",{href:"https://g.page/BrightonCollegeBangkok?share",rel:"noreferrer",target:"_blank"},e.createElement("span",{dangerouslySetInnerHTML:{__html:k}})),e.createElement("a",{href:"mailto:"+y},y),e.createElement("p",null,e.createElement("abbr",{title:"Telephone"},"T"),":"," ",e.createElement("a",{href:"tel:"+h,className:"tel"},h),e.createElement("br",null),e.createElement("abbr",{title:"Mobile"},"M"),":"," ",e.createElement("a",{href:"tel:"+p,className:"mobile"},p)),e.createElement(s,{className:"share"},null==b||""==b?e.createElement(e.Fragment,null):e.createElement("a",{href:b,rel:"noreferrer","aria-label":"instagram",target:"_blank"},e.createElement("svg",{className:"Icon Icon--max",role:"img","aria-labelledby":"instagram-icon-title","aria-hidden":"true"},e.createElement("use",{href:"/static/svg/icons.svg#instagram-icon"}))),null==v||""==v?e.createElement(e.Fragment,null):e.createElement("a",{href:v,rel:"noreferrer","aria-label":"facebook",target:"_blank"},e.createElement("svg",{className:"Icon Icon--max",role:"img","aria-labelledby":"facebook-icon","aria-hidden":"true"},e.createElement("use",{href:"/static/svg/icons.svg#facebook-icon"}))),null==x||""==x?e.createElement(e.Fragment,null):e.createElement("a",{href:x,rel:"noreferrer","aria-label":"twitter",target:"_blank"},e.createElement("svg",{className:"Icon Icon--max",role:"img","aria-labelledby":"twitter-icon","aria-hidden":"true"},e.createElement("use",{href:"/static/svg/icons.svg#twitter-icon"}))),null==N||""==N?e.createElement(e.Fragment,null):e.createElement("a",{href:N,rel:"noreferrer","aria-label":"youtube",target:"_blank"},e.createElement("svg",{className:"Icon Icon--max",role:"img","aria-labelledby":"youtube-icon","aria-hidden":"true"},e.createElement("use",{href:"/static/svg/icons.svg#instagram-icon"}))))))),e.createElement("div",{className:"tail"},e.createElement("div",{className:"container"},e.createElement("div",{className:"footnote"},"© Brighton College International School Bangkok ",(new Date).getFullYear()),e.createElement("div",{className:"footnote"},e.createElement("a",{href:"/en/privacy-cookies"},"Cookies"))))),e.createElement("style",{jsx:!0},"\n        .quicklinks-wrapper {\n          flex: 40%;\n        }\n      "))}m.propTypes={account:c.exports.object,language:c.exports.string};var i=r.withRouter(m);export default i;
//# sourceMappingURL=Footer1.js.map
