"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2042,689],{689:function(l,_,e){e.r(_),e.d(_,{JSCollectionActionRunJSContext:function(){return t}});var n=e(72004),s=e.n(n),r=e(12444),u=e.n(r),a=e(31996),c=e.n(a),i=e(26037),d=e.n(i),m=e(67946),t=function(b){c()(o,b);var C=d()(o);function o(){return u()(this,o),C.apply(this,arguments)}return s()(o)}(m.Uo);t.define({label:"JSCollectionAction RunJS context",properties:{resource:`Collection resource instance providing access to selected rows, pagination, and data operations.
      Use ctx.resource.selectedRows to get selected records.
      Use ctx.resource.pagination for page info.`}}),t.define({label:"JS \u96C6\u5408\u52A8\u4F5C RunJS \u4E0A\u4E0B\u6587",properties:{resource:"\u5217\u8868\u8D44\u6E90\uFF08\u5305\u542B\u9009\u4E2D\u884C/\u5206\u9875\u4FE1\u606F\u7B49\uFF09"}},{locale:"zh-CN"})},32042:function(l,_,e){e.r(_);var n=e(689),s={contexts:[n.JSCollectionActionRunJSContext],prefix:"sn-act-selected-count",label:"Selected count",description:"Show number of selected rows in list action",locales:{"zh-CN":{label:"\u9009\u4E2D\u6570\u91CF",description:"\u63D0\u793A\u5F53\u524D\u9009\u4E2D\u884C\u7684\u6570\u91CF"}},content:`
const rows = ctx.resource?.getSelectedRows?.() || [];
if (!rows.length) {
  ctx.message.warning(ctx.t('Please select data'));
} else {
  ctx.message.success(ctx.t('Selected {{count}} rows', { count: rows.length }));
}
`};_.default=s}}]);
