1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{1912:(e,t,l)=>{"use strict";l.d(t,{SectionContactUs:()=>h});var s=l(5155),a=l(2115);let r=e=>{let{className:t,children:l}=e;return(0,s.jsx)("section",{className:"flex w-full flex-col items-center ".concat(t||""),children:l})};var i=l(6766);let n=e=>{let{name:t,value:l,onChange:a,errors:r,type:i,placeholder:n}=e;return(0,s.jsxs)("div",{className:"relative w-full flex-1",children:[(0,s.jsx)("input",{name:t,id:t,value:l,onChange:a,type:i,placeholder:n,className:"h-12 w-full flex-1 appearance-none rounded-sm border px-2 outline-0 ".concat(r?"border-red-500 bg-red-200":"border-transparent bg-white")}),r&&(0,s.jsx)("p",{className:"absolute top-full left-0 w-full text-left text-xs text-red-400",children:r})]})};var o=l(6945);let c=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-check-circle h-auto w-full",viewBox:"0 0 16 16",children:[(0,s.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),(0,s.jsx)("path",{d:"m10.97 4.97-.02.022-3.473 4.425-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05"})]}),m=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-x-circle h-auto w-full",viewBox:"0 0 16 16",children:[(0,s.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),(0,s.jsx)("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"})]}),u=e=>{let{message:t,success:l,okHandler:a}=e;return(0,s.jsx)("div",{className:"fixed top-0 left-0 z-50 flex h-full w-full items-center justify-center bg-black/50 p-10",children:(0,s.jsxs)("div",{className:"flex w-full max-w-[500px] flex-col items-center justify-center gap-5 rounded-xl bg-white p-6",children:[(0,s.jsx)("div",{className:"w-30 ".concat(l?"text-green-600":"text-red-600"),children:l?(0,s.jsx)(c,{}):(0,s.jsx)(m,{})}),(0,s.jsx)("p",{className:"text-center text-xl",children:t}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("button",{onClick:a,className:"h-10 w-20 cursor-pointer rounded-lg bg-black text-white transition-all hover:bg-yellow-700",type:"button",children:"Ok"})})]})})};var d=function(e){return e.firstName="firstName",e.lastName="lastName",e.email="email",e}(d||{});let h=()=>{let[e,t]=a.useState(""),[l,c]=a.useState(""),[m,d]=a.useState(""),[h,x]=a.useState(""),[f,p]=a.useState(""),[w,g]=a.useState(""),[j,v]=a.useState(!0),[b,N]=a.useState(!1),[y,k]=a.useState(null),[S,C]=a.useState(!1),E=async l=>{l.preventDefault();let s=!1;if(e.length<2&&(s=!0,c("First Name is to short")),m.length<2&&(s=!0,x("Last Name is to short")),f||(s=!0,g("Email is required")),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f.trim())||(s=!0,g("Invalid email address")),s)return null;try{C(!0);let l=await fetch(o.Q.sendEmail,{method:"POST",body:JSON.stringify({firstName:e,lastName:m,email:f})}),s=await l.json();l.ok?(v(!0),k("Youâve successfully joined the network."),p(""),t(""),d("")):(k("Error: ".concat(s.error)),v(!1))}catch(e){console.error(e),v(!1),e instanceof Error?k("Error: ".concat(e.message)):k("Something went wrong")}finally{N(!0),C(!1)}},_=e=>{let{name:s,value:a}=e.target;switch(s){case"firstName":t(a),l&&c("");break;case"lastName":d(a),h&&x("");break;case"email":p(a),w&&g("");break;default:return}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r,{className:"relative mt-10 bg-black py-32",children:[(0,s.jsx)(i.default,{src:"/images/5667004.jpg",alt:"Background",fill:!0,className:"object-cover opacity-20 mix-blend-hard-light",priority:!0}),(0,s.jsx)("div",{className:"z-10 container",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h2",{className:"text-4xl font-bold text-yellow-400",children:"Join the Network"}),(0,s.jsx)("p",{className:"mx-auto mt-6 text-white opacity-65 md:max-w-1/2",children:"Join our mailing list for expert commentary on major global issues, rapid updates on breaking events, and top content from the Turan Research Center."}),(0,s.jsxs)("form",{onSubmit:S?()=>null:E,className:"mt-6 flex w-full flex-col items-center justify-center gap-5 md:flex-row",children:[(0,s.jsx)(n,{name:"firstName",value:e,onCh
1ange:_,type:"text",placeholder:"Your First Name...",errors:l}),(0,s.jsx)(n,{name:"lastName",value:m,onChange:_,type:"text",placeholder:"Your Last Name...",errors:h}),(0,s.jsx)(n,{name:"email",value:f,onChange:_,type:"email",placeholder:"Your Email...",errors:w}),(0,s.jsx)("div",{className:"w-full flex-1",children:(0,s.jsx)("button",{type:"submit",className:"h-12 w-full cursor-pointer rounded-sm bg-yellow-400 transition-all hover:bg-yellow-500 active:bg-yellow-700",children:S?"Loading ....":"Send"})})]})]})})]}),b&&(0,s.jsx)(u,{okHandler:()=>{N(!1),k(null)},success:j,message:y||""})]})}},3396:(e,t,l)=>{"use strict";l.d(t,{BlockFirstHtml:()=>r});var s=l(5155),a=l(2115);let r=e=>{let{firstArticle:t}=e,[l,r]=a.useState(null);return a.useEffect(()=>{r(t.html)},[t.html]),(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 w-full bg-black/50 p-4 text-white",children:[(0,s.jsx)("h3",{className:"line-clamp-2 text-2xl font-bold lg:max-h-[64px]",children:t.title}),(0,s.jsx)("div",{className:"mt-4 line-clamp-3 text-sm lg:max-h-[56px]",dangerouslySetInnerHTML:{__html:l||""}}),(0,s.jsx)("div",{className:"mt-3 text-right text-sm text-white underline transition-all hover:text-yellow-500",children:"Read More"})]})}},8452:(e,t,l)=>{"use strict";l.d(t,{ImageSlider:()=>c});var s=l(5155),a=l(2115),r=l(1996);l(6298),l(4202);var i=l(1155),n=l.n(i),o=l(6766);let c=e=>{let{media:t,title:l}=e,i=a.useRef(null),c=a.useRef(null),m=a.useRef(null);return a.useMemo(()=>t&&Array.isArray(t)&&t.length>1?(0,s.jsx)(r.A,{className:"w-full max-w-[542px]",...{dots:!1,adaptiveHeight:!0,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,arrows:!0},beforeChange:()=>{i.current&&i.current.pause()},children:t.map(e=>"video"===e.type?(0,s.jsx)("div",{ref:m,className:"relative",children:(0,s.jsx)(n(),{light:(0,s.jsx)(o.default,{src:e.preview_url||"",className:"min-h-[210px]",width:310,height:205,alt:"Thumbnail"}),ref:c,url:e.url||"",controls:!0,className:"min-h-[210px]",playing:!1,width:"100%",height:"auto",playsinline:!0})},e.id):(0,s.jsx)(o.default,{fill:!0,src:e.url,className:"w-full object-cover object-center",alt:l},e.id))}):t&&Array.isArray(t)&&t[0]&&t[0].url&&"video"!==t[0].type?(0,s.jsx)(o.default,{fill:!0,src:t[0].url||"",className:"w-full object-cover object-center",alt:l,sizes:"100%"}):t[0]&&t[0].url&&"video"===t[0].type?(0,s.jsx)("div",{ref:m,className:"relative",children:(0,s.jsx)(n(),{light:(0,s.jsx)(o.default,{src:t[0].preview_url||"",className:"min-h-[210px]",width:310,height:205,alt:"Thumbnail"}),ref:c,className:"min-h-[210px]",url:t[0].url||"",controls:!0,playing:!0,width:"100%",height:"auto",playsinline:!0})}):(0,s.jsx)(s.Fragment,{}),[t,l])}},8866:(e,t,l)=>{Promise.resolve().then(l.t.bind(l,6874,23)),Promise.resolve().then(l.t.bind(l,3063,23)),Promise.resolve().then(l.bind(l,3396)),Promise.resolve().then(l.bind(l,775)),Promise.resolve().then(l.bind(l,9082)),Promise.resolve().then(l.bind(l,8452)),Promise.resolve().then(l.bind(l,1912))}},e=>{var t=t=>e(e.s=t);e.O(0,[5149,1261,6128,2360,8441,1684,7358],()=>t(8866)),_N_E=e.O()}]);
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.