PageSourceSearch

https://www.barcouncilofindia.org/p__list__master-list-page__list.ee098abb.async.js

js barcouncilofindia.org collected 2026-09-24 21:25:19 UTC 62,292 bytes, 1 lines download raw bytes

1(self.webpackChunkbcw1=self.webpackChunkbcw1||[]).push([[8699],{63094:function(J,W,l){"use strict";l.d(W,{Mi:function(){return g},kN:function(){return T},oT:function(){return N}});var n=l(99969),O=l(67294),A=l(94151),L=l(94199),v=l(71577),r=l(67294),B=Object.defineProperty,G=Object.defineProperties,H=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,a=(C,S,d)=>S in C?B(C,S,{enumerable:!0,configurable:!0,writable:!0,value:d}):C[S]=d,le=(C,S)=>{for(var d in S||(S={}))D.call(S,d)&&a(C,d,S[d]);if(K)for(var d of K(S))Q.call(S,d)&&a(C,d,S[d]);return C},oe=(C,S)=>G(C,H(S)),ie=(C,S,d)=>new Promise((de,ye)=>{var X=V=>{try{ee(d.next(V))}catch(j){ye(j)}},Se=V=>{try{ee(d.throw(V))}catch(j){ye(j)}},ee=V=>V.done?de(V.value):Promise.resolve(V.value).then(X,Se);ee((d=d.apply(C,S)).next())});const g=(C,S)=>ie(void 0,null,function*(){const d=typeof C=="string"?C:C==null?void 0:C.url,de=typeof S=="string"?S:(S==null?void 0:S.filename)||(S==null?void 0:S.dfname)||"download.xlsx";if(d)try{const ye=yield fetch(d);if(!ye.ok){const V=document.createElement("a");V.href=d,V.download=de,V.target="_blank",document.body.appendChild(V),V.click(),document.body.removeChild(V);return}const X=yield ye.blob(),Se=window.URL.createObjectURL(X),ee=document.createElement("a");ee.href=Se,ee.download=de,document.body.appendChild(ee),ee.click(),document.body.removeChild(ee),window.URL.revokeObjectURL(Se)}catch(ye){const X=document.createElement("a");X.href=d,X.download=de,X.target="_blank",document.body.appendChild(X),X.click(),document.body.removeChild(X)}}),T=C=>{const[S,d]=(0,O.useState)(!1),de=ye=>ie(void 0,null,function*(){d(!0);const{status:X,cls:Se,msg:ee,payload:V}=yield(0,n.hr)({params:ye});if(d(!1),!X){(0,A.FB)(null,ee,V,Se);return}g(V==null?void 0:V.publicUrl,(V==null?void 0:V.dfname)||(V==null?void 0:V.fname))});return r.createElement(L.Z,{title:`Click to download the ${(C==null?void 0:C.dfname)||(C==null?void 0:C.fname)||"File"}`},r.createElement(v.Z,oe(le({},C==null?void 0:C.btnProps),{loading:S,onClick:()=>de(C==null?void 0:C.fid)}),(C==null?void 0:C.children)||"Download"))},N=C=>{const S=C==null?void 0:C.icon,d=C==null?void 0:C.text;return r.createElement(T,oe(le({},C),{btnProps:{type:"link",size:"small"}}),S," ",d)}},60664:function(J,W,l){"use strict";l.d(W,{T:function(){return ie},f:function(){return oe}});var n=l(29924),O=l(67241),A=l(5946),L=l(67402),v=l(67294),r=Object.defineProperty,B=Object.defineProperties,G=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,Q=(g,T,N)=>T in g?r(g,T,{enumerable:!0,configurable:!0,writable:!0,value:N}):g[T]=N,a=(g,T)=>{for(var N in T||(T={}))K.call(T,N)&&Q(g,N,T[N]);if(H)for(var N of H(T))D.call(T,N)&&Q(g,N,T[N]);return g},le=(g,T)=>B(g,G(T));const oe=g=>{const{fc:T}=g,N=A.N[T];return N?v.createElement(n.ZP.Group,a({},g),N.map(C=>{const{label:S}=A.s[C];return v.createElement(n.ZP,{key:C,value:C},S)})):v.createElement(O.y,{data:`Radio category (${T}) not found.`})},ie=g=>{const{input:T}=g;if(!T)return v.createElement(L.Z,null);const N=A.s[T];return N!=null&&N.label?v.createElement(O.BV,le(a({},g),{data:N,color:N==null?void 0:N.type})):v.createElement(O.y,{data:T})}},95176:function(J,W,l){"use strict";l.d(W,{T5:function(){return et},bg:function(){return pe},ZP:function(){return yt}});var n=l(67294),O=l(88437),A=l(2482),L=l(34041),v=l(45387),r=l(20550),B=l(94199),G=l(13448),H=l(40877),K=l(65360),D=l(16069),Q=l(62986),a=l(26713),le=l(71577),oe=l(2587),ie=l(63463),g=l(5108),T=l(59142),N=l(76519),C=l(18253),S=l(16894),d=l(94151),de=l(89610),ye=(Z,P,I)=>new Promise((M,z)=>{var fe=c=>{try{y(I.next(c))}catch(s){z(s)}},Ee=c=>{try{y(I.throw(c))}catch(s){z(s)}},y=c=>c.done?M(c.value):Promise.resolve(c.value).then(fe,Ee);y((I=I.apply(Z,P)).next())});function X(Z){return ye(this,null,function*(){return(0,de.ZP)("/server/api/search/history/list",{params:Z})})}function Se(Z){return ye(this,null,function*(){return(0,de.ZP)("/server/api/search/history/delete",{params:Z})})}function ee(Z){return ye(this,null,function*(){return(0,de.ZP)("/server/api/search/history/update",{method:"POST",data:Z})})}var V=l(67241),j=l(45890),E=l(70963),Y=l(56717),m=l(69677),be=l(32808),te=l(29924),Te=l(14104),b=l(67294),ce=Object.defineProperty,Oe=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ue=(Z,P,I)=>
1P in Z?ce(Z,P,{enumerable:!0,configurable:!0,writable:!0,value:I}):Z[P]=I,ze=(Z,P)=>{for(var I in P||(P={}))Qe.call(P,I)&&Ue(Z,I,P[I]);if(Ne)for(var I of Ne(P))Ve.call(P,I)&&Ue(Z,I,P[I]);return Z},qe=(Z,P)=>Oe(Z,De(P)),ft=(Z,P,I)=>new Promise((M,z)=>{var fe=c=>{try{y(I.next(c))}catch(s){z(s)}},Ee=c=>{try{y(I.throw(c))}catch(s){z(s)}},y=c=>c.done?M(c.value):Promise.resolve(c.value).then(fe,Ee);y((I=I.apply(Z,P)).next())});const{Text:He}=A.default,{Option:_e}=L.default,vt={labelCol:{span:6},wrapperCol:{span:16}},lt={wrapperCol:{offset:6,span:16}};var We=Z=>{var P,I;const{data:M,onSuccessfulUpdate:z}=Z,[fe]=v.Z.useForm(),[Ee,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{M&&(M!=null&&M._id)&&fe.setFieldsValue(M)},[M]);const c=s=>ft(void 0,null,function*(){y(!0);const{status:f,class:R,message:q,payload:t}=yield ee(ze({_id:M._id},s));if(y(!1),!f){(0,d.FB)(null,q,t,R);return}G.Z[R]({message:q,duration:8}),z()});return b.createElement(v.Z,qe(ze({id:"editSearchHistoryForm"},vt),{form:fe,onFinish:c}),b.createElement(v.Z.Item,{label:"List Type"},b.createElement(r.Z,null,(P=pe[M==null?void 0:M.type])==null?void 0:P.label)),b.createElement(v.Z.Item,{label:"Filter Type"},b.createElement(r.Z,{color:(M==null?void 0:M.filterType)=="specificFilter"?"magenta":"blue"},(I=et[M==null?void 0:M.filterType])==null?void 0:I.label)),b.createElement(v.Z.Item,{label:"Filters"},b.createElement(r.Z,null,b.createElement("pre",{style:{marginTop:"0.5rem"}},b.createElement("code",null,JSON.stringify(qe(ze({},M==null?void 0:M.filterData),{isFixedDuration:M==null?void 0:M.isFixedDuration,variableDuration:M==null?void 0:M.variableDuration}),null,2))))),b.createElement(v.Z.Item,{name:"title",label:"Title",rules:[{required:!0,message:"Please enter search history title!"}]},b.createElement(m.default,{type:"text",placeholder:"Enter search history title",style:{width:"100%"},allowClear:!0})),b.createElement(v.Z.Item,{name:"desc",label:"Description"},b.createElement(Te.default,{placeholder:"Enter search history details for future reference...",rows:4,allowClear:!0})),b.createElement(v.Z.Item,{name:"isPinned",label:"Pin History",valuePropName:"checked",extra:b.createElement(He,{type:"secondary"},"Check this option to mark this as Pinned History!")},b.createElement(be.Z,null)),b.createElement(v.Z.Item,{name:"isFixedDuration",label:"Fixed Duration",valuePropName:"checked",extra:b.createElement(He,{type:"secondary"},"Un-Check this option to mark duration of this filter as not fixed!")},b.createElement(be.Z,null)),b.createElement(v.Z.Item,{noStyle:!0,shouldUpdate:(s,f)=>s.isFixedDuration!==f.isFixedDuration},({getFieldValue:s})=>s("isFixedDuration")?b.createElement(b.Fragment,null):b.createElement(v.Z.Item,{name:"variableDuration",label:"Variable Duration",rules:[{required:!0,message:"Please select variable duration!"}],extra:b.createElement(He,{type:"secondary"},b.createElement("strong",null,b.createElement(Y.Z,null)," Note:")," ","Selected duration option will keep changing the start and end date of the filter with respect to the current date!")},b.createElement(L.default,{placeholder:"Select variable duration",style:{width:"50%"},allowClear:!0,showSearch:!0},E.vE.map(R=>b.createElement(_e,{key:R,value:R},R))))),b.createElement(v.Z.Item,{name:"visibility",label:"Visibility",rules:[{required:!0,message:"Please select one visibility type!"}]},b.createElement(te.ZP.Group,null,b.createElement(te.ZP,{key:"private",value:"private"},"Private"),b.createElement(te.ZP,{key:"protected",value:"protected"},"Protected"))),b.createElement(v.Z.Item,{name:"status",label:"Status",rules:[{required:!0,message:"Please select one status!"}]},b.createElement(L.default,{style:{width:"50%"},placeholder:"Select status",allowClear:!0,showSearch:!0},b.createElement(_e,{key:"active",value:"active"},"Active"),b.createElement(_e,{key:"removed",value:"removed"},"Removed"))),b.createElement(v.Z.Item,qe(ze({},lt),{style:{marginTop:"3rem"}}),b.createElement(le.Z,{type:"primary",loading:Ee,htmlType:"submit"},"Save"),(M==null?void 0:M.updatedAt)&&b.createElement("div",{style:{marginTop:"0.5rem"}},b.createElement(He,{type:"secondary"},"Last updated: ",b.createElement(V.M0,{input:M.updatedAt})))))},nt=Object.defineProperty,Et=Object.defineProperties,St=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,it=(Z,P,I)=>
1P in Z?nt(Z,P,{enumerable:!0,configurable:!0,writable:!0,value:I}):Z[P]=I,Ie=(Z,P)=>{for(var I in P||(P={}))ht.call(P,I)&&it(Z,I,P[I]);if(rt)for(var I of rt(P))gt.call(P,I)&&it(Z,I,P[I]);return Z},i=(Z,P)=>Et(Z,St(P)),st=(Z,P,I)=>new Promise((M,z)=>{var fe=c=>{try{y(I.next(c))}catch(s){z(s)}},Ee=c=>{try{y(I.throw(c))}catch(s){z(s)}},y=c=>c.done?M(c.value):Promise.resolve(c.value).then(fe,Ee);y((I=I.apply(Z,P)).next())});const{TabPane:ot}=O.default,{Text:dt}=A.default,{Option:$e}=L.default,ct=window.innerWidth*75/100,ut=window.innerWidth*50/100,mt=["advocateList","activityMetrics","complaintList","enrolTrackerList","financeAnalysis","freshEntry","instituteList","instituteRequestList","oathDates","paidApplications","paidApplicationTypes","paymentList","pendingStages","queueList","timeslotList","userList"],pe={advocateList:{key:"advocateList",label:"Advocate List"},activityMetrics:{key:"activityMetrics",label:"Application Process Report"},complaintList:{key:"complaintList",label:"Complaints"},enrolTrackerList:{key:"enrolTrackerList",label:"Enrolment Tracker"},financeAnalysis:{key:"financeAnalysis",label:"Finance Analysis"},freshEntry:{key:"freshEntry",label:"Fresh Data Entry"},instituteList:{key:"instituteList",label:"Institute List"},instituteRequestList:{key:"instituteRequestList",label:"Institute Request List"},oathDates:{key:"oathDates",label:"Enrolment Day"},paidApplications:{key:"paidApplications",label:"Paid Applications"},paidApplicationTypes:{key:"paidApplicationTypes",label:"Paid Applications Types"},paymentList:{key:"paymentList",label:"Payment List"},pendingStages:{key:"pendingStages",label:"Pending Applications by Stages"},queueList:{key:"queueList",label:"Queues"},timeslotList:{key:"timeslotList",label:"Timeslots"},userList:{key:"userList",label:"User List"}},bt=null,et={generalFilter:{key:"generalFilter",label:"General Filter"},specificFilter:{key:"specificFilter",label:"Specific Filter"}},Ye=Z=>{const{filterByType:P,filterSearchHistory:I}=Z,[M]=v.Z.useForm();return n.createElement(v.Z,{form:M},n.createElement(v.Z.Item,{name:"type",noStyle:!0},n.createElement(L.default,{showSearch:!0,allowClear:!0,style:{width:"15rem"},placeholder:"Filter by list type",optionFilterProp:"children",onChange:z=>{I(z)},defaultValue:P},mt.map(z=>n.createElement($e,{key:z,value:z},pe[z].label)))))},It=Z=>{const{searchType:P,pageType:I,applyFilter:M,showSearchHistoryDrawer:z}=Z,[fe,Ee]=(0,n.useState)(!1),[y,c]=(0,n.useState)([]),[s,f]=(0,n.useState)(Ie({searchType:P},j.Xp)),[R,q]=(0,n.useState)(0),[t,e]=(0,n.useState)(Ie({},j.$i)),[o,p]=(0,n.useState)(!1),[w,se]=(0,n.useState)({}),[we,Re]=(0,n.useState)(void 0);(0,n.useEffect)(()=>{ae({})},[]);const ve=[{title:"List Type",key:"type",dataIndex:"type",width:180,fixed:"left",render:(k,u,x)=>{var U;return n.createElement(r.Z,null,(U=pe[u==null?void 0:u.type])==null?void 0:U.label)}},{title:"Filter Type",key:"filterType",dataIndex:"filterType",width:120,render:(k,u,x)=>{var U;return n.createElement(r.Z,{color:(u==null?void 0:u.filterType)=="specificFilter"?"magenta":"blue"},(U=et[u==null?void 0:u.filterType])==null?void 0:U.label)}},{title:"Pinned",key:"isPinned",dataIndex:"isPinned",width:80,render:(k,u,x)=>u!=null&&u.isPinned?n.createElement(r.Z,{color:"green"},"Yes"):n.createElement(r.Z,{color:"red"},"No")},{title:"Title",key:"title",dataIndex:"title",width:200,ellipsis:{showTitle:!1},render:(k,u)=>n.createElement(B.Z,{placement:"bottom",title:u==null?void 0:u.title},n.createElement("span",null,(u==null?void 0:u.title)!=""?u==null?void 0:u.title:"-"))},{title:"Created On",key:"createdAt",dataIndex:"createdAt",width:150,render:(k,u)=>n.createElement(dt,{type:"secondary"},n.createElement(V.M0,{input:u.createdAt}))},{title:"Updated On",key:"updatedAt",dataIndex:"updatedAt",width:150,render:(k,u)=>n.createElement(dt,{type:"secondary"},n.createElement(V.M0,{input:u.updatedAt}))},{title:"Action",width:230,fixed:"right",render:(k,u)=>n.createElement(n.Fragment,null,n.createElement("a",{href:"#",onClick:x=>{var U,$;x.stopPropagation(),(u==null?void 0:u.type)===I?(z(!1),M(u==null?void 0:u.filterType,i(Ie({},u==null?void 0:u.filterData),{historyType:u==null?void 0:u.filterType,variableDuration:u==null?void 0:u.variableDuration}))):G.Z.error({message:"Error!",description:`Can not apply ${(U=pe[u==null?void 0:u.type])==null?void 0:U.label} page filter on ${($=pe[I])==null?void 0:$.label} page! Please apply same page filters only.`,duration:10})}},"Apply Filter"),n.createElement(H.Z,{type:"vertical",style:{margin:"0 0.8rem"}}),n.createElement("a",{href:"#",onClick:x=>{x.stopPropagation(),se(u),p(!0)}},"Edit"),n.createElement(H.Z,{type:"vertical",style:{margin:"0 0.8rem"}}),n.createElement(K.Z,{title:"Are you sure you want to delete this search history?",onConfirm:x=>{x.stopPropagation(),Pe(u._id)},onCancel:x=>x.stopPropagation(),placement:"bottom",okText:"Yes",cancelText:"No"},n.createElement("a",{href:"#",onClick:x=>x.stopPropagation()},"Delete")))}],Ce=()=>{p(!1),ae({})},Pe=k=>st(void 0,null,function*(){Ee(!0);const{status:u,class:x,message:U,payload:$}=yield Se({id:k});if(Ee(!1),!u){(0,d.FB)(null,U,$,x);return}G.Z[x]({message:U,duration:8}),ae({})}),ae=k=>st(void 0,null,function*(){Ee(!0);const{status:u,class:x,message:U,payload:$}=yield X(Ie(Ie({},s),k));if(Ee(!1),!u){(0,d.FB)(null,U,$,x);return}u&&$&&(c($.list),q($.totalRecords))}),Fe=()=>{Re(void 0),f(Ie({searchType:P},j.Xp)),ae(i(Ie({searchType:P},j.Xp),{type:null}))},Ze=k=>{Re(k);let u=i(Ie({},s),{type:k}
1);f(u),ae(u)};return n.createElement(N.ZP,{locale:C.Z},n.createElement(D.Z,{active:!0,avatar:!0,paragraph:{rows:5},loading:fe}),!fe&&(y==null?void 0:y.length)<1&&n.createElement(Q.Z,{style:{margin:"5rem"},description:P=="recent"?"No recent search history found! Please use filters to save search history.":"No pinned search history found! Please use filters to save search history and then mark it as pinned."},n.createElement(a.Z,{direction:"horizontal"},n.createElement(le.Z,{type:"primary",onClick:k=>{ae({})}},"Refresh"),n.createElement(le.Z,{type:"primary",onClick:()=>{Fe()}},"Reset"))),!fe&&(y==null?void 0:y.length)>0&&n.createElement(S.ZP,{headerTitle:n.createElement("span",{style:{textTransform:"capitalize"}},`${P} Search History List`),rowKey:"_id",search:!1,options:{reload:k=>ae({})},toolBarRender:()=>[n.createElement(Ye,{filterByType:we,filterSearchHistory:Ze})],expandable:{expandedRowRender:k=>n.createElement(n.Fragment,null,n.createElement(oe.Z,{column:1,size:"small"},n.createElement(oe.Z.Item,{label:"Description"},(k==null?void 0:k.desc)!=""?k.desc:"-"),n.createElement(oe.Z.Item,{label:"Filters"},n.createElement(r.Z,null,n.createElement("pre",{style:{marginTop:"0.5rem"}},n.createElement("code",null,JSON.stringify(i(Ie({},k==null?void 0:k.filterData),{isFixedDuration:k==null?void 0:k.isFixedDuration,variableDuration:k==null?void 0:k.variableDuration}),null,2))))))),rowExpandable:k=>k.status==="active"},dataSource:y,columns:ve,size:"small",scroll:{x:1e3,y:400},pagination:i(Ie({},t),{total:R}),onChange:(k,u,x)=>{e(k);let{current:U,pageSize:$}=k,{field:ne,order:ue}=x,_=i(Ie({},s),{current:U,pageSize:$,field:ne,order:ue});f(_),ae(_)}}),n.createElement(ie.Z,{width:ut,title:"Edit Search History",placement:"right",closable:!0,onClose:k=>p(!1),open:o},n.createElement(We,{data:w,onSuccessfulUpdate:Ce})))};var yt=Z=>{const{pageType:P,applyFilter:I}=Z,[M,z]=(0,n.useState)(!1);return n.createElement(n.Fragment,null,n.createElement(le.Z,{type:"link",onClick:()=>z(!0)},"Search History"),n.createElement(ie.Z,{width:ct,title:"Search History",placement:"right",closable:!0,onClose:()=>z(!1),open:M},n.createElement(O.default,{defaultActiveKey:"recentHistory",type:"card"},n.createElement(ot,{tab:n.createElement("span",null,n.createElement(g.Z,null),"Recent"),key:"recentHistory"},n.createElement(It,{searchType:"recent",pageType:P,applyFilter:I,showSearchHistoryDrawer:z})),n.createElement(ot,{tab:n.createElement("span",null,n.createElement(T.Z,null),"Pinned"),key:"pinnedHistory"},n.createElement(It,{searchType:"pinned",pageType:P,applyFilter:I,showSearchHistoryDrawer:z})))))}},16926:function(J,W,l){"use strict";l.r(W),l.d(W,{AdminList:function(){return fe},MasterListPage:function(){return M},ShowEmailSentCount:function(){return Z},default:function(){return I}});var n=l(67241),O=l(94151),A=l(1147),L=l(95176),v=l(2388),r=l(16894),B=l(69677),G=l(20550),H=l(97183),K=l(66516),D=l(71230),Q=l(15746),a=l(71577),le=l(14670),oe=l(59652),ie=l(63463),g=l(26713),T=l(76519),N=l(24093),C=l(18253),S=l(7161),d=l(67294),de=l(89290),ye=l(66750),X=l(54573),Se=l(17210),ee=l(75600),V=l(60664),j=l(45890),E=l(60010),Y=l(40110),m=l(73403),be=l(43471),te=l(82061),Te=l(60887),b=l(19175),ce=l(49125),Oe=l(24285),De=l(45387),Ne=l(34041),Qe=l(99315),Ve=l(59060),Ue=l(45930),ze=Object.defineProperty,qe=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,lt=(y,c,s)=>c in y?ze(y,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):y[c]=s,Be=(y,c)=>{for(var s in c||(c={}))_e.call(c,s)&&lt(y,s,c[s]);if(He)for(var s of He(c))vt.call(c,s)&&lt(y,s,c[s]);return y},We=(y,c)=>qe(y,ft(c)),nt=(y,c,s)=>new Promise((f,R)=>{var q=o=>{try{e(s.next(o))}catch(p){R(p)}},t=o=>{try{e(s.throw(o))}catch(p){R(p)}},e=o=>o.done?f(o.value):Promise.resolve(o.value).then(q,t);e((s=s.apply(y,c)).next())});const Et=y=>{const{attributes:c,listeners:s,setNodeRef:f,transform:R,transition:q,isDragging:t}=(0,ce.nB)({id:y["data-row-key"]}),e=Be(We(Be({},y.style),{transform:Oe.ux.Transform.toString(R&&We(Be({},R),{scaleY:1}
1)),transition:q,cursor:"move"}),t?{position:"relative",zIndex:9999}:{});return d.createElement("tr",Be(Be(We(Be({},y),{ref:f,style:e}),c),s))};var rt=y=>{const{setRefresh:c,refresh:s}=y,[f,R]=(0,d.useState)([]),[q,t]=(0,d.useState)(!1),[e,o]=(0,d.useState)(!1),[p,w]=(0,d.useState)(null),[se]=De.Z.useForm();(0,d.useEffect)(()=>{ve(se.getFieldsValue())},[s]);const we=u=>{t(!0),w(u)},Re=()=>{t(!1),w(null)},ve=u=>nt(void 0,null,function*(){o(!0);const x=We(Be({},u),{category:(u==null?void 0:u.category)||"officeBearers",isMasterListPage:!0}),{status:U,class:$,message:ne,payload:ue,isManualClose:_=!1}=yield(0,Ue.Zw)(x);o(!1),(0,O.FB)(null,ne,{},$,_),ue!=null&&ue.list&&R(ue.list)}),Ce=u=>{ve(u)},Pe=[{key:"officeBearers",label:"Office Bearers"},{key:"officers",label:"Officers"},{key:"sbcMember",label:"SBC Member"}],ae=[{title:"Order",dataIndex:"order",key:"order"},{title:"Photo",key:"photoUrl",dataIndex:"photoUrl",width:100,render:(u,x,U)=>d.createElement(N.C,{src:x.photoUrl||x.logoUrl||b.Z,style:{color:"#f56a00",backgroundColor:"#fde3cf",marginRight:10},size:100,shape:"square"},x.name)},{title:"Name",dataIndex:"name",key:"name"},{title:"Category",dataIndex:"category",key:"category",render:(u,x,U)=>{var $;return($=Pe.find(ne=>ne.key===u))==null?void 0:$.label}},{title:"Designation",dataIndex:"designation",key:"designation"},{title:"Email",dataIndex:"email",key:"email"},{title:"Mobile",dataIndex:"mobile",key:"mobile",render:(u,x)=>d.createElement("span",null,x.mobile," ",u||"N/A")},{title:"Address",dataIndex:"address1",key:"address1",render:(u,x)=>d.createElement("span",null,x.address1Title,": ",u)},{title:"Action",dataIndex:"action",valueType:"text",render:(u,x,U)=>d.createElement(d.Fragment,null,d.createElement(a.Z,{type:"link",onClick:()=>we(x)},"Edit"))}],Fe=u=>nt(void 0,null,function*(){o(!0);const x=se.getFieldValue("category");if(!x){(0,O.FB)(null,"Choose a Category to Save the list",{},"error",!0);return}const U=u,{status:$,class:ne,message:ue,payload:_}=yield(0,X.GM)({memberList:U,category:x});o(!1),(0,O.FB)(null,ue,_,ne),c(s+1)}),Ze=(0,Te.Dy)((0,Te.VT)(Te.we,{activationConstraint:{distance:1}})),k=({active:u,over:x})=>{u.id!==(x==null?void 0:x.id)&&R(U=>{o(!0);const $=U.findIndex(xe=>xe.orderString===u.id),ne=U.findIndex(xe=>xe.orderString===(x==null?void 0:x.id)),_=(0,ce.Rp)(U,$,ne).map((xe,h)=>We(Be({},xe),{orderString:(h+1).toString(),order:h+1}));return o(!1),_})};return d.createElement(d.Fragment,null,d.createElement(g.Z,{style:{float:"right",justifyContent:"space-between",marginBottom:"1rem"}},d.createElement(De.Z,{onFinish:Ce,form:se,layout:"inline"},d.createElement(De.Z.Item,{name:"category"},d.createElement(Ne.default,{placeholder:"Select Category",style:{float:"right",marginBottom:"1rem"},allowClear:!0},Pe.map(u=>d.createElement(Ne.default.Option,{key:u.key,value:u.key},u.label)))),d.createElement(De.Z.Item,{noStyle:!0,shouldUpdate:(u,x)=>u.category!==x.category},({getFieldValue:u})=>u("category")!=="sbcMember"?d.createElement(d.Fragment,null):d.createElement(De.Z.Item,{name:"sbcId",rules:[{required:!0,message:"Please Enter SBC ID!"}]},d.createElement(B.default,{placeholder:"Enter SBC ID",allowClear:!0}))),d.createElement(a.Z,{type:"primary",htmlType:"submit"},"Apply")),d.createElement(a.Z,{type:"primary",style:{float:"right",marginBottom:"1rem"},onClick:()=>Fe(f)},"Save Member Order"),d.createElement(a.Z,{type:"primary",style:{float:"right",marginBottom:"1rem"},onClick:()=>we(null)},"New Member")),f&&f.length>0&&d.createElement(Te.LB,{sensors:Ze,onDragEnd:k},d.createElement(d.Fragment,null,q&&d.createElement(ie.Z,{title:p!=null&&p._id?`Edit ${p==null?void 0:p.name}`:"Add New Member",open:q,closable:!0,onClose:Re,width:800},d.createElement(Ve.Z,{data:p,refresh:s,setRefresh:c,selectedCategory:se.getFieldValue("category"),sbcId:se.getFieldValue("sbcId"),setVisible:t})),d.createElement(ce.Fo,{items:f.map(u=>u.orderString),strategy:ce.qw},d.createElement(Qe.Z,{components:{body:{row:Et}},rowKey:"orderString",columns:ae,style:{height:"92vh"},dataSource:f,pagination:!1,loading:e})))))},ht=l(87412),gt=l(62704),it=l(37268),Ie=l(79155),i=l(67294),st=Object.defineProperty,ot=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,mt=(y,c,s)=>c in y?st(y,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):y[c]=s,pe=(y,c)=>{for(var s in c||(c={}))ct.call(c,s)&&mt(y,s,c[s]);if($e)for(var s of $e(c))ut.call(c,s)&&mt(y,s,c[s]);return y}
1,bt=(y,c)=>ot(y,dt(c)),et=(y,c)=>{var s={};for(var f in y)ct.call(y,f)&&c.indexOf(f)<0&&(s[f]=y[f]);if(y!=null&&$e)for(var f of $e(y))c.indexOf(f)<0&&ut.call(y,f)&&(s[f]=y[f]);return s},Ye=(y,c,s)=>new Promise((f,R)=>{var q=o=>{try{e(s.next(o))}catch(p){R(p)}},t=o=>{try{e(s.throw(o))}catch(p){R(p)}},e=o=>o.done?f(o.value):Promise.resolve(o.value).then(q,t);e((s=s.apply(y,c)).next())});const{Search:It}=B.default,Je={university:{label:"University"},course:{label:"Course"},ayear:{label:"Academic Year"},cleType:{label:"CLE Type"},district:{label:"District"},state:{label:"State"},cleAffiliatingUniversityType:{label:"CLE Affiliating University Type"},universityDesignation:{label:"Authority Designation"},country:{label:"Country"},chairMaterialType:{label:"Chair Material Type"},judgeChairMaterialType:{label:"Judge Chair Material Type"},applicationCharges:{label:"Application Charges"},bank:{label:"Bank"},facultyDesignation:{label:"Faculty Designation"},highestQualification:{label:"Highest Qualification"},natureOfAppointment:{label:"Nature of Appointment"},landRegisteredName:{label:"Land Registered Name"},userType:{label:"Users Type"},idProof:{label:"Id Proofs"},bloodGroup:{label:"Blood Groups"},relationship:{label:"Relationships"},speakingLanguage:{label:"Speaking Languages"},dashboardLabel:{label:"Dashboard Labels"},dashboardWidget:{label:"Dashboard Widgets"},courseCategory:{label:"Course Categories"},courseSpecialization:{label:"Course Specializations"},caste:{label:"Castes"},religion:{label:"Religions"},community:{label:"Communities"},institute:{label:"Institutes"},instituteType:{label:"Institute Types"},schoolBoard:{label:"School Boards"},standard:{label:"Standards"},working:{label:"Workings"},council:{label:"Councils"},college:{label:"Colleges"},cle:{label:"CLEs"},newsPaper:{label:"Newspapers"},contactCategory:{label:"Contact Categories"},universityLevel:{label:"University Levels"}
1,policeLevel:{label:"Police Levels"},policeStation:{label:"Police Stations"},policeDistrict:{label:"Police Districts"},association:{label:"Associations"},clerkAssociation:{label:"Clerk Associations"},additionalDocumentType:{label:"Additional Document Types"},insuranceCompany:{label:"Insurance Companies"},businessType:{label:"Business Types"},businessRole:{label:"Business Roles"},dashboardStatus:{label:"Dashboard Statuses"},countryCode:{label:"Country Codes"},city:{label:"Cities"},nationality:{label:"Nationalities"},vehicles:{label:"Vehicles"},ticketCategory:{label:"Ticket Categories"},postalService:{label:"Postal Services"},member:{label:"Members"},narchive:{label:"NArchives"},faqCategory:{label:"FAQ Categories"},refundQueue:{label:"Refund Queues"},fileCategory:{label:"File Categories"},channelType:{label:"Channel Types"},channelThreadType:{label:"Channel Thread Types"},employmentType:{label:"Employment Types"},courseDegree:{label:"Course Degrees"},specialization:{label:"Specializations"},scoreType:{label:"Score Types"},romanNumber:{label:"Roman Numbers"},graduationClass:{label:"Graduation Classes"},aibePassStatus:{label:"AIBE Pass Statuses"},feedType:{label:"Feed Types"},rmhFieldOrder:{label:"RMH Field Orders"},rmhFieldLabel:{label:"RMH Field Labels"},cleManageType:{label:"CLE Manage Types"},cleOwnershipType:{label:"CLE Ownership Types"},committeeMemberDesignation:{label:"Committee Member Designations"},appointmentStatus:{label:"Appointment Statuses"},transferCaseStatus:{label:"Transfer Case Statuses"},administrativeControl:{label:"Administrative Controls"},universityType:{label:"University Types"},instituteEducationType:{label:"Institute Education Types"},casteCategory:{label:"Caste Categories"},inspectionMember:{label:"Inspection Members"},insMembersType:{label:"Inspection Members Types"},universityEstablishedByType:{label:"University Established By"},sbcMember:{label:"SBC Members"},practiceArea:{label:"Practice Areas"},substantiveAppointment:{label:"Substantive Appointments"},session:{label:"List Current Sessions"}},yt=["administrativeControl","applicationCharges","ayear","bank","bloodGroup","caste","casteCategory","chairMaterialType","cle","cleManageType","cleOwnershipType","cleType","college","committeeMemberDesignation","contactCategory","council","country","countryCode","course","courseCategory","courseDegree","district","facultyDesignation","faqCategory","feedType","fileCategory","graduationClass","highestQualification","idProof","insMembersType","inspectionMember","instituteEducationType","judgeChairMaterialType","landRegisteredName","member","nationality","natureOfAppointment","newsPaper","postalService","practiceArea","relationship","religion","romanNumber","sbcMember","schoolBoard","scoreType","speakingLanguage","specialization","state","substantiveAppointment","transferCaseStatus","university","universityDesignation","universityEstablishedByType","universityLevel","universityType","session"],Z=y=>{const{enrolmentDayEmailSentCount:c=0,rids:s}=y;let f="red";return c==0?f="red":c==(s==null?void 0:s.length)?f="green":c<(s==null?void 0:s.length)&&(f="orange"),i.createElement(i.Fragment,null,i.createElement(G.Z,{color:f},`${c}/${(s==null?void 0:s.length)||0}`||""))};var I=y=>{const c=(0,n.vl)(y),{isOthers:s}=c,{type:f}=(0,ee.useParams)(),[R,q]=(0,d.useState)(),[t,e]=(0,d.useState)(y.hideCategories||!1),[o,p]=(0,d.useState)({}),[w,se]=(0,d.useState)({categories:[]}),[we,Re]=(0,d.useState)([]),[ve,Ce]=(0,d.useState)(!0),[Pe,ae]=(0,d.useState)(!1),[Fe,Ze]=(0,d.useState)(""),{categories:k}=w,u=()=>Ye(void 0,null,function*(){const{status:h,payload:F}=yield(0,X.Jc)();if(h)h&&F&&se(F);else return}),x=()=>Ye(void 0,null,function*(){Ce(!0);const{status:h,payload:F}=yield(0,X.Ck)();if(Ce(!1),h)h&&F&&Re(F==null?void 0:F.collectionNames);else return});(0,d.useEffect)(()=>{u(),x()},[]),(0,d.useEffect)(()=>{p({})},[f]);const U=(0,d.useMemo)(()=>(yt.sort(),yt.map(h=>{const F=Je[h];return F.value=h,F})),[]),$=h=>{const{key:F}=h;let me="",ke="";_.forEach(Le=>{const Ae=Le.children.find(he=>he.key===F);Ae&&(me=Ae.label,ke=Ae==null?void 0:Ae.desc)}),ee.history.push(`/admin/static/master/list/${F}`),q(me),Ze(ke)},[ne,ue]=(0,d.useState)(""),_=we==null?void 0:we.map(h=>{var F,me,ke;const Le=(F=h==null?void 0:h.children)==null?void 0:F.filter(he=>{var Ke,tt;return(tt=(Ke=he==null?void 0:he.label)==null?void 0:Ke.toLowerCase())==null?void 0:tt.includes(ne
1==null?void 0:ne.toLowerCase())});return((ke=(me=h==null?void 0:h.label)==null?void 0:me.toLowerCase())==null?void 0:ke.includes(ne==null?void 0:ne.toLowerCase()))||(Le==null?void 0:Le.length)>0?bt(pe({},h),{children:Le}):null}).filter(h=>h!==null),xe=_==null?void 0:_.map(h=>h==null?void 0:h.key);return i.createElement(i.Fragment,null,i.createElement(Ie.G,{title:R||"Master List"}),i.createElement(H.default,null,i.createElement("div",{style:{display:"flex",width:"100%"}},i.createElement(ht.default,{style:{backgroundColor:"white"},trigger:null,collapsible:!0,collapsed:Pe},ve?i.createElement(v.Z,null):i.createElement(i.Fragment,null,i.createElement(B.default,{placeholder:"Search categories",onChange:h=>ue(h.target.value),style:{marginBottom:8},suffix:i.createElement(Y.Z,null),allowClear:!0}),i.createElement(K.default,{mode:"inline",defaultOpenKeys:xe,style:{height:"100vh",overflowY:"auto",overflowX:"hidden",borderRight:0,scrollbarWidth:"thin",msOverflowStyle:"none",backgroundColor:"white"},onClick:$},_==null?void 0:_.map(h=>i.createElement(K.default.SubMenu,{key:h.key,title:i.createElement("span",null,i.createElement("span",{style:{color:h.key==="unKnownCollectionNames"?"red":"black"}},h.label," (",h.children.length,")"))},h.children.map(F=>i.createElement(K.default.Item,{key:F.key,style:{color:F.color,whiteSpace:"normal",lineHeight:"1.9",height:"auto"}},F.label))))))),i.createElement(H.default,null,i.createElement(gt.Content,{style:{padding:0,marginLeft:10}},f&&i.createElement(M,{key:f,type:f,filter:o,setFilter:p,othersParams:c,getOthersCategories:u,collectionInfo:Fe}))))))};const M=y=>{var c;const s=y,{filter:f={},collectionInfo:R}=s,q=et(s,["filter","collectionInfo"]),[t,e]=(0,d.useState)(!1),[o,p]=(0,d.useState)({items:[],total:0}),[w,se]=(0,d.useState)(),[we,Re]=(0,d.useState)(""),[ve,Ce]=(0,d.useState)(),[Pe,ae]=(0,d.useState)(!1),[Fe,Ze]=(0,d.useState)(!1),[k,u]=(0,d.useState)(1),[x,U]=(0,d.useState)(k),[$,ne]=(0,d.useState)({}),[ue,_]=(0,d.useState)(0),[xe,h]=(0,d.useState)(void 0),[F,me]=(0,d.useState)(void 0),{items:ke,total:Le}=o;let Ae="full name";(0,d.useEffect)(()=>{U(k)},[k]),(0,d.useEffect)(()=>{he(y.type,pe(pe({},y==null?void 0:y.othersParams),f))},[f,(c=y==null?void 0:y.othersParams)==null?void 0:c.isOthers,ue]);const he=(re,...ge)=>Ye(void 0,[re,...ge],function*(Me,Ge={},xt="generalFilter"){e(!0);const{status:at,class:pt,message:Xe,payload:je}=yield(0,X.$4)(Me,{params:JSON.stringify(Ge),historyType:xt});if(se(Me),e(!1),!at){(0,O.FB)(null,Xe,je,pt);return}Je[Me]&&Je[Me].label&&y.setTitle&&Re(Je[Me].label),je&&(je._id&&Ce(je._id),p(je),je!=null&&je.queueStatsById&&ne(je.queueStatsById))}),Ke=(re,ge)=>{ae(!0),Ce(ge),se(re)},tt=(re,ge)=>{Ze(!0),Ce(ge),se(re)},Ct=re=>{he(w,re,"specificFilter")};w==="refundQueue"&&(Ae="Refund / Payment Id");const Pt=re=>{ae(!1),p(ge=>{var Me;const Ge=ge.items.find(Xe=>Xe._id==re._id),xt=!!(Ge&&Ge._id);let at=[],pt=ge.total;return xt?(at=(Me=ge.items)==null?void 0:Me.map(Xe=>Xe._id===re._id?re:Xe),ae(!1)):(at.push(re),pt+=1),{total:pt,items:at}})},Tt=(re,ge)=>{var Me;if(re=="specificFilter"){let Ge=(Me=ge==null?void 0:ge.params)==null?void 0:Me.replaceAll('"',"");me(Ge),he(w,Ge,ge==null?void 0:ge.historyType)}else he(w)};return i.createElement(i.Fragment,null,(0,S.Z)(["queue"],w)&&i.createElement(ye.ZP,{category:w,onSearch:Ct}),i.createElement(D.Z,{justify:"end",gutter:[16,16]},!(0,S.Z)(["queue"],w)&&i.createElement(Q.Z,null,i.createElement(A.Z,{onSearch:Ct,category:w,applySearchHistoryFilters:Tt,loading:t})),!(0,S.Z)(["refundQueue","member"],w)&&i.createElement(i.Fragment,null,i.createElement(Q.Z,null,i.createElement(a.Z,{type:"link",style:{marginBottom:"0.5rem"},icon:i.createElement(m.Z,null),onClick:()=>ee.history.back()},"Go Back")),i.createElement(Q.Z,null,i.createElement(a.Z,{icon:i.createElement(be.Z,null),type:"link",style:{marginBottom:"0.5rem"},onClick:()=>_(ue+1),loading:t},"Refresh")),i.createElement(Q.Z,null,i.createElement(a.Z,{type:"primary",onClick:re=>{re.stopPropagation(),Ke(w,"new")}},"New"))),xe&&i.createElement(Q.Z,null,i.createElement(L.ZP,{pageType:xe,applyFilter:Tt}))),R&&i.createElement(le.Z,{type:"info",showIcon:!0,message:R,style:{marginBottom:"0.5rem"}}),o&&i.createElement(oe.default,null,i.createElement(fe,pe({category:w,items:ke,total:Le,onEdit:Ke,onView:tt,loading:t,queueStats:$,filter:f,setRefresh:_,refresh:ue,setData:p},q)),i.createElement(ie.Z,{width:window.innerWidth*60/100,title:"Add/Edit Details",placement:"right",closable:!0,onClose:re=>ae(!1),open:Pe},i.createElement(de.default,{category:w,refId:ve,onSuccessfulSave:Pt,setIsFormVisible:ae,disabled:ve!=="new"&&w==="oathDate"})),i.createElement(ie.Z,{width:window.innerWidth*60/100,placement:"right",closable:!0,onClose:re=>Ze(!1),open:Fe},i.createElement(Se.default,{category:w,refId:ve}))))},z=y=>{let c=[];for(const s of y)c=[...c,...s];return new Set(c)},fe=y=>{const{category:c,items:s=[],total:f,queueStats:R={},filter:q,setFilter:t,setData:e,othersParams:o,getOthersCategories:p,refresh:w,setRefresh:se}=y,[we,Re]=(0,d.useState)(!1),[ve,Ce]=(0,d.useState)([]),[Pe,ae]=(0,d.useState)(""),[Fe,Ze]=(0,d.useState)(!1),k=h=>{Re(!0)},u=h=>{Ce(h)},x={selectedRowKeys:ve,onChange:u},U=h=>Ye(void 0,null,function*(){if(h=="save"&&!Pe)return(0,O.FB)(null,"Enter the Label",{},"error");const F={selectedRowKeys:[...z(ve)],name:Pe,category:c,editType:h};Ze(!0);const{status:me,class:ke,message:Le,payload:Ae}=yield(0,X.tt)(F);if(Ze(!1),me)me&&Ae&&((0,O.FB)(null,`${Je[c].label} - ${Le}`,{},ke),e(he=>({items:he.items.filter(Ke=>!Ke._id.some(Pt=>F.selectedRowKeys.includes(Pt))),total:he.total-ve.length})),p&&p(),u([]));else return});function $(){return[i.createElement(D.Z,{key:"selected_row_key",align:"middle",gutter:10},i.createElement(Q.Z,null,ve.length," selected"),i.createElement(Q.Z,null,i.createElement(E.PC,{value:Pe,onChange:h=>ae(h.target.value),placeholder:"Enter Label"})),i.createElement(Q.Z,null,i.createElement(a.Z,{type:"primary",size:"small",onClick:()=>U("save"),loading:Fe},"Save Label")),i.createElement(Q.Z,null,i.createElement(a.Z,{type:"dashed",danger:!0,size:"small",onClick:()=>U("delete"),loading:Fe,icon:i.createElement(te.Z,null)},"Delete selected")))]}const ne={title:"Actions",align:"center",render:(h,F)=>i.createElement(g.Z,null,y.onEdit&&i.createElement(a.Z,{type:"link",onClick:me=>y.onEdit(c,F._id)},"Edit"),c!=="oathDate"&&c!=="queue"&&y.onView&&i.createElement(a.Z,{type:"link",onClick:me=>y.onView(c,F._id)},"View"),c==="oathDate"&&!(F!=null&&F.isOathDayCancelled)&&i.createElement(i.Fragment,null,i.createElement(a.Z,{type:"link",onClick:me=>window.open(`/admin/static/master/view/${c}/${F._id}`)},"View"),i.createElement(a.Z,{type:"link",onClick:me=>k(F)},"Send Email")),c==="queue"&&i.createElement(a.Z,{type:"link",onClick:me=>window.open(`/admin/requests/queues/${F._id}/applicationList`)},"View"))},ue={title:"Status",dataIndex:"status",sorter:(h,F)=>h.status-F.status,key:"status",render:h=>i.createElement(V.T,{input:h,copyable:!1})},_=[...Ee(c,R),ue];o!=null&&o.isOthers||_.push(ne);const xe={title:"No.of times repeated",dataIndex:"count",width:"200px",sorter:(h,F)=>
1h.count-F.count,key:"count"};return o.isOthers&&_.splice(1,0,xe),i.createElement(i.Fragment,null,i.createElement(T.ZP,{locale:C.Z},c!="member"&&i.createElement(r.ZP,{size:"small",rowKey:"_id",columns:_,dataSource:s,toolBarRender:!1,loading:y.loading,search:!1,tableAlertRender:()=>$(),rowSelection:o.isOthers==1?x:!1,pagination:bt(pe(pe({},j.$i),q),{total:f}),onChange:(h,F,me)=>{const{current:ke,pageSize:Le}=h,Ae={current:ke,pageSize:Le};t(he=>pe(pe({},he),Ae))},bordered:!0}),c=="member"&&i.createElement("div",null,i.createElement(rt,{refresh:w,setRefresh:se}))))},Ee=(y,c)=>{let s=[];const f={title:"_id",dataIndex:"_id",key:"_id"},R={title:"Name",dataIndex:"name",sorter:(t,e)=>t.name.length-e.name.length,key:"name"},q={title:"Order",dataIndex:"order",sorter:(t,e)=>t.order-e.order,key:"order"};switch(y){case"cleType":s=[R,{title:"CLE Type Id",dataIndex:"_id",sorter:(t,e)=>t._id.length-e._id.length,key:"_id"}];break;case"landRegisteredName":s=[{title:"Land Registered Name",dataIndex:"landRegisteredName",sorter:(t,e)=>t.landRegisteredName.label.length-e.landRegisteredName.label.length,key:"landRegisteredName",render:(t,e,o)=>e&&e.name}];break;case"ayear":s=[{title:"CLE Academic Year",dataIndex:"ayear",key:"ayear",render:(t,e,o)=>e.name}];break;case"cleAffiliatingUniversityType":s=[{title:"CLE Affiliating University Type",dataIndex:"cleAffiliatingUniversityType",key:"cleAffiliatingUniversityType",render:(t,e,o)=>e&&e.name}];break;case"universityDesignation":s=[{title:"CLE Affiliating University Type",dataIndex:"universityDesignation",sorter:(t,e)=>t.universityDesignation.label.length-e.universityDesignation.label.length,key:"universityDesignation",render:(t,e,o)=>e&&e.name}];break;case"chairMaterialType":s=[{title:"CLE Chair Material Type",dataIndex:"chairMaterialType",sorter:(t,e)=>t.chairMaterialType-e.chairMaterialType,key:"chairMaterialType",render:(t,e,o)=>e&&e.name}];break;case"judgeChairMaterialType":s=[{title:"CLE Judge Chair Material Type",dataIndex:"judgeChairMaterialType",sorter:(t,e)=>t.judgeChairMaterialType.label.length-e.judgeChairMaterialType.label.length,key:"judgeChairMaterialType",render:(t,e,o)=>e&&e.name}];break;case"applicationCharges":s=[{title:"CLE Application Charges",dataIndex:"applicationCharges",sorter:(t,e)=>t.applicationCharges.label.length-e.applicationCharges.label.length,key:"applicationCharges",render:(t,e,o)=>e&&e.name}];break;case"facultyDesignation":s=[{title:"CLE Faculty Designation",dataIndex:"facultyDesignation",sorter:(t,e)=>t.facultyDesignation.label.length-e.facultyDesignation.label.length,key:"facultyDesignation",render:(t,e,o)=>e&&e.name}];break;case"highestQualification":s=[{title:"CLE Highest Qualification",dataIndex:"highestQualification",sorter:(t,e)=>t.highestQualification.label.length-e.highestQualification.label.length,key:"highestQualification",render:(t,e,o)=>e&&e.name}];break;case"natureOfAppointment":s=[{title:"CLE Nature of Appointment",dataIndex:"natureOfAppointment",key:"natureOfAppointment",render:(t,e,o)=>e&&e.name}];break;case"course":s=[f,R,{title:"Course Id",dataIndex:"_id",sorter:(t,e)=>t._id-e._id,key:"_id"},{title:"Year",dataIndex:"year",sorter:(t,e)=>t.year-e.year,key:"year"}];break;case"uuid":s=[f,{title:"Field Name",dataIndex:"fieldType",sorter:(t,e)=>t.fieldType-e.fieldType,key:"fieldType"},{title:"Mobile",dataIndex:"mobile",key:"mobile",render:(t,e,o)=>i.createElement(n.mZ,{data:e==null?void 0:e.mobile})},{title:"Email",dataIndex:"email",key:"email",render:(t,e,o)=>i.createElement(n.lP,{data:e==null?void 0:e.email})}];break;case"academicScheduleSubjects":s=[f,{title:"RID",dataIndex:"rid",sorter:(t,e)=>t.rid-e.rid,key:"rid"},{title:"Couse",dataIndex:"course",sorter:(t,e)=>t.course-e.course,key:"course",render:(t,e,o)=>{var p;return(p=e==null?void 0:e.course)==null?void 0:p.label}},{title:"Subject Name",dataIndex:"subjectName",sorter:(t,e)=>t.subjectName-e.subjectName,key:"subjectName",render:(t,e,o)=>e==null?void 0:e.subjectName},{title:"Total Classes",dataIndex:"totalClasses",sorter:(t,e)=>t.totalClasses-e.totalClasses,key:"totalClasses",render:(t,e,o)=>e==null?void 0:e.totalClasses},{title:"Is Subject Compulsory",dataIndex:"isTheSubjectCompulsory",sorter:(t,e)=>t.isTheSubjectCompulsory-e.isTheSubjectCompulsory,key:"isTheSubjectCompulsory",render:(t,e,o)=>e==null?void 0:e.isTheSubjectCompulsory}];break;case"timeslotGroupRecords":s=[f,{title:"Time Slot Group",dataIndex:"timeslotGroup",sorter:(t,e)=>t.timeslotGroup-e.timeslotGroup,key:"timeslotGroup",render:(t,e,o)=>{var p;return(p=e==null?void 0:e.timeslotGroup)==null?void 0:p.label}},{title:"Slot Group",dataIndex:"slotGroups",sorter:(t,e)=>t.slotGroups-e.slotGroups,key:"slotGroups",render:(t,e,o)=>{var p;return(p=e==null?void 0:e.slotGroups)==null?void 0:p.map((w,se)=>i.createElement("div",{key:se,style:{marginBottom:"8px"}},i.createElement("div",null,i.createElement("strong",null,"Start Time:")," ",w.startTime),i.createElement("div",null,i.createElement("strong",null,"Normal:")," ",w.normal),i.createElement("div",null,i.createElement("strong",null,"Slot Number:")," ",w.slotNumber),i.createElement("div",null,i.createElement("strong",null,"Buffer:")," ",w.buffer),i.createElement("div",null,i.createElement("strong",null,"Label:")," ",w.label),i.createElement("div",null,i.createElement("strong",null,"Status:")," ",w.status),i.createElement("div",null,i.createElement("strong",null,"Tatkal:")," ",w.tatkal),i.createElement("div",null,i.createElement("strong",null,"End Time:")," ",w.endTime)))}}];break;case"requestSettings":s=[f,{title:"Locked Values",dataIndex:"lockValues",sorter:(t,e)=>t.lockValues-e.lockValues,key:"lockValues",render:(t,e,o)=>{var p;return((p=e==null?void 0:e.lockValues)==null?void 0:p.length)>0?e.lockValues.join(", "):null}},{title:"Locked Open Desc",dataIndex:"lockOpenDesc",sorter:(t,e)=>t.lockOpenDesc-e.lockOpenDesc,key:"lockOpenDesc",render:(t,e,o)=>e==null?void 0:e.lockOpenDesc},{title:"Locked Close Desc",dataIndex:"lockCloseDesc",sorter:(t,e)=>t.lockCloseDesc-e.lockCloseDesc,key:"lockCloseDesc",render:(t,e,o)=>e==null?void 0:e.lockCloseDesc},{title:"Lock Open At",dataIndex:"lockOpenAt",sorter:(t,e)=>t.lockOpenAt-e.lockOpenAt,key:"lockOpenAt",render:(t,e,o)=>i.createElement(n.M0,{input:e==null?void 0:e.lockOpenAt})},{title:"Lock Closes At",dataIndex:"lockCloseAt",sorter:(t,e)=>t.lockCloseAt-e.lockCloseAt,key:"lockCloseAt",render:(t,e,o)=>i.createElement(n.M0,{input:e==null?void 0:e.lockCloseAt})},{title:"Permission Proof",dataIndex:"pdfApplicationEnablingPermissionProof",sorter:(t,e)=>t.pdfApplicationEnablingPermissionProof-e.pdfApplicationEnablingPermissionProof,key:"pdfApplicationEnablingPermissionProof",render:(t,e,o)=>i.createElement(n.jT,{data:[{label:"Permission Proof",data:e.pdfApplicationEnablingPermissionProof}]})},{title:"Lock Status",dataIndex:"lockStatus",sorter:(t,e)=>t.lockStatus-e.lockStatus,key:"lockStatus",render:(t,e,o)=>e==null?void 0:e.lockStatus}];break;case"faq":s=[f,{title:"Category",dataIndex:"category",key:"category",render:(t,e,o)=>{var p;return(p=e==null?void 0:e.category)==null?void 0:p.label}},{title:"Link Type",dataIndex:"linkType",key:"linkType",render:(t,e,o)=>i.createElement(G.Z,{color:"blue"},(0,it.fm)(e==null?void 0:e.linkType))},{title:"Question",dataIndex:"question",key:"question",render:(t,e,o)=>e==null?void 0:e.question},{title:"Answers",dataIndex:"answer",key:"answer",render:(t,e,o)=>e==null?void 0:e.answer},{title:"Link",dataIndex:"link",key:"link",render:(t,e,o)=>i.createElement("a",{href:`${e==null?void 0:e.link}`,rel:"noreferrer",target:"_blank",onClick:p=>p.stopPropagation()},e==null?void 0:e.link)}];break;case"listRmhTemplates":s=[{title:"Id",dataIndex:"_id",sorter:(t,e)=>t._id-e._id,key:"_id",render:(t,e,o)=>e==null?void 0:e._id},{title:"RF-Type",dataIndex:"rftype",sorter:(t,e)=>t.rftype-e.rftype,key:"rftype",render:(t,e,o)=>e==null?void 0:e.rftype},{title:"F-Types",dataIndex:"ftypes",sorter:(t,e)=>t.ftypes-e.ftypes,key:"ftypes",render:(t,e,o)=>{var p;return((p=e==null?void 0:e.ftypes)==null?void 0:p.length)>0?e.ftypes.join(", "):null}},{title:"Content Type",dataIndex:"contentType",sorter:(t,e)=>t.contentType-e.contentType,key:"contentType",render:(t,e,o)=>e==null?void 0:e.contentType},{title:"Content Template",dataIndex:"contentTemplate",sorter:(t,e)=>t.contentTemplate-e.contentTemplate,key:"contentTemplate",render:(t,e,o)=>e==null?void 0:e.contentTemplate}];break;case"country":s=[{title:"Name",dataIndex:"name",sorter:(t,e)=>{var o,p;return((o=t.name)==null?void 0:o.length)-((p=e.name)==null?void 0:p.length)},key:"name"},{title:"Country Code",dataIndex:"iso2"},{title:"Alternate Key",dataIndex:"iso3"},{title:"Phone Code",dataIndex:"phoneCode",sorter:(t,e)=>{var o,p;return((o=t.phoneCode)==null?void 0:o.length)-((p=e.phoneCode)==null?void 0:p.length)},key:"phoneCode"},{title:"Capital",dataIndex:"capital",sorter:(t,e)=>{var o,p;return((o=t.capital)==null?void 0:o.length)-((p=e.capital)==null?void 0:p.length)},key:"capital"},{title:"Currency",dataIndex:"currency"},{title:"Native",dataIndex:"native",sorter:(t,e)=>{var o,p;return((o=t.native)==null?void 0:o.length)-((p=e.native)==null?void 0:p.length)},key:"native"}];break;case"state":s=[f,R,{title:"State Code",dataIndex:"_id",sorter:(t,e)=>t._id.length-e._id.length,key:"_id"},{title:"Country Id",dataIndex:"countryId"}];break;case"cleExistingFees":s=[f,{title:"RID",dataIndex:"rid",key:"rid",render:(t,e,o)=>i.createElement(G.Z,null,e==null?void 0:e.rid)}
1,{title:"CLE UID/CLE ID - Name",dataIndex:"cle",key:"cle",render:(t,e,o)=>{var p,w;return i.createElement(i.Fragment,null,i.createElement(G.Z,null,e==null?void 0:e.cleUid,"/",(p=e==null?void 0:e.cle)==null?void 0:p.key),"- ",(w=e==null?void 0:e.cle)==null?void 0:w.value)}},{title:"Amount",dataIndex:"amount",key:"amount",render:(t,e,o)=>i.createElement(G.Z,{color:"blue"},e==null?void 0:e.amount)},{title:"Payment For",dataIndex:"paidFor",key:"paidFor",render:(t,e,o)=>{var p;return(p=e==null?void 0:e.paidFor)==null?void 0:p.label}},{title:"Payment Mode",dataIndex:"paymentMode",key:"paymentMode",render:(t,e,o)=>e==null?void 0:e.paymentMode}];break;case"listRmhFieldLabels":s=[f,{title:"Label",dataIndex:"label",key:"label"},{title:"Type",dataIndex:"type",key:"type"},{title:"Data Type",dataIndex:"dataType",key:"dataType"},{title:"Ftypes",dataIndex:"ftypes",key:"ftypes",render:(t,e,o)=>{var p;return((p=e==null?void 0:e.ftypes)==null?void 0:p.length)>0?e.ftypes.join(", "):null}}];break;case"listArchives":s=[f,R,{title:"Type",dataIndex:"type",sorter:(t,e)=>t.type.length-e.type.length,key:"type"},{title:"Label",dataIndex:"label"},{title:"URL",dataIndex:"url",render:(t,e,o)=>i.createElement("a",null,e==null?void 0:e.url)}];break;case"district":s=[f,R,{title:"District Id",dataIndex:"_id",sorter:(t,e)=>t._id.length-e._id.length,key:"_id"},{title:"State Id",dataIndex:"stateId",render:(t,e,o)=>e&&e.stateId&&e.stateId}];break;case"cleFaculties":s=[f,{title:"RID",dataIndex:"rid",sorter:(t,e)=>t.rid.length-e.rid.length,key:"rid"},{title:"Faculty Photo",dataIndex:"facultyPhoto",render:(t,e,o)=>i.createElement(N.C,{src:e.facultyPhoto.publicUrl,style:{color:"#f56a00",backgroundColor:"#fde3cf",height:"150px",width:"120px"},shape:"square"})},{title:"Faculty Name",dataIndex:"cleFacultyName",key:"cleFacultyName"},{title:"Faculty Designation",dataIndex:"facultyDesignation",key:"facultyDesignation",render:(t,e,o)=>{var p;return(p=e==null?void 0:e.facultyDesignation)==null?void 0:p.label}},{title:"Faculty Subject",dataIndex:"facultySubject",key:"facultySubject"},{title:"Actions",render:(t,e,o)=>i.createElement("a",{href:`/admin/request/${e==null?void 0:e.rid}`,target:"_blank",rel:"noopener noreferrer"},"View More")}];break;case"listSpecializations":s=[f,R,{title:"Category",dataIndex:"category",sorter:(t,e)=>t.category.label.length-e.category.label.length,key:"category",render:(t,e,o)=>e&&e.category&&e.category.label},{title:"Degree",dataIndex:"degree",sorter:(t,e)=>t.degree.label.length-e.degree.label.length,key:"degree",render:(t,e,o)=>e&&e.degree&&e.degree.label},{title:"Year",dataIndex:"year",key:"year",render:(t,e,o)=>e==null?void 0:e.year}];break;case"listLegalEntities":s=[f,{title:"Entity",dataIndex:"entity",sorter:(t,e)=>t.entity.length-e.entity.length,key:"entity"},{title:"Country",dataIndex:"country",sorter:(t,e)=>t.country.label.length-e.country.label.length,key:"country",render:(t,e,o)=>e&&e.country&&e.country.label}];break;case"session":s=[f,{title:"Academic Year",dataIndex:"ayear",sorter:(t,e)=>t.ayear.length-e.ayear.length,key:"ayear"},{title:"Key",dataIndex:"key",sorter:(t,e)=>t.key.length-e.key.length,key:"key",render:(t,e,o)=>e&&e.key&&e.key},{title:"Version",dataIndex:"version",sorter:(t,e)=>t.version.length-e.version.length,key:"version"}];break;case"university":s=[{title:"Reference IDs",dataIndex:"_id",key:"_id"},R,{title:"State",dataIndex:"state",sorter:(t,e)=>t.state.label.length-e.state.label.length,key:"state",render:(t,e,o)=>e&&e.state&&e.state.label},{title:"Email IDs",dataIndex:"email",key:"email",render:(t,e,o)=>i.createElement(n.lP,{data:e==null?void 0:e.email})}];break;default:s=[f,R];break}return[...s,q]}},17210:function(J,W,l){"use strict";l.r(W),l.d(W,{FeedView:function(){return V}});var n=l(67241),O=l(2388),A=l(34041),L=l(2482),v=l(4191),r=l(2587),B=l(67294),G=l(54573),H=l(94151),K=l(60664),D=l(55171),Q=l.n(D),a=l(67294),le=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,C=(j,E,Y)=>E in j?le(j,E,{enumerable:!0,configurable:!0,writable:!0,value:Y}):j[E]=Y,S=(j,E)=>{for(var Y in E||(E={}))T.call(E,Y)&&C(j,Y,E[Y]);if(g)for(var Y of g(E))N.call(E,Y)&&C(j,Y,E[Y]);return j},d=(j,E)=>oe(j,ie(E)),de=(j,E,Y)=>new Promise((m,be)=>{var te=ce=>{try{b(Y.next(ce))}catch(Oe){be(Oe)}},Te=ce=>{try{b(Y.throw(ce))}catch(Oe){be(Oe)}},b=ce=>ce.done?m(ce.value):Promise.resolve(ce.value).then(te,Te);b((Y=Y.apply(j,E)).next())});const{Option:ye}=A.default,{Paragraph:X,Text:Se}=L.default,ee=j=>{const{category:E="new",refId:Y="new"}=j,[m,be]=(0,B.useState)(!1),[te,Te]=(0,B.useState)({});(0,B.useEffect)(()=>{E!="principal"&&E!="vicePrincipal"?E!="new"&&Y!="new"&&b(j.category,j.refId):ce(E)},[j.refId]);const b=(Oe,De)=>
1de(void 0,null,function*(){be(!0);const{status:Ne,class:Qe,message:Ve,payload:Ue}=yield(0,G.Sx)(Oe,De);if(be(!1),!Ne){(0,H.FB)(null,Ve,Ue,Qe);return}Ue&&Te(Ue)}),ce=Oe=>de(void 0,null,function*(){be(!0);const{status:De,class:Ne,message:Qe,payload:Ve}=yield(0,G.$4)(Oe);Ve&&Te(Ve),be(!1)});if(E!="principal"&&E!="vicePrincipal"&&E!="refundQueue")return a.createElement(v.Z,{title:te.name},m&&a.createElement(O.Z,null),!m&&te&&Y&&a.createElement(V,{type:E,refId:Y,data:te}));if(E==="refundQueue")return a.createElement(a.Fragment,null,te&&a.createElement(v.Z,{title:te&&"Refund Queue"||"Please wait..."}),m&&a.createElement(O.Z,null),!m&&te&&a.createElement(V,{type:E,data:te}));if(E!="refundQueue")return a.createElement(a.Fragment,null,te[0]&&a.createElement(v.Z,{title:te[0].name||"Please wait..."}),m&&a.createElement(O.Z,null),!m&&te&&a.createElement(V,{type:E,data:te}))},V=j=>{const{type:E,refId:Y="new",data:m=[]}=j,be=[];return E=="course"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Course Id"},m._id),a.createElement(r.Z.Item,{label:"Year"},m.year),a.createElement(r.Z.Item,{label:"Order"},m.order),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="landRegisteredName"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},m.order),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="university"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"State"},a.createElement(n.BV,{data:m.state,type:"state"})),a.createElement(r.Z.Item,{label:"District"},a.createElement(n.BV,{data:m.district,type:"district"})),a.createElement(r.Z.Item,{label:"Email"},a.createElement(n.lP,{data:m.email})),a.createElement(r.Z.Item,{label:"Mobile"},a.createElement(n.mZ,{data:m.mobile})),a.createElement(r.Z.Item,{label:"CLE ID"},a.createElement(n.BV,{data:m.cleId})),a.createElement(r.Z.Item,{label:"Address"},a.createElement(n.VB,{data:m})),a.createElement(r.Z.Item,{label:"Affiliation Document of University"},a.createElement(n.jT,d(S({},j),{data:[{label:"Affiliation Document by the University",data:m.pdfAffiliationDocument}]}))),a.createElement(r.Z.Item,{label:"Status"},a.createElement(K.T,{input:m==null?void 0:m.status})),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"}))):E=="cleType"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},m.order),a.createElement(r.Z.Item,{label:"Status"},m.status)):E=="cleAffiliatingUniversityType"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"CLE Affiliaitng University Type Id"},m._id),a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="universityDesignation"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="chairMaterialType"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="judgeChairMaterialType"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="applicationCharges"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="bank"?a.createElement(r.Z,{column:1,bordered:!0}
1,a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="facultyDesignation"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="highestQualification"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="natureOfAppointment"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="ayear"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Order"},a.createElement(n.BV,{data:m.order,type:"order"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="country"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"Country Code"},m.iso2),a.createElement(r.Z.Item,{label:"Alternate Key"},m.iso3),a.createElement(r.Z.Item,{label:"Phone Code"},a.createElement(n.BV,{data:m.phoneCode,type:"code"})),a.createElement(r.Z.Item,{label:"Capital"},m.capital),a.createElement(r.Z.Item,{label:"Currency"},m.currency),a.createElement(r.Z.Item,{label:"Native"},a.createElement(n.BV,{data:m.native,type:"native"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="state"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"State Code"},m._id),a.createElement(r.Z.Item,{label:"Country Id"},m.countryId),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):E=="district"?a.createElement(r.Z,{column:1,bordered:!0},a.createElement(r.Z.Item,{label:"Name"},m.name),a.createElement(r.Z.Item,{label:"District Id"},m._id),a.createElement(r.Z.Item,{label:"State Id"},a.createElement(n.BV,{data:m.stateId,type:"state"})),a.createElement(r.Z.Item,{label:"Status"},a.createElement(n.BV,{data:m.status}))):a.createElement(Q(),{src:m,theme:"google",onAdd:!1,onEdit:!1,onDelete:!1,displayDataTypes:!1,displayObjectSize:!1,collapsed:2})};W.default=ee},66750:function(J,W,l){"use strict";l.d(W,{Xt:function(){return le},k2:function(){return Q}});var n=l(67241),O=l(40110),A=l(71230),L=l(15746),v=l(34041),r=l(45387),B=l(69677),G=l(71577),H=l(67294),K=l(89290),D=l(67294);const Q=({status:g})=>{const T={0:{label:"Waiting list",key:"queueDefault"},1:{label:"Verified",key:"queueReceived"},2:{label:"Completed",key:"queueDispatched"},3:{label:"Insurance Details updated",key:"updateGroupInsurance"},4:{label:"Status Updated",key:"queueStatusUpdated"},5:{label:"ReGenerate",key:"regenerate"},6:{label:"Data Updated after dispatch",key:"dataAfterDispatch"},7:{label:"Application moved to another queue",key:"queueMoved"},8:{label:"Verification Letter Generated",key:"queueCertificateGenerated"},9:{label:"Re Initiated",key:"reInitiated"},10:{label:"Mode Changed",key:"modeChanged"},internal:{label:"Internal Success",key:"internal_success"},default:{label:"Not Initiated",key:"notInitiated"}};return D.createElement(n.BV,{data:T[`${g}`]||T.default,copyable:!1})},a=({type:g})=>{const T={scq:{label:"Standing Committee Queue",key:"scq"},smpq:{label:"Print Queue",key:"smpq"}};return D.createElement(n.BV,{data:T[g]||g})},le=({data:g})=>{const T={marginBottom:1};return D.createElement(A.Z,{align:"top"},D.createElement(L.Z,{span:24},(g==null?void 0:g.dtype)&&D.createElement("div",{style:T},D.createElement("strong",null,"Queue Type:")," ",D.createElement(a,{type:g.dtype})),(g==null?void 0:g.instituteName)&&D.createElement("div",{style:T},D.createElement("strong",null,"Institute.")," ",g==null?void 0:g.instituteName,","," ",D.createElement(n.VB,{title:"",data:g==null?void 0:g.address,copyable:!1,oneLine:!0})),g.subject&&D.createElement("div",{style:T},D.createElement("strong",null,"Subject:")," ",g.subject),g.to_emails&&D.createElement("div",{style:T},D.createElement("strong",null,"To Email:")," ",D.createElement(n.lP,{data:g.to_emails}))))},{Option:oe}=v.default,ie=g=>{const[T]=r.Z.useForm(),N=[{key:"category",label:"Queue Type"}];(0,H.useEffect)(()=>{const S={filterType:"category"};T.setFieldsValue(S)},[T]);const C=S=>{g.onSearch(S)};return D.createElement(r.Z,{form:T,onFinish:C},D.createElement(r.Z.Item,{noStyle:!0},D.createElement(B.default.Group,{compact:!0},D.createElement(r.Z.Item,{name:"filterType"},D.createElement(v.default,{placeholder:"",style:{minWidth:"190px"},showSearch:!0,allowClear:!0},N&&N.map(S=>D.createElement(oe,{key:S.key,value:S.key},S.label)))),D.createElement(r.Z.Item,{name:"filterValue",style:{minWidth:"190px"}},D.createElement(K.DispatchType,{placeHolder:"Select Queue Type"})),D.createElement(G.Z,{key:"5",htmlType:"submit",icon:D.createElement(O.Z,null)}))))};W.ZP=ie},48983:function(J,W,l){var n=l(40371),O=n("length");J.exports=O},18190:function(J){var W=9007199254740991,l=Math.floor;function n(O,A){var L="";if(!O||A<1||A>W)return L;do A%2&&(L+=O),A=l(A/2),A&&(O+=O);while(A);return L}J.exports=n},78302:function(J,W,l){var n=l(18190),O=l(80531),A=l(40180),L=l(62689),v=l(88016),r=l(83140),B=Math.ceil;function G(H,K){K=K===void 0?" ":O(K);var D=K.length;if(D<2)return D?n(K,H):K;var Q=n(K,B(H/v(K)));return L(K)?A(r(Q),0,H).join(""):Q.slice(0,H)}J.exports=G},88016:function(J,W,l){var n=l(48983),O=l(62689),A=l(21903);function L(v){return O(v)?A(v):n(v)}J.exports=L},21903:function(J){var W="\\ud800-\\udfff",l="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",O="\\u20d0-\\u20ff",A=l+n+O,L="\\ufe0e\\ufe0f",v="["+W+"]",r="["+A+"]",B="\\ud83c[\\udffb-\\udfff]",G="(?:"+r+"|"+B+")",H="[^"+W+"]",K="(?:\\ud83c[\\udde6-\\uddff]){2}",D="[\\ud800-\\udbff][\\udc00-\\udfff]",Q="\\u200d",a=G+"?",le="["+L+"]?",oe="(?:"+Q+"(?:"+[H,K,D].join("|")+")"+le+a+")*",ie=le+a+oe,g="(?:"+[H+r+"?",r,K,D,v].join("|")+")",T=RegExp(B+"(?="+B+")|"+g+ie,"g");function N(C){for(var S=T.lastIndex=0;T.test(C);)++S;return S}J.exports=N},11726:function(J,W,l){var n=l(78302),O=l(88016),A=l(40554),L=l(79833);function v(r,B,G){r=L(r),B=A(B);var H=B?O(r):0;return B&&H<B?r+n(B-H,G):r}J.exports=v},32475:function(J,W,l){var n=l(78302),O=l(88016),A=l(40554),L=l(79833);function v(r,B,G){r=L(r),B=A(B);var H=B?O(r):0;return B&&H<B?n(B-H,G)+r:r}J.exports=v},18601:function(J,W,l){var n=l(14841),O=1/0,A=17976931348623157e292;function L(v){if(!v)return v===0?v:0;if(v=n(v),v===O||v===-O){var r=v<0?-1:1;return r*A}return v===v?v:0}J.exports=L},40554:function(J,W,l){var n=l(18601);function O(A){var L=n(A),v=L%1;return L===L?v?L-v:L:0}
1J.exports=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.