1(this["webpackJsonppubl-uw"]=this["webpackJsonppubl-uw"]||[]).push([[10],{2754:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(4);function c(e){var t=Object(i.useRef)();return Object(i.useEffect)((function(){t.current=e}),[e]),t.current}},2755:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(7),c=n(14),o=n(2),s=n(4),a=n(29),r=n(182),l=n(9),d=n(19),u=n(5),p=n(593),m=n(0);var b=function(){var e,t,n=Object(r.a)().t,u=Object(l.d)(Object(d.o)()),b=Object(s.useState)(!1),g=Object(c.a)(b,2),_=g[0],h=g[1],f=Object(a.useForm)({mode:"onChange",defaultValues:{reportReason:n("str_report_reason_opt_a")}}),x=f.setValue,O=f.watch,v=f.reset,T=O("pAppCode"),y=O("targetContentDetail"),C=O("reportReason"),S=O("reportReasonEtc"),I=Object(p.a)(T),w="mailto:".concat(null===u||void 0===u?void 0:u.email,"?body=").concat(n("str_report_reason"),": ").concat(S||C," %0D%0A ").concat(n("str_report_location"),": ").concat(I," %0D%0A ").concat(n("str_report_target_content_detail"),": ").concat(y," %0D%0A ").concat(n("str_report_additional_detail"),": "),E={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")},A=function(e){x("reportReason",e.target.value),x("reportReasonEtc","")};return{ReportContent:Object(m.jsx)(m.Fragment,{children:_&&Object(m.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(){h(!1),window.open(w),v()},onClickMBtn2:function(){h(!1),v()},children:[Object(m.jsx)(o.Spacing,{size:"spacing_e"}),Object(m.jsx)(o.D_TextLabel,{text:n("str_report_target_content_detail"),styleTheme:"subTitleBold"}),Object(m.jsx)(o.D_TextLabel,{text:(e=y,t=20,e.length<=t?e:"".concat(e.slice(0,20),"...")),styleTheme:"body2Regular",ellipsisMode:"use"}),Object(m.jsx)(o.Spacing,{size:"spacing_f"}),Object(m.jsx)(o.D_TextLabel,{text:n("str_report_reason"),styleTheme:"subTitleBold"}),Object(m.jsx)(a.FormProvider,Object(i.a)(Object(i.a)({},f),{},{children:Object(m.jsxs)(o.Form,{children:[Object(m.jsx)(o.Spacing,{size:"spacing_d"}),Object(m.jsx)(o.D_Radio,{name:"reportReason",text:E.reasonA,checked:C===E.reasonA,onChange:function(e){return A(e)},value:E.reasonA}),Object(m.jsx)(o.Spacing,{size:"spacing_c"}),Object(m.jsx)(o.D_Radio,{name:"reportReason",text:E.reasonB,checked:C===E.reasonB,onChange:function(e){return A(e)},value:E.reasonB}),Object(m.jsx)(o.Spacing,{size:"spacing_c"}),Object(m.jsx)(o.D_Radio,{name:"reportReason",text:E.reasonC,checked:C===E.reasonC,onChange:function(e){return A(e)},value:E.reasonC}),Object(m.jsx)(o.Spacing,{size:"spacing_c"}),Object(m.jsx)(o.D_Radio,{name:"reportReason",text:E.reasonD,checked:C===E.reasonD,onChange:function(e){return A(e)},value:E.reasonD}),Object(m.jsx)(o.Spacing,{size:"spacing_c"}),Object(m.jsx)(o.D_Radio,{name:"reportReason",text:E.reasonEtc,checked:C===E.reasonEtc,onChange:function(e){return A(e)},value:E.reasonEtc}),Object(m.jsx)(o.Spacing,{size:"spacing_b"}),Object(m.jsxs)(j,{children:[Object(m.jsx)(o.Spacing,{size:"spacing_e",spacingType:"width"}),Object(m.jsx)(o.D_TextField,{name:"reportReasonEtc",size:"rlarge",hintText:n("str_3834"),defaultText:S,textLineType:"multi",multiRows:4,state:C===E.reasonEtc?"normal":"disabled",onChange:function(e){return function(e){x("reportReasonEtc",e.target.value)}(e)}})]})]})}))]})}),openReportContentModal:function(e,t){x("targetContentDetail",e),x("pAppCode",t),h(!0)},closeReportContentModal:function(){h(!1),v()}}},j=u.default.div.withConfig({displayName:"S_TextFiledWrapper",componentId:"sc-1b5b0x6-0"})(["display:flex;"])},2756:function(e,t,n){"use strict";var i=n(14),c=n(4),o=n(182),s=n(9),a=n(235),r=n(236),l=n(2754),d=n(2757);t.a=function(e){var t=e.isLoading,n=e.comments,u=e.totalCommentsCount,p=e.deps,m=void 0===p?[]:p,b=e.fetchCommentsByPage,j=e.handleDeleteComment,g=e.handleCreateComment,_=e.handleCreateCommentWithImage,h=Object(s.c)(),f=Object(o.a)("translation").t,x=Object(c.useState)(1),O=Object(i.a)(x,2),v=O[0],T=O[1],y=Object(c.useState)(!1),C=Object(i.a)(y,2),S=C[0],I=C[1],w=Object(c.useState)(null),E=Object(i.a)(w,2),A=E[0],D=E[1],P=Object(c.useState)(null),N=Object(i.a)(P,2),k=N[0],R=N[1],L=Object(c.useState)(""),B=Object(i.a)(L,2),M=B[0],z=B[1],U=Object(l.a)(null===n||void 0===n?void 0:n.length),F=Object(l.a)(u),V=Object(c.useRef)();Object(c.useEffect)((function(){return b(1),function(){T(1)}}),m);var W=Object(c.useCallback)((function(e){t||(V.current&&V.current.disconnect(),V.current=ne
1w IntersectionObserver((function(e){n&&(null===n||void 0===n?void 0:n.length)>=u||(U===(null===n||void 0===n?void 0:n.length)&&F===u||e[0].isIntersecting&&(b(v+1),T((function(e){return e+1}))))})),e&&V.current.observe(e))}),[t,n]),H=Object(d.a)(),G=H.CommentAlertDialog,X=H.setCommentAlertDialogMessage,q=H.setIsCommentAlertDialogOpen;function K(e){var t=e.slice(-5);return"***".concat(t)}return{isDeleteCommentModalOpen:S,lastCommentRef:W,handleClickSubmitComment:function(e){g(e)},handleClickSubmitCommentWithImage:function(e){var t=e.content,n=e.selectedImage;_&&_({content:t,selectedImage:n})},openDeleteCommentModal:function(e){D(e),I(!0)},handleCloseDeleteCommentModal:function(){D(null),I(!1)},handleClickDeleteComment:function(){null!==A&&j(A),I(!1)},initPage:function(){T(1)},CommentAlertDialog:G,openCommentAlertDialog:function(e,t,n,i){var c,o="";switch(t){case"DELETE":o=f("str_delete_alert_dialog");break;case"HIDE_COMMENT":o=f("str_6500");break;case"UNHIDE_COMMENT":o=f("str_6501");break;case"BLOCK_USER":o=f("str_6505");break;case"UNBLOCK_USER":o=f("str_6507",{code:K(i),nick:(c=n||"",c.charAt(0)+"*".repeat(c.length-1))})}D(e),R(t),z(i),X(o),q(!0)},handleClickConfirmCommentAlertDialog:function(){if(null!==A)switch(k){case"DELETE":j(A);break;case"HIDE_COMMENT":h(Object(r.c)({type:"COMMENT",id:A}));break;case"UNHIDE_COMMENT":h(Object(r.d)({type:"COMMENT",id:A}));break;case"BLOCK_USER":h(Object(a.a)({distinctId:M}));break;case"UNBLOCK_USER":h(Object(a.d)({distinctId:M}))}D(null),q(!1)},handleClickCancelCommentAlertDialog:function(){D(null),q(!1)}}}},2757:function(e,t,n){"use strict";var i=n(14),c=n(2),o=n(4),s=n(182),a=n(0);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(o.useState)(e),r=Object(i.a)(n,2),l=r[0],d=r[1],u=Object(o.useState)(t),p=Object(i.a)(u,2),m=p[0],b=p[1],j=Object(s.a)("translation"),g=j.t;function _(e){var t=e.onClickConfirm,n=e.onClickCancel;return Object(a.jsx)(a.Fragment,{children:l&&Object(a.jsx)(c.D_DesktopAlertDialog,{contentText:m,btnMode:"tbtn_amount2",tBtn1Text:g("str_ok"),tBtn2Text:g("str_cancel"),onClickTBtn1:null!==t&&void 0!==t?t:function(){return d(!1)},onClickTBtn2:null!==n&&void 0!==n?n:function(){return d(!1)}})})}return{CommentAlertDialog:_,setCommentAlertDialogMessage:b,setIsCommentAlertDialogOpen:d}}},2758:function(e,t,n){"use strict";var i=n(2756);n.d(t,"a",(function(){return i.a}))},2762:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return r}));var i={LIST_A:10,LIST_B:5,LIST_C:10,CARD_GRID:9,FOCUS_IMAGE:5},c={HOME:"HOME",POSTS:"POSTS",SERIES:"SERIES",CATEGORIES:"CATEGORIES"},o={USE_RESOURCE_B00001_UW_TOP_1_UNIQUE_COVER_IMAGE_HERO_001:"USE_RESOURCE_B00001_UW_TOP_1_UNIQUE_COVER_IMAGE_HERO_001",UX_CPS_APPEARANCE_SERIES_TEMPLATE_NAME:"UX_CPS_APPEARANCE_SERIES_TEMPLATE_NAME",UX_CPS_APPEARANCE_POSTS_TEMPLATE_NAME:"UX_CPS_APPEARANCE_POSTS_TEMPLATE_NAME",UX_CPS_USE_POST_PROTECTION:"UX_CPS_USE_POST_PROTECTION",UX_CPS_USE_COMMENT:"UX_CPS_USE_COMMENT",UX_CPS_USE_TAB_ORDERS:"UX_CPS_USE_TAB_ORDERS",UX_CPS_SHOW_HOME_TAB:"UX_CPS_SHOW_HOME_TAB",UX_CPS_HIDE_SERIES_TAB:"UX_CPS_HIDE_SERIES_TAB",UX_CPS_HIDE_POSTS_TAB:"UX_CPS_HIDE_POSTS_TAB",UX_CPS_HIDE_CATEGORIES_TAB:"UX_CPS_HIDE_CATEGORIES_TAB",UX_CPS_OVERRIDE_HOME_NAME_WITH_I18N_SUPPORT:"UX_CPS_OVERRIDE_HOME_NAME_WITH_I18N_SUPPORT",UX_CPS_OVERRIDE_SERIES_NAME_WITH_I18N_SUPPORT:"UX_CPS_OVERRIDE_SERIES_NAME_WITH_I18N_SUPPORT",UX_CPS_OVERRIDE_POSTS_NAME_WITH_I18N_SUPPORT:"UX_CPS_OVERRIDE_POSTS_NAME_WITH_I18N_SUPPORT",UX_CPS_APPEARANCE_SERIES_USE_PUBLISHDATE:"UX_CPS_APPEARANCE_SERIES_USE_PUBLISHDATE",UX_CPS_APPEARANCE_SERIES_USE_PUBLISHER:"UX_CPS_APPEARANCE_SERIES_USE_PUBLISHER",UX_CPS_APPEARANCE_POSTS_USE_PUBLISHDATE:"UX_CPS_APPEARANCE_POSTS_USE_PUBLISHDATE",UX_CPS_APPEARANCE_POSTS_USE_PUBLISHER:"UX_CPS_APPEARANCE_POSTS_USE_PUBLISHER",UX_CPS_B00001_APPEARANCE_POST_LIST_DESIGN_TYPE_IN_BOARD_CATEGORY:"UX_CPS_B00001_APPEARANCE_POST_LIST_DESIGN_TYPE_IN_BOARD_CATEGORY",UX_CPS_APPEARANCE_BOARD_CATEGORY_POSTS_USE_PUBLISHDATE:"UX_CPS_APPEARANCE_BOARD_CATEGORY_POSTS_USE_PUBLISHDATE",UX_CPS_APPEARANCE_BOARD_CATEGORY_POSTS_USE_PUBLISHER:"UX_CPS_APPEARANCE_BOARD_CATEGORY_POSTS_USE_PUBLISHER",UX_CPS_APPEARANCE_BOARD_CATEGORY_POSTS_USE_BODY_TEXT:"UX_CPS_APPEARANCE_BOARD_CATEGORY_POSTS_USE_BODY_TEXT",UX_CPS_APPEARANCE_POST_DETAIL_TITLE_SIZE_OPTION:"UX_CPS_APPEARANCE_POST_DETAIL_TITLE_SIZE_OPTION",UX_CPS_APPEARANCE_POST_DETAIL_HEADER_ITEMS_ALIGNMENT:"UX_CPS_APPEARANCE_POST_DETAIL_HEADER_ITEMS_ALIGNMENT",UX_CPS_POST_DETAIL_BYLINE_PREFIX_WITH_I18N_SUPPORT:"UX_CPS_POST_DETAIL_BYLINE_PREFIX_WITH_I18N_SUPPORT",UX_CPS_POST_DETAIL_BYLINE_SUFFIX_WITH_I18N_SUPPORT:"UX_CPS_POST_DETAIL_BYLINE_SUFFIX_WITH_I18N_SUPPORT",UX_CPS_POST_DETAIL_ACTIVATE_CREDIT_INFO:"UX_CPS_POST_DETAIL_ACTIVATE_CREDIT_INFO",UX_CPS_APPEARANCE_POST_DETAIL_CONTENT_IMAGE_ORIGIN_WIDTH:"UX_CPS_APPEARANCE_POST_DETAIL_CONTENT_IMAGE_ORIGIN_WIDTH",UX_CPS_APPEARANCE_POST_DETAIL_USE_RIGHT_WIDGET:"UX_CPS_APPEARANCE_POST_DETAIL_USE_RIGHT_WIDGET",UX_CPS_APPEARANCE_POST_DETAIL_USE_BOTTOM_WIDGET:"UX_CPS_APPEARANCE_POST_DETAIL_USE_BOTTOM_WIDGET",UX_CPS_APPEARANCE_POST_DETAIL_WIDGET_HEADER_APPEARANCE_OPT:"UX_CPS_APPEARANCE_POST_DETAIL_WIDGET_HEADER_APPEARANCE_OPT",UX_CPS_APPEARANCE_POST_DETAIL_WIDGET_APPEARANCE_OPT:"UX_CPS_APPEARANCE_POST_DETAIL_WIDGET_APPEARANCE_OPT",UX_CPS_APPEARANCE_POST_DETAIL_WIDGET_PAGINATION_BUTTON_APPEARANCE_OPT:"UX_CPS_APPEARANCE_POST_DETAIL_WIDGET_PAGINATION_BUTTON_APPEARANCE_OPT",UX_CPS_APPEARANCE_POST_DETAIL_RIGHT_WIDGET_POST_COUNT:"UX_CPS_APPEARANCE_POST_DETAIL_RIGHT_WIDGET_POST_COUNT",UX_CPS_APPEARANCE_POST_DETAIL_BOTTOM_WIDGET_POST_COUNT:"UX_CPS_APPEARANCE_POST_DETAIL_BOTTOM_WIDGET_POST_COUNT",UX_CPS_APPEARANCE_POST_DETAIL_RIGHT_WIDGET_SORT_BY:"UX_CPS_APPEARANCE_POST_DETAIL_RIGHT_WIDGET_SORT_BY",UX_CPS_APPEARANCE_POST_DETAIL_BOTTOM_WIDGET_SORT_BY:"UX_CPS_APPEARANCE_POST_DETAIL_BOTTOM_WIDGET_SORT_BY",UX_CPS_POST_DETAIL_RIGHT_WIDGET_NAME_WITH_I18N_SUPPORT:"UX_CPS_POST_DETAIL_RIGHT_WIDGET_NAME_WITH_I18N_SUPPORT",UX_CPS_POST_DETAIL_BOTTOM_WIDGET_NAME_WITH_I18N_SUPPORT:"UX_CPS_POST_DETAIL_BOTTOM_WIDGET_NAME_WITH_I18N_SUPPORT",UX_CPS_POST_DETAIL_BOTTOM_WIDGET_USE_STICKY_MODE:"UX_CPS_POST_DETAIL_BOTTOM_WIDGET_USE_STICKY_MODE",UX_CPS_POST_DETAIL_SHARE_BUTTONS_CONFIG:"UX_CPS_POST_DETAIL_SHARE_BUTTONS_CONFIG"},s={HOME:"HOME",CONTENTSLIST_DETAIL:"CONTENTSLIST_DETAIL",SERIESES:"SERIESES",POSTS:"POSTS"},a={COPY_LINK:{iconName:"ic_links"},X:{iconName:"ic_social_x"},LINE:{iconName:"ic_social_line"},FACEBOOK:{iconName:"ic_social_meta"}},r={COPY_LINK:"str_share_post_copy_link",X:"str_sns_platform_x",LINE:"str_sns_platform_line",FACEBOOK:"str_sns_platform_facebook"}},2768:function(e,t,n){"use strict";var i=n(14),c=n(2),o=n(4),s=n(182),a=n(0);t.a=function(){var e=Object(s.a)("translation").t,t=Object(o.useState)(!1),n=Object(i.a)(t,2),r=n[0],l=n[1],d=Object(o.useRef)(),u=function(){l(!1),d.current&&d.current(!0)},p=function(){l(!1),d.current&&d.current(!1)};return{openDialog:Object(o.useCallback)((function(){return new Promise((function(e){d.current=e,l(!0)}))}),[]),ConfirmDialog:function(t){var n=t.iconMode,i=void 0===n?"none":n,o=t.titleText,s=t.contentText,l=t.btnMode,d=void 0===l?"tbtn_amount1":l;return Object(a.jsx)(a.Fragment,{children:r&&Object(a.jsx)(c.D_DesktopAlertDialog,{iconMode:i,titleText:o,contentText:s,btnMode:d,tBtn1Text:e("str_confirm"),onClickTBtn1:u,tBtn2Text:e("str_cancel"),onClickTBtn2:p})})}}}},2769:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(5),c=Object(i.css)(["-khtml-user-drag:none;-khtml-user-select:none;-moz-user-drag:none;-moz-user-select:-moz-none;
1-o-user-drag:none;-o-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;img{-khtml-user-drag:none;-khtml-user-select:none;-moz-user-drag:none;-moz-user-select:-moz-none;-o-user-drag:none;-o-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;}"])},2822:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Pb}));var i=n(9),c=n(16),o=n(39),s=n(47),a=n(19),r=n(147),l=n(36),d=n(606),u=n(13),p=n(403),m=n(592),b=n(4),j=n.n(b),g=n(37),_=n(115),h=n(10),f=n(258),x="".concat(u.o,"/home"),O=("".concat(u.o,"/progress"),"".concat(u.o,"/my-class")),v="".concat(O,"/ongoing"),T="".concat(O,"/purchased"),y="".concat(u.o,"/bookmarks"),C="".concat(u.o,"/classes/:classId"),S="".concat(u.o,"/classes/:classId/curriculums"),I="".concat(u.o,"/classes/:classId/information"),w="".concat(u.o,"/classes/:classId/reviews"),E="".concat(u.o,"/classes/:classId/comments"),A="".concat(u.o,"/classes/:classId/notices"),D="".concat(u.o,"/classes/:classId/notices-for-student"),P="".concat(u.o,"/classes/:classId/sessions/:sessionId"),N="".concat(u.o,"/contentslist/:sectionId"),k="".concat(u.o,"/reviews"),R="".concat(k,"/:id"),L="".concat(k,"/my-review"),B="".concat(u.o,"/class/my-class"),M=("".concat(B,"/ongoing"),"".concat(B,"/purchased"),"".concat(u.o,"/class/bookmarks"),n(182));function z(e){var t,n,c,o,s,a,l,d,u,p,m,b,j,g,_=Object(M.a)("translation").t,h=Object(i.d)(r.f),x=(null===h||void 0===h?void 0:h[f.g.UX_VODS_OVERRIDE_HOME_NAME_WITH_I18N_SUPPORT])||_("str_papp_vod_class_home"),O=(null===h||void 0===h?void 0:h[f.g.UX_VODS_OVERRIDE_MY_CLASS_NAME_WITH_I18N_SUPPORT])||_("str_papp_class_myclass"),v=(null===h||void 0===h?void 0:h[f.g.UX_VODS_OVERRIDE_BOOKMARKS_NAME_WITH_I18N_SUPPORT])||_("str_papp_vod_class_bookmarklist"),T=(null===h||void 0===h?void 0:h[f.g.UX_VODS_OVERRIDE_REVIEWS_NAME_WITH_I18N_SUPPORT])||_("str_classes_review"),y=null===(t=null===h||void 0===h?void 0:h[f.g.UX_VODS_USE_REVIEW_RATING])||void 0===t||t,C=null!==(n=null===h||void 0===h?void 0:h[f.g.UX_VODS_USE_REVIEW])&&void 0!==n&&n,S=null!==(c=null===h||void 0===h?void 0:h[f.g.UX_VODS_HIDE_CLASSCOMMENT])&&void 0!==c&&c,I=null!==(o=null===h||void 0===h?void 0:h[f.g.UX_VODS_USE_CLASS_NOTICE])&&void 0!==o&&o,w=null!==(s=null===h||void 0===h?void 0:h[f.g.UX_VODS_USE_CLASS_STUDENTS_ONLY_NOTICE])&&void 0!==s&&s,E={reviews:C,comments:!S,notices:I,"notices-for-student":w},A=(null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_TEMPLATE_NAME])||"LIST_A",D=null!==(a=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_LIST_PRICE])&&void 0!==a?a:[],P=null!==(l=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_PRICE])&&void 0!==l?l:"HIDE_PRICE",N=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_LIST_MONTHLY_PRICE],k=null!==(d=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_MONTHLY_PRICE])&&void 0!==d?d:2,R=!e||new Map(null===h||void 0===h?void 0:h[f.g.UX_VODS_HIDE_APPEARANCE_CLASSLIST_LIST_STARRATING]).get(e),L=!e||new Map(null===h||void 0===h?void 0:h[f.g.UX_VODS_HIDE_APPEARANCE_CLASSLIST_LIST_STARRATING_NUMBER]).get(e),B=!!e&&new Map(null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_LIST_STARRATING_BELOW_4]).get(e),z=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_STARRATING],U=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_STARRATING_BELOW_4],F=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSLIST_STARRATING_NUMBER],V=null!==(u=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==u?u:"BASIC",W=null!==(p=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSINFO_PRICE])&&void 0!==p?p:"HIDE_PRICE",H=Number(null!==(m=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSINFO_MONTHLY_PRICE])&&void 0!==m?m:2),G=null===(b=null===h||void 0===h?void 0:h[f.g.UX_VODS_HIDE_APPEARANCE_CLASSINFO_STARRATING])||void 0===b||b,X=null===(j=null===h||void 0===h?void 0:h[f.g.UX_VODS_HIDE_APPEARANCE_CLASSINFO_STARRATING_NUMBER])||void 0===j||j,q=null!==(g=null===h||void 0===h?void 0:h[f.g.UX_VODS_APPEARANCE_CLASSINFO_STARRATING_BELOW_4])&&void 0!==g&&g;return{COMMON:{homeTabTitle:x,myClassTabTitle:O,bookmarksTabTitle:v,reviewsTabTitle:T,isStarRatingActive:y,isReviewTabActive:C,isHideClassComment:S,isClassNoticeActive:I,isClassNoticeForStudentActive:w,tabActiveState:E},CLASSLIST:{template:A,selectedClasslistPriceAppearance:D,totalClasslistPriceAppearance:P,selectedClasslistInstallmentsMonth:N,totalClasslistInstallmentsMonth:k,isHideReviewScore:R,isHideReviewAmount:L,isHideReviewScoreBelow4:B,reviewScoreStandard:B?4:1,isHideAllClassReviewScore:z,isHideAllClassReviewScoreBelow4:U,isHideAllClassReviewAmount:F},CLASSDETAIL:{template:V},CLASSINFO:{priceAppearance:W,installmentsMonth:H,isHideReviewScore:G,isHideReviewAmount:X,isHideReviewScoreBelow4:q,reviewScoreStandard:q?4:1}}}function U(){var e=Object(c.k)(),t=Object(c.m)().channelCode,n=e.location.pathname,i=Object(_.e)().userEntrywayForUse,o=z().COMMON,s=o.homeTabTitle,a=o.myClassTabTitle,r=o.bookmarksTabTitle,l=o.reviewsTabTitle,d=o.isReviewTabActive,u=Object(h.l)(x,{channelCode:t}),p=Object(h.l)(O,{channelCode:t}),m=Object(h.l)(y,{channelCode:t}),j=Object(h.l)(k,{channelCode:t}),g=Object(h.l)(L,{channelCode:t}),v=[f.j.HOME,f.j.MY_CLASS,f.j.BOOKMARKS,f.j.REVIEWS];return{tabs:Object(b.useMemo)((function(){var t={HOME:{title:s,isActive:u===n,onClick:function(){return e.push(u)}},MY_CLASS:{title:a,isActive:n.includes(p),onClick:i((function(){return e.push(p)}))},BOOKMARKS:{title:r,isActive:n.includes(m),onClick:i((function(){return e.push(m)}))},REVIEWS:d?{title:l,isActive:n===j||n===g,onClick:function(){return e.push(j)}}:null};return v.map((function(e){return t[e]}
1)).filter(Boolean)}),[d]),reviewsTabTitle:l,bookmarksTabTitle:r,isReviewTabActive:d}}var F=n(2),V=n(607),W=n(15),H=n(35),G=n(400),X=n(40),q=n(63),K=n(211),Y=n(5),Z=n(0);var Q=Y.default.div.withConfig({displayName:"S_ChipList",componentId:"sc-144eg24-0"})(["align-items:center;display:inline-flex;flex-wrap:wrap;gap:",";width:100%;"],(function(e){return e.theme.spacing.spacingB})),$=function(e){var t=e.labels;return Object(Z.jsx)(Q,{children:t.map((function(e){var t=e.id,n=e.name;return Object(Z.jsx)(F.D_Chip,{displayType:"label",text:n},t)}))})},J=n(14),ee=n(33),te=n(122),ne=n(114);var ie=function(e){var t=e.error,n=Object(M.a)("translation").t,o=Object(i.c)(),s=Object(c.k)(),a=Object(c.n)(u.o).url,r=Object(c.m)().classId,l=Object(i.d)(ee.c),d=Object(i.d)(ee.a),p=null!==l&&void 0!==l&&l.isGlobal?(null===d||void 0===d?void 0:d.pointCurrencySuite.pointCurrencyNameGlobal)||"Point":(null===d||void 0===d?void 0:d.pointCurrencySuite.pointCurrencyName)||"Point",m=t.type,j=t.code,_=t.status,f=Object(b.useState)(!0),x=Object(J.a)(f,2),O=x[0],v=x[1],T=h.f.getChannelCode();function y(){s.push(a),o(Object(X.eb)())}if("CORE-00069"===(null===t||void 0===t?void 0:t.code))return Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_3512",{targetModel:n("str_papp_vod_class_class")}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:function(){o(Object(ne.a)()),r&&o(Object(X.s)({seriesId:r}))}});if("CORE-00068"===(null===t||void 0===t?void 0:t.code))return Object(Z.jsx)(F.D_DesktopAlertDialog,{titleText:n("str_inapppoint_purchase_product_dialog_title",{inappPointName:p}),contentText:n("str_inapppoint_purchase_product_dialog_content",{inappPointName:p}),btnMode:"tbtn_amount2",tBtn1Text:n("str_inapppoint_purchase_product_dialog_btn"),onClickTBtn1:function(){s.push(Object(c.i)(u.tb,{channelCode:T}),{prevPath:"pApp"})},tBtn2Text:n("str_cancel"),onClickTBtn2:function(){return o(Object(ne.a)())}});switch(m){case"".concat(X.r,"_FAILED"):return 403===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2572",{errCode:j}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:y}):404===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2571",{errCode:j}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:y}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(X.Y,"_FAILED"):return 403===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2572",{errCode:j}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:y}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(X.T.type,"_FAILED"):return 403===_?Object(Z.jsx)(Z.Fragment,{children:O&&Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_3016"),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:function(){v(!1)}})}):404===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2573"),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:function(){s.push("".concat(a,"/classes/").concat(r)),o(Object(X.eb)())}}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(X.k.type,"_FAILED"):return 404===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2153"),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:function(){o(Object(X.db)())}}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(X.f,"_FAILED"):return 404===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2451",{errCode:j}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:y}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(X.H,"_FAILED"):case"".concat(X.M,"_FAILED"):return Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(X.a,"_FAILED"):case"".concat(X.l,"_FAILED"):return 404===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_2571",{errCode:j}),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:y}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});case"".concat(te.a,"_FAILED"):return 400===_?Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:n("str_err_3360"),btnMode:"tbtn_amount1",tBtn1Text:n("str_confirm"),onClickTBtn1:y}):Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y});default:return Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTP_1",content1:Object(Z.jsx)(g.n,{statusCode:_,errorCode:j,onClickConfirmButton:y})})}};Y.default.div.withConfig({displayName:"S_SeeMoreText",componentId:"sc-usuy9v-0"})(["margin-top:12px;white-space:pre-wrap;",";"],(function(e){return e.isOpen?ce:oe}));
1var ce=Object(Y.css)(["height:auto;"]),oe=Object(Y.css)(["-webkit-box-orient:vertical;-webkit-line-clamp:",";display:-webkit-box;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.lineLimit})),se=(Y.default.div.withConfig({displayName:"S_CaptionWrapper",componentId:"sc-usuy9v-1"})(["cursor:pointer;margin-top:12px;"]),n(415));Object(Y.default)(se.b).withConfig({displayName:"S_SeriesDetailModal",componentId:"sc-2yy2rh-0"})(["background-color:",";border-radius:0.5rem;border-width:1px;box-shadow:0 0 8px 0 rgba(0,0,0,0.5);display:flex;flex-direction:column;max-height:calc(100% - 96px);width:960px;"],(function(e){return e.theme.ui_cpnt_modal_base}));var ae=Y.default.div.withConfig({displayName:"S_TabWrapper",componentId:"sc-arwqus-0"})(["align-items:center;background-color:",";cursor:pointer;display:flex;min-height:56px;padding-left:",";padding-right:",";"],(function(e){return e.theme.ui_cpnt_userdesktopsidetab_base_area}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingD})),re=function(e){var t=e.itemArray;return Object(Z.jsx)(Z.Fragment,{children:t.map((function(e,t){return Object(Z.jsx)(ae,{onClick:function(){return function(e){(null===e||void 0===e?void 0:e.onClick)&&e.onClick()}(e)},children:Object(Z.jsx)(F.D_TextLabel,{text:e.title,styleTheme:"headingBold",colorTheme:e.isActive?"sysTextPrimary":"sysTextSecondary",wordBreak:"break_all"})},t)}))})};var le=function(e){var t,n=e.classId,o=Object(M.a)("translation").t,s=Object(i.c)(),l=Object(c.k)(),d=Object(c.l)(),u=Object(i.d)(a.c),p=Object(i.d)(r.c),m=Object(i.d)(G.d),b=(null===u||void 0===u?void 0:u.channelCode)||"",j=null===p||void 0===p?void 0:p.config,g=!(null===j||void 0===j||!j[f.g.UX_VODS_USE_CLASS_NOTICE]),_=!(null===j||void 0===j||!j[f.g.UX_VODS_USE_CLASS_STUDENTS_ONLY_NOTICE]),x=null!==(t=null===j||void 0===j?void 0:j[f.g.UX_VODS_USE_REVIEW])&&void 0!==t&&t,O=!(null===j||void 0===j||!j[f.g.UX_VODS_HIDE_CLASSCOMMENT]),v=[{title:(null===j||void 0===j?void 0:j[f.g.UX_VODS_CLASS_OVERRIDE_TAB_01_NAME_WITH_I18N_SUPPORT])||o("str_p_app_c00007classdetail_intro"),isActive:d.pathname===Object(h.l)(I,{channelCode:b,classId:n}),onClick:function(){s(Object(X.d)()),l.push(Object(h.l)(I,{channelCode:b,classId:n}))}},{title:(null===j||void 0===j?void 0:j[f.g.UX_VODS_CLASS_OVERRIDE_TAB_02_NAME_WITH_I18N_SUPPORT])||o("str_p_app_c00007classdetail_curriclum"),isActive:d.pathname===Object(h.l)(S,{channelCode:b,classId:n}),onClick:function(){l.push(Object(h.l)(S,{channelCode:b,classId:n}))}}];return x&&v.push({title:(null===j||void 0===j?void 0:j[f.g.UX_VODS_CLASS_OVERRIDE_TAB_06_NAME_WITH_I18N_SUPPORT])||o("str_key_user_scene_c00007classreviews_section_sidetab_title"),isActive:d.pathname===Object(h.l)(w,{channelCode:b,classId:n}),onClick:function(){l.push(Object(h.l)(w,{channelCode:b,classId:n}))}}),O||v.push({title:(null===j||void 0===j?void 0:j[f.g.UX_VODS_CLASS_OVERRIDE_TAB_03_NAME_WITH_I18N_SUPPORT])||o("str_p_app_c00007classdetail_story"),isActive:d.pathname===Object(h.l)(E,{channelCode:b,classId:n}),onClick:function(){l.push(Object(h.l)(E,{channelCode:b,classId:n}))}}),g&&v.push({title:(null===j||void 0===j?void 0:j[f.g.UX_VODS_CLASS_OVERRIDE_TAB_04_NAME_WITH_I18N_SUPPORT])||o("str_key_user_scene_c00007classnotices_section_sidetab_title"),isActive:d.pathname===Object(h.l)(A,{channelCode:b,classId:n}),onClick:function(){l.push(Object(h.l)(A,{channelCode:b,classId:n}))}}),!_||!m||null!==m&&void 0!==m&&m.hasContentGroupLock||v.push({title:(null===j||void 0===j?void 0:j[f.g.UX_VODS_CLASS_OVERRIDE_TAB_05_NAME_WITH_I18N_SUPPORT])||o("str_key_user_scene_c00007classnoticesforstudent_section_sidetab_title"),isActive:d.pathname===Object(h.l)(D,{channelCode:b,classId:n}),onClick:function(){l.push(Object(h.l)(D,{channelCode:b,classId:n}))}}),Object(Z.jsx)(re,{itemArray:v})};var de=function(e){var t=e.classId;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(le,{classId:t})]})};var ue=function(){var e=U().tabs;return Object(Z.jsx)(F.D_UserDesktopTabBar,{itemArray:e})};Y.default.div.withConfig({displayName:"S_UnpublishedImageView",componentId:"sc-9cld2z-0"}
1)(["height:auto;min-width:130px;position:relative;top:0;width:100%;"]),Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-9cld2z-1"})(["height:","px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"],(function(e){return e.size}));var pe=n(87),me=n(45),be=j.a.forwardRef((function(e,t){var n=e.displayType,i=void 0===n?"none":n,c=e.contentDisplayType,o=void 0===c?"normal":c,s=e.tBtn1Text,a=e.content,r=e.createdAt,l=e.mediaSrc,d=e.avatarUrl,u=e.nickname,p=e.nicknameBadgeMode,m=void 0===p?"none":p,j=e.distinctId,_=e.contextMenuItemArray,h=e.onClickTBtn1,f=e.onClickContextMenuItem,x=Object(M.a)("translation").t,O=Object(b.useRef)(null),v=Object(g.N)(),T=Object(b.useState)(!1),y=Object(J.a)(T,2),C=y[0],S=y[1],I=Object(b.useState)(!1),w=Object(J.a)(I,2),E=w[0],A=w[1];function D(e){e.stopPropagation(),S(!C)}Object(b.useEffect)((function(){S(!1)}),[v,location.pathname]),Object(b.useEffect)((function(){function e(){S(!1)}return C&&window.addEventListener("wheel",e),function(){window.removeEventListener("wheel",e)}}),[C]);var P=function(e){f&&f(e),S(!1)},N=Object(Z.jsx)(g.D,{targetRef:O,placement:"bottom-end",isOpen:C,onClickOutside:function(){S(!1)},onClick:D,children:Object(Z.jsx)(F.D_ContextMenu,{children:null===_||void 0===_?void 0:_.map((function(e){return Object(Z.jsx)(F.D_ContextMenuItem,{option:e,onClick:P},e.value)}))})});return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(g.E,{children:[Object(Z.jsxs)(je,{ref:t,children:[Object(Z.jsx)(F.ImageView,{src:"block"===o?W.A:d,shapeType:"circular",width:40,height:40,borderMode:"use",scaleType:"cover"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)(ge,{children:[Object(Z.jsxs)(_e,{children:[Object(Z.jsxs)(he,{children:[Object(Z.jsx)(F.D_TextLabel,{text:"block"===o&&j?"*".repeat(3)+j.split("-")[1]:u,styleTheme:"caption1Regular",colorTheme:"block"===o?"sysTextSecondary":"sysTextPrimary",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),"use"===m&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.Icon,{size:16,colorKey:"ui_cpnt_icon_usr_brandprimary",fillType:"fill",iconName:"ic_verified"})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:"\xb7 ".concat(me.a.tz(r).fromNow()),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]}),"tBtn1"===i&&Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(fe,{onClick:h,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]})}),"moreBtn"===i&&Object(Z.jsx)("div",{ref:O,children:Object(Z.jsx)(F.D_IconButton,{baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconName:"ic_more",iconColorKey:"ui_cpnt_icon_sys_grey_02",onClick:D})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"auto",paddingLeft:"spacing_c",paddingRight:"spacing_c",paddingTop:"spacing_b",paddingBottom:"spacing_b",shapeType:"round",radius:8,backgroundColorTheme:"base2",overrideCSS:"normal"===o?void 0:{paddingTop:"9px",paddingBottom:"9px"},children:[Object(Z.jsx)(F.D_TextLabel,{text:"block"===o?x("str_6563"):"hidden"===o?x("str_6562"):a,styleTheme:"normal"===o?"body2Regular":"caption1Regular",colorTheme:"normal"===o?"sysTextPrimary":"sysTextTertiary",wordBreak:"break_all",textAlign:"normal"===o?"left":"center"}),"normal"===o&&l&&Object(Z.jsx)(xe,{onClick:function(){return A(!0)},children:Object(Z.jsx)(F.ImageView,{src:l,width:240,height:"responsive",radius:8,borderMode:"use"})})]})]})]}),N]}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),E&&l&&Object(Z.jsx)(Z.Fragment,{children:Object(pe.createPortal)(Object(Z.jsxs)(Oe,{onClick:function(){return A(!1)},children:[Object(Z.jsx)(ve,{}),Object(Z.jsx)(Te,{children:Object(Z.jsx)(F.ImageView,{src:l,shapeType:"rectangle"})})]}),document.getElementById("root"))})]})})),je=Y.default.div.withConfig({displayName:"S_Comment",componentId:"sc-p5wcmp-0"})(["display:flex;text-align:left;"]),ge=Y.default.div.withConfig({displayName:"S_CommentColumn",componentId:"sc-p5wcmp-1"}
1)(["height:100%;position:relative;width:100%;"]),_e=Y.default.div.withConfig({displayName:"S_InfoContents",componentId:"sc-p5wcmp-2"})(["align-items:center;display:flex;height:100%;justify-content:space-between;position:relative;"]),he=Y.default.div.withConfig({displayName:"S_InfoBox",componentId:"sc-p5wcmp-3"})(["align-items:center;display:flex;height:100%;position:relative;"]),fe=Y.default.div.withConfig({displayName:"S_ButtonWrapper",componentId:"sc-p5wcmp-4"})(["cursor:pointer;display:flex;text-align:right;"]),xe=Y.default.div.withConfig({displayName:"S_ImageBox",componentId:"sc-p5wcmp-5"})(["cursor:pointer;margin-bottom:",";margin-top:",";"],(function(e){return e.theme.spacing.spacingA}),(function(e){return e.theme.spacing.spacingC})),Oe=Y.default.div.withConfig({displayName:"S_FullScreenImagePortalWrapper",componentId:"sc-p5wcmp-6"})(["align-items:center;display:flex;height:100vh;justify-content:center;left:0;position:absolute;top:0;width:100vw;"]),ve=Y.default.div.withConfig({displayName:"S_Dimmed",componentId:"sc-p5wcmp-7"})(["background-color:",";height:100vh;overflow:hidden;position:absolute;width:100vw;z-index:300;"],(function(e){return e.theme.ui_contents_dimmed})),Te=Y.default.div.withConfig({displayName:"S_FullScreenImageBox",componentId:"sc-p5wcmp-8"})(["box-sizing:border-box;max-height:100vh;position:absolute;z-index:301;& > div{img{box-sizing:border-box;max-height:100vh;max-width:100vw;padding:",";}}"],(function(e){return e.theme.spacing.spacingE}));be.displayName="CommentListItem";var ye=be;var Ce=Y.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-1sci698-0"})(["flex:1;"]),Se=Y.default.div.withConfig({displayName:"S_LeftIconWrapper",componentId:"sc-1sci698-1"})(["padding-top:2px;"]),Ie=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-1sci698-2"})(["align-items:center;display:flex;"]),we=Y.default.div.withConfig({displayName:"S_BottomRow",componentId:"sc-1sci698-3"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),Ee=Y.default.div.withConfig({displayName:"S_TopRow",componentId:"sc-1sci698-4"})(["align-items:center;display:flex;justify-content:space-between;"]),Ae=function(e){var t=e.title,n=e.caption1Text,i=e.iconName,c=e.isViewCompleted,o=e.isLocked,s=e.hasEnrolled,a=e.isLatestSeriesConsumeRecords,r=e.isPreview,l=e.hasAttachments,d=e.onClick,u=Object(M.a)("translation").t,p=Object(_.e)().userEntrywayForUse,m=h.b.isGuest();return Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"auto",backgroundColorTheme:"transparent",paddingTop:"spacing_c",paddingRight:"none",paddingBottom:"spacing_c",paddingLeft:"none",onClick:r?function(){return d(r)}:p((function(){return d(r)}),"GUEST_OPEN_WHEN_PUBLIC_OPEN"),overrideCSS:{display:"flex"},children:[Object(Z.jsx)(Se,{children:Object(Z.jsx)(F.Icon,{size:20,iconName:i})}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsxs)(Ce,{children:[Object(Z.jsxs)(Ee,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,ellipsisMode:"use",lineLimit:1,styleTheme:"body2Regular",wordBreak:"break_all"}),Object(Z.jsxs)(Ie,{children:[!r&&o&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Icon,{size:16,colorKey:"ui_cpnt_icon_sys_grey_03",iconName:"ic_lock"})]}),!m&&!o&&s&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Icon,{size:20,fillType:"fill",colorKey:c?"ui_cpnt_icon_sys_success_01":"ui_cpnt_icon_sys_grey_03",iconName:"ic_downloaded"})]})]})]}),(n||a)&&Object(Z.jsxs)(we,{children:[n&&Object(Z.jsx)(F.D_TextLabel,{text:n,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),l&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Icon,{iconName:"ic_clip",size:16,colorKey:"ui_cpnt_icon_sys_grey_02"})]}),r&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_Chip,{displayType:"information",text:u("str_papp_vod_class_preview"),overrideTextColorKey:"ui_cpnt_button_fill_base_default",overrideBackgroun
1dColorKey:"ui_cpnt_textfield_icon_01"})]}),a&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:u("str_3156"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]})]})})};var De=Y.default.div.withConfig({displayName:"S_Wrapper",componentId:"sc-1c7x3r3-0"})(["background-color:",";border:1px solid transparent;border-radius:16px;height:100%;padding:",";"],(function(e){return e.theme.ui_cpnt_sheet_base}),(function(e){var t=e.theme;return"".concat(t.spacing.spacingB," ").concat(t.spacing.spacingE)})),Pe=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-1c7x3r3-1"})(["align-items:center;display:flex;justify-content:space-between;"]),Ne=Y.default.div.withConfig({displayName:"S_IconButtonWrapper",componentId:"sc-1c7x3r3-2"})(["display:flex;justify-content:center;padding-left:",";transform:",";transition:all 0.3s;width:fit-content;;"],(function(e){var t=e.theme;return"0 ".concat(t.spacing.spacingD)}),(function(e){return e.openContent?0:"rotate(180deg)"})),ke=Y.default.div.withConfig({displayName:"S_ChildrenWrapper",componentId:"sc-1c7x3r3-3"})(["height:auto;max-height:",";overflow:",";transition:all 0.3s;"],(function(e){return e.openContent?"auto":0}),(function(e){return e.openContent?"hidden":"auto"})),Re=function(e){var t=e.title,n=e.onRightButtonClick,i=e.children,c=e.isOpen,o=Object(b.useState)(!0),s=Object(J.a)(o,2),a=s[0],r=s[1];return Object(b.useEffect)((function(){r(c)}),[c]),Object(Z.jsxs)(De,{children:[Object(Z.jsx)(F.D_ContentSheet,{width:"100%",height:"56px",backgroundColorTheme:"transparent",paddingTop:"none",paddingRight:"none",paddingBottom:"none",paddingLeft:"none",onClick:function(){r((function(e){return!e}))},overrideCSS:{display:"flex",justifyContent:"center",flexDirection:"column"},children:Object(Z.jsxs)(Pe,{children:[Object(Z.jsx)(F.M_TextLabel,{text:t,styleTheme:"headingBold",ellipsisMode:"use",lineLimit:1}),Object(Z.jsx)(Ne,{openContent:a,children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_up",onClick:function(e){e.stopPropagation(),r((function(e){return!e})),n&&n()}})})]})}),Object(Z.jsx)(ke,{openContent:a,children:i})]})},Le=n(2757),Be=n(2754),Me=n(235),ze=n(236);var Ue=function(e){var t=e.isLoading,n=e.comments,c=e.totalCommentsCount,o=e.deps,s=void 0===o?[]:o,a=e.fetchCommentsByPage,r=e.handleDeleteComment,l=e.handleCreateComment,d=e.handleCreateCommentWithImage,u=Object(i.c)(),p=Object(M.a)("translation").t,m=Object(b.useState)(1),j=Object(J.a)(m,2),g=j[0],_=j[1],h=Object(b.useState)(null),f=Object(J.a)(h,2),x=f[0],O=f[1],v=Object(b.useState)(null),T=Object(J.a)(v,2),y=T[0],C=T[1],S=Object(b.useState)(""),I=Object(J.a)(S,2),w=I[0],E=I[1],A=Object(Be.a)(null===n||void 0===n?void 0:n.length),D=Object(Be.a)(c),P=Object(b.useRef)();Object(b.useEffect)((function(){if(a)return a(1),function(){_(1)}}),s);var N=Object(b.useCallback)((function(e){t||(P.current&&P.current.disconnect(),P.current=new IntersectionObserver((function(e){n&&(null===n||void 0===n?void 0:n.length)>=c||(A===(null===n||void 0===n?void 0:n.length)&&D===c||e[0].isIntersecting&&a&&(a(g+1),_((function(e){return e+1}))))})),e&&P.current.observe(e))}),[t,n]),k=Object(Le.a)(),R=k.CommentAlertDialog,L=k.setCommentAlertDialogMessage,B=k.setIsCommentAlertDialogOpen;function z(e){var t=e.slice(-5);return"***".concat(t)}return{lastCommentRef:N,handleClickSubmitComment:function(e){l&&l(e)},handleClickSubmitCommentWithImage:function(e){var t=e.content,n=e.selectedImage;d&&d({content:t,selectedImage:n})},resetPage:function(){_(1)},CommentAlertDialog:R,openCommentAlertDialog:function(e,t,n,i){var c,o="";switch(t){case"DELETE":o=p("str_delete_alert_dialog");break;case"HIDE_COMMENT":o=p("str_6559");break;case"UNHIDE_COMMENT":o=p("str_6560");break;case"BLOCK_USER":o=p("str_6561");break;case"UNBLOCK_USER":o=p("str_6507",{code:z(i),nick:(c=n||"",c.charAt(0)+"*".repeat(c.length-1))})}O(e),C(t),E(i),L(o),B(!0)},handleClickConfirmCommentAlertDialog:function(){if(null!==x)switch(y){case"DELETE":r(x);break;case"HIDE_COMMENT":u(Object(ze.c)({type:"COMMENT",id:x}));break;case"UNHIDE_COMMENT":u(Object(ze.d)({type:"COMMENT",id:x}));break;case"BLOCK_USER":u(Object(Me.a)({distinctId:w}));break;case"UNBLOCK_USER":u(Object(Me.d)({distinctId:w}))}O(null),B(!1)}
1,handleClickCancelCommentAlertDialog:function(){O(null),B(!1)}}};function Fe(e){var t=e.isLoading,n=e.list,c=e.totalCount,o=e.initialPage,s=e.fetchNextPage,r=Object(b.useMemo)(a.n,[]),l=Object(i.d)(r),d=Object(b.useRef)(o),u=Object(b.useRef)(),p=Object(Be.a)(n.length);Object(b.useEffect)((function(){if(p!==n.length){0===n.length&&l&&s(1)}}),[n]);var m=Object(b.useCallback)((function(e){t||0===n.length||0===c||(u.current&&u.current.disconnect(),u.current=new IntersectionObserver((function(e){n.length>=c||e[0].isIntersecting&&(d.current+=1,s(d.current))})),e&&u.current.observe(e))}),[t,c,n]);return Object(b.useEffect)((function(){d.current=o}),[o]),Object(b.useEffect)((function(){return function(){d.current=1}}),[]),{lastElementRef:m}}function Ve(e){var t=e.isHiddenPost,n=e.isBlockedUser,i=e.isMyPost,c=e.isGuest,o=Object(M.a)("translation").t;return{contextMenuItems:Object(b.useMemo)((function(){var e=[{text:o("str_report"),value:f.l.REPORT},{text:o("str_hide_post"),value:f.l.HIDE},{text:o("str_block_user"),value:f.l.BLOCK}];return t&&(e=[{text:o("str_report"),value:f.l.REPORT},{text:o("str_unhide"),value:f.l.UNHIDE},{text:o("str_block_user"),value:f.l.BLOCK}]),n&&(e=[{text:o("str_report"),value:f.l.REPORT},{text:o("str_unblock_user"),value:f.l.UNBLOCK}]),i&&(e=[{text:o("str_edit"),value:f.f.EDIT},{text:o("str_delete"),value:f.f.DELETE}]),(c||null===c)&&(e=[{text:o("str_report"),value:f.l.REPORT}]),e}),[c,i,n,t])}}var We=n(2755),He=n(589),Ge=n(590),Xe=n(89);function qe(e){var t,n=e.profileDistinctId,o=e.reviewId,s=e.content,r=e.nickname,l=Object(M.a)("translation").t,d=Object(i.c)(),u=Object(c.m)().pAppCode,p=Object(i.d)(a.d),m=Object(i.d)(G.j),b=Object(i.d)(Xe.b),j=Object(i.d)(He.b),g=Object(i.d)(Ge.e),x=!!j&&Boolean(j[n]),O=!!g&&Boolean(g[o]),v=n===(null===p||void 0===p||null===(t=p.channelProfile)||void 0===t?void 0:t.distinctId),T=null===m||void 0===m?void 0:m.some((function(e){return n===e.distinctId})),y=n===b.distinctId,C=h.b.isGuest(),S=Object(_.a)(),I=S.openDialog,w=S.closeDialog,E=Object(We.a)(),A=E.openReportContentModal;function D(e){var t=e.slice(-5);return"***".concat(t)}return{handleClickUGCMenuButton:function(e){var t,i;switch(e.type){case f.l.REPORT:if(v||T)return void I({contentText:l("str_6535"),btnMode:"tbtn_amount1",tBtn1Text:l("str_ok"),onClickTBtn1:w});!function(e){A(e,u)}(null!==s&&void 0!==s?s:"");break;case f.l.BLOCK:if(v||T)return void I({contentText:l("str_6537"),btnMode:"tbtn_amount1",tBtn1Text:l("str_ok"),onClickTBtn1:w});i=n,I({contentText:l("str_6504"),btnMode:"tbtn_amount2",tBtn1Text:l("str_confirm"),tBtn2Text:l("str_cancel"),onClickTBtn1:function(){d(Object(Me.a)({distinctId:i})),w()},onClickTBtn2:w});break;case f.l.UNBLOCK:!function(e,t){var n;I({contentText:l("str_6507",{code:D(e),nick:(n=t||"",n.charAt(0)+"*".repeat(n.length-1))}),btnMode:"tbtn_amount2",tBtn1Text:l("str_confirm"),tBtn2Text:l("str_cancel"),onClickTBtn1:function(){d(Object(Me.d)({distinctId:e})),w()},onClickTBtn2:w})}(n,r);break;case f.l.HIDE:if(v||T)return void I({contentText:l("str_6536"),btnMode:"tbtn_amount1",tBtn1Text:l("str_ok"),onClickTBtn1:w});t=o,I({contentText:l("str_6498"),btnMode:"tbtn_amount2",tBtn1Text:l("str_confirm"),tBtn2Text:l("str_cancel"),onClickTBtn1:function(){d(Object(ze.c)({type:"POST",id:t})),w()},onClickTBtn2:w});break;case f.l.UNHIDE:!function(e){I({contentText:l("str_6499"),btnMode:"tbtn_amount2",tBtn1Text:l("str_confirm"),tBtn2Text:l("str_cancel"),onClickTBtn1:function(){d(Object(ze.d)({type:"POST",id:e})),w()},onClickTBtn2:w})}(o);break;default:return I({contentText:"Not supported type",btnMode:"tbtn_amount1",tBtn1Text:l("str_ok"),onClickTBtn1:w})}},ReportContent:E.ReportContent,isBlockedUser:x,isHiddenPost:O,isMyPost:y,isGuest:C}}var Ke=function(e){var t=e.labelId,n=e.serieses,c=e.isLoading,o=e.totalSeriesesCount;return{lastSeriesRef:function(e){var t=e.labelId,n=e.isLoading,c=e.serieses,o=e.totalSeriesesCount,s=e.initialPage,r=e.fetchNextPage,l=Object(b.useMemo)(a.n,[]),d=Object(i.d)(l),u=Object(b.useRef)(s),p=Object(b.useRef)(),m=Object(Be.a)(c.length);Object(b.useEffect)((function(){t||m!==c.length&&0===c.length&&d&&r(1)}),[c,t]),Object(b.useEffect)((function(){t&&(u.current=1,d&&r(1))}),[t]);var j=Object(b.useCallback)((function(e){n||0===c.length||0===o||(p.current&&p.current.disconnect(),p.current=ne
1w IntersectionObserver((function(e){c.length>=o||e[0].isIntersecting&&(u.current+=1,d&&r(u.current))})),e&&p.current.observe(e))}),[n,o,c]);return Object(b.useEffect)((function(){u.current=s}),[s]),Object(b.useEffect)((function(){return function(){u.current=1}}),[]),{lastCommentRef:j}}({labelId:t,isLoading:c,serieses:n,initialPage:e.currentPage,totalSeriesesCount:o,fetchNextPage:e.fetchSeriesesByPage}).lastCommentRef}},Ye=n(17);function Ze(e){var t=e.size,n=e.color,i=void 0===n?"gold":n,c=e.emptyColor,o=void 0===c?"#eff0f3":c,s=e.fillPercentage,a=Math.min(Math.max(s,0),100);return Object(Z.jsxs)("svg",{width:t,height:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[Object(Z.jsx)("path",{fill:o,fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M17.2179754,22.9992 C16.8841872,22.9992 16.5467971,22.9427682 16.2226144,22.8275032 L12.1907418,21.3938952 C12.0670721,21.3482695 11.933797,21.3494702 11.8101273,21.3926945 L7.77705413,22.8275032 C6.85613507,23.1540873 5.82955645,23.0076047 5.03590912,22.4312799 C4.24346247,21.8549551 3.78600463,20.9268319 3.81362019,19.9470797 L3.93128651,15.6690685 C3.93488854,15.5393954 3.89286486,15.4097223 3.81362019,15.3064641 L1.20334895,11.9145523 C0.606612607,11.1389151 0.430113126,10.1183399 0.732683666,9.18661472 C1.03525421,8.25368889 1.77727243,7.53208217 2.71740233,7.25592652 L6.82251612,6.04564436 C6.9473865,6.00842338 7.05784876,5.92797804 7.13109004,5.82111781 L9.55045368,2.2899275 C10.1039657,1.48307273 11.0188813,1.00040068 11.9998342,0.9992 L11.9998342,0.9992 C12.9795865,0.9992 13.8957028,1.48187205 14.4492148,2.2899275 L16.8685784,5.82111781 C16.9430204,5.92917872 17.052282,6.00842338 17.178353,6.04564436 L21.2822662,7.25592652 C22.222396,7.53208217 22.9644143,8.25368889 23.2669848,9.18541405 C23.570756,10.1171392 23.3942566,11.1377144 22.7963195,11.9145523 L20.187249,15.3064641 C20.1068036,15.4097223 20.0659806,15.5381947 20.0695826,15.6690685 L20.1860483,19.9470797 C20.2136639,20.9256313 19.756206,21.8549551 18.96496,22.4312799 C18.4498697,22.8046904 17.8375246,22.9992 17.2179754,22.9992"}),Object(Z.jsx)("path",{fill:i,fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M17.2179754,22.9992 C16.8841872,22.9992 16.5467971,22.9427682 16.2226144,22.8275032 L12.1907418,21.3938952 C12.0670721,21.3482695 11.933797,21.3494702 11.8101273,21.3926945 L7.77705413,22.8275032 C6.85613507,23.1540873 5.82955645,23.0076047 5.03590912,22.4312799 C4.24346247,21.8549551 3.78600463,20.9268319 3.81362019,19.9470797 L3.93128651,15.6690685 C3.93488854,15.5393954 3.89286486,15.4097223 3.81362019,15.3064641 L1.20334895,11.9145523 C0.606612607,11.1389151 0.430113126,10.1183399 0.732683666,9.18661472 C1.03525421,8.25368889 1.77727243,7.53208217 2.71740233,7.25592652 L6.82251612,6.04564436 C6.9473865,6.00842338 7.05784876,5.92797804 7.13109004,5.82111781 L9.55045368,2.2899275 C10.1039657,1.48307273 11.0188813,1.00040068 11.9998342,0.9992 L11.9998342,0.9992 C12.9795865,0.9992 13.8957028,1.48187205 14.4492148,2.2899275 L16.8685784,5.82111781 C16.9430204,5.92917872 17.052282,6.00842338 17.178353,6.04564436 L21.2822662,7.25592652 C22.222396,7.53208217 22.9644143,8.25368889 23.2669848,9.18541405 C23.570756,10.1171392 23.3942566,11.1377144 22.7963195,11.9145523 L20.187249,15.3064641 C20.1068036,15.4097223 20.0659806,15.5381947 20.0695826,15.6690685 L20.1860483,19.9470797 C20.2136639,20.9256313 19.756206,21.8549551 18.96496,22.4312799 C18.4498697,22.8046904 17.8375246,22.9992 17.2179754,22.9992",style:{clipPath:"inset(0 ".concat(100-a,"% 0 0)"),transform:"scale(1.01)",transformOrigin:"center"}})]})}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=Math.pow(10,t);return Math.round(e*n)/n}var $e=Y.default.div.withConfig({displayName:"S_Spacing",componentId:"sc-10qtfjb-0"})(["width:",";"],(function(e){return e.$gap})),Je=function(e){var t=e.value,n=void 0===t?0:t,i=e.step,c=void 0===i?.5:i,o=e.maxValue,s=void 0===o?5:o,a=e.readOnly,r=void 0!==a&&a,l=e.disableDecreasing,d=void 0!==l&&l,u=e.iconSize,p=void 0===u?32:u,m=e.iconColor,j=void 0===m?F.theme.uiColors.ui_cpnt_sheet_base_27:m,g=e.iconBaseColor,_=void 0===g?"#D3D3D6":g,h=e.gap,f=void 0===h?F.theme.spacing.spacingA:h,x=e.onChange,O=Object(b.useState)(n),v=Object(J.a)(O,2),T=v[0],y=v[1],C=Object(b.useState)(!1),S=Object(J.a)(C,2),I=S[0],w=S[1];Object(b.useEffect)((function(){y(n)}),[n]),Object(b.useEffect)((function(){if(!r){var e=function(){w(!1)};return document.addEventListener("mouseup",e),document.addEventListener("touchend",e),function(){document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)}}}),[]);var E=function(e){if(!r){var t=e.currentTarget,n="touches"in e?e.touches[0].clientX:e.clientX,i=t.getBoundingClientRect(),o=i.width,a=n-i.left,l=Math.min(Math.max(a/o,0),1)*s,u=Math.ceil(l/c)*c;if(!(d&&I&&u<T))if(x)x(Qe(u))&&y(Qe(u));else y(Qe(u))}},A=function(e){r||(w(!0),E(e))},D=function(e){r||I&&E(e)},P=function(){r||w(!1)},N=Array.from({length:5},(function(e,t){var n=T/s*5,i=Math.floor(n),o=n-i,a=0;return t<i?a=100:t===i&&o>0&&(a=.5===c?Math.ceil(2*o)/2*100:100*o),Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(Ze,{size:p,color:j,emptyColor:_,fillPercentage:a}),4!==t&&Object(Z.jsx)($e,{$gap:f})]},t)}));return Object(Z.jsx)("div",{className:"rating-container",style:{display:"flex",cursor:r?"default":"pointer",width:"fit-content"},onMouseDown:A,onTouchStart:A,onMouseMove:D,onTouchMove:D,onMouseUp:P,onTouchEnd:P,children:N})},et=j.a.forwardRef((function(e,t){var n=e.isPublished,i=void 0===n||n,c=e.profileImg,o=e.nickname,s=e.updatedAt,a=e.isEdited,r=e.showRating,l=e.score,d=e.content,u=e.isTextOver,p=e.isTextOpen,m=e.contentImgSrcs,j=e.targetClasses,g=e.contentRef,_=e.moreMenuIconRef,h=e.onReadMoreToggle,f=e.onMoreMenuIconClick,x=e.onTargetClassLabelClick,O=e.onContentAreaClick,v=e.popup,T=Object(M.a)("translation").t;return Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"100%",shapeType:"round",radius:16,borderMode:"use",paddingTop:"spacing_f",paddingRight:"spacing_f",paddingBottom:"spacing_f",paddingLeft:"spacing_f",overrideBorderColorKey:"ui_cpnt_list_base_area_transparent",overrideBackgroun
1dColorKey:"ui_cpnt_sheet_base",children:[Object(Z.jsxs)(nt,{ref:t,children:[Object(Z.jsxs)(it,{children:[Object(Z.jsx)(F.ImageView,{scaleType:"cover",shapeType:"circular",width:42,height:42,noImageWidth:42,noImageHeight:42,ratio:"1_1",borderMode:"use",src:c}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"body2Bold"}),Object(Z.jsxs)(tt,{children:[Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),i&&a&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(T("str_edited_review")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),!i&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(T("str_status_private")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]}),Object(Z.jsx)(ct,{children:Object(Z.jsx)("div",{ref:_,onClick:f,children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_more",baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconSize:24,iconColorKey:"ui_cpnt_icon_sys_grey_02"})})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),r&&Object(Z.jsxs)(Z.Fragment,{children:["number"===typeof l&&Object(Z.jsx)(Je,{value:l,readOnly:!0}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]}),Object(Z.jsx)(st,{ref:g,isOpen:p,lineLimit:5,onClick:O,children:Object(Z.jsx)(F.D_TextLabel,{text:d,styleTheme:"body1Regular"})}),u&&Object(Z.jsx)(dt,{onClick:h,children:Object(Z.jsx)(F.D_TextLabel,{text:T(p?"str_78":"str_77"),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})}),m&&(null===m||void 0===m?void 0:m.length)>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(at,{onClick:O,children:null===m||void 0===m?void 0:m.map((function(e){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(F.ImageView,{src:e,radiu
1s:16,width:172,ratio:"1_1",scaleType:"cover",noImageWidth:172,noImageHeight:172,borderMode:"use",shapeType:"round"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]},e)}))})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_TextLabel,{text:T("str_selected_ongoing_class_title"),styleTheme:"body2Bold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(ot,{children:null===j||void 0===j?void 0:j.map((function(e){return Object(Z.jsx)(F.D_Chip,{displayType:"label",text:"".concat(e.targetContent.title).concat(e.targetProgressRate?" \u2022 ".concat(T("str_c00007_ongoing_class_progress")," ").concat(e.targetProgressRate):""),onClickChip:x?function(){return x(e.targetId,e.targetContent.isDeleted||!1)}:void 0},e.targetId)}))}),v]})})),tt=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-1eck1i5-0"})(["align-items:center;display:flex;"]),nt=Y.default.div.withConfig({displayName:"S_SummaryWrapper",componentId:"sc-1eck1i5-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),it=Y.default.div.withConfig({displayName:"S_SummaryLeft",componentId:"sc-1eck1i5-2"})(["align-items:center;display:flex;height:100%;justify-content:flex-start;"]),ct=Y.default.div.withConfig({displayName:"S_SummaryRight",componentId:"sc-1eck1i5-3"})(["align-items:center;display:flex;"]),ot=Y.default.div.withConfig({displayName:"S_ChipWrapper",componentId:"sc-1eck1i5-4"})(["cursor:pointer;display:flex;flex-wrap:wrap;gap:4px;row-gap:8px;"]),st=Y.default.div.withConfig({displayName:"S_TextWrapper",componentId:"sc-1eck1i5-5"})(["cursor:pointer;white-space:pre-wrap;",";"],(function(e){return e.isOpen?rt:lt})),at=Y.default.div.withConfig({displayName:"S_ImageListWrapper",componentId:"sc-1eck1i5-6"})(["cursor:pointer;display:flex;width:100%;"]),rt=Object(Y.css)(["height:auto;"]),lt=Object(Y.css)(["-webkit-box-orient:vertical;-webkit-line-clamp:",";display:-webkit-box;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.lineLimit})),dt=Y.default.div.withConfig({displayName:"S_ReadMoreButton",componentId:"sc-1eck1i5-7"})(["cursor:pointer;"]);et.displayName="ReviewPostCard";var ut=j.a.forwardRef((function(e,t){var n=e.profileImg,i=e.nickname,c=e.updatedAt,o=e.isEdited,s=e.moreMenuIconRef,a=e.onMoreMenuIconClick,r=e.popup,l=Object(M.a)("translation").t;return Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"100%",shapeType:"round",radius:16,borderMode:"use",paddingTop:"spacing_f",paddingRight:"spacing_f",paddingBottom:"spacing_f",paddingLeft:"spacing_f",overrideBorderColorKey:"ui_cpnt_list_base_area_transparent",overrideBackgroundColorKey:"ui_cpnt_sheet_base",children:[Object(Z.jsxs)(mt,{ref:t,children:[Object(Z.jsxs)(bt,{children:[Object(Z.jsx)(F.ImageView,{scaleType:"cover",shapeType:"circular",width:42,he
1ight:42,noImageWidth:42,noImageHeight:42,ratio:"1_1",borderMode:"use",src:n}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:i,styleTheme:"body2Bold"}),Object(Z.jsxs)(pt,{children:[Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),o&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(l("str_edited_review")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]}),Object(Z.jsx)(jt,{children:Object(Z.jsx)("div",{ref:s,onClick:a,children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_more",baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconSize:24,iconColorKey:"ui_cpnt_icon_sys_grey_02"})})})]}),Object(Z.jsxs)(gt,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.Icon,{size:48,iconName:"ic_eye_close",colorKey:"ui_cpnt_icon_sys_grey_02"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_6512"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),r]})]})})),pt=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-nuvzl5-0"})(["align-items:center;display:flex;"]),mt=Y.default.div.withConfig({displayName:"S_SummaryWrapper",componentId:"sc-nuvzl5-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),bt=Y.default.div.withConfig({displayName:"S_SummaryLeft",componentId:"sc-nuvzl5-2"})(["align-items:center;display:flex;height:100%;justify-content:flex-start;"]),jt=Y.default.div.withConfig({displayName:"S_SummaryRight",componentId:"sc-nuvzl5-3"})(["align-items:center;display:flex;"]),gt=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-nuvzl5-4"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]);ut.displayName="HiddenContent";var _t=j.a.forwardRef((function(e,t){var n=e.profileImg,i=e.nickname,c=e.updatedAt,o=e.isEdited,s=e.moreMenuIconRef,a=e.onMoreMenuIconClick,r=e.popup,l=Object(M.a)("translation").t;return Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"100%",shapeType:"round",radius:16,borderMode:"use",paddingTop:"spacing_f",paddingRight:"spacing_f",paddingBottom:"spacing_f",paddingLeft:"spacing_f",overrideBorderColorKey:"ui_cpnt_list_base_area_transparent",overrideBackgroundColorKey:"ui_cpnt_sheet_base",children:[Object(Z.jsxs)(ft,{ref:t,children:[Object(Z.jsxs)(xt,{children:[Object(Z.jsx)(F.ImageView,{scaleType:"cover",shapeType:"circular",width:42,he
1ight:42,noImageWidth:42,noImageHeight:42,ratio:"1_1",borderMode:"use",src:n}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:i,styleTheme:"body2Bold"}),Object(Z.jsxs)(ht,{children:[Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),o&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(l("str_edited_review")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]}),Object(Z.jsx)(Ot,{children:Object(Z.jsx)("div",{ref:s,onClick:a,children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_more",baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconSize:24,iconColorKey:"ui_cpnt_icon_sys_grey_02"})})})]}),Object(Z.jsxs)(vt,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.Icon,{size:48,iconName:"ic_block_user",colorKey:"ui_cpnt_icon_sys_grey_02"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_6515"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),r]})]})})),ht=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-1o9pcpu-0"})(["align-items:center;display:flex;"]),ft=Y.default.div.withConfig({displayName:"S_SummaryWrapper",componentId:"sc-1o9pcpu-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),xt=Y.default.div.withConfig({displayName:"S_SummaryLeft",componentId:"sc-1o9pcpu-2"})(["align-items:center;display:flex;height:100%;justify-content:flex-start;"]),Ot=Y.default.div.withConfig({displayName:"S_SummaryRight",componentId:"sc-1o9pcpu-3"})(["align-items:center;display:flex;"]),vt=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-1o9pcpu-4"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]);_t.displayName="BlockedContent";var Tt=j.a.forwardRef((function(e,t){var n=e.id,i=e.isPublished,c=void 0===i||i,o=e.profileDistinctId,s=e.profileImg,a=e.nickname,r=e.updatedAt,l=e.isEdited,d=e.showRating,u=e.score,p=e.content,m=e.contentImgSrcs,j=e.targetClasses,_=e.onEditClick,h=e.onDeleteClick,f=e.onTargetClassLabelClick,x=e.onContentAreaClick,O=Object(b.useState)(!1),v=Object(J.a)(O,2),T=v[0],y=v[1],C=Object(b.useState)(!1),S=Object(J.a)(C,2),I=S[0],w=S[1],E=Object(b.useState)(!1),A=Object(J.a)(E,2),D=A[0],P=A[1],N=Object(b.useState)(null),k=Object(J.a)(N,2),R=k[0],L=k[1],B=Object(b.useState)(null),M=Object(J.a)(B,2),z=M[0],U=M[1],V=Object(b.useCallback)((function(e){e&&L(e)}),[]),W=Object(b.useCallback)((function(e){e&&U(e)}),[]),H=qe({profileDistinctId:o,reviewId:n,content:p,nickname:a}),G=H.isHiddenPost,X=H.isBlockedUser,q=H.isMyPost,K=H.isGuest,Y=H.ReportContent,Q=H.handleClickUGCMenuButton,$=Ve({isBlockedUser:X,isHiddenPost:G,isMyPost:q,isGuest:K}).contextMenuItems;Object(b.useEffect)((function(){function e(){y(!1)}return T&&(window.addEventListener("wheel",e),window.addEventListener("scroll",e)),function(){window.removeEventListener("wheel",e),window.removeEventListener("scroll",e)}}),[T]),Object(b.useEffect)((function(){z&&P(z.scrollHeight>z.clientHeight||z.scrollWidth>z.clientWidth)}),[z]);var ee=function(e){var t=e;if("DELETE"!==t.value)if("EDIT"!==t.value){var i=t.value;Q({type:i})}else _&&_(n);else h&&h(n)},te=function(e){e.stopPropagation(),y((function(e){return!e}))},ne=Object(Z.jsx)(g.D,{targetRef:{current:R},placement:"bottom-end",isOpen:T,onClick:function(){return y(!1)},onClickOutside:function(){return y(!T)},children:Object(Z.jsx)(F.D_ContextMenu,{children:null===$||void 0===$?void 0:$.map((function(e){return Object(Z.jsx)(F.D_ContextMenuItem,{option:e,onClick:ee},e.value)}))})});return G?Object(Z.jsxs)(g.E,{children:[Object(Z.jsx)(ut,{ref:t,profileImg:s,nickname:a,updatedAt:r,isEdited:l,moreMenuIconRef:V,onMoreMenuIconClick:te,popup:ne}),Y]}):X?Object(Z.jsxs)(g.E,{children:[Object(Z.jsx)(_t,{ref:t,profileImg:s,nickname:"***".concat(o?o.split("-")[1]:""),updatedAt:r,isEdited:l,moreMenuIconRef:V,onMoreMenuIconClick:te,popup:ne}),Y]}):Object(Z.jsxs)(g.E,{children:[Object(Z.jsx)(et,{ref:t,profileImg:s,nickname:a,updatedAt:r,isEdited:l,isPublished:c,showRating:d,score:u,content:p,isTextOver:D,isTextOpen:I,contentImgSrcs:m,targetClasses:j,contentRef:W,moreMenuIconRef:V,onReadMoreToggle:function(){return w((function(e){return!e}))},onMoreMenuIconClick:te,onTargetClassLabelClick:f,onContentAreaClick:function(){return x(n)},popup:ne}),Y]})}));
1Tt.displayName="ReviewPostCardContainer";var yt=Tt,Ct=n(7),St=n(184),It=n(20),wt=n(21),Et=n(186);function At(e,t,n){return"ChannelActionProduct"===n?{amount:"KRW"===e?t.amount:Number(t.amount)/1e3,currency:e}:t}function Dt(e,t){var n="KRW"===e.currency?(Number(e.amount)/t).toFixed(0):(Number(e.amount)/t).toPrecision(3);return Pt({amount:Number(n),currency:e.currency})}function Pt(e){var t="KRW"===e.currency,n=t?"ko-KR":"en-US";return t?new Intl.NumberFormat(n).format(Number(e.amount)):new Intl.NumberFormat(n,{minimumFractionDigits:2,maximumFractionDigits:2}).format(Number(e.amount))}var Nt=n(77),kt=function(){return Nt.a.t("str_8204")},Rt=function(){return Nt.a.t("str_8203")},Lt=function(){return Nt.a.t("str_8206")},Bt=function(){return Nt.a.t("str_8268")},Mt=function(){return Nt.a.t("str_8270")},zt=function(e){return Nt.a.t("str_8294",{day:e})},Ut=function(){return Nt.a.t("str_8207")},Ft=function(){return Nt.a.t("str_c00007_time_limited_promotion_closed")},Vt=function(e,t,n){return Nt.a.t("str_8205",{day:e,hour:t,minute:n})},Wt=function(e,t){return Nt.a.t("str_8228",{hour:e,minute:t})},Ht=function(e){return Nt.a.t("str_8229",{minute:e})},Gt=function(e){return Nt.a.t("str_8255",{second:e})},Xt=function(e){return Nt.a.t("str_7959",{amount:e})},qt=function(e){return Nt.a.t("str_7960",{amount:e})},Kt=function(e){return Nt.a.t("str_8092",{amount:e})},Yt=function(e){return Nt.a.t("str_8093",{amount:e})},Zt=function(e){return Nt.a.t("str_7878",{amount:e})},Qt=function(e){return Nt.a.t("str_7879",{amount:e})},$t=function(e){return Nt.a.t("str_7961",{number:e})},Jt=function(){return Nt.a.t("str_purchase_unavailable")},en=function(){return Nt.a.t("str_free")},tn=function(){return Nt.a.t("str_friendly_currency_won")},nn=function(){return Nt.a.t("str_friendly_currency_dollar")},cn=function(){function e(){Object(It.a)(this,e)}return Object(wt.a)(e,null,[{key:"calculateLowestPrice",value:function(e){var t=e.filter((function(e){return"COUPON_FREE_FINITE"!==e.type&&"COUPON_FREE_INFINITE"!==e.type}));if(1===t.length)return{selectedIndex:t[0].vmIndex,selectedData:t[0]};if(0===t.length)return{selectedIndex:e[0].vmIndex,selectedData:e[0]};for(var n=t[0].vmIndex,i=t[0],c=1;c<t.length;c+=1){var o=t[c];this.isComparePriceDataBetter(i,o)&&(n=o.vmIndex,i=o)}return{selectedIndex:n,selectedData:i}}},{key:"isComparePriceDataBetter",value:function(e,t){for(var n=0,i=[{condition:this.getFinalPriceForComparison(t)>this.getFinalPriceForComparison(e),result:!1},{condition:this.getFinalPriceForComparison(t)<this.getFinalPriceForComparison(e),result:!0},{condition:(t.expiryPeriodInDays||0)>(e.expiryPeriodInDays||0),result:!0},{condition:(t.expiryPeriodInDays||0)<(e.expiryPeriodInDays||0),result:!1},{condition:this.getDiscountAmount(t)>this.getDiscountAmount(e),result:!0},{condition:this.getDiscountAmount(t)<this.getDiscountAmount(e),result:!1},{condition:this.comparePriceDataByType(e,t),result:!0},{condition:!this.comparePriceDataByType(e,t),result:!1}];n<i.length;n++){var c=i[n],o=c.condition,s=c.result;if(o)return s}return!1}},{key:"getFinalPriceForComparison",value:function(e){return e.productTargetModel===q.c.ChannelActionProduct&&"USD"===e.finalPrice.currency?Number(e.finalPrice.amount)/1e3:Number(e.finalPrice.amount)}},{key:"getDiscountAmount",value:function(e){var t=Number(e.originalPrice.amount)-Number(e.finalPrice.amount);return e.productTargetModel===q.c.ChannelActionProduct&&"USD"===e.finalPrice.currency?t/1e3:t}},{key:"comparePriceDataByType",value:function(e,t){for(var n=0,i=t.type!==e.type?[{condition:"ONCE_INFINITE"===t.type,result:!0},{condition:"ONCE_INFINITE"===e.type,result:!1},{condition:t.productTargetModel===q.c.SubscriptionProduct,result:!0},{condition:e.productTargetModel===q.c.SubscriptionProduct,result:!1},{condition:this.compareConnectedTarget(e,t),result:!1},{condition:!this.compareConnectedTarget(e,t),result:!0}]:[{condition:this.compareConnectedTarget(e,t),result:!1},{condition:!this.compareConnectedTarget(e,t),result:!0}];n<i.length;n++){var c=i[n],o=c.condition,s=c.result;if(o)return s}return!1}},{key:"compareConnectedTarget",value:function(e,t){if(e.productTargetModel!==t.productTargetModel)return e.productTargetModel===q.c.SubscriptionProduct;if(e.productTargetModel===t.productTargetModel){var n=t.connectedTargetCount,i=e.connectedTargetCount;if(n>i)return!1;if(n<i)return!0;
1if(n===i)return this.compareInsertedAt(e,t)}return!1}},{key:"compareInsertedAt",value:function(e,t){return t.insertedAt.getTime()-e.insertedAt.getTime()<0}}]),e}(),on=function(){function e(){Object(It.a)(this,e)}return Object(wt.a)(e,null,[{key:"createSeriesesPriceViewModels",value:function(e,t,n,i){var c=this;return Object.fromEntries(Object.entries(n).map((function(n){var o=Object(J.a)(n,2),s=o[0],a=o[1];return[s,c.createSeriesPriceViewModels(e,t,a,i)]})))}},{key:"createSeriesPriceViewModels",value:function(e,t,n,i){var c,o,s,a;if(!n.availableProducts.length)return{originalPrice:{amount:0,currency:e},finalPrice:{amount:0,currency:e},salePrice:{amount:0,currency:e},promotion:void 0,customField:{discountBenefitViewModel:{isPriceInfoShow:!0,originalPriceLabel:"",discountRate:0,finalPriceLabel:"HIDE_PRICE"===t.priceAppearance?"":n.isPreparing?n.preparingMessage||Jt():en(),installmentsLabel:""},limitedTimeBenefitViewModel:void 0,isFree:!n.isPreparing}};var r=n.availableProducts;if(r.every((function(e){return!e.isPurchaseAvailable&&e.isStatusOnSale})))return{originalPrice:{amount:0,currency:e},finalPrice:{amount:0,currency:e},salePrice:{amount:0,currency:e},promotion:void 0,customField:{discountBenefitViewModel:{isPriceInfoShow:!0,originalPriceLabel:"",discountRate:0,finalPriceLabel:"HIDE_PRICE"===t.priceAppearance?"":n.preparingMessage||Jt(),installmentsLabel:""},limitedTimeBenefitViewModel:void 0,isFree:!1}};var l=Et.a.createPricingViewModels(r.map((function(t){return{originalPayload:t,isAvailable:t.isPurchaseAvailable&&t.isStatusOnSale,productTargetModel:t.targetModel,productTargetId:t.targetId,productName:t.name,listPrice:At(e,t.originalPrice,t.targetModel),salePrice:At(e,t.price,t.targetModel),quantity:1}})),i),d=l.map((function(e,t){return{targetId:e.source.productTargetId,originalPrice:e.listPrice.value,finalPrice:e.finalPrice.value,productTargetModel:e.source.productTargetModel,type:e.source.originalPayload.type,expiryPeriodInDays:e.source.originalPayload.expiryPeriodInDays||null,connectedTargetCount:e.source.originalPayload.connectedTargetCount,insertedAt:new Date(e.source.originalPayload.insertedAt||Date.now()),isPurchaseAvailable:e.source.originalPayload.isPurchaseAvailable,isStatusOnSale:e.source.originalPayload.isStatusOnSale,vmIndex:t}})).filter((function(e){return e.isPurchaseAvailable&&e.isStatusOnSale}));if(!d.length)return{originalPrice:{amount:0,currency:e},finalPrice:{amount:0,currency:e},salePrice:{amount:0,currency:e},promotion:void 0,customField:{discountBenefitViewModel:{isPriceInfoShow:!0,originalPriceLabel:"",discountRate:0,finalPriceLabel:"HIDE_PRICE"===t.priceAppearance?"":Ft(),installmentsLabel:""},limitedTimeBenefitViewModel:void 0,isFree:!1}};var u=l[cn.calculateLowestPrice(d).selectedIndex],p=d.every((function(e){return 0===e.finalPrice.amount})),m=rn.buildDiscountBenefitViewModel(!(null===(c=u.promotion)||void 0===c||!c.selectedProductDiscount),u.listPrice.value,u.finalPrice.value,t,d.length,p,null!==(o=null===(s=u.promotion)||void 0===s||null===(a=s.selectedProductDiscount)||void 0===a?void 0:a.discountRate)&&void 0!==o?o:0,!!u.source.originalPayload.isPurchaseAvailable&&!!u.source.originalPayload.isStatusOnSale),b=rn.buildLimitedTimeBenefitViewModel(u.promotion),j=u;return j.customField={discountBenefitViewModel:m,limitedTimeBenefitViewModel:b,isFree:0===r.length&&!n.isPreparing},j}}]),e}();function sn(e,t,n,i,c,o){if(!c)return o?"":Ft();var s=Nt.a.language,a="".concat(e).concat(tn()),r="ko"===s?"".concat(e).concat(nn()):"".concat(nn()," ").concat(e);return 1===n?"0"===e?en():"KRW"===t?Xt(a):qt(r):i?en():"KRW"===t?Kt(a):Yt(r)}function an(e,t,n,i,c,o){if(!c)return o?"":Ft();var s=Nt.a.language,a="".concat(e).concat(tn()),r="ko"===s?"".concat(e).concat(nn()):"".concat(nn()," ").concat(e);return 1===n?"0"===e?en():"KRW"===t?a:r:i?en():"KRW"===t?Zt(a):Qt(r)}var rn=function(){function e(){Object(It.a)(this,e)}return Object(wt.a)(e,null,[{key:"buildDiscountBenefitViewModel",value:function(e,t,n,i,c,o,s,a){var r=i.priceAppearance,l=i.installmentsMonth,d={hasDiscountBenefit:e,isPriceInfoShow:!1,originalPriceLabel:"",finalPriceLabel:"",discountRate:0,installmentsLabel:""};if("HIDE_PRICE"===r)return d;if(d.isPriceInfoShow=!0,"MONTHLY_PRICE"===r){var u=Dt(t,l),p=Dt(n,l);u!==p&&(d.originalPriceLabel=sn(u,t.currency,c,o,a,!0)),d.finalPriceLabel=sn(p,n.currency,c,o,a,!1),d.installmentsLabel="0"===p?"":$t(l),d.discountRate=s}if("LOWEST_PRICE"===r){var m=Pt(t),b=Pt(n);m!==b&&(d.originalPriceLabel=an(m,t.currency,c,o,a,!0)),d.finalPriceLabel=an(b,n.currency,c,o,a,!1),d.discountRate=s}return d}},{key:"buildLimitedTimeBenefitViewModel",value:function(e){if(!e||!e.selectedProductDiscount&&!e.selectedLimitedTime)return null;var t={hasLimitedTimeBenefit:!(null===e||void 0===e||!e.selectedLimitedTime),isPromotionPanelShow:!1,iconName:"ic_confetti",announceText:"",timeLabel:"",badgeText:"",badgeTextColor:""};if(e.selectedProductDiscount&&(t.isPromotionPanelShow=!0,t.iconName="ic_confetti",t.announceText=Bt(),t.badgeText=Mt()),e.selectedLimitedTime&&e.selectedLimitedTime.startAt&&e.selectedLimitedTime.endAt){var n=me.a.tz().instance,i=me.a.tz(e.selectedLimitedTime.startAt).instance,c=me.a.tz(e.selectedLimitedTime.endAt).instance,o=i.isAfter(n),s=o?i.diff(n,"millisecond"):c.diff(n,"millisecond");t.isPromotionPanelShow=!0,t.iconName="ic_time",t.announceText=o?kt():Rt(),t.timeLabel=function(e){var t=Math.floor(e/864e5),n=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),c=Math.floor(e%6e4/1e3);return t>0?Vt(t,n,i):n>0?Wt(n,i):i>0?Ht(i):c>0?Gt(c):""}(s);var a=function(e,t){var n=Math.floor(e/864e5);return t&&e>0?{badgeText:Lt(),badgeTextColor:""}:n>7?{badgeText:Mt(),badgeTextColor:""}:n>=1?{badgeText:zt(n),badgeTextColor:""}:e>0?{badgeText:Ut(),badgeTextColor:"sysTextError"}:{badgeText:"",badgeTextColor:""}}(s,o);t.badgeText=a.badgeText,t.badgeTextColor=a.badgeTextColor}return t}},{key:"createPricingDisplayProps",value:function(e){var t,n,i,c,o,s,a,r,l,d,u,p,m,b,j,g,_,h,f,x,O,v,T,y,C,S;return{limitedTimeBenefitViewModel:{hasLimitedTimeBenefit:!(null===e||void 0===e||null===(t=e.customField)||void 0===t||null===(n=t.limitedTimeBenefitViewModel)||void 0===n||!n.hasLimitedTimeBenefit),isPromotionPanelShow:!(null===e||void 0===e||null===(i=e.customField)||void 0===i||null===(c=i.limitedTimeBenefitViewModel)||void 0===c||!c.isPromotionPanelShow),iconName:(null===e||void 0===e||null===(o=e.customField)||void 0===o||null===(s=o.limitedTimeBenefitViewModel)||void 0===s?void 0:s.iconName)||void 0,announceText:(null===e||void 0===e||null===(a=e.customField)||void 0===a||null===(r=a.limitedTimeBenefitViewModel)||void 0===r?void 0:r.announceText)||"",timeLabel:(null===e||void 0===e||null===(l=e.customField)||void 0===l||null===(d=l.limitedTimeBenefitViewModel)||void 0===d?void 0:d.timeLabel)||"",badgeText:(null===e||void 0===e||null===(u=e.customField)||void 0===u||null===(p=u.limitedTimeBenefitViewModel)||void 0===p?void 0:p.badgeText)||"",badgeTextColor:(null===e||void 0===e||null===(m=e.customField)||void 0===m||null===(b=m.limitedTimeBenefitViewModel)||void 0===b?void 0:b.badgeTextColor)||""},discountBenefitViewModel:{hasDiscountBenefit:!(null===e||void 0===e||null===(j=e.customField)||void 0===j||null===(g=j.discountBenefitViewModel)||void 0===g||!g.hasDiscountBenefit),isPriceInfoShow:!e||!(null===e||void 0===e||null===(_=e.customField)||void 0===_||null===(h=_.discountBenefitViewModel)||void 0===h||!h.isPriceInfoShow),originalPriceLabel:(null===e||void 0===e||null===(f=e.customField)||void 0===f||null===(x=f.discountBenefitViewModel)||void 0===x?void 0:x.originalPriceLabel)||"",finalPriceLabel:e?(null===e||void 0===e||null===(O=e.customField)||void 0===O||null===(v=O.discountBenefitViewModel)||void 0===v?void 0:v.finalPriceLabel)||"":Jt(),discountRate:(null===e||void 0===e||null===(T=e.customField)||void 0===T||null===(y=T.discountBenefitViewModel)||void 0===y?void 0:y.discountRate)||0,installmentsLabel:(null===e||void 0===e||null===(C=e.customField)||void 0===C||null===(S=C.discountBenefitViewModel)||void 0===S?void 0:S.installmentsLabel)||""}}}}]),e}();function ln(e){if(e&&"USE"===e.USE_SERIES_DETAIL_DESIGN_CONFIG_OVERRIDE){var t=e.UX_CPS_C00007_PREPARING_MESSAGE;return"string"===typeof t&&t.length>0?t:void 0}}function dn(e){var t,n=Object(i.d)(r.f);return null!==(t=null===n||void 0===n?void 0:n[f.c[e]])&&void 0!==t?t:f.b[e]}function un(e,t){if(null===e||void 0===e)return null;if("2999-12-31T23:59:59.000Z"===e)return{text:t("str_903"),colorTheme:"sysTextSecondary"};var n=me.a.tz(e),i=n.difference(void 0,"day");if(i<0)return{text:t("str_c00007myclass_expired"),colorTheme:"sysTextTertiary"};var c=n.format("YYYY.MM.DD");return{text:t("str_c00007myclass_enddate",{date:c}),colorTheme:"sysTextSecondary"}}function pn(){var e=Object(M.a)("translation").t,t=Object(i.d)(St.f),n=Object(i.d)(St.g);return Object(b.useCallback)((function(i){var c,o;if(void 0===i||null===i)return null;var s=Number(i),a=null!==(c=null===t||void 0===t?void 0:t.find((function(e){return(null===e||void 0===e?void 0:e.id)===s})))&&void 0!==c?c:null===n||void 0===n?void 0:n.find((function(e){return(null===e||void 0===e?void 0:e.id)===s}));return un(null===a||void 0===a||null===(o=a.contentEnrollment)||void 0===o?void 0:o.endAt,e)}),[t,n,e])}var mn=Y.default.div.withConfig({displayName:"S_ClassListInfo",componentId:"sc-w78r2p-0"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;padding:",";width:1200px;"],(function(e){var t=e.theme;return"0 ".concat(t.spacing.spacingE)})),bn=function(e){var t=e.title,n=e.description;return Object(Z.jsxs)(mn,{children:[t?Object(Z.jsx)(F.Spacing,{size:"spacing_h"}):Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),t&&Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,styleTheme:"displayBold",wordBreak:"break_all",textAlign:"center"}),n?Object(Z.jsx)(F.Spacing,{size:"spacing_c"}):Object(Z.jsx)(F.Spacing,{size:"spacing_g"})]}),n&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_TextLabel,{text:n,styleTheme:"body1Regular",colorTheme:"sysTextSecondary",wordBreak:"break_all",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"})]})]})};function jn(e){var t=e.text,n=e.textColor;return Object(Z.jsx)(F.D_SectionSheet,{width:"responsive",height:"20px",backgroundColorTheme:"base1",borderMode:"use",paddingLeft:"spacing_b",paddingTop:"none",paddingRight:"spacing_b",paddingBottom:"none",shapeType:"round",overrideCSS:{borderRadius:"6px",alignContent:"center"},children:Object(Z.jsx)(F.D_TextLabel,{text:t,customFontSize:"10px",customFontWeight:"bold",colorTheme:n||"sysTextPrimary"})})}var gn=j.a.memo(jn);function _n(e){var t=e.titleText,n=e.imageSrc,i=e.itemLimit,c=e.imgRatio,o=e.isPurchased,s=e.hasEnrolled,a=e.isRegistered,r=e.sessionAmount,l=e.director,d=e.labels,u=e.reviewProps,p=e.limitedTimeBenefitProps,m=e.discountBenefitProps,b=e.endAtDisplay,j=e.onClickItem,g=Object(M.a)().t,_=u.isReviewAmountVisible,h=u.isReviewScoreVisible,f=u.reviewAmount,x=u.reviewScore,O=p.isPromotionPanelShow,v=p.badgeText,T=p.badgeTextColor,y=m.hasDiscountBenefit,C=m.isPriceInfoShow,S=m.originalPriceLabel,I=m.finalPriceLabel,w=m.discountRate;return Object(Z.jsxs)(hn,{itemLimit:i,onClick:j,children:[Object(Z.jsxs)(xn,{children:[Object(Z.jsx)(fn,{children:!o&&O&&Object(Z.jsx)(gn,{text:v,textColor:T})}),Object(Z.jsx)(F.ImageView,{src:n,ratio:c,scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(On,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"})]}),a?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:g(s?"str_8183":"str_8182"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]}):Object(Z.jsxs)(Z.Fragment,{children:[C&&Object(Z.jsxs)(vn,{children:[y&&S&&w>0&&Object(Z.jsxs)(Tn,{children:[Object(Z.jsxs)(yn,{children:[Object(Z.jsx)(F.D_TextLabel,{text:w,styleTheme:"leadParaBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:g("str_percentages"),styleTheme:"caption1Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:I,styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]}),(h||_)&&Object(Z.jsxs)(Cn,{children:[h&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:16,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:x.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),_&&Object(Z.jsx)(F.D_TextLabel,{text:g(f>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:f}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}
1)]})]}),b&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:b.text,styleTheme:"caption1Regular",colorTheme:b.colorTheme})]}),Object(Z.jsxs)(Sn,{children:[Object(Z.jsx)(F.D_TextLabel,{text:g("str_2493",{SessionCnt:r}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"keep_all"}),l&&l.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Divider,{direction:"vertical",height:16}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:l,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1})]})]}),Object(Z.jsx)(In,{children:d.map((function(e){var t=e.id,n=e.name;return Object(Z.jsx)(F.D_Chip,{displayType:"label",text:n},t)}))})]})}var hn=Y.default.div.withConfig({displayName:"S_VideoStyleListItem",componentId:"sc-1ejn4ca-0"})(["cursor:pointer;display:flex;flex-direction:column;height:100%;overflow:visible;width:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}"],(function(e){var t=e.itemLimit;return t?"calc(".concat(100/t,"% - 24px)"):"100%"})),fn=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-1ejn4ca-1"})(["left:8px;position:absolute;top:8px;"]),xn=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-1ejn4ca-2"})(["position:relative;width:100%;"]),On=Y.default.div.withConfig({displayName:"S_EpisodeTextWrapper",componentId:"sc-1ejn4ca-3"})(["-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;margin-top:",";text-align:left;text-overflow:ellipsis;width:100%;"],(function(e){return e.theme.spacing.spacingC})),vn=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-1ejn4ca-4"})(["display:flex;flex-direction:column;"]),Tn=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-1ejn4ca-5"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),yn=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-1ejn4ca-6"})(["align-items:center;display:flex;gap:1px;"]),Cn=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-1ejn4ca-7"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingA})),Sn=Y.default.div.withConfig({displayName:"S_AdditionalInfoWrapper",componentId:"sc-1ejn4ca-8"})(["align-items:center;display:flex;padding-bottom:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingC})),In=Y.default.div.withConfig({displayName:"S_LabelList",componentId:"sc-1ejn4ca-9"})(["align-items:center;display:inline-flex;flex-wrap:wrap;gap:",";padding-bottom:",";width:100%;"],(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingG})),wn=Object(b.memo)(_n);var En=Y.default.div.withConfig({displayName:"S_ClassContentsBox",componentId:"sc-wpian-0"})(["display:flex;flex:1;flex-direction:column;justify-content:space-between;padding-bottom:",";padding-left:",";padding-right:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),An=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-wpian-1"})(["position:relative;"]),Dn=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-wpian-2"})(["display:flex;flex-direction:column;"]),Pn=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-wpian-3"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),Nn=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-wpian-4"})(["align-items:center;display:flex;gap:1px;"]),kn=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-wpian-5"})(["left:8px;position:absolute;top:8px;"]),Rn=Y.default.div.withConfig({displayName:"S_ClassInfoBox",componentId:"sc-wpian-6"})(["display:flex;flex-direction:column;"]),Ln=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-wpian-7"})(["align-items:center;display:grid;grid-template-columns:max-content min-content auto;"]),Bn=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-wpian-8"})(["background-color:",";height:18px;margin-left:",";margin-right:",";width:1px;"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),Mn=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-wpian-9"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),zn=function(e){var t=e.labels,n=e.seriesAdditionalInfo,i=e.totalClassCount,c=e.coverImageSrc,o=e.title,s=e.isPurchased,a=e.hasEnrolled,r=e.isRegistered,l=e.reviewProps,d=e.discountBenefitProps,u=e.limitedTimeBenefitProps,p=e.endAtDisplay,m=e.onClickItem,b=Object(M.a)("translation").t,j=(null===n||void 0===n?void 0:n.director)||"",g=l.isReviewAmountVisible,_=l.isReviewScoreVisible,h=l.reviewAmount,f=l.reviewScore,x=u.isPromotionPanelShow,O=u.badgeText,v=u.badgeTextColor,T=d.hasDiscountBenefit,y=d.isPriceInfoShow,C=d.originalPriceLabel,S=d.finalPriceLabel,I=d.discountRate;return Object(Z.jsxs)(F.D_SectionSheet,{width:"100%",height:"auto",backgroundColorTheme:"base3",paddingBottom:"none",paddingRight:"none",paddingLeft:"none",paddingTop:"none",shapeType:"round",radius:16,overrideCSS:{display:"flex",marginBottom:F.theme.spacing.spacingG,overflow:"hidden"},onClick:m,children:[Object(Z.jsxs)(An,{children:[Object(Z.jsx)(kn,{children:!s&&x&&Object(Z.jsx)(gn,{text:O,textColor:v})}),Object(Z.jsx)(F.ImageView,{src:c||"",scaleType:"cover",shapeType:"rectangle",width:688,height:430,backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(En,{children:[Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:o,customFontSize:"32px",customFontWeight:"bold",wordBreak:"break_all"}),r?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:b(a?"str_8183":"str_8182"),styleTheme:"headingBold",colorTheme:"sysTextPrimary"}),p&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:p.text,styleTheme:"caption1Regular",colorTheme:p.colorTheme})]})]}):Object(Z.jsxs)(Z.Fragment,{children:[y&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsxs)(Dn,{children:[T&&C&&I>0&&Object(Z.jsxs)(Pn,{children:[Object(Z.jsxs)(Nn,{children:[Object(Z.jsx)(F.D_TextLabel,{text:I,styleTheme:"headingBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:b("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"headingBold",colorTheme:"sysTextPrimary"})]})]}),(_||g)&&Object(Z.jsxs)(Mn,{children:[_&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:24,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:f.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),g&&Object(Z.jsx)(F.D_TextLabel,{text:b(h>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:h}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]}),p&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:p.text,styleTheme:"caption1Regular",colorTheme:p.colorTheme})]})]})]}),Object(Z.jsxs)(Rn,{children:[Object(Z.jsxs)(Ln,{children:[Object(Z.jsx)(F.D_TextLabel,{text:b("str_2493",{SessionCnt:i}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),j.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Bn,{}
1),Object(Z.jsx)(F.D_TextLabel,{text:j,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1})]})]}),t.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)($,{labels:t})]})]})]})]})};var Un=Y.default.div.withConfig({displayName:"S_FocusThumbnailContentsListItem",componentId:"sc-1u5sbsv-0"})(["cursor:pointer;display:grid;grid-column-gap:",";grid-template-columns:",";margin-bottom:96px;transition:grid-template-columns 0.3s ease;width:100%;"],(function(e){return e.theme.spacing.spacingG}),(function(e){return"right"===e.thumbnailPosition?"1fr 2fr":"2fr 1fr"})),Fn=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-1u5sbsv-1"})(["position:relative;"]),Vn=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-1u5sbsv-2"})(["display:flex;flex-direction:column;"]),Wn=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-1u5sbsv-3"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),Hn=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-1u5sbsv-4"})(["align-items:center;display:flex;gap:1px;"]),Gn=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-1u5sbsv-5"})(["left:8px;position:absolute;top:8px;"]),Xn=Y.default.div.withConfig({displayName:"S_ClassContentsBox",componentId:"sc-1u5sbsv-6"})(["display:flex;flex-direction:column;justify-content:center;width:100%;"]),qn=Y.default.div.withConfig({displayName:"S_ClassInfoBox",componentId:"sc-1u5sbsv-7"})(["display:flex;flex-direction:column;"]),Kn=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-1u5sbsv-8"})(["align-items:center;display:grid;grid-template-columns:max-content min-content auto;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingC})),Yn=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-1u5sbsv-9"})(["background-color:",";height:16px;margin-left:",";margin-right:",";width:1px;"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),Zn=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-1u5sbsv-10"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),Qn=function(e){var t=e.labels,n=e.seriesAdditionalInfo,i=e.totalClassCount,c=e.coverImageSrc,o=e.title,s=e.isPurchased,a=e.hasEnrolled,r=e.isRegistered,l=e.thumbnailPosition,d=e.reviewProps,u=e.discountBenefitProps,p=e.limitedTimeBenefitProps,m=e.endAtDisplay,b=e.onClickItem,j=Object(M.a)("translation").t,g=(null===n||void 0===n?void 0:n.director)||"",_=d.isReviewAmountVisible,h=d.isReviewScoreVisible,f=d.reviewAmount,x=d.reviewScore,O=p.isPromotionPanelShow,v=p.badgeText,T=p.badgeTextColor,y=u.hasDiscountBenefit,C=u.isPriceInfoShow,S=u.originalPriceLabel,I=u.finalPriceLabel,w=u.discountRate;return Object(Z.jsxs)(Un,{thumbnailPosition:l,onClick:b,children:["left"===l&&Object(Z.jsxs)(Fn,{children:[Object(Z.jsx)(Gn,{children:!s&&O&&Object(Z.jsx)(gn,{text:v,textColor:T})}),Object(Z.jsx)(F.ImageView,{src:c||"",ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(Xn,{children:[Object(Z.jsx)(F.D_TextLabel,{text:o,customFontSize:"28px",customFontWeight:"bold",wordBreak:"break_all"}),r?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:j(a?"str_8183":"str_8182"),customFontSize:"22px",customFontWeight:"bold"}),m&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:m.text,styleTheme:"caption1Regular",colorTheme:m.colorTheme})]})]}):Object(Z.jsxs)(Z.Fragment,{children:[C&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsxs)(Vn,{children:[y&&S&&w>0&&Object(Z.jsxs)(Wn,{children:[Object(Z.jsxs)(Hn,{children:[Object(Z.jsx)(F.D_TextLabel,{text:w,customFontSize:"22px",customFontWeight:"bold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:j("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:I,customFontSize:"22px",customFontWeight:"bold"})]})]}),(h||_)&&Object(Z.jsxs)(Zn,{children:[h&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:16,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:x.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),_&&Object(Z.jsx)(F.D_TextLabel,{text:j(f>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:f}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]}),m&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:m.text,styleTheme:"caption1Regular",colorTheme:m.colorTheme})]})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsxs)(qn,{children:[Object(Z.jsxs)(Kn,{children:[Object(Z.jsx)(F.D_TextLabel,{text:j("str_2493",{SessionCnt:i}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),g.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Yn,{}),Object(Z.jsx)(F.D_TextLabel,{text:g,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}
1)]})]}),Object(Z.jsx)($,{labels:t})]})]}),"right"===l&&Object(Z.jsxs)(Fn,{children:[Object(Z.jsx)(Gn,{children:!s&&O&&Object(Z.jsx)(gn,{text:v,textColor:T})}),Object(Z.jsx)(F.ImageView,{src:c||"",ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]})]})};var $n=Y.default.div.withConfig({displayName:"S_ListAContentsListItem",componentId:"sc-qliycr-0"})(["cursor:pointer;display:flex;flex-direction:column;margin-bottom:",";width:100%;&:first-child{margin-left:0;}&:last-child{margin-right:0;}"],(function(e){return e.theme.spacing.spacingG})),Jn=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-qliycr-1"})(["position:relative;width:100%;"]),ei=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-qliycr-2"})(["left:8px;position:absolute;top:8px;"]),ti=Y.default.div.withConfig({displayName:"S_ClassContentsBox",componentId:"sc-qliycr-3"})(["display:flex;flex-direction:column;margin-top:",";"],(function(e){return e.theme.spacing.spacingD})),ni=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-qliycr-4"})(["align-items:center;display:grid;grid-template-columns:max-content min-content auto;margin-bottom:",";margin-top:",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingD})),ii=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-qliycr-5"})(["background-color:",";height:12px;margin-left:",";margin-right:",";width:1px;"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),ci=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-qliycr-6"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingA})),oi=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-qliycr-7"})(["display:flex;flex-direction:column;"]),si=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-qliycr-8"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),ai=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-qliycr-9"})(["align-items:center;display:flex;gap:1px;"]),ri=function(e){var t=e.labels,n=e.seriesAdditionalInfo,i=e.totalClassCount,c=e.coverImageSrc,o=e.title,s=e.isPurchased,a=e.hasEnrolled,r=e.isRegistered,l=e.reviewProps,d=e.discountBenefitProps,u=e.limitedTimeBenefitProps,p=e.endAtDisplay,m=e.onClickItem,b=Object(M.a)("translation").t,j=(null===n||void 0===n?void 0:n.director)||"",g=l.isReviewAmountVisible,_=l.isReviewScoreVisible,h=l.reviewAmount,f=l.reviewScore,x=u.isPromotionPanelShow,O=u.badgeText,v=u.badgeTextColor,T=d.hasDiscountBenefit,y=d.isPriceInfoShow,C=d.originalPriceLabel,S=d.finalPriceLabel,I=d.discountRate;return Object(Z.jsxs)($n,{onClick:m,children:[Object(Z.jsxs)(Jn,{children:[Object(Z.jsx)(ei,{children:!s&&x&&Object(Z.jsx)(gn,{text:O,textColor:v})}),Object(Z.jsx)(F.ImageView,{src:c||"",ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(ti,{children:[Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"headingBold",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),r?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:b(a?"str_8183":"str_8182"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]}):Object(Z.jsxs)(Z.Fragment,{children:[y&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsxs)(oi,{children:[T&&C&&I>0&&Object(Z.jsxs)(si,{children:[Object(Z.jsxs)(ai,{children:[Object(Z.jsx)(F.D_TextLabel,{text:I,styleTheme:"leadParaBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:b("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]})]}),(_||g)&&Object(Z.jsxs)(ci,{children:[_&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:16,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:f.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),g&&Object(Z.jsx)(F.D_TextLabel,{text:b(h>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:h}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]})]}),p&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:p.text,styleTheme:"caption1Regular",colorTheme:p.colorTheme})]}),Object(Z.jsxs)(ni,{children:[Object(Z.jsx)(F.D_TextLabel,{text:b("str_2493",{SessionCnt:i}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),j.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(ii,{}
1),Object(Z.jsx)(F.D_TextLabel,{text:j,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1})]})]}),Object(Z.jsx)($,{labels:t})]})]})};var li=Y.default.div.withConfig({displayName:"S_ListBContentsListItem",componentId:"sc-1xyozri-0"})(["cursor:pointer;display:flex;flex-direction:column;margin-bottom:",";width:100%;&:first-child{margin-left:0;}&:last-child{margin-right:0;}"],(function(e){return e.theme.spacing.spacingG})),di=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-1xyozri-1"})(["left:8px;position:absolute;top:8px;"]),ui=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-1xyozri-2"})(["position:relative;width:100%;"]),pi=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-1xyozri-3"})(["display:flex;flex-direction:column;"]),mi=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-1xyozri-4"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),bi=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-1xyozri-5"})(["align-items:center;display:flex;gap:1px;"]),ji=Y.default.div.withConfig({displayName:"S_ClassContentsBox",componentId:"sc-1xyozri-6"})(["display:flex;flex-direction:column;margin-top:",";"],(function(e){return e.theme.spacing.spacingD})),gi=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-1xyozri-7"})(["align-items:center;display:grid;grid-template-columns:max-content min-content auto;margin-bottom:",";margin-top:",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingD})),_i=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-1xyozri-8"})(["background-color:",";height:12px;margin-left:",";margin-right:",";width:1px;"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),hi=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-1xyozri-9"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingA})),fi=function(e){var t=e.labels,n=e.seriesAdditionalInfo,i=e.totalClassCount,c=e.coverImageSrc,o=e.title,s=e.isPurchased,a=e.hasEnrolled,r=e.isRegistered,l=e.reviewProps,d=e.discountBenefitProps,u=e.limitedTimeBenefitProps,p=e.endAtDisplay,m=e.onClickItem,b=Object(M.a)("translation").t,j=(null===n||void 0===n?void 0:n.director)||"",g=l.isReviewAmountVisible,_=l.isReviewScoreVisible,h=l.reviewAmount,f=l.reviewScore,x=u.isPromotionPanelShow,O=u.badgeText,v=u.badgeTextColor,T=d.hasDiscountBenefit,y=d.isPriceInfoShow,C=d.originalPriceLabel,S=d.finalPriceLabel,I=d.discountRate;return Object(Z.jsxs)(li,{onClick:m,children:[Object(Z.jsxs)(ui,{children:[Object(Z.jsx)(di,{children:!s&&x&&Object(Z.jsx)(gn,{text:O,textColor:v})}),Object(Z.jsx)(F.ImageView,{src:c||"",ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(ji,{children:[Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"subTitleBold",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),r?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:b(a?"str_8183":"str_8182"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]}):Object(Z.jsxs)(Z.Fragment,{children:[y&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsxs)(pi,{children:[T&&C&&I>0&&Object(Z.jsxs)(mi,{children:[Object(Z.jsxs)(bi,{children:[Object(Z.jsx)(F.D_TextLabel,{text:I,styleTheme:"leadParaBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:b("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]})]}),(_||g)&&Object(Z.jsxs)(hi,{children:[_&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:16,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:f.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),g&&Object(Z.jsx)(F.D_TextLabel,{text:b(h>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:h}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]})]}),p&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:p.text,styleTheme:"caption1Regular",colorTheme:p.colorTheme})]}),Object(Z.jsxs)(gi,{children:[Object(Z.jsx)(F.D_TextLabel,{text:b("str_2493",{SessionCnt:i}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),j.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(_i,{}),Object(Z.jsx)(F.D_TextLabel,{text:j,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1}
1)]})]}),Object(Z.jsx)($,{labels:t})]})]})};var xi=Y.default.div.withConfig({displayName:"S_EmptyHome",componentId:"sc-1lj5alr-0"})(["height:100%;margin-top:",";overflow-y:auto;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingI}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Oi=function(){var e=Object(M.a)("translation").t;return Object(Z.jsx)(xi,{children:Object(Z.jsx)(F.D_TextLabel,{text:e("str_1323"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextTertiary"})})};var vi=Y.default.div.withConfig({displayName:"S_Labels",componentId:"sc-7sejzp-0"})(["align-items:center;display:inline-flex;flex-wrap:wrap;justify-content:center;width:1200px;"]),Ti=Y.default.span.withConfig({displayName:"S_Label",componentId:"sc-7sejzp-1"})(["margin-bottom:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),yi=function(e){var t=e.labels,n=e.selectedLabelId,i=e.onClick,c=Object(M.a)("translation").t;return Object(Z.jsx)(vi,{children:[{id:0,name:c("str_all"),value:0}].concat(Object(Ye.a)(t)).map((function(e){return Object(Z.jsx)(Ti,{onClick:function(){return i(e.id)},children:Object(Z.jsx)(F.D_Chip,{displayType:"filter_single",text:e.name,id:e.id,value:n})},e.id)}))})};var Ci=Object(Y.css)(["grid-template-columns:564px 564px;padding-left:",";padding-right:",";width:1200px;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Si=Object(Y.css)(["grid-template-columns:1fr 1fr 1fr 1fr;max-width:1920px;min-width:1200px;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Ii=Object(Y.css)(["grid-template-columns:1fr;padding-left:",";padding-right:",";padding-top:40px;width:1200px;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),wi=Object(Y.css)(["grid-template-columns:1fr;max-width:1440px;min-width:1200px;padding-left:",";padding-right:",";padding-top:",";width:100%;"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingE})),Ei=Y.default.div.withConfig({displayName:"S_ClassList",componentId:"sc-1z0jr7s-0"})(["display:grid;grid-column-gap:",";justify-content:center;overflow:auto;&::-webkit-scrollbar{display:none;}",""],(function(e){return e.theme.spacing.spacingE}),(function(e){switch(e.templateName){case"LIST_A":return Ci;case"LIST_B":return Si;case"CARD":return Ii;case"FOCUS_THUMBNAIL":return wi}})),Ai=Y.default.div.withConfig({displayName:"S_LoadingWrapper",componentId:"sc-1z0jr7s-1"})(["align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;"]),Di=Y.default.div.withConfig({displayName:"S_ClassListWrapper",componentId:"sc-1z0jr7s-2"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]),Pi=function(e){var t=e.sectionId,n=e.sectionTitle,c=e.sectionDescription,o=e.benefits,s=e.onClick,r=Object(i.c)(),l=Object(i.d)(a.c),d=Object(i.d)(G.f),u=Object(i.d)(St.g),p=Object(i.d)(G.l),m=Object(i.d)(G.t),j=Object(i.d)(G.E),_=Object(i.d)(G.A),h=Object(b.useState)(0),x=Object(J.a)(h,2),O=x[0],v=x[1],T=z(t),y=T.COMMON,C=y.isReviewTabActive,S=y.isStarRatingActive,I=T.CLASSLIST,w=I.template,E=I.totalClasslistPriceAppearance,A=I.totalClasslistInstallmentsMonth,D=I.isHideAllClassReviewScore,P=I.isHideAllClassReviewScoreBelow4,N=I.isHideAllClassReviewAmount,k=dn("HOME"),R=pn(),L=Object(b.useMemo)((function(){if(!l||m||!d)return null;var e=(null===l||void 0===l?void 0:l.baseCurrency)||"KRW",t=Object.fromEntries(d.map((function(e){return[null===e||void 0===e?void 0:e.id,{availableProducts:e.availableProducts||[],isPreparing:!!e.isPreparing,preparingMessage:ln(e.seriesDetailDesignConfig)}]})));return on.createSeriesesPriceViewModels(e,{priceAppearance:E,installmentsMonth:A},t,o)}),[l,E,A,o,m,d,t]),B=Ke({labelId:O,serieses:d,isLoading:m,totalSeriesesCount:j.total,currentPage:j.page,fetchSeriesesByPage:function(e){r(Object(X.x)({limit:f.d,labelId:O||void 0,page:e}))}}).lastSeriesRef;return Object(b.useEffect)((function(){return r(Object(X.L)()),function(){r(Object(X.cb)())}}),[]),m&&0===d.length?Object(Z.jsx)(Ai,{children:Object(Z.jsx)(g.x,{position:"relative"})}):Object(Z.jsxs)(Di,{children:[Object(Z.jsx)(bn,{title:n,description:c}),0===_.length||!O&&0===d.length?Object(Z.jsx)(Z.Fragment,{}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(yi,{selectedLabelId:O,labels:_,onClick:function(e){e||r(Object(X.x)({limit:f.d,page:1})),v(e)}}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"})]}),0===d.length?Object(Z.jsx)(Oi,{}):Object(Z.jsx)(Ei,{templateName:w,children:d.map((function(e,t){var n,i,c=null===L||void 0===L?void 0:L[e.id],o=function(e){var t,n,i,c,o=null!==(t=null===e||void 0===e||null===(n=e.find((function(e){return"AVG_REVIEW_POINT"===e.type})))||void 0===n?void 0:n.value)&&void 0!==t?t:0,s=null!==(i=null===e||void 0===e||null===(c=e.find((function(e){return"REVIEW_COUNTS"===e.type})))||void 0===c?void 0:c.value)&&void 0!==i?i:0;return{reviewScore:o,reviewAmount:s,isReviewScoreVisible:o>=(P?4:1)&&!D&&C&&S,isReviewAmountVisible:s>0&&!N&&C}}(e.extraInfos||[]),a=rn.createPricingDisplayProps(c),r=null===c||void 0===c||null===(n=c.customField)||void 0===n?void 0:n.isFree,l=null!==(i=null===p||void 0===p?void 0:p.get(e.id))&&void 0!==i&&i,m=null===u||void 0===u?void 0:u.some((function(t){return t.id===e.id})),b=!1,j=!1;null!==c&&void 0!==c&&c.source?(b=m,j=l):(b=!1,j=l);var g={labels:e.labels,totalClassCount:e.totalEpisodes,seriesAdditionalInfo:e.seriesAdditionalInfo,coverImageSrc:e.coverImageSrc,title:e.title,isPurchased:b,hasEnrolled:j,isRegistered:!!b||!!r&&!!j,reviewProps:o,limitedTimeBenefitProps:a.limitedTimeBenefitViewModel,discountBenefitProps:a.discountBenefitViewModel,endAtDisplay:k?R(e.id):null,onClickItem:function(){return s(e.id,b&&j)}};return Object(Z.jsxs)("div",{ref:d.length-1===t?B:null,children:["LIST_A"===w&&Object(Z.jsx)(ri,Object(Ct.a)({},g)),"LIST_B"===w&&Object(Z.jsx)(fi,Object(Ct.a)({},g)),"CARD"===w&&Object(Z.jsx)(zn,Object(Ct.a)({},g)),"FOCUS_THUMBNAIL"===w&&Object(Z.jsx)(Qn,Object(Ct.a)({thumbnailPosition:t%2?"right":"left"},g))]},"SERIES_".concat(t,"_").concat(e.id))}))})]})},Ni=n(410);var ki=Y.default.div.withConfig({displayName:"S_GradientCover",componentId:"sc-15wnp9z-0"})(["background-image:",";border-radius:",";height:",";position:absolute;width:100%;z-index:",";",""],(function(e){var t=e.gradientStyle,n=e.direction,i=e.startColor,c=e.endColor;return"".concat(t,"(").concat(n,", ").concat(i,",").concat(c,")")}),(function(e){return e.borderRadius}),(function(e){return e.height}),(function(e){return e.zIndex}),(function(e){var t=e.position;return t&&"".concat(t,":0")})),Ri=function(e){var t=e.height,n=void 0===t?"100%":t,i=e.width,c=void 0===i?"100%":i,o=e.gradientStyle,s=void 0===o?"linear-gradient":o,a=e.direction,r=void 0===a?"to bottom":a,l=e.startColor,d=void 0===l?"rgba(0, 0, 0, 0) 0%":l,u=e.endColor,p=void 0===u?"rgba(0, 0, 0, 0.7) 100%":u,m=e.borderRadius,b=void 0===m?"none":m,j=e.position,g=void 0===j?"bottom":j,_=e.zIndex,h=void 0===_?1:_;return Object(Z.jsx)(ki,{height:n,width:c,gradientStyle:s,direction:r,startColor:d,endColor:p,borderRadius:b,position:g,zIndex:h})};var Li=Y.default.div.withConfig({displayName:"S_ContentsBox",componentId:"sc-fj7clf-0"})(["bottom:64px;left:122px;position:absolute;width:100%;z-index:3;"]),Bi=Y.default.div.withConfig({displayName:"S_LogoImageWrapper",componentId:"sc-fj7clf-1"})(["align-content:flex-start;display:flex;margin-bottom:16px;max-width:400px;text-align:left;width:25%;& > div{line-height:1.3;}"]),Mi=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-fj7clf-2"})(["align-content:flex-start;display:flex;margin-bottom:16px;max-width:480px;text-align:left;& > div{line-height:1.3;}"]),zi=Y.default.div.withConfig({displayName:"S_TextWrapper",componentId:"sc-fj7clf-3"})(["margin-bottom:24px;text-align:left;width:480px;"]),Ui=function(e){var t=e.title,n=e.description,i=e.logoImageSrc;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Ri,{height:"280px",zIndex:2}),Object(Z.jsxs)(Li,{children:[Object(Z.jsx)(Z.Fragment,{children:i?Object(Z.jsx)(Bi,{children:Object(Z.jsx)(F.ImageView,{src:i,ratio:"auto",scaleType:"none",backgroundFillMode:"none",width:"responsive",shapeType:"rectangle"})}):Object(Z.jsx)(Mi,{children:Object(Z.jsx)(F.D_TextLabel,{lineLimit:2,styleTheme:"displayBold",text:t,ellipsisMode:"use",colorTheme:"sysTextWhite"})})}),Object(Z.jsx)(zi,{height:"40px",children:Object(Z.jsx)(F.D_TextLabel,{lineLimit:2,styleTheme:"body1Regular",text:n,ellipsisMode:"use",colorTheme:"sysTextWhite"})})]})]})};var Fi=Y.default.span.withConfig({displayName:"S_HomeSlideImage",componentId:"sc-4k2
1128-0"})(["background-image:",";background-position:center;background-repeat:no-repeat;background-size:cover;display:block;height:488px;min-height:488px;min-width:1200px;position:relative;width:100vw;"],(function(e){var t=e.src;return t&&"url(".concat(t,")")})),Vi=function(e){var t=e.title,n=e.description,i=e.backgroundImageSrc,c=e.logoImageSrc,o=e.weblinkSrc,s=e.onClick;return o&&(null===o||void 0===o?void 0:o.length)>0?Object(Z.jsxs)("a",{href:/^https?:\/\//i.test(o)?o:"http://".concat(o),target:"_blank",rel:"noopener noreferrer",children:[Object(Z.jsx)(Ui,{title:t,description:n,logoImageSrc:c}),Object(Z.jsx)(Fi,{src:i})]}):Object(Z.jsxs)("div",{onClick:s&&s,children:[Object(Z.jsx)(Ui,{title:t,description:n,logoImageSrc:c}),Object(Z.jsx)(Fi,{src:i})]})};var Wi=Y.default.div.withConfig({displayName:"S_MainSlideBanner",componentId:"sc-1kyrhxi-0"})(["height:488px;min-height:488px;min-width:1200px;position:relative;width:100vw;& section{height:488px;min-height:488px;min-width:1200px;}"]),Hi=Y.default.div.withConfig({displayName:"S_DotList",componentId:"sc-1kyrhxi-1"})(["display:flex;flex-direction:row;margin-bottom:32px;"]),Gi=Y.default.div.withConfig({displayName:"S_Dot",componentId:"sc-1kyrhxi-2"})(["background-color:",";cursor:pointer;height:12px;margin:0 4px;width:12px;z-index:11;",""],(function(e){var t=e.currentSlide,n=e.i,i=e.theme;return t===n?i.ui_cpnt_bannerslide_pagination_active:i.ui_cpnt_bannerslide_pagination_inactive}),(function(e){switch(e.shapeType){case"round":return Xi;case"circular":return qi;case"rectangle":return Ki;default:return Xi}})),Xi=Object(Y.css)(["border-radius:3px;"]),qi=Object(Y.css)(["border-radius:6px;"]),Ki=Object(Y.css)(["border:none;"]),Yi=Y.default.div.withConfig({displayName:"S_ArrowWrapper",componentId:"sc-1kyrhxi-3"})(["cursor:pointer;display:flex;height:80px;padding:4px;width:80px;z-index:11;",""],(function(e){var t=e.side;return"".concat(t,": 0px;\n margin-").concat(t,": 12px;")})),Zi=Y.default.div.withConfig({displayName:"S_Icon",componentId:"sc-1kyrhxi-4"})(["opacity:0.4;"]),Qi=function(e){var t=e.slides,n=e.shapeType,i=void 0===n?"circular":n,c=e.onClick,o=Object(b.useMemo)((function(){return 1e3*t[0].slideDuration}),[t]);return Object(Z.jsxs)(Wi,{children:[t&&1===t.length&&Object(Z.jsx)(Vi,{title:t[0].title,description:t[0].description,backgroundImageSrc:t[0].backgroundDesktopImgSrc,logoImageSrc:t[0].alternativeLogoSrc,weblinkSrc:t[0].webLinkSrc,onClick:function(){var e;return(null===(e=t[0].series)||void 0===e?void 0:e.id)&&c(t[0].series.id)}}),t&&t.length>1&&Object(Z.jsx)(Ni.default,{cellAlign:"center",initialSlideHeight:540,autoplay:!0,wrapAround:!0,afterSlide:function(e){return function(e){for(var t=document.querySelector("#video_".concat(e,"_html5_api")),n=document.querySelector("#video_0_html5_api"),i=0;i<5;i+=1){var c=document.querySelector("#video_".concat(i,"_html5_api"));c&&(c.pause(),c.currentTime=0)}n&&0===e&&n.play(),t&&t.play()}(e)},autoplayInterval:o,renderCenterLeftControls:function(e){return function(e){return Object(Z.jsx)(Yi,{side:"left",onClick:e.previousSlide,children:Object(Z.jsx)(Zi,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_left",size:72,fill:!1,colorKey:"ui_cpnt_bannerslide_icon_01"})})})}(e)},renderCenterRightControls:function(e){return function(e){return Object(Z.jsx)(Yi,{side:"right",onClick:e.nextSlide,children:Object(Z.jsx)(Zi,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_right",size:72,fill:!1,colorKey:"ui_cpnt_bannerslide_icon_01"})})})}(e)},renderBottomCenterControls:function(e){return function(e){var t=e.slideCount,n=e.currentSlide,c=Object(Ye.a)(Array(t)).map((function(e,t){return{id:t}}));return Object(Z.jsx)(Hi,{children:c.map((function(t,c){return Object(Z.jsx)(Gi,{currentSlide:n,shapeType:i,i:c,onClick:function(){e.goToSlide(c)}},c)}))})}(e)},renderBottomLeftControls:null,children:t.map((function(e){return Object(Z.jsx)(Vi,{title:e.title,description:e.description,backgroundImageSrc:e.backgroundDesktopImgSrc,logoImageSrc:e.alternativeLogoSrc,weblinkSrc:e.webLinkSrc,onClick:function(){var t;return(null===(t=e.series)||void 0===t?void 0:t.id)&&c(e.series.id)}},e.id)}))})]})};var $i=Y.default.div.withConfig({displayName:"S_LineBannerSection",componentId:"sc-1l3f0n1-0"})(["background:",";cursor:",";height:120px;width:100%;"],(function(e){var t=e.backgroundColor;return t&&t}),(function(e){return!e.onlyImage&&"pointer"})),Ji=function(e){var t=e.onlyImage,n=void 0!==t&&t,i=e.weblinkSrc,c=e.imageSrc,o=e.backgroundColorCode,s=e.onClick,a=e.id;return Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsx)($i,{onlyImage:n,backgroundColor:o,onClick:function(){return a&&s(a)},children:i?Object(Z.jsx)("a",{href:/^https?:\/\//i.test(i)?i:"http://".concat(i),target:"_blank",rel:"noopener noreferrer",children:Object(Z.jsx)(F.ImageView,{src:c,shapeType:"rectangle",width:"responsive",height:120,scaleType:"contain"})}):Object(Z.jsx)(F.ImageView,{src:c,shapeType:"rectangle",width:"responsive",height:120,scaleType:"contain"})})})};var ec=Y.default.div.withConfig({displayName:"S_LineBannerSection",componentId:"sc-1k87tfc-0"})(["background:",";cursor:",";width:100%;"],(function(e){var t=e.backgroundColor;return t&&t}),(function(e){return!e.onlyImage&&"pointer"})),tc=Y.default.div.withConfig({displayName:"S_StandardBannerWithoutImage",componentId:"sc-1k87tfc-1"}
1)(["height:120px;"]),nc=function(e){var t=e.onlyImage,n=void 0!==t&&t,i=e.weblinkSrc,c=e.backgroundColorCode,o=e.onClick,s=e.id;return Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsx)(ec,{onlyImage:n,backgroundColor:c,onClick:function(){return s&&o(s)},children:i?Object(Z.jsx)("a",{href:/^https?:\/\//i.test(i)?i:"http://".concat(i),target:"_blank",rel:"noopener noreferrer",children:Object(Z.jsx)(tc,{})}):Object(Z.jsx)(tc,{})})})};Y.default.div.withConfig({displayName:"S_GradientCover",componentId:"sc-182y2g6-0"})(["background-image:",";border-radius:",";bottom:",";height:",";position:absolute;width:100%;z-index:",";"],(function(e){var t=e.gradientStyle,n=e.direction,i=e.startColor,c=e.endColor;return"".concat(t,"(").concat(n,", ").concat(i,",").concat(c,")")}),(function(e){return e.borderRadius}),(function(e){return"bottom"===e.position&&"0"}),(function(e){return e.height}),(function(e){return e.zIndex}));var ic,cc,oc=n(27);!function(e){e.THREE_COLUMN_HORIZONTAL="3_GRID_HORIZONTAL",e.THREE_COLUMN_VERTICAL="3_GRID_VERTICAL",e.FOUR_COLUMN_HORIZONTAL="4_GRID_HORIZONTAL",e.FOUR_COLUMN_VERTICAL="4_GRID_VERTICAL",e.FIVE_COLUMN_HORIZONTAL="5_GRID_HORIZONTAL",e.FIVE_COLUMN_VERTICAL="5_GRID_VERTICAL"}(cc||(cc={}));var sc={B00001:cc.FOUR_COLUMN_VERTICAL,B00005:cc.FOUR_COLUMN_VERTICAL,C00002:cc.FIVE_COLUMN_HORIZONTAL,C00006:cc.FOUR_COLUMN_HORIZONTAL,C00007:cc.THREE_COLUMN_HORIZONTAL},ac={C00007:(ic={},Object(oc.a)(ic,cc.THREE_COLUMN_HORIZONTAL,{ratio:"16_9"}),Object(oc.a)(ic,cc.THREE_COLUMN_VERTICAL,{ratio:"3_4"}),Object(oc.a)(ic,cc.FOUR_COLUMN_HORIZONTAL,{ratio:"16_9"}),Object(oc.a)(ic,cc.FOUR_COLUMN_VERTICAL,{ratio:"3_4"}),Object(oc.a)(ic,cc.FIVE_COLUMN_HORIZONTAL,{ratio:"16_9"}),Object(oc.a)(ic,cc.FIVE_COLUMN_VERTICAL,{ratio:"3_4"}),ic)};function rc(e){if(!e)return null;var t=e.match(/\d+_GRID_(HORIZONTAL|VERTICAL)/);return t?t[0]:null}function lc(e){var t=e.split("_GRID_"),n=Object(J.a)(t,1)[0],i=parseInt(n,10);return{imgRatio:ac.C00007[e].ratio,column:i}}var dc=function(e){var t,n=e.sectionId,c=e.template,o=e.sectionTitle,s=e.sectionData,r=e.classData,l=e.benefits,d=e.onSeeAllBtnClick,u=e.onClickItem,p=Object(M.a)("translation").t,m=Object(i.d)(a.c),j=Object(i.d)(St.g),_=Object(i.d)(G.l),h=z(n),f=h.COMMON,x=f.isReviewTabActive,O=f.isStarRatingActive,v=h.CLASSLIST,T=v.selectedClasslistPriceAppearance,y=v.selectedClasslistInstallmentsMonth,C=v.isHideReviewScore,S=v.isHideReviewAmount,I=v.isHideReviewScoreBelow4,w=dn("HOME"),E=pn(),A=lc(null!==(t=rc(c))&&void 0!==t?t:sc.C00007),D=A.imgRatio,P=A.column,N=Object(b.useMemo)((function(){var e,t;if(!m||!s||!r)return null;var i=(null===m||void 0===m?void 0:m.baseCurrency)||"KRW",c=(null===T||void 0===T||null===(e=T.find((function(e){return Object(J.a)(e,1)[0]===n})))||void 0===e?void 0:e[1])||"LOWEST_PRICE",o=(null===y||void 0===y||null===(t=y.find((function(e){return Object(J.a)(e,1)[0]===n})))||void 0===t?void 0:t[1])||2,a=Object.fromEntries(s.map((function(e){var t,n=e.id,i=e.series,c=null===i||void 0===i?void 0:i.id,o=null===r||void 0===r||null===(t=r.get("ALL"))||void 0===t?void 0:t.find((function(e){return e.id===c}));return[n,{availableProducts:(null===o||void 0===o?void 0:o.availableProducts)||[],isPreparing:!(null===o||void 0===o||!o.isPreparing),preparingMessage:ln(null===o||void 0===o?void 0:o.seriesDetailDesignConfig)}]})));return on.createSeriesesPriceViewModels(i,{priceAppearance:c,installmentsMonth:o},a,l)}),[m,T,y,l,n,s,r]);return Object(Z.jsx)(uc,{template:c,children:Object(Z.jsx)(g.v,{titleText:o,btnMode:"use",btnText:p("str_see_all"),itemCountUnit:P,onClickBtn:d,children:s&&s.slice(0,P).map((function(e,t){var n,i,c,o,s,a,l,d,p=e.id,m=e.series,b=null===N||void 0===N?void 0:N[p],g=null===m||void 0===m?void 0:m.id,h=null===r||void 0===r||null===(n=r.get("ALL"))||void 0===n?void 0:n.find((function(e){return e.id===g})),f=function(e){var t,n,i,c,o=null!==(t=null===e||void 0===e||null===(n=e.find((function(e){return"AVG_REVIEW_POINT"===e.type})))||void 0===n?void 0:n.value)&&void 0!==t?t:0,s=null!==(i=null===e||void 0===e||null===(c=e.find((function(e){return"REVIEW_COUNTS"===e.type})))||void 0===c?void 0:c.value)&&void 0!==i?i:0;return{reviewScore:o,reviewAmount:s,isReviewScoreVisible:o>=(I?4:1)&&!C&&x&&O,isReviewAmountVisible:s>0&&!S&&x}}((null===h||void 0===h?void 0:h.extraInfos)||[]),v=rn.createPricingDisplayProps(b),T=null===b||void 0===b||null===(i=b.customField)||void 0===i?void 0:i.isFree,y=null!==(c=null===_||void 0===_?void 0:_.get(g))&&void 0!==c&&c,A=null===j||void 0===j?void 0:j.some((function(e){return e.id===g})),P=!1,k=!1;null!==b&&void 0!==b&&b.source?(P=A,k=y):(P=!1,k=y);return Object(Z.jsx)(wn,{imageSrc:null!==(o=null===m||void 0===m?void 0:m.coverImageSrc)&&void 0!==o?o:"",titleText:null!==(s=null===m||void 0===m?void 0:m.title)&&void 0!==s?s:"",imgRatio:D,sessionAmount:null!==(a=null===h||void 0===h?void 0:h.totalEpisodes)&&void 0!==a?a:null,director:null!==(l=null===h||void 0===h?void 0:h.seriesAdditionalInfo.director)&&void 0!==l?l:"",labels:null!==(d=null===h||void 0===h?void 0:h.labels)&&void 0!==d?d:[],isPurchased:P,hasEnrolled:k,isRegistered:!!P||!!T&&!!k,reviewProps:f,limitedTimeBenefitProps:v.limitedTimeBenefitViewModel,discountBenefitProps:v.discountBenefitViewModel,endAtDisplay:w?E(null===m||void 0===m?void 0:m.id):null,onClickItem:function(){return u(null===m||void 0===m?void 0:m.id,P&&k)}},"SERIES_LIST_SECTION_".concat(t,"_").concat(p,"_").concat(null===m||void 0===m?void 0:m.id))}))})})},uc=Y.default.div.withConfig({displayName:"S_SeriesListSection",componentId:"sc-srbxu6-0"})(["max-width:1400px;min-width:1200px;padding-left:",";padding-right:",";width:100%;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),pc={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var mc=Y.default.div.withConfig({displayName:"S_ClassHomeWrapper",componentId:"sc-5alehz-0"})(["align-items:center;column-gap:",";display:flex;flex-direction:column;"],(function(e){return e.theme.spacing.spacingG})),bc=Y.default.div.withConfig({displayName:"S_LineBannerWrapper",componentId:"sc-5alehz-1"})(["width:100%;"]),jc=function(){Object(H.a)("C00007Home");var e=Object(M.a)("translation").t,t=Object(i.c)(),n=Object(c.k)(),o=Object(i.d)(G.v),s=Object(b.useMemo)(a.n,[]),r=Object(i.d)(s),l=Object(i.d)(G.e),d=Object(i.d)(G.H),u=U().tabs,p=Object(K.a)(),m=Object(b.useMemo)((function(){return d.slice(0,d.length).filter((function(e){return e.isActive}))}),[d]),j=r?{title:e("str_seo_c00007_home_title",{menuName:r.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}
1),description:e("str_seo_c00007_home_desc",{channelName:r.title,interpolation:{escapeValue:!1}})}:null;Object(V.a)({manifest:pc,isActivated:!0,data:j,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return t(Object(X.I)()),p.trigger(q.d.EXPRESSION_VIEW,{pAppCode:W.Y.C00007.CODE}),function(){t(Object(X.db)())}}),[]);var g=function(e,t){n.push(Object(h.l)(t?S:I,{channelCode:h.f.getChannelCode(),classId:e}),{classId:e})};return Object(Z.jsx)(F.WTContainersBox,{layoutType:u.length>1?"WTH_1":"WTM_1",isLoadingContainer1:o||p.isLoading,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(mc,{children:[1===u.length&&Object(Z.jsx)(F.Divider,{}),m.map((function(e){var t,i,c,o,s,a,r=e.id,d=e.type,u=e.title,m=e.description,j=e.contentsListElements,_=e.mainSlideBannerElements,f=e.standardBannerElement,x=e.sectionDesignTemplate;return Object(Z.jsxs)(b.Fragment,{children:["MAIN_SLIDES_BANNER"===d&&(_.length>0?Object(Z.jsx)(Qi,{slides:_,onClick:g}):Object(Z.jsx)(Z.Fragment,{})),"STANDARD_BANNER"===d&&f&&Object(Z.jsx)(bc,{children:f.bannerImgSrc?Object(Z.jsx)(Ji,{onlyImage:!f.webLinkSrc&&!(null!==(t=f.series)&&void 0!==t&&t.isPublished),weblinkSrc:f.webLinkSrc,imageSrc:f.bannerImgSrc,backgroundColorCode:f.bannerBackgroundColorHex,onClick:g,id:null===(i=f.series)||void 0===i?void 0:i.id}):Object(Z.jsx)(nc,{onlyImage:!f.webLinkSrc&&!(null!==(c=f.series)&&void 0!==c&&c.isPublished),weblinkSrc:f.webLinkSrc,backgroundColorCode:f.bannerBackgroundColorHex,onClick:g,id:null===(o=f.series)||void 0===o?void 0:o.id})}),"SELECTED_CLASS_LIST"===d&&Object(Z.jsx)(dc,{sectionId:r,template:x||"DEFAULT",sectionTitle:u,sectionData:j,classData:l,benefits:null!==(s=p.applicableBenefits)&&void 0!==s?s:[],onSeeAllBtnClick:function(){return e=r,void n.push(Object(h.l)(N,{channelCode:h.f.getChannelCode(),sectionId:e}));var e},onClickItem:g}),"WHOLE_CLASS_LIST"===d&&Object(Z.jsx)(Pi,{sectionId:r,sectionTitle:u,sectionDescription:m,benefits:null!==(a=p.applicableBenefits)&&void 0!==a?a:[],onClick:g})]},r)}))]})})},gc=n(399);var _c=Y.default.div.withConfig({displayName:"S_ProgressBarWrapper",componentId:"sc-1ohnqii-0"})(["align-items:center;display:flex;justify-content:space-between;"]),hc=Y.default.div.withConfig({displayName:"S_ProgressBarBox",componentId:"sc-1ohnqii-1"})(["align-items:center;display:flex;height:20px;position:relative;width:100%;"]),fc=Y.default.div.withConfig({displayName:"S_ProgressBackgroundBar",componentId:"sc-1ohnqii-2"})(["background-color:",";border-radius:6px;height:18px;width:100%;"],(function(e){return e.theme.ui_temp_grey_04})),xc=Y.default.div.withConfig({displayName:"S_PercentWrapper",componentId:"sc-1ohnqii-3"})(["display:flex;justify-content:flex-end;& > div{white-space:nowrap;}"]),Oc=Y.default.div.withConfig({displayName:"S_ProgressBar",componentId:"sc-1ohnqii-4"})(["background-color:",";border-radius:6px;height:18px;position:absolute;width:","%;"],(function(e){return e.theme.ui_temp_usr_primary_01}),(function(e){return e.nowPercent})),vc=function(e){var t=e.progress,n=Object(M.a)("translation").t,i=Math.min(100,Math.round(t));return Object(Z.jsxs)(_c,{children:[Object(Z.jsxs)(hc,{children:[Object(Z.jsx)(fc,{}),Object(Z.jsx)(Oc,{nowPercent:i})]}),Object(Z.jsxs)(xc,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_2498",{percentage:i,defaultValue:"\uc9c4\ub3c4\uc728 {{percentage}}%"}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]})]})};var Tc=Y.default.div.withConfig({displayName:"S_ButtonBox",componentId:"sc-sayuzl-0"})(["& > button{width:max-content;}"]),yc=Y.default.div.withConfig({displayName:"S_Flex",componentId:"sc-sayuzl-1"})(["align-items:center;display:flex;justify-content:space-between;"]),Cc=Y.default.div.withConfig({displayName:"S_ClassProgressCard",componentId:"sc-sayuzl-2"})(["display:flex;"]),Sc=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-sayuzl-3"})(["cursor:pointer;margin-right:",";"],(function(e){return e.theme.spacing.spacingE})),Ic=Y.default.div.withConfig({displayName:"S_CardRight",componentId:"sc-sayuzl-4"})(["display:flex;flex-direction:column;justify-content:space-between;width:100%;"]),wc=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-sayuzl-5"})(["align-items:center;cursor:pointer;display:flex;width:fit-content;"]),Ec=Y.default.div.withConfig({displayName:"S_EndAtWrapper",componentId:"sc-sayuzl-6"})(["align-items:center;display:flex;"]),Ac=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-sayuzl-7"})(["align-items:center;display:flex;"]),Dc=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-sayuzl-8"}
1)(["border:0.5px "," solid;height:12px;margin-left:",";margin-right:",";"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),Pc=function(e){var t=e.thumbnailSrc,n=e.title,i=e.caption1Text,c=e.caption2Text,o=e.progress,s=e.guideText,a=e.startBtnTitle,r=e.endAtText,l=e.endAtColorTheme,d=e.endAtNoticeText,u=e.onClickThumbnail,p=e.onClickTitle,m=e.onStartClick,b=Object(M.a)("translation").t;return Object(Z.jsxs)(Cc,{children:[Object(Z.jsx)(Sc,{onClick:u,children:Object(Z.jsx)(F.ImageView,{src:t,ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:320,borderMode:"use"})}),Object(Z.jsxs)(Ic,{children:[Object(Z.jsxs)("div",{children:[Object(Z.jsx)(wc,{onClick:p,children:Object(Z.jsx)(F.D_TextLabel,{text:n,styleTheme:"headingBold",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"})}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsxs)(Ac,{children:[Object(Z.jsx)(F.D_TextLabel,{text:b("str_2493",{SessionCnt:i}
1),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),c&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Dc,{}),Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1})]})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),r&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(Ec,{children:Object(Z.jsx)(F.D_TextLabel,{text:r,styleTheme:"caption1Regular",colorTheme:l||"sysTextSecondary",tooltipText:d,tooltipPosition:"top"})}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"})]}),Object(Z.jsx)(vc,{progress:o})]}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:b("str_2496"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsxs)(yc,{children:[Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"body1Regular",lineLimit:1,ellipsisMode:"use",wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(Tc,{children:Object(Z.jsx)(F.D_MainButton,{text:a,styleTheme:"secondary",size:"small",onClick:m})})]})]})]})]})};var Nc=Y.default.div.withConfig({displayName:"S_ClassCard",componentId:"sc-12wi5l9-0"})(["display:flex;flex-direction:column;"]),kc=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-12wi5l9-1"})(["cursor:pointer;"]),Rc=Y.default.div.withConfig({displayName:"S_CardBottom",componentId:"sc-12wi5l9-2"})(["display:flex;flex-direction:column;justify-content:space-between;width:100%;"]),Lc=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-12wi5l9-3"})(["align-items:center;cursor:pointer;display:flex;width:fit-content;"]),Bc=Y.default.div.withConfig({displayName:"S_EndAtWrapper",componentId:"sc-12wi5l9-4"})(["align-items:center;display:flex;"]),Mc=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-12wi5l9-5"})(["align-items:center;display:grid;grid-template-columns:max-content min-content auto;"]),zc=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-12wi5l9-6"})(["border:0.5px "," solid;height:12px;margin-left:",";margin-right:",";"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),Uc=function(e){var t=e.thumbnailSrc,n=e.title,i=e.caption1Text,c=e.caption2Text,o=e.guideText,s=e.endAtText,a=e.endAtColorTheme,r=e.endAtNoticeText,l=e.onClickThumbnail,d=Object(M.a)("translation").t;return Object(Z.jsxs)(Nc,{children:[Object(Z.jsx)(kc,{onClick:l,children:Object(Z.jsx)(F.ImageView,{src:t,ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:"responsive",borderMode:"use"})}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsxs)(Rc,{children:[Object(Z.jsxs)("div",{children:[Object(Z.jsx)(Lc,{children:Object(Z.jsx)(F.D_TextLabel,{text:n,styleTheme:"headingBold",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"})}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsxs)(Mc,{children:[Object(Z.jsx)(F.D_TextLabel,{text:d("str_2493",{SessionCnt:i}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),c&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(zc,{}),Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1})]})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),s&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(Bc,{children:Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"caption1Regular",colorTheme:a||"sysTextSecondary",tooltipText:r,tooltipPosition:"top"})})]})]}),Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",lineLimit:1,ellipsisMode:"use",wordBreak:"break_all"})]})]})};var Fc=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-uo73k4-0"})(["display:flex;justify-content:center;width:100%;"]),Vc=Y.default.div.withConfig({displayName:"S_SideBar",componentId:"sc-uo73k4-1"})(["height:max-content;min-width:264px;overflow-y:scroll;position:sticky;top:",";width:264px;"],(function(e){return e.theme.spacing.spacingG})),Wc=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-uo73k4-2"})(["height:100%;overflow-y:auto;padding-left:",";padding-top:",";width:888px;"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),Hc=function(e){var t=e.sideBar,n=e.main;return Object(Z.jsxs)(Fc,{children:[Object(Z.jsx)(Vc,{children:t}),Object(Z.jsx)(Wc,{children:n})]})},Gc={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var Xc=Y.default.div.withConfig({displayName:"S_OngoingClassItemWrapper",componentId:"sc-14mt7zh-0"})(["border-bottom:1px solid;border-color:",";padding-bottom:",";padding-top:",";&:last-child{border:none;}"],(function(e){return e.theme.ui_cpnt_card_border}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),qc=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-14mt7zh-1"})(["margin-top:",";"],(function(e){return e.theme.spacing.spacingI})),Kc=function(){Object(H.a)("C00007OngoingClass");var e=Object(M.a)("translation").t,t=dn("MY_CLASS"),n=Object(i.c)(),o=Object(c.k)(),s=Object(c.m)().channelCode,r=Object(i.d)(a.c),l=Object(i.d)(St.f),d=Object(i.d)(St.g),u=Object(i.d)(G.l),p=Object(i.d)(St.e),m=U().tabs,j=r?{title:e("str_seo_c00007_in_progress_t
1itle",{menuName:r.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:e("str_seo_c00007_in_progress_desc",{channelName:r.title,interpolation:{escapeValue:!1}})}:null;Object(gc.c)({manifest:Gc,isActivated:!0,data:j,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return n(Object(St.c)()),function(){n(Object(St.h)()),n(Object(X.db)())}}),[]);var g=function(e){var t,n=null!==(t=null===u||void 0===u?void 0:u.get(e))&&void 0!==t&&t,i=null===d||void 0===d?void 0:d.some((function(t){return t.id===e}));o.push(Object(h.l)(n&&i?S:I,{channelCode:s,classId:e}),{classId:e})},_=Object(b.useMemo)((function(){return[{title:e("str_c00007myclass_ongoingclass"),isActive:!0},{title:e("str_c00007myclass_purchasedclass"),isActive:!1,onClick:function(){return o.push(Object(h.l)(T,{channelCode:s}))}}]}),[]);return Object(Z.jsx)(F.WTContainersBox,{layoutType:m.length>1?"WTH_1":"WTM_1",isLoadingContainer1:p,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(Z.Fragment,{children:[1===m.length&&Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(Hc,{sideBar:Object(Z.jsx)(F.D_UserDesktopSideTab,{itemArray:_}),main:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_TextLabel,{text:e("str_c00007myclass_ongoingclass"),styleTheme:"displayBold"}),0===l.length?Object(Z.jsx)(qc,{children:Object(Z.jsx)(F.D_TextLabel,{text:e("str_seller_c00007myclass_noongoingclass"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsx)(Z.Fragment,{children:l.map((function(n){var i,c,a,r,l=t?un(n.contentEnrollment.endAt,e):null;return Object(Z.jsx)(Xc,{children:Object(Z.jsx)(Pc,{thumbnailSrc:n.coverImageSrc,title:n.title,caption1Text:String(n.totalEpisodes),caption2Text:String(n.seriesAdditionalInfo.director),progress:n.progress,guideText:(null===(i=n.latestSeriesConsumeRecord)||void 0===i||null===(c=i.post)||void 0===c?void 0:c.title)||e("str_7075"),startBtnTitle:null!==(a=n.latestSeriesConsumeRecord)&&void 0!==a&&null!==(r=a.post)&&void 0!==r&&r.id?e("str_2497"):e("str_key_seller_scene_c00007myclass_itemlist_button_start"),endAtText:null===l||void 0===l?void 0:l.text,endAtColorTheme:null===l||void 0===l?void 0:l.colorTheme,endAtNoticeText:l?e("str_c00007myclass_enddate_notice"):void 0,onClickThumbnail:function(){return g(n.id)},onClickTitle:function(){return g(n.id)},onStartClick:function(){var e,t,i;return t=n.id,void((i=null===n||void 0===n||null===(e=n.latestSeriesConsumeRecord)||void 0===e?void 0:e.postId)?o.push(Object(h.l)(P,{channelCode:s,classId:t,sessionId:i},{prevPath:"progress"})):o.push(Object(h.l)(S,{channelCode:s,classId:t},{prevPath:"progress"})))}})},n.id)}))})]})})]})})},Yc={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var Zc=Y.default.div.withConfig({displayName:"S_PurchasedClassList",componentId:"sc-tk7e53-0"})(["column-gap:24px;display:grid;grid-template-columns:repeat(2,1fr);"]),Qc=Y.default.div.withConfig({displayName:"S_PurchasedClassItemWrapper",componentId:"sc-tk7e53-1"})(["min-width:408px;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingH})),$c=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-tk7e53-2"})(["margin-top:",";"],(function(e){return e.theme.spacing.spacingI})),Jc=function(){Object(H.a)("C00007PurchasedClass");var e=Object(M.a)("translation").t,t=dn("MY_CLASS"),n=Object(i.c)(),o=Object(c.k)(),s=Object(c.m)().channelCode,r=Object(i.d)(a.c),l=Object(i.d)(St.g),d=Object(i.d)(St.e),u=U().tabs,p=r?{title:e("str_seo_c00007_in_progress_title",{menuName:r.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:e("str_seo_c00007_in_progress_desc",{channelName:r.title,interpolation:{escapeValue:!1}})}:null;Object(gc.c)({manifest:Yc,isActivated:!0,data:p,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return n(Object(St.a)()),n(Object(St.b)()),function(){n(Object(St.h)())}}),[]);var m=Object(b.useMemo)((function(){return[{title:e("str_c00007myclass_ongoingclass"),isActive:!1,onClick:function(){return o.push(Object(h.l)(v,{channelCode:s}))}},{title:e("str_c00007myclass_purchasedclass"),isActive:!0}]}),[]);return Object(Z.jsx)(F.WTContainersBox,{layoutType:u.length>1?"WTH_1":"WTM_1",isLoadingContainer1:d,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(Z.Fragment,{children:[1===u.length&&Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(Hc,{sideBar:Object(Z.jsx)(F.D_UserDesktopSideTab,{itemArray:m}),main:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_TextLabel,{text:e("str_c00007myclass_purchasedclass"),styleTheme:"displayBold"}),0===l.length?Object(Z.jsx)($c,{children:Object(Z.jsx)(F.D_TextLabel,{text:e("str_seller_c00007myclass_nopurchasedclass"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(Zc,{children:l.map((function(n){var i=t?un(n.contentEnrollment.endAt,e):null;return Object(Z.jsx)(Qc,{children:Object(Z.jsx)(Uc,{thumbnailSrc:n.coverImageSrc,title:n.title,caption1Text:String(n.totalEpisodes),caption2Text:String(n.seriesAdditionalInfo.director),guideText:n.actionedAt?e("str_seller_c00007myclass_purchasedclass_purchaseddate",{purchasedDate:me.a.tz(n.actionedAt).format("YYYY-MM-DD")}):e("str_7079"),endAtText:null===i||void 0===i?void 0:i.text,endAtColorTheme:null===i||void 0===i?void 0:i.colorTheme,endAtNoticeText:i?e("str_c00007myclass_enddate_notice"):void 0,onClickThumbnail:function(){return e=n.id,void o.push(Object(h.l)(S,{channelCode:s,classId:e}));var e}})},n.id)}))})]})]})})]})})};var eo=function(){return Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(c.d,{exact:!0,path:v,render:function(){return Object(Z.jsx)(Kc,{})}}),Object(Z.jsx)(c.d,{exact:!0,path:T,render:function(){return Object(Z.jsx)(Jc,{})}}),Object(Z.jsx)(c.c,{to:v})]})};var to=Y.default.div.withConfig({displayName:"S_BookmarkListItem",componentId:"sc-2ut50o-0"})(["cursor:pointer;display:flex;flex-direction:column;margin-bottom:",";width:100%;&:first-child{margin-left:0;}&:last-child{margin-right:0;}"],(function(e){return e.theme.spacing.spacingG})),no=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-2ut50o-1"})(["position:relative;width:100%;"]),io=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-2ut50o-2"})(["display:flex;flex-direction:column;"]),co=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-2ut50o-3"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),oo=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-2ut50o-4"})(["align-items:center;display:flex;gap:1px;"]),so=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-2ut50o-5"})(["left:8px;position:absolute;top:8px;"]),ao=Y.default.div.withConfig({displayName:"S_ClassContentsBox",componentId:"sc-2ut50o-6"})(["display:flex;flex-direction:column;margin-top:",";"],(function(e){return e.theme.spacing.spacingD})),ro=Y.default.div.withConfig({displayName:"S_ClassCountCaptionWrapper",componentId:"sc-2ut50o-7"})(["align-items:center;display:flex;margin-bottom:",";margin-top:",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingA})),lo=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-2ut50o-8"}
1)(["border:0.5px "," solid;height:12px;margin-left:",";margin-right:",";"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),uo=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-2ut50o-9"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),po=function(e){var t,n=e.labels,i=e.seriesAdditionalInfo,c=e.totalClassCount,o=e.coverImageSrc,s=e.title,a=e.isPurchased,r=e.hasEnrolled,l=e.isRegistered,d=e.reviewProps,u=e.limitedTimeBenefitProps,p=e.discountBenefitProps,m=e.endAtDisplay,b=e.onClickItem,j=Object(M.a)("translation").t,g=null!==(t=null===i||void 0===i?void 0:i.director)&&void 0!==t?t:"",_=d.isReviewAmountVisible,h=d.isReviewScoreVisible,f=d.reviewAmount,x=d.reviewScore,O=u.isPromotionPanelShow,v=u.badgeText,T=u.badgeTextColor,y=p.hasDiscountBenefit,C=p.isPriceInfoShow,S=p.originalPriceLabel,I=p.finalPriceLabel,w=p.discountRate;return Object(Z.jsxs)(to,{onClick:b,children:[Object(Z.jsxs)(no,{children:[Object(Z.jsx)(so,{children:!a&&O&&Object(Z.jsx)(gn,{text:v,textColor:T})}),Object(Z.jsx)(F.ImageView,{src:o||"",ratio:"16_9",scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(ao,{children:[Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"subTitleBold",ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),l?Object(Z.jsx)(F.D_TextLabel,{text:j(r?"str_8183":"str_8182"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"}):Object(Z.jsxs)(Z.Fragment,{children:[C&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsxs)(io,{children:[y&&S&&w>0&&Object(Z.jsxs)(co,{children:[Object(Z.jsxs)(oo,{children:[Object(Z.jsx)(F.D_TextLabel,{text:w,styleTheme:"leadParaBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:j("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:I,styleTheme:"body2Bold",colorTheme:"sysTextPrimary"})]})]}),(h||_)&&Object(Z.jsxs)(uo,{children:[h&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:24,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:x.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),_&&Object(Z.jsx)(F.D_TextLabel,{text:j(f>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:f}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]})]}),m&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:m.text,styleTheme:"caption1Regular",colorTheme:m.colorTheme})]}),Object(Z.jsxs)(ro,{children:[Object(Z.jsx)(F.D_TextLabel,{text:j("str_2493",{SessionCnt:c}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),g.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(lo,{}),Object(Z.jsx)(F.D_TextLabel,{text:g,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1})]})]}),Object(Z.jsx)($,{labels:n})]})]})},mo={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var bo=Y.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-1dlod02-0"})(["padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),jo=Y.default.div.withConfig({displayName:"S_ClassListWrapper",componentId:"sc-1dlod02-1"})(["display:flex;flex:1;flex-direction:column;"]),go=Y.default.div.withConfig({displayName:"S_SlideRow",componentId:"sc-1dlod02-2"})(["display:grid;grid-column-gap:24px;grid-template-columns:1fr 1fr;overflow:auto;width:100%;&::-webkit-scrollbar{display:none;}"]),_o=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-1dlod02-3"})(["margin-top:",";"],(function(e){return e.theme.spacing.spacingI})),ho=function(){Object(H.a)("C00007BookmarkList");var e=Object(M.a)("translation").t,t=Object(i.c)(),n=Object(c.k)(),o=Object(i.d)(a.c),s=Object(i.d)(G.w),r=Object(i.d)(G.m),l=Object(i.d)(G.C),d=Object(i.d)(G.I),u=Object(i.d)(St.g),p=Object(i.d)(G.l),m=Object(K.a)(),j=U(),g=j.tabs,_=j.bookmarksTabTitle,f=z(),x=f.COMMON,O
1=x.isReviewTabActive,v=x.isStarRatingActive,T=f.CLASSLIST,y=T.totalClasslistPriceAppearance,C=T.totalClasslistInstallmentsMonth,w=T.isHideAllClassReviewScore,E=T.isHideAllClassReviewScoreBelow4,A=T.isHideAllClassReviewAmount,D=dn("BOOKMARK"),P=pn(),N=Object(b.useMemo)((function(){return d.filter((function(e){var t;return null===(t=e.series)||void 0===t?void 0:t.isPublished}))}),[d]),k=Object(b.useMemo)((function(){var e;if(!o||s)return null;var t=(null===o||void 0===o?void 0:o.baseCurrency)||"KRW",n=Object.fromEntries(N.map((function(e){var t=e.id,n=e.series,i=l.find((function(e){return e.id===n.id}));return[t,{availableProducts:(null===i||void 0===i?void 0:i.availableProducts)||[],isPreparing:!(null===i||void 0===i||!i.isPreparing),preparingMessage:ln(null===i||void 0===i?void 0:i.seriesDetailDesignConfig)}]})));return on.createSeriesesPriceViewModels(t,{priceAppearance:y,installmentsMonth:C},n,null!==(e=m.applicableBenefits)&&void 0!==e?e:[])}),[o,y,C,m.applicableBenefits,s,N,l]),R=o?{title:e("str_seo_c00007_bookmark_list_title",{menuName:o.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:e("str_seo_c00007_bookmark_list_desc",{channelName:o.title,interpolation:{escapeValue:!1}})}:null;return Object(gc.c)({manifest:mo,isActivated:!0,data:R,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return window.scrollTo(0,0),t(Object(X.N)({limit:50})),m.trigger(q.d.EXPRESSION_VIEW,{pAppCode:W.Y.C00007.CODE}),function(){t(Object(X.db)())}}),[]),Object(Z.jsx)(F.WTContainersBox,{layoutType:g.length>1?"WTI_1":"WTM_1",isLoadingContainer1:s||m.isLoading,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(Z.Fragment,{children:[1===g.length&&Object(Z.jsx)(F.Divider,{}),Object(Z.jsxs)(bo,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(F.D_TextLabel,{text:_||e("str_papp_vod_class_bookmarklist"),styleTheme:"displayBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),0===N.length?Object(Z.jsx)(_o,{children:Object(Z.jsx)(F.D_TextLabel,{text:e("str_2350"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsx)(jo,{children:Object(Z.jsx)(go,{children:N.slice().map((function(e){var t,i,c,o=null===k||void 0===k?void 0:k[e.id],s=function(e){var t,n,i,c,o=null!==(t=null===e||void 0===e||null===(n=e.find((function(e){return"AVG_REVIEW_POINT"===e.type})))||void 0===n?void 0:n.value)&&void 0!==t?t:0,s=null!==(i=null===e||void 0===e||null===(c=e.find((function(e){return"REVIEW_COUNTS"===e.type})))||void 0===c?void 0:c.value)&&void 0!==i?i:0;return{reviewScore:o,reviewAmount:s,isReviewScoreVisible:o>=(E?4:1)&&!w&&O&&v,isReviewAmountVisible:s>0&&!A&&O}}((null===(t=l.find((function(t){return t.id===e.seriesId})))||void 0===t?void 0:t.extraInfos)||[]),a=rn.createPricingDisplayProps(o),r
1=null===o||void 0===o||null===(i=o.customField)||void 0===i?void 0:i.isFree,d=null!==(c=null===p||void 0===p?void 0:p.get(e.seriesId))&&void 0!==c&&c,m=null===u||void 0===u?void 0:u.some((function(t){return t.id===e.seriesId})),b=!1,j=!1;null!==o&&void 0!==o&&o.source?(b=m,j=d):(b=!1,j=d);return Object(Z.jsx)(po,{labels:e.series.labels,totalClassCount:e.series.totalEpisodes,seriesAdditionalInfo:e.series.seriesAdditionalInfo,coverImageSrc:e.series.coverImageSrc,title:e.series.title,isPurchased:b,hasEnrolled:j,isRegistered:!!b||!!r&&!!j,reviewProps:s,limitedTimeBenefitProps:a.limitedTimeBenefitViewModel,discountBenefitProps:a.discountBenefitViewModel,endAtDisplay:D?P(e.seriesId):null,onClickItem:function(){return t=e.seriesId,i=b&&j,void n.push(Object(h.l)(i?S:I,{channelCode:h.f.getChannelCode(),classId:t}));var t,i}},e.id)}))})}),r&&Object(Z.jsx)(ie,{error:r})]})]})})},fo=n(2762);var xo=Y.default.div.withConfig({displayName:"S_ContentsListItem",componentId:"sc-a3admq-0"})(["cursor:pointer;display:flex;flex-direction:column;width:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}"],(function(e){var t=e.itemLimit;return t?"calc(".concat(100/t,"% - 24px)"):"100%"})),Oo=Y.default.div.withConfig({displayName:"S_ThumbnailWrapper",componentId:"sc-a3admq-1"})(["position:relative;width:100%;"]),vo=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-a3admq-2"})(["display:flex;flex-direction:column;"]),To=Y.default.div.withConfig({displayName:"S_DiscountInfo",componentId:"sc-a3admq-3"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),yo=Y.default.div.withConfig({displayName:"S_DiscountPercentageWrapper",componentId:"sc-a3admq-4"})(["align-items:center;display:flex;gap:1px;"]),Co=Y.default.div.withConfig({displayName:"S_SalesPeriodWrapper",componentId:"sc-a3admq-5"})(["left:8px;position:absolute;top:8px;"]),So=Y.default.div.withConfig({displayName:"S_EpisodeTextWrapper",componentId:"sc-a3admq-6"})(["-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;margin-top:",";overflow:hidden;text-align:left;text-overflow:ellipsis;width:100%;"],(function(e){return e.theme.spacing.spacingC})),Io=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-a3admq-7"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),wo=Y.default.div.withConfig({displayName:"S_AdditionalInfoWrapper",componentId:"sc-a3admq-8"})(["align-items:center;display:flex;padding-bottom:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingD})),Eo=Y.default.div.withConfig({displayName:"S_LabelList",componentId:"sc-a3admq-9"})(["align-items:center;display:inline-flex;flex-wrap:wrap;gap:",";width:100%;"],(function(e){return e.theme.spacing.spacingB})),Ao=function(e){var t=e.titleText,n=e.imageSrc,i=e.itemLimit,c=e.imgRatio,o=e.isPurchased,s=e.hasEnrolled,a=e.isRegistered,r=e.sessionAmount,l=e.director,d=e.labels,u=e.reviewProps,p=e.limitedTimeBenefitProps,m=e.discountBenefitProps,b=e.onClickItem,j=Object(M.a)().t,g=u.isReviewAmountVisible,_=u.isReviewScoreVisible,h=u.reviewAmount,f=u.reviewScore,x=p.isPromotionPanelShow,O=p.badgeText,v=p.badgeTextColor,T=m.hasDiscountBenefit,y=m.isPriceInfoShow,C=m.originalPriceLabel,S=m.finalPriceLabel,I=m.discountRate;return Object(Z.jsxs)(xo,{itemLimit:i,onClick:b,children:[Object(Z.jsxs)(Oo,{children:[Object(Z.jsx)(Co,{children:!o&&x&&Object(Z.jsx)(gn,{text:O,textColor:v})}),Object(Z.jsx)(F.ImageView,{src:n,ratio:c,scaleType:"cover",shapeType:"round",radius:16,width:"responsive",backgroundFillMode:"use",borderMode:"use"})]}),Object(Z.jsxs)(So,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,ellipsisMode:"use",lineLimit:1,wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"})]}),a?Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsx)(F.D_TextLabel,{text:j(s?"str_8183":"str_8182"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})}):Object(Z.jsxs)(Z.Fragment,{children:[y&&Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(vo,{children:[T&&C&&I>0&&Object(Z.jsxs)(To,{children:[Object(Z.jsxs)(yo,{children:[Object(Z.jsx)(F.D_TextLabel,{text:I,styleTheme:"leadParaBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:j("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"})]}),Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"})]})}),(_||g)&&Object(Z.jsxs)(Io,{children:[_&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:16,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:f.toPrecision(2),styleTheme:"caption1Bold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),g&&Object(Z.jsx)(F.D_TextLabel,{text:j(h>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:h}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}
1)]})]}),Object(Z.jsxs)(wo,{children:[r>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:j("str_2493",{SessionCnt:r}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",wordBreak:"keep_all"})]}),l&&l.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Divider,{direction:"vertical",height:16}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:l,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1})]})]}),Object(Z.jsx)(Eo,{children:d.map((function(e){var t=e.id,n=e.name;return Object(Z.jsx)(F.D_Chip,{displayType:"label",text:n},t)}))})]})};var Do=Y.default.div.withConfig({displayName:"S_NavBar",componentId:"sc-18wgtac-0"})(["align-items:center;cursor:pointer;display:flex;padding-bottom:",";padding-top:",";width:fit-content;"],(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingE})),Po=function(e){var t=e.onClick,n=Object(M.a)("translation").t;return Object(Z.jsxs)(Do,{onClick:t,children:[Object(Z.jsx)(F.D_IconButton,{iconSize:20,iconName:"ic_arrow_left_bold",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_icon_sys_grey_01"}),Object(Z.jsx)(F.Spacing,{spacingType:"width",size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_back")})]})},No={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \uc2dc\ub9ac\uc988\ub97c \ub458\ub7ec\ubcf4\uc138\uc694.",thumbnailSrc:"{seriesCoverImageSrc}"},keyMappingDefinition:{title:"title",description:"description",thumbnailSrc:"thumbnailSrc"}};var ko=Y.default.div.withConfig({displayName:"S_SectionsWrapper",componentId:"sc-omtd0a-0"})(["margin:0 auto;max-width:1400px;min-width:1200px;"]),Ro=Y.default.div.withConfig({displayName:"S_ContentsListElementsBox",componentId:"sc-omtd0a-1"})(["display:grid;grid-gap:48px 16px;grid-template-columns:",";padding-left:",";padding-right:",";"],(function(e){var t=e.columnCount;return"repeat(".concat(t,", 1fr)")}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),Lo=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-omtd0a-2"})(["padding-left:",";"],(function(e){return e.theme.spacing.spacingG})),Bo=Y.default.div.withConfig({displayName:"S_EmptyWrapper",componentId:"sc-omtd0a-3"})(["align-items:center;align-items:flex-start;display:flex;height:100%;justify-content:center;padding-top:",";"],(function(e){return e.theme.spacing.spacingI})),Mo=function(){var e,t,n,o;Object(H.a)("C00007ContentsListDetail");var s=Object(M.a)("translation").t,r=Object(i.c)(),l=Object(c.k)(),d=Object(c.m)(),u=d.channelCode,p=d.sectionId,m=Object(i.d)(St.g),j=Object(i.d)(G.l),g=Object(i.d)(G.e),_=Object(i.d)(a.c),f=Object(i.d)(G.i),O=Object(i.d)(G.u),v=Object(K.a)(),T=z(Number(p)),y=T.COMMON,C=y.isReviewTabActive,w=y.isStarRatingActive,E=T.CLASSLIST,A=E.selectedClasslistPriceAppearance,D=E.selectedClasslistInstallmentsMonth,P=E.isHideReviewScore,N=E.isHideReviewAmount,k=E.isHideReviewScoreBelow4,R=lc(null!==(e=rc((null===f||void 0===f?void 0:f.sectionDesignTemplate)||""))&&void 0!==e?e:sc.C00007),L=R.imgRatio,B=R.column,U=Object(b.useMemo)((function(){var e,t,n,i;if(!_||!f||!g||O)return null;var c=(null===_||void 0===_?void 0:_.baseCurrency)||"KRW",o=(null===A||void 0===A||null===(e=A.find((function(e){return Object(J.a)(e,1)[0]===Number(p)})))||void 0===e?void 0:e[1])||"LOWEST_PRICE",s=(null===D||void 0===D||null===(t=D.find((function(e){return Object(J.a)(e,1)[0]===Number(p)})))||void 0===t?void 0:t[1])||2,a=Object.fromEntries(null===(n=f.seriesListSectionItems)||void 0===n?void 0:n.map((function(e){var t,n=e.id,i=e.series,c=null===i||void 0===i?void 0:i.id,o=null===g||void 0===g||null===(t=g.get(Number(p)))||void 0===t?void 0:t.find((function(e){return e.id===c}));return[n,{availableProducts:(null===o||void 0===o?void 0:o.availableProducts)||[],isPreparing:!(null===o||void 0===o||!o.isPreparing),preparingMessage:ln(null===o||void 0===o?void 0:o.seriesDetailDesignConfig)}
1]})));return on.createSeriesesPriceViewModels(c,{priceAppearance:o,installmentsMonth:s},a,null!==(i=v.applicableBenefits)&&void 0!==i?i:[])}),[_,A,D,v.applicableBenefits,O,f,g]),V=_?{title:s("str_seo_c00007_contents_list_detail_title",{menuName:_.pAppCodeMenuItemNameSet[W.Y.C00007.CODE]}),description:s("str_seo_c00007_contents_list_detail_desc",{channelName:_.title})}:null;return Object(gc.c)({manifest:No,isActivated:!0,data:V,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return r(Object(X.B)({sectionId:p})),v.trigger(q.d.EXPRESSION_VIEW,{pAppCode:W.Y.C00007.CODE}),function(){r(Object(X.cb)())}}),[p]),Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTM_1",isLoadingContainer1:O||v.isLoading,content1:Object(Z.jsxs)(ko,{children:[Object(Z.jsxs)(Lo,{children:[Object(Z.jsx)(Po,{onClick:function(){l.push(Object(h.l)(x,{channelCode:u}))}}),Object(Z.jsx)(F.D_TextLabel,{text:null===f||void 0===f?void 0:f.title,styleTheme:"displayBold"})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),(null!==(t=null===f||void 0===f||null===(n=f.seriesListSectionItems)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0?Object(Z.jsx)(Ro,{columnCount:B,children:null===f||void 0===f||null===(o=f.seriesListSectionItems)||void 0===o?void 0:o.map((function(e){var t,n,i,c,o,s,a,r,d=e.series,b=e.id,_=null===U||void 0===U?void 0:U[b],f=null===d||void 0===d?void 0:d.id,x=null===g||void 0===g||null===(t=g.get(Number(p)))||void 0===t?void 0:t.find((function(e){return e.id===f})),O=function(e){var t,n,i,c,o=null!==(t=null===e||void 0===e||null===(n=e.find((function(e){return"AVG_REVIEW_POINT"===e.type})))||void 0===n?void 0:n.value)&&void 0!==t?t:0,s=null!==(i=null===e||void 0===e||null===(c=e.find((function(e){return"REVIEW_COUNTS"===e.type})))||void 0===c?void 0:c.value)&&void 0!==i?i:0;return{reviewScore:o,reviewAmount:s,isReviewScoreVisible:o>=(k?4:1)&&!P&&C&&w,isReviewAmountVisible:s>0&&!N&&C}}((null===x||void 0===x?void 0:x.extraInfos)||[]),v=rn.createPricingDisplayProps(_),T=null===_||void 0===_||null===(n=_.customField)||void 0===n?void 0:n.isFree,y=null!==(i=null===j||void 0===j?void 0:j.get(f))&&void 0!==i&&i,E=null===m||void 0===m?void 0:m.some((function(e){return e.id===f})),A=!1,D=!1;null!==_&&void 0!==_&&_.source?(A=E,D=y):(A=!1,D=y);return Object(Z.jsx)(Ao,{imageSrc:null!==(c=null===d||void 0===d?void 0:d.coverImageSrc)&&void 0!==c?c:"",titleText:null!==(o=null===d||void 0===d?void 0:d.title)&&void 0!==o?o:"",imgRatio:L,sessionAmount:null!==(s=null===x||void 0===x?void 0:x.totalEpisodes)&&void 0!==s?s:0,director:null!==(a=null===x||void 0===x?void 0:x.seriesAdditionalInfo.director)&&void 0!==a?a:"",labels:null!==(r=null===x||void 0===x?void 0:x.labels)&&void 0!==r?r:[],isPurchased:A,hasEnrolled:D,isRegistered:!!A||!!T&&!!D,reviewProps:O,limitedTimeBenefitProps:v.limitedTimeBenefitViewModel,discountBenefitProps:v.discountBenefitViewModel,onClickItem:function(){return function(e,t){l.push(Object(h.l)(t?S:I,{channelCode:u,classId:e},{prevPath:fo.c.HOME,sectionId:p}))}(null===d||void 0===d?void 0:d.id,A&&D)}},b)}))}):Object(Z.jsx)(Bo,{children:Object(Z.jsx)(F.D_TextLabel,{text:s("str_1323"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"})})]})})},zo=n(499),Uo=n(194);var Fo=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-17bhd2z-0"})(["display:flex;justify-content:center;width:100%;"]),Vo=Y.default.div.withConfig({displayName:"S_SideBar",componentId:"sc-17bhd2z-1"}
1)(["height:max-content;min-width:264px;overflow-y:scroll;padding-top:",";position:sticky;top:0;width:264px;"],(function(e){return e.theme.spacing.spacingG})),Wo=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-17bhd2z-2"})(["height:100%;overflow-y:auto;padding-left:",";padding-top:",";width:888px;"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),Ho=function(e){var t=e.sideBar,n=e.main;return Object(Z.jsxs)(Fo,{children:[Object(Z.jsx)(Vo,{children:t}),Object(Z.jsx)(Wo,{children:n})]})};var Go=function(e){var t=e.error,n=e.onConfirmClick,i=(t.type,t.status);return Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTP_1",content1:Object(Z.jsx)(g.n,{statusCode:i,errorCode:null===t||void 0===t?void 0:t.code,onClickConfirmButton:function(){n&&n()}})})},Xo="ALL_REVIEWS",qo="MY_REVIEW",Ko="CLASS_REVIEWS";function Yo(e){var t=e.isLoading,n=void 0!==t&&t,i=e.total,c=e.items,o=e.page,s=void 0===o?1:o,a=e.fetchNextPage,r=Object(b.useState)(""),l=Object(J.a)(r,2),d=l[0],u=l[1],p=Object(b.useRef)();return{lastItemRef:Object(b.useCallback)((function(e){n||0===c.length||(p.current&&p.current.disconnect(),c.length>=i||(p.current=new IntersectionObserver((function(e){e[0].isIntersecting&&a(s+1,d)})),e&&p.current.observe(e)))}),[n,c.length,d]),changeSearchQuery:function(e){u(e),a(1,e)}}}var Zo=n(29),Qo=n(602);var $o=Y.default.div.withConfig({displayName:"S_TextWrapper",componentId:"sc-hhypqj-0"})(["width:100%;"]),Jo=Y.default.div.withConfig({displayName:"S_Header",componentId:"sc-hhypqj-1"})(["padding:",";padding-bottom:0;width:100%;"],(function(e){return e.theme.spacing.spacingF})),es=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-hhypqj-2"})(["height:452px;overflow-y:scroll;padding:",";padding-bottom:",";"],(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingI})),ts=Y.default.div.withConfig({displayName:"S_EmptyTextWrapper",componentId:"sc-hhypqj-3"})(["flex:1;padding-top:",";"],(function(e){return e.theme.spacing.spacingH})),ns=Y.default.div.withConfig({displayName:"S_ContentList",componentId:"sc-hhypqj-4"})(["display:flex;flex-wrap:wrap;gap:",";row-gap:",";"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingF})),is=Y.default.div.withConfig({displayName:"S_ContentItem",componentId:"sc-hhypqj-5"})(["align-items:flex-start;display:flex;flex:1;flex-direction:column;max-width:210px;min-width:210px;"]),cs=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-hhypqj-6"})(["cursor:pointer;width:100%;& > [x-pds-name='ImageView']{background-color:",";border:5px solid transparent;border-color:",";border-radius:16px;}"],(function(e){var t=e.theme;return e.hasFocuse?t.ui_profile_image_border_brandprimary:"transparent"}),(function(e){var t=e.theme;return e.hasFocuse?t.ui_profile_image_border_brandprimary:"transparent"})),os=Y.default.div.withConfig({displayName:"S_CaptionWrapper",componentId:"sc-hhypqj-7"})(["align-items:center;display:flex;"]),ss=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-hhypqj-8"})(["background-color:",";height:12px;margin-left:",";margin-right:",";width:1px;"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingA}),(function(e){return e.theme.spacing.spacingA})),as=Y.default.div.withConfig({displayName:"S_Bottom",componentId:"sc-hhypqj-9"})(["background-color:",";border-bottom-left-radius:24px;border-bottom-right-radius:24px;border-top:1px solid ",";bottom:0;display:flex;height:73px;justify-content:flex-end;padding:",";position:fixed;width:100%;"],(function(e){return e.theme.ui_cpnt_modal_base}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.spacing.spacingD})),rs=function(e){var t=e.classContents,n=e.selectedIds,i=e.requirementOption,c=e.onSelect,o=e.onClose,s=e.onNextPageClick,a=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(Jo,{children:[Object(Z.jsx)(F.D_TextLabel,{text:a("str_user_selectclass_modal_title"),styleTheme:"headingBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}
1),Object(Z.jsx)(F.D_TextLabel,{text:a("str_user_selectclassmodal_desc"),colorTheme:"sysTextSecondary",styleTheme:"subTitleRegular"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:function(){switch(i){case"1PERCENT":return a("str_user_selectclassmodal_caption_progress_1");case"10PERCENT":return a("str_user_selectclassmodal_caption_progress_10");case"100PERCENT":return a("str_user_selectclassmodal_caption_progress_100")}}(),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]}),Object(Z.jsx)(es,{children:Object(Z.jsx)(ns,{children:t.length>0?Object(Z.jsx)(Z.Fragment,{children:t.map((function(e){return Object(Z.jsxs)(is,{children:[Object(Z.jsx)(cs,{hasFocuse:n.includes(e.id),onClick:function(){return c(e.id)},children:Object(Z.jsx)(F.ImageView,{src:e.coverImageSrc,width:"responsive",height:"responsive",ratio:"16_9",scaleType:"cover",borderMode:"use",radius:16})}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)($o,{children:Object(Z.jsx)(F.D_TextLabel,{text:e.title,styleTheme:"body2Bold",ellipsisMode:"use",lineLimit:1})}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsxs)(os,{children:[Object(Z.jsx)(F.D_TextLabel,{text:a("str_2493",{SessionCnt:e.totalEpisodes}),styleTheme:"caption2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(ss,{}),Object(Z.jsx)("div",{style:{flex:1},children:Object(Z.jsx)(F.D_TextLabel,{text:e.author,styleTheme:"caption2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",wordBreak:"break_all",lineLimit:1})})]})]},e.id)}))}):Object(Z.jsx)(ts,{children:Object(Z.jsx)(F.D_TextLabel,{text:a("str_c00007_review_create_ineligible_class"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})})})}),Object(Z.jsxs)(as,{children:[Object(Z.jsx)(F.D_MainButton,{text:a("str_cancel"),size:"medium",styleTheme:"secondary",onClick:o}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_MainButton,{text:a("str_c00007_createreview_next_btn"),size:"medium",state:0===n.length?"disabled":"normal",onClick:s})]})]})};var ls=Y.default.label.withConfig({displayName:"S_IconUploadLabel",componentId:"sc-5sovuj-0"})(["align-items:center;cursor:pointer;display:flex;margin-right:24px;"]),ds=Y.default.span.withConfig({displayName:"S_Text",componentId:"sc-5sovuj-1"})(["color:",";font-size:",";margin-left:4px;"],(function(e){return e.theme.ui_temp_grey_01}),(function(e){return e.theme.desktopFontSize.caption1})),us=Y.default.input.withConfig({displayName:"S_InvisibleInput",componentId:"sc-5sovuj-2"})(["display:none;"]),ps=function(e){var t=e.iconName,n=void 0===t?"ic_image":t,i=e.label,c=e.fieldName,o=e.type,s=void 0===o?"file":o,a=e.accept,r=e.onChange;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(ls,{htmlFor:c,children:[Object(Z.jsx)(F.Icon,{iconName:n}),Object(Z.jsx)(ds,{children:i})]}),Object(Z.jsx)(us,{id:c,type:s,accept:a?"".concat(a,"/*"):"none",multiple:"image"===a,onChange:r})]})};var ms=Y.default.div.withConfig({displayName:"S_Header",componentId:"sc-137zdu4-0"})(["padding:",";padding-bottom:0;width:100%;"],(function(e){return e.theme.spacing.spacingF})),bs=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-137zdu4-1"})(["min-height:max-content;overflow-y:scroll;padding-top:",";"],(function(e){return e.theme.spacing.spacingD})),js=Y.default.div.withConfig({displayName:"S_RatingArea",componentId:"sc-137zdu4-2"})(["align-items:flex-end;display:flex;padding:0 ",";"],(function(e){return e.theme.spacing.spacingF})),gs=Y.default.div.withConfig({displayName:"S_ReviewContent",componentId:"sc-137zdu4-3"})(["height:",";overflow-y:scroll;padding:0 ",";padding-top:",";"],(function(e){var t=e.$height;return t||"238px"}),(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingE})),_s=Y.default.div.withConfig({displayName:"S_TargetClasses",componentId:"sc-137zdu4-4"})(["padding:"," ",";"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingF})),hs=Y.default.div.withConfig({displayName:"S_ChipWrapper",componentId:"sc-137zdu4-5"})(["display:flex;flex-wrap:wrap;gap:4px;row-gap:8px;"]),fs=Y.default.div.withConfig({displayName:"S_ImageUploadArea",componentId:"sc-137zdu4-6"})(["padding:"," ",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingF})),xs=Y.default.div.withConfig({displayName:"S_IconUploadButtonWrapper",componentId:"sc-137zdu4-7"})(["align-items:center;display:flex;"]),Os=Y.default.div.withConfig({displayName:"S_ImageListWrapper",componentId:"sc-137zdu4-8"})(["display:flex;flex-direction:column;gap:",";padding:"," 0;width:100%;"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingD})),vs=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-137zdu4-9"})(["position:relative;"]),Ts=Y.default.button.withConfig({displayName:"S_DeleteButton",componentId:"sc-137zdu4-10"})(["align-items:center;background:rgba(0,0,0,0.8);border:none;border-radius:50px;cursor:pointer;display:flex;height:32px;justify-content:center;padding:8px;position:absolute;right:8px;top:8px;width:32px;"]),ys=Y.default.div.withConfig({displayName:"S_Bottom",componentId:"sc-137zdu4-11"})(["background-color:",";border-bottom-left-radius:24px;border-bottom-right-radius:24px;border-top:1px solid ",";bottom:0;display:flex;height:73px;justify-content:flex-end;padding:",";position:fixed;width:100%;"],(function(e){return e.theme.ui_cpnt_modal_base}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.spacing.spacingD}
1)),Cs=function(e){var t=e.selectedClasses,n=e.previewImageUrls,i=e.useScore,c=e.onScoreChange,o=e.onUploadImageChange,s=e.onUploadImageRemove,a=e.onPrevPageClick,r=Object(M.a)("translation").t,l=Object(b.useRef)(null),d=Object(Zo.useFormContext)().formState;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(ms,{children:[Object(Z.jsx)(F.D_TextLabel,{text:r("str_user_c00007createreview_modal_title"),styleTheme:"headingBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.D_TextLabel,{text:r("str_user_c00007createreview_modal_desc"),colorTheme:"sysTextSecondary",styleTheme:"subTitleRegular"})]}),Object(Z.jsxs)(bs,{children:[i&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(js,{children:Object(Z.jsx)(Je,{step:1,iconSize:40,onChange:c})}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"})]}),Object(Z.jsx)(gs,{$height:i?"238px":"285px",children:Object(Z.jsx)(F.D_BlogTextField,{name:"content",hintText:r("str_86"),maxLength:f.i.content.maxLength,autoMinRows:7,autoMaxRows:12,spacingMode:"none",validation:{required:{value:!0,message:r("str_err_2090")},minLength:{value:f.i.content.minLength,message:r("str_c00007_text_limit_alert")},maxLength:{value:f.i.content.maxLength,message:r("str_c00007_text_limit_alert")}}})}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsxs)(_s,{children:[Object(Z.jsx)(F.D_TextLabel,{text:r("str_c00007_selected_class")}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(hs,{children:null===t||void 0===t?void 0:t.map((function(e){return Object(Z.jsx)(F.D_Chip,{displayType:"information",text:"".concat(e.targetContent.title).concat(e.targetProgressRate?" \u2022 ".concat(e.targetProgressRate):"")},e.targetId)}))})]}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsxs)(fs,{children:[Object(Z.jsxs)(xs,{children:[Object(Z.jsx)(ps,{label:r("str_image"),fieldName:"selectedImages",accept:"image",onChange:function(e){o&&o(e,(function(){setTimeout((function(){l.current&&l.current.scrollIntoView({behavior:"smooth",block:"nearest"})}),0)}))}}),Object(Z.jsx)(F.D_TextLabel,{text:r("str_screenshot_notice"),styleTheme:"caption2Regular",colorTheme:"sysTextTertiary"})]}),n&&n.length>0&&Object(Z.jsx)(Os,{children:null===n||void 0===n?void 0:n.map((function(e,t){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsxs)(vs,{ref:t===n.length-1?l:null,children:[Object(Z.jsx)(F.ImageView,{src:e,width:"responsive",borderMode:"use",shapeType:"round"}),Object(Z.jsx)(Ts,{onClick:function(e){return s(e,t)},children:Object(Z.jsx)(F.Icon,{iconName:"ic_xmark",colorKey:"ui_temp_white",size:16})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]},e)}))})]})]}),Object(Z.jsxs)(ys,{children:[Object(Z.jsx)(F.D_MainButton,{text:r("str_user_back_btn"),size:"medium",styleTheme:"secondary",onClick:a}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_MainButton,{text:r("str_register"),size:"medium",state:d.isValid?"normal":"disabled",type:"submit"})]})]})};var Ss=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-1bko1j1-0"})(["align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;padding:",";"],(function(e){return e.theme.spacing.spacingF})),Is=Y.default.div.withConfig({displayName:"S_Bottom",componentId:"sc-1bko1j1-1"})(["background-color:",";border-bottom-left-radius:24px;border-bottom-right-radius:24px;border-top:1px solid ",";border-top:1px solid ",";bottom:0;display:flex;height:73px;justify-content:flex-end;padding:",";position:fixed;width:100%;"],(function(e){return e.theme.ui_cpnt_modal_base}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.spacing.spacingD})),ws=function(e){var t=e.score,n=e.onClose,i=e.onMoveToReview,c=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(Ss,{children:[t&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Je,{iconSize:40,value:t,readOnly:!0}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]}),Object(Z.jsx)(F.D_TextLabel,{text:c("str_c00007_modal_review_upload_sueccess"),customFontSize:"28px",customFontWeight:"bold",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:c("str_c00007_modal_review_marketing"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",textAlign:"center"}),t&&Object(Z.jsx)(F.D_TextLabel,{text:c("str_average_starrating_update_text"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",textAlign:"center"})]}),Object(Z.jsxs)(Is,{children:[Object(Z.jsx)(F.D_MainButton,{text:c("str_confirm_review"),size:"medium",styleTheme:"secondary",onClick:i}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_MainButton,{text:c("str_confirm"),size:"medium",onClick:n})]})]})},Es={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var As=Y.default.div.withConfig({displayName:"S_ModalWrapper",componentId:"sc-1l8yjpe-0"})(["border-radius:24px;display:flex;flex-direction:column;min-height:560px;overflow:hidden;padding-bottom:73px;position:relative;*{box-sizing:border-box;}"]),Ds=function(e){var t,n,o=e.onClose;Object(H.b)("C00007CreateReview","c00007_create_review");var s=Object(c.m)(),l=s.channelCode,d=s.classId,u=Object(M.a)("translation").t,p=Object(i.c)(),m=Object(c.k)(),j=Object(i.d)(a.c),x=Object(i.d)(r.c),O=Object(i.d)(Xe.b),v=Object(i.d)(St.f),T=Object(i.d)(St.e),y=Object(i.d)(St.d),C=Object(i.d)(zo.c),S=Object(i.d)(zo.h),I=Object(i.d)(zo.f),w=y||I,E=Object(b.useState)("SELECT_TARGET_CLASSES"),A=Object(J.a)(E,2),D=A[0],P=A[1],N=Object(b.useState)([]),k=Object(J.a)(N,2),L=k[0],B=k[1],z=Object(_.a)(),U=z.openDialog,V=z.closeDialog,G=j?{title:u("str_seo_c00007_create_review_title",{menuName:j.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:u("str_seo_c00007_create_review_desc",{channelName:j.title,interpolation:{escapeValue:!1}})}:null,X=null===x||void 0===x?void 0:x.config,q=Object(Zo.useForm)({mode:"onChange",defaultValues:{targets:[],score:0,content:"",imgFiles:[]}}),K=q.formState.isDirty,Y=null===(t=null===X||void 0===X?void 0:X[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===t||t,Q=null!==(n=null===X||void 0===X?void 0:X[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_POST_REVIEW_REQUIRMENT_OPTION])&&void 0!==n?n:"10PERCENT",$=f.h["OPTION_".concat(Q)],ee=v.filter((function(e){return e.progress>=$})),te=ee.find((function(e){return e.id===Number(d)}));
1return q.register("score",{validate:function(e){return!Y||e>0},required:Y}),q.register("targets",{validate:function(e){return e&&e.length>0},required:!0}),q.register("content",{required:!0}),Object(gc.c)({manifest:Es,isActivated:!0,data:G,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return p(Object(St.a)()),function(){p(Object(Uo.m)()),p(Object(St.h)()),p(Object(St.i)())}}),[d]),Object(b.useEffect)((function(){if(!T&&d&&te){var e={targetModel:"SERIES",targetId:te.id,targetProgressRate:"".concat(Math.min(100,Math.round(te.progress)),"%"),targetContent:{author:null===te||void 0===te?void 0:te.author,authorThumbnailSrc:te.authorThumbnailSrc,coverImageSrc:te.coverImageSrc||"",isPublished:te.isPublished,title:te.title}};q.setValue("targets",[e])}}),[T,d,te]),Object(Z.jsx)(F.D_DesktopHeadlessModal,{size:"large",onClose:o,body:Object(Z.jsx)(Zo.FormProvider,Object(Ct.a)(Object(Ct.a)({},q),{},{children:Object(Z.jsx)(F.Form,{onSubmit:q.handleSubmit((function(e){p(Object(Uo.a)({body:{author:O.nickname,authorThumbnailSrc:O.imageSrc,content:e.content,score:Y?e.score:null,targets:e.targets,imgFiles:e.imgFiles},successCallback:function(){return P("SUCCESS_CREATE_REVIEW")}}))})),children:Object(Z.jsxs)(As,{children:[T||(null===S||void 0===S?void 0:S.type)===Uo.a.type?Object(Z.jsx)(g.x,{position:"absolute"}):Object(Z.jsxs)(Z.Fragment,{children:["SELECT_TARGET_CLASSES"===D&&Object(Z.jsx)(rs,{selectedIds:q.watch("targets").map((function(e){return e.targetId})),requirementOption:Q,classContents:ee,onSelect:function(e){var t=ee.find((function(t){return t.id===e}));if(t){var n={targetModel:"SERIES",targetId:t.id,targetProgressRate:"".concat(Math.min(100,Math.round(t.progress)),"%"),targetContent:{author:null===t||void 0===t?void 0:t.author,authorThumbnailSrc:t.authorThumbnailSrc,coverImageSrc:t.coverImageSrc||"",isPublished:t.isPublished,title:t.title}},i=q.getValues("targets"),c=i.some((function(t){return t.targetId===e}))?i.filter((function(t){return t.targetId!==e})):[].concat(Object(Ye.a)(i),[n]);q.setValue("targets",c,{shouldDirty:!0})}},onClose:function(){K?U({contentText:u("str_114"),btnMode:"tbtn_amount2",tBtn1Text:u("str_confirm"),tBtn2Text:u("str_cancel"),onClickTBtn1:function(){V(),o()},onClickTBtn2:V}):o()},onNextPageClick:function(){return P("WRITE_REVIEW_CONTENT")}}),"WRITE_REVIEW_CONTENT"===D&&Object(Z.jsx)(Cs,{useScore:Y,selectedClasses:q.watch("targets"),previewImageUrls:L,onScoreChange:function(e){return!(e<1)&&(q.setValue("score",e,{shouldValidate:!0}),!0)},onUploadImageChange:function(e,t){var n;if(null!==(n=e.target.files)&&void 0!==n&&n.length){var i=q.getValues("imgFiles")||[],c=Object(Ye.a)(e.target.files);if(c.length+i.length>f.i.image.count)U({contentText:u("str_c00007_image_upload_limit_3"),tBtn1Text:u("str_confirm"),onClickTBtn1:V});else if(c.some((function(e){return Qo.a.getBytesToMb(e.size)>f.i.image.size})))U({contentText:u("str_c00007_image_size_limit_5mb_alert"),tBtn1Text:u("str_confirm"),onClickTBtn1:V});else{q.setValue("imgFiles",[].concat(Object(Ye.a)(i),Object(Ye.a)(c)));var o=c.map((function(e){return URL.createObjectURL(e)}));if(L)return B([].concat(Object(Ye.a)(L),Object(Ye.a)(o))),void t();B(Object(Ye.a)(o)),t()}}},onUploadImageRemove:function(e,t){e.preventDefault(),B(Object(Ye.a)(L).filter((function(e,n){return t!==n})));var n=q.getValues("imgFiles")||[];q.setValue("imgFiles",Object(Ye.a)(n).filter((function(e,n){return t!==n})))},onPrevPageClick:function(){return P("SELECT_TARGET_CLASSES")}}),C&&"SUCCESS_CREATE_REVIEW"===D&&Object(Z.jsx)(ws,{score:null===C||void 0===C?void 0:C.score,onClose:function(){return o(!0)},onMoveToReview:function(){return m.push(Object(h.l)(R,{channelCode:l,id:null===C||void 0===C?void 0:C.id}))}})]}),w&&Object(Z.jsx)(Go,{error:w,onConfirmClick:function(){p(Object(St.h)()),p(Object(Uo.l)())}})]})})}))})};var Ps=Y.default.div.withConfig({displayName:"S_Header",componentId:"sc-5y5bk5-0"})(["padding:",";padding-bottom:0;width:100%;"],(function(e){return e.theme.spacing.spacingF})),Ns=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-5y5bk5-1"}
1)(["height:452px;overflow-y:scroll;padding:",";padding-bottom:",";"],(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingI})),ks=Y.default.div.withConfig({displayName:"S_EmptyTextWrapper",componentId:"sc-5y5bk5-2"})(["flex:1;padding-top:",";"],(function(e){return e.theme.spacing.spacingH})),Rs=Y.default.div.withConfig({displayName:"S_ContentList",componentId:"sc-5y5bk5-3"})(["display:flex;flex-wrap:wrap;gap:",";row-gap:",";"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingF})),Ls=Y.default.div.withConfig({displayName:"S_ContentItem",componentId:"sc-5y5bk5-4"})(["align-items:flex-start;display:flex;flex:1;flex-direction:column;max-width:210px;min-width:210px;"]),Bs=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-5y5bk5-5"})(["cursor:pointer;width:100%;& > [x-pds-name='ImageView']{background-color:",";border:5px solid transparent;border-color:",";border-radius:16px;}"],(function(e){var t=e.theme;return e.hasFocuse?t.ui_profile_image_border_brandprimary:"transparent"}),(function(e){var t=e.theme;return e.hasFocuse?t.ui_profile_image_border_brandprimary:"transparent"})),Ms=Y.default.div.withConfig({displayName:"S_CaptionWrapper",componentId:"sc-5y5bk5-6"})(["align-items:center;display:flex;"]),zs=Y.default.div.withConfig({displayName:"S_Divider",componentId:"sc-5y5bk5-7"})(["background-color:",";height:12px;margin-left:",";margin-right:",";width:1px;"],(function(e){return e.theme.ui_temp_grey_03}),(function(e){return e.theme.spacing.spacingA}),(function(e){return e.theme.spacing.spacingA})),Us=Y.default.div.withConfig({displayName:"S_Bottom",componentId:"sc-5y5bk5-8"})(["background-color:",";border-bottom-left-radius:24px;border-bottom-right-radius:24px;border-top:1px solid ",";bottom:0;display:flex;height:73px;justify-content:flex-end;padding:",";position:fixed;width:100%;"],(function(e){return e.theme.ui_cpnt_modal_base}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.spacing.spacingD})),Fs=function(e){var t=e.classContents,n=e.selectedIds,i=e.onSelect,c=e.onPrevPageClick,o=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(Ps,{children:[Object(Z.jsx)(F.D_TextLabel,{text:o("str_user_selectclass_modal_title"),styleTheme:"headingBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.D_TextLabel,{text:o("str_user_selectclassmodal_desc"),colorTheme:"sysTextSecondary",styleTheme:"subTitleRegular"})]}),Object(Z.jsx)(Ns,{children:Object(Z.jsx)(Rs,{children:t.length>0?Object(Z.jsx)(Z.Fragment,{children:t.map((function(e){return Object(Z.jsxs)(Ls,{children:[Object(Z.jsx)(Bs,{hasFocuse:n.includes(e.id),onClick:function(){return i(e.id)},children:Object(Z.jsx)(F.ImageView,{src:e.coverImageSrc,width:"responsive",height:"responsive",ratio:"16_9",scaleType:"cover",borderMode:"use",radius:16})}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:e.title,styleTheme:"body2Bold",ellipsisMode:"use",lineLimit:1}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsxs)(Ms,{children:[Object(Z.jsx)(F.D_TextLabel,{text:o("str_2493",{SessionCnt:e.totalEpisodes}),styleTheme:"caption2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}),Object(Z.jsx)(zs,{}),Object(Z.jsx)(F.D_TextLabel,{text:e.author,styleTheme:"caption2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1})]})]},e.id)}))}):Object(Z.jsx)(ks,{children:Object(Z.jsx)(F.D_TextLabel,{text:o("str_c00007_reivew_no_ongoing_class"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary",textAlign:"center"})})})}),Object(Z.jsx)(Us,{children:Object(Z.jsx)(F.D_MainButton,{text:o("str_c00007_createreview_selection_complete"),size:"medium",state:0===n.length?"disabled":"normal",onClick:c})})]})};var Vs=Y.default.label.withConfig({displayName:"S_IconUploadLabel",componentId:"sc-18p0372-0"})(["align-items:center;cursor:pointer;display:flex;margin-right:24px;"]),Ws=Y.default.span.withConfig({displayName:"S_Text",componentId:"sc-18p0372-1"})(["color:",";font-size:",";margin-left:4px;"],(function(e){return e.theme.ui_temp_grey_01}),(function(e){return e.theme.desktopFontSize.caption1})),Hs=Y.default.input.withConfig({displayName:"S_InvisibleInput",componentId:"sc-18p0372-2"})(["display:none;"]),Gs=function(e){var t=e.iconName,n=void 0===t?"ic_image":t,i=e.label,c=e.fieldName,o=e.type,s=void 0===o?"file":o,a=e.accept,r=e.onChange;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(Vs,{htmlFor:c,children:[Object(Z.jsx)(F.Icon,{iconName:n}),Object(Z.jsx)(Ws,{children:i})]}),Object(Z.jsx)(Hs,{id:c,type:s,accept:a?"".concat(a,"/*"):"none",multiple:"image"===a,onChange:r})]})};var Xs=Y.default.div.withConfig({displayName:"S_Header",componentId:"sc-1smm6ly-0"})(["padding:",";padding-bottom:0;width:100%;"],(function(e){return e.theme.spacing.spacingF})),qs=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-1smm6ly-1"})(["min-height:max-content;overflow-y:scroll;padding-top:",";"],(function(e){return e.theme.spacing.spacingD})),Ks=Y.default.div.withConfig({displayName:"S_RatingArea",componentId:"sc-1smm6ly-2"})(["align-items:flex-end;display:flex;padding:0 ",";"],(function(e){return e.theme.spacing.spacingF})),Ys=Y.default.div.withConfig({displayName:"S_ReviewContent",componentId:"sc-1smm6ly-3"})(["height:",";overflow-y:scroll;padding:0 ",";padding-top:",";"],(function(e){var t=e.$height;return t||"238px"}),(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingE})),Zs=Y.default.div.withConfig({displayName:"S_TargetClasses",componentId:"sc-1smm6ly-4"})(["padding:"," ",";"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingF})),Qs=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-1smm6ly-5"})(["align-items:center;display:flex;"]),$s=Y.default.div.withConfig({displayName:"S_ChipWrapper",componentId:"sc-1smm6ly-6"})(["display:flex;flex-wrap:wrap;gap:4px;row-gap:8px;"]),Js=Y.default.div.withConfig({displayName:"S_ImageUploadArea",componentId:"sc-1smm6ly-7"})(["padding:"," ",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingF})),ea=Y.default.div.withConfig({displayName:"S_IconUploadButtonWrapper",componentId:"sc-1smm6ly-8"})(["align-items:center;display:flex;"]),ta=Y.default.div.withConfig({displayName:"S_ImageListWrapper",componentId:"sc-1smm6ly-9"})(["display:flex;flex-direction:column;gap:",";padding:"," 0;width:100%;"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingD})),na=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-1smm6ly-10"})(["position:relative;"]),ia=Y.default.button.withConfig({displayName:"S_DeleteButton",componentId:"sc-1smm6ly-11"})(["align-items:center;background:rgba(0,0,0,0.8);border:none;border-radius:50px;cursor:pointer;display:flex;height:32px;justify-content:center;padding:8px;position:absolute;right:8px;top:8px;width:32px;"]),ca=Y.default.div.withConfig({displayName:"S_Bottom",componentId:"sc-1smm6ly-12"})(["background-color:",";border-bottom-left-radius:24px;border-bottom-right-radius:24px;border-top:1px solid ",";bottom:0;display:flex;height:73px;justify-content:flex-end;padding:",";position:fixed;width:100%;"],(function(e){return e.theme.ui_cpnt_modal_base}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.spacing.spacingD})),oa=function(e){var t=e.selectedClasses,n=e.previewImageUrls,i=e.useScore,c=e.onScoreChange,o=e.onUploadImageChange,s=e.onUploadImageRemove,a=e.onClose,r=e.onEditTargetsClick,l=Object(M.a)("translation").t,d=Object(b.useRef)(null),u=Object(Zo.useFormContext)(),p=u.watch,m=u.formState,j=p("score");return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(Xs,{children:[Object(Z.jsx)(F.D_TextLabel,{text:l("str_user_c00007editreview_modal_title"),styleTheme:"headingBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}
1),Object(Z.jsx)(F.D_TextLabel,{text:l("str_user_c00007editreview_desc"),colorTheme:"sysTextSecondary",styleTheme:"subTitleRegular"})]}),Object(Z.jsxs)(qs,{children:[i&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Ks,{children:Object(Z.jsx)(Je,{value:j,step:1,iconSize:40,onChange:c})}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"})]}),Object(Z.jsx)(Ys,{$height:i?"238px":"285px",children:Object(Z.jsx)(F.D_BlogTextField,{name:"content",hintText:l("str_86"),maxLength:f.i.content.maxLength,autoMinRows:7,autoMaxRows:12,spacingMode:"none",validation:{required:{value:!0,message:l("str_err_2090")},minLength:{value:f.i.content.minLength,message:l("str_c00007_text_limit_alert")},maxLength:{value:f.i.content.maxLength,message:l("str_c00007_text_limit_alert")}}})}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsxs)(Zs,{children:[Object(Z.jsxs)(Qs,{children:[Object(Z.jsx)(F.D_TextLabel,{text:l("str_c00007_selected_class")}),Object(Z.jsx)(F.Spacing,{size:"spacing_d",spacingType:"width"}),Object(Z.jsx)(F.D_MainButton,{text:l("str_c00007_class_selection_edit_btn"),size:"xsmall",styleTheme:"secondary",onClick:r})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)($s,{children:null===t||void 0===t?void 0:t.map((function(e){return Object(Z.jsx)(F.D_Chip,{displayType:"information",text:"".concat(e.targetContent.title).concat(e.targetProgressRate?" \u2022 ".concat(e.targetProgressRate):"")},e.targetId)}))})]}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsxs)(Js,{children:[Object(Z.jsxs)(ea,{children:[Object(Z.jsx)(Gs,{label:l("str_image"),fieldName:"selectedImages",accept:"image",onChange:function(e){o&&o(e,(function(){setTimeout((function(){d.current&&d.current.scrollIntoView({behavior:"smooth",block:"nearest"})}),0)}))}}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_screenshot_notice"),styleTheme:"caption2Regular",colorTheme:"sysTextTertiary"})]}),n&&n.length>0&&Object(Z.jsx)(ta,{children:null===n||void 0===n?void 0:n.map((function(e,t){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsxs)(na,{ref:t===n.length-1?d:null,children:[Object(Z.jsx)(F.ImageView,{src:e,width:"responsive",borderMode:"use",shapeType:"round"}),Object(Z.jsx)(ia,{onClick:function(e){return s(e,t)},children:Object(Z.jsx)(F.Icon,{iconName:"ic_xmark",colorKey:"ui_temp_white",size:16})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]},e)}))})]})]}),Object(Z.jsxs)(ca,{children:[Object(Z.jsx)(F.D_MainButton,{text:l("str_cancel"),size:"medium",styleTheme:"secondary",onClick:a}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_MainButton,{text:l("str_register"),size:"medium",type:"submit",state:m.isValid&&m.isDirty?"normal":"disabled"})]})]})};var sa=Y.default.div.withConfig({displayName:"S_Main",componentId:"sc-x7hkn8-0"})(["align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;padding:",";"],(function(e){return e.theme.spacing.spacingF})),aa=Y.default.div.withConfig({displayName:"S_Bottom",componentId:"sc-x7hkn8-1"})(["background-color:",";border-bottom-left-radius:24px;border-bottom-right-radius:24px;border-top:1px solid ",";bottom:0;display:flex;height:73px;justify-content:flex-end;padding:",";position:fixed;width:100%;"],(function(e){return e.theme.ui_cpnt_modal_base}),(function(e){return e.theme.ui_cpnt_divider}),(function(e){return e.theme.spacing.spacingD})),ra=function(e){var t=e.score,n=e.onClose,i=e.onMoveToReview,c=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(sa,{children:[t&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Je,{iconSize:40,value:t,readOnly:!0}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]}),Object(Z.jsx)(F.D_TextLabel,{text:c("str_c00007_modal_review_edit_sueccess"),customFontSize:"28px",customFontWeight:"bold",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:c("str_c00007_modal_review_marketing"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",textAlign:"center"}),t&&Object(Z.jsx)(F.D_TextLabel,{text:c("str_average_starrating_update_text"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",textAlign:"center"})]}),Object(Z.jsxs)(aa,{children:[i&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_MainButton,{text:c("str_confirm_review"),size:"medium",styleTheme:"secondary",onClick:i}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),Object(Z.jsx)(F.D_MainButton,{text:c("str_confirm"),size:"medium",onClick:n})]})]})},la={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var da=Y.default.div.withConfig({displayName:"S_ModalWrapper",componentId:"sc-o6mws9-0"})(["border-radius:24px;display:flex;flex-direction:column;min-height:560px;overflow:hidden;padding-bottom:73px;position:relative;*{box-sizing:border-box;}"]),ua=function(e){var t,n,o=e.reviewId,s=e.onClose;Object(H.b)("C00007EditReview","c00007_edit_review");var l=Object(c.m)().channelCode,d=Object(M.a)("translation").t,u=Object(i.c)(),p=Object(c.k)(),m=Object(c.l)(),j=Object(i.d)(a.c),x=Object(i.d)(r.c),O=Object(i.d)(Xe.b),v=Object(i.d)(zo.c),T=Object(i.d)(zo.h),y=Object(i.d)(zo.f),C=Object(i.d)(St.f),S=Object(i.d)(St.e),I=Object(i.d)(St.d)||y,w=Object(b.useState)("WRITE_REVIEW_CONTENT"),E=Object(J.a)(w,2),A=E[0],D=E[1],P=Object(b.useState)([]),N=Object(J.a)(P,2),k=N[0],L=N[1],B=Object(_.a)(),z=B.openDialog,U=B.closeDialog,V=j?{title:d("str_seo_c00007_edit_review_title",{menuName:j.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:d("str_seo_c00007_edit_review_desc",{channelName:j.title,interpolation:{escapeValue:!1}})}:null,G=null===x||void 0===x?void 0:x.config,X=Object(Zo.useForm)({mode:"onChange",defaultValues:{targets:[],score:0,content:"",imgFiles:[]}}),q=X.formState.isDirty,K=null===(t=null===G||void 0===G?void 0:G[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===t||t,Y=null!==(n=null===G||void 0===G?void 0:G[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_POST_REVIEW_REQUIRMENT_OPTION])&&void 0!==n?n:"10PERCENT",Q=f.h["OPTION_".concat(Y)],$=C.filter((function(e){return e.progress>=Q}));
1return X.register("score",{validate:function(e){return!K||e>0},required:K}),X.register("targets",{validate:function(e){return e&&e.length>0},required:!0}),X.register("content",{required:!0}),Object(gc.c)({manifest:la,isActivated:!0,data:V,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){(null===v||void 0===v?void 0:v.id)!==o&&u(Object(Uo.g)({id:o}))}),[]),Object(b.useEffect)((function(){return u(Object(St.a)()),function(){u(Object(St.h)()),u(Object(St.i)())}}),[]),Object(b.useEffect)((function(){v&&(X.setValue("score",v.score||0),X.setValue("targets",v.targets,{shouldValidate:!0}),X.setValue("content",v.content,{shouldValidate:!0}),X.setValue("imgFiles",v.imgFileSrcs,{shouldValidate:!0}),L(v.imgFileSrcs))}),[v]),Object(Z.jsx)(F.D_DesktopHeadlessModal,{size:"large",onClose:s,body:Object(Z.jsx)(Zo.FormProvider,Object(Ct.a)(Object(Ct.a)({},X),{},{children:Object(Z.jsx)(F.Form,{onSubmit:X.handleSubmit((function(e){u(Object(Uo.d)({id:o,body:{author:O.nickname,authorThumbnailSrc:O.imageSrc,content:e.content,score:K?e.score:null,targets:e.targets,imgFiles:e.imgFiles},successCallback:function(){return D("SUCCESS_EDIT_REVIEW")}}))})),children:Object(Z.jsxs)(da,{children:[S||(null===T||void 0===T?void 0:T.type)===Uo.g.type||(null===T||void 0===T?void 0:T.type)===Uo.d.type?Object(Z.jsx)(g.x,{position:"relative"}):Object(Z.jsxs)(Z.Fragment,{children:["WRITE_REVIEW_CONTENT"===A&&Object(Z.jsx)(oa,{useScore:K,selectedClasses:X.watch("targets"),previewImageUrls:k,onScoreChange:function(e){return!(e<1)&&(X.setValue("score",e,{shouldValidate:!0,shouldDirty:!0}),!0)},onUploadImageChange:function(e,t){var n;if(null!==(n=e.target.files)&&void 0!==n&&n.length){var i=Object(Ye.a)(e.target.files),c=X.getValues("imgFiles")||[];if(i.length+c.length>f.i.image.count)z({contentText:d("str_c00007_image_upload_limit_3"),tBtn1Text:d("str_confirm"),onClickTBtn1:U});else if(i.some((function(e){return Qo.a.getBytesToMb(e.size)>f.i.image.size})))z({contentText:d("str_c00007_image_size_limit_5mb_alert"),tBtn1Text:d("str_confirm"),onClickTBtn1:U});else{X.setValue("imgFiles",[].concat(Object(Ye.a)(c),Object(Ye.a)(i)),{shouldDirty:!0});var o=i.map((function(e){return URL.createObjectURL(e)}));L((function(e){return[].concat(Object(Ye.a)(e),Object(Ye.a)(o))})),t()}}},onUploadImageRemove:function(e,t){e.preventDefault(),L(Object(Ye.a)(k).filter((function(e,n){return t!==n})));var n=X.getValues("imgFiles")||[];X.setValue("imgFiles",Object(Ye.a)(n).filter((function(e,n){return t!==n})),{shouldDirty:!0})},onClose:function(){q?z({contentText:d("str_114"),btnMode:"tbtn_amount2",tBtn1Text:d("str_confirm"),tBtn2Text:d("str_cancel"),onClickTBtn1:function(){U(),s()},onClickTBtn2:U}):s()},onEditTargetsClick:function(){return D("SELECT_TARGET_CLASSES")}}),"SELECT_TARGET_CLASSES"===A&&Object(Z.jsx)(Fs,{selectedIds:X.watch("targets").map((function(e){return e.targetId})),classContents:$,onSelect:function(e){var t=$.find((function(t){return t.id===e}));if(t){var n={targetModel:"SERIES",targetId:t.id,targetProgressRate:"".concat(t.progress,"%"),targetContent:{author:null===t||void 0===t?void 0:t.author,authorThumbnailSrc:t.authorThumbnailSrc,coverImageSrc:t.coverImageSrc||"",isPublished:t.isPublished,title:t.title}},i=X.getValues("targets"),c=i.some((function(t){return t.targetId===e}))?i.filter((function(t){return t.targetId!==e})):[].concat(Object(Ye.a)(i),[n]);X.setValue("targets",c,{shouldDirty:!0})}},onPrevPageClick:function(){return D("WRITE_REVIEW_CONTENT")}}),"SUCCESS_EDIT_REVIEW"===A&&Object(Z.jsx)(ra,{score:X.watch("score"),onClose:function(){return s(!0)},onMoveToReview:m.pathname===Object(h.l)(R,{channelCode:l,id:o})?void 0:function(){return p.push(Object(h.l)(R,{channelCode:l,id:o}))}})]}),I&&Object(Z.jsx)(Go,{error:I,onConfirmClick:function(){u(Object(St.h)()),u(Object(Uo.l)())}})]})})}))})},pa=n(192),ma=j.a.forwardRef((function(e,t){var n=e.isPublished,i=void 0===n||n,c=e.profileImg,o=e.nickname,s=e.updatedAt,a=e.isEdited,r=e.showRating,l=e.score,d=e.content,u=e.contentImgSrcs,p=e.targetClasses,m=e.moreMenuIconRef,j=e.onMoreMenuIconClick,g=e.onTargetClassLabelClick,_=e.onContentAreaClick,h=e.popup,f=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(ja,{ref:t,children:[Object(Z.jsxs)(ga,{children:[Object(Z.jsx)(F.ImageView,{scaleType:"cover",shapeType:"circular",width:42,he
1ight:42,noImageWidth:42,noImageHeight:42,ratio:"1_1",borderMode:"use",src:c}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"body2Bold"}),Object(Z.jsxs)(ba,{children:[Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),i&&a&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(f("str_edited_review")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),!i&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(f("str_status_private")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]}),Object(Z.jsx)(_a,{children:Object(Z.jsx)("div",{ref:m,onClick:j,children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_more",baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconSize:24,iconColorKey:"ui_cpnt_icon_sys_grey_02"})})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),r&&Object(Z.jsxs)(Z.Fragment,{children:["number"===typeof l&&Object(Z.jsx)(Je,{value:l,readOnly:!0}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"})]}),Object(Z.jsx)(F.D_TextLabel,{text:d,styleTheme:"body1Regular"}),u&&(null===u||void 0===u?void 0:u.length)>0&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(fa,{onClick:_,children:null===u||void 0===u?void 0:u.map((function(e){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(F.ImageView,{src:e,radiu
1s:16,width:"responsive",scaleType:"contain",borderMode:"use",shapeType:"round"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]},e)}))})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(F.D_TextLabel,{text:f("str_selected_ongoing_class_title"),styleTheme:"body2Bold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(ha,{children:null===p||void 0===p?void 0:p.map((function(e){return Object(Z.jsx)(F.D_Chip,{displayType:"label",text:"".concat(e.targetContent.title).concat(e.targetProgressRate?" \u2022 ".concat(f("str_c00007_ongoing_class_progress")," ").concat(e.targetProgressRate):""),onClickChip:g?function(){return g(e.targetId,e.targetContent.isDeleted||!1)}:void 0},e.targetId)}))}),h]})})),ba=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-csspg2-0"})(["align-items:center;display:flex;"]),ja=Y.default.div.withConfig({displayName:"S_SummaryWrapper",componentId:"sc-csspg2-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),ga=Y.default.div.withConfig({displayName:"S_SummaryLeft",componentId:"sc-csspg2-2"})(["align-items:center;display:flex;height:100%;justify-content:flex-start;"]),_a=Y.default.div.withConfig({displayName:"S_SummaryRight",componentId:"sc-csspg2-3"})(["align-items:center;display:flex;"]),ha=Y.default.div.withConfig({displayName:"S_ChipWrapper",componentId:"sc-csspg2-4"})(["cursor:pointer;display:flex;flex-wrap:wrap;gap:4px;row-gap:8px;"]),fa=Y.default.div.withConfig({displayName:"S_ImageListWrapper",componentId:"sc-csspg2-5"})(["width:100%;"]);ma.displayName="ReviewPostCard";var xa=j.a.forwardRef((function(e,t){var n=e.profileImg,i=e.nickname,c=e.updatedAt,o=e.isEdited,s=e.moreMenuIconRef,a=e.onMoreMenuIconClick,r=e.popup,l=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(va,{ref:t,children:[Object(Z.jsxs)(Ta,{children:[Object(Z.jsx)(F.ImageView,{scaleType:"cover",shapeType:"circular",width:42,he
1ight:42,noImageWidth:42,noImageHeight:42,ratio:"1_1",borderMode:"use",src:n}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:i,styleTheme:"body2Bold"}),Object(Z.jsxs)(Oa,{children:[Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),o&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(l("str_edited_review")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]}),Object(Z.jsx)(ya,{children:Object(Z.jsx)("div",{ref:s,onClick:a,children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_more",baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconSize:24,iconColorKey:"ui_cpnt_icon_sys_grey_02"})})})]}),Object(Z.jsxs)(Ca,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.Icon,{size:48,iconName:"ic_eye_close",colorKey:"ui_cpnt_icon_sys_grey_02"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_6512"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),r]})]})})),Oa=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-1o8qzt4-0"})(["align-items:center;display:flex;"]),va=Y.default.div.withConfig({displayName:"S_SummaryWrapper",componentId:"sc-1o8qzt4-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),Ta=Y.default.div.withConfig({displayName:"S_SummaryLeft",componentId:"sc-1o8qzt4-2"})(["align-items:center;display:flex;height:100%;justify-content:flex-start;"]),ya=Y.default.div.withConfig({displayName:"S_SummaryRight",componentId:"sc-1o8qzt4-3"})(["align-items:center;display:flex;"]),Ca=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-1o8qzt4-4"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]);xa.displayName="HiddenContent";var Sa=j.a.forwardRef((function(e,t){var n=e.profileImg,i=e.nickname,c=e.updatedAt,o=e.isEdited,s=e.moreMenuIconRef,a=e.onMoreMenuIconClick,r=e.popup,l=Object(M.a)("translation").t;return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(wa,{ref:t,children:[Object(Z.jsxs)(Ea,{children:[Object(Z.jsx)(F.ImageView,{scaleType:"cover",shapeType:"circular",width:42,he
1ight:42,noImageWidth:42,noImageHeight:42,ratio:"1_1",borderMode:"use",src:n}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:i,styleTheme:"body2Bold"}),Object(Z.jsxs)(Ia,{children:[Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"}),o&&Object(Z.jsx)(F.D_TextLabel,{text:" \u2022 ".concat(l("str_edited_review")),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]})]}),Object(Z.jsx)(Aa,{children:Object(Z.jsx)("div",{ref:s,onClick:a,children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_more",baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconSize:24,iconColorKey:"ui_cpnt_icon_sys_grey_02"})})})]}),Object(Z.jsxs)(Da,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.Icon,{size:48,iconName:"ic_block_user",colorKey:"ui_cpnt_icon_sys_grey_02"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_6515"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),r]})]})})),Ia=Y.default.div.withConfig({displayName:"S_FlexCenter",componentId:"sc-wuqkc1-0"})(["align-items:center;display:flex;"]),wa=Y.default.div.withConfig({displayName:"S_SummaryWrapper",componentId:"sc-wuqkc1-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),Ea=Y.default.div.withConfig({displayName:"S_SummaryLeft",componentId:"sc-wuqkc1-2"})(["align-items:center;display:flex;height:100%;justify-content:flex-start;"]),Aa=Y.default.div.withConfig({displayName:"S_SummaryRight",componentId:"sc-wuqkc1-3"})(["align-items:center;display:flex;"]),Da=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-wuqkc1-4"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]);Sa.displayName="BlockedContent";var Pa=j.a.forwardRef((function(e,t){var n=e.id,i=e.isPublished,c=void 0===i||i,o=e.profileDistinctId,s=e.profileImg,a=e.nickname,r=e.updatedAt,l=e.isEdited,d=e.showRating,u=e.score,p=e.content,m=e.contentImgSrcs,j=e.targetClasses,_=e.onEditClick,h=e.onDeleteClick,f=e.onTargetClassLabelClick,x=e.onContentAreaClick,O=Object(b.useState)(!1),v=Object(J.a)(O,2),T=v[0],y=v[1],C=Object(b.useState)(null),S=Object(J.a)(C,2),I=S[0],w=S[1],E=Object(b.useCallback)((function(e){e&&w(e)}),[]),A=qe({profileDistinctId:o,reviewId:n,content:p,nickname:a}),D=A.isHiddenPost,P=A.isBlockedUser,N=A.isMyPost,k=A.isGuest,R=A.ReportContent,L=A.handleClickUGCMenuButton,B=Ve({isBlockedUser:P,isHiddenPost:D,isMyPost:N,isGuest:k}).contextMenuItems;Object(b.useEffect)((function(){function e(){y(!1)}return T&&(window.addEventListener("wheel",e),window.addEventListener("scroll",e)),function(){window.removeEventListener("wheel",e),window.removeEventListener("scroll",e)}}),[T]);var M=function(e){var t=e;if("DELETE"!==t.value)if("EDIT"!==t.value){var i=t.value;L({type:i})}else _&&_(n);else h&&h(n)},z=function(e){e.stopPropagation(),y((function(e){return!e}))},U=Object(Z.jsx)(g.D,{targetRef:{current:I},placement:"bottom-end",isOpen:T,onClick:function(){return y(!T)},onClickOutside:function(){return y(!1)},children:Object(Z.jsx)(F.D_ContextMenu,{children:null===B||void 0===B?void 0:B.map((function(e){return Object(Z.jsx)(F.D_ContextMenuItem,{option:e,onClick:M},e.value)}))})});return D?Object(Z.jsxs)(g.E,{children:[Object(Z.jsx)(xa,{ref:t,profileImg:s,nickname:a,updatedAt:r,isEdited:l,moreMenuIconRef:E,onMoreMenuIconClick:z,popup:U}),R]}):P?Object(Z.jsxs)(g.E,{children:[Object(Z.jsx)(Sa,{ref:t,profileImg:s,nickname:"***".concat(o?o.split("-")[1]:""),updatedAt:r,isEdited:l,moreMenuIconRef:E,onMoreMenuIconClick:z,popup:U}),R]}):Object(Z.jsxs)(g.E,{children:[Object(Z.jsx)(ma,{ref:t,profileImg:s,nickname:a,updatedAt:r,isEdited:l,isPublished:c,showRating:d,score:u,content:p,contentImgSrcs:m,targetClasses:j,moreMenuIconRef:E,onMoreMenuIconClick:z,onTargetClassLabelClick:f,onContentAreaClick:x?function(){return x(n)}:void 0,popup:U}),R]})}));
1Pa.displayName="ReviewPostCardDetailContainer";var Na=Pa,ka={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var Ra=Y.default.div.withConfig({displayName:"S_Content1Wrapper",componentId:"sc-4smwop-0"})(["padding:0 ",";"],(function(e){return e.theme.spacing.spacingI})),La=Y.default.div.withConfig({displayName:"S_BackButtonWrapper",componentId:"sc-4smwop-1"})(["align-items:center;cursor:pointer;display:flex;width:fit-content;"]),Ba=function(){var e;Object(H.b)("C00007ReviewDetail","c00007_review_detail");var t=Object(i.c)(),n=Object(c.k)(),o=Object(M.a)("translation").t,s=Object(c.m)(),l=s.channelCode,d=s.id,u=Object(pa.a)(),p=u.get("entryPage"),m=u.get("classId"),j=Object(i.d)(r.c),g=Object(i.d)(a.c),x=Object(i.d)(zo.c),O=Object(i.d)(zo.h),v=Object(i.d)(zo.f),T=Object(_.a)(),y=T.openDialog,C=T.closeDialog,S=null===j||void 0===j?void 0:j.config,E=null===(e=null===S||void 0===S?void 0:S[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===e||e,A=Object(b.useState)({isOpen:!1,id:0}),D=Object(J.a)(A,2),P=D[0],N=D[1],R=g?{title:o("str_seo_c00007_review_detail_title",{menuName:g.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:o("str_seo_c00007_review_detail_desc",{channelName:g.title,interpolation:{escapeValue:!1}})}:null;return Object(gc.c)({manifest:ka,isActivated:!0,data:R,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return t(Object(Uo.g)({id:Number(d)})),function(){t(Object(Uo.n)())}}),[]),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTI_2",isLoadingContainer1:(null===O||void 0===O?void 0:O.type)===Uo.g.type,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(Ra,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsxs)(La,{onClick:function(){p===Ko&&m?n.push(Object(h.l)(w,{channelCode:l,classId:m})):p!==qo?n.push(Object(h.l)(k,{channelCode:l})):n.push(Object(h.l)(L,{channelCode:l}))},children:[Object(Z.jsx)(F.D_IconButton,{iconName:"ic_arrow_left_bold",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconSize:20,iconColorKey:"ui_cpnt_icon_sys_grey_01"}),Object(Z.jsx)(F.D_TextLabel,{text:o("str_back")})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),x&&Object(Z.jsx)(Na,{id:x.id,isPublished:x.isPublished,profileDistinctId:x.profileDistinctId,profileImg:x.authorThumbnailSrc,nickname:x.author,updatedAt:me.a.tz(x.updatedAt).format("YYYY-MM-DD"),isEdited:x.insertedAt!==x.updatedAt,showRating:E,score:x.score,content:x.content,contentImgSrcs:x.imgFileSrcs,targetClasses:x.targets,onTargetClassLabelClick:function(e,t){t?y({contentText:o("str_4000"),tBtn1Text:o("str_confirm"),onClickTBtn1:C}):n.push(Object(c.i)(I,{channelCode:l,classId:e}))},onEditClick:function(e){N({isOpen:!0,id:e})},onDeleteClick:function(e){y({contentText:o("str_1355"),btnMode:"tbtn_amount2",tBtn1Text:o("str_ok"),tBtn2Text:o("str_cancel"),onClickTBtn1:function(){t(Object(Uo.c)({id:e,successCallback:function(){return n.goBack()}})),C()},onClickTBtn2:C})}},x.id)]})}),P.isOpen&&Object(Z.jsx)(ua,{reviewId:P.id,onClose:function(e){e&&t(Object(Uo.g)({id:Number(d)})),N({isOpen:!1,id:0})}}),v&&Object(Z.jsx)(Go,{error:v,onConfirmClick:function(){t(Object(Uo.l)())}})]})},Ma={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var za=Y.default.div.withConfig({displayName:"S_ReviewListWrapper",componentId:"sc-g15m5g-0"})(["border-bottom:1px solid;border-color:",";padding-bottom:",";&:last-child{border:none;}"],(function(e){return e.theme.ui_cpnt_card_border}),(function(e){return e.theme.spacing.spacingG})),Ua=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-g15m5g-1"})(["margin-top:",";"],(function(e){return e.theme.spacing.spacingI})),Fa=Y.default.div.withConfig({displayName:"S_CreateReviewBtnWrapper",componentId:"sc-g15m5g-2"})(["padding:0 ",";padding-top:",";;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingD})),Va=function(){var e,t;Object(H.b)("C00007ClassesReviews","c00007_classes_reviews");var n=Object(M.a)("translation").t,o=Object(i.c)(),s=Object(c.k)(),l=Object(c.m)().channelCode,d=U(),u=d.tabs,p=d.reviewsTabTitle,m=Object(i.d)(r.c),j=Object(i.d)(a.c),g=Object(i.d)(zo.e),x=Object(i.d)(zo.g),O=Object(i.d)(zo.h),v=Object(i.d)(zo.f),T=Object(i.d)(St.g),y=Object(i.d)(G.l),C=Object(_.a)(),w=C.openDialog,E=C.closeDialog,A=Object(_.e)().userEntrywayForUse,D=Object(b.useState)(!1),P=Object(J.a)(D,2),N=P[0],k=P[1],B=Object(b.useState)({isOpen:!1,id:0}),z=Object(J.a)(B,2),V=z[0],q=z[1],K=Object(b.useRef)(null),Y=null===m||void 0===m?void 0:m.config,Q=null===(e=null===Y||void 0===Y?void 0:Y[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===e||e,$=(null===Y||void 0===Y?void 0:Y[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_REVIEWS_SORT_OPTION])||"SORT_BY_RATING",ee=j?{title:n("str_seo_c00007_classes_reviews_title",{menuName:j.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:n("str_seo_c00007_classes_reviews_desc",{channelName:j.title,interpolation:{escapeValue:!1}})}:null;Object(gc.c)({manifest:Ma,isActivated:!0,data:ee,options:{useChannelTitlePrefix:!0}});var te=function(){K.current&&(0!==K.current.scrollTop&&K.current.scrollTo(0,0))},ne=function(e){var t=e.page,n=e.limit;o(Object(Uo.i)({queryParams:{sortBy:"SORT_BY_RATING"===$?"score":"insertedAt",isPublished:!0,page:t,limit:n}}
1))},ie=Yo({isLoading:(null===O||void 0===O?void 0:O.type)===Uo.h.type,items:g||[],total:x.total,page:x.page,fetchNextPage:function(e){ne({page:e,limit:x.limit})}}).lastItemRef;Object(b.useEffect)((function(){return ne({page:x.page,limit:x.limit}),function(){o(Object(Uo.k)()),o(Object(X.db)())}}),[]),Object(b.useEffect)((function(){var e=Object(h.h)(l);o(Object(X.F)({channelId:e}))}),[]);var ce=Object(b.useMemo)((function(){return[{title:p||n("str_classes_review"),isActive:!0},{title:n("str_class_myreview"),isActive:!1,onClick:A((function(){return s.push(Object(h.l)(L,{channelCode:l}))}))}]}),[]),oe=function(e){q({isOpen:!0,id:e})},se=function(e){w({contentText:n("str_1355"),btnMode:"tbtn_amount2",tBtn1Text:n("str_ok"),tBtn2Text:n("str_cancel"),onClickTBtn1:function(){o(Object(Uo.c)({id:e,successCallback:function(){return ne({page:x.page,limit:x.limit})}})),E()},onClickTBtn2:E})},ae=function(e){s.push(Object(h.l)(R,{channelCode:l,id:e},{entryPage:Xo}))},re=function(e,t){var i;if(t)w({contentText:n("str_4000"),tBtn1Text:n("str_confirm"),onClickTBtn1:E});else{var c=null!==(i=null===y||void 0===y?void 0:y.get(e))&&void 0!==i&&i,o=null===T||void 0===T?void 0:T.some((function(t){return t.id===e}));s.push(Object(h.l)(c&&o?S:I,{channelCode:l,classId:e}))}},le=Object(b.useCallback)((function(e){e&&(te(),ne({page:1,limit:x.limit})),k(!1)}),[x.limit]);return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:u.length>1?"WTT_2":"WTM_2",container1Ref:K,isLoadingContainer1:K.current?(null===O||void 0===O?void 0:O.type)===Uo.h.type&&0===(null===(t=K.current)||void 0===t?void 0:t.scrollTop):(null===O||void 0===O?void 0:O.type)===Uo.h.type,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(Z.Fragment,{children:[1===u.length&&Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(Ho,{sideBar:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_UserDesktopSideTab,{itemArray:ce}),Object(Z.jsx)(Fa,{children:Object(Z.jsx)(F.D_MainButton,{size:"medium",text:n("str_class_create_review_btn"),iconMode:"left",iconFillType:"fill",iconName:"ic_edit",onClick:A((function(){k(!0)}))})})]}),main:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_TextLabel,{text:p||n("str_classes_review"),styleTheme:"displayBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),0===(null===g||void 0===g?void 0:g.length)?Object(Z.jsx)(Ua,{children:Object(Z.jsx)(F.D_TextLabel,{text:n("str_c00007_no_review"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsx)(za,{children:null===g||void 0===g?void 0:g.map((function(e,t){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(yt,{ref:t===g.length-1?ie:null,id:e.id,profileDistinctId:e.profileDistinctId,profileImg:e.authorThumbnailSrc,nickname:e.author,updatedAt:me.a.tz(e.updatedAt).format("YYYY-MM-DD"),isEdited:e.insertedAt!==e.updatedAt,showRating:Q,score:e.score,content:e.content,contentImgSrcs:e.imgFileSrcs,targetClasses:e.targets,onTargetClassLabelClick:re,onEditClick:oe,onDeleteClick:se,onContentAreaClick:ae},e.id),g.length-1!==t&&Object(Z.jsx)(F.Spacing,{size:"spacing_f"})]},e.id)}))})]})})]})}),N&&Object(Z.jsx)(Ds,{onClose:le}),V.isOpen&&Object(Z.jsx)(ua,{reviewId:V.id,onClose:function(e){e&&(te(),ne({page:1,limit:x.limit})),q({isOpen:!1,id:0})}}),v&&Object(Z.jsx)(Go,{error:v,onConfirmClick:function(){o(Object(Uo.l)())}})]})},Wa={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{menuName}}",description:"{{channelName}}\uc758 \ub2e4\uc591\ud55c VOD\ub97c \uc2dc\uccad\ud558\uc138\uc694."},keyMappingDefinition:{title:"title",description:"description"}};var Ha=Y.default.div.withConfig({displayName:"S_ReviewListWrapper",componentId:"sc-19bcdig-0"})(["border-bottom:1px solid;border-color:",";padding-bottom:",";&:last-child{border:none;}"],(function(e){return e.theme.ui_cpnt_card_border}),(function(e){return e.theme.spacing.spacingG})),Ga=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-19bcdig-1"})(["margin-top:",";"],(function(e){return e.theme.spacing.spacingI})),Xa=Y.default.div.withConfig({displayName:"S_CreateReviewBtnWrapper",componentId:"sc-19bcdig-2"})(["padding:0 ",";padding-top:",";;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingD})),qa=function(){var e,t;Object(H.b)("C00007MyReview","c00007_my_review");var n=Object(M.a)("translation").t,o=Object(i.c)(),s=Object(c.k)(),l=Object(c.m)().channelCode,d=Object(i.d)(r.c),u=Object(i.d)(a.c),p=Object(i.d)(zo.i),m=Object(i.d)(zo.j),j=Object(i.d)(zo.h),g=Object(i.d)(zo.f),x=Object(i.d)(St.g),O=Object(i.d)(G.l),v=Object(_.a)(),T=v.openDialog,y=v.closeDialog,C=Object(_.e)().userEntrywayForUse,w=Object(b.useState)(!1),E=Object(J.a)(w,2),A=E[0],D=E[1],P=Object(b.useState)({isOpen:!1,id:0}),N=Object(J.a)(P,2),L=N[0],B=N[1],z=Object(b.useRef)(null),V=U(),X=V.tabs,q=V.reviewsTabTitle,K=null===d||void 0===d?void 0:d.config,Y=null===(e=null===K||void 0===K?void 0:K[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===e||e,Q=(null===K||void 0===K?void 0:K[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_REVIEWS_SORT_OPTION])||"SORT_BY_RATING",$=u?{title:n("str_seo_c00007_my_review_title",{menuName:u.pAppCodeMenuItemNameSet[W.Y.C00007.CODE],interpolation:{escapeValue:!1}}),description:n("str_seo_c00007_my_review_descs",{channelName:u.title,interpolation:{escapeValue:!1}})}:null;Object(gc.c)({manifest:Wa,isActivated:!0,data:$,options:{useChannelTitlePrefix:!0}});var ee=function(){z.current&&(0!==z.current.scrollTop&&z.current.scrollTo(0,0))},te=function(e){var t=e.page,n=e.limit;o(Object(Uo.f)({queryParams:{sortBy:"SORT_BY_RATING"===Q?"score":"insertedAt",page:t,limit:n}}
1))},ne=Yo({isLoading:(null===j||void 0===j?void 0:j.type)===Uo.e.type,items:p||[],total:m.total,page:m.page,fetchNextPage:function(e){te({page:e,limit:m.limit})}}).lastItemRef;Object(b.useEffect)((function(){return te({page:m.page,limit:m.limit}),function(){o(Object(Uo.k)())}}),[]);var ie=Object(b.useMemo)((function(){return[{title:q||n("str_classes_review"),isActive:!1,onClick:function(){return s.push(Object(h.l)(k,{channelCode:l}))}},{title:n("str_class_myreview"),isActive:!0}]}),[]),ce=function(e){B({isOpen:!0,id:e})},oe=function(e){T({contentText:n("str_1355"),btnMode:"tbtn_amount2",tBtn1Text:n("str_ok"),tBtn2Text:n("str_cancel"),onClickTBtn1:function(){o(Object(Uo.c)({id:e,successCallback:function(){return te({page:m.page,limit:m.limit})}})),y()},onClickTBtn2:y})},se=function(e){s.push(Object(h.l)(R,{channelCode:l,id:e},{entryPage:qo}))},ae=function(e,t){var i;if(t)T({contentText:n("str_4000"),tBtn1Text:n("str_confirm"),onClickTBtn1:y});else{var c=null!==(i=null===O||void 0===O?void 0:O.get(e))&&void 0!==i&&i,o=null===x||void 0===x?void 0:x.some((function(t){return t.id===e}));s.push(Object(h.l)(c&&o?S:I,{channelCode:l,classId:e}))}};return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:X.length>1?"WTT_2":"WTM_2",container1Ref:z,isLoadingContainer1:z.current?(null===j||void 0===j?void 0:j.type)===Uo.e.type&&0===(null===(t=z.current)||void 0===t?void 0:t.scrollTop):(null===j||void 0===j?void 0:j.type)===Uo.e.type,pageMenuContent:Object(Z.jsx)(ue,{}),content1:Object(Z.jsxs)(Z.Fragment,{children:[1===X.length&&Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(Ho,{sideBar:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_UserDesktopSideTab,{itemArray:ie}),Object(Z.jsx)(Xa,{children:Object(Z.jsx)(F.D_MainButton,{size:"medium",text:n("str_class_create_review_btn"),iconMode:"left",iconFillType:"fill",iconName:"ic_edit",onClick:C((function(){D(!0)}))})})]}),main:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_TextLabel,{text:n("str_class_myreview"),styleTheme:"displayBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),0===(null===p||void 0===p?void 0:p.length)?Object(Z.jsx)(Ga,{children:Object(Z.jsx)(F.D_TextLabel,{text:n("str_c00007_no_review"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsx)(Ha,{children:null===p||void 0===p?void 0:p.map((function(e,t){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(yt,{ref:t===p.length-1?ne:null,id:e.id,isPublished:e.isPublished,profileDistinctId:e.profileDistinctId,profileImg:e.authorThumbnailSrc,nickname:e.author,updatedAt:me.a.tz(e.updatedAt).format("YYYY-MM-DD"),isEdited:e.insertedAt!==e.updatedAt,showRating:Y,score:e.score,content:e.content,contentImgSrcs:e.imgFileSrcs,targetClasses:e.targets,onTargetClassLabelClick:ae,onEditClick:ce,onDeleteClick:oe,onContentAreaClick:se},e.id),p.length-1!==t&&Object(Z.jsx)(F.Spacing,{size:"spacing_f"})]},e.id)}))})]})})]})}),A&&Object(Z.jsx)(Ds,{onClose:function(e){e&&(ee(),te({page:1,limit:m.limit})),D(!1)}}),L.isOpen&&Object(Z.jsx)(ua,{reviewId:L.id,onClose:function(e){e&&(ee(),te({page:1,limit:m.limit})),B({isOpen:!1,id:0})}}),g&&Object(Z.jsx)(Go,{error:g,onConfirmClick:function(){o(Object(Uo.l)())}})]})};var Ka=function(){return Object(Z.jsx)(c.g,{children:Object(Z.jsx)(c.d,{exact:!0,path:R,component:Ba})})};var Ya=function(){return Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(c.d,{exact:!0,path:k,render:function(){return Object(Z.jsx)(Va,{})}}),Object(Z.jsx)(s.l,{exact:!0,path:L,render:function(){return Object(Z.jsx)(qa,{})}}),Object(Z.jsx)(c.d,{path:R,render:function(){return Object(Z.jsx)(Ka,{})}}),Object(Z.jsx)(c.c,{to:k})]})},Za=n(310),Qa=n(498),$a=n.n(Qa);var Ja=Y.default.div.withConfig({displayName:"S_TextFieldBox",componentId:"sc-1jlxqh0-0"})(["box-sizing:border-box;padding:",";"],(function(e){return e.theme.spacing.spacingD})),er=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-1jlxqh0-1"})(["display:flex;margin-bottom:",";margin-left:",";position:relative;width:56px;"],(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingD})),tr=Y.default.div.withConfig({displayName:"S_IconButtonBox",componentId:"sc-1jlxqh0-2"})(["position:absolute;right:",";top:",";"],(function(e){return e.theme.spacing.spacingA}),(function(e){return e.theme.spacing.spacingA})),nr=Y.default.div.withConfig({displayName:"S_IconSheetWrapper",componentId:"sc-1jlxqh0-3"})(["box-sizing:border-box;display:flex;justify-content:space-between;padding:0 ",";width:100%;"],(function(e){return e.theme.spacing.spacingA})),ir=function(e){var t=e.handleCloseModal,n=e.handleClickSubmitComment,
1i=Object(M.a)("translation").t,c=Object(b.useState)(null),o=Object(J.a)(c,2),s=o[0],a=o[1],r=Object(b.useRef)(null),l=Object(_.a)(),d=l.openDialog,u=l.closeDialog,p={minLength:1,maxLength:{value:W.t,message:i("str_comment_limit_validation",{maxCount:W.t})}},m=Object(Zo.useForm)({mode:"onChange"}),j=m.handleSubmit,h=m.register,f=m.watch,x=m.formState,O=x.isValid,v=x.isDirty,T=x.errors,y=f("comment"),C=h("comment",p).onChange;return Object(Z.jsxs)(F.D_DesktopBasicModal,{titleText:i("str_2362"),mBtn1Text:i("str_ok"),mBtn1Type:"submit",mBtn1State:O&&null!==y&&void 0!==y&&y.trim()?"normal":"disabled",onClickMBtn1:j((function(e){n(e.comment,r.current),t()})),mBtn2Text:i("str_cancel"),mBtn2Type:"button",onClickMBtn2:function(){v?d({contentText:i("str_114"),btnMode:"tbtn_amount2",tBtn1Text:i("str_confirm"),tBtn2Text:i("str_cancel"),onClickTBtn1:function(){u(),t()},onClickTBtn2:u}):t()},btnMode:"mbtn_amount2",size:"medium",children:[Object(Z.jsx)(F.D_TextLabel,{text:i("str_papp_vod_class_respond"),styleTheme:"subTitleBold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(g.H,{isError:Boolean(T.comment),radius:16,children:Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"responsive",shapeType:"round",radius:16,paddingTop:"none",paddingBottom:"none",paddingLeft:"none",paddingRight:"none",children:[Object(Z.jsx)(Ja,{children:Object(Z.jsx)(Zo.FormProvider,Object(Ct.a)(Object(Ct.a)({},m),{},{children:Object(Z.jsxs)(F.Form,{children:[Object(Z.jsx)($a.a,{name:"comment",hintText:i("str_2463"),textLineType:"multi",multiRows:6,textSize:"form2",textWeight:"normal",responsiveMode:"use",validation:p,onChange:function(e){C(e)}}),Object(Z.jsx)(g.d,{error:T.comment})]})}))}),s&&Object(Z.jsxs)(er,{children:[Object(Z.jsx)(F.ImageView,{src:s,width:56,ratio:"1_1",radius:8,scaleType:"cover",borderMode:"use",backgroundFillMode:"use"}),Object(Z.jsx)(tr,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_xmark",iconColorKey:"ui_cpnt_button_icon_white",iconSize:16,shapeType:"circular",baseSize:"xsmall",baseColorKey:"ui_cpnt_button_fill_base_black_opacity50",onClick:function(){r.current=null,a(null)}})})]}),Object(Z.jsx)(nr,{children:Object(Z.jsx)(F.D_UploadIconButton,{iconName:"ic_photo",iconFillType:"fill",accept:"image/jpeg, image/jpg, image/png, image/gif",iconColorKey:"ui_cpnt_button_icon_enabled",baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",onClick:function(e){if(e.target.files){var t=e.target.files[0];if(Qo.a.getBytesToMb(t.size)>2)d({contentText:i("str_892"),btnMode:"tbtn_amount1",tBtn1Text:i("str_confirm"),onClickTBtn1:u});else{var n=URL.createObjectURL(t);r.current=t,a(n)}}}})})]})})]})};var cr=function(e){var t=e.storyButtonStatus,n=e.onClick,i=Object(M.a)("translation").t;switch(t){case"hidden":return Object(Z.jsx)(Z.Fragment,{});case"lock_message":return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:i("str_3345"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]});case"button":return Object(Z.jsx)(F.D_MainButton,{text:i("str_2360"),size:"small",fontWeight:"bold",iconMode:"left",iconFillType:"fill",iconName:"ic_edit",onClick:n})}},or=n(405),sr=n(597),ar=n(130);var rr=Y.default.div.withConfig({displayName:"S_ClassCommentEmptyList",componentId:"sc-1hf7t27-0"})(["padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),lr=function(e){var t=e.authorId,n=e.lastCommentRef,c=e.comments,o=e.isLoading,s=void 0!==o&&o,r=e.CommentAlertDialog,l=e.openCommentAlertDialog,d=e.handleClickConfirmCommentAlertDialog,u=e.handleClickCancelCommentAlertDialog,p=Object(M.a)("translation").t,m=Object(i.d)(a.d),b=Object(i.d)(sr.a),j=Object(i.d)(He.b),_=Object(i.d)(Ge.c),x=Object(We.a)(),O=x.ReportContent,v=x.openReportContentModal,T=Object(or.a)(),y=T.ModalDialog,C=T.setModalDialogMessage,S=T.setIsModalDialogOpen,I=h.b.isGuest();return Object(Z.jsxs)(Z.Fragment,{children:[s&&0===c.length&&Object(Z.jsx)(ar.a,{}),c.length>0?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(g.f,{children:c.map((function(e,i){var o,s=null===b||void 0===b||null===(o=b.find((function(t){return t.distinctId===e.profileDistinctId})))||void 0===o?void 0:o.distinctId,a=e.profileId===t,r=(e.profileDistinctId,null===m||void 0===m||m.channelProfile.distinctId,e.profileDistinctId===(null===m||void 0===m?void 0:m.channelProfile.distinctId)),d=e.profileDistinctId===s,u=r||d,g=e.profileDistinctId&&Boolean(j[e.profileDistinctId]),h=Boolean(_[e.id]);return Object(Z.jsx)(ye,{displayType:"moreBtn",contentDisplayType:g?"block":h?"hidden":"normal",content:e.content,avatarUrl:e.authorThumbnailSrc,nickname:e.author,nicknameBadgeMode:u?"use":"none",createdAt:e.insertedAt,mediaSrc:e.mediaSrc,distinctId:e.profileDistinctId,contextMenuItemArray:I?W.n:a?W.p:g?W.o:h?W.m:f.a,onClickContextMenuItem:function(t){var n;return function(e,t,n,i,c,o){switch(e.value){case"REPORT":if(o){C(p("str_6535")),S(!0);break}v(n,W.Y.C00007.CODE);break;case"DELETE":l(t,e.value,i,c);break;case"HIDE_COMMENT":if(o){C(p("str_6536")),S(!0);break}l(t,e.value,i,c);break;case"UNHIDE_COMMENT":l(t,e.value,i,c);break;case"BLOCK_USER":if(o){C(p("str_6537")),S(!0);break}l(t,e.value,i,c);break;case"UNBLOCK_USER":l(t,e.value,i,c)}}
1(t,e.id,e.content,e.author,null!==(n=e.profileDistinctId)&&void 0!==n?n:"",u)},ref:i===c.length-1?n:null},e.id)}))})]}):Object(Z.jsx)(rr,{children:Object(Z.jsx)(g.A,{text:p("str_2361")})}),Object(Z.jsx)(r,{onClickConfirm:d,onClickCancel:u}),Object(Z.jsx)(y,{}),O]})};var dr=Y.default.div.withConfig({displayName:"S_CommentListWrapper",componentId:"sc-1uqagq3-0"})(["[class^='S_CommenList']{margin-left:0px;margin-right:0px;}"]),ur=Y.default.div.withConfig({displayName:"S_ClassCommentEmptyList",componentId:"sc-1uqagq3-1"})(["padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),pr=function(e){var t=e.authorId,n=e.comments,c=e.totalCommentsCount,o=e.isLoading,s=void 0!==o&&o,r=e.handleMoreButtonClick,l=e.CommentAlertDialog,d=e.openCommentAlertDialog,u=e.handleClickConfirmCommentAlertDialog,p=e.handleClickCancelCommentAlertDialog,m=Object(M.a)("translation").t,b=Object(i.d)(a.d),j=Object(i.d)(G.j),_=Object(i.d)(He.b),x=Object(i.d)(Ge.c),O=Object(We.a)(),v=O.ReportContent,T=O.openReportContentModal,y=Object(or.a)(),C=y.ModalDialog,S=y.setModalDialogMessage,I=y.setIsModalDialogOpen,w=h.b.isGuest();return Object(Z.jsxs)(Z.Fragment,{children:[s&&0===n.length&&Object(Z.jsx)(ar.a,{}),n.length>0?Object(Z.jsxs)(dr,{children:[Object(Z.jsx)(g.f,{children:n.map((function(e){var n,i=null===j||void 0===j||null===(n=j.find((function(t){return t.distinctId===e.profileDistinctId})))||void 0===n?void 0:n.distinctId,c=e.profileId===t,o=(e.profileDistinctId,null===b||void 0===b||b.channelProfile.distinctId,e.profileDistinctId===(null===b||void 0===b?void 0:b.channelProfile.distinctId)),s=e.profileDistinctId===i,a=o||s,r=e.profileDistinctId&&Boolean(_[e.profileDistinctId]),l=Boolean(x[e.id]);return Object(Z.jsx)(ye,{displayType:"moreBtn",contentDisplayType:r?"block":l?"hidden":"normal",content:e.content,avatarUrl:e.authorThumbnailSrc,nickname:e.author,createdAt:e.insertedAt,mediaSrc:e.mediaSrc,distinctId:e.profileDistinctId,contextMenuItemArray:w?W.n:c?W.p:r?W.o:l?W.m:f.a,onClickContextMenuItem:function(t){var n;return function(e,t,n,i,c,o){switch(e.value){case"REPORT":if(o){S(m("str_6535")),I(!0);break}T(n,W.Y.C00007.CODE);break;case"DELETE":d(t,e.value,i,c);break;case"HIDE_COMMENT":if(o){S(m("str_6536")),I(!0);break}d(t,e.value,i,c);break;case"UNHIDE_COMMENT":d(t,e.value,i,c);break;case"BLOCK_USER":if(o){S(m("str_6537")),I(!0);break}d(t,e.value,i,c);break;case"UNBLOCK_USER":d(t,e.value,i,c)}}(t,e.id,e.content,e.author,null!==(n=e.profileDistinctId)&&void 0!==n?n:"",a)}},e.id)}))}),n.length<c&&Object(Z.jsx)(F.D_TextButton,{text:m("str_3451"),size:"small",responsiveMode:"use",fontWeight:"bold",type:"button",state:"normal",colorTheme:"grey_01",onClick:r})]}):Object(Z.jsx)(ur,{children:Object(Z.jsx)(g.A,{text:m("str_2361")})}),Object(Z.jsx)(l,{onClickConfirm:u,onClickCancel:p}),Object(Z.jsx)(C,{}),v]})};var mr=function(){var e=Object(M.a)("translation").t,t=Object(i.d)(r.c),n=null===t||void 0===t?void 0:t.config;return Object(Z.jsx)(F.D_TextLabel,{text:(null===n||void 0===n?void 0:n[f.g.UX_VODS_CLASS_OVERRIDE_TAB_03_NAME_WITH_I18N_SUPPORT])||e("str_p_app_c00007classdetail_story"),styleTheme:"displayBold"})},br={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var jr=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-1kd1lq5-0"})(["height:100%;overflow-y:auto;",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["display:flex;justify-content:center;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}))})),gr=Y.default.div.withConfig({displayName:"S_MainContentWrapper",componentId:"sc-1kd1lq5-1"})(["padding-right:",";",""],(function(e){return e.theme.spacing.spacingE}),(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["width:980px;"])})),_r=Y.default.div.withConfig({displayName:"S_HeaderBox",componentId:"sc-1kd1lq5-2"})(["align-items:center;display:flex;justify-content:",";min-width:662px;"],(function(e){return e.hasLocked?"normal":"space-between"})),hr=Y.default.div.withConfig({displayName:"S_SideTabBar",componentId:"sc-1kd1lq5-3"})(["height:100%;min-width:290px;position:sticky;top:0;"]),fr=Y.default.div.withConfig({displayName:"S_ContentsWrapper",componentId:"sc-1kd1lq5-4"})(["",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["align-items:center;display:flex;flex-direction:column;height:100%;max-width:1400px;min-width:980px;padding-left:",";width:100%;"],(function(e){return e.theme.spacing.spacingG}))})),xr=Y.default.div.withConfig({displayName:"S_ContentsBox",componentId:"sc-1kd1lq5-5"})(["min-width:662px;",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["[class^='S_CommenList']{margin-left:0;margin-right:0;}"])})),Or=function(){var e;Object(H.a)("C00007ClassComment");var t=Object(i.c)(),n=Object(M.a)("translation").t,o=Object(c.m)().classId,s=Object(b.useMemo)(a.n,[]),l=Object(i.d)(s),d=Object(i.d)(r.f),u=null!==(e=null===d||void 0===d?void 0:d[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==e?e:"BASIC",p=Object(i.d)(G.d),m=Object(i.d)(G.g),j=Object(i.d)(G.O),g=Object(i.d)(G.m),x=Object(i.d)(G.r),O=Object(_.e)().userEntrywayForUse,v=(null===l||void 0===l?void 0:l.id)||0;Object(b.useLayoutEffect)((function(){v&&t(Object(Za.b)({channelId:v,pAppCode:W.Y.C00007.CODE}))}),[v]);var T=Object(b.useState)(!1),y=Object(J.a)(T,2),C=y[0],S=y[1],I=Object(b.useState)((function(){if(l){var e=h.b.getUserMetaInChannel
1(l.id);if(e)return e.profileId}return""})),w=Object(J.a)(I,1)[0],E=Object(b.useMemo)((function(){return p?p.hasContentGroupLock?"lock_message":"button":"hidden"}),[null===p||void 0===p?void 0:p.hasContentGroupLock]),A=p?{title:n("str_seo_c00007_class_comment_title",{seriesTitle:p.title,interpolation:{escapeValue:!1}}),description:p.description&&n("str_seo_c00007_class_comment_desc",{seriesDescription:Object(h.j)(p.description,150)})}:null;Object(gc.c)({manifest:br,isActivated:!0,data:A,options:{useChannelTitlePrefix:!0}}),Object(b.useLayoutEffect)((function(){return t(Object(X.r)({seriesId:o})),t(Object(X.b)({targetModel:"SERIES",targetId:Number(o)})),function(){t(Object(X.bb)()),t(Object(X.db)())}}),[o]);var D=Ue({isLoading:x,comments:m,totalCommentsCount:j,deps:[o],handleDeleteComment:function(e){t(Object(X.k)({postId:o,commentId:e}))},fetchCommentsByPage:function(e){v&&t(Object(X.z)({limit:W.r,page:e,postId:o}))}}),P=D.lastCommentRef,N=D.CommentAlertDialog,k=D.openCommentAlertDialog,R=D.handleClickConfirmCommentAlertDialog,L=D.handleClickCancelCommentAlertDialog,B=function(){S(!1)};return Object(Z.jsx)(F.WTContainersBox,{layoutType:"VISUAL_BASIC"===u?"WTH_1":"WTO_1",isLoadingContainer1:x,pageMenuContent:Object(Z.jsx)(ue,{}),subMenuContent:Object(Z.jsx)(de,{classId:o}),content1:Object(Z.jsxs)(jr,{classDetailTemplate:u,children:["VISUAL_BASIC"===u&&Object(Z.jsx)(hr,{children:Object(Z.jsx)(de,{classId:o})}),Object(Z.jsxs)(fr,{classDetailTemplate:u,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsxs)(gr,{classDetailTemplate:u,children:[Object(Z.jsxs)(_r,{hasLocked:null===p||void 0===p?void 0:p.hasContentGroupLock,children:[Object(Z.jsx)(mr,{}),Object(Z.jsx)(cr,{storyButtonStatus:E,onClick:O((function(){S(!0)}))})]}),Object(Z.jsxs)(xr,{classDetailTemplate:u,children:[Object(Z.jsx)(lr,{isLoading:x,authorId:w,comments:m,lastCommentRef:P,CommentAlertDialog:N,openCommentAlertDialog:k,handleClickConfirmCommentAlertDialog:R,handleClickCancelCommentAlertDialog:L}),C&&Object(Z.jsx)(ir,{handleCloseModal:B,handleClickSubmitComment:function(e,n){!function(e,n){var i=h.b.getChannelProfile(v);i&&t(Object(X.f)({content:e,postId:o,author:i.nickname,authorThumbnailSrc:i.imageSrc,file:null!==n&&void 0!==n?n:void 0}))}(e,n),B()}}),g&&Object(Z.jsx)(ie,{error:g})]})]})]})]})})},vr={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var Tr=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-15tjxkd-0"})(["height:100%;padding-bottom:",";width:100%;"],(function(e){return e.theme.spacing.spacingF})),yr=Y.default.div.withConfig({displayName:"S_HeaderBox",componentId:"sc-15tjxkd-1"})(["align-items:center;display:flex;justify-content:",";"],(function(e){return e.hasLocked?"normal":"space-between"})),Cr=function(){Object(H.a)("C00007ClassComment");var e=Object(i.c)(),t=Object(M.a)("translation").t,n=Object(c.m)().classId,o=Object(b.useMemo)(a.n,[]),s=Object(i.d)(o),r=Object(i.d)(G.d),l=Object(i.d)(G.g),d=Object(i.d)(G.O),u=Object(i.d)(G.r),p=Object(b.useState)(!1),m=Object(J.a)(p,2),j=m[0],f=m[1],x=Object(b.useState)(1),O=Object(J.a)(x,2),v=O[0],T=O[1],y=Object(b.useState)((function(){if(s){var e=h.b.getUserMetaInChannel
1(s.id);if(e)return e.profileId}return""})),C=Object(J.a)(y,1)[0],S=Object(_.e)().userEntrywayForUse,I=(null===s||void 0===s?void 0:s.id)||0;Object(b.useEffect)((function(){return A(1),function(){e(Object(X.bb)()),e(Object(X.db)())}}),[]),Object(b.useEffect)((function(){I&&e(Object(X.F)({channelId:I}))}),[I]),Object(b.useEffect)((function(){function e(){j&&f(!1)}return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[j]);var w=Object(b.useMemo)((function(){return r?r.hasContentGroupLock?"lock_message":"button":"hidden"}),[null===r||void 0===r?void 0:r.hasContentGroupLock]),E=r?{title:t("str_seo_c00007_class_comment_title",{seriesTitle:r.title,interpolation:{escapeValue:!1}}),description:r.description&&t("str_seo_c00007_class_comment_desc",{seriesDescription:Object(h.j)(r.description,150)})}:null,A=function(t){I&&e(Object(X.z)({limit:W.ob,page:t,postId:n}))},D=Ue({isLoading:u,comments:l,totalCommentsCount:d,deps:[n],handleDeleteComment:function(t){e(Object(X.k)({postId:n,commentId:t}))}}),P=D.CommentAlertDialog,N=D.openCommentAlertDialog,k=D.handleClickConfirmCommentAlertDialog,R=D.handleClickCancelCommentAlertDialog;return Object(gc.c)({manifest:vr,isActivated:!0,data:E,options:{useChannelTitlePrefix:!0}}),Object(Z.jsx)(Tr,{children:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_h"}),Object(Z.jsxs)(yr,{hasLocked:null===r||void 0===r?void 0:r.hasContentGroupLock,children:[Object(Z.jsx)(mr,{}),Object(Z.jsx)(cr,{storyButtonStatus:w,onClick:S((function(){f(!0)}))})]}),0===l.length?Object(Z.jsx)(g.I,{text:t("str_2361")}):Object(Z.jsx)(pr,{isLoading:u,authorId:C,comments:l,totalCommentsCount:d,CommentAlertDialog:P,handleMoreButtonClick:function(){A(v+1),T((function(e){return e+1}))},openCommentAlertDialog:N,handleClickConfirmCommentAlertDialog:k,handleClickCancelCommentAlertDialog:R}),j&&Object(Z.jsx)(ir,{handleCloseModal:function(){f(!1)},handleClickSubmitComment:function(t,i){!function(t,i){var c=h.b.getChannelProfile(I);c&&e(Object(X.f)({content:t,postId:n,author:c.nickname,authorThumbnailSrc:c.imageSrc,file:null!==i&&void 0!==i?i:void 0}))}(t,i),f(!1)}})]})})},Sr=n(79),Ir=n.n(Sr),wr=n(605);function Er(e){var t,n,c=Object(M.a)("translation").t,o=Object(i.d)(St.f),s=Object(i.d)(St.g);if(void 0===e)return null;var a=Number(e),r=null!==(t=null===o||void 0===o?void 0:o.find((function(e){return(null===e||void 0===e?void 0:e.id)===a})))&&void 0!==t?t:null===s||void 0===s?void 0:s.find((function(e){return(null===e||void 0===e?void 0:e.id)===a}));return un(null===r||void 0===r||null===(n=r.contentEnrollment)||void 0===n?void 0:n.endAt,c)}var Ar=Y.default.div.withConfig({displayName:"S_ProgressBarWrapper",componentId:"sc-ki43pc-0"})(["align-items:center;display:flex;justify-content:space-between;position:relative;"]),Dr=Y.default.div.withConfig({displayName:"S_ProgressBarBox",componentId:"sc-ki43pc-1"})(["align-items:center;display:flex;height:20px;position:relative;width:100%;"]),Pr=Y.default.div.withConfig({displayName:"S_ProgressBackgroundBar",componentId:"sc-ki43pc-2"})(["background-color:",";border-radius:6px;height:18px;width:100%;"],(function(e){return e.theme.ui_temp_grey_04})),Nr=Y.default.div.withConfig({displayName:"S_PercentWrapper",componentId:"sc-ki43pc-3"})(["display:flex;justify-content:flex-end;& > div{white-space:nowrap;}"]),kr=Y.default.div.withConfig({displayName:"S_ProgressBar",componentId:"sc-ki43pc-4"})(["background-color:",";border-radius:6px;height:18px;position:absolute;width:","%;"],(function(e){return e.theme.ui_temp_usr_primary_01}),(function(e){return e.nowPercent})),Rr=function(e){var t=e.progress,n=Object(M.a)("translation").t,i=Math.min(100,Math.round(t));return Object(Z.jsxs)(Ar,{children:[Object(Z.jsxs)(Dr,{children:[Object(Z.jsx)(Pr,{}),Object(Z.jsx)(kr,{nowPercent:i})]}),Object(Z.jsxs)(Nr,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_2498",{percentage:i,defaultValue:"\uc9c4\ub3c4\uc728 {{percentage}}%"}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})]})]})};var Lr=Y.default.div.withConfig({displayName:"S_EndAtWrapper",componentId:"sc-1qlmd9z-0"})(["display:flex;width:fit-content;"]),Br=Y.default.div.withConfig({displayName:"S_SectionSheetPanel",componentId:"sc-1qlmd9z-1"})(["background-color:",";border-radius:16px;padding-left:",";padding-right:",";width:100%;"],(function(e){return e.theme.ui_cpnt_sheet_base}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Mr=function(e){var t=e.totalSessionCount,n=e.completionSessionCount,i=Object(M.a)("translation").t,o=Object(c.m)().classId,s=dn("CLASS_DETAIL"),a=Er(o),r=s?a:null,l=Math.floor(n/t*100);return Object(Z.jsxs)(Br,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:i("str_3021"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:i("str_3026",{SessionCnt:t,CompletedSessionCnt:n}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),r&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(Lr,{children:Object(Z.jsx)(F.D_TextLabel,{text:r.text,styleTheme:"caption1Regular",colorTheme:r.colorTheme,tooltipText:i("str_c00007myclass_enddate_notice"),tooltipPosition:"top"})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(Rr,{progress:l}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]})};var zr=function(){var e=Object(M.a)("translation").t,t=Object(i.d)(r.c),n=null===t||void 0===t?void 0:t.config;return Object(Z.jsx)(F.D_TextLabel,{text:(null===n||void 0===n?void 0:n[f.g.UX_VODS_CLASS_OVERRIDE_TAB_02_NAME_WITH_I18N_SUPPORT])||e("str_p_app_c00007classdetail_curriclum"),styleTheme:"displayBold",wordBreak:"break_all"})},Ur={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var Fr=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-1h3ccfc-0"}
1)(["height:100%;overflow-y:auto;",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["display:flex;justify-content:center;padding-left:",";padding-right:",";width:100%;"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}))})),Vr=Y.default.div.withConfig({displayName:"S_ClassDetailList",componentId:"sc-1h3ccfc-1"})(["padding-left:",";padding-right:",";",""],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE}),(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["align-items:center;display:flex;flex-direction:column;height:100%;max-width:1400px;min-width:980px;padding-left:",";padding-right:0;width:100%;"],(function(e){return e.theme.spacing.spacingG}))})),Wr=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-1h3ccfc-2"})(["align-items:center;display:flex;"]),Hr=Y.default.div.withConfig({displayName:"S_SideTabBar",componentId:"sc-1h3ccfc-3"})(["height:100%;min-width:290px;position:sticky;top:0;"]),Gr=Y.default.div.withConfig({displayName:"S_CurriculumWrapper",componentId:"sc-1h3ccfc-4"})(["min-width:614px;",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["width:980px;"])})),Xr=function(){var e,t,n;Object(H.b)("C00007ClassDetail","c00007_class_detail");var o=Object(c.k)(),s=Object(i.c)(),l=Object(M.a)("translation").t,d=Object(c.m)().classId,u=Object(b.useMemo)(a.n,[]),p=Object(i.d)(u),m=Object(i.d)(G.o),j=Object(i.d)(r.d),_=Object(i.d)(r.f),x=null!==(e=null===_||void 0===_?void 0:_[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==e?e:"BASIC",O=Object(i.d)(St.g),v=Object(i.d)(G.d),T=Object(i.d)(G.k),y=Object(i.d)(G.N),C=Object(i.d)(G.h),S=Object(i.d)(G.B),I=Object(i.d)(wr.E),w=Object(i.d)(G.m),E=Object(i.d)(G.z),A=h.b.isGuest(),D=(null===p||void 0===p?void 0:p.channelCode)||"",N=v?{title:l("str_seo_c00007_class_detail_title",{seriesTitle:v.title,interpolation:{escapeValue:!1}}),description:v.description&&l("str_seo_c00007_class_detail_desc",{seriesDescription:Object(h.j)(v.description,150)})}:null,k=O.some((function(e){return(null===e||void 0===e?void 0:e.id)===Number(d)})),R=0!==(null===I||void 0===I?void 0:I.length)&&(!(!A||j)||!(A&&(null===v||void 0===v||!v.hasContentGroupLock))&&!k&&!(null===v||void 0===v||!v.hasContentGroupLock));return Object(gc.c)({manifest:Ur,isActivated:!0,data:N,options:{useChannelTitlePrefix:!0}}),Object(b.useLayoutEffect)((function(){s(Object(X.s)({seriesId:d})),(!A||null!==v&&void 0!==v&&v.hasContentGroupLock||!j)&&s(Object(X.S)({seriesId:d}))}),[d,m,A,null===v||void 0===v?void 0:v.hasContentGroupLock]),Object(b.useEffect)((function(){s(Object(St.b)())}),[]),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"VISUAL_BASIC"===x?"WTH_1":"WTO_1",isLoadingContainer1:E,pageMenuContent:Object(Z.jsx)(ue,{}),subMenuContent:Object(Z.jsx)(de,{classId:d}),content1:Object(Z.jsxs)(Fr,{classDetailTemplate:x,children:["VISUAL_BASIC"===x&&Object(Z.jsx)(Hr,{children:Object(Z.jsx)(de,{classId:d})}),Object(Z.jsx)(Vr,{classDetailTemplate:x,children:Object(Z.jsxs)(Gr,{classDetailTemplate:x,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsxs)(Wr,{children:[Object(Z.jsx)(zr,{}),(null===v||void 0===v?void 0:v.hasContentGroupLock)&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_3344"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]}),0===(null===T||void 0===T?void 0:T.curriculumItems.length)?Object(Z.jsx)(Vr,{classDetailTemplate:x,children:Object(Z.jsx)(g.A,{text:l("str_6829")})}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),!(null!==v&&void 0!==v&&v.hasContentGroupLock)&&S.length>0&&y.length>0&&!h.b.isGuest()&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(Mr,{completionSessionCount:null===(t=S[0])||void 0===t?void 0:t.totalValidPostViewCompletionRecords,totalSessionCount:y.length}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"})]}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_2358",{classVodCnt:(null===v||void 0===v?void 0:v.totalEpisodes)||0}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary",textAlign:"left"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),null===T||void 0===T||null===(n=T.curriculumItems)||void 0===n?void 0:n.map((function(e){var t;return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(Re,{title:e.title,isOpen:!0,children:null===(t=e.curriculumItems)||void 0===t?void 0:t.map((function(e){var t,n,i,c,s,a,r,u,p,b,j,g,_,f,x,O,T=null===(t=e.post)||void 0===t?void 0:t.type,y="";"VOD"===T&&(u="ic_video_play_circle",j=(null===(p=e.post)||void 0===p||null===(b=p.vodResource)||void 0===b?void 0:b.duration)||0,y=Ir.a.duration(1e3*j).format(j>3600?"HH:mm:ss":"mm:ss"));("PLAIN"===T&&(u="ic_pages",y=l("str_6918")),"LIVE_COACHING"===T)&&(u="ic_live",y=l("str_key_user_scene_c00007classdetail_section_session_livecoaching_caption",{liveSessionStartsAt
1:me.a.tz(null===(g=e.post)||void 0===g?void 0:g.liveCoachingStartsAt).format("YYYY-MM-DD(ddd) HH:mm"),liveSessionDuration:null===(_=e.post)||void 0===_?void 0:_.liveCoachingDurationInMinutes}));return Object(Z.jsx)(Ae,{title:(f=(null===e||void 0===e||null===(n=e.post)||void 0===n?void 0:n.title)||"",x=Boolean(null===e||void 0===e||null===(i=e.post)||void 0===i?void 0:i.isPublished),O=Boolean(null===e||void 0===e||null===(c=e.post)||void 0===c?void 0:c.isUserLegallyIneligible),x?O?l("str_3336"):f:l("str_2775")),iconName:u,caption1Text:y,isLocked:Boolean(null===v||void 0===v?void 0:v.hasContentGroupLock),hasEnrolled:m,isViewCompleted:Boolean(C.find((function(t){var n;return(null===t||void 0===t?void 0:t.postId)===(null===(n=e.post)||void 0===n?void 0:n.id)}))),isLatestSeriesConsumeRecords:!h.b.isGuest()&&(null===(s=S[0])||void 0===s?void 0:s.postId)===(null===(a=e.post)||void 0===a?void 0:a.id),isPreview:Boolean(R&&I.some((function(t){var n;return t.postId===(null===(n=e.post)||void 0===n?void 0:n.id)}))),hasAttachments:!(null===(r=e.post)||void 0===r||!r.uploadFileSrc),onClick:function(){var t,n;return n=(null===(t=e.post)||void 0===t?void 0:t.id)||0,void o.push(Object(h.l)(P,{channelCode:D,classId:d,sessionId:n},{prevPath:"class"}))}},e.id)}))}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]},e.id)}))]})]})})]})}),w&&Object(Z.jsx)(ie,{error:w})]})},qr={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var Kr=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-yvcdw0-0"})(["height:100%;overflow-y:auto;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingF})),Yr=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-yvcdw0-1"})(["align-items:center;display:flex;"]),Zr=function(e){var t,n=e.isPreviewButtonVisible;Object(H.b)("C00007ClassDetail","c00007_class_detail");var o=Object(c.k)(),s=Object(M.a)("translation").t,r=Object(c.m)().classId,l=Object(b.useMemo)(a.n,[]),d=Object(i.d)(l),u=Object(i.d)(wr.m),p=Object(i.d)(G.d),m=Object(i.d)(G.k),j=Object(i.d)(G.h),_=Object(i.d)(G.B),f=Object(i.d)(wr.E),x=(null===d||void 0===d?void 0:d.channelCode)||"",O=p?{title:s("str_seo_c00007_class_detail_title",{seriesTitle:p.title,interpolation:{escapeValue:!1}}),description:p.description&&s("str_seo_c00007_class_detail_desc",{seriesDescription:Object(h.j)(p.description,150)})}:null;return Object(gc.c)({manifest:qr,isActivated:!0,data:O,options:{useChannelTitlePrefix:!0}}),Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(Kr,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_h"}),Object(Z.jsxs)(Yr,{children:[Object(Z.jsx)(zr,{}),(null===p||void 0===p?void 0:p.hasContentGroupLock)&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:s("str_3344"),styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]}),0===(null===m||void 0===m?void 0:m.curriculumItems.length)?Object(Z.jsx)(g.A,{text:s("str_6829")}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.D_TextLabel,{text:s("str_2358",{classVodCnt:(null===p||void 0===p?void 0:p.totalEpisodes)||0}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary",textAlign:"left"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),null===m||void 0===m||null===(t=m.curriculumItems)||void 0===t?void 0:t.map((function(e){var t;return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(Re,{title:e.title,isOpen:!0,children:null===(t=e.curriculumItems)||void 0===t?void 0:t.map((function(e){var t,i,c,a,l,d,m,b,g,O,v,T,y,C,S,I,w=null===(t=e.post)||void 0===t?void 0:t.type,E="";"VOD"===w&&(b="ic_video_play_circle",v=(null===(g=e.post)||void 0===g||null===(O=g.vodResource)||void 0===O?void 0:O.duration)||0,E=Ir.a.duration(1e3*v).format(v>3600?"HH:mm:ss":"mm:ss"));("PLAIN"===w&&(b="ic_pages",E=s("str_6918")),"LIVE_COACHING"===w)&&(b="ic_live",E=s("str_key_user_scene_c00007classdetail_section_session_livecoaching_caption",{liveSessionStartsAt
1:me.a.tz(null===(T=e.post)||void 0===T?void 0:T.liveCoachingStartsAt).format("YYYY-MM-DD(ddd) HH:mm"),liveSessionDuration:null===(y=e.post)||void 0===y?void 0:y.liveCoachingDurationInMinutes}));return Object(Z.jsx)(Ae,{title:(C=(null===e||void 0===e||null===(i=e.post)||void 0===i?void 0:i.title)||"",S=Boolean(null===e||void 0===e||null===(c=e.post)||void 0===c?void 0:c.isPublished),I=Boolean(null===e||void 0===e||null===(a=e.post)||void 0===a?void 0:a.isUserLegallyIneligible),S?I?s("str_3336"):C:s("str_2775")),iconName:b,caption1Text:E,isLocked:Boolean(null===p||void 0===p?void 0:p.hasContentGroupLock),hasEnrolled:Boolean(u),isViewCompleted:Boolean(j.find((function(t){var n;return(null===t||void 0===t?void 0:t.postId)===(null===(n=e.post)||void 0===n?void 0:n.id)}))),isLatestSeriesConsumeRecords:!h.b.isGuest()&&(null===(l=_[0])||void 0===l?void 0:l.postId)===(null===(d=e.post)||void 0===d?void 0:d.id),isPreview:Boolean(n&&f.some((function(t){var n;return t.postId===(null===(n=e.post)||void 0===n?void 0:n.id)}))),hasAttachments:!(null===(m=e.post)||void 0===m||!m.uploadFileSrc),onClick:function(){var t,n;return n=(null===(t=e.post)||void 0===t?void 0:t.id)||0,void o.push(Object(h.l)(P,{channelCode:x,classId:r,sessionId:n},{prevPath:"class"}))}},e.id)}))}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]},e.id)}))]})]})})};function Qr(e){var t=e.isLoading,n=e.templateName,i=e.hasContentGroupLock,o=Object(c.k)(),s=Object(c.m)(),a=s.channelCode,r=s.classId,l=Object(c.l)().hash,d=Object(b.useState)(null),u=Object(J.a)(d,2),p=u[0],m=u[1],j=Object(b.useRef)(null),g=Object(b.useRef)(null),_=Object(b.useRef)(null),f=Object(b.useRef)(null),x=Object(b.useRef)(null),O=Object(b.useRef)(null),v=Object(b.useRef)(null),T={container:j,info:g,curriculums:_,reviews:f,comments:x,notices:O,"notices-for-student":v};return Object(b.useLayoutEffect)((function(){if(n.includes("TABBAR")){var e,t=j.current;if(!t){var i=new MutationObserver((function(){var e=j.current;e&&c(e)}));return i.observe(document.body,{childList:!0,subtree:!0}),function(){i.disconnect(),e&&e()}}c(t)}function c(t){var n=[{ref:g,id:"info"},{ref:_,id:"curriculums"},{ref:f,id:"reviews"},{ref:x,id:"comments"},{ref:O,id:"notices"},{ref:v,id:"notices-for-student"}],i=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=null;return function(){for(var c=arguments.length,o=new Array(c),s=0;s<c;s++)o[s]=arguments[s];t?i=o:(e.apply(void 0,o),t=setTimeout((function(){i&&(e.apply(void 0,Object(Ye.a)(i)),i=null),t=null}),n))}}((function(){for(var e=t.scrollTop,i=0,c=n;i<c.length;i++){var o=c[i],s=o.ref,a=o.id;if(s.current){var r=s.current.offsetTop-300,l=r+s.current.offsetHeight;if(e>=r&&e<l){m(a);break}}}}),150);t.addEventListener("wheel",i),i(),e=function(){t.removeEventListener("wheel",i)}}}),[n,t]),Object(b.useEffect)((function(){if(!t){if(!n.includes("TABBAR"))return;if(!l)return void m("info");if("#notices-for-student"===l&&i)return void o.replace("".concat(Object(h.l)(I,{channelCode:a,classId:r}),"#info"));var e=l.replace("#","");if(!(e in T))return;m(e);var c=setTimeout((function(){return function(){var t=T[e].current;return!!t&&0!==t.getBoundingClientRect().height&&(t.scrollIntoView({behavior:"smooth"}),!0)}()}),300);return function(){clearTimeout(c)}}}),[l,n,t,i]),{refs:T,activeSection:p,handleActiveSection:function(e){return m(e)}}}var $r=n(26),Jr=n(60);function el(e){var t=e.isTabBarTemplate,n=void 0!==t&&t,i=e.iconName,c=e.announceText,o=e.timeLabel;return Object(Z.jsxs)(F.D_SectionSheet,{width:n?"336px":"100%",height:"auto",overrideBackgroundColorKey:"ui_131",paddingLeft:n?"spacing_e":"spacing_d",paddingTop:n?"spacing_c":"spacing_b",paddingRight:"spacing_e",paddingBottom:n?"spacing_c":"spacing_b",shapeType:"round",radius:n?16:8,overrideCSS:n?{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px"}:{display:"flex",justifyContent:"space-between",marginTop:"8px"},children:[Object(Z.jsxs)(nl,{children:[Object(Z.jsx)(F.Icon,{iconName:i,size:16,colorKey:"ui_cpnt_icon_usr_brandprimary"}),Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Bold",colorTheme:"usrTextBrandPrimary"})]}),Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"caption1Bold",colorTheme:"usrTextBrandPrimary"})]})}var tl=j.a.memo(el),nl=Y.default.div.withConfig({displayName:"S_PromotionDescription",componentId:"sc-1vgf6ac-0"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),il=["isPromotionPanelShow"];var cl=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-1pcl297-0"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingE})),ol=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-1pcl297-1"})(["align-items:baseline;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingB})),sl=Y.default.div.withConfig({displayName:"S_ResultPrice",componentId:"sc-1pcl297-2"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),al=Y.default.div.withConfig({displayName:"S_DiscountedPercentage",componentId:"sc-1pcl297-3"})(["align-items:center;display:flex;gap:1px;"]),rl=Y.default.div.withConfig({displayName:"S_ReviewAmountWrapper",componentId:"sc-1pcl297-4"})(["align-items:center;display:flex;flex-direction:row;"]),ll=function(e){var t=e.isPurchased,n=e.hasEnrolled,i=e.isRegistered,o=e.classInfo,s=e.reviewsViewModel,a=e.limitedTimeBenefitViewModel,r=e.discountBenefitViewModel,l=Object(M.a)().t,d=Object(c.m)().classId,u=dn("CLASS_DETAIL"),p=Er(d),m=u?p:null,b=a.isPromotionPanelShow,j=Object($r.a)(a,il),g=s.isReviewAmountVisible,_=s.isReviewScoreVisible,f=s.reviewAmount,x=s.reviewScore,O=r.hasDiscountBenefit,v=r.isPriceInfoShow,T=r.originalPriceLabel,y=r.finalPriceLabel,C=r.discountRate,S=r.installmentsLabel;return Object(Z.jsxs)(Z.Fragment,{children:[(_||g)&&Object(Z.jsxs)(cl,{children:[_&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:20,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:x,colorTheme:"sysTextPrimary"})]}),_&&g&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Divider,{direction:"vertical",height:12}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),g&&Object(Z.jsx)(Jr.Link,{to:Object(h.l)(w,{channelCode:h.f.getChannelCode(),classId:String(o.id)}),children:Object(Z.jsxs)(rl,{children:[Object(Z.jsx)(F.D_TextLabel,{text:l(f>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:f}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_right",size:16,colorKey:"ui_cpnt_icon_sys_grey_02"})]})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),i?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(ol,{children:Object(Z.jsx)(F.D_TextLabel,{text:l(n?"str_8183":"str_8182"),styleTheme:"headingBold",colorTheme:"sysTextPrimary"})}),m&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:m.text,styleTheme:"caption1Regular",colorTheme:m.colorTheme,tooltipText:l("str_c00007myclass_enddate_notice"),tooltipPosition:"top"})]})]}):Object(Z.jsxs)(Z.Fragment,{children:[v&&Object(Z.jsxs)(Z.Fragment,{children:[O&&T&&Object(Z.jsx)(F.D_TextLabel,{text:T,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"}),Object(Z.jsxs)(ol,{children:[Object(Z.jsxs)(sl,{children:[O&&T&&C>0&&Object(Z.jsxs)(al,{children:[Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"headingBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:y,styleTheme:"headingBold",colorTheme:"sysTextPrimary"})]}),S&&Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",tooltipText:l("str_class_classintro_tooltip"),tooltipPosition:"right_top"})]})]}),!t&&b&&Object(Z.jsx)(tl,Object(Ct.a)({},j))]})]})};var dl=Y.default.div.withConfig({displayName:"S_BookmarIconButtonWrapper",componentId:"sc-4o9xzl-0"})(["min-width:48px;"]),ul=function(e){var t=e.hasUserBookmarked,n=e.isTabbarTemplate,o=Object(i.c)(),s=Object(_.e)().userEntrywayForUse,a=Object(c.m)().classId,r=Object(b.useState)(t||!1),l=Object(J.a)(r,2),d=l[0],u=l[1];return Object(b.useEffect)((function(){t&&u(t)}),[t]),Object(Z.jsx)(dl,{children:Object(Z.jsx)(F.D_IconButton,{colorTheme:"none",fillType:"fill",shapeType:"round",baseSize:"large",iconSize:24,baseColorKey:n?"ui_cpnt_button_fill_base_on_sheet":"ui_cpnt_button_fill_base_default",iconColorKey:"ui_cpnt_button_fill_base_primary",iconFillType:d?"fill":"line",iconName:"ic_bookmark",onClick:s((function(){o(d?Object(X.l)({seriesId:a}):Object(X.a)({seriesId:a})),u(!d)}))})})},pl=n(95);var ml=function(e){var t,n,o=e.useResponsiveMode,s=void 0!==o&&o,a=Object(M.a)().t,l=Object(c.k)(),d=Object(c.m)(),u=d.channelCode,p=d.classId,m=Object(_.e)().userEntrywayForUse,b=Object(_.a)(),j=b.openDialog,g=b.closeDialog,f=Object(i.d)(G.d),x=Object(i.d)(G.B),O=Object(i.d)(G.N),v=Object(i.d)(G.k),T=Object(i.d)(G.o),y=Object(i.d)(r.d),C=h.b.isGuest(),S=v?function e(t){var n,i=Object(pl.a)(t);try{for(i.s();!(n=i.n()).done;){var c,o=n.value;if("SESSION"===o.type&&null!==(c=o.post)&&void 0!==c&&c.id)return o.post.id;if(o.curriculumItems&&o.curriculumItems.length>0){var s=e(o.curriculumItems);if(s)return s}}}catch(a){i.e(a)}finally{i.f()}}(v.curriculumItems):void 0,I=x.length>0?x[0].postId:S||(null===(t=O[0])||void 0===t||null===(n=t.post)||void 0===n?void 0:n.id),w=x.length>0&&!C?a("str_2497"):a("str_start");return Object(Z.jsx)(Z.Fragment,{children:null!==f&&void 0!==f&&f.hasContentGroupLock||!(C&&y||T)?Object(Z.jsx)(Z.Fragment,{}):Object(Z.jsx)(F.D_MainButton,{text:w,size:"large",styleTheme:"primary",responsiveMode:s?"use":"none",onClick:m((function(){I?l.push(Object(h.l)(P,{channelCode:u,classId:p,sessionId:I},{prevPath:"information"})):j({contentText:a("str_8177"),btnMode:"tbtn_amount1",tBtn1Text:a("str_confirm"),onClickTBtn1:g})}),"GUEST_OPEN_WHEN_PUBLIC_OPEN")})})};var bl=Y.default.div.withConfig({displayName:"S_ProgressBarWrapper",componentId:"sc-1w6198o-0"})(["align-items:flex-end;display:flex;flex-direction:column;position:relative;"]),jl=Y.default.div.withConfig({displayName:"S_ProgressBarBox",componentId:"sc-1w6198o-1"})(["align-items:center;display:flex;height:20px;position:relative;width:100%;"]),gl=Y.default.div.withConfig({displayName:"S_ProgressBackgroun
1dBar",componentId:"sc-1w6198o-2"})(["background-color:",";border-radius:6px;height:18px;width:100%;"],(function(e){return e.theme.ui_temp_grey_04})),_l=Y.default.div.withConfig({displayName:"S_PercentWrapper",componentId:"sc-1w6198o-3"})(["display:flex;justify-content:flex-end;padding-top:",";& > div{white-space:nowrap;}"],(function(e){return e.theme.spacing.spacingB})),hl=Y.default.div.withConfig({displayName:"S_ProgressBar",componentId:"sc-1w6198o-4"})(["background-color:",";border-radius:6px;height:18px;position:absolute;width:","%;"],(function(e){return e.theme.ui_temp_usr_primary_01}),(function(e){return e.nowPercent})),fl=function(e){var t=e.progress,n=Object(M.a)("translation").t,i=Math.min(100,Math.round(t));return Object(Z.jsxs)(bl,{children:[Object(Z.jsxs)(jl,{children:[Object(Z.jsx)(gl,{}),Object(Z.jsx)(hl,{nowPercent:i})]}),Object(Z.jsx)(_l,{children:Object(Z.jsx)(F.D_TextLabel,{text:n("str_2498",{percentage:i,defaultValue:"\uc9c4\ub3c4\uc728 {{percentage}}%"}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"})})]})};var xl=Y.default.div.withConfig({displayName:"S_EndAtWrapper",componentId:"sc-1cqc4du-0"})(["display:flex;width:fit-content;"]),Ol=Y.default.div.withConfig({displayName:"S_SectionSheetPanel",componentId:"sc-1cqc4du-1"})(["background-color:",";border-radius:16px;display:flex;flex-direction:column;padding:",";width:",";"],(function(e){return e.theme.ui_cpnt_sheet_base}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.classDetailTempateName.includes("TABBAR")?"336px":"100%"})),vl=function(){var e,t,n,o,s=Object(M.a)("translation").t,a=Object(c.m)().classId,l=Object(i.d)(r.f),d=Object(i.d)(G.d),u=Object(i.d)(G.B),p=dn("CLASS_DETAIL"),m=Er(a),b=p?m:null,j=null!==(e=null===l||void 0===l?void 0:l[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==e?e:"BASIC",g=null!==(t=null===d||void 0===d?void 0:d.totalEpisodes)&&void 0!==t?t:0,_=null!==(n=null===u||void 0===u||null===(o=u[0])||void 0===o?void 0:o.totalValidPostViewCompletionRecords)&&void 0!==n?n:0,h=0===g?0:Math.floor(_/g*100);return Object(Z.jsxs)(Ol,{classDetailTempateName:j,children:[Object(Z.jsx)(F.D_TextLabel,{text:s("str_3021"),styleTheme:"leadParaBold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:s("str_3026",{SessionCnt:g,CompletedSessionCnt:_}),styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),b&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(xl,{children:Object(Z.jsx)(F.D_TextLabel,{text:b.text,styleTheme:"caption1Regular",colorTheme:b.colorTheme,tooltipText:s("str_c00007myclass_enddate_notice"),tooltipPosition:"top"})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(fl,{progress:h})]})};var Tl=Y.default.div.withConfig({displayName:"S_Labels",componentId:"sc-urwp4l-0"})(["display:inline-flex;flex-wrap:wrap;padding-top:",";row-gap:",";"],(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB})),yl=Y.default.div.withConfig({displayName:"S_ChipWrapper",componentId:"sc-urwp4l-1"})(["display:flex;padding-right:",";&:last-child{padding-right:0;}"],(function(e){return e.theme.spacing.spacingB})),Cl=function(e){var t=e.labelList;return Object(Z.jsx)(Tl,{children:t.map((function(e){return Object(Z.jsx)(yl,{children:Object(Z.jsx)(F.D_Chip,{displayType:"label",text:Object(Z.jsx)(F.D_TextLabel,{text:e.name,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary",ellipsisMode:"use",lineLimit:1})})},e.id)}))})};var Sl=function(e){var t=e.isTabbarTemplate,n=Object(M.a)().t,o=Object(c.k)(),s=Object(c.m)(),a=s.channelCode,r=s.classId,l=Object(i.d)(G.k),d=Object(i.d)(G.G),u=Object(b.useMemo)((function(){return new Set(d.map((function(e){return e.postId})))}),[d]),p=Object(b.useMemo)((function(){var e,t,n;return null===l||void 0===l||null===(e=l.curriculumItems)||void 0===e||null===(t=e.flatMap((function(e){return e.curriculumItems})).find((function(e){return(null===e||void 0===e?void 0:e.post)&&u.has(e.post.id)})))||void 0===t||null===(n=t.post)||void 0===n?void 0:n.id}),[null===l||void 0===l?void 0:l.curriculumItems,u]);return Object(Z.jsx)(F.D_MainButton,{text:n("str_papp_vod_class_preview"),size:"large",fontWeight:"bold",styleTheme:"secondary",colorTheme:t?"secondary2":"none",onClick:function(){p&&o.push(Object(h.l)(P,{channelCode:a,classId:r,sessionId:p}))}})},Il=n(2760);var wl=function(e){var t=e.useResponsiveMode,n=void 0!==t&&t,s=Object(M.a)().t,a=Object(i.c)(),l=Object(c.k)(),d=Object(c.m)(),u=d.channelCode,p=d.classId,m=Object(_.e)().userEntrywayForUse,j=Object(_.a)(),g=j.openDialog,f
1=j.closeDialog,x=Object(i.d)(G.d),O=Object(i.d)(G.o),v=Object(i.d)(r.d),T=Object(b.useState)(!1),y=Object(J.a)(T,2),C=y[0],I=y[1],w=h.b.isGuest()&&v,E=l.location.pathname+l.location.search;return Object(Z.jsx)(Z.Fragment,{children:null!==x&&void 0!==x&&x.hasContentGroupLock?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_MainButton,{text:s("str_3338"),size:"large",fontWeight:"bold",iconMode:"left",iconName:"ic_lock",responsiveMode:n?"use":"none",onClick:m((function(){return I(!0)}))}),C&&Object(Z.jsx)(Il.a,{pAppCode:o.a.C00007.CODE,targetModel:"SERIES",targetId:p,redirectUrl:E,onClose:function(){a(Object(X.r)({seriesId:p,extraInfos:"LOWEST_PRICE,AVG_REVIEW_POINT,REVIEW_COUNTS,IS_PROMOTING"})),a(Object(St.b)()),I(!1)},onSuccessNavigate:function(){l.push(E)}})]}):!O&&!w&&Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsx)(F.D_MainButton,{text:s("str_key_user_c00007_class_enroll_btn"),size:"large",fontWeight:"bold",responsiveMode:n?"use":"none",onClick:m((function(){a(Object(X.n)({targetModel:"SERIES",targetId:Number(p),successCallback:function(e){if(!e)return l.push(Object(h.l)(S,{channelCode:u,classId:p})),void f();Object(X.r)({seriesId:p}),g({contentText:s("str_key_user_scene_c00007classinformation_dialog_enroll_content"),btnMode:"tbtn_amount2",tBtn1Text:s("str_key_user_scene_c00007classinformation_dialog_enroll_btn"),tBtn2Text:s("str_cancel"),onClickTBtn1:function(){l.push(Object(h.l)(P,{channelCode:u,classId:p,sessionId:e},{prevPath:"information"})),f()},onClickTBtn2:f})}}))}))})})})};var El=Y.default.div.withConfig({displayName:"S_PriceWrapper",componentId:"sc-1vlb7gf-0"})(["align-items:flex-start;display:flex;flex-direction:column;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingD})),Al=Y.default.div.withConfig({displayName:"S_ResultPrice",componentId:"sc-1vlb7gf-1"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingA})),Dl=Y.default.div.withConfig({displayName:"S_DiscountedPercentage",componentId:"sc-1vlb7gf-2"})(["align-items:center;display:flex;gap:1px;"]),Pl=function(e){var t=e.hasEnrolled,n=e.isRegistered,i=e.isPriceInfoShow,c=e.originalPriceLabel,o=e.finalPriceLabel,s=e.discountRate,a=e.installmentsLabel,r=e.hasDiscountBenefit,l=Object(M.a)().t;return n?Object(Z.jsx)(El,{children:Object(Z.jsx)(F.D_TextLabel,{text:l(t?"str_8183":"str_8182"),styleTheme:"headingBold",colorTheme:"sysTextPrimary"})}):i?Object(Z.jsxs)(El,{children:[r&&c&&Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"form1Regular",colorTheme:"sysTextSecondary",textDecorationType:"line_through"}),Object(Z.jsxs)(Al,{children:[r&&c&&s>0&&Object(Z.jsxs)(Dl,{children:[Object(Z.jsx)(F.D_TextLabel,{text:s,styleTheme:"headingBold",colorTheme:"sysTextError"}),Object(Z.jsx)(F.D_TextLabel,{text:l("str_percentages"),styleTheme:"body2Bold",colorTheme:"sysTextError"})]}),Object(Z.jsx)(F.D_TextLabel,{text:o,styleTheme:"headingBold",colorTheme:"sysTextPrimary"})]}),a&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:a,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary",tooltipText:l("str_class_classintro_tooltip"),tooltipPosition:"right_top"})]})]}):Object(Z.jsx)(Z.Fragment,{})},Nl=n(110),kl=n(591),Rl=Object(b.forwardRef)((function(e,t){var n=e.title,i=e.createdAt,c=e.author,o=e.description,s=e.isOpen,a=Object(b.useState)(s),r=Object(J.a)(a,2),l=r[0],d=r[1];return Object(Z.jsx)(Ll,{ref:t,children:Object(Z.jsxs)(F.D_ContentSheet,{width:"auto",height:"auto",shapeType:"round",radius:16,paddingTop:"spacing_d",paddingBottom:"spacing_d",onClick:function(){return d((function(e){return!e}))},overrideCSS:{cursor:"pointer"},children:[Object(Z.jsxs)(Bl,{children:[Object(Z.jsx)(F.D_TextLabel,{text:n,customFontSize:"20px",customFontWeight:"bold",ellipsisMode:"use",lineLimit:3,wordBreak:"break_all"}),Object(Z.jsx)(Ml,{isOpen:l,children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_up"})})]}),l&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsxs)(zl,{children:[Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:i,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(Ul,{dangerouslySetInnerHTML:{__html:o}})]})]})})})),Ll=Y.default.div.withConfig({displayName:"S_Accordian",componentId:"sc-1isk67p-0"})(["padding-bottom:",";"],(function(e){return e.theme.spacing.spacingD})),Bl=Y.default.div.withConfig({displayName:"S_AccordianHeader",componentId:"sc-1isk67p-1"})(["align-items:flex-start;display:flex;justify-content:space-between;"]),Ml=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-1isk67p-2"})(["align-items:center;display:flex;height:30px;justify-content:center;margin-left:",";transform:",";transition:all 0.3s;width:24px;"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.isOpen?0:"rotate(180deg)"})),zl=Y.default.div.withConfig({displayName:"S_ProfileBox",componentId:"sc-1isk67p-3"})(["align-items:center;display:flex;"]),Ul=Y.default.div.withConfig({displayName:"S_HtmlContent",componentId:"sc-1isk67p-4"})(["",""],kl.a),Fl=Rl;Rl.displayName="Accordian";var Vl=function(){var e=Object(M.a)("translation").t,t=Object(i.d)(r.c),n=null===t||void 0===t?void 0:t.config;return Object(Z.jsx)(F.D_TextLabel,{text:(null===n||void 0===n?void 0:n[f.g.UX_VODS_CLASS_OVERRIDE_TAB_04_NAME_WITH_I18N_SUPPORT])||e("str_key_user_scene_c00007classnotices_section_sidetab_title"),styleTheme:"displayBold"})},Wl={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var Hl=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-1hjlng-0"}
1)(["height:100%;overflow-y:auto;padding-left:",";padding-right:",";",""],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE}),(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["display:flex;justify-content:center;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}))})),Gl=Y.default.div.withConfig({displayName:"S_SideTabBar",componentId:"sc-1hjlng-1"})(["height:100%;min-width:290px;position:sticky;top:0;"]),Xl=Y.default.div.withConfig({displayName:"S_ContentsWrapper",componentId:"sc-1hjlng-2"})(["",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["align-items:center;display:flex;flex-direction:column;height:100%;max-width:1400px;min-width:980px;padding-left:",";width:100%;"],(function(e){return e.theme.spacing.spacingG}))})),ql=Y.default.div.withConfig({displayName:"S_Contents",componentId:"sc-1hjlng-3"})(["min-width:614px;",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["width:980px;"])})),Kl=function(){var e;Object(H.b)("C00007ClassNotices","c00007_class_notices");var t=Object(M.a)("translation").t,n=Object(c.m)().classId;Object(Nl.c)("c00007_class_notices","ChannelActionProduct",n);var o=Object(i.c)(),s=Object(i.d)(a.c),l=Object(i.d)(G.q),d=Object(i.d)(G.m),u=Object(i.d)(G.d),p=Object(i.d)(G.c),m=p.boardPosts,j=p.pagination,g=Object(i.d)(r.f),_=null!==(e=null===g||void 0===g?void 0:g[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==e?e:"BASIC",x=(null===s||void 0===s?void 0:s.id)||0,O=h.b.getChannelHeader(x,W.Y.C00007.CODE)||"",v={targetModel:"SERIES",targetId:Number(n),consumerId:O,code:"ABM_PRE_00001"},T=Fe({isLoading:l,list:m,totalCount:j.total,initialPage:j.page,fetchNextPage:function(e){o(Object(X.o)(Object(Ct.a)(Object(Ct.a)({},v),{},{page:e,limit:15,isPublished:!0,order:"desc",sortBy:"insertedAt"})))}}).lastElementRef;Object(b.useEffect)((function(){return o(Object(X.r)({seriesId:n})),function(){o(Object(X.ab)())}}),[n]);var y=u?{title:t("str_seo_c00007_class_notices_title",{seriesTitle:u.title,interpolation:{escapeValue:!1}}),description:u.description&&t("str_seo_c00007_class_notices_desc",{seriesDescription:Object(h.j)(u.description,150)})}:null;return Object(gc.c)({manifest:Wl,isActivated:!0,data:y,options:{useChannelTitlePrefix:!0}}),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"VISUAL_BASIC"===_?"WTH_1":"WTO_1",isLoadingContainer1:l,pageMenuContent:Object(Z.jsx)(ue,{}),subMenuContent:Object(Z.jsx)(de,{classId:n}),content1:Object(Z.jsxs)(Hl,{classDetailTemplate:_,children:["VISUAL_BASIC"===_&&Object(Z.jsx)(Gl,{children:Object(Z.jsx)(de,{classId:n})}),Object(Z.jsx)(Xl,{classDetailTemplate:_,children:Object(Z.jsxs)(ql,{classDetailTemplate:_,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(Vl,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),0===m.length?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_i"}),Object(Z.jsx)(F.D_TextLabel,{text:t("str_key_user_scene_c00007classnotices_emptytext"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})]}):Object(Z.jsx)(Z.Fragment,{children:m.map((function(e,t){return Object(Z.jsx)(Fl,{ref:t===m.length-1?T:null,isOpen:0===t,title:e.title,description:e.content,author:e.author,createdAt:me.a.tz(e.insertedAt).format("YYYY-MM-DD")},e.id)}))})]})})]})}),d&&Object(Z.jsx)(ie,{error:d})]})},Yl={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var Zl=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-rpl02g-0"}
1)(["height:100%;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingF})),Ql=function(){Object(H.b)("C00007ClassNotices","c00007_class_notices");var e=Object(M.a)("translation").t,t=Object(c.m)().classId,n=Object(i.c)(),o=Object(i.d)(a.c),s=Object(i.d)(G.d),r=Object(i.d)(G.c),l=r.boardPosts,d=r.pagination,u=Object(b.useState)(1),p=Object(J.a)(u,2),m=p[0],j=p[1],_=(null===o||void 0===o?void 0:o.id)||0,f=h.b.getChannelHeader(_,W.Y.C00007.CODE)||"",x=Object(b.useMemo)((function(){return{targetModel:"SERIES",targetId:Number(t),consumerId:f,code:"ABM_PRE_00001"}}),[t,f]);Object(b.useEffect)((function(){return n(Object(X.o)(Object(Ct.a)(Object(Ct.a)({},x),{},{page:1,limit:W.ob,isPublished:!0,order:"desc",sortBy:"insertedAt"}))),function(){n(Object(X.ab)())}}),[x]);var O=s?{title:e("str_seo_c00007_class_notices_title",{seriesTitle:s.title,interpolation:{escapeValue:!1}}),description:s.description&&e("str_seo_c00007_class_notices_desc",{seriesDescription:Object(h.j)(s.description,150)})}:null;return Object(gc.c)({manifest:Yl,isActivated:!0,data:O,options:{useChannelTitlePrefix:!0}}),Object(Z.jsxs)(Zl,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_h"}),Object(Z.jsx)(Vl,{}),0===l.length?Object(Z.jsx)(g.I,{text:e("str_key_user_scene_c00007classnotices_emptytext")}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),l.map((function(e,t){return Object(Z.jsx)(Fl,{isOpen:0===t,title:e.title,description:e.content,author:e.author,createdAt:me.a.tz(e.insertedAt).format("YYYY-MM-DD")},e.id)}))]}),l.length<d.total&&Object(Z.jsx)(F.D_TextButton,{text:e("str_3451"),size:"small",responsiveMode:"use",fontWeight:"bold",type:"button",state:"normal",colorTheme:"grey_01",onClick:function(){n(Object(X.o)(Object(Ct.a)(Object(Ct.a)({},x),{},{page:m+1,limit:W.ob,isPublished:!0,order:"desc",sortBy:"insertedAt"}))),j((function(e){return e+1}))}})]})};var $l=function(){var e=Object(M.a)("translation").t,t=Object(i.d)(r.c),n=null===t||void 0===t?void 0:t.config;return Object(Z.jsx)(F.D_TextLabel,{text:(null===n||void 0===n?void 0:n[f.g.UX_VODS_CLASS_OVERRIDE_TAB_05_NAME_WITH_I18N_SUPPORT])||e("str_key_user_scene_c00007classnoticesforstudent_section_sidetab_title"),styleTheme:"displayBold"})},Jl={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var ed=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-5ymdr1-0"})(["height:100%;justify-content:center;overflow-y:auto;padding-left:",";padding-right:",";",""],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE}),(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["display:flex;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}))})),td=Y.default.div.withConfig({displayName:"S_EnrollmentBox",componentId:"sc-5ymdr1-1"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]),nd=Y.default.div.withConfig({displayName:"S_SideTabBar",componentId:"sc-5ymdr1-2"})(["height:100%;min-width:290px;position:sticky;top:0;"]),id=Y.default.div.withConfig({displayName:"S_ContentsWrapper",componentId:"sc-5ymdr1-3"})(["",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["align-items:center;display:flex;flex-direction:column;height:100%;max-width:1400px;min-width:980px;padding-left:",";width:100%;"],(function(e){return e.theme.spacing.spacingG}))})),cd=Y.default.div.withConfig({displayName:"S_Contents",componentId:"sc-5ymdr1-4"})(["min-width:614px;",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["width:980px;"])})),od=function(){var e;Object(H.b)("C00007ClassNoticesForStudent","c00007_class_notices_for_student");var t=Object(M.a)("translation").t,n=Object(c.k)(),o=Object(c.m)(),s=o.channelCode,l=o.classId,d=Object(i.c)(),u=Object(i.d)(a.c),p=Object(i.d)(G.q),m=Object(i.d)(G.m),j=Object(i.d)(G.d),g=Object(i.d)(G.c),x=g.boardPosts,O=g.pagination,v=Object(i.d)(r.f),T=null!==(e=null===v||void 0===v?void 0:v[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==e?e:"BASIC",y=Object(_.e)().userEntrywayForUse,C=(null===m||void 0===m?void 0:m.type)==="".concat(X.o.type,"_FAILED")&&403===m.status,S=(null===u||void 0===u?void 0:u.id)||0,w=h.b.getChannelHeader(S,W.Y.C00007.CODE)||"",E={targetModel:"SERIES",targetId:Number(l),consumerId:w,code:"ABM_PRE_00002"},A=Fe({isLoading:p,list:x,totalCount:O.total,initialPage:O.page,fetchNextPage:function(e){d(Object(X.o)(Object(Ct.a)(Object(Ct.a)({},E),{},{page:e,limit:15,isPublished:!0,order:"desc",sortBy:"insertedAt"})))}}).lastElementRef;Object(b.useEffect)((function(){return d(Object(X.r)({seriesId:l})),function(){d(Object(X.ab)()),d(Object(X.db)())}}),[l]),Object(b.useEffect)((function(){null!==j&&void 0!==j&&j.hasContentGroupLock&&n.replace(Object(h.l)(I,{channelCode:s,classId:l}))}),[null===j||void 0===j?void 0:j.hasContentGroupLock,s,l]);var D=j?{title:t("str_seo_c00007_class_notices_for_student_title",{postsTitle:j.title,interpolation:{escapeValue:!1}}),description:j.description&&t("str_seo_c00007_class_notices_for_student_desc",{seriesDescription:Object(h.j)(j.description,150)})}:null;return Object(gc.c)({manifest:Jl,isActivated:!0,data:D,options:{useChannelTitlePrefix:!0}}),!C||null!==j&&void 0!==j&&j.hasContentGroupLock?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"VISUAL_BASIC"===T?"WTH_1":"WTO_1",
1isLoadingContainer1:p,pageMenuContent:Object(Z.jsx)(ue,{}),subMenuContent:Object(Z.jsx)(de,{classId:l}),content1:Object(Z.jsxs)(ed,{classDetailTemplate:T,children:["VISUAL_BASIC"===T&&Object(Z.jsx)(nd,{children:Object(Z.jsx)(de,{classId:l})}),Object(Z.jsx)(id,{classDetailTemplate:T,children:Object(Z.jsxs)(cd,{classDetailTemplate:T,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)($l,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),0===x.length?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_i"}),Object(Z.jsx)(F.D_TextLabel,{text:t("str_key_user_scene_c00007classnoticesforstudent_emptytext"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})]}):Object(Z.jsx)(Z.Fragment,{children:x.map((function(e,t){return Object(Z.jsx)(Fl,{ref:t===x.length-1?A:null,isOpen:0===t,title:e.title,description:e.content,author:e.author,createdAt:me.a.tz(e.insertedAt).format("YYYY-MM-DD")},e.id)}))})]})})]})}),m&&Object(Z.jsx)(ie,{error:m})]}):Object(Z.jsx)(F.WTContainersBox,{layoutType:"VISUAL_BASIC"===T?"WTH_1":"WTO_1",isLoadingContainer1:p,pageMenuContent:Object(Z.jsx)(ue,{}),subMenuContent:Object(Z.jsx)(de,{classId:l}),content1:Object(Z.jsxs)(ed,{classDetailTemplate:T,children:["VISUAL_BASIC"===T&&Object(Z.jsx)(nd,{children:Object(Z.jsx)(de,{classId:l})}),Object(Z.jsx)(id,{classDetailTemplate:T,children:Object(Z.jsxs)(cd,{classDetailTemplate:T,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)($l,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_j"}),Object(Z.jsxs)(td,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t("str_key_user_c00007_class_enroll_title"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_MainButton,{text:t("str_key_user_c00007_class_enroll_btn"),onClick:y((function(){d(Object(X.n)({targetModel:"SERIES",targetId:Number(l),successCallback:function(){d(Object(X.db)()),d(Object(X.o)(Object(Ct.a)(Object(Ct.a)({},E),{},{page:1,limit:15,isPublished:!0,order:"desc",sortBy:"insertedAt"})))}}))}))})]})]})})]})})},sd={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var ad=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-1rkv2u0-0"})(["height:100%;padding-bottom:",";width:100%;"],(function(e){return e.theme.spacing.spacingF})),rd=Y.default.div.withConfig({displayName:"S_EnrollmentBox",componentId:"sc-1rkv2u0-1"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;"]),ld=function(){Object(H.b)("C00007ClassNoticesForStudent","c00007_class_notices_for_student");var e=Object(M.a)("translation").t,t=Object(c.m)().classId,n=Object(i.c)(),o=Object(i.d)(a.c),s=Object(i.d)(G.m),r=Object(i.d)(G.d),l=Object(i.d)(G.D),d=l.boardPosts,u=l.pagination,p=Object(b.useState)(1),m=Object(J.a)(p,2),j=m[0],f=m[1],x=Object(_.e)().userEntrywayForUse,O=(null===s||void 0===s?void 0:s.type)==="".concat(X.Q,"_FAILED")&&403===s.status,v=(null===o||void 0===o?void 0:o.id)||0,T=h.b.getChannelHeader(v,W.Y.C00007.CODE)||"",y=Object(b.useMemo)((function(){return{targetModel:"SERIES",targetId:Number(t),consumerId:T,code:"ABM_PRE_00002"}}),[t,T]);Object(b.useEffect)((function(){return n(Object(X.Q)(Object(Ct.a)(Object(Ct.a)({},y),{},{page:1,limit:W.ob,isPublished:!0,order:"desc",sortBy:"insertedAt"}))),function(){n(Object(X.ab)()),n(Object(X.db)())}}),[y]);var C=r?{title:e("str_seo_c00007_class_notices_for_student_title",{postsTitle:r.title,interpolation:{escapeValue:!1}}),description:r.description&&e("str_seo_c00007_class_notices_for_student_desc",{seriesDescription:Object(h.j)(r.description,150)})}:null;return Object(gc.c)({manifest:sd,isActivated:!0,data:C,options:{useChannelTitlePrefix:!0}}),Object(Z.jsx)(Z.Fragment,{children:O?Object(Z.jsxs)(ad,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)($l,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_j"}),Object(Z.jsxs)(rd,{children:[Object(Z.jsx)(F.D_TextLabel,{text:e("str_key_user_c00007_class_enroll_title"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_MainButton,{text:e("str_key_user_c00007_class_enroll_btn"),onClick:x((function(){n(Object(X.n)({targetModel:"SERIES",targetId:Number(t),successCallback:function(){n(Object(X.db)()),n(Object(X.Q)(Object(Ct.a)(Object(Ct.a)({},y),{},{page:1,limit:15,isPublished:!0,order:"desc",sortBy:"insertedAt"})))}}))}))}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_j"})]}):Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(ad,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_h"}),Object(Z.jsx)($l,{}),0===d.length?Object(Z.jsx)(g.I,{text:e("str_key_user_scene_c00007classnoticesforstudent_emptytext")}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),d.map((function(e,t){return Object(Z.jsx)(Fl,{isOpen:0===t,title:e.title,de
1scription:e.content,author:e.author,createdAt:me.a.tz(e.insertedAt).format("YYYY-MM-DD")},e.id)}))]}),d.length<u.total&&Object(Z.jsx)(F.D_TextButton,{text:e("str_3451"),size:"small",responsiveMode:"use",fontWeight:"bold",type:"button",state:"normal",colorTheme:"grey_01",onClick:function(){n(Object(X.Q)(Object(Ct.a)(Object(Ct.a)({},y),{},{page:j+1,limit:W.ob,isPublished:!0,order:"desc",sortBy:"insertedAt"}))),f((function(e){return e+1}))}})]})})})};var dd=function(){var e=Object(M.a)("translation").t,t=Object(i.d)(r.c),n=null===t||void 0===t?void 0:t.config;return Object(Z.jsx)(F.D_TextLabel,{text:(null===n||void 0===n?void 0:n[f.g.UX_VODS_CLASS_OVERRIDE_TAB_06_NAME_WITH_I18N_SUPPORT])||e("str_key_user_scene_c00007classreviews_section_sidetab_title"),styleTheme:"displayBold"})};var ud=function(e){var t=e.error,n=e.onConfirmClick,i=t.type,c=t.status,o=function(){n&&n()};switch(i){case"".concat(Uo.j.type,"_FAILED"):return 404===c?Object(Z.jsx)(Z.Fragment,{}):Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTP_1",content1:Object(Z.jsx)(g.n,{statusCode:c,errorCode:null===t||void 0===t?void 0:t.code,onClickConfirmButton:o})});default:return Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTP_1",content1:Object(Z.jsx)(g.n,{statusCode:c,errorCode:null===t||void 0===t?void 0:t.code,onClickConfirmButton:o})})}};var pd={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var md=Y.default.div.withConfig({displayName:"S_MainContentWrapper",componentId:"sc-gglknu-0"})(["",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["width:980px;"])})),bd=Y.default.div.withConfig({displayName:"S_ReviewListWrapper",componentId:"sc-gglknu-1"})(["border-bottom:1px solid;border-color:",";min-width:614px;padding-bottom:",";&:last-child{border:none;}"],(function(e){return e.theme.ui_cpnt_card_border}),(function(e){return e.theme.spacing.spacingG})),jd=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-gglknu-2"})(["height:100%;overflow-y:auto;padding-left:",";padding-right:",";",""],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE}),(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["display:flex;justify-content:center;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}))})),gd=Y.default.div.withConfig({displayName:"S_ScoreWrapper",componentId:"sc-gglknu-3"})(["align-items:flex-end;display:flex;"]),_d=Y.default.div.withConfig({displayName:"S_FlexBetween",componentId:"sc-gglknu-4"})(["align-items:center;display:flex;justify-content:space-between;min-width:614px;"]),hd=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-gglknu-5"})(["margin-top:",";"],(function(e){return e.theme.spacing.spacingI})),fd=Y.default.div.withConfig({displayName:"S_SideTabBar",componentId:"sc-gglknu-6"}
1)(["height:100%;min-width:290px;position:sticky;top:0;"]),xd=Y.default.div.withConfig({displayName:"S_ClassDetailWrapper",componentId:"sc-gglknu-7"})(["min-width:614px;"]),Od=Y.default.div.withConfig({displayName:"S_ContentsWrapper",componentId:"sc-gglknu-8"})(["",""],(function(e){return"VISUAL_BASIC"===e.classDetailTemplate&&Object(Y.css)(["align-items:center;display:flex;flex-direction:column;height:100%;max-width:1400px;min-width:980px;padding-left:",";width:100%;"],(function(e){return e.theme.spacing.spacingG}))})),vd=function(){var e,t,n,o;Object(H.b)("C00007ClassReviews","c00007_class_reviews");var s=Object(M.a)("translation").t,a=Object(i.c)(),l=Object(c.k)(),d=Object(c.m)(),u=d.channelCode,p=d.classId,m=Object(i.d)(r.c),j=Object(i.d)(G.d),g=Object(i.d)(zo.d),x=Object(i.d)(zo.e),O=Object(i.d)(zo.g),v=Object(i.d)(zo.h),T=Object(i.d)(zo.f),y=Object(i.d)(St.g),C=Object(i.d)(G.l),w=Object(_.a)(),E=w.openDialog,A=w.closeDialog,D=Object(_.e)().userEntrywayForUse,P=Object(b.useState)(!1),N=Object(J.a)(P,2),k=N[0],L=N[1],B=Object(b.useState)({isOpen:!1,id:0}),z=Object(J.a)(B,2),U=z[0],V=z[1],W=Object(b.useRef)(null),q=null===m||void 0===m?void 0:m.config,K=null===(e=null===q||void 0===q?void 0:q[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===e||e,Y=Object(b.useMemo)((function(){return(null===q||void 0===q?void 0:q[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_REVIEWS_SORT_OPTION])||"SORT_BY_RATING"}),[q]),Q=null!==(t=null===q||void 0===q?void 0:q[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_POST_REVIEW_REQUIRMENT_OPTION])&&void 0!==t?t:"10PERCENT",$=f.h["OPTION_".concat(Q)],ee=null!==(n=null===q||void 0===q?void 0:q[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==n?n:"BASIC";Object(b.useEffect)((function(){return a(Object(X.r)({seriesId:p})),function(){a(Object(X.ab)())}}),[p]);var te=function(){switch(Q){case"1PERCENT":return s("str_create_review_required_progress_1");case"10PERCENT":return s("str_create_review_required_progress_10");case"100PERCENT":return s("str_create_review_required_progress_100")}},ne=j?{title:s("str_seo_c00007_class_reviews_title",{seriesTitle:j.title,interpolation:{escapeValue:!1}}),description:j.description&&s("str_seo_c00007_class_reviews_desc",{seriesDescription:Object(h.j)(j.description,150)})}:null;Object(gc.c)({manifest:pd,isActivated:!0,data:ne,options:{useChannelTitlePrefix:!0}});var ie=function(){W.current&&(0!==W.current.scrollTop&&W.current.scrollTo(0,0))},ce=Object(b.useCallback)((function(e){var t=e.page,n=e.limit;a(Object(Uo.h)({queryParams:{targetId:Number(p),targetModel:"SERIES",sortBy:"SORT_BY_RATING"===Y?"score":"insertedAt",isPublished:!0,page:t,limit:n}}))}),[p,Y]),oe=Object(b.useCallback)((function(e){ce({page:e,limit:O.limit})}),[O.limit,ce]),se=function(e){var t=e.isLoading,n=void 0!==t&&t,i=e.total,c=e.items,o=e.page,s=void 0===o?1:o,a=e.fetchNextPage,r=Object(b.useState)(""),l=Object(J.a)(r,2),d=l[0],u=l[1],p=Object(b.useRef)();return{lastItemRef:Object(b.useCallback)((function(e){n||0===c.length||(p.current&&p.current.disconnect(),c.length>=i||(p.current=new IntersectionObserver((function(e){e[0].isIntersecting&&a(s+1,d)})),e&&p.current.observe(e)))}),[n,c.length,d]),changeSearchQuery:function(e){u(e),a(1,e)}}}({isLoading:(null===v||void 0===v?void 0:v.type)===Uo.h.type,items:x||[],total:O.total,page:O.page,fetchNextPage:oe}).lastItemRef;Object(b.useEffect)((function(){return ce({page:1,limit:O.limit}),a(Object(Uo.j)({targetClassId:Number(p)})),function(){a(Object(Uo.k)())}}),[O.limit,p]),Object(b.useEffect)((function(){return function(){a(Object(St.i)())}}),[p]);var ae=function(e){V({isOpen:!0,id:e})},re=function(e){E({contentText:s("str_1355"),btnMode:"tbtn_amount2",tBtn1Text:s("str_ok"),tBtn2Text:s("str_cancel"),onClickTBtn1:function(){a(Object(Uo.c)({id:e,successCallback:function(){return ce({page:O.page,limit:O.limit})}})),A()},onClickTBtn2:A})},le=function(e){l.push(Object(h.l)(R,{channelCode:u,id:e},{entryPage:Ko,classId:p}))},pe=function(e,t){var n;if(t)E({contentText:s("str_4000"),tBtn1Text:s("str_confirm"),onClickTBtn1:A});else{var i=null!==(n=null===C||void 0===C?void 0:C.get(e))&&void 0!==n&&n,c=null===y||void 0===y?void 0:y.some((function(t){return t.id===e}));l.push(Object(h.l)(i&&c?S:I,{channelCode:u,classId:e}))}},be=Object(b.useCallback)((function(e){e&&(ie(),ce({page:1,limit:O.limit})),L(!1)}),[O.limit]),je=Object(b.useCallback)((function(e){e&&(ie(),ce({page:1,limit:O.limit})),V({isOpen:!1,id:0})}),[O.limit]);return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"VISUAL_BASIC"===ee?"WTH_1":"WTO_1",container1Ref:W,isLoadingContainer1:W.current?(null===v||void 0===v?void 0:v.type)===Uo.h.type&&0===(null===(o=W.current)||void 0===o?void 0:o.scrollTop):(null===v||void 0===v?void 0:v.type)===Uo.h.type,pageMenuContent:Object(Z.jsx)(ue,{}),subMenuContent:Object(Z.jsx)(de,{classId:p}),content1:Object(Z.jsxs)(jd,{classDetailTemplate:ee,children:["VISUAL_BASIC"===ee&&Object(Z.jsx)(fd,{children:Object(Z.jsx)(de,{classId:p})}),Object(Z.jsxs)(Od,{classDetailTemplate:ee,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsxs)(md,{classDetailTemplate:ee,children:[Object(Z.jsxs)(_d,{children:[Object(Z.jsx)(dd,{}),Object(Z.jsx)(F.D_MainButton,{size:"small",text:s("str_class_create_review_btn"),iconMode:"left",iconFillType:"fill",iconName:"ic_edit",onClick:D((function(){a(Object(St.a)({onSuccess:function(e){e.filter((function(e){return e.progress>=$})).find((function(e){return e.id===Number(p)}))?L(!0):E({contentText:te(),onClickTBtn1:A,tBtn1Text:s("str_confirm")})}}))}))})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsxs)(xd,{children:[Object(Z.jsx)(F.D_TextLabel,{text:null===j||void 0===j?void 0:j.title,styleTheme:"headingBold",wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),K&&g&&g.avgScore&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(gd,{children:[Object(Z.jsx)(Je,{iconSize:40,value:null===g||void 0===g?void 0:g.avgScore,readOnly:!0}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:null===g||void 0===g?void 0:g.avgScore.toPrecision(2),styleTheme:"headingBold"})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"})]})]}),0===(null===x||void 0===x?void 0:x.length)?Object(Z.jsx)(hd,{children:Object(Z.jsx)(F.D_TextLabel,{text:s("str_c00007_no_review"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsx)(bd,{children:null===x||void 0===x?void 0:x.map((function(e,t){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(yt,{ref:t===x.length-1?se:null,id:e.id,profileDistinctId:e.profileDistinctId,profileImg:e.authorThumbnailSrc,nickname:e.author,updatedAt:me.a.tz(e.updatedAt).format("YYYY-MM-DD"),isEdited:e.insertedAt!==e.updatedAt,showRating:K,score:e.score,content:e.content,contentImgSrcs:e.imgFileSrcs,targetClasses:e.targets,onTargetClassLabelClick:pe,onEditClick:ae,onDeleteClick:re,onContentAreaClick:le},e.id),x.length-1!==t&&Object(Z.jsx)(F.Spacing,{size:"spacing_f"})]},e.id)}))})]})]})]})}),k&&Object(Z.jsx)(Ds,{onClose:be}),U.isOpen&&Object(Z.jsx)(ua,{reviewId:U.id,onClose:je}),T&&Object(Z.jsx)(ud,{error:T,onConfirmClick:function(){a(Object(Uo.l)())}})]})},Td={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}"},keyMappingDefinition:{title:"title",description:"description"}};var yd=Y.default.div.withConfig({displayName:"S_ReviewListWrapper",componentId:"sc-nz68w6-0"})(["border-bottom:1px solid;border-color:",";&:last-child{border:none;}"],(function(e){return e.theme.ui_cpnt_card_border})),Cd=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-nz68w6-1"}
1)(["height:100%;overflow-y:auto;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingF})),Sd=Y.default.div.withConfig({displayName:"S_ScoreWrapper",componentId:"sc-nz68w6-2"})(["align-items:flex-end;display:flex;"]),Id=Y.default.div.withConfig({displayName:"S_FlexBetween",componentId:"sc-nz68w6-3"})(["align-items:center;display:flex;justify-content:space-between;"]),wd=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-nz68w6-4"})(["margin-bottom:",";margin-top:",";"],(function(e){return e.theme.spacing.spacingI}),(function(e){return e.theme.spacing.spacingI})),Ed=function(){var e,t;Object(H.b)("C00007ClassReviews","c00007_class_reviews");var n=Object(M.a)("translation").t,o=Object(i.c)(),s=Object(c.k)(),a=Object(c.m)(),l=a.channelCode,d=a.classId,u=Object(i.d)(r.c),p=Object(i.d)(G.d),m=Object(i.d)(zo.d),j=Object(i.d)(zo.e),g=Object(i.d)(zo.g),x=Object(i.d)(zo.f),O=Object(i.d)(St.g),v=Object(i.d)(G.l),T=Object(_.a)(),y=T.openDialog,C=T.closeDialog,w=Object(_.e)().userEntrywayForUse,E=Object(b.useState)(1),A=Object(J.a)(E,2),D=A[0],P=A[1],N=Object(b.useState)(!1),k=Object(J.a)(N,2),L=k[0],B=k[1],z=Object(b.useState)({isOpen:!1,id:0}),U=Object(J.a)(z,2),V=U[0],q=U[1],K=Object(b.useRef)(null),Y=null===u||void 0===u?void 0:u.config,Q=null===(e=null===Y||void 0===Y?void 0:Y[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_USE_REVIEW_RATING])||void 0===e||e,$=(null===Y||void 0===Y?void 0:Y[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_REVIEWS_SORT_OPTION])||"SORT_BY_RATING",ee=null!==(t=null===Y||void 0===Y?void 0:Y[null===f.g||void 0===f.g?void 0:f.g.UX_VODS_POST_REVIEW_REQUIRMENT_OPTION])&&void 0!==t?t:"10PERCENT",te=f.h["OPTION_".concat(ee)],ne=p?{title:n("str_seo_c00007_class_reviews_title",{seriesTitle:p.title,interpolation:{escapeValue:!1}}),description:p.description&&n("str_seo_c00007_class_reviews_desc",{seriesDescription:Object(h.j)(p.description,150)})}:null;Object(gc.c)({manifest:Td,isActivated:!0,data:ne,options:{useChannelTitlePrefix:!0}});var ie=function(){K.current&&(0!==K.current.scrollTop&&K.current.scrollTo(0,0))},ce=Object(b.useCallback)((function(e){var t=e.page,n=e.limit;o(Object(Uo.i)({queryParams:{targetId:Number(d),targetModel:"SERIES",sortBy:"SORT_BY_RATING"===$?"score":"insertedAt",isPublished:!0,page:t,limit:n}}))}),[d,$]);Object(b.useEffect)((function(){var e=function(){V.isOpen&&q({isOpen:!1,id:0}),L&&B(!1)};return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[L,V.isOpen]),Object(b.useEffect)((function(){return ce({page:1,limit:W.ob}),o(Object(Uo.j)({targetClassId:Number(d)})),function(){o(Object(Uo.k)())}}),[d,ce]),Object(b.useEffect)((function(){return function(){o(Object(St.i)())}}),[d]),Object(b.useEffect)((function(){if(L||V){var e=document.querySelector("#DesktopHeadlessModal");null===e||void 0===e||e.setAttribute("style","position: relative; z-index: 1;")}}),[L,V]);var oe=function(){switch(ee){case"1PERCENT":return n("str_create_review_required_progress_1");case"10PERCENT":return n("str_create_review_required_progress_10");case"100PERCENT":return n("str_create_review_required_progress_100")}},se=function(e){q({isOpen:!0,id:e})},ae=function(e){y({contentText:n("str_1355"),btnMode:"tbtn_amount2",tBtn1Text:n("str_ok"),tBtn2Text:n("str_cancel"),onClickTBtn1:function(){o(Object(Uo.c)({id:e,successCallback:function(){return ce({page:g.page,limit:W.ob})}})),C()},onClickTBtn2:C})},re=function(e){s.push(Object(h.l)(R,{channelCode:l,id:e},{entryPage:Ko,classId:d}))},le=function(e,t){var i;if(t)y({contentText:n("str_4000"),tBtn1Text:n("str_confirm"),onClickTBtn1:C});else{o(Object(X.r)({seriesId:e.toString(),extraInfos:"LOWEST_PRICE"}));var a=null!==(i=null===v||void 0===v?void 0:v.get(e))&&void 0!==i&&i,r=null===O||void 0===O?void 0:O.some((function(t){return t.id===e}));a&&r?s.push(Object(h.l)(S,{channelCode:l,classId:e})):e===Number(d)?s.push("".concat(Object(c.i)(I,{channelCode:l,classId:e}),"#info")):s.push(Object(c.i)(I,{channelCode:l,classId:e}))}},de=Object(b.useCallback)((function(e){e&&(ie(),ce({page:1,limit:W.ob})),B(!1)}),[W.ob]),ue=Object(b.useCallback)((function(e){e&&(ie(),ce({page:1,limit:W.ob})),q({isOpen:!1,id:0})}),[W.ob]);return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(Cd,{children:Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_h"}),Object(Z.jsxs)(Id,{children:[Object(Z.jsx)(dd,{}),Object(Z.jsx)(F.D_MainButton,{size:"small",text:n("str_class_create_review_btn"),iconMode:"left",iconFillType:"fill",iconName:"ic_edit",onClick:w((function(){o(Object(St.a)({onSuccess:function(e){e.filter((function(e){return e.progress>=te})).find((function(e){return e.id===Number(d)}))?B(!0):y({contentText:oe(),onClickTBtn1:C,tBtn1Text:n("str_confirm")})}}))}))})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_TextLabel,{text:null===p||void 0===p?void 0:p.title,styleTheme:"headingBold",wordBreak:"break_all"}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Q&&m&&m.avgScore&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(Sd,{children:[Object(Z.jsx)(Je,{iconSize:40,value:null===m||void 0===m?void 0:m.avgScore,readOnly:!0}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:null===m||void 0===m?void 0:m.avgScore.toPrecision(2),styleTheme:"headingBold"})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"})]})]}),0===(null===j||void 0===j?void 0:j.length)?Object(Z.jsx)(wd,{children:Object(Z.jsx)(F.D_TextLabel,{text:n("str_c00007_no_review"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})}):Object(Z.jsxs)(yd,{children:[null===j||void 0===j?void 0:j.map((function(e,t){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(yt,{id:e.id,profileDistinctId:e.profileDistinctId,profileImg:e.authorThumbnailSrc,nickname:e.author,updatedAt:me.a.tz(e.updatedAt).format("YYYY-MM-DD"),isEdited:e.insertedAt!==e.updatedAt,showRating:Q,score:e.score,content:e.content,contentImgSrcs:e.imgFileSrcs,targetClasses:e.targets,onTargetClassLabelClick:le,onEditClick:se,onDeleteClick:ae,onContentAreaClick:re},e.id),j.length-1!==t&&Object(Z.jsx)(F.Spacing,{size:"spacing_f"})]},e.id)})),j&&j.length<g.total&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_TextButton,{text:n("str_3451"),size:"small",responsiveMode:"use",fontWeight:"bold",type:"button",state:"normal",colorTheme:"grey_01",onClick:function(){ce({page:D+1,limit:W.ob}),P((function(e){return e+1}))}})]})]})]})}),L&&Object(Z.jsx)(Ds,{onClose:de}),V.isOpen&&Object(Z.jsx)(ua,{reviewId:V.id,onClose:ue}),x&&Object(Z.jsx)(ud,{error:x,onConfirmClick:function(){o(Object(Uo.l)())}})]})};var Ad=function(e){var t=e.description,n=Object(M.a)().t;return Object(Z.jsx)(Z.Fragment,{children:t?Object(Z.jsx)(Pd,{children:Object(Z.jsx)(Dd,{dangerouslySetInnerHTML:{__html:t}})}):Object(Z.jsx)(Pd,{children:Object(Z.jsx)(Nd,{children:Object(Z.jsx)(F.D_TextLabel,{text:n("str_key_user_scene_c00007classintro_emptytext"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"})})})})},Dd=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-1mc2bb4-0"})([""," img{margin-bottom:0;margin-top:0;}"],kl.a),Pd=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-1mc2bb4-1"}
1)(["height:100%;overflow-y:auto;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingF})),Nd=Y.default.div.withConfig({displayName:"S_NoItem",componentId:"sc-1mc2bb4-2"})(["padding-bottom:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingI}),(function(e){return e.theme.spacing.spacingI}));var kd=function(e){var t=e.description,n=e.refs,c=e.tabActiveState,o=e.isPreviewButtonVisible,s=n.info,a=n.curriculums,r=n.reviews,l=n.comments,d=n.notices,u=n["notices-for-student"],p=Object(i.d)(G.d);return Object(Z.jsxs)(Ld,{children:[Object(Z.jsx)(Md,{ref:s,children:Object(Z.jsx)(Ad,{description:t})}),Object(Z.jsx)(zd,{ref:a,children:Object(Z.jsx)(Zr,{isPreviewButtonVisible:o})}),c.reviews&&Object(Z.jsx)(Ud,{ref:r,children:Object(Z.jsx)(Ed,{})}),c.comments&&Object(Z.jsx)(Fd,{ref:l,children:Object(Z.jsx)(Cr,{})}),c.notices&&Object(Z.jsx)(Vd,{ref:d,children:Object(Z.jsx)(Ql,{})}),c["notices-for-student"]&&p&&!p.hasContentGroupLock&&Object(Z.jsx)(Wd,{ref:u,children:Object(Z.jsx)(ld,{})}),Object(Z.jsx)(Bd,{})]})},Rd=Object(Y.css)(["scroll-margin-top:48px;width:100%;"]),Ld=Y.default.div.withConfig({displayName:"S_MainContent",componentId:"sc-1wr1g23-0"})(["width:100%;"]),Bd=Y.default.div.withConfig({displayName:"S_ScrollSaver",componentId:"sc-1wr1g23-1"})(["height:55vh;"]),Md=Y.default.div.withConfig({displayName:"S_InfoSection",componentId:"sc-1wr1g23-2"})(["scroll-margin-top:96px;"]),zd=Y.default.div.withConfig({displayName:"S_CurriculumsSection",componentId:"sc-1wr1g23-3"})(["",""],Rd),Ud=Y.default.div.withConfig({displayName:"S_ReviewsSection",componentId:"sc-1wr1g23-4"})(["",""],Rd),Fd=Y.default.div.withConfig({displayName:"S_CommentsSection",componentId:"sc-1wr1g23-5"})(["",""],Rd),Vd=Y.default.div.withConfig({displayName:"S_NoticesSection",componentId:"sc-1wr1g23-6"})(["",""],Rd),Wd=Y.default.div.withConfig({displayName:"S_NoticesForStudentSection",componentId:"sc-1wr1g23-7"})(["",""],Rd),Hd=n(109),Gd=n(408);var Xd=function(e){var t,n=e.classId,o=e.sectionRefs,s=e.activeSection,l=Object(M.a)("translation").t,d=Object(c.k)(),u=Object(i.d)(a.c),p=Object(i.d)(r.c),m=Object(i.d)(G.d),j=Object(b.useState)(!1),g=Object(J.a)(j,2),_=g[0],x=g[1],O=Object(b.useRef)(null),v=Object(b.useRef)(document.createElement("div")),T=Object(b.useRef)(document.createElement("div")),y=Object(Gd.a)({root:O.current,target:v.current,defaultStatus:!0}),C=Object(Gd.a)({root:O.current,target:T.current,defaultStatus:!1}),S=(null===u||void 0===u?void 0:u.channelCode)||"",w=null===p||void 0===p?void 0:p.config,E=!(null===w||void 0===w||!w[f.g.UX_VODS_USE_CLASS_NOTICE]),A=!(null===w||void 0===w||!w[f.g.UX_VODS_USE_CLASS_STUDENTS_ONLY_NOTICE]),D=null!==(t=null===w||void 0===w?void 0:w[f.g.UX_VODS_USE_REVIEW])&&void 0!==t&&t,P=!(null===w||void 0===w||!w[f.g.UX_VODS_HIDE_CLASSCOMMENT]),N="".concat(Object(h.l)(I,{channelCode:S,classId:n}),"#info"),k="".concat(Object(h.l)(I,{channelCode:S,classId:n}),"#curriculums"),R="".concat(Object(h.l)(I,{channelCode:S,classId:n}),"#reviews"),L="".concat(Object(h.l)(I,{channelCode:S,classId:n}),"#comments"),B="".concat(Object(h.l)(I,{channelCode:S,classId:n}),"#notices"),z="".concat(Object(h.l)(I,{channelCode:S,classId:n}),"#notices-for-student"),U=Object(b.useMemo)((function(){var e=[{title:(null===w||void 0===w?void 0:w[f.g.UX_VODS_CLASS_OVERRIDE_TAB_01_NAME_WITH_I18N_SUPPORT])||l("str_p_app_c00007classdetail_intro"),isActive:"info"===s,onClick:function(){var e;d.push(N),null===o||void 0===o||null===(e=o.info.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}},{title:(null===w||void 0===w?void 0:w[f.g.UX_VODS_CLASS_OVERRIDE_TAB_02_NAME_WITH_I18N_SUPPORT])||l("str_p_app_c00007classdetail_curriclum"),isActive:"curriculums"===s,onClick:function(){var e;d.push(k),null===o||void 0===o||null===(e=o.curriculums.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}}],t=[].concat(e);return D&&t.splice(2,0,{title:(null===w||void 0===w?void 0:w[f.g.UX_VODS_CLASS_OVERRIDE_TAB_06_NAME_WITH_I18N_SUPPORT])||l("str_key_user_scene_c00007classreviews_section_sidetab_title"),isActive:"reviews"===s,onClick:function(){var e;d.push(R),null===o||void 0===o||null===(e=o.reviews.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}}),P||t.push({title:(null===w||void 0===w?void 0:w[f.g.UX_VODS_CLASS_OVERRIDE_TAB_03_NAME_WITH_I18N_SUPPORT])||l("str_p_app_c00007classdetail_story"),isActive:"comments"===s,onClick:function(){var e;d.push(L),null===o||void 0===o||null===(e=o.comments.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}}),E&&t.push({title:(null===w||void 0===w?void 0:w[f.g.UX_VODS_CLASS_OVERRIDE_TAB_04_NAME_WITH_I18N_SUPPORT])||l("str_key_user_scene_c00007classnotices_section_sidetab_title"),isActive:"notices"===s,onClick:function(){var e;d.push(B),null===o||void 0===o||null===(e=o.notices.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}}),!A||!m||null!==m&&void 0!==m&&m.hasContentGroupLock||t.push({title:(null===w||void 0===w?void 0:w[f.g.UX_VODS_CLASS_OVERRIDE_TAB_05_NAME_WITH_I18N_SUPPORT])||l("str_key_user_scene_c00007classnoticesforstudent_section_sidetab_title"),isActive:"notices-for-student"===s,onClick:function(){var e;d.push(z),null===o||void 0===o||null===(e=o["notices-for-student"].current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}}),t}),[s,L,k,N,R,B,z,D,E,A,P,null===m||void 0===m?void 0:m.hasContentGroupLock,w]);return Object(b.useLayoutEffect)((function(){var e=document.querySelector('[class^="S_TabBar"]');if(e){var t=e.querySelector('[x-pds-name="UserDesktopTabBar"]');if(t&&v.current&&T.current&&(t.insertBefore(v.current,t.firstChild),T.current.setAttribute("style","padding-right: 10px;"),t.appendChild(T.current)),O.current){var n=O.current;n.scrollWidth>n.clientWidth&&x(!0)}else;}}),[]),Object(b.useEffect)((function(){if(s&&O.current&&_){var e=U.findIndex((function(e){return e.isActive}));if(-1!==e){var t=O.current,n=t.scrollWidth,i=t.clientWidth,c=n/U.length,o=c*e-i/2+c/2,a=Math.max(0,Math.min(o,n-i));O.current.scrollTo({left:a,behavior:"smooth"})}}}),[s,U,_]),Object(Z.jsx)(qd,{children:Object(Z.jsxs)(Kd,{children:[_&&!y&&Object(Z.jsx)(Zd,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_arrow_left",baseSize:"medium",fillType:"fill",iconSize:20,shapeType:"circular",onClick:function(){if(O.current){var e,t=O.current.scrollWidth;O.current.scrollTo({left:(null===(e=O.current)||void 0===e?void 0:e.scrollLeft)-Math.round(t/4),behavior:"smooth"})}},baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_button_icon_default"})}),Object(Z.jsx)(Yd,{ref:O,isScrollable:_,children:Object(Z.jsx)(F.D_UserDesktopTabBar,{itemArray:U,styleTheme:"content2"})}),_&&!C&&Object(Z.jsx)(Qd,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_arrow_right",fillType:"fill",iconSize:20,shapeType:"circular",baseSize:"medium",onClick:function(){if(O.current){var e,t=O.current.scrollWidth;O.current.scrollTo({left:(null===(e=O.current)||void 0===e?void 0:e.scrollLeft)+Math.round(t/4),behavior:"smooth"})}},baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_button_icon_default"})})]})})},qd=Y.default.div.withConfig({displayName:"S_InnerTabBar",componentId:"sc-1hbw0u2-0"})(["background-color:",";position:sticky;top:0;width:100%;z-index:1;"],(function(e){return e.theme.ui_cpnt_button_fill_base_white})),Kd=Y.default.div.withConfig({displayName:"S_Flex",componentId:"sc-1hbw0u2-1"})(["display:flex;justify-content:space-between;"]),Yd=Y.default.div.withConfig({displayName:"S_TabBar",componentId:"sc-1hbw0u2-2"})(["justify-items:",";overflow-x:",";width:100%;[x-pds-name='TextLabel']{white-space:nowrap;}"],(function(e){return e.isScrollable?"self-start":"center"}),(function(e){return e.isScrollable?"scroll":"auto"})),Zd=Y.default.div.withConfig({displayName:"S_LeftIcon",componentId:"sc-1hbw0u2-3"})(["align-items:center;background:linear-gradient( to right,",","," );display:flex;height:100%;justify-content:flex-start;left:0;pointer-events:none;position:absolute;width:164px;z-index:2;> button{pointer-events:auto;}"],(function(e){return e.theme.ui_cpnt_pg_gradient_01}),(function(e){return e.theme.ui_cpnt_pg_gradient_02})),Qd=Y.default.div.withConfig({displayName:"S_RightIcon",componentId:"sc-1hbw0u2-4"})(["align-items:center;background:linear-gradient( to right,",","," );display:flex;height:100%;justify-content:flex-end;pointer-events:none;position:absolute;right:0;width:164px;z-index:2;> button{pointer-events:auto;}"],(function(e){return e.theme.ui_cpnt_pg_gradient_02}),(function(e){return e.theme.ui_cpnt_pg_gradient_01}));var $d,Jd=Y.default.div.withConfig({displayName:"S_CourseExtensionBubbleWrapper",componentId:"sc-vb2tj2-0"})(["align-items:center;background-color:",";border-radius:8px;display:flex;margin-top:12px;padding-bottom:",";padding-left:10px;padding-right:10px;padding-top:",";position:relative;width:max-content;&::after,&::before{border:solid transparent;content:'';height:0;pointer-events:none;position:absolute;width:0;}"," "," ",""],(function(e){return e.theme.ui_cpnt_sheet_base_black}),(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingB}),(function(e){var t=e.$position,n=e.$buttonPosition;if("top-right"===t)return Object(Y.css)(["right:0;"]);if("top-center"===t&&n&&n.left>0){var i=n.left+n.width/2;return Object(Y.css)(["left:","px;transform:translateX(-50%);"],i)}}),(function(e){return"top-center"===e.$position&&Object(Y.css)(["&::after{border-bottom:7px solid ",";border-left:4px solid transparent;border-right:4px solid transparent;left:calc(50% - 4px);top:1px;transform:translateY(-100%);}
1&::before{border-bottom:8px solid ",";border-left:5px solid transparent;border-right:5px solid transparent;left:calc(50% - 5px);top:0%;transform:translateY(-100%);}"],(function(e){return e.theme.ui_cpnt_sheet_base_black}),(function(e){return e.theme.ui_cpnt_sheet_base_black}))}),(function(e){return"top-right"===e.$position&&Object(Y.css)(["&::after{border-bottom:7px solid ",";border-left:4px solid transparent;border-right:4px solid transparent;right:20px;top:1px;transform:translateY(-100%);}&::before{border-bottom:8px solid ",";border-left:5px solid transparent;border-right:5px solid transparent;right:19px;top:0%;transform:translateY(-100%);}"],(function(e){return e.theme.ui_cpnt_sheet_base_black}),(function(e){return e.theme.ui_cpnt_sheet_base_black}))})),eu=function(e){var t=e.position,n=e.buttonPosition,i=Object(M.a)().t;return Object(Z.jsx)(Jd,{$position:t,$buttonPosition:n,children:Object(Z.jsx)(F.D_TextLabel,{styleTheme:"caption2Bold",colorTheme:"sysTextWhite",text:i("str_9592"),textAlign:"center"})})},tu=n(146),nu=n(455),iu=n(154),cu=n(76),ou=n(178),su=n(30),au=n(571),ru=n(81),lu=n(2798),du=function(){function e(){Object(It.a)(this,e)}return Object(wt.a)(e,null,[{key:"createCAPTPricingViewModels",value:function(t,n,i,c){return{channelActionProducts:Et.a.createPricingViewModels(n.channelActionProducts.map((function(e){return{originalPayload:e,isAvailable:e.enableExtension,isPointPricing:i,productTargetModel:q.c.ChannelActionProduct,productTargetId:e.captId,productName:e.extensionName,listPrice:{amount:e.extensionOriginalCpAmount,currency:t.baseCurrency},salePrice:{amount:e.extensionCpAmount,currency:t.baseCurrency},quantity:1,period:e.extensionPeriodInDays}})),c).map((function(e){return Object(Ct.a)(Object(Ct.a)({},e),{},{periodLabel:null===e.source.period?Nt.a.t("str_3298"):Nt.a.t("str_product_extension_period",{number:e.source.period})})})).filter(e.filterViewModel),subscriptionProducts:Et.a.createPricingViewModels(n.subscriptionProducts.map((function(e){return{originalPayload:e,isAvailable:e.enableExtension,isPointPricing:i,productTargetModel:q.c.SubscriptionProduct,productTargetId:e.id.toString(),productName:e.extensionName,productDescription:"",listPrice:e.extensionOriginalFee,salePrice:e.extensionFee,quantity:1,period:e.extensionPeriodInDays}})),c).map((function(e){return Object(Ct.a)(Object(Ct.a)({},e),{},{periodLabel:null===e.source.period?Nt.a.t("str_3298"):Nt.a.t("str_product_extension_period",{number:e.source.period})})})).filter(e.filterViewModel)}}},{key:"filterViewModel",value:function(e){var t=e.source.originalPayload;if(!t)throw new Error("ExtensionCAPTPricingService::filterViewModel payload error");return t.extensionPurchaseMethodsType===W.g.CASH_AND_CP||(e.isPointPricing?t.extensionPurchaseMethodsType===W.g.CP_ONLY:t.extensionPurchaseMethodsType===W.g.CASH_ONLY)}}]),e}();!function(e){e.MEMBERSHIP="MEMBERSHIP",e.INDIVIDUAL="INDIVIDUAL"}($d||($d={}));var uu=Y.default.div.withConfig({displayName:"S_LoadingWrapper",componentId:"sc-1hjs20m-0"})(["background-color:transparent;height:360px;position:relative;"]),pu=Y.default.div.withConfig({displayName:"S_ButtonWrapper",componentId:"sc-1hjs20m-1"})(["display:flex;justify-content:center;"]),mu=Y.default.div.withConfig({displayName:"S_Padding",componentId:"sc-1hjs20m-2"})(["padding:0 ",";"],(function(e){return e.theme.spacing.spacingE})),bu=function(e){var t,n,o=e.pAppCode,s=e.targetModel,r=e.targetId,l=e.templateId,d=e.showCouponButton,p=void 0!==d&&d,m=e.customUserInputForAction,j=e.targetFromOtherDomain,f=e.redirectUrl,x=e.onClose,O=e.onSuccessNavigate,v=Object(M.a)("translation").t,T=Object(i.c)(),y=Object(c.k)(),C=Object(c.m)(),S=Object(i.d)(a.c),I=Object(i.d)(wr.Q),w=Object(i.d)(wr.M),E=Object(i.d)(ou.a),A=Object(i.d)(a.k),D=Object(i.d)(nu.e),P=Object(i.d)(nu.d),N=Object(i.d)(a.b),k=Object(i.d)(a.a),R=Object(i.d)(nu.c),L=["ko","ko-KR","ko-kr"].includes("".concat(localStorage.getItem("i18nextLng"))),B=null===S||void 0===S?void 0:S.inChannelStore,z=(null===B||void 0===B||null===(t=B.brandedPointSystem)||void 0===t||null===(n=t.branding)||void 0===n?void 0:n.pointCurrencyType)||"CP_TYPE_POINT",U=L?cu.b[z].KRW:cu.b[z].USD,V=Object(b.useState)(),H=Object(J.a)(V,2),G=H[0],X=H[1],q=Object(b.useState)(!1),K=Object(J.a)(q,2),Y=K[0],Q=K[1],$=Object(b.useState)(!1),ee=Object(J.a)($,2),ie=ee[0],ce=ee[1],oe=Object(b.useState)(!1),se=Object(J.a)(oe,2),ae=se[0],re=se[1],le=Object(b.useState)(),de=Object(J.a)(le,2),ue=de[0],pe=de[1],me=Object(b.useState)("CASH"),be=Object(J.a)(me,2),je=be[0],ge=be[1],_e=Object(_.a)(),he=_e.openDialog,fe=_e.closeDialog,xe=h.f.getChannelCode(),Oe=Object(b.useMemo)((function(){return S?du.createCAPTPricingViewModels(S,{channelActionProducts:I,subscriptionProducts:w},"POINT"===je,[]):{channelActionProducts:[],subscriptionProducts:[]}}),[I,w,je]),ve=w.length>0,Te=Oe.subscriptionProducts.length>0,ye=I.length>0,Ce=Oe.channelActionProducts.length>0,Se=null===N||void 0===N?void 0:N.usePointPriorityOptionForMembershipPurchase,Ie=null===N||void 0===N?void 0:N.usePointPriorityOptionForIndividualContentPurchase,we=(null===k||void 0===k?void 0:k.pointCurrencyIconType)||"CP_IC_POINT_3D_001",Ee=null!==S&&void 0!==S&&S.isGlobal?null===k||void 0===k?void 0:k.pointCurrencySuite.pointCurrencyNameGlobal:(null===k||void 0===k?void 0:k.pointCurrencySuite.pointCurrencyName)||"Point";Object(b.useEffect)((function(){T(Object(te.g)())}),[]),Object(b.useLayoutEffect)((function(){return T("SCHEDULE"===s||"CHAT_ROOM"===s?Object(iu.d)({targetModel:s,templateId:l}):Object(iu.d)({targetModel:s,targetId:r})),function(){T(Object(iu.e)())}}),[]),Object(b.useEffect)((function(){ye?pe("INDIVIDUALS"):ve&&pe("MEMBERSHIPS")}
1),[ye,ve]),Object(b.useEffect)((function(){ue&&("INDIVIDUALS"===ue&&Ce?Ae(Oe.channelActionProducts[0]):"MEMBERSHIPS"===ue&&Te?De(Oe.subscriptionProducts[0]):X(void 0))}),[ue,Oe]),Object(b.useEffect)((function(){A?("INDIVIDUALS"===ue&&ge(Ie?"POINT":"CASH"),"MEMBERSHIPS"===ue&&ge(Se?"POINT":"CASH")):ge("CASH")}),[S,ue]);var Ae=function(e){X(Object(Ct.a)(Object(Ct.a)({},e),{},{productType:$d.INDIVIDUAL}))},De=function(e){X(Object(Ct.a)(Object(Ct.a)({},e),{},{productType:$d.MEMBERSHIP}))},Pe=function(e,t){y.push(Object(h.l)(u.lc,{siid:e},{channelCode:C.channelCode,successRedirectUrl:f||y.location.pathname+y.location.search,failedRedirectUrl:y.location.pathname+y.location.search,extension:t}))},Ne=function(e){var t=e.isChannelPointSufficient,n=e.isPrepaidOrderCreated;t?n||he({contentText:v("str_key_user_scene_chargepoint_inapppoint_cap_purchase_failed_alert"),tBtn1Text:v("str_confirm"),onClickTBtn1:function(){fe()}}):he({contentText:v("str_key_user_scene_chargepoint_inapppoint_cap_purchase_notenough_alert"),tBtn1Text:v("str_confirm"),onClickTBtn1:function(){fe()}})},ke=function(e,t){T(Object(iu.c)({siid:e,successCallback:function(){return function(e){T(Object(su.o)()),he({contentText:v("str_key_user_scene_chargepoint_inapppoint_cap_purchase_completed_alert"),tBtn1Text:v("str_confirm"),onClickTBtn1:function(){fe(),x(),re(!1),O&&O(e)}})}(t)},failCallback:Ne}))},Re=function(){return!!h.b.getIsChannelMonetizationActive((null===S||void 0===S?void 0:S.id)||0)||(he({contentText:v("str_key_user_scene_monetization_common_notmonetization_info_desc"),btnMode:"tbtn_amount1",tBtn1Text:v("str_confirm"),onClickTBtn1:fe}),!1)},Le=function(){S&&y.push(Object(c.i)(u.ub,{channelCode:S.channelCode}),{prevPath:"pApp"})};return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_DesktopBasicModal,{titleText:v("str_product_extension_perchase"),size:"small",btnMode:p?"mbtn_amount3":"mbtn_amount2",mBtn1Text:v("str_event_action_buy"),mBtn2Text:v("str_cancel"),mBtn3Text:v("str_e00001_enter_coupon"),mBtn1State:G&&null!==G&&void 0!==G&&G.source.isAvailable?"normal":"disabled",mBtn3State:p&&G&&null!==G&&void 0!==G&&G.source.isAvailable?"normal":"disabled",onClickMBtn1:function(){var e;if(S&&G){var t=G.source.originalPayload.extensionName,n=G.source.originalPayload.extensionLimit,i=G.source.originalPayload.userExtensionCount;if(n&&i>=n)he({titleText:v("str_9587"),contentText:v("str_9588",{extensionName:t,number:n}),btnMode:"tbtn_amount1",tBtn1Text:v("str_confirm"),onClickTBtn1:fe});else if(null===G||void 0===G||null===(e=G.promotion)||void 0===e||!e.selectedLimitedTime||G.promotion.selectedLimitedTime.isTimeActivated){if(Re())switch(G.productType){case $d.INDIVIDUAL:if("POINT"===je){re(!0);break}T(Object(iu.f)({pAppCode:o,productModel:"ChannelActionProduct",contentId:String(G.source.productTargetId),targetId:r,targetModel:s,channelPointAmount:ru.c.priceToChannelPoint(G.salePrice.value),targetFromOtherDomain:j,customUserInputForAction:m,inChannelWalletSummary:E||void 0,promotionBenefitIds:[],extension:W.lb.INDIVIDUAL,successCallback:function(e){return Pe(e,W.lb.INDIVIDUAL)}}));break;case $d.MEMBERSHIP:if("POINT"===je){re(!0);break}T(Object(iu.g)({pAppCode:o,productModel:"SubscriptionProduct",productId:Number(G.source.productTargetId),promotionBenefitIds:[],extension:W.lb.MEMBERSHIP,successCallback:function(e){return Pe(e,W.lb.MEMBERSHIP)}}))}}else he({contentText:v("str_8222"),btnMode:"tbtn_amount1",tBtn1Text:v("str_confirm"),onClickTBtn1:fe})}},onClickMBtn2:x,onClickMBtn3:function(){Q(!0)},bodySpacingMode:"none",children:D?Object(Z.jsx)(uu,{children:Object(Z.jsx)(g.x,{useBoxShadow:!1})}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(mu,{children:Object(Z.jsx)(F.D_TextLabel,{text:v("str_9589"),colorTheme:"sysTextSecondary",styleTheme:"subTitleRegular"})}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),ye&&ve?Object(Z.jsx)(lu.e,{tab1Text:v("str_5302"),tab2Text:v("str_membership"),onTab1Click:function(){return pe("INDIVIDUALS")},onTab2Click:function(){return pe("MEMBERSHIPS")}}):Object(Z.jsx)(Z.Fragment,{children:(ye||ve)&&Object(Z.jsx)(mu,{children:Object(Z.jsx)(F.D_TextLabel,{text:v(ye?"str_5302":"str_membership")})})}),"L2NoYW5uZWxzLzE4NTcx"!==xe&&"L2NoYW5uZWxzLzE4Nzg0"!==xe&&A&&void 0!==ue&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(mu,{children:Object(Z.jsx)(lu.f,{activeTabEnum:"CASH"===je?"TAB1":"TAB2",text1:v("str_key_chargepoint_paymentsway_cash"),text2:v("str_key_chargepoint_paymentsway_point",{pointName:Ee}),text2IconName:cu.a[we],onText1Click:function(){ge("CASH")},onText2Click:function(){ge("POINT")}})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),"INDIVIDUALS"===ue&&Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(mu,{children:[Oe.channelActionProducts.length>0&&Object(Z.jsx)(Z.Fragment,{children:Oe.channelActionProducts.map((function(e){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(au.a,{productViewModel:e,isSelected:(null===G||void 0===G?void 0:G.source.productTargetId)===e.source.productTargetId,onClick:function(){return Ae(e)}}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]},e.source.originalPayload.captId)}))}),0===Oe.channelActionProducts.length&&Object(Z.jsx)(lu.c,{})]})}),"MEMBERSHIPS"===ue&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsxs)(mu,{children:[Oe.subscriptionProducts.length>0&&Object(Z.jsxs)(Z.Fragment,{children:[Oe.subscriptionProducts.map((function(e){return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(au.a,{productViewModel:e,isSelected:(null===G||void 0===G?void 0:G.source.productTargetId)===e.source.productTargetId,onClick:function(){return De(e)}}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]},e.source.originalPayload.id)})),Object(Z.jsx)(pu,{children:Object(Z.jsx)(F.D_TextButton,{text:C.channelCode===W.j?v("str_7059"):v("str_5155"),size:"medium",onClick:function(){y.push(Object(c.i)(u.Pb,{channelCode:C.channelCode}),{hasPrevPage:!0})}})})]}),0===Oe.subscriptionProducts.length&&Object(Z.jsx)(lu.c,{})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"})]}),void 0===ue&&Object(Z.jsx)(lu.c,{})]})}),S&&ae&&G&&E&&Object(Z.jsx)(lu.d,{pointIconName:cu.a[we],productPriceText:G.finalPrice.label,remainingPointText:ru.c.channelPointToBrandedPoint(E.channelPointAmount).toLocaleStr
1ing(),isInAppPointPurchaseLoading:P,selectedProduct:G,onPurchase:function(){if(G&&S){var e=ru.c.brandedPointToChannelPoint(G.finalPrice.value);if(E&&void 0!==e)if(E.channelPointAmount<e)ce(!0);else switch(G.productType){case $d.INDIVIDUAL:T(Object(iu.f)({pAppCode:o,productModel:"ChannelActionProduct",contentId:String(G.source.productTargetId),targetId:r,targetModel:s,channelPointAmount:ru.c.brandedPointToChannelPoint(G.salePrice.value),targetFromOtherDomain:j,customUserInputForAction:m,inChannelWalletSummary:E||void 0,promotionBenefitIds:[],successCallback:function(e){return ke(e,W.lb.INDIVIDUAL)},isInAppPurchase:!0,extension:W.lb.INDIVIDUAL}));break;case $d.MEMBERSHIP:T(Object(iu.g)({pAppCode:o,productModel:"SubscriptionProduct",productId:Number(G.source.productTargetId),successCallback:function(e){return ke(e,W.lb.MEMBERSHIP)},isInAppPurchase:!0,inChannelWalletSummary:E||void 0,promotionBenefitIds:[],extension:W.lb.MEMBERSHIP}))}}},onClose:function(){return re(!1)},onChargeButtonClick:Le}),ie&&Object(Z.jsx)(F.D_DesktopAlertDialog,{titleText:v("str_inapppoint_purchase_product_dialog_title",{inappPointName:U}),contentText:v("str_inapppoint_purchase_product_dialog_content",{inappPointName:U}),btnMode:"tbtn_amount2",tBtn1Text:v("str_inapppoint_purchase_product_dialog_btn"),tBtn2Text:v("str_cancel"),onClickTBtn1:Le,onClickTBtn2:function(){return ce(!1)}}),Y&&Object(Z.jsx)(lu.a,{onApplyCoupon:function(e){if(S&&G&&Re()){switch(Q(!1),G.productType){case $d.INDIVIDUAL:T(Object(iu.f)({pAppCode:o,productModel:"ChannelActionProduct",contentId:String(G.source.productTargetId),targetId:r,targetModel:s,channelPointAmount:ru.c.priceToChannelPoint(G.salePrice.value),targetFromOtherDomain:j,customUserInputForAction:m,inChannelWalletSummary:E||void 0,couponCode:e,extension:W.lb.INDIVIDUAL,successCallback:function(e){return Pe(e,W.lb.INDIVIDUAL)}}));break;case $d.MEMBERSHIP:T(Object(iu.g)({pAppCode:o,productModel:"SubscriptionProduct",productId:Number(G.source.productTargetId),couponCode:e,extension:W.lb.MEMBERSHIP,successCallback:function(e){return Pe(e,W.lb.MEMBERSHIP)}}))}Q(!1)}},onClose:function(){return Q(!1)}}),R&&Object(Z.jsx)(lu.b,{error:R,onConfirmClick:function(){T(Object(iu.h)()),T(Object(ne.g)())}})]})},ju=j.a.forwardRef((function(e,t){var n=e.isTabBarTemplate,s=Object(i.c)(),a=Object(c.k)(),r=Object(c.m)().classId,l=Object(b.useState)(!1),d=Object(J.a)(l,2),u=d[0],p=d[1],m=a.location.pathname+a.location.search;return Object(Z.jsxs)(gu,{ref:t,children:[Object(Z.jsx)(F.D_IconButton,{colorTheme:"none",fillType:"fill",shapeType:"round",baseSize:"large",iconSize:24,baseColorKey:n?"ui_cpnt_button_fill_base_on_sheet":"ui_cpnt_button_fill_base_default",iconColorKey:"ui_cpnt_button_fill_base_primary",iconFillType:"line",iconName:"ic_time_extension",onClick:function(){p(!0)}}),u&&Object(Z.jsx)(bu,{pAppCode:o.a.C00007.CODE,targetModel:"SERIES",targetId:r,redirectUrl:m,onClose:function(){s(Object(X.r)({seriesId:r,extraInfos:"LOWEST_PRICE,AVG_REVIEW_POINT,REVIEW_COUNTS,IS_PROMOTING"})),s(Object(tu.d)()),p(!1)},onSuccessNavigate:function(e){a.push("".concat(m).concat(e?"?extension=".concat(e):""))}})]})}));ju.displayName="CourseExtensionButton";var gu=Y.default.div.withConfig({displayName:"S_IconButtonWrapper",componentId:"sc-14fze6a-0"})(["min-width:48px;"]),_u=ju,hu=["isPromotionPanelShow"];var fu=function(e){var t=e.labels,n=e.classInfo,i=e.hasEnrolled,c=e.isPurchased,o=e.isRegistered,s=e.activeSection,a=e.isPreviewButtonVisible,r=e.refs,l=e.reviewsViewModel,d=e.limitedTimeBenefitViewModel,u=e.discountBenefitViewModel,p=e.children,m=e.hasCourseExtension,b=e.onClickReviewAmount,j=Object(M.a)().t,g=d.isPromotionPanelShow,_=Object($r.a)(d,hu),f=l.isReviewAmountVisible,x=l.isReviewScoreVisible,O=l.reviewAmount,v=l.reviewScore,T=n.id,y=n.coverImageSrc,C=n.title,S=n.seriesAdditionalInfo,I=n.hasUserBookmarked,w=n.hasContentGroupLock;return Object(Z.jsxs)(xu,{ref:null===r||void 0===r?void 0:r.container,children:[Object(Z.jsxs)(Au,{src:null!==y&&void 0!==y?y:"",children:[Object(Z.jsx)(Du,{src:null!==y&&void 0!==y?y:""}),Object(Z.jsx)(Pu,{src:null!==y&&void 0!==y?y:"",children:Object(Z.jsx)("img",{src:y,alt:C})})]}),Object(Z.jsxs)(Ou,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsxs)(Cu,{children:[Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"displayBold",wordBreak:"break_all"}),(null===S||void 0===S?void 0:S.director)&&Object(Z.jsx)(yu,{children:Object(Z.jsx)(F.D_TextLabel,{text:S.director,styleTheme:"body2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}
1)}),t.length>0&&Object(Z.jsx)(Cl,{labelList:t}),(x||f)&&Object(Z.jsxs)(Iu,{children:[x&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:20,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:v,colorTheme:"sysTextPrimary"})]}),x&&f&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Divider,{direction:"vertical",height:12}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),f&&Object(Z.jsxs)(Su,{onClick:b,children:[Object(Z.jsx)(F.D_TextLabel,{text:j(O>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:O}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_right",size:16,colorKey:"ui_cpnt_icon_sys_grey_02"})]})]})]}),Object(Z.jsxs)(vu,{children:[Object(Z.jsxs)(Tu,{children:[!c&&g&&Object(Z.jsx)(tl,Object(Ct.a)({isTabBarTemplate:!0},_)),Object(Z.jsxs)(Hd.SectionSheet,{width:"336px",height:"responsive",backgroundColorTheme:"base3",shapeType:"round",radius:16,overrideCSS:Object(Ct.a)({display:"flex",flexDirection:"column",justifyContent:"space-between",minWidth:"336px"},g&&!c?{borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}:{}),children:[Object(Z.jsx)(Pl,Object(Ct.a)({hasEnrolled:i,isRegistered:o},u)),Object(Z.jsxs)(wu,{children:[Object(Z.jsx)(wl,{useResponsiveMode:!0}),Object(Z.jsx)(ml,{useResponsiveMode:!0}),Object(Z.jsx)(ul,{hasUserBookmarked:I,isTabbarTemplate:!0}),m&&Object(Z.jsx)(_u,{isTabBarTemplate:!0})]}),m&&Object(Z.jsx)(Nu,{children:Object(Z.jsx)(eu,{position:"top-right"})}),a&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:m?"spacing_d":"spacing_e"}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(Sl,{isTabbarTemplate:!0})]})]})]}),!h.b.isGuest()&&(c||i)&&!w&&Object(Z.jsx)(vl,{})]})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(Xd,{classId:String(T),sectionRefs:r,activeSection:s}),Object(Z.jsx)(Eu,{children:p})]})]})},xu=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-qp8fhb-0"})(["height:100%;justify-items:center;overflow-y:auto;"]),Ou=Y.default.div.withConfig({displayName:"S_ClassDetailList",componentId:"sc-qp8fhb-1"})(["align-items:center;display:flex;flex-direction:column;width:992px;"]),vu=Y.default.div.withConfig({displayName:"S_ClassDetailInfo",componentId:"sc-qp8fhb-2"})(["display:flex;flex-direction:column;gap:",";"],(function(e){return e.theme.spacing.spacingD})),Tu=Y.default.div.withConfig({displayName:"S_SectionSheetWrapper",componentId:"sc-qp8fhb-3"})(["display:flex;flex-direction:column;"]),yu=Y.default.div.withConfig({displayName:"S_DirectorBox",componentId:"sc-qp8fhb-4"})(["padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),Cu=Y.default.div.withConfig({displayName:"S_DetailInfoWrapper",componentId:"sc-qp8fhb-5"})(["align-items:flex-start;display:flex;gap:",";justify-content:space-between;width:992px;"],(function(e){return e.theme.spacing.spacingD})),Su=Y.default.div.withConfig({displayName:"S_ReviewAmountWrapper",componentId:"sc-qp8fhb-6"})(["align-items:center;cursor:pointer;display:flex;flex-direction:row;"]),Iu=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-qp8fhb-7"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingE})),wu=Y.default.div.withConfig({displayName:"S_MainButtonWrapper",componentId:"sc-qp8fhb-8"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingB})),Eu=Y.default.div.withConfig({displayName:"S_TabContentsWrapper",componentId:"sc-qp8fhb-9"})(["width:992px;"]),Au=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-qp8fhb-10"})(["align-items:center;display:flex;height:100%;justify-content:center;max-height:480px;min-height:480px;overflow:hidden;position:relative;width:100%;",""],(function(e){var t=e.theme;return!e.src&&"background-color: ".concat(t.ui_temp_grey_04)}
1)),Du=Y.default.div.withConfig({displayName:"S_BlurredBackground",componentId:"sc-qp8fhb-11"})(["background-image:url(",");background-position:center;background-size:cover;filter:blur(40px) brightness(1.1);height:calc(100% + 40px);left:-20px;overflow:hidden;position:absolute;top:-20px;width:calc(100% + 40px);",""],(function(e){return e.src}),(function(e){return!e.src&&"display: none;"})),Pu=Y.default.div.withConfig({displayName:"S_AspectRatioContainer",componentId:"sc-qp8fhb-12"})(["height:100%;max-width:992px;position:relative;width:100%;img{height:100%;min-height:480px;object-fit:cover;width:100%;}",""],(function(e){return!e.src&&"display: none;"})),Nu=Y.default.div.withConfig({displayName:"S_BubbleWrapper",componentId:"sc-qp8fhb-13"})(["display:flex;justify-content:flex-end;"]);var ku=function(e){var t=e.classInfo,n=e.labels,i=e.isPurchased,c=e.hasEnrolled,o=e.isRegistered,s=e.isPreviewButtonVisible,a=e.reviewsViewModel,r=e.limitedTimeBenefitViewModel,l=e.discountBenefitViewModel,d=e.hasCourseExtension,u=t.coverImageSrc,p=t.title,m=t.seriesAdditionalInfo,j=t.hasUserBookmarked,g=t.description,_=Object(b.useRef)(null),h=Object(b.useState)({left:0,width:0}),f=Object(J.a)(h,2),x=f[0],O=f[1];return Object(b.useLayoutEffect)((function(){if(d&&_.current){var e=_.current,t=e.parentElement;if(t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();O({left:n.left-i.left,width:n.width})}}}),[d,s]),Object(Z.jsx)(Ru,{children:Object(Z.jsxs)(Lu,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(F.ImageView,{src:u,shapeType:"rectangle",width:615,noImageWidth:615,ratio:"16_9",scaleType:"cover"}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_TextLabel,{text:p,styleTheme:"displayBold"}),(null===m||void 0===m?void 0:m.director)&&Object(Z.jsx)(Bu,{children:Object(Z.jsx)(F.D_TextLabel,{text:m.director,styleTheme:"body2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1})}),n.length>0&&Object(Z.jsx)(Cl,{labelList:n}),Object(Z.jsx)(ll,{classInfo:t,isPurchased:i,hasEnrolled:c,isRegistered:o,reviewsViewModel:a,limitedTimeBenefitViewModel:r,discountBenefitViewModel:l}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsxs)(Mu,{children:[Object(Z.jsx)(wl,{}),s&&Object(Z.jsx)(Sl,{isTabbarTemplate:!1}),Object(Z.jsx)(ml,{}),Object(Z.jsx)(ul,{hasUserBookmarked:j,isTabbarTemplate:!1}),d&&Object(Z.jsx)(_u,{ref:_,isTabBarTemplate:!1})]}),d&&Object(Z.jsx)(Uu,{children:Object(Z.jsx)(eu,{position:"top-center",buttonPosition:x})}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(zu,{dangerouslySetInnerHTML:{__html:g||""}})]})})},Ru=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-n84uua-0"})(["height:100%;overflow-y:auto;padding-bottom:",";"],(function(e){return e.theme.spacing.spacingI})),Lu=Y.default.div.withConfig({displayName:"S_ClassDetailList",componentId:"sc-n84uua-1"})(["padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),Bu=Y.default.div.withConfig({displayName:"S_DirectorBox",componentId:"sc-n84uua-2"})(["padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),Mu=Y.default.div.withConfig({displayName:"S_MainButtonWrapper",componentId:"sc-n84uua-3"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingC})),zu=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-n84uua-4"})([""," img{margin-bottom:0;margin-top:0;}"],kl.a),Uu=Y.default.div.withConfig({displayName:"S_BubbleWrapper",componentId:"sc-n84uua-5"})(["position:relative;width:100%;"]);var Fu=function(e){var t=e.classInfo,n=e.labels,i=e.isPreviewButtonVisible,c=e.isPurchased,o=e.hasEnrolled,s=e.isRegistered,a=e.reviewsViewModel,r=e.limitedTimeBenefitViewModel,l=e.discountBenefitViewModel,d=e.hasCourseExtension,u=t.coverImageSrc,p=t.title,m=t.seriesAdditionalInfo,j=t.hasUserBookmarked,g=t.description,_=t.id,h=Object(b.useRef)(null),f=Object(b.useState)({left:0,width:0}),x=Object(J.a)(f,2),O=x[0],v=x[1];return Object(b.useLayoutEffect)((function(){if(d&&h.current){var e=h.current,t=e.parentElement;if(t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();v({left:n.left-i.left,width:n.width})}}}),[d,i]),Object(Z.jsx)(Vu,{children:Object(Z.jsxs)(Wu,{children:[Object(Z.jsx)(Xu,{children:Object(Z.jsx)(de,{classId:String(_)})}),Object(Z.jsxs)(Hu,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(Zu,{src:null!==u&&void 0!==u?u:"",children:Object(Z.jsx)(F.ImageView,{src:u,width:"responsive",height:480,scaleType:"cover",noImageWidth:1400,radius:16})}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsxs)(Gu,{children:[Object(Z.jsx)(F.D_TextLabel,{text:p,styleTheme:"displayBold"}),(null===m||void 0===m?void 0:m.director)&&Object(Z.jsx)(qu,{children:Object(Z.jsx)(F.D_TextLabel,{text:m.director,styleTheme:"body2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}
1)}),n.length>0&&Object(Z.jsx)(Cl,{labelList:n}),Object(Z.jsx)(ll,{isPurchased:c,hasEnrolled:o,isRegistered:s,classInfo:t,reviewsViewModel:a,limitedTimeBenefitViewModel:r,discountBenefitViewModel:l}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsxs)(Ku,{children:[Object(Z.jsx)(wl,{}),Object(Z.jsx)(ml,{}),i&&Object(Z.jsx)(Sl,{isTabbarTemplate:!1}),Object(Z.jsx)(ul,{hasUserBookmarked:j,isTabbarTemplate:!1}),d&&Object(Z.jsx)(_u,{ref:h,isTabBarTemplate:!1})]}),d&&Object(Z.jsx)(Qu,{children:Object(Z.jsx)(eu,{position:"top-center",buttonPosition:O})}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(Yu,{dangerouslySetInnerHTML:{__html:g||""}})]})]})]})})},Vu=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-qt0rzp-0"})(["height:100%;justify-self:center;width:100%;"]),Wu=Y.default.div.withConfig({displayName:"S_ClassDetailLayout",componentId:"sc-qt0rzp-1"})(["display:flex;flex-direction:row;height:100%;justify-content:center;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),Hu=Y.default.div.withConfig({displayName:"S_ClassDetailItems",componentId:"sc-qt0rzp-2"})(["justify-items:center;max-width:1400px;min-width:980px;padding-left:",";width:100%;"],(function(e){return e.theme.spacing.spacingG})),Gu=Y.default.div.withConfig({displayName:"S_ContentInfo",componentId:"sc-qt0rzp-3"})(["max-width:980px;min-width:980px;"]),Xu=Y.default.div.withConfig({displayName:"S_SideTabBar",componentId:"sc-qt0rzp-4"})(["height:100%;min-width:290px;position:sticky;top:0;"]),qu=Y.default.div.withConfig({displayName:"S_DirectorBox",componentId:"sc-qt0rzp-5"})(["padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),Ku=Y.default.div.withConfig({displayName:"S_MainButtonWrapper",componentId:"sc-qt0rzp-6"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingC})),Yu=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-qt0rzp-7"})([""," img{margin-bottom:0;margin-top:0;}"],kl.a),Zu=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-qt0rzp-8"})(["align-items:center;display:flex;justify-content:center;max-height:480px;min-height:480px;overflow:hidden;position:relative;width:100%;"]),Qu=Y.default.div.withConfig({displayName:"S_BubbleWrapper",componentId:"sc-qt0rzp-9"})(["position:relative;width:100%;"]),$u=["isPromotionPanelShow"];var Ju=function(e){var t=e.labels,n=e.classInfo,i=e.isPurchased,c=e.hasEnrolled,o=e.isRegistered,s=e.activeSection,a=e.isPreviewButtonVisible,r=e.refs,l=e.reviewsViewModel,d=e.limitedTimeBenefitViewModel,u=e.discountBenefitViewModel,p=e.children,m=e.hasCourseExtension,j=e.onClickReviewAmount,g=Object(M.a)().t,_=d.isPromotionPanelShow,f=Object($r.a)(d,$u),x=l.isReviewAmountVisible,O=l.isReviewScoreVisible,v=l.reviewAmount,T=l.reviewScore,y=n.id,C=n.coverImageSrc,S=n.title,I=n.seriesAdditionalInfo,w=n.hasUserBookmarked,E=n.hasContentGroupLock,A=Object(b.useRef)(null),D=Object(b.useRef)(null);return Object(b.useEffect)((function(){var e=function(){if(A.current&&D.current){var e=A.current.getBoundingClientRect().height;D.current.style.height="".concat(e,"px")}};e();var t=new ResizeObserver(e);return A.current&&t.observe(A.current),function(){A.current&&t.unobserve(A.current),t.disconnect()}}),[]),Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsxs)(ep,{ref:null===r||void 0===r?void 0:r.container,children:[Object(Z.jsxs)(tp,{ref:A,children:[Object(Z.jsx)(F.ImageView,{src:C,shapeType:"round",width:757,noImageWidth:757,ratio:"16_9",scaleType:"cover",radius:16}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(np,{children:Object(Z.jsx)(Xd,{classId:String(y),sectionRefs:r,activeSection:s})}),p]}),Object(Z.jsx)(cp,{ref:D,children:Object(Z.jsxs)(op,{children:[Object(Z.jsxs)("div",{children:[Object(Z.jsx)(F.D_TextLabel,{text:S,styleTheme:"displayBold"}),(null===I||void 0===I?void 0:I.director)&&Object(Z.jsx)(ip,{children:Object(Z.jsx)(F.D_TextLabel,{text:I.director,styleTheme:"body2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1}
1)}),t.length>0&&Object(Z.jsx)(Cl,{labelList:t}),(O||x)&&Object(Z.jsxs)(ap,{children:[O&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:20,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:T,colorTheme:"sysTextPrimary"})]}),O&&x&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Divider,{direction:"vertical",height:12}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),x&&Object(Z.jsxs)(sp,{onClick:j,children:[Object(Z.jsx)(F.D_TextLabel,{text:g(v>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:v}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_right",size:16,colorKey:"ui_cpnt_icon_sys_grey_02"})]})]})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),!i&&_&&Object(Z.jsx)(tl,Object(Ct.a)({isTabBarTemplate:!0},f)),Object(Z.jsxs)(Hd.SectionSheet,{width:"336px",height:"responsive",backgroundColorTheme:"base3",shapeType:"round",radius:16,overrideCSS:Object(Ct.a)({display:"flex",flexDirection:"column",justifyContent:"space-between"},_&&!i?{borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}:{}),children:[Object(Z.jsx)(Pl,Object(Ct.a)({hasEnrolled:c,isRegistered:o},u)),Object(Z.jsxs)(rp,{children:[Object(Z.jsx)(wl,{useResponsiveMode:!0}),Object(Z.jsx)(ml,{useResponsiveMode:!0}),Object(Z.jsx)(ul,{hasUserBookmarked:w,isTabbarTemplate:!0}),m&&Object(Z.jsx)(_u,{isTabBarTemplate:!0})]}),m&&Object(Z.jsx)(lp,{children:Object(Z.jsx)(eu,{position:"top-right"})}),a&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:m?"spacing_d":"spacing_e"}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(Sl,{isTabbarTemplate:!0})]})]}),!h.b.isGuest()&&(i||c)&&!E&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(vl,{})]})]})})]})})},ep=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-la4413-0"})(["align-items:flex-start;display:flex;gap:",";height:100%;justify-content:center;overflow-y:auto;padding-top:",";"],(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG})),tp=Y.default.div.withConfig({displayName:"S_LeftContents",componentId:"sc-la4413-1"}
1)(["height:max-content;justify-items:center;max-width:757px;width:100%;"]),np=Y.default.div.withConfig({displayName:"S_TabBarWrapper",componentId:"sc-la4413-2"})(["margin-left:",";margin-right:",";position:sticky;top:-48px;width:100%;z-index:1;"],(function(e){var t=e.theme;return"-".concat(t.spacing.spacingE)}),(function(e){var t=e.theme;return"-".concat(t.spacing.spacingE)})),ip=Y.default.div.withConfig({displayName:"S_DirectorBox",componentId:"sc-la4413-3"})(["padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),cp=Y.default.div.withConfig({displayName:"S_DetailInfoWrapper",componentId:"sc-la4413-4"})(["align-self:flex-start;display:flex;flex-direction:column;padding-right:",";width:384px;"],(function(e){return e.theme.spacing.spacingE})),op=Y.default.div.withConfig({displayName:"S_PriceSection",componentId:"sc-la4413-5"})(["padding-bottom:",";position:sticky;top:-24px;width:100%;"],(function(e){return e.theme.spacing.spacingI})),sp=Y.default.div.withConfig({displayName:"S_ReviewAmountWrapper",componentId:"sc-la4413-6"})(["align-items:center;cursor:pointer;display:flex;flex-direction:row;"]),ap=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-la4413-7"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingE})),rp=Y.default.div.withConfig({displayName:"S_MainButtonWrapper",componentId:"sc-la4413-8"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingB})),lp=Y.default.div.withConfig({displayName:"S_BubbleWrapper",componentId:"sc-la4413-9"})(["display:flex;justify-content:flex-end;"]),dp=["isPromotionPanelShow"];var up=function(e){var t=e.labels,n=e.classInfo,i=e.isPurchased,c=e.hasEnrolled,o=e.isRegistered,s=e.activeSection,a=e.isPreviewButtonVisible,r=e.refs,l=e.reviewsViewModel,d=e.limitedTimeBenefitViewModel,u=e.discountBenefitViewModel,p=e.children,m=e.hasCourseExtension,b=e.onClickReviewAmount,j=Object(M.a)().t,g=d.isPromotionPanelShow,_=Object($r.a)(d,dp),f=l.isReviewAmountVisible,x=l.isReviewScoreVisible,O=l.reviewAmount,v=l.reviewScore,T=n.id,y=n.coverImageSrc,C=n.title,S=n.seriesAdditionalInfo,I=n.hasUserBookmarked,w=n.hasContentGroupLock;return Object(Z.jsxs)(pp,{ref:null===r||void 0===r?void 0:r.container,children:[Object(Z.jsxs)(vp,{src:null!==y&&void 0!==y?y:"",children:[Object(Z.jsx)(Tp,{src:null!==y&&void 0!==y?y:""}),Object(Z.jsx)(yp,{src:null!==y&&void 0!==y?y:"",children:Object(Z.jsx)("img",{src:y,alt:C})})]}),Object(Z.jsxs)(mp,{children:[Object(Z.jsxs)(_p,{children:[Object(Z.jsx)(F.D_TextLabel,{text:C,styleTheme:"displayBold"}),(null===S||void 0===S?void 0:S.director)&&Object(Z.jsx)(gp,{children:Object(Z.jsx)(F.D_TextLabel,{text:S.director,styleTheme:"body2Regular",colorTheme:"sysTextSecondary",ellipsisMode:"use",lineLimit:1})}),t.length>0&&Object(Z.jsx)(Cl,{labelList:t}),(x||f)&&Object(Z.jsxs)(xp,{children:[x&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_star_shaped",size:20,colorKey:"ui_116",fillType:"fill"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:v,colorTheme:"sysTextPrimary"})]}),x&&f&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Divider,{direction:"vertical",height:12}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"})]}),f&&Object(Z.jsxs)(fp,{onClick:b,children:[Object(Z.jsx)(F.D_TextLabel,{text:j(O>1?"str_class_home_review_count":"str_class_information_review_count_single",{reviewAmount:O}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_right",size:16,colorKey:"ui_cpnt_icon_sys_grey_02"})]})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(Xd,{classId:String(T),sectionRefs:r,activeSection:s}),p]}),Object(Z.jsx)(hp,{children:Object(Z.jsxs)(jp,{children:[Object(Z.jsxs)(bp,{children:[!i&&g&&Object(Z.jsx)(tl,Object(Ct.a)({isTabBarTemplate:!0},_)),Object(Z.jsxs)(Hd.SectionSheet,{width:"336px",height:"responsive",backgroundColorTheme:"base3",shapeType:"round",radius:16,overrideCSS:Object(Ct.a)({display:"flex",flexDirection:"column",justifyContent:"space-between"},g&&!i?{borderTopLeftRadius:"0px",borderTopRightRadius:"0px"}:{}),children:[Object(Z.jsx)(Pl,Object(Ct.a)({hasEnrolled:c,isRegistered:o},u)),Object(Z.jsxs)(Op,{children:[Object(Z.jsx)(wl,{useResponsiveMode:!0}),Object(Z.jsx)(ml,{useResponsiveMode:!0}),Object(Z.jsx)(ul,{hasUserBookmarked:I,isTabbarTemplate:!0}),m&&Object(Z.jsx)(_u,{isTabBarTemplate:!0})]}),m&&Object(Z.jsx)(Cp,{children:Object(Z.jsx)(eu,{position:"top-right"})}),a&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:m?"spacing_d":"spacing_e"}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(Sl,{isTabbarTemplate:!0})]})]})]}
1),!h.b.isGuest()&&(i||c)&&!w&&Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsx)(vl,{})})]})})]})]})},pp=Y.default.div.withConfig({displayName:"S_Layout",componentId:"sc-looxqj-0"})(["align-items:center;display:flex;flex-direction:column;gap:",";height:100%;overflow-y:auto;width:100%;"],(function(e){return e.theme.spacing.spacingG})),mp=Y.default.div.withConfig({displayName:"S_ContentsWrapper",componentId:"sc-looxqj-1"})(["display:flex;justify-content:center;max-width:1200px;width:100%;"]),bp=Y.default.div.withConfig({displayName:"S_SectionSheetWrapper",componentId:"sc-looxqj-2"})(["display:flex;flex-direction:column;"]),jp=Y.default.div.withConfig({displayName:"S_ClassRightSection",componentId:"sc-looxqj-3"})(["display:flex;flex-direction:column;gap:",";position:sticky;top:24px;"],(function(e){return e.theme.spacing.spacingD})),gp=Y.default.div.withConfig({displayName:"S_DirectorBox",componentId:"sc-looxqj-4"})(["padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),_p=Y.default.div.withConfig({displayName:"S_LeftContentWrapper",componentId:"sc-looxqj-5"})(["margin-left:",";margin-right:",";max-width:757px;min-width:757px;"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),hp=Y.default.div.withConfig({displayName:"S_DetailInfoWrapper",componentId:"sc-looxqj-6"})(["align-items:center;display:flex;flex-direction:column;padding-left:",";padding-right:",";"],(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE})),fp=Y.default.div.withConfig({displayName:"S_ReviewAmountWrapper",componentId:"sc-looxqj-7"})(["align-items:center;cursor:pointer;display:flex;flex-direction:row;"]),xp=Y.default.div.withConfig({displayName:"S_ReviewScoreWrapper",componentId:"sc-looxqj-8"})(["align-items:center;display:flex;padding-top:",";"],(function(e){return e.theme.spacing.spacingE})),Op=Y.default.div.withConfig({displayName:"S_MainButtonWrapper",componentId:"sc-looxqj-9"})(["align-items:center;display:flex;gap:",";"],(function(e){return e.theme.spacing.spacingB})),vp=Y.default.div.withConfig({displayName:"S_ImageWrapper",componentId:"sc-looxqj-10"})(["align-self:center;justify-items:center;min-height:480px;overflow:hidden;position:relative;width:100%;",""],(function(e){var t=e.theme;return!e.src&&"background-color: ".concat(t.ui_temp_grey_04)})),Tp=Y.default.div.withConfig({displayName:"S_BlurredBackground",componentId:"sc-looxqj-11"})(["background-image:url(",");background-position:center;background-size:cover;filter:blur(40px) brightness(1.1);height:calc(100% + 40px);left:-20px;overflow:hidden;position:absolute;top:-20px;width:calc(100% + 40px);",""],(function(e){return e.src}),(function(e){return!e.src&&"display: none;"})),yp=Y.default.div.withConfig({displayName:"S_AspectRatioContainer",componentId:"sc-looxqj-12"})(["align-items:center;display:flex;height:100%;justify-content:center;max-width:1152px;position:relative;width:100%;img{height:100%;object-fit:cover;width:100%;}",""],(function(e){return!e.src&&"display: none;"})),Cp=Y.default.div.withConfig({displayName:"S_BubbleWrapper",componentId:"sc-looxqj-13"})(["display:flex;justify-content:flex-end;"]);var Sp=function(e){var t,n,c,o,s,r=e.templateType,l=e.refs,d=e.classInfo,u=e.hasEnrollmentRecord,p=e.hasPurchaseRecord,m=e.benefits,j=e.templateProps,g=e.scrollablePageProps,_=e.hasCourseExtension,h=Object(i.d)(a.c),f=Object(i.d)(G.n),x=z(),O=x.COMMON,v=O.isReviewTabActive,T=O.isStarRatingActive,y=x.CLASSINFO,C=y.priceAppearance,S=y.installmentsMonth,I=y.isHideReviewScore,w=y.isHideReviewAmount,E=y.reviewScoreStandard,A=null!==(t=null===f||void 0===f||null===(n=f.find((function(e){return"AVG_REVIEW_POINT"===e.type})))||void 0===n?void 0:n.value)&&void 0!==t?t:0,D=null!==(c=null===f||void 0===f||null===(o=f.find((function(e){return"REVIEW_COUNTS"===e.type})))||void 0===o?void 0:o.value)&&void 0!==c?c:0,P=A>=E&&!I&&v&&T,N=D>0&&!w&&v,k=Object(b.useMemo)((function(){if(!h||!d)return null;var e=(null===h||void 0===h?void 0:h.baseCurrency)||"KRW";return on.createSeriesPriceViewModels(e,{priceAppearance:C,installmentsMonth:S},{availableProducts:d.availableProducts||[],isPreparing:!(null===d||void 0===d||!d.isPreparing),preparingMessage:ln(null===d||void 0===d?void 0:d.seriesDetailDesignConfig)}
1,m)}),[h,C,S,m,d]),R=rn.createPricingDisplayProps(k),L=(d.labels||[]).slice().sort((function(e,t){return e.type>t.type?-1:1})),B=null===k||void 0===k||null===(s=k.customField)||void 0===s?void 0:s.isFree,M=!1,U=!1;null!==k&&void 0!==k&&k.source?(M=p,U=u):(M=!1,U=u);var F=function(){return!!M||!!B&&!!U},V=function(){return Object(Z.jsx)(kd,Object(Ct.a)(Object(Ct.a)({},g),{},{refs:l,description:d.description||""}))},W={isReviewAmountVisible:N,isReviewScoreVisible:P,reviewAmount:D,reviewScore:A.toPrecision(2)};switch(r){case"VISUAL_TABBAR_INFO":return Object(Z.jsx)(fu,Object(Ct.a)(Object(Ct.a)({refs:l,classInfo:d,isPurchased:M,hasEnrolled:U,isRegistered:F(),labels:L,reviewsViewModel:W,limitedTimeBenefitViewModel:R.limitedTimeBenefitViewModel,discountBenefitViewModel:R.discountBenefitViewModel,hasCourseExtension:_},j),{},{children:g&&V()}));case"TABBAR_2COL_LEFT_INFO":return Object(Z.jsx)(Ju,Object(Ct.a)(Object(Ct.a)({refs:l,classInfo:d,isPurchased:M,hasEnrolled:U,isRegistered:F(),labels:L,reviewsViewModel:W,limitedTimeBenefitViewModel:R.limitedTimeBenefitViewModel,discountBenefitViewModel:R.discountBenefitViewModel,hasCourseExtension:_},j),{},{children:g&&V()}));case"VISUAL_TABBAR_2COL_LEFT_INFO":return Object(Z.jsx)(up,Object(Ct.a)(Object(Ct.a)({refs:l,classInfo:d,isPurchased:M,hasEnrolled:U,isRegistered:F(),labels:L,reviewsViewModel:W,limitedTimeBenefitViewModel:R.limitedTimeBenefitViewModel,discountBenefitViewModel:R.discountBenefitViewModel,hasCourseExtension:_},j),{},{children:g&&V()}));case"VISUAL_BASIC":return Object(Z.jsx)(Fu,Object(Ct.a)({labels:L,classInfo:d,isPurchased:M,hasEnrolled:U,isRegistered:F(),reviewsViewModel:W,limitedTimeBenefitViewModel:R.limitedTimeBenefitViewModel,discountBenefitViewModel:R.discountBenefitViewModel,hasCourseExtension:_},j));default:return Object(Z.jsx)(ku,Object(Ct.a)({labels:L,classInfo:d,isPurchased:M,hasEnrolled:U,isRegistered:F(),reviewsViewModel:W,limitedTimeBenefitViewModel:R.limitedTimeBenefitViewModel,discountBenefitViewModel:R.discountBenefitViewModel,hasCourseExtension:_},j))}},Ip={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{seriesTitle}}",description:"{{seriesDescription}}",thumbnailSrc:"{seriesCoverImageSrc}"},keyMappingDefinition:{title:"title",description:"description",thumbnailSrc:"thumbnailSrc"}};var wp=function(){var e;Object(H.b)("C00007ClassInformation","c00007_class_information");var t=Object(M.a)("translation").t,n=Object(c.m)().classId,o=Object(c.k)(),s=Object(i.c)(),a=Object(i.d)(G.d),l=Object(i.d)(G.o),d=Object(i.d)(G.p),u=Object(i.d)(r.d),p=Object(i.d)(St.g),m=Object(i.d)(G.G),j=Object(i.d)(G.s),g=Object(i.d)(G.m),_=Object(K.a)(),f=z(),x=f.COMMON.tabActiveState,O=f.CLASSDETAIL.template,v=f.CLASSINFO,T=v.isHideReviewAmount,y=v.isHideReviewScore,C=Qr({isLoading:j,templateName:O,hasContentGroupLock:!(null===a||void 0===a||!a.hasContentGroupLock)}),S=C.refs,w=C.activeSection,E=C.handleActiveSection,A=p.some((function(e){return(null===e||void 0===e?void 0:e.id)===Number(n)})),D=((null===g||void 0===g?void 0:g.type)==="".concat(X.o.type,"_FAILED")||(null===g||void 0===g?void 0:g.type)==="".concat(X.Q.type,"_FAILED"))&&403===(null===g||void 0===g?void 0:g.status),P=a?{title:t("str_seo_c00007_class_information_title",{seriesTitle:a.title,interpolation:{escapeValue:!1}}),description:a.description&&t("str_seo_c00007_class_information_desc",{seriesDescription:Object(h.j)(a.description,150)}),thumbnailSrc:a.coverImageSrc}:null;Object(gc.c)({manifest:Ip,isActivated:!0,data:P,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){var e=["LOWEST_PRICE"].concat(y?[]:["AVG_REVIEW_POINT"],T?[]:["REVIEW_COUNTS"],["IS_PROMOTING"]).join(",");return s(Object(X.t)({seriesId:n,extraInfos:e})),_.trigger(q.d.EXPRESSION_VIEW,{pAppCode:W.Y.C00007.CODE}),function(){s(Object(X.db)())}}),[n,T,y]);var N=0!==(null===m||void 0===m?void 0:m.length)&&(!(!h.b.isGuest()||u)||!(h.b.isGuest()&&(null===a||void 0===a||!a.hasContentGroupLock))&&!A&&!(null===a||void 0===a||!a.hasContentGroupLock)),k=function(){switch(O){case"VISUAL_TABBAR_INFO":case"TABBAR_2COL_LEFT_INFO":case"VISUAL_TABBAR_2COL_LEFT_INFO":return"WTH_2";case"VISUAL_BASIC":return"WTH_1";default:return"WTO_1"}}(),R=Object(Z.jsx)(Z.Fragment,{});return!D&&g&&(R=Object(Z.jsx)(ie,{error:g})),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:k,isLoadingContainer1:j||_.isLoading,subMenuContent:O.includes("TABBAR")?Object(Z.jsx)(Z.Fragment,{}):Object(Z.jsx)(de,{classId:n}),pageMenuContent:Object(Z.jsx)(ue,{}),content1:a?Object(Z.jsx)(Sp,{templateType:O,classInfo:a,refs:S,benefits:null!==(e=_.applicableBenefits)&&void 0!==e?e:[],hasEnrollmentRecord:l,hasPurchaseRecord:A,hasCourseExtension:d,templateProps:{activeSection:w,isPreviewButtonVisible:N,onClickReviewAmount:function(){var e;o.push("".concat(Object(h.l)(I,{channelCode:h.f.getChannelCode(),classId:n}),"#reviews")),null===S||void 0===S||null===(e=S.reviews.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}),E("reviews")}},scrollablePageProps:{tabActiveState:x,isPreviewButtonVisible:N}}):Object(Z.jsx)(Z.Fragment,{})}),R]})},Ep=n(594);var Ap=Y.default.div.withConfig({displayName:"S_ButtonIconWrapper",componentId:"sc-pypsb0-0"})(["align-items:center;cursor:pointer;display:flex;left:0;position:absolute;right:0;top:12px;width:fit-content;z-index:1;"]),Dp=Y.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-pypsb0-1"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;"]),Pp=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-pypsb0-2"})(["display:flex;height:64px;justify-content:center;margin-bottom:",";"],(function(e){return e.theme.spacing.spacingD})),Np=function(e){var t=e.onClick,n=Object(M.a)("translation").t,o=Object(c.k)(),s=Object(_.e)().userEntrywayForUse,a=Object(i.d)(E
1p.a),r=h.f.getChannelCode(),l=a?154:64;return Object(Z.jsxs)(F.D_AnnotationSheet,{height:"auto",width:"auto",overrideCSS:{height:"calc(100vh - ".concat(l,"px)"),minHeight:"500px",position:"relative"},children:[Object(Z.jsx)(Ap,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_arrow_left",baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_icon_sys_grey_01",onClick:t})}),Object(Z.jsxs)(Dp,{children:[Object(Z.jsx)(Pp,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_unavailable",size:64,colorKey:"ui_cpnt_icon_sys_grey_03",fillType:"fill"})}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_4452"),styleTheme:"headingBold",colorTheme:"sysTextSecondary",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_MainButton,{text:n("str_verification_identity"),onClick:s((function(){o.push(Object(u.T)(r))}))})]})]})};var kp=Y.default.div.withConfig({displayName:"S_ButtonIconWrapper",componentId:"sc-3yvtay-0"})(["align-items:center;cursor:pointer;display:flex;left:0;position:absolute;right:0;top:12px;width:fit-content;z-index:1;"]),Rp=Y.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-3yvtay-1"})(["left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:590px;"]),Lp=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-3yvtay-2"})(["align-items:center;display:flex;flex-direction:column;height:","px;justify-content:center;"],(function(e){return e.size})),Bp=function(e){var t=e.onClick,n=Object(M.a)("translation").t,c=Object(i.d)(Ep.a),o=Object(i.d)(a.d),s=c?154:64;return Object(Z.jsxs)(F.D_AnnotationSheet,{height:"auto",width:"auto",overrideCSS:{height:"calc(100vh - ".concat(s,"px)"),minHeight:"500px",position:"relative"},children:[Object(Z.jsx)(kp,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_arrow_left",baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_icon_sys_grey_01",onClick:t})}),Object(Z.jsxs)(Rp,{children:[Object(Z.jsx)(Lp,{size:64,children:Object(Z.jsx)(F.Icon,{iconName:"ic_unavailable",size:64,colorKey:"ui_cpnt_icon_sys_grey_03",fillType:"fill"})}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_user_view_restricted_title"),styleTheme:"headingBold",colorTheme:"sysTextSecondary",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_7067",{sellerEmail:null===o||void 0===o?void 0:o.email}),styleTheme:"body2Regular",colorTheme:"sysTextSecondary",textAlign:"center"})]})]})};var Mp=Y.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-12yxe6i-0"})(["left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;"]),zp=Y.default.div.withConfig({displayName:"S_ButtonIconWrapper",componentId:"sc-12yxe6i-1"})(["align-items:center;cursor:pointer;display:flex;left:0;position:absolute;right:0;top:12px;width:fit-content;z-index:1;"]),Up=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-12yxe6i-2"})(["display:flex;height:64px;justify-content:center;margin-bottom:",";"],(function(e){return e.theme.spacing.spacingD})),Fp=function(e){var t=e.onClick,n=Object(M.a)("translation").t,c=Object(i.d)(Ep.a)?154:64;return Object(Z.jsxs)(F.D_AnnotationSheet,{height:"auto",width:"auto",overrideCSS:{height:"calc(100vh - ".concat(c,"px)"),minHeight:"500px",position:"relative"},children:[Object(Z.jsx)(zp,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_arrow_left",baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_icon_sys_grey_01",onClick:t})}),Object(Z.jsxs)(Mp,{children:[Object(Z.jsx)(Up,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_unavailable",size:64,colorKey:"ui_cpnt_icon_sys_grey_03",fillType:"fill"})}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_2774"),styleTheme:"headingBold",colorTheme:"sysTextSecondary",textAlign:"center"})]})]})};var Vp=Y.default.div.withConfig({displayName:"S_ProtectionSealCover",componentId:"sc-1fxx8bs-0"})(["flex:1;position:relative;"]),Wp=Y.default.div.withConfig({displayName:"S_LockedMessageWrapper",componentId:"sc-1fxx8bs-1"})(["align-items:center;background-color:",";display:flex;height:100%;justify-content:center;left:12px;margin:-12px 0 0 -12px;position:absolute;top:12px;width:100%;"],(function(e){return e.theme.ui_cpnt_list_timestatus_base})),Hp=Y.default.div.withConfig({displayName:"S_BackButtonBox",componentId:"sc-1fxx8bs-2"})(["align-items:center;cursor:pointer;display:flex;height:24px;justify-content:center;left:0;margin-top:",";position:absolute;top:0;"],(function(e){return e.theme.spacing.spacingC})),Gp=Y.default.div.withConfig({displayName:"S_LockIconWrapper",componentId:"sc-1fxx8bs-3"})(["height:48px;padding:",";"],(function(e){return e.theme.spacing.spacingC})),Xp=function(e){var t=e.imageSrc,n=e.lockStatus,i=e.backUrl,o=Object(M.a)("translation").t,s=Object(c.k)(),a="";switch(n){case"post_locked":case"series_locked":a=o("str_3347");break;default:a=""}
1return Object(Z.jsxs)(Vp,{children:[Object(Z.jsx)(F.ImageView,{src:t,ratio:"16_9",shapeType:"rectangle",width:"responsive",scaleType:"cover"}),Object(Z.jsx)(Wp,{children:Object(Z.jsx)(F.D_TextLabel,{text:a,styleTheme:"displayBold",colorTheme:"sysTextWhite",textAlign:"center"})}),Object(Z.jsxs)(Hp,{onClick:function(){s.push(i)},children:[Object(Z.jsx)(Gp,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_left_bold",colorKey:"ui_cpnt_icon_sys_white",size:20})}),Object(Z.jsx)(F.D_TextLabel,{text:o("str_back"),styleTheme:"body2Bold",colorTheme:"sysTextWhite"})]})]})};var qp=Y.default.div.withConfig({displayName:"S_StudentGuardCover",componentId:"sc-uxjle6-0"})(["background-color:",";height:",";position:relative;top:0;width:100%;"],(function(e){return e.theme.ui_cpnt_sheet_base_02}),(function(e){var t=e.topHeight;return"calc(100vh - ".concat(t,"px)")})),Kp=Y.default.div.withConfig({displayName:"S_HeaderWrapper",componentId:"sc-uxjle6-1"})(["cursor:pointer;display:flex;position:absolute;top:12px;width:auto;"]),Yp=Y.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-uxjle6-2"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;"]),Zp=Y.default.div.withConfig({displayName:"S_GoBackIconWrapper",componentId:"sc-uxjle6-3"})(["align-items:center;display:flex;height:48px;justify-content:center;width:48px;"]),Qp=function(e){var t=e.onClickNavigationButton,n=e.onClickEnrollButton,c=Object(M.a)("translation").t,o=Object(_.e)().userEntrywayForUse,s=Object(i.d)(Ep.a)?154:64;return Object(Z.jsxs)(qp,{topHeight:s,children:[Object(Z.jsx)(Kp,{onClick:t,children:Object(Z.jsx)(Zp,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_left",colorKey:"ui_cpnt_content_icon_01",size:24})})}),Object(Z.jsxs)(Yp,{children:[Object(Z.jsx)(F.D_TextLabel,{text:c("str_key_user_c00007_class_enroll_title"),styleTheme:"headingBold",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_MainButton,{text:c("str_key_user_c00007_class_enroll_btn"),onClick:o(n)})]})]})};var $p=Y.default.div.withConfig({displayName:"S_TitleWrapper",componentId:"sc-9rk9jy-0"})(["align-items:center;display:flex;justify-content:space-between;"]),Jp=Y.default.div.withConfig({displayName:"S_IconButtonWrapper",componentId:"sc-9rk9jy-1"})(["display:flex;justify-content:center;padding-left:",";transform:",";transition:all 0.3s;width:fit-content;"],(function(e){var t=e.theme;return"0 ".concat(t.spacing.spacingD)}),(function(e){return e.openContent?0:"rotate(180deg)"})),em=Y.default.div.withConfig({displayName:"S_ChildrenWrapper",componentId:"sc-9rk9jy-2"})(["height:auto;max-height:",";overflow:",";transition:all 0.3s;"],(function(e){return e.openContent?"auto":0}),(function(e){return e.openContent?"hidden":"auto"})),tm=function(e){var t=e.title,n=e.onRightButtonClick,i=e.children,c=e.isOpen,o=Object(b.useState)(!0),s=Object(J.a)(o,2),a=s[0],r=s[1];return Object(b.useEffect)((function(){r(c)}),[c]),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_ContentSheet,{width:"100%",height:"56px",backgroundColorTheme:"transparent",paddingTop:"none",paddingRight:"spacing_e",paddingBottom:"none",paddingLeft:"spacing_e",onClick:function(){r((function(e){return!e}))},overrideCSS:{display:"flex",justifyContent:"center",flexDirection:"column"},children:Object(Z.jsxs)($p,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,styleTheme:"leadParaBold",ellipsisMode:"use",lineLimit:1}),Object(Z.jsx)(Jp,{openContent:a,children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_up",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconColorKey:"ui_cpnt_button_icon_disabled",onClick:function(e){e.stopPropagation(),r((function(e){return!e})),n&&n()}})})]})}),Object(Z.jsx)(em,{openContent:a,children:i})]})},nm=n(3),im=n.n(nm),cm=n(34),om=n(2781),sm=n(2782),am=n.n(sm),rm=n(2768),lm=n(304);var dm=Y.default.a.withConfig({displayName:"S_HiddenLink",componentId:"sc-1rouh7o-0"})(["display:none;"]),um=function(e){var t=e.hasEnrolled,n=e.isExtensionInstalled,c=e.postId,o=e.fileTitle,s=e.uploadFileSrcs,a=e.isPreview,r=e.btnState,l=Object(M.a)("translation").t,d=Object(i.c)(),u=Object(_.e)().userEntrywayForUse,p=Object(_.a)(),m=p.openDialog,j=p.closeDialog,g=Object(rm.a)(),h=g.openDialog,f
1=g.ConfirmDialog,x=Object(b.useRef)(null);function O(e){var t=e.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/);return t?t[1]:""}function v(e){var t=e.lastIndexOf(".");return-1===t?e:e.slice(0,t)}function T(e){return y.apply(this,arguments)}function y(){return(y=Object(cm.a)(im.a.mark((function e(t){var n;return im.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==x&&void 0!==x&&x.current){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Object(lm.d)(t);case 5:n=e.sent,x.current.href=n,x.current.click(),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(2),new Error;case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))).apply(this,arguments)}function C(e){return S.apply(this,arguments)}function S(){return(S=Object(cm.a)(im.a.mark((function e(t){var n,i,c,s,a;return im.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new am.a,i="".concat(v(o),".zip"),e.prev=2,e.next=5,Object(lm.a)(t);case 5:return c=e.sent,s=c.map(function(){var e=Object(cm.a)(im.a.mark((function e(t){var i,c,o,s,a,r,l;return im.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.key,c=t.signedUrl,o=t.contentDisposition,s=O(o),e.next=4,fetch(c);case 4:return a=e.sent,e.next=7,a.blob();case 7:r=e.sent,l=s?decodeURIComponent(s):i,n.file(l,r);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(s);case 9:return e.next=11,n.generateAsync({type:"blob"});case 11:a=e.sent,Object(om.saveAs)(a,i),e.next=18;break;case 15:throw e.prev=15,e.t0=e.catch(2),new Error;case 18:case"end":return e.stop()}}),e,null,[[2,15]])})))).apply(this,arguments)}function I(){return w.apply(this,arguments)}function w(){return(w=Object(cm.a)(im.a.mark((function e(){var i;return im.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a){e.next=7;break}if(t){e.next=4;break}return m({contentText:l("str_key_user_c00007_class_enroll_dialog"),btnMode:"tbtn_amount1",tBtn1Text:l("str_confirm"),onClickTBtn1:j}),e.abrupt("return");case 4:if(n){e.next=7;break}return m({contentText:l("str_key_user_scene_sessiondetail_alert_comment_coachinguninstalled"),btnMode:"tbtn_amount1",tBtn1Text:l("str_confirm"),onClickTBtn1:j}),e.abrupt("return");case 7:return i=1===s.length,e.prev=8,e.next=11,h();case 11:if(e.sent){e.next=14;break}return e.abrupt("return");case 14:if(d(Object(X.hb)({targetModel:"POST",targetId:String(c)})),!i){e.next=19;break}return e.next=18,T(s[0]);case 18:return e.abrupt("return");case 19:return e.next=21,C(s);case 21:e.next=26;break;case 23:return e.prev=23,e.t0=e.catch(8),e.abrupt("return");case 26:case"end":return e.stop()}}),e,null,[[8,23]])})))).apply(this,arguments)}return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.D_MainButton,{text:l("str_key_user_scene_c00007sessiondetail_btn_downloadfile"),styleTheme:"secondary",colorTheme:"secondary2",size:"xsmall",state:r,iconMode:"left",iconName:"ic_download",onClick:function(){return a?I():u(I)()}}),Object(Z.jsx)(dm,{ref:x,type:"file",download:!0}),Object(Z.jsx)(f,{iconMode:"warning",titleText:l("str_2407"),contentText:l("str_2421"),btnMode:"tbtn_amount2"})]})};var pm=Object(Y.css)(["flex-basis:100%;margin-top:",";order:99;"],(function(e){return e.theme.spacing.spacingB})),mm=Y.default.div.withConfig({displayName:"S_ContentBox",componentId:"sc-1iulbbh-0"})(["flex:1;"]),bm=Y.default.div.withConfig({displayName:"S_LeftIconWrapper",componentId:"sc-1iulbbh-1"})(["padding-top:2px;"]),jm=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-1iulbbh-2"})(["align-items:center;display:flex;"]),gm=Y.default.div.withConfig({displayName:"S_BottomRow",componentId:"sc-1iulbbh-3"})(["align-items:center;display:flex;flex-wrap:wrap;padding-top:",";"],(function(e){return e.theme.spacing.spacingB})),_m=Y.default.div.withConfig({displayName:"S_DownloadFileBtnWrapper",componentId:"sc-1iulbbh-4"})(["",""],(function(e){return e.isFocusliveCoaching&&pm})),hm=Y.default.div.withConfig({displayName:"S_TopRow",componentId:"sc-1iulbbh-5"})(["align-items:center;display:flex;justify-content:space-between;"]),fm=function(e){var t,n,c,o,s,a=e.title,r=e.caption1Text,l=e.iconName,d=e.isViewCompleted,u=e.isLocked,p=e.hasEnrolled,m=e.hasFocus,b=e.hasAttachments,j=e.isPreview,g=e.isExtentionInstalled,f=e.onClick,x=Object(M.a)().t,O=Object(_.e)().userEntrywayForUse,v=Object(i.d)(G.J),T=Object(i.d)(G.m),y=h.b.isGuest(),C=T&&T.type==="".concat(X.T,"_FAILED")&&403===T.status,S=T&&T.type==="".concat(X.T,"_FAILED")&&451===T.status,I=451!==(null===T||void 0===T?void 0:T.status)&&null!==(null===v||void 0===v?void 0:v.protectionSeal.contentLock)&&
1!(null!==v&&void 0!==v&&null!==(t=v.protectionSeal.contentLock)&&void 0!==t&&t.isUnlocked);return Object(Z.jsxs)(F.D_ContentSheet,{width:"100%",height:"auto",backgroundColorTheme:m?"base3":"transparent",paddingTop:"spacing_c",paddingRight:"spacing_e",paddingBottom:"spacing_c",paddingLeft:"spacing_e",onClick:j?f:O(f,"GUEST_OPEN_WHEN_PUBLIC_OPEN"),overrideCSS:{display:"flex"},children:[Object(Z.jsx)(bm,{children:Object(Z.jsx)(F.Icon,{size:20,iconName:l})}),Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsxs)(mm,{children:[Object(Z.jsxs)(hm,{children:[Object(Z.jsx)(F.D_TextLabel,{text:a,ellipsisMode:"use",lineLimit:1,styleTheme:"body2Regular",wordBreak:"break_all"}),Object(Z.jsxs)(jm,{children:[!j&&u&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Icon,{size:16,colorKey:"ui_cpnt_icon_sys_grey_03",iconName:"ic_lock"})]}),!y&&!j&&!u&&p&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.Icon,{size:20,fillType:"fill",colorKey:d?"ui_cpnt_icon_sys_success_01":"ui_cpnt_icon_sys_grey_03",iconName:"ic_downloaded"})]})]})]}),Object(Z.jsxs)(gm,{children:[r&&Object(Z.jsx)(F.D_TextLabel,{text:r,styleTheme:"caption1Regular",colorTheme:"sysTextSecondary"}),b&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),m?Object(Z.jsx)(_m,{isFocusliveCoaching:null!==(n="LIVE_COACHING"===(null===v||void 0===v?void 0:v.type))&&void 0!==n&&n,children:Object(Z.jsx)(um,{hasEnrolled:p,isExtensionInstalled:"LIVE_COACHING"!==(null===v||void 0===v?void 0:v.type)||g,postId:null!==(c=null===v||void 0===v?void 0:v.id)&&void 0!==c?c:0,fileTitle:null!==v&&void 0!==v&&null!==(o=v.uploadFileSrcs)&&void 0!==o&&o.length?v.title:"",uploadFileSrcs:null!==v&&void 0!==v&&null!==(s=v.uploadFileSrcs)&&void 0!==s&&s.length?v.uploadFileSrcs:[],isPreview:j,btnState:C||I||S?"disabled":"normal"})}):Object(Z.jsx)(F.Icon,{iconName:"ic_clip",size:16,colorKey:"ui_cpnt_icon_sys_grey_02"})]}),j&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b",spacingType:"width"}),Object(Z.jsx)(F.D_Chip,{displayType:"information",text:x("str_papp_vod_class_preview"),overrideTextColorKey:"ui_cpnt_button_fill_base_default",overrideBackgroundColorKey:"ui_cpnt_textfield_icon_01"})]})]})]})]})};var xm=Y.default.div.withConfig({displayName:"S_DividerWrapper",componentId:"sc-1rfg43s-0"})(["padding:"," ",";"],(function(e){return e.theme.spacing.spacingB}),(function(e){return e.theme.spacing.spacingE})),Om=function(e){var t,n=e.prevPath,o=e.isExtentionInstalled,s=Object(M.a)("translation").t,a=Object(c.m)(),l=a.channelCode,d=a.classId,u=a.sessionId,p=Object(i.c)(),m=Object(c.k)(),j=Object(i.d)(G.o),g=Object(i.d)(r.d),_=Object(i.d)(G.d),f=Object(i.d)(G.k),x=Object(i.d)(G.h),O=Object(i.d)(St.g),v=Object(i.d)(G.G),T=h.b.isGuest(),y=O.some((function(e){return(null===e||void 0===e?void 0:e.id)===Number(d)})),C=0!==(null===v||void 0===v?void 0:v.length)&&(!(!T||g)||!(T&&(null===_||void 0===_||!_.hasContentGroupLock))&&!y&&!(null===_||void 0===_||!_.hasContentGroupLock));return Object(b.useEffect)((function(){p(Object(St.b)())}),[]),Object(b.useEffect)((function(){y&&j||p(Object(X.S)({seriesId:d}))}),[d,j,y]),Object(b.useEffect)((function(){var e;null===(e=document.getElementById(u))||void 0===e||e.scrollIntoView(!0)}),[u]),Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),null===f||void 0===f||null===(t=f.curriculumItems)||void 0===t?void 0:t.map((function(e){var t;return Object(Z.jsxs)(b.Fragment,{children:[Object(Z.jsx)(tm,{title:e.title,isOpen:!0,children:null===(t=e.curriculumItems)||void 0===t?void 0:t.map((function(e){var t,i,c,a,r,b,g,f,O,T,y,S,I,w,E,A,D,N=null===(t=e.post)||void 0===t?void 0:t.type,k="";"VOD"===N&&(O="ic_video_play_circle",S=(null===(T=e.post)||void 0===T||null===(y=T.vodResource)||void 0===y?void 0:y.duration)||0,k=Ir.a.duration(1e3*S).format(S>3600?"HH:mm:ss":"mm:ss"));("PLAIN"===N&&(O="ic_pages",k=s("str_6918")),"LIVE_COACHING"===N)&&(O="ic_live",k=s("str_key_user_scene_c00007classdetail_section_session_livecoaching_caption",{liveSessionStartsAt
1:me.a.tz(null===(I=e.post)||void 0===I?void 0:I.liveCoachingStartsAt).format("YYYY-MM-DD(ddd) HH:mm"),liveSessionDuration:null===(w=e.post)||void 0===w?void 0:w.liveCoachingDurationInMinutes}));return Object(Z.jsx)("div",{id:null===(c=e.post)||void 0===c?void 0:c.id.toString(),children:Object(Z.jsx)(fm,{title:(E=(null===(a=e.post)||void 0===a?void 0:a.title)||"",A=Boolean(null===(r=e.post)||void 0===r?void 0:r.isPublished),D=Boolean(null===(b=e.post)||void 0===b?void 0:b.isUserLegallyIneligible),A?D?s("str_3336"):E:s("str_2775")),iconName:O,caption1Text:k,isLocked:Boolean(null===_||void 0===_?void 0:_.hasContentGroupLock),hasEnrolled:j,isViewCompleted:Boolean(x.find((function(t){var n;return(null===t||void 0===t?void 0:t.postId)===(null===(n=e.post)||void 0===n?void 0:n.id)}))),hasFocus:(null===(g=e.post)||void 0===g?void 0:g.id)===Number(u),hasAttachments:!(null===(f=e.post)||void 0===f||!f.uploadFileSrc),isPreview:Boolean(C&&v.some((function(t){var n;return t.postId===(null===(n=e.post)||void 0===n?void 0:n.id)}))),isExtentionInstalled:o,onClick:function(){var t,i;return i=(null===(t=e.post)||void 0===t?void 0:t.id)||0,void(+u!==i&&(p(Object(X.eb)()),m.push(Object(h.l)(P,{channelCode:l,classId:d,sessionId:i},{prevPath:n}))))}})},null===(i=e.post)||void 0===i?void 0:i.id)}))}),Object(Z.jsx)(xm,{children:Object(Z.jsx)(F.Divider,{})})]},e.id)}))]})};var vm=Y.default.div.withConfig({displayName:"S_ContentTab",componentId:"sc-jhze5k-0"})(["padding:",";"],(function(e){return e.theme.spacing.spacingE})),Tm=function(e){var t=e.isPreview,n=Object(M.a)("translation").t,o=Object(c.k)(),s=Object(b.useRef)(null),r=Object(i.d)(Object(a.n)()),l=Object(i.d)(G.J),d=Object(i.d)(G.d),p=Object(i.d)(G.m),m=h.f.getChannelCode(),j=null===r||void 0===r?void 0:r.isGlobal,g=Object(_.e)().userEntrywayForUse;if(Object(b.useEffect)((function(){var e;null===(e=s.current)||void 0===e||e.scrollIntoView(!0)}),[]),null!==p&&void 0!==p&&p.code)switch(p.status){case 403:return Object(Z.jsxs)(vm,{ref:s,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_i"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_2774"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"})]});case 451:return Object(Z.jsxs)(vm,{ref:s,children:[Object(Z.jsx)(F.D_TextLabel,{text:n("str_3336"),styleTheme:"body1Bold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:n(j?"str_4504":"str_err_3445"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),!j&&Object(Z.jsx)(F.D_MainButton,{text:n("str_verification_identity"),styleTheme:"secondary",onClick:g((function(){o.push(Object(u.T)(m))}))})]});default:return Object(Z.jsx)(Z.Fragment,{})}return Object(Z.jsxs)(vm,{ref:s,children:[Object(Z.jsx)(F.D_TextLabel,{text:null===l||void 0===l?void 0:l.title,styleTheme:"subTitleBold",colorTheme:"sysTextPrimary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),null!==d&&void 0!==d&&d.hasContentGroupLock&&!t?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_3432"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary",textAlign:"center"})]}):Object(Z.jsx)(Z.Fragment,{children:"VOD"===(null===l||void 0===l?void 0:l.type)&&(null===l||void 0===l?void 0:l.content)&&Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),Object(Z.jsx)(F.D_TextLabel,{text:null===l||void 0===l?void 0:l.content,styleTheme:"body2Regular",colorTheme:"sysTextPrimary"})]})})]})},ym=n(2758),Cm=n(406);function Sm(e){var t=e.targetRef,n=e.isPopUpOpen,i=e.onMenuItemClick,c=e.menuItems,o=e.onClick,s=e.onClickOutside;return Object(Z.jsx)(g.D,{targetRef:t,placement:"bottom-end",isOpen:n,onClick:o,onClickOutside:s,children:Object(Z.jsx)(F.D_ContextMenu,{children:null===c||void 0===c?void 0:c.map((function(e){return Object(Z.jsx)(F.D_ContextMenuItem,{option:e,onClick:function(e){i(e)}},e.value)}))})})}var Im=j.a.forwardRef((function(e,t){var n=e.avatarUrl,i=e.nickname,c=e.createdAt,o=e.content,s=e.contentDisplayType,a=e.nicknameBadgeMode,r=e.commentMenuItems,l=e.pinned,d=e.onMenuItemClick,u=Object(M.a)("translation").t,p=Object(b.useState)(!1),m=Object(J.a)(p,2),j=m[0],_=m[1],h=Object(b.useRef)(null);
1return Object(b.useEffect)((function(){function e(){_(!1)}return j&&window.addEventListener("wheel",e),function(){window.removeEventListener("wheel",e)}}),[j]),Object(Z.jsxs)(g.E,{children:[Object(Z.jsxs)(wm,{ref:t,children:[Object(Z.jsx)(F.ImageView,{src:"block"===s?W.A:n,shapeType:"circular",width:40,height:40,borderMode:"use",scaleType:"cover"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c",spacingType:"width"}),Object(Z.jsxs)(Em,{children:[Object(Z.jsxs)(Am,{children:[Object(Z.jsxs)("div",{children:[l&&Object(Z.jsxs)(Pm,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_pin",size:12,colorKey:"ui_cpnt_icon_sys_grey_02"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)(F.D_TextLabel,{text:u("str_pinned_comment"),styleTheme:"caption2Regular",colorTheme:"sysTextSecondary"})]}),Object(Z.jsxs)(Dm,{hasBadge:"use"===a,children:[Object(Z.jsx)(F.D_TextLabel,{text:i,styleTheme:"caption1Regular",colorTheme:"block"===s?"sysTextSecondary":"sysTextPrimary",wordBreak:"break_all",ellipsisMode:"use",lineLimit:1}),"use"===a&&Object(Z.jsx)(Z.Fragment,{children:Object(Z.jsx)(F.Icon,{size:16,colorKey:"ui_cpnt_icon_usr_brandprimary",fillType:"fill",iconName:"ic_verified"})}),Object(Z.jsx)(F.D_TextLabel,{text:c,styleTheme:"caption1Regular",colorTheme:"sysTextTertiary"})]})]}),Object(Z.jsx)("div",{ref:h,children:Object(Z.jsx)(F.D_IconButton,{baseSize:"medium",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconName:"ic_more",iconColorKey:"ui_cpnt_icon_sys_grey_02",onClick:function(){return _((function(e){return!e}))}})})]}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_ContentSheet,{width:"100%",height:"auto",paddingLeft:"spacing_c",paddingRight:"spacing_c",paddingTop:"spacing_b",paddingBottom:"spacing_b",shapeType:"round",radius:8,backgroundColorTheme:"base2",overrideCSS:"normal"===s?void 0:{paddingTop:"9px",paddingBottom:"9px"},children:Object(Z.jsx)(F.D_TextLabel,{text:"block"===s?u("str_6516"):"hidden"===s?u("str_6513"):o,styleTheme:"normal"===s?"body2Regular":"caption1Regular",colorTheme:"normal"===s?"sysTextPrimary":"sysTextTertiary",textAlign:"normal"===s?"left":"center",wordBreak:"break_all"})})]})]}
1),Object(Z.jsx)(Sm,{targetRef:h,menuItems:r,isPopUpOpen:j,onClickOutside:function(){return _(!1)},onClick:function(){return _(!1)},onMenuItemClick:function(e){return d(e)}}),Object(Z.jsx)(F.Spacing,{size:"spacing_e"})]})})),wm=Y.default.div.withConfig({displayName:"S_Comment",componentId:"sc-13ffh3h-0"})(["display:flex;text-align:left;"]),Em=Y.default.div.withConfig({displayName:"S_CommentColumn",componentId:"sc-13ffh3h-1"})(["height:100%;position:relative;width:100%;"]),Am=Y.default.div.withConfig({displayName:"S_InfoContents",componentId:"sc-13ffh3h-2"})(["align-items:center;display:flex;height:100%;justify-content:space-between;position:relative;"]),Dm=Y.default.div.withConfig({displayName:"S_InfoBox",componentId:"sc-13ffh3h-3"})(["align-items:center;display:grid;grid-column-gap:",";grid-template-columns:",";position:relative;"],(function(e){return e.theme.spacing.spacingA}),(function(e){return e.hasBadge?"auto max-content max-content":"auto max-content"})),Pm=Y.default.div.withConfig({displayName:"S_PinnedInfo",componentId:"sc-13ffh3h-4"})(["align-items:center;display:flex;"]);Im.displayName="CommentListItem";var Nm=Im;var km=function(e){var t=e.comments,n=e.lastCommentRef,c=e.usePin,o=e.useTopBottomSpacing,s=e.openCommentAlertDialog,r=Object(M.a)("translation").t,l=Object(i.d)(Xe.b),d=Object(i.d)(a.d),u=Object(i.d)(sr.a),p=Object(i.d)(He.b),m=Object(i.d)(Ge.c),b=Object(We.a)().openReportContentModal,j=Object(_.a)(),f=j.openDialog,x=j.closeDialog,O=function(e,t,n){return h.b.isGuest()?W.n:e?W.p:t?W.o:n?W.m:W.q};return Object(Z.jsx)(g.f,{useTopBottomSpacing:o,children:t.map((function(e,i){var o,a=Boolean(p[e.profileDistinctId]),j=Boolean(m[e.id]),g=e.profileId===l.id,_=e.profileDistinctId===(null===d||void 0===d?void 0:d.channelProfile.distinctId),h=null===u||void 0===u?void 0:u.find((function(t){return t.distinctId===e.profileDistinctId})),v=_||h;return Object(Z.jsx)(Nm,{avatarUrl:e.authorThumbnailSrc,nickname:a?(o=e.profileDistinctId,"*".repeat(3)+o.split("-")[1]):e.author,nicknameBadgeMode:v?"use":"none",createdAt:"\xb7 ".concat(me.a.tz(e.insertedAt).fromNow()),contentDisplayType:a?"block":j?"hidden":"normal",content:e.content,commentMenuItems:O(g,a,j),onMenuItemClick:function(t){var n;return function(e,t,n,i,c,o){switch(e){case"REPORT":if(o){f({contentText:r("str_6535"),btnMode:"tbtn_amount1",tBtn1Text:r("str_ok"),onClickTBtn1:x});break}b(n,W.Y.C00001.CODE);break;case"HIDE_COMMENT":if(o){f({contentText:r("str_6536"),btnMode:"tbtn_amount1",tBtn1Text:r("str_ok"),onClickTBtn1:x});break}s(t,"HIDE_COMMENT",i,c);break;case"BLOCK_USER":if(o){f({contentText:r("str_6537"),btnMode:"tbtn_amount1",tBtn1Text:r("str_ok"),onClickTBtn1:x});break}s(t,"BLOCK_USER",i,c);break;case"DELETE":case"UNHIDE_COMMENT":case"UNBLOCK_USER":s(t,e,i,c)}}(t.value,e.id,e.content,e.author,null!==(n=e.profileDistinctId)&&void 0!==n?n:"",_||Boolean(h))},ref:i!==t.length-1||c?null:n,pinned:c&&e.pinned},e.id)}))})};var Rm=Y.default.div.withConfig({displayName:"S_ContentTab",componentId:"sc-nz5uir-0"})(["padding:",";"],(function(e){return e.theme.spacing.spacingE})),Lm=function(e){var t=e.hasEnrolled,n=e.isExtentionInstalled,o=Object(c.k)(),s=Object(c.m)().sessionId,r=Object(M.a)("translation").t,l=Object(i.c)(),d=Object(i.d)(G.K),p=Object(i.d)(G.L),m=Object(i.d)(G.M),j=Object(i.d)(Object(a.n)()),f=Object(i.d)(G.y),x=Object(i.d)(G.m),O=Object(i.d)(G.J),v=h.f.getChannelCode(),T=null===j||void 0===j?void 0:j.isGlobal,y=Object(_.e)().userEntrywayForUse,C=Object(ym.a)({isLoading:f,comments:d,totalCommentsCount:p.total,deps:[s],handleDeleteComment:function(e){l(Object(X.m)({postId:Number(s),commentId:e}))},handleCreateComment:function(e){if(!t)return void R({contentText:r("str_key_user_c00007_class_enroll_dialog"),btnMode:"tbtn_amount1",tBtn1Text:r("str_confirm"),onClickTBtn1:L});if("LIVE_COACHING"===(null===O||void 0===O?void 0:O.type)&&!n)return void R({contentText:r("str_key_user_scene_sessiondetail_alert_comment_coachinguninstalled"),btnMode:"tbtn_amount1",tBtn1Text:r("str_confirm"),onClickTBtn1:L});l(Object(X.i)({postId:Number(s),content:e}))},fetchCommentsByPage:function(e){l(Object(X.U)({postId:Number(s),pagination:{page:e,limit:W.r,order:"ASC"},pinned:!1}
1))}}),S=C.lastCommentRef,I=C.handleClickSubmitComment,w=C.CommentAlertDialog,E=C.openCommentAlertDialog,A=C.handleClickConfirmCommentAlertDialog,D=C.handleClickCancelCommentAlertDialog,P=C.initPage,N=Object(We.a)().ReportContent,k=Object(_.a)(),R=k.openDialog,L=k.closeDialog,B=Object(b.useRef)(null);if(Object(b.useEffect)((function(){var e;null===(e=B.current)||void 0===e||e.scrollIntoView(!0)}),[]),Object(b.useEffect)((function(){function e(){if(!Cm.a.isFullscreenElement())return P(),void l(Object(X.U)({postId:Number(s),pagination:{page:p.page,limit:W.r,order:"ASC"},pinned:!1}));Cm.a.isFullscreenElement()&&P()}return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),function(){l(Object(X.fb)()),document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e)}}),[]),Object(b.useEffect)((function(){l(Object(X.X)({postId:Number(s),pagination:{order:"ASC"}}))}),[]),null!==x&&void 0!==x&&x.code)switch(x.status){case 403:return Object(Z.jsxs)(Rm,{ref:B,children:[Object(Z.jsx)(F.Spacing,{size:"spacing_i"}),Object(Z.jsx)(F.D_TextLabel,{text:r("str_2774"),textAlign:"center",styleTheme:"body2Regular",colorTheme:"sysTextSecondary"})]});case 451:return Object(Z.jsxs)(Rm,{ref:B,children:[Object(Z.jsx)(F.D_TextLabel,{text:r("str_3336"),styleTheme:"body1Bold"}),Object(Z.jsx)(F.Spacing,{size:"spacing_c"}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:r(T?"str_4504":"str_err_3445"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),!T&&Object(Z.jsx)(F.D_MainButton,{text:r("str_verification_identity"),styleTheme:"secondary",onClick:y((function(){return o.push(Object(u.W)(v))}))})]});default:return Object(Z.jsx)(Z.Fragment,{})}return Object(Z.jsxs)("div",{ref:B,children:[Object(Z.jsx)(g.b,{count:p.total}),Object(Z.jsx)(g.c,{handleAddComment:I,isUserEntryway:!0}
1),Object(Z.jsx)(F.Spacing,{size:"spacing_e"}),d.length>0||m.length>0?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(km,{usePin:!0,useTopBottomSpacing:!1,comments:m,lastCommentRef:S,openCommentAlertDialog:E}),Object(Z.jsx)(km,{useTopBottomSpacing:!1,comments:d,lastCommentRef:S,openCommentAlertDialog:E})]}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_g"}),Object(Z.jsx)(F.D_TextLabel,{text:r("str_2172"),styleTheme:"body2Regular",colorTheme:"sysTextTertiary",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_i"})]}),Object(Z.jsx)(w,{onClickConfirm:A,onClickCancel:D}),N]})};var Bm=Y.default.div.withConfig({displayName:"S_SubTabContainer",componentId:"sc-paw2be-0"})(["display:flex;flex-direction:column;height:100%;"]),Mm=Y.default.div.withConfig({displayName:"S_OverlayTabBar",componentId:"sc-paw2be-1"})(["border-bottom:1px solid ",";box-sizing:border-box;display:flex;height:48px;justify-content:space-evenly;"],(function(e){return e.theme.ui_cpnt_divider})),zm=Y.default.div.withConfig({displayName:"S_TabWrapper",componentId:"sc-paw2be-2"})(["align-items:center;cursor:pointer;display:flex;flex:1;justify-content:center;position:relative;&::after{background-color:",";bottom:-1px;content:'';height:2px;position:absolute;width:100%;",";}"],(function(e){return e.theme.ui_cpnt_tabbar_border_active_indicator_primary}),(function(e){return!e.isActive&&"display: none;"})),Um=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-paw2be-3"})(["flex:1;overflow-y:auto;"]),Fm=function(e){var t,n=e.prevPath,c=e.isPreview,o=Object(M.a)("translation").t,s=Object(i.d)(r.c),a=Object(i.d)(G.o),l=null===s||void 0===s?void 0:s.availableExtensions.some((function(e){return"Z00004"===e})),d=null===s||void 0===s?void 0:s.config,u=!(null!==d&&void 0!==d&&d[f.g.UX_VODS_HIDE_COMMENT]),p=Object(b.useState)(f.k.PLAYLISTS),m=Object(J.a)(p,2),j=m[0],g=m[1],_=Object(b.useMemo)((function(){var e=[{title:o("str_p_app_c00007sessiondetail_curriculum"),id:f.k.PLAYLISTS},{title:o("str_p_app_c00007sessiondetail_overview"),id:f.k.CONTENT}],t=u?[{title:o("str_p_app_c00007sessiondetail_comment"),id:f.k.COMMENTS}]:[];return[].concat(e,t)}),[u]);switch(j){case f.k.CONTENT:t=Object(Z.jsx)(Tm,{isPreview:c});break;case f.k.PLAYLISTS:t=Object(Z.jsx)(Om,{prevPath:n,isExtentionInstalled:l});break;case f.k.COMMENTS:t=Object(Z.jsx)(Lm,{hasEnrolled:a,isExtentionInstalled:l})}return Object(Z.jsxs)(Bm,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(Mm,{children:_.map((function(e){return Object(Z.jsx)(zm,{isActive:j===e.id,onClick:function(){return t=e.id,void g(t);var t},children:Object(Z.jsx)(F.D_TextLabel,{text:e.title,styleTheme:j===e.id?"body2Bold":"body2Regular",colorTheme:j===e.id?"usrTextBrandPrimary":"sysTextSecondary",singleLineMode:"use"})},e.id)}))}),Object(Z.jsxs)(Um,{children:[t,Object(Z.jsx)(F.Spacing,{size:"spacing_i"})]})]})};var Vm=Y.default.div.withConfig({displayName:"S_ContainerWrapper",componentId:"sc-29rpgo-0"})(["height:100%;width:100%;[x-pds-name='ContentsContainer']{border-top:1px solid ",";}"],(function(e){return e.theme.ui_cpnt_divider})),Wm=function(e){var t=e.isLoading,n=e.leftContent,i=e.prevPath,c=e.isPreview;return Object(Z.jsx)(Vm,{children:Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTJ_1",isLoadingContainer1:t,isLoadingContainer2:t,content1:Object(Z.jsx)(Z.Fragment,{children:n}),content2:Object(Z.jsx)(Fm,{prevPath:i,isPreview:c})})})},Hm=n(364);var Gm=Y.default.div.withConfig({displayName:"S_ExtensionAnnotationCover",componentId:"sc-1vjyvvl-0"})(["background-color:",";height:",";position:relative;top:0;width:100%;"],(function(e){return e.theme.ui_cpnt_sheet_base_02}),(function(e){var t=e.topHeight;return"calc(100vh - ".concat(t,"px)")})),Xm=Y.default.div.withConfig({displayName:"S_HeaderWrapper",componentId:"sc-1vjyvvl-1"})(["cursor:pointer;display:flex;position:absolute;top:12px;width:auto;"]),qm=Y.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-1vjyvvl-2"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;"]),Km=Y.default.div.withConfig({displayName:"S_GoBackIconWrapper",componentId:"sc-1vjyvvl-3"})(["align-items:center;display:flex;height:48px;justify-content:center;width:48px;"]),Ym=function(e){var t=e.onClick,n=Object(M.a)("translation").t,c=Object(i.d)(E
1p.a)?154:64;return Object(Z.jsxs)(Gm,{topHeight:c,children:[Object(Z.jsx)(Xm,{onClick:t,children:Object(Z.jsx)(Km,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_left",colorKey:"ui_cpnt_content_icon_01",size:24})})}),Object(Z.jsxs)(qm,{children:[Object(Z.jsx)(F.Icon,{iconName:"ic_unavailable",size:64,colorKey:"ui_temp_grey_03"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:n("str_key_user_c00007_session_notinstalled_title"),styleTheme:"headingBold",colorTheme:"sysTextTertiary",textAlign:"center"})]})]})},Zm=n(155),Qm="init",$m="start",Jm="beginning",eb="pause",tb="restart",nb="end";var ib=function(e){var t,n=e.vid,c=e.seriesId,o=e.episodeId,s=e.postId,a=e.durationTime,r=void 0===a?0:a,l=e.isSampleData,d=Object(i.c)(),u=Object(b.useRef)(!0),p=function(e,t){if(!c||o){var i=document.querySelector("video");if("beginning"!==t||i){var a=function(e){var t,n=Object(Zm.a)(e),i=null===n||void 0===n?void 0:n.qualityLevels(),c=null===(t=i[i.selectedIndex])||void 0===t?void 0:t.id,o=null===c||void 0===c?void 0:c.slice(2,6),s=null!==o&&void 0!==o&&o.includes("/")?null===o||void 0===o?void 0:o.slice(0,3):o;return s?Number(s):void 0}(e);d(Object(X.h)({vid:l?"SAMPLE":n,seriesId:c,episodeId:o,postId:s,rotationTime:10,durationTime:r,quality:a,currentTime:e.currentTime,type:t})),console.info({type:t,postId:s,seriesId:c,episodeId:o,quality:a,currentTime:e.currentTime})}}},m=function(e){var n=e.target;n&&(p(n,u.current?$m:tb),u.current=!1,t&&clearInterval(t),t=setInterval((function(){return p(n,Jm)}),1e4))},j=function(e){var n=e.target;if(n){clearInterval(t);var i=Number(n.currentTime)===Number(n.duration);p(n,i?nb:eb)}};Object(b.useEffect)((function(){var e=document.documentElement.querySelector("video");return e&&(p(e,Qm),function(e){e.addEventListener("play",m),e.addEventListener("pause",j)}(e)),function(){e&&(e.paused||p(e,eb),function(e){e.removeEventListener("play",m),e.removeEventListener("pause",j),clearInterval(t)}(e),u.current=!0)}}),[])};var cb=Y.default.div.withConfig({displayName:"S_LiveCoachingSession",componentId:"sc-1nhug84-0"})(["height:",";position:relative;top:0;width:100%;"],(function(e){var t=e.topHeight;return"calc(100vh - ".concat(t,"px)")})),ob=Y.default.div.withConfig({displayName:"S_HeaderWrapper",componentId:"sc-1nhug84-1"})(["cursor:pointer;display:flex;position:absolute;top:12px;width:auto;"]),sb=Y.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-1nhug84-2"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;"]),ab=Y.default.div.withConfig({displayName:"S_GoBackIconWrapper",componentId:"sc-1nhug84-3"})(["align-items:center;display:flex;height:48px;justify-content:center;width:48px;"]),rb=function(e){var t=e.title,n=e.linkSrc,o=e.startsAt,s=e.duration,a=e.onClick,l=e.isPreview,d=Object(M.a)("translation").t,u=Object(c.m)(),p=u.classId,m=u.sessionId,j=Object(i.d)(Ep.a),g=Object(i.d)(r.c),h=Object(_.e)().userEntrywayForUse,f=Object(b.useState)({hours:0,minutes:0,seconds:0}),x=Object(J.a)(f,2),O=x[0],v=x[1],T=me.a.tz(o).add(s,"minutes"),y=me.a.tz(),C=0===O.hours&&O.minutes>=10||O.hours>0,S=0===O.minutes&&0===O.seconds,I=me.a.tz(T).difference(y.format())<=0,w=g&&(null===g||void 0===g?void 0:g.availableExtensions.some((function(e){return"Z00004"===e}))),E=j?154:64;function A(){var e=me.a.tz(o),t=me.a.tz().format(),n=e.difference(t,"hours"),i=e.difference(t,"minute")%60,c=e.difference(t,"second")%60;n<0||i<0||c<0||v({hours:n,minutes:i,seconds:c})}return function(e){var t,n=e.classId,c=e.sessionId,o=e.isExtensionInstalled,s=e.isPreview,a=Object(i.c)(),r=Object(i.d)(G.k),l=null===r||void 0===r?void 0:r.curriculumItems.find((function(e){var t;return null===(t=e.curriculumItems)||void 0===t?void 0:t.find((function(e){var t;return(null===(t=e.post)||void 0===t?void 0:t.id)===Number(c)}))})),d=null===r||void 0===r?void 0:r.curriculumItems.find((function(e){return e.id===(null===l||void 0===l?void 0:l.nextId)})),u=null===l||void 0===l||null===(t=l.curriculumItems)||void 0===t?void 0:t.find((function(e){var t;return(null===(t=e.post)||void 0===t?void 0:t.id)===Number(c)})),p=function(e,t){var n,i;return e?null===l||void 0===l||null===(n=l.curriculumItems)||void 0===n?void 0:n.find((function(t){return t.id===e})):t?null===d||void 0===d||null===(i=d.curriculumItems)||void 0===i?void 0:i[0]:void 0}(null===u||void 0===u?void 0:u.nextId,null===l||void 0===l?void 0:l.nextId);ib({seriesId:Number(n),episodeId:null===u||void 0===u?void 0:u.id,postId:Number(c)}),Object(b.useEffect)((function(){r&&o&&!s&&a(Object(X.gb)({seriesId:n,episodeId:c,playtime:1,suggestedTargetId:null!==p&&void 0!==p&&p.post?String(p.post.id):""}))}),[r,o,s]),Object(b.useEffect)((function(){o&&!s&&a(Object(X.g)({series_id:n,post_id:c,successCallback:function(){a(Object(X.H)({seriesId:n}))}}))}),[n,c,o,s])}({classId:p,sessionId:m,isExtensionInstalled:w,isPreview:l}),Object(b.useEffect)((function(){w&&A()}),[]),Object(Hm.a)((function(){w&&A()}),1e3),w?Object(Z.jsxs)(cb,{topHeight:E,children:[Object(Z.jsx)(ob,{onClick:a,children:Object(Z.jsx)(ab,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_arrow_left",colorKey:"ui_cpnt_content_icon_01",size:24})})}),Object(Z.jsxs)(sb,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,styleTheme:"subTitleBold",colorTheme:"usrTextBrandPrimary",textAlign:"center"}),Object(Z.jsx)(F.Spacing,{size:"spacing_b"}),Object(Z.jsx)(F.D_TextLabel,{text:C?d("str_key_user_c00007sessiondetail_livecoaching_scheduled"):I?d("str_key_user_c00007sessiondetail_livecoaching_end"):S?d("str_key_user_c00007sessiondetail_livecoaching_start"):d("str_key_user_c00007sessiondetail_livecoaching_countdown",{minutes:O.minutes,seconds:O.seconds}),styleTheme:"displayBold",textAlign:"center"}),C?Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_b"}
1),Object(Z.jsx)(F.D_TextLabel,{text:me.a.tz(o).format("YYYY-MM-DD(ddd) HH:mm"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"})]}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.D_MainButton,{text:d("str_key_user_c00007sessiondetail_livecoaching_btn_gotolive"),state:I?"disabled":"normal",onClick:h((function(){return window.open(n)}))})]})]})]}):Object(Z.jsx)(Ym,{onClick:a})},lb=n(2769);var db=Y.default.div.withConfig({displayName:"S_ViewerLayoutWrapper",componentId:"sc-bz8db0-0"})(["margin:0 auto;max-width:880px;padding-bottom:",";padding-left:",";padding-right:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingJ}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingG}),(function(e){return e.theme.spacing.spacingF})),ub=Y.default.div.withConfig({displayName:"S_NavigationWrapper",componentId:"sc-bz8db0-1"})(["align-items:center;cursor:pointer;display:flex;height:32px;margin-bottom:",";padding-left:0;padding-right:",";"],(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingA})),pb=Y.default.div.withConfig({displayName:"S_Content",componentId:"sc-bz8db0-2"})([""," ",";"],kl.a,(function(e){return e.isPostProtection&&lb.a})),mb=function(e){var t,n,o=e.session,s=e.backUrl,a=e.isPreview,l=Object(M.a)("translation").t,d=Object(i.c)(),u=Object(c.k)(),p=Object(c.m)(),m=p.classId,j=p.sessionId,g=Object(i.d)(r.c),_=Object(i.d)(G.k),h=null===g||void 0===g?void 0:g.config,x=null!==(t=null===h||void 0===h?void 0:h[f.g.UX_VODS_USE_SESSION_PROTECTION])&&void 0!==t&&t,O=null===_||void 0===_?void 0:_.curriculumItems.find((function(e){var t;return null===(t=e.curriculumItems)||void 0===t?void 0:t.find((function(e){var t;return(null===(t=e.post)||void 0===t?void 0:t.id)===Number(j)}))})),v=null===_||void 0===_?void 0:_.curriculumItems.find((function(e){return e.id===(null===O||void 0===O?void 0:O.nextId)})),T=null===O||void 0===O||null===(n=O.curriculumItems)||void 0===n?void 0:n.find((function(e){var t;return(null===(t=e.post)||void 0===t?void 0:t.id)===Number(j)})),y=function(e,t){var n,i;return e?null===O||void 0===O||null===(n=O.curriculumItems)||void 0===n?void 0:n.find((function(t){return t.id===e})):t?null===v||void 0===v||null===(i=v.curriculumItems)||void 0===i?void 0:i[0]:void 0}(null===T||void 0===T?void 0:T.nextId,null===O||void 0===O?void 0:O.nextId);return ib({seriesId:Number(m),episodeId:null===T||void 0===T?void 0:T.id,postId:null===o||void 0===o?void 0:o.id}),Object(b.useEffect)((function(){_&&!a&&d(Object(X.gb)({seriesId:m,episodeId:j,playtime:1,suggestedTargetId:null!==y&&void 0!==y&&y.post?String(y.post.id):""}))}),[_,a]),Object(b.useEffect)((function(){a||d(Object(X.g)({series_id:m,post_id:j,successCallback:function(){d(Object(X.H)({seriesId:m}))}}))}),[m,j,a]),Object(b.useEffect)((function(){if(x){var e=function(e){e.preventDefault()};return addEventListener("contextmenu",e),function(){removeEventListener("contextmenu",e)}}}),[x]),Object(Z.jsxs)(db,{children:[Object(Z.jsxs)(ub,{children:[Object(Z.jsx)(F.D_IconButton,{iconSize:20,iconName:"ic_arrow_left_bold",iconColorKey:"ui_cpnt_icon_sys_grey_01",baseColorKey:"ui_cpnt_button_fill_base_transparent",onClick:function(){s?u.push(s):u.goBack()}}),Object(Z.jsx)(F.Spacing,{size:"spacing_a",spacingType:"width"}),Object(Z.jsx)("div",{onClick:function(){s?u.push(s):u.goBack()},children:Object(Z.jsx)(F.D_TextLabel,{text:l("str_back"),singleLineMode:"use"})})]}),Object(Z.jsx)(F.D_TextLabel,{text:null===o||void 0===o?void 0:o.title,styleTheme:"headingBold",wordBreak:"normal"}),Object(Z.jsx)(F.Spacing,{size:"spacing_d"}),Object(Z.jsx)(F.D_TextLabel,{text:null===o||void 0===o?void 0:o.introduction,styleTheme:"body2Bold",wordBreak:"normal"}),Object(Z.jsx)(F.Spacing,{size:"spacing_f"}),Object(Z.jsx)(F.Divider,{}),Object(Z.jsx)(pb,{isPostProtection:x,dangerouslySetInnerHTML:{__html:(null===o||void 0===o?void 0:o.content)||""}})]})};var bb=Y.default.div.withConfig({displayName:"S_ContentSheet",componentId:"sc-1aok6yx-0"})(["background-color:",";bottom:88px;cursor:pointer;display:flex;height:90px;position:",";right:",";width:auto;z-index:15;"],(function(e){return e.theme.ui_51}),(function(e){return e.isFullscreen?"fixed":"absolute"}),(function(e){return e.isFullscreen?"96px":"24px"})),jb=Y.default.div.withConfig({displayName:"S_ContentWrapper",componentId:"sc-1aok6yx-1"})(["display:flex;flex-direction:column;padding-left:",";padding-right:",";position:relative;width:206px;"],(function(e){return e.theme.spacing.spacingD}),(function(e){return e.theme.spacing.spacingB})),gb=Y.default.div.withConfig({displayName:"S_IconWrapper",componentId:"sc-1aok6yx-2"})(["height:32px;position:absolute;right:0;top:0;width:32px;"]),_b=Y.default.div.withConfig({displayName:"S_RestrictionImageView",componentId:"sc-1aok6yx-3"})(["position:relative;"]),hb=Y.default.div.withConfig({displayName:"S_RestrictionIconWrapper",componentId:"sc-1aok6yx-4"})(["align-items:center;display:flex;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"]),fb=function(e){var t,n,o=e.seriesId,s=e.nextEpisode,a=e.isFullscreen,r=e.onClickClose,l=Object(M.a)("translation").t,d=Object(c.k)(),u=h.f.getChannelCode(),p=Object(i.d)(G.d);return Object(Z.jsxs)(bb,{isFullscreen:a,onClick:function(){var e,t;t=String(null===s||void 0===s||null===(e=s.post)||void 0===e?void 0:e.id),d.push(Object(h.l)(P,{channelCode:u,classId:o,sessionId:t}))},children:[null===s||void 0===s||!s.post||null!==s&&void 0!==s&&s.post.isUserLegallyIneligible||!s.post.isPublished?Object(Z.jsxs)(_b,{children:[Object(Z.jsx)(F.ImageView,{shapeType:"rectangle",width:160,ratio:"16_9",backgroundFillMode:"use"}),Object(Z.jsx)(hb,{children:Object(Z.jsx)(F.Icon,{iconName:"ic_unavailable",size:48,colorKey:"ui_temp_grey_03"})})]}):Object(Z.jsx)(F.ImageView,{src:(null===s||void 0===s||null===(t=s.post)||void 0===t||null===(n=t.vodResource)||void 0===n?void 0:n.thumbnailSrc)||(null===p||void 0===p?void 0:p.coverImageSrc),scaleType:"cover",shapeType:"rectangle",width:160,ratio:"16_9",backgroundFillMode:"use"}),Object(Z.jsxs)(jb,{children:[Object(Z.jsx)(F.Spacing,{size:"spacing_c"}
1),Object(Z.jsx)(F.D_TextLabel,{text:l("str_2967"),styleTheme:"caption1Bold",colorTheme:"sysTextTertiary"}),Object(Z.jsx)(F.Spacing,{size:"spacing_a"}),Object(Z.jsx)(F.D_TextLabel,{text:null!==s&&void 0!==s&&s.post?s.post.isUserLegallyIneligible?l("str_err_1114"):s.post.isPublished?s.post.title:l("papp_vodp_episode_private","\ube44\uacf5\uac1c \ucf58\ud150\uce20"):"",ellipsisMode:"use",lineLimit:2,styleTheme:"body2Bold",colorTheme:"sysTextWhite"}),Object(Z.jsx)(gb,{children:Object(Z.jsx)(F.D_IconButton,{iconName:"ic_xmark",iconColorKey:"ui_cpnt_icon_sys_white",baseSize:"small",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconSize:16,onClick:r})})]})]})};var xb=Y.default.div.withConfig({displayName:"S_OverlayLayout",componentId:"sc-qf8s49-0"})(["background-color:",";bottom:0;height:100%;position:fixed;right:0;top:0;width:448px;z-index:100;"],(function(e){return e.theme.ui_cpnt_overlay_base})),Ob=Y.default.div.withConfig({displayName:"S_Header",componentId:"sc-qf8s49-1"})(["align-items:center;display:flex;justify-content:space-between;padding-bottom:",";padding-left:",";padding-right:",";padding-top:",";"],(function(e){return e.theme.spacing.spacingC}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingE}),(function(e){return e.theme.spacing.spacingC})),vb=function(e){var t=e.title,n=e.onClose,i=e.children;return Object(Z.jsxs)(xb,{children:[Object(Z.jsxs)(Ob,{children:[Object(Z.jsx)(F.D_TextLabel,{text:t,colorTheme:"sysTextPrimary",styleTheme:"headingBold"}),Object(Z.jsx)(F.D_IconButton,{baseSize:"large",baseColorKey:"ui_cpnt_button_fill_base_transparent",iconFillType:"fill",iconName:"ic_xmark",iconColorKey:"ui_cpnt_button_icon_default",onClick:n})]}),i]})};var Tb=Y.default.div.withConfig({displayName:"S_Player",componentId:"sc-1ygk0fm-0"})(["position:relative;"]),yb=Y.default.div.withConfig({displayName:"S_PlayerWrapper",componentId:"sc-1ygk0fm-1"})(["height:",";width:100%;z-index:1;"],(function(e){var t=e.playerHeight;return"calc(100vh - ".concat(t,"px)")})),Cb=function(e){var t,n,o=e.session,s=e.videoSrc,r=e.backUrl,l=e.postTitle,d=e.playtime,u=e.duration,p=e.prevPath,m=e.nextSession,j=e.hasNext,_=e.episodeId,f=e.isCurrentChapterEmpty,x=e.nextChapterCurriculumnItemCounts,O=e.isPreview,v=Object(M.a)("translation").t,T=Object(i.c)(),y=Object(c.k)(),C=Object(c.m)(),S=C.classId,I=C.sessionId,w=Object(i.d)(a.c),E=Object(i.d)(Ep.a),A=Object(i.d)(G.P),D=Object(b.useState)(Cm.a.isFullscreenElement()),P=Object(J.a)(D,2),N=P[0],k=P[1],R=Object(b.useState)(!1),L=Object(J.a)(R,2),B=L[0],z=L[1],U=Object(b.useState)(!1),F=Object(J.a)(U,2),V=F[0],W=F[1],H=Object(b.useState)(!1),q=Object(J.a)(H,2),K=q[0],Y=q[1],Q=Object(b.useRef)(!1),$=E?154:64,ee=!(K||!V||!j),te=!(null===o||void 0===o||null===(t=o.vodResource)||void 0===t||!t.isSampleData),ne=h.b.isGuest();function ie(){z((function(e){return!e}))}return ib({vid:null===o||void 0===o||null===(n=o.vodResource)||void 0===n?void 0:n.vid,seriesId:S?Number(S):void 0,episodeId:_,postId:I?Number(I):void 0,durationTime:u,isSampleData:te}),Object(b.useEffect)((function(){return function(){z(!1)}}),[s]),Object(Hm.a)((function(){var e=document.querySelector("video");if(e&&!e.paused&&!O){var t=Math.floor(e.currentTime),n="";n=t>Math.floor(e.duration)-60?null!==m&&void 0!==m&&m.post?String(m.post.id):"":I,T(Object(X.gb)({seriesId:S,episodeId:I,playtime:t,suggestedTargetId:n}))}}),1e4),Object(Hm.a)((function(){var e=document.querySelector("video");if(e&&!e.paused&&!f&&!K){var t=Math.floor(e.currentTime),n=Math.floor(e.duration)-15;t<n||t>=n&&(x>0||null!==m&&void 0!==m&&m.id?W(!0):W(!1))}}),1e3),Object(Hm.a)((function(){var e=document.querySelector("video");if(!(!e||null!==e&&void 0!==e&&e.paused||Q.current||O)){var t=Math.floor(e.currentTime),n=.9*Math.floor(e.duration);(e.duration<11||t>n)&&!ne&&(T(Object(X.g)({series_id:S,post_id:I,successCallback:function(){T(Object(X.H)({seriesId:S}))}})),Q.current=!0)}}),1e3),Object(b.useEffect)((function(){function e(e){e.preventDefault(),e.stopPropagation(),document.webkitFullscreenElement?k(!0):k(!1)}return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),function(){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e)}}
1),[]),Object(Z.jsxs)(Tb,{children:[Object(Z.jsx)(yb,{playerHeight:$,children:Object(Z.jsx)(g.G,{videoSrc:s,videoPosition:"left",useNetworkApi:!0,startPlayWith:d,vodQualities:null!==A&&void 0!==A?A:void 0,onBeforeRequest:function(e){var t=null===w||void 0===w?void 0:w.id,n=h.b.getUserProfileInChannel(t||0).distinctId;return e.uri.includes("m3u8")?(e.headers=Object(Ct.a)(Object(Ct.a)({},e.headers),{},{"x-publ-profile-distinct-id":n}),e):e},onNavigate:function(){y.push(r)},clickEventOption:{hideControllerMode:"use",screenEnterMode:"use",screenMoveMode:"use",screenLeaveMode:"use",screenClickMode:"use"},basicOption:{playerType:"D_Basic",titleMode:"use",playBarMode:"use",playTimeMode:"use",fullscreenMode:"use",backMode:"use",playSpeedMode:"use",primaryTitle:l,subtitleMode:"use",vodQualityMode:ne?"none":"use"},fullScreenOption:{primaryTitle:l,playerType:"D_BasicFullscreen",titleMode:"use",playBarMode:"use",playSpeedMode:"use",playTimeMode:"use",fullscreenMode:"use",subtitleMode:"use",vodQualityMode:ne?"none":"use",sideOverlayButtonIconName:"ic_video_episodes",isSideOverlayOpen:B,openSideOverlay:function(){return ie()},sideOverlay:Object(Z.jsx)(vb,{title:v("str_2500"),onClose:ie,children:Object(Z.jsx)(Fm,{prevPath:p,isPreview:O})})}})}),ee&&Object(Z.jsx)(fb,{seriesId:S,nextEpisode:m,isFullscreen:N,onClickClose:function(e){e.preventDefault(),e.stopPropagation(),Y(!0)}})]})};var Sb=function(e){var t,n,c,o,s=e.session,a=e.videoSrc,r=e.backUrl,l=e.postTitle,d=e.playtime,u=e.duration,p=e.prevPath,m=e.isPreview,b=Object(i.d)(G.k),j=null===b||void 0===b?void 0:b.curriculumItems.find((function(e){var t;return null===(t=e.curriculumItems)||void 0===t?void 0:t.find((function(e){var t;return(null===(t=e.post)||void 0===t?void 0:t.id)===(null===s||void 0===s?void 0:s.id)}))})),g=null===b||void 0===b?void 0:b.curriculumItems.find((function(e){return e.id===(null===j||void 0===j?void 0:j.nextId)})),_=null===j||void 0===j||null===(t=j.curriculumItems)||void 0===t?void 0:t.find((function(e){var t;return(null===(t=e.post)||void 0===t?void 0:t.id)===(null===s||void 0===s?void 0:s.id)})),h=function(e,t){var n,i;return e?null===j||void 0===j||null===(n=j.curriculumItems)||void 0===n?void 0:n.find((function(t){return t.id===e})):t?null===g||void 0===g||null===(i=g.curriculumItems)||void 0===i?void 0:i[0]:void 0}(null===_||void 0===_?void 0:_.nextId,null===j||void 0===j?void 0:j.nextId),f=(null===j||void 0===j?void 0:j.nextId)||(null===_||void 0===_?void 0:_.nextId),x=!(null!==j&&void 0!==j&&null!==(n=j.curriculumItems)&&void 0!==n&&n.length),O=Number(null===g||void 0===g||null===(c=g.curriculumItems)||void 0===c?void 0:c.length);return _?Object(Z.jsx)(Cb,{videoSrc:a,backUrl:r,session:s,postTitle:l,playtime:d,duration:u,prevPath:p,nextSession:h,hasNext:!!f,episodeId:null!==(o=_.episodeId)&&void 0!==o?o:void 0,isCurrentChapterEmpty:x,nextChapterCurriculumnItemCounts:O,isPreview:m}):Object(Z.jsx)(Z.Fragment,{})};Y.default.div.withConfig({displayName:"S_NavBar",componentId:"sc-1gb5jee-0"})(["align-items:center;cursor:pointer;display:flex;padding-bottom:",";padding-top:",";width:fit-content;"],(function(e){return e.theme.spacing.spacingF}),(function(e){return e.theme.spacing.spacingE}));var Ib={dataObjectType:"CUSTOM_DATA",dataObjectResourceName:"CustomSEOResource",customSEOResourceSchema:{title:"{{postTitle}}",description:"{{postContents}}",thumbnailSrc:"{postThumbnailSrc}"},keyMappingDefinition:{title:"title",description:"description",thumbnailSrc:"thumbnailSrc"}};var wb=function(){var e,t,n,o;Object(H.b)("C00007SessionDetail","c00007_session_detail");var s,a=Object(M.a)("translation").t,l=Object(c.k)(),d=Object(pa.a)().get("prevPath")||"home",u=Object(c.m)(),p=u.channelCode,m=u.classId,j=u.sessionId,g=Object(i.c)(),_=Object(i.d)(G.d),f=Object(i.d)(G.o),v=Object(i.d)(G.J),T=Object(i.d)(G.Q),y=Object(i.d)(r.d),C=Object(i.d)(G.m),w=Object(i.d)(G.N),E=Object(i.d)(G.x),A=h.b.isGuest(),D=Object(i.d)(St.g),N=Object(i.d)(G.F)||{},k=Object(i.d)(G.k),R=Object(b.useMemo)((function(){return D.some((function(e){return(null===e||void 0===e?void 0:e.id)===Number(m)}
1))}),[D,m]),L=Object(b.useMemo)((function(){return 0!==Object.values(N).length&&(!(!A||y)||(!(null!==_&&void 0!==_&&_.hasContentGroupLock||!A||y)||!((null===_||void 0===_||!_.hasContentGroupLock)&&A)&&(!R&&!(null===_||void 0===_||!_.hasContentGroupLock))))}),[N,A,y,null===_||void 0===_?void 0:_.hasContentGroupLock,R]),B=Object(i.d)(Xe.b),z=(null===B||void 0===B?void 0:B.distinctId)||"",U=k?function e(t){var n,i=Object(pl.a)(t);try{for(i.s();!(n=i.n()).done;){var c,o=n.value;if("SESSION"===o.type&&null!==(c=o.post)&&void 0!==c&&c.id)return o.post.id;if(o.curriculumItems&&o.curriculumItems.length>0){var s=e(o.curriculumItems);if(s)return s}}}catch(a){i.e(a)}finally{i.f()}}(k.curriculumItems):void 0,V=w.find((function(e){return Number(e.postId)===Number(j)})),W=Object(b.useMemo)((function(){return"information"===d?Object(h.l)(I,{channelCode:p,classId:m}):"class"===d?Object(h.l)(S,{channelCode:p,classId:m}):"progress"===d?V?Object(h.l)(O,{channelCode:p}):Object(h.l)(S,{channelCode:p,classId:m}):Object(h.l)(x,{channelCode:p})}),[]),q=v?{title:a("str_seo_c00007_session_detail_title",{postTitle:v.title,interpolation:{escapeValue:!1}}),description:v.content&&a("str_seo_c00007_session_detail_desc",{postContents:Object(h.j)(v.content,150)}),thumbnailSrc:null===(e=v.vodResource)||void 0===e?void 0:e.thumbnailSrc}:null;function K(){l.push(W)}if(Object(gc.c)({manifest:Ib,isActivated:!0,data:q,options:{useChannelTitlePrefix:!0}}),Object(b.useEffect)((function(){return g(Object(St.b)()),function(){g(Object(X.Z)())}}),[]),Object(b.useEffect)((function(){if(m&&j&&z)return window.scrollTo(0,0),g(Object(X.W)({seriesId:m,postId:j,profileDistinctId:z})),g(Object(X.R)({seriesId:m,postId:j})),g(Object(X.y)({resourceId:j})),function(){g(Object(X.eb)())}}),[j,m,z,L]),C){var Y=C.type==="".concat(X.T,"_FAILED")&&403===C.status,Q=C.type==="".concat(X.T,"_FAILED")&&451===C.status,$="VOD-00104"===C.code;return Y?Object(Z.jsx)(Wm,{leftContent:Object(Z.jsx)(Fp,{onClick:K}),prevPath:d}):Q?Object(Z.jsx)(Wm,{leftContent:Object(Z.jsx)(Np,{onClick:K}),prevPath:d}):$?Object(Z.jsx)(Wm,{leftContent:Object(Z.jsx)(Bp,{onClick:K}),prevPath:d}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTJ_1",content1:Object(Z.jsx)(Z.Fragment,{}),content2:Object(Z.jsx)(Z.Fragment,{})}),Object(Z.jsx)(ie,{error:C})]})}if(!E&&0!==w.length&&!V)return Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(F.WTContainersBox,{layoutType:"WTJ_1",content1:Object(Z.jsx)(Z.Fragment,{}),content2:Object(Z.jsx)(Z.Fragment,{})}),Object(Z.jsx)(F.D_DesktopAlertDialog,{contentText:a("str_7915"),tBtn1Text:a("str_confirm"),onClickTBtn1:function(){var e,t=U||(null===(e=w[0])||void 0===e?void 0:e.postId);t&&l.push(Object(h.l)(P,{channelCode:p,classId:m,sessionId:t}))}})]});if(L)return Object(Z.jsx)(Wm,{isLoading:E,leftContent:v&&Object(Z.jsxs)(Z.Fragment,{children:["VOD"===v.type&&(null===(s=v.vodResource)||void 0===s?void 0:s.duration)&&Object(Z.jsx)(Sb,{videoSrc:T,backUrl:W,session:v,postTitle:null===v||void 0===v?void 0:v.title,playtime:(null===v||void 0===v?void 0:v.playtime)||0,duration:v.vodResource.duration,prevPath:d,isPreview:L}),"PLAIN"===v.type&&Object(Z.jsx)(mb,{session:v,backUrl:W,isPreview:L}),"LIVE_COACHING"===v.type&&Object(Z.jsx)(rb,{title:v.title,linkSrc:v.liveCoachingConversionLinkUri,startsAt:v.liveCoachingStartsAt,duration:v.liveCoachingDurationInMinutes,onClick:K,isPreview:L})]}),prevPath:d,isPreview:L});var J,ee=null!==(null===v||void 0===v?void 0:v.protectionSeal.contentLock)&&!(null!==v&&void 0!==v&&null!==(t=v.protectionSeal.contentLock)&&void 0!==t&&t.isUnlocked),te=null===v||void 0===v||null===(n=v.protectionSeal.contentLock)||void 0===n?void 0:n.lockStatus;return ee?Object(Z.jsx)(Wm,{isLoading:E,leftContent:Object(Z.jsx)(Xp,{imageSrc:null===v||void 0===v||null===(J=v.vodResource)||void 0===J?void 0:J.thumbnailSrc,lockStatus:te,backUrl:W}),prevPath:d}):f||A?Object(Z.jsx)(Wm,{isLoading:E,leftContent:v&&Object(Z.jsxs)(Z.Fragment,{children:["VOD"===v.type&&(null===(o=v.vodResource)||void 0===o?void 0:o.duration)&&Object(Z.jsx)(Sb,{videoSrc:T,backUrl:W,session:v,postTitle:null===v||void 0===v?void 0:v.title,playtime:(null===v||void 0===v?void 0:v.playtime)||0,duration:v.vodResource.duration,prevPath:d}),"PLAIN"===v.type&&Object(Z.jsx)(mb,{session:v,backUrl:W}),"LIVE_COACHING"===v.type&&Object(Z.jsx)(rb,{title:v.title,linkSrc:v.liveCoachingConversionLinkUri,startsAt:v.liveCoachingStartsAt,duration:v.liveCoachingDurationInMinutes,onClick:K})]}),prevPath:d}):Object(Z.jsx)(Wm,{isLoading:E,leftContent:Object(Z.jsx)(Qp,{onClickNavigationButton:K,onClickEnrollButton:function(){g(Object(X.n)({targetModel:"SERIES",targetId:Number(m),successCallback:function(){g(Object(X.W)({seriesId:m,postId:j,profileDistinctId:z}))}}))}}),prevPath:d})};var Eb=function(){var e=Object(c.m)().sessionId,t=Object(i.d)(r.d),n=h.b.isGuest(),o=Object(b.useMemo)(l.f,[]),a=Object(i.d)(o),d=Object(i.d)(G.G).some((function(t){return(null===t||void 0===t?void 0:t.postId)===Number(e)}));return Object(Z.jsxs)(c.g,{children:[d&&n&&!t?Object(Z.jsx)(c.d,{exact:!0,path:P,component:wb}):Object(Z.jsxs)(Z.Fragment,{children:[Object(Z.jsx)(s.l,{exact:!0,path:P,component:wb,option:"GUEST_OPEN_WHEN_PUBLIC_OPEN"}),Object(Z.jsx)(s.q,{exact:!0,path:u.Zb,component:m.a,isAuthenticated:a})]}),Object(Z.jsx)(c.c,{from:u.o,to:x})]})};var Ab=function(){var e,t=Object(i.c)(),n=Object(b.useMemo)(l.f,[]),o=Object(i.d)(n),a=Object(c.m)(),d=a.channelCode,p=a.classId,j=Object(c.l)(),g=Object(i.d)(r.c),_=U().isReviewTabActive,O=null===g||void 0===g?void 0:g.config,v=!(null===O||void 0===O||!O[f.g.UX_VODS_USE_CLASS_NOTICE]),T=!(null===O||void 0===O||!O[f.g.UX_VODS_USE_CLASS_STUDENTS_ONLY_NOTICE]),y=!(null===O||void 0===O||!O[f.g.UX_VODS_HIDE_CLASSCOMMENT]),C=null!==(e=null===O||void 0===O?void 0:O[f.g.UX_VODS_APPEARANCE_CLASSDETAIL_TEMPLATE_NAME])&&void 0!==e?e:"BASIC",N=Object(b.useMemo)((function(){return[{path:Object(h.l)(S,{channelCode:d,classId:p}),condition:!0,hash:"curriculums"},{path:Object(h.l)(w,{channelCode:d,classId:p}),condition:_,hash:"reviews"},{path:Object(h.l)(E,{channelCode:d,classId:p}),condition:!y,hash:"comments"},{path:Object(h.l)(A,{channelCode:d,classId:p}),condition:v,hash:"notices"},{path:Object(h.l)(D,{channelCode:d,classId:p}),condition:T,hash:"notices-for-student"}]}),[d,p,v,T,_]);if(Object(b.useEffect)((function(){return function(){t(Object(X.Z)())}}),[p]),null!==C&&void 0!==C&&C.includes("TABBAR")){var k=N.find((function(e){return e.path===j.pathname&&e.condition}));if(k){var R=Object(h.l)(I,{channelCode:d,classId:p});return"curriculums"===k.hash?Object(Z.jsx)(c.c,{to:R}):Object(Z.jsx)(c.c,{to:"".concat(R,"#").concat(k.hash)})}return Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(s.q,{exact:!0,path:I,component:wp,isAuthenticated:o}),Object(Z.jsx)(s.q,{path:P,component:Eb,isAuthenticated:o}),Object(Z.jsx)(s.q,{exact:!0,path:u.Zb,component:m.a,isAuthenticated:o}),Object(Z.jsx)(c.c,{from:u.o,to:x})]})}if(null!==C&&void 0!==C&&C.includes("BASIC")){var L=N.find((function(e){return e.hash===j.hash.replace("#","")&&e.condition}));if(L)return Object(Z.jsx)(c.c,{to:L.path})}return Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(s.q,{exact:!0,path:I,component:wp,isAuthenticated:o}),Object(Z.jsx)(s.q,{exact:!0,path:S,component:Xr,isAuthenticated:o}),!y&&Object(Z.jsx)(s.q,{exact:!0,path:E,component:Or,isAuthenticated:o}),_&&Object(Z.jsx)(s.q,{exact:!0,path:w,component:vd,isAuthenticated:o}),v&&Object(Z.jsx)(s.q,{exact:!0,path:A,component:Kl,isAuthenticated:o}),T&&Object(Z.jsx)(s.q,{exact:!0,path:D,component:od,isAuthenticated:o}),Object(Z.jsx)(s.q,{path:P,component:Eb,isAuthenticated:o}),Object(Z.jsx)(s.q,{exact:!0,path:u.Zb,component:m.a,isAuthenticated:o}),Object(Z.jsx)(c.c,{from:u.o,to:x})]})};var Db=function(){var e=Object(b.useMemo)(l.f,[]),t=Object(i.d)(e),n=Object(i.d)(Object(a.n)()),o=U().isReviewTabActive;return n?Object(Z.jsx)(g.k,{children:Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(s.q,{path:x,component:jc,isAuthenticated:t}),Object(Z.jsx)(s.q,{path:N,component:Mo,isAuthenticated:t}),Object(Z.jsx)(s.l,{path:O,component:eo}),Object(Z.jsx)(s.l,{path:y,component:ho}),o&&Object(Z.jsx)(s.q,{path:k,component:Ya,isAuthenticated:t}),Object(Z.jsx)(s.q,{path:C,component:Ab,isAuthenticated:t}),Object(Z.jsx)(c.c,{from:u.o,to:x})]})}):Object(Z.jsx)(Z.Fragment,{})};var Pb=function(){var e=Object(i.d)(Object(l.f)()),t=Object(i.d)(Object(a.n)()),n=Object(i.d)(r.c),b=Object(i.d)(r.b);if(!t)return Object(Z.jsx)(Z.Fragment,{});var j=t.channelCode;if(b)switch(b.code){case 403:return Object(Z.jsx)(c.c,{to:Object(u.P)(j,o.a.C00007.CODE)});default:return Object(Z.jsx)(c.g,{children:Object(Z.jsx)(c.c,{to:Object(u.V)(j)})})}return n&&n.code===o.a.C00007.CODE?Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(s.q,{path:u.o,component:Db,
1isAuthenticated:e}),Object(Z.jsx)(s.q,{exact:!0,path:u.Zb,component:m.a,isAuthenticated:e}),Object(Z.jsx)(c.c,{from:u.o,to:x})]}):b||n?Object(Z.jsx)(d.a,{}):Object(Z.jsxs)(c.g,{children:[Object(Z.jsx)(s.q,{exact:!0,path:u.fb,component:p.a,isAuthenticated:e}),Object(Z.jsx)(c.c,{from:u.o,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.