"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("lodash-unified"),f=require("vue");require("../../ap-grid/index.js");const a=require("../utils.js"),m=require("../../ap-grid/constants.js");function S(t){return t?.bottom?.length||t?.top?.length}const b=(t,u)=>f.computed(()=>{if(!t.rowSelection)return;const o=t.rowSelection===!0?{}:t.rowSelection,r={sortable:!1,resizable:!1,width:a.pxToNumber(o.columnWidth,60),tooltipValueGetter:o.tooltip?({node:e})=>{if(typeof o.tooltip=="string")return o.tooltip;const i=!e?.selectable,n=!!e?.isSelected();return o.tooltip(n,i,e)}:void 0};let l=o.fixed;if(l===void 0&&(l=u.value.some(e=>e.fixed==="left"||e.fixed===!0)?"left":void 0),r.pinned=l,S(t.summary)){const{cellClassName:e}=t.summary;r.cellClass=({node:i,data:n,colDef:c,rowIndex:s})=>{if(!(!i.rowPinned||!e))return d.isFunction(e)?e(n,c,i.rowPinned,s):e},r.cellRenderer=({data:i})=>i?.[m.ROW_SELECTION_FIELD]}return r});exports.default=b;
