"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[965],{74499:(e,t,a)=>{a.d(t,{A:()=>s});var o=a(24643),n=a(40099),i=a(84987);const r={id:"logo-dark-c4561408",use:"logo-dark-c4561408-usage",viewBox:"0 0 118 42",content:''};function s(e){const t=(0,n.useContext)(i.X);return(0,n.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("logo-dark-c4561408")})),[]),(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,o.jsx)("use",{xlinkHref:"#logo-dark-c4561408"},void 0)}),void 0)}},46102:(e,t,a)=>{a.d(t,{A:()=>s});var o=a(24643),n=a(40099),i=a(84987);const r={id:"logo-light-0ca3c974",use:"logo-light-0ca3c974-usage",viewBox:"0 0 118 30",content:''};function s(e){const t=(0,n.useContext)(i.X);return(0,n.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("logo-light-0ca3c974")})),[]),(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,o.jsx)("use",{xlinkHref:"#logo-light-0ca3c974"},void 0)}),void 0)}},29450:(e,t,a)=>{a.d(t,{A:()=>s});var o=a(24643),n=a(40099),i=a(84987);const r={id:"violation-icon-9b396ef7",use:"violation-icon-9b396ef7-usage",viewBox:"0 0 21 20",content:''};function s(e){const t=(0,n.useContext)(i.X);return(0,n.useLayoutEffect)((()=>(t.add(r),()=>{t.remove("violation-icon-9b396ef7")})),[]),(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,o.jsx)("use",{xlinkHref:"#violation-icon-9b396ef7"},void 0)}),void 0)}},56723:(e,t,a)=>{a.d(t,{dy:()=>o,hA:()=>n,hc:()=>d,lV:()=>s,mS:()=>r,o6:()=>l,u3:()=>i});const o="header-more-menu-icon",n="header-setting-popup-list",i="header-electron-setting-popup-list",r="header-download-popup",s="lang-setting-popup-list",l="language-selection-menu-header",d="creator-tools-selection-menu-header"},30591:(e,t,a)=>{a.d(t,{Y:()=>w,A:()=>x});var o=a(24643),n=a(40099);const i=a.p+"863338800afbd636244a.png";var r=a(90161),s=a(29450),l=a(53525),d=a(62186),c=a(72153);const p=(0,d.default)("div",{target:"egjh0py0"})({display:"flex",padding:"10px 0"},"label:DivItemContainer;"),h=(0,d.default)("div",{target:"egjh0py1"})((({theme:{direction:e,colors:t}})=>[{height:"48px",width:"48px",borderRadius:"50%",border:`1px solid ${t.LinePrimary}`,backgroundColor:t.BGTertiary,display:"flex",alignItems:"center",justifyContent:"center","> svg > path":{fill:t.TextPrimary}},(0,c.mp)({direction:e,marginEnd:"12px"})]),"label:DivLogoContainer;"),_=(0,d.default)("img",{target:"egjh0py2"})((({theme:{direction:e}})=>[{height:"48px",width:"48px",borderRadius:"50%"},(0,c.mp)({direction:e,marginEnd:"12px"})]),"label:ImgLeftIcon;"),u=(0,d.default)("img",{target:"egjh0py3"})((({theme:{colors:e}})=>({objectFit:"cover",backgroundColor:e.TextTertiary})),"label:ImgCover;"),g=(0,d.default)("div",{target:"egjh0py4"})({flex:1,display:"flex",justifyContent:"space-between"},"label:DivRightContent;"),m=(0,d.default)("div",{target:"egjh0py5"})((({theme:{colors:e,direction:t}})=>[{flex:1,color:e.TextPrimary},(0,c.mp)({direction:t,marginEnd:"12px"})]),"label:DivDialogContent;"),v=(0,d.default)("span",{target:"egjh0py6"})((({theme:e})=>[(0,c.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P3"}),{lineHeight:"17px"}]),"label:SpanTitle;"),y=(0,d.default)("div",{target:"egjh0py7"})((({theme:e})=>[(0,c.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"normal",typography:"P3"}),{lineHeight:"17px"}]),"label:DivContent;"),f=(0,d.default)("span",{target:"egjh0py8"})((({theme:e})=>[(0,c.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"normal",typography:"P3",color:"TextQuaternary"}),{lineHeight:"17px"}]),"label:SpanTime;"),b=(0,d.default)("div",{target:"egjh0py9"})({width:"42px",height:"56px",borderRadius:"2px",overflow:"hidden",position:"relative"},"label:DivImgWrapper;"),E=(0,d.default)("div",{target:"egjh0py10"})((({theme:{direction:e}})=>[{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",width:"100%",height:"100%",top:0,backgroundColor:"rgba(0, 0, 0, .5)"},(0,c.mp)({direction:e,start:0})]),"label:DivViolationMask;");var R=a(25616);const w={DSA_LEARN_MORE:"dsa_learn_more",DSA_LEARN_MORE_ID:"report_detail_dsa_learn_more"},x=({item:e,isV2:t})=>{const[a,d]=(0,n.useState)(!1),[c,x]=(0,n.useState)(!1),O=(0,R.s)(),C=(0,n.useCallback)((()=>{d(!0)}),[]),k=(0,n.useCallback)((()=>{x(!0)}),[]),j=e=>{var t;(null===(t=e.target)||void 0===t?void 0:t.id)===w.DSA_LEARN_MORE_ID&&window.open("https://www.tiktok.com/legal/page/global/reporting-illegal-content/en")},{title:S="",content:A="",time:I="",cover_url:T="",avatar_url:L="",has_mask:M=!1}=e;return(0,o.jsxs)(p,{role:"listitem",tabIndex:0,"aria-label":A,children:[L&&""!==L?(0,o.jsx)(_,{src:L||i}):(0,o.jsx)(h,{children:(0,o.jsx)(r.c,{size:32})}),(0,o.jsxs)(g,{children:[(0,o.jsxs)(m,{children:[(0,o.jsx)(v,{children:S}),(0,o.jsxs)(y,{children:[(e=>{const t=e.split(/({{.*?}})/);return(0,o.jsx)("div",{onClick:j,children:t.map((e=>e.startsWith("{{")&&e.endsWith("}}")?(e.slice(2,-2),w.DSA_LEARN_MORE,(0,o.jsx)("b",{id:w.DSA_LEARN_MORE_ID,children:O("dsa_illegal_placeholder_learnmore")})):e))})})(A)," ",(0,o.jsx)(f,{children:t?(0,l.z)(I):I})]})]}),T&&(0,o.jsxs)(b,{children:[!c&&(0,o.jsx)(u,{width:"100%",height:"100%",src:T,onLoad:C,onError:k}),M&&a&&(0,o.jsx)(E,{children:(0,o.jsx)(s.A,{width:20,height:20})})]})]})]})}},18431:(e,t,a)=>{a.d(t,{Ay:()=>b,B8:()=>v,yC:()=>f});var o=a(24643),n=a(40099),i=a(63932),r=a(41730),s=a(8475),l=a(49503),d=a(46682),c=a(41271),p=a(88920),h=a(50970),_=a(52261),u=a(95481),g=a(98910),m=a(44815);const v={DELETE_REPORT:"DELETE_REPORT",ISSUE_TOPIC:"ISSUE_TOPIC",REQUEST_ANOTHER_REVIEW:"REQUEST_ANOTHER_REVIEW",MUTE_CHAT_NOTIFICATIONS:"MUTE_CHAT_NOTIFICATIONS",UNMUTE_CHAT_NOTIFICATIONS:"UNMUTE_CHAT_NOTIFICATIONS",UN_FOLLOW_USER:"UN_FOLLOW_USER",BLOCK_USER:"BLOCK_USER",UN_BLOCK_USER:"UN_BLOCK_USER",RESUBMIT_REPORT:"RESUBMIT_REPORT"};var y;!function(e){e[e.REPORT_INBOX=0]="REPORT_INBOX",e[e.VIOLATION_APPEAL=1]="VIOLATION_APPEAL",e[e.NONE=2]="NONE"}(y||(y={}));const f=[v.BLOCK_USER,v.UN_BLOCK_USER,v.REQUEST_ANOTHER_REVIEW,v.RESUBMIT_REPORT],b=({seeOptionsInfo:e,visible:t,reportId:a,onClose:b,onActionExecuted:E})=>{var R,w,x;const O=(0,d.w)(i.j),[C,k]=(0,n.useState)(y.REPORT_INBOX),[j,S]=(0,n.useState)(null),A=(0,n.useRef)(null),[I,T]=(0,n.useState)("0px"),{refreshReport:L}=(0,c.P)(i.j),{showFullSideNav:M}=(0,p.vY)(),{reportDetail:{data:D}}=(0,c.P)(i.j),P=(0,c.P)(h.L,{selector:e=>e.lang,dependencies:[]}),F=(0,_.Cp)(),{handleShowReport:N}=(0,g.Ah)({undefined:void 0,reportTarget:{lang:P,report_type:null!==(R=null==D?void 0:D.object_type_name)&&void 0!==R?R:"video",object_id:null!==(w=null==D?void 0:D.object_id)&&void 0!==w?w:"",owner_id:null!==(x=null==D?void 0:D.object_owner_id)&&void 0!==x?x:"",dsa_from_inbox:!0,report_record:null==D?void 0:D.report_record,report_id:a}});return(0,n.useEffect)((()=>{null!==L&&E()}),[L]),(0,n.useEffect)((()=>{if(j&&null===A.current){const e=new ResizeObserver((e=>{const t=e[0].target.clientHeight;T(`-${t-80}px`)}));return e.observe(j),A.current=e,()=>{var e;null===(e=A.current)||void 0===e||e.disconnect()}}}),[j]),(0,o.jsxs)(o.Fragment,{children:[t&&C===y.REPORT_INBOX&&(0,o.jsx)(r.BQ,{style:{bottom:I},isModalOnLeft:M,children:(0,o.jsx)(r.$B,{isModalOnLeft:M,children:(0,o.jsx)(r.bK,{ref:e=>{S(e)},children:(0,o.jsx)(r.he,{children:e.map(((e,t)=>f.includes(e.code)?(0,o.jsxs)(r.zC,{onClick:t=>{((e,t)=>{var o,n,i;switch(e.code){case v.RESUBMIT_REPORT:N(t),b(),F.setInboxTabShowing(!1),m.o.handleDSAResubmitMoreOptionsClick({enter_from:"report_inbox",object_type:null!==(i=null===(n=null===(o=null==D?void 0:D.report_record)||void 0===o?void 0:o.common_data)||void 0===n?void 0:n.object_type)&&void 0!==i?i:0});break;case v.REQUEST_ANOTHER_REVIEW:k(y.VIOLATION_APPEAL);break;case v.DELETE_REPORT:O.getDeleteReport({reportId:a});break;case v.UN_BLOCK_USER:O.getBlockUser({toolsType:v.UN_BLOCK_USER,processedUserId:e.extra.unblock_uid});break;case v.BLOCK_USER:O.getBlockUser({toolsType:v.BLOCK_USER,processedUserId:e.extra.block_uid})}})(e,t)},children:[e.name,(0,o.jsx)(r._k,{children:(0,o.jsx)(s.A,{width:16,height:16})})]},`div-options-container-row-${t}`):(0,o.jsx)(o.Fragment,{})))})})})}),(0,o.jsx)(u.aF,{visible:C===y.VIOLATION_APPEAL,onClose:()=>{k(y.REPORT_INBOX)},children:(0,o.jsx)("div",{style:{width:"800px"},children:(0,o.jsx)(l.A,{reportId:a,onBack:()=>{k(y.REPORT_INBOX)},onClose:()=>{k(y.REPORT_INBOX)}})})})]})}},63932:(e,t,a)=>{a.d(t,{j:()=>R});var o=a(58632),n=a(64162),i=a(4126),r=a(93995),s=a(42051),l=a(23999),d=a(26324),c=a(35572),p=a(62564),h=a(74690),_=a(80339),u=a(24451),g=a(8536),m=a(11983),v=a(55322),y=a(64356),f=a(45297),b=a(65729),E=a(18431);let R=class extends n.E{constructor(e,t){super(),this.service=e,this.t=t,this.defaultState={reportDetail:{isLoading:!1,data:null},reportList:{data:[],hasNextPage:!0,pageCount:0},activeReport:null,refreshReport:null,loggedOutCode:void 0}}setLoggedOutCode(e,t){e.loggedOutCode=t}setReportDetail(e,t){e.reportDetail.data=t}setRefreshReport(e,t){e.refreshReport=t}setReportDetailLoading(e,t){e.reportDetail.isLoading=t}setReportListData(e,t){e.reportList.data.push(...t.data),e.reportList.hasNextPage=t.hasNextPage,e.reportList.pageCount=t.pageCount}setActiveReport(e,t){e.activeReport=t}getDeleteReport(e){return e.pipe((0,c.p)((({reportId:e})=>this.service.getDeleteReport({report_id:e}).pipe((0,p.T)((({body:{}})=>this.noop()))))))}getBlockUser(e){return e.pipe((0,c.p)((({toolsType:e,processedUserId:t})=>this.service.getBlockUser({processed_user_id:t,tools_type:e}).pipe((0,p.T)((({body:{status_code:t}})=>0===t?this.getActions().setRefreshReport({type:e===E.B8.BLOCK_USER?"webapp_mig_blocked":"webapp_mig_unblocked"}):((0,v.n)({callback:this.commonToastError}),this.noop())))))))}getReportDetail(e){return e.pipe((0,c.p)((({reportId:e,reportType:t})=>this.service.getReportDetail(Object.assign({report_id:e,report_type:t},this.state.loggedOutCode&&{verification_code:this.state.loggedOutCode})).pipe((0,p.T)((({body:{detail:e}})=>e?this.getActions().setReportDetail(e):this.noop())),(0,h.Z)(this.getActions().setReportDetailLoading(!0)),(0,_.q)(this.getActions().setReportDetailLoading(!1)),(0,v.n)({callback:this.commonToastError})))))}getReportList(e){return e.pipe((0,u.E)(this.state$),(0,c.p)((([e,{reportList:{pageCount:t,hasNextPage:a}}])=>a?this.service.getReportList({start:t,count:15}).pipe((0,p.T)((({body:{status_code:e,list:a,has_more:o}})=>0!==e?this.noop():this.getActions().setReportListData({data:null!=a?a:[],hasNextPage:o,pageCount:t+15}))),(0,v.n)({callback:this.commonToastError})):(0,l.of)(this.noop()))))}setActiveReportLoggedOut(e){return e.pipe((0,g.Z)((e=>[this.getActions().setLoggedOutCode(e.code),this.getActions().setActiveReport(e)])))}updateActiveReport(e){return e.pipe((0,g.Z)((e=>[this.getActions().setActiveReport(e)])))}commonToastError(){m.F.destroy(),m.F.open({content:this.t(f.z$),duration:3,widthType:"half"})}};(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,String]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setLoggedOutCode",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setReportDetail",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setRefreshReport",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setReportDetailLoading",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setReportListData",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Object]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setActiveReport",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"getDeleteReport",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"getBlockUser",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"getReportDetail",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"getReportList",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"setActiveReportLoggedOut",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],R.prototype,"updateActiveReport",null),R=(0,o.__decorate)([(0,r.n)("ReportInbox"),(0,o.__param)(1,(0,s.y)(y.hp)),(0,o.__metadata)("design:paramtypes",[b.o,Function])],R)},65729:(e,t,a)=>{a.d(t,{o:()=>r});var o=a(58632),n=a(38203),i=a(39228);let r=class{constructor(e){this.fetch=e}getReportNotices(e){return this.fetch.get("/aweme/v1/report/inbox/notice",{query:e,baseUrlType:2})}getReportList(e){return this.fetch.get("/node/report/inbox/list",{query:e,baseUrlType:2})}getDeleteReport(e){return this.fetch.get("/tns-api/report/delete",{query:e,baseUrlType:2})}getBlockUser(e){return this.fetch.get("/tns-api/report/block",{query:e,baseUrlType:2})}getReportDetail(e){return this.fetch.get("/node/report/inbox/detail",{query:e,baseUrlType:2})}};r=(0,o.__decorate)([(0,n._)(),(0,o.__metadata)("design:paramtypes",[i.pM])],r)},53525:(e,t,a)=>{a.d(t,{z:()=>i});var o=a(4408),n=a.n(o);function i(e){if(isNaN(Number(e)))return"";const t=n().unix(Number(e)),a=e=>e.toString().padStart(2,"0"),o=a(t.month()+1),i=a(t.date()),r=a(t.hour()),s=a(t.minute()),l=a(t.second());return`${t.year()}-${o}-${i} ${r}:${s}:${l}`}},89076:(e,t,a)=>{a.d(t,{K:()=>c});var o=a(67823),n=a(40099),i=a(243),r=a.n(i),s=a(4929),l=a(51391),d=a(5441);function c(){const{isElectronApp:e}=(0,d.B)();return(0,n.useCallback)((({lang:t,url:a,currentLang:n,isMobile:i})=>{!function({lang:e,url:t,currentLang:a,isMobile:n}){l.j.handleLanguageChange({language:a,to_language:e,enter_method:n?"top_bar":void 0}),o.A.remove(s.WU),o.A.set(s.WU,e,{secure:!0,expires:300,domain:".tiktok.com"}),window.location.replace(t)}({lang:t,url:a,currentLang:n,isMobile:i}),e&&r().app.langChange({lang:t})}),[e])}},65754:(e,t,a)=>{a.d(t,{ur:()=>S,nO:()=>k,vn:()=>j});var o=a(58632),n=a(64162),i=a(4126),r=a(93995),s=a(46657),l=a(68628),d=a(26324),c=a(95719),p=a(62564),h=a(77073),_=a(8536),u=a(42230);let g=class extends n.E{constructor(){super(...arguments),this.defaultState={isPwaInstallable:!1,isModalShow:!1,isExpand:!1}}storeDeferredPrompt(e){return e.pipe((0,c.M)((e=>{this.deferredPrompt=e})),(0,p.T)((()=>this.noop())))}setIsPwaInstallable(e,t){e.isPwaInstallable=t}setIsModalShow(e,t){e.isModalShow=t}setIsExpand(e,t){e.isExpand=t}handleShowSnack(e){return e.pipe((0,c.M)((e=>u.R.handleShowSnack(e))),(0,p.T)((()=>this.noop())))}handleClickDownload(e){return e.pipe((0,c.M)((()=>u.R.handleClickDownload())),(0,p.T)((()=>this.noop())))}handleInstallationClick(e){return e.pipe((0,c.M)((()=>u.R.handleGetForPC())),(0,h.c)(0),(0,_.Z)((()=>this.deferredPrompt?(this.deferredPrompt.prompt(),(0,l.H)(this.deferredPrompt.userChoice).pipe((0,c.M)((e=>{"accepted"===e.outcome?u.R.handleInstallApp():console.warn("choice result outcome is not accepted")})),(0,p.T)((e=>"accepted"===e.outcome?this.getActions().setIsPwaInstallable(!1):this.noop())))):s.w)))}};(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"storeDeferredPrompt",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"setIsPwaInstallable",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"setIsModalShow",null),(0,o.__decorate)([(0,i.h5)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[Object,Boolean]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"setIsExpand",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"handleShowSnack",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"handleClickDownload",null),(0,o.__decorate)([(0,i.Mj)(),(0,o.__metadata)("design:type",Function),(0,o.__metadata)("design:paramtypes",[d.c]),(0,o.__metadata)("design:returntype",void 0)],g.prototype,"handleInstallationClick",null),g=(0,o.__decorate)([(0,r.n)("AppPromotion")],g);var m=a(14374),v=a(71111),y=a(31209);const f=(0,m._)((0,v.atom)({isPwaInstallable:!1,isModalShow:!1,isExpand:!1}),{rehydrationKey:"webapp.appPromotion"});let b;f.debugLabel="appPromotionAtom";const{useAtomService:E,useServiceDispatchers:R,useServiceState:w,getStaticApi:x}=(0,y.i)(f,((e,t)=>({storeDeferredPrompt(e){b=e},setIsPwaInstallable(e){t(f,(t=>Object.assign(Object.assign({},t),{isPwaInstallable:e})))},setIsModalShow(e){t(f,(t=>Object.assign(Object.assign({},t),{isModalShow:e})))},setIsExpand(e){t(f,(t=>Object.assign(Object.assign({},t),{isExpand:e})))},handleShowSnack(e){u.R.handleShowSnack(e)},handleClickDownload(){u.R.handleClickDownload()},handleInstallationClick(){return e=this,t=void 0,o=function*(){if(u.R.handleGetForPC(),!b)return;b.prompt();const e=yield b.userChoice;return"accepted"===e.outcome?u.R.handleInstallApp():console.warn("choice result outcome is not accepted"),"accepted"===e.outcome?this.setIsPwaInstallable(!1):void 0},new((a=void 0)||(a=Promise))((function(n,i){function r(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}));var e,t,a,o}})));var O=a(52266),C=a(88920);const{useSigiOrJotaiService:k,useSigiOrJotaiState:j,useSigiOrJotaiDispatchers:S}=(0,O.K)((()=>(0,C.IX)().foryou.isAppPromotionJotai),g,{useServiceState:w,useServiceDispatchers:R})},89704:(e,t,a)=>{a.d(t,{f:()=>l,K:()=>s});var o=a(58632);class n{constructor(){this.handlers=[]}register(e){this.handlers.push(e)}deregister(e){this.handlers=this.handlers.filter((t=>t!==e))}}var i=a(39228),r=a(86510);const s=new class extends n{handle(e,{uid:t}){this.handlers.forEach((a=>{a(e,{uid:t})}))}};function l(e){var t;return(0,o.__awaiter)(this,void 0,void 0,(function*(){const a=(0,r.l)(e.event);if(!("params"in a)||a.params.user_id.toString()!==e.uid)return;const o=yield i.hd.get("/passport/token/beat/web",{query:{aid:"1459"}}).catch((()=>({data:{error_code:-1}})));401===(null===(t=o.data)||void 0===t?void 0:t.error_code)&&s.handle({rawEvent:e.event,parsedData:a},{uid:e.uid})}))}},86510:(e,t,a)=>{a.d(t,{R:()=>i,l:()=>r});var o=a(96266),n=a.n(o);const i=e=>{var t;const a=`; ${document.cookie}`.split(`; ${e}=`);return a.length>0?null===(t=a.pop())||void 0===t?void 0:t.split(";").shift():null},r=e=>{var t,a;return n().parse(null!==(a=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.textPayload)&&void 0!==a?a:"{}")}},42230:(e,t,a)=>{a.d(t,{R:()=>i});var o,n=a(93608);!function(e){e.ShowSnackbar="show_snackbar",e.ShowSnackbarAuto="show_snackbar_auto",e.ClickDownloadBar="click_download_bar",e.ClickGetForPC="click_get_for_pc",e.InstalWebApp="install_web_app",e.ClickGetApp="click_get_app_for_pc"}(o||(o={}));const i={handleShowSnack:e=>{const t=e?"show_snackbar_auto":"show_snackbar";n.f.event(t)},handleClickDownload:()=>{n.f.event("click_download_bar")},handleGetForPC:()=>{n.f.event("click_get_for_pc")},handleInstallApp:()=>{n.f.event("install_web_app")},handleClickGetApp:({enter_method:e})=>{n.f.event("click_get_app_for_pc",{enter_method:e})}}},51391:(e,t,a)=>{a.d(t,{j:()=>n});var o=a(93608);const n={handleLanguageClick:e=>{o.f.sendEvent("click_change_language",e)},handleLanguageChange:e=>{o.f.sendEvent("change_langauage",e)}}},23255:(e,t,a)=>{a.d(t,{t:()=>n});var o=a(93608);const n={handleClickLogo:()=>{o.f.sendEvent("click_logo")},handleClickNav:e=>{o.f.sendEvent("click_navigation_bar",e)},handleClickHamburgerMenu:()=>{o.f.sendEvent("click_hamburger_menu")},handleEntranceShow:e=>{o.f.sendEvent("eh_web_entrance_show",e)},handleClickEntrance:e=>{o.f.sendEvent("click_eh_web_entrance",e)},handleShowFollowingRedDot:()=>{o.f.sendEvent("red_dot_show")},handleRemoveFollowingRedDot:e=>{o.f.sendEvent("red_dot_exit",e)},handleShowNewLabel:()=>{o.f.sendEvent("new_label_show")},handleRemoveNewLabel:e=>{o.f.sendEvent("new_label_exit",e)}}}}]);