1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/tw9kywzhcq.Dj1CM_Oy.js","assets/zhjhzy1kcm9w.DA_5RF-L.js","assets/cm9sbgltzq.C0zBU2yP.js","assets/sw1hz2jmywnl.BzsUItMa.js","assets/chjlbgxwzxi.DGBhFIeS.js","assets/dnvllwrlbq.t69ggluk.js","assets/c2vudhvudhj5.DbU550Wk.js","assets/zglzdalzda.Dol7pjGD.js","assets/yxnzzx9ucw.BcEqxbj_.js","assets/yxjyyxjyyxk.Cd8qVrCC.js","assets/bg9nbg9n.CKhwgiXE.js","assets/ynjlywvtyg.BknCqZu1.js","assets/dxrpbhrpbhm.SaSWgpIg.js","assets/cmvzy3vzy3vl.BPSAgJxd.js","assets/b2jqzwjqzwn0.BUWEIaWD.js","assets/bmv0d2luzw.lr1vu2vX.js","assets/Image.C7A1PU5L.css","assets/rwxnb2rhba.TUWOSiR0.js","assets/rwxcywjvdw5k.Din42Zx9.js","assets/ElBackground.Y-zrwoJt.css","assets/rwxby3rpb24.ChdEZCc2.js","assets/bmf2lxrlcw.p97MTl_w.js","assets/dxnlu3rvcmu.B0pNonF8.js","assets/rwxmawxmaw5r.B-wlV0Wr.js","assets/ElLink.D-I_UhCx.css","assets/rwxmb2fkzxi.DhLhNaZz.js","assets/rwxtcglubmvy.CWF2L-n_.js","assets/dxnllw9wcw.Dp2c9RS9.js","assets/dxnlvg9yzq.DcxjWSOv.js","assets/dxnlqxnlqxbp.C2FSbK-a.js","assets/ElSpinner.BYF0mHJo.css","assets/cmvwb3jvcg.BXGmigEp.js","assets/rwxcdxr0b24.BF3L9He_.js","assets/ElModal.DEOeIWcm.css","assets/rmfxsxrlbq.Cvf-hSoY.js"])))=>i.map(i=>d[i]); 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var r in a)a.hasOwnProperty(r)&&(e[r]=a[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:K7X9M2P4R8W5N3Q6":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="06d48fb2-67d9-4379-87e9-3c08611af3fc",e._sentryDebugIdIdentifier="sentry-dbid-06d48fb2-67d9-4379-87e9-3c08611af3fc")}catch(e){}}();import{t as e}from"./chjlbgxwzxi.DGBhFIeS.js";import{C as t,E as a,Et as r,K as o,T as l,W as s,_ as n,b as i,f as d,g as m,ht as u,it as c,k as p,kt as w,pt as f,v as g,w as h,wt as y,y as x}from"./zhjhzy1kcm9w.DA_5RF-L.js";import{$ as v,B as b}from"./dnvllwrlbq.t69ggluk.js";import{E as k,I as _,n as j}from"./zglzdalzda.Dol7pjGD.js";import{t as z}from"./dxrpbhrpbhm.SaSWgpIg.js";import{$r as q,Gn as I,In as E,Jr as P,et as M}from"./sw1hz2jmywnl.BzsUItMa.js";import{t as T}from"./rwxmawxmaw5r.B-wlV0Wr.js";import{t as D}from"./dxnlqxnlqxbp.C2FSbK-a.js";import{t as C}from"./rwxmb2fkzxi.DhLhNaZz.js";import{t as U}from"./rwxcdxr0b24.BF3L9He_.js";import{t as A}from"./yxv0ac11c2vy.DfPgz3tp.js";import{t as L}from"./dxnlu29yzq.BQ87ftFK.js";import{t as N}from"./rwxdyxxdyxjk.DwgWuIW-.js";import{t as R}from"./rwxnzxxnzxrh.CsOLObNo.js";import{t as B}from"./rwxqcmjhcg.BiZn4vcX.js";import{t as K}from"./shrtbfzhy2u.ZdNM83-V.js";import{t as O}from"./rwxnzxrpca.BzenXCFy.js";import{t as S}from"./quldb2rpb24.DRtjifU3.js";import{t as F}from"./uhjvzmrlcg.DHfbhVa_.js";var Q={endpoint:"api.profile.ai.faq",input:k({}),output:k({faqs:j(k({title:_(),answer:K}))})},V={class:"tw-mb-60"},W={class:"header__image"},Y=["src","alt"],$={class:"p-lg"},G={class:"tw-mb-30"},J={id:"usageLabel",class:"p-tn tw-text-gray-rgb-12 dark:tw-text-ds-text-gray-lighter"},X={key:0,class:"profile__section sp-wrap"},H={class:"tw-mt-30"},Z={key:0},ee={key:0},te={key:1,class:"tw-grid-cols-3 tw-gap-20 medium:tw-grid"},ae={class:"tw-mx-0 tw-mb-10 tw-mt-5 tw-flex tw-leading-none"},re=a({__name:"ProfilePageAI",setup(a){const k=l(()=>e(()=>import("./tw9kywzhcq.Dj1CM_Oy.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]))),_=D(),j=D(),{canAccessPremiumReport:K}=A(),{isSetup:re}=v(L());b(re).toBeTruthy().then(()=>{K.value&&we()});const{trans_en:oe,localizeNumber:le}=E(),{showConfirmModal:se}=P(),ne=u([]),ie=u({total:0,used:0,showUpgradePrompt:!1,remaining:0}),de=f({loaded:!1,loading:!0,error:null}),me=m(()=>{const e=ie.value.used/ie.value.total;return e<.7?"green":e<.9?"yellow":"red"}),ue=m(()=>({used:le(ie.value.used),total:le(ie.value.total)})),ce=()=>p("strong",{class:"tw-font-semibold tw-text-gray-20 dark:tw-text-ds-text"},ue.value.used),pe=()=>p("strong",{class:"tw-font-semibold tw-text-gray-20 dark:tw-text-ds-text"},ue.value.total),we=()=>{de.loading=!0,de.loaded=!1,de.error=null,(new _).silently().action("fetch-mentor-conversations").route("api.profile.ai.conversations.index").then(({data:e})=>{ne.value=e.conversations,ie.value=e.usage,de.loaded=!0}).catch(e=>I(e,e=>de.error=e)).finally(()=>de.loading=!1)},fe={headerTitle:"tw-text-font-h3 medium:tw-text-font-h1-medium huge:tw-text-font-h1-huge tw-leading-font-h3 medium:tw-leading-font-h1-medium huge:tw-leading-font-h1-huge tw-tracking-font-h3 medium:tw-tracking-font-h1-medium huge:tw-tracking-font-h1-huge medium:tw-float-start medium:tw-w-[calc(50%-10px)] tw-mt-5 medium:tw-mt-30 tw-mb-10 medium:tw-mb-20",headerFigure:"tw-block tw-mx-0 medium:tw-float-end medium:tw-mt-50 medium:tw-w-[calc(50%-10px)]",headerImg:"tw-block tw-w-auto medium:tw-mx-auto",headerLead:"tw-clear-start medium:tw-max-w-[calc(50%-10px)]"};return(e,a)=>(s(),i("div",V,[h(F,{title:y(oe)("Talk with Elina","profile.mentor.title"),css:fe},{after:c(()=>[n("figure",{class:r(["header__figure",fe.headerFigure])},[n("div",W,[n("img",{src:y(z)("images/profile/reports/all/mastering-college.svg"),alt:y(oe)("A woman is sitting at her desk, making some notes. There are a few books and a cup of coffee nearby.","profile.mentor.image-alt"),height:"227.5",width:"490.47",class:r(fe.headerImg)},null,10,Y)])],2),n("div",{class:r(["header__lead",fe.headerLead])},[n("p",$,w(y(oe)("Your personality isnât just a label â itâs a roadmap. Turn your potential into real, authentic growth with Elina, your friendly and insightful AI mentor.","profile.mentor.lead")),1),h(S,{class:"tw-my-20","show-prompt-only":"",disabled:!y(K)||ie.value.total-ie.value.used<=0},null,8,["disabled"]),n("div",G,[y(K)?(s(),g(B,{key:0,color:me.value,total:ie.value.total,value:ie.value.used,size:"10",css:{bg:"tw-bg-gray-04"},class:"tw-my-5 dark:tw-bg-ds-dark","progress-labelled-by":"usageLabel"},null,8,["color","total","value"])):x("",!0),n("div",J,[y(K)?(s(),i(d,{key:0},[ie.value.total>0?(s(),i(d,{key:0},[h(M,{tag:"span",data:["{used} / {total} messages sent.","profile.mentor.messages-sent",{used:ce,total:pe}]},null,8,["data"]),a[0]||(a[0]=t(" "+w(" ")+" ",-1)),h(T,{class:"link--inline",size:"tn",modal:y(q),text:y(oe)("Questions?","profile.mentor.questions")},null,8,["modal","text"])],64)):x("",!0),a[1]||(a[1]=t(" "+w(" ")+" ",-1)),ie.value.showUpgradePrompt?(s(),g(M,{key:1,tag:"span",data:["Upgrade to <a:0>Career Suite</a:0> to send up to {count} messages per month.","profile.mentor.upgrade",{"a:0":e=>p(T,{routeName:{name:"premium.career-suite"}},{default:()=>e}),count:150}]},null,8,["data"])):x("",!0)],64)):(s(),g(M,{key:1,tag:"span",data:["Unlock your <a:0>Premium Report</a:0> or <a:1>Career Suite</a:1> to gain access to Elina.","profile.mentor.unlock",{"a:0":e=>p(T,{routeName:{name:"profile.index"}},{default:()=>e}),"a:1":e=>p(T,{routeName:{name:"premium.career-suite"}},{default:()=>e})}]},null,8,["data"]))])])],2)]),_:1},8,["title"]),y(K)?(s(),i("div",X,[n("div",H,[h(C,{loaded:de.loaded,loading:de.loading,error:de.error,onRetry:we},null,8,["loaded","loading","error"]),de.loaded?(s(),i("div",Z,[0===ne.value.length?(s(),i("p",ee,w(y(oe)("No conversations yet.","profile.mentor.empty")),1)):(s(),i("div",te,[(s(!0),i(d,null,o(ne.value,e=>(s(),g(N,{key:e.key,class:"tw-mb-10 medium:tw-mb-0","title-text":e.title,"title-size-class":"h6","has-shadow":""},{title:c(()=>[h(T,{"route-name":{name:"profile.mentor.conversation",params:{key:e.key}},text:e.title,fancy:""},null,8,["route-name","text"])]),actions:c(()=>[h(U,{size:"st",width:"auto",next:"","route-name":{name:"profile.mentor.conversation",params:{key:e.key}},text:y(oe)("View","ui.view-verb"),color:"purple",class:"tw-me-7"},null,8,["route-name","text"]),h(U,{icon:"trash",size:"st",shape:"circle",color:"white","aria-label":y(oe)("Delete","ui.delete"),onClick:t=>(async e=>{se({title:oe("Delete","ui.delete"),action:oe("Delete","ui.delete"),color:"red"}).then(async()=>(new j).action("delete-mentor-conversation").deleteRoute("api.profile.ai.conversations.delete",{key:e}).then(()=>{we()}).catch(I)).catch(()=>!1)})(e.key)},null,8,["aria-label","onClick"])]),default:c(()=>[n("div",ae,[h(R,{icon:"comment"},{default:c(()=>[t(w(e.messageCount),1)]),_:2},1024),e.lastUpdated?(s(),g(O,{key:0,tip:e.lastUpdated,text:e.lastUpdatedDiff,icon:"clock"},null,8,["tip","text"])):x("",!0)])]),_:2},1032,["title-text"]))),128))]))])):x("",!0)])])):x("",!0),h(y(k),{name:y(q),endpoint:y(Q),action:"fetch-ai-faq"},null,8,["name","endpoint"])]))}});
2export{re as default};
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.