@forbespro/lead-agent
Version:
Lead Chat Agent React Component
2 lines (1 loc) • 793 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index125.js");function u(e,n){const i=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=String(n.identifier).toUpperCase(),f=s.normalizeUri(t.toLowerCase()),p=e.footnoteOrder.indexOf(t);let r,o=e.footnoteCounts.get(t);o===void 0?(o=0,e.footnoteOrder.push(t),r=e.footnoteOrder.length):r=p+1,o+=1,e.footnoteCounts.set(t,o);const c={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+f,id:i+"fnref-"+f+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(r)}]};e.patch(n,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(n,l),e.applyData(n,l)}exports.footnoteReference=u;