UNPKG

graphdb-workbench

Version:
2 lines 1.04 kB
export const __webpack_id__=89598;export const __webpack_ids__=[89598];export const __webpack_modules__={89598:(e,t,o)=>{o.r(t),o.d(t,{markdownCodeCopyPlugin:()=>l});const n={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function r(e,t){return t=_.merge({},n,t),(...o)=>{const[n,r]=o,l=n[r],c=n[r].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),s=e(...o);return"fence"===l.type&&s.trim()?`<div style="position: relative">\n ${s}\n <copy-to-clipboard\n style="${t.buttonStyle}"\n class="${t.buttonClass}"\n tooltip-text="ttyg.chat_panel.btn.copy_sparql.tooltip"\n text-to-copy="${c}">\n </copy-to-clipboard>\n </div>`:s}}const l=(e,t)=>{e.renderer.rules.code_block=r(e.renderer.rules.code_block,t),e.renderer.rules.fence=r(e.renderer.rules.fence,t)}}}; //# sourceMappingURL=89598.021fca850ed510b75132.bundle.js.map