1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CollectionContents-hv6bFn3r.js","assets/index-sUPB-bMu.js","assets/index-CjsJg3P0.css","assets/InfoTag-AnNNVod3.js","assets/InfoTag-DYhmsf9k.css","assets/CollectionContents-C3OYpxlf.css"])))=>i.map(i=>d[i]); 2import{_ as p,b as a,c,o as i,a as n,g as t,k as E,w as l,Z as _,t as d,e as h,T as w,n as C,aE as b,p as A}from"./index-sUPB-bMu.js";import I from"./EmbedPlayer-BGwwtTMD.js";import S from"./InfoTag-AnNNVod3.js";const M={name:"WatchSkeleton"},P={class:"watch-skeleton"},N={class:"watch-skeleton__content"},T={class:"player"},$={class:"info"},O={class:"info__block"};function W(o,m,u,f,e,r){const s=a("SkeletonElement");return i(),c("div",P,[n("div",N,[n("div",T,[t(s,{class:"player__element"})]),n("div",$,[n("div",O,[t(s,{class:"info__label"}),t(s,{class:"info__title"})]),t(s,{class:"info__description"}),t(s,{class:"info__description"})])])])}const x=p(M,[["render",W],["__scopeId","data-v-f04e6707"]]),B=E(()=>A(()=>import("./CollectionContents-hv6bFn3r.js"),__vite__mapDeps([0,1,2,3,4,5]))),D={name:"WatchContent",components:{InfoTag:S,EmbedPlayer:I,WatchSkeleton:x,CollectionContents:B},data(){return{content:null,feedbackMessage:null}},computed:{contentId(){return Number(this.$route.params.id)},isLoading(){return!this.content&&!this.feedbackMessage},playerData(){return!this.content||!this.contentService||!this.content.codigo?null:{service:this.contentService,code:this.content.codigo}},collectionId(){return Number(this.$route.query.collection)},contentService(){switch(this.content.tipoConteudo){case"video_vimeo":return"VIMEO";case"video_youtube":return"YOUTUBE";default:return null}}},watch:{contentId(){this.bootstrapPage()}},created(){this.content&&this.$useHead({title:this.content.titulo,meta:[{vmid:"description",name:"description",content:this.content.descricao||""},{vmid:"og:title",property:"og:title",content:this.content.titulo},{vmid:"og:site_name",property:"og:site_name",content:this.content.titulo},{vmid:"og:url",property:"og:url",content:`${window.location.origin}/play/video/${this.content.id}`},{vmid:"og:description",property:"og:description",content:this.content.descricao||""},{vmid:"twitter:card",name:"twitter:card",content:this.content.descricao||""},{vmid:"twitter:site",name:"twitter:site",content:`${window.location.origin}/play/video/${this.content.id}`},{vmid:"twitter:title",name:"twitter:title",content:this.content.titulo},{vmid:"twitter:description",name:"twitter:description",content:this.content.descricao||""},{vmid:"name",itemprop:"name",content:this.content.titulo},{vmid:"description",itemprop:"description",content:this.content.descricao||""}]})},mounted(){this.bootstrapPage()},methods:{async bootstrapPage(){this.resetData();try{const o=await b.getContentData(this.contentId);this.checkContent(o)}catch{this.feedbackMessage={type:"error",message:this.$t("INPEACE_PLAY.WATCH.MESSAGE.REQUEST_ERROR")}}},checkContent(o){if("error"in o.data||!o.data.planoAssinaturaConteudo.codigo){this.feedbackMessage={type:"warning",message:this.$t("INPEACE_PLAY.WATCH.MESSAGE.NO_CONTENT")};return}if(o.data.planoAssinaturaConteudo.flagEmBreve){this.feedbackMessage={type:"warning",message:this.$t("INPEACE_PLAY.WATCH.MESSAGE.COMING_SOON")};return}this.content={...o.data.planoAssinaturaConteudo}},resetData(){this.feedbackMessage=null,this.content=null}}},L={class:"watch-content"},V={key:0,class:"watch-content__loading"},R={key:1,class:"watch-content__feedback"},G={key:2,class:"watch-content__content"},H={class:"embed-player"},Y={class:"data"},U={class:"data__block"},q={key:0,class:"data__duration"},z={class:"data__title"},Q={class:"data__description"},Z={key:0,class:"collection-content"};function j(o,m,u,f,e,r){const s=a("WatchSkeleton"),g=a("AlertBox"),v=a("EmbedPlayer"),k=a("InfoTag"),y=a("CollectionContents");return i(),c("div",L,[n("div",{class:C(["watch-content__inner",e.feedbackMessage?"container":"container-fluid"])},[t(w,{name:"slide-fade",mode:"out-in"},{default:l(()=>[r.isLoading?(i(),c("div",V,[t(s)])):e.feedbackMessage?(i(),c("div",R,[t(g,{type:e.feedbackMessage.type},{default:l(()=>[_(d(e.feedbackMessage.message),1)]),_:1},8,["type"])])):(i(),c("div",G,[n("div",H,[t(v,{data:r.playerData},null,8,["data"])]),n("div",Y,[n("div",U,[e.content.duracao?(i(),c("div",q,[t(k,{transparent:!0},{default:l(()=>[_(d(e.content.duracao),1)]),_:1})])):h("",!0),n("h1",z,d(e.content.titulo),1)]),n("p",Q,d(e.content.descricao),1)]),r.collectionId?(i(),c("div",Z,[t(y,{"collection-id":r.collectionId,"watching-id":e.content.id},null,8,["collection-id","watching-id"])])):h("",!0)]))]),_:1})],2)])}const X=p(D,[["render",j],["__scopeId","data-v-9ffebac7"]]);export{X as default};
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.