PageSourceSearch

https://www.ellisdon.com/_nuxt/uFkuGAPi.js

js ellisdon.com collected 2026-09-24 18:39:29 UTC 10,543 bytes, 1 lines download raw bytes

1import{u as oe}from"./DZOWnlyB.js";import{u as ne}from"./Co190ZoO.js";import{ai as E,a5 as ae,m as de,b as ue,d as b,o as m,q as t,n as h,H as C,M as F,N as K,r as ce,A as fe,f as R,bt as be,R as me,z as X}from"#entry";var B,q;function ge(){if(q)return B;q=1;var r="Expected a function",e=NaN,s="[object Symbol]",c=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,d=parseInt,L=typeof E=="object"&&E&&E.Object===Object&&E,_=typeof self=="object"&&self&&self.Object===Object&&self,N=L||_||Function("return this")(),H=Object.prototype,U=H.toString,J=Math.max,Q=Math.min,M=function(){return N.Date.now()};function $(l,a,g){var v,k,O,p,f,w,T=0,W=!1,S=!1,I=!0;if(typeof l!="function")throw new TypeError(r);a=G(a)||0,D(g)&&(W=!!g.leading,S="maxWait"in g,O=S?J(G(g.maxWait)||0,a):O,I="trailing"in g?!!g.trailing:I);function V(n){var y=v,A=k;return v=k=void 0,T=n,p=l.apply(A,y),p}function le(n){return T=n,f=setTimeout(x,a),W?V(n):p}function ie(n){var y=n-w,A=n-T,Z=a-y;return S?Q(Z,O-A):Z}function P(n){var y=n-w,A=n-T;return w===void 0||y>=a||y<0||S&&A>=O}function x(){var n=M();if(P(n))return Y(n);f=setTimeout(x,ie(n))}function Y(n){return f=void 0,I&&v?V(n):(v=k=void 0,p)}function re(){f!==void 0&&clearTimeout(f),T=0,v=w=k=f=void 0}function se(){return f===void 0?p:Y(M())}function j(){var n=M(),y=P(n);if(v=arguments,k=this,w=n,y){if(f===void 0)return le(w);if(S)return f=setTimeout(x,a),V(w)}return f===void 0&&(f=setTimeout(x,a)),p}return j.cancel=re,j.flush=se,j}function D(l){var a=typeof l;return!!l&&(a=="object"||a=="function")}function ee(l){return!!l&&typeof l=="object"}function te(l){return typeof l=="symbol"||ee(l)&&U.call(l)==s}function G(l){if(typeof l=="number")return l;if(te(l))return e;if(D(l)){var a=typeof l.valueOf=="function"?l.valueOf():l;l=D(a)?a+"":a}if(typeof l!="string")return l===0?l:+l;l=l.replace(c,"");var g=i.test(l);return g||o.test(l)?d(l.slice(2),g?2:8):u.test(l)?e:+l}return B=$,B}var he=ge();const z=ae(he),ye={name:"CategoryFilters",props:{desktopAlignment:{type:String,default:"left"},categories:{type:Array,default:()=>[]},modelValue:{type:String,default:void 0},resultsRegionId:{type:String,required:!0},itemType:{type:String,default:"posts"},disabledCategories:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(){const r=oe(),s=ue?.()?.locale?.value||"en",{init:c}=ne();return{t:r,locale:s,init:c}},data(){return{isAtStart:!0,isAtEnd:!1,scrollAmount:200,mobileOpen:!1}},computed:{totalOptions(){return 1+(Array.isArray(this.categories)?this.categories.length:0)},a11yKey(){return[this.locale,this.itemType,this.totalOptions].join("|")},filtersGroupLabel(){return this.t("filters.groupLabel","Filter results, {TOTAL} options",{TOTAL:String(this.totalOptions)})},labelForAll(){return`${this.t("filters.all.aria","Show all {TYPE}",{TYPE:this.itemType})} (${this.t("filters.indexOfTotal","{INDEX} of {TOTAL}",{INDEX:"1",TOTAL:String(this.totalOptions)})})`}},async mounted(){await this.$nextTick(),this.checkScrollState(),window.addEventListener("keydown",z(()=>{this.handleKeydown()},250),{passive:!0}),window.addEventListener("resize",z(()=>{this.checkScrollState()},250),{passive:!0})},beforeUnmount(){this.disposeAnim?.(),window.removeEventListener("resize",this.checkScrollState),window.removeEventListener("keydown",this.handleKeydown),document.body.style.overflow=""},methods:{labelForCategory(r,e){return`${this.t("filters.category.aria","Show {TYPE} in {CATEGORY}",{TYPE:this.itemType,CATEGORY:r})} (${this.t("filters.indexOfTotal","{INDEX} of {TOTAL}",{INDEX:String(e+2),TOTAL:String(this.totalOptions)})})`},isCategoryDisabled(r){return this.disabledCategories.includes(r)},onScroll(){this.checkScrollState()},checkScrollState(){const r=this.$refs.root;if(!r)return;const{scrollLeft:e,scrollWidth:s,clientWidth:c}=r;this.isAtStart=e<=0,this.isAtEnd=e+c>=s-1},scrollLeft(){const r=this.$refs.root;r&&r.scrollBy({left:-this.scrollAmount,behavior:"smooth"})},scrollRight(){const r=this.$refs.root;r&&r.scrollBy({left:this.scrollAmount,behavior:"smooth"})},openMobileDrawer(){this.mobileOpen=!0},closeMobileDrawer(){this.mobileOpen=!1},selectMobile(r){this.$emit("update:modelValue",r)},handleKeydown(r){r.key==="Escape"&&this.mobileOpen&&this.closeMobileDrawer()}}},we={class:"filters-wrapper"},ve=["aria-label"],pe=["aria-pressed","aria-controls","aria-label"],Ce=["aria-pressed","aria-controls","aria-label","onClick"],Le={ref:"mobileWrapper",class:"mobile-filters"},ke={class:"mobile-drawer-title"},Te=["aria-expanded","aria-label"],Se={key:0,class:"close-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Ae={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},Oe={class:"mobile-drawer-body"},xe={class:"mobile-list-wrapper"},Ee=["aria-label"],_e=["aria-pressed","aria-controls","aria-label"],Me={class:"mobile-filter-radio"},De={key:0,class:"mobile-filter-radio-dot"},Ie=["aria-pressed","aria-controls","aria-label","disabled","onClick"],Ve={class:"mobile-filter-radio"},je={key:0,class:"mobile-filter-radio-dot"},Fe={class:"mobile-drawer-footer"};function Re(r,e,s,c,u,i){return m(),b(F,null,[t("div",we,[t("button",{class:h(["arrow arrow-left",{disabled:u.isAtStart}]),"aria-label":"Scroll filters left",onClick:e[0]||(e[0]=(...o)=>i.scrollLeft&&i.scrollLeft(...o))},[...e[9]||(e[9]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 18 18",fill:"none"},[t("path",{d:"M14.7866 7.93398C15.185 7.93398 15.5079 8.25691 15.5079 8.65527C15.5079 9.05363 15.185 9.37657 14.7866 9.37657L14.7866 8.65527L14.7866 7.93398ZM2.01453 9.16531C1.73284 8.88362 1.73284 8.42692 2.01453 8.14524L6.60483 3.55494C6.88651 3.27326 7.34321 3.27326 7.6249 3.55494C7.90658 3.83662 7.90658 4.29332 7.6249 4.57501L3.54463 8.65527L7.6249 12.7355C7.90658 13.0172 7.90658 13.4739 7.6249 13.7556C7.34321 14.0373 6.88651 14.0373 6.60483 13.7556L2.01453 9.16531ZM14.7866 8.65527L14.7866 9.37657L2.52456 9.37657L2.52456 8.65527L2.52456 7.93398L14.7866 7.93398L14.7866 8.65527Z",fill:"#C8CEDD"})],-1)])],2),t("div",{class:h(["filters-scroll-container",{"fade-left":!u.isAtStart,"fade-right":!u.isAtEnd}])},[(m(),b("ul",{ref:"root",key:i.a11yKey,class:h(["filters",`align-${s.desktopAlignment}`]),"aria-label":i.filtersGroupLabel,onScroll:e[2]||(e[2]=(...o)=>i.onScroll&&i.onScroll(...o))},[t("li",null,[t("button",{type:"button",class:h({active:s.modelValue==="view_all"}),"aria-pressed":s.modelValue==="view_all"?"true":"false","aria-controls":s.resultsRegionId,"aria-label":i.labelForAll,onClick:e[1]||(e[1]=o=>r.$emit("update:modelValue","view_all"))},C(c.t("filters.viewAll","View All")),11,pe)]),(m(!0),b(F,null,K(s.categories,({title:o,machineName:d},L)=>(m(),b("li",{key:d},[t("button",{type:"button",class:h({active:d===s.modelValue}),"aria-pressed":d===s.modelValue?"true":"false","aria-controls":s.resultsRegionId,"aria-label":i.labelForCategory(o,L),onClick:_=>r.$emit("update:modelValue",d)},C(o),11,Ce)]))),128))],42,ve))],2),t("button",{class:h(["arrow arrow-right",{disabled:u.isAtEnd}]),"aria-label":"Scroll filters right",onClick:e[3]||(e[3]=(...o)=>i.scrollRight&&i.scrollRight(...o))},[...e[10]||(e[10]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 18 18",fill:"none"},[t("path",{d:"M2.52454 7.93398C2.12618 7.93398 1.80324 8.25691 1.80324 8.65527C1.80324 9.05363 2.12618 9.37657 2.52454 9.37657L2.52454 8.65527L2.52454 7.93398ZM15.2966 9.16531C15.5783 8.88362 15.5783 8.42692 15.2966 8.14524L10.7063 3.55494C10.4246 3.27326 9.96792 3.27326 9.68624 3.55494C9.40455 3.83662 9.40455 4.29332 9.68624 4.57501L13.7665 8.65527L9.68624 12.7355C9.40455 13.0172 9.40455 13.4739 9.68624 13.7556C9.96792 14.0373 10.4246 14.0373 10.7063 13.7556L15.2966 9.16531ZM2.52454 8.65527L2.52454 9.37657L14.7866 9.37657L14.7866 8.65527L14.7866 7.93398L2.52454 7.93398L2.52454 8.65527Z",fill:"#0032A0"})],-1)])],2)]),t("div",Le,[ce(be,{name:"fade-overlay"},{default:fe(()=>[u.mobileOpen?(m(),b("div",{key:0,class:"mobile-overlay",onClick:e[4]||(e[4]=(...o)=>i.closeMobileDrawer&&i.closeMobileDrawer(...o))})):R("",!0)]),_:1}),t("div",{class:h(["mobile-filter-panel",{"is-open":u.mobileOpen}])},[t("div",{class:"mobile-filter-header",onClick:e[6]||(e[6]=o=>!u.mobileOpen&&i.openMobileDrawer())},[t("span",ke,C(c.t("filters.filter","Filter")),1),t("button",{class:"mobile-filter-icon-btn","aria-expanded":u.mobileOpen?"true":"false","aria-label":u.mobileOpen?c.t("filters.close","Close filters"):c.t("filters.open","Open filters"),onClick:e[5]||(e[5]=me(o=>u.mobileOpen?i.closeMobileDrawer():i.openMobileDrawer(),["stop"]))},[u.mobileOpen?(m(),b("svg",Ae,[...e[12]||(e[12]=[t("circle",{cx:"12",cy:"12",r:"12",fill:"#0032A0"},null,-1),t("line",{x1:"7.2",y1:"12",x2:"17",y2:"12",stroke:"white","stroke-width":"1.2","stroke-linecap":"round"},null,-1)])])):(m(),b("svg",Se,[...e[11]||(e[11]=[t("circle",{cx:"12",cy:"12",r:"12",fill:"#0032A0"},null,-1),t("line",{x1:"12",y1:"7.5",x2:"12",y2:"17",stroke:"white","stroke-width":"1.2","stroke-linecap":"round"},null,-1),t("line",{x1:"7.2",y1:"12",x2:"17",y2:"12",stroke:"white","stroke-width":"1.2","stroke-linecap":"round"},null,-1)])]))],8,Te)]),t("div",Oe,[e[14]||(e[14]=t("div",{class:"mobile-drawer-divider"},null,-1)),t("div",xe,[t("ul",{class:"mobile-filter-list","aria-label":i.filtersGroupLabel},[t("li",null,[t("button",{type:"button",class:h(["mobile-filter-option",{active:s.modelValue==="view_all"}]),"aria-pressed":s.modelValue==="view_all"?"true":"false","aria-controls":s.resultsRegionId,"aria-label":i.labelForAll,onClick:e[7]||(e[7]=o=>i.selectMobile("view_all"))},[t("span",Me,[s.modelValue==="view_all"?(m(),b("span",De)):R("",!0)]),X(" "+C(c.t("filters.viewAll","View All")),1)],10,_e)]),(m(!0),b(F,null,K(s.categories,({title:o,machineName:d},L)=>(m(),b("li",{key:d},[t("button",{type:"button",class:h(["mobile-filter-option",{active:d===s.modelValue,disabled:i.isCategoryDisabled(d)}]),"aria-pressed":d===s.modelValue?"true":"false","aria-controls":s.resultsRegionId,"aria-label":i.labelForCategory(o,L),disabled:i.isCategoryDisabled(d),onClick:_=>i.selectMobile(d)},[t("span",Ve,[d===s.modelValue?(m(),b("span",je)):R("",!0)]),X(" "+C(o),1)],10,Ie)]))),128))],8,Ee),e[13]||(e[13]=t("div",{class:"mobile-list-fade"},null,-1))]),t("div",Fe,[t("button",{class:"mobile-drawer-done",onClick:e[8]||(e[8]=(...o)=>i.closeMobileDrawer&&i.closeMobileDrawer(...o))},C(c.t("filters.done","Done")),1)])])],2)],512)],64)}const Pe=de(ye,[["render",Re],["__scopeId","data-v-70468dd3"]]);export{Pe as C};

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.