1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5309],{11493:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[facultySlug]/management",function(){return n(3070)}])},9911:function(t,e,n){"use strict";n.d(e,{U:function(){return y}});var i=n(11527),r=n(3658),o=n(62341),u=n(89498),l=n(65477),a=n(25458),c=n(64018),s=n(62949),d=n(49849),p=n(557),h=n(94873),f=n(48398),x=n(96427),m=n(72351),v=n(50959),g=n(73257);let y=t=>{var e,n,s,y,S;let{facultyId:j,paddingX:w}=t,C=(0,r.p)();(0,v.useRef)(null);let[k,_]=(0,v.useState)(),[E,I]=(0,v.useState)(),T=(0,x.b)(),A=null!==(s=null==T?void 0:null===(e=T.appState)||void 0===e?void 0:e.language)&&void 0!==s?s:"",N=(0,f.EM)(A),[P,M]=(0,v.useState)(null!==(y=null==T?void 0:null===(n=T.appState)||void 0===n?void 0:n.contact)&&void 0!==y?y:null),R=async()=>{try{if(null==j||void 0==j){let t=await (0,m.ws)();t&&(M(t),null==T||T.setContact(t))}else{let t=await (0,m.ok)(j);t&&(M(t),null==T||T.setContact(t))}}catch(t){(0,g.ck)(C)}};(0,v.useEffect)(()=>{R()},[j]);let F=(0,o.S)({base:"32px",md:"50px"});return(0,i.jsxs)(i.Fragment,{children:[null==P&&(0,i.jsx)(u.k,{bg:"white",borderRadius:"8px",p:2,justify:"center",children:(0,i.jsx)(l.x,{children:"Loading contact..."})}),P&&(0,i.jsx)(d.Wrapper,{apiKey:"",language:"TH",callback:t=>{I(t)},children:(0,i.jsx)(p.S,{my:F,...w?{paddingX:w}:{},children:(0,i.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,i.jsx)(c.xu,{h:{base:"191px",md:"431px"},sx:{"& > div":{height:"100%"},"& > div > div":{height:"100%"},"& iframe":{width:"100%",height:"100%",display:"block"}},children:(null==P?void 0:P[N].mapIframe)&&(null==P?void 0:P[N].mapIframe)!=""&&(0,i.jsx)(h.V,{contentHTML:null==P?void 0:P[N].mapIframe,contentCSS:""})}),(0,i.jsxs)(c.xu,{bgColor:"white",flex:"2",padding:{base:"16px 12px 4px 12px",md:"0px"},children:[(0,i.jsx)(c.xu,{padding:{base:"0px 0px 20px 0px",md:"16px 24px"},borderBottom:"1px solid #EBEBEB",children:(0,i.jsx)(l.x,{fontSize:{base:"20px",md:"22px"},fontWeight:"700",color:"#224E41",fontFamily:"RSU",children:"en"===N?"Contact Us":"à¸à¸´à¸à¸à¹à¸à¹à¸£à¸²"})}),(0,i.jsxs)(u.k,{flexDirection:"column",gap:"8px",padding:{base:"16px 0px",md:"24px"},borderBottom:"1px solid #EBEBEB",children:[(0,i.jsx)(b,{icon:"/icons/ic_map_pin.png",children:null==P?void 0:P[N].address}),(0,i.jsx)(b,{icon:"/icons/ic_phone.png",children:null==P?void 0:P[N].phone}),(0,i.jsx)(b,{icon:"/icons/ic_fax.png",children:null==P?void 0:P[N].fax}),(0,i.jsx)(b,{icon:"/icons/ic_email.png",children:null==P?void 0:P[N].email})]}),(0,i.jsxs)(u.k,{padding:{base:"16px 0px 20px 0px",md:"16px 24px"},gap:"8px",flexDirection:"column",children:[(0,i.jsx)(l.x,{fontSize:{base:"20px",md:"22px"},fontWeight:"700",color:"#224E41",fontFamily:"RSU",children:"en"===N?"Admission":"รัà¸à¸ªà¸¡à¸±à¸à¸£à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²"}),(0,i.jsx)(b,{icon:"/icons/ic_phone.png",children:null!==(S=null==P?void 0:P[N].phoneAdmission)&&void 0!==S?S:"02-791-5510 - 15"})]})]})]})})})]})},b=t=>{let{children:e,icon:n}=t;return(0,i.jsxs)(u.k,{direction:"row",gap:{base:"16px",md:"32px"},children:[(0,i.jsx)(s.E,{src:n,w:"24px",h:"24px",alt:"logo"}),(0,i.jsx)(l.x,{fontFamily:"RSU",fontSize:{base:"16px",md:"18px"},color:"#515151",children:e})]})}},88244:function(t,e,n){"use strict";var i=n(11527),r=n(64018),o=n(65477),u=n(40207),l=n(50959),a=n(23589),c=n(9547),s=n(20592),d=n.n(s),p=n(21030);e.Z=t=>{var e,n;let{title:s,values:h,items:f,width:x,error:m,onSelectItemChange:v,isRequired:g,disabled:y,isSingleValueSelector:b,filterPrimaryColor:S,chakraStyles:j,components:w,...C}=t,[k,_]=(0,l.useState)(Math.random()),[E,I]=(0,l.useState)(!1),T={...j,placeholder:(t,e)=>{let n={...t,color:"#A8ADA8"};return(null==j?void 0:j.placeholder)?j.placeholder(n,e):n}},A={DropdownIndicator:p.kc,ClearIndicator:()=>null,MultiValue:p.Ft,...w};return(0,l.useEffect)(()=>{_(Math.random())},[f]),(0,i.jsxs)(r.xu,{width:x,...C,onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:[""!=s&&(0,i.jsxs)(o.x,{fontSize:"14px",fontWeight:"700",margin:"0 0 10px 10px",color:"blackAlpha.800",children:[s," ",g&&(0,i.jsx)(a.H,{})]}),f&&(null==f?void 0:f.length)>0&&(!0==b?(0,i.jsx)(u.Z,{className:"react-select ".concat(d().select),placeholder:null!==(e=C.placeholder)&&void 0!==e?e:"",defaultValue:f.filter(t=>h.includes(t.value)),colorScheme:"purple",options:null!=f?f:[],isMulti:!1,chakraStyles:T,components:A,onChange:t=>{t?v([t.value]):v([])},_isControlHovered:E,_primaryColor:S},k):(0,i.jsx)(u.Z,{className:d().select,placeholder:null!==(n=C.placeholder)&&void 0!==n?n:"",defaultValue:f.filter(t=>h.includes(t.value)),colorScheme:"purple",options:null!=f?f:[],isMulti:!0,chakraStyles:T,components:A,onChange:t=>{if(!t)return v([]);v(t.map(t=>t.value))},_isControlHovered:E,_primaryColor:S},k)),m&&(0,i.jsx)(c.Z,{children:m})]})}},23589:function(t,e,n){"use strict";n.d(e,{H:function(){return r}});var i=n(11527);let r=()=>(0,i.jsx)("span",{style:{color:"red"},children:"*"})},9547:function(t,e,n){"use strict";var i=n(65477);let r=(0,n(43461).ZP)(i.x).withConfig({componentId:"sc-167d41ca-0"})(()=>({fontSize:"10px",fontWeight:"700",margin:"10px 0 10px 10px",color:"#EF3C63"}));e.Z=r},94873:function(t,e,n){"use strict";n.d(e,{V:function(){return u}});var i=n(11527),r=n(52716),o=n.n(r);let u=t=>{let{contentHTML:e,contentCSS:n}=t;return(0,i.jsxs)("div",{children:[""!=n&&(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:n}}),""!=e&&(0,i.jsx)("div",{className:o().container,dangerouslySetInnerHTML:{__html:e}})]})}},21030:function(t,e,n){"use strict";n.d(e,{Ft:function(){return c},NL:function(){return l},fJ:function(){return a},kc:function(){return s}});var i=n(11527),r=n(99449),o=n(66712),u=n(64018);let l=t=>{let{stroke:e="#EF3C63"}=t;return(0,i.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M19 8.99023L12 15.9902L5 8.99023",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},a=t=>{let{stroke:e="#EF3C63"}=t;return(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M18 6L6 18M6 6l12 12",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},c=t=>{var e;let{data:n,removeProps:u,selectProps:l}=t,a=null!==(e=null==l?void 0:l._primaryColor)&&void 0!==e?e:"#EF3C63";return(0,i.jsxs)(r.Vp,{height:"22px",variant:"solid",bgColor:a,borderRadius:"100px",marginLeft:"4px",flexShrink:1,marginBottom:"2px",children:[(0,i.jsx)(r.Sn,{children:n.label}),(0,i.jsx)(o.P,{...u,w:"12px",h:"12px",minW:"12px",p:"3px",ml:"6px",sx:{"& svg":{w:"6px",h:"6px"}}})]})},s=t=>{var e;let{innerProps:n,selectProps:r,clearValue:o,hasValue:c}=t,s=r._isControlHovered,d=null!==(e=r._primaryColor)&&void 0!==e?e:"#EF3C63",p=s&&c;return(0,i.jsx)(u.xu,{...n,onClick:p?t=>{t.stopPropagation(),o()}:null==n?void 0:n.onClick,display:"flex",alignItems:"center",pr:"16px",pl:"8px",height:"100%",cursor:"pointer",children:p?(0,i.jsx)(a,{stroke:d}):(0,i.jsx)(l,{stroke:d})})}},31104:function(t,e,n){"use strict";n.d(e,{Ac:function(){return x},Az:function(){return u},Cb:function(){return M},EI:function(){return P},GC:function(){return a},JH:function(){return f},Lx:function(){return k},MO:function(){return i},Mn:function(){return N},Ms:function(){return S},Nb:function(){return g},Pm:function(){return I},SE:function(){return s},Sm:function(){return w},U1:function(){return j},U7:function(){return c},Ve:function(){return B},Vg:function(){return o},Vy:function(){return b},Zd:function(){return A},_r:function(){return O},a9:function(){return E}
1,aT:function(){return r},ak:function(){return z},bo:function(){return y},bt:function(){return v},eq:function(){return m},fd:function(){return H},hb:function(){return p},hq:function(){return C},ib:function(){return d},j4:function(){return _},wT:function(){return R},wd:function(){return F},wf:function(){return l},yc:function(){return T},zg:function(){return h},zk:function(){return L}});let i=t=>"th"==t?"à¸à¸à¸°à¸à¸±à¹à¸à¸«à¸¡à¸":"Any Faculties",r=t=>"th"==t?"ระà¸à¸±à¸à¸à¸±à¹à¸à¸à¸±à¹à¸à¸«à¸¡à¸":"Any Degrees",o=t=>"th"==t?"หลัà¸à¸ªà¸¹à¸à¸£":"Courses",u=t=>"th"==t?"หลัà¸à¸ªà¸¹à¸à¸£":"Course",l=t=>"th"==t?"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸·à¹à¸à¸à¸²à¸à¸à¸à¸à¸à¸à¸£à¹à¸ª":"Course Information",a=t=>"th"==t?"à¹à¸à¸·à¹à¸à¸«à¸²à¸à¸à¸à¸à¸à¸£à¹à¸ª":"Course Content",c=t=>"th"==t?"à¹à¸£à¸·à¹à¸à¸à¸£à¸²à¸§à¸à¸£à¸°à¸ªà¸à¸à¸§à¸²à¸¡à¸ªà¸³à¹à¸£à¹à¸":"Success Stories",s=t=>"th"==t?"à¸à¸¥à¸à¸²à¸à¸à¸±à¸§à¸à¸¢à¹à¸²à¸à¸à¸à¸à¸à¸´à¸ªà¸´à¸":"Showcases",d=t=>"th"==t?"ลำà¸à¸±à¸":"Sort order",p=t=>"th"==t?"à¸à¸à¸£à¹à¸ª ID":"Course ID",h=t=>"th"==t?"à¸à¸·à¹à¸à¸à¸à¸£à¹à¸ª":"Course Title",f=t=>"th"==t?"à¸à¸à¸°":"Faculties",x=t=>"th"==t?"ระà¸à¸±à¸à¸à¸±à¹à¸":"Degrees",m=t=>"th"==t?"à¸à¹à¸²à¹à¸à¸à¸¡à¹à¸£à¸à¹à¸à¹à¸²à¸¨à¸¶à¸à¸©à¸²":"First semester tuition fee",v=t=>"th"==t?"à¸à¹à¸²à¹à¸¥à¹à¸²à¹à¸£à¸µà¸¢à¸à¸à¸¥à¸à¸à¸«à¸¥à¸±à¸à¸ªà¸¹à¸à¸£":"Tuition fee for the whole program",g=t=>"th"==t?"à¸à¸µà¸à¸²à¸£à¸¨à¸¶à¸à¸©à¸²":"Academic Years",y=t=>"th"==t?"สายà¸à¸²à¸à¸à¸²à¸à¸µà¸":"Future careers",b=t=>"th"==t?"à¸à¸´à¸à¸à¸£à¸£à¸¡":"Activities",S=t=>"th"==t?"à¹à¸à¸·à¹à¸à¸à¹à¸à¸à¸²à¸£à¸ªà¸¡à¸±à¸à¸£":"Registration Conditions",j=t=>"th"==t?"สรà¹à¸²à¸à¸à¸à¸£à¹à¸ª":"New Course",w=t=>"th"==t?"à¸à¸±à¸à¸à¸¶à¸":"Save",C=t=>"th"==t?"ยà¸à¹à¸¥à¸´à¸":"Discard",k=t=>"th"==t?"à¹à¸à¸£à¸µà¸¢à¸à¹à¸à¸µà¸¢à¸à¸«à¸¥à¸±à¸à¸ªà¸¹à¸à¸£":"Compare courses",_=t=>"th"==t?"หลัà¸à¸ªà¸¹à¸à¸£":"Courses",E=t=>"th"==t?"ระยะà¹à¸§à¸¥à¸²à¸à¸à¸à¸«à¸¥à¸±à¸à¸ªà¸¹à¸à¸£":"Duration of the program",I=t=>"th"==t?"à¸à¸µ":"years",T=t=>"th"==t?"à¸à¸²à¸£à¸à¸±à¸à¹à¸¥à¸·à¸à¸à¸à¸¹à¹à¹à¸à¹à¸²à¸¨à¸¶à¸à¸©à¸²":"Registration conditions",A=t=>"th"==t?"à¸à¸²à¸à¸µà¸à¸à¸µà¹à¸à¹à¸à¸¢à¸à¸":"Careers",N=t=>"th"==t?"à¸à¸´à¸à¸à¸£à¸£à¸¡à¸à¸µà¹à¸à¹à¸²à¸ªà¸à¹à¸":"Activities",P=t=>"th"==t?"รุà¹à¸à¸à¸µà¹à¸à¸µà¹à¸à¸à¸à¸²à¸à¸à¸à¸°à¸à¸µà¹":"Success stories",M=t=>"th"==t?"à¸à¸¹à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸¡":"View details",R=t=>"th"==t?"สมัà¸à¸£":"Register",F=t=>"th"==t?"à¸à¹à¸²à¹à¸¥à¹à¸²à¹à¸£à¸µà¸¢à¸":"Tuition Fee",L=t=>"th"==t?"à¸à¸£à¸¸à¸à¸²à¹à¸¥à¸·à¸à¸à¸à¸à¸£à¹à¸ªà¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸£à¸µà¸¢à¸à¹à¸à¸µà¸¢à¸":"Please select course to compare.",B=t=>"th"==t?"à¹à¸à¸à¸à¸²à¸£à¹à¸£à¸µà¸¢à¸":"Study Plan",z=t=>"th"==t?"à¹à¸à¸ à¸. à¹à¸¡à¹à¸¡à¸µà¸§à¸´à¸à¸¢à¸²à¸à¸´à¸à¸à¸à¹":"Plan B (Course Work)",H=t=>"th"==t?"à¹à¸à¸ à¸. วิà¸à¸¢à¸²à¸à¸´à¸à¸à¸à¹":"Plan A (Thesis)",O=t=>"th"==t?"à¸à¸¸à¸à¸à¸²à¸£à¸¨à¸¶à¸à¸©à¸²":"Scholarship"},17338:function(t,e,n){"use strict";n.d(e,{C9:function(){return c},N5:function(){return u},PH:function(){return i},dB:function(){return l},nz:function(){return o},ri:function(){return a},yU:function(){return r}});let i=t=>"th"==t?"à¸à¸§à¸²à¸¡à¸à¸à¸±à¸":"Proficiency",r=t=>"th"==t?"สรà¹à¸²à¸à¸à¸§à¸²à¸¡à¸à¸à¸±à¸":"New aptitude",o=t=>"th"==t?"à¸à¸·à¹à¸à¸à¸§à¸²à¸¡à¸à¸à¸±à¸":"Aptitude name",u=t=>"th"==t?"à¸à¸·à¹à¸à¸à¸§à¸²à¸¡à¸à¸à¸±à¸ (TH)":"Aptitude Name (TH)",l=t=>"th"==t?"à¸à¸·à¹à¸à¸à¸§à¸²à¸¡à¸à¸à¸±à¸ (EN)":"Aptitude Name (EN)",a=t=>"th"==t?"à¸à¸±à¸à¸à¸¶à¸":"Save",c=t=>"th"==t?"ยà¸à¹à¸¥à¸´à¸":"Discard"},53409:function(t,e,n){"use strict";n.d(e,{Dq:function(){return d},EL:function(){return k},ET:function(){return h},E_:function(){return E},Fh:function(){return g},Gu:function(){return l},I5:function(){return N},KL:function(){return a},Op:function(){return S},PF:function(){return r},QU:function(){return T},VR:function(){return _},WB:function(){return A},Yc:function(){return u},_D:function(){return p},f1:function(){return C},i$:function(){return j},jo:function(){return m},kf:function(){return w},l1:function(){return f},l7:function(){return I},m$:function(){return c},qt:function(){return o},sV:function(){return y},u1:function(){return b},up:function(){return s},wm:function(){return x},x7:function(){return v}});var i=n(50128);let r=(t,e)=>{if("en"==e)switch(t){case i._B.EXTERNAL:return"New Student";case i._B.INTERNAL:return"Student/Staff";case i._B.All:return"All";default:return"Any audience"}else switch(t){case i._B.EXTERNAL:return"à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²à¹à¸«à¸¡à¹";case i._B.INTERNAL:return"à¸à¸¸à¸à¸¥à¸²à¸à¸£/à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²";case i._B.All:return"à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²à¹à¸«à¸¡à¹, à¸à¸¸à¸à¸¥à¸²à¸à¸£/à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²";default:return"à¸à¸¹à¹à¸à¸¡à¸à¸±à¹à¸à¸«à¸¡à¸"}},o=t=>"th"==t?"à¸à¸à¸à¸§à¸²à¸¡à¸à¸µà¹à¹à¸à¸µà¹à¸¢à¸§à¸à¹à¸à¸":"Related persons",u=t=>"th"==t?"à¸à¸¹à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸¡":"View more",l=t=>"th"==t?"à¸à¹à¸à¸«à¸²":"Search",a=t=>"Persons",c=t=>"Management",s=t=>"Management Content",d=t=>"th"==t?"à¹à¸à¸¥à¹à¹à¸à¸":"File attachments",p=t=>"th"==t?"à¹à¸à¸à¹à¸à¸¥à¹":"File attachment",h=t=>"th"==t?"สรà¹à¸²à¸à¸à¸¹à¹à¸à¸£à¸´à¸«à¸²à¸£à¹à¸¥à¸°à¸à¸¸à¸à¸à¸¥à¸²à¸à¸£":"New person",f=t=>"th"==t?"à¸à¸´à¸à¸à¸²à¸£à¸à¸¹à¸à¸±à¸§à¸à¸¢à¹à¸²à¸":"Close preview",x=t=>"th"==t?"à¸à¸à¸°":"Faculties",m=t=>"th"==t?"à¸à¸à¸°":"Faculties",v=t=>"th"==t?"à¸à¸·à¹à¸":"Name",g=t=>"th"==t?"รูà¸à¹à¸à¸£à¹à¸à¸¥à¹":"Profile Image",y=t=>"Position",b=t=>"th"==t?"à¸à¸µà¸¢à¹à¹à¸§à¸´à¸£à¹à¸ Meta":"Meta keywords",S=t=>"th"==t?"à¸à¸£à¸£à¸¢à¸²à¸¢ Meta ":"Meta description",j=t=>"th"==t?"à¹à¸à¸·à¹à¸à¸«à¸²":"Content",w=t=>"th"==t?"ลำà¸à¸±à¸":"Sort order",C=t=>"th"==t?"à¹à¸à¸¢à¹à¸à¸£à¹à¹à¸¡à¸·à¹à¸":"Published At",k=t=>"th"==t?"สà¸à¸²à¸à¸°":"Status",_=t=>"th"==t?"à¸à¸±à¸à¸à¸¶à¸":"Save",E=t=>"th"==t?"ยà¸à¹à¸¥à¸´à¸":"Discard",I=t=>"th"==t?"à¸à¸§à¸²à¸¡à¸à¸à¸±à¸":"Proficiency",T=t=>"th"==t?"à¸à¸³à¹à¸«à¸à¹à¸":"Position",A=t=>"th"==t?"หลัà¸à¸ªà¸¹à¸à¸£":"Program",N=t=>"th"==t?"à¸à¸¹à¹à¸à¸£à¸´à¸«à¸²à¸£à¹à¸¥à¸°à¸à¸¸à¸à¸à¸¥à¸²à¸à¸£":"Executives and Staff"},62673:function(t,e,n){"use strict";n.d(e,{a:function(){return l}});var i=n(50128),r=n(58928),o=n(63885),u=n(48483);let l=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"",l="";(0,u.s)()&&(l="".concat("http://backendv2:5030"));let a="".concat(l,"/api/v2/faculties/infos/slug/").concat(t);
1return await (0,o._i)(a,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})}},3070:function(t,e,n){"use strict";n.r(e);var i=n(11527),r=n(97808),o=n(13272),u=n(38575),l=n(15660),a=n(50959),c=n(62673),s=n(48398),d=n(96427),p=n(3658),h=n(62341),f=n(10325),x=n(72237),m=n(37471),v=n(65477),g=n(64018),y=n(89498),b=n(25458),S=n(21179),j=n(59376),w=n(62949),C=n(5431),k=n(50128),_=n(9911),E=n(1625),I=n(74444),T=n(73257),A=n(53409),N=n(73892),P=n(65375),M=n.n(P),R=n(32625),F=n(9160),L=n(88244),B=n(31104),z=n(17338);e.default=()=>{var t,e,n;let S=(0,p.p)(),j=(0,E.useRouter)(),[w,C]=(0,a.useState)(null),k=(0,d.b)(),P=null!==(n=null==k?void 0:null===(t=k.appState)||void 0===t?void 0:t.language)&&void 0!==n?n:"",O=(0,s.EM)(P),W=(0,h.S)(["12px","12px","60px"," 0px"]),Z=(0,h.S)(["24px","50px"]),{facultySlug:V}=j.query,[D,U]=(0,a.useState)(null),[G,X]=(0,a.useState)([]),[q,J]=(0,a.useState)([]),[K,Y]=(0,a.useState)(void 0),[$,Q]=(0,a.useState)([]),[tt,te]=(0,a.useState)([]),[tn,ti]=(0,a.useState)([]),[tr,to]=(0,a.useState)([]),tu=async()=>{try{let t=await (0,I.Gq)({skip:0,limit:1e3});t&&(te(t.levels),t.levels.length>0&&null!=t.levels[0].id&&Y(t.levels[0].id))}catch(t){(0,T.ck)(S)}},tl=async()=>{try{let t=await (0,I.lc)({skip:0,limit:1e3});t&&ti(t.aptitudes)}catch(t){(0,T.ck)(S)}},ta=async t=>{try{let e=await (0,R.wA)({skip:0,limit:1e4,lang:"all",facultyIds:[t]});e&&to(e.courses)}catch(t){console.error(t)}},tc=async t=>{try{let e=await (0,c.a)(t);C(e),U(!1)}catch(t){console.log({error:t}),U(!0)}};(0,a.useEffect)(()=>{V&&tc(V)},[V]),(0,a.useEffect)(()=>{null!=w&&(async()=>{try{var t;await ta(null!==(t=null==w?void 0:w.facultyId)&&void 0!==t?t:""),await tu(),await tl()}catch(t){console.error(t)}})()},[w]),(0,a.useEffect)(()=>{ts()},[w,$,q,K,P]);let ts=async()=>{if(""!=P&&null!=w)try{var t;let e=await (0,I.wf)({skip:0,limit:30,facultyId:null!==(t=w.facultyId)&&void 0!==t?t:"",courseIds:q,levelIds:void 0!=K?[K]:void 0,aptitudeIds:$,lang:P});e&&(console.log({res:e}),X(e.persons))}catch(t){(0,T.ck)(S)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.f,{lang:P,title:(0,A.I5)(P),image:null==w?void 0:w.imageUrl}),(0,i.jsx)(r.W,{userType:l.O.external,disableAudienceTypeCheck:!0,facultyId:null==w?void 0:w.facultyId,logo:null==w?void 0:w.imageUrl,colorCode:null==w?void 0:w.colorCode}),(0,i.jsx)(o.s,{title:(0,A.I5)(P),breadcrumbs:[{name:(0,u.Cb)("en"),nameTH:(0,u.Cb)("th"),link:(null==w?void 0:w.slug)?"/".concat(null==w?void 0:w.slug):"/",allowedPermissions:[]},{name:(0,A.I5)("en"),nameTH:(0,A.I5)("th"),link:"".concat((null==w?void 0:w.slug)?"/".concat(w.slug):"","/management"),allowedPermissions:[]}]}),(0,i.jsx)(F.L,{navigationItems:null==tt?void 0:tt.map(t=>({id:"".concat(t.id),name:null==t?void 0:t[(0,s.TX)(P)]})),selectedNavigationItem:null==tt?void 0:null===(e=tt.map(t=>({id:"".concat(t.id),name:null==t?void 0:t[(0,s.TX)(P)]})))||void 0===e?void 0:e.find(t=>t.id==K),onSelectedItem:t=>{Y(t.id)}}),(0,i.jsxs)(f.W,{maxW:"1200px",width:"100%",paddingX:W,paddingY:Z,children:[(0,i.jsxs)(x.K,{gap:{base:"24px",md:"32px"},direction:{base:"column",md:"row"},alignItems:{base:"start",md:"center"},marginBottom:{base:"24px",md:"50px"},children:[(0,i.jsxs)(m.U,{children:[(0,i.jsx)(v.x,{fontWeight:"bold",fontSize:"20px",children:(0,u.zV)(O)}),(0,i.jsx)(v.x,{fontWeight:"bold",display:{base:"none",md:"inline-block"},children:":"})]}),(0,i.jsxs)(x.K,{width:{base:"100%",md:"auto"},gap:{base:"16px",md:"32px"},direction:{base:"column",md:"row"},children:[(0,i.jsx)(g.xu,{width:{base:"100%",md:"300px"},flex:"0 0 auto",children:(0,i.jsx)(y.k,{style:{backgroundColor:"white",borderRadius:"8px",border:"1px #528271 solid"},children:(0,i.jsx)(L.Z,{w:"100%",title:"",items:tr.map(t=>({label:"en"==P?t.en.title:t.th.title,value:t.id})),placeholder:(0,B.Az)(O),values:q,onSelectItemChange:t=>{J(t)}})})}),(0,i.jsx)(g.xu,{width:{base:"100%",md:"300px"},flex:"0 0 auto",children:(0,i.jsx)(y.k,{style:{backgroundColor:"white",borderRadius:"8px",border:"1px #528271 solid"},children:(0,i.jsx)(L.Z,{w:"100%",title:"",items:tn.map(t=>{var e;return{label:"en"==P?t.nameEN:t.nameTH,value:null!==(e=t.id)&&void 0!==e?e:""}}
1),placeholder:(0,z.PH)(P),values:$,onSelectItemChange:t=>{Q(t)}})})})]})]}),(0,i.jsx)(b.r,{gridTemplateColumns:{base:"repeat(1, 1fr)",md:"repeat(3, 1fr)",xl:"repeat(4, 1fr)"},gap:{base:"8px",md:"24px"},marginBottom:{base:"50px",md:"42px"},children:null==G?void 0:G.map(t=>(0,i.jsx)(M(),{href:t.slug&&""!=t.slug?"/".concat(null==w?void 0:w.slug,"/management/").concat(t.slug):"/".concat(null==w?void 0:w.slug,"/management/id/").concat(t.id),children:(0,i.jsx)(H,{person:t})},t.id))}),(0,i.jsx)(_.U,{facultyId:null==w?void 0:w.facultyId})]})]})};let H=t=>{var e,n;let{person:r}=t,o=(0,d.b)(),u=null!==(n=null==o?void 0:null===(e=o.appState)||void 0===e?void 0:e.language)&&void 0!==n?n:"",l=(0,s.EM)(u);return(0,i.jsx)(S.P,{background:"white",shadow:"md",padding:{base:"12px",md:"16px 16px 24px 16px"},borderRadius:8,children:(0,i.jsxs)(x.K,{direction:{base:"row",md:"column"},spacing:4,children:[(0,i.jsx)(j.o,{ratio:1,borderRadius:8,overflow:"hidden",minW:"76px",height:"fit-content",children:(0,i.jsx)(w.E,{src:r[l].imageUrl,fallbackSrc:k.N1,objectFit:"cover",width:"100%"})}),(0,i.jsxs)(C.g,{alignItems:"start",spacing:0,children:[(0,i.jsx)(v.x,{fontSize:"20px",fontWeight:"bold",marginBottom:"4px",children:null==r?void 0:r[l].name}),(0,i.jsx)(v.x,{fontFamily:"RSUText",fontSize:{base:"24px",md:"26px"},color:"#528271",lineHeight:{base:"24px",md:"26px "},children:null==r?void 0:r[l].position})]})]})})}},32625:function(t,e,n){"use strict";n.d(e,{cg:function(){return d},eW:function(){return u},uH:function(){return l},vG:function(){return c},vV:function(){return s},wA:function(){return a}});var i=n(50128),r=n(58928),o=n(63885);let u=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"";return await (0,o._i)("/api/v2/faculties/courses",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(t)})},l=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"";return await (0,o._i)("/api/v2/faculties/courses/".concat(t,"?is-admin=true&lookup-success-stories=true"),{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})},a=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"",u="/api/v2/faculties/courses?is-admin=true"+"&skip=".concat(t.skip,"&limit=").concat(t.limit);return t.search&&(u+="&search=".concat(t.search)),void 0!=t.hasOrder&&(u+="&has-order=".concat(t.hasOrder)),void 0!=t.facultyIds&&(u+="&faculty-ids=".concat(t.facultyIds.join(","))),void 0!=t.degreeIds&&(u+="°ree-ids=".concat(t.degreeIds.join(","))),await (0,o._i)(u,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})},c=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"",u="/api/v2/faculties/courses/".concat(t.id);await (0,o._i)(u,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(t)})},s=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"";await (0,o._i)("/api/v2/faculties/courses/".concat(t),{method:"DELETE",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})},d=async t=>{var e;let n=(null===(e=(0,r.getCookie)(i.ml))||void 0===e?void 0:e.toString())||"";return await (0,o._i)("/api/v2/faculties/courses/slug-check",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(t)})}},20592:function(t){t.exports={select:"MultiSelectGroup_select__WSWJG"}},52716:function(t){t.exports={container:"InnerHtml_container___fegY"}},15293:function(t,e,n){t.exports=n(35783)},75621:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(64221);function r(t,e,n){return(e=(0,i.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},71131:function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n={};for(var i in t)if(({}).hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}n.d(e,{Z:function(){return i}})},78882:function(t,e,n){"use strict";
1function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return i}})},64221:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(79869);function r(t){var e=function(t,e){if("object"!=(0,i.Z)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=(0,i.Z)(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,i.Z)(e)?e:e+""}},79869:function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,{Z:function(){return i}})},20451:function(t,e,n){"use strict";n.d(e,{X:function(){return i}});var i=(0,n(59797).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},21179:function(t,e,n){"use strict";n.d(e,{P:function(){return c}});var i=n(52795),r=n(78379),o=n(32920),u=n(4791),l=n(11527);function a(t){return(0,u.XQ)(t,t=>"auto"===t?"auto":`span ${t}/span ${t}`)}var c=(0,i.G)(function(t,e){let{area:n,colSpan:i,colStart:u,colEnd:c,rowEnd:s,rowSpan:d,rowStart:p,...h}=t,f=(0,o.oA)({gridArea:n,gridColumn:a(i),gridRow:a(d),gridColumnStart:u,gridColumnEnd:c,gridRowStart:p,gridRowEnd:s});return(0,l.jsx)(r.m.div,{ref:e,__css:f,...h})});c.displayName="GridItem"},5431:function(t,e,n){"use strict";n.d(e,{g:function(){return u}});var i=n(72237),r=n(52795),o=n(11527),u=(0,r.G)((t,e)=>(0,o.jsx)(i.K,{align:"center",...t,direction:"column",ref:e}));u.displayName="VStack"}},function(t){t.O(0,[5084,3485,2440,9213,781,2855,5175,6692,9260,7808,5736,2888,9774,179],function(){return t(t.s=11493)}),_N_E=t.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.