PageSourceSearch

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

js bit24.cash collected 2026-10-07 17:45:33 UTC 3,090 bytes, 1 lines download raw bytes

1import{d as N,M as X,A as $,x as A,V as Y,h as a,J as H,$ as P,i as I,ag as U,j as f,P as M,y as j,l as J,o,m as q,t as u,D as s,b,p as T,n as m}from"./QJre-PsH.js";const F={key:0,class:"b-tooltip__wrapper"},G={ref:"tooltip",class:"b-tooltip__content"},K={key:0,class:"b-tooltip__header"},Q={key:0,class:"b-tooltip__title"},W={key:1,class:"b-tooltip__description"},Z={key:2,class:"b-tooltip__actions"},ee=500,w=10,oe=N({__name:"BTooltip",props:M({modelValue:{type:Boolean},title:{},description:{},closeBtn:{type:Boolean},leadingBtn:{},trailingBtn:{},size:{default:"14"},position:{default:"top"},behavior:{default:"hover"},disabled:{type:Boolean},pressDuration:{default:ee},closeOnOutside:{type:Boolean,default:!0}},{modelValue:{default:!1},modelModifiers:{}}),emits:M(["leading-action","trailing-action","press-open"],["update:modelValue"]),setup(_,{emit:C}){const e=_,p=C,l=X(_,"modelValue"),v=j(null);let n=null,B=0,g=0,r=!1;const S=J(()=>{const t=["b-tooltip--default",`b-tooltip--${e.position}`,`b-tooltip--behavior-${e.behavior}`];switch(e.size){case"16":t.push("b-tooltip--lg");break;case"14":t.push("b-tooltip--md");break;case"12":t.push("b-tooltip--sm");break}return t}),k=()=>{l.value=!e.disabled},i=()=>{l.value=!1,r=!1},c=()=>{n&&(clearTimeout(n),n=null)},V=()=>{e.behavior==="hover"&&k()},D=()=>{e.behavior==="hover"&&i()},E=t=>{e.behavior!=="press"||e.disabled||t.pointerType==="mouse"&&t.button!==0||(c(),r=!1,B=t.clientX,g=t.clientY,n=setTimeout(()=>{n=null,r=!0,k(),p("press-open")},e.pressDuration))},O=t=>{if(e.behavior!=="press"||!n)return;const d=Math.abs(t.clientX-B),L=Math.abs(t.clientY-g);(d>w||L>w)&&c()},h=()=>{e.behavior==="press"&&c()},z=t=>{e.behavior!=="press"||!r||(t.preventDefault(),t.stopPropagation(),r=!1)},y=t=>{if(!l.value||e.behavior!=="press"||!e.closeOnOutside)return;const d=t.target;d&&v.value?.contains(d)||i()},R=()=>{p("leading-action"),i()},x=()=>{p("trailing-action"),i()};return $(()=>e.disabled,t=>{t&&(c(),i())}),A(()=>{document.addEventListener("pointerdown",y,!0)}),Y(()=>{c(),document.removeEventListener("pointerdown",y,!0)}),(t,d)=>(o(),a("div",{ref_key:"rootRef",ref:v,class:H(S.value),onMouseenter:V,onMouseleave:D,onPointerdown:E,onPointermove:O,onPointerup:h,onPointercancel:h,onPointerleave:h,onClickCapture:z},[P(t.$slots,"default",{visible:l.value}),I(U,{name:"b-fade--tooltip"},{default:f(()=>[l.value?(o(),a("div",F,[q("div",G,[e.title||e.closeBtn?(o(),a("div",K,[e.title?(o(),a("span",Q,u(e.title),1)):s("",!0),e.closeBtn?(o(),b(m,{key:1,emphasis:"low",color:"neutral",size:"28",icon:"icon-close","icon-color":"text-de-secondary--txt",type:"icon",onClick:i})):s("",!0)])):s("",!0),e.description?(o(),a("p",W,u(e.description),1)):s("",!0),P(t.$slots,"content"),e.leadingBtn||e.trailingBtn?(o(),a("div",Z,[e.leadingBtn?(o(),b(m,{key:0,emphasis:"high",size:"28",class:"ml-3",onClick:R},{default:f(()=>[T(u(e.leadingBtn),1)]),_:1})):s("",!0),e.trailingBtn?(o(),b(m,{key:1,emphasis:"low",size:"28",onClick:x},{default:f(()=>[T(u(e.trailingBtn),1)]),_:1})):s("",!0)])):s("",!0)],512)])):s("",!0)]),_:3})],34))}});export{oe 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.