PageSourceSearch

https://www.chesapeakebay.net/cpresources/8fd61e1a/StaffSearch.DpY9g8tc.js

js chesapeakebay.net collected 2026-10-01 10:20:19 UTC 30,815 bytes, 2 lines download raw bytes

1import{U as F,a3 as Q,ay as mt,B as Y,az as gt,aA as nt,z as P,S as pt,A as vt,ab as St,C as x,D as u,F as it,M as lt,O as V,V as _t,a8 as bt,P as ot,Z as rt,I as T,K as R,am as wt,G as yt,J as I}from"./runtime-dom.esm-bundler.D8YrsGpd.js";import{C as Et}from"./Combobox.B6Ds0KWI.js";import Ot from"./Modal.BQVj5Jqi.js";import{d as at}from"./index.DyeSaoEE.js";import{_ as xt}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./_commonjsHelpers.Cpj98o6Y.js";import"./focus-trap.esm.CPw4bcQR.js";function It(o,r,t){const e=new Array(o);return new Proxy(e,{get(s,n,l){if(typeof n=="string"){const i=n.charCodeAt(0);if(i>=48&&i<=57){const a=+n;if(Number.isInteger(a)&&a>=0&&a<o){let d=s[a];if(!d){const p=r[a*2];d=s[a]={index:a,key:t(a),start:p,size:r[a*2+1],end:p+r[a*2+1],lane:0}}return d}}if(n==="length")return o}return Reflect.get(s,n,l)}})}function U(o,r,t){let e=t.initialDeps??[],s,n=!0;function l(){const i=o();return(i.length!==e.length||i.some((d,p)=>e[p]!==d))&&(e=i,s=r(...i),t!=null&&t.onChange&&!(n&&t.skipInitialOnChange)&&t.onChange(s),n=!1),s}return l.updateDeps=i=>{e=i},l}function ht(o,r){if(o===void 0)throw new Error("Unexpected undefined");return o}const Ct=(o,r)=>Math.abs(o-r)<1.01,Mt=(o,r,t)=>{let e;return Object.assign(function(...s){o.clearTimeout(e),e=o.setTimeout(()=>r.apply(this,s),t)},{cancel:()=>{o.clearTimeout(e)}})};let J;const X=()=>{if(J!==void 0)return J;if(typeof navigator>"u")return J=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return J=!0;const o=navigator.maxTouchPoints;return J=navigator.platform==="MacIntel"&&o!==void 0&&o>0},zt=o=>o,Tt=o=>{const r=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1)-r+1,s=new Array(e);for(let n=0;n<e;n++)s[n]=r+n;return s},H={passive:!0},At=(o,r)=>{const t=o.scrollElement;if(!t)return;const e=()=>{r({width:t.innerWidth,height:t.innerHeight})};return e(),t.addEventListener("resize",e,H),()=>{t.removeEventListener("resize",e)}},kt=typeof window>"u"?!0:"onscrollend"in window,Rt=(o,r,t)=>{const e=o.scrollElement;if(!e)return;const s=o.targetWindow;if(!s)return;const n=o.options.useScrollendEvent&&kt;let l=0;const i=n?null:Mt(s,()=>r(l,!1),o.options.isScrollingResetDelay),a=S=>()=>{l=t(e),i==null||i(),r(l,S)},d=a(!0),p=a(!1);return e.addEventListener("scroll",d,H),n&&e.addEventListener("scrollend",p,H),()=>{e.removeEventListener("scroll",d),n&&e.removeEventListener("scrollend",p),i==null||i.cancel()}},Ft=(o,r)=>Rt(o,r,t=>o.options.horizontal?t.scrollX:t.scrollY),Lt=(o,r,t)=>{if(t.options.useCachedMeasurements){const e=t.indexFromElement(o),s=t.options.getItemKey(e);return t.itemSizeCache.get(s)??t.options.estimateSize(e)}if(r!=null&&r.borderBoxSize){const e=r.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}if(!r){const e=t.indexFromElement(o),s=t.options.getItemKey(e),n=t.itemSizeCache.get(s);if(n!==void 0)return n}return o[t.options.horizontal?"offsetWidth":"offsetHeight"]},jt=(o,{adjustments:r=0,behavior:t},e)=>{var s,n;(n=(s=e.scrollElement)==null?void 0:s.scrollTo)==null||n.call(s,{[e.options.horizontal?"left":"top"]:o+r,behavior:t})},Dt=jt;class Wt{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var t,e,s;return((s=(e=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:e.now)==null?void 0:s.call(e))??Date.now()},this.observer=(()=>{let t=null;const e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(n=>{const l=()=>{const i=n.target,a=this.indexFromElement(i);if(!i.isConnected){this.observer.unobserve(i);for(const[d,p]of this.elementsCache)if(p===i){this.elementsCache.delete(d);break}return}this.isIndexInRange(a)&&this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(i,n,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var s;
1(s=e())==null||s.disconnect(),t=null},observe:s=>{var n;return(n=e())==null?void 0:n.observe(s,{box:"border-box"})},unobserve:s=>{var n;return(n=e())==null?void 0:n.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{var e,s;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:zt,rangeExtractor:Tt,onChange:()=>{},measureElement:Lt,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const m in t){const _=t[m];_!==void 0&&(n[m]=_)}const l=this.options;let i=null,a=null,d=!1;if(l!==void 0&&l.enabled&&n.enabled&&n.anchorTo==="end"&&this.scrollElement!==null){const m=l.count,_=n.count,w=this.getMeasurements(),M=m>0?((e=w[0])==null?void 0:e.key)??l.getItemKey(0):null,z=m>0?((s=w[m-1])==null?void 0:s.key)??l.getItemKey(m-1):null;if(_!==m||m>0&&_>0&&(n.getItemKey(0)!==M||n.getItemKey(_-1)!==z)){d=!0;const b=m>0?this.getVirtualItemForOffset(this.getScrollOffset())??w[0]:null;b&&(i=[b.key,this.getScrollOffset()-b.start]);const E=n.followOnAppend===!0?"auto":n.followOnAppend||null;E&&_>m&&this.isAtEnd(l.scrollEndThreshold)&&(m===0||n.getItemKey(_-1)!==z)&&(a=E)}}this.options=n,d&&(this.pendingMin=0,this.itemSizeCacheVersion++);let p=!1,S=0;if(i&&this.scrollOffset!==null){const[m,_]=i,w=this.getMeasurements(),{count:M,getItemKey:z}=this.options;let f=0;for(;f<M&&z(f)!==m;)f++;if(f<M){const g=w[f];if(g){const b=Math.max(0,g.start+_);b!==this.scrollOffset&&(S=b-this.scrollOffset,this.scrollOffset=b,p=!0)}}}(p||a)&&(this.pendingScrollAnchor=[p?i[0]:null,p?i[1]:0,a,S])},this.notify=t=>{var e,s;(s=(e=this.options).onChange)==null||s.call(e,this,t)},this.maybeNotify=U(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,l)=>{if(l&&this._intendedScrollOffset===null&&n===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(n-this._intendedScrollOffset)<1.5&&(n=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const i=this.getScrollOffset();this.scrollDirection=l?i===n?this.scrollDirection:i<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=l,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const n=this.scrollElement,l=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},i=()=>{this._iosTouching=!1,!(!X()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};n.addEventListener("touchstart",l,H),n.addEventListener("touchend",i,H),this.unsubs.push(()=>{n.removeEventListener("touchstart",l),n.removeEventListener("touchend",i),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){const[n,l,i,a]=s;n!==null&&!i&&(X()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?a!==0&&(this._iosDeferredAdjustment+=a):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),i&&this.scrollToEnd({behavior:i})}},this._flushIosDeferredIfReady=()=>
1{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const t=this.getScrollOffset(),e=this.getMaxScrollOffset();if(t<0||t>e)return;if(this._iosDeferredAdjustment<0&&t>=e-1){this._iosDeferredAdjustment=0;return}const s=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(t,{adjustments:this.scrollAdjustments+=s,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=U(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(t,e,s,n,l,i,a,d)=>(this.prevLanes!==void 0&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:t,paddingStart:e,scrollMargin:s,getItemKey:n,enabled:l,lanes:i,laneAssignmentMode:a,gap:d}),{key:!1}),this.isIndexInRange=t=>t>=0&&t<this.options.count,this.getMeasurements=U(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:t,paddingStart:e,scrollMargin:s,getItemKey:n,enabled:l,lanes:i,laneAssignmentMode:a,gap:d},p)=>{const S=this.itemSizeCache;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const f of this.laneAssignments.keys())f>=t&&this.laneAssignments.delete(f);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const m=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1),i===1){const f=t*2;let g=this._flatMeasurements;if(!g||g.length<f){const y=new Float64Array(f);g&&m>0&&y.set(g.subarray(0,m*2)),g=y,this._flatMeasurements=g}let b;if(m===0)b=e+s;else{const y=m-1;b=g[y*2]+g[y*2+1]+d}for(let y=m;y<t;y++){const L=n(y),D=S.get(L),j=typeof D=="number"?D:this.options.estimateSize(y);g[y*2]=b,g[y*2+1]=j,b+=j+d}const E=It(t,g,n);return this.measurementsCache=E,E}const _=this.measurementsCache.slice(0,m),w=new Array(i).fill(void 0),M=new Float64Array(i);let z=0;for(let f=0;f<m;f++){const g=_[f];g&&(w[g.lane]===void 0&&z++,w[g.lane]=f,M[g.lane]=g.end)}for(let f=m;f<t;f++){const g=n(f),b=this.laneAssignments.get(f);let E,y;const L=a==="estimate"||S.has(g);if(b!==void 0&&this.options.lanes>1){E=b;const W=w[E],A=W!==void 0?_[W]:void 0;y=A?A.end+d:e+s}else if(z===i){let W=0,A=M[0],$=w[0];for(let C=1;C<i;C++){const K=M[C];(K<A||K===A&&w[C]<$)&&(W=C,A=K,$=w[C])}E=W,y=A+d,L&&this.laneAssignments.set(f,E)}else E=f%this.options.lanes,y=e+s,L&&this.laneAssignments.set(f,E);const D=S.get(g),j=typeof D=="number"?D:this.options.estimateSize(f),B=y+j;_[f]={index:f,start:y,size:j,end:B,key:g,lane:E},w[E]===void 0&&z++,w[E]=f,M[E]=B}return this.measurementsCache=_,_},{key:!1,debug:()=>this.options.debug}),this.calculateRange=U(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,s,n)=>t.length===0||e===0?(this.range=null,null):(this.range=Vt(t,e,s,n,n===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}
1),this.getVirtualIndexes=U(()=>{let t=null,e=null;const s=this.calculateRange();return s&&(t=s.startIndex,e=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,s,n,l)=>n===null||l===null?[]:t({startIndex:n,endIndex:l,overscan:e,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,s=t.getAttribute(e);return s?parseInt(s,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var e;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((e=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:e.index);if(s!==void 0&&this.range){const n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,s-n),i=Math.min(this.options.count-1,s+n);return t>=l&&t<=i}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((l,i)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(i))});return}const e=this.indexFromElement(t);if(!this.isIndexInRange(e))return;const s=this.options.getItemKey(e),n=this.elementsCache.get(s);n!==t&&(n&&this.observer.unobserve(n),this.observer.observe(t),this.elementsCache.set(s,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(e)&&this.resizeItem(e,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,e)=>{var s,n;if(!this.isIndexInRange(t))return;let l,i,a;const d=this._flatMeasurements;if(this.options.lanes===1&&d!==null)a=this.options.getItemKey(t),i=d[t*2],l=d[t*2+1];else{const m=this.measurementsCache[t];if(!m)return;a=m.key,i=m.start,l=m.size}const p=this.itemSizeCache.get(a)??l,S=e-p;if(S!==0){const m=this.options.anchorTo==="end"&&((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,_=m?this.getTotalSize():0,w=this.getScrollOffset()+this.scrollAdjustments,z=!this.itemSizeCache.has(a)?i<w:i+p<=w&&this.scrollDirection!=="backward",f=((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[t]??{index:t,key:a,start:i,size:l,end:i+l,lane:0},S,this):z);(this.pendingMin===null||t<this.pendingMin)&&(this.pendingMin=t),this.itemSizeCache.set(a,e),this.itemSizeCacheVersion++;let g=!1;m?g=this.applyScrollAdjustment(this.getTotalSize()-_):f&&(g=this.applyScrollAdjustment(S)),this.notify(g)}},this.getVirtualItems=U(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{const s=[];for(let n=0,l=t.length;n<l;n++){const i=t[n],a=e[i];s.push(a)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const e=this.getMeasurements();if(e.length===0)return;const s=this._flatMeasurements,n=this.options.lanes===1&&s!=null,l=ct(0,e.length-1,n?i=>s[i*2]:i=>ht(e[i]).start,t);return ht(e[l])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(t=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=t,this.getOffsetForAlignment=(t,e,s=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),l=this.getScrollOffset();e==="auto"&&(e=t>=l+n?"end":"start"),e==="center"?t+=(s-n)/2:e==="end"&&(t-=n);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=this.getSize(),n=this.getScrollOffset(),l=this.measurementsCache[t];if(!l)return;if(e==="auto")if(l.end>=n+s-this.options.scrollPaddingEnd)e="end";else if(l.start<=n+this.options.scrollPaddingStart)e="start";else return[n,e];if(e==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),e];const i=e==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,e,l.size),e]},this.scrollToOffset=(t,{align:e="start",behavior:s="auto"}={})=>{this._iosDeferredAdjustment=0;const n=this.getOffsetForAlignment(t,e),l=this.now();this.scrollState={index:null,align:e,behavior:s,startedAt:l,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:e="auto",behavior:s="auto"}={})=>{this._iosDeferredAdjustment=0,t=Math.max(0,Math.min(t,this.options.count-1));const n=this.getOffsetForIndex(t,e);if(!n)return;const[l,i]=n,a=this.now();this.scrollState={index:t,align:i,behavior:s,startedAt:a,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:e="auto"}={})=>{const s=this.getScrollOffset()+t,n=this.now();this.scrollState={index:null,align:"start",behavior:e,startedAt:n,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:e}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:t="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:t});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:t})},this.getTotalSize=()=>{var t;const e=this.getMeasurements();let s;if(e.length===0)s=this.options.paddingStart;else if(this.options.lanes===1){const n=e.length-1,l=this._flatMeasurements;l!=null?s=l[n*2]+l[n*2+1]:s=((t=e[n])==null?void 0:t.end)??0}else{const n=Array(this.options.lanes).fill(null);let l=e.length-1;for(;l>=0&&n.some(i=>i===null);){const i=e[l];n[i.lane]===null&&(n[i.lane]=i.end),l--}s=Math.max(...n.filter(i=>i!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const t=[];if(this.itemSizeCache.size===0)return t;const e=this.getMeasurements();for(const s of e)s&&this.itemSizeCache.has(s.key)&&t.push({index:s.index,key:s.key,start:s.start,size:s.size,end:s.end,lane:s.lane});return t},this._scrollToOffset=(t,{adjustments:e,behavior:s})=>{this._intendedScrollOffset=t+(e??0),this.options.scrollToFn(t,{behavior:s,adjustments:e},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(r)}applyScrollAdjustment(r,t){return r===0?!1:X()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=r,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const e=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=e?e[0]:this.scrollState.lastTargetOffset,n=1,l=s!==this.scrollState.lastTargetOffset;
1if(!l&&Ct(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.getScrollOffset()!==s&&this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,l){const i=this.getSize()||600,a=Math.abs(s-this.getScrollOffset()),d=this.scrollState.behavior==="smooth"&&a>i;this.scrollState.lastTargetOffset=s,d||(this.scrollState.behavior="auto"),this._scrollToOffset(s,{adjustments:void 0,behavior:d?"smooth":"auto"})}this.scheduleScrollReconcile()}}const ct=(o,r,t,e)=>{for(;o<=r;){const s=(o+r)/2|0,n=t(s);if(n<e)o=s+1;else if(n>e)r=s-1;else return s}return o>0?o-1:0};function Pt(o,r,t){let e=0;for(;e<=r;){const s=(e+r)/2|0,n=o[s*2];if(n<t)e=s+1;else if(n>t)r=s-1;else return s}return e>0?e-1:0}function Vt(o,r,t,e,s){const n=o.length-1;if(o.length<=e)return{startIndex:0,endIndex:n};if(e===1&&s!==null){const d=Pt(s,n,t);let p=d;const S=t+r;for(;p<n&&s[p*2]+s[p*2+1]<S;)p++;return{startIndex:d,endIndex:p}}let i=ct(0,n,d=>o[d].start,t),a=i;if(e===1)for(;a<n&&o[a].end<t+r;)a++;else if(e>1){const d=Array(e).fill(0);for(;a<n&&d.some(S=>S<t+r);){const S=o[a];d[S.lane]=S.end,a++}const p=Array(e).fill(t+r);for(;i>=0&&p.some(S=>S>=t);){const S=o[i];p[S.lane]=S.start,i--}i=Math.max(0,i-i%e),a=Math.min(n,a+(e-1-a%e))}return{startIndex:i,endIndex:a}}function Nt(o){const r=new Wt(Q(o)),t=mt(r),e=r._didMount();return Y(()=>Q(o).getScrollElement(),s=>{s&&r._willUpdate()},{immediate:!0}),Y(()=>Q(o),s=>{r.setOptions({...s,onChange:(n,l)=>{var i;nt(t),(i=s.onChange)==null||i.call(s,n,l)}}),r._willUpdate(),nt(t)},{immediate:!0}),gt(e),t}function Ut(o){return Nt(F(()=>({getScrollElement:()=>typeof document<"u"?window:null,observeElementRect:At,observeElementOffset:Ft,scrollToFn:Dt,initialOffset:()=>typeof document<"u"?window.scrollY:0,...Q(o)})))}const Bt={class:"topFilterPanel fullScreenWidth"},Kt={class:"topFilterPanel__form",action:"/"},Jt={class:"loboOwl"},Ht={class:"adjInputButton adjInputButton--wrap",style:{"--blockSpacing":"0.5em"}},$t={class:"loboOwl"},qt=["value"],Qt={class:"l-fullWidth__main"},Gt={class:"flexWrapDivider"},Xt={"aria-live":"polite",class:"u-step-1 flexWrapDivider__item"},Yt={class:"u-normalWeight"},Zt=["href"],te=["data-index"],ee={class:"staffCard__header"},se={class:"h4 staffCard__title"},ne={key:0,class:"staffCard__badge"},ie={key:0,style:{"--mt":"2"}},le=["onClick"],oe={class:"loboOwl"},re={class:"staffCard__header"},ae={class:"h4 staffCard__title"},he={key:0,class:"staffCard__badge"},ce={key:0,class:"u-bold"},ue={key:1},de={key:2,class:"u-bold"},fe={key:3},me={key:4,class:"u-bold"},ge={key:5},pe=["href"],ve={__name:"StaffSearch",props:{appUrl:String,comboboxOptions:Array,contacts:Array,groups:Array,queryString:String},setup(o){const r=o,t=P(""),e=P(""),s=P(""),n=P(null),l=P(!1),i=P(0),a=P(1),d=pt("box-entries");let p=!1;const S=new URLSearchParams(r.queryString),m=S.get("s"),_=S.get("group");m&&(t.value=m,e.value=m),_&&(s.value=_),vt(()=>{window.addEventListener("popstate",w);let h=new URL(window.location.href).hash;M(h),L(),window.addEventListener("resize",at(()=>{L()},100))}),St(()=>{window.removeEventListener("popstate",w),window.removeEventListener("resize",at(()=>{L()},100))});function w(c){c.state===null?(g(),b()):c.state.hasOwnProperty("group")?(g(),s.value=c.state.group):c.state.hasOwnProperty("s")?(b(),t.value=c.state.s,e.value=c.state.s):(g(),b());let h=c.target.location.hash;M(h)}function M(c){if(c==="")l.value=!1;else if(c.indexOf("#contact-")===0){const h=c.replace("#contact-",""),v=r.contacts.find(O=>O.slug===h);v&&j(v,!1)}}function z(c){const h=new URLSearchParams;for(const O in c)h.set(O,c[O]);const v=window.location.pathname+"?"+h.toString();history.pushState(c,"",v)}function f(){b(),e.value=t.value,z({s:e.value})}function g(){t.value="",e.value=""}function b(){s.value=""}function E(c){const h=new URLSearchParams(window.location.search);for(let O=0;O<c.length;O++)h.delete(c[O]);const v=window.location.pathname+"?"+h.toString();history.pushState(null,"",v)}function y(){g(),b(),E(["group","s"])}function L(){let c=getComputedStyle(d.value).getPropertyValue("gap");i.value=parseInt(c),a.value=D()}function D(){const c=d.value.children,h=c.item(0),v=c.item(1);if(h.offsetTop<v.offsetTop)return 1;const O=c.item(2);return v.offsetTop<O.offsetTop?2:3}async function j(c,h=!0){p&&p.abort();let v=new URL(window.location.href),O=new URLSearchParams(v.search);const q=`/api/contacts/${c.id}.json`;await W(q).then(async k=>{p=!1,n.value={...c,...k},l.value=!0,h&&(v.hash="contact-"+c.slug,history.pushState(JSON.parse(JSON.stringify(O)),"",v))}).catch(k=>{k.name==="AbortError"?console.log(k):(console.log(k),state.error=k,state.refreshing=!1,state.showSpinner=!1)})}function B(){l.value=!1;let c=new URL(window.location.href),h=new URLSearchParams(c.search);c.hash="",history.pushState(JSON.parse(JSON.stringify(h)),"",c)}async function W(c){p=new AbortController;const h=p.signal,v=await fetch(c,{method:"GET",headers:{Accept:"application/json"},dataType:"json",credentials:"same-origin",signal:h});return v.ok||(this.error="Sorry, something went wrong. Please refresh the page and try again, or contact us."),v.json()}const A=F(()=>{const c=C.value.length;return`Showing ${c} ${c===1?"result":"results"} for`}),$=F(()=>e.value!==""?e.value:s.value!==""?r.groups.find(c=>c.slug===s.value).title:"All groups"),C=F(()=>!e.value&&!s.value?r.contacts:r.contacts.filter(c=>e.value?c.t.toLowerCase().includes(e.value.toLowerCase()):s.value?c.g.includes(s.value):!0)),K=F(()=>({count:C.value.length,estimateSize:()=>170,overscan:6,lanes:a.value,gap:i.value,scrollMargin:300})),G=Ut(K),N=F(()=>G.value.getVirtualItems()),ut=F(()=>G.value.getTotalSize()),dt=F(()=>N.value.length>0?Math.max(0,N.value[0].start-G.value.options.scrollMargin):0),ft=F(()=>N.value.length>0?Math.max(0,ut.value-N.value[N.value.length-1].end):0);return Y(s,c=>{if(c===""&&e.value)return;const h=new URLSearchParams(window.location.search);c===""&&!h.has("group")||(g(),z({group:s.value}))}),(c,h)=>(I(),x("div",null,[u("header",Bt,[u("form",Kt,[u("fieldset",Jt,[h[4]||(h[4]=u("legend",{class:"h4"},"Search by Name",-1)),u("div",Ht,[h[3]||(h[3]=u("label",{for:"staffSearch__input",class:"u-srOnly"}
1,"Staff Name",-1)),it(Et,{class:"adjInputButton__input","filter-options":!0,"id-prefix":"staffSearch",options:o.comboboxOptions,"options-searchable-keys":["t"],placeholder:"First or last name","show-input-label":!1,modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=v=>t.value=v)},null,8,["options","modelValue"]),u("button",{type:"submit","aria-describedby":"search-by-name-heading",onClick:lt(f,["prevent"]),class:"button button--primary adjInputButton__button"},h[2]||(h[2]=[u("i",{class:"prependedIcon fas fa-search fa-fw"},null,-1),V("Search ")]))])]),u("fieldset",$t,[h[6]||(h[6]=u("legend",{class:"h4"},"Filter by Group",-1)),_t(u("select",{class:"input input--select adjInputButton__input",id:"group",name:"group","onUpdate:modelValue":h[1]||(h[1]=v=>s.value=v)},[h[5]||(h[5]=u("option",{value:""},"All groups",-1)),(I(!0),x(ot,null,rt(o.groups,v=>(I(),x("option",{value:v.slug},R(v.title),9,qt))),256))],512),[[bt,s.value]]),h[7]||(h[7]=u("label",{for:"group",class:"u-srOnly"},"Branches and Teams",-1))])])]),u("section",Qt,[u("header",Gt,[u("h2",Xt,[u("span",Yt,R(A.value),1),h[8]||(h[8]=V(" ")),u("strong",null,R($.value),1)]),e.value||s.value?(I(),x("a",{key:0,href:o.appUrl,class:"pageLink flexWrapDivider__item",onClick:lt(y,["prevent"])},h[9]||(h[9]=[V(" View all contacts"),u("span",{class:"appendedIcon"},[V("‍"),u("i",{class:"boldIcon fa-solid fa-angle-right"})],-1)]),8,Zt)):T("",!0)]),u("section",{class:"boxEntries",ref:"box-entries",style:wt([{"--minItemWidth":"331px"},{width:"100%",position:"relative",paddingBlockStart:`${dt.value}px`,paddingBlockEnd:`${ft.value}px`}])},[(I(!0),x(ot,null,rt(N.value,v=>(I(),x("article",{class:"panel staffCard",key:v.index,"data-index":v.index},[u("header",ee,[u("h3",se,R(C.value[v.index].t),1),C.value[v.index].s?(I(),x("div",ne," Staff ")):T("",!0)]),C.value[v.index].o?(I(),x("dl",ie,[h[10]||(h[10]=u("dt",{class:"u-bold"},"Organization:",-1)),u("dd",null,R(C.value[v.index].o),1)])):T("",!0),u("p",null,[u("button",{class:"pageLink",onClick:O=>j(C.value[v.index])},h[11]||(h[11]=[V(" View more info"),u("span",{class:"appendedIcon"},[V("‍"),u("i",{class:"fa-solid fa-angle-right"})],-1)]),8,le)])],8,te))),128)),h[12]||(h[12]=u("div",null,null,-1)),h[13]||(h[13]=u("div",null,null,-1))],4),it(Ot,{show:l.value,title:"Contact details","modal-id":"contact-details-modal","focus-trap-options":{initialFocus:"#contact-details-modal"},onClose:B},{default:yt(()=>{var v,O,q,k,Z,tt,et,st;return[u("article",oe,[u("header",re,[u("h3",ae,R((v=n.value)==null?void 0:v.t),1),(O=n.value)!=null&&O.s?(I(),x("div",he,"Staff")):T("",!0)]),u("dl",null,[(q=n.value)!=null&&q.o?(I(),x("dt",ce,"Organization:")):T("",!0),(k=n.value)!=null&&k.o?(I(),x("dd",ue,R(n.value.o),1)):T("",!0),(Z=n.value)!=null&&Z.g?(I(),x("dt",de,"Groups:")):T("",!0),(tt=n.value)!=null&&tt.g?(I(),x("dd",fe,R(n.value.g),1)):T("",!0),(et=n.value)!=null&&et.e?(I(),x("dt",me,"Email:")):T("",!0),(st=n.value)!=null&&st.e?(I(),x("dd",ge,[u("a",{href:`mailto:${n.value.e}`},R(n.value.e),9,pe)])):T("",!0)]),u("p",null,[u("button",{class:"button button--primary button--wide",onClick:B},h[14]||(h[14]=[u("span",{class:"fa-solid fa-close prependedIcon boldIcon"}
1,null,-1),V("Close ")]))])])]}),_:1},8,["show"])])]))}},xe=xt(ve,[["__scopeId","data-v-812e35f8"]]);export{xe as default};
2//# sourceMappingURL=StaffSearch.DpY9g8tc.js.map

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.