"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[9801,689],{689:function(r,o,e){e.r(o),e.d(o,{JSCollectionActionRunJSContext:function(){return t}});var n=e(72004),s=e.n(n),l=e(12444),u=e.n(l),c=e(31996),a=e.n(c),d=e(26037),i=e.n(d),m=e(67946),t=function(b){a()(_,b);var C=i()(_);function _(){return u()(this,_),C.apply(this,arguments)}return s()(_)}(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"})},29801:function(r,o,e){e.r(o);var n=e(689),s={contexts:[n.JSCollectionActionRunJSContext],prefix:"sn-act-iterate",label:"Iterate selected rows",description:"Loop through selected rows and process each record",locales:{"zh-CN":{label:"\u904D\u5386\u9009\u4E2D\u884C",description:"\u904D\u5386\u9009\u4E2D\u884C\u5E76\u5904\u7406\u6BCF\u6761\u8BB0\u5F55"}},content:`
const rows = ctx.resource?.getSelectedRows?.() || [];
for (const row of rows) {
  console.log(ctx.t('Selected row:'), row);
}
ctx.message.success(ctx.t('Processed {{count}} rows', { count: rows.length }));
`};o.default=s}}]);
