1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3405],{51207:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(37876);a(14232);var r=a(48230),i=a.n(r),c=a(41969);let o=e=>{let{activeTabs:t,userAttendanceExtraData:a,userAttendance:r}=e,{session:o}=(0,c.G)(e=>e.authSlice);return(0,s.jsxs)("ul",{className:" tabs_ul ".concat(a&&r&&"mark-attendance"==t?"attendance_tab_padding":""),children:[(0,s.jsxs)("li",{className:"tabs_item ".concat("enrolled-students"==t||"enrolled-courses"==t?"active":""),children:[o&&"T"===o.user_type&&(0,s.jsx)(i(),{href:"/teacher/enrolled-students",className:"text-decoration-none",children:"Enrolled Students"}),o&&"S"===o.user_type&&(0,s.jsx)(i(),{href:"/student/enrolled-courses",className:"text-decoration-none",children:"Enrolled Courses"})]}),(0,s.jsxs)("li",{className:"tabs_item ".concat("mark-attendance"==t?"active":""),children:[o&&"T"===o.user_type&&(0,s.jsx)("a",{href:"/teacher/mark-attendance/ct/ut/pt",className:"text-decoration-none",children:"Attendance"}),o&&"S"===o.user_type&&(0,s.jsx)("a",{href:"/student/mark-attendance/ct/ut/pt",className:"text-decoration-none",children:"Attendance"})]}),(0,s.jsxs)("li",{className:"tabs_item ".concat("transactions"==t?"active":""),children:[o&&"T"===o.user_type&&(0,s.jsx)(i(),{href:"/teacher/transactions",className:"text-decoration-none",children:"Transactions"}),o&&"S"===o.user_type&&(0,s.jsx)(i(),{href:"/student/transactions",className:"text-decoration-none",children:"Transactions"})]}),o&&"T"===o.user_type&&(0,s.jsx)("li",{className:"tabs_item ".concat("withdraw"==t?"active":""),children:(0,s.jsx)(i(),{href:"/teacher/withdraw",className:"text-decoration-none",children:"Withdraw"})}),o&&"T"===o.user_type&&(0,s.jsx)("li",{className:"tabs_item ".concat("withdrawal-method"==t?"active":""),children:(0,s.jsx)(i(),{href:"/teacher/withdrawal-method",className:"text-decoration-none",children:"Withdrawal Method"})}),o&&"T"===o.user_type&&(0,s.jsx)("li",{className:"tabs_item ".concat("tds-certificates"==t?"active":""),children:(0,s.jsx)(i(),{href:"/teacher/tds-certificates",className:"text-decoration-none",children:"TDS Certificates"})})]})}},62137:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_});var s=a(37876),r=a(14232),i=a(48230),c=a.n(i),o=a(89099),n=a(2827),l=a(41969),d=a(37840),u=a(57173),h=a(26982),f=a(51207),m=a(29308),x=a(96674),g=a(30132),v=a.n(g),p=a(17443);let _=()=>{let e=(0,o.useRouter)(),{session:t}=(0,l.G)(e=>e.authSlice),{lookUpData:a}=(0,l.G)(e=>e.data),[i,n]=(0,r.useState)(),[h,m]=(0,r.useState)(!1),[x,g]=(0,r.useState)(),[v,_]=(0,r.useState)(!1),[b,y]=(0,r.useState)([]),[N,S]=(0,r.useState)(!1),[w,T]=(0,r.useState)(null),C=[];function P(e,t,a){a?a(!0):(_(!1),m(!1)),u.default.getTDSCertificate(e).then(e=>{a?a(!1):(m(!0),_(!0)),"success"===e.data.status?(n(e.data.data),g(e.data.extra_data),T(e.data.extra_data.result_data_count),function(e,t){for(var a=0;a<e.length;a++){let t={date:e[a].created,quarter:e[a].quarter,certificateFile:e[a].certificate};C.push(t)}y(C)}(e.data.data,e.data.extra_data.currency_type)):"failure"===e.data.status&&alert(e.data.error_message.message)},()=>{})}return(0,r.useEffect)(()=>{t&&"T"===t.user_type&&(S(!0),P("&offset=0",void 0,!1)),t&&("S"===t.user_type||"C"===t.user_type)&&(S(!1),m(!0),_(!0))},[]),(0,r.useEffect)(()=>{t||e.push("/")},[]),(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(d.A,{title:"TDS Certificates | ipassio",description:"",ogImage:"",ogImgSecureURL:"",ogImageAlt:"",ogImgSecureAlt:"",seoType:"website",indexType:"noindex",pageURL:"https://www.ipassio.com"+e.asPath,keywords:void 0,wordCount:void 0,datePublished:void 0,dateModified:void 0,authorType:void 0,authorName:void 0,authorURL:void 0,brandImage:void 0,articleBody:void 0,genre:void 0,blogCategory:void 0,blogCategoryLink:void 0,ratingSEOData:void 0,courseSEOPrice:void 0,courseSEOPriceCurrency:void 0,courseSEOID:void 0,courseSEOGroupID:void 0,isPageURLType:void 0,isBreadcrumbs:void 0,isCarousels:void 0,isFAQ:void 0,isReviews:void 0,isAggregateRating:void 0,breadcrumbsData:void 0,carouselsData:void 0,faqsData:void 0,isPageBlogCat:void 0,pageData:void 0}),!N&&h&&(0,s.jsx)(p.A,{}),N&&(0,s.jsx)("section",{className:"history-section transactions_section h-100 common_for_table",children:(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)(f.A,{activeTabs:"tds-certificates",userAttendance:void 0,userAttendanceExtraData:void 0}),(0,s.jsxs)("div",{className:"cover-history-content for_mobile_res",children:[(0,s.jsx)("h1",{className:"history-title",children:"TDS Certificates"}),t&&(0,s.jsx)(s.Fragment,{children:i&&x&&a&&null!==w&&(0,s.jsx)("div",{className:"cover-transaction",children:(0,s.jsx)(j,{transcationsListLoaded:h,transcationsExtraDataLoaded:v,transcationsExtraData:x,columns:[{dataField:"date",text:"Year Issued",attrs:{title:"Date"}},{dataField:"quarter",text:"Quarter",attrs:{title:"quarter"}},{dataField:"certificateFile",text:"TDS Certificate",attrs:{title:"Certificate"},formatter:function(e,t){return(0,s.jsx)("p",{className:"download-pdf-link",children:(0,s.jsx)(c(),{href:e,legacyBehavior:!0,children:(0,s.jsx)("a",{id:"student-transaction-download",target:"_blank",rel:"nofollow noreferrer noopener ",children:"View / Download"})})})},csvExport:!1}],tableData:b,session:t,storeLookups:a,totalData:w,createPaginationData:P})})})]})]})})]})},j=e=>{let{transcationsExtraData:t,tableData:a,columns:i,session:c,storeLookups:o,transcationsListLoaded:l,transcationsExtraDataLoaded:d,totalData:u,createPaginationData:f}=e,[g,p]=(0,r.useState)({filter_year:"",quarter:"",offset:0}),[_,j]=(0,r.useState)(!1),b=new Date(c.created).getFullYear(),y=new Date().getFullYear(),[N,S]=(0,r.useState)(!1),[w,T]=(0,r.useState)([]),[C,P]=(0,r.useState)(!1),[A,k]=(0,r.useState)([]),[D,E]=(0,r.useState)(!0),[F,q]=(0,r.useState)(!1),[O,L]=(0,r.useState)(!1),[I,R]=(0,r.useState)(!1),[Q,B]=(0,r.useState)(!1),U=e=>{"transactionCategory"==e&&q(!0),"transactionType"==e&&L(!0),"year"==e&&R(!0),"quarter"==e&&B(!0)};(0,r.useEffect)(()=>{E(!1)},[]);let Y=[];Y.push({label:"All",value:"NA"});let G=[];for(let e=b;e<=y;e++)G.push({label:e.toString(),value:e.toString()});Y=Y.concat(G.reverse());let[z,M]=(0,r.useState)(Y),V=[];V.push({label:"All",value:"NA"});let W=[];for(let e=1;e<=4;e++)W.push({label:"Q".concat(e),value:"Q".concat(e)});let X=V.concat(W),[H,J]=(0,r.useState)(X);(0,r.useEffect)(()=>
1{if(!D){let e="&",t=Object.keys(g).length-1;Object.keys(g).map((a,s)=>{e+="".concat(a,"=").concat(g[a]).concat(s===t?"":"&")}),f(e,!0)}},[g.filter_year]),(0,r.useEffect)(()=>{if(!D){let e="&",t=Object.keys(g).length-1;Object.keys(g).map((a,s)=>{e+="".concat(a,"=").concat(g[a]).concat(s===t?"":"&")}),f(e,!1,j)}},[g.offset]),(0,r.useEffect)(()=>{if(!D){let e="&",t=Object.keys(g).length-1;Object.keys(g).map((a,s)=>{e+="".concat(a,"=").concat(g[a]).concat(s===t?"":"&")}),f(e,!0)}},[g.quarter]);let K=(e,t)=>{"year"===t.name?p({...g,filter_year:"NA"===e.value?"":e.value,offset:0}):"quarter"===t.name&&p({...g,quarter:"NA"===e.value?"":e.value,offset:0})},Z={firstPageText:"First",prePageText:"Back",nextPageText:"Next",lastPageText:"Last",nextPageTitle:"First page",prePageTitle:"Pre page",firstPageTitle:"Next page",lastPageTitle:"Last page",showTotal:!0,paginationTotalRenderer:(e,t)=>(0,s.jsxs)("span",{className:"react-bootstrap-table-pagination-total",children:["Showing ",e," to ",t," of ",u," Results"]}),disablePageTitle:!0,sizePerPage:10,sizePerPageList:[],totalSize:u,onPageChange:(e,t)=>
1{p({...g,offset:(e-1)*t})}};return(0,s.jsx)(r.Fragment,{children:(0,s.jsx)("div",{children:(0,s.jsx)(v(),{keyField:"refId",bootstrap4:!0,data:a,columns:i,exportCSV:{fileName:"ipassio_transaction_history.csv"},children:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"balance-download-csv d-lg-flex d-md-flex d-sm-flex d-block align-items-center"})}),(0,s.jsx)("div",{children:(0,s.jsx)("form",{className:"mt-1 pt-4",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:" col col-12 col-sm-6 col-md-6 col-lg-3 </div>pe-lg-0 element_position",children:(0,s.jsxs)("div",{className:"margin_bottom_sixteen choose-transaction-select-category",children:[Q&&(0,s.jsx)("label",{className:"focus-label on-focus for-white-bg",children:"Select Quarter"}),(0,s.jsx)(n.Ay,{options:H,classNamePrefix:"react-select",name:"quarter",placeholder:"Choose Quarter",onChange:(e,t)=>{K(e,t),U("quarter")}})]})}),(0,s.jsx)("div",{className:" col col-12 col-sm-12 col-md-12 col-lg-3 element_position",children:(0,s.jsxs)("div",{className:"margin_bottom_sixteen",children:[I&&(0,s.jsx)("label",{className:"focus-label on-focus for-white-bg",children:"Choose Year"}),(0,s.jsx)(n.Ay,{options:z,classNamePrefix:"react-select",name:"year",placeholder:"Choose Year",onChange:(e,t)=>
1{K(e,t),U("year")}})]})})]})})}),d&&l?(0,s.jsx)("div",{className:"data-table-cover",children:(0,s.jsx)(x.A,{remote:!0,wrapperClasses:"table-md-responsive",...e.baseProps,pagination:(0,m.Ay)(Z),noDataIndication:"No Certificates Found.",onTableChange:()=>{},keyField:"quarter"})}):(0,s.jsx)(h.A,{hightAuhref:"height_auto"}),_&&(0,s.jsx)(h.A,{hightAuhref:"height_auto"})]})})})})}},78654:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/teacher/tds-certificates",function(){return a(62137)}])}},e=>{e.O(0,[1777,8230,5315,2687,8303,532,6180,6674,4049,5504,6547,636,6593,8792],()=>e(e.s=78654)),_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.