PageSourceSearch

https://bit24.cash/__nuxt/B756xE6l.js

js bit24.cash collected 2026-10-07 17:45:57 UTC 2,133 bytes, 1 lines download raw bytes

1import{d as C,x as k,W as S,at as W,h as i,J as p,i as b,n as h,D as f,m as w,$ as O,y as r,l as a,o as n,_ as T}from"./QJre-PsH.js";const L={key:0,class:"b-chips-group__scroll-btn b-chips-group__scroll-btn--left"},x={key:1,class:"b-chips-group__scroll-btn b-chips-group__scroll-btn--right"},M=C({__name:"BChipsGroup",props:{scrollable:{type:Boolean,default:!1},size:{default:40},hideOverlays:{type:Boolean,default:!1}},setup(t){const l=t,e=r(),c=r(0),u=r(0),d=r(0),m=a(()=>["b-chips-group",{"b-chips-group--scrollable":l.scrollable,"b-chips-group--wrap":!l.scrollable}]),_=a(()=>["b-chips-group__list scrollbar-hide",{"b-chips-group__list--scrollable":l.scrollable,"b-chips-group__list--wrap":!l.scrollable}]),g=a(()=>l.scrollable?Math.abs(c.value)>1:!1),y=a(()=>l.scrollable?Math.abs(c.value-(d.value-u.value))>1:!1),v=a(()=>typeof l.size=="string"?l.size:(l.size||40).toString()),o=()=>{if(!e.value||!l.scrollable)return;const s=e.value;c.value=s.scrollLeft,u.value=s.scrollWidth,d.value=s.clientWidth},z=()=>{if(!e.value)return;const s=e.value.clientWidth/3;e.value.scrollBy({left:s,behavior:"smooth"}),setTimeout(o,100)},B=()=>{if(!e.value)return;const s=e.value.clientWidth/3;e.value.scrollBy({left:-s,behavior:"smooth"}),setTimeout(o,100)};return k(async()=>{l.scrollable&&(await S(),setTimeout(o,50),e.value&&(e.value.addEventListener("scroll",o),new ResizeObserver(()=>{setTimeout(o,50)}).observe(e.value)))}),W(()=>{l.scrollable&&e.value&&setTimeout(o,50)}),(s,N)=>(n(),i("div",{class:p(m.value)},[t.scrollable&&g.value&&!t.hideOverlays?(n(),i("div",L,[b(h,{type:"icon",color:"neutral",emphasis:"low",size:v.value,rounded:"",icon:"icon-right","aria-label":"اسکرول به چپ",onClick:z},null,8,["size"])])):f("",!0),w("div",{ref_key:"scrollContainer",ref:e,class:p(_.value),onScroll:o},[O(s.$slots,"default",{},void 0,!0)],34),t.scrollable&&y.value&&!t.hideOverlays?(n(),i("div",x,[b(h,{type:"icon",color:"neutral",emphasis:"low",size:v.value,rounded:"",icon:"icon-left","aria-label":"اسکرول به راست",onClick:B},null,8,["size"])])):f("",!0)],2))}}),V=T(M,[["__scopeId","data-v-fda5fe63"]]);export{V as B};

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.