"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[620],{4714:(e,t,n)=>{n.r(t),n.d(t,{tableActions:()=>r});var o=n(89880),a=n(14429),l=n(41706);const c=o.t(null,void 0,n(61702)),d=o.t(null,void 0,n(80473)),i=o.t(null,void 0,n(85069)),s=o.t(null,void 0,n(33500));function r(e,t){const n=[];n.push(new a.ActionWithStandardIcon({actionId:"Chart.SelectedObject.InsertColumnTable",options:{label:d,statName:"InsertColumnTableSelectedObject",iconId:"Chart.InsertColumnTable",checkable:!1,onExecute:()=>{const n=e.insertCellsUndoCommand(1);t.undoHistory().pushUndoCommand(n)}}})),n.push(new a.ActionWithStandardIcon({actionId:"Chart.SelectedObject.InsertRowTable",options:{label:c,iconId:"Chart.InsertRowTable",statName:"InsertRowTableSelectedObject",checkable:!1,onExecute:()=>{const n=e.insertCellsUndoCommand(0);t.undoHistory().pushUndoCommand(n)}}}));const[o,r]=e.inplaceEditableCellIndexes();return-1!==o&&-1!==r&&(n.length>0&&n.push(new l.Separator),n.push(new a.ActionWithStandardIcon({actionId:"Chart.SelectedObject.RemoveRowTable",options:{label:i,statName:"RemoveRowTableSelectedObject",iconId:"Chart.RemoveRowTable",checkable:!1,disabled:!e.isRemoveCellsAvailable(0),onExecute:()=>{const n=e.removeCellsUndoCommand(0);null!==n&&t.undoHistory().pushUndoCommand(n)}}})),n.push(new a.ActionWithStandardIcon({actionId:"Chart.SelectedObject.RemoveColumnTable",options:{label:s,statName:"RemoveColumnTableSelectedObject",iconId:"Chart.RemoveColumnTable",checkable:!1,disabled:!e.isRemoveCellsAvailable(1),onExecute:()=>{const n=e.removeCellsUndoCommand(1);null!==n&&t.undoHistory().pushUndoCommand(n)}}}))),n}},91974:(e,t,n)=>{n.r(t),n.d(t,{showTableContextMenu:()=>c});var o=n(60709),a=n(31932),l=n(31269);async function c(e,t,n){const c=(0,o.chartWidgetCollectionService)();if(null===c)throw new Error("ChartWidgetCollection should be defined");const d=c.activeChartWidget.value(),{ActionsProvider:i}=await(0,a.actionsProviderModule)(),s=new i(d),r=await s.contextMenuActionsForSources([e]),u=await l.ContextMenuManager.createMenu(r,{},{menuName:"LineToolTableContextMenu"},t);return u.show(n),u}}}]);