PageSourceSearch

https://www.elevolt.co.ke/_next/static/chunks/7493-a9bff6db685ba884.js

js elevolt.co.ke collected 2026-10-04 21:46:20 UTC 35,000 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1c77bdfb-33c1-479c-abec-3494b274e865",e._sentryDebugIdIdentifier="sentry-dbid-1c77bdfb-33c1-479c-abec-3494b274e865")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7493],{49978:function(e,t,r){r.d(t,{cE:function(){return N},RS:function(){return k},TD:function(){return R},pm:function(){return K},L5:function(){return et},Yz:function(){return O}});var s=r(52322),l=r(47023),i=r(65232),n=r(63798),a=r(95254),o=r(59417),d=r(99603),c=r(13980),u=r.n(c),m=r(2784),x=r(63955),p=r(88883),g=r(5120);let b=g.Ryn({line1:g.Z_8().min(1,"Address line 1 is required"),line2:g.Z_8().optional(),city:g.Z_8().min(1,"City is required"),state:g.Z_8().optional(),postal_code:g.Z_8().min(1,"Postal code is required"),country:g.Z_8().min(1,"Country is required")}),f=g.Ryn({legal_business_name:g.Z_8().min(1,"Legal business name is required"),trading_name:g.Z_8().optional(),registration_number:g.Z_8().min(1,"Registration number is required"),tax_id:g.Z_8().optional(),business_type:g.Z_8().min(1,"Business type is required"),industry:g.Z_8().optional(),established_date:g.Z_8().optional(),employee_count:g.G0j([g.Z_8(),g.Rxh()]).optional(),contact_name:g.Z_8().min(1,"Contact name is required"),contact_email:g.Z_8().min(1,"Contact email is required").email("Please enter a valid email address"),contact_phone:g.Z_8().optional(),contact_job_title:g.Z_8().optional(),registered_address:b}),v=g.Ryn({documentType:g.Z_8().min(1,"Please select a document type"),file:g.PGm(e=>e instanceof File,{message:"Please select a file to upload"})});g.Ryn({reason:g.Z_8().min(1,"Rejection reason is required"),notes:g.Z_8().optional()}),g.Ryn({notes:g.Z_8().min(1,"Please specify what additional information is needed")}),g.Ryn({search:g.Z_8().optional(),status:g.Z_8().optional()});let h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,x.cI)({resolver:(0,p.F)(f),mode:"onBlur",defaultValues:{legal_business_name:"",trading_name:"",registration_number:"",tax_id:"",business_type:"",industry:"",established_date:"",employee_count:"",contact_name:"",contact_email:"",contact_phone:"",contact_job_title:"",registered_address:{line1:"",line2:"",city:"",state:"",postal_code:"",country:""},...e}})},y=()=>(0,x.cI)({resolver:(0,p.F)(v),mode:"onChange",defaultValues:{documentType:"",file:null}}),j=[{value:"",label:"Select Business Type"},{value:"sole_proprietorship",label:"Sole Proprietorship"},{value:"partnership",label:"Partnership"},{value:"limited_company",label:"Limited Company"},{value:"public_company",label:"Public Company"},{value:"non_profit",label:"Non-Profit"},{value:"government",label:"Government"},{value:"other",label:"Other"}],_=e=>{let{verification:t,onSave:r,isSaving:c,canEdit:u}=e,{control:p,handleSubmit:g,reset:b,formState:{errors:f}}=h();(0,m.useEffect)(()=>{if(t){var e,r,s,l,i,n;b({legal_business_name:t.legal_business_name||"",trading_name:t.trading_name||"",registration_number:t.registration_number||"",tax_id:t.tax_id||"",business_type:t.business_type||"",industry:t.industry||"",established_date:t.established_date||"",employee_count:t.employee_count||"",contact_name:t.contact_name||"",contact_email:t.contact_email||"",contact_phone:t.contact_phone||"",contact_job_title:t.contact_job_title||"",registered_address:{line1:(null===(e=t.registered_address)||void 0===e?void 0:e.line1)||"",line2:(null===(r=t.registered_address)||void 0===r?void 0:r.line2)||"",city:(null===(s=t.registered_address)||void 0===s?void 0:s.city)||"",state:(null===(l=t.registered_address)||void 0===l?void 0:l.state)||"",postal_code:(null===(i=t.registered_address)||void 0===i?void 0:i.postal_code)||"",country:(null===(n=t.registered_address)||void 0===n?void 0:n.country)||""}})}},[t,b]);let v=g(e=>{r(e)});return(0,s.jsxs)(i.ZP,{children:[(0,s.jsx)(i.Ol,{children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.G,{className:"text-blue-600",icon:o.P88,size:"sm"}),(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Business Information"})]})}),(0,s.jsx)(i.eW,{children:(0,s.jsxs)("form",{onSubmit:v,children:[(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"legal_business_name",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.legal_business_name)||void 0===t?void 0:t.message,label:"Legal Bu
1siness Name",placeholder:"Enter legal business name",required:!0,type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"trading_name",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.trading_name)||void 0===t?void 0:t.message,label:"Trading Name",placeholder:"Enter trading name (if different)",type:"text"})}})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registration_number",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.registration_number)||void 0===t?void 0:t.message,label:"Registration Number",placeholder:"Enter business registration number",required:!0,type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"tax_id",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.tax_id)||void 0===t?void 0:t.message,label:"Tax ID",placeholder:"Enter tax identification number",type:"text"})}})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"business_type",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(n.P,{...r,disabled:!u,error:null===(t=f.business_type)||void 0===t?void 0:t.message,label:"Business Type",options:j,required:!0})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"industry",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.industry)||void 0===t?void 0:t.message,label:"Industry",placeholder:"Enter industry sector",type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"established_date",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.established_date)||void 0===t?void 0:t.message,label:"Established Date",type:"date"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"employee_count",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.employee_count)||void 0===t?void 0:t.message,label:"Number of Employees",placeholder:"Enter approximate number of employees",type:"number"})}})})]})]}),(0,s.jsx)("hr",{className:"my-6"}),(0,s.jsx)("h4",{className:"text-md font-semibold text-gray-900 mb-4",children:"Contact Information"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"contact_name",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.contact_name)||void 0===t?void 0:t.message,label:"Contact Name",placeholder:"Enter authorized contact name",required:!0,type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"contact_email",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.contact_email)||void 0===t?void 0:t.message,label:"Contact Email",placeholder:"Enter contact email",required:!0,type:"email"})}})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"contact_phone",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.contact_phone)||void 0===t?void 0:t.message,label:"Contact Phone",placeholder:"Enter contact phone number",type:"tel"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"contact_job_title",render:e=>{var t;let{field:r}=e;return(0,s.jsx)(a.o,{...r,disabled:!u,error:null===(t=f.contact_job_title)||void 0===t?void 0:t.message,label:"Contact Job Title",placeholder:"Enter contact job title",type:"text"})}})})]}),(0,s.jsx)("hr",{className:"my-6"}),(0,s.jsx)("h4",{className:"text-md font-semibold text-gray-900 mb-4",children:"Registered Business Address"}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registered_address.line1",render:e=>{var t,r;let{field:l}=e;return(0,s.jsx)(a.o,{...l,disabled:!u,error:null===(r=f.registered_address)||void 0===r?void 0:null===(t=r.line1)||void 0===t?void 0:t.message,label:"Address Line 1",placeholder:"Enter street address",required:!0,type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registered_address.line2",render:e=>{var t,r;let{field:l}=e;return(0,s.jsx)(a.o,{...l,disabled:!u,error:null===(r=f.registered_address)||void 0===r?void 0:null===(t=r.line2)||void 0===t?void 0:t.message,label:"Address Line 2",placeholder:"Enter apartment, suite, etc. (optional)",type:"text"})}})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registered_address.city",render:e=>{var t,r;let{field:l}=e;return(0,s.jsx)(a.o,{...l,disabled:!u,error:null===(r=f.registered_address)||void 0===r?void 0:null===(t=r.city)||void 0===t?void 0:t.message,label:"City",placeholder:"Enter city",required:!0,type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registered_address.state",render:e=>{var t,r;let{field:l}=e;return(0,s.jsx)(a.o,{...l,disabled:!u,error:null===(r=f.registered_address)||void 0===r?void 0:null===(t=r.state)||void 0===t?void 0:t.message,label:"State/Province",placeholder:"Enter state or province",type:"text"})}})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registered_address.postal_code",render:e=>{var t,r;let{field:l}=e;return(0,s.jsx)(a.o,{...l,disabled:!u,error:null===(r=f.registered_address)||void 0===r?void 0:null===(t=r.postal_code)||void 0===t?void 0:t.message,label:"Postal Code",placeholder:"Enter postal code",required:!0,type:"text"})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"registered_address.country",render:e=>{var t,r;let{field:l}=e;return(0,s.jsx)(a.o,{...l,disabled:!u,error:null===(r=f.registered_address)||void 0===r?void 0:null===(t=r.country)||void 0===t?void 0:t.message,label:"Country",placeholder:"Enter country",required:!0,type:"text"})}})})]}),!!u&&(0,s.jsx)("div",{className:"flex justify-end pt-4",children:(0,s.jsx)("div",{className:"w-full md:w-auto",children:(0,s.jsxs)(l.Z,{design:"primary",disabled:c,fullWidth:!0,loading:c,type:"submit",children:[(0,s.jsx)(d.G,{className:"mr-2",icon:o.r6l}),"Save Business Information"]})})})]})]})})]})};_.propTypes={verification:u().object,onSave:u().func.isRequired,isSaving:u().bool,canEdit:u().bool};var N=_,w=r(62202);let q=e=>[...e.map(e=>({value:e.type,label:e.name})),{value:"other",label:"Other Document"}],C=e=>{let{requirements:t,uploadedDocuments:r=[],onUpload:a,isUploading:c,canEdit:u}=e,{control:p,handleSubmit:g,reset:b,watch:f}=y(),v=(0,m.useRef)(null),h=f("file"),j=e=>["application/pdf","image/jpeg","image/png"].includes(e.type)?!(e.size>10485760)||(w.default.error("File size must not exceed 10MB."),!1):(w.default.error("File must be a PDF or image (JPG, PNG)."),!1),_=g(e=>{a({file:e.file,documentType:e.documentType}),b(),v.current&&(v.current.value="")}
1),N=(null==t?void 0:t.required_documents)||[],C=r.map(e=>e.document_type),R=q(N);return(0,s.jsxs)(i.ZP,{children:[(0,s.jsx)(i.Ol,{children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.G,{className:"text-blue-600",icon:o.Y9i}),(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Upload Documents"})]})}),(0,s.jsxs)(i.eW,{children:[!!u&&(0,s.jsxs)("div",{className:"mb-6 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Upload a Document"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4",children:[(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"documentType",render:e=>{let{field:t}=e;return(0,s.jsx)(n.P,{...t,label:"Document Type",name:"documentType",options:R,required:!0})}})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)(x.Qr,{control:p,name:"file",render:e=>{let{field:{onChange:t,value:r}}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block tracking-wide text-gray-700 text-sm font-medium mb-2",htmlFor:"document-file",children:"Select File (PDF, JPG, PNG - Max 10MB)"}),(0,s.jsxs)("label",{className:"btn inline-flex text-center items-center text-sm leading-snug relative focus:outline-none cursor-pointer font-medium py-2 px-4 rounded bg-white border border-gray-300 hover:border-gray-800 shadow-sm hover:bg-gray-800 text-gray-600 hover:text-white justify-center max-w-full",htmlFor:"document-file",children:[r?(0,s.jsx)("span",{className:"truncate max-w-[200px] md:max-w-[300px]",children:r.name}):"Choose File",(0,s.jsx)("input",{accept:"image/jpeg,image/png,application/pdf",className:"hidden",id:"document-file",name:"document",onChange:e=>{var r;let s=null===(r=e.target.files)||void 0===r?void 0:r[0];s&&j(s)&&t(s)},ref:v,type:"file"})]})]})}})})]}),(0,s.jsx)("div",{className:"flex flex-row justify-end",children:(0,s.jsx)("div",{className:"w-full md:w-auto",children:(0,s.jsxs)(l.Z,{design:"primary",disabled:c||!h,fullWidth:!0,loading:c,onClick:_,children:[(0,s.jsx)(d.G,{className:"mr-2",icon:o.cf$}),"Upload Document"]})})})]}),N.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-3",children:"Applicable Documents"}),(0,s.jsx)("div",{className:"space-y-2",children:N.map(e=>{var t;let r=C.includes(e.type),l=null===(t=R.find(t=>t.value===e.type))||void 0===t?void 0:t.label;return(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.G,{className:r?"text-green-600":"text-gray-300",icon:r?o.f8k:o.diR}),(0,s.jsxs)("span",{className:"text-sm font-medium text-gray-900",children:[l," ",e.required?(0,s.jsx)("span",{className:"text-xs text-red-500",children:"*"}):""]})]}),!!r&&(0,s.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full",children:"Uploaded"})]},e.name)})})]}),!u&&(0,s.jsx)("p",{className:"text-sm text-gray-500 italic",children:"Document uploads are not available at this time."})]})]})};C.propTypes={requirements:u().object,uploadedDocuments:u().array,onUpload:u().func.isRequired,isUploading:u().bool,canEdit:u().bool};var R=C,D=r(1973),S=r(2369),Z=r(92942),T=r(60315),E=r(77590);let P={certificate_of_incorporation:"Certificate of Incorporation",business_registration:"Business Registration",tax_certificate:"Tax Certificate",proof_of_address:"Proof of Address",authorized_signatory_id:"Authorized Signatory ID",board_resolution:"Board Resolution",memorandum_of_association:"Memorandum of Association",articles_of_association:"Articles of Association",bank_statement:"Bank Statement",utility_bill:"Utility Bill",other:"Other Document"},F=e=>{let{document:t,onView:r,onDelete:i,canEdit:n=!0,isDeleting:a=!1}=e,o=P[t.document_type]||(0,E.kC)((0,E.parseUnderScore)(t.document_type));return(0,s.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h4",{className:"text-sm font-semibold text-gray-900 mb-1",children:o}),(0,s.jsx)("p",{className:"text-xs text-gray-500 truncate",children:t.original_filename})]}),(0,s.jsx)("div",{className:"ml-3",children:(0,s.jsx)(Z.FontAwesomeIcon,{className:"text-blue-500",icon:S.cwv,size:"lg"})})]}),!!t.uploaded_at&&(0,s.jsxs)("p",{className:"text-xs text-gray-400 mb-3",children:["Uploaded ",(0,T.default)(new Date(t.uploaded_at),"MMM d, yyyy")]}),!!t.document_number&&(0,s.jsxs)("p",{className:"text-xs text-gray-600 mb-1",children:[(0,s.jsx)("span",{className:"font-medium",children:"Number:"})," ",t.document_number]}),!!t.issue_date&&(0,s.jsxs)("p",{className:"text-xs text-gray-600 mb-1",children:[(0,s.jsx)("span",{className:"font-medium",children:"Issued:"})," ",(0,T.default)(new Date(t.issue_date),"MMM d, yyyy")]}),!!t.expiry_date&&(0,s.jsxs)("p",{className:"text-xs text-gray-600 mb-1",children:[(0,s.jsx)("span",{className:"font-medium",children:"Expires:"})," ",(0,T.default)(new Date(t.expiry_date),"MMM d, yyyy")]}),!!t.issuing_authority&&(0,s.jsxs)("p",{className:"text-xs text-gray-600 mb-3",children:[(0,s.jsx)("span",{className:"font-medium",children:"Issued by:"})," ",t.issuing_authority]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-4 pt-3 border-t border-gray-100",children:[(0,s.jsxs)(l.Z,{className:"flex-1",design:"secondary",onClick:r,size:"sm",children:[(0,s.jsx)(Z.FontAwesomeIcon,{className:"mr-1",icon:S.Mdf}),"View"]}
1),!!n&&(0,s.jsxs)(l.Z,{className:"flex-1 !text-red-600 !border-red-300 hover:!bg-red-50",design:"secondary",disabled:a,loading:a,onClick:i,size:"sm",children:[(0,s.jsx)(Z.FontAwesomeIcon,{className:"mr-1",icon:S.$aW}),"Delete"]})]})]})};F.propTypes={document:u().shape({tvdid:u().string,document_type:u().string.isRequired,original_filename:u().string,file_url:u().string,uploaded_at:u().string,document_number:u().string,issue_date:u().string,expiry_date:u().string,issuing_authority:u().string}).isRequired,onView:u().func,onDelete:u().func,canEdit:u().bool,isDeleting:u().bool};var Q=r(36160),V=r.n(Q);let I=e=>{let{documents:t,onView:r,onDelete:l,canEdit:n,isDeletingId:a}=e;return(0,s.jsxs)(i.ZP,{children:[(0,s.jsx)(i.Ol,{children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.G,{className:"text-blue-600",icon:o.cwv}),(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Uploaded Documents"})]})}),(0,s.jsxs)(i.eW,{children:[!!V()(t)&&(0,s.jsx)(D.Z,{description:"Upload your business verification documents to continue.",design:"wrapped",message:"No documents uploaded"}),!V()(t)&&(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map(e=>(0,s.jsx)(F,{canEdit:n,document:e,isDeleting:a===e.tvdid,onDelete:()=>l(e.tvdid),onView:()=>r(e)},e.tvdid))})]})]})};I.propTypes={documents:u().array,onView:u().func.isRequired,onDelete:u().func.isRequired,canEdit:u().bool,isDeletingId:u().string};var k=I,B=r(88510),z=r(12524),L=r.n(z);let G={not_started:{color:"gray",label:"Not Started"},pending_submission:{color:"yellow",label:"In Progress"},pending_review:{color:"blue",label:"Under Review"},under_review:{color:"blue",label:"Under Review"},approved:{color:"green",label:"Verified"},rejected:{color:"red",label:"Rejected"},expired:{color:"orange",label:"Expired"},suspended:{color:"red",label:"Suspended"}},M={gray:"bg-gray-100 text-gray-800 border-gray-300",yellow:"bg-yellow-100 text-yellow-800 border-yellow-300",blue:"bg-blue-100 text-blue-800 border-blue-300",green:"bg-green-100 text-green-800 border-green-300",red:"bg-red-100 text-red-800 border-red-300",orange:"bg-orange-100 text-orange-800 border-orange-300"},U={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1",lg:"text-base px-3 py-1.5"},A=e=>{let{status:t,size:r="md"}=e,l=G[t]||G.not_started,i=M[l.color],n=U[r];return(0,s.jsx)("span",{className:L()("inline-flex items-center font-medium rounded-full border",i,n),children:l.label})};A.propTypes={status:u().oneOf(["not_started","pending_submission","pending_review","under_review","approved","rejected","expired","suspended"]).isRequired,size:u().oneOf(["sm","md","lg"])};let W=e=>{let{verification:t}=e,r=(null==t?void 0:t.status)||"not_started",l="pending_submission"===r||"rejected"===r;return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl md:text-2xl mb-1",children:"Business Verification"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Complete your business verification to start using the platform. If you need help, please contact support."})]}),(0,s.jsx)(A,{size:"sm",status:r})]}),!!(l&&t)&&(0,s.jsx)(i.ZP,{children:(0,s.jsx)(i.eW,{children:(0,s.jsx)(B.Z,{ariaLabel:"Verification progress",completedSteps:[...t.has_required_info?[0]:[],...t.has_required_documents?[1]:[]],currentStep:t.has_required_info?1:0,showStepNumbers:!1,steps:[{id:"info",label:"Business Info"},{id:"documents",label:"Documents"}]})})})]})};W.propTypes={verification:u().object};var O=W;let Y=e=>{let{rejectionReason:t,reviewNotes:r}=e;return(0,s.jsx)(i.ZP,{className:"mb-6 border-red-300 bg-red-50",children:(0,s.jsx)(i.eW,{children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center",children:(0,s.jsx)(d.G,{className:"text-red-600",icon:"exclamation-triangle"})})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-red-900 mb-2",children:"Verification Rejected"}
1),(0,s.jsx)("p",{className:"text-sm text-red-800 mb-3",children:t}),!!r&&(0,s.jsxs)("div",{className:"mt-3 p-3 bg-white rounded-lg border border-red-200",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-900 mb-1",children:"Reviewer Notes:"}),(0,s.jsx)("p",{className:"text-sm text-gray-700",children:r})]}),(0,s.jsx)("p",{className:"text-sm text-red-700 mt-3",children:"Please review the feedback above, make the necessary changes, and resubmit your verification."})]})]})})})};Y.propTypes={rejectionReason:u().string.isRequired,reviewNotes:u().string};var K=Y;u().func.isRequired,u().bool;var J=r(38233),$=r(39097),X=r.n($);let H={not_started:{title:"Verify Your Business",description:"Complete verification to unlock premium features and display a verified badge.",ctaText:"Start Verification",bgColor:"bg-gradient-to-r from-blue-100 to-indigo-50",borderColor:"border-blue-200",iconColor:"text-blue-500",icon:o.U7t},pending_submission:{title:"Complete Your Verification",description:"You're almost there! Complete the remaining steps to submit for review.",ctaText:"Continue",bgColor:"bg-gradient-to-r from-yellow-50 to-orange-50",borderColor:"border-yellow-200",iconColor:"text-yellow-500",icon:o.SZw},pending_review:{title:"Verification Under Review",description:"Your verification is being reviewed. We'll notify you once complete.",ctaText:"View Status",bgColor:"bg-gradient-to-r from-blue-50 to-cyan-50",borderColor:"border-blue-200",iconColor:"text-blue-500",icon:o.B2l},under_review:{title:"Verification Under Review",description:"Your verification is being reviewed. We'll notify you once complete.",ctaText:"View Status",bgColor:"bg-gradient-to-r from-blue-50 to-cyan-50",borderColor:"border-blue-200",iconColor:"text-blue-500",icon:o.B2l},rejected:{title:"Verification Needs Attention",description:"Your verification was not approved. Please review the feedback and resubmit.",ctaText:"View Details",bgColor:"bg-gradient-to-r from-red-50 to-orange-50",borderColor:"border-red-200",iconColor:"text-red-500",icon:o.eHv},expired:{title:"Verification Expired",description:"Your verification has expired. Please renew to maintain verified status.",ctaText:"Renew Now",bgColor:"bg-gradient-to-r from-orange-50 to-yellow-50",borderColor:"border-orange-200",iconColor:"text-orange-500",icon:o.qiI},suspended:{title:"Verification Suspended",description:"Your verification has been suspended. Please contact support for assistance.",ctaText:"Contact Support",bgColor:"bg-gradient-to-r from-red-50 to-pink-50",borderColor:"border-red-200",iconColor:"text-red-500",icon:o.gPx}},ee=e=>{let{tenantName:t,user:r}=e,{data:i,isLoading:n}=(0,J.M$)({enabled:!!(null==r?void 0:r.tenant)}),a=(null==i?void 0:i.status)||"not_started";if(n||"approved"===a)return null;let c=H[a]||H.not_started,u="pending_submission"===a;return(0,s.jsx)("div",{className:"w-full rounded-xl border ".concat(c.borderColor," ").concat(c.bgColor," p-4 md:p-6"),children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 flex-grow md:pr-4",children:[(0,s.jsx)("div",{className:"p-3 rounded-full bg-white shadow-sm ".concat(c.iconColor),children:(0,s.jsx)(d.G,{className:c.iconColor,icon:c.icon,size:"lg"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1 flex-wrap",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:c.title}),(0,s.jsx)(A,{size:"sm",status:a})]}),(0,s.jsx)("p",{className:"text-sm text-gray-600",children:c.description}),!!(u&&i)&&(0,s.jsx)("div",{className:"mt-2 w-full max-w-[90%]",children:(0,s.jsx)(B.Z,{ariaLabel:"Verification progress",compact:!0,completedSteps:[...i.has_required_info?[0]:[],...i.has_required_documents?[1]:[]],currentStep:i.has_required_info?1:0,showProgressText:!0,steps:[{id:"info",label:"Business Info"},{id:"documents",label:"Documents"}]})})]})]}),(0,s.jsx)("div",{className:"flex-shrink-0 w-full md:w-auto",children:(0,s.jsx)(X(),{href:"/hr/".concat(t,"/settings/verification"),children:(0,s.jsxs)(l.Z,{design:"primary",size:"md",children:[c.ctaText,(0,s.jsx)(d.G,{className:"ml-2",icon:o.eFW})]})})})]})})};ee.propTypes={tenantName:u().string.isRequired,user:u().object.isRequired};var et=ee},57989:function(e,t,r){r.d(t,{W:function(){return o}});
1var s=r(52322),l=r(2369),i=r(92942),n=r(13980),a=r.n(n);r(2784);let o=e=>{let{title:t,description:r,button:n=null,flow:a="y",...o}=e;return(0,s.jsxs)("div",{...o,className:"w-full bg-red-100 border border-red-300 p-3 rounded flex flex-col md:flex-row md:justify-between items-center relative",children:[(0,s.jsxs)("div",{className:"flex justify-start flex-col",children:[(0,s.jsx)("span",{className:"absolute -top-2 -left-1",children:(0,s.jsx)(i.FontAwesomeIcon,{className:"text-red-600 text-lg",icon:l.RLE,size:"1x"})}),!!t&&(0,s.jsx)("h6",{className:"text-center md:text-left font-semibold text-gray-800 md:leading-none mb-2",children:t}),(0,s.jsx)("p",{className:"text-center md:text-left font-normal leading-tight text-gray-800",children:r}),!!("y"===a&&n)&&(0,s.jsx)("div",{className:"mt-3",children:n})]}),!!("x"===a&&n)&&(0,s.jsx)("div",{className:"mt-3 md:ml-2 md:mt-auto",children:n})]})};o.propTypes={title:a().string,description:a().string,button:a().element,flow:a().string},t.Z=o},63798:function(e,t,r){r.d(t,{P:function(){return d}});var s=r(52322),l=r(12524),i=r.n(l),n=r(13980),a=r.n(n);r(2784);let{parseUnderScore:o}=r(77590),d=e=>{let{name:t,error:r,label:l,description:n,options:a,onChange:d,selected:c,required:u=!1,defaultOption:m,...x}=e,p=i()("block","tracking-wide","text-sm","font-medium","mb-2",{"text-gray-700":!r},{"text-red-400":r}),g=i()("block appearance-none w-full bg-blue-50 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500 capitalize",{border:r},{"border-red-400":r}),b=e=>"object"==typeof e&&null!==e?e.label||e.value||"":"string"!=typeof e?String(e):e.replace(/_/g," ").replace(/-/g," ");return(0,s.jsxs)(s.Fragment,{children:[l?(0,s.jsxs)("label",{className:p,htmlFor:t,children:[l,u?(0,s.jsx)("span",{className:"text-red-400 text-xs ml-1",children:"*"}):null]}):null,(0,s.jsx)("div",{className:"flex relative w-full",children:(0,s.jsxs)("select",{className:g,id:t,name:t,onChange:d,value:null!=c?c:"",...x,children:[(0,s.jsx)("option",{value:"",children:m||"Select ".concat(o(t))}),null==a?void 0:a.map((e,t)=>{let r="object"==typeof e&&null!==e?e.value:"string"==typeof e?e.toLowerCase():e;return(0,s.jsx)("option",{value:r,children:b(e)},"option-".concat(t))})]})}),n?(0,s.jsx)("span",{className:"text-gray-500 text-sm mt-1 block",children:n}):null,r?(0,s.jsx)("span",{className:"text-red-400 text-xs",children:r}):null]})};d.propTypes={label:a().string,name:a().string.isRequired,options:a().array.isRequired,selected:a().string,error:a().string,onChange:a().func.isRequired,required:a().bool,defaultOption:a().string}},38233:function(e,t,r){r.d(t,{Dn:function(){return q},Lu:function(){return C},M$:function(){return N},Wt:function(){return R},_B:function(){return w},bV:function(){return S},uQ:function(){return D}});var s=r(59820),l=r(14010),i=r(87686),n=r(60418);r(39474);var a=r(62202),o=r(47477),d=r(82036),c=r(84475);let u=["tenantVerification"],m=["tenantVerificationRequirements"],x=["tenantVerificationDocuments"],p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(d.JW,"tenant/").concat((0,o.d_)(),"/verification").concat(e?"/".concat(e):"")},g=async function(e){var t;let{defaultResponse:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=await (0,n.Z)({...e,headers:{...e.headers,...(0,c.g0)({realm:"hr"})}});return r?null==s?void 0:null===(t=s.data)||void 0===t?void 0:t.data:null==s?void 0:s.data},b=async()=>g({method:"get",url:p()}),f=async()=>g({method:"post",url:p()}),v=async e=>g({method:"put",url:p(),data:e}),h=async()=>g({method:"get",url:p("requirements")}),y=async()=>g({method:"post",url:p("submit")}),j=async e=>{let{file:t,documentType:r,documentNumber:s,issueDate:l,expiryDate:i,issuingAuthority:n}=e,a=new FormData;return a.append("document_type",r),a.append("file",t),s&&a.append("document_number",s),l&&a.append("issue_date",l),i&&a.append("expiry_date",i),n&&a.append("issuing_authority",n),g({method:"post",url:p("documents"),data:a,headers:{"Content-Type":"multipart/form-data"}})},_=async e=>{let{tvdid:t}=e;return g({method:"delete",url:p("documents/".concat(t))})},N=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.a)({queryKey:u,enabled:e&&(0,o.Xu)(),queryFn:b})},w=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.a)({queryKey:m,enabled:e&&(0,o.Xu)(),queryFn:h})},q=()=>{let e=(0,l.NL)();return(0,i.D)({mutationFn:f,onSuccess:()=>
1{a.default.success("Verification process started"),e.invalidateQueries({queryKey:u})},onError:e=>{var t,r;a.default.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to start verification")}})},C=()=>{let e=(0,l.NL)();return(0,i.D)({mutationFn:v,onSuccess:()=>{a.default.success("Business information updated"),e.invalidateQueries({queryKey:u})},onError:e=>{var t,r;a.default.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to update information")}})},R=()=>{let e=(0,l.NL)();return(0,i.D)({mutationFn:y,onSuccess:()=>{a.default.success("Verification submitted for review"),e.invalidateQueries({queryKey:u})},onError:e=>{var t,r;a.default.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to submit verification")}})},D=()=>{let e=(0,l.NL)();return(0,i.D)({mutationFn:j,onSuccess:()=>{a.default.success("Document uploaded successfully"),e.invalidateQueries({queryKey:u}),e.invalidateQueries({queryKey:x})},onError:e=>{var t,r;a.default.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to upload document")}})},S=()=>{let e=(0,l.NL)();return(0,i.D)({mutationFn:_,onSuccess:()=>
1{a.default.success("Document deleted"),e.invalidateQueries({queryKey:u}),e.invalidateQueries({queryKey:x})},onError:e=>{var t,r;a.default.error((null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to delete document")}})}},88510:function(e,t,r){var s=r(52322),l=r(12524),i=r.n(l),n=r(13980),a=r.n(n);r(2784);let o=(e,t,r)=>r.has(e)?"completed":e===t?"active":"inactive",d=e=>e instanceof Set?e:new Set(e),c=(e,t)=>(e+1)/t*100,u=e=>{let{steps:t,currentStep:r,completedSteps:l=new Set,compact:n=!1,showStepNumbers:a=!0,showProgressText:u=!1,ariaLabel:m="Form progress",className:x}=e,p=d(l),g=c(r,t.length);return n?(0,s.jsxs)("div",{className:i()("flex items-center gap-2",x),children:[(0,s.jsx)("div",{className:"flex-1 bg-gray-200 rounded-full h-2 overflow-hidden",children:(0,s.jsx)("div",{"aria-label":"".concat(r+1," of ").concat(t.length," steps completed"),"aria-valuemax":t.length,"aria-valuemin":1,"aria-valuenow":r+1,className:"h-full bg-blue-500 rounded-full transition-all duration-300",role:"progressbar",style:{width:"".concat(g,"%")}})}),!!u&&(0,s.jsxs)("span",{className:"text-sm text-gray-600 font-medium whitespace-nowrap",children:[r+1,"/",t.length]})]}):(0,s.jsxs)("nav",{"aria-label":m,className:i()("w-full",x),role:"navigation",children:[(0,s.jsx)("div",{className:"grid gap-4",style:{gridTemplateColumns:"repeat(".concat(t.length,", 1fr)")},children:t.map((e,t)=>{let l=o(t,r,p),n="active"===l,d="completed"===l;return(0,s.jsxs)("div",{"aria-current":t===r?"step":void 0,className:"flex flex-col",children:[(0,s.jsx)("div",{className:i()("w-full rounded-sm transition-all duration-300",{"h-2 bg-blue-300":n,"h-2 bg-blue-600":d,"h-2 bg-gray-200":!n&&!d})}),(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsxs)("span",{className:i()("text-sm font-medium text-left flex flex-col",{"text-gray-500":n,"text-blue-700":d,"text-gray-400":!n&&!d}),children:[!!a&&(0,s.jsxs)("span",{className:"hidden sm:inline text-sm",children:["Step ",t+1]}),e.label]})})]},e.id)})}),!!u&&(0,s.jsxs)("div",{className:"mt-4 text-left text-xs text-gray-500 font-medium",children:["Step ",r+1," of ",t.length]})]})};u.propTypes={steps:a().arrayOf(a().shape({id:a().string.isRequired,label:a().string.isRequired})).isRequired,currentStep:a().number.isRequired,completedSteps:a().oneOfType([a().instanceOf(Set),a().arrayOf(a().number)]),compact:a().bool,showStepNumbers:a().bool,showProgressText:a().bool,className:a().string,ariaLabel:a().string},t.Z=u}}]);

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.