PageSourceSearch

https://www.brighteon.com/_next/static/chunks/2850-e24a72a9374b1180.js

js brighteon.com collected 2026-10-09 23:32:04 UTC 29,930 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2850],{95968:function(e,n,t){t.d(n,{FH:function(){return R},Ml:function(){return Z},Ms:function(){return X},Nk:function(){return D},Oh:function(){return F},Ot:function(){return L},Qz:function(){return P},Th:function(){return z},Uw:function(){return K},Vt:function(){return C},XN:function(){return j},Yf:function(){return M},cP:function(){return k},dV:function(){return T},e5:function(){return A},ej:function(){return B},gF:function(){return U},hz:function(){return E},i4:function(){return _},jC:function(){return S},jH:function(){return N},jM:function(){return G},kK:function(){return I},mA:function(){return J},n9:function(){return y},nK:function(){return O},nu:function(){return V},zy:function(){return w}});var r,i,o,a,c,s,l,u,d=t(51037),h=t(50858),f=t(55818),m=t(85556),v=t(62673),p=t(55539),g=t(72353),x=t(13341),b=t(38497),w=function(e,n){return p.Z.post(b.a2,(0,f._)((0,h._)({},e),{token:n}))},j=function(){return p.Z.get("".concat(b.VR,"/current"))},N=function(){return p.Z.get("".concat(b.VR,"/check-address-status"))},_=function(){return p.Z.get("".concat(b.VR,"/home"))},S=function(e){return p.Z.get("".concat(b.a2,"/").concat(e))},I=function(e){return p.Z.get("".concat(b.TK,"/").concat(e,"/status"))},k=function(e){var n=e.fromDate,t=e.toDate,r=e.filter,i=(0,h._)({},e,(0,g.UG)(r,n,t));return delete i.filter,p.Z.post("".concat(b.VR,"/current-upcoming"),(0,h._)({limit:10},i))},A=function(){return p.Z.get("".concat(b.VR,"/stream-key"))},T=function(e,n){return p.Z.put("".concat(b.a2,"/").concat(e,"/stop"),{forceStopReason:n})},y=function(e,n){return p.Z.post("".concat(b.a2,"/").concat(e,"/stop-and-save"),n)},C=function(e){return p.Z.delete("".concat(b.a2,"/").concat(e))},E=function(e){return p.Z.delete(b.iJ,{data:{livestreamIds:e}})},M=function(e){return p.Z.post("".concat(b.a2,"/").concat(e,"/likes"))},D=function(e){return p.Z.delete("".concat(b.a2,"/").concat(e,"/likes"))},L=(r=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,p.Z.post("".concat(b.a2,"/").concat(e,"/feature"))]})}),function(e){return r.apply(this,arguments)}),U=function(e){return p.Z.delete("".concat(b.a2,"/").concat(e,"/feature"))},O=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return p.Z.get("".concat(b.iJ),{headers:{cookie:e.cookie},params:(0,h._)({},e,n?{}:(0,x.R)())})},Z=function(){return p.Z.get("".concat(b.KZ,"/homepage-livestreams"))},F=function(e){var n=e.cookie,t=e.query;return p.Z.get("".concat(b.iJ,"/subscriptions"),{headers:{cookie:n},params:t})},B=(i=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,v.Z.get("".concat(b.a2,"/").concat(e,"/like-status"))]})}),function(e){return i.apply(this,arguments)}),R=function(e,n){return p.Z.patch("".concat(b.a2,"/").concat(e),n)},V=function(e,n){return p.Z.patch("".concat(b.a2,"/").concat(e,"/change-status"),{liveStreamStatus:n})},J=(o=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,p.Z.post("".concat(b.iJ,"/").concat(e,"/views"))]})}),function(e){return o.apply(this,arguments)}),G=(a=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,p.Z.get("".concat(b.a2,"/upcoming/").concat(e))]})}),function(e){return a.apply(this,arguments)}),z=(c=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,v.Z.get("".concat(b.a2,"/").concat(e,"/subscribe-status"))]})}),function(e){return c.apply(this,arguments)}),P=(s=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,p.Z.post("".concat(b.a2,"/").concat(e,"/subscribe"))]})}),function(e){return s.apply(this,arguments)}),K=(l=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,p.Z.delete("".concat(b.a2,"/").concat(e,"/subscribe"))]})}),function(e){return l.apply(this,arguments)}),X=(u=(0,d._)(function(e){return(0,m.Jh)(this,function(n){return[2,v.Z.get("".concat(b.a2,"/").concat(e))]})}),function(e){return u.apply(this,arguments)})},93567:function(e,n,t){t.d(n,{$V:function(){return j},FW:function(){return S},Ij:function(){return I},KE:function(){return T},OH:function(){return w},Xs:function(){return y},Xt:function(){return b},io:function(){return A},kS:function(){return _},pg:function(){return k},rN:function(){return N}});var r,i,o,a,c,s,l,u,d,h,f=t(51037),m=t(85556),v=t(38497),p=t(55539),g=t(62673),x="/api-v3/public/videos",b=(r=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.post("".concat(v.Af,"/").concat(e,"/likes"))]})}),function(e){return r.apply(this,arguments)}),w=(i=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.delete("".concat(v.Af,"/").concat(e,"/likes"))]})}),function(e){return i.apply(this,arguments)}),j=(o=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.post("".concat(v.Af,"/").concat(e,"/save"))]})}),function(e){return o.apply(this,arguments)}),N=(a=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.delete("".concat(v.Af,"/").concat(e,"/save"))]})}),function(e){return a.apply(this,arguments)}),_=(c=(0,f._)(function(e){var n,t;return(0,m.Jh)(this,function(r){return n=e.id,t=e.cookie,[2,g.Z.get("".concat(x,"/").concat(n),{headers:{Cookie:t}})]})}),function(e){return c.apply(this,arguments)}),S=function(e){var n=e.id,t=e.cookie;return g.Z.get("".concat(x,"/").concat(n,"/related"),{headers:{Cookie:t}})},I=(s=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.post("".concat(v.Af,"/").concat(e,"/increase-download-count"))]})}),function(e){return s.apply(this,arguments)}),k=(l=(0,f._)(function(e,n){return(0,m.Jh)(this,function(t){return[2,g.Z.post("".concat(v.Af,"/").concat(e,"/increase-share-count"),{shareType:n})]})}),function(e,n){return l.apply(this,arguments)}),A=(u=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.get("".concat(v.Af,"/").concat(e,"/like-save-status"))]})}),function(e){return u.apply(this,arguments)}),T=(d=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,g.Z.get("".concat(x,"/").concat(e,"/subtitles"))]})}),function(e){return d.apply(this,arguments)}),y=(h=(0,f._)(function(e){return(0,m.Jh)(this,function(n){return[2,p.Z.get("".concat(v.Af,"/").concat(e,"/stream"))]})}),function(e){return h.apply(this,arguments)})},88926:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(24246);function i(){return(0,r.jsx)("div",{className:"dropdown-item skeleton-item",children:(0,r.jsxs)("div",{className:"Auto Link",children:[(0,r.jsx)("div",{className:"AutoIcon skeleton-icon"}),(0,r.jsx)("div",{className:"AutoLabel",children:(0,r.jsx)("div",{className:"AutoText skeleton-text"})})]})})}t(27378);var o=function(e){return e.isLivestream?(0,r.jsx)("div",{className:"AutoGroup skeleton",children:[0,2].map(function(e){return(0,r.jsx)(i,{},e)})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"AutoGroup skeleton",children:[0,2].map(function(e){return(0,r.jsx)(i,{},e)})}),(0,r.jsx)("div",{className:"AutoGroup skeleton",children:[3,6].map(function(e){return(0,r.jsx)(i,{},e)})}),(0,r.jsx)("div",{className:"AutoGroup skeleton",children:(0,r.jsx)(i,{})})]})}},11217:function(e,n,t){t.d(n,{Z:function(){return V}});var r=t(60053),i=t(24246),o=t(27378),a=t(85965),c=t(79894),s=t.n(c),l=t(34139),u=t(77418),d=t(97283),h=t(7781),f=t(97443),m=t
1(17515),v=t(25433),p=t(55815),g=t(51516),x=t(51037),b=t(85556),w=t(26574),j=t(95968),N=t(9983),_=t(88926),S=t(19783),I=t.n(S),k=t(20369),A=t(45097),T=t(50858),y=t(55818),C=t(77263),E={isLiked:!1,isUpcomingSubscribed:!1,loading:!0,isSubscribed:!1},M=function(e){var n=e.isDropDownOpen,t=e.livestreamId,i=e.toggleDropDownMoreOptions,a=e.channelId,c=(0,r._)((0,o.useState)(E),2),s=c[0],l=c[1],u=I()((0,x._)(function(){var e;return(0,b.Jh)(this,function(n){switch(n.label){case 0:l(function(e){return(0,y._)((0,T._)({},e),{loading:!0})}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,j.ej)(t)];case 2:return e=n.sent().isLiked,l(function(n){return(0,y._)((0,T._)({},n),{isLiked:e,loading:!1})}),[3,4];case 3:return n.sent(),(0,A.ke)("Something went wrong, please try again"),i(),l((0,y._)((0,T._)({},E),{loading:!1})),[3,4];case 4:return[2]}})}),500),d=I()((0,x._)(function(){var e;return(0,b.Jh)(this,function(n){switch(n.label){case 0:l(function(e){return(0,y._)((0,T._)({},e),{loading:!0})}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,j.Th)(t)];case 2:return e=n.sent().isUpcomingSubscribed,l(function(n){return(0,y._)((0,T._)({},n),{isUpcomingSubscribed:e,loading:!1})}),[3,4];case 3:return n.sent(),(0,A.ke)("Something went wrong, please try again"),i(),l((0,y._)((0,T._)({},E),{loading:!1})),[3,4];case 4:return[2]}})}),500),h=I()((0,x._)(function(){var e;return(0,b.Jh)(this,function(n){switch(n.label){case 0:l(function(e){return(0,y._)((0,T._)({},e),{loading:!0})}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,C.t5)(a)];case 2:return e=n.sent().find(function(e){return e.id===a}),l(function(n){return(0,y._)((0,T._)({},n),{isSubscribed:!!e,loading:!1})}),[3,4];case 3:return n.sent(),(0,A.ke)("Something went wrong, please try again"),i(),l(function(e){return(0,y._)((0,T._)({},e),{loading:!1})}),[3,4];case 4:return[2]}})}),500);return(0,o.useEffect)(function(){n&&(u(),d(),h())},[n]),(0,T._)({},s)};function D(e){var n=e.toggleModalShareVideo,t=e.toggleDropDownMoreOptions,r=e.videoId,o=e.title;return(0,i.jsx)(w.Z,{toggle:!1,onClick:function(){t&&t(),n({videoId:r,title:o})},children:(0,i.jsxs)("div",{className:"Auto Link",children:[(0,i.jsx)("div",{className:"AutoIcon",children:(0,i.jsx)("div",{className:"Icon",children:(0,i.jsx)("svg",{children:(0,i.jsx)("use",{href:(0,m.q7)("new-ui/Icon-Share.svg#IconShare")})})})}),(0,i.jsx)("div",{className:"AutoLabel",children:(0,i.jsx)("div",{className:"AutoText",children:"Share"})})]})})}function L(e){var n=e.channel,t=e.isSubscribed,r=e.toggleModalFollowChannel;return e.toggleDropDownMoreOptions,(0,i.jsx)(w.Z,{onClick:function(){return r(n)},toggle:!1,children:(0,i.jsxs)("div",{className:"Auto Link",children:[(0,i.jsx)("div",{className:"AutoIcon",children:(0,i.jsx)("div",{className:"Icon",children:(0,i.jsx)("svg",{children:(0,i.jsx)("use",{href:"".concat(t?(0,m.q7)("new-ui/Icon-Follow.svg#IconFollowOn"):(0,m.q7)("new-ui/Icon-Follow.svg#IconFollow"))})})})}),(0,i.jsx)("div",{className:"AutoLabel",children:(0,i.jsx)("div",{className:"AutoText",children:t?"Unfollow Channel":"Follow This Channel"})})]})})}function U(e){var n=e.livestreamId,t=e.isLiked,a=e.callback,c=e.toggleDropDownMoreOptions,s=(0,r._)((0,o.useState)(t),2),l=s[0],u=s[1],d=I()((0,x._)(function(){var e,t;return(0,b.Jh)(this,function(r){switch(r.label){case 0:if((0,N.MX)())return(0,N.V5)(),[2];r.label=1;case 1:if(r.trys.push([1,8,,9]),!l)return[3,3];return[4,(0,j.Nk)(n)];case 2:return r.sent(),(0,A.jX)("Removed"),[3,5];case 3:return[4,(0,j.Yf)(n)];case 4:r.sent(),(0,A.jX)("Liked"),r.label=5;case 5:if(u(!l),!a)return[3,7];return[4,a()];case 6:r.sent(),r.label=7;case 7:return c&&c(),[3,9];case 8:return(null==(e=r.sent())?void 0:null===(t=e.response)||void 0===t?void 0:t.status)===k.W&&(0,A.xz)({loginTo:"subscribe to channels",ableTo:"subscribe"}),[3,9];case 9:return[2]}})}));return(0,i.jsx)(w.Z,{onClick:function(){return d()},toggle:!1,children:(0,i.jsxs)("div",{className:"Auto Link",children:[(0,i.jsx)("div",{className:"AutoIcon",children:(0,i.jsx)("div",{className:"Icon",children:(0,i.jsx)("svg",{children:(0,i.jsx)("use",{href:"".concat(l?(0,m.q7)("new-ui/Icon-Liked.svg#IconLikeOn"):(0,m.q7)("new-ui/Icon-Liked.svg#IconLike"))})})})}),(0,i.jsx)("div",{className:"AutoLabel",children:(0,i.jsx)("div",{className:"AutoText",children:l?"Remove from Liked videos":"Like video"})})]})})}function O(e){var n=e.livestreamId,t=e.isSubscribed,r=e.callback,o=e.toggleDropDownMoreOptions,a=I()((0,x._)(function(){var e,i;return(0,b.Jh)(this,function(a){switch(a.label){case 0:if((0,N.MX)())return(0,N.V5)(),[2];a.label=1;case 1:if(a.trys.push([1,8,,9]),!t)return[3,3];return[4,(0,j.Uw)(n)];case 2:return a.sent(),(0,A.jX)("Unsubscribed"),[3,5];case 3:return[4,(0,j.Qz)(n)];case 4:a.sent(),(0,A.jX)("Subscribed"),a.label=5;case 5:if(!r)return[3,7];return[4,r()];case 6:a.sent(),a.label=7;case 7:return o&&o(),[3,9];case 8:return(null==(e=a.sent())?void 0:null===(i=e.response)||void 0===i?void 0:i.status)===k.W&&(0,A.xz)({loginTo:"subscribe to livestream",ableTo:"subscribe"}),[3,9];case 9:return[2]}})}));return(0,i.jsx)(w.Z,{onClick:function(){return a()},toggle:!1,children:(0,i.jsxs)("div",{className:"Auto Link",children:[(0,i.jsx)("div",{className:"AutoIcon",children:(0,i.jsx)("div",{className:"Icon",children:(0,i.jsx)("svg",{children:(0,i.jsx)("use",{href:"".concat((0,m.q7)("new-ui/Icon-Notifications.svg#".concat(t?"IconNotificationsOn":"IconNotifications")))})})})}),(0,i.jsx)("div",{className:"AutoLabel",children:(0,i.jsx)("div",{className:"AutoText",children:t?"Remove Notification":"Notify me"})})]})})}function Z(e){var n=e.livestream,t=e.isDropDownOpen,r=e.toggleModalShareVideo,o=e.toggleModalFollowChannel,a=e.toggleDropDownMoreOptions,c=M({isDropDownOpen:t,livestreamId:n.id,toggleDropDownMoreOptions:a,channelId:n.channelId||""}),s=c.isLiked,l=c.loading,u=c.isUpcomingSubscribed,d=c.isSubscribed;return l?(0,i.jsx)(_.Z,{isLivestream:!0}):(0,i.jsxs)("div",{className:"AutoGroup",children:[(0,i.jsx)(L,{channel:{id:n.channelId,name:n.channelName},isSubscribed:d,toggleModalFollowChannel:o,toggleDropDownMoreOptions:a}),(0,i.jsx)(U,{livestreamId:n.id,isLiked:s,toggleDropDownMoreOptions:a}),(0,i.jsx)(D,{toggleModalShareVideo:r,toggleDropDownMoreOptions:a,videoId:n.id,title:n.name}),n.isUpcoming&&(0,i.jsx)(O,{toggleDropDownMoreOptions:a,livestreamId:n.id,isSubscribed:u})]})}function F(e){var n=e.livestream,t=e.toggleModalShareVideo;return(0,i.jsx)(D,{toggleModalShareVideo:t,videoId:n.id,title:n.name})}function B(e){var n=e.isFeaturedLiveStream,t=e.isLive,r=e.isUpcoming,o="",a="";return n?(o="Featured",a="Time Featured"):t?(o="• Live",a="Time Live"):r&&(o="Upcoming",a="Time Upcoming"),o?(0,i.jsx)("span",{className:a,children:o}):null}var R=function(e){var n=e.livestream,t=e.showOwnerInfo,r=void 0===t||t,o=e.isFeaturedLiveStream,a=e.isRecommended;return void 0!==a&&a?(0,i.jsx)("div",{className:"Text",children:(0,i.jsx)("div",{className:"EpisodeInfo",children:(0,i.jsxs)("div",{className:"EpisodeText",children:[(0,i.jsx)("div",{className:"Title2 FS16 FW600",children:(0,i.jsx)(s(),{href:"/live/".concat(n.id),as:"/live/".concat(n.id),className:"Clamp2 FS13 Headline",children:n.name})}),(0,i.jsx)("div",{className:"EpisodeDetails",children:(0,i.jsxs)("div",{className:"EpisodeDetailsText",children:[(0,i.jsx)("div",{className:"Info",children:(0,i.jsx)("div",{className:"Channel MGB10",children:(0,i.jsx)("a",{className:"FS12",href:"/channels/".concat(n.channelShortUrl),children:n.channelName})})}),(0,i.jsx)("div",{className:"Info",children:(0,i.jsxs)("a",{href:"/live/".concat(n.id),className:"Clamp1 FS12",children:["Premieres ",(0,p.Pn)(n.startsAt)]})})]})})]})})}):(0,i.jsx)("div",{className:"Text",children:(0,i.jsxs)("div",{className:"EpisodeInfo",children:[r&&(0,i.jsx)("div",{className:"EpisodeAvatar",children:(0,i.jsx)("div",{className:"Thumb",children:(0,i.jsxs)("a",{href:"/channels/".concat(n.channelShortUrl),children:[(0,i.jsx)("img",{src:n.channelAvatar,alt:n.channelName||"Channel",title:n.channelName,className:"",onError:m.AD}),(0,i.jsx)("div",{className:"ThumbNew ChannelPreview"})]})})}),(0,i.jsxs)("div",{className:"EpisodeText",children:[(0,i.jsx)("div",{className:"Title",children:(0,i.jsx)(s(),{href:"/live/".concat(n.id),as:"/live/".concat(n.id),className:"Clamp2",children:n.name})}),(0,i.jsxs)("div",{className:"EpisodeDetails",children:[r&&(0,i.jsx)("div",{className:"EpisodeDetailsAvatar",children:(0,i.jsx)("div",{className:"Thumb",children:(0,i.jsxs)("a",{href:"/channels/".concat(n.channelShortUrl),children:[(0,i.jsx)("img",{src:n.channelAvatar,alt:n.channelName||"Channel",title:n.channelName,className:"",onError:m.AD}),(0,i.jsx)("div",{className:"ThumbNew ChannelPreview"})]})})}),(0,i.jsxs)("div",{className:"EpisodeDetailsText",children:[r&&(0,i.jsx)("div",{className:"Channel",children:(0,i.jsx)("a",{href:"/channels/".concat(n.channelShortUrl),children:n.channelName})}),(0,i.jsx)("div",{className:"Info",children:(0,i.jsx)("a",{href:"/live/".concat(n.id),className:"Clamp1",children:n.isUpcoming?(0,i.jsxs)("span",{children:["Premieres ",(0,p.Pn)(n.startsAt)]}):(0,i.jsxs)("span",{children:["".concat(n.totalViews>1?"".concat(n.totalViews," views"):"".concat(n.totalViews," view"))," "]})})}),o&&n.description&&(0,i.jsx)("div",{className:"Description featured-description",children:(0,i.jsx)("a",{href:"/live/".concat(n.id),className:"LimitLineDescription",dangerouslySetInnerHTML:{__html:g.Z.sanitize(/<\/?[a-z][\s\S]*>/i.test(n.description)?n.description:(0,f.Z)(n.description))}})})]})]})]})]})})},V=function(e){var n=e.livestream,t=e.showOwnerInfo,c=e.itemIndex,f=e.href,p=e.isFeaturedLiveStream,g=e.isRecommended,x=e.toggleModalShareVideo,b=e.toggleModalFollowChannel,w=(0,r._)((0,o.useState)(!1),2),j=w[0],N=w[1],_=(0,r._)((0,o.useState)(0),2),S=_[0],I=_[1],k=function(){N(!j)},A=(0,a.v9)(h.et);(0,o.useEffect)(function(){I(window.innerWidth)},[]);var T=(0,v.Th)(c,S);return(0,i.jsxs)("div",{className:"Post USN",children:[(0,i.jsx)("div",{className:"Photo",children:(0,i.jsxs)("div",{className:"Thumb",children:[(0,i.jsxs)(s(),{href:"".concat(f),as:"".concat(f),children:[(0,i.jsx)("img",{src:n.thumbnailUrl,alt:n.name,className:"",onError:m.AD}),(0,i.jsx)("div",{className:"ThumbNew"}),(0,i.jsx)(B,{isFeaturedLiveStream:p,isLive:n.isLive,isUpcoming:n.isUpcoming})]}),(0,i.jsxs)(l.Z,{isOpen:j,toggle:k,className:"ButtonIcon PostOptions",title:"More options",children:[(0,i.jsx)(u.Z,{tag:"div",className:"btn-more-actions",children:(0,i.jsx)("div",{className:"Icon",children:(0,i.jsx)("svg",{children:(0,i.jsx)("use",{href:(0,m.q7)("new-ui/Icon-Options.svg#IconOptions")})})})}),(0,i.jsx)(d.Z,{className:"Dropdown DropdownPrimary BoxShadow NoClose USN",end:T,children:A?(0,i.jsx)(Z,{livestream:n,isDropDownOpen:j,toggleModalShareVideo:x,toggleModalFollowChannel:b,toggleDropDownMoreOptions:k}):(0,i.jsx)(F,{livestream:n,toggleModalShareVideo:x})})]})]})}),(0,i.jsx)(R,{livestream:n,showOwnerInfo:t,isFeaturedLiveStream:p,isRecommended:g})]})}},13314:function(e,n,t){t.d(n,{C:function(){return o},t:function(){return i}}),(r=i||(i={})).DIRECT_LINK="direct_link",r.EMBED="embed";var r,i,o={SOCIAL:"Brighteon_social",IO:"Brighteon_IO",TW:"Twitter",FB:"FB",GAB:"GAB",TS:"TS",MAIL:"MAIL",MORE:"MORE",TL:"Telegram"}},61290:function(e,n,t){t.d(n,{Z:function(){return g}});var r=t(50858),i=t(55818),o=t(60053),a=t(24246),c=t(27378),s=t(55815),l=t(45097),u=t(16897),d=t(72353),h=t(81331),f=t(93567),m=t(13314),v=function(e,n,t,r,i){if(!e)return"";var o="https://www.brighteon.com",a="";a=i?"shorts?shortVideoId=".concat(e):r?"embed/".concat(e).concat(n?"/live":""):n?"live/".concat(e):"".concat(e);var c=t&&!n?"?t=".concat(t):"";return r?"<iframe src=".concat("".concat(o,"/").concat(a).concat(c)," width='640' height='360' frameborder='0' allowfullscreen></iframe>"):"".concat(o,"/").concat(a).concat(c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/—|–/g,"--").replace(/…/g,"...").replace(/[“”]/g,'"').replace(/[‘’]/g,"'").replace(/&/g,"and").replace(/[^\x00-\x7F]/g,"").replaceAll("   "," ").replaceAll("  "," ").replaceAll("&#8211;"," -- ").replaceAll("&#8212;"," -- ").replaceAll("&#8216;","'").replaceAll("&#8217;","'").replaceAll("&rsquo;","'").replaceAll("—"," -- ").replaceAll("–"," -- ").replaceAll("…","...").replaceAll('"','"').replaceAll('"','"').replaceAll("'","'").replaceAll("'","'").replaceAll("&","and")},g=function(e){var n=e.toggleModal,t=e.opened,g=e.selectedShareVideo,x=e.playlistId,b=e.videoIndex,w=e.shareVideoInitialTime,j=void 0===w?0:w,N=e.isShortVideo,_=void 0!==N&&N,S=!!g&&(0,d.Yt)(g),I=!!(null==g?void 0:g.isLiveshop),k=(0,o._)((0,c.useState)({videoUrl:v(null==g?void 0:g.videoId,S,0,!1,_),videoEmbedUrl:"".concat("https://www.brighteon.com","/embed/").concat(null==g?void 0:g.videoId),iframeUrl:v(null==g?void 0:g.videoId,S,0,!0,_),isEnableDirectShareTime:!1,isEnableDirectEmbedTime:!1,isError:!1,playlistUrl:"".concat("https://www.brighteon.com","/watch/").concat(x,"?index=").concat(b||1),playlistIframeUrl:'<iframe src="'.concat("https://www.brighteon.com","/watch/").concat(x,"?index=").concat(b||1,"\" width='640' height='360' frameborder='0' allowfullscreen></iframe>")}),2),A=k[0],T=k[1],y=[{type:m.C.SOCIAL,icon:"/icons/Icon-BrighteonSocial.svg",title:"Brighteon.Social"},{type:m.C.IO,icon:"/icons/Icon-BrighteonIO.svg",title:"Brighteon.IO"},{type:m.C.TL,icon:"/icons/Icon-Telegram.svg",title:"Telegram"},{type:m.C.GAB,icon:"/icons/Icon-Gab.svg",title:"Gab"},{type:m.C.TS,icon:"/icons/Icon-TruthSocial.svg",title:"Trust Social"},{type:m.C.MAIL,icon:"/icons/Icon-Email.svg",title:"Email"},{type:m.C.MORE,icon:"/icons/Icon-More.svg",title:"More options"}];(0,c.useEffect)(function(){g&&T(function(e){return(0,i._)((0,r._)({},e),{videoUrl:v(null==g?void 0:g.videoId,S,0,!1,_),videoEmbedUrl:"".concat("https://www.brighteon.com","/embed/").concat(null==g?void 0:g.videoId),iframeUrl:v(null==g?void 0:g.videoId,S,0,!0,_)})})},[g,_]),(0,c.useEffect)(function(){x&&T(function(e){return(0,i._)((0,r._)({},e),{playlistUrl:"".concat("https://www.brighteon.com","/watch/").concat(x,"?index=").concat(b||1),playlistIframeUrl:'<iframe src="'.concat("https://www.brighteon.com","/watch/").concat(x,"?index=").concat(b||1,"\" width='640' height='360' frameborder='0' allowfullscreen></iframe>")})})},[x]);var C=function(e){T(function(n){return(0,i._)((0,r._)({},n),{isEnableDirectShareTime:e,videoUrl:v(null==g?void 0:g.videoId,S,e?j:0,!1,_)})})},E=function(e){T(function(n){return(0,i._)((0,r._)({},n),{isEnableDirectEmbedTime:e,iframeUrl:v(null==g?void 0:g.videoId,S,e?j:0,!0,_)})})},M=function(e,n){var t,o=null===(t=e.target)||void 0===t?void 0:t.value,a=(0,s.L9)(o);if(1e3*a>g.durationMS)T(function(e){return(0,i._)((0,r._)({},e),{isError:!0})});else if(Number.isNaN(a))T(function(e){return(0,i._)((0,r._)({},e),{isError:!1})});else{var c=new URL(A.videoUrl);c.searchParams.set("t",a.toString());var l=c.href;T(function(e){return(0,r._)((0,i._)((0,r._)({},e),{isError:!1}),n===m.t.DIRECT_LINK&&{videoUrl:l})})}},D=function(e,n){var t,o=null===(t=e.target)||void 0===t?void 0:t.value,a=(0,s.L9)(o);if(1e3*a>g.durationMS)T(function(e){return(0,i._)((0,r._)({},e),{isError:!0})});else if(Number.isNaN(a))T(function(e){return(0,i._)((0,r._)({},e),{isError:!1})});else{var c=new URL(A.videoEmbedUrl);c.searchParams.set("t",a.toString());var l=c.href;T(function(e){return(0,r._)((0,i._)((0,r._)({},e),{isError:!1}),n===m.t.EMBED&&{iframeUrl:'<iframe src="'.concat(l,"\" width='640' height='360' frameborder='0' allowfullscreen></iframe>")})})}},L=function(e){e===m.t.DIRECT_LINK?navigator.clipboard.writeText(x?A.playlistUrl:A.videoUrl):e===m.t.EMBED&&navigator.clipboard.writeText(x?A.playlistIframeUrl:A.iframeUrl),(0,l.jX)("Copied to Clipboard"),g.videoId&&(0,f.pg)(g.videoId,"url")},U=function(e){var n=encodeURIComponent(x?A.playlistUrl:A.videoUrl);switch(e){case m.C.IO:if(window.bastyonLib){var t=window.bastyonLib.share({share:{description:"".concat(p(g.title||g.name)," - Brighteon"),url:x?A.playlistUrl:A.videoUrl,tags:["brighteon","video","live-stream"]}}).makeURL(),r=window.open(t,"_blank","scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0");null==r||r.focus()}break;case m.C.SOCIAL:var i=window.open("https://brighteon.social/share?text=".concat(n),"_blank","scrollbars=0, resizable=1, men
1ubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0");null==i||i.focus();break;case m.C.TL:u.telegram({url:n});break;case m.C.MAIL:u.email({url:n});break;case m.C.GAB:var o=window.open("https://gab.com/compose?url=".concat(n),"_blank","scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0");null==o||o.focus();break;case m.C.TS:var a=window.open("https://truthsocial.com/share?url=".concat(n),"_blank","scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0");null==a||a.focus();break;case m.C.MORE:var c=window.open("https://www.addtoany.com/share#url=".concat(n),"_blank","scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0");null==c||c.focus()}g.videoId&&(0,f.pg)(g.videoId,"allsocial")};return t?(0,a.jsxs)(h.t,{classes:"ModalShare BW600 ".concat(I?"ModalShareLiveShop":""),toggleModal:n,opened:t,children:[(0,a.jsx)("div",{className:"FixedHeader MGB10",children:(0,a.jsx)("div",{className:"Auto",children:(0,a.jsx)("div",{className:"AutoLabel",children:(0,a.jsx)("div",{className:"AutoText modal-window__header",children:"Share"})})})}),(0,a.jsx)("div",{className:"ModalArea MGB20",children:(0,a.jsx)("div",{className:"IconsTable",children:y&&y.length>0&&y.map(function(e){return(0,a.jsx)("div",{className:"IconsCol",id:"ShareBrighteonSocial_".concat(e.type),onClick:function(){return U(e.type)},children:(0,a.jsx)("img",{src:e.icon,alt:e.title,title:e.title})},e.type)})})}),(0,a.jsx)("div",{className:"ModalSubhead MGB10",children:"Direct Link"}),(0,a.jsx)("div",{className:"FormInput ModalShare__ShareDirect",children:(0,a.jsx)("input",{type:"text",name:"ShareDirect",id:"ShareDirect",placeholder:"",value:x?A.playlistUrl:A.videoUrl,readOnly:!0})}),(0,a.jsxs)("div",{className:"OptionsTable MGB20 ModalShare__Option",children:[!_&&(null==g?void 0:g.duration)&&(null==g?void 0:g.durationMS)&&(0,a.jsx)("div",{className:"OptionCol OptionColLeft",children:(0,a.jsxs)("div",{className:"FormCheckbox",children:[(0,a.jsx)("input",{onChange:function(e){C(e.target.checked)},type:"checkbox",name:"DirectShareTime",id:"DirectShareTime",value:""}),(0,a.jsx)("label",{children:"Start video at:"}),(0,a.jsx)("input",{name:"DirectStartTime",id:"DirectStartTime",type:"text",size:8,maxLength:8,placeholder:"00:00:00",onKeyUp:function(e){return M(e,m.t.DIRECT_LINK)},disabled:!A.isEnableDirectShareTime,defaultValue:(0,s.Ej)(1e3*j)})]})}),(0,a.jsx)("div",{className:"OptionCol OptionColRight",id:"CopyShareDirect",onClick:function(){return L(m.t.DIRECT_LINK)},children:"Copy"})]}),!_&&g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ModalSubhead MGB10",children:"Embed Code"}),(0,a.jsx)("div",{className:"FormTextArea MGB10  ModalShare__ShareEmbed",children:(0,a.jsx)("textarea",{name:"ShareEmbed",rows:1,wrap:"virtual",id:"ShareEmbed",value:x?A.playlistIframeUrl:A.iframeUrl,readOnly:!0})}),(0,a.jsxs)("div",{className:"OptionsTable MGB20",children:[!_&&(null==g?void 0:g.duration)&&(null==g?void 0:g.durationMS)&&(0,a.jsx)("div",{className:"OptionCol OptionColLeft",children:(0,a.jsxs)("div",{className:"FormCheckbox",children:[(0,a.jsx)("input",{type:"checkbox",name:"EmbedShareTime",id:"EmbedShareTime",onChange:function(e){E(e.target.checked)},value:""}),(0,a.jsx)("label",{children:"Start video at:"}),(0,a.jsx)("input",{name:"EmbedStartTime",type:"text",id:"EmbedStartTime",placeholder:"00:00:00",size:8,maxLength:8,onKeyUp:function(e){return D(e,m.t.EMBED)},disabled:!A.isEnableDirectEmbedTime,defaultValue:(0,s.Ej)(1e3*j)})]})}),(0,a.jsx)("div",{className:"OptionCol OptionColRight",id:"CopyShareEmbed",onClick:function(){return L(m.t.EMBED)},children:"Copy"})]})]}),A.isError&&(0,a.jsxs)("div",{className:"_error _below",children:[(0,a.jsx)("div",{className:"_error-arrow"}),(0,a.jsxs)("div",{className:"_error-inner",children:["Time skip must be less than ",g.duration," (",g.durationMS/1e3," seconds)"]})]})]}):(0,a.jsx)(a.Fragment,{})}},20369:function(e,n,t){t.d(n,{W:function(){return r}});var r=401},97443:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(10060),i=[{domain:"brightu.com",utmMedium:"Video"},{domain:"brighteonuniversity.com",utmMedium:"Video"}],o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"video";try{var t=r.xB.getBrandData().domain.replace(/^www\./i,""),o=!0,a=!1,c=void 0;try{for(var s,l=i[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var u=s.value;if(RegExp("^(https?:)?\\/\\/(www\\.)?".concat(u.domain.replace(".","\\.")),"i").test(e)){var d=e;(d=(d=d.replace(/^http:/i,"https:")).replace(/^((https?:)?\/\/)(?!www\.)/i,"$1www.")).startsWith("http")||(d="https://".concat(d));var h=new URL(d);return h.searchParams.set("utm_source",t),h.searchParams.set("utm_medium","article"===n?"Article":u.utmMedium),h.toString()}}}catch(e){a=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(a)throw c}}return e}catch(n){return console.error("Error adding UTM parameters:",n),e}},a=/(<a href=")?((https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)))(">(.*)<\/a>)?/gi,c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"video";return e.replace(a,function(){var e=arguments[2],t=o(e,n);return'<a target="_blank" href="'.concat(t,'">').concat(arguments[7]||arguments[2],"</a>")}).trim().replace(/\n/g,"<br />")}},45097:function(e,n,t){t.d(n,{ke:function(){return l},jX:function(){return u},xz:function(){return s}});var r=t(50858),i=t(76805),o=t(24246);t(27378);var a=function(e){var n=e.text,t=e.link;return(0,o.jsxs)(o.Fragment,{children:["".concat(n," "),(0,o.jsx)("a",{href:t,className:"toast__link",target:"_blank",rel:"noopener noreferrer",children:"here"}),"."]})},c={position:"bottom-center",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,closeButton:!1,pauseOnHover:!0},s=function(e){var n=e.loginTo,t=e.ableTo;i.Am.error(a({text:"Please log in to ".concat(n,". Only logged-in users are able to ").concat(t,". To create a new account, click "),link:"/dashboard/request-invitation"}),{autoClose:3e3})},l=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&i.Am.error(e,(0,r._)({},c,n))},u=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&i.Am.success(e,(0,r._)({},c,n))}}}]);

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.