1try{let 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]="b4c3bf8e-8776-4019-98a1-eb8f9370fc67",e._sentryDebugIdIdentifier="sentry-dbid-b4c3bf8e-8776-4019-98a1-eb8f9370fc67")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7409],{17409:function(e,t,r){r.d(t,{Z:function(){return X}});var i={};r.r(i),r.d(i,{Z:function(){return R}});var n=r(85893),l=r(67294),s=r(35205),a=r(41733),c=r(23972),h=r(96427),o=r(2734),d=r(26447),A=r(21023),p=r(90948),x=r(99226);const g=(0,p.ZP)(h.mo)((e=>{let{theme:t}=e;return{maxHeight:"1.75rem",maxWidth:"1.75rem"}})),u=(0,p.ZP)(x.Z)((e=>{let{theme:t}=e;return{textAlign:"center",width:"8rem"}})),f=(0,p.ZP)(h.uu)((e=>{let{theme:t}=e;return{display:"flex"}})),m=(0,p.ZP)(x.Z)((e=>{let{theme:t,width:r,color:i,errorStatus:n}=e;return{height:"7.75rem",width:r||"7.75rem",border:"1.3px dashed",borderColor:i||t.palette.neutral[400]&&n?"red":t.palette.neutral[400],display:"flex",alignItems:"center",justifyContent:"center",color:t.palette.neutral[400],borderRadius:"12px",cursor:"pointer",[t.breakpoints.down("sm")]:{width:"100%"}}}));var b=r(94533),j=r(54599);const w=e=>{const{text:t}=e;return(0,n.jsx)(s.w_,{children:(0,n.jsx)(c.Z,{children:t})})};w.propTypes={};var y=w,Z=r(22120);const D=e=>{const{anchor:t,color:r,width:i,errorStatus:l,labelText:s,titleText:a,hintText:c,alignItems:h}=e,{t:p}=(0,Z.$G)(),x=(0,o.Z)();return(0,n.jsxs)(d.Z,{width:"100%",spacing:3,children:[a&&(0,n.jsx)(f,{children:(0,n.jsx)(b.mI,{variant:"h5",children:a})}),(0,n.jsxs)(d.Z,{alignItems:"baseline",justifyContent:"center",spacing:3,children:[(0,n.jsx)(m,{onClick:()=>t.current.click(),color:r,component:"label",width:i,errorStatus:l,children:(0,n.jsxs)(d.Z,{alignItems:"center",justifyContent:"center",spacing:1.5,children:[(0,n.jsx)(g,{children:(0,n.jsx)(j.Z,{sx:{width:"40px",height:"40px",color:x.palette.neutral[1100]}})}),(0,n.jsx)(A.Z,{title:s,children:(0,n.jsx)(u,{children:(0,n.jsx)(b.tp,{sx:{fontSize:"13px",fontWeight:"400"},children:s||p("File upload")})})})]})}),c&&(0,n.jsx)(y,{text:c})]})]})};D.propTypes={};var C=D;var R=e=>{const{width:t,onChange:r,errorStatus:i,acceptedFileInput:s,labelText:a,titleText:c,hintText:o,imagesHandler:d}=e,A=(0,l.useRef)();return(0,n.jsxs)(h.uu,{children:[(0,n.jsx)(C,{titleText:c,labelText:a,hintText:o,width:t,anchor:A,errorStatus:i}),(0,n.jsx)("input",{ref:A,multiple:!0,id:"file",name:"file",type:"file",accept:s,hidden:!0,onChange:e=>r(e)})]})},U=r(61730),v=r(48263),S={src:"/_next/static/media/pdf.8af09ceb.png",height:512,width:512,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA6klEQVR42h3PvUrDUBxA8ZObywXRRSn4iZNLdkGyOFpcxKfQbPoa+gLmKYSis7RICUhQ8YMsrRHRyZDGLKG3JH9Dz/qbjgPQB08gdMAHaCDSu3sBkHALXnxymhejsRQfqXy/vMrbxaUMIL/vHnrcweDx7FzaptKWF4VM8nzaPzqWYWtagY9SAKYBrLXUIma8tclKaxqAqkKyDGnR/c1Q2qUuS54BLWvbkYRX+85fad3ugek0DfRurOldG9tZjXS1uBAswfAn/VxWcYyjXGbviZnhTlKlAgfgYcfznkZJ+AW+C9SoSK1vzDf/Aaz+bNDzC6OpAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},T={src:"/_next/static/media/docx.7072fee4.png",height:512,width:512,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA6klEQVR42h3LvUoDQRQF4HPnZ2fXXTdBtFAI1lbWYqFgYyE+idj7CmrnA6iVlpbiS1iLQooUQiBEUGZn3b13MsnXHA6HQ0iOb2R0tNs/lVksQOh8S7Vv7DWAB4PER6kHRTzsBdgoBZvrhKbh+9dPmuq7l+i2HM6tlbPfQDz7U6icdEXOOrTqywjFi5M9uh3PiHcGUbc9kGmVMsJqeFM52MwC+yODLo3DCgj/hI9vxtSLUhyXByTEHZOUOUnqkmkgMKKZzPHsDA6GFZ8aHfE+BoyG+gmC7TXKCCtcXj72b3WOfFmQWAU3meurBWLAWyDURnVcAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},E={src:"/_next/static/media/txt-file.41bbe04a.png",height:512,width:512,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA2UlEQVR42mMAgWvXrgRcvXp5x/XrV5efPnN6k09UgQVIfO6CZSxgBUDJFqCi/zdvXvt/4eL5//WtEz51T5ipxwAD1y5frL14/tz/82fP/Lhw7uz38+fO/r94/mw7XMGl+/cqth88/H/19l2/QXjHocP/rzy8XwZX8HTZotm316/9f3vl8t9gvH7N/ydLF84GS+7+/5/pqwHHzXe1Zf9fzpr6C4RB7K8GnDf3AOXAij5FeF97W1n0/8W0iWAMYoPE4FY82Lop9u7+Pdvv79q+AoRBbJAYAwMDAwA/BpExjf5dfwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},F={src:"/_next/static/media/folder.ce998a02.png",height:512,width:512,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA1ElEQVR42mOAAlYg5mBAA6XRHEwMkws4Ay4uEHp0Y6nw4w1tvJ1d6eyOUwo4ArNcGUTAqrZ28VW93Sr2/9UW8f93V4n+v7JY5P/lRSL/JxXyLAQrWFLAUHR+s/L/17eNf72+YfTn7S2jPx/uGv96ckHv/6x64WSGGGuG4scX9P///2T5498r898g/P+D5e+3V/X/hDIwmDD0N0uVvb5u8P/bQ+P/X+4ZgfF3IPv8FpXLDCDQWSEqvXqCZPb6yZLZ6yaD6cx1EyWKW9M4TRgIgR1TRJkA1MJk0a08hbQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},L=r(2908);const I=e=>{const{file:t,anchor:r,deleteImage:h,hintText:A,width:p,onChange:x,onDelete:g,errorStatus:u,acceptedFileInput:f,label:m,titleText:b,gridControl:j,prescription:w}=e,y=(0,o.Z)(),[Z,D]=(0,l.useState)([]),C=(0,U.Z)("(min-width:400px)");(0,l.useEffect)((()=>
1{if((null===t||void 0===t?void 0:t.length)>0){const e=[];t.forEach((t=>e.push({url:URL.createObjectURL(t),type:t.name.split(".").pop()}))),D(e)}}),[t]);const I=(e,t)=>"jpg"===e.type||"jpeg"===e.type||"gif"===e.type||"png"===e.type?(0,n.jsx)(s.Ec,{children:(0,n.jsx)(L.Z,{src:e.url,alt:"preview",height:"7.75rem"})}):"pdf"===e.type?(0,n.jsx)(s.Ec,{objectFit:!0,children:(0,n.jsx)(L.Z,{src:S,alt:"pdf",height:"7.75rem"})}):"docx"===e.type||"docx"===e.type?(0,n.jsx)(s.Ec,{objectFit:!0,children:(0,n.jsx)(L.Z,{src:T,alt:"doc",height:"7.75rem"})}):"txt"===e.type?(0,n.jsx)(s.Ec,{objectFit:!0,children:(0,n.jsx)(L.Z,{src:E,alt:"text",height:"7.75rem"})}):(0,n.jsx)(s.Ec,{objectFit:!0,children:(0,n.jsx)(L.Z,{src:F,alt:"text"})});return(0,n.jsxs)(d.Z,{width:"100%",alignItems:"center",spacing:3,children:[(()=>{if((null===t||void 0===t?void 0:t.length)>0)return(0,n.jsxs)(v.ZP,{container:!0,spacing:1,children:[Z.map(((e,t)=>(0,n.jsx)(v.ZP,{item:!0,xs:"true"===w&&C?6:12,sm:"true"===j?4:2.5,md:"true"===j?4:2.5,children:(0,n.jsxs)(s.JL,{width:p,children:[I(e,t),(0,n.jsx)(s.i3,{onClick:()=>g(t),children:(0,n.jsx)(a.Z,{sx:{width:"15px",height:"15px",color:y.palette.error.light}})})]})},t))),(0,n.jsx)(v.ZP,{item:!0,xs:"true"===w&&C?6:12,sm:"true"===j?4:2.3,md:"true"===j?4:2.3,children:(null===Z||void 0===Z?void 0:Z.length)<=5&&(0,n.jsx)(R,{titleText:b,label:m,hintText:A,errorStatus:u,width:!0,onChange:x,acceptedFileInput:f})})]});{const e={url:URL.createObjectURL(t),type:t.name.split(".").pop()};return(0,n.jsxs)(s.JL,{children:[I(e),(0,n.jsx)(s.i3,{onClick:()=>h(),children:(0,n.jsx)(a.Z,{sx:{width:"15px",height:"15px",color:y.palette.error.light}})})]})}})(),A&&(0,n.jsx)(i.CustomBoxImageText,{children:(0,n.jsx)(c.Z,{children:A})})]})};I.propTypes={};var k=I,H=r(9473);const P=(0,p.ZP)(c.Z)((e=>{let{theme:t}=e;return{color:t.palette.error.main}}));var X=e=>{const{t:t}=(0,Z.$G)(),{width:r,fileImagesHandler:i,maxFileSize:s,supportedFileFormats:a,acceptedFileInput:c,labelText:h,titleText:o,hintText:A,totalFiles:p,gridControl:x,prescription:g}=e,[u,f]=(0,l.useState)(p||[]),[m,b]=(0,l.useState)(!1),[j,w]=(0,l.useState)(""),y=(0,l.useRef)();(0,H.I0)();(0,l.useEffect)((()=>{i(u)}),[u]);const D=e=>{let r=e.target.files[e.target.files.length-1],i=r.name.split(".").pop();-1!==a.indexOf(i)?r.size<=s?(b(!1),f([...u,...e.target.files])):(b(!0),w(t("Chose an image max size 2mb"))):(b(!0),w(t("Unsupported file format chosen")))};return(0,n.jsxs)(d.Z,{width:"100%",spacing:1,children:[u.length>0?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(k,{anchor:y,errorStatus:m,titleText:o,acceptedFileInput:c,file:u,width:r,onChange:D,onDelete:e=>{let t=u.filter(((t,r)=>r!==e));f(t)},supportedFileFormats:a,replaceFiles:e=>{},gridControl:x,prescription:g})}):(0,n.jsx)(R,{titleText:o,labelText:h,hintText:A,errorStatus:m,acceptedFileInput:c,width:r,onChange:D,text:"Upload identity file",maxFileSize:2e5}),m&&(0,n.jsx)(P,{children:j})]})}}}]);
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.