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