export const __webpack_esm_id__=95416;export const __webpack_esm_ids__=[23359,34064,65875,95416];export const __webpack_esm_modules__={95416(e,t,n){function r(e,t){return{templateUrl:"js/angular/core/templates/markdown-content/markdown-content.html",restrict:"E",scope:{content:"@",options:"=",trusted:"@"},link:function(n,r){n.markdownContent=void 0;const o=()=>{n.content?"true"===n.trusted?(n.markdownContent=t.renderMarkdown(n.content,n.options),s()):n.markdownContent=t.renderMarkdown(n.content,n.options,!1):n.markdownContent=void 0},s=()=>{n.$evalAsync(()=>{const t=r.find(".markdown-content");e(angular.element(t).contents())(n)})};n.$watch("content",(e,t)=>{e!==t&&o()}),o()}}}n(23359),angular.module("graphdb.framework.core.directives.markdown-content",["graphdb.framework.core.services.markdown-service"]).directive("markdownContent",r),r.$inject=["$compile","MarkdownService"]},23359(e,t,n){var r=n(88480),o=n(65875),s=n(34064),c=n(71315);const l={buttonStyle:"position: absolute; top: 0; right: 0; margin-right: 24px"},i=c.I.logger;function a(e,t){const n=(0,r.A)().use(o.f).use(s.A,l);return{renderMarkdown:(c,a,d=!0)=>{try{const i=(e=>e?(0,r.A)().use(o.f,e).use(s.A,_.merge({},l,e)):n)(a).render(c);return d?e.trustAsHtml(i):e.trustAsHtml(t(i))}catch(n){return i.error("Error rendering markdown:",n),e.trustAsHtml(d?c:t(c))}}}}angular.module("graphdb.framework.core.services.markdown-service",["ngSanitize"]).service("MarkdownService",a),a.$inject=["$sce","$sanitize"]},65875(e,t,n){n.d(t,{f:()=>s});const r={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,t){return t=_.merge({},r,t),(...n)=>{const[r,o]=n,s=r[o],c=r[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),l=e(...n);return"fence"===s.type&&l.trim()?`<div style="position: relative">\n                        ${l}\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>`:l}}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,n){n.d(t,{A:()=>s});const r={buttonStyle:"position: absolute; top: 0; right: 0;",buttonClass:""};function o(e,t){return t=_.merge({},r,t),(...n)=>{const[r,o]=n,s=r[o],c=r[o].content.replaceAll('"',"&quot;").replaceAll("'","&apos;"),l=e(...n);return"fence"===s.type&&"sparql"===s.info&&l.trim()?`<div style="position: relative">\n                        ${l}\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="${c}">\n                        </open-in-sparql-editor>\n                    </div>`:l}}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=95416.b8d29382d87115f4901b.bundle.js.map