import{h}from"./index-2a33b470.js";var messageId=function(e,r){return"".concat(e,"__").concat(r,"-message")};var assignDescription=function(e,r,s){if(!s)return;var a=messageId(e,"helper");if(r)a=messageId(e,"error");return a};var isRequired=function(e,r){if(!e||!r)return;if(r.required===true){e.checkValidity()===false?r.invalid=true:r.invalid=false}};var PdsLabel=function(e){var r=e.classNames,s=e.htmlFor,a=e.text;return h("label",{class:r,htmlFor:s},a)};export{PdsLabel as P,assignDescription as a,isRequired as i,messageId as m};
//# sourceMappingURL=pds-label-31a5848b.js.map