1"use strict";(self.webpackChunktalent_web=self.webpackChunktalent_web||[]).push([[5952],{80184(e,t,s){s.d(t,{A:()=>c});var n=s(64600),o=s.n(n),r=s(35475),a=s(26417),i=s(16299),l=s(70579);function c(e){let{className:t,rootPath:s,rootTitle:n,showBackButton:c=!0,onBack:d}=e;const u=s?r.N_:i.A;return(0,l.jsxs)(u,{to:s,className:o()("__back-button",t),onClick:d,children:[c&&(0,l.jsx)(a.h,{className:"back-button"}),n]})}},45486(e,t,s){s.d(t,{A:()=>c});var n=s(65043),o=s(64600),r=s.n(o),a=s(41089),i=s(4524),l=s(70579);function c(e){let{position:t="top-center",delay:s=3e3,className:o,type:c,show:d,onShow:u,message:m,onClose:h,...f}=e;return(0,n.useEffect)((()=>{u&&u()}),[]),(0,l.jsx)(i.A,{position:t,children:(0,l.jsx)(a.A,{autohide:!0,className:r()("__koi-toast",o),delay:s,show:d,bg:c,onClose:h,...f,children:(0,l.jsx)(a.A.Body,{children:m})})})}},5373(e,t,s){s.d(t,{A:()=>r});var n=s(80184),o=s(70579);function r(e){let{breadCrumbTitle:t,rootPath:s,rootTitle:r,showBackButton:a=!0,onBack:i}=e;return(0,o.jsxs)("div",{className:"__page-bread-crumbs",children:[(0,o.jsx)(n.A,{rootTitle:r,rootPath:s,showBackButton:a,onBack:i}),(0,o.jsx)("span",{className:"breadcrumb-separator",children:"/"}),(0,o.jsx)("span",{className:"breadcrumb-current",children:t})]})}},55952(e,t,s){s.r(t),s.d(t,{default:()=>x});var n=s(65043),o=s(73216),r=s(5373),a=s(94229),i=s(41114),l=s(16299),c=s(2837),d=s(45486),u=s(99600),m=s(64054),h=s(39829),f=s(70579);function v(e){let{title:t,fromView:s}=e;const[o]=(0,n.useContext)(m.Ay),{currentUser:r}=o,[a,i]=(0,n.useState)(!1);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("section",{className:"invite-content",children:(0,f.jsxs)("div",{className:"main-content",children:[(0,f.jsx)("div",{className:"emoji",children:"\ud83c\udf81"}),(0,f.jsx)(c.Ay,{as:"h2",children:t}),(0,f.jsx)("div",{className:"details",children:"When three friends sign up for Trudy and create their first resume using your link, you\u2019ll unlock a free month of Trudy Pro\u2014and they'll each get 20% off their first month."}),(0,f.jsxs)("div",{className:"invite-link",children:[(0,f.jsx)(u.A,{hideLabel:!0,value:"".concat("https://app.mytrudy.com","/invite/").concat(null===r||void 0===r?void 0:r.invite_link),disabled:!0}),(0,f.jsx)(l.A,{className:"btn-copy-link",onClick:()=>{h.Ay.trackUserClicked({widget_name:"Referrals Copy link",from_view:s}),navigator.clipboard.writeText("".concat("https://app.mytrudy.com","/invite/").concat(null===r||void 0===r?void 0:r.invite_link)).then((()=>{i(!0)}))},children:"Copy link"})]}),(0,f.jsxs)("div",{className:"invite-status",children:[(0,f.jsx)("div",{className:"title",children:"Invite status"}),(0,f.jsx)("div",{className:"count",children:(()=>{switch(null===r||void 0===r?void 0:r.referrer_count){case 0:return(0,f.jsxs)(f.Fragment,{children:["You need ",(0,f.jsx)("span",{className:"bold",children:"3 more invites"})," to claim your free month."]});case 1:return(0,f.jsxs)(f.Fragment,{children:["You need ",(0,f.jsx)("span",{className:"bold",children:"2 more invites"})," to claim your free month."]});case 2:return(0,f.jsxs)(f.Fragment,{children:["You need ",(0,f.jsx)("span",{className:"bold",children:"1 more invite"})," to claim your free month."]});default:return(0,f.jsx)(f.Fragment,{children:"Your free month has been activated!"})}})()})]})]})}),(0,f.jsx)(d.A,{type:"success",show:!!a,message:"Link copied to clipboard",onClose:()=>i(!1)})]})}function x(){const{isMobile:e}=(0,a.l)(),t=(0,o.Zp)();return(0,f.jsxs)("div",{className:"__invite-page",children:[e?(0,f.jsx)(i.A,{showBackButton:!0,onBack:()=>{t("/profile")}}):(0,f.jsx)(r.A,{breadCrumbTitle:"Invite friends",rootPath:"/profile",rootTitle:"Profile"}),(0,f.jsx)(v,{title:"Refer 3 friends for a free month of Trudy Pro!",fromView:"referrals"})]})}},23240(e,t,s){s.d(t,{A:()=>l});var n=s(65043),o=s(36723),r=s(59109),a=Math.pow(2,31)-1;function i(e,t,s){var n=s-Date.now();e.current=n<=a?setTimeout(t,n):setTimeout((function(){return i(e,t,s)}),a)}function l(){var e=(0,o.A)(),t=(0,n.useRef)();return(0,r.A)((function(){return clearTimeout(t.current)})),(0,n.useMemo)((function(){var s=function(){return clearTimeout(t.current)};return{set:function(n,o){void 0===o&&(o=0),e()&&(s(),o<=a?t.current=setTimeout(n,o):i(t,n,Date.now()+o))},clear:s}}),[])}}
1,41089(e,t,s){s.d(t,{A:()=>N});var n=s(65043),o=s(64600),r=s.n(o),a=s(23240),i=s(28062),l=s(18072),c=s(70579);const d={[i.ns]:"showing",[i.ze]:"showing show"},u=n.forwardRef(((e,t)=>(0,c.jsx)(l.A,{...e,ref:t,transitionClasses:d})));u.displayName="ToastFade";const m=u;var h=s(71456),f=s(67852),v=s(85632);const x=n.createContext({onClose(){}}),p=n.forwardRef(((e,t)=>{let{bsPrefix:s,closeLabel:o,closeVariant:a,closeButton:i,className:l,children:d,...u}=e;s=(0,f.oU)(s,"toast-header");const m=(0,n.useContext)(x),p=(0,h.A)((e=>{null==m||null==m.onClose||m.onClose(e)}));return(0,c.jsxs)("div",{ref:t,...u,className:r()(s,l),children:[d,i&&(0,c.jsx)(v.A,{"aria-label":o,variant:a,onClick:p,"data-dismiss":"toast"})]})}));p.displayName="ToastHeader",p.defaultProps={closeLabel:"Close",closeButton:!0};const b=p;const j=(0,s(80700).A)("toast-body"),y=n.forwardRef(((e,t)=>{let{bsPrefix:s,className:o,transition:i=m,show:l=!0,animation:d=!0,delay:u=5e3,autohide:h=!1,onClose:v,bg:p,...b}=e;s=(0,f.oU)(s,"toast");const j=(0,n.useRef)(u),y=(0,n.useRef)(v);(0,n.useEffect)((()=>{j.current=u,y.current=v}),[u,v]);const N=(0,a.A)(),k=!(!h||!l),w=(0,n.useCallback)((()=>{k&&(null==y.current||y.current())}),[k]);(0,n.useEffect)((()=>{N.set(w,j.current)}),[N,w]);const A=(0,n.useMemo)((()=>({onClose:v})),[v]),C=!(!i||!d),g=(0,c.jsx)("div",{...b,ref:t,className:r()(s,o,p&&"bg-".concat(p),!C&&(l?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return(0,c.jsx)(x.Provider,{value:A,children:C&&i?(0,c.jsx)(i,{in:l,unmountOnExit:!0,children:g}):g})}));y.displayName="Toast";const N=Object.assign(y,{Body:j,Header:b})},4524(e,t,s){s.d(t,{A:()=>d});var n=s(64600),o=s.n(n),r=s(65043),a=s(67852),i=s(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"},c=r.forwardRef(((e,t)=>{let{bsPrefix:s,position:n,containerPosition:r="absolute",className:c,as:d="div",...u}=e;return s=(0,a.oU)(s,"toast-container"),(0,i.jsx)(d,{ref:t,...u,className:o()(s,n&&[r?"position-".concat(r):null,l[n]],c)})}));c.displayName="ToastContainer";const d=c}}]); 2//# sourceMappingURL=5952.070c1435.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.