1(this["webpackJsonppubl-uw"]=this["webpackJsonppubl-uw"]||[]).push([[25],{2755:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n(7),o=n(14),c=n(2),r=n(4),a=n(29),s=n(182),l=n(9),d=n(19),u=n(5),_=n(593),b=n(0);var p=function(){var e,t,n=Object(s.a)().t,u=Object(l.d)(Object(d.o)()),p=Object(r.useState)(!1),m=Object(o.a)(p,2),f=m[0],h=m[1],x=Object(a.useForm)({mode:"onChange",defaultValues:{reportReason:n("str_report_reason_opt_a")}}),O=x.setValue,g=x.watch,v=x.reset,y=g("pAppCode"),T=g("targetContentDetail"),I=g("reportReason"),B=g("reportReasonEtc"),C=Object(_.a)(y),S="mailto:".concat(null===u||void 0===u?void 0:u.email,"?body=").concat(n("str_report_reason"),": ").concat(B||I," %0D%0A ").concat(n("str_report_location"),": ").concat(C," %0D%0A ").concat(n("str_report_target_content_detail"),": ").concat(T," %0D%0A ").concat(n("str_report_additional_detail"),": "),k={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")},E=function(e){O("reportReason",e.target.value),O("reportReasonEtc","")};return{ReportContent:Object(b.jsx)(b.Fragment,{children:f&&Object(b.jsxs)(c.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(){h(!1),window.open(S),v()},onClickMBtn2:function(){h(!1),v()},children:[Object(b.jsx)(c.Spacing,{size:"spacing_e"}),Object(b.jsx)(c.D_TextLabel,{text:n("str_report_target_content_detail"),styleTheme:"subTitleBold"}),Object(b.jsx)(c.D_TextLabel,{text:(e=T,t=20,e.length<=t?e:"".concat(e.slice(0,20),"...")),styleTheme:"body2Regular",ellipsisMode:"use"}),Object(b.jsx)(c.Spacing,{size:"spacing_f"}),Object(b.jsx)(c.D_TextLabel,{text:n("str_report_reason"),styleTheme:"subTitleBold"}),Object(b.jsx)(a.FormProvider,Object(i.a)(Object(i.a)({},x),{},{children:Object(b.jsxs)(c.Form,{children:[Object(b.jsx)(c.Spacing,{size:"spacing_d"}),Object(b.jsx)(c.D_Radio,{name:"reportReason",text:k.reasonA,checked:I===k.reasonA,onChange:function(e){return E(e)},value:k.reasonA}),Object(b.jsx)(c.Spacing,{size:"spacing_c"}),Object(b.jsx)(c.D_Radio,{name:"reportReason",text:k.reasonB,checked:I===k.reasonB,onChange:function(e){return E(e)},value:k.reasonB}),Object(b.jsx)(c.Spacing,{size:"spacing_c"}),Object(b.jsx)(c.D_Radio,{name:"reportReason",text:k.reasonC,checked:I===k.reasonC,onChange:function(e){return E(e)},value:k.reasonC}),Object(b.jsx)(c.Spacing,{size:"spacing_c"}),Object(b.jsx)(c.D_Radio,{name:"reportReason",text:k.reasonD,checked:I===k.reasonD,onChange:function(e){return E(e)},value:k.reasonD}),Object(b.jsx)(c.Spacing,{size:"spacing_c"}),Object(b.jsx)(c.D_Radio,{name:"reportReason",text:k.reasonEtc,checked:I===k.reasonEtc,onChange:function(e){return E(e)},value:k.reasonEtc}),Object(b.jsx)(c.Spacing,{size:"spacing_b"}),Object(b.jsxs)(j,{children:[Object(b.jsx)(c.Spacing,{size:"spacing_e",spacingType:"width"}),Object(b.jsx)(c.D_TextField,{name:"reportReasonEtc",size:"rlarge",hintText:n("str_3834"),defaultText:B,textLineType:"multi",multiRows:4,state:I===k.reasonEtc?"normal":"disabled",onChange:function(e){return function(e){O("reportReasonEtc",e.target.value)}(e)}})]})]})}))]})}),openReportContentModal:function(e,t){O("targetContentDetail",e),O("pAppCode",t),h(!0)},closeReportContentModal:function(){h(!1),v()}}},j=u.default.div.withConfig({displayName:"S_TextFiledWrapper",componentId:"sc-1b5b0x6-0"})(["display:flex;"])},2784:function(e,t,n){"use strict";var i=n(14),o=n(4),c=n(364);t.a=function(e){var t=e.startMs,n=e.onCompleted,r=e.delay,a=void 0===r?1e3:r,s=Object(o.useState)(t),l=Object(i.a)(s,2),d=l[0],u=l[1],_=Object(o.useState)((function(){return!(t<=0)})),b=Object(i.a)(_,2),p=b[0],j=b[1];return Object(c.a)((function(){if(d<=1e3)return j(!1),void(n&&n());u((function(e){return e-a}))}),p?a:null),{count:Object(o.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)}}),[])(d),isRunning:p}}},2838:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Tt}));var i=n(9),o=n(16),c=n(39),r=n(47),a=n(19),s=n(147),l=n(36),d=n(37),u=n(13),_=n(403),b=n(592),p=n(4),j=n.n(p),m=n(182),f=n(115),h="".concat(u.q,"/event"),x="".concat(u.q,"/event/live"),O=n(14),g=n(2),v=n(399),y=n(15),T=n(35),I=n(85),B=n(409),C=n(594),S=n(10),k=n(7);var E=function(){var e=Object(i.d)(s.c),t=null===e||void 0===e?void 0:e.liveEventInfo;return Object(k.a)(Object(k.a)({},t),{},{id:e.id})},R=n(5),F=n(0);var w=R.default.div.withConfig({displayName:"S_AgeRestrictionImageView",componentId:"sc-1097vrn-0"})(["background-color:",";height:900px;position:relative;width:100%;"],(function(e){return e.theme.ui_cpnt_masking_base_01})),N=R.default.div.withConfig({displayName:"S_RestrictionIconWrapper",componentId:"sc-1097vrn-1"})(["left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"]),D=function(){return Object(F.jsx)(w,{children:Object(F.jsx)(N,{children:Object(F.jsx)(g.Icon,{size:64,iconName:"ic_unavailable",colorKey:"ui_cpnt_icon_sys_grey_02"})})})},M=n(45),A="UX_ELS_COMMERCE_HIDE_DISTINCT_ID_TO_USER",L="UX_ELS_COMMERCE_HIDE_VIEWER_NUMBER_TO_USER",z="UX_ELS_COMMERCE_LIVE_ENTRY_TIMING",H="REPORT",U="BLOCK",W="UNBLOCK",P="HIDE",q="UNHIDE",V=n(2784);var K=function(e){var t=e.time,n=Object(m.a)("translation").t,i=Object(p.useState)((function(){var e=M.a.tz(t).difference();return Number(e)})),o=Object(O.a)(i,1)[0],c=Object(V.a)({startMs:o}
1),r=c.count,a=r.days,s=r.hours,l=r.minutes,d=r.seconds,u=c.isRunning,_=Object(p.useCallback)((function(e){var t=e.days,i=e.hours,o=e.minutes,c=e.seconds;if(!u)return n("str_countdown_format_2",{hours:"00",minutes:"00",seconds:"00"});function r(e){return e<10?"0".concat(e):e}return 0===t?n("str_countdown_format_2",{hours:r(i),minutes:r(o),seconds:r(c)}):n("str_countdown_format_1",{remainingDays:r(t)||"",hours:r(i),minutes:r(o),seconds:r(c)})}),[u]);return u?Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.D_TextLabel,{text:n("str_countdown_time_remaining"),styleTheme:"body2Regular",colorTheme:"sysTextPrimary"}),Object(F.jsx)(g.Spacing,{size:"spacing_a"}),Object(F.jsx)(g.D_TextLabel,{text:_({days:a,hours:s,minutes:l,seconds:d}),styleTheme:"headingBold",colorTheme:"sysTextPrimary"}),Object(F.jsx)(g.Spacing,{size:"spacing_b"})]}):Object(F.jsx)(F.Fragment,{})};var Y=function(){var e=Object(m.a)("translation").t;return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.D_TextLabel,{text:e("str_1584"),styleTheme:"caption1Regular",colorTheme:"sysTextPrimary"}),Object(F.jsx)(g.Spacing,{size:"spacing_f"})]})};var G=R.default.div.withConfig({displayName:"S_SubMenuContent",componentId:"sc-iz99x9-0"})(["padding-bottom:",";padding-left:",";"],(function(e){return e.theme.spacing.spacingI}),(function(e){return e.theme.spacing.spacingE})),X=function(e){var t,n=e.isRestricted,c=e.title,r=e.isMonitoringUser,a=Object(m.a)("translation").t,l=Object(o.k)(),d=Object(o.m)(),_=Object(i.d)(s.c),b=Object(i.d)(B.n),j=Object(i.d)(B.h),h=null===_||void 0===_?void 0:_.config,O=null!==(t=null===h||void 0===h?void 0:h[z])&&void 0!==t?t:"STAND_BY",v=j&&!r,y=Object(f.e)().userEntrywayForUse,T=Object(f.a)(),I=T.openDialog,C=T.closeDialog,k=Object(p.useCallback)((function(e,t){var n=M.a.tz(),i=M.a.tz(b);return e?n.isBefore(i.subtract(e,t)):n.isBefore(i.format())}),[b]),E=Object(p.useCallback)((function(){if(j)return!r;switch(O){case"SCHEDULED":return!b;case"3_HOURS_BEFORE_START":return!b||k(3,"hours");case"2_HOURS_BEFORE_START":return!b||k(2,"hours");case"1_HOUR_BEFORE_START":return!b||k(1,"hours");case"30_MIN_BEFORE_START":return!b||k(30,"minutes");case"10_MIN_BEFORE_START":return!b||k(10,"minutes");case"LIVE_START":return!b||k(0,"minutes")}}),[b,O,j,r]),R=Object(p.useCallback)((function(){if(j&&r)return"";switch(O){case"STAND_BY":return j?a("str_key_user_scene_live_liveentry_dialog_scheduled"):"";case"SCHEDULED":return a("str_key_user_scene_live_liveentry_dialog_scheduled");case"3_HOURS_BEFORE_START":return a("str_key_user_scene_live_liveentry_dialog_3h");case"2_HOURS_BEFORE_START":return a("str_key_user_scene_live_liveentry_dialog_2h");case"1_HOUR_BEFORE_START":return a("str_key_user_scene_live_liveentry_dialog_1h");case"30_MIN_BEFORE_START":return a("str_key_user_scene_live_liveentry_dialog_30min");case"10_MIN_BEFORE_START":return a("str_key_user_scene_live_liveentry_dialog_10min");case"LIVE_START":return a("str_key_user_scene_live_liveentry_dialog_start")}}),[O,j,r]),w=Object(p.useCallback)((function(){if(j&&r)return a("str_key_user_scene_live_caption_rehearsal");switch(O){case"STAND_BY":return j?a("str_key_user_scene_live_liveentry_caption_scheduled"):"";case"SCHEDULED":return a("str_key_user_scene_live_liveentry_caption_scheduled");case"3_HOURS_BEFORE_START":return a("str_key_user_scene_live_liveentry_caption_3h");case"2_HOURS_BEFORE_START":return a("str_key_user_scene_live_liveentry_caption_2h");case"1_HOUR_BEFORE_START":return a("str_key_user_scene_live_liveentry_caption_1h");case"30_MIN_BEFORE_START":return a("str_key_user_scene_live_liveentry_caption_30min");case"10_MIN_BEFORE_START":return a("str_key_user_scene_live_liveentry_caption_10min");case"LIVE_START":return a("str_key_user_scene_live_liveentry_caption_start")}}),[O,j,r]);return Object(F.jsxs)(G,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_g"}),Object(F.jsx)(g.D_TextLabel,{text:function(){if(n)return a("str_key_user_scene_c00014_ageestriction_title");if(!b)return a("str_key_user_scene_c00014event_title_preparing");var e=b&&M.a.tz(b).difference(M.a.tz().format())<0;return a(e?j?r?"str_key_user_scene_event_title_rehearsal":"str_key_user_scene_c00005event_title_preparing":"str_key_user_scene_c00005event_title_progress":j?r?"str_key_user_scene_event_title_rehearsal_standby":"str_key_user_scene_c00005event_title_preparing":"str_papp_event_live_event_upcoming")}(),styleTheme:"displayBold"}),Object(F.jsx)(g.Spacing,{size:"spacing_g"}),n?Object(F.jsx)(Y,{}):Object(F.jsxs)(F.Fragment,{children:[c&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.D_TextLabel,{text:c,styleTheme:"headingBold",colorTheme:"sysTextPrimary"}),Object(F.jsx)(g.Spacing,{size:"spacing_f"})]}),v?Object(F.jsx)(F.Fragment,{}):b&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(K,{time:b}),Object(F.jsx)(g.D_TextLabel,{text:a("str_2234",{date:M.a.tz(b).format("YYYY-MM-DD"),time:M.a.tz(b).format("HH:mm")}
1),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(F.jsx)(g.Spacing,{size:"spacing_g"})]})]}),Object(F.jsx)(g.D_MainButton,{text:a(n?"str_verification_identity":"str_papp_event_live_chat_room_enter"),onClick:n?y((function(){l.push(Object(u.W)(d.channelCode),{prevPath:location.pathname})})):y((function(){if(E()){var e=R();I({contentText:e,btnMode:"tbtn_amount1",tBtn1Text:a("str_ok"),onClickTBtn1:C})}else I({contentText:a("str_key_user_scene_live_liveentry_dialog_entry"),btnMode:"tbtn_amount2",tBtn1Text:a("str_enter"),tBtn2Text:a("str_cancel"),onClickTBtn1:function(){l.push(Object(S.l)(x,{channelCode:d.channelCode})),C()},onClickTBtn2:C})}),"GUEST_OPEN_WHEN_PUBLIC_OPEN")}),w()&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_c"}),Object(F.jsx)(g.D_TextLabel,{text:w(),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})},Z={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 J=R.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-t82sd9-0"})(["display:flex;"]),$=R.default.div.withConfig({displayName:"S_EmptyDiv",componentId:"sc-t82sd9-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"})),Q=function(){Object(T.b)("C00014LiveEvent","c00014_live_event");var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(o.m)().channelCode,c=Object(i.d)(C.a),r=Object(i.d)(a.c),s=Object(i.d)(B.e),l=Object(i.d)(B.d),d=E(),u=Object(p.useState)(!1),_=Object(O.a)(u,2),b=_[0],j=_[1],f=Object(S.h)(n),h=S.b.getUserInfoInChannel(f),x=!(null===h||void 0===h||!h.isMonitoring),k=r?{title:e("str_seo_c00014_live_event_title",{menuName:r.pAppCodeMenuItemNameSet[y.Y.C00014.CODE],interpolation:{escapeValue:!1}}),description:e("str_seo_c00014_live_event_desc",{channelName:r.title,interpolation:{escapeValue:!1}}),thumbnailSrc:null===d||void 0===d?void 0:d.promotionImageSrc}:null;return Object(v.c)({manifest:Z,isActivated:!0,data:k,options:{useChannelTitlePrefix:!0}}),Object(p.useEffect)((function(){return t(Object(I.j)()),function(){t(Object(I.w)()),t(Object(I.s)())}}),[]),Object(p.useEffect)((function(){451===l&&j(!0)}),[l]),Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.WTContainersBox,{layoutType:"WTP_2",subMenuContent:Object(F.jsx)(X,{isRestricted:b,title:(null===d||void 0===d?void 0:d.title)||"",isMonitoringUser:x}),content1:Object(F.jsxs)(J,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_e",spacingType:"width"}),b?Object(F.jsx)(D,{}):null!==d&&void 0!==d&&d.promotionImageSrc?Object(F.jsx)(g.ImageView,{src:null===d||void 0===d?void 0:d.promotionImageSrc,shapeType:"rectangle",width:"responsive",backgroundFillMode:"use"}):Object(F.jsx)($,{isGlobalBannerOpen:c})]})}),s&&Object(F.jsx)(g.D_DesktopAlertDialog,{contentText:e("str_err_1506",{errCode:"err"}),btnMode:"tbtn_amount1",tBtn1Text:e("str_confirm"),onClickTBtn1:function(){t(Object(I.r)())}})]})},ee=n(364);var te=function(){var e=Object(i.c)(),t=Object(i.d)(B.a),n=Object(p.useState)(!1),o=Object(O.a)(n,2),c=o[0],r=o[1],a=Object(p.useState)(0),s=Object(O.a)(a,2),l=s[0],d=s[1];return Object(p.useEffect)((function(){t&&(d(t),r(!0))}),[t]),Object(ee.a)((function(){if(t){if(0===l)return r(!1),void e(Object(I.p)());d((function(e){return e-1})),r(!0)}}),1e3),{isBlocked:c}};var ne=n(2755),ie=n(235),oe=n(236);var ce=function(){var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(f.a)(),o=n.openDialog,c=n.closeDialog,r=Object(ne.a)(),a=r.ReportContent,s=r.openReportContentModal;function l(e){var t=e.slice(-5);return"***".concat(t)}return{ReportContent:a,handleContextMenuItemClick:function(n){var i=n.type,r=n.message,a=n.distinctId,d=n.mid,u=n.nickname,_="seller"===n.messageType;switch(i){case H:if(_)return void o({contentText:e("str_6535"),btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:c});!function(e){s(e,y.Y.C00014.CODE)}(r);break;case U:if(_)return void o({contentText:e("str_6537"),btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:c});!function(n){o({contentText:e("str_6506"),btnMode:"tbtn_amount2",tBtn1Text:e("str_confirm"),tBtn2Text:e("str_cancel"),onClickTBtn1:function(){t(Object(ie.a)({distinctId:n})),c()},onClickTBtn2:c})}(a);break;case W:!function(n,i){var r;o({contentText:e("str_6507",{code:l(n),nick:(r=i||"",r.charAt(0)+"*".repeat(r.length-1))}),btnMode:"tbtn_amount2",tBtn1Text:e("str_confirm"),tBtn2Text:e("str_cancel"),onClickTBtn1:function(){t(Object(ie.d)({distinctId:n})),c()},onClickTBtn2:c})}(a,u);break;case P:if(_)return void o({contentText:e("str_6536"),btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:c});!function(n){o({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})),c()},onClickTBtn2:c})}(d);break;case q:!function(n){o({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})),c()},onClickTBtn2:c})}(d)}}}},re=n(32),ae=n(2776),se=n(589),le=n(590),de=n(89);var ue=function(){var e,t=Object(m.a)("translation").t,n=Object(i.d)(s.c),o=Object(i.d)(B.a),c=Object(i.d)(B.m),r=0!==(null===n||void 0===n||null===(e=n.liveEventInfo)||void 0===e?void 0:e.sendMsgCooltimeInSec),a=te().isBlocked,l=Object(F.jsx)(F.Fragment,{});if(a){var d=o/60;l=Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_c"}
1),Object(F.jsx)(g.D_TextLabel,{text:t("str_err_2755",{blockedTime:Math.ceil(d)}),styleTheme:"caption2Regular",colorTheme:"sysTextError"})]})}if(!a&&r){var u=0===c?t("str_2752"):t("str_2753",{remainingSec:c});l=Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_c"}),Object(F.jsx)(g.D_TextLabel,{text:u,styleTheme:"caption2Regular",colorTheme:"sysTextTertiary"})]})}return l},_e=n(29),be=n(461),pe=n.n(be),je=n(110);var me=R.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-1yf9qd5-0"})(["& > div{border-bottom-left-radius:8px;border-top-left-radius:8px;}"]),fe=R.default.a.withConfig({displayName:"S_ContentSheetBox",componentId:"sc-1yf9qd5-1"})(["-webkit-user-drag:none;background-color:",";border-radius:8px;display:flex;margin-right:",";width:310px;"],(function(e){return e.theme.ui_cpnt_sheet_base_01}),(function(e){return e.theme.spacing.spacingC})),he=R.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-1yf9qd5-2"})(["padding:",";padding-left:0;width:100%;"],(function(e){return e.theme.spacing.spacingC})),xe=R.default.div.withConfig({displayName:"S_DiscountPriceBox",componentId:"sc-1yf9qd5-3"})(["display:flex;"]),Oe=function(e){var t=e.outLink,n=t.id,o=t.linkSrc,c=t.thumbnailSrc,r=t.title,a=t.linkData,s=Object(i.c)(),l=Object(p.useState)(!1),d=Object(O.a)(l,2),u=d[0],_=d[1],b=function(e){var t=e.onEnterIntersection,n=e.onLeaveIntersection,i=e.threshold,o=void 0===i?0:i,c=Object(p.useRef)(null);return{handleOutlinkObserverRef:Object(p.useCallback)((function(e){c.current&&c.current.disconnect(),c.current=new IntersectionObserver(function(e){var t=e.onEnterIntersection,n=e.onLeaveIntersection;return function(e){e[0].isIntersecting&&t&&t(),e[0].isIntersecting||n&&n()}}({onEnterIntersection:t,onLeaveIntersection:n}),{threshold:o}),e&&c.current.observe(e)}),[c])}}({onEnterIntersection:function(){_(!0),s(Object(I.u)({linkId:n}))},onLeaveIntersection:function(){_(!1)},threshold:1}).handleOutlinkObserverRef;return Object(F.jsxs)(fe,{href:/^https?:\/\//i.test(o)?o:"http://".concat(o),target:"_blank",rel:"noopener noreferrer",onClick:function(){je.a.trackProductViewEvent("c00014_item","CommerceSystemInvoiceProduct",n),u||s(Object(I.u)({linkId:n})),s(Object(I.t)({linkId:n}))},children:[Object(F.jsx)(me,{children:Object(F.jsx)(g.ImageView,{src:c,width:91,height:91,ratio:"1_1",shapeType:"rectangle",scaleType:"cover"})}),Object(F.jsx)(g.Spacing,{size:"spacing_d",spacingType:"width"}),Object(F.jsxs)(he,{children:[Object(F.jsx)(g.D_TextLabel,{text:r,styleTheme:"caption1Regular",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),Object(F.jsx)(g.Spacing,{size:"spacing_a",spacingType:"height"}),Object(F.jsx)(g.D_TextLabel,{text:a.price,styleTheme:"caption2Regular",colorTheme:"sysTextTertiary",customFontSize:"8",textDecorationType:"line_through"}),Object(F.jsx)(xe,{children:Object(F.jsx)("div",{ref:b,children:Object(F.jsx)(g.D_TextLabel,{text:a.discountPrice,colorTheme:"sysTextBrandPrimary",ellipsisMode:"use",lineLimit:1})})})]})]})};var ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.behavior,n=void 0===t?"auto":t,i=e.heightOfEndOfList,o=void 0===i?10:i,c=Object(p.useRef)(null),r=Object(p.useState)(!1),a=Object(O.a)(r,2),s=a[0],l=a[1];Object(p.useEffect)((function(){c.current&&(c.current.scrollIntoView({behavior:n}),setTimeout((function(){var e;null===c||void 0===c||null===(e=c.current)||void 0===e||e.scrollIntoView({behavior:n})}),100))}),[s]);var d=Object(p.useCallback)((function(){l((function(e){return!e}))}),[]);function u(){return Object(F.jsx)("li",{style:{listStyle:"none",height:"".concat(o,"px")},ref:c})}
1return{triggerScrollToBottom:d,EndOfList:u}},ve=j.a.forwardRef((function(e,t){var n=e.scrollVisibleType,o=e.children,c=e.isSubmitted,r=e.bodySpacingMode,a=e.callBackAfterScrollToBottom,s=Object(p.useState)(!1),l=Object(O.a)(s,2),d=l[0],u=l[1],_=ge({heightOfEndOfList:0}),b=_.triggerScrollToBottom,j=_.EndOfList,m=Object(i.d)(B.l),f=Object(p.useRef)(null),h=Object(p.useRef)(null),x=function(e){var t=document.querySelectorAll("a");t&&t.forEach((function(t){t.style.pointerEvents=e}))},g={onStart:function(){return!(!h.current||!f.current)&&(!(h.current.clientWidth<f.current.clientWidth)&&void 0)},onDrag:function(){x("none")},onStop:function(){x("auto")}};Object(p.useEffect)((function(){d||b()}),[o,d,b]),Object(p.useEffect)((function(){setTimeout((function(){c&&(a(),b())}),0)}),[o,d,c,a]);return Object(F.jsx)(F.Fragment,{children:Object(F.jsxs)(Be,{bodySpacingMode:r,children:[Object(F.jsx)(ke,{children:Object(F.jsxs)(Ee,{onScroll:function(e){var t=e.currentTarget,n=t.scrollTop,i=t.scrollHeight,o=t.clientHeight;Math.ceil(n)+o+64>i?u(!1):u(!0)},ref:t,scrollVisibleType:n,children:[o,Object(F.jsx)(j,{})]})}),!(null===m||void 0===m||!m.length)&&Object(F.jsx)(Re,{ref:f,draggable:!1,children:Object(F.jsx)(pe.a,Object(k.a)(Object(k.a)({axis:"x",bounds:{top:0,left:m&&f.current?-(322*m.length+48-f.current.clientWidth):0,right:0,bottom:0},nodeRef:h},g),{},{children:Object(F.jsx)(ye,{ref:h,children:m.map((function(e,t){return Object(F.jsx)(Te,{children:Object(F.jsx)(Oe,{outLink:e})},t)}))})}))})]})})})),ye=R.default.div.withConfig({displayName:"S_DragBox",componentId:"sc-mfbc12-0"})(["display:flex;"]),Te=R.default.div.withConfig({displayName:"S_ContentSheetPanelWrapper",componentId:"sc-mfbc12-1"})(["&:first-child{margin-left:",";}&:last-child{margin-right:",";}"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Ie=Object(R.css)(["box-sizing:border-box;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Be=R.default.div.withConfig({displayName:"S_Body",componentId:"sc-mfbc12-2"})(["flex:1;overflow-x:hidden;overflow-y:hidden;position:relative;",";"],(function(e){return"use"===e.bodySpacingMode&&Ie})),Ce=Object(R.css)(["::-webkit-scrollbar{display:block;}"]),Se=Object(R.css)(["-ms-overflow-style:none;scrollbar-width:none;::-webkit-scrollbar{display:none;}"]),ke=R.default.div.withConfig({displayName:"S_ChatMessageBoxWrapper",componentId:"sc-mfbc12-3"})(["display:flex;flex-direction:column;height:200px;justify-content:flex-end;"]),Ee=R.default.div.withConfig({displayName:"S_ChatMessageBox",componentId:"sc-mfbc12-4"})(["height:fit-content;max-height:200px;overflow-y:auto;",""],(function(e){var t=e.scrollVisibleType;if(t&&"moving"!==t)return{visible:Ce,hidden:Se}[t]})),Re=R.default.div.withConfig({displayName:"S_HorizontalList",componentId:"sc-mfbc12-5"})(["display:flex;height:91px;margin-top:",";"],(function(e){return e.theme.spacing.spacingD})),Fe=ve;ve.displayName="Body";var we=R.default.div.withConfig({displayName:"S_FooterContentWrapper",componentId:"sc-17odajl-0"})(["align-items:center;display:flex;padding-left:",";padding-right:",";"],(function(e){var t=e.theme,n=e.footerIBtn2IconName,i=e.footerIBtn3IconName;return"".concat(n||i?t.spacing.spacingC:t.spacing.spacingE)}),(function(e){return e.theme.spacing.spacingC})),Ne=R.default.div.withConfig({displayName:"S_TextFieldWrapper",componentId:"sc-17odajl-1"})(["flex:1;margin-right:",";"],(function(e){return e.theme.spacing.spacingB})),De=function(e){var t=e.colorTheme,n=e.textFieldDefaultText,i=e.textFieldHintText,o=e.textFieldState,c=e.textFieldMaxLength,r=e.isSubmitBtnActive,a=e.submitIBtnIconName,s=void 0===a?"ic_paper_plane":a,l=e.submitIBtnIconFillType,d=void 0===l?"fill":l,u=e.footerIBtn1State,_=e.footerIBtn1IconName,b=e.footerIBtn1IconFillType,p=e.footerIBtn1Type,j=e.onClickFooterIBtn1,m=e.footerIBtn2State,f=e.footerIBtn2IconName,h=e.footerIBtn2IconFillType,x=e.footerIBtn2Type,O=e.onClickFooterIBtn2,v=e.footerIBtn3State,y=e.footerIBtn3IconName,T=e.footerIBtn3IconFillType,I=e.footerIBtn3Type,B=e.footerIBtn3Accept,C=e.onClickFooterIBtn3;return Object(F.jsx)(F.Fragment,{children:Object(F.jsxs)(we,{footerIBtn2IconName:f,footerIBtn3IconName:y,children:[y&&Object(F.jsx)(F.Fragment,{children:"button"===I?Object(F.jsx)(g.D_IconButton,{iconName:y,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"normal"===v?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:T,iconSize:24,state:v,onClick:C}):Object(F.jsx)(g.D_UploadIconButton,{iconName:y,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"normal"===v?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:T,iconSize:24,state:v,accept:B,onClick:C})}),f&&Object(F.jsx)(F.Fragment,{children:"button"===x?Object(F.jsx)(g.D_IconButton,{iconName:f,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"normal"===m?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:h,iconSize:24,state:m,onClick:O}):Object(F.jsx)(g.D_UploadIconButton,{iconName:f,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"normal"===m?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:h,iconSize:24,state:m,onClick:O})}),Object(F.jsx)(Ne,{children:Object(F.jsx)(g.D_TextField,{name:"chat",responsiveMode:"use",textLineType:"single",inputType:"text",hintText:i,defaultText:n,validation:{validate:function(e){return!e||!!e.trim().length}},maxLength:c,colorTheme:"transparent"===t?"transparent":"none",enterSubmitMode:"use",validationPoint:"onChange",state:o,autoComplete:"off"})}),_&&Object(F.jsx)(F.Fragment,{children:"button"===p?Object(F.jsx)(g.D_IconButton,{iconName:_,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"normal"===u?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:b,iconSize:24,state:u,onClick:j}):Object(F.jsx)(g.D_UploadIconButton,{iconName:_,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"normal"===u?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:b,iconSize:24,state:u,onClick:j})}),Object(F.jsx)(g.D_IconButton,{iconName:s,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:r?"ui_cpnt_button_icon_primary":"ui_cpnt_button_icon_disabled",iconFillType:d,iconSize:24,type:"submit",state:r?"normal":"disabled"})]})})};var Me=R.default.div.withConfig({displayName:"S_FooterChildrenWrapper",componentId:"sc-1gmw7c1-0"})(["padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingC})),Ae=function(e){var t=e.colorTheme,n=e.footerChildren,i=e.textFieldDefaultText,o=e.textFieldHintText,c=e.textFieldState,r=e.textFieldMaxLength,a=e.submitIBtnIconName,s=e.submitIBtnIconFillType,l=e.isSubmitBtnActive,d=e.footerIBtn1State,u=e.footerIBtn1IconName,_=e.footerIBtn1IconFillType,b=e.footerIBtn1Type,p=e.onClickFooterIBtn1,j=e.footerIBtn2State,m=e.footerIBtn2IconName,f=e.footerIBtn2IconFillType,h=e.footerIBtn2Type,x=e.onClickFooterIBtn2,O=e.footerIBtn3State,g=e.footerIBtn3IconName,v=e.footerIBtn3IconFillType,y=e.footerIBtn3Type,T=e.footerIBtn3Accept,I=e.onClickFooterIBtn3;return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(De,{colorTheme:t,textFieldDefaultText:i,textFieldHintText:o,textFieldState:c,textFieldMaxLength:r,
1isSubmitBtnActive:l,submitIBtnIconName:a,submitIBtnIconFillType:s,footerIBtn1State:d,footerIBtn1IconName:u,footerIBtn1IconFillType:_,footerIBtn1Type:b,onClickFooterIBtn1:p,footerIBtn2State:j,footerIBtn2IconName:m,footerIBtn2IconFillType:f,footerIBtn2Type:h,onClickFooterIBtn2:x,footerIBtn3State:O,footerIBtn3IconName:g,footerIBtn3IconFillType:v,footerIBtn3Type:y,footerIBtn3Accept:T,onClickFooterIBtn3:I}),Object(F.jsx)(Me,{children:n})]})},Le={solid:"sysTextPrimary",translucent:"sysTextWhite",transparent:"sysTextWhite"},ze={solid:"ui_cpnt_button_icon_enabled",translucent:"ui_cpnt_button_icon_white",transparent:"ui_cpnt_button_icon_white"};var He=R.default.div.withConfig({displayName:"S_HeaderContentWrapper",componentId:"sc-h2nky5-0"})(["align-items:center;display:flex;padding-bottom:",";padding-left:",";padding-right:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingD})),Ue=R.default.div.withConfig({displayName:"S_HeaderLeftBox",componentId:"sc-h2nky5-1"})(["flex:1;"]),We=function(e){var t=e.colorTheme,n=e.titleText,i=e.descText,o=e.captionText,c=e.titleStyleTheme,r=e.headerDisplayType,a=e.headerIBtn1IconName,s=e.headerIBtn1IconFillType,l=e.onClickHeaderIBtn1;return Object(F.jsxs)(He,{children:[Object(F.jsxs)(Ue,{children:[n&&Object(F.jsx)(g.D_TextLabel,{text:n,styleTheme:c,colorTheme:Le[t],wordBreak:"break_all"}),i&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_c"}),Object(F.jsx)(g.D_TextLabel,{text:i,styleTheme:"body2Regular",colorTheme:"solid"===t?"sysTextSecondary":"sysTextWhite",colorOverride:"translucent"===t?"ui_cpnt_list_text_caption_02":void 0,wordBreak:"break_all"})]}),o&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_a"}),Object(F.jsx)(g.D_TextLabel,{text:o,styleTheme:"caption1Regular",colorTheme:"solid"===t?"sysTextTertiary":"sysTextWhite",colorOverride:"translucent"===t?"ui_cpnt_list_text_caption_03":void 0,wordBreak:"break_all"})]})]}),"ibtn1"===r&&a&&Object(F.jsx)(g.D_IconButton,{iconName:a,baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:ze[t],iconSize:24,iconFillType:s,onClick:l})]})},Pe={solid:"ui_cpnt_list_base_area_solid",translucent:"ui_cpnt_list_base_area_translucent",transparent:"ui_cpnt_list_base_area_transparent"},qe=j.a.forwardRef((function(e,t){var n=e.colorTheme,i=void 0===n?"solid":n,o=e.headerMode,c=void 0===o?"use":o,r=e.titleText,a=e.descText,s=e.captionText,l=e.titleStyleTheme,d=void 0===l?"subTitleBold":l,u=e.headerDisplayType,_=void 0===u?"none":u,b=e.headerIBtn1IconName,j=void 0===b?"ic_xmark":b,m=e.headerIBtn1IconFillType,f=void 0===m?"line":m,h=e.children,x=e.bodyChildren,O=e.textFieldState,v=void 0===O?"normal":O,y=e.textFieldHintText,T=e.textFieldDefaultText,I=e.textFieldMaxLength,B=e.scrollVisibleType,C=void 0===B?"moving":B,S=e.footerChildren,E=e.submitIBtnState,R=void 0===E?"normal":E,w=e.bodyMBtnText,N=e.bodySpacingMode,D=void 0===N?"none":N,M=e.onSubmit,A=e.onClickHeaderIBtn1,L=e.submitIBtnIconName,z=e.submitIBtnIconFillType,H=e.footerIBtn1State,U=void 0===H?"normal":H,W=e.footerIBtn1IconName,P=e.footerIBtn1IconFillType,q=e.footerIBtn1Type,V=void 0===q?"button":q,K=e.onClickFooterIBtn1,Y=e.footerIBtn2State,G=void 0===Y?"normal":Y,X=e.footerIBtn2IconName,Z=e.footerIBtn2IconFillType,J=e.footerIBtn2Type,$=void 0===J?"button":J,Q=e.onClickFooterIBtn2,ee=e.footerIBtn3State,te=void 0===ee?"normal":ee,ne=e.footerIBtn3IconName,ie=e.footerIBtn3IconFillType,oe=e.footerIBtn3Type,ce=void 0===oe?"button":oe,re=e.footerIBtn3Accept,ae=e.onClickFooterIBtn3,se=Object(_e.useForm)({mode:"onChange",defaultValues:{chat:""}}),le=se.reset,de=se.handleSubmit,ue=se.control,be=se.formState,pe=be.isValid,je=be.isDirty,me=be.isSubmitSuccessful;Object(p.useEffect)((function(){me&&le()}),[me]);var fe=Object(_e.useWatch)({name:"chat",control:ue}),he=Object(p.useMemo)((function(){return!!R&&(je&&pe&&fe.length>0&&"normal"===R)}),[je,pe,fe,R]);return Object(F.jsxs)(Ve,{backgroundColor:Pe[i],id:"chatList",children:["use"===c&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(We,{colorTheme:i,titleText:r,de
1scText:a,captionText:s,titleStyleTheme:d,headerDisplayType:_,headerIBtn1IconName:j,headerIBtn1IconFillType:f,onClickHeaderIBtn1:A}),Object(F.jsx)(g.Divider,{colorTheme:"transparent"===i?"divider1":"none"})]}),Object(F.jsx)(Fe,{scrollVisibleType:C,isSubmitted:me,bodyMBtnText:w,bodySpacingMode:D,callBackAfterScrollToBottom:function(){le()},bodyChildren:x,ref:t,children:h}),Object(F.jsx)(g.Divider,{colorTheme:"transparent"===i?"divider2":"none"}),Object(F.jsx)(g.Spacing,{size:"spacing_d"}),Object(F.jsx)(_e.FormProvider,Object(k.a)(Object(k.a)({},se),{},{children:Object(F.jsx)("form",{onSubmit:de((function(e){var t=e.chat;t&&he&&M(t)})),children:Object(F.jsx)(Ae,{colorTheme:i,textFieldDefaultText:T,textFieldHintText:y,textFieldState:v,textFieldMaxLength:I,footerChildren:S,isSubmitBtnActive:he,submitIBtnIconName:L,submitIBtnIconFillType:z,footerIBtn1State:U,footerIBtn1IconName:W,footerIBtn1IconFillType:P,footerIBtn1Type:V,onClickFooterIBtn1:K,footerIBtn2State:G,footerIBtn2IconName:X,footerIBtn2IconFillType:Z,footerIBtn2Type:$,onClickFooterIBtn2:Q,footerIBtn3State:te,footerIBtn3IconName:ne,footerIBtn3IconFillType:ie,footerIBtn3Type:ce,footerIBtn3Accept:re,onClickFooterIBtn3:ae})})})),Object(F.jsx)(g.Spacing,{size:"spacing_d"})]})})),Ve=R.default.div.withConfig({displayName:"S_ChatList",componentId:"sc-mfxi8g-0"})(["background-color:",";display:flex;flex-direction:column;height:40%;"],(function(e){var t=e.backgroundColor;return e.theme[t]})),Ke=qe;function Ye(e){var t=e.chat,n=e.isMyMessage,i=e.isDistinctIdHidden,o=e.isBlockedUser,c=e.isHiddenChat,r=e.onClickContetMenuItem,a=Object(m.a)("translation").t,s=t.uuid,l=t.isHidden,d=t.distinctId,u=t.nickname,_=t.message,b=i?j(u):u;function p(e){var t=e.slice(-5);return"***".concat(t)}function j(e){return e.replace(/#[\w\d]+\b\s*$/,"").trim()}if(l){var f=u;return o?f=p(d):i&&(f=j(u)),Object(F.jsx)(g.M_BasicChatListItem,{titleText:f,contentText:a("str_2717"),colorTheme:"".concat(_.type,"_transparent"),hoverMode:"none"},s)}return n?Object(F.jsx)(g.M_BasicChatListItem,{titleText:b,contentText:_.content,colorTheme:"".concat(_.type,"_transparent"),hoverMode:"none"},s):o?Object(F.jsx)(g.M_BasicChatListItem,{titleText:p(d),contentText:a("str_6517"),colorTheme:"white_transparent_grey",hoverMode:"use",contextMenuOptionArray:[{text:a("str_report"),value:H},{text:a("str_unblock_user"),value:W}],onClickContextMenuItem:function(e){return r({type:e.value,message:_.content,distinctId:d,mid:s,nickname:j(u),messageType:_.type})}},s):c?Object(F.jsx)(g.M_BasicChatListItem,{titleText:b,contentText:a("str_6514"),colorTheme:"white_transparent_grey",hoverMode:"use",contextMenuOptionArray:[{text:a("str_report"),value:H},{text:a("str_unhide"),value:q},{text:a("str_block_user"),value:U}],onClickContextMenuItem:function(e){return r({type:e.value,message:_.content,distinctId:d,mid:s,messageType:_.type})}},s):Object(F.jsx)(g.M_BasicChatListItem,{titleText:b,contentText:_.content,colorTheme:"".concat(_.type,"_transparent"),hoverMode:"use",contextMenuOptionArray:[{text:a("str_report"),value:H},{text:a("str_hide_chat"),value:P},{text:a("str_block_user"),value:U}],onClickContextMenuItem:function(e){return r({type:e.value,message:_.content,distinctId:d,mid:s,messageType:_.type})}},s)}function Ge(e,t){return e.chat.uuid===t.chat.uuid&&e.chat.isHidden===t.chat.isHidden&&e.isBlockedUser===t.isBlockedUser&&e.isHiddenChat===t.isHiddenChat}var Xe=j.a.memo(Ye,Ge);var Ze=R.default.div.withConfig({displayName:"S_ChatBox",componentId:"sc-1xehgns-0"})(["bottom:0;display:flex;flex-direction:column;left:0;position:absolute;width:100%;z-index:1;#chatMessageBox{display:flex;flex-direction:column;justify-content:flex-end;margin-bottom:16px;overflow-y:hidden;}"]),Je=function(){var e,t,n=Object(m.a)("translation").t,o=Object(i.c)(),c=Object(i.d)(de.b),r=Object(i.d)(B.c),a=Object(i.d)(se.b),l=Object(i.d)(le.b),d=Object(i.d)(B.i),u=Object(i.d)(s.c),_=null!==(e=null===u||void 0===u||null===(t=u.config)||void 0===t?void 0:t[A])&&void 0!==e&&e,b
1=Object(f.a)(),p=b.openDialog,j=b.closeDialog,h=te().isBlocked,x=ce(),O=x.ReportContent,g=x.handleContextMenuItemClick,v=Object(f.e)().userEntrywayForUse;function y(e){var t=e.toLowerCase().split(" ");return ae.find((function(e){return t.some((function(t){return t===e}))}))}function T(e){var t;return null!==u&&void 0!==u&&null!==(t=u.liveEventInfo)&&void 0!==t&&t.useSystemMsgBlacklist?!!y(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(F.jsxs)(Ze,{children:[Object(F.jsx)(Ke,{colorTheme:"transparent",headerMode:"none",bodyMBtnText:n("str_recent_messages"),textFieldHintText:n(h?"str_2754":"str_3579"),textFieldMaxLength:200,textFieldState:h?"disabled":"normal",onSubmit:v((function(e){var t,i;if(T(e)){var c=document.querySelector("input");return p({contentText:n("str_err_2751",{word:y(e)}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:j}),void(null===c||void 0===c||c.blur())}o(Object(I.x)(e)),null!==u&&void 0!==u&&null!==(t=u.liveEventInfo)&&void 0!==t&&t.sendMsgCooltimeInSec&&o(Object(I.y)(null===u||void 0===u||null===(i=u.liveEventInfo)||void 0===i?void 0:i.sendMsgCooltimeInSec))})),submitIBtnState:d||h?"disabled":"normal",footerChildren:Object(F.jsx)(ue,{}),children:r&&r.map((function(e){return Object(F.jsx)(Xe,{chat:e,isBlockedUser:!!a&&Boolean(a[e.distinctId]),isHiddenChat:!!l&&Boolean(l[e.uuid]),isMyMessage:e.distinctId===(null===c||void 0===c?void 0:c.distinctId),isDistinctIdHidden:_,onClickContetMenuItem:g},e.uuid)}))}),O]})};var $e=function(){var e=Object(m.a)("translation").t;return Object(F.jsx)(g.D_SectionSheet,{width:"auto",height:"auto",overrideBackgroundColorKey:"ui_112",paddingTop:"spacing_b",paddingBottom:"spacing_b",overrideCSS:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:"16px"},children:Object(F.jsx)(g.D_TextLabel,{text:e("str_7034"),styleTheme:"caption1Bold",colorTheme:"sysTextSecondary"})})};var Qe=R.default.div.withConfig({displayName:"S_LiveContents",componentId:"sc-1joddxm-0"})(["display:flex;flex-direction:column;height:100%;justify-content:space-between;position:absolute;top:0;width:478px;z-index:1;"]),et=R.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-1joddxm-1"})(["cursor:pointer;padding-left:20px;padding-top:",";"],(function(e){return e.theme.spacing.spacingC})),tt=R.default.div.withConfig({displayName:"S_ContentsBox",componentId:"sc-1joddxm-2"})(["background:linear-gradient(0deg,rgba(0,0,0,0) 20%,#00000080 150%);display:flex;flex-direction:column;height:240px;width:100%;"]),nt=R.default.div.withConfig({displayName:"S_HeaderBlock",componentId:"sc-1joddxm-3"})(["display:flex;justify-content:space-between;width:100%;"]),it=R.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-1joddxm-4"})(["display:flex;flex-direction:column;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),ot=R.default.div.withConfig({displayName:"S_CaptionBox",componentId:"sc-1joddxm-5"})(["align-items:center;display:flex;"]),ct=R.default.div.withConfig({displayName:"S_MuteIconWrapper",componentId:"sc-1joddxm-6"})(["display:flex;flex-direction:column;padding-right:",";"],(function(e){return e.theme.spacing.spacingD})),rt=R.default.div.withConfig({displayName:"S_ChatWrapper",componentId:"sc-1joddxm-7"})(["height:40vh;width:100%;"]),at=function(e){var t=e.contentsHeight,n=e.titleText,c=e.captionText,r=Object(m.a)("translation").t,a=Object(o.k)(),s=Object(i.d)(B.b),l=Object(i.d)(B.g),d=Object(p.useState)(!0),u=Object(O.a)(d,2),_=u[0],b=u[1],j=s===re.i.ON_AIR;return Object(F.jsxs)(Qe,{contentsHeight:t,children:[Object(F.jsxs)(tt,{children:[Object(F.jsx)(et,{onClick:function(e){e.stopPropagation();var t=S.f.getChannelCode();a.push(Object(S.l)(h,{channelCode:t}))},children:Object(F.jsx)(g.Icon,{iconName:"ic_arrow_left",colorKey:"ui_temp_white",size:24})}),Object(F.jsxs)(nt,{children:[Object(F.jsxs)(it,{children:[Object(F.jsx)(g.Spacing,{size:"spacing_b"}),Object(F.jsx)(g.D_TextLabel,{text:n,styleTheme:"subTitleBold",ellipsisMode:"use",wordBreak:"break_all",lineLimit:1,colorTheme:"sysTextWhite"}),Object(F.jsx)(g.Spacing,{size:"spacing_b"}),Object(F.jsxs)(ot,{children:[j&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(g.D_StatusBlock,{text:r("str_statusblock_live"),size:"small",state:"proceeding",width:62}),Object(F.jsx)(g.Spacing,{size:"spacing_c",spacingType:"width"})]}),c&&Object(F.jsx)(g.D_TextLabel,{text:c,styleTheme:"caption1Regular",ellipsisMode:"use",lineLimit:1,colorTheme:"sysTextWhite"})]})]}),j&&Object(F.jsx)(ct,{children:Object(F.jsx)(g.D_IconButton,{fillType:"fill",baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:_?"line":"fill",iconName:_?"ic_
1speaker_off":"ic_speaker_wave_2",iconColorKey:"ui_cpnt_button_icon_white",onClick:function(){var e=document.querySelector("video");e&&(e.muted=!e.muted,b(e.muted))}})})]}),l&&Object(F.jsx)($e,{})]}),Object(F.jsx)(g.Spacing,{size:"spacing_e",spacingType:"width"}),Object(F.jsx)(rt,{children:Object(F.jsx)(Je,{})})]})};var st=R.default.div.withConfig({displayName:"S_NonStreamingScreen",componentId:"sc-covzlr-0"})(["height:",";position:relative;width:100%;"],(function(e){var t=e.dimmedHeight;return"calc(100vh - ".concat(t,"px)")})),lt=R.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-covzlr-1"})(["background-color:",";height:100%;position:absolute;top:0;width:100%;"],(function(e){return e.theme.ui_temp_black})),dt=function(e){var t=e.dimmedHeight,n=e.thumbnailUrl;return Object(F.jsx)(st,{dimmedHeight:t,children:Object(F.jsx)(lt,{children:Object(F.jsx)(g.ImageView,{src:n,shapeType:"rectangle",scaleType:"cover",width:"responsive",height:"responsive"})})})},ut="init",_t="start",bt="beginning",pt="pause",jt="restart";var mt=function(e){var t,n=e.liveId,o=Object(i.c)(),c=Object(p.useRef)(!0),r=Object(p.useRef)(n),a=Object(p.useRef)(void 0);Object(p.useEffect)((function(){r.current=n}),[n]);var s=function(e,t){var n=document.querySelector("video");if("beginning"!==t||n){var i=function(e){var t=null===e||void 0===e?void 0:e.videoHeight,n=t?Number(t):void 0;return n&&(a.current=n),null!==n&&void 0!==n?n:a.current}(e),c="number"===typeof e.currentTime&&!isNaN(e.currentTime)&&isFinite(e.currentTime)?Math.floor(e.currentTime):0;o(Object(I.d)({liveId:r.current,rotationTime:10,durationTime:0,quality:i,currentTime:c,type:t})),console.info({type:t,liveId:r.current,quality:i})}},l=function(e){var n=e.target;n&&(s(n,c.current?_t:jt),c.current=!1,t&&clearInterval(t),t=setInterval((function(){return s(n,bt)}),1e4))},d=function(e){var n=e.target;n&&(clearInterval(t),s(n,pt))};Object(p.useEffect)((function(){var e=document.documentElement.querySelector("video");return e&&(s(e,ut),function(e){e.addEventListener("play",l),e.addEventListener("pause",d)}(e)),function(){e&&(e.paused||s(e,pt),function(e){e.removeEventListener("play",l),e.removeEventListener("pause",d),clearInterval(t)}(e),c.current=!0)}}),[])};var ft=R.default.div.withConfig({displayName:"S_PlayerWrapper",componentId:"sc-1wl7q7w-0"})(["bottom:0;left:0;position:absolute;right:0;top:0;"]),ht=function(e){var t=e.videoSrc,n=e.liveId;return mt({liveId:Number(n)}),Object(F.jsx)(ft,{children:Object(F.jsx)(d.G,{autoPlayMode:"use",mutedMode:"use",aspectRatio:"9:16",limitRendition:!1,startLowInitialPlaylist:!1,useNetworkApi:!0,videoSrc:t,videoPosition:"left"})})},xt={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{liveTitle}}",description:"{{channelName}}\uc758 {{menuName}}\uc785\ub2c8\ub2e4."},keyMappingDefinition:{title:"title",description:"description"}};var Ot=R.default.div.withConfig({displayName:"S_ContentsBox",componentId:"sc-ipiey9-0"})(["height:100%;min-height:560px;position:relative;"]),gt=function(e){var t,n,c=e.onEntryAlert;Object(T.b)("C00014Broadcast","c00014_broadcast");var r=Object(m.a)("translation").t,l=Object(o.k)(),d=Object(o.m)().channelCode,_=Object(i.c)(),b=Object(i.d)(B.f),j=Object(i.d)(a.c),f=Object(i.d)(C.a),h=Object(i.d)(s.c),x=E(),O=Object(i.d)(B.b),k=Object(i.d)(B.o),R=Object(i.d)(B.p),w=Object(i.d)(B.q),N=Object(i.d)(B.j),D=Object(i.d)(B.e),A=Object(i.d)(B.r),H=Object(i.d)(B.n),U=Object(i.d)(B.h),W=null===h||void 0===h?void 0:h.config,P=!(null!==W&&void 0!==W&&W[L]),q=null!==(t=null===W||void 0===W?void 0:W[z])&&void 0!==t?t:"STAND_BY",V=(null===h||void 0===h||null===(n=h.liveEventInfo)||void 0===n?void 0:n.simpleLiveChatRoom)||"",K=O===y.i.ON_AIR&&k&&w&&!D,Y=Object(S.h)(d),G=S.b.getUserInfoInChannel(Y),X=function(e,t,n,o){var c=Object(m.a)("translation").t,r=Object(i.d)(B.b);function a(e,n){var i=M.a.tz(),o=M.a.tz(t);return e?i.isBefore(o.subtract(e,n)):i.isBefore(o.format())}if(r===y.i.CANCELED)return{contentText:c("str_err_1504"),isBack:"STAND_BY"!==e};if(r===y.i.TERMINATED)return{contentText:c("str_err_1507"),isBack:"STAND_BY"!==e};if(n&&o)return{contentText:"",isBack:!1};var s="";switch(e){case"STAND_BY":n&&(s=c("str_key_user_scene_live_liveentry_dialog_scheduled"));break;case"SCHEDULED":!n&&t||(s=c("str_key_user_scene_live_liveentry_dialog_scheduled"));break;case"3_HOURS_BEFORE_START":(n||!t||a(3,"hours"))&&(s=c("str_key_user_scene_live_liveentry_dialog_3h"));break;case"2_HOURS_BEFORE_START":(n||!t||a(2,"hours"))&&(s=c("str_key_user_scene_live_liveentry_dialog_2h"));break;case"1_HOUR_BEFORE_START":(n||!t||a(1,"hours"))&&(s=c("str_key_user_scene_live_liveentry_dialog_1h"));break;case"30_MIN_BEFORE_START":(n||!t||a(30,"minutes"))&&(s=c("str_key_user_scene_live_liveentry_dialog_30min"));break;case"10_MIN_BEFORE_START":(n||!t||a(10,"minutes"))&&(s=c("str_key_user_scene_live_liveentry_dialog_10min"));break;case"LIVE_START":(n||!t||a(0,"minutes"))&&(s=c("str_key_user_scene_live_liveentry_dialog_start"))}return{contentText:s,isBack:!0}}(q,H,U,!(null===G||void 0===G||!G.isMonitoring)),Z=X.contentText,J=X.isBack,$=f?154:64,Q=x?{title:r("str_seo_c00014_broadcast_title",{liveTitle:x.title,interpolation:{escapeValue:!1}}),description:j&&r("str_seo_c00014_broadcast_desc",{channelName:j.title,menuName:j.pAppCodeMenuItemNameSet[y.Y.C00014.CODE],interpolation:{escapeValue:!1}})}:null;return Object(v.c)({manifest:xt,isActivated:!0,data:Q,options:{useChannelTitlePrefix:!0}}),Object(p.useEffect)((function(){_(Object(I.j)()),_(Object(I.m)())}),[]),Object(p.useEffect)((function(){if(V)return _(Object(I.c)({roomKey:V})),_(Object(I.b)({roomKey:V})),function(){_(Object(I.h)()),_(Object(I.g)())}}),[V]),Object(p.useEffect)((function(){D&&(_(Object(I.v)()),l.push(Object(S.l)(u.q,{channelCode:d})))}),[D]),Object(p.useEffect)((function(){b||Z&&(c(Z),J&&l.push(Object(S.l)(u.q,{channelCode:d})))}),[b,Z,J]),Object(F.jsx)(g.WTContainersBox,{layoutType:"WTK_1",content1:Object(F.jsxs)(Ot,{children:[K?Object(F.jsx)(ht,{videoSrc:"".concat(k,"?token=").concat(w),liveId:N}):Object(F.jsx)(dt,{dimmedHeight:$,thumbnailUrl:R}),x&&Object(F.jsx)(at,{contentsHeight:$,titleText:(null===x||void 0===x?void 0:x.title)||"",captionText:P?r("str_1528",{quantity:A||0}):void 0})]})})};var vt=function(e){var t=e.onEntryAlert,n=Object(p.useMemo)(l.f,[]),c=Object(i.d)(n);return Object(F.jsxs)(o.g,{children:[Object(F.jsx)(r.q,{path:x,render:function(){return Object(F.jsx)(gt,{onEntryAlert:t})},isAuthenticated:c}),Object(F.jsx)(o.c,{from:u.q,to:h})]})};var yt=function(){var e=Object(m.a)("translation").t,t=Object(p.useMemo)(l.f,[]),n=Object(i.d)(t),c=Object(f.a)(),a=c.openDialog,s=c.closeDialog,_=Object(p.useCallback)((function(t){a({contentText:t,btnMode:"tbtn_amount1",tBtn1Text:e("str_ok"),onClickTBtn1:s})}),[a,s]);return Object(F.jsx)(d.k,{children:Object(F.jsxs)(o.g,{children:[Object(F.jsx)(r.q,{exact:!0,path:h,component:Q,isAuthenticated:n}),Object(F.jsx)(r.l,{exact:!0,path:x,render:function(){return Object(F.jsx)(vt,{onEntryAlert:_})},option:"GUEST_OPEN_WHEN_PUBLIC_OPEN"}),Object(F.jsx)(o.c,{from:u.q,to:h})]})})};var Tt=function(){var e=Object(i.d)(Object(l.f)()),t=Object(i.d)(Object(a.n)()),n=Object(i.d)(s.c),p=Object(i.d)(s.b);if(!t)return Object(F.jsx)(F.Fragment,{});var j=t.channelCode;if(p)switch(p.code){case 451:return Object(F.jsxs)(o.g,{children:[Object(F.jsx)(r.q,{exact:!0,path:h,component:yt,isAuthenticated:e}),Object(F.jsx)(o.c,{from:u.q,to:h})]});case 403:return Object(F.jsx)(o.c,{to:Object(u.P)(j,c.a.C00014.CODE)});default:o.g,o.c,Object(u.V)(j)}return n&&n.code===c.a.C00014.CODE?Object(F.jsxs)(o.g,{children:[Object(F.jsx)(r.q,{path:h,component:yt,isAuthenticated:e}),Object(F.jsx)(r.q,{exact:!0,path:u.Zb,component:b.a,isAuthenticated:e}),Object(F.jsx)(o.c,{from:u.q,to:h})]}):p||n?Object(F.jsx)(d.y,{}):Object(F.jsxs)(o.g,{children:[Object(F.jsx)(r.q,{exact:!0,path:u.fb,component:_.a,isAuthenticated:e}),Object(F.jsx)(o.c,{from:u.q,to:Object(u.U)(j)})]})}}}]);
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.