1(this["webpackJsonppubl-uw"]=this["webpackJsonppubl-uw"]||[]).push([[33],{2837:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return at}));var i=n(9),c=n(16),a=n(15),o=n(47),r=n(19),s=n(147),l=n(36),d=n(37),u=n(10),j=n(13),b=n(636),p=n(2),O=n(4),m=n(182),f=n(54),h=n(129),x="".concat(j.p,"/chat"),_="".concat(j.p,"/chat/room"),g=n(399),v=n(35),T=n(5),y=n(0),C=Object(O.forwardRef)((function(e,t){var n=e.calleeThumbnailUrl,c=Object(i.d)(h.e),a=Object(i.d)(h.h);return Object(y.jsxs)(S,{hasCaller:a,children:[Object(y.jsx)(w,{ref:t,autoPlay:!0,playsInline:!0,hasCaller:a,muted:!0}),!c&&Object(y.jsx)(D,{children:Object(y.jsx)(p.ImageView,{src:n,shapeType:"circular",scaleType:"cover",width:a?56:160,ratio:"1_1"})})]})})),I=Object(T.css)(["border-radius:12px;box-shadow:0 5px 10px rgba(0,0,0,0.4);height:140px;left:",";overflow:hidden;position:absolute;top:92px;width:220px;z-index:1;"],(function(e){return e.theme.spacing.spacingG})),k=Object(T.css)(["align-items:center;display:flex;height:100%;"]),S=T.default.div.withConfig({displayName:"S_CameraWrapper",componentId:"sc-9hy8pz-0"})(["",""],(function(e){return e.hasCaller?I:k})),w=T.default.video.withConfig({displayName:"S_Camera",componentId:"sc-9hy8pz-1"})(["-webkit-transform:rotateY(180deg);height:100%;object-fit:",";transform:rotateY(180deg);width:100%;"],(function(e){return e.hasCaller?"cover":"contain"})),D=T.default.div.withConfig({displayName:"S_Thumbnail",componentId:"sc-9hy8pz-2"})(["align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;top:0;"]);C.displayName="Callee";var N=C,E=n(3),A=n.n(E),B=n(34);var L=T.default.div.withConfig({displayName:"S_CameraWrapper",componentId:"sc-7nny5r-0"})(["align-items:center;background-color:",";display:flex;height:100%;position:relative;"],(function(e){return e.theme.ui_74})),M=T.default.video.withConfig({displayName:"S_Camera",componentId:"sc-7nny5r-1"})(["-webkit-transform:rotateY(180deg);height:100%;object-fit:contain;transform:rotateY(180deg);width:100%;"]),z=T.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-7nny5r-2"})(["align-items:center;display:flex;height:100%;justify-content:center;position:absolute;width:100%;"]),F=function(){var e=Object(i.c)(),t=Object(i.d)(h.g),n=Object(i.d)(h.c),c=Object(i.d)(h.p),a=Object(i.d)(h.a),o=Object(O.useRef)(null);function r(){return(r=Object(B.a)(A.a.mark((function e(t){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.setSinkId(a);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}return Object(O.useEffect)((function(){var t;function i(){e(Object(f.w)(!1))}return n&&null!==o&&void 0!==o&&o.current&&(o.current.srcObject=n,a&&function(e){r.apply(this,arguments)}(o.current)),null===o||void 0===o||null===(t=o.current)||void 0===t||t.addEventListener("play",i),function(){var e;o.current&&(o.current.srcObject=null),null===o||void 0===o||null===(e=o.current)||void 0===e||e.removeEventListener("play",i)}}),[n,a]),Object(y.jsx)(y.Fragment,{children:Object(y.jsxs)(L,{children:[Object(y.jsx)(M,{ref:o,autoPlay:!0,playsInline:!0}),n&&!t&&Object(y.jsx)(z,{children:Object(y.jsx)(p.ImageView,{src:null===c||void 0===c?void 0:c.host.thumbnailUrl,width:160,ratio:"1_1",shapeType:"circular",scaleType:"cover"})})]})})},R=n(14),P=n(91),V="TIMER_EXTENTION_TICKET",W="VIDEO",G=[{text:P.a.t("str_4193"),value:"TIMER_EXTENTION_TICKET"},{text:P.a.t("str_4184"),value:"VIDEO"}];var U=function(e){var t=e.onClose,n=e.onConfirm,c=Object(m.a)("translation").t,a=Object(i.c)(),o=Object(i.d)(h.d),r=Object(i.d)(h.b),s=Object(i.d)(h.a),l=Object(O.useState)(""),d=Object(R.a)(l,2),u=d[0],j=d[1],b=Object(O.useState)(""),x=Object(R.a)(b,2),_=x[0],g=x[1],v=Object(O.useState)(s),T=Object(R.a)(v,2),C=T[0],I=T[1],k=Object(O.useMemo)((function(){return{text:c("str_default"),value:""}}),[]);return Object(O.useEffect)((function(){if(r){var e=r.getVideoTracks(),t=r.getAudioTracks(),n=o.cameras.find((function(t){return t.text===e[0].label})),i=o.microphones.find((function(e){return e.text===t[0].label}));n&&j(n.value),i&&g(i.value)}}),[r]),Object(y.jsxs)(p.D_DesktopBasicModal,{size:"small",titleText:c("str_4277"),contentText:c("str_4476"),mBtn1Text:c("str_confirm"),mBtn2Text:c("str_cancel"),onClickMBtn1:function(){a(Object(f.a)({constraints:{audio:!_||{deviceId:_},video:!u||{deviceId:{exact:u}}},callback:n})),a(Object(f.z)(C)),t()},onClickMBtn2:t,children:[Object(y.jsx)(p.Spacing,{size:"spacing_e"}),(null===o||void 0===o?void 0:o.speakers)&&(null===o||void 0===o?void 0:o.microphones)&&(null===o||void 0===o?void 0:o.cameras)&&Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(p.D_BasicFormGroup,{titleText:c("str_4185"),inputForm:Object(y.jsx)(p.D_Dropdown,{responsiveMode:"use",valueArray:o.cameras,value:u?o.cameras.find((function(e){return e.value===u})):0!==o.cameras.length?o.cameras[0]:k,onChange:function(e){j(e.value)},state:o.cameras.length>1?"normal":"read_only"})}),Object(y.jsx)(p.Spacing,{size:"spacing_f"}),Object(y.jsx)(p.D_BasicFormGroup,{titleText:c("str_4186"),inputForm:Object(y.jsx)(p.D_Dropdown,{responsiveMode:"use",valueArray:o.microphones,value:_?o.microphones.find((function(e){return e.value===_})):0!==o.microphones.length?o.microphones[0]:k,onChange:function(e){g(e.value)},state:o.microphones.length>1?"normal":"read_only"})}),Object(y.jsx)(p.Spacing,{size:"spacing_f"}),Object(y.jsx)(p.D_BasicFormGroup,{titleText:c("str_4187"),inputForm:Object(y.jsx)(p.D_Dropdown,{responsiveMode:"use",valueArray:o.speakers,value:C?o.speakers.find((function(e){return e.value===C})):0!==o.speakers.length?o.speakers[0]:k,onChange:function(e){I(e.value)},state:o.speakers.length>1?"normal":"read_only"})})]})]})};var H=T.default.button.withConfig({displayName:"S_BorderButton",componentId:"sc-1ilj7l2-0"})(["align-items:center;background-color:",";border:1px solid rgba(255,255,255,0.2);border-radius:50%;display:flex;height:64px;justify-content:center;width:64px;&:hover:enabled{background-image:",";}&:active:enabled{background-image:",";}"],(function(e){var t=e.theme,n=e.disabled,i=e.active;return n?t.ui_75:i?t.ui_69:t.ui_68}),(function(e){var t=e.theme;return"linear-gradient(\n to top,\n ".concat(t.ui_cpnt_button_fill_on_base_hover,",\n ").concat(t.ui_cpnt_button_fill_on_base_hover,")")}),(function(e){var t=e.theme;return"linear-gradient(\n to top,\n ".concat(t.ui_cpnt_button_fill_on_base_pressed,",\n ").concat(t.ui_cpnt_button_fill_on_base_pressed,")")})),Y=function(e){var t=e.iconName,n=e.disabled,i=void 0!==n&&n,c=e.active,a=void 0!==c&&c,o=e.onClick;return Object(y.jsx)(H,{onClick:o,disabled:i,active:a,children:Object(y.jsx)(p.Icon,{size:24,fillType:"fill",iconName:t,colorKey:"ui_cpnt_button_icon_white"})})},K=n(33),J=n(475),X=n(273),q=n(178),Z=n(114),Q=n(110);var $=T.default.div.withConfig({displayName:"S_Temp_ThreeBarWrapper",componentId:"sc-aar5s7-0"})(["min-height:52px;"]),ee=T.default.div.withConfig({displayName:"S_ThreeBarProgressContent",componentId:"sc-aar5s7-1"})(["&,&::before,&::after{background-color:",";-webkit-animation:threeBarAnimation 1s infinite ease-in-out;animation:threeBarAnimation 1s infinite ease-in-out;width:11px;height:44px;min-height:44px;border-radius:3px;}&{color:",";text-indent:-9999em;position:relative;font-size:1px;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation-delay:-0.16s;animation-delay:-0.16s;}&::before,&::after{position:absolute;top:0;content:'';}&::before{left:-20px;-webkit-animation-delay:-0.32s;animation-delay:-0.32s;}
1&::after{left:20px;}@-webkit-keyframes threeBarAnimation{0%,80%,100%{box-shadow:0 0;height:44px;}40%{box-shadow:0 -2em;height:48px;}}@keyframes threeBarAnimation{0%,80%,100%{box-shadow:0 0;height:44px;}40%{box-shadow:0 -2em;height:48px;}}"],(function(e){var t=e.theme,n=e.colorKey;return n&&t[n]}),(function(e){var t=e.theme,n=e.colorKey;return n&&t[n]})),te=function(e){var t=e.colorKey,n=void 0===t?"ui_loading_three_bar":t;return Object(y.jsx)($,{children:Object(y.jsx)(ee,{colorKey:n})})};var ne=T.default.div.withConfig({displayName:"S_Loading",componentId:"sc-5w5bep-0"})(["align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;"]),ie=function(e){var t=e.onClose;Object(Q.c)("c00012_time_extension","ChannelActionProduct");var n=Object(m.a)("translation").t,o=Object(c.m)(),r=Object(c.k)(),s=Object(i.c)(),l=Object(i.d)(J.b),d=Object(i.d)(h.p),u=Object(i.d)(q.a),b=Object(i.d)(J.c),f=Object(i.d)(K.c),x=Object(i.d)(K.a),_=null!==f&&void 0!==f&&f.isGlobal?(null===x||void 0===x?void 0:x.pointCurrencySuite.pointCurrencyNameGlobal)||"Point":(null===x||void 0===x?void 0:x.pointCurrencySuite.pointCurrencyName)||"Point",g=Object(O.useState)(!1),v=Object(R.a)(g,2),T=v[0],C=v[1],I=Object(O.useState)(0),k=Object(R.a)(I,2),S=k[0],w=k[1];return Object(O.useEffect)((function(){if(d)return s(Object(Z.e)()),d.info.extensionTable.length>0&&s(Object(X.a)({pAppCode:a.Y.C00012.CODE,page:1,limit:10,ids:d.info.extensionTable.toString()})),function(){s(Object(X.b)())}}),[d]),Object(O.useEffect)((function(){b.length&&w(b[0].id)}),[b]),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(p.D_DesktopBasicModal,{size:"small",titleText:n("str_4284"),contentText:n("str_3251"),btnMode:"mbtn_amount2",mBtn1Text:n("str_confirm"),mBtn2Text:n("str_cancel"),mBtn1State:b.length>0?"normal":"disabled",onClickMBtn1:function(){if(u&&d){var e=b.find((function(e){return e.id===S}));e&&u.channelPointAmount<e.template.channelPointAmount&&C(!0)}},onClickMBtn2:t,children:0===b.length?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(p.Spacing,{size:"spacing_i"}),l&&d&&d.info.extensionTable.length>0?Object(y.jsx)(ne,{children:Object(y.jsx)(te,{})}):Object(y.jsx)(p.D_TextLabel,{text:n("str_4768"),textAlign:"center",colorTheme:"sysTextTertiary",styleTheme:"body2Regular"}),Object(y.jsx)(p.Spacing,{size:"spacing_i"})]}):Object(y.jsx)(y.Fragment,{children:b.map((function(e){return Object(y.jsxs)(O.Fragment,{children:[Object(y.jsx)(p.Spacing,{size:"spacing_d"}),Object(y.jsxs)(p.D_ContentSheet,{width:"100%",height:"fit-content",backgroundColorTheme:"transparent",borderMode:"use",paddingLeft:"spacing_d",paddingBottom:"spacing_c",paddingRight:"spacing_d",paddingTop:"spacing_c",overrideBorderColorKey:S===e.id?"ui_cpnt_button_line_border_primary":"ui_cpnt_button_line_border_default",shapeType:"round",radius:16,overrideCSS:{display:"flex",alignItems:"center",justifyContent:"space-between"},onClick:function(){return t=e.id,void w(t);var t},children:[Object(y.jsx)(p.D_TextLabel,{text:e.template.representationalName,colorTheme:S===e.id?"usrTextBrandPrimary":"sysTextPrimary"}),Object(y.jsx)(p.Spacing,{size:"spacing_c",spacingType:"width"}),Object(y.jsx)(p.D_TextLabel,{text:n("str_fm_point",{amount:(t=e.template.channelPointAmount,new Intl.NumberFormat("en",{notation:"standard"}).format(t))}),colorTheme:S===e.id?"usrTextBrandPrimary":"sysTextPrimary"})]})]},e.id);var t}))})}),T&&Object(y.jsx)(p.D_DesktopAlertDialog,{titleText:n("str_inapppoint_purchase_product_dialog_title",{inappPointName:_}),contentText:n("str_inapppoint_purchase_product_dialog_content",{inappPointName:_}),btnMode:"tbtn_amount2",tBtn1Text:n("str_inapppoint_purchase_product_dialog_btn"),onClickTBtn1:function(){r.push(Object(c.i)(j.tb,o),{prevPath:"pApp"})},tBtn2Text:n("str_cancel"),onClickTBtn2:function(){return C(!1)}})]})};var ce=T.default.div.withConfig({displayName:"S_AdditionalSettingButton",componentId:"sc-17cn0qp-0"})(["position:relative;"]),ae=function(){var e=Object(i.d)(h.s),t=Object(i.d)(h.p),n=Object(i.d)(h.k),c=Object(O.useState)(!1),a=Object(R.a)(c,2),o=a[0],r=a[1],s=Object(O.useState)(!1),l=Object(R.a)(s,2),u=l[0],j=l[1],b=Object(O.useState)(!1),m=Object(R.a)(b,2),f=m[0],x=m[1],_=Object(O.useMemo)((function(){return null!==t&&void 0!==t&&t.info.isExtendable&&null!==t&&void 0!==t&&t.info.isTimerExposed,[G[1]]}),[t,G]),g=Object(O.useRef)(null),v=n||"ATTEMPTING"===e;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)(ce,{ref:g,onMouseLeave:function(){return x(!1)},children:[Object(y.jsx)(Y,{disabled:v,iconName:"ic_more",onClick:function(){return x((function(e){return!e}))}}
1),Object(y.jsx)(d.E,{children:Object(y.jsx)(d.D,{targetRef:g,isOpen:f,placement:"top-end",onClickOutside:function(){return x(!1)},children:Object(y.jsxs)("div",{onMouseLeave:function(){return x(!1)},children:[Object(y.jsx)(p.D_ContextMenu,{children:_.map((function(e){return Object(y.jsx)(p.D_ContextMenuItem,{option:e,onClick:function(){return function(e){switch(e){case V:r(!0);break;case W:j(!0)}x(!1)}(e.value)}},e.value)}))}),Object(y.jsx)(p.Spacing,{size:"spacing_b"})]})})})]}),o&&Object(y.jsx)(ie,{onClose:function(){return r(!1)}}),u&&Object(y.jsx)(U,{onClose:function(){return j(!1)}})]})};var oe=function(){var e=Object(i.c)(),t=Object(i.d)(h.e),n=Object(i.d)(h.k),c=Object(i.d)(h.s),a=n||"ATTEMPTING"===c;return Object(y.jsx)(Y,{disabled:a,iconName:!t||a?"ic_cam_off":"ic_cam",onClick:function(){e(Object(f.H)(!t))}})},re=n(2776),se=n(45);var le=T.default.div.withConfig({displayName:"S_Chatting",componentId:"sc-97biya-0"})(["-webkit-mask-image:linear-gradient(0deg,rgba(0,0,0,1) 96%,rgba(0,0,0,0) 100%);bottom:88px;position:fixed;right:0;top:184px;width:360px;"]),de=function(){var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(i.d)(h.n),c=Object(O.useState)(!1),a=Object(R.a)(c,2),o=a[0],r=a[1];return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(le,{children:Object(y.jsx)(p.D_ChatList,{headerMode:"none",colorTheme:"transparent",bodySpacingMode:"use",bodyMBtnText:e("str_recent_messages"),textFieldHintText:e("str_3523"),textFieldMaxLength:100,onSubmit:function(e){if(e){var n=document.querySelector("input"),i=e.toLowerCase().split(" ");if(re.some((function(e){return i.some((function(t){return t===e}))})))return r(!0),void(null===n||void 0===n||n.blur());t(Object(f.t)(e))}},children:n.map((function(e,t){var i;return Object(y.jsxs)(O.Fragment,{children:[Object(y.jsx)(p.D_ChatBubbleListItem,{hoverMode:"none",styleTheme:e.type,timeMode:"use",timeText:se.a.tz(e.createdAt).format("HH:mm"),colorTheme:e.type.includes("me")?"translucent_white":"translucent_black",children:Object(y.jsx)(p.D_TextLabel,{text:e.content,styleTheme:"body2Regular",colorTheme:e.type.includes("me")?"sysTextBlack":"sysTextWhite",wordBreak:"break_all"})}),Object(y.jsx)(p.Spacing,{size:e.distinctId===(null===(i=n[t+1])||void 0===i?void 0:i.distinctId)?"spacing_b":"spacing_d"})]},e.mid)}))})}),o&&Object(y.jsx)(p.D_DesktopAlertDialog,{contentText:e("str_err_4678"),btnMode:"tbtn_amount1",tBtn1Text:e("str_confirm"),onClickTBtn1:function(){return r(!1)}})]})};var ue=function(){var e=Object(i.c)(),t=Object(i.d)(h.i),n=Object(i.d)(h.j),c=Object(i.d)(h.s),a="ATTEMPTING"===c;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(Y,{iconName:n?"ic_chat_notification":"ic_chat",active:t,disabled:a,onClick:function(){e(Object(f.l)(!t))}}),"IDLE"===c&&t&&Object(y.jsx)(de,{})]})};var je=function(){var e=Object(i.c)(),t=Object(i.d)(h.k),n=Object(i.d)(h.f),c=Object(i.d)(h.b),a=Object(i.d)(h.s),o=t||"ATTEMPTING"===a;return Object(y.jsx)(Y,{disabled:o,iconName:!n||o?"ic_mic_off":"ic_mic_on",onClick:function(){e(Object(f.I)(!n)),null===c||void 0===c||c.getAudioTracks().forEach((function(e){return e.enabled=!e.enabled,e}))}})};function be(){return Object(y.jsxs)(pe,{children:[Object(y.jsx)(p.Spacing,{size:"spacing_g",spacingType:"width"}),Object(y.jsxs)(Oe,{children:[Object(y.jsx)(oe,{}),Object(y.jsx)(p.Spacing,{size:"spacing_d",spacingType:"width"}),Object(y.jsx)(je,{}),Object(y.jsx)(p.Spacing,{size:"spacing_d",spacingType:"width"}),Object(y.jsx)(ae,{})]}),Object(y.jsx)(ue,{})]})}var pe=T.default.div.withConfig({displayName:"S_Controller",componentId:"sc-bygzmw-0"})(["align-items:center;bottom:",";display:flex;justify-content:space-between;left:0;padding-left:",";padding-right:",";position:absolute;width:100%;z-index:9;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingF})),Oe=T.default.div.withConfig({displayName:"S_ControlButtonBox",componentId:"sc-bygzmw-1"})(["align-items:center;display:flex;"]);be.displayName="Controller";var me=be,fe=n(364),he=n(610),xe=n(164),_e=n(89);var ge=T.default.div.withConfig({displayName:"S_EndCallGuide",componentId:"sc-3iuqm5-0"})(["align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),ve=function(){var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(c.k)(),a=Object(c.m)(),o=Object(i.d)(_e.b),r=Object(i.d)(h.r),s=Object(O.useState)(3),l=Object(R.a)(s,2),d=l[0],j=l[1];return Object(fe.a)((function(){if(1===d)return r&&null!==o&&void 0!==o&&o.distinctId&&(t(Object(f.v)({action:"REJOIN",distinctId:o.distinctId}
1)),t(Object(f.k)()),r.reason===he.a.NOT_EXIST_ROOM&&t(Object(f.f)())),t(Object(xe.c)()),void n.push(Object(u.l)(x,a));j((function(e){return e-1}))}),1e3),Object(y.jsxs)(ge,{children:[Object(y.jsx)(p.D_TextLabel,{text:e("str_4285"),textAlign:"center",styleTheme:"displayBold",colorTheme:"sysTextPrimary"}),Object(y.jsx)(p.Spacing,{size:"spacing_d"}),Object(y.jsx)(p.D_TextLabel,{text:e("str_4286",{seconds:d}),textAlign:"center",colorTheme:"sysTextTertiary"})]})};var Te=T.default.div.withConfig({displayName:"S_FloatingLayout",componentId:"sc-h0j7t8-0"})(["bottom:0;left:0;position:fixed;right:0;top:0;z-index:15;"]),ye=function(e){var t=e.children;return Object(y.jsx)(d.z,{children:Object(y.jsx)(Te,{children:t})})};var Ce=T.default.div.withConfig({displayName:"S_NavBar",componentId:"sc-15asu9z-0"})(["align-items:center;display:flex;height:64px;justify-content:space-between;position:absolute;width:100%;z-index:1;"]),Ie=T.default.div.withConfig({displayName:"S_CalleeProfile",componentId:"sc-15asu9z-1"})(["align-items:center;display:flex;padding-left:",";"],(function(e){return e.theme.spacing.spacingE})),ke=T.default.div.withConfig({displayName:"S_ExitButtonWrapper",componentId:"sc-15asu9z-2"})(["padding-right:",";"],(function(e){return e.theme.spacing.spacingB})),Se=function(e){var t=e.nickname,n=e.distinctId,i=e.thumbnailUrl,a=Object(c.k)(),o=Object(c.m)();return Object(y.jsxs)(Ce,{children:[Object(y.jsxs)(Ie,{children:[Object(y.jsx)(p.ImageView,{src:i,shapeType:"circular",width:40,ratio:"1_1",scaleType:"cover"}),Object(y.jsx)(p.Spacing,{size:"spacing_d",spacingType:"width"}),Object(y.jsx)(p.D_TextLabel,{text:"".concat(t,", ").concat(function(e){return"***".concat(e.slice(-5))}(n)),styleTheme:"body1Bold",colorTheme:"sysTextWhite"})]}),Object(y.jsx)(ke,{children:Object(y.jsx)(p.D_IconButton,{baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconName:"ic_xmark",iconColorKey:"ui_cpnt_videoplayer_icon_01",onClick:function(){a.push(Object(u.l)(x,o))}})})]})};var we=T.default.div.withConfig({displayName:"S_Gradient",componentId:"sc-1q7hx
1ot-0"})(["background-image:",";height:72px;left:0;position:absolute;top:0;width:100%;z-index:1;"],(function(e){var t=e.theme;return"linear-gradient(to bottom, ".concat(t.ui_cpnt_videoplayer_gradient_3,", ").concat(t.ui_cpnt_videoplayer_gradient_2,")")})),De=function(e){var t=e.caller;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(we,{}),Object(y.jsx)(Se,{nickname:t.nickname,distinctId:t.distinctId,thumbnailUrl:t.thumbnailUrl})]})};function Ne(e){var t=e.onClick,n=Object(m.a)("translation").t;return Object(y.jsx)(p.D_DesktopAlertDialog,{contentText:n("str_err_4540"),tBtn1Text:n("str_ok"),onClickTBtn1:t})}function Ee(e){var t=e.onClick,n=Object(m.a)("translation").t;return Object(y.jsx)(p.D_DesktopAlertDialog,{contentText:n("str_err_4541"),tBtn1Text:n("str_ok"),onClickTBtn1:t})}function Ae(e){var t=e.onClick,n=Object(m.a)("translation").t;return Object(y.jsx)(p.D_DesktopAlertDialog,{contentText:n("str_err_4542"),tBtn1Text:n("str_ok"),onClickTBtn1:t})}var Be=function(){var e=Object(i.c)(),t=Object(c.k)(),n=Object(c.m)(),a=Object(i.d)(_e.b),o=Object(i.d)(h.r),r=Object(i.d)(h.p);function s(){o&&"JOIN"!==(null===o||void 0===o?void 0:o.action)&&null!==a&&void 0!==a&&a.distinctId&&e(Object(f.v)({action:o.action,distinctId:a.distinctId})),(null===o||void 0===o?void 0:o.reason)===he.a.NOT_EXIST_ROOM&&(e(Object(xe.c)()),e(Object(f.f)())),e(Object(f.i)()),t.push(Object(u.l)(x,n))}if(Object(O.useEffect)((function(){"TERMINATE"===(null===o||void 0===o?void 0:o.action)&&o.reason===he.c.CONFLICT&&t.push(Object(u.l)(x,n))}),[o]),!o)return Object(y.jsx)(y.Fragment,{});if("JOIN"===o.action)switch(o.reason){case he.a.NOT_EXIST_ROOM:return r&&"CLOSED"===r.status?Object(y.jsx)(y.Fragment,{}):Object(y.jsx)(Ne,{onClick:s});case he.a.INVALID_ACCESS_TO_ROOM:case he.a.INVALID_ACCESS_WITH_ROLE:return Object(y.jsx)(Ae,{onClick:s});case he.a.FAILED_TO_SAVE:default:return Object(y.jsx)(Ee,{onClick:s})}if("TERMINATE"===o.action)switch(o.reason){case he.c.CONFLICT:return Object(y.jsx)(y.Fragment,{});case he.c.INVALID_PAYLOAD:case he.c.INVALID_TOKEN:case he.c.INVALID_CHANNEL_ID:case he.c.INVALID_JWT_CLAIM:return Object(y.jsx)(Ae,{onClick:s});case he.c.SERVER_CLOSED:default:return Object(y.jsx)(Ee,{onClick:s})}if("REJOIN"===o.action)switch(o.reason){case he.b.NOT_EXIST_ROOM:return r&&"CLOSED"===r.status?Object(y.jsx)(y.Fragment,{}):Object(y.jsx)(Ne,{onClick:s});case he.b.INVALID_ACCESS_TO_ROOM:case he.b.INVALID_ACCESS_WITH_ROLE:return Object(y.jsx)(Ae,{onClick:s});case he.b.FAILED_TO_SAVE:default:return Object(y.jsx)(Ee,{onClick:s})}return Object(y.jsx)(y.Fragment,{})};var Le=T.default.div.withConfig({displayName:"S_Temp_Loading",componentId:"sc-138eeta-0"})(["align-items:center;box-shadow:-30px 0 100px -100px #000,30px 0 100px -100px #000;display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;position:",";top:50%;transform:translate(-50%,-50%);width:100%;& > div > div{transform:scale(70%);}"],(function(e){return e.position})),Me=function(e){var t=e.titleText,n=e.position,i=void 0===n?"absolute":n;return Object(y.jsxs)(Le,{position:i,children:[Object(y.jsx)(p.D_TextLabel,{text:t,styleTheme:"subTitleBold",textAlign:"center",colorOverride:"ui_loading_three_bar"}),Object(y.jsx)(p.Spacing,{size:"spacing_e"}),Object(y.jsx)(te,{})]})};var ze=function(e){var t=e.startedAt,n=Object(O.useState)("".concat(r(o(t).hour),":").concat(r(o(t).minute),":").concat(r(o(t).second))),i=Object(R.a)(n,2),c=i[0],a=i[1];function o(e){var t=se.a.tz(e).format(),n=se.a.tz().difference(t,"seconds");return{hour:Math.floor(n/3600),minute:Math.floor(n%3600/60),second:Math.floor(n%3600%60)}}function r(e){return"".concat(e<=9?"0":"").concat(e)}return Object(fe.a)((function(){var e=o(t),n=e.hour,i=e.minute,c=e.second;a("".concat(r(n),":").concat(r(i),":").concat(r(c)))}),1e3),Object(y.jsx)(p.D_TextLabel,{text:c,textAlign:"center",styleTheme:"caption1Regular",colorTheme:"sysTextWhite",lineLimit:1})};var Fe=function(e){var t=e.adjustedAt,n=e.onTimeUp,i=Object(m.a)("translation").t,c=Object(O.useState)(s(t)),a=Object(R.a)(c,2),o=a[0],r=a[1];function s(e){var t=se.a.tz().format(),n=se.a.tz(e).difference(t,"milliseconds");return n<=0?0:n}return Object(O.useEffect)((function(){r(s(t)),n(!1)}),[t]),Object(O.useEffect)((function(){o<=3e5&&n(!0)}),[o]),Object(fe.a)((function(){0!==o&&r(s(t))}),1e3),Object(y.jsx)(p.D_TextLabel,{text:function(e){if(e<=0)return i("str_time_minute",{minute:0}
1);var t=Math.floor(e/1e3),n=Math.ceil(t/60),c=Math.floor(n/60);return c?i("str_time_hour_minute",{hour:c,minute:n%60}):i("str_time_minute",{minute:n})}(o),textAlign:"center",styleTheme:"headingBold",colorTheme:"sysTextWhite",lineLimit:1})};var Re=T.default.div.withConfig({displayName:"S_Timer",componentId:"sc-ctjk5m-0"})(["align-items:center;background-color:",";border-radius:8px;display:flex;flex-direction:column;left:",";min-width:100px;padding-bottom:",";padding-left:",";padding-right:",";padding-top:",";position:absolute;top:",";z-index:1;"],(function(e){var t=e.theme;return e.isTimeUp?t.ui_cpnt_timer_base_timeup:t.ui_cpnt_timer_base_01}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.isCallerJoined?"248px":"92px"})),Pe=function(e){var t=e.startedAt,n=e.adjustedAt,c=Object(i.d)(h.c),a=Object(O.useState)(!1),o=Object(R.a)(a,2),r=o[0],s=o[1];return Object(y.jsxs)(Re,{isTimeUp:r,isCallerJoined:!!c,children:[Object(y.jsx)(Fe,{adjustedAt:n,onTimeUp:function(e){s(e)}}),Object(y.jsx)(p.Spacing,{size:"spacing_a"}),Object(y.jsx)(p.Divider,{colorTheme:"divider1"}),Object(y.jsx)(p.Spacing,{size:"spacing_b"}),Object(y.jsx)(ze,{startedAt:t})]})},Ve={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"\ud654\uc0c1\ud1b5\ud654\ub97c \ud558\uba70 \uc2e4\uc2dc\uac04\uc73c\ub85c \ucc44\ud305\uc744 \ub0a8\uaca8\ubcf4\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var We=T.default.div.withConfig({displayName:"S_VideoChatRoom",componentId:"sc-lzn89g-0"})(["background-color:",";height:100%;position:relative;"],(function(e){return e.theme.ui_74})),Ge=function(){Object(v.a)("C00012VideoChatRoom");var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(c.k)(),o=Object(c.m)(),s=Object(i.d)(r.c),l=Object(i.d)(h.p),d=Object(i.d)(h.b),j=Object(i.d)(h.q),b=Object(i.d)(h.h),_=Object(i.d)(h.m),T=Object(i.d)(h.k),C=Object(i.d)(h.s),I=Object(O.useMemo)((function(){return l?l.activityLogs.map((function(e){return e.adjustedToExpireAt})).reduce((function(e,t){return new Date(e)>new Date(t)?e:t})):""}),[null===l||void 0===l?void 0:l.activityLogs]),k=Object(O.useRef)(null),S=T&&b||"ATTEMPTING"===C,w=e("ATTEMPTING"===C?"str_4685":"str_4683"),D={title:s&&e("str_seo_c00012_video_chatroom_title",{menuName:s.pAppCodeMenuItemNameSet[a.Y.C00012.CODE],interpolation:{escapeValue:!1}}),description:e("str_seo_c00012_video_chatroom_desc")};return Object(g.c)({manifest:Ve,isActivated:!0,data:D,options:{useChannelTitlePrefix:!0}}),Object(O.useEffect)((function(){if(j)return t(Object(f.j)()),function(){t(Object(f.k)())}}),[j]),Object(O.useEffect)((function(){j&&"SUCCESS"===C&&(t(Object(f.j)()),t(Object(f.G)("IDLE")))}),[C]),Object(O.useEffect)((function(){d&&null!==k&&void 0!==k&&k.current&&(k.current.srcObject=d,k.current.volume=0)}),[d]),Object(y.jsx)(ye,{children:Object(y.jsx)(p.WFContainersBox,{layoutType:"WFD_1",isLoadingContainer1:_,content1:Object(y.jsx)(y.Fragment,{children:l?Object(y.jsxs)(y.Fragment,{children:["OPENED"===l.status&&Object(y.jsxs)(We,{children:[Object(y.jsx)(De,{caller:l.host}),l.info.isTimerExposed&&Object(y.jsx)(Pe,{startedAt:l.createdAt,adjustedAt:I}),Object(y.jsx)(N,{ref:k,calleeThumbnailUrl:l.guests[0].thumbnailUrl}),"IDLE"===C&&Object(y.jsx)(F,{}),S&&Object(y.jsx)(Me,{titleText:w}),Object(y.jsx)(me,{})]}),"CLOSED"===l.status&&Object(y.jsx)(ve,{}),Object(y.jsx)(Be,{})]}):Object(y.jsx)(p.D_DesktopAlertDialog,{contentText:e("str_err_4540"),tBtn1Text:e("str_ok"),onClickTBtn1:function(){n.push(Object(u.l)(x,o))}})})})})};var Ue=function(){var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(i.d)(_e.b),c=Object(i.d)(h.r);return Object(y.jsx)(y.Fragment,{children:c&&"TERMINATE"===c.action&&c.reason===he.c.CONFLICT&&Object(y.jsx)(p.D_DesktopAlertDialog,{contentText:e("str_err_4547"),tBtn1Text:e("str_ok"),onClickTBtn1:function(){c&&"JOIN"!==(null===c||void 0===c?void 0:c.action)&&null!==n&&void 0!==n&&n.distinctId&&t(Object(f.v)({action:c.action,distinctId:n.distinctId})),t(Object(f.i)())}})})},He=n(594);var Ye=T.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-1sfn1nc-0"})(["margin-left:",";margin-top:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),Ke=T.default.div.withConfig({displayName:"S_ContentTextWrapper",componentId:"sc-1sfn1nc-1"})(["bottom:0;display:flex;flex-direction:column;height:",";justify-content:center;left:50%;position:absolute;transform:translateX(-50%);"],(function(e){var t=e.screenHeight;return"calc(100vh - ".concat(t,"px)")})),Je=T.default.div.withConfig({displayName:"S_TextButtonWrapper",componentId:"sc-1sfn1nc-2"})(["align-items:center;display:flex;justify-content:center;"]),Xe=function(e){var t=e.onRefreshPage,n=Object(m.a)("translation").t,c=Object(i.d)(
1He.a)?154:64;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(Ye,{children:Object(y.jsx)(p.D_TextLabel,{text:n("str_video_call"),styleTheme:"displayBold"})}),Object(y.jsxs)(Ke,{screenHeight:c,children:[Object(y.jsx)(p.D_TextLabel,{text:n("str_4278"),textAlign:"center",customFontSize:"32px",customFontWeight:"bold"}),Object(y.jsx)(p.Spacing,{size:"spacing_d"}),Object(y.jsx)(p.D_TextLabel,{text:n("str_4279"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(y.jsx)(p.Spacing,{size:"spacing_e"}),Object(y.jsx)(Je,{children:Object(y.jsx)(p.D_TextButton,{text:n("str_4551"),size:"small",onClick:t})})]})]})};var qe=T.default.div.withConfig({displayName:"S_BackgroundVideo",componentId:"sc-fblgvn-0"})(["height:",";position:relative;width:100%;"],(function(e){var t=e.topHeight;return"calc(100vh - ".concat(t,"px)")})),Ze=T.default.div.withConfig({displayName:"S_Dim",componentId:"sc-fblgvn-1"})(["background-color:",";height:100%;left:0;position:absolute;top:0;width:100%;"],(function(e){return e.theme.ui_dimmed_01})),Qe=T.default.video.withConfig({displayName:"S_Video",componentId:"sc-fblgvn-2"})(["-webkit-transform:rotateY(180deg);height:100%;object-fit:cover;transform:rotateY(180deg);width:100%;"]),$e=T.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-fblgvn-3"})(["align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;"]),et=T.default.div.withConfig({displayName:"S_ButtonWrapper",componentId:"sc-fblgvn-4"})(["& > button{bottom:",";left:50%;position:absolute;transform:translateX(-50%);}"],(function(e){return e.theme.spacing.spacingH})),tt=function(e){var t=e.callerName,n=Object(m.a)("translation").t,a=Object(c.k)(),o=Object(c.m)(),r=Object(i.d)(He.a),s=Object(i.d)(h.b),l=Object(O.useState)(!1),d=Object(R.a)(l,2),j=d[0],b=d[1],f=Object(O.useRef)(null),x=r?154:64;return Object(O.useEffect)((function(){s&&null!==f&&void 0!==f&&f.current&&(f.current.srcObject=s,f.current.volume=0)}),[s]),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)(qe,{topHeight:x,children:[Object(y.jsx)(Qe,{ref:f,autoPlay:!0,playsInline:!0,muted:!0}),Object(y.jsx)(Ze,{}),Object(y.jsxs)($e,{children:[Object(y.jsx)(p.D_TextLabel,{text:n("str_4280",{nickname:t}),colorTheme:"sysTextWhite",customFontSize:"32px",customFontWeight:"bold"}),Object(y.jsx)(p.Spacing,{size:"spacing_d"}),Object(y.jsx)(p.D_TextLabel,{text:n("str_4281"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary"}),Object(y.jsx)(et,{children:Object(y.jsx)(p.D_FloatingActionButton,{displayType:"icon_only",size:"xlarge",iconFillType:"fill",iconName:"ic_cam",onClick:function(){return b(!0)}})})]})]}),j&&Object(y.jsx)(U,{onClose:function(){return b(!1)},onConfirm:function(){a.push(Object(u.l)(_,o))}})]})},nt={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc5d0\uc11c 1:1 \ud654\uc0c1\ud1b5\ud654\uac00 \uc9c4\ud589\ub420 \uc608\uc815\uc785\ub2c8\ub2e4."},keyMappingDefinition:{title:"title",description:"description"}};var it=function(){Object(v.a)("C00012WaitingRoom");var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(i.d)(r.c),c=Object(i.d)(h.p),o=Object(i.d)(h.m),s=n?{title:e("str_seo_c00012_waiting_room_title",{menuName:n.pAppCodeMenuItemNameSet[a.Y.C00012.CODE],interpolation:{escapeValue:!1}}),description:e("str_seo_c00012_waiting_room_desc",{channelName:n.title,interpolation:{escapeValue:!1}})}:null;return Object(g.c)({manifest:nt,isActivated:!0,data:s,options:{useChannelTitlePrefix:!0}}),Object(y.jsx)(p.WTContainersBox,{layoutType:"WTM_1",isLoadingContainer1:o,content1:Object(y.jsxs)(y.Fragment,{children:[c?Object(y.jsx)(tt,{callerName:c.host.nickname}):Object(y.jsx)(Xe,{onRefreshPage:function(){t(Object(f.d)())}}),Object(y.jsx)(Ue,{})]})})};var ct=function(){var e=Object(m.a)("translation").t,t=Object(i.c)(),n=Object(i.d)(h.l);return Object(O.useEffect)((function(){return t(Object(f.d)()),function(){t(Object(f.f)())}}),[]),Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)(c.g,{children:[Object(y.jsx)(c.d,{exact:!0,path:x,component:it}),Object(y.jsx)(o.l,{exact:!0,path:_,component:Ge}),Object(y.jsx)(c.c,{from:j.p,to:x})]}),n&&Object(y.jsx)(p.D_DesktopAlertDialog,{titleText:e("str_4477"),contentText:e("str_4478"),tBtn1Text:e("str_confirm"),onClickTBtn1:function(){t(Object(f.c)())}})]})};var at=function(){var e=Object(i.d)(Object(l.f)()),t=Object(i.d)(Object(r.n)()),n=Object(i.d)(s.c),p=Object(i.d)(s.b);if(!t)return Object(y.jsx)(y.Fragment,{});var O=t.channelCode;if(p)switch(p.code){case 403:return Object(y.jsx)(c.c,{to:Object(j.P)(O,a.Y.C00012.CODE)});
1default:c.g,c.c,Object(j.V)(O)}return n&&n.code===a.Y.C00012.CODE?Object(y.jsxs)(c.g,{children:[Object(y.jsx)(c.d,{path:x,component:ct}),Object(y.jsx)(c.c,{from:j.p,to:x})]}):p||n?Object(y.jsx)(d.y,{}):Object(y.jsxs)(c.g,{children:[Object(y.jsx)(o.q,{exact:!0,path:j.fb,component:b.a,isAuthenticated:e}),Object(y.jsx)(c.c,{from:j.p,to:Object(u.l)(j.p,{channelCode:O})})]})}}}]);
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.