diff --git a/footnote-79e2a367b53b791240c3504826b87b2787c9d197d77cd422969d592aae9cf23b.br.js.download b/footnote-79e2a367b53b791240c3504826b87b2787c9d197d77cd422969d592aae9cf23b.br.js.download new file mode 100644 index 00000000..3cab6739 --- /dev/null +++ b/footnote-79e2a367b53b791240c3504826b87b2787c9d197d77cd422969d592aae9cf23b.br.js.download @@ -0,0 +1,21 @@ +define("discourse/plugins/footnote/initializers/inline-footnotes",["exports","@popperjs/core","discourse/lib/plugin-api","discourse-common/lib/icon-library"],(function(t,o,e,n){"use strict" +let i +function r(t){const e=document.getElementById("footnote-tooltip"),n=e?.dataset.footnoteId,r=t.target,s=r.dataset.footnoteId +if(i?.destroy(),e?.removeAttribute("data-show"),e?.removeAttribute("data-footnote-id"),!t.target.classList.contains("expand-footnote"))return +if(t.preventDefault(),t.stopPropagation(),n===s)return +const d=e.querySelector(".footnote-tooltip-content"),a=r.closest(".cooked").querySelector(s) +d.innerHTML=a.innerHTML,e.dataset.show="",e.dataset.footnoteId=s,i?.destroy(),i=(0,o.createPopper)(r,e,{modifiers:[{name:"arrow",options:{element:e.querySelector("#arrow")}},{name:"preventOverflow",options:{altAxis:!0,padding:5}},{name:"offset",options:{offset:[0,12]}}]})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0 +t.default={name:"inline-footnotes",initialize(t){t.lookup("service:site-settings").display_footnotes_inline&&(document.body.append(function(){const t=document.createElement("template") +return t.innerHTML='\n