"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4623],{26263:(e,i,t)=>{t.d(i,{Y:()=>o});const o=e=>({getLocalStorage:i=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):i}catch(e){return i}},setLocalStorage:i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(e){}},removeLocalStorage:()=>{try{localStorage.removeItem(e)}catch(e){}}})},6585:(e,i,t)=>{var o;t.d(i,{H:()=>o}),function(e){e.UploadKey="upload-cta",e.GetCoinsKey="get-coins-cta",e.WebappFreshSignup="webapp-fresh-signup",e.InAppNotificationShown="inapp-notification.shown",e.InAppNotificationSettings="inapp-notification.settings"}(o||(o={}))},61886:(e,i,t)=>{t.d(i,{oD:()=>c,y_:()=>v});var o,n,l,c,a,s,_,h=t(58632),d=t(7672),r=t(93608);!function(e){e.LiveRechargeShow="livesdk_recharge_show",e.LiveRechargeClick="livesdk_recharge_click",e.LiveRechargeCashierShow="livesdk_web_cashier_show",e.LiveRechargePay="livesdk_recharge_pay",e.LiveRechargeSuccess="livesdk_recharge_success",e.LiveRechargeFailed="livesdk_recharge_failed",e.livesdkRechargeFailClick="livesdk_recharge_fail_click",e.LiveBillingAddressClick="livesdk_billing_address_click",e.LiveBillingAddressEntranceClick="livesdk_billing_address_entrance_click",e.LiveWebGetCoinShow="livesdk_web_getcoin_show",e.LiveWebGetCoinClick="livesdk_web_getcoin_click",e.LiveWebGetCoinBubbleShow="livesdk_audience_bubble_show",e.LiveWebGetCoinBubbleDuration="livesdk_bubble_duration",e.LiveWebPayFeedbackShow="livesdk_web_pay_feedback_show",e.LiveWebPayFeedbackClick="livesdk_web_pay_feedback_click",e.LiveWebPayMethodClick="livesdk_web_pay_method_click",e.LiveWebLinkEWalletShow="livesdk_link_ewallet_show",e.LiveWebLinkEWalletClick="livesdk_link_ewallet_click",e.LiveWebLinkEWalletSuccess="livesdk_link_ewallet_success",e.LiveWebLinkEWalletFailed="livesdk_link_ewallet_failed",e.LiveRechargeExchangeEntranceShow="livesdk_recharge_exchange_entrance_show",e.LiveRechargeExchangeEntranceClick="livesdk_recharge_exchange_entrance_click",e.LiveRechargeExchangeClick="livesdk_recharge_exchange_click",e.LiveRechargeExchangePopupShow="livesdk_recharge_exchange_popup_show",e.LiveRechargeExchangeConfirm="livesdk_recharge_exchange_confirm",e.LiveRechargeExchangeCancel="livesdk_recharge_exchange_cancel",e.LiveRechargeExchangeSuccess="livesdk_recharge_exchange_success",e.LiveRechargeExchangeFailed="livesdk_recharge_exchange_failed",e.LiveRechargeExchangePackageShow="livesdk_recharge_exchange_package_show",e.LiveRechargeExchangePreview="livesdk_recharge_exchange_preview",e.LiveRechargeExchangeLimitPopupShow="livesdk_wallet_limit_popup_show",e.LiveRechargeExchangeLimitPopupClick="livesdk_wallet_limit_popup_click",e.LiveRechargeLogoutClick="livesdk_logout_click",e.LiveBillingAddressShow="livesdk_billing_address_show",e.LiveBillingAddressConfirm="livesdk_billing_address_confirm",e.LiveBillingAddressCancel="livesdk_billing_address_cancel",e.LiveBillingAddressFailed="livesdk_billing_address_failed",e.LiveRechargeNoticeShow="livesdk_webapp_top_notice_show",e.LiveRechargeNoticeClick="livesdk_webapp_top_notice_click",e.LiveRechargeNoticeClose="livesdk_webapp_top_notice_close",e.LiveAbnormalFeatureToast="livesdk_feature_abnormal_toast",e.LiveKycReminderPopup="livesdk_kyc_reminder_popup",e.LiveKycReminderPopupClick="livesdk_kyc_reminder_popup_click",e.LiveKycPopupShow="livesdk_kyc_popup_show",e.LiveKycPopupClick="livesdk_kyc_popup_click",e.LivePaymentBindShow="livesdk_payment_bind_show",e.LivePaymentBindClick="livesdk_payment_bind_click",e.LivePaymentBindSuccess="livesdk_payment_bind_success",e.LivePaymentBindFail="livesdk_payment_bind_fail",e.LiveRechargePackageShow="livesdk_recharge_package_show",e.LiveRechargeBanPopupShow="livesdk_recharge_ban_popup_show",e.LiveRechargeBanPopupClick="livesdk_recharge_ban_popup_click",e.LiveRechargePackagePreview="livesdk_recharge_package_preview",e.LiveRechargeCompletedEducationPopupShow="livesdk_payment_completed_popup_show",e.LiveRechargeCompletedEducationPopupClick="livesdk_payment_completed_click",e.LiveRechargeNegativeBalancePopupShow="livesdk_negative_balance_popup_show",e.LiveRechargeNegativeBalancePopupClick="livesdk_negative_balance_click",e.LiveRechargeLimitToastShow="livesdk_wallet_limit_toast_show",e.LiveRechargeLimitPopupShow="livesdk_wallet_limit_popup_show",e.LiveRechargeLimitPopupClick="livesdk_wallet_limit_popup_click",e.LivePayMethodLoadSuccess="livesdk_pay_method_load_success",e.LivePayMethodLoadFail="livesdk_pay_method_load_fail",e.LiveRechargeShowV2="livesdk_recharge_show_v2",e.LiveRechargePackageShowV2="livesdk_recharge_package_show_v2",e.LiveRechargePackagePreviewV2="livesdk_recharge_package_preview_v2",e.LiveRechargeClickV2="livesdk_recharge_click_v2",e.LiveRechargeLoginClick="livesdk_recharge_click_to_login",e.LiveExchangeRetainFirstPopupShow="livesdk_recharge_retain_first_popup_show",e.LiveExchangeRetainFirstPopupClick="livesdk_recharge_retain_first_popup_click",e.LiveExchangeRetainSecondPopupShow="livesdk_recharge_retain_second_popup_show",e.LiveExchangeRetainSecondPopupClick="livesdk_recharge_retain_second_popup_click",e.EXCHANGE_ENTRANCE_SHOW="livesdk_exchange_entrance_show",e.EXCHANGE_ENTRANCE_CLICK="livesdk_exchange_entrance_click",e.EXCHANGE_SHOW="livesdk_exchange_show",e.EXCHANGE_CLICK="livesdk_exchange_click",e.EXCHANGE_CUSTOM_CLICK="livesdk_exchange_custom_click",e.EXCHANGE_CONFIRM_POPUP_SHOW="livesdk_exchange_confirm_popup_show",e.EXCHANGE_CONFIRM="livesdk_exchange_confirm",e.EXCHANGE_CONFIRM_CANCEL="livesdk_exchange_confirm_cancel",e.EXCHANGE_CANCEL="livesdk_exchange_cancel",e.EXCHANGE_SUCCESS="livesdk_exchange_success",e.EXCHANGE_FAIL="livesdk_exchange_fail",e.LiveLoginQRCodeShow="livesdk_login_qr_code_show",e.LiveLoginQRCodeInstructionShow="livesdk_login_qr_code_instruction_show",e.LiveLoginQRCodeScanResultShow="livesdk_login_qr_code_scan_result_show",e.LivePanelLCP="livesdk_recharge_panel_lcp",e.EmailConfirmPopupShow="livesdk_email_confirm_popup_show",e.EmailConfirmPopupClick="livesdk_email_confirm_popup_click",e.EmailEditPageShow="livesdk_email_edit_page_show",e.EmailEditPageTextBoxClick="livesdk_email_edit_page_text_box_click",e.EmailEditPageCodeError="livesdk_email_edit_page_code_error",e.EmailEditSuccess="livesdk_email_edit_success",e.HomeScreenV2TriggerPointShow="livesdk_add_homescreen_shortcut_guide_show",e.HomeScreenV2AddButtonClick="livesdk_add_homescreen_shortcut_guide_click",e.LiveRechargePageShow="livesdk_wallet_page_show",e.LiveRechargeClientShow="livesdk_wallet_client_show",e.LiveRechargeViewClick="livesdk_wallet_view_click"}(o||(o={})),function(e){e.TIKTOKM="1233",e.TIKTOKT="1180",e.LITE="1340",e.RESSO="1811",e.WEBAPP="1988"}(n||(n={})),function(e){e.Done="done",e.LEARN_MORE="learn_more",e.CONTACT_US="contact_us",e.CANCEL="cancel",e.PUSH_OPT_IN="push_opt_in"}(l||(l={})),function(e){e.top_bar="top_bar",e.avatar="avatar",e.buy_now="buy_now",e.top_list_feedback="top_list_feedback",e.feedback_icon="feedback_icon"}(c||(c={})),function(e){e.Success="success",e.Fail="fail"}(a||(a={})),function(e){e.Instruction="instruction",e.Package="package"}(s||(s={})),function(e){e.PackageEntrance="package_entrance",e.RechargeSuccess="recharge_success"}(_||(_={}));let v=class{constructor(){this.handleRechargeShow=e=>{r.f.event("livesdk_recharge_show",e)},this.handleRechargeClick=e=>{r.f.event("livesdk_recharge_click",e)},this.handleCashierShow=e=>{r.f.event("livesdk_web_cashier_show",e)},this.handlePayAction=e=>{r.f.event("livesdk_recharge_pay",e)},this.handleRechargeSuccess=e=>{r.f.event("livesdk_recharge_success",e)},this.handleRechargeFailed=e=>{r.f.event("livesdk_recharge_failed",e)},this.handleRechargeFailedClick=e=>{r.f.event("livesdk_recharge_fail_click",e)},this.handleBillingAddressClick=e=>{r.f.event("livesdk_billing_address_click",e)},this.handleBillingAddressEntranceClick=e=>{r.f.event("livesdk_billing_address_entrance_click",e)},this.handleLiveWebGetCoinShow=e=>{r.f.event("livesdk_web_getcoin_show",e)},this.handleLiveWebGetCoinClick=e=>{r.f.event("livesdk_web_getcoin_click",e)},this.handleLiveWebGetCoinBubbleShow=e=>{r.f.event("livesdk_audience_bubble_show",e)},this.handleLiveWebGetCoinBubbleDuration=e=>{r.f.event("livesdk_bubble_duration",e)},this.handleRechargeFeedbackShow=e=>{r.f.event("livesdk_web_pay_feedback_show",e)},this.handleRechargeFeedbackClick=e=>{r.f.event("livesdk_web_pay_feedback_click",e)},this.handleRechargeCashierSelectPaymentMethod=e=>{r.f.event("livesdk_web_pay_method_click",e)},this.handleRechargeCashierEWalletShow=e=>{r.f.event("livesdk_link_ewallet_show",e)},this.handleRechargeCashierEWalletClick=e=>{r.f.event("livesdk_link_ewallet_click",e)},this.handleRechargeCashierEWalletSuccess=e=>{r.f.event("livesdk_link_ewallet_success",e)},this.handleRechargeCashierEWalletFailed=e=>{r.f.event("livesdk_link_ewallet_failed",e)},this.handleExchangeEntranceShow=e=>{r.f.event("livesdk_exchange_entrance_show",e),r.f.event("livesdk_recharge_exchange_entrance_show",e)},this.handleExchangeEntranceClick=e=>{r.f.event("livesdk_exchange_entrance_click",e),r.f.event("livesdk_recharge_exchange_entrance_click",e)},this.handleExchangeClick=e=>{r.f.event("livesdk_exchange_click",e),r.f.event("livesdk_recharge_exchange_click",e)},this.handleExchangeShow=e=>{r.f.event("livesdk_exchange_show",e)},this.handleExchangeCustomClick=e=>{r.f.event("livesdk_exchange_custom_click",e)},this.handleExchangePopupShow=e=>{r.f.event("livesdk_exchange_confirm_popup_show",e),r.f.event("livesdk_recharge_exchange_popup_show",e)},this.handleExchangeConfirm=e=>{r.f.event("livesdk_exchange_confirm",e),r.f.event("livesdk_recharge_exchange_confirm",e)},this.handleExchangeCancel=e=>{r.f.event("livesdk_exchange_cancel",e)},this.handleExchangeConfirmCancel=e=>{r.f.event("livesdk_exchange_confirm_cancel",e),r.f.event("livesdk_recharge_exchange_cancel",e)},this.handleExchangeSuccess=e=>{r.f.event("livesdk_exchange_success",e),r.f.event("livesdk_recharge_exchange_success",e)},this.handleExchangeFailed=e=>{r.f.event("livesdk_exchange_fail",e),r.f.event("livesdk_recharge_exchange_failed",e)},this.handleExchangePackageShow=e=>{r.f.event("livesdk_recharge_exchange_package_show",e)},this.handleExchangePreview=e=>{r.f.event("livesdk_recharge_exchange_preview",e)},this.handleRechargeLogoutClick=e=>{r.f.event("livesdk_logout_click",e)},this.handleBillingAddressShow=e=>{r.f.event("livesdk_billing_address_show",e)},this.handleBillingAddressConfirm=e=>{r.f.event("livesdk_billing_address_confirm",e)},this.handleBillingAddressCancel=e=>{r.f.event("livesdk_billing_address_cancel",e)},this.handleBillingAddressFailed=e=>{r.f.event("livesdk_billing_address_failed",e)},this.handleNoticeShow=e=>{r.f.event("livesdk_webapp_top_notice_show",e)},this.handleNoticeClick=e=>{r.f.event("livesdk_webapp_top_notice_click",e)},this.handleNoticeClose=e=>{r.f.event("livesdk_webapp_top_notice_close",e)},this.handleAbnormalFeatureToast=e=>{r.f.event("livesdk_feature_abnormal_toast",e)},this.liveKycReminderPopup=e=>{r.f.event("livesdk_kyc_reminder_popup",e)},this.liveKycReminderPopupClick=e=>{r.f.event("livesdk_kyc_reminder_popup_click",e)},this.liveKycPopupShow=e=>{r.f.event("livesdk_kyc_popup_show",e)},this.liveKycPopupClick=e=>{r.f.event("livesdk_kyc_popup_click",e)},this.handlePaymentBindShow=e=>{r.f.event("livesdk_payment_bind_show",e)},this.handlePaymentBindClick=e=>{r.f.event("livesdk_payment_bind_click",e)},this.handlePaymentBindSuccess=e=>{r.f.event("livesdk_payment_bind_success",e)},this.handlePaymentBindFail=e=>{r.f.event("livesdk_payment_bind_fail",e)},this.handleRechargePackageShow=e=>{r.f.event("livesdk_recharge_package_show",e)},this.handleRechargeBanPopupShow=e=>{r.f.event("livesdk_recharge_ban_popup_show",e)},this.handleRechargeBanPopupClick=e=>{r.f.event("livesdk_recharge_ban_popup_click",e)},this.handleRechargePackagePreview=e=>{r.f.event("livesdk_recharge_package_preview",e)},this.handleRechargeCompletedEducationPopupShow=e=>{r.f.event("livesdk_payment_completed_popup_show",e)},this.handleRechargeCompletedEducationPopupClick=e=>{r.f.event("livesdk_payment_completed_click",e)},this.handleNegativeBalancePopupShow=e=>{r.f.event("livesdk_negative_balance_popup_show",e)},this.handleNegativeBalancePopupClick=e=>{r.f.event("livesdk_negative_balance_click",e)},this.handleRechargeLimitToastShow=e=>{r.f.event("livesdk_wallet_limit_toast_show",e)},this.handleRechargeLimitPopupShow=e=>{r.f.event("livesdk_wallet_limit_popup_show",e)},this.handleRechargeLimitPopupClick=e=>{r.f.event("livesdk_wallet_limit_popup_click",e)},this.incentiveBannerShow=e=>{r.f.event("livesdk_kyc_incentive_banner_show",e)},this.incentiveBannerClick=e=>{r.f.event("livesdk_kyc_incentive_banner_click",e)},this.kycCouponShow=e=>{r.f.event("livesdk_kyc_coupon_show",e)},this.kycCouponChoose=e=>{r.f.event("livesdk_kyc_coupon_choose",e)},this.kycCouponRuleShow=e=>{r.f.event("livesdk_kyc_coupon_rule_show",e)},this.kycCouponCashierShow=e=>{r.f.event("livesdk_kyc_coupon_cashier_show",e)},this.kycCouponFreezeFirstReminder=e=>{r.f.event("livesdk_kyc_coupon_freeze_first_reminder_popup_show",e)},this.kycCouponFreezeFirstReminderClick=e=>{r.f.event("livesdk_kyc_coupon_freeze_first_reminder_popup_click",e)},this.kycCouponFreezeSecondReminderClick=e=>{r.f.event("livesdk_kyc_coupon_freeze_second_reminder_popup_click",e)},this.kycCouponFreezeSecondReminderShow=e=>{r.f.event("livesdk_kyc_coupon_freeze_second_reminder_popup_show",e)},this.cashierClose=(e,{beacon:i}={})=>{i?r.f.beconEvent("livesdk_cashier_close",e):r.f.event("livesdk_cashier_close",e)},this.customRechargeShow=e=>{r.f.event("livesdk_custom_recharge_show",e)},this.customSwitchEntranceClick=e=>{r.f.event("livesdk_custom_switch_entrance_click",e)},this.customSwitchOptionsClick=e=>{r.f.event("livesdk_custom_switch_options_click",e)},this.customInputTotalFaqClick=e=>{r.f.event("livesdk_web_pay_total_info_click",e)},this.exchangeBillingAddressEntranceShow=e=>{r.f.event("livesdk_exchange_billing_address_entrance_show",e)},this.exchangeBillingAddressEntranceClick=e=>{r.f.event("livesdk_exchange_billing_address_entrance_click",e)},this.handleCashierPayMethodLoadSuccess=e=>{r.f.event("livesdk_pay_method_load_success",e)},this.handleCashierPayMethodLoadFail=e=>{r.f.event("livesdk_pay_method_load_fail",e)},this.handleRechargeLoginClick=e=>{r.f.event("livesdk_recharge_click_to_login",e)},this.handleLiveRechargeExchangeLimitPopupShow=e=>{r.f.event("livesdk_wallet_limit_popup_show",e)},this.handleLiveRechargeExchangeLimitPopupClick=e=>{r.f.event("livesdk_wallet_limit_popup_click",e)},this.exchangeRetainFirstPopupShow=e=>{r.f.event("livesdk_recharge_retain_first_popup_show",e)},this.handleExchangeRetainFirstPopupClick=e=>{r.f.event("livesdk_recharge_retain_first_popup_click",e)},this.exchangeRetainSecondPopupShow=e=>{r.f.event("livesdk_recharge_retain_second_popup_show",e)},this.handleExchangeRetainSecondPopupClick=e=>{r.f.event("livesdk_recharge_retain_second_popup_click",e)},this.handleLoginQRCodeShow=e=>{r.f.event("livesdk_login_qr_code_show",e)},this.handleLoginQRCodeInstructionShow=e=>{r.f.event("livesdk_login_qr_code_instruction_show",e)},this.handleLoginQRCodeScanResultShow=e=>{r.f.event("livesdk_login_qr_code_scan_result_show",e)},this.handleAddHomescreenShortcutGuideShow=e=>{r.f.event("livesdk_add_homescreen_shortcut_guide_show",e)},this.handleAddToHomescreenShortcutGuideClick=e=>{r.f.event("livesdk_add_homescreen_shortcut_guide_click",e)},this.handleAddHomescreenShortcutInstructionShow=e=>{r.f.event("livesdk_add_homescreen_shortcut_instruction_show",e)},this.handlePricePopupShow=e=>{r.f.event("livesdk_price_info_popup_show",e)},this.handleSecuritySignShow=e=>{r.f.event("livesdk_webapp_security_sign_show",e)},this.handleSecuritySignClick=e=>{r.f.event("livesdk_webapp_security_sign_click",e)},this.handleSecurityPageShow=e=>{r.f.event("livesdk_webapp_security_page_show",e)},this.handleSecurityPageClick=e=>{r.f.event("livesdk_webapp_security_page_click",e)},this.customExchangeCustomPanelShow=e=>{r.f.event("livesdk_custom_exchange_show",e)},this.customExchangeCustomPanelSwitchEntranceClick=e=>{r.f.event("livesdk_exchange_custom_switch_entrance_click",e)},this.customExchangeCustomPanelSwitchOptionClick=e=>{r.f.event("livesdk_exchange_custom_switch_options_click",e)},this.customExchangeCustomPanelTotalInfoClick=e=>{r.f.event("livesdk_exchange_custom_total_info_click",e)},this.switchIapRechargeButtonShow=e=>{r.f.event("livesdk_switch_iap_recharge_button_show",e)},this.switchIapRechargeButtonClick=e=>{r.f.event("livesdk_switch_iap_recharge_button_click",e)},this.switchIapRechargeBubbleShow=()=>{r.f.event("livesdk_panel_change_bubble_show")},this.handleLCPReport=e=>{r.f.event("livesdk_recharge_panel_lcp",e)},this.handleEmailConfirmPopupShow=e=>{r.f.event("livesdk_email_confirm_popup_show",e)},this.handleEmailConfirmPopupClick=e=>{r.f.event("livesdk_email_confirm_popup_click",e)},this.handleEmailEditPageShow=e=>{r.f.event("livesdk_email_edit_page_show",e)},this.handleEmailEditPageTextboxClick=e=>{r.f.event("livesdk_email_edit_page_text_box_click",e)},this.handleEmailEditCodeError=e=>{r.f.event("livesdk_email_edit_page_code_error",e)},this.handleEmailEditSuccess=e=>{r.f.event("livesdk_email_edit_success",e)},this.referralBannerShow=e=>{r.f.event("livesdk_promotion_get_gift_popup_show",e)},this.referralBannerClick=e=>{r.f.event("livesdk_promotion_get_gift_popup_click",e)},this.homeScreenV2TriggerPointShow=e=>{r.f.event("livesdk_add_homescreen_shortcut_guide_show",e)},this.homeScreenV2AddButtonClick=e=>{r.f.event("livesdk_add_homescreen_shortcut_guide_click",e)},this.handlePageShow=e=>{r.f.event("livesdk_wallet_page_show",e)},this.handleClientShow=e=>{r.f.event("livesdk_wallet_client_show",e)},this.handleViewClick=e=>{r.f.event("livesdk_wallet_view_click",e)}}};v=(0,h.__decorate)([(0,d._)()],v)},13492:(e,i,t)=>{t.d(i,{S:()=>y});var o=t(24643),n=t(57432),l=t.n(n),c=t(40099),a=t(51404),s=t(59061),_=t(35877),h=t(33958),d=t(42891),r=t(38155),v=t(73635),p=t(82548),k=t(25616),g=t(88920),u=t(49057),f=t(95868),w=t(16469),m=t(74169),b=t(5819);const C={width:24,height:24},x=[{content:"desktop_kb_shortcuts_tooltip_previous",icon:(0,o.jsx)(a.A,Object.assign({},C))},{content:"desktop_kb_shortcuts_tooltip_next",icon:(0,o.jsx)(s.A,Object.assign({},C))},{content:"desktop_kb_shortcuts_tooltip_like_vid",icon:(0,o.jsx)(_.A,Object.assign({},C))},{content:"desktop_kb_shortcuts_tooltip_mute_unmute_vid",icon:(0,o.jsx)(h.A,Object.assign({},C))}],S=[{content:"pc_web_playpause_btn",icon:(0,o.jsx)(d.A,Object.assign({},C))},{content:"pc_web_skip_forward_5_sec_btn",icon:(0,o.jsx)(b.rW,Object.assign({},C))},{content:"pc_web_skip_back_5_sec_btn",icon:(0,o.jsx)(b.BT,Object.assign({},C))},{content:"pc_web_fullscreen_btn",icon:(0,o.jsx)(r.A,Object.assign({},C))}],y=(0,c.memo)((function({isModal:e=!1,onClose:i=l()}){const t=(0,k.s)(),{isVideoDetailPlayerExperiment:n}=(0,g.ac)(),a=(0,c.useMemo)((()=>n?[...x,...S]:x),[n]),s=(0,u.W)((()=>["abTestVersion","wid"]),[]),{showKeyboardShortcut:_,handleClose:h}=((e=!1,i,t)=>{const o=w.Bv.getItem("webid"),[n,l]=(0,c.useState)(!0),[a,s]=(0,c.useState)(e),_=(0,m.cz)(),{isInKeyboardShortcutTreatment:h}=(0,g.fy)(),d=(0,c.useCallback)((()=>{e?i():(w.Bv.setItem("hasCloseKeyboardShortcut",!0),l(!1))}),[e,i]);return(0,c.useEffect)((()=>{var i;if(!e)if((null==t?void 0:t.wid)!==o)s(!0),w.Bv.setItem("webid",null!==(i=null==t?void 0:t.wid)&&void 0!==i?i:""),w.Bv.setItem("hasCloseKeyboardShortcut",!1),h&&w.Bv.setItem("hasSeenKeyboardShortcut",!0);else{const e=w.Bv.getItem("hasCloseKeyboardShortcut");if(s(!e),h){const i=w.Bv.getItem("hasSeenKeyboardShortcut");s(!e&&!i),w.Bv.setItem("hasSeenKeyboardShortcut",!0)}}}),[]),(0,c.useEffect)((()=>{const{pathname:i=""}=location;e||(0,f.tO)(i)||(0,f.K8)(i)||i.startsWith("/following")||/^\/@.*\/video\/\d+/.test(i)||s(!1)}),[]),{showKeyboardShortcut:n&&a&&(_.shouldShow||!h),handleClose:d}})(e,i,s),{isInKeyboardShortcutV2:d}=(0,g.fy)();let r=t(e?"desktop_kb_shortcuts_modal":d?"desktop_kb_shortcuts_menu":"desktop_kb_shortcuts_tooltip_title");const C=(0,c.useMemo)((()=>a.map((({content:i,icon:n})=>(0,o.jsxs)(b.TM,{isModal:e,children:[t(i),n]},i)))),[e,a,t]);return(0,c.useEffect)((()=>{_&&p.U.handlePopupShow({enter_method:"keyboard_shortcut_pop"})}),[_]),_?(0,o.jsxs)(b.IK,{isModal:e,children:[e?(0,o.jsx)(b.Nl,{onClick:h,children:(0,o.jsx)(v.A,{width:20,height:20})}):(0,o.jsx)(b.Mt,{onClick:h,children:(0,o.jsx)(v.A,{width:20,height:20})}),(0,o.jsx)(b.Xm,{isModal:e,children:r}),(0,o.jsx)(b.wP,{children:C})]}):null}));y.defaultProps=Object.assign(Object.assign({},y.defaultProps),{"data-e2e":"keyboard-shortcut"})},74169:(e,i,t)=>{t.d(i,{V5:()=>s,cz:()=>_});var o=t(16469),n=t(71111),l=t(31209);const c=(0,n.atom)({shouldShow:!0}),{useAtomService:a,useServiceDispatchers:s,useServiceState:_,getStaticApi:h}=(0,l.i)(c,((e,i)=>({setShouldShow:e=>{i(c,{shouldShow:e.shouldShow}),o.Bv.setItem("hasCloseKeyboardShortcut",!0)}})))},5819:(e,i,t)=>{t.d(i,{BT:()=>v,IK:()=>c,Mt:()=>h,Nl:()=>d,TM:()=>_,Xm:()=>a,rW:()=>r,wP:()=>s});var o=t(59061),n=t(62186),l=t(72153);const c=(0,n.default)("div",{target:"e1l04njg0"})((({isModal:e=!1,theme:i})=>[{marginBottom:e?"0":"12px",minWidth:e?"400px":"300px",minHeight:e?"280px":"258px",padding:e?"40px 32px 32px":"44px 24px 16px",display:"flex",boxSizing:"border-box",flexDirection:"column",alignItems:"center",backgroundColor:i.colors.BGSecondary,borderRadius:"8px",border:`1px solid ${i.colors.LineSecondary3}`,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.06)"}]),"label:DivKeyboardShortcutContainer;"),a=(0,n.default)("div",{target:"e1l04njg1"})((({isModal:e=!1,theme:i})=>[(0,l.zy)({theme:i,typography:e?"P0":"P1",fontWeight:"bold",fontFamily:"TikTokFont"}),{width:"100%",height:"22px",lineHeight:"22px",textAlign:"center",color:i.colors.TextPrimary,whiteSpace:"nowrap"}]),"label:DivKeyboardShortcutTitle;"),s=(0,n.default)("div",{target:"e1l04njg2"})((({theme:e})=>[{marginTop:"16px",width:"100%",display:"flex",boxSizing:"border-box",flexDirection:"column",alignItems:"center",borderTop:`1px solid ${e.colors.LineSecondary}`}]),"label:DivKeyboardShortcutContent;"),_=(0,n.default)("div",{target:"e1l04njg3"})((({theme:e})=>[(0,l.zy)({theme:e,typography:"P3",fontWeight:"normal",fontFamily:"TikTokFont"}),{width:"100%",height:"40px",textAlign:"left",color:e.colors.TextPrimary,display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:`1px solid ${e.colors.LineSecondary}`}]),"label:DivKeyboardShortcutContentItem;"),h=(0,n.default)("div",{target:"e1l04njg4"})((({theme:{direction:e}})=>(0,l.mp)({direction:e,end:"16px"})),{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:16,cursor:"pointer"},"label:DivXMarkWrapper;"),d=(0,n.default)(h,{target:"e1l04njg5"})((({theme:{colors:e}})=>({width:"24px",height:"24px",borderRadius:"100px",backgroundColor:e.BGView})),"label:StyledModalXMarkWrapper;"),r=(0,n.default)(o.A,{target:"e1l04njg6"})((({theme:{direction:e}})=>({transform:`rotateZ(${"rtl"===e?90:-90}deg)`})),"label:StyledForward;"),v=(0,n.default)(o.A,{target:"e1l04njg7"})((({theme:{direction:e}})=>({transform:`rotateZ(${"rtl"===e?-90:90}deg)`})),"label:StyledBackward;")},21482:(e,i,t)=>{t.d(i,{AR:()=>p,C6:()=>d,RA:()=>h,aX:()=>s,h0:()=>c,iZ:()=>_,nm:()=>a,rI:()=>r,rs:()=>v});var o=t(62186),n=t(72153),l=t(97397);const c=(0,o.default)("div",{target:"ea28s0v0"})({width:"280px",display:"flex",flexDirection:"column",alignItems:"center",borderRadius:"12px",paddingTop:"24px",overflow:"hidden"},"label:DivLogoutLinkPhoneContainer;"),a=(0,o.default)("div",{target:"ea28s0v1"})((({theme:e})=>[(0,n.zy)({theme:e,typography:"P0",fontWeight:"bold",fontFamily:"TikTokFont",fontSize:"20px"}),{padding:"8px 20px",lineHeight:"25px",width:"100%",textAlign:"center",color:e.colors.TextPrimary}]),"label:DivLogoutLinkPhoneTitleContainer;"),s=(0,o.default)("div",{target:"ea28s0v2"})((({theme:e})=>[(0,n.zy)({theme:e,fontWeight:"normal",fontFamily:"TikTokFont",fontSize:"15px"}),{padding:"12px 24px",lineHeight:"19.5px",width:"100%",textAlign:"center",color:e.colors.TextPrimary,wordWrap:"break-word"}]),"label:DivLogoutLinkPhoneDescContainer;"),_=(0,o.default)(l.y,{target:"ea28s0v3"})((({theme:{direction:e,colors:i}})=>[(0,n.mp)({direction:e,end:"0"}),{width:"100%",height:"48px",padding:"0 10px",borderRadius:"0",display:"flex",flexDirection:"column",border:"none",borderTop:`1px solid ${i.LineSecondary}`,textColor:"red"}]),"label:StyledLinkPhonePopupLogoutButton;"),h=(0,o.default)("div",{target:"ea28s0v4"})((({theme:e})=>[{width:"400px",padding:"32px",display:"flex",boxSizing:"border-box",flexDirection:"column",alignItems:"center",backgroundColor:e.colors.BGSecondary,borderRadius:"8px",border:`1px solid ${e.colors.LineSecondary3}`,boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.06)"}]),"label:DivLogoutConfirmContainer;"),d=(0,o.default)("div",{target:"ea28s0v5"})((({theme:e})=>[(0,n.zy)({theme:e,typography:"P0",fontWeight:"bold",fontFamily:"TikTokFont"}),{padding:"0px 32px",width:"100%",textAlign:"center",color:e.colors.TextPrimary}]),"label:DivLogoutConfirmTitle;"),r=(0,o.default)("div",{target:"ea28s0v6"})((({theme:e})=>[(0,n.zy)({theme:e,fontWeight:"normal",fontFamily:"TikTokFont"}),{fontSize:"15px",lineHeight:"19.5px",paddingTop:"12px",width:"100%",textAlign:"center",color:e.colors.TextPrimary,wordBreak:"break-word"}]),"label:DivLogoutConfirmDesc;"),v=(0,o.default)("div",{target:"ea28s0v7"})([{display:"flex",width:"336px",justifyContent:"space-between",marginTop:"16px"}],"label:DivButtonWrapper;"),p=(0,o.default)(l.y,{target:"ea28s0v8"})((({theme:{direction:e}})=>[(0,n.mp)({direction:e,end:"0"}),{width:"164px",height:"48px",padding:"0 10px"}]),"label:StyledLogoutButton;")},30615:(e,i,t)=>{t.d(i,{iM:()=>a});var o=t(16469),n=t(52401),l=t(58305),c=t(67805);const a=(e,i,t)=>{var a;if(o.LU.removeAll(),t){t.logoutSubmit(null!=i?i:{});const e=null===(a=t.getCommonTrackingInfo)||void 0===a?void 0:a.call(t);e&&((0,l.J2)(c.MM.TRACKING_INFO,JSON.stringify(e)),(0,l.J2)(c.MM.CLICK_TIMESTAMP,Date.now().toString()))}else n.z.logoutSubmit(null!=i?i:{});let s="https://www.tiktok.com/logout";e&&(s+=`?redirect_url=${encodeURIComponent(e)}`),window.location.href=s}},52401:(e,i,t)=>{t.d(i,{S:()=>l,z:()=>n});var o=t(93608);const n={logout:e=>{o.f.sendEvent("monitor_logout",e)},logoutNotify:e=>{o.f.sendEvent("logout_notify",e)},logoutSubmit:e=>{o.f.sendEvent("logout_submit",e)},logoutCancel:e=>{o.f.sendEvent("logout_cancel",e)},clickLogout:e=>{o.f.sendEvent("click_logout",e)}};class l{constructor(e){this.getCommonTrackingInfo=e}report(e,i){const t=this.getCommonTrackingInfo?Object.assign(Object.assign({},this.getCommonTrackingInfo()),i):i;o.f.sendEvent(e,t)}logoutNotify(e){this.report("logout_notify",e)}logoutSubmit(e){this.report("logout_submit",e)}logoutCancel(e){this.report("logout_cancel",e)}logout(e){this.report("monitor_logout",e)}clickLogout(e){this.report("click_logout",e)}}},82548:(e,i,t)=>{t.d(i,{U:()=>n});var o=t(93608);const n={handlePopupShow:e=>{o.f.sendEvent("general_pop_up",e)}}}}]);