'use strict';
import { tableCustomActionPositions } from '../table-models.js';

var __defProp=Object['defineProperty'],__name=(_0x515a38,_0x5a0e71)=>__defProp(_0x515a38,'name',{'value':_0x5a0e71,'configurable':!![]});function shouldShowActionHelper(_0x15a407,_0x269a3f,_0x1bbfe7){const _0x2b8c94=_0x15a407['shouldBeShown']?_0x15a407['shouldBeShown'](_0x269a3f):!![];if(_0x1bbfe7&&_0x269a3f['internalTableColumn']['actionPosition']===_0x15a407['position']&&_0x2b8c94)return _0x15a407['position']!==tableCustomActionPositions['dropdown'];return ![];}__name(shouldShowActionHelper,'shouldShowActionHelper');function onCustomAction(_0x563524,_0x18d026){if(_0x563524['shouldTableRefresh'])_0x18d026?.();}__name(onCustomAction,'onCustomAction');function handleIconActionClick(_0x33b609,_0x52ec8c,_0x94a6cb){_0x33b609['onCellAction']?.(_0x52ec8c),_0x94a6cb({'shouldTableRefresh':!![]});}__name(handleIconActionClick,'handleIconActionClick');function handleTextAction(_0x5b03e4,_0x434d7c,_0x457e62){_0x5b03e4['onCellAction']?.(_0x434d7c),_0x457e62({'shouldTableRefresh':_0x5b03e4['shouldTableRefreshAfter']});}__name(handleTextAction,'handleTextAction');

export { handleIconActionClick, handleTextAction, onCustomAction, shouldShowActionHelper };
