export const __webpack_esm_id__=23359;export const __webpack_esm_ids__=[23359,34064,65875];export const __webpack_esm_modules__={23359(e,t,r){var n=r(88480),o=r(65875),s=r(34064),l=r(71315);const c={buttonStyle:"position: absolute; top: 0; right: 0; margin-right: 24px"},i=l.I.logger;function u(e,t){const r=(0,n.A)().use(o.f).use(s.A,c);return{renderMarkdown:(l,u,a=!0)=>{try{const i=(e=>e?(0,n.A)().use(o.f,e).use(s.A,_.merge({},c,e)):r)(u).render(l);return a?e.trustAsHtml(i):e.trustAsHtml(t(i))}catch(r){return i.error("Error rendering markdown:",r),e.trustAsHtml(a?l:t(l))}}}}angular.module("graphdb.framework.core.services.markdown-service",["ngSanitize"]).service("MarkdownService",u),u.$inject=["$sce","$sanitize"]},65875(e,t,r){r.d(t,{f:()=>s});const n={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,t){return t=_.merge({},n,t),(...r)=>{const[n,o]=r,s=n[o],l=n[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),c=e(...r);return"fence"===s.type&&c.trim()?`<div style="position: relative">\n                        ${c}\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="${l}">\n                        </copy-to-clipboard>\n                    </div>`:c}}const s=(e,t)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,t),e.renderer.rules.fence=o(e.renderer.rules.fence,t)}},34064(e,t,r){r.d(t,{A:()=>s});const n={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,t){return t=_.merge({},n,t),(...r)=>{const[n,o]=r,s=n[o],l=n[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),c=e(...r);return"fence"===s.type&&"sparql"===s.info&&c.trim()?`<div style="position: relative">\n                        ${c}\n                        <open-in-sparql-editor\n                            style="${t.buttonStyle}"\n                            class="${t.buttonClass}"\n                            execute-query="${t.executeQuery}"\n                            repository-id="${t.repositoryId}"\n                            query="${l}">\n                        </open-in-sparql-editor>\n                    </div>`:c}}const s=(e,t)=>{e.renderer.rules.code_block=o(e.renderer.rules.code_block,t),e.renderer.rules.fence=o(e.renderer.rules.fence,t)}}};
//# sourceMappingURL=23359.3ca6429dbbd07ce5c004.bundle.js.map