@clickview/exchange 0.4.0-rc.1 → 0.4.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[442],{85949:(e,a,t)=>{t.d(a,{Y:()=>o});var i=t(35223),r=t(73818),l=t(82329);function o(e,a){return function(t){if(!a)return[];var o="preview"===e;return[{label:o?"Add video":"",tooltip:o?"":"Add video",svgName:i.vn.AddVideo,className:o?"btn btn-dark mr-2":"",button:!0,appLink:{application:l.O.TV,action:r.e.Tv.ADD,args:[a.code,t.id]}},{label:"Edit video",className:"",appLink:{application:l.O.TV,action:r.e.Tv.ADD,args:[a.code,t.id]}}]}}},70442:(e,a,t)=>{t.r(a),t.d(a,{TvPreviewView:()=>f});var i=t(5353),r=t(20354),l=t(21132),o=t(39151),n=t(32735),s=t(91233),c=t(31949),p=t(97395),d=t(74462),u=t(57264),m=t(85949),g=t(23455),v=t(8519);function f(e){var a=r.a.useBasicFetch(i.i.region(e.region)),t=r.a.useBasicFetch(o.L.config()),f=r.a.useBasicFetch(i.i.program(e.id)),b=r.a.useBasicFetch(c.N.currentUser());(0,v.e)(a,!0),(0,g.h)(f.statusCode);var h=a.hasCompleted&&f.hasCompleted&&t.hasCompleted&&b.hasCompleted,C=h&&function(e){var a=e.currentUser,t=e.region,i=e.config,r=e.program,l=i.tvPreviewUrls[t.code],o=r.globalId.replace(/-/g,""),n=p._.safeUrlConcat(l,"/thumbnail/".concat(o,".jpg")),s=p._.safeUrlConcat(l,"/144p/".concat(o.toUpperCase(),"_144p.mp4")),c=p._.safeUrlConcat(l,"/subtitle/".concat(o.toUpperCase(),".srt")),d=p._.urlBuilder(p._.safeUrlConcat(i.playerApiUrl,"/api/srt-to-vtt"),{url:c});return{videoId:null,episodeNumber:0,seriesName:null,mediaId:null,mediaType:null,ratingCode:null,region:a.instanceRegion,seasonNumber:null,viewerId:a.id,viewerCustomerId:a.customerId,files:{fileToken:"",progressive:[{mimeType:"video/mp4",profile:"144",url:s}]},chapters:{list:[]},instanceRegion:a.instanceRegion,localCacheAddresses:[],posterUrl:n,resources:{list:[]},settings:{showSubtitles:!1,playbackProfile:"144",playbackProfileLocalCache:"144",playbackSubtitleSizeDefault:"medium"},subtitles:{list:[{url:d,isDefault:!1,language:"en-AU",mimeType:"text/vtt",label:"English"}]},title:r.title}}({currentUser:b.data,region:a.data,config:t.data,program:f.data}),w=(0,m.Y)("preview",a.data);return n.createElement(l.G,{closePopup:e.closePopup,showLoadingSpinner:!h,size:"lg",bodyClassName:"p-0 overflow-hidden rounded-lg position-relative"},h&&n.createElement(n.Fragment,null,n.createElement(s.L,{viewKey:null,offlinePlaybackObject:C,playerApi:new URL(t.data.playerApiUrl),autoplay:!0,hotkeyElQuerySelector:"body",startTime:e.startTime||0}),n.createElement(d.d,{program:f.data,title:f.data.title,description:f.data.description,getVideoActions:w}),n.createElement(u.$,{closePopup:e.closePopup})))}}}]);
1
+ "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[442],{85949:(e,a,t)=>{t.d(a,{Y:()=>o});var i=t(35223),r=t(73818),l=t(82329);function o(e,a){return function(t){if(!a)return[];var o="preview"===e;return[{label:o?"Add video":"",tooltip:o?"":"Add video",svgName:i.vn.AddVideo,className:o?"btn btn-dark mr-2":"",button:!0,appLink:{application:l.O.TV,action:r.e.Tv.ADD,args:[a.code,t.id]}},{label:"Edit video",className:"",appLink:{application:l.O.TV,action:r.e.Tv.ADD,args:[a.code,t.id]}}]}}},70442:(e,a,t)=>{t.r(a),t.d(a,{TvPreviewView:()=>f});var i=t(5353),r=t(20354),l=t(21132),o=t(39151),n=t(32735),s=t(74115),c=t(31949),p=t(97395),d=t(74462),u=t(57264),m=t(85949),g=t(23455),v=t(8519);function f(e){var a=r.a.useBasicFetch(i.i.region(e.region)),t=r.a.useBasicFetch(o.L.config()),f=r.a.useBasicFetch(i.i.program(e.id)),b=r.a.useBasicFetch(c.N.currentUser());(0,v.e)(a,!0),(0,g.h)(f.statusCode);var h=a.hasCompleted&&f.hasCompleted&&t.hasCompleted&&b.hasCompleted,C=h&&function(e){var a=e.currentUser,t=e.region,i=e.config,r=e.program,l=i.tvPreviewUrls[t.code],o=r.globalId.replace(/-/g,""),n=p._.safeUrlConcat(l,"/thumbnail/".concat(o,".jpg")),s=p._.safeUrlConcat(l,"/144p/".concat(o.toUpperCase(),"_144p.mp4")),c=p._.safeUrlConcat(l,"/subtitle/".concat(o.toUpperCase(),".srt")),d=p._.urlBuilder(p._.safeUrlConcat(i.playerApiUrl,"/api/srt-to-vtt"),{url:c});return{videoId:null,episodeNumber:0,seriesName:null,mediaId:null,mediaType:null,ratingCode:null,region:a.instanceRegion,seasonNumber:null,viewerId:a.id,viewerCustomerId:a.customerId,files:{fileToken:"",progressive:[{mimeType:"video/mp4",profile:"144",url:s}]},chapters:{list:[]},instanceRegion:a.instanceRegion,localCacheAddresses:[],posterUrl:n,resources:{list:[]},settings:{showSubtitles:!1,playbackProfile:"144",playbackProfileLocalCache:"144",playbackSubtitleSizeDefault:"medium"},subtitles:{list:[{url:d,isDefault:!1,language:"en-AU",mimeType:"text/vtt",label:"English"}]},title:r.title}}({currentUser:b.data,region:a.data,config:t.data,program:f.data}),w=(0,m.Y)("preview",a.data);return n.createElement(l.G,{closePopup:e.closePopup,showLoadingSpinner:!h,size:"lg",bodyClassName:"p-0 overflow-hidden rounded-lg position-relative"},h&&n.createElement(n.Fragment,null,n.createElement(s.L,{viewKey:null,offlinePlaybackObject:C,playerApi:new URL(t.data.playerApiUrl),autoplay:!0,hotkeyElQuerySelector:"body",startTime:e.startTime||0}),n.createElement(d.d,{program:f.data,title:f.data.title,description:f.data.description,getVideoActions:w}),n.createElement(u.$,{closePopup:e.closePopup})))}}}]);