1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38],{11729:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>v});var t=a(95155),n=a(19749),l=a(6333),o=a(45615),r=a(67125),c=a(92150),i=a(58427),d=a(12115),u=a(99759);function g(e){let s,a,l,o=(0,n.c)(7),{isOpen:r,onClick:c,singup:i}=e,d=i?"5px !important":"5px";o[0]!==d?(s={marginBottom:d},o[0]=d,o[1]=s):s=o[1];let u="country-picker-icon-container ".concat(r?"drop-down-arrow-icon-open":""," ");return o[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("img",{src:"/assests/svg/mobileDropdwonArrow.svg",alt:"dropdown-arrow-icon"}),o[2]=a):a=o[2],o[3]!==c||o[4]!==s||o[5]!==u?(l=(0,t.jsx)("div",{style:s,onClick:c,className:u,children:a}),o[3]=c,o[4]=s,o[5]=u,o[6]=l):l=o[6],l}a(50948);let v=e=>{let{placeholder:s="",label:a,onSelect:n,selectedValue:v,defaultCountryCode:p,onChangeInput:h,inputValue:m,isError:x=!1,mobileInputName:k="",disabled:f=!1,onChange:b,singup:y,linked:j}=e,[I,w]=(0,d.useState)(""),[N,C]=(0,d.useState)(!1),[D,A]=(0,d.useState)(!1),[S,P]=(0,d.useState)(null!=p?p:""),_=()=>{C(!1),w("")},M=()=>{f||C(e=>!e)},R=(0,d.useMemo)(()=>(null==u?void 0:u.find(e=>(null==e?void 0:e.code)===p))||{},[p]);(0,d.useEffect)(()=>{n&&(null==R?void 0:R.dial_code)&&n(R)},[n,R]);let T=(0,d.useMemo)(()=>{let e=I.replaceAll(/ /gi,"").toLowerCase();return I?null==u?void 0:u.filter(s=>{var a,t;return(null==s||null==(a=s.dial_code)?void 0:a.includes(e))||(null==s||null==(t=s.name)?void 0:t.replaceAll(/ /gi,"").toLowerCase().includes(e))}):u},[I,u]);return(0,t.jsxs)("div",{className:"country-picker-container country-picker-".concat(N||D?"focus":""," country-picker-").concat(x?"error":"","\n ").concat(f?"disabled":"","\n ").concat(y?"singup":"","\n ").concat(j?"linked":"","\n "),children:[(0,t.jsx)("p",{className:"country-picker-label country-picker-label-".concat(N||D?"focus":""," country-picker-label-").concat(x?"error":""),children:a}),(0,t.jsxs)(c.A,{open:N,onOpen:()=>{f||C(!0)},onClose:_,onBlur:_,defaultValue:p,value:null==v?void 0:v.code,MenuProps:{disableAutoFocusItem:!0,PaperProps:{className:"responsive-country-menu",style:{maxHeight:300}},getcontentanchorel:null,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},onChange:e=>{let s=u.find(s=>s.code===e.target.value);n&&s&&n(s)},className:"country-picker-dropdown country-picker-dropdown-".concat(N||D?"focus":""," country-picker-dropdown-").concat(x?"error":""),renderValue:e=>{let s=u.find(s=>s.code===e);return(0,t.jsxs)("p",{className:"selected-value",children:[(0,t.jsx)("img",{width:"25",src:(null==s?void 0:s.image)||(null==R?void 0:R.image),alt:null==R?void 0:R.code}),(null==s?void 0:s.dial_code)||(null==R?void 0:R.dial_code)]})},IconComponent:()=>(0,t.jsx)(g,{isOpen:N,onClick:M,singup:y}),children:[(0,t.jsx)(o.A,{children:(0,t.jsx)(i.A,{InputProps:{startAdornment:(0,t.jsx)(l.A,{position:"start",children:(0,t.jsx)("img",{src:"/assests/svg/searchIcon.svg",alt:"dropdown-arrow-icon"})})},fullWidth:!0,size:"small",autoComplete:"off",placeholder:"Search",autoFocus:!1,onKeyDown:e=>{"Escape"!==e.key&&e.stopPropagation()},onChange:e=>{var s;w(null==e||null==(s=e.target)?void 0:s.value)},value:I})}),(null==T?void 0:T.length)?null==T?void 0:T.map((e,s)=>(0,t.jsx)(r.A,{disabled:f,defaultValue:p,value:null==e?void 0:e.code,sx:{fontSize:"14px",fontWeight:500,color:"var(--secondaryTextColor) !important","&:hover":{backgroundColor:"#E8FFF0 !important",color:"#00A575 !important"},"&.Mui-selected":{backgroundColor:"#E8FFF0 !important",color:"#00A575 !important"},"&.Mui-selected:hover":{backgroundColor:"#E8FFF0 !important",color:"#00A575 !important"}},children:(0,t.jsxs)("div",{className:"country-picker-dropdown-container",children:[(0,t.jsxs)("p",{className:"selected-dial-code",children:[(0,t.jsx)("img",{width:"25",src:null==e?void 0:e.image,alt:e.code}),null==e?void 0:e.name]}),(0,t.jsx)("p",{className:"country-picker-dial-code",children:null==e?void 0:e.dial_code})]})},e.dial_code+s)):(0,t.jsx)(r.A,{disabled:!0,children:"No countries found"})]}),(0,t.jsx)("input",{disabled:f,name:k,type:"tel",inputMode:"numeric",value:m,onChange:h,onFocus:()=>A(!0),onBlur:()=>A(!1),className:y?"country-picker-input-signup":"country-picker-input",placeholder:s,onKeyDown:e=>{let s=/^\d$/.test(e.key),a=["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter"].includes(e.ke
1y),t=e.ctrlKey||e.metaKey;s||a||t||e.preventDefault()}})]})}},14656:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t=a(28705),n=a(95155);let l=(0,t.A)((0,n.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},33262:()=>{},33477:(e,s,a)=>{"use strict";a.d(s,{F:()=>l});var t=a(19749),n=a(90846);let l=()=>{let e,s=(0,t.c)(29),{theme:a}=(0,n.useTheme)(),l="dark"===a?"/assests/svg/adaptiveLearningimg.svg":"",o="dark"===a?"/assests/svgDark/crossIconDark.svg":"/assests/svg/crossIcon.svg",r="dark"===a?"/assests/svgDark/gridIconDark.svg":"/assests/svg/gridIcon.svg",c="dark"===a?"/assests/svgDark/listIconDark.svg":"/assests/svg/listViewIcon.svg",i="/assests/svg/gridActiveIcon.svg",d="/assests/svg/listActiveIcon.svg",u="/assests/svg/filterIcon.svg",g="dark"===a?"/assests/svgDark/dashboardIconDark.svg":"/assests/svg/dashboardIcon.svg",v="dark"===a?"/assests/svgDark/learnIconDark.svg":"/assests/svg/learnIcon.svg",p="dark"===a?"/assests/svgDark/competitiveIconDark.svg":"/assests/svg/competitiveIcon.svg",h="dark"===a?"/assests/svgDark/notesIconDark.svg":"/assests/svg/notesIcon.svg",m="dark"===a?"/assests/svgDark/activeMyAssessmentIcon.svg":"/assests/svg/inActiveMyAssessmentIcon.svg",x="dark"===a?"/assests/svgDark/savedIconDark.svg":"/assests/svg/savedIcon.svg",k="dark"===a?"/assests/svgDark/analyticsAndReportIconDark.svg":"/assests/svg/analyticsAndReportIcon.svg",f="dark"===a?"/assests/svgDark/termsAndConditionNavbarIconDark.svg":"/assests/svg/termsAndConditionNavbarIcon.svg",b="dark"===a?"/assests/svgDark/saveIconDark.svg":"/assests/svg/savedIcon.svg",y="dark"===a?"/assests/svgDark/activeRecallDarkIcon.svg":"/assests/svg/activeRecallNormalIcon.svg",j="dark"===a?"/assests/svgDark/adaptiveLearningDarkIcon.svg":"/assests/svg/adaptiveLearningIcon.svg",I="dark"===a?"/assests/svgDark/fullScreenDark.svg":"/assests/svg/fullScreen.svg",w="dark"===a?"/assests/svgDark/previousIconDark.svg":"/assests/svg/previousIcon.svg",N="dark"===a?"/assests/svgDark/nextIconDark.svg":"/assests/svg/nextIcon.svg",C="dark"===a?"/assests/svgDark/newNoteIconDark.svg":"/assests/svg/newNoteIcon.svg",D="dark"===a?"/assests/svgDark/collapseIconLeftDark.svg":"/assests/svg/collapseIconLeft.svg",A="dark"===a?"/assests/svgDark/collapseIconRightDark.svg":"/assests/svg/collapseIconRight.svg",S="/assests/svgDark/copyIconDark.svg",P="dark"===a?"/assests/svgDark/mcqIconDark.svg":"/assests/svg/mcqIcon.svg",_="dark"===a?"/assests/svgDark/contentIconDark.svg":"/assests/svg/contentIcon.svg",M="/assests/svg/labglass.svg";return s[0]!==l||s[1]!==o||s[2]!==h||s[3]!==m||s[4]!==x||s[5]!==k||s[6]!==f||s[7]!==b||s[8]!==y||s[9]!==j||s[10]!==I||s[11]!==w||s[12]!==r||s[13]!==N||s[14]!==C||s[15]!==D||s[16]!==A||s[17]!==S||s[18]!==P||s[19]!==_||s[20]!==M||s[21]!==c||s[22]!==i||s[23]!==d||s[24]!==u||s[25]!==g||s[26]!==v||s[27]!==p?(e=[{adaptiveLearningimg:l,aipowerednotesicon:"/assests/svg/aipowerednotesicon.svg",crossIcon:o,gridIcon:r,listIcon:c,gridIconActive:i,listIconActive:d,filterIcon:u,dashboardIcon:g,learnIcon:v,competitiveIcon:p,notesIcon:h,myAssessmentIcon:m,savedIcon:x,analyticsAndReportIcon:k,termsAndConditionIcon:f,saveIcon:b,activeRecallIcon:y,adaptiveLearningIcon:j,fullScreen:I,previousIcon:w,nextIcon:N,newNoteIcon:C,collapseIconLeft:D,collapseIconRight:A,copyIcon:S,mcqIcon:P,contentIcon:_,labglassIcon:M}],s[0]=l,s[1]=o,s[2]=h,s[3]=m,s[4]=x,s[5]=k,s[6]=f,s[7]=b,s[8]=y,s[9]=j,s[10]=I,s[11]=w,s[12]=r,s[13]=N,s[14]=C,s[15]=D,s[16]=A,s[17]=S,s[18]=P,s[19]=_,s[20]=M,s[21]=c,s[22]=i,s[23]=d,s[24]=u,s[25]=g,s[26]=v,s[27]=p,s[28]=e):e=s[28],e}},50038:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>f});var t=a(95155),n=a(12115),l=a(56929);a(54551);
1var o=a(88907),r=a(90846),c=a(196);a(91034),a(33262);var i=a(53878),d=a(10547),u=a(33477),g=a(84014),v=a(11729);a(30518);var p=a(95435),h=a(14656);let m=(0,l.default)(()=>a.e(602).then(a.bind(a,70602)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/Modal")]},ssr:!1}),x=(0,l.default)(()=>Promise.all([a.e(6613),a.e(2238)]).then(a.bind(a,2238)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../loading")]},ssr:!1});(0,l.default)(()=>Promise.resolve().then(a.bind(a,53878)),{loadableGenerated:{webpack:()=>[require.resolveWeak("react-phone-number-input")]},ssr:!1});let k=(0,l.default)(async()=>(await a.e(8906).then(a.bind(a,18906))).MuiOtpInput,{loadableGenerated:{webpack:()=>[require.resolveWeak("mui-one-time-password-input")]},ssr:!1}),f=e=>{let{open:s,setOpen:a,itemValue:l,handleRefresh:f,setShowUnlinkPopup:b,showUnlinkPopup:y,handleUnlinkAccount:j,unlinkAccount:I,setShowDeletePopup:w,showDeletePopup:N,handleDeleteAccount:C,setDashboardLinkMandatory:D,dashboardLinkMandatory:A,showChangePasswordPopup:S,setShowChangePasswordPopup:P,userEmail:_}=e,[M,R]=(0,n.useState)(""),{theme:T,toggleTheme:E}=(0,r.useTheme)(),[F,O]=(0,n.useState)(""),[L,V]=(0,n.useState)(""),[q,B]=(0,n.useState)(!1),[z,W]=(0,n.useState)(""),[G,K]=(0,n.useState)(0),[$,Z]=(0,n.useState)(59),[U,H]=(0,n.useState)(!1),Y=g.A.get("token"),[J,Q]=(0,n.useState)(!1),X=(0,u.F)(),[ee,es]=(0,n.useState)(!1),[ea,et]=(0,n.useState)(""),[en,el]=(0,n.use
1State)(""),[eo,er]=(0,n.useState)(""),[ec,ei]=(0,n.useState)(null),[ed,eu]=(0,n.useState)(""),[eg,ev]=(0,n.useState)(""),[ep,eh]=(0,n.useState)(!1),[em,ex]=(0,n.useState)(!1),[ek,ef]=(0,n.useState)(""),[eb,ey]=(0,n.useState)(!1),[ej,eI]=(0,n.useState)(""),[ew,eN]=(0,n.useState)({status:!1,message:"",display:!1}),eC=(0,n.useRef)(null),eD=!!F&&(!M||0===M.length||!L||0===L.length),eA=(null==z?void 0:z.length)>3,eS=e=>{er(""),e?(0,i.isPossiblePhoneNumber)(e)&&(0,i.isValidPhoneNumber)(e)?(O(""),(e=>{let s=(0,i.parsePhoneNumber)(e),a=(0,i.getCountryCallingCode)(null==s?void 0:s.country),t=null==e?void 0:e.slice(0,(null==a?void 0:a.length)+1);el(null==e?void 0:e.slice((null==a?void 0:a.length)+1,null==e?void 0:e.length)),et(t)})(e)):O("Invalid phone number!"):O("Required!"),V(e)};(0,n.useEffect)(()=>{let e=setInterval(()=>{$>0&&Z($-1),0===$&&(0===G?clearInterval(e):(Z(59),K(G-1)))},1e3);return()=>{clearInterval(e)}},[$]);let eP=e=>(null==e?void 0:e.dial_code)?e.dial_code:"",e_=async e=>{e.preventDefault();try{if(es(!0),z)if(z.length<4)H(!0);else{H(!1);let e={phone_no:L,otp:z,country_code:eP(ec),login_method:l},s=await (0,d.$i)(Y,e);if(null==s?void 0:s.ok){let e=await s.json();(null==e?void 0:e.message)&&(Q(!0),R(""),D(!1),eN({status:!0,message:"OTP verified successfully!",display:!0}))}else eN({status:!1,message:errorResponse.message||"OTP verification failed",display:!0})}else H(!0)}catch(e){console.log(e),eN({status:!1,message:"Invalid Otp Please try again",display:!0})}finally{es(!1)}},eM=async()=>{try{es(!0);let e=await (0,d.aG)(Y,{email:_,oldPassword:ed,newPassword:eg}),s=await e.json();e.ok?(c.toast.success((null==s?void 0:s.message)||"Password changed successfully!"),setTimeout(()=>{P(!1),eu(""),ev("")},1200)):c.toast.error((null==s?void 0:s.message)||"Password change failed")}catch(e){console.log(e),c.toast.error("Something went wrong")}finally{es(!1)}};(0,n.useEffect)(()=>{setTimeout(()=>{var e;let s=null==(e=eC.current)?void 0:e.querySelectorAll("input");s&&s.length>0&&(s[0].focus(),s[0].setSelectionRange(0,0))},100)},[]);let eR=async e=>{try{if(!F&&L&&ec){es(!0);let e={phone_no:L,login_method:l,country_code:eP(ec)},s=await (0,d.ou)(Y,e);if(s.ok){let e=await s.json();e.message?(null==e?void 0:e.remaining_seconds)?(B(!0),Z(null==e?void 0:e.remaining_seconds)):(B(!0),Z(59)):er("Account already added!!")}}else L&&(0,i.isValidPhoneNumber)(L)&&!F||eS(L)}catch(e){console.log(e)}finally{es(!1)}},eT=async e=>{if(e.preventDefault(),"whatsapp"===l)try{if(!F&&L&&ec){es(!0);let e={phone_no:L,login_method:l,country_code:eP(ec)},s=await (0,d.ou)(Y,e);if(s.ok){let e=await s.json();e.message?(null==e?void 0:e.remaining_seconds)?(B(!0),Z(null==e?void 0:e.remaining_seconds)):(B(!0),Z(59)):er("Account already added!!")}}else L&&(0,i.isValidPhoneNumber)(L)&&!F||eS(L)}catch(e){console.log(e)}finally{es(!1)}else if(M)try{es(!0);let e=await (0,d.tY)(Y,{email:M,login_method:l});if(null==e?void 0:e.ok){var s;let a=await e.json();(null==a?void 0:a.message)&&(Q(!0),R("")),(null==(s=a[0])?void 0:s.alredy_linked)===!0&&c.toast.info("This account is Already linked")}}catch(e){console.log(e)}finally{es(!1)}else O("Required !")},eE=()=>{y?b(!1):N?w(!1):S?P(!1):(a(!1),O(""),B(!1),V(""),W(""),Q(!1),f())};return(0,t.jsxs)("div",{children:[(0,t.jsx)(m,{keepMounted:!0,open:s||y||N||S,onClose:!A&&eE,style:{backdropFilter:"blur(7px)",background:"transparent"},className:"accounts-details-main-wrapper d-flex-col gap-16",children:J?(0,t.jsxs)("div",{className:"accounts-details d-flex-col gap-16",children:[(0,t.jsx)("div",{className:"cancel-btn d-flex-jb cursor-ptr",onClick:eE,children:(0,t.jsx)(o.default,{src:X[0].crossIcon,width:24,height:24,alt:"alt"})}),(0,t.jsx)("h1",{className:"success-para",children:"Account Added Successfully!!!"}),(0,t.jsx)("button",{className:"sign-in-btn cursor-ptr",onClick:eE,children:"Ok"})]}):S?(0,t.jsxs)("div",{className:"accounts-details d-flex-col gap-16",children:[(0,t.jsx)("div",{className:"cancel-btn d-flex-jb cursor-ptr",onClick:()=>P(!1),children:(0,t.jsx)(o.default,{src:X[0].crossIcon,width:24,height:24,alt:"alt"})}),(0,t.jsx)("h2",{children:"Change Password"}),(0,t.jsxs)("div",{className:"input-sections-linked password-field",children:[(0,t.jsx)("input",{type:ep?"text":"password",className:"number-input",placeholder:"Enter Old Password",value:ed,onChange:e=>eu(e.target.value)}),(0,t.jsx)("span",{className:"password-toggle",onClick:()=>eh(!ep),children:ep?(0,t.jsx)(h.A,{}):(0,t.jsx)(p.A,{})})]}),(0,t.jsxs)("div",{className:"input-sections-linked password-field",children:[(0,t.jsx)("input",{type:em?"text":"password",className:"number-input",placeholder:"Enter New Password",value:eg,onChange:e=>ev(e.target.value)}),(0,t.jsx)("span",{className:"password-toggle",onClick:()=>ex(!em),children:em?(0,t.jsx)(h.A,{}):(0,t.jsx)(p.A,{})})]}),(0,t.jsxs)("div",{className:"input-sections-linked password-field",children:[(0,t.jsx)("input",{type:eb?"text":"password",className:"number-input",placeholder:"Confirm Password",value:ek,onChange:e=>(e=>{ef(e),eg!==e?eI("Passwords do not match"):eI("")})(e.target.value)}),(0,t.jsx)("span",{className:"password-toggle",onClick:()=>ey(!eb),children:eb?(0,t.jsx)(h.A,{}):(0,t.jsx)(p.A,{})}),ej&&(0,t.jsx)("p",{className:"error-text",children:ej})]}),(0,t.jsx)("button",{className:"sign-in-btn ".concat(ed&&eg&&ek&&eg===ek?"cursor-ptr":"disabled"),disabled:!ed||!eg||!ek||eg!==ek,onClick:eM,children:"Change Password"})]}):q?(0,t.jsxs)("div",{className:"accounts-details d-flex-col ",children:[!A&&(0,t.jsx)("div",{className:"cancel-btn d-flex-jb cursor-ptr",onClick:eE,children:(0,t.jsx)(o.default,{src:X[0].crossIcon,width:24,height:24,alt:"alt"})}),(0,t.jsxs)("div",{className:"otp-box d-flex-col gap-16",children:[(0,t.jsx)("p",{className:"verify-otp-text",children:"Verify OTP"}),(0,t.jsx)(k,{value:z,ref:eC,numInputs:4,onChange:e=>{let s=e.replace(/\D/g,"");s.length<=e.length&&(eN({status:!1,message:"",display:!1}),W(s))},sx:{display:"flex",gap:"26px",alignItems:"center",marginBottom:"16
1px","& .MuiOutlinedInput-root":{height:"79.5px !important",width:"79.5px !important","& fieldset":{border:ew.display&&!ew.status?"1px solid var(--errorBoxBorderColor)":"1px solid rgba(237, 237, 237, 1)"},"&:hover fieldset":{borderColor:"1px solid rgba(237, 237, 237, 1)"},"&.Mui-focused fieldset":{borderColor:"1px solid #000000",border:"1px solid #000000"},backgroundColor:ew.display&&!ew.status?"rgba(255, 247, 247, 1)":"transparent","& input":{color:ew.display&&!ew.status?"var(--errorTextcColor)":"var(--labelTextColor)"}},"@media (max-width:999px)":{gap:"20px",marginBottom:"27px","& .MuiOutlinedInput-root":{height:"60px !important",width:"60px !important"}}},TextFieldsProps:{inputProps:{type:"tel",inputMode:"numeric",pattern:"[0-9]*"},onKeyDown:e=>{/^[0-9]$/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()}}}),(0,t.jsxs)("div",{className:"otp-expire-wrapper d-flex",children:[(0,t.jsxs)("p",{children:["Resend OTP in:"," ",(0,t.jsxs)("span",{style:{fontWeight:600},children:[G<10?"0".concat(G):G,":",$<10?"0".concat($):$]})]}),(0,t.jsx)("button",{className:"resend-btn",disabled:$>0||G>0,style:{color:$>0||G>0?"ff5630":"#00a575"},onClick:eR,children:"Resend OTP"})]}),ew.display&&((null==ew?void 0:ew.status)?(0,t.jsx)("div",{className:"otp-success",children:ew.message}):(0,t.jsx)("div",{className:"error-box",children:ew.message}))," ",(0,t.jsx)("button",{className:eA?"submit-btn d-flex cursor-ptr":"submit-btn d-flex cursor-ptr disabled",disabled:!eA,onClick:e=>e_(e),children:"Verify OTP"})]})]}):y||N?(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsxs)("div",{className:"accounts-details d-flex-col gap-16",children:[(0,t.jsx)("div",{className:"cancel-btn d-flex-jb cursor-ptr",onClick:eE,children:(0,t.jsx)(o.default,{src:X[0].crossIcon,width:24,height:24,alt:"alt"})}),(0,t.jsx)("h2",{children:N?"Are you sure you want to delete this account?":"Confirm Unlinking ".concat("whatsapp"===I?"Mobile Number":I," Account")}),(0,t.jsxs)("div",{className:"unlink-account-button d-flex",children:[(0,t.jsx)("button",{className:"cancel-btn cursor-ptr",onClick:()=>eE(),children:"Cancel"}),(0,t.jsx)("button",{className:N?"delete-btn cursor-ptr":"sign-in-btn cursor-ptr",onClick:()=>{y?j():N&&C()},children:y?"Unlink":"Delete"})]})]})]}):(0,t.jsxs)("div",{className:"accounts-details d-flex-col gap-16",children:[!A&&(0,t.jsx)("div",{className:"cancel-btn d-flex-jb cursor-ptr",onClick:eE,children:(0,t.jsx)(o.default,{src:X[0].crossIcon,width:24,height:24,alt:"alt"})}),(0,t.jsx)("h2",{children:"whatsapp"===l?"Enter Whatsapp Number":"google"===l?"Enter your email address":"Enter your ".concat(l," Account")}),"whatsapp"===l?(0,t.jsxs)("div",{className:"input-sections-linked",children:[(0,t.jsx)(v.default,{defaultCountryCode:"+91",placeholder:"Enter Mobile Number",onChangeInput:e=>{let s=e.target.value.replace(/\D/g,"");if(!ec)return void V(s);let{minLength:a,maxLength:t}=ec.validation;s.length>t||(V(s),er(""),O(((e,s)=>{if(!s||!s.validation)return"";let{validFirstDigits:a,restrictedPrefixes:t,firstDigitError:n,minLength:l,maxLength:o}=s.validation;if(0===e.length)return"";if(e.length<l||e.length>o)return"Phone number must be ".concat(l," digits");if(a&&a.length>0){let s=e.charAt(0);if(!a.includes(s))return n||"Invalid phone number format"}if(t&&t.length>0){for(let s of t)if(e.startsWith(s))return"Phone number cannot start with restricted prefix"}return""})(s,ec)))},onSelect:ei,selectedValue:null==ec?void 0:ec.dial_code,inputValue:L,linked:!0}),eo&&L.length>5?(0,t.jsx)("p",{className:"error-text",children:eo}):L.length>0?(0,t.jsx)("p",{className:"error-text",children:F}):null]}):(0,t.jsxs)("div",{className:"input-sections-linked",children:[(0,t.jsx)("input",{type:"text",value:M,className:"number-input",placeholder:"Enter here...",style:{border:F?"1px solid var(--deleteButtonText)":null},onInput:e=>(e=>{let s;(s=e?e.target.value:"")?"google"===l?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$/.test(s)?O(""):O("Please enter a valid email address."):("linkedin"===l||"instagram"===l||"x"===l)&&(/^[^\s]{3,}$/.test(s.trim())?O(""):O("Please enter a valid account name.")):O("Required!"),R(s)})(e)}),(0,t.jsx)("p",{className:"error-text",children:F})]}),(0,t.jsx)("button",{className:"sign-in-btn ".concat(eD?"disabled":"cursor-ptr"),onClick:e=>eT(e),disabled:eD,children:"Link"})]})}),(0,t.jsx)(c.ToastContainer,{}),ee&&(0,t.jsx)(x,{})]})}},50948:()=>{},54551:()=>{},95435:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t=a(28705),n=a(95155);let l=(0,t.A)((0,n.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")}}]);
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.