import{JSUtils as n,DataType as o}from"@sankhyalabs/core";function e(e){const i=null==e?void 0:e.getSelectionInfo();if(null==i?void 0:i.isAllRecords())return[];const l=[],r=null==i?void 0:i.records;return(null==r?void 0:r.length)>0&&r.forEach((({__record__id__:i})=>{if(!e.isNewRecord(i)){if(!n.isBase64(i))return void l.push({name:"__record__id__",type:o.TEXT,value:i});const r=JSON.parse(window.atob(i));Object.entries(r).forEach((([n,o])=>{const i=null==e?void 0:e.getField(n);null!=i&&l.push(Object.assign({name:n,type:i.dataType},o))}))}})),l}export{e as g}