PageSourceSearch

https://www.matcha.ai/_next/static/chunks/1962.82ec5da4643428c5.js

js matcha.ai collected 2026-10-05 13:08:37 UTC 8,908 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="c5157d93-dc5a-43da-ace0-104bf615d239",e._sentryDebugIdIdentifier="sentry-dbid-c5157d93-dc5a-43da-ace0-104bf615d239")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1962],{1962:(e,a,r)=>{"use strict";r.r(a),r.d(a,{EditBasicInfoModal:()=>N});var t=r(95155),i=r(12115),l=r(84782),s=r(18415),n=r(45479),o=r(72672),d=r(17108),c=r(64269),u=r(84001),m=r.n(u);let f={firstName:"",lastName:"",profileSummary:""};function N(e){let{isOpen:a,onClose:r,onSave:u,basicInfo:N,isSaving:p,error:b,onDirtyChange:y}=e,{user:h,isAuthenticated:v}=(0,n.As)(),[x,g]=(0,i.useState)(f),[_,j]=(0,i.useState)(f),[S,E]=(0,i.useState)({}),I=(0,i.useId)(),{data:w,isLoading:B}=(0,s.$w)((null==h?void 0:h.id)?String(h.id):"",{skip:!v||!h||!a});(0,i.useEffect)(()=>{if(!a)return;let e=N?{firstName:N.firstName,lastName:N.lastName,profileSummary:N.profileSummary}:w?{firstName:w.firstName,lastName:w.lastName,profileSummary:w.profileSummary}:null;if(e){let a={firstName:e.firstName||"",lastName:e.lastName||"",profileSummary:e.profileSummary||""};o.vF.info("Loading current basic info in modal:",a,"BASIC_INFO_MODAL"),g(a),j(a),E({})}else B||(g(f),j(f),E({}))},[a,N,w,B]);let k=JSON.stringify(x)!==JSON.stringify(_);(0,i.useEffect)(()=>{null==y||y(k)},[k,y]),(0,i.useEffect)(()=>()=>null==y?void 0:y(!1),[y]);let M=(e,a)=>{let r=a.trim();if("firstName"===e){if(!r)return"First name is required";if(r.length>50)return"First name must be 50 characters or less"}if("lastName"===e){if(!r)return"Last name is required";if(r.length>50)return"Last name must be 50 characters or less"}if("profileSummary"===e&&r.length>500)return"Profile summary must be 500 characters or less"},C=(e,a)=>{g(r=>({...r,[e]:a})),S[e]&&E(a=>({...a,[e]:void 0}))},L=e=>{E(a=>({...a,[e]:M(e,x[e])}))},O=x.profileSummary.length,F=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m().input;return(0,c.cn)(a,S[e]&&m().inputError)};return(0,t.jsx)(l.a,{isOpen:a,onClose:r,title:"Edit Basic Info",onSave:()=>{if(!(()=>{let e={firstName:M("firstName",x.firstName),lastName:M("lastName",x.lastName),profileSummary:M("profileSummary",x.profileSummary)};return Object.keys(e).forEach(a=>{e[a]||delete e[a]}),E(e),0===Object.keys(e).length})())return void o.vF.warn("Basic info validation failed",S,"BASIC_INFO_MODAL");let e={firstName:x.firstName.trim(),lastName:x.lastName.trim(),profileSummary:x.profileSummary.trim()};o.vF.info("Saving basic info data:",e,"BASIC_INFO_MODAL"),u(e)},isDirty:k,isSaving:p,error:b,children:B?(0,t.jsx)("div",{className:m().loading,children:(0,t.jsx)(d.Ip,{size:"md"})}):(0,t.jsxs)("div",{className:m().body,children:[(0,t.jsx)("p",{className:m().lede,children:"Update your name and profile summary."}),(0,t.jsxs)("div",{className:m().field,children:[(0,t.jsxs)("label",{htmlFor:"firstName",className:m().label,children:["First Name ",(0,t.jsx)("span",{className:m().req,children:"*"})]}),(0,t.jsx)("input",{id:"firstName",type:"text",value:x.firstName,onChange:e=>C("firstName",e.target.value),onBlur:()=>L("firstName"),"aria-invalid":!!S.firstName,"aria-describedby":S.firstName?"".concat(I,"-firstName"):void 0,className:F("firstName"),placeholder:"Enter your first name",maxLength:50}),S.firstName&&(0,t.jsx)("p",{id:"".concat(I,"-firstName"),className:m().error,children:S.firstName})]}),(0,t.jsxs)("div",{className:m().field,children:[(0,t.jsxs)("label",{htmlFor:"lastName",className:m().label,children:["Last Name ",(0,t.jsx)("span",{className:m().req,children:"*"})]}),(0,t.jsx)("input",{id:"lastName",type:"text",value:x.lastName,onChange:e=>C("lastName",e.target.value),onBlur:()=>L("lastName"),"aria-invalid":!!S.lastName,"aria-describedby":S.lastName?"".concat(I,"-lastName"):void 0,className:F("lastName"),placeholder:"Enter your last name",maxLength:50}),S.lastName&&(0,t.jsx)("p",{id:"".concat(I,"-lastName"),className:m().error,children:S.lastName})]}),(0,t.jsxs)("div",{className:m().field,children:[(0,t.jsx)("label",{htmlFor:"profileSummary",className:m().label,children:"Profile Summary"}),(0,t.jsx)("p",{className:m().lede,children:"Share a brief summary about yourself, your experience, and what you're looking for."}),(0,t.jsx)("textarea",{id:"profileSummary",value:x.profileSummary,onChange:e=>C("profileSummary",e.target.value),onBlur:()=>L("profileSummary"),"aria-invalid":!!S.profileSummary,"aria-describedby":S.profileSummary?"".concat(I,"-profileSummary"):void 0,className:F("profileSummary",m().textarea),placeholder:"Tell employers about yourself...",maxLength:500}),(0,t.jsxs)("div",{className:m().counterRow,children:[S.profileSummary?(0,t.jsx)("p",{id:"".concat(I,"-profileSummary"),className:m().error,children:S.profileSummary}):(0,t.jsx)("span",{className:m().count,children:"\xa0"}
1),(0,t.jsxs)("span",{className:(0,c.cn)(m().count,O>500?m().countOver:O>450?m().countNear:void 0),children:[O,"/",500]})]})]})]})})}},84001:e=>{e.exports={body:"EditBasicInfoModal_body__1bNCH",lede:"EditBasicInfoModal_lede__LjEMx",loading:"EditBasicInfoModal_loading__XUZWD",field:"EditBasicInfoModal_field__ifocq",label:"EditBasicInfoModal_label__Xb4Eg",req:"EditBasicInfoModal_req__SFaQm",input:"EditBasicInfoModal_input__nP1ql",textarea:"EditBasicInfoModal_textarea__Yvebu EditBasicInfoModal_input__nP1ql",inputError:"EditBasicInfoModal_inputError__1g36r",error:"EditBasicInfoModal_error__5xcLn",counterRow:"EditBasicInfoModal_counterRow__ZDdEu",count:"EditBasicInfoModal_count__pjl1Z",countNear:"EditBasicInfoModal_countNear__Siknd",countOver:"EditBasicInfoModal_countOver__OHAaO"}},84782:(e,a,r)=>{"use strict";r.d(a,{a:()=>u});var t=r(95155),i=r(12115),l=r(65229),s=r(3998),n=r(18332),o=r(36402),d=r(12319);let c='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function u(e){let{isOpen:a,onClose:r,title:u,children:m,onSave:f,hideDefaultFooter:N,isDirty:p=!1,isSaving:b=!1,error:y,errorTitle:h,saveLabel:v="Save Changes",cancelLabel:x="Cancel"}=e,g=(0,i.useRef)(null),_=(0,i.useRef)(null),j=(0,i.useId)(),[S,E]=(0,i.useState)(!1),I=(0,i.useCallback)(()=>{if(!b){if(p)return void E(!0);r()}},[p,b,r]);return((0,i.useEffect)(()=>{var e;if(!a)return;_.current=document.activeElement;let r=g.current,t=null==r?void 0:r.querySelectorAll(c);return null==(e=t&&t.length>0?t[0]:r)||e.focus(),()=>{var e,a;null==(a=_.current)||null==(e=a.focus)||e.call(a)}},[a]),(0,i.useEffect)(()=>{if(!a)return;let e=e=>{if("Escape"===e.key){e.stopPropagation(),I();return}if("Tab"!==e.key)return;let a=g.current,r=null==a?void 0:a.querySelectorAll(c);if(!r||0===r.length)return void e.preventDefault();let t=r[0],i=r[r.length-1],l=document.activeElement;e.shiftKey&&l===t?(e.preventDefault(),i.focus()):e.shiftKey||l!==i||(e.preventDefault(),t.focus())};return document.addEventListener("keydown",e,!0),()=>document.removeEventListener("keydown",e,!0)},[a,I]),a)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-foreground
1/50 p-4",onClick:e=>{e.target===e.currentTarget&&I()},children:(0,t.jsxs)("div",{ref:g,role:"dialog","aria-modal":"true","aria-labelledby":j,tabIndex:-1,className:"w-full max-w-2xl overflow-hidden rounded-token-xl bg-surface-elevated shadow-token-lg focus:outline-none",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-6 py-4",children:[(0,t.jsx)("h2",{id:j,className:"text-lg font-semibold text-foreground",children:u}),(0,t.jsx)("button",{type:"button",onClick:I,"aria-label":"Close",className:"rounded-token-md p-2 text-foreground-muted transition-colors hover:bg-foreground/5 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",children:(0,t.jsx)(l.A,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,t.jsxs)("div",{className:"px-6 py-4",children:[y&&(0,t.jsxs)(n.Fc,{role:"alert",className:"mb-4 border-danger/30 bg-danger/10 text-danger",children:[h&&(0,t.jsx)(n.XL,{children:h}),(0,t.jsx)(n.TN,{className:"text-danger",children:y})]}),m]}),!N&&(0,t.jsxs)("div",{className:"flex justify-end gap-3 border-t border-border px-6 py-4",children:[(0,t.jsx)(s.$,{type:"button",variant:"ghost",onClick:I,disabled:b,children:x}),(0,t.jsx)(s.$,{type:"button",onClick:f,disabled:b,"aria-busy":b,children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.MatchaLoader,{size:16,label:null,className:"mr-2"}),"Saving…"]}):v})]})]})}),(0,t.jsx)(o.T,{open:S,onOpenChange:E,title:"Discard unsaved changes?",description:"You have unsaved changes. If you leave now, your edits will be lost.",confirmLabel:"Discard",cancelLabel:"Keep editing",variant:"warning",onConfirm:()=>r()})]}):null}}}]);

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.