PageSourceSearch

https://upag.gov.in/static/js/639.fabccab2.chunk.js

js upag.gov.in collected 2026-10-04 02:29:32 UTC 5,374 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkupag||=[]).push([[639],{10639(e,a,t){t.r(a),t.d(a,{default:()=>T});var s=t(73514),r=t(78824),i=t(68903),l=t(68703),n=t(58208),o=t(76655),d=t(20217),m=t(19381),c=t(42093),u=t(9618),h=t(37801),p=t(44978),b=t(70579);const x=(0,l.PA)(()=>{const{setData:e,isValid:a,apiStatus:t,reset:s,saveSubmission:l,estimateTypeByYear:{estimatedYears:x,estimatedYearTypes:y,estimatedYear:g,estimatedYearType:D,loadEstimatedYears:C,setData:N},showCreateNewModal:j=!1,submissionDates:{setDate:S,startSubmissionDate:A,lastSubmissionDate:T,startTriangulateDate:f,lastTriangulateDate:v,isValidDates:Y,isValidSubmissionDate:E,isValidLastSubmissionDate:P,isValidStartTriangulateDate:M,isValidLastTriangulateDate:w}}=(0,c.RJ)();return(0,c.B6)({onMount:()=>{C()}}),(0,b.jsxs)("div",{children:[(0,b.jsx)(n.A,{loading:t.loadingItems}),(0,b.jsx)(o.U,{...t,snackbar:!0}),(0,b.jsx)(d.O6,{ButtonName:"Action.CreateNewSubmission",size:"small",onClick:()=>{s(),e("showCreateNewModal",!0)},permissions:{pagePermission:r.og.PagePermissions.MANAGE_SUBMISSION,mustHaveActions:r.og.PageActions.CREATE}}),(0,b.jsx)(u.aF,{open:j,title:"Header.CreateNewSubmission",maxWidth:"xs",actions:[{ButtonName:"Action.Create",variant:"contained",color:"primary",disabled:!a||!Y,onClick:a&&Y&&l},{ButtonName:"Action.Cancel",variant:"contained",color:"secondary-light",onClick:()=>e("showCreateNewModal",!1)}],children:(0,b.jsxs)(i.Ay,{container:!0,rowSpacing:2,children:[(0,b.jsxs)(i.Ay,{item:!0,xs:12,container:!0,columnSpacing:2,children:[(0,b.jsx)(i.Ay,{item:!0,xs:6,children:(0,b.jsx)(m.ZB,{label:"Label.EstimateYear",placeholder:"Placeholder.EstYear",className:"w-full",data:x,dataID:"fiscalYearKey",dataValue:"fiscalYearDisplay",value:g,onChange:e=>N("estimatedYear",e.target.value),required:!0})}),(0,b.jsx)(i.Ay,{item:!0,xs:6,children:(0,b.jsx)(m.ZB,{label:"Label.EstimateType",placeholder:"Placeholder.TypeofEstimation",className:"w-full",data:y,dataID:"estimateTypeKey",dataValue:"estimateTypeName",value:D,onChange:e=>N("estimatedYearType",e.target.value),required:!0})})]}),(0,b.jsxs)(i.Ay,{item:!0,xs:12,container:!0,columnSpacing:2,children:[(0,b.jsx)(i.Ay,{item:!0,xs:6,children:(0,b.jsx)(h.A,{label:"Label.StartDateOfSubmission",placeholder:"Placeholder.EstType",className:"!mb-0",type:"date",value:A,onChange:e=>S("startSubmissionDate",e.target.value),required:!0,error:A&&!E})}),(0,b.jsx)(i.Ay,{item:!0,xs:6,children:(0,b.jsx)(h.A,{label:"Label.LastDateofSubmission",placeholder:"Placeholder.EstType",className:"!mb-0",type:"date",inputProps:{min:A},format:"DD-MM-YYYY",value:T,onChange:e=>S("lastSubmissionDate",e.target.value),required:!0,error:T&&!P,helperText:T&&!P&&(0,p.t)("Error.GreaterDate",{date:A})})})]}),(0,b.jsxs)(i.Ay,{item:!0,xs:12,container:!0,columnSpacing:2,children:[(0,b.jsx)(i.Ay,{item:!0,xs:6,children:(0,b.jsx)(h.A,{label:"Label.StartDateOfTriangulation",placeholder:"Placeholder.EstType",className:"!mb-0",type:"date",inputProps:{min:A},value:f,onChange:e=>S("startTriangulateDate",e.target.value),required:!0,error:f&&!M,helperText:f&&!M&&(0,p.t)("Error.GreaterDate",{date:A})})}),(0,b.jsx)(i.Ay,{item:!0,xs:6,children:(0,b.jsx)(h.A,{label:"Label.LastDateOfTriangulation",placeholder:"Placeholder.EstType",className:"!mb-0",type:"date",inputProps:{min:f},format:"DD-MM-YYYY",value:v,onChange:e=>S("lastTriangulateDate",e.target.value),required:!0,error:v&&!w,helperText:v&&!w&&(0,p.t)("Error.GreaterDate",{date:f})})})]})]})})]})});var y=t(17392),g=t(73216),D=t(18020),C=t(93393),N=t(10627),j=t(44842);const S=(0,l.PA)(()=>{const e=(0,g.Zp)(),{loadSubmissions:a,submissions:t,onDestroy:s}=(0,c.RJ)();return(0,c.B6)({onMount:()=>{a()},onDestroy:s}),(0,b.jsx)("div",{className:"mt-4",children:(0,b.jsx)(D.bQ,{serialNumbers:!0,columns:[{field:"estimateTypeName",headerName:(0,p.t)("Columns.EstimateType"),minWidth:180,searchable:!0},{field:"fiscalYearDisplay",headerName:(0,p.t)("Columns.EstimateYear"),searchable:!0},{field:"submissionStartDate",headerName:(0,p.t)("Columns.SubmissionStartDate"),cellRenderer:"momentDateOnly",searchable:!0},{field:"submissionEndDate",headerName:(0,p.t)("Columns.SubmissionEndDate"),cellRenderer:"momentDateOnly",searchable:!0},{field:"createdBy",headerName:(0,p.t)("Columns.CreatedBy"),searchable:!0},{field:"createdOn",headerName:(0,p.t)("Columns.CreatedOn"),cellRenderer:"moment"},{field:"modifiedBy",headerName:(0,p.t)("Columns.LastUpdatedUser")},{field:"modifiedOn",headerName:(0,p.t)("Columns.LastUpdatedOn"),cellRenderer:"moment"}
1,{field:"status",headerComponent:"centeredHeader",headerName:(0,p.t)("Columns.Status"),cellRenderer:"badge",searchable:!0},{headerName:(0,p.t)("Columns.Actions"),headerComponent:"centeredHeader",maxWidth:80,cellRenderer:a=>{let{data:t}=a;return(0,b.jsx)("div",{className:"text-center",children:(0,b.jsx)(y.A,{onClick:()=>e(j.A.buildPath({page:r.s0.ManageSubmission,params:[t.fiscalYearKey,t.estimateTypeKey]})),children:(0,b.jsx)(N.A,{name:"Settings"})})})},suppressColumnsToolPanel:!0}],data:t,onEmpty:(0,b.jsx)("div",{className:"ml-4",children:(0,b.jsx)(C.HT,{dataKey:"Empty.NoRows"})})})})});var A=t(73598);const T=()=>(0,b.jsxs)(s.L,{links:[{text:"Home",route:r.s0.CentralDashboard},{text:"Header.ManageSubmission"}],children:[(0,b.jsx)(A.Ay,{header:"Header.ManageSubmission",actions:(0,b.jsx)("div",{className:"text-right",children:(0,b.jsx)(x,{})})}),(0,b.jsx)(S,{})]})}}]);

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.