1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4393],{69062:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},54980:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]])},64998:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},31571:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},22295:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},53642:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("file-check",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]])},48830:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("file-plus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]])},27040:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("file-search",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]])},13766:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},37087:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("file-up",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]])},77447:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]])},71353:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},50781:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("landmark",[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]])},92509:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},77336:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}
1],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]])},27593:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("message-square-more",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M16 10h.01",key:"1m94wz"}]])},96757:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("monitor-play",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]])},81427:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("package-search",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]])},42297:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},71408:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},54463:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},41962:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},49525:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},53478:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var l=a(91373);let n=(0,l.Z)("vault",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["path",{d:"m7.9 7.9 2.7 2.7",key:"hpeyl3"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}],["path",{d:"m13.4 10.6 2.7-2.7",key:"264c1n"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["path",{d:"m7.9 16.1 2.7-2.7",key:"p81g5e"}],["circle",{cx:"16.5",cy:"16.5",r:".5",fill:"currentColor",key:"fubopw"}],["path",{d:"m13.4 13.4 2.7 2.7",key:"abhel3"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},39212:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/gst-reconciliation",function(){return a(62033)}])},6619:function(e,t,a){"use strict";var l=a(85893),n=a(67294);let r=e=>{let{message:t,type:a="info",duration:r=3e3,showToast:i,onHide:s}
1=e,[c,d]=(0,n.useState)(100),o=(0,n.useRef)(null);if((0,n.useEffect)(()=>{if(!i)return;let e=Date.now();o.current=setInterval(()=>{let t=Date.now()-e;d(Math.max(100-t/r*100,0))},50);let t=setTimeout(()=>s(),r);return()=>{clearTimeout(t),o.current&&clearInterval(o.current)}},[i,r,s]),!i)return null;let{bg:u,text:h,timer:p}={success:{bg:"#d4edda",text:"#155724",timer:"#a1d9a1"},danger:{bg:"#f8d7da",text:"#721c24",timer:"#e19aa0"},warning:{bg:"#fff3cd",text:"#856404",timer:"#e6d090"},info:{bg:"#cce5ff",text:"#004085",timer:"#99c2ff"}}[a];return(0,l.jsx)("div",{style:{position:"fixed",top:"1rem",right:"1rem",zIndex:1055,minWidth:"250px",maxWidth:"350px"},children:(0,l.jsxs)("div",{style:{backgroundColor:u,color:h,borderRadius:"8px",padding:"1rem 1.2rem",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",position:"relative"},children:[(0,l.jsx)("div",{children:t}),(0,l.jsx)("button",{onClick:s,style:{background:"transparent",border:"none",color:h,fontSize:"1.4rem",fontWeight:"bold",cursor:"pointer",marginLeft:"1rem",lineHeight:1},children:"\xd7"}),(0,l.jsx)("div",{style:{position:"absolute",bottom:0,left:0,height:"4px",width:"".concat(c,"%"),backgroundColor:p,borderBottomLeftRadius:"8px",borderBottomRightRadius:100===c?"8px":"0px",transition:"width 50ms linear"}})]})})};t.Z=r},62033:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var l=a(85893),n=a(67294),r=a(45007),i=a(6619),s=a(11163),c=a(18508),d=a(30080),o=a(87066),u=a(12490);async function h(e){let{file:t,onProgress:a,chunkSize:l=5242880,concurrency:n=3,totalFiles:r=1,currentFile:i=1}=e;if(!t)throw Error("No file provided");let s=Math.ceil(t.size/l),c=(t.size/1048576).toFixed(2),d=0,h=0,p="",m=t.name,x=null,v=null;async function f(e){var n,c,h,f,y,g,_,j;let k=e*l,b=Math.min(k+l,t.size),w=t.slice(k,b),N=new FormData;N.append("file",w,t.name),N.append("file_name",t.name),N.append("chunk_number",String(e+1)),N.append("total_chunks",String(s)),N.append("total_files",String(r)),N.append("current_file",String(i));try{let e=await (0,o.Z)({method:"post",url:"".concat(u.Z.baseImageURL).c
1oncat(null===u.Z||void 0===u.Z?void 0:u.Z.gstChunkUpload),data:N,headers:{"Content-Type":"multipart/form-data"}});d++,a&&a(Math.round(d/s*100)),(null===(n=e.data)||void 0===n?void 0:n.s3_path)&&(p=null===(y=e.data)||void 0===y?void 0:y.s3_path),(null===(c=e.data)||void 0===c?void 0:c.file_name)&&(m=null===(g=e.data)||void 0===g?void 0:g.file_name),(null===(h=e.data)||void 0===h?void 0:h.s3_paths)&&Array.isArray(e.data.s3_paths)&&(x=e.data.s3_paths),(null===(f=e.data)||void 0===f?void 0:f.file_name)&&Array.isArray(e.data.file_name)&&(v=e.data.file_name)}catch(a){let t=(null==a?void 0:null===(_=a.response)||void 0===_?void 0:null===(j=_.data)||void 0===j?void 0:j.message)||(null==a?void 0:a.message)||"Failed to upload chunk";throw Error("Chunk ".concat(e+1,"/").concat(s," upload failed: ").concat(t))}}try{for(;h<s;){let e=[];for(let t=0;t<n&&h<s;t++)e.push(f(h)),h++;await Promise.all(e)}}catch(e){throw e}return{fileName:m,s3_path:p,s3_paths:x,file_name_list:v,fileSizeInMB:c,uploadedChunks:d}}var p=a(40286),m=a.n(p);let x=e=>{var t;let{objUuid:a,templateFileData:i,isTemplateFileUploaded:s,onFileUploaded:c,onObjUuidChange:p,onProceed:x,onError:v}=e,f=(0,r.v9)(e=>e.profile),[y,g]=(0,n.useState)(!1),[_,j]=(0,n.useState)(0),[k,b]=(0,n.useState)(!1),w=(0,n.useRef)(null),N=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{w.current&&clearInterval(w.current),N.current&&clearInterval(N.current)},[]);let Z=()=>{w.current&&(clearInterval(w.current),w.current=null),N.current&&(clearInterval(N.current),N.current=null)},M=async e=>{let{target:t}=e;Z();try{g(!0),j(0),b(!1);let e=t.files[0],i=await h({file:e,onProgress:e=>{j(e)}});if(i.s3_path){var l,n,r;let t=new FormData;t.append("s3_path",i.s3_path),t.append("file_name",i.fileName),t.append("file_type","purchase"),t.append("email",null==f?void 0:null===(l=f.data)||void 0===l?void 0:l.email),t.append("obj_uuid",a);let s=await (0,o.Z)({method:"post",url:"".concat(u.Z.baseImageURL).c
1oncat(null===u.Z||void 0===u.Z?void 0:u.Z.gstUpload),data:t,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{let{loaded:t,total:a}=e;j(Math.round(100*t/(a||1)))}});if(p((null==s?void 0:null===(n=s.data)||void 0===n?void 0:n.obj_uuid)||a),null===(r=s.data)||void 0===r?void 0:r.task_id){let t=s.data.task_id;b(!0),j(95);let a=async()=>{try{var a,l;let n=await o.Z.get("".concat(u.Z.baseImageURL).concat(u.Z.gstStatus,"?task_id=").concat(t,"&email=").concat(null==f?void 0:null===(a=f.data)||void 0===a?void 0:a.email)),r=null===(l=n.data)||void 0===l?void 0:l.status;switch(r){case"completed":N.current&&(clearInterval(N.current),N.current=null),w.current&&(clearInterval(w.current),w.current=null),j(100),b(!1),c({data:null==s?void 0:s.data,file:e}),g(!1);return;case"failed":N.current&&(clearInterval(N.current),N.current=null),w.current&&(clearInterval(w.current),w.current=null),b(!1),g(!1),Z(),v("Failed to process Purchase Register. Please try again later.");return;case"processing":b(!0),N.current||(N.current=setInterval(()=>{j(e=>e>=99?99:e+1)},100))}}catch(e){console.log(e),N.current&&(clearInterval(N.current),N.current=null),w.current&&(clearInterval(w.current),w.current=null),b(!1),g(!1),v("Failed to process Purchase Register. Please try again later.");return}};w.current=setInterval(a,2e3)}else v("Upload failed."),g(!1)}else v("Upload failed."),g(!1)}catch(e){console.log(e),Z(),g(!1),b(!1),v((null==e?void 0:e.message)||"Upload failed.")}finally{try{t&&void 0!==t.value&&(t.value="")}catch(e){}}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"d-flex justify-content-between flex-wrap",children:[(0,l.jsx)("div",{children:(0,l.jsx)("p",{children:"Upload the Purchase Register file after downloading and filling in all the details."})}),(0,l.jsxs)("div",{className:"d-flex flex-wrap align-items-center",children:[(0,l.jsx)("a",{href:"".concat(u.Z.PUBLIC_URL,"/gst/download/template/?email=").concat(null==f?void 0:null===(t=f.data)||void 0===t?void 0:t.email,"&file_type=excel"),className:"btn text-white me-3",style:{background:"#4097fb",padding:"12px 14px"},download:"form26as.csv",children:"Download Purchase Register Template"}),(0,l.jsx)("input",{className:"d-none",type:"file",id:"csv_file",accept:".csv,.xlsx",onChange:M},i?"file-selected":"file-empty"),(0,l.jsx)("label",{htmlFor:"csv_file",className:"btn btn-outline-primary px-4 mt-xs-2 d-flex align-items-center",style:{padding:"12px 10px"},children:y?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Uploading..."]}):(0,l.jsx)("span",{children:"Upload Purchase Register"})})]}),y&&!k&&(0,l.jsxs)("div",{className:"w-100 mt-2 text-primary fs-6",style:{textAlign:"right"},children:["Uploading file ",_,"%"]}),y&&k&&(0,l.jsxs)("div",{className:"w-100 mt-2 text-primary fs-6 d-flex align-items-center justify-content-end",style:{textAlign:"right"},children:[(0,l.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Processing on server..."]}),!y&&s&&(0,l.jsx)("div",{className:"w-100 mt-2 text-primary fs-6",style:{textAlign:"right"},children:"Upload completed"})]}),(0,l.jsx)("div",{className:"pans_file d-inline-flex align-items-center justify-content-between mt-3",children:(0,l.jsxs)("div",{className:"d-flex align-items-center",children:[(0,l.jsx)("div",{className:"icon pe-2",children:(0,l.jsx)("img",{src:"/help-chat/file.png",alt:""})}),(0,l.jsx)("div",{className:"pans_files_card",children:(0,l.jsxs)("div",{className:m().file_title,children:[(null==i?void 0:i.file)?"Purchase Register file read successfully":"Waiting for Purchase Register file",!(null==i?void 0:i.file)&&(0,l.jsx)("span",{className:"loading"})]})}),(null==i?void 0:i.file)&&(0,l.jsx)("img",{src:"/check_circle.svg",className:"ms-5",alt:"check icon"})]})}),(null==i?void 0:i.file)&&(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"form-label mt-5",children:"Uploaded File"}),(0,l.jsxs)("div",{className:m().uploadBox,children:[(0,l.jsx)("div",{className:"icon pe-2",children:(0,l.jsx)("img",{src:"/help-chat/xls.png",alt:""})}),(0,l.jsx)("input",{className:m().inputFile,value:i.file.name,readOnly:!0}),(0,l.jsx)("button",{type:"button",onClick:()=>{Z(),g(!1),b(!1),j(0),c(null);let e=document.getElementById("csv_file");e&&(e.value="")},style:{marginLeft:"8px"},children:(0,l.jsx)(d.FU5,{})})]})]}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{className:m().proceedBtn,disabled:!s,style:{background:s?"#e84545":""},onClick:x,children:"Proceed"})})]})};var v=a(52091);let f=e=>{let{objUuid:t,selectedGstrFiles:a,form26asFileData:i,isForm26asFileUploaded:s,onSelectedFilesChange:c,onFileDataChange:p,onUploaded:x,onUploadReset:f,onObjUuidChange:y,onBack:g,onProceed:_,onError:j}=e,k=(0,r.v9)(e=>
1e.profile),[b,w]=(0,n.useState)(!1),[N,Z]=(0,n.useState)(0),[M,I]=(0,n.useState)(!1),[S,C]=(0,n.useState)({completed:0,total:0,percent:0}),[F,R]=(0,n.useState)(!0),[U,B]=(0,n.useState)([]),[T,z]=(0,n.useState)([]),P=(0,n.useRef)(null),E=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{P.current&&clearInterval(P.current),E.current&&clearInterval(E.current)},[]);let L=()=>{P.current&&(clearInterval(P.current),P.current=null),E.current&&(clearInterval(E.current),E.current=null)},q=e=>{let{target:t}=e,l=Array.from(t.files||[]);if(!l.length)return;let n=Math.max(12-a.length,0);if(n<=0){j("You can select a maximum of 12 files.");return}let r=l.slice(0,n),i=[...a,...r];c(i),p({files:i.map(e=>({name:e.name}))}),t.value=""},D=e=>{L(),w(!1),I(!1),Z(0);let t=a.filter((t,a)=>a!==e);c(t),p(t.length?{files:t.map(e=>({name:e.name}))}:null),s&&(f(),C({completed:0,total:0,percent:0}),B([]),z([]));let l=document.getElementById("pdf_file");l&&(l.value="")},H=async()=>{if(a.length){L(),w(!0),Z(0),I(!1),C({completed:0,total:a.length,percent:0}),B([]),z([]);try{var e,l,n;let r=[],i=[];for(let e=0;e<a.length;e++){let t=a[e],l=await h({file:t,onProgress:t=>{let l=e/a.length*100,n=Math.min(Math.round(l+t/a.length),99);Z(n)},totalFiles:a.length,currentFile:e+1});(null==l?void 0:l.s3_path)&&r.push(l.s3_path),(null==l?void 0:l.fileName)&&i.push(l.fileName),B([...r]),z([...i]);let n=e+1,s=Math.round(n/a.length*100);C({completed:n,total:a.length,percent:s})}let s=new FormData;r.forEach(e=>s.append("s3_path",e)),i.forEach(e=>s.append("file_name",e)),s.append("file_type","gstr"),s.append("email",null==k?void 0:null===(e=k.data)||void 0===e?void 0:e.email),s.append("obj_uuid",t),s.append("total_files",String(a.length));let c=await (0,o.Z)({method:"post",data:s,url:"".concat(u.Z.baseImageURL).c
1oncat(u.Z.gstUpload),headers:{"Content-Type":"multipart/form-data"}});if(null===(l=c.data)||void 0===l?void 0:l.task_id){let e=c.data.task_id;y((null===(n=c.data)||void 0===n?void 0:n.obj_uuid)||t),I(!0),Z(95);let a=async()=>{try{var t,a;let l=await o.Z.get("".concat(u.Z.baseImageURL).concat(u.Z.gstStatus,"?task_id=").concat(e,"&email=").concat(null==k?void 0:null===(t=k.data)||void 0===t?void 0:t.email)),n=null===(a=l.data)||void 0===a?void 0:a.status;switch(n){case"completed":E.current&&(clearInterval(E.current),E.current=null),P.current&&(clearInterval(P.current),P.current=null),Z(100),I(!1),x(),w(!1);return;case"failed":E.current&&(clearInterval(E.current),E.current=null),P.current&&(clearInterval(P.current),P.current=null),I(!1),w(!1),j("Failed to process GSTR-2B files. Please try again later.");return;case"pending":case"processing":I(!0),E.current||(E.current=setInterval(()=>{Z(e=>e>=99?99:e+1)},100))}}catch(e){console.error("Status check error:",e),E.current&&(clearInterval(E.current),E.current=null),P.current&&(clearInterval(P.current),P.current=null),I(!1),w(!1),j("Failed to process GSTR-2B files. Please try again later.");return}};P.current=setInterval(a,2e3)}else Z(100),x(),w(!1)}catch(e){console.error("GSTR-2B batch upload error:",e),L(),w(!1),I(!1),j((null==e?void 0:e.message)||"Failed to upload selected files")}}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"d-flex justify-content-between flex-wrap",children:[(0,l.jsx)("div",{children:(0,l.jsx)("p",{children:"Upload GSTR-2B file which you've downloaded from ITD portal"})}),(0,l.jsxs)("div",{className:"d-flex flex-wrap align-items-center",children:[!s&&a.length<12&&!b&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("input",{type:"file",id:"pdf_file",accept:".csv,.xlsx",multiple:!0,className:"d-none",onChange:q},a.length>0?"files-".concat(a.length):"no-files"),(0,l.jsx)("label",{htmlFor:"pdf_file",className:"btn text-white me-3",style:{background:"#4097fb",padding:"12px 14px"},children:(0,l.jsx)("span",{children:a.length?"Select more files":"Select GSTR-2B"})})]}),b&&!M&&(0,l.jsxs)("div",{className:"text-primary",style:{fontSize:"16px"},children:["Upload in progress ",S.completed,"/",S.total," (",N,"%)"]}),b&&M&&(0,l.jsxs)("div",{className:"w-100 mt-2 text-primary d-flex align-items-center",style:{fontSize:"16px",marginLeft:"8px"},children:[(0,l.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Processing on server... ",N,"%"]}),!b&&!!a.length&&!s&&(0,l.jsxs)("div",{className:"w-100 mt-2 text-primary",style:{fontSize:"16px",marginLeft:"8px"},children:["Selected ",a.length," file(s) ",a.length>=12?"(max reached)":""]}),!b&&s&&a.length>0&&(0,l.jsxs)("div",{className:"w-100 mt-2 text-success",style:{fontSize:"16px",marginLeft:"8px",fontWeight:"500"},children:["Upload completed successfully (",S.completed," file",1===S.completed?"":"s",")"]})]})]}),(0,l.jsx)("div",{className:"mt-2",children:a.length?(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"d-flex align-items-center justify-content-between mt-3",children:[(0,l.jsxs)("label",{className:"form-label mb-0",children:["Selected Files (",a.length,"/12)"]}),(0,l.jsx)("button",{type:"button",className:"btn btn-link p-0 text-decoration-none",onClick:()=>R(!F),style:{fontSize:"14px",color:"#4097fb"},children:F?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"me-1",children:"Hide Files"}),(0,l.jsx)(v.s$2,{size:14})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"me-1",children:"Show Files"}),(0,l.jsx)(v.RiI,{size:14})]})})]}),F&&(0,l.jsx)("div",{style:{maxHeight:"300px",overflowY:"auto",marginTop:"12px",paddingRight:"8px"},children:a.map((e,t)=>(0,l.jsxs)("div",{className:"".concat(m().uploadBox," mt-2"),children:[(0,l.jsx)("div",{className:"icon pe-2",children:(0,l.jsx)("img",{src:"/help-chat/xls.png",alt:""})}),(0,l.jsx)("input",{className:m().inputFile,value:e.name,readOnly:!0}),(0,l.jsx)("button",{type:"button",onClick:()=>D(t),style:{marginLeft:"8px"},children:(0,l.jsx)(d.FU5,{})})]},t))})]}):(0,l.jsx)("div",{className:"pans_file d-inline-flex align-items-center",children:(0,l.jsxs)("div",{className:"d-flex align-items-center",children:[(0,l.jsx)("div",{className:"icon pe-2",children:(0,l.jsx)("img",{src:"/help-chat/file.png",alt:""})}),(0,l.jsx)("div",{className:"pans_files_card",children:(0,l.jsxs)("div",{className:m().file_title,children:["Waiting for GSTR-2B files ",(0,l.jsx)("span",{className:"loading"})]})})]})})}),(0,l.jsxs)("div",{className:"d-flex mt-4",children:[(0,l.jsx)("button",{className:"".concat(m().bckBtn," me-3"),onClick:g,children:"Back"}),!s&&!!a.length&&(0,l.jsx)("button",{className:"".concat(m().proceedBtn," ms-0"),disabled:!a.length||b,style:{background:!a.length||b?"":"#e84545"},onClick:H,children:b?"Uploading...":"Upload Selected Files"}),s&&(0,l.jsx)("button",{className:"".concat(m().proceedBtn," ms-0"),style:{background:"#e84545"},onClick:_,children:"Proceed"})]})]})};var y=a(89833),g=a(19151);let _=[{key:"matched",label:"Matched Entries",totalKey:"total_matched_entries",icon:g.CB},{key:"mismatch",label:"Mismatched Entries",totalKey:"total_mismatch_entries",icon:g.BLo},{key:"missing_gstr",label:"Not in GSTR 2B",totalKey:"total_missing_in_gstr",icon:g.cVJ},{key:"missing_purchase",label:"Not in Purchase Register",totalKey:"total_missing_in_purchase",icon:g.rAR}],j=e=>{let{objUuid:t,templateFileData:a,form26asFileData:i,selectedGstrFiles:s,invoiceTemplateData:c,onTemplateFileChange:h,onForm26asFileChange:p,onBack:x,onRestartAll:v,onError:f}=e,g=(0,r.v9)(e=>
1e.profile),[j,k]=(0,n.useState)(!1),[b,w]=(0,n.useState)(0),[N,Z]=(0,n.useState)(!1),[M,I]=(0,n.useState)(null),S=(0,n.useRef)(null),C=(0,n.useRef)(null),F=(0,n.useRef)(!1),R=()=>{S.current&&(clearInterval(S.current),S.current=null),C.current&&(clearInterval(C.current),C.current=null),F.current=!1},U=()=>{R(),k(!1),Z(!1),I(null),w(0),v()};(0,n.useEffect)(()=>()=>{S.current&&clearInterval(S.current),C.current&&clearInterval(C.current)},[]),(0,n.useEffect)(()=>{c&&(R(),Z(!1),k(!1),w(0),I(null))},[c]);let B=async()=>{R();try{var e,a;k(!0),w(1),Z(!1);let l={email:null==g?void 0:null===(e=g.data)||void 0===e?void 0:e.email,obj_uuid:t},n=await (0,o.Z)({method:"post",url:"".concat(u.Z.baseImageURL).concat(u.Z.gstCompare),data:l});if(null===(a=n.data)||void 0===a?void 0:a.task_id){let e=n.data.task_id;F.current=!0,C.current=setInterval(()=>{F.current&&w(e=>e>=99?99:e+1)},50);let t=async()=>{if(F.current)try{var t,a;let l=await o.Z.get("".concat(u.Z.baseImageURL).concat(u.Z.gstCompareStatus,"?task_id=").concat(e)),n=null===(t=l.data)||void 0===t?void 0:t.status;switch(n){case"completed":R(),w(100),setTimeout(()=>{I(null==l?void 0:l.data),Z(!0),k(!1)},500);return;case"failed":R(),k(!1),w(0);let r=(null===(a=l.data)||void 0===a?void 0:a.error)?"Comparison failed: ".concat(l.data.error):"Comparison failed. Please try again later.";f(r);return}}catch(e){console.error("Status check error:",e),R(),k(!1),w(0),f("Comparison failed. Please try again later.");return}};S.current=setInterval(t,2e3)}else f("Comparison failed."),k(!1)}catch(e){console.error("Compare Error:",e),R(),k(!1),w(0),f((null==e?void 0:e.message)||"Failed to start comparison.")}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"p-4",style:{border:"1px solid #d9d9d9",borderRadius:"8px",background:"#fff"},children:[(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:"col-md-6 mb-4",children:[(0,l.jsx)("label",{className:"form-label",children:"Purchase Register file"}),(0,l.jsx)("div",{className:"".concat(m().uploadBox," p-3"),style:{width:"100%"},children:(null==a?void 0:a.file)?(0,l.jsxs)("div",{className:"d-flex align-items-center w-100",children:[(0,l.jsx)("img",{src:"/help-chat/xls.png",alt:"Excel Icon",style:{width:"24px",height:"24px",marginRight:"8px"}}),(0,l.jsx)("div",{className:"text-truncate",style:{flex:1},children:a.file.name}),(0,l.jsx)("button",{type:"button",onClick:()=>{R(),k(!1),w(0),Z(!1),I(null),h(null);let e=document.getElementById("csv_file");e&&(e.value="")},style:{marginLeft:"8px"},children:(0,l.jsx)(d.FU5,{})})]}):(0,l.jsx)("span",{className:"text-muted",children:"No template uploaded"})})]}),(0,l.jsxs)("div",{className:"col-md-6 mb-4",children:[(0,l.jsx)("label",{className:"form-label",children:"GSTR-2B file"}),(0,l.jsx)("div",{className:"".concat(m().uploadBox," p-3"),style:{width:"100%"},children:(null==i?void 0:i.file)?(0,l.jsxs)("div",{className:"d-flex align-items-center w-100",children:[(0,l.jsx)("img",{src:"/help-chat/xls.png",alt:"Excel Icon",style:{width:"24px",height:"24px",marginRight:"8px"}}),(0,l.jsx)("div",{className:"text-truncate",style:{flex:1},children:i.file.name}),(0,l.jsx)("button",{type:"button",onClick:()=>{R(),k(!1),w(0),Z(!1),I(null),p(null);let e=document.getElementById("pdf_file");e&&(e.value="")},style:{marginLeft:"8px"},children:(0,l.jsx)(d.FU5,{})})]}):(0,l.jsx)("span",{className:"text-muted",children:s.length?"".concat(s.length," file").concat(s.length>1?"s":""," uploaded"):"No GSTR-2B uploaded"})})]})]}),(0,l.jsxs)("div",{children:[!N&&(0,l.jsx)("div",{children:j?(0,l.jsxs)("div",{className:"d-flex align-items-center text-primary",style:{fontSize:"16px"},children:[(0,l.jsx)("div",{className:"spinner-border spinner-border-sm me-2 text-primary",style:{width:"1rem",he
1ight:"1rem"},role:"status"}),"Comparison in progress\xa0",b,"%"]}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("button",{type:"button",className:"".concat(m().compareBtn),onClick:B,children:["Compare\xa0",(0,l.jsx)(y.bhn,{size:18})]})})}),N&&(0,l.jsx)("div",{children:(0,l.jsxs)("h6",{className:"text-success mt-2",children:[(0,l.jsx)("i",{className:"bi bi-check-circle-fill text-success me-1"}),"Comparison Completed"]})})]}),N&&(0,l.jsxs)("div",{className:"p-2 mt-2",children:[(0,l.jsx)("div",{className:"d-flex align-items-center mb-3",children:(0,l.jsx)("h6",{className:"mb-0",children:"Results"})}),(0,l.jsx)("div",{className:"mt-3",style:{maxWidth:"500px"},children:_.map((e,a)=>{var n;let{key:r,label:i,totalKey:s,icon:c}=e,d="".concat(u.Z.baseImageURL).concat(u.Z.downloadresult,"?email=").concat(null==g?void 0:null===(n=g.data)||void 0===n?void 0:n.email,"&file_type=").concat(r,"&obj_uuid=").concat(t);return(0,l.jsxs)("div",{className:"d-flex align-items-center mb-2 p-2 rounded",style:{backgroundColor:a%2==0?"#f8f9fa":"transparent"},children:[(0,l.jsx)("div",{style:{marginRight:"10px"},children:(0,l.jsx)(c,{size:20,className:"matched"===r?"text-success":"mismatch"===r?"text-danger":"text-warning"})}),(0,l.jsxs)("div",{className:"d-flex align-items-center flex-grow-1",children:[(0,l.jsx)("span",{children:i}),(0,l.jsx)("b",{className:"ms-auto text-end",style:{minWidth:"48px",display:"inline-block"},children:(null==M?void 0:M[s])||0})]}),(0,l.jsx)("a",{href:d,download:"".concat(i.replace(/\s+/g,"-"),".csv"),className:"btn btn-link p-0 ms-3 text-decoration-none",children:"Download"})]},r)})})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("button",{type:"button",className:"".concat(m().bckBtn," me-3"),onClick:x,children:"Back"}),N&&(0,l.jsx)("button",{type:"button",className:"".concat(m().bckBtn),onClick:U,children:"Restart Processing"})]})]})},k=e=>{let{currentTab:t,isTemplateFileUploaded:a,isForm26asFileUploaded:n,onTabChange:r}=e;return(0,l.jsxs)("div",{className:m().tab_container,children:[(0,l.jsx)("div",{className:"".concat(m()["tab-item"]," ").concat(1===t?m().active:""),onClick:()=>a||1===t?r(1):null,children:"Step 1. Download Template"}),(0,l.jsx)("div",{className:"".concat(m()["tab-item"]," ").concat(2===t?m().active:""),onClick:()=>a||2===t?r(2):null,children:"Step 2. Upload GSTR-2B"}),(0,l.jsx)("div",{className:"".concat(m()["tab-item"]," ").concat(3===t?m().active:""),onClick:()=>n||3===t?r(3):null,children:"Step 3. Compare"})]})},b=e=>{let{email:t,profile:a,objUuid:r,invoiceTemplateData:i,onTemplateUploaded:s,onError:c}=e,[p,x]=(0,n.useState)(!1),v=(0,n.useRef)(null),f=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{v.current&&clearInterval(v.current),f.current&&clearInterval(f.current)},[]);let y=()=>{v.current&&(clearInterval(v.current),v.current=null),f.current&&(clearInterval(f.current),f.current=null)},g=async e=>{let{target:t}=e;y();try{x(!0);let e=t.files[0],i=await h({file:e,onProgress:e=>{}});if(i.s3_path){var l,n;let e=new FormData;e.append("s3_path",i.s3_path),e.append("email",null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.email),e.append("obj_uuid",r);let t=await (0,o.Z)({method:"post",url:"".concat(u.Z.baseImageURL).c
1oncat(null===u.Z||void 0===u.Z?void 0:u.Z.gstInvoiceUpload),data:e,headers:{"Content-Type":"multipart/form-data"}});if(null===(n=t.data)||void 0===n?void 0:n.task_id){let e=t.data.task_id;f.current=setInterval(()=>{},50);let a=async()=>{try{var a,l;let n=await o.Z.get("".concat(u.Z.baseImageURL).concat(u.Z.gstInvoiceUploadStatus,"?task_id=").concat(e));if((null===(a=n.data)||void 0===a?void 0:a.status)==="completed"){f.current&&(clearInterval(f.current),f.current=null),v.current&&(clearInterval(v.current),v.current=null);let e={data:null==t?void 0:t.data,file:null==i?void 0:i.fileName};s(e),setTimeout(()=>{x(!1)},1500)}(null===(l=n.data)||void 0===l?void 0:l.status)==="failed"&&(f.current&&(clearInterval(f.current),f.current=null),v.current&&(clearInterval(v.current),v.current=null),c("Failed to process Correction Template. Please try again later."),x(!1))}catch(e){f.current&&(clearInterval(f.current),f.current=null),v.current&&(clearInterval(v.current),v.current=null),c("Failed to process Correction Template. Please try again later."),x(!1)}};v.current=setInterval(a,2e3)}else c("Upload failed."),x(!1)}else c("Upload failed."),x(!1)}catch(e){console.log(e),y(),x(!1),c((null==e?void 0:e.message)||"Upload failed.")}finally{try{t&&void 0!==t.value&&(t.value="")}catch(e){}}},_=()=>{y(),s(null);let e=document.getElementById("correction_template");e&&(e.value="")};return(0,l.jsx)("div",{style:{paddingTop:"2rem"},children:(0,l.jsxs)("div",{className:"card_shadow p-40",children:[(0,l.jsxs)("div",{className:"d-flex justify-content-between flex-wrap align-items-center",children:[(0,l.jsxs)("p",{className:"mb-0",children:["Want to correct invoice number?",(0,l.jsx)("a",{href:"".concat(u.Z.PUBLIC_URL,"/gst/download/correction/template/?email=").concat(t,"&file_type=excel"),className:"text-decoration-none ms-1",children:"Download template"})]}),(null==i?void 0:i.file)&&(0,l.jsx)("div",{className:"d-flex align-items-center",style:{minWidth:"400px"},children:(0,l.jsxs)("div",{className:m().uploadBox,style:{flexGrow:1},children:[(0,l.jsx)("div",{className:"icon pe-2",children:(0,l.jsx)("img",{src:"/help-chat/xls.png",alt:""})}),(0,l.jsx)("input",{className:m().inputFile,value:i.file,readOnly:!0}),(0,l.jsx)("button",{type:"button",onClick:_,style:{marginLeft:"8px"},children:(0,l.jsx)(d.FU5,{})})]})})]}),(0,l.jsxs)("div",{className:"mt-3 d-inline-block",children:[(0,l.jsx)("input",{className:"d-none",type:"file",id:"correction_template",accept:".csv,.xlsx",onChange:g},i?"file-selected":"file-empty"),(0,l.jsx)("label",{htmlFor:"correction_template",className:"btn btn-danger d-flex align-items-center",style:{padding:"12px 14px",width:"auto"},children:p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Uploading..."]}):(0,l.jsx)("span",{children:"Upload Template"})})]})]})})},w=()=>{var e;let t=(0,s.useRouter)(),a=(0,r.v9)(e=>e.profile),[d,o]=(0,n.useState)(1),[u,h]=(0,n.useState)(null),[p,m]=(0,n.use
1State)(null),[v,y]=(0,n.useState)(null),[g,_]=(0,n.useState)(!1),[w,N]=(0,n.useState)(!1),[Z,M]=(0,n.useState)(""),[I,S]=(0,n.useState)(!1),[C,F]=(0,n.useState)(""),[R,U]=(0,n.useState)([]);(0,n.useEffect)(()=>{if(t.query.obj_uuid){let e=t.query.obj_uuid;F(e)}},[t.query.obj_uuid]);let B=e=>{M(e),S(!0),setTimeout(()=>S(!1),1e4)},T=()=>{1===d&&g?o(2):2===d&&w&&o(3)},z=e=>{h(e),_(!!e)},P=()=>{N(!0)},E=()=>{N(!1),m(null)},L=()=>{o(1),h(null),m(null),y(null),_(!1),N(!1),U([]);let e=document.getElementById("correction_template");e&&(e.value="")},q=e=>{y(e)};return(0,l.jsxs)(c.Z,{page:[{label:"Dashboard",link:"/dashboard/itr-tax-returns"},"GST Reconciliation"],children:[(0,l.jsx)("div",{className:"chat_window_container pt-5",style:{overflowY:"auto"},children:(0,l.jsxs)("div",{className:"chat_window",children:[(0,l.jsxs)("h3",{children:["GST ",(0,l.jsx)("span",{children:" Reconciliation"})]}),(0,l.jsx)("div",{className:"card_shadow mb-3 p-3",children:(0,l.jsx)(k,{currentTab:d,isTemplateFileUploaded:g,isForm26asFileUploaded:w,onTabChange:o})}),(0,l.jsxs)("div",{className:"card_shadow mb-3 p-40",children:[1===d&&(0,l.jsx)(x,{objUuid:C,templateFileData:u,isTemplateFileUploaded:g,onFileUploaded:z,onObjUuidChange:F,onProceed:T,onError:B}),2===d&&(0,l.jsx)(f,{objUuid:C,selectedGstrFiles:R,form26asFileData:p,isForm26asFileUploaded:w,onSelectedFilesChange:U,onFileDataChange:m,onUploaded:P,onUploadReset:E,onObjUuidChange:F,onBack:()=>o(1),onProceed:T,onError:B}),3===d&&(0,l.jsx)(j,{objUuid:C,templateFileData:u,form26asFileData:p,selectedGstrFiles:R,invoiceTemplateData:v,onTemplateFileChange:h,onForm26asFileChange:m,onBack:()=>o(2),onRestartAll:L,onError:B})]}),3===d&&(0,l.jsx)(b,{email:null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.email,profile:a,objUuid:C,invoiceTemplateData:v,onTemplateUploaded:q,onError:B})]})}),I&&(0,l.jsx)(i.Z,{message:Z,type:"danger",duration:1e4,showToast:I,onHide:()=>S(!1)})]})};var N=w},40286:function(e){e.exports={chat_container:"style_chat_container__XqKCG",main_container:"style_main_container__qI_d5",chat_window_container:"style_chat_window_container__k4JWk",text_dim:"style_text_dim__Qrqf_",container:"style_container__mUOSy",h2:"style_h2__2zhVE",p:"style_p__uru2W",processContainer:"style_processContainer__TM5sg",steps:"style_steps__eIKyp",stepNumber:"style_stepNumber__948su",stepText:"style_stepText__SvJP_",file_title:"style_file_title__tpZqV",curcil:"style_curcil__DzouF",close_btn:"style_close_btn__wXVr1",tab_container:"style_tab_container__ofFaW","tab-item":"style_tab-item__gvzKC",active:"style_active__a3TSb",proceedBtn:"style_proceedBtn__kNp5l",uploadFile:"style_uploadFile__SjoNI",uploadBox:"style_uploadBox__gTCtp",inputFile:"style_inputFile__hlRtR",bckBtn:"style_bckBtn__q2xum",compareBtn:"style_compareBtn__Yfbxg",section_three:"style_section_three___vrKa"}}},function(e){e.O(0,[8391,7909,8316,9774,2888,179],function(){return e(e.s=39212)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.