1import{r as c,B as s,u as d,j as a,a as B,b as h,c as m,D as p,d as f}from"./index.3bHSf9gi.js";function g(l){const{disabled:e,element:t,widgetMgr:n,fragmentId:r}=l,i=t.shortcut?t.shortcut:void 0;let o=s.SECONDARY;t.type==="primary"?o=s.PRIMARY:t.type==="tertiary"&&(o=s.TERTIARY);const u=c.useCallback(()=>{e||n.setTriggerValue(t,{fromUi:!0},r)},[e,n,t,r]);return d({shortcut:i,disabled:e,onActivate:u}),a(f,{className:"stButton","data-testid":"stButton",children:a(B,{help:t.help,containerWidth:!0,children:a(h,{kind:o,size:m.SMALL,disabled:e,containerWidth:!0,onClick:u,children:a(p,{icon:t.icon,label:t.label,shortcut:i})})})})}const R=c.memo(g);export{R as default};
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.