1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[1102],{51102:function(e,i,t){t.r(i),t.d(i,{default:function(){return f}});var o=t(20641),s=t(90033);const n={class:"public-video"},a={key:1,class:"public-video__empty"},l={class:"icon is-large mb-3"},d={class:"is-size-5 mb-2"},c={class:"public-video__empty-sub"};function r(e,i,t,r,u,h){const m=(0,o.g2)("b-loading"),p=(0,o.g2)("DriveLightbox"),b=(0,o.g2)("font-awesome-icon");return(0,o.uX)(),(0,o.CE)("div",n,[(0,o.bF)(m,{"is-full-page":!0,"model-value":u.isLoading},null,8,["model-value"]),u.item?((0,o.uX)(),(0,o.Wv)(p,{key:0,active:!0,bare:"",items:[u.item],index:0,"can-share":()=>!0,"can-edit":()=>!1,"src-resolver":h.srcResolver,onAction:h.handleAction},null,8,["items","src-resolver","onAction"])):u.isLoading?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",a,[(0,o.Lk)("span",l,[(0,o.bF)(b,{icon:"fa-light fa-triangle-exclamation",size:"3x"})]),(0,o.Lk)("h1",d,(0,s.v_)(e.$t("This link is no longer available")),1),(0,o.Lk)("p",c,(0,s.v_)(e.$t("The shared file may have been removed or the link revoked.")),1)]))])}t(14603),t(47566),t(98721);var u=t(66288),h=t(95256),m=t(28782);function p(e){return e&&e.includes("/media/")?m.ze+"/media/"+e.split("/media/").pop():e}var b={name:"PublicVideo",components:{DriveLightbox:u.A},data(){return{isLoading:!1,item:null,isDownloading:!1}},created(){this.fetchVideo()},methods:{fetchVideo(){const e=this.$route.params.slugGo;e&&(this.isLoading=!0,this.$http.plain.get("/get_public_drive_anonymous/"+e).then(i=>{const t=i.data;this.item={id:e,title:t.title,media:{mimeType:t.mimeType,contentUrl:t.url}},t.title&&(document.title=t.title)}).catch(e=>{console.log(e),this.item=null}).finally(()=>{this.isLoading=!1}))},srcResolver(e){return e?.media?.contentUrl??null},handleAction({type:e,row:i}){"share"===e?this.shareLink():"embed"===e?this.copyEmbedCode(i):"download"===e&&this.downloadFile(i)},copyEmbedCode(e){(0,h.lW)((0,h.ko)(this.$route.params.slugGo,e.title)),this.$buefy.toast.open({message:this.$t("Embed code copied to clipboard"),type:"is-success",duration:1500})},shareLink(){(0,h.lW)(h.fq+this.$route.params.slugGo),this.$buefy.toast.open({message:this.$t("urlCopiedToClipboard"),type:"is-success",duration:1500})},downloadFile(e){const i=this.srcResolver(e);i&&!this.isDownloading&&(this.isDownloading=!0,fetch(p(i)).then(e=>e.blob()).then(i=>{const t=window.URL.createObjectURL(i),o=document.createElement("a");o.href=t,o.setAttribute("download",e.title||"video"),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(t)}).catch(e=>{console.log(e),this.$buefy.toast.open({message:this.$t("Could not download file"),type:"is-danger"})}).finally(()=>{this.isDownloading=!1}))}}},g=t(66262);const v=(0,g.A)(b,[["render",r],["__scopeId","data-v-f10aaea4"]]);var f=v}}]);
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.