"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5380],{12016:(e,t,o)=>{o.d(t,{w:()=>s});var r=o(24643),i=o(40099),n=o(58542),a=o(26263);const s=e=>{const t=(0,a.Y)(e),[o,s]=(0,i.useState)(t.getLocalStorage(!0));return{hideTooltip:t=>{null==t||t(),(0,a.Y)(e).setLocalStorage(!1),s(!1)},OneTimeTooltip:e=>(0,r.jsx)(n.N0Y,Object.assign(Object.assign({},e),{visible:o}))}}},76579:(e,t,o)=>{o.d(t,{$7:()=>s,Ru:()=>l,W6:()=>d});var r=o(60484),i=o(71281),n=o(49057);const a="abTestVersion",s=()=>{var e;const{abTestVersion:t}=(0,r.L$)((0,n.W)((()=>[a]),[]));return{livePreviewAb:null!==(e=(0,i.qt)(t,"live_preview_web"))&&void 0!==e?e:"v1"}},l=()=>{var e;const{abTestVersion:t}=(0,r.L$)((0,n.W)((()=>[a]),[]));return{livePreviewSonAb:null!==(e=(0,i.qt)(t,"live_preview_web_son"))&&void 0!==e?e:"v1"}},d=()=>{var e;const{abTestVersion:t}=(0,r.L$)((0,n.W)((()=>[a]),[]));return"v1"===(null!==(e=(0,i.V7)(t,"live_survey_open"))&&void 0!==e?e:"v0")}},78580:(e,t,o)=>{o.d(t,{E:()=>s,l:()=>a});var r=o(40099),i=o(76579),n=o(37725);const a=()=>{const e=(0,n.eX)(),t=(0,n.RW)();return{shouldShowLiveSurvey:e,handleHideLiveSurvey:(0,r.useCallback)((()=>{t.handleShowLiveSurvey(!1)}),[])}},s=()=>(0,i.W6)()},47832:(e,t,o)=>{o.d(t,{gw:()=>A,uU:()=>E,xP:()=>L});var r,i=o(40099),n=o(93608);!function(e){e.SurveyIconShow="desktop_web_survey_show_icon",e.SurveyPopupShow="desktop_web_survey_show",e.SurveyIconClick="desktop_web_survey_click_icon",e.SurveyCtaClick="desktop_web_survey_click_join",e.SurveyCloseClick="desktop_web_survey_click_not_now"}(r||(r={}));const a={handleSurveyPopupShow:()=>{n.f.event("desktop_web_survey_show")},handleSurveyIconShow:()=>{n.f.event("desktop_web_survey_show_icon")},handleSurveyIconClick:()=>{n.f.event("desktop_web_survey_click_icon")},handleSurveyCtaClick:()=>{n.f.event("desktop_web_survey_click_join")},handleSurveyCloseClick:()=>{n.f.event("desktop_web_survey_click_not_now")}};var s=o(60484),l=o(49057),d=o(48615),c=o(32125),p=o(88920),u=o(58305),h=o(71111),m=o(31209),g=o(35626),v=o.n(g),x=o(98200);const b=1/0,y=(0,h.atom)(JSON.parse((0,u._S)("PC_APP_SURVEY")||"{}")),_=(0,h.atom)((e=>e(y)),((e,t,o)=>{const r=e(y),i="function"==typeof o?o(r):Object.assign(Object.assign({},r),o);var n;v()(r,i)||(t(y,i),n=i,(0,u.AP)("PC_APP_SURVEY",JSON.stringify(n)))}));_.debugLabel="surveyPersistedAtom";const f=(0,h.atom)(!1),w=(0,h.atom)(-1),S=(0,h.atom)(!1),C=(0,h.atom)({link:"",shouldShowSurvey:!1}),k=(0,h.atom)((e=>({surveyPopActive:e(f),surveyConfig:e(C),initialized:e(S)})),((e,t,o)=>{const r=(0,x.ev)();t(f,o),e(f)?(a.handleSurveyPopupShow(),r.changeCurrentType(x.RD.SurveyEntrance),t(_,(e=>{var t;return{count:(null!==(t=e.count)&&void 0!==t?t:0)+1,hasShown:!0}}))):r.changeCurrentType(x.RD.None)}));k.debugLabel="surveyAtom";const{useAtomService:j,useServiceDispatchers:P,useServiceState:T}=(0,m.i)(k,((e,t)=>({startTimeout(){e(S)||(t(S,!0),a.handleSurveyIconShow());const o=e(w),{hasShown:r,count:i=0}=e(_);!r&&-1===o&&it(k,!0)),3e4))},clearTimeout(){const o=e(w);window.clearTimeout(o),t(w,-1)},setSurveyPopActive(e){t(k,e)},setSurveyConfig(e){t(C,e)}})));function L(){const[{surveyPopActive:e},{setSurveyPopActive:t,startTimeout:o,clearTimeout:r}]=j((e=>({surveyPopActive:e.surveyPopActive})),c.bN),n=(0,i.useCallback)((()=>{a.handleSurveyCloseClick(),t(!1)}),[]),s=(0,i.useCallback)((()=>{a.handleSurveyIconClick(),t((e=>!e)),r()}),[]),l=(0,i.useCallback)((()=>{a.handleSurveyCtaClick(),t(!1)}),[]);return(0,i.useEffect)((()=>{o()}),[]),{surveyPopActive:e,handleToggleShow:s,handleHideSurvey:n,handleClickCTA:l}}function E(){var e,t;const{user:o}=(0,s.L$)((0,l.W)((()=>["user"]),[])),r=null!==(e=null==o?void 0:o.hasLivePermission)&&void 0!==e&&e,{config:n}=(0,s.L$)((0,d.U)((()=>["config"]),[])),{desktopWebSurveyLink:a}=(0,s.L$)(n),c=P(),{shouldShowSurvey:u,isNewUser:h}=(0,p.wX)(),m=null!==(t=null==a?void 0:a[h?"new":"old"])&&void 0!==t?t:"",g=u&&r;return(0,i.useEffect)((()=>{c.setSurveyConfig({link:m,shouldShowSurvey:g})}),[c,m,g]),{link:m,shouldShowSurvey:g}}const A=()=>T((e=>e.surveyConfig.link),c.bN)},95380:(e,t,o)=>{o.d(t,{SP:()=>lt});var r=o(24643),i=o(40099),n=o(41271),a=o(93608),s=o(38893),l=o(47172),d=o(90159),c=o(58305),p=o(78662),u=o(47236);const h=(0,u.Ay)({resolved:{},chunkName:()=>"live-survey",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!o.m[t]},importAsync:()=>o.e(4816).then(o.bind(o,25199)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return o(t)},resolve:()=>25199});var m=o(78580),g=o(88920),v=o(60484),x=o(13492),b=o(48615),y=o(49057),_=o(92843),f=o(98200),w=o(16229),S=o(65754),C=o(73635),k=o(50475),j=o(77976),P=o(32125),T=o(84987);const L={id:"pc-a05d3271",use:"pc-a05d3271-usage",viewBox:"0 0 21 19",content:''};function E(e){const t=(0,i.useContext)(T.X);return(0,i.useLayoutEffect)((()=>(t.add(L),()=>{t.remove("pc-a05d3271")})),[]),(0,r.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,r.jsx)("use",{xlinkHref:"#pc-a05d3271"},void 0)}),void 0)}var A=o(25616),B=o(45297),I=o(20157),D=o(5441),R=o(84506),W=o(65467),$=o(62186),O=o(72153);const z=(0,$.default)("div",{target:"ejkrawn0"})({display:"flex",position:"relative",marginBottom:"12px"},"label:DivPromotionContainer;"),F=(0,$.default)("button",{target:"ejkrawn1"})(O.WA,(({isExpand:e,theme:t})=>{const o=(0,O.t7)(t.direction,"end");return[(0,O.zy)({theme:t,typography:"P3",fontWeight:"bold",color:"TextSecondary",fontFamily:"TikTokFont"}),{position:e?"absolute":"relative",right:0,bottom:0,padding:"0 8px",minWidth:"90px",height:"32px",boxShadow:`0 2px 8px ${t.colors.ShadowSecondary}`,borderRadius:"52px",cursor:"pointer",lineHeight:"30px",textAlign:"center",whiteSpace:"nowrap",borderWidth:"1px",borderStyle:"solid",borderColor:t.colors.LineSecondary2,backgroundColor:t.colors.BGSecondary,":hover":{borderColor:t.colors.LinePrimary,backgroundColor:t.colors.BGTertiary},":active":{borderColor:t.colors.LinePrimary,backgroundColor:t.colors.BGInput},transition:"transform 0.3s cubic-bezier(.4,.14,.3,1)",transformOrigin:`${o} bottom`,transform:e?"scale(0)":"none"}]}),"label:ButtonGetAppText;"),G=(0,$.default)("div",{target:"ejkrawn3"})((({isExpand:e,theme:t})=>{const o=(0,O.t7)(t.direction,"end");return[(0,O.zy)({theme:t,typography:"P2",fontWeight:"bold"}),{position:e?"relative":"absolute",bottom:"-1px",background:t.colors.BGSecondary,boxShadow:`0 2px 8px ${t.colors.ShadowSecondary}`,border:`1px solid ${t.colors.LineSecondary3}`,borderRadius:"8px",transition:"all 0.3s cubic-bezier(.4,.14,.3,1)",transformOrigin:`${o} bottom`,transform:e?"none":"scale(0)"},(0,O.mp)({direction:t.direction,end:"-1px"})]}),"label:DivExpandContainer;"),M=(0,$.default)("div",{target:"ejkrawn4"})((({theme:{direction:e}})=>(0,O.mp)({direction:e,end:"16px"})),{position:"absolute",top:16,cursor:"pointer"},"label:DivXMarkWrapper;"),N=(0,$.default)("div",{target:"ejkrawn5"})((({theme:{direction:e}})=>(0,O.mp)({direction:e,marginEnd:48,marginStart:16})),"label:DivExpandWrapper;"),H=(0,$.default)("div",{target:"ejkrawn6"})((({theme:{colors:e}})=>({margin:"6px 0",display:"flex",flexDirection:"row",padding:"8px",borderRadius:"8px",cursor:"pointer",":hover":{background:e.BGView}})),"label:DivItemContainer;"),q=(0,$.default)("span",{target:"ejkrawn7"})((({theme:{direction:e}})=>(0,O.mp)({direction:e,marginStart:"8px"})),{whiteSpace:"nowrap"},"label:SpanText;"),U=(0,$.default)("div",{target:"ejkrawn8"})((({theme:{colors:e,direction:t}})=>[{width:"calc(100% - 16px)",height:"1px",position:"relative",background:e.LineSecondary2,transform:"scaleY(0.5)"},(0,O.mp)({direction:t,start:"8px"})]),"label:DivSplit;"),V=()=>(0,i.useMemo)((()=>"undefined"!=typeof window&&(Boolean(navigator.standalone)||window.matchMedia("(display-mode: standalone), (display-mode: minimal-ui)").matches)),[]),Y=(0,i.memo)((function({isInDynamicBottomRightExperiment:e}){const t=(0,A.s)(),{hideModal:o,showModal:n}=(0,I.g)(),[{isExpand:a,isModalShow:s,isPwaInstallable:d},p]=(0,S.nO)((e=>({isExpand:e.isExpand,isModalShow:e.isModalShow,isPwaInstallable:e.isPwaInstallable})),P.bN),{isElectronApp:u}=(0,D.B)(),{isDesktopTestV1:h}=(0,R._j)(),m=!u&&h,g=(0,i.useCallback)((()=>{p.handleShowSnack(!1),p.setIsExpand(!0)}),[p]),v=(0,i.useCallback)((()=>{p.setIsExpand(!1),(0,c._S)(B.v1)||(0,c.AP)(B.v1,"1")}),[p]),x=(0,i.useCallback)((()=>{s||(n(),p.setIsModalShow(!0))}),[p,s,n]),b=(0,i.useCallback)((()=>{o(),p.setIsModalShow(!1)}),[p,o]),y=(0,i.useCallback)((()=>{d?g():x()}),[g,x,d]),_=(0,i.useCallback)((()=>{x(),v(),p.handleClickDownload()}),[p,v,x]),f=(0,i.useCallback)((()=>{v(),p.handleInstallationClick()}),[p,v]),w=V(),{search:T}=(0,l.useLocation)();if((0,i.useMemo)((()=>"twa"===(0,c.Hd)(B.O_)||"twa"===new URLSearchParams(T).get("source")),[T]))return null;if(!m)return(0,r.jsx)(W.u,{onClose:b,visible:s});const L=(0,j.w)(F);return(0,r.jsxs)(z,{children:[(0,r.jsx)(L,{isExpand:a,onClick:y,etClick:{etName:"click_get_app_for_pc",etParams:{enter_method:"right_corner_button"}},children:t("get_app")}),(0,r.jsxs)(G,{isExpand:a,children:[(0,r.jsx)(M,{onClick:v,children:(0,r.jsx)(C.A,{width:20,height:20})}),(0,r.jsxs)(N,{children:[!e&&!w&&d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(H,{onClick:f,"data-e2e":"pwa-pc",children:[(0,r.jsx)(E,{width:"21",height:"21"}),(0,r.jsx)(q,{children:t("get_tt_desktop")})]}),(0,r.jsx)(U,{})]}),(0,r.jsxs)(H,{onClick:_,"data-e2e":"pwa-mobile",children:[(0,r.jsx)(k.A,{width:21,height:21}),(0,r.jsx)(q,{children:t("get_tt_app")})]})]})]}),(0,r.jsx)(W.u,{onClose:b,visible:s})]})})),X=(0,u.Ay)({resolved:{},chunkName:()=>"survey",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!o.m[t]},importAsync:()=>Promise.all([o.e(9443),o.e(3653)]).then(o.bind(o,52074)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return o(t)},resolve:()=>52074});var K=o(47832),Q=o(44445),J=o(2584);const Z=(0,$.default)("button",{target:"ejylfo50"})(O.WA,(({theme:{colors:e}})=>({cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"52px",background:e.Primary,boxShadow:`0 2px 8px ${e.ShadowSecondary}`,":hover":{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), #FE2C55"},":active":{background:"linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)), #FE2C55"}})),"label:ButtonIconContainer;"),ee=(0,i.memo)((function(){const e=(0,A.s)(),t=(0,i.useCallback)((()=>{(0,c.a6)(),J.O.handleToTop()}),[]);return(0,r.jsx)(Z,{onClick:t,"aria-label":e("accessibilityLabels_forYou_scroll_btn"),children:(0,r.jsx)(Q.A,{width:"16",height:"16",fill:"#FFF"})})}));var te=o(46682),oe=o(58632),re=o(64162),ie=o(4126),ne=o(93995),ae=o(23999),se=o(87933),le=o(26324),de=o(72916),ce=o(8536),pe=o(74690),ue=o(80339),he=o(76435),me=o(55322),ge=o(38203),ve=o(39228);let xe=class{constructor(e){this.fetch=e}fetchProjectListInfo(e){return this.fetch.get("/api/v1/web/project/list/",{query:e,baseUrlType:2})}};xe=(0,oe.__decorate)([(0,ge._)(),(0,oe.__metadata)("design:paramtypes",[ve.pM])],xe);let be=class extends re.E{constructor(e){super(),this.service=e,this.defaultState={inProgress:!1,loading:!0,projectList:[],hideProjectIds:[]}}setLoading(e,t){e.loading=t}removeProjectByIndex(e,t){var o,r;const i=null===(o=null==e?void 0:e.projectList)||void 0===o?void 0:o[t];(null==i?void 0:i.projectID)&&(e.hideProjectIds.push(null==i?void 0:i.projectID),null===(r=e.projectList)||void 0===r||r.splice(t,1))}setProjectList(e,t){var o,r,i;e.projectList=null!==(r=null===(o=t.infos)||void 0===o?void 0:o.filter((t=>{const o=e.hideProjectIds.includes(t.projectID),r=t.taskInProgress>0,i=[4,99].includes(t.status);return!o&&r&&!i})))&&void 0!==r?r:[],e.inProgress=Boolean(null===(i=e.projectList)||void 0===i?void 0:i.length)}fetchProjectList(e){return e.pipe((0,de.n)((()=>this.service.fetchProjectListInfo({}).pipe((0,ce.Z)((e=>(0,ae.of)(this.getActions().setProjectList(e)))),(0,pe.Z)(this.getActions().setLoading(!0)),(0,ue.q)(this.getActions().setLoading(!1)),(0,me.n)({})))))}refreshData(e){return e.pipe((()=>(0,se.O)(500,15e3).pipe((0,de.n)((()=>(0,ae.of)(this.getActions().fetchProjectList({})))),(0,he.Q)(this.dispose$))))}};(0,oe.__decorate)([(0,ie.uk)(),(0,oe.__metadata)("design:type",le.c)],be.prototype,"dispose$",void 0),(0,oe.__decorate)([(0,ie.h5)(),(0,oe.__metadata)("design:type",Function),(0,oe.__metadata)("design:paramtypes",[Object,Boolean]),(0,oe.__metadata)("design:returntype",void 0)],be.prototype,"setLoading",null),(0,oe.__decorate)([(0,ie.h5)(),(0,oe.__metadata)("design:type",Function),(0,oe.__metadata)("design:paramtypes",[Object,Number]),(0,oe.__metadata)("design:returntype",void 0)],be.prototype,"removeProjectByIndex",null),(0,oe.__decorate)([(0,ie.h5)(),(0,oe.__metadata)("design:type",Function),(0,oe.__metadata)("design:paramtypes",[Object,Object]),(0,oe.__metadata)("design:returntype",void 0)],be.prototype,"setProjectList",null),(0,oe.__decorate)([(0,ie.Mj)(),(0,oe.__metadata)("design:type",Function),(0,oe.__metadata)("design:paramtypes",[le.c]),(0,oe.__metadata)("design:returntype",void 0)],be.prototype,"fetchProjectList",null),(0,oe.__decorate)([(0,ie.Mj)(),(0,oe.__metadata)("design:type",Function),(0,oe.__metadata)("design:paramtypes",[le.c]),(0,oe.__metadata)("design:returntype",void 0)],be.prototype,"refreshData",null),be=(0,oe.__decorate)([(0,ne.n)("uploadProgressModule"),(0,oe.__metadata)("design:paramtypes",[xe])],be);var ye=o(75771),_e=o.n(ye),fe=o(5819),we=o(75431);const Se=(0,$.default)("div",{target:"e10yvdyi0"})((({theme:e})=>({width:"404px",height:"87px",marginBottom:"12px",boxShadow:`0px 2px 12px ${e.colors.SDTertiary}`,borderRadius:"8px",backgroundColor:e.colors.BGPrimary,padding:"19px",position:"relative",cursor:"pointer",borderWidth:e.isDark?"1px":0,borderStyle:"solid",borderColor:e.colors.BGTertiary2})),"label:DivUploadProgressContainer;"),Ce=(0,$.default)("div",{target:"e10yvdyi1"})({display:"flex",flexDirection:"row"},"label:DivRowContainer;"),ke=(0,$.default)("div",{target:"e10yvdyi2"})((({theme:{colors:e}})=>({position:"absolute",width:"32px",height:"48px",left:"22px",top:" 16px",background:e.TextQuaternary,borderRadius:"2px"})),"label:DivCoverShadowTop;"),je=(0,we.AH)({height:"52px",width:"38px",borderRadius:"2px",zIndex:"1"},"label:coverBaseStyle;"),Pe=(0,$.default)("div",{target:"e10yvdyi3"})(je,(({isEmpty:e,theme:{colors:t}})=>({display:"flex",justifyContent:"center",alignItems:"center",background:e?t.BGPlaceholderOpaque:t.Primary2})),"label:DivProjectCover;"),Te=(0,$.default)("img",{target:"e10yvdyi4"})({maxWidth:"100%",maxHeight:"100%"},"label:ImgProjectCover;"),Le=(0,$.default)("div",{target:"e10yvdyi5"})({display:"flex",flexDirection:"column",justifyContent:"start",marginLeft:"16px"},"label:DivMidColumn;"),Ee=(0,$.default)("p",{target:"e10yvdyi6"})((({theme:e,error:t})=>[(0,O.zy)({theme:e,fontFamily:"TikTokFont"}),{color:t?e.colors.Negative:e.colors.TextPrimary,textAlign:"left",fontWeight:"600",fontSize:"14px",marginTop:"6px",lineHeight:"22px"}]),"label:PUploadingProgressTitle;"),Ae=(0,$.default)("div",{target:"e10yvdyi9"})((({theme:{colors:e}})=>({marginTop:"12px",height:"4px",width:"278px",backgroundColor:e.LineSecondary})),"label:DivProgressBarParent;"),Be=(0,$.default)("div",{target:"e10yvdyi10"})((({progress:e,theme:{colors:t}})=>({height:"100%",width:e,backgroundColor:t.Primary})),"label:DivProgressBarChild;"),Ie=({index:e,projectInfo:t,handleCloseCard:o})=>{var n;const a=(0,A.s)(),s=(0,i.useCallback)((t=>{null==t||t.stopPropagation(),o(e)}),[e]),{taskFailed:l,lastPostProgress:d}=t,c=`${d}%`,p=null===(n=_e()(null==t?void 0:t.configs,{type:100}))||void 0===n?void 0:n.payload,u=!p,h=`data:image/jpeg;base64,${p}`,m=l>0;return(0,r.jsxs)(Se,{children:[(0,r.jsx)(fe.Mt,{onClick:s,children:(0,r.jsx)(C.A,{})}),(0,r.jsxs)(Ce,{children:[(0,r.jsx)(ke,{}),(0,r.jsx)(Pe,{isEmpty:u,children:!u&&(0,r.jsx)(Te,{src:h})}),(0,r.jsxs)(Le,{children:[(0,r.jsx)(Ee,{error:m,children:m?a("Uploading Failed"):`${a("Uploading")}... ${c}`}),(0,r.jsx)(Ae,{children:(0,r.jsx)(Be,{progress:c})})]})]})]})},De=()=>{const[{projectList:e,inProgress:t,loading:o},n]=(0,te.S)(be,{selector:e=>({projectList:e.projectList,inProgress:e.inProgress,loading:e.loading}),dependencies:[]}),a=(0,i.useCallback)((e=>{n.removeProjectByIndex(e)}),[n]);return(0,i.useEffect)((()=>{n.refreshData()}),[n]),(0,i.useEffect)((()=>{t||o||n.dispose$()}),[t,o,n]),(0,r.jsx)(r.Fragment,{children:t&&(null==e?void 0:e.map(((e,t)=>(0,r.jsx)(Ie,{handleCloseCard:a,index:t,projectInfo:e},e.projectID))))})};var Re=o(61886),We=o(12381);const $e=(0,$.default)("button",{target:"erjlxt90"})(O.WA,(({theme:e})=>{const t=(0,O.t7)(e.direction,"end");return[(0,O.zy)({theme:e,typography:"P4",fontWeight:"bold",color:"TextSecondary",fontFamily:"TikTokFont"}),{position:"relative",right:0,bottom:0,padding:"0 8px",minWidth:"90px",display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",height:"32px",boxShadow:`0 2px 8px ${e.colors.ShadowSecondary}`,borderRadius:"52px",cursor:"pointer",lineHeight:"30px",textAlign:"center",whiteSpace:"nowrap",borderWidth:"1px",borderStyle:"solid",borderColor:e.colors.LineSecondary2,backgroundColor:e.colors.BGSecondary,":hover":{borderColor:e.colors.LinePrimary,backgroundColor:e.colors.BGTertiary},":active":{borderColor:e.colors.LinePrimary,backgroundColor:e.colors.BGInput},transition:"transform 0.3s cubic-bezier(.4,.14,.3,1)",transformOrigin:`${t} bottom`,transform:"none"}]}),"label:ButtonGetCoins;");var Oe=o(73580),ze=o(89001),Fe=o(12016),Ge=o(6585),Me=o(26290);const Ne={request_page:"webapp",entrance_style:"popup",show_page:"homepage_hot"},He=(0,i.memo)((function(){const e=(0,A.s)(),t=(0,Oe.Nj)(Re.y_),{hideTooltip:o,OneTimeTooltip:n}=(0,Fe.w)(Ge.H.GetCoinsKey),a=(0,i.useCallback)((()=>{t.handleLiveWebGetCoinClick(Ne),window.location.href=`/coin/${We.X0.FOR_YOU}?enter_from=web_homepage_hot`}),[t]);return(0,r.jsx)(z,{children:(0,r.jsx)(n,{content:(0,r.jsx)(Me.F.P1,{weight:"medium",children:e("Web_leftNav_getCoins_toolTip")}),children:(0,r.jsxs)($e,{onClick:a,onMouseLeave:()=>o(),children:[(0,r.jsx)(ze.Q,{size:14}),e("WebApp_coin_recharge_1")]})})})}));var qe=o(31942);const Ue=(0,$.default)("button",{target:"eqxfx640"})(O.WA,(({minWidth:e,theme:t,isAnimating:o})=>{const r=(0,O.t7)(t.direction,"end");return[(0,O.zy)({theme:t,typography:"P4",fontWeight:"bold",color:"TextSecondary",fontFamily:"TikTokFont"}),Object.assign({position:"relative",right:0,bottom:0,padding:"0 8px",minWidth:`${e}px`,display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",justifyContent:"center",height:"38px",boxShadow:`0 2px 8px ${t.colors.ShadowSecondary}`,borderRadius:"52px",cursor:"pointer",lineHeight:"30px",textAlign:"center",whiteSpace:"nowrap",borderWidth:"1px",borderStyle:"solid",borderColor:t.colors.LineSecondary2,backgroundColor:t.colors.BGSecondary,":hover":{borderColor:t.colors.LinePrimary,backgroundColor:t.colors.BGTertiary},":active":{borderColor:t.colors.LinePrimary,backgroundColor:t.colors.BGInput},transition:"all 0.1s ease-in-out",transformOrigin:`${r} bottom`,transform:"none"},o&&{width:"36px",minWidth:"36px",height:"36px",borderRadius:"50%",padding:0,fontSize:0,backgroundColor:t.colors.BGSecondary,svg:{opacity:o?0:1,transform:o?"scale(0)":"scale(1)",transition:"opacity 0.1s ease, transform 0.1s ease"}})]}),"label:ButtonAtBottom;"),Ve=(0,$.default)(C.A,{target:"eqxfx641"})("label:StyledIcon;"),Ye=(0,$.default)("div",{target:"eqxfx642"})((({theme:e,isAnimating:t})=>[Object.assign({position:"relative",right:0,bottom:0,padding:"0 8px",borderRadius:"50%",borderWidth:"1px",borderStyle:"solid",borderColor:e.colors.LineSecondary2,boxShadow:`0 2px 8px ${e.colors.ShadowSecondary}`,":hover":{borderColor:e.colors.LinePrimary,backgroundColor:e.colors.BGTertiary},":active":{borderColor:e.colors.LinePrimary,backgroundColor:e.colors.BGInput},cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,width:"36px",height:"36px",background:e.colors.BGSecondary,[`${Ve}`]:{width:"16px",height:"16px"},transition:"all 0.1s ease-in-out"},t&&{width:"102px",borderRadius:"52px"})]),"label:DivCloseWrapper;");var Xe=o(96689),Ke=o(67842),Qe=o(33805);const Je=(0,i.memo)((({isDefaultExpanded:e})=>{var t;const o=(0,A.s)(),[n,s]=(0,Ke.MR)((e=>e),P.bN),[l,d]=(0,i.useState)(!1),[c,p]=(0,i.useState)(!1),u=(0,Qe.oN)(null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.pathname),h=(0,Xe.G)({modalConfig:{query:{enter_method:"qr_dynamic_popup"},popupType:"qr_bottom_right",loginPath:"/login/qrcode"}}),m=(0,i.useCallback)((()=>{p(!0),setTimeout((()=>{s.closeModal({enter_method:"click_x"}),s.setLoginModalShow(!1),p(!1)}),100)}),[]);(0,i.useEffect)((()=>{e&&"homepage_follow"!==u&&h(),"homepage_follow"===u&&m()}),[]),(0,i.useEffect)((()=>{var e;e={enter_method:"bottom_right_button",page_name:u},a.f.sendEvent("qr_login_button_show",e)}),[]);const g=(0,i.useCallback)((()=>{var e;e={enter_method:"bottom_right_button",page_name:u},a.f.sendEvent("click_QR_login",e),d(!0),setTimeout((()=>{h(),d(!1)}),100)}),[]);return(0,r.jsxs)(z,{children:[!n.loginModalShow&&(0,r.jsxs)(Ue,{id:"button-at-bottom-right",minWidth:102,isAnimating:l,onClick:g,role:"button",tabIndex:0,children:[(0,r.jsx)(qe.z,{size:14}),o("desktopWeb_dynamicBottom_right_logIn")]}),n.loginModalShow&&(0,r.jsx)(Ye,{onClick:m,id:"close-button-at-bottom-right",isAnimating:c,role:"button",tabIndex:0,children:(0,r.jsx)(Ve,{})})]})}));var Ze=o(97320),et=o(58542);const tt=(0,$.default)("div",{target:"efbmw0z0"})((({theme:e,popupLeft:t,popupTop:o})=>[{position:"fixed",left:`${t}px`,top:`${o}px`,width:"172px",padding:"16px",borderRadius:"12px",background:e.colors.BGSecondary,boxShadow:"0 4px 10px rgba(0, 0, 0, 0.1)",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center"}]),"label:PromotionContainer;"),ot=(0,$.default)("div",{target:"efbmw0z1"})((({theme:{colors:e,isDark:t}})=>[{width:"32px",height:"32px",color:t?e.TextSecondary:e.ConstBGInverse,marginBottom:"16px"}]),"label:IconWrapper;"),rt=(0,$.default)("div",{target:"efbmw0z2"})((({theme:e})=>{const t=(0,O.t7)(e.direction,"end");return[(0,O.zy)({theme:e,typography:"P3",fontWeight:"medium",color:"TextSecondary",fontFamily:"TikTokFont"}),{width:"150px",height:"48px",marginBottom:"24px",textAlign:"center",transformOrigin:`${t} bottom`,transform:"none"}]}),"label:PromotionText;"),it=(0,$.default)("button",{target:"efbmw0z3"})((({theme:{colors:e,isDark:t}})=>[{width:"128px",height:"32px",backgroundColor:t?"#fff":e.ConstBGInverse,color:t?e.ConstBGInverse:e.BGPrimary,borderRadius:"8px",fontSize:"14px",fontWeight:"bold",border:"none",cursor:"pointer"}]),"label:InstallButton;");var nt=o(89311);const at=(0,i.memo)((({isDefaultExpanded:e})=>{var t;const[o,n]=(0,S.nO)((e=>e),P.bN),s=(0,Qe.oN)(null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.pathname),[l,d]=(0,i.useState)(e&&"homepage_follow"!==s),[c,p]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),{isRTL:m}=(0,nt.m)(),g=(0,A.s)();let v;v=m?l?-20:-75:l?-155:-100;const x=l?-190:-188;(0,i.useEffect)((()=>{var e;e={page_name:s},a.f.sendEvent("install_tt_button_show",e),"homepage_follow"===s&&d(!1)}),[]);const b=(0,i.useCallback)((()=>{n.handleInstallationClick()}),[n]);return(0,r.jsx)(et.Xwo,{noArrow:!0,open:l&&!u,trigger:(0,r.jsxs)(z,{children:[!l&&(0,r.jsxs)(Ue,{id:"pwa-button-at-bottom-right",minWidth:146,isAnimating:c,onClick:()=>{var e;e={page_name:s},a.f.sendEvent("install_tt_button_click",e),p(!0),setTimeout((()=>{d(!0),p(!1)}),100)},children:[(0,r.jsx)(Ze.a,{size:14}),g("desktopWeb_dynamicBottom_installTikTok")]}),l&&(0,r.jsx)(Ye,{id:"pwa-close-button-at-bottom-right",isAnimating:u,onClick:()=>{h(!0),setTimeout((()=>{d(!1),h(!1)}),20)},children:(0,r.jsx)(Ve,{})})]}),children:(0,r.jsxs)(tt,{popupLeft:v,popupTop:x,children:[(0,r.jsx)(ot,{children:(0,r.jsx)(Ze.a,{size:40})}),(0,r.jsx)(rt,{children:g("desktopWeb_dynamicBottom_installTikTok_desc")}),(0,r.jsx)(it,{onClick:b,children:g("desktopWeb_dynamicBottom_installTikTok_Cta")})]})})})),st=(0,$.default)("div",{target:"ew8lpw50"})((({showTop:e,bottom:t=0,shouldHide:o})=>[{insetInlineEnd:"24px",position:"fixed",bottom:`${t}px`,zIndex:7,display:o?"none":"flex",flexDirection:"column",alignItems:"flex-end",marginBottom:"8px",transform:e?"none":"translateY(40px)",transition:"all 400ms cubic-bezier(0.65, 0, 0.35, 1)"}]),"label:DivFixedBottomContainer;"),lt=(0,i.memo)((function({pageType:e}){const{isInProductHoldout:t}=(0,g.Vv)(),o=(0,m.E)(),{isJustWatchedEnabled:u}=(0,g.Kg)(),{vid:C}=(0,g.vY)(),{removeShortcutPop:k}=(0,g.gR)(),{isInDynamicBottomRightExperiment:j,isInDynamicBottomRightControl:T,isInDynamicBottomRightExpanded:L}=(0,g._o)(),{user:E}=(0,v.L$)((0,y.W)((()=>["user"]),[])),{isMobile:A}=(0,v.L$)((0,b.U)((()=>["isMobile"]),[])),{isCookieBannerShowing:B}=(0,n.P)(w.b),I=(0,f.si)(),{isCommentPanelActive:D}=(0,s.Cx)((e=>({isCommentPanelActive:e.isActive})),P.bN),[{isPwaInstallable:R}]=(0,S.nO)((e=>({isPwaInstallable:e.isPwaInstallable})),P.bN),[W,$]=(0,i.useState)(!1),[O,z]=(0,i.useState)(!1),[F,G]=(0,i.useState)(0),[M,N]=(0,i.useState)(!1),[H,q]=(0,i.useState)(!1),U=V(),{shouldShowSurvey:Q}=(0,K.uU)(),{pathname:J}=(0,l.useLocation)(),Z=(0,d._g)((()=>$(0!==(0,c.hY)())),[],200),te=!O&&5!==e&&![f.RD.SurveyEntrance,f.RD.LiveSurvey].includes(I.currentType)&&!k,oe=u&&(0,p.cj)(J);(0,i.useEffect)((()=>{a.f.getVarWithCb("tiktok_web",null,(e=>{1===(null==e?void 0:e.can_split_videos)&&N(!0)}))}),[]),(0,i.useEffect)((()=>{"v0"!==C&&(0,_.Q)().then((e=>{q(e)}))}),[C]),(0,i.useEffect)((()=>{var e;if(!B)return void G(0);const t=document.querySelector("div[class*=DivCookieBannerContainer]"),o=null!==(e=null==t?void 0:t.offsetHeight)&&void 0!==e?e:0;G(o)}),[B]),(0,i.useEffect)((()=>(window.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)})),[Z]);const re=(0,i.useCallback)((()=>{z(!0)}),[]),ie=(0,i.useCallback)((()=>{N(!1)}),[]),ne=(0,i.useCallback)((()=>j&&!T?E?H?(0,r.jsx)(He,{}):!U&&R?(0,r.jsx)(at,{isDefaultExpanded:L}):(0,r.jsx)(Y,{isInDynamicBottomRightExperiment:j}):(0,r.jsx)(Je,{isDefaultExpanded:L}):H?(0,r.jsx)(He,{}):(0,r.jsx)(Y,{isInDynamicBottomRightExperiment:j})),[E,H]);return(0,r.jsxs)(st,{showTop:!t||W,bottom:F,shouldHide:D,children:[te&&(0,r.jsx)(x.S,{onClose:re}),E&&!A&&M&&(0,r.jsx)(De,{handleCloseWindow:ie}),Q&&(0,r.jsx)(X,{}),o&&(0,r.jsx)(h,{}),oe?null:ne(),t&&!oe?(0,r.jsx)(ee,{}):null]})}))},16229:(e,t,o)=>{o.d(t,{b:()=>l});var r=o(58632),i=o(64162),n=o(4126),a=o(93995),s=o(26324);let l=class extends i.E{constructor(){super(),this.defaultState={isCookieBannerShowing:!1}}setCookieBannerShowing(e,t){e.isCookieBannerShowing=t}};(0,r.__decorate)([(0,n.uk)(),(0,r.__metadata)("design:type",s.c)],l.prototype,"dispose$",void 0),(0,r.__decorate)([(0,n.h5)(),(0,r.__metadata)("design:type",Function),(0,r.__metadata)("design:paramtypes",[Object,Boolean]),(0,r.__metadata)("design:returntype",void 0)],l.prototype,"setCookieBannerShowing",null),l=(0,r.__decorate)([(0,a.n)("FixBottomModule"),(0,r.__metadata)("design:paramtypes",[])],l)},92843:(e,t,o)=>{o.d(t,{Q:()=>s});var r=o(58632),i=o(12381),n=o(26325),a=o(39228);const s=({timeout:e}={})=>(0,r.__awaiter)(void 0,void 0,void 0,(function*(){const t=e=>(console.error(e),!1);try{const o=`${(0,n.$_)(4)}${i.$z.RECHARGE_CHECK_EXTERNAL_ENTRY}`,r={page_source:0},s=a.hd.post(o,{query:r}),l=e?new Promise(((t,o)=>setTimeout((()=>o(new Error("Timeout Error"))),e))):null,{data:d,status_code:c}=yield l?Promise.race([s,l]):s;return!d||c?t(`Check external entry api failed with status_code=${c}`):Boolean(d.show_external_entry)}catch(e){return t(`Check show get coins entrance failed ${e}`)}}))},12381:(e,t,o)=>{o.d(t,{$z:()=>r,X0:()=>i});const r={RECHARGE_CHECK_EXTERNAL_ENTRY:"/webcast/wallet_api_tiktok/recharge/check_external_entry"},i={FOR_YOU:"rLJKRPE"}}}]);