PageSourceSearch

https://accounts.most.gov.bd/static/js/5267.55e706b7.chunk.js

js most.gov.bd collected 2026-09-25 02:42:36 UTC 27,190 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkUserPanel_MoST=self.webpackChunkUserPanel_MoST||[]).push([[5267,8836,369],{21295:function(e,t,n){var i=n(1413),a=n(44925),l=(n(29867),n(5068)),o=n(41167),r=n(52563),s=n(49889),c=n(84527),d=n(20602),u=n(92834),m=["bulkAction","handleCallbackFunc"];t.Z=function(e){var t=e.bulkAction,n=e.handleCallbackFunc,h=(0,a.Z)(e,m),f=(0,d.$)().t,p=(0,c.H)(),g=p.isPermissionLoaded,x=p.hasPermission,b=(0,u.jsx)(l.Z,{children:t.action_list.map((function(e,t){if(g&&x(e.permission))return(0,u.jsxs)(l.Z.Item,{children:["item"==e.type&&(0,u.jsx)(o.Z,{type:"text",onClick:function(){return n("bulkAction",e.action)},children:f(e.title)}),"load_drawer_view"==e.type&&(0,u.jsx)(o.Z,{type:"text",children:e.component}),"component"==e.type&&(0,u.jsx)(e.component,(0,i.Z)({handleCallbackFunc:n},h))]},"".concat(t))}))});return g&&x(t.permission)?(0,u.jsx)("div",{className:"filter-box-right button-box bulk-action-button-box",children:(0,u.jsx)(r.Z,{overlay:b,trigger:["click"],placement:"bottomRight",children:(0,u.jsx)(o.Z,{children:(0,u.jsx)(s.Z,{})})})}):(0,u.jsx)(u.Fragment,{})}},80654:function(e,t,n){var i=n(1413),a=n(44925),l=n(29867),o=n(16006),r=n(39947),s=n(41167),c=n(20602),d=n(2346),u=n(1055),m=n(92834),h=["formRef","drawerWidth","modalTitle","loading","isShowForm","children","component","handleCallbackFunc"],f=function(e){var t=(0,c.$)().t,n=(0,u.Z)().isMobile,f=e.formRef,p=e.drawerWidth,g=e.modalTitle,x=e.loading,b=e.isShowForm,v=(e.children,e.component),j=e.handleCallbackFunc,w=(0,a.Z)(e,h);return(0,m.jsx)(l.Fragment,{children:(0,m.jsx)(o.Z,{width:n?"100%":p||"60%",className:"form-page-drawer form-page-drawer-example",title:(0,m.jsxs)("b",{children:[t(g),"\xa0\xa0",x&&(0,m.jsx)(r.Z,{size:"small"})]}),visible:b,onClose:function(e){return j(null,"hideForm")},footer:[(0,m.jsx)(s.Z,{onClick:function(e){return j(null,"hideForm")},children:t("Cancel")},"cancel"),(0,m.jsx)(s.Z,{type:"primary",loading:x,onClick:function(){f.submit()},children:t("Submit")},"submit")],children:(0,m.jsx)(d.Z,{className:"form-page-drawer-scrollbar",children:(0,m.jsx)(v,(0,i.Z)({loading:x,formRef:f,handleCallbackFunc:j},w))})})})};t.Z=l.memo(f)},12502:function(e,t,n){var i=n(29439),a=n(29867),l=n(45661),o=n(10018),r=n(48743),s=n(99295),c=n(92834),d={itemData:{id:null},piResearcherProfileData:{id:null},aiResearcherProfileData:{id:null},paymentData:{id:null,status:null,amount:null,ekpay_transaction_id:null,ekpay_challan_trx_id:null,challan_amount:null,challan_date:null},loading:!1},u=function(e){var t=e.applicationId,n=(0,a.useState)(d.itemData),u=(0,i.Z)(n,2),m=u[0],h=u[1],f=(0,a.useState)(d.piResearcherProfileData),p=(0,i.Z)(f,2),g=p[0],x=p[1],b=(0,a.useState)(d.aiResearcherProfileData),v=(0,i.Z)(b,2),j=v[0],w=v[1],Z=(0,a.useState)(d.loading),S=(0,i.Z)(Z,2),_=S[0],C=S[1],k=(0,a.useState)(d.paymentData),F=(0,i.Z)(k,2),y=F[0],N=F[1],P=(0,a.useState)(!1),I=(0,i.Z)(P,2),R=I[0],D=I[1],E=(0,s.U)(),A=E.handleErrorMessage;E.handleSuccessMessage,E.showErrorMessage;(0,a.useEffect)((function(){t&&M()}),[t]),(0,a.useEffect)((function(){m.id&&T()}),[m.id]);var M=function(){return new Promise((function(e,n){C(!0),r.CVO.getById(t).then((function(t){var n,i;h(t.data.data),x((null===(n=t.data.data)||void 0===n?void 0:n.pi_application_profile)||d.piResearcherProfileData),w((null===(i=t.data.data)||void 0===i?void 0:i.ai_application_profile)||d.aiResearcherProfileData),C(!1),e(t)})).catch((function(e){A(e),C(!1),n(e)}))}))},T=function(){return new Promise((function(e,t){D(!0);var n={record_id:m.id,record_type:"SPECIAL_RESEARCH_GRANT_APPLICATION_FEE",service_id:m.service_id,status:["PENDING","APPROVED"]};r.n9q.paymentHistoryByRecordInfo(n).then((function(t){N(t.data.data),D(!1),e(t)})).catch((function(e){D(!1),t(e)}))}))};return(0,c.jsx)(l.Z,{loading:_,btnText:"View Application",btnType:"button",btnClass:"btn btn-dark mb-2 btn-color-one",modalBtnText:"Print",modalTitle:"Print Preview",applicationData:m,loadingPaymentData:R,paymentData:y,piResearcherProfileData:g,aiResearcherProfileData:j,component:o.Z})};t.Z=a.memo(u)},88836:function(e,t,n){n.r(t),n.d(t,{default:function(){return ke}});var i=n(93433),a=n(1413),l=n(74165),o=n(15861),r=n(29439),s=n(29867),c=n(84670),d=n(50383),u=n(42647),m=n(92184),h=n(3706),f=n(66738),p=n(41167),g=n(72291),x=n(111),b=n(48743),v=n(22578),j=n(63663),w=n(86934),Z=n(27293),S=n(44925),_=n(34868),C=n(39947),k=n(2346),F=n(20602),y=n(1055),N=n(92834),P=["loading","formRef","drawerWidth","modalTitle","submitBtnText","isShowFormModal","component","handleCallbackFunc"],I=function(e){var t=(0,F.$)().t,n=(0,y.Z)().isMobile,i=e.loading,l=e.formRef,o=e.drawerWidth,r=e.modalTitle,c=e.submitBtnText,d=e.isShowFormModal,u=e.component,m=e.handleCallbackFunc,h=(0,S.Z)(e,P);return(0,N.jsx)(s.Fragment,{children:(0,N.jsx)(_.Z,{width:n?"100%":o||"60%",className:"form-page-modal form-page-modal-workflow-action",title:(0,N.jsxs)("b",{children:[t(r),"\xa0\xa0",i&&
1(0,N.jsx)(C.Z,{size:"small"})]}),maskClosable:!1,centered:!0,open:d,onCancel:function(e){return m(null,"hideForm")},footer:[(0,N.jsx)(p.Z,{onClick:function(e){return m(null,"hideForm")},children:"Cancel"},"cancel"),(0,N.jsx)(p.Z,{type:"primary",loading:i,onClick:function(){l.submit()},children:c||t("Submit")},"submit")],children:(0,N.jsx)(k.Z,{autoHeight:!0,autoHeightMax:480,className:"form-page-modal-scrollbar",children:(0,N.jsx)(u,(0,a.Z)({loading:i,formRef:l,handleCallbackFunc:m},h))})})})},R=s.memo(I),D=n(51383),E=n(68640),A={labelCol:{xs:{span:24},sm:{span:24}},wrapperCol:{xs:{span:24},sm:{span:24}}},M=function(e){var t=h.Z.TextArea,n=e.formRef,i=e.initialValues,l=e.confirmText,o=(e.fileList,e.setFileList,e.handleChange),r=e.handleSubmit,c=e.handleSubmitFailed;return(0,N.jsx)(s.Fragment,{children:(0,N.jsx)("div",{className:"form-page-content form-page-content-workflow-transition",children:(0,N.jsx)(d.Z,(0,a.Z)((0,a.Z)({},A),{},{form:n,name:"workflowTransitionForm",scrollToFirstError:!0,initialValues:i,onValuesChange:o,onFinish:r,onFinishFailed:c,children:(0,N.jsx)(j.Z,{children:(0,N.jsxs)(w.Z,{span:24,children:[l&&(0,N.jsx)("div",{className:"form-item-row",children:(0,N.jsx)("h3",{children:l})}),(0,N.jsx)("div",{className:"form-item-row",children:(0,N.jsx)(d.Z.Item,{label:"Comment",name:"comment",rules:E.j.required,children:(0,N.jsx)(t,{autoSize:{minRows:5,maxRows:8}})})})]})})}))})})},T=s.memo(M),z=[],V={name_en:null,name_bn:null,status:1},O=!1,L=function(e){var t=(0,Z.J)().t,n=e.applicationData,i=e.handleActionSendBack,a=e.handleCallbackFunc,l=(0,D.c)(V),o=l.formRef,c=l.initialValues,d=l.isSubmitting,u=(l.setIsSubmitting,l.handleChange),m=l.handleSubmitFailed,h=l.resetForm,f=(0,s.useState)(!1),g=(0,r.Z)(f,2),x=g[0],b=g[1],v=(0,s.useState)(Date.now()),j=(0,r.Z)(v,2),w=j[0],S=j[1],_=(0,s.useState)(z),C=(0,r.Z)(_,2),k=C[0],F=C[1],y=(0,s.useState)(O),P=(0,r.Z)(y,2),I=P[0];P[1];(0,s.useEffect)((function(){h()}),[w]);var E=function(){S(Date.now())},A=function(e,t,n,i){"hideForm"===t?b(!1):a&&a(e,t,n,i)},M=function(e){var t={comment:e.comment,files:k.map((function(e){return e.file_id})).join(",")};i(t),A(null,"hideForm")};return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(R,{loading:I,formRef:o,modalTitle:"Send Back",submitBtnText:"Yes, Send Back",confirmText:"Are you sure to send back this application?",isSubmitting:d,isShowFormModal:x,initialValues:c,applicationData:n,fileList:k,setFileList:F,component:T,handleChange:u,handleSubmit:function(e){M(e)},handleSubmitFailed:m,handleCallbackFunc:A}),(0,N.jsx)(p.Z,{type:"primary",className:"btn btn-submit btn-transition",onClick:function(){return b(!0),void E()},children:t("Send Back")})]})},B=s.memo(L),$=n(12502),W=n(99295),H=function(e){var t=e.itemData,n=e.handleCallbackFunc,i=v.Z.Item,l=(0,Z.J)().t,o=(0,W.U)(),c=o.handleErrorMessage,d=(o.handleSuccessMessage,o.showErrorMessage,(0,s.useState)({})),u=(0,r.Z)(d,2),h=u[0],f=u[1],g=(0,s.useState)({}),x=(0,r.Z)(g,2),S=x[0],_=x[1];(0,s.useEffect)((function(){t.id&&(f(null===t||void 0===t?void 0:t.pi_application_profile),_(null===t||void 0===t?void 0:t.ai_application_profile))}),[t.id]);var C=function(e,t){"RECOMMEND"===e?m.$z.confirm(l("Recommend"),l("Are you sure you want to recommend?"),t,k,"Approve"):"REJECTED"===e&&m.$z.confirm(l("Reject"),l("Are you sure you want to reject?"),t,F,"Reject")},k=function(e,i){if(e&&"ok"===i){var a={status:"SUBMITTED",application_id:e,institute_organization_id:t.institute_organization_id};b.zPW.departmentHeadRecommend(a).then((function(e){n(null,"reloadView"),n(null,"reloadListing")})).catch((function(e){c(e)}))}},F=function(e,t){if(e&&"ok"===t){b.zPW.updatePartial(e,{status:"NOT_RECOMMENDED"}).then((function(e){n(null,"reloadView"),n(null,"reloadListing")})).catch((function(e){c(e)}))}};return(0,N.jsx)("div",{className:"view-page-content view-page-content-nst-fellowship",children:(0,N.jsx)("div",{className:"record-detail-content rounded",children:(0,N.jsxs)(j.Z,{gutter:[16,16],children:["RECOMMENDATION_PENDING"===t.status&&(0,N.jsx)(w.Z,{xs:24,md:24,children:(0,N.jsxs)("div",{className:"actions",children:[(0,N.jsx)(p.Z,{type:"primary",className:"btn btn-submit btn-transition",onClick:function(e){return C("RECOMMEND",t.id)},children:"Recommend"}),(0,N.jsx)(p.Z,{type:"primary",className:"btn btn-submit btn-transition",style:{marginLeft:10},onClick:function(e){return C("REJECTED",t.id)},children:"Reject"}),"\xa0\xa0\xa0",(0,N.jsx)(B,{applicationData:t,handleActionSendBack:function(e){var i=(0,a.Z)((0,a.Z)({},e),{},{id:t.id,pi_researcher_profile_id:t.pi_researcher_profile_id,ai_researcher_profile_id:t.ai_researcher_profile_id,created_by:t.created_by,status:t.status});b.zPW.sendBackApplication(i);b.zPW.updatePartial(t.id,{status:"DRAFT",current_active_step:5}).then((function(e){n(null,"reloadView"),n(null,"reloadListing")})).catch((function(e){c(e)}))},handleCallbackFunc:n})]})}),(0,N.jsx)(w.Z,{xs:24,md:24,children:(0,N.jsxs)("div",{className:"record-detail-content-left",children:[(0,N.jsx)("h3",{className:"fw-bold blue-color-text",children:"Project Information: "}),(0,N.jsxs)(v.Z,{bordered:!0,column:{xxl:1,xl:1,lg:1,md:1,sm:1,xs:1},children:[(0,N.jsx)(i,{label:l("Project Title"),children:t.project_title}),(0,N.jsx)(i,{label:l("Area of Research"),children:t.research_areas_en}),(0,N.jsx)(i,{label:l("Institute/Organization"),children:t.institute_name}),(0,N.jsx)(i,{label:l("Department"),children:t.research_performed_department})]}),(0,N.jsx)("h3",{className:"fw-bold blue-color-text",children:"Principal Investigator (PI): "}),(0,N.jsxs)(v.Z,{bordered:!0,column:{xxl:1,xl:1,lg:1,md:1,sm:1,xs:1},children:[(0,N.jsx)(i,{label:l("Name"),children:null===h||void 0===h?void 0:h.name_en}),(0,N.jsx)(i,{label:l("Gender"),children:null===h||void 0===h?void 0:h.gender}
1),(0,N.jsx)(i,{label:l("Date of Birth"),children:m.IM.formatDate(null===h||void 0===h?void 0:h.dob)}),(0,N.jsx)(i,{label:l("Position"),children:null===h||void 0===h?void 0:h.position_en}),(0,N.jsx)(i,{label:l("Position held (since)"),children:null===h||void 0===h?void 0:h.position_held}),(0,N.jsx)(i,{label:l("E-mail"),children:null===h||void 0===h?void 0:h.email}),(0,N.jsx)(i,{label:l("Mobile Number"),children:null===h||void 0===h?void 0:h.mobile_number})]}),(0,N.jsx)("h3",{className:"fw-bold blue-color-text",children:"Associate Investigator (AI): "}),(0,N.jsxs)(v.Z,{bordered:!0,column:{xxl:1,xl:1,lg:1,md:1,sm:1,xs:1},children:[(0,N.jsx)(i,{label:l("Name"),children:null===S||void 0===S?void 0:S.name_en}),(0,N.jsx)(i,{label:l("Gender"),children:null===S||void 0===S?void 0:S.gender}),(0,N.jsx)(i,{label:l("Date of Birth"),children:m.IM.formatDate(null===S||void 0===S?void 0:S.dob)}),(0,N.jsx)(i,{label:l("Position"),children:null===S||void 0===S?void 0:S.position_en}),(0,N.jsx)(i,{label:l("Position held (since)"),children:null===S||void 0===S?void 0:S.position_held}),(0,N.jsx)(i,{label:l("E-mail"),children:null===S||void 0===S?void 0:S.email}),(0,N.jsx)(i,{label:l("Mobile Number"),children:null===S||void 0===S?void 0:S.mobile_number})]}),(0,N.jsx)("div",{className:"d-flex flex-column mt-3 text-center",children:t.id&&(0,N.jsx)($.Z,{applicationId:t.id})})]})})]})})})},U=s.memo(H),q=n(68116),K="Progress Report Info",G={id:null},J=!1,Y=function(e){var t=e.entityId,n=e.reloadView,i=e.isShowView,a=e.handleCallbackFunc,l=K,o=(0,s.useState)(G),c=(0,r.Z)(o,2),d=c[0],u=c[1],m=(0,s.useState)(J),h=(0,r.Z)(m,2),f=h[0],p=h[1],g=(0,W.U)(),x=g.handleErrorMessage;g.handleSuccessMessage,g.showErrorMessage;(0,s.useEffect)((function(){u(G),t&&i&&v()}),[t,n]);var v=function(){return new Promise((function(e,n){p(!0),b.zPW.getById(t).then((function(t){u(t.data.data),p(!1),e(t)})).catch((function(e){x(e),p(!1),n(e)}))}))};return(0,N.jsx)(q.Z,{drawerWidth:"60%",loading:f,reloadView:n,isShowView:i,modalTitle:l,itemData:d,component:U,handleCallbackFunc:a})},Q=s.memo(Y),X=n(46709),ee={COMMON_ACTION:{VIEW:{type:"item",title:"View Department Head Recommendation",action:"view",link:{to:""},permission:"",component:Q,className:"grid-view-action",icon:""}},LIST_ITEM_ACTION:[{type:"item",title:"View",action:"active",link:{to:""},permission:"",component:X.Z,className:"grid-view-action",icon:""}],BULK_ACTION:{permission:"grant:departmentHeadRecommendation:multiSelect",action_list:[{type:"item",title:"Mark as Active",action:"active",link:{to:""},component:"",className:"grid-view-action",icon:(0,N.jsx)(x.Z,{})},{type:"item",title:"Mark as Inactive",action:"inactive",link:{to:""},component:"",className:"grid-view-action",icon:(0,N.jsx)(x.Z,{})}]}},te=n(21295),ne=function(e){var t=(0,F.$)().t,n=h.Z.Search,i=f.Z.Option,a=e.filters,l=e.handleOnChanged,o=e.handleCallbackFunc;return(0,N.jsxs)("div",{className:"listing-page-filter",children:[(0,N.jsx)("div",{className:"filter-section filter-top",children:(0,N.jsx)("div",{className:"page-heading-title",children:(0,N.jsx)("h1",{className:"m-0 fs-3 fw-bold page-title-dashboard",children:t("\u09aa\u09cd\u09b0\u09a4\u09bf\u09b7\u09cd\u09a0\u09be\u09a8 \u09aa\u09cd\u09b0\u09a7\u09be\u09a8 / \u09ac\u09bf\u09ad\u09be\u0997\u09c0\u09af\u09bc \u09aa\u09cd\u09b0\u09a7\u09be\u09a8\u09c7\u09b0 \u09b8\u09c1\u09aa\u09be\u09b0\u09bf\u09b6")})})}),(0,N.jsxs)("div",{className:"filter-section filter-bottom",children:[(0,N.jsxs)("div",{className:"filter-bottom-left",children:[(0,N.jsx)("div",{className:"filter-box-left input-box search-box",children:(0,N.jsx)(d.Z.Item,{name:"search",children:(0,N.jsx)(n,{placeholder:t("Search"),onSearch:function(e){return l("search",e,"")}})})}),(0,N.jsx)("div",{className:"filter-box-left select-box status-box",children:(0,N.jsxs)(d.Z.Item,{name:"status",children:[(0,N.jsxs)(p.Z,{children:[t("Status"),":"]}),(0,N.jsxs)(f.Z,{showSearch:!0,dropdownMatchSelectWidth:100,defaultValue:a.status,optionFilterProp:"children",onChange:function(e){return l("filter_status",e)},filterOption:function(e,t){return(null===t||void 0===t?void 0:t.children.toLowerCase().indexOf(e.toLowerCase()))>=0},children:[(0,N.jsx)(i,{value:"",children:t("All")}),(0,N.jsx)(i,{value:"0",children:t("Pending")}),(0,N.jsx)(i,{value:"1",children:t("Accepted")}),(0,N.jsx)(i,{value:"2",children:t("Rejected")})]})]})}),(0,N.jsx)("div",{className:"filter-box-left button-box reset-button-box",children:(0,N.jsx)(p.Z,{type:"link",icon:(0,N.jsx)(g.ResetIcon,{}),onClick:function(e){return o(null,"resetListing")},children:t("Reset")})})]}),(0,N.jsxs)("div",{className:"filter-bottom-right",children:[(0,N.jsx)("div",{className:"filter-box-right button-box reload-button-box",children:(0,N.jsx)(p.Z,{type:"link",onClick:function(e){return o(null,"reloadListing")},children:(0,N.jsx)(g.RefreshIcon,{})})}),(0,N.jsx)(te.Z,{bulkAction:ee.BULK_ACTION,handleCallbackFunc:o})]})]})]})},ie=s.memo(ne),ae=n(80718),le=n(12842),oe=function(e){var t=(0,Z.J)().t,n=e.loading,i=e.listData,a=e.selectedRowKeys,l=e.handleOnChanged,o=e.handleTableChange,r=e.handleCallbackFunc,s=[{dataIndex:"applicant_name_en",key:"applicant_name_en",title:t("Researcher Name"),render:function(e,t,n){return(0,N.jsx)(X.Z,{entity
1Id:t.id,actionItem:ee.COMMON_ACTION.VIEW,defaultViewText:e,handleCallbackFunc:r,children:(0,N.jsx)("span",{className:"grid-row-view-action",children:e})})}},{dataIndex:"project_title",key:"project_title",title:t("Project Title"),sorter:!0},{dataIndex:"created_at",key:"created_at",title:t("Submission Date"),sorter:!0,render:function(e,t,n){return m.IM.formatDate(e,"DD MMMM, YYYY")}},{dataIndex:"status",key:"status",title:t("Status"),sorter:!0,render:function(e,t,n){return"NOT_RECOMMENDED"===e||"RECOMMENDATION_PENDING"===e?e:"RECOMMENDED"}},{dataIndex:"action",key:"action",title:t("Action"),render:function(e,t,n){return(0,N.jsx)(le.Z,{entityId:t.id,actionList:ee.LIST_ITEM_ACTION,handleCallbackFunc:r})}}];return(0,N.jsx)("div",{className:"listing-page-content listing-page-content-progressReport",children:(0,N.jsx)(ae.Z,{className:"table-layout",rowSelection:!0,rowSelectionPermission:"progressReport:multiSelect",selectedRowKeys:a,dataSource:i,columns:s,loading:n,handleOnChanged:l,onChange:o})})},re=s.memo(oe),se=n(45194),ce=n(46299),de=n(55591),ue=function(e){var t=e.pagination,n=e.totalCount,i=e.handleOnChanged;return(0,N.jsx)("div",{className:"listing-page-pagination",children:(0,N.jsxs)(j.Z,{children:[(0,N.jsx)(w.Z,{span:12,children:(0,N.jsx)("div",{className:"footer-total-items",children:(0,N.jsx)(de.Z,{currentPage:t.currentPage,pageSize:t.pageSize,total:n})})}),(0,N.jsx)(w.Z,{span:12,className:"right",children:(0,N.jsx)(se.Z,{pageSizeOptions:ce.I3,currentPage:t.currentPage,pageSize:t.pageSize,total:n,onChangePage:function(e,t){return i("pagination_change_page_and_size",e,t)}})})]})})},me=s.memo(ue),he=n(80654),fe={labelCol:{xs:{span:24},sm:{span:24}},wrapperCol:{xs:{span:24},sm:{span:24}}},pe=function(e){var t=f.Z.Option,n=h.Z.TextArea,i=(0,F.$)().t,l=e.formRef,o=e.initialValues,r=e.handleChange,c=e.handleSubmit,u=e.handleSubmitFailed;return(0,N.jsx)(s.Fragment,{children:(0,N.jsx)("div",{className:"form-page-content form-page-content-researcherConsent",children:(0,N.jsx)(d.Z,(0,a.Z)((0,a.Z)({},fe),{},{form:l,name:"researcherConsentForm",scrollToFirstError:!0,initialValues:o,onValuesChange:r,onFinish:c,onFinishFailed:u,children:(0,N.jsx)(j.Z,{children:(0,N.jsxs)(w.Z,{xs:24,md:24,children:[(0,N.jsx)(d.Z.Item,{label:i("Remarks"),name:"remark",children:(0,N.jsx)(n,{allowClear:!0})}),(0,N.jsx)(d.Z.Item,{label:"Status",name:"action_status",children:(0,N.jsxs)(f.Z,{placeholder:"--"+i("Select")+"--",children:[(0,N.jsx)(t,{value:0,children:i("Pending")},"status-0"),(0,N.jsx)(t,{value:1,children:i("Accept")},"status-1"),(0,N.jsx)(t,{value:2,children:i("Reject")},"status-2")]})})]})})}))})})},ge=s.memo(pe),xe="Create Example",be={},ve={remark:null,action_status:null},je=!0,we=!1,Ze=function(e){(0,F.$)().t;var t=e.entityId,n=e.reloadForm,i=e.isShowForm,a=e.handleCallbackFunc,l=(0,D.c)(ve),o=l.formRef,c=l.initialValues,d=l.isSubmitting,u=l.setIsSubmitting,m=l.handleChange,h=l.handleSubmitFailed,f=l.resetForm,p=(l.setErrors,(0,W.U)()),g=p.handleErrorMessage,x=p.handleSuccessMessage,v=(p.showErrorMessage,(0,s.useState)(xe)),j=(0,r.Z)(v,2),w=j[0],Z=j[1],S=(0,s.useState)(be),_=(0,r.Z)(S,2),C=_[0],k=_[1],y=(0,s.useState)(je),P=(0,r.Z)(y,2),I=P[0],R=P[1],E=(0,s.useState)(we),A=(0,r.Z)(E,2),M=A[0],T=A[1];(0,s.useEffect)((function(){t&&i?(R(!1),Z("Update Request"),f(),z()):(f(),Z(xe),R(je))}),[t,n]);var z=function(){return new Promise((function(e,n){T(!0),b.zPW.getById(t).then((function(t){k(t.data.data);var n={remark:t.data.data.remark,action_status:t.data.data.action_status};m(n),o.setFieldsValue(n),T(!1),e(t.data.data)})).catch((function(e){g(e),T(!1),n(e)}))}))},V=function(e){return new Promise((function(n,i){T(!0),u(!0);var l={remark:e.remark,action_status:e.action_status};b.zPW.update(t,l).then((function(e){x(e),a(null,"hideForm"),a(null,"updateListItem",t,e.data.data),a(null,"reloadView"),T(!1),u(!1),n(e)})).catch((function(e){g(e),T(!1),u(!1),i(e)}))}))};return(0,N.jsx)("div",{className:"form-page-container form-page-container-example",children:(0,N.jsx)(he.Z,{loading:M,isNew
1Record:I,itemData:C,modalTitle:w,isSubmitting:d,isShowForm:i,formRef:o,initialValues:c,component:ge,handleChange:m,handleSubmit:function(e){t&&V(e)},handleSubmitFailed:h,handleCallbackFunc:a})})},Se=s.memo(Ze),_e=n(43576),Ce={search:"",entity:{},entityId:null,listData:[],filters:{status:""},pagination:{currentPage:1,pageSize:10},totalCount:0,selectedRowKeys:[],sort:"id desc",view:null,loading:!1,isShowView:!1,isShowForm:!1,fields:{},bulkAction:{action:"",field:"",value:"",ids:[]}},ke=function(){var e,t=(0,F.$)().t,n=(0,c.s0)(),h=(0,c.TH)(),f=(0,u.parse)(h.search),p=(0,s.useRef)({}),g=(0,s.useContext)(_e.Vo).institutionHeadOrganizationId,x={search:(null===f||void 0===f?void 0:f.q)||Ce.search,filters:{status:(null===f||void 0===f?void 0:f.status)||Ce.filters.status},pagination:{currentPage:(null===f||void 0===f?void 0:f.page)||Ce.pagination.currentPage,pageSize:(null===f||void 0===f?void 0:f.pageSize)||Ce.pagination.pageSize},sort:(null===f||void 0===f?void 0:f.sort)||Ce.sort,view:(null===f||void 0===f?void 0:f.view)||Ce.view,isShowView:(null===f||void 0===f?void 0:f.isShowView)||Ce.isShowView,isShowForm:(null===f||void 0===f?void 0:f.isShowForm)||Ce.isShowForm,entity:(null===f||void 0===f?void 0:f.entity)||Ce.entity,entityId:(null===f||void 0===f?void 0:f.entityId)||Ce.entityId},v=(0,D.c)({search:x.search,status:x.filters.status}),j=v.formRef,w=v.initialValues,Z=v.resetForm,S=(0,W.U)(),_=S.handleErrorMessage,C=S.handleSuccessMessage,k=S.showErrorMessage,y=(0,s.useState)(Ce.listData),P=(0,r.Z)(y,2),I=P[0],R=P[1],E=(0,s.useState)(x.view),A=(0,r.Z)(E,2),M=A[0],T=A[1],z=(0,s.useState)(x.search),V=(0,r.Z)(z,2),O=V[0],L=V[1],B=(0,s.useState)(x.filters),$=(0,r.Z)(B,2),H=$[0],U=$[1],q=(0,s.useState)(x.sort),K=(0,r.Z)(q,2),G=K[0],J=K[1],Y=s.useState(x.pagination),X=(0,r.Z)(Y,2),ee=X[0],te=X[1],ne=(0,s.useState)(Ce.totalCount),ae=(0,r.Z)(ne,2),le=ae[0],oe=ae[1],se=(0,s.useState)(Ce.loading),ce=(0,r.Z)(se,2),de=ce[0],ue=ce[1],he=(0,s.useState)(x.entity),fe=(0,r.Z)(he,2),pe=(fe[0],fe[1]),ge=(0,s.useState)(x.entityId),xe=(0,r.Z)(ge,2),be=xe[0],ve=xe[1],je=(0,s.useState)(x.isShowView),we=(0,r.Z)(je,2),Ze=we[0],ke=we[1],Fe=(0,s.useState)(x.isShowForm),ye=(0,r.Z)(Fe,2),Ne=ye[0],Pe=ye[1],Ie=s.useState(Ce.selectedRowKeys),Re=(0,r.Z)(Ie,2),De=Re[0],Ee=Re[1],Ae=s.useState(Ce.bulkAction),Me=(0,r.Z)(Ae,2),Te=Me[0],ze=Me[1],Ve=(0,s.useState)(Date.now()),Oe=(0,r.Z)(Ve,2),Le=Oe[0],Be=Oe[1],$e=(0,s.useState)(Date.now()),We=(0,r.Z)($e,2),He=We[0],Ue=We[1],qe=(0,s.useState)(Date.now()),Ke=(0,r.Z)(qe,2),Ge=Ke[0],Je=Ke[1];(0,s.useEffect)((function(){g&&Ye()}),[g,O,H,G,ee,Le]),(0,s.useEffect)((function(){tt()}),[be,Ze,Ne]),(0,s.useEffect)((function(){""!==Te.action&&et()}),[Te]);var Ye=function(){return(e=e||(0,o.Z)((0,l.Z)().mark((function e(){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tt();case 2:return e.next=4,it();case 4:return e.next=6,Qe();case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},Qe=function(){return new Promise((function(e,t){ue(!0),b.zPW.departmentHeadApplicationList(p.current).then((function(t){R(t.data.data.results),oe(t.data.data.meta.totalCount),ue(!1),e(t)})).catch((function(e){_(e),ue(!1),t(e)}))}))},Xe=function(e,t){return new Promise((function(n,i){e&&"ok"===t&&(ue(!0),b.zPW.delete(e).then((function(e){C(e),ct(),ot(),ue(!1),n(e)})).catch((function(e){_(e),ue(!1),i(e)})))}
1))},et=function(){return new Promise((function(e,t){ue(!0);var n=(0,a.Z)({},Te);b.zPW.bulk(n).then((function(t){ot(),ue(!1),e(t)})).catch((function(e){_(e),ue(!1),t(e)}))}))},tt=function(){var e={};O&&(e.q=O),H.status&&(e.status=H.status),G!==Ce.sort&&(e.sort=G),ee.currentPage!==Ce.pagination.currentPage&&(e.page=ee.currentPage),ee.pageSize!==Ce.pagination.pageSize&&(e.pageSize=ee.pageSize),M!==Ce.view&&(e.view=M),be&&(e.entityId=be),Ze&&(e.isShowView=Ze),Ne&&(e.isShowForm=Ne),Object.keys(e).length?n({search:u.stringify(e)}):n("".concat(h.pathname))},nt=function(){var e="1 eq 1";return e+=" AND institute_organization_id eq '"+g+"'"},it=function(){p.current={$select:"",$search:O,$filter:nt(),$queryParams:{},$expand:"",$orderby:"date-desc"===G?"id desc":G,$top:ee.pageSize,$skip:ee.pageSize*(ee.currentPage-1)}},at=function(e,t){e&&"ok"===t&&ze((0,a.Z)((0,a.Z)({},Te),{},{action:"delete",ids:e}))},lt=function(e,n){var i=I.find((function(e){return e.id===Number(n)}));pe(i),"view"===e?(ve(n),ke(!0)):"edit"===e?(ve(n),Pe(!0),rt()):"delete"===e&&m.$z.confirm(t("Delete DepartmentHeadRecommendation"),t("Are you sure you want to delete this progressReport?"),n,Xe,"Delete")},ot=function(){Be(Date.now())},rt=function(){Je(Date.now())},st=function(e,t,n){"filter_status"===e?U((0,a.Z)((0,a.Z)({},H),{},{status:t})):"selected_row_keys"===e?Ee(t):"search"===e?L(t):"view_type"===e?T(t):"pagination_change_page_and_size"===e&&te((0,a.Z)((0,a.Z)({},ee),{},{currentPage:t,pageSize:n}))},ct=function(){ke(!1),ve(null)},dt=function(e,n,l,o){null!==e&&void 0!==e&&""!==e||(e=e||"singleAction"),"singleAction"==e&&"add"==n?lt("add"):"singleAction"==e&&"edit"==n&&lt("edit",l),"singleAction"==e&&"view"==n?lt("view",l):"singleAction"==e&&"delete"==n?lt("delete",l):"singleAction"==e&&"hideView"==n?ct():"singleAction"==e&&"hideForm"==n?(Pe(!1),!1===Ze&&ve(null)):"singleAction"==e&&"reloadView"==n?Ue(Date.now()):"singleAction"==e&&"reloadForm"==n?rt():"singleAction"==e&&"reloadListing"==n?ot():"singleAction"==e&&"resetListing"==n?(L(Ce.search),U({status:Ce.filters.status}),te({currentPage:Ce.pagination.currentPage,pageSize:Ce.pagination.pageSize}),J(Ce.sort),T(Ce.view),Z()):"singleAction"==e&&"updateListItem"==n?function(e,t){R((function(n){var l=n.findIndex((function(t){return t.id===Number(e)}));return n[l]=(0,a.Z)((0,a.Z)({},n[l]),t),(0,i.Z)(n)}))}(l,o):"bulkAction"==e&&n&&function(e){0!==De.length?"active"===e?ze((0,a.Z)((0,a.Z)({},Te),{},{action:"update_boolean",field:"status",value:"1",ids:De})):"inactive"===e?ze((0,a.Z)((0,a.Z)({},Te),{},{action:"update_boolean",field:"status",value:"0",ids:De})):"delete"===e&&m.$z.confirm(t("Delete DepartmentHeadRecommendation"),t("Are you sure you wish to delete selected progressReports?"),De,at,"Delete"):k("Please select item(s)")}(n)};return(0,N.jsxs)("div",{className:"listing-page-container listing-page-container-progressReport",children:[(0,N.jsxs)(d.Z,{form:j,name:"progressReportListingFilterForm",initialValues:w,children:[(0,N.jsx)(ie,{filters:H,handleOnChanged:st,handleCallbackFunc:dt}),(0,N.jsx)(re,{loading:de,listData:I,reloadListing:Le,selectedRowKeys:De,onChangeSwitchToggle:function(e,t){pe(t),ze(!0===e?(0,a.Z)((0,a.Z)({},Te),{},{action:"update_boolean",field:"status",value:"1",ids:[t.id]}):(0,a.Z)((0,a.Z)({},Te),{},{action:"update_boolean",field:"status",value:"0",ids:[t.id]}))},handleOnChanged:st,handleTableChange:function(e,t,n,i){"ascend"===n.order?J(n.field+" asc"):"descend"===n.order?J(n.field+" desc"):void 0===n.order&&J(Ce.sort)},handleCallbackFunc:dt}),(0,N.jsx)(me,{pagination:ee,totalCount:le,handleOnChanged:st})]}),(0,N.jsx)(Q,{entityId:be,reloadView:He,isShowView:Ze,handleCallbackFunc:dt}),(0,N.jsx)(Se,{entityId:be,reloadForm:Ge,isShowForm:Ne,handleCallbackFunc:dt})]})}}}]);
2//# sourceMappingURL=5267.55e706b7.chunk.js.map

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.