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