1import{_,T as f,$ as y}from"./index.474d7b13.js";import{f as g}from"./faCopy.e034644a.js";import{N as a,D as t,E as s,S as n,G as k,H as o,a0 as u,W as C,U as l,f as r,Q as c,V as w}from"./vue.00f7c436.js";import{c as v}from"./copyToClipboard.8e1d81ba.js";import"./sentry.09480738.js";const T={name:"TmlCodeBlock",components:{TmlAnchor:f},props:{code:String,copyOverride:String,skin:{type:String,default:"light"},noCopy:Boolean,codeHighlight:{type:Boolean,default:!0}},data(){return{faCopy:g.faCopy,showCopy:!1}},mounted(){this.codeHighlight&&y("https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js",()=>{}),window.PR&&window.PR.prettyPrint()},methods:{copyToClipboard(){v(this.copyOverride||this.code),this.showCopy=!0,setTimeout(()=>{this.showCopy=!1},1e3)}}},B={class:"relative"},x={key:0,class:"copied leading-none px-2 py-1 text-sm font-normal"};function b(d,S,e,H,i,p){const m=a("font-awesome-icon"),h=a("tml-anchor");return t(),s("div",{class:o(["code-container relative code-block w-full",{light:e.skin==="light",dark:e.skin==="dark"}])},[n("div",B,[k(d.$slots,"default",{},()=>[n("pre",{class:o({prettyprint:e.codeHighlight,light:e.skin==="light",dark:e.skin==="dark"})},u(e.code.trim()),3)],!0),e.noCopy?c("",!0):(t(),C(h,{key:0,href:"#",class:o(["copier leading-none absolute inline-block p-2 -m-1 rounded-full top-0 right-0",e.skin||"light"]),onClick:p.copyToClipboard},{default:l(()=>[r(w,{name:"slide-right"},{default:l(()=>[i.showCopy?(t(),s("span",x,"Copied")):c("",!0)]),_:1}),r(m,{class:o(["relative",{light:e.skin==="light",dark:e.skin==="dark"}]),icon:i.faCopy},null,8,["class","icon"])]),_:1},8,["class","onClick"]))])],2)}const O=_(T,[["render",b],["__scopeId","data-v-ed827e84"]]);export{O as default}; 2//# sourceMappingURL=TmlCodeBlock.a544a21b.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.