"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lodash-unified"),a=require("../../ap-form/utils/set.js"),c=require("../../ap-table/utils.js");function u(e,r,t){if(t)return i.isString(t)?e[t]:t(e,r)}function f(e,r){const t={};return e.forEach((o,n)=>{const s=u(o,n,r);t[s]=o}),t}function l(e,r,t){return e.map((o,n)=>{const s=u(o,n,r);return t[s]??o})}function d(e){let r={};function t(o){for(const n of o)if(n.children?.length)t(n.children);else{const s=c.getFieldProps(n.fieldProps,{});s?.transform&&(r=a.default(r,[n.dataIndex].flat(1),s.transform,!0))}}return t(e),r}exports.arrayToObject=f;exports.getColumnTransformOptions=d;exports.getRowKey=u;exports.updateArrItem=l;
