"use strict";(self.webpackChunk_stlite_desktop=self.webpackChunk_stlite_desktop||[]).push([[1189],{71189:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});i(5057);var s=i(44088),l=i(92649),d=i(38830),n=i(29968),a=i(96266);const r=function(e){const{disabled:t,element:i,widgetMgr:r,width:c,fragmentId:h}=e,o={width:c},u="primary"===i.type?s.nW.PRIMARY:s.nW.SECONDARY,p=!i.help||c;return(0,a.jsx)("div",{className:"stButton","data-testid":"stButton",style:o,children:(0,a.jsx)(l.t,{help:i.help,children:(0,a.jsx)(d.ZP,{kind:u,size:s.V5.SMALL,disabled:t,fluidWidth:!!i.useContainerWidth&&p,onClick:()=>r.setTriggerValue(i,{fromUi:!0},h),children:(0,a.jsx)(n.D,{icon:i.icon,label:i.label})})})})}}}]);