const e=require(`../../constants/protocol.constants.cjs`),t=require(`../../types/circom-data.types.cjs`),n=require(`../utils/external-action.utils.cjs`),r=require(`./getOriginalSender.cjs`);var i=(i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.defaultSignatureData,D)=>{let O=structuredClone(C);return`interactionAddress`in O&&delete O.interactionAddress,{rootHashHinkal:o,erc20TokenAddresses:l,tokenIds:v.map(e=>String(e)),amountChanges:c,inputNullifiers:a,outCommitments:i,encryptedOutputs:d,timeStamp:u.length>0?u[0][0].timeStamp:String(S??``),stealthAddressStructure:y,rootHashAccessToken:s,relay:g,externalAddress:m===void 0?e.zeroAddress:m,externalActionMetadata:h,externalActionId:typeof p==`bigint`?0n:n.getExternalActionIdHash(p),hookData:x||t.defaultHookData,publicSignalCount:f,calldataHash:_,onChainCreation:b,slippageValues:w,hinkalLogicArgs:O,feeStructure:{...T},signatureData:E,originalSender:D??r.getOriginalSender(m??e.zeroAddress,g)}};exports.generateCircomData=i;