1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e21519af-2194-4545-9390-660304bf0c00",e._sentryDebugIdIdentifier="sentry-dbid-e21519af-2194-4545-9390-660304bf0c00")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4116],{48848:function(e,t,n){n.r(t),n.d(t,{ListRow:function(){return N}});var i=n(27573),l=n(7653),o=n(96),a=n(8794),r=n(65123),s=n(32136),d=n(65237),c=n(56683),u=n(78399);function m(){let e=(0,c._)(["\n padding-top: ",";\n padding-bottom: ",";\n "]);return m=function(){return e},e}function p(){let e=(0,c._)(["\n margin-",": auto;\n "]);return p=function(){return e},e}var h=u.default.div.withConfig({componentId:"sc-78991527-0"})(["",""],e=>{let{theme:{space:t,color:n,mediaQuery:i}}=e;return(0,u.css)(["width:100%;margin-bottom:",";padding-top:",";padding-bottom:",";display:flex;align-items:center;&.has-button{padding-top:10px;padding-bottom:0;","}.head-item{display:flex;align-items:center;&,a{display:flex;align-items:center;}h3,h4{color:",";}}.play-all-button{&.button{margin-",":",";}","}.show-all-button{margin-",":auto;&.slider-show-all-button.button{margin-",":80px;}}"],t.sm,t.sm,t.sm,i("xs","max")(m(),t.xs,t.xs),n.background[70],t.right,t.md,i("xxxs","max","list")(p(),t.right),t.right,t.left)});let v=e=>{let{title:t="",outputType:n,moreType:l,showAllButton:s,playAllButton:d}=e,{t:c}=(0,r.$G)(),{breakpoints:u}=(0,a.gh)(),m=(0,o.eIi)(u.xs.max);return t||(null==d?void 0:d.text)||(null==s?void 0:s.text)?(0,i.jsxs)(h,{className:(0,o.dhh)("list-head",{"has-button":(null==s?void 0:s.link)&&(null==s?void 0:s.text)||(null==d?void 0:d.link)&&(null==d?void 0:d.text)}),children:[(0,i.jsx)("div",{className:"head-item",tabIndex:0,"aria-label":t,children:(0,i.jsx)(a.ZT.Heading,{size:m?"h4":"h3",children:(0,o.yH)(t)})}),"movie"!==n&&(null==d?void 0:d.link)&&(null==d?void 0:d.text)&&(0,i.jsx)(a.zx,{className:"play-all-button",iconStart:"Play",text:null==d?void 0:d.text,buttonType:"neutral",buttonStyle:"tertiary",size:m?"sm":"md",href:null==d?void 0:d.link}),(null==s?void 0:s.link)&&(0,i.jsx)(a.zx,{className:(0,o.dhh)("show-all-button",{"slider-show-all-button":"slider"===l}),buttonType:"neutral",buttonStyle:"tertiary",iconStart:null==s?void 0:s.iconStart,iconEnd:null==s?void 0:s.iconEnd,text:(null==s?void 0:s.text)||c("list.showAll"),href:null==s?void 0:s.link,size:m?"sm":"md"})]}):null};var g=n(10459),f=u.default.div.withConfig({componentId:"sc-4acd7c22-0"})(["",""],e=>{let{theme:{color:t,space:n}}=e;return(0,u.css)(["display:flex;align-items:center;justify-content:center;margin-top:12px;.button{margin:0 ",";}.line{display:flex;align-items:center;height:1px;flex:1;background-color:",";}"],n.xs,t.background.light20)});let x=e=>{let{text:t,isLoading:n,onClick:l,href:r}=e,{breakpoints:s}=(0,a.gh)(),d=(0,o.eIi)(s.xs.max);return(0,i.jsxs)(f,{className:"more-button-wrapper",children:[(0,i.jsx)("div",{className:"line"}),(0,i.jsx)(a.zx,{text:t,buttonType:"neutral",buttonStyle:"tertiary",iconEnd:r?"Left":"Down",size:d?"sm":"md",loading:n,href:r?(0,o.qXE)(r):"",...!r&&{onClick:l}}),(0,i.jsx)("div",{className:"line"})]})};function y(){let e=(0,c._)(["\n padding: "," ",' 10px;\n flex-direction: column;\n align-items: flex-start;\n background: url("','") no-repeat left center;\n background-size: cover;\n ']);return y=function(){return e},e}function b(){let e=(0,c._)(['\n background: url("','") no-repeat left center;\n background-size: cover;\n ']);return b=function(){return e},e}function w(){let e=(0,c._)(["\n align-items: center;\n "]);return w=function(){return e},e}function k(){let e=(0,c._)(["\n flex-flow: column;\n align-items: flex-start;\n "]);return k=function(){return e},e}function C(){let e=(0,c._)(["\n margin-bottom: 6px;\n "]);return C=function(){return e},e}function j(){let e=(0,c._)(["\n margin-",": 28px;\n "]);return j=function(){return e},e}function S(){let e=(0,c._)(["\n margin-",": 0px;\n height: 15px;\n "]);return S=function(){return e},e}function I(){let e=(0,c._)(["\n font-size: 42px;\n fill: ","\n "]);return I=function(){return e},e}var _=u.default.div.withConfig({componentId:"sc-7d9b7b00-0"})(["",""],e=>{let{theme:{mediaQuery:t,color:n,space:i},$backgroundWeb:l,$backgroundMob:o}=e;return(0,u.css)(["position:relative;display:flex;align-items:center;min-height:94px;width:100%;overflow:hidden;margin-bottom:",";padding:"," "," 10px;border-radius:12px;"," "," &::before{content:'';position:absolute;inset:0 0 0 0;background:linear-gradient( 270deg,rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 100% );}.close-button{position:absolute;top:5px;",":5px;z-index:3;&.icon-button{padding:0;width:20px;height:20px;min-width:20px;border-radius:6px;background:",";.icon{fill:",";}&:hover{background:",";;}}}.inner-banner{display:flex;.link{z-index:1;}& > .link{position:absolute;top:0;left:0;right:0;bottom:0;font-size:0;z-index:2;&:hover ~ .content .button{opacity:0.8;}&:hover ~ .close-button{background:transparent;}}"," ",";}.content{display:flex;flex-direction:column;align-items:flex-start;.title,.caption,.button{z-index:1;}.title{color:",";","}.caption{color:",";margin-bottom:",";}}.icon-wrapper{display:flex;align-items:center;margin-",":56px;z-index:1;",";",";}&.filimo{.icon{font-size:80px;}}&.aparatsport{.icon{font-size:100px;height:0.5em;}}&.aparat{.icon-wrapper{.icon{font-size:80px;path{fill:",";}",";}}}"],i.md,i.xs,i.lg,t("sm","max")(y(),i.xs,i.sm,o),t("md","min")(b(),l),i.left,n.natural.black[50],n.white,n.natural.black[75],t("sm","max")(w()),t("xs","max")(k()),n.natural.white.white,t("sm","max")(C()),n.natural.white[90],i.xs,i.left,t("sm","max")(j(),i.left),t("xs","max")(S(),i.left),n.natural.white.white,t("xs","max")(I(),n.natural.white[50]))});let P=e=>{var t;let{data:n}=e,{breakpoints:s,isDark:d}=(0,a.gh)(),{t:c}=(0,r.$G)(),u=(0,o.eIi)(s.sm.max),[m,p]=(0,l.useState)(!1),h=(null==n?void 0:null===(t=n.ads_type)||void 0===t?void 0:t.toLocaleLowerCase())||"",v=null==n?void 0:n.id;return((0,l.useEffect)(()=>
1{if(v){let e=(0,o.$oy)(o.dAu.HOME_BANNER);null!==e&&e.split(",").includes("".concat(v))&&p(!0)}},[v]),m)?null:(0,i.jsx)(_,{className:(0,o.dhh)("banner",h),$backgroundWeb:null==n?void 0:n.background_url,$backgroundMob:null==n?void 0:n.background_url_mob,role:"region",children:(0,i.jsxs)("div",{className:"inner-banner",children:[(0,i.jsx)("a",{href:null==n?void 0:n.link,title:null==n?void 0:n.title,rel:"noreferrer",target:"_blank",className:"link",children:null==n?void 0:n.title}),(0,i.jsx)("div",{className:"icon-wrapper",children:(()=>{let e="",t="aparat";switch(h){case"filimo":e=d?"FilimoLight":"FilimoDark",t="filimo";break;case"aparatsport":e="AparatSportColored",t="aparatSport";break;default:e="AparatFaDark"}return(0,i.jsx)(a.I5,{name:e,height:"0.5em","aria-label":c("accessibilityLabel.".concat(t)),tabIndex:0})})()}),(0,i.jsxs)("div",{className:"content",children:[(0,i.jsx)(a.ZT.Heading,{size:"h4",className:"title",children:null==n?void 0:n.title}),!u&&(0,i.jsx)(a.ZT.Caption,{size:"2",children:null==n?void 0:n.caption}),(0,i.jsx)(a.zx,{actionType:"button",href:null==n?void 0:n.action_link,buttonType:"neutral",buttonStyle:"secondary",size:"sm",text:null==n?void 0:n.action_text,iconStart:["aparat","aparatsport"].includes(h)?"Launch":"Play"})]}),(0,i.jsx)(a.hU,{icon:"Close",size:"sm",onClick:()=>{if(v){let e=(0,o.$oy)(o.dAu.HOME_BANNER);(0,o.qQZ)(o.dAu.HOME_BANNER,"".concat(e?"".concat(e,","):"").concat(v))}p(!0)},className:"close-button",buttonType:"neutral","aria-label":c("accessibilityLabel.close")})]})})};var R=u.default.section.withConfig({componentId:"sc-dc313477-0"})(["",""],e=>{let{theme:{space:t}}=e;return(0,u.css)(["margin-bottom:",";"],t.md)});let T=(0,l.memo)(e=>{var t,n,a,s,c,u,m,p,h,f,y;let{row:b,thumbnailOnClick:w,thumbnailType:k,thumbnailSize:C,direction:j,referType:S}=e,{t:I}=(0,r.$G)(),_=null==b?void 0:b.more_type,T=(null==b?void 0:null===(t=b.link)||void 0===t?void 0:t.next)||(null==b?void 0:null===(n=b.link)||void 0===n?void 0:n.self)||"",L=(null==b?void 0:b.output_type)||"video",N=null==b?void 0:b.line_count,E=(null==b?void 0:b.dataSource_key)==="4986203",A=null==b?void 0:b.show_all_link,z=null==b?void 0:null===(a=b.ext_end_point)||void 0===a?void 0:a.final_path,D=(0,l.useRef)(T),F=(0,l.useRef)(!1),M=(0,l.useRef)(null),G=(0,l.useRef)(null),V="infinity_button"===_&&D.current||(null==b?void 0:null===(c=b.button)||void 0===c?void 0:null===(s=c.link)||void 0===s?void 0:s.link_type)==="under_container",[O,U]=(0,l.useState)((null==b?void 0:null===(u=b[L])||void 0===u?void 0:u.data)||[]);(0,l.useEffect)(()=>{var e;U((null==b?void 0:null===(e=b[L])||void 0===e?void 0:e.data)||[])},[b]),(0,l.useLayoutEffect)(()=>{var e;let t=G.current;if(null===t)return;G.current=null;let n=null===(e=M.current)||void 0===e?void 0:e.querySelectorAll(".thumbnail")[t];null==n||n.focus()},[O]);let{mutate:B,isPending:$}=(0,o.QTX)({onSuccess:e=>{var t,n;(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(t=n.posts)||void 0===t?void 0:t.length)&&U(e.data.posts)}}),{mutate:H,isPending:q}=(0,o.QTX)({onSuccess:e=>{if(e){var t,n,i;let l=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t[0],o=(null==l?void 0:l.output_type)||"video",a=(null==l?void 0:null===(n=l[o])||void 0===n?void 0:n.data)||[],r=null==l?void 0:l.link,s=Array.from((null===(i=M.current)||void 0===i?void 0:i.querySelectorAll(".grid-item"))||[]).filter(e=>null!==e.offsetParent).length;F.current=!0,D.current=(null==r?void 0:r.next)||(null==r?void 0:r.self)||"",G.current=s,U(e=>[...e,...a])}}}),Z=()=>{var e,t,n,i,l,o;let a="",r=null==b?void 0:null===(e=b.infinityButtonOption)||void 0===e?void 0:e.text;return(null==b?void 0:null===(n=b.button)||void 0===n?void 0:null===(t=n.link)||void 0===t?void 0:t.link_type)==="under_container"&&(a=(null==b?void 0:null===(l=b.button)||void 0===l?void 0:null===(i=l.link)||void 0===i?void 0:i.link_key)||"",r=null==b?void 0:null===(o=b.button)||void 0===o?void 0:o.text),{link:a,text:r}};return((0,l.useEffect)(()=>{z&&B({externalApi:"true",url:z,headers:{useragent:JSON.stringify({id:(0,o.$oy)(o.dAu.SURTUR_SUBSCRIPTION_ID)})}})},[z]),z&&$)?(0,i.jsx)(d.ListLoading,{hasTitle:!0,outputType:"shortVideo",rowCount:1,itemCount:8,type:"grid",thumbnailType:"shortVideo",lineCount:1,hasContainer:!1}):"filimoAds"===L&&(null==b?void 0:null===(p=b.adsData)||void 0===p?void 0:null===(m=p.data)||void 0===m?void 0:m[0])?(0,i.jsx)(P,{data:null===(h=b.adsData.data)||void 0===h?void 0:h[0]}):(0,i.jsxs)(R,{ref:M,className:"row",role:"region",tabIndex:-1,...(null==b?void 0:null===(f=b.title)||void 0===f?void 0:f.text)&&{"aria-label":b.title.text}
1,children:[(0,i.jsx)(v,{title:null==b?void 0:null===(y=b.title)||void 0===y?void 0:y.text,showAllButton:{text:E?I("aparatGame"):null==A?void 0:A.text,link:(null==b?void 0:b.showAllLinkRouteNext)||(null==A?void 0:A.link),iconStart:E?"AparatGame":void 0},playAllButton:null==b?void 0:b.play_all,moreType:_}),(0,i.jsx)(g.List,{data:O,lineCount:N,direction:j,disabledLineCount:F.current||!N,thumbnailType:k,thumbnailSize:C,thumbnailOnClick:w,carouselType:null==b?void 0:b.output_design,type:"slider"===_?"carousel":"grid",outputType:L,referType:S}),V&&(0,i.jsx)(x,{text:Z().text,href:Z().link,onClick:()=>{H({url:D.current})},isLoading:q})]})});var L=(0,u.default)(a.W2).withConfig({componentId:"sc-56ed0c2f-0"})(["",""],()=>(0,u.css)(["position:relative;&.has-more{padding-bottom:90px;}.infinite-scroll-loading{position:absolute;left:50%;bottom:0;transform:translateX(-50%);}"]));let N=(0,l.memo)(e=>{let{listData:t,isLoading:n,query:c,direction:u,hasContainer:m=!0,placeholderData:p,referType:h,thumbnailSize:v,thumbnailType:g,thumbnailOnClick:f,emptyState:x}=e,{data:y,isFetchingNextPage:b}=(0,o.BRU)({isInfiniteScroll:!0,queryKey:(null==c?void 0:c.key)?[o.U7p.list,c.key]:void 0,initialData:()=>{var e;return{pageParams:[(null==t?void 0:null===(e=t.links)||void 0===e?void 0:e.next)||""],pages:t?[t]:[]}},gcTime:(null==c?void 0:c.gcTime)||0}),w=(0,l.useMemo)(()=>{var e,t;return(null==y?void 0:null===(t=y.pages)||void 0===t?void 0:null===(e=t.map(e=>e.data))||void 0===e?void 0:e.flat())||[]},[y]),k=(0,l.useMemo)(()=>null==w?void 0:w.some(e=>!["requiredLogin","Ads","ads","shortVideo"].includes((null==e?void 0:e.output_type)||"")),[w]),{t:C}=(0,r.$G)(),j=(0,l.useMemo)(()=>{if(!x)return null;let{description:e,action:t,direction:n="column"}=x;return(0,i.jsxs)(a.cs,{type:"video",direction:n,children:[e&&(0,i.jsx)(a.ZT.Caption,{children:e}),t&&(0,i.jsx)("div",{children:(0,i.jsx)(a.zx,{buttonType:"neutral",buttonStyle:"tertiary",text:t.text,iconEnd:t.iconEnd,href:t.href,onClick:t.onClick,size:"md"})})]})},[x,C]),S=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.jsx)(d.ListLoading,{hasTitle:!0,rowCount:e?2:4,itemCount:10,lineCount:2,type:"grid",hasContainer:!e,...p})};return!w.length&&n?S():k?(0,i.jsxs)(L,{className:(0,o.dhh)("list-row-container"),as:m?void 0:"div",children:[w.map((e,t)=>(null==e?void 0:e.output_type)==="requiredLogin"?(0,i.jsx)(s.dG,{}):(0,i.jsx)(T,{row:e,direction:u,referType:h,thumbnailSize:v,thumbnailType:g,thumbnailOnClick:f},"row-".concat(null==e?void 0:e.id,"-").concat(t))),b&&S(!0)]}):j})},65237:function(e,t,n){n.r(t),n.d(t,{ListLoading:function(){return c}});var i=n(27573),l=n(8794),o=n(96),a=n(89721),r=n(58623),s=n(78399),d=(0,s.default)(l.W2).withConfig({componentId:"sc-8dde1738-0"})(["",""],e=>{let{theme:{space:t}}=e;return(0,s.css)([".banner{margin-bottom:",";}.row-placeholder{margin-bottom:",";.head{margin-bottom:",";padding:"," 0;}}"],t.md,t.md,t.sm,t.sm)});let c=e=>{let{hasTitle:t,rowCount:n=1,itemCount:s=5,type:c,lineCount:u,outputType:m="video",thumbnailType:p="video",direction:h,hasContainer:v=!0,hasBanner:g}=e,f=(0,o.s68)(e=>e.isSidebarOpen),x=e=>Array.from({length:s}).map((t,n)=>(0,i.jsx)(a.r,{type:p,direction:h,hasDescription:!["shortVideo"].includes(p)},"list-loading-item-".concat(e,"-").concat(n)));return(0,i.jsxs)(d,{className:"list-placeholder",as:v?void 0:"div",children:[g&&(0,i.jsx)(l.Vm.Box,{className:"banner",height:94,radius:12}),Array.from({length:n}).map((e,n)=>(0,i.jsxs)("div",{className:"row-placeholder",children:[t&&(0,i.jsx)("div",{className:"head",children:(0,i.jsx)(l.Vm.Text,{width:80,height:24})}),"grid"===c&&(0,i.jsx)(l.rj,{colCount:4,gap:12,lineCount:u,responsiveCol:(0,r.G)(f)[m],items:x(n)})]},"loading-row-".concat(n)))]})}},10459:function(e,t,n){n.r(t),n.d(t,{List:function(){return c}});var i=n(27573),l=n(8794),o=n(7653),a=n(96),r=n(58623),s=n(32136);let d=(0,o.memo)(e=>{var t,n,o,r,d;let{data:c,thumbnailType:u,outputDesign:m,referType:p,outputType:h,listClassName:v,onClick:g,direction:f,thumbnailSize:x="md"}=e,{breakpoints:y}=(0,l.gh)(),b=(0,a.eIi)(y.xxs.max),w=(0,a.eIi)(y.sm.max),k="channel-vitrin"===v,C=()=>{let e={md:"medium_poster",xs:"small_poster",lg:"big_poster",xxs:"small_poster",sm:"small_poster"};return k&&"xs"===x?"medium_poster":e[x]?e[x]:"big_poster"},j="data"in c?{...null==c?void 0:c.data,item_type:(null==c?void 0:c.type)||(null==c?void 0:null===(d=c.data)||void 0===d?void 0:d.item_type)}:c,S=u||("shortVideo"===h?"shortVideo":"")||(null==j?void 0:j.item_type)||(null==j?void 0:j.type)||"",I=(null==S?void 0:null===(t=S.charAt(0))||void 0===t?void 0:t.toLowerCase())+(null==S?void 0:S.slice(1)),_=null==j?void 0:j.title,P=null==j?void 0:j.description,R=(null==j?void 0:j.music_cover)||(null==j?void 0:j[C()])||(null==j?void 0:j.poster),T=null==j?void 0:j.duration,L="",N=null==j?void 0:j.link,E=k&&b?"column":f,A=null==j?void 0:j.create_type,z="live"===I||"string"==typeof N&&N.includes("/live")||(null==j?void 0:j.isLiveActive),D=["channelInfo"].includes(I),F=!(k&&w),M=!(k&&w),G=!["my-videos"].includes(I),V=["video"].includes(I),O=["video"].includes(I),U=["video","system"!==A&&"playlist","my-videos","school-playlist","live"].includes(I),B={save:!["playlist","live"].includes(I),watchLater:!["playlist","live"].includes(I)};switch(I){case"live":R=null==j?void 0:j.thumb_mobile,L=null==j?void 0:null===(n=j.stat)||void 0===n?void 0:n.formatted_online_cnt;break;case"channel":case"dashboard-channel":case"channels":R=null==j?void 0:j.avatar,_=(null==j?void 0:j["rectangular"===m?"avatar":"username"])||"";break;case"playlist":P=null==j?void 0:j.description,R=(null==j?void 0:j[C()])||"";break;case"poster":R=null==j?void 0:j.poster,T=null==j?void 0:j.online_cnt;break;case"shortVideo":R=null==j?void 0:null===(o=j.cover)||void 0===o?void 0:o.cdn_link,_=null==j?void 0:j.description,L=String((null==j?void 0:null===(r=j.stats)||void 0===r?void 0:r.views)||"")}return(0,i.jsx)(s.pl,{type:I,id:null==j?void 0:j.id,poster:R||"",title:_,data:j,duration:T||0,referType:p,description:P,showUsername:D,direction:E,size:x,showDate:F,views:L,showView:M,hasPreview:O,hasMoreButton:U,showChannelName:G,showDefaultOptions:B,hasWatchTime:V,ellipsis:{description:2,title:k&&w?1:2},menuOptions:[],isLive:z,onClick:g})}),c=(0,o.memo)(e=>{var t;let{data:n,lineCount:o,thumbnailType:s,thumbnailSize:c,direction:u,thumbnailOnClick:m,type:p,carouselType:h="thumb",disabledLineCount:v,outputType:g="video",referType:f}=e,x=(0,a.s68)(e=>e.isSidebarOpen),y=()=>null==n?void 0:n.map((e,t)=>(0,i.jsx)(d,{data:e,onClick:m,thumbnailType:s,outputType:g,thumbnailSize:c,direction:u,referType:f},"list-item-".concat((null==e?void 0:e.id)||t)));
1return(0,i.jsxs)("div",{className:"list",children:["grid"===p&&(0,i.jsx)(l.rj,{colCount:2,gap:12,items:y(),lineCount:o,responsiveCol:null===(t=(0,r.G)(x))||void 0===t?void 0:t[g],disabledLineCount:v}),"carousel"===p&&(0,i.jsx)(l.lr,{type:h,items:y()})]})})},26899:function(e,t,n){n.d(t,{Pb:function(){return o.ListLoading},aV:function(){return l.List},wc:function(){return i.ListRow}});var i=n(48848),l=n(10459),o=n(65237)},58623:function(e,t,n){n.d(t,{G:function(){return o}});var i=n(8794);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{listBreakpoints:t}=(0,i.gh)(),n=parseInt(t.xxxl.min,10),l=parseInt(t.xxl.min,10),o=parseInt(t.xl.min,10),a=parseInt(t.lg.min,10),r=parseInt(t.md.min,10);return{[n]:{colCount:e?3:4},[l]:{colCount:3},[o]:{colCount:3},[a]:{colCount:3},[r]:{colCount:3},[parseInt(t.sm.min,10)]:{colCount:2},[parseInt(t.xs.min,10)]:{colCount:2},[parseInt(t.xxs.min,10)]:{colCount:1},480:{colCount:1}}},o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return{video:l(e),mixV2:l(e),channels:l(e),filimoAds:l(e),live:l(e),movie:l(e),playlist:l(e),poster:l(e),shortVideo:{1600:{colCount:7},1280:{colCount:6},768:{colCount:5},480:{colCount:3},1:{colCount:2,lineCount:2}}}}},46588:function(e,t,n){n.r(t),n.d(t,{Follow:function(){return m}});var i=n(27573),l=n(7653),o=n(96),a=n(8794),r=n(65123),s=n(56062),d=n(78399),c=d.default.div.withConfig({componentId:"sc-baa7080d-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,d.css)(["display:flex;align-items:center;.push-notification-action{margin-",":",";}.active{.icon > path{fill:",";}}&:has(.tooltip.visible){overflow:visible;}"],t.right,t.xxs,n.background[70])}),u=n(74176);let m=e=>{let{id:t="",className:n,channelId:d,status:m,link:p,size:h="md",notifLink:v,notifStatus:g="no",buttonStyle:f}=e,{t:x}=(0,r.$G)(),y=(0,o.s68)(e=>e.openAuthModal),{data:b}=(0,u.X)(),w=null==b?void 0:b[d],k=(null==w?void 0:w.link_toggle_push_follow)||v,C=(null==w?void 0:w.status)||m,j="follow"===C,[S,I]=(0,l.useState)(!1),_=(0,l.useRef)(null),P=(0,l.useRef)(C),{isPending:R,mutate:T}=(0,u.w)(d);(0,l.useEffect)(()=>{j&&"follow"!==P.current&&(I(!0),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{I(!1)},1e4)),P.current=C},[j,C]),(0,l.useEffect)(()=>()=>{_.current&&clearTimeout(_.current)},[]);let L=e=>{e.stopPropagation(),"login"===m?y():T({url:(null==w?void 0:w.link)||p})};return(0,l.useEffect)(()=>{var e,n;return t&&(null===(n=document)||void 0===n||null===(e=n.getElementById(t))||void 0===e||e.addEventListener("click",L)),()=>{var e,n;t&&(null===(n=document)||void 0===n||null===(e=n.getElementById(t))||void 0===e||e.removeEventListener("click",L))}},[null==w?void 0:w.link,t]),(0,i.jsxs)(c,{className:(0,o.dhh)("follow-action",n),children:[(0,i.jsx)(a.zx,{id:t,className:(0,o.dhh)("follow",j?"followed":"not-followed"),size:h,text:x(j?"followed":"follow"),buttonType:"neutral",buttonStyle:j?"tertiary":f,loading:R,...!t&&{onClick:L}}),j&&k&&(0,i.jsx)(s.$C,{className:"push-notification-action",size:h,link:k,status:g,channelId:d,showTooltip:S})]})}},74176:function(e,t,n){n.d(t,{X:function(){return r},w:function(){return s}});var i=n(12775),l=n(96);let o=e=>{var t,n;let{errorData:i,showToast:l}=e;(null==i?void 0:null===(t=i.errors[0])||void 0===t?void 0:t.detail)&&l({type:"danger",message:null===(n=i.errors[0])||void 0===n?void 0:n.detail})},a=e=>{let{channelId:t,oldData:n,newData:i}=e;return t?{...n,[t]:{...null==i?void 0:i.data}}:n},r=()=>(0,i.aM)({queryKey:[l.U7p.follow],initialData:{}}),s=e=>{let t=(0,i.NL)(),n=(0,l.pmc)();return(0,l.QTX)({queryClient:t,queryKey:[l.U7p.follow],onError:e=>o({errorData:e,showToast:n}),onUpdate:(t,n)=>a({channelId:e,oldData:t,newData:n}),gcTime:0})}},56062:function(e,t,n){n.d(t,{$C:function(){return l.PushNotificationAction},Lb:function(){return o.SavePlayList},j9:function(){return i.Follow}});var i=n(46588),l=n(46764),o=n(30708)},30563:function(e,t,n){n.d(t,{Z:function(){return l},x:function(){return o}});var i=n(13933);let l="/static/vendor/surtur-web-SDK-v3.6.js",o=(0,i.Yg)()},46764:function(e,t,n){n.r(t),n.d(t,{PushNotification:function(){return x},PushNotificationAction:function(){return f},PushNotificationActionComponent:function(){return g}});var i=n(27573),l=n(7653),o=n(27522),a=n(97661),r=n(96),s=n(8794),d=n(65123),c=n(13933),u=n(8280),m=n(74176),p=n(30563),h=n(67978);let v={mobile:{width:113,textSize:"4"},desktop:{width:126,textSize:"3"}},g=e=>{var t,n,o;let{id:a,className:u,status:p="no",link:g,size:f,channelId:x,showTooltip:y=!1}
1=e,{t:b}=(0,d.$G)(),w=(0,r.pmc)(),{breakpoints:k}=(0,s.gh)(),C=(0,r.eIi)(k.xs.max)?v.mobile:v.desktop,{data:j}=(0,m.X)(),{isPending:S,mutate:I}=(0,h.c)({channelId:x,onSuccess:e=>{if(null==e?void 0:e.data){var t,n;w({type:(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.type)==="yes"?"successful":"warning",message:b("common:pushNotification.".concat((null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.type)==="yes"?"toastActiveText":"toastDiactiveText"))})}}}),_=null==j?void 0:j[x],P=(null==_?void 0:_.push_follow_status)||p,R=(null==_?void 0:_.link_toggle_push_follow)||g,T=(0,i.jsx)(s.hU,{buttonType:"neutral",buttonStyle:"yes"===P?"secondary":"tertiary",id:a,className:"".concat((0,r.dhh)(u,{active:"yes"===P})),size:f,icon:"yes"===P?"NotifFilled":"Notif",onClick:e=>{e.stopPropagation(),I({url:R})},loading:S,"aria-label":b("common:accessibilityLabel.activeNotif"),role:"switch","aria-checked":"yes"===P}),{data:L}=(0,r.Gi)(),N=null==L?void 0:null===(o=L.data)||void 0===o?void 0:null===(n=o.profileInformation)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.hash_user_id;return(0,l.useEffect)(()=>{(0,c.kQ)()&&"yes"===P&&(0,c._o)(N)},[P,N]),(0,i.jsx)(s.$.Slider,{position:"top-right",width:C.width,content:[{key:"notification-tooltip",body:(0,i.jsx)(s.ZT.Label,{size:C.textSize,children:b("common:pushNotification.notifOffTooltipSuggested")}),imageSrc:""}],showOnHover:!1,show:y&&"no"===P,showCloseButton:!1,disableAutoPosition:!0,children:T})},f=e=>{let t=(0,c.kQ)()?0:void 0;return(0,i.jsx)(r.cNl,{name:"PushNotificationActionSuspense",eventName:r.FPR.playerEvents.canPlayThrough,timeout:t,children:(0,i.jsx)(g,{...e})})},x=()=>{var e,t;let n=(0,r.pmc)(),{isDevUser:l}=(0,r.U6g)(),{data:s}=(0,r.Gi)(),d=(0,r.s68)(e=>e.lang),c=null==s?void 0:null===(t=s.data)||void 0===t?void 0:null===(e=t.profileInformation)||void 0===e?void 0:e.data,{scriptSrc:m,handleScriptLoad:h}=(0,u.useSurturPushNotification)({appVersion:a.i8,lang:d,userId:null==c?void 0:c.id,hashUserId:null==c?void 0:c.hash_user_id,config:{...p.x,onError:e=>{var t;null===(t=p.x.onError)||void 0===t||t.call(p.x,e),l&&e.message&&n({type:"danger",message:e.message})}},sdkScript:p.Z});return c?(0,i.jsx)(r.cNl,{name:"SurturSuspense",eventName:r.FPR.playerEvents.canPlayThrough,children:(0,i.jsx)(o.default,{src:m,strategy:"afterInteractive",onLoad:h})}):null}},67978:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(12775),l=n(96);let o=e=>{var t,n;let{oldData:i,newData:l,channelId:o}=e;return o?{...i,[o]:{...i[o],link_toggle_push_follow:null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.link_undo,push_follow_status:null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.type}}:i},a=e=>{let{channelId:t,onSuccess:n}=e,a=(0,i.NL)();return(0,l.QTX)({queryClient:a,queryKey:[l.U7p.follow],onUpdate:(e,n)=>o({oldData:e,newData:n,channelId:t}),onSuccess:n})}},30708:function(e,t,n){n.r(t),n.d(t,{SavePlayList:function(){return s}});var i=n(27573),l=n(7653),o=n(96),a=n(8794),r=n(65123);let s=e=>{var t,n,s,d,c,u,m,p;let{id:h,uid:v,className:g,hasText:f,size:x}=e,{t:y}=(0,r.$G)(),b=(0,o.pmc)(),w=(0,o.s68)(e=>e.openAuthModal),{csVideoData:k,refetchCSVideoData:C}=(0,o.GY_)(v),j=null!==(m=null==k?void 0:null===(s=k.data)||void 0===s?void 0:null===(n=s.playList)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.playlist_follow_status)&&void 0!==m?m:"no",S=null!==(p=null==k?void 0:null===(u=k.data)||void 0===u?void 0:null===(c=u.playList)||void 0===c?void 0:null===(d=c.data)||void 0===d?void 0:d.playlist_follow_link)&&void 0!==p?p:"",I="yes"===j,{mutate:_,isPending:P}=(0,o.QTX)({onSuccess:e=>{(null==e?void 0:e.data)&&(C(),b({type:"successful",message:e.data.value}))},onError:e=>{let t=(0,o.xU7)(e);t&&b({type:"danger",message:t})}}),R=(0,l.useCallback)(()=>{"login"!==j?_({url:S}):w()},[S,j,_,w]);return f?(0,i.jsx)(a.zx,{id:h,className:g,iconStart:I?"SaveFilled":"Save",buttonType:"neutral",buttonStyle:"tertiary",size:x,text:y(I?"common:savedPlaylist":"common:savePlaylist"),loading:P,onClick:R,"aria-label":y("common:accessibilityLabel.".concat(I?"removeFromPlaylist":"saveToPlaylist"))}):(0,i.jsx)(a.hU,{id:h,className:g,icon:"yes"===j?"SaveFilled":"Save",buttonType:"neutral",buttonStyle:"tertiary",size:x,loading:P,onClick:R,"aria-label":y("common:accessibilityLabel.".concat(I?"removeFromPlaylist":"saveToPlaylist"))})}},55883:function(e,t,n){n.r(t),n.d(t,{AppPromotion:function(){return p}});var i=n(27573),l=n(7653),o=n(87590),a=n.n(o),r=n(65123),s=n(96),d=n(8794),c=n(80230),u=n(78399),m=u.default.div.withConfig({componentId:"sc-1eb2b50a-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,u.css)(["display:flex;justify-content:space-around;align-items:center;text-align:center;bottom:0px;line-height:55px;width:100%;background:",";text-align:",";z-index:2;padding-bottom:calc(env(safe-area-inset-bottom) / 2);.right-side{display:flex;justify-content:flex-start;align-items:center;height:56px;}.icon-wrap{width:40px;height:40px;border-radius:",";border:solid 1px ",";justify-content:center;align-items:center;display:flex;.icon-iphone{fill:",";}}.text-wrap{display:flex;flex-direction:column;padding-right:",";text-align:",";.typo-button{color:",";}.caption{margin-top:",";color:",";}}"],n.background[5],t.right,t.xs,n.background[20],n.background[70],t.xs,t.right,n.background[70],t.xxs,n.background[50])});let p=(0,l.memo)(()=>{var e,t,n;let{t:o}=(0,r.$G)(),{data:a}=(0,s.Gi)(),[u,p]=(0,l.useState)(!0),[h,v]=(0,s.te0)("app-promotion"),{listBreakpoints:g}=(0,d.gh)(),f=(0,s.eIi)(g.xxxs.max),x=(0,s.s68)(e=>e.deviceType),y=null==a?void 0:null===(n=a.data)||void 0===n?void 0:null===(t=n.dashboardV2Menu.data.mini_menu)||void 0===t?void 0:null===(e=t.find(e=>(null==e?void 0:e.name)==="installAppAparat"))||void 0===e?void 0:e.sub_menu,b=document.getElementById("live-alert-popup-wrapper"),w=e=>{v(e)};return(0,s.IAn)(s.dAu.APP_PROMOTION)&&!b&&u&&f&&"pwa"!==x?(0,i.jsxs)(m,{className:"app-promotion-bar",id:"app-promotion-bar",children:[(0,i.jsxs)("div",{className:"right-side",children:[(0,i.jsx)(d.hU,{icon:"Close",onClick:()=>{(0,s.PaK)(s.dAu.APP_PROMOTION),p(!1)},size:"sm",buttonType:"neutral",buttonStyle:"transparent","aria-label":o("accessibilityLabel.close")}),(0,i.jsx)("div",{className:"icon-wrap",children:(0,i.jsx)(d.I5,{name:"Iphone",width:"20",height:"20"})}),(0,i.jsxs)("div",{className:"text-wrap",children:[(0,i.jsx)(d.ZT.Button,{size:"3",tabIndex:0,children:o("common:promotionBar.title")}),(0,i.jsx)(d.ZT.Caption,{size:"2",tabIndex:0,children:o("common:promotionBar.text")})]})]}),(0,i.jsx)(d.zx,{text:o("common:promotionBar.install"),buttonType:"neutral",size:"sm",onClick:()=>w(!0)}),h&&(0,i.jsx)(c.t,{show:h,onClose:()=>w(!1),items:y,onAppInstall:()=>{(0,s.YJJ)(s.dAu.APP_PROMOTION),p(!1)}})]}):null},(e,t)=>a()(e,t))},62500:function(e,t,n){n.d(t,{ChannelAvatar:function(){return c}});var i=n(27573),l=n(96),o=n(8794),a=n(30017),r=n(31384),s=n(78399),d=s.default.div.withConfig({componentId:"sc-65028324-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,s.css)(["display:flex;flex-direction:column;align-items:center;.channel-name{display:flex;align-items:center;margin-top:",";max-width:100%;.link{display:flex;overflow:hidden;}.typo-button,.body-text{color:",";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%;}}"],t.md,n.background[70])});let c=e=>{let{id:t,className:n,avatar:s,title:c,priority:u,isLive:m,channelLink:p}=e,{breakpoints:h}=(0,o.gh)(),v=(0,l.eIi)(h.xs.max);return(0,i.jsxs)(d,{id:t,className:(0,l.dhh)("channel-avatar",n),children:[(0,i.jsx)(o.qE,{size:v?"xxl":"xxxl",image:s,link:p,alt:c,isLive:m}),(0,i.jsxs)("div",{className:"channel-name",children:[(0,i.jsx)(a.G,{link:p,children:v?(0,i.jsx)(o.ZT.Body,{size:"3",children:c}):(0,i.jsx)(o.ZT.Button,{size:"2",children:c})}),(0,i.jsx)(r.ChannelPriority,{priority:u,iconWidth:"14",iconHeight:"14"})]})]})}},12409:function(e,t,n){n.d(t,{ChannelCard:function(){return p}});var i=n(27573),l=n(65123),o=n(96),a=n(8794),r=n(10749),s=n(46588),d=n(30017),c=n(31384),u=n(78399),m=u.default.div.withConfig({componentId:"sc-382b124c-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,u.css)(["display:flex;align-items:center;flex:1;overflow:hidden;&:has(.tooltip.visible){overflow:visible;}.avatar{margin-",":",";}.details{flex:1;max-width:max-content;overflow:hidden;margin-",":",";.channel-name{display:flex;align-items:center;max-width:100%;overflow:hidden;.link{display:flex;overflow:hidden;}.label-text{color:",";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
1max-width:200px;}}.follower-count{display:flex;align-items:center;margin-top:",";color:",";}}.avatar-details-wrapper{display:flex;}.follow-action{margin-",":auto;}"],t.left,t.xs,t.left,t.lg,n.background[70],t.xxs,n.background[50],t.right)});let p=e=>{var t,n,u,p;let{className:h,id:v,avatar:g,title:f,channelLink:x,priority:y,followers:b,uid:w,isYours:k,channelId:C}=e,{t:j}=(0,l.$G)(),S=(0,o.UOt)(),I=(0,o.s68)(e=>e.deviceType),_=(0,o.Cfs)(x,"profile",I),{csVideoData:P}=(0,o.GY_)(w||S),R=null==P?void 0:null===(p=P.data)||void 0===p?void 0:null===(u=p.Channel)||void 0===u?void 0:null===(n=u.data)||void 0===n?void 0:null===(t=n.follow)||void 0===t?void 0:t.data,T=k?void 0:(null==R?void 0:R.id)||C,L=!(null==R?void 0:R.follower_cnt)||0===Number(null==R?void 0:R.follower_cnt);return(0,i.jsxs)(m,{className:(0,o.dhh)("channel-card-single",h),id:v,children:[g&&(0,i.jsx)(r.qx,{children:(0,i.jsx)(a.qE,{size:"lg",image:g,link:_,alt:f,tabIndex:-1,"aria-hidden":!0})}),(0,i.jsxs)("div",{className:"details",children:[(0,i.jsxs)("div",{className:"channel-name",children:[(0,i.jsx)(d.G,{link:_,children:(0,i.jsx)(a.ZT.Label,{size:"2",children:f})}),(0,i.jsx)(c.ChannelPriority,{priority:y})]}),b&&(0,i.jsx)("div",{className:"follower-count",children:(0,i.jsxs)(a.ZT.Overline,{className:"channel-followers",id:"channel-followers-".concat(T),children:[L?b:null==R?void 0:R.follower_cnt," ",j("followers")]})})]}),T?(0,i.jsx)(s.Follow,{status:null==R?void 0:R.status,link:null==R?void 0:R.link,notifLink:null==R?void 0:R.link_toggle_push_follow,notifStatus:null==R?void 0:R.push_follow_status,size:"md",channelId:String(T||"")}):(0,i.jsx)(i.Fragment,{})]})}},30017:function(e,t,n){n.d(t,{G:function(){return o}});var i=n(27573),l=n(8794);let o=e=>{let{children:t,link:n,...o}=e;return(0,i.jsx)(l.N0,{href:n,...o,children:t})}},49331:function(e,t,n){n.d(t,{ChannelPriorityV2:function(){return s}});var i=n(27573),l=n(65123),o=n(49104),a=n(78399),r=a.default.span.withConfig({componentId:"sc-9c465159-0"})(["",""],e=>{let{theme:{color:t,space:n}}=e;return(0,a.css)(["display:inline-flex;align-items:center;vertical-align:middle;margin-",":",";.priority-text{display:flex;align-items:center;justify-content:center;}.icon{font-size:18px;fill:",";}"],n.right,n[4],t.element.light)});let s=e=>{let t,n,{priority:a,iconWidth:s="16",iconHeight:d="16",tooltipPosition:c="top",isPriorityIconColored:u}=e,{t:m}=(0,l.$G)();if(!a||"streamerSilver"===a||"producer"===a)return null;switch(a){case"streamerDiamond":t=u?"GemStreamerFilled":"GemStreamer",n=m("common:channelPriority.priorityStreamerDiamond");break;case"streamer":t=u?"GoldStreamerFilled":"GoldStreamer",n=m("common:channelPriority.priorityStreamer");break;default:t=u?"VerifiedFilled":"Verified",n=m("common:channelPriority.priorityApproved")}return(0,i.jsx)(r,{className:"priority",children:(0,i.jsx)(o.u,{className:"priority-text",content:n,position:c,children:(0,i.jsx)(o.JO,{name:t,width:s,height:d})})})}},31384:function(e,t,n){n.d(t,{ChannelPriority:function(){return s}});var i=n(27573),l=n(65123),o=n(8794),a=n(78399),r=a.default.span.withConfig({componentId:"sc-29733168-0"})(["",""],e=>{let{theme:{color:t,space:n}}=e;return(0,a.css)(["display:inline-flex;align-items:center;vertical-align:middle;margin-",":",";.priority-text{display:flex;align-items:center;justify-content:center;}.icon{font-size:18px;fill:",";}"],n.right,n.xxs,t.background[40])});let s=e=>{let t,n,{priority:a,iconWidth:s="16",iconHeight:d="16",tooltipPosition:c="top",isPriorityIconColored:u}=e,{t:m}=(0,l.$G)();if(!a||"streamerSilver"===a||"producer"===a)return null;switch(a){case"streamerDiamond":t=u?"GemStreamerFilled":"GemStreamer",n=m("common:channelPriority.priorityStreamerDiamond");break;case"streamer":t=u?"GoldStreamerFilled":"GoldStreamer",n=m("common:channelPriority.priorityStreamer");break;default:t=u?"VerifiedFilled":"Verified",n=m("common:channelPriority.priorityApproved")}return(0,i.jsx)(r,{className:"priority",children:(0,i.jsx)(o.$.Text,{className:"priority-text",content:n,position:c,children:(0,i.jsx)(o.I5,{name:t,width:s,height:d})})})}},28230:function(e,t,n){n.d(t,{FollowCard:function(){return v}});var i=n(27573),l=n(96),o=n(8794),a=n(65123),r=n(46588),s=n(30017),d=n(31384),c=n(56683),u=n(78399);function m(){let e=(0,c._)(["\n width: 130px;\n padding: ",";\n border-radius: 12px;\n min-width: 130px;\n "]);return m=function(){return e},e}function p(){let e=(0,c._)(["\n margin: "," 0;\n "]);return p=function(){return e},e}var h=u.default.div.withConfig({componentId:"sc-c0dd03af-0"})(["",""],e=>{let{theme:{color:t,space:n,radius:i,mediaQuery:l}}=e;return(0,u.css)(["display:flex;flex-direction:column;align-items:center;padding:",";border:1px solid ",";border-radius:",";max-width:161px;"," .details{align-self:stretch;margin:"," 0;
1display:flex;flex-direction:column;align-items:center;.channel-name{display:flex;align-items:center;max-width:100%;.link{display:flex;overflow:hidden;}.label-text{color:",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}}.overline-text{color:",";margin-top:2px;}","}.follow-action{.button.filled{background:",";border-color:transparent;.content{color:",";}}}"],n.md,t.background[10],i.lg,l("xs","max")(m(),n.sm),n.sm,t.background[70],t.background[50],l("xs","max")(p(),n.xs),t.primary[8],t.primary.text)});let v=e=>{let{id:t,className:n,avatar:c,title:u,channelLink:m,followLink:p,followStatus:v,notifLink:g,notifStatus:f,priority:x,followers:y,channelId:b=""}=e,{t:w}=(0,a.$G)(),{breakpoints:k}=(0,o.gh)(),C=(0,l.eIi)(k.xs.max);return(0,i.jsxs)(h,{className:(0,l.dhh)("follow-card",n),id:t,tabIndex:-1,children:[(0,i.jsx)(o.qE,{size:"xxl",image:c,link:m,alt:u,tabIndex:-1}),(0,i.jsxs)("div",{className:"details",children:[(0,i.jsxs)("div",{className:"channel-name",children:[(0,i.jsx)(s.G,{link:m,"aria-label":(()=>{let e=[];return u&&e.push(w("accessibilityLabel.goToChannel",{name:u})),y&&e.push(y),e.join("Ø ")})(),children:(0,i.jsx)(o.ZT.Label,{size:C?"3":"2",children:u})}),(0,i.jsx)(d.ChannelPriority,{priority:x,iconWidth:C?"14":"16",iconHeight:C?"14":"16"})]}),(0,i.jsx)(o.ZT.Overline,{children:y})]}),(0,i.jsx)(r.Follow,{status:v,link:p,notifLink:g,notifStatus:f,size:C?"sm":"md",buttonStyle:"secondary",id:t,channelId:String(b||"")})]})}},72637:function(e,t,n){n.d(t,{$:function(){return d}});var i=n(62500),l=n(28230),o=n(12409),a=n(76750),r=n(31384),s=n(49331);let d={Avatar:i.ChannelAvatar,FollowCard:l.FollowCard,Card:o.ChannelCard,SingleCard:a.ChannelSingleCard,Priority:r.ChannelPriority,PriorityV2:s.ChannelPriorityV2}},76750:function(e,t,n){n.d(t,{ChannelSingleCard:function(){return f}});var i=n(27573),l=n(65123),o=n(96),a=n(8794),r=n(46588),s=n(30017),d=n(31384),c=n(56683),u=n(78399);function m(){let e=(0,c._)(["\n width: 100%;\n "]);return m=function(){return e},e}function p(){let e=(0,c._)(["\n padding-",": 60px;\n flex: 1;\n overflow: hidden;\n padding-top: 90px;\n padding-bottom: 90px;\n padding-",": 10px;\n margin-",": -10px;\n margin-top: -90px;\n margin-bottom: -90px;\n "]);return p=function(){return e},e}function h(){let e=(0,c._)(["\n margin-",": ",";\n "]);return h=function(){return e},e}function v(){let e=(0,c._)(["\n margin-",": auto;\n "]);return v=function(){return e},e}var g=u.default.div.withConfig({componentId:"sc-f48980dd-0"})(["",""],e=>{let{theme:{space:t,color:n,mediaQuery:i}}=e;return(0,u.css)(["display:flex;align-items:flex-end;position:relative;"," .avatar{position:absolute;bottom:0;}.details{display:flex;align-items:center;padding-",":120px;"," .channel-name{display:flex;align-items:center;flex:1;overflow:hidden;.link{overflow:hidden;}.heading{color:",";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:max-content;}.priority{.icon{font-size:24px;}}","}.follow-action,.settings-button{margin-",":",";","}}"],i("sm","max")(m()),t.right,i("sm","max")(p(),t.right,t.left,t.left),n.background[60],i("sm","max")(h(),t.left,t.xxs),t.right,t.xl,i("sm","max")(v(),t.right))});let f=e=>{let{className:t,id:n,avatar:c,title:u,channelLink:m,followLink:p,followStatus:h,notifLink:v,notifStatus:f,priority:x,isAdmin:y,channelId:b=""}=e,{t:w}=(0,l.$G)(),{breakpoints:k}=(0,a.gh)(),C=(0,o.eIi)(k.sm.max);return(0,i.jsxs)(g,{className:(0,o.dhh)("channel-card",t),id:n,children:[(0,i.jsx)(a.qE,{size:C?"xl":"xxxl",image:c,link:m,alt:u}),(0,i.jsxs)("div",{className:"details",children:[(0,i.jsxs)("div",{className:"channel-name",children:[(0,i.jsx)(s.G,{link:m,children:(0,i.jsx)(a.ZT.Heading,{size:C?"h4":"h2",children:u})}),(0,i.jsx)(d.ChannelPriority,{isPriorityIconColored:!0,priority:x,iconHeight:C?"16":"24",iconWidth:C?"16":"24"})]}),y?(0,i.jsx)(a.zx,{className:"settings-button",iconStart:"Settings",buttonType:"neutral",buttonStyle:"primary",text:w("settings"),size:C?"sm":"md",href:o.Z6p.profileSettings}):(0,i.jsx)(r.Follow,{channelId:String(b||""),status:h,link:p,notifLink:v,notifStatus:f,size:C?"sm":"md"})]})]})}},45400:function(e,t,n){n.d(t,{DynamicInsertComment:function(){return r}});var i=n(27573),l=n(64070),o=n(16676);let a=(0,l.default)(()=>Promise.resolve().then(n.bind(n,83491)).then(e=>e.CommentInput),{loadableGenerated:{webpack:()=>[83491]},ssr:!1,loading:()=>(0,i.jsx)(o.CommentInsertSkeleton,{})}
1),r=e=>{let{comment:t,isReply:n,inFooter:l,isEdit:o,commentText:r,parentCommentId:s,isDirtyReplyInput:d,isCommentReply:c,videohash:u,charLimit:m,updateList:p,getReplies:h,onClose:v,increaseReplyCnt:g,handleIsDirtyReplyInput:f,showIsDirtyInputToast:x}=e;return(0,i.jsx)(a,{comment:t,isReply:n,inFooter:l,isCommentReply:c,isEdit:o,commentText:r,parentCommentId:s,videohash:u,charLimit:m,updateList:p,getReplies:h,onClose:v,increaseReplyCnt:g,isDirtyReplyInput:d,handleIsDirtyReplyInput:f,showIsDirtyInputToast:x})}},83491:function(e,t,n){n.r(t),n.d(t,{CommentInput:function(){return g}});var i=n(27573),l=n(7653),o=n(65123),a=n(46364),r=n(12775),s=n(96),d=n(49104);let c=(0,n(64070).default)(()=>n.e(2671).then(n.bind(n,29596)).then(e=>e.SpammerModalV2),{loadableGenerated:{webpack:()=>[29596]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),u=e=>{let{show:t,onClose:n}=e;return(0,i.jsx)(c,{show:t,onClose:n})};var m=n(59764),p=n(78399),h=p.default.div.withConfig({componentId:"sc-f3b36c4a-0"})(["",""],e=>{let{theme:{space:t,color:n,font:i},$disabled:l}=e;return(0,p.css)(["&:not(.in-footer){margin-bottom:",";}.form-head{display:flex;align-items:center;padding-",":",";padding-",":",";margin-bottom:",";.label{color:",";}.name{color:",";margin:0 ",";}.close-button{margin-",":auto;padding:0;width:unset;height:unset;}}.comment-input-shell{width:100%;.simple-field{width:100%;.field-inner{textarea{min-height:",";max-height:calc("," * 3);overflow-y:hidden;}}.simple-field-leading{.icon-button{&:last-child{margin-",":0px;}}}.field-helper{display:block;.limit{margin-",":0px;padding-",":0px;}}}}.actions{display:flex;align-items:center;justify-content:flex-end;margin-top:",";gap:",";}&.in-footer-mobile{position:fixed;bottom:0;left:0;right:0;z-index:1;padding:"," "," calc("," + 56px) ",";margin:0;background:",";border-top:1px solid ",";}&.in-footer{margin-top:",";}",""],t[16],t.right,t[2],t.left,t[8],t[12],n.element.light,n.element.regular,t[4],t.right,i.lineHeight.singleLine.s,i.lineHeight.singleLine.s,t.left,t.right,t.right,t[8],t[6],t[12],t[12],t[12],t[12],n.background.base,n.border.light,t[12],l&&(0,p.css)(["opacity:0.6;pointer-events:none;"]))});let v="InsertComment",g=e=>{var t,n,c,p,g,f,x,y,b,w;let k;let{comment:C,isReply:j,inFooter:S,isEdit:I,commentText:_,parentCommentId:P,isDirtyReplyInput:R,isCommentReply:T,videohash:L,charLimit:N,updateList:E,getReplies:A,onClose:z,increaseReplyCnt:D,handleIsDirtyReplyInput:F}=e,{t:M}=(0,o.$G)(),G=(0,s.UOt)(),V=L||G,O=(0,r.NL)(),U=(0,s.s68)(e=>e.deviceSize),B=(0,s.s68)(e=>e.isLogin),$=(0,s.s68)(e=>e.openAuthModal),{ssVideoData:H,csVideoData:q}=(0,s.GY_)(V),{data:Z}=(0,s.Gi)(),Y=null==Z?void 0:null===(n=Z.data)||void 0===n?void 0:null===(t=n.profileInformation)||void 0===t?void 0:t.data,Q=null==Y?void 0:Y.pic_s,X=null==Y?void 0:Y.would_be_spammer_user,W=null==H?void 0:null===(c=H.data)||void 0===c?void 0:c.comment_enable,K=!!L||(null==q?void 0:null===(p=q.meta)||void 0===p?void 0:p.enable_video_comment),J=null==q?void 0:null===(g=q.data)||void 0===g?void 0:g.commentSendLink,ee=!!L||(null==H?void 0:null===(f=H.data)||void 0===f?void 0:f.isYours),et="mobile"===U,en=B&&Q||(0,a.kY)("/static/img/placeholders/avatar/avatar-is-channel.webp"),{data:ei,mutate:el,error:eo,isPending:ea}=(0,s.QTX)(),er=(0,l.useRef)(null),es=(0,l.useRef)(!1),[ed,ec]=(0,l.useState)(_||""),[eu,em]=(0,l.useState)(!1),[ep,eh]=(0,l.useState)(!1),ev=null==C?void 0:null===(y=C.channel)||void 0===y?void 0:null===(x=y.data)||void 0===x?void 0:x.id,{handleTextChange:eg,handleKeyDown:ef,containsBankOrPhoneNumber:ex,debouncedShowToast:ey}=(0,s._Mr)(ed,ec,er,N),eb=(0,l.useCallback)(e=>{eg(e)},[]),ew=(0,l.useCallback)(e=>{let t=e.target.value.length;!I&&S&&F&&(0===t&&F(!1),!R&&t>0&&F(!0)),eb(e)},[]),ek=(0,l.useCallback)(async()=>{let e=[s.U7p.videoCSR+V];O&&(await O.cancelQueries({queryKey:e}),O.setQueryData(e,e=>{var t;return{...e,data:{...null==e?void 0:e.data,comment_cnt:(0,s.SSU)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.comment_cnt,1)}}}))},[]),eC=()=>{if(S&&!I){if(j||T){D&&D(),A?A():E&&E();return}C&&("approve"!==W||ee)&&(0,m.CA)(V,O,null==C?void 0:C.id,{...C,reply_cnt:(+(null==C?void 0:C.reply_cnt)||0)+1});return}if(C&&S&&!j){(0,m.CA)(V,O,null==C?void 0:C.id,{...C,body:ed}),(0,m.Np)(O);return}E&&E(),ek()},ej=()=>{let e=document.getElementById(v);null==e||e.focus(),null==e||e.click()},eS=()=>S?I&&j?s.bVV.comment.updateReply:I?s.bVV.comment.updateComment:(0,s.vkz)(s.bVV.
1comment.replyV2,{videohash:V}):J,eI=()=>S?{body:ed,[j?"comment_reply_id":"comment_id"]:I?null==C?void 0:C.id:null,...!I&&{comment_id:P||(null==C?void 0:C.id),mentioned_user_id:j?ev:null}}:{commentbody:ed},e_=()=>{if(S){R&&F&&F(!1),z&&z();return}eh(!1),ec("")},eP=()=>{ec(""),S&&F&&F(!1),eh(!1),er.current&&(er.current.style.height="",er.current.style.overflowY="hidden")},eR=()=>{if(!er.current)return 0;let e=Number.parseFloat(window.getComputedStyle(er.current).lineHeight);return Number.isFinite(e)?e:0},eT=()=>{let e=er.current;if(!e)return;let t=eR(),n=3*t;e.style.height="".concat(t,"px");let i=Math.min(e.scrollHeight,n);e.style.height="".concat(i,"px"),e.style.overflowY=e.scrollHeight>n?"auto":"hidden"};return(0,l.useLayoutEffect)(()=>{er.current&&S&&(er.current.focus(),er.current.click())},[]),(0,l.useLayoutEffect)(()=>{eT()},[ed]),(0,l.useLayoutEffect)(()=>{!j&&er.current&&(er.current.id=v)},[j]),(0,l.useEffect)(()=>{var e;(null==ei?void 0:null===(e=ei.data)||void 0===e?void 0:e.message)&&(ey("successful",ei.data.message),eP(),eC(),S&&z&&z())},[ei]),(0,l.useEffect)(()=>{var e,t;(null==eo?void 0:null===(e=eo.errors[0])||void 0===e?void 0:e.detail)&&ey("danger",null==eo?void 0:null===(t=eo.errors[0])||void 0===t?void 0:t.detail)},[eo]),(0,l.useLayoutEffect)(()=>{I&&(ec(_||""),eT())},[I]),(0,l.useEffect)(()=>()=>{!I&&es.current&&ej()},[I]),(0,i.jsxs)(h,{className:(0,s.dhh)("comment-field-container",{"in-footer":S&&!et,"in-footer-mobile":S&&et}),$disabled:!K,children:[!I&&S&&et&&(0,i.jsxs)("div",{className:"form-head",children:[(0,i.jsxs)(d.ZT.Caption,{className:"label",children:[M("comments:replyTo")," "]}),(0,i.jsx)(d.ZT.Label,{className:"name",size:"xs",children:null==C?void 0:null===(w=C.channel)||void 0===w?void 0:null===(b=w.data)||void 0===b?void 0:b.displayName}),(0,i.jsx)(d.hU,{icon:"Close",variant:"transparent",size:"small",className:"close-button",onClick:()=>{es.current=!0,e_()}})]}),(0,i.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!ed){ey("danger",M("comments:fieldIsEmpty"));return}if(ex(ed)){ey("danger",M("comments:bankAccountOrPhoneNotAllowed"));return}el({method:"POST",url:eS(),reqData:eI()})},children:[(0,i.jsx)("div",{className:"comment-input-shell",children:(0,i.jsx)(d.vw,{name:"comment-insert",style:"outlined",isTextArea:!0,value:ed,placeholder:(k="insertComment","no"===W&&(k="commentDisabled"),S&&(k="insertReply"),K||(k="forcedCommentDisabled"),M("comments:".concat(k))),ref:er,onChange:ew,onInput:eT,onClick:e=>{if(!B){e.preventDefault(),$();return}X&&em(!0)},onFocus:()=>{if(!B){$();return}if(X){em(!0);return}ep||eh(!0)},disabled:!L&&(!K||"no"===W),onKeyDown:ef,limit:ep?N:void 0,trailingActions:[(0,i.jsx)(d.qE,{size:"tiny",state:en?"custom":"default",src:en,alt:(null==Y?void 0:Y.username)||""},"comment-avatar")]})}),ep&&(0,i.jsxs)("div",{className:"actions",children:[(0,i.jsx)(d.zx,{variant:"tertiary",buttonType:"themed",themeColor:"danger",startIcon:"Delete",size:"small",text:M("comments:cancelReply"),type:"button",onClick:e_}),(0,i.jsx)(d.zx,{text:I?M(j?"comments:editReply":"comments:editComment"):M(S?"comments:submitReply":"comments:postComment"),endIcon:"Left",size:"small",type:"submit",variant:"primary",buttonType:"natural",loading:ea})]})]}),eu&&(0,i.jsx)(u,{show:eu,onClose:()=>em(!1)})]})}},99771:function(e,t,n){n.d(t,{Comment:function(){return W},CommentV2:function(){return X}});var i=n(27573),l=n(7653),o=n(87590),a=n.n(o),r=n(96),s=n(49104),d=n(56683),c=n(78399);function u(){let e=(0,d._)(["\n grid-template-columns: "," minmax(0, 1fr);\n "]);return u=function(){return e},e}function m(){let e=(0,d._)(["\n column-gap: ",";\n "]);return m=function(){return e},e}let p="32px";var h=c.default.div.withConfig({componentId:"sc-98c531ce-0"})(["",""],e=>{let{theme:{space:t,color:n,mediaQuery:i},$showThreadLine:l}=e;return(0,c.css)(["display:grid;grid-template-columns:"," minmax(0,1fr);column-gap:",";position:relative;"," .avatar-column{position:relative;grid-column:1;grid-row:1;}.content-column{position:relative;grid-column:2;grid-row:1;min-width:0;.more-button{margin-",":",";}}> .replies-actions{grid-column:2;grid-row:2;}"," ",""],p,t[12],i("sm","max","list")(u(),"24px"),t.left,t[4],l&&(0,c.css)(["> .avatar-column::before{content:'';position:absolute;top:calc("," + ",");bottom:0;",":50%;transform:translateX(50%);width:1px;background:",";pointer-events:none;}"],p,t[8],t.right,n.border.light),i("sm","max","list")(m(),t[8]))}),v=e=>{let{text:t}=e,n=/\b((?:[01]?\d|2[0-3])?:)?[0-5]?\d:[0-5]\d\b/g,l=/((?:[Û°Û±]?[Û°-Û¹]|Û²[Û°-Û³])?:)?[Û°-Ûµ]?[Û°-Û¹]:[Û°-Ûµ][Û°-Û¹]/g,o=e=>{var t,n,i;return(0,r.FqC)((0,r.CAF)(e))<(null===(i=window)||void 0===i?void 0:null===(n=i.player)||void 0===n?void 0:null===(t=n.video)||void 0===t?void 0:t.duration)},a=e=>{let t=(0,r.CAF)(e),n=(0,r.FqC)(t);return o(t)&&(window.player.seekTo(n),(0,r.iZT)()),!1},s=(e=>{let t=l.test(e);return e.replace(t?l:n,"<b>$&<b>")})(t||"").split("<b>");return(0,i.jsx)(i.Fragment,{children:s.map((e,t)=>n.test(e)||l.test(e)?(0,i.jsx)("b",{className:"comment-desc-part is-duration",onClick:()=>a(e),role:"presentation",children:e},e+t):e)})};function g(){let e=(0,d._)(["\n margin-bottom: ",";\n "]);return g=function(){return e},e}var f=c.default.div.withConfig({componentId:"sc-6d01ae9a-0"})(["",""],e=>{let{theme:{space:t,color:n,mediaQuery:i}}=e;return(0,c.css)(["margin-bottom:",";overflow-wrap:break-word;word-break:break-word;color:",";"," .mention-name{margin-",":",";}.is-duration{color:",";font-weight:bold;cursor:pointer;}.body{margin:0;&.dir-ltr{direction:ltr;}}"],t[12],n.element.regular,i("sm","max","list")(g(),t[8]),t.left,t[4],n.accent.secondary.regular)});let x=e=>{let{text:t,mentionedName:n}=e,l=(0,r.s68)(e=>e.deviceSize);return(0,i.jsxs)(f,{className:"comment-body-wrapper",children:[n&&(0,i.jsx)(s.Ct,{variant:"default",size:"small",className:"mention-name",text:n}),(0,i.jsx)(s.ZT.Paragraph,{size:"mobile"===l?"small":"medium",className:(0,r.dhh)("body",{}),children:(0,i.jsx)(v,{text:(0,r.yH)(t||"")})})]})};var y=n(65123),b=n(45400);let w=e=>{let{likeCnt:t="0",likeData:n}=e,o=(0,r.s68)(e=>e.isLogin),a=(0,r.s68)(e=>e.openAuthModal),[d,c]=(0,l.useState)({link:null==n?void 0:n.link,status:null==n?void 0:n.status,cnt:t});(0,l.useEffect)(()=>{c({link:null==n?void 0:n.link,status:null==n?void 0:n.status,cnt:t})},[t,null==n?void 0:n.link,null==n?void 0:n.status]);let u=(null==d?void 0:d.status)==="like",{mutate:m,isPending:p}=(0,r.QTX)({onSuccess:e=>{(null==e?void 0:e.data)&&c(e.data)}}),h=()=>
1{if(!o){a();return}m({url:d.link})};return+d.cnt?(0,i.jsx)(s.zx,{variant:u?"secondary":"tertiary",buttonType:"natural",size:"small",startIcon:u?"FavoriteFilled":"Favorite",themeColor:u?"danger":"aparat",text:d.cnt,onClick:h,loading:p}):(0,i.jsx)(s.hU,{icon:u?"FavoriteFilled":"Favorite",variant:u?"secondary":"tertiary",size:"small",themeColor:u?"danger":"aparat",onClick:h,loading:p})};var k=n(12775),C=n(59764);let j=e=>{let{comment:t,isReply:n,videohash:o,updateList:a}=e,d=(0,r.UOt)(),c=o||d,u=(0,k.NL)(),{t:m}=(0,y.$G)(),p=(0,r.tJr)(),h=(0,l.useRef)("yes"),{data:v,mutate:g,isPending:f}=(0,r.QTX)(),x=e=>{n||(0,C.CA)(c,u,null==t?void 0:t.id,{...t,need_approve:(null==e?void 0:e.approve)==="no",approve_link_text:null==e?void 0:e.text,approve_link_href:null==e?void 0:e.link_undo}),(0,C.nB)(u,a)};return(0,l.useEffect)(()=>{if(!v)return;let e=h.current,i="yes"===e?"no":"yes";x(null==v?void 0:v.data),p({message:m("yes"===e?"dashboard:commentsPage.approveSuccess":"dashboard:commentsPage.unapproveSuccess"),icon:"Tick",onUndo:()=>{var e;(0,C.tD)({commentId:String(null!==(e=null==t?void 0:t.id)&&void 0!==e?e:""),type:i,isReply:n}).then(e=>{let l=null==e?void 0:e.data;if(!n){var o,r;(0,C.CA)(c,u,null==t?void 0:t.id,{...t,need_approve:(null==l?void 0:l.approve)==="no"||"no"===i,approve_link_text:null!==(o=null==l?void 0:l.text)&&void 0!==o?o:null==t?void 0:t.approve_link_text,approve_link_href:null!==(r=null==l?void 0:l.link_undo)&&void 0!==r?r:null==t?void 0:t.approve_link_href})}(0,C.nB)(u,a)})}})},[v]),(0,i.jsx)(s.zx,{variant:"primary",buttonType:"natural",size:"small",startIcon:"Tick",text:(0,r.yH)(null==t?void 0:t.approve_link_text),onClick:()=>{let e=(null==t?void 0:t.need_approve)?"yes":"no";h.current=e,g({url:r.bVV.comment.approveManyNew,method:"POST",reqData:{[n?"reply_comment_ids":"comment_ids"]:null==t?void 0:t.id,type:e}})},loading:f})};var S=n(64070);let I=(0,S.default)(()=>n.e(6246).then(n.bind(n,68783)).then(e=>e.DeleteCommentModalV2),{loadableGenerated:{webpack:()=>[68783]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),_=e=>{let{show:t,comment:n,isReply:l,onClose:o,decreaseReplyCnt:a,updateList:r}=e;return(0,i.jsx)(I,{show:t,onClose:o,comment:n,isReply:l,decreaseReplyCnt:a,updateList:r})},P=e=>{let{comment:t,isReply:n,decreaseReplyCnt:o,updateList:a}=e,{t:r}=(0,y.$G)(),[d,c]=(0,l.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.zx,{variant:"tertiary",buttonType:"natural",size:"small",startIcon:"Delete",text:r("comments:".concat(n?"deleteReply":"deleteComment")),onClick:()=>c(!0)}),d&&(0,i.jsx)(_,{show:d,onClose:()=>c(!1),comment:t,isReply:n,decreaseReplyCnt:o,updateList:a})]})};var R=c.default.div.withConfig({componentId:"sc-ecae2da2-0"})(["",""],e=>{let{theme:{space:t}}=e;return(0,c.css)(["display:flex;align-items:center;flex-wrap:wrap;gap:",";.comment-field-container{width:100%;}"],t[6])});let T=e=>{let{comment:t,canShowInput:n,isReply:o,isEdit:a,parentCommentId:d,isDirtyReplyInput:c,isCommentReply:u,videohash:m,charLimit:p,updateList:h,getReplies:v,updateActiveInputId:g,handleIsEdit:f,increaseReplyCnt:x,decreaseReplyCnt:k,handleIsDirtyReplyInput:C}=e,{t:S}=(0,y.$G)(),I=(0,r.pmc)(),_=(0,r.s68)(e=>e.isLogin),T=(0,r.s68)(e=>e.openAuthModal),[L,N]=(0,l.useState)(!1),E=null==t?void 0:t.isYours,A=!(null==t?void 0:t.need_approve),z=(null==t?void 0:t.deleted)!=="no",D=!L&&A,F=E&&(null==t?void 0:t.approve_link_text)&&!A,M=(null==t?void 0:t.delete_url)&&E&&!A,G=()=>I({type:"info",title:S("comments:draftedComment"),message:S("comments:draftedCommentDesc"),icon:"Info"}),V=()=>{if(!_){T();return}if(c){G();return}g&&g("".concat(o?"reply":"comment","-").concat(+(null==t?void 0:t.id)))};return((0,l.useEffect)(()=>{N(n),!n&&f&&f(!1)},[n]),(0,l.useEffect)(()=>{a&&V()},[a]),z)?null:(0,i.jsxs)(R,{className:"footer",children:[A&&(0,i.jsx)(w,{likeCnt:null==t?void 0:t.like_cnt,likeData:null==t?void 0:t.like}),D&&(0,i.jsx)(s.zx,{variant:"tertiary",buttonType:"natural",size:"small",startIcon:"Comments",text:S("comments:reply"),onClick:V}),F&&(0,i.jsx)(j,{comment:t,isReply:o,videohash:m,updateList:h}),M&&(0,i.jsx)(P,{comment:t,isReply:o,updateList:h,decreaseReplyCnt:k}),L&&(0,i.jsx)(b.DynamicInsertComment,{comment:t,isReply:o,isEdit:a,inFooter:!0,isCommentReply:u,commentText:a?null==t?void 0:t.body:"",parentCommentId:d,videohash:m,increaseReplyCnt:x,onClose:()=>{C&&C(!1),g&&g(null)},updateList:h,getReplies:v,charLimit:p,isDirtyReplyInput:c,handleIsDirtyReplyInput:C,showIsDirtyInputToast:G})]})};var L=n(31384);function N(){let e=(0,d._)(["\n margin-bottom: ",";\n "]);return N=function(){return e},e}var E=c.default.div.withConfig({componentId:"sc-a8f8dbf6-0"})(["",""],e=>{let{theme:{space:t,color:n,mediaQuery:i}}=e;return(0,c.css)(["display:flex;align-items:center;margin-bottom:",";gap:",";flex-wrap:wrap;"," .channel-name{display:flex;align-items:center;gap:",";text-decoration:none;}.head-item{&.has-dot{gap:",";&::after{content:'â¢';display:flex;color:",";}}}.badge-item{margin-",":",";}"],t[8],t[4],i("sm","max","list")(N(),t[4]),t[4],t[6],n.element.ghost,t.left,t[4])});let A=e=>{var t;let{channel:n,commentDate:l,isPin:o,needApprove:a,isNew:d,deletedBy:c}=e,{t:u}=(0,y.$G)(),m=(0,r.s68)(e=>e.deviceSize),p=(0,r.s68)(e=>e.deviceType),h="mobile"===m?"small":"medium",v=(0,r.Cfs)((0,r.qXE)("/".concat(null==n?void 0:n.username)),"profile",p),g=0!==Number(null==n?void 0:n.video_cnt),f=null!==(t=null==n?void 0:n.displayName)&&void 0!==t?t:"",x=()=>{let e="";return"by_operator"===c&&(e="deletedByOperator"),"by_sender"===c&&(e="deletedBySender"),"by_receiver"===c&&(e="deletedByReceiver"),e},b=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KF,{label:f,size:h}),(0,i.jsx)(L.ChannelPriority,{priority:null==n?void 0:n.priority,iconWidth:"16",iconHeight:"16"})]});return(0,i.jsxs)(E,{className:"head",children:[g?(0,i.jsx)(s.rU,{className:"channel-name head-item".concat(l?" has-dot":""),href:v,children:b}):(0,i.jsx)("span",{className:"channel-name head-item".concat(l?" has-dot":""),children:b}),!!l&&(0,i.jsx)(s.KF,{label:l,size:h}),o&&(0,i.jsx)(s.Ct,{className:"badge-item",size:"small",variant:"default",leadingIcon:"Pin",text:u("comments:isPinned")}),a&&(0,i.jsx)(s.Ct,{className:"badge-item",size:"small",variant:"info",text:u("comments:needApprove")}),d&&(0,i.jsx)(s.Ct,{className:"badge-item",size:"small",variant:"info",text:u("comments:newComment")}),"no"!==c&&x()&&(0,i.jsx)(s.Ct,{className:"badge-item",size:"small",variant:"alert",text:u("comments:".concat(x()))})]})};var z=n(51366);let D=(0,S.default)(()=>n.e(2380).then(n.bind(n,15264)).then(e=>
1e.SpamModalV2),{loadableGenerated:{webpack:()=>[15264]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),F=e=>{let{show:t,onClose:n,spamData:l,onUpdateSpam:o}=e;return(0,i.jsx)(D,{show:t,onClose:n,spamData:l,onUpdateSpam:o})};var M=c.default.div.withConfig({componentId:"sc-29e5dec2-0"})(["",""],e=>{let{theme:{space:t}}=e;return(0,c.css)(["position:absolute;top:-",";",":-",";.list-item{padding:"," ",";}"],t[4],t.left,t[4],t[8],t[10])});let G=(0,c.default)(s.HC).withConfig({componentId:"sc-29e5dec2-1"})(["",""],e=>{let{theme:{color:t,space:n}}=e;return(0,c.css)(["padding:"," ",";color:",";.icon-start,.title{color:",";}"],n[8],n[10],t.system.danger.bold,t.system.danger.bold)}),V=e=>{var t,n,o,a;let{comment:d,isReply:c,videohash:u,decreaseReplyCnt:m,updateList:p,handleIsEdit:h}=e,{t:v}=(0,y.$G)(),g=(0,r.UOt)(),f=u||g,x=(0,r.pmc)(),b=(0,r.tJr)(),w=(0,k.NL)(),j=(0,r.eIi)(z.AV.xs.max),{data:S}=(0,r.Gi)(),I=null==S?void 0:null===(n=S.data)||void 0===n?void 0:null===(t=n.profileInformation)||void 0===t?void 0:t.data,{data:P,mutate:R}=(0,r.QTX)(),{data:T,mutate:L,error:N}=(0,r.QTX)(),{mutate:E,error:A,data:D}=(0,r.QTX)(),V=(0,l.useRef)(!1),O="string"!=typeof(null==d?void 0:d.spam)?null==d?void 0:d.spam:{},U=(null==d?void 0:null===(a=d.channel)||void 0===a?void 0:null===(o=a.data)||void 0===o?void 0:o.username)===(null==I?void 0:I.username),[B,$]=(0,l.useState)(O),[H,q]=(0,l.useState)(!1),[Z,Y]=(0,l.useState)(!1),[Q,X]=(0,l.useState)(!1),W=()=>{(null==d?void 0:d.report_url)?L({url:null==d?void 0:d.report_url}):x({type:"danger",message:v("comments:wasReported")})},K=()=>{E({url:null==d?void 0:d.pin_link})},J=()=>{V.current=!0,R({url:r.bVV.comment.approveManyNew,method:"POST",reqData:{[c?"reply_comment_ids":"comment_ids"]:null==d?void 0:d.id,type:"no"}})},ee=e=>{c||(0,C.CA)(f,w,null==d?void 0:d.id,{...d,need_approve:(null==e?void 0:e.approve)==="no",approve_link_text:null==e?void 0:e.text,approve_link_href:null==e?void 0:e.link_undo}),(0,C.nB)(w,p)};(0,l.useEffect)(()=>{if(null==T?void 0:T.data){var e;x({type:"successful",message:null===(e=T.data)||void 0===e?void 0:e.message})}},[T]),(0,l.useEffect)(()=>{var e,t;(null==N?void 0:null===(e=N.errors[0])||void 0===e?void 0:e.status)===403&&x({type:"danger",message:null===(t=N.errors[0])||void 0===t?void 0:t.detail})},[N]),(0,l.useEffect)(()=>{var e;(null==A?void 0:null===(e=A.errors[0])||void 0===e?void 0:e.status)===400&&x({type:"danger",message:null==A?void 0:A.errors[0].detail})},[A]),(0,l.useEffect)(()=>{P&&(ee(null==P?void 0:P.data),V.current&&(V.current=!1,b({message:v("dashboard:commentsPage.unapproveSuccess"),icon:"Tick",onUndo:()=>{var e;(0,C.tD)({commentId:String(null!==(e=null==d?void 0:d.id)&&void 0!==e?e:""),type:"yes",isReply:c}).then(e=>{let t=null==e?void 0:e.data;if(!c){var n,i;(0,C.CA)(f,w,null==d?void 0:d.id,{...d,need_approve:(null==t?void 0:t.approve)==="no",approve_link_text:null!==(n=null==t?void 0:t.text)&&void 0!==n?n:null==d?void 0:d.approve_link_text,approve_link_href:null!==(i=null==t?void 0:t.link_undo)&&void 0!==i?i:null==d?void 0:d.approve_link_href})}(0,C.nB)(w,p)})}})))},[P]),(0,l.useEffect)(()=>{var e;if(!D)return;(0,C.nB)(w,p);let t=null==D?void 0:null===(e=D.data)||void 0===e?void 0:e.link_undo;t&&b({message:v((null==d?void 0:d.is_pinned)?"comments:unpinSuccess":"comments:pinSuccess"),icon:"Pin",onUndo:()=>{(0,C.sY)(t).then(()=>{(0,C.nB)(w,p)})}})},[D]);let et=(()=>{var e;let t=[];return(null==d?void 0:d.pin_link)&&t.push({id:"pinComment".concat(d.id),text:v("comments:".concat((null==d?void 0:d.is_pinned)?"unpin":"pin")),iconStart:"Pin",onClick:K}),U&&t.push({id:"editComment".concat(null==d?void 0:d.id),text:v("comments:".concat(c?"editReply":"editComment")),iconStart:"Edit",onClick:()=>{h&&h(!0)}}),(null==d?void 0:d.isYours)&&(null==d?void 0:d.approve_link_text)&&!(null==d?void 0:d.need_approve)&&t.push({id:"approveComment".concat(d.id),text:(0,r.yH)(d.approve_link_text),iconStart:"Tick",onClick:J}),(null==d?void 0:d.isYours)&&(null==d?void 0:null===(e=d.spam)||void 0===e?void 0:e.link)&&!U&&t.push({id:"spamComment".concat(d.id),text:(0,r.yH)(B.title),iconStart:"Block",onClick:()=>{q(!0)}}),U||(null==d?void 0:d.isOwnerComment)||t.push({id:"reportComment".concat(null==d?void 0:d.id),text:v("comments:reportComment"),iconStart:"Flag",onClick:W}),((null==I?void 0:I.isOperator)||U||(null==d?void 0:d.isYours)&&(null==d?void 0:d.approved)==="yes")&&(null==d?void 0:d.delete_url)&&t.push({id:"deleteComment".concat(d.id),text:v("comments:deleteMessage"),iconStart:"Delete",danger:!0,onClick:()=>{Y(!0)}}),t})(),en=()=>X(!1),ei=(e,t)=>et.map(n=>{let l=n.danger?G:s.HC;return(0,i.jsx)(l,{title:n.text,iconStart:n.iconStart,size:e,onClick:()=>{null==t||t(),n.onClick()}},n.id)});return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(M,{className:"more-button",children:[j?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.hU,{icon:"Misc",size:"small",variant:"transparent",onClick:()=>X(!0)}),(0,i.jsx)(s.u_,{className:"more-button__actions-sheet",show:Q,onClose:en,hasBottomSheet:!0,hasGrip:!0,children:ei("medium",en)})]}):(0,i.jsx)(s.Lt,{trigger:(0,i.jsx)(s.hU,{icon:"Misc",size:"small",variant:"transparent"}),width:"236px",align:"end",children:ei("small")}),H&&(0,i.jsx)(F,{show:H,onClose:()=>q(!1),spamData:B,onUpdateSpam:e=>
1{$(e),(0,C.nB)(w,p)}}),Z&&(0,i.jsx)(_,{show:Z,onClose:()=>Y(!1),comment:d,isReply:c,decreaseReplyCnt:m,updateList:p})]})})},O=e=>{var t;let{comment:n,hasMoreButton:o=!0,hasFooter:a=!0,isReply:d,showThreadLine:c,activeInputId:u,parentCommentId:m,isDirtyReplyInput:p,videohash:v,charLimit:g,decreaseReplyCnt:f,increaseReplyCnt:y,updateList:b,getReplies:w,updateActiveInputId:k,handleIsDirtyReplyInput:C,children:j,repliesActions:S}=e,[I,_]=(0,l.useState)(!1),P=(0,r.s68)(e=>e.deviceSize),R="".concat(d?"reply":"comment","-").concat(+(null==n?void 0:n.id))===u,L=(null==n?void 0:n.deleted)!=="no",N=null==n?void 0:null===(t=n.channel)||void 0===t?void 0:t.data,E=e=>_(e),z=(null==n?void 0:n.unread)===!0||(null==n?void 0:n.unread)==="true"||(null==n?void 0:n.unread)===1||(null==n?void 0:n.unread)==="1"||(null==n?void 0:n.unread)==="yes";return(0,i.jsxs)(h,{className:"comment-content",$showThreadLine:c,children:[(0,i.jsx)("div",{className:"avatar-column",children:(0,i.jsx)(s.qE,{size:"mobile"===P?"tiny":"small",state:(null==N?void 0:N.avatar)?"custom":"default",src:null==N?void 0:N.avatar,alt:(null==N?void 0:N.username)||""})}),(0,i.jsxs)("div",{className:"content-column",children:[(0,i.jsx)(A,{channel:N,commentDate:null==n?void 0:n.sdate,isPin:null==n?void 0:n.is_pinned,needApprove:null==n?void 0:n.need_approve,isNew:z,deletedBy:null==n?void 0:n.deleted}),(0,i.jsx)(x,{text:null==n?void 0:n.body,mentionedName:null==n?void 0:n.mentioned_name}),a&&(0,i.jsx)(T,{comment:n,isCommentReply:!0,isReply:d,isEdit:I,canShowInput:R,videohash:v,updateActiveInputId:k,handleIsEdit:E,increaseReplyCnt:y,decreaseReplyCnt:f,updateList:b,getReplies:w,parentCommentId:m,isDirtyReplyInput:p,handleIsDirtyReplyInput:C,charLimit:g}),o&&!L&&(0,i.jsx)(V,{comment:n,isReply:d,videohash:v,decreaseReplyCnt:f,updateList:b,handleIsEdit:E}),j]}),S]})},U=c.default.div.withConfig({componentId:"sc-12c07b4-0"})(["",""],e=>{let{$height:t,$duration:n,$isOpen:i}=e;return(0,c.css)(["overflow:hidden;height:",";transition:height ","ms ease;"],i?"".concat(t,"px"):"0",n)}),B=e=>{let{isOpen:t,children:n,duration:o=300,className:a}=e,r=(0,l.useRef)(null),[s,d]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=r.current;if(!e)return;let t=()=>d(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[n,t]),(0,i.jsx)(U,{className:a,$height:s,$duration:o,$isOpen:t,children:(0,i.jsx)("div",{ref:r,children:n})})};function $(){let e=(0,d._)(["\n column-gap: ",";\n "]);return $=function(){return e},e}var H=c.default.div.withConfig({componentId:"sc-df96405a-0"})(["",""],e=>{let{theme:{space:t,color:n,mediaQuery:i}}=e;return(0,c.css)(["&.replies-actions{.show-reply-button,.hide-reply-button{padding:"," ",";color:",";height:20px;.icon{color:",";}&:hover{background:transparent;}}.show-reply-button{margin-top:",";}.hide-reply-button{margin-top:",";}}&.replies-wrapper{.collapsible-inner{padding-top:",";.replies{padding-",":",";.reply-list{.comment-content{margin-bottom:",";&:last-child{margin-bottom:0;}","}}}}}"],t[2],t[4],n.accent.secondary.regular,n.accent.secondary.regular,t[12],t[8],t[24],t.right,t[12],t[24],i("sm","max","list")($(),t[8]))});let q=e=>{var t;let{replyCnt:n,repliesData:l,commentId:o,activeInputId:a,charLimit:r,videohash:s,isDirtyReplyInput:d,isDeleted:c,showReplies:u,decreaseReplyCnt:m,increaseReplyCnt:p,updateActiveInputId:h,handleIsDirtyReplyInput:v,getReplies:g}=e;return!n||c?null:(0,i.jsx)(H,{className:"replies-wrapper",children:(0,i.jsx)(B,{isOpen:u,children:(0,i.jsx)("div",{className:"collapsible-inner",children:(0,i.jsx)("div",{className:"replies",children:(0,i.jsx)("div",{className:"reply-list",children:null===(t=(null==l?void 0:l.data)||[])||void 0===t?void 0:t.map(e=>(0,i.jsx)(O,{comment:e,activeInputId:a,isReply:!0,isDirtyReplyInput:d,parentCommentId:o,updateList:g,getReplies:g,decreaseReplyCnt:m,increaseReplyCnt:p,updateActiveInputId:h,handleIsDirtyReplyInput:v,videohash:s,charLimit:r},"comment-".concat(o,"-reply-").concat(null==e?void 0:e.id)))})})})})})},Z=e=>{let{replyCnt:t,isDeleted:n,repliesLoading:l,showReplies:o,setShowReplies:a,setEnableReplyQuery:r}=e,{t:d}=(0,y.$G)();if(!t||n)return null;
1let c=()=>{o?(r&&r(!1),a(!1)):(r&&r(!0),a(!0))};return(0,i.jsx)(H,{className:"replies-actions",children:o?(0,i.jsx)(s.zx,{className:"hide-reply-button",size:"small",text:d("comments:closeReplies",{cnt:t}),endIcon:"Up",onClick:c,variant:"transparent",buttonType:"natural",themeColor:"highlight"}):(0,i.jsx)(s.zx,{className:"show-reply-button",size:"small",text:d("comments:showReplies",{cnt:t}),endIcon:"Down",onClick:c,variant:"transparent",buttonType:"natural",themeColor:"highlight",loading:l})})};function Y(){let e=(0,d._)(["\n --comment-v2-pad-inline: ",";\n padding: var(--comment-v2-pad-top) var(--comment-v2-pad-inline) var(--comment-v2-pad-bottom);\n "]);return Y=function(){return e},e}n(83491);var Q=c.default.div.withConfig({componentId:"sc-6bbed4e0-0"})(["",""],e=>{let{theme:{space:t,mediaQuery:n}}=e;return(0,c.css)(["--comment-v2-pad-top:",";--comment-v2-pad-inline:",";--comment-v2-pad-bottom:",";position:relative;padding:var(--comment-v2-pad-top) var(--comment-v2-pad-inline) var(--comment-v2-pad-bottom);",""],t[16],t[20],t[24],n("xxs","max")(Y(),t[16]))});let X=(0,l.memo)(e=>{let{comment:t,activeInputId:n,charLimit:o,videohash:a,isDirtyReplyInput:s,updateList:d,updateActiveInputId:c,handleIsDirtyReplyInput:u}=e,m=(0,r.UOt)(),p=a||m,[h,v]=(0,l.useState)(Number(+(null==t?void 0:t.reply_cnt))),[g,f]=(0,l.useState)(!1),[x,y]=(0,l.useState)(!1),{data:b,isLoading:w,refetch:k}=(0,C.WN)(p,(null==t?void 0:t.id)||"",g),j=()=>{v(e=>e+1)},S=()=>{v(e=>e-1)},I=x&&h>0&&(null==t?void 0:t.deleted)==="no",_={replyCnt:null==h?void 0:h.toString(),repliesData:b,repliesLoading:w,getReplies:k,setEnableReplyQuery:f,commentId:null==t?void 0:t.id,activeInputId:n,updateActiveInputId:c,charLimit:o,videohash:p,isDirtyReplyInput:s,handleIsDirtyReplyInput:u,isDeleted:(null==t?void 0:t.deleted)!=="no",increaseReplyCnt:j,decreaseReplyCnt:S,showReplies:x,setShowReplies:y};return(0,i.jsx)(Q,{className:"comment comment-v2",children:(0,i.jsx)(O,{comment:t,activeInputId:n,updateList:d,getReplies:k,updateActiveInputId:c,charLimit:o,videohash:p,isDirtyReplyInput:s,handleIsDirtyReplyInput:u,increaseReplyCnt:j,decreaseReplyCnt:S,showThreadLine:I,repliesActions:h>0?(0,i.jsx)(Z,{..._}):null,children:h>0?(0,i.jsx)(q,{..._}):null})})},(e,t)=>a()(e,t)),W=X},44698:function(e,t,n){n.d(t,{DynamicComments:function(){return s},DynamicCommentsV2:function(){return r}});var i=n(27573),l=n(64070),o=n(16676);let a=(0,l.default)(()=>n.e(398).then(n.bind(n,95774)).then(e=>e.CommentsV2),{loadableGenerated:{webpack:()=>[95774]},ssr:!1,loading:()=>(0,i.jsx)(o.CommentListSkeleton,{})}),r=e=>{let{commentList:t,isLoading:n,hasMoreComments:l,isFetchingNextPage:o,charLimit:r,getComments:s,getMoreComments:d}=e;return(0,i.jsx)(a,{commentList:t,isLoading:n,charLimit:r,hasMoreComments:l,isFetchingNextPage:o,getMoreComments:d,getComments:s})},s=r},16676:function(e,t,n){n.r(t),n.d(t,{AvatarSkeleton:function(){return m},CommentInsertSkeleton:function(){return x},CommentListSkeleton:function(){return f},CommentRowSkeleton:function(){return a},CommentsSkeleton:function(){return y},InfoSkeleton:function(){return d},InsertAvatarSkeleton:function(){return v},InsertBoxSkeleton:function(){return h},InsertRowSkeleton:function(){return p},LeftSide:function(){return r},LikeSkeleton:function(){return u},MessageSkeleton:function(){return c},RightSide:function(){return s},StyledCommentsSkeleton:function(){return o}});var i=n(27573),l=n(78399);let o=l.default.div.withConfig({componentId:"sc-8d7a8b18-0"})(["",""],()=>(0,l.css)(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;& > *{&:not(:last-child){margin-bottom:15px;}}"])),a=l.default.div.withConfig({componentId:"sc-8d7a8b18-1"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:flex;align-items:center;width:100%;padding:1.5em 0;border-bottom:1px solid ",";"],t.border.light)}),r=l.default.div.withConfig({componentId:"sc-8d7a8b18-2"})(["",""],()=>(0,l.css)(["display:flex;flex-direction:column;width:90%;height:80px;padding:0 0.5em;& > *{&:not(:last-child){margin-bottom:1em;}}"])),s=l.default.div.withConfig({componentId:"sc-8d7a8b18-3"})(["",""],()=>(0,l.css)(["display:flex;justify-content:center;width:auto;height:80px;padding:0 0 0 0.5em;"])),d=l.default.div.withConfig({componentId:"sc-8d7a8b18-4"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:inline-block;width:20%;height:28px;background-color:",";border-radius:5px;"],t.background.ghost)}),c=l.default.div.withConfig({componentId:"sc-8d7a8b18-5"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:inline-block;width:80%;height:32px;background-color:",";border-radius:5px;"],t.background.ghost)}),u=l.default.div.withConfig({componentId:"sc-8d7a8b18-6"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:inline-block;width:4%;height:27px;background-color:",";border-radius:5px;"],t.background.ghost)}),m=l.default.div.withConfig({componentId:"sc-8d7a8b18-7"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:inline-block;width:32px;height:32px;background-color:",";border-radius:100%;"],t.background.ghost)}),p=l.default.div.withConfig({componentId:"sc-8d7a8b18-8"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:flex;align-items:flex-start;width:100%;height:80px;
1gap:1em;padding:1.5em 0;border-top:1px solid ",";"],t.border.light)}),h=l.default.div.withConfig({componentId:"sc-8d7a8b18-9"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:inline-block;width:100%;height:44px;background-color:",";border-radius:5px;"],t.background.ghost)}),v=l.default.div.withConfig({componentId:"sc-8d7a8b18-10"})(["",""],e=>{let{theme:{color:t}}=e;return(0,l.css)(["display:inline-block;width:39px;height:38px;background-color:",";border-radius:100%;"],t.background.ghost)}),g=()=>(0,i.jsxs)(a,{children:[(0,i.jsx)(s,{children:(0,i.jsx)(m,{})}),(0,i.jsxs)(r,{children:[(0,i.jsx)(d,{}),(0,i.jsx)(c,{}),(0,i.jsx)(u,{})]})]}),f=()=>(0,i.jsx)(o,{children:[1,2,3,4].map(e=>(0,i.jsx)(g,{},"comment-skeleton-".concat(e)))}),x=()=>(0,i.jsx)(o,{children:(0,i.jsx)(p,{children:(0,i.jsx)(h,{})})}),y=()=>(0,i.jsxs)(o,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(h,{})}),[1,2,3,4].map(e=>(0,i.jsx)(g,{},"comment-skeleton-".concat(e)))]})},59764:function(e,t,n){n.d(t,{CA:function(){return o},Np:function(){return a},WN:function(){return u},nB:function(){return r},sY:function(){return d},tD:function(){return s}});var i=n(96),l=n(12775);let o=(e,t,n,l)=>{t.setQueryData([i.U7p.comment,e],e=>(null==e?void 0:e.pages)?{pageParams:e.pageParams,pages:e.pages.map(e=>{var t;return{...e,data:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.map(e=>(null==e?void 0:e.id)===n?l:e)}})}:e)},a=e=>{e.invalidateQueries({queryKey:[i.U7p.dashboardCommentsList]}),e.invalidateQueries({queryKey:[i.U7p.dashboardCommentsSpamList]}),e.invalidateQueries({queryKey:[i.U7p.dashboardCommentsSpamUsers]})},r=(e,t)=>{if(t){t();return}a(e)},s=async e=>{let{commentId:t,type:n,isReply:l}=e;return(0,i.NqS)((0,i.oeL)(i.bVV.comment.approveManyNew),{method:"POST",body:JSON.stringify({[l?"reply_comment_ids":"comment_ids"]:t,type:n})})},d=e=>(0,i.NqS)((0,i.oeL)(e)),c=(e,t)=>(0,i.NqS)((0,i.oeL)((0,i.vkz)(i.bVV.comment.listReplies,{commentId:t||"",videohash:e}))),u=(e,t,n)=>(0,l.aM)({queryKey:[i.U7p.comment,e,t],queryFn:()=>c(e,t),enabled:n,gcTime:0})},7501:function(e,t,n){n.d(t,{V:function(){return T}});var i=n(27573),l=n(7653),o=n(78399),a=o.default.div.withConfig({componentId:"sc-639c9af9-0"})(["",""],()=>(0,o.css)(["position:relative;"])),r=n(8794),s=n(96),d=e=>{let{text:t}=e,n=/\b((?:[01]?\d|2[0-3])?:)?[0-5]?\d:[0-5]\d\b/g,l=/((?:[Û°Û±]?[Û°-Û¹]|Û²[Û°-Û³])?:)?[Û°-Ûµ]?[Û°-Û¹]:[Û°-Ûµ][Û°-Û¹]/g,o=e=>{var t,n,i;return(0,s.FqC)((0,s.CAF)(e))<(null===(i=window)||void 0===i?void 0:null===(n=i.player)||void 0===n?void 0:null===(t=n.video)||void 0===t?void 0:t.duration)},a=e=>{let t=(0,s.CAF)(e),n=(0,s.FqC)(t);return o(t)&&(window.player.seekTo(n),(0,s.iZT)()),!1},r=(e=>{let t=l.test(e);return e.replace(t?l:n,"<b>$&<b>")})(t||"").split("<b>");return(0,i.jsx)(i.Fragment,{children:r.map((e,t)=>n.test(e)||l.test(e)?(0,i.jsx)("b",{className:"comment-desc-part is-duration",onClick:()=>a(e),role:"presentation",children:e},e+t):e)})},c=o.default.div.withConfig({componentId:"sc-4752a137-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,o.css)(["margin-bottom:",";overflow-wrap:break-word;word-break:break-word;color:",";.mention-name{margin-",":5px;}.is-duration{color:",";font-weight:bold;cursor:pointer;}.body{&.dir-ltr{direction:ltr;}}"],t.sm,n.background[80],t.left,n.secondary.secondary)});let u=e=>{let t,{text:n="",mentionedName:l}=e;return(0,i.jsxs)(c,{className:"comment-body-wrapper",children:[l&&(0,i.jsx)(r.Ct,{color:"lightGray",size:"sm",className:"mention-name",children:l}),(0,i.jsx)(r.ZT.Body,{size:"2",className:(0,s.dhh)("body",{"dir-ltr":(t=(0,s.yH)(n||"").split(" ")[0],/^[A-Za-z]+$/.test(t))}),"aria-label":(0,s.yH)(n),tabIndex:0,children:(0,i.jsx)(d,{text:(0,s.yH)(n||"")})})]})};var m=n(3458),p=n(65123),h=n(33346),v=n(55855);let g=e=>{let{likeCnt:t="0",likeData:n}=e,{t:o}=(0,p.$G)(),a=(0,s.s68)(e=>e.isLogin),d=(0,s.s68)(e=>e.openAuthModal),[c,u]=(0,l.useState)({link:null==n?void 0:n.link,status:null==n?void 0:n.status,cnt:t}),m=(null==c?void 0:c.status)==="like",h=o("common:accessibilityLabel.numberOfLike",{number:c.cnt||""}),v="".concat(o("common:accessibilityLabel.".concat(m?"liked":"like")),"Ø ").concat(h),{mutate:g,isPending:f}=(0,s.QTX)({onSuccess:e=>{(null==e?void 0:e.data)&&u(e.data)}}),x=()=>
1{if(!a){d();return}g({url:c.link})};return+c.cnt?(0,i.jsx)(r.zx,{buttonStyle:m?"secondary":"tertiary",size:"sm",iconStart:m?"FavoriteFilled":"Favorite",buttonType:m?"red":"neutral",text:c.cnt,onClick:x,loading:f,"aria-label":v}):(0,i.jsx)(r.hU,{icon:m?"FavoriteFilled":"Favorite",buttonStyle:m?"secondary":"tertiary",size:"sm",buttonType:m?"red":"neutral",onClick:x,loading:f,"aria-label":v})};var f=n(12775),x=n(15195);let y=e=>{let{comment:t,isReply:n,updateList:o}=e,a=(0,s.UOt)(),d=(0,f.NL)(),{data:c,mutate:u,isPending:m}=(0,s.QTX)(),p=e=>{if(n){null==o||o();return}(0,x.CA)(a,d,null==t?void 0:t.id,{...t,need_approve:(null==e?void 0:e.approve)==="no",approve_link_text:null==e?void 0:e.text,approve_link_href:null==e?void 0:e.link_undo})};return(0,l.useEffect)(()=>{c&&p(null==c?void 0:c.data)},[c]),(0,i.jsx)(r.zx,{buttonStyle:"primary",size:"sm",iconStart:"Tick",text:(0,s.yH)(null==t?void 0:t.approve_link_text),onClick:()=>{u({url:s.bVV.comment.approveManyNew,method:"POST",reqData:{[n?"reply_comment_ids":"comment_ids"]:null==t?void 0:t.id,type:(null==t?void 0:t.need_approve)?"yes":"no"}})},loading:m})};var b=n(82096);let w=e=>{let{comment:t,isReply:n,decreaseReplyCnt:o,updateList:a}=e,{t:s}=(0,p.$G)(),[d,c]=(0,l.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.zx,{buttonStyle:"tertiary",size:"sm",iconStart:"Delete",text:s("comments:".concat(n?"deleteReply":"deleteComment")),onClick:()=>c(!0)}),d&&(0,i.jsx)(b.DynamicDeleteCommentModal,{show:d,onClose:()=>c(!1),comment:t,isReply:n,decreaseReplyCnt:o,updateList:a})]})};var k=o.default.div.withConfig({componentId:"sc-9e66e4b8-0"})(["",""],e=>{let{theme:{space:t}}=e;return(0,o.css)(["display:flex;align-items:center;flex-wrap:wrap;.comment-field-container{width:100%;}> .button{margin-",":6px;}"],t.left)});let C=e=>{let{comment:t,canShowInput:n,isReply:o,isEdit:a,parentCommentId:d,isDirtyReplyInput:c,isCommentReply:u,charLimit:f,updateList:x,getReplies:b,updateActiveInputId:C,handleIsEdit:j,increaseReplyCnt:S,decreaseReplyCnt:I,handleIsDirtyReplyInput:_}=e,{t:P}=(0,p.$G)(),R=(0,s.pmc)(),T=(0,s.s68)(e=>e.isLogin),L=(0,s.s68)(e=>e.openAuthModal),N=(0,s.s68)(e=>e.deviceSize),[E,A]=(0,l.useState)(!1),z=null==t?void 0:t.isYours,D=!(null==t?void 0:t.need_approve),F=(null==t?void 0:t.deleted)!=="no",M=!E&&D,G=z&&(null==t?void 0:t.approve_link_text)&&!D,V=(null==t?void 0:t.delete_url)&&z&&!D,O=()=>R({type:"info",title:P("comments:draftedComment"),message:P("comments:draftedCommentDesc"),icon:"Info"}),U=()=>{if(!T){L();return}if(c){O();return}C&&C("".concat(o?"reply":"comment","-").concat(+(null==t?void 0:t.id)))};if((0,l.useEffect)(()=>{A(n),!n&&j&&j(!1)},[n]),(0,l.useEffect)(()=>{a&&U()},[a]),F)return null;let B=E?(0,i.jsx)(v.DynamicInsertComment,{comment:t,isReply:o,isEdit:a,inFooter:!0,isCommentReply:u,commentText:a?null==t?void 0:t.body:"",parentCommentId:d,increaseReplyCnt:S,onClose:()=>{_&&_(!1),C&&C(null)},updateList:x,getReplies:b,charLimit:f,isDirtyReplyInput:c,handleIsDirtyReplyInput:_,showIsDirtyInputToast:O}):null,$="undefined"!=typeof document?document.getElementById(h.M):null;return(0,i.jsxs)(k,{className:"footer",children:[D&&(0,i.jsx)(g,{likeCnt:null==t?void 0:t.like_cnt,likeData:null==t?void 0:t.like}),M&&(0,i.jsx)(r.zx,{buttonStyle:"tertiary",size:"sm",iconStart:"Comments",text:P("comments:reply"),onClick:U}),G&&(0,i.jsx)(y,{comment:t,isReply:o,updateList:x}),V&&(0,i.jsx)(w,{comment:t,isReply:o,updateList:x,decreaseReplyCnt:I}),"mobile"===N&&$&&B?(0,m.createPortal)(B,$):B]})};var j=n(31384),S=o.default.div.withConfig({componentId:"sc-fa4c1566-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,o.css)(["display:flex;align-items:center;margin-bottom:",";.avatar{margin-",":",";}.channel-name{display:flex;align-items:center;}.head-item{position:relative;margin-",":",";color:",";&.has-dot{margin-",":22px;&::after{content:'';display:flex;position:absolute;",":-12px;top:50%;transform:translateY(-50%);width:3px;height:3px;border-radius:50%;background:#D3D6E0;}}}.badge-item{margin-",":",";}"],t.xs,t.left,t.xs,t.left,t.xs,n.background[40],t.left,t.left,t.left,t.xs)});let I=e=>{let{channel:t,commentDate:n,isPin:l,needApprove:o,deletedBy:a}=e,{t:d}=(0,p.$G)(),c=(0,s.s68)(e=>e.deviceSize),u=(0,s.s68)(e=>e.deviceType),m="mobile"===c,h=(0,s.Cfs)((0,s.qXE)("/".concat(null==t?void 0:t.username)),"profile",u),v=0!==Number(null==t?void 0:t.video_cnt),g=()=>{let e="";return"by_operator"===a&&(e="deletedByOperator"),"by_sender"===a&&(e="deletedBySender"),"by_receiver"===a&&(e="deletedByReceiver"),e};return(0,i.jsxs)(S,{className:"head",children:[(0,i.jsx)(r.qE,{size:"xs",image:null==t?void 0:t.avatar,alt:null==t?void 0:t.username,link:v?h:void 0,"aria-hidden":!0,tabIndex:-1}),v?(0,i.jsxs)(r.N0,{className:"channel-name head-item has-dot",href:h,"aria-label":null==t?void 0:t.displayName,children:[(0,i.jsx)(r.ZT.Label,{size:m?"5":"3",children:null==t?void 0:t.displayName})," ",(0,i.jsx)(j.ChannelPriority,{priority:null==t?void 0:t.priority,iconWidth:"16",iconHeight:"16"})]}):(0,i.jsxs)("span",{className:"channel-name head-item has-dot",children:[(0,i.jsx)(r.ZT.Label,{tabIndex:0,size:m?"5":"3",children:null==t?void 0:t.displayName})," ",(0,i.jsx)(j.ChannelPriority,{priority:null==t?void 0:t.priority,iconWidth:"16",iconHeight:"16"})]}),(0,i.jsx)(r.ZT.Label,{className:"head-item",size:"5",tabIndex:0,children:n}),l&&(0,i.jsx)(r.Ct,{className:"badge-item",size:"sm",color:"lightGray",iconStart:"Pin",tabIndex:0,children:d("comments:isPinned")}),o&&(0,i.jsx)(r.Ct,{className:"badge-item",size:"sm",color:"lightInfo",children:d("comments:needApprove")}),"no"!==a&&g()&&(0,i.jsx)(r.Ct,{className:"badge-item",color:"lightDanger",children:d("comments:".concat(g()))})]})};var _=n(57899),P=o.default.div.withConfig({componentId:"sc-9f8fe6b0-0"})(["",""],e=>{let{theme:{space:t}}=e;return(0,o.css)(["position:absolute;top:-4px;",":-4px;"],t.left)});let R=e=>{var t,n,o,a;let{comment:d,isReply:c,decreaseReplyCnt:u,updateList:m,handleIsEdit:h}=e,{t:v}=(0,p.$G)(),g=(0,s.UOt)(),y=(0,s.pmc)(),w=(0,f.NL)(),{data:k}=(0,s.Gi)(),C=null==k?void 0:null===(n=k.data)||void 0===n?void 0:null===(t=n.profileInformation)||void 0===t?void 0:t.data,{data:j,mutate:S}=(0,s.QTX)(),{data:I,mutate:R,error:T}=(0,s.QTX)(),{mutate:L,error:N,data:E}=(0,s.QTX)(),A="string"!=typeof(null==d?void 0:d.spam)?null==d?void 0:d.spam:{},z=(null==d?void 0:null===(a=d.channel)||void 0===a?void 0:null===(o=a.data)||void 0===o?void 0:o.username)===(null==C?void 0:C.username),[D,F]=(0,l.useState)(A),[M,G]=(0,l.useState)(!1),[V,O]=(0,l.useState)(!1),U=()=>{(null==d?void 0:d.report_url)?R({url:null==d?void 0:d.report_url}):y({type:"danger",message:v("comments:wasReported")})},B=()=>{L({url:null==d?void 0:d.pin_link})},$=()=>{S({url:s.bVV.comment.approveManyNew,method:"POST",reqData:{[c?"reply_comment_ids":"comment_ids"]:null==d?void 0:d.id,type:"no"}})},H=e=>{if(c){null==m||m();return}(0,x.CA)(g,w,null==d?void 0:d.id,{...d,need_approve:(null==e?void 0:e.approve)==="no",approve_link_text:null==e?void 0:e.text,approve_link_href:null==e?void 0:e.link_undo})};return(0,l.useEffect)(()=>
1{if(null==I?void 0:I.data){var e;y({type:"successful",message:null===(e=I.data)||void 0===e?void 0:e.message})}},[I]),(0,l.useEffect)(()=>{var e,t;(null==T?void 0:null===(e=T.errors[0])||void 0===e?void 0:e.status)===403&&y({type:"danger",message:null===(t=T.errors[0])||void 0===t?void 0:t.detail})},[T]),(0,l.useEffect)(()=>{var e;(null==N?void 0:null===(e=N.errors[0])||void 0===e?void 0:e.status)===400&&y({type:"danger",message:null==N?void 0:N.errors[0].detail})},[N]),(0,l.useEffect)(()=>{j&&H(null==j?void 0:j.data)},[j]),(0,l.useEffect)(()=>{E&&(null==m||m())},[E]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(P,{className:"more-button",children:[(0,i.jsx)(r.Lt,{shouldCloseOnClick:!0,menu:(()=>{var e;let t=[];return(null==d?void 0:d.pin_link)&&t.push({id:"pinComment".concat(d.id),text:v("comments:".concat((null==d?void 0:d.is_pinned)?"unpin":"pin")),iconStart:"Pin",onClick:B}),z&&t.push({id:"editComment".concat(null==d?void 0:d.id),text:v("comments:".concat(c?"editReply":"editComment")),iconStart:"Edit",onClick:()=>{h&&h(!0)}}),(null==d?void 0:d.isYours)&&(null==d?void 0:d.approve_link_text)&&!(null==d?void 0:d.need_approve)&&t.push({id:"approveComment".concat(d.id),text:(0,s.yH)(d.approve_link_text),iconStart:"Tick",onClick:$}),z||(null==d?void 0:d.isOwnerComment)||t.push({id:"reportComment".concat(null==d?void 0:d.id),text:v("comments:reportComment"),iconStart:"Flag",onClick:U}),((null==C?void 0:C.isOperator)||z||(null==d?void 0:d.isYours)&&(null==d?void 0:d.approved)==="yes")&&(null==d?void 0:d.delete_url)&&t.push({id:"deleteComment".concat(d.id),text:v("comments:".concat(c?"deleteReply":"deleteComment")),iconStart:"Delete",onClick:()=>{O(!0)}}),(null==d?void 0:d.isYours)&&(null==d?void 0:null===(e=d.spam)||void 0===e?void 0:e.link)&&!z&&t.push({id:"spamComment".concat(d.id),text:(0,s.yH)(D.title),iconStart:"Block",onClick:()=>{G(!0)}}),t})(),trigger:(0,i.jsx)(r.hU,{icon:"Misc",size:"sm",buttonStyle:"transparent","aria-label":v("common:accessibilityLabel.moreOptions")})}),M&&(0,i.jsx)(_.DynamicSpamModal,{show:M,onClose:()=>G(!1),spamData:D,onUpdateSpam:e=>F(e)}),V&&(0,i.jsx)(b.DynamicDeleteCommentModal,{show:V,onClose:()=>O(!1),comment:d,isReply:c,decreaseReplyCnt:u,updateList:m})]})})},T=e=>{var t;let{comment:n,hasMoreButton:o=!0,hasFooter:r=!0,isReply:s,activeInputId:d,parentCommentId:c,isDirtyReplyInput:m,charLimit:p,decreaseReplyCnt:h,increaseReplyCnt:v,updateList:g,getReplies:f,updateActiveInputId:x,handleIsDirtyReplyInput:y}=e,[b,w]=(0,l.useState)(!1),k="".concat(s?"reply":"comment","-").concat(+(null==n?void 0:n.id))===d,j=(null==n?void 0:n.deleted)!=="no",S=e=>w(e);return(0,i.jsxs)(a,{className:"comment-content",children:[(0,i.jsx)(I,{channel:null==n?void 0:null===(t=n.channel)||void 0===t?void 0:t.data,commentDate:null==n?void 0:n.sdate,isPin:null==n?void 0:n.is_pinned,needApprove:null==n?void 0:n.need_approve,deletedBy:null==n?void 0:n.deleted}),(0,i.jsx)(u,{text:null==n?void 0:n.body,mentionedName:null==n?void 0:n.mentioned_name}),r&&(0,i.jsx)(C,{comment:n,isCommentReply:!0,isReply:s,isEdit:b,canShowInput:k,updateActiveInputId:x,handleIsEdit:S,increaseReplyCnt:v,decreaseReplyCnt:h,updateList:f,getReplies:f,parentCommentId:c,isDirtyReplyInput:m,handleIsDirtyReplyInput:y,charLimit:p}),o&&!j&&(0,i.jsx)(R,{comment:n,isReply:s,decreaseReplyCnt:h,updateList:g,handleIsEdit:S})]})}},55855:function(e,t,n){n.r(t),n.d(t,{DynamicInsertComment:function(){return r}});var i=n(27573),l=n(64070),o=n(91860);let a=(0,l.default)(()=>Promise.resolve().then(n.bind(n,4729)).then(e=>e.CommentInput),{loadableGenerated:{webpack:()=>[4729]},ssr:!1,loading:()=>(0,i.jsx)(o.CommentInsertSkeleton,{})}),r=e=>{let{comment:t,isReply:n,inFooter:l,isEdit:o,commentText:r,parentCommentId:s,isDirtyReplyInput:d,isCommentReply:c,charLimit:u,updateList:m,getReplies:p,onClose:h,increaseReplyCnt:v,handleIsDirtyReplyInput:g,showIsDirtyInputToast:f}=e;return(0,i.jsx)(a,{comment:t,isReply:n,inFooter:l,isCommentReply:c,isEdit:o,commentText:r,parentCommentId:s,charLimit:u,updateList:m,getReplies:p,onClose:h,increaseReplyCnt:v,isDirtyReplyInput:d,handleIsDirtyReplyInput:g,showIsDirtyInputToast:f})}},4729:function(e,t,n){n.r(t),n.d(t,{CommentInput:function(){return v}});var i=n(27573),l=n(7653),o=n(65123),a=n(46364),r=n(12775),s=n(96),d=n(8794),c=n(75230),u=n(15195),m=n(78399),p=m.default.div.withConfig({componentId:"sc-23cb6f35-0"})(["",""],e=>{let{theme:{space:t,color:n},$disabled:i}=e;return(0,m.css)(["&:not(.in-footer){margin-bottom:",";}.form-head{display:flex;align-items:center;padding-",":2px;padding-",":",";margin-bottom:",";.label{color:",";}.name{color:",";margin:0 ",";}.close-button{margin-",":auto;padding:0;width:unset;height:unset;.icon{font-size:16px;}}}.textarea-field{textarea{line-height:20px;font-size:13px;font-weight:400;height:49px;padding:14.5px 0;color:",";&::placeholder{color:",";}}.field-help{float:right;width:auto;color:",";}.icon-button{width:24px;height:24px;padding:0;vertical-align:middle;.icon{font-size:24px;fill:",";}}.input-box{.input-inner{display:flex;}
1&:focus-within{border-color:",";}}}.actions{display:flex;align-items:center;justify-content:flex-end;margin-top:",";.button{&:not(:last-child){margin-",":6px;}}}&.in-footer-mobile{position:fixed;bottom:0;left:0;right:0;z-index:1;padding:",";margin:0;background:",";border-top:1px solid ",";}&.in-footer{margin-top:",";.input-box{border-radius:10px;}.textarea-field{textarea{height:40px;padding:10px 0;&::placeholder{color:",";}}.icon-button{width:20px;height:20px;.icon{font-size:20px;fill:",";}}}}"],t.md,t.right,t.left,t.xs,t.sm,n.background[40],n.background[60],t.xxs,t.right,n.background[80],n.background[70],n.background[40],n.background[i?30:70],n.background[60],t.xs,t.left,t.sm,n.background[0],n.background.light10,t.sm,n.background[40],n.background[50])});let h="InsertComment",v=e=>{var t,n,m,v,g,f,x,y,b,w,k,C;let j;let{comment:S,isReply:I,inFooter:_,isEdit:P,commentText:R,parentCommentId:T,isDirtyReplyInput:L,isCommentReply:N,charLimit:E,updateList:A,onClose:z,increaseReplyCnt:D,handleIsDirtyReplyInput:F}=e,{t:M}=(0,o.$G)(),G=(0,s.UOt)(),V=(0,r.NL)(),O=(0,s.s68)(e=>e.deviceSize),U=(0,s.s68)(e=>e.isLogin),B=(0,s.s68)(e=>e.openAuthModal),{ssVideoData:$,csVideoData:H}=(0,s.GY_)(G),{data:q}=(0,s.Gi)(),Z=null==q?void 0:null===(n=q.data)||void 0===n?void 0:null===(t=n.profileInformation)||void 0===t?void 0:t.data,Y=null==Z?void 0:Z.pic_s,Q=null==Z?void 0:Z.would_be_spammer_user,X=null==$?void 0:null===(m=$.data)||void 0===m?void 0:m.comment_enable,W=null==H?void 0:null===(v=H.meta)||void 0===v?void 0:v.enable_video_comment,K=null==H?void 0:null===(g=H.data)||void 0===g?void 0:g.commentSendLink,J=null==$?void 0:null===(f=$.data)||void 0===f?void 0:f.isYours,ee="mobile"===O,{data:et,mutate:en,error:ei,isPending:el}=(0,s.QTX)(),eo=(0,l.useRef)(null),ea=(0,l.useRef)(!1),[er,es]=(0,l.useState)(R||""),[ed,ec]=(0,l.useState)(!1),[eu,em]=(0,l.useState)(!1),ep=null==S?void 0:null===(y=S.channel)||void 0===y?void 0:null===(x=y.data)||void 0===x?void 0:x.displayName,eh=null==S?void 0:null===(w=S.channel)||void 0===w?void 0:null===(b=w.data)||void 0===b?void 0:b.id,ev=_?80:89,eg=_?40:49,{handleTextChange:ef,handleKeyDown:ex,containsBankOrPhoneNumber:ey,debouncedShowToast:eb}=(0,s._Mr)(er,es,eo,E),ew=(0,l.useCallback)(e=>{ef(e)},[]),ek=(0,l.useCallback)(e=>{let t=e.target.value.length;!P&&_&&F&&(0===t&&F(!1),!L&&t>0&&F(!0)),ew(e)},[]),eC=(0,l.useCallback)(async()=>{let e=[s.U7p.videoCSR+G];V&&(await V.cancelQueries({queryKey:e}),V.setQueryData(e,e=>{var t;return{...e,data:{...null==e?void 0:e.data,comment_cnt:(0,s.SSU)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.comment_cnt,1)}}}))},[]),ej=()=>
1{if(_&&!P){if(I||N){D&&D(),A&&A();return}S&&("approve"!==X||J)&&(0,u.CA)(G,V,null==S?void 0:S.id,{...S,reply_cnt:(+(null==S?void 0:S.reply_cnt)||0)+1});return}if(S&&_&&!I){(0,u.CA)(G,V,null==S?void 0:S.id,{...S,body:er});return}A&&A(),eC()},eS=()=>{let e=document.getElementById(h);null==e||e.focus(),null==e||e.click()},eI=()=>_?P&&I?s.bVV.comment.updateReply:P?s.bVV.comment.updateComment:(0,s.vkz)(s.bVV.comment.replyV2,{videohash:G}):K,e_=()=>_?{body:er,[I?"comment_reply_id":"comment_id"]:P?null==S?void 0:S.id:null,...!P&&{comment_id:T||(null==S?void 0:S.id),mentioned_user_id:I?eh:null}}:{commentbody:er},eP=()=>{if(_){L&&F&&F(!1),z&&z();return}em(!1),es("")},eR=()=>{es(""),_&&F&&F(!1),em(!1),(null==eo?void 0:eo.current)&&(eo.current.style.height="".concat(eg,"px"))},eT=()=>{if(eo.current){let e=eo.current.scrollHeight;eo.current.style.height="".concat(e>ev?ev:e,"px")}};return(0,l.useLayoutEffect)(()=>{eo.current&&_&&(eo.current.focus(),eo.current.click())},[]),(0,l.useEffect)(()=>{var e;(null==et?void 0:null===(e=et.data)||void 0===e?void 0:e.message)&&(eb("successful",et.data.message),eR(),ej(),_&&z&&z())},[et]),(0,l.useEffect)(()=>{var e,t;(null==ei?void 0:null===(e=ei.errors[0])||void 0===e?void 0:e.detail)&&eb("danger",null==ei?void 0:null===(t=ei.errors[0])||void 0===t?void 0:t.detail)},[ei]),(0,l.useLayoutEffect)(()=>{P&&(es(R||""),eT())},[P]),(0,l.useEffect)(()=>()=>{!P&&ea.current&&eS()},[P]),(0,i.jsxs)(p,{className:(0,s.dhh)("comment-field-container",{"in-footer":_&&!ee,"in-footer-mobile":_&&ee}),$disabled:!W,children:[!P&&_&&ee&&(0,i.jsxs)("div",{className:"form-head",children:[(0,i.jsxs)(d.ZT.Caption,{className:"label",size:"2",children:[M("comments:replyTo")," "]}),(0,i.jsx)(d.ZT.Label,{className:"name",size:"5",children:null==S?void 0:null===(C=S.channel)||void 0===C?void 0:null===(k=C.data)||void 0===k?void 0:k.displayName}),(0,i.jsx)(d.hU,{buttonStyle:"transparent",icon:"Close",className:"close-button",onClick:()=>{ea.current=!0,eP()}})]}),(0,i.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!er){eb("danger",M(_?"comments:emptyReply":"comments:emptyComment"));return}if(ey(er)){eb("danger",M("comments:bankAccountOrPhoneNotAllowed"));return}en({method:"POST",url:eI(),reqData:e_()})},children:[(0,i.jsx)(d.N7,{endIconTooltip:{position:"top",text:M("comments:commentTime"),width:170},avatar:U?Y:(0,a.kY)("/static/img/placeholders/avatar/avatar-is-channel.webp"),username:I?ep:null,name:"comment-insertddd",value:er,placeholder:(j="insertComment","no"===X&&(j="commentDisabled"),_&&(j="insertReply"),W||(j="forcedCommentDisabled"),M("comments:".concat(j))),...!I&&{id:h},...(!W||"no"!==X)&&{endButtonIcon:"Watch",endButtonAriaLabel:M("common:accessibilityLabel.writeCommentForThisMoment"),onClickButton:()=>{var e,t,n;if(!U){B();return}let i=null===(t=window.player)||void 0===t?void 0:null===(e=t.video)||void 0===e?void 0:e.currentTime,l=Math.floor(i);"number"==typeof i&&(es(e=>"".concat(e," ").concat((0,s.g9Y)(l)," ")),null===(n=eo.current)||void 0===n||n.focus())}},endButtonDisabled:!W,ref:eo,size:"lg",rounded:!0,filled:ee||!_,autoComplete:"off",readOnly:!U,onChange:ek,onInput:()=>{(null==eo?void 0:eo.current)&&eo.current.scrollHeight<=ev?(eo.current.style.height="".concat(eg,"px"),eo.current.style.height="".concat(eo.current.scrollHeight,"px"),eo.current.style.overflowY="hidden"):(null==eo?void 0:eo.current)&&(eo.current.style.overflowY="auto")},onClick:e=>{if(!U){e.preventDefault(),B();return}Q&&ec(!0)},onFocus:()=>{if(U){if(Q){ec(!0);return}eu||em(!0)}},disabled:!W||"no"===X,onKeyDown:e=>{if(!U&&"Enter"===e.key){e.preventDefault(),B();return}ex(e)},limit:eu?E:0}),eu&&(0,i.jsxs)("div",{className:"actions",children:[(0,i.jsx)(d.zx,{buttonStyle:"tertiary",buttonType:"red",iconStart:"Delete",size:"sm",text:M("comments:cancelReply"),actionType:"button",onClick:eP}),(0,i.jsx)(d.zx,{text:P?M(I?"comments:editReply":"comments:editComment"):M(_?"comments:submitReply":"comments:postComment"),iconEnd:"Left",size:"sm",actionType:"submit",buttonStyle:"primary",loading:el})]})]}),ed&&(0,i.jsx)(c.DynamicSpammerModal,{show:ed,onClose:()=>ec(!1)})]})}},33346:function(e,t,n){n.d(t,{M:function(){return i}});let i="comment-mobile-composer-portal"},87365:function(e,t,n){n.r(t),n.d(t,{Comment:function(){return x}});var i=n(27573),l=n(7653),o=n(87590),a=n.n(o),r=n(96),s=n(7501),d=n(65123),c=n(8794),u=n(78399),m=u.default.div.withConfig({componentId:"sc-2d49d998-0"})(["",""],e=>{let{theme:{space:t,color:n}}=e;return(0,u.css)([".show-reply-button,.hide-reply-button{padding:2px ",";color:#0296D9;height:20px;.icon{fill:#0296D9;}&:hover{background:transparent;}&:active{border:none;}}.show-reply-button{margin-top:",";}.collapsible-inner{padding-top:28px;.replies{border-",":1px solid ",";padding-",":40px;.reply-list{.comment-content{margin-bottom:28px;}}}}"],t.xxs,t.sm,t.right,n.background[20],t.right)});let p=e=>{var t;let{replyCnt:n,repliesData:o,commentId:a,activeInputId:r,charLimit:u,isDirtyReplyInput:p,isDeleted:h,repliesLoading:v,decreaseReplyCnt:g,increaseReplyCnt:f,updateActiveInputId:x,handleIsDirtyReplyInput:y,getReplies:b,
1setEnableReplyQuery:w}=e,{t:k}=(0,d.$G)(),[C,j]=(0,l.useState)(!1),S=()=>{C?(w&&w(!1),j(!1)):(w&&w(!0),j(!0))};return!n||h?null:(0,i.jsxs)(m,{className:"replies-wrapper",children:[(0,i.jsx)(c.zF,{isOpen:C,children:(0,i.jsx)("div",{className:"collapsible-inner",children:(0,i.jsxs)("div",{className:"replies",children:[(0,i.jsx)("div",{className:"reply-list",children:null===(t=(null==o?void 0:o.data)||[])||void 0===t?void 0:t.map(e=>(0,i.jsx)(s.V,{comment:e,activeInputId:r,isReply:!0,isDirtyReplyInput:p,parentCommentId:a,updateList:b,getReplies:b,decreaseReplyCnt:g,increaseReplyCnt:f,updateActiveInputId:x,handleIsDirtyReplyInput:y,charLimit:u},"comment-".concat(a,"-reply-").concat(null==e?void 0:e.id)))}),(0,i.jsx)(c.zx,{className:"hide-reply-button",size:"sm",text:k("comments:closeReplies",{cnt:n}),iconEnd:"Up",onClick:S,buttonStyle:"transparent"})]})})}),!C&&(0,i.jsx)(c.zx,{className:"show-reply-button",size:"sm",text:k("comments:showReplies",{cnt:n}),iconEnd:"Down",onClick:S,buttonStyle:"transparent",loading:v})]})};n(4729);var h=n(56683);function v(){let e=(0,h._)(["\n padding: ",";\n "]);return v=function(){return e},e}var g=u.default.div.withConfig({componentId:"sc-6e40aaaf-0"})(["",""],e=>{let{theme:{space:t,mediaQuery:n}}=e;return(0,u.css)(["padding:"," 20px ",";",""],t.md,t.xl,n("xxs","max")(v(),t.md))}),f=n(15195);let x=(0,l.memo)(e=>{let{comment:t,activeInputId:n,charLimit:o,isDirtyReplyInput:a,updateList:d,updateActiveInputId:c,handleIsDirtyReplyInput:u}=e,m=(0,r.UOt)(),[h,v]=(0,l.useState)(Number(+(null==t?void 0:t.reply_cnt))),[x,y]=(0,l.useState)(!1),{data:b,isLoading:w,refetch:k}=(0,f.WN)(m,(null==t?void 0:t.id)||"",x),C=()=>{v(e=>e+1)},j=()=>{v(e=>e-1)};return(0,i.jsxs)(g,{className:"comment",children:[(0,i.jsx)(s.V,{comment:t,activeInputId:n,updateList:d,getReplies:k,updateActiveInputId:c,charLimit:o,isDirtyReplyInput:a,handleIsDirtyReplyInput:u,increaseReplyCnt:C,decreaseReplyCnt:j}),h>0&&(0,i.jsx)(p,{replyCnt:null==h?void 0:h.toString(),repliesData:b,repliesLoading:w,getReplies:k,setEnableReplyQuery:y,commentId:null==t?void 0:t.id,activeInputId:n,updateActiveInputId:c,charLimit:o,isDirtyReplyInput:a,handleIsDirtyReplyInput:u,isDeleted:(null==t?void 0:t.deleted)!=="no",increaseReplyCnt:C,decreaseReplyCnt:j})]})},(e,t)=>a()(e,t))},16918:function(e,t,n){n.r(t),n.d(t,{DynamicComments:function(){return r}});var i=n(27573),l=n(64070),o=n(91860);let a=(0,l.default)(()=>n.e(3319).then(n.bind(n,51029)).then(e=>e.Comments),{loadableGenerated:{webpack:()=>[51029]},ssr:!1,loading:()=>(0,i.jsx)(o.CommentListSkeleton,{})}),r=e=>{let{commentList:t,isLoading:n,hasMoreComments:l,isFetchingNextPage:o,charLimit:r,getComments:s,getMoreComments:d}=e;return(0,i.jsx)(a,{commentList:t,isLoading:n,charLimit:r,hasMoreComments:l,isFetchingNextPage:o,getMoreComments:d,getComments:s})}},91860:function(e,t,n){n.r(t),n.d(t,{AvatarSkeleton:function(){return m},CommentInsertSkeleton:function(){return x},CommentListSkeleton:function(){return f},CommentRowSkeleton:function(){return a},CommentsSkeleton:function(){return y},InfoSkeleton:function(){return d},InsertAvatarSkeleton:function(){return v},InsertBoxSkeleton:function(){return h},InsertRowSkeleton:function(){return p},LeftSide:function(){return r},LikeSkeleton:function(){return u},MessageSkeleton:function(){return c},RightSide:function(){return s},StyledCommentsSkeleton:function(){return o}});var i=n(27573),l=n(78399);let o=l.default.div.withConfig({componentId:"sc-74303093-0"})(["",""],()=>(0,l.css)(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;& > *{&:not(:last-child){margin-bottom:15px;}}"])),a=l.default.div.withConfig({componentId:"sc-74303093-1"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:flex;align-items:center;width:100%;padding:1.5em 0;border-bottom:1px solid;border-color:",";"],"light"===t?n.gray[10]:n.gray[70])}),r=l.default.div.withConfig({componentId:"sc-74303093-2"})(["",""],()=>(0,l.css)(["display:flex;flex-direction:column;width:90%;height:80px;padding:0 0.5em;& > *{&:not(:last-child){margin-bottom:1em;}}"])),s=l.default.div.withConfig({componentId:"sc-74303093-3"})(["",""],()=>(0,l.css)(["display:flex;justify-content:center;width:auto;height:80px;padding:0 0 0 0.5em;"])),d=l.default.div.withConfig({componentId:"sc-74303093-4"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:inline-block;width:20%;height:28px;background-color:",";border-radius:5px;"],"light"===t?n.gray[10]:n.gray[70])}),c=l.default.div.withConfig({componentId:"sc-74303093-5"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:inline-block;width:80%;height:32px;background-color:",";border-radius:5px;"],"light"===t?n.gray[10]:n.gray[70])}),u=l.default.div.withConfig({componentId:"sc-74303093-6"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:inline-block;width:4%;height:27px;background-color:",";border-radius:5px;"],"light"===t?n.gray[10]:n.gray[70])}),m=l.default.div.withConfig({componentId:"sc-74303093-7"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:inline-block;width:20px;height:20px;background-color:",";border-radius:100%;"],"light"===t?n.gray[10]:n.gray[70])}),p=l.default.div.withConfig({componentId:"sc-74303093-8"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:flex;align-items:flex-start;width:100%;height:80px;
1gap:1em;padding:1.5em 0 1.5em 0px;border-top:1px solid;border-color:",";"],"light"===t?n.gray[10]:n.gray[70])}),h=l.default.div.withConfig({componentId:"sc-74303093-9"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:inline-block;width:100%;height:44px;background-color:",";border-radius:5px;"],"light"===t?n.gray[10]:n.gray[70])}),v=l.default.div.withConfig({componentId:"sc-74303093-10"})(["",""],e=>{let{theme:{mode:t,color:n}}=e;return(0,l.css)(["display:inline-block;width:39px;height:38px;background-color:",";border-radius:100%;"],"light"===t?n.gray[10]:n.gray[70])}),g=()=>(0,i.jsxs)(a,{children:[(0,i.jsx)(s,{children:(0,i.jsx)(m,{})}),(0,i.jsxs)(r,{children:[(0,i.jsx)(d,{}),(0,i.jsx)(c,{}),(0,i.jsx)(u,{})]})]}),f=()=>(0,i.jsx)(o,{children:[1,2,3,4].map(e=>(0,i.jsx)(g,{},"comment-skeleton-".concat(e)))}),x=()=>(0,i.jsx)(o,{children:(0,i.jsx)(p,{children:(0,i.jsx)(h,{})})}),y=()=>(0,i.jsxs)(o,{children:[(0,i.jsx)(p,{children:(0,i.jsx)(h,{})}),[1,2,3,4].map(e=>(0,i.jsx)(g,{},"comment-skeleton-".concat(e)))]})},15195:function(e,t,n){n.d(t,{CA:function(){return a},TU:function(){return o},WN:function(){return s}});var i=n(96),l=n(12775);let o=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,i.BRU)({queryKey:[i.U7p.comment,e],initialPageParam:(0,i.vkz)(i.bVV.comment.list,{uid:e}),isInfiniteScroll:!1,staleTime:2e3,enabled:t})},a=(e,t,n,l)=>{t.setQueryData([i.U7p.comment,e],e=>({pageParams:null==e?void 0:e.pageParams,pages:null==e?void 0:e.pages.map(e=>{var t;return{...e,data:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.map(e=>(null==e?void 0:e.id)===n?l:e)}})}))},r=(e,t)=>(0,i.NqS)((0,i.oeL)((0,i.vkz)(i.bVV.comment.listReplies,{commentId:t||"",videohash:e}))),s=(e,t,n)=>(0,l.aM)({queryKey:[i.U7p.comment,e,t],queryFn:()=>r(e,t),enabled:n,gcTime:0})},71626:function(e,t,n){n.d(t,{DynamicIntroducedVideosBox:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(6255).then(n.bind(n,2446)).then(e=>e.IntroducedVideosBox),{loadableGenerated:{webpack:()=>[2446]},ssr:!1}),o=e=>{let{videoUid:t}=e;return(0,i.jsx)(l,{videoUid:t})}},50387:function(e,t,n){n.d(t,{x:function(){return r}});var i=n(27573),l=n(89721),o=n(78399),a=o.default.div.withConfig({componentId:"sc-f60b1a64-0"})(["",";"],e=>{let{theme:{space:t}}=e;return(0,o.css)(["overflow-x:hidden;overflow-y:auto;margin-",":6px;padding-",":",";margin-",":calc("," + 16px);"],t.left,t.left,t.xxs,t.right,t.xxs)});let r=()=>(0,i.jsx)(a,{className:"introduced-videos-items-loading",children:Array.from({length:3}).map((e,t)=>(0,i.jsx)(l.r,{size:"xs",direction:"row",hasDescription:!0},"introduced-videos-items-loading-".concat(t)))})},70095:function(e,t,n){n.d(t,{X:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(6255).then(n.bind(n,2936)).then(e=>e.IntroducedVideosSheet),{loadableGenerated:{webpack:()=>[2936]},ssr:!1}),o=()=>(0,i.jsx)(l,{})},73803:function(e,t,n){n.r(t),n.d(t,{CSRPlayer:function(){return e4}});var i=n(27573),l=n(7653),o=n(81695),a=n(46364),r=n(10749),s=n(96);n(74182);var d=n(64070);let c=(0,d.default)(()=>n.e(6255).then(n.bind(n,39741)).then(e=>e.PlayerAnnotation),{loadableGenerated:{webpack:()=>[39741]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),u=e=>{let{playerData:t}=e;return(0,i.jsx)(c,{playerData:t})},m=(0,d.default)(()=>n.e(6255).then(n.bind(n,25964)).then(e=>e.PlayerEndHtml),{loadableGenerated:{webpack:()=>[25964]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),p=e=>{let{endElementId:t,endHtml:n}=e;return(0,i.jsx)(m,{endHtml:n,endElementId:t})},h=(0,d.default)(()=>n.e(6255).then(n.bind(n,59453)).then(e=>e.PlayerEndRecom),{loadableGenerated:{webpack:()=>[59453]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),v=e=>{let{ssVideoData:t,playerData:n}=e;return(0,i.jsx)(h,{ssVideoData:t,playerData:n})};var g=n(8794);let f=(0,d.default)(()=>n.e(6255).then(n.bind(n,83480)).then(e=>e.EndStreamCards),{loadableGenerated:{webpack:()=>[83480]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),x=e=>{let{uid:t,ssFollowData:n,endStreamCardTimeRef:l}=e,{breakpoints:o}=(0,g.gh)();return(0,s.eIi)(o.xs.max)?null:(0,i.jsx)(f,{uid:t,ssFollowData:n,endStreamCardTimeRef:l})};var y=n(50387);let b=(0,d.default)(()=>n.e(6255).then(n.bind(n,6719)).then(e=>e.InPlayerTriggerButton),{loadableGenerated:{webpack:()=>[6719]},ssr:!1,loading:()=>(0,i.jsx)(y.x,{})}),w=e=>{let{inStreamCardsObj:t}=e;return(0,i.jsx)(b,{inStreamCardsObj:t})};n(71626);let k=(0,d.default)(()=>n.e(6255).then(n.bind(n,890)).then(e=>e.IntroducedVideosModal),{loadableGenerated:{webpack:()=>[890]},ssr:!1}),C=()=>(0,i.jsx)(k,{});var j=n(70095),S=n(65123),I=n(56683),_=n(78399);function P(){let e=(0,I._)(["\n height: 375px;\n border-radius: 0;\n padding-top: 50%;\n "]);return P=function(){return e},e}function R(){let e=(0,I._)(["\n margin-bottom: ",";\n "]);return R=function(){return e},e}function T(){let e=(0,I._)(["\n max-width: 95%;\n margin-bottom: ",";\n "]);return T=function(){return e},e}function L(){let e=(0,I._)(["\n margin-bottom: ",";\n "]);return L=function(){return e},e}function N(){let e=(0,I._)(["\n max-width: 285px;\n "]);return N=function(){return e},e}var E=_.default.div.withConfig({componentId:"sc-58ae8205-0"})(["",""],e=>{let{theme:{color:t,space:n,mediaQuery:i}}=e;return(0,_.css)(["border-radius:12px;overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;z-index:21;padding-top:56.25%;position:relative;"," .player-content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:",";backdrop-filter:blur(14px);.icon-wrapper{margin-bottom:40px;"," .icon{font-size:56px;fill:",";}}.body{margin-bottom:40px;text-align:center;"," .title{margin-bottom:",";","}.desc{max-width:335px;display:block;","}.title,.desc{color:",";}}}"],i("xs","max")(P()),t.natural.black[50],i("xxxs","max","list")(R(),n.lg),t.natural.white.white,i("xxxs","max","list")(T(),n.lg),n.sm,i("xxxs","max","list")(L(),n.xs),i("xxxs","max","list")(N()),t.natural.white.white)});let A=()=>{var e;let{t}=(0,S.$G)(),n=(0,s.UOt)(),{csVideoData:l}=(0,s.GY_)(n),o=(0,s.s68)(e=>e.deviceSize);return(0,i.jsx)(E,{style:{backgroundImage:"url(".concat(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.b
1ig_poster,")")},children:(0,i.jsxs)("div",{className:"player-content",children:[(0,i.jsx)("div",{className:"icon-wrapper",children:(0,i.jsx)(g.I5,{name:"EyeClosed"})}),(0,i.jsxs)("div",{className:"body",children:[(0,i.jsx)(g.ZT.Heading,{size:"mobile"===o?"h2":"h1",className:"title",children:t("common:kidsFriendly.title")}),(0,i.jsx)(g.ZT.Body,{size:"2",className:"desc",children:t("common:kidsFriendly.caption")})]})]})})};var z=n(80567);let D=()=>{let[e,t]=(0,l.useState)(!0),{deviceSize:n,isPlayerFullscreen:i}=(0,s.s68)((0,z.N)(e=>({deviceSize:e.deviceSize,isPlayerFullscreen:e.isPlayerFullscreen})));return(0,l.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(s.FPR.playerEvents.videoReplay,e),window.addEventListener(s.FPR.playerEvents.videoPlayerEnded,n),()=>{window.removeEventListener(s.FPR.playerEvents.videoReplay,e),window.removeEventListener(s.FPR.playerEvents.videoPlayerEnded,n)}},[]),e&&("mobile"===n||("large-table"===n||"tablet"===n)&&i)},F=()=>{let{deviceSize:e,isPlayerFullscreen:t,isMobileAgent:n}=(0,s.s68)((0,z.N)(e=>({deviceSize:e.deviceSize,isPlayerFullscreen:e.isPlayerFullscreen,isMobileAgent:e.isMobileAgent}))),i="mobile"===e,l="large-table"===e||"tablet"===e,o=!n&&!i;return{isMobile:i,isTabletSize:l,isDesktopSize:!i&&!l,isNonMobileAgentLayout:o,showExpandedControlBar:o||n&&l&&!t,showCompactOverlay:n&&(i||l&&t),showActionsInLeftControls:n&&l&&t,showAutoplayInMainBar:o||n&&(l||i&&t),isAutoplayInBarLayout:!n&&(!i||t)}};var M=_.default.span.withConfig({componentId:"sc-ed73ed0-0"})(["",""],e=>{let{$playIcon:t,$pauseIcon:n,$isInPlayer:i,$isPlayerFullscreen:l,$isInControls:o}=e;return(0,_.css)(["display:block;height:22px;margin:0 12px;"," .input-switch{height:22px;","}"],!o&&l&&i&&(0,_.css)(["position:fixed;top:20px;left:74px;margin:0;"]),i&&(0,_.css)([".input-inner{.input:checked ~ .input-check{background-color:rgba(255,255,255,0.5);border:none;&::after{background-image:url('","');background-color:rgba(0,0,0,0.9);}}}.input-check{height:22px;background-color:rgba(255,255,255,0.5);border:none;&::after{background-image:url('","');background-color:rgba(255,255,255,0.9);top:2px;bottom:2px;text-align:center;display:flex;width:18px;height:18px;justify-content:center;background-position:center;background-repeat:no-repeat;}}"],n,t))});let G=(0,l.memo)(e=>{let{isInPlayer:t=!0,tabIndex:n=0}=e,o=(0,s.pmc)(),{t:r}=(0,S.$G)(),d=(0,s.s68)(e=>e.playerSetting.isAutoplay),c=(0,s.s68)(e=>e.setPlayerSetting),u=(0,s.s68)(e=>e.isPlayerFullscreen),{isAutoplayInBarLayout:m}=F(),p=()=>{c({isAutoplay:!d})},h=e=>{c({isAutoplay:e})};return(0,l.useEffect)(()=>{if("undefined"!=typeof localStorage){let e=localStorage.getItem(s.dAu.IS_AUTOPLAY),t="true"===e;e&&t!==d&&h(t)}},[]),(0,i.jsx)(M,{className:"autoplay-switcher",$isInPlayer:t,$isPlayerFullscreen:u,$playIcon:(0,a.kY)("/static/img/player/play.svg"),$pauseIcon:(0,a.kY)("/static/img/player/pause.svg"),$isInControls:m,children:(0,i.jsx)(g.T5,{id:"autoPlaySwitch",name:"auto_play",checked:t?!d:d,onChange:()=>{"undefined"!=typeof localStorage&&localStorage.setItem(s.dAu.IS_AUTOPLAY,d?"false":"true"),m&&o({type:"successful",message:r("single:".concat(d?"autoplayDisabled":"autoplayEnabled"))}),p()},"aria-label":r("common:player.setting.autoplay"),tabIndex:n})})}),V=(0,d.default)(()=>n.e(6255).then(n.bind(n,27067)).then(e=>e.PlayerBoostAd),{loadableGenerated:{webpack:()=>[27067]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),O=e=>{let{ad:t}=e;return(0,i.jsx)(V,{ad:t})};var U=_.default.div.withConfig({componentId:"sc-c85888d0-0"})(["",""],e=>{let{$isPlayerActive:t}=e;return(0,_.css)(["pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;",""],t&&(0,_.css)(["background:linear-gradient(0deg,rgba(255,255,255,0) 75%,rgba(0,0,0,0.75) 100%);"]))});let B=(0,l.memo)(()=>{let e=(0,s.s68)(e=>e.playerSetting.isPlayerActive);return(0,i.jsx)(U,{$isPlayerActive:!!e,id:s.YDx.playerActiveOverlay,className:"player-active-overlay"})});var $=n(9865),H=n(51507);let q=e=>{let{isLimited:t,isSensitive:n,children:o}=e,[a,r]=(0,l.useState)(!1);return(0,s.s68)(e=>e.isKidsFriendly)?t?(0,i.jsx)($.F4,{}):!a&&n?(0,i.jsx)(H.w,{onConfirm:()=>r(!0)}):(0,i.jsx)(i.Fragment,{children:o}):(0,i.jsx)(A,{})};var Z=_.default.div.withConfig({componentId:"sc-5817cfc3-0"})(["",";"],()=>(0,_.css)(["display:flex;flex-direction:row;justify-content:center;color:#fff;opacity:0;transition:opacity 150ms ease-out;position:absolute;top:12px;left:0px;right:0px;&.is-active{opacity:1;}.message-box{padding:4px 12px;background:rgba(0,0,0,0.5);border-radius:20px;align-items:center;display:flex;flex-direction:row;justify-content:center;.icon{fill:#fff;}.right-icon{margin-left:8px;}.left-icon{margin-right:8px;}}"]));let Y=()=>{let{t:e}=(0,S.$G)(),t=(0,s.s68)(e=>e.setIsDraggingSeekbar),{isDraggingSeekbar:n}=(0,s.s68)((0,z.N)(e=>({isDraggingSeekbar:e.isDraggingSeekbar}
1))),{isFullscreenLandscape:o}=(0,s.PWi)(),a=(0,l.useCallback)(()=>{"true"===(0,s.$oy)(s.dAu.IS_PLAYER_LANDSCAPE_FULLSCREEN)&&t(!0)},[t]),r=(0,l.useCallback)(()=>{"true"===(0,s.$oy)(s.dAu.IS_PLAYER_LANDSCAPE_FULLSCREEN)&&setTimeout(()=>{t(!1)},200)},[t]);return((0,l.useEffect)(()=>(window.addEventListener(s.FPR.playerActions.onProgressbarDragging,a),window.addEventListener(s.FPR.playerActions.onProgressbarChange,r),()=>{window.removeEventListener(s.FPR.playerActions.onProgressbarDragging,a),window.removeEventListener(s.FPR.playerActions.onProgressbarChange,r)}),[r,a]),o)?(0,i.jsx)(Z,{className:(0,s.dhh)("progress-bar-message",{"is-active":n}),children:(0,i.jsxs)("div",{className:"message-box",children:[(0,i.jsx)(g.I5,{className:"right-icon",name:"SeekForwardFilled"}),(0,i.jsx)(g.ZT.Label,{children:e("common:player.help.progressBarChangeMessage")}),(0,i.jsx)(g.I5,{className:"left-icon",name:"SeekBackwardFilled"})]})}):null};function Q(){let e=(0,I._)(["\n padding-top: ",";\n margin-top: ","px;\n border-radius: 0px;\n\n #playerSection {\n position: ",";\n border-radius: 0px;\n top: ",";\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 10;\n border: none;\n\n #romeo-player {\n z-index: 11;\n ","\n }\n }\n\n .trendButtons {\n width: 100%;\n background-color: ",";\n transform: translateY(-200%);\n transition: 100ms;\n height: 0px;\n opacity: 0;\n overflow: hidden;\n padding: 0;\n\n &.show {\n transform: translateY(0px);\n height: auto;\n opacity: 1;\n padding: 8px 12px 8px 0px;\n border: 1px solid ",";\n\n ","\n }\n\n &.landscape {\n pos\n }\n }\n\n &.hide-header { \n #playerSection{\n top: calc(","px);\n }\n }\n "]);return Q=function(){return e},e}var X=_.default.div.withConfig({componentId:"sc-2b258f47-0"})(["",""],e=>{let{theme:{color:t,mediaQuery:n,headerHeight:i},$trendMenuHeight:l,$isLandscape:o,$isLimited:a,$isMobile:r,$showCampaignBanner:s,$fixedheader:d}=e;return(0,_.css)(["border-radius:12px;height:max-content;#playerSection{border-radius:12px;overflow:hidden;height:max-content;}"," .video-processing{position:'absolute';top:0;left:0;width:'100%';height:'100%';z-index:1000;}.introduced-videos-modal{background-color:",";}"],n("sm","max")(Q(),a&&r?"calc(374px + ".concat(s?58:0,"px)"):"calc(56.25% + ".concat(s?58:0,"px)"),l,o||!d?"absolute":"fixed",o?"0px":"calc(".concat(i.mobile," + ").concat(l,"px + ").concat(s&&!d?8:0,"px)"),o&&"min-height: 0px !important;",t.background[0],t.background[0],o&&"\n position: fixed;\n top: 60px;\n ",l),t.dark[50])}),W=n(77457);let K=(0,l.forwardRef)((e,t)=>{let{options:n,eventHandlers:o,controls:a,topControls:r,isSSG:s,children:d,disableControlsEffect:c=!0}=e,u=(0,l.useMemo)(()=>o,[]);return(0,i.jsx)(W.J,{ref:t,style:{primaryColor:"#ed145b"},...u,options:n,forwardRange:5,responsiveVTT:!1,controls:a,topControls:r,romeoStatsData:{isSSG:s},preferredPackage:"shaka_player",controlsActiveTime:1500,disableControlsEffect:c,children:d})});var J=(0,l.memo)(K,(e,t)=>(null==e?void 0:e.controls)===(null==t?void 0:t.controls)&&(null==e?void 0:e.disableControlsEffect)===(null==t?void 0:t.disableControlsEffect));let ee=e=>{let t=new TextEncoder;return URL.createObjectURL(new Blob([t.encode(e)]))},et=(e,t,n)=>{var i,l,o;return s.xiW.includes(null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.process)?[[{src:"",type:"video/mp4",default:!0,label:"src"}]]:e&&(null==n?void 0:n.multiSRC)&&(null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.manifest)?[[{src:ee(null==t?void 0:null===(o=t.data)||void 0===o?void 0:o.manifest),type:"application/vnd.apple.mpegurl"}],...n.multiSRC]:null==n?void 0:n.multiSRC},en=(e,t,n,i,o)=>{var a,r;let d=null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.title,c=null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.description,u=()=>{var t,n;if(0!==i)return i;let l=JSON.parse((0,s.$oy)(s.dAu.videoResumeTime)||"{}");return null!==(n=null==l?void 0:l[null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.uid])&&void 0!==n?n:0},m=(0,l.useMemo)(()=>
1{if(!(null==t?void 0:t.ad))return;let e={...t.ad};return n?(e.adTag=e.adTagMobile||e.adTag,e.vmap=e.adTagMobile||e.vmap):(e.adTag=e.adTagDesktop||e.adTag,e.vmap=e.adTagDesktop||e.vmap),e},[null==t?void 0:t.ad,n]);return(0,l.useMemo)(()=>({isLive:!1,poster:null==t?void 0:t.poster,title:d,description:c,resumeUID:null==t?void 0:t.resumeUID,duration:null==t?void 0:t.duration,startTime:u(),logo:null==t?void 0:t.logo,sendEvents:null==t?void 0:t.sendEvents,ad:m,multiSRC:et(!!o,e,t),thumbs:null==t?void 0:t.thumbs,chapterlist:null==t?void 0:t.chapterlist,isIR:null==t?void 0:t.isIR,isAbroad:null==t?void 0:t.isAbroad,isEmbed:null==t?void 0:t.isEmbed,lang:null==t?void 0:t.lang,sensitiveContent:null==t?void 0:t.sensitiveContent,skinClass:null==t?void 0:t.skinClass,isTV:null==t?void 0:t.isTV,debug:null==t?void 0:t.debug,embedUsedInApp:null==t?void 0:t.embedUsedInApp,capLevelToPlayerSize:null==t?void 0:t.capLevelToPlayerSize,endElementId:null==t?void 0:t.endElementId,autoPlay:null==t?void 0:t.autoPlay,recomUrl:null==t?void 0:t.recomUrl,annotations:null==t?void 0:t.annotations,muted:null==t?void 0:t.muted,hidePIP:void 0,tracks:null==t?void 0:t.tracks,multiAudio:void 0,mainAudioLanguage:void 0}),[t,e,n,i,o])};var ei=_.default.div.withConfig({componentId:"sc-fb378ffd-0"})(["",";"],e=>{let{theme:{space:t}}=e;return(0,_.css)([".option-button{width:100%;min-width:auto;gap:0px;padding:",";.content{padding:0;margin-",":",";}}"],t.xs,t.left,t.xxs)});let el=e=>{let{text:t,onClick:n}=e;return(0,i.jsx)(ei,{"aria-hidden":!0,children:(0,i.jsx)(g.zx,{className:"option-button",text:(0,i.jsx)(g.ZT.Button,{size:"3",children:t}),buttonType:"neutral",buttonStyle:"transparent",iconEnd:"Left",size:"sm",onClick:n,tabIndex:-1})})};var eo=_.default.span.withConfig({componentId:"sc-3fb7e3d5-0"})(["",""],()=>(0,_.css)(["display:block;height:22px;margin:0 12px;.input-switch{height:22px;}"]));let ea=(0,l.memo)(()=>{let{t:e}=(0,S.$G)(),t=(0,s.s68)(e=>e.playerSetting.isReplayVideo),n=(0,s.s68)(e=>e.setPlayerSetting),o=e=>{n({isReplayVideo:e})};return(0,l.useEffect)(()=>{if("undefined"!=typeof localStorage){let e=localStorage.getItem(s.dAu.IS_REPLAY_VIDEO),n="true"===e;e&&n!==t&&o(n)}},[]),(0,i.jsx)(eo,{className:"replay-switcher",children:(0,i.jsx)(g.T5,{id:"replayVideoSwitch",name:"replay_video",checked:t,onChange:()=>{n({isReplayVideo:!t})},"aria-label":e("common:player.setting.repeat"),tabIndex:-1})})});var er=_.default.span.withConfig({componentId:"sc-3fb7e3d5-0"})(["",""],()=>(0,_.css)(["display:block;height:22px;margin:0 12px;.input-switch{height:22px;}"]));let es=(0,l.memo)(()=>{let{t:e}=(0,S.$G)(),t=(0,s.s68)(e=>e.playerSetting.isMuted);return(0,i.jsx)(er,{className:"volume-switcher",children:(0,i.jsx)(g.T5,{id:"volumeSwitch",name:"volume",checked:!1===t,onChange:()=>{window.player&&(t?(window.player.unmute(),(0,s.qQZ)(s.dAu.ROMEO_MUTED,"false")):(window.player.mute(),(0,s.qQZ)(s.dAu.ROMEO_MUTED,"true")))},"aria-label":e("common:player.setting.volume"),tabIndex:-1})})}),ed=e=>{var t,n,l,o,a;let{t:r}=(0,S.$G)(),d=(0,s.s68)(e=>e.playerSetting.activeMenu),c=(0,s.s68)(e=>e.playerSetting.subtitle.isActive),u=(0,s.s68)(e=>e.playerSetting.quality),m=(0,s.s68)(e=>e.playerSetting.speed),p=(0,s.s68)(e=>e.playerSetting.subtitle.hasSubtitle),h=(0,s.s68)(e=>e.playerSetting.isAutoplay),v=(0,s.s68)(e=>e.playerSetting.isReplayVideo),f=(0,s.s68)(e=>e.playerSetting.isMuted),x=(0,s.s68)(e=>e.setPlayerSetting),y="subtitle"===d||"quality"===d||"speed"===d,b="fontSize"===d||"color"===d||"backgroundColor"===d,w=e=>{e.preventDefault(),e.stopPropagation(),"undefined"!=typeof localStorage&&localStorage.setItem(s.dAu.IS_AUTOPLAY,h?"false":"true"),x({isAutoplay:!h})},k=e=>{e.preventDefault(),e.stopPropagation(),x({isReplayVideo:!v})},C=e=>{e.preventDefault(),e.stopPropagation(),window.player&&(f?(window.player.unmute(),(0,s.qQZ)(s.dAu.ROMEO_MUTED,"false")):(window.player.mute(),(0,s.qQZ)(s.dAu.ROMEO_MUTED,"true")))};return{defaultSettingMenuList:[{id:"1-autoplay",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.autoplay")}),content:(0,i.jsx)(G,{isInPlayer:!1,tabIndex:-1}),disabledHover:!0,onClick:e=>w(e)},{id:"2-replay-video",iconStart:"Repeat",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.repeat")}),content:(0,i.jsx)(ea,{}),disabledHover:!0,onClick:e=>k(e)},{id:"3-volume",iconStart:f?"Mute":"HighVol",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.volume")}),content:(0,i.jsx)(es,{}),disabledHover:!0,onClick:e=>C(e)},...p?[{id:"4-subtitle",iconStart:"Subtitle",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.subtitle.title")}),content:(0,i.jsx)(el,{text:c?r("common:player.setting.active"):r("common:player.setting.inactive"),onClick:()=>{x({activeMenu:"subtitle"})}}),disabledHover:!0,onClick:()=>{x({activeMenu:"subtitle"})}}]:[],...u&&(null==u?void 0:u.length)>0?[{id:"5-quality",iconStart:"FilterSort",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.quality")}
1),content:(0,i.jsx)(el,{text:null!==(o=null==u?void 0:null===(n=u.find(e=>e.selected))||void 0===n?void 0:null===(t=n.title)||void 0===t?void 0:t.split(" ")[0])&&void 0!==o?o:"",onClick:()=>{x({activeMenu:"quality"})}}),disabledHover:!0,onClick:()=>{x({activeMenu:"quality"})}}]:[],{id:"6-speed",iconStart:"Speed",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.speed")}),content:(0,i.jsx)(el,{text:null!==(a=null==m?void 0:null===(l=m.find(e=>e.selected))||void 0===l?void 0:l.title)&&void 0!==a?a:"",onClick:()=>{x({activeMenu:"speed"})}}),disabledHover:!0,onClick:()=>{x({activeMenu:"speed"})}}],getMenuTitle:()=>{switch(d){case"subtitle":return r("common:player.setting.subtitle.title");case"quality":return r("common:player.setting.quality");case"speed":return r("common:player.setting.speed");case"fontSize":return r("common:player.setting.subtitle.fontSize.title");case"color":return r("common:player.setting.subtitle.color.title");case"backgroundColor":return r("common:player.setting.subtitle.backgroundColor.title");default:return r("common:player.setting.title")}},handleBack:()=>{y&&x({activeMenu:"general"}),b&&x({activeMenu:"subtitle"})},handleClose:()=>{e&&e(),x({activeMenu:"general"})},activeMenu:d}};var ec=_.default.span.withConfig({componentId:"sc-c4872e57-0"})(["",""],()=>(0,_.css)(["display:block;height:22px;margin:0;.input-switch{height:22px;}"]));let eu=(0,l.memo)(()=>{let{t:e}=(0,S.$G)(),t=(0,s.s68)(e=>e.playerSetting.subtitle.isActive),n=(0,s.s68)(e=>e.playerSetting.subtitle.onSubtitleOn),l=(0,s.s68)(e=>e.playerSetting.subtitle.onSubtitleOff),o=(0,s.s68)(e=>e.setSubtitleSetting);return(0,i.jsx)(ec,{className:"subtitle-switcher",children:(0,i.jsx)(g.T5,{id:"subtitleActiveSwitch",name:"subtitle_active",checked:t,onChange:()=>{t?null==l||l():null==n||n(),o({isActive:!t})},"aria-label":e("common:player.setting.subtitle.title")})})}),em=()=>{var e,t,n,l,o,a;let{t:r}=(0,S.$G)(),d=(0,s.s68)(e=>e.setPlayerSetting),c=(0,s.s68)(e=>e.playerSetting.subtitle.fontSize),u=(0,s.s68)(e=>e.playerSetting.subtitle.color),m=(0,s.s68)(e=>e.playerSetting.subtitle.backgroundColor),p=(0,s.s68)(e=>e.playerSetting.subtitle.onReset),h=()=>null==p?void 0:p(),v=[{id:"1-subtitle-active",iconStart:"Subtitle",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.subtitle.title")}),content:(0,i.jsx)(eu,{}),disabledHover:!0},{id:"2-font-size",iconStart:"Resize",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.subtitle.fontSize.title")}),content:(0,i.jsx)(el,{text:null!==(t=null==c?void 0:null===(e=c.find(e=>e.selected))||void 0===e?void 0:e.title)&&void 0!==t?t:"",onClick:()=>d({activeMenu:"fontSize"})}),disabledHover:!0,onClick:()=>d({activeMenu:"fontSize"})},{id:"3-color",iconStart:"ColorPicker",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.subtitle.color.title")}),content:(0,i.jsx)(el,{text:null!==(l=null==u?void 0:null===(n=u.find(e=>e.selected))||void 0===n?void 0:n.title)&&void 0!==l?l:"",onClick:()=>d({activeMenu:"color"})}),disabledHover:!0,onClick:()=>d({activeMenu:"color"})},{id:"4-backgroundColor",iconStart:"ColorPicker",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.subtitle.backgroundColor.title")}),content:(0,i.jsx)(el,{text:null!==(a=null==m?void 0:null===(o=m.find(e=>e.selected))||void 0===o?void 0:o.title)&&void 0!==a?a:"",onClick:()=>d({activeMenu:"backgroundColor"})}),disabledHover:!0,onClick:()=>d({activeMenu:"backgroundColor"})},{id:"5-reset-button",iconStart:"Replay",text:(0,i.jsx)(g.ZT.Label,{size:"2",children:r("common:player.setting.subtitle.reset")}),onClick:h,content:(0,i.jsx)(el,{text:"",onClick:h}),disabledHover:!0}];return(0,i.jsx)(g.v2,{menuList:v})};var ep=_.default.div.withConfig({componentId:"sc-12b04408-0"})(["",";"],()=>(0,_.css)([".menu-wrapper{padding:0;.font-size-config-item{.content{padding-right:36px;}}.is-selected{.content{padding-right:8px;}}}"]));let eh=()=>{var e;let t=(0,s.s68)(e=>e.playerSetting.subtitle.fontSize),n=null!==(e=null==t?void 0:t.map(e=>({className:(0,s.dhh)("font-size-config-item",{"is-selected":e.selected}),id:"1-".concat(e.title,"-size"),iconStart:e.selected?"Tick":void 0,text:(0,i.jsx)(g.ZT.Label,{size:"2",children:e.title}),disabledHover:!0,onClick:()=>{var t;return null===(t=e.onClick)||void 0===t?void 0:t.call(e)},ariaSelected:e.selected})))&&void 0!==e?e:[];return(0,i.jsx)(ep,{className:"font-size-config-options",children:(0,i.jsx)(g.v2,{menuList:n})})};var ev=_.default.div.withConfig({componentId:"sc-96f40585-0"})(["",";"],()=>(0,_.css)([".menu-wrapper{padding:0;.color-config-item{.content{padding-right:36px;}}.is-selected{.content{padding-right:8px;}}}"]));let eg=()=>{var e;let t=(0,s.s68)(e=>e.playerSetting.subtitle.color),n=null!==(e=null==t?void 0:t.map(e=>({className:(0,s.dhh)("color-config-item",{"is-selected":e.selected}),id:"1-".concat(e.title,"-color"),iconStart:e.selected?"Tick":void 0,text:(0,i.jsx)(g.ZT.Label,{size:"2",children:e.title}),disabledHover:!0,onClick:()=>{var t;return null===(t=e.onClick)||void 0===t?void 0:t.call(e)},ariaSelected:e.selected})))&&void 0!==e?e:[];return(0,i.jsx)(ev,{className:"color-config-options",children:(0,i.jsx)(g.v2,{menuList:n})})};var ef=_.default.div.withConfig({componentId:"sc-c6174b56-0"})(["",";"],()=>(0,_.css)([".menu-wrapper{padding:0;.background-color-config-item{.content{padding-right:36px;}}.is-selected{.content{padding-right:8px;}}}"]));let ex=()=>{var e;let t=(0,s.s68)(e=>e.playerSetting.subtitle.backgroundColor),n=null!==(e=null==t?void 0:t.map(e=>({className:(0,s.dhh)("background-color-config-item",{"is-selected":e.selected}),id:"1-".concat(e.title,"-background-color"),iconStart:e.selected?"Tick":void 0,text:(0,i.jsx)(g.ZT.Label,{size:"2",children:e.title}),disabledHover:!0,onClick:()=>{var t;return null===(t=e.onClick)||void 0===t?void 0:t.call(e)},ariaSelected:e.selected})))&&void 0!==e?e:[];return(0,i.jsx)(ef,{className:"background-color-config-options",children:(0,i.jsx)(g.v2,{menuList:n})})};var ey=_.default.div.withConfig({componentId:"sc-4c6b56a9-0"})(["",";"],()=>(0,_.css)([".menu-wrapper{padding:0;.quality-config-item{.content{padding-right:36px;.quality-icon{width:32px !important;height:32px !important;}}}.is-selected{.content{padding-right:8px;}}}"]));let eb=()=>{var e;let t=(0,s.s68)(e=>e.playerSetting.quality),n=e=>{switch(e){case"HD":return"Hd";case"FHD":return"Fhd";default:return e}},l=null!==(e=null==t?void 0:t.map(e=>({className:(0,s.dhh)("quality-config-item",{"is-selected":e.selected}),id:"1-".concat(e.title,"-quality"),iconStart:e.selected?"Tick":void 0,content:(null==e?void 0:e.label)?(0,i.jsx)(g.I5,{name:n(e.label),className:"quality-icon"}):void 0,text:(0,i.jsx)(g.ZT.Label,{size:"2",children:e.title}),disabledHover:!0,onClick:()=>{var t;return null===(t=e.onClick)||void 0===t?void 0:t.call(e)},ariaSelected:e.selected})))&&void 0!==e?e:[];return(0,i.jsx)(ey,{className:"quality-config-options",children:(0,i.jsx)(g.v2,{menuList:l})})};var ew=_.default.div.withConfig({componentId:"sc-f8079532-0"})(["",";"],()=>(0,_.css)([".menu-wrapper{padding:0;.speed-config-item{.content{padding-right:36px;}}.is-selected{.content{padding-right:8px;}}}"]));let ek=()=>{var e;let t=(0,s.s68)(e=>e.playerSetting.speed),n=null!==(e=null==t?void 0:t.map(e=>({className:(0,s.dhh)("speed-config-item",{"is-selected":e.selected}),id:"1-".concat(e.title,"-speed"),iconStart:e.selected?"Tick":void 0,text:(0,i.jsx)(g.ZT.Label,{size:"2",children:e.title}),disabledHover:!0,onClick:()=>{var t;return null===(t=e.onClick)||void 0===t?void 0:t.call(e)},role:"radio",ariaChecked:e.selected})))&&void 0!==e?e:[];return(0,i.jsx)(ew,{className:"speed-config-options",children:(0,i.jsx)(g.v2,{menuList:n,listRole:"radiogroup"})})},eC=e=>{let{isDesktop:t=!1,onClose:n}=e,{t:l}=(0,S.$G)(),{activeMenu:o,defaultSettingMenuList:a,getMenuTitle:r,handleBack:s,handleClose:d}=ed(n);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"menu-header",children:[(0,i.jsx)(g.zx,{text:r(),buttonType:"neutral",buttonStyle:"transparent",size:"md",className:"back-button",actionType:"button",..."general"!==o?{iconStart:"Back",onClick:s,"aria-label":l("common:accessibilityLabel.back"),autoFocus:!0}:{tabIndex:-1,"aria-hidden":!0}},"back-button-".concat(o)),!t&&(0,i.jsx)(g.hU,{icon:"Close",className:"setting-modal-close-btn",onClick:d,buttonType:"neutral",buttonStyle:"transparent",tabIndex:-1})]}),"general"===o&&(0,i.jsx)(g.v2,{menuList:a}
1),"subtitle"===o&&(0,i.jsx)(em,{}),"fontSize"===o&&(0,i.jsx)(eh,{}),"color"===o&&(0,i.jsx)(eg,{}),"backgroundColor"===o&&(0,i.jsx)(ex,{}),"quality"===o&&(0,i.jsx)(eb,{}),"speed"===o&&(0,i.jsx)(ek,{})]})};var ej=(0,_.default)(g.u_).withConfig({componentId:"sc-faa6997-0"})(["",";"],e=>{let{theme:{space:t,color:n},$isDark:i}=e;return(0,_.css)(['height:fit-content !important;button,a,[role="button"]{-webkit-tap-highlight-color:transparent !important;}.menu-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:',";.setting-modal-close-btn{.icon{","}}.back-button{width:fit-content;border:none;&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:",";}.content{color:",";","}.icon{","}}}.menu-wrapper{padding:0 0 20px 0;","}.menu-item{> button{&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:transparent !important;}}.content{padding:8px 12px &:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:transparent !important;}"," .icon-start{","}.main-content{.label-text{","}}.icon-start{margin-",":",";","}.replay-switcher,.autoplay-switcher,.volume-switcher{margin:0;}.option-button{&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:",";}.icon{","}.content{.typo-button{","}}}.quality-icon{","}}}"],t.sm,i?"fill: ".concat(n.natural.white.white,";"):"",i?"transparent":"",i?n.natural.white.white:n.background[80],i?"font-size: 14px !important;":"",i?"fill: ".concat(n.natural.white.white,";"):"",i?"background: ".concat(n.dark[50],";"):"",i?"color: ".concat(n.natural.white.white,";"):"",i?"font-size: 20px !important;":"",i?"font-size: 14px !important;":"",t.left,t.xs,i?"fill: ".concat(n.natural.white.white,";"):"",i?"transparent":"",i?"fill: ".concat(n.natural.white.white,";"):"",i?"font-size: 12px !important;":"",i?"fill: ".concat(n.natural.white.white,";"):"")});let eS=e=>{let{show:t,onClose:n}=e,{handleClose:l}=ed(n),o=(0,s.s68)(e=>e.isPlayerFullscreen);return(0,i.jsx)(ej,{className:"mobile-setting-modal",show:t,onClose:l,hasGrip:!0,moreSpace:!0,hasBottomSheet:!o,isFullscreen:o,isDark:o,$isDark:o,children:(0,i.jsx)(eC,{onClose:l})})};var eI=_.default.span.withConfig({componentId:"sc-9fead06a-0"})(["",";"],e=>{let{theme:{color:t}}=e;return(0,_.css)(["position:absolute;bottom:50%;left:50%;display:inline-flex;height:fit-content;padding:2px;justify-content:center;align-items:center;color:",";text-align:center;font-size:8px !important;font-style:normal !important;font-weight:700 !important;line-height:normal !important;background-color:",";border-radius:3px;"],t.natural.white.white,t.primary.bg)});let e_=()=>{var e,t,n;let l=null===(e=(0,s.s68)(e=>e.playerSetting.quality))||void 0===e?void 0:e.find(e=>e.selected),o=(null==l?void 0:null===(t=l.label)||void 0===t?void 0:t.split(" "))||(null==l?void 0:null===(n=l.title)||void 0===n?void 0:n.split(" "));return(null==o?void 0:o.length)!==1||(null==o?void 0:o[0])==="auto"?null:(0,i.jsx)(eI,{className:"setting-quality-badge",children:o[0]})};var eP=(0,_.default)(g.Lt).withConfig({componentId:"sc-1d56ed29-0"})(["",";"],e=>{let{theme:{space:t,color:n},$isDark:i}=e;return(0,_.css)(["position:absolute;.setting-trigger{background-color:transparent;border:none;padding:10px;width:100%;width:46px;height:46px;display:flex;align-items:center;justify-content:center;}
1.dropdown-content{min-width:200px !important;max-width:min-content !important;direction:rtl;bottom:21px !important;left:unset !important;top:unset !important;right:21px !important;transform:none !important;height:fit-content !important;padding:0px;min-width:max-content;background:rgba(39,39,42,0.75);backdrop-filter:blur(16px);border:none;.option-button{width:auto;padding:0px;margin-right:20px;.icon-end{margin-right:0px;}}}height:fit-content !important;.menu-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:",";background:transparent;.setting-modal-close-btn{.icon{","}}.back-button{width:fit-content;border:none;&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:transparent !important;}.content{color:",";","}.icon{","}}}.menu-wrapper{padding:0;background:transparent;}.menu-item{> button{&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:transparent !important;}}.content{padding:8px 12px;&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:transparent !important;}"," .icon-start{","}.main-content{.label-text{","}}.icon-start{margin-",":",";","}.replay-switcher,.autoplay-switcher,.volume-switcher{margin:0;}.option-button{&:hover,&:focus,&:active,&:focus-within,&:focus-visible{background-color:transparent !important;}.icon{","}.content{.typo-button{","}}}.quality-icon{","}}}"],t.sm,i?"fill: ".concat(n.natural.white.white,";"):"",i?n.natural.white.white:n.background[80],i?"font-size: 14px !important;":"",i?"fill: ".concat(n.natural.white.white,";"):"",i?"color: ".concat(n.natural.white.white,";"):"",i?"font-size: 20px !important;":"",i?"font-size: 14px !important;":"",t.left,t.xs,i?"fill: ".concat(n.natural.white.white,";"):"",i?"fill: ".concat(n.natural.white.white,";"):"",i?"font-size: 12px !important;":"",i?"fill: ".concat(n.natural.white.white,";"):"")});let eR=e=>{let{onClose:t}=e,{t:n}=(0,S.$G)(),{handleClose:o}=ed(t),[a,r]=(0,l.useState)(!1);return(0,i.jsx)(eP,{trigger:(0,i.jsxs)("button",{className:"setting-trigger","aria-label":n("common:accessibilityLabel.settings"),children:[(0,i.jsx)(g.I5,{name:"Settings",className:(0,s.dhh)("settings-button",{"is-active":a})}),(0,i.jsx)(e_,{})]}),className:"desktop-setting-dropdown",onClose:o,onOpen:e=>{r(null!=e&&e)},$isDark:!0,children:(0,i.jsx)(eC,{isDesktop:!0})})};var eT=_.default.div.withConfig({componentId:"sc-15648673-0"})(["",";"],e=>{let{$isPlayerFullscreen:t,$isDesktop:n,theme:{color:i}}=e;return(0,_.css)([""," .setting-quality-badge{cursor:pointer;}.settings-button{width:24px !important;height:24px !important;padding-left:0;padding-right:0;border:none;fill:",";transition-duration:500ms;transform:rotate(-45deg);cursor:pointer;&.is-active{transform:rotate(45deg);}}"],n?"\n width: 46px;\n height: 46px;\n ":"\n position: fixed;\n top: ".concat(t?"18px":"70px",";\n left: 24px;\n width: 26px;\n height: 26px;\n "),i.natural.white.white)});let eL=()=>{let{t:e}=(0,S.$G)(),[t,n]=(0,l.useState)(!1),o=(0,s.s68)(e=>e.isPlayerFullscreen),a=(0,s.s68)(e=>e.deviceSize),r=(0,s.s68)(e=>e.isMobileAgent),d="mobile"===a||("large-table"===a||"tablet"===a)&&o&&r,c=()=>{n(!0)};return(0,i.jsx)(eT,{className:"player-setting-btn",$isDesktop:!d,$isPlayerFullscreen:o,onClick:c,...d&&{tabIndex:0,role:"button","aria-label":e("common:accessibilityLabel.settings"),onKeyDown:e=>"Enter"===e.key&&!t&&c()},children:d?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.I5,{name:"Settings",className:(0,s.dhh)("settings-button",{"is-active":t})}),(0,i.jsx)(e_,{})]}),(0,i.jsx)(eS,{show:t,onClose:()=>{n(!1)}})]}):(0,i.jsx)(eR,{})})};var eN=_.default.div.withConfig({componentId:"sc-120bbbac-0"})(["",";"],e=>{let{theme:{color:t}}=e;return(0,_.css)([".icon-button{border:none;outline:none;background:transparent;cursor:pointer;width:46px;height:46px;&:active,&:focus,&:focus-within,&:focus-visible,&:hover{background-color:transparent;border:none;outline:none;}.icon{font-size:24px !important;width:24px !important;height:24px !important;fill:",";vertical-align:middle;}}"],t.natural.white.white)});let eE=()=>{let{t:e}=(0,S.$G)(),{isTheaterMode:t,setIsTheaterMode:n}=(0,s.s68)((0,z.N)(e=>({isTheaterMode:e.isTheaterMode,setIsTheaterMode:e.setIsTheaterMode}))),l=e("common:accessibilityLabel.".concat(t?"exitTheaterMode":"enterTheaterMode"));
1return(0,i.jsx)(eN,{className:"theater-mode",children:(0,i.jsx)(g.hU,{icon:t?"ExitTheater":"Theater",onClick:()=>n(!t),"aria-label":l})})};var eA=n(87590),ez=n.n(eA),eD=n(12775),eF=_.default.div.withConfig({componentId:"sc-7c96fb00-0"})(["",""],e=>{let{theme:{color:t}}=e;return(0,_.css)([".icon-button{border:none;outline:none;.icon{font-size:20px;fill:",";}&:active,&:focus,&:focus-within,&:focus-visible,&:hover{background-color:transparent;border:none;outline:none;}}"],t.white)});let eM=(0,l.memo)(()=>{var e,t;let n=(0,s.UOt)(),{t:l}=(0,S.$G)(),{csVideoData:o}=(0,s.GY_)(n),a=null==o?void 0:null===(t=o.data)||void 0===t?void 0:null===(e=t.Like)||void 0===e?void 0:e.data,r=(0,eD.NL)(),d=(0,s.s68)(e=>e.openAuthModal),c=(0,s.s68)(e=>e.loginConfig),u=(0,s.s68)(e=>e.setPlayerMessage),m=!!(null==c?void 0:c.like),p=()=>{setTimeout(()=>{u({visible:!1,text:""})},3e3)},h=async e=>{var t,n,i,l;let o=await (null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.json());o&&(null==o?void 0:null===(n=o.errors)||void 0===n?void 0:n.length)>0&&(u({visible:!0,text:null==o?void 0:null===(l=o.errors)||void 0===l?void 0:null===(i=l.at(0))||void 0===i?void 0:i.detail}),p())},{isPending:v,mutate:f}=(0,s.QTX)({queryClient:r,queryKey:[s.U7p.videoCSR+n],onUpdate:(e,t)=>(null==t?void 0:t.data)?{...e,data:{...e.data,Like:{data:{...e.data.Like.data,...t.data}}}}:e,onError:h,onSuccess:e=>{(null==e?void 0:e.data)&&"like"===e.data.status&&(u({visible:!0,text:l("common:player.actions.likeSuccess")}),p())}});return(0,i.jsx)(eF,{children:(0,i.jsx)(g.hU,{className:"player-like-button",icon:(null==a?void 0:a.status)==="like"||v?"FavoriteFilled":"Favorite",buttonStyle:"transparent",onClick:()=>{if(m){d();return}f({url:(null==a?void 0:a.link)||""})},"aria-label":l("common:accessibilityLabel.".concat((null==a?void 0:a.status)==="like"?"removeLikeVideo":"likeVideo"))})})},(e,t)=>ez()(e,t));var eG=_.default.div.withConfig({componentId:"sc-328a7697-0"})(["",""],e=>{let{theme:{color:t,radius:n,space:i}}=e;return(0,_.css)(["position:absolute;display:block;width:max-content;border-radius:",";padding:",";color:",";z-index:200;background-color:",";opacity:0;transition:opacity 150ms ease-out;&::after{content:'';position:absolute;width:8px;height:8px;border-radius:",";background:",";}&.visible{opacity:1;}left:calc(100% + 5px);top:50%;transform:translate(0,-50%);&::after{left:1px;top:50%;transform:translate(-50%,-50%) rotate(-45deg);}"],n.md,"10px ".concat(i.sm),t.background[70],t.background[10],n.xs,t.background[10])});let eV=()=>{let e=(0,s.s68)(e=>e.playerMessage);return(0,i.jsx)(eG,{className:(0,s.dhh)("player-message",{visible:null==e?void 0:e.visible}),children:null==e?void 0:e.text})};var eO=_.default.div.withConfig({componentId:"sc-ced62ef5-0"})(["",""],e=>{let{theme:{color:t}}=e;return(0,_.css)(["position:relative;.icon-button{border:none;outline:none;.icon{font-size:20px;fill:",";}&:active,&:focus,&:focus-within,&:focus-visible,&:hover{background-color:transparent;border:none;outline:none;}}"],t.white)});_.default.span.withConfig({componentId:"sc-ced62ef5-1"})(["",""],e=>{let{theme:{radius:t,space:n,color:i}}=e;return"\n position: absolute;\n display: block;\n width: max-content;\n border-radius: ".concat(t.md,";\n padding: ").concat("10px ".concat(n.sm),";\n color: ").concat(i.background[70],";\n z-index: 200;\n background-color: ").concat(i.background[10],";\n opacity: 0;\n transition: opacity 150ms ease-out;\n\n &::after {\n content: '';\n position: absolute;\n width: 8px;\n height: 8px;\n border-radius: ").concat(t.xs,";\n background: ").concat(i.background[10],";\n }\n\n &.visible {\n opacity:1;\n }\n\n left: calc(100% + 5px);\n top: 50%;\n transform: translate(0, -50%);\n\n &::after {\n left: 1px;\n top: 50%;\n transform: translate(-50%, -50%) rotate(-45deg);\n }\n ")});let eU=(0,l.memo)(()=>{var e,t,n,o,a,r,d,c;let u=(0,s.UOt)(),m=(0,eD.NL)(),p=(0,s.pmc)(),{t:h}=(0,S.$G)(),{csVideoData:v}=(0,s.GY_)(null!=u?u:""),f=null==v?void 0:v.data,x=null==f?void 0:f.playListAllLink,y=null==f?void 0:null===(e=f.user_private_saved_playlist)||void 0===e?void 0:e.link,b=(0,s.s68)(e=>e.isLogin),w=(0,s.s68)(e=>e.setPlayerMessage),k=(0,l.useRef)(null),[C,j]=(0,l.useState)(null),{data:I,refetch:_}=(0,s.eoO)({uid:u,enabled:!!x&&b,allPlaylistsLink:x||""}),P=()=>{setTimeout(()=>{w({visible:!1,text:""})},3e3)},R=(0,l.useMemo)(()=>{var e;return null==I?void 0:null===(e=I.data)||void 0===e?void 0:e.find(e=>{var t;return(null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.toString())==="-3"||(null==e?void 0:e.create_type)==="system"})},[null==I?void 0:I.data]),T=null==f?void 0:null===(n=f.data)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.link_add_watch_later,L=null!==(c=null!==(d=null!==(r=null==R?void 0:R.toggle_url)&&void 0!==r?r:y)&&void 0!==d?d:null==f?void 0:f.link_add_watch_later)&&void 0!==c?c:T,N=(null==R?void 0:R.checked)!==void 0?"true"===R.checked:null==f?void 0:null===(o=f.user_private_saved_playlist)||void 0===o?void 0:o.checked,E=(0,l.useMemo)(()=>{var e;return void 0!==N?N:(null==f?void 0:null===(e=f.user_private_saved_playlist)||void 0===e?void 0:e.checked)!==void 0&&f.user_private_saved_playlist.checked},[N,null==f?void 0:null===(a=f.user_private_saved_playlist)||void 0===a?void 0:a.checked]),{mutate:A,isPending:z}=(0,s.QTX)({queryClient:m,queryKey:[s.U7p.videoCSR+u],onUpdate:(e,t)=>
1(0,s.k0o)(e,t,u,m,p,!0),onError:e=>{let t=(0,s.xU7)(e);t&&w({visible:!0,text:t}),null!==C&&j(null),P()},onSuccess:e=>{if(null==e?void 0:e.data){let{type:t,value:n,link:i}=e.data,l="".concat(t,"-").concat(i,"-").concat(n);"success"===t&&k.current!==l&&(k.current=l,w({visible:!0,text:n}),P(),x&&_())}}}),D=null!==C?C:E;return(0,i.jsxs)(eO,{children:[(0,i.jsx)(g.hU,{className:"player-save-button",icon:D||z?"SaveFilled":"Save",buttonStyle:"transparent",onClick:()=>{if(!b){w({visible:!0,text:h("common:player.actions.loginToSave")}),P();return}L&&(j(!D),A({url:L}))},"aria-label":h("common:accessibilityLabel.".concat(D?"removeFromPlaylist":"saveToPlaylist"))}),(0,i.jsx)(eV,{})]})},(e,t)=>ez()(e,t));var eB=_.default.div.withConfig({componentId:"sc-3ac34ffe-0"})(["",""],e=>{let{theme:{color:t}}=e;return(0,_.css)([".icon-button{border:none;outline:none;.icon{fill:",";}&:active,&:focus,&:focus-within,&:focus-visible,&:hover{background-color:transparent;border:none;outline:none;}}"],t.white)});let e$=(0,l.memo)(()=>{let{t:e}=(0,S.$G)(),t=(0,s.s68)(e=>e.nextVideoUrl),{push:n}=(0,s.RpX)();return(0,i.jsx)(eB,{children:(0,i.jsx)(g.hU,{icon:"SkipNextFilled",buttonStyle:"transparent",onClick:()=>n(t),"aria-label":e("common:accessibilityLabel.nextVideo")})})}),eH=[90,180,300],eq=()=>{let[e,t]=(0,l.useState)(null),[n,i]=(0,l.useState)(null),o=(0,l.useRef)(null),a=(0,l.useRef)([]),r=(0,l.useRef)(null),d=(0,l.useRef)(null),{isFullscreen:c}=(0,s.PWi)(),{isPlayerFullscreen:u}=(0,s.s68)((0,z.N)(e=>({isPlayerFullscreen:e.isPlayerFullscreen}))),m=(0,l.useCallback)(()=>document.getElementById(s.YDx.romeoPlayer)||document.getElementById(s.YDx.forceLoginPlayer),[]),p=(0,l.useCallback)(()=>{let e=m();if(!e){t(null);return}let{top:n,left:i,width:l,height:o}=e.getBoundingClientRect(),a={left:i+l/2,top:n+o/2};t(e=>(null==e?void 0:e.left)===a.left&&(null==e?void 0:e.top)===a.top?e:a)},[m]),h=(0,l.useCallback)(()=>{a.current.forEach(e=>{window.clearTimeout(e)}),a.current=[]},[]),v=(0,l.useCallback)(()=>{null!==o.current&&(window.cancelAnimationFrame(o.current),o.current=null),h()},[h]),g=(0,l.useCallback)(()=>{h(),a.current=eH.map(e=>window.setTimeout(()=>{p()},e))},[h,p]),f=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===o.current&&(o.current=window.requestAnimationFrame(()=>{p(),o.current=null})),e&&g()},[g,p]),x=(0,l.useCallback)(()=>{var e;if("function"!=typeof ResizeObserver)return;let t=m();if(d.current===t||(null===(e=r.current)||void 0===e||e.disconnect(),d.current=t,!t))return;let n=new ResizeObserver(()=>{f()});n.observe(t),r.current=n},[m,f]);return(0,l.useEffect)(()=>{var e;let t=()=>{f()},n=()=>{h(),p(),f()},i=()=>{f()},l=()=>{x(),f(!0)};return p(),f(!0),x(),window.addEventListener("resize",t),window.addEventListener("orientationchange",n),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",i),document.addEventListener("fullscreenchange",l),document.addEventListener("webkitfullscreenchange",l),()=>{var e,o;window.removeEventListener("resize",t),window.removeEventListener("orientationchange",n),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",i),document.removeEventListener("fullscreenchange",l),document.removeEventListener("webkitfullscreenchange",l),v(),null===(o=r.current)||void 0===o||o.disconnect(),r.current=null,d.current=null}},[v,h,f,x,p]),(0,l.useEffect)(()=>{x(),f(!0)},[u,c,f,x]),(0,l.useEffect)(()=>{i(e=>e===c?e:c)},[c]),{playerCenter:e,fullscreenState:null!=n?n:u}};var eZ=_.default.div.withConfig({componentId:"sc-e68335b8-0"})(["",""],e=>{let{theme:{color:t},$isPlayerFullscreen:n,$playerCenter:i}=e;return(0,_.css)(["position:fixed;top:",";left:",";transform:translate(-50%,-50%);opacity:0;transition:opacity 150ms ease-out;z-index:1005;&.is-active{opacity:1;}button,a,[role='button']{-webkit-tap-highlight-color:transparent !important;}.icon-button{height:auto;width:auto;padding:16px;border:none;outline:none;background:transparent;border-radius:50%;.icon{font-size:"," !important;width:"," !important;height:"," !important;fill:",";}&:active,&:focus,&:focus-within,&:focus-visible,&:hover{background-color:transparent;border:none;outline:none;}}"],n?"50vh":i?"".concat(i.top,"px"):"-9999px",n?"50vw":i?"".concat(i.left,"px"):"-9999px",n?"54px":"36px",n?"54px":"36px",n?"54px":"36px",t.white)});let eY=()=>{let{t:e}=(0,S.$G)(),{isPlaying:t,isPlayerActive:n,isDraggingSeekbar:l}=(0,s.s68)((0,z.N)(e=>({isPlaying:e.isPlaying,isPlayerActive:e.playerSetting.isPlayerActive,isDraggingSeekbar:e.isDraggingSeekbar}))),{fullscreenState:o,playerCenter:a}=eq(),r=D(),d=()=>{window.player&&(t?window.player.pause():(null===t&&(window.player.unmute(),(0,s.qQZ)(s.dAu.ROMEO_MUTED,"false")),window.player.play()))};return!r||l?null:(0,i.jsx)(eZ,{id:"play-pause-button",className:(0,s.dhh)("play-pause-button",{"is-active":!!n}),$isPlayerFullscreen:o,$playerCenter:a,children:t?(0,i.jsx)(g.hU,{icon:"Pause",onClick:d,"aria-label":e("common:accessibilityLabel.pauseVideo")}):(0,i.jsx)(g.hU,{icon:"Play",onClick:d,"aria-label":e("common:accessibilityLabel.playVideo")})})};function eQ(){let e=(0,I._)(["\n padding: 0 8px;\n "]);return eQ=function(){return e},e}var eX=_.default.div.withConfig({componentId:"sc-a862688e-0"})(["",";"],e=>{let{theme:{color:t,mediaQuery:n}}=e;return(0,_.css)(["padding:0 12px;display:flex;align-items:center;"," .timer-text{color:",";font-size:14px;font-style:normal;font-weight:500;line-height:24px;margin-left:4px;}"],n("xs","max")(eQ()),t.natural.white.white)});let eW=e=>{if(!Number.isFinite(e)||e<0)return"00:00";let t=Math.floor(e),n=Math.floor(t/3600),i=Math.floor(t%3600/60),l=t%60,o=e=>String(e).padStart(2,"0");return n>0?"".concat(o(n),":").concat(o(i),":").concat(o(l)):"".concat(o(i),":").concat(o(l))},eK=()=>{let{currentTime:e,duration:t}=(0,s.s68)((0,z.N)(e=>e.playerTimeDisplay));return(0,i.jsxs)(eX,{children:[(0,i.jsx)("span",{className:"timer-text timer-value",children:eW(e)}),(0,i.jsx)("span",{className:"timer-text timer-separator",children:"/"}),(0,i.jsx)("span",{className:"timer-text timer-duration",children:eW(t)})]})},eJ=[],e0={playLeft:{type:"play",placement:"left"},backwardLeft:{type:"backward",placement:"left"},forwardLeft:{type:"forward",placement:"left"},volumeLeft:{type:"volume",placement:"left"},audioRight:{type:"audio",placement:"right"},chromeCastRight:{type:"chrome-cast",placement:"right"},fullscreenRight:{type:"fullscreen",placement:"right"},airPlayRight:{type:"air-play",placement:"right"}},e1=(e,t,n)=>
1n?{type:"component",placement:e,component:t,title:n}:{type:"component",placement:e,component:t},e2=()=>{let{t:e}=(0,S.$G)(),{deviceType:t,isPlayerFullscreen:n,isDraggingSeekbar:o,isMobileAgent:a}=(0,s.s68)((0,z.N)(e=>({deviceType:e.deviceType,isPlayerFullscreen:e.isPlayerFullscreen,isDraggingSeekbar:e.isDraggingSeekbar,isMobileAgent:e.isMobileAgent}))),{isDesktopSize:r,showExpandedControlBar:d,showCompactOverlay:c,showActionsInLeftControls:u,showAutoplayInMainBar:m}=F(),p=!t,h=r&&!n&&!a,v=(0,l.useMemo)(()=>(0,i.jsx)(e$,{}),[]),g=(0,l.useMemo)(()=>(0,i.jsx)(G,{}),[]),f=(0,l.useMemo)(()=>(0,i.jsx)(eL,{}),[]),x=(0,l.useMemo)(()=>(0,i.jsx)(eM,{}),[]),y=(0,l.useMemo)(()=>(0,i.jsx)(eU,{}),[]),b=(0,l.useMemo)(()=>(0,i.jsx)(eE,{}),[]),w=(0,l.useMemo)(()=>(0,i.jsx)(eK,{}),[]);return{controls:(0,l.useMemo)(()=>{if(o&&c)return eJ;let t=[e0.playLeft,e1("left",v,e("single:nextVideo")),e0.backwardLeft,e0.forwardLeft,e0.volumeLeft,e1("left",w)],n=[e1("left",x,e("single:like")),e1("left",y,e("single:save"))];return[...d?t:u?n:eJ,...m?[e1("right",g,e("single:autoPlay"))]:[],e1("right",f),e0.audioRight,...p?[e0.airPlayRight]:[],...h?[e1("right",b,e("common:player.theaterMode"))]:[],...d?[e0.chromeCastRight,e0.fullscreenRight]:[]]},[e,d,u,m,c,p,v,g,f,x,y,b,o,h,w]),topControls:(0,l.useMemo)(()=>c?o?[e1("left",w)]:[e1("left",w),e1("right",v,e("single:nextVideo")),e0.chromeCastRight,e0.fullscreenRight]:eJ,[e,c,v,o,w])}};var e6=n(77506),e5=n(24942);class e7{constructor(e){var t=this;this.adPlayedPlayerFuunelRef=!1,this.adPlayedAdsFuunelRef=!1,this.adStatus=s.FPR.playingStateAd.ad,this.watchPercent={25:!1,50:!1,80:!1},this.watchTime=0,this.isPlaying=!1,this.isEnded=!1,this.isEndStreamCardsShownRef=!1,this.stalledCnt=0,this.dropFrameCnt=0,this.speedData=0,this.techData=null,this.isLoading=!1,this.autoQuality=!1,this.cachedEvents=null,this.setWatchTimerInterval=()=>{(0,e6._)(e7,e7,e3)||(0,e5._)(e7,e7,e3,setInterval(()=>this.watchTime+=1,1e3))},this.clearWatchTimerInterval=()=>{(0,e6._)(e7,e7,e3)&&(clearInterval((0,e6._)(e7,e7,e3)),(0,e5._)(e7,e7,e3,null))},this.getVisitpostReqData=()=>{var e,t,n,i,l,o,a,r;let d=null===(e=document)||void 0===e?void 0:e.getElementById(s.YDx.playerSection),c=null===(n=this.params)||void 0===n?void 0:null===(t=n.stats)||void 0===t?void 0:t.trafficSourceDetails,u=null===(l=window)||void 0===l?void 0:null===(i=l.player)||void 0===i?void 0:i.video,m=0;if(null==u?void 0:null===(o=u.buffered)||void 0===o?void 0:o.length){let e=u.currentTime||0;for(let t=0;t<u.buffered.length;t++)if(e>=u.buffered.start(t)&&e<=u.buffered.end(t)){m=u.buffered.end(t)-e;break}}let p="pause";this.isLoading?p="loading":this.isPlaying&&(p="play");let h=(null===(a=this.techData)||void 0===a?void 0:a.toLowerCase())||"hls",v={current_player_time:(null==u?void 0:u.currentTime)||0,buffer_length:m,current_state:p,player_type:"romeo",is_auto_quality:this.autoQuality,loading_time:0,watch_time:60,bandwidth_avg:0,is_focus_tab:(null===(r=document)||void 0===r?void 0:r.visibilityState)==="visible",tech:h,player_resolution:d?"".concat(d.clientWidth,"x").concat(d.clientHeight):"",fps_avg:0,drop_frames:this.dropFrameCnt,stalled_cnt:this.stalledCnt,completed:this.isEnded,speed:this.speedData>0?this.speedData:1,traffic_source_details:c&&"object"==typeof c?c:{}};return"data%5Buser_stat%5D=".concat(encodeURIComponent(JSON.stringify([v])))},this.sendVisitpost=e=>{(0,s.NqS)(e,{method:"POST",body:this.getVisitpostReqData(),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}},!0)},this.setVisitpostInterval=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,e6._)(e7,e7,e8)||(0,e5._)(e7,e7,e8,setInterval(()=>t.sendVisitpost(e),6e4))},this.clearVisitpostInterval=()=>{(0,e6._)(e7,e7,e8)&&(clearInterval((0,e6._)(e7,e7,e8)),(0,e5._)(e7,e7,e8,null))},this.durationPercent=e=>this.params.videoDuration?Math.ceil(this.params.videoDuration/100*e):0,this.setPlayerCurrentTime=e=>{window.player.video.currentTime=e},this.dispatchOnVideoPlayerEnded=e=>{e||window.dispatchEvent(new CustomEvent(s.FPR.playerEvents.videoPlayerEnded))},this.dispatchOnShowEndStreamCard=e=>{e||window.dispatchEvent(new CustomEvent(s.FPR.playerEvents.showEndStreamCard))},this.dispatchOnVideoReplay=()=>{window.dispatchEvent(new CustomEvent(s.FPR.playerEvents.videoReplay))},this.dispatchOnShowInStreamCard=(e,t)=>{!e&&this.params.inStreamCardsObj.current&&this.params.inStreamCardsObj.current[t]&&window.dispatchEvent(new CustomEvent(s.FPR.playerEvents.showInStreamCard,{detail:{sec:t}}))},this.dispatchOnProgressBarDragging=()=>{window.dispatchEvent(new CustomEvent(s.FPR.playerActions.onProgressbarDragging))},this.dispatchOnProgressBarChange=()=>{window.dispatchEvent(new CustomEvent(s.FPR.playerActions.onProgressbarChange))},this.playingStateHandler=e=>{let t=s.mbu.getInstance();return e?(this.adPlayedPlayerFuunelRef=!0,t.setPlayingState(s.FPR.playingState.ads)):this.adPlayedPlayerFuunelRef?t.setPlayingState(s.FPR.playingState.videoAdsPlayed):this.params.playerOptionsAdVmap?(this.adStatus=s.FPR.playingStateAd.rejectedAd,t.setPlayingState(s.FPR.playingState.adsRejected)):t.setPlayingState(s.FPR.playingState.video),t},this.playingStateAdsHandler=(e,t)=>{let n=s.mbu.getInstance();return t?null==n||n.setPlayingStateAd(t):e?(this.adPlayedAdsFuunelRef=!0,null==n||n.setPlayingStateAd(s.FPR.playingStateAd.ad)):this.adPlayedAdsFuunelRef?null==n||n.setPlayingStateAd(s.FPR.playingStateAd.videoAdsPlayed):this.params.playerOptionsAdVmap&&(this.adStatus=s.FPR.playingStateAd.rejectedAd,null==n||n.setPlayingStateAd(s.FPR.playingStateAd.videoAdsRejected)),n},this.onFirstLoad=e=>{this.playingStateHandler(e).gtmEvent(s.FPR.playerFunnel.firstLoad),this.adStatus===s.FPR.playingStateAd.rejectedAd&&this.playingStateAdsHandler(e,s.FPR.playingStateAd.rejectedAd).gtmEvent(s.FPR.playerFunnelAds.firstLoad,!0),this.playingStateAdsHandler(e).gtmEvent(s.FPR.playerFunnelAds.firstLoad,!0)},this.onFirstPlay=e=>{e||a.Mn.dispatch(s.FPR.playerEvents.videoFirstPlay),this.playingStateHandler(e).gtmEvent(s.FPR.playerFunnel.firstPlay),this.playingStateAdsHandler(e).gtmEvent(s.FPR.playerFunnelAds.firstPlay,!0),this.clearVisitpostInterval()},this.onTimeUpdate=()=>{let e=0,t=e=>{let t=JSON.parse((0,s.$oy)(s.dAu.videoResumeTime)||"{}");(0,s.qQZ)(s.dAu.videoResumeTime,JSON.stringify({...t,[this.params.uid]:e}))},n=e=>{let{[e]:t,...n}=JSON.parse((0,s.$oy)(s.dAu.videoResumeTime)||"{}");(0,s.qQZ)(s.dAu.videoResumeTime,JSON.stringify(n))},i=e=>Math.ceil(e/this.params.videoDuration*100);return this.clearVisitpostInterval(),(l,o)=>{var a;this.setPlayerCurrentTime(o);let r=Math.floor(o),d=i(o)>=95;switch(this.dispatchOnShowInStreamCard(l,r),r){case this.durationPercent(80):this.watchPercent[80]||(this.playingStateHandler(l).gtmEvent(s.FPR.playerFunnel.wat
1ch80Percent),this.watchPercent[80]=!0);break;case this.durationPercent(50):this.watchPercent[50]||(this.playingStateHandler(l).gtmEvent(s.FPR.playerFunnel.watch50Percent),this.watchPercent[50]=!0);break;case this.durationPercent(25):this.watchPercent[25]||(this.playingStateHandler(l).gtmEvent(s.FPR.playerFunnel.watch25Percent),this.watchPercent[25]=!0)}!l&&r>=this.params.videoDuration-this.params.endStreamCardTimeRef.current&&(this.dispatchOnShowEndStreamCard(l),this.isEndStreamCardsShownRef=!0),(l||r<this.params.videoDuration&&this.isEnded)&&(this.isEnded=!1,this.dispatchOnVideoReplay()),(l||r<this.params.videoDuration-this.params.endStreamCardTimeRef.current&&this.isEndStreamCardsShownRef)&&(this.isEndStreamCardsShownRef=!1,this.dispatchOnVideoReplay()),l||d||e===r||r%5!=0||(e=r,t(r)),!l&&d&&n(this.params.uid),!l&&(null===(a=this.params.stats)||void 0===a?void 0:a.statUrl)&&this.setVisitpostInterval(this.params.stats.statUrl),l||s.s68.getState().setPlayerTimeDisplay({currentTime:o})}},this.onEnded=e=>{if(e?this.playingStateAdsHandler(e,"Ad").gtmEvent(s.FPR.playerFunnelAds.finish,!0):this.playingStateHandler(e).gtmEvent(s.FPR.playerFunnel.endingWatch),!e){var t;s.s68.getState().playerSetting.isReplayVideo?this.params.playerRef.current&&(this.params.playerRef.current.seekTo(0),this.params.playerRef.current.play()):this.dispatchOnVideoPlayerEnded(e),this.isEnded=!0,this.clearVisitpostInterval(),(null===(t=this.params.stats)||void 0===t?void 0:t.statUrl)&&this.sendVisitpost(this.params.stats.statUrl)}},this.onAdSkipButtonShow=()=>{this.playingStateAdsHandler(!0).gtmEvent(s.FPR.playerFunnelAds.skipVisible,!0)},this.onAdSkipButtonClick=()=>{this.playingStateAdsHandler(!0).gtmEvent(s.FPR.playerFunnelAds.skipClicked,!0)},this.onCanPlayThrough=()=>{this.isLoading=!1,a.Mn.dispatch(s.FPR.playerEvents.canPlayThrough)},this.onAdHtmlSyncBannerReady=e=>{this.params.setSyncAdData("html",{isSync:!0,url:"forceHtml",HTML:e})},this.onAdJsonSyncBannerReady=e=>{this.params.setSyncAdData("json",e)},this.onPause=()=>{this.isPlaying=!1,s.s68.getState().setIsPlaying(!1),this.clearVisitpostInterval()},this.onPlay=e=>{s.s68.getState().setIsAd(e),s.s68.getState().setIsPlaying(!0),e||(this.isPlaying=!0)},this.onStalled=e=>{e||(this.stalledCnt+=1,this.isLoading=!0)},this.onSpeedChange=e=>{this.speedData=e},this.onFrameDrop=()=>{this.dropFrameCnt+=1},this.onTechChange=e=>{this.techData=e},this.onFullscreenChange=(e,t)=>
1{s.s68.getState().setIsPlayerFullscreen(t)},this.onSubtitleStyle=e=>{s.s68.getState().setSubtitleSetting({backgroundColor:null==e?void 0:e.background,color:null==e?void 0:e.color,fontSize:null==e?void 0:e.size,onReset:null==e?void 0:e.onReset})},this.onSubtitles=e=>{s.s68.getState().setSubtitleSetting({hasSubtitle:!0}),e.forEach(e=>{"off"===e.label?s.s68.getState().setSubtitleSetting({onSubtitleOff:e.onSelect}):s.s68.getState().setSubtitleSetting({onSubtitleOn:e.onSelect})})},this.onQualities=e=>{s.s68.getState().setPlayerSetting({quality:e}),this.autoQuality=!!(null==e?void 0:e.some(e=>"auto"===e.label))},this.onSpeeds=e=>{s.s68.getState().setPlayerSetting({speed:e})},this.onActivityChange=(e,t)=>{s.s68.getState().setPlayerSetting({isPlayerActive:t})},this.onVolumeChange=(e,t)=>{s.s68.getState().setPlayerSetting({isMuted:t}),(0,s.qQZ)(s.dAu.ROMEO_MUTED,t?"true":"false")},this.onProgressbarChange=()=>{this.dispatchOnProgressBarChange()},this.onProgressbarDragging=()=>{this.dispatchOnProgressBarDragging()},this.getAllEvents=()=>(this.cachedEvents||(this.cachedEvents={onFirstLoad:this.onFirstLoad,onFirstPlay:this.onFirstPlay,onTimeUpdate:this.onTimeUpdate(),onEnded:this.onEnded,onAdSkipButtonShow:this.onAdSkipButtonShow,onAdSkipButtonClick:this.onAdSkipButtonClick,onCanPlayThrough:this.onCanPlayThrough,onAdHtmlSyncBannerReady:this.onAdHtmlSyncBannerReady,onAdJsonSyncBannerReady:this.onAdJsonSyncBannerReady,onPause:this.onPause,onPlay:this.onPlay,onStalled:this.onStalled,onSpeedChange:this.onSpeedChange,onFrameDrop:this.onFrameDrop,onTechChange:this.onTechChange,onFullscreenChange:this.onFullscreenChange,onSubtitleStyle:this.onSubtitleStyle,onSubtitles:this.onSubtitles,onQualities:this.onQualities,onSpeeds:this.onSpeeds,onActivityChange:this.onActivityChange,onVolumeChange:this.onVolumeChange,onProgressbarDragging:this.onProgressbarDragging,onProgressbarChange:this.onProgressbarChange}),this.cachedEvents),this.params=e,this.clearVisitpostInterval()}}var e8={writable:!0,value:null},e3={writable:!0,value:null};let e4=(0,l.memo)(e=>{var t,n,d,c,m,h,g,f;let{ssVideoData:y,isServerMobile:b,children:k}=e,S=null==y?void 0:y.data,{data:I}=(0,s.Gi)(),{isSSG:_}=(0,s.$Nw)(),P=null==I?void 0:null===(n=I.data)||void 0===n?void 0:null===(t=n.profileInformation)||void 0===t?void 0:t.data,R=null==S?void 0:null===(m=S.Channel)||void 0===m?void 0:null===(c=m.data)||void 0===c?void 0:null===(d=c.follow)||void 0===d?void 0:d.data,T=null==S?void 0:S.playerOption,L=null==T?void 0:T.duration,N=null==T?void 0:null===(h=T.ad)||void 0===h?void 0:h.vmap,E=(0,l.useRef)(null),A=(0,s.s68)(e=>e.isPlayerDisabled),z=(null==S?void 0:S.badge)==="sensitive",F=(0,s.s68)(e=>e.showCampaignBanner),M=(0,s.s68)(e=>e.fixedHeader),G=(0,s.s68)(e=>e.setSyncAdData),V=(0,s.s68)(e=>e.setIsVideoProcessing),U=(0,s.s68)(e=>e.setIsKidsFriendly),$=(0,s.s68)(e=>e.setIsSensitive),H=(0,s.s68)(e=>e.setPlayerTimeDisplay),Z=(0,s.s68)(e=>e.setIsPlaying),Q=(0,s.s68)(e=>e.setPlayerSetting),W=(0,s.s68)(e=>e.deviceSize),K=(0,l.useRef)(null),ee=(0,o.useSearchParams)().get(s.EMf.TIME),et=(0,l.useRef)(L),[ei,el]=(0,l.useState)(0);(0,s.Iyq)(".main",()=>{let e=document.getElementById("trendMenu");e&&el(null==e?void 0:e.scrollHeight)});let eo=(0,l.useMemo)(()=>new e7({playerOptionsAdVmap:N,videoDuration:L,endStreamCardTimeRef:et,inStreamCardsObj:K,uid:null==S?void 0:S.uid,setSyncAdData:G,stats:null==T?void 0:T.stats,playerRef:E}),[N,L,null==S?void 0:S.uid,G,null==T?void 0:T.stats]).getAllEvents(),ea=en(y,T,"tablet"===W||"mobile"===W||b,Number(ee),_),{controls:er,topControls:es}=e2(),ed=!!D();return(0,l.useEffect)(()=>{var e,t;s.mbu.getInstance().gtmEvent(s.FPR.playerFunnel.playerInit,!1,!0),window.player={isLoaded:!0,video:{duration:L,currentTime:0},seekTo:null==E?void 0:null===(e=E.current)||void 0===e?void 0:e.seekTo,exitFullscreen:null==E?void 0:null===(t=E.current)||void 0===t?void 0:t.exitFullscreen,mute:()=>{var e;null==E||null===(e=E.current)||void 0===e||e.mute()},unmute:()=>{var e;null==E||null===(e=E.current)||void 0===e||e.unmute()},play:()=>{var e;null==E||null===(e=E.current)||void 0===e||e.play()},pause:()=>{var e;null==E||null===(e=E.current)||void 0===e||e.pause()}}},[]),(0,l.useEffect)(()=>{U(!((null==S?void 0:S.kids_friendly)==="no"&&(null==P?void 0:P.show_kids_friendly)==="yes"&&!(null==S?void 0:S.isYours)&&!(null==P?void 0:P.isOperator)))},[null==S?void 0:S.kids_friendly,null==P?void 0:P.show_kids_friendly,null==P?void 0:P.isOperator]),(0,l.useEffect)(()=>{$(z)},[z]),(0,l.useEffect)(()=>{sessionStorage.removeItem(s.sO7.RECEIVED_EVENTS),G("reset")},[y]),(0,l.useEffect)(()=>
1{if("undefined"!=typeof localStorage){let e=(0,s.$oy)(s.dAu.IS_AUTOPLAY);e&&Q({isAutoplay:"true"===e})}},[y]),(0,l.useEffect)(()=>{H({currentTime:0,duration:Number(L)||0})},[H,L,null==S?void 0:S.uid]),(0,l.useEffect)(()=>()=>{Z(null)},[Z,null==S?void 0:S.uid]),(0,l.useEffect)(()=>{V(s.xiW.includes(null==S?void 0:S.process))},[null==S?void 0:S.process]),(0,i.jsx)(X,{id:s.YDx.playerWrapper,$trendMenuHeight:ei,$isLandscape:"tablet"===W,$isLimited:A,$isMobile:"mobile"===W,$showCampaignBanner:F,$fixedheader:M,children:(0,i.jsxs)("div",{id:s.YDx.playerSection,children:[(0,i.jsx)(q,{isLimited:A,isSensitive:z,children:(0,i.jsxs)(J,{ref:E,eventHandlers:eo,options:ea,controls:er,topControls:es,isSSG:_,disableControlsEffect:ed,children:[(0,i.jsx)(r.qx,{children:s.xiW.includes(null==S?void 0:S.process)&&(0,i.jsx)("img",{className:"video-processing",alt:"Video Processing",src:(0,a.kY)("/static/img/features/video/video_processing.gif")})}),(0,i.jsxs)(r.qx,{children:[(0,i.jsx)(B,{}),(0,i.jsx)(eY,{}),(0,i.jsx)(Y,{}),(0,i.jsxs)(s.cNl,{name:"PlayerComponentsSuspense",eventName:s.FPR.playerEvents.videoFirstPlay,children:[(0,i.jsx)(w,{inStreamCardsObj:K}),(0,i.jsx)(C,{}),(0,i.jsx)(j.X,{}),(0,i.jsx)(u,{playerData:T}),(0,i.jsx)(v,{playerData:T,ssVideoData:y.data}),(0,i.jsx)(x,{ssFollowData:R,endStreamCardTimeRef:et,uid:null==y?void 0:null===(g=y.data)||void 0===g?void 0:g.uid}),(0,i.jsx)(p,{endElementId:null==T?void 0:T.endElementId,endHtml:null==S?void 0:S.endHTML}),(0,i.jsx)(O,{ad:null==T?void 0:null===(f=T.ad)||void 0===f?void 0:f.boostAd})]})]})]},null==S?void 0:S.uid)}),k]})})})},99029:function(e,t,n){n.r(t),n.d(t,{DownloadLinks:function(){return r}});var i=n(27573),l=n(8794),o=n(78399),a=o.default.div.withConfig({componentId:"sc-c5462810-0"})(["",";"],e=>{let{theme:{color:t,space:n}}=e;return(0,o.css)([".download-item{display:flex;justify-content:space-between;align-items:center;}.menu-wrapper{.menu-item{margin-bottom:0px;}}.download-item{.text,.size{white-space:nowrap;}.text{display:flex;justify-content:space-between;align-items:center;svg{fill:","}}.size{color:",";}}.download-item-icon{margin-",":",";}"],t.background[70],t.background[50],n.left,n.xs)});let r=e=>{let{isOpen:t,downloadLinksList:n,onBack:o}=e;return(0,i.jsx)(a,{children:(0,i.jsx)(l.xz,{show:t,onBack:o,menuList:n})})}},16692:function(e,t,n){n.r(t),n.d(t,{ErrorPageHandler:function(){return v}});var i=n(27573),l=n(64070);let o=(0,l.default)(()=>n.e(7295).then(n.bind(n,97646)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[97646]},ssr:!1}),a=(0,l.default)(()=>n.e(7295).then(n.bind(n,30574)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[30574]},ssr:!1}),r=(0,l.default)(()=>n.e(7295).then(n.bind(n,89703)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[89703]},ssr:!1}),s=(0,l.default)(()=>n.e(7295).then(n.bind(n,90056)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[90056]},ssr:!1}),d=(0,l.default)(()=>n.e(7295).then(n.bind(n,6541)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[6541]},ssr:!1}),c=(0,l.default)(()=>n.e(7295).then(n.bind(n,5356)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[5356]},ssr:!1}),u=(0,l.default)(()=>n.e(7295).then(n.bind(n,13931)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[13931]},ssr:!1}),m=(0,l.default)(()=>n.e(7295).then(n.bind(n,17118)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[17118]},ssr:!1}),p=(0,l.default)(()=>n.e(7295).then(n.bind(n,42820)).then(e=>e.PageNotFound),{loadableGenerated:{webpack:()=>[42820]},ssr:!1}),h=(0,l.default)(()=>n.e(7295).then(n.bind(n,86297)).then(e=>e.FilteringError),{loadableGenerated:{webpack:()=>[86297]},ssr:!1}),v=e=>{let{status:t,errorData:n}=e;switch(t){case 400:case 404:case 410:return(0,i.jsx)(o,{data:n});case 405:return(0,i.jsx)(a,{});case 422:return(0,i.jsx)(r,{});case 429:return(0,i.jsx)(s,{});case 500:return(0,i.jsx)(d,{});case 502:return(0,i.jsx)(c,{});case 503:return(0,i.jsx)(u,{});case 504:return(0,i.jsx)(m,{});case 507:return(0,i.jsx)(p,{});case 403:case 451:return(0,i.jsx)(h,{})}return null}},32711:function(e,t,n){n.r(t),n.d(t,{EventsTracker:function(){return o}});var i=n(7653),l=n(96);let o=(0,i.memo)(e=>{let{setFirstWatch:t,fireEvents:n,listenToEvents:o}=e,a=(0,l.jDj)();return(0,i.useEffect)(()=>{t&&l.mbu.getInstance().setStartingPonitTime()},[a]),(0,i.useEffect)(()=>
1{if(t){let e=Number(sessionStorage.getItem(l.FPR.sessionStorageKeys.videoWatchCount));sessionStorage.setItem(l.FPR.sessionStorageKeys.videoWatchCount,"".concat(e+1))}},[]),(0,i.useEffect)(()=>{let e=l.mbu.getInstance();n&&n.forEach(t=>{e.gtmEvent(t,!1,!0),t===l.FPR.playerFunnel.pageView&&(0,l.ylS)()})},[]),(0,i.useEffect)(()=>{let e=l.mbu.getInstance();if(o)return o.forEach(t=>{window.addEventListener(t.name,()=>{e.gtmEvent(t.fireName,!1,!0)})}),()=>{o.forEach(t=>{window.removeEventListener(t.name,()=>e.gtmEvent(t.fireName))})}},[]),null})},60487:function(e,t,n){n.r(t),n.d(t,{ForceLoginBanner:function(){return y}});var i=n(27573),l=n(7653),o=n(65123),a=n(46364),r=n(96),s=n(8794),d=n(56683),c=n(78399);function u(){let e=(0,d._)(["\n margin-top: ",";\n margin-bottom: ",";\n "]);return u=function(){return e},e}function m(){let e=(0,d._)(["\n padding: "," "," ",";\n "]);return m=function(){return e},e}function p(){let e=(0,d._)(["\n flex-direction: column;\n "]);return p=function(){return e},e}function h(){let e=(0,d._)(["\n flex-direction: column;\n "]);return h=function(){return e},e}function v(){let e=(0,d._)(["\n margin-bottom: ",";\n "]);return v=function(){return e},e}function g(){let e=(0,d._)(["\n max-width: 180px;\n "]);return g=function(){return e},e}function f(){let e=(0,d._)(["\n margin-",": 0;\n margin-top: ",";\n align-self: flex-start;\n "]);return f=function(){return e},e}var x=(0,c.default)(s.W2).withConfig({componentId:"sc-cee7eafe-0"})(["",""],e=>{let{theme:{space:t,color:n,radius:i,mediaQuery:l}}=e;return(0,c.css)(["margin-bottom:",";"," .login-banner{display:flex;align-items:center;background:",";border-radius:",";padding:"," ",";"," .image-wrapper{position:relative;}& > .image-wrapper{width:120px;height:120px;margin-",":40px;}.content{display:flex;flex:1;flex-wrap:wrap;"," .body{flex:1;"," .title-wrapper{display:flex;align-items:center;justify-content:space-between;margin-bottom:",";"," .image-wrapper{width:80px;height:80px;}.title{color:",";","}}.desc{color:",";}}.button{align-self:flex-end;margin-",":auto;","}}}"],t.lg,l("xs","max","list")(u(),t.xxs,t.sm),n.background.light10,i.lg,t.lg,t.xl,l("xs","max","list")(m(),t.xs,t.lg,t.md),t.left,l("xs","max","list")(p()),l("xs","max","list")(h()),t.sm,l("xs","max","list")(v(),t.xs),n.background[70],l("xs","max","list")(g()),n.background[70],t.right,l("xs","max","list")(f(),t.right,t.md))});let y=e=>{let{hasContainer:t}=e,{t:n}=(0,o.$G)(),d=(0,r.s68)(e=>e.openAuthModal),c="mobile"===(0,r.s68)(e=>e.deviceSize),u=(0,l.useCallback)(()=>(0,i.jsx)("div",{className:"image-wrapper",children:(0,i.jsx)(s.wY,{src:(0,a.kY)("/static/img/features/force-login/man-with-glasses.gif"),alt:"You are not logged in",fill:!0,unoptimized:!0})}),[]);return(0,i.jsx)(x,{className:"login-banner-container",as:t?void 0:"div",role:"region","aria-label":n("common:forceLogin.banner.title"),children:(0,i.jsxs)("div",{className:"login-banner",children:[!c&&(0,i.jsx)(u,{}),(0,i.jsxs)("div",{className:"content",children:[(0,i.jsxs)("div",{className:"body",children:[(0,i.jsxs)("div",{className:"title-wrapper",children:[(0,i.jsx)(s.ZT.Heading,{size:"h2",className:"title",tabIndex:0,children:n("common:forceLogin.banner.title")}),c&&(0,i.jsx)(u,{})]}),(0,i.jsx)(s.ZT.Body,{size:"3",className:"desc",tabIndex:0,children:(0,i.jsx)(o.a1,{t:n,i18nKey:"common:forceLogin.banner.".concat(c?"mobileDesc":"desc"),components:{br:(0,i.jsx)("br",{})}})})]}),(0,i.jsx)(s.zx,{text:n("common:forceLogin.banner.buttonText"),iconEnd:"Left",onClick:()=>{d()}})]})]})})}},9865:function(e,t,n){n.d(t,{F4:function(){return l.ForcedLoginPlayer},dG:function(){return o.ForceLoginBanner},xE:function(){return i.ForceLoginBox}});var i=n(13600),l=n(17379),o=n(60487)},17379:function(e,t,n){n.r(t),n.d(t,{ForcedLoginPlayer:function(){return g}});var i=n(27573),l=n(7653),o=n(65123),a=n(96),r=n(8794),s=n(56683),d=n(78399);function c(){let e=(0,s._)(["\n height: 375px;\n border-radius: 0;\n padding-top: 50%;\n "]);return c=function(){return e},e}function u(){let e=(0,s._)(["\n margin-bottom: ",";\n "]);return u=function(){return e},e}function m(){let e=(0,s._)(["\n max-width: 95%;\n margin-bottom: ",";\n "]);return m=function(){return e},e}function p(){let e=(0,s._)(["\n margin-bottom: ",";\n "]);return p=function(){return e},e}function h(){let e=(0,s._)(["\n max-width: 285px;\n "]);return h=function(){return e},e}var v=d.default.div.withConfig({componentId:"sc-58ae8205-0"})(["",""],e=>{let{theme:{color:t,space:n,mediaQuery:i}}=e;return(0,d.css)(["border-radius:12px;overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;z-index:21;padding-top:56.25%;position:relative;"," .player-content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:",";backdrop-filter:blur(14px);.icon-wrapper{margin-bottom:40px;"," .icon{font-size:56px;fill:",";}}.body{margin-bottom:40px;text-align:center;"," .title{margin-bottom:",";","}.desc{max-width:335px;display:block;","}.title,.desc{color:",";}}}"],i("xs","max")(c()),t.natural.black[50],i("xxxs","max","list")(u(),n.lg),t.natural.white.white,i("xxxs","max","list")(m(),n.lg),n.sm,i("xxxs","max","list")(p(),n.xs),i("xxxs","max","list")(h()),t.natural.white.white)});let g=()=>{var e;let{t}=(0,o.$G)(),n=(0,a.UOt)(),{csVideoData:s}=(0,a.GY_)(n),d=(0,a.s68)(e=>e.openAuthModal),c=(0,a.s68)(e=>e.deviceSize),u=(0,l.useRef)(null);return(0,i.jsx)(v,{id:"forceLoginPlayer",className:"forced-login-wrapper",ref:u,style:{backgroundImage:"url(".concat(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.b
1ig_poster,")")},children:(0,i.jsxs)("div",{className:"player-content",children:[(0,i.jsx)("div",{className:"icon-wrapper",children:(0,i.jsx)(r.I5,{name:"Lock"})}),(0,i.jsxs)("div",{className:"body",children:[(0,i.jsx)(r.ZT.Heading,{size:"mobile"===c?"h2":"h1",className:"title",children:t("forceLogin.player.title")}),(0,i.jsx)(r.ZT.Body,{size:"2",className:"desc",children:t("common:forceLogin.player.desc")})]}),(0,i.jsx)(r.zx,{text:t("common:forceLogin.player.buttonText"),onClick:()=>{d()},iconEnd:"Left",buttonStyle:"secondary"})]})})}},13600:function(e,t,n){n.r(t),n.d(t,{ForceLoginBox:function(){return c}});var i=n(27573),l=n(65123),o=n(46364),a=n(96),r=n(8794),s=n(78399),d=s.default.div.withConfig({componentId:"sc-773e47cf-0"})(["",""],e=>{let{theme:{color:t,space:n}}=e;return(0,s.css)(["display:flex;justify-content:center;align-items:center;flex-direction:column;.image-wrapper{position:relative;width:120px;height:120px;}.body{text-align:center;margin:"," 0;max-width:240px;.title,.desc{color:",";}.title{margin-bottom:",";}}"],n.lg,t.background[70],n.xs)});let c=()=>{let{t:e}=(0,l.$G)(),t=(0,a.s68)(e=>e.openAuthModal);return(0,i.jsxs)(d,{className:"login-box",children:[(0,i.jsx)("div",{className:"image-wrapper",children:(0,i.jsx)(r.wY,{src:(0,o.kY)("/static/img/features/force-login/door.gif"),alt:"You are not logged in",fill:!0,unoptimized:!0})}),(0,i.jsxs)("div",{className:"body",children:[(0,i.jsx)(r.ZT.Heading,{size:"h3",className:"title",tabIndex:0,children:e("common:forceLogin.playlist.title")}),(0,i.jsx)(r.ZT.Body,{size:"3",className:"desc",tabIndex:0,children:e("common:forceLogin.playlist.desc")})]}),(0,i.jsx)(r.zx,{text:e("common:forceLogin.playlist.buttonText"),onClick:()=>{t()},iconEnd:"Left"})]})}},32136:function(e,t,n){n.d(t,{OE:function(){return j.AppPromotion},Md:function(){return R.M},WA:function(){return x.CSRPlayer},$W:function(){return o.$},TF:function(){return T.CommentV2},oh:function(){return P.CommentsSkeleton},fz:function(){return L.DownloadLinks},xe:function(){return v.DynamicAppDlBottomSheetV2},zj:function(){return I.DynamicComments},gI:function(){return f.gI},cF:function(){return f.cF},t5:function(){return f.t5},dV:function(){return _.DynamicInsertComment},oT:function(){return f.oT},lG:function(){return f.lG},_H:function(){return f._H},Mw:function(){return f.Mw},pB:function(){return h.DynamicNotificationsV2},Cp:function(){return f.Cp},Z5:function(){return s.DynamicProfileMenu},Y2:function(){return p.DynamicProfileMenuV2},cd:function(){return d.DynamicSearch},Qm:function(){return c.DynamicSearchV2},Bp:function(){return f.Bp},bb:function(){return N.DynamicVideoMoments},sM:function(){return y.ErrorPageHandler},nq:function(){return a.EventsTracker},co:function(){return m.ForceDarkThemeProvider},dG:function(){return k.dG},xE:function(){return k.xE},_y:function(){return b._},Pb:function(){return C.Pb},wc:function(){return C.wc},a5:function(){return r.LiveAlertPopup},gE:function(){return b.g},Vy:function(){return w.PulseAlarm},Lb:function(){return i.Lb},pl:function(){return l.Thumbnail},rk:function(){return l.ThumbnailLoading},Ll:function(){return g.ThumbnailLoadingV2},_U:function(){return g.ThumbnailV2},CD:function(){return u.CD},TU:function(){return S.TU}});var i=n(56062),l=n(14889),o=n(72637),a=n(32711),r=n(4179);n(80442);var s=n(6239),d=n(56054),c=n(36189),u=n(4769),m=n(62165),p=n(7755),h=n(99683),v=n(23103),g=n(67336),f=n(72522);n(5799);var x=n(73803);n(27573),n(96),n(8794);var y=n(16692),b=n(3579),w=n(74077),k=n(9865),C=n(26899),j=n(55883);n(37589),n(87365);var S=n(15195),I=n(16918),_=n(55855),P=n(91860),R=n(33346),T=n(99771);n(59764),n(44698),n(45400),n(16676);var L=n(99029),N=n(81430)},4179:function(e,t,n){n.r(t),n.d(t,{LiveAlertPopup:function(){return h}});var i=n(27573),l=n(7653),o=n(65123),a=n(96),r=n(8794),s=n(56683),d=n(78399);function c(){let e=(0,s._)(["\n margin-left: auto;\n "]);return c=function(){return e},e}var u=d.default.div.withConfig({componentId:"sc-cd3c1c2c-0"})(["",""],e=>{let{theme:{space:t,color:n,mode:i,mediaQuery:l}}=e;return(0,d.css)(["margin-",":",";margin-bottom:2em;width:240px;height:auto;z-index:1000;background-color:",";border-radius:12px;box-shadow:0px 4px 24px 0px rgba(0,0,0,0.12);transition:transform 300ms ease-in-out;margin-right:12px;overflow:hidden;transform:translateY(200%);"," &.active{transform:translateY(0px);}@media (max-width:600px){width:100%;border-radius:12px 12px 0 0;margin:0;transform:translateY(0px) translateX(100%);&.active{transform:translateX(0);}}.live-link{height:184px;border-radius:inherit;display:flex;flex-flow:column;align-items:center;justify-content:flex-start;@media (max-width:600px){height:82px;flex-flow:row;padding:4px;}.live-cover{width:100%;flex:auto;object-fit:cover;border-radius:12px 12px 0 0;@media (max-width:600px){width:124px;height:64px;border-radius:6px;flex:unset;}}.live-title{height:auto;padding:8px 12px 12px 12px;font-size:12px;color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;@media (max-width:600px){flex:auto;align-self:flex-start;}}.play-container{position:absolute;top:calc(50% - 30px);left:calc(50% - 18px);padding:8px;border-radius:50%;border:2px solid ",";display:flex;align-items:center;justify-content:center;.play-icon{width:40px;height:40px;fill:",";}@media (max-width:600px){display:none;}}.live-badge{position:absolute;top:8px;left:8px;height:20px;
1display:flex;flex-flow:row;align-items:center;justify-content:center;gap:",";background-color:",";color:",";border-radius:4px;padding:2px 8px;.icon{fill:",";}@media (max-width:600px){top:calc(50% - 12px);right:132px;left:unset;}}}.close-container{position:absolute;top:8px;right:8px;width:20px;height:20px;display:flex;flex-flow:row;align-items:center;justify-content:center;background-color:",";border-radius:4px;cursor:pointer;.icon{fill:",";}@media (max-width:600px){top:calc(50% - 12px);right:unset;left:16px;background-color:",";.icon{fill:",";}}}"],t.right,t.lg,"light"===i?n.gray[10]:n.dark[40],l("xs","min")(c()),"light"===i?n.gray[100]:n.gray[20],(0,a.a7d)(n.white,.9),(0,a.a7d)(n.white,.9),t.xxs,n.brand,n.white,n.white,(0,a.a7d)(n.black,.5),n.white,"light"===i?n.gray[10]:n.dark[40],"light"===i?n.gray[100]:n.gray[20])}),m=n(12775);let p=()=>{var e,t;let{data:n}=(0,m.aM)({queryKey:[a.U7p.config],gcTime:0});return{data:null==n?void 0:null===(t=n.data)||void 0===t?void 0:null===(e=t.liveAlert)||void 0===e?void 0:e.data}},h=()=>{let{data:e}=p(),{t}=(0,o.$G)(),n=(0,l.useRef)(null),[s,d]=(0,l.useState)(!0),c="mobile"===(0,a.s68)(e=>e.deviceSize),m=()=>{var e,t,n;return(null===(n=window)||void 0===n?void 0:null===(t=n.localStorage)||void 0===t?void 0:null===(e=t.getItem(a.dAu.LIVE_ALERT))||void 0===e?void 0:e.split(","))||[]},h=()=>{(null==e?void 0:e.id)&&window.localStorage.setItem(a.dAu.LIVE_ALERT,[...m(),e.id].join(","))},v=()=>{d(!1),h()};return!e||m().includes(String(null==e?void 0:e.id))?null:(0,i.jsxs)(u,{className:(0,a.dhh)({active:s}),id:s?"live-alert-popup-wrapper":"",ref:n,children:[(0,i.jsxs)(r.N0,{className:"live-link",href:null==e?void 0:e.url,target:"_blank",onClick:()=>{window.open(null==e?void 0:e.url,"_blank"),v()},type:"external",children:[(0,i.jsx)("img",{className:"live-cover",alt:"live-cover",src:null==e?void 0:e.cover}),(0,i.jsx)(r.ZT.Label,{className:"live-title",size:"5",children:null==e?void 0:e.title}),(0,i.jsx)("div",{className:"play-container",children:(0,i.jsx)(r.I5,{className:"play-icon",name:"Play"})}),(0,i.jsxs)("div",{className:"live-badge",children:[(0,i.jsx)(r.I5,{name:"OnlineBoldFilled",width:"12px",height:"12px"}),(0,i.jsx)(r.ZT.Label,{size:"5",children:t("live")})]})]}),(0,i.jsx)("div",{className:"close-container",onClick:v,"aria-hidden":"true",children:(0,i.jsx)(r.I5,{name:"Close",width:c?"24px":"20px",height:c?"24px":"20px"})})]})}},74438:function(e,t,n){n.r(t),n.d(t,{DynamicModalAddToPlaylist:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(4018).then(n.bind(n,60525)).then(e=>e.ModalAddToPlaylist),{loadableGenerated:{webpack:()=>[60525]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{uid:t,showModal:n,onClose:o}=e;return(0,i.jsx)(l,{uid:t,showModal:n,onClose:o})}},94618:function(e,t,n){n.r(t),n.d(t,{DynamicConfirmationModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(4025).then(n.bind(n,14022)).then(e=>e.ConfirmationModal),{loadableGenerated:{webpack:()=>[14022]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{title:t,subtitle:n,cancelText:o,submitText:a,submitIcon:r,showModal:s,loading:d,children:c,width:u,submitAction:m,onClose:p,cancelAction:h}=e;return(0,i.jsx)(l,{title:t,subtitle:n,cancelText:o,submitText:a,submitIcon:r,showModal:s,submitAction:m,onClose:p,loading:d,cancelAction:h,children:c,width:u})}},82096:function(e,t,n){n.r(t),n.d(t,{DynamicDeleteCommentModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(5979).then(n.bind(n,37955)).then(e=>e.DeleteCommentModal),{loadableGenerated:{webpack:()=>[37955]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{show:t,comment:n,isReply:o,onClose:a,decreaseReplyCnt:r,updateList:s}=e;return(0,i.jsx)(l,{show:t,onClose:a,comment:n,isReply:o,decreaseReplyCnt:r,updateList:s})}},37471:function(e,t,n){n.r(t),n.d(t,{DynamicEmbedMusicModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(3259).then(n.bind(n,82)).then(e=>e.EmbedMusicModal),{loadableGenerated:{webpack:()=>[82]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{show:t,onClose:n,musicFlvName:o}=e;return(0,i.jsx)(l,{show:t,onClose:n,musicFlvName:o})}},90555:function(e,t,n){n.r(t),n.d(t,{DynamicEmbedModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(4489).then(n.bind(n,81066)).then(e=>e.EmbedModal),{loadableGenerated:{webpack:()=>[81066]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{showModal:t,onClose:n,customUid:o,width:a,poster:r}=e;return(0,i.jsx)(l,{showModal:t,onClose:n,customUid:o,width:a,poster:r})}},72522:function(e,t,n){n.d(t,{AP:function(){return c.DynamicModalAddToPlaylist},Bp:function(){return s.DynamicShareModal},Cp:function(){return d.DynamicPlaylistModal},Mw:function(){return a.DynamicModalReshare},_H:function(){return o.DynamicModalReport},cF:function(){return l.DynamicEmbedModal},gI:function(){return i.DynamicConfirmationModal},lG:function(){return u.DynamicMobilePlaylistSaveModal},oT:function(){return m.DynamicMobileMoreButtonModal},t5:function(){return r.DynamicEmbedMusicModal}});var i=n(94618),l=n(90555),o=n(3242),a=n(54994),r=n(37471),s=n(44156),d=n(1154),c=n(74438),u=n(75139),m=n(24998);n(75230),n(20356),n(57899),n(82096)},20356:function(e,t,n){n.r(t),n.d(t,{DynamicLoginModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>Promise.all([n.e(8855),n.e(997),n.e(2780),n.e(9104),n.e(4116),n.e(8476),n.e(2743)]).then(n.bind(n,11792)).then(e=>e.LoginModal),{loadableGenerated:{webpack:()=>[11792]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=()=>(0,i.jsx)(l,{})},24998:function(e,t,n){n.r(t),n.d(t,{DynamicMobileMoreButtonModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(8211).then(n.bind(n,97488)).then(e=>e.MobileMoreButtonModal),{loadableGenerated:{webpack:()=>[97488]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{show:t,isOpen:n,onClose:o,downloadLinksList:a,menuButtons:r,canDownload:s,onDownloadModalClose:d}=e;return(0,i.jsx)(l,{show:t,isOpen:n,canDownload:s,onClose:o,menuButtons:r,downloadLinksList:a,onDownloadModalClose:d})}},75139:function(e,t,n){n.r(t),n.d(t,{DynamicMobilePlaylistSaveModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(9042).then(n.bind(n,40928)).then(e=>e.MobilePlaylistSaveModal),{loadableGenerated:{webpack:()=>[40928]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{playListData:t,show:n,onClose:o,onCreatPlaylistClick:a}=e;return(0,i.jsx)(l,{show:n,playListData:t,onCreatPlaylistClick:a,onClose:o})}},1154:function(e,t,n){n.r(t),n.d(t,{DynamicPlaylistModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(8060).then(n.bind(n,64738)).then(e=>e.PlaylistModal),{loadableGenerated:{webpack:()=>[64738]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{playListData:t,typeModal:n,showModal:o,onClose:a,apiUrl:r,afterSubmitModal:s,playlistId:d}=e;return(0,i.jsx)(l,{playlistId:d,playListData:t,typeModal:n,showModal:o,onClose:a,apiUrl:r,afterSubmitModal:s})}},3242:function(e,t,n){n.r(t),n.d(t,{DynamicModalReport:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(4374).then(n.bind(n,67462)).then(e=>e.ModalReport),{loadableGenerated:{webpack:()=>[67462]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{showModal:t,disabledHtmlOverflowHidden:n,close:o,ssVideoData:a}=e;return(0,i.jsx)(l,{showModal:t,close:o,ssVideoData:a,disabledHtmlOverflowHidden:n})}},54994:function(e,t,n){n.r(t),n.d(t,{DynamicModalReshare:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(5824).then(n.bind(n,50412)).then(e=>
1e.ModalReshare),{loadableGenerated:{webpack:()=>[50412]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{showModal:t,onClose:n,videoData:o}=e;return(0,i.jsx)(l,{showModal:t,onClose:n,videoData:o})}},44156:function(e,t,n){n.r(t),n.d(t,{DynamicShareModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(2313).then(n.bind(n,86642)).then(e=>e.ShareModal),{loadableGenerated:{webpack:()=>[86642]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{socialTitle:t,showModal:n,path:o,externalPath:a,socialList:r,hasTime:s,onClose:d,uid:c,modalEmbedData:u}=e;return(0,i.jsx)(l,{showModal:n,onClose:d,path:o,externalPath:a,hasTime:s,socialList:r,socialTitle:t,uid:c,modalEmbedData:u})}},57899:function(e,t,n){n.r(t),n.d(t,{DynamicSpamModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(5979).then(n.bind(n,10626)).then(e=>e.SpamModal),{loadableGenerated:{webpack:()=>[10626]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{show:t,onClose:n,spamData:o,onUpdateSpam:a}=e;return(0,i.jsx)(l,{show:t,onClose:n,spamData:o,onUpdateSpam:a})}},75230:function(e,t,n){n.r(t),n.d(t,{DynamicSpammerModal:function(){return o}});var i=n(27573);let l=(0,n(64070).default)(()=>n.e(5979).then(n.bind(n,14786)).then(e=>e.SpammerModal),{loadableGenerated:{webpack:()=>[14786]},ssr:!1,loading:()=>(0,i.jsx)(i.Fragment,{})}),o=e=>{let{show:t,onClose:n}=e;return(0,i.jsx)(l,{show:t,onClose: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.