PageSourceSearch

https://app.mytrudy.com/static/js/1789.0c006173.chunk.js

js mytrudy.com collected 2026-10-09 22:54:46 UTC 14,721 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunktalent_web=self.webpackChunktalent_web||[]).push([[1789],{43072(e,t,a){a.d(t,{h:()=>c});var r,n=a(65043);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s.apply(this,arguments)}function o(e,t){let{title:a,titleId:o,...c}=e;return n.createElement("svg",s({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},c),a?n.createElement("title",{id:o},a):null,r||(r=n.createElement("g",{id:"TrudyPro"},n.createElement("rect",{id:"Rectangle 5273",width:15.9999,height:7.2,fill:"currentColor"}),n.createElement("rect",{id:"Rectangle 5857",width:7.38173,height:7.38173,transform:"matrix(0.707106 -0.707108 0.707106 0.707108 2.82031 11.0999)",fill:"currentColor"}))))}const c=n.forwardRef(o);a.p},80184(e,t,a){a.d(t,{A:()=>i});var r=a(64600),n=a.n(r),s=a(35475),o=a(26417),c=a(16299),l=a(70579);function i(e){let{className:t,rootPath:a,rootTitle:r,showBackButton:i=!0,onBack:d}=e;const m=a?s.N_:c.A;return(0,l.jsxs)(m,{to:a,className:n()("__back-button",t),onClick:d,children:[i&&(0,l.jsx)(o.h,{className:"back-button"}),r]})}},45486(e,t,a){a.d(t,{A:()=>i});var r=a(65043),n=a(64600),s=a.n(n),o=a(41089),c=a(4524),l=a(70579);function i(e){let{position:t="top-center",delay:a=3e3,className:n,type:i,show:d,onShow:m,message:u,onClose:h,...p}=e;return(0,r.useEffect)((()=>{m&&m()}),[]),(0,l.jsx)(c.A,{position:t,children:(0,l.jsx)(o.A,{autohide:!0,className:s()("__koi-toast",n),delay:a,show:d,bg:i,onClose:h,...p,children:(0,l.jsx)(o.A.Body,{children:u})})})}},5373(e,t,a){a.d(t,{A:()=>s});var r=a(80184),n=a(70579);function s(e){let{breadCrumbTitle:t,rootPath:a,rootTitle:s,showBackButton:o=!0,onBack:c}=e;return(0,n.jsxs)("div",{className:"__page-bread-crumbs",children:[(0,n.jsx)(r.A,{rootTitle:s,rootPath:a,showBackButton:o,onBack:c}),(0,n.jsx)("span",{className:"breadcrumb-separator",children:"/"}),(0,n.jsx)("span",{className:"breadcrumb-current",children:t})]})}},27816(e,t,a){a.d(t,{A:()=>i});var r=a(64600),n=a.n(r),s=a(27417),o=a(43072),c=a(16299),l=a(70579);function i(e){let{backBtnLabel:t="Back",children:a,className:r,disableNextBtn:i=!1,form:d,leftExtraContent:m,nextBtnLabel:u="Next",showSkip:h=!1,showBack:p=!0,showNext:f=!0,forceMobileFooter:j=!1,showLeft:x=!0,onBack:v,onNext:y,onSkip:b,showDelete:_,onDelete:A,onNextLoading:N=!1,userInFreePlan:g=!1,bottomMessage:w}=e;return(0,l.jsxs)("div",{className:n()("__wizard-footer",r,{"force-mobile-footer":j,"reverse-trial-btn":g}),children:[x&&(0,l.jsxs)("div",{className:"left",children:[m&&(0,l.jsx)("div",{className:"extra-content",children:m}),p&&(0,l.jsx)(c.A,{className:"back-btn",variant:"secondary",onClick:v,"data-cy":"back",children:t}),h&&(0,l.jsx)(c.A,{className:"skip-btn",variant:"secondary",onClick:b,"data-cy":"skip",children:"Skip"})]}),(0,l.jsxs)("div",{className:"right",children:[a&&(0,l.jsx)("div",{className:"extra-content",children:a}),_&&(0,l.jsx)(c.A,{className:"delete-btn",variant:"error",onClick:A,children:"Delete"}),f&&(0,l.jsxs)(c.A,{variant:"primary",type:"submit",disabled:i,onClick:y,form:d,"data-cy":"next",children:[N?(0,l.jsx)(s.A,{}):u,g&&(0,l.jsx)(o.h,{className:"trudy-pro-icon"})]}),w]})]})}},98435(e,t,a){a.d(t,{A:()=>c});var r=a(65043),n=a(93747),s=a(63248),o=a(93862);function c(e){let{url:t="",method:a="GET",payload:c=null,queryKey:l=[""],skip:i=!1,measureRequestTime:d=!1,staleTime:m,cacheTime:u,refetchOnWindowFocus:h,refetchOnMount:p,refetchOnReconnect:f,refetchInterval:j}=e;const x=(0,s.jE)(),[v,y]=(0,r.useState)(0),b=(0,n.I)({queryKey:l,queryFn:async()=>{let e;d&&(e=performance.now());const r=await(0,o.FH)({method:a,url:t,data:c});if(d&&e){const t=performance.now();y((t-e)/1e3)}return r.data},enabled:!i,staleTime:m,cacheTime:u,refetchOnWindowFocus:h,refetchOnMount:p,refetchOnReconnect:f,refetchInterval:j});return{loading:b.isPending,fetching:b.isFetching,error:b.error,response:b.data,requestDurationSeconds:d?v:void 0,refetch:()=>{d&&y(0),x.invalidateQueries(l)},refetchSelf:async()=>(d&&y(0),b.refetch())}}},84153(e,t,a){a.d(t,{A:()=>b});a(77192),a(90325);var r=a(64600),n=a.n(r),s=a(73216),o=a(53896),c=a(2837),l=a(5373),i=a(27816),d=a(54834),m=a(98435),u=a(23349),h=a(45186),p=a(94229),f=a(41114),j=a(64054),x=a(39829),v=a(53451),y=a(70579);function b(e){let{pageTitle:t,breadCrumbTitle:a,Form:r,formId:b,hideFooter:_=!1,sectionId:A,showDelete:N=!1,onDelete:g,className:w,onSaveSuccess:k}=e;const C=(0,s.Zp)(),{appState:B}=(0,j.Us)(),{currentUser:T}=B,{isMobile:P}=(0,p.l)(),M=(0,h.A)(),F=(0,u.A)(),{response:S}=(0,m.A)({url:"/users/profile/".concat(null===T||void 0===T?void 0:T.vanity_url),queryKey:[d.A$],skip:!(null!==T&&void 0!==T&&T.vanity_url)}),E=()=>{C("/profile?scrollTo=".concat(A))},R=async(e,t)=>{let a=t;t||(a=null!==e&&void 0!==e&&e.personality_strengths?"header":"experience"),x.Ay.trackProfileEdit({placement:a,user_status:"member"}),null===k||void 0===k||k(e),F&&!["profile-header-form","about-form"].includes(b)&&(await M(T.id,{update_scores:!0}),localStorage.setItem("show_global_loader",!0)),E()};return(0,y.jsxs)("div",{className:n()("__profile-add-edit-page",w
1),children:[P&&(0,y.jsx)(f.A,{rightContent:(0,y.jsx)(o.h,{onClick:E})}),(0,y.jsxs)("div",{className:n()("profile-add-edit-card",{"no-gap-footer":P}),"data-cy":"profile-add-edit-card",children:[(0,y.jsxs)("div",{className:"content-body",children:[!P&&(0,y.jsx)(l.A,{breadCrumbTitle:a,rootPath:"/profile?scrollTo=".concat(A),rootTitle:"Profile"}),(0,y.jsx)(c.Ay,{className:"profile-section-title",children:t}),(0,y.jsx)("div",{className:"profile-section-container",children:(()=>{var e,t;return r({resumeId:null===S||void 0===S||null===(e=S.resume)||void 0===e?void 0:e.id,formId:b,objective:"about-form"===b?null===S||void 0===S||null===(t=S.resume)||void 0===t?void 0:t.objective:null,onSaveSuccess:R})})()}),!P&&(0,y.jsx)(v.A,{})]}),!_&&(0,y.jsx)(i.A,{form:b,backBtnLabel:"Cancel",bottomMessage:P&&(0,y.jsx)(v.A,{}),nextBtnLabel:"Add to profile",onDelete:g,showDelete:N,showBack:!P,onBack:E})]})]})}},53451(e,t,a){a.d(t,{A:()=>n});var r=a(70579);function n(){return(0,r.jsxs)("div",{className:"__experience-description-container",children:[(0,r.jsxs)("div",{className:"title",children:[(0,r.jsx)("span",{className:"icon",children:"\ud83c\udf1f"}),(0,r.jsx)("span",{children:"Better experience = better scores"})]}),(0,r.jsx)("p",{children:"Adding details helps us improve your match scores, surface better-fit listings, and expand your career path options."})]})}},81789(e,t,a){a.r(t),a.d(t,{default:()=>A});var r=a(73216),n=a(24241),s=a(65043),o=a(78602),c=a(29853),l=a(61072),i=a(43795),d=a(45486),m=a(99600),u=a(93862),h=a(71087),p=a(39829),f=a(21280),j=a(70579);const x={title:"",company:"",start_date_month:"",start_date_year:"",end_date_month:"",end_date_year:"",description:""};function v(e){let{project:t=null,core:a=!1,formId:r="project-form",resumeId:v,onSaveSuccess:y}=e;const[b,_]=(0,i.e)(x),[A,N]=(0,s.useState)(!1),[g,w]=(0,s.useState)(),k=e=>{p.Ay.trackQuestionAnswered({widget_name:"Projects Form",form_field:e})},C=e=>{const{name:t,checked:a,type:r}=e.target;let{value:n}=e.target;"start_date_year"===t&&(n=n.replace(/[^0-9]/g,"")),_((e=>{e[t]=(0,f.GR)(n,a,r)})),"start_date_month"===t&&""!==n.trim()&&k(t)},B=e=>{const{name:t,value:a}=e.target;""!==a.trim()&&k(t)};return(0,s.useEffect)((()=>{if(t){const e={...t};if(e.start_date){const t=n.c9.fromFormat(e.start_date,"yyyy-MM-dd");e.start_date_month=t.month,e.start_date_year=t.year}if(e.end_date){const t=n.c9.fromFormat(e.end_date,"yyyy-MM-dd");e.end_date_month=t.month,e.end_date_year=t.year}_(e)}else _(x)}),[t]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(c.A,{id:r,className:"__award-form",noValidate:!0,validated:A,onSubmit:async e=>{e.preventDefault();const t=e.currentTarget.checkValidity();if(N(!0),t)try{let e,t;b.start_date_year&&b.start_date_month&&(e=n.c9.fromObject({year:b.start_date_year,month:b.start_date_month}).toFormat("yyyy-MM-dd")),b.end_date_year&&b.end_date_month&&(t=n.c9.fromObject({year:b.end_date_year,month:b.end_date_month}).toFormat("yyyy-MM-dd"));const r={project:{...b,start_date:e,resume_id:v,end_date:t,input:a}};let s;if(b.id){const{data:e}=await u.FH.put("/projects/".concat(b.id),r);
1s=e}else{const{data:e}=await u.FH.post("/projects",r);s=e}y&&y(s,"projects")}catch{w("Unexpected error while saving your project. Please try again later.")}},children:[(0,j.jsx)(c.A.Group,{as:l.A,className:"form-item",children:(0,j.jsx)(o.A,{md:6,sm:12,children:(0,j.jsx)(m.A,{label:"Project Name","data-testid":"project-name",name:"title",errorMessage:"Please enter your project Name",value:null===b||void 0===b?void 0:b.title,required:!0,onChange:C,onBlur:B})})}),(0,j.jsx)(c.A.Group,{as:l.A,className:"form-item",children:(0,j.jsx)(o.A,{md:4,sm:12,children:(0,j.jsx)(m.A,{label:"Company","data-testid":"project-company",name:"company",value:null===b||void 0===b?void 0:b.company,onChange:C,onBlur:B})})}),(0,j.jsxs)(c.A.Group,{as:l.A,className:"form-item",children:[(0,j.jsxs)(o.A,{md:4,sm:12,className:"date-item",children:[(0,j.jsx)("div",{children:(0,j.jsx)(c.A.Label,{className:"truepath-input-label",children:"Start Date"})}),(0,j.jsxs)(l.A,{children:[(0,j.jsx)(o.A,{xs:7,className:"month",children:(0,j.jsx)(m.A,{hideLabel:!0,name:"start_date_month","data-testid":"project-start-month",placeholder:"Month",type:"select",value:null===b||void 0===b?void 0:b.start_date_month,onChange:C,children:(0,h.vB)()})}),(0,j.jsx)(o.A,{xs:5,className:"year",children:(0,j.jsx)(m.A,{hideLabel:!0,placeholder:"Year",name:"start_date_year","data-testid":"project-start-year",value:null===b||void 0===b?void 0:b.start_date_year,onChange:C,onBlur:B,pattern:"(19[0-9][0-9])|(20[0-9][0-9])"})})]})]}),(0,j.jsxs)(o.A,{md:4,sm:12,className:"date-item",children:[(0,j.jsx)("div",{children:(0,j.jsx)(c.A.Label,{className:"truepath-input-label",children:"End Date"})}),(0,j.jsxs)(l.A,{children:[(0,j.jsx)(o.A,{xs:7,className:"month",children:(0,j.jsx)(m.A,{hideLabel:!0,name:"end_date_month","data-testid":"project-end-month",placeholder:"Month",type:"select",value:null===b||void 0===b?void 0:b.end_date_month,onChange:C,children:(0,h.vB)()})}),(0,j.jsx)(o.A,{xs:5,className:"year",children:(0,j.jsx)(m.A,{hideLabel:!0,placeholder:"Year",name:"end_date_year","data-testid":"project-end-year",value:null===b||void 0===b?void 0:b.end_date_year,onChange:C,onBlur:B,pattern:"(19[0-9][0-9])|(20[0-9][0-9])"})})]})]})]}),(0,j.jsx)(c.A.Group,{as:l.A,className:"form-item",children:(0,j.jsx)(o.A,{md:6,sm:12,children:(0,j.jsx)(m.A,{as:"textarea",rows:4,label:"Description",name:"description","data-testid":"project-description",value:null===b||void 0===b?void 0:b.description,onChange:C,onBlur:B})})})]}),(0,j.jsx)(d.A,{type:"danger",show:!!g,message:g,onClose:()=>w(null)})]})}var y=a(54834),b=a(98435),_=a(84153);function A(){const{projectId:e}=(0,r.g)(),{response:t}=(0,b.A)({url:"/projects/".concat(e),queryKey:[y.js,e],skip:!e});return(0,j.jsx)(_.A,{pageTitle:e?"Edit project":"Add project",breadCrumbTitle:e?"Edit project":"Add project",sectionId:"profile-projects-section",formId:"project-form",Form:e=>(0,j.jsx)(v,{project:t,...e})})}},23240(e,t,a){a.d(t,{A:()=>l});var r=a(65043),n=a(36723),s=a(59109),o=Math.pow(2,31)-1;function c(e,t,a){var r=a-Date.now();e.current=r<=o?setTimeout(t,r):setTimeout((function(){return c(e,t,a)}),o)}function l(){var e=(0,n.A)(),t=(0,r.useRef)();return(0,s.A)((function(){return clearTimeout(t.current)})),(0,r.useMemo)((function(){var a=function(){return clearTimeout(t.current)};return{set:function(r,n){void 0===n&&(n=0),e()&&(a(),n<=o?t.current=setTimeout(r,n):c(t,r,Date.now()+n))},clear:a}}),[])}},61072(e,t,a){a.d(t,{A:()=>i});var r=a(64600),n=a.n(r),s=a(65043),o=a(67852),c=a(70579);const l=s.forwardRef(((e,t)=>{let{bsPrefix:a,className:r,as:s="div",...l}=e;const i=(0,o.oU)(a,"row"),d=(0,o.gy)(),m=(0,o.Jm)(),u="".concat(i,"-cols"),h=[];return d.forEach((e=>{const t=l[e];let a;delete l[e],null!=t&&"object"===typeof t?({cols:a}=t):a=t;const r=e!==m?"-".concat(e):"";null!=a&&h.push("".concat(u).concat(r,"-").concat(a))})),(0,c.jsx)(s,{ref:t,...l,className:n()(r,i,...h)})}));l.displayName="Row";const i=l},41089(e,t,a){a.d(t,{A:()=>_});var r=a(65043),n=a(64600),s=a.n(n),o=a(23240),c=a(28062),l=a(18072),i=a(70579);const d={[c.ns]:"showing",[c.ze]:"showing show"},m=r.forwardRef(((e,t)=>(0,i.jsx)(l.A,{...e,ref:t,transitionClasses:d})));m.displayName="ToastFade";const u=m;var h=a(71456),p=a(67852),f=a(85632);const j=r.createContext({onClose(){}}),x=r.forwardRef(((e,t)=>{let{bsPrefix:a,closeLabel:n,closeVariant:o,closeButton:c,className:l,children:d,...m}=e;a=(0,p.oU)(a,"toast-header");const u=(0,r.useContext)(j),x=(0,h.A)((e=>{null==u||null==u.onClose||u.onClose(e)}));return(0,i.jsxs)("div",{ref:t,...m,className:s()(a,l),children:[d,c&&(0,i.jsx)(f.A,{"aria-label":n,variant:o,onClick:x,"data-dismiss":"toast"})]})}));x.displayName="ToastHeader",x.defaultProps={closeLabel:"Close",closeButton:!0};
1const v=x;const y=(0,a(80700).A)("toast-body"),b=r.forwardRef(((e,t)=>{let{bsPrefix:a,className:n,transition:c=u,show:l=!0,animation:d=!0,delay:m=5e3,autohide:h=!1,onClose:f,bg:x,...v}=e;a=(0,p.oU)(a,"toast");const y=(0,r.useRef)(m),b=(0,r.useRef)(f);(0,r.useEffect)((()=>{y.current=m,b.current=f}),[m,f]);const _=(0,o.A)(),A=!(!h||!l),N=(0,r.useCallback)((()=>{A&&(null==b.current||b.current())}),[A]);(0,r.useEffect)((()=>{_.set(N,y.current)}),[_,N]);const g=(0,r.useMemo)((()=>({onClose:f})),[f]),w=!(!c||!d),k=(0,i.jsx)("div",{...v,ref:t,className:s()(a,n,x&&"bg-".concat(x),!w&&(l?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,i.jsx)(j.Provider,{value:g,children:w&&c?(0,i.jsx)(c,{in:l,unmountOnExit:!0,children:k}):k})}));b.displayName="Toast";const _=Object.assign(b,{Body:y,Header:v})},4524(e,t,a){a.d(t,{A:()=>d});var r=a(64600),n=a.n(r),s=a(65043),o=a(67852),c=a(70579);const l={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},i=s.forwardRef(((e,t)=>{let{bsPrefix:a,position:r,containerPosition:s="absolute",className:i,as:d="div",...m}=e;return a=(0,o.oU)(a,"toast-container"),(0,c.jsx)(d,{ref:t,...m,className:n()(a,r&&[s?"position-".concat(s):null,l[r]],i)})}));i.displayName="ToastContainer";const d=i},90325(){},77192(){}}]);
2//# sourceMappingURL=1789.0c006173.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.