1import{a as j}from"./chunk-CNKGJAGG.js";import"./chunk-AZ4HKUIV.js";import"./chunk-K2PGDNXS.js";import"./chunk-CU3XHYH7.js";import"./chunk-XPKGL6UR.js";import"./chunk-5BFRO4FR.js";import"./chunk-FNJGCC2D.js";import"./chunk-GGBK2CWG.js";import"./chunk-I63UIDHA.js";import"./chunk-6VWCJF4T.js";import"./chunk-Z37DWRF6.js";import"./chunk-Z4MR6TNE.js";import"./chunk-TVBJJH4O.js";import"./chunk-BSR5NJNR.js";import"./chunk-BE53LQFS.js";import"./chunk-TZZYN6B6.js";import"./chunk-BXZBGJ46.js";import"./chunk-A7VXDEGU.js";import"./chunk-7Z3P2GIL.js";import"./chunk-Q7AM2XY4.js";import"./chunk-URI4AL5A.js";import"./chunk-V6RIFH3P.js";import"./chunk-ITLGRRT6.js";import"./chunk-AXLWGUDG.js";import"./chunk-OPVGL7EE.js";import"./chunk-2OWPYDT6.js";import"./chunk-HIIVXIB3.js";import"./chunk-L6N2HSTP.js";import"./chunk-7LM6ZK3A.js";import"./chunk-TJLOY37T.js";import"./chunk-75YUWGRI.js";import"./chunk-L34DKHTX.js";import"./chunk-WACTCXMT.js";import"./chunk-74ISRMQQ.js";import"./chunk-CMEWK4FR.js";import"./chunk-RL6YVCA5.js";import"./chunk-BGYT5V4Q.js";import"./chunk-YBV6TAQR.js";import"./chunk-QN2RH63V.js";import"./chunk-LX73R3LC.js";import"./chunk-YUW7RAII.js";import{R as V,S as A}from"./chunk-ZMT2WTNM.js";import"./chunk-YEJWULF4.js";import"./chunk-YNDJIVSX.js";import"./chunk-55DXF7KC.js";import"./chunk-7AGVZRFE.js";import"./chunk-AGRCCWIZ.js";import"./chunk-XH2VJIZG.js";import{p as F,x as B}from"./chunk-Q25XAGUM.js";import"./chunk-VO3GNDWB.js";import{E as z,H as q}from"./chunk-HBA2KCHE.js";import"./chunk-LFIRAPHZ.js";import{$a as h,Ac as i,Bc as r,Cc as p,Gb as a,Gc as C,Ja as x,Ka as u,Pc as y,Qc as c,Ud as O,Wb as k,Zd as D,ac as m,ed as l,fd as f,gd as $,hd as P,id as H,mc as I,nc as T,oc as M,vc as d,xc as E,ya as w,yc as b,zc as v}from"./chunk-C7RVTCRT.js";import"./chunk-FPO36RWJ.js";D();q();B();A();D();var U=(e,s)=>s.discussionID,Y=(e,s)=>s.title;function N(e,s){e&1&&(i(0,"div",2),p(1,"img",4),i(2,"div",5),p(3,"span")(4,"span")(5,"span"),r()())}function R(e,s){if(e&1){let t=C();i(0,"div",3),p(1,"img",6),i(2,"p",7),l(3,"Your AI business coach. 30 minutes of focused mentoring."),r(),i(4,"button",8),y("click",function(){x(t);let n=c();return u(n.startSession())}),l(5,"Begin your first session"),r()()}}function K(e,s){if(e&1&&l(0),e&2){let t=c(2);$(" \xB7 ",t.quota().minutesRemaining,"min left this week ")}}function L(e,s){if(e&1&&l(0),e&2){let t=c().$implicit;P(" \xB7 ",t.actionItems.length," action",t.actionItems.length===1?"":"s"," ")}}function Q(e,s){if(e&1&&(i(0,"p",29),l(1),r()),e&2){let t=s.$implicit;a(),f(t)}}function W(e,s){if(e&1&&(i(0,"p",28),l(1,"Key Insights"),r(),b(2,Q,2,1,"p",29,E)),e&2){let t=c(2).$implicit;a(2),v(t.summary)}}function G(e,s){if(e&1&&(i(0,"span",33),l(1),r()),e&2){let t=c().$implicit;a(),f(t.description)}}function J(e,s){if(e&1&&(i(0,"div",30),p(1,"i",31),i(2,"div")(3,"span",32),l(4),r(),m(5,G,2,1,"span",33),r()()),e&2){let t=s.$implicit;a(4),f(t.title),a(),d(t.description?5:-1)}}function X(e,s){if(e&1&&(i(0,"p",28),l(1,"Action Items"),r(),b(2,J,6,2,"div",30,Y)),e&2){let t=c(2).$implicit;M("tw-mt-4",t.summary.length>0),a(2),v(t.actionItems)}}function Z(e,s){e&1&&(i(0,"p",27),l(1,"No summary recorded for this session."),r())}function tt(e,s){if(e&1){let t=C();i(0,"div",26),y("click",function(n){return x(t),u(n.stopPropagation())}),m(1,W,4,0)(2,X,4,2)(3,Z,2,0,"p",27),r()}if(e&2){let t=c().$implicit;a(),d(t.summary.length?1:-1),a(),d(t.actionItems.length?2:-1),a(),d(!t.summary.length&&!t.actionItems.length?3:-1)}}function et(e,s){if(e&1){let t=C();i(0,"button",17),y("click",function(){let n=x(t).$implicit,g=c(2);return u(g.toggle(n.discussionID))}),i(1,"div",18)(2,"span",19),l(3),r(),i(4,"div",20)(5,"p",21),l(6),r(),i(7,"p",22),l(8),m(9,L,1,2),r()(),i(10,"span",23),l(11),r(),p(12,"i",24),r(),m(13,tt,4,3,"div",25),r()}if(e&2){let t=s.$implicit,o=s.$index,n=c(2);T("animation-delay",o*40,"ms"),M("expanded",n.expandedId()===t.discussionID),a(3),f(n.shortDate(t.date)),a(3),f(n.displayTopic(t)),a(2),H(" ",t.durationMinutes,"min \xB7 ",t.exchangeCount," exchange",t.exchangeCount===1?"":"s"," "),a(),d(t.actionItems.length?9:-1),a(2),f(n.timeAgo(t.date)),a(),M("rotated",
1n.expandedId()===t.discussionID),a(),d(n.expandedId()===t.discussionID?13:-1)}}function nt(e,s){if(e&1){let t=C();i(0,"div",9)(1,"h1",10),l(2,"Coaching Sessions"),r(),i(3,"p",11),l(4),m(5,K,1,1),r()(),i(6,"div",12),p(7,"div"),i(8,"button",13),y("click",function(){x(t);let n=c();return u(n.startSession())}),p(9,"i",14),l(10," New session "),r()(),i(11,"div",15),b(12,et,14,14,"button",16,U),r()}if(e&2){let t=c();a(4),P(" ",t.sessions().length," session",t.sessions().length===1?"":"s"," "),a(),d(t.quota()?5:-1),a(3),I("disabled",!t.canStartSession()),a(4),v(t.sessions())}}var pt=(()=>{class e{constructor(){this.router=w(F),this.userService=w(V),this.mentoringService=w(j),this.loading=h(!0),this.sessions=h([]),this.expandedId=h(null),this.quota=h(null),this.lastSessionDate=O(()=>{let t=this.sessions();return t.length>0?t[0].date:null}),this.canStartSession=O(()=>{let t=this.quota();return!t||t.canStart})}ngOnInit(){let t=this.userService.user?.companyID||0;this.mentoringService.loadHistory(t).subscribe(o=>{this.sessions.set(o),this.loading.set(!1)}),this.mentoringService.checkWeeklyQuota(t).subscribe(o=>this.quota.set(o))}toggle(t){this.expandedId.set(this.expandedId()===t?null:t)}startSession(){this.router.navigate(["/mentoring"])}displayTopic(t){let o=t.topic;return o&&o!=="Timed out"&&o!=="Mentoring Session"?o:t.summary.length?t.summary[0].length>60?t.summary[0].slice(0,57)+"...":t.summary[0]:t.actionItems.length?t.actionItems[0].title:t.exchangeCount<=1?"Incomplete session":`Session - ${this.shortDate(t.date)}`}shortDate(t){if(!t)return"";let o=new Date(t);return`${o.getDate()} ${o.toLocaleDateString("en",{month:"short"})}`}timeAgo(t){if(!t)return"";let o=Date.now()-new Date(t).getTime(),n=Math.floor(o/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;let g=Math.floor(n/60);if(g<24)return`${g}h ago`;let _=Math.floor(g/24);if(_===1)return"yesterday";if(_<7)return`${_}d ago`;let S=Math.floor(_/7);return S<4?`${S}w ago`:`${Math.floor(_/30)}mo ago`}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=k({type:e,selectors:[["app-mentoring-history"]],decls:5,vars:3,consts:[[1,"mh"],[1,"mh-inner"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-py-24"],[1,"empty-state"],["src","assets/images/mothusi-logo-animated.svg","alt","",1,"tw-w-12","tw-h-12","tw-opacity-30","tw-mb-4"],[1,"loader"],["src","assets/images/mothusi-logo-animated.svg","alt","Mothusi",1,"hero-logo"],[1,"empty-subtitle"],[1,"begin-btn",3,"click"],[1,"page-header"],[1,"page-title"],[1,"page-sub"],[1,"list-header"],[1,"new-btn",3,"click","disabled"],[1,"fa-light","fa-plus","tw-text-xs"],[1,"session-list"],[1,"row",3,"expanded","animation-delay"],[1,"row",3,"click"],[1,"row-main"],[1,"date-pill"],[1,"row-body"],[1,"row-topic"],[1,"row-meta"],[1,"time-ago"],[1,"fa-light","fa-chevron-right","row-chevron"],[1,"detail"],[1,"detail",3,"click"],[1,"detail-empty"],[1,"detail-label"],[1,"detail-item"],[1,"action-row"],[1,"fa-light","fa-circle-check","action-icon"],[1,"action-title"],[1,"action-desc"]],template:function(o,n){o&1&&(i(0,"div",0)(1,"div",1),m(2,N,6,0,"div",2)(3,R,6,0,"div",3)(4,nt,14,4),r()()),o&2&&(a(2),d(n.loading()?2:-1),a(),d(!n.loading()&&n.sessions().length===0?3:-1),a(),d(!n.loading()&&n.sessions().length>0?4:-1))},dependencies:[z],styles:['[_nghost-%COMP%]{display:block;min-height:100%}.mh[_ngcontent-%COMP%]{min-height:100vh;display:flex;justify-content:center;padding:40px 24px 80px}.mh-inner[_ngcontent-%COMP%]{width:100%;max-width:520px}.page-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:24px}.page-title[_ngcontent-%COMP%]{font-size:22px;font-weight:600;letter-spacing:-.02em;color:#f8fafce6;margin:0 0 4px}.page-sub[_ngcontent-%COMP%]{font-size:13px;color:#f8fafc4d;margin:0}.list-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.list-meta[_ngcontent-%COMP%]{font-size:13px;color:#f8fafc4d;margin:0}.new-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:10px;border:none;font-family:inherit;font-size:13px;font-weight:500;background:#10b9811f;color:#10b981;cursor:pointer;transition:all .15s}.new-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#10b98133}.new-btn[_ngcontent-%COMP%]:disabled{opacity:.35;cursor:not-allowed}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 24px;text-align:center;animation:_ngcontent-%COMP%_fadeUp .4s ease both}.hero-logo[_ngcontent-%COMP%]{width:56px;height:56px;margin-bottom:16px;filter:drop-shadow(0 0 24px rgba(16,185,129,.25))}.empty-subtitle[_ngcontent-%COMP%]{font-size:14px;margin:0 0 24px;color:#f8fafc4d}.begin-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 40px;border-radius:14px;border:none;font-family:inherit;font-size:15px;font-weight:600;background:linear-gradient(135deg,#10b981,#059669);color:#fff;cursor:pointer;transition:all .25s;box-shadow:0 4px 24px #10b9814d}.begin-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 8px 32px #10b98166}.loader[_ngcontent-%COMP%]{display:flex;gap:5px}.loader[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#f8fafc26;animation:_ngcontent-%COMP%_pulse 1.2s infinite}.loader[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.15s}.loader[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.3s}.session-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.row[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;padding:12px 14px;border-radius:10px;background:transparent;border:1px solid transparent;cursor:pointer;transition:all .15s;font-family:inherit;color:inherit;animation:_ngcontent-%COMP%_fadeUp .35s ease both}.row[_ngcontent-%COMP%]:hover{background:#ffffff08}.row.expanded[_ngcontent-%COMP%]{background:#ffffff08;border-color:#ffffff0f}.row-main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.row-body[_ngcontent-%COMP%]{flex:1;min-width:0}.date-pill[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#f8fafc4d;background:#ffffff0a;padding:4px 10px;border-radius:6px;white-space:nowrap;flex-shrink:0}.row-topic[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:1.3;color:#f8fafccc;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-meta[_ngcontent-%COMP%]{font-size:12px;color:#f8fafc33;margin:2px 0 0}.time-ago[_ngcontent-%COMP%]{font-size:11px;color:#f8fafc26;white-space:nowrap;flex-shrink:0}.row-chevron[_ngcontent-%COMP%]{font-size:10px;color:#f8fafc1f;transition:transform .2s;flex-shrink:0}.row-chevron.rotated[_ngcontent-%COMP%]{transform:rotate(90deg)}.detail[_ngcontent-%COMP%]{margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.05);animation:_ngcontent-%COMP%_fadeIn .2s ease;text-align:left}.detail-label[_ngcontent-%COMP%]{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin:0 0 6px;color:#f8fafc33}.detail-item[_ngcontent-%COMP%]{font-size:13px;line-height:1.6;margin:0 0 3px;color:#f8fafc8c;padding-left:12px;position:relative}.detail-item[_ngcontent-%COMP%]:before{content:"";position:absolute;
1left:0;top:9px;width:3px;height:3px;border-radius:50%;background:#f8fafc26}.detail-empty[_ngcontent-%COMP%]{font-size:13px;color:#f8fafc33;margin:0}.action-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:3px 0}.action-icon[_ngcontent-%COMP%]{font-size:11px;color:#10b98180;flex-shrink:0;margin-top:3px}.action-title[_ngcontent-%COMP%]{display:block;font-size:13px;font-weight:500;color:#f8fafcbf}.action-desc[_ngcontent-%COMP%]{display:block;font-size:12px;line-height:1.5;color:#f8fafc4d}@keyframes _ngcontent-%COMP%_fadeUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse{0%,60%,to{opacity:.3}30%{opacity:1}}'],changeDetection:0})}}return e})();export{pt 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.