1import{j as e,o as _e,Z as Nt,P as m,r as a,A as $e,t as _t,w as Ot,aI as Ct,x as Le,q as jt,d as n,k as Me,F as pt,y as U,c6 as ws,s as Tt,aB as Ss,D as Fe,l as Ae,Q as He,ay as Je,m as Ge,h as Dt,aC as ks,B as tt,Y as Ps,$ as It,T as mt,M as Et,c4 as Rs,c7 as vt,b as Ts,aD as wt,g as Ee,G as Fs,C as ze,H as Is,aF as Es,n as Us,c2 as Bs,ca as qt}from"./index-DOEDGpFv.js";import{B as Ls,A as $s}from"./ProfileStyle-Cz9rBfuF.js";import{c as yt,b as ke,a as Ye,d as ut,e as Ms,u as Wt,i as zt,k as Vt}from"./index.esm-DaRz_fRj.js";import{T as $}from"./ToolTip-Oz3uT3D_.js";import{C as et}from"./CustomDropdown-KMCu6Cw8.js";import{p as Yt,W as Os,a as Ds,f as qs,b as zs,m as Vs,c as Ys,n as As}from"./userIcon-DRRYbDdc.js";import{K as st}from"./KeyboardArrowUp-DXQnx0YG.js";import{K as at}from"./KeyboardArrowDown-dDDnrjL_.js";import{C as Hs}from"./CustomDate-CuqrGms7.js";import{F as ct}from"./FormControlLabel-Cv1jetH4.js";import{C as Js}from"./Checkbox-DKFnH0fc.js";import{R as Gs}from"./Radio-BcikqwZL.js";import{P as Ks,S as es,i as At,C as Zs,a as Xs}from"./PhysicalDescription-CWxUMfd1.js";import{S as ts}from"./index-sQFwv7mU.js";import{Z as Ht}from"./ZoomIn-D7y3u32-.js";import{c as ss}from"./image-gallery.es-Cuaiz1Ph.js";import{u as as,a as St,s as ls,K as is,P as rs,d as ns,D as os,c as ds,S as cs,r as ms,e as us,C as _s}from"./sortable.esm-CZTjz6Wk.js";import{M as ps,O as fs}from"./OnImgHover-Ckz1eiDS.js";import{I as Qs}from"./InnerImageZoom-D8D8k92Y.js";import{s as gt,R as We,P as Jt}from"./PlayCircleOutline-CqnSWKR_.js";import{S as Gt,E as Ws}from"./Save-bfga-Jet.js";import{C as ea}from"./Cancel-rtwU0jAA.js";import{A as hs,i as ta,F as sa}from"./imageLoaderTrans-CaSiOEqY.js";import{T as aa,a as la,b as ia}from"./TabPanel-BtlVonHl.js";import{a as ra}from"./Tabs-DEjLDeB5.js";import{n as na}from"./notification.template.service-D4YzQXIz.js";import{D as oa}from"./DashBroadHeader-Db3vYkBl.js";import{S as da}from"./Share-DqJzxuKb.js";/* empty css */import"./info_circle-CPn1_Ob8.js";import"./Autocomplete-BiTc0fK0.js";import"./OTPTimer-23lobUh5.js";import"./AdapterDateFns-hg84jjcw.js";import"./DateCalendar-BvCUxFPP.js";import"./useThemeProps-AF4bYKqg.js";import"./useThemeProps-BeptFCZJ.js";import"./DesktopDatePicker-gwORp2KB.js";import"./InputAdornment-CYJ-dB-y.js";import"./listItemButtonClasses-COmYTSa9.js";import"./PillsDropdown-Cc7vs6KQ.js";import"./close_icon-CFZZ4lWI.js";/* empty css */import"./Approached-DVAAqn9n.js";import"./Newlink-Dq114FOE.js";import"./lookingtalentimg-C9ouOiIq.js";import"./arrowdown-CxN2_ZBY.js";import"./noTalent-DJxnUYyh.js";import"./recruiter_404-BprXiUuV.js";import"./ArrowDropDown-BNWd2-nS.js";import"./KeyboardArrowRight-K5Vapl4X.js";const Ke=({EditHandler:r,CancelHandler:d,SubmitHandler:y,isEdit:g,isSpin:_,isFormSubmited:I,disableSubmit:S})=>e.jsxs("div",{children:[e.jsx("div",{className:"sm_displayNone",children:g?e.jsxs("div",{className:"flex",children:[e.jsx(_e,{onClick:d,text:"Exit",gray:!0,style:{marginRight:10}}),e.jsx(_e,{onClick:y,isLoading:_,text:I||g?"Saved":"Save",style:{width:"100px"},disabled:S,className:`${S?"opacity-50":null}`})]}):e.jsx(_e,{onClick:r,text:"Edit",white:!0})}),e.jsx("div",{className:"Profilehidden sm_displayBlock Moblie_edit ",children:g?e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{type:"button",className:"Moblie_edit_img flex items-center justify-center text-xs font-medium rounded bg-[#9b26b6] text-white",style:{width:"45px",height:"27px"},onClick:d,children:"Exit"}),e.jsx("button",{type:"button",className:`Moblie_edit_img flex items-center justify-center text-xs font-medium rounded border border-[#9b26b6] bg-white text-[#9b26b6] ${S?"o
1pacity-50 cursor-not-allowed":""}`,style:{width:"45px",height:"27px"},onClick:()=>{S||y()},children:_?e.jsx(Nt,{size:16,sx:{color:"#9B26B6"}}):"Save"})]}):e.jsx("span",{className:"Moblie_edit_img",children:e.jsx("button",{type:"button",onClick:r,className:"cursor-pointer flex items-center gap-1",style:{color:"#fff",background:"#9B26B6",borderRadius:"4px",padding:"2px 7px",FONTSize:"14px"},children:e.jsx("span",{style:{fontSize:14},children:"Edit"})})})})]});Ke.propTypes={EditHandler:m.func.isRequired,CancelHandler:m.func.isRequired,SubmitHandler:m.func.isRequired,isEdit:m.bool.isRequired,isSpin:m.bool.isRequired,isFormSubmited:m.bool.isRequired,disableSubmit:m.bool};Ke.defaultProps={disableSubmit:!1};const Be=10,ca=100,Kt=180,Zt=1,ma=Et(Rs)(({theme:r})=>({width:45,height:25,padding:0,borderRadius:40,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(19px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:(r.palette.mode==="dark","#9B26B6")}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:21,height:21,borderRadius:40,transition:r.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:8,opacity:1,backgroundColor:r.palette.mode==="dark"?"rgba(255,255,255,.35)":"rgba(0,0,0,.25)",boxSizing:"border-box"}})),ua=Et("input")({display:"none"}),Ve=(r="")=>r?r.charAt(0).toUpperCase()+r.slice(1):"",Xt=r=>r.replace(/[^0-9.]/g,"").replace(/(\..*?)\..*/g,"$1"),_a=(r,d=new Date)=>{const y=new Date(d);return y.setFullYear(y.getFullYear()-r),y},Pe=a.memo(function({label:d,tooltip:y,value:g,name:_,className:I="mt-7 border_bottom",disabled:S=!0}){return e.jsxs("div",{className:I,children:[e.jsxs("h5",{className:"label_text",children:[d," ",e.jsx($,{title:d,message:y})]}),e.jsx(U,{variant:"standard",name:_,value:g??"",disabled:S})]})});Pe.propTypes={label:m.string.isRequired,tooltip:m.string.isRequired,value:m.oneOfType([m.string,m.number]),name:m.string,className:m.string,disabled:m.bool};const pa=a.memo(function({label:d,tooltip:y,value:g}){return e.jsxs("div",{className:"mt-7 border_bottom",id:"hideInput",children:[e.jsxs("h5",{className:"label_text",children:[d," ",e.jsx($,{message:y,title:d})]}),e.jsx(U,{variant:"standard",disabled:!0,value:g||"",slotProps:{input:{},startAdornment:g&&e.jsx("span",{className:"cursor-pointer linkFont",onClick:()=>window.open(`${g}`,"_blank"),children:g})}})]})});pa.propTypes={label:m.string.isRequired,tooltip:m.string.isRequired,value:m.string};const Ft=({gender:r})=>{let d;return r===0?d="Female":r===1?d="Male":d="Neutral",e.jsx(U,{variant:"standard",name:"gender_readonly",value:d,disabled:!0})};Ft.propTypes={gender:m.oneOf([0,1,2])};const xs=a.memo(function({value:d,onChange:y,error:g}){const _=({checked:I,imgActive:S,imgInactive:O,label:k,onSel:p})=>e.jsxs("label",{className:"radio-img",children:[e.jsx(Gs,{checked:I,onChange:p,value:k,name:"gender-radio"}
1),e.jsx("div",{className:"image",children:e.jsx("img",{src:I?S:O,alt:k})}),e.jsx("p",{className:"names_list",children:k})]});return _.propTypes={checked:m.bool.isRequired,imgActive:m.string.isRequired,imgInactive:m.string.isRequired,label:m.string.isRequired,onSel:m.func.isRequired},e.jsx("div",{className:"gender_list mt-7",children:e.jsxs("div",{className:"border_bottom",children:[e.jsxs("div",{className:"border_bottom_fixed",children:[e.jsx("h5",{className:"label_text",children:"Gender"}),e.jsx($,{message:"Select your gender.",title:"Gender"})]}),e.jsx("span",{className:"slect_gender",children:"Select your gender"}),e.jsx(_,{checked:d===0,imgActive:qs,imgInactive:Ds,label:"Female",onSel:()=>y(0)}),e.jsx(_,{checked:d===1,imgActive:Vs,imgInactive:zs,label:"Male",onSel:()=>y(1)}),e.jsx(_,{checked:d===2,imgActive:As,imgInactive:Ys,label:"Neutral",onSel:()=>y(2)}),g?e.jsx("p",{className:"form_err",children:g}):null]})})});xs.propTypes={value:m.oneOf([0,1,2,null]),onChange:m.func.isRequired,error:m.string};const gs=({label:r,checked:d,onToggle:y})=>e.jsx("div",{className:"border_bottom",children:e.jsx("div",{className:"switch_design switchLabel",children:e.jsx(ct,{control:e.jsx(ma,{color:"secondary",onChange:y,checked:d,slotProps:{input:{"aria-label":"controlled"}}}),label:r,style:{gap:20}})})});gs.propTypes={label:m.string.isRequired,checked:m.bool.isRequired,onToggle:m.func.isRequired};const Qt=[{id:"1",value:"Aadhaar Card"},{id:"2",value:"Driving License"},{id:"3",value:"Pan Card"},{id:"4",value:"Passport"},{id:"5",value:"Other"}];function Ut({isPreviewd:r}){var lt,ht,xt,it,rt,nt,ot,h,w,P,Z,K,Se,Re;const[d,y]=a.useState(!0),[g,_]=a.useState(!1),[I,S]=a.useState(!1),[O,k]=a.useState(!1),[p,Y]=a.useState([]),{user:s,updateUser:X,dependencyData:u,refreshTokens:j}=a.useContext($e),{openSnackbar:A}=a.useContext(_t),[R,z]=a.useState(!1),[me,xe]=a.useState(Kt),[ae,fe]=a.useState(!1),[ne,D]=a.useState([]),[B,ee]=a.useState(),[M,E]=a.useState(!1),[Q,le]=a.useState(!1),[L,oe]=a.useState(!1),[te,be]=a.useState(null),[pe,T]=a.useState(!1),[je,x]=a.useState(!1),[q,c]=a.useState(!1),W=a.useRef(null),se=a.useRef(!1),ve=a.useRef(null),ge=(u==null?void 0:u.city)||[],ue=a.useMemo(()=>{var J;const l=(J=s==null?void 0:s.talenter)==null?void 0:J.current_city,b=p.find(ce=>ce.id===l);return(b==null?void 0:b.city_name)||""},[p,(lt=s==null?void 0:s.talenter)==null?void 0:lt.current_city]),he=a.useMemo(()=>{var l,b,J,ce,Ne,de,Ce,Ie,Te,Ue,dt,Qe;return{talent_type:((l=s==null?void 0:s.talenter)==null?void 0:l.talent_type)??"",first_name:(s==null?void 0:s.first_name)??"",last_name:(s==null?void 0:s.last_name)??"",email:(s==null?void 0:s.email)??"",current_city:((b=s==null?void 0:s.talenter)==null?void 0:b.current_city)??"",date_of_birth:(s==null?void 0:s.date_of_birth)??"",mobile:(s==null?void 0:s.mobile)??"",gender:((J=s==null?void 0:s.talenter)==null?void 0:J.gender)??null,receive_whatsapp_updates:(s==null?void 0:s.receive_whatsapp_updates)??!0,show_to_recruiters:((ce=s==null?void 0:s.talenter)==null?void 0:ce.show_to_recruiters)??!0,id_number:((Ne=s==null?void 0:s.talenter)==null?void 0:Ne.id_number)??"",proof_doc:((de=s==null?void 0:s.talenter)==null?void 0:de.proof_doc)??"",proof_img:((Ce=s==null?void 0:s.talenter)==null?void 0:Ce.proof_img)??"",has_manager:((Ie=s==null?void 0:s.talenter)==null?void 0:Ie.has_manager)??!1,mananger_email_address:((Te=s==null?void 0:s.manager)==null?void 0:Te.mananger_email_address)??"",mananger_mobile_number:((Ue=s==null?void 0:s.manager)==null?void 0:Ue.mananger_mobile_number)??"",receive_manager_mobile_updates:((dt=s==null?void 0:s.manager)==null?void 0:dt.receive_manager_mobile_updates)??!1,receive_manager_email_updates:((Qe=s==null?void 0:s.manager)==null?void 0:Qe.receive_manager_email_updates)??!1,year:s!=null&&s.date_of_birth?new Date(s==null?void 0:s.date_of_birth).getFullYear():"",facebook_link:(s==null?void 0:s.facebook_link)??"",instagram_link:(s==null?void 0:s.instagram_link)??"",imdb_profile:(s==null?void 0:s.imdb_profile)??"",is_mobile_verified:(s==null?void 0:s.is_mobile_verified)??"",youtube_profile:(s==null?void 0:s.youtube_profile)??""}},[s]),we=a.useMemo(()=>yt({talent_type:ut().required("Are you an Actor? Model? Or both?"),year:ke().required().min(4),first_name:ke().required("We work on a first name basis, so need this"),last_name:ke().required("We also need to know y
1our last name"),current_city:ke().required("Your current place of residence please").nullable(),date_of_birth:Ms().min(_a(ca),"Please enter a vaild date of birth").max(new Date,"Please enter a vaild date of birth").required("When were you born?"),mobile:ke().required("We need this for notifications. No spam messages. Promise").matches(Ot,"Please enter valid mobile number"),gender:ut().required("Please select your gender").typeError("Please select your gender"),receive_whatsapp_updates:Ye(),is_mobile_verified:Ye().required("Please verify phone number to proceed"),show_to_recruiters:Ye(),id_number:ut().required("What ID proof are you submitting?").nullable(),proof_doc:ke().required("You need to upload the ID proof too"),proof_img:ke(),has_manager:Ye(),receive_manager_mobile_updates:Ye(),receive_manager_email_updates:Ye(),mananger_email_address:ke().ensure().when("has_manager",{is:!0,then:l=>l.required("Your manager's email please").email("Please enter valid email")}),mananger_mobile_number:ke().ensure().when("has_manager",{is:!0,then:l=>l.required("Your manager's mobile number").matches(Ot,"Please enter valid mobile number")})}),[]);a.useEffect(()=>{var l;if(ge.length){const b=ge.filter(ce=>ce.id!==1&&ce.id!==2);Y(b);const J=b.slice(0,Be);if((l=s==null?void 0:s.talenter)!=null&&l.current_city)if(J.find(Ne=>{var de;return Ne.id===((de=s==null?void 0:s.talenter)==null?void 0:de.current_city)}))D(J);else{const Ne=b.find(de=>{var Ce;return de.id===((Ce=s==null?void 0:s.talenter)==null?void 0:Ce.current_city)});D(Ne?[Ne,...J]:J)}else D(J)}},[ge,(ht=s==null?void 0:s.talenter)==null?void 0:ht.current_city]),a.useEffect(()=>{let l=!0;return(async()=>{try{const b=await Ct.getEmailTemplateByID(13);l&&ee(b)}catch{}})(),()=>{l=!1}},[]),a.useEffect(()=>()=>{W.current&&clearTimeout(W.current)},[]);const i=a.useCallback(async l=>{se.current||(W.current&&clearTimeout(W.current),W.current=setTimeout(async()=>{var b,J,ce,Ne,de,Ce,Ie,Te,Ue,dt;try{se.current=!0;const Qe=l.is_mobile_verified?l.mobile:(s==null?void 0:s.mobile)||"",ys={f
1irst_name:l.first_name?Ve(l.first_name):(s==null?void 0:s.first_name)||"",last_name:l.last_name?Ve(l.last_name):(s==null?void 0:s.last_name)||"",date_of_birth:l.date_of_birth||(s==null?void 0:s.date_of_birth)||null,mobile:Qe,receive_whatsapp_updates:l.receive_whatsapp_updates,facebook_link:l.facebook_link||(s==null?void 0:s.facebook_link)||"",instagram_link:l.instagram_link||(s==null?void 0:s.instagram_link)||"",imdb_profile:l.imdb_profile||(s==null?void 0:s.imdb_profile)||"",youtube_profile:l.youtube_profile||(s==null?void 0:s.youtube_profile)||"",last_updated_on:new Date},Ns={user_id:s.user_id,talent_type:l.talent_type||((b=s==null?void 0:s.talenter)==null?void 0:b.talent_type)||"",current_city:l.current_city||((J=s==null?void 0:s.talenter)==null?void 0:J.current_city)||null,gender:l.gender!==void 0&&l.gender!==null?l.gender:(ce=s==null?void 0:s.talenter)==null?void 0:ce.gender,show_to_recruiters:l.show_to_recruiters,id_number:l.id_number||((Ne=s==null?void 0:s.talenter)==null?void 0:Ne.id_number)||"",proof_doc:l.proof_doc||((de=s==null?void 0:s.talenter)==null?void 0:de.proof_doc)||"",proof_img:l.proof_img||((Ce=s==null?void 0:s.talenter)==null?void 0:Ce.proof_img)||"",last_activity_page:1,has_manager:l.has_manager,id:(Ie=s==null?void 0:s.talenter)!=null&&Ie.id?(Te=s==null?void 0:s.talenter)==null?void 0:Te.id:null,personal_data_updated_on:new Date},Cs={user_id:s.user_id,mananger_email_address:l.mananger_email_address||((Ue=s==null?void 0:s.manager)==null?void 0:Ue.mananger_email_address)||"",mananger_mobile_number:l.mananger_mobile_number||((dt=s==null?void 0:s.manager)==null?void 0:dt.mananger_mobile_number)||"",receive_manager_mobile_updates:l.receive_manager_mobile_updates,receive_manager_email_updates:l.receive_manager_email_updates};(await Le.handleUserData({user_id:s.user_id,user:ys,talenter:Ns,manager:Cs})).status===200&&await X()}catch(Qe){console.error("Auto-save error:",Qe),A("Failed to save data","error")}finally{se.current=!1}},1e3))},[s,X,A]),t=Wt({initialValues:he,enableReinitialize:!0,validationSchema:we,onSubmit:async(l,{setStatus:b,setSubmitting:J})=>{var ce,Ne;if(J(!1),!t.dirty){z(!1),k(!1);return}try{b(),z(!0),J(!0);const de={first_name:Ve(l.first_name),last_name:Ve(l.last_name),date_of_birth:l.date_of_birth,mobile:l.mobile,receive_whatsapp_updates:l.receive_whatsapp_updates,facebook_link:l.facebook_link,instagram_link:l.instagram_link,imdb_profile:l.imdb_profile,youtube_profile:l.youtube_profile,last_updated_on:new Date},Ce={user_id:s.user_id,talent_type:l.talent_type,current_city:l.current_city,gender:l.gender,show_to_recruiters:l.show_to_recruiters,id_number:l.id_number,proof_doc:l.proof_doc,proof_img:l.proof_img,last_activity_page:1,has_manager:l.has_manager,id:((ce=s==null?void 0:s.talenter)==null?void 0:ce.id)??null,personal_data_updated_on:new Date},Ie={user_id:s.user_id,mananger_email_address:l.mananger_email_address,mananger_mobile_number:l.mananger_mobile_number,receive_manager_mobile_updates:l.receive_manager_mobile_updates,receive_manager_email_updates:l.receive_manager_email_updates};if(await Le.handleUserData({user_id:s.user_id,user:de,talenter:Ce,manager:Ie}),await X(),(s==null?void 0:s.mobile)!==l.mobile&&(B!=null&&B.email_content)){let Te=B.email_content.replace("${number}",l.mobile);Ct.mobileUpatedNotification(s.user_id,Te);const Ue={user_id:`${s==null?void 0:s.user_id}`,message:`<p><a class="talent_name" href="${jt.admin_url}/app/talent-management/profile/${s==null?void 0:s.user_id}">${s==null?void 0:s.first_name} (Talent ${s==null?void 0:s.user_id})</a> update mobile number to ${l.mobile} (from ${s==null?void 0:s.mobile})</p>`};Le.createLog(Ue)}z(!1),setTimeout(()=>{k(!1),J(!1)},300)}catch(de){z(!1),de!=null&&de.response?b(((Ne=de.response.data)==null?void 0:Ne.message)||"Some error occured."):b("Some error occured.")}}}),o=a.useCallback(l=>{if(!ve.current)return!0;const b=ve.current;return b.first_name!==l.first_name||b.last_name!==l.last_name||b.current_city!==l.current_city||b.date_of_birth!==l.date_of_birth||b.gender!==l.gender||b.receive_whatsapp_updates!==l.receive_whatsapp_updates||b.show_to_recruiters!==l.show_to_recruiters||b.id_number!==l.id_number||b.proof_doc!==l.proof_doc||b.proof_img!==l.proof_img||b.has_manager!==l.has_manager||b.mananger_email_address!==l.mananger_email_address||b.mananger_mobile_number!==l.mananger_mobile_number||b.receive_manager_mobile_updates!==l.receive_manager_mobile_updates||b.receive_manager_email_updates!==l.receive_manager_email_updates},[]);a.useEffect(()=>{if(t.dirty&&!t.isSubmitting&&O&&!se.current){const l={first_name:t.values.first_name,last_name:t.values.last_name,current_city:t.values.current_city,date_of_birth:t.values.date_of_birth,gender:t.values.gender,receive_whatsapp_updates:t.values.receive_whatsapp_updates,show_to_recruiters:t.values.show_to_recruiters,id_number:t.values.id_number,proof_doc:t.values.proof_doc,proof_img:t.values.proof_img,has_manager:t.values.has_manager,mananger_email_address:t.values.mananger_email_address,mananger_mobile_number:t.values.mananger_mobile_number,receive_manager_mobile_updates:t.values.receive_manager_mobile_updates,receive_manager_email_updates:t.values.receive_manager_email_updates};o(l)&&(ve.current=l,i(t.values))}},[t.values.first_name,t.values.last_name,t.values.current_city,t.values.date_of_birth,t.values.gender,t.values.receive_whatsapp_updates,t.values.show_to_recruiters,t.values.id_number,t.values.proof_doc,t.values.proof_img,t.values.has_manager,t.values.mananger_email_address,t.values.mananger_mobile_number,t.values.receive_manager_mobile_updates,t.values.receive_manager_email_updates,t.dirty,t.isSubmitting,O]);const C=a.useCallback(()=>{O||y(l=>!l)},[O]),v=a.useCallback((l,b)=>{l.target.value.length<=50?t.setFieldValue(b,l.target.value):l.preventDefault(),l.stopPropagation()},[t]),N=a.useCallback(l=>Xt(l.target.value),[]),H=a.useCallback(()=>S(!1),[]),V=a.useCallback(async()=>{T(!0),xe(Kt),fe(!1);
1try{const l={user_id:s.user_id,user_type:1,mobile:t.values.mobile},b=await Yt.sendOTP(l);b.httpCode===200?(S(!0),be(null)):b.httpCode===500&&be(b.message)}finally{T(!1)}},[t.values.mobile,s==null?void 0:s.user_id]),f=a.useCallback(async l=>{le(!0);try{const b={user_id:s.user_id,otp:l,otp_type:"mobile",mobile:t.values.mobile};(await Yt.verifyOtp(b)).httpCode===200?(H(),t.setFieldValue("is_mobile_verified",!0),i(t.values)):_(!0)}finally{le(!1)}},[t,H,s==null?void 0:s.user_id,i]),F=a.useCallback((l,b,J,ce,Ne,de)=>{const Ce=String(Ne||""),Ie=l.filter(Ue=>String(Ue[b]||"").toLowerCase().startsWith(Ce.toLowerCase())),Te=(de==null?void 0:de.length)??0;Ie.length>0?J(Ie.slice(0,Be+Te)):J(l.slice(0,Be+Te)),Ce||(t.setFieldValue(ce,null),J(l.slice(0,Be+Te)))},[t]),ie=a.useCallback((l,b)=>{var ce;const J=new RegExp(`(${b.join("|").replace(/\./g,"\\.")})$`).test(((ce=l==null?void 0:l.name)==null?void 0:ce.toLowerCase())||"");return J||(t.setFieldValue("proof_doc",""),E("Please select valid file.")),J},[t]),ye=a.useCallback(async(l,b,J)=>{const ce={proof_doc:l,proof_img:b,id_number:J};try{await Le.UpdateTalent(s.talenter.id,ce),j()}catch{}},[j,(xt=s==null?void 0:s.talenter)==null?void 0:xt.id]),Ze=a.useCallback(async l=>{try{oe(!0);const J={files:[{fileName:`Tallent/${(s==null?void 0:s.user_id)+"_"+(s==null?void 0:s.first_name)}/${l.name}`,fileType:l.type}]},ce=await Le.getPreSignedUrl(J),{signedUrl:Ne}=ce.files[0],de=await fetch(Ne,{method:"PUT",body:l,headers:{"Content-Type":l.type}});if(!de.ok)throw new Error(`Upload failed with status: ${de.status}`);const Ce=Ne.split("?")[0];return Ce?(t.setFieldValue("proof_doc",l.name),t.setFieldValue("proof_img",Ce),await ye(l.name,Ce,t.values.id_number)):(t.setFieldValue("proof_doc",""),t.setFieldValue("proof_img","")),Ce}catch(b){return console.error("Error uploading proof:",b),A("Something went wrong","error"),t.setFieldValue("proof_img",""),t.setFieldValue("proof_doc",""),""}finally{oe(!1)}},[t,ye,s==null?void 0:s.first_name,s==null?void 0:s.user_id,A]),Oe=a.useCallback(()=>{c(!1),x(!1)},[]),G=a.useCallback(()=>{x(!0),c(!1),setTimeout(()=>{const l=document.getElementById("contained-button-proof");l&&l.click()},0)},[]),De=a.useCallback((l,b)=>{l||b?(c(!0),x(!1)):G()},[G]),qe=a.useCallback(()=>{var l;return De((l=s==null?void 0:s.talenter)==null?void 0:l.proof_img,t.values.proof_img)},[t.values.proof_img,(it=s==null?void 0:s.talenter)==null?void 0:it.proof_img,De]),[re,Xe]=a.useState(null),Pt=l=>{Xe(l.currentTarget)},ft=()=>{Xe(null)},Rt=!!re;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"act__user_profile",children:[e.jsx("div",{className:"act__user_profile_top",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"profile_name__accd",onClick:C,children:[e.jsxs("h3",{children:["Personal data"," "," ",d?e.jsx(st,{sx:{color:"#9B26B6",fontSize:40}}):e.jsx(at,{sx:{color:"#9B26B6",fontSize:40}})," "]}),e.jsx("span",{className:"under_line"})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:d?e.jsxs("div",{className:"profile_name__accright flex items-center",children:[e.jsx("label",{className:"last_upte",children:(rt=s==null?void 0:s.talenter)!=null&&rt.personal_data_updated_on?"Last updated: "+Me(new Date((nt=s==null?void 0:s.talenter)==null?void 0:nt.personal_data_updated_on)).format("DD-MMM-YYYY"):null}),!r&&e.jsx(Ke,{EditHandler:()=>k(!0),CancelHandler:()=>{k(!1),t.resetForm(),ve.current=null},SubmitHandler:()=>{t.handleSubmit()},isEdit:O,isSpin:R,isFormSubmited:t.isSubmitting,disableSubmit:!t.dirty})]}):null})]})}),e.jsx("div",{className:d&&!O?"show_accrodian personaldata_profile_top accrodian_data":"hide_accrodian personaldata_profile_top accrodian_data",children:e.jsx(pt,{className:"outer_form_cntrol",children:e.jsx("div",{className:"mt20",children:e.jsxs("div",{className:"outer_bg_section_data form__view__data",children:[e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"First Name",tooltip:"Type your first name as mentioned on your ID Card.",name:"first_name",value:s==null?void 0:s.first_name})}),e.jsxs(n.Col,{sm:6,children:[e.jsx("div",{className:" web_uses",children:e.jsx(Pe,{label:"City",tooltip:"Select the city you are currently living in.",name:"city",value:ue})}),e.jsx("div",{className:" res_use",children:e.jsx(Pe,{label:"Last Name",tooltip:"Type your last name as mentioned on your ID Card.",name:"last_name",value:s==null?void 0:s.last_name})})]})]}),e.jsxs(n.Row,{children:[e.jsxs(n.Col,{sm:6,children:[e.jsx("div",{className:" web_uses",children:e.jsx(Pe,{label:"Last Name",tooltip:"Type your last name as mentioned on your ID Card.",name:"last_name",value:s==null?void 0:s.last_name})}),e.jsx("div",{className:"res_use",children:e.jsx(Pe,{label:"City",tooltip:"Select the city you are currently living in.",name:"city",value:ue})})]}),e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"Email",tooltip:"Your current email ID",name:"email",value:s==null?void 0:s.email})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Gender ",e.jsx($,{message:"Select your gender.",title:"Gender"})]}),e.jsx(Ft,{gender:(ot=s==null?void 0:s.talenter)==null?void 0:ot.gender})]})}),e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"Phone",tooltip:"Enter your 10-digit Whatsapp number and click on Verify.",name:"mobile",value:s==null?void 0:s.mobile})})]}),!r&&e.jsxs(e.Fragment,{children:[e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"Date of birth",tooltip:"Enter your birth date as mentioned on your ID Card.",name:"dob",value:Me(new Date(s==null?void 0:s.date_of_birth)).format("DD-MMM-YYYY")}
1)}),e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"Photo ID Proof",tooltip:"Upload your photo ID proof as a scanned PDF or a clear image that shows your name, photo and date of birth so that we can verify your ID.",name:"id_type",value:((h=Qt.find(l=>{var b;return l.id===String((b=s==null?void 0:s.talenter)==null?void 0:b.id_number)}))==null?void 0:h.value)??"null"})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"Manager's email",tooltip:"Type your manager's email here.",name:"manager_email",value:(w=s==null?void 0:s.manager)==null?void 0:w.mananger_email_address})}),e.jsx(n.Col,{sm:6,children:e.jsx(Pe,{label:"Manager's phone",tooltip:"Type your manager's contact number here.",name:"manager_phone",value:(P=s==null?void 0:s.manager)==null?void 0:P.mananger_mobile_number})})]})]})]})})})}),O&&d?e.jsxs("div",{className:"edit__form",children:[e.jsxs("div",{className:"mt20 edit_field",children:[e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.first_name?"mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:" label_text",children:["First Name",e.jsx($,{message:"Type your first name as mentioned on your ID Card.",title:"First name"})]}),e.jsx(U,{id:"first_name",variant:"standard",name:"first_name",placeholder:"Enter your town/city",value:Ve(t.values.first_name),slotProps:{input:{autoComplete:"new-password"}},onChange:l=>v(l,"first_name"),error:t.touched.first_name&&!!t.errors.first_name,helperText:t.touched.first_name&&t.errors.first_name})]})}),e.jsxs(n.Col,{sm:6,children:[e.jsx("div",{className:"web_uses",children:e.jsxs("div",{className:t.values.current_city?"mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["City ",e.jsx($,{message:"Select the city you are currently living in.",title:"City"})]}),e.jsx(et,{error:t.errors.current_city&&t.touched.current_city,data:ne,autoComplete:!0,dropdownName:"city_name",handleChange:l=>{t.setFieldValue("current_city",l),D(b=>[...b,...p.slice(0,Be)])},values:t.values.current_city,handleInputChange:l=>F(p,"city_name",D,"current_city",l,t.values.current_city)}),t.errors.current_city&&t.touched.current_city?e.jsx("p",{className:"form_err",children:t.errors.current_city}):null]})}),e.jsx("div",{className:"res_use",children:e.jsxs("div",{className:t.values.last_name?"mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text 3",children:["Last Name ",e.jsx($,{message:"Type your last name as mentioned on your ID Card.",title:"Last name"})]}),e.jsx(U,{id:"last_name_m",variant:"standard",name:"last_name",placeholder:"Last Name",value:Ve(t.values.last_name),slotProps:{input:{autoComplete:"new-password"}},onChange:l=>v(l,"last_name"),error:t.touched.last_name&&!!t.errors.last_name,helperText:t.touched.last_name&&t.errors.last_name})]})})]})]}),e.jsxs(n.Row,{children:[e.jsxs(n.Col,{sm:6,children:[e.jsx("div",{className:"web_uses",children:e.jsxs("div",{className:t.values.last_name?"mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text 3",children:["Last Name ",e.jsx($,{message:"Type your last name as mentioned on your ID Card.",title:"Last name"})]}),e.jsx(U,{id:"last_name",variant:"standard",name:"last_name",placeholder:"Last Name",value:Ve(t.values.last_name),slotProps:{input:{autoComplete:"new-password"}},onChange:l=>v(l,"last_name"),error:t.touched.last_name&&!!t.errors.last_name,helperText:t.touched.last_name&&t.errors.last_name})]})}),e.jsx("div",{className:"res_use",children:e.jsxs("div",{className:t.values.current_city?"mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["City ",e.jsx($,{message:"Select the city you are currently living in.",title:"City"})]}),e.jsx(et,{error:t.errors.current_city&&t.touched.current_city,data:ne,autoComplete:!0,dropdownName:"city_name",handleChange:l=>{t.setFieldValue("current_city",l),D(b=>[...b,...p.slice(0,Be)])},values:t.values.current_city,handleInputChange:l=>F(p,"city_name",D,"current_city",l,t.values.current_city)}),t.errors.current_city&&t.touched.current_city?e.jsx("p",{className:"form_err",children:t.errors.current_city}):null]})})]}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.email?"mt-7 border_bottom disabled_border_bottom":"mt-7 border_bottom disabled_border_bottom",children:[e.jsxs("h5",{className:"label_text disabled_label_text",children:["Email ",e.jsx($,{message:"Your current email ID",title:"Email"})]}),e.jsx(U,{variant:"standard",name:"email",placeholder:"Enter your email",value:t.values.email||"",onChange:l=>v(l,"email"),error:t.touched.email&&!!t.errors.email,helperText:t.touched.email&&t.errors.email,disabled:!0})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:(s==null?void 0:s.profile_status)===Zt?e.jsxs("div",{className:"mt-7 border_bottom disabled_border_bottom",children:[e.jsxs("h5",{className:"label_text disabled_label_text",children:["Gender ",e.jsx($,{message:"Select your gender.",title:"Gender"})]}),e.jsx(Ft,{gender:(Z=s==null?void 0:s.talenter)==null?void 0:Z.gender}),e.jsx("span",{className:"info_text_disable",children:"Contact support to change this value"})]}
1):e.jsx(xs,{value:t.values.gender,onChange:l=>t.setFieldValue("gender",l),error:t.errors.gender&&t.touched.gender?t.errors.gender:""})}),e.jsx(n.Col,{sm:6,children:(s==null?void 0:s.profile_status)===Zt?e.jsxs("div",{className:"mt-7 border_bottom disabled_border_bottom",children:[e.jsxs("h5",{className:"label_text disabled_label_text",children:["Date of birth",e.jsx($,{message:"Enter your birth date as mentioned on your ID Card.",title:"Date of birth"})]}),e.jsx(U,{variant:"standard",name:"dob",value:ws(new Date(s==null?void 0:s.date_of_birth)),disabled:!0}),e.jsx("span",{className:"info_text_disable",children:"Contact support to change this value"})]}):e.jsxs("div",{className:`${t.values.date_of_birth?"value_broder ":""} border_bottom mt-7 ${t.errors.date_of_birth&&t.touched.date_of_birth?"error":""}`,children:[e.jsxs("div",{className:"border_bottom_fixed",children:[e.jsx("h5",{className:"label_text",children:"Date of birth"}),e.jsx($,{message:"Enter your birth date as mentioned on your ID Card.",title:"Date of birth"})]}),e.jsx(Hs,{formikDateValue:t.values.date_of_birth,setFormikDateValue:l=>{JSON.stringify(t.values.date_of_birth)!==JSON.stringify(l)&&t.setFieldValue("date_of_birth",l)}}),t.errors.date_of_birth&&t.touched.date_of_birth?e.jsx("p",{className:"form_err",children:t.errors.date_of_birth}):null]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.mobile?"mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Whatsapp mobile number",e.jsx($,{title:"Whatsapp mobile number",message:"Enter your 10-digit Whatsapp number and click on Verify."})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{className:"phone_number ",style:{width:"61%"},children:[e.jsx(U,{id:"mobile",variant:"standard",slotProps:{input:{autoComplete:"new-password"}},name:"mobile",placeholder:"Enter your 10-digit mobile number",value:t.values.mobile,onBlur:t.handleBlur,onChange:l=>{t.setFieldValue("is_mobile_verified",""),be(null),l.target.value.length<=Be?(l.target.value.length===Be&&l.target.value===(s==null?void 0:s.mobile)&&t.setFieldValue("is_mobile_verified",!0),t.setFieldValue("mobile",N(l))):l.preventDefault()},error:t.touched.mobile&&!!t.errors.mobile,helperText:t.touched.mobile&&t.errors.mobile}),e.jsx("p",{className:"form_err",children:!t.values.is_mobile_verified&&!te&&!t.errors.mobile&&t.touched.is_mobile_verified&&t.errors.is_mobile_verified}),e.jsx("p",{className:"form_err",children:!t.errors.mobile&&te&&te})]}),e.jsx("div",{className:"verfiy_buttons verify_mobile_button",children:e.jsx(_e,{text:e.jsxs("span",{className:"flex justify-center items-center",children:[e.jsx("span",{className:"verfiy_icon not__vaild_img"})," ",t.values.is_mobile_verified?"Verified":"Verify"]}),noHover:!0,white:!0,disableBtn:t.values.is_mobile_verified||((K=t==null?void 0:t.errors)==null?void 0:K.mobile),disabled:t.values.is_mobile_verified||((Se=t==null?void 0:t.errors)==null?void 0:Se.mobile),onClick:V,style:{height:"fit-content"},isLoading:pe})})]})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs(n.Row,{className:"ChangeButtonaction",style:{height:"100%",alignItems:"center"},children:[e.jsx(n.Col,{sm:6,className:"mb-3 sm:mb-0",children:e.jsx("div",{className:"formLabelText",children:e.jsx(ct,{control:e.jsx(Tt,{onChange:()=>t.setFieldValue("receive_whatsapp_updates",!t.values.receive_whatsapp_updates),checked:t.values.receive_whatsapp_updates,slotProps:{input:{"aria-label":"controlled"}}}),label:"Whatsapp Updates"})})}),e.jsx(n.Col,{sm:6,children:e.jsx("div",{className:"formLabelText",children:e.jsx(ct,{control:e.jsx(Tt,{color:"secondary",onChange:()=>t.setFieldValue("show_to_recruiters",!t.values.show_to_recruiters),checked:t.values.show_to_recruiters,slotProps:{input:{"aria-label":"controlled"}}}),label:"Show to recruiters"})})})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.id_number?" mt-7 value_broder border_bottom":"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["ID Type ",e.jsx($,{message:"Select your ID type.",title:"ID Type"})]}),e.jsx(et,{data:Qt,error:t.errors.id_number&&t.touched.id_number,dropdownName:"value",autoComplete:!0,values:t.values.id_number,handleChange:l=>t.setFieldValue("id_number",l).then(()=>t.setFieldValue("proof_doc","")),onType:()=>{}}),e.jsx("em",{children:"Passport, AADHAAR, Voter's ID, Driver's License, PAN Card, Other"}),t.errors.id_number&&t.touched.id_number?e.jsx("p",{className:"form_err",children:t.errors.id_number}):null]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.proof_doc?" mt-7 value_broder border_bottom":" mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Photo ID Proof"," ",e.jsx($,{title:"Upload your Photo ID",message:"Upload your photo ID proof as a scanned PDF or a clear image that shows your name, photo and date of birth so that we can verify your ID."}),e.jsx("span",{onClick:Pt,style:{color:"#9c27b0",cursor:"pointer",fontWeight:600,fontFamily:"Poppins, sans-serif"},children:"(Why?)"})]}),e.jsxs(n.Row,{children:[e.jsxs(n.Col,{sm:8,xs:6,children:[e.jsx("div",{onClick:()=>{t.values.proof_img&&window.open(`${t.values.proof_img}`,"_blank")},className:`${t.values.proof_img?"input_textColor":""}`,children:e.jsx(U,{id:"proof_doc",variant:"standard",name:"proof_doc",slotProps:{input:{autoComplete:"new-password"}},value:t.values.proof_doc,error:t.touched.proof_doc&&!!t.errors.proof_doc,helperText:t.touched.proof_doc&&t.errors.proof_doc})}),e.jsx("em",{style:{fontSize:10},children:"Scanned PDF/image up to a size of 10MB"}),M?e.jsx("p",{className:"form_err",children:M}):null]}),e.jsx(n.Col,{sm:4,xs:4,children:e.jsx("div",{className:"uplode_file",style:{margin:0},children:e.jsxs("label",{htmlFor:"contained-button-proof",children:[!L&&!q&&e.jsx(ua,{accept:"image/*,.pdf",id:"contained-button-proof",type:"file",onChange:async l=>{var J;const b=(J=l.currentTarget.files)==null?void 0:J[0];b&&(b.size<=Ss?ie(b,[".jpeg",".jpg",".png",".pdf"])&&(await Ze(b),t.setFieldValue("proof_doc",b.name),E(!1)):(t.setFieldValue("proof_img",""),t.setFieldValue("proof_doc",""),E("Please select file within 10MB")))}}),e.jsx(_e,{text:e.jsxs("div",{className:"flex",children:[e.jsx("span",{className:"uplode_icon"}),"Upload"]}),noHover:!0,white:!0,disableBtn:L,isLoading:L,component:"span",onClick:qe})]})})})]})]})})]}),e.jsx(n.Row,{children:e.jsxs(n.Col,{sm:12,children:[e.jsx("div",{className:"m-left terms_and_condition_section mt-7 ",children:e.jsx(ct,{control:e.jsx(Js,{id:"has_manager",checked:t.values.has_manager,onChange:l=>t.setFieldValue("has_manager",l.target.checked),slotProps:{input:{"aria-label":"controlled"}}}),label:e.jsx("span",{className:"to_add_style",children:"I'm managed by a manager"})})}),t.values.has_manager&&e.jsxs("div",{className:"afterclick_checkbox",children:[e.jsx("div",{className:"mt20",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.mananger_email_address?"value_broder border_bottom":"border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Manager's email ",e.jsx($,{message:"Type your manager's email here.",title:"Manager's email"})]}),e.jsx(U,{id:"mananger_email_address",slotProps:{input:{autoComplete:"new-password"}},variant:"standard",name:"mananger_email_address",value:t.values.mananger_email_address,onBlur:t.handleBlur,onChange:t.handleChange,error:t.touched.mananger_email_address&&!!t.errors.mananger_email_address,helperText:t.touched.mananger_email_address&&t.errors.mananger_email_address})]})}),e.jsx(n.Col,{sm:6,children:e.jsx(gs,{label:"Send updates to my manager's email",checked:t.values.receive_manager_email_updates,onToggle:()=>t.setFieldValue("receive_manager_email_updates",!t.values.receive_manager_email_updates)})})]})}),e.jsx("div",{className:"mt20",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:t.values.mananger_mobile_number?"value_broder border_bottom":"border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Manager's Phone number",e.jsx($,{message:"Type your manager's contact number here.",title:"Manager's Phone number"})]}),e.jsx(U,{id:"mananger_mobile_number",variant:"standard",onBlur:t.handleBlur,name:"mananger_mobile_number",slotProps:{input:{autoComplete:"new-password"}},value:t.values.mananger_mobile_number,onChange:l=>{l.target.value.length<=Be?t.setFieldValue("mananger_mobile_number",Xt(l.target.value)):l.preventDefault()},error:t.touched.mananger_mobile_number&&!!t.errors.mananger_mobile_number,helperText:t.touched.mananger_mobile_number&&t.errors.mananger_mobile_number})]})}),e.jsx(n.Col,{sm:6,children:e.jsx("div",{className:"border_bottom",children:e.jsx("div",{className:"switch_design switchLabel",children:e.jsx(ct,{control:e.jsx(Tt,{onChange:()=>t.setFieldValue("receive_manager_mobile_updates",!t.values.receive_manager_mobile_updates),checked:t.values.receive_manager_mobile_updates,color:"secondary",slotProps:{input:{"aria-label":"controlled"}}}),label:"Send updates to my manager's number",style:{gap:20}})})})})]})})]})]})})]}),e.jsx(Os,{open:I,handleClose:H,mobileNumber:(Re=t==null?void 0:t.values)==null?void 0:Re.mobile,HandleOtpVerification:V,loading:Q,verifyOtp:f,setShowResend:fe,setTime:xe,time:me,showResend:ae,invalidotp:g,setInvalidotp:_})]}):null]}),q&&!je&&e.jsxs(Fe,{style:{padding:"15px"},open:q,onClose:Oe,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[e.jsx(Ae,{style:{fontSize:"20px",fontWeight:"600",color:"#9b26b6",textAlign:"center"},className:"popup__header",id:"alert-dialog-title",children:"Are you sure?"}),e.jsx(He,{children:e.jsxs(Je,{style:{color:"#000",fontSize:"16px",fontWeight:"400"},id:"alert-dialog-description",children:["You have already uploaded the ID Card image. Uploading another image will over
1write the previous image.",e.jsx("br",{}),e.jsx("br",{})," (",e.jsx("b",{children:"Note:"})," Your photo should be clearly visible in your ID Card)."]})}),e.jsxs(Ge,{style:{padding:"16px"},children:[e.jsx(Dt,{style:{border:"1px solid #E5E5E5",color:"#000",fontSize:"16px",fontWeight:"600"},className:"custom_backbutton",onClick:Oe,children:"Cancel"}),e.jsx(Dt,{className:"custom_button",style:{background:"#9B26B6",color:"#fff",fontSize:"16px",fontWeight:"600"},onClick:G,autoFocus:!0,children:"Yes, upload"})]})]}),re&&e.jsx(ks,{className:"PopoverOutrSections",open:Rt,anchorEl:re,onClose:ft,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},slotProps:{paper:{sx:{borderRadius:2,padding:"16px",maxWidth:{xs:"90vw",sm:"400px"},width:"100%",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.15)",mt:-1,left:"0px !important",transform:"none !important"}}},children:e.jsxs(tt,{sx:{position:"relative"},children:[e.jsx(Ps,{"aria-label":"close",onClick:ft,sx:{position:"absolute",right:-8,top:-8,color:"#999",padding:"4px","&:hover":{color:"#44454D"}},children:e.jsx(It,{fontSize:"small"})}),e.jsx(mt,{sx:{fontSize:"16px",fontWeight:600,fontFamily:"Poppins, sans-serif",color:"#333",mb:1.5,pr:2},children:"Why do we ask for Photo ID?"}),e.jsxs(mt,{variant:"body2",sx:{fontSize:"14px",lineHeight:1.6,color:"#44454D",fontFamily:"Poppins, sans-serif",mb:1.5},children:[e.jsx("strong",{style:{color:"#333"},children:"For your own safety."})," Your photos and work links can be easily found online and used by someone to create a Fake profile. A Photo ID reduces the chance of someone else impersonating you and creating your Fake profile."]}),e.jsxs(mt,{variant:"body2",sx:{fontSize:"14px",lineHeight:1.6,color:"#44454D",fontFamily:"Poppins, sans-serif"},children:["Rest assured,"," ",e.jsx("strong",{style:{color:"#333"},children:"your Photo ID is never shared externally."})," ","Moreover you may hide a few digits of your Photo ID before uploading for added privacy."]})]})})]})}Ut.propTypes={isPreviewd:m.bool};Ut.defaultProps={isPreviewd:!1};const fa=(r,d)=>{if(!d)return"";if(r!=="in")return`${d} cm`;const y=(S,O)=>O>0?`${S}ft ${O}in`:`${S}ft`;if(d<=12){const S=Math.max(0,d-1);return y(1,S)}if(d%12===0)return y(d/12,11);const _=Math.floor(d/12)+1,I=d%12-1;return y(_,I)},bt=(r,d)=>r?d?`${r} ${d}`:r:"",ha=(r,d)=>!r||!d?"":`${r}-${d} Years`;function Bt({isPreviewd:r}){var ae;const[d,y]=a.useState(!0),[g,_]=a.useState(!1),[I,S]=a.useState(!1),[O,k]=a.useState(!1),[p,Y]=a.useState(!1),[s,X]=a.useState(!1),{user:u}=a.useContext($e),j=(u==null?void 0:u.physical_description)||{},A=()=>{g||y(!d)},R=()=>_(!0),z=()=>_(!1),me=()=>S(!0),xe=()=>{_(!1),S(!1),Y(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"act__user_profile",children:[e.jsx("div",{className:"act__user_profile_top",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"profile_name__accd",onClick:A,children:[e.jsxs("h3",{children:["Physical description"," ",d?e.jsx(st,{sx:{color:"#9B26B6",fontSize:40}}):e.jsx(at,{sx:{color:"#9B26B6",fontSize:40}})]}),e.jsx("span",{className:"under_line"})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:d&&e.jsxs("div",{className:"profile_name__accright flex items-center",children:[e.jsx("label",{className:"last_upte",children:(ae=u==null?void 0:u.talenter)!=null&&ae.physical_description_updated_on?"Last updated: "+Me(new Date(u.talenter.physical_description_updated_on)).format("DD-MMM-YYYY"):null}),!r&&e.jsx(Ke,{EditHandler:R,CancelHandler:z,SubmitHandler:me,isEdit:g,isSpin:O,isFormSubmited:p,disableSubmit:!s})]})})]})}),e.jsx("div",{className:d&&!g?"show_accrodian personaldata_profile_top accrodian_data":"hide_accrodian personaldata_profile_top accrodian_data",children:e.jsx(pt,{className:"outer_form_cntrol",children:e.jsx("div",{className:"mt20",children:e.jsxs("div",{className:"outer_bg_section_data form__view__data",children:[e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Color of The Skin",e.jsx($,{title:"Skin color",message:"Pick the option closest to your skin color."})]}),e.jsx(U,{name:"color",variant:"standard",disabled:!0,value:j.skin_color||""})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Waist",e.jsx($,{title:"Waist",message:"Enter the measurement of the area above your hips."})]}),e.jsx(U,{name:"waist",variant:"standard",disabled:!0,value:bt(j.waist,j.waist_size_type)})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Height",e.jsx($,{title:"Height",message:"Enter your height without heels in ft/in or cm."})]}),e.jsx(U,{name:"height",variant:"standard",disabled:!0,value:fa(j.height_size_type,j.height)})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Hip"," ",e.jsx($,{title:"Hips",message:"Enter the measurement of the fullest part of your hips keeping your heels together."})]}
1),e.jsx(U,{name:"hip",variant:"standard",disabled:!0,value:bt(j.hips,j.hips_size_type)})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Weight",e.jsx($,{title:"Weight",message:"Enter your most recent weight in kgs or lbs."})]}),e.jsx(U,{name:"weight",variant:"standard",disabled:!0,value:bt(j.weight,j.weight_size_type)})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Color of the eyes",e.jsx($,{title:"Eye color",message:"Pick the color closest to your natural eye color."})]}),e.jsx(U,{name:"eye",variant:"standard",disabled:!0,value:j.eye_color||""})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Chest",e.jsx($,{title:"Bust / Chest",message:"Enter the measurement of the fullest part of your chest/bust right under your arms."})]}),e.jsx(U,{name:"chest",variant:"standard",disabled:!0,value:bt(j.bust_or_chest,j.bust_or_chest_size_type)})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Natural color of hair",e.jsx($,{title:"Natural hair color",message:"Pick the color closest to your natural hair color."})]}),e.jsx(U,{name:"hair",variant:"standard",disabled:!0,value:j.natural_hair_color||""})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Screen age",e.jsx($,{title:"Your screen age (years)",message:"Enter your screen age range, per your own opinion. Default is -5/+5 years of your current age (-3/+3, if you are below 18 years old)."})]}),e.jsx(U,{name:"screen_age",variant:"standard",disabled:!0,value:ha(j.screen_min_age,j.screen_max_age)})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Your Natural Look(s)",e.jsx($,{title:"Your Natural Look(s)",message:"Select the natural look(s) that best describe your appearance."})]}),e.jsx(U,{name:"natural_looks",variant:"standard",disabled:!0,multiline:!0,value:vt(u==null?void 0:u.talent_character_looks,"character_look_name")||""})]})})]})]})})})})]}),g&&d&&e.jsx("div",{className:"edit__form",children:e.jsx("div",{className:"mt20 edit_field edit_container",children:e.jsx(Ks,{formSubmit:I,update:xe,setIsLoad:k,setIsFormSubmited:Y,setIsChanged:X,setSave:S})})})]})}Bt.propTypes={isPreviewd:m.bool};Bt.defaultProps={isPreviewd:!1};const xa=r=>({1:"Yes",2:"No",3:"Semi-nude",4:"Depends on the role"})[r]??"",ga=r=>({1:"No Kissing/love-making",2:"Kissing only",3:"Ok with explicit love making",4:"Depends on the role"})[r]??"",ba=r=>({1:"Yes",2:"No",3:"Applied for"})[r]??"";function Lt({isPreviewd:r}){var ne,D,B,ee,M,E,Q,le,L,oe,te;const[d,y]=a.useState(!0),[g,_]=a.useState(!1),[I,S]=a.useState(!1),[O,k]=a.useState(!1),[p,Y]=a.useState(!1),[s,X]=a.useState(!1),{user:u,dependencyData:j}=a.useContext($e),A=ga((ne=u==null?void 0:u.talenter)==null?void 0:ne.preference_love_making_scenes),R=xa((D=u==null?void 0:u.talenter)==null?void 0:D.preference_nudity),z=ba((B=u==null?void 0:u.talenter)==null?void 0:B.passport_status),[me,xe]=a.useState([]),[ae,fe]=a.useState([]);return a.useEffect(()=>{j&&(j!=null&&j.ethnicities&&xe(j==null?void 0:j.ethnicities),j!=null&&j.city&&fe(j==null?void 0:j.city))},[j]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"act__user_profile",children:[e.jsx("div",{className:"act__user_profile_top",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"profile_name__accd",onClick:()=>{g||y(!d)},children:[e.jsxs("h3",{children:["Key Details"," ",d?e.jsx(st,{sx:{color:"#9B26B6",fontSize:40}}):e.jsx(at,{sx:{color:"#9B26B6",fontSize:40}})]}),e.jsx("span",{className:"under_line"})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:d?e.jsxs("div",{className:"profile_name__accright flex items-center",children:[e.jsx("label",{className:"last_upte",children:(ee=u==null?void 0:u.talenter)!=null&&ee.education_and_skills_updated_on?"Last updated: "+Me(new Date((M=u==null?void 0:u.talenter)==null?void 0:M.education_and_skills_updated_on)).format("DD-MMM-YYYY"):null}),!r&&e.jsx(Ke,{EditHandler:()=>_(!0),CancelHandler:()=>_(!1),SubmitHandler:()=>{S(!0)},isEdit:g,isSpin:O,isFormSubmited:p,disableSubmit:!s})]}):null})]})}),e.jsx("div",{className:d&&!g?"show_accrodian personaldata_profile_top accrodian_data":"hide_accrodian personaldata_profile_top accrodian_data",children:e.jsx(pt,{className:"outer_form_cntrol",children:e.jsx("div",{className:"mt20 Mobilepadding",children:e.jsxs("div",{className:"outer_bg_section_data",children:[e.jsx("h4",{className:"section_title",children:"Language And Others"}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Languages known (spoken)",e.jsx($,{title:"Languages known",message:"Select the language(s) you can comfortably speak."})]}),e.jsx(U,{variant:"standard",name:"language_skills",value:vt(u==null?void 0:u.language_skills,"language_name"),disabled:!0,multiline:!0})]})}),e.jsxs(n.Col,{sm:6,children:[" ",e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Your ethnic-look (race)",e.jsx($,{title:"Your ethnic-look (race)",message:"Select your ethnicity. It c
1an be the region you were born in or the race of your parents."})]}),e.jsx(U,{variant:"standard",name:"ethnicity",value:(E=me==null?void 0:me.filter(be=>{var pe;return be.id==((pe=u==null?void 0:u.talenter)==null?void 0:pe.ethnicity)})[0])==null?void 0:E.ethnicity_name,disabled:!0})]})]})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Your native city/town",e.jsx($,{title:"Your native city/town",message:"Enter the town or city you were born in."})]}),e.jsx(U,{variant:"standard",name:"native_town_or_city",value:(Q=ae==null?void 0:ae.filter(be=>{var pe;return be.id==((pe=u==null?void 0:u.talenter)==null?void 0:pe.native_town_or_city)})[0])==null?void 0:Q.city_name,disabled:!0})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Got a valid passport?",e.jsx($,{title:"Got a valid passport?",message:"Select Yes if you hold a valid passport."})]}),e.jsx(U,{variant:"standard",name:"passport_status",value:z,disabled:!0})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Skills",e.jsx($,{title:"Select your skills",message:"Pick one or more of your skills and strengths."})]}),e.jsx(U,{variant:"standard",name:"skill",value:vt(u==null?void 0:u.skills,"skill_name"),disabled:!0,multiline:!0})]})}),e.jsx(n.Col,{sm:6})]}),e.jsx("h4",{className:"section_title",style:{marginTop:"30px"},children:"Bold Scene Preferences"}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Bold scenes",e.jsx($,{title:"Bold scenes",message:"Are you comfortable posing nude or semi-nude in front of the camera?"})]}),e.jsx(U,{variant:"standard",name:"nudity",value:R,disabled:!0})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Love-making scenes",e.jsx($,{title:"Love-Making scenes",message:"Are you comfortable doing love-making scenes in front of the camera?"})]}),e.jsx(U,{variant:"standard",name:"Love-making",value:A,disabled:!0})]})})]}),e.jsx("h4",{className:"section_title",style:{marginTop:"30px"},children:"Acting Education/Exposure"}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Acting education (optional)",e.jsx($,{title:"Acting education",message:"Mention details if you have received any formal acting education."})]}),e.jsx(U,{variant:"standard",name:"acting_education",value:((le=u==null?void 0:u.talenter)==null?void 0:le.acting_education)||"",disabled:!0,multiline:!0})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Theatre experience (optional)",e.jsx($,{title:"Theatre experience",message:"Mention details if you have any formal theatre experience."})]}),e.jsx(U,{variant:"standard",name:"theatre_experience",value:((L=u==null?void 0:u.talenter)==null?void 0:L.theatre_experience)||"",disabled:!0,multiline:!0})]})})]}),e.jsx("h4",{className:"section_title",style:{marginTop:"30px"},children:"Achievements"}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Notable achievements (optional)",e.jsx($,{title:"Notable achievements",message:"Showcase any relevant accomplishments you're particularly proud of."})]}),e.jsx(U,{variant:"standard",name:"notable_achivements",value:((oe=u==null?void 0:u.talenter)==null?void 0:oe.notable_achivements)||"",disabled:!0,multiline:!0})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Other notables (optional)",e.jsx($,{title:"Other notables",message:"Enter any other achievement you'd like recruiters to know about."})]}),e.jsx(U,{variant:"standard",name:"other_notable_achivements",value:((te=u==null?void 0:u.talenter)==null?void 0:te.other_notable_achivements)||"",disabled:!0,multiline:!0})]})})]}),e.jsx("h4",{className:"section_title",style:{marginTop:"30px"},children:"Past Work Experience"}),e.jsx(n.Row,{children:e.jsx(n.Col,{sm:12,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Projects you've worked on (optional)",e.
1jsx($,{title:"Projects you've worked on",message:"Select the type of projects you have previously worked on."})]}),e.jsx(U,{variant:"standard",name:"prior_experience",value:vt(u==null?void 0:u.prior_experience,"projectname"),disabled:!0,multiline:!0})]})})})]})})})})]}),g&&d?e.jsx("div",{className:"edit__form",children:e.jsx("div",{className:"mt20 Mobilepadding edit_field edit_container",children:e.jsx(es,{formSubmit:I,update:be=>{_(!1),S(!1),Y(!1)},setIsLoad:k,setIsFormSubmited:Y,setIsChanged:X,setSave:S,HandleForms:()=>{},isSocial:!1,iskeyData:!0})})}):null]})}Lt.propTypes={isPreviewd:m.bool};Lt.defaultProps={isPreviewd:!1};function $t({isPreviewd:r}){var j,A;const[d,y]=a.useState(!0),[g,_]=a.useState(!1),[I,S]=a.useState(!1),[O,k]=a.useState(!1),[p,Y]=a.useState(!1),[s,X]=a.useState(!1),{user:u}=a.useContext($e);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"act__user_profile",children:[e.jsx("div",{className:"act__user_profile_top",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"profile_name__accd",onClick:()=>{g||y(!d)},children:[e.jsxs("h3",{children:["Social Media Handles"," ",d?e.jsx(st,{sx:{color:"#9B26B6",fontSize:40}}):e.jsx(at,{sx:{color:"#9B26B6",fontSize:40}})]}),e.jsx("span",{className:"under_line"})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:d?e.jsxs("div",{className:"profile_name__accright flex items-center",children:[e.jsx("label",{className:"last_upte",children:(j=u==null?void 0:u.talenter)!=null&&j.education_and_skills_updated_on?"Last updated: "+Me(new Date((A=u==null?void 0:u.talenter)==null?void 0:A.education_and_skills_updated_on)).format("DD-MMM-YYYY"):null}),!r&&e.jsx(Ke,{EditHandler:()=>_(!0),CancelHandler:()=>_(!1),SubmitHandler:()=>{S(!0)},isEdit:g,isSpin:O,isFormSubmited:p,disableSubmit:!s})]}):null})]})}),e.jsx("div",{className:d&&!g?"show_accrodian personaldata_profile_top accrodian_data":"hide_accrodian personaldata_profile_top accrodian_data",children:e.jsx(pt,{className:"outer_form_cntrol",children:e.jsx("div",{className:"mt20 Mobilepadding",children:e.jsxs("div",{className:"outer_bg_section_data",children:[e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Facebook Page (Optional)",e.jsx($,{title:"Facebook Page",message:"Enter your Facebook page URL."})]}),e.jsx(U,{variant:"standard",name:"facebook_link",value:(u==null?void 0:u.facebook_link)||"",disabled:!0})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Instagram Page (Optional)",e.jsx($,{title:"Instagram Page",message:"Enter your Instagram page URL."})]}),e.jsx(U,{variant:"standard",name:"instagram_link",value:(u==null?void 0:u.instagram_link)||"",disabled:!0})]})})]}),e.jsxs(n.Row,{children:[e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["IMDb Profile (Optional)",e.jsx($,{title:"IMDb Profile",message:"Enter your IMDb profile link."})]}),e.jsx(U,{variant:"standard",name:"imdb_profile",value:(u==null?void 0:u.imdb_profile)||"",disabled:!0})]})}),e.jsx(n.Col,{sm:6,children:e.jsxs("div",{className:"mt-7 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["YouTube Channel (Optional)",e.jsx($,{title:"YouTube Channel",message:"Enter your YouTube channel link."})]}),e.jsx(U,{variant:"standard",name:"youtube_profile",value:(u==null?void 0:u.youtube_profile)||"",disabled:!0})]})})]})]})})})})]}),g&&d?e.jsx("div",{className:"edit__form",children:e.jsx("div",{className:"mt20 Mobilepadding edit_field edit_container",children:e.jsx(es,{formSubmit:I,update:R=>{_(!1),S(!1),Y(!1)},setIsLoad:k,setIsFormSubmited:Y,setIsChanged:X,setSave:S,HandleForms:()=>{},isSocial:!0,iskeyData:!1})})}):null]})}$t.propTypes={isPreviewd:m.bool};$t.defaultProps={isPreviewd:!1};function bs({value:r}){return e.jsxs(tt,{sx:{position:"relative",display:"inline-flex"},children:[e.jsx(Nt,{variant:"determinate",value:r,size:100,thickness:6,sx:{color:"#9B26B6"}}),e.jsx(tt,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(mt,{variant:"caption",component:"div",sx:{color:"#E5E5E5",fontSize:"1rem",fontWeight:"bold"},children:`${Math.round(r)}%`})})]})}bs.propTypes={value:m.number.isRequired};function ja(r,d,y,g,_){var p;const I=(p=r[d])!=null&&p.is_more?"image_item d-none":"image_item";let S="";return y===6?S="normal":y<=20?S="twenty":y>20&&(S="small_imag"),`${I} ${S} ${g?"img_bottom_space image_items_bg_none":"image_items_size"} ${_?"removePlaceHolderBG":""}`.trim()}function js({id:r,index:d,ImgData:y,ImgCount:g,isImgUpload:_,isLoaderDialog:I,isDisable:S,user:O,ImgArray:k,setIsChanged:p,setCoverPhoto:Y,schedulePersist:s,setImgRow:X,setImagData:u,setIsLoaderDialog:j,openSnackbar:A,setTotalFilesToUpload:R,setUploadedFilesCount:z,setUploadProgress:me,handleFileChange:xe}){var be,pe;const{attributes:ae,listeners:fe,setNodeRef:ne,transform:D,transition:B,isDragging:ee}=us({id:r}),M={transform:_s.Transform.toString(D),transition:B,opacity:ee?.5:1},E=()=>{S||setTimeout(()=>{k!=null&&k.current&&(k.current.value="",k.current.click())},500)},Q=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),E())},le=()=>{var T;p&&p(!0),Y([{file_url:(T=y[d])==null?void 0:T.file_url,is_visible:!1,is_cover_photo:!0,key:"",user_id:O==null?void 0:O.user_id}]),s(400)},L=()=>{p&&p(!0),y[d].is_visible=!y[d].is_visible,s(600)},oe=()=>{if(p&&p(!0),y[d].file_url="",y[d].size="",y[d].key="",y[d].is_visible=!1,!(y.filter(je=>je.file_url).length>0)){j(!0),X(1);const je=[];for(let x=0;x<=49;x++){const q={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:O==null?void 0:O.user_id,is_more:x>=8};je.push(q)}u(je),setTimeout(()=>j(!1),2e3)}s(600)},te=ja(y,d,g,_,I);return e.jsxs("div",{ref:ne,style:M,...ae,...fe,className:te,children:[((be=y[d])==null?void 0:be.file_url)&&e.jsx(fs,{index:d,src:(pe=y[d])==null?void 0:pe.file_url,handleMakeCover:le,ImgToggle:L,handleRemove:oe,is_visible:y[d].is_visible}),!_&&!I&&e.jsx("button",{type:"button",className:"image_placeholder_button",onClick:E,onKeyDown:Q,style:{background:"none",border:"none",padding:0,cursor:S?"default":"pointer",display:"block"},"aria-label":"Upload image",disabled:S,children:e.jsx("img",{alt:"",src:Xs,className:"image_placeholder",style:{width:"40px"}})}),!S&&e.jsx("input",{type:"file",multiple:!0,accept:"image/*",id:`file${d}`,ref:k,style:{display:"none"},onChange:T=>xe(T,d)})]})}js.propTypes={id:m.string.isRequired,index:m.number.isRequired,ImgData:m.array.isRequired,ImgCount:m.number.isRequired,isImgUpload:m.bool.isRequired,isLoaderDialog:m.bool.isRequired,isDisable:m.bool.isRequired,user:m.object,ImgArray:m.object.isRequired,setIsChanged:m.func,setCoverPhoto:m.func.isRequired,schedulePersist:m.func.isRequired,setImgRow:m.func.isRequired,setImagData:m.func.isRequired,setIsLoaderDialog:m.func.isRequired,openSnackbar:m.func.isRequired,setTotalFilesToUpload:m.func.isRequired,setUploadedFilesCount:m.func.isRequired,setUploadProgress:m.func.isRequired,handleFileChange:m.func.isRequired};function vs({HandleForms:r,formSubmit:d,update:y,setIsLoad:g,setIsFormSubmited:_,setIsCh
1anged:I}){var it,rt,nt,ot;const S=a.useRef(null),O=Ts(),{openSnackbar:k}=a.useContext(_t),{user:p,updateUser:Y}=a.useContext($e),s=a.useRef(null),X=a.useRef(),[u,j]=a.useState(!1),[A,R]=a.useState(!1),[z,me]=a.useState(!1),[xe,ae]=a.useState(!1),[fe,ne]=a.useState(4),[D,B]=a.useState(!1),[ee,M]=a.useState(0),[E,Q]=a.useState(0),[le,L]=a.useState(0),[oe,te]=a.useState(!1),[be,pe]=a.useState(!1),[T,je]=a.useState([]),[x,q]=a.useState([{file_url:"",is_visible:!1,is_cover_photo:!0,key:"",user_id:p==null?void 0:p.user_id}]),c=8,W=as(St(rs,{activationConstraint:{delay:200,tolerance:5}}),St(is,{coordinateGetter:ls})),se=a.useRef(null),ve=a.useRef(!1),ge=a.useCallback(()=>{const h=T.filter(P=>P.file_url);return{gallary:[...x,...h]}},[T,x]),ue=a.useCallback(async()=>{if(!ve.current){ve.current=!0;try{const h=ge(),w=await At.imageUpload(h);w!=null&&w.data&&await Y()}finally{ve.current=!1}}},[ge,Y]),he=a.useCallback((h=700)=>{se.current&&clearTimeout(se.current),se.current=setTimeout(()=>{ue(),se.current=null},h)},[ue]);a.useEffect(()=>()=>{se.current&&clearTimeout(se.current)},[]),a.useEffect(()=>{if(E>0){const h=le/E*100;M(h),le>=E&&setTimeout(()=>{B(!1),M(0),Q(0),L(0)},500)}},[le,E]);const we=a.useCallback((h=0)=>{const w=[];for(let P=0;P<=49;P++){const Z={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:p==null?void 0:p.user_id,is_more:P>=h};w.push(Z)}return w},[p==null?void 0:p.user_id]),i=a.useCallback(()=>{var h;if((h=p==null?void 0:p.gallary)!=null&&h.length){const w=JSON.parse(JSON.stringify(p.gallary));q(w.filter(Z=>Z.is_cover_photo));const P=w.filter(Z=>!Z.is_cover_photo);if(P.length){const Z=[];for(let K=0;K<=50-w.length;K++){const Se={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:p==null?void 0:p.user_id,is_more:!1};Z.push(Se)}je([...P,...Z])}else ne(1),je(we(8))}else ne(1),je(we(8))},[p==null?void 0:p.gallary,p==null?void 0:p.user_id,we]);a.useLayoutEffect(()=>{function h(){ne(w=>w-1)}return window.addEventListener("resize",h),h(),()=>window.removeEventListener("resize",h)},[]);const t=a.useCallback(h=>{const{active:w,over:P}=h;P&&w.id!==P.id&&(I&&I(!0),je(Z=>{const K=Z.findIndex((Re,l)=>`item-${l}`===w.id),Se=Z.findIndex((Re,l)=>`item-${l}`===P.id);return ns(Z,K,Se)}),he(800))},[I,he]),o=a.useCallback(async(h,w)=>{try{const P={files:[{fileName:`Tallent/${p.user_id}_${p.first_name}/cbell_${Date.now()}_${w}`,fileType:h.type}]},Z=await Le.getPreSignedUrl(P),{signedUrl:K}=Z.files[0],Se=await fetch(K,{method:"PUT",body:h,headers:{"Content-Type":h.type}});if(!Se.ok)throw new Error(`Upload failed with status: ${Se.status}`);return K.split("?")[0]}catch(P){throw console.error("Error uploading file:",P),P}},[p==null?void 0:p.user_id,p==null?void 0:p.first_name]);a.useEffect(()=>{i()},[i]),a.useEffect(()=>{var w;const h=(w=S.current)==null?void 0:w.clientHeight;h&&h>400&&ne(P=>P+1)},[(it=S.current)==null?void 0:it.clientHeight]);const C=a.useCallback((h,w)=>{var P;return new RegExp("("+w.join("|").replace(/\./g,"\\.")+")$").test((P=h==null?void 0:h.name)==null?void 0:P.toLowerCase())},[]),v=a.useCallback(h=>{const w=[...T,...x].filter(P=>P!=null&&P.size?(h==null?void 0:h.size)===(P==null?void 0:P.size):!1);return w.length===0||w.length===1},[T,x]),N=a.useCallback(async h=>{const w=await wt(h),P=await fetch(w).then(K=>K.blob()).then(K=>new File([K],"filename.webp",{type:"image/webp"}));return await o(P,P.name)},[o]),H=a.useCallback(async(h,w)=>{var Z;const P=(Z=T.filter(K=>K.file_url===""))==null?void 0:Z.length;if(h.length>P){k("Check the Total Limit and upload the file","error");return}Q(h.length),L(0),M(0),B(!0);for(let K=0;K<h.length;K++)if(w+K<=49)if(T[w+K].is_more=!1,Object.assign(T[w+K],{size:h[K].size}),C(h[K],[".jpeg",".jpg","png"])&&v(h[K])){I&&I(!0);try{const Se=await N(h[K]);T[w+K].file_url=Se,L(Re=>Re+1),he(800)}catch(Se){console.error("Upload error:",Se),k("Upload failed","error"),L(Re=>Re+1)}}else L(Se=>Se+1),k("Please select Valid Image","error")},[T,C,v,I,N,he,k]),V=a.useCallback(async(h,w)=>{if(Object.assign(T[w],{size:h==null?void 0:h.size}),!C(h,[".jpeg",".jpg","png"])||!v(h)){k("Please select valid image","error");return}Q(1),L(0),M(0),B(!0),I&&I(!0);try{const P=await N(h);if(T[w])T[w].file_url=P;else{const Z={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:p==null?void 0:p.user_id};T.push(Z),T[w].file_url=P}L(1),he(800)}catch(P){console.error("Upload error:",P),k("Upload failed","error"),B(!1)}},[T,p==null?void 0:p.user_id,C,v,I,N,he,k]),f=a.useCallback(async(h,w)=>{const P=h.target.files;if(!P||P.length===0)return;
1const Z=T.findIndex(K=>K.file_url==="");Z===0&&ne(1),P.length>1?await H(P,Z):await V(P[0],w)},[T,H,V]),F=a.useCallback(async h=>{var P;const w=(P=h.target.files)==null?void 0:P[0];if(w){if(!C(w,[".jpeg",".jpg","png"])){k("Please Select Valid Image","error");return}Q(1),L(0),M(0),B(!0);try{I&&I(!0);const Z=await N(w),K=await wt(w),Se=await fetch(K).then(Re=>Re.blob());x[0].file_url=Z,x[0].size=Se.size,L(1),he(500)}catch(Z){console.error("Upload error:",Z),k("Upload failed","error"),B(!1)}}},[C,I,N,x,he,k]),ie=()=>e.jsxs(Fe,{open:xe,fullWidth:!0,maxWidth:"md",children:[e.jsx(Ae,{id:"first_alert__title",className:"first_alert__title",children:"Upload headshot for now"}),e.jsx(He,{children:e.jsx(Je,{id:"firrt-dialog-description",className:"firrt-dialog-description",children:e.jsx("p",{style:{padding:"0 135px"},children:"Only professional-looking headshots and portfolio photographs are acceptable on Casting Bell. This is to ensure that you put your best foot forward. More number of photos means showing up higher on the recruiter search."})})}),e.jsx(Ge,{children:e.jsxs("div",{className:"btn__container",children:[e.jsx(_e,{text:"Will upload later",onClick:()=>{ae(!1),me(!0)},className:"cancel__btn action__btn"}),e.jsx(_e,{text:"Upload headshot for now",onClick:()=>{ae(!1)},className:"success__btn action__btn"})]})})]}),ye=()=>e.jsxs(Fe,{open:A,fullWidth:!0,maxWidth:"md",children:[e.jsx(Ae,{id:"first_alert__title",className:"first_alert__title",children:"Please set your Cover Photo"}),e.jsx(He,{children:e.jsx(Je,{id:"firrt-dialog-description",className:"firrt-dialog-description",children:e.jsxs("p",{children:[e.jsxs("b",{children:["Your cover photo will be the first image visible to recruiters."," "]})," ",e.jsx("br",{}),e.jsx("b",{children:"Either"})," upload an image ",e.jsx("b",{children:"or"})," click on one of your"," ",e.jsx("br",{}),"portfolio images and set it as Cover Photo. ",e.jsx("br",{}),"Do you have your headshot available?"]})})}),e.jsx(Ge,{children:e.jsxs("div",{className:"btn__container",children:[e.jsx(_e,{text:"No, save profile and exit",onClick:()=>{O(`/talent/${p==null?void 0:p.userUniqueId}`)},className:"cancel__btn action__btn font-semibold text-gray-400"}),e.jsx(_e,{text:"Yes, upload headshot",onClick:()=>{R(!1)},className:"success__btn action__btn"})]})})]}),Ze=()=>e.jsxs(Fe,{open:!1,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Ae,{id:"first_alert__title",className:"first_alert__title",children:"Profile submitted!"}),e.jsx(He,{children:e.jsxs(Je,{id:"firrt-dialog-description",className:"firrt-dialog-description",children:[e.jsx("p",{children:"A stunning profile is in the making. Let's hope the moderators publish your profile without any revision or comments. But if they do get back, it is in your best interest."}),e.jsx("p",{children:"Meanwhile, you can add details of your Past Works to increase the chances of being shortlisted."})]})}),e.jsx(Ge,{children:e.jsx("div",{className:"btn__container",children:e.jsx(_e,{text:"Add Past Works",onClick:()=>{O(`/talent/${p==null?void 0:p.userUniqueId}`)},className:"success__btn action__btn"})})})]}),Oe=()=>e.jsxs(Fe,{open:z,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Ae,{id:"first_alert__title",className:"first_alert__title",children:"Come back soon!"}),e.jsx(He,{children:e.jsx(Je,{id:"firrt-dialog-description",className:"firrt-dialog-description",children:e.jsxs("p",{children:["Your profile cannot be submitted without images. To avoid missing out on good opportunities, we strongly recommend you to get your portoflio done soon and complete your profile."," "]})})}),e.jsx(Ge,{children:e.jsx("div",{className:"btn__container",children:e.jsx(_e,{text:"Save profile and exit",onClick:()=>{O(`/talent/${p==null?void 0:p.userUniqueId}`)},className:"success__btn action__btn"})})})]}),G=()=>e.jsxs(Fe,{open:u,fullWidth:!0,maxWidth:"md",children:[e.jsx(Ae,{id:"first_alert__title",className:"first_alert__title",children:"Don't make this common mistake!"}),e.jsx(He,{children:e.jsxs(Je,{id:"firrt-dialog-description",className:"firrt-dialog-description",children:[e.jsxs("p",{children:[e.jsx("b",{children:"9 out of 10"})," profiles are ",e.jsx("b",{children:"rejected right away"}
1)," because they don't have a professional looking headshot or portfolio. We strongly recommend you get your portfolio done today."]}),e.jsxs("p",{children:[e.jsx("b",{children:"For now"}),", you can ",e.jsx("b",{children:"upload your professional headshot"}),", if you have one."]})]})}),e.jsx(Ge,{children:e.jsxs("div",{className:"btn__container",children:[e.jsx(_e,{text:"Will upload later",onClick:()=>{j(!1),me(!0)},className:"cancel__btn action__btn"}),e.jsx(_e,{text:"Upload headshot for now",onClick:()=>{j(!1),ae(!0)},className:"success__btn action__btn"})]})})]}),De=()=>e.jsx(Fe,{open:!0,className:"image_loader",children:e.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"40px",gap:"20px"},children:[e.jsx(bs,{value:ee}),e.jsxs(mt,{variant:"body1",sx:{color:"#E5E5E5"},children:["Uploading ",le," of ",E," images..."]})]})}),qe=a.useCallback(async()=>{const h=ge(),w=await At.imageUpload(h);w!=null&&w.data&&await Y();try{se.current&&(clearTimeout(se.current),await ue())}finally{g&&g(!1),pe(!1),_&&_(!0),setTimeout(()=>{y(!0),_&&_(!1)},200)}},[ge,Y,ue,g,_,y]);a.useEffect(()=>{d&&qe()},[d,qe]);const re=T==null?void 0:T.findIndex(h=>(h==null?void 0:h.file_url)===""),Xe=(rt=T==null?void 0:T.filter(h=>h.file_url===""))==null?void 0:rt.length,Pt=(T==null?void 0:T.filter(h=>h.file_url).length)>0,ft=T.map((h,w)=>`item-${w}`),Rt=()=>{re!==-1&&setTimeout(()=>{X!=null&&X.current&&(X.current.value="",X.current.click())},500)},lt=()=>{!oe&&(s!=null&&s.current)&&s.current.click()},ht=h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),lt())},xt=()=>re>=1?`Upload more images (${Xe})`:re===-1?"Limit Reached":"Upload images";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:" ",id:"edit_imageUpload",children:e.jsxs("div",{className:"personal_data_section",children:[e.jsxs("div",{className:"personal_data_title",children:[e.jsx("label",{children:"Get excited: Your profile is almost complete"}),e.jsx("h2",{children:" Upload upto 50 images"}),e.jsx("span",{className:"divider"})]}),e.jsx("form",{children:e.jsxs("div",{className:"images_uploders",children:[e.jsxs(n.Row,{children:[e.jsx(n.Col,{md:4,sm:12,xs:12,lg:4,className:"images_uploader_right",children:e.jsxs("div",{className:"left_cover_images",style:{height:378},children:[e.jsxs("button",{type:"button",onClick:lt,onKeyDown:ht,style:{background:"none",border:"none",padding:0,cursor:oe?"default":"pointer",display:"block",width:"100%",height:"100%"},"aria-label":"Upload cover photo",disabled:oe,children:[e.jsx("img",{id:"headImg",alt:"",src:(nt=x[0])==null?void 0:nt.file_url,className:`headImg previewImg ${(ot=x[0])!=null&&ot.file_url?" ":"display_none"}`}),e.jsx("img",{alt:"",src:Zs,className:"image_placeholder"})]}),!oe&&e.jsx("input",{type:"file",accept:"image/*",id:"file",ref:s,style:{display:"none"},onChange:F})]})}),e.jsx(n.Col,{md:8,sm:12,xs:12,lg:8,className:"images_uploader_left",children:e.jsx("div",{className:"right_images",ref:S,children:e.jsx(os,{sensors:W,collisionDetection:ds,onDragEnd:t,children:e.jsx(cs,{items:ft,strategy:ms,children:e.jsx(ps,{breakpointCols:fe,className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:T.map((h,w)=>e.jsx(js,{id:`item-${w}`,index:w,ImgData:T,ImgCount:c,isImgUpload:Pt,isLoaderDialog:D,isDisable:oe,user:p,ImgArray:X,setIsChanged:I,setCoverPhoto:q,schedulePersist:he,setImgRow:ne,setImagData:je,setIsLoaderDialog:B,openSnackbar:k,setTotalFilesToUpload:Q,setUploadedFilesCount:L,setUploadProgress:M,handleFileChange:f},`item-${w}`))})})})})})]}),e.jsx("span",{className:"infoText mt-2",children:"Note: Click on the image for options. Long-press image and then drag to change the order."}),e.jsx("div",{className:"display_Submitbuttons submit_buttons_bottom mt-2",children:e.jsx("div",{className:"flex justify-between items-center",children:e.jsx("div",{children:e.jsx(_e,{text:xt(),onClick:Rt,white:!0,style:{minWidth:"250px"},disabled:be||re===-1})})})})]})})]})}),G(),Oe(),Ze(),ie(),ye(),D&&De()]})}vs.propTypes={HandleForms:m.func.isRequired,formSubmit:m.bool.isRequired,update:m.func.isRequired,setIsLoad:m.func,setIsFormSubmited:m.func,setIsChanged:m.func};function Mt({isPreviewd:r}){var ee;const d=a.useRef(null),y={dots:!0,infinite:!1,speed:500,slidesToShow:5,slidesToScroll:5,initialSlide:0,lazyLoad:"ondemand",responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]},{user:g}
1=a.useContext($e),[_,I]=a.useState([]),[S,O]=a.useState([]),[k,p]=a.useState(!1),[Y,s]=a.useState(!0),[X,u]=a.useState(!1),[j,A]=a.useState(!1),[R,z]=a.useState(0),me=a.useRef(null),[xe,ae]=a.useState(!1),[fe,ne]=a.useState(!1),[D,B]=a.useState(!1);return a.useEffect(()=>{var le;if(!((le=g==null?void 0:g.gallary)!=null&&le.length)){I([]),O([]);return}const M=g.gallary.filter(L=>L.is_cover_photo),E=g.gallary.filter(L=>{var oe;return L.file_url!==((oe=M[0])==null?void 0:oe.file_url)}).filter(L=>L.is_visible!==!0),Q=[...M,...E];if(Q!=null&&Q.length){I(Q);const L=[];Q.forEach(te=>{te!=null&&te.file_url&&te.file_url!==""&&L.push({original:te.file_url,thumbnail:te.file_url,originalHeight:100,originalWidth:100})}),O(L);const oe=setTimeout(()=>{d.current&&d.current.slickRefresh()},150);return()=>clearTimeout(oe)}else I([]),O([])},[g,X,j]),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"img__sli",children:e.jsx(Fe,{open:j,fullWidth:!0,disableBackdropClick:!0,maxWidth:"xl",children:e.jsxs("div",{className:"p-3",children:[e.jsx(ss,{items:S,startIndex:R,renderFullscreenButton:(M,E)=>e.jsx("p",{ref:me,onClick:M}),showFullscreenButton:!0,lazyLoad:!0,renderItem:M=>e.jsx("div",{className:"h-3/6",children:e.jsx(Qs,{zoomScale:1,src:M.original})})}),e.jsx("span",{className:"phot_close__icon",onClick:()=>A(!1),children:e.jsx(It,{})})]})})}),e.jsxs("div",{className:"act__user_profile",style:{marginTop:30,marginBottom:30},children:[e.jsx("div",{className:"act__user_profile_top",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"profile_name__accd",onClick:()=>{k||s(M=>!M)},children:[e.jsxs("h3",{children:["Photo gallery"," ",e.jsx("span",{children:Y?e.jsx(st,{sx:{color:"#9B26B6",fontSize:40}}):e.jsx(at,{sx:{color:"#9B26B6",fontSize:40}})})]}),e.jsx("span",{className:"under_line"})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:Y?e.jsxs("div",{className:"profile_name__accright flex items-center pb-4 sm:pb-0",children:[e.jsx("label",{className:"last_upte",children:(ee=g==null?void 0:g.talenter)!=null&&ee.gallery_updated_on?"Last updated: "+Me(new Date(g.talenter.gallery_updated_on)).format("DD-MMM-YYYY"):null}),!r&&e.jsx(Ke,{EditHandler:()=>p(!0),CancelHandler:()=>p(!1),SubmitHandler:()=>u(!0),isEdit:k,isSpin:xe,isFormSubmited:fe,disableSubmit:!D})]}):null})]})}),!k&&e.jsx("div",{className:Y&&!k?"show_accrodian act__user_profile_glary accrodian_data":"hide_accrodian act__user_profile_glary accrodian_data",children:_.length>0?e.jsx(ts,{ref:d,...y,children:_.map((M,E)=>{var Q,le;return E%2===0&&(M!=null&&M.file_url)?e.jsxs("div",{className:"list_img",children:[((Q=_[E])==null?void 0:Q.file_url)&&e.jsxs("div",{className:"img_con",children:[e.jsx("span",{className:"hover_cont",onClick:()=>{z(E),A(!0)},children:e.jsx(Ht,{})}),e.jsx("img",{src:_[E].file_url,alt:`Gallery image ${E}`,style:{width:"100%",height:"220px",objectFit:"cover",display:"block"},loading:"lazy"})]}),E+1<_.length&&((le=_[E+1])==null?void 0:le.file_url)&&e.jsxs("div",{className:"img_con",children:[e.jsx("span",{className:"hover_cont",onClick:()=>{z(E+1),A(!0)},children:e.jsx(Ht,{})}),e.jsx("img",{src:_[E+1].file_url,alt:`Gallery image ${E+1}`,style:{width:"100%",height:"220px",objectFit:"cover",display:"block"},loading:"lazy"})]})]},`${M.file_url}-${E}`):null})}):e.jsx("div",{className:"text-center py-8 text-gray-500",children:"No images available"})}),k&&Y&&e.jsx("div",{className:"edit__form photo__edit",children:e.jsx("div",{className:"mt20 edit_field edit_container",children:e.jsx(vs,{formSubmit:X,update:M=>{p(!1),u(!1)},setIsLoad:ae,setIsFormSubmited:M=>{ne(M),B(!1)},setIsChanged:B})})})]})]})}Mt.propTypes={isPreviewd:m.bool};Mt.defaultProps={isPreviewd:!1};const kt=({projectTitle:r,printShootData:d,workTounched:y,workErrors:g,isPrintShootErr:_,submitCount:I,handleRoleOnChange:S,handleWorkNameOnChange:O,handleTypeOnChange:k,handleUpdateImages:p,handleOnClickRemove:Y,handleAddMore:s})=>{var pe,T,je;const X=a.useRef(null),u=a.useRef(),{user:j}=a.useContext($e),{openSnackbar:A}=a.useContext(_t),[R,z]=a.useState([]),[me,xe]=a.useState(4),[ae,fe]=a.useState(!1),[ne,D]=a.use
1State(!1),[B,ee]=a.useState(),M=as(St(rs,{activationConstraint:{delay:200,tolerance:5}}),St(is,{coordinateGetter:ls}));a.useEffect(()=>{var x;((x=X.current)==null?void 0:x.clientHeight)>500&&xe(q=>q+1)},[(pe=X.current)==null?void 0:pe.clientHeight,R]);let E=R==null?void 0:R.findIndex(x=>x.file_url==""||x.file_url==null),Q=R==null?void 0:R.filter(x=>x.file_url==""||x.file_url==null).length;a.useEffect(()=>{var q;const x=(c,W)=>c.file_url&&!W.file_url?-1:!c.file_url&&W.file_url?1:0;if((q=d==null?void 0:d.printShoot)!=null&&q.length)JSON.stringify(d==null?void 0:d.printShoot)!==JSON.stringify(R)&&z(JSON.parse(JSON.stringify(d==null?void 0:d.printShoot.toSorted(x))));else{let c=[];for(let W=0;W<=9;W++){let se={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:j==null?void 0:j.user_id,is_more:W>=8,id:`image-${W}`};c.push(se)}z(c)}},[d==null?void 0:d.printShoot]),a.useEffect(()=>{R.length&&p(R)},[B]);function le(x,q){var c;return new RegExp("("+q.join("|").replace(/\./g,"\\.")+")$").test((c=x==null?void 0:x.name)==null?void 0:c.toLowerCase())}function L(x){return R.filter((c,W)=>{if(c!=null&&c.size){if((x==null?void 0:x.size)===(c==null?void 0:c.size))return!0}else return!1}).length<=1}const oe=x=>{const{active:q,over:c}=x;q.id!==c.id&&z(W=>{const se=W.findIndex(ue=>(ue.id||`image-${W.indexOf(ue)}`)===q.id),ve=W.findIndex(ue=>(ue.id||`image-${W.indexOf(ue)}`)===c.id),ge=ns(W,se,ve);return p(ge),ge})},te=async(x,q)=>{try{const W={files:[{fileName:`Tallent/${j.user_id}_${j.first_name}/cbell_${Date.now()}_${x.name}`,fileType:x.type}]},se=await Le.getPreSignedUrl(W),{signedUrl:ve}=se.files[0],ge=await fetch(ve,{method:"PUT",body:x,headers:{"Content-Type":x.type}});if(!ge.ok)throw new Error(`Upload failed with status: ${ge.status}`);const ue=ve.split("?")[0];if(R[q])z(he=>{const we=[...he];return we[q].file_url=ue,p(we),we});else{let he={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:j==null?void 0:j.user_id,id:`image-${R.length}`};z(we=>{const i=[...we];return i.push(he),i[q].file_url=ue,p(i),i})}return ue}catch(c){throw console.error("Error uploading file:",c),c}},be=({item:x,index:q})=>{const{attributes:c,listeners:W,setNodeRef:se,transform:ve,transition:ge,isDragging:ue}=us({id:x.id||`image-${q}`}),he={transform:_s.Transform.toString(ve),transition:ge,opacity:ue?.5:1,cursor:x.file_url?"grab":"default"},we=!!(R!=null&&R.some(i=>i.file_url));return a.createElement("div",{ref:se,style:he,...x.file_url?c:{},...x.file_url?W:{},className:`${x.is_more?"image_item d-none":"image_item "} ${we||ae?"img_bottom_space image_items_bg_none":" image_items_size_printShoot "} `,key:x==null?void 0:x.image_id},(x==null?void 0:x.file_url)&&e.jsx(fs,{index:q,src:x==null?void 0:x.file_url,handleMakeCover:()=>{z(i=>i.map(t=>{var o;return t.file_url===((o=R[q])==null?void 0:o.file_url)?(t={...t,is_cover_photo:!0},t):(t.is_cover_photo===!0&&(t={...t,is_cover_photo:!1}),t)})),ee(new Date)},ImgToggle:()=>{let i=[...R];i[q]={...R[q],is_visible:!R[q].is_visible},z(i),ee(new Date)},handleRemove:()=>{let i=[...R];if(i[q]={...R[q],file_url:"",size:null,key:"",is_visible:!1},z(i),(R==null?void 0:R.filter(t=>t.file_url).length)===0){D(!0),xe(1);let t=[];for(let o=0;o<=9;o++){let C={file_url:"",is_visible:!1,is_cover_photo:!1,key:"",user_id:j==null?void 0:j.user_id,is_more:o>=8,id:`image-${o}`};t.push(C)}z(t),setTimeout(()=>D(!1),2e3)}ee(new Date)},is_visible:x.is_visible}),!we&&!ae&&e.jsx("img",{alt:"",src:sa,className:"image_placeholder",style:{width:"40px"},onClick:()=>{setTimeout(()=>{u.current.value="",u.current.click()},500)}}),e.jsx("input",{type:"file",multiple:!0,accept:"image/*",id:"file"+q,ref:u,style:{display:"none"},onChange:i=>{var C,v,N;let t=E,o=i.target.files.length;if(D(!0),i.target.files.length>1)if(fe(!0),i.target.files.length<=Q){let H=0;for(let V=0;V<i.target.files.length;V++)t+V<=9&&(R[t+V].is_more=!1,Object.assign(R[t+V],{size:(C=i==null?void 0:i.target)==null?void 0:C.files[V].size}),le(i.target.files[V],[".jpeg",".jpg","png"])&&L(i.target.files[V])?wt(i.target.files[V]).then(async f=>fetch(f).then(F=>F.blob()).then(F=>new File([F],"filename.webp",{type:"image/webp"}))).then(async f=>{try{await te(f,t+V),H++,fe(!1),H===(o>50?50:o)&&setTimeout(()=>D(!1),3e3)}catch(F){console.error("Upload error:",F),D(!1),A("Error uploading image","error")}}):(o=o-1,H===o&&D(!1),t>0&&t--,A("Please select Valid Image","error")))}else fe(!1),D(!1),A("Check the Total Limit and upload the file","error");else Object.assign(R[E],{size:(N=(v=i==null?void 0:i.target)==null?void 0:v.files[0])==null?void 0:N.size}),le(i.target.files[0],[".jpeg",".jpg","png"])&&L(i.target.files[0])?(R[E].is_more=!1,D(!0),wt(i.target.files[0]).then(async H=>fetch(H).then(V=>V.blob()).then(V=>new File([V],"filename.webp",{type:"image/webp"}))).then(async H=>{try{await te(H,E),setTimeout(()=>D(!1),3e3)}catch(V){console.error("Upload error:",V),D(!1),A("Error uploading image","error")}})):(setTimeout(()=>D(!1),2e3),A("Please select valid image","error"))}}))};return e.jsxs(n.Row,{style:{marginLeft:"0px",marginRight:"0px"},children:[e.jsxs(n.Col,{lg:8,className:"images_uploader_left",children:[e.jsx("div",{className:"right_images mb-4 mt-3",ref:X,children:e.jsx(os,{sensors:M,collisionDetection:ds,onDragEnd:oe,children:e.jsx(cs,{items:R.map((x,q)=>x.id||`image-${q}`),strategy:ms,children:e.jsx(ps,{breakpointCols:me,className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:R.map((x,q)=>e.jsx(be,{item:x,index:q},x.id||`image-${q}`))})})})}),e.jsx("span",{className:"infoText mt-2 ml-1",children:"Note: Click on an image to set as Cover Photo. Drag and drop to change the order."})]}),e.jsx(n.Col,{lg:4,children:e.jsxs("div",{className:"video_text_feild",children:[e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Category",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(et,{data:r,values:d.project_type,handleChange:k,dropdownName:"projectname"})]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Work name",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",defaultValue:d.work_name,value:d.work_name,onChange:O,variant:"standard",placeholder:"",autoComplete:"off"}),y!=null&&y.work_name&&(g!=null&&g.work_name)?e.jsx("p",{className:"form_err",children:"Please enter work name"}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Role",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",defaultValue:d.role,value:d.role,variant:"standard",onChange:S,placeholder:"",autoComplete:"off"}),y!=null&&y.role&&(g!=null&&g.role)?e.jsx("p",{className:"form_err",children:"Please enter role "}):null]}),e.jsx(_e,{text:E>=1?`Upload more images (${Q})`:E==-1?"Limit Reached":"Upload images",className:"mt-5 mb-5 ",onClick:()=>{E>=0&&setTimeout(()=>{u.current.value="",u.current.click()},500)},style:{width:"250px",marginTop:15},white:!0}),!((T=R.filter(x=>x.file_url!==""||x.file_url!=null))!=null&&T.length)&&_&&E<0||!((je=R.filter(x=>x.file_url!==""||x.file_url!=null))!=null&&je.length)&&I&&E<0?e.jsx("p",{className:"form_err",children:"Please upload the print shoot image(s)"}):null,e.jsxs("div",{className:"mt-1 border_bottom mb-4 flex justify-between",children:[e.jsx(Ee,{to:"#",className:"remove_icon",onClick:Y,children:"Remove"}),s&&e.jsxs("span",{className:"cursor-pointer flex justify-center items-center addM
1ore_btn remove_padding",onClick:s,children:[e.jsx(hs,{sx:{color:"#9B26B6",fontSize:22,marginRight:1}}),"Save & add more"]})]})]})}),ne&&e.jsx(Fe,{open:ne,className:"image_loader",children:e.jsx("img",{src:ta,alt:"loader",className:"w-40"})})]})};kt.propTypes={projectTitle:m.arrayOf(m.shape({id:m.oneOfType([m.string,m.number]),name:m.string,value:m.oneOfType([m.string,m.number])})).isRequired,printShootData:m.shape({project_type:m.oneOfType([m.string,m.number]),work_name:m.string,role:m.string,printShoot:m.arrayOf(m.shape({file_url:m.string,is_visible:m.bool,is_cover_photo:m.bool,key:m.string,user_id:m.oneOfType([m.string,m.number]),is_more:m.bool,image_id:m.oneOfType([m.string,m.number]),size:m.number}))}).isRequired,workTounched:m.shape({work_name:m.bool,role:m.bool}),workErrors:m.shape({work_name:m.oneOfType([m.string,m.bool]),role:m.oneOfType([m.string,m.bool])}),isPrintShootErr:m.bool,submitCount:m.number,handleRoleOnChange:m.func.isRequired,handleWorkNameOnChange:m.func.isRequired,handleTypeOnChange:m.func.isRequired,handleUpdateImages:m.func.isRequired,handleOnClickRemove:m.func.isRequired,handleAddMore:m.func};kt.defaultProps={workTounched:{},workErrors:{},isPrintShootErr:!1,submitCount:0,handleAddMore:null};function va({isPreviewd:r,recruiterGuestViewData:d,isRecruiterView:y}){var ve,ge,ue,he,we;const g={dots:!0,infinite:!1,speed:500,slidesToShow:y?3:2,slidesToScroll:y?3:2,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1}}]},{user:_,updateUser:I}=a.useContext($e),{openSnackbar:S}=a.useContext(_t),O=a.useRef(null);let k=a.useMemo(()=>{if(_!=null&&_.pastworks)return(_==null?void 0:_.pastworks)&&JSON.parse(JSON.stringify(_==null?void 0:_.pastworks));if(d!=null&&d.pastworks)return JSON.parse(JSON.stringify(d==null?void 0:d.pastworks))},[_]);const[p,Y]=a.useState("0"),[s,X]=a.useState(!0),[u,j]=a.useState(!1),[A,R]=a.useState([]),[z,me]=a.useState([]),[xe,ae]=a.useState(!1),[fe,ne]=a.useState([]),[D,B]=a.useState(!1),[ee,M]=a.useState([]),[E,Q]=a.useState([{work_name:"",role:"",project_type:1,video_url:"",user_id:_==null?void 0:_.user_id,isValid:!1,printShoot:[]}]),[le,L]=a.useState(!1),[oe,te]=a.useState([]),[be,pe]=a.useState(0),T=(i,t)=>{Y(t),W(t),pe(t)};function je(i){let t;try{t=new URL(i)}catch{return!1}return i}a.useEffect(()=>{W(p)},[u,p,ee]),a.useEffect(()=>{gt.getPastWorkProject().then(t=>{R(t)});let i=k??[];Q(i),k!=null&&k.length?i==null||i.map(t=>{if(t.isValid=!0,je(t.video_url)){let C=new URL(t==null?void 0:t.video_url).searchParams.get("v");t.img=C}}):c.setFieldValue("addPastWorkData",[{work_name:"",role:"",project_type:"",video_url:"",user_id:_==null?void 0:_.user_id,isValid:!1,printShoot:[]}])},[]);const x=yt().shape({pastWorkData:zt().of(yt().shape({project_type:ut().required("project type is requried"),work_name:ke().required("workName is required"),role:ke().required("role is required"),video_url:ke().required("video url is required")})),addPastWorkData:zt().of(yt().shape({project_type:ut().required("project type is requried"),work_name:ke().required("workName is required"),role:ke().required("role is required"),video_url:ke().required("vidoo url is required")})),addMore:Ye()}),q=(i,t)=>{let o=[];return t.map(C=>{JSON.stringify(C)===JSON.stringify(i.find(N=>N.id==C.id))||i.find(N=>N.id==C.id)&&o.push(i.find(N=>N.id==C.id))}),o},c=Wt({initialValues:{pastWorkData:k||null,addPastWorkData:[],addMore:!1},enableReinitialize:!0,validationSchema:x,onSubmit:({pastWorkData:i,addPastWorkData:t,addMore:o},{setStatus:C,setSubmitting:v})=>{var N;if(v(!1),L(!1),c.dirty){B(!0);let H=q(i,k),V=t.filter(F=>{if(F.printShoot.filter(ie=>ie.file_url!="").length)return F}),f=((N=i.filter(F=>{if(F.printShoot.filter(ie=>ie.file_url!="").length)return F}))==null?void 0:N.length)===i.filter(F=>(F==null?void 0:F.project_type)==10).length;if(t!=null&&t.filter(F=>F.project_type===10).length&&V.length==0||t.length==0&&i.length>1&&!f)S("Please add image in printshoot","error"),L(!0),B(!1);else{L(!1);const F=()=>{I().then(ie=>{B(!1),v(!0),setTimeout(()=>{if(j(!1),v(!1),o){let ye=[{work_name:"",role:"",project_type:"",video_url:"",user_id:_==null?void 0:_.user_id,isValid:!1,printShoot:[]}];c.setFieldValue("addPastWorkData",ye)}},200)}).catch(ie=>{S("some thing went wrong","error"),B(!1)})};if(t!=null&&t.length){let ie={user_id:_==null?void 0:_.user_id,pastWork:t};gt.addPastWork(ie).then(ye=>{ye&&F()}).catch(ye=>{S("some thing went wrong","error"),B(!1)}).finally(()=>{L(!1)})}if(H!=null&&H.length){let ie={user_id:_==null?void 0:_.user_id,pastWork:H};gt.updatePastwork(ie,_==null?void 0:_.user_id).then(ye=>{ye&&F()}).catch(ye=>{S("some thing went wrong","error"),!oe.length&&B(!1)}).finally(()=>{L(!1)})}oe.length&&(B(!0),gt.deletePastwork(oe).finally(()=>{F()}))}}else j(!1)}}),W=i=>{var t;
1if(i==0)me(c.values.pastWorkData);else{let o=(t=c.values.pastWorkData)==null?void 0:t.filter(C=>{var v;return C.project_type===((v=ee[i])==null?void 0:v.id)});me(o)}};a.useEffect(()=>{var C;M([]);const i=(C=c.values.pastWorkData)==null?void 0:C.map(v=>v.project_type),t=A.filter(v=>{if(i!=null&&i.includes(v.id))return v});let o={projectname:"All work",id:120};if(t.length){const v=[o,...t];M(v);let N=v.findIndex(H=>H.id===be);be&&N!==-1&&Y(N.toString())}else M([o])},[c.values.pastWorkData,A]),a.useEffect(()=>{var i;(i=c.values.pastWorkData)==null||i.map((t,o)=>{if(je(t.video_url)){let v=new URL(t==null?void 0:t.video_url).searchParams.get("v");t.img=v}})},[z,E,u,c.values.pastWorkData]);const se=i=>{try{return!!new URL(i)}catch{return!1}};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"img__sli",children:e.jsx(Fe,{open:xe,fullWidth:!0,maxWidth:"xl",children:e.jsxs("div",{className:"p-3 overflow-hidden",children:[fe.length?e.jsx(ss,{items:fe,startIndex:0,renderFullscreenButton:(i,t)=>e.jsx("p",{ref:O,onClick:i}),showFullscreenButton:!0}):"loading",e.jsx("span",{className:"phot_close__icon",onClick:()=>ae(!1),children:e.jsx(It,{})})]})})}),e.jsxs("div",{className:"act__user_profile",children:[e.jsx("div",{className:"act__user_profile_top",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"profile_name__accd",onClick:()=>{X(i=>!i)},children:[e.jsxs("h3",{children:["Past works ",s?e.jsx(st,{sx:{color:"#9B26B6",fontSize:40}}):e.jsx(at,{sx:{color:"#9B26B6",fontSize:40}})]}),e.jsx("span",{className:"under_line"})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:s&&e.jsxs("div",{className:"profile_name__accright flex items-center",children:[e.jsxs("label",{className:"last_upte",children:[" ",(ve=_==null?void 0:_.talenter)!=null&&ve.past_works_updated_on?"Last updated: "+Me(new Date((ge=_==null?void 0:_.talenter)==null?void 0:ge.past_works_updated_on)).format("DD-MMM-YYYY"):null]}),!r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sm_displayNone",children:c.values.addPastWorkData.length?e.jsx(_e,{onClick:()=>{L(!0),c.submitForm()},isLoading:D,text:c.isSubmitting?"Saved":"Save ",disabled:!c.dirty,className:`${c.dirty?null:"opacity-50"}`}):u?e.jsxs("div",{className:"flex",children:[e.jsx(_e,{onClick:()=>{te([]),c.resetForm(),j(!1)},text:"Cancel",gray:!0,style:{marginRight:10}}),e.jsx(_e,{onClick:()=>{c.submitForm(),L(!0)},isLoading:D,text:c.isSubmitting?"Saved":"Save",style:{width:"100px"},disabled:!c.dirty,className:`${c.dirty?null:"opacity-50"}`})]}):(ue=c.values.pastWorkData)!=null&&ue.length?e.jsx(_e,{onClick:()=>{j(!0)},text:"Edit",white:!0}):null}),e.jsx("div",{className:"hidden sm_displayBlock Moblie_edit ",children:c.values.addPastWorkData.length?e.jsx("span",{className:"Moblie_edit_img",children:D?e.jsx(Nt,{size:"20px",sx:{color:"#9B26B6"}}):e.jsx(Gt,{sx:{color:"#9B26B6",fontSize:30},className:`cursor-pointer ${c.dirty?null:"opacity-50"}`,onClick:()=>{c.dirty&&(c.submitForm(),L(!0))}})}):u?e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"Moblie_edit_img flex flex-col justify-center items-center",children:e.jsx(ea,{sx:{color:"#44454D",fontSize:30},className:"cursor-pointer",onClick:()=>{te([]),c.resetForm(),j(!1)}})}),e.jsx("span",{className:"Moblie_edit_img flex flex-col justify-center items-center",children:D?e.jsx(Nt,{size:"20px",sx:{color:"#9B26B6"}}):e.jsx(Gt,{sx:{color:"#9B26B6",fontSize:30},className:`cursor-pointer ${c.dirty?null:"opacity-50"}`,onClick:()=>{c.dirty&&(c.submitForm(),L(!0))}})})]}):(he=c.values.pastWorkData)!=null&&he.length?e.jsx("span",{className:"Moblie_edit_img",children:e.jsx(Ws,{sx:{color:"#D2D2D2",fontSize:30},className:"cursor-pointer",onClick:()=>j(!0)})}):null})]})]})})]})}),e.jsx("div",{className:s?"show_accrodian personaldata_profile_top accrodian_data":"hide_accrodian personaldata_profile_top accrodian_data",children:e.jsx(pt,{className:"outer_form_cntrol",children:e.jsx("div",{className:"mt20 Mobilepadding",children:e.jsx("div",{className:"outer_bg_section_data",style:{maxWidth:1152},children:e.jsx(tt,{sx:{width:"100%",typography:"body1"},children:e.jsxs(aa,{value:p,children:[e.jsxs(tt,{sx:{borderBottom:1,borderColor:"divider"},children:[!u&&!r&&!c.values.addPastWorkData.length&&e.jsx("div",{className:"add_more_section mt-3 mb-3",children:e.jsx(Ee,{className:"addmore",onClick:()=>
1{if(!u){let i=[...c.values.addPastWorkData,{work_name:"",role:"",project_type:"",video_url:"",user_id:_==null?void 0:_.user_id,isValid:!1,printShoot:[]}];c.setFieldValue("addPastWorkData",i)}},children:"Add Past Work"})}),e.jsx(Vt,{name:"addPastWorkData",validateOnChange:!1,children:()=>{var i;return(i=c.values.addPastWorkData)==null?void 0:i.map((t,o)=>{var H,V;const C=((H=c.errors.addPastWorkData)==null?void 0:H.length)&&c.errors.addPastWorkData[o]||{},v=((V=c.touched.addPastWorkData)==null?void 0:V.length)&&c.touched.addPastWorkData[o]||{};let N=[...c.values.addPastWorkData];return e.jsx(e.Fragment,{children:(t==null?void 0:t.project_type)!==10?e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,style:{paddingTop:"15px"},children:e.jsx("div",{className:"inner_video",children:We.canPlay(t==null?void 0:t.video_url)?e.jsx(We,{url:t==null?void 0:t.video_url.trim(),controls:!0,light:!0,playIcon:e.jsx(Jt,{sx:{color:"#ffffff",fontSize:60}})}):e.jsx("div",{className:"video_img",onClick:()=>{se(t==null?void 0:t.video_url)&&window.open(t==null?void 0:t.video_url,"_blank")}})})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"video_text_feild mt-3",children:[e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Category",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(et,{data:A,values:t==null?void 0:t.project_type,handleChange:f=>{f==10?(N[o]={work_name:t==null?void 0:t.work_name,role:t==null?void 0:t.role,project_type:10,video_url:"printshoot",user_id:_==null?void 0:_.user_id,isValid:!0,printShoot:[]},c.setFieldValue("addPastWorkData",N)):(N[o]={...t,project_type:f},c.setFieldValue("addPastWorkData",N)),pe(f)},dropdownName:"projectname",name:"project_type"}),v!=null&&v.project_type&&(C!=null&&C.project_type)?e.jsx("p",{className:"form_err",children:"Please select Category "}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Work name",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",defaultValue:t==null?void 0:t.work_name,onChange:f=>{N[o]={...t,work_name:f.target.value},c.setFieldValue("addPastWorkData",N)},variant:"standard",placeholder:"",name:"work_name",autoComplete:"off"}),v!=null&&v.work_name&&(C!=null&&C.work_name)?e.jsx("p",{className:"form_err",children:"Please enter work name"}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Role",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",defaultValue:t==null?void 0:t.role,variant:"standard",onChange:f=>{N[o]={...t,role:f.target.value},c.setFieldValue("addPastWorkData",N)},placeholder:"",autoComplete:"off"}),v!=null&&v.role&&(C!=null&&C.role)?e.jsx("p",{className:"form_err",children:"Please enter role "}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Video URL",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",defaultValue:t==null?void 0:t.video_url,variant:"standard",onChange:f=>{se(f.target.value)?(N[o]={...t,video_url:f.target.value,isValid:!0},c.setFieldValue("addPastWorkData",N)):(N[o]={...t,video_url:"",isValid:!1},c.setFieldValue("addPastWorkData",N))},placeholder:"",autoComplete:"off"}),v!=null&&v.video_url&&(C!=null&&C.video_url)?e.jsx("p",{className:"form_err",children:"Please enter video URL "}):null]}),!r&&e.jsxs("div",{className:"mt-1 border_bottom mb-4 flex justify-between",children:[e.jsx(Ee,{tp:"#",className:"remove_icon",onClick:()=>{var f;c.setFieldValue("addPastWorkData",(f=c.values.addPastWorkData)==null?void 0:f.filter(F=>F.id!==t.id)),te(F=>[...F,t.id])},children:"Cancel"}),e.jsxs("span",{className:"cursor-pointer flex justify-center items-center addMore_btn ",onClick:()=>{D||(L(!0),c.setFieldValue("addMore",!0).then(f=>{c.submitForm()}))},children:[e.jsx(hs,{sx:{color:"#9B26B6",fontSize:22,marginRight:1}}),"Save & add more"]})]})]})})]}):e.jsx(kt,{printShootData:t,projectTitle:A,workErrors:C,workTounched:v,isPrintShootErr:le,submitCount:c.submitCount,handleUpdateImages:f=>{JSON.stringify(f)!==JSON.stringify(t.printShoot)&&(N[o]={...t,printShoot:f},c.setFieldValue("addPastWorkData",N))},handleRoleOnChange:f=>{N[o]={...t,role:f.target.value},c.setFieldValue("addPastWorkData",N)},handleWorkNameOnChange:f=>{N[o]={...t,work_name:f.target.value},c.setFieldValue("addPastWorkData",N)},handleTypeOnChange:f=>{f!=10&&(N[o]={...t,project_type:f,printShoot:[],video_url:"",isValid:!0},c.setFieldValue("addPastWorkData",N)),pe(f)},handleOnClickRemove:()=>{var f;c.setFieldValue("addPastWorkData",(f=c.values.addPastWorkData)==null?void 0:f.filter(F=>F.id!==t.id)),te(F=>[...F,t.id])},handleAddMore:()=>{D||(L(!0),c.setFieldValue("addMore",!0).then(f=>
1{c.submitForm()}))}},o)})})}}),e.jsx(la,{onChange:T,"aria-label":"lab API tabs example",variant:"scrollable",allowScrollButtonsMobile:!0,children:((we=c.values.pastWorkData)==null?void 0:we.length)&&ee.map((i,t)=>{var N,H,V;let o=(N=c.values.pastWorkData)==null?void 0:N.filter(f=>f.project_type===i.id).length,C=o>0?`${i==null?void 0:i.projectname} (${o})`:i==null?void 0:i.projectname,v=((H=c.values.pastWorkData)==null?void 0:H.length)>0?`${i==null?void 0:i.projectname} (${(V=c.values.pastWorkData)==null?void 0:V.filter(f=>f.project_type).length})`:`${i==null?void 0:i.projectname}`;return e.jsx(ra,{label:(i==null?void 0:i.id)===120?v:C,value:t.toString()},t)})})]}),ee.map((i,t)=>e.jsx(ia,{value:t.toString(),children:!u&&e.jsx("div",{className:"act__user_profile UserProfileChanges",style:{marginTop:0,marginBottom:0},children:e.jsx("div",{className:"intro_video_section",children:e.jsx(ts,{...g,children:z==null?void 0:z.filter(o=>o.video_url).map((o,C)=>{var N,H,V,f,F,ie,ye,Ze,Oe;let v=(V=(H=(N=o==null?void 0:o.printShoot)==null?void 0:N.filter(G=>G.is_visible!==!0))==null?void 0:H.filter(G=>G.file_url))==null?void 0:V.length;return e.jsx("div",{style:{margin:10},children:o.project_type===10?e.jsx(n.Row,{children:e.jsx(n.Col,{lg:12,children:e.jsxs("div",{className:"inner_video",children:[(f=o==null?void 0:o.printShoot)!=null&&f.length?e.jsx("div",{className:"printShoot_placeholder",onClick:()=>{var De,qe;let G=[];o!=null&&o.printShoot.find(re=>re.file_url)&&ae(!0),(qe=(De=o==null?void 0:o.printShoot)==null?void 0:De.filter(re=>re.is_visible!==!0))==null||qe.map(re=>{if(re!=null&&re.file_url&&(re==null?void 0:re.file_url)!=""){let Xe={original:re==null?void 0:re.file_url,thumbnail:re==null?void 0:re.file_url,originalHeight:100,originalWidth:100};G.push(Xe)}}),ne(G)},children:(ie=(F=o==null?void 0:o.printShoot)==null?void 0:F.filter(G=>G.is_visible!==!0).find(G=>G==null?void 0:G.is_cover_photo))!=null&&ie.file_url?e.jsx("img",{src:(ye=o==null?void 0:o.printShoot)==null?void 0:ye.filter(G=>G.is_visible!==!0).find(G=>G==null?void 0:G.is_cover_photo).file_url,alt:"",className:" object-cover"}):(Ze=o==null?void 0:o.printShoot.filter(G=>G.is_visible!==!0).find(G=>G.file_url))!=null&&Ze.file_url?e.jsx("img",{src:(Oe=o==null?void 0:o.printShoot.filter(G=>G.is_visible!==!0).find(G=>G.file_url))==null?void 0:Oe.file_url,alt:"",className:" object-cover"}):null}):e.jsx("div",{className:"printShoot_placeholder"}),v>0?e.jsxs("p",{className:"printShootCount",children:[" (",v," ",v>1?"Images":"Image",")"]}):null,e.jsxs("h4",{style:{margin:v>0?0:"24px 0 0 0"},children:[o==null?void 0:o.work_name," "]}),e.jsx("label",{children:e.jsx("span",{className:"at_time",children:o==null?void 0:o.role})})]})})}):e.jsx(n.Row,{children:e.jsx(n.Col,{lg:12,children:e.jsxs("div",{className:"inner_video",children:[We.canPlay(o==null?void 0:o.video_url)?e.jsx(We,{url:o==null?void 0:o.video_url.trim(),controls:!0,light:!0,playIcon:e.jsx(Jt,{sx:{color:"#ffffff",fontSize:60}})}):e.jsx("div",{className:"externalLink_placeholder",onClick:()=>{se(o==null?void 0:o.video_url)&&window.open(o==null?void 0:o.video_url,"_blank")}}),e.jsx("h4",{children:o==null?void 0:o.work_name}),e.jsx("label",{children:e.jsx("span",{className:"at_time",children:o==null?void 0:o.role})})]})})})},C)})})})})},t)),u&&!r&&e.jsx("div",{className:"short_flime",children:e.jsx("form",{children:e.jsx(Vt,{name:"pastWorkData",validateOnChange:!1,children:()=>z==null?void 0:z.filter(i=>{var t;return p==0?i:i.project_type===((t=ee[p])==null?void 0:t.id)}).map((i,t)=>{var H,V;let o=[...c.values.pastWorkData],C=c.values.pastWorkData.findIndex(f=>f.id===(i==null?void 0:i.id));const v=((H=c.errors.pastWorkData)==null?void 0:H.length)&&c.errors.pastWorkData[C]||{},N=((V=c.touched.pastWorkData)==null?void 0:V.length)&&c.touched.pastWorkData[C]||{};return(i==null?void 0:i.project_type)!==10?e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:12,style:{paddingTop:"15px"},children:e.jsx("div",{className:"inner_video",children:We.canPlay(i==null?void 0:i.video_url)?e.jsx(We,{url:i==null?void 0:i.video_url.trim(),controls:!0}):e.jsx("div",{className:"video_img"})})}),e.jsx(n.Col,{lg:6,xs:12,sm:12,children:e.jsxs("div",{className:"video_text_feild",children:[e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Category",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(et,{data:A,values:i==null?void 0:i.project_type,handleChange:f=>
1{if(f==10){o[C]={id:i.id,work_name:i==null?void 0:i.work_name,role:i==null?void 0:i.role,project_type:10,video_url:"printshoot",user_id:_==null?void 0:_.user_id,isValid:!0,printShoot:[]};const F=o.splice(C,1)[0];o.unshift(F),c.setFieldValue("pastWorkData",o)}else{o[C]={...i,project_type:f};const F=o.splice(C,1)[0];o.unshift(F),c.setFieldValue("pastWorkData",o)}pe(f)},dropdownName:"projectname",name:"project_type"}),N!=null&&N.project_type&&(v!=null&&v.project_type)?e.jsx("p",{className:"form_err",children:"Please select Category "}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Work name",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",value:i==null?void 0:i.work_name,onChange:f=>{o[C]={...i,work_name:f.target.value},c.setFieldValue("pastWorkData",o)},variant:"standard",placeholder:"",name:"work_name",autoComplete:"off"}),N!=null&&N.work_name&&(v!=null&&v.work_name)?e.jsx("p",{className:"form_err",children:"Please enter work name"}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Role",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",value:i==null?void 0:i.role,variant:"standard",onChange:f=>{o[C]={...i,role:f.target.value},c.setFieldValue("pastWorkData",o)},placeholder:"",autoComplete:"off"}),N!=null&&N.role&&(v!=null&&v.role)?e.jsx("p",{className:"form_err",children:"Please enter role "}):null]}),e.jsxs("div",{className:"mt-1 border_bottom",children:[e.jsxs("h5",{className:"label_text",children:["Video URL",e.jsx("span",{className:"tooltip_msg"})]}),e.jsx(U,{id:"standard-basic",type:"text",autoFocus:!1,value:i==null?void 0:i.video_url,variant:"standard",onChange:f=>{se(f.target.value)?(o[C]={...i,video_url:f.target.value.trim(),isValid:!0},c.setFieldValue("pastWorkData",o)):(o[C]={...i,video_url:"",isValid:!1},c.setFieldValue("pastWorkData",o))},placeholder:"",autoComplete:"off"}),N!=null&&N.video_url&&(v!=null&&v.video_url)?e.jsx("p",{className:"form_err",children:"Please enter video URL "}):null]}),e.jsx("div",{className:"mt-1 border_bottom mb-4",children:e.jsx(Ee,{tp:"#",className:"remove_icon",onClick:()=>{c.setFieldValue("pastWorkData",c.values.pastWorkData.filter(f=>f.id!==i.id)),ee.length-1==p&&z.length<=1&&Y("0"),te(f=>[...f,i.id])},children:"Remove"})})]})})]},t):e.jsx(kt,{printShootData:i,projectTitle:A,workErrors:v,workTounched:N,isPrintShootErr:le,submitCount:c.submitCount,handleUpdateImages:f=>{if(JSON.stringify(f)!==JSON.stringify(i.printShoot)){let F=JSON.parse(JSON.stringify(c.values.pastWorkData));F[C]={...i,printShoot:f==null?void 0:f.map(ie=>{var ye;return!(ie!=null&&ie.file_url)||((ye=ie==null?void 0:ie.file_url)==null?void 0:ye.length)<=0?{...ie,size:null}:ie})},c.setFieldValue("pastWorkData",JSON.parse(JSON.stringify(F))),me(JSON.parse(JSON.stringify(F)))}},handleRoleOnChange:f=>{o[C]={...i,role:f.target.value},c.setFieldValue("pastWorkData",o)},handleWorkNameOnChange:f=>{o[C]={...i,work_name:f.target.value},c.setFieldValue("pastWorkData",o)},handleTypeOnChange:f=>{if(f!=10){o[C]={...i,project_type:f,printShoot:[],video_url:"",isValid:!0};const F=o.splice(C,1)[0];o.unshift(F),c.setFieldValue("pastWorkData",o)}pe(f)},handleOnClickRemove:()=>{c.setFieldValue("pastWorkData",c.values.pastWorkData.filter(f=>f.id!==i.id)),ee.length-1==p&&z.length<=1&&Y("0"),te(f=>[...f,i.id])}},t)})})})})]})})})})})})]})]})}const ya=Et(({className:r,...d})=>e.jsx(Bs,{...d,arrow:!0,classes:{popper:r}}))(({theme:r})=>({[`& .${qt.arrow}`]:{color:"#fff",boxShadow:"rgba(0, 0, 0, 0.45) 0px 25px 20px -20px"},[`& .${qt.tooltip}`]:{backgroundColor:"#fff",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",color:"#44454D",fontSize:"10px",fontWeight:"700",bottom:"-10px",padding:"10px 20px",borderRadius:"10px",fontFamily:"Poppins"}}));function jl(){var ae,fe,ne,D;const{user:r,updateUser:d,isProfileFreezed:y}=a.useContext($e),[g,_]=a.useState(!1),[I,S]=a.useState(!1),[O,k]=a.useState({}),[p,Y]=a.useState(!1),{openSnackbar:s}=a.useContext(_t),X=()=>{_(!g)},u=()=>{na.getEmailTemplateByID(12).then(B=>{k(B)})},{setGlobalValue:j}=a.useContext(Fs),A=()=>{j("My Profile")};a.useEffect(()=>{A()});const R=()=>{const B={user_id:`${r==null?void 0:r.user_id}`,message:`<p><a class="talent_name" href="${jt.admin_url}/app/talent-management/profile/${r==null?void 0:r.user_id}">${r==null?void 0:r.first_name} (Talent ${r==null?void 0:r.user_id})</a> re-submitted Profile</p>`};Le.createLog(B)},z=()=>{S(!0);let B=new Date;B.setDate(B.getDate()+2);let ee=B,M={user_id:r==null?void 0:r.user_id,message:`<p>Talent <a class='talent_name' href='${jt.admin_url}/app/talent-management/profile/${r==null?void 0:r.user_id}'>${r==null?void 0:r.first_name}</a> has re-submitted his/her profile for review. Deadline for reverting is  <span class='response_date'>${Me(B).format("Y-MM-DD HH:mm:ss")}</span> </p>`,isAdminReply:!1,notification_type:3,sent_on:ee};Ct.createNotification(M),Ct.createNotification({user_id:r==null?void 0:r.user_id,message:O.email_content,notification_type:1}).then(async E=>{var Q;await Le.UpdateTalent((Q=r==null?void 0:r.talenter)==null?void 0:Q.id,{allow_resubmit:!1,is_resubmit:!0,user_id:r==null?void 0:r.user_id}).then(async le=>{R(),await d().then(L=>{S(!1)})})}).catch(E=>{S(!1)}).finally(()=>{Y(!1)})};let me=window.location.hash;a.useEffect(()=>{me.includes("#PastWorks")&&document.readyState==="complete"&&setTimeout(()=>ze("PastWorks"),200)},[document.readyState,me]),a.useEffect(()=>{u()},[]),a.useEffect(()=>{_(!!y)},[y]),window.dataLayer.push({event:"pageview"});const xe=async B=>{try{const M=`${jt.client_url}/talent/${B}`;await navigator.clipboard.writeText(M).then(()=>{s("Share link copied to clipboard","success")}
1).catch(E=>{console.error("Clipboard error:",E),s("Failed to copy link","error")})}catch(ee){console.error("Failed to copy URL: ",ee),s("An error occurred while generating share link","error")}};return e.jsxs(e.Fragment,{children:[e.jsxs(Is,{children:[e.jsx("title",{children:r!=null&&r.first_name?`${r==null?void 0:r.first_name}'s Profile | Casting Bell`:"Casting Bell"}),e.jsx("meta",{name:"description",content:r!=null&&r.first_name?`${r==null?void 0:r.first_name}'s Profile | Casting Bell`:""})]}),e.jsx("section",{className:"py-3 sm:py-5",style:{backgroundColor:"#E5E5E5"},children:e.jsx("div",{className:"container mx-auto px-6 paddingequal",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:6,xs:12,sm:6,md:6,children:e.jsxs("div",{className:"top_title pb-2 sm:p-0 flex justify-start sm:justify-content gap-8 rightbuttonsleft",children:[e.jsxs("h2",{className:"text-xs header_left mobilemenuhidden",children:[" ","My Profile"]}),y?null:e.jsx(_e,{className:"postitionright postitionright_outer",text:g===!0?"Exit Preview":"Preview",onClick:X})]})}),e.jsx(n.Col,{lg:6,xs:12,sm:6,children:e.jsx(oa,{isProfile:!0})})]})})}),e.jsx("section",{className:"middle_bar_section padding_left00",style:{background:"#f4f4f4"},children:e.jsx("div",{className:"container mx-auto px-6 padding15",children:e.jsxs(n.Row,{children:[e.jsx(n.Col,{lg:3,xs:12,sm:4,className:"sm_displayNone",children:e.jsx("aside",{className:"left_side_bar",children:e.jsxs("ul",{children:[e.jsx("li",{children:e.jsxs(Ee,{to:"#",onClick:()=>{ze("PhotoGrallery")},children:[e.jsx("span",{className:"data_icon"}),"Gallery"]})}),e.jsx("li",{children:e.jsxs(Ee,{to:"#",onClick:()=>{ze("PastWorks")},children:[e.jsx("span",{className:"data_icon data_icon6"}),"Past works"]})}),e.jsx("li",{children:e.jsxs(Ee,{to:"#",onClick:()=>{ze("PersonalData")},children:[e.jsx("span",{className:"data_icon data_icon2"}),"Personal Data"]})}),e.jsx("li",{children:e.jsxs(Ee,{to:"#",onClick:()=>{ze("PhysicalDescriptions")},children:[e.jsx(e.Fragment,{}),e.jsx("span",{className:"data_icon data_icon3"}),"Physical Description"]})}),e.jsx("li",{children:e.jsxs(Ee,{to:"#",onClick:()=>{ze("KeyDetails")},children:[e.jsx(Ls,{style:{color:"#979797"}}),e.jsx("span",{className:"",style:{marginLeft:"13px"}}),"Key Details"]})}),e.jsx("li",{children:e.jsxs(Ee,{to:"#",onClick:()=>{ze("SocialMedia")},children:[e.jsx($s,{style:{color:"#979797"}}),e.jsx("span",{className:"",style:{marginLeft:"13px"}}),"Social Media Handles"]})})]})})}),e.jsx(n.Col,{lg:9,xs:12,sm:8,children:e.jsxs("div",{className:"top_profile_name Adminprofile_new",children:[e.jsx("div",{className:"top_profile_left",children:e.jsx(n.Row,{className:"profile_row",children:e.jsx(n.Col,{lg:7,xs:12,sm:7,md:7,className:"profile_rowgrid",children:e.jsxs("div",{className:"profile_name_left profile_name_left_new",children:[e.jsxs("div",{children:[e.jsxs("h3",{children:[(r==null?void 0:r.first_name)+" "+(r==null?void 0:r.last_name)," ",(r==null?void 0:r.profile_status)===1&&r.is_profile_verified==!0?e.jsx(ya,{title:"This user's identity has been verified through a government ID check and a visual verification.",arrow:!0,placement:"top-start",children:e.jsx("span",{className:"validations"})}):null,e.jsx("span",{className:"share_talent",children:e.jsx(da,{onClick:()=>xe(r==null?void 0:r.userUniqueId)})})]}),e.jsx("h4",{children:(ae=r==null?void 0:r.talenter)!=null&&ae.talent_type&&r.talenter.talent_type.length>0?r.talenter.talent_type.length===1?`${r.talenter.talent_type[0].type_name}`:r.talenter.talent_type.length===2?` ${r.talenter.talent_type.map(B=>B.type_name).join(" & ")}`:r.talenter.talent_type.map(B=>`${B.type_name}`).join(", "):""})]}),!g&&(r==null?void 0:r.profile_status)!==1?e.jsx("div",{className:"FullRightbut",children:e.jsx(_e,{style:{marginRight:"0"},text:(fe=r==null?void 0:r.talenter)!=null&&fe.allow_resubmit?"Re-Submit":"Under review",disableBtn:!((ne=r==null?void 0:r.talenter)!=null&&ne.allow_resubmit),disabled:!((D=r==null?void 0:r.talenter)!=null&&D.allow_resubmit),onClick:()=>Y(!0)})}):null]})})})}),e.jsx("div",{id:"PhotoGrallery",children:e.jsx(Mt,{isPreviewd:g})}),e.jsx("div",{id:"PastWorks",children:e.jsx(va,{isPreviewd:g})}),e.jsx("div",{id:"PersonalData",children:e.jsx(Ut,{isPreviewd:g})}),e.jsx("div",{id:"PhysicalDescriptions",children:e.jsx(Bt,{isPreviewd:g})}),e.jsx("div",{id:"KeyDetails",children:e.jsx(Lt,{isPreviewd:g})}),e.jsx("div",{id:"SocialMedia",children:e.jsx($t,{isPreviewd:g})})]})})]})})}),e.jsxs(Fe,{open:p,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Ae,{id:"first_alert__title",className:"first_alert__title",children:e.jsx("p",{className:"",style:{marginBottom:10,fontSize:24},children:"Profile re-submission"})}),e.jsx(He,{children:e.jsxs(Je,{children:[e.jsx("div",{className:"px-4",children:e.jsxs("p",{className:"fontStyl text-center",children:["Have you made the changes requested by the moderators? You can find them in your notifications",e.
1jsx(Es,{sx:{color:"#9B26B6",fontSize:"20px"}}),"."]})})," "]})}),e.jsxs(Ge,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},className:"sm_margin_actionAree",children:[e.jsx(Us,{onClick:()=>Y(!1),text:"Cancel",disabled:I}),e.jsx(_e,{text:"Yes, Re-Submit",isLoading:I,onClick:z,style:{whiteSpace:"nowrap"}})]})]})]})}export{jl as default};
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.