PageSourceSearch

https://beta.workstedi.com/_next/static/chunks/pages/KYC/otherOwners-7072839c9e752bf5.js

js workstedi.com collected 2026-09-24 15:00:03 UTC 14,092 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5586],{4431:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var i=t(r(64938)),s=r(85893);n.Z=(0,i.default)((0,s.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"AddOutlined")},52778:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var i=t(r(64938)),s=r(85893);n.Z=(0,i.default)((0,s.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined")},75503:function(e,n,r){"use strict";var t=r(64836);n.Z=void 0;var i=t(r(64938)),s=r(85893);n.Z=(0,i.default)((0,s.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},66429:function(e,n,r){"use strict";var t=r(67294),i=r(64666),s=r(80822),a=r(15861),o=r(25662),l=r(35294),c=r(18972),d=r(48885),u=r(59334),x=r(15715),h=r(59384),p=r(31499),m=r(93429),f=r(85893);n.Z=function(e){var n=e.showMessage,r=e.color,j=n.message,g=(n.open,n.onClick1),v=n.onClick2,b=n.type,Z=n.hideButton2,y=n.handleCloseMessage,C=(0,t.useState)(null),w=C[0],_=C[1],handleClose2=function(){_(null)},k=(0,t.useState)(!1),F=k[0],S=k[1];return(0,f.jsxs)(i.Z,{maxWidth:"md",sx:{float:"right","& .MuiDialog-paper":{padding:{xs:"0px",md:"20px 10px"}}},open:!0,onClose:y,children:[(0,f.jsx)(s.Z,{sx:{width:"100%",padding:"3rem 1.5rem ",borderRadius:"12px",background:"white",boxShadow:"0px 0px 10px rgba(0, 0, 0, 0.5)"},children:"success"===(void 0===b?"success":b)?(0,f.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[(0,f.jsx)("img",{src:"/assets/check.svg",alt:"Success"}),(0,f.jsx)(a.Z,{variant:"",sx:{fontWeight:600,fontSize:{xs:20,sm:28}},children:"Verification in Progress"}),(0,f.jsx)(s.Z,{sx:{marginTop:"1rem"},children:(0,f.jsx)(o.Z,{variant:"contained",sx:{backgroundColor:"#F97316",color:"#FFF",cursor:"pointer",textTransform:"uppercase",fontSize:{xs:14,sm:16},width:"min(360px, 100%)",padding:{xs:"0.6rem 4rem"},borderRadius:"20px","&:hover":{backgroundColor:"#FFB74D"},whiteSpace:"nowrap"},onClick:g,children:"Continue with app"})})]}):(0,f.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"},children:[(0,f.jsx)("img",{src:"/assets/dissatisfied.svg",alt:"dissatify",style:{marginBottom:30}}),(0,f.jsx)(a.Z,{variant:"",sx:{fontWeight:600,fontSize:{xs:20,sm:28}},children:"Verification Failed"}),(0,f.jsx)(a.Z,{variant:"body1",sx:{color:"rgba(0,0,0,0.6)",textAlign:"center"},children:j||" Ensure name and date of birth match your ID"}),(0,f.jsx)(s.Z,{sx:{marginTop:"1rem"},children:!Z&&(0,f.jsx)(o.Z,{variant:"contained",sx:{backgroundColor:r,color:"#FFF",cursor:"pointer",textTransform:"uppercase",fontSize:{xs:14,sm:16},width:"min(360px,100%)",padding:{xs:"0.6rem 4rem"},borderRadius:"20px","&:hover":{backgroundColor:r},whiteSpace:"nowrap"},onClick:v,children:"try again"})}),(0,f.jsx)(o.Z,{onClick:function(e){_(e.currentTarget)},children:(0,f.jsx)(a.Z,{variant:"",sx:{color:r,fontSize:16,textDecoration:"underline",cursor:"pointer",mt:"20px"},children:"Contact Customer Support"})})]})}),(0,f.jsx)(x.Z,{color:"#f28628",openModal:F,handleCloseFormModal:function(){S(!1)}}),(0,f.jsxs)(l.Z,{id:"basic-menudd",anchorEl:w,open:!!w,onClose:handleClose2,MenuListProps:{"aria-labelledby":"basic-button"},sx:{zIndex:0x2388f7d685238e},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:[(0,f.jsx)("a",{style:{color:"black",textDecoration:"none"},rel:"noreferrer",target:"_blank",href:"https://wa.link/mz1xr4",children:(0,f.jsxs)(c.Z,{onClick:function(){return(0,h.jq)("Log complaint -WhatsApp selected",{type:"Process Completed"})},children:[(0,f.jsx)(d.Z,{children:(0,f.jsx)(m.Z,{fontSize:"small"})}),(0,f.jsx)(u.Z,{children:"WhatsApp"})]})}),(0,f.jsxs)(c.Z,{onClick:function(){(0,h.jq)("Log complaint - Email route",{type:"Process Started"}),handleClose2(),S(!0)},children:[(0,f.jsx)(d.Z,{children:(0,f.jsx)(p.Z,{fontSize:"small"})}),(0,f.jsx)(u.Z,{children:"Email"})]})]})]})}},37310:function(e,n,r){"use strict";var t=r(89609),i=r(67294),s=r(25617),a=r(11163),o=r(9008),l=r.n(o),c=r(85893);n.Z=function(e){var n=e.children,r=e.useMaxWidth,o=(0,s.v9)(function(e){return null==e?void 0:e.user}),d=(0,a.useRouter)();return(0,i.useEffect)(function(){document.title="KYC Verification"},[]),null!=o&&o.id||d.push("/login"),(null==o?void 0:o.kyc_status)===1&&d.push("/".concat(null==o?void 0:o.activeRole,"/dashboard")),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l(),{children:(0,c.jsx)("title",{children:"KYC Verification"})}),(0,c.jsx)(t.Z,{sx:void 0===r||r?{"@media (min-width: 2000px)":{maxWidth:"2050px",flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center",margin:"0 auto"}}:{},children:n})]})}},28362:function(e,n,r){"use strict";r.r(n);var t=r(50029),i=r(59499),s=r(27812),a=r(87794),o=r.n(a),l=r(67294),c=r(33834),d=r(80822),u=r(15861),x=r(50456),h=r(86886),p=r(50135),m=r(52778),f=r(4431),j=r(11163),g=r(19726),v=r(25617),b=r(63455),Z=r(31812),y=r(66429),C=r(82336
1),w=r(22548),_=r(75503),k=r(37310),F=r(85893);function ownKeys(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(r),!0).forEach(function(n){(0,i.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}n.default=function(){var e,n=(0,j.useRouter)(),r=(0,v.I0)(),i=(0,v.v9)(function(e){return null==e?void 0:e.user}),a=n.query,S=(0,l.useRef)(!0),O=(0,l.useState)(!1),z=O[0],P=O[1],T=(0,l.useState)(!1),D=T[0],E=T[1],A=(0,v.v9)(function(e){var n;return(null===(n=e.misc)||void 0===n?void 0:n.kyc)||{}}),M=A.id,R=A.other_applicants,W=4-((null==R?void 0:R.length)||0);(null==i?void 0:i.user_type)!="company"&&n.push("/".concat(i.activeRole,"/dashboard"));var K=(0,l.useState)([{full_name:"",email:""}]),I=K[0],N=K[1],B=(0,l.useState)({}),V=B[0],Y=B[1],handleDeletePerson=function(e){if(e){var n=(0,s.Z)(I);n.splice(e,1),N(n)}},H=I.length<W,handleFieldChange=function(e,n,r){if(e>=0){var t=(0,s.Z)(I),i=_objectSpread({},t[e]);i[n]=r,t.splice(e,1,i),N(t),S.current||validate(t)}},q=(e=(0,t.Z)(o().mark(function _callee(){var e,t,s,l,c,d,u;return o().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(S.current=!1,validate(I)){o.next=3;break}return o.abrupt("return");case 3:if(E(!0),P(),e={},null!=a&&a.values&&(e=JSON.parse(null==a?void 0:a.values)),"company"==i.user_type&&delete e.owner_type,t=I.map(function(e){var n=e.full_name.split(" ");return _objectSpread(_objectSpread({},e),{},{first_name:n[0],last_name:n[1]})}),console.info({values:e}),M){o.next=17;break}return o.next=14,(0,b.rK)(_objectSpread(_objectSpread({},e),{},{other_applicants:t}));case 14:o.sent,o.next=20;break;case 17:return o.next=19,(0,b.G5)({remove_applicants:[],add_applicants:t});case 19:o.sent;case 20:return o.next=22,(0,b.G5)({remove_applicants:[],add_applicants:I.map(function(e){var n=e.full_name.split(" ");return _objectSpread(_objectSpread({},e),{},{first_name:n[0],last_name:n[1]})})});case 22:if(l=(s=o.sent).success,c=s.resData,d=s.error,!(l&&c)){o.next=32;break}return o.next=29,Promise.all([r((0,C.BT)()),r((0,w.nm)())]);case 29:P({open:open,message:"kyc Updated",onClick1:function(){return n.push("/".concat(i.activeRole,"/dashboard"))},button1Text:"Continue",button2Text:"Home",hideButton2:!1,handleCloseMessage:function(){n.push("/".concat(i.activeRole,"/dashboard")),P()}}),o.next=33;break;case 32:P({message:null===(u=(0,g.nU)(d))||void 0===u?void 0:u.replace("_"," "),open:open,onClick1:function(){return P()},onClick2:function(){return q(e)},type:"error",button1Text:"Continue",button2Text:"Retry",handleCloseMessage:function(){return P()}});case 33:E(!1);case 34:case"end":return o.stop()}},_callee)})),function(){return e.apply(this,arguments)}),validate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n={};return e.forEach(function(e,r){Object.keys(e).map(function(t){"email"!=t||/^\S+@\S+\.\S+$/.test(e[t])||(n[r+t]="invalid email address"),("full_name"==t&&e[t].split(" ").length<2||e[t].split(" ").length>2)&&(n[r+t]="invalid full name"),""==e[t]&&(n[r+t]="this field is required ")})}),console.info({tempErrors:0==Object.keys(n).length}),Y(n),0==Object.keys(n).length},L=(0,l.useState)([0,1,2,3]),U=L[0],G=L[1],togglePersonExpansion=function(e){U.includes(e)?G(U.filter(function(n){return n!==e})):G([].concat((0,s.Z)(U),[e]))};return(0,F.jsxs)(k.Z,{children:[(0,F.jsx)(c.Z,{}),(0,F.jsxs)(d.Z,{sx:{padding:{xs:"7rem 1rem",md:"7rem 2rem",lg:"8rem 14rem"},display:"flex",flexDirection:"column",justifyContent:"center",maxWidth:"2000px"},children:[(0,F.jsx)(d.Z,{children:(0,F.jsx)(u.Z,{variant:"h3",children:"One last thing!"})}),(0,F.jsxs)(d.Z,{sx:{width:{xs:"100%",sm:"700px"},margin:"2rem 0 1rem 0"},children:[(0,F.jsx)(u.Z,{variant:"h5",children:"Add other Owners"}),(0,F.jsx)(u.Z,{variant:"body4",children:"You can add a maximum of 4 people who own 25% of the company. An email will be sent to them to complete their verification and claim ownership. Or you can send a designated link and let them verify."})]}),(0,F.jsx)(x.Z,{smDown:!0,children:I.map(function(e,n){return(0,F.jsxs)(d.Z,{sx:{marginTop:"2rem"},children:[(0,F.jsxs)(u.Z,{variant:"body1",sx:{fontSize:18},children:["Person ",n+1]}),(0,F.jsxs)(h.ZP,{container:!0,spacing:4,children:[(0,F.jsx)(h.ZP,{item:!0,xs:12,sm:4,children:(0,F.jsxs)(d.Z,{children:[(0,F.jsxs)(u.Z,{variant:"h6",sx:{fontWeight:"600"},children:["Full Name"," ",(0,F.jsx)("span",{style:{color:"#f90217"},children:"*"})]}),(0,F.jsx)(p.Z,{helperText:V[n+"full_name"]||"Please input the first name first",label:"Full name",id:"outlined-size-small",size:"normal",sx:{width:"100%"},value:e.full_name,onChange:function(e){return handleFieldChange(n,"full_name",e.target.value)},error:V[n+"full_name"]})]})}),(0,F.jsx)(h.ZP,{item:!0,xs:12,sm:4,children:(0,F.jsxs)(d.Z,{children:[(0,F.jsxs)(u.Z,{variant:"h6",sx:{fontWeight:"600"},children:["Email Address"," "]}),(0,F.jsx)(p.Z,{label:"Email address",id:"outlined-size-small",size:"normal",sx:{width:"100%"},value:e.email,error:V[n+"email"],helperText:V[n+"email"],onChange:function(e){return handleFieldChange(n,"email",e.target.value)}})]})}),(0,F.jsx)(h.ZP,{item:!0,xs:12,sm:4,children:(0,F.jsx)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"280px",mt:"35px"},children:(0,F.jsx)(m.Z,{sx:{height:25,width:25,color:"#FF3F31",cursor:"pointer",ml:"-20px"},onClick:function(){return handleDeletePerson(n)}})})})]})]},n)})}),(0,F.jsx)(x.Z,{smUp:!0,children:I.map(function(e,n){return(0,F.jsxs)(d.Z,{sx:{border:"1px solid #e5e7eb",borderRadius:"20px",padding:"12px 15px",mb:"2rem"},children:[(0,F.jsxs)(d.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,F.jsxs)(u.Z,{variant:"",sx:{fontSize:18},children:["Person ",n+1]}),(0,F.jsxs)(d.Z,{sx:{display:"flex"},children:[(0,F.jsx)(m.Z,{sx:{height:20,width:20,color:"#FF3F31",cursor:"pointer"},onClick:function(){return handleDeletePerson(n)}}),(0,F.jsx)(_.Z,{sx:{cursor:"pointer",transform:U.includes(n)?"rotate(180deg)":null},onClick:function(){return togglePersonExpansion(n)}})]})]}),U.includes(n)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(d.Z,{sx:{mt:"15px"},children:[(0,F.jsxs)(u.Z,{variant:"",sx:{fontSize:15,fontWeight:600},children:["First Name"," ",(0,F.jsx)("span",{style:{color:"#f90217"},children:"*"})]}),(0,F.jsx)(p.Z,{helperText:V[n+"full_name"]||"Please input first name first",label:"Full name",id:"outlined-size-small",size:"small",sx:{width:"100%"},value:e.full_name,onChange:function(e){return handleFieldChange(n,"full_name",e.target.value)},error:V[n+"full_name"]})]}),(0,F.jsx)(d.Z,{sx:{margin:"12px 0"}}),(0,F.jsxs)(d.Z,{children:[(0,F.jsx)(u.Z,{variant:"",sx:{fontSize:15,fontWeight:600},children:"Email Address"}),(0,F.jsx)(p.Z,{label:"Email Address",id:"outlined-size-small",size:"small",sx:{width:"100%"},value:e.email,error:V[n+"email"],helperText:V[n+"email"],onChange:function(e){return handleFieldChange(n,"email",e.target.value)}})]})]})]},n)})}),(0,F.jsxs)(d.Z,{sx:{display:"flex",marginTop:"1rem",justifyContent:"space-between"},children:[(0,F.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",marginTop:{xs:"0px",sm:"-90px"},opacity:H?1:.5},onClick:H?function(){I.length<W&&N(function(e){return[].concat((0,s.Z)(e),[{full_name:"",email:""}])})}:null,children:[(0,F.jsx)(f.Z,{sx:{color:H?"#3FA9FD":"#A4A9AB",cursor:H?"pointer":"not-allowed"}}),(0,F.jsx)(u.Z,{variant:"",sx:{fontSize:15,color:H?"#3FA9FD":"#A4A9AB",cursor:H?"pointer":"not-allowed"},children:"Add new person"})]}),(0,F.jsx)(x.Z,{smDown:!0,children:(0,F.jsx)(Z.Z,{variant:"contained",sx:{backgroundColor:"#F97316",color:"#FFF",cursor:"pointer",padding:{xs:"0.6rem 3rem",sm:"0.6rem 4rem"},borderRadius:"20px",marginTop:"100px","&:hover":{backgroundColor:"#F97316"}},loading:D,onClick:q,children:(0,F.jsx)(u.Z,{variant:"body3",sx:{textTransform:"uppercase",fontWeight:700},children:"Track KYC"})})})]}),(0,F.jsx)(x.Z,{smUp:!0,children:(0,F.jsx)(Z.Z,{variant:"contained",sx:{backgroundColor:"#F97316",color:"#FFF",cursor:"pointer",padding:{xs:"0.6rem 3rem",sm:"0.6rem 4rem"},borderRadius:"20px",marginTop:"100px",width:"100%","&:hover":{backgroundColor:"#F97316"}},loading:D,onClick:q,children:(0,F.jsx)(u.Z,{variant:"body3",sx:{textTransform:"uppercase",fontWeight:700},children:"Track KYC"})})}),z&&(0,F.jsx)(y.Z,{showMessage:z})]})]})}},79668:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/KYC/
1otherOwners",function(){return r(28362)}])}},function(e){e.O(0,[4885,7456,8780,5300,6886,5675,3009,4134,135,5200,6621,1130,8117,1664,456,3163,317,9837,3834,9774,2888,179],function(){return e(e.s=79668)}),_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.