1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29430],{86534:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/business-operations/corporation/cor-report/[recno]",function(){return n(21488)}])},51546:function(e,l,n){"use strict";n.d(l,{T:function(){return a}});var t=n(85893),i=n(67218),s=n(1280),r=n(37406);let o=e=>{var l;let{date:n}=e,{user:o}=(0,i.a)();if(!n)return(0,t.jsx)(t.Fragment,{});let a=(null!==(l=null==o?void 0:o.dateFormat)&&void 0!==l?l:r.lm).toLowerCase(),d="";if("string"==typeof n){if(n.includes("T")){let[e,l,t]=n.split("T")[0].split("-").map(Number);d=(0,s.ZP)(new Date(e,l-1,t),a)}else d=(0,s.ZP)(new Date(n),a)}else d=(0,s.ZP)(n,a);return(0,t.jsx)(t.Fragment,{children:d})},a=e=>{let{value:l}=e;return l?(0,r.J_)(l)?(0,t.jsx)(o,{date:l.split("T")[0]}):(0,t.jsx)(t.Fragment,{children:l}):null};l.Z=o},54107:function(e,l,n){"use strict";n.d(l,{e:function(){return o},m:function(){return r}});var t=n(60983),i=n.n(t),s=n(54887);let r=e=>i().encode(s.Z.stringify(e)),o=e=>{let l=i().decode(e);return s.Z.parse(l)}},21885:function(e,l,n){"use strict";var t=n(85893),i=n(77533),s=n(11057),r=n(90948),o=n(2734),a=n(93946),d=n(15861),c=n(99226),u=n(66242),x=n(98396),p=n(63730),v=n(67720),h=n(22120),f=n(31812),j=n(67294),Z=n(82229),m=n(29085),g=n(93751),b=n(56456);let y=(0,r.ZP)(c.Z)(e=>{let{theme:l}=e;return{display:"flex",alignItems:"center",padding:l.spacing(6),justifyContent:"space-between"}}),C=e=>{var l;let{open:n,date:r,setDate:C,commentImp:F,comment:w,setComment:k,toggle:D,title:S,positiveText:T,negativeText:P,description:_,sub_description:I,loading:R,onSuccess:U,hideSuccessButton:E=!1}=e,{t:M}=(0,h.$G)(),N=(0,o.Z)(),z=(0,x.Z)(N.breakpoints.up("md")),[A,G]=(0,j.useState)(3);return(0,j.useEffect)(()=>{if(A>0){let e=setInterval(()=>{0===A?clearInterval(e):G(e=>e-1)},1e3);return()=>clearInterval(e)}},[A]),(0,t.jsx)(i.ZP,{open:n,anchor:"top",variant:"temporary",onClose:R?void 0:(e,l)=>D(null),transitionDuration:1e3,sx:{"& .MuiDrawer-paper":{alignItems:"center",backgroundColor:"#00000000",marginTop:0}},ModalProps:{keepMounted:!0},children:(0,t.jsxs)(u.Z,{sx:{width:z?"35%":"98%"},children:[(0,t.jsxs)(y,{sx:{px:4,py:1},children:[(0,t.jsx)(d.Z,{variant:"subtitle1",children:M(null!=S?S:"Confirmation")}),(0,t.jsx)(a.Z,{size:"small",disabled:R,onClick:()=>D(null),sx:{p:"0.3rem",borderRadius:1,color:"text.primary",backgroundColor:"action.selected","&:hover":{backgroundColor:e=>"rgba(".concat(e.palette.customColors.main,", 0.16)")}},children:(0,t.jsx)(p.Z,{icon:"tabler:x",fontSize:"1.1rem"})})]}),(0,t.jsx)(v.Z,{}),(0,t.jsx)(c.Z,{sx:{p:e=>e.spacing(4,6,16),position:"relative",maxHeight:"40vh",overflow:"auto"},children:(0,t.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,t.jsx)(d.Z,{variant:"h6",sx:{fontWeight:200},children:null!=_?_:"Are you sure you want to make changes in selected record?"}),(0,t.jsx)(d.Z,{variant:"body2",sx:{fontWeight:200,mt:2},children:null!=I?I:"You won't able to undo this action once done. Press ".concat((null!=T?T:"Save").toLowerCase()," button.")}),r&&(0,t.jsx)(c.Z,{sx:{mt:4},children:(0,t.jsx)(Z.Z,{children:(0,t.jsx)(m.Z,{date:r,onChange:e=>{C(e)},label:"Date"})})}),!!k&&(0,t.jsx)(c.Z,{sx:{mt:4},children:(0,t.jsx)(b.Z,{fullWidth:!0,multiline:!0,rows:2,type:"text",variant:"outlined",label:(0,t.jsx)(g.Z,{name:"Reason",important:null!=F&&F}),placeholder:M("Reason"),value:null!=w?w:"",onChange:e=>k(null!==(l=e.target.value)&&void 0!==l?l:"")})})]})}),(0,t.jsxs)(c.Z,{sx:{position:"absolute",zIndex:1,bottom:0,width:z?"35%":"98%",borderRadius:"12px",display:"flex",justifyContent:"end",p:2,backgroundColor:e=>e.palette.customColors.tableHeaderBg},children:[!E&&(0,t.jsxs)(f.Z,{disabled:0!==A,loading:R,size:"small",color:"Delete"===T?"error":"success",variant:"contained",onClick:U,sx:{mr:4},children:[M(null!=T?T:"Save"),0!==A?"(".concat(A,")"):""]}),(0,t.jsx)(s.Z,{disabled:R,size:"small",variant:"tonal",color:"Delete"===T?"secondary":"error",onClick:()=>D(null),children:M(null!=P?P:"Close")})]})]})})};l.Z=C},21488:function(e,l,n){"use strict";n.r(l),n.d(l,{__N_SSG:function(){return P},default:function(){return _}});var t=n(85893),i=n(54107),s=n(67294),r=n(6154);let o=(0,s.createContext)({report:null,detail_report:null,loadCorporateData:()=>null}),a=e=>{let{children:l}
1=e,[n,i]=(0,s.useState)(null),a=async e=>{i(null);let l=await r.Z.get("/CorporateTaxReturns/GetDetail/".concat(e));return i(l.data.data),l.data.data},d=(0,s.useMemo)(()=>({report:n,loadCorporateData:a}),[n,a]);return(0,t.jsx)(o.Provider,{value:d,children:l})};var d=n(66242),c=n(51546),u=n(37406);let x=()=>(0,s.useContext)(o);var p=n(33180),v=n(78445),h=n(99226),f=n(67720),j=n(22120),Z=n(11057),m=n(63730),g=n(86501),b=n(1280),y=n(21885),C=n(86886),F=n(15861),w=n(99898),k=n(50613);let D=e=>{var l,n,i,o,a;let{recno:D}=e,{report:S,loadCorporateData:T}=x(),{t:P}=(0,j.$G)(),[_,I]=(0,s.useState)(null),[R,U]=(0,s.useState)(!1),[E,M]=(0,s.useState)(!1),[N,z]=(0,s.useState)(new Date),{defaultCurrency:A}=(0,w.o)();(0,s.useEffect)(()=>(T(D),()=>{}),[D]);let G=async e=>{var l,n,t,i,s,o,a,d,c;e.preventDefault(),U(!0);try{let o={recno:parseInt(D),fileingDate:(0,b.ZP)(N,u.me)},a=null!==(l=null==S?void 0:S.isFiled)&&void 0!==l&&l?await r.Z.put("/CorporateTaxReturns/MarkAsUnFiled/".concat(D)):await r.Z.put("/CorporateTaxReturns/MarkAsFiled",o);if(a.data.isSuccessFull)g.ZP.success("Corporate ".concat((null==S?void 0:S.isFiled)?"Un-Filed":"Filed"," successfully.")),H(),T(D);else{let l=(null===(n=a.response)||void 0===n?void 0:n.message)||(null===(t=a.data)||void 0===t?void 0:t.message)||(null===(i=a.response)||void 0===i?void 0:null===(s=i.data)||void 0===s?void 0:s.message)||e||"";g.ZP.error("Error while ".concat((null==S?void 0:S.isFiled)?"Unfiling":"filing"," corporate!. ").concat(l))}}catch(l){let e=(null===(o=l.response)||void 0===o?void 0:o.message)||(null===(a=l.data)||void 0===a?void 0:a.message)||(null===(d=l.response)||void 0===d?void 0:null===(c=d.data)||void 0===c?void 0:c.message)||l||"";g.ZP.error("Error while ".concat((null==S?void 0:S.isFiled)?"Unfiling":"filing"," corporate!. ").concat(e))}finally{U(!1)}},H=()=>{M(!E)};return(0,t.jsxs)(d.Z,{sx:{height:"calc(100vh - 65px)",m:2},children:[(0,t.jsx)(v.Z,{title:P("Corporate Return"),sx:{p:e=>e.spacing(3,4)},action:(0,t.jsx)(h.Z,{sx:{display:"flex",justifyContent:"end",alignItems:"center"},children:(0,t.jsx)(Z.Z,{onClick:H,variant:"tonal",color:(null==S?void 0:S.isFiled)?"error":"success",children:(null==S?void 0:S.isFiled)?"Mark Un-Filed":"Mark Filed"})})}),(0,t.jsx)(f.Z,{}),(0,t.jsxs)(h.Z,{sx:{height:"calc(100vh - 145px)",overflow:"auto",p:2},children:[(0,t.jsxs)(C.ZP,{container:!0,spacing:12,children:[(0,t.jsx)(C.ZP,{item:!0,xs:12,sm:12,md:8,lg:8,children:(0,t.jsxs)(h.Z,{sx:{borderRadius:"8px",border:e=>"1px solid ".concat(e.palette.divider)},children:[(0,t.jsxs)(h.Z,{sx:{borderRadius:"8px",backgroundColor:"customColors.tableHeaderBg",p:e=>e.spacing(2,4),display:"flex",justifyContent:"space-between"},children:[(0,t.jsxs)(h.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,t.jsx)(m.Z,{icon:"tabler:books"}),(0,t.jsx)(F.Z,{variant:"h6",sx:{ml:2},children:P("ACCOUNTS")})]}),(0,t.jsx)(F.Z,{variant:"h6",children:P("AMOUNTS")})]}),(0,t.jsx)(f.Z,{}),(null!==(l=null==S?void 0:S.data)&&void 0!==l?l:[]).map((e,l)=>{var n,i;return(0,t.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,t.jsxs)(h.Z,{sx:{borderRadius:"8px",p:e=>e.spacing(3,4),display:"flex",justifyContent:"space-between",":hover":e=>({backgroundColor:e.palette.customColors.tableHeaderBg})},children:[(0,t.jsxs)(h.Z,{sx:{display:"flex",alignItems:"start",flexDirection:"column"},children:[(0,t.jsxs)(F.Z,{variant:"h6",sx:{ml:2},children:[e.sequance<7?"".concat(e.sequance,"- "):""," ",P(e.description)]}),(0,t.jsx)(F.Z,{variant:"body2",sx:{ml:2,mt:2,color:"text.disabled"},children:P(null!==(n=e.details)&&void 0!==n?n:"")})]}),(0,t.jsx)(F.Z,{variant:"body2",sx:{fontWeight:600},children:(0,u.xG)(e.amount,null!==(i=null==A?void 0:A.code)&&void 0!==i?i:u.ly)})]}),(0,t.jsx)(f.Z,{})]},l)})]})}),(0,t.jsx)(C.ZP,{item:!0,xs:12,sm:12,md:4,lg:4,children:(0,t.jsxs)(h.Z,{sx:{p:e=>e.spacing(2,4),backgroundColor:"customColors.tableHeaderBg",borderRadius:"12px",display:"flex",flexDirection:"column"},children:[(0,t.jsxs)(h.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsx)(F.Z,{variant:"h6",children:P("Status")}),(0,t.jsx)(k.Z,{rounded:!0,size:"small",skin:"light",color:(null==S?void 0:S.isFiled)?"success":"error",label:(null==S?void 0:S.isFiled)?"Filed":"Un-Filed",sx:{cursor:"pointer","& .MuiChip-label":{textTransform:"capitalize",fontSize:"0.7rem"}}})]}),(0,t.jsxs)(h.Z,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsx)(F.Z,{variant:"h6",children:P("Filing Date")}),(0,t.jsx)(F.Z,{variant:"subtitle2",children:(null==S?void 0:S.fileingDate)?(0,t.jsx)(c.Z,{date:null!==(n=null==S?void 0:S.fileingDate)&&void 0!==n?n:""}):P("Not Filed Yet")})]}),(0,t.jsxs)(h.Z,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsx)(F.Z,{variant:"h6",children:P("Tax Period")}),(0,t.jsxs)(F.Z,{variant:"subtitle2",children:[(null==S?void 0:S.startDate)?(0,t.jsx)(c.Z,{date:null!==(i=null==S?void 0:S.startDate)&&void 0!==i?i:""}):"","-to-",(null==S?void 0:S.endDate)?(0,t.jsx)(c.Z,{date:null!==(o=null==S?void 0:S.endDate)&&void 0!==o?o:""}):""]})]}),(0,t.jsxs)(h.Z,{sx:{mt:4,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsx)(F.Z,{variant:"h5",sx:{color:"text.primary"},children:P("Total Corporate Tax")}),(0,t.jsx)(F.Z,{variant:"h5",sx:{color:"text.primary"},children:(0,u.xG)(null==S?void 0:S.taxAbleAmount,null!==(a=null==A?void 0:A.code)&&void 0!==a?a:u.ly)})]})]})})]}),E&&(0,t.jsx)(y.Z,{date:(null==S?void 0:S.isFiled)?null:N,setDate:(null==S?void 0:S.isFiled)?void 0:z,loading:R,positiveText:"Save",onSuccess:G,title:"".concat((null==S?void 0:S.isFiled)?"Un-Filed":"Filed"," Corporate Return"),open:E,toggle:H,description:"Are you sure you want to ".concat((null==S?void 0:S.isFiled)?"Un-Filed":"Filed"," the corporate? This action cannot be undone."),sub_description:"If you are not ".concat((null==S?void 0:S.isFiled)?"Un-Filed":"Filed"," corporate intentionally click on close button.")}
1)]}),(0,t.jsx)(p.Z,{open:null==S})]})};var S=n(11163);let T=e=>{let{recno:l}=e,n=(0,S.useRouter)(),r=n.query,[o,d]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(!l&&(null==r?void 0:r.recno)){var e;d((0,i.e)("".concat(r.recno)).recno?parseInt("".concat(null!==(e=(0,i.e)("".concat(r.recno)).recno)&&void 0!==e?e:"")):null)}return()=>{}},[l]),(0,t.jsx)(a,{children:(0,t.jsx)(D,{recno:null!=o?o:l})})};T.acl={action:"new",subject:"CorporateTaxReturns"};var P=!0,_=T}},function(e){e.O(0,[3028,49774,92888,40179],function(){return e(e.s=86534)}),_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.