Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.142.42.247
"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[449],{76758:(e,o,t)=>{t.d(o,{A:()=>l});var n=t(65043),c=t(62918),a=t(70579);const l=e=>{let{open:o,Ok:t,cancel:l,pdf:r,excel:i}=e;const[s,d]=(0,n.useState)(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c.A,{title:"Vertically centered modal dialog",centered:!0,open:o,onOk:t,onCancel:l,onPdf:r,onExcel:i})})}},10925:(e,o,t)=>{t.d(o,{NS:()=>i,Pe:()=>d,Yg:()=>s});var n=t(15444),c=t(6051),a=t(87021),l=t(62058),r=t(70579);const i=e=>({filterDropdown:o=>{let{setSelectedKeys:t,selectedKeys:i,confirm:s,clearFilters:d,close:p}=o;return(0,r.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,r.jsx)(n.A,{autoFocus:!0,placeholder:"Search ".concat(e),value:i,onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>{s()},style:{marginBottom:8,display:"block"}}),(0,r.jsxs)(c.A,{children:[(0,r.jsx)(a.Ay,{type:"primary",onClick:()=>s(),icon:(0,r.jsx)(l.A,{}),size:"small",style:{width:90},children:"Search"}),(0,r.jsx)(a.Ay,{onClick:()=>{d(),s()},size:"small",style:{width:90},children:"Reset"})]})]})},filterIcon:e=>(0,r.jsx)(l.A,{style:{color:e?"#CFFF8D":"#fff"}}),onFilter:(o,t)=>t[e].toString().toLowerCase().includes(o.toLowerCase())}),s=(e,o)=>o.value.toString().toLowerCase().indexOf(e.toLowerCase())>=0||o.label.toString().toLowerCase().indexOf(e.toLowerCase())>=0,d=(e,o,t)=>e[t].localeCompare(o[t])},43449:(e,o,t)=>{t.r(o),t.d(o,{default:()=>J});var n=t(65043),c=t(86213),a=t(150),l=t(12499),r=t(78528),i=t(53727),s=t(51376),d=t(13888),p=t(98139),g=t.n(p),u=t(7419),m=t(13758),v=t(48060),f=t(12701),y=t(35296),h=t(36647),x=t(94414),C=t(66712);const b=(e,o,t,n,c)=>({background:e,border:"".concat((0,h.zA)(n.lineWidth)," ").concat(n.lineType," ").concat(o),["".concat(c,"-icon")]:{color:t}}),E=e=>{const{componentCls:o,motionDurationSlow:t,marginXS:n,marginSM:c,fontSize:a,fontSizeLG:l,lineHeight:r,borderRadiusLG:i,motionEaseInOutCirc:s,withDescriptionIconSize:d,colorText:p,colorTextHeading:g,withDescriptionPadding:u,defaultPadding:m}=e;return{[o]:Object.assign(Object.assign({},(0,x.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:i,["&".concat(o,"-rtl")]:{direction:"rtl"},["".concat(o,"-content")]:{flex:1,minWidth:0},["".concat(o,"-icon")]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:r},"&-message":{color:g},["&".concat(o,"-motion-leave")]:{overflow:"hidden",opacity:1,transition:"max-height ".concat(t," ").concat(s,", opacity ").concat(t," ").concat(s,",\n padding-top ").concat(t," ").concat(s,", padding-bottom ").concat(t," ").concat(s,",\n margin-bottom ").concat(t," ").concat(s)},["&".concat(o,"-motion-leave-active")]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),["".concat(o,"-with-description")]:{alignItems:"flex-start",padding:u,["".concat(o,"-icon")]:{marginInlineEnd:c,fontSize:d,lineHeight:0},["".concat(o,"-message")]:{display:"block",marginBottom:n,color:g,fontSize:l},["".concat(o,"-description")]:{display:"block",color:p}},["".concat(o,"-banner")]:{marginBottom:0,border:"0 !important",borderRadius:0}}},w=e=>{const{componentCls:o,colorSuccess:t,colorSuccessBorder:n,colorSuccessBg:c,colorWarning:a,colorWarningBorder:l,colorWarningBg:r,colorError:i,colorErrorBorder:s,colorErrorBg:d,colorInfo:p,colorInfoBorder:g,colorInfoBg:u}=e;return{[o]:{"&-success":b(c,n,t,e,o),"&-info":b(u,g,p,e,o),"&-warning":b(r,l,a,e,o),"&-error":Object.assign(Object.assign({},b(d,s,i,e,o)),{["".concat(o,"-description > pre")]:{margin:0,padding:0}})}}},S=e=>{const{componentCls:o,iconCls:t,motionDurationMid:n,marginXS:c,fontSizeIcon:a,colorIcon:l,colorIconHover:r}=e;return{[o]:{"&-action":{marginInlineStart:c},["".concat(o,"-close-icon")]:{marginInlineStart:c,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,h.zA)(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",["".concat(t,"-close")]:{color:l,transition:"color ".concat(n),"&:hover":{color:r}}},"&-close-text":{color:l,transition:"color ".concat(n),"&:hover":{color:r}}}}},A=(0,C.OF)("Alert",(e=>[E(e),w(e),S(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:"".concat(e.paddingContentVerticalSM,"px ").concat(12,"px"),withDescriptionPadding:"".concat(e.paddingMD,"px ").concat(e.paddingContentHorizontalLG,"px")})));var j=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(n=Object.getOwnPropertySymbols(e);c<n.length;c++)o.indexOf(n[c])<0&&Object.prototype.propertyIsEnumerable.call(e,n[c])&&(t[n[c]]=e[n[c]])}return t};const I={success:l.A,info:d.A,error:r.A,warning:s.A},D=e=>{const{icon:o,prefixCls:t,type:c}=e,a=I[c]||null;return o?(0,f.fx)(o,n.createElement("span",{className:"".concat(t,"-icon")},o),(()=>({className:g()("".concat(t,"-icon"),{[o.props.className]:o.props.className})}))):n.createElement(a,{className:"".concat(t,"-icon")})},N=e=>{const{isClosable:o,prefixCls:t,closeIcon:c,handleClose:a,ariaProps:l}=e,r=!0===c||void 0===c?n.createElement(i.A,null):c;return o?n.createElement("button",Object.assign({type:"button",onClick:a,className:"".concat(t,"-close-icon"),tabIndex:0},l),r):null},O=n.forwardRef(((e,o)=>{const{description:t,prefixCls:c,message:a,banner:l,className:r,rootClassName:i,style:s,onMouseEnter:d,onMouseLeave:p,onClick:f,afterClose:h,showIcon:x,closable:C,closeText:b,closeIcon:E,action:w,id:S}=e,I=j(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[O,k]=n.useState(!1);const H=n.useRef(null);n.useImperativeHandle(o,(()=>({nativeElement:H.current})));const{getPrefixCls:z,direction:L,alert:P}=n.useContext(y.QO),R=z("alert",c),[F,B,M]=A(R),T=o=>{var t;k(!0),null===(t=e.onClose)||void 0===t||t.call(e,o)},K=n.useMemo((()=>void 0!==e.type?e.type:l?"warning":"info"),[e.type,l]),_=n.useMemo((()=>!("object"!==typeof C||!C.closeIcon)||(!!b||("boolean"===typeof C?C:!1!==E&&null!==E&&void 0!==E||!!(null===P||void 0===P?void 0:P.closable)))),[b,E,C,null===P||void 0===P?void 0:P.closable]),G=!(!l||void 0!==x)||x,W=g()(R,"".concat(R,"-").concat(K),{["".concat(R,"-with-description")]:!!t,["".concat(R,"-no-icon")]:!G,["".concat(R,"-banner")]:!!l,["".concat(R,"-rtl")]:"rtl"===L},null===P||void 0===P?void 0:P.className,r,i,M,B),V=(0,v.A)(I,{aria:!0,data:!0}),X=n.useMemo((()=>{var e,o;return"object"===typeof C&&C.closeIcon?C.closeIcon:b||(void 0!==E?E:"object"===typeof(null===P||void 0===P?void 0:P.closable)&&(null===(e=null===P||void 0===P?void 0:P.closable)||void 0===e?void 0:e.closeIcon)?null===(o=null===P||void 0===P?void 0:P.closable)||void 0===o?void 0:o.closeIcon:null===P||void 0===P?void 0:P.closeIcon)}),[E,C,b,null===P||void 0===P?void 0:P.closeIcon]),Y=n.useMemo((()=>{const e=null!==C&&void 0!==C?C:null===P||void 0===P?void 0:P.closable;if("object"===typeof e){const{closeIcon:o}=e;return j(e,["closeIcon"])}return{}}),[C,null===P||void 0===P?void 0:P.closable]);return F(n.createElement(u.Ay,{visible:!O,motionName:"".concat(R,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:h},((o,c)=>{let{className:l,style:r}=o;return n.createElement("div",Object.assign({id:S,ref:(0,m.K4)(H,c),"data-show":!O,className:g()(W,l),style:Object.assign(Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),s),r),onMouseEnter:d,onMouseLeave:p,onClick:f,role:"alert"},V),G?n.createElement(D,{description:t,icon:e.icon,prefixCls:R,type:K}):null,n.createElement("div",{className:"".concat(R,"-content")},a?n.createElement("div",{className:"".concat(R,"-message")},a):null,t?n.createElement("div",{className:"".concat(R,"-description")},t):null),w?n.createElement("div",{className:"".concat(R,"-action")},w):null,n.createElement(N,{isClosable:_,prefixCls:R,closeIcon:X,handleClose:T,ariaProps:Y}))})))}));const k=O,H=()=>{const[e,o]=(0,n.useState)(!1);return{loading:e,getDegreedet:async(e,t,n)=>{o(!0);try{const l=await c.A.get(a.A+"cgetDegreedet",{params:{collcode:n,type:e,degree_range:""},headers:{"Content-Type":"application/json"}});if(console.log(l,"payload"),0!==l.data.error_code)return t({type:"CLEAR_DEGREE",payload:[]}),o(!1),void k(l.data.data.msg);t({type:"DEGREE",payload:l.data.data}),o(!1)}catch(l){o(!1),k(l)}}}};var z=t(32513),L=t(5397),P=t(6051),R=t(87021),F=t(79672),B=t(14647),M=t(95010),T=t(70170),K=t(15355);const _=e=>({type:"LOADING",load:e});var G=t(83003),W=t(10925),V=t(76758),X=t(70579);const Y=[{value:"selectedonly",label:"Selected Only"},{value:"all",label:"All"}],J=(0,G.Ng)((function(e){return console.log(e.degreeReducer.degreeData,"state.degreeReducer.degreeData,"),{user:e.AuthReducer.userData,degreeData:e.degreeReducer.degreeData,loading:e.degreeReducer.loading}}))((e=>{const{getDegreedet:o}=H(),[t,l]=(0,n.useState)("selectedonly"),[r,i]=(0,n.useState)([]),[s,d]=(0,n.useState)(!1),p=(0,G.wA)();(0,n.useEffect)((()=>{i(e.degreeData),o(t,p,e.user.fcollcode)}),[]),(0,n.useEffect)((()=>{let o=e.degreeData.length>0?e.degreeData.map(((e,o)=>(e.index=o,e))):[];i([...o])}),[e.degreeData]);const g=async()=>{let o=new FormData,t=r.filter(((e,o)=>"T"===e.ACTION));o.append("data",JSON.stringify(t)),o.append("collcode",e.user.fcollcode),o.append("user",e.user.fuser),await(async(e,o)=>{e(_(!0));try{await c.A.post(a.A+"csaveDegreedet",o).then((o=>{if(0!==o.data.error_code)return(0,K.F)(o.data.data.msg),void e(_(!1));(0,K.F)(o.data.data.msg),e(_(!1))}))}catch(t){e(_(!1)),(0,K.F)(t)}})(p,o)},u=async()=>{await(async(e,o)=>{window.open(a.A+"degreeListReportpdf&collcode="+o+"&type="+e)})(t,p,e.user.funivcode,e.user.fcollcode)},m=[{title:"Sl. No",dataIndex:"slno",align:"center",width:"10%"},{title:"Degree",dataIndex:"degree",...(0,W.NS)("degree"),sorter:(e,o)=>(0,W.Pe)(e,o,"degree"),sortDirections:["descend","ascend"],align:"center",width:"30%"},{title:"Description",dataIndex:"description",...(0,W.NS)("description"),sorter:(e,o)=>(0,W.Pe)(e,o,"description"),sortDirections:["descend","ascend"],width:"50%"},{title:(0,X.jsx)(z.A,{onChange:e=>(e=>{const o=r.map(((o,t)=>(o.CHECKED=e?"CHECKED":"",o.ACTION="T",o)));i(o)})(e.target.checked)}),dataIndex:"select",align:"center",width:"10%"}],v=r.map(((e,o)=>({key:o,slno:o+1,degree:e.FDEGREE,description:e.FDESCPN,select:(0,X.jsx)(z.A,{checked:"CHECKED"===e.CHECKED,onChange:o=>((e,o)=>{let t=r;console.log(t),t[o].CHECKED=e?"CHECKED":"",t[o].ACTION="T",i([...t])})(o.target.checked,e.index)})})));return(0,X.jsxs)("div",{children:[(0,X.jsxs)(L.A,{hoverable:!0,title:"Degree",style:{width:"100%"},extra:(0,X.jsxs)(P.A,{direction:"horizontal",children:[(0,X.jsx)(R.Ay,{className:"save",onClick:()=>g(),children:"Save"}),(0,X.jsx)(R.Ay,{className:"report",onClick:()=>{d(!0)},children:"Report"}),(0,X.jsx)(R.Ay,{className:"clear",children:"Clear"}),(0,X.jsx)(R.Ay,{className:"exit",children:"Exit"})]}),children:[(0,X.jsx)("div",{style:{marginBottom:"20px"},children:(0,X.jsx)(F.A,{gutter:16,children:(0,X.jsxs)(B.A,{xs:24,sm:24,md:12,lg:8,xl:8,children:[(0,X.jsx)("b",{children:(0,X.jsx)("label",{children:"Select Type"})}),(0,X.jsx)(M.A,{showSearch:!0,placeholder:"Select",style:{width:"100%"},options:Y,filterOption:W.Yg,value:t,onChange:t=>(async t=>{await o(t,p,e.user.fcollcode),l(t)})(t)})]})})}),(0,X.jsx)(T.A,{scroll:{y:400},pagination:!1,bordered:!0,columns:m,loading:e.loading,dataSource:v,size:"small"})]}),(0,X.jsx)(V.A,{open:s,Ok:()=>{u(),d(!1)},cancel:()=>d(!1)})]})}))}}]);
//# sourceMappingURL=449.77a78c75.chunk.js.map
|