PageSourceSearch

https://trykandor.com/static/js/ShortslisterPage.f8fd2256.chunk.js

js trykandor.com collected 2026-10-04 03:01:41 UTC 227,553 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkblk_design_system_pro_react=globalThis.webpackChunkblk_design_system_pro_react||[]).push([[44190],{16157:(e,a,t)=>{t.d(a,{h:()=>o});var r,l,n=t(65043);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(null,arguments)}function i({title:e,titleId:a,...t},i){return n.createElement("svg",s({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":a},t),e?n.createElement("title",{id:a},e):null,r||(r=n.createElement("path",{d:"M12.9497 7.60512C12.8081 8.68515 12.3752 9.70625 11.6973 10.5589C11.0194 11.4116 10.1223 12.0636 9.102 12.4452C8.08172 12.8267 6.97684 12.9233 5.90584 12.7246C4.83484 12.5259 3.83812 12.0394 3.02259 11.3173C2.20706 10.5952 1.60348 9.66474 1.27658 8.62567C0.949684 7.5866 0.911798 6.47815 1.16699 5.41918C1.42218 4.36022 1.96082 3.3907 2.72514 2.6146C3.48947 1.8385 4.45064 1.28509 5.50557 1.01374C8.42999 0.263695 11.4572 1.76903 12.5747 4.5742",stroke:"currentColor",strokeWidth:1.50009,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=n.createElement("path",{d:"M13.0002 0.82399V4.57421H9.25",stroke:"currentColor",strokeWidth:1.50009,strokeLinecap:"round",strokeLinejoin:"round"})))}const o=n.forwardRef(i);t.p},57871:(e,a,t)=>{t.d(a,{A:()=>c});var r=t(65043),l=t(50272),n=t(30430),s=t(22794),i=t(70579);function o({country:e,countryName:a,flagUrl:t}){return(0,i.jsx)("img",{alt:a,role:a?void 0:"presentation",src:t.replace("{XX}",e).replace("{xx}",e.toLowerCase())})}const c=({value:e,onChange:a=()=>{},labels:t,isBig:c=!1,headerStyle:d={},disabled:u=!1,withFlag:_,phoneE164:p,defaultCountry:m,handleCountryChange:h=()=>{}})=>{const[v,f]=(0,r.useState)([]),[g,C]=(0,r.useState)(!1),b=(0,r.useMemo)((()=>{if(e)return e;const a=(e=>{if(!e||"+"!==e[0])return;const a=(0,s.l)(e);return a&&a.country?a.country:void 0})(p);return a||(t||m)}),[e,p,t,m]),[x,j]=(0,r.useState)(b);(0,r.useEffect)((()=>{j(b)}),[b]);(0,r.useEffect)((()=>{const e=(0,l.X6)().map((e=>({country:e,fullNameCountry:n.A[e]})));e.sort(((e,a)=>e.fullNameCountry.localeCompare(a.fullNameCountry))),f(e)}),[]),(0,r.useEffect)((()=>{const e=e=>{e.target.closest(".country-select")||C(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[]);const y=e=>{u||(C(!1),j(e),h(e),a(e||void 0,e?+(0,l.Ko)(e):void 0))},w=x||m,N=(0,l.Ko)(w);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"country-select "+(c?"country-select--big":""),"data-value":w,children:[(0,i.jsxs)("div",{style:{...d},className:`country-select__head ${g?"active":""} ${_?"flag":""}`,onClick:()=>{u||C(!g)},children:[_&&(0,i.jsxs)("div",{className:"country-select__icon",children:[(0,i.jsx)(o,{country:w,countryName:w,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg"})," "]}),(0,i.jsxs)("span",{value:t,children:["+",N]})]}),(0,i.jsx)("div",{className:"country-select__menu "+(g?"active":""),children:(0,i.jsx)("div",{className:"country-select__inner",children:(0,i.jsxs)("ul",{className:"country-select__list",children:[(0,i.jsx)("li",{className:"country-select__item active",onClick:()=>y("IN"),children:(0,i.jsxs)("div",{className:"country-select__item-inner",children:[(0,i.jsxs)("div",{className:"country-select__name",children:[(0,i.jsxs)("div",{className:"country-select__icon",children:[(0,i.jsx)(o,{country:w,countryName:w,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg"})," "]}),(0,i.jsxs)("span",{className:"country-select__text",children:["+",(0,l.Ko)(w)]}),(0,i.jsx)("span",{className:"country-select__text",children:n.A[w]})]}),(0,i.jsx)("div",{className:"country-select__check "+("IN"===w?"active":""),children:(0,i.jsx)("span",{})})]})}),v.map((a=>(0,i.jsx)("li",{className:"country-select__item",onClick:()=>y(a.country),children:(0,i.jsxs)("div",{className:"country-select__item-inner",children:[(0,i.jsxs)("div",{className:"country-select__name",children:[(0,i.jsxs)("div",{className:"country-select__icon",children:[(0,i.jsx)(o,{country:a.country,countryName:a.country,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg"})," "]}),(0,i.jsxs)("span",{className:"country-select__text",children:["+",(0,l.Ko)(a.country)]}),(0,i.jsx)("span",{className:"country-select__text",children:a.fullNameCountry})]}),(0,i.jsx)("div",{className:"country-select__check "+(e===a.country?"active":""),children:(0,i.jsx)("span",{})})]})},a.country)))]})})})]})})}},79167:(e,a,t)=>{t.r(a),t.d(a,{default:()=>Es});var r=t(65043);const l={wrap:"ProfileBuilderPage_wrap__fO4Fm",saveError:"ProfileBuilderPage_saveError__qwee9",container:"ProfileBuilderPage_container__m2q9+",full:"ProfileBuilderPage_full__Z5gMX",head:"ProfileBuilderPage_head__QgSFD",back:"ProfileBuilderPage_back__B4CX0",back__icon:"ProfileBuilderPage_back__icon__EF+Ro",back__text:"ProfileBuilderPage_back__text__K3VI8",title:"ProfileBuilderPage_title__-eRBj",title__icon:"ProfileBuilderPage_title__icon__smSWn",title__text:"ProfileBuilderPage_title__text__K8C7a"},n={block:"SurveyProfile_block__U8ShF",tabs:"SurveyProfile_tabs__0Jmfm",tab:"SurveyProfile_tab__WhlpA",current:"SurveyProfile_current__Dss-B",tab__text:"SurveyProfile_tab__text__RQSiw",active:"SurveyProfile_active__qiLyG",valid:"SurveyProfile_val
1id__AGlGC",tab__icon:"SurveyProfile_tab__icon__6BlvL",error:"SurveyProfile_error__c64Og",lock:"SurveyProfile_lock__KjhZB",saveState:"SurveyProfile_saveState__HcXOk",mobileSaveIndicator:"SurveyProfile_mobileSaveIndicator__jBPUK",dirty:"SurveyProfile_dirty__AmD28",saving:"SurveyProfile_saving__p9NdG",savingSpin:"SurveyProfile_savingSpin__gjRQj",saved:"SurveyProfile_saved__0LGnB",autosave:"SurveyProfile_autosave__WLw5f",autosave__icon:"SurveyProfile_autosave__icon__Lj2i2",autosave__text:"SurveyProfile_autosave__text__tWS4b",stepNotice:"SurveyProfile_stepNotice__WLsdI",content:"SurveyProfile_content__7+Y9f",footer:"SurveyProfile_footer__g-n4r",footer__wrap:"SurveyProfile_footer__wrap__xr8uU",firstStep:"SurveyProfile_firstStep__IQBF0",next:"SurveyProfile_next__SpMbC",leftArrow:"SurveyProfile_leftArrow__v9yXI",rightArrow:"SurveyProfile_rightArrow__Vh-nD",savingSpinner:"SurveyProfile_savingSpinner__zOSZV",btn:"SurveyProfile_btn__D73dk",incomplete:"SurveyProfile_incomplete__hlXZs",incompletePulse:"SurveyProfile_incompletePulse__bTyyA",btn__text:"SurveyProfile_btn__text__tiE+5",btn__arrow:"SurveyProfile_btn__arrow__Sc9MI",prev:"SurveyProfile_prev__gWpZ4",blocked:"SurveyProfile_blocked__g3c-T"};var s,i,o;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c.apply(null,arguments)}function d({title:e,titleId:a,...t},l){return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,s||(s=r.createElement("path",{opacity:.16,d:"M3.79297 13.8191C3.79297 13.0594 4.09477 12.3308 4.63197 11.7936C5.16917 11.2564 5.89777 10.9546 6.65749 10.9546H12.3865C13.1462 10.9546 13.8749 11.2564 14.4121 11.7936C14.9493 12.3308 15.2511 13.0594 15.2511 13.8191C15.2511 14.199 15.1002 14.5633 14.8316 14.8319C14.563 15.1005 14.1987 15.2514 13.8188 15.2514H5.22523C4.84537 15.2514 4.48107 15.1005 4.21247 14.8319C3.94387 14.5633 3.79297 14.199 3.79297 13.8191Z",fill:"#573B76"})),i||(i=r.createElement("path",{d:"M3.79297 13.8191C3.79297 13.0594 4.09477 12.3308 4.63197 11.7936C5.16917 11.2564 5.89777 10.9546 6.65749 10.9546H12.3865C13.1462 10.9546 13.8749 11.2564 14.4121 11.7936C14.9493 12.3308 15.2511 13.0594 15.2511 13.8191C15.2511 14.199 15.1002 14.5633 14.8316 14.8319C14.563 15.1005 14.1987 15.2514 13.8188 15.2514H5.22523C4.84537 15.2514 4.48107 15.1005 4.21247 14.8319C3.94387 14.5633 3.79297 14.199 3.79297 13.8191Z",stroke:"#573B76",strokeWidth:1.43226,strokeLinejoin:"round"})),o||(o=r.createElement("path",{d:"M9.52144 8.08975C10.708 8.08975 11.6698 7.12788 11.6698 5.94136C11.6698 4.75484 10.708 3.79297 9.52144 3.79297C8.33491 3.79297 7.37305 4.75484 7.37305 5.94136C7.37305 7.12788 8.33491 8.08975 9.52144 8.08975Z",stroke:"#573B76",strokeWidth:1.43226})))}const u=r.forwardRef(d);t.p;var _,p=t(31110);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},m.apply(null,arguments)}function h({title:e,titleId:a,...t},l){return r.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,_||(_=r.createElement("path",{d:"M8.66667 12.6666L11 6.66659L13.3333 12.6666M9.25 11.3333H12.75M2 4.66659H6.66667M6.66667 4.66659H8M6.66667 4.66659C6.66667 5.75325 6.138 7.28392 5.174 8.43659M5.174 8.43659C4.52667 9.21325 3.68067 9.81659 2.66667 9.99992M5.174 8.43659L3.33333 6.66659M5.174 8.43659L6.8 9.99992M5 4.54525V3.33325",stroke:"#573B76",strokeWidth:1.43896,strokeLinecap:"round",strokeLinejoin:"round"})))}const v=r.forwardRef(h);t.p;var f,g;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},C.apply(null,arguments)}function b({title:e,titleId:a,...t},l){return r.createElement("svg",C({xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,f||(f=r.createElement("path",{opacity:.2,d:"M14.7324 4.23242V14.2324L12.7324 13.2324L10.7324 14.2324L8.73242 13.2324L6.73242 14.2324L4.73242 13.2324L2.73242 14.2324V4.23242C2.73242 4.09981 2.7851 3.97264 2.87887 3.87887C2.97264 3.7851 3.09981 3.73242 3.23242 3.73242H14.2324C14.365 3.73242 14.4922 3.7851 14.586 3.87887C14.6797 3.97264 14.7324 4.09981 14.7324 4.23242Z",fill:"#573B76"})),g||(g=r.createElement("path",{d:"M14.2324 3.23242H3.23242C2.96721 3.23242 2.71285 3.33778 2.52532 3.52532C2.33778 3.71285 2.23242 3.96721 2.23242 4.23242V14.2324C2.23236 14.3177 2.25411 14.4016 2.2956 14.4761C2.33709 14.5506 2.39694 14.6132 2.46947 14.6581C2.542 14.7029 2.62479 14.7284 2.70998 14.7323C2.79516 14.7361 2.87991 14.7181 2.95617 14.6799L4.73242 13.7912L6.50867 14.6799C6.5
17814 14.7147 6.65475 14.7328 6.73242 14.7328C6.8101 14.7328 6.88671 14.7147 6.95617 14.6799L8.73242 13.7912L10.5087 14.6799C10.5781 14.7147 10.6547 14.7328 10.7324 14.7328C10.8101 14.7328 10.8867 14.7147 10.9562 14.6799L12.7324 13.7912L14.5087 14.6799C14.5849 14.7181 14.6697 14.7361 14.7549 14.7323C14.8401 14.7284 14.9228 14.7029 14.9954 14.6581C15.0679 14.6132 15.1278 14.5506 15.1692 14.4761C15.2107 14.4016 15.2325 14.3177 15.2324 14.2324V4.23242C15.2324 3.96721 15.1271 3.71285 14.9395 3.52532C14.752 3.33778 14.4976 3.23242 14.2324 3.23242ZM14.2324 13.4237L12.9562 12.7849C12.8867 12.7502 12.8101 12.7321 12.7324 12.7321C12.6547 12.7321 12.5781 12.7502 12.5087 12.7849L10.7324 13.6737L8.95617 12.7849C8.88671 12.7502 8.8101 12.7321 8.73242 12.7321C8.65475 12.7321 8.57814 12.7502 8.50867 12.7849L6.73242 13.6737L4.95617 12.7849C4.88671 12.7502 4.8101 12.7321 4.73242 12.7321C4.65475 12.7321 4.57814 12.7502 4.50867 12.7849L3.23242 13.4237V4.23242H14.2324V13.4237ZM4.50867 11.1799C4.56743 11.2093 4.63141 11.2269 4.69696 11.2316C4.76251 11.2363 4.82834 11.228 4.89068 11.2072C4.95302 11.1864 5.01066 11.1535 5.06029 11.1105C5.10992 11.0674 5.15057 11.015 5.17992 10.9562L5.54117 10.2324H7.92367L8.28492 10.9562C8.3143 11.0149 8.35498 11.0673 8.40461 11.1104C8.45425 11.1534 8.51188 11.1863 8.57421 11.2071C8.63654 11.2278 8.70235 11.2361 8.76789 11.2315C8.83343 11.2268 8.89741 11.2093 8.95617 11.1799C9.01494 11.1505 9.06734 
111.1099 9.11039 11.0602C9.15344 11.0106 9.18629 10.953 9.20707 10.8906C9.22784 10.8283 9.23614 10.7625 9.23148 10.697C9.22683 10.6314 9.20931 10.5674 9.17992 10.5087L7.17992 6.50867C7.13845 6.42547 7.07461 6.35547 6.99556 6.30655C6.91651 6.25762 6.82539 6.2317 6.73242 6.2317C6.63946 6.2317 6.54833 6.25762 6.46928 6.30655C6.39023 6.35547 6.32639 6.42547 6.28492 6.50867L4.28492 10.5087C4.2555 10.5674 4.23794 10.6314 4.23326 10.697C4.22858 10.7625 4.23687 10.8283 4.25765 10.8907C4.27843 10.953 4.3113 11.0107 4.35437 11.0603C4.39744 11.1099 4.44988 11.1506 4.50867 11.1799ZM6.73242 7.85055L7.42367 9.23242H6.04117L6.73242 7.85055ZM9.23242 8.73242C9.23242 8.59981 9.2851 8.47264 9.37887 8.37887C9.47264 8.2851 9.59981 8.23242 9.73242 8.23242H10.7324V7.23242C10.7324 7.09981 10.7851 6.97264 10.8789 6.87887C10.9726 6.7851 11.0998 6.73242 11.2324 6.73242C11.365 6.73242 11.4922 6.7851 11.586 6.87887C11.6797 6.97264 11.7324 7.09981 11.7324 7.23242V8.23242H12.7324C12.865 8.23242 12.9922 8.2851 13.086 8.37887C13.1797 8.47264 13.2324 8.59981 13.2324 8.73242C13.2324 8.86503 13.1797 8.99221 13.086 9.08598C12.9922 9.17974 12.865 9.23242 12.7324 9.23242H11.7324V10.2324C11.7324 10.365 11.6797 10.4922 11.586 10.586C11.4922 10.6797 11.365 10.7324 11.2324 10.7324C11.0998 10.7324 10.9726 10.6797 10.8789 10.586C10.7851 10.4922 10.7324 10.365 10.7324 10.2324V9.23242H9.73242C9.59981 9.23242 9.47264 9.17974 9.37887 9.08598C9.2851 8.99221 9.23242 8.86503 9.23242 8.73242Z",fill:"#573B76"})))}const x=r.forwardRef(b);t.p;var j,y,w;function N(){return N=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},N.apply(null,arguments)}function S({title:e,titleId:a,...t},l){return r.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,j||(j=r.createElement("path",{opacity:.3,d:"M10.8411 3.3335C10.6078 3.3335 10.3078 3.34016 9.95447 3.3735L12.6411 6.06016C12.7345 4.9735 12.6478 4.0135 12.5278 3.48683C12.1878 3.4135 11.6011 3.3335 10.8411 3.3335ZM3.47447 12.5135C3.81447 12.5868 4.40113 12.6668 5.16113 12.6668C5.3878 12.6668 5.6878 12.6602 6.0278 12.6335L3.35447 9.96016C3.27447 11.0402 3.35447 11.9868 3.47447 12.5135ZM5.2478 5.24683C4.39447 6.10016 3.89447 7.22683 3.61447 8.34683L7.64113 12.3735C8.7078 12.1135 9.86114 11.6335 10.7478 10.7468C11.6011 9.8935 12.1011 8.78016 12.3745 7.66016L8.34113 3.62683C7.28113 3.88683 6.13447 4.36683 5.2478 5.24683ZM10.3345 6.60016L6.60113 10.3335L5.6678 9.40016L9.40113 5.66683L10.3345 6.60016Z",fill:"#573B76"})),y||(y=r.createElement("path",{d:"M13.5412 2.46C13.3279 2.24 12.2479 2 10.8412 2C8.82119 2 6.11452 2.5 4.30786 4.30667C1.24786 7.36667 1.93452 13.0133 2.46119 13.54C2.67452 13.76 3.75452 14 5.16119 14C7.18119 14 9.88786 13.5 11.6945 11.6933C14.7545 8.63333 14.0679 2.98667 13.5412 2.46ZM5.16119 12.6667C4.40119 12.6667 3.81452 12.5867 3.47452 12.5133C3.35452 11.9867 3.27452 11.04 3.36119 9.96L6.03452 12.6333C5.68786 12.66 5.38786 12.6667 5.16119 12.6667ZM10.7545 10.7533C9.86786 11.64 8.71452 12.12 7.64786 12.38L3.62119 8.35333C3.90119 7.23333 4.39452 6.10667 5.25452 5.25333C6.13452 4.37333 7.28786 3.89333 8.34786 3.63333L12.3812 7.66667C12.1012 8.78 11.6012 9.9 10.7545 10.7533ZM12.6412 6.06L9.95452 3.37333C10.3012 3.34 10.6079 3.33333 10.8412 3.33333C11.6012 3.33333 12.1879 3.41333 12.5279 3.48667C12.6479 4.01333 12.7279 4.96667 12.6412 6.06Z",fill:"#573B76"})),w||(w=r.createElement("path",{d:"M5.66602 9.39984L9.39935 5.6665L10.3327 6.59984L6.59935 10.3332L5.66602 9.39984Z",fill:"#573B76"})))}const k=r.forwardRef(S);t.p;var P,I,E;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},A.apply(null,arguments)}function M({title:e,titleId:a,...t},l){return r.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,P||(P=r.createElement("path",{opacity:.3,className:"bg",d:"M2.66602 5.3335V12.6668H7.38602C7.35268 12.4468 7.33268 12.2268 7.33268 12.0002C7.33268 9.42016 9.41935 7.3335 11.9993 7.3335C12.466 7.3335 12.9127 7.40016 13.3327 7.52683V5.3335H2.66602Z",fill:"#573B76"})),I||(I=r.createElement("path",{d:"M2.66732 12.6668V5.3335H13.334V7.52683C13.814 7.6735 14.2673 7.88683 14.6673 8.1735V5.3335C14.6673 4.5935 14.074 4.00016 13.334 4.00016H10.6673V2.66683C10.6673 1.92683 10.074 1.3335 9.33398 1.3335H6.66732C5.92732 1.3335 5.33398 1.92683 5.33398 2.66683V4.00016H2.66732C1.92732 4.00016 1.34065 4.5935 1.34065 5.3335L1.33398 12.6668C1.33398 13.4068 1.92732 14.0002 2.66732 14.0002H7.78732C7.58732 13.5868 7.45398 13.1402 7.38732 12.6668H2.66732ZM6.66732 2.66683H9.33398V4.00016H6.66732V2.66683Z",fill:"#573B76"})),E||(E=r.createElement("path",{d:"M11.9993 8.6665C10.1593 8.6665 8.66602 10.1598 8.66602 11.9998C8.66602 13.8398 10.1593 15.3332 11.9993 15.3332C13.8393 15.3332 15.3327 13.8398 15.3327 11.9998C15.3327 10.1598 13.8393 8.6665 11.9993 8.6665ZM13.0993 13.5665L11.666 12.1332V9.99984H12.3327V11.8598L13.566 13.0932L13.0993 13.5665Z",fill:"#573B76"})))}const R=r.forwardRef(M);t.p;var L,B;function D(){return D=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},D.apply(null,arguments)}function T({title:e,titleId:a,...t},l){return r.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a}
1,e):null,L||(L=r.createElement("path",{d:"M9.47861 2.33347C9.01673 2.11423 8.51187 2.00049 8.00061 2.00049C7.48934 2.00049 6.98448 2.11423 6.52261 2.33347L2.06194 4.4248C1.34461 4.7608 1.15727 5.70947 1.50061 6.3648V9.6668C1.50061 9.79941 1.55328 9.92659 1.64705 10.0204C1.74082 10.1141 1.868 10.1668 2.00061 10.1668C2.13321 10.1668 2.26039 10.1141 2.35416 10.0204C2.44793 9.92659 2.50061 9.79941 2.50061 9.6668V7.1148L6.52261 9.00014C6.98448 9.21938 7.48934 9.33312 8.00061 9.33312C8.51187 9.33312 9.01673 9.21938 9.47861 9.00014L13.9393 6.9088C14.9099 6.45414 14.9099 4.87947 13.9393 4.4248L9.47861 2.33347Z",fill:"#573B76"})),B||(B=r.createElement("path",{opacity:.5,d:"M3.33398 7.50537L6.52265 9.00004C6.98452 9.21928 7.48939 9.33302 8.00065 9.33302C8.51192 9.33302 9.01678 9.21928 9.47865 9.00004L12.6673 7.50537V11.0834C12.6673 11.7554 12.332 12.3847 11.744 12.71C10.7647 13.2534 9.19798 14 8.00065 14C6.80332 14 5.23665 13.2527 4.25732 12.71C3.66998 12.3847 3.33398 11.7554 3.33398 11.0834V7.50537Z",fill:"#573B76"})))}const F=r.forwardRef(T);t.p;var $=t(22976),H=t(95237);const O={wrap:"Screens_wrap__0hAD0",full:"Screens_full__SOZcQ",content:"Screens_content__fyY-G",item:"Screens_item__iE-cg",block:"Screens_block__Pld79",block__title:"Screens_block__title__QzD5k",block__head:"Screens_block__head__6PXXD",container:"Screens_container__vRUMu",tabs:"Screens_tabs__W79WN",tabs__head:"Screens_tabs__head__y2UdY",tabs__btn:"Screens_tabs__btn__gVpdS",active:"Screens_active__Hv8os",disable:"Screens_disable__5Zt2w",tabs__btnText:"Screens_tabs__btnText__b3FAT",add:"Screens_add__1Gb4F",add__plus:"Screens_add__plus__C6Dxx",add__text:"Screens_add__text__ZyCPr",removeBtn:"Screens_removeBtn__GYrTc",removeBtn__text:"Screens_removeBtn__text__Cr3MN",removeBtn__icon:"Screens_removeBtn__icon__Z96iT",badge:"Screens_badge__EyTod",badge__icon:"Screens_badge__icon__DPcgL",badge__text:"Screens_badge__text__s2RMK",helperText:"Screens_helperText__74Ut+",uploadSpin:"Screens_uploadSpin__ewI0B",load__text:"Screens_load__text__xZ00Y",load__status:"Screens_load__status__b5VTz",load__info:"Screens_load__info__UENDE",load__error:"Screens_load__error__mSucj",tabContent:"Screens_tabContent__9ZFVC",skillBuilder:"Screens_skillBuilder__qNKq6",skillLabelRow:"Screens_skillLabelRow__DG0n8",skillLabel:"Screens_skillLabel__9gvQN",skillInfoBtn:"Screens_skillInfoBtn__rs0HW",skillTooltip:"Screens_skillTooltip__0X8Ar",skillInputRow:"Screens_skillInputRow__ngvhv",skillInput:"Screens_skillInput__cTpGY",skillAddBtn:"Screens_skillAddBtn__i7qVh",skillPills:"Screens_skillPills__ZRiE0",skillPill:"Screens_skillPill__HGxjR",skillRemove:"Screens_skillRemove__xtwew"},V="Info_info__RhAmp",G="Info_inner__1WX7k",U="Info_title__CpbCE",W="Info_descr__ha4Bm",Z="Info_addBtn__JWpXH",q="Info_addBtn__icon__9pqLS",Y="Info_addBtn__text__FmKku";var K=t(48212),z=t(70579);const X={personalInfo:{title:"PERSONAL INFORMATION",descr:"Here you fill the basic information and this data helps us build a foundation for you!"},academic:{title:"ACADEMIC BACKGROUND ",descr:"Your grades tell your academic story. Sharing this helps us understand your strengths."},language:{title:"LANGUAGE PROFICIENCY",descr:"Language is the key to communication. Your skills here help us suggest the right exams and tests."},scored:{title:"STANDARDISED TEST SCORED ",descr:"These scores are often a gateway to universities. Adding them shows where you already stand; and what to focus on next."},activities:{title:"EXTRACURRICULAR ACTIVITIES ",descr:"Colleges look beyond books. Highlighting your activities outside the classroom shows leadership, creativity, and passion."},experience:{title:"Work Experience",descr:"Every internship, job, or project adds real-world value. Including this highlights responsibility, initiative, and practical skills."},subjectInterests:{title:"SUBJECT INTERESTS ",descr:"Your interests shape your path. Sharing them helps us match you with courses, activities, and career options that truly excite you."}},J=({type:e,withButton:a,buttonText:t,onClick:r=()=>{}})=>{var l,n;return(0,z.jsxs)("div",{className:V,children:[(0,z.jsxs)("div",{className:G,children:[(0,z.jsx)("span",{className:U,children:null===(l=X[e])||void 0===l?void 0:l.title}),(0,z.jsx)("span",{className:W,children:null===(n=X[e])||void 0===n?void 0:n.descr})]}),a&&(0,z.jsxs)("button",{type:"button",className:Z,onClick:r,children:[(0,z.jsx)("span",{className:q,children:(0,z.jsx)(K.h,{})}),(0,z.jsx)("span",{className:Y,children:t})]})]})},Q={inner:"Form_inner__rHNZh",input:"Form_input__a8iKm",disable:"Form_disable__DYuec",readOnly:"Form_readOnly__rBMgt",inputWrap:"Form_inputWrap__N9HrL",auto:"Form_auto__G0IGY",icon:"Form_icon__SofQl",requiredMark:"Form_requiredMark__IgWmr",hasError:"Form_hasError__AKEzg",errorInput:"Form_errorInput__pnM6O",head:"Form_head__YD5wa",label:"Form_label__ecqhT",placeholder:"Form_placeholder__+rWv1",err:"Form_err__OXdlM",uploadWrap:"Form_uploadWrap__7KspF",active:"Form_active__hDk8E",upload:"Form_upload__GOhxi",uploadDrag:"Form_uploadDrag__4z3+A",upload__text:"Form_upload__text__4WHv5",upload__icon:"Form_upload__icon__6UkFW",upload__list:"Form_upload__list__1kRvG",upload__info:"Form_upload__info__FkPHH",uploadItem:"Form_uploadItem__OC4e+",bad:"Form_bad__akLqt",uploadItem__icon:"Form_uploadItem__icon__WBB5k",uploadItem__name:"Form_uploadItem__name__BeAiF",uploadItem__descr:"Form_uploadItem__descr__y+JrA",uploadItem__content:"Form_uploadItem__content__I9rP2",uploadItem__info:"Form_uploadItem__info__hwpfg",uploadItem__meta:"Form_uploadItem__meta__f7X7k",uploadItem__part:"Form_uploadItem__part__vToW-",uploadItem__right:"Form_uploadItem__right__35Gxv",uploadItem__badge:"Form_uploadItem__badge__o1xIS",uploadItem__remove:"Form_uploadItem__remove__4p0pQ",info:"Form_info__Pp3ZJ",info__title:"Form_info__title__ETA0I",info__text:"Form_info__text__Rjrr5",textarea:"Form_textarea__l3hx3",phone:"Form_phone__B6quP",switch:"Form_switch__9aXv5",switch__btn:"Form_switch__btn__pNSRD",switch__text:"Form_switch__text__it8J2"};var ee,ae=t(1118);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},te.apply(null,arguments)}function re({title:e,titleId:a,...t},l){return r.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,ee||(ee=r.createElement("path",{d:"M11.2069 4.04001L2.70281 12.565L2.1875 13.8125L3.435 13.2972L11.96 4.79313L11.2069 4.04001ZM12.9084 2.33876L12.54 2.70688L13.2931 3.46001L13.6616 3.09157C13.7582 2.99482 13.8125 2.86365 13.8125 2.72688C13.8125 2.59011 13.7582 2.45894 13.6616 2.3622L13.6381 2.33876C13.5902 2.29084 13.5333 2.25283 13.4707 2.2269C13.4081 2.20097 13.341 2.18762 13.2733 2.18762C13.2055 2.18762 13.1384 2.20097 13.0758 2.2269C13.0132 2.25283 12.9563 2.29084 12.9084 2.33876Z",stroke:"#573B76",strokeWidth:1.375,strokeLinecap:"round",strokeLinejoin:"round"})))}const le=r.forwardRef(re),ne=(t.p,({label:e,placeholder:a="",onCh
1ange:t=()=>{},disabled:l,value:n,type:s="text",error:i="",step:o=1,min:c,max:d,precision:u,isAutocomplete:_=!1,required:p=!1,readOnly:m=!1,switchTitles:h=[],onSwitchChange:v=()=>{},defaultSwitchIndex:f=0})=>{const[g,C]=(0,r.useState)(null!=n?n:"number"===s?null:""),[b,x]=(0,r.useState)(f);(0,r.useEffect)((()=>{C(null!=n?n:"number"===s?null:"")}),[n,s]),(0,r.useEffect)((()=>{x(f)}),[f]);const j=(0,r.useMemo)((()=>"number"==typeof u?0===u:Number.isInteger(o)),[u,o]),y=(0,r.useCallback)((e=>{if(["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;if(["e","E","+"].includes(e.key))return void e.preventDefault();const a=void 0===c||Number(c)<0;if("-"!==e.key||!a)if("."!==e.key&&","!==e.key)e.key>="0"&&e.key<="9"||e.preventDefault();else{var t;if(j)return void e.preventDefault();const a=e.currentTarget.querySelector("input"),r=null!==(t=null==a?void 0:a.value)&&void 0!==t?t:"";(r.includes(".")||r.includes(","))&&e.preventDefault()}}),[j,c]),w=(0,r.useCallback)((e=>{if(null==e)return"";let a=String(e);const t=void 0===c||Number(c)<0;a=a.replace(/[^\d.,-]/g,""),a=a.replace(/,/g,"."),a=t?a.replace(/(?!^)-/g,""):a.replace(/-/g,"");const r=a.indexOf(".");return-1!==r&&(a=a.slice(0,r+1)+a.slice(r+1).replace(/\./g,"")),j&&(a=a.replace(/\./g,"")),a}),[j,c]);return(0,z.jsxs)("div",{className:Q.inner,children:[e&&(0,z.jsxs)("div",{className:Q.head,children:[(0,z.jsxs)("label",{className:`${Q.label} ${l?Q.disable:""}`,children:[e,p&&(0,z.jsx)("span",{className:Q.requiredMark,"aria-hidden":"true",children:" *"})]}),h.length>0&&(0,z.jsx)("span",{className:`${Q.switch} ${l?Q.disable:""}`,role:"tablist","aria-label":"switch control",children:h.map(((e,a)=>(0,z.jsx)("button",{type:"button",className:`${Q.switch__btn} ${a===b?Q.active:""}`,onClick:()=>((e,a)=>{x(e),v({index:e,title:a})})(a,e),"aria-pressed":a===b,children:(0,z.jsx)("span",{className:Q.switch__text,children:e})},`${e}-${a}`)))})]}),(0,z.jsxs)("div",{className:`${Q.inputWrap} ${_?Q.auto:""} ${i?Q.hasError:""}`,children:["number"===s?(0,z.jsx)(ae.A,{className:`${Q.input} ${l?Q.disable:""} ${Q.inputNumberNoHandlers}`,value:g,onChange:e=>{C(e),t(e)},placeholder:a,disabled:l,step:o,min:c,max:d,precision:"number"==typeof u?u:j?0:void 0,stringMode:!1,parser:w,onKeyDown:y,onWheel:e=>e.currentTarget.blur(),inputMode:j?"numeric":"decimal"}):(0,z.jsx)("input",{className:`${Q.input} ${l?Q.disable:""} ${m?Q.readOnly:""}`,placeholder:a,type:s,value:g,onChange:e=>{const a=e.target.value;C(a),t(a)},readOnly:m,"aria-readonly":m}),_&&(0,z.jsx)("div",{className:Q.icon,children:(0,z.jsx)(le,{})})]}),i&&(0,z.jsx)("span",{className:Q.err,"data-field-error":"",children:i})]})});var se=t(2082);const ie=({title:e,value:a,options:t,handleChange:l,disabled:n,showSearch:s,onSearch:i=()=>{},placeholder:o=null,multiple:c=!1,error:d,required:u=!1,onAfterChange:_})=>{const[p,m]=(0,r.useState)(!1),[h,v]=(0,r.useState)(o);return(0,z.jsxs)("div",{className:Q.inner,children:[(0,z.jsxs)("span",{className:`${Q.label} ${n?Q.disable:""}`,children:[e,u&&(0,z.jsx)("span",{className:Q.requiredMark,"aria-hidden":"true",children:" *"})]}),(0,z.jsx)(se.A,{className:d?Q.errorInput:"",value:null!=a?a:void 0,placeholder:o,showSearch:s,searchValue:h,onSearch:e=>{v(e),null==i||i(e)},onChange:(e,a)=>{v(""),null==l||l(e,a),m(!1),null==_||_()},suffixIcon:(0,z.jsx)($.h,{}),virtual:!0,open:p,disabled:n,filterOption:!1,autoClearSearchValue:!1,bordered:!1,onDropdownVisibleChange:e=>{m(e)},onMouseDown:e=>{var a,t;p&&null!==(a=(t=e.target).closest)&&void 0!==a&&a.call(t,".ant-select-selector")&&(e.preventDefault(),e.stopPropagation(),m(!1))},mode:c?"multiple":void 0,options:t}),d&&(0,z.jsx)("span",{className:Q.err,"data-field-error":"",children:d})]})};var oe=t(29384),ce=t(93900);const de=({data:e,setData:a,error:t,onImmediateSave:l})=>{const{country:n=null}=e||{},s=(0,r.useMemo)((()=>oe.A.getAllCountries().map((e=>({label:e.name,value:e.isoCode}))).sort(((e,a)=>e.label.localeCompare(a.label)))),[]),[i,o]=(0,r.useState)(s),[c,d]=(0,r.useState)(n),u=(0,r.useMemo)((()=>new ce.A(s,{keys:["label"],threshold:.3,ignoreLocation:!0,minMatchCharLength:1,useExtendedSearch:!0})),[s]);return(0,z.jsx)(z.Fragment,{children:(0,z.jsx)(ie,{title:"Country of Residence",required:!0,options:i,value:null!=c?c:void 0,showSearch:!0,placeholder:"Type Your Country",onSearch:e=>{if(!e)return void o(s);const a=u.search(`^${e}`),t=u.search(e),r=new Set,l=[...a,...t].filter((e=>{var a;const t=null!==(a=e.item.value)&&void 0!==a?a:e.item.label;return!r.has(t)&&(r.add(t),!0)})).map((e=>e.item));o(l)},handleChange:e=>
1{const t=("string"==typeof e?e:null==e?void 0:e.value)||null;d(t),a((e=>({...e,country:t})))},onAfterChange:l,error:t})})},ue=["Afghan","Albanian","Algerian","American","Andorran","Angolan","Antiguan and Barbudan","Argentine","Armenian","Australian","Austrian","Azerbaijani","Bahamian","Bahraini","Bangladeshi","Barbadian","Belarusian","Belgian","Belizean","Beninese","Bhutanese","Bolivian","Bosnian and Herzegovinian","Botswanan","Brazilian","Bruneian","Bulgarian","Burkinabé","Burmese","Burundian","Cabo Verdean","Cambodian","Cameroonian","Canadian","Central African","Chadian","Chilean","Chinese","Colombian","Comorian","Congolese (Congo-Brazzaville)","Congolese (DRC)","Costa Rican","Croatian","Cuban","Cypriot","Czech","Danish","Djiboutian","Dominican (Dominica)","Dominican (Dominican Republic)","Dutch","East Timorese","Ecuadorian","Egyptian","Emirati","English","Equatorial Guinean","Eritrean","Estonian","Eswatini (Swazi)","Ethiopian","Fijian","Finnish","French","Gabonese","Gambian","Georgian","German","Ghanaian","Greek","Grenadian","Guatemalan","Guinean","Bissau-Guinean","Guyanese","Haitian","Honduran","Hungarian","Icelandic","Indian","Indonesian","Iranian","Iraqi","Irish","Israeli","Italian","Ivorian","Jamaican","Japanese","Jordanian","Kazakhstani","Kenyan","I-Kiribati","Kuwaiti","Kyrgyz","Lao","Latvian","Lebanese","Liberian","Libyan","Liechtensteiner","Lithuanian","Luxembourger","Malagasy","Malawian","Malaysian","Maldivian","Malian","Maltese","Marshallese","Mauritanian","Mauritian","Mexican","Micronesian","Moldovan","Monegasque","Mongolian","Montenegrin","Moroccan","Mozambican","Namibian","Nauruan","Nepalese","New Zealander","Nicaraguan","Nigerien","Nigerian","North Korean","North Macedonian","Norwegian","Omani","Pakistani","Palauan","Palestinian","Panamanian","Papua New Guinean","Paraguayan","Peruvian","Filipino","Polish","Portuguese","Qatari","Romanian","Russian","Rwandan","Kittitian and Nevisian","Saint Lucian","Saint Vincentian","Samoan","San Marinese","São Toméan","Saudi","Scottish","Senegalese","Serbian","Seychellois","Sierra Leonean","Singaporean","Slovak","Slovenian","Solomon Islander","Somali","South African","South Korean","South Sudanese","Spanish","Sri Lankan","Sudanese","Surinamese","Swedish","Swiss","Syrian","Tajik","Tanzanian","Thai","Togolese","Tongan","Trinidadian and Tobagonian","Tunisian","Turkish","Turkmen","Tuvaluan","Ugandan","Ukrainian","Uruguayan","Uzbek","Vanuatuan","Vatican","Venezuelan","Vietnamese","Welsh","Yemeni","Zambian","Zimbabwean"].map((e=>({label:e,value:e}))),_e=[{label:"A1 — Beginner",value:"A1"},{label:"A2 — Elementary",value:"A2"},{label:"B1 — Intermediate",value:"B1"},{label:"B2 — Upper-Intermediate",value:"B2"},{label:"C1 — Advanced",value:"C1"},{label:"C2 — Proficient",value:"C2"},{label:"Native / Bilingual",value:"Native"}],pe=["Technical","Research","Cultural","Business","Data"].map((e=>({label:e,value:e}))),me=[{label:"Light — 1–2 hours/week",value:"1-2_hours_week"},{label:"Moderate — 3–5 hours/week",value:"3-5_hours_week"},{label:"Intensive — 6–10 hours/week",value:"6-10_hours_week"},{label:"Sprint — short-term focused build",value:"sprint"}],he={min:400,max:1600,step:10,precision:0},ve={min:1,max:36,step:1,precision:0},fe={min:260,max:340,step:1,precision:0},ge={min:200,max:800,step:10,precision:0},Ce=[{label:"Software Engineer",value:"Software Engineer"},{label:"Frontend Developer",value:"Frontend Developer"},{label:"Backend Developer",value:"Backend Developer"},{label:"Full-Stack Developer",value:"Full-Stack Developer"},{label:"Data Scientist",value:"Data Scientist"},{label:"Data Analyst",value:"Data Analyst"},{label:"Machine Learning Engineer",value:"Machine Learning Engineer"},{label:"AI Researcher",value:"AI Researcher"},{label:"DevOps Engineer",value:"DevOps Engineer"},{label:"Cybersecurity Analyst",value:"Cybersecurity Analyst"},{label:"Cloud Architect",value:"Cloud Architect"},{label:"Blockchain Developer",value:"Blockchain Developer"},{label:"QA Engineer",value:"QA Engineer"},{label:"Embedded Systems Engineer",value:"Embedded Systems Engineer"},{label:"Network Engineer",value:"Network Engineer"},{label:"Product Manager",value:"Product Manager"},{label:"Project Manager",value:"Project Manager"},{label:"Business Analyst",value:"Business Analyst"},{label:"Operations Manager",value:"Operations Manager"},{label:"Human Resources Specialist",value:"Human Resources Specialist"},{label:"Recruiter",value:"Recruiter"},{label:"Chief Executive Officer",value:"Chief Executive Officer"},{label:"Chief Marketing Officer",value:"Chief Marketing Officer"},{label:"Entrepreneur / Founder",value:"Entrepreneur / Founder"},{label:"Financial Analyst",value:"Financial Analyst"},{label:"Investment Banker",value:"Investment Banker"},{label:"Accountant",value:"Accountant"},{label:"Auditor",value:"Auditor"},{label:"Economist",value:"Economist"},{label:"Tax Consultant",value:"Tax Consultant"},{label:"Graphic Designer",value:"Graphic Designer"}
1,{label:"UI/UX Designer",value:"UI/UX Designer"},{label:"Marketing Specialist",value:"Marketing Specialist"},{label:"Content Creator",value:"Content Creator"},{label:"Copywriter",value:"Copywriter"},{label:"Social Media Manager",value:"Social Media Manager"},{label:"SEO Specialist",value:"SEO Specialist"},{label:"Art Director",value:"Art Director"},{label:"Video Editor",value:"Video Editor"},{label:"Doctor",value:"Doctor"},{label:"Nurse",value:"Nurse"},{label:"Pharmacist",value:"Pharmacist"},{label:"Dentist",value:"Dentist"},{label:"Psychologist",value:"Psychologist"},{label:"Medical Researcher",value:"Medical Researcher"},{label:"Physiotherapist",value:"Physiotherapist"},{label:"Teacher",value:"Teacher"},{label:"University Lecturer",value:"University Lecturer"},{label:"Research Assistant",value:"Research Assistant"},{label:"Academic Researcher",value:"Academic Researcher"},{label:"Educational Consultant",value:"Educational Consultant"},{label:"Lawyer",value:"Lawyer"},{label:"Judge",value:"Judge"},{label:"Legal Assistant",value:"Legal Assistant"},{label:"Police Officer",value:"Police Officer"},{label:"Government Officer",value:"Government Officer"},{label:"Diplomat",value:"Diplomat"},{label:"Mechanical Engineer",value:"Mechanical Engineer"},{label:"Civil Engineer",value:"Civil Engineer"},{label:"Electrical Engineer",value:"Electrical Engineer"},{label:"Chemical Engineer",value:"Chemical Engineer"},{label:"Biologist",value:"Biologist"},{label:"Chemist",value:"Chemist"},{label:"Physicist",value:"Physicist"},{label:"Environmental Scientist",value:"Environmental Scientist"},{label:"Chef",value:"Chef"},{label:"Hotel Manager",value:"Hotel Manager"},{label:"Flight Attendant",value:"Flight Attendant"},{label:"Travel Agent",value:"Travel Agent"},{label:"Customer Support Specialist",value:"Customer Support Specialist"},{label:"Actor",value:"Actor"},{label:"Musician",value:"Musician"},{label:"Photographer",value:"Photographer"},{label:"Journalist",value:"Journalist"},{label:"Writer",value:"Writer"},{label:"Electrician",value:"Electrician"},{label:"Plumber",value:"Plumber"},{label:"Mechanic",value:"Mechanic"},{label:"Construction Worker",value:"Construction Worker"},{label:"Welder",value:"Welder"},{label:"Volunteer",value:"Volunteer"},{label:"Freelancer",value:"Freelancer"},{label:"Unemployed / Looking for opportunities",value:"Unemployed"}],be=[{label:"Computer Science",value:"Computer Science"},{label:"Software Engineering",value:"Software Engineering"},{label:"Data Science",value:"Data Science"},{label:"Artificial Intelligence",value:"Artificial Intelligence"},{label:"Cybersecurity",value:"Cybersecurity"},{label:"Information Technology",value:"Information Technology"},{label:"Machine Learning",value:"Machine Learning"},{label:"Game Development",value:"Game Development"},{label:"Robotics",value:"Robotics"},{label:"Mechanical Engineering",value:"Mechanical Engineering"},{label:"Civil Engineering",value:"Civil Engineering"},{label:"Electrical Engineering",value:"Electrical Engineering"},{label:"Electronics & Communication Engineering",value:"Electronics & Communication Engineering"},{label:"Chemical Engineering",value:"Chemical Engineering"},{label:"Biomedical Engineering",value:"Biomedical Engineering"},{label:"Aerospace Engineering",value:"Aerospace Engineering"},{label:"Petroleum Engineering",value:"Petroleum Engineering"},{label:"Industrial Engineering",value:"Industrial Engineering"},{label:"Mechatronics Engineering",value:"Mechatronics Engineering"},{label:"Material Science & Engineering",value:"Material Science & Engineering"},{label:"Environmental Engineering",value:"Environmental Engineering"},{label:"Business Administration (BBA)",value:"Business Administration"},{label:"Finance",value:"Finance"},{label:"Accounting",value:"Accounting"},{label:"Economics",value:"Economics"},{label:"Marketing",value:"Marketing"},{label:"Supply Chain Management",value:"Supply Chain Management"},{label:"Human Resources",value:"Human Resources"},{label:"Entrepreneurship",value:"Entrepreneurship"},{label:"International Business",value:"International Business"},{label:"Management Information Systems",value:"Management Information Systems"},{label:"Psychology",value:"Psychology"},{label:"Sociology",value:"Sociology"},{label:"Anthropology",value:"Anthropology"},{label:"Political Science",value:"Political Science"},{label:"International Relations",value:"International Relations"},{label:"Criminology",value:"Criminology"},{label:"Public Policy",value:"Public Policy"},{label:"Biology",value:"Biology"},{label:"Biochemistry",value:"Biochemistry"},{label:"Chemistry",value:"Chemistry"},{label:"Physics",value:"Physics"},{label:"Mathematics",value:"Mathematics"},{label:"Statistics",value:"Statistics"},{label:"Geology",value:"Geology"}
1,{label:"Environmental Science",value:"Environmental Science"},{label:"Astronomy",value:"Astronomy"},{label:"Medicine / Pre-Med",value:"Medicine"},{label:"Dentistry",value:"Dentistry"},{label:"Nursing",value:"Nursing"},{label:"Pharmacy",value:"Pharmacy"},{label:"Public Health",value:"Public Health"},{label:"Nutrition & Dietetics",value:"Nutrition"},{label:"Veterinary Science",value:"Veterinary Science"},{label:"Architecture",value:"Architecture"},{label:"Design (UX/UI/Product)",value:"Design"},{label:"Fine Arts",value:"Fine Arts"},{label:"Graphic Design",value:"Graphic Design"},{label:"Fashion Design",value:"Fashion Design"},{label:"Film & Media Studies",value:"Film & Media Studies"},{label:"Music",value:"Music"},{label:"Theatre / Performing Arts",value:"Performing Arts"},{label:"English Literature",value:"English Literature"},{label:"History",value:"History"},{label:"Philosophy",value:"Philosophy"},{label:"Linguistics",value:"Linguistics"},{label:"Education",value:"Education"},{label:"Early Childhood Education",value:"Early Childhood Education"},{label:"Agricultural Science",value:"Agricultural Science"},{label:"Food Science",value:"Food Science"},{label:"Forestry",value:"Forestry"},{label:"Hospitality & Tourism",value:"Hospitality & Tourism"},{label:"Law / Pre-Law",value:"Law"}],xe=[{label:"CBSE (India)",value:"CBSE"},{label:"ICSE / ISC (India)",value:"ICSE"},{label:"State Board (India)",value:"State Board"},{label:"Cambridge IGCSE / O Levels",value:"IGCSE"},{label:"Cambridge International A Levels",value:"A Levels"},{label:"IB Middle Years Programme (MYP)",value:"IB MYP"},{label:"IB Diploma Programme (DP)",value:"IB DP"},{label:"American High School Diploma",value:"US High School Diploma"},{label:"GED",value:"GED"},{label:"Arabic National Curriculum",value:"Arabic National Curriculum"},{label:"Other",value:"Other"}],je={US:["US High School Diploma","GED"],GB:["IGCSE","A Levels"],CA:["IB DP","A Levels","US High School Diploma"],AU:["IGCSE","A Levels","IB DP"],NZ:["IGCSE","A Levels","IB DP"],IE:["IGCSE","A Levels","IB DP"],DE:["IB DP","A Levels"],SG:["IGCSE","A Levels","IB DP"],MY:["IGCSE","A Levels","IB DP"],ID:["IGCSE","A Levels","IB DP"],VN:["IGCSE","A Levels","IB DP"],AE:["Arabic National Curriculum","IGCSE","A Levels","IB DP","US High School Diploma"],SA:["Arabic National Curriculum","IGCSE","A Levels","IB DP","US High School Diploma"],JP:["IB DP","A Levels","IGCSE"],KR:["IB DP","A Levels","IGCSE"],IN:["CBSE","ICSE","State Board","IGCSE","A Levels","IB DP"]},ye=e=>{const a=(e=>{if(!e)return"";const a=String(e).trim();return({USA:"US",UK:"GB","United Kingdom":"GB","Saudi Arabia":"SA","United Arab Emirates":"AE"}[a]||a).toUpperCase()})(e),t=je[a];if(null==t||!t.length)return xe;const r=new Map(xe.map((e=>[e.value,e]))),l=new Set(t);return[...t.map((e=>r.get(e))).filter(Boolean),...xe.filter((e=>!l.has(e.value)))]},we=[{value:"gap_year",label:"High School Graduated (Gap Year)"},{value:"bachelor_year_1",label:"Bachelor's – 1st Year (Freshman)"},{value:"bachelor_year_2",label:"Bachelor's – 2nd Year (Sophomore)"},{value:"bachelor_year_3",label:"Bachelor's – 3rd Year (Junior)"},{value:"bachelor_year_4",label:"Bachelor's – 4th Year (Senior)"},{value:"bachelor_completed",label:"Bachelor's Degree Completed"},{value:"masters_year_1",label:"Master's – 1st Year"},{value:"masters_year_2",label:"Master's – 2nd Year"},{value:"masters_completed",label:"Master's Degree Completed"},{value:"phd_ongoing",label:"PhD / Doctorate (In Progress)"},{value:"phd_completed",label:"PhD / Doctorate (Completed)"}],Ne={uk:{grade_9:"Year 10 (IGCSE 1)",grade_10:"Year 11 (IGCSE 2)",grade_11:"Year 12 (AS Level / Lower 6th)",grade_12:"Year 13 (A Level / Upper 6th)",foundation:"Foundation Year"},ib:{grade_9:"IB MYP Year 4",grade_10:"IB MYP Year 5",grade_11:"IB DP Year 1",grade_12:"IB DP Year 2",foundation:"IB CP / Foundation"},us:{grade_9:"9th Grade (Freshman)",grade_10:"10th Grade (Sophomore)",grade_11:"11th Grade (Junior)",grade_12:"12th Grade (Senior)",foundation:"Pre-College Program"},india:{grade_9:"Class 9",grade_10:"Class 10",grade_11:"Class 11",grade_12:"Class 12",foundation:"Foundation / Repeater"},default:{grade_9:"Grade 9",grade_10:"Grade 10",grade_11:"Grade 11",grade_12:"Grade 12",foundation:"Foundation Year"}},Se=["bachelor_","masters_","phd_"],ke=[{label:"9–1 scale",options:["9","8","7","6","5","4","3","2","1"].map((e=>({value:e,label:e})))},{label:"A*–G scale",options:["A*","A","B","C","D","E","F","G","U"].map((e=>({value:e,label:e})))}],Pe=["A*","A","B","C","D","E","U"].map((e=>({value:e,label:e}))),Ie=["7","6","5","4","3","2","1"].map((e=>({value:e,label:e}))),Ee=Array.from({length:45},((e,a)=>{const t=String(45-a);return{value:t,label:`${t} / 45`}})),Ae=({educationLevel:e,schoolClass:a}={})=>{const t=String(a||"").toLowerCase();if((e=>{const a=String(e||"").toLowerCase();return Se.some((e=>a.startsWith(e)))||"phd_ongoing"===a})(a))return{kind:"number",label:"Current GPA",placeholder:"e.g. 3.7",step:.01,precision:2,min:0,max:10};switch(e){case"IGCSE":return"grade_11"===t||"grade_12"===t?{kind:"dropdown",label:"Current AS / A Level Grade",placeholder:"Select grade",options:Pe}:{kind:"dropdown",label:"Current IGCSE / O Level Grade",placeholder:"Select grade",options:ke};case"A Levels":return{kind:"dropdown",label:"Current AS / A Level Grade",placeholder:"Select grade",options:Pe};case"IB MYP":return"grade_11"===t||"grade_12"===t?{kind:"dropdown",label:"Current IB DP Score",placeholder:"Select total score",options:Ee}:{kind:"dropdown",label:"Current IB MYP Grade",placeholder:"Select grade",options:Ie};case"IB DP":return{kind:"dropdown",label:"Current IB DP Score",placeholder:"Select total score",options:Ee};case"US High School Diploma":return{kind:"number",label:"Current GPA",placeholder:"e.g. 3.8",step:.01,precision:2,min:0,max:5};case"GED":return{kind:"number",label:"Current GED Score",placeholder:"e.g. 165",step:1,precision:0,min:100,max:200};case"Other":return{kind:"text",label:"Current GPA / Grades",placeholder:"e.g. 92%, A, 3.8 GPA"};default:return{kind:"number",label:"Current Percentage / CGPA",placeholder:"e.g. 92 or 9.4",step:.1,precision:1,min:0,max:100}}},Me=({data:e,setData:a,error:t,onImmediateSave:l})=>{const{nationality:n=null}=e||{},s=ue,[i,o]=(0,r.useState)(n),[c,d]=(0,r.useState)(s),u=(0,r.useMemo)((()=>new ce.A(s,{keys:["label"],threshold:.3,ignoreLocation:!0,minMatchCharLength:1,useExtendedSearch:!0})),[s]);return(0,z.jsx)(ie,{title:"Nationality",required:!0,options:c,value:null!=i?i:void 0,showSearch:!0,placeholder:"Type Your Nationality",onSearch:e=>{if(!e)return void d(s);const a=u.search(`^${e}`),t=u.search(e),r=new Set,l=[...a,...t].filter((e=>{var a;const t=null!==(a=e.item.value)&&void 0!==a?a:e.item.label;return!r.has(t)&&(r.add(t),!0)})).map((e=>e.item));d(l)},handleChange:e=>{const t=e||null;o(t),a((e=>({...e,nationality:t})))},onAfterChange:l,error:t})};var Re=t(57871),Le=t(84138),Be=t(22794);const De=({label:e,error:a,value:t,onChange:l,placeholder:n,phoneCountry:s,disabled:i,isAutocomplete:o,required:c=!1})=>{const d=(0,r.useMemo)((()=>s||(e=>{if(!e||"+"!==e[0])return;const a=(0,Be.l)(e);return a&&a.country?a.country:void 0})(t)||"IN"),[s,t]),[u,_]=(0,r.useState)(d);(0,r.useEffect)((()=>_(d)),[d]);const p=(0,r.useMemo)((()=>({width:"115px",flex:"none",padding:"11px 20px 11px 11px",borderRadius:"1px",borderRight:"1px solid rgba(221, 216, 228, 0.67)",backgroundColor:"rgba(87, 59, 118, 0.04)",color:"#573B76",fontFamily:"Inter",fontSize:"14px",fontWeight:600,lineHeight:"1.4"})),[]);return(0,z.jsxs)("div",{className:Q.inner,children:[(0,z.jsxs)("span",{className:Q.label,children:[e,c&&(0,z.jsx)("span",{className:Q.requiredMark,"aria-hidden":"true",children:" *"})]}),(0,z.jsxs)("div",{className:`${Q.phone} ${a?Q.hasError:""}`,children:[(0,z.jsx)("div",{className:`${Q.phone__select}`,children:(0,z.jsx)(Re.A,{phoneE164:t,value:u,onChange:_,withFlag:!0,defaultCountry:"IN",headerStyle:p,disabled:i,handleCountryChange:e=>{_(e)}})}),(0,z.jsxs)("div",{className:`${Q.inputWrap} ${o?Q.auto:""}
1`,children:[(0,z.jsx)(Le.Ay,{countryCallingCodeEditable:!1,className:Q.input,placeholder:n,country:u,value:t,onChange:e=>l(e),inputMode:"tel",disabled:i}),o&&(0,z.jsx)("div",{className:Q.icon,children:(0,z.jsx)(le,{})})]})]}),a&&(0,z.jsx)("span",{className:Q.err,"data-field-error":"",children:a})]})},Te=r.memo(De,((e,a)=>e.value===a.value&&e.phoneCountry===a.phoneCountry&&e.disabled===a.disabled&&e.isAutocomplete===a.isAutocomplete&&e.required===a.required&&e.error===a.error&&e.label===a.label&&e.placeholder===a.placeholder));var Fe=t(31899),$e=t.n(Fe),He=t(86178),Oe=t.n(He);const Ve=e=>{if(!e)return null;const a=Oe()(e,["YYYY-MM-DD",Oe().ISO_8601,"MM/DD/YYYY"],!0);return a.isValid()?a.toDate():null},Ge=({label:e="Date of Birth",placeholder:a="MM/DD/YYYY",value:t,onChange:l,name:n="dob",disabled:s=!1,error:i,minDate:o,maxDate:c,openToDate:d,required:u=!1})=>{const _=(0,r.useMemo)((()=>Ve(t)),[t]),p=(0,r.useMemo)((()=>"string"==typeof o?Ve(o):o||null),[o]),m=(0,r.useMemo)((()=>"string"==typeof c?Ve(c):c||null),[c]),h=(0,r.useMemo)((()=>d?Ve(d):_||new Date(1995,0,1)),[d,_]),[v,f]=(0,r.useState)("day");(0,r.useEffect)((()=>{_||f("year")}),[_]);const[g,C]=(0,r.useState)(_||h);(0,r.useEffect)((()=>{C(_||h)}),[_,h]);const b={year:{showYearPicker:!0},month:{showMonthYearPicker:!0},day:{}}[v];return(0,z.jsxs)("div",{className:Q.inner,children:[(0,z.jsxs)("span",{className:Q.label,children:[e,u&&(0,z.jsx)("span",{className:Q.requiredMark,"aria-hidden":"true",children:" *"})]}),(0,z.jsx)("div",{className:`${Q.inputWrap} ${i?Q.hasError:""}`,children:(0,z.jsx)($e(),{selected:_,onChange:e=>{if("year"===v){const a=new Date(e.getFullYear(),g?g.getMonth():0,1);return C(a),void f("month")}if("month"===v){const a=new Date(g?g.getFullYear():e.getFullYear(),e.getMonth(),1);return C(a),void f("day")}var a;l&&l((a=e)?Oe()(a).format("YYYY-MM-DD"):"",n)},placeholderText:a,dateFormat:"MM/dd/yyyy",minDate:p,maxDate:m,disabled:s,shouldCloseOnSelect:"day"===v,openToDate:g||h,customInput:(0,z.jsx)("input",{className:Q.input,inputMode:"numeric",readOnly:!0}),...b,renderCustomHeader:({date:e,decreaseMonth:a,increaseMonth:t,decreaseYear:r,increaseYear:l,prevMonthButtonDisabled:n,nextMonthButtonDisabled:s,prevYearButtonDisabled:i,nextYearButtonDisabled:o})=>{const c=Oe()(e).format("MMMM"),d=Oe()(e).format("YYYY"),u="day"===v?n:i,_="day"===v?s:o;return(0,z.jsxs)("div",{className:"rdp-header",style:{display:"flex",alignItems:"center",gap:8,padding:8},children:[(0,z.jsx)("button",{type:"button",onClick:()=>"day"===v?a():r(),disabled:u,"aria-label":"Prev",className:"rdp-nav",children:"<"}),(0,z.jsxs)("div",{className:"rdp-title",onClick:()=>{"day"===v?f("month"):"month"===v&&f("year")},style:{cursor:"pointer",flex:1,textAlign:"center",fontWeight:600},title:"day"===v?"Switch to month view":"month"===v?"Switch to year view":"",children:["day"===v&&(0,z.jsxs)(z.Fragment,{children:[c," ",d]}),"month"===v&&(0,z.jsx)(z.Fragment,{children:d}),"year"===v&&(0,z.jsx)(z.Fragment,{children:"Select year"})]}),(0,z.jsx)("button",{type:"button",onClick:()=>"day"===v?t():l(),disabled:_,"aria-label":"Next",className:"rdp-nav",children:">"})]})}})}),i&&(0,z.jsx)("span",{className:Q.err,"data-field-error":"",children:i})]})},Ue=({data:e,setData:a,errors:t,loadingDetails:r,onImmediateSave:l})=>{const{name:n="",phone:s="",email:i="",dateOfBirth:o="",isDefaultName:c=!1,isDefaultPhone:d=!1,schoolName:u=""}=e||{},{name:_=null,email:p=null,phone:m=null,nationality:h=null,country:v=null,dateOfBirth:f,schoolName:g=null}=t||{},C=e=>{a((a=>({...a,...e})))};return(0,z.jsxs)("div",{className:O.wrap,children:[(0,z.jsx)(J,{type:"personalInfo"}),(0,z.jsxs)("div",{className:O.content,children:[(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{placeholder:"John Doe",label:"Full Name",required:!0,onChange:e=>C({name:e,isDefaultName:!1}),disabled:r,value:n,error:_,isAutocomplete:c})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(Ge,{label:"Date of Birth",required:!0,value:o,error:f,onChange:e=>C({dateOfBirth:e})})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{placeholder:"[email protected]",label:"Email Address",required:!0,disabled:r,readOnly:!0,value:i,error:p})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(Te,{placeholder:"+91 12345 67890",label:"Phone Number",required:!0,onChange:e=>C({phone:e,isDefaultPhone:!1}),value:s,disabled:r,isAutocomplete:d,error:m,phoneCountry:""})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(Me,{data:e,setData:a,error:h,onImmediateSave:l})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{placeholder:"Enter your school name",label:"School Name",required:!0,onChange:e=>C({schoolName:e}),disabled:r,value:u,error:g})}),(0,z.jsx)("div",{className:`${O.item} ${O.full}`,children:(0,z.jsx)(de,{data:e,setData:a,error:v,onImmediateSave:l})})]})]})};var We=t(10608);const Ze=({data:e,setData:a,error:t,onImmediateSave:l})=>{const{educationLevel:n=null,country:s=""}=e||{},i=(0,r.useMemo)((()=>ye(s)),[s]),[o,c]=(0,r.useState)(i),[d,u]=(0,r.useState)(n||null);(0,r.useEffect)((()=>{u(n||null)}),[n]);const _=(0,r.useMemo)((()=>new ce.A(i,{keys:["label"],threshold:.3,ignoreLocation:!0,minMatchCharLength:1,useExtendedSearch:!0})),[i]);return(0,z.jsx)(ie,{title:"High School Curriculum",required:!0,options:o,value:null!=d?d:void 0,showSearch:!0,placeholder:"e.g. CBSE",onSearch:e=>{if(!e)return void c(i);const a=_.search(`^${e}`),t=_.search(e),r=new Set,l=[...a,...t].filter((e=>{var a;const t=null!==(a=e.item.value)&&void 0!==a?a:e.item.label;return!r.has(t)&&(r.add(t),!0)})).map((e=>e.item));c(l)},handleChange:e=>{const t=e||null;u(t),null==a||a((e=>({...e,educationLevel:t,schoolClass:null,grades:null})))},onAfterChange:l,error:t})};var qe,Ye,Ke;function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ze.apply(null,arguments)}function Xe({title:e,titleId:a,...t},l){return r.createElement("svg",ze({xmlns:"http://www.w3.org/2000/svg",width:51,height:51,viewBox:"0 0 51 51",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,qe||(qe=r.createElement("path",{d:"M25.5 23.375L34 31.875H28.6875V38.25H22.3125V31.875H17L25.5 23.375Z",fill:"#573B76"})),Ye||(Ye=r.createElement("path",{d:"M28.6875 6.375L40.375 18.0625V42.5C40.375 43.6688 39.4188 44.625 38.25 44.625H12.75C11.5812 44.625 10.625 43.6688 10.625 42.5V8.5C10.625 7.33125 11.5812 6.375 12.75 6.375H28.6875Z",fill:"#B09CC4",fillOpacity:.36,stroke:"#573B76",strokeWidth:4.25,strokeLinecap:"round",strokeLinejoin:"round"})),Ke||(Ke=r.createElement("path",{d:"M30.8125 7.4375V17H40.375L30.8125 7.4375Z",stroke:"#573B76",strokeWidth:4.25,strokeLinecap:"round",strokeLinejoin:"round"})))}const Je=r.forwardRef(Xe);t.p;var Qe,ea=t(49084);function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},aa.apply(null,arguments)}function ta({title:e,titleId:a,...t},l){return r.createElement("svg",aa({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Qe||(Qe=r.createElement("path",{d:"M10 5H14C14 4.46957 13.7893 3.96086 13.4142 3.58579C13.0391 3.21071 12.5304 3 12 3C11.4696 3 10.9609 3.21071 10.5858 3.58579C10.2107 3.96086 10 4.46957 10 5ZM8.5 5C8.5 4.54037 8.59053 4.08525 8.76642 3.66061C8.94231 3.23597 9.20012 2.85013 9.52513 2.52513C9.85013 2.20012 10.236 1.94231 10.6606 1.76642C11.0852 1.59053 11.5404 1.5 12 1.5C12.4596 1.5 12.9148 1.59053 13.3394 1.76642C13.764 1.94231 14.1499 2.20012 14.4749 2.52513C14.7999 2.85013 15.0577 3.23597 15.2336 3.66061C15.4095 4.08525 15.5 4.54037 15.5 5H21.25C21.4489 5 21.6397 5.07902 21.7803 5.21967C21.921 5.36032 22 5.55109 22 5.75C22 5.94891 21.921 6.13968 21.7803 6.28033C21.6397 6.42098 21.4489 6.5 21.25 6.5H19.93L18.76 18.611C18.6702 19.539 18.238 20.4002 17.5477 21.0268C16.8573 21.6534 15.9583 22.0004 15.026 22H8.974C8.04186 22.0001 7.1431 21.653 6.45295 21.0265C5.7628 20.3999 5.33073 19.5388 5.241 18.611L4.07 6.5H2.75C2.55109 6.5 2.36032 6.42098 2.21967 6.28033C2.07902 6.13968 2 5.94891 2 5.75C2 5.55109 2.07902 5.36032 2.21967 5.21967C2.36032 5.07902 2.55109 5 2.75 5H8.5ZM10.5 9.75C10.5 9.55109 10.421 9.36032 10.2803 9.21967C10.1397 9.07902 9.94891 9 9.75 9C9.55109 9 9.36032 9.07902 9.21967 9.21967C9.07902 9.36032 9 9.55109 9 9.75V17.25C9 17.4489 9.07902 17.6397 9.21967 17.7803C9.36032 17.921 9.55109 18 9.75 18C9.94891 18 10.1397 17.921 10.2803 17.7803C10.421 17.6397 10.5 17.4489 10.5 17.25V9.75ZM14.25 9C14.4489 9 14.6397 9.07902 14.7803 9.21967C14.921 9.36032 15 9.55109 15 9.75V17.25C15 17.4489 14.921 17.6397 14.7803 17.7803C14.6397 17.921 14.4489 18 14.25 18C14.0511 18 13.8603 17.921 13.7197 17.7803C13.579 17.6397 13.5 17.4489 13.5 17.25V9.75C13.5 9.55109 13.579 9.36032 13.7197 9.21967C13.8603 9.07902 14.0511 9 14.25 9ZM6.734 18.467C6.78794 19.0236 7.04724 19.5403 7.46137 19.9161C7.87549 20.292 8.41475 20.5001 8.974 20.5H15.026C15.5853 20.5001 16.1245 20.292 
116.5386 19.9161C16.9528 19.5403 17.2121 19.0236 17.266 18.467L18.424 6.5H5.576L6.734 18.467Z",fill:"#D12B32"})))}const ra=r.forwardRef(ta);t.p;var la,na;function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},sa.apply(null,arguments)}function ia({title:e,titleId:a,...t},l){return r.createElement("svg",sa({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,la||(la=r.createElement("path",{d:"M19.9331 13.041C19.7442 14.481 19.167 15.8424 18.2632 16.9792C17.3595 18.116 16.1633 18.9854 14.803 19.4941C13.4427 20.0027 11.9696 20.1315 10.5417 19.8666C9.1138 19.6017 7.78492 18.9531 6.69761 17.9904C5.6103 17.0276 4.80557 15.787 4.36973 14.4017C3.93389 13.0164 3.88338 11.5385 4.22362 10.1266C4.56385 8.71476 5.282 7.42214 6.30104 6.3874C7.32007 5.35266 8.60156 4.61483 10.0081 4.25304C13.9071 3.25304 17.9431 5.26004 19.4331 9.00004",stroke:"#D12B32",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),na||(na=r.createElement("path",{d:"M20 4V9H15",stroke:"#D12B32",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const oa=r.forwardRef(ia),ca=(t.p,["pdf","doc","docx","zip"]);function da(e=""){const a=e.toLowerCase().match(/\.([a-z0-9]+)$/);return a?a[1]:""}function ua(e){if(0===e||null==e)return"0 MB";const a=Math.floor(Math.log(e)/Math.log(1024)),t=e/Math.pow(1024,a);return`${a<2?t.toFixed(0):t.toFixed(1)} ${["B","KB","MB","GB","TB"][a]}`}function _a(e,a){var t;const r=Number(null!==(t=null==e?void 0:e.size)&&void 0!==t?t:0),l=da((null==e?void 0:e.name)||"");return ca.includes(l)?0===r?{status:"failed",reason:"Upload Unsuccessful"}:a&&r>a?{status:"too_big",reason:"File is larger than 20 MB"}:{status:"success"}:{status:"invalid_type",reason:"Only .doc, .docx, .pdf, .zip allowed"}}const pa=({label:e,placeholder:a="Click and upload or drag and drop your file.",multiple:t=!1,accept:l=".pdf,.doc,.docx,.zip",maxSizeMB:n=20,disabled:s=!1,defaultFiles:i=[],onFilesChange:o,name:c,error:d=""})=>{const u=(0,H.useMediaQuery)({query:"(max-width: 767px)"}),_=(0,r.useRef)(null),p=(0,r.useRef)(null),m=(0,r.useRef)(null),h=(0,r.useRef)(!0),v=(0,r.useRef)(!1),[f,g]=(0,r.useState)(!1),[C,b]=(0,r.useState)([]),x=n?1024*n*1024:null;(0,r.useEffect)((()=>{if(null==i||!i.length)return;if(v.current)return;v.current=!0;const e=i.map(((e,a)=>{var t,r;const l=null!==(t=e.name)&&void 0!==t?t:`File ${a+1}`,n=Number(null!==(r=e.size)&&void 0!==r?r:0),s=da(l),{status:i,reason:o}=_a(e,x);return{id:`${Date.now()}-${a}`,name:l,size:n,ext:s,status:i,reason:o,file:e}}));b(e)}),[i,x]),(0,r.useEffect)((()=>{if(h.current)return void(h.current=!1);const e=C.filter((e=>"success"===e.status)).map((e=>e.file)).filter(Boolean);null==o||o(e)}),[C]);const j=()=>{var e;return!s&&(null===(e=_.current)||void 0===e?void 0:e.click())},y=(e,a="append")=>{const r=Array.from(e||[]).map(((e,a)=>{var t,r;const{status:l,reason:n}=_a(e,x),s=null!==(t=e.name)&&void 0!==t?t:`File ${a+1}`;return{id:`${Date.now()}-${Math.random().toString(16).slice(2)}`,name:s,size:Number(null!==(r=e.size)&&void 0!==r?r:0),ext:da(s),status:l,reason:n,file:e}}));b((e=>t?"replaceOne"===a?r:[...e,...r]:r.slice(0,1)))},w=e=>{e.preventDefault(),e.stopPropagation()},N=(e,a)=>{const t=ua(e.size);return"success"===e.status?["Upload Successful",t]:"too_big"===e.status?["Upload Unsuccessful",t,`File is larger than ${a} MB`]:"invalid_type"===e.status?["Upload Unsuccessful",t,"Only .doc, .docx, .pdf, .zip allowed"]:["Upload Unsuccessful","0 MB","Try again"]};return(0,z.jsxs)("div",{className:`${Q.inner}`,children:[e&&(0,z.jsx)("span",{className:`${Q.label} ${s?Q.disable:""}`,children:e}),(0,z.jsxs)("div",{className:`${Q.uploadWrap}  ${null!=C&&C.length?Q.active:""}`,children:[(0,z.jsxs)("div",{className:`${Q.upload} ${f?Q.uploadDrag:""} ${s?Q.disable:""}`,role:"button",tabIndex:0,"aria-label":a,onClick:j,onKeyDown:e=>("Enter"===e.key||" "===e.key)&&j(),onDragEnter:e=>{w(e),s||g(!0)},onDragOver:e=>{w(e)},onDragLeave:e=>{w(e),g(!1)},onDrop:e=>{w(e),s||(g(!1),y(e.dataTransfer.files,"append"))},children:[(0,z.jsx)(Je,{className:Q.upload__icon}),(0,z.jsx)("p",{className:Q.upload__text,children:a}),!(null==C||!C.length)&&!u&&(0,z.jsxs)("p",{className:Q.upload__text,children:["Max. file size: ",n,"MB allowed"]}),(0,z.jsx)("input",{ref:_,name:c,type:"file",multiple:t,accept:l,disabled:s,onChange:e=>{y(e.target.files,"append"),e.target.value=""},style:{display:"none"}}),(0,z.jsx)("input",{ref:p,type:"file",accept:l,disabled:s,onChange:e=>{var a;const t=Array.from(e.target.files||[])[0];if(e.target.value="",!t)return;const{status:r,reason:l}=_a(t,x),n=t.name,s={id:`${Date.now()}-${Math.random().toString(16).slice(2)}`,name:n,size:Number(null!==(a=t.size)&&void 0!==a?a:0),ext:da(n),status:r,reason:l,file:t};b((e=>{const a=m.current;if(m.current=null,null==a||a<0||a>=e.length)return e;const t=[...e];return t[a]=s,t}))},style:{display:"none"}}),d&&(0,z.jsx)("span",{className:Q.err,"data-field-error":"",children:d})]}),!!C.length&&(0,z.jsxs)("div",{className:`${Q.upload__info} ${s?Q.disable:""}`,children:[(0,z.jsxs)("div",{className:Q.info,children:[(0,z.jsx)("span",{className:Q.info__title,children:"Uploaded Documents"}),!u&&(0,z.jsx)("span",{className:Q.info__text,children:"Only support .doc and .pdf and zip files"})]}),(0,z.jsx)("ul",{className:Q.upload__list,children:C.map(((e,a)=>{const t="success"===e.status;return(0,z.jsxs)("li",{className:`${Q.uploadItem} ${t?"":Q.bad}`,"aria-live":"polite",children:[(0,z.jsxs)("div",{className:Q.uploadItem__descr,children:[!u&&(0,z.jsx)("div",{className:Q.uploadItem__icon,children:(0,z.jsx)(ea.h,{})}),(0,z.jsxs)("div",{className:Q.uploadItem__content,children:[(0,z.jsxs)("div",{className:Q.uploadItem__info,children:[u&&(0,z.jsx)("div",{className:Q.uploadItem__icon,children:(0,z.jsx)(ea.h,{})}),(0,z.jsx)("span",{className:Q.uploadItem__name,children:e.name})]}),(0,z.jsx)("div",{className:Q.uploadItem__meta,children:N(e,n).map(((e,a)=>(0,z.jsx)("span",{className:Q.uploadItem__part,children:e},a)))})]})]}),(0,z.jsxs)("div",{className:Q.uploadItem__right,children:[(0,z.jsx)("div",{className:Q.uploadItem__badge,children:(0,z.jsx)("span",{children:(r=e.ext,"pdf"===r?"PDF":"doc"===r||"docx"===r?"DOC":"zip"===r?"ZIP":(null==r?void 0:r.toUpperCase())||"FILE")})}),!t&&(0,z.jsx)("button",{type:"button",className:Q.uploadItem__remove,onClick:()=>{return e=a,void(s||(m.current=e,null===(t=p.current)||void 0===t||t.click()));var e,t},children:(0,z.jsx)(oa,{})}),(0,z.jsx)("button",{type:"button",className:Q.uploadItem__remove,onClick:()=>{return e=a,b((a=>a.filter(((a,t)=>t!==e))));var e},children:(0,z.jsx)(ra,{})})]})]},e.id);var r}))}),u&&(0,z.jsx)("span",{className:Q.info__text,children:"Only support .doc and .pdf and zip files"})]})]})]})}
1,ma=({label:e,onChange:a=()=>{},value:t,placeholder:l="",error:n=null,disabled:s,required:i=!1})=>{const[o,c]=(0,r.useState)(t||"");return(0,z.jsxs)("div",{className:Q.inner,children:[e&&(0,z.jsxs)("label",{className:`${Q.label} ${s?Q.disable:""}`,children:[e,i&&(0,z.jsx)("span",{className:Q.requiredMark,"aria-hidden":"true",children:" *"})]}),(0,z.jsx)("textarea",{className:`${Q.textarea} ${s?Q.disable:""}`,value:o,onChange:e=>{var t;const r=null===(t=e.target)||void 0===t?void 0:t.value;c(r),a(r)},placeholder:l,disabled:s}),n&&(0,z.jsx)("span",{className:Q.err,"data-field-error":"",children:n})]})},ha=({data:e,setData:a,error:t,disabled:l,onImmediateSave:n})=>{const{schoolClass:s=null,educationLevel:i=null}=e||{},[o,c]=(0,r.useState)(s||null),[d,u]=(0,r.useState)(l||!i),_=(0,r.useMemo)((()=>(e=>{let a="default";switch(e){case"IGCSE":case"A Levels":a="uk";break;case"IB MYP":case"IB DP":a="ib";break;case"US High School Diploma":case"GED":a="us";break;case"CBSE":case"ICSE":case"State Board":a="india";break;default:a="default"}const t=Ne[a];return[{value:"grade_9",label:t.grade_9},{value:"grade_10",label:t.grade_10},{value:"grade_11",label:t.grade_11},{value:"grade_12",label:t.grade_12},{value:"foundation",label:t.foundation},...we]})(i)),[i]);(0,r.useEffect)((()=>{c(s||null)}),[s]),(0,r.useEffect)((()=>{o&&!_.find((e=>e.value===o))&&(c(null),null==a||a((e=>({...e,schoolClass:null,grades:null}))))}),[_,o,a]),(0,r.useEffect)((()=>{u(l||!i)}),[l,i]);return(0,z.jsx)(ie,{title:"Current Grade/ Education Level",required:!0,options:_,value:null!=o?o:void 0,placeholder:"Select class",handleChange:e=>{const t=e||null;c(t),null==a||a((e=>({...e,schoolClass:t,grades:null})))},onAfterChange:n,error:t,disabled:d,showSearch:!1})};var va=t(30355);const fa=({data:e,setData:a,errors:t,onUploadingChange:l,onImmediateSave:n})=>{const{grades:s="",educationLevel:i=null,schoolClass:o=null,academicTranscripts:c=[],academicAchievements:d=""}=e||{},{grades:u=null,educationLevel:_=null,academicTranscripts:p=null,academicAchievements:m=null,schoolClass:h=null}=t||{},[v,f]=(0,r.useState)(!1),[g,C]=(0,r.useState)(""),[b,x]=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(!v)return void x(!1);const e=setTimeout((()=>x(!0)),5e3);return()=>clearTimeout(e)}),[v]);const j=(e,t)=>{a((a=>({...a,[e]:t})))},y=c||[],w=p||g,N=Ae({educationLevel:i,schoolClass:o});return(0,z.jsxs)("div",{className:O.wrap,children:[(0,z.jsx)(J,{type:"academic"}),(0,z.jsxs)("div",{className:`${O.content} ${O.full}`,children:[(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(Ze,{data:e,setData:a,error:_,onImmediateSave:n})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ha,{data:e,setData:a,error:h,onImmediateSave:n})}),(0,z.jsx)("div",{className:O.item,children:"dropdown"===N.kind?(0,z.jsx)(ie,{title:N.label,required:!0,options:N.options,value:null!=s?s:void 0,placeholder:N.placeholder,handleChange:e=>j("grades",e),onAfterChange:n,error:u,showSearch:!1}):(0,z.jsx)(ne,{placeholder:N.placeholder,label:N.label,required:!0,onChange:e=>j("grades",e),value:s,error:u,type:"number"===N.kind?"number":"text",step:N.step,precision:N.precision,min:N.min,max:N.max})}),(0,z.jsxs)("div",{className:O.item,children:[(0,z.jsx)(pa,{label:"Academic Transcripts",placeholder:"Click and upload or drag and drop your file.",multiple:!0,accept:".pdf,.doc,.docx",maxSizeMB:20,onFilesChange:async e=>{if(!e||!e.length)return C(""),f(!1),null==l||l(!1),void j("academicTranscripts",[]);C(""),f(!0),null==l||l(!0);try{const a=await Promise.all(e.map((async e=>{if(e instanceof File){var a,t,r,l;const n=await(0,va.YG)(e),s=(null==n||null===(a=n.data)||void 0===a?void 0:a.file_id)||(null==n||null===(t=n.data)||void 0===t?void 0:t.id);if(!s)throw new Error("File upload failed: no file ID returned");return{fileId:s,name:e.name,size:e.size,type:e.type,uploadedAt:(null==n||null===(r=n.data)||void 0===r?void 0:r.uploaded_at)||(null==n||null===(l=n.data)||void 0===l?void 0:l.uploadedAt)||null}}return e})));j("academicTranscripts",a),C("")}catch(e){console.log("Error uploading academic transcripts",e),C("Something went wrong while uploading the document. Please try again."),j("academicTranscripts",[])}finally{f(!1),null==l||l(!1)}},error:w,defaultFiles:y,disabled:v}),v&&(0,z.jsx)("span",{className:O.helperText,role:"status",children:b?"Still reading your transcript — this can take up to a minute.":"Uploading document"})]}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ma,{label:"Academic Achievements/ Honors",onChange:e=>j("academicAchievements",e),placeholder:"Describe your academic achievements",value:d,error:m})})]})]})},ga=({data:e,setData:a,error:t})=>{const{proficiencyLevel:l=null}=e||{},n=_e,[s,i]=(0,r.useState)(l),[o,c]=(0,r.useState)(n),d=(0,r.useMemo)((()=>new ce.A(n,{keys:["label"],threshold:.3,ignoreLocation:!0,minMatchCharLength:1,useExtendedSearch:!0})),[n]);return(0,z.jsx)(ie,{title:"English Proficiency Level",required:!0,options:o,value:null!=s?s:void 0,showSearch:!0,placeholder:"Select Proficiency Level",onSearch:e=>{if(!e)return void c(n);const a=d.search(`^${e}`),t=d.search(e),r=new Set,l=[...a,...t].filter((e=>{var a;const t=null!==(a=e.item.value)&&void 0!==a?a:e.item.label;return!r.has(t)&&(r.add(t),!0)})).map((e=>e.item));c(l)},handleChange:e=>{const t=e||null;i(t),null==a||a((e=>({...e,proficiencyLevel:t})))},error:t})},Ca="InlineCheckbox_wrap__H6J5Q",ba="InlineCheckbox_native__zkyk+",xa="InlineCheckbox_box__07xAc",ja="InlineCheckbox_text__6325X";var ya=t(80111),wa=t.n(ya);const Na=({label:e="",onChange:a,checked:t=!1,disabled:l=!1,className:n="",id:s})=>{const i=(0,r.useRef)(s||wa()("inline-checkbox-")),o=s||i.current,[c,d]=(0,r.useState)(!!t);(0,r.useEffect)((()=>d(!!t)),[t]);return(0,z.jsxs)("label",{className:`${Ca} ${n}`,htmlFor:o,children:[(0,z.jsx)("input",{id:o,type:"checkbox",className:ba,checked:c,onChange:e=>{const t=e.target.checked;d(t),null==a||a(t)},disabled:l}),(0,z.jsx)("span",{className:xa,"aria-hidden":"true"}),e&&(0,z.jsx)("span",{className:ja,children:e})]})},Sa="HelperBlock_wrap__--y3y",ka="HelperBlock_inner__X9seA",Pa="HelperBlock_info__6UlzC",Ia="HelperBlock_icon__mGxjL",Ea="HelperBlock_title__vW8gB",Aa="HelperBlock_descr__Cq5cO",Ma="HelperBlock_btn__BpdPc";var Ra,La;function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ba.apply(null,arguments)}function Da({title:e,titleId:a,...t},l){return r.createElement("svg",Ba({width:27,height:27,viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Ra||(Ra=r.createElement("g",{clipPath:"url(#clip0_2472_7796)"}
1,r.createElement("g",{filter:"url(#filter0_d_2472_7796)"},r.createElement("path",{d:"M13.4997 8.77471V2.69971H7.42471C6.88764 2.69971 6.37258 2.91305 5.99282 3.29282C5.61305 3.67258 5.39971 4.18764 5.39971 4.72471V19.5747C5.39971 20.1118 5.61305 20.6268 5.99282 21.0066C6.37258 21.3864 6.88764 21.5997 7.42471 21.5997H12.4292C12.0681 20.3279 12.0531 18.9828 12.3858 17.7034C12.7185 16.4239 13.3868 15.2564 14.3216 14.3216C15.2564 13.3868 16.4239 12.7185 17.7034 12.3858C18.9828 12.0531 20.3279 12.0681 21.5997 12.4292V10.7997H15.5247C14.9876 10.7997 14.4726 10.5864 14.0928 10.2066C13.7131 9.82684 13.4997 9.31177 13.4997 8.77471ZM8.09971 7.42471C8.09971 7.24569 8.17082 7.074 8.29741 6.94741C8.424 6.82082 8.59569 6.74971 8.77471 6.74971H11.4747C11.6537 6.74971 11.8254 6.82082 11.952 6.94741C12.0786 7.074 12.1497 7.24569 12.1497 7.42471C12.1497 7.60373 12.0786 7.77542 11.952 7.902C11.8254 8.02859 11.6537 8.09971 11.4747 8.09971H8.77471C8.59569 8.09971 8.424 8.02859 8.29741 7.902C8.17082 7.77542 8.09971 7.60373 8.09971 7.42471ZM8.77471 9.44971H11.4747C11.6537 9.44971 11.8254 9.52082 11.952 9.64741C12.0786 9.774 12.1497 9.94569 12.1497 10.1247C12.1497 10.3037 12.0786 10.4754 11.952 10.602C11.8254 10.7286 11.6537 10.7997 11.4747 10.7997H8.77471C8.59569 10.7997 8.424 10.7286 8.29741 10.602C8.17082 10.4754 8.09971 10.3037 8.09971 10.1247C8.09971 9.94569 8.17082 9.774 8.29741 9.64741C8.424 9.52082 8.59569 9.44971 8.77471 9.44971ZM8.09971 12.8247C8.09971 12.6457 8.17082 12.474 8.29741 12.3474C8.424 12.2208 8.59569 12.1497 8.77471 12.1497H11.4747C11.6537 12.1497 11.8254 12.2208 11.952 12.3474C12.0786 12.474 12.1497 12.6457 12.1497 12.8247C12.1497 13.0037 12.0786 13.1754 11.952 13.302C11.8254 13.4286 11.6537 13.4997 11.4747 13.4997H8.77471C8.59569 13.4997 8.424 13.4286 8.29741 13.302C8.17082 13.1754 8.09971 13.0037 8.09971 12.8247ZM7.42471 22.9497H12.9597C13.2081 23.4339 13.5038 23.8839 13.8467 24.2997H7.42471C6.17156 24.2997 4.96974 23.8019 4.08363 22.9158C3.19752 22.0297 2.69971 20.8279 2.69971 19.5747V18.2247C2.69971 18.0457 2.77082 17.874 2.89741 17.7474C3.024 17.6208 3.19569 17.5497 3.37471 17.5497C3.55373 17.5497 3.72542 17.6208 3.852 17.7474C3.97859 17.874 4.04971 18.0457 4.04971 18.2247V19.5747C4.04971 20.4698 4.40529 21.3283 5.03822 21.9612C5.67116 22.5941 6.5296 22.9497 7.42471 22.9497ZM14.8497 8.77471V3.03721L21.2622 9.44971H15.5247C15.3457 9.44971 15.174 9.37859 15.0474 9.252C14.9208 9.12542 14.8497 8.95373 14.8497 8.77471ZM25.6497 19.5747C25.6497 21.1859 25.0097 22.7311 23.8704 23.8704C22.7311 25.0097 21.1859 25.6497 19.5747 25.6497C17.9635 25.6497 16.4183 25.0097 15.279 23.8704C14.1398 22.7311 13.4997 21.1859 13.4997 19.5747C13.4997 17.9635 14.1398 16.4183 15.279 15.279C16.4183 14.1398 17.9635 13.4997 19.5747 13.4997C21.1859 13.4997 22.7311 14.1398 23.8704 15.279C25.0097 16.4183 25.6497 17.9635 25.6497 19.5747ZM20.2497 16.8747C20.2497 16.6957 20.1786 16.524 20.052 16.3974C19.9254 16.2708 19.7537 16.1997 19.5747 16.1997C19.3957 16.1997 19.224 16.2708 19.0974 16.3974C18.9708 16.524 18.8997 16.6957 18.8997 16.8747V18.8997H16.8747C16.6957 18.8997 16.524 18.9708 16.3974 19.0974C16.2708 19.224 16.1997 19.3957 16.1997 19.5747C16.1997 19.7537 16.2708 19.9254 16.3974 20.052C16.524 20.1786 16.6957 20.2497 16.8747 20.2497H18.8997V22.2747C18.8997 22.4537 18.9708 22.6254 19.0974 22.752C19.224 22.8786 19.3957 22.9497 19.5747 22.9497C19.7537 22.9497 19.9254 22.8786 20.052 22.752C20.1786 22.6254 20.2497 22.4537 20.2497 22.2747V20.2497H22.2747C22.4537 20.2497 22.6254 20.1786 22.752 20.052C22.8786 19.9254 22.9497 19.7537 22.9497 19.5747C22.9497 19.3957 22.8786 19.224 22.752 19.0974C22.6254 18.9708 22.4537 18.8997 22.2747 18.8997H20.2497V16.8747Z",fill:"#573B76"})))),La||(La=r.createElement("defs",null,r.createElement("filter",{id:"filter0_d_2472_7796",x:-1.30029,y:-1.30029,width:30.95,height:30.95,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:2}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.341176 0 0 0 0 0.231373 0 0 0 0 0.462745 0 0 0 0.2 0"}
1),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2472_7796"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2472_7796",result:"shape"})),r.createElement("clipPath",{id:"clip0_2472_7796"},r.createElement("rect",{width:27,height:27,fill:"white"})))))}const Ta=r.forwardRef(Da),Fa=(t.p,({title:e,descr:a,btnText:t,onClick:r})=>(0,z.jsxs)("div",{className:Sa,children:[(0,z.jsxs)("div",{className:ka,children:[(0,z.jsx)("div",{className:Ia,children:(0,z.jsx)(Ta,{})}),(0,z.jsxs)("div",{className:Pa,children:[(0,z.jsx)("span",{className:Ea,children:e}),(0,z.jsx)("span",{className:Aa,children:a})]})]}),(0,z.jsx)("button",{className:Ma,type:"button",onClick:r,children:t})]}));var $a=t(35323);const Ha={IELTS:{step:.5,min:0,max:9,precision:1,placeholder:"e.g. IELTS 7.5"},TOEFL:{step:1,min:0,max:120,precision:0,placeholder:"e.g. TOEFL 95"}},Oa=({data:e,setData:a,errors:t,onUploadingChange:l,onImmediateSave:n})=>{const s=(0,$a.W6)(),{languagesSpoken:i=null,languageCertificates:o=[],englishTestScore:c=null,englishTestType:d="IELTS",skipEnglish:u=!1}=e||{},{proficiencyLevel:_=null,languageCertificates:p=null,englishTestScore:m=null}=t||{},[h,v]=(0,r.useState)(u),[f,g]=(0,r.useState)(!1),[C,b]=(0,r.useState)(""),x=(e,t)=>{a((a=>({...a,[e]:t})))},j=["IELTS","TOEFL"],y=j.indexOf(d)>=0?j.indexOf(d):0,w=(0,r.useMemo)((()=>Ha[d]||Ha.IELTS),[d]),N=p||C,S=o||[];return(0,z.jsxs)("div",{className:O.wrap,children:[(0,z.jsx)(J,{type:"language"}),(0,z.jsxs)("div",{className:`${O.content} ${O.full}`,children:[(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ga,{data:e,setData:a,error:_})}),(0,z.jsxs)("div",{className:O.item,children:[(0,z.jsx)(ne,{label:"English Test Score",required:!u,type:"number",placeholder:w.placeholder,value:c,onChange:e=>x("englishTestScore",e),error:m,step:w.step,min:w.min,max:w.max,precision:w.precision,switchTitles:j,defaultSwitchIndex:y,onSwitchChange:({index:e,title:a})=>{x("englishTestType",a)},disabled:h}),(0,z.jsx)(Na,{label:"Haven’t taken this test yet",onChange:e=>{v(e),x("skipEnglish",e),x("englishTestType",j[y]),null==n||n()},checked:u})]}),(0,z.jsx)(Fa,{title:"No Scores yet ?",descr:"Get your predicted IELTS band scores with instant feedback",btnText:"Try AI Mock Test",onClick:()=>s.push("/admin/practice")}),!h&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:O.item,children:[(0,z.jsx)(pa,{label:"Language Certificates",placeholder:"Upload Language Certificates",onFilesChange:async e=>{if(!e||!e.length)return b(""),g(!1),null==l||l(!1),void x("languageCertificates",[]);g(!0),b(""),null==l||l(!0);try{const a=await Promise.all(e.map((async e=>{if(e instanceof File){var a,t,r,l;const n=await(0,va.YG)(e);return{fileId:(null==n||null===(a=n.data)||void 0===a?void 0:a.file_id)||(null==n||null===(t=n.data)||void 0===t?void 0:t.id),name:e.name,size:e.size,type:e.type,uploadedAt:(null==n||null===(r=n.data)||void 0===r?void 0:r.uploaded_at)||(null==n||null===(l=n.data)||void 0===l?void 0:l.uploadedAt)||null}}return e})));x("languageCertificates",a)}catch(e){b("Something went wrong while uploading the certificate. Please try again.")}finally{g(!1),null==l||l(!1)}},error:N,defaultFiles:S,accept:".pdf,.doc,.docx",maxSizeMB:20,disabled:f}),f&&(0,z.jsx)("span",{className:O.helperText,children:"Uploading certificate"})]}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Other Languages Spoken",placeholder:"e.g. Spanish (Fluent), French (Intermediate)",value:i,onChange:e=>x("languagesSpoken",e)})})]})]})]})},Va=({data:e,setData:a,errors:t,onUploadingChange:l,onImmediateSave:n})=>{const{sat:s=null,act:i=null,gre:o=null,gmat:c=null,otherTestScore:d=null,
1skipScores:u=!1,testCertificates:_=[]}=e||{},{sat:p=null,act:m=null,gre:h=null,gmat:v=null,otherTestScore:f=null,testCertificates:g=null}=t||{},C=(0,r.useMemo)((()=>(0,We.JY)(e)),[e]),[b,x]=(0,r.useState)(u),[j,y]=(0,r.useState)(!1),[w,N]=(0,r.useState)("");(0,r.useEffect)((()=>{const t={};!C.sat&&null!=e&&e.sat&&(t.sat=null),!C.act&&null!=e&&e.act&&(t.act=null),!C.gre&&null!=e&&e.gre&&(t.gre=null),!C.gmat&&null!=e&&e.gmat&&(t.gmat=null),Object.keys(t).length&&a((e=>({...e,...t})))}),[C,null==e?void 0:e.sat,null==e?void 0:e.act,null==e?void 0:e.gre,null==e?void 0:e.gmat,a]);const S=(e,t)=>{a((a=>({...a,[e]:t})))},k=_||[],P=g||w;return(0,z.jsxs)("div",{className:O.wrap,children:[(0,z.jsx)(J,{type:"scored"}),(0,z.jsxs)("div",{className:`${O.content} ${b?O.disable:""}`,children:[(0,z.jsx)("div",{className:`${O.item} ${O.full}`,children:(0,z.jsx)(Na,{label:"Doesn’t apply to me.",onChange:e=>{S("skipScores",e),x(e),null==n||n()},checked:u})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"SAT Scores",required:!b&&C.sat,type:"number",placeholder:"e.g 1450",...he,value:s,onChange:e=>S("sat",e),error:p,disabled:b||!C.sat})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"ACT Scores",required:!b&&C.act,type:"number",placeholder:"e.g. 35",...ve,value:i,onChange:e=>S("act",e),error:m,disabled:b||!C.act})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"GRE Scores",required:!b&&C.gre,type:"number",placeholder:"e.g. 320",...fe,value:o,onChange:e=>S("gre",e),error:h,disabled:b||!C.gre})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"GMAT Scores",required:!b&&C.gmat,type:"number",placeholder:"e.g. 650",...ge,value:c,onChange:e=>S("gmat",e),error:v,disabled:b||!C.gmat})}),!b&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:`${O.item} ${O.full}`,children:(0,z.jsx)(ma,{label:"Other test scores",placeholder:"List your previous test scores",value:d,onChange:e=>S("otherTestScore",e),error:f,disabled:b})}),(0,z.jsxs)("div",{className:`${O.item} ${O.full}`,children:[(0,z.jsx)(pa,{label:"Test Report and Certificates",placeholder:"Upload Test Score Report",onFilesChange:async e=>{if(!e||!e.length)return N(""),y(!1),null==l||l(!1),void S("testCertificates",[]);N(""),y(!0),null==l||l(!0);try{const a=await Promise.all(e.map((async e=>{if(e instanceof File){var a,t,r,l;const n=await(0,va.YG)(e);return{fileId:(null==n||null===(a=n.data)||void 0===a?void 0:a.file_id)||(null==n||null===(t=n.data)||void 0===t?void 0:t.id),name:e.name,size:e.size,type:e.type,uploadedAt:(null==n||null===(r=n.data)||void 0===r?void 0:r.uploaded_at)||(null==n||null===(l=n.data)||void 0===l?void 0:l.uploadedAt)||null}}return e})));S("testCertificates",a)}catch(e){console.log("Error uploading test certificates",e),N("Something went wrong while uploading the document. Please try again.")}finally{y(!1),null==l||l(!1)}},error:P,disabled:b||j,accept:".pdf,.doc,.docx",maxSizeMB:20,defaultFiles:k}),j&&(0,z.jsx)("span",{className:O.helperText,children:"Uploading certificate"})]})]})]})]})},Ga=()=>{const e="undefined"!=typeof window&&window||void 0!==t.g&&t.g||{};return e.crypto&&"function"==typeof e.crypto.randomUUID?e.crypto.randomUUID():wa()(`${Date.now()}_`)};var Ua;function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Wa.apply(null,arguments)}function Za({title:e,titleId:a,...t},l){return r.createElement("svg",Wa({width:12,height:15,viewBox:"0 0 12 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Ua||(Ua=r.createElement("path",{d:"M11.3333 2C11.5101 2 11.6797 2.07024 11.8047 2.19526C11.9298 2.32029 12 2.48986 12 2.66667C12 2.84348 11.9298 3.01305 11.8047 3.13807C11.6797 3.2631 11.5101 3.33333 11.3333 3.33333H10.6667L10.6647 3.38067L10.0427 12.0947C10.0187 12.4311 9.8682 12.7459 9.62141 12.9757C9.37462 13.2056 9.04991 13.3333 8.71267 13.3333H3.28667C2.94943 13.3333 2.62471 13.2056 2.37792 12.9757C2.13114 12.7459 1.98061 12.4311 1.95667 12.0947L1.33467 3.38133L1.33333 3.33333H0.666667C0.489856 3.33333 0.320286 3.2631 0.195262 3.13807C0.0702379 3.01305 0 2.84348 0 2.66667C0 2.48986 0.0702379 2.32029 0.195262 2.19526C0.320286 2.07024 0.489856 2 0.666667 2H11.3333ZM9.33133 3.33333H2.66867L3.28733 12H8.71267L9.33133 3.33333ZM7.33333 0C7.51014 0 7.67971 0.0702379 7.80474 0.195262C7.92976 0.320286 8 0.489856 8 0.666667C8 0.843478 7.92976 1.01305 7.80474 1.13807C7.67971 1.2631 7.51014 1.33333 7.33333 1.33333H4.66667C4.48986 1.33333 4.32029 1.2631 4.19526 1.13807C4.07024 1.01305 4 0.843478 4 0.666667C4 0.489856 4.07024 0.320286 4.19526 0.195262C4.32029 0.0702379 4.48986 0 4.66667 0H7.33333Z",fill:"#573B76"})))}
1const qa=r.forwardRef(Za),Ya=(t.p,()=>({id:Ga(),name:"",category:"",experience:"",duration:null,role:""})),Ka=({data:e,setData:a,errors:t={},onImmediateSave:l})=>{const n=(0,H.useMediaQuery)({query:"(max-width:767px)"}),s=Array.isArray(null==e?void 0:e.activities)&&e.activities.length?e.activities:[Ya()],[i,o]=(0,r.useState)(s),[c,d]=(0,r.useState)(0),[u,_]=(0,r.useState)(Boolean(null==e?void 0:e.skipActivities)),p=(0,r.useRef)(null),m=(0,r.useRef)([]),h=(0,r.useRef)(!1),v=(0,r.useRef)(!1),f=(0,r.useRef)(!1);(0,r.useEffect)((()=>{v.current?null==a||a((e=>{return(null==e?void 0:e.skipActivities)===u&&(a=(null==e?void 0:e.activities)||[],t=i,JSON.stringify(a)===JSON.stringify(t))?e:{...e,activities:i,skipActivities:u};var a,t})):v.current=!0}),[i,u,a]),(0,r.useEffect)((()=>{m.current=m.current.slice(0,i.length)}),[i.length]),(0,r.useEffect)((()=>{if(!f.current)return void(f.current=!0);const e=p.current;if(h.current&&e)return e.scrollTo({left:e.scrollWidth,behavior:"smooth"}),void(h.current=!1);const a=m.current[c];null!=a&&a.scrollIntoView&&a.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}),[c]);const g=t.activities||{};return(0,z.jsxs)("div",{className:`${O.wrap}`,children:[(0,z.jsx)(J,{type:"activities"}),(0,z.jsxs)("div",{className:`${O.container} ${u?O.disable:""}`,children:[(0,z.jsx)("div",{className:O.footerCheckbox,children:(0,z.jsx)(Na,{label:"I don’t have extracurricular activities yet",checked:u,onChange:e=>{_(e),null==l||l({activities:i,skipActivities:e})}})}),(0,z.jsxs)("div",{className:O.tabs,children:[(0,z.jsxs)("div",{className:O.tabs__head,ref:p,children:[i.map(((e,a)=>(0,z.jsx)("button",{className:`${O.tabs__btn} ${a===c?O.active:""} ${u?O.disable:""}`,type:"button",ref:e=>m.current[a]=e,"aria-label":(null==e?void 0:e.name)||`Activity ${a+1}`,onClick:()=>d(a),disabled:u,children:(0,z.jsx)("span",{className:O.tabs__btnText,children:null!=e&&e.name?e.name:n?`Activity ${a+1}`:`Activity Name ${a+1}`})},e.id))),(0,z.jsxs)("button",{className:`${O.add} ${u?O.disable:""}`,type:"button",onClick:()=>{u||(h.current=!0,o((e=>[...e,Ya()])),d(i.length))},"aria-label":"Add Activity",disabled:u,children:[(0,z.jsx)("span",{className:O.add__plus}),!n&&(0,z.jsx)("span",{className:O.add__text,children:"Add Activity"})]})]}),(0,z.jsx)("div",{className:O.tabContent,children:i[c]&&(0,z.jsx)(za,{activity:i[c],index:c+1,onChange:e=>((e,a)=>o((t=>t.map((t=>t.id===e?{...t,...a}:t)))))(i[c].id,e),onRemove:()=>{return e=i[c].id,void(u||o((a=>{if(a.length<=1)return a;const t=a.findIndex((a=>a.id===e)),r=a.filter((a=>a.id!==e));return d((e=>0===e?0:t<=e?e-1:e)),r})));var e},canRemove:i.length>1,errors:g[i[c].id]||{},disabled:u},i[c].id)})]})]})]})},za=({activity:e,index:a,onChange:t,onRemove:r,canRemove:l,errors:n,disabled:s})=>(0,z.jsxs)("div",{className:O.block,children:[(0,z.jsxs)("div",{className:O.block__head,children:[(0,z.jsxs)("span",{className:O.block__title,children:["ACTIVITY ",a]}),l&&(0,z.jsxs)("button",{type:"button",className:O.removeBtn,onClick:r,disabled:s,children:[(0,z.jsx)("span",{className:O.removeBtn__icon,children:(0,z.jsx)(qa,{})}),(0,z.jsx)("span",{className:O.removeBtn__text,children:"Remove Activity"})]})]}),(0,z.jsxs)("div",{className:O.content,children:[(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Activity Name",required:!s,placeholder:"Volleyball",value:e.name,onChange:e=>t({name:e}),error:n.name,disabled:s})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Activity Category",required:!s,placeholder:"e.g. Basketball, Varsity",value:e.category,onChange:e=>t({category:e}),error:n.category,disabled:s})}),(0,z.jsx)("div",{className:`${O.item} ${O.full}`,children:(0,z.jsx)(ma,{label:"Explain your experience",required:!s,placeholder:"Give a detailed experience description",value:e.experience,onChange:e=>t({experience:e}),error:n.experience,disabled:s})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Activity Duration (in months)",required:!s,placeholder:"e.g. 24 (months)",type:"number",step:1,min:0,precision:0,value:e.duration,onChange:e=>t({duration:e}),error:n.duration,disabled:s})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Role/ Position",required:!s,placeholder:"e.g. Captain",value:e.role,onChange:e=>t({role:e}),error:n.role,disabled:s})})]})]}
1),Xa=({value:e,onChange:a,error:t,disabled:l,onAfterChange:n})=>{const s=Ce,[i,o]=(0,r.useState)(s),c=(0,r.useMemo)((()=>new ce.A(s,{keys:["label"],threshold:.35,ignoreLocation:!0,minMatchCharLength:1,useExtendedSearch:!0})),[s]);return(0,z.jsx)(ie,{title:"Job Role",required:!l,options:i,value:null!=e?e:void 0,placeholder:"Select Job Role",showSearch:!0,onSearch:e=>{if(!e)return void o(s);const a=c.search(`^${e}`),t=c.search(e),r=new Set,l=[...a,...t].filter((e=>{const a=e.item.value||e.item.label;return!r.has(a)&&(r.add(a),!0)})).map((e=>e.item));o(l)},handleChange:a,onAfterChange:n,error:t,disabled:l})};var Ja;function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Qa.apply(null,arguments)}function et({title:e,titleId:a,...t},l){return r.createElement("svg",Qa({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Ja||(Ja=r.createElement("path",{d:"M10.9999 15.5833C11.2596 15.5833 11.4775 15.4953 11.6535 15.3193C11.8295 15.1433 11.9172 14.9258 11.9166 14.6667V11C11.9166 10.7403 11.8286 10.5227 11.6526 10.3473C11.4766 10.1719 11.259 10.0839 10.9999 10.0833C10.7408 10.0827 10.5233 10.1707 10.3473 10.3473C10.1713 10.5239 10.0833 10.7415 10.0833 11V14.6667C10.0833 14.9264 10.1713 15.1442 10.3473 15.3202C10.5233 15.4962 10.7408 15.5839 10.9999 15.5833ZM10.9999 8.25C11.2596 8.25 11.4775 8.162 11.6535 7.986C11.8295 7.81 11.9172 7.59244 11.9166 7.33333C11.916 7.07422 11.828 6.85666 11.6526 6.68066C11.4772 6.50466 11.2596 6.41666 10.9999 6.41666C10.7402 6.41666 10.5226 6.50466 10.3473 6.68066C10.1719 6.85666 10.0839 7.07422 10.0833 7.33333C10.0826 7.59244 10.1706 7.8103 10.3473 7.98691C10.5239 8.16352 10.7414 8.25122 10.9999 8.25ZM10.9999 20.1667C9.73186 20.1667 8.5402 19.9259 7.42492 19.4443C6.30964 18.9628 5.3395 18.3098 4.5145 17.4854C3.6895 16.661 3.03653 15.6909 2.55559 14.575C2.07464 13.4591 1.83386 12.2674 1.83325 11C1.83264 9.73255 2.07342 8.54088 2.55559 7.425C3.03775 6.30911 3.69073 5.33897 4.5145 4.51458C5.33828 3.69019 6.30842 3.03722 7.42492 2.55566C8.54142 2.07411 9.73309 1.83333 10.9999 1.83333C12.2668 1.83333 13.4584 2.07411 14.5749 2.55566C15.6914 3.03722 16.6616 3.69019 17.4853 4.51458C18.3091 5.33897 18.9624 6.30911 19.4452 7.425C19.9279 8.54088 20.1684 9.73255 20.1666 11C20.1648 12.2674 19.924 13.4591 19.4443 14.575C18.9645 15.6909 18.3116 16.661 17.4853 17.4854C16.6591 18.3098 15.689 18.9631 14.5749 19.4452C13.4609 19.9274 12.2692 20.1679 10.9999 20.1667Z",fill:"#4F287A",fillOpacity:.5})))}const at=r.forwardRef(et);t.p;var tt=t(89406);const rt=()=>({id:Ga(),jobRole:null,company:"",description:"",achievements:"",duration:null}),lt=(e,a)=>JSON.stringify(e)===JSON.stringify(a),nt=({data:e,setData:a,errors:t={},onUploadingChange:l,onImmediateSave:n})=>{const s=(0,H.useMediaQuery)({query:"(max-width:767px)"}),i=Array.isArray(null==e?void 0:e.experiences)&&e.experiences.length?e.experiences:[rt()],[o,c]=(0,r.useState)(i),[d,u]=(0,r.useState)(0),[_,p]=(0,r.useState)(!0),[m,h]=(0,r.useState)((null==e?void 0:e.resumeFiles)||[]),[v,f]=(0,r.useState)(Boolean(null==e?void 0:e.skipExperience)),[g,C]=(0,r.useState)(!1),[b,x]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[w,N]=(0,r.useState)(""),S=(0,r.useRef)(null),k=(0,r.useRef)([]),P=(0,r.useRef)(!1),I=(0,r.useRef)(!1),E=(0,r.useRef)(!1);(0,r.useEffect)((()=>{I.current?null==a||a((e=>(null==e?void 0:e.skipUpload)===_&&(null==e?void 0:e.skipExperience)===v&&lt((null==e?void 0:e.resumeFiles)||[],m)&&lt((null==e?void 0:e.experiences)||[],o)?e:{...e,skipUpload:_,skipExperience:v,resumeFiles:m,experiences:o})):I.current=!0}),[_,m,o,v,a]),(0,r.useEffect)((()=>{k.current=k.current.slice(0,o.length)}),[o.length]),(0,r.useEffect)((()=>{if(!E.current)return void(E.current=!0);if(!_)return;const e=S.current;if(P.current&&e)return e.scrollTo({left:e.scrollWidth,behavior:"smooth"}),void(P.current=!1);const a=k.current[d];null!=a&&a.scrollIntoView&&a.scrollIntoView({behavior:"smooth",inline:"nearest"})}),[d,_]);const A=async e=>{try{N(""),y(!0);const a=await(0,va.YG)(e),t=(e=>(Array.isArray(null==e?void 0:e.experiences)?e.experiences:[]).map((e=>{var a,t;return{id:Ga(),jobRole:e.job_title||e.role||null,company:e.company_name||e.company||"",description:e.description||e.responsibilities||"",achievements:e.achievements||"",duration:null!==(a=null!==(t=e.duration_months)&&void 0!==t?t:e.duration)&&void 0!==a?a:null}})))(null==a?void 0:a.data);t.length?(c(t),u(0),p(!0)):N("Unable to extract experience. Please fill manually.")}catch(e){N("Failed to analyze resume. Try again.")}finally{y(!1)}},M=t.experiences||{};return(0,z.jsxs)("div",{className:O.wrap,children:[(0,z.jsx)(J,{type:"experience"}),(0,z.jsxs)("div",{className:O.container,children:[(0,z.jsx)("div",{className:O.footerCheckbox,children:(0,z.jsx)(Na,{label:"I don't have any work experience yet",checked:v,onChange:e=>
1{f(e),null==n||n({skipUpload:_,skipExperience:e,resumeFiles:m,experiences:o})}})}),(0,z.jsxs)("div",{className:O.tabs,children:[(0,z.jsx)("div",{className:O.tabs__head,ref:S,children:_?(0,z.jsxs)(z.Fragment,{children:[o.map(((e,a)=>(0,z.jsx)("button",{type:"button",ref:e=>k.current[a]=e,className:`${O.tabs__btn} ${a===d?O.active:""} ${v?O.disable:""}`,onClick:()=>u(a),children:(0,z.jsx)("span",{className:O.tabs__btnText,children:e.company?e.company:s?`Company ${a+1}`:`Company Name ${a+1}`})},e.id))),(0,z.jsxs)("button",{className:`${O.add} ${v?O.disable:""}`,type:"button",onClick:()=>{P.current=!0,c((e=>[...e,rt()])),u(o.length)},children:[(0,z.jsx)("span",{className:O.add__plus}),!s&&(0,z.jsx)("span",{className:O.add__text,children:"Add Experience"})]})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("button",{type:"button",className:`${O.tabs__btn} ${O.active}`,children:(0,z.jsx)("span",{className:O.tabs__btnText,children:"Upload Resume"})}),(0,z.jsxs)("div",{className:O.badge,style:{marginBottom:15},children:[(0,z.jsx)("span",{className:O.badge__icon,children:(0,z.jsx)(at,{})}),(0,z.jsx)("span",{className:O.badge__text,children:"auto populate work experience"})]})]})}),(0,z.jsx)("div",{className:O.tabContent,children:_?o[d]&&(0,z.jsx)(st,{experience:o[d],index:d+1,onChange:e=>((e,a)=>{c((t=>t.map((t=>t.id===e?{...t,...a}:t))))})(o[d].id,e),onRemove:()=>{return e=o[d].id,void c((a=>{if(a.length<=1)return a;const t=a.findIndex((a=>a.id===e)),r=a.filter((a=>a.id!==e));return u((e=>t<=e?e-1:e)),r}));var e},canRemove:o.length>1,errors:M[o[d].id]||{},disabled:v,onImmediateSave:n}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:O.block,children:(0,z.jsx)("div",{className:O.content,children:(0,z.jsxs)("div",{className:`${O.item} ${O.full}`,children:[(0,z.jsx)(pa,{label:"Upload Resume",placeholder:"Upload your resume or drag and drop the file",onFilesChange:async e=>{if(null==e||!e.length)return x(""),h([]),C(!1),void(null==l||l(!1));const a=e[0];x(""),N(""),C(!0),null==l||l(!0);try{var t,r,n,s;const e=await(0,va.YG)(a),l=(null==e||null===(t=e.data)||void 0===t?void 0:t.file_id)||(null==e||null===(r=e.data)||void 0===r?void 0:r.id),i=(null==e||null===(n=e.data)||void 0===n?void 0:n.uploaded_at)||(null==e||null===(s=e.data)||void 0===s?void 0:s.uploadedAt)||null,o={fileId:l,name:a.name,size:a.size,type:a.type,...i?{uploadedAt:i}:{}};h([o]),await A(o)}catch(e){x("Error uploading resume. Please try again.")}finally{C(!1),null==l||l(!1)}},error:b,accept:".pdf,.doc,.docx",maxSizeMB:20,defaultFiles:m,disabled:v||g}),g&&(0,z.jsx)("span",{className:O.load__info,children:"Uploading resume"})]})})}),(0,z.jsxs)("div",{className:O.load,children:[j&&(0,z.jsxs)("div",{className:O.load__status,children:[(0,z.jsx)("div",{className:O.load__loader,children:(0,z.jsx)(tt.A,{isStatic:!0})}),(0,z.jsx)("span",{className:O.load__info,children:"Analyzing resume"})]}),w&&(0,z.jsx)("div",{className:O.load__error,children:w})]})]})})]})]})]})},st=({experience:e,index:a,onChange:t,onRemove:r,canRemove:l,errors:n,disabled:s,onImmediateSave:i})=>(0,z.jsxs)("div",{className:O.block,children:[(0,z.jsxs)("div",{className:O.block__head,children:[(0,z.jsxs)("span",{className:O.block__title,children:["EXPERIENCE ",a]}),l&&(0,z.jsxs)("button",{type:"button",className:O.removeBtn,onClick:r,children:[(0,z.jsx)("span",{className:O.removeBtn__icon,children:(0,z.jsx)(qa,{})}),(0,z.jsx)("span",{className:O.removeBtn__text,children:"Delete Experience"})]})]}),(0,z.jsxs)("div",{className:O.content,children:[(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(Xa,{value:e.jobRole,onChange:e=>t({jobRole:e}),error:n.jobRole,disabled:s,onAfterChange:i})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Company",required:!s,placeholder:"e.g. Cognizant",value:e.company,onChange:e=>t({company:e}),error:n.company,disabled:s})}),(0,z.jsx)("div",{className:`${O.item} ${O.full}`,children:(0,z.jsx)(ma,{label:"Explain your experience",required:!s,placeholder:"Give a detailed experience description",value:e.description,onChange:e=>t({description:e}),error:n.description,disabled:s})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Any Achievements",required:!s,placeholder:"e.g. Employee of the Month",value:e.achievements,onChange:e=>t({achievements:e}),error:n.achievements,disabled:s})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ne,{label:"Job Duration",required:!s,placeholder:"e.g. 24 (months)",type:"number",step:1,min:0,precision:0,value:e.duration,onChange:e=>t({duration:e}),error:n.duration,disabled:s})})]})]}
1),it=({data:e,setData:a,error:t,value:l,onChange:n,onAfterChange:s})=>{const i=be,[o,c]=(0,r.useState)(i),[d,u]=(0,r.useState)(l||null),_=(0,r.useMemo)((()=>new ce.A(i,{keys:["label"],threshold:.35,ignoreLocation:!0,minMatchCharLength:1,useExtendedSearch:!0})),[i]);return(0,z.jsx)(ie,{title:"Intended Major/ Field of Study",required:!0,options:o,value:null!=d?d:void 0,placeholder:"Select Major / Field of Study",showSearch:!0,onSearch:e=>{if(!e)return void c(i);const a=_.search(`^${e}`),t=_.search(e),r=new Set,l=[...a,...t].filter((e=>{const a=e.item.value||e.item.label;return!r.has(a)&&(r.add(a),!0)})).map((e=>e.item));c(l)},handleChange:e=>{const a=e||null;u(a),n(a)},onAfterChange:s,error:t})},ot=({data:e,setData:a,errors:t={},onImmediateSave:l})=>{const n=(0,$a.W6)(),[s,i]=(0,r.useState)(""),{intendedMajor:o=null,careerAspirations:c="",skills:d=[]}=e||{},{intendedMajor:u=null,careerAspirations:_=null}=t||{},p=(e,t)=>{a((a=>({...a,[e]:t})))},m=()=>{const e=s.trim();if(!e)return;const a=Array.isArray(d)?d:[];a.some((a=>String(a).trim().toLowerCase()===e.toLowerCase()))?i(""):(p("skills",[...a,e]),i(""),null==l||l())};return(0,z.jsxs)("div",{className:O.wrap,children:[(0,z.jsx)(J,{type:"subjectInterests"}),(0,z.jsxs)("div",{className:`${O.content} ${O.full}`,children:[(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(it,{value:o,onChange:e=>p("intendedMajor",e),onAfterChange:l,error:u})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsx)(ma,{label:"Career Aspirations",required:!0,placeholder:"Describe your long-term career goal and aspirations",value:c,onChange:e=>p("careerAspirations",e),error:_})}),(0,z.jsx)("div",{className:O.item,children:(0,z.jsxs)("div",{className:O.skillBuilder,children:[(0,z.jsxs)("div",{className:O.skillLabelRow,children:[(0,z.jsx)("label",{className:O.skillLabel,htmlFor:"profile-skills-input",children:"Your current skills"}),(0,z.jsxs)("button",{className:O.skillInfoBtn,type:"button","aria-label":"Skills help populate project ideas",children:["i",(0,z.jsx)("span",{className:O.skillTooltip,role:"tooltip",children:"Helps recommend project ideas."})]})]}),(0,z.jsxs)("div",{className:O.skillInputRow,children:[(0,z.jsx)("input",{id:"profile-skills-input",className:O.skillInput,type:"text",value:s,placeholder:"Add a skill, and press enter",onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),m())}}),(0,z.jsx)("button",{className:O.skillAddBtn,type:"button","aria-label":"Add skill",onClick:m,children:"+"})]}),Array.isArray(d)&&d.length>0&&(0,z.jsx)("div",{className:O.skillPills,children:d.map((e=>(0,z.jsxs)("span",{className:O.skillPill,children:[e,(0,z.jsx)("button",{type:"button",className:O.skillRemove,"aria-label":`Remove ${e}`,onClick:()=>(e=>{const a=Array.isArray(d)?d:[];p("skills",a.filter((a=>a!==e))),null==l||l()})(e),children:"×"})]},e)))})]})}),(0,z.jsx)(Fa,{title:"Not sure about your ideal career path?",descr:"Discover your personality type and career paths.",btnText:"Try Career Quiz",onClick:()=>{n.push("/admin/aitools/quiz")}})]})]})};var ct=t(52936);const dt=[{title:"Personal Information",icon:(0,z.jsx)(u,{}),id:"personalInfo"},{title:"Academic Performance",icon:(0,z.jsx)(p.h,{}),id:"academicPerformance"},{title:"Standardised Test Scores",icon:(0,z.jsx)(x,{}),id:"score"},{title:"Extracurricular Activities ",icon:(0,z.jsx)(k,{}),id:"activities"},{title:"Work Experience",icon:(0,z.jsx)(R,{}),id:"workExperience"},{title:"Subject Interests ",icon:(0,z.jsx)(F,{}),id:"interests"},{title:"Language Proficiency ",icon:(0,z.jsx)(v,{}),id:"language"}],ut=dt.map((e=>e.id)),_t=({data:e,setData:a,loadingDetails:t,setStep:l,onSaveRequest:s,hasUnsavedChanges:i,onPrepareProfile:o,onFieldFocus:c,onFieldBlur:d,onImmediateSave:u,autosaveStatus:_,onStepChange:p,initialTab:m,initialTabKey:h})=>{const v=(0,H.useMediaQuery)({query:"(max-width: 767px)"}),f=(0,$a.W6)(),g=(0,$a.zy)(),C=(0,r.useRef)(null),b=(0,r.useCallback)((()=>{const e=new URLSearchParams(g.search||"").get("section");return e&&dt.some((a=>a.id===e))?e:null}),[g.search]),[x,j]=(0,r.useState)((()=>{const a=b();if(a)return a;
1if(m&&dt.some((e=>e.id===m)))return m;return(0,We.Jc)({steps:dt.map((e=>e.id)),data:e})||"personalInfo"})),[y,w]=(0,r.useState)({}),[N,S]=(0,r.useState)(!1),[k,P]=(0,r.useState)(!1),[I,E]=(0,r.useState)((()=>(e=>{const a=(0,We.Jc)({steps:ut,data:e}),t=ut.indexOf(a);return t<0?0:t})(e))),[A,M]=(0,r.useState)(!1),[R,L]=(0,r.useState)(""),B=(0,r.useRef)(null),D=(0,r.useMemo)((()=>dt.findIndex((e=>e.id===x))),[x]),T=D<=0,F=D===dt.length-1;(0,r.useEffect)((()=>{m&&dt.some((e=>e.id===m))&&(w({}),M(!1),null==p||p(),j(m),E((e=>Math.max(e,ut.indexOf(m)))))}),[m,h,p]);(0,r.useMemo)((()=>(0,We.Bx)({step:x,data:e})),[x,e]);(0,r.useEffect)((()=>{const e=b();f.replace({pathname:"/admin/builder/survey",search:e?`?section=${encodeURIComponent(e)}`:"",state:g.state})}),[f,b,g.state]),(0,r.useEffect)((()=>{C.current&&C.current.scrollTo({top:0,behavior:"smooth"})}),[x]);const O=dt.map((a=>({valid:(0,We.Bx)({step:a.id,data:e}),started:(0,We.Cf)({step:a.id,data:e})})));let V=-1;O.forEach(((e,a)=>{e.started&&(V=a)}));const G=y[x]||{},U=e=>O[e].valid?"valid":A||e<=V?"error":e===V+1?"active":"lock",W=O.every((e=>e.valid)),Z=F?W:"lock"!==U(D+1),q=()=>{window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{var e;const a=null===(e=C.current)||void 0===e?void 0:e.querySelector("[data-field-error]");if(!a)return;const t=a.getBoundingClientRect(),r=C.current,l=r&&r.scrollHeight>r.clientHeight+1,n=l?r.getBoundingClientRect().top:0,s=l?r.getBoundingClientRect().bottom:window.innerHeight-88;t.top>=n&&t.bottom<=s||a.scrollIntoView({behavior:"smooth",block:"center"})}))}))},Y=e=>{e<0||e>=dt.length||e===D||"lock"!==U(e)&&(null==p||p(),L(""),E((a=>Math.max(a,e))),j(dt[e].id))},K=(0,r.useCallback)((e=>{a(e)}),[a]),X=(0,r.useCallback)(((...e)=>null==u?void 0:u(...e)),[u]);return(0,z.jsxs)("div",{className:n.block,children:[(0,z.jsx)("div",{className:n.block__header,ref:B,children:(0,z.jsx)("div",{className:n.tabs,children:dt.map(((e,a)=>(0,z.jsxs)("button",{type:"button",className:`${n.tab} ${e.id===x?n.current:""} ${n[U(a)]}`,onClick:()=>{return a=e.id,void Y(dt.findIndex((e=>e.id===a)));var a},disabled:"lock"===U(a),"aria-current":e.id===x?"step":void 0,"aria-label":e.title.trim(),children:[(0,z.jsx)("span",{className:`${n.tab__icon} ${v&&e.id===x&&"idle"!==_?n.saveState:""}`,children:v&&e.id===x&&"idle"!==_?(0,z.jsx)("span",{className:`${n.mobileSaveIndicator} ${n[_]}`,role:"status","aria-label":"saved"===_?"Profile saved":"error"===_?"Profile save failed":"Saving profile"}):e.icon}),!v&&(0,z.jsx)("span",{className:n.tab__text,children:e.title}),!v&&e.id===x&&"idle"!==_&&(0,z.jsxs)("span",{className:`${n.autosave} ${"idle"===_?"":n[_]}`,children:["dirty"!==_&&(0,z.jsx)("span",{className:n.autosave__icon,"aria-hidden":"true"}),(0,z.jsx)("span",{className:n.autosave__text,children:"saving"===_?"Saving":"saved"===_?"Saved!":"error"===_?"Retry needed":"Unsaved changes"})]})]},e.id)))})}),R&&(0,z.jsx)("p",{className:n.stepNotice,children:R}),(0,z.jsx)("div",{className:n.content,ref:C,onBlurCapture:e=>null==d?void 0:d({stillFocused:e.currentTarget.contains(e.relatedTarget)}),onFocusCapture:()=>{null==c||c(),w((e=>({...e,[x]:{}})))},children:{personalInfo:(0,z.jsx)(Ue,{data:e,setData:K,errors:G,loadingDetails:t,onImmediateSave:X}),academicPerformance:(0,z.jsx)(fa,{data:e,setData:K,errors:G,onUploadingChange:S,onImmediateSave:X}),score:(0,z.jsx)(Va,{data:e,setData:K,errors:G,onUploadingChange:S,onImmediateSave:X}),language:(0,z.jsx)(Oa,{data:e,setData:K,errors:G,onUploadingChange:S,onImmediateSave:X}),activities:(0,z.jsx)(Ka,{data:e,setData:K,errors:G,onImmediateSave:X}),workExperience:(0,z.jsx)(nt,{data:e,setData:K,errors:G,onUploadingChange:S,onImmediateSave:X}),interests:(0,z.jsx)(ot,{data:e,setData:K,errors:G,onImmediateSave:X})}[x]}),(0,z.jsx)("div",{className:`${n.footer} ${T?n.firstStep:""}`,children:(0,z.jsxs)("div",{className:n.footer__wrap,children:[!T&&(0,z.jsxs)("button",{className:`${n.btn} ${n.prev}`,type:"button",onClick:()=>{Y(D-1)},children:[(0,z.jsx)("span",{className:`${n.btn__arrow} ${n.leftArrow}`,"aria-hidden":"true",children:(0,z.jsx)($.h,{})}),(0,z.jsx)("span",{className:n.btn__text,children:"Previous"})]}),(0,z.jsx)("button",{className:`${n.btn} ${n.next} ${Z?"":n.blocked}`,type:"button","aria-disabled":!Z,disabled:N||k,onClick:async()=>{var t;if(N||k)return;const r=o(e);r!==e&&a(r);const n=(0,We.l)({step:x,data:r});if(F){const e=(0,We.PM)({steps:ut,data:r});if(ut.some((a=>!e[a].isValidStep))){if(w(Object.fromEntries(ut.map((a=>[a,e[a].errors])))),M(!0),n.isValidStep){const a=ut.filter((a=>!e[a].isValidStep)).map((e=>dt.find((a=>a.id===e)).title.trim())),t=1===a.length?a[0]:`${a.slice(0,-1).join(", ")} and ${a[a.length-1]}`;L(1===a.length?`A required field in ${t}
1 is not filled in. Please complete it before continuing.`:`Required fields in ${t} are not filled in. Please complete them before continuing.`),(()=>{const e=B.current;if(!e)return;const a=e.getBoundingClientRect();a.top>=0&&a.bottom<=window.innerHeight||e.scrollIntoView({behavior:"smooth",block:"start"})})()}else L(""),q();return}L("")}else if(n.isValidStep)w((e=>({...e,[x]:{}})));else if(w((e=>({...e,[x]:n.errors}))),q(),"lock"===U(D+1))return;const c=D+1,d=c<dt.length?r:{...r,isSurveyCompleted:!0},u=Date.now(),_=null===(t=null==i?void 0:i(d))||void 0===t||t;_&&P(!0);const m=await s(d,{autosave:_});if(_){const e=Math.max(0,450-(Date.now()-u));e&&await new Promise((a=>window.setTimeout(a,e))),P(!1)}var h,v;("object"==typeof m?m.saved:m)?c<dt.length?(null==p||p(),E((e=>Math.max(e,c))),j(null===(h=dt[c])||void 0===h?void 0:h.id),ct.A.track("Next step Profile Survey",{step:null===(v=dt[c])||void 0===v?void 0:v.id})):(l("report"),ct.A.track("Finished Profile Builder Survey")):P(!1)},children:k?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("span",{className:n.savingSpinner,"aria-hidden":"true"})," Saving…"]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("span",{className:n.btn__text,children:F?"Generate Profile":"Next"}),(0,z.jsx)("span",{className:`${n.btn__arrow} ${n.rightArrow}`,"aria-hidden":"true",children:(0,z.jsx)($.h,{})})]})})]})})]})};var pt=t(16062),mt=t(97508);const ht={wrap:"ReportsProfile_wrap__BUVmi",head:"ReportsProfile_head__K2vmO",title:"ReportsProfile_title__bLTyO",title__icon:"ReportsProfile_title__icon__23iDT",title__text:"ReportsProfile_title__text__vJsKm",tabsSentinel:"ReportsProfile_tabsSentinel__aC+yW",tabs:"ReportsProfile_tabs__5Hd-D",floating:"ReportsProfile_floating__FfumV",tabs__item:"ReportsProfile_tabs__item__juIgR",active:"ReportsProfile_active__s+F3D",tabs__label:"ReportsProfile_tabs__label__UePRt",content:"ReportsProfile_content__l-rjC",emptyState:"ReportsProfile_emptyState__XGOGW",emptyState__icon:"ReportsProfile_emptyState__icon__hbG8f",emptyState__title:"ReportsProfile_emptyState__title__cYQmw",emptyState__description:"ReportsProfile_emptyState__description__MPysR",emptyState__cta:"ReportsProfile_emptyState__cta__6Dgjq",completionRibbon:"ReportsProfile_completionRibbon__WjPAG",completionRibbon__content:"ReportsProfile_completionRibbon__content__x2pVI",completionRibbon__badge:"ReportsProfile_completionRibbon__badge__mZ37Y",completionRibbon__copy:"ReportsProfile_completionRibbon__copy__odfJ+",completionRibbon__hint:"ReportsProfile_completionRibbon__hint__3AXYK",completionRibbon__subtext:"ReportsProfile_completionRibbon__subtext__3pj5i",completionRibbon__cta:"ReportsProfile_completionRibbon__cta__4tu+H",back:"ReportsProfile_back__9lw7n",reportBtn:"ReportsProfile_reportBtn__BIoFD",reportBtn__icon:"ReportsProfile_reportBtn__icon__4b15p",reportBtn__text:"ReportsProfile_reportBtn__text__HNCKF"},vt="DigitalProfile_wrap__oEw4H",ft="DigitalProfile_status__WVLHv",gt="DigitalProfile_summary__sDCU2",Ct="DigitalProfile_footer__GiWr2",bt="DigitalProfile_footer__block__9uyec",xt={card:"ProfileSummaryCard_card__jyLUM",head:"ProfileSummaryCard_head__ru-Te",content:"ProfileSummaryCard_content__P2sKn",avatar:"ProfileSummaryCard_avatar__Xrvws",avatarWrap:"ProfileSummaryCard_avatarWrap__gMh+g",avatarEdit:"ProfileSummaryCard_avatarEdit__74wmM",info:"ProfileSummaryCard_info__T1eaC",name:"ProfileSummaryCard_name__05PuB",meta:"ProfileSummaryCard_meta__J5xS2",contacts:"ProfileSummaryCard_contacts__95wMk",contact:"ProfileSummaryCard_contact__v0Znm",contact__icon:"ProfileSummaryCard_contact__icon__KfT1p",contact__text:"ProfileSummaryCard_contact__text__dF90H",progress:"ProfileSummaryCard_progress__nlyyo",progress__head:"ProfileSummaryCard_progress__head__mG5WR",progress__label:"ProfileSummaryCard_progress__label__ffGvj",progress__percent:"ProfileSummaryCard_progress__percent__YcPPP",progress__info:"ProfileSummaryCard_progress__info__xEWEb",progress__bar:"ProfileSummaryCard_progress__bar__pWDyQ",edit:"ProfileSummaryCard_edit__g13OR",edit__text:"ProfileSummaryCard_edit__text__JzLie",edit__icon:"ProfileSummaryCard_edit__icon__58e+9"};var jt=t(80266),yt=t(13628),wt=t(32078),Nt=t(57121);const St="AvatarPickerPopover_popover__73bAo",kt="AvatarPickerPopover_title__RbDkL",Pt="AvatarPickerPopover_grid__PNyJQ",It="AvatarPickerPopover_thumb__s3Faw",Et="AvatarPickerPopover_pending__y6MF+",At="AvatarPickerPopover_skeleton__GdRh6",Mt="AvatarPickerPopover_thumbSelected__SKoq9",Rt=({src:e,webp:a,selected:t,label:l,pressed:n,disabled:s,onClick:i})=>{const[o,c]=(0,r.useState)(!1),d=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=d.current;
1null!=e&&e.complete&&e.naturalWidth>0&&c(!0)}),[e]),(0,z.jsxs)("button",{type:"button",className:`${It} ${t?Mt:""}`,onClick:i,disabled:s,"aria-label":l,"aria-pressed":n,children:[o?null:(0,z.jsx)("span",{className:At,"aria-hidden":"true",children:(0,z.jsx)(Nt.A,{})}),(0,z.jsxs)("picture",{children:[a?(0,z.jsx)("source",{type:"image/webp",srcSet:a}):null,(0,z.jsx)("img",{className:o?"":Et,ref:d,src:e,alt:"",width:40,height:40,onLoad:()=>c(!0),onError:()=>c(!0)})]})]})},Lt=({isOpen:e,onClose:a,photoUrl:t="",avatarKey:l=null,avatarSource:n=null,anchorRef:s})=>{const i=(0,r.useRef)(null),[o,c]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{if(!e)return;const t=e=>{"Escape"===e.key&&(null==a||a())},r=e=>{var t,r;const l=e.target;null!==(t=i.current)&&void 0!==t&&t.contains(l)||null!=s&&null!==(r=s.current)&&void 0!==r&&r.contains(l)||null==a||a()};return document.addEventListener("keydown",t),document.addEventListener("mousedown",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("mousedown",r)}}),[e,a,s]),!e)return null;const d="photo"===n&&Boolean(t);return(0,z.jsxs)("div",{className:St,ref:i,role:"dialog","aria-label":"Choose your avatar",children:[(0,z.jsx)("p",{className:kt,children:"Choose your avatar"}),(0,z.jsxs)("div",{className:Pt,children:[t?(0,z.jsx)(Rt,{src:t,selected:d,label:"Use profile photo",pressed:d,disabled:o,onClick:async()=>{if(!o&&t)if("photo"!==n){c(!0);try{await(0,wt.LU)({avatarSource:"photo"}),null==a||a()}catch(a){var e;const t=(null==a||null===(e=a.response)||void 0===e?void 0:e.data)||(null==a?void 0:a.message)||"Could not update avatar. Please try again.";alert("string"==typeof t?t:"Could not update avatar. Please try again.")}finally{c(!1)}}else null==a||a()}}):null,yt.nb.map((e=>{const t=(0,yt.k0)(e);if(!t)return null;const r="avatar"===n&&l===e;return(0,z.jsx)(Rt,{src:t.png,webp:t.webp,selected:r,label:`Choose ${e} avatar`,pressed:r,disabled:o,onClick:()=>(async e=>{if(!o)if("avatar"!==n||l!==e){c(!0);try{await(0,wt.LU)({avatarSource:"avatar",avatarKey:e}),null==a||a()}catch(e){var t;const a=(null==e||null===(t=e.response)||void 0===t?void 0:t.data)||(null==e?void 0:e.message)||"Could not update avatar. Please try again.";alert("string"==typeof a?a:"Could not update avatar. Please try again.")}finally{c(!1)}}else null==a||a()})(e)},e)}))]})]})};var Bt,Dt,Tt=t(24332);function Ft(){return Ft=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ft.apply(null,arguments)}function $t({title:e,titleId:a,...t},l){return r.createElement("svg",Ft({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Bt||(Bt=r.createElement("g",{clipPath:"url(#clip0_2754_655)"},r.createElement("path",{d:"M9.22101 11.0455C9.35869 11.1087 9.51381 11.1232 9.6608 11.0865C9.8078 11.0497 9.9379 10.964 10.0297 10.8435L10.2663 10.5335C10.3905 10.3679 10.5516 10.2335 10.7367 10.1409C10.9219 10.0484 11.126 10.0002 11.333 10.0002H13.333C13.6866 10.0002 14.0258 10.1406 14.2758 10.3907C14.5259 10.6407 14.6663 10.9799 14.6663 11.3335V13.3335C14.6663 13.6871 14.5259 14.0263 14.2758 14.2763C14.0258 14.5264 13.6866 14.6668 13.333 14.6668C10.1504 14.6668 7.09816 13.4025 4.84773 11.1521C2.59729 8.90167 1.33301 5.84943 1.33301 2.66683C1.33301 2.31321 1.47348 1.97407 1.72353 1.72402C1.97358 1.47397 2.31272 1.3335 2.66634 1.3335H4.66634C5.01996 1.3335 5.3591 1.47397 5.60915 1.72402C5.8592 1.97407 5.99967 2.31321 5.99967 2.66683V4.66683C5.99967 4.87382 5.95148 5.07797 5.85891 5.26311C5.76634 5.44825 5.63194 5.6093 5.46634 5.7335L5.15434 5.9675C5.03195 6.06095 4.94569 6.19389 4.9102 6.34373C4.87472 6.49357 4.8922 6.65108 4.95967 6.7895C5.87079 8.64007 7.36929 10.1367 9.22101 11.0455Z",stroke:"#828282",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}))),Dt||(Dt=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_2754_655"},r.createElement("rect",{width:16,height:16,fill:"white"})))))}const Ht=r.forwardRef($t);t.p;var Ot,Vt,Gt=t(4987);function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ut.apply(null,arguments)}function Wt({title:e,titleId:a,...t},l){return r.createElement("svg",Ut({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Ot||(Ot=r.createElement("g",{clipPath:"url(#clip0_2754_666)"}
1,r.createElement("path",{d:"M5.33301 1.3335V4.00016",stroke:"#828282",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M10.667 1.3335V4.00016",stroke:"#828282",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.6667 2.6665H3.33333C2.59695 2.6665 2 3.26346 2 3.99984V13.3332C2 14.0696 2.59695 14.6665 3.33333 14.6665H12.6667C13.403 14.6665 14 14.0696 14 13.3332V3.99984C14 3.26346 13.403 2.6665 12.6667 2.6665Z",stroke:"#828282",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M2 6.6665H14",stroke:"#828282",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}))),Vt||(Vt=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_2754_666"},r.createElement("rect",{width:16,height:16,fill:"white"})))))}const Zt=r.forwardRef(Wt);t.p;var qt=t(77859),Yt=t(24749),Kt=t(91688),zt=t(39098);const Xt=({data:e,profileCompleteness:a,setStep:t=null,showAvatarEdit:l=!1})=>{var n,s;const{name:i,schoolName:o,educationLevel:c,email:d,phone:u,city:_,country:p,dateOfBirth:m,avatarKey:h,avatarSource:v,photoUrl:f}=e||{},{data:g}=(0,zt.w)(),C=null!==(n=null!=h?h:null==g?void 0:g.avatarKey)&&void 0!==n?n:null,b=null!==(s=null!=v?v:null==g?void 0:g.avatarSource)&&void 0!==s?s:null,x=f||(null==g?void 0:g.photoUrl)||"",j=(0,H.useMediaQuery)({query:"(max-width: 767px)"}),y=(0,H.useMediaQuery)({query:"(max-width: 1199px)"}),w=(0,Kt.useHistory)(),N=(0,r.useRef)(null),[S,k]=(0,r.useState)(!1),P=j?45:y?100:143;return(0,z.jsxs)("section",{className:xt.card,children:[(0,z.jsxs)("div",{className:xt.content,children:[(0,z.jsxs)("div",{className:xt.head,children:[(0,z.jsxs)("div",{className:xt.avatarWrap,ref:N,children:[(0,z.jsx)("div",{className:xt.avatar,children:(0,z.jsx)(jt.A,{name:i,size:P,avatarKey:C,avatarSource:b,photoUrl:x})}),l?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("button",{type:"button",className:xt.avatarEdit,"aria-label":"Choose your avatar","aria-expanded":S,onClick:()=>k((e=>!e)),children:(0,z.jsx)(Yt.h,{})}),(0,z.jsx)(Lt,{isOpen:S,onClose:()=>k(!1),photoUrl:x,avatarKey:C,avatarSource:b,anchorRef:N})]}):null]}),(0,z.jsxs)("button",{type:"button",className:xt.edit,onClick:()=>{ct.A.track("Edit Profile From Report"),t?t("survey"):w.push({pathname:"/admin/builder/survey",state:w.location.state})},children:[(0,z.jsx)("span",{className:xt.edit__icon,children:(0,z.jsx)(qt.h,{})}),(0,z.jsx)("span",{className:xt.edit__text,children:"Edit"})]})]}),(0,z.jsxs)("div",{className:xt.info,children:[(0,z.jsx)("span",{className:xt.name,children:i}),(0,z.jsxs)("div",{className:xt.meta,children:[(0,z.jsx)("span",{className:xt.class,children:c}),o&&(0,z.jsx)("span",{className:xt.school,children:o})]}),(0,z.jsxs)("div",{className:xt.contacts,children:[d&&(0,z.jsxs)("div",{className:xt.contact,children:[(0,z.jsx)("span",{className:xt.contact__icon,children:(0,z.jsx)(Tt.h,{})}),(0,z.jsx)("span",{className:xt.contact__text,children:d})]}),u&&(0,z.jsxs)("div",{className:xt.contact,children:[(0,z.jsx)("span",{className:xt.contact__icon,children:(0,z.jsx)(Ht,{})}),(0,z.jsx)("span",{className:xt.contact__text,children:u})]}),(_||p)&&(0,z.jsxs)("div",{className:xt.contact,children:[(0,z.jsx)("span",{className:xt.contact__icon,children:(0,z.jsx)(Gt.h,{})}),(0,z.jsx)("span",{className:xt.contact__text,children:[_,p].filter(Boolean).join(", ")})]}),m&&(0,z.jsxs)("div",{className:xt.contact,children:[(0,z.jsx)("span",{className:xt.contact__icon,children:(0,z.jsx)(Zt,{})}),(0,z.jsx)("span",{className:xt.contact__text,children:m})]})]})]})]}),(0,z.jsxs)("div",{className:xt.progress,children:[(0,z.jsxs)("div",{className:xt.progress__head,children:[(0,z.jsx)("span",{className:xt.progress__label,children:"Profile Completeness"}),(0,z.jsxs)("span",{className:xt.progress__percent,children:[a,"%"]})]}),(0,z.jsx)("div",{className:xt.progress__info,children:(0,z.jsx)("div",{className:xt.progress__bar,style:{maxWidth:`${a}%`}})})]})]})},Jt="ProfileStatsRow_wrap__TLG3v",Qt="ProfileStatsRow_item__wAq3l",er="ProfileStatsRow_item__icon__cfGFq",ar="ProfileStatsRow_item__inner__8Gy-P",tr="ProfileStatsRow_item__label__XiFi9",rr="ProfileStatsRow_item__value__RRrnM";var lr;function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},nr.apply(null,arguments)}function sr({title:e,titleId:a,...t},l){return r.createElement("svg",nr({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,lr||(lr=r.createElement("path",{d:"M13.3337 14.1664V15.833H1.66699V14.1664C1.66699 14.1664 1.66699 10.833 7.50033 10.833C13.3337 10.833 13.3337 14.1664 13.3337 14.1664ZM10.417 6.24971C10.417 5.67284 10.2459 5.10894 9.92545 4.62929C9.60496 4.14965 9.14944 3.77581 8.61649 3.55506C8.08353 3.3343 7.49709 3.27654 6.93131 3.38908C6.36553 3.50162 5.84583 3.77941 5.43793 4.18731C5.03003 4.59521 4.75224 5.11491 4.6397 5.68069C4.52716 6.24647 4.58492 6.83291 4.80568 7.36587C5.02643 7.89882 5.40027 8.35434 5.87991 8.67483C6.35956 8.99531 6.92346 9.16637 7.50033 9.16637C8.27387 9.16637 9.01574 8.85908 9.56272 8.3121C10.1097 7.76512 10.417 7.02325 10.417 6.24971ZM13.2837 10.833C13.7959 11.2295 14.2151 11.7334 14.5117 12.3093C14.8083 12.8852 14.9751 13.5191 15.0003 14.1664V15.833H18.3337V14.1664C18.3337 14.1664 18.3337 11.1414 13.2837 10.833ZM12.5003 3.33304C11.9268 3.33037 11.366 3.50181 10.892 3.82471C11.3982 4.53199 11.6704 5.37994 11.6704 6.24971C11.6704 7.11947 11.3982 7.96742 10.892 8.67471C11.366 8.9976 11.9268 9.16904 12.5003 9.16637C13.2739 9.16637 14.0157 8.85908 14.5627 8.3121C15.1097 7.76512 15.417 7.02325 15.417 6.24971C15.417 5.47616 15.1097 4.73429 14.5627 4.18731C14.0157 3.64033 13.2739 3.33304 12.5003 3.33304Z",fill:"#4F287A"})))}const ir=r.forwardRef(sr);t.p;var or,cr=t(22087);function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},dr.apply(null,arguments)}function ur({title:e,titleId:a,...t},l){return r.createElement("svg",dr({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,or||(or=r.createElement("path",{d:"M5.00033 11.6667L6.25033 9.25008C6.38622 8.9802 6.59293 8.75233 6.84833 8.59087C7.10374 8.4294 7.39824 8.34041 7.70033 8.33341H16.667M16.667 8.33341C16.9216 8.33297 17.1729 8.39086 17.4017 8.50265C17.6304 8.61444 17.8305 8.77715 17.9866 8.9783C18.1427 9.17945 18.2507 9.41369 18.3022 9.66304C18.3536 9.91239 18.3473 10.1702 18.2837 10.4167L17.0003 15.4167C16.9075 15.7764 16.6972 16.0947 16.4028 16.3212C16.1084 16.5476 15.7467 16.6693 15.3753 16.6667H3.33366C2.89163 16.6667 2.46771 16.4912 2.15515 16.1786C1.84259 15.866 1.66699 15.4421 1.66699 15.0001V4.16675C1.66699 3.72472 1.84259 3.3008 2.15515 2.98824C2.46771 2.67567 2.89163 2.50008 3.33366 2.50008H6.58366C6.8624 2.49735 7.13737 2.56457 7.38341 2.6956C7.62945 2.82662 7.83869 3.01727 7.99199 3.25008L8.66699 4.25008C8.81875 4.48052 9.02535 4.66968 9.26824 4.80058C9.51114 4.93148 9.78274 5.00003 10.0587 5.00008H15.0003C15.4424 5.00008 15.8663 5.17567 16.1788 5.48824C16.4914 5.8008 16.667 6.22472 16.667 6.66675V8.33341Z",stroke:"#573B76",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})))}const _r=r.forwardRef(ur),pr=(t.p,({classLabel:e,gpa:a,experienceCount:t,documentsCount:r})=>(0,z.jsxs)("section",{className:Jt,children:[(0,z.jsxs)("div",{className:Qt,children:[(0,z.jsx)("div",{className:er,children:(0,z.jsx)(ir,{})}),(0,z.jsxs)("div",{className:ar,children:[(0,z.jsx)("span",{className:tr,children:"Class"}),(0,z.jsx)("span",{className:rr,children:e})]})]}),(0,z.jsxs)("div",{className:Qt,children:[(0,z.jsx)("div",{className:er,children:(0,z.jsx)(cr.h,{})}),(0,z.jsxs)("div",{className:ar,children:[(0,z.jsx)("span",{className:tr,children:"GPA"}),(0,z.jsx)("span",{className:rr,children:a||"-"})]})]}),(0,z.jsxs)("div",{className:Qt,children:[(0,z.jsx)("div",{className:er,children:(0,z.jsx)(R,{})}),(0,z.jsxs)("div",{className:ar,children:[(0,z.jsx)("span",{className:tr,children:"Experience"}),(0,z.jsx)("span",{className:rr,children:t?`${t} Roles`:"No roles"})]})]}),(0,z.jsxs)("div",{className:Qt,children:[(0,z.jsx)("div",{className:er,children:(0,z.jsx)(_r,{})}),(0,z.jsxs)("div",{className:ar,children:[(0,z.jsx)("span",{className:tr,children:"Documents"}),(0,z.jsx)("span",{className:rr,children:r?`${r} Files`:"No files"})]})]})]})),mr={description:"AboutSection_description__j81FH",text:"AboutSection_text__4382J"},hr="Blocks_block__nCJ90",vr="Blocks_small__fZPfB",fr="Blocks_head__bXm7T",gr="Blocks_iconBg__qPsqs",Cr="Blocks_title__yMY5+";var br;function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xr.apply(null,arguments)}function jr({title:e,titleId:a,...t},l){return r.createElement("svg",xr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,br||(br=r.createElement("path",{d:"M14.4911 3.36593L8.25412 1.28693C8.14743 1.25136 8.03207 1.25136 7.92538 1.28693L1.68839 3.36593C1.58489 3.40043 1.49488 3.46662 1.4311 3.55512C1.36732 3.64362 1.333 3.74995 1.33301 3.85904V9.05653C1.33301 9.19438 1.38777 9.32658 1.48524 9.42405C1.58271 9.52152 1.71491 9.57628 1.85276 9.57628C1.9906 9.57628 2.1228 9.52152 2.22028 9.42405C2.31775 9.32658 2.37251 9.19438 2.37251 9.05653V4.58019L4.5548 5.30719C3.975 6.24391 3.79062 7.37244 4.04216 8.44498C4.2937 9.51753 4.96059 10.4464 5.89641 11.0277C4.72697 11.4864 3.71606 12.316 2.97672 13.4504C2.93826 13.5075 2.91156 13.5717 2.89814 13.6393C2.88473 13.7069 2.88488 13.7764 2.89858 13.8439C2.91229 13.9114 2.93927 13.9755 2.97797 14.0325C3.01667 14.0895 3.06631 14.1382 3.124 14.1758C3.18169 14.2135 3.24629 14.2393 3.31404 14.2517C3.38178 14.2641 3.45133 14.263 3.51863 14.2483C3.58593 14.2337 3.64964 14.2058 3.70607 14.1663C3.76249 14.1267 3.81049 14.0764 3.8473 14.0182C4.82637 12.5161 6.37263 11.6553 8.08975 11.6553C9.80687 11.6553 11.3531 12.5161 12.3322 14.0182C12.4084 14.1315 12.5262 14.2102 12.66 14.2374C12.7938 14.2646 12.933 14.238 13.0474 14.1634C13.1618 14.0888 13.2422 13.9722 13.2713 13.8387C13.3003 13.7053 13.2757 13.5658 13.2028 13.4504C12.4634 12.316 11.4486 11.4864 10.2831 11.0277C11.218 10.4464 11.8843 9.51816 12.1358 8.4464C12.3873 7.37464 12.2035 6.24688 11.6247 5.31044L14.4911 4.3554C14.5946 4.32092 14.6847 4.25474 14.7485 4.16623C14.8123 4.07773 14.8466 3.97139 14.8466 3.86229C14.8466 3.75318 14.8123 3.64684 14.7485 3.55834C14.6847 3.46984 14.5946 3.40366 14.4911 3.36917V3.36593ZM11.2082 7.49728C11.2084 7.9903 11.0916 8.47633 10.8676 8.91549C10.6435 9.35464 10.3185 9.73442 9.91922 10.0236C9.51996 10.3129 9.0578 10.5033 8.57068 10.5794C8.08356 10.6554 7.58536 10.6148 7.11694 10.461C6.64852 10.3073 6.22325 10.0446 5.876 9.6946C5.52876 9.34462 5.26944 8.9173 5.11932 8.44769C4.96921 7.97808 4.93258 7.47957 5.01243 6.99306C5.09229 6.50655 5.28635 6.04591 5.57871 5.64893L7.92538 6.42855C8.03207 6.46412 8.14743 6.46412 8.25412 6.42855L10.6008 5.64893C10.9956 6.18429 11.2085 6.83208 11.2082 7.49728ZM8.08975 5.39035L3.49646 3.85904L8.08975 2.32773L12.683 3.85904L8.08975 5.39035Z",fill:"#573B76"})))}const yr=r.forwardRef(jr),wr=(t.p,({data:e})=>{const{careerAspirations:a,researchInterests:t,whyAbroad:r}=e||{},l=a||t||r||"";return l?(0,z.jsx)("section",{className:mr.section,children:(0,z.jsxs)("div",{className:`${hr} ${vr}`,children:[(0,z.jsxs)("div",{className:fr,children:[(0,z.jsx)("div",{className:gr,children:(0,z.jsx)(yr,{})}),(0,z.jsx)("h4",{className:Cr,children:"About Me"})]}),(0,z.jsx)("div",{className:mr.description,children:(0,z.jsx)("p",{className:mr.text,children:l})})]})}):null}),Nr={section:"ProfileItemsSection_section__1efgy","section--orange":"ProfileItemsSection_section--orange__K0F4i",head:"ProfileItemsSection_head__k3afc",title:"ProfileItemsSection_title__kTjwi",icon:"ProfileItemsSection_icon__ApNQo",action:"ProfileItemsSection_action__1uErV",populated:"ProfileItemsSection_populated__PobAX",info:"ProfileItemsSection_info__5ifBC",list:"ProfileItemsSection_list__fjiCU",card:"ProfileItemsSection_card__H-6Ow"}
1,Sr={card:"ProfileItemCard_card__MuaWt","card--orange":"ProfileItemCard_card--orange__XTD32",icon:"ProfileItemCard_icon__iMZAQ",title:"ProfileItemCard_title__P00OR",place:"ProfileItemCard_place__akdiE",row__text:"ProfileItemCard_row__text__a6QhN",row__icon:"ProfileItemCard_row__icon__fwX7S",descr:"ProfileItemCard_descr__11eJj",tag:"ProfileItemCard_tag__3hWa3",body:"ProfileItemCard_body__zNcwH",block:"ProfileItemCard_block__enY8Z",info:"ProfileItemCard_info__QeZrk",row:"ProfileItemCard_row__xu3X0",period:"ProfileItemCard_period__Tu5HE"};var kr,Pr;function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ir.apply(null,arguments)}function Er({title:e,titleId:a,...t},l){return r.createElement("svg",Ir({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,kr||(kr=r.createElement("g",{clipPath:"url(#clip0_2754_867)"},r.createElement("path",{d:"M4 14.6673V2.66732C4 2.3137 4.14048 1.97456 4.39052 1.72451C4.64057 1.47446 4.97971 1.33398 5.33333 1.33398H10.6667C11.0203 1.33398 11.3594 1.47446 11.6095 1.72451C11.8595 1.97456 12 2.3137 12 2.66732V14.6673H4Z",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M3.99967 8H2.66634C2.31272 8 1.97358 8.14048 1.72353 8.39052C1.47348 8.64057 1.33301 8.97971 1.33301 9.33333V13.3333C1.33301 13.687 1.47348 14.0261 1.72353 14.2761C1.97358 14.5262 2.31272 14.6667 2.66634 14.6667H3.99967",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12 6H13.3333C13.687 6 14.0261 6.14048 14.2761 6.39052C14.5262 6.64057 14.6667 6.97971 14.6667 7.33333V13.3333C14.6667 13.687 14.5262 14.0261 14.2761 14.2761C14.0261 14.5262 13.687 14.6667 13.3333 14.6667H12",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6.66699 4H9.33366",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6.66699 6.66602H9.33366",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6.66699 9.33398H9.33366",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6.66699 12H9.33366",stroke:"#62836D",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}))),Pr||(Pr=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_2754_867"},r.createElement("rect",{width:16,height:16,fill:"white"})))))}const Ar=r.forwardRef(Er);t.p;var Mr,Rr;function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Lr.apply(null,arguments)}function Br({title:e,titleId:a,...t},l){return r.createElement("svg",Lr({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Mr||(Mr=r.createElement("path",{d:"M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",stroke:"black",strokeWidth:1.5})),Rr||(Rr=r.createElement("path",{d:"M12 8V12L14 14",stroke:"black",strokeWidth:1.5,strokeLinecap:"round"})))}const Dr=r.forwardRef(Br),Tr=(t.p,({color:e,icon:a,title:t,subtitle:r,period:l,description:n,tag:s})=>{const i=(0,H.useMediaQuery)({query:"(max-width: 767px)"});return(0,z.jsxs)("div",{className:`${Sr.card} ${e?Sr[`card--${e}`]:""}`,children:[(0,z.jsx)("div",{className:Sr.icon,children:a}),(0,z.jsxs)("div",{className:Sr.body,children:[(0,z.jsxs)("div",{className:Sr.block,children:[(0,z.jsxs)("div",{className:Sr.info,children:[(0,z.jsx)("span",{className:Sr.title,children:t}),r&&(0,z.jsxs)("div",{className:`${Sr.row} ${Sr.place}`,children:[(0,z.jsx)("div",{className:Sr.row__icon,children:(0,z.jsx)(Ar,{})}),(0,z.jsx)("span",{className:Sr.row__text,children:r})]})]}),!i&&s&&(0,z.jsx)("span",{className:Sr.tag,children:s})]}),l&&(0,z.jsxs)("div",{className:`${Sr.row} ${Sr.period}`,children:[(0,z.jsx)("div",{className:Sr.row__icon,children:(0,z.jsx)(Dr,{})}),(0,z.jsx)("span",{className:Sr.row__text,children:l})]}),i&&s&&(0,z.jsx)("span",{className:Sr.tag,children:s}
1),n&&(0,z.jsx)("p",{className:Sr.descr,children:n})]})]})}),Fr=({title:e,color:a,items:t=[],headerIcon:r,cardIcon:l,emptyText:n,isSkiped:s,onEdit:i,isPopulated:o=!1})=>{const c=Array.isArray(t)&&t.length>0;return c||n?(0,z.jsxs)("section",{className:`${Nr.section} ${a?Nr[`section--${a}`]:""}`,children:[(0,z.jsxs)("div",{className:Nr.head,children:[(0,z.jsxs)("div",{className:Nr.info,children:[(0,z.jsx)("div",{className:Nr.icon,children:r}),(0,z.jsx)("h2",{className:Nr.title,children:e})]}),i&&(0,z.jsx)("button",{type:"button",className:`${Nr.action} ${o?Nr.populated:""}`,onClick:i,"aria-label":`${o?"Edit":"Add"} ${e}`,children:o?(0,z.jsx)(qt.h,{}):"+"})]}),(0,z.jsx)("div",{className:Nr.list,children:c?t.map((e=>(0,z.jsx)("div",{className:Nr.card,children:(0,z.jsx)(Tr,{color:a,icon:l,...e})},e.id))):(0,z.jsx)("div",{className:Nr.card,children:(0,z.jsx)("div",{className:Nr.empty,children:(0,z.jsx)("p",{className:Nr.empty__text,children:n})})})})]}):null};var $r,Hr;function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Or.apply(null,arguments)}function Vr({title:e,titleId:a,...t},l){return r.createElement("svg",Or({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,$r||($r=r.createElement("path",{d:"M15.4768 12.8906L16.9918 21.4166C17.0087 21.517 16.9946 21.6202 16.9514 21.7124C16.9081 21.8046 16.8377 21.8813 16.7497 21.9324C16.6616 21.9835 16.56 22.0065 16.4586 21.9983C16.3571 21.9902 16.2605 21.9512 16.1818 21.8866L12.6018 19.1996C12.4289 19.0705 12.219 19.0007 12.0033 19.0007C11.7875 19.0007 11.5776 19.0705 11.4048 19.1996L7.81875 21.8856C7.74007 21.9501 7.64361 21.989 7.54225 21.9972C7.44088 22.0054 7.33942 21.9825 7.25141 21.9315C7.16341 21.8805 7.09303 21.804 7.04967 21.712C7.00631 21.62 6.99204 21.5169 7.00875 21.4166L8.52275 12.8906",stroke:"#026825",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Hr||(Hr=r.createElement("path",{d:"M12 14C15.3137 14 18 11.3137 18 8C18 4.68629 15.3137 2 12 2C8.68629 2 6 4.68629 6 8C6 11.3137 8.68629 14 12 14Z",stroke:"#026825",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const Gr=r.forwardRef(Vr);t.p;var Ur=t(24229);const Wr={icon:"AcademicPerformance_icon__bdzrL",title:"AcademicPerformance_title__KG6-j",badge:"AcademicPerformance_badge__zWOwv",badge__icon:"AcademicPerformance_badge__icon__dVgdV",badge__text:"AcademicPerformance_badge__text__QQHXp",action:"AcademicPerformance_action__lFNLv",populated:"AcademicPerformance_populated__VTzfp",body:"AcademicPerformance_body__f6lpU",list:"AcademicPerformance_list__niLN6",item:"AcademicPerformance_item__Rj3Kk",item__title:"AcademicPerformance_item__title__R7hjx",item__value:"AcademicPerformance_item__value__SGm6Q",achievements:"AcademicPerformance_achievements__slpkk",achievements__title:"AcademicPerformance_achievements__title__Wgn8M",chips:"AcademicPerformance_chips__iUBvZ",chip:"AcademicPerformance_chip__9leO9",chip__icon:"AcademicPerformance_chip__icon__SsW91",chip__text:"AcademicPerformance_chip__text__qWgp2"};var Zr,qr,Yr=t(62212);function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Kr.apply(null,arguments)}function zr({title:e,titleId:a,...t},l){return r.createElement("svg",Kr({width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Zr||(Zr=r.createElement("g",{clipPath:"url(#clip0_2754_776)"},r.createElement("path",{d:"M8 3.5H11V6.5",stroke:"#00A63E",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M11 3.5L6.75 7.75L4.25 5.25L1 8.5",stroke:"#00A63E",strokeLinecap:"round",strokeLinejoin:"round"}))),qr||(qr=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_2754_776"},r.createElement("rect",{width:12,height:12,fill:"white"})))))}const Xr=r.forwardRef(zr);t.p;var Jr,Qr,el,al,tl,rl,ll,nl;function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},sl.apply(null,arguments)}function il({title:e,titleId:a,...t},l){return r.createElement("svg",sl({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Jr||(Jr=r.createElement("path",{d:"M12.9543 0.795089C12.7518 0.975089 11.1768 4.10071 11.1768 4.10071L10.0049 8.82759L14.5649 8.40946C14.5649 8.40946 18.358 1.35571 18.4349 1.19259C18.5718 0.896339 18.6449 0.774464 18.1218 0.7
174464C17.5986 0.772589 13.1436 0.626339 12.9543 0.795089Z",fill:"#176CC7"})),Qr||(Qr=r.createElement("path",{d:"M15.3148 8.11702C15.0879 7.99515 8.40542 7.89015 8.24792 8.11702C8.10542 8.32327 8.18605 9.40515 8.24042 9.53452C8.33792 9.75952 10.4848 10.6314 10.4848 10.6314V11.1733C10.4848 11.1733 10.631 11.2333 11.8835 11.2333C13.136 11.2333 13.3854 11.1695 13.3854 11.1695L13.3948 10.6483C13.3948 10.6483 15.2585 9.68827 15.356 9.55515C15.4423 9.44452 15.5417 8.2389 15.3148 8.11702ZM13.376 9.83077C13.376 9.83077 13.4023 9.57202 13.2729 9.50827C13.1435 9.44265 10.9067 9.4539 10.7304 9.46327C10.5542 9.47265 10.5542 9.78765 10.5542 9.78765L9.15355 9.04702L9.12917 8.79952L14.3679 8.82765L14.3792 9.1614L13.376 9.83077Z",fill:"#FCC11A"})),el||(el=r.createElement("path",{d:"M11.0701 9.72021C10.8939 9.72021 10.7607 9.91897 10.7607 10.234C10.7607 10.5302 10.862 10.774 11.0851 10.7608C11.297 10.7496 11.3982 10.4815 11.3832 10.2302C11.3645 9.93584 11.2932 9.72021 11.0701 9.72021Z",fill:"#FDFFFF"})),al||(al=r.createElement("path",{d:"M5.49512 17.2669C5.49512 21.7594 9.56574 23.6288 12.2676 23.5482C15.4157 23.4544 18.802 21.0657 18.5226 16.7794C18.2601 12.7576 14.8307 10.8376 11.872 10.8601C8.43324 10.8844 5.49512 13.3426 5.49512 17.2669Z",fill:"#F8932A"})),tl||(tl=r.createElement("path",{d:"M12.0981 22.742C12.0512 22.742 12.0024 22.742 11.9556 22.7401C10.5493 22.6932 9.12057 22.1626 8.10432 21.1782C7.01682 20.1245 6.34557 18.7913 6.34182 17.2595C6.33244 13.2357 9.78057 11.7563 11.9987 11.7563H12.0174C15.0231 11.7695 17.6199 14.0157 17.6874 17.1826C17.7174 18.5926 17.1399 20.0851 16.0074 21.1988C14.9518 22.2357 13.3937 22.742 12.0981 22.742Z",fill:"#FCC11A"})),rl||(rl=r.createElement("path",{d:"M4.78353 0.697578C4.6654 0.806328 9.18228 8.85008 9.18228 8.85008C9.18228 8.85008 9.93978 8.94758 11.631 8.96258C13.3223 8.97758 14.1604 8.86508 14.1604 8.86508C14.1604 8.86508 10.6485 0.778203 10.4385 0.697578C10.3354 0.656328 8.94415 0.641328 7.58478 0.626328C6.22353 0.609453 4.89603 0.592578 4.78353 0.697578Z",fill:"#2E9DF4"})),ll||(ll=r.createElement("path",{d:"M9.80416 12.6283C9.53041 12.3939 8.13728 13.1008 7.15853 14.7189C6.50228 15.8046 6.44603 17.1939 6.86416 17.2164C7.28228 17.2389 7.27666 15.8646 8.18603 14.6627C9.28478 13.2171 10.1998 12.9677 9.80416 12.6283Z",fill:"#FEFFFA"})),nl||(nl=r.createElement("path",{d:"M12.0693 12.5439C11.7037 12.5439 11.1337 14.9608 10.6856 15.2589C10.2374 15.5571 7.91619 15.2721 7.88994 15.5983C7.86369 15.9246 9.61307 17.2821 9.81744 17.7827C10.0218 18.2833 8.93432 20.5239 9.23432 20.7414C9.53244 20.9589 11.4056 19.3971 12.0299 19.3971C12.6806 19.3971 14.3568 21.0639 14.6362 20.8352C14.9306 20.5952 13.9856 18.4052 14.1337 17.9027C14.2837 17.4002 16.3181 16.3277 16.2374 15.8402C16.1568 15.3508 13.7943 15.7183 13.3593 15.3114C12.9243 14.9046 12.4631 12.5439 12.0693 12.5439Z",fill:"#F8932A"})))}const ol=r.forwardRef(il),cl=(t.p,({data:e,onEdit:a,isPopulated:t=!1})=>{const{grades:r,academicAchievements:l}=e||{},n=(0,H.useMediaQuery)({query:"(max-width: 767px)"});return(0,z.jsx)("section",{className:Wr.section,children:(0,z.jsxs)("div",{className:`${hr} ${vr}`,children:[(0,z.jsxs)("div",{className:fr,children:[(0,z.jsx)("div",{className:Wr.icon,children:(0,z.jsx)(Yr.h,{})}),(0,z.jsx)("h4",{className:Wr.title,children:"Academic Performance"}),(0,z.jsxs)("div",{className:Wr.badge,children:[(0,z.jsx)("div",{className:Wr.badge__icon,children:(0,z.jsx)(Xr,{})}),!n&&(0,z.jsx)("span",{className:Wr.badge__text,children:"Improving"})]}),a&&(0,z.jsx)("button",{type:"button",className:`${Wr.action} ${t?Wr.populated:""}`,onClick:a,"aria-label":(t?"Edit":"Add")+" academic performance",children:t?(0,z.jsx)(qt.h,{}):"+"})]}),(0,z.jsxs)("div",{className:Wr.body,children:[(0,z.jsxs)("div",{className:Wr.list,children:[(0,z.jsxs)("div",{className:Wr.item,children:[(0,z.jsx)("span",{className:Wr.item__title,children:"Board"}),(0,z.jsx)("span",{className:Wr.item__value,children:"CBSE"})]}),(0,z.jsxs)("div",{className:Wr.item,children:[(0,z.jsx)("span",{className:Wr.item__title,children:"GPA"}),(0,z.jsx)("span",{className:Wr.item__value,children:r?`${r}`:"-"})]}),(0,z.jsxs)("div",{className:Wr.item,children:[(0,z.jsx)("span",{className:Wr.item__title,children:"Average"}),(0,z.jsx)("span",{className:Wr.item__value,children:"83.8%"})]}),(0,z.jsxs)("div",{className:Wr.item,children:[(0,z.jsx)("span",{className:Wr.item__title,children:"Rank"}),(0,z.jsx)("span",{className:Wr.item__value,children:"Top 5%"})]})]}),l&&(0,z.jsxs)("div",{className:Wr.achievements,children:[(0,z.jsx)("span",{className:Wr.achievements__title,children:"Key Achievements"}),(0,z.jsx)("div",{className:Wr.chips,children:l.split(",").map(((e,a)=>(0,z.jsxs)("div",{className:Wr.chip,children:[(0,z.jsx)("div",{className:Wr.chip__icon,children:(0,z.jsx)(ol,{})}),(0,z.jsx)("span",{className:Wr.chip__text,children:e.trim()})]},a)))})]})]})]})})}),dl="InterestsBlock_section__0XrQP",ul="InterestsBlock_head__0Hq92",_l="InterestsBlock_icon__OMd+t",pl="InterestsBlock_title__-7eEW",ml="InterestsBlock_action__8+IPv",hl="InterestsBlock_populated__Rwi38",vl="InterestsBlock_content__NEXDJ",fl="InterestsBlock_list__UPUT1",gl="InterestsBlock_item__Xi8TR";var Cl=t(74409);const bl=({data:e,chips:a,onEdit:t,isPopulated:r=!1})=>{const{intendedMajor:l,otherTestScore:n,languagesSpoken:s}=e||{},i=[],o="string"==typeof l?l:null==l?void 0:l.label;o&&i.push(o),n&&i.push(n),s&&i.push(s);const c=a||i;return(0,z.jsxs)("section",{className:dl,children:[(0,z.jsxs)("div",{className:ul,children:[(0,z.jsx)("div",{className:_l,children:(0,z.jsx)(Cl.h,{})}),(0,z.jsx)("h4",{className:pl,children:"Interests"}),t&&(0,z.jsx)("button",{type:"button",className:`${ml} ${r?hl:""}`,onClick:t,"aria-label":(r?"Edit":"Add")+" interests",children:r?(0,z.jsx)(qt.h,{}):"+"})]}),(0,z.jsx)("div",{className:vl,children:c.length?(0,z.jsx)("div",{className:fl,children:c.map(((e,a)=>(0,z.jsx)("span",{className:gl,children:e},a)))}):""})]})},xl={section:"DocumentsBlock_section__773wn",head:"DocumentsBlock_head__hBR0I",icon:"DocumentsBlock_icon__5g6bY",title:"DocumentsBlock_title__ZpYor",content:"DocumentsBlock_content__+ws0q",count:"DocumentsBlock_count__mQ68w",count__number:"DocumentsBlock_count__number__2hJSE",tags:"DocumentsBlock_tags__2x4JI",tag:"DocumentsBlock_tag__K985Z",tag__text:"DocumentsBlock_tag__text__OIQJH",tag__value:"DocumentsBlock_tag__value__RSZto"},jl=({data:e})=>{const{academicTranscripts:a=[],testCertificates:t=[],languageCertificates:l=[],resumeFiles:n=[]}=e||{},s=(0,r.useMemo)((()=>[{id:"transcripts",label:"Transcripts",count:a.length},{id:"certificates",label:"Certificates",count:t.length+l.length},{id:"portfolio",label:"Portfolio Samples",count:n.length}]),[a,t,l,n]),i=s.reduce(((e,a)=>e+a.count),0),o=(e=0)=>e>9?"9+":e;return(0,z.jsxs)("section",{className:xl.section,children:[(0,z.jsxs)("div",{className:xl.head,children:[(0,z.jsx)("div",{className:xl.icon,children:(0,z.jsx)(_r,{})}),(0,z.jsx)("h4",{className:xl.title,children:"Documents"})]}),(0,z.jsxs)("div",{className:xl.content,children:[(0,z.jsxs)("div",{className:xl.count,children:[(0,z.jsx)("span",{className:xl.count__number,children:i}),(0,z.jsx)("span",{className:xl.count__label,children:"files uploaded"})]}),(0,z.jsx)("div",{className:xl.tags,children:s.map((e=>(0,z.jsxs)("div",{className:xl.tag,children:[(0,z.jsx)("span",{className:xl.tag__text,children:e.label}),(0,z.jsx)("span",{className:xl.tag__value,children:o(e.count)})]},e.id)))})]})]})},yl=e=>!!e&&Boolean(String(e.name||"").trim()||String(e.category||"").trim()||String(e.experience||"").trim()||String(e.role||"").trim()||e.duration),wl=e=>{var a;if(!e)return!1;const t="string"==typeof e.jobRole?e.jobRole:null===(a=e.jobRole)||void 0===a?void 0:a.label;return Boolean(String(t||"").trim()||String(e.company||"").trim()||String(e.description||"").trim()||String(e.achievements||"").trim()||e.duration)},Nl=({data:e,profileCompleteness:a,setStep:t,profileCompletionRibbon:r=null,onEditSection:l})=>{const{activities:n=[],experiences:s=[],academicTranscripts:i=[],testCertificates:o=[],languageCertificates:c=[],resumeFiles:d=[],educationLevel:u="",grades:_="",schoolName:p="",academicAchievements:m="",skipActivities:h=!1,skipExperience:v=!1}=e||{},f=i.length+o.length+c.length+d.length,g=!!(u||_||m||i.length),C=h?[]:n.filter(yl),b=v?[]:s.filter(wl),x=!!(null!=e&&e.intendedMajor||null!=e&&e.careerAspirations||null!=e&&e.researchInterests||null!=e&&e.whyAbroad||null!=e&&e.otherTestScore||null!=e&&e.languagesSpoken),j=C.map((e=>{let a=e.experience||"";return{id:e.id,title:e.name||"",subtitle:p,period:e.duration?`${e.duration} months`:"",description:a,tag:e.role||e.category||""}})),y=b.map((e=>{var a;
1let t=[e.description,e.achievements].filter(Boolean).join(" ");return{id:e.id,title:(null===(a=e.jobRole)||void 0===a?void 0:a.label)||e.jobRole||"",subtitle:e.company||"",period:e.duration?`${e.duration} months`:"",description:t,tag:e.type||"Internship"}})),w={activities:{id:"activities",title:"Extracurricular Activities",color:"green",headerIcon:(0,z.jsx)(k,{}),cardIcon:(0,z.jsx)(Gr,{}),items:j},work:{id:"work",title:"Work Experience",headerIcon:(0,z.jsx)(R,{}),cardIcon:(0,z.jsx)(Ur.h,{}),color:"orange",items:y}};return(0,z.jsxs)("div",{className:vt,children:[(0,z.jsx)("div",{className:gt,children:(0,z.jsx)(Xt,{data:e,profileCompleteness:a,setStep:t,showAvatarEdit:!0})}),r,(0,z.jsx)("div",{className:ft,children:(0,z.jsx)(pr,{classLabel:u,gpa:_,experienceCount:s.length,documentsCount:f})}),(0,z.jsx)(wr,{data:e}),(0,z.jsx)(cl,{data:e,onEdit:()=>null==l?void 0:l("academicPerformance"),isPopulated:g}),(0,z.jsx)(Fr,{title:w.activities.title,color:w.activities.color,items:w.activities.items,headerIcon:w.activities.headerIcon,cardIcon:w.activities.cardIcon,emptyText:"No extracurricular information added.",onEdit:()=>null==l?void 0:l("activities"),isPopulated:C.length>0},w.activities.id),(0,z.jsx)(Fr,{title:w.work.title,color:w.work.color,items:w.work.items,headerIcon:w.work.headerIcon,cardIcon:w.work.cardIcon,emptyText:"No work experience information added.",onEdit:()=>null==l?void 0:l("workExperience"),isPopulated:!v&&(b.length>0||d.length>0)},w.work.id),(0,z.jsxs)("div",{className:Ct,children:[(0,z.jsx)("div",{className:bt,children:(0,z.jsx)(bl,{data:e,onEdit:()=>null==l?void 0:l("interests"),isPopulated:x})}),(0,z.jsx)("div",{className:bt,children:(0,z.jsx)(jl,{data:e})})]})]})};var Sl,kl;function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Pl.apply(null,arguments)}function Il({title:e,titleId:a,...t},l){return r.createElement("svg",Pl({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Sl||(Sl=r.createElement("path",{opacity:.5,d:"M4 11.6148V22.4521C4 23.8428 4 24.5388 4.37733 25.0628C4.75467 25.5868 5.41467 25.8068 6.73467 26.2468L8.288 26.7641C10.1107 27.3721 11.0213 27.6761 11.94 27.5521L12 27.5441V8.87747C11.8498 8.89984 11.6984 8.91364 11.5467 8.9188C10.8267 8.94414 10.1147 8.70547 8.692 8.23214C6.828 7.6108 5.896 7.30014 5.18667 7.61614C4.9353 7.72798 4.70971 7.89047 4.524 8.09347C4 8.66814 4 9.64947 4 11.6148ZM28 20.3881V9.55214C28 8.16147 28 7.46547 27.6227 6.94147C27.2453 6.41747 26.5853 6.19747 25.2653 5.75747L23.712 5.24014C21.8893 4.63214 20.9787 4.32814 20.06 4.45214L20 4.4588V23.1255C20.1511 23.1032 20.3022 23.0895 20.4533 23.0841C21.1733 23.0588 21.8853 23.2975 23.308 23.7708C25.172 24.3921 26.104 24.7028 26.8133 24.3868C27.0647 24.275 27.2903 24.1125 27.476 23.9095C28 23.3348 28 22.3535 28 20.3881Z",fill:"#573B76"})),kl||(kl=r.createElement("path",{d:"M12.3293 8.81401C12.22 8.83801 12.1102 8.8589 12 8.87667V27.5433C12.8933 27.4047 13.692 26.8727 15.256 25.83L17.0987 24.6007C18.3467 23.7687 18.9707 23.3527 19.672 23.1873C19.7787 23.1607 19.888 23.1398 20 23.1247V4.45801C19.1067 4.59534 18.308 5.12867 16.744 6.17001L14.9013 7.39934C13.6533 8.23134 13.0293 8.64734 12.328 8.81267",fill:"#573B76"})))}const El=r.forwardRef(Il),Al=(t.p,{wrap:"ProfileAnalysisReport_wrap__a9JyR",content:"ProfileAnalysisReport_content__aWZJL",overall:"ProfileAnalysisReport_overall__28P22",overall__left:"ProfileAnalysisReport_overall__left__bMwu5",section:"ProfileAnalysisReport_section__tYBTo",projectIdeas:"ProfileAnalysisReport_projectIdeas__g1A1U",regenerating:"ProfileAnalysisReport_regenerating__9TzpQ",projectIdeas__head:"ProfileAnalysisReport_projectIdeas__head__4ZOGJ",projectIdeas__heading:"ProfileAnalysisReport_projectIdeas__heading__nFacV",projectIdeas__titleRow:"ProfileAnalysisReport_projectIdeas__titleRow__rS9N2",projectIdeas__icon:"ProfileAnalysisReport_projectIdeas__icon__FRLwU",projectIdeas__title:"ProfileAnalysisReport_projectIdeas__title__+536M",projectIdeas__subtitle:"ProfileAnalysisReport_projectIdeas__subtitle__ilbRz",projectIdeas__actions:"ProfileAnalysisReport_projectIdeas__actions__QFnoy",projectIdeas__filter:"ProfileAnalysisReport_projectIdeas__filter__NVv0n",projectIdeas__regenerate:"ProfileAnalysisReport_projectIdeas__regenerate__FTotu",generateIcon:"ProfileAnalysisReport_generateIcon__wdAMa",projectIdeas__regenerateBusy:"ProfileAnalysisReport_projectIdeas__regenerateBusy__EZ5ia",projectIdeas__mobileShortlist:"ProfileAnalysisReport_projectIdeas__mobileShortlist__cwk0d",projectStickyCtaIn:"ProfileAnalysisReport_projectStickyCtaIn__6J2ap",projectIdeas__filterIcon:"ProfileAnalysisReport_projectIdeas__filterIcon__1Xmuj",projectIdeas__count:"ProfileAnalysisReport_projectIdeas__count__-hhs6",projectCountBump:"ProfileAnalysisReport_projectCountBump__lFu+U",projectIdeas__mode:"ProfileAnalysisReport_projectIdeas__mode__K3uQ4",projectIdeas__error:"ProfileAnalysisReport_projectIdeas__error__oaJBs",projectIdeas__list:"ProfileAnalysisReport_projectIdeas__list__-PDh7",phase_loading:"ProfileAnalysisReport_phase_loading__9-8cX",projectIdeas__activeCarousel:"ProfileAnalysisReport_projectIdeas__activeCarousel__d8ebV",projectCard:"ProfileAnalysisReport_projectCard__qEsuW",projectIdeas__carouselShell:"ProfileAnalysisReport_projectIdeas__carouselShell__spWdU",projectIdeas__carouselNav:"ProfileAnalysisReport_projectIdeas__carouselNav__EbjQT",projectIdeas__carouselNext:"ProfileAnalysisReport_projectIdeas__carouselNext__nUP5t",projectCarouselNudge:"ProfileAnalysisReport_projectCarouselNudge__Rjili",projectIdeas__carouselStatus:"ProfileAnalysisReport_projectIdeas__carouselStatus__2aPxP",projectIdeas__carouselTrack:"ProfileAnalysisReport_projectIdeas__carouselTrack__QtNkA",projectIdeas__empty:"ProfileAnalysisReport_projectIdeas__empty__xo0-j",projectIdeas__emptyIcon:"ProfileAnalysisReport_projectIdeas__emptyIcon__rSJkv",projectIdeas__saved:"ProfileAnalysisReport_projectIdeas__saved__SVr2v",projectIdeas__savedHead:"ProfileAnalysisReport_projectIdeas__savedHead__j+NH+",projectIdeas__savedTitle:"ProfileAnalysisReport_projectIdeas__savedTitle__rxEF6",projectIdeas__floatingTop:"ProfileAnalysisReport_projectIdeas__floatingTop__+JMKt",projectTopPillIn:"ProfileAnalysisReport_projectTopPillIn__iWyKS",projectIdeas__loading:"ProfileAnalysisReport_projectIdeas__loading__pp1Ob",projectLoadingSweep:"ProfileAnalysisReport_projectLoadingSweep__FFOlT",projectIdeas__spinner:"ProfileAnalysisReport_projectIdeas__spinner__Ioflv",projectSpinner:"ProfileAnalysisReport_projectSpinner__gguD8",projectIdeas__miniSpinner:"ProfileAnalysisReport_projectIdeas__miniSpinner__Ch8pR",projectIdeas__errorBanner:"ProfileAnalysisReport_projectIdeas__errorBanner__iXcWn",projectIdeas__errorMessage:"ProfileAnalysisReport_projectIdeas__errorMessage__iIg3o",projectIdeas__errorActions:"ProfileAnalysisReport_projectIdeas__errorActions__H5zC+",projectIdeas__errorButton:"ProfileAnalysisReport_projectIdeas__errorButton__ZwIcR",projectIdeas__refreshLink:"ProfileAnalysisReport_projectIdeas__refreshLink__pZamb",selectable:"ProfileAnalysisReport_selectable__SyzoZ",shortlisted:"ProfileAnalysisReport_shortlisted__hklyz",projectCard__shortlist:"ProfileAnalysisReport_projectCard__shortlist__7BccB",busy:"ProfileAnalysisReport_busy__t3arj",projectCard__shortlistLabel:"ProfileAnalysisReport_projectCard__shortlistLabel__J0Ros",projectCard__head:"ProfileAnalysisReport_projectCard__head__hsFi2",active:"ProfileAnalysisReport_active__-QeYl",projectCard__tag:"ProfileAnalysisReport_projectCard__tag__mWE71",projectCard__tagIcon:"ProfileAnalysisReport_projectCard__tagIcon__8hTex",fadeForRegenerate:"ProfileAnalysisReport_fadeForRegenerate__rQLJQ",projectFadeForRegenerate:"ProfileAnalysisReport_projectFadeForRegenerate__EnYiW",savingToShortlist:"ProfileAnalysisReport_savingToShortlist__BVSvl",projectMoveToShortlist:"ProfileAnalysisReport_projectMoveToShortlist__1y4bS",projectHeartCelebrate:"ProfileAnalysisReport_projectHeartCelebrate__3PUlb",entering:"ProfileAnalysisReport_entering__ijGnb",projectCardEnter:"ProfileAnalysisReport_projectCardEnter__7sIkQ",shine:"ProfileAnalysisReport_shine__XVk1s",projectCardShine:"ProfileAnalysisReport_projectCardShine__T4MGS",projectCard__title:"ProfileAnalysisReport_projectCard__title__ndE69",projectCard__meta:"ProfileAnalysisReport_projectCard__meta__5yEXv",projectCard__metaItem:"ProfileAnalysisReport_projectCard__metaItem__nXFFC",projectCard__metaLabel:"ProfileAnalysisReport_projectCard__metaLabel__u1LMh",projectCard__effortIcon:"ProfileAnalysisReport_projectCard__effortIcon__5bm6-",projectCard__timeIcon:"ProfileAnalysisReport_projectCard__timeIcon__ItJcL",projectCard__effort:"ProfileAnalysisReport_projectCard__effort__BdENs",projectCard__effortTooltip:"ProfileAnalysisReport_projectCard__effortTooltip__60e4j",projectCard__body:"ProfileAnalysisReport_projectCard__body__ezvX4",projectCard__summary:"ProfileAnalysisReport_projectCard__summary__aFLP-",projectCard__why:"ProfileAnalysisReport_projectCard__why__SXOio",projectCard__whyText:"ProfileAnalysisReport_projectCard__whyText__Yfune",projectCard__whyLabel:"ProfileAnalysisReport_projectCard__whyLabel__QAZDt",projectCard__kodaPrompt:"ProfileAnalysisReport_projectCard__kodaPrompt__iKs4q",projectCard__kodaBubble:"ProfileAnalysisReport_projectCard__kodaBubble__BCKzA",projectCard__kodaCopy:"ProfileAnalysisReport_projectCard__kodaCopy__XJjem",projectCard__koda:"ProfileAnalysisReport_projectCard__koda__-LLaf",projectCard__duration:"ProfileAnalysisReport_projectCard__duration__KgjiA",legacy:"ProfileAnalysisReport_legacy__j6zNZ",regenerateModal:"ProfileAnalysisReport_regenerateModal__V7WHx",regenerateBackdropIn:"ProfileAnalysisReport_regenerateBackdropIn__gOAwN",regenerateModal__panel:"ProfileAnalysisReport_regenerateModal__panel__nm-X0",regeneratePanelIn:"ProfileAnalysisReport_regeneratePanelIn__1cM9+",regenerateModal__header:"ProfileAnalysisReport_regenerateModal__header__lx-rs",regenerateModal__body:"ProfileAnalysisReport_regenerateModal__body__QNU0r",regenerateModal__footer:"ProfileAnalysisReport_regenerateModal__footer__r2Ezm",regenerateModal__intro:"ProfileAnalysisReport_regenerateModal__intro__9hXnc",regenerateModal__scrollCue:"ProfileAnalysisReport_regenerateModal__scrollCue__HcwbZ",regenerateScrollHint:"ProfileAnalysisReport_regenerateScrollHint__tEV5q",regenerateModal__timeName:"ProfileAnalysisReport_regenerateModal__timeName__Pfo-I",regenerateModal__timeDetail:"ProfileAnalysisReport_regenerateModal__timeDetail__Rx3fx",regenerateModal__durationControl:"ProfileAnalysisReport_regenerateModal__durationControl__JIYfM",regenerateModal__durationTrack:"ProfileAnalysisReport_regenerateModal__durationTrack__u0aRJ",regenerateModal__durationCheckpoints:"ProfileAnalysisReport_regenerateModal__durationCheckpoints__jxhOo",passed:"ProfileAnalysisReport_passed__mznv5",regenerateModal__durationLabels:"ProfileAnalysisReport_regenerateModal__durationLabels__PT-4J",regenerateModal__close:"ProfileAnalysisReport_regenerateModal__close__CMBC6",regenerateModal__grid:"ProfileAnalysisReport_regenerateModal__grid__1J2bX",regenerateModal__fieldError:"ProfileAnalysisReport_regenerateModal__fieldError__gmEGt",regenerateModal__fieldLabel:"ProfileAnalysisReport_regenerateModal__fieldLabel__nQkyb",regenerateModal__chips:"ProfileAnalysisReport_regenerateModal__chips__qM-Bi",regenerateModal__inlineError:"ProfileAnalysisReport_regenerateModal__inlineError__12i5g",regenerateModal__questionNumber:"ProfileAnalysisReport_regenerateModal__questionNumber__IB3VX",regenerateModal__requiredMark:"ProfileAnalysisReport_regenerateModal__requiredMark__vPeJY",regenerateModal__optional:"ProfileAnalysisReport_regenerateModal__optional__w96Cg",regenerateModal__timeChips:"ProfileAnalysisReport_regenerateModal__timeChips__tNrMo",regenerateModal__cta:"ProfileAnalysisReport_regenerateModal__cta__EC64z",regenerateModal__validationError:"ProfileAnalysisReport_regenerateModal__validationError__1F3VK",regenerateModal__warningPanel:"ProfileAnalysisReport_regenerateModal__warningPanel__D+10a",regenerateModal__warningTitle:"ProfileAnalysisReport_regenerateModal__warningTitle__SEOEb",regenerateModal__warningBody:"ProfileAnalysisReport_regenerateModal__warningBody__khEVV",regenerateModal__warningIcon:"ProfileAnalysisReport_regenerateModal__warningIcon__1uDAE",regenerateModal__warningCopy:"ProfileAnalysisReport_regenerateModal__warningCopy__ewhWL",regenerateModal__warningChoice:"ProfileAnalysisReport_regenerateModal__warningChoice__Gsw8P",regenerateModal__warningCheck:"ProfileAnalysisReport_regenerateModal__warningCheck__zKE0k",regenerateModal__warningActions:"ProfileAnalysisReport_regenerateModal__warningActions__GFehi",impact:"ProfileAnalysisReport_impact__7CXC7",research:"ProfileAnalysisReport_research__wBBfG",portfolio:"ProfileAnalysisReport_portfolio__OGMau",leadership:"ProfileAnalysisReport_leadership__HoeSv",community:"ProfileAnalysisReport_community__CFF9Z",
1story:"ProfileAnalysisReport_story__FHHuj",consistency:"ProfileAnalysisReport_consistency__Oja4A",profileFit:"ProfileAnalysisReport_profileFit__e9lQN",exploration:"ProfileAnalysisReport_exploration__0yrSa",beginner:"ProfileAnalysisReport_beginner__TXQw8",projectCard__kodaText:"ProfileAnalysisReport_projectCard__kodaText__DusEa",projectCard__kodaIconSend:"ProfileAnalysisReport_projectCard__kodaIconSend__974Mf",projectCard__kodaIconArrow:"ProfileAnalysisReport_projectCard__kodaIconArrow__RMMau"});var Ml=t(57754);const Rl={inner:"ScoreCards_inner__jEml-",card:"ScoreCards_card__pUbrR"},Ll={card:"ScoreCard_card__VZ6Wh",yellow:"ScoreCard_yellow__CJCUk",pill:"ScoreCard_pill__jX9iq",pill__dot:"ScoreCard_pill__dot__JHCDI",pill__text:"ScoreCard_pill__text__5rNwn",note:"ScoreCard_note__x7Pdd",note__inner:"ScoreCard_note__inner__dXjsZ",note__title:"ScoreCard_note__title__B+oik",note__text:"ScoreCard_note__text__B6R3u",icon:"ScoreCard_icon__0cziv",blue:"ScoreCard_blue__JlFI8",green:"ScoreCard_green__6o1sq",head:"ScoreCard_head__PK+Nn",info:"ScoreCard_info__lHYge",percent:"ScoreCard_percent__RVang","icon--process":"ScoreCard_icon--process__iXjD8",descr:"ScoreCard_descr__sG46A"};function Bl({value:e=0}){const a=Math.max(0,Math.min(100,Number(e)));return(0,z.jsxs)("svg",{viewBox:"0 0 44 44",width:"44",height:"44",children:[(0,z.jsx)("circle",{cx:"22",cy:"22",r:"16",fill:"none",stroke:"#ECEFF3",strokeWidth:"6"}),(0,z.jsx)("circle",{cx:"22",cy:"22",r:"16",fill:"none",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round",pathLength:"100",strokeDasharray:`${a} ${100-a}`,transform:"rotate(-90 22 22)"})]})}const Dl=({title:e,percent:a,description:t,noteTitle:r,noteText:l,variant:n="orange",badgeType:s="progress",icon:i})=>(0,z.jsxs)("div",{className:`${Ll.card} ${Ll[n]}`,children:[(0,z.jsxs)("div",{className:Ll.head,children:[(0,z.jsxs)("div",{className:Ll.info,children:[(0,z.jsxs)("div",{className:Ll.pill,children:[(0,z.jsx)("span",{className:Ll.pill__dot}),(0,z.jsx)("span",{className:Ll.pill__text,children:e})]}),(0,z.jsxs)("span",{className:Ll.percent,children:[a,"%"]}),(0,z.jsx)("div",{className:Ll.descr,children:t})]}),"progress"===s?(0,z.jsx)("div",{className:`${Ll.icon} ${Ll["icon--progress"]}`,children:(0,z.jsx)(Bl,{value:a})}):i?(0,z.jsx)("div",{className:Ll.icon,children:(0,z.jsx)(i,{"aria-hidden":"true"})}):null]}),(0,z.jsx)("div",{className:Ll.note,children:(0,z.jsxs)("div",{className:Ll.note__inner,children:[(0,z.jsx)("span",{className:Ll.note__title,children:r})," ",(0,z.jsx)("span",{className:Ll.note__text,children:l})]})})]}),Tl=({items:e,className:a=""})=>(0,z.jsx)("div",{className:`${Rl.cards} ${a}`,children:(0,z.jsx)("div",{className:Rl.inner,children:e.map((e=>(0,z.jsx)("div",{className:Rl.card,children:(0,z.jsx)(Dl,{...e})},e.id)))})}),Fl="KodaBlock_wrap__XNKMd",$l="KodaBlock_head__KKEg6",Hl="KodaBlock_head__icon__I969q",Ol="KodaBlock_title__xfz01",Vl="KodaBlock_content__E8KqY",Gl="KodaBlock_note__O-92Y",Ul="KodaBlock_note__text__osp-w",Wl="KodaBlock_inner__bCpNc",Zl="KodaBlock_interests__8bw5Z",ql="KodaBlock_interests__title__GXULi",Yl="KodaBlock_interests__list__PsTXl",Kl="KodaBlock_interests__item__5YDnN",zl="KodaBlock_questions__rMZhU",Xl="KodaBlock_question__9bRXl",Jl="KodaBlock_question__icon__RRlj3",Ql="KodaBlock_question__text__uFTbV",en="KodaBlock_question__arrows__lHwUu";var an=t(72171),tn=t(14935),rn=t(88757),ln=t(73327);const nn=["HIGH GPA","GOOD EXTRACURRICULAR","HIGH APPLICATION READINESS"],sn=[{id:"understand_report",label:"Help me understand this report"},{id:"actionable_insights",label:"List out actionable insights for me"}],on=({openChatHandler:e,sendChatMessageHandler:a})=>(0,z.jsxs)("div",{className:Fl,children:[(0,z.jsxs)("div",{className:$l,children:[(0,z.jsx)("div",{className:Hl,children:(0,z.jsx)("img",{src:an,alt:"Koda"})}),(0,z.jsxs)("span",{className:Ol,children:["Koda AI ",(0,z.jsx)(tn.h,{})]})]}),(0,z.jsxs)("div",{className:Vl,children:[(0,z.jsx)("div",{className:Gl,children:(0,z.jsx)("p",{className:Ul,children:"I notice your academic path is solid in Math and Science, You’re closer than you think—most of your strengths are already in place. Add a few hours of volunteering and finalize those documents, and your profile jumps from ‘good’ to ‘great."})}),(0,z.jsxs)("div",{className:Wl,children:[(0,z.jsxs)("div",{className:Zl,children:[(0,z.jsx)("span",{className:ql,children:"Point of interest:"}),(0,z.jsx)("ul",{className:Yl,children:nn.map((e=>(0,z.jsx)("li",{className:Kl,children:e},e)))})]}),(0,z.jsx)("div",{className:zl,children:sn.map((t=>(0,z.jsxs)("div",{className:Xl,onClick:()=>(t=>{ct.A.track(`Asked Koda about ${t}`);let r="";"understand_report"===t?r="Help me understand this profile analysis report based on my academics and extracurricular scores.":"actionable_insights"===t&&(r="List out actionable insights and next steps based on my profile analysis report."),null==e||e(),null==a||a(r)})(t.id),children:[(0,z.jsx)("div",{className:Jl,children:(0,z.jsx)(rn.h,{})}),(0,z.jsx)("span",{className:Ql,children:t.label}),(0,z.jsx)("div",{className:en,children:(0,z.jsx)(ln.h,{})})]},t.id)))})]})]})]});var cn,dn=t(59043);function un(){return un=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},un.apply(null,arguments)}function _n({title:e,titleId:a,...t},l){return r.createElement("svg",un({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,cn||(cn=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.464 3.464C2 4.93 2 7.286 2 12C2 16.714 2 19.071 3.464 20.535C4.93 22 7.286 22 12 22C16.714 22 19.071 22 20.535 20.535C22 19.072 22 16.714 22 12C22 7.28
16 22 4.929 20.535 3.464C19.072 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464ZM13.75 10C13.75 10.414 14.086 10.75 14.5 10.75H15.19L13.177 12.763C13.1538 12.7863 13.1262 12.8048 13.0958 12.8174C13.0654 12.83 13.0329 12.8364 13 12.8364C12.9671 12.8364 12.9346 12.83 12.9042 12.8174C12.8738 12.8048 12.8462 12.7863 12.823 12.763L11.237 11.177C10.9088 10.8491 10.4639 10.6649 10 10.6649C9.53609 10.6649 9.09115 10.8491 8.763 11.177L6.47 13.47C6.39631 13.5387 6.33721 13.6215 6.29622 13.7135C6.25523 13.8055 6.23319 13.9048 6.23141 14.0055C6.22963 14.1062 6.24816 14.2062 6.28588 14.2996C6.3236 14.393 6.37974 14.4778 6.45096 14.549C6.52218 14.6203 6.60701 14.6764 6.7004 14.7141C6.79379 14.7518 6.89382 14.7704 6.99452 14.7686C7.09523 14.7668 7.19454 14.7448 7.28654 14.7038C7.37854 14.6628 7.46134 14.6037 7.53 14.53L9.823 12.237C9.84622 12.2137 9.87381 12.1952 9.90418 12.1826C9.93456 12.17 9.96712 12.1636 10 12.1636C10.0329 12.1636 10.0654 12.17 10.0958 12.1826C10.1262 12.1952 10.1538 12.2137 10.177 12.237L11.763 13.823C12.0912 14.1509 12.5361 14.3351 13 14.3351C13.4639 14.3351 13.9088 14.1509 14.237 13.823L16.25 11.811V12.5C16.25 12.6989 16.329 12.8897 16.4697 13.0303C16.6103 13.171 16.8011 13.25 17 13.25C17.1989 13.25 17.3897 13.171 17.5303 13.0303C17.671 12.8897 17.75 12.6989 17.75 12.5V10C17.75 9.80109 17.671 9.61032 17.5303 9.46967C17.3897 9.32902 17.1989 9.25 17 9.25H14.5C14.3011 9.25 14.1103 9.32902 13.9697 9.46967C13.829 9.61032 13.75 9.80109 13.75 10Z",fill:"#573B76"})))}const pn=r.forwardRef(_n),mn=(t.p,({data:e,openChatHandler:a,sendChatMessageHandler:t,setKodaContext:l})=>{const{rings:n,average:s}=(0,r.useMemo)((()=>{const a=(0,dn.$V)(e),t=(0,dn.Fs)(e),r=(0,dn.gV)(a,t);return{rings:[{label:"Academics",value:a,color:"#FF8A3C"},{label:"Extracurricular Depth",value:t,color:"#FFC857"},{label:"Average Percentage",value:r,color:"#7E6BF5"}],average:r}}),[e]);(0,r.useEffect)((()=>{null==l||l({source:"profile_analysis"})}),[l]);const i=(0,r.useMemo)((()=>(0,dn.v9)(e)),[e]);return(0,z.jsx)("div",{className:Al.wrap,children:(0,z.jsx)("div",{className:Al.section,children:(0,z.jsxs)("div",{className:hr,children:[(0,z.jsxs)("div",{className:fr,children:[(0,z.jsx)("span",{className:Al.icon,children:(0,z.jsx)(pn,{})}),(0,z.jsx)("span",{className:Cr,children:"Profile Score"})]}),(0,z.jsxs)("div",{className:Al.content,children:[(0,z.jsxs)("div",{className:Al.overall,children:[(0,z.jsx)("div",{className:Al.overall__left,children:(0,z.jsx)(Ml.A,{rings:n,average:s,centerFontSize:18})}),(0,z.jsx)("div",{className:Al.overall__right,children:(0,z.jsx)(Tl,{items:i})})]}),(0,z.jsx)("div",{className:Al.section,children:(0,z.jsx)(on,{openChatHandler:a,sendChatMessageHandler:t})})]})]})})})}),hn={wrap:"DocVault_wrap__+JHyR",head:"DocVault_head__K-ci0",head__filters:"DocVault_head__filters__i6Ubf",filterBtn:"DocVault_filterBtn__9rH47",filters:"DocVault_filters__Wwrvj",filters__wrap:"DocVault_filters__wrap__zjL-O",modalIn:"DocVault_modalIn__EpSYu",filters__head:"DocVault_filters__head__nh+bR",filters__title:"DocVault_filters__title__EKgJ6",filters__list:"DocVault_filters__list__s4vsp",filters__backdrop:"DocVault_filters__backdrop__0AQkt",filters__close:"DocVault_filters__close__LCif2",filter:"DocVault_filter__+4GIC",active:"DocVault_active__T6b97",filter__label:"DocVault_filter__label__46f3U",content:"DocVault_content__Dh0QC",title:"DocVault_title__Z4EXj",list:"DocVault_list__UGZMt",list__item:"DocVault_list__item__l6Ni8",modal:"DocVault_modal__9giEh",sheetIn:"DocVault_sheetIn__LqDvn"},vn={card:"DocumentCard_card__-tuK0",head:"DocumentCard_head__6PTMp",icon:"DocumentCard_icon__zmRra",meta:"DocumentCard_meta__FA6q2",name:"DocumentCard_name__CP3FQ",category:"DocumentCard_category__8pKVO",info:"DocumentCard_info__PeZAt",info__item:"DocumentCard_info__item__LxMQM",info__title:"DocumentCard_info__title__04E7l",info__value:"DocumentCard_info__value__PESP7",footer:"DocumentCard_footer__O1egX",btn:"DocumentCard_btn__baDam",btn__icon:"DocumentCard_btn__icon__6nRD3",btn__text:"DocumentCard_btn__text__1u-C3",removeBtn:"DocumentCard_removeBtn__oUf0h",modal:"DocumentCard_modal__6kQWa",modal__head:"DocumentCard_modal__head__eHYFN",modal__close:"DocumentCard_modal__close__9uPxY",modal__title:"DocumentCard_modal__title__arXTY",modal__content:"DocumentCard_modal__content__GRBiD",modal__inner:"DocumentCard_modal__inner__oZXtl",previewObject:"DocumentCard_previewObject__4TNwH"};var fn,gn;function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Cn.apply(null,arguments)}function bn({title:e,titleId:a,...t},l){return r.createElement("svg",Cn({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a}
1,e):null,fn||(fn=r.createElement("g",{clipPath:"url(#clip0_3006_804)"},r.createElement("path",{d:"M7 7.66602V11.666",stroke:"#D12B32",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M9.6665 7.66602V11.666",stroke:"#D12B32",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M12.9998 4.33203V13.6654C12.9998 14.019 12.8594 14.3581 12.6093 14.6082C12.3593 14.8582 12.0201 14.9987 11.6665 14.9987H4.99984C4.64622 14.9987 4.30708 14.8582 4.05703 14.6082C3.80698 14.3581 3.6665 14.019 3.6665 13.6654V4.33203",stroke:"#D12B32",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M2.3335 4.33203H14.3335",stroke:"#D12B32",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M5.6665 4.33268V2.99935C5.6665 2.64573 5.80698 2.30659 6.05703 2.05654C6.30708 1.80649 6.64622 1.66602 6.99984 1.66602H9.6665C10.0201 1.66602 10.3593 1.80649 10.6093 2.05654C10.8594 2.30659 10.9998 2.64573 10.9998 2.99935V4.33268",stroke:"#D12B32",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}))),gn||(gn=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_3006_804"},r.createElement("rect",{width:16,height:16,fill:"white"})))))}const xn=r.forwardRef(bn);t.p;var jn=t(93044),yn=t(28594);const wn={transcripts:"Transcript",certificates:"Certificate",resume:"Resume"},Nn=({name:e,size:a,type:t,category:l,uploadedAt:n,ext:s,file:i,onRemove:o=()=>{}})=>{const c=(0,r.useMemo)((()=>(e=>{if(!e&&0!==e)return"";const a=e/1024;return a<1024?`${Math.round(a)} KB`:`${(a/1024).toFixed(1)} MB`})(a)),[a]),d=(0,r.useMemo)((()=>(e=>{if(!e)return"";const a=e instanceof Date?e:new Date(e);return Number.isNaN(a.getTime())?"":a.toLocaleDateString()})(n)),[n]),u=wn[l]||"Document",[_,p]=(0,r.useState)(!1),[m,h]=(0,r.useState)(""),[v,f]=(0,r.useState)(null),[g,C]=(0,r.useState)(!1),b=()=>{v&&v.startsWith("blob:")&&URL.revokeObjectURL(v),p(!1),f(null)},x=e.toLowerCase().endsWith(".pdf");return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:vn.card,children:[(0,z.jsxs)("div",{className:vn.head,children:[(0,z.jsx)("div",{className:vn.icon,children:(0,z.jsx)(ea.h,{})}),(0,z.jsxs)("div",{className:vn.meta,children:[(0,z.jsx)("div",{className:vn.name,title:e,children:e}),(0,z.jsx)("div",{className:vn.category,children:u})]})]}),(0,z.jsxs)("div",{className:vn.info,children:[c&&(0,z.jsxs)("div",{className:vn.info__item,children:[(0,z.jsx)("span",{className:vn.info__title,children:"Size:"}),(0,z.jsx)("span",{className:vn.info__value,children:c})]}),d&&(0,z.jsxs)("div",{className:vn.info__item,children:[(0,z.jsx)("span",{className:vn.info__title,children:"Uploaded:"}),(0,z.jsx)("span",{className:vn.info__value,children:d})]})]}),(0,z.jsxs)("div",{className:vn.footer,children:[(0,z.jsxs)("button",{type:"button",className:vn.btn,onClick:async()=>{if(!g){C(!0),h("");try{const a=await(0,va.Wd)(i.fileId),t=URL.createObjectURL(a.data);if(e.toLowerCase().endsWith(".pdf"))f(t),p(!0);else{const a=document.createElement("a");a.href=t,a.setAttribute("download",e),document.body.appendChild(a),a.click(),a.parentNode.removeChild(a),URL.revokeObjectURL(t)}}catch(e){console.error("File processing error:",e),h("Failed to process file. Please try again.")}finally{C(!1)}}},disabled:g,children:[(0,z.jsx)("span",{className:vn.btn__icon,children:(0,z.jsx)(jn.h,{})}),(0,z.jsx)("span",{className:vn.btn__text,children:g?"Loading...":x?"Preview":"Download"})]}),(0,z.jsx)("button",{type:"button",className:vn.removeBtn,onClick:o,children:(0,z.jsx)(xn,{})})]})]}),(0,z.jsxs)(yn.A,{show:_,onHide:b,size:"lg",centered:!0,className:vn.modal,children:[(0,z.jsxs)("div",{className:vn.modal__head,children:[(0,z.jsx)("span",{className:vn.modal__title,children:e}),(0,z.jsx)("button",{type:"button",className:vn.modal__close,onClick:b})]}),(0,z.jsxs)("div",{className:vn.modal__content,children:[m&&(0,z.jsx)("div",{className:vn.errorMsg,children:m}),!m&&v&&(0,z.jsx)("div",{className:vn.modal__inner,children:(0,z.jsx)("iframe",{src:v,title:e,className:vn.previewFrame})})]})]})]})};var Sn;function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},kn.apply(null,arguments)}function Pn({title:e,titleId:a,...t},l){return r.createElement("svg",kn({width:17,height:11,viewBox:"0 0 17 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Sn||(Sn=r.createElement("path",{d:"M0.5 0.75H15.5M3.385 5.5H12.615M6.27 10.25H9.73",stroke:"#573B76",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const In=r.forwardRef(Pn);t.p;var En=t(66655);const An=[{id:"all",label:"All Documents"},{id:"transcripts",label:"Transcripts"},{id:"certificates",label:"Certificates"},{id:"resume",label:"Resume"}],Mn=({data:e})=>{const a=(0,H.useMediaQuery)({query:"(max-width:767px)"}),t=(0,mt.wA)(),[l,n]=(0,r.useState)(!1),[s,i]=(0,r.useState)(e||{});(0,r.useEffect)((()=>{i(e||{})}),[e]);const{academicTranscripts:o=[],testCertificates:c=[],languageCertificates:d=[],resumeFiles:u=[]}=s||{},_=(0,r.useMemo)((()=>{const e=(e,a,t)=>{const r=((e="")=>{const a=e.toLowerCase().match(/\.([a-z0-9]+)$/);return a?a[1]:""})((null==e?void 0:e.name)||"");return{id:`${t}-${e.name}-${e.size}`,name:e.name,size:e.size,type:e.type,category:a,uploadedAt:e.uploadedAt||null,sourceKey:t,file:e,ext:r}},a=[];return o.forEach((t=>a.push(e(t,"transcripts","academicTranscripts")))),u.forEach((t=>
1a.push(e(t,"resume","resumeFiles")))),c.forEach((t=>a.push(e(t,"certificates","testCertificates")))),d.forEach((t=>a.push(e(t,"certificates","languageCertificates")))),a}),[o,u,c,d]),[p,m]=(0,r.useState)("all"),h=(0,r.useMemo)((()=>"all"===p?_:_.filter((e=>e.category===p))),[_,p]),v=An.find((e=>e.id===p))||An[0],f="all"===p?"All Documents":v.label,g=()=>{n(!1)};return(0,z.jsxs)("section",{className:hn.wrap,children:[(0,z.jsxs)("div",{className:hn.head,children:[a&&(0,z.jsxs)("span",{className:hn.title,children:[f," (",h.length,")"]}),(0,z.jsxs)("div",{className:hn.head__filters,children:[(0,z.jsx)("button",{className:hn.filterBtn,onClick:()=>{n(!0)},type:"button",children:(0,z.jsx)(In,{})}),(!a||l)&&(0,z.jsxs)("div",{className:hn.filters,children:[a&&(0,z.jsx)("div",{className:hn.filters__backdrop,onClick:g}),(0,z.jsxs)("div",{className:hn.filters__wrap,children:[a&&(0,z.jsxs)("div",{className:hn.filters__head,children:[(0,z.jsx)("span",{className:hn.filters__title,children:"Filters"}),(0,z.jsxs)("button",{type:"button",className:hn.filters__close,onClick:g,children:[(0,z.jsx)("span",{}),(0,z.jsx)("span",{})]})]}),(0,z.jsx)("div",{className:`${hn.filters__list} ${!a||l?hn.active:""}`,children:An.map((e=>(0,z.jsx)("button",{type:"button",className:`${hn.filter} ${e.id===p?hn.active:""}`,onClick:()=>{m(e.id),a&&n(!1)},children:(0,z.jsx)("span",{className:hn.filter__label,children:e.label})},e.id)))})]})]})]})]}),(0,z.jsxs)("div",{className:hn.content,children:[!a&&(0,z.jsxs)("span",{className:hn.title,children:[f," (",h.length,")"]}),(0,z.jsxs)("div",{className:hn.list,children:[h.map((e=>(0,z.jsx)("div",{className:hn.list__item,children:(0,z.jsx)(Nn,{name:e.name,size:e.size,type:e.type,category:e.category,uploadedAt:e.uploadedAt,ext:e.ext,file:e.file,onRemove:()=>(e=>{if(!s||null==e||!e.sourceKey)return;const{sourceKey:a,file:r}=e,l=(Array.isArray(s[a])?s[a]:[]).filter((e=>null!=e&&e.fileId&&null!=r&&r.fileId?e.fileId!==r.fileId:!((null==e?void 0:e.name)===(null==r?void 0:r.name)&&(null==e?void 0:e.size)===(null==r?void 0:r.size)))),n={...s,[a]:l};i(n),t((0,En.mw)(n))})(e)})},e.id))),!h.length&&(0,z.jsx)("div",{className:hn.empty,children:(0,z.jsx)("span",{className:hn.empty__text,children:"No documents in this category yet."})})]})]})]})};var Rn,Ln=t(58306),Bn=t(3223),Dn=t(85597),Tn=t(16157);function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Fn.apply(null,arguments)}function $n({title:e,titleId:a,...t},l){return r.createElement("svg",Fn({width:12,height:15,viewBox:"0 0 12 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,Rn||(Rn=r.createElement("path",{d:"M6.63218 6.38585C6.72801 6.09836 7.13399 6.09836 7.22983 6.38585L7.79175 8.07337C7.91544 8.44433 8.12383 8.78138 8.40041 9.05781C8.67698 9.33423 9.01415 9.54244 9.38518 9.66592L11.0718 10.2278C11.3593 10.3237 11.3593 10.7297 11.0718 10.8255L9.3843 11.3874C9.01335 11.5111 8.6763 11.7195 8.39987 11.9961C8.12344 12.2727 7.91523 12.6098 7.79175 12.9808L7.22983 14.6675C7.20916 14.7304 7.16915 14.7853 7.11549 14.8241C7.06183 14.863 6.99726 14.8839 6.931 14.8839C6.86474 14.8839 6.80018 14.863 6.74652 14.8241C6.69286 14.7853 6.65284 14.7304 6.63218 14.6675L6.07026 12.98C5.94666 12.6091 5.7384 12.2721 5.46198 11.9957C5.18556 11.7193 4.84857 11.511 4.4777 11.3874L2.79018 10.8255C2.72723 10.8048 2.67241 10.7648 2.63354 10.7112C2.59468 10.6575 2.57375 10.5929 2.57375 10.5267C2.57375 10.4604 2.59468 10.3958 2.63354 10.3422C2.67241 10.2885 2.72723 10.2485 2.79018 10.2278L4.4777 9.66592C4.84857 9.54233 5.18556 9.33407 5.46198 9.05765C5.7384 8.78122 5.94666 8.44423 6.07026 8.07337L6.63218 6.38585ZM3.26673 1.9436C3.27922 1.90587 3.30329 1.87304 3.33551 1.84977C3.36772 1.8265 3.40646 1.81397 3.4462 1.81397C3.48594 1.81397 3.52467 1.8265 3.55689 1.84977C3.58911 1.87304 3.61317 1.90587 3.62567 1.9436L3.96282 2.95593C4.11354 3.40722 4.46725 3.76092 4.91853 3.91164L5.93086 4.2488C5.96859 4.26129 6.00142 4.28535 6.02469 4.31757C6.04796 4.34979 6.06049 4.38852 6.06049 4.42826C6.06049 4.46801 6.04796 4.50674 6.02469 4.53896C6.00142 4.57117 5.96859 4.59524 5.93086 4.60773L4.91853 4.94489C4.69596 5.01904 4.49372 5.14401 4.32783 5.3099C4.16195 5.47578 4.03697 5.67802 3.96282 5.90059L3.62567 6.91293C3.61317 6.95066 3.58911 6.98349 3.55689 7.00676C3.52467 7.03003 3.48594 7.04255 3.4462 7.04255C3.40646 7.04255 3.36772 7.03003 3.33551 7.00676C3.30329 6.98349 3.27922 6.95066 3.26673 6.91293L2.92958 5.90059C2.85542 5.67802 2.73045 5.47578 2.56457 5.3099C2.39868 5.14401 2.19644 5.01904 1.97387 4.94489L0.961533 4.60773C0.923805 4.59524 0.890973 4.57117 0.867704 4.53896C0.844434 4.50674 0.831909 4.46801 0.831909 4.42826C0.831909 4.38852 0.844434 4.34979 0.867704 4.31757C0.890973 4.28535 0.923805 4.26129 0.961533 4.2488L1.97387 3.91164C2.19644 3.83749 2.39868 3.71252 2.56457 3.54663C2.73045 3.38074 2.85542 3.1785 2.92958 2.95593L3.26673 1.9436ZM9.42525 1.02971C9.43385 1.0049 9.44997 0.983391 9.47136 0.968167C9.49275 0.952944 9.51835 0.944763 9.54461 0.944763C9.57086 0.944763 9.59646 0.952944 9.61785 0.968167C9.63924 0.983391 9.65536 1.0049 9.66396 1.02971L9.88873 1.70402C9.98892 2.00545 10.225 2.24155 10.5264 2.34174L11.2008 2.56651C11.2256 2.57511 11.2471 2.59122 11.2623 2.61261C11.2775 2.634 11.2857 2.65961 11.2857 2.68586C11.2857 2.71212 11.2775 2.73772 11.2623 2.75911C11.2471 2.7805 11.2256 2.79662 11.2008 2.80522L10.5264 3.02999C10.3779 3.0794 10.2429 3.16277 10.1322 3.27347C10.0215 3.38417 9.93815 3.51916 9.88873 3.6677L9.66396 4.34201C9.65536 4.36682 9.63924 4.38833 9.61785 4.40355C9.59646 4.41878 9.57086 4.42696 9.54461 4.42696C9.51835 4.42696 9.49275 4.41878 9.47136 4.40355C9.44997 4.38833 9.43385 4.36682 9.42525 4.34201L9.20048 3.6677C9.15106 3.51916 9.0677 3.38417 8.957 3.27347C8.8463 3.16277 8.71131 3.0794 8.56276 3.02999L7.88932 2.80522C7.86452 2.79662 7.84301 2.7805 7.82778 2.75911C7.81256 2.73772 7.80438 2.71212 7.80438 2.68586C7.80438 2.65961 7.81256 2.634 7.82778 2.61261C7.84301 2.59122 7.86452 2.57511 7.88932 2.56651L8.56363 2.34174C8.86507 2.24155 9.10116 2.00545 9.20135 1.70402L9.42525 1.03058V1.02971Z",fill:"#EE7734"})))}const Hn=r.forwardRef($n);t.p;var On,Vn=t(88073);function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Gn.apply(null,arguments)}function Un({title:e,titleId:a,...t},l){return r.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",width:9,height:10,viewBox:"0 0 9 10",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,On||(On=r.createElement("path",{d:"M4.34453 10.0027C4.48375 10.0027 4.61726 9.9441 4.7157 9.83987C4.81415 9.73564 4.86945 9.59427 4.86945 9.44686V1.89584L7.64731 4.83821C7.74588 4.94258 7.87956 5.00121 8.01895 5.00121C8.15834 5.00121 8.29203 4.94258 8.39059 4.83821C8.48916 4.73385 8.54453 4.5923 8.54453 4.44471C8.54453 4.29712 8.48916 4.15557 8.39059 4.05121L4.71617 0.160646C4.66741 0.108887 4.60949 0.0678214 4.54572 0.0398022C4.48194 0.0117829 4.41358 -0.00263977 4.34453 -0.00263977C4.27549 -0.00263977 4.20712 0.0117829 4.14335 0.0398022C4.07958 0.0678214 4.02165 0.108887 3.97289 0.160646L0.29847 4.05121C0.249665 4.10288 0.210952 4.16423 0.184539 4.23175C0.158126 4.29927 0.144531 4.37163 0.144531 4.44471C0.144531 4.5923 0.199905 4.73385 0.29847 4.83821C0.397035 4.94258 0.530719 5.00121 0.670111 5.00121C0.809504 5.00121 0.943188 4.94258 1.04175 4.83821L3.81961 1.89584V9.44686C3.81961 9.59427 3.87492 9.73564 3.97336 9.83987C4.0718 9.9441 4.20531 10.0027 4.34453 10.0027Z",fill:"#EE7734"})))}const Wn=r.forwardRef(Un);t.p;var Zn=t(6536),qn=t(74856),Yn=t(47133),Kn=t(40903),zn=t(81773);t.p;var Xn=t(85369);const Jn={Technical:"What problem would you like to solve by building something technical?",Research:"What topic or question are you most curious to investigate?",Cultural:"What community, identity, or social gap would you like your project to explore?",Business:"Would you rather build a real venture, create a business plan, or analyze a market?",Data:"What kind of data, patterns, or decisions would you enjoy analyzing?"}
1,Qn=["profile-builder-saved-project-ideas","profile-builder-project-ideas-generated"],es={"1-2_hours_week":{label:"Light",detail:"1–2 hrs/week"},"3-5_hours_week":{label:"Medium",detail:"3–5 hrs/week"},"6-10_hours_week":{label:"Intensive",detail:"6–10 hrs/week"},sprint:{label:"Sprint",detail:"Focused build"}},as={"1-2_hours_week":{label:"Light",detail:"1–2 hours/week"},"3-5_hours_week":{label:"Medium",detail:"3–5 hours/week"},"6-10_hours_week":{label:"Intensive",detail:"6–10 hours/week"},sprint:{label:"Sprint",detail:"Short-term focused build"}},ts=[{value:"short",label:"Short"},{value:"2_weeks",label:"2 weeks"},{value:"4_weeks",label:"4 weeks"},{value:"6_weeks",label:"6 weeks"},{value:"8_weeks",label:"8 weeks"},{value:"10_weeks",label:"10 weeks"},{value:"flexible",label:"Flexible"}],rs=({item:e})=>{const a=as[e.estimatedTimeCommitment],t=1===(r=e.estimatedDurationWeeks)?"Short":Number.isInteger(r)?`${r} weeks`:null;var r;return e.whyThisFits||a||t?(0,z.jsxs)("div",{className:Al.projectCard__summary,children:[e.whyThisFits&&(0,z.jsx)("p",{className:Al.projectCard__why,children:(0,z.jsxs)("span",{className:Al.projectCard__whyText,children:[(0,z.jsx)("strong",{className:Al.projectCard__whyLabel,children:"Why this fits:"})," ",e.whyThisFits]})}),a&&(0,z.jsxs)("div",{className:Al.projectCard__meta,children:[a&&(0,z.jsxs)("span",{className:Al.projectCard__metaItem,children:[(0,z.jsxs)("span",{className:Al.projectCard__metaLabel,children:[(0,z.jsx)(Yn.h,{className:Al.projectCard__effortIcon,"aria-hidden":"true"}),"Effort"]}),(0,z.jsxs)("span",{className:Al.projectCard__effort,tabIndex:"0","aria-label":`Effort: ${a.label}, ${a.detail}`,children:[a.label,(0,z.jsx)("span",{className:Al.projectCard__effortTooltip,role:"tooltip",children:a.detail})]})]}),(0,z.jsxs)("span",{className:Al.projectCard__metaItem,children:[(0,z.jsxs)("span",{className:Al.projectCard__metaLabel,children:[(0,z.jsx)(Kn.h,{className:Al.projectCard__timeIcon,"aria-hidden":"true"}),"Time"]}),(0,z.jsx)("span",{className:`${Al.projectCard__duration} ${t?"":Al.legacy}`,"aria-label":t?`Duration: ${t}`:"Duration was not estimated for this older idea",children:t||"-"})]})]})]}):null},ls=e=>{const a=String(e||"").toLowerCase();return a.includes("impact")?{className:Al.impact,icon:"↗"}:a.includes("research")?{className:Al.research,icon:"⌕"}:a.includes("portfolio")?{className:Al.portfolio,icon:"◱"}:a.includes("leadership")?{className:Al.leadership,icon:"◆"}:a.includes("community")?{className:Al.community,icon:"✦"}:a.includes("story")?{className:Al.story,icon:"✎"}:a.includes("consistency")?{className:Al.consistency,icon:"●"}:a.includes("profile")?{className:Al.profileFit,icon:"★"}:a.includes("exploration")?{className:Al.exploration,icon:"⌁"}:{className:Al.beginner,icon:"+"}},ns=()=>(0,z.jsx)("span",{className:Al.projectIdeas__miniSpinner,"aria-hidden":"true"}),ss=({data:e,onCompleteProfile:a,onSaveProfile:t,openChatHandler:l,sendChatMessageHandler:n,setKodaContext:s})=>{var i;const[o,c]=(0,r.useState)([]),[d,u]=(0,r.useState)([]),[_,p]=(0,r.useState)("loading"),[m,h]=(0,r.useState)(null),[v,f]=(0,r.useState)(!1),[g,C]=(0,r.useState)(!1),[b,x]=(0,r.useState)(!1),[j,y]=(0,r.useState)({}),[w,N]=(0,r.useState)("idle"),[S,k]=(0,r.useState)("before"),[P,I]=(0,r.useState)(null),[E,A]=(0,r.useState)(null),[M,R]=(0,r.useState)(null),[L,B]=(0,r.useState)(0),D=(0,r.useRef)(null),T=(0,r.useRef)(null),F=(0,r.useRef)(null),$=(0,r.useRef)(!1),H=(0,r.useRef)(null),O=(0,r.useRef)(!1),[V,G]=(0,r.useState)((()=>Array.isArray(e.projectTypes)&&e.projectTypes[0]||"")),[U,W]=(0,r.useState)(e.projectTimeCommitment||""),[Z,q]=(0,r.useState)(e.projectDurationLimit||"flexible"),[Y,K]=(0,r.useState)(e.projectTypeContext||""),[X,J]=(0,r.useState)(e.projectCustomInstructions||""),Q="idle"!==w,ee=Array.isArray(e.skills)&&e.skills.length>0,ae=o.length>0||d.length>0,te=Boolean(V&&U),re=ee&&ae,le=Jn[V],ne=Math.max(0,ts.findIndex((e=>e.value===Z))),se=(0,r.useMemo)((()=>{return a=e.email,`profile-builder-project-ideas-regenerate-warning:${encodeURIComponent(String(a||"account").trim().toLowerCase())}`;var a}),[e.email]),ie=(0,r.useCallback)((e=>{F.current=e,I(e)}),[]),oe=(0,r.useCallback)((e=>{c(e.activeIdeas||[]),u(e.shortlistedIdeas||[])}),[]),ce=(0,r.useCallback)((()=>{$.current=!1,p("loading"),h(null),(0,va._8)().then((e=>{$.current||(oe(e.data),p("ready"),(()=>{try{const e=[];for(let a=0;a<window.localStorage.length;a++){const t=window.localStorage.key(a);t&&Qn.some((e=>t.startsWith(e)))&&e.push(t)}e.forEach((e=>window.localStorage.removeItem(e)))}catch(e){}})())})).catch((e=>{var a,t;$.current||(p("error"),h((null==e||null===(a=e.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.error)||"Failed to load project ideas"))}))}),[oe]);(0,r.useEffect)((()=>(ce(),()=>{$.current=!0})),[ce]),(0,r.useEffect)((()=>{var e,a;if("ready"!==_||O.current)return;if(null===(e=(a=window).matchMedia)||void 0===e||!e.call(a,"(max-width: 767px)").matches)return;O.current=!0;const t=window.requestAnimationFrame((()=>{var e,a;null===(e=D.current)||void 0===e||null===(a=e.scrollIntoView)||void 0===a||a.call(e,{block:"start"})}));return()=>window.cancelAnimationFrame(t)}),[_]),(0,r.useEffect)((()=>()=>{H.current&&window.cancelAnimationFrame(H.current)}),[]),(0,r.useEffect)((()=>{B((e=>Math.max(0,Math.min(e,o.length-1))))}),[o.length]),(0,r.useEffect)((()=>{const e=P;if(!d.length||!e)return void k("before");const a=e.closest('[class*="ProfileBuilderPage_wrap"]'),t=a||window;let r,l;const n=()=>
1{if(r=void 0,!e.isConnected)return;const t=e.getBoundingClientRect(),n=a?a.getBoundingClientRect():{top:0,height:window.innerHeight},s=n.top+84,i=n.top+.35*n.height,o=t.bottom<s?"after":t.top<=i?"inside":"before";o!==l&&(l=o,k(o))},s=()=>{r||(r=window.requestAnimationFrame(n))};return n(),t.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),()=>{r&&window.cancelAnimationFrame(r),t.removeEventListener("scroll",s),window.removeEventListener("resize",s)}}),[P,d.length]);const de=()=>{y({}),f(!0)},ue=async e=>{if(!Q&&!E){A(e.id),R(e.id);try{var a,t,r;const l=null===(a=(t=window).matchMedia)||void 0===a||null===(r=a.call(t,"(prefers-reduced-motion: reduce)"))||void 0===r?void 0:r.matches,[n]=await Promise.all([(0,va.r1)(e.id),l?null:new Promise((e=>setTimeout(e,1050)))]);oe(n.data),B((e=>{var a;return Math.max(0,Math.min(e,((null===(a=n.data.activeIdeas)||void 0===a?void 0:a.length)||1)-1))}))}catch(e){var l,n;h((null==e||null===(l=e.response)||void 0===l||null===(n=l.data)||void 0===n?void 0:n.error)||"Failed to shortlist idea")}finally{A(null),R(null)}}},_e=async e=>{if(!Q&&!E){A(e.id);try{const a=await(0,va.Cn)(e.id);oe(a.data)}catch(e){var a,t;h((null==e||null===(a=e.response)||void 0===a||null===(t=a.data)||void 0===t?void 0:t.error)||"Failed to remove from shortlist")}finally{A(null)}}},he=()=>{var e,a;null===(e=F.current)||void 0===e||null===(a=e.scrollIntoView)||void 0===a||a.call(e,{behavior:"smooth",block:"start"})},ve=e=>{const a=T.current,t=null==a?void 0:a.querySelector(`.${Al.projectCard}`);if(!a||!t)return;const r=t.getBoundingClientRect().width+10;a.scrollBy({left:e*r,behavior:"smooth"})},fe=(e,a)=>{e.target===e.currentTarget&&["Enter"," "].includes(e.key)&&(e.preventDefault(),a())},ge=()=>{window.location.reload()};return"loading"===_?(0,z.jsx)("div",{className:Al.projectIdeas,children:(0,z.jsxs)("div",{className:Al.projectIdeas__loading,children:[(0,z.jsx)("span",{className:Al.projectIdeas__spinner,"aria-hidden":"true"}),(0,z.jsx)("span",{children:"Loading project ideas"})]})}):"error"===_?(0,z.jsx)("div",{className:Al.projectIdeas,children:(0,z.jsxs)("div",{className:Al.projectIdeas__errorBanner,role:"alert",children:[(0,z.jsx)("span",{className:Al.projectIdeas__errorMessage,children:m||"Something went wrong while loading project ideas."}),(0,z.jsxs)("div",{className:Al.projectIdeas__errorActions,children:[(0,z.jsx)("button",{className:Al.projectIdeas__errorButton,type:"button",onClick:ce,children:"Try again"}),(0,z.jsx)("button",{className:Al.projectIdeas__refreshLink,type:"button",onClick:ge,children:"Refresh page"})]})]})}):(0,z.jsxs)("div",{ref:D,className:`${Al.projectIdeas} ${Q?Al.regenerating:""}`,children:[(0,z.jsx)("div",{className:Al.projectIdeas__head,children:(0,z.jsxs)("div",{className:Al.projectIdeas__heading,children:[(0,z.jsxs)("div",{className:Al.projectIdeas__titleRow,children:[(0,z.jsx)("span",{className:Al.projectIdeas__icon,children:(0,z.jsx)(Xn.Kni,{})}),(0,z.jsx)("h3",{className:Al.projectIdeas__title,children:"Project Idea Recommendations"})]}),(0,z.jsx)("p",{className:Al.projectIdeas__subtitle,children:"Project ideas based on profile details, skills, interests, and preferences."}),ee&&(0,z.jsxs)("div",{className:Al.projectIdeas__actions,children:[ae&&(0,z.jsxs)("button",{className:Al.projectIdeas__filter,type:"button",onClick:he,disabled:!d.length||Q,children:[(0,z.jsx)("span",{className:Al.projectIdeas__filterIcon,"aria-hidden":"true",children:d.length?(0,z.jsx)(Bn.h,{}):(0,z.jsx)(Ln.h,{})}),"Shortlisted Ideas",(0,z.jsx)("span",{className:Al.projectIdeas__count,children:d.length})]}),(0,z.jsxs)("button",{className:`${Al.projectIdeas__regenerate} ${Q?Al.projectIdeas__regenerateBusy:""}`,type:"button",onClick:()=>{if(h(null),Q)return void h("Your new project ideas are still being generated. Please wait for them to finish.");let e=!1;try{e="true"===window.localStorage.getItem(se)}catch(e){}if(o.length>0&&!e)return x(!1),void C(!0);de()},"aria-disabled":Q,children:[ae?(0,z.jsx)(Tn.h,{}):(0,z.jsx)(Hn,{className:Al.generateIcon}),Q?ae?"Regenerating":"Generating":ae?"Regenerate":"Generate"]})]})]})}),m&&(0,z.jsxs)("div",{className:Al.projectIdeas__error,role:"alert",children:[(0,z.jsx)("span",{className:Al.projectIdeas__errorMessage,children:m}),(0,z.jsx)("button",{className:Al.projectIdeas__refreshLink,type:"button",onClick:ge,children:"Refresh page"})]}),re&&"saving"===w&&(0,z.jsx)("div",{className:Al.projectIdeas__mode,children:"Preparing your ideas…"}),(0,z.jsxs)("div",{className:Al.projectIdeas__carouselShell,children:[(0,z.jsx)("div",{ref:T,onScroll:e=>{if(H.current)return;const a=e.currentTarget;H.current=window.requestAnimationFrame((()=>{const e=a.querySelector(`.${Al.projectCard}`),t=e?e.getBoundingClientRect().width+10:a.clientWidth,r=Math.max(0,Math.min(o.length-1,Math.round(a.scrollLeft/t)));B((e=>e===r?e:r)),H.current=null}))},className:`${Al.projectIdeas__list} ${o.length&&"loading"!==w?Al.projectIdeas__activeCarousel:""} ${Q?Al[`phase_${w}`]:""}`,children:ee?ae||"idle"!==w?"loading"===w?(0,z.jsxs)("div",{className:Al.projectIdeas__loading,children:[(0,z.jsx)("span",{className:Al.projectIdeas__spinner,"aria-hidden":"true"}),(0,z.jsx)("span",{children:"Creating new ideas…"})]}):o.length?o.map((e=>{const a=ls(e.tag),t=E===e.id;return(0,z.jsxs)("article",{className:`${Al.projectCard} ${Al.selectable} ${M===e.id?Al.savingToShortlist:""} ${"entering"===w?`${Al.entering} ${Al.shine}`:""}`,onClick:()=>ue(e),onKeyDown:a=>fe(a,(()=>ue(e))),role:"button",tabIndex:"0","aria-label":`Shortlist ${e.title}`,children:[(0,z.jsxs)("div",{className:Al.projectCard__head,children:[(0,z.jsxs)("span",{className:`${Al.projectCard__tag} ${a.className}`,children:[(0,z.jsx)("span",{className:Al.projectCard__tagIcon,"aria-hidden":"true",children:a.icon}),e.tag]}),(0,z.jsxs)("button",{className:`${Al.projectCard__shortlist} ${t?Al.busy:""}`,type:"button",onClick:a=>{a.stopPropagation(),ue(e)},disabled:Q||!!E,"aria-label":"Add to shortlist",children:[!t&&(0,z.jsx)("span",{className:Al.projectCard__shortlistLabel,children:"Shortlist"}),t?(0,z.jsx)(Bn.h,{}):(0,z.jsx)(Ln.h,{})]})]}),(0,z.jsx)("h4",{className:Al.projectCard__title,children:e.title}),(0,z.jsx)("p",{className:Al.projectCard__body,children:e.body}),(0,z.jsx)(rs,{item:e})]},e.id)})):(0,z.jsx)("div",{className:Al.projectIdeas__empty,children:"No new project ideas right now."}):(0,z.jsxs)("div",{className:Al.projectIdeas__empty,children:[(0,z.jsx)("span",{className:Al.projectIdeas__emptyIcon,"aria-hidden":"true",children:(0,z.jsx)(Dn.h,{})}),(0,z.jsx)("h4",{children:"Your project ideas are ready to be generated"}),(0,z.jsx)("p",{children:"Use Generate above to choose your project type and available time."})]}):(0,z.jsxs)("div",{className:Al.projectIdeas__empty,children:[(0,z.jsx)("span",{className:Al.projectIdeas__emptyIcon,"aria-hidden":"true",children:(0,z.jsx)(Dn.h,{})}),(0,z.jsx)("h4",{children:"Add your skills to get project ideas"}),(0,z.jsx)("p",{children:"Tell us what you can already do so your recommendations can build on your strengths."}),(0,z.jsxs)("button",{type:"button",onClick:()=>null==a?void 0:a("interests"),children:["Add Skills",(0,z.jsx)(Vn.h,{})]})]})}),re&&o.length>1&&(0,z.jsxs)("div",{className:Al.projectIdeas__carouselNav,children:[(0,z.jsx)("button",{type:"button",onClick:()=>ve(-1),disabled:0===L,"aria-label":"Previous project idea",children:"‹"}),(0,z.jsxs)("div",{className:Al.projectIdeas__carouselStatus,children:[(0,z.jsxs)("span",{children:[L+1," of ",o.length]}),(0,z.jsx)("span",{className:Al.projectIdeas__carouselTrack,"aria-hidden":"true",children:(0,z.jsx)("span",{style:{width:100/o.length+"%",transform:`translateX(${100*L}%)`}})})]}),(0,z.jsx)("button",{type:"button",className:Al.projectIdeas__carouselNext,onClick:()=>ve(1),disabled:L>=o.length-1,"aria-label":"Next project idea",children:"›"})]})]}),re&&d.length>0&&"before"===S&&(0,z.jsxs)("button",{className:Al.projectIdeas__mobileShortlist,type:"button",onClick:he,children:[(0,z.jsx)("span",{className:Al.projectIdeas__filterIcon,"aria-hidden":"true",children:(0,z.jsx)(Bn.h,{})}),"View shortlisted ideas",(0,z.jsx)("span",{className:Al.projectIdeas__count,children:d.length},d.length)]}),re&&d.length>0&&"before"!==S&&(0,z.jsxs)("button",{className:Al.projectIdeas__floatingTop,type:"button",onClick:()=>{var e,a;null===(e=D.current)||void 0===e||null===(a=e.scrollIntoView)||void 0===a||a.call(e,{behavior:"smooth",block:"start"})},"aria-label":"Go to project ideas top",children:[(0,z.jsx)("span",{"aria-hidden":"true",children:(0,z.jsx)(Wn,{})}),"Go to top"]}
1),re&&d.length>0&&(0,z.jsxs)("div",{className:Al.projectIdeas__saved,ref:ie,children:[(0,z.jsx)("div",{className:Al.projectIdeas__savedHead,children:(0,z.jsxs)("div",{className:Al.projectIdeas__savedTitle,children:[(0,z.jsx)("span",{className:Al.projectIdeas__filterIcon,"aria-hidden":"true",children:(0,z.jsx)(Bn.h,{})}),(0,z.jsx)("span",{children:"Shortlisted Project Ideas"}),(0,z.jsx)("span",{className:Al.projectIdeas__count,children:d.length})]})}),(0,z.jsx)("div",{className:Al.projectIdeas__list,children:d.map((e=>{const a=ls(e.tag),t=E===e.id;return(0,z.jsxs)("article",{className:`${Al.projectCard} ${Al.shortlisted} ${Al.selectable}`,onClick:()=>_e(e),onKeyDown:a=>fe(a,(()=>_e(e))),role:"button",tabIndex:"0","aria-label":`Remove ${e.title} from shortlist`,children:[(0,z.jsxs)("div",{className:Al.projectCard__head,children:[(0,z.jsxs)("span",{className:`${Al.projectCard__tag} ${a.className}`,children:[(0,z.jsx)("span",{className:Al.projectCard__tagIcon,"aria-hidden":"true",children:a.icon}),e.tag]}),(0,z.jsx)("button",{className:`${Al.projectCard__shortlist} ${Al.active} ${t?Al.busy:""}`,type:"button",onClick:a=>{a.stopPropagation(),_e(e)},disabled:Q||!!E,"aria-label":"Remove from shortlist",children:t?(0,z.jsx)(ns,{}):(0,z.jsx)(Bn.h,{})})]}),(0,z.jsx)("h4",{className:Al.projectCard__title,children:e.title}),(0,z.jsx)("p",{className:Al.projectCard__body,children:e.body}),(0,z.jsx)(rs,{item:e}),l&&n&&(0,z.jsx)("div",{className:Al.projectCard__kodaPrompt,onClick:e=>e.stopPropagation(),children:(0,z.jsxs)("div",{className:Al.projectCard__kodaBubble,children:[(0,z.jsx)("img",{src:an,alt:"Koda"}),(0,z.jsx)("div",{className:Al.projectCard__kodaCopy,children:(0,z.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:"6px",rowGap:"2px"},children:[(0,z.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"2px",flexShrink:0},children:[(0,z.jsx)("strong",{children:"KODA AI"}),(0,z.jsx)(Hn,{"aria-hidden":"true",style:{width:"12px",height:"12px"}})]}),(0,z.jsx)("span",{children:"Turn this into a clear first step."})]})}),(0,z.jsxs)("button",{className:Al.projectCard__koda,type:"button",onClick:a=>((e,a)=>{e.stopPropagation(),null==s||s({source:"project_ideas",entities:{projectIdeaId:a.id}}),null==l||l(),null==n||n(`Help me plan this project: “${a.title}”. What exactly will I be making? What are the best tools, platforms, or AI agents to use? Please give me a practical first step to get started.`)})(a,e),children:[(0,z.jsx)("span",{className:Al.projectCard__kodaText,children:"Plan now"}),(0,z.jsx)(zn.h,{className:Al.projectCard__kodaIconSend,"aria-hidden":"true",style:{width:"12px",height:"12px",flexShrink:0,stroke:"currentColor",strokeWidth:"1px"}}),(0,z.jsx)("svg",{className:Al.projectCard__kodaIconArrow,"aria-hidden":"true",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#573b76",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,z.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]})})]},`saved-${e.id}`)}))})]}),ee&&g&&(0,z.jsx)("div",{className:Al.regenerateModal,role:"dialog","aria-modal":"true","aria-labelledby":"regenerate-warning-title",children:(0,z.jsxs)("div",{className:`${Al.regenerateModal__panel} ${Al.regenerateModal__warningPanel}`,children:[(0,z.jsxs)("div",{className:Al.regenerateModal__header,children:[(0,z.jsxs)("div",{className:Al.regenerateModal__warningTitle,children:[(0,z.jsx)("span",{className:Al.regenerateModal__warningIcon,"aria-hidden":"true",children:(0,z.jsx)(Zn.h,{})}),(0,z.jsx)("h3",{id:"regenerate-warning-title",children:"Unshortlisted ideas will be replaced"})]}),(0,z.jsx)("button",{className:Al.regenerateModal__close,type:"button",onClick:()=>C(!1),"aria-label":"Close regeneration warning",children:(0,z.jsx)(qn.h,{})})]}),(0,z.jsxs)("div",{className:`${Al.regenerateModal__body} ${Al.regenerateModal__warningBody}`,children:[(0,z.jsx)("p",{className:Al.regenerateModal__warningCopy,children:(0,z.jsx)("strong",{style:{fontWeight:500},children:"Shortlist anything you want to keep before generating a fresh set."})}),(0,z.jsxs)("label",{className:Al.regenerateModal__warningChoice,children:[(0,z.jsx)("input",{type:"checkbox",checked:b,onChange:e=>x(e.target.checked)}),(0,z.jsx)("span",{className:Al.regenerateModal__warningCheck,"aria-hidden":"true",children:b?"✓":""}),"Don’t show this warning again"]})]}),(0,z.jsxs)("div",{className:`${Al.regenerateModal__footer} ${Al.regenerateModal__warningActions}`,children:[(0,z.jsx)("button",{type:"button",onClick:()=>C(!1),children:"Cancel"}),(0,z.jsx)("button",{type:"button",onClick:()=>
1{if(b)try{window.localStorage.setItem(se,"true")}catch(e){}C(!1),de()},children:"Continue"})]})]})}),ee&&v&&(0,z.jsx)("div",{className:Al.regenerateModal,role:"dialog","aria-modal":"true",children:(0,z.jsxs)("div",{className:Al.regenerateModal__panel,children:[(0,z.jsxs)("div",{className:Al.regenerateModal__header,children:[(0,z.jsx)("h3",{children:ae?"Regenerate project ideas":"Generate project ideas"}),(0,z.jsx)("button",{className:Al.regenerateModal__close,type:"button",onClick:()=>f(!1),"aria-label":"Close regenerate modal",children:(0,z.jsx)(qn.h,{})})]}),(0,z.jsxs)("div",{className:Al.regenerateModal__body,children:[(0,z.jsx)("p",{className:Al.regenerateModal__intro,children:"Choose the type of project you want and the time you can commit."}),(0,z.jsxs)("div",{className:Al.regenerateModal__scrollCue,"aria-hidden":"true",children:["Scroll for more options ",(0,z.jsx)("span",{children:"↓"})]}),(0,z.jsxs)("div",{className:Al.regenerateModal__grid,children:[(0,z.jsxs)("div",{className:j.projectType?Al.regenerateModal__fieldError:"",children:[(0,z.jsxs)("span",{className:Al.regenerateModal__fieldLabel,children:[(0,z.jsx)("span",{className:Al.regenerateModal__questionNumber,children:"1."}),"Project type ",(0,z.jsx)("span",{className:Al.regenerateModal__requiredMark,children:"*"})]}),(0,z.jsx)("div",{className:Al.regenerateModal__chips,children:pe.map((e=>(0,z.jsx)("button",{type:"button",className:V===e.value?Al.active:"",onClick:()=>{G(e.value),y((e=>({...e,projectType:null,submit:null})))},children:e.label},e.value)))}),j.projectType&&(0,z.jsx)("p",{className:Al.regenerateModal__inlineError,role:"alert",children:j.projectType})]}),(0,z.jsxs)("div",{className:j.timeCommitment?Al.regenerateModal__fieldError:"",children:[(0,z.jsxs)("span",{className:Al.regenerateModal__fieldLabel,children:[(0,z.jsx)("span",{className:Al.regenerateModal__questionNumber,children:"2."}),"Time commitment ",(0,z.jsx)("span",{className:Al.regenerateModal__requiredMark,children:"*"})]}),(0,z.jsx)("div",{className:`${Al.regenerateModal__chips} ${Al.regenerateModal__timeChips}`,children:me.map((e=>{var a,t;return(0,z.jsxs)("button",{type:"button",className:U===e.value?Al.active:"",onClick:()=>{W(e.value),y((e=>({...e,timeCommitment:null,submit:null})))},children:[(0,z.jsx)("span",{className:Al.regenerateModal__timeName,children:(null===(a=es[e.value])||void 0===a?void 0:a.label)||e.label}),(0,z.jsx)("span",{className:Al.regenerateModal__timeDetail,children:null===(t=es[e.value])||void 0===t?void 0:t.detail})]},e.value)}))}),j.timeCommitment&&(0,z.jsx)("p",{className:Al.regenerateModal__inlineError,role:"alert",children:j.timeCommitment})]}),(0,z.jsxs)("div",{children:[(0,z.jsxs)("label",{className:Al.regenerateModal__fieldLabel,htmlFor:"project-duration-limit",children:[(0,z.jsx)("span",{className:Al.regenerateModal__questionNumber,children:"3."}),"Maximum project duration ",(0,z.jsx)("span",{className:Al.regenerateModal__requiredMark,children:"*"})]}),(0,z.jsxs)("div",{className:Al.regenerateModal__durationControl,children:[(0,z.jsxs)("div",{className:Al.regenerateModal__durationTrack,children:[(0,z.jsx)("input",{id:"project-duration-limit",type:"range",min:"0",max:ts.length-1,step:"1",value:ne,style:{"--duration-progress":ne/(ts.length-1)*100+"%"},onChange:e=>{q(ts[Number(e.target.value)].value),y((e=>({...e,submit:null})))},"aria-valuetext":null===(i=ts.find((e=>e.value===Z)))||void 0===i?void 0:i.label}),(0,z.jsx)("div",{className:Al.regenerateModal__durationCheckpoints,"aria-hidden":"true",children:ts.map(((e,a)=>(0,z.jsx)("span",{className:a<=ne?Al.passed:""},e.value)))})]}),(0,z.jsx)("div",{className:Al.regenerateModal__durationLabels,"aria-hidden":"true",children:ts.map((e=>(0,z.jsx)("span",{className:Z===e.value?Al.active:"",children:e.label},e.value)))})]})]}),le&&(0,z.jsxs)("label",{className:Al.regenerateModal__fieldLabel,children:[(0,z.jsxs)("span",{children:[(0,z.jsx)("span",{className:Al.regenerateModal__questionNumber,children:"4."}),le," ",(0,z.jsx)("span",{className:Al.regenerateModal__optional,children:"(Optional)"})]}),(0,z.jsx)("textarea",{placeholder:"Add context that should shape the regenerated project ideas",value:Y,onChange:e=>K(e.target.value)})]}),(0,z.jsxs)("label",{className:Al.regenerateModal__fieldLabel,children:[(0,z.jsxs)("span",{children:[(0,z.jsx)("span",{className:Al.regenerateModal__questionNumber,children:le?"5.":"4."}),"Custom instructions ",(0,z.jsx)("span",{className:Al.regenerateModal__optional,children:"(Optional)"})]}),(0,z.jsx)("textarea",{placeholder:"Tell us what the regenerated ideas should account for",value:X,onChange:e=>J(e.target.value)})]})]})]}),(0,z.jsxs)("div",{className:Al.regenerateModal__footer,children:[j.submit&&(0,z.jsx)("p",{className:Al.regenerateModal__validationError,role:"alert",children:j.submit}),(0,z.jsxs)("button",{className:Al.regenerateModal__cta,type:"button",onClick:()=>
1{if(Q)return void y({submit:"Ideas are already being generated. Please wait."});const a={};V||(a.projectType="Choose a project type."),U||(a.timeCommitment="Choose a time commitment."),Object.keys(a).length?y(a):(y({}),(async()=>{if(!Q){f(!1),N("saving"),h(null);try{const a={...e,projectTypes:V?[V]:[],projectTimeCommitment:U,projectDurationLimit:Z,projectTypeContext:Y,projectCustomInstructions:X};t&&await t(a),N("loading");const r=await(0,va.Go)({projectType:V,projectTimeCommitment:U,projectDurationLimit:Z,projectTypeContext:Y,projectCustomInstructions:X});oe(r.data),N("entering"),setTimeout((()=>N("idle")),700)}catch(e){var a,r,l;const t=(null==e||null===(a=e.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.error)||"Generation failed",n=null==e||null===(l=e.response)||void 0===l?void 0:l.status;h(409===n?"Generation already in progress. Please wait.":t),N("idle")}}})())},"aria-disabled":Q||!te,children:[ae?(0,z.jsx)(Tn.h,{}):(0,z.jsx)(Hn,{className:Al.generateIcon}),Q?ae?"Regenerating ideas":"Generating ideas":ae?"Regenerate ideas":"Generate ideas"]})]})]})})]})};var is,os,cs,ds,us=t(2707);function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},_s.apply(null,arguments)}function ps({title:e,titleId:a,...t},l){return r.createElement("svg",_s({width:31,height:31,viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,is||(is=r.createElement("path",{d:"M18.0666 15.0156C18.1143 15.0156 18.161 15.0016 18.2007 14.9752C18.2405 14.9488 18.2715 14.9113 18.29 14.8673C18.3085 14.8233 18.3136 14.7749 18.3047 14.728C18.2957 14.6811 18.2731 14.638 18.2397 14.6039L13.4929 9.77709C13.4591 9.74283 13.416 9.71939 13.3689 9.70975C13.3218 9.70011 13.2729 9.70471 13.2284 9.72295C13.1839 9.7412 13.1459 9.77227 13.1191 9.81221C13.0924 9.85215 13.0781 9.89915 13.0781 9.94722V14.289C13.0781 14.4817 13.1547 14.6665 13.2909 14.8028C13.4272 14.9391 13.612 15.0156 13.8047 15.0156H18.0666Z",fill:"url(#paint0_linear_2036_4130)"})),os||(os=r.createElement("path",{d:"M11.9277 16.166C11.679 15.9206 11.4814 15.6284 11.3463 15.3063C11.2112 14.9841 11.1413 14.6384 11.1406 14.289V8.71873H6.78125C5.75447 8.72176 4.77061 9.13099 4.04456 9.85704C3.31852 10.5831 2.90928 11.5669 2.90625 12.5937V26.1562C2.90625 27.1839 3.31451 28.1696 4.04121 28.8963C4.76791 29.623 5.75354 30.0312 6.78125 30.0312H15.5C16.5277 30.0312 17.5133 29.623 18.24 28.8963C18.9667 28.1696 19.375 27.1839 19.375 26.1562V16.9531H13.8047C13.4553 16.9526 13.1095 16.8828 12.7873 16.7477C12.4651 16.6126 12.1729 16.4149 11.9277 16.166ZM22.5234 7.2656H26.7853C26.833 7.26564 26.8797 7.25159 26.9195 7.22521C26.9592 7.19882 26.9903 7.16129 27.0088 7.11731C27.0273 7.07333 27.0324 7.02486 27.0234 6.978C27.0145 6.93113 26.9919 6.88795 26.9585 6.85388L22.2116 2.02709C22.1779 1.99283 22.1347 1.96939 22.0876 1.95975C22.0405 1.95011 21.9916 1.95471 21.9471 1.97295C21.9027 1.9912 21.8646 2.02227 21.8379 2.06221C21.8111 2.10215 21.7968 2.14915 21.7969 2.19722V6.53904C21.7969 6.73173 21.8734 6.91654 22.0097 7.0528C22.1459 7.18905 22.3307 7.2656 22.5234 7.2656Z",fill:"url(#paint1_linear_2036_4130)"})),cs||(cs=r.createElement("path",{d:"M22.5234 9.20312C21.8185 9.19774 21.1441 8.91533 20.6456 8.41689C20.1472 7.91844 19.8648 7.24395 19.8594 6.53906V0.96875H13.3203C12.3572 0.969872 11.4338 1.35297 10.7528 2.03402C10.0717 2.71506 9.68862 3.63843 9.6875 4.60156V6.78125H12.2377C12.5633 6.78252 12.8853 6.84811 13.1854 6.97425C13.4855 7.1004 13.7577 7.2846 13.9863 7.51629L20.5956 14.237C21.0568 14.7048 21.3142 15.336 21.3119 15.9929V24.2188H24.5239C26.4923 24.2188 28.0931 22.5888 28.0931 20.5859V9.20312H22.5234Z",fill:"url(#paint2_linear_2036_4130)"})),ds||(ds=r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_2036_4130",x1:15.6936,y1:9.70483,x2:15.6936,y2:15.0156,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:.528846,stopColor:"#573B76"}),r.createElement("stop",{offset:1,stopColor:"#A26EDC"})),r.createElement("linearGradient",{id:"paint1_linear_2036_4130",x1:14.967,y1:1.95483,x2:14.967,y2:30.0312,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:.528846,stopColor:"#573B76"}),r.createElement("stop",{offset:1,stopColor:"#A26EDC"})),r.createElement("linearGradient",{id:"paint2_linear_2036_4130",x1:18.8903,y1:.96875,x2:18.8903,y2:24.2188,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:.528846,stopColor:"#573B76"}),r.createElement("stop",{offset:1,stopColor:"#A26EDC"})))))}const ms=r.forwardRef(ps);t.p;var hs;function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},vs.apply(null,arguments)}function fs({title:e,titleId:a,...t},l){return r.createElement("svg",vs({xmlns:"http://www.w3.org/2000/svg",width:40,height:40,viewBox:"0 0 40 40",fill:"none",ref:l,"aria-labelledby":a},t),e?r.createElement("title",{id:a},e):null,hs||(hs=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9987 3.33325C10.7937 3.33325 3.33203 10.7949 3.33203 19.9999C3.33203 29.2049 10.7937 36.6666 19.9987 36.6666C29.2037 36.6666 36.6654 29.2049 36.6654 19.9999C36.6654 10.7949 29.2037 3.33325 19.9987 3.33325ZM17.9154 11.9283C19.6474 11.4798 21.4778 11.6007 23.1359 12.2731C24.7939 12.945
15 26.1915 14.1336 27.1219 15.6618C28.0524 17.19 28.4663 18.9771 28.3024 20.7588C28.1386 22.5405 27.4056 24.2221 26.212 25.5549C25.922 25.885 25.7741 26.3161 25.8003 26.7547C25.8266 27.1933 26.025 27.6037 26.3523 27.8968C26.6796 28.1898 27.1094 28.3418 27.5482 28.3196C27.987 28.2974 28.3993 28.1028 28.6954 27.7783C30.3665 25.9124 31.3928 23.5583 31.6224 21.0641C31.852 18.5698 31.2728 16.0679 29.9704 13.9283C28.668 11.7887 26.7116 10.1251 24.3905 9.18355C22.0694 8.24196 19.5069 8.07239 17.082 8.69992C16.6662 8.82083 16.3138 9.09883 16.0994 9.47503C15.885 9.85124 15.8254 10.2961 15.9333 10.7155C16.0412 11.1349 16.308 11.4958 16.6774 11.7218C17.0467 11.9479 17.4895 12.0213 17.912 11.9266L17.9154 11.9283ZM11.9254 17.9166C12.0201 17.4941 11.9467 17.0512 11.7206 16.6819C11.4946 16.3126 11.1336 16.0457 10.7143 15.9379C10.2949 15.83 9.85002 15.8896 9.47381 16.104C9.09761 16.3184 8.81961 16.6708 8.6987 17.0866C8.22079 18.9457 8.20832 20.8939 8.66238 22.759C9.11644 24.6241 10.023 26.3485 11.302 27.7799C11.4474 27.9453 11.624 28.0803 11.8218 28.177C12.0196 28.2737 12.2346 28.3303 12.4544 28.3435C12.6741 28.3566 12.8943 28.3261 13.1023 28.2537C13.3102 28.1813 13.5017 28.0683 13.6657 27.9215C13.8298 27.7746 13.9631 27.5967 14.058 27.398C14.1528 27.1994 14.2074 26.9839 14.2185 26.764C14.2297 26.5441 14.1971 26.3242 14.1228 26.1169C14.0484 25.9097 13.9337 25.7192 13.7854 25.5566C12.4166 24.0298 11.6614 22.0504 11.6654 19.9999C11.6676 19.2766 11.7531 18.5821 11.9254 17.9166ZM19.9987 23.3333C20.4731 23.333 20.9419 23.2316 21.374 23.0356C21.806 22.8397 22.1912 22.5538 22.5039 22.1971C22.8166 21.8403 23.0495 21.4209 23.1871 20.967C23.3248 20.513 23.3639 20.0349 23.3019 19.5645C23.24 19.0942 23.0784 18.6426 22.8279 18.2397C22.5774 17.8369 22.2438 17.4921 21.8493 17.2285C21.4549 16.9649 21.0088 16.7886 20.5408 16.7112C20.0728 16.6338 19.5936 16.6573 19.1354 16.7799L12.8437 10.4883C12.5294 10.1847 12.1084 10.0167 11.6714 10.0205C11.2344 10.0243 10.8163 10.1995 10.5073 10.5086C10.1983 10.8176 10.023 11.2356 10.0192 11.6726C10.0154 12.1096 10.1834 12.5306 10.487 12.8449L16.7787 19.1366C16.6462 19.6305 16.6292 20.1483 16.7289 20.6499C16.8286 21.1514 17.0424 21.6233 17.3537 22.029C17.665 22.4348 18.0655 22.7634 18.5241 22.9896C18.9828 23.2157 19.4873 23.3333 19.9987 23.3333Z",fill:"#573B76"})))}const gs=r.forwardRef(fs),Cs=(t.p,[{id:"digital_profile",label:"Digital Profile"},{id:"doc_vault",label:"Doc Vault"},{id:"profile_analysis",label:"Profile Analysis"},{id:"project_ideas",label:"Project Ideas"}]),bs=e=>{const a=new URLSearchParams(e||"").get("tab");return Cs.some((e=>e.id===a))?a:Cs[0].id},xs=({profileCompleteness:e,onUpdateProfile:a})=>(0,z.jsxs)("div",{className:ht.completionRibbon,children:[(0,z.jsxs)("div",{className:ht.completionRibbon__content,children:[(0,z.jsx)("div",{className:ht.completionRibbon__badge,children:(0,z.jsx)(us.A,{})}),(0,z.jsxs)("div",{className:ht.completionRibbon__copy,children:[(0,z.jsxs)("span",{className:ht.completionRibbon__hint,children:["Complete ",(0,z.jsx)("b",{children:"80% Profile"})]}),(0,z.jsxs)("span",{className:ht.completionRibbon__subtext,children:["More details to unlock your ",(0,z.jsx)("b",{children:"Profile Analysis"}),"."]})]})]}),(0,z.jsxs)("button",{className:ht.completionRibbon__cta,type:"button",onClick:a,children:["Complete Profile",(0,z.jsx)(Vn.h,{})]})]}),js=({icon:e,title:a,description:t,actionLabel:r,onAction:l})=>(0,z.jsxs)("div",{className:ht.emptyState,children:[(0,z.jsx)("span",{className:ht.emptyState__icon,"aria-hidden":"true",children:(0,z.jsx)(e,{})}),(0,z.jsx)("h3",{className:ht.emptyState__title,children:a}),(0,z.jsx)("p",{className:ht.emptyState__description,children:t}),(0,z.jsxs)("button",{className:ht.emptyState__cta,type:"button",onClick:l,children:[r,(0,z.jsx)(Vn.h,{})]})]}),ys=({data:e,profileCompleteness:a,setStep:t,isProfileRoute:l=!1,onEditSection:n,openChatHandler:s,sendChatMessageHandler:i,setKodaContext:o,onSaveProfile:c})=>{const d=(0,$a.W6)(),u=(0,$a.zy)(),[_,p]=(0,r.useState)((()=>bs(u.search))),[m,h]=(0,r.useState)(!1),v=(0,r.useRef)(null),f=l&&a<80,g=(e=>{const{academicTranscripts:a=[],testCertificates:t=[],languageCertificates:r=[],resumeFiles:l=[]}=e||{};return a.length+t.length+r.length+l.length}
1)(e),C=0===g,b=a<80,x=e=>{n?n("string"==typeof e?e:null):t("survey"),ct.A.track("Update Profile From Report Header")};return(0,r.useEffect)((()=>{p(bs(u.search))}),[u.search]),(0,r.useEffect)((()=>{"/admin/profile"!==u.pathname&&d.replace({pathname:"/admin/builder/report",search:u.search,state:u.state})}),[d,u.pathname,u.search,u.state]),(0,r.useEffect)((()=>{const e=v.current;if(!e||"undefined"==typeof IntersectionObserver)return;const a=new IntersectionObserver((([e])=>h(!e.isIntersecting&&e.boundingClientRect.top<76)),{rootMargin:"-76px 0px 0px 0px",threshold:0});return a.observe(e),()=>a.disconnect()}),[]),(0,z.jsx)("div",{className:ht.report,children:(0,z.jsxs)("div",{className:ht.wrap,children:[(0,z.jsxs)("div",{className:ht.head,children:[(0,z.jsxs)("div",{className:ht.title,children:[(0,z.jsx)("span",{className:ht.title__icon,children:(0,z.jsx)(El,{})}),(0,z.jsx)("span",{className:ht.title__text,children:"Student Profile"})]}),(0,z.jsxs)("button",{className:ht.reportBtn,type:"button",onClick:()=>x(),children:[(0,z.jsx)("span",{className:ht.reportBtn__icon,children:(0,z.jsx)(qt.h,{})})," ",(0,z.jsx)("span",{className:ht.reportBtn__text,children:"Edit Profile"})]})]}),(0,z.jsx)("div",{className:ht.tabsSentinel,ref:v,"aria-hidden":"true"}),(0,z.jsx)("div",{className:`${ht.tabs} ${m?ht.floating:""}`,role:"tablist","aria-label":"Student Profile sections",children:Cs.map((e=>{const a=e.id===_;return(0,z.jsx)("button",{type:"button",role:"tab","aria-selected":a,className:`${ht.tabs__item} ${a?ht.active:""}`,onClick:()=>(e=>{p(e);const a=new URLSearchParams(u.search||"");a.set("tab",e),d.replace({pathname:u.pathname,search:`?${a.toString()}`,state:u.state}),ct.A.track(`Open Profile Report Tab '${e}'`)})(e.id),children:(0,z.jsx)("span",{className:ht.tabs__label,children:e.label})},e.id)}))}),(0,z.jsxs)("div",{className:ht.content,children:["digital_profile"===_&&(0,z.jsx)(Nl,{data:e,profileCompleteness:a,setStep:t,profileCompletionRibbon:f?(0,z.jsx)(xs,{profileCompleteness:a,onUpdateProfile:()=>x()}):null,onEditSection:x}),"doc_vault"===_&&(C?(0,z.jsx)(js,{icon:ms,title:"Your document vault is empty",description:"Upload transcripts, test certificates, language certificates, or a resume to keep them together here.",actionLabel:"Add Documents",onAction:()=>x("academicPerformance")}):(0,z.jsx)(Mn,{data:e})),"profile_analysis"===_&&(b?(0,z.jsx)(js,{icon:gs,title:"Complete more of your profile",description:"Reach 80% profile completion to unlock your profile analysis and recommendations.",actionLabel:"Complete Profile",onAction:()=>x()}):(0,z.jsx)(mn,{data:e,openChatHandler:s,sendChatMessageHandler:i,setKodaContext:o})),"project_ideas"===_&&(0,z.jsx)(ss,{data:e,onCompleteProfile:x,onSaveProfile:c,openChatHandler:s,sendChatMessageHandler:i,setKodaContext:o},String((null==e?void 0:e.email)||"account-pending").trim().toLowerCase())]})]})})};var ws=t(94911);const Ns=["isDefaultName","isDefaultEmail","isDefaultPhone"],Ss=e=>{const a={...e||{}};return Ns.forEach((e=>delete a[e])),a},ks=(e={},a={})=>JSON.stringify(Ss(e))===JSON.stringify(Ss(a));var Ps=t(5930);const Is=["name","phone","dateOfBirth"],Es=({openChatHandler:e,sendChatMessageHandler:a,setKodaContext:t})=>{const n=(0,$a.g)().id,s=(0,$a.W6)(),i=(0,$a.zy)(),o=(0,mt.wA)(),c=(0,mt.d4)((e=>e.profileBuilder.data)),d=(0,mt.d4)((e=>e.profileBuilder.status)),{data:u,status:_}=(0,zt.w)(),[p,m]=(0,r.useState)(!1),[h,v]=(0,r.useState)(!1),f="/admin/profile"===i.pathname,g=(0,r.useCallback)((()=>"survey"===n?"survey":f||"report"===n||h?"report":"survey"),[n,h,f]),[C,b]=(0,r.useState)(c||{}),[x,j]=(0,r.useState)((()=>g())),[y,w]=(0,r.useState)(!0),[N,S]=(0,r.useState)(!1),[k,P]=(0,r.useState)(""),[I,E]=(0,r.useState)("idle"),[A,M]=(0,r.useState)(null),[R,L]=(0,r.useState)(0),B=(0,r.useRef)(c||{}),D=(0,r.useRef)(C),T=(0,r.useRef)(null),F=(0,r.useRef)(null),$=(0,r.useRef)(null),H=(0,r.useRef)(!1),O=(0,r.useRef)(0),V=(0,r.useRef)(!1),G=(0,r.useRef)(null),U=(0,r.useRef)(!1),W=(0,r.useRef)(0),Z=(0,r.useCallback)((()=>{window.clearTimeout(F.current),window.clearTimeout($.current),window.clearTimeout(G.current),H.current=!1,O.current=0,E("idle")}),[]),q=(0,r.useCallback)((e=>{const a={...e||{}};let t=!1;return Is.forEach((e=>{var r;const l=null===(r=B.current)||void 0===r?void 0:r[e],n=a[e],s=null!=l&&""!==String(l).trim(),i=null==n||""===String(n).trim();s&&i&&(a[e]=l,t=!0)})),t?a:e}),[]);(0,r.useEffect)((()=>{D.current=C}),[C]),(0,r.useEffect)((()=>{j(g())}),[g]),(0,r.useEffect)((()=>{var e;const a=null===(e=i.state)||void 0===e?void 0:e.from;(0,Ps.BO)(a)&&(0,Ps.cq)(a)}),[i.state]),(0,r.useEffect)((()=>
1{if("success"!==d||U.current)U.current||"error"!==d&&"idle"!==d||o((0,En.X_)());else{U.current=!0;const e=c||{},a=null==u?void 0:u.userName,t=null==u?void 0:u.userMail,r=null==u?void 0:u.phone;m(!0),b({...e,name:e.name||a,email:e.email||t,phone:e.phone||r,isDefaultName:!e.name&&!!a,isDefaultEmail:!e.email&&!!t,isDefaultPhone:!e.phone&&!!r}),B.current={...e,name:e.name||a,email:e.email||t,phone:e.phone||r},v(null==c?void 0:c.isSurveyCompleted)}}),[d,c,u,o]),(0,r.useEffect)((()=>{if(!u)return void w("loading"===_);const e=u,{userName:a=null,userMail:t=null,phone:r=null}=e||{};B.current={...B.current,name:B.current.name||a,email:B.current.email||t,phone:B.current.phone||r},b((e=>({...e,name:e.name||a,email:e.email||t,phone:e.phone||r,isDefaultName:!e.name&&!!a,isDefaultPhone:!e.phone&&!!r,isDefaultEmail:!e.email&&!!t}))),w(!1)}),[u,_]);const Y=(0,r.useMemo)((()=>({...C})),[C]),K=(0,r.useMemo)((()=>(0,ws.O)(Y)),[Y]),X=(0,r.useCallback)((e=>e),[]),J=(0,r.useCallback)((e=>{const a=q(e);return!ks(B.current,a)}),[q]),Q=(0,r.useCallback)((async e=>{const a=await(0,wt.bd)({}),t=(null==a?void 0:a.data)||{},r={};null!=e&&e.name&&e.name!==t.userName&&(r.name=e.name),null!=e&&e.phone&&e.phone!==t.phone&&(r.phone=e.phone),Object.keys(r).length&&await(0,wt.LU)(r)}),[]),ee=(0,r.useCallback)((async(e,{autosave:a=!1}={})=>{const t=++W.current;S(!0);const r=Date.now();a&&(window.clearTimeout(G.current),E("saving")),P("");try{const a=await o((0,En.mw)(e)),r={...e,...a||{}};return t===W.current&&(B.current=r,D.current=r,b(r),Q(r).catch((e=>{console.error("Failed to sync profile contact details",e)}))),!0}catch(e){return t===W.current&&(P("We could not save your changes. Please try again."),a&&E("error")),!1}finally{if(t===W.current&&S(!1),a&&t===W.current){const e=Math.max(0,700-(Date.now()-r));e&&await new Promise((a=>window.setTimeout(a,e))),E((e=>"error"===e?e:"saved")),G.current=window.setTimeout((()=>E("idle")),2500)}}}),[o,Q]),ae=(0,r.useCallback)((async(e,a={})=>{window.clearTimeout(T.current);const t=q(e);if(t!==e&&(D.current=t,b(t)),ks(B.current,t))return{saved:!0,changed:!1};return{saved:await ee(t,a),changed:!0}}),[ee,q]),te=(0,r.useCallback)((async()=>{const e=H.current;H.current=!1,window.clearTimeout(F.current),window.clearTimeout($.current);const a=q(D.current);a!==D.current&&(D.current=a,b(a)),ks(B.current,a)?e&&O.current<2?(O.current+=1,E("saving"),$.current=window.setTimeout(te,120)):(O.current=0,E("idle")):(O.current=0,await ee(a,{autosave:!0}))}),[ee,q]),re=(0,r.useCallback)(((e=null)=>{if(e&&"object"==typeof e){const a=q({...D.current,...e});D.current=a,b(a)}H.current=!0,window.clearTimeout(F.current),window.clearTimeout($.current),window.clearTimeout(G.current),O.current=0,E("saving"),$.current=window.setTimeout(te,400)}),[q,te]),le=(0,r.useCallback)((()=>{V.current=!0}),[]),ne=(0,r.useCallback)((({stillFocused:e=!1}={})=>{V.current=e,window.clearTimeout(T.current),T.current=window.setTimeout(te,600)}),[te]);(0,r.useEffect)((()=>{if(U.current&&("saving"!==I||H.current)&&!ks(B.current,C)){if(window.clearTimeout(G.current),window.clearTimeout(F.current),H.current)return window.clearTimeout($.current),void($.current=window.setTimeout(te,60));E("dirty"),V.current&&(F.current=window.setTimeout(te,2e3))}}),[C,I,te]),(0,r.useEffect)((()=>()=>{window.clearTimeout(T.current),window.clearTimeout(F.current),window.clearTimeout($.current),window.clearTimeout(G.current)}),[]),(0,r.useEffect)((()=>{const e=e=>{ks(B.current,D.current)||(e.preventDefault(),e.returnValue="")};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)}),[]);const se=(0,r.useCallback)((e=>{M(e||null),L((e=>e+1)),j("survey");const a=e?`?section=${encodeURIComponent(e)}`:"";(0,Ps.vP)(s,`/admin/builder/survey${a}`)}),[s]),ie=(0,Ps.I4)((0,Ps.zr)());return(0,z.jsxs)("div",{className:l.wrap,children:[(0,z.jsxs)("div",{className:`${l.container} ${"survey"===x?l.full:""}`,children:[(0,z.jsx)("div",{className:l.head,children:(0,z.jsxs)("button",{className:l.back,type:"button",onClick:async()=>{const e=(0,Ps.zr)();ct.A.track("Go back from Profile Builder",{returnTo:e}),window.clearTimeout(T.current);const a=await ae(D.current);("object"==typeof a?null==a?void 0:a.saved:a)&&s.replace(e)},children:[(0,z.jsx)("span",{className:l.back__icon,children:(0,z.jsx)(pt.h,{})}),(0,z.jsx)("span",{className:l.back__text,children:ie})]})}),p?"report"===x?(0,z.jsx)(ys,{data:Y,profileCompleteness:K,setStep:j,isProfileRoute:f,onEditSection:se,openChatHandler:e,sendChatMessageHandler:a,setKodaContext:t,onSaveProfile:ae}):(0,z.jsx)(_t,{data:C,setData:b,loadingDetails:y,setStep:j,onSaveRequest:ae,hasUnsavedChanges:J,onPrepareProfile:X,onFieldFocus:le,onFieldBlur:ne,onImmediateSave:re,autosaveStatus:I,onStepChange:Z,initialTab:A,initialTabKey:R}):(0,z.jsx)("div",{className:l.loader,children:(0,z.jsx)(tt.A,{isFixed:!1})})]}
1),k&&(0,z.jsxs)("div",{className:l.saveError,role:"alert",children:[(0,z.jsx)("span",{children:k}),(0,z.jsx)("button",{type:"button",onClick:te,disabled:N,children:"Try again"})]})]})}},93044:(e,a,t)=>{t.d(a,{h:()=>o});var r,l,n=t(65043);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(null,arguments)}function i({title:e,titleId:a,...t},i){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",ref:i,"aria-labelledby":a},t),e?n.createElement("title",{id:a},e):null,r||(r=n.createElement("path",{d:"M2 12c2.8-4.7 7-7 10-7s7.2 2.3 10 7c-2.8 4.7-7 7-10 7s-7.2-2.3-10-7z"})),l||(l=n.createElement("circle",{cx:12,cy:12,r:3})))}const o=n.forwardRef(i);t.p}}]);
2//# sourceMappingURL=ShortslisterPage.f8fd2256.chunk.js.map

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.