1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1344],{79202:function(n,e,i){"use strict";i.d(e,{$:function(){return w}});var l=i(11527),t=i(3658),o=i(64018),r=i(25458),s=i(65477),a=i(89498),x=i(62949),c=i(54300),d=i(48398),p=i(96427),u=i(65375),h=i.n(u),m=i(27083),v=i(50959),j=i(73257),g=i(81694),f=i(38062),b=i(73537),k=i(42361);let S=n=>{var e,i,t;let{navigationLink:r}=n,{onToggle:x,isOpen:c}=(0,g.q)(),d=r.linkUrl;return d.startsWith("http")||d.startsWith("/")||(d="/".concat(d)),(0,l.jsxs)(o.xu,{cursor:"pointer",children:[(0,l.jsx)(a.k,{alignItems:"center",children:r.type==b.wP.SingleLink?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(h(),{href:d,children:(0,l.jsx)(s.x,{color:"white",fontSize:{base:"14px",md:"18px"},children:r.name})})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.x,{style:{cursor:"pointer"},color:"white",fontSize:{base:"14px",md:"18px"},onClick:()=>x(),children:r.name}),(null!==(t=null===(e=r.subLinks)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0&&(0,l.jsx)(f.z,{as:"a",variant:"ghost",color:"white",onClick:()=>x(),_hover:{},_active:{},_focus:{},h:"20px",children:c?(0,l.jsx)(k.kWQ,{color:"white"}):(0,l.jsx)(k.MOd,{color:"white"})})]})}),c&&(null===(i=r.subLinks)||void 0===i?void 0:i.slice(0,10).map((n,e)=>{let i=n.linkUrl;return i.startsWith("http")||i.startsWith("/")||(i="/".concat(i)),(0,l.jsx)(h(),{href:i,children:(0,l.jsx)(s.x,{color:"white",fontSize:"14px",p:2,children:n.name})},e)}))]})};var y=i(557);let w=()=>{var n,e,i,u,g,f,b,k;let w=(0,t.p)(),L=(0,p.b)(),B=null!==(b=null==L?void 0:null===(n=L.appState)||void 0===n?void 0:n.language)&&void 0!==b?b:"",N=(0,d.EM)(B),[R,U]=(0,v.useState)(null!==(k=null==L?void 0:null===(e=L.appState)||void 0===e?void 0:e.navigationMenu)&&void 0!==k?k:null);return(0,v.useEffect)(()=>{null==R&&(async()=>{try{let n=await (0,m.Ff)();n&&(U(n),null==L||L.setNavigationMenu(n))}catch(n){(0,j.ck)(w)}})()},[R]),(0,l.jsxs)(o.xu,{bg:"gray",children:[(0,l.jsx)(y.S,{flex:"1",paddingTop:"50px",children:(0,l.jsxs)(r.r,{gridTemplateColumns:{base:"repeat(auto-fit, calc(50% - 8px))",md:"repeat(auto-fit, calc(50% - 12px))",xl:"repeat(auto-fit, calc(25% - 41px))"},flex:"1",gap:{base:"16px",md:"24px",xl:"54px"},paddingBottom:"50px",marginBottom:{base:"20px",md:"0px"},borderBottom:{base:"1px solid #D3DCD9",md:"none"},children:[(0,l.jsxs)(o.xu,{children:[(0,l.jsx)(E,{children:null==R?void 0:R[N].column1Name}),(0,l.jsx)(_,{children:null==R?void 0:null===(i=R[N].column1NavigationLinks)||void 0===i?void 0:i.map((n,e)=>(0,l.jsx)(S,{navigationLink:n},e))})]}),(0,l.jsxs)(o.xu,{children:[(0,l.jsx)(E,{children:null==R?void 0:R[N].column2Name}),(0,l.jsx)(_,{children:null==R?void 0:null===(u=R[N].column2NavigationLinks)||void 0===u?void 0:u.map((n,e)=>(0,l.jsx)(S,{navigationLink:n},e))})]}),(0,l.jsxs)(o.xu,{children:[(0,l.jsx)(E,{children:null==R?void 0:R[N].column3Name}),(0,l.jsx)(_,{children:null==R?void 0:null===(g=R[N].column3NavigationLinks)||void 0===g?void 0:g.map((n,e)=>(0,l.jsx)(S,{navigationLink:n},e))})]}),(0,l.jsxs)(o.xu,{children:[(0,l.jsx)(E,{children:null==R?void 0:R[N].column4Name}),(0,l.jsx)(_,{children:null==R?void 0:null===(f=R[N].column4NavigationLinks)||void 0===f?void 0:f.map((n,e)=>(0,l.jsx)(S,{navigationLink:n},e))})]})]})}),(0,l.jsxs)(y.S,{alignItems:"center",flexDirection:"row",marginBottom:{base:"40px",md:"50px"},children:[(0,l.jsx)(o.xu,{children:(0,l.jsx)(h(),{href:"https://pdpa.rsu.ac.th/privacy-notice.html",children:(0,l.jsx)(s.x,{color:"white",fontSize:{base:"14px",md:"18px"},children:"Privacy Policy"})})}),(0,l.jsx)(a.k,{ml:"auto",h:"48px",mr:1,alignItems:"center",children:R?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h(),{href:null==R?void 0:R[N].facebookURL,children:(0,l.jsx)(x.E,{mx:2,src:"/img/facebook.svg",cursor:"pointer",alt:"alt"})}),(0,l.jsx)(h(),{href:null==R?void 0:R[N].instagramURL,children:(0,l.jsx)(x.E,{mx:2,src:"/img/instagram.svg",cursor:"pointer",alt:"alt"})}),(0,l.jsx)(h(),{href:null==R?void 0:R[N].youtubeURL,children:(0,l.jsx)(x.E,{mx:2,src:"/img/youtube.svg",cursor:"pointer",alt:"alt"})}),(0,l.jsx)(h(),{href:null==R?void 0:R[N].twitterURL,children:(0,l.jsx)(x.E,{mx:2,src:"/img/x.svg",cursor:"pointer",alt:"alt"})}),(0,l.jsx)(h(),{href:null==R?void 0:R[N].tiktokURL,children:(0,l.jsx)(x.E,{mx:2,src:"/img/tiktok.svg",cursor:"pointer",alt:"alt"})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.l,{}),(0,l.jsx)(c.l,{}),(0,l.jsx)(c.l,{}),(0,l.jsx)(c.l,{}),(0,l.jsx)(c.l,{})]})})]}),(0,l.jsx)(a.k,{alignItems:"center",h:"48px",bgColor:"primary.color",children:(0,l.jsx)(s.x,{color:"white",flex:"1",textAlign:"center",fontSize:"12px",children:"\xa9 2024 RANGSIT UNIVERSITY"})})]})},E=n=>{let{children:e}=n;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s.x,{color:"secondary.title",fontSize:{base:"18px",xl:"20px"},fontFamily:"RSU",fontWeight:"700",children:e})})},_=n=>{let{children:e}=n;return(0,l.jsx)(a.k,{flexDirection:"column",gap:{base:"16px",md:"14px"},marginTop:"16px",children:e})}},81278:function(n,e,i){"use strict";i.d(e,{N:function(){return o}});var l=i(11527),t=i(75128);let o=n=>{let{label:e}=n;return(0,l.jsx)(t.xv,{flex:"1",fontFamily:"RSU",fontSize:{base:"20px",md:"22px"},fontWeight:"700",color:"#515151",children:e||""})}},9911:function(n,e,i){"use strict";i.d(e,{U:function(){return f}});var l=i(11527),t=i(3658),o=i(62341),r=i(89498),s=i(65477),a=i(25458),x=i(64018),c=i(62949),d=i(49849),p=i(557),u=i(94873),h=i(48398),m=i(96427),v=i(72351),j=i(50959),g=i(73257);let f=n=>{var e,i,c,f,k;let{facultyId:S,paddingX:y}=n,w=(0,t.p)();(0,j.useRef)(null);
1let[E,_]=(0,j.useState)(),[L,B]=(0,j.useState)(),N=(0,m.b)(),R=null!==(c=null==N?void 0:null===(e=N.appState)||void 0===e?void 0:e.language)&&void 0!==c?c:"",U=(0,h.EM)(R),[I,C]=(0,j.useState)(null!==(f=null==N?void 0:null===(i=N.appState)||void 0===i?void 0:i.contact)&&void 0!==f?f:null),F=async()=>{try{if(null==S||void 0==S){let n=await (0,v.ws)();n&&(C(n),null==N||N.setContact(n))}else{let n=await (0,v.ok)(S);n&&(C(n),null==N||N.setContact(n))}}catch(n){(0,g.ck)(w)}};(0,j.useEffect)(()=>{F()},[S]);let z=(0,o.S)({base:"32px",md:"50px"});return(0,l.jsxs)(l.Fragment,{children:[null==I&&(0,l.jsx)(r.k,{bg:"white",borderRadius:"8px",p:2,justify:"center",children:(0,l.jsx)(s.x,{children:"Loading contact..."})}),I&&(0,l.jsx)(d.Wrapper,{apiKey:"",language:"TH",callback:n=>{B(n)},children:(0,l.jsx)(p.S,{my:z,...y?{paddingX:y}:{},children:(0,l.jsxs)(a.r,{boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.08)",borderRadius:"md",overflow:"hidden",flex:"1",gridTemplateColumns:{base:"100%",md:"50% 50%",xl:"auto 408px"},children:[(0,l.jsx)(x.xu,{h:{base:"191px",md:"431px"},sx:{"& > div":{height:"100%"},"& > div > div":{height:"100%"},"& iframe":{width:"100%",height:"100%",display:"block"}},children:(null==I?void 0:I[U].mapIframe)&&(null==I?void 0:I[U].mapIframe)!=""&&(0,l.jsx)(u.V,{contentHTML:null==I?void 0:I[U].mapIframe,contentCSS:""})}),(0,l.jsxs)(x.xu,{bgColor:"white",flex:"2",padding:{base:"16px 12px 4px 12px",md:"0px"},children:[(0,l.jsx)(x.xu,{padding:{base:"0px 0px 20px 0px",md:"16px 24px"},borderBottom:"1px solid #EBEBEB",children:(0,l.jsx)(s.x,{fontSize:{base:"20px",md:"22px"},fontWeight:"700",color:"#224E41",fontFamily:"RSU",children:"en"===U?"Contact Us":"à¸à¸´à¸à¸à¹à¸à¹à¸£à¸²"})}),(0,l.jsxs)(r.k,{flexDirection:"column",gap:"8px",padding:{base:"16px 0px",md:"24px"},borderBottom:"1px solid #EBEBEB",children:[(0,l.jsx)(b,{icon:"/icons/ic_map_pin.png",children:null==I?void 0:I[U].address}),(0,l.jsx)(b,{icon:"/icons/ic_phone.png",children:null==I?void 0:I[U].phone}),(0,l.jsx)(b,{icon:"/icons/ic_fax.png",children:null==I?void 0:I[U].fax}),(0,l.jsx)(b,{icon:"/icons/ic_email.png",children:null==I?void 0:I[U].email})]}),(0,l.jsxs)(r.k,{padding:{base:"16px 0px 20px 0px",md:"16px 24px"},gap:"8px",flexDirection:"column",children:[(0,l.jsx)(s.x,{fontSize:{base:"20px",md:"22px"},fontWeight:"700",color:"#224E41",fontFamily:"RSU",children:"en"===U?"Admission":"รัà¸à¸ªà¸¡à¸±à¸à¸£à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²"}),(0,l.jsx)(b,{icon:"/icons/ic_phone.png",children:null!==(k=null==I?void 0:I[U].phoneAdmission)&&void 0!==k?k:"02-791-5510 - 15"})]})]})]})})})]})},b=n=>{let{children:e,icon:i}=n;return(0,l.jsxs)(r.k,{direction:"row",gap:{base:"16px",md:"32px"},children:[(0,l.jsx)(c.E,{src:i,w:"24px",h:"24px",alt:"logo"}),(0,l.jsx)(s.x,{fontFamily:"RSU",fontSize:{base:"16px",md:"18px"},color:"#515151",children:e})]})}},94873:function(n,e,i){"use strict";i.d(e,{V:function(){return r}});var l=i(11527),t=i(52716),o=i.n(t);let r=n=>{let{contentHTML:e,contentCSS:i}=n;return(0,l.jsxs)("div",{children:[""!=i&&(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:i}}),""!=e&&(0,l.jsx)("div",{className:o().container,dangerouslySetInnerHTML:{__html:e}})]})}},41685:function(n,e,i){"use strict";var l=i(11527);i(50959);var t=i(89498);e.Z=n=>{let{children:e,...i}=n;return(0,l.jsx)(t.k,{alignItems:"center",h:16,borderBottom:"1px solid #EBEBEB",...i,children:e})}},52716:function(n){n.exports={container:"InnerHtml_container___fegY"}}}]);
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.