PageSourceSearch

https://cookcountyhealthatlas.org/static/q-atlas/assets/QScrollArea-C-l5oQQR.js

js cookcountyhealthatlas.org collected 2026-09-28 11:32:59 UTC 9,343 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`90b43d2bf8f81a3f86e44f5bae8e5b632fda4300`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`85d70bfb-9664-4ae4-af9e-2b0a8b4f72bb`,e._sentryDebugIdIdentifier=`sentry-dbid-85d70bfb-9664-4ae4-af9e-2b0a8b4f72bb`)}catch{}})();import{C as e,I as t,J as n,K as r,Mt as i,P as a,W as o,bt as s,ht as c,t as l}from"./vue.esm-bundler-CFZA_RsA.js";import{t as u}from"./create-Dnv26o-8.js";import{m as d}from"./use-key-composition-D0UeA1qn.js";import{t as f}from"./use-quasar-C97xU3GR.js";import{t as p}from"./format-Co4FM-QY.js";import{n as m,t as h}from"./use-dark-BavyikZT.js";import{n as g}from"./render-CsJfXqx9.js";import{c as _,l as v}from"./scroll-Chi8cyrR.js";import{d as y,n as b}from"./QTabs-TQrY_4Qq.js";import{t as x}from"./QScrollObserver-CKR-i2UA.js";l();var S=u({props:[`store`,`barStyle`,`verticalBarStyle`,`horizontalBarStyle`],setup(e){return()=>[t(`div`,{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":`true`,onMousedown:e.store.onVerticalMousedown}),t(`div`,{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":`true`,onMousedown:e.store.onHorizontalMousedown}),s(t(`div`,{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":`true`}),e.store.thumbVertDir),s(t(`div`,{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":`true`}),e.store.thumbHorizDir)]}});l();var C=[`vertical`,`horizontal`],w={vertical:{offset:`offsetY`,scroll:`scrollTop`,dir:`down`,dist:`y`},horizontal:{offset:`offsetX`,scroll:`scrollLeft`,dir:`right`,dist:`x`}}
vendor: 7,437 bytes, line 1
1,T={prevent:!0,mouse:!0,mouseAllDir:!0},E=e=>e>=250?50:Math.ceil(e/5),D=(e,t)=>t?-e:e;function O(e,t){return C.includes(e)?!0:(console.error(`[QScrollArea]: wrong first param of ${t} (vertical/horizontal)`),!1)}var k=u({name:`QScrollArea`,props:{...m,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:()=>[0,0]},horizontalOffset:{type:Array,default:()=>[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(s,{slots:l,emit:u}){let m=i(!1),C=i(!1),k=i(!1),A={vertical:i(0),horizontal:i(0)},j={vertical:{ref:i(null),position:i(0),size:i(0)},horizontal:{ref:i(null),position:i(0),size:i(0)}},{proxy:M}=a(),N=f(),P=h(s,N),F=null,I,L=i(null),R=e(()=>`q-scrollarea`+(P()?` q-scrollarea--dark`:``));Object.assign(A,{verticalInner:e(()=>A.vertical.value-s.verticalOffset[0]-s.verticalOffset[1]),horizontalInner:e(()=>A.horizontal.value-s.horizontalOffset[0]-s.horizontalOffset[1])}),j.vertical.percentage=e(()=>{let e=j.vertical.size.value-A.vertical.value;if(e<=0)return 0;let t=p(j.vertical.position.value/e,0,1);return Math.round(t*1e4)/1e4}),j.vertical.thumbHidden=e(()=>!(s.visible===null?k.value:s.visible)&&!m.value&&!C.value||j.vertical.size.value<=A.vertical.value+1),j.vertical.thumbStart=e(()=>s.verticalOffset[0]+j.vertical.percentage.value*(A.verticalInner.value-j.vertical.thumbSize.value)),j.vertical.thumbSize=e(()=>Math.round(p(A.verticalInner.value*A.verticalInner.value/j.vertical.size.value,E(A.verticalInner.value),A.verticalInner.value))),j.vertical.style=e(()=>({...s.thumbStyle,...s.verticalThumbStyle,top:`${j.vertical.thumbStart.value}px`,height:`${j.vertical.thumbSize.value}px`,[N.lang.rtl?`left`:`right`]:`${s.horizontalOffset[+!N.lang.rtl]}px`})),j.vertical.thumbClass=e(()=>`q-scrollarea__thumb q-scrollarea__thumb--v absolute-right`+(j.vertical.thumbHidden.value?` q-scrollarea__thumb--invisible`:``)),j.vertical.barClass=e(()=>`q-scrollarea__bar q-scrollarea__bar--v absolute-right`+(j.vertical.thumbHidden.value?` q-scrollarea__bar--invisible`:``)),j.horizontal.percentage=e(()=>{let e=j.horizontal.size.value-A.horizontal.value;if(e<=0)return 0;let t=p(D(j.horizontal.position.value,N.lang.rtl)/e,0,1);return Math.round(t*1e4)/1e4}),j.horizontal.thumbHidden=e(()=>!(s.visible===null?k.value:s.visible)&&!m.value&&!C.value||j.horizontal.size.value<=A.horizontal.value+1),j.horizontal.thumbStart=e(()=>s.horizontalOffset[+!!N.lang.rtl]+j.horizontal.percentage.value*(A.horizontalInner.value-j.horizontal.thumbSize.value)),j.horizontal.thumbSize=e(()=>Math.round(p(A.horizontalInner.value*A.horizontalInner.value/j.horizontal.size.value,E(A.horizontalInner.value),A.horizontalInner.value))),j.horizontal.style=e(()=>({...s.thumbStyle,...s.horizontalThumbStyle,[N.lang.rtl?`right`:`left`]:`${j.horizontal.thumbStart.value}px`,width:`${j.horizontal.thumbSize.value}px`,bottom:`${s.verticalOffset[1]}px`})),j.horizontal.thumbClass=e(()=>`q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom`+(j.horizontal.thumbHidden.value?` q-scrollarea__thumb--invisible`:``)),j.horizontal.barClass=e(()=>`q-scrollarea__bar q-scrollarea__bar--h absolute-bottom`+(j.horizontal.thumbHidden.value?` q-scrollarea__bar--invisible`:``));let ee=e(()=>s.tabindex===void 0?j.vertical.size.value>A.vertical.value+1||j.horizontal.size.value>A.horizontal.value+1?0:void 0:s.tabindex),z=e(()=>j.vertical.thumbHidden.value&&j.horizontal.thumbHidden.value?s.contentStyle:s.contentActiveStyle);function B(){return{verticalPosition:j.vertical.position.value,verticalPercentage:j.vertical.percentage.value,verticalSize:j.vertical.size.value,verticalContainerSize:A.vertical.value,verticalContainerInnerSize:A.verticalInner.value,horizontalPosition:j.horizontal.position.value,horizontalPercentage:j.horizontal.percentage.value,horizontalSize:j.horizontal.size.value,horizontalContainerSize:A.horizontal.value,horizontalContainerInnerSize:A.horizontalInner.value}}let V=d(()=>{let e=B();e.ref=M,u(`scroll`,e)},0);function H(e,t,n){O(e,`setScrollPosition`)&&(e===`vertical`?v:_)(L.value,t,n)}function U({height:e,width:t}){let n=!1;A.vertical.value!==e&&(A.vertical.value=e,n=!0),A.horizontal.value!==t&&(A.horizontal.value=t,n=!0),n&&J()}function W({position:e}){let t=!1;j.vertical.position.value!==e.top&&(j.vertical.position.value=e.top,t=!0),j.horizontal.position.value!==e.left&&(j.horizontal.position.value=e.left,t=!0),t&&J()}function G({height:e,width:t}){j.horizontal.size.value!==t&&(j.horizontal.size.value=t,J()),j.vertical.size.value!==e&&(j.vertical.size.value=e,J())}function K(e,t){let n=j[t];if(e.isFirst){if(n.thumbHidden.value)return;I=t===`horizontal`?D(n.position.value,N.lang.rtl):n.position.value,C.value=!0}else if(!C.value)return;e.isFinal&&(C.value=!1);let r=w[t],i=(n.size.value-A[t].value)/(A[t+`Inner`].value-n.thumbSize.value),a=e.distance[r.dist],o=(e.direction===r.dir?1:-1)*(t===`horizontal`&&N.lang.rtl?-1:1),s=I+o*a*i;Y(t===`horizontal`?D(s,N.lang.rtl):s,t)}function q(e,t){let n=j[t];if(!n.thumbHidden.value){let r=t===`horizontal`&&N.lang.rtl,i=t===`vertical`?s.verticalOffset[0]:s.horizontalOffset[+!!r],a=(r?A.horizontal.value-e.offsetX:e[w[t].offset])-i,o=n.thumbStart.value-i;if(a<o||a>o+n.thumbSize.value){let e=a-n.thumbSize.value/2,i=p(e/(A[t+`Inner`].value-n.thumbSize.value),0,1);Y(r?D(i*Math.max(0,n.size.value-A[t].value),N.lang.rtl):i*Math.max(0,n.size.value-A[t].value),t)}n.ref.value!==null&&n.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function J(){m.value=!0,F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,m.value=!1},s.delay),s.onScroll!==void 0&&V()}function Y(e,t){L.value[w[t].scroll]=e}let X=null;function Z(){X!==null&&clearTimeout(X),X=setTimeout(()=>{X=null,k.value=!0},N.platform.is.ios?50:0)}function Q(){X!==null&&(clearTimeout(X),X=null),k.value=!1}let $=null;c(()=>N.lang.rtl,(e,t)=>{L.value!==null&&_(L.value,D(D(j.horizontal.position.value,t),e))}),n(()=>{$={top:j.vertical.position.value,left:j.horizontal.position.value}}),o(()=>{if($===null)return;let e=L.value;e!==null&&(_(e,$.left),v(e,$.top))}),r(V.cancel),Object.assign(M,{getScrollTarget:()=>L.value,getScroll:B,getScrollPosition:()=>({top:j.vertical.position.value,left:j.horizontal.position.value}),getScrollPercentage:()=>({top:j.vertical.percentage.value,left:j.horizontal.percentage.value}),setScrollPosition:H,setScrollPercentage(e,t,n){if(!O(e,`setScrollPercentage`))return;let r=t*(j[e].size.value-A[e].value);H(e,e===`horizontal`?D(r,N.lang.rtl):r,n)}});let te={scroll:j,thumbVertDir:[[y,e=>{K(e,`vertical`)},void 0,{vertical:!0,...T}]],thumbHorizDir:[[y,e=>{K(e,`horizontal`)},void 0,{horizontal:!0,...T}]],onVerticalMousedown(e){q(e,`vertical`)},onHorizontalMousedown(e){q(e,`horizontal`)}};return()=>t(`div`,{class:R.value,onMouseenter:Z,onMouseleave:Q},[t(`div`,{ref:L,class:`q-scrollarea__container scroll relative-position fit hide-scrollbar`,tabindex:ee.value},[t(`div`,{class:`q-scrollarea__content absolute`,style:z.value},g(l.default,[t(b,{debounce:0,onResize:G})])),t(x,{axis:`both`,onScroll:W})]),t(b,{debounce:0,onResize:U}),t(S,{store:te,barStyle:s.barStyle,verticalBarStyle:s.verticalBarStyle,horizontalBarStyle:s.horizontalBarStyle})])}});export{k as t};

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.