import{filterTruthy as t}from"../../../common/helpers.js";import{getInsertLinkData as o}from"../../../../helpers.js";let composeContainerAttrs=(t,o)=>composeAttribute({"data-id":t?.uid,id:t?.uid,"data-submit-action":o?.afterSubmitAction}),composeAnchorAttrs=(t,e)=>{let{urlData:r}=o("",e?.callbackURL);return composeAttribute({hidden:!0,id:`gp-form-callback-${t?.uid}`,href:r?.href,target:r?.target})},composeFormAttrs=(t,o)=>"success"===o?composeAttribute({id:`gp-form-success-${t?.uid}`}):composeAttribute({id:`gp-form-error-${t?.uid}`}),composePopoverAttrs=t=>composeAttribute({id:`my-popover-${t?.uid}`}),composeAttribute=o=>t(o);export{composeAnchorAttrs,composeAttribute,composeContainerAttrs,composeFormAttrs,composePopoverAttrs};
