PageSourceSearch

https://meets.rosterathletics.com/site/en-US/chunk-SBS2OPUT.js

js rosterathletics.com collected 2026-10-01 11:35:20 UTC 15,017 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6ad37803-6222-5c65-8330-7320efa4faeb")}catch(e){}}();
3import{a as he,c as Ce,d as Ee}from"./chunk-PTZM3MZJ.js";import{n as fe,o as Ae}from"./chunk-6CAXAEVI.js";import"./chunk-GNDBXVBS.js";import"./chunk-K7DQ2BDA.js";import{a as ge,b as ye}from"./chunk-JWWDLNIS.js";import{l as y,o as A,p as E}from"./chunk-63XPFYYJ.js";import"./chunk-NDUJ7JZN.js";import{b as ae,f as ce,k as pe,s as le,u as de,x as _e,y as ke}from"./chunk-AA5DU7ME.js";import"./chunk-KWRIU4RP.js";import{n as F,o as Oe}from"./chunk-H7BNAZPX.js";import{b as I,c as R,d as D}from"./chunk-SUGUVUND.js";import{Xa as N,Za as me}from"./chunk-RTQW647K.js";import{i as ue,q as ve}from"./chunk-UY2AHKUP.js";import{h as V,i as we}from"./chunk-LADI2IVP.js";import"./chunk-U3IAJHAB.js";import"./chunk-YA4WYHG7.js";import{$c as Y,Ca as S,Db as o,Fc as C,Gd as oe,Hd as se,Ia as d,Ja as u,Lc as b,N as L,Qc as f,Qd as $,Sc as l,Ub as T,Xa as J,Xd as O,Yd as k,Zd as U,_c as Q,cd as Z,ce as re,fa as B,fd as P,gd as G,hd as ee,k as z,ke as x,mc as _,md as te,nd as ne,oc as m,od as ie,pc as K,ra as W,rc as v,sc as w,tc as c,uc as s,vc as r,wc as g,xa as q,xb as X,yb as j}from"./chunk-7WH55ISQ.js";import"./chunk-VWJE3CXY.js";import{e as H}from"./chunk-XN77Q2IT.js";var xe,Me=H(()=>{"use strict";W();ke();we();Oe();x();xe=(()=>{class t extends _e{constructor(){super();}ask(e,n,i,p=[]){let h={question:e,pageContext:n};return i!=null&&(h.supplierOverride=i),p.length>0&&(h.history=p),this.http.post(V.apiBaseUrl+"/api/admin/support-chat/ask",h,F());}submitFeedback(e,n){this.http.post(V.apiBaseUrl+"/api/admin/support-chat/feedback",{feedbackId:e,helpful:n},F()).pipe(L(()=>z)).subscribe();}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵprov=q({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();});function Ne(t,a){if(t&1&&(s(0,"div",2)(1,"div",4),P(2),r()()),t&2){let e=l();o(2),G(e.message().text);}}function He(t,a){t&1&&(s(0,"div",3)(1,"div",5),g(2,"span",6)(3,"span",6)(4,"span",6),r()());}function Ge(t,a){if(t&1&&(s(0,"a",12),g(1,"mat-icon",13),s(2,"span"),P(3),r()()),t&2){let e=a.$implicit,n=l(3);c("href",e.url,j),o(),c("svgIcon",n.svg.article),o(2),G(e.title);}}function $e(t,a){if(t&1&&(s(0,"div",9),v(1,Ge,4,3,"a",12,De),r()),t&2){let e=l(2);o(),w(e.visibleSources());}}function Ue(t,a){t&1&&(s(0,"div",10)(1,"span"),b(2,0),r(),s(3,"a",14),b(4,1),r()());}function Ve(t,a){if(t&1){let e=C();s(0,"div",11)(1,"button",15),f("click",function(){d(e);let i=l(2);return u(i.onThumbsUp());}),g(2,"mat-icon",16),r(),s(3,"button",15),f("click",function(){d(e);let i=l(2);return u(i.onThumbsDown());}),g(4,"mat-icon",16),r()();}if(t&2){let e=l(2);o(),c("disabled",e.message().feedbackGiven===!0),o(),c("svgIcon",e.svg.thumb_up),o(),c("disabled",e.message().feedbackGiven===!0),o(),c("svgIcon",e.svg.thumb_down);}}function Fe(t,a){if(t&1&&(s(0,"div",3)(1,"div",7),g(2,"div",8),oe(3,"safeHtml"),_(4,$e,3,0,"div",9),_(5,Ue,5,0,"div",10),_(6,Ve,5,4,"div",11),r()()),t&2){let e=l();o(2),c("innerHTML",se(3,4,e.answerHtml()),X),o(2),m(e.visibleSources().length>0?4:-1),o(),m(e.message().confidence!=null&&e.message().confidence<.3?5:-1),o(),m(e.message().feedbackId!=null?6:-1);}}var De,Se,Pe,Te=H(()=>{"use strict";x();D();E();ye();me();Ee();x();D();E();De=(t,a)=>a.articleId;Se=new he();Se.link=({href:t,text:a})=>`<a href="${t}" target="_blank" rel="noopener">${a}</a>`;Pe=(()=>{class t{constructor(){this.svg=N,this.message=k.required(),this.feedbackGiven=O(),this.visibleSources=$(()=>{let e=this.message(),n=e.sources??[],i=e.text;return!i||n.length===0?n:n.filter(p=>!this.answerAlreadyContainsSource(i,p));}),this.answerHtml=$(()=>{let e=this.message().text;return e?Ce.parse(e,{async:!1,renderer:Se}):"";});}onThumbsUp(){let e=this.message();e.feedbackId!=null&&!e.feedbackGiven&&this.feedbackGiven.emit({feedbackId:e.feedbackId,helpful:!0});}onThumbsDown(){let e=this.message();e.feedbackId!=null&&!e.feedbackGiven&&this.feedbackGiven.emit({feedbackId:e.feedbackId,helpful:!1});}answerAlreadyContainsSource(e,n){return e.includes(n.url);}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=T({type:t,selectors:[["rs-support-chat-message"]],inputs:{message:[1,"message"]},outputs:{feedbackGiven:"feedbackGiven"},decls:3,vars:3,consts:()=>{let e;e="I'm not very confident about this answer.";let n;return n=" Contact Support ",[e,n,[1,"message","user-message"],[1,"message","bot-message"],[1,"bubble","user-bubble"],[1,"bubble","bot-bubble","loading-bubble"],[1,"dot"],[1,"bubble","bot-bubble"],[1,"answer-text",3,"innerHTML"],[1,"sources"],[1,"low-confidence"],[1,"feedback-row"],["target","_blank","rel","noopener",1,"source-link",3,"href"],[1,"source-icon",3,"svgIcon"],["href","https://support.rosterathletics.com/en/support/tickets/new","target","_blank","rel","noopener",1,"contact-link"],["mat-icon-button","",1,"feedback-btn",3,"click","disabled"],[3,"svgIcon"]];}
3,template:function(n,i){n&1&&(_(0,Ne,3,1,"div",2),_(1,He,5,0,"div",3),_(2,Fe,7,6,"div",3)),n&2&&(m(i.message().type==="user"?0:-1),o(),m(i.message().type==="loading"?1:-1),o(),m(i.message().type==="bot"?2:-1));},dependencies:[R,I,A,y,ge],styles:[`.message[_ngcontent-%COMP%]{display:flex;margin-bottom:12px}.message.user-message[_ngcontent-%COMP%]{justify-content:flex-end}.message.bot-message[_ngcontent-%COMP%]{justify-content:flex-start}.bubble[_ngcontent-%COMP%]{max-width:85%;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5;word-break:break-word}.user-bubble[_ngcontent-%COMP%]{background:#e3f2fd;color:#1a1a1a;border-bottom-right-radius:4px}.bot-bubble[_ngcontent-%COMP%]{background:#f5f5f5;color:#1a1a1a;border-bottom-left-radius:4px}.answer-text[_ngcontent-%COMP%]     p{margin:0 0 8px}.answer-text[_ngcontent-%COMP%]     p:last-child{margin-bottom:0}.answer-text[_ngcontent-%COMP%]     ul, .answer-text[_ngcontent-%COMP%]     ol{margin:4px 0 8px;padding-left:20px}.answer-text[_ngcontent-%COMP%]     li{margin-bottom:2px}.answer-text[_ngcontent-%COMP%]     strong, .answer-text[_ngcontent-%COMP%]     b{font-weight:600}.answer-text[_ngcontent-%COMP%]     a{color:#00bcd4;text-decoration:none;font-weight:500}.answer-text[_ngcontent-%COMP%]     a:hover{text-decoration:underline}.answer-text[_ngcontent-%COMP%]     code{background:#e8e8e8;padding:1px 4px;border-radius:3px;font-size:12px}.loading-bubble[_ngcontent-%COMP%]{display:flex;gap:4px;align-items:center;padding:14px 20px}.dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#999;animation:_ngcontent-%COMP%_bounce 1.4s infinite ease-in-out both}.dot[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.32s}.dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.16s}@keyframes _ngcontent-%COMP%_bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.sources[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px;border-top:1px solid #e0e0e0}.source-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;color:#00bcd4;text-decoration:none;font-size:12px;padding:2px 0}.source-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.source-icon[_ngcontent-%COMP%]{width:16px;height:16px;flex-shrink:0}.source-icon[_ngcontent-%COMP%]     svg{width:16px;height:16px}.low-confidence[_ngcontent-%COMP%]{margin-top:8px;padding:8px;background:#fff3e0;border-radius:6px;font-size:12px;color:#e65100}.contact-link[_ngcontent-%COMP%]{color:#00bcd4;font-weight:500}.feedback-row[_ngcontent-%COMP%]{display:flex;gap:4px;margin-top:6px}.feedback-btn[_ngcontent-%COMP%]{color:#999}.feedback-btn[_ngcontent-%COMP%]:disabled{color:#ccc}
4/*# sourceMappingURL=support-chat-message.component-EWSYTF2E.css.map */`],changeDetection:0});}}return t;})();});function Be(t,a){if(t&1){let e=C();s(0,"button",17),f("click",function(){d(e);let i=l();return u(i.toggleSupplierSelection());}),P(1),r();}if(t&2){let e=l();o(),ee(" ",e.supplierBadgeLabel," ");}}function We(t,a){if(t&1&&(s(0,"div",12),g(1,"mat-icon",18),s(2,"p"),b(3,3),r()()),t&2){let e=l();o(),c("svgIcon",e.svg.support_agent);}}
4function qe(t,a){if(t&1){let e=C();s(0,"rs-support-chat-message",19),f("feedbackGiven",function(i){d(e);let p=l();return u(p.onFeedback(i));}),r();}if(t&2){let e=a.$implicit;c("message",e);}}var ze,Le,St,Je=H(()=>{x();ve();D();E();de();x();W();me();Ae();Me();Te();x();D();E();de();ze=["messagesContainer"],Le=["chatInput"];St=(()=>{class t{constructor(){this.chatService=S(xe),this.router=S(ue),this.cd=S(re),this.uis=S(fe),this.svg=N,this.isAdmin=this.uis.isAdmin(),this.isOpen=k(!1),this.closed=O(),this.messagesContainer=U("messagesContainer"),this.chatInput=U("chatInput"),this.messages=[],this.questionText="",this.loading=!1,this.supplierSelection="auto",J(()=>{this.isOpen()&&setTimeout(()=>{this.chatInput()?.nativeElement.focus();});});}get supplierBadgeLabel(){switch(this.supplierSelection){case"claude":return"Claude";case"openai":return"OpenAI";default:return"Auto";}}sendMessage(){let e=this.questionText.trim();!e||this.loading||(this.messages.push({type:"user",text:e}),this.questionText="",this.loading=!0,this.messages.push({type:"loading",text:""}),this.cd.markForCheck(),this.scrollToBottom(),this.chatService.ask(e,this.router.url,this.currentSupplierOverride(),this.currentHistory()).pipe(B({count:1,delay:1e3})).subscribe({next:n=>{this.messages=this.messages.filter(i=>i.type!=="loading"),this.messages.push({type:"bot",text:n.answer,sources:n.sources,confidence:n.confidence,feedbackId:n.feedbackId,feedbackGiven:!1}),this.loading=!1,this.cd.markForCheck(),this.scrollToBottom();},error:()=>{this.messages=this.messages.filter(n=>n.type!=="loading"),this.messages.push({type:"bot",text:"The support assistant is temporarily unavailable. Please contact our support team directly.",confidence:0}),this.loading=!1,this.cd.markForCheck(),this.scrollToBottom();}}));}onFeedback(e){this.chatService.submitFeedback(e.feedbackId,e.helpful);let n=this.messages.find(i=>i.feedbackId===e.feedbackId);n&&(n.feedbackGiven=!0,this.cd.markForCheck());}toggleSupplierSelection(){if(this.isAdmin){switch(this.supplierSelection){case"auto":this.supplierSelection="claude";break;case"claude":this.supplierSelection="openai";break;default:this.supplierSelection="auto";break;}this.cd.markForCheck();}}onKeydown(e){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.sendMessage()),e.key==="Escape"&&this.closed.emit();}close(){this.closed.emit();}currentSupplierOverride(){return this.supplierSelection==="auto"?null:this.supplierSelection;}currentHistory(){return this.messages.filter(e=>e.type==="user"||e.type==="bot").slice(-6).map(e=>({role:e.type==="user"?"user":"assistant",text:e.text}));}scrollToBottom(){setTimeout(()=>{let e=this.messagesContainer();e&&(e.nativeElement.scrollTop=e.nativeElement.scrollHeight);});}static{this.ɵfac=function(n){return new(n||t)();};}static{this.ɵcmp=T({type:t,selectors:[["rs-support-chat-drawer"]],viewQuery:function(n,i){n&1&&Q(i.messagesContainer,ze,5)(i.chatInput,Le,5),n&2&&Y(2);},inputs:{isOpen:[1,"isOpen"]},outputs:{closed:"closed"},decls:18,vars:9,consts:()=>{let e;e="Ask a question...";let n;n="Support";let i;return i="Hi! I'm an AI assistant for Roster Athletics \u2014 not a human agent. I'll do my best to help, but my answers may not always be accurate. For the best results, ask detailed questions.",[["messagesContainer",""],["chatInput",""],n,i,[1,"drawer"],[1,"header"],[1,"header-left"],[1,"title"],["type","button",1,"supplier-badge"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"messages"],[1,"welcome"],[3,"message"],[1,"input-area"],["type","text","placeholder",e,1,"chat-input",3,"ngModelChange","keydown","ngModel","disabled"],["mat-icon-button","",1,"send-btn",3,"click","disabled"],["type","button",1,"supplier-badge",3,"click"],[1,"welcome-icon",3,"svgIcon"],[3,"feedbackGiven","message"]];},template:function(n,i){if(n&1){let p=C();s(0,"div",4)(1,"div",5)(2,"div",6)(3,"span",7),b(4,2),r(),_(5,Be,2,1,"button",8),r(),s(6,"button",9),f("click",function(){return d(p),u(i.close());}),g(7,"mat-icon",10),r()(),s(8,"div",11,0),_(10,We,4,1,"div",12),v(11,qe,1,1,"rs-support-chat-message",13,K),r(),s(13,"div",14)(14,"input",15,1),ie("ngModelChange",function(M){return d(p),ne(i.questionText,M)||(i.questionText=M),u(M);}),f("keydown",function(M){return d(p),u(i.onKeydown(M));}),r(),s(16,"button",16),f("click",function(){return d(p),u(i.sendMessage());}),g(17,"mat-icon",10),r()()();}n&2&&(Z("open",i.isOpen()),o(5),m(i.isAdmin?5:-1),o(2),c("svgIcon",i.svg.close),o(3),m(i.messages.length===0?10:-1),o(),w(i.messages),o(3),te("ngModel",i.questionText),c("disabled",i.loading),o(2),c("disabled",!i.questionText.trim()||i.loading),o(),c("svgIcon",i.svg.send));},dependencies:[R,I,A,y,le,ae,ce,pe,Pe],styles:[`.drawer[_ngcontent-%COMP%]{position:fixed;right:0;top:64px;width:640px;height:calc(100vh - 64px);background:#fff;box-shadow:-2px 0 8px #00000026;z-index:200;display:flex;flex-flow:column nowrap;transform:translate(100%);transition:transform .25s ease-in-out}.drawer.open[_ngcontent-%COMP%]{transform:translate(0)}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 16px;background:#00bcd4;color:#fff;flex-shrink:0}.header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#fff!important}.header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0}.title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.supplier-badge[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.45);background:#ffffff24;color:#fff;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:600;letter-spacing:.02em;cursor:pointer;transition:background .15s ease-in-out,border-color .15s ease-in-out}.supplier-badge[_ngcontent-%COMP%]:hover{background:#ffffff38;border-color:#ffffffb3}.messages[_ngcontent-%COMP%]{flex:1 1 0;overflow-y:auto;padding:12px}.welcome[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 12px;color:#666;font-size:13px}.welcome-icon[_ngcontent-%COMP%]{font-size:36px;width:36px;height:36px;color:#00bcd4;margin-bottom:12px}.input-area[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding:8px;border-top:1px solid #e0e0e0;flex-shrink:0}.chat-input[_ngcontent-%COMP%]{flex:1;border:1px solid #e0e0e0;border-radius:20px;padding:8px 14px;font-size:13px;outline:none}.chat-input[_ngcontent-%COMP%]:focus{border-color:#00bcd4}.chat-input[_ngcontent-%COMP%]:disabled{background:#fafafa}.send-btn[_ngcontent-%COMP%]{color:#00bcd4}
5/*# sourceMappingURL=support-chat-drawer.component-JKYLI75S.css.map */`],changeDetection:0});}}return t;})();});Je();export{St as SupportChatDrawerComponent};/**i18n:98cd60948f00bf3240ebfd0e064bf0123c90f4a120e09300fa6f8d092a2b7bea*///# sourceMappingURL=chunk-SBS2OPUT.js.map
6//# debugId=6ad37803-6222-5c65-8330-7320efa4faeb

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.