1(this["webpackJsonppubl-uw"]=this["webpackJsonppubl-uw"]||[]).push([[24],{2755:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(7),c=n(14),o=n(2),r=n(4),a=n(29),s=n(182),l=n(9),u=n(19),d=n(5),_=n(593),p=n(0);var b=function(){var e,t,n=Object(s.a)().t,d=Object(l.d)(Object(u.o)()),b=Object(r.useState)(!1),h=Object(c.a)(b,2),m=h[0],v=h[1],O=Object(a.useForm)({mode:"onChange",defaultValues:{reportReason:n("str_report_reason_opt_a")}}),f=O.setValue,x=O.watch,g=O.reset,T=x("pAppCode"),y=x("targetContentDetail"),C=x("reportReason"),S=x("reportReasonEtc"),E=Object(_.a)(T),k="mailto:".concat(null===d||void 0===d?void 0:d.email,"?body=").concat(n("str_report_reason"),": ").concat(S||C," %0D%0A ").concat(n("str_report_location"),": ").concat(E," %0D%0A ").concat(n("str_report_target_content_detail"),": ").concat(y," %0D%0A ").concat(n("str_report_additional_detail"),": "),B={reasonA:n("str_report_reason_opt_a"),reasonB:n("str_report_reason_opt_b"),reasonC:n("str_report_reason_opt_c"),reasonD:n("str_report_reason_opt_d"),reasonEtc:n("str_report_reason_opt_etc")},w=function(e){f("reportReason",e.target.value),f("reportReasonEtc","")};return{ReportContent:Object(p.jsx)(p.Fragment,{children:m&&Object(p.jsxs)(o.D_DesktopBasicModal,{titleText:n("str_report_content_title_text"),contentText:n("str_3833"),size:"medium",mBtn1Text:n("str_do_report"),mBtn2Text:n("str_close"),onClickMBtn1:function(){v(!1),window.open(k),g()},onClickMBtn2:function(){v(!1),g()},children:[Object(p.jsx)(o.Spacing,{size:"spacing_e"}),Object(p.jsx)(o.D_TextLabel,{text:n("str_report_target_content_detail"),styleTheme:"subTitleBold"}),Object(p.jsx)(o.D_TextLabel,{text:(e=y,t=20,e.length<=t?e:"".concat(e.slice(0,20),"...")),styleTheme:"body2Regular",ellipsisMode:"use"}),Object(p.jsx)(o.Spacing,{size:"spacing_f"}),Object(p.jsx)(o.D_TextLabel,{text:n("str_report_reason"),styleTheme:"subTitleBold"}),Object(p.jsx)(a.FormProvider,Object(i.a)(Object(i.a)({},O),{},{children:Object(p.jsxs)(o.Form,{children:[Object(p.jsx)(o.Spacing,{size:"spacing_d"}),Object(p.jsx)(o.D_Radio,{name:"reportReason",text:B.reasonA,checked:C===B.reasonA,onChange:function(e){return w(e)},value:B.reasonA}),Object(p.jsx)(o.Spacing,{size:"spacing_c"}),Object(p.jsx)(o.D_Radio,{name:"reportReason",text:B.reasonB,checked:C===B.reasonB,onChange:function(e){return w(e)},value:B.reasonB}),Object(p.jsx)(o.Spacing,{size:"spacing_c"}),Object(p.jsx)(o.D_Radio,{name:"reportReason",text:B.reasonC,checked:C===B.reasonC,onChange:function(e){return w(e)},value:B.reasonC}),Object(p.jsx)(o.Spacing,{size:"spacing_c"}),Object(p.jsx)(o.D_Radio,{name:"reportReason",text:B.reasonD,checked:C===B.reasonD,onChange:function(e){return w(e)},value:B.reasonD}),Object(p.jsx)(o.Spacing,{size:"spacing_c"}),Object(p.jsx)(o.D_Radio,{name:"reportReason",text:B.reasonEtc,checked:C===B.reasonEtc,onChange:function(e){return w(e)},value:B.reasonEtc}),Object(p.jsx)(o.Spacing,{size:"spacing_b"}),Object(p.jsxs)(j,{children:[Object(p.jsx)(o.Spacing,{size:"spacing_e",spacingType:"width"}),Object(p.jsx)(o.D_TextField,{name:"reportReasonEtc",size:"rlarge",hintText:n("str_3834"),defaultText:S,textLineType:"multi",multiRows:4,state:C===B.reasonEtc?"normal":"disabled",onChange:function(e){return function(e){f("reportReasonEtc",e.target.value)}(e)}})]})]})}))]})}),openReportContentModal:function(e,t){f("targetContentDetail",e),f("pAppCode",t),v(!0)},closeReportContentModal:function(){v(!1),g()}}},j=d.default.div.withConfig({displayName:"S_TextFiledWrapper",componentId:"sc-1b5b0x6-0"})(["display:flex;"])},2784:function(e,t,n){"use strict";var i=n(14),c=n(4),o=n(364);t.a=function(e){var t=e.startMs,n=e.onCompleted,r=e.delay,a=void 0===r?1e3:r,s=Object(c.useState)(t),l=Object(i.a)(s,2),u=l[0],d=l[1],_=Object(c.useState)((function(){return!(t<=0)})),p=Object(i.a)(_,2),b=p[0],j=p[1];return Object(o.a)((function(){if(u<=1e3)return j(!1),void(n&&n());d((function(e){return e-a}))}),b?a:null),{count:Object(c.useCallback)((function(e){var t=e%864e5,n=e%36e5,i=e%6e4;return{days:Math.floor(e/864e5),hours:Math.floor(t/36e5),minutes:Math.floor(n/6e4),seconds:Math.floor(i/1e3)}}),[])(u),isRunning:b}}},2842:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return ot}));var i=n(4),c=n.n(i),o=n(182),r=n(9),a=n(16),s=n(115),l=n(47),u=n(303),d=n(19),_=n(147),p=n(36),b=n(37),j=n(13),h=n(403),m=n(592),v=n(2),O=n(399),f=n(35),x=n(74),g=n(10),T=n(406),y=n(15),C=n(2776),S=n(589),E=n(590),k=n(89),B="LIVE-00042",w="UX_ELS_EVENT_HIDE_DISTINCT_ID_TO_USER",I="UX_ELS_EVENT_HIDE_VIEWER_NUMBER_TO_USER",R="UX_ELS_EVENT_LIVE_ENTRY_TIMING",D="UX_ELS_EVENT_SHOW_FLOATING_BUTTON",A="UX_ELS_EVENT_FLOATING_BUTTON_URL",M="UX_ELS_EVENT_FLOATING_BUTTON_TYPE",N="REPORT",L="BLOCK",F="UNBLOCK",z="HIDE",H="UNHIDE",U=n(14),W=n(364);var P=function(){var e=Object(r.c)(),t=Object(r.d)(u.a),n=Object(i.useState)(!1),c=Object(U.a)(n,2),o=c[0],a=c[1],s=Object(i.useState)(0),l=Object(U.a)(s,2),d=l[0],_=l[1];return Object(i.useEffect)((function(){t&&(_(t),a(!0))}),[t]),Object(W.a)((function(){if(t){if(0===d)return a(!1),void e(Object(x.s)());_((function(e){return e-1})),a(!0)}}),1e3),{isBlocked:o}},V=n(45);var K=function(){var e=Object(r.d)(u.m),t=Object(i.useState)(!1),n=Object(U.a)(t,2),c=n[0],o=n[1],a=Object(i.useState)(!1),s=Object(U.a)(a,2),l=s[0],d=s[1],_=Object(i.useState)(!1),p=Object(U.a)(_,2),b=p[0],j=p[1];return Object(i.useEffect)((function(){var e=function(){T.a.isFullscreenElement()?o(!0):o(!1)};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),function(){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e)}}),[]),Object(i.useEffect)((function(){if(e)switch(e){case y.i.TERMINATED:case"ERROR":T.a.isFullscreenElement()&&T.a.exitfullscreen(),d(!1),o(!1);var t=document.querySelector("video");t&&t.pause();break;default:return}}),[e]),{isFullscreen:c,isChatHide:l,isChatHideWithBasicController:b,openChatRoom:Object(i.useCallback)((function(){d(!1)}),[]),closeChatRoom:Object(i.useCallback)((function(){d(!0)}
1),[]),openChatRoomWithMemorize:Object(i.useCallback)((function(){d(!1),j(!1)}),[]),closeChatRoomWithMemorize:Object(i.useCallback)((function(){d(!0),j(!0)}),[])}},Y=n(488),G="init",q="start",X="beginning",Z="pause",J="restart",Q=/_?(\d+)\/playlist\.m3u8/,$=/\/(highest|high|middle|low)\.m3u8/,ee={highest:1080,high:720,middle:480,low:360},te={HIGHEST:1080,HIGH:720,MIDDLE:480,LOW:360};var ne=function(e){var t,n=e.liveId,c=e.pAppCode,o=Object(r.c)(),a=Object(i.useRef)(!0),s=Object(i.useRef)(n);Object(i.useEffect)((function(){s.current=n}),[n]);var l=function(e,t){var n=document.querySelector("video");if(("beginning"!==t||n)&&navigator.onLine){var i=function(e){var t,n,i;try{var c,o,r,a,l,u,d,_,p=null===e||void 0===e?void 0:e.closest(".video-js"),b=null===(_=(null!==(c=null===p||void 0===p||null===(o=p.player)||void 0===o||null===(r=o.tech({IWillNotUseThisInPlugins:!0}))||void 0===r||null===(a=r.vhs)||void 0===a||null===(l=a.playlists)||void 0===l||null===(u=l.media)||void 0===u||null===(d=u.call(l))||void 0===d?void 0:d.uri)&&void 0!==c?c:"").match(Q))||void 0===_?void 0:_[1];if(b)return Number(b)}catch(f){}var j=null!==(t=null===e||void 0===e?void 0:e.currentSrc)&&void 0!==t?t:"",h=null===(n=j.match(Q))||void 0===n?void 0:n[1];if(h)return Number(h);var m=null===(i=j.match($))||void 0===i?void 0:i[1];if(m)return ee[m];var v="publ-media-player-live-quality-".concat(g.f.getChannelCode(),"-").concat(s.current),O=localStorage.getItem(v)||"MIDDLE";return"AUTO"===O?void 0:te[O]}(e),r="number"===typeof e.currentTime&&!isNaN(e.currentTime)&&isFinite(e.currentTime)?Math.floor(e.currentTime):0;o(Object(x.f)({liveId:s.current,rotationTime:10,durationTime:0,quality:i,currentTime:r,type:t,pAppCode:c}))}},u=function(e){var n=e.target;n&&(l(n,a.current?q:J),a.current=!1,t&&clearInterval(t),t=setInterval((function(){return l(n,X)}),1e4))},d=function(e){var n=e.target;n&&(clearInterval(t),l(n,Z))};Object(i.useEffect)((function(){var e=document.documentElement.querySelector("video");return e&&(l(e,G),function(e){e.addEventListener("play",u),e.addEventListener("pause",d)}(e)),function(){e&&(e.paused||l(e,Z),function(e){e.removeEventListener("play",u),e.removeEventListener("pause",d),clearInterval(t)}(e),a.current=!0)}}),[])},ie=n(2755),ce=n(235),oe=n(236);var re=function(){var e=Object(o.a)("translation").t,t=Object(r.c)(),n=Object(a.m)().pAppCode,i=Object(s.a)(),c=i.openDialog,l=i.closeDialog,u=Object(ie.a)(),d=u.openReportContentModal;function _(e){var t=e.slice(-5);return"***".concat(t)}return{ReportContent:u.ReportContent,handleContextMenuItemClick:function(i){var o=i.type,r=i.message,a=i.distinctId,s=i.mid,u=i.nickname,p="seller"===i.messageType;switch(o){case N:if(p)return void c({contentText:e("str_6535"),btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:l});!function(e){d(e,n)}(r);break;case L:if(p)return void c({contentText:e("str_6537"),btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:l});!function(n){c({contentText:e("str_6506"),btnMode:"tbtn_amount2",tBtn1Text:e("str_confirm"),tBtn2Text:e("str_cancel"),onClickTBtn1:function(){t(Object(ce.a)({distinctId:n})),l()},onClickTBtn2:l})}(a);break;case F:!function(n,i){var o;c({contentText:e("str_6507",{code:_(n),nick:(o=i||"",o.charAt(0)+"*".repeat(o.length-1))}),btnMode:"tbtn_amount2",tBtn1Text:e("str_confirm"),tBtn2Text:e("str_cancel"),onClickTBtn1:function(){t(Object(ce.d)({distinctId:n})),l()},onClickTBtn2:l})}(a,u);break;case z:if(p)return void c({contentText:e("str_6536"),btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:l});!function(n){c({contentText:e("str_6502"),btnMode:"tbtn_amount2",tBtn1Text:e("str_confirm"),tBtn2Text:e("str_cancel"),onClickTBtn1:function(){t(Object(oe.c)({type:"CHAT",id:n})),l()},onClickTBtn2:l})}(s);break;case H:!function(n){c({contentText:e("str_6503"),btnMode:"tbtn_amount2",tBtn1Text:e("str_confirm"),tBtn2Text:e("str_cancel"),onClickTBtn1:function(){t(Object(oe.d)({type:"CHAT",id:n})),l()},onClickTBtn2:l})}(s)}}}},ae=n(5),se=n(0);var le=function(){var e,t=Object(o.a)("translation").t,n=Object(r.d)(_.c),i=Object(r.d)(u.a),c=Object(r.d)(u.p),a=0!==(null===n||void 0===n||null===(e=n.liveEventInfo)||void 0===e?void 0:e.sendMsgCooltimeInSec),s=P().isBlocked,l=Object(se.jsx)(se.Fragment,{});if(s){var d=i/60;l=Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_c"}
1),Object(se.jsx)(v.D_TextLabel,{text:t("str_err_2755",{blockedTime:Math.ceil(d)}),styleTheme:"caption2Regular",colorTheme:"sysTextError"})]})}if(!s&&a){var p=0===c?t("str_2752"):t("str_2753",{remainingSec:Math.ceil(c/1e3)});l=Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_c"}),Object(se.jsx)(v.D_TextLabel,{text:p,styleTheme:"caption2Regular",colorTheme:"sysTextTertiary"})]})}return l};function ue(e){var t=e.chat,n=e.isMyMessage,i=e.isDistinctIdHidden,c=e.isBlockedUser,r=e.isHiddenChat,a=e.onClickContetMenuItem,s=Object(o.a)("translation").t,l=t.uuid,u=t.isHidden,d=t.distinctId,_=t.nickname,p=t.message,b=i?h(_):_;function j(e){var t=e.slice(-5);return"***".concat(t)}function h(e){return e.replace(/#[\w\d]+\b\s*$/,"").trim()}if(u){var m=_;return c?m=j(d):i&&(m=h(_)),Object(se.jsx)(v.D_BasicChatListItem,{titleText:m,contentText:s("str_2717"),colorTheme:p.type,hoverMode:"none"},l)}return n?Object(se.jsx)(v.D_BasicChatListItem,{titleText:b,contentText:p.content,colorTheme:p.type,hoverMode:"none"},l):c?Object(se.jsx)(v.D_BasicChatListItem,{titleText:j(d),contentText:s("str_6517"),colorTheme:"secondary_transparent_grey",hoverMode:"use",contextMenuOptionArray:[{text:s("str_report"),value:N},{text:s("str_unblock_user"),value:F}],onClickContextMenuItem:function(e){return a({type:e.value,message:p.content,distinctId:d,mid:l,nickname:h(_),messageType:p.type})}},l):r?Object(se.jsx)(v.D_BasicChatListItem,{titleText:b,contentText:s("str_6514"),colorTheme:"secondary_transparent_grey",hoverMode:"use",contextMenuOptionArray:[{text:s("str_report"),value:N},{text:s("str_unhide"),value:H},{text:s("str_block_user"),value:L}],onClickContextMenuItem:function(e){return a({type:e.value,message:p.content,distinctId:d,mid:l,messageType:p.type})}},l):Object(se.jsx)(v.D_BasicChatListItem,{titleText:b,contentText:p.content,colorTheme:p.type,hoverMode:"use",contextMenuOptionArray:[{text:s("str_report"),value:N},{text:s("str_hide_chat"),value:z},{text:s("str_block_user"),value:L}],onClickContextMenuItem:function(e){return a({type:e.value,message:p.content,distinctId:d,mid:l,messageType:p.type})}},l)}function de(e,t){return e.chat.uuid===t.chat.uuid&&e.chat.isHidden===t.chat.isHidden&&e.isBlockedUser===t.isBlockedUser&&e.isHiddenChat===t.isHiddenChat}var _e=c.a.memo(ue,de);var pe=function(){var e=Object(o.a)("translation").t;return Object(se.jsx)(v.D_SectionSheet,{width:"auto",height:"auto",backgroundColorTheme:"base3",paddingTop:"spacing_b",paddingBottom:"spacing_b",overrideCSS:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0},children:Object(se.jsx)(v.D_TextLabel,{text:e("str_7034"),styleTheme:"caption1Bold",colorTheme:"sysTextSecondary"})})};var be=ae.default.div.withConfig({displayName:"S_PinnedMessageBox",componentId:"sc-1jaclre-0"})(["align-items:flex-start;display:grid;gap:8px;grid-template-columns:min-content 1fr min-content;height:",";max-height:50vh;overflow:auto;width:100%;"],(function(e){return e.isOpen?"auto":"24px"})),je=ae.default.div.withConfig({displayName:"S_FixedIcon",componentId:"sc-1jaclre-1"})(["position:sticky;top:0;"]),he=function(e){var t=e.message,n=Object(i.useState)(!1),c=Object(U.a)(n,2),o=c[0],r=c[1];return Object(se.jsx)(se.Fragment,{children:Object(se.jsx)(v.D_ContentSheet,{width:"auto",height:"auto",shapeType:"round",paddingBottom:"spacing_c",paddingTop:"spacing_c",paddingLeft:"spacing_c",paddingRight:"spacing_c",radius:8,overrideBackgroundColorKey:"ui_cpnt_sheet_base_10",overrideCSS:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"8px",left:"8px",right:"8px",zIndex:10},onClick:function(){return r((function(e){return!e}))},children:Object(se.jsxs)(be,{isOpen:o,children:[Object(se.jsx)(je,{children:Object(se.jsx)(v.Icon,{iconName:"ic_post_promotion",size:20,colorKey:"ui_cpnt_button_icon_on_primary"})}),Object(se.jsx)(v.D_TextLabel,{text:t,wordBreak:"break_all",styleTheme:"caption1Regular",colorOverride:"ui_cpnt_button_icon_on_primary",ellipsisMode:o?"none":"use",lineLimit:o?void 0:1}),Object(se.jsx)(je,{children:Object(se.jsx)(v.D_IconButton,{iconName:o?"ic_arrow_up":"ic_arrow_down",baseSize:"xsmall",iconSize:20,shapeType:"round",iconColorKey:"ui_cpnt_button_icon_on_primary",onClick:function(e){e.stopPropagation(),r((function(e){return!e}))}})})]})})})};var me=ae.default.div.withConfig({displayName:"S_ChatConnectErrorGuide",componentId:"sc-97d3my-0"})(["align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;"]),ve=ae.default.div.withConfig({displayName:"S_ChatWrapper",componentId:"sc-97d3my-1"})(["padding-top:",";"],(function(e){return e.isPinnedVisible?"56px":"0"})),Oe=function(e){var t,n,i,c,l=e.isChatHide,d=e.onClickHeaderIconButton,p=Object(o.a)("translation").t,j=Object(r.c)(),h=Object(a.m)().pAppCode,m=Object(r.d)(_.c),O=Object(r.d)(k.b),f=Object(r.d)(u.b),g=Object(r.d)(u.o),T=Object(r.d)(u.u),B=Object(r.d)(u.i),R=Object(r.d)(S.b),D=Object(r.d)(E.b),A=Object(r.d)(u.g),M=Object(r.d)(u.c),N=Object(r.d)(u.e),L=(null===m||void 0===m||null===(t=m.liveEventInfo)||void 0===t?void 0:t.simpleLiveChatRoom)||"",F=null!==(n=null===m||void 0===m||null===(i=m.config)||void 0===i?void 0:i[w])&&void 0!==n&&n,z=!(null!==m&&void 0!==m&&null!==(c=m.config)&&void 0!==c&&c[I]),H=Object(s.a)(),U=H.openDialog,W=H.closeDialog,V=re(),K=V.ReportContent,Y=V.handleContextMenuItemClick,G=P().isBlocked,q=Object(s.e)().userEntrywayForUse;function X(e){var t=e.toLowerCase().split(" ");return C.find((function(e){return t.some((function(t){return t===e}))}))}function Z(e){var t;return null!==m&&void 0!==m&&null!==(t=m.liveEventInfo)&&void 0!==t&&t.useSystemMsgBlacklist?!!X(e):!!function(e){var t=new RegExp(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/);return e.match(t)}(e)}return Object(se.jsxs)(se.Fragment,{children:[N?Object(se.jsx)(b.x,{position:"relative"}):Object(se.jsx)(se.Fragment,{children:(null===M||void 0===M?void 0:M.type)==="".concat(x.b.type,"_FAILED")?Object(se.jsxs)(me,{children:[Object(se.jsx)(v.D_TextLabel,{text:p("str_7903"),colorTheme:"sysTextSecondary",styleTheme:"caption1Regular",textAlign:"center"}),Object(se.jsx)(v.Spacing,{size:"spacing_d"}),Object(se.jsx)(v.D_MainButton,{text:p("str_7904"),styleTheme:"secondary",size:"small",onClick:function(){j(Object(x.b)({roomKey:L,pAppCode:h})),j(Object(x.A)())}})]}):Object(se.jsxs)(v.D_ChatList,{titleText:p("str_papp_event_live_chat"),textFieldMaxLength:y.l,captionText:z?p("str_1528",{quantity:T}):void 0,textFieldHintText:p(G?"str_2754":"str_1567"),textFieldState:G?"read_only":"normal",headerDisplayType:"ibtn1",submitIBtnState:B||G?"disabled":"normal",bodyMBtnText:p("str_2145"),headerIBtn1IconName:"ic_page_collapse",headerIBtn1IconFillType:"line",onSubmit:q((function(e){var t,n;if(Z(e)){var i=document.querySelector("input");return U({contentText:p("str_err_2751",{word:X(e)}),btnMode:"tbtn_amount1",tBtn1Text:p("str_confirm"),onClickTBtn1:W}),void(null===i||void 0===i||i.blur())}j(Object(x.B)(e)),j(Object(x.C)(null!==m&&void 0!==m&&null!==(t=m.liveEventInfo)&&void 0!==t&&t.sendMsgCooltimeInSec?1e3*(null===m||void 0===m||null===(n=m.liveEventInfo)||void 0===n?void 0:n.sendMsgCooltimeInSec):500))})),onClickHeaderIBtn1:d,footerChildren:Object(se.jsx)(le,{}),children:[g.length>0&&!l&&Object(se.jsx)(he,{message:g}),A&&Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(pe,{}),Object(se.jsx)("div",{style:{height:"36px"}})]}),Object(se.jsx)(ve,{isPinnedVisible:!!g.length,children:null===f||void 0===f?void 0:f.map((function(e){return Object(se.jsx)(_e,{chat:e,isBlockedUser:!!R&&Boolean(R[e.distinctId]),isHiddenChat:!!D&&Boolean(D[e.uuid]),isMyMessage:e.distinctId===(null===O||void 0===O?void 0:O.distinctId),isDistinctIdHidden:F,onClickContetMe
1nuItem:Y},e.uuid)}))})]})}),K]})},fe=n(2784);var xe=function(e){var t=e.time,n=e.styleTheme,c=e.colorTheme,r=e.showCaptions,a=Object(o.a)("translation").t,s=Object(i.useState)((function(){var e=V.a.tz(t).difference();return Number(e)})),l=Object(U.a)(s,1)[0],u=Object(fe.a)({startMs:l}),d=u.count,_=d.days,p=d.hours,b=d.minutes,j=d.seconds,h=u.isRunning,m=Object(i.useCallback)((function(e){var t=e.days,n=e.hours,i=e.minutes,c=e.seconds;if(!h)return"";function o(e){return e<10?"0".concat(e):e}return 0===t?a("str_countdown_format_2",{hours:o(n),minutes:o(i),seconds:o(c)}):a("str_countdown_format_1",{remainingDays:o(t)||"",hours:o(n),minutes:o(i),seconds:o(c)})}),[h]);return h?Object(se.jsxs)(se.Fragment,{children:[r&&Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.D_TextLabel,{text:a("str_countdown_time_remaining"),styleTheme:"body2Regular",colorTheme:"sysTextPrimary"}),Object(se.jsx)(v.Spacing,{size:"spacing_a"})]}),Object(se.jsx)(v.D_TextLabel,{text:m({days:_,hours:p,minutes:b,seconds:j}),styleTheme:n,colorTheme:c}),r&&Object(se.jsx)(v.Spacing,{size:"spacing_b"})]}):Object(se.jsx)(se.Fragment,{})},ge=n(300);var Te=function(){var e=Object(o.a)("translation").t,t=Object(r.c)(),n=Object(r.d)(u.c);function i(){t(Object(x.A)())}if(!n)return Object(se.jsx)(se.Fragment,{});var c=n.type,a=n.code,s=n.status;switch(c){case"".concat(x.m.type,"_FAILED"):return a===B||451===s?Object(se.jsx)(se.Fragment,{}):Object(se.jsx)(v.D_DesktopAlertDialog,{contentText:a?e("str_err_4300",{errCode:a}):e(ge.a[s]),btnMode:"tbtn_amount1",tBtn1Text:e("str_confirm"),onClickTBtn1:i});case"".concat(x.b.type,"_FAILED"):return Object(se.jsx)(se.Fragment,{});default:return Object(se.jsx)(v.D_DesktopAlertDialog,{contentText:a?e("str_err_4300",{errCode:a}):e(ge.a[s]),btnMode:"tbtn_amount1",tBtn1Text:e("str_confirm"),onClickTBtn1:i})}},ye="".concat(j.m,"/event"),Ce="".concat(j.m,"/event/live");var Se=ae.default.div.withConfig({displayName:"S_BroadcastThumbnail",componentId:"sc-wr7fst-0"})(["min-height:376px;position:relative;"]),Ee=ae.default.div.withConfig({displayName:"S_Dim",componentId:"sc-wr7fst-1"})(["align-items:center;background-color:",";bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;padding-left:",";padding-right:",";position:absolute;right:0;top:0;"],(function(e){return e.theme.ui_36}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),ke=ae.default.div.withConfig({displayName:"S_BackButtonWrapper",componentId:"sc-wr7fst-2"})(["left:0;position:absolute;top:12px;"]),Be=function(e){var t=e.thumbnailSrc,n=e.isTimerShow,i=e.title,c=e.startedAt,r=e.backUrl,s=Object(o.a)("translation").t,l=Object(a.k)();return Object(se.jsxs)(Se,{children:[Object(se.jsx)(v.ImageView,{src:t,shapeType:"rectangle",ratio:"auto",scaleType:"cover",width:"responsive",height:"responsive"}),n&&Object(se.jsxs)(Ee,{children:[Object(se.jsx)(ke,{children:Object(se.jsx)(v.D_IconButton,{iconSize:24,baseSize:"large",iconName:"ic_arrow_left",iconColorKey:"ui_cpnt_icon_sys_white",baseColorKey:"ui_cpnt_button_fill_base_transparent",onClick:function(){l.push(r)}})}),Object(se.jsx)(v.D_TextLabel,{text:i,styleTheme:"headingBold",colorTheme:"sysTextWhite",textAlign:"center",wordBreak:"break_all"}),Object(se.jsx)(v.Spacing,{size:"spacing_b"}),c?Object(se.jsx)(xe,{time:c,styleTheme:"displayBold",colorTheme:"sysTextWhite"}):Object(se.jsx)(v.D_TextLabel,{text:s("str_key_user_scene_c00005eventlive_title_noupcoming"),styleTheme:"displayBold",colorTheme:"sysTextWhite",textAlign:"center"})]})]})};var we=function(){var e=Object(o.a)().t;return Object(se.jsx)(v.D_ContentSheet,{width:"auto",height:"auto",paddingBottom:"none",paddingLeft:"none",paddingRight:"none",paddingTop:"none",backgroundColorTheme:"transparent",overrideCSS:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"16px",left:"64px",right:"64px",zIndex:3,pointerEvents:"none"},children:Object(se.jsx)(v.D_ContentSheet,{width:"fit-content",height:"auto",paddingLeft:"spacing_b",paddingRight:"spacing_b",paddingTop:"spacing_a",paddingBottom:"spacing_a",shapeType:"round",radius:8,overrideBackgroun
1dColorKey:"ui_dimmed_03",children:Object(se.jsx)(v.D_TextLabel,{text:e("str_8307"),colorTheme:"sysTextWhite",styleTheme:"body2Regular",textAlign:"center"})})})};var Ie=ae.default.div.withConfig({displayName:"S_LiveContents",componentId:"sc-3hrina-0"})(["display:flex;"]),Re=ae.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-3hrina-1"})(["flex:1;"]),De=function(e){var t=e.title,n=e.isBodyPrivate,i=e.body,c=e.startedAt;return Object(se.jsxs)(Ie,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_e",spacingType:"width"}),Object(se.jsxs)(Re,{children:[Object(se.jsx)(v.D_TextLabel,{text:t,styleTheme:"headingBold",colorTheme:"sysTextPrimary",wordBreak:"break_all"}),c&&Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_b"}),Object(se.jsx)(v.D_TextLabel,{text:V.a.tz(c).format("YYYY-MM-DD, HH:mm"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]}),Object(se.jsx)(v.Spacing,{size:"spacing_e"}),!n&&Object(se.jsx)(v.D_TextLabel,{text:i,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),Object(se.jsx)(v.Spacing,{size:"spacing_i"})]}),Object(se.jsx)(v.Spacing,{size:"spacing_e",spacingType:"width"})]})};var Ae=ae.default.div.withConfig({displayName:"S_PlayerWrapper",componentId:"sc-asqj6a-0"})(["position:relative;width:100%;"]),Me=ae.default.div.withConfig({displayName:"S_SideChatWrapper",componentId:"sc-asqj6a-1"})(["bottom:0;height:100%;position:fixed;right:0;top:0;width:20%;z-index:100;"]),Ne=function(e){var t,n,i,c=e.thumbnailSrc,o=e.streamUrl,s=e.token,l=e.liveId,u=e.backUrl,d=e.pAppCode,p=e.isFullscreen,j=e.isChatHide,h=e.openChatRoom,m=e.closeChatRoom,v=e.onReady;ne({liveId:Number(l),pAppCode:d});var O=Object(a.k)(),f=Object(r.d)(_.c),x=(null===(t=f.availableExtensions)||void 0===t?void 0:t.includes("Z00011"))||(null===(n=f.availableExtensions)||void 0===n?void 0:n.includes("Z00012"))||(null===(i=f.availableExtensions)||void 0===i?void 0:i.includes("Z00013"));return Object(se.jsx)(Ae,{children:Object(se.jsx)(b.G,{videoSrc:"".concat(o,"?token=").concat(s),thumbnailSrc:c,useNetworkApi:!1,onReady:v,onNavigate:function(){O.push(u)},videoPosition:"left",basicOption:{playerType:"D_Basic",fullscreenMode:"use",backMode:"use",liveQualityMode:"use",subtitleMode:x?"use":"none"},fullScreenOption:{playerType:"D_BasicFullscreen",fullscreenMode:"use",liveQualityMode:"use",sideOverlayButtonIconName:"ic_chat",isSideOverlayOpen:p&&!j,openSideOverlay:h,subtitleMode:x?"use":"none",sideOverlay:Object(se.jsx)(Me,{children:Object(se.jsx)(Oe,{isChatHide:j,onClickHeaderIconButton:m})})},clickEventOption:{hideControllerMode:"use",screenEnterMode:"use",screenMoveMode:"use",screenLeaveMode:"use",screenClickMode:"use"},isLive:!0})})};var Le=function(e){var t=e.onRetry,n=e.onClose,i=Object(o.a)().t;return Object(se.jsx)(v.D_ContentSheet,{width:"auto",height:"auto",paddingBottom:"none",paddingLeft:"none",paddingRight:"none",paddingTop:"none",backgroundColorTheme:"transparent",overrideCSS:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"16px",left:"64px",right:"64px",zIndex:3,pointerEvents:"none"},children:Object(se.jsxs)(v.D_ContentSheet,{width:"fit-content",height:"auto",paddingLeft:"spacing_b",paddingRight:"spacing_b",paddingTop:"spacing_a",paddingBottom:"spacing_a",shapeType:"round",radius:8,overrideBackgroundColorKey:"ui_dimmed_03",overrideCSS:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",columnGap:"12px",pointerEvents:"auto"},children:[Object(se.jsx)(v.D_TextLabel,{text:i("str_key_user_scene_c00005broadcast_banner_loadingretry_text"),colorTheme:"sysTextWhite",styleTheme:"body2Regular",textAlign:"center"}),Object(se.jsxs)(v.D_ContentSheet,{width:"auto",height:"auto",paddingBottom:"none",paddingLeft:"none",paddingRight:"none",paddingTop:"none",backgroundColorTheme:"transparent",overrideCSS:{display:"flex",alignItems:"center",flexShrink:0},children:[Object(se.jsx)(v.D_TextButton,{text:i("str_key_user_scene_c00005broadcast_banner_loadingretry_button"),size:"small",type:"button",fontWeight:"bold",onClick:t}),Object(se.jsx)(v.Spacing,{size:"spacing_c",spacingType:"width"}),Object(se.jsx)(v.D_TextButton,{text:i("str_close"),size:"small",type:"button",fontWeight:"bold",colorTheme:"white",onClick:n})]})]})})};var Fe=function(e){var t=e.liveId,n=e.pAppCode,c=e.backUrl,o=e.startTime,a=e.isFullscreen,s=e.isChatHide,l=e.openChatRoom,d=e.closeChatRoom,p=Object(r.d)(_.c),b=Object(r.d)(u.m),j=Object(r.d)(u.d),h=Object(r.d)(u.r),m=Object(r.d)(u.t),O=Object(r.d)(u.s),f=function(e){var t=e.pAppCode,n=Object(r.c)(),c=Object(r.d)(u.n),o=Object(r.d)(u.t),a=Object(i.useRef)(c);a.current=c;var s=!!c&&"CLEAN"!==c,l=Object(i.useRef)(null),d=Object(i.useRef)(!1),_=Object(i.useRef)(null),p=Object(i.useRef)(0),b=Object(i.useRef)(0),j=Object(i.useRef)(0),h=Object(i.useRef)(!1),m=Object(i.useRef)(0),v=Object(i.useState)(!1),O
1=Object(U.a)(v,2),f=O[0],g=O[1],y=Object(i.useState)(!1),C=Object(U.a)(y,2),S=C[0],E=C[1],k=Object(i.useState)(!1),B=Object(U.a)(k,2),w=B[0],I=B[1],R=Object(i.useRef)(0),D=Object(i.useState)(0),A=Object(U.a)(D,2),M=A[0],N=A[1];Object(i.useEffect)((function(){if(l.current&&c){if(T.a.exitfullscreen(),"CLEAN"===c)return g(!0),n(Object(x.v)()),l.current=null,void(d.current=!1);if(Object(Y.a)()<3e4)return g(!0),n(Object(x.v)()),l.current=null,void(d.current=!1);E(!1),l.current=null,d.current=!1,window.clearTimeout(R.current),R.current=window.setTimeout((function(){I(!0),E(!1)}),6e4)}}),[c,n]),Object(i.useEffect)((function(){s||(window.clearTimeout(R.current),I(!1),E(!1))}),[s]);var L=Object(i.useCallback)((function(){E(!0)}),[]),F=Object(i.useCallback)((function(){var e=_.current;return!e||e.isDisposed()?(_.current=null,null):e}),[]),z=Object(i.useCallback)((function(){n(Object(x.g)({pAppCode:t,isOnStream:!1})),window.clearTimeout(j.current),j.current=window.setTimeout((function(){var e=F();e&&e.readyState()>=3&&e.buffered().length>0||N((function(e){return e+1}))}),5e3)}),[n,F,t]),H=Object(i.useCallback)((function(){window.clearTimeout(m.current),h.current=!1,n(Object(x.v)())}),[n]),W=Object(i.useCallback)((function(){h.current||(h.current=!0,n(Object(x.g)({pAppCode:t,isOnStream:!1})),window.clearTimeout(m.current),m.current=window.setTimeout(H,3e3))}),[n,H,t]);return Object(i.useEffect)((function(){h.current&&H()}),[o]),Object(i.useEffect)((function(){return function(){window.clearTimeout(j.current),window.clearTimeout(m.current),window.clearTimeout(R.current),l.current&&(clearTimeout(l.current),l.current=null),d.current=!1}}),[]),Object(i.useEffect)((function(){var e=0,t=0,n=function(){var n,i;if(!a.current||"CLEAN"===a.current){var c=F();if(c){var o=c.tech({IWillNotUseThisInPlugins:!0});null===(n=(null===o||void 0===o?void 0:o.vhs)||(null===o||void 0===o?void 0:o.hls))||void 0===n||null===(i=n.playlists)||void 0===i||i.load(),e=window.setTimeout((function(){var e=F();if(e){var t=e.seekable();if(t.length){var n=t.end(t.length-1);n>e.currentTime()&&e.currentTime(n)}}}),3e3),t=window.setTimeout((function(){var e=F();if(e){var t=e.buffered();e.readyState()>=3&&t.length>0||z()}}),8e3)}}};return window.addEventListener("online",n),function(){window.removeEventListener("online",n),window.clearTimeout(e),window.clearTimeout(t)}}),[F,z]),Object(i.useEffect)((function(){var e=window.setInterval((function(){if(a.current&&"CLEAN"!==a.current)p.current=0;else{var e=F();if(e&&!e.paused())if(navigator.onLine){var t=e.currentTime(),n=t>b.current,i=e.readyState()>=3&&e.buffered().length>0;b.current=t,n&&i?p.current=0:(p.current+=1,p.current<3||(p.current=0,z()))}else p.current=0;else p.current=0}}),5e3);return function(){window.clearInterval(e)}}),[F,z]),{onReady:function(e){_.current=e,e.on("dispose",(function(){_.current=null})),e.on("waiting",(function(){d.current||(d.current=!0,l.current=setTimeout((function(){n(Object(x.l)({pAppCode:t}))}),1e4))})),e.on("playing",(function(){g(!1),d.current=!1,a.current&&n(Object(x.v)()),l.current&&(clearTimeout(l.current),l.current=null)}))},retryPlayback:W,dismissStreamErrorBanner:L,isNetworkConnectionBad:f,playerKey:M,hasStreamError:s,isPlayerStopped:w,isStreamErrorBannerShow:s&&!S}}({pAppCode:n}),g=f.isNetworkConnectionBad,C=f.hasStreamError,S=f.isStreamErrorBannerShow,E=f.isPlayerStopped,k=f.playerKey,B=f.onReady,w=f.retryPlayback,I=f.dismissStreamErrorBanner,R=b===y.i.ON_AIR&&h&&m&&!j&&!E,D=!!b&&"ERROR"!==b,A=Object(i.useState)({width:window.innerWidth,height:window.innerHeight}),M=Object(U.a)(A,2),N=M[0],L=M[1];return Object(i.useEffect)((function(){var e=function(){L({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),Object(se.jsxs)(ze,{windowSize:N,children:[g&&!C&&Object(se.jsx)(we,{}),S&&Object(se.jsx)(Le,{onRetry:w,onClose:I}),p.liveEventInfo&&Object(se.jsxs)(se.Fragment,{children:[R?Object(se.jsx)(Ne,{thumbnailSrc:O,streamUrl:h,token:m,liveId:t,backUrl:c,pAppCode:n,isFullscreen:a,isChatHide:s,openChatRoom:l,closeChatRoom:d,onReady:B},k):Object(se.jsx)(Be,{thumbnailSrc:O,isTimerShow:D,title:p.liveEventInfo.title,startedAt:o,backUrl:c}),Object(se.jsx)(v.Spacing,{size:"spacing_e"}),Object(se.jsx)(De,{title:p.liveEventInfo.title,body:p.liveEventInfo.body,isBodyPrivate:p.liveEventInfo.isBodyPrivate,startedAt:o})]})]})},ze=ae.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-136dn1m-0"}
1)(["height:100%;position:relative;> [class^='S_PlayerWrapper']{height:",";}> [class^='S_BroadcastThumbnail']{height:",";}"],(function(e){var t=e.windowSize;return"".concat(t.height-220,"px")}),(function(e){var t=e.windowSize;return"".concat(t.height-220,"px")})),He={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{liveTitle}}",description:"{{liveDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var Ue=ae.default.div.withConfig({displayName:"S_ChatWrapper",componentId:"sc-fli23p-0"})(["height:100%;div[x-pds-name='ContentsContainer']:nth-of-type(2){display:",";}"],(function(e){var t=e.isChatHide;return e.isFullscreen||t?"none":"block"})),We=ae.default.div.withConfig({displayName:"S_BroadcastWrapper",componentId:"sc-fli23p-1"})(["height:100%;position:relative;"]),Pe=ae.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-fli23p-2"})(["position:absolute;right:24px;top:16px;"]),Ve=ae.default.div.withConfig({displayName:"S_ChatContentLayoutWrapper",componentId:"sc-fli23p-3"})(["height:100%;position:relative;"]),Ke=ae.default.div.withConfig({displayName:"S_FirstContainerFloatingButtonWrapper",componentId:"sc-fli23p-4"})(["border-radius:24px;bottom:24px;box-shadow:",";position:fixed;right:24px;z-index:100;"],(function(e){return e.theme.boxShadow.elevation3})),Ye=ae.default.div.withConfig({displayName:"S_SecondContainerFloatingButtonWrapper",componentId:"sc-fli23p-5"})(["border-radius:24px;bottom:24px;box-shadow:",";left:-72px;position:absolute;z-index:100;"],(function(e){return e.theme.boxShadow.elevation3})),Ge=function(e){var t,n,c=e.onEntryAlert,s=Object(o.a)("translation").t,l=Object(a.k)(),d=Object(r.c)(),p=Object(a.m)(),b=p.channelCode,j=p.pAppCode,h=Object(r.d)(u.f),m=Object(r.d)(u.j),C=Object(r.d)(_.c),S=Object(r.d)(u.d),E=Object(r.d)(u.q),k=Object(r.d)(u.h),B=null===C||void 0===C?void 0:C.config,w=null!==(t=null===B||void 0===B?void 0:B[R])&&void 0!==t?t:"STAND_BY",I=(null===C||void 0===C||null===(n=C.liveEventInfo)||void 0===n?void 0:n.simpleLiveChatRoom)||"",N=null===B||void 0===B?void 0:B[D],L=(null===B||void 0===B?void 0:B[A])||"",F=(null===B||void 0===B?void 0:B[M])||"TYPE_A",z=Object(g.h)(b),H=g.b.getUserInfoInChannel(z),U=function(e,t,n,i){var c=Object(o.a)("translation").t,a=Object(r.d)(u.m);function s(e,n){var i=V.a.tz(),c=V.a.tz(t);return e?i.isBefore(c.subtract(e,n)):i.isBefore(c.format())}if(a===y.i.CANCELED)return{contentText:c("str_err_1504"),isBack:"STAND_BY"!==e};if(a===y.i.TERMINATED)return{contentText:c("str_err_1507"),isBack:"STAND_BY"!==e};if(n&&i)return{contentText:"",isBack:!1};var l="";switch(e){case"STAND_BY":n&&(l=c("str_key_user_scene_live_liveentry_dialog_scheduled"));break;case"SCHEDULED":!n&&t||(l=c("str_key_user_scene_live_liveentry_dialog_scheduled"));break;case"3_HOURS_BEFORE_START":(n||!t||s(3,"hours"))&&(l=c("str_key_user_scene_live_liveentry_dialog_3h"));break;case"2_HOURS_BEFORE_START":(n||!t||s(2,"hours"))&&(l=c("str_key_user_scene_live_liveentry_dialog_2h"));break;case"1_HOUR_BEFORE_START":(n||!t||s(1,"hours"))&&(l=c("str_key_user_scene_live_liveentry_dialog_1h"));break;case"30_MIN_BEFORE_START":(n||!t||s(30,"minutes"))&&(l=c("str_key_user_scene_live_liveentry_dialog_30min"));break;case"10_MIN_BEFORE_START":(n||!t||s(10,"minutes"))&&(l=c("str_key_user_scene_live_liveentry_dialog_10min"));break;case"LIVE_START":(n||!t||s(0,"minutes"))&&(l=c("str_key_user_scene_live_liveentry_dialog_start"))}return{contentText:l,isBack:!0}}(w,E,k,!(null===H||void 0===H||!H.isMonitoring)),W=U.contentText,P=U.isBack,Y=K(),G=Y.isFullscreen,q=Y.isChatHide,X=Y.isChatHideWithBasicController,Z=Y.openChatRoom,J=Y.closeChatRoom,Q=Y.openChatRoomWithMemorize,$=Y.closeChatRoomWithMemorize,ee=C.liveEventInfo?{title:s("str_seo_c00005_broadcast_title",{liveTitle:C.liveEventInfo.title,interpolation:{escapeValue:!1}}),description:C.liveEventInfo.body&&s("str_seo_c00005_broadcast_desc",{liveDescription:Object(g.j)(C.liveEventInfo.body,150)})}:null;function te(){l.push(Object(g.l)(ye,{channelCode:b,pAppCode:j}))}function ne(e){switch(e){case"TYPE_A":return"ic_cs_face";case"TYPE_B":return"ic_links";case"TYPE_C":return"ic_open_page"}}function ie(){L&&function(e){var t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol}(L)&&window.open(L,"","noopener")}return Object(f.b)("".concat(j,"Broadcast"),"".concat(j.toLowerCase(),"_brodcast")),Object(O.c)({manifest:He,isActivated:!0,data:ee,options:{useChannelTitlePrefix:!0}}),Object(i.useEffect)((function(){return d(Object(x.m)({pAppCode:j})),function(){d(Object(x.v)())}}),[j]),Object(i.useEffect)((function(){if(I)return d(Object(x.e)({pAppCode:j,roomKey:I})),d(Object(x.b)({pAppCode:j,roomKey:I})),function(){d(Object(x.j)({pAppCode:j})),d(Object(x.i)({pAppCode:j}))}}),[j,I]),Object(i.useEffect)((function(){S&&(T.a.isFullscreenElement()&&T.a.exitfullscreen(),d(Object(x.z)({pAppCode:j})),te())}),[S]),Object(i.useEffect)((function(){h||W&&(c(W),P&&te())}),[h,W,P]),Object(i.useEffect)((function(){if(N){var e=document.querySelector('[x-pds-name="Content2"]');e&&(e.style.overflow="initial")}}),[N]),Object(i.useEffect)((function(){G&&J(),!G&&X?J():G||X||Z()}),[X,G,Z,J]),Object(se.jsxs)(Ue,{isChatHide:q,isFullscreen:G,children:[Object(se.jsx)(v.WTContainersBox,{layoutType:"WTJ_1",content1:Object(se.jsxs)(We,{children:[Object(se.jsx)(Fe,{startTime:E,liveId:m,pAppCode:j,backUrl:Object(g.l)(ye,{channelCode:b,pAppCode:j}),isFullscreen:G,isChatHide:q,openChatRoom:Z,closeChatRoom:J}),q&&Object(se.jsx)(Pe,{children:Object(se.jsx)(v.D_IconButton,{shapeType:"circular",iconSize:20,iconName:"ic_chat",iconFillType:"fill",iconColorKey:"ui_cpnt_icon_sys_white",baseColorKey:"ui_cpnt_list_base_area_transparent",onClick:Q})}),N&&!G&&q&&Object(se.jsx)(Ke,{children:Object(se.jsx)(v.D_IconButton,{baseSize:"large",shapeType:"circular",iconName:ne(F),iconColorKey:"ui_125",baseColorKey:"ui_menu_button_base_transparent",onClick:ie})})]}),content2:Object(se.jsxs)(Ve,{children:[Object(se.jsx)(Oe,{isChatHide:q,onClickHeaderIconButton:$}),N&&!G&&Object(se.jsx)(Ye,{children:Object(se.jsx)(v.D_IconButton,{baseSize:"large",shapeType:"circular",iconName:ne(F),iconColorKey:"ui_125",baseColorKey:"ui_menu_button_base_transparent",onClick:ie})})]})}),Object(se.jsx)(Te,{})]})},qe=n(594);var Xe=ae.default.div.withConfig({displayName:"S_AgeRestrictionImageView",componentId:"sc-1amj0s0-0"})(["background-color:",";height:calc( 100vh - 64px - (",") );position:relative;width:100%;"],(function(e){return e.theme.ui_cpnt_masking_base_01}),(function(e){return e.isGlobalBannerOpen?"90px":"0px"})),Ze=ae.default.div.withConfig({displayName:"S_RestrictionIconWrapper",componentId:"sc-1amj0s0-1"})(["left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"]),Je=function(e){var t=e.isGlobalBannerOpen;return Object(se.jsx)(Xe,{isGlobalBannerOpen:t,children:Object(se.jsx)(Ze,{children:Object(se.jsx)(v.Icon,{size:64,iconName:"ic_unavailable",colorKey:"ui_cpnt_icon_sys_grey_03"})})})};var Qe=function(){var e=Object(o.a)("translation").t;return Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.D_TextLabel,{text:e("str_1584"),styleTheme:"body2Regular",colorTheme:"sysTextPrimary"}),Object(se.jsx)(v.Spacing,{size:"spacing_f"})]})};var $e=ae.default.div.withConfig({displayName:"S_SubMenuContent",componentId:"sc-skns8e-0"})(["padding-bottom:",";padding-left:",";"],(function(e){return e.theme.spacing.spacingI}),(function(e){return e.theme.spacing.spacingE})),et=function(e){var t,n,c=e.isRestricted,l=e.isMonitoringUser,d=Object(o.a)("translation").t,p=Object(r.c)(),b=Object(a.k)(),h=Object(a.m)(),m=Object(r.d)(_.c),O=Object(r.d)(u.q),f=Object(r.d)(u.h),T=null===m||void 0===m?void 0:m.config,y=null!==(t=null===T||void 0===T?void 0:T[R])&&void 0!==t?t:"STAND_BY",C=f&&!l,S=Object(s.e)().userEntrywayForUse,E=Object(s.a)(),k=E.openDialog,B=E.closeDialog;Object(i.useEffect)((function(){p(Object(x.x)())}),[]);var w=Object(i.useCallback)((function(e,t){var n=V.a.tz(),i=V.a.tz(O);return e?n.isBefore(i.subtract(e,t)):n.isBefore(i.format())}),[O]),I=Object(i.useCallback)((function(){if(f)return!l;switch(y){case"SCHEDULED":return!O;case"3_HOURS_BEFORE_START":return!O||w(3,"hours");case"2_HOURS_BEFORE_START":return!O||w(2,"hours");case"1_HOUR_BEFORE_START":return!O||w(1,"hours");case"30_MIN_BEFORE_START":return!O||w(30,"minutes");case"10_MIN_BEFORE_START":return!O||w(10,"minutes");case"LIVE_START":return!O||w(0,"minutes")}}),[O,y,f,l]),D=Object(i.useCallback)((function(){if(f&&l)return"";switch(y){case"STAND_BY":return f?d("str_key_user_scene_live_liveentry_dialog_scheduled"):"";case"SCHEDULED":return d("str_key_user_scene_live_liveentry_dialog_scheduled");case"3_HOURS_BEFORE_START":return d("str_key_user_scene_live_liveentry_dialog_3h");case"2_HOURS_BEFORE_START":return d("str_key_user_scene_live_liveentry_dialog_2h");case"1_HOUR_BEFORE_START":return d("str_key_user_scene_live_liveentry_dialog_1h");case"30_MIN_BEFORE_START":return d("str_key_user_scene_live_liveentry_dialog_30min");case"10_MIN_BEFORE_START":return d("str_key_user_scene_live_liveentry_dialog_10min");case"LIVE_START":return d("str_key_user_scene_live_liveentry_dialog_start")}}),[y,f,l]),A=Object(i.useCallback)((function(){if(f&&l)return d("str_key_user_scene_live_caption_rehearsal");switch(y){case"STAND_BY":return f?d("str_key_user_scene_live_liveentry_caption_scheduled"):"";case"SCHEDULED":return d("str_key_user_scene_live_liveentry_caption_scheduled");case"3_HOURS_BEFORE_START":return d("str_key_user_scene_live_liveentry_caption_3h");case"2_HOURS_BEFORE_START":return d("str_key_user_scene_live_liveentry_caption_2h");case"1_HOUR_BEFORE_START":return d("str_key_user_scene_live_liveentry_caption_1h");case"30_MIN_BEFORE_START":return d("str_key_user_scene_live_liveentry_caption_30min");case"10_MIN_BEFORE_START":return d("str_key_user_scene_live_liveentry_caption_10min");case"LIVE_START":return d("str_key_user_scene_live_liveentry_caption_start")}}),[y,f,l]);return Object(se.jsxs)($e,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_g"}),Object(se.jsx)(v.D_TextLabel,{text:function(){if(c)return d("str_key_user_scene_c00005_ageestriction_title");if(!O)return d("str_key_user_scene_c00005event_title_preparing");var e=O&&V.a.tz(O).difference(V.a.tz().format())<0;return d(e?f?l?"str_key_user_scene_event_title_rehearsal":"str_key_user_scene_c00005event_title_preparing":"str_key_user_scene_c00005event_title_progress":f?l?"str_key_user_scene_event_title_rehearsal_standby":"str_key_user_scene_c00005event_title_preparing":"str_papp_event_live_event_upcoming")}(),styleTheme:"displayBold"}),Object(se.jsx)(v.Spacing,{size:"spacing_g"}),c?Object(se.jsx)(Qe,{}):Object(se.jsxs)(se.Fragment,{children:[(null===m||void 0===m||null===(n=m.liveEventInfo)||void 0===n?void 0:n.title)&&Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.D_TextLabel,{text:m.liveEventInfo.title,styleTheme:"headingBold",colorTheme:"sysTextPrimary"}),Object(se.jsx)(v.Spacing,{size:"spacing_f"})]}),C?Object(se.jsx)(se.Fragment,{}):O&&Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(xe,{time:O,styleTheme:"headingBold",colorTheme:"sysTextPrimary",showCaptions:!0}),Object(se.jsx)(v.D_TextLabel,{text:d("str_2234",{date:V.a.tz(O).format("YYYY-MM-DD"),time:V.a.tz(O).format("HH:mm")}
1),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(se.jsx)(v.Spacing,{size:"spacing_g"})]})]}),Object(se.jsx)(v.D_MainButton,{text:d(c?"str_verification_identity":"str_papp_event_live_chat_room_enter"),onClick:c?S((function(){b.push(Object(j.W)(h.channelCode),{prevPath:location.pathname})})):S((function(){if(I()){var e=D();k({contentText:e,btnMode:"tbtn_amount1",tBtn1Text:d("str_ok"),onClickTBtn1:B})}else k({contentText:d("str_key_user_scene_live_liveentry_dialog_entry"),btnMode:"tbtn_amount2",tBtn1Text:d("str_enter"),tBtn2Text:d("str_cancel"),onClickTBtn1:function(){b.push(Object(g.l)(Ce,{channelCode:h.channelCode,pAppCode:h.pAppCode})),B()},onClickTBtn2:B})}),"GUEST_OPEN_WHEN_PUBLIC_OPEN")}),A()&&Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_c"}),Object(se.jsx)(v.D_TextLabel,{text:A(),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})},tt={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc5d0\uc11c \ub77c\uc774\ube0c \ubc29\uc1a1\uc774 \uc9c4\ud589\ub420 \uc608\uc815\uc785\ub2c8\ub2e4.",thumbnailSrc:"{promotionImageSrc}"},keyMappingDefinition:{title:"title",description:"description",thumbnailSrc:"thumbnailSrc"}};var nt=ae.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-8g5k5z-0"})(["display:flex;"]),it=ae.default.div.withConfig({displayName:"S_EmptyDiv",componentId:"sc-8g5k5z-1"})(["background-color:",";height:calc( 100vh - 64px - (",") );width:100%;"],(function(e){return e.theme.ui_cpnt_imageview_base_03}),(function(e){return e.isGlobalBannerOpen?"90px":"0px"})),ct=function(){var e,t,n,c=Object(o.a)("translation").t,s=Object(r.c)(),l=Object(a.m)(),p=l.pAppCode,b=l.channelCode,j=Object(r.d)(qe.a),h=Object(r.d)(d.c),m=Object(r.d)(_.c),T=Object(r.d)(u.d),y=Object(r.d)(_.b),C=Object(g.h)(b),S=g.b.getUserInfoInChannel(C),E=!(null===S||void 0===S||!S.isMonitoring),k=h?{title:c("str_seo_c00005_live_event_title",{menuName:h.pAppCodeMenuItemNameSet[p],interpolation:{escapeValue:!1}}),description:c("str_seo_c00005_live_event_desc",{channelName:h.title,interpolation:{escapeValue:!1}}),thumbnailSrc:null===(e=m.liveEventInfo)||void 0===e?void 0:e.promotionImageSrc}:null;return Object(f.b)("".concat(p,"LiveEvent"),"".concat(p.toLowerCase(),"_live_event")),Object(O.c)({manifest:tt,isActivated:!0,data:k,options:{useChannelTitlePrefix:!0}}),Object(i.useEffect)((function(){return s(Object(x.m)({pAppCode:p})),function(){s(Object(x.A)()),s(Object(x.w)())}}),[]),Object(se.jsxs)(se.Fragment,{children:[Object(se.jsx)(v.WTContainersBox,{layoutType:"WTP_2",subMenuContent:Object(se.jsx)(et,{isRestricted:451===(null===y||void 0===y?void 0:y.code),isMonitoringUser:E}),content1:Object(se.jsxs)(nt,{children:[Object(se.jsx)(v.Spacing,{size:"spacing_e",spacingType:"width"}),451===(null===y||void 0===y?void 0:y.code)?Object(se.jsx)(Je,{isGlobalBannerOpen:j}):null!==m&&void 0!==m&&null!==(t=m.liveEventInfo)&&void 0!==t&&t.promotionImageSrc?Object(se.jsx)(v.ImageView,{src:null===m||void 0===m||null===(n=m.liveEventInfo)||void 0===n?void 0:n.promotionImageSrc,shapeType:"rectangle",width:"responsive",backgroundFillMode:"use"}):Object(se.jsx)(it,{isGlobalBannerOpen:j})]})}),T&&Object(se.jsx)(v.D_DesktopAlertDialog,{contentText:c("str_err_1506",{errCode:"err"}),btnMode:"tbtn_amount1",tBtn1Text:c("str_confirm"),onClickTBtn1:function(){s(Object(x.u)())}}),Object(se.jsx)(Te,{})]})};var ot=function(){var e=Object(o.a)("translation").t,t=Object(a.m)().pAppCode,n=Object(r.d)(Object(p.f)()),c=Object(r.d)(Object(d.n)()),v=Object(r.d)(_.c),O=Object(r.d)(_.b),f=Object(r.d)(u.l),x=Object(s.a)(),g=x.openDialog,T=x.closeDialog,y=Object(i.useCallback)((function(t){g({contentText:t,btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:T})}),[g,T]);if(!c)return Object(se.jsx)(se.Fragment,{});var C=c.channelCode;if(O)switch(O.code){case 451:return Object(se.jsx)(b.k,{children:Object(se.jsxs)(a.g,{children:[Object(se.jsx)(l.q,{exact:!0,path:ye,component:ct,isAuthenticated:n}),Object(se.jsx)(a.c,{from:j.m,to:ye})]})});case 403:return Object(se.jsx)(a.c,{to:Object(j.P)(C,t)});default:return Object(se.jsx)(a.g,{children:Object(se.jsx)(a.c,{to:Object(j.
1V)(C)})})}return v&&v.code===t?Object(se.jsx)(b.k,{children:Object(se.jsxs)(a.g,{children:[Object(se.jsx)(l.q,{exact:!0,path:ye,component:ct,isAuthenticated:n}),Object(se.jsx)(l.l,{exact:!0,path:Ce,render:function(){return Object(se.jsx)(Ge,{onEntryAlert:y},f)},option:"GUEST_OPEN_WHEN_PUBLIC_OPEN"}),Object(se.jsx)(l.q,{exact:!0,path:j.Zb,component:m.a,isAuthenticated:n}),Object(se.jsx)(a.c,{from:j.m,to:ye})]})}):O||v?Object(se.jsx)(b.y,{}):Object(se.jsxs)(a.g,{children:[Object(se.jsx)(l.q,{exact:!0,path:j.fb,component:h.a,isAuthenticated:n}),Object(se.jsx)(a.c,{from:j.m,to:Object(j.U)(C)})]})}}}]);
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.