"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[176],{22941:(e,t,n)=>{n.d(t,{PO:()=>i,nj:()=>a,wt:()=>l});const o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",i=62,a=(e,t)=>{if(10===t||![2,8,16,62].includes(t))return e;const n=[];let i,a,l,r,s;for(;e.length>0;){for(l="",i=0,a=0;ao[e])).join("")},l=(e,t)=>{const n=[];let i,a,l,r,s;for(;e.length>0;){for(l="",i=0,a=0;a{n.d(t,{vT:()=>_,_k:()=>w,Ee:()=>y,ip:()=>k,Ob:()=>x});var o=n(71111),i=n(31209);const a={pageName:null,itemID:"",sentBatchCount:0},l=(0,o.atom)(a),{useAtomService:r,useServiceDispatchers:s,useServiceState:c,getStaticApi:d}=(0,i.i)(l,((e,t)=>({setCache(n){const{itemID:o}=e(l);o||t(l,(e=>Object.assign(Object.assign({},n),{sentBatchCount:e.sentBatchCount})))},clearCache(){t(l,(e=>Object.assign(Object.assign({},a),{sentBatchCount:e.sentBatchCount})))},incrementSentBatchCount(){t(l,(e=>Object.assign(Object.assign({},e),{sentBatchCount:e.sentBatchCount+1})))}})));var u=n(40099),p=n(58305),b=n(88920),h=n(49057);const f="webapp_fyp_feeder_landing";let g=!0;const m=e=>{var t;const{sendCreatorItemId:n}=(0,b.CQ)(),{user:o}=null!==(t=(0,h.W)((()=>["user"]),[]))&&void 0!==t?t:{};return n&&"others_homepage"===e&&g&&!o},v=e=>{const{isFYP:t}=(0,b.FT)();return t&&("video_detail"===e||"graphic_detail"===e)&&g},_=()=>g,y=e=>{const t=s(),n=m(e),o=v(e);(0,u.useEffect)((()=>()=>{n||o||t.clearCache()}),[t,n,o]),(0,u.useEffect)((()=>{(0,p.Hd)(f)&&(g=!1),(0,p.J2)(f,"1")}),[e])},x=(e,t)=>{const n=s(),o=m(e),i=v(e);(0,u.useEffect)((()=>{t&&(o||i)&&n.setCache({pageName:e,itemID:t})}),[t,e,o,i,n])},k=()=>{const{isFYP:e}=(0,b.FT)(),{sendCreatorItemId:t,batchCount:n}=(0,b.CQ)(),{itemID:o,pageName:i,sentBatchCount:a}=c(),l=e&&("video_detail"===i||"graphic_detail"===i);let r=0;l?r=1:t&&"others_homepage"===i&&(r=n);const s=o&&a{const t=s();(0,u.useEffect)((()=>{e&&e>0&&t.incrementSentBatchCount()}),[e,t])}},8585:(e,t,n)=>{n.d(t,{E:()=>c,y:()=>d});var o=n(40099),i=n(91498);let a=null,l=!1,r=!1;const s=()=>{var e,t,o,i;r&&l&&!a&&(e=void 0,t=void 0,i=function*(){const e=document.createElement("meta");e.setAttribute("http-equiv","origin-trial"),e.setAttribute("content","A7kLbZZF0sNV1Ncyw+UODqZel/HZ7YnQCMCa2Zz4XvT8uKV2Hp5maAbj5zsGZwUDmwt401QEhO8LNkGmAEh0hV4AAABoeyJvcmlnaW4iOiJodHRwczovL3Rpa3Rvay5jb206NDQzIiwiZmVhdHVyZSI6Im1zQWNxdWlzaXRpb25JbmZvIiwiZXhwaXJ5IjoxNzMzNTAzNjc5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0="),document.head.appendChild(e);const t=(yield n.e(5269).then(n.bind(n,62779))).default;a=new t({ti:"187137935"})},new((o=void 0)||(o=Promise))((function(n,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function r(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,r)}s((i=i.apply(e,t||[])).next())})))},c=()=>{(0,o.useEffect)((()=>{"msft"===(0,i.o7)()&&(r=!0),s()}),[])},d=()=>(0,o.useCallback)((e=>{l=e,s()}),[])},75774:(e,t,n)=>{n.d(t,{x:()=>D});var o=n(40099),i=n(11060),a=n(60484),l=n(49057),r=n(71281),s=n(31733),c=n(4912),d=n(71777),u=n(36272),p=n(5441),b=n(6523),h=n(97086),f=n(2301),g=n(99129),m=n(55462),v=n(25941),_=n(243),y=n.n(_),x=n(40407),k=n(90300),w=n(93608),C=n(22941),S=n(73580),j=n(31974),O=n(42721),T=n(88874),I=n(8585),P=n(934),E=function(e,t,n,o){return new(n||(n=Promise))((function(i,a){function l(e){try{s(o.next(e))}catch(e){a(e)}}function r(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,r)}s((o=o.apply(e,t||[])).next())}))};function D(e,t,n,_,D,A){var B;const{pathname:F}=(0,i.zy)();(0,c.LT)(),function(){const e=(0,S.Nj)(j.$F),t=(0,a.L$)((0,l.W)((()=>["user","wid","abTestVersion","webIdCreatedTime"]),[])),{wid:n,abTestVersion:i,webIdCreatedTime:c}=t,d=(0,r.qt)(i,"webapp_login_causal_inference"),u=(0,s.mv)(c);(0,o.useEffect)((()=>{if("v1"===d){const t=(0,x.ZC)(n||"",3,k.gb).toString();e.setEnterMethod("simulated"),e.setCloseable(!1),e.setPredictionPayload(t),e.loginNotify()}}),[u,d,e,n])}();const[{isMiniPlayerShowing:Y},H]=(0,d.Sp)(),L=(0,u.u4)(),{isElectronApp:N}=(0,p.B)();(0,o.useEffect)((()=>{Y&&H.closeMiniPlayer({playMode:null,enter_method:"click_navigation"})}),[F,t]),(0,o.useEffect)((()=>{L.initPortraitHub()}),[L]),(0,o.useEffect)((()=>{!function(){E(this,void 0,void 0,(function*(){if(N){const e=yield function(){return E(this,void 0,void 0,(function*(){try{const{data:e}=yield y().app.getWid();return(0,C.wt)(e,C.PO)}catch(e){return}}))}();w.f.config({commonHeaderConfig:{"header.custom":{webapp_wid:e}}})}}))}()}),[]);const{abTestVersion:M}=null!==(B=(0,l.W)((()=>["abTestVersion"]),[]))&&void 0!==B?B:{},R=(0,b.wW)();(0,c.tF)((()=>{var t,n,o;return{page_name:e,enter_from:e,ui_type:D,vidab:null!==(t=null==M?void 0:M.versionName)&&void 0!==t?t:"",seo_vidab:(null!==(n=null==R?void 0:R.vidList)&&void 0!==n?n:[]).join(","),[O.ET]:(0,h.fU)()||null===(o=(0,T.YI)(O.FR))||void 0===o?void 0:o[O.ET]}}),[e,t,F],A),(0,f.DQ)(e);const W=(0,c.ct)({eParams:n});(0,o.useEffect)((()=>{!(null==n?void 0:n.notReady)&&W()}),[W,t]),(0,g.M$)(e),(0,m.rF)({pid:null!=_?_:e}),(0,I.E)(),(0,P.Ee)(e),(0,v.P)()}},86015:(e,t,n)=>{n.d(t,{E:()=>E});var o=n(2787),i=n(67518),a=n(40099),l=n(16993),r=n(37694),s=n(25616),c=n(49057),d=n(67842),u=n(98910),p=n(34012),b=n(31355),h=n(45445),f=n(97706),g=n(25754),m=n(38597),v=n(62186),_=n(24643),y=n(84987);const x={id:"block-055d3c46",use:"block-055d3c46-usage",viewBox:"0 0 16 16",content:''};function k(e){const t=(0,a.useContext)(y.X);return(0,a.useLayoutEffect)((()=>(t.add(x),()=>{t.remove("block-055d3c46")})),[]),(0,_.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,_.jsx)("use",{xlinkHref:"#block-055d3c46"},void 0)}),void 0)}var w=n(72153);const C=(0,v.default)("div",{target:"e1itwlh20"})([{padding:"8px 0"}],"label:DivActionOutsideContainer;"),S=(0,v.default)("div",{target:"e1itwlh21"})((({theme:e,popup:t})=>[(0,w.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P2",color:"TextPrimary"}),{display:"block",padding:"0 16px",cursor:"pointer",alignItems:"center",minWidth:"180px",boxSizing:"border-box",boxShadow:t?"unset":"0 2px 12px rgba(0, 0, 0, .12)",":hover":{backgroundColor:"rgba(58, 65, 107, .03)"}}]),"label:DivActionContainer;"),j=(0,v.default)("div",{target:"e1itwlh22"})((({hasBorderBottom:e})=>[{display:"flex",alignItems:"center",padding:"13px 0",borderBottom:e?"1px solid rgba(22, 24, 35, .12)":"unset"}]),"label:DivActionItem;"),O=(0,v.default)("p",{target:"e1itwlh23"})((({theme:{direction:e}})=>[(0,w.mp)({direction:e,marginStart:"15px"}),{whiteSpace:"nowrap"}]),"label:PText;"),T=(0,v.default)(k,{target:"e1itwlh24"})({stroke:"currentColor"},"label:StyledBlock;");var I=n(32125),P=n(84908);const E=(0,a.memo)((function({report:e,margin:t,usePopup:n,isFollowing:v,popupShowing:_,uniqueId:y="",itemListKey:x,TuxContainer:k,hideMessage:w}){var E,D;const A=(0,s.s)(),{language:B,user:F}=null!==(E=(0,c.W)((()=>["language","user"]),[]))&&void 0!==E?E:{},{direction:Y}=(0,i.u)(),H="ltr"===Y?"bottomRight":"bottomLeft",L=(0,d.b1)(),{handleShowReport:N}=(0,u.Ah)({reportTarget:null!=e?e:{}}),{id:M,relation:R}=null!==(D=(0,P.nW)((e=>e.users[y]),I.bN))&&void 0!==D?D:{},W=4===R,z="user"===x,[q,V]=(0,a.useState)(!1),K=(0,a.useCallback)((()=>g.w.handleEnterChatList()),[]),U=(0,a.useCallback)((e=>t=>{13!==t.keyCode&&32!==t.keyCode||(t.stopPropagation(),t.preventDefault(),e())}),[]);(0,a.useEffect)((()=>{_&&m.h.handleBlockShow(!W)}),[_]);const Z=(0,a.useCallback)((()=>{F?V(!0):L.openModal({})}),[F,L]),$=(0,a.useCallback)((()=>{V(!1)}),[]),{colors:Q}=(0,i.u)(),{path:J,target:G}=(0,p._Y)(B),X=(0,o.FD)(C,{"data-e2e":`${x}-report`,children:[!w&&!1===v&&(null==F?void 0:F.hasIMPermission)?(0,o.Y)(S,{tabIndex:0,role:"button","aria-label":A("send_message"),popup:!0,children:(0,o.Y)(b.N_,{forceSSR:!1,to:`${J}&u=${M}`,target:G,onClick:K,onKeyDown:U(K),style:{textDecoration:"none"},children:(0,o.FD)(j,{hasBorderBottom:!0,children:[(0,o.Y)(l.A,{width:16,height:16}),(0,o.Y)(O,{className:"text",children:A("send_message")})]})})}):null,(0,o.Y)(S,{tabIndex:0,role:"button","aria-label":A("Report"),popup:!0,onClick:N,onKeyDown:U(N),children:(0,o.FD)(j,{hasBorderBottom:z,children:[(0,o.Y)(r.A,{width:16,height:16}),(0,o.Y)(O,{children:A("Report")})]})}),z&&(0,o.Y)(S,{tabIndex:0,role:"button","aria-label":A(W?"webapp_unblocked_button1":"webdm_block"),popup:!0,onClick:Z,onKeyDown:U(Z),children:(0,o.FD)(j,{children:[(0,o.Y)(T,{width:16,height:16}),(0,o.Y)(O,{children:A(W?"webapp_unblocked_button1":"webdm_block")})]})})]});return n?k?(0,o.FD)(o.FK,{children:[(0,o.Y)(k,{children:X}),(0,o.Y)(h.j,{visible:q,uniqueId:y,onClose:$})]}):(0,o.FD)(o.FK,{children:[(0,o.Y)(f.z,{backgroundColor:Q.BGSecondary,margin:null!=t?t:-5,active:_,placement:H,children:X}),(0,o.Y)(h.j,{visible:q,uniqueId:y,onClose:$})]}):(0,o.Y)("div",{className:"action-container",onClick:N,children:(0,o.FD)("div",{className:"action-item",children:[(0,o.Y)(r.A,{width:24,height:24}),(0,o.Y)("p",{className:"text",children:A("Report")})]})})}))},46783:(e,t,n)=>{n.d(t,{i:()=>o});const o=200},97335:(e,t,n)=>{n.d(t,{I9:()=>R,LR:()=>M,r$:()=>W,QW:()=>q,EA:()=>H,L0:()=>N,zk:()=>L,aS:()=>U,LL:()=>K});var o=n(2787),i=n(40099),a=n(60751),l=n(30434),r=n(86776),s=n(88920),c=n(25616),d=n(60342),u=n(32744),p=n(26192),b=n(82715),h=n(20024),f=n(86015),g=n(46783),m=n(62186),v=n(72153),_=n(66994),y=n(97317);const x=(0,m.default)(y.SO,{target:"enm41490"})({paddingTop:"32px",margin:"0 auto",boxSizing:"content-box"},(({responsive:e=!0})=>e?(0,y.s5)():{}),"label:StyledShareLayoutV2;"),k=(0,m.default)("div",{target:"enm41491"})((({additionalStyles:e})=>[Object.assign({flex:"1 1 auto",display:"flex",flexDirection:"column"},e)]),"label:DivShareLayoutContentV2;"),w=(0,m.default)(y._q,{target:"enm41492"})((({theme:{direction:e},showShareIcon:t})=>[{maxWidth:t?"624px":"584px"},(0,v.mp)({direction:e,paddingEnd:t?"92px":"52px"})]),"label:StyledDivShareLayoutHeaderV2;"),C=(0,i.memo)((e=>{const{isDetailPage:t}=(0,_.s0)(),n=t?x:y.sk;return(0,o.Y)(n,Object.assign({},e))})),S=(0,i.memo)((e=>{const{isDetailPage:t}=(0,_.s0)(),n=t?k:y.a$;return(0,o.Y)(n,Object.assign({},e))})),j=(0,i.memo)((e=>{const{isDetailPage:t}=(0,_.s0)(),n=t?w:y._q;return(0,o.Y)(n,Object.assign({},e))}));var O=n(81054),T=n(6990),I=n(64718);const P=(0,O.Ay)({resolved:{},chunkName:()=>"share",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(1735),n.e(2396),n.e(2924),n.e(5877),n.e(8014),n.e(4161),n.e(8871),n.e(7485),n.e(5985),n.e(7284),n.e(4091),n.e(203),n.e(6157),n.e(2380),n.e(5323),n.e(3862),n.e(4877),n.e(3409),n.e(3976)]).then(n.bind(n,55467)),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 n(t)},resolve:()=>55467},Object.assign({fallback:(0,o.Y)(I.w,{})},T.KE)),E=(0,O.Ay)({resolved:{},chunkName:()=>"revamp",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!n.m[t]},importAsync:()=>Promise.all([n.e(9443),n.e(1799),n.e(5956),n.e(8564),n.e(5985),n.e(3895),n.e(7284),n.e(4091),n.e(203),n.e(6157),n.e(5323),n.e(3862),n.e(4877),n.e(3409),n.e(9820)]).then(n.bind(n,94607)),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 n(t)},resolve:()=>94607},Object.assign({fallback:(0,o.Y)(I.w,{})},T.KE));var D=n(97507),A=n(24643),B=n(84987);const F={id:"Eye-slash-bde4b750",use:"Eye-slash-bde4b750-usage",viewBox:"0 0 96 96",content:''};function Y(e){const t=(0,i.useContext)(B.X);return(0,i.useLayoutEffect)((()=>(t.add(F),()=>{t.remove("Eye-slash-bde4b750")})),[]),(0,A.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,A.jsx)("use",{xlinkHref:"#Eye-slash-bde4b750"},void 0)}),void 0)}const H=function(e){const{children:t,id:n,tabIndex:i,additionalStyles:a,disableResponsiveV2:l,isGepHidden:s}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{var t;13===e.keyCode||32===e.keyCode?(e.stopPropagation(),e.preventDefault(),z?V():q()):27===e.keyCode&&z&&(V(),null===(t=Z.current)||void 0===t||t.focus())}),[q,V,z]),Q=N?E:P;return(0,o.FD)(j,{className:H,bottomLine:p,showShareIcon:U,style:L,children:[e,R&&v?null:(0,o.FD)(y.q,{children:[t&&(0,o.Y)(y.FW,{children:t}),n&&(0,o.Y)(y.$D,{children:n}),U&&(0,o.Y)(Q,{uniqueId:S,authorId:C,collectionId:I,collectionName:D,tagId:T,tagTitle:B,musicId:O,musicTitle:F,url:A,poi:Y,embedCode:l,embedType:u,isEmbedDisabled:x,isEmbedBanned:k}),(0,o.FD)(y.G0,{role:"button",ref:Z,"aria-label":W("creatorCenter_content_actions"),tabIndex:0,"data-e2e":`${w}-more`,onMouseEnter:q,onMouseLeave:V,onKeyDown:$,children:[!h&&!m&&(0,o.Y)(a.A,{width:24,height:24}),b?(0,o.Y)(f.E,{itemListKey:w,isFollowing:_,uniqueId:S,report:b,usePopup:!0,popupShowing:z,margin:-5}):null]})]})]})})),M={width:90,height:90,style:{fillOpacity:.34}},R={width:72,height:72},W=(0,o.Y)("div",{style:{display:"flex",fontSize:72,fillOpacity:.34},children:(0,o.Y)(l.A,{})}),z=[10101,-1];function q(e){const t=(0,c.s)(),{statusCode:n,iconElement:a,e2ePrefix:l}=e,r=l&&`${l}-error-title`,s=l&&`${l}-error-desc`,d=l&&`${l}-error-button`,h=(0,i.useCallback)((()=>{location.href=b.OZ.foryou}),[]);if(z.includes(n))return(0,o.Y)(D.Kk,{isShort:!0,children:(0,o.Y)(u.W,{iconElem:W,title:t("server_error_title"),desc:t("server_error_sub"),buttonText:t("refresh"),onButtonClick:e.onRefresh,e2eTitle:r,e2eDesc:s,e2eButton:d})});const f=(0,p.aQ)(n),g=(0,p.W3)(n),m=(0,p.iA)(n),{title:v,desc:_}=(0,p.jY)(n);return(0,o.Y)(D.Kk,{isShort:!0,children:(0,o.Y)(u.W,{iconElem:a,title:t(f),desc:t(g),e2eDesc:_||s,e2eTitle:v||r,e2eButton:d,buttonText:t(m),onButtonClick:h})})}var V;function K(e){const{iconElement:t,emptyTip:n,e2ePrefix:i,emptyActionButton:a}=e,{title:l,desc:r}=n,s=i&&`${i}-title`,c=i&&`${i}-desc`;return(0,o.Y)(D.Kk,{isShort:!0,children:(0,o.Y)(u.W,{iconElem:t,title:l,desc:r,e2eTitle:s,e2eDesc:c,button:a})})}function U(e){const{statusCode:t,iconElement:n}=e,i=(0,c.s)(),a=i((0,p.aQ)(t)),l=i((0,p.W3)(t),{s_settingsAndPrivacy:(0,o.Y)("b",{children:i("accountAudienceControls_profile_loggedInRM_desc_placeholder")},"accountAudienceControls_profile_loggedInRM_desc_placeholder")}),r=209001===t?null:null!=n?n:(0,o.Y)(Y,{width:96,height:96});return(0,o.Y)(D.Kk,{isShort:!0,children:(0,o.Y)(u.W,{iconElem:r,title:a,desc:l})})}!function(e){e[e.Error=0]="Error",e[e.Empty=1]="Empty"}(V||(V={}))},97507:(e,t,n)=>{n.d(t,{Ct:()=>g,Kk:()=>f,Ov:()=>m,Qs:()=>p,Rw:()=>d,TD:()=>v,Zi:()=>b,b_:()=>r,fo:()=>y,g2:()=>c,il:()=>s,pB:()=>h,pI:()=>_});var o=n(88091),i=n(62186),a=n(72153),l=n(11328);const r=(0,i.default)("div",{target:"ekmpd5l2"})((({top:e})=>[{display:"flex",flexDirection:"row",alignItems:e?"flex-start":"center"}]),"label:DivShareInfo;"),s=(0,i.default)("div",{target:"ekmpd5l3"})((({theme:{direction:e}})=>[{flex:"1",overflow:"visible",display:"flex",flexDirection:"column",justifyContent:"space-between"},(0,a.mp)({direction:e,marginStart:20}),(0,a.jJ)({max:o.f5.Small-1,style:{margin:"0"}})]),"label:DivShareTitleContainer;"),c=({theme:e,theme:{direction:t}})=>[(0,a.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"bold",typography:"H3"}),{marginBottom:"4px",overflow:"hidden",textOverflow:"ellipsis"},(0,a.mp)({direction:t,textAlign:"start"})],d=(0,i.default)("h1",{target:"ekmpd5l4"})(c,{WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word"},"label:H1ShareTitle;"),u=({theme:e,isShorterCreatorHeader:t})=>[(0,a.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P1"}),{textOverflow:"ellipsis",height:"25px",overflow:"hidden",maxWidth:"450px",whiteSpace:"nowrap",display:"flex",alignItems:"flex-end"},t&&{fontSize:"16px",marginLeft:"12px",fontWeight:"normal"}],p=(0,i.default)("h2",{target:"ekmpd5l7"})(u,"label:H2ShareSubTitle;"),b=(0,i.default)("h2",{target:"ekmpd5l8"})((({theme:e})=>[(0,a.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"medium",typography:"P2",color:"TextSecondary"})]),"label:H2ShareSubTitleThin;"),h=(0,i.default)("div",{target:"ekmpd5l9"})((({theme:{colors:e}})=>[{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",width:"120px",height:"120px",borderRadius:"4px",backgroundColor:e.BGView,"*":{fill:e.TextQuaternary}}]),"label:DivDefaultImgContainer;"),f=(0,i.default)("main",{target:"ekmpd5l10"})((({isShort:e})=>({flex:e?"0 0 auto":"1 1 auto",justifyContent:e?"center":"flex-start"})),{display:"flex",flexDirection:"column",minHeight:"490px",alignItems:"center",margin:"0 auto"},"label:MainDetailWrapper;"),g=(0,i.default)("div",{target:"ekmpd5l11"})({display:"flex",flexDirection:"row",color:"transparent",lineHeight:"0"},"label:DivSkeletonContainer;"),m=(0,i.default)("div",{target:"ekmpd5l12"})({paddingTop:"15px",marginInlineStart:"20px"},"label:DivSkeletonTitleContainer;"),v=(0,i.default)(l.EA.Title,{target:"ekmpd5l13"})({width:"157px",height:"19px",borderRadius:"2px",marginBottom:"12px"},"label:StyledSkeletonTitle;"),_=(0,i.default)(l.EA.Title,{target:"ekmpd5l14"})({width:"157px",height:"19px",borderRadius:"2px",marginBottom:"12px"},"label:StyledSkeletonSubTitle;");function y(e){const{direction:t}=e;return[{flex:"0 0 120px",width:"120px",height:"120px"},(0,a.mp)({direction:t,marginEnd:"20px"})]}},64718:(e,t,n)=>{n.d(t,{w:()=>r});var o=n(2787),i=n(40099),a=n(25616),l=n(97317);const r=(0,i.memo)((0,i.forwardRef)((function(e,t){var{children:n}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{n.d(t,{j:()=>P});var o=n(24643),i=n(40099),a=n(38597),l=n(25616),r=n(95481),s=n(62186),c=n(72153);const d="border-box",u=(0,s.default)("div",{target:"e1yvrv7n0"})({position:"absolute",top:"50%",left:"50%",paddingTop:"24px",width:"310px",boxSizing:d,textAlign:"center",transform:"translate(-50%, -50%)",background:"#fff",borderRadius:"8px",overflow:"hidden"},"label:DivPrivacyModalContent;"),p=(0,s.default)("div",{target:"e1yvrv7n1"})({padding:"0 24px",wordBreak:"break-word"},"label:DivPrivacyModalTextContainer;"),b=(0,s.default)("p",{target:"e1yvrv7n2"})((({theme:e})=>[(0,c.zy)({theme:e,color:"TextPrimary",fontFamily:"TikTokFont",fontWeight:"bold"}),{fontSize:"20px",lineHeight:"24px",marginBottom:"12px"}]),"label:PPrivacyModalTitle;"),h=(0,s.default)("p",{target:"e1yvrv7n3"})((({theme:e})=>[(0,c.zy)({theme:e,color:"TextSecondary",fontFamily:"TikTokFont",fontWeight:"normal"}),{fontSize:"15px",lineHeight:"18px",marginBottom:"20px"}]),"label:PPrivacyModalContent;"),f=(0,s.default)("div",{target:"e1yvrv7n4"})((({theme:e})=>[(0,c.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"normal"}),{display:"flex",flexDirection:"row",borderTop:"1px solid rgba(22, 24, 35, .12)",boxSizing:d}]),"label:DivPrivacyModalActionContainer;"),g=(0,s.default)("span",{target:"e1yvrv7n5"})({lineHeight:"48px",flex:"1 1 auto",boxSizing:d},"label:SpanCancelButton;"),m=(0,s.default)("span",{target:"e1yvrv7n6"})({lineHeight:"48px",flex:"1 1 auto",boxSizing:d,borderLeft:"1px solid rgba(22, 24, 35, .12)",color:"#161823"},"label:SpanConfirmButton;"),v=(0,i.memo)((function({visible:e,title:t,content:n,confirmText:i,onCancel:a,onConfirm:s}){const c=a,d=s,v=(0,l.s)();return(0,o.jsx)(r.aF,{visible:e,children:(0,o.jsxs)(u,{children:[(0,o.jsxs)(p,{children:[(0,o.jsx)(b,{children:t}),(0,o.jsx)(h,{children:n})]}),(0,o.jsxs)(f,{children:[a&&(0,o.jsx)(g,{onClick:c,children:v("Cancel")}),(0,o.jsx)(m,{onClick:d,children:null!=i?i:v("Confirm")})]})]})})}));var _=n(48615),y=n(47926),x=n(97397);const k=(0,s.default)("div",{target:"e9flc1l0"})((({theme:{colors:e}})=>({backgroundColor:e.BGPrimary,width:"400px",padding:"32px",borderRadius:"8px"})),"label:DivContainer;");k.defaultProps=Object.assign(Object.assign({},k.defaultProps),{"data-e2e":"block-popup"});const w=(0,s.default)("h2",{target:"e9flc1l1"})({fontSize:"24px",lineHeight:"36px",fontFamily:"TikTokFont",fontWeight:700,textAlign:"center",wordBreak:"break-all"},"label:H2Title;");w.defaultProps=Object.assign(Object.assign({},w.defaultProps),{"data-e2e":"block-popup-title"});const C=(0,s.default)("p",{target:"e9flc1l2"})((({theme:{colors:e}})=>({marginTop:"16px",fontSize:"16px",lineHeight:"24px",fontFamily:"TikTokFont",textAlign:"center",color:e.TextSecondary})),"label:PDesc;");C.defaultProps=Object.assign(Object.assign({},C.defaultProps),{"data-e2e":"block-popup-desc"});const S=(0,s.default)("div",{target:"e9flc1l3"})({display:"flex",marginTop:"24px"},"label:DivButtonContainer;"),j=(0,s.default)(x.y,{target:"e9flc1l4"})((({theme:{direction:e}})=>[{width:"164px"},(0,c.mp)({direction:e,marginEnd:"8px"})]),"label:StyledButtonCancel;");j.defaultProps=Object.assign(Object.assign({},j.defaultProps),{"data-e2e":"block-popup-cancel-btn"});const O=(0,s.default)(x.y,{target:"e9flc1l5"})({width:"164px"},"label:StyledButtonBlock;");O.defaultProps=Object.assign(Object.assign({},O.defaultProps),{"data-e2e":"block-popup-block-btn"});var T=n(32125),I=n(84908);const P=(0,i.memo)((function({visible:e,uniqueId:t,onClose:n}){var r;const s=(0,l.s)(),{isMobile:c}=null!==(r=(0,_.U)((()=>["isMobile"]),[]))&&void 0!==r?r:{},[{nickname:d="",secUid:u="",relation:p},b]=(0,I.JY)((e=>{var n;return null!==(n=e.users[t])&&void 0!==n?n:{}}),T.bN),h=4===p,f=s(h?"webapp_block_experience_unblock_popup_header":"webapp_block_experience_block_popup_header").replace("%s",t).replace("%s",d),g=h?s("webapp_block_experience_unblock_popup_body").replace("%s",d):s("webapp_block_experience_block_popup_body"),m=s(h?"webapp_unblocked_button1":"webdm_block"),x=(0,i.useCallback)((()=>{b.blockOrUnblockUser({uniqueId:t,secUid:u,isBlock:h}),a.h.handleBlockClick(!h)}),[b,h,u,t]);return(0,i.useEffect)((()=>{n()}),[n,p]),c?(0,o.jsx)(v,{visible:e,title:f,content:g,confirmText:m,onCancel:n,onConfirm:x}):(0,o.jsx)(y.i,{isOpen:e,onClose:n,compact:!0,closeOnBackdropClick:!0,closeOnEsc:!0,children:(0,o.jsxs)(k,{children:[(0,o.jsx)(w,{children:f}),(0,o.jsx)(C,{children:g}),(0,o.jsxs)(S,{children:[(0,o.jsx)(j,{onClick:n,children:s("webapp_unblocked_button2")}),(0,o.jsx)(O,{buttonTheme:"line",onClick:x,children:m})]})]})})}))},55462:(e,t,n)=>{n.d(t,{ZP:()=>c,rF:()=>s,sZ:()=>d,yf:()=>r});var o=n(73580),i=n(40099),a=n(11654),l=n(23721);function r(){const{enable:e=!0,enableHeadComponent:t,enableInlineScript:n,enableUseSlardarPageViewHook:o}=(0,i.useContext)(l.ug);return{enable:e,enableHeadComponent:null!=t?t:e,enableInlineScript:null!=n?n:e,enableUseSlardarPageViewHook:null!=o?o:e}}function s({pid:e}){const t=(0,o.Nj)(a.V),{enableUseSlardarPageViewHook:n}=r();(0,i.useEffect)((()=>{n&&(t.config({pid:e}),t.start(e))}),[e,t,n])}function c(){return(0,o.Nj)(a.V)}function d(){const{enable:e}=r();return e}},26192:(e,t,n)=>{n.d(t,{CC:()=>c,W3:()=>a,aQ:()=>l,iA:()=>s,jY:()=>r});const o={webapp:{10231:"home_error_video_geofencing",10219:"music_detail_unavailable_2",10101:"Sorry about that! Please try again later.",10236:"qapage_webapp_error_subtitle",10233:"playlist_invalid_error_code",10234:"playlist_invalid_error_code",10239:"photo_post_unavailable_dec",202001:"disable_reuse_soundtrack_unavailable_page_body",205001:"poisharing_edgecase_one",205002:"poisharing_edgecase_one",205003:"poistore_detail_text",203005:"",209001:"acct_geo_block_restriction_error_desc",209002:"accountAudienceControls_profile_loggedOut_desc",209003:"accountAudienceControls_profile_loggedInAgeUnknown_desc",209004:"accountAudienceControls_profile_loggedInU18_desc",209006:"accountAudienceControls_profile_loggedInFPOn_desc",209005:"accountAudienceControls_profile_loggedInRM_desc"},sharing:{10231:"home_error_video_geofencing",10219:"music_detail_unavailable_2",10101:"Sorry about that! Please try again later.",10236:"qa_reflow_page_empty_subtitle",10233:"playlist_invalid_error_code",10234:"playlist_invalid_error_code",10239:"photo_post_unavailable_dec",203005:""}},i={webapp:{202001:"ext_share_story_viewmore_btn",205001:"poisharing_cta_return",205002:"poisharing_cta_return",205003:"poisharing_cta_return",203005:"Log in"}},a=(e,t="webapp")=>{var n;return null!==(n=o[t][e])&&void 0!==n?n:"Looking for videos? Try browsing our trending creators, hashtags, and sounds."},l=(e,t="webapp")=>{let n="Page not available";switch(Number(e)){case 10202:case 10221:case 10223:case 10225:n="Couldn't find this account";break;case 10222:n="This account is private";break;case 10203:n="Couldn't find this sound";break;case 10219:n="music_detail_unavailable_1";break;case 10218:n="This sound isn't available";break;case 202001:n="disable_reuse_soundtrack_unavailable_mobile_body";break;case 10216:case 10204:case 10215:case 10217:case 10220:case 10240:case 10241:case 10242:n="embed_err_unavailable";break;case 10239:n="photo_post_unavailable_title";break;case 10205:case 10211:case 10212:case 10209:n="Couldn't find this hashtag";break;case 10208:n="Couldn't find this effect";break;case 10210:n="Couldn't find this live";break;case 10231:n="desktop_error_video_geofencing";break;case 10236:n="webapp"===t?"qapage_webapp_error_title":"qa_page_reflow_page_blank_title";break;case 10101:n="Something went wrong";break;case 205001:case 205002:n="poisuggest_placeuna_title_1";break;case 205003:n="err_feature_unavailable";break;case 10244:case 206004:case 10243:n="playlist_unavailable";break;case 203005:n="subVideo_unavailableScreen_title";break;case 209001:n="acct_geo_block_restriction_error_title";break;case 209002:n="accountAudienceControls_profileUnavailable_loggedOut_title";break;case 209003:case 209004:case 209006:n="accountAudienceControls_profileUnavailable_title";break;case 209005:n="accountAudienceControls_profileUnavailableRM_title"}return n},r=e=>{let t="";return 10216===Number(e)&&(t="video-private-setting"),{title:t,desc:""}},s=(e,t="webapp")=>i[t][e],c=e=>[209001,209002,209003,209004,209005,209006].includes(e)},20024:(e,t,n)=>{n.d(t,{OR:()=>d,Rg:()=>c,wT:()=>u});var o=n(24643),i=n(40099);class a{constructor(){this.hook=new Map,this.slot=new Map}}const l=(0,i.createContext)(new a);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t(0,o.jsx)(l.Provider,{value:t,children:(0,o.jsx)(e,s({},n))})}},38597:(e,t,n)=>{n.d(t,{h:()=>i});var o=n(93608);const i={handleBlockShow:e=>{o.f.sendEvent("tns_webapp_block_show",{type:e?"block":"unblock"})},handleBlockClick:e=>{o.f.sendEvent("tns_webapp_block_click",{type:e?"block":"unblock"})},handleBlock:(e,t)=>{o.f.sendEvent(t?"block":"unblock",e)}}}}]);