PageSourceSearch

https://cartervintage.com/_nuxt/FY515L_A.js

js cartervintage.com collected 2026-09-26 06:22:02 UTC 2,546 bytes, 1 lines download raw bytes

1import{_ as S,r as c,ag as x,M as C,o as i,j as L,c as h,n as p,a as y,U as b,V as w,T as u,bo as M,y as _}from"./Dsf2FDuq.js";const W=["aria-label","onKeydown"],E={__name:"SHorizontalScroll",props:{isFullWidth:{type:Boolean,default:!0},resetScroll:{type:Boolean,default:!1},condensed:{type:Boolean,default:!1},justifyCenter:{type:Boolean,default:!1},withButtonScroll:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},setup(l){const g=l,a=c({left:0,x:0}),t=c(null),o=c(null);x(()=>g.resetScroll,()=>{a.value={left:0,x:0},o.value.scrollLeft=0}),C(()=>{a.value.left=0,a.value.x=0});function d(e){const n=e.clientX-a.value.x;o.value.scrollLeft=a.value.left-n}function s(){t.value.removeEventListener("mousemove",d),t.value.removeEventListener("mouseup",s),t.value.style.cursor="grab",t.value.style.removeProperty("user-select")}function B(e){t.value.style.cursor="grabbing",t.value.style.userSelect="none",o.value&&(a.value={left:o.value.scrollLeft,x:e.clientX}),t.value.addEventListener("mousemove",d),t.value.addEventListener("mouseup",s)}function k(e){e.detail!==0&&Math.abs(a.value.x-e.clientX)>5&&(e.preventDefault(),e.stopPropagation())}function f(){var r;const e=o.value;if(!e)return 0;const n=(r=e.children[0])==null?void 0:r.offsetWidth;return n?3*n:Math.round(e.clientWidth*.8)}function v(){var e;(e=o.value)==null||e.scrollBy({left:-f(),top:0,behavior:"smooth"})}function m(){var e;(e=o.value)==null||e.scrollBy({left:f(),top:0,behavior:"smooth"})}return(e,n)=>{const r=_;return i(),L("div",{class:b(l.isFullWidth?"scroller":""),style:{"max-width":"100%",position:"relative"}},[l.withButtonScroll?(i(),h(r,{key:0,class:"scroll-button left q-ml-sm",icon:"mdi-chevron-left","aria-label":`Scroll ${l.ariaLabel} backward`,size:"sm",round:"",onClick:v,variant:"secondary"},null,8,["aria-label"])):p("",!0),y("div",{ref_key:"scrollContainer",ref:t,class:"scroll-container",onClickCapture:k,onMousedownCapture:u(B,["stop"]),onMouseleave:s},[y("div",{ref_key:"scrollingWrapper",ref:o,class:b(["scrolling-wrapper",{condensed:l.condensed,"justify-center":l.justifyCenter}]),role:"region",tabindex:"0","aria-label":l.ariaLabel,onKeydown:[w(u(v,["prevent"]),["left"]),w(u(m,["prevent"]),["right"])]},[M(e.$slots,"default",{},void 0,!0)],42,W)],544),l.withButtonScroll?(i(),h(r,{key:1,class:"scroll-button right q-mr-sm",icon:"mdi-chevron-right","aria-label":`Scroll ${l.ariaLabel} forward`,round:"",size:"sm",variant:"secondary",onClick:m},null,8,["aria-label"])):p("",!0)],2)}}},z=S(E,[["__scopeId","data-v-6b820439"]]);export{z as _};

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.