PageSourceSearch

https://taxspanner.com/_next/static/chunks/pages/dashboard/file-itr/start-with-f16-e30fe9c1561b3276.js

js taxspanner.com collected 2026-10-07 23:07:57 UTC 18,225 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7079],{37813:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/file-itr/start-with-f16",function(){return a(24018)}])},34253:function(s,e,a){"use strict";a.d(e,{Gq:function(){return n},M$:function(){return i},Tb:function(){return d},X:function(){return l},_v:function(){return c},ev:function(){return r},qh:function(){return t}});let l=s=>{if(!s)return"";let e=Array.isArray(s)?s[0]:s;return e.replace(/_/g,"-")};function i(s){return/^[A-Z]{4}[0-9]{5}[A-Z]{1}$/.test(s)?"":"Enter a valid TAN number"}function n(s){return""===s||/^[A-Za-z\s]+$/.test(s)}function d(s){return""===s||/^[A-Za-z0-9]+$/.test(s)}function t(s){return""===s||/^[0-9]+$/.test(s)}function r(s){return""===s||/^[A-Za-z0-9\-\/\.\s]+$/.test(s)}function c(s){return s&&""!==s.trim()?s.length<3?"Minimum 3 characters required":s.length>50?"Maximum 50 characters allowed":r(s)?"":"Only letters, numbers, hyphen (-), slash (/), dot (.), and spaces are allowed":"This field is required"}},24018:function(s,e,a){"use strict";a.r(e),a.d(e,{default:function(){return M}});var l=a(85893),i=a(67294),n=a(18508),d=a(75157),t=a(32599),r=a(30080),c=a(34253),o=a(80902),u=a(45007),m=a(11163),v=a(34051),h=a(31555),p=a(91444),x=a(46655),j=a(5152),N=a.n(j),f=a(24803),g=a.n(f),y=a(25675),_=a.n(y),b=a(653),w=a(23151);let F=N()(()=>Promise.all([a.e(296),a.e(9260)]).then(a.t.bind(a,69260,23)),{loadableGenerated:{webpack:()=>[69260]},ssr:!1}),Z=s=>{var e,a,n,d,j,N,f,y,Z,A,S,T,k;let{handleNext:P}=s,C=(0,u.v9)(s=>null==s?void 0:s.profile),[D,I]=(0,i.useState)(null),E=(0,m.useRouter)(),{uuid:M}=E.query,[U,O]=(0,i.useState)(null),[R,z]=(0,i.useState)(D?D[0]:null),[q,B]=(0,i.useState)(!1),[Y,$]=(0,i.useState)(null),[H,G]=(0,i.useState)(null),[X,L]=(0,i.useState)(0),Q=s=>{let{target:e}=s,a=Array.from(e.files),l=a.map(s=>({file:s,password:"",status:"pending",progress:0}));$(s=>s?[...s,...l]:l),G(""),e.value=""},V=s=>{let{target:e}=s,{id:a,value:l}=e,[i,n]=null==a?void 0:a.split("_");if(G(""),!Y)return;let d=Y.map((s,e)=>Number(n)==e?{...s,[i]:l}:s);$(d)},W=()=>{$(null),I(null)},J=s=>{if(!Y)return;let e=Y.filter((e,a)=>a!==s);$(e.length?e:null)},K=(s,e)=>{$(a=>{if(!a)return null;let l=[...a];return l[s]={...l[s],...e},l})},ss=async(s,e)=>{var a,l,i,n,d;try{K(e,{status:"uploading",progress:0,error:void 0});let n=new FormData;n.append("passwords[0]",s.password),n.append("pdf_files[0]",s.file),n.append("email",null==C?void 0:null===(a=C.data)||void 0===a?void 0:a.email),n.append("itr_uuid",(0,c.X)(M));let d=setInterval(()=>{K(e,{progress:Math.min(s.progress+20,90)})},300),r=await (0,t.ID)(n);return clearInterval(d),K(e,{status:"success",progress:100,form16Id:null==r?void 0:null===(l=r.form16_id)||void 0===l?void 0:l[0]}),(null==r?void 0:null===(i=r.form16_id)||void 0===i?void 0:i[0])||null}catch(t){let{data:a}=(null==t?void 0:t.response)||{},l=(null==a?void 0:a.message)||"Upload failed",i=null!==(d=null==a?void 0:null===(n=a.files)||void 0===n?void 0:n[s.file.name])&&void 0!==d?d:(null==a?void 0:a.files)?Object.values(a.files)[0]:void 0;return(null==i?void 0:i.status)==="error"&&(null==i?void 0:i.message)&&(l=i.message),K(e,{status:"error",progress:0,error:l}),null}},se=async(s,e)=>{let a=s.map(s=>"form16_id=".concat(s)).join("&");try{var l,i;let n=await (0,t.eP)({email:null==C?void 0:null===(l=C.data)||void 0===l?void 0:l.email},a);O({form16_id:s,email:null==C?void 0:null===(i=C.data)||void 0===i?void 0:i.email}),$(null),z(n[0]),I(n),p.Am.success("".concat(e," Form 16(s) uploaded successfully"),{position:"top-center"})}catch(s){G("Failed to fetch form details. Please try again.")}},sa=async()=>{if(!Y||0===Y.length)return;B(!0),G(null);let s=[],e=0,a=0;for(let l=0;l<Y.length;l++){if("success"===Y[l].status){s.push(Y[l].form16Id),e++;continue}let i=await ss(Y[l],l);i?(s.push(i),e++):a++;let n=(l+1)/Y.length*100;L(n)}B(!1),e>0&&await se(s,e),a>0&&p.Am.error("".concat(a," file(s) failed to upload"),{position:"top-center"})},sl=async s=>{if(!Y)return;let e=Y[s],a=await ss(e,s);if(!a)return;let l=Y.some((e,a)=>a!==s&&"success"!==e.status);if(l)return;let i=Y.map((e,l)=>l===s?a:e.form16Id);await se(i,i.length)},si=null==Y?void 0:Y.every(s=>"success"===s.status),sn=null==Y?void 0:Y.some(s=>"error"===s.status),sd=null==Y?void 0:Y.some(s=>"uploading"===s.status),st=async()=>
1{if(D){var s,e,a;try{let e=await (0,w.rM)({pan:null===(s=D[0])||void 0===s?void 0:s.pan});P({step:1,f16:U,result:D,panData:e})}catch(l){let s=null==l?void 0:null===(e=l.response)||void 0===e?void 0:e.data[Object.keys(null==l?void 0:null===(a=l.response)||void 0===a?void 0:a.data)[0]];G(s)}}};return(0,l.jsx)(v.Z,{style:{maxHeight:"100%",overflowY:"auto"},className:"pb-3",children:(0,l.jsx)(h.Z,{lg:8,md:12,sm:12,xs:12,children:(0,l.jsx)(l.Fragment,{children:Y?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:g().form16Container,children:[sd&&Y.length>1&&(0,l.jsxs)("div",{className:g().overallProgress,children:[(0,l.jsxs)("div",{className:g().progressHeader,children:[(0,l.jsx)("span",{children:"Overall Progress"}),(0,l.jsxs)("span",{children:[Math.round(X),"%"]})]}),(0,l.jsx)("div",{className:g().progressBar,children:(0,l.jsx)("div",{className:g().progressFill,style:{width:"".concat(X,"%")}})})]}),null==Y?void 0:Y.map((s,e)=>{var a;return(0,l.jsxs)("div",{className:"".concat(g().form16File," ").concat("success"===s.status?g().success:""," ").concat("error"===s.status?g().error:""),children:[(0,l.jsxs)("div",{className:"d-flex align-items-center w-50 ".concat(g().form_files),children:[(0,l.jsx)("div",{className:g().pdfIcon,children:(0,l.jsx)(_(),{width:100,height:100,alt:"form-16",src:"/itr-2/pdf.svg"})}),(0,l.jsxs)("div",{className:"".concat(g().fileName," w-75 ellipsis"),children:[null==s?void 0:null===(a=s.file)||void 0===a?void 0:a.name,(0,l.jsxs)("div",{className:g().fileStatus,children:["uploading"===s.status&&(0,l.jsxs)("span",{className:g().uploading,children:[(0,l.jsx)("span",{className:"spinner-border spinner-border-sm me-1",role:"status","aria-hidden":"true"}),"Uploading ",s.progress,"%"]}),"success"===s.status&&(0,l.jsxs)("span",{className:g().successText,children:[(0,l.jsx)(r.ZSR,{size:14})," Uploaded"]}),"error"===s.status&&(0,l.jsxs)("span",{className:g().errorText,children:[(0,l.jsx)(r.vVM,{size:14})," ",s.error||"Failed"]}),"pending"===s.status&&(0,l.jsx)("span",{className:g().pendingText,children:"Ready to upload"})]})]})]}),(0,l.jsxs)("div",{className:"d-flex justify-content-end align-items-center",children:["uploading"===s.status&&(0,l.jsx)("div",{className:g().individualProgress,children:(0,l.jsx)("div",{className:g().miniProgressBar,children:(0,l.jsx)("div",{className:g().miniProgressFill,style:{width:"".concat(s.progress,"%")}})})}),(0,l.jsx)("div",{className:"".concat(g().fileName," w-75"),children:(0,l.jsx)(o.uq,{value:null==s?void 0:s.password,id:"password_".concat(e),name:"password_".concat(e),onChange:V,placeholder:"Password (if any)",disabled:"uploading"===s.status||"success"===s.status})}),"error"===s.status&&(0,l.jsx)("button",{className:g().retryBtn,onClick:()=>sl(e),disabled:sd,title:"Retry upload",children:(0,l.jsx)(r.la_,{})}),"uploading"!==s.status&&(0,l.jsx)("button",{className:g().deleteBtn,onClick:()=>J(e),children:(0,l.jsx)(r.ZkW,{})})]})]},e)}),!sd&&(0,l.jsxs)("div",{className:g().addMoreFiles,children:[(0,l.jsx)("input",{type:"file",onChange:Q,multiple:!0,name:"form16-more",id:"form16-more",accept:".pdf",className:"d-none"}),(0,l.jsx)("label",{htmlFor:"form16-more",className:g().addMoreLink,children:"+ Add more Form 16 files"})]}),(0,l.jsx)("div",{className:"text-danger mt-3",children:H})]}),(0,l.jsx)("div",{className:"mt-4 pt-2",children:q?(0,l.jsxs)("button",{className:"btn btn-danger px-5 py-2",disabled:!0,children:[si?"Processing...":"Uploading...",(0,l.jsx)("span",{className:"spinner-border spinner-border-sm ms-2",role:"status","aria-hidden":"true"})]}):(0,l.jsx)("button",{className:"btn btn-danger px-5 py-2",onClick:sa,disabled:si,children:si?"All Uploaded":sn?"Retry":"Upload All"})})]}):(0,l.jsx)(l.Fragment,{children:D?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"d-flex justify-content-center",style:{width:"100%",height:"150px",transitionDuration:"0s"},children:(0,l.jsx)(F,{animationData:x,style:{width:"150px",height:"100%",transitionDuration:"0s"},loop:!1,autoplay:!0})}),(0,l.jsx)("div",{className:"".concat(g().descriptionText," text-center"),children:"Form 16 successfully read"}),(null==D?void 0:D.length)>1?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"mt-3 ".concat(g().tabGroup),children:(0,l.jsx)("div",{className:g().buttonTab,children:null==D?void 0:D.map((s,e)=>(0,l.jsxs)("button",{className:"".concat(g().btn," ").concat((null==R?void 0:R.id)==(null==s?void 0:s.id)&&g().active),onClick:()=>z(s),children:["Employer ",e+1]},e))})})}):(0,l.jsx)(l.Fragment,{}),(0,l.jsxs)(v.Z,{children:[(0,l.jsx)(h.Z,{md:12,children:(0,l.jsxs)("div",{className:g().form16_table,children:[(0,l.jsx)("div",{className:g().head,children:(0,l.jsx)("div",{className:g().title,children:" Personal Info Summary"})}),(0,l.jsxs)("div",{className:g().body,children:[(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Name"}),(0,l.jsxs)("div",{className:g().td,children:[(null==R?void 0:null===(e=R.parsed_data)||void 0===e?void 0:e.first_name)||""," ",(null==R?void 0:null===(a=R.parsed_data)||void 0===a?void 0:a.last_name)||""]})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"PAN"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:R.pan)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Financial Year"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:R.fy_str)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Employer"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(n=R.parsed_data)||void 0===n?void 0:n.emplyr_name)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"TAN"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(d=R.parsed_data)||void 0===d?void 0:d.tan_lst)||""})]})]})]})}),(0,l.jsx)(h.Z,{md:12,children:(0,l.jsxs)("div",{className:g().form16_table,children:[(0,l.jsx)("div",{className:g().head,children:(0,l.jsx)("div",{className:g().title,children:" Income and Tax Summary"})}),(0,l.jsxs)("div",{className:g().body,children:[(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Gross Salary"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(j=R.parsed_data)||void 0===j?void 0:j.gross_sal)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Total Section 10 Allowances"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(N=R.parsed_data)||void 0===N?void 0:N.sec10_total)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Travel Allowance"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(f=R.parsed_data)||void 0===f?void 0:f.sec10_travel)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"HRA (House Rent Allowance)"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(y=R.parsed_data)||void 0===y?void 0:y.sec10_hra)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Standard Deduction"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(Z=R.parsed_data)||void 0===Z?void 0:Z.tds_std_deduc)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Total Income"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(A=R.parsed_data)||void 0===A?void 0:A.total_inc)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Tax Payable on total income"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(S=R.parsed_data)||void 0===S?void 0:S.tax_payable)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"TDS Deposited by Employer"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(T=R.parsed_data)||void 0===T?void 0:T.tds)||""})]}),(0,l.jsxs)("div",{className:g().tr,children:[(0,l.jsx)("div",{className:g().td,children:"Tax Payable"}),(0,l.jsx)("div",{className:g().td,children:(null==R?void 0:null===(k=R.parsed_data)||void 0===k?void 0:k.tax_payable_refundable)||""})]})]})]})})]}),(0,l.jsxs)("div",{className:"".concat(g().title," my-2"),children:["Data seems incorrect? ",(0,l.jsx)("span",{className:"text-danger",style:{cursor:"pointer"},onClick:W,children:"Upload Form 16 again"})]}),(0,l.jsx)("div",{className:"error mt-3",children:H}),(0,l.jsx)("div",{className:"mt-4 pt-2",children:(0,l.jsx)("button",{className:"btn btn-danger px-5 py-2",onClick:st,children:"Continue"})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-2",children:[(0,l.jsx)("input",{type:"file",onChange:Q,multiple:!0,name:"form16",id:"form16",accept:".pdf",className:"d-none"}),(0,l.jsxs)("label",{htmlFor:"form16",className:g().form16Container,children:[(0,l.jsx)("span",{className:g().uploadIcon,children:(0,l.jsx)(r.YFT,{})}),(0,l.jsxs)("span",{className:"".concat(g().title," text-center w-100 mt-3"),children:["Drag your PDF file(s) or ",(0,l.jsx)("span",{className:"text-danger fw-bold",children:"click to upload"})]}),(0,l.jsx)("span",{className:g().descriptionText,children:"Only support .pdf files"})]})]}),(0,l.jsx)("div",{className:"py-2",children:(0,l.jsx)(b.Z,{description:"You can upload multiple Form 16’s if you have switched jobs in this Financial Year. You should also upload the annexure if you have received it separately from your employer."})})]})})})})})};var A=a(8335),S=a(12490),T=a(54884),k=a(79503),P=a(1211),C=a(64998),D=a(32471),I=a.n(D);let E=()=>{let s=(0,u.v9)(s=>s.profile),[e,a]=(0,i.useState)(1),[r,c]=(0,i.useState)(null),[o,m]=(0,i.useState)({}),[v,h]=(0,i.useState)(null),[p,x]=(0,i.useState)(!1),j=l=>{if((null==l?void 0:l.step)==1&&l.result){var i;h(l.result),c(null==l?void 0:l.panData),(0,T.o2)(null==l?void 0:l.panData,null==s?void 0:null===(i=s.data)||void 0===i?void 0:i.is_staff)?a((null==l?void 0:l.step)+2):a((null==l?void 0:l.step)+1);return}a(e+1)};(0,i.useEffect)(()=>{(null==r?void 0:r.pan)&&3===e&&N(r.pan)},[e,r]);let N=async s=>{try{await (0,w.s)(s),x(!0)}catch(s){var e;(null==s?void 0:null===(e=s.response)||void 0===e?void 0:e.status)===404?x(!1):x(!0)}},f=()=>{e>=1&&a(e-1)},g=async()=>{var s,e;try{let e=[];null==v||v.map((s,a)=>{e.push(Number(null==s?void 0:s.id))});let a={email:null===(s=v[0])||void 0===s?void 0:s.email,parsed_f16:e,isAlreadyClient:!1},l="".concat(null===S.Z||void 0===S.Z?void 0:S.Z.baseImageURL).c
1oncat(null===S.Z||void 0===S.Z?void 0:S.Z.autoCreateItr),i=await (0,t.vZ)(l,a);return i}catch(a){let s=(null==a?void 0:null===(e=a.response)||void 0===e?void 0:e.data)||"somthing went wrong";if("string"!=typeof s){let e=s[Object.keys(s)[0]];m(s=>({...s,comman:e}))}else m(e=>({...e,comman:s}))}},y=()=>(0,l.jsxs)("div",{className:"mb-5",children:[(0,l.jsx)("div",{className:I().step_count,children:"STEP 1 OF 3"}),(0,l.jsx)("h1",{children:"Start with Form 16"}),(0,l.jsx)("p",{className:I().subtitle,children:"Upload your Form 16 to automatically extract income details and file your tax return accurately."})]});return(0,l.jsx)(n.Z,{page:[{label:"Dashboard",link:"/dashboard/itr-tax-returns"},{label:"File New Return",link:"/dashboard/file-itr"},"Upload Form16"],children:(0,l.jsx)("div",{className:I().file_itr_page,children:(0,l.jsxs)("div",{className:I().layout_grid,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:I().segmented_stepper,children:[1,2,3,4].map(s=>(0,l.jsx)("div",{className:"".concat(I().segment," ").concat(s<=e?I().active:"")},s))}),(0,l.jsxs)("div",{className:I().form_card,children:[(0,l.jsxs)("div",{className:"px-1",children:[1===e&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{}),(0,l.jsx)(Z,{handleNext:j})]}),2===e&&(0,l.jsx)(A.Z,{panData:r,result:v,handleNext:j,handleBack:f}),3===e&&(0,l.jsx)(d.Z,{handleBack:f,handleUpdateItr:g,isAlreadyClient:p})]}),o.comman&&(0,l.jsx)("div",{className:"alert alert-danger mt-3",children:o.comman})]})]}),(0,l.jsxs)("div",{className:I().sidebar_wrapper,children:[(0,l.jsxs)("div",{className:I().card_tips,children:[(0,l.jsxs)("div",{className:I().card_header,children:[(0,l.jsx)("div",{className:"".concat(I().icon_box," ").concat(I().red),children:(0,l.jsx)(k.Z,{size:20})}),(0,l.jsxs)("div",{className:I().title_box,children:[(0,l.jsx)("h3",{children:"Quick Tips"}),(0,l.jsx)("p",{children:"Uploading Form 16"})]})]}),(0,l.jsxs)("ul",{className:I().tips_list,children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:I().num,children:"1"}),(0,l.jsx)("span",{children:"PDF can be password protected, but scanned copies are not accepted."})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:I().num,children:"2"}),(0,l.jsx)("span",{children:"If you have multiple Form 16s, you can upload them one by one."})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:I().num,children:"3"}),(0,l.jsx)("span",{children:"Ensure the PDF is a digital copy (not a photo) for auto-extraction."})]})]})]}),(0,l.jsxs)("div",{className:I().card_help,children:[(0,l.jsxs)("div",{className:I().card_header,children:[(0,l.jsx)("div",{className:"".concat(I().icon_box," ").concat(I().blue),children:(0,l.jsx)(P.Z,{size:20})}),(0,l.jsxs)("div",{className:I().title_box,children:[(0,l.jsx)("h3",{children:"Need Help?"}),(0,l.jsx)("p",{children:"Talk to a tax expert"})]})]}),(0,l.jsx)("p",{className:I().help_text,children:"Our CAs are available Mon–Sat, 9 AM to 7 PM to guide you through the filing process."}),(0,l.jsxs)("button",{className:I().chat_expert_btn,children:["Chat with Expert ",(0,l.jsx)(C.Z,{size:14})]})]})]})]})})})};var M=E}},function(s){s.O(0,[6947,8316,318,8508,8946,5114,9774,2888,179],function(){return s(s.s=37813)}),_N_E=s.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.