1"use strict";(self.webpackChunkscip_react=self.webpackChunkscip_react||[]).push([[58103],{58103(e,s,t){t.r(s),t.d(s,{default:()=>Y});var l=t(5544),i=t(9950),a=t(28429),n=t(97176),r=t(46114),d=t(52264),c=t(745),o=t(98455),u=t(84084),m=t(87537),h=t(88156),g=t(79469),A=t(42074),p=t(9449),x=t(95961),f=t(20532),I=t(15845),j=t(2119),v=t(44414);const N=e=>{const s=(0,p.mN)(),t=(s.register,s.reset,s.watch,s.control,s.handleSubmit,s.setValue,s.formState.errors,(0,i.useState)(!1)),a=(0,l.A)(t,2),n=(a[0],a[1]),r=(0,i.useState)({}),d=(0,l.A)(r,2),u=d[0],m=d[1];(0,i.useEffect)(()=>{h()},[]);const h=()=>{n(!0);let s={questionType:"profile",userType:"entrepreneur"};s.userId=e.userId?e.userId:o.A.getUserId(),s.adminId=o.A.getAdminId(),c.A.getAPI({action:"/profile-dynamic-data",body:s}).then(e=>{e.list&&m(e),n(!1)}).catch(e=>{})};return(0,v.jsxs)(x.A,{direction:"end",isOpen:e.show,id:"offcanvasExample",toggle:e.onCloseClick,className:"size-xl my-offcanvas-new",children:[(0,v.jsx)(f.A,{className:"bg-light",toggle:e.onCloseClick,children:"Edit Profile"}),(0,v.jsxs)(I.A,{className:"py-0",children:[" ",(0,v.jsx)(j.A,{col:6,formData:null===u||void 0===u?void 0:u.list,sectionId:null===u||void 0===u?void 0:u.sectionId,userId:null===u||void 0===u?void 0:u.userId,apikey:"/profile-entrepreneur-profile-save",onCloseClick:null===e||void 0===e?void 0:e.onCloseClick})]})]})},b=e=>{var s;const t=(0,i.useState)(!1),a=(0,l.A)(t,2),d=(a[0],a[1]),p=(0,i.useState)([]),x=(0,l.A)(p,2),f=x[0],I=x[1],j=(0,i.useState)({name:"",id:0}),b=(0,l.A)(j,2),y=b[0],D=b[1];(0,i.useEffect)(()=>{C()},[]);const C=()=>{d(!0);let s={questionType:"profile",userType:"entrepreneur"};s.userId=e.userId?e.userId:"",s.adminId=o.A.getAdminId(),c.A.getAPI({action:"/profile-dynamic-data",body:s}).then(e=>{e.list&&I(e.list),d(!1)}).catch(e=>{})};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n.A,{className:"g-2",children:(0,v.jsx)(r.A,{md:12,sm:12,children:(0,v.jsxs)(u.A,{className:"mb-0 card-margin",children:[(0,v.jsx)(m.A,{className:"align-items-center card-header",children:(0,v.jsxs)("h4",{className:"card-title card-title mb-0 me-2",children:[null===e||void 0===e||null===(s=e.childData)||void 0===s?void 0:s.name," ",1==e.flagData.editflage&&(0,v.jsx)(A.N_,{to:"#",className:"float-end",children:(0,v.jsx)("i",{className:"ri-pencil-line align-bottom ms-2 ms-2 btn btn-sm btn-light fs-7",title:"Edit",onClick:()=>{D({name:"EDIT"})}})})]})}),(0,v.jsx)(h.A,{children:(0,v.jsx)(g.A,{formData:f,col:6})})]})})}),"EDIT"==y.name&&(0,v.jsx)(N,{show:"EDIT"==y.name,userId:e.userId,modelData:y,onCloseClick:()=>{D({name:"",id:0}),C()}})]})};var y=t(23166),D=t(33483),C=t(65276),E=t(34940),k=t(8081),_=t(61340),T=t(10877),w=t(6754),S=t(57927),O=t(35887);const P=e=>{var s,t,a;const n=(0,p.mN)(),r=(n.register,n.reset,n.watch,n.control,n.handleSubmit,n.setValue,n.formState.errors,(0,i.useState)(!1)),d=(0,l.A)(r,2),u=(d[0],d[1]),m=(0,i.useState)({}),h=(0,l.A)(m,2),g=h[0],A=h[1];(0,i.useEffect)(()=>{N()},[]);const N=()=>{u(!0);let s={questionType:"authorized_signatory",userType:"entrepreneur"};s.userId=e.userId?e.userId:o.A.getUserId(),s.adminId=o.A.getAdminId(),c.A.getAPI({action:"/profile-dynamic-data",body:s}).then(e=>{e.list&&A(e),u(!1)}).catch(e=>{})};return(0,v.jsxs)(x.A,{direction:"end",isOpen:e.show,id:"offcanvasExample",toggle:e.onCloseClick,className:"size-md my-offcanvas-new",children:[(0,v.jsx)(f.A,{className:"bg-light",toggle:e.onCloseClick,children:(e.id&&e.id?"Edit ":"Add ")+"Authorized Signatory"}),(0,v.jsxs)(I.A,{className:"py-0",children:[" ",(0,v.jsx)(j.A,{formData:null===g||void 0===g?void 0:g.list,sectionId:null===g||void 0===g?void 0:g.sectionId,userId:null===g||void 0===g?void 0:g.userId,apikey:"/profile-authorized-signatory-save",id:null===e||void 0===e||null===(s=e.modelData)||void 0===s||null===(t=s.data)||void 0===t?void 0:t.id,data:null===e||void 0===e||null===(a=e.modelData)||void 0===a?void 0:a.data,onCloseClick:null===e||void 0===e?void 0:e.onCloseClick})]})]})},R=e=>{var s;const t=(0,i.useState)([]),a=(0,l.A)(t,2),d=a[0],g=a[1],p=(0,i.useState)([]),x=(0,l.A)(p,2),f=x[0],I=x[1],j=(0,i.useState)(!1),N=(0,l.A)(j,2),b=N[0],R=N[1],F=(0,i.useState)(0),U=(0,l.A)(F,2),z=U[0],M=U[1],L=(0,i.useState)({alert:!1,id:0,img:""}),Y=(0,l.A)(L,2),Z=Y[0],H=Y[1],G=(0,i.useState)({name:"",id:0}),q=(0,l.A)(G,2),B=q[0],V=q[1],Q=(0,i.useState)({alert:!1,id:""}),J=(0,l.A)(Q,2),K=J[0],W=J[1],X=(0,i.useState)(1),$=(0,l.A)(X,2),ee=$[0],se=$[1];(0,i.useEffect)(()=>{te(1)},[]);const te=(s,t)=>{R(!0);let l={};l.offset=s-1,l.investorId=e.userId?e.userId:o.A.getUserId(),t&&(l.keyword=t),l.type="entrepreneur",c.A.getAPI({action:"/profile-authorized-signatory-list",body:l}).then(t=>{if(t&&t.coloumns){var l=[],i={title:"Sr No.",classTitle:"text-center",class:"text-center"};for(var a in l.push(i),t.coloumns){i={title:t.coloumns[a].title,classTitle:"text-center",class:"text-center",input_name:t.coloumns[a].input_name,type:t.coloumns[a].type};l.push(i)}if(1==e.flagData.editflage){l.push({title:"Action",classTitle:"text-center",class:"text-center"})}g(l)}if(I([]),t&&t.list){M(t.count);let e=[];for(var a in t.list){let i=[];for(var n in l)if("Sr No."==l[n].title)i.push({value:0==s?Number(a)+1:10*Number(s-1)+Number(a)+1});else if("Action"==l[n].title)i.push({value:le(t.list[a])});else{var r,d;if("file"==l[n].type)if(t.list[a][l[n].input_name]&&t.list[a][l[n].input_name].image)i.push({value:ie({url:null===(r=t.list[a][l[n].input_name])||void 0===r?void 0:r.image,type:"image",name:null===(d=l[n])||void 0===d?void 0:d.title})});else if(t.list[a][l[n].input_name]&&t.list[a][l[n].input_name].link){var c,o;i.push({value:ie({url:null===(c=t.list[a][l[n].input_name])||void 0===c?void 0:c.link,type:"link",
1name:null===(o=l[n])||void 0===o?void 0:o.title})})}else i.push({value:""});else i.push({value:t.list[a][l[n].input_name]})}e.push({data:i}),I([...e])}}R(!1),se(s)}).catch(e=>{})},le=s=>(0,v.jsxs)(v.Fragment,{children:[" ",1==e.flagData.editflage&&(0,v.jsx)("ul",{className:"list-inline gap-2 mb-0",children:(0,v.jsx)("li",{className:"list-inline-item",children:(0,v.jsxs)(y.A,{children:[(0,v.jsx)(D.A,{href:"#",className:"btn btn-soft-secondary btn-sm dropdown",tag:"button",children:(0,v.jsx)("i",{className:"ri-more-fill align-middle"})}),(0,v.jsxs)(C.A,{container:"body",className:"dropdown-menu-end",children:[(0,v.jsxs)(E.A,{onClick:e=>V({name:"ADDATHORIZATION",data:s}),children:[(0,v.jsx)("i",{className:"ri-edit-box-line align-middle me-1"}),"Edit"]}),(0,v.jsxs)(E.A,{onClick:()=>W({alert:!0,id:s.id,userId:s.userId}),children:[(0,v.jsx)("i",{className:"ri-delete-bin-line align-bottom me-2"}),"Delete"]})]})]})})})]}),ie=e=>(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("ul",{className:"list-inline gap-2 mb-0",children:["link"==e.type&&(0,v.jsx)("li",{className:"list-inline-item",children:e.url&&(0,v.jsx)("i",{className:"ri-download-2-line align-bottom ms-2 fs-16",onClick:()=>{window.open(e.url)}})}),"image"==e.type&&(0,v.jsx)("li",{className:"list-inline-item",children:e.url&&(0,v.jsx)("span",{className:"badge-soft-success fs-12 badge ",onClick:()=>{H({alert:!0,id:0,img:e.url})},children:"Document"})})]})});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n.A,{className:"g-2",children:(0,v.jsx)(r.A,{md:12,sm:12,children:(0,v.jsxs)(u.A,{className:" card-margin",children:[(0,v.jsx)(m.A,{className:"align-items-center card-header",children:(0,v.jsx)("h4",{className:"card-title card-title mb-0 me-2",children:null===e||void 0===e||null===(s=e.childData)||void 0===s?void 0:s.name})}),(0,v.jsxs)(h.A,{style:{marginTop:"-20px"},children:[1==e.flagData.editflage&&(0,v.jsxs)("div",{className:"d-flex justify-content-between h-100",children:[(0,v.jsx)("div",{className:"fs-14 my-auto"}),(0,v.jsx)("div",{children:(0,v.jsx)(A.N_,{to:"#",title:"Add",className:"btn btn-brand-theme",onClick:()=>{V({name:"ADDATHORIZATION"})},children:"Add"})})]}),(0,v.jsx)("div",{className:"px-3 mt-3",children:(0,v.jsx)("div",{className:"table-card",children:(0,v.jsx)(S.A,{headers:d,rows:f,count:z,errorMessage:"No Data Found",ShowLoader:b,onPageChange:(e,s)=>{te(e,s),se(e)},currentPage:ee})})})]})]})})}),(0,v.jsxs)(k.A,{size:"xl",isOpen:Z.alert,centered:!0,children:[(0,v.jsx)(_.A,{className:"mb-2",toggle:()=>H({alert:!1,id:0,img:""}),children:"Proof Of Address"}),(0,v.jsx)(T.A,{children:(0,v.jsx)("img",{className:"Imgcenter",src:Z.img,width:200,height:200})}),(0,v.jsx)(w.A,{className:"border-top p-2",children:(0,v.jsx)("div",{className:"hstack gap-2 justify-content-end",children:(0,v.jsx)("button",{type:"button",className:"btn btn-light",onClick:()=>H({alert:!1,id:0,img:""}),children:"Cancel"})})})]}),"ADDATHORIZATION"==B.name&&(0,v.jsx)(P,{show:"ADDATHORIZATION"==B.name,userId:e.userId,modelData:B,onCloseClick:()=>{V({name:"",id:0}),te(1)}}),(0,v.jsxs)(k.A,{size:"md",isOpen:K.alert,centered:!0,children:[(0,v.jsx)(_.A,{className:"mb-2",toggle:()=>W({alert:!1,id:0}),children:"Are you sure you want to do this action?"}),(0,v.jsx)(w.A,{className:"border-top p-2",children:(0,v.jsxs)("div",{className:"hstack gap-2 justify-content-end",children:[(0,v.jsx)("button",{type:"button",className:"btn btn-light",onClick:()=>W({alert:!1,id:0}),children:"Cancel"}),(0,v.jsx)("button",{type:"submit",id:"workflow-modal-submit-btn",className:"btn btn-primary",onClick:()=>(e=>{let s={};s.id=e.id,s.userId=e.userId,c.A.postAPI({action:"/profile-authorized-signatory-delete",body:s}).then(e=>{var s;e&&(O.Ay.success(e.message),W({alert:!1,id:0}),null===(s=document.getElementById("after-update-anything-entre-detail"))||void 0===s||s.click(),te(1))}).catch(e=>{})})(K),children:"Ok"})]})})]})]})};var F=t(34566),U=t(30160),z=t(86898),M=t(32126),L=t(45075);const Y=e=>{document.title="".concat((0,d.P_)()," | Profile");const s=(0,i.useState)([]),t=(0,l.A)(s,2),u=t[0],m=t[1],h=window.location.search,g=(0,a.Zp)();(0,i.useEffect)(()=>{A()},[window.location.pathname]);const A=()=>{var e={page:"ENTREPRENEUR_PROFILE_PAGE",page_type:"ENTREPRENEUR_PROFILE_PAGE"};c.A.getAPI({action:"/deal-page-layout",body:e}).then(async e=>{var s=window.location.pathname,t="",l="";for(var i in e.result){if(s==e.result[i].url){t=e.result[i].page,l=e.result[i].section,e.result[i].menuId;break}for(var a in e.result[i].sub_section)if(s==e.result[i].sub_section[a].url){t=e.result[i].sub_section[a].page,l=e.result[i].sub_section[a].section;break}}"/ent-profile"==s&&(e.result[0]&&0==e.result[0].sub_section.length?(g(e.result[0].url+h),t=e.result[0].page,l=e.result[0].section,e.result[0].menuId):e.result[0]&&e.result[0].sub_section.length>0&&(g(e.result[0].sub_section[0].url+h),t=e.result[0].sub_section[0].page,l=e.result[0].sub_section[0].section)),t&&l&&p(t,l)}).catch(e=>{})},p=(e,s)=>{if(e&&s){var t={};t.page=e,t.section=s,t.userId=o.A.getUserId(),t.page_type="ENTREPRENEUR_PROFILE_PAGE",c.A.getAPI({action:"/deal-page-layout",body:t}).then(async e=>{m(e.result)}).catch(e=>{})}};return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(i.Fragment,{children:u&&u.length>0&&u.map(s=>(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(n.A,{className:"ml-3",children:s&&s.child&&s.child.length>0&&s.child.map(t=>(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(r.A,{lg:s.child&&s.child.length>1?s.child&&s.child.length>2?s.child&&s.child.length>3?3:4:6:12,className:"mb-0",children:["PROFILE"==t.section&&(0,v.jsx)(b,{userId:e.userId,childData:t,flagData:e.flagData}),"AUTHORIZED_SIGNATORY"==t.section&&(0,v.jsx)(R,{userId:e.userId,childData:t,flagData:e.flagData}
1),"DYNAMIC"==t.type&&"DYNAMIC"==t.section&&(0,v.jsx)(F.A,{userId:e.userId,childData:t}),"TABLE_SECTION"==t.section&&(0,v.jsx)(U.A,{childData:t,userId:e.userId}),"COMPANY_SECTION"==t.section&&(0,v.jsx)(z.A,{childData:t}),"COMPANY_SUMMARY_CARD"==t.section&&(0,v.jsx)(M.A,{userId:e.userId,childData:t}),"QUESTION"==t.section&&(0,v.jsx)(L.A,{userId:e.userId,childData:t})]})}))})}))})})}}}]);
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.