PageSourceSearch

https://scorsync.com/build/assets/Search-DQZcXkoe.js

js scorsync.com collected 2026-10-02 00:03:22 UTC 42,727 bytes, 1 lines download raw bytes

1import{n as p,X as T,b as o,c as i,A as u,E as l,u as d,w as h,an as F,am as H,d as c,x as D,v as b,M as S,k as m,aB as A,l as _,m as P,o as g,S as f,p as y,r as v,s as I,a7 as N,ae as Q,y as w,aq as q,ar as L,as as M,at as K,G as R,aH as E,a4 as C,aM as U,aN as B,Q as V,aD as O,t as $,g as x,e as z,aO as J}from"./vendor-vuetify-BQx-5jJi.js";import{aB as G}from"./app-xn0KEFYD.js";import{T as j}from"./ToastNotification-D0_D4NNI.js";import{P as W}from"./Page.mixin-CMgGFbUk.js";import"./vendor-core-CHp3Jp3c.js";import"./vendor-media-DDm9m1eU.js";import"./get-DSPzyT3V.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="f546fe31-2c05-4974-aa76-ff709d0f86d2",s._sentryDebugIdIdentifier="sentry-dbid-f546fe31-2c05-4974-aa76-ff709d0f86d2")}catch{}const X={name:"HelpTooltip",props:{value:{type:Boolean,default:!1},text:{type:String,required:!0},title:{type:String,default:null},position:{type:String,default:"top",validator:s=>["top","bottom","left","right"].includes(s)},icon:{type:String,default:"mdi-help-circle-outline"},iconColor:{type:String,default:"muted"},color:{type:String,default:"#121829"},maxWidth:{type:[String,Number],default:300},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},nudgeTop:{type:Number,default:0},nudgeBottom:{type:Number,default:0},nudgeLeft:{type:Number,default:0},nudgeRight:{type:Number,default:0},showGotIt:{type:Boolean,default:!1},showLearnMore:{type:Boolean,default:!1},showDismiss:{type:Boolean,default:!1},dismissKey:{type:String,default:null},persistent:{type:Boolean,default:!1}},data(){return{isDismissed:!1}},computed:{showTooltip:{get(){return this.isDismissed&&!this.persistent?!1:this.value},set(s){this.$emit("input",s)}},showActions(){return this.showGotIt||this.showLearnMore||this.showDismiss}},mounted(){this.dismissKey&&(this.isDismissed=this.checkDismissed())},methods:{handleGotIt(){this.showTooltip=!1,this.$emit("got-it")},handleLearnMore(){this.$emit("learn-more")},handleDismiss(){this.isDismissed=!0,this.showTooltip=!1,this.dismissKey&&this.saveDismissed(),this.$emit("dismissed")},checkDismissed(){if(!this.dismissKey)return!1;try{return localStorage.getItem(`help_dismissed_${this.dismissKey}`)==="true"}catch(s){return console.warn("Failed to check dismissed state:",s),!1}},saveDismissed(){if(this.dismissKey)try{localStorage.setItem(`help_dismissed_${this.dismissKey}`,"true")}catch(s){console.warn("Failed to save dismissed state:",s)}},resetDismissed(){if(this.isDismissed=!1,this.dismissKey)try{localStorage.removeItem(`help_dismissed_${this.dismissKey}`)}catch(s){console.warn("Failed to reset dismissed state:",s)}}}};var Y=function(){var e=this,t=e._self._c;return t(T,{staticClass:"help-tooltip",attrs:{top:e.position==="top",bottom:e.position==="bottom",left:e.position==="left",right:e.position==="right","nudge-top":e.nudgeTop,"nudge-bottom":e.nudgeBottom,"nudge-left":e.nudgeLeft,"nudge-right":e.nudgeRight,"max-width":e.maxWidth,color:e.color,"open-delay":e.openDelay,"close-delay":e.closeDelay},scopedSlots:e._u([{key:"activator",fn:function({on:a,attrs:r}){return[e._t("activator",function(){return[t(o,e._g(e._b({staticClass:"help-tooltip-trigger",attrs:{icon:"",small:"",color:e.iconColor}},"v-btn",r,!1),a),[t(i,{attrs:{small:""}},[e._v(e._s(e.icon))])],1)]},null,{on:a,attrs:r})]}}],null,!0),model:{value:e.showTooltip,callback:function(a){e.showTooltip=a},expression:"showTooltip"}},[t("div",{staticClass:"help-tooltip-content"},[e.title?t("div",{staticClass:"help-tooltip-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("div",{staticClass:"help-tooltip-text"},[e._t("default",function(){return[e._v(e._s(e.text))]})],2),e.showActions?t("div",{staticClass:"help-tooltip-actions mt-2"},[e.showGotIt?t(o,{attrs:{"x-small":"",text:"",color:"white"},on:{click:e.handleGotIt}},[e._v(" Got it ")]):e._e(),e.showLearnMore?t(o,{attrs:{"x-small":"",text:"",color:"white"},on:{click:e.handleLearnMore}},[e._v(" Learn more ")]):e._e(),e.showDismiss?t(o,{attrs:{"x-small":"",text:"",color:"white"},on:{click:e.handleDismiss}}
1,[e._v(" Don't show again ")]):e._e()],1):e._e()])])},Z=[],ee=p(X,Y,Z,!1,null,"89bb2641");const te=ee.exports,se={name:"RuleList",props:{results:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},searchQuery:{type:String,default:""},totalResults:{type:Number,default:0},currentPage:{type:Number,default:1},perPage:{type:Number,default:10},searchTime:{type:Number,default:null},appliedFilters:{type:Array,default:()=>[]},hasSearched:{type:Boolean,default:!1}},data(){return{skeletonCount:3,popularSearches:["vault landing deductions","beam connection requirements","floor music requirements","bars release skills","scoring guidelines"]}},computed:{hasResults(){return this.results&&this.results.length>0},totalPages(){return Math.ceil(this.totalResults/this.perPage)},startItem(){return(this.currentPage-1)*this.perPage+1},endItem(){return Math.min(this.currentPage*this.perPage,this.totalResults)},showPagination(){return this.hasResults&&this.totalPages>1},formatSearchTime(){return this.searchTime?`Search completed in ${this.searchTime.toFixed(2)}s`:""}},methods:{formatScore(s){return typeof s!="number"?"0":Math.round(s*100)},getScoreColor(s){if(!s)return"grey";const e=s*100;return e>=90?"green":e>=75?"light-green":e>=60?"orange":e>=40?"deep-orange":"red"},highlightSearchTerms(s){if(!s||!this.searchQuery)return s||"";const e=this.searchQuery.split(" ").filter(a=>a.length>2);let t=s;return e.forEach(a=>{const r=new RegExp(`(${this.escapeRegExp(a)})`,"gi");t=t.replace(r,"<mark>$1</mark>")}),t},escapeRegExp(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},formatDate(s){if(!s)return"";try{return new Date(s).toLocaleDateString()}catch{return s}}}};var ae=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rule-list"},[e.loading?[t("div",{staticClass:"loading-state"},[t(u,e._l(e.skeletonCount,function(a){return t(l,{key:a,attrs:{cols:"12"}},[t(d,{staticClass:"mb-4",attrs:{elevation:"2"}},[t(h,[t(F,{staticClass:"mb-2",attrs:{type:"card-heading, divider, paragraph, actions"}})],1)],1)],1)}),1)],1)]:e.hasResults?[t("div",{staticClass:"search-summary mb-4"},[t(D,{staticClass:"mb-0",attrs:{type:"info",text:"",dense:""}},[t("div",{staticClass:"d-flex align-center justify-space-between"},[t("div",[t("strong",[e._v(e._s(e.totalResults))]),e._v(" "+e._s(e.totalResults===1?"result":"results")+" found "),e.searchQuery?t("span",[e._v('for "'),t("em",[e._v(e._s(e.searchQuery))]),e._v('"')]):e._e(),e.appliedFilters.length>0?t("span",[e._v(" with "+e._s(e.appliedFilters.length)+" "+e._s(e.appliedFilters.length===1?"filter":"filters")+" ")]):e._e()]),t("div",{staticClass:"text-caption muted--text"},[e._v(" "+e._s(e.formatSearchTime)+" ")])])])],1),t(u,e._l(e.results,function(a){return t(l,{key:a.id||a.document_id+a.page_number,attrs:{cols:"12"}},[t(d,{staticClass:"rule-card mb-4",attrs:{elevation:"2",hover:""},on:{click:function(r){return e.$emit("rule-clicked",a)}}},[t(b,{staticClass:"pb-2"},[t("div",{staticClass:"d-flex align-center w-100"},[t("div",{staticClass:"flex-grow-1"},[t("div",{staticClass:"d-flex align-center mb-1"},[t(i,{staticClass:"mr-2",attrs:{color:"primary"}},[e._v("mdi-file-document")]),t("span",{staticClass:"text-h6"},[e._v(e._s(a.document_title||a.title))]),a.section?t(c,{staticClass:"ml-2",attrs:{small:"",color:"primary",outlined:""}},[e._v(" "+e._s(a.section)+" ")]):e._e()],1),t("div",{staticClass:"text-caption muted--text"},[e._v(" Document ID: "+e._s(a.document_id)+" "),a.page_number?t("span",[e._v("• Page "+e._s(a.page_number))]):e._e()])]),t("div",{staticClass:"text-right"},[t(c,{staticClass:"font-weight-bold",attrs:{color:e.getScoreColor(a.score),dark:"",small:""}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-target")]),e._v(" "+e._s(e.formatScore(a.score))+"% ")],1)],1)])]),t(h,{staticClass:"pt-0"},[t("div",{staticClass:"rule-content mb-3"},[t("div",{staticClass:"text-body-1",domProps:{innerHTML:e._s(e.highlightSearchTerms(a.excerpt||a.content))}})]),a.metadata?t("div",{staticClass:"rule-metadata"},[t(u,{attrs:{dense:""}},[a.metadata.category?t(l,{attrs:{cols:"auto"}},[t(c,{attrs:{"x-small":"",color:"muted",outlined:""}},[t(i,{attrs:{left:"","x-small":""}},[e._v("mdi-tag")]),e._v(" "+e._s(a.metadata.category)+" ")],1)],1):e._e(
1),a.metadata.last_updated?t(l,{attrs:{cols:"auto"}},[t(c,{attrs:{"x-small":"",color:"muted",outlined:""}},[t(i,{attrs:{left:"","x-small":""}},[e._v("mdi-calendar")]),e._v(" Updated "+e._s(e.formatDate(a.metadata.last_updated))+" ")],1)],1):e._e()],1)],1):e._e()]),t(S,{staticClass:"pt-0"},[t(o,{attrs:{text:"",small:"",color:"primary"},on:{click:function(r){return r.stopPropagation(),e.$emit("rule-clicked",a)}}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-eye")]),e._v(" View Full Rule ")],1),a.source_file?t(o,{attrs:{text:"",small:"",color:"muted"},on:{click:function(r){return r.stopPropagation(),e.$emit("source-clicked",a)}}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-file-pdf-box")]),e._v(" View Source ")],1):e._e(),t(m),t(o,{attrs:{icon:"",small:"",color:a.bookmarked?"orange":"grey"},on:{click:function(r){return r.stopPropagation(),e.$emit("bookmark-clicked",a)}}},[t(i,{attrs:{small:""}},[e._v(" "+e._s(a.bookmarked?"mdi-bookmark":"mdi-bookmark-outline")+" ")])],1),t(o,{attrs:{icon:"",small:"",color:"muted"},on:{click:function(r){return r.stopPropagation(),e.$emit("share-clicked",a)}}},[t(i,{attrs:{small:""}},[e._v("mdi-share-variant")])],1)],1)],1)],1)}),1),e.showPagination?t("div",{staticClass:"pagination-container mt-4"},[t(u,{attrs:{align:"center",justify:"center"}},[t(l,{attrs:{cols:"12",sm:"auto"}},[t(A,{attrs:{value:e.currentPage,length:e.totalPages,"total-visible":e.$vuetify.breakpoint.smAndUp?7:5,color:"primary"},on:{input:function(a){return e.$emit("page-changed",a)}}})],1),t(l,{staticClass:"text-center",attrs:{cols:"12",sm:"auto"}},[t("div",{staticClass:"text-caption muted--text"},[e._v(" Showing "+e._s(e.startItem)+"-"+e._s(e.endItem)+" of "+e._s(e.totalResults)+" results ")])])],1)],1):e._e()]:[t(d,{staticClass:"empty-state text-center pa-8",attrs:{elevation:"1"}},[e.hasSearched?t("div",[t(i,{staticClass:"mb-4",attrs:{size:"64",color:"muted"}},[e._v("mdi-file-search-outline")]),t("h3",{staticClass:"text-h6 mb-2 muted--text"},[e._v("No Rules Found")]),t("p",{staticClass:"text-body-2 muted--text mb-4"},[e._v("We couldn't find any rules matching your search criteria.")]),t("div",{staticClass:"text-left mb-4"},[t("p",{staticClass:"text-body-2 font-weight-medium mb-2"},[e._v("Try:")]),t("ul",{staticClass:"text-body-2 muted--text"},[t("li",[e._v("Using different keywords")]),t("li",[e._v("Checking your spelling")]),t("li",[e._v("Using more general terms")]),t("li",[e._v("Reducing search filters")])])]),t(o,{attrs:{color:"primary",outlined:""},on:{click:function(a){return e.$emit("clear-search")}}},[t(i,{attrs:{left:""}},[e._v("mdi-filter-remove")]),e._v(" Clear Search ")],1)],1):t("div",[t(i,{staticClass:"mb-4",attrs:{size:"64",color:"primary"}},[e._v("mdi-book-search")]),t("h3",{staticClass:"text-h6 mb-2"},[e._v("Ready to Search")]),t("p",{staticClass:"text-body-2 muted--text mb-4"},[e._v(" Enter a search query above to find gymnastics rules and regulations. ")]),t("div",{staticClass:"text-left"},[t("p",{staticClass:"text-body-2 font-weight-medium mb-2"},[e._v("Popular searches:")]),t(H,e._l(e.popularSearches,function(a){return t(c,{key:a,attrs:{small:"",outlined:""},on:{click:function(r){return e.$emit("suggestion-clicked",a)}}},[e._v(" "+e._s(a)+" ")])}),1)],1)],1)])]],2)},re=[],ie=p(se,ae,re,!1,null,"c1fd8496");const oe=ie.exports,le={name:"SearchHistory",props:{value:{type:Boolean,default:!1},maxVisible:{type:Number,default:5},maxStored:{type:Number,default:20}},data(){return{showAllHistory:!1,searchHistory:this.loadHistory()}},computed:{showHistory:{get(){return this.value},set(s){this.$emit("input",s)}},hasHistory(){return this.searchHistory.length>0},recentSearches(){return this.showAllHistory?this.searchHistory:this.searchHistory.slice(0,this.maxVisible)},hasMoreHistory(){return this.searchHistory.length>this.maxVisible}},methods:{addSearch(s,e=[],t=null){if(!s||s.trim().length<3)return;const a={query:s.trim(),filters:this.normalizeFilters(e),resultCount:t,timestamp:Date.now()};this.searchHistory=this.searchHistory.filter(r=>!(r.query===a.query&&JSON.stringify(r.filters)===JSON.stringify(a.filters))),this.searchHistory.unshift(a),this.searchHistory.length>this.maxStored&&(this.searchHistory=this.searchHistory.slice(0,this.maxStored)),this.saveHistory()},selectSearch(s){this.$emit("search-selected",{query:s.query,filters:s.filters}),this.showHistory=!1},removeSearch(s){this.searchHistory.splice(s,1),this.saveHistory()},clearHistory(){this.searchHistory=[],this.saveHistory(),this.$emit("history-cleared")},normalizeFilters(s){return Array.isArray(s)?s.map(e=>({type:e.type,label:e.label,value:e.value})):[]},formatFilters(s){return!s||s.length===0?"":s.map(e=>e.label).join(", ")}
1,loadHistory(){try{const s=localStorage.getItem("rulebook_search_history");if(s){const e=JSON.parse(s),t=Date.now()-720*60*60*1e3;return e.filter(a=>a.timestamp>t)}}catch(s){console.warn("Failed to load search history:",s)}return[]},saveHistory(){try{localStorage.setItem("rulebook_search_history",JSON.stringify(this.searchHistory))}catch(s){console.warn("Failed to save search history:",s)}},updateLastSearchResult(s){this.searchHistory.length>0&&(this.searchHistory[0].resultCount=s,this.saveHistory())}},watch:{searchHistory:{handler(){const s=Date.now()-2592e6,e=this.searchHistory.filter(t=>t.timestamp>s);e.length!==this.searchHistory.length&&(this.searchHistory=e,this.saveHistory())},deep:!0}}};var ne=function(){var e=this,t=e._self._c;return e.showHistory&&e.hasHistory?t(d,{staticClass:"search-history",attrs:{elevation:"2"}},[t(b,{staticClass:"d-flex align-center py-3"},[t(i,{staticClass:"mr-2",attrs:{color:"muted"}},[e._v("mdi-history")]),t("span",{staticClass:"text-subtitle-1"},[e._v("Recent Searches")]),t(m),t(o,{attrs:{icon:"",small:"",title:"Clear search history"},on:{click:e.clearHistory}},[t(i,{attrs:{small:""}},[e._v("mdi-delete")])],1)],1),t(_),t(P,{staticClass:"py-0",attrs:{dense:""}},e._l(e.recentSearches,function(a,r){return t(g,{key:r,staticClass:"search-history-item",on:{click:function(n){return e.selectSearch(a)}}},[t(f,{staticClass:"mr-3"},[t(i,{attrs:{small:"",color:"muted"}},[e._v("mdi-magnify")])],1),t(y,[t(v,{staticClass:"text-body-2"},[e._v(" "+e._s(a.query)+" ")]),a.filters.length>0?t(I,{staticClass:"text-caption"},[e._v(" "+e._s(e.formatFilters(a.filters))+" ")]):e._e()],1),t(N,[t("div",{staticClass:"d-flex align-center"},[a.resultCount!==null?t(c,{staticClass:"mr-2",attrs:{"x-small":"",color:"muted",outlined:""}},[e._v(" "+e._s(a.resultCount)+" "+e._s(a.resultCount===1?"result":"results")+" ")]):e._e(),t(o,{attrs:{icon:"","x-small":"",title:"Remove from history"},on:{click:function(n){return n.stopPropagation(),e.removeSearch(r)}}},[t(i,{attrs:{"x-small":""}},[e._v("mdi-close")])],1)],1)])],1)}),1),e.hasMoreHistory?t(S,{staticClass:"py-2"},[t(m),t(o,{attrs:{text:"",small:"",color:"primary"},on:{click:function(a){e.showAllHistory=!e.showAllHistory}}},[e._v(" "+e._s(e.showAllHistory?"Show Less":`Show All (${e.searchHistory.length})`)+" "),t(i,{attrs:{small:"",right:""}},[e._v(" "+e._s(e.showAllHistory?"mdi-chevron-up":"mdi-chevron-down")+" ")])],1)],1):e._e()],1):e._e()},ce=[],ue=p(le,ne,ce,!1,null,"999a8778");const de=ue.exports,he={name:"SearchInput",props:{value:{type:String,default:""},loading:{type:Boolean,default:!1},availableDocuments:{type:Array,default:()=>[]},error:{type:String,default:null},disabled:{type:Boolean,default:!1}},data(){return{searchQuery:this.value,selectedDocument:null,selectedSection:null,minScore:.7,resultsPerPage:10,showAdvancedFilters:!1,showSuggestions:!0,errorMessages:[],searchStatus:null,pageSizeOptions:[{text:"5 results",value:5},{text:"10 results",value:10},{text:"20 results",value:20},{text:"50 results",value:50}],suggestions:["vault landing deductions","beam connection requirements","floor music requirements","bars release skills","scoring guidelines","neutral deductions","competition attire","age group requirements"]}},computed:{isLoading(){return this.loading||this.disabled},isValidQuery(){return this.searchQuery&&this.searchQuery.trim().length>=3&&this.searchQuery.trim().length<=500},hasActiveFilters(){return this.selectedDocument||this.selectedSection||this.minScore!==.7||this.resultsPerPage!==10},searchParams(){const s={query:this.searchQuery.trim(),per_page:this.resultsPerPage,min_score:this.minScore};return this.selectedDocument&&(s.document_id=this.selectedDocument),this.selectedSection&&(s.section=this.selectedSection.trim()),s}},watch:{value(s){this.searchQuery=s},error(s){s?(this.errorMessages=[s],this.searchStatus={type:"error",message:s}):(this.errorMessages=[],this.searchStatus=null)},loading(s){s?this.searchStatus={type:"info",message:"Searching through rulebooks..."}:this.error||(this.searchStatus=null)}},methods:{performSearch(){this.isValidQuery&&(this.validateInput(),!(this.errorMessages.length>0)&&(this.$emit("search",this.searchParams),this.$emit("input",this.searchQuery)))},onInputChange:G.debounce(function(s){this.searchQuery=s,this.$emit("input",s),this.isValidQuery&&(this.errorMessages=[],this.$emit("input-valid",this.searchParams))},300),onClear(){this.searchQuery="",this.errorMessages=[],this.searchStatus=null,this.$emit("input",""),this.$emit("clear")},clearFilters(){this.selectedDocument=null,this.selectedSection=null,this.minScore=.7,this.resultsPerPage=10,this.showAdvancedFilters=!1,this.$emit("filters-cleared")},applySuggestion(s){this.searchQuery=s,this.$emit("input",s),this.performSearch()}
1,validateInput(){if(this.errorMessages=[],!this.searchQuery||!this.searchQuery.trim()){this.errorMessages.push("Please enter a search query");return}if(this.searchQuery.trim().length<3){this.errorMessages.push("Search query must be at least 3 characters long");return}if(this.searchQuery.trim().length>500){this.errorMessages.push("Search query cannot exceed 500 characters");return}},focus(){this.$nextTick(()=>{var e,t;const s=(t=(e=this.$refs.searchForm)==null?void 0:e.$el)==null?void 0:t.querySelector("input");s&&s.focus()})}},mounted(){this.focus()}};var me=function(){var e=this,t=e._self._c;return t(d,{staticClass:"search-input-container",attrs:{elevation:"2"}},[t(h,{staticClass:"pa-4"},[t("div",{staticClass:"d-flex align-center mb-4"},[t(i,{staticClass:"mr-3",attrs:{color:"primary",size:"32"}},[e._v("mdi-book-search")]),t("div",[t("h3",{staticClass:"text-h6 mb-1"},[e._v("Rulebook Search")]),t("p",{staticClass:"text-body-2 muted--text mb-0"},[e._v("Search through gymnastics rulebooks and regulations")])])],1),t(Q,{ref:"searchForm",on:{submit:function(a){return a.preventDefault(),e.performSearch.apply(null,arguments)}}},[t(u,[t(l,{attrs:{cols:"12"}},[t(w,{attrs:{loading:e.isLoading,disabled:e.isLoading,"error-messages":e.errorMessages,outlined:"",clearable:"",placeholder:"Search for rules, regulations, deductions, or requirements...","aria-label":"Search rulebooks","prepend-inner-icon":"mdi-magnify","hide-details":"auto",counter:"500",maxlength:"500"},on:{input:e.onInputChange,keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:(a.preventDefault(),e.performSearch.apply(null,arguments))},clear:e.onClear},scopedSlots:e._u([{key:"append",fn:function(){return[t(o,{attrs:{disabled:!e.isValidQuery||e.isLoading,loading:e.isLoading,color:"primary",depressed:""},on:{click:e.performSearch}},[t(i,{attrs:{left:""}},[e._v("mdi-magnify")]),e._v(" Search ")],1)]},proxy:!0}]),model:{value:e.searchQuery,callback:function(a){e.searchQuery=a},expression:"searchQuery"}})],1),e.showAdvancedFilters?t(l,{attrs:{cols:"12"}},[t(q,{attrs:{flat:""}},[t(L,[t(M,[t("div",{staticClass:"d-flex align-center"},[t(i,{staticClass:"mr-2"},[e._v("mdi-tune")]),e._v(" Advanced Filters ")],1)]),t(K,[t(u,[t(l,{attrs:{cols:"12",md:"6"}},[t(R,{attrs:{items:e.availableDocuments,"item-text":"title","item-value":"document_id",label:"Specific Document",outlined:"",dense:"",clearable:"","prepend-icon":"mdi-file-document",hint:"Filter by specific rulebook","persistent-hint":""},model:{value:e.selectedDocument,callback:function(a){e.selectedDocument=a},expression:"selectedDocument"}})],1),t(l,{attrs:{cols:"12",md:"6"}},[t(w,{attrs:{label:"Section",outlined:"",dense:"",clearable:"","prepend-icon":"mdi-book-open-variant",placeholder:"e.g., Chapter 1, Apparatus Rules",hint:"Filter by section or chapter","persistent-hint":""},model:{value:e.selectedSection,callback:function(a){e.selectedSection=a},expression:"selectedSection"}})],1),t(l,{attrs:{cols:"12",md:"6"}},[t(E,{attrs:{label:"Minimum Relevance",min:.1,max:1,step:.05,"thumb
1-label":"always","track-color":"muted","track-fill-color":"primary"},scopedSlots:e._u([{key:"thumb-label",fn:function({value:a}){return[e._v(" "+e._s((a*100).toFixed(0))+"% ")]}}],null,!1,3527535450),model:{value:e.minScore,callback:function(a){e.minScore=a},expression:"minScore"}})],1),t(l,{attrs:{cols:"12",md:"6"}},[t(R,{attrs:{items:e.pageSizeOptions,label:"Results Per Page",outlined:"",dense:"","prepend-icon":"mdi-format-list-numbered"},model:{value:e.resultsPerPage,callback:function(a){e.resultsPerPage=a},expression:"resultsPerPage"}})],1)],1)],1)],1)],1)],1):e._e(),e.showSuggestions&&e.suggestions.length>0?t(l,{attrs:{cols:"12"}},[t("div",{staticClass:"mb-2"},[t(H,e._l(e.suggestions,function(a){return t(c,{key:a,attrs:{small:"",outlined:""},on:{click:function(r){return e.applySuggestion(a)}}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-lightbulb-outline")]),e._v(" "+e._s(a)+" ")],1)}),1)],1)]):e._e()],1)],1),t("div",{staticClass:"d-flex align-center justify-space-between mt-4"},[t("div",{staticClass:"d-flex align-center"},[t(o,{attrs:{text:"",small:"",color:"primary"},on:{click:function(a){e.showAdvancedFilters=!e.showAdvancedFilters}}},[t(i,{attrs:{left:"",small:""}},[e._v(" "+e._s(e.showAdvancedFilters?"mdi-chevron-up":"mdi-chevron-down")+" ")]),e._v(" "+e._s(e.showAdvancedFilters?"Hide":"Show")+" Filters ")],1),e.hasActiveFilters?t(o,{staticClass:"ml-2",attrs:{text:"",small:"",color:"warning"},on:{click:e.clearFilters}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-filter-remove")]),e._v(" Clear Filters ")],1):e._e()],1),t("div",{staticClass:"d-flex align-center"},[t(o,{attrs:{icon:"",small:"",color:"muted",title:e.showSuggestions?"Hide suggestions":"Show suggestions"},on:{click:function(a){e.showSuggestions=!e.showSuggestions}}},[t(i,[e._v(e._s(e.showSuggestions?"mdi-lightbulb":"mdi-lightbulb-outline"))])],1)],1)]),e.searchStatus?t("div",{staticClass:"mt-3"},[t(D,{staticClass:"mb-0",attrs:{type:e.searchStatus.type,dense:"",text:""}},[e._v(" "+e._s(e.searchStatus.message)+" ")])],1):e._e()],1)],1)},pe=[],_e=p(he,me,pe,!1,null,"51145773");const ge=_e.exports,fe={name:"RulesSearch",components:{SearchInput:ge,RuleList:oe,ToastNotification:j,SearchHistory:de,HelpTooltip:te},mixins:[W],data(){return{showRuleDetails:!1,showKeyboardShortcuts:!1,showSearchHistory:!1,toast:{show:!1,message:"",title:"",type:"info",actionText:null},hasSeenAdvancedHelp:localStorage.getItem("rulebook_help_advanced")==="true",hasSeenHistoryHelp:localStorage.getItem("rulebook_help_history")==="true",keyboardShortcuts:[{key:"Ctrl/Cmd + K",description:"Focus search input"},{key:"Enter",description:"Perform search"},{key:"Escape",description:"Clear search or close modals"},{key:"Ctrl/Cmd + F",description:"Toggle advanced filters"},{key:"Ctrl/Cmd + R",description:"Reset to defaults"},{key:"Ctrl/Cmd + H",description:"Toggle search history"},{key:"←/→",description:"Navigate pagination"},{key:"1-9",description:"Jump to page number"}]}},computed:{breadcrumbs(){return[{text:"Home",disabled:!1,href:"/"},{text:"Rules",disabled:!1,href:"/rules"},{text:"Search",disabled:!0,href:"/rules/search"}]},searchQuery:{get(){return this.$store.state.Rules.searchQuery},set(s){this.$store.dispatch("Rules/updateSearchQuery",s)}},appliedFilters(){const s=[],e=this.$store.state.Rules;return e.selectedDocument&&s.push({type:"document",label:`Document: ${e.selectedDocument}`,value:e.selectedDocument}),e.selectedSection&&s.push({type:"section",label:`Section: ${e.selectedSection}`,value:e.selectedSection}),e.minScore!==.7&&s.push({type:"score",label:`Min Score: ${Math.round(e.minScore*100)}%`,value:e.minScore}),e.perPage!==10&&s.push({type:"perPage",label:`Per Page: ${e.perPage}`,value:e.perPage}),s},bookmarkedRules(){return JSON.parse(localStorage.getItem("rulebook_bookmarks")||"[]")},hasSearchHistory(){return JSON.parse(localStorage.getItem("rulebook_search_history")||"[]").length>0},isRulebookAssistantEnabled(){var t;const s=this.$page.props.auth.user;return s?s.is_admin?!0:(((t=s.notification_preferences)==null?void 0:t.feature_preferences)||{})["rulebook-assistant"]===!0:!1}},async mounted(){this.$store.dispatch("setPageTitle","Rulebook Assistant - Search"),await this.$store.dispatch("Rules/initialize"),this.setupKeyboardShortcuts(),this.restoreSearchFromUrl()},beforeDestroy(){document.removeEventListener("keydown",this.handleKeyboardShortcuts)},methods:{async handleSearch(s){try{await this.$store.dispatch("Rules/search",s),this.updateUrl(),this.saveSearchToHistory(s);const e=this.$store.state.Rules.totalResults;e>0?this.showToast("success",`Found ${e} result${e===1?"":"s"}`,"Search Complete"):this.showToast("warning","No results found. Try adjusting your search terms or filters.","No Results")}catch(e){this.handleApiError(e,"Search")}},async handleInputValid(s){},handleClear(){this.$store.dispatch("Rules/clearSearch"),this.updateUrl(),this.showToast("info","Search cleared","Clear")},handleFiltersClear(){this.$store.dispatch("Rules/clearFilters"),this.updateUrl(),this.showToast("info","Filters cleared","Clear")},async handleSuggestionClick(s){await this.$store.dispatch("Rules/updateSearchQuery",s),await this.$store.dispatch("Rules/search"),this.updateUrl()}
1,async handlePageChange(s){await this.$store.dispatch("Rules/changePage",s),this.updateUrl()},async handleRuleClick(s){this.showRuleDetails=!0,s.id&&await this.$store.dispatch("Rules/getRuleDetails",s.id)},handleSourceClick(s){s.source_file&&window.open(s.source_file,"_blank")},handleBookmarkClick(s){const e=JSON.parse(localStorage.getItem("rulebook_bookmarks")||"[]"),t=s.id||s.document_id,a=e.findIndex(r=>r.id===t);if(a>=0)e.splice(a,1),localStorage.setItem("rulebook_bookmarks",JSON.stringify(e)),this.showToast("info","Bookmark removed","Bookmarks");else{const r={id:t,title:s.title||s.document_title,content:s.content?`${s.content.substring(0,200)}...`:"",document_id:s.document_id,section:s.section,timestamp:Date.now()};e.unshift(r);const n=e.slice(0,50);localStorage.setItem("rulebook_bookmarks",JSON.stringify(n)),this.showToast("success","Rule bookmarked","Bookmarks")}},handleShareClick(s){const e=`${window.location.origin}/rules/search?rule=${s.id||s.document_id}`;navigator.clipboard.writeText(e).then(()=>{this.showToast("success","Link copied to clipboard","Share successful")}).catch(()=>{this.showToast("error","Failed to copy link to clipboard","Share failed")})},async handleHistorySearch(s){this.showSearchHistory=!1,await this.$store.dispatch("Rules/updateSearchQuery",s.query),s.filters&&await this.$store.dispatch("Rules/updateFilters",s.filters),await this.$store.dispatch("Rules/search"),this.updateUrl(),this.showToast("info",`Restored search: "${s.query}"`,"Search History")},handleHistoryCleared(){this.showToast("success","Search history cleared","History")},showToast(s,e,t=null,a=null){this.toast={show:!0,type:s,message:e,title:t,actionText:a}},handleToastAction(){this.toast.show=!1},handleHelpDismissed(){console.log("Help tooltip dismissed")},handleAdvancedHelpDismissed(){this.hasSeenAdvancedHelp=!0,localStorage.setItem("rulebook_help_advanced","true")},handleHistoryHelpDismissed(){this.hasSeenHistoryHelp=!0,localStorage.setItem("rulebook_help_history","true")},saveSearchToHistory(s){const e={query:s.query||this.$store.state.Rules.searchQuery,timestamp:Date.now(),resultCount:this.$store.state.Rules.totalResults,filters:{selectedDocument:this.$store.state.Rules.selectedDocument,selectedSection:this.$store.state.Rules.selectedSection,minScore:this.$store.state.Rules.minScore,perPage:this.$store.state.Rules.perPage}},a=JSON.parse(localStorage.getItem("rulebook_search_history")||"[]").filter(n=>n.query!==e.query),r=[e,...a].slice(0,20);localStorage.setItem("rulebook_search_history",JSON.stringify(r))},clearAllFilters(){this.$store.dispatch("Rules/clearFilters"),this.updateUrl(),this.showToast("info","All filters cleared","Clear")},resetToDefaults(){this.$store.dispatch("Rules/clearSearch"),this.$store.dispatch("Rules/clearFilters"),this.updateUrl(),this.showToast("success","Reset to default settings","Reset")},clearCacheWithToast(){this.$store.dispatch("Rules/clearCache"),this.showToast("success","Search cache cleared","Cache")},async retryRuleDetails(){const s=this.$store.state.Rules.selectedRule;s!=null&&s.id&&await this.$store.dispatch("Rules/getRuleDetails",s.id)},formatDate(s){if(!s)return"";try{return new Date(s).toLocaleDateString()}catch{return s}},updateUrl(){const s=new URLSearchParams,e=this.$store.state.Rules;e.searchQuery&&s.set("q",e.searchQuery),e.selectedDocument&&s.set("doc",e.selectedDocument),e.selectedSection&&s.set("section",e.selectedSection),e.minScore!==.7&&s.set("score",e.minScore),e.currentPage>1&&s.set("page",e.currentPage),e.perPage!==10&&s.set("per_page",e.perPage);const t=s.toString()?`${window.location.pathname}?${s.toString()}`:window.location.pathname;window.history.replaceState({},"",t)},restoreSearchFromUrl(){const s=new URLSearchParams(window.location.search),e=s.get("q"),t=s.get("doc"),a=s.get("section"),r=s.get("score"),n=s.get("page"),k=s.get("per_page");e&&this.$store.dispatch("Rules/updateSearchQuery",e),(t||a||r||k)&&this.$store.dispatch("Rules/updateFilters",{selectedDocument:t,selectedSection:a,minScore:r?Number.parseFloat(r):void 0,perPage:k?Number.parseInt(k):void 0}
1),n&&this.$store.dispatch("Rules/changePage",Number.parseInt(n)),e&&this.$store.dispatch("Rules/search")},setupKeyboardShortcuts(){document.addEventListener("keydown",this.handleKeyboardShortcuts)},handleKeyboardShortcuts(s){if(s.target.tagName==="INPUT"||s.target.tagName==="TEXTAREA")return;const e=s.ctrlKey||s.metaKey;switch(s.key){case"k":case"K":e&&(s.preventDefault(),this.focusSearchInput());break;case"f":case"F":e&&(s.preventDefault(),this.$store.dispatch("Rules/toggleAdvancedFilters"));break;case"r":case"R":e&&(s.preventDefault(),this.resetToDefaults());break;case"h":case"H":e&&(s.preventDefault(),this.showSearchHistory=!this.showSearchHistory);break;case"Escape":this.showRuleDetails?this.showRuleDetails=!1:this.showKeyboardShortcuts?this.showKeyboardShortcuts=!1:this.$store.state.Rules.searchQuery&&this.handleClear();break;case"ArrowLeft":this.$store.state.Rules.currentPage>1&&this.handlePageChange(this.$store.state.Rules.currentPage-1);break;case"ArrowRight":this.$store.state.Rules.currentPage<this.$store.state.Rules.totalPages&&this.handlePageChange(this.$store.state.Rules.currentPage+1);break;default:if(s.key>="1"&&s.key<="9"){const t=Number.parseInt(s.key);t<=this.$store.state.Rules.totalPages&&this.handlePageChange(t)}break}},focusSearchInput(){const s=this.$el.querySelector('input[type="text"]');s&&s.focus()},isRuleBookmarked(s){const e=this.bookmarkedRules,t=s.id||s.document_id;return e.some(a=>a.id===t)},handleApiError(s,e="Operation"){console.error(`${e} failed:`,s);let t="An unexpected error occurred. Please try again.",a=`${e} Failed`;if(s.response){const r=s.response.status;r===429?(t="Too many requests. Please wait a moment and try again.",a="Rate Limited"):r>=500?(t="Server error. Please try again later.",a="Server Error"):r===404&&(t="The requested resource was not found.",a="Not Found")}else s.request&&(t="Network error. Please check your connection and try again.",a="Connection Error");this.showToast("error",t,a)}},metaInfo(){return{title:"Rulebook Assistant - Search Gymnastics Rules",meta:[{name:"description",content:"Search through gymnastics rulebooks and regulations with AI-powered semantic search. Find rules, deductions, requirements, and scoring guidelines quickly and accurately."},{name:"keywords",content:"gymnastics rules, rulebook search, FIG code of points, USAG rules, gymnastics regulations, scoring guidelines, deductions"},{property:"og:title",content:"Rulebook Assistant - Search Gymnastics Rules"},{property:"og:description",content:"AI-powered search for gymnastics rulebooks and regulations"},{property:"og:type",content:"website"}]}}};var ye=function(){var a;var e=this,t=e._self._c;return t("div",{staticClass:"rules-search-page",attrs:{"data-testid":"rules-search-page"}},[e.isRulebookAssistantEnabled?[t(C,{staticClass:"py-4"},[t(u,[t(l,{attrs:{cols:"12"}},[t(U,{staticClass:"pa-0",attrs:{items:e.breadcrumbs},scopedSlots:e._u([{key:"item",fn:function({item:r}){return[t(B,{attrs:{href:r.href,disabled:r.disabled,exact:""}},[e._v(" "+e._s(r.text)+" ")])]}}])}),t("div",{staticClass:"d-flex align-center justify-space-between mb-4"},[t("div",[t("div",{staticClass:"d-flex align-center"},[t("h1",{staticClass:"text-h4 font-weight-bold mb-2"},[e._v("Rulebook Assistant")]),t("HelpTooltip",{staticClass:"ml-2",attrs:{title:"Welcome to Rulebook Assistant!",text:"Use AI-powered semantic search to find specific rules, deductions, and requirements in gymnastics rulebooks. Try searching for things like 'vault landing deductions' or 'beam connection requirements'.","show-got-it":!0,"show-dismiss":!0,"dismiss-key":"rulebook_welcome",position:"bottom"}})],1),t("p",{staticClass:"text-body-1 muted--text mb-0"},[e._v(" Search through gymnastics rulebooks and regulations with AI-powered semantic search ")])]),t("div",{staticClass:"d-flex align-center"},[e.$store.getters["Rules/hasActiveFilters"]?t(o,{staticClass:"mr-2",attrs:{text:"",color:"warning"},on:{click:e.clearAllFilters}},[t(i,{attrs:{left:""}},[e._v("mdi-filter-remove")]),e._v(" Clear Filters ")],1):e._e(),t(o,{attrs:{icon:"",title:"Clear search cache"},on:{click:function(r){return e.$store.dispatch("Rules/clearCache")}}},[t(i,[e._v("mdi-cached")])],1),t(o,{attrs:{icon:"",title:"Show search history"},on:{click:function(r){e.showSearchHistory=!e.showSearchHistory}}},[t(i,[e._v("mdi-history")])],1),t(V,{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:r,attrs:n}){return[t(o,e._g(e._b({attrs:{icon:"",title:"More options"}},"v-btn",n,!1),r),[t(i,[e._v("mdi-dots-vertical")])],1)]}}])},[t(P,[t(g,{on:{click:function(r){e.showKeyboardShortcuts=!0}}},[t(f,[t(i,[e._v("mdi-keyboard")])],1),t(y,[t(v,[e._v("Keyboard Shortcuts")])],1)],1),t(g,{on:{click:e.resetToDefaults}},[t(f,[t(i,[e._v("mdi-restore")])],1),t(y,[t(v,[e._v("Reset to Defaults")])],1)],1),t(g,{on:{click:e.clearCacheWithToast}},[t(f,[t(i,[e._v("mdi-cached")])],1),t(y,[t(v,[e._v("Clear Cache")])],1)],1)],1)],1)],1)])],1)],1)],1),t(C,{attrs:{fluid:""}},[t(u,[t(l,{attrs:{cols:"12"}},[t("SearchInput",{attrs:{loading:e.$store.getters["Rules/isSearching"],"available-documents":e.$store.state.Rules.availableDocuments,error:e.$store.state.Rules.searchError},on:{search:e.handleSearch,"input-valid":e.handleInputValid,clear:e.handleClear,"filters-cleared":e.handleFiltersClear,"suggestion-clicked":e.handleSuggestionClick},model:{value:e.searchQuery,callback:function(r){e.searchQuery=r},expression:"searchQuery"}}
1),t(O,[e.showSearchHistory?t("div",{staticClass:"mt-4"},[t("SearchHistory",{on:{"search-selected":e.handleHistorySearch,"history-cleared":e.handleHistoryCleared}})],1):e._e()])],1),t(l,{attrs:{cols:"12"}},[t("RuleList",{attrs:{results:e.$store.state.Rules.searchResults,loading:e.$store.getters["Rules/isSearching"],"search-query":e.$store.state.Rules.searchQuery,"total-results":e.$store.state.Rules.totalResults,"current-page":e.$store.state.Rules.currentPage,"per-page":e.$store.state.Rules.perPage,"search-time":e.$store.state.Rules.searchTime,"applied-filters":e.appliedFilters,"has-searched":e.$store.state.Rules.hasSearched},on:{"rule-clicked":e.handleRuleClick,"source-clicked":e.handleSourceClick,"bookmark-clicked":e.handleBookmarkClick,"share-clicked":e.handleShareClick,"page-changed":e.handlePageChange,"clear-search":e.handleClear,"suggestion-clicked":e.handleSuggestionClick}})],1)],1)],1),t($,{attrs:{"max-width":"800px",scrollable:""},model:{value:e.showRuleDetails,callback:function(r){e.showRuleDetails=r},expression:"showRuleDetails"}},[e.$store.state.Rules.selectedRule?t(d,[t(b,{staticClass:"d-flex align-center"},[t(i,{staticClass:"mr-3",attrs:{color:"primary"}},[e._v("mdi-file-document")]),t("div",{staticClass:"flex-grow-1"},[t("div",{staticClass:"text-h6"},[e._v(" "+e._s(e.$store.state.Rules.selectedRule.title||e.$store.state.Rules.selectedRule.document_title)+" ")]),t("div",{staticClass:"text-caption muted--text"},[e._v(" "+e._s(e.$store.state.Rules.selectedRule.document_id)+" "),e.$store.state.Rules.selectedRule.page_number?t("span",[e._v("• Page "+e._s(e.$store.state.Rules.selectedRule.page_number))]):e._e()])]),t(o,{attrs:{icon:""},on:{click:function(r){e.showRuleDetails=!1}}},[t(i,[e._v("mdi-close")])],1)],1),t(_),t(h,{staticClass:"pa-6"},[e.$store.state.Rules.ruleDetailsLoading?t("div",{staticClass:"text-center py-8"},[t(x,{attrs:{indeterminate:"",color:"primary"}}),t("div",{staticClass:"mt-4 text-body-2 muted--text"},[e._v("Loading rule details...")])],1):e.$store.state.Rules.ruleDetailsError?t("div",{staticClass:"text-center py-8"},[t(i,{staticClass:"mb-4",attrs:{size:"48",color:"error"}},[e._v("mdi-alert-circle")]),t("div",{staticClass:"text-h6 mb-2"},[e._v("Failed to Load Details")]),t("div",{staticClass:"text-body-2 muted--text mb-4"},[e._v(e._s(e.$store.state.Rules.ruleDetailsError))]),t(o,{attrs:{color:"primary"},on:{click:e.retryRuleDetails}},[t(i,{attrs:{left:""}},[e._v("mdi-refresh")]),e._v(" Retry ")],1)],1):t("div",[t("div",{staticClass:"rule-content mb-4"},[t("div",{staticClass:"text-body-1",staticStyle:{"line-height":"1.8"}},[e._v(" "+e._s(e.$store.state.Rules.selectedRule.content)+" ")])]),e.$store.state.Rules.selectedRule.metadata?t("div",{staticClass:"rule-metadata"},[t(_,{staticClass:"my-4"}),t("h3",{staticClass:"text-h6 mb-3"},[e._v("Additional Information")]),t(u,{attrs:{dense:""}},[e.$store.state.Rules.selectedRule.section?t(l,{attrs:{cols:"12",sm:"6"}},[t(c,{attrs:{small:"",color:"primary",outlined:""}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-book-open-variant")]),e._v(" "+e._s(e.$store.state.Rules.selectedRule.section)+" ")],1)],1):e._e(),e.$store.state.Rules.selectedRule.metadata.category?t(l,{attrs:{cols:"12",sm:"6"}},[t(c,{attrs:{small:"",color:"muted",outlined:""}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-tag")]),e._v(" "+e._s(e.$store.state.Rules.selectedRule.metadata.category)+" ")],1)],1):e._e(),e.$store.state.Rules.selectedRule.metadata.last_updated?t(l,{attrs:{cols:"12",sm:"6"}},[t(c,{attrs:{small:"",color:"muted",outlined:""}},[t(i,{attrs:{left:"",small:""}},[e._v("mdi-calendar")]),e._v(" Updated "+e._s(e.formatDate(e.$store.state.Rules.selectedRule.metadata.last_updated))+" ")],1)],1):e._e()],1)],1):e._e()])]),t(_),t(S,{staticClass:"pa-4"},[(a=e.$store.state.Rules.selectedRule)!=null&&a.source_file?t(o,{attrs:{color:"primary"},on:{click:function(r){return e.handleSourceClick(e.$store.state.Rules.selectedRule)}}},[t(i,{attrs:{left:""}},[e._v("mdi-file-pdf-box")]),e._v(" View Source PDF ")],1):e._e(),t(m),t(o,{attrs:{text:""},on:{click:function(r){return e.handleShareClick(e.$store.state.Rules.selectedRule)}}},[t(i,{attrs:{left:""}},[e._v("mdi-share-variant")]),e._v(" Share ")],1),t(o,{attrs:{text:""},on:{click:function(r){e.showRuleDetails=!1}}}
1,[e._v(" Close ")])],1)],1):e._e()],1),t($,{attrs:{"max-width":"600px"},model:{value:e.showKeyboardShortcuts,callback:function(r){e.showKeyboardShortcuts=r},expression:"showKeyboardShortcuts"}},[t(d,[t(b,[t(i,{staticClass:"mr-3"},[e._v("mdi-keyboard")]),e._v(" Keyboard Shortcuts ")],1),t(h,[t(z,[t("tbody",e._l(e.keyboardShortcuts,function(r){return t("tr",{key:r.key},[t("td",{staticClass:"font-weight-medium"},[e._v(e._s(r.key))]),t("td",[e._v(e._s(r.description))])])}),0)])],1),t(S,[t(m),t(o,{attrs:{text:""},on:{click:function(r){e.showKeyboardShortcuts=!1}}},[e._v("Close")])],1)],1)],1),t(J,{attrs:{value:e.$store.state.Rules.documentsLoading,absolute:""}},[t(x,{attrs:{indeterminate:"",size:"64"}}),t("div",{staticClass:"mt-4 text-center"},[e._v("Loading available documents...")])],1),t("ToastNotification",{attrs:{message:e.toast.message,title:e.toast.title,type:e.toast.type,"action-text":e.toast.actionText},on:{action:e.handleToastAction},model:{value:e.toast.show,callback:function(r){e.$set(e.toast,"show",r)},expression:"toast.show"}}),e.$store.state.Rules.hasSearched?e._e():t("HelpTooltip",{attrs:{target:"search-input",title:"Welcome to Rulebook Assistant!",message:"Start by typing your question about gymnastics rules. Try searching for 'deductions', 'vault requirements', or 'scoring guidelines'.",position:"bottom"},on:{dismissed:e.handleHelpDismissed}}),e.$store.state.Rules.hasSearched&&e.$store.state.Rules.searchResults.length>0&&!e.hasSeenAdvancedHelp?t("HelpTooltip",{attrs:{target:"rule-list",title:"Pro Tips!",message:"Click on any result to view full details. Use the bookmark icon to save important rules, and the share button to copy links. Try keyboard shortcuts like Ctrl+H for search history!",position:"top"},on:{dismissed:e.handleAdvancedHelpDismissed}}):e._e(),e.hasSearchHistory&&!e.hasSeenHistoryHelp?t("HelpTooltip",{attrs:{target:"history-button",title:"Search History Available",message:"Click the history icon or press Ctrl+H to view your recent searches and quickly repeat them.",position:"bottom"},on:{dismissed:e.handleHistoryHelpDismissed}}):e._e()]:[t(C,{staticClass:"py-4"},[t(u,{attrs:{justify:"center"}},[t(l,{attrs:{cols:"12",md:"8",lg:"6"}},[t(d,{staticClass:"text-center pa-8"},[t(i,{attrs:{size:"64",color:"muted"}},[e._v("mdi-book-search")]),t("div",{staticClass:"mt-4 text-h6 muted--text"},[e._v("Rulebook Assistant Disabled")]),t("div",{staticClass:"text-body-2 muted--text mb-4"},[e._v(" The Rulebook Assistant feature is currently disabled in your account preferences. ")]),t(o,{attrs:{color:"primary",outlined:"",href:"/account"}},[t(i,{attrs:{left:""}},[e._v("mdi-cog")]),e._v(" Enable in Account Settings ")],1)],1)],1)],1)],1)]],2)},ve=[],be=p(fe,ye,ve,!1,null,"9baa0430");const He=be.exports;export{He 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.