1"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8576],{98576:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(14206),a=n.n(o);const l={name:"nx-download-bc-asset",components:{NxIcon:n(4797).Z},props:{name:{type:String},url:{type:String},svg:{type:String},mimeType:{type:String,default:"video/mp4"}},data:()=>({loading:!1}),mounted(){},computed:{icon(){return this.loading?"spinner":"download"},label(){return this.name.toLowerCase().replace(/(\s|\.|\|)/g,"_").substr(0,50).replace(/_+/g,"_")}},methods:{download(){this.loading||(this.loading=!0,a().get(this.url,{responseType:"blob"}).then(e=>{this.loading=!1;const t=new Blob([e.data],{type:this.mimeType}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=this.label,n.click(),URL.revokeObjectURL(n.href)}).catch(console.error))}}},s=(0,n(40810).Z)(l,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("a",{staticClass:"icon download",class:{loading:this.loading},attrs:{title:e.name},on:{click:function(t){return t.preventDefault(),e.download()}}},[t("nx-icon",{attrs:{icon:e.icon}})],1)},[],!1,null,null,null).exports}}]);
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.