1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8194,8725],{3760:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[facultyId]/thesis/collections/[bid]",function(){return n(26029)}])},48290:function(e,t,n){"use strict";var r=n(14224);n(55935);var i=n(50959),o=i&&"object"==typeof i&&"default"in i?i:{default:i},l=void 0!==r&&r.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},s=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,o=void 0===i?l:i;u(a(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var s=document.querySelector('meta[property="csp-nonce"]');this._nonce=s?s.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(l||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return l||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var n=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){l||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];u(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,n){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function p(e,t){var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var f=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=r||new s({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),r&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=o,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=h(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),x=i.createContext(null);x.displayName="StyleSheetContext";var v=o.default.useInsertionEffect||o.default.useLayoutEffect,g=new f;function m(e){var t=g||i.useContext(x);return t&&v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}m.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=m},90984:function(e,t,n){"use strict";e.exports=n(48290).style},99735:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(11527),i=n(65477),o=n(65375),l=n.n(o);let a=e=>{let{label:t,path:n,color:o}=e;return(0,r.jsx)(l(),{href:n,children:(0,r.jsx)(i.x,{fontFamily:"RSU",fontSize:"18px",textDecoration:"underline",color:o||"#EF3C63",fontWeight:"700",children:t})})}},42259:function(e,t,n){"use strict";n.d(t,{w:function(){return S}});var r=n(11527),i=n(62341),o=n(89128),l=n(64018),a=n(89498),s=n(62949),u=n(65477),c=n(37471),d=n(50128),h=n(48398),p=n(23025),f=n(65375),x=n.n(f),v=n(1625),g=n(50959),m=n(41685),y=n(70679),b=n(48483);let S=e=>{let{title:t,events:n,showTitle:f,listBoxProps:S,lang:w,listClassName:j}=e,C=(0,v.useRouter)(),{facultySlug:_}=C.query,E=(0,h.EM)(w),[k,O]=(0,g.useState)(!1);(0,i.S)({base:"0px 12px 0px 12px",md:"16px 24px 0px 24px"});let I=(0,i.S)({base:"0px 12px 0px 12px",md:"0px 24px 0px 24px"});(0,g.useEffect)(()=>{(0,b.s)()||O(!0)},[]);
1let F="en"===w?"View All":"à¸à¸¹à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸¡",R=e=>{if(null==e?void 0:e[E].showContent){let t="",n={};_&&""!=_&&(t="/[facultySlug]",n={...n,facultySlug:_});let r="".concat(t,"/event/id/[id]");C.push({pathname:r,query:{...n,id:e.id}})}},N=Array.from([,,,].keys()).map(e=>(0,r.jsx)(o.O,{mb:4,startColor:"sloading.start",endColor:"sloading.end",children:(0,r.jsx)(l.xu,{w:"100%",h:"75px",bgColor:"blue",my:2})},"skeleton-hlbanner-".concat(e))),A=null==n?void 0:n.map((e,t)=>{var n;let i=null==e?void 0:e[(0,h.EM)(w)];return(0,r.jsxs)(a.k,{flex:"1",h:"75px",mb:4,_hover:{cursor:i.showContent?"pointer":""},onClick:()=>R(e),alignItems:"center",children:[(0,r.jsx)(s.E,{fallbackSrc:d.N1,src:i.imageUrl,w:"100px",height:"56px",alt:"".concat(i.title),borderRadius:"4px",objectFit:"cover"}),(0,r.jsxs)(a.k,{ml:"2",direction:"column",children:[i.topic&&(0,r.jsx)(u.x,{textColor:"#528271",noOfLines:1,fontSize:"12px",lineHeight:"16px",fontFamily:"RSU",children:i.topic}),(0,r.jsx)(u.x,{noOfLines:2,fontSize:"16px",lineHeight:"20px",color:"#515151",fontWeight:"700",fontFamily:"RSU",marginBottom:"2px",children:i.title}),(0,r.jsxs)(c.U,{alignItems:"center",mt:"auto",children:[(0,r.jsx)(s.E,{src:"/icons/ic_cal.png",alt:"ic_cal",boxSize:3}),(0,r.jsx)(u.x,{fontSize:"11px",lineHeight:"10px",children:k&&(0,y._Q)(new Date(null!==(n=e.startAt)&&void 0!==n?n:""),e.endAt?new Date(e.endAt):null,w)}),""!=i.location&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.E,{src:"/icons/ic_map_pin.png",alt:"ic_pin",boxSize:3}),(0,r.jsx)(u.x,{fontSize:"11px",lineHeight:"10px",children:i.location})]})]})]})]},t)});return(0,r.jsxs)(l.xu,{position:"relative",width:"100%",children:[f&&(0,r.jsxs)(m.Z,{padding:I,borderTop:"1px solid #EBEBEB",children:[(0,r.jsx)(u.x,{color:"#515151",fontWeight:"700",fontFamily:"RSU",fontSize:{base:"20px",md:"22px"},children:null!=t?t:(0,p.M8)(w)}),(0,r.jsx)(l.xu,{ml:"auto",children:(0,r.jsx)(x(),{href:"/events",children:(0,r.jsx)(u.x,{color:"primary.color",textDecoration:"underline",children:F})})})]}),(0,r.jsx)(l.xu,{overflowY:"auto",overflowX:"hidden",...S,className:j,children:n?A:N})]})};S.defaultProps={showTitle:!0,listBoxProps:{}}},86285:function(e,t,n){"use strict";n.d(t,{q:function(){return f}});var r=n(11527),i=n(64018),o=n(65477),l=n(89498),a=n(50959),s=n(23589),u=n(9547);n(83710),n(99934);var c=n(86909),d=n(9794),h=n.n(d);let p=e=>{let{value:t,onChange:n,setIsFocused:i,disableTime:o}=e;return(0,r.jsx)(c.Z,{locale:"en-GB",onChange:n,value:null!=t?t:void 0,className:h().container,onCalendarOpen:()=>{i(!0)},onCalendarClose:()=>{i(!1)},clearIcon:null,...o?{format:"dd/MM/y",disableClock:!0}:{}})},f=e=>{let{label:t,width:n,error:c,isRequired:d,datetime:h,onDatetimeChange:f,inputBackground:x,disableTime:v,...g}=e;(0,a.useEffect)(()=>{f(h)},[]);let[m,y]=(0,a.useState)(!1);return(0,r.jsxs)(i.xu,{width:n,...g,children:[(0,r.jsxs)(o.x,{fontSize:"14px",fontWeight:"700",fontFamily:"RSU",margin:"0 0 10px 10px",children:[t," ",d&&(0,r.jsx)(s.H,{})]}),(0,r.jsx)(l.k,{style:{backgroundColor:x||"#ff000000"},alignItems:"center",borderRadius:"8px",border:"".concat(m?"2px solid":"0.5px solid"," "),borderColor:"".concat(m?"#3182CE":"#E2E8F0"," "),fontSize:"12px",fontWeight:"400",minHeight:"40px",flexWrap:"wrap",width:"100%",paddingLeft:"8px",children:(0,r.jsx)(p,{value:h,onChange:f,setIsFocused:y,disableTime:v})}),c&&(0,r.jsx)(u.Z,{children:c})]})}},64638:function(e,t,n){"use strict";var r=n(11527),i=n(89498),o=n(65477),l=n(6952),a=n(50959),s=n(58825),u=n(23589),c=n(9547);t.Z=e=>{let{label:t,value:n,onChangeValue:d,error:h,isRequired:p,inputBackground:f,...x}=e,[v,g]=(0,a.useState)(n),m=(0,s.y1)(e=>{d(e)},500);return(0,a.useEffect)(()=>{v!=n&&g(n)},[n]),(0,r.jsxs)(i.k,{direction:"column",width:"100%",...x,children:[(0,r.jsxs)(o.x,{fontSize:"14px",fontWeight:"700",margin:"0 0 10px 10px",children:[t," ",p&&(0,r.jsx)(u.H,{})]}),(0,r.jsx)(l.g,{style:{backgroundColor:f||"#ff000000"},fontSize:"14px",borderRadius:"8px",border:"0.5px solid",borderColor:"#E2E8F0",h:"100%",value:v,onChange:e=>{g(e.currentTarget.value),m(e.currentTarget.value)}}),h&&(0,r.jsx)(c.Z,{children:h})]})}},88244:function(e,t,n){"use strict";var r=n(11527),i=n(64018),o=n(65477),l=n(40207),a=n(50959),s=n(23589),u=n(9547),c=n(20592),d=n.n(c),h=n(21030);t.Z=e=>{var t,n;
1let{title:c,values:p,items:f,width:x,error:v,onSelectItemChange:g,isRequired:m,disabled:y,isSingleValueSelector:b,filterPrimaryColor:S,chakraStyles:w,components:j,...C}=e,[_,E]=(0,a.useState)(Math.random()),[k,O]=(0,a.useState)(!1),I={...w,placeholder:(e,t)=>{let n={...e,color:"#A8ADA8"};return(null==w?void 0:w.placeholder)?w.placeholder(n,t):n}},F={DropdownIndicator:h.kc,ClearIndicator:()=>null,MultiValue:h.Ft,...j};return(0,a.useEffect)(()=>{E(Math.random())},[f]),(0,r.jsxs)(i.xu,{width:x,...C,onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),children:[""!=c&&(0,r.jsxs)(o.x,{fontSize:"14px",fontWeight:"700",margin:"0 0 10px 10px",color:"blackAlpha.800",children:[c," ",m&&(0,r.jsx)(s.H,{})]}),f&&(null==f?void 0:f.length)>0&&(!0==b?(0,r.jsx)(l.Z,{className:"react-select ".concat(d().select),placeholder:null!==(t=C.placeholder)&&void 0!==t?t:"",defaultValue:f.filter(e=>p.includes(e.value)),colorScheme:"purple",options:null!=f?f:[],isMulti:!1,chakraStyles:I,components:F,onChange:e=>{e?g([e.value]):g([])},_isControlHovered:k,_primaryColor:S},_):(0,r.jsx)(l.Z,{className:d().select,placeholder:null!==(n=C.placeholder)&&void 0!==n?n:"",defaultValue:f.filter(e=>p.includes(e.value)),colorScheme:"purple",options:null!=f?f:[],isMulti:!0,chakraStyles:I,components:F,onChange:e=>{if(!e)return g([]);g(e.map(e=>e.value))},_isControlHovered:k,_primaryColor:S},_)),v&&(0,r.jsx)(u.Z,{children:v})]})}},43794:function(e,t,n){"use strict";var r=n(11527),i=n(72823),o=n(64018),l=n(65477),a=n(99449),s=n(43461),u=n(23589),c=n(9547);let d=(0,s.ZP)(i.P).withConfig({componentId:"sc-8781363-0"})(()=>({borderRadius:"8px",border:"0.5px solid",borderColor:"#E2E8F0",color:"transparent",width:"100%"})),h=s.ZP.option.withConfig({componentId:"sc-8781363-1"})(()=>({display:"none"}));t.Z=e=>{var t,n;let{title:i,value:s,onValueChange:p,items:f,width:x,error:v,colorCondition:g,displayTag:m,isRequired:y,inputBackground:b,isDisabled:S,...w}=e,j=m?g[s]:"",C=null==f?void 0:f.find(e=>e.value==s);return(0,r.jsxs)(o.xu,{width:x,...w,children:[(0,r.jsxs)(l.x,{fontSize:"14px",fontWeight:"700",margin:"0 0 10px 10px",color:"blackAlpha.800",children:[i," ",y&&(0,r.jsx)(u.H,{})]}),(0,r.jsxs)(o.xu,{border:"0.5px solid #E2E8F0",borderRadius:"8px",height:"40px",position:"relative",style:{backgroundColor:b||"#ff000000"},children:[m&&C?(0,r.jsx)(a.Vp,{height:"24px",color:"white",background:j,marginTop:"9px",marginLeft:"8px",children:null!==(t=C.label)&&void 0!==t?t:""}):(0,r.jsx)(l.x,{fontSize:"14px",fontWeight:"400",marginTop:"12px",ml:4,color:"blackAlpha.800",children:null!==(n=null==C?void 0:C.label)&&void 0!==n?n:""}),(0,r.jsx)(o.xu,{position:"absolute",top:"0",left:"0",width:"100%",children:(0,r.jsxs)(d,{value:s,placeholder:"",iconColor:"#A0AEC0",disabled:S,style:{opacity:S?1:void 0,cursor:S?"not-allowed":void 0},onChange:e=>{S||p(e.currentTarget.value)},children:[(0,r.jsx)(h,{}),null==f?void 0:f.map(e=>(0,r.jsx)("option",{style:{color:"black"},value:e.value,children:e.label},e.value))]})})]}),v&&(0,r.jsx)(c.Z,{children:v})]})}},56696:function(e,t,n){"use strict";n.d(t,{m:function(){return f}});var r=n(11527),i=n(64018),o=n(65477),l=n(89498),a=n(99449),s=n(66712),u=n(23589),c=n(9547),d=n(50959),h=n(18963),p=n.n(h);let f=e=>{let{label:t,tags:n,setTags:h,width:f,error:x,placeholder:v,isDisabled:g,isRequired:m,inputBackground:y,...b}=e,[S,w]=(0,d.useState)(!1),[j,C]=(0,d.useState)(""),_=e=>
1{h(n.filter((t,n)=>n!==e))},E=e=>{let t=e.includes(","),r=e.split(",").map(e=>e.trim()).filter(e=>""!=e);t?(C(""),h([...n,...r])):C(e)};return(0,r.jsxs)(i.xu,{...b,width:"100%",children:[(0,r.jsxs)(o.x,{fontSize:"14px",fontWeight:"700",margin:"0 0 10px 10px",children:[t," ",m&&(0,r.jsx)(u.H,{})]}),(0,r.jsxs)(l.k,{alignItems:"center",borderRadius:"8px",border:"".concat(S?"2px solid":"0.5px solid"," "),borderColor:"".concat(S?"#3182CE":"#E2E8F0"," "),fontSize:"14px",fontWeight:"400",minHeight:"40px",flexWrap:"wrap",width:"100%",padding:"8px",style:{backgroundColor:y||"#ff000000"},children:[n.map((e,t)=>(0,r.jsxs)(a.Vp,{height:"22px",variant:"solid",bgColor:"#EF3C63",borderRadius:"100px",marginLeft:"4px",flexShrink:1,marginBottom:"2px",children:[(0,r.jsx)(a.Sn,{children:e}),(0,r.jsx)(s.P,{w:"12px",h:"12px",minW:"12px",p:"3px",ml:"6px",sx:{"& svg":{w:"6px",h:"6px"}},onClick:()=>{_(t)}})]},t)),(0,r.jsx)("input",{type:"text",style:{backgroundColor:y||"#ff000000"},value:j,onChange:e=>{E(e.target.value)},className:p().hiddenInput,onFocus:()=>{w(!0)},onBlur:e=>{E(e.target.value+","),w(!1)}})]}),x&&(0,r.jsx)(c.Z,{children:x})]})}},21030:function(e,t,n){"use strict";n.d(t,{Ft:function(){return u},NL:function(){return a},fJ:function(){return s},kc:function(){return c}});var r=n(11527),i=n(99449),o=n(66712),l=n(64018);let a=e=>{let{stroke:t="#EF3C63"}=e;return(0,r.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M19 8.99023L12 15.9902L5 8.99023",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},s=e=>{let{stroke:t="#EF3C63"}=e;return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M18 6L6 18M6 6l12 12",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},u=e=>{var t;let{data:n,removeProps:l,selectProps:a}=e,s=null!==(t=null==a?void 0:a._primaryColor)&&void 0!==t?t:"#EF3C63";return(0,r.jsxs)(i.Vp,{height:"22px",variant:"solid",bgColor:s,borderRadius:"100px",marginLeft:"4px",flexShrink:1,marginBottom:"2px",children:[(0,r.jsx)(i.Sn,{children:n.label}),(0,r.jsx)(o.P,{...l,w:"12px",h:"12px",minW:"12px",p:"3px",ml:"6px",sx:{"& svg":{w:"6px",h:"6px"}}})]})},c=e=>{var t;let{innerProps:n,selectProps:i,clearValue:o,hasValue:u}=e,c=i._isControlHovered,d=null!==(t=i._primaryColor)&&void 0!==t?t:"#EF3C63",h=c&&u;return(0,r.jsx)(l.xu,{...n,onClick:h?e=>{e.stopPropagation(),o()}:null==n?void 0:n.onClick,display:"flex",alignItems:"center",pr:"16px",pl:"8px",height:"100%",cursor:"pointer",children:h?(0,r.jsx)(s,{stroke:d}):(0,r.jsx)(a,{stroke:d})})}},23025:function(e,t,n){"use strict";n.d(t,{Bl:function(){return _},DW:function(){return j},EM:function(){return x},Ie:function(){return b},J3:function(){return c},M8:function(){return i},Nv:function(){return o},Ny:function(){return g},Op:function(){return y},Qi:function(){return s},S:function(){return a},Ym:function(){return v},c4:function(){return C},cH:function(){return l},cI:function(){return f},cW:function(){return d},i$:function(){return S},iE:function(){return w},jB:function(){return r},mO:function(){return u},o4:function(){return p},qH:function(){return E},r1:function(){return h},u1:function(){return m}});let r=e=>"th"==e?"à¸à¸à¸´à¸à¸´à¸":"Calendar",i=e=>"th"==e?"à¸à¸´à¸à¸à¸£à¸£à¸¡à¸à¸µà¹à¸à¹à¸²à¸ªà¸à¹à¸":"Featured Events",o=e=>"th"==e?"à¸à¸´à¸à¸à¸£à¸£à¸¡":"Event",l=e=>"th"==e?"à¸à¹à¸à¸«à¸²":"Search",a=e=>"th"==e?"à¸à¸´à¸à¸à¸£à¸£à¸¡":"Events",s=e=>"th"==e?"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸·à¹à¸à¸à¸²à¸à¸à¸à¸à¸à¸´à¸à¸à¸£à¸£à¸¡":"Event Information",u=e=>"th"==e?"à¹à¸à¸·à¹à¸à¸«à¸²à¸à¸à¸à¸à¸´à¸à¸à¸£à¸£à¸¡":"Event Content",c=e=>"th"==e?"สรà¹à¸²à¸à¸à¸´à¸à¸à¸£à¸£à¸¡":"New Event",d=e=>"th"==e?"à¸à¸´à¸à¸à¸²à¸£à¸à¸¹à¸à¸±à¸§à¸à¸¢à¹à¸²à¸":"Close preview",h=e=>"th"==e?"à¸à¸£à¸°à¹à¸ à¸à¸à¸¹à¹à¸à¸¡":"Audience",p=e=>"th"==e?"หัวà¸à¹à¸":"Topic",f=e=>"th"==e?"หัวà¹à¸£à¸·à¹à¸à¸":"Title",x=e=>"th"==e?"à¸à¸£à¸£à¸¢à¸²à¸¢à¸ªà¸±à¹à¸ à¹":"Short description",v=e=>"th"==e?"à¹à¸£à¸´à¹à¸¡à¹à¸¡à¸·à¹à¸":"Start at",g=e=>"th"==e?"à¸à¸à¹à¸¡à¸·à¹à¸":"End at",m=e=>"th"==e?"à¸à¸µà¸¢à¹à¹à¸§à¸´à¸£à¹à¸ Meta":"Meta keywords",y=e=>"th"==e?"à¸à¸£à¸£à¸¢à¸²à¸¢ Meta ":"Meta description",b=e=>"th"==e?"à¹à¸à¹à¸":"Tags",S=e=>"th"==e?"à¹à¸à¸·à¹à¸à¸«à¸²":"Content",w=e=>"th"==e?"ลำà¸à¸±à¸":"Sort order",j=e=>"th"==e?"à¹à¸à¸¢à¹à¸à¸£à¹à¹à¸¡à¸·à¹à¸":"Published At",C=e=>"th"==e?"สà¸à¸²à¸à¸°":"Status",_=e=>"th"==e?"à¸à¸±à¸à¸à¸¶à¸":"Save",E=e=>"th"==e?"ยà¸à¹à¸¥à¸´à¸":"Discard"},56197:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(93611);let i=(e,t)=>{if("th"==t)switch(e){case r.U.Draft:return"à¸à¸à¸±à¸à¸£à¹à¸²à¸";case r.U.Published:return"à¹à¸à¸¢à¹à¸à¸£à¹";case r.U.Deleted:return"ลà¸";default:return"สà¸à¸²à¸à¸°à¸à¸±à¹à¸à¸«à¸¡à¸"}else switch(e){case r.U.Draft:return"Draft";case r.U.Published:return"Published";case r.U.Deleted:return"Deleted";default:return"Any Status"}}},28883:function(e,t,n){"use strict";n.d(t,{E6:function(){return s},H0:function(){return u},Iv:function(){return r},N1:function(){return i},O_:function(){return l},Op:function(){return y},UA:function(){return f},X_:function(){return a},ci:function(){return o},eY:function(){return S},ge:function(){return c},hO:function(){return j},jn:function(){return b},nK:function(){return w},qh:function(){return d},r:function(){return g},tU:function(){return h},u1:function(){return m},xm:function(){return v},yh:function(){return x},z$:function(){return p}});let r=e=>"th"==e?"หลัà¸à¸ªà¸¹à¸à¸£à¸à¸±à¹à¸à¸«à¸¡à¸":"Any Courses",i=e=>"th"==e?"à¸à¸à¸à¸§à¸²à¸¡à¸à¸µà¹à¹à¸à¸µà¹à¸¢à¸§à¸à¹à¸à¸":"Related persons",o=e=>"th"==e?"à¸à¸¹à¹à¸à¸´à¹à¸¡à¹à¸à¸´à¸¡":"View more",l=e=>
1"th"==e?"à¸à¹à¸à¸«à¸²":"Search",a=e=>"th"==e?"à¸à¸¥à¸à¸²à¸à¸à¸±à¸à¸¨à¸¶à¸à¸©à¸²":"Collection",s=e=>"Thesis Collection Information",u=e=>"Thesis Collection Content",c=e=>"th"==e?"สรà¹à¸²à¸ Collection":"New Collection",d=e=>"th"==e?"à¸à¸´à¸à¸à¸²à¸£à¸à¸¹à¸à¸±à¸§à¸à¸¢à¹à¸²à¸":"Close preview",h=e=>"th"==e?"à¸à¸à¸£à¹à¸ª":"Courses",p=e=>"th"==e?"à¸à¸·à¹à¸à¸à¸à¸ URL (slug)":"URL slug",f=e=>"th"==e?"à¸à¸·à¹à¸ Collection":"Collection Name",x=e=>"th"==e?"à¸à¸à¸£à¹à¸ª":"Courses",v=e=>"th"==e?"à¸à¸à¸£à¹à¸ª":"Courses",g=e=>"th"==e?"à¸à¸µ":"Year",m=e=>"th"==e?"à¸à¸µà¸¢à¹à¹à¸§à¸´à¸£à¹à¸ Meta":"Meta keywords",y=e=>"th"==e?"à¸à¸£à¸£à¸¢à¸²à¸¢ Meta ":"Meta description",b=e=>"th"==e?"à¹à¸à¸¢à¹à¸à¸£à¹à¹à¸¡à¸·à¹à¸":"Published At",S=e=>"th"==e?"สà¸à¸²à¸à¸°":"Status",w=e=>"th"==e?"à¸à¸±à¸à¸à¸¶à¸":"Save",j=e=>"th"==e?"ยà¸à¹à¸¥à¸´à¸":"Discard"},93611:function(e,t,n){"use strict";var r,i;n.d(t,{U:function(){return r}}),(i=r||(r={})).All="-",i.Draft="draft",i.Published="published",i.Deleted="deleted"},26029:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ej}});var r=n(11527),i=n(3658),o=n(89498),l=n(21288),a=n(65477),s=n(37471),u=n(91220),c=n(38062),d=n(64018),h=n(20549),p=n(12666),f=n(14384),x=n(48398),v=n(38575),g=n(28883),m=n(61202),y=n(75055),b=n(96427),S=n(93611);let w=[S.U.Draft,S.U.Published];S.U.All,S.U.Draft,S.U.Published;let j={[S.U.Draft]:"#515151",[S.U.Published]:"#74C7FB"},C={title:"",year:"",metaKeywords:[],metaDescription:"",status:S.U.Published,publishedAt:new Date().toISOString(),desktopOverlayImage:"",tabletOverlayImage:"",mobileOverlayImage:""},_={id:null,sortOrder:null,th:{...C},en:{...C},facultyId:null,courseIds:null,slug:""},E={statusIdError:null,publishedAtError:null,bannerError:null,titleError:null,positionError:null,metaKeywordError:null,tagsError:null,metaDescriptionError:null,contentError:null},k={audienceTypeError:null,categoryIdsError:null,thError:{...E},enError:{...E},thInvalidFields:[],enInvalidFields:[],slugError:null};var O=n(1625),I=n(50959),F=n(63885),R=n(73257),N=n(70115),A=n(5431),z=n(56696),U=n(93741),T=n(17323),P=n(64638),M=n(9547),Z=n(43682),D=n(62011),L=n(49350),W=n(7516),H=n.n(W);let B=e=>{var t,n,i,l,u,d;let{isCreateMode:h,onClickCopyFrom:p,onClickPreview:f,language:m,onChangeLanguage:y,collection:S,setThesisCollection:w,multiLanguageDesktopOverlayImageUrl:j,onChangeMultiLanguageDesktopOverlayImageUrl:C,multiLanguageTabletOverlayImageUrl:_,onChangeMultiLanguageTabletOverlayImageUrl:E,multiLanguageMobileOverlayImageUrl:k,onChangeMultiLanguageMobileOverlayImageUrl:O,collectionCreateUpdateValidation:I,scrollableBody:F}=e,R=(0,b.b)(),W=null!==(n=null==R?void 0:null===(t=R.appState)||void 0===t?void 0:t.language)&&void 0!==n?n:"",B=S[(0,x.EM)(m.value)],q=I[(0,x.gv)(m.value)],J=(0,x.EM)(m.value);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(D.Z,{m:0,mb:4,shadow:"xl",children:(0,r.jsxs)(L.Z,{alignItems:void 0,alignContent:void 0,alignSelf:void 0,padding:"28px",margin:0,children:[(0,r.jsxs)(o.k,{height:"100%",alignItems:"baseline",children:[(0,r.jsx)(N.X,{as:"h2",fontSize:"24px",fontWeight:"700",mb:10,children:(0,g.H0)(W)}),(0,r.jsx)("div",{style:{flexGrow:1}}),(0,r.jsx)(c.z,{border:"1px",borderColor:"#E2E8F0",colorScheme:"gray",_hover:{bg:"#E2E8F0"},color:"#2D3748",h:"35px",px:"18px",py:"5px",minW:"100px",borderRadius:"8px",fontSize:"16px",fontWeight:"700",onClick:()=>{f()},children:(0,v.a9)(W)}),(0,r.jsx)("div",{style:{width:"16px"}}),(0,r.jsxs)(c.z,{border:"1px",borderColor:"#E2E8F0",colorScheme:"gray",_hover:{bg:"#E2E8F0"},color:"#2D3748",h:"35px",px:"18px",py:"5px",minW:"100px",borderRadius:"8px",fontSize:"16px",fontWeight:"700",onClick:()=>p(),children:[(0,v.mz)(W)," ",x.J3.filter(e=>e.value!=m.value)[0].label]}),(0,r.jsx)("div",{style:{width:"16px"}}),(0,r.jsx)(Z.Z,{border:"1px",borderColor:"#E2E8F0",background:"",isUpperCase:!0,title:m.label,items:x.J3,onClick:e=>{y(e)}})]}),(0,r.jsxs)(s.U,{alignItems:"top",children:[(0,r.jsxs)(A.g,{className:H().responsiveVersionContainer,width:"100%",height:"100%",alignItems:"start",children:[(0,r.jsx)(a.x,{fontSize:"14px",fontWeight:"700",children:"Desktop"}),(0,r.jsx)(U.L,{onChange:e=>{C({...j,[J]:e})},cancelOnClick:()=>{let e=JSON.parse(JSON.stringify(S));e[(0,x.EM)(m.value)].desktopOverlayImage="",w(e),C({...j,[J]:null})}
1,width:"100%",aspectRatio:"1200/630",isUpload:!0,url:null!==(i=j[J])&&void 0!==i?i:B.desktopOverlayImage,placeHolderLine1:(0,v.Ys)(W),placeHolderLine2:"1200 x 630 px"}),q.bannerError&&(0,r.jsx)(M.Z,{children:q.bannerError})]}),(0,r.jsxs)(A.g,{className:H().responsiveVersionContainer,width:"100%",height:"100%",alignItems:"start",children:[(0,r.jsx)(a.x,{fontSize:"14px",fontWeight:"700",children:"Tablet"}),(0,r.jsx)(U.L,{onChange:e=>{E({..._,[J]:e})},cancelOnClick:()=>{let e=JSON.parse(JSON.stringify(S));e[(0,x.EM)(m.value)].tabletOverlayImage="",w(e),E({..._,[J]:null})},width:"100%",aspectRatio:"1200/630",isUpload:!0,url:null!==(l=_[J])&&void 0!==l?l:B.tabletOverlayImage,placeHolderLine1:(0,v.Ys)(W),placeHolderLine2:"1200 x 630 px"}),q.bannerError&&(0,r.jsx)(M.Z,{children:q.bannerError})]}),(0,r.jsxs)(A.g,{className:H().responsiveVersionContainer,width:"100%",height:"100%",alignItems:"start",children:[(0,r.jsx)(a.x,{fontSize:"14px",fontWeight:"700",children:"Mobile"}),(0,r.jsx)(U.L,{onChange:e=>{O({...k,[J]:e})},cancelOnClick:()=>{let e=JSON.parse(JSON.stringify(S));e[(0,x.EM)(m.value)].mobileOverlayImage="",w(e),O({...k,[J]:null})},width:"100%",aspectRatio:"1200/630",isUpload:!0,url:null!==(u=k[J])&&void 0!==u?u:B.mobileOverlayImage,placeHolderLine1:(0,v.Ys)(W),placeHolderLine2:"1200 x 630 px"}),q.bannerError&&(0,r.jsx)(M.Z,{children:q.bannerError})]})]}),(0,r.jsxs)(A.g,{my:6,spacing:6,children:[(0,r.jsx)(T.Z,{error:q.titleError,w:"100%",flex:"1",label:(0,g.UA)(W),isRequired:!0,value:B.title,onChangeValue:e=>{let t=JSON.parse(JSON.stringify(S));t[(0,x.EM)(m.value)].title=e,w(t)}}),(0,r.jsx)(T.Z,{error:q.titleError,w:"100%",flex:"1",label:(0,g.r)(W),isRequired:!0,value:B.year,onChangeValue:e=>{let t=JSON.parse(JSON.stringify(S));t[(0,x.EM)(m.value)].year=e,w(t)}}),(0,r.jsx)(s.U,{w:"100%",align:"top",children:(0,r.jsx)(z.m,{w:"100%",flex:"1",label:(0,g.u1)(W),tags:null!==(d=B.metaKeywords)&&void 0!==d?d:[],setTags:e=>{let t=JSON.parse(JSON.stringify(S));t[(0,x.EM)(m.value)].metaKeywords=e,w(t)},isRequired:!1})}),(0,r.jsx)(P.Z,{label:(0,g.Op)(W),isRequired:!1,value:B.metaDescription,onChangeValue:e=>{let t=JSON.parse(JSON.stringify(S));t[(0,x.EM)(m.value)].metaDescription=e,w(t)},height:"100%"})]})]})})})};var q=n(25458),J=n(21179),V=n(86285),G=n(43794),X=n(56197),Y=n(70679),$=n(88918),K=n.n($),Q=n(88244);let ee=e=>{var t,n,i,o,l;let{currentLanguage:u,collection:c,setCollection:d,courses:h,collectionCreateUpdateValidation:p,isFacultyMode:f}=e,m=(0,b.b)(),y=null!==(i=null==m?void 0:null===(t=m.appState)||void 0===t?void 0:t.language)&&void 0!==i?i:"";return(0,r.jsx)(D.Z,{m:0,mb:4,shadow:"xl",children:(0,r.jsxs)(L.Z,{alignItems:void 0,alignContent:void 0,alignSelf:void 0,padding:"28px",margin:0,children:[(0,r.jsx)(N.X,{as:"h2",fontSize:"24px",fontWeight:"700",mb:10,children:(0,g.E6)(y)}),(0,r.jsx)(q.r,{templateColumns:"repeat(2, 1fr)",columnGap:"3",rowGap:6,mt:6,children:(0,r.jsx)(J.P,{h:"fit-content",children:(0,r.jsx)(Q.Z,{error:p.categoryIdsError,title:(0,g.tU)(y),isRequired:!0,items:h.map(e=>({label:"".concat(e.th.title," - ").concat(e.en.title),value:"".concat(e.id)})),values:null!==(o=null===(n=c.courseIds)||void 0===n?void 0:n.map(e=>""+e))&&void 0!==o?o:[],onSelectItemChange:e=>{let t=JSON.parse(JSON.stringify(c));t.courseIds=e,d(t)}})})}),(0,r.jsx)(q.r,{templateColumns:"repeat(2, 1fr)",columnGap:"3",rowGap:6,mt:6,children:x.J3.map(e=>{var t,n;let i=p[(0,x.E_)(e.value)];return(0,r.jsxs)("div",{children:[(0,r.jsxs)(a.x,{fontSize:"12px",fontWeight:"700",margin:"0 0 10px 10px",color:"blackAlpha.800",children:[(0,v.X2)(y),": ",e.label]}),(0,r.jsxs)(s.U,{className:K().statusPublishContainer,children:[(0,r.jsx)(G.Z,{style:{width:"150px",flexGrow:1},error:p[(0,x.gv)(e.value)].statusIdError,title:(0,g.eY)(y),displayTag:!0,items:w.map(e=>({label:(0,X.l)(e,y),value:e.toString()})),value:c[(0,x.EM)(e.value)].status,onValueChange:t=>{let n=JSON.parse(JSON.stringify(c));n[(0,x.EM)(e.value)].status=t,d(n)},colorCondition:j}),c[(0,x.EM)(e.value)].status==S.U.Published&&(0,r.jsx)(V.q,{label:(0,g.jn)(y),datetime:(0,Y.qb)(new Date(null!==(t=c[(0,x.EM)(e.value)].publishedAt)&&void 0!==t?t:""))?new Date(null!==(n=c[(0,x.EM)(e.value)].publishedAt)&&void 0!==n?n:""):new Date,onDatetimeChange:t=>{var n;let r=JSON.parse(JSON.stringify(c));r[(0,x.EM)(e.value)].publishedAt=null!==(n=null==t?void 0:t.toISOString())&&void 0!==n?n:null,d(r)}})]}),i.length>0&&(0,r.jsxs)("p",{className:K().invalidFields,children:["Invalid Fields: ",i.join(", ")
1]})]},e.value)})}),(0,r.jsx)(q.r,{templateColumns:"repeat(2, 1fr)",columnGap:"3",rowGap:6,mt:6,children:(0,r.jsx)(J.P,{h:"fit-content",children:(0,r.jsx)(T.Z,{error:p.slugError,flex:"1",label:(0,g.z$)(y),isRequired:!1,placeholder:"",value:null!==(l=c.slug)&&void 0!==l?l:"",onChangeValue:e=>{let t=JSON.parse(JSON.stringify(c));t.slug=e,d(t)}})})})]})})};var et=n(59376),en=n(62949),er=n(60325),ei=n(79202),eo=n(97808),el=n(557),ea=n(81278),es=n(99735),eu=n(9911),ec=n(42259),ed=n(23025),eh=n(15660),ep=n(65233),ef=n(92310),ex=n(90605),ev=n(91960),eg=n(41685);let em=e=>{var t,n,i;let{lang:l,thesisCollection:s,preview:u,setPreview:h,multiLanguageDesktopOverlayImageUrl:p,multiLanguageTabletOverlayImageUrl:f,multiLanguageMobileOverlayImageUrl:v}=e,m=(0,x.EM)(l),y=(0,b.b)(),S=null!==(i=null==y?void 0:null===(t=y.appState)||void 0===t?void 0:t.language)&&void 0!==i?i:"",w="preview";return(0,r.jsxs)(d.xu,{children:[(0,r.jsx)(o.k,{position:"fixed",zIndex:199,w:"100%",top:0,right:0,left:0,children:(0,r.jsx)(c.z,{w:"350px",ml:"auto",mx:"auto",mt:-1,colorScheme:"red",border:"1px dashed",onClick:()=>h(!u),children:(0,g.qh)(l)})}),(0,r.jsxs)(d.xu,{children:[(0,r.jsx)(eo.W,{userType:eh.O.none}),(0,r.jsxs)(el.S,{marginTop:{base:"45px",md:"58px"},children:[""!=s[m].desktopOverlayImage&&(0,r.jsx)(et.o,{ratio:1200/630,width:"100%",maxHeight:"630px",children:(0,r.jsx)(en.E,{src:s[m].desktopOverlayImage})}),(0,r.jsxs)(o.k,{direction:"column",background:"#fff",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.08)",borderRadius:"20px",paddingTop:{base:"16px",md:"50px"},paddingBottom:{base:"8px",md:"24px"},children:[(0,r.jsxs)(q.r,{gridTemplateColumns:{base:"100%",xl:"calc(100% - 334px - 24px) 334px"},gap:"24px",marginBottom:"50px",paddingX:{base:"12px",md:"24px"},children:[(0,r.jsxs)(o.k,{flexDirection:"column",children:[(0,r.jsx)(o.k,{marginBottom:{base:"24px",md:"32px"},width:"100%",flexDirection:"column",children:(0,r.jsx)(a.x,{fontWeight:"700",fontSize:"28px",color:"#224E41",paddingBottom:{base:"16px",md:"24px"},children:null===(n=s[m])||void 0===n?void 0:n.title})}),(0,r.jsxs)(o.k,{gap:"16px",alignItems:"center",children:[(0,r.jsx)(a.x,{children:"à¹à¸à¸£à¹"}),(0,r.jsx)(en.E,{src:"/icons/clipboard_icon.svg",alt:"copy",style:{cursor:"pointer"},onClick:()=>{}}),(0,r.jsx)(ep.Z,{url:w,children:(0,r.jsx)(en.E,{src:"/icons/line_icon.svg",alt:"copy",style:{cursor:"pointer"}})}),(0,r.jsx)(ef.Z,{url:w,children:(0,r.jsx)(en.E,{src:"/icons/facebook_icon.svg",alt:"copy",style:{cursor:"pointer"}})}),(0,r.jsx)(ex.Z,{url:w,children:(0,r.jsx)(en.E,{src:"/icons/x_icon.svg",alt:"copy",style:{cursor:"pointer"}})}),(0,r.jsx)(ev.Z,{url:w,children:(0,r.jsx)(en.E,{src:"/icons/email_icon.svg",alt:"copy",style:{cursor:"pointer"}})})]})]}),(0,r.jsxs)(o.k,{flexDirection:"column",children:[(0,r.jsxs)(eg.Z,{border:"none",children:[(0,r.jsx)(ea.N,{label:(0,ed.jB)(S)}),(0,r.jsx)(es.X,{label:(0,g.ci)(S),path:"/events"})]}),(0,r.jsx)(ec.w,{events:[],showTitle:!1,lang:S})]})]}),(0,r.jsx)(er.i,{color:"#EBEBEB"}),(0,r.jsxs)(eg.Z,{padding:{base:"16px 12px",md:"16px 24px"},children:[(0,r.jsx)(ea.N,{label:(0,g.N1)(S)}),(0,r.jsx)(es.X,{label:(0,g.ci)(S),path:"/thesisCollections"})]})]})]})]}),(0,r.jsx)(eu.U,{}),(0,r.jsx)(ei.$,{})]})};var ey=n(29409);let eb=(e,t,n)=>{let r={...k},i=!0;return t&&""==e.th.title?(r.thError.titleError="[TH] title empty",r.thInvalidFields=[...r.thInvalidFields,"title"],i=!1):r.thError.titleError=null,n&&""==e.en.title?(r.enError.titleError="[EN] title empty",r.enInvalidFields=[...r.enInvalidFields,"title"],i=!1):r.enError.titleError=null,[r,i]};var eS=n(74444),ew=n(4520),ej=()=>{var e,t,n,w,j,C,E,N,A,z,U,T,P,M;let Z=(0,b.b)(),D=null!==(N=null==Z?void 0:null===(e=Z.appState)||void 0===e?void 0:e.language)&&void 0!==N?N:"",L=(0,O.useRouter)(),{bid:W}=L.query,{facultyId:H}=L.query,q=(0,i.p)(),[J,V]=(0,I.useState)(!1),[G,X]=(0,I.useState)(x.J3[0]),[Y,$]=(0,I.useState)(!1),[K,Q]=(0,I.useState)(!1),[et,en]=(0,I.useState)(!1),[er,ei]=(0,I.useState)(null),[eo,el]=(0,I.useState)([]),[ea,es]=(0,I.useState)({th:null!==(A=null==er?void 0:null===(t=er.th)||void 0===t?void 0:t.desktopOverlayImage)&&void 0!==A?A:null,en:null!==(z=null==er?void 0:null===(n=er.en)||void 0===n?void 0:n.desktopOverlayImage)&&void 0!==z?z:null}),[eu,ec]=(0,I.useState)({th:null!==(U=null==er?void 0:null===(w=er.th)||void 0===w?void 0:w.tabletOverlayImage)&&void 0!==U?U:null,en:null!==(T=null==er?void 0:null===(j=er.en)||void 0===j?void 0:j.tabletOverlayImage)&&void 0!==T?T:null}),[ed,eh]=(0,I.useState)({th:null!==(P=null==er?void 0:null===(C=er.th)||void 0===C?void 0:C.mobileOverlayImage)&&void 0!==P?P:null,en:null!==(M=null==er?void 0:null===(E=er.en)||void 0===E?void 0:E.mobileOverlayImage)&&void 0!==M?M:null}),[ep,ef]=(0,I.useState)({...k}),[ex,ev]=(0,I.useState)(Math.random()),[eg,ej]=(0,I.useState)(!1),eC=(0,I.useRef)(null),[e_,eE]=(0,I.useState)(!1),ek=async()=>
1{if(""!=D)try{let e=await (0,eS.vl)({skip:0,limit:1e3,facultyIds:[H],lang:D});e&&el(e.courses)}catch(e){(0,R.ck)(q)}};(0,I.useEffect)(()=>{L.query&&$("create"===W)},[L.isReady,L.query]),(0,I.useEffect)(()=>{Y&&(H!=m.Qq?ei({..._,facultyId:H}):ei({..._}))},[Y]),(0,I.useEffect)(()=>{ek(),W&&"create"!=W&&null==er&&(async()=>{Q(!0);try{let e=await (0,ey.aG)(W);e&&ei(e)}catch(e){(0,R.ck)(q)}Q(!1)})()},[W]);let eO=()=>{if(null!=er){if("en"==G.value){let e=JSON.parse(JSON.stringify(er));e.en=er.th,ei(e),es(e=>({...e,en:e.th})),ec(e=>({...e,en:e.th})),eh(e=>({...e,en:e.th})),ev(Math.random()),(0,R.XA)(q)}else if("th"==G.value){let e=JSON.parse(JSON.stringify(er));e.th=er.en,ei(e),es(e=>({...e,th:e.en})),ec(e=>({...e,en:e.th})),eh(e=>({...e,en:e.th})),ev(Math.random()),(0,R.XA)(q)}}},eI=async()=>{if(null==er)return;let e=ea.th,t=ea.en;er.th.desktopOverlayImage=await (0,F.qP)(e,er.th.desktopOverlayImage),er.en.desktopOverlayImage=await (0,F.qP)(t,er.en.desktopOverlayImage);let n=eu.th,r=eu.en;er.th.tabletOverlayImage=await (0,F.qP)(n,er.th.tabletOverlayImage),er.en.tabletOverlayImage=await (0,F.qP)(r,er.en.tabletOverlayImage);let i=ed.th,o=ed.en;er.th.mobileOverlayImage=await (0,F.qP)(i,er.th.mobileOverlayImage),er.en.mobileOverlayImage=await (0,F.qP)(o,er.en.mobileOverlayImage)},eF=async()=>{if(null==er)return;en(!0);let e=er.th.status==S.U.Published,t=er.en.status==S.U.Published,[n,r]=eb(er,e,t);if(ef(n),r){if(""==er.slug){let e=(0,ew.Z)();ei({...er,slug:e}),er.slug=e}if(!(await (0,ey.OH)({slug:er.slug,contentId:er.id,facultyId:er.facultyId})).ok){en(!1),ef({...n,slugError:"slug not unique (please change)"});return}if(Y)try{await eI(),await (0,ey.$i)(er),(0,R.XA)(q),L.back()}catch(e){en(!1),(0,R.ck)(q)}else try{await eI(),await (0,ey.UN)(er),(0,R.XA)(q),en(!1),L.back()}catch(e){en(!1),(0,R.ck)(q)}}else en(!1),(0,R.ys)(q,D);en(!1)};return(0,r.jsxs)(r.Fragment,{children:[et&&(0,r.jsx)(o.k,{w:"100%",h:"100vh",bgColor:"#9A9A9AAF",position:"fixed",zIndex:100,children:(0,r.jsxs)(o.k,{m:"auto",alignItems:"center",color:"white",children:[(0,r.jsx)(l.$,{})," ",(0,r.jsx)(a.x,{mx:2,children:(0,v.iR)(D)})]})}),K&&(0,r.jsx)(o.k,{w:"100%",h:"100vh",bgColor:"#9A9A9AAF",position:"fixed",zIndex:100,children:(0,r.jsxs)(o.k,{m:"auto",alignItems:"center",color:"white",children:[(0,r.jsx)(l.$,{})," ",(0,r.jsx)(a.x,{mx:2,children:(0,v.Zn)(D)})]})}),J&&er&&(0,r.jsx)(em,{lang:G.value,thesisCollection:er,preview:J,setPreview:V,multiLanguageDesktopOverlayImageUrl:ea,multiLanguageTabletOverlayImageUrl:eu,multiLanguageMobileOverlayImageUrl:ed}),!J&&er&&(0,r.jsx)(h.Z,{scrollableBodyRef:eC,scrollableBodyMounted:()=>{eE(!0)},scrollableBodyUnMounted:()=>{eE(!1)},isFullScreen:J,title:Y?"Create":"Editor",currentLink:y.pY,breadcrumbs:y.pY.breadcrumbs,topBarChilrenWithPermissions:e=>(0,r.jsxs)(s.U,{mx:10,children:[(0,r.jsx)(u.L,{}),(0,r.jsx)(c.z,{colorScheme:"gray",bgColor:"#EDF2F7",_hover:{bg:"#E2E8F0"},h:"35px",px:"18px",py:"5px",minW:"100px",borderRadius:"8px",fontSize:"16px",fontWeight:"700",onClick:()=>{var e,t;(null!==(t=null===(e=window.history)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>1?L.back():L.replace("/admin/thesisCollection/thesisCollections")},children:(0,g.hO)(D)}),(0,r.jsx)(c.z,{colorScheme:"gray",bgColor:"#74C7FB",_hover:{bg:"#4299E1"},h:"35px",px:"18px",py:"5px",minW:"100px",borderRadius:"8px",fontSize:"16px",fontWeight:"700",color:"#FFFFFF",onClick:eF,disabled:void 0==e.find(e=>"THESIS_COLLECTION_EDIT"==e||"FACULTY_EDIT"==e),children:(0,g.nK)(D)})]}),children:(0,r.jsxs)(p.t,{children:[(0,r.jsx)(f.Q,{isOpen:eg,title:(0,v.rA)(D),detail:(0,v.nH)(D),actionLabel:(0,v.BX)(D),cancelLabel:(0,v.Qf)(D),onCancel:()=>{ej(!1)},onConfirm:()=>{eO(),ej(!1)}}),(0,r.jsx)(d.xu,{m:4,children:(0,r.jsx)(ee,{currentLanguage:G,collection:er,setCollection:ei,courses:eo,collectionCreateUpdateValidation:ep,isFacultyMode:H!=m.Qq})}),(0,r.jsx)(d.xu,{m:4,children:e_&&eC.current&&(0,r.jsx)(B,{scrollableBody:eC.current,isCreateMode:!0,onClickCopyFrom:()=>{ej(!0)},language:G,onChangeLanguage:e=>{X(e)},collection:er,setThesisCollection:ei,onClickPreview:()=>{V(!J)},multiLanguageDesktopOverlayImageUrl:ea,onChangeMultiLanguageDesktopOverlayImageUrl:e=>{es(e)},multiLanguageTabletOverlayImageUrl:eu,onChangeMultiLanguageTabletOverlayImageUrl:e=>{ec(e)},multiLanguageMobileOverlayImageUrl:ed,onChangeMultiLanguageMobileOverlayImageUrl:e=>{eh(e)},collectionCreateUpdateValidation:ep},ex)})]})})]})}},29409:function(e,t,n){"use strict";n.d(t,{$i:function(){return l},Lt:function(){return s},OH:function(){return d},UN:function(){return u},Xq:function(){return c},aG:function(){return a}});var r=n(50128),i=n(58928),o=n(63885);let l=async e=>{var t;let n=(null===(t=(0,i.getCookie)(r.ml))||void 0===t?void 0:t.toString())||"";return await (0,o._i)("/api/v2/thesis/collections",{method:"POST",cac
1he:"no-cache",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(e)})},a=async e=>{var t;let n=(null===(t=(0,i.getCookie)(r.ml))||void 0===t?void 0:t.toString())||"";return await (0,o._i)("/api/v2/thesis/collections/".concat(e,"?is-admin=true"),{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})},s=async e=>{var t;let n=(null===(t=(0,i.getCookie)(r.ml))||void 0===t?void 0:t.toString())||"",l="/api/v2/thesis/collections"+"?is-admin=true&skip=".concat(e.skip,"&limit=").concat(e.limit);return e.search&&(l+="&search=".concat(e.search)),void 0!=e.hasOrder&&(l+="&has-order=".concat(e.hasOrder)),e.facultyId&&(l+="&faculty-id=".concat(e.facultyId)),e.courseId&&(l+="&course-id=".concat(e.courseId)),await (0,o._i)(l,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})},u=async e=>{var t;let n=(null===(t=(0,i.getCookie)(r.ml))||void 0===t?void 0:t.toString())||"",l="/api/v2/thesis/collections/".concat(e.id);await (0,o._i)(l,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(e)})},c=async e=>{var t;let n=(null===(t=(0,i.getCookie)(r.ml))||void 0===t?void 0:t.toString())||"";await (0,o._i)("/api/v2/thesis/collections/".concat(e),{method:"DELETE",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n}})},d=async e=>{var t;let n=(null===(t=(0,i.getCookie)(r.ml))||void 0===t?void 0:t.toString())||"";return await (0,o._i)("/api/v2/thesis/collections/slug-check",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(e)})}},55935:function(){},9794:function(e){e.exports={container:"DatetimePickerWrapper_container__ojGPK"}},20592:function(e){e.exports={select:"MultiSelectGroup_select__WSWJG"}},18963:function(e){e.exports={hiddenInput:"InputTags_hiddenInput__hYtKj"}},7516:function(e){e.exports={responsiveVersionContainer:"collectionContentSection_responsiveVersionContainer__UHLuk"}},88918:function(e){e.exports={tableContainer:"collectionInfoSection_tableContainer__zoPu3",statusPublishContainer:"collectionInfoSection_statusPublishContainer__Na6BC",invalidFields:"collectionInfoSection_invalidFields__M5uIv"}},91960:function(e,t,n){"use strict";var r=n(69005),i=(0,n(72834).Z)("email",function(e,t){var n=t.subject,i=t.body,o=t.separator;return"mailto:"+(0,r.Z)({subject:n,body:i?i+o+e:e})},function(e){return{subject:e.subject,body:e.body,separator:e.separator||" "}},{openShareDialogOnClick:!1,onClick:function(e,t){window.location.href=t}});t.Z=i},92310:function(e,t,n){"use strict";var r=n(45786),i=n(69005),o=(0,n(72834).Z)("facebook",function(e,t){var n=t.quote,o=t.hashtag;return(0,r.Z)(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+(0,i.Z)({u:e,quote:n,hashtag:o})},function(e){return{quote:e.quote,hashtag:e.hashtag}},{windowWidth:550,windowHeight:400});t.Z=o},65233:function(e,t,n){"use strict";var r=n(45786),i=n(72834),o=n(69005),l=(0,i.Z)("line",function(e,t){var n=t.title;return(0,r.Z)(e,"line.url"),"https://social-plugins.line.me/lineit/share"+(0,o.Z)({url:e,text:n})},function(e){return{title:e.title}},{windowWidth:500,windowHeight:500});t.Z=l},90605:function(e,t,n){"use strict";var r=n(45786),i=n(69005),o=(0,n(72834).Z)("twitter",function(e,t){var n=t.title,o=t.via,l=t.hashtags,a=void 0===l?[]:l,s=t.related,u=void 0===s?[]:s;return(0,r.Z)(e,"twitter.url"),(0,r.Z)(Array.isArray(a),"twitter.hashtags is not an array"),(0,r.Z)(Array.isArray(u),"twitter.related is not an array"),"https://twitter.com/share"+(0,i.Z)({url:e,text:n,via:o,hashtags:a.length>0?a.join(","):void 0,related:u.length>0?u.join(","):void 0})},function(e){return{hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}},{windowWidth:550,windowHeight:400});t.Z=o},72834:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r,i=n(50959),o=n(82187),l=n.n(o),a=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function a(o){return function(a){return function(o){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openShareDialog=function(e){var n=t.props,r=n.onShareWindowClose,i=n.windowHeight,o=void 0===i?400:i,l=n.windowPosition,a=n.windowWidth,u=void 0===a?550:a;!function(e,t,n){var r=t.height,i=t.width,o=c(t,["height","width"]),l=s({height:r,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},o),a=window.open(e,"",Object.keys(l).map(function(e){return"".concat(e,"=").concat(l[e])}).join(", "));if(n)var u=window.setInterval(function(){try{(null===a||a.closed)&&(window.clearInterval(u),n(a))}catch(e){console.error(e)}},1e3)}(e,s({height:o,width:u},"windowCenter"===(void 0===l?"windowCenter":l)?{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-u/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-o/2}:{top:(window.screen.height-o)/2,left:(window.screen.width-u)/2}),r)},t.handleClick=function(e){var n,r,i;return n=void 0,r=void 0,i=function(){var t,n,r,i,o,l,a,s,c;return u(this,function(u){switch(u.label){case 0:var d;if(n=(t=this.props).beforeOnClick,r=t.disabled,i=t.networkLink,o=t.onClick,l=t.url,a=t.openShareDialogOnClick,s=i(l,t.opts),r)return[2];if(e.preventDefault(),!n||!((d=c=n())&&("object"==typeof d||"function"==typeof d)&&"function"==typeof d.then))return[3,2];return[4,c];case 1:u.sent(),u.label=2;case 2:return a&&this.openShareDialog(s),o&&o(e,s),[2]}})},new(r||(r=Promise))(function(e,o){function l(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(l,a)}s((i=i.apply(t,n||[])).next())})},t}return a(t,e),t.prototype.render=function(){var e=this.props,t=(e.beforeOnClick,e.children),n=e.className,r=e.disabled,o=e.disabledStyle,a=e.forwardedRef,u=(e.networkLink,e.networkName),d=(e.onShareWindowClose,e.openShareDialogOnClick,e.opts,e.resetButtonStyle),h=e.style,p=(e.url,e.windowHeight,e.windowPosition,e.windowWidth,c(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),f=l()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!r,disabled:!!r},n),x=d?s(s({backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"},h),r&&o):s(s({},h),r&&o);return i.createElement("button",s({},p,{"aria-label":p["aria-label"]||u,className:f,onClick:this.handleClick,ref:a,style:x}),t)},t.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},t}(i.Component),h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},p=function(e,t,n,r){function o(o,l){var a=n(o),s=h({},o);
1return Object.keys(a).forEach(function(e){delete s[e]}),i.createElement(d,h({},r,s,{forwardedRef:l,networkName:e,networkLink:t,opts:n(o)}))}return o.displayName="ShareButton-".concat(e),(0,i.forwardRef)(o)}},45786:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=function(e){function t(t){var n=e.call(this,t)||this;return n.name="AssertionError",n}return i(t,e),t}(Error);function l(e,t){if(!e)throw new o(t)}},69005:function(e,t,n){"use strict";function r(e){var t=Object.entries(e).filter(function(e){return null!=e[1]}).map(function(e){var t=e[0],n=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(n)))});return t.length>0?"?".concat(t.join("&")):""}n.d(t,{Z:function(){return r}})},82187:function(e,t){var n;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(n=(function(){return i}).apply(t,[]))&&(e.exports=n)}()},21179:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(52795),i=n(78379),o=n(32920),l=n(4791),a=n(11527);function s(e){return(0,l.XQ)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}var u=(0,r.G)(function(e,t){let{area:n,colSpan:r,colStart:l,colEnd:u,rowEnd:c,rowSpan:d,rowStart:h,...p}=e,f=(0,o.oA)({gridArea:n,gridColumn:s(r),gridRow:s(d),gridColumnStart:l,gridColumnEnd:u,gridRowStart:h,gridRowEnd:c});return(0,a.jsx)(i.m.div,{ref:t,__css:f,...p})});u.displayName="GridItem"},5431:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var r=n(72237),i=n(52795),o=n(11527),l=(0,i.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"column",ref:t}));l.displayName="VStack"},6952:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var r=n(67919),i=n(52795),o=n(49226),l=n(5179),a=n(78379),s=n(6551),u=n(11527),c=["h","minH","height","minHeight"],d=(0,i.G)((e,t)=>{let n=(0,o.mq)("Textarea",e),{className:i,rows:d,...h}=(0,l.Lr)(e),p=(0,r.Y)(h),f=d?function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(n,c):n;return(0,u.jsx)(a.m.textarea,{ref:t,rows:d,...p,className:(0,s.cx)("chakra-textarea",i),__css:f})});d.displayName="Textarea"},4520:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return a}});var i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o=new Uint8Array(16),l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));var a=function(e,t,n){return!i.randomUUID||t||e?function(e,t,n){let i=(e=e||{}).random??e.rng?.()??function(){if(!r){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(o)}();if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}(i)}
5(e,t,n):i.randomUUID()}}},function(e){e.O(0,[5084,3485,8952,9548,2440,9213,781,2855,5175,3175,4801,7999,2417,6692,9200,7830,9260,7808,1202,8499,1344,3416,3741,2888,9774,179],function(){return e(e.s=3760)}),_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.