function t(t,n){const o=i(t);const e=r(o,t);function u(t,n){var o,e;return t[n]||((o=t.attrs)===null||o===void 0?void 0:o[n])||((e=t.hostEl)===null||e===void 0?void 0:e.getAttribute(n))}function i(t){const o={href:"a",onclick:"button",type:"button"};const e=Object.keys(o).find((n=>u(t,n)));return o[e]||n}function r(t,n){const o=t==="a";const e=t==="button";return Object.assign({type:e?u(n,"type")||"button":undefined,disabled:e?n.disabled:undefined},o&&n.disabled&&{"aria-disabled":"true",tabindex:-1})}return{rootTag:o,buttonOrLinkAttrs:e}}export{t as g};
//# sourceMappingURL=p-d5e338ef.js.map