PageSourceSearch

https://fediscience.org/packs/alt_text_badge-CqXIuLlY.js

js fediscience.org collected 2026-10-01 10:18:44 UTC 1,628 bytes, 2 lines download raw bytes

1import{o as e}from"./chunk-CMxvf4Kt.js";import{n as t,t as n}from"./jsx-runtime-SsSjplwM.js";import{a as r,c as i}from"./react-intl-Cop388b4.js";import{Q as a,X as o,rt as s}from"./poll-quu7nqu0.js";import{t as c}from"./classnames-CYxIelk8.js";import{t as l}from"./useSelectableClick-CxMb_Vru.js";var u=e(t()),d=e(c()),f={closeButton:`_comp_alt_text_badge__closeButton`},p=n(),m=[0,4],h={strategy:`fixed`},g=({description:e,className:t})=>{let n=i(),c=(0,u.useId)(),g=`${c}-popover`,_=`${c}-title`,v=(0,u.useRef)(null),y=(0,u.useRef)(null),[b,x]=(0,u.useState)(!1),S=(0,u.useCallback)(()=>{x(e=>!e),setTimeout(()=>{y.current?.focus()},0)},[x]),C=(0,u.useCallback)(()=>{x(!1),v.current?.focus()},[x]),[w,T]=l(C);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`button`,{type:`button`,ref:v,className:(0,d.default)(`media-gallery__alt__label`,t),onClick:S,"aria-expanded":b,"aria-controls":g,"aria-haspopup":`dialog`,children:`ALT`}),(0,p.jsx)(o,{rootClose:!0,onHide:C,show:b,target:v,placement:`top-end`,flip:!0,offset:m,popperConfig:h,children:({props:t})=>(0,p.jsx)(`div`,{...t,className:`hover-card-controller`,children:(0,p.jsxs)(`div`,{className:`info-tooltip dropdown-animation`,role:`dialog`,"aria-labelledby":_,ref:y,id:g,onMouseDown:w,onMouseUp:T,tabIndex:0,children:[(0,p.jsx)(`h4`,{id:_,children:(0,p.jsx)(r,{id:`alt_text_badge.title`,defaultMessage:`Alt text`})}),(0,p.jsx)(a,{title:n.formatMessage({id:`lightbox.close`,defaultMessage:`Close`}),icon:`close`,iconComponent:s,onClick:C,className:f.closeButton}),(0,p.jsx)(`p`,{children:e})]})})})]})};export{g as t};
2//# sourceMappingURL=alt_text_badge-CqXIuLlY.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.